@oscharko-dev/keiko 1.1.8 → 1.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ui/csp-hashes.json +6 -6
- package/dist/ui/static/404.html +1 -1
- package/dist/ui/static/__next.__PAGE__.txt +11 -11
- package/dist/ui/static/__next._full.txt +13 -13
- package/dist/ui/static/__next._tree.txt +2 -2
- package/dist/ui/static/_next/static/chunks/01jy5ldd_0r_5.css +23 -0
- package/dist/ui/static/_next/static/chunks/04c8gos36pwl8.js +1 -0
- package/dist/ui/static/_next/static/chunks/06yzmh78cidsr.js +1 -0
- package/dist/ui/static/_next/static/chunks/08kdz_q929mef.js +1 -0
- package/dist/ui/static/_next/static/chunks/0mkhgmj9-jvu-.js +1 -0
- package/dist/ui/static/_next/static/chunks/0no8igw4lg7c2.js +1 -0
- package/dist/ui/static/_next/static/chunks/0qt-w4yzb50ov.js +1 -0
- package/dist/ui/static/_next/static/chunks/{1fgcho9v65crw.js → 0rd6-ijqn28cg.js} +1 -1
- package/dist/ui/static/_next/static/chunks/0w48lw1wvc7ig.js +1 -0
- package/dist/ui/static/_next/static/chunks/115f9zt0f5hm4.js +1 -0
- package/dist/ui/static/_next/static/chunks/18qf6y7a99idv.js +1 -0
- package/dist/ui/static/_next/static/chunks/1cjmlpaxzl17x.js +1 -0
- package/dist/ui/static/_next/static/chunks/1jfpuw9-h8iaq.js +1 -0
- package/dist/ui/static/_next/static/chunks/1mi566lu15tc0.js +1 -0
- package/dist/ui/static/_next/static/chunks/1oe16odh9-wem.js +1 -0
- package/dist/ui/static/_next/static/chunks/1ql6xdhcq4th6.js +1 -0
- package/dist/ui/static/_next/static/chunks/1rrylkj4wfhla.js +1 -0
- package/dist/ui/static/_next/static/chunks/1uxrq3q9n5v4y.js +1 -0
- package/dist/ui/static/_next/static/chunks/22yars17p-i_a.js +1 -0
- package/dist/ui/static/_next/static/chunks/2iehfums033xv.css +3 -0
- package/dist/ui/static/_next/static/chunks/2kh0qihno0n1w.js +1 -0
- package/dist/ui/static/_next/static/chunks/2p6x_6c78vqic.js +1 -0
- package/dist/ui/static/_next/static/chunks/2r-wzbygkv3rm.js +3 -0
- package/dist/ui/static/_next/static/chunks/2wtsqscjch4bx.js +1 -0
- package/dist/ui/static/_next/static/chunks/35q-v--ikwjcq.js +1 -0
- package/dist/ui/static/_next/static/chunks/36m_1433yesno.js +1 -0
- package/dist/ui/static/_next/static/chunks/37mtn-h7j8ygx.js +1 -0
- package/dist/ui/static/_next/static/chunks/37ti5e50bu145.js +1 -0
- package/dist/ui/static/_next/static/chunks/38lcc_6fqzw1l.js +1 -0
- package/dist/ui/static/_next/static/chunks/{2vhgpp_064_st.js → 3gb3syh5vkuxt.js} +1 -1
- package/dist/ui/static/_next/static/chunks/3gtstv3k7jsm2.js +1 -0
- package/dist/ui/static/_next/static/chunks/{1mcajwmbse068.js → 3hs8v_qv53sil.js} +2 -2
- package/dist/ui/static/_next/static/chunks/3n4gsbv-im5ia.js +1 -0
- package/dist/ui/static/_next/static/chunks/3vnb2msty1ab4.js +1 -0
- package/dist/ui/static/_next/static/chunks/3zd1y0ze7hnsy.js +1 -0
- package/dist/ui/static/_next/static/chunks/412pf48_r8im3.js +1 -0
- package/dist/ui/static/_not-found/__next._full.txt +9 -9
- package/dist/ui/static/_not-found/__next._not-found.__PAGE__.txt +8 -8
- 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 +9 -9
- package/dist/ui/static/atlassian-connectors/__next._full.txt +11 -11
- package/dist/ui/static/atlassian-connectors/__next._tree.txt +1 -1
- package/dist/ui/static/atlassian-connectors/__next.atlassian-connectors.__PAGE__.txt +10 -10
- package/dist/ui/static/atlassian-connectors.html +1 -1
- package/dist/ui/static/atlassian-connectors.txt +11 -11
- package/dist/ui/static/index.html +1 -1
- package/dist/ui/static/index.txt +13 -13
- package/dist/ui/static/launch/__next._full.txt +13 -13
- package/dist/ui/static/launch/__next._tree.txt +2 -2
- package/dist/ui/static/launch/__next.launch.__PAGE__.txt +11 -11
- package/dist/ui/static/launch.html +1 -1
- package/dist/ui/static/launch.txt +13 -13
- package/dist/ui/static/local-knowledge/__next._full.txt +13 -13
- package/dist/ui/static/local-knowledge/__next._tree.txt +2 -2
- package/dist/ui/static/local-knowledge/__next.local-knowledge.__PAGE__.txt +11 -11
- package/dist/ui/static/local-knowledge/capsule/__next._full.txt +12 -12
- 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 +10 -10
- package/dist/ui/static/local-knowledge/capsule.html +1 -1
- package/dist/ui/static/local-knowledge/capsule.txt +12 -12
- package/dist/ui/static/local-knowledge.html +1 -1
- package/dist/ui/static/local-knowledge.txt +13 -13
- package/node_modules/@oscharko-dev/keiko-cli/package.json +14 -14
- package/node_modules/@oscharko-dev/keiko-connectors/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-connectors/dist/version.d.ts.map +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 +56 -16
- 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 +81 -13
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry.generated.d.ts +724 -66
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry.generated.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry.generated.js +835 -47
- package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.d.ts +45 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.js +133 -3
- package/node_modules/@oscharko-dev/keiko-contracts/dist/editor-agent.d.ts +6 -0
- 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 +13 -2
- package/node_modules/@oscharko-dev/keiko-contracts/dist/gateway.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/gateway.js +18 -9
- package/node_modules/@oscharko-dev/keiko-contracts/dist/version.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-contracts/dist/version.d.ts.map +1 -1
- 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.d.ts.map +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.d.ts.map +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.d.ts.map +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.d.ts.map +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.d.ts.map +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.d.ts.map +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.d.ts.map +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.d.ts.map +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.d.ts.map +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/config.d.ts +15 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/config.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/config.js +32 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-adapter.d.ts +4 -0
- 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 +134 -24
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/output-token-limit.d.ts +17 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/output-token-limit.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/output-token-limit.js +32 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/readiness-probe.d.ts +7 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/readiness-probe.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/readiness-probe.js +303 -14
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.d.ts.map +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/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/version.d.ts.map +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/client-diagnostics-routes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/client-diagnostics-routes.js +248 -15
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeActivityOperations.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeActivityOperations.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeActivityOperations.js +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeEditorMutationLeaseCoordinator.d.ts +6 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeEditorMutationLeaseCoordinator.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeEditorMutationLeaseCoordinator.js +26 -8
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeManager.d.ts +13 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeManager.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeManager.js +9 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestrator.d.ts +14 -1
- 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 +184 -53
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingSafeActivityProjection.js +6 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolApprovalBridge.d.ts +7 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolApprovalBridge.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolApprovalBridge.js +27 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacade.d.ts +4 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacade.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacade.js +24 -9
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacadePorts.d.ts +0 -16
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacadePorts.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolIpc.d.ts +8 -2
- 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 +6 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolReadEditPorts.d.ts +0 -8
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolReadEditPorts.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolReadEditPorts.js +14 -20
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeAdapter.js +11 -23
- 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 +14 -23
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2ApprovalRequests.d.ts +6 -19
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2ApprovalRequests.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2ApprovalRequests.js +13 -208
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2HttpClient.d.ts +5 -1
- 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 +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionAuxiliaryPorts.d.ts +0 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionAuxiliaryPorts.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionAuxiliaryPorts.js +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimePorts.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimePorts.js +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionManagedWorktreeTools.d.ts +3 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionManagedWorktreeTools.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionManagedWorktreeTools.js +53 -51
- 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 +129 -31
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-tool-facade.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-tool-facade.js +11 -7
- 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 +18 -8
- 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 +12 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-tool-calling-probe.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-tool-calling-probe.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-tool-calling-probe.js +12 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/execution.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/execution.js +4 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/journeyObservationService.d.ts +3 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/journeyObservationService.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/journeyObservationService.js +5 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/journeyRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/journeyRoutes.js +34 -28
- package/node_modules/@oscharko-dev/keiko-server/dist/gitRepositoryReads.d.ts +7 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitRepositoryReads.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitRepositoryReads.js +11 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/activity-log.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/activity-log.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/activity-log.js +12 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/provisioning.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/provisioning.js +9 -2
- package/node_modules/@oscharko-dev/keiko-server/package.json +22 -22
- 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.d.ts.map +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.d.ts.map +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 +26 -26
- package/release-impact.catalog.json +128 -0
- package/vendor/{oscharko-dev-keiko-cli-1.1.8.tgz → oscharko-dev-keiko-cli-1.1.10.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-connectors-1.1.8.tgz → oscharko-dev-keiko-connectors-1.1.10.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-contracts-1.1.10.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-evaluations-1.1.8.tgz → oscharko-dev-keiko-evaluations-1.1.10.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-evidence-1.1.8.tgz → oscharko-dev-keiko-evidence-1.1.10.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-git-1.1.10.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-harness-1.1.8.tgz → oscharko-dev-keiko-harness-1.1.10.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-local-knowledge-1.1.8.tgz → oscharko-dev-keiko-local-knowledge-1.1.10.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-memory-capture-1.1.10.tgz +0 -0
- package/vendor/oscharko-dev-keiko-memory-consolidation-1.1.10.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-memory-governance-1.1.8.tgz → oscharko-dev-keiko-memory-governance-1.1.10.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-memory-retrieval-1.1.10.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-memory-vault-1.1.8.tgz → oscharko-dev-keiko-memory-vault-1.1.10.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-model-gateway-1.1.10.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-quality-intelligence-1.1.8.tgz → oscharko-dev-keiko-quality-intelligence-1.1.10.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-sandbox-1.1.10.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-sdk-1.1.8.tgz → oscharko-dev-keiko-sdk-1.1.10.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-security-1.1.8.tgz → oscharko-dev-keiko-security-1.1.10.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-server-1.1.10.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-tool-catalog-1.1.8.tgz → oscharko-dev-keiko-tool-catalog-1.1.10.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-tools-1.1.8.tgz → oscharko-dev-keiko-tools-1.1.10.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-verification-1.1.8.tgz → oscharko-dev-keiko-verification-1.1.10.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-workflows-1.1.8.tgz → oscharko-dev-keiko-workflows-1.1.10.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-workspace-1.1.8.tgz → oscharko-dev-keiko-workspace-1.1.10.tgz} +0 -0
- package/dist/ui/static/_next/static/chunks/02i0eppipph7e.js +0 -1
- package/dist/ui/static/_next/static/chunks/03deeo56ud39g.js +0 -1
- package/dist/ui/static/_next/static/chunks/09jwu8wa22c1d.js +0 -1
- package/dist/ui/static/_next/static/chunks/0_8kv51rrhcg-.js +0 -1
- package/dist/ui/static/_next/static/chunks/0hc828_gdkyek.js +0 -3
- package/dist/ui/static/_next/static/chunks/0m0w3hleoejwg.js +0 -1
- package/dist/ui/static/_next/static/chunks/0n5hz6kjgs-3-.js +0 -1
- package/dist/ui/static/_next/static/chunks/0pgkz9ug1jhtt.js +0 -1
- package/dist/ui/static/_next/static/chunks/0qv7j1mski9o8.css +0 -17
- package/dist/ui/static/_next/static/chunks/0tt79fba99mv7.js +0 -1
- package/dist/ui/static/_next/static/chunks/0vtnpcijh-jqw.js +0 -1
- package/dist/ui/static/_next/static/chunks/0we68cbpsgepq.css +0 -1
- package/dist/ui/static/_next/static/chunks/0xxx56s32tn9r.css +0 -5
- package/dist/ui/static/_next/static/chunks/15wj80h_5chl0.js +0 -1
- package/dist/ui/static/_next/static/chunks/17lvph58d0v4m.js +0 -1
- package/dist/ui/static/_next/static/chunks/18-rkk8vbltb8.js +0 -1
- package/dist/ui/static/_next/static/chunks/18grpx4tuavds.js +0 -1
- package/dist/ui/static/_next/static/chunks/19-9yyj6ksj8d.js +0 -1
- package/dist/ui/static/_next/static/chunks/1lj5se4u-t-e9.js +0 -1
- package/dist/ui/static/_next/static/chunks/1pxoon_tb72gi.js +0 -1
- package/dist/ui/static/_next/static/chunks/1unz12nl7ckz4.js +0 -1
- package/dist/ui/static/_next/static/chunks/2179tism08tgt.js +0 -1
- package/dist/ui/static/_next/static/chunks/23wd6f5u9_yck.js +0 -1
- package/dist/ui/static/_next/static/chunks/28qanioylwdin.js +0 -1
- package/dist/ui/static/_next/static/chunks/2dbr8ufwv1hwn.js +0 -1
- package/dist/ui/static/_next/static/chunks/2gfp5s1i_t9xw.js +0 -1
- package/dist/ui/static/_next/static/chunks/2iz4lys7fa5a6.js +0 -1
- package/dist/ui/static/_next/static/chunks/2l9ens2l3tayx.js +0 -1
- package/dist/ui/static/_next/static/chunks/2x2iahxszw6_z.css +0 -1
- package/dist/ui/static/_next/static/chunks/34-h9dto6z42f.js +0 -1
- package/dist/ui/static/_next/static/chunks/3408jbh7566qd.js +0 -1
- package/dist/ui/static/_next/static/chunks/3k6g7nzn589fs.js +0 -1
- package/dist/ui/static/_next/static/chunks/3ly6-f_52vfie.js +0 -1
- package/dist/ui/static/_next/static/chunks/3q_kn20qriqd7.js +0 -1
- package/dist/ui/static/_next/static/chunks/3s_vd83y41tei.css +0 -1
- package/dist/ui/static/_next/static/chunks/3zbk4r-6rxn7j.css +0 -2
- package/vendor/oscharko-dev-keiko-contracts-1.1.8.tgz +0 -0
- package/vendor/oscharko-dev-keiko-git-1.1.8.tgz +0 -0
- package/vendor/oscharko-dev-keiko-memory-capture-1.1.8.tgz +0 -0
- package/vendor/oscharko-dev-keiko-memory-consolidation-1.1.8.tgz +0 -0
- package/vendor/oscharko-dev-keiko-memory-retrieval-1.1.8.tgz +0 -0
- package/vendor/oscharko-dev-keiko-model-gateway-1.1.8.tgz +0 -0
- package/vendor/oscharko-dev-keiko-sandbox-1.1.8.tgz +0 -0
- package/vendor/oscharko-dev-keiko-server-1.1.8.tgz +0 -0
- /package/dist/ui/static/_next/static/{xFln0tD9J1Dx0Nlv71fAF → lA0N8Tc8KZpJTM4YAywwM}/_buildManifest.js +0 -0
- /package/dist/ui/static/_next/static/{xFln0tD9J1Dx0Nlv71fAF → lA0N8Tc8KZpJTM4YAywwM}/_clientMiddlewareManifest.js +0 -0
- /package/dist/ui/static/_next/static/{xFln0tD9J1Dx0Nlv71fAF → lA0N8Tc8KZpJTM4YAywwM}/_ssgManifest.js +0 -0
|
@@ -2732,6 +2732,134 @@
|
|
|
2732
2732
|
"signingScope": "evaluation",
|
|
2733
2733
|
"targets": ["linux-x64", "windows-x64", "macos-arm64", "macos-x64"]
|
|
2734
2734
|
}
|
|
2735
|
+
},
|
|
2736
|
+
{
|
|
2737
|
+
"packageName": "@oscharko-dev/keiko",
|
|
2738
|
+
"packageVersion": "1.1.9",
|
|
2739
|
+
"distTag": "latest",
|
|
2740
|
+
"registry": "https://registry.npmjs.org/",
|
|
2741
|
+
"releaseTag": "v1.1.9",
|
|
2742
|
+
"supportedFrom": ["0.2.0"],
|
|
2743
|
+
"internalOnly": false,
|
|
2744
|
+
"observableImpact": true,
|
|
2745
|
+
"defaultPatchNotes": true,
|
|
2746
|
+
"oneClickEligible": true,
|
|
2747
|
+
"publishGates": [
|
|
2748
|
+
"version-consistency",
|
|
2749
|
+
"publish-manifests",
|
|
2750
|
+
"release-impact",
|
|
2751
|
+
"workspace-supply-chain",
|
|
2752
|
+
"package-surface",
|
|
2753
|
+
"qi-supply-chain",
|
|
2754
|
+
"install-smoke"
|
|
2755
|
+
],
|
|
2756
|
+
"id": "2026-09-26-keiko-1.1.9-coding-workbench-renews-lapsed-tool-proof",
|
|
2757
|
+
"releaseNoteCategory": "fixes",
|
|
2758
|
+
"releaseNotePriority": "high",
|
|
2759
|
+
"userVisibleChange": "behavioral",
|
|
2760
|
+
"userVisibleSummary": "The Coding Workbench renews an expired tool-calling check by itself after a restart. Keiko's forced tool-call proof expires after 24 hours, and Keiko loads an expired proof as no tool calling. Until now the Workbench read that as a model that cannot call tools: after a restart more than a day after the gateway setup it found no coding model and stayed blocked until a check was started in Settings. Opening the Workbench now renews the proof of every model Keiko verified before, within the existing six-hour bound, and only a fresh proof admits a model to a run.",
|
|
2761
|
+
"affectedStateStores": [],
|
|
2762
|
+
"stateImpact": [],
|
|
2763
|
+
"releaseNoteBullets": [
|
|
2764
|
+
"Coding Workbench: after a restart more than a day after the gateway setup, opening the Workbench renews the expired tool-calling check of every model Keiko verified before, instead of reporting that no model can call tools.",
|
|
2765
|
+
"A model whose check found no tool calling, or never concluded, is still not probed automatically, and only a fresh check admits a model to a run."
|
|
2766
|
+
],
|
|
2767
|
+
"review": {
|
|
2768
|
+
"status": "reviewed",
|
|
2769
|
+
"reviewer": "release-owner",
|
|
2770
|
+
"reviewedAt": "2026-09-26",
|
|
2771
|
+
"humanApproved": true,
|
|
2772
|
+
"approvalReference": "https://github.com/oscharko-dev/Keiko/issues/3610",
|
|
2773
|
+
"rationale": "The release owner ordered on 2026-09-25 that release 1.1.8 ship without defects and that epic #3591 be completed. Repeating the lab flows with the published 1.1.8 package (issue #3610) found that a restart more than a day after setup left the Coding Workbench without a model: the config loader demotes an aged-out tool-call proof to toolCalling false, and the Workbench's automatic renewal of the 1.1.1 owner decision keyed on that flag. 1.1.9 ships that repair; it adds no export, no route, no operation and no configuration key.",
|
|
2774
|
+
"traceability": null
|
|
2775
|
+
},
|
|
2776
|
+
"userActionRequired": true,
|
|
2777
|
+
"remediation": "restart-required",
|
|
2778
|
+
"traceability": null,
|
|
2779
|
+
"portableRuntimeArtifactContract": {
|
|
2780
|
+
"programEpic": 1944,
|
|
2781
|
+
"parentEpic": 1942,
|
|
2782
|
+
"issue": 1948,
|
|
2783
|
+
"stagingOnly": true,
|
|
2784
|
+
"signingScope": "evaluation",
|
|
2785
|
+
"targets": ["linux-x64", "windows-x64", "macos-arm64", "macos-x64"]
|
|
2786
|
+
}
|
|
2787
|
+
},
|
|
2788
|
+
{
|
|
2789
|
+
"packageName": "@oscharko-dev/keiko",
|
|
2790
|
+
"packageVersion": "1.1.10",
|
|
2791
|
+
"distTag": "latest",
|
|
2792
|
+
"registry": "https://registry.npmjs.org/",
|
|
2793
|
+
"releaseTag": "v1.1.10",
|
|
2794
|
+
"supportedFrom": ["0.2.0"],
|
|
2795
|
+
"internalOnly": false,
|
|
2796
|
+
"observableImpact": true,
|
|
2797
|
+
"defaultPatchNotes": true,
|
|
2798
|
+
"oneClickEligible": true,
|
|
2799
|
+
"publishGates": [
|
|
2800
|
+
"version-consistency",
|
|
2801
|
+
"publish-manifests",
|
|
2802
|
+
"release-impact",
|
|
2803
|
+
"workspace-supply-chain",
|
|
2804
|
+
"package-surface",
|
|
2805
|
+
"qi-supply-chain",
|
|
2806
|
+
"install-smoke"
|
|
2807
|
+
],
|
|
2808
|
+
"id": "2026-09-26-keiko-1.1.10-coding-workbench-approval-expiry-and-window",
|
|
2809
|
+
"releaseNoteCategory": "fixes",
|
|
2810
|
+
"releaseNotePriority": "high",
|
|
2811
|
+
"userVisibleChange": "behavioral",
|
|
2812
|
+
"userVisibleSummary": "Coding Workbench approvals take fewer steps and never end a run by themselves. Denying a step now rejects only that step: the coding agent is told and continues, where before the whole run stopped. In Ask for approval, a file change needs one decision, Apply or Reject in the change review, instead of an approval followed by the same review, and rejecting a change is that decision: the agent is told and the run can still succeed. An approval request that is not answered within its five minutes is removed at once and the next request is shown, where before the expired card stayed on screen and blocked the next one. A turn the model provider rejects outright now ends once instead of being retried without end, a stopped run no longer leaves its change review on screen, and the Workbench window no longer turns blank after an approval. The task history, the question list, issue references, run refreshes and the information popover behave as expected again.",
|
|
2813
|
+
"affectedStateStores": ["activity-log"],
|
|
2814
|
+
"stateImpact": [
|
|
2815
|
+
{
|
|
2816
|
+
"store": "activity-log",
|
|
2817
|
+
"description": "1.1.10 adds and removes activity-log operations and closed values (see the review rationale), so the records it writes carry a new registry catalog digest. Records written before 1.1.10 stay on disk unchanged under normal age-based retention; nothing is rewritten or migrated. The 1.1.10 support analyzer classifies those older records as unsupported, because their catalog digest differs, instead of reconstructing them; the analyzer of the version that wrote them still reads them.",
|
|
2818
|
+
"userActionRequired": false,
|
|
2819
|
+
"remediation": "no-action-required"
|
|
2820
|
+
}
|
|
2821
|
+
],
|
|
2822
|
+
"releaseNoteBullets": [
|
|
2823
|
+
"Coding Workbench: denying a step rejects only that step; the coding agent is told and the run continues instead of stopping.",
|
|
2824
|
+
"Coding Workbench (Ask for approval): a file change needs one decision, Apply or Reject in the change review; the separate approval before it is gone.",
|
|
2825
|
+
"Coding Workbench (Ask for approval): an approval that expires unanswered is removed at once, and the next approval request is shown and can be approved or denied.",
|
|
2826
|
+
"Coding Workbench: the window no longer turns blank after an approval or when a pending decision is opened.",
|
|
2827
|
+
"Coding Workbench: when the model provider rejects a turn outright (for example HTTP 400 or a refused credential), the turn ends once with the failure instead of being retried every few seconds until the run is stopped.",
|
|
2828
|
+
"Coding Workbench: a stopped run no longer leaves its change review on screen, and a second browser tab on the same run no longer re-registers several times a second.",
|
|
2829
|
+
"Coding Workbench (Ask for approval): rejecting a change in its review rejects only that change; the coding agent is told it was declined and the run can still finish successfully, where before it was told its edit had failed and the run could end as failed.",
|
|
2830
|
+
"Coding Workbench: a turn refused because the model spend limit is reached ends once, also while streaming, instead of being retried.",
|
|
2831
|
+
"Coding Workbench task history: Rename opens with the current title and Cancel discards the draft, an older refresh no longer overwrites a newer one, repository names read correctly for Windows paths and trailing slashes, and selecting a task again retries an activation that failed.",
|
|
2832
|
+
"Coding Workbench: a shown question is listed again after a refresh, an issue reference in parentheses such as (#13) is recognised, concurrent run refreshes keep the newest state, Escape in the information popover returns focus to its button, and a draft pull request whose handoff status is not yet known says so instead of offering to propose it again.",
|
|
2833
|
+
"Coding Workbench: each window keeps its own repository and branch, chosen in the window's setup card; the header no longer carries a global workspace switch that every window inherited.",
|
|
2834
|
+
"Coding Workbench: a failed change diff offers Retry, Start becomes available once a Codex sign-in connects, a progress decision moves keyboard focus to it, a history read failure no longer hides the run's changes, a ready-for-review handoff refreshes the pull request state, the model choice survives a catalog refresh, and a model the gateway no longer offers is cleared instead of being sent with Start.",
|
|
2835
|
+
"Coding Workbench: the repository and branch cannot be changed while a workspace bind is in progress, and a folder that is not a Git repository is explained in the setup card.",
|
|
2836
|
+
"Git: every failed read in the Git window (repository list, status, branches, sync state, commit preview, history) says what failed and offers Retry, including reads Git answered as unavailable; a branch created before a failed switch says so, History stops at its 100,000-commit limit, and closing Add repository during a request no longer activates its result.",
|
|
2837
|
+
"Git: Sync reflects a finished commit, fetch, pull, push, merge or branch change immediately instead of replaying the state from before it.",
|
|
2838
|
+
"Coding Workbench issue handoff: Refresh observed status pressed while the card's own first status read is still running shows the observed pull request state instead of leaving the card without one.",
|
|
2839
|
+
"Model gateway (Azure OpenAI): manual chat gateway setup can choose the Azure deployment endpoint style and API version, a base URL ending in /openai no longer doubles the deployment path, and GPT-5.6 deployments pass the tool-calling readiness check.",
|
|
2840
|
+
"Model gateway: a deployment whose name does not reveal its model family, such as a GPT-5 deployment named prod-chat, is retried once with the other output-token field when it rejects max_tokens or max_completion_tokens, and that endpoint keeps the accepted field; an explicitly configured field is never changed.",
|
|
2841
|
+
"Model gateway: a LiteLLM or vLLM gateway that rejects the optional stream usage field no longer fails the streaming readiness check."
|
|
2842
|
+
],
|
|
2843
|
+
"review": {
|
|
2844
|
+
"status": "reviewed",
|
|
2845
|
+
"reviewer": "release-owner",
|
|
2846
|
+
"reviewedAt": "2026-09-26",
|
|
2847
|
+
"humanApproved": true,
|
|
2848
|
+
"approvalReference": "https://github.com/oscharko-dev/Keiko/issues/3610",
|
|
2849
|
+
"rationale": "The release owner ordered the lab verification of the published package and the completion of epic #3591 without follow-ups. The published 1.1.9 lab run (issue #3610) found two defects in Ask for approval mode: an expired approval blocked the next one, and the Workbench window could turn blank after an approval. 1.1.10 ships both repairs and the owner's approval decisions of 2026-09-26 (a denial rejects only that step; the change review is a file edit's one approval). It adds the activity-log operations coding-runtime.approval.retired, coding-runtime.approval.decided, gateway.readiness.compatibility-retry, gateway.readiness.compatibility-retry.failed, gateway.readiness.compatibility-retry.skipped, client.git-operation.attempted, client.git-operation.settled and client.select.dismissed, removes coding-runtime.approval.base-checked with the pre-ask base check it recorded and the reasons approval-authority-denied and approval-stale from coding-sidecar.tool-facade.rejected, adds a runtimeRetry field to coding-sidecar.gateway.turn-failed, adds the state rejected to coding-runtime.editor-mutation.settled, the reason CHANGE_REJECTED to coding-runtime.edit.refused, the reason denied to coding-runtime.tool-result and the phase joined to git.journey-observation, adds the field reasoningEffort to chat.request.dispatch, the omitted fields max_tokens and max_completion_tokens to chat.request.compatibility-retry, the field baseBranchDigest to task-workspace.lifecycle and the closed fields gitClientOperation, gitClientOperationOutcome and gitClientOperationReason to client.diagnostic, and adds no export, route or configuration key. It also ships the per-window repository context and the fixes for the user findings #3626 to #3653 of the same lab.",
|
|
2850
|
+
"traceability": null
|
|
2851
|
+
},
|
|
2852
|
+
"userActionRequired": true,
|
|
2853
|
+
"remediation": "restart-required",
|
|
2854
|
+
"traceability": null,
|
|
2855
|
+
"portableRuntimeArtifactContract": {
|
|
2856
|
+
"programEpic": 1944,
|
|
2857
|
+
"parentEpic": 1942,
|
|
2858
|
+
"issue": 1948,
|
|
2859
|
+
"stagingOnly": true,
|
|
2860
|
+
"signingScope": "evaluation",
|
|
2861
|
+
"targets": ["linux-x64", "windows-x64", "macos-arm64", "macos-x64"]
|
|
2862
|
+
}
|
|
2735
2863
|
}
|
|
2736
2864
|
]
|
|
2737
2865
|
}
|
|
Binary file
|
package/vendor/{oscharko-dev-keiko-connectors-1.1.8.tgz → oscharko-dev-keiko-connectors-1.1.10.tgz}
RENAMED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/vendor/{oscharko-dev-keiko-evidence-1.1.8.tgz → oscharko-dev-keiko-evidence-1.1.10.tgz}
RENAMED
|
Binary file
|
|
Binary file
|
package/vendor/{oscharko-dev-keiko-harness-1.1.8.tgz → oscharko-dev-keiko-harness-1.1.10.tgz}
RENAMED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/vendor/{oscharko-dev-keiko-security-1.1.8.tgz → oscharko-dev-keiko-security-1.1.10.tgz}
RENAMED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/vendor/{oscharko-dev-keiko-workflows-1.1.8.tgz → oscharko-dev-keiko-workflows-1.1.10.tgz}
RENAMED
|
Binary file
|
package/vendor/{oscharko-dev-keiko-workspace-1.1.8.tgz → oscharko-dev-keiko-workspace-1.1.10.tgz}
RENAMED
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,70307,e=>{"use strict";var t=e.i(43476),i=e.i(71645),o=e.i(74080),a=e.i(89956),s=e.i(18829),n=e.i(95508),l=e.i(50850),d=e.i(5791),r=e.i(85912),c=e.i(17161),u=e.i(67914),p=e.i(22318),m=e.i(60865),v=e.i(70703),g=e.i(20405),h=e.i(69361),y=e.i(47227);let f=(0,v.default)(()=>e.A(75724).then(e=>e.GatewayConfigUpload),{loadableGenerated:{modules:[2585]},ssr:!1,loading:h.DynamicChunkLoadFailure});function w(){let e=(0,l.useTranslate)(),t=(0,r.useOptionalWidgetTranslate)();return(0,i.useCallback)((i,o)=>i in d.OPTIONAL_WIDGET_EN_MESSAGES?t(i,o):e(i,o),[e,t]);}let x=c.Icons.cube,S=c.Icons.moon,b=c.Icons.sun;function M(e){return Array.from(new Set(e.split(/[\n,]/u).map(e=>e.trim()).filter(e=>e.length>0)));}function I(e,t="Request timeout"){let i=e.trim();if(""===i)return;let o=Number(i);if(!Number.isInteger(o)||o<=0)throw Error(`${t} must be a positive integer in milliseconds.`);return o;}function j(e){return e.filter(e=>"voice"===e.kind).map(e=>e.id);}function N(e){var _ref;return(_ref=(0,a.selectRealtimeVoiceCapability)(e))===null||_ref===void 0?void 0:_ref.id;}function C(e){var _ref2;return(_ref2=(0,a.selectSpeechOutputCapability)(e))===null||_ref2===void 0?void 0:_ref2.id;}function k(e){let t=(0,a.selectRealtimeVoiceCapability)(e);return(t===null||t===void 0?void 0:t.supportsSemanticTurnDetection)===!0?t.id:void 0;}function V(e,t,i,o=""){let a=k(t);if(!e||void 0===a)return!1;let s=i.trim();return""===s?""===o.trim():s===a&&""===o.trim();}let A=Symbol("stored-voice-endpoint");function E(e,t){return e.trim()||t;}function T(e,t,i){let o=e.trim();return""!==o?z(o):t&&i?A:void 0;}function R(e,t,i,o){void 0!==e.current&&e.current!==t&&i(),o&&(e.current=t);}function K(e,t,i,o){return""!==e.trim()||t&&i.some(e=>"voice"===e.kind&&!0===e[o]);}let U=new Set(["azure-foundry","customer-hosted","local-only","gateway-managed"]);function O(e){return[{options:[{value:"",label:e("gatewaySetup.voice.endpointStyle.unstated")},{value:"api-key",label:e("gatewaySetup.voice.realtimeAuthMode.apiKey")},{value:"ephemeral-session",label:e("gatewaySetup.voice.realtimeAuthMode.ephemeral")}]}];}function P(e){return[{options:[{value:"",label:e("gatewaySetup.voice.endpointStyle.unstated")},{value:"openai-compatible",label:e("gatewaySetup.voice.endpointStyle.openaiCompatible")},{value:"azure-openai-deployment",label:e("gatewaySetup.voice.endpointStyle.azureDeploymentPath")}]}];}function B(e){let t=e.trim();return""===t?void 0:t;}function L(e,t,i){var _e$dataset$t;let o=Number((_e$dataset$t=e.dataset[t])!==null&&_e$dataset$t!==void 0?_e$dataset$t:"0");e.dataset[t]=String(o+1),e.setAttribute(i,"true");}function D(e,t,i){var _e$dataset$t2;let o=Math.max(0,Number((_e$dataset$t2=e.dataset[t])!==null&&_e$dataset$t2!==void 0?_e$dataset$t2:"1")-1);0===o?(delete e.dataset[t],e.removeAttribute(i)):e.dataset[t]=String(o);}function H(e){let t=[e.voiceBaseUrl,e.voiceEndpointStyle,e.voiceApiVersion,e.voiceRealtimeAuthMode,e.voiceApiKey,e.voiceApiKeyHeaderName,e.voiceModelId,e.voiceRealtimeModelId,e.voiceRealtimeTranscriptionModelId,e.voiceSpeechOutputModelId,e.voiceTimeoutMs],i=[e.voiceSemanticTurnDetectionConfigured,e.voiceSpeechSynthesisInstructionsConfigured,e.voiceOutputVoiceIdConfigured,e.voiceProviderLocalityConfigured];return t.some(e=>""!==e.trim())||i.includes(!0);}function F(e){return""!==e.voiceModelId.trim()||""!==e.voiceRealtimeModelId.trim()||""!==e.voiceSpeechOutputModelId.trim();}function q(e){let t=e.length;for(;t>0&&"/"===e[t-1];)t-=1;return e.slice(0,t);}let $="/chat/completions";function z(e){let t,i=(t=q(e.trim())).endsWith($)?q(t.slice(0,-$.length)):t;try{return q(new URL(i).href);}catch{return i;}}function G(e){return{...(""===e.voiceEndpointStyle?{}:{voiceEndpointStyle:e.voiceEndpointStyle}),...(""===e.voiceApiVersion.trim()?{}:{voiceApiVersion:e.voiceApiVersion.trim()}),...(""===e.voiceRealtimeAuthMode?{}:{voiceRealtimeAuthMode:e.voiceRealtimeAuthMode})};}async function _(e,t){var _f$skippedModelIds,_o$skippedModelIds,_o$unsupportedModels,_o$droppedEmbeddingMo,_o$unverifiedEmbeddin,_o$unverifiedChatMode;var i,o;let a,s,l,d=M(e.deploymentNames),r=function(e,t){if(function(e){try{return new URL(e.trim()).hostname.endsWith(".services.ai.azure.com");}catch{return!1;}}(e)&&0===t.length)return"Microsoft Foundry requires deployment names. Paste the names from the Deployments tab.";}(e.baseUrl,d);if(void 0!==r)return{kind:"validation-error",message:r};let c=function(e,t){if(e.preserveExisting&&e.hasStoredVoiceProvider&&""!==e.voiceBaseUrl.trim()&&!(""!==e.voiceApiKey.trim()&&e.voiceProviderLocalityConfigured&&F(e)))return t("gatewaySetup.voice.endpointMigrationRequired");}(e,t);if(void 0!==c)return{kind:"validation-error",message:c};if(""!==e.voiceRealtimeTranscriptionModelId.trim()&&""===e.voiceRealtimeModelId.trim())return{kind:"validation-error",message:t("gatewaySetup.voice.realtimeRequired")};if(!e.preserveExisting&&H(e)&&!F(e))return{kind:"validation-error",message:t("gatewaySetup.voice.deploymentRequired")};if(""!==(a=e.voiceRealtimeModelId.trim())&&(!e.preserveExisting||""!==e.voiceBaseUrl.trim()||a!==e.storedRealtimeModelId)&&""===e.voiceRealtimeTranscriptionModelId.trim())return{kind:"validation-error",message:t("gatewaySetup.voice.realtimeTranscriptionRequired")};if(""!==e.voiceSpeechOutputModelId.trim()&&(!e.voiceOutputVoiceIdConfigured||""===e.voiceOutputVoiceId.trim()))return{kind:"validation-error",message:t("gatewaySetup.voice.outputVoiceRequired")};let u=function(e,t){try{return{ok:!0,timeoutMs:I(e),voiceTimeoutMs:I(t,"Voice request timeout")};}catch(e){return{ok:!1,message:e instanceof Error?e.message:"Request timeout is invalid."};}}(e.timeoutMs,e.voiceTimeoutMs);if(!u.ok)return{kind:"validation-error",message:u.message};let p={parsedDeploymentNames:d,parsedImageInputModelIds:M(e.imageInputModelIds),parsedWorkflowEligibleModelIds:M(e.workflowEligibleModelIds),parsedTimeoutMs:u.timeoutMs,parsedVoiceTimeoutMs:u.voiceTimeoutMs},m=H(e)?"voice":"standard",v=function(e,t,i){var o;let a,s,n,l,d,r,c,u;return"standard"===i?{}:(a=B((o={voiceBaseUrl:e.voiceBaseUrl,voiceApiKey:e.voiceApiKey,voiceApiKeyHeaderName:e.voiceApiKeyHeaderName,voiceModelId:e.voiceModelId,voiceRealtimeModelId:e.voiceRealtimeModelId,voiceRealtimeTranscriptionModelId:e.voiceRealtimeTranscriptionModelId,voiceSupportsSemanticTurnDetection:e.voiceSupportsSemanticTurnDetection,voiceSemanticTurnDetectionConfigured:e.voiceSemanticTurnDetectionConfigured,voiceSupportsSpeechSynthesisInstructions:e.voiceSupportsSpeechSynthesisInstructions,voiceSpeechSynthesisInstructionsConfigured:e.voiceSpeechSynthesisInstructionsConfigured,voiceSpeechOutputModelId:e.voiceSpeechOutputModelId,voiceOutputVoiceId:e.voiceOutputVoiceId,voiceOutputVoiceIdConfigured:e.voiceOutputVoiceIdConfigured,voiceProviderLocality:e.voiceProviderLocality,voiceProviderLocalityConfigured:e.voiceProviderLocalityConfigured,voiceTimeoutMs:t.parsedVoiceTimeoutMs,preserveExisting:e.preserveExisting}).voiceBaseUrl),s=B(o.voiceApiKey),n=B(o.voiceApiKeyHeaderName),l=B(o.voiceModelId),d=B(o.voiceRealtimeModelId),r=B(o.voiceRealtimeTranscriptionModelId),c=B(o.voiceSpeechOutputModelId),u=B(o.voiceOutputVoiceId),{...(void 0===a?{}:{voiceBaseUrl:a}),...(void 0===s?{}:{voiceApiKey:s}),...(void 0===n?{}:{voiceApiKeyHeaderName:n}),...(void 0===l?{}:{voiceSpeechToTextModelId:l}),...(void 0===d?{}:{voiceRealtimeModelId:d}),...(void 0===r?{}:{voiceRealtimeTranscriptionModelId:r}),...{...(o.voiceSemanticTurnDetectionConfigured?{voiceSupportsSemanticTurnDetection:o.voiceSupportsSemanticTurnDetection}:{}),...(o.voiceSpeechSynthesisInstructionsConfigured?{voiceSupportsSpeechSynthesisInstructions:o.voiceSupportsSpeechSynthesisInstructions}:{})},...(void 0===c?{}:{voiceSpeechOutputModelId:c}),...(void 0===u||!o.voiceOutputVoiceIdConfigured?{}:{voiceOutputVoiceId:u}),...(!o.preserveExisting||o.voiceProviderLocalityConfigured?{voiceProviderLocality:o.voiceProviderLocality}:{}),...(void 0===o.voiceTimeoutMs?{}:{voiceTimeoutMs:o.voiceTimeoutMs})});}(e,p,m),g=!e.preserveExisting||""!==e.baseUrl.trim()||""!==e.apiKey.trim()||""!==e.apiKeyHeaderName.trim()||p.parsedDeploymentNames.length>0||p.parsedImageInputModelIds.length>0,h=g||void 0!==p.parsedTimeoutMs||e.imageInputModelIdsConfigured||e.workflowEligibleModelIdsConfigured,y=""!==e.figmaAccessToken.trim(),f=await(0,n.setupGateway)({baseUrl:B(e.baseUrl),apiKey:B(e.apiKey),apiKeyHeaderName:B(e.apiKeyHeaderName),...(void 0===p.parsedTimeoutMs?{}:{timeoutMs:p.parsedTimeoutMs}),deploymentNames:p.parsedDeploymentNames,preserveExisting:e.preserveExisting,...(0===p.parsedImageInputModelIds.length&&!e.imageInputModelIdsConfigured?{}:{imageInputModelIds:p.parsedImageInputModelIds}),...(0===e.importedEmbeddingModelIds.length?{}:{embeddingModelIds:e.importedEmbeddingModelIds}),...(""===(s=e.voiceBaseUrl.trim())?e.preserveExisting&&""===e.voiceProtocolBoundBaseUrl?G(e):{}:""!==e.voiceProtocolBoundBaseUrl&&z(e.voiceProtocolBoundBaseUrl)!==z(s)?{}:G(e)),...(""===(l=e.baseUrl.trim())||""!==e.importedEndpointBaseUrl&&z(l)!==z(e.importedEndpointBaseUrl)?{}:{...(""===e.importedEndpointStyle?{}:{endpointStyle:e.importedEndpointStyle}),...(""===e.importedApiVersion?{}:{apiVersion:e.importedApiVersion})}),...(!e.workflowEligibleModelIdsConfigured?{}:{workflowEligibleModelIds:p.parsedWorkflowEligibleModelIds}),...v,...(""===e.figmaAccessToken.trim()?{}:{figmaAccessToken:e.figmaAccessToken.trim()})}),w=f.testedModelIds.length;return{kind:"success",message:function(e){let{t,submittedFigmaCredential:i,submittedGatewaySettings:o,submittedGatewayCredentials:a,mode:s,verifiedModelSummary:n,skippedSummary:l}=e;return i&&!o?`${"voice"===s?t("gatewaySetup.voice.success.audioAndFigma"):"Verified Figma access token. Reloading Keiko…"}${l}`:i&&!a?`${"voice"===s?t("gatewaySetup.voice.success.gatewayAudioAndFigma"):"Updated model gateway settings and verified Figma access token. Reloading Keiko…"}${l}`:i||a?i?"voice"===s?t("gatewaySetup.voice.success.verifiedAudioAndFigma",{verified:n,skipped:l}):`${n} and Figma access token. Reloading Keiko…${l}`:"voice"===s?t("gatewaySetup.voice.success.verifiedAudio",{verified:n,skipped:l}):`${n}. Reloading Keiko…${l}`:`${"voice"===s?t("gatewaySetup.voice.success.audio"):"Updated model gateway settings. Reloading Keiko…"}${l}`;}({t,submittedFigmaCredential:y,submittedGatewaySettings:h,submittedGatewayCredentials:g,mode:m,verifiedModelSummary:`Verified ${String(w)} workflow chat model${1===w?"":"s"}`,skippedSummary:(0===(i=(_f$skippedModelIds=f.skippedModelIds)!==null&&_f$skippedModelIds!==void 0?_f$skippedModelIds:[]).length?"":` Could not verify deployment${1===i.length?"":"s"}: ${i.join(", ")}.`)+function(e,t,_t$unsupportedModels,_t$droppedEmbeddingMo,_t$unverifiedEmbeddin,_t$unverifiedChatMode){let i=[],o=(_t$unsupportedModels=t.unsupportedModels)!==null&&_t$unsupportedModels!==void 0?_t$unsupportedModels:[];if(o.length>0){let t=o.map(e=>`${e.id} (${e.reason})`).join(", ");i.push(e("gatewaySetup.unusable.unsupported",{models:t}));}let a=(_t$droppedEmbeddingMo=t.droppedEmbeddingModelIds)!==null&&_t$droppedEmbeddingMo!==void 0?_t$droppedEmbeddingMo:[];a.length>0&&i.push(e("gatewaySetup.unusable.dropped",{models:a.join(", ")}));let s=(_t$unverifiedEmbeddin=t.unverifiedEmbeddingModelIds)!==null&&_t$unverifiedEmbeddin!==void 0?_t$unverifiedEmbeddin:[];s.length>0&&i.push(e("gatewaySetup.unusable.unverified",{models:s.join(", ")}));let n=(_t$unverifiedChatMode=t.unverifiedChatModelIds)!==null&&_t$unverifiedChatMode!==void 0?_t$unverifiedChatMode:[];return n.length>0&&i.push(e("gatewaySetup.unusable.unverifiedChat",{models:n.join(", ")})),i.join("");}(t,f)}),skippedModelCount:((_o$skippedModelIds=(o=f).skippedModelIds)!==null&&_o$skippedModelIds!==void 0?_o$skippedModelIds:[]).length+((_o$unsupportedModels=o.unsupportedModels)!==null&&_o$unsupportedModels!==void 0?_o$unsupportedModels:[]).length+((_o$droppedEmbeddingMo=o.droppedEmbeddingModelIds)!==null&&_o$droppedEmbeddingMo!==void 0?_o$droppedEmbeddingMo:[]).length+((_o$unverifiedEmbeddin=o.unverifiedEmbeddingModelIds)!==null&&_o$unverifiedEmbeddin!==void 0?_o$unverifiedEmbeddin:[]).length+((_o$unverifiedChatMode=o.unverifiedChatModelIds)!==null&&_o$unverifiedChatMode!==void 0?_o$unverifiedChatMode:[]).length};}function W(e,t){let i=e.clipboardData.getData("text"),o=i.replace(/\s/gu,"");if(o===i)return;e.preventDefault();let a=e.currentTarget;a.setRangeText(o),t(a.value);}function Y({preserveExisting:e,value:i,disabled:o,inputRef:a,onChange:s}){return(0,t.jsxs)("label",{className:"gw-field gw-span-2",children:[(0,t.jsxs)("span",{children:["Base URL ",e?(0,t.jsx)("span",{className:"dlg-opt",children:"leave blank to keep"}):null]}),(0,t.jsx)("input",{className:"gw-input mono",value:i,placeholder:e?"Only enter a value to replace the stored gateway URL":"https://llm-gateway.example.com/v1",autoComplete:"off",disabled:o,ref:a,onChange:e=>s(e.target.value),onPaste:e?void 0:e=>W(e,s)})]});}function X({preserveExisting:e,value:i,disabled:o,onChange:a}){return(0,t.jsxs)("label",{className:"gw-field",children:[(0,t.jsxs)("span",{children:["API token ",e?(0,t.jsx)("span",{className:"dlg-opt",children:"leave blank to keep"}):null]}),(0,t.jsx)("input",{className:"gw-input mono",type:"password",value:i,placeholder:e?"Only enter a value to replace the stored token":"Paste your API token",autoComplete:"off",disabled:o,onChange:e=>a(e.target.value),onPaste:e?void 0:e=>W(e,a)})]});}function J({preserveExisting:e,value:i,disabled:o,onChange:a}){return(0,t.jsxs)("label",{className:"gw-field",children:[(0,t.jsxs)("span",{children:["API key header ",(0,t.jsx)("span",{className:"dlg-opt",children:"optional"})]}),(0,t.jsx)("input",{className:"gw-input mono",value:i,placeholder:e?"Leave blank to keep stored header":"Authorization",autoComplete:"off",disabled:o,onChange:e=>a(e.target.value)})]});}function Q({preserveExisting:e,value:i,disabled:o,onChange:a}){return(0,t.jsxs)("label",{className:"gw-field",children:[(0,t.jsxs)("span",{children:["Request timeout (ms) ",(0,t.jsx)("span",{className:"dlg-opt",children:"optional"})]}),(0,t.jsx)("input",{className:"gw-input mono",inputMode:"numeric",value:i,placeholder:e?"Leave blank to keep stored timeout":"120000",autoComplete:"off",disabled:o,onChange:e=>a(e.target.value)})]});}function Z({value:e,disabled:i,onChange:o}){return(0,t.jsxs)("label",{className:"gw-field",children:[(0,t.jsx)("span",{children:"Deployment names for Microsoft Foundry"}),(0,t.jsx)("textarea",{className:"gw-input gw-textarea mono",value:e,placeholder:"Paste deployment names, one per line",autoComplete:"off",disabled:i,onChange:e=>o(e.target.value)})]});}function ee({value:e,disabled:i,onChange:o}){return(0,t.jsxs)("label",{className:"gw-field",children:[(0,t.jsxs)("span",{children:["Image-input models ",(0,t.jsx)("span",{className:"dlg-opt",children:"optional"})]}),(0,t.jsx)("textarea",{className:"gw-input gw-textarea mono",value:e,placeholder:"Paste image-capable model names, one per line",autoComplete:"off",disabled:i,onChange:e=>o(e.target.value)})]});}function et({t:e,value:i,disabled:o,onChange:a}){return(0,t.jsxs)("label",{className:"gw-field",children:[(0,t.jsxs)("span",{children:[e("gatewaySetup.workflowEligibleModels")," ",(0,t.jsx)("span",{className:"dlg-opt",children:e("common.optional")})]}),(0,t.jsx)("textarea",{className:"gw-input gw-textarea mono",value:i,placeholder:e("gatewaySetup.workflowEligibleModelsPlaceholder"),autoComplete:"off",disabled:o,onChange:e=>a(e.target.value)})]});}function ei(e){let i=e.busy||void 0!==e.success;return(0,t.jsxs)("div",{className:"gw-grid",children:[(0,t.jsx)(Y,{preserveExisting:e.preserveExisting,value:e.baseUrl,disabled:i,inputRef:e.baseUrlRef,onChange:e.setBaseUrl}),(0,t.jsx)(X,{preserveExisting:e.preserveExisting,value:e.apiKey,disabled:i,onChange:e.setApiKey}),(0,t.jsx)(J,{preserveExisting:e.preserveExisting,value:e.apiKeyHeaderName,disabled:i,onChange:e.setApiKeyHeaderName}),(0,t.jsx)(Q,{preserveExisting:e.preserveExisting,value:e.timeoutMs,disabled:i,onChange:e.setTimeoutMs}),(0,t.jsx)(Z,{value:e.deploymentNames,disabled:i,onChange:e.setDeploymentNames}),(0,t.jsx)(ee,{value:e.imageInputModelIds,disabled:i,onChange:e.setImageInputModelIds}),(0,t.jsx)(et,{t:e.t,value:e.workflowEligibleModelIds,disabled:i,onChange:e.setWorkflowEligibleModelIds})]});}function eo({storedApiKeyHeaderName:e,visibleModelNames:i,hiddenModelCount:o,fields:a}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"gw-current","aria-label":"Stored model gateway credentials",children:[(0,t.jsxs)("div",{className:"gw-current-row",children:[(0,t.jsx)("span",{children:"Gateway URL"}),(0,t.jsx)("strong",{children:"Stored"})]}),(0,t.jsxs)("div",{className:"gw-current-row",children:[(0,t.jsx)("span",{children:"API token"}),(0,t.jsx)("strong",{className:"mono",children:"••••••••••••"})]}),(0,t.jsxs)("div",{className:"gw-current-row",children:[(0,t.jsx)("span",{children:"API key header"}),(0,t.jsx)("strong",{className:"mono",children:e!==null&&e!==void 0?e:"authorization"})]}),(0,t.jsxs)("div",{className:"gw-current-models",children:[(0,t.jsx)("span",{children:"Configured models"}),(0,t.jsxs)("div",{className:"gw-model-chips",children:[0===i.length?(0,t.jsx)("strong",{children:"Stored"}):i.map(e=>(0,t.jsx)("strong",{className:"mono",children:e},e)),o>0?(0,t.jsxs)("strong",{children:["+",o.toString()]}):null]})]})]}),(0,t.jsxs)("details",{className:"gw-replace",children:[(0,t.jsx)("summary",{children:"Replace model gateway settings"}),a]})]});}function ea({preserveExisting:e,storedApiKeyHeaderName:i,visibleModelNames:o,hiddenModelCount:a,fields:s}){return(0,t.jsxs)("section",{className:"gw-section","aria-labelledby":"gw-model-section-title",children:[(0,t.jsx)("div",{className:"gw-section-head",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{id:"gw-model-section-title",children:"Model gateway"}),(0,t.jsx)("p",{children:e?"Blank gateway fields keep the stored value.":"Base URL and API token are required."})]})}),e?(0,t.jsx)(eo,{storedApiKeyHeaderName:i,visibleModelNames:o,hiddenModelCount:a,fields:s}):s]});}function es({t:e,preserveExisting:i,storedModels:o,voiceModelId:s,voiceRealtimeModelId:n,voiceRealtimeTranscriptionModelId:l,voiceSpeechOutputModelId:d,voiceOutputVoiceId:r}){let c,u,p=K(s,i,o,"supportsSpeechInput"),m=K(d,i,o,"supportsSpeechOutput"),v=""!==(c=n.trim())&&""!==l.trim()||!!i&&o.some(e=>(""===c||e.id===c)&&(0,a.isCompleteRealtimeVoiceCapability)({...e,realtimeTranscriptionModel:l.trim()||e.realtimeTranscriptionModel})),g=(u=d.trim(),i&&o.some(e=>{var _e$supportedVoicePers,_e$supportedVoicePers2;return"voice"===e.kind&&!0===e.supportsSpeechOutput&&((_e$supportedVoicePers=(_e$supportedVoicePers2=e.supportedVoicePersonas)===null||_e$supportedVoicePers2===void 0?void 0:_e$supportedVoicePers2.length)!==null&&_e$supportedVoicePers!==void 0?_e$supportedVoicePers:0)>0&&(""===u||e.id===u);})),h=m&&(""!==r.trim()||g);return(0,t.jsxs)("div",{className:"gw-note gw-span-2",children:[e("gatewaySetup.voice.guidance"),(0,t.jsx)("br",{}),e("gatewaySetup.voice.selectedCapabilities",{dictate:e(p?"common.on":"common.off"),digitalVoice:e(h&&(v||p)?"common.on":"common.off"),readAloud:e(h?"common.on":"common.off")})]});}function en({t:e,value:i,disabled:o,onChange:a}){return(0,t.jsxs)("label",{className:"gw-field",children:[(0,t.jsxs)("span",{children:[e("gatewaySetup.voice.dictateDeployment")," ",(0,t.jsx)("span",{className:"dlg-opt",children:e("common.optional")})]}),(0,t.jsx)("input",{className:"gw-input mono",value:i,placeholder:"your-transcription-deployment",autoComplete:"off",disabled:o,onChange:e=>a(e.target.value)})]});}function el({t:e,value:i,disabled:o,onChange:a,onBlur:s}){return(0,t.jsxs)("label",{className:"gw-field",children:[(0,t.jsxs)("span",{children:[e("gatewaySetup.voice.realtimeDeployment")," ",(0,t.jsx)("span",{className:"dlg-opt",children:e("common.optional")})]}),(0,t.jsx)("input",{className:"gw-input mono",value:i,placeholder:"your-realtime-deployment",autoComplete:"off",disabled:o,onChange:e=>a(e.target.value),onBlur:s})]});}function ed({t:e,value:i,disabled:o,requiredForRealtime:a,onChange:s}){return(0,t.jsxs)("label",{className:"gw-field",children:[(0,t.jsxs)("span",{children:[e("gatewaySetup.voice.realtimeTranscriptionDeployment")," ",(0,t.jsx)("span",{className:"dlg-opt",children:e(a?"gatewaySetup.voice.realtimeTranscriptionRequiredLabel":"common.optional")})]}),(0,t.jsx)("input",{className:"gw-input mono",value:i,placeholder:e("gatewaySetup.voice.realtimeTranscriptionDeploymentPlaceholder"),autoComplete:"off",disabled:o,"aria-required":a,onChange:e=>s(e.target.value)})]});}function er({t:e,value:i,disabled:o,onChange:a,onBlur:s}){return(0,t.jsxs)("label",{className:"gw-field",children:[(0,t.jsxs)("span",{children:[e("gatewaySetup.voice.speechOutputDeployment")," ",(0,t.jsx)("span",{className:"dlg-opt",children:e("common.optional")})]}),(0,t.jsx)("input",{className:"gw-input mono",value:i,placeholder:"your-speech-output-deployment",autoComplete:"off",disabled:o,onChange:e=>a(e.target.value),onBlur:s})]});}function ec({t:e,value:i,disabled:o,onChange:a}){return(0,t.jsxs)("label",{className:"gw-field",children:[(0,t.jsxs)("span",{children:[e("gatewaySetup.voice.outputVoice")," ",(0,t.jsx)("span",{className:"dlg-opt",children:e("gatewaySetup.voice.outputVoiceHint")})]}),(0,t.jsx)("input",{className:"gw-input mono",value:i,placeholder:"provider-voice-id",autoComplete:"off",disabled:o,onChange:e=>a(e.target.value)})]});}function eu({t:e,labelId:i,value:o,disabled:a,onChange:s}){return(0,t.jsxs)("div",{className:"gw-field",children:[(0,t.jsxs)("span",{id:i,children:["Provider locality ",(0,t.jsx)("span",{className:"dlg-opt",children:"optional"})]}),(0,t.jsx)(u.default,{ariaLabelledBy:i,menuTitle:"Provider locality",sections:[{options:[{value:"azure-foundry",label:e("gatewaySetup.voice.locality.azureFoundry")},{value:"customer-hosted",label:e("gatewaySetup.voice.locality.customerHosted")},{value:"local-only",label:e("gatewaySetup.voice.locality.localOnly")},{value:"gateway-managed",label:e("gatewaySetup.voice.locality.gatewayManaged")}]}],showMenuHeader:!1,triggerClassName:"gw-input gw-provider-locality-select",menuClassName:"gw-provider-locality-menu",value:o,disabled:a,onValueChange:e=>{U.has(e)&&s(e);}})]});}function ep({labelId:e,labelKey:i,sections:o,value:a,disabled:s,onChange:n}){let l=w();return(0,t.jsxs)("div",{className:"gw-field",children:[(0,t.jsxs)("span",{id:e,children:[l(i)," ",(0,t.jsx)("span",{className:"dlg-opt",children:l("gatewaySetup.voice.protocol.optional")})]}),(0,t.jsx)(u.default,{ariaLabelledBy:e,menuTitle:l(i),sections:o(l),showMenuHeader:!1,triggerClassName:"gw-input gw-provider-locality-select",menuClassName:"gw-provider-locality-menu",value:a,disabled:s,onValueChange:n})]});}function em({value:e,disabled:i,onChange:o}){let a=w();return(0,t.jsxs)("label",{className:"gw-field",children:[(0,t.jsxs)("span",{children:[a("gatewaySetup.voice.apiVersion.label")," ",(0,t.jsx)("span",{className:"dlg-opt",children:a("gatewaySetup.voice.apiVersion.azureOnly")})]}),(0,t.jsx)("input",{className:"gw-input",value:e,disabled:i,placeholder:"2025-04-01-preview",onChange:e=>o(e.target.value)})]});}function ev({t:e,preserveExisting:i,value:o,disabled:a,onChange:s,onBlur:n}){return(0,t.jsxs)("label",{className:"gw-field gw-span-2",children:[(0,t.jsxs)("span",{children:[e("gatewaySetup.voice.endpointUrl")," ",i?(0,t.jsx)("span",{className:"dlg-opt",children:e("gatewaySetup.voice.preserveExistingHint")}):null]}),(0,t.jsx)("input",{className:"gw-input mono",value:o,placeholder:i?e("gatewaySetup.voice.endpointReplacePlaceholder"):"https://voice-gateway.example.com/openai/v1",autoComplete:"off",disabled:a,onChange:e=>s(e.target.value),onBlur:n})]});}function eg({t:e,preserveExisting:i,value:o,disabled:a,onChange:s}){return(0,t.jsxs)("label",{className:"gw-field",children:[(0,t.jsxs)("span",{children:[e("gatewaySetup.voice.credential")," ",i?(0,t.jsx)("span",{className:"dlg-opt",children:e("gatewaySetup.voice.preserveExistingHint")}):null]}),(0,t.jsx)("input",{className:"gw-input mono",type:"password",value:o,placeholder:e(i?"gatewaySetup.voice.credentialReplacePlaceholder":"gatewaySetup.voice.credentialPlaceholder"),autoComplete:"off",disabled:a,onChange:e=>s(e.target.value)})]});}function eh({t:e,preserveExisting:i,value:o,disabled:a,onChange:s}){return(0,t.jsxs)("label",{className:"gw-field",children:[(0,t.jsxs)("span",{children:[e("gatewaySetup.voice.authHeader")," ",(0,t.jsx)("span",{className:"dlg-opt",children:e("common.advanced")})]}),(0,t.jsx)("input",{className:"gw-input mono",value:o,placeholder:i?e("gatewaySetup.voice.authHeaderPreservePlaceholder"):"api-key",autoComplete:"off",disabled:a,onChange:e=>s(e.target.value)})]});}function ey({t:e,preserveExisting:i,value:o,disabled:a,onChange:s}){return(0,t.jsxs)("label",{className:"gw-field",children:[(0,t.jsxs)("span",{children:[e("gatewaySetup.voice.timeout")," ",(0,t.jsx)("span",{className:"dlg-opt",children:e("common.advanced")})]}),(0,t.jsx)("input",{className:"gw-input mono",inputMode:"numeric",value:o,placeholder:i?e("gatewaySetup.voice.timeoutPreservePlaceholder"):"30000",autoComplete:"off",disabled:a,onChange:e=>s(e.target.value)})]});}function ef({t:e,checked:i,disabled:o,onChange:a}){return(0,t.jsxs)("label",{className:"gw-field gw-span-2",children:[(0,t.jsxs)("span",{children:[e("gatewaySetup.voice.semanticTurnDetection")," ",(0,t.jsx)("span",{className:"dlg-opt",children:e("common.advanced")})]}),(0,t.jsxs)("span",{className:"gw-note",children:[(0,t.jsx)("input",{type:"checkbox",checked:i,disabled:o,onChange:e=>a(e.target.checked)})," ",e("gatewaySetup.voice.semanticTurnDetectionHint")]})]});}function ew(e){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(es,{t:e.t,preserveExisting:e.preserveExisting,storedModels:e.storedModels,voiceModelId:e.voiceModelId,voiceRealtimeModelId:e.voiceRealtimeModelId,voiceRealtimeTranscriptionModelId:e.voiceRealtimeTranscriptionModelId,voiceSpeechOutputModelId:e.voiceSpeechOutputModelId,voiceOutputVoiceId:e.voiceOutputVoiceId}),(0,t.jsx)(en,{t:e.t,value:e.voiceModelId,disabled:e.disabled,onChange:e.setVoiceModelId}),(0,t.jsx)(er,{t:e.t,value:e.voiceSpeechOutputModelId,disabled:e.disabled,onChange:e.setVoiceSpeechOutputModelId,onBlur:e.commitVoiceSpeechOutputModelId}),(0,t.jsx)(ec,{t:e.t,value:e.voiceOutputVoiceId,disabled:e.disabled,onChange:e.setVoiceOutputVoiceId})]});}function ex(e){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(el,{t:e.t,value:e.voiceRealtimeModelId,disabled:e.disabled,onChange:e.setVoiceRealtimeModelId,onBlur:e.commitVoiceRealtimeModelId}),(0,t.jsx)(ed,{t:e.t,value:e.voiceRealtimeTranscriptionModelId,disabled:e.disabled,requiredForRealtime:""!==e.voiceRealtimeModelId.trim(),onChange:e.setVoiceRealtimeTranscriptionModelId}),(0,t.jsx)(ef,{t:e.t,checked:e.voiceSupportsSemanticTurnDetection,disabled:e.disabled,onChange:e.setVoiceSupportsSemanticTurnDetection}),(0,t.jsx)(eu,{t:e.t,labelId:e.voiceProviderLocalityLabelId,value:e.voiceProviderLocality,disabled:e.disabled,onChange:e.setVoiceProviderLocality}),(0,t.jsx)(ep,{labelId:e.voiceEndpointStyleLabelId,labelKey:"gatewaySetup.voice.endpointStyle.label",sections:P,value:e.voiceEndpointStyle,disabled:e.disabled,onChange:e.setVoiceEndpointStyle}),(0,t.jsx)(em,{value:e.voiceApiVersion,disabled:e.disabled,onChange:e.setVoiceApiVersion}),(0,t.jsx)(ep,{labelId:e.voiceRealtimeAuthModeLabelId,labelKey:"gatewaySetup.voice.realtimeAuthMode.label",sections:O,value:e.voiceRealtimeAuthMode,disabled:e.disabled,onChange:e.setVoiceRealtimeAuthMode})]});}function eS(e){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ev,{t:e.t,preserveExisting:e.preserveExisting,value:e.voiceBaseUrl,disabled:e.disabled,onChange:e.setVoiceBaseUrl,onBlur:e.commitVoiceBaseUrl}),(0,t.jsx)(eg,{t:e.t,preserveExisting:e.preserveExisting,value:e.voiceApiKey,disabled:e.disabled,onChange:e.setVoiceApiKey}),(0,t.jsx)(eh,{t:e.t,preserveExisting:e.preserveExisting,value:e.voiceApiKeyHeaderName,disabled:e.disabled,onChange:e.setVoiceApiKeyHeaderName}),(0,t.jsx)(ey,{t:e.t,preserveExisting:e.preserveExisting,value:e.voiceTimeoutMs,disabled:e.disabled,onChange:e.setVoiceTimeoutMs})]});}function eb(e){let i=e.busy||void 0!==e.success;return(0,t.jsxs)("div",{className:"gw-grid",children:[(0,t.jsx)(ew,{t:e.t,preserveExisting:e.preserveExisting,storedModels:e.storedModels,voiceModelId:e.voiceModelId,setVoiceModelId:e.setVoiceModelId,voiceRealtimeModelId:e.voiceRealtimeModelId,voiceRealtimeTranscriptionModelId:e.voiceRealtimeTranscriptionModelId,voiceSpeechOutputModelId:e.voiceSpeechOutputModelId,setVoiceSpeechOutputModelId:e.setVoiceSpeechOutputModelId,commitVoiceSpeechOutputModelId:e.commitVoiceSpeechOutputModelId,voiceOutputVoiceId:e.voiceOutputVoiceId,setVoiceOutputVoiceId:e.setVoiceOutputVoiceId,disabled:i}),(0,t.jsxs)("details",{className:"gw-replace gw-span-2","data-testid":"voice-advanced-settings",children:[(0,t.jsx)("summary",{children:e.t("gatewaySetup.voice.advancedSettings")}),(0,t.jsxs)("div",{className:"gw-grid",children:[(0,t.jsx)(ex,{...e,disabled:i}),(0,t.jsx)(eS,{t:e.t,preserveExisting:e.preserveExisting,voiceBaseUrl:e.voiceBaseUrl,setVoiceBaseUrl:e.setVoiceBaseUrl,commitVoiceBaseUrl:e.commitVoiceBaseUrl,voiceApiKey:e.voiceApiKey,setVoiceApiKey:e.setVoiceApiKey,voiceApiKeyHeaderName:e.voiceApiKeyHeaderName,setVoiceApiKeyHeaderName:e.setVoiceApiKeyHeaderName,voiceTimeoutMs:e.voiceTimeoutMs,setVoiceTimeoutMs:e.setVoiceTimeoutMs,disabled:i})]})]})]});}function eM({t:e,voiceModelNames:i,fields:o,needsSetup:a}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"gw-current","aria-label":e("gatewaySetup.voice.storedAria"),children:[(0,t.jsxs)("div",{className:"gw-current-row",children:[(0,t.jsx)("span",{children:e("gatewaySetup.voice.audioModels")}),(0,t.jsx)("strong",{children:i.length>0?"Stored":"Not configured"})]}),i.length>0?(0,t.jsxs)("div",{className:"gw-current-models",children:[(0,t.jsx)("span",{children:"Voice models"}),(0,t.jsx)("div",{className:"gw-model-chips",children:i.map(e=>(0,t.jsx)("strong",{className:"mono",children:e},e))})]}):null]}),(0,t.jsxs)("details",{className:"gw-replace",open:a,children:[(0,t.jsx)("summary",{children:e("gatewaySetup.voice.updateSettings")}),o]})]});}function eI({t:e,preserveExisting:i,voiceModelNames:o,storedModels:s,fields:n}){let l=s.some(e=>{var _e$supportedVoicePers3,_e$supportedVoicePers4;return"voice"===e.kind&&(!0===e.supportsSpeechOutput&&((_e$supportedVoicePers3=(_e$supportedVoicePers4=e.supportedVoicePersonas)===null||_e$supportedVoicePers4===void 0?void 0:_e$supportedVoicePers4.length)!==null&&_e$supportedVoicePers3!==void 0?_e$supportedVoicePers3:0)===0||!0===e.supportsRealtimeVoice&&!(0,a.isCompleteRealtimeVoiceCapability)(e));});return(0,t.jsxs)("section",{className:"gw-section","aria-labelledby":"gw-voice-section-title",children:[(0,t.jsx)("div",{className:"gw-section-head",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{id:"gw-voice-section-title",children:e("gatewaySetup.voice.title")}),(0,t.jsx)("p",{children:e("gatewaySetup.voice.description")})]})}),i?(0,t.jsx)(eM,{t:e,voiceModelNames:o,needsSetup:l,fields:n}):n]});}function ej({preserveExisting:e,busy:i,success:o,figmaAccessToken:a,setFigmaAccessToken:s,figmaAccessTokenRef:n}){return(0,t.jsxs)("section",{className:"gw-section","aria-labelledby":"gw-figma-section-title",children:[(0,t.jsx)("div",{className:"gw-section-head",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{id:"gw-figma-section-title",children:"Figma Snapshot"}),(0,t.jsx)("p",{children:"Optional connector credential."})]})}),(0,t.jsxs)("label",{className:"gw-field",children:[(0,t.jsxs)("span",{children:["Figma access token ",(0,t.jsx)("span",{className:"dlg-opt",children:"optional"})]}),(0,t.jsx)("input",{className:"gw-input mono",type:"password",value:a,placeholder:e?"Stored Figma token is kept when blank":"Paste a read-only Figma PAT when needed",autoComplete:"off",disabled:i||void 0!==o,ref:n,onChange:e=>s(e.target.value)})]})]});}function eN({error:e,errorCode:i,success:o,busy:a}){return(0,t.jsxs)(t.Fragment,{children:[void 0!==e?(0,t.jsxs)("div",{className:"gw-error",role:"alert",children:[e,void 0!==i?(0,t.jsx)("div",{className:"gw-error-code mono",children:i}):null]}):null,void 0!==o?(0,t.jsx)("output",{className:"gw-success",style:m.NATIVE_BLOCK_STYLE,children:o}):null,a?(0,t.jsx)("output",{className:"gw-pending",style:m.NATIVE_BLOCK_STYLE,children:"Testing credentials…"}):null]});}function eC({onCancel:e,busy:i,success:o,canSubmit:a}){return(0,t.jsxs)("div",{className:"gw-actions",children:[void 0!==e?(0,t.jsx)("button",{className:"gw-cancel",type:"button",disabled:i||void 0!==o,onClick:e,children:"Cancel"}):null,(0,t.jsx)("button",{className:"gw-submit",type:"submit",disabled:!a,"aria-busy":i,"aria-describedby":"gw-submit-requirements",children:i?"Testing credentials…":"Test & save"})]});}e.s(["GatewaySetupDialog",0,function({onCancel:e,preserveExisting:a=!1,storedApiKeyHeaderName:n,storedModels:l=[]}){var d,r;let c=w(),{theme:u,toggle:m}=(0,p.useTheme)(),v=(0,i.useRef)(null),h=(0,i.useId)(),I=(0,i.useId)(),K=(0,i.useId)(),U=(0,i.useRef)(null),O=(0,i.useRef)(null),P=(0,i.useRef)(null),B=(0,i.useRef)(void 0),[F,q]=(0,i.useState)(""),[$,G]=(0,i.useState)(""),[W,Y]=(0,i.useState)(""),[X,J]=(0,i.useState)(""),[Q,Z]=(0,i.useState)(""),[ee,et]=(0,i.useState)(""),[eo,es]=(0,i.useState)(()=>a?l.filter(e=>"chat"===e.kind&&!0===e.workflowEligible).map(e=>e.id).join("\n"):""),[en,el]=(0,i.useState)(!1),[ed,er]=(0,i.useState)([]),[ec,eu]=(0,i.useState)(""),[ep,em]=(0,i.useState)(""),[ev,eg]=(0,i.useState)(""),[eh,ey]=(0,i.useState)(""),[ef,ew]=(0,i.useState)(""),ex=()=>{ew(eF.trim());},[eS,eM]=(0,i.useState)(""),[ek,eV]=(0,i.useState)(""),[eA,eE]=(0,i.useState)(""),[eT,eR]=(0,i.useState)(""),[eK,eU]=(0,i.useState)(""),[eO,eP]=(0,i.useState)(""),[eB,eL]=(0,i.useState)(!1),[eD,eH]=(0,i.useState)(!1),[eF,eq]=(0,i.useState)(""),[e$,ez]=(0,i.useState)(""),[eG,e_]=(0,i.useState)(""),[eW,eY]=(0,i.useState)(""),[eX,eJ]=(0,i.useState)(""),[eQ,eZ]=(0,i.useState)(""),[e0,e1]=(0,i.useState)(()=>!!a&&void 0!==k(l)),[e2,e7]=(0,i.useState)(!1),[e8,e5]=(0,i.useState)(!1),[e6,e9]=(0,i.useState)(!1),[e4,e3]=(0,i.useState)(""),[te,tt]=(0,i.useState)(""),[ti,to]=(0,i.useState)(""),[ta,ts]=(0,i.useState)(!1),[tn,tl]=(0,i.useState)("azure-foundry"),[td,tr]=(0,i.useState)(!1),[tc,tu]=(0,i.useState)(""),[tp,tm]=(0,i.useState)(""),[tv,tg]=(0,i.useState)(!1),[th,ty]=(0,i.useState)(),[tf,tw]=(0,i.useState)(),[tx,tS]=(0,i.useState)(),tb=j(l).length>0,tM=(0,i.useRef)(a?N(l):void 0),tI=(0,i.useRef)(a?C(l):void 0),tj=(0,i.useRef)(a&&tb?A:void 0),tN=e=>{e1(e),e7(!0);},tC=(e,t)=>{eZ(""),e1(V(a,l,e,t)),e7(!1);},tk=()=>{to(""),ts(!1),e5(!1),e9(!0),e3("");},tV=(e,t)=>{let i=t===A,o=tK(e);eg(o?ec:""),ey(o?ep:""),eM(o?ek:""),ew(o?eA:""),eY(""),eJ(""),tt(""),tC("",e),tk(),tM.current=i?N(l):void 0,tI.current=i?C(l):void 0;},tA=e=>{let t="function"==typeof e?e(eX):e;eJ(t),R(tM,E(t,a?N(l):void 0),()=>tC(t,eF),!1),e2||e1(V(a,l,t,eF));},tE=e=>{let t="function"==typeof e?e(te):e;tt(t),R(tI,E(t,a?C(l):void 0),tk,!1),tT(t);},tT=e=>{e6&&e8&&e.trim()!==e4&&e5(!1);},tR=e=>{let t="function"==typeof e?e(eF):e;eq(t);let i=T(t,a,tb);R(tj,i,()=>tV(t,i),!1),tK(t)&&tU();},tK=e=>""!==eA&&z(e)===z(eA),tU=()=>{""===ef&&(eg(ec),ey(ep),eM(ek),ew(eA));};async function tO(e){if(e.preventDefault(),!tv){var _v$current;tg(!0),ty(void 0),tw(void 0),tS(void 0),(_v$current=v.current)===null||_v$current===void 0?void 0:_v$current.focus();try{let e=await _({baseUrl:F,apiKey:$,apiKeyHeaderName:W,timeoutMs:X,deploymentNames:Q,imageInputModelIds:ee,imageInputModelIdsConfigured:en,importedEmbeddingModelIds:ed,workflowEligibleModelIds:eo,workflowEligibleModelIdsConfigured:eD,voiceBaseUrl:eF,voiceApiKey:e$,voiceApiKeyHeaderName:eG,voiceModelId:eW,voiceRealtimeModelId:eX,voiceRealtimeTranscriptionModelId:eQ,voiceSupportsSemanticTurnDetection:e0,voiceSemanticTurnDetectionConfigured:e2,voiceSupportsSpeechSynthesisInstructions:e8,voiceSpeechSynthesisInstructionsConfigured:e6,importedVoiceEndpointStyle:ec,importedVoiceApiVersion:ep,voiceEndpointStyle:ev,voiceRealtimeAuthMode:eS,voiceApiVersion:eh,voiceProtocolBoundBaseUrl:ef,importedVoiceRealtimeAuthMode:ek,importedVoiceEndpointBaseUrl:eA,importedEndpointStyle:eT,importedApiVersion:eK,importedEndpointBaseUrl:eO,voiceSpeechOutputModelId:te,voiceOutputVoiceId:ti,voiceOutputVoiceIdConfigured:ta,voiceProviderLocality:tn,voiceProviderLocalityConfigured:td,voiceTimeoutMs:tc,figmaAccessToken:tp,preserveExisting:a,hasStoredVoiceProvider:j(l).length>0,storedRealtimeModelId:N(l)},c);if("validation-error"===e.kind){ty(e.message),tg(!1);return;}tg(!1),tS(e.message),(0,g.notifyGatewayConfigUpdated)(),B.current=window.setTimeout(()=>window.location.reload(),0===e.skippedModelCount?800:1800);}catch(t){let e=t instanceof s.ApiError?{message:t.message,code:t.code}:t instanceof Error?{message:t.message}:{message:"The gateway could not be configured."};ty(e.message),tw(e.code),tg(!1);}}}(0,i.useEffect)(()=>{var _O$current,_U$current;let e=v.current;if(null===e)return;e.open||e.showModal();let t=document.documentElement;return L(t,"keikoModalOpenCount","data-keiko-modal-open"),L(t,"keikoGatewaySetupOpenCount","data-keiko-gateway-setup-open"),P.current=document.activeElement,a?(_O$current=O.current)===null||_O$current===void 0?void 0:_O$current.focus():(_U$current=U.current)===null||_U$current===void 0?void 0:_U$current.focus(),()=>{var _P$current,_P$current$focus;void 0!==B.current&&window.clearTimeout(B.current),D(t,"keikoModalOpenCount","data-keiko-modal-open"),D(t,"keikoGatewaySetupOpenCount","data-keiko-gateway-setup-open"),e.open&&e.close(),(_P$current=P.current)===null||_P$current===void 0||(_P$current$focus=_P$current.focus)===null||_P$current$focus===void 0?void 0:_P$current$focus.call(_P$current);};},[a]),(0,i.useEffect)(()=>{let t=v.current;if(null===t)return;let i=i=>{let o,a;if("Escape"===i.key){if(tv||void 0!==tx||void 0===e)return;i.preventDefault(),e();return;}if("Tab"!==i.key)return;let s=(o=t.querySelectorAll("button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),summary,[tabindex]:not([tabindex='-1'])"),a=[],o.forEach(e=>{let t="SUMMARY"===e.tagName?null:e.closest("details");(null===t||t.open)&&a.push(e);}),a);if(0===s.length)return;let n=s[0],l=s.at(-1);i.shiftKey&&document.activeElement===n?(i.preventDefault(),l.focus()):i.shiftKey||document.activeElement!==l||(i.preventDefault(),n.focus());};return t.addEventListener("keydown",i),()=>t.removeEventListener("keydown",i);},[tv,e,tx]),(0,i.useEffect)(()=>{var _O$current2,_U$current2;void 0===th||tv||(a&&""===F.trim()&&""===$.trim()?(_O$current2=O.current)===null||_O$current2===void 0?void 0:_O$current2.focus():(_U$current2=U.current)===null||_U$current2===void 0?void 0:_U$current2.focus());},[$,F,tv,th,a]);let tP=M(Q),tB=M(ee),tL=M(eo),tD=H({voiceBaseUrl:eF,voiceEndpointStyle:ev,voiceApiVersion:eh,voiceRealtimeAuthMode:eS,voiceApiKey:e$,voiceApiKeyHeaderName:eG,voiceModelId:eW,voiceRealtimeModelId:eX,voiceRealtimeTranscriptionModelId:eQ,voiceSpeechOutputModelId:te,voiceTimeoutMs:tc,voiceSemanticTurnDetectionConfigured:e2,voiceSpeechSynthesisInstructionsConfigured:e6,voiceOutputVoiceIdConfigured:ta,voiceProviderLocalityConfigured:td}),tH=!a,tF=""!==(d={baseUrl:F,apiKey:$,apiKeyHeaderName:W,timeoutMs:X,parsedDeploymentNames:tP,parsedImageInputModelIds:tB,parsedWorkflowEligibleModelIds:tL,workflowEligibleModelIdsConfigured:eD,voiceCredentialInput:tD}).baseUrl.trim()||""!==d.apiKey.trim()||""!==d.apiKeyHeaderName.trim()||""!==d.timeoutMs.trim()||d.parsedDeploymentNames.length>0||d.parsedImageInputModelIds.length>0||d.workflowEligibleModelIdsConfigured||d.voiceCredentialInput,tq=!(r={busy:tv||eB,success:tx,requiresGatewayCredentials:tH,baseUrl:F,apiKey:$,hasGatewayCredentialInput:tF,hasFigmaCredentialInput:""!==tp.trim()}).busy&&void 0===r.success&&(r.requiresGatewayCredentials?""!==r.baseUrl.trim()&&""!==r.apiKey.trim():r.hasGatewayCredentialInput||r.hasFigmaCredentialInput),t$={title:a?"Update Keiko credentials":"Connect Keiko to your internal LLMs",description:a?"Leave stored gateway fields blank to keep the current value. Keiko never returns existing secrets to the browser.":"Keiko needs the internal gateway URL and API token before chat and agent workflows can run. The token is tested once and stored only on this machine.",submitRequirements:a?"Enter at least one field to update. Blank stored gateway fields keep their current value.":"Base URL and API token are required. The Figma access token is optional."},tz=l.map(e=>e.id),tG=tz.slice(0,6),t_=Math.max(0,tz.length-tG.length),tW=j(l),tY=(0,t.jsx)(ei,{t:c,preserveExisting:a,busy:tv,success:tx,baseUrl:F,setBaseUrl:q,baseUrlRef:U,apiKey:$,setApiKey:G,apiKeyHeaderName:W,setApiKeyHeaderName:Y,timeoutMs:X,setTimeoutMs:J,deploymentNames:Q,setDeploymentNames:Z,imageInputModelIds:ee,setImageInputModelIds:e=>{el(!0),et(e);},workflowEligibleModelIds:eo,setWorkflowEligibleModelIds:e=>{eH(!0),es(e);}}),tX=(0,t.jsx)(eb,{t:c,busy:tv,success:tx,preserveExisting:a,storedModels:l,voiceModelId:eW,setVoiceModelId:eY,voiceRealtimeModelId:eX,setVoiceRealtimeModelId:tA,commitVoiceRealtimeModelId:()=>{R(tM,E(eX,a?N(l):void 0),()=>tC(eX,eF),!0);},voiceRealtimeTranscriptionModelId:eQ,setVoiceRealtimeTranscriptionModelId:eZ,voiceSupportsSemanticTurnDetection:e0,setVoiceSupportsSemanticTurnDetection:tN,voiceSpeechOutputModelId:te,setVoiceSpeechOutputModelId:tE,commitVoiceSpeechOutputModelId:()=>{R(tI,E(te,a?C(l):void 0),tk,!0);},voiceOutputVoiceId:ti,setVoiceOutputVoiceId:e=>{to(e),ts(!0);},voiceProviderLocalityLabelId:h,voiceEndpointStyleLabelId:I,voiceRealtimeAuthModeLabelId:K,voiceRealtimeAuthMode:eS,setVoiceRealtimeAuthMode:e=>{eM(e),ex();},voiceEndpointStyle:ev,setVoiceEndpointStyle:e=>{eg(e),"azure-openai-deployment"!==e&&ey(""),ex();},voiceApiVersion:eh,setVoiceApiVersion:e=>{ey(e),ex();},voiceProviderLocality:tn,setVoiceProviderLocality:e=>{tl(e),tr(!0);},voiceBaseUrl:eF,setVoiceBaseUrl:tR,commitVoiceBaseUrl:()=>{let e=T(eF,a,tb);R(tj,e,()=>tV(eF,e),!0);},voiceApiKey:e$,setVoiceApiKey:ez,voiceApiKeyHeaderName:eG,setVoiceApiKeyHeaderName:e_,voiceTimeoutMs:tc,setVoiceTimeoutMs:tu}),tJ=(0,t.jsx)("div",{className:"gw-setup-backdrop",children:(0,t.jsx)("dialog",{ref:v,className:"gw-setup","aria-modal":"true","aria-labelledby":"gw-setup-title","aria-describedby":"gw-setup-desc",onCancel:t=>{t.preventDefault(),tv||void 0!==tx||(e===null||e===void 0?void 0:e());},tabIndex:-1,children:(0,t.jsxs)("form",{className:"gw-form",onSubmit:e=>void tO(e),children:[(0,t.jsxs)("div",{className:"gw-head",children:[(0,t.jsxs)("div",{className:y.default["cmp-head-controls"],children:[(0,t.jsxs)("div",{className:"gw-setup-badge",children:[(0,t.jsx)(x,{size:18}),a?c("gatewaySetup.badge.update"):c("gatewaySetup.badge.setup")]}),(0,t.jsxs)("button",{type:"button",className:y.default["cmp-theme-toggle"],"aria-label":"light"===u?c("rail.darkMode"):c("rail.lightMode"),onClick:m,children:["light"===u?(0,t.jsx)(S,{size:16}):(0,t.jsx)(b,{size:16}),(0,t.jsx)("span",{children:"light"===u?c("rail.darkMode"):c("rail.lightMode")})]})]}),(0,t.jsx)("h1",{id:"gw-setup-title",children:t$.title}),(0,t.jsx)("p",{id:"gw-setup-desc",children:t$.description})]}),(0,t.jsx)(f,{disabled:tv||void 0!==tx,onApply:function(e){var _e$embeddingModelIds,_t$endpointStyle,_t$apiVersion,_t$baseUrl$trim,_t$baseUrl;var t;void 0!==e.baseUrl&&q(e.baseUrl),void 0!==e.apiKey&&G(e.apiKey),void 0!==e.apiKeyHeaderName&&Y(e.apiKeyHeaderName),void 0!==e.timeoutMs&&J(e.timeoutMs),e.deploymentNames.length>0&&Z(e.deploymentNames.join("\n")),el(void 0!==e.imageInputModelIds),void 0!==e.imageInputModelIds&&et(e.imageInputModelIds.join("\n")),eH(void 0!==e.workflowEligibleModelIds),void 0!==e.workflowEligibleModelIds&&es(e.workflowEligibleModelIds.join("\n")),er((_e$embeddingModelIds=e.embeddingModelIds)!==null&&_e$embeddingModelIds!==void 0?_e$embeddingModelIds:[]),void 0!==e.figmaAccessToken&&tm(e.figmaAccessToken),function(e,_e$voiceOutputVoiceId,_e$voiceSupportsSpeec,_e$voiceSpeechOutputM,_t$voiceEndpointStyle,_t$voiceApiVersion,_t$voiceRealtimeAuthM,_t$voiceEndpointStyle2,_t$voiceApiVersion2,_t$voiceRealtimeAuthM2){var t;let i,o;void 0!==e.voiceBaseUrl&&tR(e.voiceBaseUrl),void 0!==e.voiceApiKey&&ez(e.voiceApiKey),void 0!==e.voiceApiKeyHeaderName&&e_(e.voiceApiKeyHeaderName),void 0!==e.voiceTimeoutMs&&tu(e.voiceTimeoutMs),i=void 0!==e.voiceBaseUrl,(o=(e,t)=>{i&&t(e!==null&&e!==void 0?e:"");})(e.voiceModelId,eY),o(e.voiceRealtimeModelId,tA),o(e.voiceRealtimeTranscriptionModelId,eZ),o(e.voiceSpeechOutputModelId,tE),(void 0!==e.voiceBaseUrl||void 0!==e.voiceOutputVoiceId)&&(to((_e$voiceOutputVoiceId=e.voiceOutputVoiceId)!==null&&_e$voiceOutputVoiceId!==void 0?_e$voiceOutputVoiceId:""),ts(void 0!==e.voiceOutputVoiceId)),(void 0!==e.voiceBaseUrl||void 0!==e.voiceSupportsSpeechSynthesisInstructions)&&(e5((_e$voiceSupportsSpeec=e.voiceSupportsSpeechSynthesisInstructions)!==null&&_e$voiceSupportsSpeec!==void 0?_e$voiceSupportsSpeec:!1),e9(void 0!==e.voiceSupportsSpeechSynthesisInstructions),e3(void 0!==e.voiceSupportsSpeechSynthesisInstructions?(_e$voiceSpeechOutputM=e.voiceSpeechOutputModelId)!==null&&_e$voiceSpeechOutputM!==void 0?_e$voiceSpeechOutputM:"":"")),void 0!==e.voiceProviderLocality&&(tl(e.voiceProviderLocality),tr(!0)),void 0!==e.voiceSemanticTurnDetection&&tN(e.voiceSemanticTurnDetection),void 0!==(t=e).voiceBaseUrl&&(eg((_t$voiceEndpointStyle=t.voiceEndpointStyle)!==null&&_t$voiceEndpointStyle!==void 0?_t$voiceEndpointStyle:""),ey((_t$voiceApiVersion=t.voiceApiVersion)!==null&&_t$voiceApiVersion!==void 0?_t$voiceApiVersion:""),eM((_t$voiceRealtimeAuthM=t.voiceRealtimeAuthMode)!==null&&_t$voiceRealtimeAuthM!==void 0?_t$voiceRealtimeAuthM:""),tj.current=T(t.voiceBaseUrl,a,tb),ew(t.voiceBaseUrl.trim()),eu((_t$voiceEndpointStyle2=t.voiceEndpointStyle)!==null&&_t$voiceEndpointStyle2!==void 0?_t$voiceEndpointStyle2:""),em((_t$voiceApiVersion2=t.voiceApiVersion)!==null&&_t$voiceApiVersion2!==void 0?_t$voiceApiVersion2:""),eV((_t$voiceRealtimeAuthM2=t.voiceRealtimeAuthMode)!==null&&_t$voiceRealtimeAuthM2!==void 0?_t$voiceRealtimeAuthM2:""),eE(t.voiceBaseUrl.trim()));}(e),eR((_t$endpointStyle=(t=e).endpointStyle)!==null&&_t$endpointStyle!==void 0?_t$endpointStyle:""),eU((_t$apiVersion=t.apiVersion)!==null&&_t$apiVersion!==void 0?_t$apiVersion:""),eP((_t$baseUrl$trim=(_t$baseUrl=t.baseUrl)===null||_t$baseUrl===void 0?void 0:_t$baseUrl.trim())!==null&&_t$baseUrl$trim!==void 0?_t$baseUrl$trim:"");},onReadPendingChange:eL}),(0,t.jsx)(ea,{preserveExisting:a,storedApiKeyHeaderName:n,visibleModelNames:tG,hiddenModelCount:t_,fields:tY}),(0,t.jsx)(eI,{t:c,preserveExisting:a,voiceModelNames:tW,storedModels:l,fields:tX}),(0,t.jsx)(ej,{preserveExisting:a,busy:tv,success:tx,figmaAccessToken:tp,setFigmaAccessToken:tm,figmaAccessTokenRef:O}),(0,t.jsx)("div",{className:"gw-note",children:"Stored secrets stay local and are never returned to the browser. Supported API-key headers: Authorization, X-Litellm-Key, X-Api-Key, api-key."}),(0,t.jsx)(eN,{error:th,errorCode:tf,success:tx,busy:tv}),(0,t.jsx)("span",{id:"gw-submit-requirements",className:"visually-hidden",children:t$.submitRequirements}),(0,t.jsx)(eC,{onCancel:e,busy:tv,success:tx,canSubmit:tq})]})})});return"u"<typeof document?tJ:(0,o.createPortal)(tJ,document.body);}]);},89398,function(e){e.n(e.i(70307));}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,15169,e=>{e.v({cmpEmpty:"CodingHistory-module__UeIBHq__cmpEmpty",cmpHeader:"CodingHistory-module__UeIBHq__cmpHeader",cmpInput:"CodingHistory-module__UeIBHq__cmpInput",cmpItem:"CodingHistory-module__UeIBHq__cmpItem",cmpList:"CodingHistory-module__UeIBHq__cmpList",cmpMessage:"CodingHistory-module__UeIBHq__cmpMessage",cmpOpen:"CodingHistory-module__UeIBHq__cmpOpen",cmpPanel:"CodingHistory-module__UeIBHq__cmpPanel",cmpPrimary:"CodingHistory-module__UeIBHq__cmpPrimary",cmpRename:"CodingHistory-module__UeIBHq__cmpRename",cmpSecondary:"CodingHistory-module__UeIBHq__cmpSecondary",cmpSessionAction:"CodingHistory-module__UeIBHq__cmpSessionAction",cmpSessionActions:"CodingHistory-module__UeIBHq__cmpSessionActions",cmpSessionBar:"CodingHistory-module__UeIBHq__cmpSessionBar",cmpSessionIdentity:"CodingHistory-module__UeIBHq__cmpSessionIdentity",cmpTabs:"CodingHistory-module__UeIBHq__cmpTabs",cmpTranscript:"CodingHistory-module__UeIBHq__cmpTranscript"});},29920,e=>{"use strict";var t=e.i(43476),n=e.i(71645),i=e.i(54821),o=e.i(24541),s=e.i(29835),r=e.i(18568),c=e.i(15169);function a(e){(0,o.reportClientDiagnostic)(`[keiko] coding history request failed: ${(0,s.clientErrorSummary)(e)}`,{correlationId:(0,s.correlationIdOf)(e)});}function d({onOpen:e,onNew:o}){let s=(0,r.useCodingWorkbenchTranslate)(),m=function(){let[e,t]=(0,n.useState)([]),[o,s]=(0,n.useState)(!1),[r,c]=(0,n.useState)(!0),d=(0,n.useCallback)(async()=>{c(!0),s(!1);try{t(await(0,i.fetchCodingHistory)());}catch(e){a(e),s(!0);}finally{c(!1);}},[]);return(0,n.useEffect)(()=>{d();let e=()=>{d();};return window.addEventListener(i.CODING_HISTORY_CHANGED,e),()=>window.removeEventListener(i.CODING_HISTORY_CHANGED,e);},[d]),{tasks:e,error:o,loading:r,refresh:d};}(),[p,h]=(0,n.useState)(""),[g,y]=(0,n.useState)("active"),_=m.tasks.filter(e=>e.status===g&&`${e.title} ${e.projectPath} ${e.branch}`.toLocaleLowerCase().includes(p.trim().toLocaleLowerCase()));return(0,t.jsxs)("section",{className:c.default.cmpPanel,"aria-label":s("codingWorkbench.history.title"),children:[(0,t.jsxs)("header",{className:c.default.cmpHeader,children:[(0,t.jsx)("h2",{children:s("codingWorkbench.history.title")}),(0,t.jsx)("button",{className:c.default.cmpPrimary,type:"button",onClick:o,children:s("codingWorkbench.history.new")})]}),(0,t.jsx)("input",{className:c.default.cmpInput,type:"search",value:p,onChange:e=>h(e.target.value),"aria-label":s("codingWorkbench.history.search"),placeholder:s("codingWorkbench.history.search")}),(0,t.jsx)(l,{history:m,status:g,setStatus:y,empty:0===_.length}),(0,t.jsx)("ul",{className:c.default.cmpList,children:_.map(n=>(0,t.jsx)(u,{task:n,onOpen:e},n.id))})]});}function l({history:e,status:n,setStatus:i,empty:o}){let s=(0,r.useCodingWorkbenchTranslate)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:c.default.cmpTabs,"aria-label":s("codingWorkbench.history.filter"),children:["active","completed"].map(o=>(0,t.jsxs)("button",{type:"button","aria-pressed":n===o,onClick:()=>i(o),children:[s(`codingWorkbench.history.${o}`)," ",e.tasks.filter(e=>e.status===o).length]},o))}),e.error?(0,t.jsx)("p",{role:"alert",children:s("codingWorkbench.history.error")}):null,e.loading?(0,t.jsx)("output",{children:s("codingWorkbench.history.loading")}):null,(0,t.jsx)("button",{className:c.default.cmpSecondary,type:"button",disabled:e.loading,onClick:()=>void e.refresh(),children:s("codingWorkbench.history.refresh")}),e.error||e.loading||!o?null:(0,t.jsx)("p",{className:c.default.cmpEmpty,children:s("codingWorkbench.history.empty")})]});}function u({task:e,onOpen:n}){return(0,t.jsxs)("li",{className:c.default.cmpItem,children:[(0,t.jsxs)("button",{className:c.default.cmpOpen,type:"button",onClick:()=>n(e),children:[(0,t.jsx)("strong",{children:e.title}),(0,t.jsxs)("span",{children:[e.projectPath.split("/").at(-1)," · ",e.branch]}),(0,t.jsx)("time",{dateTime:new Date(e.updatedAt).toISOString(),children:new Date(e.updatedAt).toLocaleString()})]}),(0,t.jsx)(m,{task:e})]});}function m({task:e}){let o=(0,r.useCodingWorkbenchTranslate)(),[s,d]=(0,n.useState)(!1),[l,u]=(0,n.useState)(e.title),[p,h]=(0,n.useState)(!1),g=async()=>{try{await(0,i.updateCodingTask)(e.id,{title:l.trim()}),d(!1),h(!1);}catch(e){a(e),h(!0);}};return(0,t.jsxs)(t.Fragment,{children:[s?(0,t.jsxs)("form",{onSubmit:e=>{e.preventDefault(),g();},className:c.default.cmpRename,children:[(0,t.jsx)("input",{className:c.default.cmpInput,"aria-label":o("codingWorkbench.history.taskTitle"),value:l,maxLength:100,onChange:e=>u(e.target.value)}),(0,t.jsx)("button",{type:"submit",disabled:0===l.trim().length,children:o("codingWorkbench.history.save")}),(0,t.jsx)("button",{type:"button",onClick:()=>d(!1),children:o("codingWorkbench.history.cancel")})]}):(0,t.jsx)("button",{className:c.default.cmpSecondary,type:"button",onClick:()=>d(!0),children:o("codingWorkbench.history.rename")}),p?(0,t.jsx)("p",{role:"alert",children:o("codingWorkbench.history.error")}):null]});}e.s(["CodingHistoryPanel",0,d,"CodingHistoryWindowHost",0,function({context:e}){return(0,t.jsx)(d,{onOpen:t=>e.openWindow("coding",{repositoryPath:t.projectPath,historySelection:t.id}),onNew:()=>e.openWindow("coding",{historySelection:`new:${Date.now()}`})});}]);},41613,function(e){e.n(e.i(29920));},54821,e=>{"use strict";var t=e.i(92215),n=e.i(58773);let i="/api/coding-workbench/history",o="keiko:coding-history-changed";async function s(){return await(0,n.codingAppSessionPairingSettled)(),(await(0,t.bffFetchJson)(i,{signal:AbortSignal.timeout(15e3)})).tasks;}async function r(e,o){return await(0,n.codingAppSessionPairingSettled)(),(0,t.bffFetchJson)(`${i}/${encodeURIComponent(e)}`,{signal:AbortSignal.timeout(15e3)},void 0===o?void 0:{correlationId:o});}async function c(e,s){await(0,n.codingAppSessionPairingSettled)();let r=await(0,t.bffFetchJson)(`${i}/${encodeURIComponent(e)}`,{method:"PATCH",body:JSON.stringify(s)});return window.dispatchEvent(new Event(o)),r.task;}e.s(["CODING_HISTORY_CHANGED",0,o,"fetchCodingHistory",0,s,"fetchCodingTask",0,r,"updateCodingTask",0,c]);}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,38399,e=>{"use strict";var r=e.i(43476),a=e.i(71645);let t=(0,a.createContext)(null),i={announce:()=>void 0};e.s(["AnnouncerProvider",0,function({children:e}){let[i,n]=(0,a.useState)(""),[o,s]=(0,a.useState)(""),c=(0,a.useRef)(0),d=(0,a.useCallback)((e,r)=>{c.current+=1;let a=c.current%2==0?e:`${e}${String.fromCodePoint(8203)}`;(r===null||r===void 0?void 0:r.assertive)===!0?s(a):n(a);},[]),u=(0,a.useMemo)(()=>({announce:d}),[d]);return(0,r.jsxs)(t.Provider,{value:u,children:[e,(0,r.jsx)("div",{className:"visually-hidden",role:"status","aria-live":"polite","aria-atomic":"true","data-testid":"app-announcer-polite",children:i}),(0,r.jsx)("div",{className:"visually-hidden",role:"alert","aria-live":"assertive","aria-atomic":"true","data-testid":"app-announcer-assertive",children:o})]});},"useOptionalAnnouncer",0,function(){var _ref;return(_ref=(0,a.useContext)(t))!==null&&_ref!==void 0?_ref:i;}]);},98332,42769,66069,52812,e=>{"use strict";var r=e.i(95508);let a=new Set(["invalid-reference","repository-mismatch","auth-required","issue-unavailable","clone-failed","authority-denied","cancelled"]),t={CODING_WORKBENCH_ISSUE_INVALID_REFERENCE:"invalid-reference",CODING_WORKBENCH_ISSUE_REPOSITORY_MISMATCH:"repository-mismatch",CODING_WORKBENCH_ISSUE_AUTH_REQUIRED:"auth-required",CODING_WORKBENCH_ISSUE_UNAVAILABLE:"issue-unavailable",CODING_WORKBENCH_ISSUE_CLONE_FAILED:"clone-failed",CODING_WORKBENCH_ISSUE_AUTHORITY_DENIED:"authority-denied",CODING_WORKBENCH_ISSUE_CANCELLED:"cancelled"};function i(e){if("string"==typeof e)return a.has(e)?e:t[e];}function n(e){if("object"==typeof e&&null!==e&&"issueBindingFailure"in e)return i(e.issueBindingFailure);}e.s(["codingWorkbenchIssueFailure",0,i,"runtimeIssueFailure",0,n,"runtimeModelRefusal",0,function(e){if("object"!=typeof e||null===e||!("modelRefusalReason"in e))return;let r=e.modelRefusalReason;return"model-context-window-insufficient"===r||"model-verification-pending"===r?r:void 0;}],42769);var o=e.i(92215);let s=["provisioning","active","paused","handoff-ready","archived","merged","abandoned","recovery-required","failed","cleanup-pending"],c={provisioning:["active","recovery-required","failed","cleanup-pending"],active:["paused","handoff-ready","recovery-required","failed","cleanup-pending"],paused:["active","handoff-ready","archived","abandoned","recovery-required","cleanup-pending"],"handoff-ready":["active","merged","archived","abandoned","recovery-required","cleanup-pending"],merged:["archived","cleanup-pending"],archived:["cleanup-pending"],abandoned:["cleanup-pending"],"recovery-required":["active","paused","failed","abandoned","cleanup-pending"],failed:["recovery-required","abandoned","cleanup-pending"],"cleanup-pending":["archived","abandoned","recovery-required"]},d=["retryable","repairable","blocked","policy-denied","terminal"];function u(e){return"string"==typeof e&&d.includes(e);}let l=new Set(["reconcile-pointer","recreate-worktree","release-stale-lock","accept-moved-head"]);function p(e){return l.has(e);}async function f(e,r){return(0,o.bffFetchJson)(e,r,{enrichError:(e,r)=>{var _r$error;let a=r===null||r===void 0||(_r$error=r.error)===null||_r$error===void 0?void 0:_r$error.failureClass;Object.assign(e,{failureClass:u(a)?a:void 0,issueBindingFailure:n(r)});}});}async function k(e){return f("/api/task-workspaces",{method:"POST",body:JSON.stringify(e)});}async function y(e){return(await f("/api/task-workspaces/reconciliation",{method:"POST",body:JSON.stringify({root:e.root})})).report;}async function v(e){let r=void 0===e?"/api/task-workspaces":`/api/task-workspaces?${new URLSearchParams({root:e}).toString()}`;return(await f(r)).instances;}async function h(){return(await f("/api/task-workspaces/active")).active;}async function g(e){return f("/api/task-workspaces/active",{method:"POST",body:JSON.stringify(e)});}async function I(){await f("/api/task-workspaces/active",{method:"DELETE"});}async function w(e){return f(`/api/task-workspaces/${encodeURIComponent(e.workspaceId)}/pause`,{method:"POST",body:JSON.stringify({requestedBy:e.requestedBy})});}async function m(e){return f(`/api/task-workspaces/${encodeURIComponent(e.workspaceId)}/resume`,{method:"POST",body:JSON.stringify({requestedBy:e.requestedBy})});}async function b(e){return f(`/api/task-workspaces/${encodeURIComponent(e.workspaceId)}/handoff`,{method:"POST",body:JSON.stringify({requestedBy:e.requestedBy})});}async function S(e){return f(`/api/task-workspaces/${encodeURIComponent(e.workspaceId)}/repair`,{method:"POST",body:JSON.stringify({requestedBy:e.requestedBy,strategy:e.strategy,operatorApproved:e.operatorApproved})});}async function C(e){var _a$branch$trim,_a$branch;let a=await(0,r.fetchGitStatus)(e);if(!a.available||a.detached)return null;let t=(_a$branch$trim=(_a$branch=a.branch)===null||_a$branch===void 0?void 0:_a$branch.trim())!==null&&_a$branch$trim!==void 0?_a$branch$trim:"";return 0===t.length?null:t;}e.s(["isAutomaticWorkspaceRepairStrategy",0,p,"isWorkspaceFailureClass",0,u,"nextLegalTaskWorkspaceStates",0,function(e){return"string"==typeof e&&s.includes(e)?c[e]:[];}],66069),e.s(["clearActiveTaskWorkspace",0,I,"fetchRepositoryBaseBranch",0,C,"getActiveTaskWorkspace",0,h,"listTaskWorkspaces",0,v,"pauseTaskWorkspace",0,w,"prepareHandoffTaskWorkspace",0,b,"provisionTaskWorkspace",0,k,"reconcileTaskWorkspaces",0,y,"repairTaskWorkspace",0,S,"resumeTaskWorkspace",0,m,"setActiveTaskWorkspace",0,g],52812);var O=e.i(29835),R=e.i(24541);function E(e,r){(0,R.reportClientDiagnostic)(`[keiko] task workspace bind ${e} failed: ${(0,O.clientErrorSummary)(r)}`,{correlationId:(0,O.correlationIdOf)(r)});}function T(e,r){if("object"!=typeof r||null===r)return{ok:!1,stage:e};let a="string"==typeof r.code?r.code:void 0,t=n(r);return void 0!==t?{ok:!1,stage:e,...(void 0===a?{}:{code:a}),issueBindingFailure:t}:u(r.failureClass)?{ok:!1,stage:e,...(void 0===a?{}:{code:a}),...("BRANCH_CONFLICT"===a?{reason:"branch-conflict"}:{}),failureClass:r.failureClass}:void 0===a?{ok:!1,stage:e}:{ok:!1,stage:e,code:a};}async function B(e,r){try{var _a$strategy,_a;let a,t=(await v(e)).find(e=>e.taskId===r);if(void 0===t)return;return{workspaceId:t.workspaceId,driftMarkers:t.driftMarkers,strategy:(a=t.recoveryHints.find(e=>!e.operatorActionRequired&&p(e.strategy)),(_a$strategy=(_a=a)===null||_a===void 0?void 0:_a.strategy)!==null&&_a$strategy!==void 0?_a$strategy:null)};}catch(e){E("repair-lookup",e);return;}}async function N(e,r,a){try{var _a$status;let a=(await y({root:e})).entries.find(e=>e.workspaceId===r);if((a===null||a===void 0?void 0:a.status)!=="healthy")return(0,R.reportClientDiagnostic)(`[keiko] task workspace bind verify failed: status=${(_a$status=a===null||a===void 0?void 0:a.status)!==null&&_a$status!==void 0?_a$status:"missing-report-entry"}`),{ok:!1,stage:"verify"};}catch(e){return E("verify",e),T("verify",e);}try{return await g({workspaceId:r,requestedBy:a}),{ok:!0};}catch(e){return E("activate",e),T("activate",e);}}async function _(e={}){var _i$status;let r=await h();if(null===r)return null;if(r.instance.workspaceId===e.verifiedWorkspaceId)return r;let a=await y({root:r.instance.repositoryRoot}),t=await h();if(null===t)return null;let i=a.entries.find(e=>e.workspaceId===t.instance.workspaceId);if((i===null||i===void 0?void 0:i.status)==="healthy"||"healthy"!==t.instance.health)return t;throw(0,R.reportClientDiagnostic)(`[keiko] task workspace bind restore-verify failed: status=${(_i$status=i===null||i===void 0?void 0:i.status)!==null&&_i$status!==void 0?_i$status:"missing-report-entry"}`),new W();}class W extends Error{constructor(){super("The active task workspace failed re-verification. Re-bind it before starting a run."),this.name="TaskWorkspaceRestoreVerificationError";}}async function q(e){let r;try{r=(await k({root:e.root,taskId:e.taskId,...(void 0===e.source?{baseBranch:e.baseBranch}:{source:e.source}),requestedBy:e.requestedBy})).instance.workspaceId;}catch(t){E("provision",t);let r=T("provision",t);if("POINTER_DRIFT"!==r.code)return r;let a=await B(e.root,e.taskId);return void 0===a?r:{...r,repair:a};}try{var _e$onProvisioned;(_e$onProvisioned=e.onProvisioned)===null||_e$onProvisioned===void 0||_e$onProvisioned.call(e);}catch(e){E("provision-callback",e);}return N(e.root,r,e.requestedBy);}async function A(e){try{let r=await S({workspaceId:e.workspaceId,requestedBy:e.requestedBy,strategy:e.strategy,operatorApproved:!0});if(!r.applied)return{ok:!1,stage:"repair",repair:{workspaceId:e.workspaceId,driftMarkers:r.driftMarkers,strategy:null}};}catch(e){return E("repair",e),T("repair",e);}try{var _e$onRepaired;(_e$onRepaired=e.onRepaired)===null||_e$onRepaired===void 0||_e$onRepaired.call(e);}catch(e){E("repair-callback",e);}return N(e.root,e.workspaceId,e.requestedBy);}e.s(["TaskWorkspaceRestoreVerificationError",0,W,"bindVerifiedTaskWorkspace",0,q,"repairAndBindVerifiedTaskWorkspace",0,A,"restoreVerifiedActiveTaskWorkspace",0,_],98332);}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,67914,e=>{"use strict";var t=e.i(43476),n=e.i(71645),r=e.i(74080),i=e.i(50850);function a(e){return e.findIndex(e=>!0!==e.disabled);}function s(e,t,n){if(0===e.length)return-1;for(let r of e.keys()){var _e$i;let i=(t+(r+1)*n+e.length)%e.length;if(((_e$i=e[i])===null||_e$i===void 0?void 0:_e$i.disabled)!==!0)return i;}return-1;}function l({active:e,index:i,onCommit:a,onOptionKeyDown:s,option:o,selected:d,setOptionRef:u}){let c=(0,n.useRef)(null),m=(0,n.useRef)(null),f=(0,n.useRef)(null),[p,g]=(0,n.useState)(null),h=()=>{null!==f.current&&(clearTimeout(f.current),f.current=null),g(null);},v=()=>{null!==f.current&&clearTimeout(f.current),f.current=setTimeout(()=>{let e=m.current,t=c.current;if(null===e||null===t||e.scrollWidth<=e.clientWidth)return;let n=t.getBoundingClientRect(),r=Math.min(520,window.innerWidth-32),i=n.right+8+r<=window.innerWidth-16?"top-left":"top-right";g({left:"top-left"===i?n.right+8:n.left-8,placement:i,top:n.top-6});},1500);};return(0,n.useEffect)(()=>h,[]),(0,t.jsxs)("button",{ref:e=>{c.current=e,u(i,e);},"aria-selected":d,className:`ksel-option${e?" ksel-option-active":""}`,"data-disabled":!0===o.disabled?"true":void 0,disabled:o.disabled,onBlur:h,onClick:()=>a(o),onFocus:v,onKeyDown:e=>s(e,i),onPointerEnter:v,onPointerLeave:h,role:"option",type:"button",children:[(0,t.jsxs)("span",{className:"ksel-option-copy",children:[(0,t.jsx)("span",{className:"ksel-option-label",ref:m,children:o.label}),void 0!==o.description?(0,t.jsx)("span",{className:"ksel-option-desc",children:o.description}):null]}),void 0!==o.badge?(0,t.jsx)("span",{className:"ksel-option-badge",children:o.badge}):null,null!==p?(0,r.createPortal)((0,t.jsx)("div",{className:"ksel-overflow-tooltip","data-placement":p.placement,role:"tooltip",style:{left:`${p.left.toString()}px`,top:`${p.top.toString()}px`},children:o.label}),document.body):null]});}function o({activeIndex:e,flatOptions:n,menuId:r,onCommit:i,onOptionKeyDown:a,section:s,sectionIndex:d,selectedIndex:u,setOptionRef:c}){let m=void 0!==s.label?`${r}-section-${d.toString()}`:void 0;return(0,t.jsxs)("div",{className:"ksel-section",role:void 0!==s.label?"group":"presentation","aria-labelledby":m,children:[void 0!==s.label?(0,t.jsx)("div",{className:"ksel-section-label",id:m,children:s.label}):null,s.options.map(r=>{var _s$label;let o=n.findIndex(e=>e.value===r.value&&e.sectionLabel===s.label),d=n[o];return void 0===d?null:(0,t.jsx)(l,{active:o===e,index:o,onCommit:i,onOptionKeyDown:a,option:d,selected:o===u,setOptionRef:c},`${(_s$label=s.label)!==null&&_s$label!==void 0?_s$label:"section"}-${r.value}`);})]});}function d({activeIndex:e,ariaLabel:n,flatOptions:i,menuClassName:a,menuCountLabel:s,menuId:l,menuLabel:u,menuRef:c,menuTitle:m,onCommit:f,onOptionKeyDown:p,placeholder:g,position:h,selectedIndex:v,sections:b,setOptionRef:y,showMenuHeader:x}){var _ref;return(0,r.createPortal)((0,t.jsxs)("div",{ref:c,className:["ksel-menu",h.attached?"ksel-menu-attached":"",h.openUp?"ksel-menu-open-up":"ksel-menu-open-down",a!==null&&a!==void 0?a:""].filter(e=>e.length>0).join(" "),style:{left:`${h.left.toString()}px`,top:`${h.top.toString()}px`,width:`${h.width.toString()}px`,"--ksel-option-height":`${h.optionHeight.toString()}px`,fontFamily:h.fontFamily,fontSize:h.fontSize,fontWeight:h.fontWeight,letterSpacing:h.letterSpacing,lineHeight:h.lineHeight},children:[x?(0,t.jsxs)("div",{className:"ksel-menu-head",children:[(0,t.jsx)("div",{className:"ksel-menu-title",children:(_ref=m!==null&&m!==void 0?m:n)!==null&&_ref!==void 0?_ref:g}),(0,t.jsx)("div",{className:"ksel-menu-note",children:s!==null&&s!==void 0?s:`${i.length.toString()} options`})]}):null,(0,t.jsx)("div",{className:"ksel-menu-scroll",role:"listbox",id:l,"aria-label":u,style:{maxHeight:`${h.maxHeight.toString()}px`},children:b.map((n,r)=>{var _n$label;return(0,t.jsx)(o,{activeIndex:e,flatOptions:i,menuId:l,onCommit:f,onOptionKeyDown:p,section:n,sectionIndex:r,selectedIndex:v,setOptionRef:y},`${(_n$label=n.label)!==null&&_n$label!==void 0?_n$label:"section"}-${r.toString()}`);})})]}),document.body);}e.s(["default",0,function({value:e,sections:r,onValueChange:l,onOpen:o,disabled:u=!1,placeholder:c,ariaLabel:m,ariaDescribedBy:f,ariaLabelledBy:p,triggerClassName:g,menuClassName:h,menuTitle:v,menuCountLabel:b,showMenuHeader:y=!0,leadingVisual:x,mono:S=!1,showChevron:w=!0,menuMinWidth:k,attached:E=!0,triggerStyle:j,autoFocus:N=!1}){var _H$label,_H$description,_ref2,_T$triggerClassName,_T$position;var T;let C=(0,i.useTranslate)(),I=(0,n.useRef)(null),L=(0,n.useRef)(null),W=(0,n.useRef)([]),R=(0,n.useId)(),[A,$]=(0,n.useState)(!1),[M,B]=(0,n.useState)(-1),[D,O]=(0,n.useState)(null),[_,P]=(0,n.useState)(!1),K=(0,n.useMemo)(()=>r.flatMap((e,t)=>e.options.map((n,r)=>{var _e$label;return{...n,key:`${(_e$label=e.label)!==null&&_e$label!==void 0?_e$label:"section"}-${t.toString()}-${n.value}-${r.toString()}`,sectionLabel:e.label};})),[r]),U=K.findIndex(t=>t.value===e),H=-1===U?null:K[U],z=c!==null&&c!==void 0?c:C("select.placeholder"),F=(_H$label=H===null||H===void 0?void 0:H.label)!==null&&_H$label!==void 0?_H$label:z,V=(_H$description=H===null||H===void 0?void 0:H.description)!==null&&_H$description!==void 0?_H$description:null,q=(_ref2=v!==null&&v!==void 0?v:m)!==null&&_ref2!==void 0?_ref2:z,Y=()=>{$(!1),B(-1);},G=e=>{var _K$e,_K$U;if(u||0===K.length)return;let t=void 0!==e&&((_K$e=K[e])===null||_K$e===void 0?void 0:_K$e.disabled)!==!0?e:U>=0&&((_K$U=K[U])===null||_K$U===void 0?void 0:_K$U.disabled)!==!0?U:a(K);$(!0),B(t),o===null||o===void 0?void 0:o();};function J(e){var _I$current;e.disabled||(l(e.value),Y(),(_I$current=I.current)===null||_I$current===void 0?void 0:_I$current.focus());}(0,n.useEffect)(()=>{if(!A)return;let e=e=>{let t=e.target;null!==I.current&&t instanceof Node&&I.current.contains(t)||null!==L.current&&t instanceof Node&&L.current.contains(t)||Y();},t=()=>Y();return window.addEventListener("pointerdown",e,!0),window.addEventListener("blur",t),()=>{window.removeEventListener("pointerdown",e,!0),window.removeEventListener("blur",t);};},[A]),(0,n.useLayoutEffect)(()=>{if(!A||null===I.current)return;let e=()=>{var _I$current2;let e=(_I$current2=I.current)===null||_I$current2===void 0?void 0:_I$current2.getBoundingClientRect();if(void 0===e)return;let t=Math.min(void 0!==k&&e.width<Math.min(k,96)?k:e.width,window.innerWidth-32),n=E&&1>Math.abs(t-e.width),r=n?-1:6,i=window.innerHeight-e.bottom-16,a=e.top-16,s=i<Math.max(96,2*e.height)&&a>i;P(s);let l=s?a:i,o=50*!!y+2,d=Math.max(e.height,Math.min(Math.max(e.height,l-o),380)),u=d+o,c=window.getComputedStyle(I.current);O({left:Math.min(Math.max(16,e.left),window.innerWidth-t-16),width:t,top:s?Math.max(16,e.top-u-r):Math.min(e.bottom+r,window.innerHeight-16-u),optionHeight:Math.max(28,Math.min(e.height,30)),maxHeight:d,openUp:s,attached:n,fontFamily:c.fontFamily,fontSize:c.fontSize,fontWeight:c.fontWeight,letterSpacing:c.letterSpacing,lineHeight:c.lineHeight});};return e(),window.addEventListener("resize",e),window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("resize",e),window.removeEventListener("scroll",e,!0);};},[A,E,k,y]),(0,n.useLayoutEffect)(()=>{if(!A||null===D||!D.openUp||null===I.current||null===L.current)return;let e=I.current.getBoundingClientRect(),t=L.current.getBoundingClientRect();if(t.height<=0)return;let n=D.attached?-1:6,r=Math.max(16,e.top-t.height-n);.5>Math.abs(r-D.top)||O(e=>null===e?e:{...e,top:r});},[A,D]),(0,n.useEffect)(()=>{var _W$current$M,_W$current$M2;A&&!(M<0)&&((_W$current$M=W.current[M])!==null&&_W$current$M!==void 0&&_W$current$M.focus(),(_W$current$M2=W.current[M])===null||_W$current$M2===void 0?void 0:_W$current$M2.scrollIntoView({block:"nearest"}));},[A,M]),(0,n.useEffect)(()=>{if(!A)return;let e=e=>{if("Escape"===e.key){var _I$current3;Y(),(_I$current3=I.current)===null||_I$current3===void 0?void 0:_I$current3.focus();return;}if(1===e.key.length&&!e.metaKey&&!e.ctrlKey&&!e.altKey){var t;if((t=e.target)instanceof HTMLElement&&("INPUT"===t.tagName||"TEXTAREA"===t.tagName||"SELECT"===t.tagName||t.isContentEditable))return;let n=function(e,t,n){for(let r=1;r<=e.length;r+=1){let i=(t+r)%e.length,a=e[i];if(void 0!==a&&!0!==a.disabled&&a.label.toLowerCase().startsWith(n))return i;}return-1;}(K,M>=0?M:Math.max(U,0),e.key.toLowerCase());-1!==n&&B(n);}};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e);},[A,M,K,U]);let X=["ksel-trigger",(T={disabled:u,mono:S,open:A,openUp:_,position:D,triggerClassName:g}).mono?"mono":"",(_T$triggerClassName=T.triggerClassName)!==null&&_T$triggerClassName!==void 0?_T$triggerClassName:"",T.open?"ksel-trigger-open":"",T.open&&((_T$position=T.position)===null||_T$position===void 0?void 0:_T$position.attached)===!0?T.openUp?"ksel-trigger-open-up":"ksel-trigger-open-down":"",T.disabled?"ksel-trigger-disabled":""].filter(e=>e.length>0).join(" "),Q=A&&null!==D?(0,t.jsx)(d,{activeIndex:M,ariaLabel:m,flatOptions:K,menuClassName:h,menuCountLabel:b,menuId:R,menuLabel:q,menuRef:L,menuTitle:v,onCommit:J,onOptionKeyDown:function(e,t){if("Escape"===e.key||"Tab"===e.key){var _I$current4;e.preventDefault(),Y(),(_I$current4=I.current)===null||_I$current4===void 0?void 0:_I$current4.focus();return;}if("ArrowDown"===e.key){e.preventDefault(),B(s(K,t,1));return;}if("ArrowUp"===e.key){e.preventDefault(),B(s(K,t,-1));return;}if("Home"===e.key){e.preventDefault(),B(a(K));return;}if("End"===e.key){e.preventDefault(),B(s(K,0,-1));return;}if("Enter"===e.key||" "===e.key){e.preventDefault();let n=K[t];void 0!==n&&J(n);}},placeholder:c,position:D,selectedIndex:U,sections:r,setOptionRef:(e,t)=>{W.current[e]=t;},showMenuHeader:y}):null;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{ref:I,"aria-controls":R,"aria-describedby":f,"aria-expanded":A,"aria-haspopup":"listbox","aria-label":m,"aria-labelledby":p,autoFocus:N,className:X,disabled:u,onClick:()=>{A?Y():G();},onKeyDown:function(e){if(!u){if("ArrowDown"===e.key||"ArrowUp"===e.key){e.preventDefault(),G(U>=0?U:a(K));return;}("Enter"===e.key||" "===e.key)&&(e.preventDefault(),A?Y():G());}},role:"combobox",style:j,type:"button",children:[void 0!==x?(0,t.jsx)("span",{className:"ksel-trigger-leading",children:x}):null,(0,t.jsxs)("span",{className:"ksel-trigger-copy",children:[(0,t.jsx)("span",{className:"ksel-trigger-label",children:F}),null!==V?(0,t.jsx)("span",{className:"ksel-trigger-desc",children:V}):null]}),w?(0,t.jsx)("span",{"aria-hidden":"true",className:`ksel-trigger-caret${A?" ksel-trigger-caret-open":""}`,children:(0,t.jsx)("svg",{fill:"none",height:"12",viewBox:"0 0 12 12",width:"12",children:(0,t.jsx)("path",{d:"M2.25 4.5 6 8.25 9.75 4.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})})}):null]}),Q]});}]);},28804,e=>{"use strict";var t=e.i(71645);function n(e){if(e.hidden)return!1;let t=window.getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility&&"collapse"!==t.visibility;}e.s(["useDialogTabTrap",0,function(e){(0,t.useEffect)(()=>{let t=t=>{if("Tab"!==t.key)return;let r=e.current;if(null===r)return;let i=Array.from(r.querySelectorAll('button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])')).filter(n),a=document.activeElement;if(0===i.length||!r.contains(a)){var _ref3;t.preventDefault(),((_ref3=t.shiftKey?i.at(-1):i[0])!==null&&_ref3!==void 0?_ref3:r).focus();return;}let s=i[0],l=i.at(-1);if(void 0===s||void 0===l)return;let o=a===r;t.shiftKey&&(a===s||o)?(t.preventDefault(),l.focus()):t.shiftKey||a!==l||(t.preventDefault(),s.focus());};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t);};},[e]);}]);},60865,e=>{"use strict";e.s(["NATIVE_BLOCK_STYLE",0,{display:"block"},"NATIVE_DIALOG_STYLE",0,{margin:0,position:"static"},"NATIVE_FIELDSET_RESET_STYLE",0,{margin:0,minWidth:0,padding:0,border:0},"NATIVE_FIELDSET_STYLE",0,{margin:0,minWidth:0},"NATIVE_HEADING_STYLE",0,{margin:0,fontWeight:"inherit"},"NATIVE_LIST_KEEP_PADDING_STYLE",0,{listStyle:"none",margin:0},"NATIVE_LIST_STYLE",0,{listStyle:"none",margin:0,padding:0}]);},23551,e=>{"use strict";var t=e.i(43476),n=e.i(71645),r=e.i(18829),i=e.i(85912),a=e.i(51997),s=e.i(75297),l=e.i(67914),o=e.i(60865),d=e.i(72859),u=e.i(42293),c=e.i(42050),m=e.i(24096);let f=["command:run-started","command:run-completed","command:run-failed","command:run-cancelled"];function p(e,t){return e instanceof r.ApiError?{code:e.code,message:e.message}:e instanceof Error?{code:"INTERNAL",message:e.message}:{code:"INTERNAL",message:t("commandsWidget.error.unexpected")};}function g(e,t){return null!==t&&"string"==typeof e.payload.requestId&&e.payload.requestId===t;}function h({result:e,t:n}){let r;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"sr-only",role:"status","aria-live":"polite",children:null!==e?(r=[n("commandsWidget.result.exit",{code:String(e.exitCode)}),n("commandsWidget.result.duration",{duration:e.durationMs})],e.truncated&&r.push(n("commandsWidget.result.outputTruncated")),e.timedOut&&r.push(n("commandsWidget.result.timedOut")),r.push(e.failureReason,n("commandsWidget.result.run",{id:e.runId}),n("commandsWidget.result.task",{id:e.taskId})),n("commandsWidget.result.finished",{details:r.join(", ")})):""}),null!==e?(0,t.jsxs)("div",{className:"tm-result",children:[(0,t.jsxs)("div",{className:"tm-badges",children:[(0,t.jsx)("span",{className:0===e.exitCode?"tm-badge tm-badge-ok":"tm-badge tm-badge-fail",children:n("commandsWidget.result.exit",{code:String(e.exitCode)})}),(0,t.jsxs)("span",{className:"tm-badge",children:[e.durationMs," ms"]}),(0,t.jsx)("span",{className:"tm-badge",children:e.failureReason}),(0,t.jsx)("span",{className:"tm-badge",children:n("commandsWidget.result.run",{id:e.runId})}),(0,t.jsx)("span",{className:"tm-badge",children:n("commandsWidget.result.task",{id:e.taskId})}),e.truncated?(0,t.jsx)("span",{className:"tm-badge tm-badge-warn",children:n("commandsWidget.result.truncated")}):null,e.timedOut?(0,t.jsx)("span",{className:"tm-badge tm-badge-warn",children:n("commandsWidget.result.timedOut")}):null]}),e.stdout.length>0?(0,t.jsx)("section",{className:"tm-stdout","aria-label":n("commandsWidget.result.stdoutAriaLabel"),tabIndex:0,children:(0,t.jsx)("pre",{className:"tm-output-content",children:e.stdout})}):null,e.stderr.length>0?(0,t.jsx)("section",{className:"tm-stderr","aria-label":n("commandsWidget.result.stderrAriaLabel"),tabIndex:0,children:(0,t.jsx)("pre",{className:"tm-output-content",children:e.stderr})}):null]}):null]});}e.s(["CommandsWidget",0,function(e){var _e$projectPath,_A$status,_A$status2;let r=(0,i.useOptionalWidgetTranslate)(),[v,b]=(0,n.useState)((_e$projectPath=e.projectPath)!==null&&_e$projectPath!==void 0?_e$projectPath:"");(0,n.useEffect)(()=>{var _e$projectPath2;b((_e$projectPath2=e.projectPath)!==null&&_e$projectPath2!==void 0?_e$projectPath2:"");},[e.projectPath]);let[y,x]=(0,n.useState)([]),[S,w]=(0,n.useState)(""),[k,E]=(0,n.useState)(!1),[j,N]=(0,n.useState)(null),[T,C]=(0,n.useState)(null),[I,L]=(0,n.useState)(null),[W,R]=(0,n.useState)([]),A=(0,c.useWorkspaceTrust)(v.length>0?v:void 0),$=(0,n.useRef)(!1),M=(0,n.useRef)(null),B=(0,n.useRef)(null),D=(0,n.useRef)(!1),O=y.find(e=>e.id===S),_=(O===null||O===void 0?void 0:O.trustState)==="trusted",P=(O===null||O===void 0?void 0:O.trustState)==="approval-required",K=k||!_;(0,n.useEffect)(()=>{if(0===v.length)return void x([]);let e=!1;return(0,a.fetchCommandCatalog)(v).then(t=>{e||(x(t.tasks),w(e=>{var _t$tasks$0$id,_t$tasks$;return e.length>0?e:(_t$tasks$0$id=(_t$tasks$=t.tasks[0])===null||_t$tasks$===void 0?void 0:_t$tasks$.id)!==null&&_t$tasks$0$id!==void 0?_t$tasks$0$id:"";}));}).catch(t=>{e||(x([]),L(p(t,r)));}),()=>{e=!0;};},[v,r,(_A$status=A.status)===null||_A$status===void 0?void 0:_A$status.revision,(_A$status2=A.status)===null||_A$status2===void 0?void 0:_A$status2.trust]),(0,n.useEffect)(()=>{if(k)return(0,d.subscribeSharedEventSource)((0,a.commandEventsUrl)(),f,e=>{let t;try{t=JSON.parse(e.data);}catch{return;}"run-started"===t.kind&&$.current&&g(t,M.current)&&N(e=>e!==null&&e!==void 0?e:t.runId),"run-started"!==t.kind&&g(t,M.current)&&N(e=>e===t.runId?null:e),g(t,M.current)&&R(e=>[t,...e].slice(0,30));});},[k]),(0,n.useEffect)(()=>{var _B$current;D.current&&!k&&document.activeElement===document.body&&(_B$current=B.current)!==null&&_B$current!==void 0&&_B$current.focus(),D.current=k;},[k]);let U=(0,n.useCallback)(async e=>{if(e.preventDefault(),k||$.current||!_)return;L(null),C(null),N(null);let t=(0,s.secureRandomId)("command");M.current=t,$.current=!0,E(!0);try{let e=await(0,a.createCommandRun)({projectId:v,taskId:S,requestId:t});C(e);}catch(e){L(p(e,r));}finally{$.current=!1,E(!1),M.current=null,N(null);}},[v,_,k,S,r]),H=(0,n.useCallback)(async()=>{if(null!==j)try{await(0,a.cancelCommandRun)(j);}catch(e){L(p(e,r));}},[j,r]);return(0,t.jsxs)("div",{className:`terminal commands ${u.default.lazyWidgetScope}`,children:[v.length>0?(0,t.jsx)(m.WorkspaceTrustBanner,{status:A.status,issue:A.issue,failure:A.failure,surface:"commands",onManage:e.onOpenWorkspaceTrust}):null,(0,t.jsxs)("form",{className:"tm-form",onSubmit:e=>void U(e),children:[(0,t.jsxs)("label",{className:"tm-field",children:[(0,t.jsx)("span",{children:r("commandsWidget.field.projectPath")}),(0,t.jsx)("input",{type:"text",value:v,onChange:e=>b(e.target.value),placeholder:r("commandsWidget.field.projectPathPlaceholder"),required:!0})]}),(0,t.jsxs)("div",{className:"tm-field",children:[(0,t.jsx)("span",{children:r("commandsWidget.field.task")}),(0,t.jsx)(l.default,{value:S,ariaLabel:r("commandsWidget.field.task"),disabled:0===y.length,menuTitle:r("commandsWidget.field.discoveredTasks"),mono:!0,sections:[{options:y.map(e=>{let t;return{value:e.id,label:(t="trusted"===e.trustState?"":r("commandsWidget.task.approvalRequiredSuffix"),`${e.kind} \xb7 ${e.label}${t}`)};})}],onValueChange:w})]}),(0,t.jsxs)("div",{className:"tm-actions",children:[(0,t.jsx)("button",{type:"submit",className:"tm-action","data-primary":"true",ref:B,disabled:!_,"aria-disabled":K,children:k?r("commandsWidget.action.running"):r("commandsWidget.action.run")}),k?(0,t.jsx)("button",{type:"button",className:"tm-action",disabled:null===j,"aria-disabled":null===j,onClick:()=>void H(),children:r("commandsWidget.action.cancel")}):null]}),0===y.length&&v.length>0&&null===I?(0,t.jsx)("output",{className:"tm-limits",style:o.NATIVE_BLOCK_STYLE,children:r("commandsWidget.empty.noRunnableTasks")}):null,P?(0,t.jsx)("output",{className:"tm-limits",style:o.NATIVE_BLOCK_STYLE,children:r("commandsWidget.trust.required")}):null]}),null!==I?(0,t.jsxs)("div",{className:"tm-error",role:"alert",children:[(0,t.jsxs)("span",{className:"tm-error-text",children:[I.message," ",(0,t.jsxs)("span",{className:"err-code mono",children:["(",I.code,")"]})]}),(0,t.jsx)("button",{type:"button",className:"tm-error-dismiss","aria-label":r("commandsWidget.error.dismiss"),onClick:()=>L(null),children:"✕"})]}):null,(0,t.jsx)(h,{result:T,t:r}),(0,t.jsx)("div",{role:"log","aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false","aria-label":r("commandsWidget.log.ariaLabel"),children:(0,t.jsx)("ul",{className:"tm-events",children:W.map((e,n)=>{var i;let a;return(0,t.jsxs)("li",{className:"tm-event",children:[(0,t.jsx)("span",{className:"tm-event-kind",children:function(e,t){switch(e){case"run-started":return t("commandsWidget.event.started");case"run-completed":return t("commandsWidget.event.completed");case"run-failed":return t("commandsWidget.event.failed");case"run-cancelled":return t("commandsWidget.event.cancelled");}}(e.kind,r)}),(0,t.jsx)("span",{className:"tm-event-detail",children:(a=(i=e).payload,"run-completed"===i.kind||"run-failed"===i.kind?["string"==typeof a.failureReason?a.failureReason:"","number"==typeof a.durationMs?`${String(a.durationMs)}ms`:""].filter(Boolean).join(" · "):"")})]},`${e.runId}-${String(n)}-${e.kind}`);})})})]});}]);},34484,function(e){e.n(e.i(23551));},42293,e=>{e.v({lazyWidgetScope:"TerminalWidget-module__P2UrDq__lazyWidgetScope"});},72859,e=>{"use strict";let t;var n=e.i(17463),r=e.i(25202),i=e.i(75297),a=e.i(24541),s=e.i(20081),l=e.i(58773);let o=new Map(),d=new WeakMap(),u=!1,c=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 f(){return"u">typeof document&&"hidden"===document.visibilityState;}function p(e){void 0!==e.reconnectTimer&&(window.clearTimeout(e.reconnectTimer),e.reconnectTimer=void 0);}function g(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);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 h(e){if(null!==e.source){for(let[t,n]of e.dispatchersByType)m(e.source,t,n);e.source.close(),e.source=null;}}function v(e){e.sessionRepairAttempted=!1,e.failureStreakCorrelationId=void 0,e.acknowledgedRepairCorrelationId=void 0;}function b(e){p(e),h(e),v(e);}function y(e){if(0===e.refCount||null!==e.source||0===e.essentialRefCount&&(0,r.backgroundBrowserStreamsSuspended)()||f()||"u"<typeof EventSource)return;let t=(0,n.createSameOriginApiEventSource)(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=c+=1,e.source=t,t.onopen=()=>{let t,n;t=e.failureStreakCorrelationId,n=e.acknowledgedRepairCorrelationId,void 0!==t&&void 0!==n&&(0,l.reportStreamSessionRecovered)("shared-event-source",t,n),e.reconnectAttempts=0,v(e);},t.onerror=()=>{var _e$failureStreakCorre;let n=(_e$failureStreakCorre=e.failureStreakCorrelationId)!==null&&_e$failureStreakCorre!==void 0?_e$failureStreakCorre:e.failureStreakCorrelationId=(0,s.newClientCorrelationId)();if((0,a.reportClientDiagnostic)((0,a.sseStreamErrorDiagnostic)("shared-event-source",t.readyState),{correlationId:n}),h(e),e.sessionRepairAttempted||(e.sessionRepairAttempted=!0,(0,l.repairLocalCodingAppSessionForStream)("shared-event-source",n).then(t=>{e.failureStreakCorrelationId===n&&(t.acknowledged?e.acknowledgedRepairCorrelationId=t.repairCorrelationId:e.sessionRepairAttempted=!1);})),!(0===e.refCount||void 0!==e.reconnectTimer||f())&&"u">typeof EventSource){let t;e.reconnectTimer=window.setTimeout(()=>{e.reconnectTimer=void 0,y(e);},(t=Math.min(3e4,1e3*2**e.reconnectAttempts),e.reconnectAttempts+=1,t+(0,i.secureRandomInt)(500)));}},e.subscribersByType.keys()))t.addEventListener(n,g(e,n));}function x(e){for(let t of o.values())t.essentialRefCount>0?y(t):e?b(t):y(t);}function S(){if(f()){for(let e of o.values())b(e);return;}for(let e of o.values())y(e);}e.s(["sharedEventSourceGeneration",0,function(e){var _d$get;return(_d$get=d.get(e))!==null&&_d$get!==void 0?_d$get:0;},"subscribeSharedEventSource",0,function(e,n,i,a={}){let s=function(e){let n=o.get(e);if(void 0!==n)return n;let i={url:e,source:null,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 o.set(e,i),!u&&"u">typeof document&&(document.addEventListener("visibilitychange",S),u=!0,t=(0,r.subscribeBrowserStreamCapacity)(x)),i;}(e),l="background"!==a.priority;for(let e of(s.refCount+=1,l&&(s.essentialRefCount+=1),n)){var _s$subscribersByType$;let t=(_s$subscribersByType$=s.subscribersByType.get(e))!==null&&_s$subscribersByType$!==void 0?_s$subscribersByType$:new Set();t.add(i),s.subscribersByType.set(e,t),g(s,e);}y(s);let d=!1;return()=>{if(!d){var _t;for(let e of(d=!0,n)){let t=s.subscribersByType.get(e);if(t!==null&&t!==void 0&&t.delete(i),(t===null||t===void 0?void 0:t.size)===0){s.subscribersByType.delete(e);let t=s.dispatchersByType.get(e);void 0!==t&&null!==s.source&&m(s.source,e,t);}}s.refCount-=1,l&&(s.essentialRefCount-=1),s.refCount>0&&0===s.essentialRefCount&&(0,r.backgroundBrowserStreamsSuspended)()&&b(s),!(s.refCount>0)&&(p(s),h(s),o.delete(e),u&&!(o.size>0)&&"u">typeof document&&(document.removeEventListener("visibilitychange",S),u=!1,(_t=t)!==null&&_t!==void 0&&_t(),t=void 0));}};}]);},25202,e=>{"use strict";let t=new Set(),n=0;function r(){return n>0;}function i(){let e=r();for(let n of t)n(e);}e.s(["backgroundBrowserStreamsSuspended",0,r,"reserveInteractiveBrowserStreamCapacity",0,function(){1===(n+=1)&&i();let e=!1;return()=>{e||(e=!0,0===(n=Math.max(0,n-1))&&i());};},"subscribeBrowserStreamCapacity",0,function(e){return t.add(e),()=>{t.delete(e);};}]);},51997,e=>{"use strict";var t=e.i(92215);async function n(e,n){return(0,t.bffFetchJson)(e,n);}async function r(e){let t=new URLSearchParams();return t.set("projectId",e),n(`/api/commands/catalog?${t.toString()}`);}async function i(e){return n("/api/commands/runs",{method:"POST",body:JSON.stringify(e)});}async function a(e){await n(`/api/commands/runs/${encodeURIComponent(e)}`,{method:"DELETE"});}e.s(["cancelCommandRun",0,a,"commandEventsUrl",0,function(){return"/api/commands/events";},"createCommandRun",0,i,"fetchCommandCatalog",0,r]);},17463,e=>{"use strict";e.s(["createSameOriginApiEventSource",0,function(e){if("u"<typeof EventSource)return null;let t=function(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);return null===t?null:new EventSource(t);}]);}]);
|