oh-my-opencode 5.0.0-beta.3 → 5.0.0-beta.30
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 +44 -16
- package/.agents/skills/publish/SKILL.md +44 -16
- package/.agents/skills/senpi-qa/SKILL.md +80 -0
- package/.agents/skills/senpi-qa/scripts/resolve-evidence-dir.mjs +65 -0
- package/.agents/skills/senpi-qa/scripts/resolve-evidence-dir.test.mjs +171 -0
- package/.agents/skills/work-with-pr/SKILL.md +37 -23
- package/.opencode/command/publish.md +44 -16
- package/.opencode/skills/work-with-pr/SKILL.md +37 -23
- package/README.ja.md +25 -21
- package/README.ko.md +25 -21
- package/README.md +38 -23
- package/README.ru.md +24 -20
- package/README.zh-cn.md +25 -21
- package/dist/agents/atlas/agent.d.ts +0 -1
- package/dist/agents/sisyphus/grok-4.d.ts +20 -0
- package/dist/agents/sisyphus/index.d.ts +2 -0
- package/dist/agents/sisyphus-agent-config.d.ts +6 -0
- package/dist/agents/sisyphus-agent-factory.d.ts +1 -1
- package/dist/agents/sisyphus-runtime-prompt-reconciler.d.ts +15 -4
- package/dist/agents/types.d.ts +2 -2
- package/dist/cli/config-manager/parse-opencode-config-file.d.ts +2 -1
- package/dist/cli/doctor/checks/system-plugin.d.ts +4 -3
- package/dist/cli/fallback-lane-policy.d.ts +1 -0
- package/dist/cli/index.js +22572 -20322
- package/dist/cli/install-codex/install-codex-test-fixtures.d.ts +1 -1
- package/dist/cli/run/on-complete-hook.d.ts +2 -0
- package/dist/cli/runtime-commands.d.ts +1 -1
- package/dist/cli/worktree-sweep/classify.d.ts +16 -0
- package/dist/cli/worktree-sweep/format.d.ts +8 -0
- package/dist/cli/worktree-sweep/git.d.ts +19 -0
- package/dist/cli/worktree-sweep/index.d.ts +7 -0
- package/dist/cli/worktree-sweep/options.d.ts +2 -0
- package/dist/cli/worktree-sweep/parse-worktree-list.d.ts +8 -0
- package/dist/cli/worktree-sweep/sweep.d.ts +2 -0
- package/dist/cli/worktree-sweep/types.d.ts +65 -0
- package/dist/cli/worktree-sweep/worktree-sweep.d.ts +2 -0
- package/dist/cli-node/index.js +22190 -19917
- package/dist/config/schema/commands.d.ts +1 -1
- package/dist/config/schema/hooks.d.ts +1 -1
- package/dist/config/schema/oh-my-opencode-config.d.ts +4 -1
- package/dist/config/schema/ulw-execute.d.ts +5 -0
- package/dist/config/validate.d.ts +2 -0
- package/dist/create-hooks.d.ts +3 -1
- package/dist/features/btw-side/btw-command-draft.d.ts +7 -0
- package/dist/features/btw-side/context-injector.d.ts +15 -0
- package/dist/features/btw-side/index.d.ts +8 -0
- package/dist/features/btw-side/metadata.d.ts +15 -0
- package/dist/features/btw-side/parent-context-budget.d.ts +9 -0
- package/dist/features/btw-side/server-session-registry.d.ts +8 -0
- package/dist/features/btw-side/tui-adoption-cache.d.ts +13 -0
- package/dist/features/btw-side/tui-adoption-guard.d.ts +5 -0
- package/dist/features/btw-side/tui-controller-types.d.ts +68 -0
- package/dist/features/btw-side/tui-controller.d.ts +19 -0
- package/dist/features/btw-side/tui-escape-return.d.ts +12 -0
- package/dist/features/btw-side/tui-keymap.d.ts +17 -0
- package/dist/features/btw-side/tui-parent-validator.d.ts +6 -0
- package/dist/features/btw-side/tui-picker-options.d.ts +20 -0
- package/dist/features/btw-side/tui-picker.d.ts +9 -0
- package/dist/features/btw-side/tui-prompt-queue.d.ts +8 -0
- package/dist/features/btw-side/tui-session-bridge.d.ts +11 -0
- package/dist/features/btw-side/tui-session-catalog.d.ts +35 -0
- package/dist/features/btw-side/tui-side-removal.d.ts +11 -0
- package/dist/features/btw-side/tui-side-start.d.ts +9 -0
- package/dist/features/btw-side/tui-wiring.d.ts +8 -0
- package/dist/features/builtin-commands/templates/ulw-execute.d.ts +1 -0
- package/dist/features/builtin-commands/types.d.ts +1 -1
- package/dist/features/opengateway-provider/index.d.ts +13 -0
- package/dist/features/team-mode/tools/messaging-fallback-wake.d.ts +15 -0
- package/dist/hooks/atlas/atlas-hook.d.ts +1 -0
- package/dist/hooks/atlas/atlas-lifecycle-store.d.ts +50 -0
- package/dist/hooks/atlas/event-handler.d.ts +1 -0
- package/dist/hooks/atlas/final-wave-approval-gate.test-support.d.ts +50 -0
- package/dist/hooks/atlas/system-reminder-templates.d.ts +0 -1
- package/dist/hooks/atlas/tool-execute-before.d.ts +3 -0
- package/dist/hooks/atlas/types.d.ts +1 -0
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/prometheus-md-only/agent-resolution.d.ts +2 -2
- package/dist/hooks/runtime-fallback/chat-message-handler.d.ts +2 -0
- package/dist/hooks/runtime-fallback/retry-model-payload.d.ts +1 -0
- package/dist/hooks/runtime-fallback/runtime-model-settings.d.ts +6 -0
- package/dist/hooks/runtime-fallback/session-status-handler.d.ts +1 -1
- package/dist/hooks/runtime-fallback/types.d.ts +3 -1
- package/dist/hooks/sisyphus-junior-notepad/constants.d.ts +1 -1
- package/dist/hooks/todo-continuation-enforcer/types.d.ts +1 -0
- package/dist/hooks/{start-work → ulw-execute}/context-info-builder.d.ts +1 -1
- package/dist/hooks/{start-work → ulw-execute}/index.d.ts +1 -1
- package/dist/hooks/ulw-execute/ulw-execute-hook.d.ts +23 -0
- package/dist/index.js +12573 -6957
- package/dist/oh-my-opencode.schema.json +15 -2
- package/dist/plugin/chat-message/types.d.ts +3 -3
- package/dist/plugin/chat-message/ulw-execute-message.d.ts +5 -0
- package/dist/plugin/event-session-lifecycle.d.ts +1 -0
- package/dist/plugin/hooks/create-core-hooks.d.ts +2 -1
- package/dist/plugin/hooks/create-session-hooks.d.ts +2 -2
- package/dist/plugin/hooks/create-transform-hooks.d.ts +2 -0
- package/dist/plugin/messages-transform.d.ts +1 -0
- package/dist/shared/index.d.ts +2 -0
- package/dist/shared/legacy-plugin-warning.d.ts +2 -1
- package/dist/shared/normalize-sdk-response.d.ts +1 -0
- package/dist/shared/plugin-entry-migrator.d.ts +4 -3
- package/dist/shared/plugin-entry-shape.d.ts +6 -0
- package/dist/shared/runtime-fallback-retry-marker.d.ts +16 -0
- package/dist/shared/shell-env.d.ts +1 -1
- package/dist/skills/ast-grep/AGENTS.md +51 -0
- package/dist/skills/coding-agent-sessions/AGENTS.md +62 -0
- package/dist/skills/coding-agent-sessions/SKILL.md +3 -2
- package/dist/skills/coding-agent-sessions/references/all-platforms.md +1 -1
- package/dist/skills/coding-agent-sessions/references/senpi.md +4 -4
- package/dist/skills/coding-agent-sessions/scripts/agent_sessions/pi_family.py +1 -1
- package/dist/skills/data-scientist/SKILL.md +99 -239
- package/dist/skills/data-scientist/references/execution-surfaces.md +91 -0
- package/dist/skills/data-scientist/references/placement.md +74 -0
- package/dist/skills/data-scientist/references/polars-lane.md +95 -0
- package/dist/skills/data-scientist/references/uv-setup.md +1 -1
- package/dist/skills/data-scientist/references/visualization.md +64 -0
- package/dist/skills/data-scientist/scripts/ensure-js-deps.sh +28 -0
- package/dist/skills/data-scientist/scripts/ensure-py-deps.sh +37 -0
- package/dist/skills/debugging/SKILL.md +2 -0
- package/dist/skills/debugging/references/methodology/00-setup.md +12 -0
- package/dist/skills/debugging/references/methodology/02-investigate.md +21 -0
- package/dist/skills/debugging/references/runtimes/go.md +15 -1
- package/dist/skills/debugging/references/runtimes/native-binary.md +38 -0
- package/dist/skills/debugging/references/runtimes/node.md +25 -0
- package/dist/skills/debugging/references/runtimes/python.md +13 -0
- package/dist/skills/debugging/references/runtimes/rust.md +41 -0
- package/dist/skills/debugging/references/scripts/dap.mjs +267 -0
- package/dist/skills/debugging/references/scripts/dap.test.ts +86 -0
- package/dist/skills/debugging/references/scripts/fixture-adapter.mjs +59 -0
- package/dist/skills/debugging/references/tools/dap.md +103 -0
- package/dist/skills/debugging/references/tools/frida.md +193 -0
- package/dist/skills/frontend/SKILL.md +11 -7
- package/dist/skills/frontend/references/design/_INDEX.md +1 -0
- package/dist/skills/frontend/references/design/print-paged-media.md +76 -0
- package/dist/skills/frontend/references/design/stylegallery.md +80 -0
- package/dist/skills/frontend/references/designpowers/README.md +1 -1
- package/dist/skills/frontend/references/designpowers/lane-a-direction.md +1 -1
- package/dist/skills/frontend/references/designpowers/lane-b-execution.md +11 -11
- package/dist/skills/frontend/references/designpowers/lane-d-memory.md +3 -3
- package/dist/skills/frontend/references/designpowers/orchestration.md +1 -1
- package/dist/skills/frontend/references/designpowers/routing.md +5 -5
- package/dist/skills/review-work/SKILL.md +3 -3
- package/dist/skills/ultimate-browsing/ATTRIBUTION.md +37 -10
- package/dist/skills/ultimate-browsing/SKILL.md +2 -0
- package/dist/skills/ultimate-browsing/engine/AGENTS.md +179 -0
- package/dist/skills/ultimate-browsing/engine/templates/package.json +1 -1
- package/dist/skills/ultimate-browsing/references/chrome-stealth.md +13 -11
- package/dist/skills/{start-work → ulw-execute}/SKILL.md +9 -8
- package/dist/skills/ulw-plan/SKILL.md +6 -6
- package/dist/skills/ulw-plan/references/full-workflow.md +31 -7
- package/dist/skills/ulw-plan/references/intent-clear.md +2 -1
- package/dist/skills/ulw-plan/references/intent-unclear.md +5 -5
- package/dist/skills/ulw-research/SKILL.md +4 -2
- package/dist/skills/visual-qa/AGENTS.md +58 -0
- package/dist/skills/visual-qa/SKILL.md +3 -2
- 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/tool-description.d.ts +3 -1
- package/dist/tools/delegate-task/types.d.ts +3 -0
- package/dist/tui.d.ts +12 -0
- package/dist/tui.js +11480 -11512
- package/package.json +42 -36
- package/packages/git-bash-mcp/dist/cli.js +5 -1
- package/packages/git-bash-mcp/package.json +1 -1
- package/packages/lsp-core/src/index.ts +1 -0
- package/packages/lsp-core/src/lsp/client-diagnostics-concurrency.integration.test.ts +44 -0
- package/packages/lsp-core/src/lsp/client-diagnostics-freshness.integration.test.ts +0 -28
- package/packages/lsp-core/src/lsp/client-wrapper-outside-cwd.test.ts +78 -0
- package/packages/lsp-core/src/lsp/client-wrapper.test.ts +66 -13
- package/packages/lsp-core/src/lsp/client-wrapper.ts +95 -23
- package/packages/lsp-core/src/lsp/client.ts +26 -0
- package/packages/lsp-core/src/lsp/connection.ts +16 -0
- package/packages/lsp-core/src/lsp/constants.ts +1 -0
- package/packages/lsp-core/src/lsp/format-document.test.ts +143 -0
- package/packages/lsp-core/src/lsp/format-document.ts +90 -0
- package/packages/lsp-core/src/lsp/manager-max-clients.test.ts +151 -0
- package/packages/lsp-core/src/lsp/manager.ts +34 -1
- package/packages/lsp-core/src/lsp/outside-context-workspace.ts +33 -0
- package/packages/lsp-core/src/lsp/server-definitions.ts +29 -0
- package/packages/lsp-core/src/lsp/server-installation.test.ts +376 -0
- package/packages/lsp-core/src/lsp/server-installation.ts +200 -27
- package/packages/lsp-core/src/lsp/server-resolution-local-binary.test.ts +170 -0
- package/packages/lsp-core/src/lsp/server-resolution.ts +18 -5
- package/packages/lsp-core/src/lsp/transport.ts +9 -0
- package/packages/lsp-core/src/lsp/types.ts +8 -0
- package/packages/lsp-core/src/lsp/workspace-edit-adversarial.test.ts +20 -1
- package/packages/lsp-core/src/lsp/workspace-markers.ts +1 -0
- package/packages/lsp-core/src/request-context.test.ts +29 -0
- package/packages/lsp-core/src/request-context.ts +1 -1
- package/packages/lsp-core/src/tool-surface.test.ts +13 -1
- package/packages/lsp-core/src/tools/definitions.ts +14 -0
- package/packages/lsp-core/src/tools/diagnostics.ts +3 -3
- package/packages/lsp-core/src/tools/format.test.ts +56 -0
- package/packages/lsp-core/src/tools/format.ts +56 -0
- package/packages/lsp-core/src/tools/index.ts +1 -0
- package/packages/lsp-core/src/tools/navigation.ts +4 -2
- package/packages/lsp-core/src/tools/rename.ts +4 -2
- package/packages/lsp-core/src/tools/symbols.ts +1 -1
- package/packages/lsp-core/src/tools/types.ts +10 -0
- package/packages/lsp-daemon/dist/cli.js +645 -296
- package/packages/lsp-daemon/dist/client.d.ts +10 -0
- package/packages/lsp-daemon/dist/client.js +605 -253
- package/packages/lsp-daemon/dist/daemon-client.d.ts +1 -0
- package/packages/lsp-daemon/dist/daemon-client.js +3 -0
- package/packages/lsp-daemon/dist/ensure-daemon.js +1 -0
- package/packages/lsp-daemon/dist/index.js +609 -262
- package/packages/lsp-daemon/dist/version-reap.js +1 -1
- package/packages/lsp-daemon/package.json +1 -1
- package/packages/lsp-tools-mcp/dist/cli.js +564 -217
- package/packages/lsp-tools-mcp/dist/lsp/manager.js +115 -92
- package/packages/lsp-tools-mcp/dist/mcp.js +566 -219
- package/packages/lsp-tools-mcp/dist/request-context.js +12 -13
- package/packages/lsp-tools-mcp/dist/tools.js +571 -227
- package/packages/omo-codex/THIRD-PARTY-NOTICES.md +4 -4
- package/packages/omo-codex/plugin/.codex-plugin/plugin.json +4 -4
- package/packages/omo-codex/plugin/AGENTS.md +47 -0
- package/packages/omo-codex/plugin/README.md +1 -1
- package/packages/omo-codex/plugin/components/bootstrap/dist/cli.js +34 -33
- 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/bootstrap/src/hook.ts +1 -0
- package/packages/omo-codex/plugin/components/codegraph/dist/cli.js +293 -116
- package/packages/omo-codex/plugin/components/codegraph/dist/serve.js +245 -84
- package/packages/omo-codex/plugin/components/codegraph/package.json +4 -4
- package/packages/omo-codex/plugin/components/codegraph/src/mcp-bridge.ts +1 -0
- package/packages/omo-codex/plugin/components/codegraph/src/session-start-hook-runtime.ts +1 -0
- package/packages/omo-codex/plugin/components/comment-checker/AGENTS.md +9 -0
- package/packages/omo-codex/plugin/components/comment-checker/biome.json +2 -2
- package/packages/omo-codex/plugin/components/comment-checker/dist/cli.js +2 -1
- package/packages/omo-codex/plugin/components/comment-checker/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/comment-checker/package.json +5 -5
- package/packages/omo-codex/plugin/components/comment-checker/src/apply-patch.ts +2 -8
- package/packages/omo-codex/plugin/components/comment-checker/src/core.ts +1 -2
- package/packages/omo-codex/plugin/components/comment-checker/src/request-extractor.ts +1 -1
- package/packages/omo-codex/plugin/components/comment-checker/src/runner.ts +1 -0
- package/packages/omo-codex/plugin/components/git-bash/AGENTS.md +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 +3 -4
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/biome.json +2 -2
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/dist/cli.js +1 -5
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/dist/codex-hook.js +1 -5
- 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 +5 -5
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/src/codex-hook.ts +1 -5
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/test/codex-hook.test.ts +4 -21
- package/packages/omo-codex/plugin/components/lsp/AGENTS.md +30 -15
- package/packages/omo-codex/plugin/components/lsp/biome.json +2 -2
- package/packages/omo-codex/plugin/components/lsp/dist/.omo-runtime-manifest.json +4 -4
- package/packages/omo-codex/plugin/components/lsp/dist/cli.js +596 -267
- package/packages/omo-codex/plugin/components/lsp/dist/daemon-cli-path.js +1 -1
- package/packages/omo-codex/plugin/components/lsp/hooks/hooks.json +2 -2
- package/packages/omo-codex/plugin/components/lsp/package.json +5 -5
- package/packages/omo-codex/plugin/components/lsp/src/cli.ts +1 -1
- package/packages/omo-codex/plugin/components/lsp/src/codex-hook.ts +1 -1
- package/packages/omo-codex/plugin/components/lsp/src/daemon-cli-path.ts +1 -5
- package/packages/omo-codex/plugin/components/lsp/test/codex-hook-unavailable.test.ts +6 -7
- package/packages/omo-codex/plugin/components/lsp/test/codex-hook.test.ts +1 -2
- package/packages/omo-codex/plugin/components/lsp/test/package-smoke.test.ts +11 -1
- package/packages/omo-codex/plugin/components/rules/AGENTS.md +12 -0
- package/packages/omo-codex/plugin/components/rules/biome.json +2 -2
- package/packages/omo-codex/plugin/components/rules/dist/cli.js +60 -45
- package/packages/omo-codex/plugin/components/rules/hooks/hooks.json +4 -4
- package/packages/omo-codex/plugin/components/rules/package.json +7 -7
- package/packages/omo-codex/plugin/components/rules/src/config.ts +1 -2
- package/packages/omo-codex/plugin/components/rules/src/persistent-cache.ts +1 -2
- package/packages/omo-codex/plugin/components/rules/src/post-compact-budget.ts +9 -5
- package/packages/omo-codex/plugin/components/rules/src/rules-engine-factory.ts +1 -4
- package/packages/omo-codex/plugin/components/rules/src/static-injection.ts +4 -9
- package/packages/omo-codex/plugin/components/rules/test/bundled-rules-priority.test.ts +11 -16
- package/packages/omo-codex/plugin/components/rules/test/bundled-rules.test.ts +17 -25
- package/packages/omo-codex/plugin/components/rules/test/codex-hook-post-compact-budget.test.ts +9 -7
- package/packages/omo-codex/plugin/components/rules/test/codex-hook-post-compact-context.test.ts +0 -6
- package/packages/omo-codex/plugin/components/rules/test/codex-hook-post-compact-dedup.test.ts +6 -4
- package/packages/omo-codex/plugin/components/rules/test/codex-hook-post-compact-directive.test.ts +12 -9
- package/packages/omo-codex/plugin/components/rules/test/codex-hook.test.ts +28 -37
- package/packages/omo-codex/plugin/components/rules/test/dynamic-target-fingerprints.test.ts +1 -2
- package/packages/omo-codex/plugin/components/rules/test/engine.test.ts +7 -4
- package/packages/omo-codex/plugin/components/rules/test/finder.test.ts +2 -3
- package/packages/omo-codex/plugin/components/rules/test/formatter.test.ts +39 -72
- package/packages/omo-codex/plugin/components/rules/test/hephaestus-model-variant.test.ts +1 -2
- package/packages/omo-codex/plugin/components/rules/test/hook-output.test.ts +2 -3
- package/packages/omo-codex/plugin/components/rules/test/matcher.test.ts +2 -3
- package/packages/omo-codex/plugin/components/rules/test/package-smoke.test.ts +1 -1
- package/packages/omo-codex/plugin/components/rules/test/parser.test.ts +1 -2
- package/packages/omo-codex/plugin/components/rules/test/post-compact-budget.test.ts +5 -6
- package/packages/omo-codex/plugin/components/rules/test/rules-engine-consumption.test.ts +3 -6
- package/packages/omo-codex/plugin/components/rules/test/scanner.test.ts +1 -2
- package/packages/omo-codex/plugin/components/rules/test/sources.test.ts +2 -5
- package/packages/omo-codex/plugin/components/rules/test/windows-git-bash-bundled-rule.test.ts +2 -17
- package/packages/omo-codex/plugin/components/teammode/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/teammode/package.json +5 -5
- package/packages/omo-codex/plugin/components/teammode/test/thread-title-hook.test.ts +3 -9
- package/packages/omo-codex/plugin/components/telemetry/AGENTS.md +8 -0
- package/packages/omo-codex/plugin/components/telemetry/biome.json +2 -2
- package/packages/omo-codex/plugin/components/telemetry/dist/cli.js +2463 -437
- package/packages/omo-codex/plugin/components/telemetry/dist/posthog.js +2467 -441
- package/packages/omo-codex/plugin/components/telemetry/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/telemetry/package.json +5 -5
- package/packages/omo-codex/plugin/components/telemetry/src/codex-hook.ts +1 -4
- package/packages/omo-codex/plugin/components/telemetry/src/posthog.ts +4 -14
- package/packages/omo-codex/plugin/components/telemetry/src/product-identity.ts +1 -1
- package/packages/omo-codex/plugin/components/telemetry/test/diagnostics.test.ts +2 -5
- package/packages/omo-codex/plugin/components/ultrawork/AGENTS.md +5 -0
- package/packages/omo-codex/plugin/components/ultrawork/biome.json +2 -2
- package/packages/omo-codex/plugin/components/ultrawork/directive.md +13 -1
- package/packages/omo-codex/plugin/components/ultrawork/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/package.json +5 -5
- package/packages/omo-codex/plugin/components/ultrawork/skills/ultrawork/SKILL.md +13 -1
- package/packages/omo-codex/plugin/components/ultrawork/skills/ulw-plan/SKILL.md +6 -6
- package/packages/omo-codex/plugin/components/ultrawork/skills/ulw-plan/references/full-workflow.md +31 -7
- package/packages/omo-codex/plugin/components/ultrawork/skills/ulw-plan/references/intent-clear.md +2 -1
- package/packages/omo-codex/plugin/components/ultrawork/skills/ulw-plan/references/intent-unclear.md +5 -5
- package/packages/omo-codex/plugin/components/ultrawork/test/codex-hook-trigger-policy.test.ts +9 -1
- package/packages/omo-codex/plugin/components/ultrawork/test/codex-hook.test.ts +0 -136
- package/packages/omo-codex/plugin/components/ultrawork/test/skill-pointer.test.ts +0 -2
- package/packages/omo-codex/plugin/components/{start-work-continuation → ulw-execute-continuation}/AGENTS.md +5 -4
- package/packages/omo-codex/plugin/components/{start-work-continuation → ulw-execute-continuation}/NOTICE +1 -1
- package/packages/omo-codex/plugin/components/{start-work-continuation → ulw-execute-continuation}/README.md +5 -5
- package/packages/omo-codex/plugin/components/{start-work-continuation → ulw-execute-continuation}/biome.json +2 -2
- package/packages/omo-codex/plugin/components/{start-work-continuation → ulw-execute-continuation}/directive.md +6 -6
- package/packages/omo-codex/plugin/components/{start-work-continuation → ulw-execute-continuation}/dist/cli.js +12 -12
- package/packages/omo-codex/plugin/components/ulw-execute-continuation/hooks/hooks.json +28 -0
- package/packages/omo-codex/plugin/components/{start-work-continuation → ulw-execute-continuation}/package.json +12 -12
- package/packages/omo-codex/plugin/components/{start-work-continuation → ulw-execute-continuation}/src/boulder-reader.ts +1 -1
- package/packages/omo-codex/plugin/components/{start-work-continuation → ulw-execute-continuation}/src/cli.ts +1 -1
- package/packages/omo-codex/plugin/components/{start-work-continuation → ulw-execute-continuation}/src/codex-hook.ts +3 -3
- package/packages/omo-codex/plugin/components/{start-work-continuation → ulw-execute-continuation}/src/directive.ts +1 -1
- package/packages/omo-codex/plugin/components/{start-work-continuation → ulw-execute-continuation}/src/index.ts +1 -1
- package/packages/omo-codex/plugin/components/{start-work-continuation → ulw-execute-continuation}/test/boulder-reader.test.ts +3 -3
- package/packages/omo-codex/plugin/components/{start-work-continuation → ulw-execute-continuation}/test/cli.test.ts +1 -4
- package/packages/omo-codex/plugin/components/{start-work-continuation → ulw-execute-continuation}/test/codex-hook.test.ts +8 -22
- package/packages/omo-codex/plugin/components/ulw-loop/AGENTS.md +16 -0
- package/packages/omo-codex/plugin/components/ulw-loop/CHANGELOG.md +1 -1
- package/packages/omo-codex/plugin/components/ulw-loop/biome.json +2 -2
- package/packages/omo-codex/plugin/components/ulw-loop/directive.md +13 -1
- package/packages/omo-codex/plugin/components/ulw-loop/dist/cli-commands.js +5 -1
- package/packages/omo-codex/plugin/components/ulw-loop/dist/cli-output.d.ts +2 -1
- package/packages/omo-codex/plugin/components/ulw-loop/dist/cli-output.js +11 -1
- package/packages/omo-codex/plugin/components/ulw-loop/dist/cli.js +24 -14
- package/packages/omo-codex/plugin/components/ulw-loop/dist/codex-goal-snapshot.js +1 -1
- package/packages/omo-codex/plugin/components/ulw-loop/dist/paths.js +1 -1
- package/packages/omo-codex/plugin/components/ulw-loop/dist/stop-resume-hook.js +3 -3
- package/packages/omo-codex/plugin/components/ulw-loop/hooks/hooks.json +4 -4
- package/packages/omo-codex/plugin/components/ulw-loop/package.json +5 -5
- package/packages/omo-codex/plugin/components/ulw-loop/skills/ulw-loop/SKILL.md +3 -2
- package/packages/omo-codex/plugin/components/ulw-loop/skills/ulw-loop/references/define-goal.md +108 -0
- package/packages/omo-codex/plugin/components/ulw-loop/skills/ulw-loop/references/full-workflow.md +1 -0
- package/packages/omo-codex/plugin/components/ulw-loop/src/cli-commands.ts +5 -1
- package/packages/omo-codex/plugin/components/ulw-loop/src/cli-output.ts +13 -1
- package/packages/omo-codex/plugin/components/ulw-loop/src/cli.ts +3 -5
- package/packages/omo-codex/plugin/components/ulw-loop/src/codex-goal-snapshot.ts +3 -1
- package/packages/omo-codex/plugin/components/ulw-loop/src/codex-hook.ts +3 -1
- package/packages/omo-codex/plugin/components/ulw-loop/src/paths.ts +1 -1
- package/packages/omo-codex/plugin/components/ulw-loop/src/stop-resume-hook.ts +3 -3
- package/packages/omo-codex/plugin/components/ulw-loop/test/checkpoint-continuation.test.ts +0 -1
- package/packages/omo-codex/plugin/components/ulw-loop/test/cli-create-goals.test.ts +25 -0
- package/packages/omo-codex/plugin/components/ulw-loop/test/cli-entrypoint.test.ts +26 -2
- package/packages/omo-codex/plugin/components/ulw-loop/test/codex-goal-instruction.test.ts +2 -2
- package/packages/omo-codex/plugin/components/ulw-loop/test/codex-goal-snapshot.test.ts +18 -0
- package/packages/omo-codex/plugin/components/ulw-loop/test/codex-hook.test.ts +0 -3
- package/packages/omo-codex/plugin/components/ulw-loop/test/package-smoke.test.ts +5 -37
- package/packages/omo-codex/plugin/components/ulw-loop/test/paths.test.ts +9 -0
- package/packages/omo-codex/plugin/components/ulw-loop/test/steering.test.ts +8 -5
- package/packages/omo-codex/plugin/components/ulw-loop/test/stop-resume-hook.test.ts +1 -1
- package/packages/omo-codex/plugin/components/ulw-loop/test/ultrawork-directive.test.ts +4 -5
- package/packages/omo-codex/plugin/components/ulw-loop/vitest.config.ts +1 -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-ulw-execute-continuation.json +17 -0
- package/packages/omo-codex/plugin/hooks/stop-checking-ulw-loop-resume.json +1 -1
- package/packages/omo-codex/plugin/hooks/subagent-stop-checking-ulw-execute-continuation.json +17 -0
- 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/model-catalog.json +3 -3
- package/packages/omo-codex/plugin/package-lock.json +681 -395
- package/packages/omo-codex/plugin/package.json +2 -2
- package/packages/omo-codex/plugin/scripts/AGENTS.md +40 -0
- package/packages/omo-codex/plugin/scripts/auto-update-plan.mjs +1 -1
- package/packages/omo-codex/plugin/scripts/migrate-codex-config/catalog.mjs +3 -3
- package/packages/omo-codex/plugin/scripts/sync-skills.mjs +11 -11
- package/packages/omo-codex/plugin/shared/package.json +3 -4
- package/packages/omo-codex/plugin/skills/ast-grep/AGENTS.md +51 -0
- package/packages/omo-codex/plugin/skills/coding-agent-sessions/AGENTS.md +62 -0
- package/packages/omo-codex/plugin/skills/coding-agent-sessions/SKILL.md +3 -2
- package/packages/omo-codex/plugin/skills/coding-agent-sessions/references/all-platforms.md +1 -1
- package/packages/omo-codex/plugin/skills/coding-agent-sessions/references/senpi.md +4 -4
- package/packages/omo-codex/plugin/skills/coding-agent-sessions/scripts/agent_sessions/pi_family.py +1 -1
- package/packages/omo-codex/plugin/skills/data-scientist/SKILL.md +99 -239
- package/packages/omo-codex/plugin/skills/data-scientist/references/execution-surfaces.md +91 -0
- package/packages/omo-codex/plugin/skills/data-scientist/references/placement.md +74 -0
- package/packages/omo-codex/plugin/skills/data-scientist/references/polars-lane.md +95 -0
- package/packages/omo-codex/plugin/skills/data-scientist/references/uv-setup.md +1 -1
- package/packages/omo-codex/plugin/skills/data-scientist/references/visualization.md +64 -0
- package/packages/omo-codex/plugin/skills/data-scientist/scripts/ensure-js-deps.sh +28 -0
- package/packages/omo-codex/plugin/skills/data-scientist/scripts/ensure-py-deps.sh +37 -0
- package/packages/omo-codex/plugin/skills/debugging/SKILL.md +2 -0
- package/packages/omo-codex/plugin/skills/debugging/references/methodology/00-setup.md +12 -0
- package/packages/omo-codex/plugin/skills/debugging/references/methodology/02-investigate.md +21 -0
- package/packages/omo-codex/plugin/skills/debugging/references/runtimes/go.md +15 -1
- package/packages/omo-codex/plugin/skills/debugging/references/runtimes/native-binary.md +38 -0
- package/packages/omo-codex/plugin/skills/debugging/references/runtimes/node.md +25 -0
- package/packages/omo-codex/plugin/skills/debugging/references/runtimes/python.md +13 -0
- package/packages/omo-codex/plugin/skills/debugging/references/runtimes/rust.md +41 -0
- package/packages/omo-codex/plugin/skills/debugging/references/scripts/dap.mjs +267 -0
- package/packages/omo-codex/plugin/skills/debugging/references/scripts/fixture-adapter.mjs +59 -0
- package/packages/omo-codex/plugin/skills/debugging/references/tools/dap.md +103 -0
- package/packages/omo-codex/plugin/skills/debugging/references/tools/frida.md +193 -0
- package/packages/omo-codex/plugin/skills/frontend/SKILL.md +11 -7
- package/packages/omo-codex/plugin/skills/frontend/references/design/_INDEX.md +1 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/print-paged-media.md +76 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/stylegallery.md +80 -0
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/README.md +1 -1
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/lane-a-direction.md +1 -1
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/lane-b-execution.md +11 -11
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/lane-d-memory.md +3 -3
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/orchestration.md +1 -1
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/routing.md +5 -5
- package/packages/omo-codex/plugin/skills/review-work/SKILL.md +4 -4
- package/packages/omo-codex/plugin/skills/ultimate-browsing/ATTRIBUTION.md +37 -10
- package/packages/omo-codex/plugin/skills/ultimate-browsing/SKILL.md +2 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/engine/AGENTS.md +179 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/engine/templates/package.json +1 -1
- package/packages/omo-codex/plugin/skills/ultimate-browsing/references/chrome-stealth.md +13 -11
- package/packages/omo-codex/plugin/skills/ultrawork/SKILL.md +13 -1
- package/packages/omo-codex/plugin/skills/{start-work → ulw-execute}/SKILL.md +12 -11
- package/packages/omo-codex/plugin/skills/ulw-execute/agents/openai.yaml +2 -0
- package/packages/omo-codex/plugin/skills/ulw-loop/SKILL.md +3 -2
- package/packages/omo-codex/plugin/skills/ulw-loop/references/define-goal.md +108 -0
- package/packages/omo-codex/plugin/skills/ulw-loop/references/full-workflow.md +1 -0
- package/packages/omo-codex/plugin/skills/ulw-plan/SKILL.md +6 -6
- package/packages/omo-codex/plugin/skills/ulw-plan/references/full-workflow.md +31 -7
- package/packages/omo-codex/plugin/skills/ulw-plan/references/intent-clear.md +2 -1
- package/packages/omo-codex/plugin/skills/ulw-plan/references/intent-unclear.md +5 -5
- package/packages/omo-codex/plugin/skills/ulw-research/SKILL.md +4 -2
- package/packages/omo-codex/plugin/skills/visual-qa/AGENTS.md +58 -0
- package/packages/omo-codex/plugin/skills/visual-qa/SKILL.md +3 -2
- package/packages/omo-codex/plugin/test/AGENTS.md +47 -0
- package/packages/omo-codex/plugin/test/aggregate-agents.test.mjs +19 -173
- package/packages/omo-codex/plugin/test/aggregate-hooks.test.mjs +8 -28
- package/packages/omo-codex/plugin/test/aggregate-manifest.test.mjs +1 -1
- package/packages/omo-codex/plugin/test/aggregate-model-catalog.test.mjs +1 -1
- package/packages/omo-codex/plugin/test/aggregate-plugin-fixture.mjs +175 -13
- package/packages/omo-codex/plugin/test/aggregate.test.mjs +78 -2
- package/packages/omo-codex/plugin/test/auto-update-release-notes.test.mjs +19 -33
- package/packages/omo-codex/plugin/test/auto-update.test.mjs +2 -2
- package/packages/omo-codex/plugin/test/component-bin-names.test.mjs +2 -2
- package/packages/omo-codex/plugin/test/component-bundled-cli.test.mjs +1 -1
- package/packages/omo-codex/plugin/test/component-hook-contract-cases.mjs +2 -2
- package/packages/omo-codex/plugin/test/hook-status-message.test.mjs +4 -4
- package/packages/omo-codex/plugin/test/lcx-contribute-bug-fix-template.test.mjs +21 -27
- package/packages/omo-codex/plugin/test/migrate-codex-config.test.mjs +8 -8
- package/packages/omo-codex/plugin/test/scaffold-plan.test.mjs +0 -36
- package/packages/omo-codex/plugin/test/sync-skills-codex-compatibility.test.mjs +101 -0
- package/packages/omo-codex/plugin/test/sync-skills-test-support.mjs +12 -12
- package/packages/omo-codex/plugin/test/sync-skills.test.mjs +1 -119
- package/packages/omo-codex/plugin/test/teammode-archive-ambiguity.test.mjs +0 -40
- package/packages/omo-codex/plugin/test/teammode-communication.test.mjs +6 -62
- package/packages/omo-codex/plugin/test/teammode-thread-links.test.mjs +3 -36
- package/packages/omo-codex/plugin/test/teammode-transport.test.mjs +0 -44
- package/packages/omo-codex/plugin/test/teammode-worktree.test.mjs +2 -6
- package/packages/omo-codex/plugin/test/ultrawork-skill-pointer.test.mjs +0 -3
- package/packages/omo-codex/plugin/test/ulw-plan-review-state-contract.test.mjs +0 -3
- package/packages/omo-codex/scripts/AGENTS.md +36 -0
- package/packages/omo-codex/scripts/install-config-reasoning.test.mjs +2 -2
- package/packages/omo-codex/scripts/install-dist/install-local.mjs +2637 -549
- package/packages/omo-codex/scripts/install-lazycodex-version-stamp.test.mjs +7 -2
- package/packages/shared-skills/skills/ast-grep/AGENTS.md +51 -0
- package/packages/shared-skills/skills/coding-agent-sessions/AGENTS.md +62 -0
- package/packages/shared-skills/skills/coding-agent-sessions/SKILL.md +3 -2
- package/packages/shared-skills/skills/coding-agent-sessions/references/all-platforms.md +1 -1
- package/packages/shared-skills/skills/coding-agent-sessions/references/senpi.md +4 -4
- package/packages/shared-skills/skills/coding-agent-sessions/scripts/agent_sessions/pi_family.py +1 -1
- package/packages/shared-skills/skills/data-scientist/SKILL.md +99 -239
- package/packages/shared-skills/skills/data-scientist/references/execution-surfaces.md +91 -0
- package/packages/shared-skills/skills/data-scientist/references/placement.md +74 -0
- package/packages/shared-skills/skills/data-scientist/references/polars-lane.md +95 -0
- package/packages/shared-skills/skills/data-scientist/references/uv-setup.md +1 -1
- package/packages/shared-skills/skills/data-scientist/references/visualization.md +64 -0
- package/packages/shared-skills/skills/data-scientist/scripts/ensure-js-deps.sh +28 -0
- package/packages/shared-skills/skills/data-scientist/scripts/ensure-py-deps.sh +37 -0
- package/packages/shared-skills/skills/debugging/SKILL.md +2 -0
- package/packages/shared-skills/skills/debugging/references/methodology/00-setup.md +12 -0
- package/packages/shared-skills/skills/debugging/references/methodology/02-investigate.md +21 -0
- package/packages/shared-skills/skills/debugging/references/runtimes/go.md +15 -1
- package/packages/shared-skills/skills/debugging/references/runtimes/native-binary.md +38 -0
- package/packages/shared-skills/skills/debugging/references/runtimes/node.md +25 -0
- package/packages/shared-skills/skills/debugging/references/runtimes/python.md +13 -0
- package/packages/shared-skills/skills/debugging/references/runtimes/rust.md +41 -0
- package/packages/shared-skills/skills/debugging/references/scripts/dap.mjs +267 -0
- package/packages/shared-skills/skills/debugging/references/scripts/dap.test.ts +86 -0
- package/packages/shared-skills/skills/debugging/references/scripts/fixture-adapter.mjs +59 -0
- package/packages/shared-skills/skills/debugging/references/tools/dap.md +103 -0
- package/packages/shared-skills/skills/debugging/references/tools/frida.md +193 -0
- package/packages/shared-skills/skills/frontend/SKILL.md +11 -7
- package/packages/shared-skills/skills/frontend/references/design/_INDEX.md +1 -0
- package/packages/shared-skills/skills/frontend/references/design/print-paged-media.md +76 -0
- package/packages/shared-skills/skills/frontend/references/design/stylegallery.md +80 -0
- package/packages/shared-skills/skills/frontend/references/designpowers/README.md +1 -1
- package/packages/shared-skills/skills/frontend/references/designpowers/lane-a-direction.md +1 -1
- package/packages/shared-skills/skills/frontend/references/designpowers/lane-b-execution.md +11 -11
- package/packages/shared-skills/skills/frontend/references/designpowers/lane-d-memory.md +3 -3
- package/packages/shared-skills/skills/frontend/references/designpowers/orchestration.md +1 -1
- package/packages/shared-skills/skills/frontend/references/designpowers/routing.md +5 -5
- package/packages/shared-skills/skills/review-work/SKILL.md +3 -3
- package/packages/shared-skills/skills/ultimate-browsing/ATTRIBUTION.md +37 -10
- package/packages/shared-skills/skills/ultimate-browsing/SKILL.md +2 -0
- package/packages/shared-skills/skills/ultimate-browsing/engine/AGENTS.md +179 -0
- package/packages/shared-skills/skills/ultimate-browsing/engine/templates/package.json +1 -1
- package/packages/shared-skills/skills/ultimate-browsing/references/chrome-stealth.md +13 -11
- package/packages/shared-skills/skills/{start-work → ulw-execute}/SKILL.md +9 -8
- package/packages/shared-skills/skills/ulw-plan/SKILL.md +6 -6
- package/packages/shared-skills/skills/ulw-plan/references/full-workflow.md +31 -7
- package/packages/shared-skills/skills/ulw-plan/references/intent-clear.md +2 -1
- package/packages/shared-skills/skills/ulw-plan/references/intent-unclear.md +5 -5
- package/packages/shared-skills/skills/ulw-research/SKILL.md +4 -2
- package/packages/shared-skills/skills/visual-qa/AGENTS.md +58 -0
- package/packages/shared-skills/skills/visual-qa/SKILL.md +3 -2
- package/script/qa/web-terminal-visual-qa.mjs +2 -0
- package/script/qa/xterm-live-terminal.mjs +18 -2
- package/dist/config/schema/start-work.d.ts +0 -5
- package/dist/features/builtin-commands/templates/start-work.d.ts +0 -1
- package/dist/hooks/start-work/start-work-hook.d.ts +0 -23
- package/dist/plugin/chat-message/start-work-message.d.ts +0 -5
- package/dist/skills/data-scientist/references/common-scenarios.md +0 -176
- package/dist/skills/data-scientist/references/execution-templates.md +0 -197
- package/dist/skills/data-scientist/references/integration-patterns.md +0 -153
- package/dist/skills/data-scientist/references/performance-benchmarks.md +0 -37
- package/dist/tools/call-omo-agent/background-agent-executor.d.ts +0 -5
- package/packages/omo-codex/plugin/components/start-work-continuation/hooks/hooks.json +0 -28
- package/packages/omo-codex/plugin/hooks/stop-checking-start-work-continuation.json +0 -17
- package/packages/omo-codex/plugin/hooks/subagent-stop-checking-start-work-continuation.json +0 -17
- package/packages/omo-codex/plugin/skills/data-scientist/references/common-scenarios.md +0 -176
- package/packages/omo-codex/plugin/skills/data-scientist/references/execution-templates.md +0 -197
- package/packages/omo-codex/plugin/skills/data-scientist/references/integration-patterns.md +0 -153
- package/packages/omo-codex/plugin/skills/data-scientist/references/performance-benchmarks.md +0 -37
- package/packages/omo-codex/plugin/skills/start-work/agents/openai.yaml +0 -2
- package/packages/omo-codex/plugin/test/aggregate-skills.test.mjs +0 -92
- package/packages/omo-codex/plugin/test/sync-skills-orchestration.test.mjs +0 -314
- package/packages/omo-codex/plugin/test/ulw-plan-scope-contract.test.mjs +0 -24
- package/packages/shared-skills/skills/data-scientist/references/common-scenarios.md +0 -176
- package/packages/shared-skills/skills/data-scientist/references/execution-templates.md +0 -197
- package/packages/shared-skills/skills/data-scientist/references/integration-patterns.md +0 -153
- package/packages/shared-skills/skills/data-scientist/references/performance-benchmarks.md +0 -37
- /package/dist/hooks/{start-work → ulw-execute}/context-info-formatters.d.ts +0 -0
- /package/dist/hooks/{start-work → ulw-execute}/explicit-plan-context.d.ts +0 -0
- /package/dist/hooks/{start-work → ulw-execute}/notepad-scaffold.d.ts +0 -0
- /package/dist/hooks/{start-work → ulw-execute}/parse-user-request.d.ts +0 -0
- /package/dist/hooks/{start-work → ulw-execute}/plan-discovery-context.d.ts +0 -0
- /package/dist/hooks/{start-work → ulw-execute}/plan-selection.d.ts +0 -0
- /package/dist/hooks/{start-work → ulw-execute}/session-plan-affinity.d.ts +0 -0
- /package/dist/hooks/{start-work → ulw-execute}/work-initializer.d.ts +0 -0
- /package/dist/hooks/{start-work → ulw-execute}/worktree-block.d.ts +0 -0
- /package/dist/hooks/{start-work → ulw-execute}/worktree-detector.d.ts +0 -0
- /package/packages/omo-codex/plugin/components/{start-work-continuation → ulw-execute-continuation}/.gitattributes +0 -0
- /package/packages/omo-codex/plugin/components/{start-work-continuation → ulw-execute-continuation}/CHANGELOG.md +0 -0
- /package/packages/omo-codex/plugin/components/{start-work-continuation → ulw-execute-continuation}/LICENSE +0 -0
- /package/packages/omo-codex/plugin/components/{start-work-continuation → ulw-execute-continuation}/src/plan-checklist.ts +0 -0
- /package/packages/omo-codex/plugin/components/{start-work-continuation → ulw-execute-continuation}/src/types.ts +0 -0
- /package/packages/omo-codex/plugin/components/{start-work-continuation → ulw-execute-continuation}/test/fixtures/boulder-completed.json +0 -0
- /package/packages/omo-codex/plugin/components/{start-work-continuation → ulw-execute-continuation}/test/fixtures/boulder-mixed-platforms.json +0 -0
- /package/packages/omo-codex/plugin/components/{start-work-continuation → ulw-execute-continuation}/test/fixtures/boulder-single-codex-work.json +0 -0
- /package/packages/omo-codex/plugin/components/{start-work-continuation → ulw-execute-continuation}/test/fixtures/plan-all-done.md +0 -0
- /package/packages/omo-codex/plugin/components/{start-work-continuation → ulw-execute-continuation}/test/fixtures/plan-scaffold.md +0 -0
- /package/packages/omo-codex/plugin/components/{start-work-continuation → ulw-execute-continuation}/test/fixtures/plan-with-nested-checkboxes.md +0 -0
- /package/packages/omo-codex/plugin/components/{start-work-continuation → ulw-execute-continuation}/test/fixtures/plan-with-unchecked.md +0 -0
- /package/packages/omo-codex/plugin/components/{start-work-continuation → ulw-execute-continuation}/tsconfig.build.json +0 -0
- /package/packages/omo-codex/plugin/components/{start-work-continuation → ulw-execute-continuation}/tsconfig.json +0 -0
- /package/packages/omo-codex/plugin/components/{start-work-continuation → ulw-execute-continuation}/vitest.config.ts +0 -0
|
@@ -483,69 +483,69 @@ function config(newConfig) {
|
|
|
483
483
|
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/util.js
|
|
484
484
|
var exports_util = {};
|
|
485
485
|
__export(exports_util, {
|
|
486
|
-
|
|
487
|
-
uint8ArrayToHex: () => uint8ArrayToHex,
|
|
488
|
-
uint8ArrayToBase64url: () => uint8ArrayToBase64url,
|
|
489
|
-
uint8ArrayToBase64: () => uint8ArrayToBase64,
|
|
490
|
-
stringifyPrimitive: () => stringifyPrimitive,
|
|
491
|
-
slugify: () => slugify,
|
|
492
|
-
shallowClone: () => shallowClone,
|
|
493
|
-
safeExtend: () => safeExtend,
|
|
494
|
-
required: () => required,
|
|
495
|
-
randomString: () => randomString,
|
|
496
|
-
propertyKeyTypes: () => propertyKeyTypes,
|
|
497
|
-
promiseAllObject: () => promiseAllObject,
|
|
498
|
-
primitiveTypes: () => primitiveTypes,
|
|
499
|
-
prefixIssues: () => prefixIssues,
|
|
500
|
-
pick: () => pick,
|
|
501
|
-
partial: () => partial,
|
|
502
|
-
parsedType: () => parsedType,
|
|
503
|
-
optionalKeys: () => optionalKeys,
|
|
504
|
-
omit: () => omit,
|
|
505
|
-
objectClone: () => objectClone,
|
|
506
|
-
numKeys: () => numKeys,
|
|
507
|
-
nullish: () => nullish,
|
|
508
|
-
normalizeParams: () => normalizeParams,
|
|
509
|
-
mergeDefs: () => mergeDefs,
|
|
510
|
-
merge: () => merge,
|
|
511
|
-
jsonStringifyReplacer: () => jsonStringifyReplacer,
|
|
512
|
-
joinValues: () => joinValues,
|
|
513
|
-
issue: () => issue,
|
|
514
|
-
isPlainObject: () => isPlainObject,
|
|
515
|
-
isObject: () => isObject,
|
|
516
|
-
hexToUint8Array: () => hexToUint8Array,
|
|
517
|
-
getSizableOrigin: () => getSizableOrigin,
|
|
518
|
-
getParsedType: () => getParsedType,
|
|
519
|
-
getLengthableOrigin: () => getLengthableOrigin,
|
|
520
|
-
getEnumValues: () => getEnumValues,
|
|
521
|
-
getElementAtPath: () => getElementAtPath,
|
|
522
|
-
floatSafeRemainder: () => floatSafeRemainder,
|
|
523
|
-
finalizeIssue: () => finalizeIssue,
|
|
524
|
-
extend: () => extend,
|
|
525
|
-
explicitlyAborted: () => explicitlyAborted,
|
|
526
|
-
escapeRegex: () => escapeRegex,
|
|
527
|
-
esc: () => esc,
|
|
528
|
-
defineLazy: () => defineLazy,
|
|
529
|
-
createTransparentProxy: () => createTransparentProxy,
|
|
530
|
-
cloneDef: () => cloneDef,
|
|
531
|
-
clone: () => clone,
|
|
532
|
-
cleanRegex: () => cleanRegex,
|
|
533
|
-
cleanEnum: () => cleanEnum,
|
|
534
|
-
captureStackTrace: () => captureStackTrace,
|
|
535
|
-
cached: () => cached,
|
|
536
|
-
base64urlToUint8Array: () => base64urlToUint8Array,
|
|
537
|
-
base64ToUint8Array: () => base64ToUint8Array,
|
|
538
|
-
assignProp: () => assignProp,
|
|
539
|
-
assertNotEqual: () => assertNotEqual,
|
|
540
|
-
assertNever: () => assertNever,
|
|
541
|
-
assertIs: () => assertIs,
|
|
542
|
-
assertEqual: () => assertEqual,
|
|
543
|
-
assert: () => assert,
|
|
544
|
-
allowsEval: () => allowsEval,
|
|
545
|
-
aborted: () => aborted,
|
|
546
|
-
NUMBER_FORMAT_RANGES: () => NUMBER_FORMAT_RANGES,
|
|
486
|
+
BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
|
|
547
487
|
Class: () => Class,
|
|
548
|
-
|
|
488
|
+
NUMBER_FORMAT_RANGES: () => NUMBER_FORMAT_RANGES,
|
|
489
|
+
aborted: () => aborted,
|
|
490
|
+
allowsEval: () => allowsEval,
|
|
491
|
+
assert: () => assert,
|
|
492
|
+
assertEqual: () => assertEqual,
|
|
493
|
+
assertIs: () => assertIs,
|
|
494
|
+
assertNever: () => assertNever,
|
|
495
|
+
assertNotEqual: () => assertNotEqual,
|
|
496
|
+
assignProp: () => assignProp,
|
|
497
|
+
base64ToUint8Array: () => base64ToUint8Array,
|
|
498
|
+
base64urlToUint8Array: () => base64urlToUint8Array,
|
|
499
|
+
cached: () => cached,
|
|
500
|
+
captureStackTrace: () => captureStackTrace,
|
|
501
|
+
cleanEnum: () => cleanEnum,
|
|
502
|
+
cleanRegex: () => cleanRegex,
|
|
503
|
+
clone: () => clone,
|
|
504
|
+
cloneDef: () => cloneDef,
|
|
505
|
+
createTransparentProxy: () => createTransparentProxy,
|
|
506
|
+
defineLazy: () => defineLazy,
|
|
507
|
+
esc: () => esc,
|
|
508
|
+
escapeRegex: () => escapeRegex,
|
|
509
|
+
explicitlyAborted: () => explicitlyAborted,
|
|
510
|
+
extend: () => extend,
|
|
511
|
+
finalizeIssue: () => finalizeIssue,
|
|
512
|
+
floatSafeRemainder: () => floatSafeRemainder,
|
|
513
|
+
getElementAtPath: () => getElementAtPath,
|
|
514
|
+
getEnumValues: () => getEnumValues,
|
|
515
|
+
getLengthableOrigin: () => getLengthableOrigin,
|
|
516
|
+
getParsedType: () => getParsedType,
|
|
517
|
+
getSizableOrigin: () => getSizableOrigin,
|
|
518
|
+
hexToUint8Array: () => hexToUint8Array,
|
|
519
|
+
isObject: () => isObject,
|
|
520
|
+
isPlainObject: () => isPlainObject,
|
|
521
|
+
issue: () => issue,
|
|
522
|
+
joinValues: () => joinValues,
|
|
523
|
+
jsonStringifyReplacer: () => jsonStringifyReplacer,
|
|
524
|
+
merge: () => merge,
|
|
525
|
+
mergeDefs: () => mergeDefs,
|
|
526
|
+
normalizeParams: () => normalizeParams,
|
|
527
|
+
nullish: () => nullish,
|
|
528
|
+
numKeys: () => numKeys,
|
|
529
|
+
objectClone: () => objectClone,
|
|
530
|
+
omit: () => omit,
|
|
531
|
+
optionalKeys: () => optionalKeys,
|
|
532
|
+
parsedType: () => parsedType,
|
|
533
|
+
partial: () => partial,
|
|
534
|
+
pick: () => pick,
|
|
535
|
+
prefixIssues: () => prefixIssues,
|
|
536
|
+
primitiveTypes: () => primitiveTypes,
|
|
537
|
+
promiseAllObject: () => promiseAllObject,
|
|
538
|
+
propertyKeyTypes: () => propertyKeyTypes,
|
|
539
|
+
randomString: () => randomString,
|
|
540
|
+
required: () => required,
|
|
541
|
+
safeExtend: () => safeExtend,
|
|
542
|
+
shallowClone: () => shallowClone,
|
|
543
|
+
slugify: () => slugify,
|
|
544
|
+
stringifyPrimitive: () => stringifyPrimitive,
|
|
545
|
+
uint8ArrayToBase64: () => uint8ArrayToBase64,
|
|
546
|
+
uint8ArrayToBase64url: () => uint8ArrayToBase64url,
|
|
547
|
+
uint8ArrayToHex: () => uint8ArrayToHex,
|
|
548
|
+
unwrapMessage: () => unwrapMessage
|
|
549
549
|
});
|
|
550
550
|
function assertEqual(val) {
|
|
551
551
|
return val;
|
|
@@ -4003,7 +4003,7 @@ function finalize(ctx, schema) {
|
|
|
4003
4003
|
result.$schema = "http://json-schema.org/draft-07/schema#";
|
|
4004
4004
|
} else if (ctx.target === "draft-04") {
|
|
4005
4005
|
result.$schema = "http://json-schema.org/draft-04/schema#";
|
|
4006
|
-
} else if (ctx.target === "openapi-3.0") {}
|
|
4006
|
+
} else if (ctx.target === "openapi-3.0") {}
|
|
4007
4007
|
if (ctx.external?.uri) {
|
|
4008
4008
|
const id = ctx.external.registry.get(schema)?.id;
|
|
4009
4009
|
if (!id)
|
|
@@ -4212,7 +4212,7 @@ var literalProcessor = (schema, ctx, json, _params) => {
|
|
|
4212
4212
|
if (val === undefined) {
|
|
4213
4213
|
if (ctx.unrepresentable === "throw") {
|
|
4214
4214
|
throw new Error("Literal `undefined` cannot be represented in JSON Schema");
|
|
4215
|
-
}
|
|
4215
|
+
}
|
|
4216
4216
|
} else if (typeof val === "bigint") {
|
|
4217
4217
|
if (ctx.unrepresentable === "throw") {
|
|
4218
4218
|
throw new Error("BigInt literals cannot be represented in JSON Schema");
|
|
@@ -5549,13 +5549,25 @@ var OmoCodegraphSettingsSchema = OmoCodegraphSettingsLayerSchema.extend({
|
|
|
5549
5549
|
telemetry: boolean2().default(false)
|
|
5550
5550
|
}).strict();
|
|
5551
5551
|
|
|
5552
|
+
// ../../omo-config-core/src/schema/git-master.ts
|
|
5553
|
+
var OmoGitMasterSettingsShape = {
|
|
5554
|
+
commit_footer: union([boolean2(), string2()]),
|
|
5555
|
+
include_co_authored_by: boolean2()
|
|
5556
|
+
};
|
|
5557
|
+
var OmoGitMasterSettingsLayerSchema = object(OmoGitMasterSettingsShape).partial().strict();
|
|
5558
|
+
var OmoGitMasterSettingsSchema = OmoGitMasterSettingsLayerSchema.extend({
|
|
5559
|
+
commit_footer: union([boolean2(), string2()]).default(true),
|
|
5560
|
+
include_co_authored_by: boolean2().default(true)
|
|
5561
|
+
}).strict();
|
|
5562
|
+
|
|
5552
5563
|
// ../../omo-config-core/src/schema/memory.ts
|
|
5553
5564
|
var OmoMemoryReflectionTriggerSchema = object({
|
|
5554
|
-
step_count: number2().int().nonnegative().default(
|
|
5565
|
+
step_count: number2().int().nonnegative().default(25),
|
|
5555
5566
|
on_compaction: boolean2().default(true)
|
|
5556
5567
|
}).strict();
|
|
5557
5568
|
var OmoMemoryReflectionSchema = object({
|
|
5558
|
-
|
|
5569
|
+
enabled: boolean2().default(true),
|
|
5570
|
+
trigger: OmoMemoryReflectionTriggerSchema.default({ step_count: 25, on_compaction: true }),
|
|
5559
5571
|
merge: _enum(["auto", "integration"]).default("auto"),
|
|
5560
5572
|
category: string2().min(1).default("quick"),
|
|
5561
5573
|
timeout_minutes: number2().int().positive().default(15),
|
|
@@ -5568,11 +5580,39 @@ var OmoMemorySyncSchema = object({
|
|
|
5568
5580
|
var OmoMemorySearchSchema = object({
|
|
5569
5581
|
enabled: boolean2().default(true)
|
|
5570
5582
|
}).strict();
|
|
5583
|
+
var OmoMemoryNudgeSchema = object({
|
|
5584
|
+
enabled: boolean2().default(true),
|
|
5585
|
+
every_user_turns: number2().int().min(1).default(10)
|
|
5586
|
+
}).strict();
|
|
5587
|
+
var OmoMemoryFactsSchema = object({
|
|
5588
|
+
enabled: boolean2().default(true),
|
|
5589
|
+
debounce_settles: number2().int().min(1).default(4)
|
|
5590
|
+
}).strict();
|
|
5591
|
+
var OmoMemoryDreamSchema = object({
|
|
5592
|
+
enabled: boolean2().default(true),
|
|
5593
|
+
idle_minutes: number2().int().min(0).default(30),
|
|
5594
|
+
min_hours_between: number2().int().min(1).default(24),
|
|
5595
|
+
shutdown_launch: boolean2().default(true),
|
|
5596
|
+
auto_select_max: number2().int().min(1).max(10).default(5),
|
|
5597
|
+
auto_select_max_chars: number2().int().min(1e4).default(150000)
|
|
5598
|
+
}).strict();
|
|
5599
|
+
var OmoMemoryPeopleSchema = object({
|
|
5600
|
+
enabled: boolean2().default(true),
|
|
5601
|
+
max_entries: number2().int().min(1).max(100).default(40),
|
|
5602
|
+
max_entry_chars: number2().int().min(50).max(500).default(200)
|
|
5603
|
+
}).strict();
|
|
5604
|
+
var OmoMemorySoulSchema = object({
|
|
5605
|
+
edit_notice: boolean2().default(true)
|
|
5606
|
+
}).strict();
|
|
5607
|
+
var OmoMemoryWriteNoticeSchema = object({
|
|
5608
|
+
enabled: boolean2().default(true)
|
|
5609
|
+
}).strict();
|
|
5571
5610
|
var OmoMemoryReflectionTriggerLayerSchema = object({
|
|
5572
5611
|
step_count: number2().int().nonnegative().optional(),
|
|
5573
5612
|
on_compaction: boolean2().optional()
|
|
5574
5613
|
}).strict();
|
|
5575
5614
|
var OmoMemoryReflectionLayerSchema = object({
|
|
5615
|
+
enabled: boolean2().optional(),
|
|
5576
5616
|
trigger: OmoMemoryReflectionTriggerLayerSchema.optional(),
|
|
5577
5617
|
merge: _enum(["auto", "integration"]).optional(),
|
|
5578
5618
|
category: string2().min(1).optional(),
|
|
@@ -5586,10 +5626,43 @@ var OmoMemorySyncLayerSchema = object({
|
|
|
5586
5626
|
var OmoMemorySearchLayerSchema = object({
|
|
5587
5627
|
enabled: boolean2().optional()
|
|
5588
5628
|
}).strict();
|
|
5629
|
+
var OmoMemoryNudgeLayerSchema = object({
|
|
5630
|
+
enabled: boolean2().optional(),
|
|
5631
|
+
every_user_turns: number2().int().min(1).optional()
|
|
5632
|
+
}).strict();
|
|
5633
|
+
var OmoMemoryFactsLayerSchema = object({
|
|
5634
|
+
enabled: boolean2().optional(),
|
|
5635
|
+
debounce_settles: number2().int().min(1).optional()
|
|
5636
|
+
}).strict();
|
|
5637
|
+
var OmoMemoryDreamLayerSchema = object({
|
|
5638
|
+
enabled: boolean2().optional(),
|
|
5639
|
+
idle_minutes: number2().int().min(0).optional(),
|
|
5640
|
+
min_hours_between: number2().int().min(1).optional(),
|
|
5641
|
+
shutdown_launch: boolean2().optional(),
|
|
5642
|
+
auto_select_max: number2().int().min(1).max(10).optional(),
|
|
5643
|
+
auto_select_max_chars: number2().int().min(1e4).optional()
|
|
5644
|
+
}).strict();
|
|
5645
|
+
var OmoMemoryPeopleLayerSchema = object({
|
|
5646
|
+
enabled: boolean2().optional(),
|
|
5647
|
+
max_entries: number2().int().min(1).max(100).optional(),
|
|
5648
|
+
max_entry_chars: number2().int().min(50).max(500).optional()
|
|
5649
|
+
}).strict();
|
|
5650
|
+
var OmoMemorySoulLayerSchema = object({
|
|
5651
|
+
edit_notice: boolean2().optional()
|
|
5652
|
+
}).strict();
|
|
5653
|
+
var OmoMemoryWriteNoticeLayerSchema = object({
|
|
5654
|
+
enabled: boolean2().optional()
|
|
5655
|
+
}).strict();
|
|
5589
5656
|
var OmoMemoryAgentOverridesSchema = object({
|
|
5590
5657
|
enabled: boolean2().optional(),
|
|
5591
5658
|
agent: string2().min(1).optional(),
|
|
5592
5659
|
reflection: OmoMemoryReflectionLayerSchema.optional(),
|
|
5660
|
+
nudge: OmoMemoryNudgeLayerSchema.optional(),
|
|
5661
|
+
facts: OmoMemoryFactsLayerSchema.optional(),
|
|
5662
|
+
dream: OmoMemoryDreamLayerSchema.optional(),
|
|
5663
|
+
people: OmoMemoryPeopleLayerSchema.optional(),
|
|
5664
|
+
soul: OmoMemorySoulLayerSchema.optional(),
|
|
5665
|
+
write_notice: OmoMemoryWriteNoticeLayerSchema.optional(),
|
|
5593
5666
|
sync: OmoMemorySyncLayerSchema.optional(),
|
|
5594
5667
|
search: OmoMemorySearchLayerSchema.optional(),
|
|
5595
5668
|
compile_warn_tokens: number2().int().positive().optional()
|
|
@@ -5597,13 +5670,28 @@ var OmoMemoryAgentOverridesSchema = object({
|
|
|
5597
5670
|
var OmoMemorySettingsSchema = object({
|
|
5598
5671
|
enabled: boolean2().default(true),
|
|
5599
5672
|
agent: string2().min(1).default("auto"),
|
|
5673
|
+
tool_exposure: _enum(["direct", "search"]).default("direct"),
|
|
5600
5674
|
reflection: OmoMemoryReflectionSchema.default({
|
|
5601
|
-
|
|
5675
|
+
enabled: true,
|
|
5676
|
+
trigger: { step_count: 25, on_compaction: true },
|
|
5602
5677
|
merge: "auto",
|
|
5603
5678
|
category: "quick",
|
|
5604
5679
|
timeout_minutes: 15,
|
|
5605
5680
|
sandbox: "auto"
|
|
5606
5681
|
}),
|
|
5682
|
+
nudge: OmoMemoryNudgeSchema.default({ enabled: true, every_user_turns: 10 }),
|
|
5683
|
+
facts: OmoMemoryFactsSchema.default({ enabled: true, debounce_settles: 4 }),
|
|
5684
|
+
dream: OmoMemoryDreamSchema.default({
|
|
5685
|
+
enabled: true,
|
|
5686
|
+
idle_minutes: 30,
|
|
5687
|
+
min_hours_between: 24,
|
|
5688
|
+
shutdown_launch: true,
|
|
5689
|
+
auto_select_max: 5,
|
|
5690
|
+
auto_select_max_chars: 150000
|
|
5691
|
+
}),
|
|
5692
|
+
people: OmoMemoryPeopleSchema.default({ enabled: true, max_entries: 40, max_entry_chars: 200 }),
|
|
5693
|
+
soul: OmoMemorySoulSchema.default({ edit_notice: true }),
|
|
5694
|
+
write_notice: OmoMemoryWriteNoticeSchema.default({ enabled: true }),
|
|
5607
5695
|
sync: OmoMemorySyncSchema.default({ enabled: true }),
|
|
5608
5696
|
search: OmoMemorySearchSchema.default({ enabled: true }),
|
|
5609
5697
|
compile_warn_tokens: number2().int().positive().default(30000),
|
|
@@ -5612,7 +5700,14 @@ var OmoMemorySettingsSchema = object({
|
|
|
5612
5700
|
var OmoMemorySettingsLayerSchema = object({
|
|
5613
5701
|
enabled: boolean2().optional(),
|
|
5614
5702
|
agent: string2().min(1).optional(),
|
|
5703
|
+
tool_exposure: _enum(["direct", "search"]).optional(),
|
|
5615
5704
|
reflection: OmoMemoryReflectionLayerSchema.optional(),
|
|
5705
|
+
nudge: OmoMemoryNudgeLayerSchema.optional(),
|
|
5706
|
+
facts: OmoMemoryFactsLayerSchema.optional(),
|
|
5707
|
+
dream: OmoMemoryDreamLayerSchema.optional(),
|
|
5708
|
+
people: OmoMemoryPeopleLayerSchema.optional(),
|
|
5709
|
+
soul: OmoMemorySoulLayerSchema.optional(),
|
|
5710
|
+
write_notice: OmoMemoryWriteNoticeLayerSchema.optional(),
|
|
5616
5711
|
sync: OmoMemorySyncLayerSchema.optional(),
|
|
5617
5712
|
search: OmoMemorySearchLayerSchema.optional(),
|
|
5618
5713
|
compile_warn_tokens: number2().int().positive().optional(),
|
|
@@ -5637,7 +5732,7 @@ var OmoModelCatalogLayerSchema = record(string2(), OmoModelCatalogEntryLayerSche
|
|
|
5637
5732
|
|
|
5638
5733
|
// ../../omo-config-core/src/schema/task.ts
|
|
5639
5734
|
import { availableParallelism } from "node:os";
|
|
5640
|
-
var ResidencyMaxChildrenInputSchema = union([number2().int().
|
|
5735
|
+
var ResidencyMaxChildrenInputSchema = union([number2().int().nonnegative(), literal("unlimited")]);
|
|
5641
5736
|
var OmoTaskWaitSchema = object({
|
|
5642
5737
|
min_ms: number2().int().positive().default(5000),
|
|
5643
5738
|
default_ms: number2().int().positive().default(60000),
|
|
@@ -5651,11 +5746,22 @@ var OmoTaskTeamSettingsSchema = object({
|
|
|
5651
5746
|
var OmoTaskWarningsSchema = object({
|
|
5652
5747
|
unavailable_categories: boolean2().default(true)
|
|
5653
5748
|
}).strict();
|
|
5749
|
+
var OmoTaskDagSettingsSchema = object({
|
|
5750
|
+
max_nodes_per_run: number2().int().positive().default(64),
|
|
5751
|
+
max_runs_per_session: number2().int().positive().default(16),
|
|
5752
|
+
subscriber_ring: number2().int().positive().default(1000),
|
|
5753
|
+
heartbeat_ms: number2().int().positive().default(15000),
|
|
5754
|
+
history_default_limit: number2().int().positive().default(256),
|
|
5755
|
+
history_max_limit: number2().int().positive().default(1000),
|
|
5756
|
+
retention_days: number2().int().positive().default(7),
|
|
5757
|
+
max_prompt_bytes: number2().int().positive().default(262144)
|
|
5758
|
+
}).strict();
|
|
5654
5759
|
var OmoTaskSettingsSchema = object({
|
|
5655
5760
|
default_execution_mode: _enum(["in-process", "process"]).default("in-process"),
|
|
5656
|
-
default_concurrency: number2().int().
|
|
5657
|
-
|
|
5658
|
-
|
|
5761
|
+
default_concurrency: number2().int().nonnegative().default(5),
|
|
5762
|
+
global_concurrency: number2().int().nonnegative().default(8),
|
|
5763
|
+
provider_concurrency: record(string2(), number2().int().nonnegative()).optional(),
|
|
5764
|
+
model_concurrency: record(string2(), number2().int().nonnegative()).optional(),
|
|
5659
5765
|
max_depth: number2().int().nonnegative().default(1),
|
|
5660
5766
|
residency_max_children: ResidencyMaxChildrenInputSchema.default(8),
|
|
5661
5767
|
ttl_ms: number2().int().positive().default(86400000),
|
|
@@ -5668,7 +5774,18 @@ var OmoTaskSettingsSchema = object({
|
|
|
5668
5774
|
max_members: 8,
|
|
5669
5775
|
max_parallel_members: 4,
|
|
5670
5776
|
max_wall_clock_minutes: 120
|
|
5671
|
-
})
|
|
5777
|
+
}),
|
|
5778
|
+
dag: OmoTaskDagSettingsSchema.optional()
|
|
5779
|
+
}).strict();
|
|
5780
|
+
var OmoTaskDagSettingsLayerSchema = object({
|
|
5781
|
+
max_nodes_per_run: number2().int().positive().optional(),
|
|
5782
|
+
max_runs_per_session: number2().int().positive().optional(),
|
|
5783
|
+
subscriber_ring: number2().int().positive().optional(),
|
|
5784
|
+
heartbeat_ms: number2().int().positive().optional(),
|
|
5785
|
+
history_default_limit: number2().int().positive().optional(),
|
|
5786
|
+
history_max_limit: number2().int().positive().optional(),
|
|
5787
|
+
retention_days: number2().int().positive().optional(),
|
|
5788
|
+
max_prompt_bytes: number2().int().positive().optional()
|
|
5672
5789
|
}).strict();
|
|
5673
5790
|
var OmoTaskWaitLayerSchema = object({
|
|
5674
5791
|
min_ms: number2().int().positive().optional(),
|
|
@@ -5685,9 +5802,10 @@ var OmoTaskWarningsLayerSchema = object({
|
|
|
5685
5802
|
}).strict();
|
|
5686
5803
|
var OmoTaskSettingsLayerSchema = object({
|
|
5687
5804
|
default_execution_mode: _enum(["in-process", "process"]).optional(),
|
|
5688
|
-
default_concurrency: number2().int().
|
|
5689
|
-
|
|
5690
|
-
|
|
5805
|
+
default_concurrency: number2().int().nonnegative().optional(),
|
|
5806
|
+
global_concurrency: number2().int().nonnegative().optional(),
|
|
5807
|
+
provider_concurrency: record(string2(), number2().int().nonnegative()).optional(),
|
|
5808
|
+
model_concurrency: record(string2(), number2().int().nonnegative()).optional(),
|
|
5691
5809
|
max_depth: number2().int().nonnegative().optional(),
|
|
5692
5810
|
residency_max_children: ResidencyMaxChildrenInputSchema.optional(),
|
|
5693
5811
|
ttl_ms: number2().int().positive().optional(),
|
|
@@ -5696,13 +5814,15 @@ var OmoTaskSettingsLayerSchema = object({
|
|
|
5696
5814
|
resume_children: boolean2().optional(),
|
|
5697
5815
|
warnings: OmoTaskWarningsLayerSchema.optional(),
|
|
5698
5816
|
wait: OmoTaskWaitLayerSchema.optional(),
|
|
5699
|
-
team: OmoTaskTeamSettingsLayerSchema.optional()
|
|
5817
|
+
team: OmoTaskTeamSettingsLayerSchema.optional(),
|
|
5818
|
+
dag: OmoTaskDagSettingsLayerSchema.optional()
|
|
5700
5819
|
}).strict();
|
|
5701
5820
|
function resolveOmoTaskSettings(input, resolveParallelism = availableParallelism) {
|
|
5702
5821
|
const record2 = record(string2(), unknown()).parse(input);
|
|
5703
5822
|
return OmoTaskSettingsSchema.parse({
|
|
5704
5823
|
...record2,
|
|
5705
|
-
residency_max_children: record2["residency_max_children"] ?? Math.max(8, resolveParallelism() * 3)
|
|
5824
|
+
residency_max_children: record2["residency_max_children"] ?? Math.max(8, resolveParallelism() * 3),
|
|
5825
|
+
global_concurrency: record2["global_concurrency"] ?? Math.max(8, resolveParallelism() * 2)
|
|
5706
5826
|
});
|
|
5707
5827
|
}
|
|
5708
5828
|
|
|
@@ -5753,38 +5873,71 @@ var OmoTeamSpecLayerSchema = OmoTeamSpecBaseSchema.partial();
|
|
|
5753
5873
|
var OmoTeamsConfigSchema = record(string2(), OmoTeamSpecSchema);
|
|
5754
5874
|
var OmoTeamsConfigLayerSchema = record(string2(), OmoTeamSpecLayerSchema);
|
|
5755
5875
|
|
|
5876
|
+
// ../../omo-config-core/src/schema/telemetry.ts
|
|
5877
|
+
var OmoTelemetrySettingsShape = {
|
|
5878
|
+
enabled: boolean2()
|
|
5879
|
+
};
|
|
5880
|
+
var OmoTelemetrySettingsLayerSchema = object(OmoTelemetrySettingsShape).partial().strict();
|
|
5881
|
+
var OmoTelemetrySettingsSchema = OmoTelemetrySettingsLayerSchema.extend({
|
|
5882
|
+
enabled: boolean2().default(true)
|
|
5883
|
+
}).strict();
|
|
5884
|
+
|
|
5885
|
+
// ../../omo-config-core/src/schema/format-on-mutation.ts
|
|
5886
|
+
var mode = _enum(["off", "best-effort", "required"]);
|
|
5887
|
+
var languages = record(string2(), boolean2()).optional();
|
|
5888
|
+
var OmoFormatOnMutationLayerSchema = object({
|
|
5889
|
+
mode: mode.optional(),
|
|
5890
|
+
languages,
|
|
5891
|
+
maxFileBytes: number2().int().positive().optional(),
|
|
5892
|
+
timeoutMs: number2().int().positive().optional()
|
|
5893
|
+
}).strict();
|
|
5894
|
+
var OmoFormatOnMutationSchema = OmoFormatOnMutationLayerSchema.extend({
|
|
5895
|
+
mode: mode.default("best-effort"),
|
|
5896
|
+
maxFileBytes: number2().int().positive().default(1048576),
|
|
5897
|
+
timeoutMs: number2().int().positive().default(3000)
|
|
5898
|
+
}).strict();
|
|
5899
|
+
|
|
5756
5900
|
// ../../omo-config-core/src/schema/config.ts
|
|
5757
5901
|
var OmoOpenCodeHarnessConfigSchema = record(string2(), unknown());
|
|
5758
5902
|
var OmoTypedHarnessConfigSchema = object({
|
|
5903
|
+
formatOnMutation: OmoFormatOnMutationLayerSchema.optional(),
|
|
5759
5904
|
categories: OmoCategoriesConfigSchema.optional(),
|
|
5760
5905
|
agents: OmoAgentsConfigSchema.optional(),
|
|
5761
5906
|
codegraph: OmoCodegraphSettingsLayerSchema.optional(),
|
|
5907
|
+
git_master: OmoGitMasterSettingsLayerSchema.optional(),
|
|
5762
5908
|
task: OmoTaskSettingsLayerSchema.optional(),
|
|
5763
5909
|
teams: OmoTeamsConfigLayerSchema.optional(),
|
|
5764
5910
|
models: OmoModelCatalogLayerSchema.optional(),
|
|
5765
|
-
memory: OmoMemorySettingsLayerSchema.optional()
|
|
5911
|
+
memory: OmoMemorySettingsLayerSchema.optional(),
|
|
5912
|
+
telemetry: OmoTelemetrySettingsLayerSchema.optional()
|
|
5766
5913
|
}).strict();
|
|
5767
5914
|
var OmoConfigProfileSchema = object({
|
|
5915
|
+
formatOnMutation: OmoFormatOnMutationLayerSchema.optional(),
|
|
5768
5916
|
categories: OmoCategoriesConfigSchema.optional(),
|
|
5769
5917
|
agents: OmoAgentsConfigSchema.optional(),
|
|
5770
5918
|
codegraph: OmoCodegraphSettingsLayerSchema.optional(),
|
|
5919
|
+
git_master: OmoGitMasterSettingsLayerSchema.optional(),
|
|
5771
5920
|
task: OmoTaskSettingsLayerSchema.optional(),
|
|
5772
5921
|
teams: OmoTeamsConfigLayerSchema.optional(),
|
|
5773
5922
|
models: OmoModelCatalogLayerSchema.optional(),
|
|
5774
5923
|
memory: OmoMemorySettingsLayerSchema.optional(),
|
|
5924
|
+
telemetry: OmoTelemetrySettingsLayerSchema.optional(),
|
|
5775
5925
|
"[opencode]": OmoOpenCodeHarnessConfigSchema.optional(),
|
|
5776
5926
|
"[senpi]": OmoTypedHarnessConfigSchema.optional(),
|
|
5777
5927
|
"[codex]": OmoTypedHarnessConfigSchema.optional()
|
|
5778
5928
|
}).strict();
|
|
5779
5929
|
var OmoConfigSchema = object({
|
|
5930
|
+
formatOnMutation: OmoFormatOnMutationSchema.optional(),
|
|
5780
5931
|
$schema: string2().optional(),
|
|
5781
5932
|
categories: OmoCategoriesConfigSchema.optional(),
|
|
5782
5933
|
agents: OmoAgentsConfigSchema.optional(),
|
|
5783
5934
|
codegraph: OmoCodegraphSettingsSchema.optional(),
|
|
5935
|
+
git_master: OmoGitMasterSettingsSchema.optional(),
|
|
5784
5936
|
task: OmoTaskSettingsSchema.optional(),
|
|
5785
5937
|
teams: OmoTeamsConfigSchema.optional(),
|
|
5786
5938
|
models: OmoModelCatalogSchema.optional(),
|
|
5787
5939
|
memory: OmoMemorySettingsSchema.optional(),
|
|
5940
|
+
telemetry: OmoTelemetrySettingsSchema.optional(),
|
|
5788
5941
|
"[opencode]": OmoOpenCodeHarnessConfigSchema.optional(),
|
|
5789
5942
|
"[senpi]": OmoTypedHarnessConfigSchema.optional(),
|
|
5790
5943
|
"[codex]": OmoTypedHarnessConfigSchema.optional(),
|
|
@@ -5793,14 +5946,17 @@ var OmoConfigSchema = object({
|
|
|
5793
5946
|
legacy_migrations: record(string2(), unknown()).optional()
|
|
5794
5947
|
}).strict();
|
|
5795
5948
|
var OmoConfigLayerSchema = object({
|
|
5949
|
+
formatOnMutation: OmoFormatOnMutationLayerSchema.optional(),
|
|
5796
5950
|
$schema: string2().optional(),
|
|
5797
5951
|
categories: OmoCategoriesConfigSchema.optional(),
|
|
5798
5952
|
agents: OmoAgentsConfigSchema.optional(),
|
|
5799
5953
|
codegraph: OmoCodegraphSettingsLayerSchema.optional(),
|
|
5954
|
+
git_master: OmoGitMasterSettingsLayerSchema.optional(),
|
|
5800
5955
|
task: OmoTaskSettingsLayerSchema.optional(),
|
|
5801
5956
|
teams: OmoTeamsConfigLayerSchema.optional(),
|
|
5802
5957
|
models: OmoModelCatalogLayerSchema.optional(),
|
|
5803
5958
|
memory: OmoMemorySettingsLayerSchema.optional(),
|
|
5959
|
+
telemetry: OmoTelemetrySettingsLayerSchema.optional(),
|
|
5804
5960
|
"[opencode]": OmoOpenCodeHarnessConfigSchema.optional(),
|
|
5805
5961
|
"[senpi]": OmoTypedHarnessConfigSchema.optional(),
|
|
5806
5962
|
"[codex]": OmoTypedHarnessConfigSchema.optional(),
|
|
@@ -9451,7 +9607,7 @@ function defaultPluginRoot() {
|
|
|
9451
9607
|
}
|
|
9452
9608
|
|
|
9453
9609
|
// components/codegraph/src/session-start-cooldown.ts
|
|
9454
|
-
import { mkdirSync as mkdirSync4, readFileSync as readFileSync6, rmSync as
|
|
9610
|
+
import { mkdirSync as mkdirSync4, readFileSync as readFileSync6, rmSync as rmSync3 } from "node:fs";
|
|
9455
9611
|
|
|
9456
9612
|
// ../../utils/src/atomic-write.ts
|
|
9457
9613
|
import {
|
|
@@ -9459,9 +9615,12 @@ import {
|
|
|
9459
9615
|
fsyncSync,
|
|
9460
9616
|
openSync,
|
|
9461
9617
|
renameSync as renameSync2,
|
|
9618
|
+
rmSync as rmSync2,
|
|
9462
9619
|
unlinkSync as unlinkSync2,
|
|
9463
9620
|
writeFileSync as writeFileSync4
|
|
9464
9621
|
} from "node:fs";
|
|
9622
|
+
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
9623
|
+
import { dirname as dirname8 } from "node:path";
|
|
9465
9624
|
var TOLERATED_FSYNC_CODES = new Set([
|
|
9466
9625
|
"EPERM",
|
|
9467
9626
|
"EACCES",
|
|
@@ -9483,29 +9642,41 @@ function tolerantFsyncSync(fileDescriptor, fsyncImpl) {
|
|
|
9483
9642
|
}
|
|
9484
9643
|
}
|
|
9485
9644
|
function writeFileAtomically(filePath, content, options = {}) {
|
|
9486
|
-
const
|
|
9487
|
-
|
|
9488
|
-
const
|
|
9489
|
-
try {
|
|
9490
|
-
tolerantFsyncSync(tempFileDescriptor, options.fsyncSync ?? fsyncSync);
|
|
9491
|
-
} finally {
|
|
9492
|
-
closeSync(tempFileDescriptor);
|
|
9493
|
-
}
|
|
9645
|
+
const platform = options.platform ?? process.platform;
|
|
9646
|
+
const fsyncImpl = options.fsyncSync ?? fsyncSync;
|
|
9647
|
+
const tempPath = `${filePath}.${process.pid}.${randomUUID2()}.tmp`;
|
|
9494
9648
|
try {
|
|
9495
|
-
|
|
9496
|
-
|
|
9497
|
-
|
|
9498
|
-
|
|
9649
|
+
writeFileSync4(tempPath, content, "utf-8");
|
|
9650
|
+
const tempFileDescriptor = openSync(tempPath, "r+");
|
|
9651
|
+
try {
|
|
9652
|
+
tolerantFsyncSync(tempFileDescriptor, fsyncImpl);
|
|
9653
|
+
} finally {
|
|
9654
|
+
closeSync(tempFileDescriptor);
|
|
9655
|
+
}
|
|
9656
|
+
try {
|
|
9657
|
+
renameSync2(tempPath, filePath);
|
|
9658
|
+
} catch (error) {
|
|
9659
|
+
const isPermissionError = error instanceof Error && (error.message.includes("EPERM") || error.message.includes("EACCES"));
|
|
9660
|
+
if (platform !== "win32" || !isPermissionError)
|
|
9661
|
+
throw error;
|
|
9499
9662
|
unlinkSync2(filePath);
|
|
9500
9663
|
renameSync2(tempPath, filePath);
|
|
9664
|
+
}
|
|
9665
|
+
if (platform === "win32")
|
|
9501
9666
|
return;
|
|
9667
|
+
const directoryFileDescriptor = openSync(dirname8(filePath), "r");
|
|
9668
|
+
try {
|
|
9669
|
+
tolerantFsyncSync(directoryFileDescriptor, fsyncImpl);
|
|
9670
|
+
} finally {
|
|
9671
|
+
closeSync(directoryFileDescriptor);
|
|
9502
9672
|
}
|
|
9503
|
-
|
|
9673
|
+
} finally {
|
|
9674
|
+
rmSync2(tempPath, { force: true });
|
|
9504
9675
|
}
|
|
9505
9676
|
}
|
|
9506
9677
|
|
|
9507
9678
|
// components/codegraph/src/session-start-paths.ts
|
|
9508
|
-
import { basename as basename3, dirname as
|
|
9679
|
+
import { basename as basename3, dirname as dirname9, join as join14 } from "node:path";
|
|
9509
9680
|
function resolveSessionStartStatePaths(homeDir, projectRoot) {
|
|
9510
9681
|
const canonicalProjectRoot = canonicalizeCodegraphPath(projectRoot);
|
|
9511
9682
|
const workspacePaths = resolveCodegraphWorkspacePaths(canonicalProjectRoot, { homeDir });
|
|
@@ -9520,7 +9691,7 @@ function resolveSessionStartStatePaths(homeDir, projectRoot) {
|
|
|
9520
9691
|
};
|
|
9521
9692
|
}
|
|
9522
9693
|
function stateParent(path) {
|
|
9523
|
-
return
|
|
9694
|
+
return dirname9(path);
|
|
9524
9695
|
}
|
|
9525
9696
|
|
|
9526
9697
|
// components/codegraph/src/session-start-cooldown.ts
|
|
@@ -9556,7 +9727,7 @@ function recordSessionStartFailure(options) {
|
|
|
9556
9727
|
}
|
|
9557
9728
|
function clearSessionStartCooldown(options) {
|
|
9558
9729
|
const path = resolveSessionStartStatePaths(options.homeDir, options.projectRoot).cooldownPath;
|
|
9559
|
-
|
|
9730
|
+
rmSync3(path, { force: true });
|
|
9560
9731
|
}
|
|
9561
9732
|
function cooldownDuration(baseCooldownMs, failureCount, maxCooldownMs) {
|
|
9562
9733
|
let duration3 = Math.min(baseCooldownMs, maxCooldownMs);
|
|
@@ -9624,7 +9795,8 @@ function spawnDetachedSessionStartWorker(invocation) {
|
|
|
9624
9795
|
const child = spawn(invocation.command, [...invocation.args], {
|
|
9625
9796
|
detached: true,
|
|
9626
9797
|
env: invocation.env,
|
|
9627
|
-
stdio: "ignore"
|
|
9798
|
+
stdio: "ignore",
|
|
9799
|
+
windowsHide: true
|
|
9628
9800
|
});
|
|
9629
9801
|
child.unref();
|
|
9630
9802
|
}
|
|
@@ -9639,8 +9811,8 @@ function writeSessionStartNotice(stdout, notice) {
|
|
|
9639
9811
|
}
|
|
9640
9812
|
|
|
9641
9813
|
// components/codegraph/src/session-start-lock.ts
|
|
9642
|
-
import { randomUUID as
|
|
9643
|
-
import { mkdirSync as mkdirSync5, readFileSync as readFileSync7, rmSync as
|
|
9814
|
+
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
9815
|
+
import { mkdirSync as mkdirSync5, readFileSync as readFileSync7, rmSync as rmSync4, statSync as statSync3, writeFileSync as writeFileSync5 } from "node:fs";
|
|
9644
9816
|
function acquireSessionStartLock(options) {
|
|
9645
9817
|
const paths = resolveSessionStartStatePaths(options.homeDir, options.projectRoot);
|
|
9646
9818
|
const lockPath = paths.lockPath;
|
|
@@ -9669,7 +9841,7 @@ function releaseSessionStartLock(lock) {
|
|
|
9669
9841
|
if (snapshot.kind !== "present" || snapshot.token !== lock.token)
|
|
9670
9842
|
return false;
|
|
9671
9843
|
try {
|
|
9672
|
-
|
|
9844
|
+
rmSync4(lock.path, { force: true });
|
|
9673
9845
|
return true;
|
|
9674
9846
|
} catch (error) {
|
|
9675
9847
|
if (error instanceof Error)
|
|
@@ -9694,7 +9866,7 @@ function reclaimStaleLock(lockPath, staleSnapshot, options) {
|
|
|
9694
9866
|
const changed = current.raw !== staleSnapshot.raw || current.mtimeMs !== staleSnapshot.mtimeMs;
|
|
9695
9867
|
if (changed || options.nowMs - current.mtimeMs < options.staleMs)
|
|
9696
9868
|
return { kind: "locked" };
|
|
9697
|
-
|
|
9869
|
+
rmSync4(lockPath, { force: true });
|
|
9698
9870
|
}
|
|
9699
9871
|
const acquired = tryCreateLock(lockPath, options.projectRoot);
|
|
9700
9872
|
return acquired.kind === "acquired" ? { ...acquired, recoveredStale: true } : acquired;
|
|
@@ -9703,11 +9875,11 @@ function reclaimStaleLock(lockPath, staleSnapshot, options) {
|
|
|
9703
9875
|
return { kind: "inconclusive", reason: error.message };
|
|
9704
9876
|
throw error;
|
|
9705
9877
|
} finally {
|
|
9706
|
-
|
|
9878
|
+
rmSync4(reclaimPath, { force: true });
|
|
9707
9879
|
}
|
|
9708
9880
|
}
|
|
9709
9881
|
function tryCreateLock(lockPath, projectRoot) {
|
|
9710
|
-
const token =
|
|
9882
|
+
const token = randomUUID3();
|
|
9711
9883
|
try {
|
|
9712
9884
|
writeFileSync5(lockPath, `${JSON.stringify({ projectRoot, token })}
|
|
9713
9885
|
`, {
|
|
@@ -9726,7 +9898,7 @@ function tryCreateLock(lockPath, projectRoot) {
|
|
|
9726
9898
|
}
|
|
9727
9899
|
function tryCreateMarker(path) {
|
|
9728
9900
|
try {
|
|
9729
|
-
writeFileSync5(path, `${
|
|
9901
|
+
writeFileSync5(path, `${randomUUID3()}
|
|
9730
9902
|
`, { encoding: "utf8", flag: "wx", mode: 384 });
|
|
9731
9903
|
return { kind: "acquired" };
|
|
9732
9904
|
} catch (error) {
|
|
@@ -9764,17 +9936,17 @@ function errorCode2(error) {
|
|
|
9764
9936
|
|
|
9765
9937
|
// components/codegraph/src/session-start-outcome.ts
|
|
9766
9938
|
import { appendFileSync as appendFileSync2, mkdirSync as mkdirSync6 } from "node:fs";
|
|
9767
|
-
import { dirname as
|
|
9939
|
+
import { dirname as dirname10, join as join15 } from "node:path";
|
|
9768
9940
|
function appendSessionStartOutcome(homeDir, outcome, nowMs = Date.now()) {
|
|
9769
9941
|
const path = join15(codegraphDataRoot(homeDir), "session-start.jsonl");
|
|
9770
|
-
mkdirSync6(
|
|
9942
|
+
mkdirSync6(dirname10(path), { recursive: true });
|
|
9771
9943
|
appendFileSync2(path, `${JSON.stringify({ ...outcome, timestamp: new Date(nowMs).toISOString() })}
|
|
9772
9944
|
`);
|
|
9773
9945
|
}
|
|
9774
9946
|
|
|
9775
9947
|
// components/codegraph/src/session-start-project.ts
|
|
9776
9948
|
import { realpathSync as realpathSync7, statSync as statSync4 } from "node:fs";
|
|
9777
|
-
import { dirname as
|
|
9949
|
+
import { dirname as dirname11, join as join16 } from "node:path";
|
|
9778
9950
|
function probeCodegraphProject(projectRoot, options = {}) {
|
|
9779
9951
|
const resolved = resolveProjectRoot(projectRoot);
|
|
9780
9952
|
if (resolved.kind === "inconclusive")
|
|
@@ -9806,14 +9978,14 @@ function probeResolvedExactProject(projectRoot, probeDatabase) {
|
|
|
9806
9978
|
return { kind: "uninitialized" };
|
|
9807
9979
|
}
|
|
9808
9980
|
function probeResolvedAncestors(projectRoot, probeDatabase) {
|
|
9809
|
-
let ancestorRoot =
|
|
9981
|
+
let ancestorRoot = dirname11(projectRoot);
|
|
9810
9982
|
while (ancestorRoot !== projectRoot) {
|
|
9811
9983
|
const database = probeDatabase(ancestorRoot);
|
|
9812
9984
|
if (database.kind === "present")
|
|
9813
9985
|
return { ancestorRoot, kind: "nested-root" };
|
|
9814
9986
|
if (database.kind === "inconclusive")
|
|
9815
9987
|
return database;
|
|
9816
|
-
const parent =
|
|
9988
|
+
const parent = dirname11(ancestorRoot);
|
|
9817
9989
|
if (parent === ancestorRoot)
|
|
9818
9990
|
break;
|
|
9819
9991
|
ancestorRoot = parent;
|
|
@@ -9975,7 +10147,7 @@ function parseNodeMajor(version2) {
|
|
|
9975
10147
|
}
|
|
9976
10148
|
|
|
9977
10149
|
// ../../utils/src/codegraph/provision.ts
|
|
9978
|
-
import { createHash as createHash2, randomUUID as
|
|
10150
|
+
import { createHash as createHash2, randomUUID as randomUUID4 } from "node:crypto";
|
|
9979
10151
|
import { execFile as execFile2 } from "node:child_process";
|
|
9980
10152
|
import { chmod, mkdir, readdir, readFile, rename, rm, rmdir, stat, writeFile } from "node:fs/promises";
|
|
9981
10153
|
import { existsSync as existsSync9 } from "node:fs";
|
|
@@ -10095,7 +10267,7 @@ async function installExtractedBundle(extractDir, installDir, executableName) {
|
|
|
10095
10267
|
}
|
|
10096
10268
|
async function installAsset(layout) {
|
|
10097
10269
|
const { asset, downloader, installDir, version: version2 } = layout;
|
|
10098
|
-
const stagingDir = join18(installDir, ".staging",
|
|
10270
|
+
const stagingDir = join18(installDir, ".staging", randomUUID4());
|
|
10099
10271
|
const archivePath = join18(stagingDir, basename4(asset.url));
|
|
10100
10272
|
const extractDir = join18(stagingDir, "extract");
|
|
10101
10273
|
try {
|
|
@@ -10158,7 +10330,7 @@ async function ensureCodegraphProvisioned(options) {
|
|
|
10158
10330
|
import { existsSync as existsSync10 } from "node:fs";
|
|
10159
10331
|
import { homedir as homedir10 } from "node:os";
|
|
10160
10332
|
import { spawnSync } from "node:child_process";
|
|
10161
|
-
import { basename as basename5, dirname as
|
|
10333
|
+
import { basename as basename5, dirname as dirname12, join as join20 } from "node:path";
|
|
10162
10334
|
import { createRequire } from "node:module";
|
|
10163
10335
|
|
|
10164
10336
|
// ../../utils/src/runtime/which.ts
|
|
@@ -10311,7 +10483,7 @@ function defaultProvisionedBin(homeDir, fileExists) {
|
|
|
10311
10483
|
function resolveBundledShim(requireResolve, fileExists) {
|
|
10312
10484
|
try {
|
|
10313
10485
|
const packageJson = requireResolve(`${CODEGRAPH_PACKAGE}/package.json`);
|
|
10314
|
-
const packageRoot =
|
|
10486
|
+
const packageRoot = dirname12(packageJson);
|
|
10315
10487
|
const candidates = [join20(packageRoot, "bin", "codegraph.js"), join20(packageRoot, "npm-shim.js")];
|
|
10316
10488
|
return candidates.find((candidate) => fileExists(candidate)) ?? null;
|
|
10317
10489
|
} catch (error) {
|
|
@@ -11532,7 +11704,11 @@ function createParentWatchdog(config2, onDeadParent) {
|
|
|
11532
11704
|
const probeAlive = config2.probeAlive ?? isProcessAlive2;
|
|
11533
11705
|
let fired = false;
|
|
11534
11706
|
const timer = setInterval(() => {
|
|
11535
|
-
if (fired
|
|
11707
|
+
if (fired)
|
|
11708
|
+
return;
|
|
11709
|
+
const alive = probeAlive(parentPid);
|
|
11710
|
+
config2.onPoll?.(alive);
|
|
11711
|
+
if (alive)
|
|
11536
11712
|
return;
|
|
11537
11713
|
fired = true;
|
|
11538
11714
|
onDeadParent(parentPid, pollIntervalMs);
|
|
@@ -11584,7 +11760,8 @@ async function runBridgedCodegraphProcess(command, args, options) {
|
|
|
11584
11760
|
const child = spawn3(invocation.command, invocation.args, {
|
|
11585
11761
|
cwd: options.cwd,
|
|
11586
11762
|
env: options.env,
|
|
11587
|
-
stdio: ["pipe", "pipe", "inherit"]
|
|
11763
|
+
stdio: ["pipe", "pipe", "inherit"],
|
|
11764
|
+
windowsHide: true
|
|
11588
11765
|
});
|
|
11589
11766
|
const childInput = child.stdin;
|
|
11590
11767
|
const childOutput = child.stdout;
|
|
@@ -11616,8 +11793,8 @@ async function runBridgedCodegraphProcess(command, args, options) {
|
|
|
11616
11793
|
destroyChildPipes();
|
|
11617
11794
|
terminateCodegraphChild(child);
|
|
11618
11795
|
});
|
|
11619
|
-
const clientForwardingDone = forwardClientToCodegraph(options.input, childInput, pendingResponses, (
|
|
11620
|
-
defaultResponseMode =
|
|
11796
|
+
const clientForwardingDone = forwardClientToCodegraph(options.input, childInput, pendingResponses, (mode2) => {
|
|
11797
|
+
defaultResponseMode = mode2;
|
|
11621
11798
|
}, () => parentWatchdogFired);
|
|
11622
11799
|
const responseForwardingDone = forwardCodegraphToClient(childOutput, options.output, pendingResponses, () => defaultResponseMode, () => parentWatchdogFired);
|
|
11623
11800
|
const bridgeDone = Promise.all([clientForwardingDone, responseForwardingDone]);
|