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