mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-19 06:01:21 +00:00
Add actor display metadata
This commit is contained in:
parent
3031fa1309
commit
90839685a7
8 changed files with 18 additions and 0 deletions
|
|
@ -65,6 +65,10 @@ export const history = actor({
|
||||||
queues: {
|
queues: {
|
||||||
"history.command.append": queue(),
|
"history.command.append": queue(),
|
||||||
},
|
},
|
||||||
|
options: {
|
||||||
|
name: "History",
|
||||||
|
icon: "database",
|
||||||
|
},
|
||||||
createState: (_c, input: HistoryInput) => ({
|
createState: (_c, input: HistoryInput) => ({
|
||||||
workspaceId: input.workspaceId,
|
workspaceId: input.workspaceId,
|
||||||
repoId: input.repoId,
|
repoId: input.repoId,
|
||||||
|
|
|
||||||
|
|
@ -126,6 +126,8 @@ export const projectBranchSync = actor({
|
||||||
[CONTROL.force]: queue(),
|
[CONTROL.force]: queue(),
|
||||||
},
|
},
|
||||||
options: {
|
options: {
|
||||||
|
name: "Project Branch Sync",
|
||||||
|
icon: "code-branch",
|
||||||
// Polling actors rely on timer-based wakeups; sleeping would pause the timer and stop polling.
|
// Polling actors rely on timer-based wakeups; sleeping would pause the timer and stop polling.
|
||||||
noSleep: true,
|
noSleep: true,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,8 @@ export const projectPrSync = actor({
|
||||||
[CONTROL.force]: queue(),
|
[CONTROL.force]: queue(),
|
||||||
},
|
},
|
||||||
options: {
|
options: {
|
||||||
|
name: "Project PR Sync",
|
||||||
|
icon: "code-merge",
|
||||||
// Polling actors rely on timer-based wakeups; sleeping would pause the timer and stop polling.
|
// Polling actors rely on timer-based wakeups; sleeping would pause the timer and stop polling.
|
||||||
noSleep: true,
|
noSleep: true,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,8 @@ export const project = actor({
|
||||||
db: projectDb,
|
db: projectDb,
|
||||||
queues: Object.fromEntries(PROJECT_QUEUE_NAMES.map((name) => [name, queue()])),
|
queues: Object.fromEntries(PROJECT_QUEUE_NAMES.map((name) => [name, queue()])),
|
||||||
options: {
|
options: {
|
||||||
|
name: "Project",
|
||||||
|
icon: "folder",
|
||||||
actionTimeout: 5 * 60_000,
|
actionTimeout: 5 * 60_000,
|
||||||
},
|
},
|
||||||
createState: (_c, input: ProjectInput) => ({
|
createState: (_c, input: ProjectInput) => ({
|
||||||
|
|
|
||||||
|
|
@ -458,6 +458,8 @@ export const sandboxInstance = actor({
|
||||||
db: sandboxInstanceDb,
|
db: sandboxInstanceDb,
|
||||||
queues: Object.fromEntries(SANDBOX_INSTANCE_QUEUE_NAMES.map((name) => [name, queue()])),
|
queues: Object.fromEntries(SANDBOX_INSTANCE_QUEUE_NAMES.map((name) => [name, queue()])),
|
||||||
options: {
|
options: {
|
||||||
|
name: "Sandbox Instance",
|
||||||
|
icon: "box",
|
||||||
actionTimeout: 5 * 60_000,
|
actionTimeout: 5 * 60_000,
|
||||||
},
|
},
|
||||||
createState: (_c, input: SandboxInstanceInput) => ({
|
createState: (_c, input: SandboxInstanceInput) => ({
|
||||||
|
|
|
||||||
|
|
@ -55,6 +55,8 @@ export const taskStatusSync = actor({
|
||||||
[CONTROL.force]: queue(),
|
[CONTROL.force]: queue(),
|
||||||
},
|
},
|
||||||
options: {
|
options: {
|
||||||
|
name: "Task Status Sync",
|
||||||
|
icon: "signal",
|
||||||
// Polling actors rely on timer-based wakeups; sleeping would pause the timer and stop polling.
|
// Polling actors rely on timer-based wakeups; sleeping would pause the timer and stop polling.
|
||||||
noSleep: true,
|
noSleep: true,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -111,6 +111,8 @@ export const task = actor({
|
||||||
db: taskDb,
|
db: taskDb,
|
||||||
queues: Object.fromEntries(TASK_QUEUE_NAMES.map((name) => [name, queue()])),
|
queues: Object.fromEntries(TASK_QUEUE_NAMES.map((name) => [name, queue()])),
|
||||||
options: {
|
options: {
|
||||||
|
name: "Task",
|
||||||
|
icon: "wrench",
|
||||||
actionTimeout: 5 * 60_000,
|
actionTimeout: 5 * 60_000,
|
||||||
},
|
},
|
||||||
createState: (_c, input: TaskInput) => ({
|
createState: (_c, input: TaskInput) => ({
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,8 @@ export const workspace = actor({
|
||||||
db: workspaceDb,
|
db: workspaceDb,
|
||||||
queues: Object.fromEntries(WORKSPACE_QUEUE_NAMES.map((name) => [name, queue()])),
|
queues: Object.fromEntries(WORKSPACE_QUEUE_NAMES.map((name) => [name, queue()])),
|
||||||
options: {
|
options: {
|
||||||
|
name: "Workspace",
|
||||||
|
icon: "compass",
|
||||||
actionTimeout: 5 * 60_000,
|
actionTimeout: 5 * 60_000,
|
||||||
},
|
},
|
||||||
createState: (_c, workspaceId: string) => ({
|
createState: (_c, workspaceId: string) => ({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue