oh-my-opencode 5.1.83 → 5.1.86
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/remove-deadcode.md +1 -1
- package/.agents/skills/remove-deadcode/SKILL.md +1 -1
- package/.agents/skills/work-with-pr/SKILL.md +2 -2
- package/.opencode/command/remove-deadcode.md +1 -1
- package/.opencode/skills/work-with-pr/SKILL.md +2 -2
- package/THIRD-PARTY-NOTICES.md +9 -3
- package/dist/cli/cli-program.d.ts +3 -0
- package/dist/cli/index.js +1197 -1008
- package/dist/cli/service-auth/devices.d.ts +5 -2
- package/dist/cli-node/index.js +1197 -1008
- package/dist/config/schema/agent-names.d.ts +1 -0
- package/dist/index.js +194 -213
- package/dist/skills/browser/SKILL.md +100 -91
- package/dist/skills/browser/references/commands.md +92 -27
- package/dist/skills/browser/references/desktop.md +22 -0
- package/dist/skills/browser/references/install.md +18 -0
- package/dist/skills/browser/references/owned-engine/README.md +7 -2
- package/dist/skills/browser/references/owned-engine/frames-and-humans.md +9 -2
- package/dist/skills/browser/references/owned-engine/network.md +13 -7
- package/dist/skills/browser/references/recipes/1password.md +6 -2
- package/dist/skills/browser/runtime/omowright/index.js +15 -15
- package/dist/skills/browser/runtime/omowright/manifest.json +4 -4
- package/dist/skills/debugging/SKILL.md +1 -1
- package/dist/skills/debugging/references/tools/browser-qa.md +1 -1
- package/dist/skills/git/SKILL.md +62 -0
- package/dist/skills/git/agents/openai.yaml +13 -0
- package/dist/skills/github/SKILL.md +94 -0
- package/dist/skills/github/references/branch-rules.md +129 -0
- package/dist/skills/github/references/evidence-attachments.md +16 -0
- package/dist/skills/github/references/repo-setup.md +152 -0
- package/dist/skills/github/references/waiting.md +52 -0
- package/dist/skills/github/references/workflows.md +161 -0
- package/dist/skills/github/scripts/cli.ts +8 -0
- package/dist/skills/github/scripts/package.json +12 -0
- package/dist/skills/github/scripts/sdk.ts +11 -0
- package/dist/skills/github/scripts/src/account.ts +243 -0
- package/dist/skills/github/scripts/src/actions-write.ts +86 -0
- package/dist/skills/github/scripts/src/actions.ts +210 -0
- package/dist/skills/github/scripts/src/attestations.ts +136 -0
- package/dist/skills/github/scripts/src/blake2b.ts +102 -0
- package/dist/skills/github/scripts/src/branch-protection.ts +192 -0
- package/dist/skills/github/scripts/src/caches.ts +105 -0
- package/dist/skills/github/scripts/src/checks.ts +107 -0
- package/dist/skills/github/scripts/src/codespaces.ts +230 -0
- package/dist/skills/github/scripts/src/conversation-lock.ts +50 -0
- package/dist/skills/github/scripts/src/discussion-list.ts +126 -0
- package/dist/skills/github/scripts/src/discussion-lookup.ts +127 -0
- package/dist/skills/github/scripts/src/discussions.ts +234 -0
- package/dist/skills/github/scripts/src/env.ts +100 -0
- package/dist/skills/github/scripts/src/errors.ts +79 -0
- package/dist/skills/github/scripts/src/fields.ts +27 -0
- package/dist/skills/github/scripts/src/gist-shape.ts +58 -0
- package/dist/skills/github/scripts/src/gists-write.ts +130 -0
- package/dist/skills/github/scripts/src/gists.ts +118 -0
- package/dist/skills/github/scripts/src/git-auth.ts +46 -0
- package/dist/skills/github/scripts/src/http.ts +159 -0
- package/dist/skills/github/scripts/src/issue-develop.ts +118 -0
- package/dist/skills/github/scripts/src/issues-extra.ts +135 -0
- package/dist/skills/github/scripts/src/issues-write.ts +174 -0
- package/dist/skills/github/scripts/src/issues.ts +156 -0
- package/dist/skills/github/scripts/src/keys.ts +176 -0
- package/dist/skills/github/scripts/src/labels.ts +209 -0
- package/dist/skills/github/scripts/src/merge.ts +115 -0
- package/dist/skills/github/scripts/src/poly1305.ts +22 -0
- package/dist/skills/github/scripts/src/pr-checkout.ts +92 -0
- package/dist/skills/github/scripts/src/pr-view.ts +106 -0
- package/dist/skills/github/scripts/src/project-fields.ts +144 -0
- package/dist/skills/github/scripts/src/project-item-edit.ts +153 -0
- package/dist/skills/github/scripts/src/project-items.ts +191 -0
- package/dist/skills/github/scripts/src/project-links.ts +104 -0
- package/dist/skills/github/scripts/src/project-ref.ts +145 -0
- package/dist/skills/github/scripts/src/project-state.ts +99 -0
- package/dist/skills/github/scripts/src/projects.ts +158 -0
- package/dist/skills/github/scripts/src/pulls-extra.ts +165 -0
- package/dist/skills/github/scripts/src/pulls-read.ts +176 -0
- package/dist/skills/github/scripts/src/pulls-review.ts +206 -0
- package/dist/skills/github/scripts/src/pulls-write.ts +187 -0
- package/dist/skills/github/scripts/src/raw.ts +78 -0
- package/dist/skills/github/scripts/src/read.ts +77 -0
- package/dist/skills/github/scripts/src/release-assets.ts +111 -0
- package/dist/skills/github/scripts/src/release-download.ts +151 -0
- package/dist/skills/github/scripts/src/release-write.ts +197 -0
- package/dist/skills/github/scripts/src/repo-admin.ts +112 -0
- package/dist/skills/github/scripts/src/repo-content.ts +187 -0
- package/dist/skills/github/scripts/src/repo-create.ts +139 -0
- package/dist/skills/github/scripts/src/repo-extras.ts +217 -0
- package/dist/skills/github/scripts/src/repo-list.ts +143 -0
- package/dist/skills/github/scripts/src/repo-settings.ts +176 -0
- package/dist/skills/github/scripts/src/repo-sync.ts +81 -0
- package/dist/skills/github/scripts/src/repo-url.ts +104 -0
- package/dist/skills/github/scripts/src/repos.ts +87 -0
- package/dist/skills/github/scripts/src/ruleset-shape.ts +96 -0
- package/dist/skills/github/scripts/src/rulesets-write.ts +124 -0
- package/dist/skills/github/scripts/src/rulesets.ts +80 -0
- package/dist/skills/github/scripts/src/run-download.ts +88 -0
- package/dist/skills/github/scripts/src/salsa20.ts +97 -0
- package/dist/skills/github/scripts/src/scopes.ts +165 -0
- package/dist/skills/github/scripts/src/sealed-box.ts +75 -0
- package/dist/skills/github/scripts/src/search-commits.ts +114 -0
- package/dist/skills/github/scripts/src/search.ts +116 -0
- package/dist/skills/github/scripts/src/secrets.ts +131 -0
- package/dist/skills/github/scripts/src/snappy.ts +57 -0
- package/dist/skills/github/scripts/src/status-search.ts +55 -0
- package/dist/skills/github/scripts/src/transfer.ts +97 -0
- package/dist/skills/github/scripts/src/types.ts +75 -0
- package/dist/skills/github/scripts/src/variables.ts +86 -0
- package/dist/skills/github/scripts/src/wait.ts +164 -0
- package/dist/skills/github/scripts/src/wire.ts +159 -0
- package/dist/skills/github/scripts/src/workflows.ts +144 -0
- package/dist/skills/github/scripts/src/zip.ts +104 -0
- package/dist/skills/github/scripts/surface.ts +106 -0
- package/dist/skills/github/scripts/vendor/surface/SOURCE.json +15 -0
- package/dist/skills/github/scripts/vendor/surface/cli.ts +203 -0
- package/dist/skills/github/scripts/vendor/surface/flags.ts +195 -0
- package/dist/skills/github/scripts/vendor/surface/help.ts +89 -0
- package/dist/skills/github/scripts/vendor/surface/http.ts +180 -0
- package/dist/skills/github/scripts/vendor/surface/index.ts +44 -0
- package/dist/skills/github/scripts/vendor/surface/mcp.ts +241 -0
- package/dist/skills/github/scripts/vendor/surface/schema.ts +200 -0
- package/dist/skills/github/scripts/vendor/surface/stdio.ts +54 -0
- package/dist/skills/github/scripts/vendor/surface/surface.ts +250 -0
- package/dist/skills/github/scripts/vendor/surface/tools.ts +80 -0
- package/dist/skills/programming/SKILL.md +51 -320
- package/dist/skills/programming/references/go/README.md +1 -0
- package/dist/skills/programming/references/python/README.md +21 -3
- package/dist/skills/programming/references/python/error-handling.md +14 -0
- package/dist/skills/programming/references/rust/README.md +5 -1
- package/dist/skills/programming/references/typescript/README.md +9 -3
- package/dist/skills/programming/references/typescript/error-handling.md +18 -0
- package/dist/skills/ultimate-browsing/SKILL.md +1 -1
- package/dist/skills/ulw-execute/SKILL.md +1 -1
- package/dist/skills/visual-qa/references/browser-setup.md +5 -5
- package/dist/tui.js +32 -29
- package/package.json +28 -26
- package/packages/omo-codex/plugin/.codex-plugin/plugin.json +1 -1
- package/packages/omo-codex/plugin/components/bootstrap/dist/cli.js +2 -2
- 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/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/hooks/hooks.json +4 -4
- package/packages/omo-codex/plugin/components/rules/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/dist/cli.js +8711 -172
- package/packages/omo-codex/plugin/components/telemetry/dist/posthog.js +8660 -121
- 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/telemetry/src/posthog.ts +5 -0
- package/packages/omo-codex/plugin/components/telemetry/tsconfig.json +2 -2
- 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/ulw-execute-continuation/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/ulw-execute-continuation/package.json +1 -1
- package/packages/omo-codex/plugin/components/ulw-loop/hooks/hooks.json +5 -5
- 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 +1 -1
- package/packages/omo-codex/plugin/components/ulw-loop/skills/ulw-loop/references/full-workflow.md +3 -3
- 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-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/post-tool-use-recording-spawn-admission.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-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 +1 -1
- package/packages/omo-codex/plugin/hooks/stop-checking-ulw-loop-resume.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 +12 -12
- package/packages/omo-codex/plugin/package.json +1 -1
- package/packages/omo-codex/plugin/shared/src/config-loader.ts +15 -1
- package/packages/omo-codex/plugin/skills/browser/SKILL.md +100 -91
- package/packages/omo-codex/plugin/skills/browser/references/commands.md +92 -27
- package/packages/omo-codex/plugin/skills/browser/references/desktop.md +22 -0
- package/packages/omo-codex/plugin/skills/browser/references/install.md +18 -0
- package/packages/omo-codex/plugin/skills/browser/references/owned-engine/README.md +7 -2
- package/packages/omo-codex/plugin/skills/browser/references/owned-engine/frames-and-humans.md +9 -2
- package/packages/omo-codex/plugin/skills/browser/references/owned-engine/network.md +13 -7
- package/packages/omo-codex/plugin/skills/browser/references/recipes/1password.md +6 -2
- package/packages/omo-codex/plugin/skills/browser/runtime/omowright/index.js +15 -15
- package/packages/omo-codex/plugin/skills/browser/runtime/omowright/manifest.json +4 -4
- package/packages/omo-codex/plugin/skills/debugging/SKILL.md +1 -1
- package/packages/omo-codex/plugin/skills/debugging/references/tools/browser-qa.md +1 -1
- package/packages/omo-codex/plugin/skills/git/SKILL.md +62 -0
- package/packages/omo-codex/plugin/skills/git/agents/openai.yaml +13 -0
- package/packages/omo-codex/plugin/skills/github/SKILL.md +94 -0
- package/packages/omo-codex/plugin/skills/github/agents/openai.yaml +2 -0
- package/packages/omo-codex/plugin/skills/github/references/branch-rules.md +129 -0
- package/packages/omo-codex/plugin/skills/github/references/evidence-attachments.md +16 -0
- package/packages/omo-codex/plugin/skills/github/references/repo-setup.md +152 -0
- package/packages/omo-codex/plugin/skills/github/references/waiting.md +52 -0
- package/packages/omo-codex/plugin/skills/github/references/workflows.md +161 -0
- package/packages/omo-codex/plugin/skills/github/scripts/cli.ts +8 -0
- package/packages/omo-codex/plugin/skills/github/scripts/package.json +12 -0
- package/packages/omo-codex/plugin/skills/github/scripts/sdk.ts +11 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/account.ts +243 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/actions-write.ts +86 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/actions.ts +210 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/attestations.ts +136 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/blake2b.ts +102 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/branch-protection.ts +192 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/caches.ts +105 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/checks.ts +107 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/codespaces.ts +230 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/conversation-lock.ts +50 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/discussion-list.ts +126 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/discussion-lookup.ts +127 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/discussions.ts +234 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/env.ts +100 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/errors.ts +79 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/fields.ts +27 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/gist-shape.ts +58 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/gists-write.ts +130 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/gists.ts +118 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/git-auth.ts +46 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/http.ts +159 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/issue-develop.ts +118 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/issues-extra.ts +135 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/issues-write.ts +174 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/issues.ts +156 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/keys.ts +176 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/labels.ts +209 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/merge.ts +115 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/poly1305.ts +22 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/pr-checkout.ts +92 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/pr-view.ts +106 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/project-fields.ts +144 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/project-item-edit.ts +153 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/project-items.ts +191 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/project-links.ts +104 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/project-ref.ts +145 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/project-state.ts +99 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/projects.ts +158 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/pulls-extra.ts +165 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/pulls-read.ts +176 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/pulls-review.ts +206 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/pulls-write.ts +187 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/raw.ts +78 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/read.ts +77 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/release-assets.ts +111 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/release-download.ts +151 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/release-write.ts +197 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/repo-admin.ts +112 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/repo-content.ts +187 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/repo-create.ts +139 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/repo-extras.ts +217 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/repo-list.ts +143 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/repo-settings.ts +176 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/repo-sync.ts +81 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/repo-url.ts +104 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/repos.ts +87 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/ruleset-shape.ts +96 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/rulesets-write.ts +124 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/rulesets.ts +80 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/run-download.ts +88 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/salsa20.ts +97 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/scopes.ts +165 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/sealed-box.ts +75 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/search-commits.ts +114 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/search.ts +116 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/secrets.ts +131 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/snappy.ts +57 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/status-search.ts +55 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/transfer.ts +97 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/types.ts +75 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/variables.ts +86 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/wait.ts +164 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/wire.ts +159 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/workflows.ts +144 -0
- package/packages/omo-codex/plugin/skills/github/scripts/src/zip.ts +104 -0
- package/packages/omo-codex/plugin/skills/github/scripts/surface.ts +106 -0
- package/packages/omo-codex/plugin/skills/github/scripts/vendor/surface/SOURCE.json +15 -0
- package/packages/omo-codex/plugin/skills/github/scripts/vendor/surface/cli.ts +203 -0
- package/packages/omo-codex/plugin/skills/github/scripts/vendor/surface/flags.ts +195 -0
- package/packages/omo-codex/plugin/skills/github/scripts/vendor/surface/help.ts +89 -0
- package/packages/omo-codex/plugin/skills/github/scripts/vendor/surface/http.ts +180 -0
- package/packages/omo-codex/plugin/skills/github/scripts/vendor/surface/index.ts +44 -0
- package/packages/omo-codex/plugin/skills/github/scripts/vendor/surface/mcp.ts +241 -0
- package/packages/omo-codex/plugin/skills/github/scripts/vendor/surface/schema.ts +200 -0
- package/packages/omo-codex/plugin/skills/github/scripts/vendor/surface/stdio.ts +54 -0
- package/packages/omo-codex/plugin/skills/github/scripts/vendor/surface/surface.ts +250 -0
- package/packages/omo-codex/plugin/skills/github/scripts/vendor/surface/tools.ts +80 -0
- package/packages/omo-codex/plugin/skills/programming/SKILL.md +51 -320
- package/packages/omo-codex/plugin/skills/programming/references/go/README.md +1 -0
- package/packages/omo-codex/plugin/skills/programming/references/python/README.md +21 -3
- package/packages/omo-codex/plugin/skills/programming/references/python/error-handling.md +14 -0
- package/packages/omo-codex/plugin/skills/programming/references/rust/README.md +5 -1
- package/packages/omo-codex/plugin/skills/programming/references/typescript/README.md +9 -3
- package/packages/omo-codex/plugin/skills/programming/references/typescript/error-handling.md +18 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/SKILL.md +1 -1
- package/packages/omo-codex/plugin/skills/ulw-execute/SKILL.md +1 -1
- package/packages/omo-codex/plugin/skills/ulw-loop/SKILL.md +1 -1
- package/packages/omo-codex/plugin/skills/ulw-loop/references/full-workflow.md +3 -3
- package/packages/omo-codex/plugin/skills/visual-qa/references/browser-setup.md +5 -5
- package/packages/omo-codex/plugin/test/sync-skills-codex-compatibility.test.mjs +1 -1
- package/packages/omo-codex/plugin/test/sync-skills-test-support.mjs +2 -1
- package/packages/omo-codex/plugin/test/sync-skills.test.mjs +5 -5
- package/packages/omo-codex/scripts/install-dist/install-local.mjs +21279 -20738
- package/packages/shared-skills/skills/browser/SKILL.md +100 -91
- package/packages/shared-skills/skills/browser/references/commands.md +92 -27
- package/packages/shared-skills/skills/browser/references/desktop.md +22 -0
- package/packages/shared-skills/skills/browser/references/install.md +18 -0
- package/packages/shared-skills/skills/browser/references/owned-engine/README.md +7 -2
- package/packages/shared-skills/skills/browser/references/owned-engine/frames-and-humans.md +9 -2
- package/packages/shared-skills/skills/browser/references/owned-engine/network.md +13 -7
- package/packages/shared-skills/skills/browser/references/recipes/1password.md +6 -2
- package/packages/shared-skills/skills/browser/runtime/omowright/index.js +15 -15
- package/packages/shared-skills/skills/browser/runtime/omowright/manifest.json +4 -4
- package/packages/shared-skills/skills/debugging/SKILL.md +1 -1
- package/packages/shared-skills/skills/debugging/references/tools/browser-qa.md +1 -1
- package/packages/shared-skills/skills/git/SKILL.md +62 -0
- package/packages/shared-skills/skills/git/agents/openai.yaml +13 -0
- package/packages/shared-skills/skills/github/SKILL.md +94 -0
- package/packages/shared-skills/skills/github/references/branch-rules.md +129 -0
- package/packages/shared-skills/skills/github/references/evidence-attachments.md +16 -0
- package/packages/shared-skills/skills/github/references/repo-setup.md +152 -0
- package/packages/shared-skills/skills/github/references/waiting.md +52 -0
- package/packages/shared-skills/skills/github/references/workflows.md +161 -0
- package/packages/shared-skills/skills/github/scripts/cli.ts +8 -0
- package/packages/shared-skills/skills/github/scripts/package.json +12 -0
- package/packages/shared-skills/skills/github/scripts/sdk.ts +11 -0
- package/packages/shared-skills/skills/github/scripts/src/account.ts +243 -0
- package/packages/shared-skills/skills/github/scripts/src/actions-write.ts +86 -0
- package/packages/shared-skills/skills/github/scripts/src/actions.ts +210 -0
- package/packages/shared-skills/skills/github/scripts/src/attestations.ts +136 -0
- package/packages/shared-skills/skills/github/scripts/src/blake2b.ts +102 -0
- package/packages/shared-skills/skills/github/scripts/src/branch-protection.ts +192 -0
- package/packages/shared-skills/skills/github/scripts/src/caches.ts +105 -0
- package/packages/shared-skills/skills/github/scripts/src/checks.ts +107 -0
- package/packages/shared-skills/skills/github/scripts/src/codespaces.ts +230 -0
- package/packages/shared-skills/skills/github/scripts/src/conversation-lock.ts +50 -0
- package/packages/shared-skills/skills/github/scripts/src/discussion-list.ts +126 -0
- package/packages/shared-skills/skills/github/scripts/src/discussion-lookup.ts +127 -0
- package/packages/shared-skills/skills/github/scripts/src/discussions.ts +234 -0
- package/packages/shared-skills/skills/github/scripts/src/env.ts +100 -0
- package/packages/shared-skills/skills/github/scripts/src/errors.ts +79 -0
- package/packages/shared-skills/skills/github/scripts/src/fields.ts +27 -0
- package/packages/shared-skills/skills/github/scripts/src/gist-shape.ts +58 -0
- package/packages/shared-skills/skills/github/scripts/src/gists-write.ts +130 -0
- package/packages/shared-skills/skills/github/scripts/src/gists.ts +118 -0
- package/packages/shared-skills/skills/github/scripts/src/git-auth.ts +46 -0
- package/packages/shared-skills/skills/github/scripts/src/http.ts +159 -0
- package/packages/shared-skills/skills/github/scripts/src/issue-develop.ts +118 -0
- package/packages/shared-skills/skills/github/scripts/src/issues-extra.ts +135 -0
- package/packages/shared-skills/skills/github/scripts/src/issues-write.ts +174 -0
- package/packages/shared-skills/skills/github/scripts/src/issues.ts +156 -0
- package/packages/shared-skills/skills/github/scripts/src/keys.ts +176 -0
- package/packages/shared-skills/skills/github/scripts/src/labels.ts +209 -0
- package/packages/shared-skills/skills/github/scripts/src/merge.ts +115 -0
- package/packages/shared-skills/skills/github/scripts/src/poly1305.ts +22 -0
- package/packages/shared-skills/skills/github/scripts/src/pr-checkout.ts +92 -0
- package/packages/shared-skills/skills/github/scripts/src/pr-view.ts +106 -0
- package/packages/shared-skills/skills/github/scripts/src/project-fields.ts +144 -0
- package/packages/shared-skills/skills/github/scripts/src/project-item-edit.ts +153 -0
- package/packages/shared-skills/skills/github/scripts/src/project-items.ts +191 -0
- package/packages/shared-skills/skills/github/scripts/src/project-links.ts +104 -0
- package/packages/shared-skills/skills/github/scripts/src/project-ref.ts +145 -0
- package/packages/shared-skills/skills/github/scripts/src/project-state.ts +99 -0
- package/packages/shared-skills/skills/github/scripts/src/projects.ts +158 -0
- package/packages/shared-skills/skills/github/scripts/src/pulls-extra.ts +165 -0
- package/packages/shared-skills/skills/github/scripts/src/pulls-read.ts +176 -0
- package/packages/shared-skills/skills/github/scripts/src/pulls-review.ts +206 -0
- package/packages/shared-skills/skills/github/scripts/src/pulls-write.ts +187 -0
- package/packages/shared-skills/skills/github/scripts/src/raw.ts +78 -0
- package/packages/shared-skills/skills/github/scripts/src/read.ts +77 -0
- package/packages/shared-skills/skills/github/scripts/src/release-assets.ts +111 -0
- package/packages/shared-skills/skills/github/scripts/src/release-download.ts +151 -0
- package/packages/shared-skills/skills/github/scripts/src/release-write.ts +197 -0
- package/packages/shared-skills/skills/github/scripts/src/repo-admin.ts +112 -0
- package/packages/shared-skills/skills/github/scripts/src/repo-content.ts +187 -0
- package/packages/shared-skills/skills/github/scripts/src/repo-create.ts +139 -0
- package/packages/shared-skills/skills/github/scripts/src/repo-extras.ts +217 -0
- package/packages/shared-skills/skills/github/scripts/src/repo-list.ts +143 -0
- package/packages/shared-skills/skills/github/scripts/src/repo-settings.ts +176 -0
- package/packages/shared-skills/skills/github/scripts/src/repo-sync.ts +81 -0
- package/packages/shared-skills/skills/github/scripts/src/repo-url.ts +104 -0
- package/packages/shared-skills/skills/github/scripts/src/repos.ts +87 -0
- package/packages/shared-skills/skills/github/scripts/src/ruleset-shape.ts +96 -0
- package/packages/shared-skills/skills/github/scripts/src/rulesets-write.ts +124 -0
- package/packages/shared-skills/skills/github/scripts/src/rulesets.ts +80 -0
- package/packages/shared-skills/skills/github/scripts/src/run-download.ts +88 -0
- package/packages/shared-skills/skills/github/scripts/src/salsa20.ts +97 -0
- package/packages/shared-skills/skills/github/scripts/src/scopes.ts +165 -0
- package/packages/shared-skills/skills/github/scripts/src/sealed-box.ts +75 -0
- package/packages/shared-skills/skills/github/scripts/src/search-commits.ts +114 -0
- package/packages/shared-skills/skills/github/scripts/src/search.ts +116 -0
- package/packages/shared-skills/skills/github/scripts/src/secrets.ts +131 -0
- package/packages/shared-skills/skills/github/scripts/src/snappy.ts +57 -0
- package/packages/shared-skills/skills/github/scripts/src/status-search.ts +55 -0
- package/packages/shared-skills/skills/github/scripts/src/transfer.ts +97 -0
- package/packages/shared-skills/skills/github/scripts/src/types.ts +75 -0
- package/packages/shared-skills/skills/github/scripts/src/variables.ts +86 -0
- package/packages/shared-skills/skills/github/scripts/src/wait.ts +164 -0
- package/packages/shared-skills/skills/github/scripts/src/wire.ts +159 -0
- package/packages/shared-skills/skills/github/scripts/src/workflows.ts +144 -0
- package/packages/shared-skills/skills/github/scripts/src/zip.ts +104 -0
- package/packages/shared-skills/skills/github/scripts/surface.ts +106 -0
- package/packages/shared-skills/skills/github/scripts/vendor/surface/SOURCE.json +15 -0
- package/packages/shared-skills/skills/github/scripts/vendor/surface/cli.ts +203 -0
- package/packages/shared-skills/skills/github/scripts/vendor/surface/flags.ts +195 -0
- package/packages/shared-skills/skills/github/scripts/vendor/surface/help.ts +89 -0
- package/packages/shared-skills/skills/github/scripts/vendor/surface/http.ts +180 -0
- package/packages/shared-skills/skills/github/scripts/vendor/surface/index.ts +44 -0
- package/packages/shared-skills/skills/github/scripts/vendor/surface/mcp.ts +241 -0
- package/packages/shared-skills/skills/github/scripts/vendor/surface/schema.ts +200 -0
- package/packages/shared-skills/skills/github/scripts/vendor/surface/stdio.ts +54 -0
- package/packages/shared-skills/skills/github/scripts/vendor/surface/surface.ts +250 -0
- package/packages/shared-skills/skills/github/scripts/vendor/surface/tools.ts +80 -0
- package/packages/shared-skills/skills/programming/SKILL.md +51 -320
- package/packages/shared-skills/skills/programming/references/go/README.md +1 -0
- package/packages/shared-skills/skills/programming/references/python/README.md +21 -3
- package/packages/shared-skills/skills/programming/references/python/error-handling.md +14 -0
- package/packages/shared-skills/skills/programming/references/rust/README.md +5 -1
- package/packages/shared-skills/skills/programming/references/typescript/README.md +9 -3
- package/packages/shared-skills/skills/programming/references/typescript/error-handling.md +18 -0
- package/packages/shared-skills/skills/ultimate-browsing/SKILL.md +1 -1
- package/packages/shared-skills/skills/ulw-execute/SKILL.md +1 -1
- package/packages/shared-skills/skills/visual-qa/references/browser-setup.md +5 -5
- package/dist/skills/git-master/SKILL.md +0 -114
- package/dist/skills/git-master/agents/openai.yaml +0 -13
- package/packages/omo-codex/plugin/skills/git-master/SKILL.md +0 -114
- package/packages/omo-codex/plugin/skills/git-master/agents/openai.yaml +0 -13
- package/packages/shared-skills/skills/git-master/SKILL.md +0 -114
- package/packages/shared-skills/skills/git-master/agents/openai.yaml +0 -13
package/dist/cli-node/index.js
CHANGED
|
@@ -2133,7 +2133,7 @@ var package_default;
|
|
|
2133
2133
|
var init_package = __esm(() => {
|
|
2134
2134
|
package_default = {
|
|
2135
2135
|
name: "oh-my-opencode",
|
|
2136
|
-
version: "5.1.
|
|
2136
|
+
version: "5.1.86",
|
|
2137
2137
|
description: "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools",
|
|
2138
2138
|
main: "./dist/index.js",
|
|
2139
2139
|
types: "dist/index.d.ts",
|
|
@@ -2327,8 +2327,9 @@ var init_package = __esm(() => {
|
|
|
2327
2327
|
},
|
|
2328
2328
|
homepage: "https://github.com/code-yeongyu/oh-my-openagent#readme",
|
|
2329
2329
|
dependencies: {
|
|
2330
|
-
"@opentui/solid": "^0.
|
|
2330
|
+
"@opentui/solid": "^0.9.9",
|
|
2331
2331
|
"detect-libc": "^2.1.2",
|
|
2332
|
+
"solid-js": "^1.9.20",
|
|
2332
2333
|
zod: "^4.6.6"
|
|
2333
2334
|
},
|
|
2334
2335
|
devDependencies: {
|
|
@@ -2338,11 +2339,10 @@ var init_package = __esm(() => {
|
|
|
2338
2339
|
"@oh-my-opencode/agents-md-core": "workspace:*",
|
|
2339
2340
|
"@oh-my-opencode/ast-grep-mcp": "workspace:*",
|
|
2340
2341
|
"@oh-my-opencode/boulder-state": "workspace:*",
|
|
2341
|
-
"@oh-my-opencode/device-service-core": "workspace:*",
|
|
2342
2342
|
"@oh-my-opencode/claude-code-compat-core": "workspace:*",
|
|
2343
2343
|
"@oh-my-opencode/comment-checker-core": "workspace:*",
|
|
2344
2344
|
"@oh-my-opencode/delegate-core": "workspace:*",
|
|
2345
|
-
"@oh-my-opencode/
|
|
2345
|
+
"@oh-my-opencode/device-service-core": "workspace:*",
|
|
2346
2346
|
"@oh-my-opencode/git-bash-mcp": "workspace:*",
|
|
2347
2347
|
"@oh-my-opencode/hashline-core": "workspace:*",
|
|
2348
2348
|
"@oh-my-opencode/isolation-core": "workspace:*",
|
|
@@ -2352,6 +2352,13 @@ var init_package = __esm(() => {
|
|
|
2352
2352
|
"@oh-my-opencode/memory-core": "workspace:*",
|
|
2353
2353
|
"@oh-my-opencode/model-core": "workspace:*",
|
|
2354
2354
|
"@oh-my-opencode/omo-codex": "workspace:*",
|
|
2355
|
+
"@oh-my-opencode/omo-computer-carriers": "workspace:*",
|
|
2356
|
+
"@oh-my-opencode/omo-computer-engine": "workspace:*",
|
|
2357
|
+
"@oh-my-opencode/omo-computer-hand": "workspace:*",
|
|
2358
|
+
"@oh-my-opencode/omo-computer-prelude": "workspace:*",
|
|
2359
|
+
"@oh-my-opencode/omo-computer-protocol": "workspace:*",
|
|
2360
|
+
"@oh-my-opencode/omo-computer-sdk": "workspace:*",
|
|
2361
|
+
"@oh-my-opencode/omo-computer-tool": "workspace:*",
|
|
2355
2362
|
"@oh-my-opencode/omo-config-core": "workspace:*",
|
|
2356
2363
|
"@oh-my-opencode/omo-opencode": "workspace:*",
|
|
2357
2364
|
"@oh-my-opencode/omo-senpi": "workspace:*",
|
|
@@ -2364,25 +2371,19 @@ var init_package = __esm(() => {
|
|
|
2364
2371
|
"@oh-my-opencode/senpi-desktop-sdk": "workspace:*",
|
|
2365
2372
|
"@oh-my-opencode/senpi-desktop-service": "workspace:*",
|
|
2366
2373
|
"@oh-my-opencode/senpi-desktop-tool": "workspace:*",
|
|
2367
|
-
"@oh-my-opencode/omo-computer-protocol": "workspace:*",
|
|
2368
|
-
"@oh-my-opencode/omo-computer-sdk": "workspace:*",
|
|
2369
|
-
"@oh-my-opencode/omo-computer-engine": "workspace:*",
|
|
2370
|
-
"@oh-my-opencode/omo-computer-hand": "workspace:*",
|
|
2371
|
-
"@oh-my-opencode/omo-computer-carriers": "workspace:*",
|
|
2372
|
-
"@oh-my-opencode/omo-computer-tool": "workspace:*",
|
|
2373
|
-
"@oh-my-opencode/omo-computer-prelude": "workspace:*",
|
|
2374
2374
|
"@oh-my-opencode/senpi-task": "workspace:*",
|
|
2375
2375
|
"@oh-my-opencode/shared-skills": "workspace:*",
|
|
2376
2376
|
"@oh-my-opencode/skills-loader-core": "workspace:*",
|
|
2377
2377
|
"@oh-my-opencode/team-core": "workspace:*",
|
|
2378
2378
|
"@oh-my-opencode/telemetry-core": "workspace:*",
|
|
2379
|
+
"@oh-my-opencode/thread-address-core": "workspace:*",
|
|
2379
2380
|
"@oh-my-opencode/tmux-core": "workspace:*",
|
|
2380
2381
|
"@oh-my-opencode/utils": "workspace:*",
|
|
2381
2382
|
"@opencode-ai/plugin": "1.18.31",
|
|
2382
2383
|
"@opencode-ai/sdk": "1.18.31",
|
|
2383
2384
|
"@opencode/plugin": "2.0.32",
|
|
2384
|
-
"@opentui/core": "^0.
|
|
2385
|
-
"@opentui/keymap": "^0.
|
|
2385
|
+
"@opentui/core": "^0.9.9",
|
|
2386
|
+
"@opentui/keymap": "^0.9.9",
|
|
2386
2387
|
"@types/js-yaml": "^4.0.9",
|
|
2387
2388
|
"@types/node": "26.6.2",
|
|
2388
2389
|
"@types/picomatch": "^4.0.3",
|
|
@@ -2396,8 +2397,9 @@ var init_package = __esm(() => {
|
|
|
2396
2397
|
"js-yaml": "^5.4.2",
|
|
2397
2398
|
"jsonc-parser": "^3.3.1",
|
|
2398
2399
|
knip: "6.43.0",
|
|
2400
|
+
"libsodium-wrappers": "^0.8.4",
|
|
2399
2401
|
"node-pty": "^1.1.0",
|
|
2400
|
-
omowright: "^0.3.
|
|
2402
|
+
omowright: "^0.3.10",
|
|
2401
2403
|
"oxc-parser": "0.148.0",
|
|
2402
2404
|
oxlint: "1.89.0",
|
|
2403
2405
|
picocolors: "^1.1.1",
|
|
@@ -2407,18 +2409,18 @@ var init_package = __esm(() => {
|
|
|
2407
2409
|
typescript: "^7.0.2"
|
|
2408
2410
|
},
|
|
2409
2411
|
optionalDependencies: {
|
|
2410
|
-
"oh-my-opencode-darwin-arm64": "5.1.
|
|
2411
|
-
"oh-my-opencode-darwin-x64": "5.1.
|
|
2412
|
-
"oh-my-opencode-darwin-x64-baseline": "5.1.
|
|
2413
|
-
"oh-my-opencode-linux-arm64": "5.1.
|
|
2414
|
-
"oh-my-opencode-linux-arm64-musl": "5.1.
|
|
2415
|
-
"oh-my-opencode-linux-x64": "5.1.
|
|
2416
|
-
"oh-my-opencode-linux-x64-baseline": "5.1.
|
|
2417
|
-
"oh-my-opencode-linux-x64-musl": "5.1.
|
|
2418
|
-
"oh-my-opencode-linux-x64-musl-baseline": "5.1.
|
|
2419
|
-
"oh-my-opencode-windows-arm64": "5.1.
|
|
2420
|
-
"oh-my-opencode-windows-x64": "5.1.
|
|
2421
|
-
"oh-my-opencode-windows-x64-baseline": "5.1.
|
|
2412
|
+
"oh-my-opencode-darwin-arm64": "5.1.86",
|
|
2413
|
+
"oh-my-opencode-darwin-x64": "5.1.86",
|
|
2414
|
+
"oh-my-opencode-darwin-x64-baseline": "5.1.86",
|
|
2415
|
+
"oh-my-opencode-linux-arm64": "5.1.86",
|
|
2416
|
+
"oh-my-opencode-linux-arm64-musl": "5.1.86",
|
|
2417
|
+
"oh-my-opencode-linux-x64": "5.1.86",
|
|
2418
|
+
"oh-my-opencode-linux-x64-baseline": "5.1.86",
|
|
2419
|
+
"oh-my-opencode-linux-x64-musl": "5.1.86",
|
|
2420
|
+
"oh-my-opencode-linux-x64-musl-baseline": "5.1.86",
|
|
2421
|
+
"oh-my-opencode-windows-arm64": "5.1.86",
|
|
2422
|
+
"oh-my-opencode-windows-x64": "5.1.86",
|
|
2423
|
+
"oh-my-opencode-windows-x64-baseline": "5.1.86"
|
|
2422
2424
|
},
|
|
2423
2425
|
overrides: {
|
|
2424
2426
|
hono: "^4.13.8",
|
|
@@ -2434,6 +2436,91 @@ var init_package = __esm(() => {
|
|
|
2434
2436
|
};
|
|
2435
2437
|
});
|
|
2436
2438
|
|
|
2439
|
+
// packages/telemetry-core/src/constants.ts
|
|
2440
|
+
var DEFAULT_POSTHOG_HOST = "https://us.i.posthog.com", DEFAULT_POSTHOG_API_KEY = "phc_CFJhj5HyvA62QPhvyaUCtaq23aUfznnijg5VaaGkNk74", UNCONFIGURED_POSTHOG_API_KEY = "phc_REPLACE_ME_OMO_NATIVE";
|
|
2441
|
+
|
|
2442
|
+
// packages/telemetry-core/src/env.ts
|
|
2443
|
+
function normalizeEnvValue(value) {
|
|
2444
|
+
return value?.trim().toLowerCase();
|
|
2445
|
+
}
|
|
2446
|
+
function includesValue(values, value) {
|
|
2447
|
+
const normalized = normalizeEnvValue(value);
|
|
2448
|
+
return normalized !== undefined && values.includes(normalized);
|
|
2449
|
+
}
|
|
2450
|
+
function isDisableFlag(value) {
|
|
2451
|
+
return includesValue(TRUTHY_DISABLE_VALUES, value);
|
|
2452
|
+
}
|
|
2453
|
+
function isSendOptOutFlag(value) {
|
|
2454
|
+
return includesValue(SEND_OPT_OUT_VALUES, value);
|
|
2455
|
+
}
|
|
2456
|
+
function shouldDisableTelemetry(input) {
|
|
2457
|
+
const env = input.env ?? process.env;
|
|
2458
|
+
const globalPrefix = input.globalEnvPrefix ?? "OMO";
|
|
2459
|
+
const prefixes = Array.from(new Set([globalPrefix, input.productEnvPrefix]));
|
|
2460
|
+
if (isDisableFlag(env["DO_NOT_TRACK"]) || isDisableFlag(env[`${globalPrefix}_DISABLE_TELEMETRY`])) {
|
|
2461
|
+
return true;
|
|
2462
|
+
}
|
|
2463
|
+
if (env["OTEL_SDK_DISABLED"]?.trim().toLowerCase() === "true") {
|
|
2464
|
+
return true;
|
|
2465
|
+
}
|
|
2466
|
+
for (const prefix of prefixes) {
|
|
2467
|
+
if (isDisableFlag(env[`${prefix}_DISABLE_POSTHOG`])) {
|
|
2468
|
+
return true;
|
|
2469
|
+
}
|
|
2470
|
+
if (isSendOptOutFlag(env[`${prefix}_SEND_ANONYMOUS_TELEMETRY`])) {
|
|
2471
|
+
return true;
|
|
2472
|
+
}
|
|
2473
|
+
}
|
|
2474
|
+
return false;
|
|
2475
|
+
}
|
|
2476
|
+
function getTelemetryApiKey(env = process.env, defaultApiKey = DEFAULT_POSTHOG_API_KEY) {
|
|
2477
|
+
return env["POSTHOG_API_KEY"]?.trim() ?? defaultApiKey;
|
|
2478
|
+
}
|
|
2479
|
+
function isConfiguredTelemetryApiKey(apiKey) {
|
|
2480
|
+
const normalized = apiKey.trim();
|
|
2481
|
+
return normalized.length > 0 && normalized !== UNCONFIGURED_POSTHOG_API_KEY;
|
|
2482
|
+
}
|
|
2483
|
+
function hasTelemetryApiKey(env, defaultApiKey) {
|
|
2484
|
+
return isConfiguredTelemetryApiKey(getTelemetryApiKey(env, defaultApiKey));
|
|
2485
|
+
}
|
|
2486
|
+
function getTelemetryHost(env = process.env, defaultHost = DEFAULT_POSTHOG_HOST) {
|
|
2487
|
+
return env["POSTHOG_HOST"]?.trim() || defaultHost;
|
|
2488
|
+
}
|
|
2489
|
+
var TRUTHY_DISABLE_VALUES, SEND_OPT_OUT_VALUES;
|
|
2490
|
+
var init_env = __esm(() => {
|
|
2491
|
+
TRUTHY_DISABLE_VALUES = ["1", "true", "yes"];
|
|
2492
|
+
SEND_OPT_OUT_VALUES = ["0", "false", "no"];
|
|
2493
|
+
});
|
|
2494
|
+
|
|
2495
|
+
// packages/telemetry-core/src/otlp-config.ts
|
|
2496
|
+
var DEFAULT_OTLP_ENDPOINT = "https://t.omo.dev", RESOURCE_OR_RELAY_KEYS;
|
|
2497
|
+
var init_otlp_config = __esm(() => {
|
|
2498
|
+
RESOURCE_OR_RELAY_KEYS = new Set([
|
|
2499
|
+
"$os",
|
|
2500
|
+
"$os_version",
|
|
2501
|
+
"$process_person_profile",
|
|
2502
|
+
"$session_id",
|
|
2503
|
+
"ci",
|
|
2504
|
+
"event_id",
|
|
2505
|
+
"install_hash",
|
|
2506
|
+
"package_version",
|
|
2507
|
+
"platform",
|
|
2508
|
+
"product_name",
|
|
2509
|
+
"schema_version",
|
|
2510
|
+
"surface"
|
|
2511
|
+
]);
|
|
2512
|
+
});
|
|
2513
|
+
|
|
2514
|
+
// packages/telemetry-core/src/destinations.ts
|
|
2515
|
+
var TELEMETRY_DESTINATIONS;
|
|
2516
|
+
var init_destinations = __esm(() => {
|
|
2517
|
+
init_otlp_config();
|
|
2518
|
+
TELEMETRY_DESTINATIONS = [
|
|
2519
|
+
{ kind: "posthog", label: "PostHog in the United States", host: DEFAULT_POSTHOG_HOST },
|
|
2520
|
+
{ kind: "otlp", label: "the OmO telemetry collector", host: DEFAULT_OTLP_ENDPOINT }
|
|
2521
|
+
];
|
|
2522
|
+
});
|
|
2523
|
+
|
|
2437
2524
|
// node_modules/.bun/picocolors@1.1.1/node_modules/picocolors/picocolors.js
|
|
2438
2525
|
var require_picocolors = __commonJS(function(exports, module) {
|
|
2439
2526
|
var p = process || {};
|
|
@@ -77824,6 +77911,9 @@ var init_team = __esm(() => {
|
|
|
77824
77911
|
});
|
|
77825
77912
|
|
|
77826
77913
|
// packages/omo-config-core/src/schema/telemetry.ts
|
|
77914
|
+
function isOmoTelemetryEnabled(config) {
|
|
77915
|
+
return config.telemetry?.enabled ?? true;
|
|
77916
|
+
}
|
|
77827
77917
|
var OmoTelemetrySettingsShape, OmoTelemetrySettingsLayerSchema, OmoTelemetrySettingsSchema;
|
|
77828
77918
|
var init_telemetry = __esm(() => {
|
|
77829
77919
|
init_zod();
|
|
@@ -78047,7 +78137,7 @@ var init_config = __esm(() => {
|
|
|
78047
78137
|
|
|
78048
78138
|
// packages/omo-config-core/src/schema/legacy-category-names.ts
|
|
78049
78139
|
function canonicalCategoryName(name) {
|
|
78050
|
-
return Object.hasOwn(LEGACY_CATEGORY_NAME_ALIASES, name) ? LEGACY_CATEGORY_NAME_ALIASES[name] : name;
|
|
78140
|
+
return Object.hasOwn(LEGACY_CATEGORY_NAME_ALIASES, name) ? LEGACY_CATEGORY_NAME_ALIASES[name] ?? name : name;
|
|
78051
78141
|
}
|
|
78052
78142
|
function isRecord9(value) {
|
|
78053
78143
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -78109,7 +78199,7 @@ var init_legacy_category_names = __esm(() => {
|
|
|
78109
78199
|
|
|
78110
78200
|
// packages/omo-config-core/src/schema/legacy-harness-names.ts
|
|
78111
78201
|
function canonicalHarnessName(name) {
|
|
78112
|
-
return Object.hasOwn(OMO_CONFIG_LEGACY_HARNESS_ALIASES, name) ? OMO_CONFIG_LEGACY_HARNESS_ALIASES[name] : name;
|
|
78202
|
+
return Object.hasOwn(OMO_CONFIG_LEGACY_HARNESS_ALIASES, name) ? OMO_CONFIG_LEGACY_HARNESS_ALIASES[name] ?? name : name;
|
|
78113
78203
|
}
|
|
78114
78204
|
function harnessBlockKey(harness) {
|
|
78115
78205
|
return `[${harness}]`;
|
|
@@ -79798,15 +79888,15 @@ function stripRetiredCodegraph(document) {
|
|
|
79798
79888
|
if (!isPlainObject5(value))
|
|
79799
79889
|
return;
|
|
79800
79890
|
if (Object.prototype.hasOwnProperty.call(value, "codegraph")) {
|
|
79801
|
-
delete value
|
|
79891
|
+
delete value["codegraph"];
|
|
79802
79892
|
removedPaths.push([...path, "codegraph"]);
|
|
79803
79893
|
}
|
|
79804
79894
|
};
|
|
79805
79895
|
strip(stripped, []);
|
|
79806
79896
|
for (const harness of OMO_HARNESS_BLOCKS)
|
|
79807
79897
|
strip(stripped[harness], [harness]);
|
|
79808
|
-
if (isPlainObject5(stripped
|
|
79809
|
-
for (const [profileName, profile] of Object.entries(stripped
|
|
79898
|
+
if (isPlainObject5(stripped["profiles"])) {
|
|
79899
|
+
for (const [profileName, profile] of Object.entries(stripped["profiles"])) {
|
|
79810
79900
|
strip(profile, ["profiles", profileName]);
|
|
79811
79901
|
if (!isPlainObject5(profile))
|
|
79812
79902
|
continue;
|
|
@@ -83054,9 +83144,6 @@ var init_activity_state = __esm(() => {
|
|
|
83054
83144
|
// packages/telemetry-core/src/consent-gated-fetch.ts
|
|
83055
83145
|
var init_consent_gated_fetch = () => {};
|
|
83056
83146
|
|
|
83057
|
-
// packages/telemetry-core/src/constants.ts
|
|
83058
|
-
var DEFAULT_POSTHOG_HOST = "https://us.i.posthog.com", DEFAULT_POSTHOG_API_KEY = "phc_CFJhj5HyvA62QPhvyaUCtaq23aUfznnijg5VaaGkNk74", UNCONFIGURED_POSTHOG_API_KEY = "phc_REPLACE_ME_OMO_NATIVE";
|
|
83059
|
-
|
|
83060
83147
|
// packages/telemetry-core/src/diagnostics.ts
|
|
83061
83148
|
import { appendFileSync as appendFileSync2, existsSync as existsSync26, mkdirSync as mkdirSync11, readFileSync as readFileSync13 } from "node:fs";
|
|
83062
83149
|
import { join as join57 } from "node:path";
|
|
@@ -83178,56 +83265,6 @@ var init_diagnostics = __esm(() => {
|
|
|
83178
83265
|
DIAGNOSTICS_MAX_BYTES = 256 * 1024;
|
|
83179
83266
|
});
|
|
83180
83267
|
|
|
83181
|
-
// packages/telemetry-core/src/env.ts
|
|
83182
|
-
function normalizeEnvValue(value) {
|
|
83183
|
-
return value?.trim().toLowerCase();
|
|
83184
|
-
}
|
|
83185
|
-
function includesValue(values, value) {
|
|
83186
|
-
const normalized = normalizeEnvValue(value);
|
|
83187
|
-
return normalized !== undefined && values.includes(normalized);
|
|
83188
|
-
}
|
|
83189
|
-
function isDisableFlag(value) {
|
|
83190
|
-
return includesValue(TRUTHY_DISABLE_VALUES, value);
|
|
83191
|
-
}
|
|
83192
|
-
function isSendOptOutFlag(value) {
|
|
83193
|
-
return includesValue(SEND_OPT_OUT_VALUES, value);
|
|
83194
|
-
}
|
|
83195
|
-
function shouldDisableTelemetry(input) {
|
|
83196
|
-
const env = input.env ?? process.env;
|
|
83197
|
-
const globalPrefix = input.globalEnvPrefix ?? "OMO";
|
|
83198
|
-
const prefixes = Array.from(new Set([globalPrefix, input.productEnvPrefix]));
|
|
83199
|
-
if (isDisableFlag(env["DO_NOT_TRACK"]) || isDisableFlag(env[`${globalPrefix}_DISABLE_TELEMETRY`])) {
|
|
83200
|
-
return true;
|
|
83201
|
-
}
|
|
83202
|
-
for (const prefix of prefixes) {
|
|
83203
|
-
if (isDisableFlag(env[`${prefix}_DISABLE_POSTHOG`])) {
|
|
83204
|
-
return true;
|
|
83205
|
-
}
|
|
83206
|
-
if (isSendOptOutFlag(env[`${prefix}_SEND_ANONYMOUS_TELEMETRY`])) {
|
|
83207
|
-
return true;
|
|
83208
|
-
}
|
|
83209
|
-
}
|
|
83210
|
-
return false;
|
|
83211
|
-
}
|
|
83212
|
-
function getTelemetryApiKey(env = process.env, defaultApiKey = DEFAULT_POSTHOG_API_KEY) {
|
|
83213
|
-
return env["POSTHOG_API_KEY"]?.trim() ?? defaultApiKey;
|
|
83214
|
-
}
|
|
83215
|
-
function isConfiguredTelemetryApiKey(apiKey) {
|
|
83216
|
-
const normalized = apiKey.trim();
|
|
83217
|
-
return normalized.length > 0 && normalized !== UNCONFIGURED_POSTHOG_API_KEY;
|
|
83218
|
-
}
|
|
83219
|
-
function hasTelemetryApiKey(env, defaultApiKey) {
|
|
83220
|
-
return isConfiguredTelemetryApiKey(getTelemetryApiKey(env, defaultApiKey));
|
|
83221
|
-
}
|
|
83222
|
-
function getTelemetryHost(env = process.env, defaultHost = DEFAULT_POSTHOG_HOST) {
|
|
83223
|
-
return env["POSTHOG_HOST"]?.trim() || defaultHost;
|
|
83224
|
-
}
|
|
83225
|
-
var TRUTHY_DISABLE_VALUES, SEND_OPT_OUT_VALUES;
|
|
83226
|
-
var init_env = __esm(() => {
|
|
83227
|
-
TRUTHY_DISABLE_VALUES = ["1", "true", "yes"];
|
|
83228
|
-
SEND_OPT_OUT_VALUES = ["0", "false", "no", "yes"];
|
|
83229
|
-
});
|
|
83230
|
-
|
|
83231
83268
|
// packages/telemetry-core/src/event-id.ts
|
|
83232
83269
|
import { randomBytes as nodeRandomBytes } from "node:crypto";
|
|
83233
83270
|
function createUuidV7Generator(source = {}) {
|
|
@@ -93013,6 +93050,7 @@ var init_turn_trace_bridge = __esm(() => {
|
|
|
93013
93050
|
var init_src5 = __esm(() => {
|
|
93014
93051
|
init_activity_state();
|
|
93015
93052
|
init_consent_gated_fetch();
|
|
93053
|
+
init_destinations();
|
|
93016
93054
|
init_diagnostics();
|
|
93017
93055
|
init_env();
|
|
93018
93056
|
init_event_id();
|
|
@@ -93029,7 +93067,7 @@ var package_default2;
|
|
|
93029
93067
|
var init_package2 = __esm(() => {
|
|
93030
93068
|
package_default2 = {
|
|
93031
93069
|
name: "@oh-my-opencode/omo-codex",
|
|
93032
|
-
version: "5.1.
|
|
93070
|
+
version: "5.1.86",
|
|
93033
93071
|
type: "module",
|
|
93034
93072
|
private: true,
|
|
93035
93073
|
description: "Codex harness adapter for oh-my-openagent. Vendored Codex plugin namespace (omo) + TypeScript installer + telemetry.",
|
|
@@ -93060,6 +93098,7 @@ var init_package2 = __esm(() => {
|
|
|
93060
93098
|
"sync:skills": "node plugin/scripts/sync-skills.mjs"
|
|
93061
93099
|
},
|
|
93062
93100
|
dependencies: {
|
|
93101
|
+
"@oh-my-opencode/omo-config-core": "workspace:*",
|
|
93063
93102
|
"@oh-my-opencode/shared-skills": "workspace:*",
|
|
93064
93103
|
"@oh-my-opencode/utils": "workspace:*"
|
|
93065
93104
|
},
|
|
@@ -93115,6 +93154,18 @@ var init_data_path2 = __esm(() => {
|
|
|
93115
93154
|
init_product_identity();
|
|
93116
93155
|
});
|
|
93117
93156
|
|
|
93157
|
+
// packages/omo-codex/src/telemetry/config-gate.ts
|
|
93158
|
+
function isOmoConfigTelemetryEnabled(env = process.env) {
|
|
93159
|
+
try {
|
|
93160
|
+
return isOmoTelemetryEnabled(loadOmoConfig({ env, harness: "codex" }).config);
|
|
93161
|
+
} catch {
|
|
93162
|
+
return true;
|
|
93163
|
+
}
|
|
93164
|
+
}
|
|
93165
|
+
var init_config_gate = __esm(() => {
|
|
93166
|
+
init_src4();
|
|
93167
|
+
});
|
|
93168
|
+
|
|
93118
93169
|
// packages/omo-codex/src/telemetry/diagnostics.ts
|
|
93119
93170
|
function writeTelemetryDiagnostic2(input, now = new Date) {
|
|
93120
93171
|
writeTelemetryDiagnostic(input, {
|
|
@@ -93158,6 +93209,9 @@ function resolveActivityStateProvider(options) {
|
|
|
93158
93209
|
return () => getPostHogActivityCaptureState(options.now ?? new Date);
|
|
93159
93210
|
}
|
|
93160
93211
|
function createPostHogClient(source, options = {}) {
|
|
93212
|
+
if (!isOmoConfigTelemetryEnabled(options.env ?? process.env)) {
|
|
93213
|
+
return NO_OP_POSTHOG;
|
|
93214
|
+
}
|
|
93161
93215
|
const client = createTelemetryClient2({
|
|
93162
93216
|
diagnostics: writeTelemetryDiagnostic2,
|
|
93163
93217
|
env: options.env ?? process.env,
|
|
@@ -93198,6 +93252,7 @@ var osProviderOverride2 = null, activityStateProviderOverride = null, transportF
|
|
|
93198
93252
|
var init_posthog = __esm(() => {
|
|
93199
93253
|
init_src5();
|
|
93200
93254
|
init_data_path2();
|
|
93255
|
+
init_config_gate();
|
|
93201
93256
|
init_diagnostics2();
|
|
93202
93257
|
init_posthog_activity_state();
|
|
93203
93258
|
init_product_identity();
|
|
@@ -94261,6 +94316,29 @@ var init_auto_update_checker = __esm(() => {
|
|
|
94261
94316
|
init_cache();
|
|
94262
94317
|
});
|
|
94263
94318
|
|
|
94319
|
+
// packages/device-service-core/src/local-only.ts
|
|
94320
|
+
function state3() {
|
|
94321
|
+
const holder = globalThis;
|
|
94322
|
+
holder[KEY2] ??= { marked: false };
|
|
94323
|
+
return holder[KEY2];
|
|
94324
|
+
}
|
|
94325
|
+
function refuseIfLocalOnly(site) {
|
|
94326
|
+
if (state3().marked)
|
|
94327
|
+
throw new LocalOnlyNetworkRefused(site);
|
|
94328
|
+
}
|
|
94329
|
+
var KEY2, LocalOnlyNetworkRefused;
|
|
94330
|
+
var init_local_only = __esm(() => {
|
|
94331
|
+
KEY2 = Symbol.for("omo.local-only-process.v1");
|
|
94332
|
+
LocalOnlyNetworkRefused = class LocalOnlyNetworkRefused extends Error {
|
|
94333
|
+
code = "local_only_network_refused";
|
|
94334
|
+
site;
|
|
94335
|
+
constructor(site) {
|
|
94336
|
+
super(`a local-only omo remote command reached the network at ${site}`);
|
|
94337
|
+
this.site = site;
|
|
94338
|
+
}
|
|
94339
|
+
};
|
|
94340
|
+
});
|
|
94341
|
+
|
|
94264
94342
|
// packages/device-service-core/src/local-api/errors.ts
|
|
94265
94343
|
var LocalApiError, protocolViolation = (detail) => {
|
|
94266
94344
|
throw new LocalApiError("protocol_violation", detail);
|
|
@@ -97818,6 +97896,7 @@ var init_unsettled_command = __esm(() => {
|
|
|
97818
97896
|
import { randomBytes as randomBytes9 } from "node:crypto";
|
|
97819
97897
|
function openAttach(client, device, sessionId, timers = realTimers) {
|
|
97820
97898
|
const early = [];
|
|
97899
|
+
const ATTACH_HISTORY_MAX = 512;
|
|
97821
97900
|
const history = [];
|
|
97822
97901
|
const listeners = new Set;
|
|
97823
97902
|
let handle;
|
|
@@ -97869,6 +97948,8 @@ function openAttach(client, device, sessionId, timers = realTimers) {
|
|
|
97869
97948
|
resolveSnapshot(remote.snapshot);
|
|
97870
97949
|
}
|
|
97871
97950
|
history.push(remote);
|
|
97951
|
+
if (history.length > ATTACH_HISTORY_MAX)
|
|
97952
|
+
history.splice(0, history.length - ATTACH_HISTORY_MAX);
|
|
97872
97953
|
for (const listener of [...listeners]) {
|
|
97873
97954
|
try {
|
|
97874
97955
|
listener(remote);
|
|
@@ -98175,7 +98256,7 @@ var init_engine_endpoint = __esm(() => {
|
|
|
98175
98256
|
NoPrimaryEndpointError = class NoPrimaryEndpointError extends NotSentError {
|
|
98176
98257
|
constructor(device, listed) {
|
|
98177
98258
|
super("unsupported", `${device} lists ${listed} engine endpoint(s) and names none as its own engine; nothing was opened`, {
|
|
98178
|
-
action: `
|
|
98259
|
+
action: `On ${device} run \`omo host ensure\`; if it answers primary_without_product_plugin, run \`omo host handoff\` once that host's sessions are idle; if it refuses, save its output and \`omo host status --json\`, stop only the primary host (\`omo host stop\`; never \`--force\`, which ends its live sessions) and ensure again; with no \`omo host\` command (omob), restart that omo; if it still names no engine, update the device service on both devices.`
|
|
98179
98260
|
});
|
|
98180
98261
|
}
|
|
98181
98262
|
};
|
|
@@ -98377,6 +98458,616 @@ var init_device_service2 = __esm(() => {
|
|
|
98377
98458
|
UPDATE_IN_FLIGHT = new Set(["pending", "trial"]);
|
|
98378
98459
|
});
|
|
98379
98460
|
|
|
98461
|
+
// packages/device-service-core/src/delivery-consumer.ts
|
|
98462
|
+
var init_delivery_consumer = __esm(() => {
|
|
98463
|
+
init_client4();
|
|
98464
|
+
init_background_transport();
|
|
98465
|
+
init_device_service2();
|
|
98466
|
+
});
|
|
98467
|
+
|
|
98468
|
+
// packages/device-service-core/src/account-state.ts
|
|
98469
|
+
var init_account_state = () => {};
|
|
98470
|
+
|
|
98471
|
+
// packages/device-service-core/src/hand-device-keys.ts
|
|
98472
|
+
import { existsSync as existsSync65 } from "node:fs";
|
|
98473
|
+
var DEAD_ENDPOINT_CODES, connectFailure = (error) => {
|
|
98474
|
+
const detail = error instanceof Error ? error.message : String(error);
|
|
98475
|
+
if (error instanceof LocalApiError) {
|
|
98476
|
+
if (error.code === "refused" || error.code === "server_proof_invalid")
|
|
98477
|
+
return { cause: "refused", detail };
|
|
98478
|
+
if (error.code === "insecure_state_dir")
|
|
98479
|
+
return { cause: "unreadable", detail };
|
|
98480
|
+
if (error.code === "handshake_timeout" || error.code === "request_timeout")
|
|
98481
|
+
return { cause: "timed_out", detail };
|
|
98482
|
+
return { cause: "failed", detail };
|
|
98483
|
+
}
|
|
98484
|
+
const code = error instanceof Error && "code" in error ? String(error.code) : "";
|
|
98485
|
+
return { cause: DEAD_ENDPOINT_CODES.has(code) ? "dead_endpoint" : "failed", detail };
|
|
98486
|
+
}, connectOrNotRunning = async (connect, log) => {
|
|
98487
|
+
try {
|
|
98488
|
+
return await connect();
|
|
98489
|
+
} catch (error) {
|
|
98490
|
+
const { cause, detail } = connectFailure(error);
|
|
98491
|
+
log?.(`OmO device service: ${cause}, treated as not running (${detail}).`);
|
|
98492
|
+
return "not_running";
|
|
98493
|
+
}
|
|
98494
|
+
}, adopted = (status) => status.device !== null && status.state !== "sign_in_required", handDeviceKeys = async (options) => {
|
|
98495
|
+
if (!existsSync65(deviceServiceEndpointPath(options.stateDir)))
|
|
98496
|
+
return "not_running";
|
|
98497
|
+
const service = await connectOrNotRunning(options.connect, options.log);
|
|
98498
|
+
if (service === "not_running")
|
|
98499
|
+
return "not_running";
|
|
98500
|
+
try {
|
|
98501
|
+
if (options.when === "not_adopted" && adopted(await service.status()))
|
|
98502
|
+
return "already_adopted";
|
|
98503
|
+
await service.adopt(options.credential);
|
|
98504
|
+
return "adopted";
|
|
98505
|
+
} finally {
|
|
98506
|
+
service.close();
|
|
98507
|
+
}
|
|
98508
|
+
};
|
|
98509
|
+
var init_hand_device_keys = __esm(() => {
|
|
98510
|
+
init_device_service2();
|
|
98511
|
+
DEAD_ENDPOINT_CODES = new Set(["ENOENT", "ECONNREFUSED", "ECONNRESET", "EPIPE"]);
|
|
98512
|
+
});
|
|
98513
|
+
|
|
98514
|
+
// packages/device-service-core/src/bootstrap.ts
|
|
98515
|
+
import { existsSync as existsSync66 } from "node:fs";
|
|
98516
|
+
var forgetDeviceService = async (options) => {
|
|
98517
|
+
if (!existsSync66(deviceServiceEndpointPath(options.stateDir)))
|
|
98518
|
+
return "not_running";
|
|
98519
|
+
const service = await connectOrNotRunning(options.connect, options.log);
|
|
98520
|
+
if (service === "not_running")
|
|
98521
|
+
return "not_running";
|
|
98522
|
+
try {
|
|
98523
|
+
await service.forget();
|
|
98524
|
+
} finally {
|
|
98525
|
+
service.close();
|
|
98526
|
+
}
|
|
98527
|
+
return "forgotten";
|
|
98528
|
+
};
|
|
98529
|
+
var init_bootstrap = __esm(() => {
|
|
98530
|
+
init_account_state();
|
|
98531
|
+
init_device_service2();
|
|
98532
|
+
init_hand_device_keys();
|
|
98533
|
+
init_version2();
|
|
98534
|
+
});
|
|
98535
|
+
|
|
98536
|
+
// packages/device-service-core/src/cold-wake/host.ts
|
|
98537
|
+
var UNREPAIRABLE;
|
|
98538
|
+
var init_host = __esm(() => {
|
|
98539
|
+
UNREPAIRABLE = new Set(["EPERM", "EACCES", "EROFS"]);
|
|
98540
|
+
});
|
|
98541
|
+
|
|
98542
|
+
// packages/device-service-core/src/cold-wake/pinned-host.ts
|
|
98543
|
+
var init_pinned_host = __esm(() => {
|
|
98544
|
+
init_host();
|
|
98545
|
+
});
|
|
98546
|
+
|
|
98547
|
+
// packages/device-service-core/src/cold-wake/session-host-unit.ts
|
|
98548
|
+
var init_session_host_unit = () => {};
|
|
98549
|
+
|
|
98550
|
+
// packages/device-service-core/src/cold-wake/service-table.ts
|
|
98551
|
+
var SERVICE_TABLE_ENV = "OMO_RELAYD_SERVICES";
|
|
98552
|
+
var init_service_table = __esm(() => {
|
|
98553
|
+
init_session_host_unit();
|
|
98554
|
+
});
|
|
98555
|
+
|
|
98556
|
+
// packages/device-service-core/src/cold-wake/darwin.ts
|
|
98557
|
+
var TABLE_KEY;
|
|
98558
|
+
var init_darwin = __esm(() => {
|
|
98559
|
+
init_host();
|
|
98560
|
+
init_pinned_host();
|
|
98561
|
+
init_service_table();
|
|
98562
|
+
init_session_host_unit();
|
|
98563
|
+
TABLE_KEY = `EnvironmentVariables.${SERVICE_TABLE_ENV}`;
|
|
98564
|
+
});
|
|
98565
|
+
|
|
98566
|
+
// packages/device-service-core/src/cold-wake/linux.ts
|
|
98567
|
+
var init_linux = __esm(() => {
|
|
98568
|
+
init_host();
|
|
98569
|
+
init_pinned_host();
|
|
98570
|
+
init_service_table();
|
|
98571
|
+
init_session_host_unit();
|
|
98572
|
+
});
|
|
98573
|
+
|
|
98574
|
+
// packages/device-service-core/src/cold-wake/readback.ts
|
|
98575
|
+
var init_readback = __esm(() => {
|
|
98576
|
+
init_linux();
|
|
98577
|
+
init_pinned_host();
|
|
98578
|
+
init_service_table();
|
|
98579
|
+
init_session_host_unit();
|
|
98580
|
+
});
|
|
98581
|
+
|
|
98582
|
+
// packages/device-service-core/src/cold-wake/installed-unit.ts
|
|
98583
|
+
var init_installed_unit = () => {};
|
|
98584
|
+
|
|
98585
|
+
// packages/device-service-core/src/cold-wake/refresh.ts
|
|
98586
|
+
var init_refresh = __esm(() => {
|
|
98587
|
+
init_darwin();
|
|
98588
|
+
init_host();
|
|
98589
|
+
init_installed_unit();
|
|
98590
|
+
init_linux();
|
|
98591
|
+
init_session_host_unit();
|
|
98592
|
+
});
|
|
98593
|
+
|
|
98594
|
+
// packages/device-service-core/src/cold-wake/index.ts
|
|
98595
|
+
var init_cold_wake = __esm(() => {
|
|
98596
|
+
init_darwin();
|
|
98597
|
+
init_linux();
|
|
98598
|
+
init_readback();
|
|
98599
|
+
init_refresh();
|
|
98600
|
+
init_session_host_unit();
|
|
98601
|
+
});
|
|
98602
|
+
|
|
98603
|
+
// packages/device-service-core/src/release/windows-dacl.ts
|
|
98604
|
+
var SID_TOKEN_SCRIPT, userSidToken = async (userSid, run = runPowerShell) => {
|
|
98605
|
+
const { code, out } = await run(SID_TOKEN_SCRIPT, { LA_SID: userSid });
|
|
98606
|
+
const match = code === 0 ? /^O:(S-1-\d+(?:-\d+)+|[A-Z]{2})$/.exec(out.trim()) : null;
|
|
98607
|
+
return match?.[1];
|
|
98608
|
+
}, aliasedDaclVerdict = (dacl, userSid, kind, userAlias) => {
|
|
98609
|
+
const asSid = (token) => userAlias !== undefined && token === userAlias ? userSid : token;
|
|
98610
|
+
return exactDaclVerdict({ ...dacl, owner: asSid(dacl.owner), aces: dacl.aces.map((ace) => ({ ...ace, sid: asSid(ace.sid) })) }, userSid, kind);
|
|
98611
|
+
}, verifyExactDacl2 = async (path, userSid, kind, run = runPowerShell) => {
|
|
98612
|
+
let dacl;
|
|
98613
|
+
try {
|
|
98614
|
+
dacl = await describeDacl(path, run);
|
|
98615
|
+
} catch (error) {
|
|
98616
|
+
if (error instanceof LocalApiError)
|
|
98617
|
+
return false;
|
|
98618
|
+
throw error;
|
|
98619
|
+
}
|
|
98620
|
+
return aliasedDaclVerdict(dacl, userSid, kind, await userSidToken(userSid, run));
|
|
98621
|
+
}, windowsSecureFile2 = (userSid, run = runPowerShell) => async (path, kind) => {
|
|
98622
|
+
const target = kind === "dir" ? "dir" : "file";
|
|
98623
|
+
await applyExactDacl(path, userSid, target, run);
|
|
98624
|
+
if (!await verifyExactDacl2(path, userSid, target, run))
|
|
98625
|
+
throw new LocalApiError("insecure_state_dir", "the DACL is not exactly one ACE for the user");
|
|
98626
|
+
};
|
|
98627
|
+
var init_windows_dacl = __esm(() => {
|
|
98628
|
+
init_errors4();
|
|
98629
|
+
init_dacl();
|
|
98630
|
+
SID_TOKEN_SCRIPT = String.raw`
|
|
98631
|
+
$ErrorActionPreference = 'Stop'
|
|
98632
|
+
(New-Object System.Security.AccessControl.RawSecurityDescriptor("O:$env:LA_SID")).GetSddlForm('Owner')
|
|
98633
|
+
`;
|
|
98634
|
+
});
|
|
98635
|
+
|
|
98636
|
+
// packages/device-service-core/src/release/release-assets.ts
|
|
98637
|
+
var MANIFEST = "latest.json", CHECKSUMS_MAX_BYTES, MANIFEST_MAX_BYTES, BINARY_MAX_BYTES, DEVICE_SERVICE_HOSTS, deviceServiceAssetName = (host) => host.startsWith("windows-") ? `omo-device-service-${host}.exe` : `omo-device-service-${host}`, RELEASE_FILES;
|
|
98638
|
+
var init_release_assets = __esm(() => {
|
|
98639
|
+
init_version2();
|
|
98640
|
+
CHECKSUMS_MAX_BYTES = 64 * 1024;
|
|
98641
|
+
MANIFEST_MAX_BYTES = 4 * 1024;
|
|
98642
|
+
BINARY_MAX_BYTES = 512 * 1024 * 1024;
|
|
98643
|
+
DEVICE_SERVICE_HOSTS = [
|
|
98644
|
+
"darwin-arm64",
|
|
98645
|
+
"darwin-x64",
|
|
98646
|
+
"linux-x64",
|
|
98647
|
+
"linux-arm64",
|
|
98648
|
+
"windows-x64",
|
|
98649
|
+
"windows-arm64"
|
|
98650
|
+
];
|
|
98651
|
+
RELEASE_FILES = new Set([MANIFEST, ...DEVICE_SERVICE_HOSTS.map(deviceServiceAssetName)]);
|
|
98652
|
+
});
|
|
98653
|
+
|
|
98654
|
+
// packages/device-service-core/src/strict-ed25519/strict-ed25519.ts
|
|
98655
|
+
var P, L, mod = (n) => {
|
|
98656
|
+
const r = n % P;
|
|
98657
|
+
return r < 0n ? r + P : r;
|
|
98658
|
+
}, power = (base, exponent) => {
|
|
98659
|
+
let result = 1n;
|
|
98660
|
+
let b = mod(base);
|
|
98661
|
+
for (let n = exponent;n > 0n; n >>= 1n) {
|
|
98662
|
+
if (n & 1n)
|
|
98663
|
+
result = mod(result * b);
|
|
98664
|
+
b = mod(b * b);
|
|
98665
|
+
}
|
|
98666
|
+
return result;
|
|
98667
|
+
}, D, SQRT_MINUS_ONE, keyCache;
|
|
98668
|
+
var init_strict_ed25519 = __esm(() => {
|
|
98669
|
+
P = (1n << 255n) - 19n;
|
|
98670
|
+
L = (1n << 252n) + 27742317777372353535851937790883648493n;
|
|
98671
|
+
D = mod(-121665n * power(121666n, P - 2n));
|
|
98672
|
+
SQRT_MINUS_ONE = power(2n, (P - 1n) / 4n);
|
|
98673
|
+
keyCache = new Map;
|
|
98674
|
+
});
|
|
98675
|
+
|
|
98676
|
+
// packages/device-service-core/src/release/release-key.json
|
|
98677
|
+
var release_key_default;
|
|
98678
|
+
var init_release_key = __esm(() => {
|
|
98679
|
+
release_key_default = {
|
|
98680
|
+
alg: "Ed25519",
|
|
98681
|
+
public_keys_hex: ["6c6781a91888e3e5be10d1b27466319a7d5adf2a7d2b254f4118eda9cbcb4465", "ca9407b484a30ac7f09cb152455176f1e03fc6ca3446ff930bc7587215759016"]
|
|
98682
|
+
};
|
|
98683
|
+
});
|
|
98684
|
+
|
|
98685
|
+
// packages/device-service-core/src/release/release-signature.ts
|
|
98686
|
+
var HEX_KEY, parseReleaseKeySet = (value) => {
|
|
98687
|
+
if (typeof value !== "object" || value === null || Array.isArray(value))
|
|
98688
|
+
throw new Error("release key: not an object");
|
|
98689
|
+
if (Object.keys(value).toSorted().join(",") !== "alg,public_keys_hex")
|
|
98690
|
+
throw new Error("release key: fields must be exactly alg and public_keys_hex");
|
|
98691
|
+
const alg = Reflect.get(value, "alg");
|
|
98692
|
+
const hexes = Reflect.get(value, "public_keys_hex");
|
|
98693
|
+
if (alg !== "Ed25519")
|
|
98694
|
+
throw new Error("release key: alg must be Ed25519");
|
|
98695
|
+
if (!Array.isArray(hexes))
|
|
98696
|
+
throw new Error("release key: public_keys_hex must be an array");
|
|
98697
|
+
if (new Set(hexes).size !== hexes.length)
|
|
98698
|
+
throw new Error("release key: public_keys_hex must not repeat a key");
|
|
98699
|
+
return hexes.map((hex) => {
|
|
98700
|
+
if (typeof hex !== "string" || !HEX_KEY.test(hex))
|
|
98701
|
+
throw new Error("release key: each public_keys_hex entry must be 64 lowercase hex characters");
|
|
98702
|
+
return hex;
|
|
98703
|
+
});
|
|
98704
|
+
}, DEVICE_SERVICE_RELEASE_KEYS;
|
|
98705
|
+
var init_release_signature = __esm(() => {
|
|
98706
|
+
init_strict_ed25519();
|
|
98707
|
+
init_release_key();
|
|
98708
|
+
HEX_KEY = /^[0-9a-f]{64}$/;
|
|
98709
|
+
DEVICE_SERVICE_RELEASE_KEYS = parseReleaseKeySet(release_key_default);
|
|
98710
|
+
});
|
|
98711
|
+
|
|
98712
|
+
// packages/device-service-core/src/release/acquire.ts
|
|
98713
|
+
var platformSecure;
|
|
98714
|
+
var init_acquire = __esm(() => {
|
|
98715
|
+
init_access();
|
|
98716
|
+
init_local_only();
|
|
98717
|
+
init_dacl();
|
|
98718
|
+
init_windows_dacl();
|
|
98719
|
+
init_release_assets();
|
|
98720
|
+
init_release_signature();
|
|
98721
|
+
init_version2();
|
|
98722
|
+
init_release_assets();
|
|
98723
|
+
init_release_signature();
|
|
98724
|
+
platformSecure = process.platform === "win32" ? async (path, kind, origin) => windowsSecureFile2(await currentUserSid())(path, kind, origin) : posixSecureFile;
|
|
98725
|
+
});
|
|
98726
|
+
|
|
98727
|
+
// packages/device-service-core/src/install.ts
|
|
98728
|
+
var init_install = __esm(() => {
|
|
98729
|
+
init_acquire();
|
|
98730
|
+
});
|
|
98731
|
+
// packages/device-service-core/src/registrant-watch.ts
|
|
98732
|
+
var init_registrant_watch = () => {};
|
|
98733
|
+
|
|
98734
|
+
// packages/device-service-core/src/registrant.ts
|
|
98735
|
+
var NONE2;
|
|
98736
|
+
var init_registrant = __esm(() => {
|
|
98737
|
+
init_device_service2();
|
|
98738
|
+
init_registrant_watch();
|
|
98739
|
+
NONE2 = Symbol("none registered");
|
|
98740
|
+
});
|
|
98741
|
+
|
|
98742
|
+
// packages/device-service-core/src/index.ts
|
|
98743
|
+
var init_src6 = __esm(() => {
|
|
98744
|
+
init_delivery_consumer();
|
|
98745
|
+
init_account_state();
|
|
98746
|
+
init_bootstrap();
|
|
98747
|
+
init_hand_device_keys();
|
|
98748
|
+
init_cold_wake();
|
|
98749
|
+
init_install();
|
|
98750
|
+
init_registrant();
|
|
98751
|
+
init_timers();
|
|
98752
|
+
init_acquire();
|
|
98753
|
+
init_device_service2();
|
|
98754
|
+
});
|
|
98755
|
+
|
|
98756
|
+
// packages/device-service-core/src/wire.ts
|
|
98757
|
+
var init_wire = __esm(() => {
|
|
98758
|
+
init_errors4();
|
|
98759
|
+
});
|
|
98760
|
+
|
|
98761
|
+
// packages/omo-senpi/src/components/thread/errors.ts
|
|
98762
|
+
function isThreadErrorCode(value) {
|
|
98763
|
+
return typeof value === "string" && CODE_SET.has(value);
|
|
98764
|
+
}
|
|
98765
|
+
function threadToolFailure(code, message, nextAction, details) {
|
|
98766
|
+
if (!isThreadErrorCode(code)) {
|
|
98767
|
+
throw new Error(`unknown thread error code: ${String(code)}`);
|
|
98768
|
+
}
|
|
98769
|
+
return { code, message, next_action: nextAction, ...details === undefined ? {} : { details } };
|
|
98770
|
+
}
|
|
98771
|
+
var THREAD_ERROR_CODES, CODE_SET;
|
|
98772
|
+
var init_errors5 = __esm(() => {
|
|
98773
|
+
THREAD_ERROR_CODES = [
|
|
98774
|
+
"invalid_arguments",
|
|
98775
|
+
"caller_context_missing",
|
|
98776
|
+
"not_found",
|
|
98777
|
+
"reply_target_mismatch",
|
|
98778
|
+
"ambiguous_target",
|
|
98779
|
+
"scope_denied",
|
|
98780
|
+
"name_conflict",
|
|
98781
|
+
"not_resumable",
|
|
98782
|
+
"orphaned",
|
|
98783
|
+
"foreign_live_owner",
|
|
98784
|
+
"no_active_turn",
|
|
98785
|
+
"turn_conflict",
|
|
98786
|
+
"turn_active",
|
|
98787
|
+
"not_steerable",
|
|
98788
|
+
"message_too_large",
|
|
98789
|
+
"queue_full",
|
|
98790
|
+
"cursor_invalid",
|
|
98791
|
+
"cursor_stale",
|
|
98792
|
+
"idempotency_conflict",
|
|
98793
|
+
"idempotency_in_progress",
|
|
98794
|
+
"idempotency_uncertain",
|
|
98795
|
+
"delivered_unconfirmed",
|
|
98796
|
+
"prompt_not_started",
|
|
98797
|
+
"approval_unavailable",
|
|
98798
|
+
"approval_route_locked",
|
|
98799
|
+
"partial_commit",
|
|
98800
|
+
"unsupported",
|
|
98801
|
+
"overloaded",
|
|
98802
|
+
"transport_closed",
|
|
98803
|
+
"host_unavailable",
|
|
98804
|
+
"internal_error",
|
|
98805
|
+
"model_not_found",
|
|
98806
|
+
"model_ambiguous",
|
|
98807
|
+
"thinking_level_unsupported",
|
|
98808
|
+
"loop_detected",
|
|
98809
|
+
"pair_loop_guard",
|
|
98810
|
+
"chain_count_limit",
|
|
98811
|
+
"device_offline",
|
|
98812
|
+
"relay_requires_paid_plan",
|
|
98813
|
+
"alias_taken",
|
|
98814
|
+
"gateway_schema_too_new"
|
|
98815
|
+
];
|
|
98816
|
+
CODE_SET = new Set(THREAD_ERROR_CODES);
|
|
98817
|
+
});
|
|
98818
|
+
|
|
98819
|
+
// packages/omo-senpi/src/components/remote/codes.ts
|
|
98820
|
+
var REMOTE_CODES, ENGINE_CODES;
|
|
98821
|
+
var init_codes = __esm(() => {
|
|
98822
|
+
init_wire();
|
|
98823
|
+
init_errors5();
|
|
98824
|
+
REMOTE_CODES = [
|
|
98825
|
+
...THREAD_ERROR_CODES,
|
|
98826
|
+
"timeout",
|
|
98827
|
+
"cancelled",
|
|
98828
|
+
"session_ended",
|
|
98829
|
+
"sender_not_allowed",
|
|
98830
|
+
"local_only",
|
|
98831
|
+
"host_not_answering",
|
|
98832
|
+
"no_transport",
|
|
98833
|
+
"device_offline",
|
|
98834
|
+
"undelivered",
|
|
98835
|
+
"transport_expired",
|
|
98836
|
+
"unconfirmed",
|
|
98837
|
+
"host_error"
|
|
98838
|
+
];
|
|
98839
|
+
ENGINE_CODES = new Map([
|
|
98840
|
+
["model_unavailable", { code: "model_not_found" }],
|
|
98841
|
+
["invalid_level", { code: "thinking_level_unsupported" }],
|
|
98842
|
+
["worktree_failed", { code: "unsupported", details: { feature: "worktree" } }],
|
|
98843
|
+
["not_running", { code: "not_resumable" }],
|
|
98844
|
+
["handle_lost", { code: "not_found", details: { kind: "handle" } }]
|
|
98845
|
+
]);
|
|
98846
|
+
});
|
|
98847
|
+
|
|
98848
|
+
// packages/omo-senpi/src/components/remote/connection-of.ts
|
|
98849
|
+
var lenders;
|
|
98850
|
+
var init_connection_of = __esm(() => {
|
|
98851
|
+
lenders = new WeakMap;
|
|
98852
|
+
});
|
|
98853
|
+
|
|
98854
|
+
// packages/omo-senpi/src/components/remote/deadlines.ts
|
|
98855
|
+
var init_deadlines = __esm(() => {
|
|
98856
|
+
init_codes();
|
|
98857
|
+
});
|
|
98858
|
+
|
|
98859
|
+
// packages/omo-senpi/src/components/remote/seams.ts
|
|
98860
|
+
var init_seams = __esm(() => {
|
|
98861
|
+
init_codes();
|
|
98862
|
+
});
|
|
98863
|
+
|
|
98864
|
+
// packages/omo-senpi/src/components/remote/resolve.ts
|
|
98865
|
+
var init_resolve = __esm(() => {
|
|
98866
|
+
init_client5();
|
|
98867
|
+
init_deadlines();
|
|
98868
|
+
init_codes();
|
|
98869
|
+
init_seams();
|
|
98870
|
+
});
|
|
98871
|
+
|
|
98872
|
+
// packages/omo-senpi/src/components/remote/aliases.ts
|
|
98873
|
+
var init_aliases = __esm(() => {
|
|
98874
|
+
init_codes();
|
|
98875
|
+
init_deadlines();
|
|
98876
|
+
init_resolve();
|
|
98877
|
+
init_seams();
|
|
98878
|
+
});
|
|
98879
|
+
|
|
98880
|
+
// packages/omo-senpi/src/components/thread/gateway/result.ts
|
|
98881
|
+
var init_result = __esm(() => {
|
|
98882
|
+
init_errors5();
|
|
98883
|
+
});
|
|
98884
|
+
|
|
98885
|
+
// packages/omo-senpi/src/components/thread/remote/outcome.ts
|
|
98886
|
+
var READ_UNCERTAIN, UNANSWERED, NOT_SIGNED_IN, ENGINE_NOT_READY;
|
|
98887
|
+
var init_outcome = __esm(() => {
|
|
98888
|
+
init_errors5();
|
|
98889
|
+
init_result();
|
|
98890
|
+
READ_UNCERTAIN = {
|
|
98891
|
+
request_gone: "retry",
|
|
98892
|
+
no_receipt: "retry",
|
|
98893
|
+
engine_restarted: "retry",
|
|
98894
|
+
recipient_revoked: "retry",
|
|
98895
|
+
transport_expired: "retry",
|
|
98896
|
+
unconfirmed: "retry",
|
|
98897
|
+
lease_expired: "retry",
|
|
98898
|
+
cancelled: "retry",
|
|
98899
|
+
hand_restarted: "retry",
|
|
98900
|
+
result_expired: "retry",
|
|
98901
|
+
record_too_large: "too_large",
|
|
98902
|
+
result_undecodable: "retry"
|
|
98903
|
+
};
|
|
98904
|
+
UNANSWERED = new Set([
|
|
98905
|
+
"closed",
|
|
98906
|
+
"protocol_violation",
|
|
98907
|
+
"internal",
|
|
98908
|
+
"read_failed",
|
|
98909
|
+
"request_timeout",
|
|
98910
|
+
"handshake_timeout",
|
|
98911
|
+
"attach_failed",
|
|
98912
|
+
"reply_lost",
|
|
98913
|
+
"delivered_unconfirmed",
|
|
98914
|
+
"host_not_answering",
|
|
98915
|
+
"peer_not_found",
|
|
98916
|
+
"engine_stale",
|
|
98917
|
+
...Object.entries(READ_UNCERTAIN).filter(([, answer]) => answer === "retry").map(([reason]) => reason)
|
|
98918
|
+
]);
|
|
98919
|
+
NOT_SIGNED_IN = new Set(["sign_in_required", "signed_out"]);
|
|
98920
|
+
ENGINE_NOT_READY = new Set(["attach_required", "daemon_unavailable"]);
|
|
98921
|
+
});
|
|
98922
|
+
|
|
98923
|
+
// packages/omo-senpi/src/components/thread/remote/attach-pool.ts
|
|
98924
|
+
var CATALOG_RECORD = "get_available_models", HELD_RECORDS;
|
|
98925
|
+
var init_attach_pool = __esm(() => {
|
|
98926
|
+
HELD_RECORDS = new Set([CATALOG_RECORD, "get_protocol_info"]);
|
|
98927
|
+
});
|
|
98928
|
+
|
|
98929
|
+
// packages/omo-senpi/src/components/thread/remote/ports.ts
|
|
98930
|
+
var init_ports = () => {};
|
|
98931
|
+
|
|
98932
|
+
// packages/omo-senpi/src/components/thread/remote/session-state.ts
|
|
98933
|
+
var ACCESS_ENDED, ACCESS_REFUSED, SESSION_LEFT, SESSION_GONE;
|
|
98934
|
+
var init_session_state = __esm(() => {
|
|
98935
|
+
ACCESS_ENDED = new Set([
|
|
98936
|
+
"authorization_expired",
|
|
98937
|
+
"peer_revoked",
|
|
98938
|
+
"owner_transfer",
|
|
98939
|
+
"service_disabled"
|
|
98940
|
+
]);
|
|
98941
|
+
ACCESS_REFUSED = new Set([
|
|
98942
|
+
"unauthenticated",
|
|
98943
|
+
"forbidden",
|
|
98944
|
+
"owner_transfer",
|
|
98945
|
+
"signed_out",
|
|
98946
|
+
"service_disabled",
|
|
98947
|
+
"sign_in_required",
|
|
98948
|
+
"plan_required",
|
|
98949
|
+
"peer_not_found",
|
|
98950
|
+
"peer_not_session_client",
|
|
98951
|
+
"account_changed",
|
|
98952
|
+
"device_changed",
|
|
98953
|
+
"capability_missing",
|
|
98954
|
+
"engine_too_old"
|
|
98955
|
+
]);
|
|
98956
|
+
SESSION_LEFT = new Set(["session_closed", "session_replaced"]);
|
|
98957
|
+
SESSION_GONE = new Set([
|
|
98958
|
+
"session_not_found",
|
|
98959
|
+
"unknown_session",
|
|
98960
|
+
"session_identity_mismatch"
|
|
98961
|
+
]);
|
|
98962
|
+
});
|
|
98963
|
+
// packages/omo-senpi/src/components/thread/remote/remote-watch.ts
|
|
98964
|
+
var init_remote_watch = __esm(() => {
|
|
98965
|
+
init_device_service2();
|
|
98966
|
+
init_ports();
|
|
98967
|
+
init_session_state();
|
|
98968
|
+
});
|
|
98969
|
+
|
|
98970
|
+
// packages/omo-senpi/src/components/call-budget/call-deadline.ts
|
|
98971
|
+
import { AsyncLocalStorage as AsyncLocalStorage4 } from "node:async_hooks";
|
|
98972
|
+
var scope;
|
|
98973
|
+
var init_call_deadline = __esm(() => {
|
|
98974
|
+
scope = new AsyncLocalStorage4;
|
|
98975
|
+
});
|
|
98976
|
+
// packages/omo-senpi/src/components/remote/port/lookup-gate.ts
|
|
98977
|
+
var init_lookup_gate = __esm(() => {
|
|
98978
|
+
init_ports();
|
|
98979
|
+
});
|
|
98980
|
+
|
|
98981
|
+
// packages/omo-senpi/src/components/remote/port/device-service.ts
|
|
98982
|
+
var READ_ONLY_RECORDS, MARKED_RECORDS, LOOKUP_NONE;
|
|
98983
|
+
var init_device_service3 = __esm(() => {
|
|
98984
|
+
init_outcome();
|
|
98985
|
+
init_device_service2();
|
|
98986
|
+
init_attach_pool();
|
|
98987
|
+
init_remote_watch();
|
|
98988
|
+
init_call_deadline();
|
|
98989
|
+
init_lookup_gate();
|
|
98990
|
+
READ_ONLY_RECORDS = new Set([
|
|
98991
|
+
"get_state",
|
|
98992
|
+
"get_messages",
|
|
98993
|
+
"get_entries",
|
|
98994
|
+
"get_protocol_info"
|
|
98995
|
+
]);
|
|
98996
|
+
MARKED_RECORDS = new Set(["admit_external_message"]);
|
|
98997
|
+
LOOKUP_NONE = new Set(["session_not_found", "peer_not_found", "peer_not_session_client"]);
|
|
98998
|
+
});
|
|
98999
|
+
|
|
99000
|
+
// packages/omo-senpi/src/components/remote/attach.ts
|
|
99001
|
+
var DIALOG_KINDS;
|
|
99002
|
+
var init_attach = __esm(() => {
|
|
99003
|
+
init_device_service2();
|
|
99004
|
+
init_outcome();
|
|
99005
|
+
init_client5();
|
|
99006
|
+
init_codes();
|
|
99007
|
+
init_deadlines();
|
|
99008
|
+
init_device_service3();
|
|
99009
|
+
init_resolve();
|
|
99010
|
+
init_seams();
|
|
99011
|
+
DIALOG_KINDS = new Set(["select", "confirm", "input", "editor", "question"]);
|
|
99012
|
+
});
|
|
99013
|
+
|
|
99014
|
+
// packages/omo-senpi/src/components/thread/address/refusals.ts
|
|
99015
|
+
var init_refusals = __esm(() => {
|
|
99016
|
+
init_errors5();
|
|
99017
|
+
});
|
|
99018
|
+
|
|
99019
|
+
// packages/omo-senpi/src/components/thread/remote/address-book.ts
|
|
99020
|
+
var REMOTE_NOT_SET_UP;
|
|
99021
|
+
var init_address_book = __esm(() => {
|
|
99022
|
+
init_ports();
|
|
99023
|
+
REMOTE_NOT_SET_UP = new Set(["not_configured", "disabled", "signed_out", "sign_in_required"]);
|
|
99024
|
+
});
|
|
99025
|
+
|
|
99026
|
+
// packages/omo-senpi/src/components/thread/address/account.ts
|
|
99027
|
+
var NOT_SET_UP, lastListed;
|
|
99028
|
+
var init_account = __esm(() => {
|
|
99029
|
+
init_remote_ops();
|
|
99030
|
+
init_address_book();
|
|
99031
|
+
NOT_SET_UP = new Set(["not_configured", "disabled", "signed_out", "sign_in_required"]);
|
|
99032
|
+
lastListed = new WeakMap;
|
|
99033
|
+
});
|
|
99034
|
+
|
|
99035
|
+
// packages/omo-senpi/src/components/thread/address/device.ts
|
|
99036
|
+
var init_device = __esm(() => {
|
|
99037
|
+
init_errors5();
|
|
99038
|
+
init_account();
|
|
99039
|
+
init_refusals();
|
|
99040
|
+
});
|
|
99041
|
+
|
|
99042
|
+
// packages/omo-senpi/src/components/thread/remote/remote-ops.ts
|
|
99043
|
+
var init_remote_ops = __esm(() => {
|
|
99044
|
+
init_refusals();
|
|
99045
|
+
init_device();
|
|
99046
|
+
init_account();
|
|
99047
|
+
init_outcome();
|
|
99048
|
+
});
|
|
99049
|
+
|
|
99050
|
+
// packages/omo-senpi/src/components/remote/send-transcript.ts
|
|
99051
|
+
var awaiting, views;
|
|
99052
|
+
var init_send_transcript = __esm(() => {
|
|
99053
|
+
init_remote_ops();
|
|
99054
|
+
awaiting = new WeakMap;
|
|
99055
|
+
views = new WeakMap;
|
|
99056
|
+
});
|
|
99057
|
+
|
|
99058
|
+
// packages/omo-senpi/src/components/remote/follow.ts
|
|
99059
|
+
var RUN_OVER;
|
|
99060
|
+
var init_follow = __esm(() => {
|
|
99061
|
+
init_outcome();
|
|
99062
|
+
init_attach();
|
|
99063
|
+
init_client5();
|
|
99064
|
+
init_codes();
|
|
99065
|
+
init_deadlines();
|
|
99066
|
+
init_seams();
|
|
99067
|
+
init_send_transcript();
|
|
99068
|
+
RUN_OVER = new Set(["waiting_children", "waiting_background", "done", "failed", "cancelled"]);
|
|
99069
|
+
});
|
|
99070
|
+
|
|
98380
99071
|
// node_modules/.bun/typebox@1.3.34/node_modules/typebox/build/system/memory/metrics.mjs
|
|
98381
99072
|
var Metrics;
|
|
98382
99073
|
var init_metrics2 = __esm(() => {
|
|
@@ -100703,7 +101394,7 @@ function IsExtendsTrueLike(value) {
|
|
|
100703
101394
|
function Match3(result, true_, false_) {
|
|
100704
101395
|
return IsExtendsTrueLike(result) ? true_(result.inferred) : false_();
|
|
100705
101396
|
}
|
|
100706
|
-
var
|
|
101397
|
+
var init_result2 = __esm(() => {
|
|
100707
101398
|
init_guard2();
|
|
100708
101399
|
init_memory3();
|
|
100709
101400
|
});
|
|
@@ -100747,7 +101438,7 @@ var init_extends_right = __esm(() => {
|
|
|
100747
101438
|
init_union();
|
|
100748
101439
|
init_unknown();
|
|
100749
101440
|
init_extends_left();
|
|
100750
|
-
|
|
101441
|
+
init_result2();
|
|
100751
101442
|
init_evaluate2();
|
|
100752
101443
|
init_evaluate2();
|
|
100753
101444
|
});
|
|
@@ -100761,7 +101452,7 @@ var init_any2 = __esm(() => {
|
|
|
100761
101452
|
init_any();
|
|
100762
101453
|
init_unknown();
|
|
100763
101454
|
init_extends_right();
|
|
100764
|
-
|
|
101455
|
+
init_result2();
|
|
100765
101456
|
});
|
|
100766
101457
|
|
|
100767
101458
|
// node_modules/.bun/typebox@1.3.34/node_modules/typebox/build/type/extends/array.mjs
|
|
@@ -100778,7 +101469,7 @@ var init_array2 = __esm(() => {
|
|
|
100778
101469
|
init__immutable();
|
|
100779
101470
|
init_extends_right();
|
|
100780
101471
|
init_extends_left();
|
|
100781
|
-
|
|
101472
|
+
init_result2();
|
|
100782
101473
|
});
|
|
100783
101474
|
|
|
100784
101475
|
// node_modules/.bun/typebox@1.3.34/node_modules/typebox/build/type/extends/bigint.mjs
|
|
@@ -100788,7 +101479,7 @@ function ExtendsBigInt(inferred, left, right) {
|
|
|
100788
101479
|
var init_bigint3 = __esm(() => {
|
|
100789
101480
|
init_bigint();
|
|
100790
101481
|
init_extends_right();
|
|
100791
|
-
|
|
101482
|
+
init_result2();
|
|
100792
101483
|
});
|
|
100793
101484
|
|
|
100794
101485
|
// node_modules/.bun/typebox@1.3.34/node_modules/typebox/build/type/extends/boolean.mjs
|
|
@@ -100798,7 +101489,7 @@ function ExtendsBoolean(inferred, left, right) {
|
|
|
100798
101489
|
var init_boolean2 = __esm(() => {
|
|
100799
101490
|
init_boolean();
|
|
100800
101491
|
init_extends_right();
|
|
100801
|
-
|
|
101492
|
+
init_result2();
|
|
100802
101493
|
});
|
|
100803
101494
|
|
|
100804
101495
|
// node_modules/.bun/typebox@1.3.34/node_modules/typebox/build/type/extends/parameters.mjs
|
|
@@ -100823,7 +101514,7 @@ var init_parameters = __esm(() => {
|
|
|
100823
101514
|
init_infer();
|
|
100824
101515
|
init__optional();
|
|
100825
101516
|
init_extends_left();
|
|
100826
|
-
|
|
101517
|
+
init_result2();
|
|
100827
101518
|
});
|
|
100828
101519
|
|
|
100829
101520
|
// node_modules/.bun/typebox@1.3.34/node_modules/typebox/build/type/extends/return_type.mjs
|
|
@@ -100833,7 +101524,7 @@ function ExtendsReturnType(inferred, left, right) {
|
|
|
100833
101524
|
var init_return_type = __esm(() => {
|
|
100834
101525
|
init_void();
|
|
100835
101526
|
init_extends_left();
|
|
100836
|
-
|
|
101527
|
+
init_result2();
|
|
100837
101528
|
});
|
|
100838
101529
|
|
|
100839
101530
|
// node_modules/.bun/typebox@1.3.34/node_modules/typebox/build/type/extends/constructor.mjs
|
|
@@ -100844,7 +101535,7 @@ var init_constructor2 = __esm(() => {
|
|
|
100844
101535
|
init_any();
|
|
100845
101536
|
init_constructor();
|
|
100846
101537
|
init_unknown();
|
|
100847
|
-
|
|
101538
|
+
init_result2();
|
|
100848
101539
|
init_parameters();
|
|
100849
101540
|
init_return_type();
|
|
100850
101541
|
});
|
|
@@ -100855,7 +101546,7 @@ function ExtendsDependent(inferred, if_, then_, else_, right) {
|
|
|
100855
101546
|
}
|
|
100856
101547
|
var init_dependent2 = __esm(() => {
|
|
100857
101548
|
init_extends_left();
|
|
100858
|
-
|
|
101549
|
+
init_result2();
|
|
100859
101550
|
});
|
|
100860
101551
|
|
|
100861
101552
|
// node_modules/.bun/typebox@1.3.34/node_modules/typebox/build/type/extends/enum.mjs
|
|
@@ -100876,7 +101567,7 @@ var init_function2 = __esm(() => {
|
|
|
100876
101567
|
init_any();
|
|
100877
101568
|
init_function();
|
|
100878
101569
|
init_unknown();
|
|
100879
|
-
|
|
101570
|
+
init_result2();
|
|
100880
101571
|
init_parameters();
|
|
100881
101572
|
init_return_type();
|
|
100882
101573
|
});
|
|
@@ -100889,7 +101580,7 @@ var init_integer3 = __esm(() => {
|
|
|
100889
101580
|
init_integer();
|
|
100890
101581
|
init_number();
|
|
100891
101582
|
init_extends_right();
|
|
100892
|
-
|
|
101583
|
+
init_result2();
|
|
100893
101584
|
});
|
|
100894
101585
|
|
|
100895
101586
|
// node_modules/.bun/typebox@1.3.34/node_modules/typebox/build/type/extends/intersect.mjs
|
|
@@ -100929,7 +101620,7 @@ var init_literal2 = __esm(() => {
|
|
|
100929
101620
|
init_number();
|
|
100930
101621
|
init_string();
|
|
100931
101622
|
init_extends_right();
|
|
100932
|
-
|
|
101623
|
+
init_result2();
|
|
100933
101624
|
});
|
|
100934
101625
|
|
|
100935
101626
|
// node_modules/.bun/typebox@1.3.34/node_modules/typebox/build/type/extends/never.mjs
|
|
@@ -100939,7 +101630,7 @@ function ExtendsNever(inferred, left, right) {
|
|
|
100939
101630
|
var init_never2 = __esm(() => {
|
|
100940
101631
|
init_infer();
|
|
100941
101632
|
init_extends_right();
|
|
100942
|
-
|
|
101633
|
+
init_result2();
|
|
100943
101634
|
});
|
|
100944
101635
|
|
|
100945
101636
|
// node_modules/.bun/typebox@1.3.34/node_modules/typebox/build/type/extends/null.mjs
|
|
@@ -100949,7 +101640,7 @@ function ExtendsNull(inferred, left, right) {
|
|
|
100949
101640
|
var init_null2 = __esm(() => {
|
|
100950
101641
|
init_null();
|
|
100951
101642
|
init_extends_right();
|
|
100952
|
-
|
|
101643
|
+
init_result2();
|
|
100953
101644
|
});
|
|
100954
101645
|
|
|
100955
101646
|
// node_modules/.bun/typebox@1.3.34/node_modules/typebox/build/type/extends/number.mjs
|
|
@@ -100959,7 +101650,7 @@ function ExtendsNumber(inferred, left, right) {
|
|
|
100959
101650
|
var init_number3 = __esm(() => {
|
|
100960
101651
|
init_number();
|
|
100961
101652
|
init_extends_right();
|
|
100962
|
-
|
|
101653
|
+
init_result2();
|
|
100963
101654
|
});
|
|
100964
101655
|
|
|
100965
101656
|
// node_modules/.bun/typebox@1.3.34/node_modules/typebox/build/type/extends/object.mjs
|
|
@@ -101021,7 +101712,7 @@ var init_object2 = __esm(() => {
|
|
|
101021
101712
|
init_union();
|
|
101022
101713
|
init_extends_left();
|
|
101023
101714
|
init_extends_right();
|
|
101024
|
-
|
|
101715
|
+
init_result2();
|
|
101025
101716
|
});
|
|
101026
101717
|
|
|
101027
101718
|
// node_modules/.bun/typebox@1.3.34/node_modules/typebox/build/type/extends/record.mjs
|
|
@@ -101041,7 +101732,7 @@ var init_record2 = __esm(() => {
|
|
|
101041
101732
|
init_object();
|
|
101042
101733
|
init_record();
|
|
101043
101734
|
init_extends_left();
|
|
101044
|
-
|
|
101735
|
+
init_result2();
|
|
101045
101736
|
});
|
|
101046
101737
|
|
|
101047
101738
|
// node_modules/.bun/typebox@1.3.34/node_modules/typebox/build/type/extends/string.mjs
|
|
@@ -101051,7 +101742,7 @@ function ExtendsString(inferred, left, right) {
|
|
|
101051
101742
|
var init_string3 = __esm(() => {
|
|
101052
101743
|
init_string();
|
|
101053
101744
|
init_extends_right();
|
|
101054
|
-
|
|
101745
|
+
init_result2();
|
|
101055
101746
|
});
|
|
101056
101747
|
|
|
101057
101748
|
// node_modules/.bun/typebox@1.3.34/node_modules/typebox/build/type/extends/symbol.mjs
|
|
@@ -101061,7 +101752,7 @@ function ExtendsSymbol(inferred, left, right) {
|
|
|
101061
101752
|
var init_symbol2 = __esm(() => {
|
|
101062
101753
|
init_symbol();
|
|
101063
101754
|
init_extends_right();
|
|
101064
|
-
|
|
101755
|
+
init_result2();
|
|
101065
101756
|
});
|
|
101066
101757
|
|
|
101067
101758
|
// node_modules/.bun/typebox@1.3.34/node_modules/typebox/build/type/extends/template_literal.mjs
|
|
@@ -101115,7 +101806,7 @@ var init_inference = __esm(() => {
|
|
|
101115
101806
|
init_union();
|
|
101116
101807
|
init_infer();
|
|
101117
101808
|
init_rest();
|
|
101118
|
-
|
|
101809
|
+
init_result2();
|
|
101119
101810
|
});
|
|
101120
101811
|
|
|
101121
101812
|
// node_modules/.bun/typebox@1.3.34/node_modules/typebox/build/type/extends/tuple.mjs
|
|
@@ -101172,7 +101863,7 @@ var init_tuple2 = __esm(() => {
|
|
|
101172
101863
|
init_tuple();
|
|
101173
101864
|
init_extends_left();
|
|
101174
101865
|
init_extends_right();
|
|
101175
|
-
|
|
101866
|
+
init_result2();
|
|
101176
101867
|
init_instantiate27();
|
|
101177
101868
|
init_instantiate27();
|
|
101178
101869
|
init_inference();
|
|
@@ -101186,7 +101877,7 @@ var init_undefined2 = __esm(() => {
|
|
|
101186
101877
|
init_undefined();
|
|
101187
101878
|
init_void();
|
|
101188
101879
|
init_extends_right();
|
|
101189
|
-
|
|
101880
|
+
init_result2();
|
|
101190
101881
|
});
|
|
101191
101882
|
|
|
101192
101883
|
// node_modules/.bun/typebox@1.3.34/node_modules/typebox/build/type/extends/union.mjs
|
|
@@ -101204,7 +101895,7 @@ var init_union2 = __esm(() => {
|
|
|
101204
101895
|
init_guard2();
|
|
101205
101896
|
init_union();
|
|
101206
101897
|
init_extends_left();
|
|
101207
|
-
|
|
101898
|
+
init_result2();
|
|
101208
101899
|
init_inference();
|
|
101209
101900
|
});
|
|
101210
101901
|
|
|
@@ -101217,7 +101908,7 @@ var init_unknown2 = __esm(() => {
|
|
|
101217
101908
|
init_unknown();
|
|
101218
101909
|
init_infer();
|
|
101219
101910
|
init_extends_right();
|
|
101220
|
-
|
|
101911
|
+
init_result2();
|
|
101221
101912
|
});
|
|
101222
101913
|
|
|
101223
101914
|
// node_modules/.bun/typebox@1.3.34/node_modules/typebox/build/type/extends/void.mjs
|
|
@@ -101227,7 +101918,7 @@ function ExtendsVoid(inferred, left, right) {
|
|
|
101227
101918
|
var init_void2 = __esm(() => {
|
|
101228
101919
|
init_void();
|
|
101229
101920
|
init_extends_right();
|
|
101230
|
-
|
|
101921
|
+
init_result2();
|
|
101231
101922
|
});
|
|
101232
101923
|
|
|
101233
101924
|
// node_modules/.bun/typebox@1.3.34/node_modules/typebox/build/type/extends/extends_left.mjs
|
|
@@ -101283,7 +101974,7 @@ var init_extends_left = __esm(() => {
|
|
|
101283
101974
|
init_unknown();
|
|
101284
101975
|
init_union();
|
|
101285
101976
|
init_void();
|
|
101286
|
-
|
|
101977
|
+
init_result2();
|
|
101287
101978
|
});
|
|
101288
101979
|
|
|
101289
101980
|
// node_modules/.bun/typebox@1.3.34/node_modules/typebox/build/type/engine/interface/instantiate.mjs
|
|
@@ -101522,7 +102213,7 @@ var init_extends2 = __esm(() => {
|
|
|
101522
102213
|
// node_modules/.bun/typebox@1.3.34/node_modules/typebox/build/type/extends/index.mjs
|
|
101523
102214
|
var init_extends3 = __esm(() => {
|
|
101524
102215
|
init_extends2();
|
|
101525
|
-
|
|
102216
|
+
init_result2();
|
|
101526
102217
|
});
|
|
101527
102218
|
|
|
101528
102219
|
// node_modules/.bun/typebox@1.3.34/node_modules/typebox/build/type/engine/evaluate/compare.mjs
|
|
@@ -103852,13 +104543,6 @@ var init_build = __esm(() => {
|
|
|
103852
104543
|
init_types10();
|
|
103853
104544
|
});
|
|
103854
104545
|
|
|
103855
|
-
// packages/omo-senpi/src/components/thread/gateway/bindings.ts
|
|
103856
|
-
var BINDING_MAX_TTL_SECONDS, OUTBOX_RETENTION_MS, RELAY_TEXT_MAX_BYTES = 32768;
|
|
103857
|
-
var init_bindings = __esm(() => {
|
|
103858
|
-
BINDING_MAX_TTL_SECONDS = 366 * 24 * 60 * 60;
|
|
103859
|
-
OUTBOX_RETENTION_MS = 30 * 24 * 60 * 60 * 1000;
|
|
103860
|
-
});
|
|
103861
|
-
|
|
103862
104546
|
// packages/omo-senpi/src/components/thread/contracts/fields.ts
|
|
103863
104547
|
var THREAD_MESSAGE_MAX_BYTES = 32768, THREAD_SUMMARY_MAX_LENGTH = 200, THREAD_READ_DEFAULT_BYTES = 131072, THREAD_READ_MAX_BYTES = 1048576, ThreadAddress, AllScope, IdempotencyKey, CollapseKey, ExpectedTurnId, Summary, Message2, thinkingLevel = (description) => Union([
|
|
103864
104548
|
Literal("off"),
|
|
@@ -103868,10 +104552,9 @@ var THREAD_MESSAGE_MAX_BYTES = 32768, THREAD_SUMMARY_MAX_LENGTH = 200, THREAD_RE
|
|
|
103868
104552
|
Literal("high"),
|
|
103869
104553
|
Literal("xhigh"),
|
|
103870
104554
|
Literal("max")
|
|
103871
|
-
], { description }),
|
|
104555
|
+
], { description }), DEFAULT_THREAD_DELIVERY = "auto", ThreadDeliveryMode;
|
|
103872
104556
|
var init_fields = __esm(() => {
|
|
103873
104557
|
init_build();
|
|
103874
|
-
init_bindings();
|
|
103875
104558
|
ThreadAddress = String2({
|
|
103876
104559
|
description: "Recipient thread: the thread value of a thread_list row (tool.thread_list() in an eval cell) or of any thread tool result, an alias, a unique name, or the first 8+ characters of a thread value when only one thread starts with them. A name or prefix shared by several threads returns ambiguous_target with candidates. self addresses the caller's own session."
|
|
103877
104560
|
});
|
|
@@ -103897,13 +104580,6 @@ var init_fields = __esm(() => {
|
|
|
103897
104580
|
maxLength: THREAD_MESSAGE_MAX_BYTES,
|
|
103898
104581
|
description: `Instruction to deliver to the target thread; longer than ${THREAD_MESSAGE_MAX_BYTES} UTF-8 bytes returns message_too_large.`
|
|
103899
104582
|
});
|
|
103900
|
-
BindingId = String2({
|
|
103901
|
-
minLength: 1,
|
|
103902
|
-
description: "Id of the chat binding the gateway keeps for the thread."
|
|
103903
|
-
});
|
|
103904
|
-
RelayText = String2({
|
|
103905
|
-
description: `Text relayed to or from the external thread; longer than ${RELAY_TEXT_MAX_BYTES} UTF-8 bytes returns message_too_large.`
|
|
103906
|
-
});
|
|
103907
104583
|
ThreadDeliveryMode = Union([Literal("auto"), Literal("steer"), Literal("follow_up")], {
|
|
103908
104584
|
default: DEFAULT_THREAD_DELIVERY,
|
|
103909
104585
|
description: "Omitted: auto. auto steers the running turn when one is active and starts a new turn otherwise; steer requires expected_turn_id and becomes turn_conflict when the active turn changed; follow_up queues the message behind the running turn (pass it only when the message must wait for that turn to end)."
|
|
@@ -103916,160 +104592,103 @@ var init_permission_presets = __esm(() => {
|
|
|
103916
104592
|
PERMISSION_PRESETS = ["full-access", "workspace", "accept-edits", "auto", "read-only", "ask"];
|
|
103917
104593
|
});
|
|
103918
104594
|
|
|
103919
|
-
// packages/omo-senpi/src/components/thread/
|
|
103920
|
-
var
|
|
103921
|
-
|
|
103922
|
-
// packages/omo-senpi/src/components/thread/errors.ts
|
|
103923
|
-
function isThreadErrorCode(value) {
|
|
103924
|
-
return typeof value === "string" && CODE_SET.has(value);
|
|
103925
|
-
}
|
|
103926
|
-
function threadToolFailure(code, message, nextAction, details) {
|
|
103927
|
-
if (!isThreadErrorCode(code)) {
|
|
103928
|
-
throw new Error(`unknown thread error code: ${String(code)}`);
|
|
103929
|
-
}
|
|
103930
|
-
return { code, message, next_action: nextAction, ...details === undefined ? {} : { details } };
|
|
103931
|
-
}
|
|
103932
|
-
var THREAD_ERROR_CODES, CODE_SET;
|
|
103933
|
-
var init_errors5 = __esm(() => {
|
|
103934
|
-
THREAD_ERROR_CODES = [
|
|
103935
|
-
"invalid_arguments",
|
|
103936
|
-
"caller_context_missing",
|
|
103937
|
-
"not_found",
|
|
103938
|
-
"reply_target_mismatch",
|
|
103939
|
-
"ambiguous_target",
|
|
103940
|
-
"scope_denied",
|
|
103941
|
-
"name_conflict",
|
|
103942
|
-
"not_resumable",
|
|
103943
|
-
"orphaned",
|
|
103944
|
-
"foreign_live_owner",
|
|
103945
|
-
"no_active_turn",
|
|
103946
|
-
"turn_conflict",
|
|
103947
|
-
"turn_active",
|
|
103948
|
-
"not_steerable",
|
|
103949
|
-
"message_too_large",
|
|
103950
|
-
"queue_full",
|
|
103951
|
-
"cursor_invalid",
|
|
103952
|
-
"cursor_stale",
|
|
103953
|
-
"idempotency_conflict",
|
|
103954
|
-
"idempotency_in_progress",
|
|
103955
|
-
"idempotency_uncertain",
|
|
103956
|
-
"delivered_unconfirmed",
|
|
103957
|
-
"prompt_not_started",
|
|
103958
|
-
"approval_unavailable",
|
|
103959
|
-
"approval_route_locked",
|
|
103960
|
-
"partial_commit",
|
|
103961
|
-
"unsupported",
|
|
103962
|
-
"overloaded",
|
|
103963
|
-
"transport_closed",
|
|
103964
|
-
"host_unavailable",
|
|
103965
|
-
"internal_error",
|
|
103966
|
-
"model_not_found",
|
|
103967
|
-
"model_ambiguous",
|
|
103968
|
-
"thinking_level_unsupported",
|
|
103969
|
-
"loop_detected",
|
|
103970
|
-
"pair_loop_guard",
|
|
103971
|
-
"chain_count_limit",
|
|
103972
|
-
"binding_conflict",
|
|
103973
|
-
"binding_mismatch",
|
|
103974
|
-
"binding_inactive",
|
|
103975
|
-
"stale_revision",
|
|
103976
|
-
"stale_token",
|
|
103977
|
-
"already_answered",
|
|
103978
|
-
"answer_in_progress",
|
|
103979
|
-
"device_offline",
|
|
103980
|
-
"relay_requires_paid_plan",
|
|
103981
|
-
"alias_taken",
|
|
103982
|
-
"gateway_schema_too_new"
|
|
103983
|
-
];
|
|
103984
|
-
CODE_SET = new Set(THREAD_ERROR_CODES);
|
|
103985
|
-
});
|
|
103986
|
-
|
|
103987
|
-
// packages/omo-senpi/src/components/thread/initial-skills.ts
|
|
103988
|
-
var init_initial_skills = () => {};
|
|
103989
|
-
|
|
103990
|
-
// packages/omo-senpi/src/components/thread/gateway/result.ts
|
|
103991
|
-
var init_result2 = __esm(() => {
|
|
103992
|
-
init_errors5();
|
|
103993
|
-
});
|
|
103994
|
-
|
|
103995
|
-
// packages/omo-senpi/src/components/thread/remote/outcome.ts
|
|
103996
|
-
var READ_UNCERTAIN, UNANSWERED, NOT_SIGNED_IN;
|
|
103997
|
-
var init_outcome = __esm(() => {
|
|
103998
|
-
init_errors5();
|
|
103999
|
-
init_result2();
|
|
104000
|
-
READ_UNCERTAIN = {
|
|
104001
|
-
request_gone: "retry",
|
|
104002
|
-
no_receipt: "retry",
|
|
104003
|
-
engine_restarted: "retry",
|
|
104004
|
-
recipient_revoked: "retry",
|
|
104005
|
-
transport_expired: "retry",
|
|
104006
|
-
unconfirmed: "retry",
|
|
104007
|
-
lease_expired: "retry",
|
|
104008
|
-
cancelled: "retry",
|
|
104009
|
-
hand_restarted: "retry",
|
|
104010
|
-
result_expired: "retry",
|
|
104011
|
-
record_too_large: "too_large",
|
|
104012
|
-
result_undecodable: "retry"
|
|
104013
|
-
};
|
|
104014
|
-
UNANSWERED = new Set([
|
|
104015
|
-
"closed",
|
|
104016
|
-
"protocol_violation",
|
|
104017
|
-
"internal",
|
|
104018
|
-
"read_failed",
|
|
104019
|
-
"request_timeout",
|
|
104020
|
-
"handshake_timeout",
|
|
104021
|
-
"attach_failed",
|
|
104022
|
-
"reply_lost",
|
|
104023
|
-
"delivered_unconfirmed",
|
|
104024
|
-
"host_not_answering",
|
|
104025
|
-
"peer_not_found",
|
|
104026
|
-
"engine_stale",
|
|
104027
|
-
...Object.entries(READ_UNCERTAIN).filter(([, answer]) => answer === "retry").map(([reason]) => reason)
|
|
104028
|
-
]);
|
|
104029
|
-
NOT_SIGNED_IN = new Set(["sign_in_required", "signed_out"]);
|
|
104030
|
-
});
|
|
104031
|
-
|
|
104032
|
-
// packages/omo-senpi/src/components/thread/address/refusals.ts
|
|
104033
|
-
var init_refusals = __esm(() => {
|
|
104595
|
+
// packages/omo-senpi/src/components/thread/addressing.ts
|
|
104596
|
+
var init_addressing = __esm(() => {
|
|
104034
104597
|
init_errors5();
|
|
104035
104598
|
});
|
|
104036
104599
|
|
|
104037
|
-
// packages/omo-senpi/src/components/thread/
|
|
104038
|
-
var
|
|
104039
|
-
var
|
|
104040
|
-
|
|
104041
|
-
|
|
104600
|
+
// packages/omo-senpi/src/components/thread/session-facts.ts
|
|
104601
|
+
var SESSION_FACTS_WINDOW_BYTES, SESSION_FACTS_LAST_LINE_MAX_BYTES;
|
|
104602
|
+
var init_session_facts = __esm(() => {
|
|
104603
|
+
SESSION_FACTS_WINDOW_BYTES = 64 * 1024;
|
|
104604
|
+
SESSION_FACTS_LAST_LINE_MAX_BYTES = SESSION_FACTS_WINDOW_BYTES * 4;
|
|
104042
104605
|
});
|
|
104043
|
-
|
|
104044
|
-
|
|
104045
|
-
|
|
104046
|
-
|
|
104047
|
-
init_remote_ops();
|
|
104048
|
-
init_address_book();
|
|
104049
|
-
NOT_SET_UP = new Set(["not_configured", "disabled", "signed_out", "sign_in_required"]);
|
|
104050
|
-
lastListed = new WeakMap;
|
|
104606
|
+
// packages/omo-senpi/src/components/thread/address-book.ts
|
|
104607
|
+
var init_address_book2 = __esm(() => {
|
|
104608
|
+
init_addressing();
|
|
104609
|
+
init_session_facts();
|
|
104051
104610
|
});
|
|
104052
104611
|
|
|
104053
|
-
// packages/omo-senpi/src/components/thread/
|
|
104054
|
-
var
|
|
104055
|
-
init_errors5();
|
|
104056
|
-
init_account();
|
|
104057
|
-
init_refusals();
|
|
104058
|
-
});
|
|
104612
|
+
// packages/omo-senpi/src/components/thread/contracts/send-result-order.ts
|
|
104613
|
+
var init_send_result_order = () => {};
|
|
104059
104614
|
|
|
104060
|
-
// packages/omo-senpi/src/components/thread/
|
|
104061
|
-
var
|
|
104062
|
-
|
|
104063
|
-
|
|
104064
|
-
|
|
104065
|
-
|
|
104615
|
+
// packages/omo-senpi/src/components/thread/metadata.ts
|
|
104616
|
+
var THREAD_TOOL_EXPOSURE = "eval", ROUTE_TO_TASK = "; to spawn a child task instead, use task.", THREAD_TOOL_METADATA;
|
|
104617
|
+
var init_metadata = __esm(() => {
|
|
104618
|
+
THREAD_TOOL_METADATA = [
|
|
104619
|
+
{
|
|
104620
|
+
name: "thread_create",
|
|
104621
|
+
label: "Create session",
|
|
104622
|
+
description: "Starts a fresh agent session that runs alongside this one, for when the user wants a second session working in parallel" + ROUTE_TO_TASK,
|
|
104623
|
+
exposure: THREAD_TOOL_EXPOSURE
|
|
104624
|
+
},
|
|
104625
|
+
{
|
|
104626
|
+
name: "thread_list",
|
|
104627
|
+
label: "List sessions",
|
|
104628
|
+
description: "Shows every addressable session on this device and the account's other devices with its id, name, status and device, plus the account's devices, for when the user needs a valid target address before acting on a session" + ROUTE_TO_TASK,
|
|
104629
|
+
exposure: THREAD_TOOL_EXPOSURE
|
|
104630
|
+
},
|
|
104631
|
+
{
|
|
104632
|
+
name: "thread_read",
|
|
104633
|
+
label: "Read session",
|
|
104634
|
+
description: "Returns the transcript and latest output of another session, for when the user asks what another session said or produced" + ROUTE_TO_TASK,
|
|
104635
|
+
exposure: THREAD_TOOL_EXPOSURE
|
|
104636
|
+
},
|
|
104637
|
+
{
|
|
104638
|
+
name: "thread_send",
|
|
104639
|
+
label: "Send message to session",
|
|
104640
|
+
description: "Delivers a message into another session that is already running, for when the user wants to talk to that session mid-task; its reply comes back through thread_read (tool.thread_read() in an eval cell)" + ROUTE_TO_TASK,
|
|
104641
|
+
exposure: THREAD_TOOL_EXPOSURE
|
|
104642
|
+
},
|
|
104643
|
+
{
|
|
104644
|
+
name: "thread_interrupt",
|
|
104645
|
+
label: "Interrupt session turn",
|
|
104646
|
+
description: "Stops the turn running in another session, and the background jobs that turn started, for when the user wants to halt a session that is going down the wrong path; the result's background lists what was stopped" + ROUTE_TO_TASK,
|
|
104647
|
+
exposure: THREAD_TOOL_EXPOSURE
|
|
104648
|
+
},
|
|
104649
|
+
{
|
|
104650
|
+
name: "thread_close",
|
|
104651
|
+
label: "Close session",
|
|
104652
|
+
description: "Closes a session. Omit thread or pass self to close this session. thread accepts the thread value of a thread_list row (tool.thread_list() in an eval cell), an alias, or a unique name; the result is closed true or false plus a reason. A thread with messages it has not read is refused, naming them; pass force: true to close it anyway (dropped_deliveries lists them)" + ROUTE_TO_TASK,
|
|
104653
|
+
exposure: THREAD_TOOL_EXPOSURE
|
|
104654
|
+
},
|
|
104655
|
+
{
|
|
104656
|
+
name: "thread_handoff",
|
|
104657
|
+
label: "Hand off session",
|
|
104658
|
+
description: "Moves the current request to an old session that has the context, for when the user says to hand this off or reopen that earlier conversation" + ROUTE_TO_TASK,
|
|
104659
|
+
exposure: THREAD_TOOL_EXPOSURE
|
|
104660
|
+
},
|
|
104661
|
+
{
|
|
104662
|
+
name: "thread_rename",
|
|
104663
|
+
label: "Rename session",
|
|
104664
|
+
description: "Renames a session's label, for when the user asks to call a session something clearer. Omit thread or pass self to rename this session. thread accepts the thread value of a thread_list row (tool.thread_list() in an eval cell), an alias, or a unique name; a miss names the thread value to pass",
|
|
104665
|
+
exposure: THREAD_TOOL_EXPOSURE
|
|
104666
|
+
},
|
|
104667
|
+
{
|
|
104668
|
+
name: "thread_set_model",
|
|
104669
|
+
label: "Switch session model",
|
|
104670
|
+
description: "Moves a session onto a different model, for when the user asks to switch that session to another model or a cheaper one",
|
|
104671
|
+
exposure: THREAD_TOOL_EXPOSURE
|
|
104672
|
+
},
|
|
104673
|
+
{
|
|
104674
|
+
name: "thread_set_reasoning",
|
|
104675
|
+
label: "Set session reasoning level",
|
|
104676
|
+
description: "Sets how much reasoning a session applies, for when the user asks to raise or lower the thinking effort of a session",
|
|
104677
|
+
exposure: THREAD_TOOL_EXPOSURE
|
|
104678
|
+
},
|
|
104679
|
+
{
|
|
104680
|
+
name: "thread_archive",
|
|
104681
|
+
label: "Archive session",
|
|
104682
|
+
description: "Archives or unarchives a session so the session list hides or shows it again, for when the user is finished with a session but wants to keep it",
|
|
104683
|
+
exposure: THREAD_TOOL_EXPOSURE
|
|
104684
|
+
}
|
|
104685
|
+
];
|
|
104066
104686
|
});
|
|
104067
104687
|
|
|
104068
|
-
// packages/omo-senpi/src/components/
|
|
104069
|
-
|
|
104070
|
-
var
|
|
104071
|
-
|
|
104072
|
-
scope = new AsyncLocalStorage4;
|
|
104688
|
+
// packages/omo-senpi/src/components/thread/thread-link.ts
|
|
104689
|
+
var THREAD_LINK_SCHEME = "omo-thread", PREFIX;
|
|
104690
|
+
var init_thread_link = __esm(() => {
|
|
104691
|
+
PREFIX = `${THREAD_LINK_SCHEME}://v1/`;
|
|
104073
104692
|
});
|
|
104074
104693
|
|
|
104075
104694
|
// packages/omo-senpi/src/components/thread/contracts/create-params.ts
|
|
@@ -104140,7 +104759,7 @@ var init_create_params = __esm(() => {
|
|
|
104140
104759
|
});
|
|
104141
104760
|
|
|
104142
104761
|
// packages/omo-senpi/src/components/thread/contracts/params.ts
|
|
104143
|
-
var ThreadListParams, THREAD_READ_WAIT_MAX_MS = 600000, ThreadReadParams, ThreadSendParams, ThreadInterruptParams, SelfOrThread, ThreadCloseParams, ThreadHandoffParams, ThreadRenameParams, ThreadSetModelParams, ThreadSetReasoningParams, ThreadArchiveParams
|
|
104762
|
+
var ThreadListParams, THREAD_READ_WAIT_MAX_MS = 600000, ThreadReadParams, ThreadSendParams, ThreadInterruptParams, SelfOrThread, ThreadCloseParams, ThreadHandoffParams, ThreadRenameParams, ThreadSetModelParams, ThreadSetReasoningParams, ThreadArchiveParams;
|
|
104144
104763
|
var init_params = __esm(() => {
|
|
104145
104764
|
init_build();
|
|
104146
104765
|
init_fields();
|
|
@@ -104149,14 +104768,27 @@ var init_params = __esm(() => {
|
|
|
104149
104768
|
all_scope: Optional(Boolean2({
|
|
104150
104769
|
description: "List this machine's threads from every workspace; the default returns only the caller's workspace here. The account's other devices' threads are always listed."
|
|
104151
104770
|
})),
|
|
104152
|
-
state: Optional(_Array_(Union([
|
|
104771
|
+
state: Optional(_Array_(Union([
|
|
104772
|
+
Literal("opening"),
|
|
104773
|
+
Literal("running"),
|
|
104774
|
+
Literal("idle"),
|
|
104775
|
+
Literal("held"),
|
|
104776
|
+
Literal("unknown"),
|
|
104777
|
+
Literal("inactive"),
|
|
104778
|
+
Literal("archived")
|
|
104779
|
+
]), {
|
|
104153
104780
|
minItems: 1,
|
|
104154
|
-
description: "Thread states to list: running, idle, inactive (no engine holds it) or archived; the default lists every state but archived."
|
|
104781
|
+
description: "Thread states to list: opening (not yet ready for controls), running, idle, inactive (no engine holds it) or archived; the default lists every state but archived."
|
|
104155
104782
|
})),
|
|
104156
104783
|
idempotency_key: IdempotencyKey
|
|
104157
104784
|
});
|
|
104158
104785
|
ThreadReadParams = _Object_({
|
|
104159
104786
|
thread: ThreadAddress,
|
|
104787
|
+
delivery_id: Optional(String2({
|
|
104788
|
+
minLength: 1,
|
|
104789
|
+
maxLength: 128,
|
|
104790
|
+
description: "Query only the outcome of your original delivery to this exact thread ID. Reads no conversation, sends no message and wakes no session; after evidence expires answers outcome_unavailable."
|
|
104791
|
+
})),
|
|
104160
104792
|
cursor: Optional(String2({
|
|
104161
104793
|
description: "Opaque cursor from an earlier thread_read (tool.thread_read() in an eval cell) to page the older messages of a truncated read (a read without one returns the newest messages that fit max_bytes); a transcript revision that moved past it returns cursor_stale."
|
|
104162
104794
|
})),
|
|
@@ -104269,61 +104901,6 @@ var init_params = __esm(() => {
|
|
|
104269
104901
|
all_scope: AllScope,
|
|
104270
104902
|
idempotency_key: IdempotencyKey
|
|
104271
104903
|
});
|
|
104272
|
-
ThreadReportParams = _Object_({
|
|
104273
|
-
binding_id: Optional(String2({
|
|
104274
|
-
minLength: 1,
|
|
104275
|
-
description: "Binding to report to; defaults to the originating binding, the one the message this session is answering now arrived through; refused when that is ambiguous."
|
|
104276
|
-
})),
|
|
104277
|
-
kind: Union([Literal("milestone"), Literal("report"), Literal("question"), Literal("completion")], {
|
|
104278
|
-
description: "milestone updates the thread's progress message, report posts a result, question relays a pending question of this session and returns a reply_token, completion is written once when this session's run settles, with the run's real outcome."
|
|
104279
|
-
}),
|
|
104280
|
-
text: RelayText,
|
|
104281
|
-
request_id: Optional(String2({
|
|
104282
|
-
minLength: 1,
|
|
104283
|
-
description: "For kind question: the id of this session's pending extension UI request the answer resolves."
|
|
104284
|
-
})),
|
|
104285
|
-
request_kind: Optional(Union([
|
|
104286
|
-
Literal("question"),
|
|
104287
|
-
Literal("select"),
|
|
104288
|
-
Literal("confirm"),
|
|
104289
|
-
Literal("input"),
|
|
104290
|
-
Literal("editor")
|
|
104291
|
-
], {
|
|
104292
|
-
description: "For kind question: which extension UI request request_id is. It decides the answer forms thread_answer (tool.thread_answer() in an eval cell) accepts: confirm takes yes/no (any case, surrounding spaces ignored), input and editor take any text including empty, question and select take non-blank text. Without it the answer goes out in every text form at once, so a question, select, input or editor each reads its own and the text must be non-blank; a yes/no word also goes out as the confirm field, so an undeclared confirm reads yes/no too (any other text reads as no)."
|
|
104293
|
-
})),
|
|
104294
|
-
idempotency_key: IdempotencyKey
|
|
104295
|
-
});
|
|
104296
|
-
ThreadOutboxParams = _Object_({
|
|
104297
|
-
binding_id: BindingId,
|
|
104298
|
-
after_cursor: Optional(Integer({
|
|
104299
|
-
minimum: 0,
|
|
104300
|
-
description: "Read rows after this cursor; unset continues after the binding's acknowledged cursor."
|
|
104301
|
-
})),
|
|
104302
|
-
limit: Optional(Integer({ minimum: 1, maximum: 500, description: "Rows per read, default 100 and at most 500." })),
|
|
104303
|
-
idempotency_key: IdempotencyKey
|
|
104304
|
-
});
|
|
104305
|
-
ThreadOutboxAckParams = _Object_({
|
|
104306
|
-
binding_id: BindingId,
|
|
104307
|
-
cursor: Integer({
|
|
104308
|
-
minimum: 1,
|
|
104309
|
-
description: "Every outbox row up to this cursor is marked delivered; an older cursor changes nothing."
|
|
104310
|
-
}),
|
|
104311
|
-
provider_message_id: Optional(String2({
|
|
104312
|
-
minLength: 1,
|
|
104313
|
-
maxLength: 256,
|
|
104314
|
-
description: "Platform id of the message posted for the row at cursor; the first one for a milestone becomes the progress message later milestones edit."
|
|
104315
|
-
})),
|
|
104316
|
-
idempotency_key: IdempotencyKey
|
|
104317
|
-
});
|
|
104318
|
-
ThreadAnswerParams = _Object_({
|
|
104319
|
-
binding_id: String2({
|
|
104320
|
-
minLength: 1,
|
|
104321
|
-
description: "Binding the answer arrived through; it must be the binding that asked the question."
|
|
104322
|
-
}),
|
|
104323
|
-
reply_token: String2({ minLength: 1, description: "reply_token of the question row being answered." }),
|
|
104324
|
-
answer: RelayText,
|
|
104325
|
-
idempotency_key: IdempotencyKey
|
|
104326
|
-
});
|
|
104327
104904
|
});
|
|
104328
104905
|
|
|
104329
104906
|
// node_modules/.bun/typebox@1.3.34/node_modules/typebox/build/schema/types/_refine.mjs
|
|
@@ -105510,7 +106087,7 @@ function DynamicRef(stack, dynamicRef) {
|
|
|
105510
106087
|
const fragmentTarget = RefInternal(stack.context, fragmentRoot, stack.lexicalBase, dynamicRef.$dynamicRef);
|
|
105511
106088
|
return IsUndefined(fragmentTarget) ? DynamicRefWhenNotFound(stack, dynamicRef) : DynamicRefWhenFound(stack, dynamicRef, fragmentTarget);
|
|
105512
106089
|
}
|
|
105513
|
-
var
|
|
106090
|
+
var init_resolve2 = __esm(() => {
|
|
105514
106091
|
init_guard2();
|
|
105515
106092
|
init_pointer2();
|
|
105516
106093
|
init_types11();
|
|
@@ -105518,8 +106095,8 @@ var init_resolve = __esm(() => {
|
|
|
105518
106095
|
});
|
|
105519
106096
|
|
|
105520
106097
|
// node_modules/.bun/typebox@1.3.34/node_modules/typebox/build/schema/resolve/index.mjs
|
|
105521
|
-
var
|
|
105522
|
-
|
|
106098
|
+
var init_resolve3 = __esm(() => {
|
|
106099
|
+
init_resolve2();
|
|
105523
106100
|
});
|
|
105524
106101
|
|
|
105525
106102
|
// node_modules/.bun/typebox@1.3.34/node_modules/typebox/build/schema/engine/dynamicRef.mjs
|
|
@@ -105536,7 +106113,7 @@ function ErrorDynamicRef(stack, context, schemaPath, instancePath, schema, value
|
|
|
105536
106113
|
var init_dynamicRef2 = __esm(() => {
|
|
105537
106114
|
init_types11();
|
|
105538
106115
|
init__functions();
|
|
105539
|
-
|
|
106116
|
+
init_resolve3();
|
|
105540
106117
|
init_schema4();
|
|
105541
106118
|
});
|
|
105542
106119
|
|
|
@@ -106635,7 +107212,7 @@ function ErrorRecursiveRef(stack, context, schemaPath, instancePath, schema, val
|
|
|
106635
107212
|
var init_recursiveRef2 = __esm(() => {
|
|
106636
107213
|
init_types11();
|
|
106637
107214
|
init__functions();
|
|
106638
|
-
|
|
107215
|
+
init_resolve3();
|
|
106639
107216
|
init_schema4();
|
|
106640
107217
|
});
|
|
106641
107218
|
|
|
@@ -106663,7 +107240,7 @@ function ErrorRef(stack, context, schemaPath, instancePath, schema, value) {
|
|
|
106663
107240
|
var init_ref4 = __esm(() => {
|
|
106664
107241
|
init__functions();
|
|
106665
107242
|
init_types11();
|
|
106666
|
-
|
|
107243
|
+
init_resolve3();
|
|
106667
107244
|
init__context();
|
|
106668
107245
|
init_guard2();
|
|
106669
107246
|
init_schema4();
|
|
@@ -106922,7 +107499,7 @@ var init_intern = __esm(() => {
|
|
|
106922
107499
|
init_types11();
|
|
106923
107500
|
init__stack();
|
|
106924
107501
|
init_guard2();
|
|
106925
|
-
|
|
107502
|
+
init_resolve3();
|
|
106926
107503
|
registry2 = new Map;
|
|
106927
107504
|
resolved = new Map;
|
|
106928
107505
|
});
|
|
@@ -107053,7 +107630,7 @@ var init_schema6 = __esm(() => {
|
|
|
107053
107630
|
init_intern2();
|
|
107054
107631
|
init_meta2();
|
|
107055
107632
|
init_pointer2();
|
|
107056
|
-
|
|
107633
|
+
init_resolve3();
|
|
107057
107634
|
init_static3();
|
|
107058
107635
|
init_types11();
|
|
107059
107636
|
init_build2();
|
|
@@ -108840,170 +109417,8 @@ var init_thread_state = __esm(() => {
|
|
|
108840
109417
|
RETRY_WAIT_KINDS = new Set(["rate_limit", "retry"]);
|
|
108841
109418
|
});
|
|
108842
109419
|
|
|
108843
|
-
// packages/omo-senpi/src/components/thread/
|
|
108844
|
-
var
|
|
108845
|
-
var init_port = __esm(() => {
|
|
108846
|
-
init_errors5();
|
|
108847
|
-
init_thread_state();
|
|
108848
|
-
REFUSAL = Symbol.for("omo.thread.control.refusal");
|
|
108849
|
-
});
|
|
108850
|
-
|
|
108851
|
-
// packages/omo-senpi/src/components/thread/control/close-ladder.ts
|
|
108852
|
-
var SESSION_GONE;
|
|
108853
|
-
var init_close_ladder = __esm(() => {
|
|
108854
|
-
init_call_deadline();
|
|
108855
|
-
init_port();
|
|
108856
|
-
SESSION_GONE = new Set([
|
|
108857
|
-
"unknown_session",
|
|
108858
|
-
"route_unlisted",
|
|
108859
|
-
"session_identity_mismatch",
|
|
108860
|
-
"session_not_attached",
|
|
108861
|
-
"not_attached"
|
|
108862
|
-
]);
|
|
108863
|
-
});
|
|
108864
|
-
|
|
108865
|
-
// packages/omo-senpi/src/components/thread/worktree/failures.ts
|
|
108866
|
-
var init_failures = __esm(() => {
|
|
108867
|
-
init_errors5();
|
|
108868
|
-
});
|
|
108869
|
-
|
|
108870
|
-
// packages/omo-senpi/src/components/thread/control/open-reply.ts
|
|
108871
|
-
var init_open_reply = __esm(() => {
|
|
108872
|
-
init_errors5();
|
|
108873
|
-
init_outcome();
|
|
108874
|
-
init_failures();
|
|
108875
|
-
});
|
|
108876
|
-
// packages/omo-senpi/src/components/thread/worktree/remote-worktree.ts
|
|
108877
|
-
var init_remote_worktree = __esm(() => {
|
|
108878
|
-
init_close_ladder();
|
|
108879
|
-
init_open_reply();
|
|
108880
|
-
init_port();
|
|
108881
|
-
init_errors5();
|
|
108882
|
-
init_outcome();
|
|
108883
|
-
init_remote_ops();
|
|
108884
|
-
init_failures();
|
|
108885
|
-
});
|
|
108886
|
-
|
|
108887
|
-
// packages/omo-senpi/src/components/thread/thread-link.ts
|
|
108888
|
-
var THREAD_LINK_SCHEME = "omo-thread", PREFIX;
|
|
108889
|
-
var init_thread_link = __esm(() => {
|
|
108890
|
-
PREFIX = `${THREAD_LINK_SCHEME}://v1/`;
|
|
108891
|
-
});
|
|
108892
|
-
|
|
108893
|
-
// packages/omo-senpi/src/components/thread/addressing.ts
|
|
108894
|
-
var init_addressing = __esm(() => {
|
|
108895
|
-
init_errors5();
|
|
108896
|
-
});
|
|
108897
|
-
|
|
108898
|
-
// packages/omo-senpi/src/components/thread/session-facts.ts
|
|
108899
|
-
var SESSION_FACTS_WINDOW_BYTES, SESSION_FACTS_LAST_LINE_MAX_BYTES;
|
|
108900
|
-
var init_session_facts = __esm(() => {
|
|
108901
|
-
SESSION_FACTS_WINDOW_BYTES = 64 * 1024;
|
|
108902
|
-
SESSION_FACTS_LAST_LINE_MAX_BYTES = SESSION_FACTS_WINDOW_BYTES * 4;
|
|
108903
|
-
});
|
|
108904
|
-
|
|
108905
|
-
// packages/omo-senpi/src/components/thread/address-book.ts
|
|
108906
|
-
var init_address_book2 = __esm(() => {
|
|
108907
|
-
init_addressing();
|
|
108908
|
-
init_session_facts();
|
|
108909
|
-
});
|
|
108910
|
-
|
|
108911
|
-
// packages/omo-senpi/src/components/thread/metadata.ts
|
|
108912
|
-
var THREAD_TOOL_EXPOSURE = "eval", ROUTE_TO_TASK = "; to spawn a child task instead, use task.", THREAD_TOOL_METADATA;
|
|
108913
|
-
var init_metadata = __esm(() => {
|
|
108914
|
-
THREAD_TOOL_METADATA = [
|
|
108915
|
-
{
|
|
108916
|
-
name: "thread_create",
|
|
108917
|
-
label: "Create session",
|
|
108918
|
-
description: "Starts a fresh agent session that runs alongside this one, for when the user wants a second session working in parallel" + ROUTE_TO_TASK,
|
|
108919
|
-
exposure: THREAD_TOOL_EXPOSURE
|
|
108920
|
-
},
|
|
108921
|
-
{
|
|
108922
|
-
name: "thread_list",
|
|
108923
|
-
label: "List sessions",
|
|
108924
|
-
description: "Shows every addressable session on this device and the account's other devices with its id, name, status and device, plus the account's devices, for when the user needs a valid target address before acting on a session" + ROUTE_TO_TASK,
|
|
108925
|
-
exposure: THREAD_TOOL_EXPOSURE
|
|
108926
|
-
},
|
|
108927
|
-
{
|
|
108928
|
-
name: "thread_read",
|
|
108929
|
-
label: "Read session",
|
|
108930
|
-
description: "Returns the transcript and latest output of another session, for when the user asks what another session said or produced" + ROUTE_TO_TASK,
|
|
108931
|
-
exposure: THREAD_TOOL_EXPOSURE
|
|
108932
|
-
},
|
|
108933
|
-
{
|
|
108934
|
-
name: "thread_send",
|
|
108935
|
-
label: "Send message to session",
|
|
108936
|
-
description: "Delivers a message into another session that is already running, for when the user wants to talk to that session mid-task; its reply comes back through thread_read, and a bound chat thread's replies through thread_report and thread_answer (in an eval cell: tool.thread_read(), tool.thread_report(), tool.thread_answer())" + ROUTE_TO_TASK,
|
|
108937
|
-
exposure: THREAD_TOOL_EXPOSURE
|
|
108938
|
-
},
|
|
108939
|
-
{
|
|
108940
|
-
name: "thread_interrupt",
|
|
108941
|
-
label: "Interrupt session turn",
|
|
108942
|
-
description: "Stops the turn running in another session, and the background jobs that turn started, for when the user wants to halt a session that is going down the wrong path; the result's background lists what was stopped" + ROUTE_TO_TASK,
|
|
108943
|
-
exposure: THREAD_TOOL_EXPOSURE
|
|
108944
|
-
},
|
|
108945
|
-
{
|
|
108946
|
-
name: "thread_close",
|
|
108947
|
-
label: "Close session",
|
|
108948
|
-
description: "Closes a session. Omit thread or pass self to close this session. thread accepts the thread value of a thread_list row (tool.thread_list() in an eval cell), an alias, or a unique name; the result is closed true or false plus a reason. A thread with messages it has not read is refused, naming them; pass force: true to close it anyway (dropped_deliveries lists them)" + ROUTE_TO_TASK,
|
|
108949
|
-
exposure: THREAD_TOOL_EXPOSURE
|
|
108950
|
-
},
|
|
108951
|
-
{
|
|
108952
|
-
name: "thread_handoff",
|
|
108953
|
-
label: "Hand off session",
|
|
108954
|
-
description: "Moves the current request to an old session that has the context, for when the user says to hand this off or reopen that earlier conversation" + ROUTE_TO_TASK,
|
|
108955
|
-
exposure: THREAD_TOOL_EXPOSURE
|
|
108956
|
-
},
|
|
108957
|
-
{
|
|
108958
|
-
name: "thread_rename",
|
|
108959
|
-
label: "Rename session",
|
|
108960
|
-
description: "Renames a session's label, for when the user asks to call a session something clearer. Omit thread or pass self to rename this session. thread accepts the thread value of a thread_list row (tool.thread_list() in an eval cell), an alias, or a unique name; a miss names the thread value to pass",
|
|
108961
|
-
exposure: THREAD_TOOL_EXPOSURE
|
|
108962
|
-
},
|
|
108963
|
-
{
|
|
108964
|
-
name: "thread_set_model",
|
|
108965
|
-
label: "Switch session model",
|
|
108966
|
-
description: "Moves a session onto a different model, for when the user asks to switch that session to another model or a cheaper one",
|
|
108967
|
-
exposure: THREAD_TOOL_EXPOSURE
|
|
108968
|
-
},
|
|
108969
|
-
{
|
|
108970
|
-
name: "thread_set_reasoning",
|
|
108971
|
-
label: "Set session reasoning level",
|
|
108972
|
-
description: "Sets how much reasoning a session applies, for when the user asks to raise or lower the thinking effort of a session",
|
|
108973
|
-
exposure: THREAD_TOOL_EXPOSURE
|
|
108974
|
-
},
|
|
108975
|
-
{
|
|
108976
|
-
name: "thread_archive",
|
|
108977
|
-
label: "Archive session",
|
|
108978
|
-
description: "Archives or unarchives a session so the session list hides or shows it again, for when the user is finished with a session but wants to keep it",
|
|
108979
|
-
exposure: THREAD_TOOL_EXPOSURE
|
|
108980
|
-
},
|
|
108981
|
-
{
|
|
108982
|
-
name: "thread_report",
|
|
108983
|
-
label: "Report to chat thread",
|
|
108984
|
-
description: "Posts a milestone, result, question or completion from this session to its bound chat thread, for when the user wants progress relayed to that chat; replies flow back through thread_read, thread_report and thread_answer (in an eval cell: tool.thread_read(), tool.thread_report(), tool.thread_answer())",
|
|
108985
|
-
exposure: THREAD_TOOL_EXPOSURE
|
|
108986
|
-
},
|
|
108987
|
-
{
|
|
108988
|
-
name: "thread_outbox",
|
|
108989
|
-
label: "Read chat outbox",
|
|
108990
|
-
description: "Returns the reports waiting for a bound chat thread with a cursor, for when a connector collects what sessions posted",
|
|
108991
|
-
exposure: THREAD_TOOL_EXPOSURE
|
|
108992
|
-
},
|
|
108993
|
-
{
|
|
108994
|
-
name: "thread_outbox_ack",
|
|
108995
|
-
label: "Acknowledge chat outbox",
|
|
108996
|
-
description: "Marks outbox rows up to a cursor as posted to the chat, for when a connector confirms delivery",
|
|
108997
|
-
exposure: THREAD_TOOL_EXPOSURE
|
|
108998
|
-
},
|
|
108999
|
-
{
|
|
109000
|
-
name: "thread_answer",
|
|
109001
|
-
label: "Answer relayed question",
|
|
109002
|
-
description: "Resolves a question a session relayed to a chat thread with the answer that arrived there, for when a connector hands back a chat user's reply",
|
|
109003
|
-
exposure: THREAD_TOOL_EXPOSURE
|
|
109004
|
-
}
|
|
109005
|
-
];
|
|
109006
|
-
});
|
|
109420
|
+
// packages/omo-senpi/src/components/thread/tools/row-liveness.ts
|
|
109421
|
+
var init_row_liveness = () => {};
|
|
109007
109422
|
|
|
109008
109423
|
// packages/omo-senpi/src/components/thread/tools/internals.ts
|
|
109009
109424
|
function failure3(code, message, next, details) {
|
|
@@ -109012,36 +109427,26 @@ function failure3(code, message, next, details) {
|
|
|
109012
109427
|
var init_internals = __esm(() => {
|
|
109013
109428
|
init_address_book2();
|
|
109014
109429
|
init_addressing();
|
|
109430
|
+
init_send_result_order();
|
|
109015
109431
|
init_errors5();
|
|
109016
109432
|
init_metadata();
|
|
109017
109433
|
init_session_facts();
|
|
109018
109434
|
init_thread_link();
|
|
109019
109435
|
init_thread_state();
|
|
109436
|
+
init_row_liveness();
|
|
109020
109437
|
});
|
|
109021
109438
|
|
|
109022
|
-
// packages/omo-senpi/src/components/thread/
|
|
109023
|
-
var
|
|
109439
|
+
// packages/omo-senpi/src/components/thread/tools/model-match.ts
|
|
109440
|
+
var init_model_match = __esm(() => {
|
|
109024
109441
|
init_internals();
|
|
109025
109442
|
});
|
|
109026
109443
|
|
|
109027
|
-
// packages/omo-senpi/src/components/thread/control/
|
|
109028
|
-
var
|
|
109029
|
-
|
|
109444
|
+
// packages/omo-senpi/src/components/thread/control/port.ts
|
|
109445
|
+
var REFUSAL;
|
|
109446
|
+
var init_port = __esm(() => {
|
|
109030
109447
|
init_errors5();
|
|
109031
|
-
init_initial_skills();
|
|
109032
|
-
init_outcome();
|
|
109033
|
-
init_remote_ops();
|
|
109034
|
-
init_device();
|
|
109035
|
-
init_remote_worktree();
|
|
109036
|
-
init_open_reply();
|
|
109037
|
-
init_thread_link();
|
|
109038
109448
|
init_thread_state();
|
|
109039
|
-
|
|
109040
|
-
});
|
|
109041
|
-
|
|
109042
|
-
// packages/omo-senpi/src/components/thread/tools/model-match.ts
|
|
109043
|
-
var init_model_match = __esm(() => {
|
|
109044
|
-
init_internals();
|
|
109449
|
+
REFUSAL = Symbol.for("omo.thread.control.refusal");
|
|
109045
109450
|
});
|
|
109046
109451
|
|
|
109047
109452
|
// packages/omo-senpi/src/components/thread/control/operations.ts
|
|
@@ -109093,6 +109498,20 @@ var init_transcript_tail = __esm(() => {
|
|
|
109093
109498
|
kept = new WeakMap;
|
|
109094
109499
|
unpaged = new WeakMap;
|
|
109095
109500
|
});
|
|
109501
|
+
|
|
109502
|
+
// packages/omo-senpi/src/components/thread/control/close-ladder.ts
|
|
109503
|
+
var SESSION_GONE2;
|
|
109504
|
+
var init_close_ladder = __esm(() => {
|
|
109505
|
+
init_call_deadline();
|
|
109506
|
+
init_port();
|
|
109507
|
+
SESSION_GONE2 = new Set([
|
|
109508
|
+
"unknown_session",
|
|
109509
|
+
"route_unlisted",
|
|
109510
|
+
"session_identity_mismatch",
|
|
109511
|
+
"session_not_attached",
|
|
109512
|
+
"not_attached"
|
|
109513
|
+
]);
|
|
109514
|
+
});
|
|
109096
109515
|
// packages/omo-senpi/src/components/thread/control/wait-settled.ts
|
|
109097
109516
|
var IN_PROGRESS, RUN_RECORDS;
|
|
109098
109517
|
var init_wait_settled = __esm(() => {
|
|
@@ -109113,6 +109532,58 @@ var init_wait_settled = __esm(() => {
|
|
|
109113
109532
|
]);
|
|
109114
109533
|
});
|
|
109115
109534
|
|
|
109535
|
+
// packages/omo-senpi/src/components/thread/initial-skills.ts
|
|
109536
|
+
var init_initial_skills = () => {};
|
|
109537
|
+
|
|
109538
|
+
// packages/omo-senpi/src/components/thread/worktree/failures.ts
|
|
109539
|
+
var init_failures = __esm(() => {
|
|
109540
|
+
init_errors5();
|
|
109541
|
+
});
|
|
109542
|
+
|
|
109543
|
+
// packages/omo-senpi/src/components/thread/control/open-reply.ts
|
|
109544
|
+
var init_open_reply = __esm(() => {
|
|
109545
|
+
init_errors5();
|
|
109546
|
+
init_outcome();
|
|
109547
|
+
init_failures();
|
|
109548
|
+
});
|
|
109549
|
+
// packages/omo-senpi/src/components/thread/worktree/remote-worktree.ts
|
|
109550
|
+
var init_remote_worktree = __esm(() => {
|
|
109551
|
+
init_close_ladder();
|
|
109552
|
+
init_open_reply();
|
|
109553
|
+
init_port();
|
|
109554
|
+
init_errors5();
|
|
109555
|
+
init_outcome();
|
|
109556
|
+
init_remote_ops();
|
|
109557
|
+
init_failures();
|
|
109558
|
+
});
|
|
109559
|
+
|
|
109560
|
+
// packages/omo-senpi/src/components/thread/remote/listing-liveness.ts
|
|
109561
|
+
var init_listing_liveness = __esm(() => {
|
|
109562
|
+
init_row_liveness();
|
|
109563
|
+
init_thread_state();
|
|
109564
|
+
});
|
|
109565
|
+
|
|
109566
|
+
// packages/omo-senpi/src/components/thread/control/session-host.ts
|
|
109567
|
+
var init_session_host = __esm(() => {
|
|
109568
|
+
init_internals();
|
|
109569
|
+
});
|
|
109570
|
+
|
|
109571
|
+
// packages/omo-senpi/src/components/thread/control/relay-session-host.ts
|
|
109572
|
+
var init_relay_session_host = __esm(() => {
|
|
109573
|
+
init_ports();
|
|
109574
|
+
init_errors5();
|
|
109575
|
+
init_initial_skills();
|
|
109576
|
+
init_outcome();
|
|
109577
|
+
init_remote_ops();
|
|
109578
|
+
init_device();
|
|
109579
|
+
init_remote_worktree();
|
|
109580
|
+
init_open_reply();
|
|
109581
|
+
init_thread_link();
|
|
109582
|
+
init_thread_state();
|
|
109583
|
+
init_listing_liveness();
|
|
109584
|
+
init_session_host();
|
|
109585
|
+
});
|
|
109586
|
+
|
|
109116
109587
|
// packages/omo-senpi/src/components/thread/tools/thread-row.ts
|
|
109117
109588
|
var init_thread_row = __esm(() => {
|
|
109118
109589
|
init_thread_link();
|
|
@@ -109134,157 +109605,8 @@ var init_relay_control = __esm(() => {
|
|
|
109134
109605
|
init_thread_row();
|
|
109135
109606
|
});
|
|
109136
109607
|
|
|
109137
|
-
// packages/omo-senpi/src/components/thread/
|
|
109138
|
-
var
|
|
109139
|
-
var init_attach_pool = __esm(() => {
|
|
109140
|
-
HELD_RECORDS = new Set([CATALOG_RECORD, "get_protocol_info"]);
|
|
109141
|
-
});
|
|
109142
|
-
|
|
109143
|
-
// packages/omo-senpi/src/components/thread/remote/session-state.ts
|
|
109144
|
-
var ACCESS_ENDED, ACCESS_REFUSED, SESSION_LEFT, SESSION_GONE2;
|
|
109145
|
-
var init_session_state = __esm(() => {
|
|
109146
|
-
ACCESS_ENDED = new Set([
|
|
109147
|
-
"authorization_expired",
|
|
109148
|
-
"peer_revoked",
|
|
109149
|
-
"owner_transfer",
|
|
109150
|
-
"service_disabled"
|
|
109151
|
-
]);
|
|
109152
|
-
ACCESS_REFUSED = new Set([
|
|
109153
|
-
"unauthenticated",
|
|
109154
|
-
"forbidden",
|
|
109155
|
-
"owner_transfer",
|
|
109156
|
-
"signed_out",
|
|
109157
|
-
"service_disabled",
|
|
109158
|
-
"sign_in_required",
|
|
109159
|
-
"plan_required",
|
|
109160
|
-
"peer_not_found",
|
|
109161
|
-
"peer_not_session_client",
|
|
109162
|
-
"account_changed",
|
|
109163
|
-
"device_changed",
|
|
109164
|
-
"capability_missing",
|
|
109165
|
-
"engine_too_old"
|
|
109166
|
-
]);
|
|
109167
|
-
SESSION_LEFT = new Set(["session_closed", "session_replaced"]);
|
|
109168
|
-
SESSION_GONE2 = new Set([
|
|
109169
|
-
"session_not_found",
|
|
109170
|
-
"unknown_session",
|
|
109171
|
-
"session_identity_mismatch"
|
|
109172
|
-
]);
|
|
109173
|
-
});
|
|
109174
|
-
// packages/omo-senpi/src/components/thread/remote/remote-watch.ts
|
|
109175
|
-
var init_remote_watch = __esm(() => {
|
|
109176
|
-
init_device_service2();
|
|
109177
|
-
init_session_state();
|
|
109178
|
-
});
|
|
109179
|
-
// packages/omo-senpi/src/components/remote/port/device-service.ts
|
|
109180
|
-
var READ_ONLY_RECORDS, MARKED_RECORDS, LOOKUP_NONE;
|
|
109181
|
-
var init_device_service3 = __esm(() => {
|
|
109182
|
-
init_outcome();
|
|
109183
|
-
init_device_service2();
|
|
109184
|
-
init_attach_pool();
|
|
109185
|
-
init_remote_watch();
|
|
109186
|
-
init_call_deadline();
|
|
109187
|
-
READ_ONLY_RECORDS = new Set([
|
|
109188
|
-
"get_state",
|
|
109189
|
-
"get_messages",
|
|
109190
|
-
"get_entries",
|
|
109191
|
-
"get_protocol_info"
|
|
109192
|
-
]);
|
|
109193
|
-
MARKED_RECORDS = new Set(["admit_external_message"]);
|
|
109194
|
-
LOOKUP_NONE = new Set(["session_not_found", "peer_not_found", "peer_not_session_client"]);
|
|
109195
|
-
});
|
|
109196
|
-
|
|
109197
|
-
// packages/device-service-core/src/wire.ts
|
|
109198
|
-
var init_wire = __esm(() => {
|
|
109199
|
-
init_errors4();
|
|
109200
|
-
});
|
|
109201
|
-
|
|
109202
|
-
// packages/omo-senpi/src/components/remote/codes.ts
|
|
109203
|
-
var REMOTE_CODES, ENGINE_CODES;
|
|
109204
|
-
var init_codes = __esm(() => {
|
|
109205
|
-
init_wire();
|
|
109206
|
-
init_errors5();
|
|
109207
|
-
REMOTE_CODES = [
|
|
109208
|
-
...THREAD_ERROR_CODES,
|
|
109209
|
-
"timeout",
|
|
109210
|
-
"cancelled",
|
|
109211
|
-
"session_ended",
|
|
109212
|
-
"sender_not_allowed",
|
|
109213
|
-
"local_only",
|
|
109214
|
-
"host_not_answering",
|
|
109215
|
-
"no_transport",
|
|
109216
|
-
"device_offline",
|
|
109217
|
-
"undelivered",
|
|
109218
|
-
"transport_expired",
|
|
109219
|
-
"unconfirmed",
|
|
109220
|
-
"host_error"
|
|
109221
|
-
];
|
|
109222
|
-
ENGINE_CODES = new Map([
|
|
109223
|
-
["model_unavailable", { code: "model_not_found" }],
|
|
109224
|
-
["invalid_level", { code: "thinking_level_unsupported" }],
|
|
109225
|
-
["worktree_failed", { code: "unsupported", details: { feature: "worktree" } }],
|
|
109226
|
-
["not_running", { code: "not_resumable" }],
|
|
109227
|
-
["handle_lost", { code: "not_found", details: { kind: "handle" } }]
|
|
109228
|
-
]);
|
|
109229
|
-
});
|
|
109230
|
-
|
|
109231
|
-
// packages/omo-senpi/src/components/remote/connection-of.ts
|
|
109232
|
-
var lenders;
|
|
109233
|
-
var init_connection_of = __esm(() => {
|
|
109234
|
-
lenders = new WeakMap;
|
|
109235
|
-
});
|
|
109236
|
-
|
|
109237
|
-
// packages/omo-senpi/src/components/remote/deadlines.ts
|
|
109238
|
-
var init_deadlines = __esm(() => {
|
|
109239
|
-
init_codes();
|
|
109240
|
-
});
|
|
109241
|
-
|
|
109242
|
-
// packages/omo-senpi/src/components/remote/seams.ts
|
|
109243
|
-
var init_seams = __esm(() => {
|
|
109244
|
-
init_codes();
|
|
109245
|
-
});
|
|
109246
|
-
|
|
109247
|
-
// packages/omo-senpi/src/components/remote/resolve.ts
|
|
109248
|
-
var init_resolve3 = __esm(() => {
|
|
109249
|
-
init_client5();
|
|
109250
|
-
init_deadlines();
|
|
109251
|
-
init_codes();
|
|
109252
|
-
init_seams();
|
|
109253
|
-
});
|
|
109254
|
-
|
|
109255
|
-
// packages/omo-senpi/src/components/remote/aliases.ts
|
|
109256
|
-
var init_aliases = __esm(() => {
|
|
109257
|
-
init_codes();
|
|
109258
|
-
init_deadlines();
|
|
109259
|
-
init_resolve3();
|
|
109260
|
-
init_seams();
|
|
109261
|
-
});
|
|
109262
|
-
|
|
109263
|
-
// packages/omo-senpi/src/components/remote/attach.ts
|
|
109264
|
-
var DIALOG_KINDS;
|
|
109265
|
-
var init_attach = __esm(() => {
|
|
109266
|
-
init_device_service2();
|
|
109267
|
-
init_outcome();
|
|
109268
|
-
init_client5();
|
|
109269
|
-
init_codes();
|
|
109270
|
-
init_deadlines();
|
|
109271
|
-
init_device_service3();
|
|
109272
|
-
init_resolve3();
|
|
109273
|
-
init_seams();
|
|
109274
|
-
DIALOG_KINDS = new Set(["select", "confirm", "input", "editor", "question"]);
|
|
109275
|
-
});
|
|
109276
|
-
|
|
109277
|
-
// packages/omo-senpi/src/components/remote/follow.ts
|
|
109278
|
-
var RUN_OVER;
|
|
109279
|
-
var init_follow = __esm(() => {
|
|
109280
|
-
init_outcome();
|
|
109281
|
-
init_attach();
|
|
109282
|
-
init_client5();
|
|
109283
|
-
init_codes();
|
|
109284
|
-
init_deadlines();
|
|
109285
|
-
init_seams();
|
|
109286
|
-
RUN_OVER = new Set(["waiting_children", "waiting_background", "done", "failed", "cancelled"]);
|
|
109287
|
-
});
|
|
109608
|
+
// packages/omo-senpi/src/components/thread/gateway/hash-args.ts
|
|
109609
|
+
var init_hash_args = () => {};
|
|
109288
109610
|
|
|
109289
109611
|
// packages/omo-senpi/src/components/thread/gateway/provenance-resolver.ts
|
|
109290
109612
|
var init_provenance_resolver = () => {};
|
|
@@ -109319,19 +109641,35 @@ var init_find_session = __esm(() => {
|
|
|
109319
109641
|
]);
|
|
109320
109642
|
});
|
|
109321
109643
|
|
|
109644
|
+
// packages/omo-senpi/src/components/thread/remote/reopen-parked.ts
|
|
109645
|
+
var init_reopen_parked = __esm(() => {
|
|
109646
|
+
init_device();
|
|
109647
|
+
init_relay_session_host();
|
|
109648
|
+
init_errors5();
|
|
109649
|
+
init_find_session();
|
|
109650
|
+
});
|
|
109651
|
+
|
|
109652
|
+
// packages/omo-senpi/src/components/thread/remote/receipt.ts
|
|
109653
|
+
var init_receipt = __esm(() => {
|
|
109654
|
+
init_remote_ops();
|
|
109655
|
+
init_outcome();
|
|
109656
|
+
});
|
|
109657
|
+
|
|
109322
109658
|
// packages/omo-senpi/src/components/thread/remote/relay-transport.ts
|
|
109323
109659
|
var ADMIT_UNSUPPORTED, WAITS;
|
|
109324
109660
|
var init_relay_transport = __esm(() => {
|
|
109325
109661
|
init_ports();
|
|
109326
109662
|
init_errors5();
|
|
109327
|
-
|
|
109663
|
+
init_hash_args();
|
|
109328
109664
|
init_provenance2();
|
|
109329
|
-
|
|
109665
|
+
init_result();
|
|
109330
109666
|
init_remote_ops();
|
|
109331
109667
|
init_device();
|
|
109332
109668
|
init_outcome();
|
|
109333
109669
|
init_find_session();
|
|
109670
|
+
init_reopen_parked();
|
|
109334
109671
|
init_call_deadline();
|
|
109672
|
+
init_receipt();
|
|
109335
109673
|
ADMIT_UNSUPPORTED = new Set([
|
|
109336
109674
|
"method_unclassified",
|
|
109337
109675
|
"delegation_unclassified",
|
|
@@ -109361,7 +109699,7 @@ var init_sessions = __esm(() => {
|
|
|
109361
109699
|
init_port();
|
|
109362
109700
|
init_relay_control();
|
|
109363
109701
|
init_relay_session_host();
|
|
109364
|
-
|
|
109702
|
+
init_hash_args();
|
|
109365
109703
|
init_provenance_resolver();
|
|
109366
109704
|
init_address_book();
|
|
109367
109705
|
init_outcome();
|
|
@@ -109372,9 +109710,10 @@ var init_sessions = __esm(() => {
|
|
|
109372
109710
|
init_codes();
|
|
109373
109711
|
init_deadlines();
|
|
109374
109712
|
init_device_service3();
|
|
109375
|
-
|
|
109713
|
+
init_resolve();
|
|
109376
109714
|
init_seams();
|
|
109377
109715
|
init_client_message_id();
|
|
109716
|
+
init_send_transcript();
|
|
109378
109717
|
NO_SESSION = new Set(["unknown_session", "session_not_found"]);
|
|
109379
109718
|
});
|
|
109380
109719
|
// packages/omo-senpi/src/components/remote/unknown-device.ts
|
|
@@ -109391,7 +109730,7 @@ var init_client5 = __esm(() => {
|
|
|
109391
109730
|
init_codes();
|
|
109392
109731
|
init_deadlines();
|
|
109393
109732
|
init_follow();
|
|
109394
|
-
|
|
109733
|
+
init_resolve();
|
|
109395
109734
|
init_seams();
|
|
109396
109735
|
init_sessions();
|
|
109397
109736
|
init_unknown_device();
|
|
@@ -109416,6 +109755,11 @@ var init_ladder = __esm(() => {
|
|
|
109416
109755
|
init_errors5();
|
|
109417
109756
|
});
|
|
109418
109757
|
|
|
109758
|
+
// packages/omo-senpi/src/components/thread/address/solo-retry.ts
|
|
109759
|
+
var init_solo_retry = __esm(() => {
|
|
109760
|
+
init_call_deadline();
|
|
109761
|
+
});
|
|
109762
|
+
|
|
109419
109763
|
// packages/omo-senpi/src/components/thread/address/probe.ts
|
|
109420
109764
|
var init_probe = __esm(() => {
|
|
109421
109765
|
init_errors5();
|
|
@@ -109424,6 +109768,7 @@ var init_probe = __esm(() => {
|
|
|
109424
109768
|
init_remote_ops();
|
|
109425
109769
|
init_account();
|
|
109426
109770
|
init_refusals();
|
|
109771
|
+
init_solo_retry();
|
|
109427
109772
|
});
|
|
109428
109773
|
|
|
109429
109774
|
// packages/omo-senpi/src/components/thread/address/bare.ts
|
|
@@ -109469,6 +109814,54 @@ var init_address = __esm(() => {
|
|
|
109469
109814
|
init_resolve4();
|
|
109470
109815
|
});
|
|
109471
109816
|
|
|
109817
|
+
// packages/omo-senpi/src/components/remote/device-address.ts
|
|
109818
|
+
var init_device_address = __esm(() => {
|
|
109819
|
+
init_address();
|
|
109820
|
+
init_errors5();
|
|
109821
|
+
});
|
|
109822
|
+
|
|
109823
|
+
// packages/omo-senpi/src/components/remote/port/sessions-port.ts
|
|
109824
|
+
var init_sessions_port = __esm(() => {
|
|
109825
|
+
init_connection_of();
|
|
109826
|
+
init_device_service3();
|
|
109827
|
+
});
|
|
109828
|
+
|
|
109829
|
+
// packages/omo-senpi/src/components/remote/person-surface.ts
|
|
109830
|
+
var init_person_surface = __esm(() => {
|
|
109831
|
+
init_sessions_port();
|
|
109832
|
+
});
|
|
109833
|
+
|
|
109834
|
+
// packages/omo-senpi/src/components/remote/relay-availability.ts
|
|
109835
|
+
var init_relay_availability = __esm(() => {
|
|
109836
|
+
init_remote_ops();
|
|
109837
|
+
});
|
|
109838
|
+
|
|
109839
|
+
// packages/omo-senpi/src/components/remote/local-service.ts
|
|
109840
|
+
var init_local_service = __esm(() => {
|
|
109841
|
+
init_device_service2();
|
|
109842
|
+
});
|
|
109843
|
+
|
|
109844
|
+
// packages/omo-senpi/src/components/remote/port/thread-runtime.ts
|
|
109845
|
+
var init_thread_runtime = __esm(() => {
|
|
109846
|
+
init_factories();
|
|
109847
|
+
init_sessions_port();
|
|
109848
|
+
});
|
|
109849
|
+
|
|
109850
|
+
// packages/omo-senpi/src/components/remote/index.ts
|
|
109851
|
+
var init_remote = __esm(() => {
|
|
109852
|
+
init_codes();
|
|
109853
|
+
init_factories();
|
|
109854
|
+
init_seams();
|
|
109855
|
+
init_address();
|
|
109856
|
+
init_device_address();
|
|
109857
|
+
init_person_surface();
|
|
109858
|
+
init_relay_availability();
|
|
109859
|
+
init_account_state();
|
|
109860
|
+
init_device_service2();
|
|
109861
|
+
init_local_service();
|
|
109862
|
+
init_thread_runtime();
|
|
109863
|
+
});
|
|
109864
|
+
|
|
109472
109865
|
// packages/omo-opencode/src/cli/cli-program.ts
|
|
109473
109866
|
init_commander();
|
|
109474
109867
|
|
|
@@ -109479,10 +109872,11 @@ init_package();
|
|
|
109479
109872
|
import { createInterface as createInterface2 } from "node:readline/promises";
|
|
109480
109873
|
|
|
109481
109874
|
// packages/telemetry-core/src/install-disclosure.ts
|
|
109875
|
+
init_destinations();
|
|
109482
109876
|
var TELEMETRY_PRIVACY_POLICY_URL = "https://github.com/code-yeongyu/oh-my-openagent/blob/dev/docs/legal/privacy-policy.md";
|
|
109483
109877
|
var TELEMETRY_INSTALL_DISCLOSURE_LINES = [
|
|
109484
109878
|
"OmO sends anonymous usage telemetry (no prompts, code, file paths, or account data) to improve the product.",
|
|
109485
|
-
|
|
109879
|
+
`The data goes to ${TELEMETRY_DESTINATIONS.map((destination) => `${destination.label} (${destination.host})`).join(" and ")}.`,
|
|
109486
109880
|
"Turn it off with DO_NOT_TRACK=1 (or OMO_DISABLE_TELEMETRY=1).",
|
|
109487
109881
|
`Details: ${TELEMETRY_PRIVACY_POLICY_URL}`
|
|
109488
109882
|
];
|
|
@@ -110778,25 +111172,30 @@ async function rewriteCachedManifestRoot(pluginRoot, fromRoot, toRoot) {
|
|
|
110778
111172
|
}
|
|
110779
111173
|
|
|
110780
111174
|
// packages/omo-codex/src/install/codex-cache-payload.ts
|
|
110781
|
-
import { cp as cp2, lstat as lstat5, mkdtemp, readdir as readdir4, rename, rm as rm4 } from "node:fs/promises";
|
|
111175
|
+
import { cp as cp2, lstat as lstat5, mkdtemp, readdir as readdir4, rename, rm as rm4, stat as stat4 } from "node:fs/promises";
|
|
110782
111176
|
import { join as join31, relative as relative4, sep as sep4 } from "node:path";
|
|
110783
111177
|
var NPM_BIN_PATH_SEGMENT = `${sep4}node_modules${sep4}.bin${sep4}`;
|
|
111178
|
+
var isNpmBinEntry = (pluginRoot, path) => `${sep4}${relative4(pluginRoot, path)}`.includes(NPM_BIN_PATH_SEGMENT);
|
|
110784
111179
|
async function finalizeCachedPluginPayload(pluginRoot) {
|
|
110785
|
-
await materializeDirectory(pluginRoot);
|
|
111180
|
+
await materializeDirectory(pluginRoot, pluginRoot);
|
|
110786
111181
|
const unsupported = await unsupportedEntries(pluginRoot, pluginRoot);
|
|
110787
|
-
if (unsupported.length > 0)
|
|
110788
|
-
throw
|
|
110789
|
-
}
|
|
111182
|
+
if (unsupported.length > 0)
|
|
111183
|
+
throw unsupportedEntryError(unsupported);
|
|
110790
111184
|
}
|
|
110791
|
-
|
|
111185
|
+
var unsupportedEntryError = (paths) => new Error(`Codex plugin contains unsupported entry types: ${[...paths].sort().join(", ")}`);
|
|
111186
|
+
async function materializeDirectory(pluginRoot, directory) {
|
|
110792
111187
|
for (const name of await readdir4(directory)) {
|
|
110793
111188
|
const path = join31(directory, name);
|
|
110794
111189
|
let entry = await lstat5(path);
|
|
110795
|
-
if (path
|
|
111190
|
+
if (isNpmBinEntry(pluginRoot, path) && !entry.isFile() && !entry.isDirectory()) {
|
|
110796
111191
|
await rm4(path, { recursive: true, force: true });
|
|
110797
111192
|
continue;
|
|
110798
111193
|
}
|
|
110799
111194
|
if (entry.isSymbolicLink()) {
|
|
111195
|
+
if (await stat4(path).catch(() => {
|
|
111196
|
+
return;
|
|
111197
|
+
}) === undefined)
|
|
111198
|
+
throw unsupportedEntryError([relative4(pluginRoot, path)]);
|
|
110800
111199
|
const staging = await mkdtemp(join31(directory, ".omo-materialize-"));
|
|
110801
111200
|
try {
|
|
110802
111201
|
const copyPath = join31(staging, "entry");
|
|
@@ -110804,7 +111203,7 @@ async function materializeDirectory(directory) {
|
|
|
110804
111203
|
recursive: true,
|
|
110805
111204
|
dereference: true,
|
|
110806
111205
|
filter: async (source) => {
|
|
110807
|
-
if (!source
|
|
111206
|
+
if (!isNpmBinEntry(pluginRoot, source))
|
|
110808
111207
|
return true;
|
|
110809
111208
|
const sourceEntry = await lstat5(source);
|
|
110810
111209
|
return sourceEntry.isFile() || sourceEntry.isDirectory();
|
|
@@ -110818,7 +111217,7 @@ async function materializeDirectory(directory) {
|
|
|
110818
111217
|
entry = await lstat5(path);
|
|
110819
111218
|
}
|
|
110820
111219
|
if (entry.isDirectory())
|
|
110821
|
-
await materializeDirectory(path);
|
|
111220
|
+
await materializeDirectory(pluginRoot, path);
|
|
110822
111221
|
}
|
|
110823
111222
|
}
|
|
110824
111223
|
async function unsupportedEntries(root, directory) {
|
|
@@ -111112,7 +111511,7 @@ function repoRootForCodexPluginSource(sourcePath) {
|
|
|
111112
111511
|
return dirname13(packagesRoot);
|
|
111113
111512
|
}
|
|
111114
111513
|
// packages/omo-codex/src/install/codex-cache-prune.ts
|
|
111115
|
-
import { lstat as lstat6, readdir as readdir6, rm as rm6, stat as
|
|
111514
|
+
import { lstat as lstat6, readdir as readdir6, rm as rm6, stat as stat5 } from "node:fs/promises";
|
|
111116
111515
|
import { join as join34 } from "node:path";
|
|
111117
111516
|
async function pruneMarketplaceCache(input) {
|
|
111118
111517
|
const cacheRoot = join34(input.codexHome, "plugins", "cache", input.marketplaceName);
|
|
@@ -111168,7 +111567,7 @@ async function isBrokenCacheSymlink(path) {
|
|
|
111168
111567
|
throw error;
|
|
111169
111568
|
}
|
|
111170
111569
|
try {
|
|
111171
|
-
await
|
|
111570
|
+
await stat5(path);
|
|
111172
111571
|
return false;
|
|
111173
111572
|
} catch (error) {
|
|
111174
111573
|
if (isNodeErrorWithCode(error) && error.code === "ENOENT")
|
|
@@ -111177,7 +111576,7 @@ async function isBrokenCacheSymlink(path) {
|
|
|
111177
111576
|
}
|
|
111178
111577
|
}
|
|
111179
111578
|
// packages/omo-codex/src/install/codex-cached-marketplace-manifest.ts
|
|
111180
|
-
import { mkdir as mkdir4, rename as rename3, rm as rm7, stat as
|
|
111579
|
+
import { mkdir as mkdir4, rename as rename3, rm as rm7, stat as stat6, writeFile as writeFile5 } from "node:fs/promises";
|
|
111181
111580
|
import { join as join35 } from "node:path";
|
|
111182
111581
|
async function writeCachedMarketplaceManifest(input) {
|
|
111183
111582
|
const marketplaceDir = join35(input.marketplaceRoot, ".agents", "plugins");
|
|
@@ -111206,7 +111605,7 @@ async function writeCachedMarketplaceManifest(input) {
|
|
|
111206
111605
|
}
|
|
111207
111606
|
async function isDirectory2(path) {
|
|
111208
111607
|
try {
|
|
111209
|
-
return (await
|
|
111608
|
+
return (await stat6(path)).isDirectory();
|
|
111210
111609
|
} catch (error) {
|
|
111211
111610
|
if (error instanceof Error && "code" in error && error.code === "ENOENT")
|
|
111212
111611
|
return false;
|
|
@@ -115593,7 +115992,7 @@ function installLocalLauncher(options) {
|
|
|
115593
115992
|
// packages/omo-senpi/src/install/plugin-artifacts.ts
|
|
115594
115993
|
import { createHash as createHash7 } from "node:crypto";
|
|
115595
115994
|
import { constants as constants9 } from "node:fs";
|
|
115596
|
-
import { access as access3, readFile as readFile30, stat as
|
|
115995
|
+
import { access as access3, readFile as readFile30, stat as stat7 } from "node:fs/promises";
|
|
115597
115996
|
import { dirname as dirname25, join as join66 } from "node:path";
|
|
115598
115997
|
|
|
115599
115998
|
// packages/memory-core/src/personas/manifest.ts
|
|
@@ -115740,6 +116139,7 @@ var REQUIRED_PLUGIN_ARTIFACTS = [
|
|
|
115740
116139
|
join66("extensions", "omo-telemetry-posthog.js"),
|
|
115741
116140
|
join66("extensions", "omo-telemetry-otlp.js"),
|
|
115742
116141
|
join66("extensions", "omo-memory-sync.js"),
|
|
116142
|
+
join66("extensions", "omo-memory-sync-rpc.js"),
|
|
115743
116143
|
join66("extensions", "loro_wasm_bg.wasm"),
|
|
115744
116144
|
join66("extensions", "CaseFolding.txt"),
|
|
115745
116145
|
join66("extensions", "omo-thread-client.js"),
|
|
@@ -115762,7 +116162,8 @@ var REQUIRED_PLUGIN_ARTIFACTS = [
|
|
|
115762
116162
|
join66("skills", "coding-agent-sessions", "SKILL.md"),
|
|
115763
116163
|
join66("skills", "debugging", "SKILL.md"),
|
|
115764
116164
|
join66("skills", "frontend", "SKILL.md"),
|
|
115765
|
-
join66("skills", "git
|
|
116165
|
+
join66("skills", "git", "SKILL.md"),
|
|
116166
|
+
join66("skills", "github", "SKILL.md"),
|
|
115766
116167
|
join66("skills", "init-deep", "SKILL.md"),
|
|
115767
116168
|
join66("skills", "lsp-setup", "SKILL.md"),
|
|
115768
116169
|
join66("skills", "programming", "SKILL.md"),
|
|
@@ -115831,7 +116232,7 @@ async function verifyAstGrepRuntimeIntegrity(pluginPath, platform) {
|
|
|
115831
116232
|
const manifestPath = join66(dirname25(runtimeEntry), "manifest.json");
|
|
115832
116233
|
let runtimeStat;
|
|
115833
116234
|
try {
|
|
115834
|
-
runtimeStat = await
|
|
116235
|
+
runtimeStat = await stat7(runtimeEntry);
|
|
115835
116236
|
if (!runtimeStat.isFile())
|
|
115836
116237
|
throw new Error("runtime is not a file");
|
|
115837
116238
|
await access3(runtimeEntry, constants9.R_OK | constants9.X_OK);
|
|
@@ -120078,6 +120479,7 @@ var BuiltinSkillNameSchema = _enum([
|
|
|
120078
120479
|
"playwright",
|
|
120079
120480
|
"dev-browser",
|
|
120080
120481
|
"frontend",
|
|
120482
|
+
"git",
|
|
120081
120483
|
"git-master",
|
|
120082
120484
|
"review-work",
|
|
120083
120485
|
"remove-ai-slops",
|
|
@@ -125515,7 +125917,7 @@ function resolveLatestVersion(input) {
|
|
|
125515
125917
|
|
|
125516
125918
|
// packages/omo-opencode/src/cli/doctor/checks/codex-components.ts
|
|
125517
125919
|
init_src();
|
|
125518
|
-
import { readdir as readdir16, readFile as readFile32, stat as
|
|
125920
|
+
import { readdir as readdir16, readFile as readFile32, stat as stat8 } from "node:fs/promises";
|
|
125519
125921
|
import { homedir as homedir27 } from "node:os";
|
|
125520
125922
|
import { dirname as dirname40, isAbsolute as isAbsolute15, join as join100, relative as relative10, resolve as resolve28, sep as sep11 } from "node:path";
|
|
125521
125923
|
var CODEX_COMPONENTS_CHECK_ID = "codex-components";
|
|
@@ -125780,7 +126182,7 @@ async function readJson2(path) {
|
|
|
125780
126182
|
}
|
|
125781
126183
|
async function fileSize(path) {
|
|
125782
126184
|
try {
|
|
125783
|
-
const stats = await
|
|
126185
|
+
const stats = await stat8(path);
|
|
125784
126186
|
return stats.isFile() ? stats.size : undefined;
|
|
125785
126187
|
} catch {
|
|
125786
126188
|
return;
|
|
@@ -128531,7 +128933,7 @@ var {
|
|
|
128531
128933
|
realpath: realpath2,
|
|
128532
128934
|
rm: rm16,
|
|
128533
128935
|
rmdir: rmdir2,
|
|
128534
|
-
stat:
|
|
128936
|
+
stat: stat9,
|
|
128535
128937
|
statfs,
|
|
128536
128938
|
unlink: unlink3
|
|
128537
128939
|
} = promises;
|
|
@@ -128880,7 +129282,7 @@ async function locateHelper(candidates, verify) {
|
|
|
128880
129282
|
// packages/omo-opencode/src/cli/service-auth/keychain-helper/pin.ts
|
|
128881
129283
|
import { createHash as createHash11 } from "node:crypto";
|
|
128882
129284
|
import { readdirSync as readdirSync15, rmSync as rmSync9 } from "node:fs";
|
|
128883
|
-
import { chmod as chmod3, copyFile as copyFile5, constants as constants14, mkdir as mkdir11, readFile as readFile35, rename as rename9, rm as rm17, stat as
|
|
129285
|
+
import { chmod as chmod3, copyFile as copyFile5, constants as constants14, mkdir as mkdir11, readFile as readFile35, rename as rename9, rm as rm17, stat as stat10 } from "node:fs/promises";
|
|
128884
129286
|
import { tmpdir as tmpdir6 } from "node:os";
|
|
128885
129287
|
import { basename as basename15, join as join108 } from "node:path";
|
|
128886
129288
|
var DIR_PREFIX = "omo-keychain-";
|
|
@@ -128927,7 +129329,7 @@ async function defaultPinDir() {
|
|
|
128927
129329
|
}
|
|
128928
129330
|
async function fileVerdict(path, verify) {
|
|
128929
129331
|
try {
|
|
128930
|
-
if (!(await
|
|
129332
|
+
if (!(await stat10(path)).isFile())
|
|
128931
129333
|
return "absent";
|
|
128932
129334
|
} catch {
|
|
128933
129335
|
return "absent";
|
|
@@ -128936,7 +129338,7 @@ async function fileVerdict(path, verify) {
|
|
|
128936
129338
|
}
|
|
128937
129339
|
var pinned = new Map;
|
|
128938
129340
|
async function sourceIdentity(source) {
|
|
128939
|
-
const info = await
|
|
129341
|
+
const info = await stat10(source);
|
|
128940
129342
|
return `${source}\x00${info.dev}\x00${info.ino}\x00${info.size}\x00${info.mtimeMs}\x00${info.ctimeMs}`;
|
|
128941
129343
|
}
|
|
128942
129344
|
async function copyAndVerify(source, verify, dir) {
|
|
@@ -129025,7 +129427,7 @@ async function pinVerifiedCopy(source, verify, dir) {
|
|
|
129025
129427
|
}
|
|
129026
129428
|
|
|
129027
129429
|
// packages/omo-opencode/src/cli/service-auth/keychain-helper/signature.ts
|
|
129028
|
-
import { stat as
|
|
129430
|
+
import { stat as stat11 } from "node:fs/promises";
|
|
129029
129431
|
init_bun_spawn_shim();
|
|
129030
129432
|
var KEYCHAIN_HELPER_REQUIREMENT = 'identifier "com.mengmota.omo-keychain-helper" and anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] ' + 'and certificate leaf[field.1.2.840.113635.100.6.1.13] and certificate leaf[subject.OU] = "523JNR86LZ"';
|
|
129031
129433
|
var STRICT_ALL_ARCHITECTURES = 1 << 4 | 1 << 0;
|
|
@@ -129096,7 +129498,7 @@ var verifyWithSecurityFramework = async (path, requirement) => {
|
|
|
129096
129498
|
};
|
|
129097
129499
|
async function fileIdentity(path) {
|
|
129098
129500
|
try {
|
|
129099
|
-
const info = await
|
|
129501
|
+
const info = await stat11(path);
|
|
129100
129502
|
if (!info.isFile())
|
|
129101
129503
|
return null;
|
|
129102
129504
|
return `${path}\x00${info.dev}\x00${info.ino}\x00${info.size}\x00${info.mtimeMs}\x00${info.ctimeMs}`;
|
|
@@ -129549,7 +129951,7 @@ import { dirname as dirname43 } from "node:path";
|
|
|
129549
129951
|
|
|
129550
129952
|
// packages/team-core/src/team-state-store/lock-record.ts
|
|
129551
129953
|
import { randomUUID as randomUUID6 } from "node:crypto";
|
|
129552
|
-
import { readFile as readFile36, stat as
|
|
129954
|
+
import { readFile as readFile36, stat as stat12 } from "node:fs/promises";
|
|
129553
129955
|
|
|
129554
129956
|
// packages/memory-core/src/locks/process-identity.ts
|
|
129555
129957
|
import { execFile as execFile8 } from "node:child_process";
|
|
@@ -129648,9 +130050,9 @@ function errorCode(error) {
|
|
|
129648
130050
|
return;
|
|
129649
130051
|
return typeof error.code === "string" ? error.code : undefined;
|
|
129650
130052
|
}
|
|
129651
|
-
async function execFileText(command, args) {
|
|
130053
|
+
async function execFileText(command, args, env) {
|
|
129652
130054
|
return await new Promise((resolve) => {
|
|
129653
|
-
execFile8(command, args, { encoding: "utf8", timeout: 2000, windowsHide: true }, (error, stdout) => {
|
|
130055
|
+
execFile8(command, args, { encoding: "utf8", timeout: 2000, windowsHide: true, env }, (error, stdout) => {
|
|
129654
130056
|
if (error !== null) {
|
|
129655
130057
|
resolve(null);
|
|
129656
130058
|
return;
|
|
@@ -129719,13 +130121,17 @@ async function readProcessStartIdentity(pid) {
|
|
|
129719
130121
|
const startSeconds = await readDarwinProcessStartSeconds(pid);
|
|
129720
130122
|
if (startSeconds !== null)
|
|
129721
130123
|
return `proc-start-epoch:${startSeconds}`;
|
|
129722
|
-
|
|
129723
|
-
return value === null ? null : `ps-lstart:${value.replace(/\s+/g, " ")}`;
|
|
130124
|
+
return await readPsLstartIdentity(pid);
|
|
129724
130125
|
}
|
|
129725
130126
|
if (process.platform === "win32")
|
|
129726
130127
|
return await readWin32StartIdentity(pid);
|
|
129727
130128
|
return null;
|
|
129728
130129
|
}
|
|
130130
|
+
async function readPsLstartIdentity(pid, exec = execFileText) {
|
|
130131
|
+
const env = { ...process.env, TZ: "UTC", LC_ALL: "C", LANG: "C" };
|
|
130132
|
+
const value = await exec("/bin/ps", ["-o", "lstart=", "-p", String(pid)], env);
|
|
130133
|
+
return value === null ? null : `ps-lstart-utc:${value.replace(/\s+/g, " ")}`;
|
|
130134
|
+
}
|
|
129729
130135
|
async function getProcessCommandName(pid) {
|
|
129730
130136
|
let argv0;
|
|
129731
130137
|
if (process.platform === "linux") {
|
|
@@ -129746,9 +130152,35 @@ function identityScheme(identity) {
|
|
|
129746
130152
|
const separator = identity.indexOf(":");
|
|
129747
130153
|
return separator <= 0 ? null : identity.slice(0, separator);
|
|
129748
130154
|
}
|
|
130155
|
+
var LSTART_MONTHS = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
|
|
130156
|
+
var LSTART_C_RENDERING = /^[A-Z][a-z]{2} ([A-Z][a-z]{2}) (\d{1,2}) (\d{2}):(\d{2}):(\d{2}) (\d{4})$/;
|
|
130157
|
+
function lstartWallClockMs(rendering) {
|
|
130158
|
+
const match = LSTART_C_RENDERING.exec(rendering);
|
|
130159
|
+
if (match === null)
|
|
130160
|
+
return null;
|
|
130161
|
+
const [, month, day, hours, minutes, seconds, year] = match;
|
|
130162
|
+
const monthIndex = LSTART_MONTHS.indexOf(month ?? "");
|
|
130163
|
+
if (monthIndex < 0)
|
|
130164
|
+
return null;
|
|
130165
|
+
return Date.UTC(Number(year), monthIndex, Number(day), Number(hours), Number(minutes), Number(seconds));
|
|
130166
|
+
}
|
|
130167
|
+
var MIN_ZONE_OFFSET_MS = -12 * 3600000;
|
|
130168
|
+
var MAX_ZONE_OFFSET_MS = 14 * 3600000;
|
|
130169
|
+
var ZONE_OFFSET_STEP_MS = 15 * 60000;
|
|
130170
|
+
function legacyPsLstartConflict(recorded, actual) {
|
|
130171
|
+
const recordedWall = lstartWallClockMs(recorded.slice("ps-lstart:".length));
|
|
130172
|
+
const actualUtc = lstartWallClockMs(actual.slice("ps-lstart-utc:".length));
|
|
130173
|
+
if (recordedWall === null || actualUtc === null)
|
|
130174
|
+
return false;
|
|
130175
|
+
const offset = recordedWall - actualUtc;
|
|
130176
|
+
return offset < MIN_ZONE_OFFSET_MS || offset > MAX_ZONE_OFFSET_MS || offset % ZONE_OFFSET_STEP_MS !== 0;
|
|
130177
|
+
}
|
|
129749
130178
|
function startIdentitiesConflict(recorded, actual) {
|
|
129750
130179
|
const recordedScheme = identityScheme(recorded);
|
|
129751
|
-
|
|
130180
|
+
const actualScheme = identityScheme(actual);
|
|
130181
|
+
if (recordedScheme === "ps-lstart" && actualScheme === "ps-lstart-utc")
|
|
130182
|
+
return legacyPsLstartConflict(recorded, actual);
|
|
130183
|
+
if (recordedScheme === null || recordedScheme !== actualScheme)
|
|
129752
130184
|
return false;
|
|
129753
130185
|
return recorded !== actual;
|
|
129754
130186
|
}
|
|
@@ -129968,7 +130400,7 @@ function parseLockHolder(content) {
|
|
|
129968
130400
|
async function readLockRecord(lockPath) {
|
|
129969
130401
|
try {
|
|
129970
130402
|
const content = await readFile36(lockPath, "utf8");
|
|
129971
|
-
const { mtimeMs } = await
|
|
130403
|
+
const { mtimeMs } = await stat12(lockPath);
|
|
129972
130404
|
return { content, modifiedAtEpochMs: mtimeMs };
|
|
129973
130405
|
} catch (error) {
|
|
129974
130406
|
if (!(error instanceof Error))
|
|
@@ -131292,29 +131724,9 @@ ${key.name}`;
|
|
|
131292
131724
|
}
|
|
131293
131725
|
|
|
131294
131726
|
// packages/omo-opencode/src/cli/service-auth/session.ts
|
|
131727
|
+
init_local_only();
|
|
131295
131728
|
import { homedir as homedir34 } from "node:os";
|
|
131296
131729
|
|
|
131297
|
-
// packages/device-service-core/src/local-only.ts
|
|
131298
|
-
var KEY2 = Symbol.for("omo.local-only-process.v1");
|
|
131299
|
-
function state3() {
|
|
131300
|
-
const holder = globalThis;
|
|
131301
|
-
holder[KEY2] ??= { marked: false };
|
|
131302
|
-
return holder[KEY2];
|
|
131303
|
-
}
|
|
131304
|
-
|
|
131305
|
-
class LocalOnlyNetworkRefused extends Error {
|
|
131306
|
-
code = "local_only_network_refused";
|
|
131307
|
-
site;
|
|
131308
|
-
constructor(site) {
|
|
131309
|
-
super(`a local-only omo remote command reached the network at ${site}`);
|
|
131310
|
-
this.site = site;
|
|
131311
|
-
}
|
|
131312
|
-
}
|
|
131313
|
-
function refuseIfLocalOnly(site) {
|
|
131314
|
-
if (state3().marked)
|
|
131315
|
-
throw new LocalOnlyNetworkRefused(site);
|
|
131316
|
-
}
|
|
131317
|
-
|
|
131318
131730
|
// packages/memory-core/src/sync/contract-version.ts
|
|
131319
131731
|
var SYNC_CONTRACT_VERSION = "1.44.0";
|
|
131320
131732
|
var SYNC_CAPABILITIES = "phrase";
|
|
@@ -131325,6 +131737,7 @@ var syncRequestHeaders = (token) => ({
|
|
|
131325
131737
|
});
|
|
131326
131738
|
|
|
131327
131739
|
// packages/omo-opencode/src/cli/service-auth/protocol-request.ts
|
|
131740
|
+
init_local_only();
|
|
131328
131741
|
init_zod();
|
|
131329
131742
|
class InvalidApiResponse extends SignInError {
|
|
131330
131743
|
status;
|
|
@@ -131798,8 +132211,11 @@ function createSession(options) {
|
|
|
131798
132211
|
return await locked(async () => {
|
|
131799
132212
|
let current = null;
|
|
131800
132213
|
let account;
|
|
132214
|
+
let readSettled = false;
|
|
132215
|
+
let storeUnavailable = false;
|
|
131801
132216
|
try {
|
|
131802
132217
|
current = await store.readAuthoritative();
|
|
132218
|
+
readSettled = true;
|
|
131803
132219
|
if (current !== null) {
|
|
131804
132220
|
if (current.refreshState === "uncertain")
|
|
131805
132221
|
return false;
|
|
@@ -131814,15 +132230,21 @@ function createSession(options) {
|
|
|
131814
132230
|
} catch (error) {
|
|
131815
132231
|
if (error instanceof SessionEnded)
|
|
131816
132232
|
return error.deviceRevoked;
|
|
132233
|
+
if (!readSettled && error instanceof CredentialStoreError) {
|
|
132234
|
+
storeUnavailable = true;
|
|
132235
|
+
throw error;
|
|
132236
|
+
}
|
|
131817
132237
|
if (error instanceof SignInError)
|
|
131818
132238
|
return false;
|
|
131819
132239
|
throw error;
|
|
131820
132240
|
} finally {
|
|
131821
|
-
|
|
131822
|
-
|
|
131823
|
-
|
|
131824
|
-
|
|
131825
|
-
|
|
132241
|
+
if (!storeUnavailable) {
|
|
132242
|
+
await writeSignedOutMarker(markerPath, current?.device.id ?? null);
|
|
132243
|
+
const stored = current === null ? null : await store.read().catch(() => current);
|
|
132244
|
+
if (stored !== null)
|
|
132245
|
+
await beforeKeysDiscarded(discardedOf(stored.accountId === undefined && account !== undefined ? { ...stored, accountId: account } : stored, "logout"));
|
|
132246
|
+
await store.clear();
|
|
132247
|
+
}
|
|
131826
132248
|
}
|
|
131827
132249
|
});
|
|
131828
132250
|
} finally {
|
|
@@ -132364,8 +132786,9 @@ async function run3(action, options, hooks = {}) {
|
|
|
132364
132786
|
console.log(`This computer's earlier OmO device (id ${terminalText(replacedDeviceId)}) was signed out.`);
|
|
132365
132787
|
await signedIn();
|
|
132366
132788
|
} catch (error) {
|
|
132367
|
-
|
|
132368
|
-
|
|
132789
|
+
const storeUnavailable = action === "logout" && error instanceof CredentialStoreError;
|
|
132790
|
+
console.error(controller.signal.aborted ? "Sign-in cancelled." : storeUnavailable ? "OmO could not read the credential store. Stored credentials and device keys were left untouched; run omo logout again when the keyring answers." : error instanceof SignInError ? error.message : "OmO sign-in stopped on an unexpected error. Run the command again, and report it with /bug if it keeps failing.");
|
|
132791
|
+
process.exitCode = storeUnavailable ? 9 : 1;
|
|
132369
132792
|
} finally {
|
|
132370
132793
|
process.removeListener("SIGINT", cancel);
|
|
132371
132794
|
process.removeListener("SIGTERM", cancel);
|
|
@@ -132450,208 +132873,26 @@ function configureServiceAuthCommands(program, open = serviceAccountsOpen(), hoo
|
|
|
132450
132873
|
}
|
|
132451
132874
|
|
|
132452
132875
|
// packages/omo-native/device-service-handoff.ts
|
|
132876
|
+
init_src6();
|
|
132877
|
+
init_hand_device_keys();
|
|
132878
|
+
init_local_only();
|
|
132453
132879
|
import { existsSync as existsSync67 } from "node:fs";
|
|
132454
|
-
|
|
132455
|
-
// packages/device-service-core/src/index.ts
|
|
132456
|
-
init_device_service2();
|
|
132457
|
-
|
|
132458
|
-
// packages/device-service-core/src/delivery-consumer.ts
|
|
132459
|
-
init_client4();
|
|
132460
|
-
init_background_transport();
|
|
132461
|
-
init_device_service2();
|
|
132462
|
-
// packages/device-service-core/src/bootstrap.ts
|
|
132463
|
-
import { existsSync as existsSync66 } from "node:fs";
|
|
132464
|
-
init_device_service2();
|
|
132465
|
-
|
|
132466
|
-
// packages/device-service-core/src/hand-device-keys.ts
|
|
132467
|
-
init_device_service2();
|
|
132468
|
-
import { existsSync as existsSync65 } from "node:fs";
|
|
132469
|
-
var DEAD_ENDPOINT_CODES = new Set(["ENOENT", "ECONNREFUSED", "ECONNRESET", "EPIPE"]);
|
|
132470
|
-
var connectFailure = (error) => {
|
|
132471
|
-
const detail = error instanceof Error ? error.message : String(error);
|
|
132472
|
-
if (error instanceof LocalApiError) {
|
|
132473
|
-
if (error.code === "refused" || error.code === "server_proof_invalid")
|
|
132474
|
-
return { cause: "refused", detail };
|
|
132475
|
-
if (error.code === "insecure_state_dir")
|
|
132476
|
-
return { cause: "unreadable", detail };
|
|
132477
|
-
if (error.code === "handshake_timeout" || error.code === "request_timeout")
|
|
132478
|
-
return { cause: "timed_out", detail };
|
|
132479
|
-
return { cause: "failed", detail };
|
|
132480
|
-
}
|
|
132481
|
-
const code = error instanceof Error && "code" in error ? String(error.code) : "";
|
|
132482
|
-
return { cause: DEAD_ENDPOINT_CODES.has(code) ? "dead_endpoint" : "failed", detail };
|
|
132483
|
-
};
|
|
132484
|
-
var connectOrNotRunning = async (connect, log) => {
|
|
132485
|
-
try {
|
|
132486
|
-
return await connect();
|
|
132487
|
-
} catch (error) {
|
|
132488
|
-
const { cause, detail } = connectFailure(error);
|
|
132489
|
-
log?.(`OmO device service: ${cause}, treated as not running (${detail}).`);
|
|
132490
|
-
return "not_running";
|
|
132491
|
-
}
|
|
132492
|
-
};
|
|
132493
|
-
var adopted = (status) => status.device !== null && status.state !== "sign_in_required";
|
|
132494
|
-
var handDeviceKeys = async (options) => {
|
|
132495
|
-
if (!existsSync65(deviceServiceEndpointPath(options.stateDir)))
|
|
132496
|
-
return "not_running";
|
|
132497
|
-
const service = await connectOrNotRunning(options.connect, options.log);
|
|
132498
|
-
if (service === "not_running")
|
|
132499
|
-
return "not_running";
|
|
132500
|
-
try {
|
|
132501
|
-
if (options.when === "not_adopted" && adopted(await service.status()))
|
|
132502
|
-
return "already_adopted";
|
|
132503
|
-
await service.adopt(options.credential);
|
|
132504
|
-
return "adopted";
|
|
132505
|
-
} finally {
|
|
132506
|
-
service.close();
|
|
132507
|
-
}
|
|
132508
|
-
};
|
|
132509
|
-
|
|
132510
|
-
// packages/device-service-core/src/bootstrap.ts
|
|
132511
|
-
init_version2();
|
|
132512
|
-
var forgetDeviceService = async (options) => {
|
|
132513
|
-
if (!existsSync66(deviceServiceEndpointPath(options.stateDir)))
|
|
132514
|
-
return "not_running";
|
|
132515
|
-
const service = await connectOrNotRunning(options.connect, options.log);
|
|
132516
|
-
if (service === "not_running")
|
|
132517
|
-
return "not_running";
|
|
132518
|
-
try {
|
|
132519
|
-
await service.forget();
|
|
132520
|
-
} finally {
|
|
132521
|
-
service.close();
|
|
132522
|
-
}
|
|
132523
|
-
return "forgotten";
|
|
132524
|
-
};
|
|
132525
|
-
// packages/device-service-core/src/cold-wake/host.ts
|
|
132526
|
-
var UNREPAIRABLE = new Set(["EPERM", "EACCES", "EROFS"]);
|
|
132527
|
-
|
|
132528
|
-
// packages/device-service-core/src/cold-wake/service-table.ts
|
|
132529
|
-
var SERVICE_TABLE_ENV = "OMO_RELAYD_SERVICES";
|
|
132530
|
-
|
|
132531
|
-
// packages/device-service-core/src/cold-wake/darwin.ts
|
|
132532
|
-
var TABLE_KEY = `EnvironmentVariables.${SERVICE_TABLE_ENV}`;
|
|
132533
|
-
// packages/device-service-core/src/release/acquire.ts
|
|
132534
|
-
init_access();
|
|
132535
|
-
init_dacl();
|
|
132536
|
-
|
|
132537
|
-
// packages/device-service-core/src/release/windows-dacl.ts
|
|
132538
|
-
init_errors4();
|
|
132539
|
-
init_dacl();
|
|
132540
|
-
var SID_TOKEN_SCRIPT = String.raw`
|
|
132541
|
-
$ErrorActionPreference = 'Stop'
|
|
132542
|
-
(New-Object System.Security.AccessControl.RawSecurityDescriptor("O:$env:LA_SID")).GetSddlForm('Owner')
|
|
132543
|
-
`;
|
|
132544
|
-
var userSidToken = async (userSid, run = runPowerShell) => {
|
|
132545
|
-
const { code, out } = await run(SID_TOKEN_SCRIPT, { LA_SID: userSid });
|
|
132546
|
-
const match = code === 0 ? /^O:(S-1-\d+(?:-\d+)+|[A-Z]{2})$/.exec(out.trim()) : null;
|
|
132547
|
-
return match?.[1];
|
|
132548
|
-
};
|
|
132549
|
-
var aliasedDaclVerdict = (dacl, userSid, kind, userAlias) => {
|
|
132550
|
-
const asSid = (token) => userAlias !== undefined && token === userAlias ? userSid : token;
|
|
132551
|
-
return exactDaclVerdict({ ...dacl, owner: asSid(dacl.owner), aces: dacl.aces.map((ace) => ({ ...ace, sid: asSid(ace.sid) })) }, userSid, kind);
|
|
132552
|
-
};
|
|
132553
|
-
var verifyExactDacl2 = async (path, userSid, kind, run = runPowerShell) => {
|
|
132554
|
-
let dacl;
|
|
132555
|
-
try {
|
|
132556
|
-
dacl = await describeDacl(path, run);
|
|
132557
|
-
} catch (error) {
|
|
132558
|
-
if (error instanceof LocalApiError)
|
|
132559
|
-
return false;
|
|
132560
|
-
throw error;
|
|
132561
|
-
}
|
|
132562
|
-
return aliasedDaclVerdict(dacl, userSid, kind, await userSidToken(userSid, run));
|
|
132563
|
-
};
|
|
132564
|
-
var windowsSecureFile2 = (userSid, run = runPowerShell) => async (path, kind) => {
|
|
132565
|
-
const target = kind === "dir" ? "dir" : "file";
|
|
132566
|
-
await applyExactDacl(path, userSid, target, run);
|
|
132567
|
-
if (!await verifyExactDacl2(path, userSid, target, run))
|
|
132568
|
-
throw new LocalApiError("insecure_state_dir", "the DACL is not exactly one ACE for the user");
|
|
132569
|
-
};
|
|
132570
|
-
|
|
132571
|
-
// packages/device-service-core/src/release/release-assets.ts
|
|
132572
|
-
init_version2();
|
|
132573
|
-
var MANIFEST = "latest.json";
|
|
132574
|
-
var CHECKSUMS_MAX_BYTES = 64 * 1024;
|
|
132575
|
-
var MANIFEST_MAX_BYTES = 4 * 1024;
|
|
132576
|
-
var BINARY_MAX_BYTES = 512 * 1024 * 1024;
|
|
132577
|
-
var DEVICE_SERVICE_HOSTS = [
|
|
132578
|
-
"darwin-arm64",
|
|
132579
|
-
"darwin-x64",
|
|
132580
|
-
"linux-x64",
|
|
132581
|
-
"linux-arm64",
|
|
132582
|
-
"windows-x64",
|
|
132583
|
-
"windows-arm64"
|
|
132584
|
-
];
|
|
132585
|
-
var deviceServiceAssetName = (host) => host.startsWith("windows-") ? `omo-device-service-${host}.exe` : `omo-device-service-${host}`;
|
|
132586
|
-
var RELEASE_FILES = new Set([MANIFEST, ...DEVICE_SERVICE_HOSTS.map(deviceServiceAssetName)]);
|
|
132587
|
-
|
|
132588
|
-
// packages/device-service-core/src/strict-ed25519/strict-ed25519.ts
|
|
132589
|
-
var P = (1n << 255n) - 19n;
|
|
132590
|
-
var L = (1n << 252n) + 27742317777372353535851937790883648493n;
|
|
132591
|
-
var mod = (n) => {
|
|
132592
|
-
const r = n % P;
|
|
132593
|
-
return r < 0n ? r + P : r;
|
|
132594
|
-
};
|
|
132595
|
-
var power = (base, exponent) => {
|
|
132596
|
-
let result = 1n;
|
|
132597
|
-
let b = mod(base);
|
|
132598
|
-
for (let n = exponent;n > 0n; n >>= 1n) {
|
|
132599
|
-
if (n & 1n)
|
|
132600
|
-
result = mod(result * b);
|
|
132601
|
-
b = mod(b * b);
|
|
132602
|
-
}
|
|
132603
|
-
return result;
|
|
132604
|
-
};
|
|
132605
|
-
var D = mod(-121665n * power(121666n, P - 2n));
|
|
132606
|
-
var SQRT_MINUS_ONE = power(2n, (P - 1n) / 4n);
|
|
132607
|
-
var keyCache = new Map;
|
|
132608
|
-
// packages/device-service-core/src/release/release-key.json
|
|
132609
|
-
var release_key_default = {
|
|
132610
|
-
alg: "Ed25519",
|
|
132611
|
-
public_keys_hex: ["6c6781a91888e3e5be10d1b27466319a7d5adf2a7d2b254f4118eda9cbcb4465", "ca9407b484a30ac7f09cb152455176f1e03fc6ca3446ff930bc7587215759016"]
|
|
132612
|
-
};
|
|
132613
|
-
|
|
132614
|
-
// packages/device-service-core/src/release/release-signature.ts
|
|
132615
|
-
var HEX_KEY = /^[0-9a-f]{64}$/;
|
|
132616
|
-
var parseReleaseKeySet = (value) => {
|
|
132617
|
-
if (typeof value !== "object" || value === null || Array.isArray(value))
|
|
132618
|
-
throw new Error("release key: not an object");
|
|
132619
|
-
if (Object.keys(value).toSorted().join(",") !== "alg,public_keys_hex")
|
|
132620
|
-
throw new Error("release key: fields must be exactly alg and public_keys_hex");
|
|
132621
|
-
const alg = Reflect.get(value, "alg");
|
|
132622
|
-
const hexes = Reflect.get(value, "public_keys_hex");
|
|
132623
|
-
if (alg !== "Ed25519")
|
|
132624
|
-
throw new Error("release key: alg must be Ed25519");
|
|
132625
|
-
if (!Array.isArray(hexes))
|
|
132626
|
-
throw new Error("release key: public_keys_hex must be an array");
|
|
132627
|
-
if (new Set(hexes).size !== hexes.length)
|
|
132628
|
-
throw new Error("release key: public_keys_hex must not repeat a key");
|
|
132629
|
-
return hexes.map((hex) => {
|
|
132630
|
-
if (typeof hex !== "string" || !HEX_KEY.test(hex))
|
|
132631
|
-
throw new Error("release key: each public_keys_hex entry must be 64 lowercase hex characters");
|
|
132632
|
-
return hex;
|
|
132633
|
-
});
|
|
132634
|
-
};
|
|
132635
|
-
var DEVICE_SERVICE_RELEASE_KEYS = parseReleaseKeySet(release_key_default);
|
|
132636
|
-
|
|
132637
|
-
// packages/device-service-core/src/release/acquire.ts
|
|
132638
|
-
init_version2();
|
|
132639
|
-
var platformSecure = process.platform === "win32" ? async (path, kind, origin) => windowsSecureFile2(await currentUserSid())(path, kind, origin) : posixSecureFile;
|
|
132640
|
-
// packages/device-service-core/src/registrant.ts
|
|
132641
|
-
init_device_service2();
|
|
132642
|
-
var NONE2 = Symbol("none registered");
|
|
132643
|
-
|
|
132644
|
-
// packages/device-service-core/src/index.ts
|
|
132645
|
-
init_timers();
|
|
132646
132880
|
// packages/omo-native/package.json
|
|
132647
132881
|
var package_default4 = {
|
|
132648
132882
|
name: "omo-ai",
|
|
132649
|
-
version: "5.1.
|
|
132883
|
+
version: "5.1.86",
|
|
132650
132884
|
type: "module",
|
|
132651
132885
|
description: "OmO Native - the standalone omo command with the OMO extension built in: bun add -g omo-ai",
|
|
132652
132886
|
bin: {
|
|
132653
132887
|
omo: "bin/omo.js"
|
|
132654
132888
|
},
|
|
132889
|
+
exports: {
|
|
132890
|
+
"./remote": {
|
|
132891
|
+
types: "./bin/lib/remote-sdk.generated.d.ts",
|
|
132892
|
+
default: "./bin/lib/remote-sdk.generated.js"
|
|
132893
|
+
},
|
|
132894
|
+
"./package.json": "./package.json"
|
|
132895
|
+
},
|
|
132655
132896
|
files: [
|
|
132656
132897
|
"bin",
|
|
132657
132898
|
"plugin"
|
|
@@ -132749,7 +132990,7 @@ function cliDeviceServiceHandoff(options) {
|
|
|
132749
132990
|
}
|
|
132750
132991
|
|
|
132751
132992
|
// packages/omo-native/remote-entry.ts
|
|
132752
|
-
|
|
132993
|
+
init_remote();
|
|
132753
132994
|
|
|
132754
132995
|
// packages/memory-core/src/journal/fsync.ts
|
|
132755
132996
|
var SKIPPABLE_SYNC_CODES = new Set(["ENOENT", "EISDIR", "EPERM", "EACCES", "EINVAL"]);
|
|
@@ -132763,7 +133004,7 @@ var ED25519_PKCS8_PREFIX = hexBytes("302e020100300506032b657004220420");
|
|
|
132763
133004
|
var ED25519_SPKI_PREFIX = hexBytes("302a300506032b6570032100");
|
|
132764
133005
|
// packages/memory-core/src/sync/crypto/anchor.ts
|
|
132765
133006
|
var anchors = new WeakSet;
|
|
132766
|
-
var
|
|
133007
|
+
var candidates2 = new WeakSet;
|
|
132767
133008
|
var bootstraps = new WeakSet;
|
|
132768
133009
|
|
|
132769
133010
|
// packages/memory-core/src/sync/crypto/strict-ed25519/strict-ed25519.ts
|
|
@@ -132809,6 +133050,12 @@ var refreshAttemptSchema = object({
|
|
|
132809
133050
|
state: _enum(["ready", "sent_unknown", "successor_received_uncommitted", "exhausted"])
|
|
132810
133051
|
});
|
|
132811
133052
|
|
|
133053
|
+
// packages/omo-native/remote-bootstrap.ts
|
|
133054
|
+
init_src6();
|
|
133055
|
+
|
|
133056
|
+
// packages/omo-native/remote-cold-wake.ts
|
|
133057
|
+
init_src6();
|
|
133058
|
+
|
|
132812
133059
|
// packages/omo-native/remote-session-args.ts
|
|
132813
133060
|
init_fields();
|
|
132814
133061
|
|
|
@@ -132831,83 +133078,29 @@ var VERBS = [
|
|
|
132831
133078
|
...SESSION_VERBS
|
|
132832
133079
|
];
|
|
132833
133080
|
|
|
132834
|
-
// packages/omo-native/remote-
|
|
132835
|
-
|
|
132836
|
-
init_operations();
|
|
132837
|
-
init_relay_control();
|
|
132838
|
-
init_device_service3();
|
|
132839
|
-
|
|
132840
|
-
// packages/omo-senpi/src/components/remote/index.ts
|
|
132841
|
-
init_codes();
|
|
132842
|
-
init_factories();
|
|
132843
|
-
init_seams();
|
|
132844
|
-
init_address();
|
|
132845
|
-
|
|
132846
|
-
// packages/omo-senpi/src/components/remote/device-address.ts
|
|
132847
|
-
init_address();
|
|
132848
|
-
init_errors5();
|
|
132849
|
-
// packages/omo-senpi/src/components/thread/gateway/store.ts
|
|
132850
|
-
init_constants6();
|
|
132851
|
-
init_provenance_resolver();
|
|
132852
|
-
|
|
132853
|
-
// packages/omo-senpi/src/components/thread/gateway/session-args-schema.ts
|
|
132854
|
-
var TYPES = new Set(["object", "string", "number", "integer", "boolean", "array", "null"]);
|
|
132855
|
-
var ANNOTATIONS = new Set(["title", "description", "default", "examples"]);
|
|
132856
|
-
var COUNTS = ["minLength", "maxLength", "minItems", "maxItems"];
|
|
132857
|
-
var BOUNDS2 = ["minimum", "maximum", "exclusiveMinimum", "exclusiveMaximum"];
|
|
132858
|
-
var KEYWORDS = new Set([
|
|
132859
|
-
"type",
|
|
132860
|
-
"properties",
|
|
132861
|
-
"required",
|
|
132862
|
-
"additionalProperties",
|
|
132863
|
-
"enum",
|
|
132864
|
-
"const",
|
|
132865
|
-
"pattern",
|
|
132866
|
-
"items",
|
|
132867
|
-
"anyOf",
|
|
132868
|
-
...COUNTS,
|
|
132869
|
-
...BOUNDS2,
|
|
132870
|
-
...ANNOTATIONS
|
|
132871
|
-
]);
|
|
133081
|
+
// packages/omo-native/remote-cli.ts
|
|
133082
|
+
init_remote();
|
|
132872
133083
|
|
|
132873
|
-
// packages/omo-native/remote-
|
|
132874
|
-
|
|
132875
|
-
|
|
133084
|
+
// packages/omo-native/remote-attach-presentation.ts
|
|
133085
|
+
init_outcome();
|
|
133086
|
+
var FORWARD_WAIT_MS = 60 * 60000;
|
|
132876
133087
|
|
|
132877
|
-
// packages/omo-
|
|
132878
|
-
|
|
132879
|
-
init_errors5();
|
|
132880
|
-
init_fields();
|
|
132881
|
-
init_constants6();
|
|
132882
|
-
init_result2();
|
|
132883
|
-
init_provenance_resolver();
|
|
133088
|
+
// packages/omo-native/remote-attach.ts
|
|
133089
|
+
var MAX_LINE_CHARS = 64 * 1024 * 1024;
|
|
132884
133090
|
|
|
132885
|
-
// packages/omo-
|
|
132886
|
-
|
|
133091
|
+
// packages/omo-native/remote-local.ts
|
|
133092
|
+
init_remote();
|
|
132887
133093
|
|
|
132888
133094
|
// packages/omo-native/remote-session-verbs.ts
|
|
132889
|
-
|
|
132890
|
-
init_this_device();
|
|
132891
|
-
init_thread_link();
|
|
132892
|
-
init_thread_row();
|
|
132893
|
-
|
|
132894
|
-
// packages/omo-native/bin/lib/package-paths.js
|
|
132895
|
-
import { fileURLToPath as fileURLToPath9 } from "node:url";
|
|
132896
|
-
var packageRoot = fileURLToPath9(new URL("../..", import.meta.url));
|
|
133095
|
+
init_remote();
|
|
132897
133096
|
|
|
132898
|
-
// packages/omo-native/remote-session-
|
|
132899
|
-
init_remote_ops();
|
|
133097
|
+
// packages/omo-native/remote-session-answer.ts
|
|
132900
133098
|
var NO_SUCH_SESSION = new Set(["session_not_found", "unknown_session"]);
|
|
132901
133099
|
|
|
132902
|
-
// packages/omo-native/remote-
|
|
132903
|
-
|
|
132904
|
-
var FORWARD_WAIT_MS = 60 * 60000;
|
|
132905
|
-
|
|
132906
|
-
// packages/omo-native/remote-attach.ts
|
|
132907
|
-
var MAX_LINE_CHARS = 64 * 1024 * 1024;
|
|
133100
|
+
// packages/omo-native/remote-session-open.ts
|
|
133101
|
+
init_remote();
|
|
132908
133102
|
|
|
132909
133103
|
// packages/omo-native/remote-local.ts
|
|
132910
|
-
init_device_service2();
|
|
132911
133104
|
var READ_VERBS = new Set(["status", "devices", "sessions", "disable", "control", "wake"]);
|
|
132912
133105
|
|
|
132913
133106
|
// packages/omo-native/remote-usage.ts
|
|
@@ -132959,7 +133152,7 @@ var USAGE_ENTRIES = [
|
|
|
132959
133152
|
},
|
|
132960
133153
|
{
|
|
132961
133154
|
verbs: ["send"],
|
|
132962
|
-
text: ` send <session> <text
|
|
133155
|
+
text: ` send <session> <text|-> [--steer|--follow-up] [--no-wait]
|
|
132963
133156
|
send a message and print the answer as it arrives (--steer: into the
|
|
132964
133157
|
running turn; --no-wait: return once the session took it).
|
|
132965
133158
|
Use the thread value from open --json, or <device>/<session>.`
|
|
@@ -132979,10 +133172,6 @@ var USAGE_ENTRIES = [
|
|
|
132979
133172
|
];
|
|
132980
133173
|
var REMOTE_USAGE = [USAGE_HEAD, ...USAGE_ENTRIES.map((entry) => entry.text)].join(`
|
|
132981
133174
|
`);
|
|
132982
|
-
|
|
132983
|
-
// packages/omo-native/remote-cli.ts
|
|
132984
|
-
init_device_service3();
|
|
132985
|
-
|
|
132986
133175
|
// packages/omo-native/remote-entry.ts
|
|
132987
133176
|
var testSkipKey = Symbol.for("omo.test.skipRemoteLoginSetup");
|
|
132988
133177
|
|
|
@@ -133441,7 +133630,7 @@ function linkedWorktrees(records) {
|
|
|
133441
133630
|
}
|
|
133442
133631
|
// packages/omo-opencode/src/cli/worktree-sweep/sweep.ts
|
|
133443
133632
|
import { existsSync as existsSync70 } from "node:fs";
|
|
133444
|
-
import { stat as
|
|
133633
|
+
import { stat as stat13 } from "node:fs/promises";
|
|
133445
133634
|
import os7 from "node:os";
|
|
133446
133635
|
import { normalize as normalize2 } from "node:path";
|
|
133447
133636
|
|
|
@@ -133513,7 +133702,7 @@ async function isOlderThan(worktreePath, days, now) {
|
|
|
133513
133702
|
if (days <= 0)
|
|
133514
133703
|
return false;
|
|
133515
133704
|
try {
|
|
133516
|
-
const stats = await
|
|
133705
|
+
const stats = await stat13(worktreePath);
|
|
133517
133706
|
return now - stats.mtimeMs > days * DAY_MS;
|
|
133518
133707
|
} catch {
|
|
133519
133708
|
return false;
|