oh-my-opencode 4.19.1 → 4.19.3
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/command/publish.md +95 -28
- package/.agents/skills/publish/SKILL.md +20 -6
- package/.opencode/command/publish.md +95 -28
- package/README.ja.md +2 -2
- package/README.ko.md +2 -2
- package/README.md +2 -2
- package/README.ru.md +2 -2
- package/README.zh-cn.md +2 -2
- package/THIRD-PARTY-NOTICES.md +7 -7
- package/dist/agents/atlas/agent.d.ts +4 -2
- package/dist/agents/explore.d.ts +4 -2
- package/dist/agents/hephaestus/agent.d.ts +4 -2
- package/dist/agents/librarian.d.ts +4 -2
- package/dist/agents/metis.d.ts +4 -2
- package/dist/agents/momus.d.ts +3 -2
- package/dist/agents/multimodal-looker.d.ts +4 -2
- package/dist/agents/oracle.d.ts +4 -2
- package/dist/agents/sisyphus/claude-opus-5.d.ts +33 -0
- package/dist/agents/sisyphus/index.d.ts +2 -0
- package/dist/agents/sisyphus-agent-factory.d.ts +5 -2
- package/dist/agents/sisyphus-junior/agent.d.ts +4 -1
- package/dist/agents/sisyphus-runtime-prompt-reconciler.d.ts +1 -1
- package/dist/agents/types.d.ts +2 -2
- package/dist/cli/config-migrate.d.ts +8 -0
- package/dist/cli/doctor/checks/legacy-config-leftovers.d.ts +10 -0
- package/dist/cli/doctor/checks/model-resolution-config.d.ts +1 -1
- package/dist/cli/doctor/checks/tools-lsp.d.ts +1 -1
- package/dist/cli/doctor/framework/constants.d.ts +1 -1
- package/dist/cli/index.js +95391 -88524
- package/dist/cli-node/index.js +95504 -88637
- package/dist/config/schema/agent-names.d.ts +26 -26
- package/dist/config/schema/agent-overrides.d.ts +400 -400
- package/dist/config/schema/browser-automation.d.ts +2 -2
- package/dist/config/schema/categories.d.ts +36 -36
- package/dist/config/schema/commands.d.ts +2 -2
- package/dist/config/schema/dynamic-context-pruning.d.ts +1 -1
- package/dist/config/schema/experimental.d.ts +1 -1
- package/dist/config/schema/fallback-models.d.ts +25 -25
- package/dist/config/schema/hooks.d.ts +43 -43
- package/dist/config/schema/internal/permission.d.ts +9 -9
- package/dist/config/schema/keyword-detector.d.ts +6 -6
- package/dist/config/schema/oh-my-opencode-config.d.ts +402 -402
- package/dist/config/schema/tmux.d.ts +6 -6
- package/dist/config/validate.d.ts +2 -1
- package/dist/config-migration/deep-diff.d.ts +1 -0
- package/dist/config-migration/discovery-paths.d.ts +11 -0
- package/dist/config-migration/discovery-roots.d.ts +7 -0
- package/dist/config-migration/discovery.d.ts +4 -0
- package/dist/config-migration/index.d.ts +9 -0
- package/dist/config-migration/legacy-history.d.ts +3 -0
- package/dist/config-migration/migration-executor.d.ts +4 -0
- package/dist/config-migration/migration-plans.d.ts +14 -0
- package/dist/config-migration/record-values.d.ts +4 -0
- package/dist/config-migration/schema-url.d.ts +1 -0
- package/dist/config-migration/transform-config-jsonc.d.ts +2 -0
- package/dist/config-migration/transform-opencode.d.ts +2 -0
- package/dist/config-migration/transform-types.d.ts +24 -0
- package/dist/config-migration/types.d.ts +39 -0
- package/dist/create-hooks.d.ts +35 -35
- package/dist/features/background-agent/spawner/tmux-callback-invoker.d.ts +11 -0
- package/dist/features/builtin-commands/templates/hyperplan.d.ts +1 -1
- package/dist/features/builtin-commands/templates/start-work.d.ts +1 -1
- package/dist/features/claude-tasks/types.d.ts +4 -4
- package/dist/features/team-mode/team-runtime/shutdown-helpers.d.ts +1 -1
- package/dist/features/team-mode/team-runtime/shutdown-test-fixtures.d.ts +4 -4
- package/dist/features/team-mode/tools/lifecycle-test-fixture.d.ts +42 -42
- package/dist/features/tmux-subagent/environment-eligibility.d.ts +2 -0
- package/dist/features/tmux-subagent/index.d.ts +1 -0
- package/dist/features/tmux-subagent/tracked-session-state.d.ts +1 -0
- package/dist/features/tui-sidebar/snapshot-schema.d.ts +6 -6
- package/dist/help/schema/acp.d.ts +3 -3
- package/dist/help/schema/doctor.d.ts +4 -4
- package/dist/help/schema/status.d.ts +3 -3
- package/dist/hooks/auto-update-checker/constants.d.ts +3 -3
- package/dist/hooks/goal/types.d.ts +5 -5
- package/dist/hooks/non-interactive-env/constants.d.ts +4 -1
- package/dist/hooks/start-work/parse-user-request.d.ts +2 -0
- package/dist/hooks/start-work/worktree-block.d.ts +5 -0
- package/dist/index.js +35450 -28257
- package/dist/mcp/types.d.ts +3 -3
- package/dist/oh-my-opencode.schema.json +1 -1
- package/dist/plugin/chat-message/loop-commands.d.ts +1 -0
- package/dist/plugin/command-execute-before.d.ts +3 -3
- package/dist/plugin/hooks/create-core-hooks.d.ts +25 -25
- package/dist/plugin-config/omo-config-chain.d.ts +14 -0
- package/dist/plugin-config/unknown-key-diagnostics.d.ts +5 -0
- package/dist/plugin-config.d.ts +2 -2
- package/dist/shared/agent-display-names.d.ts +1 -1
- package/dist/shared/jsonc-parser.d.ts +1 -1
- package/dist/shared/migration.d.ts +5 -1
- package/dist/shared/opencode-config-dir-types.d.ts +0 -1
- package/dist/shared/plugin-identity.d.ts +6 -8
- package/dist/shared/project-discovery-dirs.d.ts +0 -1
- package/dist/shared/tmux/tmux-utils/environment.d.ts +1 -1
- package/dist/shared/tmux/tmux-utils.d.ts +1 -1
- package/dist/shared/typescript-native-source-parser.d.ts +7 -0
- package/dist/skills/coding-agent-sessions/SKILL.md +5 -2
- package/dist/skills/coding-agent-sessions/references/all-platforms.md +3 -1
- package/dist/skills/coding-agent-sessions/references/senpi.md +15 -5
- package/dist/skills/coding-agent-sessions/scripts/agent_sessions/pi_family.py +46 -0
- package/dist/skills/coding-agent-sessions/scripts/agent_sessions/scanners.py +19 -10
- package/dist/skills/debugging/SKILL.md +2 -1
- package/dist/skills/debugging/references/methodology/03-flaky-triage.md +47 -0
- package/dist/skills/frontend/ATTRIBUTION.md +7 -0
- package/dist/skills/frontend/SKILL.md +4 -1
- package/dist/skills/frontend/references/design/README.md +8 -0
- package/dist/skills/frontend/references/design/_INDEX.md +14 -1
- package/dist/skills/frontend/references/design/interaction-skill.md +144 -0
- package/dist/skills/programming/SKILL.md +11 -1
- package/dist/skills/programming/references/logging.md +6 -1
- package/dist/skills/programming/scripts/typescript/check-no-excuse-rules.ts +51 -17
- package/dist/skills/start-work/SKILL.md +12 -2
- package/dist/skills/ulw-plan/SKILL.md +1 -1
- package/dist/skills/ulw-plan/references/full-workflow.md +12 -1
- package/dist/skills/ulw-plan/references/intent-clear.md +1 -1
- package/dist/startup-migration.d.ts +28 -0
- package/dist/testing/create-plugin-module.d.ts +4 -0
- package/dist/tools/task/types.d.ts +10 -10
- package/dist/tui.js +31812 -26849
- package/package.json +14 -14
- package/packages/lsp-core/src/lsp/client-diagnostics-freshness.integration.test.ts +21 -5
- package/packages/lsp-core/src/lsp/fixtures/workspace-edit-server.mjs +11 -2
- package/packages/omo-codex/THIRD-PARTY-NOTICES.md +2 -2
- package/packages/omo-codex/plugin/.codex-plugin/plugin.json +1 -1
- package/packages/omo-codex/plugin/components/bootstrap/dist/cli.js +8 -4
- package/packages/omo-codex/plugin/components/bootstrap/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/bootstrap/package.json +1 -1
- package/packages/omo-codex/plugin/components/codegraph/AGENTS.md +11 -5
- package/packages/omo-codex/plugin/components/codegraph/NOTICE +1 -1
- package/packages/omo-codex/plugin/components/codegraph/dist/cli.js +10272 -2600
- package/packages/omo-codex/plugin/components/codegraph/dist/serve.js +7341 -562
- package/packages/omo-codex/plugin/components/codegraph/package.json +2 -2
- package/packages/omo-codex/plugin/components/codegraph/src/hook-input.ts +33 -0
- package/packages/omo-codex/plugin/components/codegraph/src/hook-types.ts +36 -10
- package/packages/omo-codex/plugin/components/codegraph/src/hook.ts +170 -186
- package/packages/omo-codex/plugin/components/codegraph/src/post-tool-use-hook.ts +34 -0
- package/packages/omo-codex/plugin/components/codegraph/src/serve.ts +22 -5
- package/packages/omo-codex/plugin/components/codegraph/src/session-start-command.ts +106 -0
- package/packages/omo-codex/plugin/components/codegraph/src/session-start-cooldown.ts +145 -0
- package/packages/omo-codex/plugin/components/codegraph/src/session-start-hook-runtime.ts +21 -0
- package/packages/omo-codex/plugin/components/codegraph/src/session-start-lock.ts +139 -0
- package/packages/omo-codex/plugin/components/codegraph/src/session-start-outcome.ts +15 -0
- package/packages/omo-codex/plugin/components/codegraph/src/session-start-paths.ts +32 -0
- package/packages/omo-codex/plugin/components/codegraph/src/session-start-project.ts +109 -0
- package/packages/omo-codex/plugin/components/codegraph/src/session-start-worker-result.ts +148 -0
- package/packages/omo-codex/plugin/components/codegraph/src/session-start-worker.ts +126 -186
- package/packages/omo-codex/plugin/components/codegraph/test/hook-exclusion.test.ts +9 -4
- package/packages/omo-codex/plugin/components/codegraph/test/hook-session-start-guard.test.ts +160 -0
- package/packages/omo-codex/plugin/components/codegraph/test/hook-store-upgrade.test.ts +12 -110
- package/packages/omo-codex/plugin/components/codegraph/test/hook.test.ts +29 -20
- package/packages/omo-codex/plugin/components/codegraph/test/mcp-bridge-fixtures.ts +3 -3
- package/packages/omo-codex/plugin/components/codegraph/test/package-runtime.test.ts +2 -2
- package/packages/omo-codex/plugin/components/codegraph/test/provisioned-node-guard.test.ts +11 -5
- package/packages/omo-codex/plugin/components/codegraph/test/serve-mcp-bridge.test.ts +3 -3
- package/packages/omo-codex/plugin/components/codegraph/test/serve-mcp-facade.test.ts +2 -1
- package/packages/omo-codex/plugin/components/codegraph/test/serve-provision.test.ts +50 -5
- package/packages/omo-codex/plugin/components/codegraph/test/serve-unavailable.test.ts +3 -2
- package/packages/omo-codex/plugin/components/codegraph/test/serve.test.ts +24 -13
- package/packages/omo-codex/plugin/components/codegraph/test/session-start-node-support.test.ts +70 -13
- package/packages/omo-codex/plugin/components/codegraph/test/session-start-project.test.ts +58 -0
- package/packages/omo-codex/plugin/components/codegraph/test/session-start-state.test.ts +104 -0
- package/packages/omo-codex/plugin/components/codegraph/test/session-start-trust-boundary.test.ts +4 -2
- package/packages/omo-codex/plugin/components/codegraph/test/session-start-worker-cooldown.test.ts +116 -0
- package/packages/omo-codex/plugin/components/codegraph/test/session-start-worker-flow.test.ts +114 -119
- package/packages/omo-codex/plugin/components/comment-checker/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/comment-checker/package.json +1 -1
- package/packages/omo-codex/plugin/components/git-bash/hooks/hooks.json +2 -2
- package/packages/omo-codex/plugin/components/git-bash/package.json +1 -1
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/package.json +1 -1
- package/packages/omo-codex/plugin/components/lsp/dist/.omo-runtime-manifest.json +2 -2
- package/packages/omo-codex/plugin/components/lsp/hooks/hooks.json +2 -2
- package/packages/omo-codex/plugin/components/lsp/package.json +1 -1
- package/packages/omo-codex/plugin/components/rules/dist/cli.js +31 -14
- package/packages/omo-codex/plugin/components/rules/hooks/hooks.json +4 -4
- package/packages/omo-codex/plugin/components/rules/package.json +1 -1
- package/packages/omo-codex/plugin/components/start-work-continuation/directive.md +1 -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 +1 -1
- package/packages/omo-codex/plugin/components/teammode/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/teammode/package.json +1 -1
- package/packages/omo-codex/plugin/components/telemetry/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/telemetry/package.json +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/directive.md +12 -7
- package/packages/omo-codex/plugin/components/ultrawork/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/package.json +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/skills/ultrawork/SKILL.md +12 -7
- package/packages/omo-codex/plugin/components/ultrawork/skills/ulw-plan/SKILL.md +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/skills/ulw-plan/references/full-workflow.md +12 -1
- package/packages/omo-codex/plugin/components/ultrawork/skills/ulw-plan/references/intent-clear.md +1 -1
- package/packages/omo-codex/plugin/components/ulw-loop/directive.md +12 -7
- package/packages/omo-codex/plugin/components/ulw-loop/hooks/hooks.json +4 -4
- package/packages/omo-codex/plugin/components/ulw-loop/package.json +1 -1
- package/packages/omo-codex/plugin/components/ulw-loop/skills/ulw-loop/SKILL.md +19 -1
- package/packages/omo-codex/plugin/hooks/post-compact-resetting-git-bash-mcp-reminder.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-compact-resetting-lsp-diagnostics-cache.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-compact-resetting-project-rule-cache.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-codegraph-init-guidance.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-comments.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-lsp-diagnostics.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-thread-title-hygiene.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-matching-project-rules.json +1 -1
- package/packages/omo-codex/plugin/hooks/pre-tool-use-enforcing-unlimited-goal-budget.json +1 -1
- package/packages/omo-codex/plugin/hooks/pre-tool-use-guarding-ulw-loop-spawns.json +1 -1
- package/packages/omo-codex/plugin/hooks/pre-tool-use-recommending-git-bash-mcp.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-checking-auto-update.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-checking-bootstrap-provisioning.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-checking-codegraph-bootstrap.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-loading-project-rules.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-recording-session-telemetry.json +1 -1
- package/packages/omo-codex/plugin/hooks/stop-checking-start-work-continuation.json +1 -1
- package/packages/omo-codex/plugin/hooks/stop-checking-ulw-loop-resume.json +1 -1
- package/packages/omo-codex/plugin/hooks/subagent-stop-checking-start-work-continuation.json +1 -1
- package/packages/omo-codex/plugin/hooks/subagent-stop-verifying-lazycodex-executor-evidence.json +1 -1
- package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ultrawork-trigger.json +1 -1
- package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ulw-loop-steering.json +1 -1
- package/packages/omo-codex/plugin/hooks/user-prompt-submit-loading-project-rules.json +1 -1
- package/packages/omo-codex/plugin/package-lock.json +42 -41
- package/packages/omo-codex/plugin/package.json +1 -1
- package/packages/omo-codex/plugin/shared/src/config-loader.ts +165 -16
- package/packages/omo-codex/plugin/shared/src/config-migration.ts +162 -0
- package/packages/omo-codex/plugin/shared/test/config-loader.test.ts +196 -18
- package/packages/omo-codex/plugin/skills/coding-agent-sessions/SKILL.md +5 -2
- package/packages/omo-codex/plugin/skills/coding-agent-sessions/references/all-platforms.md +3 -1
- package/packages/omo-codex/plugin/skills/coding-agent-sessions/references/senpi.md +15 -5
- package/packages/omo-codex/plugin/skills/coding-agent-sessions/scripts/agent_sessions/pi_family.py +46 -0
- package/packages/omo-codex/plugin/skills/coding-agent-sessions/scripts/agent_sessions/scanners.py +19 -10
- package/packages/omo-codex/plugin/skills/debugging/SKILL.md +2 -1
- package/packages/omo-codex/plugin/skills/debugging/references/methodology/03-flaky-triage.md +47 -0
- package/packages/omo-codex/plugin/skills/frontend/ATTRIBUTION.md +7 -0
- package/packages/omo-codex/plugin/skills/frontend/SKILL.md +4 -1
- package/packages/omo-codex/plugin/skills/frontend/references/design/README.md +8 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/_INDEX.md +14 -1
- package/packages/omo-codex/plugin/skills/frontend/references/design/interaction-skill.md +144 -0
- package/packages/omo-codex/plugin/skills/programming/SKILL.md +11 -1
- package/packages/omo-codex/plugin/skills/programming/references/logging.md +6 -1
- package/packages/omo-codex/plugin/skills/programming/scripts/typescript/check-no-excuse-rules.ts +51 -17
- package/packages/omo-codex/plugin/skills/start-work/SKILL.md +12 -2
- package/packages/omo-codex/plugin/skills/ultrawork/SKILL.md +12 -7
- package/packages/omo-codex/plugin/skills/ulw-loop/SKILL.md +19 -1
- package/packages/omo-codex/plugin/skills/ulw-plan/SKILL.md +1 -1
- package/packages/omo-codex/plugin/skills/ulw-plan/references/full-workflow.md +12 -1
- package/packages/omo-codex/plugin/skills/ulw-plan/references/intent-clear.md +1 -1
- package/packages/omo-codex/plugin/test/sync-skills-orchestration.test.mjs +22 -0
- package/packages/omo-codex/scripts/install-dist/install-local.mjs +1 -1
- package/packages/shared-skills/skills/coding-agent-sessions/SKILL.md +5 -2
- package/packages/shared-skills/skills/coding-agent-sessions/references/all-platforms.md +3 -1
- package/packages/shared-skills/skills/coding-agent-sessions/references/senpi.md +15 -5
- package/packages/shared-skills/skills/coding-agent-sessions/scripts/agent_sessions/pi_family.py +46 -0
- package/packages/shared-skills/skills/coding-agent-sessions/scripts/agent_sessions/scanners.py +19 -10
- package/packages/shared-skills/skills/debugging/SKILL.md +2 -1
- package/packages/shared-skills/skills/debugging/references/methodology/03-flaky-triage.md +47 -0
- package/packages/shared-skills/skills/frontend/ATTRIBUTION.md +7 -0
- package/packages/shared-skills/skills/frontend/SKILL.md +4 -1
- package/packages/shared-skills/skills/frontend/references/design/README.md +8 -0
- package/packages/shared-skills/skills/frontend/references/design/_INDEX.md +14 -1
- package/packages/shared-skills/skills/frontend/references/design/interaction-skill.md +144 -0
- package/packages/shared-skills/skills/programming/SKILL.md +11 -1
- package/packages/shared-skills/skills/programming/references/logging.md +6 -1
- package/packages/shared-skills/skills/programming/scripts/typescript/check-no-excuse-rules.ts +51 -17
- package/packages/shared-skills/skills/start-work/SKILL.md +12 -2
- package/packages/shared-skills/skills/ulw-plan/SKILL.md +1 -1
- package/packages/shared-skills/skills/ulw-plan/references/full-workflow.md +12 -1
- package/packages/shared-skills/skills/ulw-plan/references/intent-clear.md +1 -1
- package/dist/plugin-config/layered-config-loader.d.ts +0 -2
- package/dist/plugin-config/single-config-loader.d.ts +0 -4
- package/dist/shared/migrate-legacy-config-file.d.ts +0 -1
- package/dist/shared/migration/config-migration.d.ts +0 -1
package/dist/agents/metis.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { AgentConfig } from "@opencode-ai/sdk";
|
|
2
|
-
import type { AgentPromptMetadata } from "./types";
|
|
2
|
+
import type { AgentMode, AgentPromptMetadata } from "./types";
|
|
3
|
+
declare const MODE: AgentMode;
|
|
3
4
|
/**
|
|
4
5
|
* Metis - Plan Consultant Agent
|
|
5
6
|
*
|
|
@@ -17,6 +18,7 @@ export declare const METIS_SYSTEM_PROMPT: string;
|
|
|
17
18
|
export declare const METIS_K2_7_SYSTEM_PROMPT: string;
|
|
18
19
|
export declare function createMetisAgent(model: string): AgentConfig;
|
|
19
20
|
export declare namespace createMetisAgent {
|
|
20
|
-
|
|
21
|
+
export { MODE as mode };
|
|
21
22
|
}
|
|
22
23
|
export declare const metisPromptMetadata: AgentPromptMetadata;
|
|
24
|
+
export {};
|
package/dist/agents/momus.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { AgentConfig } from "@opencode-ai/sdk";
|
|
2
|
-
import type { AgentPromptMetadata } from "./types";
|
|
2
|
+
import type { AgentMode, AgentPromptMetadata } from "./types";
|
|
3
|
+
declare const MODE: AgentMode;
|
|
3
4
|
/**
|
|
4
5
|
* Momus - Plan Reviewer Agent
|
|
5
6
|
*
|
|
@@ -20,6 +21,6 @@ declare const MOMUS_DEFAULT_PROMPT = "You are a **practical** work plan reviewer
|
|
|
20
21
|
export { MOMUS_DEFAULT_PROMPT as MOMUS_SYSTEM_PROMPT };
|
|
21
22
|
export declare function createMomusAgent(model: string): AgentConfig;
|
|
22
23
|
export declare namespace createMomusAgent {
|
|
23
|
-
|
|
24
|
+
export { MODE as mode };
|
|
24
25
|
}
|
|
25
26
|
export declare const momusPromptMetadata: AgentPromptMetadata;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { AgentConfig } from "@opencode-ai/sdk";
|
|
2
|
-
import type { AgentPromptMetadata } from "./types";
|
|
2
|
+
import type { AgentMode, AgentPromptMetadata } from "./types";
|
|
3
|
+
declare const MODE: AgentMode;
|
|
3
4
|
export declare const MULTIMODAL_LOOKER_PROMPT_METADATA: AgentPromptMetadata;
|
|
4
5
|
export declare function createMultimodalLookerAgent(model: string): AgentConfig;
|
|
5
6
|
export declare namespace createMultimodalLookerAgent {
|
|
6
|
-
|
|
7
|
+
export { MODE as mode };
|
|
7
8
|
}
|
|
9
|
+
export {};
|
package/dist/agents/oracle.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { AgentConfig } from "@opencode-ai/sdk";
|
|
2
|
-
import type { AgentPromptMetadata } from "./types";
|
|
2
|
+
import type { AgentMode, AgentPromptMetadata } from "./types";
|
|
3
|
+
declare const MODE: AgentMode;
|
|
3
4
|
export declare const ORACLE_PROMPT_METADATA: AgentPromptMetadata;
|
|
4
5
|
export declare function createOracleAgent(model: string): AgentConfig;
|
|
5
6
|
export declare namespace createOracleAgent {
|
|
6
|
-
|
|
7
|
+
export { MODE as mode };
|
|
7
8
|
}
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Claude Opus 5-native Sisyphus prompt - tuned for Opus 5 behaviors.
|
|
3
|
+
*
|
|
4
|
+
* Design principles (Anthropic "Prompting Claude Opus 5" guidance, applied to
|
|
5
|
+
* the Opus 4.8 skeleton - Opus 5 runs well on 4.8 prompts, so only the
|
|
6
|
+
* documented behavior deltas are tuned):
|
|
7
|
+
* - SCOPE CONSTRAINT replaces 4.8's over-asking counter: Opus 5 does not
|
|
8
|
+
* under-ask, it over-does - it expands scope and adds unrequested steps.
|
|
9
|
+
* Explicit "deliver what was asked, at the scope intended" calibration.
|
|
10
|
+
* - DELEGATION CAP replaces 4.8's capability under-reach counter: Opus 5
|
|
11
|
+
* delegates to subagents MORE readily than prior models, so the 4.8
|
|
12
|
+
* "DEFAULT BIAS: DELEGATE" push is inverted into domain-and-size gating,
|
|
13
|
+
* with an explicit ban on verify-my-own-work subagents.
|
|
14
|
+
* - OVER-VERIFICATION REMOVAL: Opus 5 self-verifies without being told.
|
|
15
|
+
* Evidence gates stay (they define WHAT counts as done) but run ONCE;
|
|
16
|
+
* repeat-verification scaffolding is removed per Anthropic guidance.
|
|
17
|
+
* - NARRATION CADENCE: Opus 5 narrates readily and writes long responses;
|
|
18
|
+
* effort controls thinking volume, not response length. One-sentence
|
|
19
|
+
* opener, silence between tool calls, outcome-first wrap-ups, and a
|
|
20
|
+
* closing <tone_preference> reminder (Anthropic-recommended for long
|
|
21
|
+
* system prompts).
|
|
22
|
+
* - CORRECTION NARRATION limited to corrections that change the user's
|
|
23
|
+
* code, conclusions, or decisions.
|
|
24
|
+
* - WRITTEN DELIVERABLE length calibrated: no filler sections or boilerplate.
|
|
25
|
+
* - LITERAL instruction following inherited from 4.7/4.8: state scope
|
|
26
|
+
* explicitly.
|
|
27
|
+
* - XML-tagged anchors, Phase 0/1/2A/2B/2C/3 mental model, and shared dynamic
|
|
28
|
+
* helpers identical to the other Claude variants so content stays in sync.
|
|
29
|
+
*/
|
|
30
|
+
import type { AvailableAgent, AvailableTool, AvailableSkill, AvailableCategory } from "../dynamic-agent-prompt-builder";
|
|
31
|
+
import { categorizeTools } from "../dynamic-agent-prompt-builder";
|
|
32
|
+
export declare function buildClaudeOpus5SisyphusPrompt(model: string, availableAgents: AvailableAgent[], availableTools?: AvailableTool[], availableSkills?: AvailableSkill[], availableCategories?: AvailableCategory[], useTaskSystem?: boolean): string;
|
|
33
|
+
export { categorizeTools };
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* - default.ts: Base implementation for Claude and general models
|
|
6
6
|
* - claude-opus-4-7.ts: Native Claude Opus 4.7 prompt with literal-instruction tuning
|
|
7
7
|
* - claude-opus-4-8.ts: Native Claude Opus 4.8 prompt with silence-default + autonomy tuning
|
|
8
|
+
* - claude-opus-5.ts: Native Claude Opus 5 prompt with scope/delegation/verification caps
|
|
8
9
|
* - claude-fable-5.ts: Native Claude Fable 5 prompt (Opus 4.8 direction, top-tier model)
|
|
9
10
|
* - gemini.ts: Corrective overlays for Gemini's aggressive tendencies
|
|
10
11
|
* - gpt-5-4.ts: Native GPT-5.4 prompt with block-structured guidance
|
|
@@ -16,6 +17,7 @@
|
|
|
16
17
|
export { buildDefaultSisyphusPrompt, buildTaskManagementSection } from "./default";
|
|
17
18
|
export { buildClaudeOpus47SisyphusPrompt } from "./claude-opus-4-7";
|
|
18
19
|
export { buildClaudeOpus48SisyphusPrompt } from "./claude-opus-4-8";
|
|
20
|
+
export { buildClaudeOpus5SisyphusPrompt } from "./claude-opus-5";
|
|
19
21
|
export { buildClaudeFable5SisyphusPrompt } from "./claude-fable-5";
|
|
20
22
|
export { buildGeminiToolMandate, buildGeminiDelegationOverride, buildGeminiVerificationOverride, buildGeminiIntentGateEnforcement, buildGeminiToolGuide, buildGeminiToolCallExamples, } from "./gemini";
|
|
21
23
|
export { buildGpt54SisyphusPrompt } from "./gpt-5-4";
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { AgentConfig } from "@opencode-ai/sdk";
|
|
2
2
|
import type { AvailableAgent, AvailableCategory, AvailableSkill } from "./dynamic-agent-prompt-builder";
|
|
3
|
+
import type { AgentMode } from "./types";
|
|
4
|
+
declare const MODE: AgentMode;
|
|
3
5
|
/**
|
|
4
6
|
* Identifies which prompt body `createSisyphusAgent` bakes for a given model.
|
|
5
7
|
* The whole Sisyphus prompt is model-family-specific and selected here, so this
|
|
@@ -7,9 +9,10 @@ import type { AvailableAgent, AvailableCategory, AvailableSkill } from "./dynami
|
|
|
7
9
|
* runtime model resolves to a different family than the configured one, the baked
|
|
8
10
|
* body is the wrong family and must be rebuilt (issue #5297/#5316).
|
|
9
11
|
*/
|
|
10
|
-
export type SisyphusPromptFamily = "kimi-k3" | "kimi-k2-7" | "kimi-k2-6" | "gpt-5-5" | "gpt-5-4" | "claude-fable-5" | "claude-opus-4-8" | "claude-opus-4-7" | "glm-5-2" | "fallback";
|
|
12
|
+
export type SisyphusPromptFamily = "kimi-k3" | "kimi-k2-7" | "kimi-k2-6" | "gpt-5-5" | "gpt-5-4" | "claude-fable-5" | "claude-opus-5" | "claude-opus-4-8" | "claude-opus-4-7" | "glm-5-2" | "fallback";
|
|
11
13
|
export declare function resolveSisyphusPromptFamily(model: string): SisyphusPromptFamily;
|
|
12
14
|
export declare function createSisyphusAgent(model: string, availableAgents?: AvailableAgent[], availableToolNames?: string[], availableSkills?: AvailableSkill[], availableCategories?: AvailableCategory[], useTaskSystem?: boolean): AgentConfig;
|
|
13
15
|
export declare namespace createSisyphusAgent {
|
|
14
|
-
|
|
16
|
+
export { MODE as mode };
|
|
15
17
|
}
|
|
18
|
+
export {};
|
|
@@ -14,7 +14,9 @@
|
|
|
14
14
|
* 7. Default (Claude, etc.) -> default.ts (Claude-optimized)
|
|
15
15
|
*/
|
|
16
16
|
import type { AgentConfig } from "@opencode-ai/sdk";
|
|
17
|
+
import type { AgentMode } from "../types";
|
|
17
18
|
import type { AgentOverrideConfig } from "../../config/schema";
|
|
19
|
+
declare const MODE: AgentMode;
|
|
18
20
|
export declare const SISYPHUS_JUNIOR_DEFAULTS: {
|
|
19
21
|
readonly model: "anthropic/claude-sonnet-4-6";
|
|
20
22
|
readonly temperature: 0.1;
|
|
@@ -27,5 +29,6 @@ export declare function getSisyphusJuniorPromptSource(model?: string): SisyphusJ
|
|
|
27
29
|
export declare function buildSisyphusJuniorPrompt(model: string | undefined, useTaskSystem: boolean, promptAppend?: string): string;
|
|
28
30
|
export declare function createSisyphusJuniorAgentWithOverrides(override: AgentOverrideConfig | undefined, systemDefaultModel?: string, useTaskSystem?: boolean): AgentConfig;
|
|
29
31
|
export declare namespace createSisyphusJuniorAgentWithOverrides {
|
|
30
|
-
|
|
32
|
+
export { MODE as mode };
|
|
31
33
|
}
|
|
34
|
+
export {};
|
|
@@ -16,7 +16,7 @@ export declare function setSisyphusRuntimePromptContext(ctx: SisyphusRuntimeProm
|
|
|
16
16
|
export declare function clearSisyphusRuntimePromptContext(): void;
|
|
17
17
|
/**
|
|
18
18
|
* The Sisyphus prompt body is baked at registration from the *configured* model
|
|
19
|
-
* in
|
|
19
|
+
* in `.omo/omo.jsonc`. When the user switches to a different model family
|
|
20
20
|
* in the TUI, the entire baked body is the wrong family for the runtime model
|
|
21
21
|
* (issue #5297/#5316): a GPT-configured agent run on a non-GPT model still
|
|
22
22
|
* carries the whole GPT-5.5 body, not just one apply_patch line.
|
package/dist/agents/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AgentConfig } from "@opencode-ai/sdk";
|
|
2
|
-
import { isClaudeFable5Model, isClaudeFableOrMythosModel, isClaudeOpus46Model, isClaudeOpus47Model, isClaudeOpus47OrLaterModel, isClaudeOpus48Model, isGeminiModel, isGlmModel, isGptModel, isKimiK2Model, isKimiK27Model, isKimiK3Model, isMiniMaxModel } from "@oh-my-opencode/model-core";
|
|
3
|
-
export { isClaudeFable5Model, isClaudeFableOrMythosModel, isClaudeOpus46Model, isClaudeOpus47Model, isClaudeOpus47OrLaterModel, isClaudeOpus48Model, isGeminiModel, isGlmModel, isGptModel, isKimiK2Model, isKimiK27Model, isKimiK3Model, isMiniMaxModel, };
|
|
2
|
+
import { isClaudeFable5Model, isClaudeFableOrMythosModel, isClaudeOpus46Model, isClaudeOpus47Model, isClaudeOpus47OrLaterModel, isClaudeOpus48Model, isClaudeOpus5Model, isGeminiModel, isGlmModel, isGptModel, isKimiK2Model, isKimiK27Model, isKimiK3Model, isMiniMaxModel } from "@oh-my-opencode/model-core";
|
|
3
|
+
export { isClaudeFable5Model, isClaudeFableOrMythosModel, isClaudeOpus46Model, isClaudeOpus47Model, isClaudeOpus47OrLaterModel, isClaudeOpus48Model, isClaudeOpus5Model, isGeminiModel, isGlmModel, isGptModel, isKimiK2Model, isKimiK27Model, isKimiK3Model, isMiniMaxModel, };
|
|
4
4
|
/**
|
|
5
5
|
* Anthropic Opus 4.7+, Fable, and Mythos models reject thinking.type "enabled";
|
|
6
6
|
* they require adaptive thinking plus an effort, which OpenCode core derives from
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type ConfigMigrateOptions = {
|
|
2
|
+
readonly cwd?: string;
|
|
3
|
+
readonly dryRun?: boolean;
|
|
4
|
+
readonly environment?: Readonly<Record<string, string | undefined>>;
|
|
5
|
+
readonly json?: boolean;
|
|
6
|
+
readonly output?: (line: string) => void;
|
|
7
|
+
};
|
|
8
|
+
export declare function runConfigMigrate(options?: ConfigMigrateOptions): number;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ConfigMigrationPathOperations } from "../../../config-migration";
|
|
2
|
+
import type { DoctorIssue } from "../framework/types";
|
|
3
|
+
export type LegacyConfigLeftoverOptions = {
|
|
4
|
+
readonly cwd: string;
|
|
5
|
+
readonly environment?: Readonly<Record<string, string | undefined>>;
|
|
6
|
+
readonly homeDir: string;
|
|
7
|
+
readonly pathOperations?: ConfigMigrationPathOperations;
|
|
8
|
+
};
|
|
9
|
+
export declare function findLegacyConfigLeftovers(options: LegacyConfigLeftoverOptions): readonly string[];
|
|
10
|
+
export declare function legacyConfigLeftoverWarning(paths: readonly string[]): DoctorIssue | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { OmoConfig } from "./model-resolution-types";
|
|
2
|
-
export declare function loadOmoConfig(): OmoConfig
|
|
2
|
+
export declare function loadOmoConfig(): OmoConfig;
|
|
@@ -29,5 +29,5 @@ export declare const EXIT_CODES: {
|
|
|
29
29
|
readonly FAILURE: 1;
|
|
30
30
|
};
|
|
31
31
|
export declare const MIN_OPENCODE_VERSION = "1.4.0";
|
|
32
|
-
export declare const PACKAGE_NAME
|
|
32
|
+
export declare const PACKAGE_NAME = "oh-my-openagent";
|
|
33
33
|
export declare const OPENCODE_BINARIES: readonly ["opencode", "opencode-desktop"];
|