rookery-agent 0.1.0 → 0.3.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 +13 -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 +5 -2
- 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 +34 -1
- package/packages/core/dist/config.d.ts.map +1 -1
- package/packages/core/dist/config.js +362 -11
- package/packages/core/dist/config.js.map +1 -1
- package/packages/core/dist/cron/scheduler.d.ts +59 -6
- package/packages/core/dist/cron/scheduler.d.ts.map +1 -1
- package/packages/core/dist/cron/scheduler.js +295 -27
- 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 +117 -2
- package/packages/core/dist/gateway/policy.d.ts.map +1 -1
- package/packages/core/dist/gateway/policy.js +286 -6
- package/packages/core/dist/gateway/policy.js.map +1 -1
- package/packages/core/dist/index.d.ts +38 -12
- package/packages/core/dist/index.d.ts.map +1 -1
- package/packages/core/dist/index.js +66 -12
- 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 +878 -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 +268 -4
- package/packages/core/dist/org/controller.d.ts.map +1 -1
- package/packages/core/dist/org/controller.js +2298 -248
- 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 +44 -30
- package/packages/core/dist/org/prompts.d.ts.map +1 -1
- package/packages/core/dist/org/prompts.js +209 -92
- 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 +311 -2
- package/packages/core/dist/org/store.d.ts.map +1 -1
- package/packages/core/dist/org/store.js +981 -13
- package/packages/core/dist/org/store.js.map +1 -1
- package/packages/core/dist/org/tools.d.ts +33 -3
- package/packages/core/dist/org/tools.d.ts.map +1 -1
- package/packages/core/dist/org/tools.js +380 -67
- 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 +19 -3
- package/packages/core/dist/providers/claude-code.d.ts.map +1 -1
- package/packages/core/dist/providers/claude-code.js +501 -40
- package/packages/core/dist/providers/claude-code.js.map +1 -1
- package/packages/core/dist/providers/claude-tui.d.ts +288 -0
- package/packages/core/dist/providers/claude-tui.d.ts.map +1 -0
- package/packages/core/dist/providers/claude-tui.js +1118 -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 +193 -7
- package/packages/core/dist/runtime.d.ts.map +1 -1
- package/packages/core/dist/runtime.js +1676 -219
- 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 +1776 -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 +39 -10
- 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 +420 -13
- 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 +181 -1
- package/packages/server/dist/gateways/telegram.d.ts.map +1 -1
- package/packages/server/dist/gateways/telegram.js +1572 -78
- package/packages/server/dist/gateways/telegram.js.map +1 -1
- package/packages/server/dist/gateways/threads.d.ts +84 -0
- package/packages/server/dist/gateways/threads.d.ts.map +1 -0
- package/packages/server/dist/gateways/threads.js +289 -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 +66 -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 +289 -49
- 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 +168 -28
- package/packages/server/dist/routes/ws.js.map +1 -1
- package/packages/server/dist/schemas.d.ts +1177 -215
- package/packages/server/dist/schemas.d.ts.map +1 -1
- package/packages/server/dist/schemas.js +317 -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 +210 -3
- package/packages/server/dist/server.js.map +1 -1
- package/packages/server/dist/services/stream.d.ts +94 -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 +54 -0
- package/packages/server/dist/services/turns.d.ts.map +1 -0
- package/packages/server/dist/services/turns.js +186 -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-D7YyFndQ.js +1 -0
- package/packages/web/dist/assets/arc-C_Zgk2dJ.js +1 -0
- package/packages/web/dist/assets/architectureDiagram-NJMV4G6O-eI0adu1B.js +36 -0
- package/packages/web/dist/assets/blockDiagram-BEXU5L5S-WAoOFUA9.js +140 -0
- package/packages/web/dist/assets/c4Diagram-YGBWAQC7-DE8Zyhng.js +38 -0
- package/packages/web/dist/assets/channel-egZxcyUK.js +1 -0
- package/packages/web/dist/assets/chunk-2Q5K7J3B-bnqLP2XD.js +1 -0
- package/packages/web/dist/assets/chunk-3FUC2YCW-Ck1_SVe0.js +2 -0
- package/packages/web/dist/assets/chunk-5VM5RSS4-hDmC41gD.js +15 -0
- package/packages/web/dist/assets/chunk-GTNCS2PH-PoWvfCrT.js +88 -0
- package/packages/web/dist/assets/chunk-GWA4HPMP-D3V0IG43.js +1 -0
- package/packages/web/dist/assets/chunk-JWPE2WC7-BryfpHM5.js +1 -0
- package/packages/web/dist/assets/chunk-NETBCI7D-8ic1iEdT.js +1 -0
- package/packages/web/dist/assets/chunk-WEXAMYUT-nM8tmQT2.js +1 -0
- package/packages/web/dist/assets/chunk-XXDRQBXY-Do28F482.js +1 -0
- package/packages/web/dist/assets/classDiagram-v2-NBCMYWYE-Bop9oNNO.js +217 -0
- package/packages/web/dist/assets/cose-bilkent-JH36ORCC-a7f_bpnt.js +1 -0
- package/packages/web/dist/assets/cynefin-OW5HDTMX-DnArcis_.js +178 -0
- package/packages/web/dist/assets/cynefinDiagram-VND7K2PF-vEuTb1GD.js +62 -0
- package/packages/web/dist/assets/cytoscape.esm-Ix0LnXOy.js +331 -0
- package/packages/web/dist/assets/dagre-6A5THRUB-BgG4MynJ.js +4 -0
- package/packages/web/dist/assets/diagram-22UHCM2B-DRCQpafv.js +200 -0
- package/packages/web/dist/assets/diagram-3UASUU5V-BKgmAXde.js +24 -0
- package/packages/web/dist/assets/diagram-ATOU4E4O-B6Hsy36X.js +3 -0
- package/packages/web/dist/assets/diagram-CDSNMT55-JflyfyoB.js +30 -0
- package/packages/web/dist/assets/diagram-MLGK6HIB-Dd2QPJjT.js +24 -0
- package/packages/web/dist/assets/diagram-MPIPVDR6-DE5QU60x.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-D7AQ741b.js +1 -0
- package/packages/web/dist/assets/elk-276RUBZZ-CeewBVLF.js +27 -0
- package/packages/web/dist/assets/erDiagram-OPXOYQCR-mLLYkZ5c.js +99 -0
- package/packages/web/dist/assets/flowDiagram-KWPJA3E3-DtpSpsQN.js +213 -0
- package/packages/web/dist/assets/ganttDiagram-FUAMR5RP-1_lh-3ky.js +292 -0
- package/packages/web/dist/assets/gitGraphDiagram-X574FWY7-DoPXZuT5.js +106 -0
- package/packages/web/dist/assets/graph-Bn3Yngep.js +1 -0
- package/packages/web/dist/assets/index-Cw2Opmx7.js +648 -0
- package/packages/web/dist/assets/index-j0zBRCgT.css +32 -0
- package/packages/web/dist/assets/infoDiagram-VRGFBTTK-DQpRGGiD.js +2 -0
- package/packages/web/dist/assets/ishikawaDiagram-OU5B5YK6-gH5C9Q2e.js +70 -0
- package/packages/web/dist/assets/journeyDiagram-ZHPQQLJL-Bg-oeFjb.js +139 -0
- package/packages/web/dist/assets/kanban-definition-PNTS6WVX-BnpI4VH8.js +89 -0
- package/packages/web/dist/assets/katex-C5jXJg4s.js +257 -0
- package/packages/web/dist/assets/mermaid.core-BwBKxlRA.js +313 -0
- package/packages/web/dist/assets/mindmap-definition-NLK3R4M7-NBnnxEoO.js +96 -0
- package/packages/web/dist/assets/pegDiagram-GJSIUBJH-RrXXbIvO.js +1 -0
- package/packages/web/dist/assets/pieDiagram-5QR66LMP-B27q6Gso.js +39 -0
- package/packages/web/dist/assets/quadrantDiagram-O4NWA36T-DGDsdur2.js +7 -0
- package/packages/web/dist/assets/railroadDiagram-XR7U4H2S-GdjkE3mI.js +1 -0
- package/packages/web/dist/assets/requirementDiagram-PLB6GJNP-DjK0GfgO.js +84 -0
- package/packages/web/dist/assets/sankeyDiagram-IPEJSGJF-BG_AIkwF.js +40 -0
- package/packages/web/dist/assets/scene-D4LPicHk.js +4620 -0
- package/packages/web/dist/assets/sequenceDiagram-PO4LG4MO-CIQwUb4y.js +169 -0
- package/packages/web/dist/assets/sizeCapture-INFHLROL-bpIoPxdJ.js +1 -0
- package/packages/web/dist/assets/stateDiagram-v2-GCMORJYK-8hYXvPPv.js +291 -0
- package/packages/web/dist/assets/swimlanes-2SLR337P-gfflUMF9.js +1 -0
- package/packages/web/dist/assets/swimlanesDiagram-TC7HE7FX-9wdzGXU-.js +8 -0
- package/packages/web/dist/assets/timeline-definition-EJHVYXUP-PHMNoGTZ.js +120 -0
- package/packages/web/dist/assets/usecaseDiagram-POWQR4AR-B2j5iteO.js +370 -0
- package/packages/web/dist/assets/vennDiagram-UO4OBE2U-BzxtZ-_2.js +34 -0
- package/packages/web/dist/assets/wardleyDiagram-VNRHLVJA-DL7YbMpY.js +78 -0
- package/packages/web/dist/assets/xychartDiagram-PMCCYNJV-CisgP1cT.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
|
@@ -3,12 +3,50 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Two audiences share one vocabulary. The assistant gets everything; an
|
|
5
5
|
* agent gets the subset a member of staff would have - it can hand work to
|
|
6
|
-
* its own reports and
|
|
6
|
+
* its own reports and ask whoever gave it the work, 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
|
+
'task_activity',
|
|
25
|
+
'report_to_user',
|
|
26
|
+
'notify',
|
|
27
|
+
]);
|
|
9
28
|
const BOTH = ['assistant', 'agent'];
|
|
10
29
|
const ASSISTANT_ONLY = ['assistant'];
|
|
11
30
|
const str = (description) => ({ type: 'string', description });
|
|
31
|
+
/**
|
|
32
|
+
* The one rule for naming work, word for word wherever a name is asked for.
|
|
33
|
+
* Whoever writes a brief can name it; a name nobody can write is a brief
|
|
34
|
+
* nobody understood (decision E16), so there is no model call for this and
|
|
35
|
+
* no fallback worth advertising.
|
|
36
|
+
*/
|
|
37
|
+
const TITLE_RULE = 'A name for this work: three to eight words, no full stop, a noun phrase or an imperative, ' +
|
|
38
|
+
'in the language of the brief. "Login bug in the password reset", not "Please have a look at ' +
|
|
39
|
+
'why the login sometimes". Never the brief itself.';
|
|
40
|
+
/**
|
|
41
|
+
* How a provider argument is described to the model.
|
|
42
|
+
*
|
|
43
|
+
* Deliberately not an enum: every turn runs on the same harness and the id
|
|
44
|
+
* only says what it is pointed at, so the set is open - the two built-ins
|
|
45
|
+
* plus one id per provider profile somebody configured. A fixed enum here
|
|
46
|
+
* would reject a backend the moment it was added on the Providers page.
|
|
47
|
+
* The controller checks the id against the registry instead.
|
|
48
|
+
*/
|
|
49
|
+
const PROVIDER_HINT = 'Provider id: "claude" for the Claude login, "codex" for ChatGPT, or the id of a configured provider profile.';
|
|
12
50
|
export const ORG_TOOLS = [
|
|
13
51
|
{
|
|
14
52
|
name: 'read_profile',
|
|
@@ -24,23 +62,29 @@ export const ORG_TOOLS = [
|
|
|
24
62
|
},
|
|
25
63
|
{
|
|
26
64
|
name: 'org_overview',
|
|
27
|
-
description: 'The company you run: teams, agents (with slug, title and manager), projects, and
|
|
65
|
+
description: 'The company you run: teams, agents (with slug, title and manager), projects, and the work ' +
|
|
28
66
|
'currently running. Call this before delegating when you are unsure who does what.',
|
|
29
67
|
inputSchema: { type: 'object', properties: {}, additionalProperties: false },
|
|
30
68
|
audience: BOTH,
|
|
31
69
|
},
|
|
32
70
|
{
|
|
33
71
|
name: 'assign',
|
|
34
|
-
description: 'Hand a task to one agent and wait for the finished result.
|
|
35
|
-
'
|
|
36
|
-
'
|
|
37
|
-
|
|
38
|
-
'
|
|
39
|
-
'
|
|
72
|
+
description: 'Hand a task to one agent and wait for the finished result. It goes on the board as a task ' +
|
|
73
|
+
'of its own, so the work is visible while it runs and afterwards; handed on from inside a ' +
|
|
74
|
+
'task, it becomes a subtask of that one. The agent works in a separate process with no ' +
|
|
75
|
+
'access to this conversation, so the instruction must be self-contained: restate every ' +
|
|
76
|
+
'fact, file and constraint it needs. Call assign several times in one message to run agents ' +
|
|
77
|
+
"in parallel. Returns the agent's complete report. With wait=false it returns at once and " +
|
|
78
|
+
'the agent keeps working in the background - and you are guaranteed to hear how it ends: ' +
|
|
79
|
+
'handed off from a conversation, a message with the outcome arrives in that conversation ' +
|
|
80
|
+
'(tell the user then, not before); handed off from inside a task, your task stays open and ' +
|
|
81
|
+
'you are run again with the result once it is back. Nothing needs polling, but ' +
|
|
82
|
+
'assignment_status shows where it stands. 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,72 @@ export const ORG_TOOLS = [
|
|
|
94
138
|
audience: ASSISTANT_ONLY,
|
|
95
139
|
},
|
|
96
140
|
{
|
|
97
|
-
name: '
|
|
98
|
-
description: '
|
|
99
|
-
|
|
100
|
-
'
|
|
141
|
+
name: 'ask_requester',
|
|
142
|
+
description: 'Ask whoever gave you this task a question you cannot answer yourself and that changes what you ' +
|
|
143
|
+
'do next. The question goes on the task card, the task waits for the answer (status "blocked"), ' +
|
|
144
|
+
'and you are started again with the answer once it comes. After calling it, end your run with a ' +
|
|
145
|
+
'short summary of where the work stands - do not keep working on a guess. Only inside a task; ' +
|
|
146
|
+
'for anything you can decide, look up or state as an assumption, do that instead.',
|
|
147
|
+
inputSchema: {
|
|
148
|
+
type: 'object',
|
|
149
|
+
properties: { question: str('The question, self-contained: what you need to know and why.') },
|
|
150
|
+
required: ['question'],
|
|
151
|
+
additionalProperties: false,
|
|
152
|
+
},
|
|
153
|
+
audience: ['agent'],
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
name: 'answer_task',
|
|
157
|
+
description: 'Answer the question a task is waiting on. The answer goes on the card and the task runs again ' +
|
|
158
|
+
'with it, as the same task. The assistant may answer any task; an agent only the tasks it handed ' +
|
|
159
|
+
'out itself. Use task_activity first when you need to see what exactly was asked.',
|
|
101
160
|
inputSchema: {
|
|
102
161
|
type: 'object',
|
|
103
162
|
properties: {
|
|
104
|
-
|
|
105
|
-
|
|
163
|
+
id: str('Task id or prefix.'),
|
|
164
|
+
answer: str('The answer, self-contained.'),
|
|
106
165
|
},
|
|
107
|
-
required: ['
|
|
166
|
+
required: ['id', 'answer'],
|
|
108
167
|
additionalProperties: false,
|
|
109
168
|
},
|
|
110
169
|
audience: BOTH,
|
|
111
170
|
},
|
|
112
171
|
{
|
|
113
|
-
name: '
|
|
114
|
-
description: '
|
|
115
|
-
|
|
172
|
+
name: 'report_to_user',
|
|
173
|
+
description: 'Leave the user a notification: a title and a short body they read on the web and, depending ' +
|
|
174
|
+
'on their settings, on their phone. Use it sparingly, for something they genuinely need to know ' +
|
|
175
|
+
'that does not belong in your result - your result already reaches whoever asked for the work. ' +
|
|
176
|
+
'Never a running commentary, never a thank-you.',
|
|
177
|
+
inputSchema: {
|
|
178
|
+
type: 'object',
|
|
179
|
+
properties: {
|
|
180
|
+
title: str('One short line: what this is about.'),
|
|
181
|
+
body: str('The message itself. Say the thing and stop.'),
|
|
182
|
+
},
|
|
183
|
+
required: ['title', 'body'],
|
|
184
|
+
additionalProperties: false,
|
|
185
|
+
},
|
|
186
|
+
audience: BOTH,
|
|
187
|
+
// The assistant has `notify` and the conversation itself; only its board
|
|
188
|
+
// watcher, which has neither, is offered this one.
|
|
189
|
+
assistantOnlyWhenWatching: true,
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
name: 'task_activity',
|
|
193
|
+
description: "One task's activity, oldest first: its brief, every run and how it ended, questions and " +
|
|
194
|
+
'answers, status changes. Call it when what you do depends on what already happened on the card.',
|
|
195
|
+
inputSchema: {
|
|
196
|
+
type: 'object',
|
|
197
|
+
properties: { id: str('Task id or prefix.') },
|
|
198
|
+
required: ['id'],
|
|
199
|
+
additionalProperties: false,
|
|
200
|
+
},
|
|
116
201
|
audience: BOTH,
|
|
117
202
|
},
|
|
118
203
|
// ASSISTANT_ONLY on purpose: an agent that thinks something deserves the
|
|
119
|
-
// user's attention writes
|
|
120
|
-
//
|
|
121
|
-
//
|
|
204
|
+
// user's attention writes it into its result, or - when it truly cannot
|
|
205
|
+
// wait - uses report_to_user, whose push the user's own settings govern.
|
|
206
|
+
// Only the assistant decides that a line has to arrive right now.
|
|
122
207
|
{
|
|
123
208
|
name: 'notify',
|
|
124
209
|
description: 'Send the user a message over whatever notification channel is open right now, even when no ' +
|
|
@@ -140,19 +225,103 @@ export const ORG_TOOLS = [
|
|
|
140
225
|
},
|
|
141
226
|
audience: ASSISTANT_ONLY,
|
|
142
227
|
},
|
|
228
|
+
{
|
|
229
|
+
name: 'ask_user',
|
|
230
|
+
description: 'Put one question to the user and wait for the answer before carrying on. The question ' +
|
|
231
|
+
'appears wherever they are - the web chat, the terminal, their phone - and any of those may ' +
|
|
232
|
+
'answer it. Ask only when the answer changes what you do next and you cannot find it out ' +
|
|
233
|
+
'yourself: a fork with real consequences, a missing fact only they have, a destructive step ' +
|
|
234
|
+
'worth confirming. Never ask for something you can look up, decide on your own merits, or ' +
|
|
235
|
+
'simply state and be corrected on. Offer two to four concrete options, each a choice you are ' +
|
|
236
|
+
'ready to act on, and keep the labels short enough for a phone button. This call blocks; if ' +
|
|
237
|
+
'nobody answers in time it comes back saying so and you carry on with your best judgement.',
|
|
238
|
+
inputSchema: {
|
|
239
|
+
type: 'object',
|
|
240
|
+
properties: {
|
|
241
|
+
header: str('Two or three words naming the decision, e.g. "Deploy target".'),
|
|
242
|
+
question: str('The question itself, one or two sentences.'),
|
|
243
|
+
options: {
|
|
244
|
+
type: 'array',
|
|
245
|
+
minItems: 2,
|
|
246
|
+
maxItems: 4,
|
|
247
|
+
description: 'Two to four answers to choose from.',
|
|
248
|
+
items: {
|
|
249
|
+
type: 'object',
|
|
250
|
+
properties: {
|
|
251
|
+
label: str('The button text. A few words.'),
|
|
252
|
+
description: str('One line of detail under the label. Optional.'),
|
|
253
|
+
},
|
|
254
|
+
required: ['label'],
|
|
255
|
+
additionalProperties: false,
|
|
256
|
+
},
|
|
257
|
+
},
|
|
258
|
+
multiSelect: {
|
|
259
|
+
type: 'boolean',
|
|
260
|
+
description: 'Default false. True when several options may be picked at once.',
|
|
261
|
+
},
|
|
262
|
+
},
|
|
263
|
+
required: ['header', 'question', 'options'],
|
|
264
|
+
additionalProperties: false,
|
|
265
|
+
},
|
|
266
|
+
audience: ASSISTANT_ONLY,
|
|
267
|
+
needsPerson: true,
|
|
268
|
+
},
|
|
143
269
|
{
|
|
144
270
|
name: 'use_skill',
|
|
145
|
-
description: 'Open
|
|
146
|
-
'
|
|
147
|
-
'skill before starting such a task, then follow it.',
|
|
271
|
+
description: 'Open a skill: a written procedure for a particular kind of task. Takes a name from the list ' +
|
|
272
|
+
'in your instructions or one that find_skill turned up. Returns the full instructions and the ' +
|
|
273
|
+
'files that come with them. Open the matching skill before starting such a task, then follow it.',
|
|
148
274
|
inputSchema: {
|
|
149
275
|
type: 'object',
|
|
150
|
-
properties: { name: str('The skill name from the list.') },
|
|
276
|
+
properties: { name: str('The skill name from the list, or from a find_skill result.') },
|
|
151
277
|
required: ['name'],
|
|
152
278
|
additionalProperties: false,
|
|
153
279
|
},
|
|
154
280
|
audience: BOTH,
|
|
155
281
|
},
|
|
282
|
+
// The shelf the instructions cannot carry. Hundreds of skills are installed
|
|
283
|
+
// in the Claude Code on this machine; the prompt says how many and from
|
|
284
|
+
// where, this finds the one that fits.
|
|
285
|
+
{
|
|
286
|
+
name: 'find_skill',
|
|
287
|
+
description: 'Search the skills installed on this machine that are too many to list in your instructions. ' +
|
|
288
|
+
'Use it when a task sounds like a procedure somebody has already written down - a file format, ' +
|
|
289
|
+
'a framework, a tool, a kind of document. Returns names with their one-line description; open ' +
|
|
290
|
+
'one with use_skill. Searching costs nothing, so look before working something out from scratch.',
|
|
291
|
+
inputSchema: {
|
|
292
|
+
type: 'object',
|
|
293
|
+
properties: { query: str('What the task is about, e.g. "pdf", "scroll animation", "vercel deploy".') },
|
|
294
|
+
required: ['query'],
|
|
295
|
+
additionalProperties: false,
|
|
296
|
+
},
|
|
297
|
+
audience: BOTH,
|
|
298
|
+
},
|
|
299
|
+
// The other half of remembering. A memory records that something is true;
|
|
300
|
+
// this records how something is done - the part that otherwise gets worked
|
|
301
|
+
// out from scratch every single time.
|
|
302
|
+
{
|
|
303
|
+
name: 'write_skill',
|
|
304
|
+
description: 'Write down how a kind of task is done, so that next time it is not worked out from ' +
|
|
305
|
+
'scratch. Use it when you have just solved something you will clearly meet again, when you ' +
|
|
306
|
+
'had to discover a procedure the hard way, or when the user has corrected the same thing ' +
|
|
307
|
+
'twice - that correction belongs in a skill. Write the steps you would want to be handed: ' +
|
|
308
|
+
'concrete commands, paths, names and the traps you hit, not a summary of what you did. ' +
|
|
309
|
+
'Writing over a skill you wrote earlier is how you improve one, so revise instead of ' +
|
|
310
|
+
'inventing a second name for the same subject. Skills the user wrote are theirs and cannot ' +
|
|
311
|
+
'be overwritten. Not for one-off notes about a single task - that is what memory is for.',
|
|
312
|
+
inputSchema: {
|
|
313
|
+
type: 'object',
|
|
314
|
+
properties: {
|
|
315
|
+
name: str('Short name, lower case with dashes, e.g. release-checklist.'),
|
|
316
|
+
description: str('One line saying when this skill should be opened. It is all the index shows.'),
|
|
317
|
+
body: str('The instructions themselves, in Markdown. Steps someone can follow, not prose.'),
|
|
318
|
+
audience: str('assistant, agents or both. Default both.'),
|
|
319
|
+
},
|
|
320
|
+
required: ['name', 'description', 'body'],
|
|
321
|
+
additionalProperties: false,
|
|
322
|
+
},
|
|
323
|
+
audience: BOTH,
|
|
324
|
+
},
|
|
156
325
|
{
|
|
157
326
|
name: 'tool_servers',
|
|
158
327
|
description: 'The tool hub: which MCP servers exist (computer control, browser, filesystem, GitHub, ' +
|
|
@@ -183,23 +352,35 @@ export const ORG_TOOLS = [
|
|
|
183
352
|
{
|
|
184
353
|
name: 'hire_agent',
|
|
185
354
|
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.'
|
|
355
|
+
'standing instructions describing how it works and what it is responsible for. With ' +
|
|
356
|
+
'`replaces` set, this is a stage-4 personnel action instead: archives that agent and its ' +
|
|
357
|
+
'memory, generates a handover (or uses the one you pass), hires the successor with the ' +
|
|
358
|
+
'name/title/instructions given, and carries over its team, manager and reports. Only call ' +
|
|
359
|
+
'that after the user has approved the replacement agent_performance proposed.',
|
|
187
360
|
inputSchema: {
|
|
188
361
|
type: 'object',
|
|
189
362
|
properties: {
|
|
190
|
-
name: str('Display name, e.g. "Mara".'),
|
|
363
|
+
name: str('Display name, e.g. "Mara". With replaces set, must differ from the outgoing agent\'s name.'),
|
|
191
364
|
title: str('Job title, e.g. "Backend Engineer".'),
|
|
192
365
|
instructions: str('Standing instructions for the role, two to six sentences.'),
|
|
366
|
+
voice: str('Two to four sentences on HOW this person writes - never what they can do, which stays in ' +
|
|
367
|
+
"instructions. When the user described a voice, use it; when they said nothing, invent one " +
|
|
368
|
+
'yourself that fits the role rather than leaving it out. With replaces set, write a new voice ' +
|
|
369
|
+
"- a successor's is never the outgoing agent's. Omit only when the user explicitly wants a " +
|
|
370
|
+
'plain, colourless agent.'),
|
|
193
371
|
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:
|
|
372
|
+
team: str('Team name or id. Optional. Ignored when replaces is set (inherited instead).'),
|
|
373
|
+
manager: str('Manager agent slug. Omit for an agent reporting to you directly. Ignored when replaces is set.'),
|
|
374
|
+
provider: str(PROVIDER_HINT + ' Optional.'),
|
|
197
375
|
model: str('Model name for that provider. Optional.'),
|
|
198
376
|
permission: {
|
|
199
377
|
type: 'string',
|
|
200
378
|
enum: ['chat', 'read', 'write', 'full'],
|
|
201
379
|
description: 'What the agent may do on the machine. Optional; defaults to the company default.',
|
|
202
380
|
},
|
|
381
|
+
replaces: str('Slug of an agent to retire and replace with this one (stage 4). Their team, manager and ' +
|
|
382
|
+
'reports pass to the successor; the outgoing slug is never freed. Optional.'),
|
|
383
|
+
handover: str('Override the auto-generated handover document for the successor, when replaces is set. Optional.'),
|
|
203
384
|
},
|
|
204
385
|
required: ['name', 'title', 'instructions'],
|
|
205
386
|
additionalProperties: false,
|
|
@@ -210,7 +391,10 @@ export const ORG_TOOLS = [
|
|
|
210
391
|
name: 'update_agent',
|
|
211
392
|
description: 'Change an existing agent: move it to a team, give it a manager, rewrite its title or ' +
|
|
212
393
|
'standing instructions, change provider, model or permission, or archive it. Only the ' +
|
|
213
|
-
'fields you pass change.'
|
|
394
|
+
'fields you pass change. An agent at escalation stage 1 or higher (check with ' +
|
|
395
|
+
'agent_performance) needs `reason` set to change its instructions - that reason is written ' +
|
|
396
|
+
'to its personnel record as a reconfig, together with the before/after text, so the change ' +
|
|
397
|
+
'stays accountable and reversible.',
|
|
214
398
|
inputSchema: {
|
|
215
399
|
type: 'object',
|
|
216
400
|
properties: {
|
|
@@ -220,16 +404,51 @@ export const ORG_TOOLS = [
|
|
|
220
404
|
instructions: str('New standing instructions. Optional.'),
|
|
221
405
|
team: str('Team name or id, or "none" to remove from its team. Optional.'),
|
|
222
406
|
manager: str('Manager slug, or "assistant" to report to you directly. Optional.'),
|
|
223
|
-
provider:
|
|
407
|
+
provider: str(PROVIDER_HINT + ' Optional.'),
|
|
224
408
|
model: str('Optional.'),
|
|
225
409
|
permission: { type: 'string', enum: ['chat', 'read', 'write', 'full'], description: 'Optional.' },
|
|
226
410
|
archived: { type: 'boolean', description: 'true retires the agent, false brings it back. Optional.' },
|
|
411
|
+
reason: str('Why the instructions are changing. Required to change instructions once the agent is at ' +
|
|
412
|
+
'escalation stage 1 or higher; logged to the personnel record as a reconfig either way ' +
|
|
413
|
+
'when instructions change and this is set.'),
|
|
227
414
|
},
|
|
228
415
|
required: ['agent'],
|
|
229
416
|
additionalProperties: false,
|
|
230
417
|
},
|
|
231
418
|
audience: ASSISTANT_ONLY,
|
|
232
419
|
},
|
|
420
|
+
{
|
|
421
|
+
name: 'review_assignment',
|
|
422
|
+
description: 'Add or correct your own judgment of one finished run - the same review that runs ' +
|
|
423
|
+
'automatically after every run, but by hand: after the user disagreed with the automatic ' +
|
|
424
|
+
'one, or for a run from before this existed. Upserts: a second call for the same run ' +
|
|
425
|
+
'replaces your earlier judgment rather than adding a second one.',
|
|
426
|
+
inputSchema: {
|
|
427
|
+
type: 'object',
|
|
428
|
+
properties: {
|
|
429
|
+
id: str('Run id or prefix.'),
|
|
430
|
+
overall: { type: 'number', description: '1 to 5. 5 as good as a good colleague would do it, 1 unusable or invented.' },
|
|
431
|
+
comment: str('One to three sentences on what was good or bad. Optional.'),
|
|
432
|
+
},
|
|
433
|
+
required: ['id', 'overall'],
|
|
434
|
+
additionalProperties: false,
|
|
435
|
+
},
|
|
436
|
+
audience: ASSISTANT_ONLY,
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
name: 'agent_performance',
|
|
440
|
+
description: 'One agent\'s standing: review history, rolling average, trend, escalation stage, failure ' +
|
|
441
|
+
'rate, and its personnel record (notes, reconfigs, probation, replacement proposals). This ' +
|
|
442
|
+
'is the "development conversation" tool - open it before deciding whether a weak run is a ' +
|
|
443
|
+
'pattern or a one-off, and before update_agent on a flagged agent.',
|
|
444
|
+
inputSchema: {
|
|
445
|
+
type: 'object',
|
|
446
|
+
properties: { agent: str('Agent slug or name.') },
|
|
447
|
+
required: ['agent'],
|
|
448
|
+
additionalProperties: false,
|
|
449
|
+
},
|
|
450
|
+
audience: ASSISTANT_ONLY,
|
|
451
|
+
},
|
|
233
452
|
{
|
|
234
453
|
name: 'update_team',
|
|
235
454
|
description: 'Rename a team, change its purpose, or name its lead.',
|
|
@@ -249,12 +468,12 @@ export const ORG_TOOLS = [
|
|
|
249
468
|
{
|
|
250
469
|
name: 'create_task',
|
|
251
470
|
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
|
|
471
|
+
'wants tracked, or for anything bigger than one quick hand-off. Then plan_task decides ' +
|
|
253
472
|
'who does it and whether to split it, and run_task executes it.',
|
|
254
473
|
inputSchema: {
|
|
255
474
|
type: 'object',
|
|
256
475
|
properties: {
|
|
257
|
-
title: str(
|
|
476
|
+
title: str(TITLE_RULE),
|
|
258
477
|
description: str('Everything an agent needs to do the task: goal, constraints, files, definition of done.'),
|
|
259
478
|
project: str('Project name or id. Optional.'),
|
|
260
479
|
priority: { type: 'string', enum: ['low', 'normal', 'high'], description: 'Optional, default normal.' },
|
|
@@ -271,7 +490,7 @@ export const ORG_TOOLS = [
|
|
|
271
490
|
inputSchema: {
|
|
272
491
|
type: 'object',
|
|
273
492
|
properties: {
|
|
274
|
-
status: str('Comma-separated statuses to include (open, planned, running, done, failed, cancelled). Optional.'),
|
|
493
|
+
status: str('Comma-separated statuses to include (open, planned, running, blocked, done, failed, cancelled). Optional.'),
|
|
275
494
|
},
|
|
276
495
|
additionalProperties: false,
|
|
277
496
|
},
|
|
@@ -279,7 +498,8 @@ export const ORG_TOOLS = [
|
|
|
279
498
|
},
|
|
280
499
|
{
|
|
281
500
|
name: 'update_task',
|
|
282
|
-
description: 'Edit a task: title, description, priority, assignee, or
|
|
501
|
+
description: 'Edit a task: title, description, priority, assignee, or set its status by hand - done, ' +
|
|
502
|
+
'cancelled, or blocked while it waits for an answer.',
|
|
283
503
|
inputSchema: {
|
|
284
504
|
type: 'object',
|
|
285
505
|
properties: {
|
|
@@ -288,7 +508,11 @@ export const ORG_TOOLS = [
|
|
|
288
508
|
description: str('Optional.'),
|
|
289
509
|
priority: { type: 'string', enum: ['low', 'normal', 'high'], description: 'Optional.' },
|
|
290
510
|
assignee: str('Agent slug, or "none". Optional.'),
|
|
291
|
-
status: {
|
|
511
|
+
status: {
|
|
512
|
+
type: 'string',
|
|
513
|
+
enum: ['open', 'done', 'cancelled', 'blocked'],
|
|
514
|
+
description: 'Optional. "blocked" means it waits for an answer.',
|
|
515
|
+
},
|
|
292
516
|
result: str('What was done, when closing by hand. Optional.'),
|
|
293
517
|
},
|
|
294
518
|
required: ['id'],
|
|
@@ -316,7 +540,7 @@ export const ORG_TOOLS = [
|
|
|
316
540
|
{
|
|
317
541
|
name: 'run_task',
|
|
318
542
|
description: 'Execute a task from the board and wait for the outcome. A task without a plan is planned ' +
|
|
319
|
-
'first. Subtasks run
|
|
543
|
+
'first. Subtasks run in parallel in dependency order; their reports come back ' +
|
|
320
544
|
'combined. This is the right tool for anything that should be tracked on the board.',
|
|
321
545
|
inputSchema: {
|
|
322
546
|
type: 'object',
|
|
@@ -343,7 +567,7 @@ export const ORG_TOOLS = [
|
|
|
343
567
|
},
|
|
344
568
|
{
|
|
345
569
|
name: 'create_project',
|
|
346
|
-
description: 'Create a project. With a path,
|
|
570
|
+
description: 'Create a project. With a path, work on it runs inside that directory; without one, ' +
|
|
347
571
|
'agents work in the scratch workspace.',
|
|
348
572
|
inputSchema: {
|
|
349
573
|
type: 'object',
|
|
@@ -379,7 +603,7 @@ export const ORG_TOOLS = [
|
|
|
379
603
|
name: 'project_mcp_servers',
|
|
380
604
|
description: "The MCP servers listed in a project's own .mcp.json - the same file a person's own Claude " +
|
|
381
605
|
'Code session in that folder would read - and whether they are trusted yet. An untrusted or ' +
|
|
382
|
-
'changed file never starts its servers for
|
|
606
|
+
'changed file never starts its servers for a run. Call this before trust_project_mcp.',
|
|
383
607
|
inputSchema: {
|
|
384
608
|
type: 'object',
|
|
385
609
|
properties: { project: str('Project name or id.') },
|
|
@@ -391,7 +615,7 @@ export const ORG_TOOLS = [
|
|
|
391
615
|
{
|
|
392
616
|
name: 'trust_project_mcp',
|
|
393
617
|
description: "Approve or revoke a project's own .mcp.json, so its MCP servers do or do not start for " +
|
|
394
|
-
"
|
|
618
|
+
"runs in that project. This starts real processes from a file inside the project's " +
|
|
395
619
|
'own folder, so show the user the server list and command lines from project_mcp_servers ' +
|
|
396
620
|
'before approving. A later edit to .mcp.json needs approving again; revoke turns the ' +
|
|
397
621
|
'servers off again without touching the file.',
|
|
@@ -419,7 +643,10 @@ export const ORG_TOOLS = [
|
|
|
419
643
|
'...", "every Friday at 17:00, have Mara ...", or a single later run (once=true) for ' +
|
|
420
644
|
'"tomorrow at 15:00 remind me ...". By default you run the prompt yourself, as a turn of ' +
|
|
421
645
|
'your own in a conversation dedicated to the job, with all your tools; name an agent to ' +
|
|
422
|
-
'have
|
|
646
|
+
'have an agent run it instead. The outcome of every run reaches the user as a notification; a ' +
|
|
647
|
+
'one-time run you do yourself (once=true, no agent) also replies directly in the ' +
|
|
648
|
+
'conversation you are having right now, so "I\'ll get back to you here" actually happens - ' +
|
|
649
|
+
'a recurring job, or one handed to an agent, keeps its own dedicated conversation. The ' +
|
|
423
650
|
"schedule is a five-field cron expression in the machine's local time - minute hour " +
|
|
424
651
|
'day-of-month month day-of-week - e.g. "0 8 * * 1-5" (weekdays 08:00), "*/30 * * * *" ' +
|
|
425
652
|
'(every 30 minutes), "0 18 1 * *" (the 1st at 18:00), "30 15 11 9 *" with once=true ' +
|
|
@@ -429,14 +656,24 @@ export const ORG_TOOLS = [
|
|
|
429
656
|
type: 'object',
|
|
430
657
|
properties: {
|
|
431
658
|
name: str('Short name, e.g. "Morgenbriefing".'),
|
|
432
|
-
schedule: str('Five-field cron expression or alias.'),
|
|
659
|
+
schedule: str('Five-field cron expression or alias. Leave empty only when triggerMode is "event".'),
|
|
433
660
|
prompt: str('What to do on each run, self-contained.'),
|
|
434
|
-
|
|
661
|
+
triggerMode: str('"schedule" (default) puts it on the clock; "event" means no clock at all - it waits for ' +
|
|
662
|
+
'a webhook call or a watched mailbox. An expression AND an event source together is the ' +
|
|
663
|
+
'useful third case: the event is the fast path, the expression the backstop for the ' +
|
|
664
|
+
'event that never arrived. Optional.'),
|
|
665
|
+
cooldownSeconds: {
|
|
666
|
+
type: 'number',
|
|
667
|
+
description: 'How long it rests after a run before an event may start the next one, 0 to 86400. ' +
|
|
668
|
+
'Events arriving during the rest are not lost - they collapse into one run at the end ' +
|
|
669
|
+
'of it. Default 60. Optional.',
|
|
670
|
+
},
|
|
671
|
+
agent: str('Agent slug or name to run it as their task. Omit to run it yourself.'),
|
|
435
672
|
project: str('Project name or id the run belongs to. Optional.'),
|
|
436
673
|
once: { type: 'boolean', description: 'Fire once, then switch the schedule off. Default false.' },
|
|
437
674
|
enabled: { type: 'boolean', description: 'Default true.' },
|
|
438
675
|
},
|
|
439
|
-
required: ['name', '
|
|
676
|
+
required: ['name', 'prompt'],
|
|
440
677
|
additionalProperties: false,
|
|
441
678
|
},
|
|
442
679
|
audience: ASSISTANT_ONLY,
|
|
@@ -452,6 +689,11 @@ export const ORG_TOOLS = [
|
|
|
452
689
|
name: str('Optional.'),
|
|
453
690
|
schedule: str('New cron expression. Optional.'),
|
|
454
691
|
prompt: str('Optional.'),
|
|
692
|
+
triggerMode: str('"schedule" to put it on the clock, "event" to take it off. Optional.'),
|
|
693
|
+
cooldownSeconds: {
|
|
694
|
+
type: 'number',
|
|
695
|
+
description: 'Rest between event runs, 0 to 86400. Optional.',
|
|
696
|
+
},
|
|
455
697
|
agent: str('Agent slug or name, or "assistant" to run it yourself. Optional.'),
|
|
456
698
|
project: str('Project name or id, or "none". Optional.'),
|
|
457
699
|
enabled: { type: 'boolean', description: 'Optional.' },
|
|
@@ -475,8 +717,8 @@ export const ORG_TOOLS = [
|
|
|
475
717
|
},
|
|
476
718
|
{
|
|
477
719
|
name: 'run_schedule',
|
|
478
|
-
description: 'Fire a schedule right now, in the background; returns at once. The result
|
|
479
|
-
'
|
|
720
|
+
description: 'Fire a schedule right now, in the background; returns at once. The result reaches the user as a ' +
|
|
721
|
+
'notification and appears on the Schedules page when the run is over.',
|
|
480
722
|
inputSchema: {
|
|
481
723
|
type: 'object',
|
|
482
724
|
properties: { id: str('Schedule id, prefix, or exact name.') },
|
|
@@ -499,10 +741,10 @@ export const ORG_TOOLS = [
|
|
|
499
741
|
},
|
|
500
742
|
{
|
|
501
743
|
name: 'remember',
|
|
502
|
-
description: 'Write one fact into your long-term memory
|
|
503
|
-
'
|
|
504
|
-
'
|
|
505
|
-
'might miss.',
|
|
744
|
+
description: 'Write one fact into your long-term memory, so it comes back later. For the assistant this ' +
|
|
745
|
+
'is the memory of the user; an agent writes into its own working memory of its work. ' +
|
|
746
|
+
'One self-contained sentence per call. Use it when you are told to remember something, or ' +
|
|
747
|
+
'for something clearly worth keeping that the automatic extraction might miss.',
|
|
506
748
|
inputSchema: {
|
|
507
749
|
type: 'object',
|
|
508
750
|
properties: {
|
|
@@ -514,7 +756,7 @@ export const ORG_TOOLS = [
|
|
|
514
756
|
required: ['content'],
|
|
515
757
|
additionalProperties: false,
|
|
516
758
|
},
|
|
517
|
-
audience:
|
|
759
|
+
audience: BOTH,
|
|
518
760
|
},
|
|
519
761
|
{
|
|
520
762
|
name: 'forget',
|
|
@@ -530,8 +772,9 @@ export const ORG_TOOLS = [
|
|
|
530
772
|
},
|
|
531
773
|
{
|
|
532
774
|
name: 'search_memory',
|
|
533
|
-
description: 'Search your long-term memory
|
|
534
|
-
'
|
|
775
|
+
description: 'Search your long-term memory - for the assistant that is what it knows about the user, for ' +
|
|
776
|
+
'an agent its own working memory. Without a query, the most important memories. Returns ids, ' +
|
|
777
|
+
'so a wrong one can be passed to forget.',
|
|
535
778
|
inputSchema: {
|
|
536
779
|
type: 'object',
|
|
537
780
|
properties: {
|
|
@@ -540,38 +783,108 @@ export const ORG_TOOLS = [
|
|
|
540
783
|
},
|
|
541
784
|
additionalProperties: false,
|
|
542
785
|
},
|
|
786
|
+
audience: BOTH,
|
|
787
|
+
},
|
|
788
|
+
{
|
|
789
|
+
name: 'list_listeners',
|
|
790
|
+
description: 'The mailboxes Rookery watches, and the schedule each one fires. A listener holds one IMAP ' +
|
|
791
|
+
'connection open and starts its schedule the moment mail arrives, which is what a schedule ' +
|
|
792
|
+
'that polls every few minutes is for. Passwords are never shown, only whether one is set.',
|
|
793
|
+
inputSchema: { type: 'object', properties: {}, additionalProperties: false },
|
|
794
|
+
audience: ASSISTANT_ONLY,
|
|
795
|
+
},
|
|
796
|
+
{
|
|
797
|
+
name: 'set_listener',
|
|
798
|
+
description: 'Add a watched mailbox, or change one by id. Only the fields given change; a new one needs ' +
|
|
799
|
+
'host, user, password, mailbox and the schedule it fires, and stays off until enabled=true ' +
|
|
800
|
+
'so the details can be checked first. Tell the user plainly that a password they type here ' +
|
|
801
|
+
'stays in this conversation, and offer the Listeners settings page as the alternative - the ' +
|
|
802
|
+
'password is stored either way, this is only about the transcript.',
|
|
803
|
+
inputSchema: {
|
|
804
|
+
type: 'object',
|
|
805
|
+
properties: {
|
|
806
|
+
id: str('Short name for the mailbox, e.g. "work". Runs record it as imap:<id>.'),
|
|
807
|
+
schedule: str('The schedule this mailbox fires: id, prefix, or exact name.'),
|
|
808
|
+
host: str('IMAP server, e.g. imap.fastmail.com.'),
|
|
809
|
+
port: { type: 'number', description: 'Default 993. Optional.' },
|
|
810
|
+
secure: { type: 'boolean', description: 'TLS from the first byte (993). Default true.' },
|
|
811
|
+
user: str('Mailbox user, usually the address.'),
|
|
812
|
+
password: str('Mailbox password, or an app password where the provider wants one.'),
|
|
813
|
+
mailbox: str('Which mailbox to watch. Default INBOX.'),
|
|
814
|
+
enabled: { type: 'boolean', description: 'Default false when creating.' },
|
|
815
|
+
},
|
|
816
|
+
required: ['id'],
|
|
817
|
+
additionalProperties: false,
|
|
818
|
+
},
|
|
819
|
+
audience: ASSISTANT_ONLY,
|
|
820
|
+
},
|
|
821
|
+
{
|
|
822
|
+
name: 'remove_listener',
|
|
823
|
+
description: 'Stop watching a mailbox and forget its settings, the stored password included.',
|
|
824
|
+
inputSchema: {
|
|
825
|
+
type: 'object',
|
|
826
|
+
properties: { id: str('The listener id.') },
|
|
827
|
+
required: ['id'],
|
|
828
|
+
additionalProperties: false,
|
|
829
|
+
},
|
|
830
|
+
audience: ASSISTANT_ONLY,
|
|
831
|
+
},
|
|
832
|
+
{
|
|
833
|
+
name: 'set_webhook',
|
|
834
|
+
description: 'Give a schedule a URL that starts it, or take the URL away. Creating one again rotates it, ' +
|
|
835
|
+
'and the previous URL stops working that second. Whoever holds the URL can start that one ' +
|
|
836
|
+
'schedule and nothing else. Say it out loud only when the user asked for it: once said, it ' +
|
|
837
|
+
'is in this conversation for good, and rotating is the way back.',
|
|
838
|
+
inputSchema: {
|
|
839
|
+
type: 'object',
|
|
840
|
+
properties: {
|
|
841
|
+
id: str('Schedule id, prefix, or exact name.'),
|
|
842
|
+
action: str('"create" to issue or rotate it, "remove" to take it away. Default create.'),
|
|
843
|
+
},
|
|
844
|
+
required: ['id'],
|
|
845
|
+
additionalProperties: false,
|
|
846
|
+
},
|
|
543
847
|
audience: ASSISTANT_ONLY,
|
|
544
848
|
},
|
|
545
849
|
{
|
|
546
850
|
name: 'get_settings',
|
|
547
851
|
description: 'The current settings you may change: default provider, model and effort for turns and ' +
|
|
548
|
-
'
|
|
852
|
+
'runs, and the company limits (parallel runs, delegation depth, run ' +
|
|
549
853
|
'timeout).',
|
|
550
854
|
inputSchema: { type: 'object', properties: {}, additionalProperties: false },
|
|
551
855
|
audience: ASSISTANT_ONLY,
|
|
552
856
|
},
|
|
553
857
|
{
|
|
554
858
|
name: 'update_settings',
|
|
555
|
-
description: 'Change settings and persist them; they apply from the next turn or
|
|
859
|
+
description: 'Change settings and persist them; they apply from the next turn or run. Only the ' +
|
|
556
860
|
'fields given change. Do this when the user asks for it, or say what you changed and why.',
|
|
557
861
|
inputSchema: {
|
|
558
862
|
type: 'object',
|
|
559
863
|
properties: {
|
|
560
|
-
defaultProvider: str(
|
|
864
|
+
defaultProvider: str(PROVIDER_HINT + ' Optional.'),
|
|
561
865
|
defaultModel: str('Model id, or "default" for the provider default. Optional.'),
|
|
562
866
|
defaultEffort: str('low, medium, high, or "default". Optional.'),
|
|
563
867
|
maxConcurrentAssignments: { type: 'number', description: 'Agent processes at the same time, 1 to 16. Optional.' },
|
|
564
868
|
maxDelegationDepth: { type: 'number', description: 'How deep agents may delegate below you, 1 to 6. Optional.' },
|
|
565
|
-
assignmentTimeoutMinutes: { type: 'number', description: 'Hard stop for one
|
|
869
|
+
assignmentTimeoutMinutes: { type: 'number', description: 'Hard stop for one run, 1 to 600. Optional.' },
|
|
566
870
|
},
|
|
567
871
|
additionalProperties: false,
|
|
568
872
|
},
|
|
569
873
|
audience: ASSISTANT_ONLY,
|
|
570
874
|
},
|
|
571
875
|
];
|
|
572
|
-
/**
|
|
573
|
-
|
|
574
|
-
|
|
876
|
+
/**
|
|
877
|
+
* The tools one audience may call. The second argument narrows it further:
|
|
878
|
+
* an unattended run drops everything marked `needsPerson`, so the model is
|
|
879
|
+
* never offered a way to wait for an answer that cannot come, and the board
|
|
880
|
+
* watcher is cut down to {@link WATCH_TOOLS} - the one caller whose limits
|
|
881
|
+
* are a list of what it may do rather than a list of what it may not.
|
|
882
|
+
*/
|
|
883
|
+
export function toolsFor(audience, availability = {}) {
|
|
884
|
+
return ORG_TOOLS.filter((tool) => tool.audience.includes(audience) &&
|
|
885
|
+
!(availability.scheduled && tool.needsPerson) &&
|
|
886
|
+
!(audience === 'assistant' && tool.assistantOnlyWhenWatching && !availability.watching) &&
|
|
887
|
+
!(availability.watching && !WATCH_TOOLS.has(tool.name)));
|
|
575
888
|
}
|
|
576
889
|
/** The MCP server name; the CLI exposes tools as `mcp__rookery__<name>`. */
|
|
577
890
|
export const MCP_SERVER_NAME = 'rookery';
|