rookery-agent 0.1.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/LICENSE +21 -0
- package/README.md +367 -0
- package/docs/migration.md +88 -0
- package/package.json +39 -0
- package/packages/cli/dist/commands/chat.d.ts +52 -0
- package/packages/cli/dist/commands/chat.d.ts.map +1 -0
- package/packages/cli/dist/commands/chat.js +107 -0
- package/packages/cli/dist/commands/chat.js.map +1 -0
- package/packages/cli/dist/commands/config.d.ts +12 -0
- package/packages/cli/dist/commands/config.d.ts.map +1 -0
- package/packages/cli/dist/commands/config.js +156 -0
- package/packages/cli/dist/commands/config.js.map +1 -0
- package/packages/cli/dist/commands/doctor.d.ts +12 -0
- package/packages/cli/dist/commands/doctor.d.ts.map +1 -0
- package/packages/cli/dist/commands/doctor.js +137 -0
- package/packages/cli/dist/commands/doctor.js.map +1 -0
- package/packages/cli/dist/commands/memory.d.ts +34 -0
- package/packages/cli/dist/commands/memory.d.ts.map +1 -0
- package/packages/cli/dist/commands/memory.js +133 -0
- package/packages/cli/dist/commands/memory.js.map +1 -0
- package/packages/cli/dist/commands/org.d.ts +93 -0
- package/packages/cli/dist/commands/org.d.ts.map +1 -0
- package/packages/cli/dist/commands/org.js +389 -0
- package/packages/cli/dist/commands/org.js.map +1 -0
- package/packages/cli/dist/commands/serve.d.ts +13 -0
- package/packages/cli/dist/commands/serve.d.ts.map +1 -0
- package/packages/cli/dist/commands/serve.js +100 -0
- package/packages/cli/dist/commands/serve.js.map +1 -0
- package/packages/cli/dist/commands/sessions.d.ts +18 -0
- package/packages/cli/dist/commands/sessions.d.ts.map +1 -0
- package/packages/cli/dist/commands/sessions.js +88 -0
- package/packages/cli/dist/commands/sessions.js.map +1 -0
- package/packages/cli/dist/commands/shared.d.ts +59 -0
- package/packages/cli/dist/commands/shared.d.ts.map +1 -0
- package/packages/cli/dist/commands/shared.js +230 -0
- package/packages/cli/dist/commands/shared.js.map +1 -0
- package/packages/cli/dist/commands/tasks.d.ts +62 -0
- package/packages/cli/dist/commands/tasks.d.ts.map +1 -0
- package/packages/cli/dist/commands/tasks.js +262 -0
- package/packages/cli/dist/commands/tasks.js.map +1 -0
- package/packages/cli/dist/commands/tools.d.ts +8 -0
- package/packages/cli/dist/commands/tools.d.ts.map +1 -0
- package/packages/cli/dist/commands/tools.js +65 -0
- package/packages/cli/dist/commands/tools.js.map +1 -0
- package/packages/cli/dist/index.d.ts +15 -0
- package/packages/cli/dist/index.d.ts.map +1 -0
- package/packages/cli/dist/index.js +513 -0
- package/packages/cli/dist/index.js.map +1 -0
- package/packages/cli/dist/repl.d.ts +29 -0
- package/packages/cli/dist/repl.d.ts.map +1 -0
- package/packages/cli/dist/repl.js +634 -0
- package/packages/cli/dist/repl.js.map +1 -0
- package/packages/cli/dist/tui/App.d.ts +51 -0
- package/packages/cli/dist/tui/App.d.ts.map +1 -0
- package/packages/cli/dist/tui/App.js +461 -0
- package/packages/cli/dist/tui/App.js.map +1 -0
- package/packages/cli/dist/tui/commands.d.ts +34 -0
- package/packages/cli/dist/tui/commands.d.ts.map +1 -0
- package/packages/cli/dist/tui/commands.js +367 -0
- package/packages/cli/dist/tui/commands.js.map +1 -0
- package/packages/cli/dist/tui/components/ActivityLine.d.ts +16 -0
- package/packages/cli/dist/tui/components/ActivityLine.d.ts.map +1 -0
- package/packages/cli/dist/tui/components/ActivityLine.js +7 -0
- package/packages/cli/dist/tui/components/ActivityLine.js.map +1 -0
- package/packages/cli/dist/tui/components/AssignmentsView.d.ts +31 -0
- package/packages/cli/dist/tui/components/AssignmentsView.d.ts.map +1 -0
- package/packages/cli/dist/tui/components/AssignmentsView.js +79 -0
- package/packages/cli/dist/tui/components/AssignmentsView.js.map +1 -0
- package/packages/cli/dist/tui/components/Banner.d.ts +18 -0
- package/packages/cli/dist/tui/components/Banner.d.ts.map +1 -0
- package/packages/cli/dist/tui/components/Banner.js +16 -0
- package/packages/cli/dist/tui/components/Banner.js.map +1 -0
- package/packages/cli/dist/tui/components/CodeBlock.d.ts +19 -0
- package/packages/cli/dist/tui/components/CodeBlock.d.ts.map +1 -0
- package/packages/cli/dist/tui/components/CodeBlock.js +21 -0
- package/packages/cli/dist/tui/components/CodeBlock.js.map +1 -0
- package/packages/cli/dist/tui/components/InputBox.d.ts +25 -0
- package/packages/cli/dist/tui/components/InputBox.d.ts.map +1 -0
- package/packages/cli/dist/tui/components/InputBox.js +35 -0
- package/packages/cli/dist/tui/components/InputBox.js.map +1 -0
- package/packages/cli/dist/tui/components/Markdown.d.ts +74 -0
- package/packages/cli/dist/tui/components/Markdown.d.ts.map +1 -0
- package/packages/cli/dist/tui/components/Markdown.js +293 -0
- package/packages/cli/dist/tui/components/Markdown.js.map +1 -0
- package/packages/cli/dist/tui/components/Message.d.ts +29 -0
- package/packages/cli/dist/tui/components/Message.d.ts.map +1 -0
- package/packages/cli/dist/tui/components/Message.js +28 -0
- package/packages/cli/dist/tui/components/Message.js.map +1 -0
- package/packages/cli/dist/tui/components/Scrollback.d.ts +23 -0
- package/packages/cli/dist/tui/components/Scrollback.d.ts.map +1 -0
- package/packages/cli/dist/tui/components/Scrollback.js +36 -0
- package/packages/cli/dist/tui/components/Scrollback.js.map +1 -0
- package/packages/cli/dist/tui/components/SlashPalette.d.ts +17 -0
- package/packages/cli/dist/tui/components/SlashPalette.d.ts.map +1 -0
- package/packages/cli/dist/tui/components/SlashPalette.js +19 -0
- package/packages/cli/dist/tui/components/SlashPalette.js.map +1 -0
- package/packages/cli/dist/tui/components/StatusLine.d.ts +61 -0
- package/packages/cli/dist/tui/components/StatusLine.d.ts.map +1 -0
- package/packages/cli/dist/tui/components/StatusLine.js +55 -0
- package/packages/cli/dist/tui/components/StatusLine.js.map +1 -0
- package/packages/cli/dist/tui/components/ToolGroup.d.ts +33 -0
- package/packages/cli/dist/tui/components/ToolGroup.d.ts.map +1 -0
- package/packages/cli/dist/tui/components/ToolGroup.js +52 -0
- package/packages/cli/dist/tui/components/ToolGroup.js.map +1 -0
- package/packages/cli/dist/tui/components/Wordmark.d.ts +35 -0
- package/packages/cli/dist/tui/components/Wordmark.d.ts.map +1 -0
- package/packages/cli/dist/tui/components/Wordmark.js +81 -0
- package/packages/cli/dist/tui/components/Wordmark.js.map +1 -0
- package/packages/cli/dist/tui/highlight.d.ts +29 -0
- package/packages/cli/dist/tui/highlight.d.ts.map +1 -0
- package/packages/cli/dist/tui/highlight.js +137 -0
- package/packages/cli/dist/tui/highlight.js.map +1 -0
- package/packages/cli/dist/tui/hooks/useColumns.d.ts +20 -0
- package/packages/cli/dist/tui/hooks/useColumns.d.ts.map +1 -0
- package/packages/cli/dist/tui/hooks/useColumns.js +38 -0
- package/packages/cli/dist/tui/hooks/useColumns.js.map +1 -0
- package/packages/cli/dist/tui/hooks/useHistory.d.ts +21 -0
- package/packages/cli/dist/tui/hooks/useHistory.d.ts.map +1 -0
- package/packages/cli/dist/tui/hooks/useHistory.js +57 -0
- package/packages/cli/dist/tui/hooks/useHistory.js.map +1 -0
- package/packages/cli/dist/tui/hooks/useSlash.d.ts +38 -0
- package/packages/cli/dist/tui/hooks/useSlash.d.ts.map +1 -0
- package/packages/cli/dist/tui/hooks/useSlash.js +89 -0
- package/packages/cli/dist/tui/hooks/useSlash.js.map +1 -0
- package/packages/cli/dist/tui/hooks/useTurn.d.ts +75 -0
- package/packages/cli/dist/tui/hooks/useTurn.d.ts.map +1 -0
- package/packages/cli/dist/tui/hooks/useTurn.js +396 -0
- package/packages/cli/dist/tui/hooks/useTurn.js.map +1 -0
- package/packages/cli/dist/tui/theme.d.ts +126 -0
- package/packages/cli/dist/tui/theme.d.ts.map +1 -0
- package/packages/cli/dist/tui/theme.js +127 -0
- package/packages/cli/dist/tui/theme.js.map +1 -0
- package/packages/cli/dist/tui/types.d.ts +205 -0
- package/packages/cli/dist/tui/types.d.ts.map +1 -0
- package/packages/cli/dist/tui/types.js +55 -0
- package/packages/cli/dist/tui/types.js.map +1 -0
- package/packages/cli/dist/ui/render.d.ts +74 -0
- package/packages/cli/dist/ui/render.d.ts.map +1 -0
- package/packages/cli/dist/ui/render.js +349 -0
- package/packages/cli/dist/ui/render.js.map +1 -0
- package/packages/cli/dist/ui/speech.d.ts +42 -0
- package/packages/cli/dist/ui/speech.d.ts.map +1 -0
- package/packages/cli/dist/ui/speech.js +257 -0
- package/packages/cli/dist/ui/speech.js.map +1 -0
- package/packages/cli/dist/ui/spinner.d.ts +17 -0
- package/packages/cli/dist/ui/spinner.d.ts.map +1 -0
- package/packages/cli/dist/ui/spinner.js +61 -0
- package/packages/cli/dist/ui/spinner.js.map +1 -0
- package/packages/cli/dist/ui/theme.d.ts +54 -0
- package/packages/cli/dist/ui/theme.d.ts.map +1 -0
- package/packages/cli/dist/ui/theme.js +74 -0
- package/packages/cli/dist/ui/theme.js.map +1 -0
- package/packages/cli/package.json +1 -0
- package/packages/core/dist/agents/legacy-persona.d.ts +4 -0
- package/packages/core/dist/agents/legacy-persona.d.ts.map +1 -0
- package/packages/core/dist/agents/legacy-persona.js +39 -0
- package/packages/core/dist/agents/legacy-persona.js.map +1 -0
- package/packages/core/dist/agents/orchestrator.d.ts +24 -0
- package/packages/core/dist/agents/orchestrator.d.ts.map +1 -0
- package/packages/core/dist/agents/orchestrator.js +88 -0
- package/packages/core/dist/agents/orchestrator.js.map +1 -0
- package/packages/core/dist/agents/persona.d.ts +56 -0
- package/packages/core/dist/agents/persona.d.ts.map +1 -0
- package/packages/core/dist/agents/persona.js +153 -0
- package/packages/core/dist/agents/persona.js.map +1 -0
- package/packages/core/dist/agents/roles.d.ts +21 -0
- package/packages/core/dist/agents/roles.d.ts.map +1 -0
- package/packages/core/dist/agents/roles.js +81 -0
- package/packages/core/dist/agents/roles.js.map +1 -0
- package/packages/core/dist/agents/team.d.ts +105 -0
- package/packages/core/dist/agents/team.d.ts.map +1 -0
- package/packages/core/dist/agents/team.js +623 -0
- package/packages/core/dist/agents/team.js.map +1 -0
- package/packages/core/dist/computer/keys.d.ts +12 -0
- package/packages/core/dist/computer/keys.d.ts.map +1 -0
- package/packages/core/dist/computer/keys.js +56 -0
- package/packages/core/dist/computer/keys.js.map +1 -0
- package/packages/core/dist/computer/mcp-server.d.ts +11 -0
- package/packages/core/dist/computer/mcp-server.d.ts.map +1 -0
- package/packages/core/dist/computer/mcp-server.js +228 -0
- package/packages/core/dist/computer/mcp-server.js.map +1 -0
- package/packages/core/dist/computer/powershell.d.ts +13 -0
- package/packages/core/dist/computer/powershell.d.ts.map +1 -0
- package/packages/core/dist/computer/powershell.js +359 -0
- package/packages/core/dist/computer/powershell.js.map +1 -0
- package/packages/core/dist/computer/tools.d.ts +43 -0
- package/packages/core/dist/computer/tools.d.ts.map +1 -0
- package/packages/core/dist/computer/tools.js +260 -0
- package/packages/core/dist/computer/tools.js.map +1 -0
- package/packages/core/dist/config.d.ts +32 -0
- package/packages/core/dist/config.d.ts.map +1 -0
- package/packages/core/dist/config.js +329 -0
- package/packages/core/dist/config.js.map +1 -0
- package/packages/core/dist/cron/parse.d.ts +52 -0
- package/packages/core/dist/cron/parse.d.ts.map +1 -0
- package/packages/core/dist/cron/parse.js +277 -0
- package/packages/core/dist/cron/parse.js.map +1 -0
- package/packages/core/dist/cron/scheduler.d.ts +102 -0
- package/packages/core/dist/cron/scheduler.d.ts.map +1 -0
- package/packages/core/dist/cron/scheduler.js +334 -0
- package/packages/core/dist/cron/scheduler.js.map +1 -0
- package/packages/core/dist/cron/script.d.ts +9 -0
- package/packages/core/dist/cron/script.d.ts.map +1 -0
- package/packages/core/dist/cron/script.js +113 -0
- package/packages/core/dist/cron/script.js.map +1 -0
- package/packages/core/dist/cron/store.d.ts +77 -0
- package/packages/core/dist/cron/store.d.ts.map +1 -0
- package/packages/core/dist/cron/store.js +229 -0
- package/packages/core/dist/cron/store.js.map +1 -0
- package/packages/core/dist/gateway/policy.d.ts +113 -0
- package/packages/core/dist/gateway/policy.d.ts.map +1 -0
- package/packages/core/dist/gateway/policy.js +373 -0
- package/packages/core/dist/gateway/policy.js.map +1 -0
- package/packages/core/dist/index.d.ts +45 -0
- package/packages/core/dist/index.d.ts.map +1 -0
- package/packages/core/dist/index.js +52 -0
- package/packages/core/dist/index.js.map +1 -0
- package/packages/core/dist/logger.d.ts +21 -0
- package/packages/core/dist/logger.d.ts.map +1 -0
- package/packages/core/dist/logger.js +61 -0
- package/packages/core/dist/logger.js.map +1 -0
- package/packages/core/dist/memory/db.d.ts +12 -0
- package/packages/core/dist/memory/db.d.ts.map +1 -0
- package/packages/core/dist/memory/db.js +414 -0
- package/packages/core/dist/memory/db.js.map +1 -0
- package/packages/core/dist/memory/extractor.d.ts +35 -0
- package/packages/core/dist/memory/extractor.d.ts.map +1 -0
- package/packages/core/dist/memory/extractor.js +159 -0
- package/packages/core/dist/memory/extractor.js.map +1 -0
- package/packages/core/dist/memory/gate.d.ts +68 -0
- package/packages/core/dist/memory/gate.d.ts.map +1 -0
- package/packages/core/dist/memory/gate.js +163 -0
- package/packages/core/dist/memory/gate.js.map +1 -0
- package/packages/core/dist/memory/recall.d.ts +61 -0
- package/packages/core/dist/memory/recall.d.ts.map +1 -0
- package/packages/core/dist/memory/recall.js +342 -0
- package/packages/core/dist/memory/recall.js.map +1 -0
- package/packages/core/dist/memory/sleep.d.ts +105 -0
- package/packages/core/dist/memory/sleep.d.ts.map +1 -0
- package/packages/core/dist/memory/sleep.js +888 -0
- package/packages/core/dist/memory/sleep.js.map +1 -0
- package/packages/core/dist/memory/store.d.ts +263 -0
- package/packages/core/dist/memory/store.d.ts.map +1 -0
- package/packages/core/dist/memory/store.js +999 -0
- package/packages/core/dist/memory/store.js.map +1 -0
- package/packages/core/dist/migration-cron.d.ts +37 -0
- package/packages/core/dist/migration-cron.d.ts.map +1 -0
- package/packages/core/dist/migration-cron.js +257 -0
- package/packages/core/dist/migration-cron.js.map +1 -0
- package/packages/core/dist/migration-scripts.d.ts +15 -0
- package/packages/core/dist/migration-scripts.d.ts.map +1 -0
- package/packages/core/dist/migration-scripts.js +97 -0
- package/packages/core/dist/migration-scripts.js.map +1 -0
- package/packages/core/dist/migration.d.ts +33 -0
- package/packages/core/dist/migration.d.ts.map +1 -0
- package/packages/core/dist/migration.js +296 -0
- package/packages/core/dist/migration.js.map +1 -0
- package/packages/core/dist/org/bridge.d.ts +42 -0
- package/packages/core/dist/org/bridge.d.ts.map +1 -0
- package/packages/core/dist/org/bridge.js +139 -0
- package/packages/core/dist/org/bridge.js.map +1 -0
- package/packages/core/dist/org/controller.d.ts +118 -0
- package/packages/core/dist/org/controller.d.ts.map +1 -0
- package/packages/core/dist/org/controller.js +1431 -0
- package/packages/core/dist/org/controller.js.map +1 -0
- package/packages/core/dist/org/mcp-bridge.d.ts +11 -0
- package/packages/core/dist/org/mcp-bridge.d.ts.map +1 -0
- package/packages/core/dist/org/mcp-bridge.js +148 -0
- package/packages/core/dist/org/mcp-bridge.js.map +1 -0
- package/packages/core/dist/org/planner.d.ts +60 -0
- package/packages/core/dist/org/planner.d.ts.map +1 -0
- package/packages/core/dist/org/planner.js +175 -0
- package/packages/core/dist/org/planner.js.map +1 -0
- package/packages/core/dist/org/ponytail.d.ts +24 -0
- package/packages/core/dist/org/ponytail.d.ts.map +1 -0
- package/packages/core/dist/org/ponytail.js +53 -0
- package/packages/core/dist/org/ponytail.js.map +1 -0
- package/packages/core/dist/org/project-mcp.d.ts +32 -0
- package/packages/core/dist/org/project-mcp.d.ts.map +1 -0
- package/packages/core/dist/org/project-mcp.js +53 -0
- package/packages/core/dist/org/project-mcp.js.map +1 -0
- package/packages/core/dist/org/prompts.d.ts +71 -0
- package/packages/core/dist/org/prompts.d.ts.map +1 -0
- package/packages/core/dist/org/prompts.js +268 -0
- package/packages/core/dist/org/prompts.js.map +1 -0
- package/packages/core/dist/org/store.d.ts +176 -0
- package/packages/core/dist/org/store.d.ts.map +1 -0
- package/packages/core/dist/org/store.js +594 -0
- package/packages/core/dist/org/store.js.map +1 -0
- package/packages/core/dist/org/tools.d.ts +22 -0
- package/packages/core/dist/org/tools.d.ts.map +1 -0
- package/packages/core/dist/org/tools.js +578 -0
- package/packages/core/dist/org/tools.js.map +1 -0
- package/packages/core/dist/profile.d.ts +16 -0
- package/packages/core/dist/profile.d.ts.map +1 -0
- package/packages/core/dist/profile.js +176 -0
- package/packages/core/dist/profile.js.map +1 -0
- package/packages/core/dist/providers/catalogue.d.ts +6 -0
- package/packages/core/dist/providers/catalogue.d.ts.map +1 -0
- package/packages/core/dist/providers/catalogue.js +104 -0
- package/packages/core/dist/providers/catalogue.js.map +1 -0
- package/packages/core/dist/providers/claude-code.d.ts +10 -0
- package/packages/core/dist/providers/claude-code.d.ts.map +1 -0
- package/packages/core/dist/providers/claude-code.js +321 -0
- package/packages/core/dist/providers/claude-code.js.map +1 -0
- package/packages/core/dist/providers/codex.d.ts +10 -0
- package/packages/core/dist/providers/codex.d.ts.map +1 -0
- package/packages/core/dist/providers/codex.js +375 -0
- package/packages/core/dist/providers/codex.js.map +1 -0
- package/packages/core/dist/providers/process.d.ts +48 -0
- package/packages/core/dist/providers/process.d.ts.map +1 -0
- package/packages/core/dist/providers/process.js +165 -0
- package/packages/core/dist/providers/process.js.map +1 -0
- package/packages/core/dist/providers/quota.d.ts +13 -0
- package/packages/core/dist/providers/quota.d.ts.map +1 -0
- package/packages/core/dist/providers/quota.js +231 -0
- package/packages/core/dist/providers/quota.js.map +1 -0
- package/packages/core/dist/providers/registry.d.ts +27 -0
- package/packages/core/dist/providers/registry.d.ts.map +1 -0
- package/packages/core/dist/providers/registry.js +64 -0
- package/packages/core/dist/providers/registry.js.map +1 -0
- package/packages/core/dist/runtime.d.ts +149 -0
- package/packages/core/dist/runtime.d.ts.map +1 -0
- package/packages/core/dist/runtime.js +778 -0
- package/packages/core/dist/runtime.js.map +1 -0
- package/packages/core/dist/skills/import.d.ts +41 -0
- package/packages/core/dist/skills/import.d.ts.map +1 -0
- package/packages/core/dist/skills/import.js +129 -0
- package/packages/core/dist/skills/import.js.map +1 -0
- package/packages/core/dist/skills/store.d.ts +57 -0
- package/packages/core/dist/skills/store.d.ts.map +1 -0
- package/packages/core/dist/skills/store.js +126 -0
- package/packages/core/dist/skills/store.js.map +1 -0
- package/packages/core/dist/tools/browser.d.ts +20 -0
- package/packages/core/dist/tools/browser.d.ts.map +1 -0
- package/packages/core/dist/tools/browser.js +72 -0
- package/packages/core/dist/tools/browser.js.map +1 -0
- package/packages/core/dist/tools/catalog.d.ts +67 -0
- package/packages/core/dist/tools/catalog.d.ts.map +1 -0
- package/packages/core/dist/tools/catalog.js +233 -0
- package/packages/core/dist/tools/catalog.js.map +1 -0
- package/packages/core/dist/tools/hub.d.ts +68 -0
- package/packages/core/dist/tools/hub.d.ts.map +1 -0
- package/packages/core/dist/tools/hub.js +213 -0
- package/packages/core/dist/tools/hub.js.map +1 -0
- package/packages/core/dist/types.d.ts +1031 -0
- package/packages/core/dist/types.d.ts.map +1 -0
- package/packages/core/dist/types.js +22 -0
- package/packages/core/dist/types.js.map +1 -0
- package/packages/core/dist/util/queue.d.ts +25 -0
- package/packages/core/dist/util/queue.d.ts.map +1 -0
- package/packages/core/dist/util/queue.js +64 -0
- package/packages/core/dist/util/queue.js.map +1 -0
- package/packages/core/package.json +1 -0
- package/packages/server/dist/auth.d.ts +12 -0
- package/packages/server/dist/auth.d.ts.map +1 -0
- package/packages/server/dist/auth.js +61 -0
- package/packages/server/dist/auth.js.map +1 -0
- package/packages/server/dist/context.d.ts +29 -0
- package/packages/server/dist/context.d.ts.map +1 -0
- package/packages/server/dist/context.js +46 -0
- package/packages/server/dist/context.js.map +1 -0
- package/packages/server/dist/env.d.ts +8 -0
- package/packages/server/dist/env.d.ts.map +1 -0
- package/packages/server/dist/env.js +36 -0
- package/packages/server/dist/env.js.map +1 -0
- package/packages/server/dist/gateways/push.d.ts +22 -0
- package/packages/server/dist/gateways/push.d.ts.map +1 -0
- package/packages/server/dist/gateways/push.js +267 -0
- package/packages/server/dist/gateways/push.js.map +1 -0
- package/packages/server/dist/gateways/telegram-api.d.ts +82 -0
- package/packages/server/dist/gateways/telegram-api.d.ts.map +1 -0
- package/packages/server/dist/gateways/telegram-api.js +168 -0
- package/packages/server/dist/gateways/telegram-api.js.map +1 -0
- package/packages/server/dist/gateways/telegram.d.ts +32 -0
- package/packages/server/dist/gateways/telegram.d.ts.map +1 -0
- package/packages/server/dist/gateways/telegram.js +583 -0
- package/packages/server/dist/gateways/telegram.js.map +1 -0
- package/packages/server/dist/index.d.ts +12 -0
- package/packages/server/dist/index.d.ts.map +1 -0
- package/packages/server/dist/index.js +12 -0
- package/packages/server/dist/index.js.map +1 -0
- package/packages/server/dist/main.d.ts +2 -0
- package/packages/server/dist/main.d.ts.map +1 -0
- package/packages/server/dist/main.js +74 -0
- package/packages/server/dist/main.js.map +1 -0
- package/packages/server/dist/routes/agents.d.ts +5 -0
- package/packages/server/dist/routes/agents.d.ts.map +1 -0
- package/packages/server/dist/routes/agents.js +6 -0
- package/packages/server/dist/routes/agents.js.map +1 -0
- package/packages/server/dist/routes/chat.d.ts +10 -0
- package/packages/server/dist/routes/chat.d.ts.map +1 -0
- package/packages/server/dist/routes/chat.js +36 -0
- package/packages/server/dist/routes/chat.js.map +1 -0
- package/packages/server/dist/routes/config.d.ts +4 -0
- package/packages/server/dist/routes/config.d.ts.map +1 -0
- package/packages/server/dist/routes/config.js +58 -0
- package/packages/server/dist/routes/config.js.map +1 -0
- package/packages/server/dist/routes/cron.d.ts +10 -0
- package/packages/server/dist/routes/cron.d.ts.map +1 -0
- package/packages/server/dist/routes/cron.js +128 -0
- package/packages/server/dist/routes/cron.js.map +1 -0
- package/packages/server/dist/routes/gateways.d.ts +10 -0
- package/packages/server/dist/routes/gateways.d.ts.map +1 -0
- package/packages/server/dist/routes/gateways.js +32 -0
- package/packages/server/dist/routes/gateways.js.map +1 -0
- package/packages/server/dist/routes/health.d.ts +8 -0
- package/packages/server/dist/routes/health.d.ts.map +1 -0
- package/packages/server/dist/routes/health.js +12 -0
- package/packages/server/dist/routes/health.js.map +1 -0
- package/packages/server/dist/routes/memories.d.ts +11 -0
- package/packages/server/dist/routes/memories.d.ts.map +1 -0
- package/packages/server/dist/routes/memories.js +134 -0
- package/packages/server/dist/routes/memories.js.map +1 -0
- package/packages/server/dist/routes/org.d.ts +13 -0
- package/packages/server/dist/routes/org.d.ts.map +1 -0
- package/packages/server/dist/routes/org.js +316 -0
- package/packages/server/dist/routes/org.js.map +1 -0
- package/packages/server/dist/routes/profile.d.ts +4 -0
- package/packages/server/dist/routes/profile.d.ts.map +1 -0
- package/packages/server/dist/routes/profile.js +51 -0
- package/packages/server/dist/routes/profile.js.map +1 -0
- package/packages/server/dist/routes/providers.d.ts +9 -0
- package/packages/server/dist/routes/providers.d.ts.map +1 -0
- package/packages/server/dist/routes/providers.js +41 -0
- package/packages/server/dist/routes/providers.js.map +1 -0
- package/packages/server/dist/routes/sessions.d.ts +9 -0
- package/packages/server/dist/routes/sessions.d.ts.map +1 -0
- package/packages/server/dist/routes/sessions.js +72 -0
- package/packages/server/dist/routes/sessions.js.map +1 -0
- package/packages/server/dist/routes/sleep.d.ts +12 -0
- package/packages/server/dist/routes/sleep.d.ts.map +1 -0
- package/packages/server/dist/routes/sleep.js +70 -0
- package/packages/server/dist/routes/sleep.js.map +1 -0
- package/packages/server/dist/routes/stats.d.ts +17 -0
- package/packages/server/dist/routes/stats.d.ts.map +1 -0
- package/packages/server/dist/routes/stats.js +57 -0
- package/packages/server/dist/routes/stats.js.map +1 -0
- package/packages/server/dist/routes/team.d.ts +11 -0
- package/packages/server/dist/routes/team.d.ts.map +1 -0
- package/packages/server/dist/routes/team.js +36 -0
- package/packages/server/dist/routes/team.js.map +1 -0
- package/packages/server/dist/routes/tools.d.ts +10 -0
- package/packages/server/dist/routes/tools.d.ts.map +1 -0
- package/packages/server/dist/routes/tools.js +128 -0
- package/packages/server/dist/routes/tools.js.map +1 -0
- package/packages/server/dist/routes/tts.d.ts +12 -0
- package/packages/server/dist/routes/tts.d.ts.map +1 -0
- package/packages/server/dist/routes/tts.js +38 -0
- package/packages/server/dist/routes/tts.js.map +1 -0
- package/packages/server/dist/routes/ws.d.ts +13 -0
- package/packages/server/dist/routes/ws.d.ts.map +1 -0
- package/packages/server/dist/routes/ws.js +96 -0
- package/packages/server/dist/routes/ws.js.map +1 -0
- package/packages/server/dist/schemas.d.ts +981 -0
- package/packages/server/dist/schemas.d.ts.map +1 -0
- package/packages/server/dist/schemas.js +339 -0
- package/packages/server/dist/schemas.js.map +1 -0
- package/packages/server/dist/server.d.ts +20 -0
- package/packages/server/dist/server.d.ts.map +1 -0
- package/packages/server/dist/server.js +234 -0
- package/packages/server/dist/server.js.map +1 -0
- package/packages/server/dist/services/stream.d.ts +77 -0
- package/packages/server/dist/services/stream.d.ts.map +1 -0
- package/packages/server/dist/services/stream.js +84 -0
- package/packages/server/dist/services/stream.js.map +1 -0
- package/packages/server/dist/services/tts.d.ts +53 -0
- package/packages/server/dist/services/tts.d.ts.map +1 -0
- package/packages/server/dist/services/tts.js +281 -0
- package/packages/server/dist/services/tts.js.map +1 -0
- package/packages/server/dist/services/voice-keys.d.ts +26 -0
- package/packages/server/dist/services/voice-keys.d.ts.map +1 -0
- package/packages/server/dist/services/voice-keys.js +51 -0
- package/packages/server/dist/services/voice-keys.js.map +1 -0
- package/packages/server/dist/static.d.ts +12 -0
- package/packages/server/dist/static.d.ts.map +1 -0
- package/packages/server/dist/static.js +63 -0
- package/packages/server/dist/static.js.map +1 -0
- package/packages/server/package.json +1 -0
- package/packages/web/dist/apple-touch-icon.png +0 -0
- package/packages/web/dist/assets/3d-force-graph-BPZmoydi.js +1163 -0
- package/packages/web/dist/assets/bricolage-grotesque-latin-ext-wght-normal-CcLUaPy7.woff2 +0 -0
- package/packages/web/dist/assets/bricolage-grotesque-latin-wght-normal-DLoelf7F.woff2 +0 -0
- package/packages/web/dist/assets/bricolage-grotesque-vietnamese-wght-normal-BUzh504Q.woff2 +0 -0
- package/packages/web/dist/assets/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2 +0 -0
- package/packages/web/dist/assets/geist-cyrillic-wght-normal-BEAKL7Jp.woff2 +0 -0
- package/packages/web/dist/assets/geist-latin-ext-wght-normal-DC-KSUi6.woff2 +0 -0
- package/packages/web/dist/assets/geist-latin-wght-normal-BgDaEnEv.woff2 +0 -0
- package/packages/web/dist/assets/geist-mono-cyrillic-ext-wght-normal-X_5orZeX.woff2 +0 -0
- package/packages/web/dist/assets/geist-mono-cyrillic-wght-normal-DiZS0aHC.woff2 +0 -0
- package/packages/web/dist/assets/geist-mono-latin-ext-wght-normal-Bwz-egvJ.woff2 +0 -0
- package/packages/web/dist/assets/geist-mono-latin-wght-normal-XN7g48iV.woff2 +0 -0
- package/packages/web/dist/assets/geist-mono-symbols2-wght-normal-CO5SzqOn.woff2 +0 -0
- package/packages/web/dist/assets/geist-mono-vietnamese-wght-normal-DadHysG0.woff2 +0 -0
- package/packages/web/dist/assets/geist-vietnamese-wght-normal-6IgcOCM7.woff2 +0 -0
- package/packages/web/dist/assets/index-IBSTzK7-.js +1255 -0
- package/packages/web/dist/assets/index-qUXUui7W.css +1 -0
- package/packages/web/dist/assets/three-spritetext-B9ZIW7c-.js +4 -0
- package/packages/web/dist/assets/three.module-cmFfBtHS.js +4228 -0
- package/packages/web/dist/favicon.ico +0 -0
- package/packages/web/dist/favicon.svg +2 -0
- package/packages/web/dist/index.html +28 -0
- package/packages/web/dist/logo-light.svg +2 -0
- package/packages/web/dist/logo.svg +2 -0
- package/packages/web/dist/mark-light.svg +2 -0
- package/packages/web/dist/mark.svg +2 -0
- package/packages/web/package.json +1 -0
- package/scripts/rookery.mjs +183 -0
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { renderMemoryBlock } from '../memory/recall.js';
|
|
2
|
+
import { renderProfile } from '../profile.js';
|
|
3
|
+
/** Spoken delivery changes format, while the saved persona still owns the voice. */
|
|
4
|
+
function spokenStyle(config) {
|
|
5
|
+
const lines = [];
|
|
6
|
+
const address = config.honorific || config.userName || 'by their preferred form of address';
|
|
7
|
+
{
|
|
8
|
+
lines.push('This turn will be READ ALOUD. Keep it under about 60 spoken words.', 'Write flowing prose with no markdown, no bullet points, no code blocks and no URLs.', 'Spell out numbers and units the way a person would say them.', 'If the full answer needs a list or code, give the spoken gist and say the detail is on screen.', 'Delegating in a spoken turn: call assign with wait=false, say in one sentence whom you handed', 'it to, and stop. Do not wait for agents while the user is talking to you; the result can be', 'asked for later with assignment_status.',
|
|
9
|
+
// The user hears the turn as it streams, so working in silence reads as
|
|
10
|
+
// a dead line. This overrides any "do not narrate" rule in the tool
|
|
11
|
+
// paragraphs below for spoken turns.
|
|
12
|
+
'THINK ALOUD while you work with tools in a spoken turn: before each group of actions one', 'short sentence saying what you are about to do, after each look at the screen or a page one', 'short sentence saying what you see, then the next action. At most twelve words each, written', 'as plain prose between the tool calls, never a sentence per click. This is the one exception', 'to answering in two words. When the work is done, one closing sentence with the outcome.');
|
|
13
|
+
if (config.voice.style === 'jarvis') {
|
|
14
|
+
lines.push('SPOKEN REGISTER, this turn only: the bearing above, distilled. A bone-dry British', 'butler-AI, deadpan, unhurried, faintly amused at most. Short declarative sentences.', 'No exclamation marks, no emojis, no enthusiasm, no pleasantries, no "certainly",', '"great", "of course", "happy to". Confirmations are one or two words:', '"Done." "Understood." "On it." At most one dry aside per answer, delivered flat,', 'never explained. Address the user ' + address + ' occasionally, not every sentence.', 'Prefer forty spoken words over sixty. The register, not a script: a butler who has seen', 'everything and is impressed by nothing. Never reuse a stock phrase from one answer in the', 'next; the dryness comes from restraint and precision, not from catchphrases.');
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
return lines.join(' ');
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* The doctrine that turns a capable assistant into a resourceful one.
|
|
21
|
+
*
|
|
22
|
+
* A model is trained to be helpful and honest, and "I cannot do that" feels
|
|
23
|
+
* honest to it. Here it is usually false: this assistant sits on the user's
|
|
24
|
+
* own machine, with their screen, their browser, their files and a company
|
|
25
|
+
* of agents behind it, so a first failure is nearly always the wrong route
|
|
26
|
+
* rather than a real limit. The block below names the ladder of routes and,
|
|
27
|
+
* just as importantly, where the ladder stops: an assistant that never gives
|
|
28
|
+
* up but also never stops is worse than one that gives up too early.
|
|
29
|
+
*
|
|
30
|
+
* It stays deliberately generic about tools. Which servers are attached this
|
|
31
|
+
* turn, and which ones could be, comes from the hub as its own paragraph.
|
|
32
|
+
*/
|
|
33
|
+
function resourcefulness() {
|
|
34
|
+
return [
|
|
35
|
+
'HOW YOU WORK. You do not hit dead ends. "That is not possible", "I have no access to that" and',
|
|
36
|
+
'"you will have to do that yourself" are conclusions you may reach only after you have actually',
|
|
37
|
+
'tried, never openings. Start from the assumption that there is a way, because there almost',
|
|
38
|
+
'always is: anything the user could do sitting at this machine, you can do as well - their',
|
|
39
|
+
'screen, their keyboard, their programs, their files, their browser, the open web, and staff of',
|
|
40
|
+
'your own with a real shell. Where there are ways, there are goals.',
|
|
41
|
+
// The ladder. Each rung is a different kind of route, which is the point:
|
|
42
|
+
// a second attempt at the same route is not perseverance, it is noise.
|
|
43
|
+
'When the obvious route fails, climb. One: answer or act from what you know and remember. Two:',
|
|
44
|
+
'your own tools. Three: the open web through a browser. Four: the machine itself - look at the',
|
|
45
|
+
'screen, work the mouse and the keyboard, drive the program the way a person would. Five: hand',
|
|
46
|
+
'it to an agent, which has a shell, a filesystem and a project directory you do not have here;',
|
|
47
|
+
'if its authority is too low for the job, raise it, and if no role fits, hire one for exactly',
|
|
48
|
+
'this. Six: attach a tool you are missing and carry on. Every rung is a different kind of route,',
|
|
49
|
+
'not the same attempt again, and you keep climbing without narrating the climb.',
|
|
50
|
+
'Treat an error as information, not as a verdict. Read what it actually says, change one thing,',
|
|
51
|
+
'try again. Failing twice the same way means the route is wrong: change the route, not the',
|
|
52
|
+
'parameter. Only after three genuinely different routes may you report that something cannot be',
|
|
53
|
+
'done, and then you say precisely what stopped you, what you tried, and the single thing that',
|
|
54
|
+
'would unblock it. Never answer with a plan the user would have to carry out themselves while',
|
|
55
|
+
'a route you have not tried is still open.',
|
|
56
|
+
'A missing detail is not a reason to stop either: take the most reasonable reading, say in half',
|
|
57
|
+
'a sentence which one you took, and deliver. Ask only when guessing wrong would be expensive or',
|
|
58
|
+
'hard to undo.',
|
|
59
|
+
// The guardrails, restated here so the doctrine cannot be read as a
|
|
60
|
+
// licence. They are the price of being trusted with the machine.
|
|
61
|
+
'None of this loosens what holds. Anything irreversible or consequential - deleting, sending,',
|
|
62
|
+
'publishing, buying, spending, touching credentials, payment details or other people -',
|
|
63
|
+
'still gets one short question first, and "stop" stops you immediately. Never invent a result,',
|
|
64
|
+
'never call something done that you have not seen work, and never let stubbornness turn into',
|
|
65
|
+
'a loop: if you are on the fourth attempt at the same thing, you are no longer being resourceful.',
|
|
66
|
+
'Report outcomes, not effort; mention the detour in one line only when it changed what the user',
|
|
67
|
+
'gets.',
|
|
68
|
+
].join(' ');
|
|
69
|
+
}
|
|
70
|
+
/** Compress older turns into a digest so a cold session still has continuity. */
|
|
71
|
+
function renderHistory(history, budget) {
|
|
72
|
+
if (!history.length)
|
|
73
|
+
return '';
|
|
74
|
+
const lines = [];
|
|
75
|
+
let used = 0;
|
|
76
|
+
// Walk backwards so the newest turns survive the budget.
|
|
77
|
+
for (let index = history.length - 1; index >= 0; index -= 1) {
|
|
78
|
+
const message = history[index];
|
|
79
|
+
if (!message)
|
|
80
|
+
continue;
|
|
81
|
+
const speaker = message.role === 'user' ? 'User' : 'You';
|
|
82
|
+
const body = message.content.replace(/\s+/g, ' ').trim();
|
|
83
|
+
const line = speaker + ': ' + (body.length > 400 ? body.slice(0, 397) + '...' : body);
|
|
84
|
+
if (used + line.length > budget)
|
|
85
|
+
break;
|
|
86
|
+
lines.unshift(line);
|
|
87
|
+
used += line.length + 1;
|
|
88
|
+
}
|
|
89
|
+
if (!lines.length)
|
|
90
|
+
return '';
|
|
91
|
+
return 'Earlier in this conversation:\n' + lines.join('\n');
|
|
92
|
+
}
|
|
93
|
+
/** Build the full system prompt for one turn of the assistant's own voice. */
|
|
94
|
+
export function buildSystemPrompt(input) {
|
|
95
|
+
const { config, memories, resumed, voice = false } = input;
|
|
96
|
+
const budget = config.memory.contextBudget;
|
|
97
|
+
const sections = [renderProfile(config, input.query), resourcefulness()];
|
|
98
|
+
if (voice)
|
|
99
|
+
sections.push(spokenStyle(config));
|
|
100
|
+
const memoryBlock = renderMemoryBlock(memories, Math.floor(budget * 0.4), 'this user', input.store);
|
|
101
|
+
if (memoryBlock)
|
|
102
|
+
sections.push(memoryBlock);
|
|
103
|
+
if (!resumed && input.history?.length) {
|
|
104
|
+
const historyBlock = renderHistory(input.history, Math.floor(budget * 0.5));
|
|
105
|
+
if (historyBlock)
|
|
106
|
+
sections.push(historyBlock);
|
|
107
|
+
}
|
|
108
|
+
if (input.orgBlock)
|
|
109
|
+
sections.push(input.orgBlock);
|
|
110
|
+
for (const hint of input.toolHints ?? [])
|
|
111
|
+
sections.push(hint);
|
|
112
|
+
if (input.skillsIndex)
|
|
113
|
+
sections.push(input.skillsIndex);
|
|
114
|
+
sections.push('Today is ' + new Date().toISOString().slice(0, 10) + '.');
|
|
115
|
+
return sections.join('\n\n');
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Strip a reply down to something worth sending to a speech synthesiser.
|
|
119
|
+
* Code, tables and links do not survive being read aloud.
|
|
120
|
+
*/
|
|
121
|
+
export function toSpeakableText(markdown, maxChars = 700) {
|
|
122
|
+
let text = markdown
|
|
123
|
+
.replace(/```[\s\S]*?```/g, ' The code is on screen. ')
|
|
124
|
+
.replace(/`([^`]+)`/g, '$1')
|
|
125
|
+
.replace(/!\[[^\]]*\]\([^)]*\)/g, '')
|
|
126
|
+
.replace(/\[([^\]]+)\]\([^)]*\)/g, '$1')
|
|
127
|
+
.replace(/^\s{0,3}#{1,6}\s+/gm, '')
|
|
128
|
+
.replace(/^\s*\|.*\|\s*$/gm, '')
|
|
129
|
+
.replace(/^\s*[-*+]\s+/gm, '')
|
|
130
|
+
.replace(/^\s*\d+\.\s+/gm, '')
|
|
131
|
+
.replace(/\*\*([^*]+)\*\*/g, '$1')
|
|
132
|
+
.replace(/\*([^*]+)\*/g, '$1')
|
|
133
|
+
.replace(/https?:\/\/\S+/g, '')
|
|
134
|
+
.replace(/\s+/g, ' ')
|
|
135
|
+
.trim();
|
|
136
|
+
if (text.length > maxChars) {
|
|
137
|
+
// Cut at a sentence boundary so the voice does not stop mid-thought.
|
|
138
|
+
const cut = text.slice(0, maxChars);
|
|
139
|
+
const end = Math.max(cut.lastIndexOf('. '), cut.lastIndexOf('! '), cut.lastIndexOf('? '));
|
|
140
|
+
text = (end > maxChars * 0.5 ? cut.slice(0, end + 1) : cut).trim();
|
|
141
|
+
}
|
|
142
|
+
return text;
|
|
143
|
+
}
|
|
144
|
+
/** A short session title from the first prompt: the first sentence, clipped. */
|
|
145
|
+
export function deriveTitle(prompt, maxChars = 60) {
|
|
146
|
+
const flat = prompt.replace(/\s+/g, ' ').trim();
|
|
147
|
+
if (!flat)
|
|
148
|
+
return 'New conversation';
|
|
149
|
+
const sentence = flat.split(/(?<=[.!?])\s/)[0] ?? flat;
|
|
150
|
+
const base = sentence.length > maxChars ? sentence.slice(0, maxChars - 1).replace(/\s\S*$/, '') + '…' : sentence;
|
|
151
|
+
return base.charAt(0).toUpperCase() + base.slice(1);
|
|
152
|
+
}
|
|
153
|
+
//# sourceMappingURL=persona.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"persona.js","sourceRoot":"","sources":["../../src/agents/persona.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAgD9C,oFAAoF;AACpF,SAAS,WAAW,CAAC,MAAqB;IACxC,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,MAAM,OAAO,GAAG,MAAM,CAAC,SAAS,IAAI,MAAM,CAAC,QAAQ,IAAI,oCAAoC,CAAC;IAC5F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C,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;IACrE,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,gFAAgF;AAChF,MAAM,UAAU,WAAW,CAAC,MAAc,EAAE,QAAQ,GAAG,EAAE;IACvD,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;IAChD,IAAI,CAAC,IAAI;QAAE,OAAO,kBAAkB,CAAC;IACrC,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC;IACvD,MAAM,IAAI,GAAG,QAAQ,CAAC,MAAM,GAAG,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,QAAQ,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC;IACjH,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AACtD,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { WorkerRole } from '../types.js';
|
|
2
|
+
/**
|
|
3
|
+
* The worker roster.
|
|
4
|
+
*
|
|
5
|
+
* Rookery has exactly ONE conversational identity - the assistant named in
|
|
6
|
+
* the config. It never changes, never hands the conversation to someone else
|
|
7
|
+
* and never introduces itself as a different persona. The entries below are
|
|
8
|
+
* not people the user can talk to; they are internal work profiles the
|
|
9
|
+
* assistant delegates to inside a team run, in a separate provider process,
|
|
10
|
+
* whose output only ever reaches the user through the assistant's own voice.
|
|
11
|
+
*
|
|
12
|
+
* That is why there is no 'jarvis' worker and no keyword list: nothing here
|
|
13
|
+
* is allowed to compete for the front of a conversation.
|
|
14
|
+
*/
|
|
15
|
+
/** Worker used when a plan names nothing usable. */
|
|
16
|
+
export declare const DEFAULT_WORKER = "generalist";
|
|
17
|
+
export declare const WORKER_ROLES: WorkerRole[];
|
|
18
|
+
export declare function getWorker(slug: string): WorkerRole;
|
|
19
|
+
export declare function listWorkers(): WorkerRole[];
|
|
20
|
+
export declare function workerExists(slug: string): boolean;
|
|
21
|
+
//# sourceMappingURL=roles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"roles.d.ts","sourceRoot":"","sources":["../../src/agents/roles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C;;;;;;;;;;;;GAYG;AAEH,oDAAoD;AACpD,eAAO,MAAM,cAAc,eAAe,CAAC;AAE3C,eAAO,MAAM,YAAY,EAAE,UAAU,EAsDpC,CAAC;AAIF,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,CAElD;AAED,wBAAgB,WAAW,IAAI,UAAU,EAAE,CAE1C;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAElD"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The worker roster.
|
|
3
|
+
*
|
|
4
|
+
* Rookery has exactly ONE conversational identity - the assistant named in
|
|
5
|
+
* the config. It never changes, never hands the conversation to someone else
|
|
6
|
+
* and never introduces itself as a different persona. The entries below are
|
|
7
|
+
* not people the user can talk to; they are internal work profiles the
|
|
8
|
+
* assistant delegates to inside a team run, in a separate provider process,
|
|
9
|
+
* whose output only ever reaches the user through the assistant's own voice.
|
|
10
|
+
*
|
|
11
|
+
* That is why there is no 'jarvis' worker and no keyword list: nothing here
|
|
12
|
+
* is allowed to compete for the front of a conversation.
|
|
13
|
+
*/
|
|
14
|
+
/** Worker used when a plan names nothing usable. */
|
|
15
|
+
export const DEFAULT_WORKER = 'generalist';
|
|
16
|
+
export const WORKER_ROLES = [
|
|
17
|
+
{
|
|
18
|
+
slug: 'generalist',
|
|
19
|
+
name: 'Generalist',
|
|
20
|
+
description: 'Handles a step that needs no particular specialism.',
|
|
21
|
+
systemPrompt: [
|
|
22
|
+
'Work the step you were given and nothing else.',
|
|
23
|
+
'Lead with the substance; skip preamble and restatement.',
|
|
24
|
+
].join(' '),
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
slug: 'coder',
|
|
28
|
+
name: 'Engineer',
|
|
29
|
+
description: 'Writes, edits and debugs code in the working directory.',
|
|
30
|
+
preferredProvider: 'claude',
|
|
31
|
+
systemPrompt: [
|
|
32
|
+
'Work in the given directory.',
|
|
33
|
+
'Read before you write, match the surrounding style, and change only what the step needs.',
|
|
34
|
+
'Report what you changed in one short paragraph - no file dumps unless asked.',
|
|
35
|
+
].join(' '),
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
slug: 'researcher',
|
|
39
|
+
name: 'Researcher',
|
|
40
|
+
description: 'Investigates topics, gathers sources, and summarises findings.',
|
|
41
|
+
preferredProvider: 'claude',
|
|
42
|
+
systemPrompt: [
|
|
43
|
+
'Establish what is actually true before you answer.',
|
|
44
|
+
'Separate what you verified from what you are inferring, and name your sources.',
|
|
45
|
+
'Finish with a short, decision-ready summary.',
|
|
46
|
+
].join(' '),
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
slug: 'analyst',
|
|
50
|
+
name: 'Analyst',
|
|
51
|
+
description: 'Runs sandboxed computation, data wrangling and verification loops.',
|
|
52
|
+
preferredProvider: 'codex',
|
|
53
|
+
systemPrompt: [
|
|
54
|
+
'Prefer running code over reasoning about numbers in your head.',
|
|
55
|
+
'Show the result first, then the method in one or two lines.',
|
|
56
|
+
'State your assumptions when the data is ambiguous.',
|
|
57
|
+
].join(' '),
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
slug: 'planner',
|
|
61
|
+
name: 'Planner',
|
|
62
|
+
description: 'Breaks goals into ordered, concrete steps.',
|
|
63
|
+
preferredProvider: 'claude',
|
|
64
|
+
systemPrompt: [
|
|
65
|
+
'Produce a short ordered plan of concrete steps, each one something a person',
|
|
66
|
+
'could start today. Name the first step explicitly, and flag any step that',
|
|
67
|
+
'depends on a decision the user still has to make.',
|
|
68
|
+
].join(' '),
|
|
69
|
+
},
|
|
70
|
+
];
|
|
71
|
+
const BY_SLUG = new Map(WORKER_ROLES.map((role) => [role.slug, role]));
|
|
72
|
+
export function getWorker(slug) {
|
|
73
|
+
return BY_SLUG.get(slug) ?? BY_SLUG.get(DEFAULT_WORKER);
|
|
74
|
+
}
|
|
75
|
+
export function listWorkers() {
|
|
76
|
+
return [...WORKER_ROLES];
|
|
77
|
+
}
|
|
78
|
+
export function workerExists(slug) {
|
|
79
|
+
return BY_SLUG.has(slug);
|
|
80
|
+
}
|
|
81
|
+
//# sourceMappingURL=roles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"roles.js","sourceRoot":"","sources":["../../src/agents/roles.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;GAYG;AAEH,oDAAoD;AACpD,MAAM,CAAC,MAAM,cAAc,GAAG,YAAY,CAAC;AAE3C,MAAM,CAAC,MAAM,YAAY,GAAiB;IACxC;QACE,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,qDAAqD;QAClE,YAAY,EAAE;YACZ,gDAAgD;YAChD,yDAAyD;SAC1D,CAAC,IAAI,CAAC,GAAG,CAAC;KACZ;IACD;QACE,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,UAAU;QAChB,WAAW,EAAE,yDAAyD;QACtE,iBAAiB,EAAE,QAAQ;QAC3B,YAAY,EAAE;YACZ,8BAA8B;YAC9B,0FAA0F;YAC1F,8EAA8E;SAC/E,CAAC,IAAI,CAAC,GAAG,CAAC;KACZ;IACD;QACE,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,gEAAgE;QAC7E,iBAAiB,EAAE,QAAQ;QAC3B,YAAY,EAAE;YACZ,oDAAoD;YACpD,gFAAgF;YAChF,8CAA8C;SAC/C,CAAC,IAAI,CAAC,GAAG,CAAC;KACZ;IACD;QACE,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;QACf,WAAW,EAAE,oEAAoE;QACjF,iBAAiB,EAAE,OAAO;QAC1B,YAAY,EAAE;YACZ,gEAAgE;YAChE,6DAA6D;YAC7D,oDAAoD;SACrD,CAAC,IAAI,CAAC,GAAG,CAAC;KACZ;IACD;QACE,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;QACf,WAAW,EAAE,4CAA4C;QACzD,iBAAiB,EAAE,QAAQ;QAC3B,YAAY,EAAE;YACZ,6EAA6E;YAC7E,2EAA2E;YAC3E,mDAAmD;SACpD,CAAC,IAAI,CAAC,GAAG,CAAC;KACZ;CACF,CAAC;AAEF,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;AAEvE,MAAM,UAAU,SAAS,CAAC,IAAY;IACpC,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAK,OAAO,CAAC,GAAG,CAAC,cAAc,CAAgB,CAAC;AAC1E,CAAC;AAED,MAAM,UAAU,WAAW;IACzB,OAAO,CAAC,GAAG,YAAY,CAAC,CAAC;AAC3B,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,IAAY;IACvC,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AAC3B,CAAC"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import type { AgentEvent, PermissionLevel, ProviderId, RookeryConfig } from '../types.js';
|
|
2
|
+
import type { Logger } from '../logger.js';
|
|
3
|
+
import type { ProviderRegistry } from '../providers/registry.js';
|
|
4
|
+
import type { Store } from '../memory/store.js';
|
|
5
|
+
/**
|
|
6
|
+
* The team orchestrator.
|
|
7
|
+
*
|
|
8
|
+
* The assistant never stops being the one the user talks to. A team run is
|
|
9
|
+
* work it delegates: the task is split across background workers, and the
|
|
10
|
+
* point of that is wall-clock - every step is a separate provider CLI
|
|
11
|
+
* process, so a wave of independent steps costs roughly what its slowest
|
|
12
|
+
* member costs rather than the sum of all of them.
|
|
13
|
+
*
|
|
14
|
+
* Three phases, all streaming:
|
|
15
|
+
* 1. plan - one cheap turn produces a JSON step list
|
|
16
|
+
* 2. execute - dependency waves, `concurrency` real child processes at once
|
|
17
|
+
* 3. synthesise - one turn reads every step's output and writes the answer
|
|
18
|
+
*
|
|
19
|
+
* Only phase 3 produces `text` events. Worker output is deliberately kept off
|
|
20
|
+
* the assistant channel and surfaced as prefixed `status` lines instead: two
|
|
21
|
+
* workers streaming into the same text channel would interleave into nonsense,
|
|
22
|
+
* and a half-finished worker note must never read like the final answer.
|
|
23
|
+
*/
|
|
24
|
+
/** One unit of work handed to one agent in its own provider process. */
|
|
25
|
+
export interface PlannedStep {
|
|
26
|
+
id: string;
|
|
27
|
+
title: string;
|
|
28
|
+
/** A slug from roles.ts. */
|
|
29
|
+
agent: string;
|
|
30
|
+
/** Self-contained: workers are separate processes and share no context. */
|
|
31
|
+
prompt: string;
|
|
32
|
+
/** Step ids that must finish before this one starts. */
|
|
33
|
+
dependsOn?: string[];
|
|
34
|
+
}
|
|
35
|
+
export interface TeamInput {
|
|
36
|
+
task: string;
|
|
37
|
+
/** Cap on concurrent provider processes. Default 3. */
|
|
38
|
+
concurrency?: number;
|
|
39
|
+
/** Skip planning and run exactly these. */
|
|
40
|
+
steps?: PlannedStep[];
|
|
41
|
+
maxSteps?: number;
|
|
42
|
+
permission?: PermissionLevel;
|
|
43
|
+
cwd?: string;
|
|
44
|
+
/** Default provider for steps whose role names none. */
|
|
45
|
+
provider?: ProviderId;
|
|
46
|
+
signal?: AbortSignal;
|
|
47
|
+
}
|
|
48
|
+
export interface TeamOptions {
|
|
49
|
+
registry: ProviderRegistry;
|
|
50
|
+
config: RookeryConfig;
|
|
51
|
+
store?: Store;
|
|
52
|
+
logger?: Logger;
|
|
53
|
+
}
|
|
54
|
+
/** The result of the planning phase, also what `--dry-run` prints. */
|
|
55
|
+
export interface TeamPlan {
|
|
56
|
+
steps: PlannedStep[];
|
|
57
|
+
/** True when planning failed and the whole task became one step. */
|
|
58
|
+
fallback: boolean;
|
|
59
|
+
/** Human-readable note about how the plan was reached. */
|
|
60
|
+
reason: string;
|
|
61
|
+
}
|
|
62
|
+
/** What one finished step contributed. */
|
|
63
|
+
export interface StepResult {
|
|
64
|
+
step: PlannedStep;
|
|
65
|
+
provider: ProviderId;
|
|
66
|
+
text: string;
|
|
67
|
+
ok: boolean;
|
|
68
|
+
error?: string;
|
|
69
|
+
durationMs: number;
|
|
70
|
+
}
|
|
71
|
+
export declare class Team {
|
|
72
|
+
#private;
|
|
73
|
+
constructor(options: TeamOptions);
|
|
74
|
+
/** The store the team was built with, when one was supplied. */
|
|
75
|
+
get store(): Store | undefined;
|
|
76
|
+
/**
|
|
77
|
+
* Produce the step list without running anything.
|
|
78
|
+
* Never throws: an unusable plan degrades to a single step.
|
|
79
|
+
*/
|
|
80
|
+
plan(input: TeamInput): Promise<TeamPlan>;
|
|
81
|
+
/** Plan, run the steps concurrently, then synthesise. Always ends in `done` or a fatal `error`. */
|
|
82
|
+
run(input: TeamInput): AsyncGenerator<AgentEvent, void, unknown>;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Pull the step array out of a reply that may be wrapped in prose or a fence.
|
|
86
|
+
* Same lenient shape as `parseCandidates` in memory/extractor.ts: a model that
|
|
87
|
+
* adds a sentence before its JSON must not cost the user the whole run.
|
|
88
|
+
*/
|
|
89
|
+
export declare function parsePlan(raw: string): PlannedStep[];
|
|
90
|
+
/**
|
|
91
|
+
* Make a raw plan safe to execute: real slugs, unique ids, and dependency
|
|
92
|
+
* edges that actually point somewhere. Bad edges are dropped, never thrown -
|
|
93
|
+
* a slightly wrong plan still beats no run at all.
|
|
94
|
+
*/
|
|
95
|
+
export declare function normalisePlan(steps: PlannedStep[], options: {
|
|
96
|
+
maxSteps: number;
|
|
97
|
+
fallbackAgent: string;
|
|
98
|
+
}): PlannedStep[];
|
|
99
|
+
/**
|
|
100
|
+
* Group steps into dependency waves. Everything in one wave is independent of
|
|
101
|
+
* everything else in it, so a wave can run in parallel. A cycle cannot be
|
|
102
|
+
* ordered, so its members are released together rather than deadlocking.
|
|
103
|
+
*/
|
|
104
|
+
export declare function buildWaves(steps: PlannedStep[]): PlannedStep[][];
|
|
105
|
+
//# sourceMappingURL=team.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"team.d.ts","sourceRoot":"","sources":["../../src/agents/team.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC1F,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAE3C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAKhD;;;;;;;;;;;;;;;;;;GAkBG;AAEH,wEAAwE;AACxE,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,4BAA4B;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,2EAA2E;IAC3E,MAAM,EAAE,MAAM,CAAC;IACf,wDAAwD;IACxD,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,uDAAuD;IACvD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2CAA2C;IAC3C,KAAK,CAAC,EAAE,WAAW,EAAE,CAAC;IACtB,QAAQ,CAAC,EAA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