rookery-agent 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +467 -367
- package/docs/migration.md +88 -88
- package/docs/updates.md +112 -0
- package/package.json +11 -3
- package/packages/cli/dist/commands/config.js +2 -2
- package/packages/cli/dist/commands/doctor.d.ts.map +1 -1
- package/packages/cli/dist/commands/doctor.js +13 -9
- package/packages/cli/dist/commands/doctor.js.map +1 -1
- package/packages/cli/dist/commands/memory.js +1 -1
- package/packages/cli/dist/commands/org.d.ts +2 -2
- package/packages/cli/dist/commands/org.d.ts.map +1 -1
- package/packages/cli/dist/commands/org.js +19 -17
- package/packages/cli/dist/commands/org.js.map +1 -1
- package/packages/cli/dist/commands/serve.js +1 -1
- package/packages/cli/dist/commands/serve.js.map +1 -1
- package/packages/cli/dist/commands/shared.d.ts.map +1 -1
- package/packages/cli/dist/commands/shared.js +2 -1
- package/packages/cli/dist/commands/shared.js.map +1 -1
- package/packages/cli/dist/commands/tasks.d.ts.map +1 -1
- package/packages/cli/dist/commands/tasks.js +25 -11
- package/packages/cli/dist/commands/tasks.js.map +1 -1
- package/packages/cli/dist/commands/tools.js +1 -1
- package/packages/cli/dist/commands/tools.js.map +1 -1
- package/packages/cli/dist/index.js +13 -13
- package/packages/cli/dist/index.js.map +1 -1
- package/packages/cli/dist/repl.d.ts +12 -0
- package/packages/cli/dist/repl.d.ts.map +1 -1
- package/packages/cli/dist/repl.js +170 -16
- package/packages/cli/dist/repl.js.map +1 -1
- package/packages/cli/dist/tui/App.d.ts +7 -3
- package/packages/cli/dist/tui/App.d.ts.map +1 -1
- package/packages/cli/dist/tui/App.js +182 -16
- package/packages/cli/dist/tui/App.js.map +1 -1
- package/packages/cli/dist/tui/commands.d.ts +7 -0
- package/packages/cli/dist/tui/commands.d.ts.map +1 -1
- package/packages/cli/dist/tui/commands.js +70 -8
- package/packages/cli/dist/tui/commands.js.map +1 -1
- package/packages/cli/dist/tui/components/AssignmentsView.js +4 -4
- package/packages/cli/dist/tui/components/AssignmentsView.js.map +1 -1
- package/packages/cli/dist/tui/components/Banner.d.ts +11 -2
- package/packages/cli/dist/tui/components/Banner.d.ts.map +1 -1
- package/packages/cli/dist/tui/components/Banner.js +7 -10
- package/packages/cli/dist/tui/components/Banner.js.map +1 -1
- package/packages/cli/dist/tui/components/CodeBlock.js +2 -2
- package/packages/cli/dist/tui/components/CodeBlock.js.map +1 -1
- package/packages/cli/dist/tui/components/InputBox.d.ts.map +1 -1
- package/packages/cli/dist/tui/components/InputBox.js +4 -4
- package/packages/cli/dist/tui/components/InputBox.js.map +1 -1
- package/packages/cli/dist/tui/components/Logo.d.ts +56 -0
- package/packages/cli/dist/tui/components/Logo.d.ts.map +1 -0
- package/packages/cli/dist/tui/components/Logo.js +50 -0
- package/packages/cli/dist/tui/components/Logo.js.map +1 -0
- package/packages/cli/dist/tui/components/Markdown.js +8 -8
- package/packages/cli/dist/tui/components/Markdown.js.map +1 -1
- package/packages/cli/dist/tui/components/Message.d.ts +1 -1
- package/packages/cli/dist/tui/components/Message.d.ts.map +1 -1
- package/packages/cli/dist/tui/components/Message.js +5 -4
- package/packages/cli/dist/tui/components/Message.js.map +1 -1
- package/packages/cli/dist/tui/components/QuestionView.d.ts +29 -0
- package/packages/cli/dist/tui/components/QuestionView.d.ts.map +1 -0
- package/packages/cli/dist/tui/components/QuestionView.js +53 -0
- package/packages/cli/dist/tui/components/QuestionView.js.map +1 -0
- package/packages/cli/dist/tui/components/SlashPalette.d.ts +5 -2
- package/packages/cli/dist/tui/components/SlashPalette.d.ts.map +1 -1
- package/packages/cli/dist/tui/components/SlashPalette.js +2 -2
- package/packages/cli/dist/tui/components/SlashPalette.js.map +1 -1
- package/packages/cli/dist/tui/components/StatusLine.d.ts +0 -2
- package/packages/cli/dist/tui/components/StatusLine.d.ts.map +1 -1
- package/packages/cli/dist/tui/components/StatusLine.js +8 -5
- package/packages/cli/dist/tui/components/StatusLine.js.map +1 -1
- package/packages/cli/dist/tui/components/ToolGroup.js +2 -2
- package/packages/cli/dist/tui/components/ToolGroup.js.map +1 -1
- package/packages/cli/dist/tui/components/WatchView.d.ts +21 -0
- package/packages/cli/dist/tui/components/WatchView.d.ts.map +1 -0
- package/packages/cli/dist/tui/components/WatchView.js +36 -0
- package/packages/cli/dist/tui/components/WatchView.js.map +1 -0
- package/packages/cli/dist/tui/history.d.ts +20 -0
- package/packages/cli/dist/tui/history.d.ts.map +1 -0
- package/packages/cli/dist/tui/history.js +105 -0
- package/packages/cli/dist/tui/history.js.map +1 -0
- package/packages/cli/dist/tui/hooks/useSlash.d.ts.map +1 -1
- package/packages/cli/dist/tui/hooks/useSlash.js +3 -2
- package/packages/cli/dist/tui/hooks/useSlash.js.map +1 -1
- package/packages/cli/dist/tui/hooks/useTurn.d.ts +58 -1
- package/packages/cli/dist/tui/hooks/useTurn.d.ts.map +1 -1
- package/packages/cli/dist/tui/hooks/useTurn.js +214 -36
- package/packages/cli/dist/tui/hooks/useTurn.js.map +1 -1
- package/packages/cli/dist/tui/hooks/useWatch.d.ts +52 -0
- package/packages/cli/dist/tui/hooks/useWatch.d.ts.map +1 -0
- package/packages/cli/dist/tui/hooks/useWatch.js +145 -0
- package/packages/cli/dist/tui/hooks/useWatch.js.map +1 -0
- package/packages/cli/dist/tui/inkTheme.d.ts +19 -0
- package/packages/cli/dist/tui/inkTheme.d.ts.map +1 -0
- package/packages/cli/dist/tui/inkTheme.js +81 -0
- package/packages/cli/dist/tui/inkTheme.js.map +1 -0
- package/packages/cli/dist/tui/theme.d.ts +39 -29
- package/packages/cli/dist/tui/theme.d.ts.map +1 -1
- package/packages/cli/dist/tui/theme.js +35 -25
- package/packages/cli/dist/tui/theme.js.map +1 -1
- package/packages/cli/dist/tui/types.d.ts +56 -3
- package/packages/cli/dist/tui/types.d.ts.map +1 -1
- package/packages/cli/dist/tui/types.js +85 -0
- package/packages/cli/dist/tui/types.js.map +1 -1
- package/packages/cli/dist/ui/modelNames.d.ts +51 -0
- package/packages/cli/dist/ui/modelNames.d.ts.map +1 -0
- package/packages/cli/dist/ui/modelNames.js +134 -0
- package/packages/cli/dist/ui/modelNames.js.map +1 -0
- package/packages/cli/dist/ui/render.d.ts.map +1 -1
- package/packages/cli/dist/ui/render.js +17 -8
- package/packages/cli/dist/ui/render.js.map +1 -1
- package/packages/cli/dist/ui/speech.js +5 -0
- package/packages/cli/dist/ui/speech.js.map +1 -1
- package/packages/cli/dist/ui/theme.d.ts +33 -9
- package/packages/cli/dist/ui/theme.d.ts.map +1 -1
- package/packages/cli/dist/ui/theme.js +33 -9
- package/packages/cli/dist/ui/theme.js.map +1 -1
- package/packages/cli/package.json +1 -1
- package/packages/core/dist/agents/persona.d.ts.map +1 -1
- package/packages/core/dist/agents/persona.js +4 -1
- package/packages/core/dist/agents/persona.js.map +1 -1
- package/packages/core/dist/computer/accessibility.d.ts +78 -0
- package/packages/core/dist/computer/accessibility.d.ts.map +1 -0
- package/packages/core/dist/computer/accessibility.js +270 -0
- package/packages/core/dist/computer/accessibility.js.map +1 -0
- package/packages/core/dist/computer/assemblies.d.ts +17 -0
- package/packages/core/dist/computer/assemblies.d.ts.map +1 -0
- package/packages/core/dist/computer/assemblies.js +55 -0
- package/packages/core/dist/computer/assemblies.js.map +1 -0
- package/packages/core/dist/computer/browser-init.d.ts +9 -0
- package/packages/core/dist/computer/browser-init.d.ts.map +1 -0
- package/packages/core/dist/computer/browser-init.js +133 -0
- package/packages/core/dist/computer/browser-init.js.map +1 -0
- package/packages/core/dist/computer/cursor.d.ts +30 -0
- package/packages/core/dist/computer/cursor.d.ts.map +1 -0
- package/packages/core/dist/computer/cursor.js +30 -0
- package/packages/core/dist/computer/cursor.js.map +1 -0
- package/packages/core/dist/computer/mcp-server.js +524 -82
- package/packages/core/dist/computer/mcp-server.js.map +1 -1
- package/packages/core/dist/computer/powershell.d.ts +4 -0
- package/packages/core/dist/computer/powershell.d.ts.map +1 -1
- package/packages/core/dist/computer/powershell.js +471 -81
- package/packages/core/dist/computer/powershell.js.map +1 -1
- package/packages/core/dist/computer/screen-text.d.ts +82 -0
- package/packages/core/dist/computer/screen-text.d.ts.map +1 -0
- package/packages/core/dist/computer/screen-text.js +243 -0
- package/packages/core/dist/computer/screen-text.js.map +1 -0
- package/packages/core/dist/computer/sketch.d.ts +66 -0
- package/packages/core/dist/computer/sketch.d.ts.map +1 -0
- package/packages/core/dist/computer/sketch.js +540 -0
- package/packages/core/dist/computer/sketch.js.map +1 -0
- package/packages/core/dist/computer/tools.d.ts +8 -8
- package/packages/core/dist/computer/tools.d.ts.map +1 -1
- package/packages/core/dist/computer/tools.js +186 -31
- package/packages/core/dist/computer/tools.js.map +1 -1
- package/packages/core/dist/computer/validation.d.ts +555 -0
- package/packages/core/dist/computer/validation.d.ts.map +1 -0
- package/packages/core/dist/computer/validation.js +111 -0
- package/packages/core/dist/computer/validation.js.map +1 -0
- package/packages/core/dist/computer/windows-cursor.d.ts +14 -0
- package/packages/core/dist/computer/windows-cursor.d.ts.map +1 -0
- package/packages/core/dist/computer/windows-cursor.js +713 -0
- package/packages/core/dist/computer/windows-cursor.js.map +1 -0
- package/packages/core/dist/config.d.ts.map +1 -1
- package/packages/core/dist/config.js +284 -10
- package/packages/core/dist/config.js.map +1 -1
- package/packages/core/dist/cron/scheduler.d.ts +49 -3
- package/packages/core/dist/cron/scheduler.d.ts.map +1 -1
- package/packages/core/dist/cron/scheduler.js +268 -25
- package/packages/core/dist/cron/scheduler.js.map +1 -1
- package/packages/core/dist/cron/store.d.ts +19 -1
- package/packages/core/dist/cron/store.d.ts.map +1 -1
- package/packages/core/dist/cron/store.js +36 -8
- package/packages/core/dist/cron/store.js.map +1 -1
- package/packages/core/dist/external/claude-code.d.ts +4 -0
- package/packages/core/dist/external/claude-code.d.ts.map +1 -0
- package/packages/core/dist/external/claude-code.js +111 -0
- package/packages/core/dist/external/claude-code.js.map +1 -0
- package/packages/core/dist/external/discovery.d.ts +33 -0
- package/packages/core/dist/external/discovery.d.ts.map +1 -0
- package/packages/core/dist/external/discovery.js +144 -0
- package/packages/core/dist/external/discovery.js.map +1 -0
- package/packages/core/dist/external/homes.d.ts +26 -0
- package/packages/core/dist/external/homes.d.ts.map +1 -0
- package/packages/core/dist/external/homes.js +49 -0
- package/packages/core/dist/external/homes.js.map +1 -0
- package/packages/core/dist/external/shared.d.ts +201 -0
- package/packages/core/dist/external/shared.d.ts.map +1 -0
- package/packages/core/dist/external/shared.js +308 -0
- package/packages/core/dist/external/shared.js.map +1 -0
- package/packages/core/dist/gateway/policy.d.ts +100 -2
- package/packages/core/dist/gateway/policy.d.ts.map +1 -1
- package/packages/core/dist/gateway/policy.js +270 -6
- package/packages/core/dist/gateway/policy.js.map +1 -1
- package/packages/core/dist/index.d.ts +36 -10
- package/packages/core/dist/index.d.ts.map +1 -1
- package/packages/core/dist/index.js +64 -10
- package/packages/core/dist/index.js.map +1 -1
- package/packages/core/dist/memory/db.d.ts +1 -1
- package/packages/core/dist/memory/db.d.ts.map +1 -1
- package/packages/core/dist/memory/db.js +741 -1
- package/packages/core/dist/memory/db.js.map +1 -1
- package/packages/core/dist/memory/dream/admission.d.ts +124 -0
- package/packages/core/dist/memory/dream/admission.d.ts.map +1 -0
- package/packages/core/dist/memory/dream/admission.js +116 -0
- package/packages/core/dist/memory/dream/admission.js.map +1 -0
- package/packages/core/dist/memory/dream/candidate.d.ts +152 -0
- package/packages/core/dist/memory/dream/candidate.d.ts.map +1 -0
- package/packages/core/dist/memory/dream/candidate.js +547 -0
- package/packages/core/dist/memory/dream/candidate.js.map +1 -0
- package/packages/core/dist/memory/dream/evaluate.d.ts +394 -0
- package/packages/core/dist/memory/dream/evaluate.d.ts.map +1 -0
- package/packages/core/dist/memory/dream/evaluate.js +1032 -0
- package/packages/core/dist/memory/dream/evaluate.js.map +1 -0
- package/packages/core/dist/memory/dream/frame.d.ts +61 -0
- package/packages/core/dist/memory/dream/frame.d.ts.map +1 -0
- package/packages/core/dist/memory/dream/frame.js +292 -0
- package/packages/core/dist/memory/dream/frame.js.map +1 -0
- package/packages/core/dist/memory/dream/label.d.ts +370 -0
- package/packages/core/dist/memory/dream/label.d.ts.map +1 -0
- package/packages/core/dist/memory/dream/label.js +439 -0
- package/packages/core/dist/memory/dream/label.js.map +1 -0
- package/packages/core/dist/memory/dream/measure.d.ts +114 -0
- package/packages/core/dist/memory/dream/measure.d.ts.map +1 -0
- package/packages/core/dist/memory/dream/measure.js +205 -0
- package/packages/core/dist/memory/dream/measure.js.map +1 -0
- package/packages/core/dist/memory/dream/policy.d.ts +21 -0
- package/packages/core/dist/memory/dream/policy.d.ts.map +1 -0
- package/packages/core/dist/memory/dream/policy.js +157 -0
- package/packages/core/dist/memory/dream/policy.js.map +1 -0
- package/packages/core/dist/memory/dream/probe.d.ts +202 -0
- package/packages/core/dist/memory/dream/probe.d.ts.map +1 -0
- package/packages/core/dist/memory/dream/probe.js +671 -0
- package/packages/core/dist/memory/dream/probe.js.map +1 -0
- package/packages/core/dist/memory/dream/promote.d.ts +312 -0
- package/packages/core/dist/memory/dream/promote.d.ts.map +1 -0
- package/packages/core/dist/memory/dream/promote.js +528 -0
- package/packages/core/dist/memory/dream/promote.js.map +1 -0
- package/packages/core/dist/memory/dream/score.d.ts +103 -0
- package/packages/core/dist/memory/dream/score.d.ts.map +1 -0
- package/packages/core/dist/memory/dream/score.js +334 -0
- package/packages/core/dist/memory/dream/score.js.map +1 -0
- package/packages/core/dist/memory/dream/slots.d.ts +193 -0
- package/packages/core/dist/memory/dream/slots.d.ts.map +1 -0
- package/packages/core/dist/memory/dream/slots.js +0 -0
- package/packages/core/dist/memory/dream/slots.js.map +1 -0
- package/packages/core/dist/memory/dream/trajectory.d.ts +262 -0
- package/packages/core/dist/memory/dream/trajectory.d.ts.map +1 -0
- package/packages/core/dist/memory/dream/trajectory.js +366 -0
- package/packages/core/dist/memory/dream/trajectory.js.map +1 -0
- package/packages/core/dist/memory/extractor.d.ts +7 -0
- package/packages/core/dist/memory/extractor.d.ts.map +1 -1
- package/packages/core/dist/memory/extractor.js +35 -12
- package/packages/core/dist/memory/extractor.js.map +1 -1
- package/packages/core/dist/memory/gate.d.ts +43 -7
- package/packages/core/dist/memory/gate.d.ts.map +1 -1
- package/packages/core/dist/memory/gate.js +91 -4
- package/packages/core/dist/memory/gate.js.map +1 -1
- package/packages/core/dist/memory/recall.d.ts +57 -0
- package/packages/core/dist/memory/recall.d.ts.map +1 -1
- package/packages/core/dist/memory/recall.js +60 -123
- package/packages/core/dist/memory/recall.js.map +1 -1
- package/packages/core/dist/memory/sleep.d.ts +131 -4
- package/packages/core/dist/memory/sleep.d.ts.map +1 -1
- package/packages/core/dist/memory/sleep.js +2384 -65
- package/packages/core/dist/memory/sleep.js.map +1 -1
- package/packages/core/dist/memory/store.d.ts +564 -10
- package/packages/core/dist/memory/store.d.ts.map +1 -1
- package/packages/core/dist/memory/store.js +1673 -102
- package/packages/core/dist/memory/store.js.map +1 -1
- package/packages/core/dist/org/controller.d.ts +282 -3
- package/packages/core/dist/org/controller.d.ts.map +1 -1
- package/packages/core/dist/org/controller.js +2334 -237
- package/packages/core/dist/org/controller.js.map +1 -1
- package/packages/core/dist/org/ponytail.d.ts +1 -1
- package/packages/core/dist/org/ponytail.js +1 -1
- package/packages/core/dist/org/project-mcp.d.ts +3 -3
- package/packages/core/dist/org/prompts.d.ts +41 -28
- package/packages/core/dist/org/prompts.d.ts.map +1 -1
- package/packages/core/dist/org/prompts.js +281 -94
- package/packages/core/dist/org/prompts.js.map +1 -1
- package/packages/core/dist/org/questions.d.ts +104 -0
- package/packages/core/dist/org/questions.d.ts.map +1 -0
- package/packages/core/dist/org/questions.js +136 -0
- package/packages/core/dist/org/questions.js.map +1 -0
- package/packages/core/dist/org/review.d.ts +100 -0
- package/packages/core/dist/org/review.d.ts.map +1 -0
- package/packages/core/dist/org/review.js +256 -0
- package/packages/core/dist/org/review.js.map +1 -0
- package/packages/core/dist/org/store.d.ts +249 -2
- package/packages/core/dist/org/store.d.ts.map +1 -1
- package/packages/core/dist/org/store.js +787 -13
- package/packages/core/dist/org/store.js.map +1 -1
- package/packages/core/dist/org/tools.d.ts +26 -2
- package/packages/core/dist/org/tools.d.ts.map +1 -1
- package/packages/core/dist/org/tools.js +352 -63
- package/packages/core/dist/org/tools.js.map +1 -1
- package/packages/core/dist/providers/catalogue.d.ts +1 -1
- package/packages/core/dist/providers/catalogue.d.ts.map +1 -1
- package/packages/core/dist/providers/catalogue.js +2 -2
- package/packages/core/dist/providers/catalogue.js.map +1 -1
- package/packages/core/dist/providers/claude-code.d.ts +18 -3
- package/packages/core/dist/providers/claude-code.d.ts.map +1 -1
- package/packages/core/dist/providers/claude-code.js +490 -40
- package/packages/core/dist/providers/claude-code.js.map +1 -1
- package/packages/core/dist/providers/claude-tui.d.ts +175 -0
- package/packages/core/dist/providers/claude-tui.d.ts.map +1 -0
- package/packages/core/dist/providers/claude-tui.js +683 -0
- package/packages/core/dist/providers/claude-tui.js.map +1 -0
- package/packages/core/dist/providers/codex-auth.d.ts +15 -0
- package/packages/core/dist/providers/codex-auth.d.ts.map +1 -0
- package/packages/core/dist/providers/codex-auth.js +127 -0
- package/packages/core/dist/providers/codex-auth.js.map +1 -0
- package/packages/core/dist/providers/codex-bridge.d.ts +58 -0
- package/packages/core/dist/providers/codex-bridge.d.ts.map +1 -0
- package/packages/core/dist/providers/codex-bridge.js +375 -0
- package/packages/core/dist/providers/codex-bridge.js.map +1 -0
- package/packages/core/dist/providers/codex-translate.d.ts +75 -0
- package/packages/core/dist/providers/codex-translate.d.ts.map +1 -0
- package/packages/core/dist/providers/codex-translate.js +383 -0
- package/packages/core/dist/providers/codex-translate.js.map +1 -0
- package/packages/core/dist/providers/model-gateway.d.ts +56 -0
- package/packages/core/dist/providers/model-gateway.d.ts.map +1 -0
- package/packages/core/dist/providers/model-gateway.js +119 -0
- package/packages/core/dist/providers/model-gateway.js.map +1 -0
- package/packages/core/dist/providers/process.d.ts +3 -1
- package/packages/core/dist/providers/process.d.ts.map +1 -1
- package/packages/core/dist/providers/process.js +3 -3
- package/packages/core/dist/providers/process.js.map +1 -1
- package/packages/core/dist/providers/profiles.d.ts +11 -0
- package/packages/core/dist/providers/profiles.d.ts.map +1 -0
- package/packages/core/dist/providers/profiles.js +28 -0
- package/packages/core/dist/providers/profiles.js.map +1 -0
- package/packages/core/dist/providers/provider-catalog.d.ts +72 -0
- package/packages/core/dist/providers/provider-catalog.d.ts.map +1 -0
- package/packages/core/dist/providers/provider-catalog.js +144 -0
- package/packages/core/dist/providers/provider-catalog.js.map +1 -0
- package/packages/core/dist/providers/quota.d.ts +40 -1
- package/packages/core/dist/providers/quota.d.ts.map +1 -1
- package/packages/core/dist/providers/quota.js +288 -25
- package/packages/core/dist/providers/quota.js.map +1 -1
- package/packages/core/dist/providers/registry.d.ts +46 -3
- package/packages/core/dist/providers/registry.d.ts.map +1 -1
- package/packages/core/dist/providers/registry.js +148 -13
- package/packages/core/dist/providers/registry.js.map +1 -1
- package/packages/core/dist/providers/router.d.ts +28 -0
- package/packages/core/dist/providers/router.d.ts.map +1 -0
- package/packages/core/dist/providers/router.js +88 -0
- package/packages/core/dist/providers/router.js.map +1 -0
- package/packages/core/dist/providers/user-settings-guard.d.ts +12 -0
- package/packages/core/dist/providers/user-settings-guard.d.ts.map +1 -0
- package/packages/core/dist/providers/user-settings-guard.js +130 -0
- package/packages/core/dist/providers/user-settings-guard.js.map +1 -0
- package/packages/core/dist/runtime.d.ts +140 -6
- package/packages/core/dist/runtime.d.ts.map +1 -1
- package/packages/core/dist/runtime.js +1312 -225
- package/packages/core/dist/runtime.js.map +1 -1
- package/packages/core/dist/skills/builtin.d.ts +34 -0
- package/packages/core/dist/skills/builtin.d.ts.map +1 -0
- package/packages/core/dist/skills/builtin.js +305 -0
- package/packages/core/dist/skills/builtin.js.map +1 -0
- package/packages/core/dist/skills/shelf.d.ts +30 -0
- package/packages/core/dist/skills/shelf.d.ts.map +1 -0
- package/packages/core/dist/skills/shelf.js +159 -0
- package/packages/core/dist/skills/shelf.js.map +1 -0
- package/packages/core/dist/skills/store.d.ts +66 -4
- package/packages/core/dist/skills/store.d.ts.map +1 -1
- package/packages/core/dist/skills/store.js +105 -18
- package/packages/core/dist/skills/store.js.map +1 -1
- package/packages/core/dist/skills/suggest.d.ts +21 -0
- package/packages/core/dist/skills/suggest.d.ts.map +1 -0
- package/packages/core/dist/skills/suggest.js +150 -0
- package/packages/core/dist/skills/suggest.js.map +1 -0
- package/packages/core/dist/tools/catalog.d.ts +1 -3
- package/packages/core/dist/tools/catalog.d.ts.map +1 -1
- package/packages/core/dist/tools/catalog.js +38 -26
- package/packages/core/dist/tools/catalog.js.map +1 -1
- package/packages/core/dist/tools/hub.d.ts +136 -10
- package/packages/core/dist/tools/hub.d.ts.map +1 -1
- package/packages/core/dist/tools/hub.js +418 -24
- package/packages/core/dist/tools/hub.js.map +1 -1
- package/packages/core/dist/turns/journal.d.ts +78 -0
- package/packages/core/dist/turns/journal.d.ts.map +1 -0
- package/packages/core/dist/turns/journal.js +104 -0
- package/packages/core/dist/turns/journal.js.map +1 -0
- package/packages/core/dist/types.d.ts +1598 -12
- package/packages/core/dist/types.d.ts.map +1 -1
- package/packages/core/dist/types.js.map +1 -1
- package/packages/core/dist/util/blocks.d.ts +41 -0
- package/packages/core/dist/util/blocks.d.ts.map +1 -0
- package/packages/core/dist/util/blocks.js +175 -0
- package/packages/core/dist/util/blocks.js.map +1 -0
- package/packages/core/dist/util/queue.d.ts +12 -0
- package/packages/core/dist/util/queue.d.ts.map +1 -1
- package/packages/core/dist/util/queue.js +16 -0
- package/packages/core/dist/util/queue.js.map +1 -1
- package/packages/core/dist/util/time.d.ts +39 -0
- package/packages/core/dist/util/time.d.ts.map +1 -0
- package/packages/core/dist/util/time.js +71 -0
- package/packages/core/dist/util/time.js.map +1 -0
- package/packages/core/package.json +1 -1
- package/packages/server/dist/auth.d.ts +14 -1
- package/packages/server/dist/auth.d.ts.map +1 -1
- package/packages/server/dist/auth.js +19 -0
- package/packages/server/dist/auth.js.map +1 -1
- package/packages/server/dist/context.d.ts +35 -1
- package/packages/server/dist/context.d.ts.map +1 -1
- package/packages/server/dist/context.js +28 -8
- package/packages/server/dist/context.js.map +1 -1
- package/packages/server/dist/gateways/attachments.d.ts +32 -0
- package/packages/server/dist/gateways/attachments.d.ts.map +1 -0
- package/packages/server/dist/gateways/attachments.js +167 -0
- package/packages/server/dist/gateways/attachments.js.map +1 -0
- package/packages/server/dist/gateways/markdown.d.ts +9 -0
- package/packages/server/dist/gateways/markdown.d.ts.map +1 -0
- package/packages/server/dist/gateways/markdown.js +170 -0
- package/packages/server/dist/gateways/markdown.js.map +1 -0
- package/packages/server/dist/gateways/push.d.ts +1 -1
- package/packages/server/dist/gateways/push.d.ts.map +1 -1
- package/packages/server/dist/gateways/push.js +347 -6
- package/packages/server/dist/gateways/push.js.map +1 -1
- package/packages/server/dist/gateways/telegram-api.d.ts +70 -1
- package/packages/server/dist/gateways/telegram-api.d.ts.map +1 -1
- package/packages/server/dist/gateways/telegram-api.js +140 -1
- package/packages/server/dist/gateways/telegram-api.js.map +1 -1
- package/packages/server/dist/gateways/telegram.d.ts +158 -1
- package/packages/server/dist/gateways/telegram.d.ts.map +1 -1
- package/packages/server/dist/gateways/telegram.js +1471 -78
- package/packages/server/dist/gateways/telegram.js.map +1 -1
- package/packages/server/dist/gateways/threads.d.ts +79 -0
- package/packages/server/dist/gateways/threads.d.ts.map +1 -0
- package/packages/server/dist/gateways/threads.js +279 -0
- package/packages/server/dist/gateways/threads.js.map +1 -0
- package/packages/server/dist/index.d.ts +2 -1
- package/packages/server/dist/index.d.ts.map +1 -1
- package/packages/server/dist/index.js +2 -1
- package/packages/server/dist/index.js.map +1 -1
- package/packages/server/dist/listeners/imap.d.ts +13 -0
- package/packages/server/dist/listeners/imap.d.ts.map +1 -0
- package/packages/server/dist/listeners/imap.js +0 -0
- package/packages/server/dist/listeners/imap.js.map +1 -0
- package/packages/server/dist/listeners/registry.d.ts +18 -0
- package/packages/server/dist/listeners/registry.d.ts.map +1 -0
- package/packages/server/dist/listeners/registry.js +88 -0
- package/packages/server/dist/listeners/registry.js.map +1 -0
- package/packages/server/dist/listeners/types.d.ts +55 -0
- package/packages/server/dist/listeners/types.d.ts.map +1 -0
- package/packages/server/dist/listeners/types.js +2 -0
- package/packages/server/dist/listeners/types.js.map +1 -0
- package/packages/server/dist/main.js +15 -1
- package/packages/server/dist/main.js.map +1 -1
- package/packages/server/dist/routes/chat.d.ts +7 -3
- package/packages/server/dist/routes/chat.d.ts.map +1 -1
- package/packages/server/dist/routes/chat.js +8 -17
- package/packages/server/dist/routes/chat.js.map +1 -1
- package/packages/server/dist/routes/config.d.ts.map +1 -1
- package/packages/server/dist/routes/config.js +39 -7
- package/packages/server/dist/routes/config.js.map +1 -1
- package/packages/server/dist/routes/cron.d.ts.map +1 -1
- package/packages/server/dist/routes/cron.js +65 -8
- package/packages/server/dist/routes/cron.js.map +1 -1
- package/packages/server/dist/routes/dream.d.ts +22 -0
- package/packages/server/dist/routes/dream.d.ts.map +1 -0
- package/packages/server/dist/routes/dream.js +152 -0
- package/packages/server/dist/routes/dream.js.map +1 -0
- package/packages/server/dist/routes/hooks.d.ts +18 -0
- package/packages/server/dist/routes/hooks.d.ts.map +1 -0
- package/packages/server/dist/routes/hooks.js +62 -0
- package/packages/server/dist/routes/hooks.js.map +1 -0
- package/packages/server/dist/routes/listeners.d.ts +10 -0
- package/packages/server/dist/routes/listeners.d.ts.map +1 -0
- package/packages/server/dist/routes/listeners.js +12 -0
- package/packages/server/dist/routes/listeners.js.map +1 -0
- package/packages/server/dist/routes/memories.d.ts.map +1 -1
- package/packages/server/dist/routes/memories.js +55 -3
- package/packages/server/dist/routes/memories.js.map +1 -1
- package/packages/server/dist/routes/org.d.ts.map +1 -1
- package/packages/server/dist/routes/org.js +284 -48
- package/packages/server/dist/routes/org.js.map +1 -1
- package/packages/server/dist/routes/profile.d.ts.map +1 -1
- package/packages/server/dist/routes/profile.js +6 -3
- package/packages/server/dist/routes/profile.js.map +1 -1
- package/packages/server/dist/routes/providers.d.ts.map +1 -1
- package/packages/server/dist/routes/providers.js +66 -7
- package/packages/server/dist/routes/providers.js.map +1 -1
- package/packages/server/dist/routes/questions.d.ts +45 -0
- package/packages/server/dist/routes/questions.d.ts.map +1 -0
- package/packages/server/dist/routes/questions.js +73 -0
- package/packages/server/dist/routes/questions.js.map +1 -0
- package/packages/server/dist/routes/sessions.d.ts.map +1 -1
- package/packages/server/dist/routes/sessions.js +26 -6
- package/packages/server/dist/routes/sessions.js.map +1 -1
- package/packages/server/dist/routes/sleep.d.ts.map +1 -1
- package/packages/server/dist/routes/sleep.js +71 -2
- package/packages/server/dist/routes/sleep.js.map +1 -1
- package/packages/server/dist/routes/terminals.d.ts +25 -0
- package/packages/server/dist/routes/terminals.d.ts.map +1 -0
- package/packages/server/dist/routes/terminals.js +35 -0
- package/packages/server/dist/routes/terminals.js.map +1 -0
- package/packages/server/dist/routes/tools.d.ts.map +1 -1
- package/packages/server/dist/routes/tools.js +140 -6
- package/packages/server/dist/routes/tools.js.map +1 -1
- package/packages/server/dist/routes/updates.d.ts +10 -0
- package/packages/server/dist/routes/updates.d.ts.map +1 -0
- package/packages/server/dist/routes/updates.js +22 -0
- package/packages/server/dist/routes/updates.js.map +1 -0
- package/packages/server/dist/routes/ws.d.ts +11 -5
- package/packages/server/dist/routes/ws.d.ts.map +1 -1
- package/packages/server/dist/routes/ws.js +162 -28
- package/packages/server/dist/routes/ws.js.map +1 -1
- package/packages/server/dist/schemas.d.ts +1125 -211
- package/packages/server/dist/schemas.d.ts.map +1 -1
- package/packages/server/dist/schemas.js +300 -12
- package/packages/server/dist/schemas.js.map +1 -1
- package/packages/server/dist/server.d.ts +7 -1
- package/packages/server/dist/server.d.ts.map +1 -1
- package/packages/server/dist/server.js +186 -3
- package/packages/server/dist/server.js.map +1 -1
- package/packages/server/dist/services/stream.d.ts +89 -5
- package/packages/server/dist/services/stream.d.ts.map +1 -1
- package/packages/server/dist/services/stream.js +9 -20
- package/packages/server/dist/services/stream.js.map +1 -1
- package/packages/server/dist/services/stt.d.ts +65 -0
- package/packages/server/dist/services/stt.d.ts.map +1 -0
- package/packages/server/dist/services/stt.js +306 -0
- package/packages/server/dist/services/stt.js.map +1 -0
- package/packages/server/dist/services/turns.d.ts +49 -0
- package/packages/server/dist/services/turns.d.ts.map +1 -0
- package/packages/server/dist/services/turns.js +138 -0
- package/packages/server/dist/services/turns.js.map +1 -0
- package/packages/server/dist/services/updates.d.ts +99 -0
- package/packages/server/dist/services/updates.d.ts.map +1 -0
- package/packages/server/dist/services/updates.js +316 -0
- package/packages/server/dist/services/updates.js.map +1 -0
- package/packages/server/package.json +1 -1
- package/packages/web/dist/app-icon.svg +2 -0
- package/packages/web/dist/apple-touch-icon.png +0 -0
- package/packages/web/dist/assets/abnfDiagram-O67JEVCF-B4qWcqra.js +1 -0
- package/packages/web/dist/assets/arc-CQult7TN.js +1 -0
- package/packages/web/dist/assets/architectureDiagram-NJMV4G6O-DFTRvl66.js +36 -0
- package/packages/web/dist/assets/blockDiagram-BEXU5L5S-TCFoK_k-.js +140 -0
- package/packages/web/dist/assets/c4Diagram-YGBWAQC7-i5_GqhJa.js +38 -0
- package/packages/web/dist/assets/channel-D_4EmqNR.js +1 -0
- package/packages/web/dist/assets/chunk-2Q5K7J3B-BK6I2wfW.js +1 -0
- package/packages/web/dist/assets/chunk-3FUC2YCW-Dw-TfKT0.js +2 -0
- package/packages/web/dist/assets/chunk-5VM5RSS4-AE_XRNTT.js +15 -0
- package/packages/web/dist/assets/chunk-GTNCS2PH-DO18WaaJ.js +88 -0
- package/packages/web/dist/assets/chunk-GWA4HPMP-3rdjszP_.js +1 -0
- package/packages/web/dist/assets/chunk-JWPE2WC7-C93LH2D0.js +1 -0
- package/packages/web/dist/assets/chunk-NETBCI7D-Dj7O3-H-.js +1 -0
- package/packages/web/dist/assets/chunk-WEXAMYUT-BRFvQUIn.js +1 -0
- package/packages/web/dist/assets/chunk-XXDRQBXY-CXx6HMbz.js +1 -0
- package/packages/web/dist/assets/classDiagram-v2-NBCMYWYE-BGXszxjn.js +217 -0
- package/packages/web/dist/assets/cose-bilkent-JH36ORCC-BAuXqkne.js +1 -0
- package/packages/web/dist/assets/cynefin-OW5HDTMX-plNzhY7J.js +178 -0
- package/packages/web/dist/assets/cynefinDiagram-VND7K2PF-DuPlljFS.js +62 -0
- package/packages/web/dist/assets/cytoscape.esm-Ix0LnXOy.js +331 -0
- package/packages/web/dist/assets/dagre-6A5THRUB-CXzwdR-6.js +4 -0
- package/packages/web/dist/assets/diagram-22UHCM2B-B7iv_V2D.js +200 -0
- package/packages/web/dist/assets/diagram-3UASUU5V-BMvi7gSi.js +24 -0
- package/packages/web/dist/assets/diagram-ATOU4E4O-NJ7EB5Qg.js +3 -0
- package/packages/web/dist/assets/diagram-CDSNMT55-DccMMNJ-.js +30 -0
- package/packages/web/dist/assets/diagram-MLGK6HIB-BbwGHK4g.js +24 -0
- package/packages/web/dist/assets/diagram-MPIPVDR6-BbSSZfM3.js +41 -0
- package/packages/web/dist/assets/draco_decoder-C32yEggz.wasm +0 -0
- package/packages/web/dist/assets/draco_decoder-Z1_iN-Ht.wasm +0 -0
- package/packages/web/dist/assets/draco_decoder-fzg4nYZr.js +34 -0
- package/packages/web/dist/assets/draco_wasm_wrapper-DxJM36Ib.js +117 -0
- package/packages/web/dist/assets/draco_wasm_wrapper-fZCQGLGb.js +116 -0
- package/packages/web/dist/assets/ebnfDiagram-ZINNZB2B-BBfPNM85.js +1 -0
- package/packages/web/dist/assets/elk-276RUBZZ-dM3Y1d2a.js +27 -0
- package/packages/web/dist/assets/erDiagram-OPXOYQCR-iWrUegxy.js +99 -0
- package/packages/web/dist/assets/flowDiagram-KWPJA3E3-B6DYlbkV.js +213 -0
- package/packages/web/dist/assets/ganttDiagram-FUAMR5RP-D7dSWZcC.js +292 -0
- package/packages/web/dist/assets/gitGraphDiagram-X574FWY7-DguFgcbW.js +106 -0
- package/packages/web/dist/assets/graph-Bn3Yngep.js +1 -0
- package/packages/web/dist/assets/index-B1QvSHA5.js +660 -0
- package/packages/web/dist/assets/index-zwMuaz90.css +32 -0
- package/packages/web/dist/assets/infoDiagram-VRGFBTTK-CuiuO3uo.js +2 -0
- package/packages/web/dist/assets/ishikawaDiagram-OU5B5YK6-wBS1_40m.js +70 -0
- package/packages/web/dist/assets/journeyDiagram-ZHPQQLJL-Bd1YE2gP.js +139 -0
- package/packages/web/dist/assets/kanban-definition-PNTS6WVX-BlQzv_X1.js +89 -0
- package/packages/web/dist/assets/katex-C5jXJg4s.js +257 -0
- package/packages/web/dist/assets/mermaid.core-p3CwmLUb.js +313 -0
- package/packages/web/dist/assets/mindmap-definition-NLK3R4M7-BlticnKl.js +96 -0
- package/packages/web/dist/assets/pegDiagram-GJSIUBJH-BbXsP47B.js +1 -0
- package/packages/web/dist/assets/pieDiagram-5QR66LMP-BooBSBug.js +39 -0
- package/packages/web/dist/assets/quadrantDiagram-O4NWA36T-CkXC6VCh.js +7 -0
- package/packages/web/dist/assets/railroadDiagram-XR7U4H2S-BphzYiW-.js +1 -0
- package/packages/web/dist/assets/requirementDiagram-PLB6GJNP-PWpD4zpQ.js +84 -0
- package/packages/web/dist/assets/sankeyDiagram-IPEJSGJF-5Qm39Vfz.js +40 -0
- package/packages/web/dist/assets/scene-D4LPicHk.js +4620 -0
- package/packages/web/dist/assets/sequenceDiagram-PO4LG4MO-DA673J_w.js +169 -0
- package/packages/web/dist/assets/sizeCapture-INFHLROL-1KsNwBhd.js +1 -0
- package/packages/web/dist/assets/stateDiagram-v2-GCMORJYK-D7O0UyHr.js +291 -0
- package/packages/web/dist/assets/swimlanes-2SLR337P-culFSb1R.js +1 -0
- package/packages/web/dist/assets/swimlanesDiagram-TC7HE7FX-kzTmK2BP.js +8 -0
- package/packages/web/dist/assets/timeline-definition-EJHVYXUP-6GIO5p-k.js +120 -0
- package/packages/web/dist/assets/usecaseDiagram-POWQR4AR-BAGHDBzZ.js +370 -0
- package/packages/web/dist/assets/vennDiagram-UO4OBE2U-PbtBvPRE.js +34 -0
- package/packages/web/dist/assets/wardleyDiagram-VNRHLVJA-9scbtDvX.js +78 -0
- package/packages/web/dist/assets/xychartDiagram-PMCCYNJV-C51PiF4p.js +7 -0
- package/packages/web/dist/draco/draco_decoder.js +33 -0
- package/packages/web/dist/draco/draco_decoder.wasm +0 -0
- package/packages/web/dist/draco/draco_wasm_wrapper.js +116 -0
- package/packages/web/dist/favicon-16.png +0 -0
- package/packages/web/dist/favicon-32.png +0 -0
- package/packages/web/dist/favicon-48.png +0 -0
- package/packages/web/dist/favicon.ico +0 -0
- package/packages/web/dist/favicon.svg +1 -1
- package/packages/web/dist/icon-192.png +0 -0
- package/packages/web/dist/icon-512.png +0 -0
- package/packages/web/dist/index.html +12 -4
- package/packages/web/dist/logo-light.svg +1 -1
- package/packages/web/dist/logo-mono.svg +2 -0
- package/packages/web/dist/logo-stacked-light.svg +2 -0
- package/packages/web/dist/logo-stacked.svg +2 -0
- package/packages/web/dist/logo-white.svg +2 -0
- package/packages/web/dist/logo.svg +1 -1
- package/packages/web/dist/mark-light.svg +1 -1
- package/packages/web/dist/mark-mono.svg +2 -0
- package/packages/web/dist/mark-small-light.svg +2 -0
- package/packages/web/dist/mark-small.svg +2 -0
- package/packages/web/dist/mark-white.svg +2 -0
- package/packages/web/dist/mark.svg +1 -1
- package/packages/web/dist/models/LICENSE.txt +5 -0
- package/packages/web/dist/models/brain.glb +0 -0
- package/packages/web/dist/site.webmanifest +23 -0
- package/packages/web/dist/wordmark-light.svg +2 -0
- package/packages/web/dist/wordmark.svg +2 -0
- package/packages/web/package.json +1 -1
- package/scripts/rookery.mjs +204 -122
- package/scripts/updater.mjs +227 -0
- package/packages/cli/dist/tui/components/Wordmark.d.ts +0 -35
- package/packages/cli/dist/tui/components/Wordmark.d.ts.map +0 -1
- package/packages/cli/dist/tui/components/Wordmark.js +0 -81
- package/packages/cli/dist/tui/components/Wordmark.js.map +0 -1
- package/packages/core/dist/agents/orchestrator.d.ts +0 -24
- package/packages/core/dist/agents/orchestrator.d.ts.map +0 -1
- package/packages/core/dist/agents/orchestrator.js +0 -88
- package/packages/core/dist/agents/orchestrator.js.map +0 -1
- package/packages/core/dist/agents/roles.d.ts +0 -21
- package/packages/core/dist/agents/roles.d.ts.map +0 -1
- package/packages/core/dist/agents/roles.js +0 -81
- package/packages/core/dist/agents/roles.js.map +0 -1
- package/packages/core/dist/agents/team.d.ts +0 -105
- package/packages/core/dist/agents/team.d.ts.map +0 -1
- package/packages/core/dist/agents/team.js +0 -623
- package/packages/core/dist/agents/team.js.map +0 -1
- package/packages/core/dist/providers/codex.d.ts +0 -10
- package/packages/core/dist/providers/codex.d.ts.map +0 -1
- package/packages/core/dist/providers/codex.js +0 -375
- package/packages/core/dist/providers/codex.js.map +0 -1
- package/packages/core/dist/tools/browser.d.ts +0 -20
- package/packages/core/dist/tools/browser.d.ts.map +0 -1
- package/packages/core/dist/tools/browser.js +0 -72
- package/packages/core/dist/tools/browser.js.map +0 -1
- package/packages/server/dist/routes/agents.d.ts +0 -5
- package/packages/server/dist/routes/agents.d.ts.map +0 -1
- package/packages/server/dist/routes/agents.js +0 -6
- package/packages/server/dist/routes/agents.js.map +0 -1
- package/packages/server/dist/routes/team.d.ts +0 -11
- package/packages/server/dist/routes/team.d.ts.map +0 -1
- package/packages/server/dist/routes/team.js +0 -36
- package/packages/server/dist/routes/team.js.map +0 -1
- package/packages/web/dist/assets/3d-force-graph-BPZmoydi.js +0 -1163
- package/packages/web/dist/assets/index-IBSTzK7-.js +0 -1255
- package/packages/web/dist/assets/index-qUXUui7W.css +0 -1
- package/packages/web/dist/assets/three-spritetext-B9ZIW7c-.js +0 -4
- package/packages/web/dist/assets/three.module-cmFfBtHS.js +0 -4228
|
@@ -6,9 +6,48 @@
|
|
|
6
6
|
* its own reports and write to its manager, but it cannot hire anyone or
|
|
7
7
|
* restructure the company.
|
|
8
8
|
*/
|
|
9
|
+
/**
|
|
10
|
+
* Everything the board watcher may call - an allowlist, not a set of
|
|
11
|
+
* exclusions, and deliberately so. The watcher runs unattended, on a clock,
|
|
12
|
+
* with nobody reading along, so a tool added to this file later must be
|
|
13
|
+
* argued onto this list rather than silently inherited by it. Nothing here
|
|
14
|
+
* starts work, moves a card, or changes the company: the watcher's whole job
|
|
15
|
+
* is to look at the board and, when something genuinely needs a person, say
|
|
16
|
+
* so once. Acting on what it finds is the person's call, not its own.
|
|
17
|
+
*/
|
|
18
|
+
const WATCH_TOOLS = new Set([
|
|
19
|
+
'org_overview',
|
|
20
|
+
'list_tasks',
|
|
21
|
+
'list_assignments',
|
|
22
|
+
'assignment_status',
|
|
23
|
+
'agent_performance',
|
|
24
|
+
'read_mail',
|
|
25
|
+
'read_mail_thread',
|
|
26
|
+
'send_mail',
|
|
27
|
+
'notify',
|
|
28
|
+
]);
|
|
9
29
|
const BOTH = ['assistant', 'agent'];
|
|
10
30
|
const ASSISTANT_ONLY = ['assistant'];
|
|
11
31
|
const str = (description) => ({ type: 'string', description });
|
|
32
|
+
/**
|
|
33
|
+
* The one rule for naming work, word for word wherever a name is asked for.
|
|
34
|
+
* Whoever writes a brief can name it; a name nobody can write is a brief
|
|
35
|
+
* nobody understood (decision E16), so there is no model call for this and
|
|
36
|
+
* no fallback worth advertising.
|
|
37
|
+
*/
|
|
38
|
+
const TITLE_RULE = 'A name for this work: three to eight words, no full stop, a noun phrase or an imperative, ' +
|
|
39
|
+
'in the language of the brief. "Login bug in the password reset", not "Please have a look at ' +
|
|
40
|
+
'why the login sometimes". Never the brief itself.';
|
|
41
|
+
/**
|
|
42
|
+
* How a provider argument is described to the model.
|
|
43
|
+
*
|
|
44
|
+
* Deliberately not an enum: every turn runs on the same harness and the id
|
|
45
|
+
* only says what it is pointed at, so the set is open - the two built-ins
|
|
46
|
+
* plus one id per provider profile somebody configured. A fixed enum here
|
|
47
|
+
* would reject a backend the moment it was added on the Providers page.
|
|
48
|
+
* The controller checks the id against the registry instead.
|
|
49
|
+
*/
|
|
50
|
+
const PROVIDER_HINT = 'Provider id: "claude" for the Claude login, "codex" for ChatGPT, or the id of a configured provider profile.';
|
|
12
51
|
export const ORG_TOOLS = [
|
|
13
52
|
{
|
|
14
53
|
name: 'read_profile',
|
|
@@ -24,23 +63,28 @@ export const ORG_TOOLS = [
|
|
|
24
63
|
},
|
|
25
64
|
{
|
|
26
65
|
name: 'org_overview',
|
|
27
|
-
description: 'The company you run: teams, agents (with slug, title and manager), projects, and
|
|
66
|
+
description: 'The company you run: teams, agents (with slug, title and manager), projects, and the work ' +
|
|
28
67
|
'currently running. Call this before delegating when you are unsure who does what.',
|
|
29
68
|
inputSchema: { type: 'object', properties: {}, additionalProperties: false },
|
|
30
69
|
audience: BOTH,
|
|
31
70
|
},
|
|
32
71
|
{
|
|
33
72
|
name: 'assign',
|
|
34
|
-
description: 'Hand a task to one agent and wait for the finished result.
|
|
35
|
-
'
|
|
36
|
-
'
|
|
37
|
-
|
|
38
|
-
'
|
|
39
|
-
'
|
|
73
|
+
description: 'Hand a task to one agent and wait for the finished result. It goes on the board as a task ' +
|
|
74
|
+
'of its own, so the work is visible while it runs and afterwards; handed on from inside a ' +
|
|
75
|
+
'task, it becomes a subtask of that one. The agent works in a separate process with no ' +
|
|
76
|
+
'access to this conversation, so the instruction must be self-contained: restate every ' +
|
|
77
|
+
'fact, file and constraint it needs. Call assign several times in one message to run agents ' +
|
|
78
|
+
"in parallel. Returns the agent's complete report. With wait=false it returns at once and " +
|
|
79
|
+
'the agent keeps working in the background; check on it with assignment_status. In a chat, ' +
|
|
80
|
+
'name yourself as the agent with wait=false to spin off real work in the background while ' +
|
|
81
|
+
'the conversation keeps going - your report posts back into the same chat once it finishes. ' +
|
|
82
|
+
'Handing work to yourself must use wait=false.',
|
|
40
83
|
inputSchema: {
|
|
41
84
|
type: 'object',
|
|
42
85
|
properties: {
|
|
43
86
|
agent: str('Agent slug or name.'),
|
|
87
|
+
title: str(TITLE_RULE),
|
|
44
88
|
task: str('The full, self-contained instruction.'),
|
|
45
89
|
project: str("Project name or id. The agent works in that project's directory. Optional."),
|
|
46
90
|
wait: {
|
|
@@ -48,17 +92,17 @@ export const ORG_TOOLS = [
|
|
|
48
92
|
description: 'Default true. False hands the task off and returns immediately.',
|
|
49
93
|
},
|
|
50
94
|
},
|
|
51
|
-
required: ['agent', 'task'],
|
|
95
|
+
required: ['agent', 'title', 'task'],
|
|
52
96
|
additionalProperties: false,
|
|
53
97
|
},
|
|
54
98
|
audience: BOTH,
|
|
55
99
|
},
|
|
56
100
|
{
|
|
57
101
|
name: 'assignment_status',
|
|
58
|
-
description: 'Status, duration and result of one
|
|
102
|
+
description: 'Status, duration and result of one run by id.',
|
|
59
103
|
inputSchema: {
|
|
60
104
|
type: 'object',
|
|
61
|
-
properties: { id: str('
|
|
105
|
+
properties: { id: str('Run id.') },
|
|
62
106
|
required: ['id'],
|
|
63
107
|
additionalProperties: false,
|
|
64
108
|
},
|
|
@@ -66,12 +110,12 @@ export const ORG_TOOLS = [
|
|
|
66
110
|
},
|
|
67
111
|
{
|
|
68
112
|
name: 'cancel_assignment',
|
|
69
|
-
description: 'Stop a pending or running
|
|
113
|
+
description: 'Stop a pending or running task. The agent process is killed and the run ends ' +
|
|
70
114
|
'as cancelled; whatever it had written so far is lost. Use it for a stuck or runaway agent, ' +
|
|
71
115
|
'or when the user changes their mind.',
|
|
72
116
|
inputSchema: {
|
|
73
117
|
type: 'object',
|
|
74
|
-
properties: { id: str('
|
|
118
|
+
properties: { id: str('Run id or prefix.') },
|
|
75
119
|
required: ['id'],
|
|
76
120
|
additionalProperties: false,
|
|
77
121
|
},
|
|
@@ -79,7 +123,7 @@ export const ORG_TOOLS = [
|
|
|
79
123
|
},
|
|
80
124
|
{
|
|
81
125
|
name: 'list_assignments',
|
|
82
|
-
description: 'The
|
|
126
|
+
description: 'The history of what ran: for whom, how it ended, how long it took. Newest first. ' +
|
|
83
127
|
'Filter by agent, status or project when the question is about one of them.',
|
|
84
128
|
inputSchema: {
|
|
85
129
|
type: 'object',
|
|
@@ -94,31 +138,49 @@ export const ORG_TOOLS = [
|
|
|
94
138
|
audience: ASSISTANT_ONLY,
|
|
95
139
|
},
|
|
96
140
|
{
|
|
97
|
-
name: '
|
|
98
|
-
description: '
|
|
99
|
-
|
|
100
|
-
'
|
|
141
|
+
name: 'send_mail',
|
|
142
|
+
description: 'Send company mail: a subject, a body, To and optionally Cc. Addressing an agent\'s To starts a ' +
|
|
143
|
+
'real run of that agent with the mail as its task, and its finished result comes back to you ' +
|
|
144
|
+
'automatically as a reply. Cc only delivers to the mailbox - it never starts anything, so loop ' +
|
|
145
|
+
'someone in on Cc when they should just know. Address "user" to write to the user directly, or ' +
|
|
146
|
+
'"assistant" for the assistant. Not for handing out work you need to wait on - use assign for that.',
|
|
101
147
|
inputSchema: {
|
|
102
148
|
type: 'object',
|
|
103
149
|
properties: {
|
|
104
|
-
to: str('
|
|
105
|
-
|
|
150
|
+
to: str('Comma-separated agent slugs/names, "user" and/or "assistant".'),
|
|
151
|
+
cc: str('Comma-separated agent slugs/names, "user" and/or "assistant". Optional.'),
|
|
152
|
+
subject: str('Subject line.'),
|
|
153
|
+
body: str('The mail body.'),
|
|
154
|
+
inReplyTo: str('Id of the mail this replies to, to keep the thread together. Optional.'),
|
|
106
155
|
},
|
|
107
|
-
required: ['to', '
|
|
156
|
+
required: ['to', 'subject', 'body'],
|
|
108
157
|
additionalProperties: false,
|
|
109
158
|
},
|
|
110
159
|
audience: BOTH,
|
|
111
160
|
},
|
|
112
161
|
{
|
|
113
|
-
name: '
|
|
114
|
-
description: 'Unread
|
|
162
|
+
name: 'read_mail',
|
|
163
|
+
description: 'Unread mail addressed to you, by To or Cc. Reading marks it as read.',
|
|
115
164
|
inputSchema: { type: 'object', properties: {}, additionalProperties: false },
|
|
116
165
|
audience: BOTH,
|
|
117
166
|
},
|
|
167
|
+
{
|
|
168
|
+
name: 'read_mail_thread',
|
|
169
|
+
description: 'The full text of one mail conversation, oldest first - only the mails you sent or were To or ' +
|
|
170
|
+
'Cc on. A mail that opens a task names its thread; call this when the answer depends on ' +
|
|
171
|
+
'what was already said, and skip it when the mail stands on its own.',
|
|
172
|
+
inputSchema: {
|
|
173
|
+
type: 'object',
|
|
174
|
+
properties: { thread: str('Thread id, or the id of any mail in it.') },
|
|
175
|
+
required: ['thread'],
|
|
176
|
+
additionalProperties: false,
|
|
177
|
+
},
|
|
178
|
+
audience: BOTH,
|
|
179
|
+
},
|
|
118
180
|
// ASSISTANT_ONLY on purpose: an agent that thinks something deserves the
|
|
119
|
-
// user's attention
|
|
120
|
-
//
|
|
121
|
-
//
|
|
181
|
+
// user's attention mails its manager, same as any other report, or the
|
|
182
|
+
// user directly (send_mail allows that). Only the assistant decides
|
|
183
|
+
// whether that is also worth a push to the phone.
|
|
122
184
|
{
|
|
123
185
|
name: 'notify',
|
|
124
186
|
description: 'Send the user a message over whatever notification channel is open right now, even when no ' +
|
|
@@ -140,19 +202,103 @@ export const ORG_TOOLS = [
|
|
|
140
202
|
},
|
|
141
203
|
audience: ASSISTANT_ONLY,
|
|
142
204
|
},
|
|
205
|
+
{
|
|
206
|
+
name: 'ask_user',
|
|
207
|
+
description: 'Put one question to the user and wait for the answer before carrying on. The question ' +
|
|
208
|
+
'appears wherever they are - the web chat, the terminal, their phone - and any of those may ' +
|
|
209
|
+
'answer it. Ask only when the answer changes what you do next and you cannot find it out ' +
|
|
210
|
+
'yourself: a fork with real consequences, a missing fact only they have, a destructive step ' +
|
|
211
|
+
'worth confirming. Never ask for something you can look up, decide on your own merits, or ' +
|
|
212
|
+
'simply state and be corrected on. Offer two to four concrete options, each a choice you are ' +
|
|
213
|
+
'ready to act on, and keep the labels short enough for a phone button. This call blocks; if ' +
|
|
214
|
+
'nobody answers in time it comes back saying so and you carry on with your best judgement.',
|
|
215
|
+
inputSchema: {
|
|
216
|
+
type: 'object',
|
|
217
|
+
properties: {
|
|
218
|
+
header: str('Two or three words naming the decision, e.g. "Deploy target".'),
|
|
219
|
+
question: str('The question itself, one or two sentences.'),
|
|
220
|
+
options: {
|
|
221
|
+
type: 'array',
|
|
222
|
+
minItems: 2,
|
|
223
|
+
maxItems: 4,
|
|
224
|
+
description: 'Two to four answers to choose from.',
|
|
225
|
+
items: {
|
|
226
|
+
type: 'object',
|
|
227
|
+
properties: {
|
|
228
|
+
label: str('The button text. A few words.'),
|
|
229
|
+
description: str('One line of detail under the label. Optional.'),
|
|
230
|
+
},
|
|
231
|
+
required: ['label'],
|
|
232
|
+
additionalProperties: false,
|
|
233
|
+
},
|
|
234
|
+
},
|
|
235
|
+
multiSelect: {
|
|
236
|
+
type: 'boolean',
|
|
237
|
+
description: 'Default false. True when several options may be picked at once.',
|
|
238
|
+
},
|
|
239
|
+
},
|
|
240
|
+
required: ['header', 'question', 'options'],
|
|
241
|
+
additionalProperties: false,
|
|
242
|
+
},
|
|
243
|
+
audience: ASSISTANT_ONLY,
|
|
244
|
+
needsPerson: true,
|
|
245
|
+
},
|
|
143
246
|
{
|
|
144
247
|
name: 'use_skill',
|
|
145
|
-
description: 'Open
|
|
146
|
-
'
|
|
147
|
-
'skill before starting such a task, then follow it.',
|
|
248
|
+
description: 'Open a skill: a written procedure for a particular kind of task. Takes a name from the list ' +
|
|
249
|
+
'in your instructions or one that find_skill turned up. Returns the full instructions and the ' +
|
|
250
|
+
'files that come with them. Open the matching skill before starting such a task, then follow it.',
|
|
148
251
|
inputSchema: {
|
|
149
252
|
type: 'object',
|
|
150
|
-
properties: { name: str('The skill name from the list.') },
|
|
253
|
+
properties: { name: str('The skill name from the list, or from a find_skill result.') },
|
|
151
254
|
required: ['name'],
|
|
152
255
|
additionalProperties: false,
|
|
153
256
|
},
|
|
154
257
|
audience: BOTH,
|
|
155
258
|
},
|
|
259
|
+
// The shelf the instructions cannot carry. Hundreds of skills are installed
|
|
260
|
+
// in the Claude Code on this machine; the prompt says how many and from
|
|
261
|
+
// where, this finds the one that fits.
|
|
262
|
+
{
|
|
263
|
+
name: 'find_skill',
|
|
264
|
+
description: 'Search the skills installed on this machine that are too many to list in your instructions. ' +
|
|
265
|
+
'Use it when a task sounds like a procedure somebody has already written down - a file format, ' +
|
|
266
|
+
'a framework, a tool, a kind of document. Returns names with their one-line description; open ' +
|
|
267
|
+
'one with use_skill. Searching costs nothing, so look before working something out from scratch.',
|
|
268
|
+
inputSchema: {
|
|
269
|
+
type: 'object',
|
|
270
|
+
properties: { query: str('What the task is about, e.g. "pdf", "scroll animation", "vercel deploy".') },
|
|
271
|
+
required: ['query'],
|
|
272
|
+
additionalProperties: false,
|
|
273
|
+
},
|
|
274
|
+
audience: BOTH,
|
|
275
|
+
},
|
|
276
|
+
// The other half of remembering. A memory records that something is true;
|
|
277
|
+
// this records how something is done - the part that otherwise gets worked
|
|
278
|
+
// out from scratch every single time.
|
|
279
|
+
{
|
|
280
|
+
name: 'write_skill',
|
|
281
|
+
description: 'Write down how a kind of task is done, so that next time it is not worked out from ' +
|
|
282
|
+
'scratch. Use it when you have just solved something you will clearly meet again, when you ' +
|
|
283
|
+
'had to discover a procedure the hard way, or when the user has corrected the same thing ' +
|
|
284
|
+
'twice - that correction belongs in a skill. Write the steps you would want to be handed: ' +
|
|
285
|
+
'concrete commands, paths, names and the traps you hit, not a summary of what you did. ' +
|
|
286
|
+
'Writing over a skill you wrote earlier is how you improve one, so revise instead of ' +
|
|
287
|
+
'inventing a second name for the same subject. Skills the user wrote are theirs and cannot ' +
|
|
288
|
+
'be overwritten. Not for one-off notes about a single task - that is what memory is for.',
|
|
289
|
+
inputSchema: {
|
|
290
|
+
type: 'object',
|
|
291
|
+
properties: {
|
|
292
|
+
name: str('Short name, lower case with dashes, e.g. release-checklist.'),
|
|
293
|
+
description: str('One line saying when this skill should be opened. It is all the index shows.'),
|
|
294
|
+
body: str('The instructions themselves, in Markdown. Steps someone can follow, not prose.'),
|
|
295
|
+
audience: str('assistant, agents or both. Default both.'),
|
|
296
|
+
},
|
|
297
|
+
required: ['name', 'description', 'body'],
|
|
298
|
+
additionalProperties: false,
|
|
299
|
+
},
|
|
300
|
+
audience: BOTH,
|
|
301
|
+
},
|
|
156
302
|
{
|
|
157
303
|
name: 'tool_servers',
|
|
158
304
|
description: 'The tool hub: which MCP servers exist (computer control, browser, filesystem, GitHub, ' +
|
|
@@ -183,23 +329,35 @@ export const ORG_TOOLS = [
|
|
|
183
329
|
{
|
|
184
330
|
name: 'hire_agent',
|
|
185
331
|
description: 'Create a permanent agent in the company. Give it a clear role: a name, a job title, and ' +
|
|
186
|
-
'standing instructions describing how it works and what it is responsible for.'
|
|
332
|
+
'standing instructions describing how it works and what it is responsible for. With ' +
|
|
333
|
+
'`replaces` set, this is a stage-4 personnel action instead: archives that agent and its ' +
|
|
334
|
+
'memory, generates a handover (or uses the one you pass), hires the successor with the ' +
|
|
335
|
+
'name/title/instructions given, and carries over its team, manager and reports. Only call ' +
|
|
336
|
+
'that after the user has approved the replacement agent_performance proposed.',
|
|
187
337
|
inputSchema: {
|
|
188
338
|
type: 'object',
|
|
189
339
|
properties: {
|
|
190
|
-
name: str('Display name, e.g. "Mara".'),
|
|
340
|
+
name: str('Display name, e.g. "Mara". With replaces set, must differ from the outgoing agent\'s name.'),
|
|
191
341
|
title: str('Job title, e.g. "Backend Engineer".'),
|
|
192
342
|
instructions: str('Standing instructions for the role, two to six sentences.'),
|
|
343
|
+
voice: str('Two to four sentences on HOW this person writes - never what they can do, which stays in ' +
|
|
344
|
+
"instructions. When the user described a voice, use it; when they said nothing, invent one " +
|
|
345
|
+
'yourself that fits the role rather than leaving it out. With replaces set, write a new voice ' +
|
|
346
|
+
"- a successor's is never the outgoing agent's. Omit only when the user explicitly wants a " +
|
|
347
|
+
'plain, colourless agent.'),
|
|
193
348
|
slug: str('Short handle, lowercase with dashes. Derived from the name when omitted.'),
|
|
194
|
-
team: str('Team name or id. Optional.'),
|
|
195
|
-
manager: str('Manager agent slug. Omit for an agent reporting to you directly.'),
|
|
196
|
-
provider:
|
|
349
|
+
team: str('Team name or id. Optional. Ignored when replaces is set (inherited instead).'),
|
|
350
|
+
manager: str('Manager agent slug. Omit for an agent reporting to you directly. Ignored when replaces is set.'),
|
|
351
|
+
provider: str(PROVIDER_HINT + ' Optional.'),
|
|
197
352
|
model: str('Model name for that provider. Optional.'),
|
|
198
353
|
permission: {
|
|
199
354
|
type: 'string',
|
|
200
355
|
enum: ['chat', 'read', 'write', 'full'],
|
|
201
356
|
description: 'What the agent may do on the machine. Optional; defaults to the company default.',
|
|
202
357
|
},
|
|
358
|
+
replaces: str('Slug of an agent to retire and replace with this one (stage 4). Their team, manager and ' +
|
|
359
|
+
'reports pass to the successor; the outgoing slug is never freed. Optional.'),
|
|
360
|
+
handover: str('Override the auto-generated handover document for the successor, when replaces is set. Optional.'),
|
|
203
361
|
},
|
|
204
362
|
required: ['name', 'title', 'instructions'],
|
|
205
363
|
additionalProperties: false,
|
|
@@ -210,7 +368,10 @@ export const ORG_TOOLS = [
|
|
|
210
368
|
name: 'update_agent',
|
|
211
369
|
description: 'Change an existing agent: move it to a team, give it a manager, rewrite its title or ' +
|
|
212
370
|
'standing instructions, change provider, model or permission, or archive it. Only the ' +
|
|
213
|
-
'fields you pass change.'
|
|
371
|
+
'fields you pass change. An agent at escalation stage 1 or higher (check with ' +
|
|
372
|
+
'agent_performance) needs `reason` set to change its instructions - that reason is written ' +
|
|
373
|
+
'to its personnel record as a reconfig, together with the before/after text, so the change ' +
|
|
374
|
+
'stays accountable and reversible.',
|
|
214
375
|
inputSchema: {
|
|
215
376
|
type: 'object',
|
|
216
377
|
properties: {
|
|
@@ -220,16 +381,51 @@ export const ORG_TOOLS = [
|
|
|
220
381
|
instructions: str('New standing instructions. Optional.'),
|
|
221
382
|
team: str('Team name or id, or "none" to remove from its team. Optional.'),
|
|
222
383
|
manager: str('Manager slug, or "assistant" to report to you directly. Optional.'),
|
|
223
|
-
provider:
|
|
384
|
+
provider: str(PROVIDER_HINT + ' Optional.'),
|
|
224
385
|
model: str('Optional.'),
|
|
225
386
|
permission: { type: 'string', enum: ['chat', 'read', 'write', 'full'], description: 'Optional.' },
|
|
226
387
|
archived: { type: 'boolean', description: 'true retires the agent, false brings it back. Optional.' },
|
|
388
|
+
reason: str('Why the instructions are changing. Required to change instructions once the agent is at ' +
|
|
389
|
+
'escalation stage 1 or higher; logged to the personnel record as a reconfig either way ' +
|
|
390
|
+
'when instructions change and this is set.'),
|
|
227
391
|
},
|
|
228
392
|
required: ['agent'],
|
|
229
393
|
additionalProperties: false,
|
|
230
394
|
},
|
|
231
395
|
audience: ASSISTANT_ONLY,
|
|
232
396
|
},
|
|
397
|
+
{
|
|
398
|
+
name: 'review_assignment',
|
|
399
|
+
description: 'Add or correct your own judgment of one finished run - the same review that runs ' +
|
|
400
|
+
'automatically after every run, but by hand: after the user disagreed with the automatic ' +
|
|
401
|
+
'one, or for a run from before this existed. Upserts: a second call for the same run ' +
|
|
402
|
+
'replaces your earlier judgment rather than adding a second one.',
|
|
403
|
+
inputSchema: {
|
|
404
|
+
type: 'object',
|
|
405
|
+
properties: {
|
|
406
|
+
id: str('Run id or prefix.'),
|
|
407
|
+
overall: { type: 'number', description: '1 to 5. 5 as good as a good colleague would do it, 1 unusable or invented.' },
|
|
408
|
+
comment: str('One to three sentences on what was good or bad. Optional.'),
|
|
409
|
+
},
|
|
410
|
+
required: ['id', 'overall'],
|
|
411
|
+
additionalProperties: false,
|
|
412
|
+
},
|
|
413
|
+
audience: ASSISTANT_ONLY,
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
name: 'agent_performance',
|
|
417
|
+
description: 'One agent\'s standing: review history, rolling average, trend, escalation stage, failure ' +
|
|
418
|
+
'rate, and its personnel record (notes, reconfigs, probation, replacement proposals). This ' +
|
|
419
|
+
'is the "development conversation" tool - open it before deciding whether a weak run is a ' +
|
|
420
|
+
'pattern or a one-off, and before update_agent on a flagged agent.',
|
|
421
|
+
inputSchema: {
|
|
422
|
+
type: 'object',
|
|
423
|
+
properties: { agent: str('Agent slug or name.') },
|
|
424
|
+
required: ['agent'],
|
|
425
|
+
additionalProperties: false,
|
|
426
|
+
},
|
|
427
|
+
audience: ASSISTANT_ONLY,
|
|
428
|
+
},
|
|
233
429
|
{
|
|
234
430
|
name: 'update_team',
|
|
235
431
|
description: 'Rename a team, change its purpose, or name its lead.',
|
|
@@ -249,12 +445,12 @@ export const ORG_TOOLS = [
|
|
|
249
445
|
{
|
|
250
446
|
name: 'create_task',
|
|
251
447
|
description: 'Put a task on the company board without running it yet. Use this for work the user ' +
|
|
252
|
-
'wants tracked, or for anything bigger than one quick
|
|
448
|
+
'wants tracked, or for anything bigger than one quick hand-off. Then plan_task decides ' +
|
|
253
449
|
'who does it and whether to split it, and run_task executes it.',
|
|
254
450
|
inputSchema: {
|
|
255
451
|
type: 'object',
|
|
256
452
|
properties: {
|
|
257
|
-
title: str(
|
|
453
|
+
title: str(TITLE_RULE),
|
|
258
454
|
description: str('Everything an agent needs to do the task: goal, constraints, files, definition of done.'),
|
|
259
455
|
project: str('Project name or id. Optional.'),
|
|
260
456
|
priority: { type: 'string', enum: ['low', 'normal', 'high'], description: 'Optional, default normal.' },
|
|
@@ -271,7 +467,7 @@ export const ORG_TOOLS = [
|
|
|
271
467
|
inputSchema: {
|
|
272
468
|
type: 'object',
|
|
273
469
|
properties: {
|
|
274
|
-
status: str('Comma-separated statuses to include (open, planned, running, done, failed, cancelled). Optional.'),
|
|
470
|
+
status: str('Comma-separated statuses to include (open, planned, running, blocked, done, failed, cancelled). Optional.'),
|
|
275
471
|
},
|
|
276
472
|
additionalProperties: false,
|
|
277
473
|
},
|
|
@@ -279,7 +475,8 @@ export const ORG_TOOLS = [
|
|
|
279
475
|
},
|
|
280
476
|
{
|
|
281
477
|
name: 'update_task',
|
|
282
|
-
description: 'Edit a task: title, description, priority, assignee, or
|
|
478
|
+
description: 'Edit a task: title, description, priority, assignee, or set its status by hand - done, ' +
|
|
479
|
+
'cancelled, or blocked while it waits for an answer.',
|
|
283
480
|
inputSchema: {
|
|
284
481
|
type: 'object',
|
|
285
482
|
properties: {
|
|
@@ -288,7 +485,11 @@ export const ORG_TOOLS = [
|
|
|
288
485
|
description: str('Optional.'),
|
|
289
486
|
priority: { type: 'string', enum: ['low', 'normal', 'high'], description: 'Optional.' },
|
|
290
487
|
assignee: str('Agent slug, or "none". Optional.'),
|
|
291
|
-
status: {
|
|
488
|
+
status: {
|
|
489
|
+
type: 'string',
|
|
490
|
+
enum: ['open', 'done', 'cancelled', 'blocked'],
|
|
491
|
+
description: 'Optional. "blocked" means it waits for an answer.',
|
|
492
|
+
},
|
|
292
493
|
result: str('What was done, when closing by hand. Optional.'),
|
|
293
494
|
},
|
|
294
495
|
required: ['id'],
|
|
@@ -316,7 +517,7 @@ export const ORG_TOOLS = [
|
|
|
316
517
|
{
|
|
317
518
|
name: 'run_task',
|
|
318
519
|
description: 'Execute a task from the board and wait for the outcome. A task without a plan is planned ' +
|
|
319
|
-
'first. Subtasks run
|
|
520
|
+
'first. Subtasks run in parallel in dependency order; their reports come back ' +
|
|
320
521
|
'combined. This is the right tool for anything that should be tracked on the board.',
|
|
321
522
|
inputSchema: {
|
|
322
523
|
type: 'object',
|
|
@@ -343,7 +544,7 @@ export const ORG_TOOLS = [
|
|
|
343
544
|
},
|
|
344
545
|
{
|
|
345
546
|
name: 'create_project',
|
|
346
|
-
description: 'Create a project. With a path,
|
|
547
|
+
description: 'Create a project. With a path, work on it runs inside that directory; without one, ' +
|
|
347
548
|
'agents work in the scratch workspace.',
|
|
348
549
|
inputSchema: {
|
|
349
550
|
type: 'object',
|
|
@@ -379,7 +580,7 @@ export const ORG_TOOLS = [
|
|
|
379
580
|
name: 'project_mcp_servers',
|
|
380
581
|
description: "The MCP servers listed in a project's own .mcp.json - the same file a person's own Claude " +
|
|
381
582
|
'Code session in that folder would read - and whether they are trusted yet. An untrusted or ' +
|
|
382
|
-
'changed file never starts its servers for
|
|
583
|
+
'changed file never starts its servers for a run. Call this before trust_project_mcp.',
|
|
383
584
|
inputSchema: {
|
|
384
585
|
type: 'object',
|
|
385
586
|
properties: { project: str('Project name or id.') },
|
|
@@ -391,7 +592,7 @@ export const ORG_TOOLS = [
|
|
|
391
592
|
{
|
|
392
593
|
name: 'trust_project_mcp',
|
|
393
594
|
description: "Approve or revoke a project's own .mcp.json, so its MCP servers do or do not start for " +
|
|
394
|
-
"
|
|
595
|
+
"runs in that project. This starts real processes from a file inside the project's " +
|
|
395
596
|
'own folder, so show the user the server list and command lines from project_mcp_servers ' +
|
|
396
597
|
'before approving. A later edit to .mcp.json needs approving again; revoke turns the ' +
|
|
397
598
|
'servers off again without touching the file.',
|
|
@@ -419,7 +620,10 @@ export const ORG_TOOLS = [
|
|
|
419
620
|
'...", "every Friday at 17:00, have Mara ...", or a single later run (once=true) for ' +
|
|
420
621
|
'"tomorrow at 15:00 remind me ...". By default you run the prompt yourself, as a turn of ' +
|
|
421
622
|
'your own in a conversation dedicated to the job, with all your tools; name an agent to ' +
|
|
422
|
-
'have
|
|
623
|
+
'have an agent run it instead. The outcome of every run lands in your inbox; a ' +
|
|
624
|
+
'one-time run you do yourself (once=true, no agent) also replies directly in the ' +
|
|
625
|
+
'conversation you are having right now, so "I\'ll get back to you here" actually happens - ' +
|
|
626
|
+
'a recurring job, or one handed to an agent, keeps its own dedicated conversation. The ' +
|
|
423
627
|
"schedule is a five-field cron expression in the machine's local time - minute hour " +
|
|
424
628
|
'day-of-month month day-of-week - e.g. "0 8 * * 1-5" (weekdays 08:00), "*/30 * * * *" ' +
|
|
425
629
|
'(every 30 minutes), "0 18 1 * *" (the 1st at 18:00), "30 15 11 9 *" with once=true ' +
|
|
@@ -429,14 +633,24 @@ export const ORG_TOOLS = [
|
|
|
429
633
|
type: 'object',
|
|
430
634
|
properties: {
|
|
431
635
|
name: str('Short name, e.g. "Morgenbriefing".'),
|
|
432
|
-
schedule: str('Five-field cron expression or alias.'),
|
|
636
|
+
schedule: str('Five-field cron expression or alias. Leave empty only when triggerMode is "event".'),
|
|
433
637
|
prompt: str('What to do on each run, self-contained.'),
|
|
434
|
-
|
|
638
|
+
triggerMode: str('"schedule" (default) puts it on the clock; "event" means no clock at all - it waits for ' +
|
|
639
|
+
'a webhook call or a watched mailbox. An expression AND an event source together is the ' +
|
|
640
|
+
'useful third case: the event is the fast path, the expression the backstop for the ' +
|
|
641
|
+
'event that never arrived. Optional.'),
|
|
642
|
+
cooldownSeconds: {
|
|
643
|
+
type: 'number',
|
|
644
|
+
description: 'How long it rests after a run before an event may start the next one, 0 to 86400. ' +
|
|
645
|
+
'Events arriving during the rest are not lost - they collapse into one run at the end ' +
|
|
646
|
+
'of it. Default 60. Optional.',
|
|
647
|
+
},
|
|
648
|
+
agent: str('Agent slug or name to run it as their task. Omit to run it yourself.'),
|
|
435
649
|
project: str('Project name or id the run belongs to. Optional.'),
|
|
436
650
|
once: { type: 'boolean', description: 'Fire once, then switch the schedule off. Default false.' },
|
|
437
651
|
enabled: { type: 'boolean', description: 'Default true.' },
|
|
438
652
|
},
|
|
439
|
-
required: ['name', '
|
|
653
|
+
required: ['name', 'prompt'],
|
|
440
654
|
additionalProperties: false,
|
|
441
655
|
},
|
|
442
656
|
audience: ASSISTANT_ONLY,
|
|
@@ -452,6 +666,11 @@ export const ORG_TOOLS = [
|
|
|
452
666
|
name: str('Optional.'),
|
|
453
667
|
schedule: str('New cron expression. Optional.'),
|
|
454
668
|
prompt: str('Optional.'),
|
|
669
|
+
triggerMode: str('"schedule" to put it on the clock, "event" to take it off. Optional.'),
|
|
670
|
+
cooldownSeconds: {
|
|
671
|
+
type: 'number',
|
|
672
|
+
description: 'Rest between event runs, 0 to 86400. Optional.',
|
|
673
|
+
},
|
|
455
674
|
agent: str('Agent slug or name, or "assistant" to run it yourself. Optional.'),
|
|
456
675
|
project: str('Project name or id, or "none". Optional.'),
|
|
457
676
|
enabled: { type: 'boolean', description: 'Optional.' },
|
|
@@ -499,10 +718,10 @@ export const ORG_TOOLS = [
|
|
|
499
718
|
},
|
|
500
719
|
{
|
|
501
720
|
name: 'remember',
|
|
502
|
-
description: 'Write one fact into your long-term memory
|
|
503
|
-
'
|
|
504
|
-
'
|
|
505
|
-
'might miss.',
|
|
721
|
+
description: 'Write one fact into your long-term memory, so it comes back later. For the assistant this ' +
|
|
722
|
+
'is the memory of the user; an agent writes into its own working memory of its work. ' +
|
|
723
|
+
'One self-contained sentence per call. Use it when you are told to remember something, or ' +
|
|
724
|
+
'for something clearly worth keeping that the automatic extraction might miss.',
|
|
506
725
|
inputSchema: {
|
|
507
726
|
type: 'object',
|
|
508
727
|
properties: {
|
|
@@ -514,7 +733,7 @@ export const ORG_TOOLS = [
|
|
|
514
733
|
required: ['content'],
|
|
515
734
|
additionalProperties: false,
|
|
516
735
|
},
|
|
517
|
-
audience:
|
|
736
|
+
audience: BOTH,
|
|
518
737
|
},
|
|
519
738
|
{
|
|
520
739
|
name: 'forget',
|
|
@@ -530,8 +749,9 @@ export const ORG_TOOLS = [
|
|
|
530
749
|
},
|
|
531
750
|
{
|
|
532
751
|
name: 'search_memory',
|
|
533
|
-
description: 'Search your long-term memory
|
|
534
|
-
'
|
|
752
|
+
description: 'Search your long-term memory - for the assistant that is what it knows about the user, for ' +
|
|
753
|
+
'an agent its own working memory. Without a query, the most important memories. Returns ids, ' +
|
|
754
|
+
'so a wrong one can be passed to forget.',
|
|
535
755
|
inputSchema: {
|
|
536
756
|
type: 'object',
|
|
537
757
|
properties: {
|
|
@@ -540,38 +760,107 @@ export const ORG_TOOLS = [
|
|
|
540
760
|
},
|
|
541
761
|
additionalProperties: false,
|
|
542
762
|
},
|
|
763
|
+
audience: BOTH,
|
|
764
|
+
},
|
|
765
|
+
{
|
|
766
|
+
name: 'list_listeners',
|
|
767
|
+
description: 'The mailboxes Rookery watches, and the schedule each one fires. A listener holds one IMAP ' +
|
|
768
|
+
'connection open and starts its schedule the moment mail arrives, which is what a schedule ' +
|
|
769
|
+
'that polls every few minutes is for. Passwords are never shown, only whether one is set.',
|
|
770
|
+
inputSchema: { type: 'object', properties: {}, additionalProperties: false },
|
|
771
|
+
audience: ASSISTANT_ONLY,
|
|
772
|
+
},
|
|
773
|
+
{
|
|
774
|
+
name: 'set_listener',
|
|
775
|
+
description: 'Add a watched mailbox, or change one by id. Only the fields given change; a new one needs ' +
|
|
776
|
+
'host, user, password, mailbox and the schedule it fires, and stays off until enabled=true ' +
|
|
777
|
+
'so the details can be checked first. Tell the user plainly that a password they type here ' +
|
|
778
|
+
'stays in this conversation, and offer the Listeners settings page as the alternative - the ' +
|
|
779
|
+
'password is stored either way, this is only about the transcript.',
|
|
780
|
+
inputSchema: {
|
|
781
|
+
type: 'object',
|
|
782
|
+
properties: {
|
|
783
|
+
id: str('Short name for the mailbox, e.g. "work". Runs record it as imap:<id>.'),
|
|
784
|
+
schedule: str('The schedule this mailbox fires: id, prefix, or exact name.'),
|
|
785
|
+
host: str('IMAP server, e.g. imap.fastmail.com.'),
|
|
786
|
+
port: { type: 'number', description: 'Default 993. Optional.' },
|
|
787
|
+
secure: { type: 'boolean', description: 'TLS from the first byte (993). Default true.' },
|
|
788
|
+
user: str('Mailbox user, usually the address.'),
|
|
789
|
+
password: str('Mailbox password, or an app password where the provider wants one.'),
|
|
790
|
+
mailbox: str('Which mailbox to watch. Default INBOX.'),
|
|
791
|
+
enabled: { type: 'boolean', description: 'Default false when creating.' },
|
|
792
|
+
},
|
|
793
|
+
required: ['id'],
|
|
794
|
+
additionalProperties: false,
|
|
795
|
+
},
|
|
796
|
+
audience: ASSISTANT_ONLY,
|
|
797
|
+
},
|
|
798
|
+
{
|
|
799
|
+
name: 'remove_listener',
|
|
800
|
+
description: 'Stop watching a mailbox and forget its settings, the stored password included.',
|
|
801
|
+
inputSchema: {
|
|
802
|
+
type: 'object',
|
|
803
|
+
properties: { id: str('The listener id.') },
|
|
804
|
+
required: ['id'],
|
|
805
|
+
additionalProperties: false,
|
|
806
|
+
},
|
|
807
|
+
audience: ASSISTANT_ONLY,
|
|
808
|
+
},
|
|
809
|
+
{
|
|
810
|
+
name: 'set_webhook',
|
|
811
|
+
description: 'Give a schedule a URL that starts it, or take the URL away. Creating one again rotates it, ' +
|
|
812
|
+
'and the previous URL stops working that second. Whoever holds the URL can start that one ' +
|
|
813
|
+
'schedule and nothing else. Say it out loud only when the user asked for it: once said, it ' +
|
|
814
|
+
'is in this conversation for good, and rotating is the way back.',
|
|
815
|
+
inputSchema: {
|
|
816
|
+
type: 'object',
|
|
817
|
+
properties: {
|
|
818
|
+
id: str('Schedule id, prefix, or exact name.'),
|
|
819
|
+
action: str('"create" to issue or rotate it, "remove" to take it away. Default create.'),
|
|
820
|
+
},
|
|
821
|
+
required: ['id'],
|
|
822
|
+
additionalProperties: false,
|
|
823
|
+
},
|
|
543
824
|
audience: ASSISTANT_ONLY,
|
|
544
825
|
},
|
|
545
826
|
{
|
|
546
827
|
name: 'get_settings',
|
|
547
828
|
description: 'The current settings you may change: default provider, model and effort for turns and ' +
|
|
548
|
-
'
|
|
829
|
+
'runs, and the company limits (parallel runs, delegation depth, run ' +
|
|
549
830
|
'timeout).',
|
|
550
831
|
inputSchema: { type: 'object', properties: {}, additionalProperties: false },
|
|
551
832
|
audience: ASSISTANT_ONLY,
|
|
552
833
|
},
|
|
553
834
|
{
|
|
554
835
|
name: 'update_settings',
|
|
555
|
-
description: 'Change settings and persist them; they apply from the next turn or
|
|
836
|
+
description: 'Change settings and persist them; they apply from the next turn or run. Only the ' +
|
|
556
837
|
'fields given change. Do this when the user asks for it, or say what you changed and why.',
|
|
557
838
|
inputSchema: {
|
|
558
839
|
type: 'object',
|
|
559
840
|
properties: {
|
|
560
|
-
defaultProvider: str(
|
|
841
|
+
defaultProvider: str(PROVIDER_HINT + ' Optional.'),
|
|
561
842
|
defaultModel: str('Model id, or "default" for the provider default. Optional.'),
|
|
562
843
|
defaultEffort: str('low, medium, high, or "default". Optional.'),
|
|
563
844
|
maxConcurrentAssignments: { type: 'number', description: 'Agent processes at the same time, 1 to 16. Optional.' },
|
|
564
845
|
maxDelegationDepth: { type: 'number', description: 'How deep agents may delegate below you, 1 to 6. Optional.' },
|
|
565
|
-
assignmentTimeoutMinutes: { type: 'number', description: 'Hard stop for one
|
|
846
|
+
assignmentTimeoutMinutes: { type: 'number', description: 'Hard stop for one run, 1 to 600. Optional.' },
|
|
566
847
|
},
|
|
567
848
|
additionalProperties: false,
|
|
568
849
|
},
|
|
569
850
|
audience: ASSISTANT_ONLY,
|
|
570
851
|
},
|
|
571
852
|
];
|
|
572
|
-
/**
|
|
573
|
-
|
|
574
|
-
|
|
853
|
+
/**
|
|
854
|
+
* The tools one audience may call. The second argument narrows it further:
|
|
855
|
+
* an unattended run drops everything marked `needsPerson`, so the model is
|
|
856
|
+
* never offered a way to wait for an answer that cannot come, and the board
|
|
857
|
+
* watcher is cut down to {@link WATCH_TOOLS} - the one caller whose limits
|
|
858
|
+
* are a list of what it may do rather than a list of what it may not.
|
|
859
|
+
*/
|
|
860
|
+
export function toolsFor(audience, availability = {}) {
|
|
861
|
+
return ORG_TOOLS.filter((tool) => tool.audience.includes(audience) &&
|
|
862
|
+
!(availability.scheduled && tool.needsPerson) &&
|
|
863
|
+
!(availability.watching && !WATCH_TOOLS.has(tool.name)));
|
|
575
864
|
}
|
|
576
865
|
/** The MCP server name; the CLI exposes tools as `mcp__rookery__<name>`. */
|
|
577
866
|
export const MCP_SERVER_NAME = 'rookery';
|