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
+5 -5
View File
@@ -154,11 +154,11 @@ describe("prometheus-md-only", () => {
).resolves.toBeUndefined()
})
test("should inject read-only warning when Prometheus calls sisyphus_task", async () => {
test("should inject read-only warning when Prometheus calls delegate_task", async () => {
// #given
const hook = createPrometheusMdOnlyHook(createMockPluginInput())
const input = {
tool: "sisyphus_task",
tool: "delegate_task",
sessionID: TEST_SESSION_ID,
callID: "call-1",
}
@@ -216,7 +216,7 @@ describe("prometheus-md-only", () => {
// #given
const hook = createPrometheusMdOnlyHook(createMockPluginInput())
const input = {
tool: "sisyphus_task",
tool: "delegate_task",
sessionID: TEST_SESSION_ID,
callID: "call-1",
}
@@ -257,11 +257,11 @@ describe("prometheus-md-only", () => {
).resolves.toBeUndefined()
})
test("should not inject warning for non-Prometheus agents calling sisyphus_task", async () => {
test("should not inject warning for non-Prometheus agents calling delegate_task", async () => {
// #given
const hook = createPrometheusMdOnlyHook(createMockPluginInput())
const input = {
tool: "sisyphus_task",
tool: "delegate_task",
sessionID: TEST_SESSION_ID,
callID: "call-1",
}
+1 -1
View File
@@ -61,7 +61,7 @@ function getMessageDir(sessionID: string): string | null {
return null
}
const TASK_TOOLS = ["sisyphus_task", "task", "call_omo_agent"]
const TASK_TOOLS = ["delegate_task", "task", "call_omo_agent"]
function getAgentFromMessageFiles(sessionID: string): string | undefined {
const messageDir = getMessageDir(sessionID)