cosyncing 0.5.9 → 0.5.10
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/README.md +1 -1
- package/THIRD_PARTY_NOTICES.txt +1 -1
- package/bin/cosyncing +1 -1
- package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/cosyncing-build-identity.json +5 -5
- package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/cosyncing-cache-manifest.json +4 -4
- package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/main.dart.js +86738 -86523
- package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/sw.js +3 -3
- package/bin/cosyncing-web-0.5.10/version.json +1 -0
- package/package.json +2 -2
- package/bin/cosyncing-web-0.5.9/version.json +0 -1
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/assets/AssetManifest.bin +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/assets/AssetManifest.bin.json +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/assets/FontManifest.json +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/assets/NOTICES +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/assets/assets/agents/README.md +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/assets/assets/agents/amp.png +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/assets/assets/agents/antigravity_cli.png +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/assets/assets/agents/claude.png +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/assets/assets/agents/cline.png +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/assets/assets/agents/codex.png +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/assets/assets/agents/copilot_cli.png +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/assets/assets/agents/crush.png +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/assets/assets/agents/cursor.png +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/assets/assets/agents/dsh.png +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/assets/assets/agents/gemini_cli.png +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/assets/assets/agents/grok.png +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/assets/assets/agents/hermes.png +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/assets/assets/agents/kilocode.png +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/assets/assets/agents/kimi.png +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/assets/assets/agents/mimo.png +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/assets/assets/agents/omp.png +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/assets/assets/agents/openclaw.png +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/assets/assets/agents/opencode.png +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/assets/assets/agents/pi_agent.png +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/assets/assets/agents/qoder.png +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/assets/assets/agents/qoder_cli.png +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/assets/assets/agents/qwen_code.png +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/assets/assets/agents/reasonix.png +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/assets/assets/agents/workbuddy.png +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/assets/assets/agents/zcode.png +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/assets/assets/agents/zed.png +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/assets/fonts/MaterialIcons-Regular.otf +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/assets/packages/cupertino_icons/assets/CupertinoIcons.ttf +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/assets/packages/flutter_local_notifications_web/web/notifications_service_worker.js +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/assets/shaders/ink_sparkle.frag +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/assets/shaders/stretch_effect.frag +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/canvaskit/canvaskit.js +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/canvaskit/canvaskit.wasm +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/canvaskit/chromium/canvaskit.js +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/canvaskit/chromium/canvaskit.wasm +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/canvaskit/experimental_webparagraph/canvaskit.js +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/canvaskit/experimental_webparagraph/canvaskit.wasm +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/canvaskit/skwasm.js +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/canvaskit/skwasm.wasm +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/canvaskit/skwasm_heavy.js +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/canvaskit/skwasm_heavy.wasm +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/canvaskit/wimp.js +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/canvaskit/wimp.wasm +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/drift_worker.js +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/favicon.ico +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/favicon.svg +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/flutter.js +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/flutter_bootstrap.js +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/icons/apple-touch-icon-180.png +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/icons/pwa-icon-192.png +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/icons/pwa-icon-512.png +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/icons/pwa-maskable-192.png +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/icons/pwa-maskable-512.png +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/icons/pwa-monochrome-192.png +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/icons/pwa-monochrome-512.png +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/index.html +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/manifest.json +0 -0
- /package/bin/{cosyncing-web-0.5.9 → cosyncing-web-0.5.10}/sqlite3.wasm +0 -0
package/README.md
CHANGED
|
@@ -57,5 +57,5 @@ Both steps are needed — they remove different things:
|
|
|
57
57
|
|
|
58
58
|
Neither step touches Bun. It was installed separately and stays that way.
|
|
59
59
|
|
|
60
|
-
Version 0.5.
|
|
60
|
+
Version 0.5.10. Licensed under Apache-2.0; see LICENSE, NOTICE, and
|
|
61
61
|
THIRD_PARTY_NOTICES.txt.
|
package/THIRD_PARTY_NOTICES.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Third-party notices for the cosyncing 0.5.
|
|
1
|
+
Third-party notices for the cosyncing 0.5.10 JavaScript distribution
|
|
2
2
|
|
|
3
3
|
This package contains one self-contained JavaScript application bundle. It does not
|
|
4
4
|
contain the Bun runtime, JavaScriptCore, or WebKit; Bun is installed separately by the
|
package/bin/cosyncing
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
// @bun
|
|
3
|
-
var B50=Object.create;var{getPrototypeOf:O50,defineProperty:fq,getOwnPropertyNames:D50}=Object;var C50=Object.prototype.hasOwnProperty;var Iq=($,Q,Z)=>{Z=$!=null?B50(O50($)):{};let J=Q||!$||!$.__esModule?fq(Z,"default",{value:$,enumerable:!0}):Z;for(let X of D50($))if(!C50.call(J,X))fq(J,X,{get:()=>$[X],enumerable:!0});return J};var L0=($,Q)=>()=>(Q||$((Q={exports:{}}).exports,Q),Q.exports);var M5=($,Q)=>{for(var Z in Q)fq($,Z,{get:Q[Z],enumerable:!0,configurable:!0,set:(J)=>Q[Z]=()=>J})};var f=($,Q)=>()=>($&&(Q=$($=0)),Q);var p1=import.meta.require;var yw;var hw=f(()=>{yw={name:"cosyncing",version:"0.5.9",private:!0,packageManager:"bun@1.3.8",license:"Apache-2.0",type:"module",description:"cosyncing \u2014 view and drive CLI coding-agent sessions through your own broker.",workspaces:["packages/typescript/protocol","packages/typescript/adapter-api","packages/typescript/crypto","packages/typescript/transport","packages/typescript/transport-wire","packages/typescript/acp-client","packages/typescript/opencode-wire","packages/typescript/broker","packages/typescript/pi-engine","packages/typescript/adapters/*","apps/poc-ui"],scripts:{broker:"bun run packages/typescript/broker/src/cli/cli.ts broker --dev-bypass-first-run","broker:direct":"bun run packages/typescript/broker/src/main.ts",dev:"bun run --watch packages/typescript/broker/src/cli/cli.ts broker --dev-bypass-first-run","client:pub-get":"bun run scripts/client/run-client-command.ts flutter pub get","client:format":"bun run scripts/client/run-client-command.ts dart format --output=none --set-exit-if-changed lib test tool integration_test test_driver ../../packages/dart","client:analyze":"bun run scripts/client/run-client-command.ts flutter analyze","client:test":"bun run scripts/client/run-client-command.ts flutter test","client:test:contract":"bun run scripts/client/run-client-command.ts flutter test test/contract","client:build:web":"bun run scripts/client/build-web.ts","client:build:desktop":"bun run scripts/client/build-desktop.ts","client:build:android":"bun run scripts/client/build-android.ts","client:check":"bun run scripts/client/check.ts","test:desktop-build-command":"bun run scripts/client/tests/test-desktop-build-command.ts","test:client-release-policy":"bun run scripts/client/tests/test-client-release-policy.ts","client:profile-tests":"bun run scripts/client/profile-tests.ts",check:"bun run scripts/check.ts","check:changed":"bun run scripts/check.ts --changed","app:rebuild-restart":"bash scripts/dev/rebuild-restart-app.sh","test:web-static-cache":"bun run scripts/client/tests/test-web-static-cache.ts","test:web-update-handoff":"bun run scripts/client/tests/test-web-update-handoff.ts","test:web-startup-shell":"bun run client:build:web && node scripts/client/tests/test-startup-shell-browser.mjs","test:web-startup-shell:built":"node scripts/client/tests/test-startup-shell-browser.mjs","test:web-artifact-session-isolation":"bun run client:build:web && bun run test:web-artifact-session-isolation:built","test:web-artifact-session-isolation:built":"bun run scripts/client/tests/test-web-artifact-session-isolation.ts","test:web-browser:built":"bun run test:web-startup-shell:built && bun run test:web-artifact-session-isolation:built && bun run test:client-browser-platform","test:client-browser-platform":"bun run scripts/client/tests/run-client-browser-platform-tests.ts","test:web-client-upgrade":"bun run scripts/client/tests/test-web-client-upgrade-browser.ts","build:broker":"bun run scripts/broker/build-broker.ts","contract:export":"bun run scripts/broker/export-client-contract.ts","contract:generate":"bash scripts/contracts/check.sh --write","contract:check":"bash scripts/contracts/check.sh","contract:revision-check":"bun run scripts/contracts/check-revision-history.ts","test:contract-revision-history":"bun run scripts/contracts/test-revision-history.ts","ci:audit-workflows":"bash scripts/ci/audit-workflows.sh","test:docs-only-policy":"ruby scripts/ci/tests/test-docs-only-policy.rb","ci:check-public-tree":"ruby scripts/ci/check-public-tree.rb","test:public-tree-policy":"ruby scripts/ci/tests/test-public-tree-policy.rb","ci:check-boundaries":"bash scripts/ci/check-boundaries.sh","test:broker-cli":"bun run packages/typescript/broker/test/broker/test-cli.ts","test:broker-assets":"bun run packages/typescript/broker/test/broker/test-runtime-assets.ts","test:broker-application-identity":"bun run packages/typescript/broker/test/broker/test-application-identity.ts","test:broker-invocation":"bun run packages/typescript/broker/test/broker/test-invocation.ts","test:broker-npm-package":"bun run scripts/broker/tests/release/test-npm-package.ts","test:broker-web-origin":"bun run packages/typescript/broker/test/broker/test-web-origin.ts","test:broker-state":"bun run packages/typescript/broker/test/broker/test-state-security.ts","test:broker-install-ps1":"bun run scripts/broker/tests/release/test-install-ps1.ts","test:broker-windows-dacl":"bun run packages/typescript/broker/test/broker/test-windows-dacl.ts","test:broker-windows-process":"bun run packages/typescript/broker/test/broker/test-windows-process.ts","test:broker-windows-service":"bun run packages/typescript/broker/test/broker/test-windows-service-install.ts","test:broker-doctor":"bun run packages/typescript/broker/test/broker/test-doctor.ts","test:broker-doctor-real":"bun run scripts/broker/tests/host/test-doctor-real.ts","test:broker-setup":"bun run packages/typescript/broker/test/broker/test-transactional-setup.ts","test:broker-service":"bun run packages/typescript/broker/test/broker/test-service-lifecycle.ts","test:broker-pairing":"bun run packages/typescript/broker/test/broker/test-pairing.ts","test:broker-route-authorization":"bun run packages/typescript/broker/test/broker/test-route-authorization.ts","test:broker-tokdash-report":"bun run packages/typescript/broker/test/broker/test-tokdash-report.ts","test:broker-lifecycle":"bun run packages/typescript/broker/test/broker/test-broker-lifecycle.ts","test:broker-opencode-shim-symmetry":"bun run packages/typescript/broker/test/broker/test-opencode-shim-symmetry.ts","test:broker-opencode-shim-runtime":"bun run packages/typescript/broker/test/broker/test-opencode-shim-runtime.ts","test:broker-status-broadcast":"bun run packages/typescript/broker/test/broker/test-hub-status-broadcast.ts","test:broker-live-session-coherence":"bun run packages/typescript/broker/test/broker/test-live-session-coherence.ts","test:broker-roster-publication":"bun run packages/typescript/broker/test/broker/test-roster-publication-qualification.ts","test:broker-session-truth-conformance":"bun run packages/typescript/broker/test/broker/test-session-truth-conformance.ts","test:broker-roster-watcher-live":"bun run packages/typescript/broker/test/broker/test-roster-watcher-publication-live.ts","test:broker-model-session-creation":"bun run packages/typescript/broker/test/broker/test-model-session-creation.ts","test:broker-agent-create-readiness":"bun run packages/typescript/broker/test/broker/test-agent-create-readiness.ts && bun run packages/typescript/broker/test/broker/test-opencode-create-readiness-restart.ts","test:broker-roster-revision":"bun run packages/typescript/broker/test/broker/test-roster-revision.ts","test:broker-roster-window":"bun run packages/typescript/broker/test/broker/test-roster-http.ts","test:broker-adapter-discovery-bounds":"bun run packages/typescript/broker/test/broker/test-adapter-discovery-bounds.ts","test:broker-managed-host-ownership":"bun run packages/typescript/broker/test/broker/test-managed-host-ownership.ts","test:broker-sync-degraded-integration":"bun run packages/typescript/broker/test/broker/test-sync-degraded-integration.ts","test:broker-control-boundaries":"bun run packages/typescript/broker/test/broker/test-control-boundaries.ts","test:broker-artifact-session-isolation":"bun run packages/typescript/broker/test/broker/test-artifact-session-isolation.ts","test:broker-chunked-upload":"bun run packages/typescript/broker/test/broker/test-chunked-upload.ts","test:broker-staged-prompt-attachments":"bun run packages/typescript/broker/test/broker/test-staged-prompt-attachments.ts","test:broker-artifact-store-health":"bun run packages/typescript/broker/test/broker/test-artifact-store-health.ts","test:broker-inbox-retention":"bun run packages/typescript/broker/test/broker/test-inbox-retention.ts","test:broker-workspace-file-api":"bun run packages/typescript/broker/test/broker/test-workspace-file-api.ts","test:release-supply-chain":"bun run scripts/broker/tests/release/test-release-supply-chain.ts && bun run test:release-checkpoint-lifecycle && bun run test:release-web-sidecar && bun run test:release-candidate-verifier","test:release-checkpoint-lifecycle":"bun run scripts/release/tests/test-release-checkpoint-lifecycle.ts","test:release-web-sidecar":"bun run scripts/broker/tests/release/test-release-web-sidecar.ts","test:release-candidate-verifier":"bun run scripts/broker/tests/release/test-release-candidate-verifier.ts","test:broker-update-contract":"bun run packages/typescript/broker/test/broker/test-update-contract.ts","test:broker-real-host-evidence":"bun run scripts/broker/tests/host/test-real-host-evidence.ts","test:broker-diff-body-reference":"bun run packages/typescript/broker/test/broker/test-diff-body-reference.ts","test:broker-diff-reference-wire":"bun run packages/typescript/broker/test/broker/test-diff-reference-wire.ts","test:broker-echo-correlation":"bun run packages/typescript/broker/test/broker/test-app-send-echo-correlation.ts","test:broker-drive-restore":"bun run packages/typescript/broker/test/broker/test-drive-restore-arbitration.ts","test:broker-fork-agent-owned":"bun run packages/typescript/broker/test/broker/test-fork-agent-owned.ts","test:broker-request-resolution":"bun run packages/typescript/broker/test/broker/test-request-resolution-hygiene.ts","test:broker-attention-bulk":"bun run packages/typescript/broker/test/broker/test-attention-bulk-dismiss.ts","test:broker-draft-durability":"bun run packages/typescript/broker/test/broker/test-draft-durability.ts","test:broker-draft-sync-wire":"bun run packages/typescript/broker/test/broker/test-draft-sync.ts","test:broker-draft-two-client-wire":"bun run packages/typescript/broker/test/broker/test-draft-two-client-wire.ts","test:broker-kimi-cross-client-join":"bun run packages/typescript/broker/test/broker/test-kimi-cross-client-join.ts","test:broker-claude-cross-client-join":"bun run packages/typescript/broker/test/broker/test-claude-cross-client-join.ts","test:broker-agy-cross-client-join":"bun run packages/typescript/broker/test/broker/test-agy-cross-client-join.ts","test:broker-reasonix-cross-client-join":"bun run packages/typescript/broker/test/broker/test-reasonix-cross-client-join.ts","test:broker-protocol-journal":"bun run packages/typescript/broker/test/broker/test-protocol-journal.ts","test:broker-history-page-cache":"bun run packages/typescript/broker/test/broker/test-history-page-cache.ts","test:broker-resync-serialization":"bun run packages/typescript/broker/test/broker/test-resync-serialization.ts","test:broker-history-paging":"bun run packages/typescript/broker/test/broker/test-history-page-wire.ts","test:broker-codex-history-paging":"bun run packages/typescript/broker/test/broker/test-codex-history-page-wire.ts","test:codex-history-paging-large":"bun run packages/typescript/broker/test/codex/history-paging-large.ts","test:codex-history-refusal-tail":"bun run packages/typescript/broker/test/codex/history-refusal-tail.ts","test:codex-history-capture-liveness":"bun run packages/typescript/broker/test/codex/history-capture-liveness.ts","test:broker-history-refusal-wire":"bun run packages/typescript/broker/test/broker/test-history-refusal-wire.ts","test:broker-attach-identity":"bun run packages/typescript/broker/test/broker/test-attach-message-identity.ts","test:broker-restart-identity":"bun run packages/typescript/broker/test/broker/test-restart-message-identity.ts","test:codex-rollout-mapping":"bun run packages/typescript/broker/test/codex/rollout.ts","test:codex-tui-presence":"bun run packages/typescript/adapters/codex/test/test-codex-tui-presence.ts && bun run packages/typescript/adapters/codex/test/test-codex-macos-tui-presence.ts","test:claude-transcript-mapping":"bun run packages/typescript/adapters/claude/test/test-claude-jsonl.ts","test:claude-artifacts":"bun run packages/typescript/adapters/claude/test/test-claude-artifacts.ts","test:claude-driven-queue":"bun run packages/typescript/adapters/claude/test/test-claude-driven-queue.ts","test:claude-roster-subagents":"bun run packages/typescript/adapters/claude/test/test-claude-roster-subagents.ts","test:claude-recency":"bun run packages/typescript/adapters/claude/test/test-claude-recency.ts","test:opencode-api-lineage":"bun run packages/typescript/adapters/opencode/test/test-opencode-api-lineage.ts","test:opencode-message-identity":"bun run packages/typescript/adapters/opencode/test/test-opencode-message-identity.ts","test:opencode-completion-fence":"bun run packages/typescript/broker/test/opencode/test-opencode-completion-fence.ts","test:opencode-file-changes":"bun run packages/typescript/adapters/opencode/test/test-opencode-file-changes.ts","test:opencode-retry-detail":"bun run packages/typescript/adapters/opencode/test/test-opencode-retry-detail.ts","test:opencode-status-reconcile":"bun run packages/typescript/adapters/opencode/test/test-opencode-status-reconcile.ts","test:opencode-status-live":"bun run packages/typescript/adapters/opencode/test/test-opencode-status-live.ts","test:kimi-mapping":"bun run packages/typescript/adapters/kimi/test/test-kimi-mapping.ts","test:kimi-server":"bun run packages/typescript/adapters/kimi/test/test-kimi-server.ts","test:kimi-observe":"bun run packages/typescript/adapters/kimi/test/test-kimi-observe.ts","test:kimi-drive":"bun run packages/typescript/adapters/kimi/test/test-kimi-drive.ts","test:kimi-diagnostics":"bun run packages/typescript/adapters/kimi/test/test-kimi-diagnostics.ts","test:kimi-roster-subagents":"bun run packages/typescript/adapters/kimi/test/test-kimi-roster-subagents.ts","test:kimi-attach-priming":"bun run packages/typescript/broker/test/kimi/test-kimi-attach-priming.ts","test:kimi-drive-authority":"bun run packages/typescript/broker/test/kimi/test-kimi-drive-authority.ts","test:broker-fatal-startup-exit":"bun run packages/typescript/broker/test/broker/test-fatal-startup-exit.ts","test:kimi-registration-gate":"bun run packages/typescript/broker/test/kimi/test-kimi-registration-gate.ts","test:dsh-mapping":"bun run packages/typescript/adapters/dsh/test/test-dsh-mapping.ts","test:dsh-server":"bun run packages/typescript/adapters/dsh/test/test-dsh-server.ts","test:dsh-observe":"bun run packages/typescript/adapters/dsh/test/test-dsh-observe.ts","test:dsh-drive":"bun run packages/typescript/adapters/dsh/test/test-dsh-drive.ts","test:dsh-diagnostics":"bun run packages/typescript/adapters/dsh/test/test-dsh-diagnostics.ts","test:dsh-attach-priming":"bun run packages/typescript/broker/test/dsh/test-dsh-attach-priming.ts","test:dsh-registration-gate":"bun run packages/typescript/broker/test/dsh/test-dsh-registration-gate.ts","test:dsh-attachments":"bun run packages/typescript/broker/test/dsh/test-dsh-attachments.ts","test:dsh-create-generation-race":"bun run packages/typescript/broker/test/dsh/test-dsh-create-generation-race.ts","test:dsh-adapter":"bun run test:dsh-server && bun run test:dsh-mapping && bun run test:dsh-observe && bun run test:dsh-drive && bun run test:dsh-diagnostics && bun run test:dsh-attach-priming && bun run test:dsh-registration-gate && bun run test:dsh-attachments && bun run test:dsh-create-generation-race","test:agy-store":"bun run packages/typescript/adapters/antigravity/test/test-agy-store.ts","test:agy-mapping":"bun run packages/typescript/adapters/antigravity/test/test-agy-mapping.ts","test:agy-observe":"bun run packages/typescript/adapters/antigravity/test/test-agy-observe.ts","test:agy-drive":"bun run packages/typescript/adapters/antigravity/test/test-agy-drive.ts","test:agy-identity":"bun run packages/typescript/adapters/antigravity/test/test-agy-identity.ts","test:agy-registration-gate":"bun run packages/typescript/broker/test/agy/test-agy-registration-gate.ts","test:acp-client":"bun run packages/typescript/acp-client/test/test-acp-client.ts","test:adapter-capability-contract":"bun run packages/typescript/broker/test/broker/test-adapter-capability-contract.ts","test:reasonix-store":"bun run packages/typescript/adapters/reasonix/test/test-reasonix-store.ts","test:reasonix-mapping":"bun run packages/typescript/adapters/reasonix/test/test-reasonix-mapping.ts","test:reasonix-observe":"bun run packages/typescript/adapters/reasonix/test/test-reasonix-observe.ts","test:reasonix-drive":"bun run packages/typescript/adapters/reasonix/test/test-reasonix-drive.ts","test:reasonix-identity":"bun run packages/typescript/adapters/reasonix/test/test-reasonix-identity.ts","test:reasonix-registration-gate":"bun run packages/typescript/broker/test/reasonix/test-reasonix-registration-gate.ts","test:reasonix-adapter":"bun run test:reasonix-store && bun run test:reasonix-mapping && bun run test:reasonix-observe && bun run test:reasonix-drive && bun run test:reasonix-identity && bun run test:reasonix-registration-gate && bun run test:broker-reasonix-cross-client-join","test:grok-store":"bun run packages/typescript/adapters/grok/test/test-grok-store.ts","test:grok-mapping":"bun run packages/typescript/adapters/grok/test/test-grok-mapping.ts","test:grok-observe":"bun run packages/typescript/adapters/grok/test/test-grok-observe.ts","test:grok-drive":"bun run packages/typescript/adapters/grok/test/test-grok-drive.ts","test:grok-identity":"bun run packages/typescript/adapters/grok/test/test-grok-identity.ts","test:grok-diagnostics":"bun run packages/typescript/adapters/grok/test/test-grok-diagnostics.ts","test:grok-registration-gate":"bun run packages/typescript/broker/test/grok/test-grok-registration-gate.ts","test:broker-grok-cross-client-join":"bun run packages/typescript/broker/test/broker/test-grok-cross-client-join.ts","test:grok-adapter":"bun run test:grok-store && bun run test:grok-mapping && bun run test:grok-observe && bun run test:grok-drive && bun run test:grok-identity && bun run test:grok-diagnostics && bun run test:grok-registration-gate && bun run test:broker-grok-cross-client-join","test:cline-store":"bun run packages/typescript/adapters/cline/test/test-cline-store.ts","test:cline-mapping":"bun run packages/typescript/adapters/cline/test/test-cline-mapping.ts","test:cline-observe":"bun run packages/typescript/adapters/cline/test/test-cline-observe.ts","test:cline-drive":"bun run packages/typescript/adapters/cline/test/test-cline-drive.ts","test:cline-hub":"bun run packages/typescript/adapters/cline/test/test-cline-hub.ts","test:cline-diagnostics":"bun run packages/typescript/adapters/cline/test/test-cline-diagnostics.ts","verify:cline-launch-surface":"bun run scripts/adapters/verify-cline-launch-surface.ts","verify:grok-acp-contract":"bun run scripts/adapters/compare-grok-acp-contract.ts","test:cline-owner-port-refusal":"bun run packages/typescript/broker/test/cline/test-cline-owner-port-refusal.ts","test:reported-product-version":"bun run packages/typescript/adapter-api/test/test-reported-product-version.ts","test:cline-registration-gate":"bun run packages/typescript/broker/test/cline/test-cline-registration-gate.ts","test:cline-adapter":"bun run test:cline-store && bun run test:cline-mapping && bun run test:cline-observe && bun run test:cline-drive && bun run test:cline-hub && bun run test:cline-diagnostics && bun run test:cline-registration-gate","test:kilocode-store":"bun run packages/typescript/adapters/kilocode/test/test-kilocode-store.ts","test:kilocode-mapping":"bun run packages/typescript/adapters/kilocode/test/test-kilocode-mapping.ts","test:kilocode-observe":"bun run packages/typescript/adapters/kilocode/test/test-kilocode-observe.ts","test:kilocode-drive":"bun run packages/typescript/adapters/kilocode/test/test-kilocode-drive.ts","test:kilocode-diagnostics":"bun run packages/typescript/adapters/kilocode/test/test-kilocode-diagnostics.ts","test:kilocode-registration-gate":"bun run packages/typescript/broker/test/kilocode/test-kilocode-registration-gate.ts","test:kilocode-adapter":"bun run test:kilocode-store && bun run test:kilocode-mapping && bun run test:kilocode-observe && bun run test:kilocode-drive && bun run test:kilocode-diagnostics && bun run test:kilocode-registration-gate","test:pi-tool-result":"bun run packages/typescript/broker/test/pi/test-tool-result-enrich.ts","test:pi-runtime-readiness":"bun run packages/typescript/broker/test/pi/test-pi-runtime-readiness.ts","test:tool-semantics":"bun run packages/typescript/broker/test/broker/test-tool-semantics.ts","test:adapter-path-stamps":"bun run packages/typescript/broker/test/broker/test-adapter-path-stamps.ts","test:pi-bridge-reload":"bun run packages/typescript/broker/test/pi/test-pi-bridge-reload.ts","test:pi-bridge-shutdown":"bun run packages/typescript/broker/test/pi/test-bridge-shutdown-budget.ts","test:broker-roster-sweep-cache":"bun run packages/typescript/broker/test/broker/test-roster-sweep-cache.ts","test:broker-roster-stale-reconcile":"bun run packages/typescript/broker/test/broker/test-roster-stale-reconcile.ts","test:omp-discovery":"bun run packages/typescript/adapters/omp/test/test-omp-discovery.ts","test:omp-lifecycle":"bun run packages/typescript/adapters/omp/test/test-omp-lifecycle.ts","test:omp-bridge-asset":"bun run packages/typescript/adapters/omp/test/test-omp-bridge-asset.ts","test:omp-runtime-readiness":"bun run packages/typescript/adapters/omp/test/test-omp-runtime-readiness.ts","test:omp-protocol-parity":"bun run packages/typescript/adapters/omp/test/test-omp-protocol-parity.ts","test:omp-bridge":"bun run packages/typescript/broker/test/omp/test-omp-bridge.ts","test:claude-hooks":"bun run packages/typescript/broker/test/claude/test-claude-hooks.ts","test:claude-hooks-surface":"bun run packages/typescript/broker/test/claude/test-claude-hooks-surface.ts","test:broker:deterministic":"bun run scripts/broker/acceptance/deterministic-broker.ts","evidence:broker-real-host":"bun run scripts/broker/acceptance/real-host-evidence.ts","release:assemble":"bun run scripts/broker/release/assemble-release.ts","release:package-web":"bun run scripts/broker/release/package-web-sidecar.ts","release:verify-pair":"bun run scripts/broker/release/verify-candidate-pair.ts","verification:windows-broker":"bun run scripts/verification/windows-broker.ts","verification:validate":"bun run scripts/verification/validate-verification-graph.ts","verification:generate-completeness-anchor":"bun run scripts/verification/generate-verification-completeness-anchor.ts","verification:isolation-audit":"bun run scripts/verification/audit-suite-isolation.ts --json output/verification/suite-isolation.json","verification:isolation-check":"bun run scripts/verification/audit-suite-isolation.ts --check","verification:check":"bun run verification:validate && bun run test:verification-graph && bun run test:changed-gates && bun run test:fixture-isolation && bun run test:supervised-process && bun run verification:isolation-check","test:verification-graph":"bun run scripts/verification/tests/test-verification-graph.ts","test:changed-gates":"bun run scripts/verification/tests/test-changed-gates.ts","test:browser-broker-overlap":"bun run scripts/verification/tests/stress-browser-broker-overlap.ts","test:fixture-isolation":"bun run scripts/verification/tests/test-fixture-isolation.ts","test:supervised-process":"bun run scripts/verification/tests/test-supervised-process.ts","release:checkpoint":"bun run scripts/release/verify-release-checkpoint.ts",typecheck:"bunx tsc --build","check:broker-surface":"bun run scripts/broker/check-broker-surface.ts","capabilities:check":"bun run scripts/broker/capabilities/check.ts --agent opencode --mode fixture","capabilities:drift":"bun run scripts/broker/capabilities/check-discovery-drift.ts --agent opencode --openapi scripts/broker/capabilities/fixtures/opencode/openapi.synthetic-drift.json --write-output output/capabilities/opencode/fixture-drift","capabilities:pi-check":"bun run scripts/broker/capabilities/check.ts --agent pi --mode fixture","capabilities:pi-drift":"bun run scripts/broker/capabilities/check-discovery-drift.ts --agent pi --rpc-types scripts/broker/capabilities/fixtures/pi/rpc-types.synthetic-drift.d.ts --write-output output/capabilities/pi/fixture-drift","capabilities:codex-check":"bun run scripts/broker/capabilities/check.ts --agent codex --mode fixture","capabilities:codex-drift":"bun run scripts/broker/capabilities/check-discovery-drift.ts --agent codex --methods scripts/broker/capabilities/fixtures/codex/appserver-methods.synthetic-drift.json --write-output output/capabilities/codex/fixture-drift","capabilities:claude-check":"bun run scripts/broker/capabilities/check.ts --agent claude --mode fixture","capabilities:tool-branches":"bun run scripts/broker/capabilities/check-no-tool-branches.ts --write-output output/capabilities/tool-branches","test:capabilities":"bun run packages/typescript/broker/test/capabilities/test-capabilities.ts","trace:real-agent-p0":"bash scripts/broker/tests_traces/run-real-agent-p0.sh","trace:opencode-reconnect":"COSYNCING_OPENCODE_RECONNECT_TRACE=1 bun run scripts/broker/tests_traces/opencode-reconnect-trace.ts"},devDependencies:{"@types/bun":"latest","@types/qrcode":"1.5.6","playwright-core":"1.61.1",typescript:"^5.6.0"},engines:{bun:">=1.3.8"},dependencies:{"@clack/prompts":"1.7.0",qrcode:"1.5.4"}}});var vw;var gw=f(()=>{vw={schemaVersion:1,product:"cosyncing",revisions:[{revision:5,surfaceHash:"fnv1a32:5c84fbb8",minimumClientRevision:0,clientMinimumBrokerRevision:2,change:"Bounded backward transcript paging and append-aware native history identity."},{revision:6,surfaceHash:"fnv1a32:095fc995",minimumClientRevision:0,clientMinimumBrokerRevision:2,change:"Retriable native-source churn, structured interruption, and history-reset semantics."},{revision:7,surfaceHash:"fnv1a32:fcd91f68",minimumClientRevision:0,clientMinimumBrokerRevision:2,change:"Bounded inline and opaque-staged multi-attachment prompt transactions."},{revision:8,surfaceHash:"fnv1a32:eab8e93f",minimumClientRevision:0,clientMinimumBrokerRevision:2,change:"Pre-session model catalogs and exact optional model selection for immediate and scheduled creation."},{revision:9,surfaceHash:"fnv1a32:eab8e93f",minimumClientRevision:0,clientMinimumBrokerRevision:2,change:"Optional normalized tool semantics for command, file-read, search, and web-lookup families."},{revision:10,surfaceHash:"fnv1a32:eab8e93f",minimumClientRevision:0,clientMinimumBrokerRevision:2,change:"Optional bounded large-history replay fields: shortened-body marking on model-output/thinking/user-message, a bounded-tail-only snapshot sink declaration, skipped-record reporting on a capture, and snapshot-sink state-authority suppression after accepted messages settle."},{revision:11,surfaceHash:"fnv1a32:53636b2a",minimumClientRevision:0,clientMinimumBrokerRevision:2,change:"Stable SESSION_CREATE_TEMPORARILY_UNAVAILABLE error code for bounded agent-startup readiness failures."},{revision:12,surfaceHash:"fnv1a32:f2eb77a8",minimumClientRevision:0,clientMinimumBrokerRevision:2,change:"Stable DRIVE_OWNERSHIP_UNKNOWN and DRIVE_NATIVE_SESSION_UNRESUMABLE codes for distinct reason-tagged Drive refusal feedback."},{revision:13,surfaceHash:"fnv1a32:095f3c3c",minimumClientRevision:0,clientMinimumBrokerRevision:2,change:"Session-level owner projection, socket-local mutation authority, revision-conditional cross-client Drive joins, and acknowledged terminal handoff."},{revision:14,surfaceHash:"fnv1a32:095f3c3c",minimumClientRevision:0,clientMinimumBrokerRevision:2,change:"IntegrationKind gains http-websocket for Kimi Code, plus an unknown fallback member so a client degrades one unrecognized roster row instead of failing the whole roster decode."},{revision:15,surfaceHash:"fnv1a32:095f3c3c",minimumClientRevision:0,clientMinimumBrokerRevision:2,change:"SessionDriveControl gains handoffAvailable, takeoverAvailable and takeoverMode so control availability is declared as data instead of inferred, plus an unknown AttachMode fallback so an unrecognized mode degrades to read-only rather than aborting a session decode."},{revision:16,surfaceHash:"fnv1a32:eff55ab5",minimumClientRevision:16,clientMinimumBrokerRevision:15,change:"Authenticated clients exchange header credentials for single-use WebSocket authorization tickets through /api/ws-auth-tickets; long-lived query credentials are no longer accepted.",compatibilityChange:"The broker requires revision 16 clients because revision 15 cannot acquire WebSocket authorization tickets. The revision 16 client supports the revision 15 query-credential broker only for the client-first rollout, and refuses older brokers before placing a long-lived credential in a URL."},{revision:17,surfaceHash:"fnv1a32:3ff9de78",minimumClientRevision:17,clientMinimumBrokerRevision:16,change:"Authenticated artifact downloads are principal-bound, and clients can refresh a short-lived artifact ticket through /api/sessions/{tool}/{session}/artifact/{artifact}/ticket.",compatibilityChange:"The broker requires revision 17 clients because revision 16 clients do not attach their active credential to artifact downloads. The revision 17 client remains compatible with revision 16 brokers during the client-first rollout."},{revision:18,surfaceHash:"fnv1a32:4531a029",minimumClientRevision:17,clientMinimumBrokerRevision:16,change:"Owners can inspect and change the authenticated HTTP workspace-browsing exposure gate through /api/broker/features/workspace-browsing; enabling requires explicit remote-file-access confirmation and a broker restart. Model catalogs may advertise a human-facing provider/profile label while retaining the exact native provider identity. Permission requests may advertise a distinct persistent-rule approval decision."},{revision:19,surfaceHash:"fnv1a32:4531a029",minimumClientRevision:17,clientMinimumBrokerRevision:16,change:"First-party clients add complete omp roster identity, agent color, and New Session support. Brokers use revision 19 as omp's visibility floor so revision-18 clients do not receive a second-class omp row."},{revision:20,surfaceHash:"fnv1a32:4195eec0",minimumClientRevision:17,clientMinimumBrokerRevision:16,change:"Clients can read an aggregated, read-only usage report for one date window through /api/tokdash/report. The broker projects Tokdash's usage, active-time and composite insights scans into one DTO by explicit field selection, so prompt text (display_name) cannot cross the wire, and serves the period token total beside the project facet rows so a client can reconcile the share of tokens the facet does not cover. Project names are owner-only: an observe-scoped principal is served the same report with the project facet withheld. The requested window is bounded in span and its upstream scans are capped in concurrency. Adding the route moves the registry surface hash; the route is additive and raises no minimum. Note that 18 is the revision shipped clients advertise, so a revision-19-or-later client ships before this broker."},{revision:21,surfaceHash:"fnv1a32:4195eec0",minimumClientRevision:17,clientMinimumBrokerRevision:16,change:"The usage report carries the Tokdash that produced it: its running version, the minimum version the report is built against, and whether the running build is below it. A Tokdash older than that floor publishes no window verdict at all, which is not the same fact as a current one refusing the requested period, and without this block a client cannot tell the two apart and blames the period. No route, frame kind, message type or error code changes, so the surface hash holds and no minimum moves; a revision-20 client that never reads the block behaves exactly as before."},{revision:22,surfaceHash:"fnv1a32:caf34ce7",minimumClientRevision:17,clientMinimumBrokerRevision:16,change:"Creation requests may carry an exact adapter-advertised permission mode, agents expose a pre-session mode catalog route, roster rows distinguish display rename from native rename, adapter-authored SessionInfo snapshots are decoded strictly before publication, and OMP native-version attestation failures carry a stable typed error code."},{revision:23,surfaceHash:"fnv1a32:caf34ce7",minimumClientRevision:17,clientMinimumBrokerRevision:16,change:"The /api/sessions roster carries `complete`. The broker now bounds how long a caller waits for a slow discovery leg and answers with the legs that have landed, so for the first time a roster can be served that is not the whole roster; a client that reads every roster as an authoritative replacement would render the shortfall as sessions that do not exist. `complete` is false for a sweep still running and for a settled sweep that did not read every adapter -- a leg abandoned at its budget, or one that threw. Row count does not enter into it: such a leg returns the carry of the last sweep that DID read the adapter, which cannot mention anything that appeared since. Measured on a real installation as an agent absent from its own roster while registered and creatable. The field adds no route, frame kind, message type or error code, so the surface hash is unchanged from revision 22; the number moves because the DTO did. The minimum client revision stays at 17, and the broker enforces what that claim requires: the EARLY answer -- short because the sweep is still running -- is served only to a caller declaring revision 23 or later, so an older client waits for the sweep exactly as it did against a revision-22 broker. A settled sweep that lost a leg is still served to everyone, because that condition predates this revision and persists while the adapter is down; removal deltas are withheld for the lost adapter for every client alike, since deltas carry no completeness of their own."},{revision:24,surfaceHash:"fnv1a32:caf34ce7",minimumClientRevision:17,clientMinimumBrokerRevision:16,change:'question-request carries an optional `blocking` flag so an adapter can surface an asynchronous question (Codex delivery:"async" agent items) that stays visible and answerable without forcing the session into needs-input; omission reproduces the pre-24 blocking behavior. The answer transport stays adapter-owned: a native RPC request is answered with its RPC response, an async question is steered in as user input. The flag adds no route, frame kind, message type or error code, so the surface hash is unchanged from revision 22; the number moves because the DTO did. The minimum client revision stays at 17: an older client ignores the field and renders the same card, and only the broker reads the flag.'}]}});import{spawnSync as _50}from"child_process";import{accessSync as M50,constants as R50,statSync as k50}from"fs";import{dirname as Wx0,isAbsolute as T50,resolve as hq}from"path";function cw($){return typeof $==="string"&&E50.includes($)}function Zj($,Q,Z){if(typeof $!=="string"||$.trim().length===0)throw new J2(Z,`${Q} path is empty`);if(/[\0\r\n]/.test($))throw new J2(Z,`${Q} path contains control characters`);if(!T50($))throw new J2(Z,`${Q} path must be absolute, received ${JSON.stringify($)}`);return hq($)}function mw($,Q,Z){let J;try{J=k50($)}catch{throw new J2(Z,`${Q} is missing: ${$}`)}if(!J.isFile())throw new J2(Z,`${Q} is not a regular file: ${$}`);try{M50($,R50.X_OK)}catch{throw new J2(Z,`${Q} is not executable: ${$}`)}return $}function yq($){let Q=/^(\d+)\.(\d+)\.(\d+)(?:[-+][0-9A-Za-z.+-]*)?$/.exec($.trim());if(!Q)return;return[Number(Q[1]),Number(Q[2]),Number(Q[3])]}function gq($,Q){let Z=yq($),J=yq(Q);if(!Z||!J)return!1;for(let X=0;X<3;X+=1)if(Z[X]!==J[X])return Z[X]>J[X];return!0}function pw($){let Q=_50($,["--revision"],{timeout:S50,maxBuffer:w50,encoding:"utf8",windowsHide:!0,stdio:["ignore","pipe","ignore"]});if(Q.error||Q.signal||Q.status!==0)throw new J2("bun-runtime-probe-failed",`${$} did not answer \`--revision\`, so it could not be confirmed as a Bun runtime`);let Z=(Q.stdout??"").trim().split(/\r?\n/,1)[0]?.trim()??"";if(!yq(Z))throw new J2("bun-runtime-unrecognized",`${$} is executable but did not report a Bun version, so it is not a Bun runtime`);return Z}function uw($,Q=pw){let Z=Q($);if(!gq(Z,Jj))throw new J2("bun-runtime-outdated",`${$} reports Bun ${Z}, but this build requires Bun ${Jj} or newer`);return Z}function x50($){let Q=$.override?.trim(),Z=Q?mw(Zj(Q,`${FX} runtime`,"bun-runtime-override-invalid"),`${FX} runtime`,"bun-runtime-override-unusable"):mw(Zj($.execPath,"Bun runtime","bun-runtime-invalid"),"Bun runtime","bun-runtime-unusable"),X=$.runningVersion&&hq(Z)===hq($.execPath)?uw(Z,()=>$.runningVersion):uw(Z,$.probe??pw);return{path:Z,version:X}}function b50($){let Q=$.distribution!=="source";if($.distribution==="native")return{distribution:"native",applicationPath:Zj($.execPath,"native application","native-application-invalid"),packaged:Q};let Z=$.distribution==="source"?$.sourceEntry:$.mainPath;if(!Z)throw new J2("application-entry-unresolved","the running JavaScript application could not identify its own entry file");let J=Zj(Z,"application","application-path-invalid");try{let X=x50({execPath:$.execPath,...$.runtimeOverride?{override:$.runtimeOverride}:{},...$.runningRuntimeVersion?{runningVersion:$.runningRuntimeVersion}:{},...$.runtimeProbe?{probe:$.runtimeProbe}:{}});return{distribution:$.distribution,applicationPath:J,runtimePath:X.path,runtimeVersion:X.version,packaged:Q}}catch(X){if(!(X instanceof J2))throw X;return{distribution:$.distribution,applicationPath:J,runtimeProblem:{detailCode:X.detailCode,message:X.message},packaged:Q}}}function f50($){if($.runtimePath)return $.runtimePath;if($.distribution==="native")throw new J2("native-distribution-has-no-external-runtime","a compiled native build embeds its runtime and has none to record");throw new J2($.runtimeProblem?.detailCode??"bun-runtime-unresolved",$.runtimeProblem?.message??"the Bun runtime that must execute cosyncing could not be resolved")}function pQ($,Q,Z=process.env){let J=Z[FX]?.trim();return b50({distribution:$,execPath:process.execPath,mainPath:Bun.main,sourceEntry:Q,runningRuntimeVersion:Bun.version,...J?{runtimeOverride:J}:{}})}function vq($,Q=[]){return $.distribution==="native"?[$.applicationPath,...Q]:[f50($),$.applicationPath,...Q]}var E50,J2,FX="COSYNCING_BUN_BIN",Jj="1.3.8",Gx0,S50=5000,w50=4096;var e6=f(()=>{E50=Object.freeze(["source","bun-js","bootstrap-js","native"]);J2=class J2 extends Error{detailCode;constructor($,Q){super(Q);this.detailCode=$;this.name="ApplicationIdentityError"}};Gx0=Object.freeze({"linux-x64":Object.freeze([{asset:"bun-linux-x64.zip",sha256:"0322b17f0722da76a64298aad498225aedcbf6df1008a1dee45e16ecb226a3f1"},{asset:"bun-linux-x64-baseline.zip",sha256:"bbe4632ac03d7495177d542ecefa8f21f9849273106525f6bb13172ec8e4ab2c"},{asset:"bun-linux-x64-musl.zip",sha256:"a810b5083a830596cff3715402371917a200940efdeed6189bcde191e79d4633"},{asset:"bun-linux-x64-musl-baseline.zip",sha256:"f05311fc12304ff8eaca136fc934eede6728055ba3d00cdb7e7dac394853f159"}]),"linux-arm64":Object.freeze([{asset:"bun-linux-aarch64.zip",sha256:"4e9deb6814a7ec7f68725ddd97d0d7b4065bcda9a850f69d497567e995a7fa33"},{asset:"bun-linux-aarch64-musl.zip",sha256:"76dddebfd8c011c8b774991eb8ba47da770e4ce06ddc2b045aa0d659ef5fbe44"}]),"darwin-arm64":Object.freeze([{asset:"bun-darwin-aarch64.zip",sha256:"672a0a9a7b744d085a1d2219ca907e3e26f5579fca9e783a9510a4f98a36212f"}]),"windows-x64":Object.freeze([{asset:"bun-windows-x64.zip",sha256:"4c0a82866424e23d1bdaa9517307ec2f143ed513c15546dba0b859c6c55c47c7"},{asset:"bun-windows-x64-baseline.zip",sha256:"74f4dad7b4873ee70f63add9918400334e31acab9ba3fce9ef9906d96646e231"}])})});function uq($,Q){return typeof $==="string"&&$.trim()?$.trim():Q}function h50($){if(typeof $!=="string"||!$.trim())return Xj;try{let Q=JSON.parse($);return JSON.stringify(Q)===JSON.stringify(Xj)?Q:Xj}catch{return Xj}}function y50($){if(typeof $!=="string"||!$.trim())return mq;try{let Q=JSON.parse($);if(!Q||typeof Q!=="object"||Array.isArray(Q)||!Number.isSafeInteger(Q.revision)||!Number.isSafeInteger(Q.minimumClientRevision)||typeof Q.surfaceHash!=="string"||!/^fnv1a32:[a-f0-9]{8}$/.test(Q.surfaceHash))return mq;return Q}catch{return mq}}function Gj($){return[$.version,$.commit,$.buildDate??"no-build-date",$.dirty===null?"dirty-unknown":$.dirty?"dirty":"clean",$.target,$.distribution].join("/")}var dw=2,Xj,Wj,mq,I50,lw,v1;var Yj=f(()=>{hw();gw();e6();Xj=Object.freeze({buildInfo:dw,brokerConfig:2,setupState:1,installState:1,durableStores:Object.freeze({config:2,"broker-instance":2,setup:1,install:1,schedules:2,attention:1,peers:2,"wake-registrations":2,artifacts:1}),releaseManifest:1,upgradeJournal:1,brokerContract:24}),Wj=vw.revisions.at(-1);if(!Wj)throw Error("contract revision registry is empty");mq=Object.freeze({revision:Wj.revision,minimumClientRevision:Wj.minimumClientRevision,surfaceHash:Wj.surfaceHash});I50=`${process.platform}-${process.arch}`;lw=(()=>{let Q="bun-js".trim();return cw(Q)?Q:"source"})(),v1=Object.freeze({schemaVersion:dw,version:uq("0.5.9",yw.version),commit:uq("4ae80044c3f77ffd6cfc73bf4b1cde63f95cd5ca","development"),buildDate:(()=>{return"2026-09-19T01:51:15.658Z".trim()?"2026-09-19T01:51:15.658Z".trim():null})(),target:uq("universal",I50),distribution:lw,packaged:lw!=="source",dirty:!1,schemaVersions:h50('{"buildInfo":2,"brokerConfig":2,"setupState":1,"installState":1,"durableStores":{"config":2,"broker-instance":2,"setup":1,"install":1,"schedules":2,"attention":1,"peers":2,"wake-registrations":2,"artifacts":1},"releaseManifest":1,"upgradeJournal":1,"brokerContract":24}'),contract:y50('{"revision":24,"minimumClientRevision":17,"surfaceHash":"fnv1a32:caf34ce7"}')})});import{writeSync as g50}from"fs";function nw($,Q=1){try{g50(2,$.endsWith(`
|
|
3
|
+
var B50=Object.create;var{getPrototypeOf:O50,defineProperty:fq,getOwnPropertyNames:D50}=Object;var C50=Object.prototype.hasOwnProperty;var Iq=($,Q,Z)=>{Z=$!=null?B50(O50($)):{};let J=Q||!$||!$.__esModule?fq(Z,"default",{value:$,enumerable:!0}):Z;for(let X of D50($))if(!C50.call(J,X))fq(J,X,{get:()=>$[X],enumerable:!0});return J};var L0=($,Q)=>()=>(Q||$((Q={exports:{}}).exports,Q),Q.exports);var M5=($,Q)=>{for(var Z in Q)fq($,Z,{get:Q[Z],enumerable:!0,configurable:!0,set:(J)=>Q[Z]=()=>J})};var f=($,Q)=>()=>($&&(Q=$($=0)),Q);var p1=import.meta.require;var yw;var hw=f(()=>{yw={name:"cosyncing",version:"0.5.10",private:!0,packageManager:"bun@1.3.8",license:"Apache-2.0",type:"module",description:"cosyncing \u2014 view and drive CLI coding-agent sessions through your own broker.",workspaces:["packages/typescript/protocol","packages/typescript/adapter-api","packages/typescript/crypto","packages/typescript/transport","packages/typescript/transport-wire","packages/typescript/acp-client","packages/typescript/opencode-wire","packages/typescript/broker","packages/typescript/pi-engine","packages/typescript/adapters/*","apps/poc-ui"],scripts:{broker:"bun run packages/typescript/broker/src/cli/cli.ts broker --dev-bypass-first-run","broker:direct":"bun run packages/typescript/broker/src/main.ts",dev:"bun run --watch packages/typescript/broker/src/cli/cli.ts broker --dev-bypass-first-run","client:pub-get":"bun run scripts/client/run-client-command.ts flutter pub get","client:format":"bun run scripts/client/run-client-command.ts dart format --output=none --set-exit-if-changed lib test tool integration_test test_driver ../../packages/dart","client:analyze":"bun run scripts/client/run-client-command.ts flutter analyze","client:test":"bun run scripts/client/run-client-command.ts flutter test","client:test:contract":"bun run scripts/client/run-client-command.ts flutter test test/contract","client:build:web":"bun run scripts/client/build-web.ts","client:build:desktop":"bun run scripts/client/build-desktop.ts","client:build:android":"bun run scripts/client/build-android.ts","client:check":"bun run scripts/client/check.ts","test:desktop-build-command":"bun run scripts/client/tests/test-desktop-build-command.ts","test:client-release-policy":"bun run scripts/client/tests/test-client-release-policy.ts","client:profile-tests":"bun run scripts/client/profile-tests.ts",check:"bun run scripts/check.ts","check:changed":"bun run scripts/check.ts --changed","app:rebuild-restart":"bash scripts/dev/rebuild-restart-app.sh","test:web-static-cache":"bun run scripts/client/tests/test-web-static-cache.ts","test:web-update-handoff":"bun run scripts/client/tests/test-web-update-handoff.ts","test:web-startup-shell":"bun run client:build:web && node scripts/client/tests/test-startup-shell-browser.mjs","test:web-startup-shell:built":"node scripts/client/tests/test-startup-shell-browser.mjs","test:web-artifact-session-isolation":"bun run client:build:web && bun run test:web-artifact-session-isolation:built","test:web-artifact-session-isolation:built":"bun run scripts/client/tests/test-web-artifact-session-isolation.ts","test:web-browser:built":"bun run test:web-startup-shell:built && bun run test:web-artifact-session-isolation:built && bun run test:client-browser-platform","test:client-browser-platform":"bun run scripts/client/tests/run-client-browser-platform-tests.ts","test:web-client-upgrade":"bun run scripts/client/tests/test-web-client-upgrade-browser.ts","build:broker":"bun run scripts/broker/build-broker.ts","contract:export":"bun run scripts/broker/export-client-contract.ts","contract:generate":"bash scripts/contracts/check.sh --write","contract:check":"bash scripts/contracts/check.sh","contract:revision-check":"bun run scripts/contracts/check-revision-history.ts","test:contract-revision-history":"bun run scripts/contracts/test-revision-history.ts","ci:audit-workflows":"bash scripts/ci/audit-workflows.sh","test:docs-only-policy":"ruby scripts/ci/tests/test-docs-only-policy.rb","ci:check-public-tree":"ruby scripts/ci/check-public-tree.rb","test:public-tree-policy":"ruby scripts/ci/tests/test-public-tree-policy.rb","ci:check-boundaries":"bash scripts/ci/check-boundaries.sh","test:broker-cli":"bun run packages/typescript/broker/test/broker/test-cli.ts","test:broker-assets":"bun run packages/typescript/broker/test/broker/test-runtime-assets.ts","test:broker-application-identity":"bun run packages/typescript/broker/test/broker/test-application-identity.ts","test:broker-invocation":"bun run packages/typescript/broker/test/broker/test-invocation.ts","test:broker-npm-package":"bun run scripts/broker/tests/release/test-npm-package.ts","test:broker-web-origin":"bun run packages/typescript/broker/test/broker/test-web-origin.ts","test:broker-state":"bun run packages/typescript/broker/test/broker/test-state-security.ts","test:broker-install-ps1":"bun run scripts/broker/tests/release/test-install-ps1.ts","test:broker-windows-dacl":"bun run packages/typescript/broker/test/broker/test-windows-dacl.ts","test:broker-windows-process":"bun run packages/typescript/broker/test/broker/test-windows-process.ts","test:broker-windows-service":"bun run packages/typescript/broker/test/broker/test-windows-service-install.ts","test:broker-doctor":"bun run packages/typescript/broker/test/broker/test-doctor.ts","test:broker-doctor-real":"bun run scripts/broker/tests/host/test-doctor-real.ts","test:broker-setup":"bun run packages/typescript/broker/test/broker/test-transactional-setup.ts","test:broker-service":"bun run packages/typescript/broker/test/broker/test-service-lifecycle.ts","test:broker-pairing":"bun run packages/typescript/broker/test/broker/test-pairing.ts","test:broker-route-authorization":"bun run packages/typescript/broker/test/broker/test-route-authorization.ts","test:broker-tokdash-report":"bun run packages/typescript/broker/test/broker/test-tokdash-report.ts","test:broker-lifecycle":"bun run packages/typescript/broker/test/broker/test-broker-lifecycle.ts","test:broker-opencode-shim-symmetry":"bun run packages/typescript/broker/test/broker/test-opencode-shim-symmetry.ts","test:broker-opencode-shim-runtime":"bun run packages/typescript/broker/test/broker/test-opencode-shim-runtime.ts","test:broker-status-broadcast":"bun run packages/typescript/broker/test/broker/test-hub-status-broadcast.ts","test:broker-live-session-coherence":"bun run packages/typescript/broker/test/broker/test-live-session-coherence.ts","test:broker-roster-publication":"bun run packages/typescript/broker/test/broker/test-roster-publication-qualification.ts","test:broker-session-truth-conformance":"bun run packages/typescript/broker/test/broker/test-session-truth-conformance.ts","test:broker-roster-watcher-live":"bun run packages/typescript/broker/test/broker/test-roster-watcher-publication-live.ts","test:broker-model-session-creation":"bun run packages/typescript/broker/test/broker/test-model-session-creation.ts","test:broker-agent-create-readiness":"bun run packages/typescript/broker/test/broker/test-agent-create-readiness.ts && bun run packages/typescript/broker/test/broker/test-opencode-create-readiness-restart.ts","test:broker-roster-revision":"bun run packages/typescript/broker/test/broker/test-roster-revision.ts","test:broker-roster-window":"bun run packages/typescript/broker/test/broker/test-roster-http.ts","test:broker-adapter-discovery-bounds":"bun run packages/typescript/broker/test/broker/test-adapter-discovery-bounds.ts","test:broker-managed-host-ownership":"bun run packages/typescript/broker/test/broker/test-managed-host-ownership.ts","test:broker-sync-degraded-integration":"bun run packages/typescript/broker/test/broker/test-sync-degraded-integration.ts","test:broker-control-boundaries":"bun run packages/typescript/broker/test/broker/test-control-boundaries.ts","test:broker-artifact-session-isolation":"bun run packages/typescript/broker/test/broker/test-artifact-session-isolation.ts","test:broker-chunked-upload":"bun run packages/typescript/broker/test/broker/test-chunked-upload.ts","test:broker-staged-prompt-attachments":"bun run packages/typescript/broker/test/broker/test-staged-prompt-attachments.ts","test:broker-artifact-store-health":"bun run packages/typescript/broker/test/broker/test-artifact-store-health.ts","test:broker-inbox-retention":"bun run packages/typescript/broker/test/broker/test-inbox-retention.ts","test:broker-workspace-file-api":"bun run packages/typescript/broker/test/broker/test-workspace-file-api.ts","test:release-supply-chain":"bun run scripts/broker/tests/release/test-release-supply-chain.ts && bun run test:release-checkpoint-lifecycle && bun run test:release-web-sidecar && bun run test:release-candidate-verifier","test:release-checkpoint-lifecycle":"bun run scripts/release/tests/test-release-checkpoint-lifecycle.ts","test:release-web-sidecar":"bun run scripts/broker/tests/release/test-release-web-sidecar.ts","test:release-candidate-verifier":"bun run scripts/broker/tests/release/test-release-candidate-verifier.ts","test:broker-update-contract":"bun run packages/typescript/broker/test/broker/test-update-contract.ts","test:broker-real-host-evidence":"bun run scripts/broker/tests/host/test-real-host-evidence.ts","test:broker-diff-body-reference":"bun run packages/typescript/broker/test/broker/test-diff-body-reference.ts","test:broker-diff-reference-wire":"bun run packages/typescript/broker/test/broker/test-diff-reference-wire.ts","test:broker-echo-correlation":"bun run packages/typescript/broker/test/broker/test-app-send-echo-correlation.ts","test:broker-drive-restore":"bun run packages/typescript/broker/test/broker/test-drive-restore-arbitration.ts","test:broker-fork-agent-owned":"bun run packages/typescript/broker/test/broker/test-fork-agent-owned.ts","test:broker-request-resolution":"bun run packages/typescript/broker/test/broker/test-request-resolution-hygiene.ts","test:broker-attention-bulk":"bun run packages/typescript/broker/test/broker/test-attention-bulk-dismiss.ts","test:broker-draft-durability":"bun run packages/typescript/broker/test/broker/test-draft-durability.ts","test:broker-draft-sync-wire":"bun run packages/typescript/broker/test/broker/test-draft-sync.ts","test:broker-draft-two-client-wire":"bun run packages/typescript/broker/test/broker/test-draft-two-client-wire.ts","test:broker-kimi-cross-client-join":"bun run packages/typescript/broker/test/broker/test-kimi-cross-client-join.ts","test:broker-claude-cross-client-join":"bun run packages/typescript/broker/test/broker/test-claude-cross-client-join.ts","test:broker-agy-cross-client-join":"bun run packages/typescript/broker/test/broker/test-agy-cross-client-join.ts","test:broker-reasonix-cross-client-join":"bun run packages/typescript/broker/test/broker/test-reasonix-cross-client-join.ts","test:broker-protocol-journal":"bun run packages/typescript/broker/test/broker/test-protocol-journal.ts","test:broker-history-page-cache":"bun run packages/typescript/broker/test/broker/test-history-page-cache.ts","test:broker-resync-serialization":"bun run packages/typescript/broker/test/broker/test-resync-serialization.ts","test:broker-history-paging":"bun run packages/typescript/broker/test/broker/test-history-page-wire.ts","test:broker-codex-history-paging":"bun run packages/typescript/broker/test/broker/test-codex-history-page-wire.ts","test:codex-history-paging-large":"bun run packages/typescript/broker/test/codex/history-paging-large.ts","test:codex-history-refusal-tail":"bun run packages/typescript/broker/test/codex/history-refusal-tail.ts","test:codex-history-capture-liveness":"bun run packages/typescript/broker/test/codex/history-capture-liveness.ts","test:broker-history-refusal-wire":"bun run packages/typescript/broker/test/broker/test-history-refusal-wire.ts","test:broker-attach-identity":"bun run packages/typescript/broker/test/broker/test-attach-message-identity.ts","test:broker-restart-identity":"bun run packages/typescript/broker/test/broker/test-restart-message-identity.ts","test:codex-rollout-mapping":"bun run packages/typescript/broker/test/codex/rollout.ts","test:codex-tui-presence":"bun run packages/typescript/adapters/codex/test/test-codex-tui-presence.ts && bun run packages/typescript/adapters/codex/test/test-codex-macos-tui-presence.ts","test:claude-transcript-mapping":"bun run packages/typescript/adapters/claude/test/test-claude-jsonl.ts","test:claude-artifacts":"bun run packages/typescript/adapters/claude/test/test-claude-artifacts.ts","test:claude-driven-queue":"bun run packages/typescript/adapters/claude/test/test-claude-driven-queue.ts","test:claude-roster-subagents":"bun run packages/typescript/adapters/claude/test/test-claude-roster-subagents.ts","test:claude-recency":"bun run packages/typescript/adapters/claude/test/test-claude-recency.ts","test:opencode-api-lineage":"bun run packages/typescript/adapters/opencode/test/test-opencode-api-lineage.ts","test:opencode-message-identity":"bun run packages/typescript/adapters/opencode/test/test-opencode-message-identity.ts","test:opencode-completion-fence":"bun run packages/typescript/broker/test/opencode/test-opencode-completion-fence.ts","test:opencode-file-changes":"bun run packages/typescript/adapters/opencode/test/test-opencode-file-changes.ts","test:opencode-retry-detail":"bun run packages/typescript/adapters/opencode/test/test-opencode-retry-detail.ts","test:opencode-status-reconcile":"bun run packages/typescript/adapters/opencode/test/test-opencode-status-reconcile.ts","test:opencode-status-live":"bun run packages/typescript/adapters/opencode/test/test-opencode-status-live.ts","test:kimi-mapping":"bun run packages/typescript/adapters/kimi/test/test-kimi-mapping.ts","test:kimi-server":"bun run packages/typescript/adapters/kimi/test/test-kimi-server.ts","test:kimi-observe":"bun run packages/typescript/adapters/kimi/test/test-kimi-observe.ts","test:kimi-drive":"bun run packages/typescript/adapters/kimi/test/test-kimi-drive.ts","test:kimi-diagnostics":"bun run packages/typescript/adapters/kimi/test/test-kimi-diagnostics.ts","test:kimi-roster-subagents":"bun run packages/typescript/adapters/kimi/test/test-kimi-roster-subagents.ts","test:kimi-attach-priming":"bun run packages/typescript/broker/test/kimi/test-kimi-attach-priming.ts","test:kimi-drive-authority":"bun run packages/typescript/broker/test/kimi/test-kimi-drive-authority.ts","test:broker-fatal-startup-exit":"bun run packages/typescript/broker/test/broker/test-fatal-startup-exit.ts","test:kimi-registration-gate":"bun run packages/typescript/broker/test/kimi/test-kimi-registration-gate.ts","test:dsh-mapping":"bun run packages/typescript/adapters/dsh/test/test-dsh-mapping.ts","test:dsh-server":"bun run packages/typescript/adapters/dsh/test/test-dsh-server.ts","test:dsh-observe":"bun run packages/typescript/adapters/dsh/test/test-dsh-observe.ts","test:dsh-drive":"bun run packages/typescript/adapters/dsh/test/test-dsh-drive.ts","test:dsh-diagnostics":"bun run packages/typescript/adapters/dsh/test/test-dsh-diagnostics.ts","test:dsh-attach-priming":"bun run packages/typescript/broker/test/dsh/test-dsh-attach-priming.ts","test:dsh-registration-gate":"bun run packages/typescript/broker/test/dsh/test-dsh-registration-gate.ts","test:dsh-attachments":"bun run packages/typescript/broker/test/dsh/test-dsh-attachments.ts","test:dsh-create-generation-race":"bun run packages/typescript/broker/test/dsh/test-dsh-create-generation-race.ts","test:dsh-adapter":"bun run test:dsh-server && bun run test:dsh-mapping && bun run test:dsh-observe && bun run test:dsh-drive && bun run test:dsh-diagnostics && bun run test:dsh-attach-priming && bun run test:dsh-registration-gate && bun run test:dsh-attachments && bun run test:dsh-create-generation-race","test:agy-store":"bun run packages/typescript/adapters/antigravity/test/test-agy-store.ts","test:agy-mapping":"bun run packages/typescript/adapters/antigravity/test/test-agy-mapping.ts","test:agy-observe":"bun run packages/typescript/adapters/antigravity/test/test-agy-observe.ts","test:agy-drive":"bun run packages/typescript/adapters/antigravity/test/test-agy-drive.ts","test:agy-identity":"bun run packages/typescript/adapters/antigravity/test/test-agy-identity.ts","test:agy-registration-gate":"bun run packages/typescript/broker/test/agy/test-agy-registration-gate.ts","test:acp-client":"bun run packages/typescript/acp-client/test/test-acp-client.ts","test:adapter-capability-contract":"bun run packages/typescript/broker/test/broker/test-adapter-capability-contract.ts","test:reasonix-store":"bun run packages/typescript/adapters/reasonix/test/test-reasonix-store.ts","test:reasonix-mapping":"bun run packages/typescript/adapters/reasonix/test/test-reasonix-mapping.ts","test:reasonix-observe":"bun run packages/typescript/adapters/reasonix/test/test-reasonix-observe.ts","test:reasonix-drive":"bun run packages/typescript/adapters/reasonix/test/test-reasonix-drive.ts","test:reasonix-identity":"bun run packages/typescript/adapters/reasonix/test/test-reasonix-identity.ts","test:reasonix-registration-gate":"bun run packages/typescript/broker/test/reasonix/test-reasonix-registration-gate.ts","test:reasonix-adapter":"bun run test:reasonix-store && bun run test:reasonix-mapping && bun run test:reasonix-observe && bun run test:reasonix-drive && bun run test:reasonix-identity && bun run test:reasonix-registration-gate && bun run test:broker-reasonix-cross-client-join","test:grok-store":"bun run packages/typescript/adapters/grok/test/test-grok-store.ts","test:grok-mapping":"bun run packages/typescript/adapters/grok/test/test-grok-mapping.ts","test:grok-observe":"bun run packages/typescript/adapters/grok/test/test-grok-observe.ts","test:grok-drive":"bun run packages/typescript/adapters/grok/test/test-grok-drive.ts","test:grok-identity":"bun run packages/typescript/adapters/grok/test/test-grok-identity.ts","test:grok-diagnostics":"bun run packages/typescript/adapters/grok/test/test-grok-diagnostics.ts","test:grok-registration-gate":"bun run packages/typescript/broker/test/grok/test-grok-registration-gate.ts","test:broker-grok-cross-client-join":"bun run packages/typescript/broker/test/broker/test-grok-cross-client-join.ts","test:grok-adapter":"bun run test:grok-store && bun run test:grok-mapping && bun run test:grok-observe && bun run test:grok-drive && bun run test:grok-identity && bun run test:grok-diagnostics && bun run test:grok-registration-gate && bun run test:broker-grok-cross-client-join","test:cline-store":"bun run packages/typescript/adapters/cline/test/test-cline-store.ts","test:cline-mapping":"bun run packages/typescript/adapters/cline/test/test-cline-mapping.ts","test:cline-observe":"bun run packages/typescript/adapters/cline/test/test-cline-observe.ts","test:cline-drive":"bun run packages/typescript/adapters/cline/test/test-cline-drive.ts","test:cline-hub":"bun run packages/typescript/adapters/cline/test/test-cline-hub.ts","test:cline-diagnostics":"bun run packages/typescript/adapters/cline/test/test-cline-diagnostics.ts","verify:cline-launch-surface":"bun run scripts/adapters/verify-cline-launch-surface.ts","verify:grok-acp-contract":"bun run scripts/adapters/compare-grok-acp-contract.ts","test:cline-owner-port-refusal":"bun run packages/typescript/broker/test/cline/test-cline-owner-port-refusal.ts","test:reported-product-version":"bun run packages/typescript/adapter-api/test/test-reported-product-version.ts","test:cline-registration-gate":"bun run packages/typescript/broker/test/cline/test-cline-registration-gate.ts","test:cline-adapter":"bun run test:cline-store && bun run test:cline-mapping && bun run test:cline-observe && bun run test:cline-drive && bun run test:cline-hub && bun run test:cline-diagnostics && bun run test:cline-registration-gate","test:kilocode-store":"bun run packages/typescript/adapters/kilocode/test/test-kilocode-store.ts","test:kilocode-mapping":"bun run packages/typescript/adapters/kilocode/test/test-kilocode-mapping.ts","test:kilocode-observe":"bun run packages/typescript/adapters/kilocode/test/test-kilocode-observe.ts","test:kilocode-drive":"bun run packages/typescript/adapters/kilocode/test/test-kilocode-drive.ts","test:kilocode-diagnostics":"bun run packages/typescript/adapters/kilocode/test/test-kilocode-diagnostics.ts","test:kilocode-registration-gate":"bun run packages/typescript/broker/test/kilocode/test-kilocode-registration-gate.ts","test:kilocode-adapter":"bun run test:kilocode-store && bun run test:kilocode-mapping && bun run test:kilocode-observe && bun run test:kilocode-drive && bun run test:kilocode-diagnostics && bun run test:kilocode-registration-gate","test:pi-tool-result":"bun run packages/typescript/broker/test/pi/test-tool-result-enrich.ts","test:pi-runtime-readiness":"bun run packages/typescript/broker/test/pi/test-pi-runtime-readiness.ts","test:tool-semantics":"bun run packages/typescript/broker/test/broker/test-tool-semantics.ts","test:adapter-path-stamps":"bun run packages/typescript/broker/test/broker/test-adapter-path-stamps.ts","test:pi-bridge-reload":"bun run packages/typescript/broker/test/pi/test-pi-bridge-reload.ts","test:pi-bridge-shutdown":"bun run packages/typescript/broker/test/pi/test-bridge-shutdown-budget.ts","test:broker-roster-sweep-cache":"bun run packages/typescript/broker/test/broker/test-roster-sweep-cache.ts","test:broker-roster-stale-reconcile":"bun run packages/typescript/broker/test/broker/test-roster-stale-reconcile.ts","test:omp-discovery":"bun run packages/typescript/adapters/omp/test/test-omp-discovery.ts","test:omp-lifecycle":"bun run packages/typescript/adapters/omp/test/test-omp-lifecycle.ts","test:omp-bridge-asset":"bun run packages/typescript/adapters/omp/test/test-omp-bridge-asset.ts","test:omp-runtime-readiness":"bun run packages/typescript/adapters/omp/test/test-omp-runtime-readiness.ts","test:omp-protocol-parity":"bun run packages/typescript/adapters/omp/test/test-omp-protocol-parity.ts","test:omp-bridge":"bun run packages/typescript/broker/test/omp/test-omp-bridge.ts","test:claude-hooks":"bun run packages/typescript/broker/test/claude/test-claude-hooks.ts","test:claude-hooks-surface":"bun run packages/typescript/broker/test/claude/test-claude-hooks-surface.ts","test:broker:deterministic":"bun run scripts/broker/acceptance/deterministic-broker.ts","evidence:broker-real-host":"bun run scripts/broker/acceptance/real-host-evidence.ts","release:assemble":"bun run scripts/broker/release/assemble-release.ts","release:package-web":"bun run scripts/broker/release/package-web-sidecar.ts","release:verify-pair":"bun run scripts/broker/release/verify-candidate-pair.ts","verification:windows-broker":"bun run scripts/verification/windows-broker.ts","verification:validate":"bun run scripts/verification/validate-verification-graph.ts","verification:generate-completeness-anchor":"bun run scripts/verification/generate-verification-completeness-anchor.ts","verification:isolation-audit":"bun run scripts/verification/audit-suite-isolation.ts --json output/verification/suite-isolation.json","verification:isolation-check":"bun run scripts/verification/audit-suite-isolation.ts --check","verification:check":"bun run verification:validate && bun run test:verification-graph && bun run test:changed-gates && bun run test:fixture-isolation && bun run test:supervised-process && bun run verification:isolation-check","test:verification-graph":"bun run scripts/verification/tests/test-verification-graph.ts","test:changed-gates":"bun run scripts/verification/tests/test-changed-gates.ts","test:browser-broker-overlap":"bun run scripts/verification/tests/stress-browser-broker-overlap.ts","test:fixture-isolation":"bun run scripts/verification/tests/test-fixture-isolation.ts","test:supervised-process":"bun run scripts/verification/tests/test-supervised-process.ts","release:checkpoint":"bun run scripts/release/verify-release-checkpoint.ts",typecheck:"bunx tsc --build","check:broker-surface":"bun run scripts/broker/check-broker-surface.ts","capabilities:check":"bun run scripts/broker/capabilities/check.ts --agent opencode --mode fixture","capabilities:drift":"bun run scripts/broker/capabilities/check-discovery-drift.ts --agent opencode --openapi scripts/broker/capabilities/fixtures/opencode/openapi.synthetic-drift.json --write-output output/capabilities/opencode/fixture-drift","capabilities:pi-check":"bun run scripts/broker/capabilities/check.ts --agent pi --mode fixture","capabilities:pi-drift":"bun run scripts/broker/capabilities/check-discovery-drift.ts --agent pi --rpc-types scripts/broker/capabilities/fixtures/pi/rpc-types.synthetic-drift.d.ts --write-output output/capabilities/pi/fixture-drift","capabilities:codex-check":"bun run scripts/broker/capabilities/check.ts --agent codex --mode fixture","capabilities:codex-drift":"bun run scripts/broker/capabilities/check-discovery-drift.ts --agent codex --methods scripts/broker/capabilities/fixtures/codex/appserver-methods.synthetic-drift.json --write-output output/capabilities/codex/fixture-drift","capabilities:claude-check":"bun run scripts/broker/capabilities/check.ts --agent claude --mode fixture","capabilities:tool-branches":"bun run scripts/broker/capabilities/check-no-tool-branches.ts --write-output output/capabilities/tool-branches","test:capabilities":"bun run packages/typescript/broker/test/capabilities/test-capabilities.ts","trace:real-agent-p0":"bash scripts/broker/tests_traces/run-real-agent-p0.sh","trace:opencode-reconnect":"COSYNCING_OPENCODE_RECONNECT_TRACE=1 bun run scripts/broker/tests_traces/opencode-reconnect-trace.ts"},devDependencies:{"@types/bun":"latest","@types/qrcode":"1.5.6","playwright-core":"1.61.1",typescript:"^5.6.0"},engines:{bun:">=1.3.8"},dependencies:{"@clack/prompts":"1.7.0",qrcode:"1.5.4"}}});var vw;var gw=f(()=>{vw={schemaVersion:1,product:"cosyncing",revisions:[{revision:5,surfaceHash:"fnv1a32:5c84fbb8",minimumClientRevision:0,clientMinimumBrokerRevision:2,change:"Bounded backward transcript paging and append-aware native history identity."},{revision:6,surfaceHash:"fnv1a32:095fc995",minimumClientRevision:0,clientMinimumBrokerRevision:2,change:"Retriable native-source churn, structured interruption, and history-reset semantics."},{revision:7,surfaceHash:"fnv1a32:fcd91f68",minimumClientRevision:0,clientMinimumBrokerRevision:2,change:"Bounded inline and opaque-staged multi-attachment prompt transactions."},{revision:8,surfaceHash:"fnv1a32:eab8e93f",minimumClientRevision:0,clientMinimumBrokerRevision:2,change:"Pre-session model catalogs and exact optional model selection for immediate and scheduled creation."},{revision:9,surfaceHash:"fnv1a32:eab8e93f",minimumClientRevision:0,clientMinimumBrokerRevision:2,change:"Optional normalized tool semantics for command, file-read, search, and web-lookup families."},{revision:10,surfaceHash:"fnv1a32:eab8e93f",minimumClientRevision:0,clientMinimumBrokerRevision:2,change:"Optional bounded large-history replay fields: shortened-body marking on model-output/thinking/user-message, a bounded-tail-only snapshot sink declaration, skipped-record reporting on a capture, and snapshot-sink state-authority suppression after accepted messages settle."},{revision:11,surfaceHash:"fnv1a32:53636b2a",minimumClientRevision:0,clientMinimumBrokerRevision:2,change:"Stable SESSION_CREATE_TEMPORARILY_UNAVAILABLE error code for bounded agent-startup readiness failures."},{revision:12,surfaceHash:"fnv1a32:f2eb77a8",minimumClientRevision:0,clientMinimumBrokerRevision:2,change:"Stable DRIVE_OWNERSHIP_UNKNOWN and DRIVE_NATIVE_SESSION_UNRESUMABLE codes for distinct reason-tagged Drive refusal feedback."},{revision:13,surfaceHash:"fnv1a32:095f3c3c",minimumClientRevision:0,clientMinimumBrokerRevision:2,change:"Session-level owner projection, socket-local mutation authority, revision-conditional cross-client Drive joins, and acknowledged terminal handoff."},{revision:14,surfaceHash:"fnv1a32:095f3c3c",minimumClientRevision:0,clientMinimumBrokerRevision:2,change:"IntegrationKind gains http-websocket for Kimi Code, plus an unknown fallback member so a client degrades one unrecognized roster row instead of failing the whole roster decode."},{revision:15,surfaceHash:"fnv1a32:095f3c3c",minimumClientRevision:0,clientMinimumBrokerRevision:2,change:"SessionDriveControl gains handoffAvailable, takeoverAvailable and takeoverMode so control availability is declared as data instead of inferred, plus an unknown AttachMode fallback so an unrecognized mode degrades to read-only rather than aborting a session decode."},{revision:16,surfaceHash:"fnv1a32:eff55ab5",minimumClientRevision:16,clientMinimumBrokerRevision:15,change:"Authenticated clients exchange header credentials for single-use WebSocket authorization tickets through /api/ws-auth-tickets; long-lived query credentials are no longer accepted.",compatibilityChange:"The broker requires revision 16 clients because revision 15 cannot acquire WebSocket authorization tickets. The revision 16 client supports the revision 15 query-credential broker only for the client-first rollout, and refuses older brokers before placing a long-lived credential in a URL."},{revision:17,surfaceHash:"fnv1a32:3ff9de78",minimumClientRevision:17,clientMinimumBrokerRevision:16,change:"Authenticated artifact downloads are principal-bound, and clients can refresh a short-lived artifact ticket through /api/sessions/{tool}/{session}/artifact/{artifact}/ticket.",compatibilityChange:"The broker requires revision 17 clients because revision 16 clients do not attach their active credential to artifact downloads. The revision 17 client remains compatible with revision 16 brokers during the client-first rollout."},{revision:18,surfaceHash:"fnv1a32:4531a029",minimumClientRevision:17,clientMinimumBrokerRevision:16,change:"Owners can inspect and change the authenticated HTTP workspace-browsing exposure gate through /api/broker/features/workspace-browsing; enabling requires explicit remote-file-access confirmation and a broker restart. Model catalogs may advertise a human-facing provider/profile label while retaining the exact native provider identity. Permission requests may advertise a distinct persistent-rule approval decision."},{revision:19,surfaceHash:"fnv1a32:4531a029",minimumClientRevision:17,clientMinimumBrokerRevision:16,change:"First-party clients add complete omp roster identity, agent color, and New Session support. Brokers use revision 19 as omp's visibility floor so revision-18 clients do not receive a second-class omp row."},{revision:20,surfaceHash:"fnv1a32:4195eec0",minimumClientRevision:17,clientMinimumBrokerRevision:16,change:"Clients can read an aggregated, read-only usage report for one date window through /api/tokdash/report. The broker projects Tokdash's usage, active-time and composite insights scans into one DTO by explicit field selection, so prompt text (display_name) cannot cross the wire, and serves the period token total beside the project facet rows so a client can reconcile the share of tokens the facet does not cover. Project names are owner-only: an observe-scoped principal is served the same report with the project facet withheld. The requested window is bounded in span and its upstream scans are capped in concurrency. Adding the route moves the registry surface hash; the route is additive and raises no minimum. Note that 18 is the revision shipped clients advertise, so a revision-19-or-later client ships before this broker."},{revision:21,surfaceHash:"fnv1a32:4195eec0",minimumClientRevision:17,clientMinimumBrokerRevision:16,change:"The usage report carries the Tokdash that produced it: its running version, the minimum version the report is built against, and whether the running build is below it. A Tokdash older than that floor publishes no window verdict at all, which is not the same fact as a current one refusing the requested period, and without this block a client cannot tell the two apart and blames the period. No route, frame kind, message type or error code changes, so the surface hash holds and no minimum moves; a revision-20 client that never reads the block behaves exactly as before."},{revision:22,surfaceHash:"fnv1a32:caf34ce7",minimumClientRevision:17,clientMinimumBrokerRevision:16,change:"Creation requests may carry an exact adapter-advertised permission mode, agents expose a pre-session mode catalog route, roster rows distinguish display rename from native rename, adapter-authored SessionInfo snapshots are decoded strictly before publication, and OMP native-version attestation failures carry a stable typed error code."},{revision:23,surfaceHash:"fnv1a32:caf34ce7",minimumClientRevision:17,clientMinimumBrokerRevision:16,change:"The /api/sessions roster carries `complete`. The broker now bounds how long a caller waits for a slow discovery leg and answers with the legs that have landed, so for the first time a roster can be served that is not the whole roster; a client that reads every roster as an authoritative replacement would render the shortfall as sessions that do not exist. `complete` is false for a sweep still running and for a settled sweep that did not read every adapter -- a leg abandoned at its budget, or one that threw. Row count does not enter into it: such a leg returns the carry of the last sweep that DID read the adapter, which cannot mention anything that appeared since. Measured on a real installation as an agent absent from its own roster while registered and creatable. The field adds no route, frame kind, message type or error code, so the surface hash is unchanged from revision 22; the number moves because the DTO did. The minimum client revision stays at 17, and the broker enforces what that claim requires: the EARLY answer -- short because the sweep is still running -- is served only to a caller declaring revision 23 or later, so an older client waits for the sweep exactly as it did against a revision-22 broker. A settled sweep that lost a leg is still served to everyone, because that condition predates this revision and persists while the adapter is down; removal deltas are withheld for the lost adapter for every client alike, since deltas carry no completeness of their own."},{revision:24,surfaceHash:"fnv1a32:caf34ce7",minimumClientRevision:17,clientMinimumBrokerRevision:16,change:'question-request carries an optional `blocking` flag so an adapter can surface an asynchronous question (Codex delivery:"async" agent items) that stays visible and answerable without forcing the session into needs-input; omission reproduces the pre-24 blocking behavior. The answer transport stays adapter-owned: a native RPC request is answered with its RPC response, an async question is steered in as user input. The flag adds no route, frame kind, message type or error code, so the surface hash is unchanged from revision 22; the number moves because the DTO did. The minimum client revision stays at 17: an older client ignores the field and renders the same card, and only the broker reads the flag.'}]}});import{spawnSync as _50}from"child_process";import{accessSync as M50,constants as R50,statSync as k50}from"fs";import{dirname as Wx0,isAbsolute as T50,resolve as hq}from"path";function cw($){return typeof $==="string"&&E50.includes($)}function Zj($,Q,Z){if(typeof $!=="string"||$.trim().length===0)throw new J2(Z,`${Q} path is empty`);if(/[\0\r\n]/.test($))throw new J2(Z,`${Q} path contains control characters`);if(!T50($))throw new J2(Z,`${Q} path must be absolute, received ${JSON.stringify($)}`);return hq($)}function mw($,Q,Z){let J;try{J=k50($)}catch{throw new J2(Z,`${Q} is missing: ${$}`)}if(!J.isFile())throw new J2(Z,`${Q} is not a regular file: ${$}`);try{M50($,R50.X_OK)}catch{throw new J2(Z,`${Q} is not executable: ${$}`)}return $}function yq($){let Q=/^(\d+)\.(\d+)\.(\d+)(?:[-+][0-9A-Za-z.+-]*)?$/.exec($.trim());if(!Q)return;return[Number(Q[1]),Number(Q[2]),Number(Q[3])]}function gq($,Q){let Z=yq($),J=yq(Q);if(!Z||!J)return!1;for(let X=0;X<3;X+=1)if(Z[X]!==J[X])return Z[X]>J[X];return!0}function pw($){let Q=_50($,["--revision"],{timeout:S50,maxBuffer:w50,encoding:"utf8",windowsHide:!0,stdio:["ignore","pipe","ignore"]});if(Q.error||Q.signal||Q.status!==0)throw new J2("bun-runtime-probe-failed",`${$} did not answer \`--revision\`, so it could not be confirmed as a Bun runtime`);let Z=(Q.stdout??"").trim().split(/\r?\n/,1)[0]?.trim()??"";if(!yq(Z))throw new J2("bun-runtime-unrecognized",`${$} is executable but did not report a Bun version, so it is not a Bun runtime`);return Z}function uw($,Q=pw){let Z=Q($);if(!gq(Z,Jj))throw new J2("bun-runtime-outdated",`${$} reports Bun ${Z}, but this build requires Bun ${Jj} or newer`);return Z}function x50($){let Q=$.override?.trim(),Z=Q?mw(Zj(Q,`${FX} runtime`,"bun-runtime-override-invalid"),`${FX} runtime`,"bun-runtime-override-unusable"):mw(Zj($.execPath,"Bun runtime","bun-runtime-invalid"),"Bun runtime","bun-runtime-unusable"),X=$.runningVersion&&hq(Z)===hq($.execPath)?uw(Z,()=>$.runningVersion):uw(Z,$.probe??pw);return{path:Z,version:X}}function b50($){let Q=$.distribution!=="source";if($.distribution==="native")return{distribution:"native",applicationPath:Zj($.execPath,"native application","native-application-invalid"),packaged:Q};let Z=$.distribution==="source"?$.sourceEntry:$.mainPath;if(!Z)throw new J2("application-entry-unresolved","the running JavaScript application could not identify its own entry file");let J=Zj(Z,"application","application-path-invalid");try{let X=x50({execPath:$.execPath,...$.runtimeOverride?{override:$.runtimeOverride}:{},...$.runningRuntimeVersion?{runningVersion:$.runningRuntimeVersion}:{},...$.runtimeProbe?{probe:$.runtimeProbe}:{}});return{distribution:$.distribution,applicationPath:J,runtimePath:X.path,runtimeVersion:X.version,packaged:Q}}catch(X){if(!(X instanceof J2))throw X;return{distribution:$.distribution,applicationPath:J,runtimeProblem:{detailCode:X.detailCode,message:X.message},packaged:Q}}}function f50($){if($.runtimePath)return $.runtimePath;if($.distribution==="native")throw new J2("native-distribution-has-no-external-runtime","a compiled native build embeds its runtime and has none to record");throw new J2($.runtimeProblem?.detailCode??"bun-runtime-unresolved",$.runtimeProblem?.message??"the Bun runtime that must execute cosyncing could not be resolved")}function pQ($,Q,Z=process.env){let J=Z[FX]?.trim();return b50({distribution:$,execPath:process.execPath,mainPath:Bun.main,sourceEntry:Q,runningRuntimeVersion:Bun.version,...J?{runtimeOverride:J}:{}})}function vq($,Q=[]){return $.distribution==="native"?[$.applicationPath,...Q]:[f50($),$.applicationPath,...Q]}var E50,J2,FX="COSYNCING_BUN_BIN",Jj="1.3.8",Gx0,S50=5000,w50=4096;var e6=f(()=>{E50=Object.freeze(["source","bun-js","bootstrap-js","native"]);J2=class J2 extends Error{detailCode;constructor($,Q){super(Q);this.detailCode=$;this.name="ApplicationIdentityError"}};Gx0=Object.freeze({"linux-x64":Object.freeze([{asset:"bun-linux-x64.zip",sha256:"0322b17f0722da76a64298aad498225aedcbf6df1008a1dee45e16ecb226a3f1"},{asset:"bun-linux-x64-baseline.zip",sha256:"bbe4632ac03d7495177d542ecefa8f21f9849273106525f6bb13172ec8e4ab2c"},{asset:"bun-linux-x64-musl.zip",sha256:"a810b5083a830596cff3715402371917a200940efdeed6189bcde191e79d4633"},{asset:"bun-linux-x64-musl-baseline.zip",sha256:"f05311fc12304ff8eaca136fc934eede6728055ba3d00cdb7e7dac394853f159"}]),"linux-arm64":Object.freeze([{asset:"bun-linux-aarch64.zip",sha256:"4e9deb6814a7ec7f68725ddd97d0d7b4065bcda9a850f69d497567e995a7fa33"},{asset:"bun-linux-aarch64-musl.zip",sha256:"76dddebfd8c011c8b774991eb8ba47da770e4ce06ddc2b045aa0d659ef5fbe44"}]),"darwin-arm64":Object.freeze([{asset:"bun-darwin-aarch64.zip",sha256:"672a0a9a7b744d085a1d2219ca907e3e26f5579fca9e783a9510a4f98a36212f"}]),"windows-x64":Object.freeze([{asset:"bun-windows-x64.zip",sha256:"4c0a82866424e23d1bdaa9517307ec2f143ed513c15546dba0b859c6c55c47c7"},{asset:"bun-windows-x64-baseline.zip",sha256:"74f4dad7b4873ee70f63add9918400334e31acab9ba3fce9ef9906d96646e231"}])})});function uq($,Q){return typeof $==="string"&&$.trim()?$.trim():Q}function h50($){if(typeof $!=="string"||!$.trim())return Xj;try{let Q=JSON.parse($);return JSON.stringify(Q)===JSON.stringify(Xj)?Q:Xj}catch{return Xj}}function y50($){if(typeof $!=="string"||!$.trim())return mq;try{let Q=JSON.parse($);if(!Q||typeof Q!=="object"||Array.isArray(Q)||!Number.isSafeInteger(Q.revision)||!Number.isSafeInteger(Q.minimumClientRevision)||typeof Q.surfaceHash!=="string"||!/^fnv1a32:[a-f0-9]{8}$/.test(Q.surfaceHash))return mq;return Q}catch{return mq}}function Gj($){return[$.version,$.commit,$.buildDate??"no-build-date",$.dirty===null?"dirty-unknown":$.dirty?"dirty":"clean",$.target,$.distribution].join("/")}var dw=2,Xj,Wj,mq,I50,lw,v1;var Yj=f(()=>{hw();gw();e6();Xj=Object.freeze({buildInfo:dw,brokerConfig:2,setupState:1,installState:1,durableStores:Object.freeze({config:2,"broker-instance":2,setup:1,install:1,schedules:2,attention:1,peers:2,"wake-registrations":2,artifacts:1}),releaseManifest:1,upgradeJournal:1,brokerContract:24}),Wj=vw.revisions.at(-1);if(!Wj)throw Error("contract revision registry is empty");mq=Object.freeze({revision:Wj.revision,minimumClientRevision:Wj.minimumClientRevision,surfaceHash:Wj.surfaceHash});I50=`${process.platform}-${process.arch}`;lw=(()=>{let Q="bun-js".trim();return cw(Q)?Q:"source"})(),v1=Object.freeze({schemaVersion:dw,version:uq("0.5.10",yw.version),commit:uq("33671790db81a9a6613e45aa174bb8925749f952","development"),buildDate:(()=>{return"2026-09-19T21:58:10.018Z".trim()?"2026-09-19T21:58:10.018Z".trim():null})(),target:uq("universal",I50),distribution:lw,packaged:lw!=="source",dirty:!1,schemaVersions:h50('{"buildInfo":2,"brokerConfig":2,"setupState":1,"installState":1,"durableStores":{"config":2,"broker-instance":2,"setup":1,"install":1,"schedules":2,"attention":1,"peers":2,"wake-registrations":2,"artifacts":1},"releaseManifest":1,"upgradeJournal":1,"brokerContract":24}'),contract:y50('{"revision":24,"minimumClientRevision":17,"surfaceHash":"fnv1a32:caf34ce7"}')})});import{writeSync as g50}from"fs";function nw($,Q=1){try{g50(2,$.endsWith(`
|
|
4
4
|
`)?$:`${$}
|
|
5
5
|
`)}catch{}process.exit(Q)}async function rw($){await Promise.race([Promise.all([iw(process.stdout),iw(process.stderr)]),new Promise((Q)=>setTimeout(Q,v50))]),process.exit($)}function iw($){return new Promise((Q)=>{try{$.write("",()=>Q())}catch{Q()}})}var v50=1000;var zj=()=>{};var w;var cq=f(()=>{w=Object.freeze({productName:"cosyncing",primaryBinary:"cosyncing",aliasBinary:"cosy",environmentVariablePrefix:"COSYNCING_",tokenHeader:"x-cosyncing-token",repositoryDirectoryName:".cosyncing",stateDirectoryName:".cosyncing",cacheDirectoryName:"cosyncing",serviceName:"cosyncing",releaseAssetPrefix:"cosyncing"})});function tw($){return $==="app-restore"||$==="lease-restore"}function q$($){if($.length<=sw)return{body:$};let Q=sw,Z=$.charCodeAt(Q-1);if(Z>=55296&&Z<=56319)Q-=1;return{body:$.slice(0,Q),truncated:!0}}function jj($){let Q=$.trim(),Z=/^<([a-z][a-z0-9-]*)>\s*([\s\S]*?)\s*<\/\1>$/i.exec(Q);if(!Z)return;let[,J,X]=Z;if(!J||!X)return;return{source:J,body:X}}function i50($){let Q=2166136261;for(let Z=0;Z<$.length;Z+=1)Q^=$.charCodeAt(Z),Q=Math.imul(Q,16777619);return(Q>>>0).toString(16).padStart(8,"0")}function lq($,Q=LX){if(!$)return{status:"unknown",readOnly:!1,reason:"client did not advertise a contract revision",broker:{...Q}};if(![$.revision,$.minimumBrokerRevision,Q.revision,Q.minimumClientRevision].every((J)=>Number.isSafeInteger(J)&&J>=0)||$.minimumBrokerRevision>$.revision||Q.minimumClientRevision>Q.revision)return{status:"hard-incompatible",readOnly:!0,reason:"contract revision metadata is invalid",broker:{...Q},client:{...$}};if($.revision<Q.minimumClientRevision)return{status:"hard-incompatible",readOnly:!0,reason:`client contract ${$.revision} is older than broker minimum ${Q.minimumClientRevision}`,broker:{...Q},client:{...$}};if(Q.revision<$.minimumBrokerRevision)return{status:"hard-incompatible",readOnly:!0,reason:`broker contract ${Q.revision} is older than client minimum ${$.minimumBrokerRevision}`,broker:{...Q},client:{...$}};if($.revision===Q.revision&&$.surfaceHash&&$.surfaceHash!==Q.surfaceHash)return{status:"hard-incompatible",readOnly:!0,reason:"equal contract revisions advertise different public surfaces",broker:{...Q},client:{...$}};if(Math.abs($.revision-Q.revision)>pq)return{status:"hard-incompatible",readOnly:!0,reason:`contract revisions differ by more than the ${pq}-revision overlap window`,broker:{...Q},client:{...$}};if($.revision<Q.revision)return{status:"client-behind",readOnly:!1,reason:`client contract ${$.revision} is behind broker contract ${Q.revision}`,broker:{...Q},client:{...$}};if($.revision>Q.revision)return{status:"broker-behind",readOnly:!1,reason:`broker contract ${Q.revision} is behind client contract ${$.revision}`,broker:{...Q},client:{...$}};return{status:"compatible",readOnly:!1,reason:"broker and client contract revisions match",broker:{...Q},client:{...$}}}function S4($){return!!$&&typeof $==="object"&&!Array.isArray($)}function V8($){return $===void 0||typeof $==="string"}function ow($){return $===void 0||typeof $==="number"&&Number.isFinite($)}function s50($){return $===void 0||S4($)&&Object.keys($).every((Q)=>["providerID","modelID","label","reasoningEffort","variant"].includes(Q))&&typeof $.providerID==="string"&&$.providerID.length>0&&typeof $.modelID==="string"&&$.modelID.length>0&&V8($.label)&&V8($.reasoningEffort)&&V8($.variant)}function o50($){return $===void 0||S4($)&&Object.keys($).every((Q)=>["label","command","note"].includes(Q))&&typeof $.label==="string"&&typeof $.command==="string"&&V8($.note)}function a50($){if($===void 0)return!0;if(!S4($)||!Object.keys($).every((J)=>["drive","terminalSync"].includes(J)))return!1;let{drive:Q,terminalSync:Z}=$;if(!S4(Q)||!Object.keys(Q).every((J)=>["state","supported","reason","handoffAvailable","takeoverAvailable","takeoverMode"].includes(J))||!["observing","driving","unavailable","unknown"].includes(String(Q.state))||typeof Q.supported!=="boolean"||!V8(Q.reason)||Q.handoffAvailable!==void 0&&typeof Q.handoffAvailable!=="boolean"||Q.takeoverAvailable!==void 0&&typeof Q.takeoverAvailable!=="boolean"||Q.takeoverMode!==void 0&&!["live","resume","observe"].includes(String(Q.takeoverMode)))return!1;return S4(Z)&&Object.keys(Z).every((J)=>["supported","syncAvailable","active","label","command","note","reason","input","presence","action","behind"].includes(J))&&typeof Z.supported==="boolean"&&typeof Z.syncAvailable==="boolean"&&typeof Z.active==="boolean"&&V8(Z.label)&&V8(Z.command)&&V8(Z.note)&&V8(Z.reason)&&(Z.input===void 0||["full","answer-only"].includes(String(Z.input)))&&(Z.presence===void 0||["shared","private","absent","unknown"].includes(String(Z.presence)))&&(Z.action===void 0||["join","handoff"].includes(String(Z.action)))&&(Z.behind===void 0||typeof Z.behind==="boolean")&&(!Z.syncAvailable||Z.supported)&&(!Z.active||Z.supported&&Z.syncAvailable&&Z.presence==="shared")}function t50($){if($===void 0)return!0;if(!S4($)||!Object.keys($).every((Z)=>["revision","state"].includes(Z))||!["none","drive","terminal-sync"].includes(String($.state)))return!1;let Q=$.revision;return S4(Q)&&Object.keys(Q).every((Z)=>["epoch","seq"].includes(Z))&&typeof Q.epoch==="string"&&Q.epoch.length>0&&typeof Q.seq==="number"&&Number.isSafeInteger(Q.seq)&&Q.seq>=0}function iQ($){if(!S4($)||!Object.keys($).every((Q)=>r50.has(Q)))return;if(typeof $.id!=="string"||$.id.length===0||typeof $.tool!=="string"||$.tool.length===0||typeof $.title!=="string"||!["working","needs-input","idle"].includes(String($.status))||!["live","resume","observe"].includes(String($.attachMode)))return;for(let Q of["lineageId","liveUuid","machine","slug","cwd","projectName","parentThreadId","nativeId","model","currentAgent","currentMode"])if(!V8($[Q]))return;if($.origin!==void 0&&!["subagent","exec","vscode"].includes(String($.origin)))return;if($.launchSurface!==void 0&&!["app","terminal","ide","unknown"].includes(String($.launchSurface)))return;if(!ow($.createdAt)||!ow($.updatedAt)||!s50($.currentModel)||!o50($.terminalSyncHint)||!a50($.control)||!t50($.sessionOwner))return;return{...$}}function dq($){return!!$&&"refusal"in $}var aw,lQ=2000,C1,U$="context.injection",sw=8000,m50,u50,Hj,c50,p50,l50,Kj=24,d50=17,pq=1,dQ=14,ew=19,$x=23,qx0,Vj,n50,LX,r50;var a0=f(()=>{cq();cq();aw=["create","app-restore","lease-restore","join-existing","takeover"];C1={maxFiles:8,maxFileBytes:67108864,maxPromptBytes:67108864,maxInlineFileBytes:262144,maxInlineDecodedBytes:1048576,maxInlineEncodedBytes:1572864,maxStagedRecordsPerScope:16,maxStagedBytesPerScope:134217728,stagingTtlMs:86400000,cleanupBatchRecords:64,maxRetainedClientFiles:8,maxRetainedClientBytes:67108864,inboxRetentionMs:1209600000,maxInboxBytes:268435456,maxInboxFiles:200};m50=["model-output","thinking","status","tool-call","tool-result","fs-edit","file-artifact","permission-request","permission-resolved","question-request","question-resolved","terminal-output","notice","metadata-update","token-count","run-summary","user-message","event","goal-state","task-list-state","agent-activity","history-reset","error"],u50=["/api/agents","/api/agents/{id}/models","/api/agents/{id}/modes","/api/agents/codex/sync","/api/agent-runtime-updates","/api/agent-runtime-update-policy","/api/agent-runtime-updates/{id}/restart","/api/attention-events","/api/attention-events/dismiss-batch","/api/attention-events/{id}/ack","/api/attention-events/{id}/dismiss","/api/broker/health","/api/broker/features/workspace-browsing","/api/broker/restart","/api/broker/restart-all","/api/broker/update","/api/health","/api/machines","/api/machines/resolve","/api/projects/rename","/api/push/wake","/api/push/wake-tokens","/api/push/wake-tokens/{id}","/api/schedules","/api/schedules/{id}","/api/schedules/{id}/actions","/api/claude/hooks","/api/session-roster-deltas","/api/sessions","/api/sessions/{id}","/api/sessions/{id}/{id}/artifact/{id}","/api/sessions/{id}/{id}/artifact/{id}/ticket","/api/sessions/{id}/{id}/fs","/api/sessions/{id}/{id}/fs/read","/api/sessions/{id}/{id}/fs/download","/api/sessions/{id}/{id}/uploads","/api/sessions/{id}/{id}/uploads/{id}","/api/sessions/{id}/{id}/uploads/{id}/complete","/api/sessions/{id}/{id}/cache","/api/sessions/{id}/{id}/clone","/api/sessions/{id}/{id}/export","/api/sessions/{id}/{id}/export/preflight","/api/sessions/{id}/{id}/fork","/api/sessions/{id}/{id}/rename","/api/sessions/{id}/{id}/stream","/api/tokdash/usage","/api/tokdash/quota","/api/tokdash/quota-preference","/api/tokdash/report","/api/tool/send_file","/api/transport/envelopes","/api/transport/peers","/api/transport/peers/{id}","/api/transport/pairings","/api/transport/pairings/{id}","/api/transport/pairings/{id}/accept","/api/transport/session-control","/api/ws-auth-tickets"],Hj=["/claude/hook/bye","/claude/hook/hello","/claude/hook/request","/claude/hook/status","/omp/bridge/bye","/omp/bridge/commands","/omp/bridge/events","/omp/bridge/hello","/omp/bridge/send-file","/omp/bridge/status","/pi/bridge/bye","/pi/bridge/commands","/pi/bridge/events","/pi/bridge/hello","/pi/bridge/send-file","/pi/bridge/status"],c50=["AUTH_REQUIRED","BAD_PARAM","ACK_UNKNOWN_TARGET","ACK_CONFLICT","ACK_INVALID","BAD_CLIENT_MESSAGE_ID","AGENT_UNSUPPORTED","ARTIFACT_INTERACTION_EXPIRED","ARTIFACT_INTERACTION_INVALID","ARTIFACT_INTERACTION_NOT_FOUND","ARTIFACT_INTERACTION_REF_INVALID","ARTIFACT_INTERACTION_TOO_LARGE","ARTIFACT_INTERACTION_UNSUPPORTED","CONFIRMATION_STALE","R2_DISABLED","EXPORT_EMPTY","EXPORT_FAILED","EXPORT_FORMAT","EXPORT_MISSING","EXPORT_TOO_LARGE","HISTORY_CURSOR_DIVERGED","HISTORY_CURSOR_GONE","HISTORY_CURSOR_INVALID","HISTORY_PAGE_RESOURCE_LIMIT","HISTORY_PAGE_SOURCE_CHANGED","HISTORY_PAGE_SOURCE_UNVERSIONED","FS_DOWNLOAD_TOO_LARGE","FS_REMOTE_DISABLED","INGEST_REFUSED","CLIENT_MESSAGE_FAILED","PERSISTENCE_FAILED","SCHEDULE_STALE","CLIENT_MESSAGE_ID_CONFLICT","CLIENT_MESSAGE_JOURNAL_FULL","CLIENT_MESSAGE_OUTCOME_UNKNOWN","ATTACHMENT_DELIVERY_FAILED","ATTACHMENT_INVALID","ATTACHMENT_LIMIT_EXCEEDED","ATTACHMENT_UNSUPPORTED","STAGED_ATTACHMENT_EXPIRED","STAGED_ATTACHMENT_NOT_FOUND","STAGED_ATTACHMENT_SCOPE_MISMATCH","MACHINE_PEER_BAD_CONFIG","MACHINE_PEER_BAD_RESPONSE","MACHINE_PEER_DUPLICATE_MACHINE","MACHINE_PEER_DUPLICATE_SESSION","MACHINE_PEER_PARTIAL","MACHINE_PEER_STALE","MACHINE_PEER_TIMEOUT","MACHINE_PEER_UNREACHABLE","MACHINE_OWNER_UNREACHABLE","MACHINE_ROUTE_AMBIGUOUS","MACHINE_ROUTE_NOT_FOUND","MACHINE_ROUTE_STALE","MODEL_SELECTION_UNSUPPORTED","MODEL_UNSUPPORTED","MODEL_CATALOG_UNAVAILABLE","MODE_CATALOG_UNAVAILABLE","NOT_SUPPORTED","NOT_FOUND","NOT_REGULAR_FILE","NOT_DIRECTORY","PERMISSION_MODE_UNSUPPORTED","PAIRING_ALREADY_ACCEPTED","PAIRING_EXPIRED","PAIRING_INVALID_INPUT","PAIRING_NOT_FOUND","PAIRING_RATE_LIMITED","NO_CWD","PATH_SYMLINK","PUSH_DELIVERY_FAILED","PUSH_NOT_CONFIGURED","PUSH_TOKEN_NOT_FOUND","PI_INTEGRATION_AUTH_REQUIRED","OMP_BRIDGE_NATIVE_VERSION_UNVERIFIED","PLAN_ACTION_INVALID","PLAN_ACTION_STALE","PLAN_ACTION_UNSUPPORTED","PLAN_NOT_FOUND","PATH_ESCAPE","PATH_EXT","REDACTION_REFUSED","TEMP_ROOT_MISSING","RATE_LIMITED","UPLOAD_NOT_FOUND","UPLOAD_EXPIRED","UPLOAD_OFFSET_MISMATCH","UPLOAD_SIZE_MISMATCH","UPLOAD_TOO_LARGE","UPLOAD_SCOPE_MISMATCH","UPLOAD_CAPACITY","RESUME_AUTH_REQUIRED","SESSION_AGENT_OWNED","SESSION_CREATE_TEMPORARILY_UNAVAILABLE","DRIVE_OWNERSHIP_CONFLICT","DRIVE_OWNERSHIP_UNKNOWN","DRIVE_NATIVE_SESSION_UNRESUMABLE","DRIVE_RESTORE_FAILED","JOIN_OWNER_NOT_FOUND","JOIN_OWNER_STALE","JOIN_NOT_SUPPORTED","SCHEDULE_CRON_INVALID","SCHEDULE_INVALID","SCHEDULE_INVALID_STATE","SCHEDULE_NOT_FOUND","SCHEDULE_QUOTA_RECOVERY_UNAVAILABLE"],p50=["hello","session","history","history-page","message","commands","options","notice","draft","ended","error","ack","nack","attach-conflict"],l50=["prompt","draft","history-page","plan-action","artifact-interaction","file","approve","answer","reject-question","command","set-agent","handoff","ack","nack"],qx0=Object.freeze(["live","resume","observe"]),Vj=`/api/agents?contractRevision=${Kj}`;n50=`fnv1a32:${i50(JSON.stringify({product:w,routes:u50,errorCodes:c50,wireFrameKinds:p50,clientMessageKinds:l50,messageTypes:m50,compatibility:{overlapRevisions:pq}}))}`,LX=Object.freeze({revision:Kj,minimumClientRevision:d50,surfaceHash:n50});r50=new Set(["id","lineageId","liveUuid","tool","machine","title","slug","cwd","projectName","origin","parentThreadId","nativeId","status","launchSurface","attachMode","model","currentModel","currentAgent","currentMode","createdAt","updatedAt","terminalSyncHint","control","sessionOwner"])});function G$($){let Q=$.match(/(?:^|[^0-9])v?(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?/);if(!Q)return;return`${Number(Q[1])}.${Number(Q[2])}.${Number(Q[3])}${Q[4]?`-${Q[4]}`:""}`}function $80($){return $.split(/\s+/u).map((Q)=>Q.replace(/^[([{'"`]+/u,"").replace(/[)\]}'"`,;:.]+$/u,"")).filter((Q)=>Q.length>0)}function iq($){let Q=e50.exec($);if(!Q)return;return`${Number(Q[1])}.${Number(Q[2])}.${Number(Q[3])}${Q[4]?`-${Q[4]}`:""}`}function Qx($){return $.toLowerCase().replace(/[^a-z0-9]+/gu,"")}function Zx($,Q){let Z=Qx($);return Z.length>0&&Q.some((J)=>Qx(J)===Z)}function Q80($,Q){let Z=$80($);for(let J=0;J<Z.length;J+=1){let X=Z[J],W=X.indexOf("/");if(W>0&&X.indexOf("/",W+1)<0){let z=iq(X.slice(W+1));if(z!==void 0&&Zx(X.slice(0,W),Q))return z;continue}let G=iq(X);if(G===void 0)continue;let Y=J>0?Z[J-1]:void 0;if(Y!==void 0&&Zx(Y,Q))return G}return}function s8($,Q){let Z=$.split(/\r?\n/u),J=new Set;for(let W of Z){let G=Q80(W,Q);if(G!==void 0)J.add(G)}if(J.size>0)return J.size===1?[...J][0]:void 0;let X=new Set;for(let W of Z){let G=W.trim(),Y=iq(G);if(Y!==void 0)X.add(Y)}return X.size===1?[...X][0]:void 0}function nQ($){let Q=$[0];if(Q===void 0)throw Error("lowestSemanticVersion requires a non-empty list");let Z=$.filter((X)=>Z1(X,X)!==void 0),J=Z[0];if(J===void 0)return Q;return Z.reduce((X,W)=>{let G=Z1(W,X);return G!==void 0&&G<0?W:X},J)}function Z1($,Q){let Z=(G)=>{let Y=G.match(/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!Y)return;return{core:[Number(Y[1]),Number(Y[2]),Number(Y[3])],...Y[4]?{prerelease:Y[4].split(".")}:{}}},J=Z($),X=Z(Q);if(!J||!X)return;for(let G=0;G<3;G+=1){let Y=(J.core[G]??0)-(X.core[G]??0);if(Y!==0)return Y<0?-1:1}if(!J.prerelease&&!X.prerelease)return 0;if(!J.prerelease)return 1;if(!X.prerelease)return-1;let W=Math.max(J.prerelease.length,X.prerelease.length);for(let G=0;G<W;G+=1){let Y=J.prerelease[G],z=X.prerelease[G];if(Y===z)continue;if(Y===void 0)return-1;if(z===void 0)return 1;let j=/^\d+$/.test(Y)?Number(Y):void 0,H=/^\d+$/.test(z)?Number(z):void 0;if(j!==void 0&&H!==void 0)return j<H?-1:1;if(j!==void 0)return-1;if(H!==void 0)return 1;return Y<z?-1:1}return 0}async function A1($){let Q=$.context.resolveExecutable($.command);if(!Q)return{checks:[{id:`${$.checkPrefix}.binary`,status:"warn",detailCode:"binary-missing",summary:`${$.displayName} is not installed or is not on PATH.`,remediation:{kind:"manual",message:$.installMessage}},{id:`${$.checkPrefix}.version`,status:"skip",detailCode:"version-not-checked",summary:`Version was not checked because the ${$.displayName} binary is missing.`}]};let Z=[{id:`${$.checkPrefix}.binary`,status:"pass",detailCode:"binary-found",summary:`${$.displayName} executable found.`,evidence:{executable:$.context.displayPath(Q)}}],J=(Y)=>{if($.productNames?.length)return Y.status==="ok"?s8(`${Y.stdout}
|
|
6
6
|
${Y.stderr}`,$.productNames):void 0;return Y.status==="ok"||Y.status==="nonzero"?G$(`${Y.stdout}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"product": "cosyncing",
|
|
4
|
-
"version": "0.5.
|
|
5
|
-
"sourceCommit": "
|
|
4
|
+
"version": "0.5.10",
|
|
5
|
+
"sourceCommit": "33671790db81a9a6613e45aa174bb8925749f952",
|
|
6
6
|
"dirty": false,
|
|
7
7
|
"baseHref": "/cosy/",
|
|
8
8
|
"contract": {
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"surfaceHash": "fnv1a32:caf34ce7",
|
|
12
12
|
"clientMinimumBrokerRevision": 16
|
|
13
13
|
},
|
|
14
|
-
"buildId": "
|
|
15
|
-
"cacheManifestSha256": "
|
|
16
|
-
"mainDartSha256": "
|
|
14
|
+
"buildId": "6439a67a854a60c1",
|
|
15
|
+
"cacheManifestSha256": "c3afdfb3dae7946736bb73f0cdd4cdc8594af748ea1d1bc7d25eef4164c31632",
|
|
16
|
+
"mainDartSha256": "9cc233068b8b81de7579f58ecfe0c47aa44d8c24660f347baf8e5f4e4e008daf",
|
|
17
17
|
"releaseFiles": {
|
|
18
18
|
"assets/NOTICES": "41146f98d27ca19de8aab0b1c4b2c1efc1a9bbfdba7ebfec5161d80ae1ec1a2d"
|
|
19
19
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"buildVersion": "
|
|
2
|
+
"buildVersion": "6439a67a854a60c1",
|
|
3
3
|
"precache": [
|
|
4
4
|
"assets/AssetManifest.bin",
|
|
5
5
|
"assets/AssetManifest.bin.json",
|
|
@@ -129,11 +129,11 @@
|
|
|
129
129
|
"icons/pwa-monochrome-192.png": "25307f415e32c989195a18521400757dfacbb0e0cd550bc6acfcb8124c3734af",
|
|
130
130
|
"icons/pwa-monochrome-512.png": "9bf04b7c999104450f7cc85a691cf536157bf2dd9c4d27975c576e8f073fbd22",
|
|
131
131
|
"index.html": "cae8e60d0fdb4fbae031fcfc6fb2aa44b21550aa800717d9f94b497e85d6acb1",
|
|
132
|
-
"main.dart.js": "
|
|
132
|
+
"main.dart.js": "9cc233068b8b81de7579f58ecfe0c47aa44d8c24660f347baf8e5f4e4e008daf",
|
|
133
133
|
"manifest.json": "5e5ba9c53061e4c6e1515b79a92f290837198192891d7001b69c9128b7ff2f6e",
|
|
134
134
|
"sqlite3.wasm": "c41558c74d0ad954c2ece9d8c40ae9c3f247b4ae1c022eeb9899de44b37b9a39",
|
|
135
|
-
"version.json": "
|
|
135
|
+
"version.json": "785ef31f77de80633eefcf9eb2f54084f06055394e242f7fc39b0d4f8e904de9"
|
|
136
136
|
},
|
|
137
|
-
"precacheBytes":
|
|
137
|
+
"precacheBytes": 7218546,
|
|
138
138
|
"runtimeBytes": 30914358
|
|
139
139
|
}
|