oh-my-opencode 4.9.1 → 4.10.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/.agents/skills/opencode-qa/SKILL.md +1 -0
- package/.agents/skills/opencode-qa/scripts/lib/common.sh +39 -1
- package/.agents/skills/opencode-qa/scripts/lib/fake-openai-branches.mjs +39 -0
- package/.agents/skills/opencode-qa/scripts/lib/fake-openai-events.mjs +106 -0
- package/.agents/skills/opencode-qa/scripts/lib/fake-openai-server.mjs +117 -0
- package/.agents/skills/opencode-qa/scripts/serve-wake-split-probe.sh +716 -0
- package/.agents/skills/tech-debt-audit/SKILL.md +277 -0
- package/.agents/skills/work-with-pr-workspace/iteration-1/eval-5/with_skill/outputs/execution-plan.md +1 -1
- package/.opencode/skills/work-with-pr-workspace/iteration-1/eval-5/with_skill/outputs/execution-plan.md +1 -1
- package/bin/platform.js +5 -0
- package/bin/platform.test.ts +56 -0
- package/dist/agents/atlas/agent.d.ts +4 -3
- package/dist/agents/gpt-apply-patch-guard.d.ts +2 -2
- package/dist/agents/hephaestus/agent.d.ts +5 -0
- package/dist/agents/hephaestus/index.d.ts +1 -1
- package/dist/agents/metis.d.ts +1 -0
- package/dist/agents/prometheus/system-prompt.d.ts +1 -1
- package/dist/agents/sisyphus/kimi-k2-7.d.ts +17 -0
- package/dist/agents/sisyphus-junior/agent.d.ts +1 -1
- package/dist/agents/sisyphus-junior/kimi-k2-7.d.ts +11 -0
- package/dist/agents/types.d.ts +2 -2
- package/dist/cli/doctor/checks/codex-components.d.ts +13 -0
- package/dist/cli/doctor/checks/tui-plugin-config.d.ts +1 -0
- package/dist/cli/doctor/constants.d.ts +1 -1
- package/dist/cli/index.js +32329 -31437
- package/dist/cli/install-codex/codex-cleanup.d.ts +4 -0
- package/dist/cli/install-codex/install-codex-test-fixtures.d.ts +34 -0
- package/dist/cli/install-codex/link-cached-plugin-agents.d.ts +4 -0
- package/dist/cli/model-fallback.d.ts +1 -0
- package/dist/cli/provider-availability.d.ts +2 -0
- package/dist/cli-node/index.js +32329 -31437
- package/dist/config/schema/agent-overrides.d.ts +80 -16
- package/dist/config/schema/experimental.d.ts +1 -1
- package/dist/config/schema/hooks.d.ts +0 -1
- package/dist/config/schema/internal/permission.d.ts +5 -1
- package/dist/config/schema/oh-my-opencode-config.d.ts +76 -16
- package/dist/create-hooks.d.ts +0 -1
- package/dist/features/background-agent/index.d.ts +1 -1
- package/dist/features/background-agent/manager.d.ts +6 -0
- package/dist/features/background-agent/types.d.ts +2 -0
- package/dist/features/claude-code-plugin-loader/types.d.ts +3 -0
- package/dist/features/claude-code-session-state/state.d.ts +1 -0
- package/dist/features/skill-mcp-manager/manager.d.ts +11 -7
- package/dist/features/team-mode/team-mailbox/pending-delivery-recovery.d.ts +31 -0
- package/dist/features/team-mode/team-runtime/delete-team.d.ts +2 -1
- package/dist/features/team-mode/tools/lifecycle-inline-spec.d.ts +2 -2
- package/dist/features/tmux-subagent/stale-tmux-resource-sweeper.d.ts +12 -0
- package/dist/features/tool-metadata-store/store.d.ts +5 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/storage/constants.d.ts +3 -0
- package/dist/hooks/{session-recovery → anthropic-context-window-limit-recovery}/storage/messages-reader.d.ts +1 -1
- package/dist/hooks/{session-recovery → anthropic-context-window-limit-recovery}/storage/part-content.d.ts +1 -1
- package/dist/hooks/{session-recovery → anthropic-context-window-limit-recovery}/storage/parts-reader.d.ts +1 -1
- package/dist/hooks/{session-recovery → anthropic-context-window-limit-recovery/storage}/types.d.ts +0 -13
- package/dist/hooks/auto-update-checker/checker/bundled-version.d.ts +1 -0
- package/dist/hooks/auto-update-checker/checker.d.ts +1 -0
- package/dist/hooks/auto-update-checker/constants.d.ts +3 -3
- package/dist/hooks/auto-update-checker/hook.d.ts +2 -1
- package/dist/hooks/claude-code-hooks/types.d.ts +4 -0
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/team-session-events/team-idle-wake-hint.d.ts +5 -0
- package/dist/index.js +6061 -3714
- package/dist/oh-my-opencode.schema.json +123 -18
- package/dist/plugin/build-team-idle-wake-hint-client.d.ts +2 -0
- package/dist/plugin/event-session-lifecycle.d.ts +0 -3
- package/dist/plugin/hooks/create-continuation-hooks.d.ts +0 -6
- package/dist/plugin/hooks/create-core-hooks.d.ts +0 -1
- package/dist/plugin/hooks/create-session-hooks.d.ts +1 -2
- package/dist/shared/command-executor/execute-hook-command.d.ts +7 -0
- package/dist/shared/internal-initiator-marker.d.ts +7 -0
- package/dist/shared/live-server-route.d.ts +24 -0
- package/dist/shared/plugin-identity.d.ts +2 -2
- package/dist/shared/prompt-async-gate/prompt-message-state.d.ts +1 -0
- package/dist/shared/tmux/tmux-utils/server-health.d.ts +2 -1
- package/dist/shared/tmux/tmux-utils/stale-attach-pane-sweep.d.ts +16 -0
- package/dist/shared/tmux/tmux-utils.d.ts +1 -0
- package/dist/testing/create-plugin-module.d.ts +4 -0
- package/dist/tools/background-task/clients.d.ts +2 -0
- package/dist/tools/background-task/full-session-format.d.ts +1 -0
- package/dist/tools/background-task/types.d.ts +1 -0
- package/dist/tools/delegate-task/sync-prompt-sender.d.ts +1 -1
- package/dist/tools/delegate-task/sync-session-lifecycle.d.ts +2 -1
- package/dist/tools/look-at/look-at-input-preparer.d.ts +6 -2
- package/dist/tools/look-at/look-at-prompt.d.ts +2 -1
- package/dist/tools/look-at/look-at-session-runner.d.ts +3 -4
- package/dist/tools/look-at/types.d.ts +2 -0
- package/dist/tools/session-manager/types.d.ts +1 -0
- package/dist/tools/skill-mcp/types.d.ts +1 -0
- package/package.json +14 -13
- package/packages/ast-grep-mcp/dist/cli.js +50 -17
- package/packages/lsp-daemon/dist/cli.js +8 -5
- package/packages/lsp-daemon/dist/index.js +8 -5
- package/packages/lsp-tools-mcp/dist/lsp/connection.js +1 -1
- package/packages/lsp-tools-mcp/dist/lsp/server-definitions.js +2 -2
- package/packages/lsp-tools-mcp/dist/lsp/transport.d.ts +10 -1
- package/packages/lsp-tools-mcp/dist/lsp/transport.js +6 -3
- package/packages/omo-codex/lazycodex-repository/.github/workflows/pr-source-guidance.yml +11 -12
- package/packages/omo-codex/plugin/.codex-plugin/plugin.json +1 -1
- package/packages/omo-codex/plugin/components/bootstrap/dist/cli.js +2583 -0
- package/packages/omo-codex/plugin/components/bootstrap/hooks/hooks.json +17 -0
- package/packages/omo-codex/plugin/components/bootstrap/manifests/ast-grep.json +22 -0
- package/packages/omo-codex/plugin/components/bootstrap/manifests/node.json +10 -0
- package/packages/omo-codex/plugin/components/bootstrap/package.json +20 -0
- package/packages/omo-codex/plugin/components/bootstrap/scripts/bootstrap.ps1 +310 -0
- package/packages/omo-codex/plugin/components/bootstrap/scripts/build.mjs +35 -0
- package/packages/omo-codex/plugin/components/bootstrap/scripts/generate-manifests.mjs +115 -0
- package/packages/omo-codex/plugin/components/bootstrap/src/cli.ts +153 -0
- package/packages/omo-codex/plugin/components/bootstrap/src/download.ts +212 -0
- package/packages/omo-codex/plugin/components/bootstrap/src/environment.ts +286 -0
- package/packages/omo-codex/plugin/components/bootstrap/src/hook.ts +108 -0
- package/packages/omo-codex/plugin/components/bootstrap/src/provision.ts +243 -0
- package/packages/omo-codex/plugin/components/bootstrap/src/setup.ts +294 -0
- package/packages/omo-codex/plugin/components/bootstrap/src/worker.ts +279 -0
- package/packages/omo-codex/plugin/components/bootstrap/test/download.test.ts +295 -0
- package/packages/omo-codex/plugin/components/bootstrap/test/environment.test.ts +375 -0
- package/packages/omo-codex/plugin/components/bootstrap/test/provision.test.ts +464 -0
- package/packages/omo-codex/plugin/components/bootstrap/tsconfig.json +25 -0
- package/packages/omo-codex/plugin/components/comment-checker/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/comment-checker/package.json +4 -4
- package/packages/omo-codex/plugin/components/git-bash/hooks/hooks.json +2 -2
- package/packages/omo-codex/plugin/components/git-bash/package.json +2 -2
- package/packages/omo-codex/plugin/components/lsp/dist/codex-hook-cli.js +6 -10
- package/packages/omo-codex/plugin/components/lsp/hooks/hooks.json +2 -2
- package/packages/omo-codex/plugin/components/lsp/package.json +4 -4
- package/packages/omo-codex/plugin/components/lsp/scripts/build-lsp-tools.test.mjs +8 -3
- package/packages/omo-codex/plugin/components/lsp/src/codex-hook-cli.ts +5 -8
- package/packages/omo-codex/plugin/components/lsp/test/codex-hook-cli.test.ts +24 -1
- package/packages/omo-codex/plugin/components/rules/bundled-rules/windows-git-bash.md +3 -1
- package/packages/omo-codex/plugin/components/rules/hooks/hooks.json +4 -4
- package/packages/omo-codex/plugin/components/rules/package.json +4 -4
- package/packages/omo-codex/plugin/components/rules/test/windows-git-bash-bundled-rule.test.ts +35 -1
- package/packages/omo-codex/plugin/components/start-work-continuation/hooks/hooks.json +2 -2
- package/packages/omo-codex/plugin/components/start-work-continuation/package.json +4 -4
- package/packages/omo-codex/plugin/components/telemetry/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/telemetry/package.json +4 -4
- package/packages/omo-codex/plugin/components/ultrawork/biome.json +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/directive.md +155 -99
- package/packages/omo-codex/plugin/components/ultrawork/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/package.json +4 -4
- package/packages/omo-codex/plugin/components/ultrawork/skills/ulw-plan/SKILL.md +19 -51
- package/packages/omo-codex/plugin/components/ultrawork/skills/ulw-plan/references/full-workflow.md +46 -51
- package/packages/omo-codex/plugin/components/ultrawork/test/codex-hook.test.ts +19 -0
- package/packages/omo-codex/plugin/components/ultrawork/test/package-smoke.test.ts +0 -1
- package/packages/omo-codex/plugin/components/ulw-loop/dist/cli-commands.js +9 -1
- package/packages/omo-codex/plugin/components/ulw-loop/dist/cli-output.d.ts +1 -0
- package/packages/omo-codex/plugin/components/ulw-loop/dist/cli-output.js +18 -0
- package/packages/omo-codex/plugin/components/ulw-loop/dist/plan-crud.js +1 -3
- package/packages/omo-codex/plugin/components/ulw-loop/hooks/hooks.json +2 -2
- package/packages/omo-codex/plugin/components/ulw-loop/package.json +4 -4
- package/packages/omo-codex/plugin/components/ulw-loop/src/cli-commands.ts +6 -2
- package/packages/omo-codex/plugin/components/ulw-loop/src/cli-output.ts +19 -0
- package/packages/omo-codex/plugin/components/ulw-loop/src/plan-crud.ts +1 -1
- package/packages/omo-codex/plugin/components/ulw-loop/test/cli-commands.test.ts +6 -0
- package/packages/omo-codex/plugin/components/ulw-loop/test/cli-complete-goals.test.ts +26 -1
- package/packages/omo-codex/plugin/components/ulw-loop/test/cli-json-errors.test.ts +89 -0
- package/packages/omo-codex/plugin/hooks/hooks.json +27 -16
- package/packages/omo-codex/plugin/package-lock.json +193 -193
- package/packages/omo-codex/plugin/package.json +1 -1
- package/packages/omo-codex/plugin/scripts/auto-update-state.d.mts +20 -0
- package/packages/omo-codex/plugin/scripts/auto-update.mjs +28 -8
- package/packages/omo-codex/plugin/scripts/build-components.mjs +36 -5
- package/packages/omo-codex/plugin/scripts/install-flow.mjs +43 -0
- package/packages/omo-codex/plugin/skills/lcx-contribute-bug-fix/SKILL.md +79 -28
- package/packages/omo-codex/plugin/skills/lcx-contribute-bug-fix/agents/openai.yaml +2 -2
- package/packages/omo-codex/plugin/skills/lcx-report-bug/SKILL.md +7 -6
- package/packages/omo-codex/plugin/skills/lcx-report-bug/agents/openai.yaml +1 -1
- package/packages/omo-codex/plugin/skills/ulw-plan/SKILL.md +19 -51
- package/packages/omo-codex/plugin/skills/ulw-plan/references/full-workflow.md +46 -51
- package/packages/omo-codex/plugin/test/aggregate-manifest.test.mjs +1 -0
- package/packages/omo-codex/plugin/test/auto-update.test.mjs +145 -0
- package/packages/omo-codex/plugin/test/bootstrap-binlinks.test.mjs +250 -0
- package/packages/omo-codex/plugin/test/bootstrap-hooks.test.mjs +166 -0
- package/packages/omo-codex/plugin/test/bootstrap-orchestration.test.mjs +371 -0
- package/packages/omo-codex/plugin/test/bootstrap-ps-guard.test.mjs +134 -0
- package/packages/omo-codex/plugin/test/bootstrap-setup.test.mjs +249 -0
- package/packages/omo-codex/plugin/test/lcx-bug-skills.test.mjs +10 -1
- package/packages/omo-codex/plugin/test/ulw-plan-skill.test.mjs +46 -0
- package/packages/omo-codex/scripts/atomic-write.test.mjs +82 -0
- package/packages/omo-codex/scripts/install/agents.d.mts +18 -0
- package/packages/omo-codex/scripts/install/agents.mjs +78 -5
- package/packages/omo-codex/scripts/install/atomic-write.mjs +59 -0
- package/packages/omo-codex/scripts/install/bin-dir.d.mts +7 -0
- package/packages/omo-codex/scripts/install/bin-links.d.mts +18 -0
- package/packages/omo-codex/scripts/install/config.d.mts +35 -0
- package/packages/omo-codex/scripts/install/config.mjs +13 -3
- package/packages/omo-codex/scripts/install/git-bash-mcp-env.d.mts +5 -0
- package/packages/omo-codex/scripts/install/git-bash.d.mts +23 -0
- package/packages/omo-codex/scripts/install/hook-trust.d.mts +10 -0
- package/packages/omo-codex/scripts/install-agent-links.test.mjs +41 -0
- package/packages/omo-codex/scripts/install-local.mjs +3 -2
- package/packages/shared-skills/skills/lcx-contribute-bug-fix/SKILL.md +79 -28
- package/packages/shared-skills/skills/lcx-contribute-bug-fix/agents/openai.yaml +2 -2
- package/packages/shared-skills/skills/lcx-report-bug/SKILL.md +7 -6
- package/packages/shared-skills/skills/lcx-report-bug/agents/openai.yaml +1 -1
- package/dist/hooks/session-recovery/constants.d.ts +0 -4
- package/dist/hooks/session-recovery/detect-error-type.d.ts +0 -4
- package/dist/hooks/session-recovery/error-recovery.d.ts +0 -4
- package/dist/hooks/session-recovery/hook-types.d.ts +0 -22
- package/dist/hooks/session-recovery/hook.d.ts +0 -4
- package/dist/hooks/session-recovery/index.d.ts +0 -5
- package/dist/hooks/session-recovery/interrupted-idle-message-fetch-timeout.d.ts +0 -7
- package/dist/hooks/session-recovery/interrupted-tool-results.d.ts +0 -3
- package/dist/hooks/session-recovery/message-state.d.ts +0 -4
- package/dist/hooks/session-recovery/recover-thinking-block-order.d.ts +0 -5
- package/dist/hooks/session-recovery/recover-thinking-disabled-violation.d.ts +0 -5
- package/dist/hooks/session-recovery/recover-tool-result-missing.d.ts +0 -10
- package/dist/hooks/session-recovery/recover-unavailable-tool.d.ts +0 -5
- package/dist/hooks/session-recovery/resume.d.ts +0 -7
- package/dist/hooks/session-recovery/storage/latest-assistant-message.d.ts +0 -5
- package/dist/hooks/session-recovery/storage/orphan-thinking-search.d.ts +0 -2
- package/dist/hooks/session-recovery/storage/thinking-block-search.d.ts +0 -2
- package/dist/hooks/session-recovery/storage/thinking-prepend.d.ts +0 -33
- package/dist/hooks/session-recovery/storage/thinking-strip.d.ts +0 -11
- package/dist/hooks/session-recovery/storage.d.ts +0 -20
- package/dist/plugin/event-session-recovery.d.ts +0 -9
- package/dist/plugin/user-abort-interrupted-recovery-guard.d.ts +0 -6
- /package/dist/hooks/{session-recovery → anthropic-context-window-limit-recovery}/storage/empty-messages.d.ts +0 -0
- /package/dist/hooks/{session-recovery → anthropic-context-window-limit-recovery}/storage/empty-text.d.ts +0 -0
- /package/dist/hooks/{session-recovery → anthropic-context-window-limit-recovery}/storage/message-dir.d.ts +0 -0
- /package/dist/hooks/{session-recovery → anthropic-context-window-limit-recovery}/storage/part-id.d.ts +0 -0
- /package/dist/hooks/{session-recovery → anthropic-context-window-limit-recovery}/storage/text-part-injector.d.ts +0 -0
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: tech-debt-audit
|
|
3
|
+
description: "Thorough, file-cited technical debt audit across 9 dimensions using AST-grep (tree-sitter), grep, language-native tooling, and optionally CodeGraph knowledge graph. Produces TECH_DEBT_AUDIT.md with severity, effort estimates, and prioritized fixes. Use when asked for codebase health check, tech debt audit, architecture review, code quality assessment, or cleanup planning. Triggers: 'tech debt', 'technical debt', 'debt audit', 'code health', 'technical debt audit', 'codebase health check', 'find tech debt', 'debt analysis', 'audit code quality'."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Tech Debt Audit Protocol
|
|
7
|
+
|
|
8
|
+
Model-agnostic technical debt audit for oh-my-openagent (OMO). Uses OMO's built-in tools (`ast_grep_search`, `grep`, `glob`, `bash`, `read`, `lsp_diagnostics`, `task`) plus **optional CodeGraph MCP** for enhanced code graph analysis when available. Produces a grounded, citable `TECH_DEBT_AUDIT.md` artifact.
|
|
9
|
+
|
|
10
|
+
## CodeGraph Enhancement (Optional)
|
|
11
|
+
|
|
12
|
+
If you have [CodeGraph](https://github.com/colbymchenry/codegraph) installed (check with `codegraph status`), its MCP tools (`codegraph_search`, `codegraph_callers`, `codegraph_callees`, `codegraph_impact`, `codegraph_explore`, etc.) can supersede or augment the standard tool searches in the dimensions marked below. CodeGraph gives you:
|
|
13
|
+
- **Symbol search** — instant by-name lookup via FTS5
|
|
14
|
+
- **Call graph analysis** — callers/callees for any function
|
|
15
|
+
- **Impact analysis** — blast radius before changing any symbol
|
|
16
|
+
- **Smart context building** — entry points, related symbols, and snippets in one call
|
|
17
|
+
- **Framework-aware routes** — URL patterns linked to their handlers
|
|
18
|
+
|
|
19
|
+
To use CodeGraph, ensure the `codegraph` MCP server is configured in your project's `.mcp.json` or global MCP config. The skill will auto-detect CodeGraph by checking if `codegraph` MCP tools are available. Sub-agents spawned via `task()` cannot use CodeGraph — they use the standard tool fallback.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Output
|
|
24
|
+
|
|
25
|
+
Write results to `TECH_DEBT_AUDIT.md` in the repo root with:
|
|
26
|
+
|
|
27
|
+
1. **Executive Summary** — 3-5 sentences: overall health, worst dimension, quick wins count
|
|
28
|
+
2. **Mental Model** — the repo's architecture in 1 paragraph (what it does, stack, module boundaries)
|
|
29
|
+
3. **Findings Table** — columns: ID, Category, File:Line, Severity (Critical/High/Medium/Low), Effort (Hours), Description, Recommendation
|
|
30
|
+
4. **Top 5 Priorities** — ranked by impact/effort ratio
|
|
31
|
+
5. **Quick Wins Checklist** — items under 30 minutes each
|
|
32
|
+
6. **"Looks Bad But Is Fine"** — patterns that look like debt but are intentional
|
|
33
|
+
7. **Open Questions** — things the maintainer should clarify
|
|
34
|
+
|
|
35
|
+
## Phase 0: Orient
|
|
36
|
+
|
|
37
|
+
### Standard (always run)
|
|
38
|
+
1. `glob("**/*.ts")` / `glob("**/*.py")` / etc — map the language stack
|
|
39
|
+
2. `glob("**/package.json")` + `read()` — dependencies and build tooling
|
|
40
|
+
3. `bash("git log --oneline -200")` — churn: find highest-change files
|
|
41
|
+
4. `glob("**/*")` + basic math — find largest files (>300 LOC are candidates)
|
|
42
|
+
5. Cross-reference high-churn + large = debt hot zones
|
|
43
|
+
6. Write the mental model paragraph in your own working context
|
|
44
|
+
|
|
45
|
+
### CodeGraph Enhancement (if available)
|
|
46
|
+
Instead of guessing module boundaries, query the code graph:
|
|
47
|
+
|
|
48
|
+
```
|
|
49
|
+
codegraph_explore(query="architecture overview and main modules")
|
|
50
|
+
```
|
|
51
|
+
This returns symbol relationships and source grouped by file. Use the structure as your architectural mental model instead of hand-inferring it from directory names.
|
|
52
|
+
|
|
53
|
+
```
|
|
54
|
+
codegraph_explore(query="main entry points and execution flow")
|
|
55
|
+
```
|
|
56
|
+
This surfaces entry points and call chains. Use these to understand how the code actually flows vs how the directory layout suggests it flows.
|
|
57
|
+
|
|
58
|
+
## Phase 1: Audit Across 9 Dimensions
|
|
59
|
+
|
|
60
|
+
Use OMO tools for each dimension. Run parallel tool calls within each dimension. Every finding MUST cite `file:line:col`.
|
|
61
|
+
|
|
62
|
+
### 1. Architectural Decay
|
|
63
|
+
|
|
64
|
+
#### Standard (always run)
|
|
65
|
+
- `ast_grep_search(pattern="import { $$$ } from '$SRC'", lang="typescript")` — map module graph, look for circular patterns
|
|
66
|
+
- `ast_grep_search(pattern="class $NAME { $$$ }", lang="typescript")` — check for god classes
|
|
67
|
+
- `grep("TODO|FIXME|HACK|XXX|WORKAROUND|TEMP")` — tagged debt markers
|
|
68
|
+
- `grep("async|await")` on sync-looking files — misplaced async boundaries
|
|
69
|
+
- `bash("wc -l <file>")` on each large file found in Phase 0
|
|
70
|
+
|
|
71
|
+
#### CodeGraph Enhancement (if available)
|
|
72
|
+
|
|
73
|
+
**Dead code detection:**
|
|
74
|
+
```
|
|
75
|
+
codegraph_callers(symbol="<suspected-dead-function>")
|
|
76
|
+
codegraph_callers(symbol="<suspected-dead-class>")
|
|
77
|
+
```
|
|
78
|
+
Run `codegraph_callers` on suspected dead exports found via grep/glob. If the result shows zero callers (excluding test files), it's dead code.
|
|
79
|
+
|
|
80
|
+
**Circular dependency detection:**
|
|
81
|
+
```
|
|
82
|
+
codegraph_impact(target="<module-or-file>", direction="upstream")
|
|
83
|
+
```
|
|
84
|
+
Use `codegraph_impact` on key modules to trace their dependents. If A depends on B and B depends on A, that's a cycle.
|
|
85
|
+
|
|
86
|
+
**Architecture boundaries:**
|
|
87
|
+
```
|
|
88
|
+
codegraph_explore(query="module dependencies and architecture boundaries")
|
|
89
|
+
```
|
|
90
|
+
Use `codegraph_explore` to survey actual module structure.
|
|
91
|
+
|
|
92
|
+
#### What to flag
|
|
93
|
+
- Files > 500 LOC (god files)
|
|
94
|
+
- Functions > 80 LOC or > 4 nesting levels
|
|
95
|
+
- Classes with > 15 methods or > 400 LOC
|
|
96
|
+
- Import cycles (A → B → A)
|
|
97
|
+
- Dead exports: function/class defined but never imported elsewhere (CodeGraph: `codegraph_callers`)
|
|
98
|
+
- Commented-out code blocks (>3 consecutive consecutive lines)
|
|
99
|
+
|
|
100
|
+
### 2. Consistency Rot
|
|
101
|
+
|
|
102
|
+
#### Standard (always run)
|
|
103
|
+
- `ast_grep_search(pattern="import axios|import fetch|import got|import superagent", lang="typescript")` — multiple HTTP clients
|
|
104
|
+
- `grep("console.log|console.error|console.warn")` — direct console use vs logger
|
|
105
|
+
- `ast_grep_search(pattern="try { $$$ } catch ($$$) { $$$ }", lang="typescript")` — error handling patterns
|
|
106
|
+
- `grep("as any|@ts-ignore|@ts-expect-error|as unknown")` — type escapes
|
|
107
|
+
- `grep("eslint-disable|prettier-ignore")` — lint suppressions
|
|
108
|
+
|
|
109
|
+
#### What to flag
|
|
110
|
+
- 3+ ways of doing the same thing (HTTP, logging, validation, config)
|
|
111
|
+
- Mixed naming conventions (camelCase + snake_case + PascalCase)
|
|
112
|
+
- Multiple date/time handling libraries
|
|
113
|
+
- Mixed error response shapes across modules
|
|
114
|
+
|
|
115
|
+
### 3. Type & Contract Debt
|
|
116
|
+
|
|
117
|
+
#### Standard (always run)
|
|
118
|
+
- `ast_grep_search(pattern="as any", lang="typescript")` — runtime type escapes
|
|
119
|
+
- `ast_grep_search(pattern="@ts-expect-error", lang="typescript")` — suppressed errors
|
|
120
|
+
- `ast_grep_search(pattern="@ts-ignore", lang="typescript")` — suppressed errors (legacy)
|
|
121
|
+
- `ast_grep_search(pattern=": any", lang="typescript")` — typed as any
|
|
122
|
+
- `lsp_diagnostics(filePath="<src-dir>")` — current type errors
|
|
123
|
+
|
|
124
|
+
#### What to flag
|
|
125
|
+
- `any` types on public APIs and exported interfaces
|
|
126
|
+
- Untyped function parameters
|
|
127
|
+
- Missing schema validation at API/IO boundaries
|
|
128
|
+
- LSP type errors grouped by file
|
|
129
|
+
|
|
130
|
+
### 4. Test Debt
|
|
131
|
+
|
|
132
|
+
#### Standard (always run)
|
|
133
|
+
- `glob("**/*.test.ts")` — find all test files
|
|
134
|
+
- `bash("bun test 2>&1 | grep -E '(fail|skip|todo)'")` — current test health
|
|
135
|
+
- Cross-reference Phase 0 high-churn files with test existence
|
|
136
|
+
|
|
137
|
+
#### What to flag
|
|
138
|
+
- Critical-path files with zero tests
|
|
139
|
+
- Skipped tests (`test.skip`, `describe.skip`)
|
|
140
|
+
- Tests asserting implementation details vs behavior
|
|
141
|
+
- Slow tests (>1s each)
|
|
142
|
+
|
|
143
|
+
### 5. Dependency & Config Debt
|
|
144
|
+
|
|
145
|
+
#### Standard (always run)
|
|
146
|
+
- `bash("npm audit --omit=dev 2>&1 | head -40")` — known CVEs (if node_modules present)
|
|
147
|
+
- `read("package.json")` — check dependency count and stale deps
|
|
148
|
+
- `grep(".env|process.env|Bun.env")` — env var usage
|
|
149
|
+
- `grep("API_KEY|SECRET|PASSWORD|TOKEN")` in non-config files — hardcoded config
|
|
150
|
+
|
|
151
|
+
#### CodeGraph Enhancement (if available)
|
|
152
|
+
|
|
153
|
+
**Blast radius of core dependencies:**
|
|
154
|
+
```
|
|
155
|
+
codegraph_impact(target="<core-utility-function>", direction="upstream")
|
|
156
|
+
```
|
|
157
|
+
Run this on a few key internal modules (logger, config loader, HTTP client) to see how widely they're used. A widely-depended-on module with poor error handling or type safety is a high-priority refactor target because changes to it ripple everywhere.
|
|
158
|
+
|
|
159
|
+
#### What to flag
|
|
160
|
+
- Outdated major-version deps
|
|
161
|
+
- Dependencies that do the same thing (duplicate libraries)
|
|
162
|
+
- Referenced env vars not documented in README
|
|
163
|
+
- Hardcoded environment-specific values
|
|
164
|
+
|
|
165
|
+
### 6. Performance & Resource Hygiene
|
|
166
|
+
|
|
167
|
+
#### Standard (always run)
|
|
168
|
+
- `ast_grep_search(pattern="for ($$$ of $$$) { $$$ await $$$ }", lang="typescript")` — async-in-loop
|
|
169
|
+
- `grep("await.*map|await.*filter|await.*forEach")` — sequential async iteration
|
|
170
|
+
- `grep("Promise\\.all|Promise\\.allSettled")` — existing parallel patterns (good signal)
|
|
171
|
+
- `grep("addEventListener|on\\(|subscribe")` without `removeEventListener|off\\(|unsubscribe` nearby — listener hygiene
|
|
172
|
+
|
|
173
|
+
#### What to flag
|
|
174
|
+
- `await` inside `for/of` loops (sequential when parallel possible)
|
|
175
|
+
- N+1 query patterns
|
|
176
|
+
- Missing cleanup on event listeners, intervals, handles
|
|
177
|
+
- Unnecessary serialization/deserialization
|
|
178
|
+
|
|
179
|
+
### 7. Error Handling & Observability
|
|
180
|
+
|
|
181
|
+
#### Standard (always run)
|
|
182
|
+
- `ast_grep_search(pattern="catch ($$$) { $$$ }", lang="typescript")` — catch blocks
|
|
183
|
+
- `grep("catch.*{}|catch.*{\\s*}")` — empty catch blocks
|
|
184
|
+
- `grep("console.error|logger\\.error|log\\.error")` — actual error logging
|
|
185
|
+
- `ast_grep_search(pattern="throw new $ERR(", lang="typescript")` — error types used
|
|
186
|
+
|
|
187
|
+
#### CodeGraph Enhancement (if available)
|
|
188
|
+
|
|
189
|
+
**Trace error propagation through call chains:**
|
|
190
|
+
```
|
|
191
|
+
codegraph_callers(symbol="<key-error-handler-or-middleware>")
|
|
192
|
+
codegraph_explore(query="how errors propagate through <key-error-handler>")
|
|
193
|
+
```
|
|
194
|
+
Use `codegraph_callers` to find who calls your error handlers. If errors are caught and swallowed at multiple levels, that's a finding.
|
|
195
|
+
|
|
196
|
+
**Impact of changing error types:**
|
|
197
|
+
```
|
|
198
|
+
codegraph_impact(target="<error-class-or-interface>", direction="upstream")
|
|
199
|
+
```
|
|
200
|
+
Check the blast radius of custom error classes. If changing an error type would break 20+ consumers, the error contract is too tight.
|
|
201
|
+
|
|
202
|
+
#### What to flag
|
|
203
|
+
- Empty catch blocks (worst offense)
|
|
204
|
+
- Generic `catch (e) { console.error(e) }` without recovery
|
|
205
|
+
- Inconsistent error shapes across modules
|
|
206
|
+
- Missing structured logging on critical paths
|
|
207
|
+
- Errors swallowed in promise chains (`.catch(() => {})`)
|
|
208
|
+
|
|
209
|
+
### 8. Security Hygiene
|
|
210
|
+
|
|
211
|
+
#### Standard (always run)
|
|
212
|
+
- `grep("api[Kk]ey|api_secret|password|secret|token|credential")` in source files (not config or env)
|
|
213
|
+
- `ast_grep_search(pattern="SELECT .* FROM|INSERT INTO|UPDATE.*SET|DELETE FROM", lang="typescript")` — SQL construction
|
|
214
|
+
- `ast_grep_search(pattern="innerHTML|dangerouslySetInnerHTML", lang="typescript")` — XSS vectors
|
|
215
|
+
- `grep("eval\\(|Function\\(|setTimeout\\(.*string|setInterval\\(.*string")` — code injection
|
|
216
|
+
|
|
217
|
+
#### What to flag
|
|
218
|
+
- Hardcoded secrets in source
|
|
219
|
+
- String-concatenated SQL
|
|
220
|
+
- `innerHTML` / `dangerouslySetInnerHTML` usage
|
|
221
|
+
- `eval()` or string-based `setTimeout`/`setInterval`
|
|
222
|
+
- Permissive CORS or auth middleware
|
|
223
|
+
|
|
224
|
+
### 9. Documentation Drift
|
|
225
|
+
|
|
226
|
+
#### Standard (always run)
|
|
227
|
+
- `read("README.md")` — check if claims match reality
|
|
228
|
+
- `grep("@param|@returns|@throws")` — docstring coverage
|
|
229
|
+
- `grep("FIXME|TODO|HACK|XXX|WORKAROUND")` — fixme density
|
|
230
|
+
- Compare README API examples with actual signatures
|
|
231
|
+
|
|
232
|
+
#### What to flag
|
|
233
|
+
- README claiming features that don't exist
|
|
234
|
+
- Public functions without any doc comment
|
|
235
|
+
- Comments that contradict the code
|
|
236
|
+
- Stale architecture decision records (ADRs) if present
|
|
237
|
+
|
|
238
|
+
## Phase 2: Deeper Dives (Parallel Sub-Agents)
|
|
239
|
+
|
|
240
|
+
For large codebases (>50k LOC), delegate heavy dimensions to parallel sub-agents. Sub-agents CANNOT use CodeGraph — they use standard tools only:
|
|
241
|
+
|
|
242
|
+
```
|
|
243
|
+
task(category="unspecified-low", run_in_background=true, load_skills=[], prompt="[CONTEXT] Tech debt audit. [GOAL] Audit dimensions 1 (Architecture) and 2 (Consistency). [REQUEST] Run ast_grep and grep searches for dimensions 1-2 from the tech-debt-audit skill. Report every finding with file:line:col. Tag severity: Critical/High/Medium/Low.")
|
|
244
|
+
task(category="unspecified-low", run_in_background=true, load_skills=[], prompt="[CONTEXT] Tech debt audit. [GOAL] Audit dimensions 3 (Type debt) and 7 (Error handling). [REQUEST] Run searches for dimensions 3 and 7 from the tech-debt-audit skill. Report every finding with file:line:col. Tag severity.")
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
Spawn 2-3 sub-agents for the heaviest dimensions, collect results in parallel, then synthesize. The main agent handles CodeGraph queries itself while sub-agents run the standard tool passes.
|
|
248
|
+
|
|
249
|
+
## Phase 3: Synthesize & Deliver
|
|
250
|
+
|
|
251
|
+
1. Collect all findings from direct tool calls, CodeGraph queries (if available), and sub-agent results
|
|
252
|
+
2. Deduplicate — same issue mentioned by multiple dimensions
|
|
253
|
+
3. Classify severity:
|
|
254
|
+
- **Critical** — Causes incorrect behavior, data loss, or security vulnerability
|
|
255
|
+
- **High** — Will cause problems in production; blocks maintenance
|
|
256
|
+
- **Medium** — Reduces maintainability; violates conventions
|
|
257
|
+
- **Low** — Cosmetic; should fix when in the area
|
|
258
|
+
4. Estimate effort in hours per finding (conservative)
|
|
259
|
+
5. Write `TECH_DEBT_AUDIT.md` with all required sections
|
|
260
|
+
6. Report summary to the user
|
|
261
|
+
|
|
262
|
+
## Severity Rubric
|
|
263
|
+
|
|
264
|
+
```
|
|
265
|
+
Critical = actively causing bugs or security holes
|
|
266
|
+
High = will cause problems under normal operation; blocks changes
|
|
267
|
+
Medium = reduces maintainability; inconsistent; violates team conventions
|
|
268
|
+
Low = cosmetic; would be nice to fix when nearby
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
## Quick Checks Before Finishing
|
|
272
|
+
|
|
273
|
+
- [ ] Every concrete finding has `file:line:col` citation
|
|
274
|
+
- [ ] No generic claims without evidence
|
|
275
|
+
- [ ] "Looks Bad But Is Fine" section explains at least 2-3 patterns
|
|
276
|
+
- [ ] Top 5 priorities ranked by impact/effort
|
|
277
|
+
- [ ] Quick wins are things that can be fixed in <30 minutes each
|
package/bin/platform.js
CHANGED
|
@@ -49,6 +49,11 @@ export function getPlatformPackage({ platform, arch, libcFamily, packageBaseName
|
|
|
49
49
|
/** @param {{ platform: string, arch: string, libcFamily?: string | null, preferBaseline?: boolean, packageBaseName?: string }} options */
|
|
50
50
|
export function getPlatformPackageCandidates({ platform, arch, libcFamily, preferBaseline = false, packageBaseName = "oh-my-opencode" }) {
|
|
51
51
|
const primaryPackage = getPlatformPackage({ platform, arch, libcFamily, packageBaseName });
|
|
52
|
+
|
|
53
|
+
if (platform === "win32" && arch === "arm64") {
|
|
54
|
+
return [primaryPackage, `${packageBaseName}-windows-x64-baseline`];
|
|
55
|
+
}
|
|
56
|
+
|
|
52
57
|
const baselinePackage = getBaselinePlatformPackage({ platform, arch, libcFamily, packageBaseName });
|
|
53
58
|
|
|
54
59
|
if (!baselinePackage) {
|
package/bin/platform.test.ts
CHANGED
|
@@ -302,4 +302,60 @@ describe("getPlatformPackageCandidates", () => {
|
|
|
302
302
|
// #then baseline fallback is not included
|
|
303
303
|
expect(result).toEqual(["oh-my-opencode-linux-arm64"]);
|
|
304
304
|
});
|
|
305
|
+
|
|
306
|
+
test("returns arm64 and x64-baseline candidates for Windows ARM64", () => {
|
|
307
|
+
// #given Windows arm64
|
|
308
|
+
const input = { platform: "win32", arch: "arm64" };
|
|
309
|
+
|
|
310
|
+
// #when getting package candidates
|
|
311
|
+
const result = getPlatformPackageCandidates(input);
|
|
312
|
+
|
|
313
|
+
// #then arm64 package first then the x64 baseline fallback
|
|
314
|
+
expect(result).toEqual([
|
|
315
|
+
"oh-my-opencode-windows-arm64",
|
|
316
|
+
"oh-my-opencode-windows-x64-baseline",
|
|
317
|
+
]);
|
|
318
|
+
});
|
|
319
|
+
|
|
320
|
+
test("supports renamed package family for Windows ARM64 via packageBaseName override", () => {
|
|
321
|
+
// #given Windows arm64 with renamed package base
|
|
322
|
+
const input = { platform: "win32", arch: "arm64", packageBaseName: "oh-my-openagent" };
|
|
323
|
+
|
|
324
|
+
// #when getting package candidates
|
|
325
|
+
const result = getPlatformPackageCandidates(input);
|
|
326
|
+
|
|
327
|
+
// #then returns renamed arm64 and x64 baseline candidates
|
|
328
|
+
expect(result).toEqual([
|
|
329
|
+
"oh-my-openagent-windows-arm64",
|
|
330
|
+
"oh-my-openagent-windows-x64-baseline",
|
|
331
|
+
]);
|
|
332
|
+
});
|
|
333
|
+
|
|
334
|
+
test("returns x64 and baseline candidates for Windows x64", () => {
|
|
335
|
+
// #given Windows x64
|
|
336
|
+
const input = { platform: "win32", arch: "x64" };
|
|
337
|
+
|
|
338
|
+
// #when getting package candidates
|
|
339
|
+
const result = getPlatformPackageCandidates(input);
|
|
340
|
+
|
|
341
|
+
// #then modern x64 first then x64 baseline
|
|
342
|
+
expect(result).toEqual([
|
|
343
|
+
"oh-my-opencode-windows-x64",
|
|
344
|
+
"oh-my-opencode-windows-x64-baseline",
|
|
345
|
+
]);
|
|
346
|
+
});
|
|
347
|
+
|
|
348
|
+
test("returns baseline first for Windows x64 when preferBaseline is true", () => {
|
|
349
|
+
// #given Windows x64 with baseline preference
|
|
350
|
+
const input = { platform: "win32", arch: "x64", preferBaseline: true };
|
|
351
|
+
|
|
352
|
+
// #when getting package candidates
|
|
353
|
+
const result = getPlatformPackageCandidates(input);
|
|
354
|
+
|
|
355
|
+
// #then baseline package is preferred first
|
|
356
|
+
expect(result).toEqual([
|
|
357
|
+
"oh-my-opencode-windows-x64-baseline",
|
|
358
|
+
"oh-my-opencode-windows-x64",
|
|
359
|
+
]);
|
|
360
|
+
});
|
|
305
361
|
});
|
|
@@ -7,14 +7,15 @@
|
|
|
7
7
|
* 1. Claude Opus 4.7 → opus-4-7.md (literal-following + explicit fan-out push)
|
|
8
8
|
* 2. GPT family → gpt.md (calibrated for GPT-5.5)
|
|
9
9
|
* 3. Gemini family → gemini.md
|
|
10
|
-
* 4. Kimi K2.
|
|
11
|
-
* 5.
|
|
10
|
+
* 4. Kimi K2.7 → kimi-k2-7.md (restrained, outcome-first; checked before generic kimi)
|
|
11
|
+
* 5. Kimi K2.x family → kimi.md (Claude-family base + K2.6 thinking-mode calibration)
|
|
12
|
+
* 6. Default (Claude 4.6 family: opus-4-6, sonnet-4-6, haiku-4-5, etc.) → default.md
|
|
12
13
|
*/
|
|
13
14
|
import type { AgentConfig } from "@opencode-ai/sdk";
|
|
14
15
|
import type { AgentPromptMetadata } from "../types";
|
|
15
16
|
import type { AvailableAgent, AvailableSkill } from "../dynamic-agent-prompt-builder";
|
|
16
17
|
import type { CategoryConfig } from "../../config/schema";
|
|
17
|
-
export type AtlasPromptSource = "default" | "gpt" | "gemini" | "kimi" | "opus-4-7";
|
|
18
|
+
export type AtlasPromptSource = "default" | "gpt" | "gemini" | "kimi" | "kimi-k2-7" | "opus-4-7";
|
|
18
19
|
export declare function getAtlasPromptSource(model?: string): AtlasPromptSource;
|
|
19
20
|
export interface OrchestratorContext {
|
|
20
21
|
model?: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const GPT_APPLY_PATCH_GUIDANCE = "Use
|
|
2
|
-
export declare
|
|
1
|
+
export declare const GPT_APPLY_PATCH_GUIDANCE = "Use `apply_patch` for file edits. Keep patches small and match the surrounding lines exactly so verification passes.";
|
|
2
|
+
export declare const GPT_FILE_EDIT_GUIDANCE = "Use whichever file-editing tool is exposed in your toolset (`apply_patch`, or `edit`/`write`). Keep each change small and match the surrounding lines exactly so it applies on the first attempt.";
|
|
@@ -2,6 +2,11 @@ import type { AgentConfig } from "@opencode-ai/sdk";
|
|
|
2
2
|
import type { AgentPromptMetadata } from "../types";
|
|
3
3
|
import type { AvailableAgent, AvailableTool, AvailableSkill, AvailableCategory } from "../dynamic-agent-prompt-builder";
|
|
4
4
|
export type HephaestusPromptSource = "gpt-5-5" | "gpt-5-4" | "gpt";
|
|
5
|
+
export declare class UnsupportedHephaestusModelError extends Error {
|
|
6
|
+
readonly model: string | undefined;
|
|
7
|
+
constructor(model: string | undefined);
|
|
8
|
+
}
|
|
9
|
+
export declare function isHephaestusSupportedModel(model: string | undefined): boolean;
|
|
5
10
|
export declare function getHephaestusPromptSource(model?: string): HephaestusPromptSource;
|
|
6
11
|
export interface HephaestusContext {
|
|
7
12
|
model?: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { createHephaestusAgent, getHephaestusPrompt, getHephaestusPromptSource, hephaestusPromptMetadata, } from "./agent";
|
|
1
|
+
export { createHephaestusAgent, getHephaestusPrompt, getHephaestusPromptSource, hephaestusPromptMetadata, isHephaestusSupportedModel, UnsupportedHephaestusModelError, } from "./agent";
|
|
2
2
|
export type { HephaestusContext, HephaestusPromptSource } from "./agent";
|
package/dist/agents/metis.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ import type { AgentPromptMetadata } from "./types";
|
|
|
14
14
|
* - Prepare directives for the planner agent
|
|
15
15
|
*/
|
|
16
16
|
export declare const METIS_SYSTEM_PROMPT: string;
|
|
17
|
+
export declare const METIS_K2_7_SYSTEM_PROMPT: string;
|
|
17
18
|
export declare function createMetisAgent(model: string): AgentConfig;
|
|
18
19
|
export declare namespace createMetisAgent {
|
|
19
20
|
var mode: "subagent";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type PrometheusPromptSource = "default" | "gpt" | "gemini" | "claude-fable-5" | "claude-opus-4-8" | "claude-opus-4-7" | "claude-opus-4-6";
|
|
1
|
+
export type PrometheusPromptSource = "default" | "gpt" | "gemini" | "kimi-k2-7" | "claude-fable-5" | "claude-opus-4-8" | "claude-opus-4-7" | "claude-opus-4-6";
|
|
2
2
|
export declare const PROMETHEUS_PERMISSION: {
|
|
3
3
|
edit: "allow";
|
|
4
4
|
bash: "allow";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Kimi K2.7-native Sisyphus prompt.
|
|
3
|
+
*
|
|
4
|
+
* Authored for K2.7 from the ground up — not a tune of another model's prompt.
|
|
5
|
+
* K2.7 is the Kimi base distilled toward Opus 4.8 steerability and GPT-5.5
|
|
6
|
+
* directness: restrained, outcome-first, steerable. The whole prompt is written
|
|
7
|
+
* in that register — decision rules and terminal conditions over absolutes and
|
|
8
|
+
* repetition, Claude-family XML anchors for structure, and the agent's
|
|
9
|
+
* analytical depth reserved for where correctness is genuinely at risk. The
|
|
10
|
+
* runtime-injected capability sections (tool/delegation/category tables, key
|
|
11
|
+
* triggers, explore/librarian guidance) are the shared builders every variant
|
|
12
|
+
* uses; everything else here is authored for this model.
|
|
13
|
+
*/
|
|
14
|
+
import type { AvailableAgent, AvailableTool, AvailableSkill, AvailableCategory } from "../dynamic-agent-prompt-builder";
|
|
15
|
+
import { categorizeTools } from "../dynamic-agent-prompt-builder";
|
|
16
|
+
export declare function buildKimiK27SisyphusPrompt(model: string, availableAgents: AvailableAgent[], availableTools?: AvailableTool[], availableSkills?: AvailableSkill[], availableCategories?: AvailableCategory[], useTaskSystem?: boolean): string;
|
|
17
|
+
export { categorizeTools };
|
|
@@ -15,7 +15,7 @@ export declare const SISYPHUS_JUNIOR_DEFAULTS: {
|
|
|
15
15
|
readonly model: "anthropic/claude-sonnet-4-6";
|
|
16
16
|
readonly temperature: 0.1;
|
|
17
17
|
};
|
|
18
|
-
export type SisyphusJuniorPromptSource = "default" | "kimi-k2" | "gpt" | "gpt-5-5" | "gpt-5-4" | "gemini";
|
|
18
|
+
export type SisyphusJuniorPromptSource = "default" | "kimi-k2" | "kimi-k2-7" | "gpt" | "gpt-5-5" | "gpt-5-4" | "gemini";
|
|
19
19
|
export declare function getSisyphusJuniorPromptSource(model?: string): SisyphusJuniorPromptSource;
|
|
20
20
|
/**
|
|
21
21
|
* Builds the appropriate Sisyphus-Junior prompt based on model.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Kimi K2.7-native Sisyphus-Junior prompt.
|
|
3
|
+
*
|
|
4
|
+
* Authored for K2.7 from the ground up — not a tune of another model's prompt.
|
|
5
|
+
* Sisyphus-Junior is the focused executor: it does the work itself and never
|
|
6
|
+
* delegates implementation, though it may fire explore/librarian for research.
|
|
7
|
+
* K2.7 is restrained and outcome-first (Opus 4.8 steerability, GPT-5.5
|
|
8
|
+
* directness), so this is lean decision rules and terminal conditions with the
|
|
9
|
+
* verification rigor kept first-class.
|
|
10
|
+
*/
|
|
11
|
+
export declare function buildKimiK27SisyphusJuniorPrompt(useTaskSystem: boolean, promptAppend?: string): string;
|
package/dist/agents/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AgentConfig } from "@opencode-ai/sdk";
|
|
2
|
-
import { isClaudeFable5Model, isClaudeOpus46Model, isClaudeOpus47Model, isClaudeOpus47OrLaterModel, isClaudeOpus48Model, isGeminiModel, isGlmModel, isGptModel, isKimiK2Model, isMiniMaxModel } from "@oh-my-opencode/model-core";
|
|
3
|
-
export { isClaudeFable5Model, isClaudeOpus46Model, isClaudeOpus47Model, isClaudeOpus47OrLaterModel, isClaudeOpus48Model, isGeminiModel, isGlmModel, isGptModel, isKimiK2Model, isMiniMaxModel, };
|
|
2
|
+
import { isClaudeFable5Model, isClaudeOpus46Model, isClaudeOpus47Model, isClaudeOpus47OrLaterModel, isClaudeOpus48Model, isGeminiModel, isGlmModel, isGptModel, isKimiK2Model, isKimiK27Model, isMiniMaxModel } from "@oh-my-opencode/model-core";
|
|
3
|
+
export { isClaudeFable5Model, isClaudeOpus46Model, isClaudeOpus47Model, isClaudeOpus47OrLaterModel, isClaudeOpus48Model, isGeminiModel, isGlmModel, isGptModel, isKimiK2Model, isKimiK27Model, isMiniMaxModel, };
|
|
4
4
|
/**
|
|
5
5
|
* Anthropic Opus 4.7+ rejects thinking.type "enabled"; it requires adaptive
|
|
6
6
|
* thinking plus an effort, which OpenCode core derives from the model variant.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { CheckResult } from "../types";
|
|
2
|
+
import { type CodexDoctorDeps } from "./codex";
|
|
3
|
+
export declare const CODEX_COMPONENTS_CHECK_ID = "codex-components";
|
|
4
|
+
export declare const CODEX_COMPONENTS_CHECK_NAME = "codex-components";
|
|
5
|
+
type ResolveModulePath = (specifier: string, fromPath: string) => string;
|
|
6
|
+
export interface CodexComponentsDoctorDeps extends CodexDoctorDeps {
|
|
7
|
+
readonly env?: Record<string, string | undefined>;
|
|
8
|
+
readonly platform?: NodeJS.Platform;
|
|
9
|
+
readonly arch?: string;
|
|
10
|
+
readonly resolveModulePath?: ResolveModulePath;
|
|
11
|
+
}
|
|
12
|
+
export declare function checkCodexComponents(deps?: CodexComponentsDoctorDeps): Promise<CheckResult>;
|
|
13
|
+
export {};
|
|
@@ -9,6 +9,7 @@ interface TuiPluginInfo {
|
|
|
9
9
|
configPath: string | null;
|
|
10
10
|
exists: boolean;
|
|
11
11
|
hasNamedTuiEntry: boolean;
|
|
12
|
+
hasCanonicalNamedTuiEntry: boolean;
|
|
12
13
|
}
|
|
13
14
|
export declare function detectServerPluginRegistration(): ServerPluginInfo;
|
|
14
15
|
export declare function detectTuiPluginRegistration(): TuiPluginInfo;
|
|
@@ -28,5 +28,5 @@ export declare const EXIT_CODES: {
|
|
|
28
28
|
readonly FAILURE: 1;
|
|
29
29
|
};
|
|
30
30
|
export declare const MIN_OPENCODE_VERSION = "1.4.0";
|
|
31
|
-
export declare const PACKAGE_NAME = "oh-my-
|
|
31
|
+
export declare const PACKAGE_NAME = "oh-my-openagent";
|
|
32
32
|
export declare const OPENCODE_BINARIES: readonly ["opencode", "opencode-desktop"];
|