opencode-orchestrator 0.8.9 → 0.8.12
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/dist/agents/commander.d.ts +6 -0
- package/dist/agents/prompts/commander/agents.d.ts +4 -0
- package/dist/agents/prompts/commander/execution.d.ts +4 -0
- package/dist/agents/prompts/commander/forbidden.d.ts +4 -0
- package/dist/agents/prompts/commander/identity.d.ts +4 -0
- package/dist/agents/prompts/commander/index.d.ts +12 -0
- package/dist/agents/prompts/commander/parallel.d.ts +4 -0
- package/dist/agents/prompts/commander/required.d.ts +4 -0
- package/dist/agents/prompts/commander/role.d.ts +4 -0
- package/dist/agents/prompts/commander/todo-format.d.ts +4 -0
- package/dist/agents/prompts/commander/tools.d.ts +4 -0
- package/dist/agents/prompts/common/anti-hallucination.d.ts +6 -0
- package/dist/agents/prompts/common/environment-discovery.d.ts +6 -0
- package/dist/agents/prompts/common/index.d.ts +11 -0
- package/dist/agents/prompts/common/mission-seal.d.ts +6 -0
- package/dist/agents/prompts/common/shared-workspace.d.ts +6 -0
- package/dist/agents/prompts/common/todo-rules.d.ts +6 -0
- package/dist/agents/prompts/common/verification.d.ts +6 -0
- package/dist/agents/prompts/index.d.ts +11 -0
- package/dist/agents/prompts/planner/forbidden.d.ts +4 -0
- package/dist/agents/prompts/planner/index.d.ts +8 -0
- package/dist/agents/prompts/planner/required.d.ts +4 -0
- package/dist/agents/prompts/planner/research.d.ts +4 -0
- package/dist/agents/prompts/planner/role.d.ts +4 -0
- package/dist/agents/prompts/planner/todo-format.d.ts +4 -0
- package/dist/agents/prompts/reviewer/forbidden.d.ts +4 -0
- package/dist/agents/prompts/reviewer/index.d.ts +9 -0
- package/dist/agents/prompts/reviewer/output.d.ts +4 -0
- package/dist/agents/prompts/reviewer/required.d.ts +4 -0
- package/dist/agents/prompts/reviewer/role.d.ts +4 -0
- package/dist/agents/prompts/reviewer/todo-update.d.ts +4 -0
- package/dist/agents/prompts/reviewer/verification.d.ts +4 -0
- package/dist/agents/prompts/worker/forbidden.d.ts +4 -0
- package/dist/agents/prompts/worker/index.d.ts +8 -0
- package/dist/agents/prompts/worker/quality.d.ts +4 -0
- package/dist/agents/prompts/worker/required.d.ts +4 -0
- package/dist/agents/prompts/worker/role.d.ts +4 -0
- package/dist/agents/prompts/worker/workflow.d.ts +4 -0
- package/dist/agents/subagents/planner.d.ts +8 -0
- package/dist/agents/subagents/reviewer.d.ts +9 -0
- package/dist/agents/subagents/worker.d.ts +8 -0
- package/dist/core/cache/interfaces/cache-document-entry.d.ts +10 -0
- package/dist/core/cache/interfaces/cache-list-entry.d.ts +12 -0
- package/dist/core/cache/interfaces/cache-metadata.d.ts +8 -0
- package/dist/core/cache/interfaces/cache-stats.d.ts +10 -0
- package/dist/core/cache/interfaces/cached-document.d.ts +11 -0
- package/dist/core/cache/interfaces/index.d.ts +8 -0
- package/dist/core/cache/interfaces.d.ts +3 -50
- package/dist/core/loop/interfaces/index.d.ts +5 -0
- package/dist/core/loop/interfaces/todo-stats.d.ts +11 -0
- package/dist/core/loop/interfaces/todo.d.ts +13 -0
- package/dist/core/loop/interfaces.d.ts +5 -32
- package/dist/core/loop/mission-seal-handler.d.ts +3 -0
- package/dist/core/loop/mission-seal.d.ts +3 -0
- package/dist/core/loop/types/index.d.ts +5 -0
- package/dist/core/loop/types/todo-priority.d.ts +4 -0
- package/dist/core/loop/types/todo-status.d.ts +4 -0
- package/dist/core/notification/presets/index.d.ts +9 -0
- package/dist/core/notification/presets/mission.d.ts +5 -0
- package/dist/core/notification/presets/parallel.d.ts +6 -0
- package/dist/core/notification/presets/session.d.ts +6 -0
- package/dist/core/notification/presets/task-lifecycle.d.ts +7 -0
- package/dist/core/notification/presets/tools.d.ts +6 -0
- package/dist/core/notification/presets/warnings.d.ts +7 -0
- package/dist/core/notification/presets.d.ts +5 -22
- package/dist/core/notification/types/index.d.ts +6 -0
- package/dist/core/notification/types/toast-message.d.ts +13 -0
- package/dist/core/notification/types/toast-options.d.ts +10 -0
- package/dist/core/notification/types/toast-variant.d.ts +4 -0
- package/dist/core/notification/types.d.ts +3 -16
- package/dist/core/progress/interfaces/index.d.ts +8 -0
- package/dist/core/progress/interfaces/progress-snapshot.d.ts +15 -0
- package/dist/core/progress/interfaces/snapshot-input.d.ts +13 -0
- package/dist/core/progress/interfaces/step-progress.d.ts +7 -0
- package/dist/core/progress/interfaces/task-progress.d.ts +10 -0
- package/dist/core/progress/interfaces/todo-progress.d.ts +9 -0
- package/dist/core/progress/interfaces.d.ts +3 -51
- package/dist/core/recovery/interfaces/error-context.d.ts +11 -0
- package/dist/core/recovery/interfaces/error-pattern.d.ts +10 -0
- package/dist/core/recovery/interfaces/index.d.ts +8 -0
- package/dist/core/recovery/interfaces/recovery-action.d.ts +24 -0
- package/dist/core/recovery/interfaces/recovery-record.d.ts +10 -0
- package/dist/core/recovery/interfaces/recovery-stats.d.ts +9 -0
- package/dist/core/recovery/interfaces.d.ts +3 -60
- package/dist/core/session/interfaces/context-stats.d.ts +9 -0
- package/dist/core/session/interfaces/index.d.ts +8 -0
- package/dist/core/session/interfaces/shared-context.d.ts +15 -0
- package/dist/core/session/interfaces/shared-decision.d.ts +10 -0
- package/dist/core/session/interfaces/shared-document.d.ts +9 -0
- package/dist/core/session/interfaces/shared-finding.d.ts +10 -0
- package/dist/core/session/interfaces.d.ts +3 -50
- package/dist/core/task/interfaces/index.d.ts +8 -0
- package/dist/core/task/interfaces/task-hierarchy.d.ts +9 -0
- package/dist/core/task/interfaces/task-input.d.ts +11 -0
- package/dist/core/task/interfaces/task-node.d.ts +20 -0
- package/dist/core/task/interfaces/task-progress.d.ts +11 -0
- package/dist/core/task/interfaces.d.ts +3 -51
- package/dist/index.d.ts +1 -5
- package/dist/index.js +1857 -1597
- package/dist/plugin-handlers/assistant-done-handler.d.ts +21 -0
- package/dist/plugin-handlers/chat-message-handler.d.ts +14 -0
- package/dist/plugin-handlers/config-handler.d.ts +9 -0
- package/dist/plugin-handlers/event-handler.d.ts +18 -0
- package/dist/plugin-handlers/index.d.ts +10 -0
- package/dist/plugin-handlers/interfaces/assistant-done-context.d.ts +12 -0
- package/dist/plugin-handlers/interfaces/chat-message-context.d.ts +12 -0
- package/dist/plugin-handlers/interfaces/event-handler-context.d.ts +14 -0
- package/dist/plugin-handlers/interfaces/index.d.ts +9 -0
- package/dist/plugin-handlers/interfaces/orchestrator-state.d.ts +14 -0
- package/dist/plugin-handlers/interfaces/session-state.d.ts +10 -0
- package/dist/plugin-handlers/interfaces/tool-execute-context.d.ts +7 -0
- package/dist/plugin-handlers/tool-execute-handler.d.ts +23 -0
- package/dist/shared/agent/definition.d.ts +10 -0
- package/dist/shared/agent/index.d.ts +6 -0
- package/dist/shared/agent/names.d.ts +10 -0
- package/dist/shared/agent.d.ts +2 -21
- package/dist/shared/constants/background-status.d.ts +10 -0
- package/dist/shared/constants/background-task.d.ts +7 -0
- package/dist/shared/constants/cache-actions.d.ts +10 -0
- package/dist/shared/constants/filter-status.d.ts +12 -0
- package/dist/shared/constants/id-prefix.d.ts +8 -0
- package/dist/shared/constants/index.d.ts +28 -0
- package/dist/shared/constants/memory-limits.d.ts +12 -0
- package/dist/shared/constants/mission-seal.d.ts +24 -0
- package/dist/shared/constants/parallel-task.d.ts +13 -0
- package/dist/shared/constants/part-types.d.ts +9 -0
- package/dist/shared/constants/paths.d.ts +14 -0
- package/dist/shared/constants/prompts.d.ts +8 -0
- package/dist/shared/constants/slash-commands.d.ts +10 -0
- package/dist/shared/constants/status.d.ts +15 -0
- package/dist/shared/constants/time.d.ts +8 -0
- package/dist/shared/constants/toast-variants.d.ts +10 -0
- package/dist/shared/constants/tool-names.d.ts +22 -0
- package/dist/shared/constants.d.ts +3 -140
- package/dist/shared/error-patterns.d.ts +3 -35
- package/dist/shared/errors/detection.d.ts +5 -0
- package/dist/shared/errors/index.d.ts +7 -0
- package/dist/shared/errors/patterns.d.ts +14 -0
- package/dist/shared/errors/retry.d.ts +7 -0
- package/dist/tools/background-cmd/list.d.ts +2 -2
- package/dist/utils/common.d.ts +5 -13
- package/dist/utils/formatting/elapsed-time.d.ts +4 -0
- package/dist/utils/formatting/index.d.ts +5 -0
- package/dist/utils/formatting/timestamp.d.ts +4 -0
- package/dist/utils/parsing/index.d.ts +4 -0
- package/dist/utils/parsing/slash-command.d.ts +7 -0
- package/dist/utils/sanity.d.ts +0 -4
- package/package.json +1 -1
- package/dist/agents/consolidated/planner.d.ts +0 -8
- package/dist/agents/consolidated/reviewer.d.ts +0 -8
- package/dist/agents/consolidated/worker.d.ts +0 -8
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Commander Identity
|
|
3
|
+
*/
|
|
4
|
+
export declare const COMMANDER_IDENTITY = "<identity>\n- You are the ORCHESTRATOR, not the implementer\n- You DELEGATE work to specialized agents\n- You COORDINATE parallel execution\n- You VERIFY completion before sealing\n- You are RELENTLESS - never stop mid-mission\n</identity>";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Commander Prompts - Index
|
|
3
|
+
*/
|
|
4
|
+
export { COMMANDER_ROLE } from "./role.js";
|
|
5
|
+
export { COMMANDER_IDENTITY } from "./identity.js";
|
|
6
|
+
export { COMMANDER_FORBIDDEN } from "./forbidden.js";
|
|
7
|
+
export { COMMANDER_REQUIRED } from "./required.js";
|
|
8
|
+
export { COMMANDER_TOOLS } from "./tools.js";
|
|
9
|
+
export { COMMANDER_EXECUTION } from "./execution.js";
|
|
10
|
+
export { COMMANDER_PARALLEL } from "./parallel.js";
|
|
11
|
+
export { COMMANDER_AGENTS } from "./agents.js";
|
|
12
|
+
export { COMMANDER_TODO_FORMAT } from "./todo-format.js";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Commander Role Definition
|
|
3
|
+
*/
|
|
4
|
+
export declare const COMMANDER_ROLE = "<role>\nYou are Commander. Autonomous mission controller with parallel execution.\nYou NEVER stop until the mission is SEALED. You are RELENTLESS.\nYou ORCHESTRATE - you delegate, coordinate, and verify.\n</role>";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Anti-Hallucination Rules
|
|
3
|
+
*
|
|
4
|
+
* Core rules to prevent LLM from making up information.
|
|
5
|
+
*/
|
|
6
|
+
export declare const ANTI_HALLUCINATION_CORE = "<anti_hallucination>\n ZERO TOLERANCE FOR GUESSING\n\nBEFORE ANY IMPLEMENTATION:\n1. Check .opencode/docs/ for cached documentation\n2. If not found \u2192 websearch for OFFICIAL docs\n3. webfetch with cache=true\n4. Use EXACT syntax from docs\n\nTRUSTED SOURCES ONLY:\n- Official docs: docs.[framework].com\n- GitHub: github.com/[org]/[repo]\n- Package registries: npmjs.com, pypi.org\n\n FORBIDDEN:\n- Inventing function signatures\n- Assuming API compatibility\n- Guessing version-specific syntax\n- Using outdated knowledge\n\n REQUIRED:\n- Source URL for every claim\n- Confidence level: HIGH (official) / MEDIUM (github) / LOW (blog)\n- Say \"NOT FOUND\" if documentation unavailable\n</anti_hallucination>";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Environment Discovery Prompt
|
|
3
|
+
*
|
|
4
|
+
* PHASE 0: Mandatory first step - understand project before ANY action
|
|
5
|
+
*/
|
|
6
|
+
export declare const ENVIRONMENT_DISCOVERY = "<environment_discovery>\n MANDATORY FIRST STEP - Before any planning or coding:\n\n## 1. Project Structure Analysis\n- Read file tree: ls -la, find . -type f -name \"*.ts\" | head -50\n- Identify: src/, tests/, docs/, config files\n- Check for: package.json, Dockerfile, docker-compose.yml, Makefile\n\n## 2. Build Environment Detection\n| Check | Command | Look For |\n|-------|---------|----------|\n| Node.js | cat package.json | scripts.build, scripts.test |\n| Docker | ls Dockerfile* | Multi-stage build, base image |\n| Make | cat Makefile | build, test, deploy targets |\n| Rust | cat Cargo.toml | [package], [dependencies] |\n\n## 3. Documentation Review\n- README.md \u2192 Project overview, setup instructions\n- CONTRIBUTING.md \u2192 Code standards, PR process\n- docs/ \u2192 Architecture, API docs\n- .opencode/ \u2192 Existing context, todos\n\n## 4. Context Summary (SAVE TO .opencode/context.md)\n```markdown\n# Project Context\n## Environment\n- Runtime: [Node.js 20 / Python 3.11 / Rust 1.75]\n- Build: [npm / Docker / Make]\n- Test: [npm test / pytest / cargo test]\n\n## Structure\n- Source: src/\n- Tests: tests/\n- Docs: docs/\n\n## Key Files\n- Entry: [src/index.ts]\n- Config: [tsconfig.json, package.json]\n\n## Conventions\n- [observed patterns from existing code]\n```\n\nNEVER skip this step. NEVER assume without checking.\n</environment_discovery>";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Common Prompts - Index
|
|
3
|
+
*
|
|
4
|
+
* Re-exports all common prompt fragments.
|
|
5
|
+
*/
|
|
6
|
+
export { ENVIRONMENT_DISCOVERY } from "./environment-discovery.js";
|
|
7
|
+
export { ANTI_HALLUCINATION_CORE } from "./anti-hallucination.js";
|
|
8
|
+
export { TODO_RULES } from "./todo-rules.js";
|
|
9
|
+
export { SHARED_WORKSPACE } from "./shared-workspace.js";
|
|
10
|
+
export { MISSION_SEAL_RULES } from "./mission-seal.js";
|
|
11
|
+
export { VERIFICATION_REQUIREMENTS } from "./verification.js";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared Workspace Configuration
|
|
3
|
+
*
|
|
4
|
+
* Defines the .opencode/ directory structure.
|
|
5
|
+
*/
|
|
6
|
+
export declare const SHARED_WORKSPACE = "<shared_workspace>\n .opencode/ - Shared Context Directory\n\n```\n.opencode/\n\u251C\u2500\u2500 todo.md - Master task list\n\u251C\u2500\u2500 context.md - Project context summary\n\u251C\u2500\u2500 docs/ - Cached documentation\n\u2502 \u251C\u2500\u2500 [topic].md\n\u2502 \u2514\u2500\u2500 ...\n\u2514\u2500\u2500 archive/ - Old context\n```\n\nRULES:\n- ALL agents share this workspace\n- context.md < 150 lines (compress if larger)\n- docs/ = official documentation ONLY\n- todo.md = single source of truth for tasks\n</shared_workspace>";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Verification Requirements
|
|
3
|
+
*
|
|
4
|
+
* Checklist for verifying code before marking complete.
|
|
5
|
+
*/
|
|
6
|
+
export declare const VERIFICATION_REQUIREMENTS = "<verification>\n VERIFICATION CHECKLIST\n\n## Code Verification\n\u25A1 lsp_diagnostics clean (no errors)\n\u25A1 Build passes (npm run build)\n\u25A1 Tests pass (npm test)\n\u25A1 No TypeScript 'any' types\n\u25A1 No console.log debugging left\n\n## Documentation Verification\n\u25A1 Implementation matches .opencode/docs/\n\u25A1 API usage matches official docs\n\u25A1 Version compatibility confirmed\n\n## Security Verification\n\u25A1 No hardcoded secrets/passwords\n\u25A1 Input validation present\n\u25A1 Error messages don't leak info\n\nONLY mark complete after ALL checks pass!\n</verification>";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agent Prompts - Index
|
|
3
|
+
*
|
|
4
|
+
* Exports all modular prompt fragments.
|
|
5
|
+
* Structure: 1 folder per agent/category, 1 file per const
|
|
6
|
+
*/
|
|
7
|
+
export * from "./common/index.js";
|
|
8
|
+
export * from "./commander/index.js";
|
|
9
|
+
export * from "./planner/index.js";
|
|
10
|
+
export * from "./worker/index.js";
|
|
11
|
+
export * from "./reviewer/index.js";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Planner Forbidden Actions
|
|
3
|
+
*/
|
|
4
|
+
export declare const PLANNER_FORBIDDEN = "<forbidden_actions>\nNEVER implement code - only plan and research\nNEVER guess API syntax - always verify with official docs\nNEVER create TODO without parallel groups\nNEVER claim knowledge without source URL\nNEVER assume version compatibility\nNEVER create TODOs with [x] already marked\nNEVER skip environment discovery\n</forbidden_actions>";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Planner Prompts - Index
|
|
3
|
+
*/
|
|
4
|
+
export { PLANNER_ROLE } from "./role.js";
|
|
5
|
+
export { PLANNER_FORBIDDEN } from "./forbidden.js";
|
|
6
|
+
export { PLANNER_REQUIRED } from "./required.js";
|
|
7
|
+
export { PLANNER_TODO_FORMAT } from "./todo-format.js";
|
|
8
|
+
export { PLANNER_RESEARCH } from "./research.js";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Planner Required Actions
|
|
3
|
+
*/
|
|
4
|
+
export declare const PLANNER_REQUIRED = "<required_actions>\nALWAYS analyze project structure first\nALWAYS cite sources with URLs\nALWAYS maximize parallelism in TODO\nALWAYS include confidence level (HIGH/MEDIUM/LOW)\nALWAYS save docs to .opencode/docs/\nALWAYS include task dependencies explicitly\nALWAYS create tasks with [ ] (unchecked)\n</required_actions>";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Planner Research Workflow
|
|
3
|
+
*/
|
|
4
|
+
export declare const PLANNER_RESEARCH = "<research_workflow>\n1. websearch \"[topic] official documentation [version]\"\n2. webfetch official URL with cache=true\n3. Extract EXACT syntax (not paraphrased)\n4. Save to .opencode/docs/[topic].md\n\nOUTPUT:\n```markdown\n# Research: [topic]\nSource: [official URL]\nConfidence: HIGH/MEDIUM/LOW\nVersion: [version]\n\n## Exact Syntax\n```[lang]\n[code from official docs]\n```\n```\n</research_workflow>";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reviewer Prompts - Index
|
|
3
|
+
*/
|
|
4
|
+
export { REVIEWER_ROLE } from "./role.js";
|
|
5
|
+
export { REVIEWER_FORBIDDEN } from "./forbidden.js";
|
|
6
|
+
export { REVIEWER_REQUIRED } from "./required.js";
|
|
7
|
+
export { REVIEWER_VERIFICATION } from "./verification.js";
|
|
8
|
+
export { REVIEWER_TODO_UPDATE } from "./todo-update.js";
|
|
9
|
+
export { REVIEWER_OUTPUT } from "./output.js";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reviewer Required Actions
|
|
3
|
+
*/
|
|
4
|
+
export declare const REVIEWER_REQUIRED = "<required_actions>\nALWAYS run lsp_diagnostics\nALWAYS run build command (npm run build)\nALWAYS run test command (npm test)\nALWAYS check implementation matches .opencode/docs/\nALWAYS update .opencode/todo.md checkboxes ONLY after verification\nALWAYS provide PASS/FAIL with evidence\nALWAYS check for security issues\nALWAYS verify tests exist for new code\n</required_actions>";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reviewer Verification Process
|
|
3
|
+
*/
|
|
4
|
+
export declare const REVIEWER_VERIFICATION = "<verification_process>\n## Step 1: Code Check\nlsp_diagnostics - Must show no errors\n\n## Step 2: Build Check\nnpm run build - Must pass\n\n## Step 3: Test Check\nnpm test - Must pass\nTests must exist for new code\n\n## Step 4: Doc Compliance\nCompare implementation with .opencode/docs/\nAPI usage must match official documentation\n\n## Step 5: Mark Complete (ONLY after all pass)\nIn .opencode/todo.md:\n- [x] T1: [task] | verified | evidence: tests pass\n\nONLY mark [x] after you personally verified all checks pass!\n</verification_process>";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Worker Prompts - Index
|
|
3
|
+
*/
|
|
4
|
+
export { WORKER_ROLE } from "./role.js";
|
|
5
|
+
export { WORKER_FORBIDDEN } from "./forbidden.js";
|
|
6
|
+
export { WORKER_REQUIRED } from "./required.js";
|
|
7
|
+
export { WORKER_WORKFLOW } from "./workflow.js";
|
|
8
|
+
export { WORKER_QUALITY } from "./quality.js";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Worker Required Actions
|
|
3
|
+
*/
|
|
4
|
+
export declare const WORKER_REQUIRED = "<required_actions>\nALWAYS check .opencode/docs/ before coding\nALWAYS follow existing code patterns\nALWAYS include error handling (try/catch)\nALWAYS verify changes compile (lsp_diagnostics)\nALWAYS add JSDoc for public APIs\nALWAYS run build after changes\nALWAYS write tests for new features\nALWAYS report completion with verification evidence\n</required_actions>";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reviewer Agent (Subagent)
|
|
3
|
+
*
|
|
4
|
+
* Verification specialist and gatekeeper.
|
|
5
|
+
* ONLY agent authorized to mark [x] in TODO after verification.
|
|
6
|
+
* Uses modular prompt fragments for flexible composition.
|
|
7
|
+
*/
|
|
8
|
+
import { AgentDefinition } from "../../shared/agent.js";
|
|
9
|
+
export declare const reviewer: AgentDefinition;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cache Interfaces - Index
|
|
3
|
+
*/
|
|
4
|
+
export type { CachedDocument } from "./cached-document.js";
|
|
5
|
+
export type { CacheMetadata } from "./cache-metadata.js";
|
|
6
|
+
export type { CacheDocumentEntry } from "./cache-document-entry.js";
|
|
7
|
+
export type { CacheListEntry } from "./cache-list-entry.js";
|
|
8
|
+
export type { CacheStats } from "./cache-stats.js";
|
|
@@ -1,53 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Document Cache Interfaces
|
|
3
|
+
*
|
|
4
|
+
* Re-exports for backward compatibility.
|
|
3
5
|
*/
|
|
4
|
-
|
|
5
|
-
* Cached document structure
|
|
6
|
-
*/
|
|
7
|
-
export interface CachedDocument {
|
|
8
|
-
url: string;
|
|
9
|
-
title: string;
|
|
10
|
-
content: string;
|
|
11
|
-
fetchedAt: string;
|
|
12
|
-
expiresAt: string;
|
|
13
|
-
size: number;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Cache metadata structure
|
|
17
|
-
*/
|
|
18
|
-
export interface CacheMetadata {
|
|
19
|
-
documents: Record<string, CacheDocumentEntry>;
|
|
20
|
-
lastUpdated: string;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Individual document entry in metadata
|
|
24
|
-
*/
|
|
25
|
-
export interface CacheDocumentEntry {
|
|
26
|
-
url: string;
|
|
27
|
-
title: string;
|
|
28
|
-
fetchedAt: string;
|
|
29
|
-
expiresAt: string;
|
|
30
|
-
size: number;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Document listing entry
|
|
34
|
-
*/
|
|
35
|
-
export interface CacheListEntry {
|
|
36
|
-
filename: string;
|
|
37
|
-
url: string;
|
|
38
|
-
title: string;
|
|
39
|
-
fetchedAt: string;
|
|
40
|
-
expiresAt: string;
|
|
41
|
-
size: number;
|
|
42
|
-
expired: boolean;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Cache statistics
|
|
46
|
-
*/
|
|
47
|
-
export interface CacheStats {
|
|
48
|
-
totalDocuments: number;
|
|
49
|
-
totalSize: number;
|
|
50
|
-
expiredCount: number;
|
|
51
|
-
oldestDocument: string | null;
|
|
52
|
-
newestDocument: string | null;
|
|
53
|
-
}
|
|
6
|
+
export * from "./interfaces/index.js";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Todo Interface
|
|
3
|
+
*/
|
|
4
|
+
import type { TodoStatus, TodoPriority } from "../types/index.js";
|
|
5
|
+
export interface Todo {
|
|
6
|
+
id: string;
|
|
7
|
+
content: string;
|
|
8
|
+
status: TodoStatus;
|
|
9
|
+
priority: TodoPriority;
|
|
10
|
+
parentId?: string;
|
|
11
|
+
createdAt: Date;
|
|
12
|
+
completedAt?: Date;
|
|
13
|
+
}
|
|
@@ -1,34 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Loop Interfaces
|
|
3
|
+
*
|
|
4
|
+
* Re-exports for backward compatibility.
|
|
3
5
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
*/
|
|
7
|
-
export type TodoStatus = "pending" | "in_progress" | "completed" | "cancelled";
|
|
8
|
-
/**
|
|
9
|
-
* Todo item priority
|
|
10
|
-
*/
|
|
11
|
-
export type TodoPriority = "high" | "medium" | "low";
|
|
12
|
-
/**
|
|
13
|
-
* Todo item structure
|
|
14
|
-
*/
|
|
15
|
-
export interface Todo {
|
|
16
|
-
id: string;
|
|
17
|
-
content: string;
|
|
18
|
-
status: TodoStatus;
|
|
19
|
-
priority: TodoPriority;
|
|
20
|
-
parentId?: string;
|
|
21
|
-
createdAt: Date;
|
|
22
|
-
completedAt?: Date;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Todo statistics
|
|
26
|
-
*/
|
|
27
|
-
export interface TodoStats {
|
|
28
|
-
total: number;
|
|
29
|
-
pending: number;
|
|
30
|
-
inProgress: number;
|
|
31
|
-
completed: number;
|
|
32
|
-
cancelled: number;
|
|
33
|
-
percentComplete: number;
|
|
34
|
-
}
|
|
6
|
+
export type { TodoStatus, TodoPriority } from "./types/index.js";
|
|
7
|
+
export type { Todo, TodoStats } from "./interfaces/index.js";
|
|
@@ -26,6 +26,9 @@ export declare function handleAbort(sessionID: string): void;
|
|
|
26
26
|
export declare function cleanupSession(sessionID: string): void;
|
|
27
27
|
/**
|
|
28
28
|
* Check if there's a pending countdown
|
|
29
|
+
*
|
|
30
|
+
* Utility function for debugging and testing continuation state.
|
|
31
|
+
* Can be used to verify countdown status before injecting prompts.
|
|
29
32
|
*/
|
|
30
33
|
export declare function hasPendingContinuation(sessionID: string): boolean;
|
|
31
34
|
export {};
|
|
@@ -68,6 +68,9 @@ export declare function detectSealInSession(client: PluginInput["client"], sessi
|
|
|
68
68
|
export declare function startMissionLoop(directory: string, sessionID: string, prompt: string, options?: MissionLoopOptions): boolean;
|
|
69
69
|
/**
|
|
70
70
|
* Cancel an active mission loop
|
|
71
|
+
*
|
|
72
|
+
* TODO: Will be used when /cancel slash command is implemented
|
|
73
|
+
* to allow users to cancel an active mission loop.
|
|
71
74
|
*/
|
|
72
75
|
export declare function cancelMissionLoop(directory: string, sessionID: string): boolean;
|
|
73
76
|
/**
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Notification Presets - Index
|
|
3
|
+
*/
|
|
4
|
+
export { taskStarted, taskCompleted, taskFailed, allTasksComplete, } from "./task-lifecycle.js";
|
|
5
|
+
export { sessionCreated, sessionResumed, sessionCompleted, } from "./session.js";
|
|
6
|
+
export { parallelTasksLaunched, concurrencyAcquired, concurrencyReleased, } from "./parallel.js";
|
|
7
|
+
export { missionComplete, missionStarted, } from "./mission.js";
|
|
8
|
+
export { toolExecuted, documentCached, researchStarted, } from "./tools.js";
|
|
9
|
+
export { warningRateLimited, errorRecovery, warningMaxDepth, warningMaxRetries, } from "./warnings.js";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parallel Processing Presets
|
|
3
|
+
*/
|
|
4
|
+
export declare const parallelTasksLaunched: (count: number, agents: string[]) => import("../types.js").ToastMessage;
|
|
5
|
+
export declare const concurrencyAcquired: (agent: string, slot: string) => import("../types.js").ToastMessage;
|
|
6
|
+
export declare const concurrencyReleased: (agent: string) => import("../types.js").ToastMessage;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Session Management Presets
|
|
3
|
+
*/
|
|
4
|
+
export declare const sessionCreated: (sessionId: string, agent: string) => import("../types.js").ToastMessage;
|
|
5
|
+
export declare const sessionResumed: (sessionId: string, agent: string) => import("../types.js").ToastMessage;
|
|
6
|
+
export declare const sessionCompleted: (sessionId: string, duration: string) => import("../types.js").ToastMessage;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Task Lifecycle Presets
|
|
3
|
+
*/
|
|
4
|
+
export declare const taskStarted: (taskId: string, agent: string) => import("../types.js").ToastMessage;
|
|
5
|
+
export declare const taskCompleted: (taskId: string, agent: string) => import("../types.js").ToastMessage;
|
|
6
|
+
export declare const taskFailed: (taskId: string, error: string) => import("../types.js").ToastMessage;
|
|
7
|
+
export declare const allTasksComplete: (count: number) => import("../types.js").ToastMessage;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tools & Research Presets
|
|
3
|
+
*/
|
|
4
|
+
export declare const toolExecuted: (toolName: string, target: string) => import("../types.js").ToastMessage;
|
|
5
|
+
export declare const documentCached: (filename: string) => import("../types.js").ToastMessage;
|
|
6
|
+
export declare const researchStarted: (topic: string) => import("../types.js").ToastMessage;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Warnings & Errors Presets
|
|
3
|
+
*/
|
|
4
|
+
export declare const warningRateLimited: () => import("../types.js").ToastMessage;
|
|
5
|
+
export declare const errorRecovery: (action: string) => import("../types.js").ToastMessage;
|
|
6
|
+
export declare const warningMaxDepth: (depth: number) => import("../types.js").ToastMessage;
|
|
7
|
+
export declare const warningMaxRetries: () => import("../types.js").ToastMessage;
|