@oscharko-dev/keiko 1.3.1 → 1.3.2
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 +14 -1
- package/dist/ui/csp-hashes.json +7 -7
- package/dist/ui/static/404.html +1 -1
- package/dist/ui/static/__next.__PAGE__.txt +4 -4
- package/dist/ui/static/__next._full.txt +4 -4
- package/dist/ui/static/__next._tree.txt +1 -1
- package/dist/ui/static/_next/static/chunks/01f2r2l4gzscm.css +4 -0
- package/dist/ui/static/_next/static/chunks/{3_10vm9g45_8y.js → 06j35fs_cota7.js} +1 -1
- package/dist/ui/static/_next/static/chunks/0egrai9cigb1t.js +1 -0
- package/dist/ui/static/_next/static/chunks/0gzualdhleagc.js +1 -0
- package/dist/ui/static/_next/static/chunks/{3_qhvykv4ncye.js → 0wsxu0g-c4dbf.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{1jh83l6i471hs.js → 1axubnnxhxh-s.js} +1 -1
- package/dist/ui/static/_next/static/chunks/1gnjh00dyjkye.js +1 -0
- package/dist/ui/static/_next/static/chunks/{21yx7habl0roe.js → 1jgm4793jm1pv.js} +1 -1
- package/dist/ui/static/_next/static/chunks/1livbv_zx95bb.js +1 -0
- package/dist/ui/static/_next/static/chunks/1lpdde9w2vl93.js +1 -0
- package/dist/ui/static/_next/static/chunks/2muaa_i0plkwf.js +1 -0
- package/dist/ui/static/_next/static/chunks/{3dgn8o9f1kc8m.js → 3_2d222-16b9x.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{3jgowfcbukuu6.js → 3__pdxfo3bpc1.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{3tl76hukh2-pb.js → 3hw8-lgs3prjc.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{26dysjhfplkru.js → 3pe5ji2-axln6.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{1nz7wziy2b21i.js → 3qgbq3-b3p7a3.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{3e-3pvlfnqvhc.js → 3ts6g_psw2r__.js} +1 -1
- package/dist/ui/static/_next/static/chunks/3ulj-p08q5sh1.js +1 -0
- package/dist/ui/static/_next/static/chunks/3yaa0g7ymbq5e.js +1 -0
- package/dist/ui/static/_not-found/__next._full.txt +1 -1
- package/dist/ui/static/_not-found/__next._not-found.__PAGE__.txt +1 -1
- package/dist/ui/static/_not-found/__next._tree.txt +1 -1
- package/dist/ui/static/_not-found.html +1 -1
- package/dist/ui/static/_not-found.txt +1 -1
- package/dist/ui/static/atlassian-connectors/__next._full.txt +1 -1
- package/dist/ui/static/atlassian-connectors/__next._tree.txt +1 -1
- package/dist/ui/static/atlassian-connectors/__next.atlassian-connectors.__PAGE__.txt +1 -1
- package/dist/ui/static/atlassian-connectors.html +1 -1
- package/dist/ui/static/atlassian-connectors.txt +1 -1
- package/dist/ui/static/index.html +1 -1
- package/dist/ui/static/index.txt +4 -4
- package/dist/ui/static/launch/__next._full.txt +4 -4
- package/dist/ui/static/launch/__next._tree.txt +1 -1
- package/dist/ui/static/launch/__next.launch.__PAGE__.txt +4 -4
- package/dist/ui/static/launch.html +1 -1
- package/dist/ui/static/launch.txt +4 -4
- package/dist/ui/static/local-knowledge/__next._full.txt +4 -4
- package/dist/ui/static/local-knowledge/__next._tree.txt +1 -1
- package/dist/ui/static/local-knowledge/__next.local-knowledge.__PAGE__.txt +4 -4
- package/dist/ui/static/local-knowledge/capsule/__next._full.txt +1 -1
- package/dist/ui/static/local-knowledge/capsule/__next._tree.txt +1 -1
- package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.capsule.__PAGE__.txt +1 -1
- package/dist/ui/static/local-knowledge/capsule.html +1 -1
- package/dist/ui/static/local-knowledge/capsule.txt +1 -1
- package/dist/ui/static/local-knowledge.html +1 -1
- package/dist/ui/static/local-knowledge.txt +4 -4
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory-data.generated.json +14 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.js +6 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry-history.generated.d.ts +7 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry-history.generated.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry-history.generated.js +9 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-cli/dist/lifecycle.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/lifecycle.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/lifecycle.js +38 -2
- package/node_modules/@oscharko-dev/keiko-cli/package.json +15 -15
- package/node_modules/@oscharko-dev/keiko-connectors/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-connectors/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-connectors/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-contracts.d.ts +24 -4
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-contracts.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-contracts.js +29 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-coverage.generated.json +128 -3
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-identity.generated.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-identity.generated.js +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-operation-surfaces.generated.json +2 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-operations.generated.d.ts +103 -3
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-operations.generated.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-operations.generated.js +107 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.d.ts +5 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.js +8 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/editor-agent.d.ts +48 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/editor-agent.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/editor-agent.js +85 -6
- package/node_modules/@oscharko-dev/keiko-contracts/dist/governed-tool-bridge.d.ts +14 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/governed-tool-bridge.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/governed-tool-bridge.js +23 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/governed-tool-catalog.d.ts +23 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/governed-tool-catalog.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/governed-tool-catalog.js +29 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/version.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-contracts/dist/version.js +2 -2
- package/node_modules/@oscharko-dev/keiko-contracts/package.json +1 -1
- package/node_modules/@oscharko-dev/keiko-evaluations/package.json +9 -9
- package/node_modules/@oscharko-dev/keiko-evidence/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-evidence/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-evidence/package.json +4 -4
- package/node_modules/@oscharko-dev/keiko-git/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-git/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-git/package.json +1 -1
- package/node_modules/@oscharko-dev/keiko-harness/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-harness/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-harness/package.json +7 -7
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/package.json +5 -5
- package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-capture/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-consolidation/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-governance/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-retrieval/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-vault/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/gateway.d.ts +10 -7
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/gateway.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/http.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/http.js +20 -4
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/index.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/index.js +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/normalize.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/normalize.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/normalize.js +24 -3
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/observability.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/observability.js +8 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-adapter.d.ts +7 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-adapter.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-adapter.js +70 -12
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/toolCatalogBridge.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/toolCatalogBridge.js +24 -6
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/package.json +4 -4
- package/node_modules/@oscharko-dev/keiko-quality-intelligence/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-sandbox/package.json +2 -2
- package/node_modules/@oscharko-dev/keiko-sdk/package.json +9 -9
- package/node_modules/@oscharko-dev/keiko-security/dist/redaction-code.d.ts +6 -0
- package/node_modules/@oscharko-dev/keiko-security/dist/redaction-code.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/redaction-diff.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/redaction-diff.js +77 -9
- package/node_modules/@oscharko-dev/keiko-security/dist/redaction.d.ts +12 -3
- package/node_modules/@oscharko-dev/keiko-security/dist/redaction.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/redaction.js +32 -5
- package/node_modules/@oscharko-dev/keiko-security/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-security/package.json +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/agent-run-governance.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/agent-run-governance.js +4 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/browser.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/browser.js +5 -5
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-stream-handlers.js +4 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/codingRunSessionLease.d.ts +13 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/codingRunSessionLease.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/codingRunSessionLease.js +8 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionStreamWriter.d.ts +3 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionStreamWriter.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionStreamWriter.js +4 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeControlPlane.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeControlPlane.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeControlPlane.js +9 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestrator.d.ts +25 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestrator.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestrator.js +127 -28
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRoutes.js +3 -7
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingSafeActivityProjection.js +25 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacade.js +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolInvocationRegistry.d.ts +12 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolInvocationRegistry.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolInvocationRegistry.js +14 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolIpc.d.ts +8 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolIpc.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolIpc.js +14 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolNativeEffect.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolNativeEffect.js +6 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolReplacementEdits.d.ts +3 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolReplacementEdits.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolReplacementEdits.js +28 -13
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessTree.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessTree.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessTree.js +53 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeHttpClient.js +3 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeLaunchProfile.d.ts +7 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeLaunchProfile.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeLaunchProfile.js +8 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativePolicy.d.ts +3 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativePolicy.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativePolicy.js +4 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeProtocol.d.ts +17 -7
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeProtocol.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeProtocol.js +36 -16
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRipgrepLaunch.d.ts +9 -7
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRipgrepLaunch.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRipgrepLaunch.js +53 -12
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRunStateSweep.d.ts +27 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRunStateSweep.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRunStateSweep.js +114 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeAdapter.d.ts +12 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeAdapter.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeAdapter.js +62 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeComposition.d.ts +8 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeComposition.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeComposition.js +52 -8
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeToolSchemas.d.ts +7 -7
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeToolSchemas.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeToolSchemas.js +7 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2History.d.ts +23 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2History.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2History.js +145 -55
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2HttpClient.d.ts +11 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2HttpClient.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2HttpClient.js +35 -11
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2LiveText.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2LiveText.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2LiveText.js +7 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimeHost.js +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimeResolver.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimeResolver.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimeResolver.js +10 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.js +13 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionRuntimeWorkspaceAuthority.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionRuntimeWorkspaceAuthority.js +3 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeProcessSupervisor.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeProcessSupervisor.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeProcessSupervisor.js +21 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-gateway.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-gateway.js +96 -23
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-tool-facade.js +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/command-runner-routes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/command-runner-routes.js +4 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/deps.d.ts +1 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/deps.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/deps.js +2 -80
- package/node_modules/@oscharko-dev/keiko-server/dist/diagnostics-log.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/diagnostics-log.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/diagnostics-log.js +8 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentRoutes.js +12 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/dap/dapDebugRoutes.js +5 -5
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/settings/editorSettingsEvents.js +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/snippets/workspaceSnippetsRoutes.js +3 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationRoutes.js +9 -8
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/watch/workspaceWatchRoutes.js +6 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-readiness.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-readiness.js +89 -5
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDiffTruncation.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDiffTruncation.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDiffTruncation.js +78 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDiffView.d.ts +9 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDiffView.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDiffView.js +54 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitRoutes.js +27 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/runRoutes.js +3 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/redaction-secrets.d.ts +13 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/redaction-secrets.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/redaction-secrets.js +85 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/relationship-activity-broadcast.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/relationship-activity-broadcast.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/relationship-activity-broadcast.js +4 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/relationship-handlers.js +3 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/run-handlers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/run-handlers.js +4 -14
- package/node_modules/@oscharko-dev/keiko-server/dist/runtime/containerRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/runtime/containerRoutes.js +4 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/sse-write.d.ts +42 -18
- package/node_modules/@oscharko-dev/keiko-server/dist/sse-write.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/sse-write.js +122 -35
- package/node_modules/@oscharko-dev/keiko-server/dist/sse.d.ts +6 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/sse.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/sse.js +13 -29
- package/node_modules/@oscharko-dev/keiko-server/dist/terminal-routes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/terminal-routes.js +5 -5
- package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolFacadeBridge.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolFacadeBridge.js +4 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolLifecycle.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolLifecycle.js +15 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolRuntimeAuthority.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolRuntimeAuthority.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolRuntimeAuthority.js +19 -5
- package/node_modules/@oscharko-dev/keiko-server/package.json +23 -23
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/arguments.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/arguments.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/arguments.js +2 -1
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/descriptor.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/descriptor.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/descriptor.js +6 -5
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/json.d.ts +9 -3
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/json.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/json.js +19 -8
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/opencode.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/opencode.js +6 -4
- package/node_modules/@oscharko-dev/keiko-tool-catalog/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-tools/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/package.json +7 -7
- package/node_modules/@oscharko-dev/keiko-verification/package.json +5 -5
- package/node_modules/@oscharko-dev/keiko-workflows/package.json +10 -10
- package/node_modules/@oscharko-dev/keiko-workspace/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/package.json +3 -3
- package/package.json +27 -27
- package/release-impact.catalog.json +70 -0
- package/vendor/oscharko-dev-keiko-activity-log-1.3.2.tgz +0 -0
- package/vendor/oscharko-dev-keiko-cli-1.3.2.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-connectors-1.3.1.tgz → oscharko-dev-keiko-connectors-1.3.2.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-contracts-1.3.2.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-evaluations-1.3.1.tgz → oscharko-dev-keiko-evaluations-1.3.2.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-evidence-1.3.1.tgz → oscharko-dev-keiko-evidence-1.3.2.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-git-1.3.1.tgz → oscharko-dev-keiko-git-1.3.2.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-harness-1.3.1.tgz → oscharko-dev-keiko-harness-1.3.2.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-local-knowledge-1.3.1.tgz → oscharko-dev-keiko-local-knowledge-1.3.2.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-memory-capture-1.3.1.tgz → oscharko-dev-keiko-memory-capture-1.3.2.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-memory-consolidation-1.3.1.tgz → oscharko-dev-keiko-memory-consolidation-1.3.2.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-memory-governance-1.3.1.tgz → oscharko-dev-keiko-memory-governance-1.3.2.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-memory-retrieval-1.3.1.tgz → oscharko-dev-keiko-memory-retrieval-1.3.2.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-memory-vault-1.3.1.tgz → oscharko-dev-keiko-memory-vault-1.3.2.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-model-gateway-1.3.2.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-quality-intelligence-1.3.1.tgz → oscharko-dev-keiko-quality-intelligence-1.3.2.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-sandbox-1.3.1.tgz → oscharko-dev-keiko-sandbox-1.3.2.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-sdk-1.3.1.tgz → oscharko-dev-keiko-sdk-1.3.2.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-security-1.3.2.tgz +0 -0
- package/vendor/oscharko-dev-keiko-server-1.3.2.tgz +0 -0
- package/vendor/oscharko-dev-keiko-tool-catalog-1.3.2.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-tools-1.3.1.tgz → oscharko-dev-keiko-tools-1.3.2.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-verification-1.3.1.tgz → oscharko-dev-keiko-verification-1.3.2.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-workflows-1.3.1.tgz → oscharko-dev-keiko-workflows-1.3.2.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-workspace-1.3.1.tgz → oscharko-dev-keiko-workspace-1.3.2.tgz} +0 -0
- package/dist/ui/static/_next/static/chunks/0dq9bimpknhi-.js +0 -1
- package/dist/ui/static/_next/static/chunks/1cirwobl5ywpw.js +0 -1
- package/dist/ui/static/_next/static/chunks/1ufe9d586c16n.js +0 -1
- package/dist/ui/static/_next/static/chunks/1xyltb603pg9u.css +0 -4
- package/dist/ui/static/_next/static/chunks/2ajat_rv2v0wp.js +0 -1
- package/dist/ui/static/_next/static/chunks/2bm_bps837c8s.js +0 -1
- package/dist/ui/static/_next/static/chunks/2l0_e_qyhvve_.js +0 -1
- package/dist/ui/static/_next/static/chunks/3-ejbbkmhwal-.js +0 -1
- package/dist/ui/static/_next/static/chunks/4598s2z_w_1la.js +0 -1
- package/vendor/oscharko-dev-keiko-activity-log-1.3.1.tgz +0 -0
- package/vendor/oscharko-dev-keiko-cli-1.3.1.tgz +0 -0
- package/vendor/oscharko-dev-keiko-contracts-1.3.1.tgz +0 -0
- package/vendor/oscharko-dev-keiko-model-gateway-1.3.1.tgz +0 -0
- package/vendor/oscharko-dev-keiko-security-1.3.1.tgz +0 -0
- package/vendor/oscharko-dev-keiko-server-1.3.1.tgz +0 -0
- package/vendor/oscharko-dev-keiko-tool-catalog-1.3.1.tgz +0 -0
- /package/dist/ui/static/_next/static/{UsrqVgAeCxovpV7C_di1N → xKDN0SO4oRp9dU6qR6ood}/_buildManifest.js +0 -0
- /package/dist/ui/static/_next/static/{UsrqVgAeCxovpV7C_di1N → xKDN0SO4oRp9dU6qR6ood}/_clientMiddlewareManifest.js +0 -0
- /package/dist/ui/static/_next/static/{UsrqVgAeCxovpV7C_di1N → xKDN0SO4oRp9dU6qR6ood}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,72859,e=>{let t,n;var r=e.i(17463),i=e.i(25202),o=e.i(75297),a=e.i(24541),s=e.i(86563),l=e.i(20081),u=e.i(58773);let c=new Map(),d=new WeakMap(),f=!1,p=0,v={essential:0,background:0};function m(e,t,n){var _e$removeEventListene;(_e$removeEventListene=e.removeEventListener)===null||_e$removeEventListene===void 0||_e$removeEventListene.call(e,t,n);}function w(){return"u">typeof document&&"hidden"===document.visibilityState;}function y(e){void 0!==e.reconnectTimer&&(window.clearTimeout(e.reconnectTimer),e.reconnectTimer=void 0);}function h(e,t){var _e$source;let n=e.dispatchersByType.get(t);return void 0!==n||(n=n=>{d.set(n,e.sourceGeneration),function(e,t,n,_e$lastEventId){let r=t.lastEventId;if(!/^\d+$/u.test(r))return;let i=Number(r);Number.isSafeInteger(i)&&!(i<0)&&(e.lastEventId=n?i:Math.max((_e$lastEventId=e.lastEventId)!==null&&_e$lastEventId!==void 0?_e$lastEventId:0,i));}(e,n,"editor-debug:snapshot-required"===t||"editor-watch:snapshot"===t||"editor-watch:snapshot-required"===t);let r=e.subscribersByType.get(t);if(void 0!==r&&0!==r.size)for(let e of r)e(n);},e.dispatchersByType.set(t,n),(_e$source=e.source)!==null&&_e$source!==void 0&&_e$source.addEventListener(t,n)),n;}function g(e){let t=e.capacityLease;if(e.capacityLease=void 0,t!==null&&t!==void 0&&t(),null!==e.source){for(let[t,n]of e.dispatchersByType)m(e.source,t,n);e.source.close(),e.source=null;}}function b(e){if(!(0===e.refCount||void 0!==e.reconnectTimer||w())&&"u">typeof EventSource){let t;e.reconnectTimer=window.setTimeout(()=>{e.reconnectTimer=void 0,A();},(t=Math.min(3e4,1e3*2**e.reconnectAttempts),e.reconnectAttempts+=1,t+(0,o.$)(500)));}}function T(e){e.sessionRepairAttempted=!1,e.failureStreakCorrelationId=void 0,e.acknowledgedRepairCorrelationId=void 0;}function S(e){y(e),g(e),T(e);}function k(){void 0!==n&&(window.clearInterval(n),n=void 0);}function C(e){var _e$url$split$;let t=(_e$url$split$=e.url.split("?")[0])!==null&&_e$url$split$!==void 0?_e$url$split$:"";return 0===e.essentialRefCount||t.startsWith("/api/editor/workspace-watch/")||t.startsWith("/api/editor/watch/")||t.startsWith("/api/editor/debug/");}function E(e){return null!==e.source||void 0!==e.capacityLease;}function I(e,t,n){if(0===e.length)return[];v[n]=(v[n]+t)%e.length;let r=v[n];return[...e.slice(r),...e.slice(0,r)];}function R(e){return[...e.filter(E),...e.filter(e=>!E(e))];}function A(e="retain"){var t;let o,d,f,v,m,y=w()?[]:[...c.values()].filter(e=>e.refCount>0&&void 0===e.reconnectTimer&&(e.essentialRefCount>0||!(0,i.l)())),L=(t="rotate"===e?I:R,o=y.filter(e=>!C(e)&&E(e)),d=y.filter(e=>e.essentialRefCount>0&&!o.includes(e)),f=y.filter(e=>0===e.essentialRefCount),v=Math.min(3-o.length,d.length),m=3-o.length-v,new Set([...o,...t(d,v,"essential"),...t(f,m,"background")].slice(0,3)));for(let e of c.values())!L.has(e)&&E(e)&&S(e);for(let e of L)!function(e,_e$failureStreakCorre){!(0===e.refCount||null!==e.source||void 0!==e.capacityLease||0===e.essentialRefCount&&(0,i.l)()||w())&&"u">typeof EventSource&&null!==(0,r.I)(e.url)&&((_e$failureStreakCorre=e.failureStreakCorrelationId)!==null&&_e$failureStreakCorre!==void 0?_e$failureStreakCorre:e.failureStreakCorrelationId=(0,l.y)(),e.capacityLease=(0,i.F)(()=>function(e){let t=(0,r.w)(function(e){if(void 0===e.lastEventId)return e.url;let t=new URL(e.url,window.location.origin);return t.searchParams.set("lastEventId",String(e.lastEventId)),`${t.pathname}${t.search}`;}(e));if(null!==t)for(let n of(e.sourceGeneration=p+=1,e.source=t,t.onopen=()=>{let t,n;t=e.failureStreakCorrelationId,n=e.acknowledgedRepairCorrelationId,void 0!==t&&void 0!==n&&(0,u.reportStreamSessionRecovered)("shared-event-source",t,n),e.reconnectAttempts=0,T(e);},t.onerror=()=>{var _e$failureStreakCorre2;let n=(_e$failureStreakCorre2=e.failureStreakCorrelationId)!==null&&_e$failureStreakCorre2!==void 0?_e$failureStreakCorre2:e.failureStreakCorrelationId=(0,l.y)();2===t.readyState&&0===e.reconnectAttempts?(0,s.A)({interaction:"event-stream-reconnecting"},n):(0,a.v)((0,a.e)("shared-event-source",t.readyState),{correlationId:n}),g(e),e.sessionRepairAttempted||(e.sessionRepairAttempted=!0,(0,u.repairLocalCodingAppSessionForStream)("shared-event-source",n).then(t=>{e.failureStreakCorrelationId===n&&(t.acknowledged?e.acknowledgedRepairCorrelationId=t.repairCorrelationId:e.sessionRepairAttempted=!1);})),b(e),A();},e.subscribersByType.keys()))t.addEventListener(n,h(e,n));}(e),t=>{g(e),"unavailable"===t&&b(e),queueMicrotask(()=>A());},{yieldable:C(e),correlationId:e.failureStreakCorrelationId}));}(e);y.length<=3?k():n!==null&&n!==void 0?n:n=window.setInterval(()=>A("rotate"),5e3);}function L(e){e&&(v.essential=0,v.background=0),A();}function q(){if(w()){for(let e of c.values())S(e);k();return;}A();}function B(e,n,r,o={}){let a=function(e){let n=c.get(e);if(void 0!==n)return n;let r={url:e,source:null,capacityLease:void 0,subscribersByType:new Map(),dispatchersByType:new Map(),refCount:0,essentialRefCount:0,lastEventId:void 0,reconnectAttempts:0,reconnectTimer:void 0,sourceGeneration:0,sessionRepairAttempted:!1,failureStreakCorrelationId:void 0,acknowledgedRepairCorrelationId:void 0};return c.set(e,r),!f&&"u">typeof document&&(document.addEventListener("visibilitychange",q),f=!0,t=(0,i.S)(L)),r;}(e),s="background"!==o.priority;for(let e of(a.refCount+=1,s&&(a.essentialRefCount+=1),n)){var _a$subscribersByType$;let t=(_a$subscribersByType$=a.subscribersByType.get(e))!==null&&_a$subscribersByType$!==void 0?_a$subscribersByType$:new Set();t.add(r),a.subscribersByType.set(e,t),h(a,e);}A();let l=!1;return()=>{if(!l){var _t;for(let e of(l=!0,n)){let t=a.subscribersByType.get(e);if(t!==null&&t!==void 0&&t.delete(r),(t===null||t===void 0?void 0:t.size)===0){a.subscribersByType.delete(e);let t=a.dispatchersByType.get(e);void 0!==t&&null!==a.source&&m(a.source,e,t);}}a.refCount-=1,s&&(a.essentialRefCount-=1),(a.refCount>0&&0===a.essentialRefCount&&(0,i.l)()&&S(a),a.refCount>0)?A():(y(a),g(a),c.delete(e),A(),f&&!(c.size>0)&&"u">typeof document&&(document.removeEventListener("visibilitychange",q),f=!1,(_t=t)!==null&&_t!==void 0&&_t(),t=void 0));}};}async function M(e,t,n,r,i){let o=B(e,t,n);i===null||i===void 0||i.addEventListener("abort",o,{once:!0});try{var _c$get;return await((i===null||i===void 0?void 0:i.aborted)===!0?Promise.reject(new DOMException("Cancelled","AbortError")):((_c$get=c.get(e))===null||_c$get===void 0||(_c$get=_c$get.source)===null||_c$get===void 0?void 0:_c$get.readyState)===1?Promise.resolve():new Promise((t,n)=>{let r=!1,o=()=>void 0,a=e=>{r||(r=!0,window.clearTimeout(l),i!==null&&i!==void 0&&i.removeEventListener("abort",s),o(),void 0===e?t():n(e));},s=()=>a(new DOMException("Cancelled","AbortError")),l=window.setTimeout(()=>a(new DOMException("Stream unavailable","TimeoutError")),15e3);i!==null&&i!==void 0&&i.addEventListener("abort",s,{once:!0}),o=B(e,["open","error"],e=>{queueMicrotask(()=>a("open"===e.type?void 0:TypeError("Stream unavailable")));});})),await r();}finally{i!==null&&i!==void 0&&i.removeEventListener("abort",o),o();}}e.s(["refreshSharedEventSource",0,function(e){let t=c.get(e);void 0!==t&&(S(t),A());},"sharedEventSourceGeneration",0,function(e){var _d$get;return(_d$get=d.get(e))!==null&&_d$get!==void 0?_d$get:0;},"subscribeSharedEventSource",0,B,"withSharedEventSourceOpen",0,M]);},25202,e=>{var t=e.i(24541);let n=new Set(),r=0;function i(){return r>0;}function o(){let e=i();for(let t of n)t(e);}let a=0,s=!1;function l(e,n){var _e$finish;e.ended||(e.ended=!0,e.abort.abort(),window.clearTimeout(e.acquisitionTimer),window.clearTimeout(e.leaseTimer),"unavailable"===n&&(0,t.v)("[keiko] persistent stream origin capacity acquisition unavailable",{correlationId:e.options.correlationId,errorKind:"timeout"}),e.onReleased(n),(_e$finish=e.finish)===null||_e$finish===void 0?void 0:_e$finish.call(e));}async function u(e,n,r){if(!r.ended&&!1!==r.options.yieldable)try{var _t$pending;let t=await e.query();r.waiterQueryFailed=!1,((_t$pending=t.pending)===null||_t$pending===void 0?void 0:_t$pending.some(e=>e.name===n))&&l(r,"expired");}catch{if(r.ended||r.waiterQueryFailed)return;r.waiterQueryFailed=!0,(0,t.v)("[keiko] persistent stream contention query unavailable",{correlationId:r.options.correlationId,errorKind:"unavailable"});}}async function c(e,t,n){let r=new Promise(e=>{n.finish=e;});!1!==n.options.yieldable&&(n.leaseTimer=window.setInterval(()=>{u(e,t,n);},5e3)),window.clearTimeout(n.acquisitionTimer),n.onGranted(),await r;}async function d(e,t){var _ref,_sort$;let n=await e.query();return(_ref=(_sort$=[...t].sort((e,t)=>{let r=e=>{var _n$pending$filter$len,_n$pending;return(_n$pending$filter$len=(_n$pending=n.pending)===null||_n$pending===void 0?void 0:_n$pending.filter(t=>t.name===e).length)!==null&&_n$pending$filter$len!==void 0?_n$pending$filter$len:0;};return r(e)-r(t);})[0])!==null&&_sort$!==void 0?_sort$:t[0])!==null&&_ref!==void 0?_ref:"keiko:persistent-stream:0";}async function f(e,t){let n=a++%3,r=Array.from({length:3},(e,t)=>`keiko:persistent-stream:${String((n+t)%3)}`);for(let n of r)if(await function(e,t,n){return new Promise(r=>{e.request(t,{ifAvailable:!0},async i=>{null===i||n.ended||n.granted?r(!1):(n.granted=!0,r(!0),await c(e,t,n));}).catch(()=>r(!1));});}(e,n,t))return;if(t.ended)return;let i=await d(e,r);await e.request(i,{signal:t.abort.signal},async()=>{t.ended||(t.granted=!0,await c(e,i,t));});}e.s(["F",0,function(e,n,r={}){let i="u"<typeof navigator?void 0:navigator.locks;if(void 0===i)return s||(s=!0,(0,t.v)("[keiko] persistent streams unavailable: origin capacity unsupported")),()=>void 0;let o={abort:new AbortController(),onGranted:e,onReleased:n,options:r,ended:!1,granted:!1,waiterQueryFailed:!1,acquisitionTimer:0,leaseTimer:void 0,finish:void 0};return o.acquisitionTimer=window.setTimeout(()=>l(o,"unavailable"),15e3),f(i,o).catch(()=>l(o,"unavailable")),()=>l(o,"cancelled");},"l",0,i,"K",0,function(){1===(r+=1)&&o();let e=!1;return()=>{e||(e=!0,0===(r=Math.max(0,r-1))&&o());};},"S",0,function(e){return n.add(e),()=>{n.delete(e);};}]);},86563,e=>{var t=e.i(24541);function n(e,n){(0,t.v)(`[keiko] coding workbench interaction: ${e.interaction}`,{codingWorkbenchInteraction:e,correlationId:n});}e.s(["J",0,function(e){return"build"===e||"plan"===e?e:"custom";},"A",0,n,"z",0,function(e,t){let r=t.currentTarget.parentElement;!(r instanceof HTMLDetailsElement)||t.isDefaultPrevented()||n({interaction:"details-toggled",section:e,expanded:!r.open});}]);},17463,e=>{function t(e){let t,n=e.trim();if(0===n.length||/[\u0000-\u001f\u007f]/u.test(n)||"null"===window.location.origin)return null;try{t=new URL(n,window.location.origin);}catch{return null;}return t.origin!==window.location.origin||""!==t.username||""!==t.password||!t.pathname.startsWith("/api/")||t.hash.length>0?null:`${t.pathname}${t.search}`;}e.s(["w",0,function(e){if("u"<typeof EventSource)return null;let n=t(e);return null===n?null:new EventSource(n);},"I",0,t]);}]);})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[97633,e=>{let t=Object.freeze(["staged","unstaged"]),n=Object.freeze(["staged","worktree"]),r=Object.freeze(["ctx","add","del","meta"]),i=Object.freeze(["added","modified","deleted","renamed"]);function s(e){return"object"==typeof e&&null!==e&&!Array.isArray(e);}function l(e,t){return Object.keys(e).every(e=>t.includes(e));}function a(e,t){return"number"==typeof e&&Number.isInteger(e)&&e>=t;}function o(e,t,n=!1){return"string"==typeof e&&(n||e.length>0)&&e.length<=t&&!e.includes("\0");}function u(e){return!(!o(e,4096)||new TextEncoder().encode(e).length>4096||e.startsWith("/")||e.startsWith("\\")||e.includes("\\"))&&e.split("/").every(e=>e.length>0&&"."!==e&&".."!==e);}function d(e){return"string"==typeof e&&t.includes(e);}function c(e){return"string"==typeof e&&n.includes(e);}function h(e){return"string"==typeof e&&r.includes(e);}function p(e){return"string"==typeof e&&i.includes(e);}function f(e){let t,n;return s(e)&&l(e,["kind","oldLine","newLine","text"])&&h(e.kind)&&(t=e.oldLine,n=e.newLine,"ctx"===e.kind?a(t,1)&&a(n,1):"add"===e.kind?null===t&&a(n,1):"del"===e.kind?a(t,1)&&null===n:"meta"===e.kind&&null===t&&null===n)&&o(e.text,16384,!0);}function m(e){var t;return s(e)&&l(e,["header","oldStart","oldCount","newStart","newCount","lines","truncated"])&&o(e.header,512)&&a((t=e).oldStart,0)&&a(t.oldCount,0)&&a(t.newStart,0)&&a(t.newCount,0)&&Array.isArray(e.lines)&&e.lines.length<=2048&&e.lines.every(f)&&"boolean"==typeof e.truncated;}function v(e){var t;return!!s(e)&&!!l(e,["path","oldPath","layer","status","binary","hunks","addedLines","removedLines","truncated"])&&p(e.status)&&c(e.layer)&&!!u(e.path)&&(void 0===e.oldPath||!!u(e.oldPath))&&("renamed"===e.status?"string"==typeof e.oldPath:void 0===e.oldPath)&&"boolean"==typeof e.binary&&Array.isArray((t=e).hunks)&&t.hunks.length<=256&&t.hunks.every(m)&&(!0!==e.binary||Array.isArray(e.hunks)&&0===e.hunks.length&&0===e.addedLines&&0===e.removedLines)&&a(e.addedLines,0)&&a(e.removedLines,0)&&"boolean"==typeof e.truncated;}let g=/^(?:[0-9a-f]{40}|[0-9a-f]{64})$/u,x=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d{3})?Z$/u;function y(e){return s(e)&&l(e,["line","commitHash","author","authorTime","summary"])&&a(e.line,1)&&"string"==typeof e.commitHash&&g.test(e.commitHash)&&o(e.author,256)&&"string"==typeof e.authorTime&&x.test(e.authorTime)&&Number.isFinite(Date.parse(e.authorTime))&&o(e.summary,512,!0);}function b(e){try{return e();}catch(e){return{ok:!1,errors:[`payload could not be inspected: ${e instanceof Error?e.name:"unknown error"}`]};}}e.s(["GIT_AGENT_CONTEXT_MAX_BLAME_LINES",0,32,"GIT_AGENT_CONTEXT_MAX_FILES",0,8,"GIT_AGENT_CONTEXT_MAX_HUNKS",0,16,"GIT_AGENT_CONTEXT_MAX_RESULT_BYTES",0,196608,"GIT_EDITOR_BLAME_AUTHOR_MAX_CHARS",0,256,"GIT_EDITOR_BLAME_MAX_BYTES",0,262144,"GIT_EDITOR_BLAME_MAX_LINES",0,2e3,"GIT_EDITOR_BLAME_SUMMARY_MAX_CHARS",0,512,"GIT_EDITOR_DIFF_FILE_STATUSES",0,i,"GIT_EDITOR_DIFF_LAYERS",0,n,"GIT_EDITOR_DIFF_LINE_KINDS",0,r,"GIT_EDITOR_DIFF_MAX_BYTES",0,524288,"GIT_EDITOR_DIFF_MAX_FILES",0,400,"GIT_EDITOR_DIFF_MAX_HEADER_CHARS",0,512,"GIT_EDITOR_DIFF_MAX_HUNKS_PER_FILE",0,256,"GIT_EDITOR_DIFF_MAX_LINES_PER_HUNK",0,2048,"GIT_EDITOR_DIFF_MAX_LINE_CHARS",0,16384,"GIT_EDITOR_DIFF_SCOPES",0,t,"GIT_EDITOR_PATH_MAX_BYTES",0,4096,"GIT_EDITOR_SCHEMA_VERSION",0,"1","isGitEditorBlameLine",0,y,"isGitEditorDiffFile",0,v,"isGitEditorDiffFileStatus",0,p,"isGitEditorDiffHunk",0,m,"isGitEditorDiffLayer",0,c,"isGitEditorDiffLine",0,f,"isGitEditorDiffLineKind",0,h,"isGitEditorDiffScope",0,d,"parseGitEditorBlameRequest",0,function(e){return b(()=>function(e){if(!s(e))return{ok:!1,errors:["request must be an object"]};let t=[];return l(e,["schemaVersion","path","startLine","maxLines"])||t.push("request has unknown fields"),"1"!==e.schemaVersion&&t.push("schemaVersion invalid"),u(e.path)||t.push("path must be a bounded workspace-relative path"),a(e.startLine,1)||t.push("startLine must be a positive integer"),(!a(e.maxLines,1)||"number"==typeof e.maxLines&&e.maxLines>2e3)&&t.push(`maxLines must be between 1 and ${String(2e3)}`),0===t.length?{ok:!0,value:e}:{ok:!1,errors:t};}(e));},"parseGitEditorBlameResponse",0,function(e){return b(()=>function(e){var t,n;if(!s(e))return{ok:!1,errors:["response must be an object"]};let r=[];return l(e,["schemaVersion","path","startLine","lines","truncated","totalLines","totalBytes","maxBytes","maxLines"])||r.push("response has unknown fields"),"1"!==e.schemaVersion&&r.push("schemaVersion invalid"),u(e.path)||r.push("path must be a bounded workspace-relative path"),a(e.startLine,1)||r.push("startLine must be a positive integer"),!Array.isArray(e.lines)||e.lines.length>2e3?r.push(`lines must be an array of at most ${String(2e3)} entries`):e.lines.every(y)||r.push("lines contain an invalid entry"),"boolean"!=typeof e.truncated&&r.push("truncated must be a boolean"),a(e.totalLines,0)||r.push("totalLines must be a non-negative integer"),a(e.totalBytes,0)||r.push("totalBytes must be a non-negative integer"),262144!==e.maxBytes&&r.push("maxBytes invalid"),2e3!==e.maxLines&&r.push("maxLines invalid"),t=e,n=r,Array.isArray(t.lines)&&a(t.totalLines,0)&&t.totalLines<t.lines.length&&n.push("totalLines must not be smaller than lines.length"),a(t.totalBytes,0)&&t.totalBytes>262144&&!0!==t.truncated&&n.push("truncated must be true when totalBytes exceeds maxBytes"),0===r.length?{ok:!0,value:e}:{ok:!1,errors:r};}(e));},"parseGitEditorDiffRequest",0,function(e){return b(()=>function(e){if(!s(e))return{ok:!1,errors:["request must be an object"]};let t=[];return l(e,["schemaVersion","scope","path"])||t.push("request has unknown fields"),"1"!==e.schemaVersion&&t.push("schemaVersion invalid"),d(e.scope)||t.push("scope must be staged or unstaged"),void 0===e.path||u(e.path)||t.push("path must be a bounded workspace-relative path when present"),0===t.length?{ok:!0,value:e}:{ok:!1,errors:t};}(e));},"parseGitEditorDiffResponse",0,function(e){return b(()=>function(e){var t,n;if(!s(e))return{ok:!1,errors:["response must be an object"]};let r=[];return l(e,["schemaVersion","scope","files","truncated","totalFiles","totalBytes","maxBytes","maxFiles"])||r.push("response has unknown fields"),"1"!==e.schemaVersion&&r.push("schemaVersion invalid"),d(e.scope)||r.push("scope must be staged or unstaged"),!Array.isArray(e.files)||e.files.length>400?r.push(`files must be an array of at most ${String(400)} entries`):e.files.every(v)?d(e.scope)&&!e.files.every(t=>t.layer===("staged"===e.scope?"staged":"worktree"))&&r.push("file layers must match the response scope"):r.push("files contain an invalid entry"),"boolean"!=typeof e.truncated&&r.push("truncated must be a boolean"),a(e.totalFiles,0)||r.push("totalFiles must be a non-negative integer"),a(e.totalBytes,0)||r.push("totalBytes must be a non-negative integer"),524288!==e.maxBytes&&r.push("maxBytes invalid"),400!==e.maxFiles&&r.push("maxFiles invalid"),t=e,n=r,Array.isArray(t.files)&&a(t.totalFiles,0)&&t.totalFiles<t.files.length&&n.push("totalFiles must not be smaller than files.length"),a(t.totalBytes,0)&&t.totalBytes>524288&&!0!==t.truncated&&n.push("truncated must be true when totalBytes exceeds maxBytes"),0===r.length?{ok:!0,value:e}:{ok:!1,errors:r};}(e));}]);},60865,e=>{e.s(["u",0,{display:"block"},"z",0,{margin:0,position:"static"},"k",0,{margin:0,minWidth:0,padding:0,border:0},"w",0,{margin:0,minWidth:0},"Z",0,{margin:0,fontWeight:"inherit"},"d",0,{listStyle:"none",margin:0},"$",0,{listStyle:"none",margin:0,padding:0}]);},17336,e=>{var t=e.i(43476),n=e.i(85912),r=e.i(71645),i=e.i(95508),s=e.i(18829),l=e.i(83449),a=e.i(14664),o=e.i(11257);function u(e,t){return e instanceof s.a?{code:e.code,message:e.message}:e instanceof Error?{code:"INTERNAL",message:e.message}:{code:"INTERNAL",message:t("reviewWidget.unexpectedError")};}function d(e){return("dry-run"===e.status||"fix-proposed"===e.status)&&void 0!==e.proposedDiff&&void 0===e.appliedAt;}function c(e){return void 0!==e.proposedDiff&&""!==e.proposedDiff;}function h({href:e,hasManifest:r,error:i}){let s=(0,n.a)();return r?(0,t.jsx)("a",{className:"rv-evidence-link",href:e,target:"_blank",rel:"noopener noreferrer",children:s("reviewWidget.evidence")}):null!==i?(0,t.jsx)("span",{className:"rv-evidence-link rv-evidence-error",role:"alert",children:s("reviewWidget.evidenceError",{message:i.message})}):(0,t.jsx)("button",{type:"button",className:"rv-evidence-link rv-evidence-disabled",disabled:!0,children:s("reviewWidget.evidence")});}function p({report:e,applying:n,confirmApply:r,diffFileCount:i,onApplyClick:s,t:l}){return void 0!==e.appliedAt?(0,t.jsx)("span",{className:"rv-final mono",children:l("reviewWidget.applied")}):d(e)?(0,t.jsx)("button",{type:"button",className:"arun-btn","aria-disabled":n,onClick:s,children:function({applying:e,confirmApply:t,diffFileCount:n,t:r}){return e?r("reviewWidget.applying"):t?r(1===n?"reviewWidget.confirmApplySingular":"reviewWidget.confirmApplyPlural",{count:n}):r("reviewWidget.apply");}({applying:n,confirmApply:r,diffFileCount:i,t:l})}):null;}function f(e){return e.loading||null===e.error?null:(0,t.jsxs)("div",{role:"alert",className:"rv-error",children:["NOT_FOUND"===e.error.code?e.t("reviewWidget.notFound"):(0,t.jsxs)(t.Fragment,{children:[e.error.message," ",(0,t.jsxs)("span",{className:"err-code mono",children:["(",e.error.code,")"]})]}),e.hasManifest||null!==e.evidenceError?(0,t.jsx)("span",{className:"rv-error-evidence",children:(0,t.jsx)(h,{href:e.evidenceHref,hasManifest:e.hasManifest,error:e.evidenceError})}):null]});}e.s(["ReviewWidget",0,function({runId:e,onRunIdSubmit:s}){var _g$changedFiles,_O$files$length;var m;let v=(0,n.a)(),[g,x]=(0,r.useState)(null),[y,b]=(0,r.useState)(!1),[k,w]=(0,r.useState)(null),[j,N]=(0,r.useState)(!1),[L,_]=(0,r.useState)(null),[T,E]=(0,r.useState)(!1),[I,S]=(0,r.useState)(null),[A,F]=(0,r.useState)(null),[D,R]=(0,r.useState)(""),[W,$]=(0,r.useState)(!1),B=(0,r.useRef)(null);(0,r.useEffect)(()=>()=>{null!==B.current&&window.clearTimeout(B.current);},[]),(0,r.useEffect)(()=>{if(void 0===e||""===e)return;let t=!1;return N(!0),_(null),x(null),b(!1),w(null),F(null),Promise.allSettled([(0,i.LQ)(e),(0,i.lh)(e)]).then(([e,n])=>{if(!t){if("fulfilled"===n.status)b(!0),w(null);else{let e=u(n.reason,v);b(!1),w("NOT_FOUND"===e.code?null:e);}if("fulfilled"===e.status){x(e.value.report),N(!1);return;}_(u(e.reason,v)),N(!1);}}),()=>{t=!0;};},[e,v]);let M=`/api/evidence/${encodeURIComponent(e!==null&&e!==void 0?e:"")}`,O=(0,r.useMemo)(()=>(g===null||g===void 0?void 0:g.proposedDiff)!==void 0?(0,a.g)(g.proposedDiff):null,[g===null||g===void 0?void 0:g.proposedDiff]),G=(_g$changedFiles=g===null||g===void 0?void 0:g.changedFiles)!==null&&_g$changedFiles!==void 0?_g$changedFiles:[],C=(0,r.useMemo)(()=>{var _O$files$reduce,_O$files$reduce2;return{added:(_O$files$reduce=O===null||O===void 0?void 0:O.files.reduce((e,t)=>e+t.addedLines,0))!==null&&_O$files$reduce!==void 0?_O$files$reduce:0,removed:(_O$files$reduce2=O===null||O===void 0?void 0:O.files.reduce((e,t)=>e+t.removedLines,0))!==null&&_O$files$reduce2!==void 0?_O$files$reduce2:0};},[O]),H=(_O$files$length=O===null||O===void 0?void 0:O.files.length)!==null&&_O$files$length!==void 0?_O$files$length:0,P=null===O||0===O.files.length?null:Math.min(A!==null&&A!==void 0?A:0,O.files.length-1),X=null!==P?O===null||O===void 0?void 0:O.files[P]:void 0,U=(g===null||g===void 0?void 0:g.status)==="running";return void 0===e||""===e?(0,t.jsxs)("section",{className:"review rv-empty","aria-label":v("reviewWidget.diffReviewLabel"),children:[(0,t.jsx)("h2",{className:"rv-empty-h",children:v("reviewWidget.heading")}),void 0!==s?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"rv-empty-p",children:v("reviewWidget.pasteRunId")}),(0,t.jsxs)("form",{className:"rv-empty-form",onSubmit:e=>{e.preventDefault();let t=D.trim();0!==t.length&&s(t);},children:[(0,t.jsx)("label",{className:"rv-empty-label",htmlFor:"rv-runid-input",children:v("reviewWidget.runIdLabel")}),(0,t.jsx)("input",{id:"rv-runid-input",className:"rv-runid-input mono",type:"text",value:D,onChange:e=>R(e.target.value),placeholder:v("reviewWidget.runIdPlaceholder")}),(0,t.jsx)("button",{type:"submit",className:"arun-btn",children:v("reviewWidget.loadRun")})]})]}):(0,t.jsx)("p",{className:"rv-empty-p",children:v("reviewWidget.enterRunIdWindowConfig")})]}):(0,t.jsxs)("section",{className:"review","aria-label":v("reviewWidget.diffReviewLabel"),children:[j&&(0,t.jsxs)("output",{className:"rv-loading","aria-busy":"true","aria-label":v("reviewWidget.loadingDiff"),children:[(0,t.jsx)("span",{className:"rv-skel"}),(0,t.jsx)("span",{className:"rv-skel rv-skel-sm"})]}),(0,t.jsx)(f,{loading:j,error:L,hasManifest:y,evidenceError:k,evidenceHref:M,t:v}),(0,t.jsx)("p",{role:"status","aria-live":"polite",className:!j&&null===L&&null!==g&&U?"rv-no-diff":"sr-only",children:!j&&null===L&&null!==g&&U?v("reviewWidget.stillRunning"):""}),!j&&null===L&&null!==g&&!U&&!c(g)&&(0,t.jsx)("p",{className:"rv-no-diff",children:v("reviewWidget.noDiff")}),!j&&null===L&&null!==g&&c(g)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"rv-header",children:[(0,t.jsx)("span",{className:"rv-status mono",children:(0,l.u)(g.status)}),void 0!==g.modelId&&(0,t.jsx)("span",{className:"rv-model mono",children:g.modelId}),(0,t.jsxs)("span",{className:"rv-counts mono",children:[null!==O&&(1===H?v("reviewWidget.fileCountSingular",{count:H}):v("reviewWidget.fileCountPlural",{count:H}))," ",(0,t.jsxs)("span",{className:"rv-stat add",children:["+",C.added]})," ",(0,t.jsxs)("span",{className:"rv-stat del",children:["−",C.removed]})]}),(0,t.jsx)("span",{className:"spacer"}),(0,t.jsx)(h,{href:M,hasManifest:y,error:k})]}),null!==O&&O.files.length>0&&null!==P&&void 0!==X&&(0,t.jsxs)("div",{className:"rv-layout",children:[(0,t.jsx)("nav",{className:"rv-filelist","aria-label":v("reviewWidget.changedFilesLabel"),children:(0,t.jsx)("ul",{children:O.files.map((e,n)=>{let r=G.find(t=>t.path===e.path),i=P===n;return(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",className:"rv-filerow",title:e.path,"aria-pressed":i,"aria-controls":i?`rv-file-${n}`:void 0,onClick:()=>{F(n);},children:[(0,t.jsx)("span",{className:"rv-filerow-path mono",children:function(e){if(e.length<=40)return e;let t=e.split("/");return t.length<=2?e:`…/${t.slice(-2).join("/")}`;}(e.path)}),(0,t.jsxs)("span",{className:"rv-stat add",children:["+",e.addedLines]}),(0,t.jsxs)("span",{className:"rv-stat del",children:["−",e.removedLines]}),(r===null||r===void 0?void 0:r.elevatedReview)===!0&&(0,t.jsx)("span",{className:"rv-elevated","aria-label":v("reviewWidget.elevatedReview"),children:"!"})]})},e.path);})})}),(0,t.jsxs)("div",{className:"rv-body",children:[(0,t.jsx)(o.b,{file:X,index:P,changedFiles:G,sectionRef:()=>void 0},X.path),O.truncated&&(0,t.jsxs)("p",{role:"note",className:"rv-truncated",children:[v("reviewWidget.truncated.prefix")," ",y?(0,t.jsx)("a",{href:M,target:"_blank",rel:"noopener noreferrer",children:v("reviewWidget.truncated.linkText")}):v("reviewWidget.truncated.linkText")," ",v("reviewWidget.truncated.suffix")]})]})]}),(0,t.jsxs)("div",{className:"rv-controls",children:[(0,t.jsx)("output",{"aria-live":"polite",className:"rv-apply-status",children:(m=g.appliedAt,T?v("reviewWidget.applying"):void 0!==m?v("reviewWidget.applied"):"")}),null!==I&&(0,t.jsx)("span",{role:"alert",className:"rv-apply-error",children:I.message}),(0,t.jsx)(p,{report:g,applying:T,confirmApply:W,diffFileCount:H,onApplyClick:()=>{if(!T){if(!W){$(!0),null!==B.current&&window.clearTimeout(B.current),B.current=window.setTimeout(()=>{$(!1),B.current=null;},6e3);return;}null!==B.current&&(window.clearTimeout(B.current),B.current=null),$(!1),void 0!==e&&null!==g&&d(g)&&!T&&(E(!0),S(null),(0,i.OK)(e).then(e=>{x(e.report),E(!1);}).catch(e=>{S(u(e,v)),E(!1);}));}},t:v})]})]})]});}]);},14664,e=>{var t=e.i(97633);let n=t.GIT_EDITOR_DIFF_MAX_BYTES,r=t.GIT_EDITOR_DIFF_MAX_FILES,i="(unknown)";function s(e){return e.startsWith("a/")||e.startsWith("b/")?e.slice(2):e;}function l(e){return{path:e,layer:"worktree",status:"modified",binary:!1,hunks:[],addedLines:0,removedLines:0,truncated:!1};}function a(e){null!==e.current&&null!==e.currentHunk&&e.currentHunk.lines.some(({kind:e})=>"add"===e||"del"===e)&&e.current.hunks.push(e.currentHunk),e.currentHunk=null;}function o(e){a(e),null!==e.current&&(e.files.length<r?e.files.push(e.current):e.truncated=!0),e.current=null;}e.s(["U",0,i,"g",0,function(e){let t,r=new TextEncoder().encode(e).byteLength;if(0===e.length)return{files:[],truncated:!1,totalBytes:0};let{input:u,truncated:d,byteTruncated:c}=function(e,t){if(t<=n)return{input:e,truncated:!1,byteTruncated:!1};let r=new TextEncoder().encode(e),i=new TextDecoder().decode(r.slice(0,n)),s=i.lastIndexOf("\n");return{input:-1===s?i:i.slice(0,s+1),truncated:!0,byteTruncated:!0};}(e,r),h=""===(t=u.split("\n")).at(-1)?t.slice(0,-1):t,p={files:[],current:null,currentHunk:null,oldLine:0,newLine:0,truncated:d},f=0;for(;f<h.length;){var _h$f;!function(e,t){!(function(e,t){if(!e.startsWith("diff --git "))return!1;o(t);let n=/^diff --git a\/(.+?) b\/(.+)$/.exec(e);if((n===null||n===void 0?void 0:n[1])!==void 0&&(n===null||n===void 0?void 0:n[2])!==void 0){let e=n[1],r=n[2],i=s(`b/${r}`),a=s(`a/${e}`),o=l(i);a!==i&&(o.oldPath=a,o.status="renamed"),t.current=o;}return!0;}(e,t)||function(e,t){var n,r,i,s,l;let o=t.currentHunk;if(null===o)return!1;if(o.oldRemaining<=0&&o.newRemaining<=0&&(e.startsWith("--- ")||e.startsWith("+++ ")||e.startsWith("diff --git ")))return a(t),!1;let u=(n=e,r=t,n.startsWith("+")?{kind:"add",oldLine:null,newLine:r.newLine,text:n.slice(1)}:n.startsWith("-")?{kind:"del",oldLine:r.oldLine,newLine:null,text:n.slice(1)}:n.startsWith(String.raw`\ `)?{kind:"meta",oldLine:null,newLine:null,text:n}:n.startsWith(" ")||""===n?{kind:"ctx",oldLine:r.oldLine,newLine:r.newLine,text:n.startsWith(" ")?n.slice(1):n}:null);return null!==u&&(i=t,s=o,l=u,s.lines.push(l),("add"===l.kind||"ctx"===l.kind)&&(s.newRemaining--,i.newLine++),("del"===l.kind||"ctx"===l.kind)&&(s.oldRemaining--,i.oldLine++),null!==i.current&&("add"===l.kind&&i.current.addedLines++,"del"===l.kind&&i.current.removedLines++),!0);}(e,t)||function(e,t){if(!e.startsWith("--- "))return!1;let n=e.slice(4),r="/dev/null"===n;if(null===t.current||t.current.hunks.length>0){o(t);let e=l(r?i:s(n));return r&&(e.status="added"),t.current=e,!0;}if(r)return t.current.status="added",!0;let a=s(n);return a!==t.current.path&&(t.current.oldPath=a,t.current.status="renamed"),!0;}(e,t)||function(e,t){if(!e.startsWith("+++ "))return!1;let n=e.slice(4);return"/dev/null"!==n&&null!==t.current?t.current.path=s(n):"/dev/null"!==n?(o(t),t.current=l(s(n))):null!==t.current&&(t.current.status="deleted"),!0;}(e,t))&&!function(e,t,_t$current,_n,_n2,_n$,_r$oldStart,_r$newStart,_r$oldCount,_r$newCount){let n;if(!e.startsWith("@@ "))return!1;(_t$current=t.current)!==null&&_t$current!==void 0?_t$current:t.current=l(i),a(t);let r=(n=/^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/.exec(e),((_n=n)===null||_n===void 0?void 0:_n[1])===void 0||((_n2=n)===null||_n2===void 0?void 0:_n2[3])===void 0?null:{oldStart:Number.parseInt(n[1],10),oldCount:void 0===n[2]?1:Number.parseInt(n[2],10),newStart:Number.parseInt((_n$=n[3])!==null&&_n$!==void 0?_n$:"1",10),newCount:void 0===n[4]?1:Number.parseInt(n[4],10)}),s=(_r$oldStart=r===null||r===void 0?void 0:r.oldStart)!==null&&_r$oldStart!==void 0?_r$oldStart:1,o=(_r$newStart=r===null||r===void 0?void 0:r.newStart)!==null&&_r$newStart!==void 0?_r$newStart:1,u=(_r$oldCount=r===null||r===void 0?void 0:r.oldCount)!==null&&_r$oldCount!==void 0?_r$oldCount:1,d=(_r$newCount=r===null||r===void 0?void 0:r.newCount)!==null&&_r$newCount!==void 0?_r$newCount:1;return t.oldLine=s,t.newLine=o,t.currentHunk={header:e,oldStart:s,oldCount:u,newStart:o,newCount:d,oldRemaining:u,newRemaining:d,lines:[],truncated:!1},!0;}(e,t)&&null!==t.current&&(/^Binary files .+ differ$/u.test(e)||"GIT binary patch"===e)&&(t.current.binary=!0);}((_h$f=h[f])!==null&&_h$f!==void 0?_h$f:"",p),f++;}return o(p),c&&function(e){let t=e.at(-1);if(void 0!==t){t.truncated=!0;let e=t.hunks.at(-1);void 0!==e&&(e.truncated=!0);}}(p.files),{files:p.files,truncated:p.truncated,totalBytes:r};}]);},11257,e=>{var _s$default$cmpSelect;var t=e.i(43476),n=e.i(24541),r=e.i(60865),i=e.i(26222),s=e.i(98391);let l=(_s$default$cmpSelect=s.default["cmp-selectable-text-chrome"])!==null&&_s$default$cmpSelect!==void 0?_s$default$cmpSelect:"";function a({tokens:e}){let n=new Map();return(0,t.jsx)(t.Fragment,{children:e.map(e=>{var _n$get;let r=`${e[0]}:${e[1]}`,i=(_n$get=n.get(r))!==null&&_n$get!==void 0?_n$get:0;return n.set(r,i+1),(0,t.jsx)("span",{className:`hl-${e[0]}`,children:e[1]},`${r}:${String(i)}`);})});}function o({line:e,lang:n,kindLabel:r,labels:s}){var _s$addedLine,_s$deletedLine,_s$contextLine,_s$metadataLine,_e$oldLine,_e$newLine;var u,d;let c,h="add"===(u=e.kind)?"+":"del"===u?"−":"ctx"===u?"·":"",p="ctx"===e.kind?"":` rv-${e.kind}`;if("meta"!==e.kind&&"code"!==n){var _2;let r=(_2=(0,i.v)(e.text,(0,i.H)(n))[0])!==null&&_2!==void 0?_2:[];c=(0,t.jsx)(a,{tokens:r});}else c=e.text;return(0,t.jsxs)("div",{className:`rv-line${p}`,children:[(0,t.jsx)("span",{className:`rv-sr-only ${l}`,children:r!==null&&r!==void 0?r:(d=e.kind,"add"===d?(_s$addedLine=s===null||s===void 0?void 0:s.addedLine)!==null&&_s$addedLine!==void 0?_s$addedLine:"Added line":"del"===d?(_s$deletedLine=s===null||s===void 0?void 0:s.deletedLine)!==null&&_s$deletedLine!==void 0?_s$deletedLine:"Deleted line":"ctx"===d?(_s$contextLine=s===null||s===void 0?void 0:s.contextLine)!==null&&_s$contextLine!==void 0?_s$contextLine:"Context line":(_s$metadataLine=s===null||s===void 0?void 0:s.metadataLine)!==null&&_s$metadataLine!==void 0?_s$metadataLine:"Diff metadata")}),(0,t.jsx)("span",{className:`rv-num-old rv-num ${l}`,children:(_e$oldLine=e.oldLine)!==null&&_e$oldLine!==void 0?_e$oldLine:""}),(0,t.jsx)("span",{className:`rv-num-new rv-num ${l}`,children:(_e$newLine=e.newLine)!==null&&_e$newLine!==void 0?_e$newLine:""}),(0,t.jsx)("span",{className:`rv-gutter ${l}`,"aria-hidden":"true",children:h}),(0,t.jsx)("code",{className:"rv-src",children:c})]});}function u({hunk:e,lang:n,labels:i,viewLabels:s}){var _s$hunkHeader,_ref,_i$header,_s$hunkTruncated;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"rv-hunk mono","aria-label":`${(_s$hunkHeader=s===null||s===void 0?void 0:s.hunkHeader)!==null&&_s$hunkHeader!==void 0?_s$hunkHeader:"Hunk header"} ${e.header}`,children:[(0,t.jsx)("span",{className:`rv-sr-only ${l}`,children:(_ref=(_i$header=i===null||i===void 0?void 0:i.header)!==null&&_i$header!==void 0?_i$header:s===null||s===void 0?void 0:s.hunkHeader)!==null&&_ref!==void 0?_ref:"Hunk header"}),e.header]}),e.lines.map((e,r)=>{var _e$oldLine2,_e$newLine2;return(0,t.jsx)(o,{line:e,lang:n,kindLabel:i===null||i===void 0?void 0:i[e.kind],labels:s},`${String((_e$oldLine2=e.oldLine)!==null&&_e$oldLine2!==void 0?_e$oldLine2:"-")}:${String((_e$newLine2=e.newLine)!==null&&_e$newLine2!==void 0?_e$newLine2:"-")}:${e.kind}:${String(r)}`);}),e.truncated?(0,t.jsx)("output",{className:"rv-truncated",style:r.u,children:(_s$hunkTruncated=s===null||s===void 0?void 0:s.hunkTruncated)!==null&&_s$hunkTruncated!==void 0?_s$hunkTruncated:"This hunk is incomplete because the bounded diff was truncated."}):null]});}e.s(["b",0,function({file:e,index:i,changedFiles:l=[],sectionRef:a,translate:o,labels:d,idPrefix:c="rv-file"}){var _o,_e$path$split$pop,_d$previousPath,_d$elevatedReview,_d$binaryFile,_d$fileTruncated;let h=(_o=o===null||o===void 0?void 0:o("chat.repository.role.file"))!==null&&_o!==void 0?_o:"file",p=l.find(t=>t.path===e.path),f=e.path.includes(".")?(_e$path$split$pop=e.path.split(".").pop())!==null&&_e$path$split$pop!==void 0?_e$path$split$pop:"code":"code";return(0,t.jsxs)("section",{id:`${c}-${i}`,"aria-labelledby":`${c}-${i}-h`,ref:a,children:[(0,t.jsxs)("h3",{id:`${c}-${i}-h`,className:"rv-file mono",children:[(0,t.jsx)("span",{className:"rv-path",children:e.path}),void 0!==e.oldPath&&(0,t.jsx)("span",{className:"rv-oldpath",children:(_d$previousPath=d===null||d===void 0?void 0:d.previousPath(e.oldPath))!==null&&_d$previousPath!==void 0?_d$previousPath:` (was ${e.oldPath})`}),(0,t.jsxs)("span",{className:"rv-sr-only",children:[e.status," ",h]}),(0,t.jsx)("span",{className:"spacer"}),(0,t.jsxs)("span",{className:"rv-stat add",children:["+",e.addedLines]}),(0,t.jsxs)("span",{className:"rv-stat del",children:["−",e.removedLines]}),(p===null||p===void 0?void 0:p.elevatedReview)===!0&&(0,t.jsx)("span",{className:"rv-elevated","aria-label":(_d$elevatedReview=d===null||d===void 0?void 0:d.elevatedReview)!==null&&_d$elevatedReview!==void 0?_d$elevatedReview:"Elevated review",children:"!"})]}),(0,t.jsxs)("div",{className:`rv-code mono ${s.default["cmp-selectable-text"]}`,"data-text-selectable":"true",tabIndex:0,onFocusCapture:()=>(0,n.v)("[keiko] shared diff viewport focused"),children:[e.binary?(0,t.jsx)("p",{className:"rv-empty-p",children:(_d$binaryFile=d===null||d===void 0?void 0:d.binaryFile)!==null&&_d$binaryFile!==void 0?_d$binaryFile:"Binary file — no text diff to display."}):e.hunks.map(e=>(0,t.jsx)(u,{hunk:e,lang:f,viewLabels:d},e.header)),e.truncated&&!e.hunks.some(e=>e.truncated)?(0,t.jsx)("output",{className:"rv-truncated",style:r.u,children:(_d$fileTruncated=d===null||d===void 0?void 0:d.fileTruncated)!==null&&_d$fileTruncated!==void 0?_d$fileTruncated:"This file diff is incomplete because the bounded diff was truncated."}):null]})]});},"I",0,u]);},26222,e=>{let t={jsx:"js",js:"js",mjs:"js",ts:"ts",tsx:"ts",java:"java",kt:"kotlin",kts:"kotlin",py:"py",rb:"py",go:"go",rs:"rust",json:"json",yml:"yaml",yaml:"yaml",md:"md",markdown:"md",html:"html",xml:"html",css:"css",sql:"sql",sh:"sh",bash:"sh",cob:"cobol",cbl:"cobol",gradle:"js",graphql:"graphql",gql:"graphql",properties:"props",toml:"props",env:"props",dockerfile:"docker"},n=new Set("const let var function return if else for while do switch case break continue import from export default class extends implements interface enum new async await yield of in typeof instanceof this super public private protected static final readonly void int long double float boolean char byte short val fun object data override companion package def pass lambda try catch except finally throw throws raise with as not and or is null nil None True False true false undefined struct impl trait pub use mod match where select insert update delete create table from join on group by order limit FROM RUN CMD ENV COPY WORKDIR EXPOSE ENTRYPOINT AS".split(" "));function r(e){let t=[];return e.split(/(`[^`]+`|\*\*[^*]+\*\*)/).forEach(e=>{""!==e&&(e.startsWith("`")?t.push(["str",e]):e.startsWith("**")?t.push(["type",e]):t.push(["id",e]));}),t.length>0?t:[["id",e]];}let i=[function(e){return null!==e.cs.line&&e.rest.startsWith(e.cs.line)?{token:["com",e.rest],length:e.rest.length,stop:!0}:null;},function(e){let{cs:t,rest:n,line:r,i,state:s}=e;if(null===t.block||!n.startsWith(t.block[0]))return null;let l=r.indexOf(t.block[1],i+t.block[0].length);if(-1===l)return s.inBlock=!0,{token:["com",n],length:n.length,stop:!0};let a=l+t.block[1].length;return{token:["com",r.slice(i,a)],length:a-i,stop:!1};},function(e){let t=/^(?:"(?:[^"\\]|\\.)*"?|'(?:[^'\\]|\\.)*'?)/.exec(e.rest);return null===t||t[0].length<=1?null:{token:["str",t[0]],length:t[0].length,stop:!1};},function(e){var _t$;if(!/^\d/.test(e.rest))return null;let t=/^\d[\w.]*/.exec(e.rest),n=(_t$=t===null||t===void 0?void 0:t[0])!==null&&_t$!==void 0?_t$:e.rest.charAt(0);return{token:["num",n],length:n.length,stop:!1};},function(e){var t,r;let i=/^[@A-Za-z_$][\w$]*/.exec(e.rest);if(null===i)return null;let s=i[0];return{token:[(t=e.line,r=e.i,n.has(s)||n.has(s.toLowerCase())?"key":s.startsWith("@")||/^[A-Z]/.test(s)?"type":"("===t.charAt(r+s.length)?"fn":"id"),s],length:s.length,stop:!1};},function(e){let t=/^\s+/.exec(e.rest);return null===t?null:{token:["ws",t[0]],length:t[0].length,stop:!1};},function(e){let t=/^[^\w\s$@"']+/.exec(e.rest);return null===t?null:{token:["punct",t[0]],length:t[0].length,stop:!1};}];e.s(["v",0,function(e,t){if("md"===t)return e.split("\n").map(e=>{var _t$2,_t$3,_t$4;if(/^#{1,6}\s/.test(e))return[["head",e]];if(/^\s*```/.test(e))return[["com",e]];let t=/^(\s*)([-*+]|\d+\.)(\s)/.exec(e);return null!==t?[["ws",(_t$2=t[1])!==null&&_t$2!==void 0?_t$2:""],["key",(_t$3=t[2])!==null&&_t$3!==void 0?_t$3:""],["ws",(_t$4=t[3])!==null&&_t$4!==void 0?_t$4:""],...r(e.slice(t[0].length))]:r(e);});if("json"===t)return e.split("\n").map(e=>{let t=[],n=0;for(;n<e.length;){let r=e.slice(n),i=/^"(?:[^"\\]|\\.)*"/.exec(r);if(null!==i){let r=e.slice(n+i[0].length),s=/^\s*:/.test(r);t.push([s?"key2":"str",i[0]]),n+=i[0].length;continue;}let s=/^-?\d[\d.eE+-]*/.exec(r);if(null!==s){t.push(["num",s[0]]),n+=s[0].length;continue;}let l=/^(true|false|null)\b/.exec(r);if(null!==l){t.push(["lit",l[0]]),n+=l[0].length;continue;}let a=/^\s+/.exec(r);if(null!==a){t.push(["ws",a[0]]),n+=a[0].length;continue;}t.push(["punct",r.charAt(0)]),n+=1;}return t;});let n="py"===t||"sh"===t||"yaml"===t||"props"===t||"docker"===t?{line:"#",block:null}:"sql"===t?{line:"--",block:["/*","*/"]}:"cobol"===t?{line:"*>",block:null}:"html"===t?{line:null,block:["<!--","-->"]}:{line:"//",block:["/*","*/"]},s={inBlock:!1},l=[];for(let t of e.split("\n"))l.push(function(e,t,n){let r=[],s=0,l=function(e,t,n){if(!t.inBlock||null===n.block)return null;let r=e.indexOf(n.block[1]);if(-1===r)return{token:["com",e],length:e.length};let i=r+n.block[1].length;return t.inBlock=!1,{token:["com",e.slice(0,i)],length:i};}(e,t,n);for(null!==l&&(r.push(l.token),s=l.length);s<e.length;){let l=function(e){for(let t of i){let n=t(e);if(null!==n)return n;}return{token:["id",e.rest.charAt(0)],length:1,stop:!1};}({line:e,i:s,rest:e.slice(s),cs:n,state:t});if(r.push(l.token),s+=l.length,l.stop)break;}return r;}(t,s,n));return l;},"H",0,function(e){var _t$i;let n=e.toLowerCase();if(".env"===n||n.startsWith(".env."))return"props";if("dockerfile"===n||n.startsWith("dockerfile"))return"docker";if(n.includes("docker-compose"))return"yaml";let r=n.split("."),i=r.length>1?r.at(-1):void 0;return void 0===i?"code":(_t$i=t[i])!==null&&_t$i!==void 0?_t$i:"code";}]);},83449,e=>{let t=new Map();function n(e,n){let r=e!==null&&e!==void 0?e:"en",i=`${r}:${n}`,s=t.get(i);return void 0===s&&(s=new Intl.NumberFormat(r,{minimumFractionDigits:n,maximumFractionDigits:n,useGrouping:!1}),t.set(i,s)),s;}function r(e,t){return n(t,1).format(e);}function i(e,t){return n(t,0).format(e);}e.s(["M",0,function(e){switch(e){case"low":return"Low cost";case"medium":return"Medium cost";case"high":return"High cost";case"unknown":return"Unknown cost";}},"L",0,function(e,t){return!Number.isFinite(e)||e<=0?"0 B":e<1024?`${e.toString()} B`:e<1048576?`${r(e/1024,t)} KB`:e<0x40000000?`${r(e/1048576,t)} MB`:`${r(e/0x40000000,t)} GB`;},"T",0,function(e){var t;if(!Number.isFinite(e)||e<=0)return"0 B";let n=["B","KB","MB","GB"],r=e,i=0;for(;r>=1024&&i<n.length-1;)r/=1024,i+=1;let s=(t=r,0===i?t.toFixed(0):t>=10?t.toFixed(1):t.toFixed(2));return`${s} ${n[i]}`;},"C",0,function(e){try{return new Date(e).toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"});}catch{return"string"==typeof e?e:e.toString();}},"N",0,function(e){if(!Number.isFinite(e)||e<=0)return"0s";let t=Math.round(e/1e3),n=Math.floor(t/60),r=t%60;return 0===n?`${r.toString()}s`:`${n.toString()}m ${r.toString().padStart(2,"0")}s`;},"E",0,function(e,t){let r=Math.round(e);if(r<1e3)return`${i(r,t)} ms`;let s=Math.round(e/100)/10;if(s<60)return`${n(t,1).format(s)} s`;let l=Math.floor(s/60),a=Math.floor(s%60);return`${i(l,t)}m ${i(a,t)}s`;},"k",0,function(e){return e<1e3?e.toString():`${(e/1e3).toFixed(1)}k`;},"q",0,function(e){switch(e){case"fix-applied":return"Fix applied";case"fix-proposed":return"Fix proposed (dry-run)";case"investigation-only":return"Investigation only";case"limit-exceeded":return"Limit exceeded";case"dry-run":return"Dry-run";default:return e.charAt(0).toUpperCase()+e.slice(1);}},"u",0,function(e){var _running$completed$dr;return(_running$completed$dr={running:"Running",completed:"Completed","dry-run":"Dry run",rejected:"Rejected",cancelled:"Cancelled",failed:"Failed","fix-applied":"Fix applied","fix-proposed":"Fix proposed","investigation-only":"Investigation only"}[e])!==null&&_running$completed$dr!==void 0?_running$completed$dr:e;},"z",0,function(e){let t=new Date(e);return Number.isNaN(t.getTime())?void 0:t.toISOString();}]);}],34264,function(e){e.n(e.i(17336));},98391,e=>{e.v({"cmp-selectable-text":"DkDMvG_cmp-selectable-text","cmp-selectable-text-chrome":"DkDMvG_cmp-selectable-text-chrome"});}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[97633,e=>{let t=Object.freeze(["staged","unstaged"]),n=Object.freeze(["staged","worktree"]),r=Object.freeze(["ctx","add","del","meta"]),i=Object.freeze(["added","modified","deleted","renamed"]);function s(e){return"object"==typeof e&&null!==e&&!Array.isArray(e);}function l(e,t){return Object.keys(e).every(e=>t.includes(e));}function a(e,t){return"number"==typeof e&&Number.isInteger(e)&&e>=t;}function o(e,t,n=!1){return"string"==typeof e&&(n||e.length>0)&&e.length<=t&&!e.includes("\0");}function u(e){return!(!o(e,4096)||new TextEncoder().encode(e).length>4096||e.startsWith("/")||e.startsWith("\\")||e.includes("\\"))&&e.split("/").every(e=>e.length>0&&"."!==e&&".."!==e);}function d(e){return"string"==typeof e&&t.includes(e);}function c(e){return"string"==typeof e&&n.includes(e);}function h(e){return"string"==typeof e&&r.includes(e);}function p(e){return"string"==typeof e&&i.includes(e);}function f(e){let t,n;return s(e)&&l(e,["kind","oldLine","newLine","text"])&&h(e.kind)&&(t=e.oldLine,n=e.newLine,"ctx"===e.kind?a(t,1)&&a(n,1):"add"===e.kind?null===t&&a(n,1):"del"===e.kind?a(t,1)&&null===n:"meta"===e.kind&&null===t&&null===n)&&o(e.text,16384,!0);}function m(e){var t;return s(e)&&l(e,["header","oldStart","oldCount","newStart","newCount","lines","truncated"])&&o(e.header,512)&&a((t=e).oldStart,0)&&a(t.oldCount,0)&&a(t.newStart,0)&&a(t.newCount,0)&&Array.isArray(e.lines)&&e.lines.length<=2048&&e.lines.every(f)&&"boolean"==typeof e.truncated;}function v(e){var t;return!!s(e)&&!!l(e,["path","oldPath","layer","status","binary","hunks","addedLines","removedLines","truncated"])&&p(e.status)&&c(e.layer)&&!!u(e.path)&&(void 0===e.oldPath||!!u(e.oldPath))&&("renamed"===e.status?"string"==typeof e.oldPath:void 0===e.oldPath)&&"boolean"==typeof e.binary&&Array.isArray((t=e).hunks)&&t.hunks.length<=256&&t.hunks.every(m)&&(!0!==e.binary||Array.isArray(e.hunks)&&0===e.hunks.length&&0===e.addedLines&&0===e.removedLines)&&a(e.addedLines,0)&&a(e.removedLines,0)&&"boolean"==typeof e.truncated;}let g=/^(?:[0-9a-f]{40}|[0-9a-f]{64})$/u,x=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d{3})?Z$/u;function y(e){return s(e)&&l(e,["line","commitHash","author","authorTime","summary"])&&a(e.line,1)&&"string"==typeof e.commitHash&&g.test(e.commitHash)&&o(e.author,256)&&"string"==typeof e.authorTime&&x.test(e.authorTime)&&Number.isFinite(Date.parse(e.authorTime))&&o(e.summary,512,!0);}function b(e){try{return e();}catch(e){return{ok:!1,errors:[`payload could not be inspected: ${e instanceof Error?e.name:"unknown error"}`]};}}e.s(["GIT_AGENT_CONTEXT_MAX_BLAME_LINES",0,32,"GIT_AGENT_CONTEXT_MAX_FILES",0,8,"GIT_AGENT_CONTEXT_MAX_HUNKS",0,16,"GIT_AGENT_CONTEXT_MAX_RESULT_BYTES",0,196608,"GIT_EDITOR_BLAME_AUTHOR_MAX_CHARS",0,256,"GIT_EDITOR_BLAME_MAX_BYTES",0,262144,"GIT_EDITOR_BLAME_MAX_LINES",0,2e3,"GIT_EDITOR_BLAME_SUMMARY_MAX_CHARS",0,512,"GIT_EDITOR_DIFF_FILE_STATUSES",0,i,"GIT_EDITOR_DIFF_LAYERS",0,n,"GIT_EDITOR_DIFF_LINE_KINDS",0,r,"GIT_EDITOR_DIFF_MAX_BYTES",0,524288,"GIT_EDITOR_DIFF_MAX_FILES",0,400,"GIT_EDITOR_DIFF_MAX_HEADER_CHARS",0,512,"GIT_EDITOR_DIFF_MAX_HUNKS_PER_FILE",0,256,"GIT_EDITOR_DIFF_MAX_LINES_PER_HUNK",0,2048,"GIT_EDITOR_DIFF_MAX_LINE_CHARS",0,16384,"GIT_EDITOR_DIFF_SCOPES",0,t,"GIT_EDITOR_PATH_MAX_BYTES",0,4096,"GIT_EDITOR_SCHEMA_VERSION",0,"1","isGitEditorBlameLine",0,y,"isGitEditorDiffFile",0,v,"isGitEditorDiffFileStatus",0,p,"isGitEditorDiffHunk",0,m,"isGitEditorDiffLayer",0,c,"isGitEditorDiffLine",0,f,"isGitEditorDiffLineKind",0,h,"isGitEditorDiffScope",0,d,"parseGitEditorBlameRequest",0,function(e){return b(()=>function(e){if(!s(e))return{ok:!1,errors:["request must be an object"]};let t=[];return l(e,["schemaVersion","path","startLine","maxLines"])||t.push("request has unknown fields"),"1"!==e.schemaVersion&&t.push("schemaVersion invalid"),u(e.path)||t.push("path must be a bounded workspace-relative path"),a(e.startLine,1)||t.push("startLine must be a positive integer"),(!a(e.maxLines,1)||"number"==typeof e.maxLines&&e.maxLines>2e3)&&t.push(`maxLines must be between 1 and ${String(2e3)}`),0===t.length?{ok:!0,value:e}:{ok:!1,errors:t};}(e));},"parseGitEditorBlameResponse",0,function(e){return b(()=>function(e){var t,n;if(!s(e))return{ok:!1,errors:["response must be an object"]};let r=[];return l(e,["schemaVersion","path","startLine","lines","truncated","totalLines","totalBytes","maxBytes","maxLines"])||r.push("response has unknown fields"),"1"!==e.schemaVersion&&r.push("schemaVersion invalid"),u(e.path)||r.push("path must be a bounded workspace-relative path"),a(e.startLine,1)||r.push("startLine must be a positive integer"),!Array.isArray(e.lines)||e.lines.length>2e3?r.push(`lines must be an array of at most ${String(2e3)} entries`):e.lines.every(y)||r.push("lines contain an invalid entry"),"boolean"!=typeof e.truncated&&r.push("truncated must be a boolean"),a(e.totalLines,0)||r.push("totalLines must be a non-negative integer"),a(e.totalBytes,0)||r.push("totalBytes must be a non-negative integer"),262144!==e.maxBytes&&r.push("maxBytes invalid"),2e3!==e.maxLines&&r.push("maxLines invalid"),t=e,n=r,Array.isArray(t.lines)&&a(t.totalLines,0)&&t.totalLines<t.lines.length&&n.push("totalLines must not be smaller than lines.length"),a(t.totalBytes,0)&&t.totalBytes>262144&&!0!==t.truncated&&n.push("truncated must be true when totalBytes exceeds maxBytes"),0===r.length?{ok:!0,value:e}:{ok:!1,errors:r};}(e));},"parseGitEditorDiffRequest",0,function(e){return b(()=>function(e){if(!s(e))return{ok:!1,errors:["request must be an object"]};let t=[];return l(e,["schemaVersion","scope","path"])||t.push("request has unknown fields"),"1"!==e.schemaVersion&&t.push("schemaVersion invalid"),d(e.scope)||t.push("scope must be staged or unstaged"),void 0===e.path||u(e.path)||t.push("path must be a bounded workspace-relative path when present"),0===t.length?{ok:!0,value:e}:{ok:!1,errors:t};}(e));},"parseGitEditorDiffResponse",0,function(e){return b(()=>function(e){var t,n;if(!s(e))return{ok:!1,errors:["response must be an object"]};let r=[];return l(e,["schemaVersion","scope","files","truncated","totalFiles","totalBytes","maxBytes","maxFiles"])||r.push("response has unknown fields"),"1"!==e.schemaVersion&&r.push("schemaVersion invalid"),d(e.scope)||r.push("scope must be staged or unstaged"),!Array.isArray(e.files)||e.files.length>400?r.push(`files must be an array of at most ${String(400)} entries`):e.files.every(v)?d(e.scope)&&!e.files.every(t=>t.layer===("staged"===e.scope?"staged":"worktree"))&&r.push("file layers must match the response scope"):r.push("files contain an invalid entry"),"boolean"!=typeof e.truncated&&r.push("truncated must be a boolean"),a(e.totalFiles,0)||r.push("totalFiles must be a non-negative integer"),a(e.totalBytes,0)||r.push("totalBytes must be a non-negative integer"),524288!==e.maxBytes&&r.push("maxBytes invalid"),400!==e.maxFiles&&r.push("maxFiles invalid"),t=e,n=r,Array.isArray(t.files)&&a(t.totalFiles,0)&&t.totalFiles<t.files.length&&n.push("totalFiles must not be smaller than files.length"),a(t.totalBytes,0)&&t.totalBytes>524288&&!0!==t.truncated&&n.push("truncated must be true when totalBytes exceeds maxBytes"),0===r.length?{ok:!0,value:e}:{ok:!1,errors:r};}(e));}]);},60865,e=>{e.s(["u",0,{display:"block"},"z",0,{margin:0,position:"static"},"k",0,{margin:0,minWidth:0,padding:0,border:0},"w",0,{margin:0,minWidth:0},"Z",0,{margin:0,fontWeight:"inherit"},"d",0,{listStyle:"none",margin:0},"$",0,{listStyle:"none",margin:0,padding:0}]);},17336,e=>{var t=e.i(43476),n=e.i(85912),r=e.i(71645),i=e.i(95508),s=e.i(18829),l=e.i(83449),a=e.i(14664),o=e.i(11257);function u(e,t){return e instanceof s.a?{code:e.code,message:e.message}:e instanceof Error?{code:"INTERNAL",message:e.message}:{code:"INTERNAL",message:t("reviewWidget.unexpectedError")};}function d(e){return("dry-run"===e.status||"fix-proposed"===e.status)&&void 0!==e.proposedDiff&&void 0===e.appliedAt;}function c(e){return void 0!==e.proposedDiff&&""!==e.proposedDiff;}function h({href:e,hasManifest:r,error:i}){let s=(0,n.a)();return r?(0,t.jsx)("a",{className:"rv-evidence-link",href:e,target:"_blank",rel:"noopener noreferrer",children:s("reviewWidget.evidence")}):null!==i?(0,t.jsx)("span",{className:"rv-evidence-link rv-evidence-error",role:"alert",children:s("reviewWidget.evidenceError",{message:i.message})}):(0,t.jsx)("button",{type:"button",className:"rv-evidence-link rv-evidence-disabled",disabled:!0,children:s("reviewWidget.evidence")});}function p({report:e,applying:n,confirmApply:r,diffFileCount:i,onApplyClick:s,t:l}){return void 0!==e.appliedAt?(0,t.jsx)("span",{className:"rv-final mono",children:l("reviewWidget.applied")}):d(e)?(0,t.jsx)("button",{type:"button",className:"arun-btn","aria-disabled":n,onClick:s,children:function({applying:e,confirmApply:t,diffFileCount:n,t:r}){return e?r("reviewWidget.applying"):t?r(1===n?"reviewWidget.confirmApplySingular":"reviewWidget.confirmApplyPlural",{count:n}):r("reviewWidget.apply");}({applying:n,confirmApply:r,diffFileCount:i,t:l})}):null;}function f(e){return e.loading||null===e.error?null:(0,t.jsxs)("div",{role:"alert",className:"rv-error",children:["NOT_FOUND"===e.error.code?e.t("reviewWidget.notFound"):(0,t.jsxs)(t.Fragment,{children:[e.error.message," ",(0,t.jsxs)("span",{className:"err-code mono",children:["(",e.error.code,")"]})]}),e.hasManifest||null!==e.evidenceError?(0,t.jsx)("span",{className:"rv-error-evidence",children:(0,t.jsx)(h,{href:e.evidenceHref,hasManifest:e.hasManifest,error:e.evidenceError})}):null]});}e.s(["ReviewWidget",0,function({runId:e,onRunIdSubmit:s}){var _g$changedFiles,_O$files$length;var m;let v=(0,n.a)(),[g,x]=(0,r.useState)(null),[y,b]=(0,r.useState)(!1),[k,w]=(0,r.useState)(null),[j,N]=(0,r.useState)(!1),[L,_]=(0,r.useState)(null),[T,E]=(0,r.useState)(!1),[I,S]=(0,r.useState)(null),[A,F]=(0,r.useState)(null),[D,R]=(0,r.useState)(""),[W,$]=(0,r.useState)(!1),B=(0,r.useRef)(null);(0,r.useEffect)(()=>()=>{null!==B.current&&window.clearTimeout(B.current);},[]),(0,r.useEffect)(()=>{if(void 0===e||""===e)return;let t=!1;return N(!0),_(null),x(null),b(!1),w(null),F(null),Promise.allSettled([(0,i.LQ)(e),(0,i.lh)(e)]).then(([e,n])=>{if(!t){if("fulfilled"===n.status)b(!0),w(null);else{let e=u(n.reason,v);b(!1),w("NOT_FOUND"===e.code?null:e);}if("fulfilled"===e.status){x(e.value.report),N(!1);return;}_(u(e.reason,v)),N(!1);}}),()=>{t=!0;};},[e,v]);let M=`/api/evidence/${encodeURIComponent(e!==null&&e!==void 0?e:"")}`,O=(0,r.useMemo)(()=>(g===null||g===void 0?void 0:g.proposedDiff)!==void 0?(0,a.g)(g.proposedDiff):null,[g===null||g===void 0?void 0:g.proposedDiff]),G=(_g$changedFiles=g===null||g===void 0?void 0:g.changedFiles)!==null&&_g$changedFiles!==void 0?_g$changedFiles:[],C=(0,r.useMemo)(()=>{var _O$files$reduce,_O$files$reduce2;return{added:(_O$files$reduce=O===null||O===void 0?void 0:O.files.reduce((e,t)=>e+t.addedLines,0))!==null&&_O$files$reduce!==void 0?_O$files$reduce:0,removed:(_O$files$reduce2=O===null||O===void 0?void 0:O.files.reduce((e,t)=>e+t.removedLines,0))!==null&&_O$files$reduce2!==void 0?_O$files$reduce2:0};},[O]),H=(_O$files$length=O===null||O===void 0?void 0:O.files.length)!==null&&_O$files$length!==void 0?_O$files$length:0,P=null===O||0===O.files.length?null:Math.min(A!==null&&A!==void 0?A:0,O.files.length-1),X=null!==P?O===null||O===void 0?void 0:O.files[P]:void 0,U=(g===null||g===void 0?void 0:g.status)==="running";return void 0===e||""===e?(0,t.jsxs)("section",{className:"review rv-empty","aria-label":v("reviewWidget.diffReviewLabel"),children:[(0,t.jsx)("h2",{className:"rv-empty-h",children:v("reviewWidget.heading")}),void 0!==s?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"rv-empty-p",children:v("reviewWidget.pasteRunId")}),(0,t.jsxs)("form",{className:"rv-empty-form",onSubmit:e=>{e.preventDefault();let t=D.trim();0!==t.length&&s(t);},children:[(0,t.jsx)("label",{className:"rv-empty-label",htmlFor:"rv-runid-input",children:v("reviewWidget.runIdLabel")}),(0,t.jsx)("input",{id:"rv-runid-input",className:"rv-runid-input mono",type:"text",value:D,onChange:e=>R(e.target.value),placeholder:v("reviewWidget.runIdPlaceholder")}),(0,t.jsx)("button",{type:"submit",className:"arun-btn",children:v("reviewWidget.loadRun")})]})]}):(0,t.jsx)("p",{className:"rv-empty-p",children:v("reviewWidget.enterRunIdWindowConfig")})]}):(0,t.jsxs)("section",{className:"review","aria-label":v("reviewWidget.diffReviewLabel"),children:[j&&(0,t.jsxs)("output",{className:"rv-loading","aria-busy":"true","aria-label":v("reviewWidget.loadingDiff"),children:[(0,t.jsx)("span",{className:"rv-skel"}),(0,t.jsx)("span",{className:"rv-skel rv-skel-sm"})]}),(0,t.jsx)(f,{loading:j,error:L,hasManifest:y,evidenceError:k,evidenceHref:M,t:v}),(0,t.jsx)("p",{role:"status","aria-live":"polite",className:!j&&null===L&&null!==g&&U?"rv-no-diff":"sr-only",children:!j&&null===L&&null!==g&&U?v("reviewWidget.stillRunning"):""}),!j&&null===L&&null!==g&&!U&&!c(g)&&(0,t.jsx)("p",{className:"rv-no-diff",children:v("reviewWidget.noDiff")}),!j&&null===L&&null!==g&&c(g)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"rv-header",children:[(0,t.jsx)("span",{className:"rv-status mono",children:(0,l.u)(g.status)}),void 0!==g.modelId&&(0,t.jsx)("span",{className:"rv-model mono",children:g.modelId}),(0,t.jsxs)("span",{className:"rv-counts mono",children:[null!==O&&(1===H?v("reviewWidget.fileCountSingular",{count:H}):v("reviewWidget.fileCountPlural",{count:H}))," ",(0,t.jsxs)("span",{className:"rv-stat add",children:["+",C.added]})," ",(0,t.jsxs)("span",{className:"rv-stat del",children:["−",C.removed]})]}),(0,t.jsx)("span",{className:"spacer"}),(0,t.jsx)(h,{href:M,hasManifest:y,error:k})]}),null!==O&&O.files.length>0&&null!==P&&void 0!==X&&(0,t.jsxs)("div",{className:"rv-layout",children:[(0,t.jsx)("nav",{className:"rv-filelist","aria-label":v("reviewWidget.changedFilesLabel"),children:(0,t.jsx)("ul",{children:O.files.map((e,n)=>{let r=G.find(t=>t.path===e.path),i=P===n;return(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",className:"rv-filerow",title:e.path,"aria-pressed":i,"aria-controls":i?`rv-file-${n}`:void 0,onClick:()=>{F(n);},children:[(0,t.jsx)("span",{className:"rv-filerow-path mono",children:function(e){if(e.length<=40)return e;let t=e.split("/");return t.length<=2?e:`…/${t.slice(-2).join("/")}`;}(e.path)}),(0,t.jsxs)("span",{className:"rv-stat add",children:["+",e.addedLines]}),(0,t.jsxs)("span",{className:"rv-stat del",children:["−",e.removedLines]}),(r===null||r===void 0?void 0:r.elevatedReview)===!0&&(0,t.jsx)("span",{className:"rv-elevated","aria-label":v("reviewWidget.elevatedReview"),children:"!"})]})},e.path);})})}),(0,t.jsxs)("div",{className:"rv-body",children:[(0,t.jsx)(o.b,{file:X,index:P,changedFiles:G,sectionRef:()=>void 0},X.path),O.truncated&&(0,t.jsxs)("p",{role:"note",className:"rv-truncated",children:[v("reviewWidget.truncated.prefix")," ",y?(0,t.jsx)("a",{href:M,target:"_blank",rel:"noopener noreferrer",children:v("reviewWidget.truncated.linkText")}):v("reviewWidget.truncated.linkText")," ",v("reviewWidget.truncated.suffix")]})]})]}),(0,t.jsxs)("div",{className:"rv-controls",children:[(0,t.jsx)("output",{"aria-live":"polite",className:"rv-apply-status",children:(m=g.appliedAt,T?v("reviewWidget.applying"):void 0!==m?v("reviewWidget.applied"):"")}),null!==I&&(0,t.jsx)("span",{role:"alert",className:"rv-apply-error",children:I.message}),(0,t.jsx)(p,{report:g,applying:T,confirmApply:W,diffFileCount:H,onApplyClick:()=>{if(!T){if(!W){$(!0),null!==B.current&&window.clearTimeout(B.current),B.current=window.setTimeout(()=>{$(!1),B.current=null;},6e3);return;}null!==B.current&&(window.clearTimeout(B.current),B.current=null),$(!1),void 0!==e&&null!==g&&d(g)&&!T&&(E(!0),S(null),(0,i.OK)(e).then(e=>{x(e.report),E(!1);}).catch(e=>{S(u(e,v)),E(!1);}));}},t:v})]})]})]});}]);},14664,e=>{var t=e.i(97633);let n=t.GIT_EDITOR_DIFF_MAX_BYTES,r=t.GIT_EDITOR_DIFF_MAX_FILES,i="(unknown)";function s(e){return e.startsWith("a/")||e.startsWith("b/")?e.slice(2):e;}function l(e){return{path:e,layer:"worktree",status:"modified",binary:!1,hunks:[],addedLines:0,removedLines:0,truncated:!1};}function a(e){null!==e.current&&null!==e.currentHunk&&e.currentHunk.lines.some(({kind:e})=>"add"===e||"del"===e)&&e.current.hunks.push(e.currentHunk),e.currentHunk=null;}function o(e){a(e),null!==e.current&&(e.files.length<r?e.files.push(e.current):e.truncated=!0),e.current=null;}e.s(["U",0,i,"g",0,function(e,t={}){var _t$maxBytes;let r,u=new TextEncoder().encode(e).byteLength;if(0===e.length)return{files:[],truncated:!1,totalBytes:0};let{input:d,truncated:c,byteTruncated:h}=function(e,t,n){if(t<=n)return{input:e,truncated:!1,byteTruncated:!1};let r=new TextEncoder().encode(e),i=new TextDecoder().decode(r.subarray(0,n)),s=i.lastIndexOf("\n");return{input:-1===s?i:i.slice(0,s+1),truncated:!0,byteTruncated:!0};}(e,u,(_t$maxBytes=t.maxBytes)!==null&&_t$maxBytes!==void 0?_t$maxBytes:n),p=""===(r=d.split("\n")).at(-1)?r.slice(0,-1):r,f={files:[],current:null,currentHunk:null,oldLine:0,newLine:0,truncated:c},m=0;for(;m<p.length;){var _p$m;!function(e,t){!(function(e,t){if(!e.startsWith("diff --git "))return!1;o(t);let n=/^diff --git a\/(.+?) b\/(.+)$/.exec(e);if((n===null||n===void 0?void 0:n[1])!==void 0&&(n===null||n===void 0?void 0:n[2])!==void 0){let e=n[1],r=n[2],i=s(`b/${r}`),a=s(`a/${e}`),o=l(i);a!==i&&(o.oldPath=a,o.status="renamed"),t.current=o;}return!0;}(e,t)||function(e,t){var n,r,i,s,l;let o=t.currentHunk;if(null===o)return!1;if(o.oldRemaining<=0&&o.newRemaining<=0&&(e.startsWith("--- ")||e.startsWith("+++ ")||e.startsWith("diff --git ")))return a(t),!1;let u=(n=e,r=t,n.startsWith("+")?{kind:"add",oldLine:null,newLine:r.newLine,text:n.slice(1)}:n.startsWith("-")?{kind:"del",oldLine:r.oldLine,newLine:null,text:n.slice(1)}:n.startsWith(String.raw`\ `)?{kind:"meta",oldLine:null,newLine:null,text:n}:n.startsWith(" ")||""===n?{kind:"ctx",oldLine:r.oldLine,newLine:r.newLine,text:n.startsWith(" ")?n.slice(1):n}:null);return null!==u&&(i=t,s=o,l=u,s.lines.push(l),("add"===l.kind||"ctx"===l.kind)&&(s.newRemaining--,i.newLine++),("del"===l.kind||"ctx"===l.kind)&&(s.oldRemaining--,i.oldLine++),null!==i.current&&("add"===l.kind&&i.current.addedLines++,"del"===l.kind&&i.current.removedLines++),!0);}(e,t)||function(e,t){if(!e.startsWith("--- "))return!1;let n=e.slice(4),r="/dev/null"===n;if(null===t.current||t.current.hunks.length>0){o(t);let e=l(r?i:s(n));return r&&(e.status="added"),t.current=e,!0;}if(r)return t.current.status="added",!0;let a=s(n);return a!==t.current.path&&(t.current.oldPath=a,t.current.status="renamed"),!0;}(e,t)||function(e,t){if(!e.startsWith("+++ "))return!1;let n=e.slice(4);return"/dev/null"!==n&&null!==t.current?t.current.path=s(n):"/dev/null"!==n?(o(t),t.current=l(s(n))):null!==t.current&&(t.current.status="deleted"),!0;}(e,t))&&!function(e,t,_t$current,_n,_n2,_n$,_r$oldStart,_r$newStart,_r$oldCount,_r$newCount){let n;if(!e.startsWith("@@ "))return!1;(_t$current=t.current)!==null&&_t$current!==void 0?_t$current:t.current=l(i),a(t);let r=(n=/^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/.exec(e),((_n=n)===null||_n===void 0?void 0:_n[1])===void 0||((_n2=n)===null||_n2===void 0?void 0:_n2[3])===void 0?null:{oldStart:Number.parseInt(n[1],10),oldCount:void 0===n[2]?1:Number.parseInt(n[2],10),newStart:Number.parseInt((_n$=n[3])!==null&&_n$!==void 0?_n$:"1",10),newCount:void 0===n[4]?1:Number.parseInt(n[4],10)}),s=(_r$oldStart=r===null||r===void 0?void 0:r.oldStart)!==null&&_r$oldStart!==void 0?_r$oldStart:1,o=(_r$newStart=r===null||r===void 0?void 0:r.newStart)!==null&&_r$newStart!==void 0?_r$newStart:1,u=(_r$oldCount=r===null||r===void 0?void 0:r.oldCount)!==null&&_r$oldCount!==void 0?_r$oldCount:1,d=(_r$newCount=r===null||r===void 0?void 0:r.newCount)!==null&&_r$newCount!==void 0?_r$newCount:1;return t.oldLine=s,t.newLine=o,t.currentHunk={header:e,oldStart:s,oldCount:u,newStart:o,newCount:d,oldRemaining:u,newRemaining:d,lines:[],truncated:!1},!0;}(e,t)&&null!==t.current&&(/^Binary files .+ differ$/u.test(e)||"GIT binary patch"===e)&&(t.current.binary=!0);}((_p$m=p[m])!==null&&_p$m!==void 0?_p$m:"",f),m++;}return o(f),h&&function(e){let t=e.at(-1);if(void 0!==t){t.truncated=!0;let e=t.hunks.at(-1);void 0!==e&&(e.truncated=!0);}}(f.files),{files:f.files,truncated:f.truncated,totalBytes:u};}]);},11257,e=>{var _s$default$cmpSelect;var t=e.i(43476),n=e.i(24541),r=e.i(60865),i=e.i(26222),s=e.i(98391);let l=(_s$default$cmpSelect=s.default["cmp-selectable-text-chrome"])!==null&&_s$default$cmpSelect!==void 0?_s$default$cmpSelect:"";function a({tokens:e}){let n=new Map();return(0,t.jsx)(t.Fragment,{children:e.map(e=>{var _n$get;let r=`${e[0]}:${e[1]}`,i=(_n$get=n.get(r))!==null&&_n$get!==void 0?_n$get:0;return n.set(r,i+1),(0,t.jsx)("span",{className:`hl-${e[0]}`,children:e[1]},`${r}:${String(i)}`);})});}function o({line:e,lang:n,kindLabel:r,labels:s}){var _s$addedLine,_s$deletedLine,_s$contextLine,_s$metadataLine,_e$oldLine,_e$newLine;var u,d;let c,h="add"===(u=e.kind)?"+":"del"===u?"−":"ctx"===u?"·":"",p="ctx"===e.kind?"":` rv-${e.kind}`;if("meta"!==e.kind&&"code"!==n){var _2;let r=(_2=(0,i.v)(e.text,(0,i.H)(n))[0])!==null&&_2!==void 0?_2:[];c=(0,t.jsx)(a,{tokens:r});}else c=e.text;return(0,t.jsxs)("div",{className:`rv-line${p}`,children:[(0,t.jsx)("span",{className:`rv-sr-only ${l}`,children:r!==null&&r!==void 0?r:(d=e.kind,"add"===d?(_s$addedLine=s===null||s===void 0?void 0:s.addedLine)!==null&&_s$addedLine!==void 0?_s$addedLine:"Added line":"del"===d?(_s$deletedLine=s===null||s===void 0?void 0:s.deletedLine)!==null&&_s$deletedLine!==void 0?_s$deletedLine:"Deleted line":"ctx"===d?(_s$contextLine=s===null||s===void 0?void 0:s.contextLine)!==null&&_s$contextLine!==void 0?_s$contextLine:"Context line":(_s$metadataLine=s===null||s===void 0?void 0:s.metadataLine)!==null&&_s$metadataLine!==void 0?_s$metadataLine:"Diff metadata")}),(0,t.jsx)("span",{className:`rv-num-old rv-num ${l}`,children:(_e$oldLine=e.oldLine)!==null&&_e$oldLine!==void 0?_e$oldLine:""}),(0,t.jsx)("span",{className:`rv-num-new rv-num ${l}`,children:(_e$newLine=e.newLine)!==null&&_e$newLine!==void 0?_e$newLine:""}),(0,t.jsx)("span",{className:`rv-gutter ${l}`,"aria-hidden":"true",children:h}),(0,t.jsx)("code",{className:"rv-src",children:c})]});}function u({hunk:e,lang:n,labels:i,viewLabels:s}){var _s$hunkHeader,_ref,_i$header,_s$hunkTruncated;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"rv-hunk mono","aria-label":`${(_s$hunkHeader=s===null||s===void 0?void 0:s.hunkHeader)!==null&&_s$hunkHeader!==void 0?_s$hunkHeader:"Hunk header"} ${e.header}`,children:[(0,t.jsx)("span",{className:`rv-sr-only ${l}`,children:(_ref=(_i$header=i===null||i===void 0?void 0:i.header)!==null&&_i$header!==void 0?_i$header:s===null||s===void 0?void 0:s.hunkHeader)!==null&&_ref!==void 0?_ref:"Hunk header"}),e.header]}),e.lines.map((e,r)=>{var _e$oldLine2,_e$newLine2;return(0,t.jsx)(o,{line:e,lang:n,kindLabel:i===null||i===void 0?void 0:i[e.kind],labels:s},`${String((_e$oldLine2=e.oldLine)!==null&&_e$oldLine2!==void 0?_e$oldLine2:"-")}:${String((_e$newLine2=e.newLine)!==null&&_e$newLine2!==void 0?_e$newLine2:"-")}:${e.kind}:${String(r)}`);}),e.truncated?(0,t.jsx)("output",{className:"rv-truncated",style:r.u,children:(_s$hunkTruncated=s===null||s===void 0?void 0:s.hunkTruncated)!==null&&_s$hunkTruncated!==void 0?_s$hunkTruncated:"This hunk is incomplete because the bounded diff was truncated."}):null]});}e.s(["b",0,function({file:e,index:i,changedFiles:l=[],sectionRef:a,translate:o,labels:d,idPrefix:c="rv-file"}){var _o,_e$path$split$pop,_d$previousPath,_d$elevatedReview,_d$binaryFile,_d$fileTruncated;let h=(_o=o===null||o===void 0?void 0:o("chat.repository.role.file"))!==null&&_o!==void 0?_o:"file",p=l.find(t=>t.path===e.path),f=e.path.includes(".")?(_e$path$split$pop=e.path.split(".").pop())!==null&&_e$path$split$pop!==void 0?_e$path$split$pop:"code":"code";return(0,t.jsxs)("section",{id:`${c}-${i}`,"aria-labelledby":`${c}-${i}-h`,ref:a,children:[(0,t.jsxs)("h3",{id:`${c}-${i}-h`,className:"rv-file mono",children:[(0,t.jsx)("span",{className:"rv-path",children:e.path}),void 0!==e.oldPath&&(0,t.jsx)("span",{className:"rv-oldpath",children:(_d$previousPath=d===null||d===void 0?void 0:d.previousPath(e.oldPath))!==null&&_d$previousPath!==void 0?_d$previousPath:` (was ${e.oldPath})`}),(0,t.jsxs)("span",{className:"rv-sr-only",children:[e.status," ",h]}),(0,t.jsx)("span",{className:"spacer"}),(0,t.jsxs)("span",{className:"rv-stat add",children:["+",e.addedLines]}),(0,t.jsxs)("span",{className:"rv-stat del",children:["−",e.removedLines]}),(p===null||p===void 0?void 0:p.elevatedReview)===!0&&(0,t.jsx)("span",{className:"rv-elevated","aria-label":(_d$elevatedReview=d===null||d===void 0?void 0:d.elevatedReview)!==null&&_d$elevatedReview!==void 0?_d$elevatedReview:"Elevated review",children:"!"})]}),(0,t.jsxs)("div",{className:`rv-code mono ${s.default["cmp-selectable-text"]}`,"data-text-selectable":"true",tabIndex:0,onFocusCapture:()=>(0,n.v)("[keiko] shared diff viewport focused"),children:[e.binary?(0,t.jsx)("p",{className:"rv-empty-p",children:(_d$binaryFile=d===null||d===void 0?void 0:d.binaryFile)!==null&&_d$binaryFile!==void 0?_d$binaryFile:"Binary file — no text diff to display."}):e.hunks.map(e=>(0,t.jsx)(u,{hunk:e,lang:f,viewLabels:d},e.header)),e.truncated&&!e.hunks.some(e=>e.truncated)?(0,t.jsx)("output",{className:"rv-truncated",style:r.u,children:(_d$fileTruncated=d===null||d===void 0?void 0:d.fileTruncated)!==null&&_d$fileTruncated!==void 0?_d$fileTruncated:"This file diff is incomplete because the bounded diff was truncated."}):null]})]});},"I",0,u]);},26222,e=>{let t={jsx:"js",js:"js",mjs:"js",ts:"ts",tsx:"ts",java:"java",kt:"kotlin",kts:"kotlin",py:"py",rb:"py",go:"go",rs:"rust",json:"json",yml:"yaml",yaml:"yaml",md:"md",markdown:"md",html:"html",xml:"html",css:"css",sql:"sql",sh:"sh",bash:"sh",cob:"cobol",cbl:"cobol",gradle:"js",graphql:"graphql",gql:"graphql",properties:"props",toml:"props",env:"props",dockerfile:"docker"},n=new Set("const let var function return if else for while do switch case break continue import from export default class extends implements interface enum new async await yield of in typeof instanceof this super public private protected static final readonly void int long double float boolean char byte short val fun object data override companion package def pass lambda try catch except finally throw throws raise with as not and or is null nil None True False true false undefined struct impl trait pub use mod match where select insert update delete create table from join on group by order limit FROM RUN CMD ENV COPY WORKDIR EXPOSE ENTRYPOINT AS".split(" "));function r(e){let t=[];return e.split(/(`[^`]+`|\*\*[^*]+\*\*)/).forEach(e=>{""!==e&&(e.startsWith("`")?t.push(["str",e]):e.startsWith("**")?t.push(["type",e]):t.push(["id",e]));}),t.length>0?t:[["id",e]];}let i=[function(e){return null!==e.cs.line&&e.rest.startsWith(e.cs.line)?{token:["com",e.rest],length:e.rest.length,stop:!0}:null;},function(e){let{cs:t,rest:n,line:r,i,state:s}=e;if(null===t.block||!n.startsWith(t.block[0]))return null;let l=r.indexOf(t.block[1],i+t.block[0].length);if(-1===l)return s.inBlock=!0,{token:["com",n],length:n.length,stop:!0};let a=l+t.block[1].length;return{token:["com",r.slice(i,a)],length:a-i,stop:!1};},function(e){let t=/^(?:"(?:[^"\\]|\\.)*"?|'(?:[^'\\]|\\.)*'?)/.exec(e.rest);return null===t||t[0].length<=1?null:{token:["str",t[0]],length:t[0].length,stop:!1};},function(e){var _t$;if(!/^\d/.test(e.rest))return null;let t=/^\d[\w.]*/.exec(e.rest),n=(_t$=t===null||t===void 0?void 0:t[0])!==null&&_t$!==void 0?_t$:e.rest.charAt(0);return{token:["num",n],length:n.length,stop:!1};},function(e){var t,r;let i=/^[@A-Za-z_$][\w$]*/.exec(e.rest);if(null===i)return null;let s=i[0];return{token:[(t=e.line,r=e.i,n.has(s)||n.has(s.toLowerCase())?"key":s.startsWith("@")||/^[A-Z]/.test(s)?"type":"("===t.charAt(r+s.length)?"fn":"id"),s],length:s.length,stop:!1};},function(e){let t=/^\s+/.exec(e.rest);return null===t?null:{token:["ws",t[0]],length:t[0].length,stop:!1};},function(e){let t=/^[^\w\s$@"']+/.exec(e.rest);return null===t?null:{token:["punct",t[0]],length:t[0].length,stop:!1};}];e.s(["v",0,function(e,t){if("md"===t)return e.split("\n").map(e=>{var _t$2,_t$3,_t$4;if(/^#{1,6}\s/.test(e))return[["head",e]];if(/^\s*```/.test(e))return[["com",e]];let t=/^(\s*)([-*+]|\d+\.)(\s)/.exec(e);return null!==t?[["ws",(_t$2=t[1])!==null&&_t$2!==void 0?_t$2:""],["key",(_t$3=t[2])!==null&&_t$3!==void 0?_t$3:""],["ws",(_t$4=t[3])!==null&&_t$4!==void 0?_t$4:""],...r(e.slice(t[0].length))]:r(e);});if("json"===t)return e.split("\n").map(e=>{let t=[],n=0;for(;n<e.length;){let r=e.slice(n),i=/^"(?:[^"\\]|\\.)*"/.exec(r);if(null!==i){let r=e.slice(n+i[0].length),s=/^\s*:/.test(r);t.push([s?"key2":"str",i[0]]),n+=i[0].length;continue;}let s=/^-?\d[\d.eE+-]*/.exec(r);if(null!==s){t.push(["num",s[0]]),n+=s[0].length;continue;}let l=/^(true|false|null)\b/.exec(r);if(null!==l){t.push(["lit",l[0]]),n+=l[0].length;continue;}let a=/^\s+/.exec(r);if(null!==a){t.push(["ws",a[0]]),n+=a[0].length;continue;}t.push(["punct",r.charAt(0)]),n+=1;}return t;});let n="py"===t||"sh"===t||"yaml"===t||"props"===t||"docker"===t?{line:"#",block:null}:"sql"===t?{line:"--",block:["/*","*/"]}:"cobol"===t?{line:"*>",block:null}:"html"===t?{line:null,block:["<!--","-->"]}:{line:"//",block:["/*","*/"]},s={inBlock:!1},l=[];for(let t of e.split("\n"))l.push(function(e,t,n){let r=[],s=0,l=function(e,t,n){if(!t.inBlock||null===n.block)return null;let r=e.indexOf(n.block[1]);if(-1===r)return{token:["com",e],length:e.length};let i=r+n.block[1].length;return t.inBlock=!1,{token:["com",e.slice(0,i)],length:i};}(e,t,n);for(null!==l&&(r.push(l.token),s=l.length);s<e.length;){let l=function(e){for(let t of i){let n=t(e);if(null!==n)return n;}return{token:["id",e.rest.charAt(0)],length:1,stop:!1};}({line:e,i:s,rest:e.slice(s),cs:n,state:t});if(r.push(l.token),s+=l.length,l.stop)break;}return r;}(t,s,n));return l;},"H",0,function(e){var _t$i;let n=e.toLowerCase();if(".env"===n||n.startsWith(".env."))return"props";if("dockerfile"===n||n.startsWith("dockerfile"))return"docker";if(n.includes("docker-compose"))return"yaml";let r=n.split("."),i=r.length>1?r.at(-1):void 0;return void 0===i?"code":(_t$i=t[i])!==null&&_t$i!==void 0?_t$i:"code";}]);},83449,e=>{let t=new Map();function n(e,n){let r=e!==null&&e!==void 0?e:"en",i=`${r}:${n}`,s=t.get(i);return void 0===s&&(s=new Intl.NumberFormat(r,{minimumFractionDigits:n,maximumFractionDigits:n,useGrouping:!1}),t.set(i,s)),s;}function r(e,t){return n(t,1).format(e);}function i(e,t){return n(t,0).format(e);}e.s(["M",0,function(e){switch(e){case"low":return"Low cost";case"medium":return"Medium cost";case"high":return"High cost";case"unknown":return"Unknown cost";}},"L",0,function(e,t){return!Number.isFinite(e)||e<=0?"0 B":e<1024?`${e.toString()} B`:e<1048576?`${r(e/1024,t)} KB`:e<0x40000000?`${r(e/1048576,t)} MB`:`${r(e/0x40000000,t)} GB`;},"T",0,function(e){var t;if(!Number.isFinite(e)||e<=0)return"0 B";let n=["B","KB","MB","GB"],r=e,i=0;for(;r>=1024&&i<n.length-1;)r/=1024,i+=1;let s=(t=r,0===i?t.toFixed(0):t>=10?t.toFixed(1):t.toFixed(2));return`${s} ${n[i]}`;},"C",0,function(e){try{return new Date(e).toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"});}catch{return"string"==typeof e?e:e.toString();}},"N",0,function(e){if(!Number.isFinite(e)||e<=0)return"0s";let t=Math.round(e/1e3),n=Math.floor(t/60),r=t%60;return 0===n?`${r.toString()}s`:`${n.toString()}m ${r.toString().padStart(2,"0")}s`;},"E",0,function(e,t){let r=Math.round(e);if(r<1e3)return`${i(r,t)} ms`;let s=Math.round(e/100)/10;if(s<60)return`${n(t,1).format(s)} s`;let l=Math.floor(s/60),a=Math.floor(s%60);return`${i(l,t)}m ${i(a,t)}s`;},"k",0,function(e){return e<1e3?e.toString():`${(e/1e3).toFixed(1)}k`;},"q",0,function(e){switch(e){case"fix-applied":return"Fix applied";case"fix-proposed":return"Fix proposed (dry-run)";case"investigation-only":return"Investigation only";case"limit-exceeded":return"Limit exceeded";case"dry-run":return"Dry-run";default:return e.charAt(0).toUpperCase()+e.slice(1);}},"u",0,function(e){var _running$completed$dr;return(_running$completed$dr={running:"Running",completed:"Completed","dry-run":"Dry run",rejected:"Rejected",cancelled:"Cancelled",failed:"Failed","fix-applied":"Fix applied","fix-proposed":"Fix proposed","investigation-only":"Investigation only"}[e])!==null&&_running$completed$dr!==void 0?_running$completed$dr:e;},"z",0,function(e){let t=new Date(e);return Number.isNaN(t.getTime())?void 0:t.toISOString();}]);}],34264,function(e){e.n(e.i(17336));},98391,e=>{e.v({"cmp-selectable-text":"DkDMvG_cmp-selectable-text","cmp-selectable-text-chrome":"DkDMvG_cmp-selectable-text-chrome"});}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[47284,t=>{let e=Object.freeze([{key:"t",mod:["cmd"]},{key:"t",mod:["ctrl"]},{key:"r",mod:["cmd"]},{key:"r",mod:["ctrl"]},{key:"n",mod:["cmd","shift"]},{key:"n",mod:["ctrl","shift"]},{key:"w",mod:["cmd"]},{key:"w",mod:["ctrl"]}]),s=["mac","other"];function n(t,e){let s=new Set();for(let a of t){var n,c;s.add((n=a,c=e,"cmd"!==n?n:"mac"===c?"meta":"ctrl"));}return s;}function c(t){return[...new Set(s.map(e=>{let s;return s=[...n(t.mod,e)].sort((t,e)=>t.localeCompare(e)),`${s.join("+")}|${t.key.toLowerCase()}`;}))];}t.s(["A",0,function(t){return!(t.mod.includes("cmd")&&t.mod.includes("ctrl"));},"P",0,function(t){for(let s of e)if(function(t,e){let s=new Set(c(t));return c(e).some(t=>s.has(t));}(t,s))return!0;return!1;},"B",0,function(t){switch(t.kind){case"ui.window.move":return"Move window";case"ui.window.resize":return"Resize window";case"ui.window.zorder":return"Reorder window";case"ui.window.close":return"Close window";case"ui.window.open":return"Open window";case"ui.workspace.pan":return"Pan workspace";case"ui.workspace.zoom":return"Zoom workspace";case"ui.workspace.fit":return"Fit workspace to view";case"ui.panel.toggle":return`Toggle ${t.panel} panel`;case"ui.selection.change":return"Change selection";case"ui.tab.switch":return"Switch tab";}},"i",0,c,"D",0,function(t){let e=[...t.mod].sort((t,e)=>t.localeCompare(e));return`${e.join("+")}|${t.key.toLowerCase()}`;},"l",0,function(t){switch(t.kind){case"ui.window.move":case"ui.window.resize":case"ui.window.zorder":case"ui.workspace.pan":case"ui.workspace.zoom":case"ui.workspace.fit":case"ui.panel.toggle":case"ui.selection.change":case"ui.tab.switch":return{...t,before:t.after,after:t.before};case"ui.window.close":return{...t,kind:"ui.window.open"};case"ui.window.open":return{...t,kind:"ui.window.close"};}},"v",0,n]);},73455,10666,t=>{var e=t.i(43476),s=t.i(71645);let n=(0,s.createContext)(null);t.s(["P",0,function({register:t,children:s}){return(0,e.jsx)(n.Provider,{value:t,children:s});},"f",0,function(t,e){let c=(0,s.useContext)(n);(0,s.useEffect)(()=>{if(null!==c&&void 0!==t&&0!==t.length)return c(t,e);},[e,c,t]);}],73455);let c=(0,s.createContext)(null);t.s(["z",0,function({value:t,children:s}){return(0,e.jsx)(c.Provider,{value:t,children:s});},"V",0,function(){return(0,s.useContext)(c);}],10666);},71409,t=>{var e=t.i(43476),s=t.i(71645);let n=(0,s.createContext)(null);function c(t,e){return`${t}\0${e}`;}function a(){return(0,s.useContext)(n);}t.s(["J",0,function({children:t}){let a=(0,s.useRef)(new Map()),i=(0,s.useCallback)((t,e,s)=>{let n=c(t,e);return a.current.set(n,s),()=>{a.current.get(n)===s&&a.current.delete(n);};},[]),r=(0,s.useCallback)(async(t,e)=>{let s=a.current.get(c(t,e.path));return void 0===s?{status:"not-open"}:s(e);},[]),o=(0,s.useMemo)(()=>({register:i,apply:r}),[r,i]);return(0,e.jsx)(n.Provider,{value:o,children:t});},"W",0,function(t,e,n){let c=a();(0,s.useEffect)(()=>{if(null!==c&&void 0!==t&&void 0!==e&&0!==e.length)return c.register(t,e,n);},[n,e,c,t]);},"d",0,a]);},86114,t=>{var e=t.i(43476),s=t.i(71645);let n=(0,s.createContext)(null);t.s(["j",0,function({value:t,children:s}){return(0,e.jsx)(n.Provider,{value:t,children:s});},"t",0,function(){let t=(0,s.useContext)(n);if(null===t)throw Error("useActiveWorkspace must be used inside ActiveWorkspaceProvider");return t;},"B",0,function(){return(0,s.useContext)(n);}]);},98723,t=>{let e=(0,t.i(71645).createContext)({active:null,winCount:0});t.s(["f",0,e]);},98408,19047,89860,t=>{let e="application/x-keiko-figma-view";function s(t){return"string"==typeof t&&t.trim().length>0?t.trim():null;}t.s(["T",0,e,"_",0,"keiko:figma-view-drop","o",0,function(t){if(!Array.from(t.types).includes(e))return null;try{let n=JSON.parse(t.getData(e));if("object"!=typeof n||null===n)return null;let c=s(n.snapshotRunId),a=s(n.screenId),i=s(n.name);if(null===c||null===a||null===i)return null;return{snapshotRunId:c,screenId:a,name:i};}catch{return null;}},"a",0,function(t){return JSON.stringify(t);}],98408);let n="application/x-keiko-figma-json";function c(t){return"string"==typeof t&&t.trim().length>0?t.trim():null;}t.s(["h",0,n,"n",0,"keiko:figma-json-drop","t",0,function(t){if(!Array.from(t.types).includes(n))return null;try{let e=JSON.parse(t.getData(n));if("object"!=typeof e||null===e)return null;let s=c(e.snapshotRunId),a=c(e.screenId),i=c(e.name);if(null===s||null===a||null===i)return null;let r=c(e.sourceWindowId);return{snapshotRunId:s,screenId:a,name:i,...(null!==r?{sourceWindowId:r}:{})};}catch{return null;}},"E",0,function(t){return JSON.stringify(t);}],19047);let a="application/x-keiko-figma-image";function i(t){return"string"==typeof t&&t.trim().length>0?t.trim():null;}t.s(["X",0,a,"f",0,"keiko:figma-image-drop","c",0,function(t){if(!Array.from(t.types).includes(a))return null;try{let e=JSON.parse(t.getData(a));if("object"!=typeof e||null===e)return null;let s=i(e.snapshotRunId),n=i(e.screenId),c=i(e.name),r=i(e.imageSrc);if(null===s||null===n||null===c||null===r||!/^\/api\/figma\/snapshots\/[^/?#]+\/screens\/\d+\/image$/u.test(r))return null;let o=i(e.sourceWindowId);return{snapshotRunId:s,screenId:n,name:c,imageSrc:r,...(null!==o?{sourceWindowId:o}:{})};}catch{return null;}},"k",0,function(t){return JSON.stringify(t);}],89860);},22318,t=>{var e=t.i(71645);let s="keiko.theme",n="dark",c="keiko:theme-change";function a(t){return"light"===t||"dark"===t;}t.s(["f",0,function(){let[t,i]=(0,e.useState)(n),[r,o]=(0,e.useState)(!1),l=(0,e.useRef)(!1);return(0,e.useEffect)(()=>{i(function(){if("u">typeof document){let t=document.documentElement.dataset.theme;if(a(t))return t;}try{let t=window.localStorage.getItem(s);return a(t)?t:n;}catch{return n;}}()),o(!0);},[]),(0,e.useEffect)(()=>{let t=t=>{if(!(t instanceof CustomEvent)||!a(t.detail))return;let e=t.detail;i(t=>t===e?t:(l.current=!0,e));};return window.addEventListener(c,t),()=>window.removeEventListener(c,t);},[]),(0,e.useEffect)(()=>{if(!r)return;let e=!l.current;l.current=!1,"u">typeof document&&(document.documentElement.dataset.theme=t);try{window.localStorage.setItem(s,t);}catch{}e&&window.dispatchEvent(new CustomEvent(c,{detail:t}));},[t,r]),{theme:t,toggle:(0,e.useCallback)(()=>{i(t=>"light"===t?"dark":"light");},[])};}]);},22656,t=>{var e=t.i(71645),s=t.i(25327),n=t.i(20081),c=t.i(24541);let a=0;t.s(["f",0,function(t,i){let r=(0,e.useRef)(void 0);(0,e.useEffect)(()=>{let e=a+=1;r.current=e;let o=(0,n.y)(),l=performance.now();(0,c.v)(`desktop ${t} #${String(e)}: started`,{correlationId:o,stageReport:{stage:t,phase:"started",ordinal:e}});let u=void 0===i?void 0:setTimeout(()=>{(0,c.v)(`desktop ${t} #${String(e)}: stalled after ${String(1e4)}ms`,{correlationId:o,errorKind:"timeout"}),i(!0);},1e4);return()=>{void 0!==u&&clearTimeout(u);let n=Math.min(Math.max(Math.round(performance.now()-l),0),s.v);(0,c.v)(`desktop ${t} #${String(e)}: settled after ${String(n)}ms`,{correlationId:o,stageReport:{stage:t,phase:"settled",ordinal:e,durationMs:n}});};},[i,t]);}]);},80137,t=>{function e(t){return 0===t.button&&(!(!("u"<typeof navigator)&&/Mac|iPhone|iPad|iPod/i.test(navigator.platform||""))||0!==t.button||!t.ctrlKey);}let s=["input","textarea","select","[contenteditable='true']","[contenteditable='']"],n=0,c="",a="";t.s(["P",0,function(){if("u"<typeof document)return()=>void 0;let t=document.body;0===n&&(c=t.style.cursor,a=t.style.userSelect,t.style.cursor="grabbing",t.style.userSelect="none"),n+=1;let e=!1;return()=>{e||(e=!0,0===(n=Math.max(0,n-1))&&(t.style.cursor=c,t.style.userSelect=a));};},"y",0,function(){let t=window.getSelection();return null!==t&&!t.isCollapsed&&t.toString().length>0;},"M",0,function(t){return e(t)||1===t.button;},"V",0,function(t){return t instanceof Element&&null!==t.closest([...s,"[data-text-selectable='true']","[role='tree']","[role='treeitem']"].join(","));},"A",0,function(t){return t instanceof Element&&null!==t.closest("input,textarea,select,button,a[href],summary,[contenteditable='true'],[contenteditable=''],[role='button'],[role='checkbox'],[role='dialog'],[role='link'],[role='menuitem'],[role='option'],[role='radio'],[role='switch'],[role='tab'],[data-text-selectable='true']");},"p",0,function(t){return t instanceof Element&&null!==t.closest(["button",...s,"a[href]","summary","[role='button']","[role='checkbox']","[role='link']","[role='menuitem']","[role='option']","[role='radio']","[role='switch']","[role='tab']","[data-text-selectable='true']"].join(","));},"R",0,function(t){return t instanceof Element&&null!==t.closest(["button",...s,"a[href]","summary","[role='button']","[role='checkbox']","[role='dialog']","[role='link']","[role='menuitem']","[role='option']","[role='radio']","[role='switch']","[role='tab']","[data-text-selectable='true']",".dlg-overlay",".mc-dialog-backdrop",".cmdk-overlay",".window",".ws-zoom",".ws-fab",".empty-workspace-blob",".conn-badge"].join(","));},"J",0,e,"v",0,function(t){return t instanceof Element&&null!==t.closest([...s,"[data-text-selectable='true']"].join(","));},"C",0,function(t){return t instanceof Element&&null!==t.closest(s.join(","));},"L",0,function(t){return e(t)||1===t.button;},"x",0,function(){return!("u"<typeof document)&&"true"===document.documentElement.dataset.keikoModalOpen;}]);},27391,t=>{var e=t.i(43476);let s=[["ask","Ask every action"],["full","Full access"]];t.s(["f",0,function({cfg:t,set:n}){let c=!1!==t.keikoMode,a="full"===t.access?"full":"ask",i=c?"No rights by default. You approve while manual; Keiko governs per policy when autonomous.":"full"===a?"Legacy: agent acts without prompts.":"Legacy: you approve each privileged action.";return(0,e.jsxs)("div",{className:"permctl",children:[(0,e.jsxs)("button",{type:"button",className:"perm-toggle","data-on":c,role:"switch","aria-checked":c,onClick:()=>n("keikoMode",!c),children:[(0,e.jsx)("img",{className:"perm-orca",src:"/keiko-logo.svg",alt:""}),(0,e.jsxs)("span",{className:"perm-tt",children:[(0,e.jsx)("span",{className:"perm-name",children:"Keiko-Mode"}),(0,e.jsx)("span",{className:"perm-desc",children:"Zero standing rights · Keiko governs"})]}),(0,e.jsx)("span",{className:"perm-sw"+(c?" on":""),children:(0,e.jsx)("span",{})})]}),!c&&(0,e.jsx)("div",{className:"perm-legacy",role:"radiogroup","aria-label":"Legacy access mode",children:s.map(([t,s])=>(0,e.jsx)("button",{type:"button",className:"perm-opt","data-on":a===t,role:"radio","aria-checked":a===t,onClick:()=>n("access",t),children:s},t))}),(0,e.jsx)("div",{className:"perm-note",children:i})]});}]);},33432,33434,t=>{var e=t.i(43476),s=t.i(12005),n=t.i(71645),c=t.i(50850),a=t.i(22656);function i({stage:t,marker:s,onStall:n,children:c}){return(0,a.f)(t,n),(0,e.jsx)("output",{className:"lk-loading",style:{display:"block"},...s,children:c});}function r(){window.location.reload();}t.s(["f",0,i],33434),t.s(["f",0,function(t,a=r){return function(){let r=(0,c.t)(),[o,l]=(0,n.useState)(!1);return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i,{stage:t,marker:{"data-window-chunk":o?"stalled":"loading"},onStall:l,children:r(o?"window.chunkStalled":"common.loading")}),o?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("button",{type:"button",className:"lk-btn",onClick:a,children:r("shell.error.reload")}),(0,e.jsx)(s.i,{})]}):null]});};}],33432);},86630,t=>{t.s(["f",0,"keiko:focus-workspace-search"]);},17608,t=>{t.s(["f",0,"keiko:settings:open-editor"]);},31578,t=>{let e="keiko.wallpaper.enabled",s="keiko.wallpaper.opacity",n="keiko.workspace.background.brightness",c="keiko.workspace.grid.strength",a="keiko.frame.border.strength",i="keiko.frame.inner.glow.strength",r="keiko.workspace.camera.smoothness";function o(t){return Number.isFinite(t)?Math.max(0,Math.min(100,t)):0;}t.s(["o",0,"keiko:frame-border-strength","p",0,a,"B",0,"keiko:frame-inner-glow-strength","Q",0,i,"a",0,"keiko:wallpaper-enabled","s",0,e,"U",0,"keiko:wallpaper-opacity","A",0,s,"i",0,"keiko:workspace-background-brightness","L",0,n,"M",0,"keiko:workspace-camera-smoothness","h",0,r,"_",0,"keiko:workspace-grid-strength","n",0,c,"z",0,function(t){"u">typeof document&&document.documentElement.style.setProperty("--frame-border-strength",`${o(t)}%`);},"q",0,function(t){"u">typeof document&&document.documentElement.style.setProperty("--frame-inner-glow-strength",`${o(t)}%`);},"x",0,function(t){"u">typeof document&&document.documentElement.style.setProperty("--workspace-bg-brightness",`${o(t)}%`);},"e",0,function(t){"u">typeof document&&document.documentElement.style.setProperty("--workspace-grid-strength",`${o(t)}%`);},"m",0,o,"H",0,function(){try{var _window$localStorage;if("function"!=typeof((_window$localStorage=window.localStorage)===null||_window$localStorage===void 0?void 0:_window$localStorage.getItem))return 42;let t=window.localStorage.getItem(a);if(null===t)return 42;return o(Number.parseInt(t,10));}catch{return 42;}},"I",0,function(){try{var _window$localStorage2;if("function"!=typeof((_window$localStorage2=window.localStorage)===null||_window$localStorage2===void 0?void 0:_window$localStorage2.getItem))return 0;let t=window.localStorage.getItem(i);if(null===t)return 0;return o(Number.parseInt(t,10));}catch{return 0;}},"R",0,function(){try{var _window$localStorage3;if("function"!=typeof((_window$localStorage3=window.localStorage)===null||_window$localStorage3===void 0?void 0:_window$localStorage3.getItem))return!1;return"true"===window.localStorage.getItem(e);}catch{return!1;}},"t",0,function(){try{var _window$localStorage4;if("function"!=typeof((_window$localStorage4=window.localStorage)===null||_window$localStorage4===void 0?void 0:_window$localStorage4.getItem))return 100;let t=window.localStorage.getItem(s);if(null===t)return 100;return o(Number.parseInt(t,10));}catch{return 100;}},"W",0,function(){try{var _window$localStorage5;if("function"!=typeof((_window$localStorage5=window.localStorage)===null||_window$localStorage5===void 0?void 0:_window$localStorage5.getItem))return 0;let t=window.localStorage.getItem(n);if(null===t)return 0;return o(Number.parseInt(t,10));}catch{return 0;}},"V",0,function(){try{var _window$localStorage6;if("function"!=typeof((_window$localStorage6=window.localStorage)===null||_window$localStorage6===void 0?void 0:_window$localStorage6.getItem))return 0;let t=window.localStorage.getItem(r);if(null!==t)return o(Number.parseInt(t,10));let e=window.localStorage.getItem("keiko.workspace.camera.animationMode");return 100*("smooth"===e);}catch{return 0;}},"r",0,function(){try{var _window$localStorage7;if("function"!=typeof((_window$localStorage7=window.localStorage)===null||_window$localStorage7===void 0?void 0:_window$localStorage7.getItem))return 28;let t=window.localStorage.getItem(c);if(null===t)return 28;return o(Number.parseInt(t,10));}catch{return 28;}}]);},5079,t=>{async function e(t,e){try{return{status:"success",target:t,value:await e(t)};}catch(e){return{status:"error",target:t,message:e instanceof Error?e.message:"Workspace request failed."};}}async function s(t,s){let n=[];async function c(){let a=t();void 0!==a&&(n.push({index:a.index,outcome:await e(a.target,s)}),await c());}return await c(),n;}async function n(t,e){let n=0,c=()=>{let e=n,s=t[e];if(void 0!==s)return n+=1,{index:e,target:s};},a=Math.min(t.length,4),i=(await Promise.all(Array.from({length:a},()=>s(c,e)))).flat();return i.sort((t,e)=>t.index-e.index),i.map(t=>t.outcome);}t.s(["k",0,n,"q",0,function(t,e){let s,n;if(null===e)return void 0===t?[]:[{id:t,root:t,label:t}];let c=(s=function(t){let e=new Map();for(let s of t.roots){var _e$get;e.set(s.displayName,((_e$get=e.get(s.displayName))!==null&&_e$get!==void 0?_e$get:0)+1);}return e;}(e),n=new Map(),e.roots.map(t=>{var _n$get;if(1===s.get(t.displayName))return t.displayName;let e=((_n$get=n.get(t.displayName))!==null&&_n$get!==void 0?_n$get:0)+1;return n.set(t.displayName,e),`${t.displayName} (${String(e)})`;}));return e.roots.map((t,e)=>{var _c$e;return{id:t.rootRef,root:t.canonicalRoot,label:(_c$e=c[e])!==null&&_c$e!==void 0?_c$e:t.displayName};});}]);},18004,t=>{let e="application/x-keiko-local-knowledge-connector";t.s(["s",0,e,"a",0,"keiko:local-knowledge-connector-drop","A",0,function(t){if(!Array.from(t.types).includes(e))return null;try{let s=JSON.parse(t.getData(e));if("object"!=typeof s||null===s)return null;let n=s.kind;if("capsule"!==n&&"capsule-set"!==n||"string"!=typeof s.id||0===s.id.trim().length)return null;let c="string"==typeof s.label?s.label.trim():"",a="string"==typeof s.lifecycleState?s.lifecycleState.trim():"";return{kind:n,id:s.id.trim(),...(c.length>0?{label:c}:{}),...(a.length>0?{lifecycleState:a}:{})};}catch{return null;}},"_",0,function(t){return JSON.stringify(t);}]);},46095,t=>{var e=t.i(95508),s=t.i(18829),n=t.i(20081),c=t.i(74952),a=t.i(24541),i=t.i(92215);async function r(t,c=e.Fc,a=(0,n.y)()){let i=(await c(t.projectPath,a,t.id)).chats.find(e=>e.id===t.id&&e.projectPath===t.projectPath);if(void 0===i||void 0!==i.status&&"open"!==i.status)throw new s.a("NOT_FOUND","The connected chat is no longer available.",404);return i;}async function o(t,e,r){try{return await e();}catch(e){if(e instanceof s.a&&409===e.status&&"GROUNDING_SCOPE_CHANGED"===e.code){var _e$correlationId;let s=(_e$correlationId=e.correlationId)!==null&&_e$correlationId!==void 0?_e$correlationId:(0,n.y)();(0,a.v)("Grounding scope mutation refused.",{kind:"other",correlationId:s,errorKind:(0,i.J)(e),errorEvidence:(0,c.f)(e)}),await l(t,s,r);}throw e;}}async function l(t,s,n){try{let c=(await(0,e.Fc)(t.projectPath,s,t.id)).chats.find(e=>e.id===t.id&&e.projectPath===t.projectPath);void 0!==c&&(n===null||n===void 0?void 0:n(c));}catch(t){(0,a.v)("Grounding scope conflict refresh failed.",{kind:"other",correlationId:s,errorKind:(0,i.J)(t),errorEvidence:(0,c.f)(t)});}}async function u(t,s,n){return(await o(t,()=>(0,e.TU)(t.id,{...s,...(void 0===t.groundingScopeIdentity?{}:{expectedGroundingScopeIdentity:t.groundingScopeIdentity})}),n)).chat;}function h(t,e){return e.id===t.id&&e.projectPath===t.projectPath&&(void 0===e.status||"open"===e.status);}async function m(t,n,o,l=e.Fc){try{var _n$chat,_e$gitChangeScopes;var u;let e=(_n$chat=n.chat)!==null&&_n$chat!==void 0?_n$chat:await r(t,l,o);if(!h(t,e)||(u=n.scope,((_e$gitChangeScopes=e.gitChangeScopes)===null||_e$gitChangeScopes===void 0?void 0:_e$gitChangeScopes.some(t=>t.relationshipId===u.relationshipId&&t.snapshotDigest===u.snapshotDigest&&t.remoteDigest===u.remoteDigest))!==!0))throw new s.a("CONTRACT_VALIDATION_FAILED","Committed Git scope was not confirmed.",502);return{chat:e,confirmed:!0};}catch(t){return(0,a.v)("Committed Git scope refresh failed.",{kind:"other",correlationId:o,errorKind:(0,i.J)(t),errorEvidence:(0,c.f)(t)}),{chat:void 0,confirmed:!1,unavailable:void 0!==n.chat||t instanceof s.a&&"NOT_FOUND"===t.code};}}t.s(["M",0,function(t,e,s,n,c){if(h(t,e)&&!0!==s.unavailable){var _e$gitChangeScopes2;if(void 0!==s.chat)return e.updatedAt>s.chat.updatedAt?void 0:s.chat;if(!h(t,e)||e.groundingScopeIdentity!==t.groundingScopeIdentity)return;let a=((_e$gitChangeScopes2=e.gitChangeScopes)!==null&&_e$gitChangeScopes2!==void 0?_e$gitChangeScopes2:[]).filter(t=>t.relationshipId!==c&&t.relationshipId!==n.relationshipId);return{...e,gitChangeScopes:[...a,n]};}},"A",0,m,"C",0,function(t,e,s,n){return o(t,()=>void 0===t.groundingScopeIdentity?s(t.id,e):s(t.id,e,t.groundingScopeIdentity),n);},"a",0,u,"q",0,o]);}],18566,(t,e,s)=>{e.exports=t.r(76562);},11013,t=>{t.v(e=>Promise.all(["static/chunks/3j2y7wwvipy-8.js"].map(e=>t.l(e))).then(()=>e(48592)));},77778,t=>{t.v(e=>Promise.all(["static/chunks/29x347tohyhrb.css","static/chunks/1d3my-vj8i382.js"].map(e=>t.l(e))).then(()=>e(53026)));},87127,t=>{t.v(e=>Promise.all(["static/chunks/2xkyms4tg6-e_.js"].map(e=>t.l(e))).then(()=>e(70374)));},58578,t=>{t.v({cmpViewportWindow:"Xdoukq_cmpViewportWindow",cmpWorkspaceControl:"Xdoukq_cmpWorkspaceControl",cmpWorkspaceViewport:"Xdoukq_cmpWorkspaceViewport"});},97206,t=>{t.v({cmpWorkspaceSurface:"oGAJLW_cmpWorkspaceSurface",marquee:"oGAJLW_marquee",selectionRing:"oGAJLW_selectionRing",workspaceWindow:"oGAJLW_workspaceWindow"});},27555,t=>{t.v(e=>Promise.all(["static/chunks/3g9yg2hdnr5z3.js"].map(e=>t.l(e))).then(()=>e(84508)));},60179,t=>{t.v(e=>Promise.all(["static/chunks/2nzruc7wyn8dr.js","static/chunks/3l6l7qzd411sc.js","static/chunks/0l2m0uaca7i0k.js","static/chunks/1rhvew72iz-n3.css"].map(e=>t.l(e))).then(()=>e(87807)));},83233,t=>{t.v(t=>Promise.resolve().then(()=>t(49912)));},43641,t=>{t.v(e=>Promise.all(["static/chunks/14tr5ujuc_u34.js"].map(e=>t.l(e))).then(()=>e(39652)));},52011,t=>{t.v(e=>Promise.all(["static/chunks/3gjvug_o-6w5u.js"].map(e=>t.l(e))).then(()=>e(91592)));},41532,t=>{t.v(e=>Promise.all(["static/chunks/3jc_y1tnauj-z.js","static/chunks/3l6l7qzd411sc.js"].map(e=>t.l(e))).then(()=>e(39753)));},14527,t=>{t.v(e=>Promise.all(["static/chunks/1n4mmvvatk3mn.js","static/chunks/3l6l7qzd411sc.js","static/chunks/1ba1q4r12n3hc.js","static/chunks/1rhvew72iz-n3.css"].map(e=>t.l(e))).then(()=>e(89398)));},18311,t=>{t.v(e=>Promise.all(["static/chunks/33jglfz6y49ka.js","static/chunks/3l6l7qzd411sc.js","static/chunks/20eou_wcxpx1s.js","static/chunks/1rhvew72iz-n3.css"].map(e=>t.l(e))).then(()=>e(92757)));},80783,t=>{t.v(e=>Promise.all(["static/chunks/2po2kvx7r4llx.js"].map(e=>t.l(e))).then(()=>e(48950)));},43275,t=>{t.v(e=>Promise.all(["static/chunks/3jgowfcbukuu6.js"].map(e=>t.l(e))).then(()=>e(28417)));},89262,t=>{t.v(e=>Promise.all(["static/chunks/2x_kyz5ial_41.js"].map(e=>t.l(e))).then(()=>e(53754)));},70404,t=>{t.v(e=>Promise.all(["static/chunks/1k7tt8btcpb6z.js","static/chunks/3l6l7qzd411sc.js","static/chunks/0iog3hj4_z_nh.js","static/chunks/01stbp6xk3t5k.css"].map(e=>t.l(e))).then(()=>e(55263)));},6316,t=>{t.v(e=>Promise.all(["static/chunks/26316nk10nm38.css","static/chunks/1ul_ud5pbnro-.js"].map(e=>t.l(e))).then(()=>e(88692)));},67121,t=>{t.v(e=>Promise.all(["static/chunks/1cirwobl5ywpw.js"].map(e=>t.l(e))).then(()=>e(59082)));},53315,t=>{t.v(e=>Promise.all(["static/chunks/3e-3pvlfnqvhc.js","static/chunks/3ksimuw0ad9zn.js","static/chunks/21yx7habl0roe.js","static/chunks/0xbqv2_0xajgv.js","static/chunks/05ckjqpq5fs4j.js","static/chunks/3l6l7qzd411sc.js","static/chunks/1rhvew72iz-n3.css"].map(e=>t.l(e))).then(()=>e(60174)));},61721,t=>{t.v(e=>Promise.all(["static/chunks/33jglfz6y49ka.js","static/chunks/3l6l7qzd411sc.js","static/chunks/1mqejavn0g70n.js"].map(e=>t.l(e))).then(()=>e(1867)));},38811,t=>{t.v(e=>Promise.all(["static/chunks/3d0lfuguh2qh3.css","static/chunks/0ld3t8oea9hy4.js","static/chunks/3l6l7qzd411sc.js"].map(e=>t.l(e))).then(()=>e(3246)));},75888,t=>{t.v(e=>Promise.all(["static/chunks/0lmsmxjl20gd_.js","static/chunks/3l6l7qzd411sc.js","static/chunks/2ajat_rv2v0wp.js","static/chunks/1rhvew72iz-n3.css"].map(e=>t.l(e))).then(()=>e(34484)));},99462,t=>{t.v(e=>Promise.all(["static/chunks/01nez7u6fg1dd.css","static/chunks/1rhvew72iz-n3.css","static/chunks/3owvaep851hrg.js","static/chunks/435_soqjmawxr.js"].map(e=>t.l(e))).then(()=>e(20900)));},6814,t=>{t.v(e=>Promise.all(["static/chunks/33jglfz6y49ka.js","static/chunks/3l6l7qzd411sc.js","static/chunks/3tl76hukh2-pb.js","static/chunks/1rhvew72iz-n3.css"].map(e=>t.l(e))).then(()=>e(50746)));},45389,t=>{t.v(e=>Promise.all(["static/chunks/1-zloxawolpl5.css","static/chunks/0vm0za6c--wqd.js","static/chunks/3l6l7qzd411sc.js"].map(e=>t.l(e))).then(()=>e(41853)));},9e4,t=>{t.v(e=>Promise.all(["static/chunks/3d27kas68zctw.js"].map(e=>t.l(e))).then(()=>e(86531)));},97072,t=>{t.v(e=>Promise.all(["static/chunks/0o0r6txb3s4ga.js","static/chunks/3l6l7qzd411sc.js","static/chunks/09_j3szzd0d-w.js"].map(e=>t.l(e))).then(()=>e(67988)));},93261,t=>{t.v(e=>Promise.all(["static/chunks/395aita-ystfu.js","static/chunks/3l6l7qzd411sc.js","static/chunks/1rhvew72iz-n3.css"].map(e=>t.l(e))).then(()=>e(28867)));},20678,t=>{t.v(e=>Promise.all(["static/chunks/33jglfz6y49ka.js","static/chunks/3l6l7qzd411sc.js","static/chunks/3_qhvykv4ncye.js","static/chunks/1rhvew72iz-n3.css"].map(e=>t.l(e))).then(()=>e(34264)));},82309,t=>{t.v(e=>Promise.all(["static/chunks/1d_810phvbt-v.js","static/chunks/1rhvew72iz-n3.css"].map(e=>t.l(e))).then(()=>e(94680)));},34722,t=>{t.v(e=>Promise.all(["static/chunks/1rhvew72iz-n3.css","static/chunks/33jglfz6y49ka.js","static/chunks/3l6l7qzd411sc.js","static/chunks/26dysjhfplkru.js"].map(e=>t.l(e))).then(()=>e(43554)));},81847,t=>{t.v(e=>Promise.all(["static/chunks/33jglfz6y49ka.js","static/chunks/2mh_3k0jawz3u.js","static/chunks/3l6l7qzd411sc.js","static/chunks/1uy2itzuap01l.js","static/chunks/33iwa_n3mi3c1.js","static/chunks/1rhvew72iz-n3.css"].map(e=>t.l(e))).then(()=>e(12525)));},46011,t=>{t.v(e=>Promise.all(["static/chunks/441_sxcco7_34.js"].map(e=>t.l(e))).then(()=>e(18138)));},58735,t=>{t.v(e=>Promise.all(["static/chunks/0-vpa4wvwcpe-.js","static/chunks/1ufe9d586c16n.js","static/chunks/3_10vm9g45_8y.js","static/chunks/1rhvew72iz-n3.css","static/chunks/1xyltb603pg9u.css"].map(e=>t.l(e))).then(()=>e(41613)));},76923,t=>{t.v(e=>Promise.all(["static/chunks/2o7tp9zv8u7tw.js","static/chunks/3he4t7yk0v9z5.js","static/chunks/3_10vm9g45_8y.js","static/chunks/1mxu3l7fz5yz1.js","static/chunks/1ufe9d586c16n.js","static/chunks/3l6l7qzd411sc.js","static/chunks/1nz7wziy2b21i.js","static/chunks/2l0_e_qyhvve_.js","static/chunks/2bm_bps837c8s.js","static/chunks/1xyltb603pg9u.css","static/chunks/1rhvew72iz-n3.css"].map(e=>t.l(e))).then(()=>e(10549)));},35400,t=>{t.v(e=>Promise.all(["static/chunks/37nl28rjnj-un.js","static/chunks/3l6l7qzd411sc.js","static/chunks/3smiwe1mgszto.js","static/chunks/38fsj-e1lbepg.css"].map(e=>t.l(e))).then(()=>e(33212)));},28945,t=>{t.v(e=>Promise.all(["static/chunks/00_ejwjjg53_2.js","static/chunks/31gt5uma4pa3g.css"].map(e=>t.l(e))).then(()=>e(41785)));},58860,t=>{t.v(e=>Promise.all(["static/chunks/2ejhbs16gist6.js"].map(e=>t.l(e))).then(()=>e(68188)));},22699,t=>{t.v(e=>Promise.all(["static/chunks/30jm7s-paox4s.js","static/chunks/3l6l7qzd411sc.js","static/chunks/258c4g2mh1mgq.js"].map(e=>t.l(e))).then(()=>e(7492)));},53232,t=>{t.v(e=>Promise.all(["static/chunks/0l49mxwlto8de.js"].map(e=>t.l(e))).then(()=>e(21550)));},17024,t=>{t.v(e=>Promise.all(["static/chunks/0z-0fcs2vq9p8.js","static/chunks/3l6l7qzd411sc.js","static/chunks/1kfkwr9qy7j-0.css"].map(e=>t.l(e))).then(()=>e(510)));},31266,t=>{t.v(e=>Promise.all(["static/chunks/26q8c8sjlixk9.js"].map(e=>t.l(e))).then(()=>e(1466)));},42885,t=>{t.v(e=>Promise.all(["static/chunks/24h-23ln2syl0.css","static/chunks/1fquwed8kh0pn.js"].map(e=>t.l(e))).then(()=>e(43045)));},4232,t=>{t.v(e=>Promise.all(["static/chunks/3ypugvlxoxq7v.css","static/chunks/08el4_gl_qhj5.js"].map(e=>t.l(e))).then(()=>e(90330)));},51058,t=>{t.v(e=>Promise.all(["static/chunks/1wrcqg-r0_i4y.css","static/chunks/3f7f8h63s7b_h.js"].map(e=>t.l(e))).then(()=>e(27066)));},37240,t=>{t.v(e=>Promise.all(["static/chunks/113i2ed523uql.js"].map(e=>t.l(e))).then(()=>e(24046)));},44543,t=>{t.v(e=>Promise.all(["static/chunks/1-_7lu_lgm6ej.js"].map(e=>t.l(e))).then(()=>e(26507)));},59683,t=>{t.v(e=>Promise.all(["static/chunks/33jglfz6y49ka.js","static/chunks/3he4t7yk0v9z5.js","static/chunks/2g6shdwhrg8_2.js","static/chunks/3l6l7qzd411sc.js","static/chunks/1i7xk_bpdb206.js","static/chunks/1rhvew72iz-n3.css"].map(e=>t.l(e))).then(()=>e(38661)));},45416,t=>{t.v(e=>Promise.all(["static/chunks/1-cdeq2e5bqgn.js"].map(e=>t.l(e))).then(()=>e(82109)));},50426,t=>{t.v(e=>Promise.all(["static/chunks/3mqrq9fc15u8f.js","static/chunks/1_543tklqmtaa.js","static/chunks/3qkyh61qk56y3.js","static/chunks/3-vp5mbiz_k0a.js","static/chunks/02jl1lf3a8dud.js","static/chunks/3l6l7qzd411sc.js","static/chunks/0ob6quzp23sqe.js","static/chunks/1ka7n7_t88nku.js","static/chunks/0vqzhbpt7iewb.css","static/chunks/2ayb5cby-2fpy.css"].map(e=>t.l(e))).then(()=>e(58873)));},38673,t=>{t.v(e=>Promise.all(["static/chunks/3owd_yj0kssh5.js","static/chunks/4598s2z_w_1la.js","static/chunks/12ncxpwq54-k2.js","static/chunks/1ufe9d586c16n.js","static/chunks/3l6l7qzd411sc.js","static/chunks/0e01hhk3hnxds.js","static/chunks/02ex3k089apnn.js","static/chunks/1kbra771vsw0c.css","static/chunks/1rhvew72iz-n3.css"].map(e=>t.l(e))).then(()=>e(91236)));},68932,t=>{t.v(e=>Promise.all(["static/chunks/43b-q6ywd5-7b.js","static/chunks/1qlo4nhagyp5y.css"].map(e=>t.l(e))).then(()=>e(44884)));},77695,t=>{t.v(e=>Promise.all(["static/chunks/1e9f1ex2uq29r.js","static/chunks/24fnfy1y6n4og.js","static/chunks/226y24czlj0wp.js","static/chunks/435_soqjmawxr.js","static/chunks/1rhvew72iz-n3.css"].map(e=>t.l(e))).then(()=>e(29042)));},99933,t=>{t.v(e=>Promise.all(["static/chunks/1_zhw6-vuw3sv.js","static/chunks/226y24czlj0wp.js","static/chunks/2pdg3ndckihyl.js","static/chunks/1rhvew72iz-n3.css"].map(e=>t.l(e))).then(()=>e(85341)));},97415,t=>{t.v(e=>Promise.all(["static/chunks/35oxd7_mv6yx-.js"].map(e=>t.l(e))).then(()=>e(47203)));},19582,t=>{t.v(e=>Promise.all(["static/chunks/1p6h98yn2nqtv.js"].map(e=>t.l(e))).then(()=>e(3401)));},20105,t=>{t.v(e=>Promise.all(["static/chunks/3ackh23s9xbyw.js","static/chunks/2gxdz5i19sf2x.js","static/chunks/1rhvew72iz-n3.css"].map(e=>t.l(e))).then(()=>e(9770)));},12938,t=>{t.v(e=>Promise.all(["static/chunks/34ey1sc6cg1jb.js","static/chunks/2k9o6ccprjqj_.js","static/chunks/2rxwfcn3g_xcj.js","static/chunks/435_soqjmawxr.js","static/chunks/1kxtf_e6d06lv.css"].map(e=>t.l(e))).then(()=>e(60597)));},44124,t=>{t.v(e=>Promise.all(["static/chunks/0ru_y22on6q7e.js","static/chunks/0pujco5ylkqlj.js","static/chunks/3l6l7qzd411sc.js","static/chunks/07n4qwd_8o79a.css"].map(e=>t.l(e))).then(()=>e(76724)));},39644,t=>{t.v(e=>Promise.all(["static/chunks/3r1y5u63no3t6.js","static/chunks/27uazj4clkgxv.js","static/chunks/3l6l7qzd411sc.js","static/chunks/1rhvew72iz-n3.css"].map(e=>t.l(e))).then(()=>e(76253)));},71862,t=>{t.v(e=>Promise.all(["static/chunks/3j8fuk7gt_nsd.js"].map(e=>t.l(e))).then(()=>e(24477)));},5823,t=>{t.v(e=>Promise.all(["static/chunks/24of1at9_h41r.js"].map(e=>t.l(e))).then(()=>e(76055)));},37447,t=>{t.v(e=>Promise.all(["static/chunks/0u8141z7plxo-.js","static/chunks/1cvzxvmhd8k9g.js"].map(e=>t.l(e))).then(()=>e(75887)));},90286,t=>{t.v(e=>Promise.all(["static/chunks/18xhq5330p-ae.js"].map(e=>t.l(e))).then(()=>e(50818)));},34532,t=>{t.v(e=>Promise.all(["static/chunks/2mkqmrupyw2fa.js"].map(e=>t.l(e))).then(()=>e(19995)));},60447,t=>{t.v(e=>Promise.all(["static/chunks/2yjjxeku65fbf.js"].map(e=>t.l(e))).then(()=>e(12014)));}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[47284,t=>{let e=Object.freeze([{key:"t",mod:["cmd"]},{key:"t",mod:["ctrl"]},{key:"r",mod:["cmd"]},{key:"r",mod:["ctrl"]},{key:"n",mod:["cmd","shift"]},{key:"n",mod:["ctrl","shift"]},{key:"w",mod:["cmd"]},{key:"w",mod:["ctrl"]}]),s=["mac","other"];function n(t,e){let s=new Set();for(let a of t){var n,c;s.add((n=a,c=e,"cmd"!==n?n:"mac"===c?"meta":"ctrl"));}return s;}function c(t){return[...new Set(s.map(e=>{let s;return s=[...n(t.mod,e)].sort((t,e)=>t.localeCompare(e)),`${s.join("+")}|${t.key.toLowerCase()}`;}))];}t.s(["A",0,function(t){return!(t.mod.includes("cmd")&&t.mod.includes("ctrl"));},"P",0,function(t){for(let s of e)if(function(t,e){let s=new Set(c(t));return c(e).some(t=>s.has(t));}(t,s))return!0;return!1;},"B",0,function(t){switch(t.kind){case"ui.window.move":return"Move window";case"ui.window.resize":return"Resize window";case"ui.window.zorder":return"Reorder window";case"ui.window.close":return"Close window";case"ui.window.open":return"Open window";case"ui.workspace.pan":return"Pan workspace";case"ui.workspace.zoom":return"Zoom workspace";case"ui.workspace.fit":return"Fit workspace to view";case"ui.panel.toggle":return`Toggle ${t.panel} panel`;case"ui.selection.change":return"Change selection";case"ui.tab.switch":return"Switch tab";}},"i",0,c,"D",0,function(t){let e=[...t.mod].sort((t,e)=>t.localeCompare(e));return`${e.join("+")}|${t.key.toLowerCase()}`;},"l",0,function(t){switch(t.kind){case"ui.window.move":case"ui.window.resize":case"ui.window.zorder":case"ui.workspace.pan":case"ui.workspace.zoom":case"ui.workspace.fit":case"ui.panel.toggle":case"ui.selection.change":case"ui.tab.switch":return{...t,before:t.after,after:t.before};case"ui.window.close":return{...t,kind:"ui.window.open"};case"ui.window.open":return{...t,kind:"ui.window.close"};}},"v",0,n]);},73455,10666,t=>{var e=t.i(43476),s=t.i(71645);let n=(0,s.createContext)(null);t.s(["P",0,function({register:t,children:s}){return(0,e.jsx)(n.Provider,{value:t,children:s});},"f",0,function(t,e){let c=(0,s.useContext)(n);(0,s.useEffect)(()=>{if(null!==c&&void 0!==t&&0!==t.length)return c(t,e);},[e,c,t]);}],73455);let c=(0,s.createContext)(null);t.s(["z",0,function({value:t,children:s}){return(0,e.jsx)(c.Provider,{value:t,children:s});},"V",0,function(){return(0,s.useContext)(c);}],10666);},71409,t=>{var e=t.i(43476),s=t.i(71645);let n=(0,s.createContext)(null);function c(t,e){return`${t}\0${e}`;}function a(){return(0,s.useContext)(n);}t.s(["J",0,function({children:t}){let a=(0,s.useRef)(new Map()),i=(0,s.useCallback)((t,e,s)=>{let n=c(t,e);return a.current.set(n,s),()=>{a.current.get(n)===s&&a.current.delete(n);};},[]),r=(0,s.useCallback)(async(t,e)=>{let s=a.current.get(c(t,e.path));return void 0===s?{status:"not-open"}:s(e);},[]),o=(0,s.useMemo)(()=>({register:i,apply:r}),[r,i]);return(0,e.jsx)(n.Provider,{value:o,children:t});},"W",0,function(t,e,n){let c=a();(0,s.useEffect)(()=>{if(null!==c&&void 0!==t&&void 0!==e&&0!==e.length)return c.register(t,e,n);},[n,e,c,t]);},"d",0,a]);},86114,t=>{var e=t.i(43476),s=t.i(71645);let n=(0,s.createContext)(null);t.s(["j",0,function({value:t,children:s}){return(0,e.jsx)(n.Provider,{value:t,children:s});},"t",0,function(){let t=(0,s.useContext)(n);if(null===t)throw Error("useActiveWorkspace must be used inside ActiveWorkspaceProvider");return t;},"B",0,function(){return(0,s.useContext)(n);}]);},98723,t=>{let e=(0,t.i(71645).createContext)({active:null,winCount:0});t.s(["f",0,e]);},98408,19047,89860,t=>{let e="application/x-keiko-figma-view";function s(t){return"string"==typeof t&&t.trim().length>0?t.trim():null;}t.s(["T",0,e,"_",0,"keiko:figma-view-drop","o",0,function(t){if(!Array.from(t.types).includes(e))return null;try{let n=JSON.parse(t.getData(e));if("object"!=typeof n||null===n)return null;let c=s(n.snapshotRunId),a=s(n.screenId),i=s(n.name);if(null===c||null===a||null===i)return null;return{snapshotRunId:c,screenId:a,name:i};}catch{return null;}},"a",0,function(t){return JSON.stringify(t);}],98408);let n="application/x-keiko-figma-json";function c(t){return"string"==typeof t&&t.trim().length>0?t.trim():null;}t.s(["h",0,n,"n",0,"keiko:figma-json-drop","t",0,function(t){if(!Array.from(t.types).includes(n))return null;try{let e=JSON.parse(t.getData(n));if("object"!=typeof e||null===e)return null;let s=c(e.snapshotRunId),a=c(e.screenId),i=c(e.name);if(null===s||null===a||null===i)return null;let r=c(e.sourceWindowId);return{snapshotRunId:s,screenId:a,name:i,...(null!==r?{sourceWindowId:r}:{})};}catch{return null;}},"E",0,function(t){return JSON.stringify(t);}],19047);let a="application/x-keiko-figma-image";function i(t){return"string"==typeof t&&t.trim().length>0?t.trim():null;}t.s(["X",0,a,"f",0,"keiko:figma-image-drop","c",0,function(t){if(!Array.from(t.types).includes(a))return null;try{let e=JSON.parse(t.getData(a));if("object"!=typeof e||null===e)return null;let s=i(e.snapshotRunId),n=i(e.screenId),c=i(e.name),r=i(e.imageSrc);if(null===s||null===n||null===c||null===r||!/^\/api\/figma\/snapshots\/[^/?#]+\/screens\/\d+\/image$/u.test(r))return null;let o=i(e.sourceWindowId);return{snapshotRunId:s,screenId:n,name:c,imageSrc:r,...(null!==o?{sourceWindowId:o}:{})};}catch{return null;}},"k",0,function(t){return JSON.stringify(t);}],89860);},22318,t=>{var e=t.i(71645);let s="keiko.theme",n="dark",c="keiko:theme-change";function a(t){return"light"===t||"dark"===t;}t.s(["f",0,function(){let[t,i]=(0,e.useState)(n),[r,o]=(0,e.useState)(!1),l=(0,e.useRef)(!1);return(0,e.useEffect)(()=>{i(function(){if("u">typeof document){let t=document.documentElement.dataset.theme;if(a(t))return t;}try{let t=window.localStorage.getItem(s);return a(t)?t:n;}catch{return n;}}()),o(!0);},[]),(0,e.useEffect)(()=>{let t=t=>{if(!(t instanceof CustomEvent)||!a(t.detail))return;let e=t.detail;i(t=>t===e?t:(l.current=!0,e));};return window.addEventListener(c,t),()=>window.removeEventListener(c,t);},[]),(0,e.useEffect)(()=>{if(!r)return;let e=!l.current;l.current=!1,"u">typeof document&&(document.documentElement.dataset.theme=t);try{window.localStorage.setItem(s,t);}catch{}e&&window.dispatchEvent(new CustomEvent(c,{detail:t}));},[t,r]),{theme:t,toggle:(0,e.useCallback)(()=>{i(t=>"light"===t?"dark":"light");},[])};}]);},22656,t=>{var e=t.i(71645),s=t.i(25327),n=t.i(20081),c=t.i(24541);let a=0;t.s(["f",0,function(t,i){let r=(0,e.useRef)(void 0);(0,e.useEffect)(()=>{let e=a+=1;r.current=e;let o=(0,n.y)(),l=performance.now();(0,c.v)(`desktop ${t} #${String(e)}: started`,{correlationId:o,stageReport:{stage:t,phase:"started",ordinal:e}});let u=void 0===i?void 0:setTimeout(()=>{(0,c.v)(`desktop ${t} #${String(e)}: stalled after ${String(1e4)}ms`,{correlationId:o,errorKind:"timeout"}),i(!0);},1e4);return()=>{void 0!==u&&clearTimeout(u);let n=Math.min(Math.max(Math.round(performance.now()-l),0),s.v);(0,c.v)(`desktop ${t} #${String(e)}: settled after ${String(n)}ms`,{correlationId:o,stageReport:{stage:t,phase:"settled",ordinal:e,durationMs:n}});};},[i,t]);}]);},80137,t=>{function e(t){return 0===t.button&&(!(!("u"<typeof navigator)&&/Mac|iPhone|iPad|iPod/i.test(navigator.platform||""))||0!==t.button||!t.ctrlKey);}let s=["input","textarea","select","[contenteditable='true']","[contenteditable='']"],n=0,c="",a="";t.s(["P",0,function(){if("u"<typeof document)return()=>void 0;let t=document.body;0===n&&(c=t.style.cursor,a=t.style.userSelect,t.style.cursor="grabbing",t.style.userSelect="none"),n+=1;let e=!1;return()=>{e||(e=!0,0===(n=Math.max(0,n-1))&&(t.style.cursor=c,t.style.userSelect=a));};},"y",0,function(){let t=window.getSelection();return null!==t&&!t.isCollapsed&&t.toString().length>0;},"M",0,function(t){return e(t)||1===t.button;},"V",0,function(t){return t instanceof Element&&null!==t.closest([...s,"[data-text-selectable='true']","[role='tree']","[role='treeitem']"].join(","));},"A",0,function(t){return t instanceof Element&&null!==t.closest("input,textarea,select,button,a[href],summary,[contenteditable='true'],[contenteditable=''],[role='button'],[role='checkbox'],[role='dialog'],[role='link'],[role='menuitem'],[role='option'],[role='radio'],[role='switch'],[role='tab'],[data-text-selectable='true']");},"p",0,function(t){return t instanceof Element&&null!==t.closest(["button",...s,"a[href]","summary","[role='button']","[role='checkbox']","[role='link']","[role='menuitem']","[role='option']","[role='radio']","[role='switch']","[role='tab']","[data-text-selectable='true']"].join(","));},"R",0,function(t){return t instanceof Element&&null!==t.closest(["button",...s,"a[href]","summary","[role='button']","[role='checkbox']","[role='dialog']","[role='link']","[role='menuitem']","[role='option']","[role='radio']","[role='switch']","[role='tab']","[data-text-selectable='true']",".dlg-overlay",".mc-dialog-backdrop",".cmdk-overlay",".window",".ws-zoom",".ws-fab",".empty-workspace-blob",".conn-badge"].join(","));},"J",0,e,"v",0,function(t){return t instanceof Element&&null!==t.closest([...s,"[data-text-selectable='true']"].join(","));},"C",0,function(t){return t instanceof Element&&null!==t.closest(s.join(","));},"L",0,function(t){return e(t)||1===t.button;},"x",0,function(){return!("u"<typeof document)&&"true"===document.documentElement.dataset.keikoModalOpen;}]);},27391,t=>{var e=t.i(43476);let s=[["ask","Ask every action"],["full","Full access"]];t.s(["f",0,function({cfg:t,set:n}){let c=!1!==t.keikoMode,a="full"===t.access?"full":"ask",i=c?"No rights by default. You approve while manual; Keiko governs per policy when autonomous.":"full"===a?"Legacy: agent acts without prompts.":"Legacy: you approve each privileged action.";return(0,e.jsxs)("div",{className:"permctl",children:[(0,e.jsxs)("button",{type:"button",className:"perm-toggle","data-on":c,role:"switch","aria-checked":c,onClick:()=>n("keikoMode",!c),children:[(0,e.jsx)("img",{className:"perm-orca",src:"/keiko-logo.svg",alt:""}),(0,e.jsxs)("span",{className:"perm-tt",children:[(0,e.jsx)("span",{className:"perm-name",children:"Keiko-Mode"}),(0,e.jsx)("span",{className:"perm-desc",children:"Zero standing rights · Keiko governs"})]}),(0,e.jsx)("span",{className:"perm-sw"+(c?" on":""),children:(0,e.jsx)("span",{})})]}),!c&&(0,e.jsx)("div",{className:"perm-legacy",role:"radiogroup","aria-label":"Legacy access mode",children:s.map(([t,s])=>(0,e.jsx)("button",{type:"button",className:"perm-opt","data-on":a===t,role:"radio","aria-checked":a===t,onClick:()=>n("access",t),children:s},t))}),(0,e.jsx)("div",{className:"perm-note",children:i})]});}]);},33432,33434,t=>{var e=t.i(43476),s=t.i(12005),n=t.i(71645),c=t.i(50850),a=t.i(22656);function i({stage:t,marker:s,onStall:n,children:c}){return(0,a.f)(t,n),(0,e.jsx)("output",{className:"lk-loading",style:{display:"block"},...s,children:c});}function r(){window.location.reload();}t.s(["f",0,i],33434),t.s(["f",0,function(t,a=r){return function(){let r=(0,c.t)(),[o,l]=(0,n.useState)(!1);return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i,{stage:t,marker:{"data-window-chunk":o?"stalled":"loading"},onStall:l,children:r(o?"window.chunkStalled":"common.loading")}),o?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("button",{type:"button",className:"lk-btn",onClick:a,children:r("shell.error.reload")}),(0,e.jsx)(s.i,{})]}):null]});};}],33432);},86630,t=>{t.s(["f",0,"keiko:focus-workspace-search"]);},17608,t=>{t.s(["f",0,"keiko:settings:open-editor"]);},31578,t=>{let e="keiko.wallpaper.enabled",s="keiko.wallpaper.opacity",n="keiko.workspace.background.brightness",c="keiko.workspace.grid.strength",a="keiko.frame.border.strength",i="keiko.frame.inner.glow.strength",r="keiko.workspace.camera.smoothness";function o(t){return Number.isFinite(t)?Math.max(0,Math.min(100,t)):0;}t.s(["o",0,"keiko:frame-border-strength","p",0,a,"B",0,"keiko:frame-inner-glow-strength","Q",0,i,"a",0,"keiko:wallpaper-enabled","s",0,e,"U",0,"keiko:wallpaper-opacity","A",0,s,"i",0,"keiko:workspace-background-brightness","L",0,n,"M",0,"keiko:workspace-camera-smoothness","h",0,r,"_",0,"keiko:workspace-grid-strength","n",0,c,"z",0,function(t){"u">typeof document&&document.documentElement.style.setProperty("--frame-border-strength",`${o(t)}%`);},"q",0,function(t){"u">typeof document&&document.documentElement.style.setProperty("--frame-inner-glow-strength",`${o(t)}%`);},"x",0,function(t){"u">typeof document&&document.documentElement.style.setProperty("--workspace-bg-brightness",`${o(t)}%`);},"e",0,function(t){"u">typeof document&&document.documentElement.style.setProperty("--workspace-grid-strength",`${o(t)}%`);},"m",0,o,"H",0,function(){try{var _window$localStorage;if("function"!=typeof((_window$localStorage=window.localStorage)===null||_window$localStorage===void 0?void 0:_window$localStorage.getItem))return 42;let t=window.localStorage.getItem(a);if(null===t)return 42;return o(Number.parseInt(t,10));}catch{return 42;}},"I",0,function(){try{var _window$localStorage2;if("function"!=typeof((_window$localStorage2=window.localStorage)===null||_window$localStorage2===void 0?void 0:_window$localStorage2.getItem))return 0;let t=window.localStorage.getItem(i);if(null===t)return 0;return o(Number.parseInt(t,10));}catch{return 0;}},"R",0,function(){try{var _window$localStorage3;if("function"!=typeof((_window$localStorage3=window.localStorage)===null||_window$localStorage3===void 0?void 0:_window$localStorage3.getItem))return!1;return"true"===window.localStorage.getItem(e);}catch{return!1;}},"t",0,function(){try{var _window$localStorage4;if("function"!=typeof((_window$localStorage4=window.localStorage)===null||_window$localStorage4===void 0?void 0:_window$localStorage4.getItem))return 100;let t=window.localStorage.getItem(s);if(null===t)return 100;return o(Number.parseInt(t,10));}catch{return 100;}},"W",0,function(){try{var _window$localStorage5;if("function"!=typeof((_window$localStorage5=window.localStorage)===null||_window$localStorage5===void 0?void 0:_window$localStorage5.getItem))return 0;let t=window.localStorage.getItem(n);if(null===t)return 0;return o(Number.parseInt(t,10));}catch{return 0;}},"V",0,function(){try{var _window$localStorage6;if("function"!=typeof((_window$localStorage6=window.localStorage)===null||_window$localStorage6===void 0?void 0:_window$localStorage6.getItem))return 0;let t=window.localStorage.getItem(r);if(null!==t)return o(Number.parseInt(t,10));let e=window.localStorage.getItem("keiko.workspace.camera.animationMode");return 100*("smooth"===e);}catch{return 0;}},"r",0,function(){try{var _window$localStorage7;if("function"!=typeof((_window$localStorage7=window.localStorage)===null||_window$localStorage7===void 0?void 0:_window$localStorage7.getItem))return 28;let t=window.localStorage.getItem(c);if(null===t)return 28;return o(Number.parseInt(t,10));}catch{return 28;}}]);},5079,t=>{async function e(t,e){try{return{status:"success",target:t,value:await e(t)};}catch(e){return{status:"error",target:t,message:e instanceof Error?e.message:"Workspace request failed."};}}async function s(t,s){let n=[];async function c(){let a=t();void 0!==a&&(n.push({index:a.index,outcome:await e(a.target,s)}),await c());}return await c(),n;}async function n(t,e){let n=0,c=()=>{let e=n,s=t[e];if(void 0!==s)return n+=1,{index:e,target:s};},a=Math.min(t.length,4),i=(await Promise.all(Array.from({length:a},()=>s(c,e)))).flat();return i.sort((t,e)=>t.index-e.index),i.map(t=>t.outcome);}t.s(["k",0,n,"q",0,function(t,e){let s,n;if(null===e)return void 0===t?[]:[{id:t,root:t,label:t}];let c=(s=function(t){let e=new Map();for(let s of t.roots){var _e$get;e.set(s.displayName,((_e$get=e.get(s.displayName))!==null&&_e$get!==void 0?_e$get:0)+1);}return e;}(e),n=new Map(),e.roots.map(t=>{var _n$get;if(1===s.get(t.displayName))return t.displayName;let e=((_n$get=n.get(t.displayName))!==null&&_n$get!==void 0?_n$get:0)+1;return n.set(t.displayName,e),`${t.displayName} (${String(e)})`;}));return e.roots.map((t,e)=>{var _c$e;return{id:t.rootRef,root:t.canonicalRoot,label:(_c$e=c[e])!==null&&_c$e!==void 0?_c$e:t.displayName};});}]);},18004,t=>{let e="application/x-keiko-local-knowledge-connector";t.s(["s",0,e,"a",0,"keiko:local-knowledge-connector-drop","A",0,function(t){if(!Array.from(t.types).includes(e))return null;try{let s=JSON.parse(t.getData(e));if("object"!=typeof s||null===s)return null;let n=s.kind;if("capsule"!==n&&"capsule-set"!==n||"string"!=typeof s.id||0===s.id.trim().length)return null;let c="string"==typeof s.label?s.label.trim():"",a="string"==typeof s.lifecycleState?s.lifecycleState.trim():"";return{kind:n,id:s.id.trim(),...(c.length>0?{label:c}:{}),...(a.length>0?{lifecycleState:a}:{})};}catch{return null;}},"_",0,function(t){return JSON.stringify(t);}]);},46095,t=>{var e=t.i(95508),s=t.i(18829),n=t.i(20081),c=t.i(74952),a=t.i(24541),i=t.i(92215);async function r(t,c=e.Fc,a=(0,n.y)()){let i=(await c(t.projectPath,a,t.id)).chats.find(e=>e.id===t.id&&e.projectPath===t.projectPath);if(void 0===i||void 0!==i.status&&"open"!==i.status)throw new s.a("NOT_FOUND","The connected chat is no longer available.",404);return i;}async function o(t,e,r){try{return await e();}catch(e){if(e instanceof s.a&&409===e.status&&"GROUNDING_SCOPE_CHANGED"===e.code){var _e$correlationId;let s=(_e$correlationId=e.correlationId)!==null&&_e$correlationId!==void 0?_e$correlationId:(0,n.y)();(0,a.v)("Grounding scope mutation refused.",{kind:"other",correlationId:s,errorKind:(0,i.J)(e),errorEvidence:(0,c.f)(e)}),await l(t,s,r);}throw e;}}async function l(t,s,n){try{let c=(await(0,e.Fc)(t.projectPath,s,t.id)).chats.find(e=>e.id===t.id&&e.projectPath===t.projectPath);void 0!==c&&(n===null||n===void 0?void 0:n(c));}catch(t){(0,a.v)("Grounding scope conflict refresh failed.",{kind:"other",correlationId:s,errorKind:(0,i.J)(t),errorEvidence:(0,c.f)(t)});}}async function u(t,s,n){return(await o(t,()=>(0,e.TU)(t.id,{...s,...(void 0===t.groundingScopeIdentity?{}:{expectedGroundingScopeIdentity:t.groundingScopeIdentity})}),n)).chat;}function h(t,e){return e.id===t.id&&e.projectPath===t.projectPath&&(void 0===e.status||"open"===e.status);}async function m(t,n,o,l=e.Fc){try{var _n$chat,_e$gitChangeScopes;var u;let e=(_n$chat=n.chat)!==null&&_n$chat!==void 0?_n$chat:await r(t,l,o);if(!h(t,e)||(u=n.scope,((_e$gitChangeScopes=e.gitChangeScopes)===null||_e$gitChangeScopes===void 0?void 0:_e$gitChangeScopes.some(t=>t.relationshipId===u.relationshipId&&t.snapshotDigest===u.snapshotDigest&&t.remoteDigest===u.remoteDigest))!==!0))throw new s.a("CONTRACT_VALIDATION_FAILED","Committed Git scope was not confirmed.",502);return{chat:e,confirmed:!0};}catch(t){return(0,a.v)("Committed Git scope refresh failed.",{kind:"other",correlationId:o,errorKind:(0,i.J)(t),errorEvidence:(0,c.f)(t)}),{chat:void 0,confirmed:!1,unavailable:void 0!==n.chat||t instanceof s.a&&"NOT_FOUND"===t.code};}}t.s(["M",0,function(t,e,s,n,c){if(h(t,e)&&!0!==s.unavailable){var _e$gitChangeScopes2;if(void 0!==s.chat)return e.updatedAt>s.chat.updatedAt?void 0:s.chat;if(!h(t,e)||e.groundingScopeIdentity!==t.groundingScopeIdentity)return;let a=((_e$gitChangeScopes2=e.gitChangeScopes)!==null&&_e$gitChangeScopes2!==void 0?_e$gitChangeScopes2:[]).filter(t=>t.relationshipId!==c&&t.relationshipId!==n.relationshipId);return{...e,gitChangeScopes:[...a,n]};}},"A",0,m,"C",0,function(t,e,s,n){return o(t,()=>void 0===t.groundingScopeIdentity?s(t.id,e):s(t.id,e,t.groundingScopeIdentity),n);},"a",0,u,"q",0,o]);}],18566,(t,e,s)=>{e.exports=t.r(76562);},11013,t=>{t.v(e=>Promise.all(["static/chunks/3j2y7wwvipy-8.js"].map(e=>t.l(e))).then(()=>e(48592)));},77778,t=>{t.v(e=>Promise.all(["static/chunks/29x347tohyhrb.css","static/chunks/1d3my-vj8i382.js"].map(e=>t.l(e))).then(()=>e(53026)));},87127,t=>{t.v(e=>Promise.all(["static/chunks/2xkyms4tg6-e_.js"].map(e=>t.l(e))).then(()=>e(70374)));},58578,t=>{t.v({cmpViewportWindow:"Xdoukq_cmpViewportWindow",cmpWorkspaceControl:"Xdoukq_cmpWorkspaceControl",cmpWorkspaceViewport:"Xdoukq_cmpWorkspaceViewport"});},97206,t=>{t.v({cmpWorkspaceSurface:"oGAJLW_cmpWorkspaceSurface",marquee:"oGAJLW_marquee",selectionRing:"oGAJLW_selectionRing",workspaceWindow:"oGAJLW_workspaceWindow"});},27555,t=>{t.v(e=>Promise.all(["static/chunks/3g9yg2hdnr5z3.js"].map(e=>t.l(e))).then(()=>e(84508)));},60179,t=>{t.v(e=>Promise.all(["static/chunks/2nzruc7wyn8dr.js","static/chunks/3l6l7qzd411sc.js","static/chunks/0l2m0uaca7i0k.js","static/chunks/1rhvew72iz-n3.css"].map(e=>t.l(e))).then(()=>e(87807)));},83233,t=>{t.v(t=>Promise.resolve().then(()=>t(49912)));},43641,t=>{t.v(e=>Promise.all(["static/chunks/14tr5ujuc_u34.js"].map(e=>t.l(e))).then(()=>e(39652)));},52011,t=>{t.v(e=>Promise.all(["static/chunks/3gjvug_o-6w5u.js"].map(e=>t.l(e))).then(()=>e(91592)));},41532,t=>{t.v(e=>Promise.all(["static/chunks/3jc_y1tnauj-z.js","static/chunks/3l6l7qzd411sc.js"].map(e=>t.l(e))).then(()=>e(39753)));},14527,t=>{t.v(e=>Promise.all(["static/chunks/1n4mmvvatk3mn.js","static/chunks/3l6l7qzd411sc.js","static/chunks/1ba1q4r12n3hc.js","static/chunks/1rhvew72iz-n3.css"].map(e=>t.l(e))).then(()=>e(89398)));},18311,t=>{t.v(e=>Promise.all(["static/chunks/33jglfz6y49ka.js","static/chunks/3l6l7qzd411sc.js","static/chunks/20eou_wcxpx1s.js","static/chunks/1rhvew72iz-n3.css"].map(e=>t.l(e))).then(()=>e(92757)));},80783,t=>{t.v(e=>Promise.all(["static/chunks/2po2kvx7r4llx.js"].map(e=>t.l(e))).then(()=>e(48950)));},43275,t=>{t.v(e=>Promise.all(["static/chunks/3__pdxfo3bpc1.js"].map(e=>t.l(e))).then(()=>e(28417)));},89262,t=>{t.v(e=>Promise.all(["static/chunks/2x_kyz5ial_41.js"].map(e=>t.l(e))).then(()=>e(53754)));},70404,t=>{t.v(e=>Promise.all(["static/chunks/1k7tt8btcpb6z.js","static/chunks/3l6l7qzd411sc.js","static/chunks/0iog3hj4_z_nh.js","static/chunks/01stbp6xk3t5k.css"].map(e=>t.l(e))).then(()=>e(55263)));},6316,t=>{t.v(e=>Promise.all(["static/chunks/26316nk10nm38.css","static/chunks/1ul_ud5pbnro-.js"].map(e=>t.l(e))).then(()=>e(88692)));},67121,t=>{t.v(e=>Promise.all(["static/chunks/1lpdde9w2vl93.js"].map(e=>t.l(e))).then(()=>e(59082)));},53315,t=>{t.v(e=>Promise.all(["static/chunks/3ts6g_psw2r__.js","static/chunks/3ksimuw0ad9zn.js","static/chunks/1jgm4793jm1pv.js","static/chunks/0xbqv2_0xajgv.js","static/chunks/05ckjqpq5fs4j.js","static/chunks/3l6l7qzd411sc.js","static/chunks/1rhvew72iz-n3.css"].map(e=>t.l(e))).then(()=>e(60174)));},61721,t=>{t.v(e=>Promise.all(["static/chunks/33jglfz6y49ka.js","static/chunks/3l6l7qzd411sc.js","static/chunks/1mqejavn0g70n.js"].map(e=>t.l(e))).then(()=>e(1867)));},38811,t=>{t.v(e=>Promise.all(["static/chunks/3d0lfuguh2qh3.css","static/chunks/0ld3t8oea9hy4.js","static/chunks/3l6l7qzd411sc.js"].map(e=>t.l(e))).then(()=>e(3246)));},75888,t=>{t.v(e=>Promise.all(["static/chunks/0lmsmxjl20gd_.js","static/chunks/3l6l7qzd411sc.js","static/chunks/2muaa_i0plkwf.js","static/chunks/1rhvew72iz-n3.css"].map(e=>t.l(e))).then(()=>e(34484)));},99462,t=>{t.v(e=>Promise.all(["static/chunks/01nez7u6fg1dd.css","static/chunks/1rhvew72iz-n3.css","static/chunks/3owvaep851hrg.js","static/chunks/435_soqjmawxr.js"].map(e=>t.l(e))).then(()=>e(20900)));},6814,t=>{t.v(e=>Promise.all(["static/chunks/33jglfz6y49ka.js","static/chunks/3l6l7qzd411sc.js","static/chunks/3hw8-lgs3prjc.js","static/chunks/1rhvew72iz-n3.css"].map(e=>t.l(e))).then(()=>e(50746)));},45389,t=>{t.v(e=>Promise.all(["static/chunks/1-zloxawolpl5.css","static/chunks/0vm0za6c--wqd.js","static/chunks/3l6l7qzd411sc.js"].map(e=>t.l(e))).then(()=>e(41853)));},9e4,t=>{t.v(e=>Promise.all(["static/chunks/3d27kas68zctw.js"].map(e=>t.l(e))).then(()=>e(86531)));},97072,t=>{t.v(e=>Promise.all(["static/chunks/0o0r6txb3s4ga.js","static/chunks/3l6l7qzd411sc.js","static/chunks/09_j3szzd0d-w.js"].map(e=>t.l(e))).then(()=>e(67988)));},93261,t=>{t.v(e=>Promise.all(["static/chunks/395aita-ystfu.js","static/chunks/3l6l7qzd411sc.js","static/chunks/1rhvew72iz-n3.css"].map(e=>t.l(e))).then(()=>e(28867)));},20678,t=>{t.v(e=>Promise.all(["static/chunks/33jglfz6y49ka.js","static/chunks/3l6l7qzd411sc.js","static/chunks/0wsxu0g-c4dbf.js","static/chunks/1rhvew72iz-n3.css"].map(e=>t.l(e))).then(()=>e(34264)));},82309,t=>{t.v(e=>Promise.all(["static/chunks/1d_810phvbt-v.js","static/chunks/1rhvew72iz-n3.css"].map(e=>t.l(e))).then(()=>e(94680)));},34722,t=>{t.v(e=>Promise.all(["static/chunks/1rhvew72iz-n3.css","static/chunks/33jglfz6y49ka.js","static/chunks/3l6l7qzd411sc.js","static/chunks/3pe5ji2-axln6.js"].map(e=>t.l(e))).then(()=>e(43554)));},81847,t=>{t.v(e=>Promise.all(["static/chunks/33jglfz6y49ka.js","static/chunks/2mh_3k0jawz3u.js","static/chunks/3l6l7qzd411sc.js","static/chunks/1uy2itzuap01l.js","static/chunks/33iwa_n3mi3c1.js","static/chunks/1rhvew72iz-n3.css"].map(e=>t.l(e))).then(()=>e(12525)));},46011,t=>{t.v(e=>Promise.all(["static/chunks/441_sxcco7_34.js"].map(e=>t.l(e))).then(()=>e(18138)));},58735,t=>{t.v(e=>Promise.all(["static/chunks/0-vpa4wvwcpe-.js","static/chunks/0egrai9cigb1t.js","static/chunks/06j35fs_cota7.js","static/chunks/1rhvew72iz-n3.css","static/chunks/01f2r2l4gzscm.css"].map(e=>t.l(e))).then(()=>e(41613)));},76923,t=>{t.v(e=>Promise.all(["static/chunks/2o7tp9zv8u7tw.js","static/chunks/3he4t7yk0v9z5.js","static/chunks/06j35fs_cota7.js","static/chunks/1mxu3l7fz5yz1.js","static/chunks/3l6l7qzd411sc.js","static/chunks/0egrai9cigb1t.js","static/chunks/3qgbq3-b3p7a3.js","static/chunks/3yaa0g7ymbq5e.js","static/chunks/1livbv_zx95bb.js","static/chunks/01f2r2l4gzscm.css","static/chunks/1rhvew72iz-n3.css"].map(e=>t.l(e))).then(()=>e(10549)));},35400,t=>{t.v(e=>Promise.all(["static/chunks/37nl28rjnj-un.js","static/chunks/3l6l7qzd411sc.js","static/chunks/3smiwe1mgszto.js","static/chunks/38fsj-e1lbepg.css"].map(e=>t.l(e))).then(()=>e(33212)));},28945,t=>{t.v(e=>Promise.all(["static/chunks/00_ejwjjg53_2.js","static/chunks/31gt5uma4pa3g.css"].map(e=>t.l(e))).then(()=>e(41785)));},58860,t=>{t.v(e=>Promise.all(["static/chunks/2ejhbs16gist6.js"].map(e=>t.l(e))).then(()=>e(68188)));},22699,t=>{t.v(e=>Promise.all(["static/chunks/30jm7s-paox4s.js","static/chunks/3l6l7qzd411sc.js","static/chunks/258c4g2mh1mgq.js"].map(e=>t.l(e))).then(()=>e(7492)));},53232,t=>{t.v(e=>Promise.all(["static/chunks/0l49mxwlto8de.js"].map(e=>t.l(e))).then(()=>e(21550)));},17024,t=>{t.v(e=>Promise.all(["static/chunks/0z-0fcs2vq9p8.js","static/chunks/3l6l7qzd411sc.js","static/chunks/1kfkwr9qy7j-0.css"].map(e=>t.l(e))).then(()=>e(510)));},31266,t=>{t.v(e=>Promise.all(["static/chunks/26q8c8sjlixk9.js"].map(e=>t.l(e))).then(()=>e(1466)));},42885,t=>{t.v(e=>Promise.all(["static/chunks/24h-23ln2syl0.css","static/chunks/1fquwed8kh0pn.js"].map(e=>t.l(e))).then(()=>e(43045)));},4232,t=>{t.v(e=>Promise.all(["static/chunks/3ypugvlxoxq7v.css","static/chunks/08el4_gl_qhj5.js"].map(e=>t.l(e))).then(()=>e(90330)));},51058,t=>{t.v(e=>Promise.all(["static/chunks/1wrcqg-r0_i4y.css","static/chunks/3f7f8h63s7b_h.js"].map(e=>t.l(e))).then(()=>e(27066)));},37240,t=>{t.v(e=>Promise.all(["static/chunks/113i2ed523uql.js"].map(e=>t.l(e))).then(()=>e(24046)));},44543,t=>{t.v(e=>Promise.all(["static/chunks/1-_7lu_lgm6ej.js"].map(e=>t.l(e))).then(()=>e(26507)));},59683,t=>{t.v(e=>Promise.all(["static/chunks/33jglfz6y49ka.js","static/chunks/3he4t7yk0v9z5.js","static/chunks/2g6shdwhrg8_2.js","static/chunks/3l6l7qzd411sc.js","static/chunks/1i7xk_bpdb206.js","static/chunks/1rhvew72iz-n3.css"].map(e=>t.l(e))).then(()=>e(38661)));},45416,t=>{t.v(e=>Promise.all(["static/chunks/1-cdeq2e5bqgn.js"].map(e=>t.l(e))).then(()=>e(82109)));},50426,t=>{t.v(e=>Promise.all(["static/chunks/3mqrq9fc15u8f.js","static/chunks/1_543tklqmtaa.js","static/chunks/3qkyh61qk56y3.js","static/chunks/3-vp5mbiz_k0a.js","static/chunks/02jl1lf3a8dud.js","static/chunks/3l6l7qzd411sc.js","static/chunks/0ob6quzp23sqe.js","static/chunks/1ka7n7_t88nku.js","static/chunks/0vqzhbpt7iewb.css","static/chunks/2ayb5cby-2fpy.css"].map(e=>t.l(e))).then(()=>e(58873)));},38673,t=>{t.v(e=>Promise.all(["static/chunks/3owd_yj0kssh5.js","static/chunks/1gnjh00dyjkye.js","static/chunks/12ncxpwq54-k2.js","static/chunks/0e01hhk3hnxds.js","static/chunks/3l6l7qzd411sc.js","static/chunks/0egrai9cigb1t.js","static/chunks/02ex3k089apnn.js","static/chunks/1kbra771vsw0c.css","static/chunks/1rhvew72iz-n3.css"].map(e=>t.l(e))).then(()=>e(91236)));},68932,t=>{t.v(e=>Promise.all(["static/chunks/43b-q6ywd5-7b.js","static/chunks/1qlo4nhagyp5y.css"].map(e=>t.l(e))).then(()=>e(44884)));},77695,t=>{t.v(e=>Promise.all(["static/chunks/1e9f1ex2uq29r.js","static/chunks/24fnfy1y6n4og.js","static/chunks/226y24czlj0wp.js","static/chunks/435_soqjmawxr.js","static/chunks/1rhvew72iz-n3.css"].map(e=>t.l(e))).then(()=>e(29042)));},99933,t=>{t.v(e=>Promise.all(["static/chunks/1_zhw6-vuw3sv.js","static/chunks/226y24czlj0wp.js","static/chunks/2pdg3ndckihyl.js","static/chunks/1rhvew72iz-n3.css"].map(e=>t.l(e))).then(()=>e(85341)));},97415,t=>{t.v(e=>Promise.all(["static/chunks/35oxd7_mv6yx-.js"].map(e=>t.l(e))).then(()=>e(47203)));},19582,t=>{t.v(e=>Promise.all(["static/chunks/1p6h98yn2nqtv.js"].map(e=>t.l(e))).then(()=>e(3401)));},20105,t=>{t.v(e=>Promise.all(["static/chunks/3ackh23s9xbyw.js","static/chunks/2gxdz5i19sf2x.js","static/chunks/1rhvew72iz-n3.css"].map(e=>t.l(e))).then(()=>e(9770)));},12938,t=>{t.v(e=>Promise.all(["static/chunks/34ey1sc6cg1jb.js","static/chunks/2k9o6ccprjqj_.js","static/chunks/2rxwfcn3g_xcj.js","static/chunks/435_soqjmawxr.js","static/chunks/1kxtf_e6d06lv.css"].map(e=>t.l(e))).then(()=>e(60597)));},44124,t=>{t.v(e=>Promise.all(["static/chunks/0ru_y22on6q7e.js","static/chunks/0pujco5ylkqlj.js","static/chunks/3l6l7qzd411sc.js","static/chunks/07n4qwd_8o79a.css"].map(e=>t.l(e))).then(()=>e(76724)));},39644,t=>{t.v(e=>Promise.all(["static/chunks/3r1y5u63no3t6.js","static/chunks/27uazj4clkgxv.js","static/chunks/3l6l7qzd411sc.js","static/chunks/1rhvew72iz-n3.css"].map(e=>t.l(e))).then(()=>e(76253)));},71862,t=>{t.v(e=>Promise.all(["static/chunks/3j8fuk7gt_nsd.js"].map(e=>t.l(e))).then(()=>e(24477)));},5823,t=>{t.v(e=>Promise.all(["static/chunks/24of1at9_h41r.js"].map(e=>t.l(e))).then(()=>e(76055)));},37447,t=>{t.v(e=>Promise.all(["static/chunks/0u8141z7plxo-.js","static/chunks/1cvzxvmhd8k9g.js"].map(e=>t.l(e))).then(()=>e(75887)));},90286,t=>{t.v(e=>Promise.all(["static/chunks/18xhq5330p-ae.js"].map(e=>t.l(e))).then(()=>e(50818)));},34532,t=>{t.v(e=>Promise.all(["static/chunks/2mkqmrupyw2fa.js"].map(e=>t.l(e))).then(()=>e(19995)));},60447,t=>{t.v(e=>Promise.all(["static/chunks/2yjjxeku65fbf.js"].map(e=>t.l(e))).then(()=>e(12014)));}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[99906,39762,e=>{var t=e.i(57269);Object.freeze(["test","build","run"]),Object.freeze(["package-json-script"]);let r=Object.freeze(["trusted","approval-required"]);Object.freeze(["repository-authored-script"]),Object.freeze(["none","non-zero-exit","timed-out","cancelled","denied","spawn-error"]),Object.freeze(["run-started","run-completed","run-failed","run-cancelled"]),(0,t.f)([{executable:"npm",allowedSubcommands:Object.freeze(["run","test"]),denyFlags:Object.freeze(["-c","--call","--prefix","-g","--global","--location","-w","--workspace","--workspaces"])}]);var n=e.i(43987),i=e.i(47167);let a=Object.freeze(["PATH","LANG","LC_ALL","LC_CTYPE","TZ","TERM","TMPDIR","SystemRoot","SystemDrive","PATHEXT","COMSPEC","NUMBER_OF_PROCESSORS","WINDIR"]),o={envAllowlist:a,network:"inherit",maxOutputBytes:262144,defaultTimeoutMs:3e4,terminationGraceMs:2e3};o.defaultTimeoutMs;let s=Object.freeze([...a,"HOME","USERPROFILE",...Object.freeze(["HOME","USERPROFILE","HOMEDRIVE","HOMEPATH","XDG_CONFIG_HOME","XDG_DATA_HOME","XDG_STATE_HOME","XDG_RUNTIME_DIR","GNUPGHOME","SSH_AUTH_SOCK","SSH_AGENT_PID","USER","USERNAME","LOGNAME","EMAIL","GIT_AUTHOR_NAME","GIT_AUTHOR_EMAIL","GIT_COMMITTER_NAME","GIT_COMMITTER_EMAIL"])]),l=Object.freeze([...s,"GH_HOST","GH_CONFIG_DIR"]),c=Object.freeze(["GH_TOKEN","GITHUB_TOKEN","GH_ENTERPRISE_TOKEN","GITHUB_ENTERPRISE_TOKEN"]),u=Object.freeze({GIT_TERMINAL_PROMPT:"0",GIT_PAGER:"cat",PAGER:"cat",LC_ALL:"C"});function d(e=i.default.platform){return"win32"===e?"NUL":"/dev/null";}Object.freeze({...u,GIT_ASKPASS:d(),SSH_ASKPASS:d(),SSH_ASKPASS_REQUIRE:"never",GCM_INTERACTIVE:"never",GIT_SSH_COMMAND:"ssh -oBatchMode=yes -oStrictHostKeyChecking=yes -oNumberOfPasswordPrompts=0 -oKbdInteractiveAuthentication=no -oPasswordAuthentication=no"});Object.freeze(["bubblewrap","unshare","seatbelt","container-docker","container-podman","none"]),(0,t.f)([{executable:"npm",allowedSubcommands:Object.freeze(["audit","ls","list","outdated","view","info","help","ping"]),forbidLeadingFlags:!0,denyFlags:Object.freeze(["-c","--call","--prefix","-g","--global","--location","-w","--workspace","--workspaces"]),deniedArgumentsBySubcommand:Object.freeze({audit:Object.freeze(["fix","--fix"])})},{executable:"git",allowedSubcommands:Object.freeze(["status","diff","log","show","rev-parse","ls-files","describe","blame","cat-file"]),valueFlags:Object.freeze(["-C","-c","--git-dir","--work-tree","--namespace","--exec-path"]),denyFlags:Object.freeze(["-c","-C","--config-env","--exec-path","--git-dir","--work-tree","--namespace","--ext-diff","--textconv","--no-index","--output","--contents"])}]);let f=new Set(["refused","failed","timed-out"]),p=new Set(["project-npm-config","manifest-unreadable","lockfile-unreadable","unapproved-source","workspaces-unresolved","install-inspection-unavailable","install-target-invalid","install-target-foreign","egress-destination-refused","installed-lockfile-unreadable","installed-unapproved-source"]),m=["test","targeted-test","typecheck","lint","build"],v=new Set(m),g=["passed","failed","skipped","denied","timed-out","cancelled","resource-exceeded"],w=["wall-time","output-size","memory","network"],h=new Set(w),y=m.length,b=new TextEncoder();function k(e){return"object"==typeof e&&null!==e&&!Array.isArray(e);}function T(e,t){return Object.keys(e).every(e=>t.includes(e));}function E(e,t,r=!1){return"string"==typeof e&&e.length<=t&&(r||e.length>0)&&!e.includes("\0");}function I(e,t,r){return!!Array.isArray(e)&&!(e.length>t)&&Object.keys(e).length===e.length&&e.every(r);}function C(e){return"number"==typeof e&&Number.isFinite(e)&&e>=0;}function _(e,t,r){return"number"==typeof e&&Number.isInteger(e)&&e>=t&&e<=r;}function S(e){return"string"==typeof e&&g.includes(e);}function A(e){return void 0===e||_(e,1,0x7fffffff);}function M(e){return!!k(e)&&T(e,["file","line","column","message","ruleId"])&&function(e){if("string"!=typeof e||e.includes("\\")||e.startsWith("/")||b.encode(e).length>4096)return!1;let t=e.split("/");return t.length>0&&t.every(e=>e.length>0&&"."!==e&&".."!==e)&&!/^[A-Za-z]:/u.test(e)&&!e.includes("\0");}(e.file)&&!!A(e.line)&&!!A(e.column)&&(void 0===e.column||void 0!==e.line)&&!!E(e.message,512,!0)&&(void 0===e.ruleId||E(e.ruleId,128));}function R(e){var t;return!!k(e)&&!!("string"==typeof(t=e.dimension)&&h.has(t))&&T(e,["dimension","limit","enforced","note","breached"])&&("network"===e.dimension?"none"===e.limit||"inherit"===e.limit:C(e.limit))&&"boolean"==typeof e.enforced&&(void 0===e.note||!!E(e.note,1024))&&(void 0===e.breached||"boolean"==typeof e.breached);}function j(e){return E(e,4096,!0);}function O(e){var t,r;if(!k(e))return!1;return T(e,["kind","scriptName","command","args","status","exitCode","signal","durationMs","truncated","redacted","outputSummary","appliedLimits","detail","locations"])&&!!("string"==typeof(t=e.kind)&&v.has(t))&&!!S(e.status)&&(void 0===e.scriptName||!!E(e.scriptName,256))&&E(e.command,256)&&I(e.args,64,j)&&(null===e.exitCode||!!_(e.exitCode,0,255))&&(null===e.signal||!!E(e.signal,128))&&C(e.durationMs)&&"boolean"==typeof e.truncated&&!0===(r=e).redacted&&!!E(r.outputSummary,1024,!0)&&!!function(e){if(!I(e,w.length,R))return!1;let t=new Set(e.map(e=>e.dimension)),r=e.filter(e=>!0===e.breached).length;return t.size===w.length&&r<=1;}(r.appliedLimits)&&(void 0===r.detail||!!E(r.detail,1024))&&(void 0===r.locations||I(r.locations,50,M));}let G=new Set(["none","current","installed","refused","failed","timed-out","cancelled"]),x=new Set(["present","created","absent"]),P=new Set(["missing","changed","current"]);var L=e.i(10158);let N=L.n,B=Object.freeze(["trusted","restricted"]),D=Object.freeze(["human-grant","derived-from-trusted-root","human-revocation","identity-changed","manifest-changed","trust-basis-changed","policy","state-unavailable"]),z=["kind","schemaVersion","projectId","trust","decidedBy","reason","revision"];function F(e){return B.includes(e);}function H(e){return D.includes(e);}function U(e){try{var t,r;let n;if(!(0,L.f)(e)||!(0,L.S)(e,z))return!1;let i="string"==typeof e.projectId&&e.projectId.length>0&&e.projectId.length<=4096&&!e.projectId.includes("\0");return["workspace-trust-status"===e.kind,e.schemaVersion===N,i,F(e.trust),"server"===e.decidedBy,H(e.reason),null===e.revision||(0,L.o)(e.revision)].every(Boolean)&&F(e.trust)&&H(e.reason)&&(t=e.trust,n="human-grant"===(r=e.reason)||"derived-from-trusted-root"===r,"trusted"===t?n:!n);}catch{return!1;}}e.s(["f",0,U],39762);let q=/^[A-Za-z0-9._:-]+$/u,K=new TextEncoder(),$=Object.freeze(["test","targeted-test","typecheck","lint","build"]),V=Object.freeze(["passed","failed","skipped","denied","timed-out","cancelled","resource-exceeded"]),W=Object.freeze(["pending","running","completed","cancelled","failed"]),Z=Object.freeze(["run-started","step-started","step-completed","run-completed","run-cancelled","run-failed"]);function X(e){return"object"==typeof e&&null!==e&&!Array.isArray(e);}function Q(e,t){return Object.keys(e).every(e=>t.includes(e));}function Y(e,t,r){return!!Array.isArray(e)&&!(e.length>t)&&Object.keys(e).length===e.length&&e.every(r);}function J(e){return"string"==typeof e&&e.length>0;}function ee(e){return J(e)&&K.encode(e).length<=4096&&!e.includes("\0");}function et(e){return"number"==typeof e&&Number.isFinite(e)&&e>=0;}function er(e){return"string"==typeof e&&$.includes(e);}function en(e){return J(e)&&K.encode(e).length<=n.W&&(0,n.O)(e);}function ei(e){return"string"==typeof e&&e.length>0&&e.length<=128&&q.test(e);}function ea(e){return Y(e,5,er)&&e.length>0&&new Set(e).size===e.length;}function eo(e){return X(e)&&Q(e,["kind","available","trustState"])&&er(e.kind)&&"boolean"==typeof e.available&&"string"==typeof e.trustState&&r.includes(e.trustState);}function es(e,t){var r;return!!Q(e,t?["schemaVersion","kind","runId","stepKind","status","durationMs"]:["schemaVersion","kind","runId","stepKind"])&&!!ee(e.runId)&&!!er(e.stepKind)&&(!t||"string"==typeof(r=e.status)&&V.includes(r)&&et(e.durationMs));}e.s(["s",0,Z,"d",0,function(e){return X(e)&&Q(e,["schemaVersion","projectId","workspaceTrust","kinds"])&&"1"===e.schemaVersion&&ee(e.projectId)&&U(e.workspaceTrust)&&e.workspaceTrust.projectId===e.projectId&&function(e){if(!Y(e,5,eo)||e.length!==$.length)return!1;let t=new Set(e.map(e=>e.kind));return t.size===$.length&&$.every(e=>t.has(e));}(e.kinds);},"o",0,function(e){if(!X(e)||"1"!==e.schemaVersion)return!1;switch(e.kind){case"run-started":return Q(e,["schemaVersion","kind","runId","projectId","kinds","targetPath","startedAtMs","requestId"])&&ee(e.runId)&&ee(e.projectId)&&ea(e.kinds)&&(void 0===e.targetPath||en(e.targetPath))&&et(e.startedAtMs)&&(void 0===e.requestId||ei(e.requestId));case"step-started":return es(e,!1);case"step-completed":return es(e,!0);case"run-completed":case"run-cancelled":case"run-failed":switch(e.kind){case"run-completed":return Q(e,["schemaVersion","kind","runId","report"])&&ee(e.runId)&&function(e){var t,r,n;if(!k(e)||!I(e.results,y,O))return!1;let i=function(e){if(void 0!==e.dependencies){var t,r,n;return!!(k(t=e.dependencies)&&T(t,["state","lockfile","exitCode","durationMs","detail","egress","completionReceipt","completionRecorded","refusalReason"])&&(void 0===t.completionReceipt&&void 0===t.completionRecorded||P.has(t.completionReceipt)&&"boolean"==typeof t.completionRecorded)&&(void 0===t.refusalReason||"refused"===t.state&&p.has(t.refusalReason))&&"string"==typeof(r=t).state&&G.has(r.state)&&"string"==typeof r.lockfile&&x.has(r.lockfile)&&(null===t.exitCode||_(t.exitCode,0,255))&&C(t.durationMs)&&(void 0===t.detail||E(t.detail,1024))&&(void 0===t.egress||k(n=t.egress)&&T(n,["allowed","refused"])&&_(n.allowed,0,Number.MAX_SAFE_INTEGER)&&_(n.refused,0,Number.MAX_SAFE_INTEGER)))&&e.dependencies;}}(e);return T(e,["workspaceRoot","results","overallStatus","startedAtMs","durationMs","counts","dependencies"])&&!1!==i&&"string"==typeof(t=e.workspaceRoot)&&t.length>0&&!t.includes("\0")&&b.encode(t).length<=4096&&S(e.overallStatus)&&(r=e.overallStatus,n=e.results,"cancelled"===r||!n.some(e=>"cancelled"===e.status)&&(void 0!==i&&f.has(i.state)?"failed"===r:r===(n.every(e=>"passed"===e.status||"skipped"===e.status)?"passed":"failed")))&&C(e.startedAtMs)&&C(e.durationMs)&&function(e,t){if(!k(e)||!T(e,g))return!1;for(let r of g){let n=e[r];if(!_(n,0,y)||!function(e,t,r){return e===r.filter(e=>e.status===t).length;}(n,r,t))return!1;}return!0;}(e.counts,e.results);}(e.report);case"run-cancelled":return Q(e,["schemaVersion","kind","runId"])&&ee(e.runId);case"run-failed":return Q(e,["schemaVersion","kind","runId","reason"])&&ee(e.runId)&&J(e.reason)&&e.reason.length<=256;default:return!1;}default:return!1;}},"t",0,function(e){var t;return!!X(e)&&Q(e,["runId","projectId","kinds","targetPath","state","startedAtMs","requestId"])&&ee(e.runId)&&ee(e.projectId)&&ea(e.kinds)&&"string"==typeof(t=e.state)&&W.includes(t)&&(void 0===e.targetPath||!!en(e.targetPath))&&(void 0===e.requestId||!!ei(e.requestId))&&et(e.startedAtMs);},"Z",0,er],99906);},74894,e=>{let t=/(^|[^A-Za-z0-9._~:/-])\/(?!\/)(?=[^\n\r"'`<>]*\/)[^\n\r"'`<>]+/gu,r=/(^|[^A-Za-z0-9._~:/-])[A-Za-z]:[\\/](?=[^\n\r"'`<>]*[\\/])[^\n\r"'`<>]+/gu,n=/(^|[^A-Za-z0-9._~:/-])(?:\\\\|\/\/)(?=[^\n\r"'`<>]*[\\/])[^\n\r"'`<>]+/gu,i=["user","assistant","system"];function a(e){return e<=31||e>=127&&e<=159;}function o(e){var t;return 1564===e||e>=8203&&e<=8207||e>=8234&&e<=8238||e>=8288&&e<=8303||e>=8294&&e<=8297||65279===e||9!==e&&10!==e&&13!==e&&a(e)||8232===(t=e)||8233===t;}function s(e,t,r){let n=t;for(;n<r;){let t=e[n];if(" "!==t&&" "!==t&&"\f"!==t&&"\v"!==t)break;n+=1;}return n;}function l(e,t,r,n){return!(t+n.length>r)&&e.slice(t,t+n.length).toLowerCase()===n;}e.s(["f",0,function(e){return e.replace(t,(e,t)=>`${t}[REDACTED_PATH]`).replace(r,(e,t)=>`${t}[REDACTED_PATH]`).replace(n,(e,t)=>`${t}[REDACTED_PATH]`)!==e;},"d",0,function(e){let t=0;for(let a=0;a<=e.length;a+=1)if(function(e,t){if(t===e.length)return!0;let r=e[t];return"\n"===r||"\r"===r;}(e,a)){var r,n;if(function(e,t,r){let n=s(e,t,r);return!!function(e,t,r){return i.some(n=>{if(!l(e,t,r,n))return!1;let i=s(e,t+n.length,r);return i<r&&":"===e[i];});}(e,n,r)||!(!l(e,n,r,"role")||(n=s(e,n+4,r))>=r||":"!==e[n])&&(n=s(e,n+1,r),i.some(t=>l(e,n,r,t)&&function(e,t,r,_e$codePointAt){if(t>=r)return!0;let n=(_e$codePointAt=e.codePointAt(t))!==null&&_e$codePointAt!==void 0?_e$codePointAt:0;return!(n>=48&&n<=57)&&!(n>=65&&n<=90)&&95!==n&&!(n>=97&&n<=122);}(e,n+t.length,r)));}(e,t,a))return!0;r=e,(n=a)+1<r.length&&"\r"===r[n]&&"\n"===r[n+1]&&(a+=1),t=a+1;}return!1;},"u",0,function(e){for(let t of e){var _t$codePointAt;if(a((_t$codePointAt=t.codePointAt(0))!==null&&_t$codePointAt!==void 0?_t$codePointAt:0))return!0;}return!1;},"z",0,function(e){let t=!1;for(let r of e){var _r$codePointAt;if(o((_r$codePointAt=r.codePointAt(0))!==null&&_r$codePointAt!==void 0?_r$codePointAt:0)){t=!0;break;}}if(!t)return e;let r="";for(let t of e){var _t$codePointAt2;o((_t$codePointAt2=t.codePointAt(0))!==null&&_t$codePointAt2!==void 0?_t$codePointAt2:0)||(r+=t);}return r;}]);},28804,e=>{var t=e.i(71645);function r(e){if(e.hidden)return!1;let t=window.getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility&&"collapse"!==t.visibility;}e.s(["f",0,function(e){(0,t.useEffect)(()=>{let t=t=>{if("Tab"!==t.key)return;let n=e.current;if(null===n)return;let i=Array.from(n.querySelectorAll('button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])')).filter(r),a=document.activeElement;if(0===i.length||!n.contains(a)){var _ref;t.preventDefault(),((_ref=t.shiftKey?i.at(-1):i[0])!==null&&_ref!==void 0?_ref:n).focus();return;}let o=i[0],s=i.at(-1);if(void 0===o||void 0===s)return;let l=a===n;t.shiftKey&&(a===o||l)?(t.preventDefault(),s.focus()):t.shiftKey||a!==s||(t.preventDefault(),o.focus());};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t);};},[e]);}]);},72859,e=>{let t,r;var n=e.i(17463),i=e.i(25202),a=e.i(75297),o=e.i(24541),s=e.i(86563),l=e.i(20081),c=e.i(58773);let u=new Map(),d=new WeakMap(),f=!1,p=0,m={essential:0,background:0};function v(e,t,r){var _e$removeEventListene;(_e$removeEventListene=e.removeEventListener)===null||_e$removeEventListene===void 0||_e$removeEventListene.call(e,t,r);}function g(){return"u">typeof document&&"hidden"===document.visibilityState;}function w(e){void 0!==e.reconnectTimer&&(window.clearTimeout(e.reconnectTimer),e.reconnectTimer=void 0);}function h(e,t){var _e$source;let r=e.dispatchersByType.get(t);return void 0!==r||(r=r=>{d.set(r,e.sourceGeneration),function(e,t,r,_e$lastEventId){let n=t.lastEventId;if(!/^\d+$/u.test(n))return;let i=Number(n);Number.isSafeInteger(i)&&!(i<0)&&(e.lastEventId=r?i:Math.max((_e$lastEventId=e.lastEventId)!==null&&_e$lastEventId!==void 0?_e$lastEventId:0,i));}(e,r,"editor-debug:snapshot-required"===t||"editor-watch:snapshot"===t||"editor-watch:snapshot-required"===t);let n=e.subscribersByType.get(t);if(void 0!==n&&0!==n.size)for(let e of n)e(r);},e.dispatchersByType.set(t,r),(_e$source=e.source)!==null&&_e$source!==void 0&&_e$source.addEventListener(t,r)),r;}function y(e){let t=e.capacityLease;if(e.capacityLease=void 0,t!==null&&t!==void 0&&t(),null!==e.source){for(let[t,r]of e.dispatchersByType)v(e.source,t,r);e.source.close(),e.source=null;}}function b(e){if(!(0===e.refCount||void 0!==e.reconnectTimer||g())&&"u">typeof EventSource){let t;e.reconnectTimer=window.setTimeout(()=>{e.reconnectTimer=void 0,A();},(t=Math.min(3e4,1e3*2**e.reconnectAttempts),e.reconnectAttempts+=1,t+(0,a.$)(500)));}}function k(e){e.sessionRepairAttempted=!1,e.failureStreakCorrelationId=void 0,e.acknowledgedRepairCorrelationId=void 0;}function T(e){w(e),y(e),k(e);}function E(){void 0!==r&&(window.clearInterval(r),r=void 0);}function I(e){var _e$url$split$;let t=(_e$url$split$=e.url.split("?")[0])!==null&&_e$url$split$!==void 0?_e$url$split$:"";return 0===e.essentialRefCount||t.startsWith("/api/editor/workspace-watch/")||t.startsWith("/api/editor/watch/")||t.startsWith("/api/editor/debug/");}function C(e){return null!==e.source||void 0!==e.capacityLease;}function _(e,t,r){if(0===e.length)return[];m[r]=(m[r]+t)%e.length;let n=m[r];return[...e.slice(n),...e.slice(0,n)];}function S(e){return[...e.filter(C),...e.filter(e=>!C(e))];}function A(e="retain"){var t;let a,d,f,m,v,w=g()?[]:[...u.values()].filter(e=>e.refCount>0&&void 0===e.reconnectTimer&&(e.essentialRefCount>0||!(0,i.l)())),M=(t="rotate"===e?_:S,a=w.filter(e=>!I(e)&&C(e)),d=w.filter(e=>e.essentialRefCount>0&&!a.includes(e)),f=w.filter(e=>0===e.essentialRefCount),m=Math.min(3-a.length,d.length),v=3-a.length-m,new Set([...a,...t(d,m,"essential"),...t(f,v,"background")].slice(0,3)));for(let e of u.values())!M.has(e)&&C(e)&&T(e);for(let e of M)!function(e,_e$failureStreakCorre){!(0===e.refCount||null!==e.source||void 0!==e.capacityLease||0===e.essentialRefCount&&(0,i.l)()||g())&&"u">typeof EventSource&&null!==(0,n.I)(e.url)&&((_e$failureStreakCorre=e.failureStreakCorrelationId)!==null&&_e$failureStreakCorre!==void 0?_e$failureStreakCorre:e.failureStreakCorrelationId=(0,l.y)(),e.capacityLease=(0,i.F)(()=>function(e){let t=(0,n.w)(function(e){if(void 0===e.lastEventId)return e.url;let t=new URL(e.url,window.location.origin);return t.searchParams.set("lastEventId",String(e.lastEventId)),`${t.pathname}${t.search}`;}(e));if(null!==t)for(let r of(e.sourceGeneration=p+=1,e.source=t,t.onopen=()=>{let t,r;t=e.failureStreakCorrelationId,r=e.acknowledgedRepairCorrelationId,void 0!==t&&void 0!==r&&(0,c.reportStreamSessionRecovered)("shared-event-source",t,r),e.reconnectAttempts=0,k(e);},t.onerror=()=>{var _e$failureStreakCorre2;let r=(_e$failureStreakCorre2=e.failureStreakCorrelationId)!==null&&_e$failureStreakCorre2!==void 0?_e$failureStreakCorre2:e.failureStreakCorrelationId=(0,l.y)();2===t.readyState&&0===e.reconnectAttempts?(0,s.A)({interaction:"event-stream-reconnecting"},r):(0,o.v)((0,o.e)("shared-event-source",t.readyState),{correlationId:r}),y(e),e.sessionRepairAttempted||(e.sessionRepairAttempted=!0,(0,c.repairLocalCodingAppSessionForStream)("shared-event-source",r).then(t=>{e.failureStreakCorrelationId===r&&(t.acknowledged?e.acknowledgedRepairCorrelationId=t.repairCorrelationId:e.sessionRepairAttempted=!1);})),b(e),A();},e.subscribersByType.keys()))t.addEventListener(r,h(e,r));}(e),t=>{y(e),"unavailable"===t&&b(e),queueMicrotask(()=>A());},{yieldable:I(e),correlationId:e.failureStreakCorrelationId}));}(e);w.length<=3?E():r!==null&&r!==void 0?r:r=window.setInterval(()=>A("rotate"),5e3);}function M(e){e&&(m.essential=0,m.background=0),A();}function R(){if(g()){for(let e of u.values())T(e);E();return;}A();}function j(e,r,n,a={}){let o=function(e){let r=u.get(e);if(void 0!==r)return r;let n={url:e,source:null,capacityLease:void 0,subscribersByType:new Map(),dispatchersByType:new Map(),refCount:0,essentialRefCount:0,lastEventId:void 0,reconnectAttempts:0,reconnectTimer:void 0,sourceGeneration:0,sessionRepairAttempted:!1,failureStreakCorrelationId:void 0,acknowledgedRepairCorrelationId:void 0};return u.set(e,n),!f&&"u">typeof document&&(document.addEventListener("visibilitychange",R),f=!0,t=(0,i.S)(M)),n;}(e),s="background"!==a.priority;for(let e of(o.refCount+=1,s&&(o.essentialRefCount+=1),r)){var _o$subscribersByType$;let t=(_o$subscribersByType$=o.subscribersByType.get(e))!==null&&_o$subscribersByType$!==void 0?_o$subscribersByType$:new Set();t.add(n),o.subscribersByType.set(e,t),h(o,e);}A();let l=!1;return()=>{if(!l){var _t;for(let e of(l=!0,r)){let t=o.subscribersByType.get(e);if(t!==null&&t!==void 0&&t.delete(n),(t===null||t===void 0?void 0:t.size)===0){o.subscribersByType.delete(e);let t=o.dispatchersByType.get(e);void 0!==t&&null!==o.source&&v(o.source,e,t);}}o.refCount-=1,s&&(o.essentialRefCount-=1),(o.refCount>0&&0===o.essentialRefCount&&(0,i.l)()&&T(o),o.refCount>0)?A():(w(o),y(o),u.delete(e),A(),f&&!(u.size>0)&&"u">typeof document&&(document.removeEventListener("visibilitychange",R),f=!1,(_t=t)!==null&&_t!==void 0&&_t(),t=void 0));}};}async function O(e,t,r,n,i){let a=j(e,t,r);i===null||i===void 0||i.addEventListener("abort",a,{once:!0});try{var _u$get;return await((i===null||i===void 0?void 0:i.aborted)===!0?Promise.reject(new DOMException("Cancelled","AbortError")):((_u$get=u.get(e))===null||_u$get===void 0||(_u$get=_u$get.source)===null||_u$get===void 0?void 0:_u$get.readyState)===1?Promise.resolve():new Promise((t,r)=>{let n=!1,a=()=>void 0,o=e=>{n||(n=!0,window.clearTimeout(l),i!==null&&i!==void 0&&i.removeEventListener("abort",s),a(),void 0===e?t():r(e));},s=()=>o(new DOMException("Cancelled","AbortError")),l=window.setTimeout(()=>o(new DOMException("Stream unavailable","TimeoutError")),15e3);i!==null&&i!==void 0&&i.addEventListener("abort",s,{once:!0}),a=j(e,["open","error"],e=>{queueMicrotask(()=>o("open"===e.type?void 0:TypeError("Stream unavailable")));});})),await n();}finally{i!==null&&i!==void 0&&i.removeEventListener("abort",a),a();}}e.s(["refreshSharedEventSource",0,function(e){let t=u.get(e);void 0!==t&&(T(t),A());},"sharedEventSourceGeneration",0,function(e){var _d$get;return(_d$get=d.get(e))!==null&&_d$get!==void 0?_d$get:0;},"subscribeSharedEventSource",0,j,"withSharedEventSourceOpen",0,O]);},24096,e=>{var t=e.i(43476),r=e.i(71645),n=e.i(74080),i=e.i(50850),a=e.i(28804),o=e.i(8245),s=e.i(82454);let l={"human-grant":"workspaceTrust.reason.humanGrant","derived-from-trusted-root":"workspaceTrust.reason.derivedFromTrustedRoot","human-revocation":"workspaceTrust.reason.humanRevocation","identity-changed":"workspaceTrust.reason.identityChanged","manifest-changed":"workspaceTrust.reason.manifestChanged","trust-basis-changed":"workspaceTrust.reason.trustBasisChanged",policy:"workspaceTrust.reason.policy","state-unavailable":"workspaceTrust.reason.stateUnavailable"},c={editor:"workspaceTrust.banner.editor",commands:"workspaceTrust.banner.commands",languages:"workspaceTrust.banner.languages"};function u(e){return l[e];}function d({failure:e}){let r=(0,i.t)();return void 0===e?null:(0,t.jsxs)("p",{className:s.default.cmpFailureDetails,"data-testid":"workspace-trust-failure-details",children:[(0,t.jsx)("span",{children:r("workspaceTrust.errorCode",{code:e.code})}),void 0===e.correlationId?null:(0,t.jsx)("span",{children:r("workspaceTrust.supportId",{correlationId:e.correlationId})})]});}function f(e,t){return"load"===t?"unavailable":(e===null||e===void 0?void 0:e.trust)==="trusted"?"trusted":"restricted";}e.s(["Q",0,function({status:e,issue:r}){let n=(0,i.t)(),a=f(e,r),o=function(e,t){switch(e){case"unavailable":return t("workspaceTrust.unavailable");case"trusted":return t("workspaceTrust.trustedMode");case"restricted":return t("workspaceTrust.restrictedMode");}}(a,n);return(0,t.jsx)("span",{className:s.default.cmpBadge,"data-trust":a,"aria-label":o,children:o});},"P",0,function({status:e,issue:r,failure:n,surface:a,onManage:o,editor:l=!1}){var p;let m=(0,i.t)(),v=f(e,r),g="trusted"===v;if(g&&void 0===r)return null;let w="unavailable"===v,h=m((p={unavailable:w,trusted:g}).unavailable?"workspaceTrust.unavailable":p.trusted?"workspaceTrust.trustedMode":"workspaceTrust.restrictedMode"),y=m(void 0===e?"workspaceTrust.reason.stateUnavailable":u(e.reason));return(0,t.jsxs)("div",{role:"note",className:`${s.default.cmpBanner} ${l?s.default.cmpEditorBanner:""}`,"aria-label":h,"data-trust":v,"data-testid":`workspace-trust-banner-${a}`,children:[(0,t.jsxs)("div",{className:s.default.cmpBannerCopy,children:[(0,t.jsx)("div",{className:s.default.cmpBannerTitle,children:h}),w?(0,t.jsx)("p",{className:s.default.cmpBannerReason,children:m("workspaceTrust.loadFailed")}):(0,t.jsx)("p",{className:s.default.cmpBannerReason,children:y}),(0,t.jsx)("p",{className:s.default.cmpBannerReason,children:m(c[a])}),"update"===r?(0,t.jsx)("p",{className:s.default.cmpBannerReason,role:"alert",children:m(g?"workspaceTrust.updateFailedTrusted":"workspaceTrust.updateFailed")}):null,(0,t.jsx)(d,{failure:n})]}),void 0===o?null:(0,t.jsx)("button",{type:"button",className:s.default.cmpButton,onClick:o,children:m("workspaceTrust.manage")})]});},"_",0,function({action:e,failed:l=!1,mutating:c,onCancel:u,onConfirm:d}){let f=(0,i.t)(),p=(0,r.useRef)(null),m=(0,r.useRef)(null);(0,a.f)(p),(0,o.W)({initialFocusRef:m}),(0,r.useEffect)(()=>{let e=e=>{"Escape"!==e.key||c||u();};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e);},[c,u]);let v=f("grant"===e?"workspaceTrust.dialog.grantTitle":"workspaceTrust.dialog.revokeTitle"),g=f("grant"===e?"workspaceTrust.dialog.grantBody":"workspaceTrust.dialog.revokeBody"),w=(0,t.jsx)("div",{className:s.default.cmpDialogBackdrop,children:(0,t.jsxs)("div",{className:s.default.cmpDialog,ref:p,role:"alertdialog","aria-modal":"true","aria-labelledby":"workspace-trust-dialog-title","aria-describedby":"workspace-trust-dialog-description",tabIndex:-1,children:[(0,t.jsx)("h2",{className:s.default.cmpDialogTitle,id:"workspace-trust-dialog-title",children:v}),(0,t.jsx)("p",{className:s.default.cmpIntro,id:"workspace-trust-dialog-description",children:g}),l?(0,t.jsx)("p",{role:"alert",className:s.default.cmpHelp,children:f("grant"===e?"workspaceTrust.updateFailed":"workspaceTrust.updateFailedTrusted")}):null,(0,t.jsxs)("div",{className:s.default.cmpDialogActions,children:[(0,t.jsx)("button",{ref:m,type:"button",className:s.default.cmpButton,disabled:c,onClick:u,children:f("workspaceTrust.dialog.cancel")}),(0,t.jsx)("button",{type:"button",className:`${s.default.cmpButton} ${"grant"===e?s.default.cmpPrimary:s.default.cmpDanger}`,disabled:c,onClick:()=>{d();},children:f(c?"workspaceTrust.dialog.waiting":"grant"===e?"workspaceTrust.dialog.trust":"workspaceTrust.dialog.revoke")})]})]})});return"u"<typeof document?w:(0,n.createPortal)(w,document.body);},"p",0,d,"W",0,u]);},42050,e=>{var t=e.i(71645),r=e.i(95492),n=e.i(97316);e.s(["f",0,function(e){let[i,a]=(0,t.useState)(),[o,s]=(0,t.useState)(void 0!==e),[l,c]=(0,t.useState)(!1),[u,d]=(0,t.useState)(),[f,p]=(0,t.useState)(),m=(0,t.useRef)(0),v=(0,t.useCallback)(async()=>{m.current+=1;let t=m.current;if(void 0===e||0===e.length){a(void 0),s(!1),d(void 0),p(void 0);return;}s(!0),d(void 0),p(void 0);try{let n=await(0,r.v)(e);t===m.current&&(a(n),d(void 0),p(void 0));}catch(e){t===m.current&&(a(void 0),d("load"),p((0,r.Y)(e)));}finally{t===m.current&&s(!1);}},[e]);(0,t.useEffect)(()=>{v();let t=t=>{(0,r.E)(t)===e&&v();},i=t=>{let r=(0,n.Z)(t);null!==r&&void 0!==e&&0!==e.length&&r.roots.some(t=>t.canonicalRoot===e)&&v();};return window.addEventListener(r.U,t),window.addEventListener(n.L,i),()=>{m.current+=1,window.removeEventListener(r.U,t),window.removeEventListener(n.L,i);};},[e,v]);let g=(0,t.useCallback)(async t=>{if(void 0===e||0===e.length||l)return!1;c(!0),d(void 0),p(void 0);try{let n=await(0,r.L)(e,t);return a(n),p(void 0),!0;}catch(e){return d("update"),p((0,r.Y)(e)),!1;}finally{c(!1);}},[l,e]);return{status:i,loading:o,mutating:l,issue:u,failure:f,refresh:v,grant:()=>g("grant"),revoke:()=>g("revoke")};}]);},25202,e=>{var t=e.i(24541);let r=new Set(),n=0;function i(){return n>0;}function a(){let e=i();for(let t of r)t(e);}let o=0,s=!1;function l(e,r){var _e$finish;e.ended||(e.ended=!0,e.abort.abort(),window.clearTimeout(e.acquisitionTimer),window.clearTimeout(e.leaseTimer),"unavailable"===r&&(0,t.v)("[keiko] persistent stream origin capacity acquisition unavailable",{correlationId:e.options.correlationId,errorKind:"timeout"}),e.onReleased(r),(_e$finish=e.finish)===null||_e$finish===void 0?void 0:_e$finish.call(e));}async function c(e,r,n){if(!n.ended&&!1!==n.options.yieldable)try{var _t$pending;let t=await e.query();n.waiterQueryFailed=!1,((_t$pending=t.pending)===null||_t$pending===void 0?void 0:_t$pending.some(e=>e.name===r))&&l(n,"expired");}catch{if(n.ended||n.waiterQueryFailed)return;n.waiterQueryFailed=!0,(0,t.v)("[keiko] persistent stream contention query unavailable",{correlationId:n.options.correlationId,errorKind:"unavailable"});}}async function u(e,t,r){let n=new Promise(e=>{r.finish=e;});!1!==r.options.yieldable&&(r.leaseTimer=window.setInterval(()=>{c(e,t,r);},5e3)),window.clearTimeout(r.acquisitionTimer),r.onGranted(),await n;}async function d(e,t){var _ref2,_sort$;let r=await e.query();return(_ref2=(_sort$=[...t].sort((e,t)=>{let n=e=>{var _r$pending$filter$len,_r$pending;return(_r$pending$filter$len=(_r$pending=r.pending)===null||_r$pending===void 0?void 0:_r$pending.filter(t=>t.name===e).length)!==null&&_r$pending$filter$len!==void 0?_r$pending$filter$len:0;};return n(e)-n(t);})[0])!==null&&_sort$!==void 0?_sort$:t[0])!==null&&_ref2!==void 0?_ref2:"keiko:persistent-stream:0";}async function f(e,t){let r=o++%3,n=Array.from({length:3},(e,t)=>`keiko:persistent-stream:${String((r+t)%3)}`);for(let r of n)if(await function(e,t,r){return new Promise(n=>{e.request(t,{ifAvailable:!0},async i=>{null===i||r.ended||r.granted?n(!1):(r.granted=!0,n(!0),await u(e,t,r));}).catch(()=>n(!1));});}(e,r,t))return;if(t.ended)return;let i=await d(e,n);await e.request(i,{signal:t.abort.signal},async()=>{t.ended||(t.granted=!0,await u(e,i,t));});}e.s(["F",0,function(e,r,n={}){let i="u"<typeof navigator?void 0:navigator.locks;if(void 0===i)return s||(s=!0,(0,t.v)("[keiko] persistent streams unavailable: origin capacity unsupported")),()=>void 0;let a={abort:new AbortController(),onGranted:e,onReleased:r,options:n,ended:!1,granted:!1,waiterQueryFailed:!1,acquisitionTimer:0,leaseTimer:void 0,finish:void 0};return a.acquisitionTimer=window.setTimeout(()=>l(a,"unavailable"),15e3),f(i,a).catch(()=>l(a,"unavailable")),()=>l(a,"cancelled");},"l",0,i,"K",0,function(){1===(n+=1)&&a();let e=!1;return()=>{e||(e=!0,0===(n=Math.max(0,n-1))&&a());};},"S",0,function(e){return r.add(e),()=>{r.delete(e);};}]);},56049,e=>{async function t(e,t){var _t$restoreFocus,_navigator$clipboard;let r,n=(_t$restoreFocus=t===null||t===void 0?void 0:t.restoreFocus)!==null&&_t$restoreFocus!==void 0?_t$restoreFocus:!0,i="u"<typeof navigator?void 0:(_navigator$clipboard=navigator.clipboard)===null||_navigator$clipboard===void 0?void 0:_navigator$clipboard.writeText;if(void 0!==i&&void 0!==navigator.clipboard)try{await i.call(navigator.clipboard,e);return;}catch(e){r=e;}if("u"<typeof document||null===document.body)throw Error("clipboard-unavailable",{cause:r});var a=r;let o=n&&document.activeElement instanceof HTMLElement?document.activeElement:null,s=document.createElement("textarea");s.value=e,s.setAttribute("readonly","true"),s.style.position="fixed",s.style.inset="0 auto auto -9999px",s.style.width="1px",s.style.height="1px",s.style.opacity="0",s.style.pointerEvents="none",document.body.appendChild(s);try{if(s.focus(),s.select(),!("function"==typeof document.execCommand&&document.execCommand("copy")))throw Error("clipboard-fallback-failed",{cause:a});}finally{s.remove(),n&&(o===null||o===void 0?void 0:o.focus());}}e.s(["f",0,t]);},86563,e=>{var t=e.i(24541);function r(e,r){(0,t.v)(`[keiko] coding workbench interaction: ${e.interaction}`,{codingWorkbenchInteraction:e,correlationId:r});}e.s(["J",0,function(e){return"build"===e||"plan"===e?e:"custom";},"A",0,r,"z",0,function(e,t){let n=t.currentTarget.parentElement;!(n instanceof HTMLDetailsElement)||t.isDefaultPrevented()||r({interaction:"details-toggled",section:e,expanded:!n.open});}]);},17463,e=>{function t(e){let t,r=e.trim();if(0===r.length||/[\u0000-\u001f\u007f]/u.test(r)||"null"===window.location.origin)return null;try{t=new URL(r,window.location.origin);}catch{return null;}return t.origin!==window.location.origin||""!==t.username||""!==t.password||!t.pathname.startsWith("/api/")||t.hash.length>0?null:`${t.pathname}${t.search}`;}e.s(["w",0,function(e){if("u"<typeof EventSource)return null;let r=t(e);return null===r?null:new EventSource(r);},"I",0,t]);},95492,e=>{var t=e.i(99906),r=e.i(39762);e.i(95508);var n=e.i(18829),i=e.i(92215);let a="/api/editor/verification/trust",o="keiko:workspace-trust-changed";function s(e){return(t,i)=>function(e,t,i){if(!(0,r.f)(t)||t.projectId!==i)throw new n.a("CONTRACT_VALIDATION_FAILED",`BFF response for ${e} failed contract validation: workspace trust status invalid.`,502);return t;}(t,i,e);}async function l(e){let t=new URLSearchParams({projectId:e});return(0,i.N)(`${a}?${t.toString()}`,void 0,{validator:s(e),parseFailureMessage:()=>"workspace trust request rejected"});}async function c(e,t){let r=await(0,i.N)(a,{method:"grant"===t?"POST":"DELETE",body:JSON.stringify({projectId:e})},{validator:s(e),parseFailureMessage:()=>"workspace trust request rejected"});return window.dispatchEvent(new CustomEvent(o,{detail:{projectId:e}})),r;}async function u(e,r){let n=`/api/editor/verification/catalog?projectId=${encodeURIComponent(e)}`,i=await fetch(n,void 0===r?void 0:{signal:r});if(!i.ok)throw Error("verification catalog rejected");let a=await i.json();if(!(0,t.d)(a)||a.projectId!==e)throw Error("malformed verification catalog");return a;}e.s(["U",0,o,"n",0,u,"v",0,l,"L",0,c,"E",0,function(e){if(!(e instanceof CustomEvent))return null;let t=e.detail;if("object"!=typeof t||null===t||Array.isArray(t))return null;let r=t.projectId;return"string"==typeof r&&r.length>0?r:null;},"Y",0,function(e){if(e instanceof Error&&"code"in e&&"string"==typeof e.code&&(!("correlationId"in e)||void 0===e.correlationId||"string"==typeof e.correlationId))return void 0===e.correlationId?{code:e.code}:{code:e.code,correlationId:e.correlationId};}]);}],82454,e=>{e.v({cmpAlert:"Cm_wMG_cmpAlert",cmpBadge:"Cm_wMG_cmpBadge",cmpBanner:"Cm_wMG_cmpBanner",cmpBannerCopy:"Cm_wMG_cmpBannerCopy",cmpBannerReason:"Cm_wMG_cmpBannerReason",cmpBannerTitle:"Cm_wMG_cmpBannerTitle",cmpButton:"Cm_wMG_cmpButton",cmpCard:"Cm_wMG_cmpCard",cmpCardCopy:"Cm_wMG_cmpCardCopy",cmpCardReason:"Cm_wMG_cmpCardReason",cmpCardTitle:"Cm_wMG_cmpCardTitle",cmpDanger:"Cm_wMG_cmpDanger",cmpDialog:"Cm_wMG_cmpDialog",cmpDialogActions:"Cm_wMG_cmpDialogActions",cmpDialogBackdrop:"Cm_wMG_cmpDialogBackdrop",cmpDialogTitle:"Cm_wMG_cmpDialogTitle",cmpEditorBanner:"Cm_wMG_cmpEditorBanner",cmpEditorMain:"Cm_wMG_cmpEditorMain",cmpEditorPanes:"Cm_wMG_cmpEditorPanes",cmpEmpty:"Cm_wMG_cmpEmpty",cmpFailureDetails:"Cm_wMG_cmpFailureDetails",cmpHelp:"Cm_wMG_cmpHelp",cmpIntro:"Cm_wMG_cmpIntro",cmpList:"Cm_wMG_cmpList",cmpPanel:"Cm_wMG_cmpPanel",cmpPanelHeader:"Cm_wMG_cmpPanelHeader",cmpPanelTitle:"Cm_wMG_cmpPanelTitle",cmpPath:"Cm_wMG_cmpPath",cmpPrimary:"Cm_wMG_cmpPrimary",cmpState:"Cm_wMG_cmpState"});}]);
|