oh-my-opencode 4.19.2 → 4.19.4
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/get-unpublished-changes.md +2 -0
- package/.agents/command/omomomo.md +1 -1
- package/.agents/command/publish.md +102 -28
- package/.agents/skills/get-unpublished-changes/SKILL.md +2 -0
- package/.agents/skills/hyperplan/SKILL.md +3 -3
- package/.agents/skills/omomomo/SKILL.md +1 -1
- package/.agents/skills/publish/SKILL.md +27 -6
- package/.opencode/command/get-unpublished-changes.md +2 -0
- package/.opencode/command/omomomo.md +1 -1
- package/.opencode/command/publish.md +102 -28
- package/.opencode/skills/hyperplan/SKILL.md +3 -3
- package/THIRD-PARTY-NOTICES.md +7 -7
- package/dist/agents/sisyphus-junior/agent.d.ts +1 -1
- package/dist/agents/sisyphus-runtime-prompt-reconciler.d.ts +1 -1
- package/dist/cli/config-migrate.d.ts +8 -0
- package/dist/cli/doctor/checks/deprecated-reasoning-keys.d.ts +2 -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 +95684 -92814
- package/dist/cli-node/index.js +95650 -92780
- package/dist/config/schema/agent-overrides.d.ts +800 -0
- package/dist/config/schema/categories.d.ts +132 -0
- package/dist/config/schema/fallback-models.d.ts +50 -0
- package/dist/config/schema/oh-my-opencode-config.d.ts +818 -2
- 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 +10 -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 +15 -0
- package/dist/config-migration/reasoning-unification.d.ts +3 -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/features/builtin-commands/templates/hyperplan.d.ts +1 -1
- package/dist/features/team-mode/tools/lifecycle-test-fixture.d.ts +2 -0
- package/dist/hooks/auto-update-checker/constants.d.ts +3 -3
- package/dist/hooks/codegraph-bootstrap/command-runner.d.ts +1 -0
- package/dist/hooks/model-fallback/next-fallback.d.ts +1 -0
- package/dist/hooks/runtime-fallback/constants.d.ts +1 -1
- package/dist/index.js +12368 -9788
- package/dist/oh-my-opencode.schema.json +1672 -8
- 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/plugin-handlers/prometheus-agent-config-builder.d.ts +1 -0
- package/dist/shared/agent-display-names.d.ts +1 -1
- package/dist/shared/agent-variant.d.ts +11 -0
- 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/session-prompt-params-helpers.d.ts +6 -1
- package/dist/skills/coding-agent-sessions/SKILL.md +4 -3
- package/dist/skills/coding-agent-sessions/references/all-platforms.md +3 -1
- package/dist/skills/coding-agent-sessions/scripts/agent_sessions/aside_scanner.py +140 -0
- package/dist/skills/coding-agent-sessions/scripts/agent_sessions/scanners.py +3 -0
- package/dist/skills/data-scientist/SKILL.md +243 -0
- package/dist/skills/data-scientist/references/common-scenarios.md +176 -0
- package/dist/skills/data-scientist/references/execution-templates.md +197 -0
- package/dist/skills/data-scientist/references/integration-patterns.md +153 -0
- package/dist/skills/data-scientist/references/performance-benchmarks.md +37 -0
- package/dist/skills/data-scientist/references/uv-setup.md +78 -0
- package/dist/skills/data-scientist/scripts/quick-query.py +111 -0
- package/dist/skills/data-scientist/scripts/setup-uv.ps1 +53 -0
- package/dist/skills/data-scientist/scripts/setup-uv.sh +60 -0
- package/dist/skills/debugging/SKILL.md +1 -1
- 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 +1 -2
- package/dist/skills/ulw-plan/SKILL.md +1 -1
- package/dist/skills/ulw-research/SKILL.md +122 -11
- package/dist/startup-migration.d.ts +28 -0
- package/dist/testing/create-plugin-module.d.ts +4 -0
- package/dist/tools/delegate-task/builtin-categories.d.ts +1 -0
- package/dist/tools/delegate-task/builtin-category-definition.d.ts +1 -0
- package/dist/tools/delegate-task/constants.d.ts +1 -1
- package/dist/tui.js +6040 -5443
- package/package.json +13 -13
- 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 +21 -3
- 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 +10373 -2570
- package/packages/omo-codex/plugin/components/codegraph/dist/serve.js +7502 -574
- 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 +164 -159
- 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 +20 -2
- 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 -175
- package/packages/omo-codex/plugin/components/codegraph/test/hook-exclusion.test.ts +4 -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 -138
- package/packages/omo-codex/plugin/components/codegraph/test/hook.test.ts +34 -24
- 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 +5 -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 +1 -1
- package/packages/omo-codex/plugin/components/codegraph/test/serve-provision.test.ts +45 -0
- package/packages/omo-codex/plugin/components/codegraph/test/serve-unavailable.test.ts +2 -2
- 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 +58 -57
- 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 +32 -15
- 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/rules/src/post-compact-budget.ts +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/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/package.json +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/skills/ulw-plan/SKILL.md +1 -1
- 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 +17 -0
- 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/scripts/sync-skills.mjs +6 -0
- 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 +186 -9
- package/packages/omo-codex/plugin/skills/coding-agent-sessions/SKILL.md +4 -3
- package/packages/omo-codex/plugin/skills/coding-agent-sessions/references/all-platforms.md +3 -1
- package/packages/omo-codex/plugin/skills/coding-agent-sessions/scripts/agent_sessions/aside_scanner.py +140 -0
- package/packages/omo-codex/plugin/skills/coding-agent-sessions/scripts/agent_sessions/scanners.py +3 -0
- package/packages/omo-codex/plugin/skills/data-scientist/SKILL.md +243 -0
- package/packages/omo-codex/plugin/skills/data-scientist/agents/openai.yaml +2 -0
- package/packages/omo-codex/plugin/skills/data-scientist/references/common-scenarios.md +176 -0
- package/packages/omo-codex/plugin/skills/data-scientist/references/execution-templates.md +197 -0
- package/packages/omo-codex/plugin/skills/data-scientist/references/integration-patterns.md +153 -0
- package/packages/omo-codex/plugin/skills/data-scientist/references/performance-benchmarks.md +37 -0
- package/packages/omo-codex/plugin/skills/data-scientist/references/uv-setup.md +78 -0
- package/packages/omo-codex/plugin/skills/data-scientist/scripts/quick-query.py +111 -0
- package/packages/omo-codex/plugin/skills/data-scientist/scripts/setup-uv.ps1 +53 -0
- package/packages/omo-codex/plugin/skills/data-scientist/scripts/setup-uv.sh +60 -0
- package/packages/omo-codex/plugin/skills/debugging/SKILL.md +1 -1
- 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 +1 -2
- package/packages/omo-codex/plugin/skills/ulw-loop/SKILL.md +17 -0
- package/packages/omo-codex/plugin/skills/ulw-plan/SKILL.md +1 -1
- package/packages/omo-codex/plugin/skills/ulw-research/SKILL.md +121 -11
- package/packages/omo-codex/plugin/test/sync-skills-test-support.mjs +7 -0
- package/packages/omo-codex/plugin/test/sync-skills.test.mjs +12 -0
- package/packages/omo-codex/scripts/install-dist/install-local.mjs +24 -5
- package/packages/shared-skills/skills/coding-agent-sessions/SKILL.md +4 -3
- package/packages/shared-skills/skills/coding-agent-sessions/references/all-platforms.md +3 -1
- package/packages/shared-skills/skills/coding-agent-sessions/scripts/agent_sessions/aside_scanner.py +140 -0
- package/packages/shared-skills/skills/coding-agent-sessions/scripts/agent_sessions/scanners.py +3 -0
- package/packages/shared-skills/skills/data-scientist/SKILL.md +243 -0
- package/packages/shared-skills/skills/data-scientist/references/common-scenarios.md +176 -0
- package/packages/shared-skills/skills/data-scientist/references/execution-templates.md +197 -0
- package/packages/shared-skills/skills/data-scientist/references/integration-patterns.md +153 -0
- package/packages/shared-skills/skills/data-scientist/references/performance-benchmarks.md +37 -0
- package/packages/shared-skills/skills/data-scientist/references/uv-setup.md +78 -0
- package/packages/shared-skills/skills/data-scientist/scripts/quick-query.py +111 -0
- package/packages/shared-skills/skills/data-scientist/scripts/setup-uv.ps1 +53 -0
- package/packages/shared-skills/skills/data-scientist/scripts/setup-uv.sh +60 -0
- package/packages/shared-skills/skills/debugging/SKILL.md +1 -1
- 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 +1 -2
- package/packages/shared-skills/skills/ulw-plan/SKILL.md +1 -1
- package/packages/shared-skills/skills/ulw-research/SKILL.md +122 -11
- 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
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { OmoConfigEnv } from "@oh-my-opencode/omo-config-core";
|
|
1
2
|
import { type OhMyOpenCodeConfig } from "./schema";
|
|
2
3
|
export type PluginConfigValidation = {
|
|
3
4
|
readonly valid: boolean;
|
|
@@ -5,4 +6,4 @@ export type PluginConfigValidation = {
|
|
|
5
6
|
readonly path: string | null;
|
|
6
7
|
readonly config: OhMyOpenCodeConfig;
|
|
7
8
|
};
|
|
8
|
-
export declare function validatePluginConfig(directory: string): PluginConfigValidation;
|
|
9
|
+
export declare function validatePluginConfig(directory: string, environment?: OmoConfigEnv): PluginConfigValidation;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function deepDifference(base: Readonly<Record<string, unknown>>, profile: Readonly<Record<string, unknown>>): Record<string, unknown>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type ConfigMigrationDiscoveryOptions, type ConfigMigrationPathOperations } from "./types";
|
|
2
|
+
export declare const CONFIG_FILE_NAMES: readonly ["oh-my-openagent.jsonc", "oh-my-openagent.json", "oh-my-opencode.jsonc", "oh-my-opencode.json"];
|
|
3
|
+
export declare function isWindowsPathOperations(options: ConfigMigrationDiscoveryOptions): boolean;
|
|
4
|
+
export declare function discoveryFileSystem(options: ConfigMigrationDiscoveryOptions): import("./types").ConfigMigrationDiscoveryFileSystem;
|
|
5
|
+
export declare function usesWindowsPathSemantics(options: ConfigMigrationDiscoveryOptions): boolean;
|
|
6
|
+
export declare function hostPathOperations(options: ConfigMigrationDiscoveryOptions): ConfigMigrationPathOperations;
|
|
7
|
+
export declare function canonicalPath(path: string, options: ConfigMigrationDiscoveryOptions): string;
|
|
8
|
+
export declare function pathKey(path: string, options: ConfigMigrationDiscoveryOptions): string;
|
|
9
|
+
export declare function configPaths(directory: string, options: ConfigMigrationDiscoveryOptions): readonly string[];
|
|
10
|
+
export declare function profileDirectories(root: string, options: ConfigMigrationDiscoveryOptions): readonly string[];
|
|
11
|
+
export declare function projectDirectories(options: ConfigMigrationDiscoveryOptions): readonly string[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ConfigMigrationDiscoveryOptions } from "./types";
|
|
2
|
+
export type ConfigRoot = {
|
|
3
|
+
readonly activeProfile?: string;
|
|
4
|
+
readonly path: string;
|
|
5
|
+
readonly precedence: number;
|
|
6
|
+
};
|
|
7
|
+
export declare function configRoots(options: ConfigMigrationDiscoveryOptions): readonly ConfigRoot[];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type ConfigMigrationDiscoveryOptions, type LegacyConfigMigrationGroup } from "./types";
|
|
2
|
+
export declare const OPENCODE_CONFIG_MIGRATION_ID = "2026-07-opencode-config-unification";
|
|
3
|
+
export declare const CONFIG_JSONC_MIGRATION_ID = "2026-07-codex-config-jsonc";
|
|
4
|
+
export declare function discoverLegacyConfigGroups(options: ConfigMigrationDiscoveryOptions): readonly LegacyConfigMigrationGroup[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { CONFIG_JSONC_MIGRATION_ID, OPENCODE_CONFIG_MIGRATION_ID, discoverLegacyConfigGroups, } from "./discovery";
|
|
2
|
+
export { createLegacyConfigMigrationPlans, } from "./migration-plans";
|
|
3
|
+
export { executeLegacyConfigMigrationPlan } from "./migration-executor";
|
|
4
|
+
export { transformConfigJsoncSources } from "./transform-config-jsonc";
|
|
5
|
+
export { transformOpenCodeSources } from "./transform-opencode";
|
|
6
|
+
export { REASONING_UNIFICATION_MIGRATION_ID, transformReasoningUnification, } from "./reasoning-unification";
|
|
7
|
+
export type { ExecuteLegacyConfigMigrationPlanOptions } from "./migration-executor";
|
|
8
|
+
export type { CreateLegacyConfigMigrationPlansOptions, LegacyConfigMigrationPlan, } from "./migration-plans";
|
|
9
|
+
export type { ConfigMigrationTransformResult, LoadedLegacyConfigSource, OpenCodeTransformScope, TransformConfigJsoncSourcesInput, TransformOpenCodeSourcesInput, } from "./transform-types";
|
|
10
|
+
export type { ConfigMigrationDiscoveryFileSystem, ConfigMigrationDiscoveryOptions, ConfigMigrationPathOperations, DiscoveredLegacyConfigSource, LegacyConfigMigrationGroup, LegacyConfigSourceKind, } from "./types";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { DiscoveredLegacyConfigSource } from "./types";
|
|
2
|
+
import type { LoadedLegacyConfigSource } from "./transform-types";
|
|
3
|
+
export declare function legacyMigrationHistory(discovered: readonly DiscoveredLegacyConfigSource[], loaded: readonly LoadedLegacyConfigSource[]): Record<string, readonly string[]>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type MigrationRunResult, type RunMigrationOptions } from "@oh-my-opencode/omo-config-core";
|
|
2
|
+
import type { LegacyConfigMigrationPlan } from "./migration-plans";
|
|
3
|
+
export type ExecuteLegacyConfigMigrationPlanOptions = Omit<RunMigrationOptions, "id" | "sources" | "targetPath" | "transform">;
|
|
4
|
+
export declare function executeLegacyConfigMigrationPlan(plan: LegacyConfigMigrationPlan, options?: ExecuteLegacyConfigMigrationPlanOptions): MigrationRunResult;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { MigrationSourceDescriptor, MigrationTransform } from "@oh-my-opencode/omo-config-core";
|
|
2
|
+
import type { ConfigMigrationDiscoveryOptions } from "./types";
|
|
3
|
+
import type { ConfigMigrationTransformResult } from "./transform-types";
|
|
4
|
+
export type LegacyConfigMigrationPlan = {
|
|
5
|
+
readonly id: string;
|
|
6
|
+
readonly inspect: (sources: Parameters<MigrationTransform>[0]) => ConfigMigrationTransformResult;
|
|
7
|
+
readonly mode?: "merge" | "replace-target";
|
|
8
|
+
readonly sources: readonly MigrationSourceDescriptor[];
|
|
9
|
+
readonly targetPath: string;
|
|
10
|
+
readonly transform: MigrationTransform;
|
|
11
|
+
};
|
|
12
|
+
export type CreateLegacyConfigMigrationPlansOptions = ConfigMigrationDiscoveryOptions & {
|
|
13
|
+
readonly backupTimestamp?: string;
|
|
14
|
+
};
|
|
15
|
+
export declare function createLegacyConfigMigrationPlans(options: CreateLegacyConfigMigrationPlansOptions): readonly LegacyConfigMigrationPlan[];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function isPlainRecord(value: unknown): value is Record<string, unknown>;
|
|
2
|
+
export declare function copyRecord(value: Readonly<Record<string, unknown>>): Record<string, unknown>;
|
|
3
|
+
export declare function mergeRecords(base: Readonly<Record<string, unknown>>, override: Readonly<Record<string, unknown>>): Record<string, unknown>;
|
|
4
|
+
export declare function withoutLegacyMetadata(value: Readonly<Record<string, unknown>>): Record<string, unknown>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const OMO_SCHEMA_URL = "https://raw.githubusercontent.com/code-yeongyu/oh-my-openagent/dev/assets/omo.schema.json";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { DiscoveredLegacyConfigSource } from "./types";
|
|
2
|
+
export type LoadedLegacyConfigSource = {
|
|
3
|
+
readonly path: string;
|
|
4
|
+
readonly value: unknown;
|
|
5
|
+
};
|
|
6
|
+
export type ConfigMigrationTransformResult = {
|
|
7
|
+
readonly diagnostics: readonly string[];
|
|
8
|
+
readonly document: Record<string, unknown>;
|
|
9
|
+
};
|
|
10
|
+
export type OpenCodeTransformScope = {
|
|
11
|
+
readonly kind: "user";
|
|
12
|
+
} | {
|
|
13
|
+
readonly kind: "project";
|
|
14
|
+
readonly projectRoot: string;
|
|
15
|
+
};
|
|
16
|
+
export type TransformOpenCodeSourcesInput = {
|
|
17
|
+
readonly discovered: readonly DiscoveredLegacyConfigSource[];
|
|
18
|
+
readonly scope: OpenCodeTransformScope;
|
|
19
|
+
readonly sources: readonly LoadedLegacyConfigSource[];
|
|
20
|
+
};
|
|
21
|
+
export type TransformConfigJsoncSourcesInput = {
|
|
22
|
+
readonly discovered: readonly DiscoveredLegacyConfigSource[];
|
|
23
|
+
readonly sources: readonly LoadedLegacyConfigSource[];
|
|
24
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export type ConfigMigrationPathOperations = {
|
|
2
|
+
readonly basename: (path: string) => string;
|
|
3
|
+
readonly dirname: (path: string) => string;
|
|
4
|
+
readonly isAbsolute: (path: string) => boolean;
|
|
5
|
+
readonly join: (...paths: string[]) => string;
|
|
6
|
+
readonly normalize: (path: string) => string;
|
|
7
|
+
readonly relative: (from: string, to: string) => string;
|
|
8
|
+
readonly resolve: (...paths: string[]) => string;
|
|
9
|
+
};
|
|
10
|
+
export type ConfigMigrationDiscoveryFileSystem = {
|
|
11
|
+
readonly existsSync: (path: string) => boolean;
|
|
12
|
+
readonly readdirSync: (path: string) => string[];
|
|
13
|
+
readonly realpathSync: (path: string) => string;
|
|
14
|
+
};
|
|
15
|
+
export declare const DEFAULT_DISCOVERY_FILE_SYSTEM: ConfigMigrationDiscoveryFileSystem;
|
|
16
|
+
export type LegacyConfigSourceKind = "config-jsonc" | "migration-sidecar" | "profile-config" | "project-config" | "user-config";
|
|
17
|
+
export type DiscoveredLegacyConfigSource = {
|
|
18
|
+
readonly baseRoot?: string;
|
|
19
|
+
readonly configPath: string;
|
|
20
|
+
readonly isActiveProfile?: boolean;
|
|
21
|
+
readonly kind: LegacyConfigSourceKind;
|
|
22
|
+
readonly path: string;
|
|
23
|
+
readonly precedence: number;
|
|
24
|
+
readonly profile?: string;
|
|
25
|
+
readonly projectRoot?: string;
|
|
26
|
+
};
|
|
27
|
+
export type LegacyConfigMigrationGroup = {
|
|
28
|
+
readonly id: string;
|
|
29
|
+
readonly sources: readonly DiscoveredLegacyConfigSource[];
|
|
30
|
+
};
|
|
31
|
+
export type ConfigMigrationDiscoveryOptions = {
|
|
32
|
+
readonly cwd: string;
|
|
33
|
+
readonly environment?: Readonly<Record<string, string | undefined>>;
|
|
34
|
+
readonly fileSystem?: ConfigMigrationDiscoveryFileSystem;
|
|
35
|
+
readonly homeDir: string;
|
|
36
|
+
readonly pathOperations: ConfigMigrationPathOperations;
|
|
37
|
+
readonly platform?: NodeJS.Platform;
|
|
38
|
+
readonly tauriConfigDirs?: readonly string[];
|
|
39
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const HYPERPLAN_TEMPLATE = "You are running the `/hyperplan` command \u2014 adversarial multi-agent planning via team-mode.\n\nLOAD THE HYPERPLAN SKILL IMMEDIATELY:\n\n```\nskill(name=\"hyperplan\")\n```\n\nAfter loading the skill, follow its 7-phase workflow EXACTLY using this user request.\n\nRoster contract: call `team_create` with category members `unspecified-low`, `unspecified-high`, `ultrabrain`, and `artistry`. Include `deep` only if the category is enabled; if `deep` is disabled or unavailable, retry without only that member and state the degraded roster.\n\n<user-request>\n$ARGUMENTS\n</user-request>\n\nIf team-mode is unavailable (`team_*` tools missing), instruct the user to set `team_mode.enabled: true` in `~/.
|
|
1
|
+
export declare const HYPERPLAN_TEMPLATE = "You are running the `/hyperplan` command \u2014 adversarial multi-agent planning via team-mode.\n\nLOAD THE HYPERPLAN SKILL IMMEDIATELY:\n\n```\nskill(name=\"hyperplan\")\n```\n\nAfter loading the skill, follow its 7-phase workflow EXACTLY using this user request.\n\nRoster contract: call `team_create` with category members `unspecified-low`, `unspecified-high`, `ultrabrain`, and `artistry`. Include `deep` only if the category is enabled; if `deep` is disabled or unavailable, retry without only that member and state the degraded roster.\n\n<user-request>\n$ARGUMENTS\n</user-request>\n\nIf team-mode is unavailable (`team_*` tools missing), instruct the user to set `team_mode.enabled: true` in `~/.omo/omo.jsonc` and restart opencode.";
|
|
@@ -86,6 +86,7 @@ export declare const loadTeamSpecMock: import("bun:test").Mock<() => Promise<{
|
|
|
86
86
|
name: string;
|
|
87
87
|
cwd?: string | undefined;
|
|
88
88
|
worktreePath?: string | undefined;
|
|
89
|
+
task_summary?: string | undefined;
|
|
89
90
|
subscriptions?: string[] | undefined;
|
|
90
91
|
backendType: "in-process" | "tmux";
|
|
91
92
|
color?: string | undefined;
|
|
@@ -97,6 +98,7 @@ export declare const loadTeamSpecMock: import("bun:test").Mock<() => Promise<{
|
|
|
97
98
|
name: string;
|
|
98
99
|
cwd?: string | undefined;
|
|
99
100
|
worktreePath?: string | undefined;
|
|
101
|
+
task_summary?: string | undefined;
|
|
100
102
|
subscriptions?: string[] | undefined;
|
|
101
103
|
backendType: "in-process" | "tmux";
|
|
102
104
|
color?: string | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const PACKAGE_NAME
|
|
1
|
+
export declare const PACKAGE_NAME = "oh-my-openagent";
|
|
2
2
|
/**
|
|
3
3
|
* All package names the canonical plugin may be published under.
|
|
4
4
|
*
|
|
@@ -8,8 +8,8 @@ export declare const PACKAGE_NAME: string;
|
|
|
8
8
|
* because the installed name depends on which package the user added to
|
|
9
9
|
* their config. Code that *writes* continues to use {@link PACKAGE_NAME}.
|
|
10
10
|
*/
|
|
11
|
-
export declare const ACCEPTED_PACKAGE_NAMES:
|
|
12
|
-
export declare const NPM_REGISTRY_URL
|
|
11
|
+
export declare const ACCEPTED_PACKAGE_NAMES: string[];
|
|
12
|
+
export declare const NPM_REGISTRY_URL = "https://registry.npmjs.org/-/package/oh-my-openagent/dist-tags";
|
|
13
13
|
export declare const NPM_FETCH_TIMEOUT = 5000;
|
|
14
14
|
export declare const CACHE_ROOT_DIR: string;
|
|
15
15
|
export declare const CACHE_DIR: string;
|
|
@@ -12,7 +12,7 @@ export declare const DEFAULT_CONFIG: Required<RuntimeFallbackConfig>;
|
|
|
12
12
|
* Error patterns that indicate rate limiting or temporary failures
|
|
13
13
|
* These are checked in addition to HTTP status codes
|
|
14
14
|
*/
|
|
15
|
-
export declare const RETRYABLE_ERROR_PATTERNS: RegExp
|
|
15
|
+
export declare const RETRYABLE_ERROR_PATTERNS: readonly [RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp];
|
|
16
16
|
/**
|
|
17
17
|
* Hook name for identification and logging
|
|
18
18
|
*/
|