refactor: rename sisyphus_task to delegate_task

- Rename directories: sisyphus-task → delegate-task
- Rename types: SisyphusTaskArgs → DelegateTaskArgs, etc.
- Rename functions: createSisyphusTask → createDelegateTask
- Rename constants: SISYPHUS_TASK_* → DELEGATE_TASK_*
- Update tool name: sisyphus_task → delegate_task
- Update all prompts, docs, and tests
This commit is contained in:
justsisyphus
2026-01-16 17:34:40 +09:00
parent 6008388a4e
commit 188bbef018
46 changed files with 289 additions and 303 deletions
@@ -980,7 +980,7 @@ describe("BackgroundManager.trackTask", () => {
sessionID: "session-1",
parentSessionID: "parent-session",
description: "external task",
agent: "sisyphus_task",
agent: "delegate_task",
concurrencyKey: "external-key",
}
@@ -1015,7 +1015,7 @@ describe("BackgroundManager.resume concurrency key", () => {
sessionID: "session-1",
parentSessionID: "parent-session",
description: "external task",
agent: "sisyphus_task",
agent: "delegate_task",
concurrencyKey: "external-key",
})
+5 -5
View File
@@ -180,7 +180,7 @@ export class BackgroundManager {
tools: {
...getAgentToolRestrictions(input.agent),
task: false,
sisyphus_task: false,
delegate_task: false,
call_omo_agent: true,
},
parts: [{ type: "text", text: input.prompt }],
@@ -249,7 +249,7 @@ export class BackgroundManager {
}
/**
* Track a task created elsewhere (e.g., from sisyphus_task) for notification tracking.
* Track a task created elsewhere (e.g., from delegate_task) for notification tracking.
* This allows tasks created by other tools to receive the same toast/prompt notifications.
*/
async trackTask(input: {
@@ -296,7 +296,7 @@ export class BackgroundManager {
return existingTask
}
const concurrencyGroup = input.concurrencyKey ?? input.agent ?? "sisyphus_task"
const concurrencyGroup = input.concurrencyKey ?? input.agent ?? "delegate_task"
// Acquire concurrency slot if a key is provided
if (input.concurrencyKey) {
@@ -310,7 +310,7 @@ export class BackgroundManager {
parentMessageID: "",
description: input.description,
prompt: "",
agent: input.agent || "sisyphus_task",
agent: input.agent || "delegate_task",
status: "running",
startedAt: new Date(),
progress: {
@@ -409,7 +409,7 @@ export class BackgroundManager {
tools: {
...getAgentToolRestrictions(existingTask.agent),
task: false,
sisyphus_task: false,
delegate_task: false,
call_omo_agent: true,
},
parts: [{ type: "text", text: input.prompt }],