@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,59055,e=>{e.v({activityList:"GroundedAnswer-module__M-rq8W__activityList",activityListItem:"GroundedAnswer-module__M-rq8W__activityListItem",activityMeta:"GroundedAnswer-module__M-rq8W__activityMeta",citationListItem:"GroundedAnswer-module__M-rq8W__citationListItem",manualCitationAction:"GroundedAnswer-module__M-rq8W__manualCitationAction",manualCitationRange:"GroundedAnswer-module__M-rq8W__manualCitationRange",scope:"GroundedAnswer-module__M-rq8W__scope"});},54523,e=>{"use strict";var t=e.i(43476),n=e.i(71645),i=e.i(83449),r=e.i(64344),a=e.i(59055);function o(e){return Number.isFinite(e)?String(e):"—";}function l(e,t){return Number.isFinite(e)?t(e):"—";}function s(e){return e.toLocaleString("en-US");}function d(e){return e.replaceAll("-"," ");}function c(e,t,n=`${t}s`){return 1===e?t:n;}function u(e){return`${e.id} (${s(e.count)})`;}function p({label:e,value:n}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("dt",{className:"grounded-context-pack-dt",children:e}),(0,t.jsx)("dd",{className:"grounded-context-pack-dd",children:n})]});}function m(e,t){return t[1]!==e[1]?t[1]-e[1]:e[0]<t[0]?-1:1;}function g({summary:e}){let n=Object.entries(e.bucketCounts).filter(([,e])=>e>0).sort(m);return 0===n.length?null:(0,t.jsxs)("details",{className:"grounded-ranking-rationale",children:[(0,t.jsx)("summary",{"aria-label":"Why these files were selected",children:"Why these files?"}),(0,t.jsx)("dl",{className:"grounded-context-pack-dl",children:n.map(([e,n])=>(0,t.jsx)(p,{label:d(e),value:s(n)},`bucket-${e}`))}),e.ecosystems.length>0?(0,t.jsx)("p",{className:"grounded-ranking-ecosystems",children:`Ecosystems: ${e.ecosystems.map(u).join(", ")}`}):null]});}function h({contextPack:e}){let{usage:n,budget:r}=e,a=function(e){if("workspace-root"===e.scopeKind)return"workspace root";let t=e.scopeId.slice(-8);return`${d(e.scopeKind)} (${t})`;}(e),c=function(e,t){let n;if("files"!==e.scopeKind)n=`Scope: ${t}`;else{let i=1===e.fileCount?"":"s";n=`Scope: ${String(e.fileCount)} file${i} in ${t}`;}return n;}(e,a);return(0,t.jsxs)("section",{className:"grounded-context-pack","aria-label":"Context inspection summary",children:[(0,t.jsx)("div",{className:"grounded-context-pack-headline",children:c}),(0,t.jsxs)("dl",{className:"grounded-context-pack-dl",children:[(0,t.jsx)(p,{label:"Searched",value:`${String(n.searchCalls)} / ${o(r.searchCallsMax)} searches`}),(0,t.jsx)(p,{label:"Read",value:`${String(n.filesRead)} / ${o(r.filesReadMax)} files`}),(0,t.jsx)(p,{label:"Bytes",value:`${(0,i.formatBytes)(n.excerptBytes)} / ${l(r.excerptBytesMax,i.formatBytes)}`}),(0,t.jsx)(p,{label:"Input",value:`${s(n.modelInputTokens)} / ${l(r.modelInputTokensMax,s)} tokens`}),(0,t.jsx)(p,{label:"Output",value:`${s(n.modelOutputTokens)} / ${l(r.modelOutputTokensMax,s)} tokens`}),(0,t.jsx)(p,{label:"Rerank",value:`${String(n.rerankCalls)} / ${o(r.rerankCallsMax)} calls`}),(0,t.jsx)(p,{label:"Time",value:`${(0,i.formatMs)(e.elapsedMs)} / ${l(r.elapsedMsMax,i.formatMs)}`}),(0,t.jsx)(p,{label:"Query",value:d(e.queryKind)})]}),void 0!==e.rankingSummary?(0,t.jsx)(g,{summary:e.rankingSummary}):null]});}function f(e){return void 0===e.lineRange?e.scopePath:`${e.scopePath}:${String(e.lineRange.startLine)}-${String(e.lineRange.endLine)}`;}function x({score:e}){return(0,t.jsxs)("span",{className:"grounded-citation-score",children:[(0,t.jsx)("span",{className:"sr-only",children:"relevance "}),e.toFixed(2)]});}function v({citation:e,repositoryRoots:n,openRepositoryReference:i}){var _e$documentFormat;let a=(_e$documentFormat=e.documentFormat)===null||_e$documentFormat===void 0?void 0:_e$documentFormat.toUpperCase(),o=void 0===a&&void 0!==i&&n.length>0;return(0,t.jsxs)("span",{className:"grounded-citation",title:function(e){let t=`relevance ${e.score.toFixed(2)}`,n=void 0===e.documentFormat?"Evidence citation":`${e.documentFormat.toUpperCase()} document evidence (extracted text)`;if(void 0===e.lineRange)return`${n} in ${e.scopePath} — ${t}`;let i=void 0===e.documentFormat?`at lines ${String(e.lineRange.startLine)}-${String(e.lineRange.endLine)}`:`at extracted span ${String(e.lineRange.startLine)}-${String(e.lineRange.endLine)}`;return`${n} in ${e.scopePath} ${i} — ${t}`;}(e),children:[void 0===a?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"grounded-citation-doc-badge",children:a}),(0,t.jsx)("span",{className:"sr-only",children:" document evidence extracted text "})]}),(0,t.jsx)("span",{className:"grounded-citation-range",children:o?(0,t.jsx)(r.RepositoryReferenceInline,{reference:{label:f(e),path:e.scopePath,...(void 0===e.lineRange?{}:{lineStart:e.lineRange.startLine,lineEnd:e.lineRange.endLine})},roots:n,openReference:i,className:"repo-ref-link grounded-citation-open"}):f(e)}),(0,t.jsx)(x,{score:e.score})]});}function b(e){var _e$lineRange$startLin,_e$lineRange,_e$lineRange$endLine,_e$lineRange2;return JSON.stringify([e.stableId,(_e$lineRange$startLin=(_e$lineRange=e.lineRange)===null||_e$lineRange===void 0?void 0:_e$lineRange.startLine)!==null&&_e$lineRange$startLin!==void 0?_e$lineRange$startLin:null,(_e$lineRange$endLine=(_e$lineRange2=e.lineRange)===null||_e$lineRange2===void 0?void 0:_e$lineRange2.endLine)!==null&&_e$lineRange$endLine!==void 0?_e$lineRange$endLine:null]);}function y(e){let t=new Set(),n=[];for(let i of e){let e=b(i);t.has(e)||(t.add(e),n.push(i));}return n;}function k({total:e,expanded:n,onToggle:i}){return e<=8?null:(0,t.jsx)("button",{type:"button",className:"grounded-citations-more","aria-expanded":n,onClick:i,children:n?"Show fewer citations":`Show all ${String(e)} citations`});}function j({total:e,expanded:n,onToggle:i}){return e<=8?null:(0,t.jsx)("button",{type:"button",className:"grounded-citations-more","aria-expanded":n,onClick:i,children:n?"Show fewer Knowledge Pods":`Show all ${String(e)} Knowledge Pods`});}function w({citations:e,repositoryRoots:i,openRepositoryReference:r}){let[a,o]=(0,n.useState)(!1);if(0===e.length)return null;let l=y([...e].sort((e,t)=>t.score-e.score)),s=a?l:l.slice(0,8);return(0,t.jsxs)("div",{className:"grounded-citations-wrap",children:[(0,t.jsx)("span",{className:"grounded-citations-label",children:"Evidence"}),(0,t.jsx)("ul",{className:"grounded-citations","aria-label":"Evidence citations",children:s.map(e=>(0,t.jsx)("li",{className:"grounded-citations-item",children:(0,t.jsx)(v,{citation:e,repositoryRoots:i,openRepositoryReference:r})},b(e)))}),(0,t.jsx)(k,{total:l.length,expanded:a,onToggle:()=>{o(e=>!e);}})]});}function $(e){return y(e).length;}let S={searched:"Searched",skipped:"Skipped",degraded:"Degraded",denied:"Denied",unavailable:"Unavailable","not-selected":"Not selected"},N={"selected-for-search":"selected for search",searched:"searched","not-selected":"not selected","source-skipped":"source skipped","scope-not-ready":"scope not ready","indexing-in-progress":"indexing in progress","stale-capsule":"stale pod","retrieval-failure":"retrieval failure","no-scope":"no scope","no-vectors":"no vectors","incompatible-embedding-identity":"embedding model mismatch","dense-scan-too-large":"vector scan too large","below-min-score":"below minimum score","answer-grounding-rejected":"grounding rejected","no-evidence-stated":"no evidence stated","no-evidence":"no evidence","empty-query":"empty query","empty-answer":"empty answer","embedding-failed":"embedding failed","embedding-unavailable":"embedding unavailable","reranker-unavailable":"reranker unavailable","reranker-invalid-response":"reranker invalid response","policy-denied":"policy denied","capability-missing":"capability missing","remote-unavailable":"remote unavailable","pack-validation-failed":"pack validation failed","max-sources-exceeded":"source limit exceeded"};function C({activity:e}){let[i,r]=(0,n.useState)(!1);if(void 0===e||0===e.pods.length)return null;let{summary:o}=e,l=i?e.pods:e.pods.slice(0,8);return(0,t.jsxs)("section",{className:`grounded-context-pack ${a.default.scope}`,"aria-label":"Knowledge Pod retrieval activity",children:[(0,t.jsx)("div",{className:"grounded-context-pack-headline",children:"Knowledge Pod activity"}),(0,t.jsxs)("dl",{className:"grounded-context-pack-dl",children:[(0,t.jsx)(p,{label:"Searched",value:s(o.searchedCount)}),(0,t.jsx)(p,{label:"Skipped",value:s(o.skippedCount)}),(0,t.jsx)(p,{label:"Degraded",value:s(o.degradedCount)}),(0,t.jsx)(p,{label:"Denied",value:s(o.deniedCount)}),(0,t.jsx)(p,{label:"Unavailable",value:s(o.unavailableCount)}),(0,t.jsx)(p,{label:"Not selected",value:s(o.notSelectedCount)}),(0,t.jsx)(p,{label:"Candidates",value:`${s(o.denseCandidateCount)} vector \xb7 ${s(o.lexicalCandidateCount)} lexical \xb7 ${s(o.fusedCandidateCount)} fused`}),(0,t.jsx)(p,{label:"Evidence",value:`${s(o.referenceCount)} ${c(o.referenceCount,"reference")} \xb7 ${s(o.citationCount)} ${c(o.citationCount,"citation")}`})]}),(0,t.jsx)("ul",{className:`grounded-uncertainty-list ${a.default.activityList}`,"aria-label":"Knowledge Pod activity details",children:l.map(e=>{let n,i;return(0,t.jsxs)("li",{className:a.default.activityListItem,children:[(0,t.jsx)("span",{className:"grounded-evidence-summary-badge","data-activity-state":e.state,children:S[e.state]})," ",(n=c(e.counts.referenceCount,"reference"),i=c(e.counts.citationCount,"citation"),`${e.displayName} \xb7 ${s(e.counts.referenceCount)} ${n} \xb7 ${s(e.counts.citationCount)} ${i}`)," · ",(0,t.jsx)("span",{className:`grounded-meta ${a.default.activityMeta}`,children:`Modes: ${e.modes.map(d).join(", ")} \xb7 Reasons: ${e.reasonCodes.map(e=>N[e]).join(", ")}`})]},`${e.podKind}-${e.podId}`);})}),(0,t.jsx)(j,{total:e.pods.length,expanded:i,onToggle:()=>{r(e=>!e);}})]});}function E({title:e,summary:n,hasCoverageWarning:i=!1,children:r}){return(0,t.jsxs)("details",{className:"grounded-evidence-disclosure",children:[(0,t.jsxs)("summary",{className:"grounded-evidence-summary",children:[(0,t.jsx)("span",{className:"grounded-evidence-summary-title",children:e}),(0,t.jsx)("span",{className:"grounded-evidence-summary-meta",children:n}),i?(0,t.jsx)("span",{className:"grounded-evidence-summary-badge",children:"Partial coverage"}):null]}),(0,t.jsx)("div",{className:"grounded-evidence-body",children:r})]});}function L({citations:e,citationPreview:i,openDocumentationTarget:r}){let[o,l]=(0,n.useState)(!1);if(0===e.length)return null;let s=y([...e].sort((e,t)=>t.score-e.score)),d=o?s:s.slice(0,8);return(0,t.jsxs)("div",{className:"grounded-citations-wrap",children:[(0,t.jsx)("span",{className:"grounded-citations-label",children:"Knowledge citations"}),(0,t.jsx)("ul",{className:"grounded-citations","aria-label":"Knowledge citations",children:d.map(e=>(0,t.jsx)("li",{className:`grounded-citations-item ${a.default.citationListItem}`,children:(0,t.jsx)(T,{citation:e,citationPreview:i,label:void 0!==e.htmlManual?function(e,_t$sectionPath){let t=e.htmlManual;if(void 0===t)return`${e.marker} ${e.label}`;let n=void 0===e.source?"HTML manual":`${e.source} \xb7 HTML manual`,i=(_t$sectionPath=t.sectionPath)===null||_t$sectionPath===void 0?void 0:_t$sectionPath.join(" · "),r=void 0===i||0===i.length?"":` \xb7 ${i}`;return`${e.marker} ${n} \xb7 ${t.pageTitle}${r}`;}(e):void 0===e.source?`${e.marker} ${e.label}`:`${e.marker} ${e.source} \xb7 ${e.label}`,openDocumentationTarget:r})},b(e)))}),(0,t.jsx)(k,{total:s.length,expanded:o,onToggle:()=>{l(e=>!e);}})]});}function M(e){if(void 0!==e.htmlManual){var _e$htmlManual$section;let t=(_e$htmlManual$section=e.htmlManual.sectionPath)===null||_e$htmlManual$section===void 0?void 0:_e$htmlManual$section.join(" · "),n=void 0===t?"":` \xb7 ${t}`;return`${e.htmlManual.pageTitle}${n} — HTML manual evidence, relevance ${e.score.toFixed(2)}`;}return void 0===e.source?`${e.label} — relevance ${e.score.toFixed(2)}`:`${e.source} \xb7 ${e.label} — relevance ${e.score.toFixed(2)}`;}let R={"source-metadata-unavailable":"Source unavailable","citation-lineage-mismatch":"Citation mismatch","target-outside-approved-scope":"Outside approved scope","target-unsupported":"Unsupported target","target-credentialed":"Requires sign-in","target-unavailable":"Target unavailable"};function P({citation:e,label:i,openDocumentationTarget:r}){let o=e.htmlManual,[l,s]=(0,n.useState)("idle");if(void 0===o)return null;let d="unavailable"===o.open.state,c=function(e,t){let n;if("opened"===e)n="Opened";else if("failed"===e)n="Open failed";else n="available"===t.open.state?"Open manual":"page-level-only"===t.open.state?"Open page":R[t.open.reason];return n;}(l,o),u="unavailable"===o.open.state?void 0:o.open.target,p=d||"failed"===l?" grounded-citation-action--blocked":"";return(0,t.jsxs)("button",{type:"button",className:`grounded-citation grounded-citation-action ${a.default.manualCitationAction}${p}`,"aria-disabled":d?"true":void 0,"aria-label":`${i} \xb7 ${c}`,title:`${M(e)} \xb7 ${c}`,onClick:()=>{void 0===u||d||void 0===r||s(r(u)?"opened":"failed");},children:[(0,t.jsx)("span",{className:`grounded-citation-range ${a.default.manualCitationRange}`,children:i}),(0,t.jsx)("span",{className:"grounded-citation-action-label","aria-live":"polite",children:c}),(0,t.jsx)(x,{score:e.score})]});}function T({citation:e,citationPreview:n,label:i,openDocumentationTarget:r}){var _n$isOpening;let a,o;if(void 0!==e.htmlManual)return(0,t.jsx)(P,{citation:e,label:i,openDocumentationTarget:r});let l=n===null||n===void 0?void 0:n.forCitation(e);if(void 0===l)return(0,t.jsxs)("span",{className:"grounded-citation",title:M(e),children:[(0,t.jsx)("span",{className:"grounded-citation-range",children:i}),(0,t.jsx)(x,{score:e.score})]});let s="blocked"===l.state,d=(_n$isOpening=n===null||n===void 0?void 0:n.isOpening(e))!==null&&_n$isOpening!==void 0?_n$isOpening:!1;return"recoverable"===l.state?(a="Recover PDF",o="Open PDF recovery"):"blocked"===l.state?(a="PDF unavailable",o="PDF preview unavailable"):(a="Open PDF",o="Open PDF preview"),(0,t.jsxs)("button",{type:"button",className:`grounded-citation grounded-citation-action grounded-citation-action--${l.state}`,"aria-disabled":s||d?"true":void 0,"aria-label":`${i} \xb7 ${a}`,"data-tip":o,title:`${M(e)} \xb7 ${a}`,onClick:()=>{s||d||void 0===n||n.openCitation(e,"citation-chip");},children:[(0,t.jsx)("span",{className:"grounded-citation-range",children:i}),(0,t.jsx)("span",{className:"grounded-citation-action-label",children:a}),(0,t.jsx)(x,{score:e.score})]});}function I({markers:e}){if(0===e.length)return null;let n=Array.from(new Set(e.map(e=>d(e.kind)))).join(", ");return(0,t.jsxs)("div",{className:"grounded-uncertainty",role:"note",children:[(0,t.jsx)("div",{children:`Uncertainty (${String(e.length)} markers — ${n})`}),(0,t.jsx)("ul",{className:"grounded-uncertainty-list",children:e.map((e,n)=>(0,t.jsx)("li",{children:`${d(e.kind)}: ${e.claim}`},`${e.kind}-${String(n)}`))})]});}function W(e,t){let[n]=e,[i]=t;return n<i?-1:+(n>i);}function _({omittedCount:e,omittedCounts:n}){if(e<=0)return null;let i=Object.entries(n).filter(([,e])=>e>0).sort(W).map(([e,t])=>`${d(e)}: ${String(t)}`).join(", "),r=i.length>0?` (${i})`:"";return(0,t.jsx)("div",{className:"grounded-meta",children:`Not used: ${String(e)} excerpt${1===e?"":"s"}${r}`});}let D=[{reason:"size-exceeded",label:"larger than 2 MB"},{reason:"binary",label:"binary or an unsupported format"},{reason:"tool-unavailable",label:"unreadable"},{reason:"unsupported-format",label:"an unsupported document format"},{reason:"no-text-layer",label:"a scanned document with no text layer"},{reason:"malformed-document",label:"a malformed document"},{reason:"encrypted-document",label:"a password-protected document"}];function F({omittedCounts:e}){var _e$binary,_e$unsupportedFormat,_e$noTextLayer,_e$malformedDocument,_e$encryptedDocument;let n=D.map(({reason:t,label:n})=>{var _e$t;return{label:n,count:(_e$t=e[t])!==null&&_e$t!==void 0?_e$t:0};}).filter(e=>e.count>0),i=n.reduce((e,t)=>e+t.count,0);if(i<=0)return null;let r=n.map(e=>`${String(e.count)} ${e.label}`).join(", "),a=((_e$binary=e.binary)!==null&&_e$binary!==void 0?_e$binary:0)>0||((_e$unsupportedFormat=e["unsupported-format"])!==null&&_e$unsupportedFormat!==void 0?_e$unsupportedFormat:0)>0||((_e$noTextLayer=e["no-text-layer"])!==null&&_e$noTextLayer!==void 0?_e$noTextLayer:0)>0||((_e$malformedDocument=e["malformed-document"])!==null&&_e$malformedDocument!==void 0?_e$malformedDocument:0)>0||((_e$encryptedDocument=e["encrypted-document"])!==null&&_e$encryptedDocument!==void 0?_e$encryptedDocument:0)>0;return(0,t.jsxs)("div",{className:"grounded-coverage-notice",role:"note",children:[(0,t.jsx)("span",{className:"grounded-coverage-notice-title",children:"Partial coverage"}),(0,t.jsx)("span",{children:`This answer reflects only the searchable files in the connected scope — ${String(i)} ${1===i?"file":"files"} ${1===i?"was":"were"} not searched (${r}). It does not cover the entire folder.`}),a?(0,t.jsx)("span",{children:"Repository Search reads text, code, and small DOCX, XLSX, and text-layer PDF documents. Larger, scanned, encrypted, or other document formats remain available through Local Knowledge."}):null]});}function K(e){return D.some(({reason:t})=>e[t]>0);}function A({runId:e,runIds:n}){let i=Array.from(new Set([...(void 0===e?[]:[e]),...(n!==null&&n!==void 0?n:[])]));return 0===i.length?null:(0,t.jsx)("div",{className:"grounded-meta",children:i.map((e,n)=>(0,t.jsxs)("a",{className:"sm-link",href:`/api/evidence/${encodeURIComponent(e)}`,target:"_blank",rel:"noopener noreferrer",children:[1===i.length?"View connected-context audit evidence":`View connected-context audit evidence ${String(n+1)}`," ",(0,t.jsx)("span",{className:"sr-only",children:"(opens in new tab)"})]},e))});}function O({contextPack:e}){return(0,t.jsxs)("section",{className:"grounded-context-pack","aria-label":"Knowledge scope summary",children:[(0,t.jsx)("div",{className:"grounded-context-pack-headline",children:`Knowledge scope: ${e.scopeLabel}`}),(0,t.jsxs)("dl",{className:"grounded-context-pack-dl",children:[(0,t.jsx)(p,{label:"Mode",value:"capsule-set"===e.scopeKind?"Knowledge Pod Set":"Knowledge Pod"}),(0,t.jsx)(p,{label:"Knowledge Pods",value:String(e.capsuleCount)}),(0,t.jsx)(p,{label:"Sources",value:String(e.sourceCount)}),(0,t.jsx)(p,{label:"Citations",value:String(e.citationCount)}),(0,t.jsx)(p,{label:"Context budget",value:`${String(e.referencesUsed)} / ${String(e.referenceBudget)} references`})]})]});}function B({contextPack:e}){return(0,t.jsxs)("section",{className:"grounded-context-pack","aria-label":"Hybrid source summary",children:[(0,t.jsx)("div",{className:"grounded-context-pack-headline",children:`Hybrid: ${String(e.folderSourceCount)} folder source${1===e.folderSourceCount?"":"s"} + ${String(e.connectorSourceCount)} Knowledge Pod source${1===e.connectorSourceCount?"":"s"}`}),(0,t.jsx)(h,{contextPack:e.folder}),(0,t.jsx)(O,{contextPack:e.knowledge})]});}let H=new Set(["unavailable","invalid-response"]);function U({answer:e}){let n,i,r,a,o,l=(n=[],((i=e.uncertainty).some(e=>"no-evidence"===e.kind)||"local-knowledge"===e.groundingKind&&e.noEvidence)&&n.push("No supporting evidence was found — this answer is not grounded."),(r=i.filter(e=>"unsupported-citation"===e.kind).length)>0&&n.push(`${String(r)} unsupported citation${1===r?"":"s"} — the answer references sources that were not in the retrieved evidence.`),(a=i.filter(e=>"unsupported-claim"===e.kind).length)>0&&n.push(`${String(a)} unsupported claim${1===a?"":"s"} — the answer states something its cited source does not support.`),i.some(e=>"entailment-unavailable"===e.kind)&&n.push("Citation support could not be verified for part of this answer."),i.some(e=>"incomplete-answer"===e.kind)&&n.push("The answer was cut off before completion and may be partial."),void 0!==(o=function(e){if(void 0!==e&&"not-configured"!==e.failureKind&&H.has(e.status))return"Ranking: reranker unavailable — showing fused retrieval order.";}("local-knowledge"===e.groundingKind||"hybrid"===e.groundingKind?e.contextPack.reranker:void 0))&&n.push(o),n);return 0===l.length?null:(0,t.jsxs)("div",{className:"grounded-uncertainty",role:"alert",children:[(0,t.jsx)("div",{children:(0,t.jsx)("span",{className:"grounded-evidence-summary-badge",children:"Needs review"})}),(0,t.jsx)("ul",{className:"grounded-uncertainty-list",children:l.map((e,n)=>(0,t.jsx)("li",{children:e},`grounded-warning-${String(n)}`))})]});}e.s(["GroundedAnswer",0,function({answer:e,busy:n,repositoryRoots:i=[],openRepositoryReference:r,citationPreview:a,openDocumentationTarget:l}){let d,u,p,m,g,f;if(void 0===e)return n?(0,t.jsx)("div",{className:"grounded-meta",role:"status","aria-live":"polite","aria-busy":"true",children:"Searching connected sources and asking Keiko…"}):null;if("local-knowledge"===e.groundingKind){let n,i;return(0,t.jsxs)("div",{className:"grounded-answer",children:[(0,t.jsx)(U,{answer:e}),(0,t.jsxs)(E,{title:"Knowledge evidence",summary:(i=c(n=$(e.citations),"citation"),`${s(n)} ${i} \xb7 ${s(e.contextPack.referencesUsed)} / ${s(e.contextPack.referenceBudget)} references`),children:[(0,t.jsx)(L,{citations:e.citations,citationPreview:a,openDocumentationTarget:l}),(0,t.jsx)(C,{activity:e.retrievalActivity}),(0,t.jsx)(I,{markers:e.uncertainty}),(0,t.jsx)(O,{contextPack:e.contextPack})]})]});}if("hybrid"===e.groundingKind){let n,o;return(0,t.jsxs)("div",{className:"grounded-answer",children:[(0,t.jsx)(U,{answer:e}),(0,t.jsxs)(E,{title:"Grounding evidence",summary:(n=$(e.citations),o=$(e.knowledgeCitations),`${s(n)} file ${c(n,"citation")} \xb7 ${s(o)} knowledge ${c(o,"citation")}`),hasCoverageWarning:K(e.contextPack.folder.omittedCounts),children:[(0,t.jsx)(F,{omittedCounts:e.contextPack.folder.omittedCounts}),(0,t.jsx)(w,{citations:e.citations,repositoryRoots:i,openRepositoryReference:r}),(0,t.jsx)(L,{citations:e.knowledgeCitations,citationPreview:a,openDocumentationTarget:l}),(0,t.jsx)(C,{activity:e.retrievalActivity}),(0,t.jsx)(I,{markers:e.uncertainty}),(0,t.jsx)(_,{omittedCount:e.omittedCount,omittedCounts:e.contextPack.folder.omittedCounts}),(0,t.jsx)(A,{runId:e.evidenceRunId,runIds:e.evidenceRunIds}),(0,t.jsx)(B,{contextPack:e.contextPack})]})]});}return(0,t.jsxs)("div",{className:"grounded-answer",children:[(0,t.jsx)(U,{answer:e}),(0,t.jsxs)(E,{title:"Evidence",summary:(d=$(e.citations),u=e.contextPack.usage.filesRead,p=o(e.contextPack.budget.filesReadMax),m=e.contextPack.omittedCount,g=c(d,"citation"),f=m>0?` \xb7 ${s(m)} not used`:"",`${s(d)} ${g} \xb7 ${s(u)} / ${p} files read${f}`),hasCoverageWarning:K(e.contextPack.omittedCounts),children:[(0,t.jsx)(F,{omittedCounts:e.contextPack.omittedCounts}),(0,t.jsx)(w,{citations:e.citations,repositoryRoots:i,openRepositoryReference:r}),(0,t.jsx)(I,{markers:e.uncertainty}),(0,t.jsx)(_,{omittedCount:e.contextPack.omittedCount,omittedCounts:e.contextPack.omittedCounts}),(0,t.jsx)(A,{runId:e.evidenceRunId,runIds:e.evidenceRunIds}),(0,t.jsx)(h,{contextPack:e.contextPack})]})]});},"MetricRow",0,p,"humanizeToken",0,d],54523);},48805,e=>{e.v({cmpMenuEmpty:"KeikoSelect-module__cg1rHa__cmpMenuEmpty",cmpMenuSearch:"KeikoSelect-module__cg1rHa__cmpMenuSearch"});},67914,e=>{"use strict";var t=e.i(43476),n=e.i(71645),i=e.i(74080),r=e.i(24541),a=e.i(50850),o=e.i(48805);let l="keiko:select-open";function s(e){return e.findIndex(e=>!0!==e.disabled);}function d(e,t,n){if(0===e.length)return-1;for(let i of e.keys()){var _e$r;let r=(t+(i+1)*n+e.length)%e.length;if(((_e$r=e[r])===null||_e$r===void 0?void 0:_e$r.disabled)!==!0)return r;}return-1;}function c(e,t){let n=e.toLocaleLowerCase();return n===t?0:n.startsWith(t)?1:2;}function u(e,t){let n=t.trim().toLocaleLowerCase();return""===n?e:e.map(e=>({...e,options:e.options.filter(e=>e.label.toLocaleLowerCase().includes(n)).sort((e,t)=>c(e.label,n)-c(t.label,n))}));}function p({active:e,index:r,onCommit:a,onOptionKeyDown:o,option:l,selected:s,setOptionRef:d}){let c=(0,n.useRef)(null),u=(0,n.useRef)(null),m=(0,n.useRef)(null),[g,h]=(0,n.useState)(null),f=()=>{null!==m.current&&(clearTimeout(m.current),m.current=null),h(null);},x=()=>{null!==m.current&&clearTimeout(m.current),m.current=setTimeout(()=>{let e=u.current,t=c.current;if(null===e||null===t||e.scrollWidth<=e.clientWidth)return;let n=t.getBoundingClientRect(),i=Math.min(520,window.innerWidth-32),r=n.right+8+i<=window.innerWidth-16?"top-left":"top-right";h({left:"top-left"===r?n.right+8:n.left-8,placement:r,top:n.top-6});},1500);};return(0,n.useEffect)(()=>f,[]),(0,t.jsxs)("button",{ref:e=>{c.current=e,d(r,e);},"aria-selected":s,className:`ksel-option${e?" ksel-option-active":""}`,"data-disabled":!0===l.disabled?"true":void 0,disabled:l.disabled,onBlur:f,onClick:()=>a(l),onFocus:x,onKeyDown:e=>o(e,r),onPointerEnter:x,onPointerLeave:f,role:"option",type:"button",children:[(0,t.jsxs)("span",{className:"ksel-option-copy",children:[(0,t.jsx)("span",{className:"ksel-option-label",ref:u,children:l.label}),void 0!==l.description?(0,t.jsx)("span",{className:"ksel-option-desc",children:l.description}):null]}),void 0!==l.badge?(0,t.jsx)("span",{className:"ksel-option-badge",children:l.badge}):null,null!==g?(0,i.createPortal)((0,t.jsx)("div",{className:"ksel-overflow-tooltip","data-placement":g.placement,role:"tooltip",style:{left:`${g.left.toString()}px`,top:`${g.top.toString()}px`},children:l.label}),document.body):null]});}function m({activeIndex:e,flatOptions:n,menuId:i,onCommit:r,onOptionKeyDown:a,section:o,sectionIndex:l,selectedIndex:s,setOptionRef:d}){let c=void 0!==o.label?`${i}-section-${l.toString()}`:void 0;return(0,t.jsxs)("div",{className:"ksel-section",role:void 0!==o.label?"group":"presentation","aria-labelledby":c,children:[void 0!==o.label?(0,t.jsx)("div",{className:"ksel-section-label",id:c,children:o.label}):null,o.options.map(i=>{var _o$label;let l=n.findIndex(e=>e.value===i.value&&e.sectionLabel===o.label),c=n[l];return void 0===c?null:(0,t.jsx)(p,{active:l===e,index:l,onCommit:r,onOptionKeyDown:a,option:c,selected:l===s,setOptionRef:d},`${(_o$label=o.label)!==null&&_o$label!==void 0?_o$label:"section"}-${i.value}`);})]});}function g({search:e}){return void 0===e?null:(0,t.jsx)("div",{className:o.default.cmpMenuSearch,children:(0,t.jsx)("input",{ref:e.inputRef,type:"search","aria-label":e.placeholder,placeholder:e.placeholder,value:e.query,onChange:t=>{e.onChange(t.currentTarget.value);},onKeyDown:e.onKeyDown})});}function h({search:e,visible:n}){return n&&(e===null||e===void 0?void 0:e.emptyLabel)!==void 0?(0,t.jsx)("p",{className:o.default.cmpMenuEmpty,children:e.emptyLabel}):null;}function f({activeIndex:e,ariaLabel:n,flatOptions:r,menuClassName:a,menuCountLabel:o,menuId:l,menuLabel:s,menuRef:d,menuTitle:c,onCommit:u,onOptionKeyDown:p,placeholder:x,position:v,selectedIndex:b,sections:y,search:k,setOptionRef:j,showMenuHeader:w}){var _ref;return(0,i.createPortal)((0,t.jsxs)("div",{ref:d,className:["ksel-menu",v.attached?"ksel-menu-attached":"",v.openUp?"ksel-menu-open-up":"ksel-menu-open-down",a!==null&&a!==void 0?a:""].filter(e=>e.length>0).join(" "),style:{left:`${v.left.toString()}px`,top:`${v.top.toString()}px`,width:`${v.width.toString()}px`,"--ksel-option-height":`${v.optionHeight.toString()}px`,fontFamily:v.fontFamily,fontSize:v.fontSize,fontWeight:v.fontWeight,letterSpacing:v.letterSpacing,lineHeight:v.lineHeight},children:[w?(0,t.jsxs)("div",{className:"ksel-menu-head",children:[(0,t.jsx)("div",{className:"ksel-menu-title",children:(_ref=c!==null&&c!==void 0?c:n)!==null&&_ref!==void 0?_ref:x}),(0,t.jsx)("div",{className:"ksel-menu-note",children:o!==null&&o!==void 0?o:`${r.length.toString()} options`})]}):null,(0,t.jsx)(g,{search:k}),(0,t.jsxs)("div",{className:"ksel-menu-scroll",role:"listbox",id:l,"aria-label":s,style:{maxHeight:`${v.maxHeight.toString()}px`},children:[y.map((n,i)=>{var _n$label;return(0,t.jsx)(m,{activeIndex:e,flatOptions:r,menuId:l,onCommit:u,onOptionKeyDown:p,section:n,sectionIndex:i,selectedIndex:b,setOptionRef:j},`${(_n$label=n.label)!==null&&_n$label!==void 0?_n$label:"section"}-${i.toString()}`);}),(0,t.jsx)(h,{search:k,visible:0===r.length})]})]}),document.body);}e.s(["default",0,function({value:e,sections:i,onValueChange:o,onOpen:c,disabled:p=!1,placeholder:m,ariaLabel:g,ariaDescribedBy:h,ariaLabelledBy:x,triggerClassName:v,menuClassName:b,menuTitle:y,menuCountLabel:k,showMenuHeader:j=!0,leadingVisual:w,mono:$=!1,showChevron:S=!0,menuMinWidth:N,menuPopoverMinWidth:C,menuPopoverMaxHeight:E,menuPlacement:L="auto",searchPlaceholder:M,searchEmptyLabel:R,attached:P=!0,triggerStyle:T,autoFocus:I=!1}){var _et$label,_et$description,_ref2,_W$triggerClassName,_W$position;var W;let _=(0,a.useTranslate)(),D=(0,n.useRef)(null),F=(0,n.useRef)(null),K=(0,n.useRef)(null),A=(0,n.useRef)([]),O=(0,n.useId)(),[B,H]=(0,n.useState)(!1),[U,q]=(0,n.useState)(-1),[z,G]=(0,n.useState)(null),[V,Y]=(0,n.useState)(!1),[Z,X]=(0,n.useState)(""),J=(0,n.useMemo)(()=>u(i,Z),[Z,i]),Q=(0,n.useMemo)(()=>J.flatMap((e,t)=>e.options.map((n,i)=>{var _e$label;return{...n,key:`${(_e$label=e.label)!==null&&_e$label!==void 0?_e$label:"section"}-${t.toString()}-${n.value}-${i.toString()}`,sectionLabel:e.label};})),[J]),ee=Q.findIndex(t=>t.value===e),et=i.flatMap(e=>e.options).find(t=>t.value===e),en=m!==null&&m!==void 0?m:_("select.placeholder"),ei=(_et$label=et===null||et===void 0?void 0:et.label)!==null&&_et$label!==void 0?_et$label:en,er=(_et$description=et===null||et===void 0?void 0:et.description)!==null&&_et$description!==void 0?_et$description:null,ea=(_ref2=y!==null&&y!==void 0?y:g)!==null&&_ref2!==void 0?_ref2:en,eo=(0,n.useCallback)(()=>{H(!1),q(-1),X("");},[]),el=e=>{var _Q$e,_Q$ee;if(p||0===Q.length)return;let t=void 0!==e&&((_Q$e=Q[e])===null||_Q$e===void 0?void 0:_Q$e.disabled)!==!0?e:ee>=0&&((_Q$ee=Q[ee])===null||_Q$ee===void 0?void 0:_Q$ee.disabled)!==!0?ee:s(Q);window.dispatchEvent(new Event(l)),H(!0),q(t),X(""),c===null||c===void 0?void 0:c();};function es(e){var _D$current;e.disabled||(o(e.value),eo(),(_D$current=D.current)===null||_D$current===void 0?void 0:_D$current.focus());}function ed(e,t){var _D$current2;t.preventDefault(),t.stopPropagation(),eo(),(_D$current2=D.current)!==null&&_D$current2!==void 0&&_D$current2.focus(),(0,r.reportClientDiagnostic)(`[keiko] select menu dismissed by Escape (focus=${e})`,{kind:"other",selectDismissal:{reason:"escape",focus:e}});}(0,n.useEffect)(()=>(window.addEventListener(l,eo),()=>{window.removeEventListener(l,eo);}),[eo]),(0,n.useEffect)(()=>{if(!B)return;let e=e=>{let t=e.target;null!==D.current&&t instanceof Node&&D.current.contains(t)||null!==F.current&&t instanceof Node&&F.current.contains(t)||eo();},t=()=>eo();return window.addEventListener("pointerdown",e,!0),window.addEventListener("blur",t),()=>{window.removeEventListener("pointerdown",e,!0),window.removeEventListener("blur",t);};},[eo,B]),(0,n.useLayoutEffect)(()=>{if(!B||null===D.current)return;let e={menuMinWidth:N,menuPopoverMinWidth:C,menuPopoverMaxHeight:E,chromeReserve:50*!!j+46*(void 0!==M)+2},t=()=>{var _e$menuPopoverMinWidt,_e$menuPopoverMaxHeig;let t,n,i,r,a=D.current;if(null===a)return;let o=a.getBoundingClientRect(),l=Math.min(Math.max(void 0!==e.menuMinWidth&&o.width<Math.min(e.menuMinWidth,96)?e.menuMinWidth:o.width,(_e$menuPopoverMinWidt=e.menuPopoverMinWidth)!==null&&_e$menuPopoverMinWidt!==void 0?_e$menuPopoverMinWidt:0),window.innerWidth-32),s=P&&1>Math.abs(l-o.width),d=s?-1:6,c=(t=window.innerHeight-o.bottom-16,n=o.top-16,i=Math.max(96,2*o.height),"up"===L||t<i&&n>t);Y(c);let u=(r=c?o.top-16:window.innerHeight-o.bottom-16,Math.max(o.height,Math.min(Math.max(o.height,r-e.chromeReserve),(_e$menuPopoverMaxHeig=e.menuPopoverMaxHeight)!==null&&_e$menuPopoverMaxHeig!==void 0?_e$menuPopoverMaxHeig:380))),p=u+e.chromeReserve,m=window.getComputedStyle(a);G({left:Math.min(Math.max(16,o.left),window.innerWidth-l-16),width:l,top:c?Math.max(16,o.top-p-d):Math.min(o.bottom+d,window.innerHeight-16-p),optionHeight:Math.max(28,Math.min(o.height,30)),maxHeight:u,openUp:c,attached:s,fontFamily:m.fontFamily,fontSize:m.fontSize,fontWeight:m.fontWeight,letterSpacing:m.letterSpacing,lineHeight:m.lineHeight});};return t(),window.addEventListener("resize",t),window.addEventListener("scroll",t,!0),()=>{window.removeEventListener("resize",t),window.removeEventListener("scroll",t,!0);};},[B,P,N,C,E,L,M,j]),(0,n.useLayoutEffect)(()=>{if(!B||null===z||!z.openUp||null===D.current||null===F.current)return;let e=D.current.getBoundingClientRect(),t=F.current.getBoundingClientRect();if(t.height<=0)return;let n=z.attached?-1:6,i=Math.max(16,e.top-t.height-n);.5>Math.abs(i-z.top)||G(e=>null===e?e:{...e,top:i});},[B,z]),(0,n.useEffect)(()=>{var _K$current;B&&void 0!==M&&((_K$current=K.current)===null||_K$current===void 0?void 0:_K$current.focus());},[B,M]),(0,n.useEffect)(()=>{var _A$current$U,_A$current$U2;!B||U<0||(void 0===M||document.activeElement!==K.current)&&((_A$current$U=A.current[U])!==null&&_A$current$U!==void 0&&_A$current$U.focus(),(_A$current$U2=A.current[U])===null||_A$current$U2===void 0?void 0:_A$current$U2.scrollIntoView({block:"nearest"}));},[B,U,M]),(0,n.useEffect)(()=>{if(!B)return;let e=e=>{if("Escape"===e.key){var _D$current3;eo(),(_D$current3=D.current)===null||_D$current3===void 0?void 0:_D$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 i=1;i<=e.length;i+=1){let r=(t+i)%e.length,a=e[r];if(void 0!==a&&!0!==a.disabled&&a.label.toLowerCase().startsWith(n))return r;}return-1;}(Q,U>=0?U:Math.max(ee,0),e.key.toLowerCase());-1!==n&&q(n);}};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e);},[B,U,eo,Q,ee]);let ec=["ksel-trigger",(W={disabled:p,mono:$,open:B,openUp:V,position:z,triggerClassName:v}).mono?"mono":"",(_W$triggerClassName=W.triggerClassName)!==null&&_W$triggerClassName!==void 0?_W$triggerClassName:"",W.open?"ksel-trigger-open":"",W.open&&((_W$position=W.position)===null||_W$position===void 0?void 0:_W$position.attached)===!0?W.openUp?"ksel-trigger-open-up":"ksel-trigger-open-down":"",W.disabled?"ksel-trigger-disabled":""].filter(e=>e.length>0).join(" "),eu=B&&null!==z?(0,t.jsx)(f,{activeIndex:U,ariaLabel:g,flatOptions:Q,menuClassName:b,menuCountLabel:k,menuId:O,menuLabel:ea,menuRef:F,menuTitle:y,onCommit:es,onOptionKeyDown:function(e,t){if("Escape"===e.key)return void ed("option",e);if("Tab"===e.key){var _D$current4;e.preventDefault(),eo(),(_D$current4=D.current)===null||_D$current4===void 0?void 0:_D$current4.focus();return;}if("ArrowDown"===e.key){e.preventDefault(),q(d(Q,t,1));return;}if("ArrowUp"===e.key){e.preventDefault(),q(d(Q,t,-1));return;}if("Home"===e.key){e.preventDefault(),q(s(Q));return;}if("End"===e.key){e.preventDefault(),q(d(Q,0,-1));return;}if("Enter"===e.key||" "===e.key){e.preventDefault();let n=Q[t];void 0!==n&&es(n);}},placeholder:m,position:z,selectedIndex:ee,sections:J,search:void 0===M?void 0:{placeholder:M,query:Z,emptyLabel:R,inputRef:K,onChange:e=>{X(e),q(u(i,e).flatMap(e=>e.options).findIndex(e=>!0!==e.disabled));},onKeyDown:function(e){var _A$current$s;if("Escape"===e.key)ed("search",e);else if("ArrowDown"===e.key)e.preventDefault(),(_A$current$s=A.current[s(Q)])===null||_A$current$s===void 0?void 0:_A$current$s.focus();else if("Enter"===e.key){e.preventDefault();let t=Q[s(Q)];void 0!==t&&es(t);}}},setOptionRef:(e,t)=>{A.current[e]=t;},showMenuHeader:j}):null;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{ref:D,"aria-controls":O,"aria-describedby":h,"aria-expanded":B,"aria-haspopup":"listbox","aria-label":g,"aria-labelledby":x,autoFocus:I,className:ec,disabled:p,onClick:()=>{B?eo():el();},onKeyDown:function(e){if(!p){if("Escape"===e.key&&B)return void ed("trigger",e);if("ArrowDown"===e.key||"ArrowUp"===e.key){e.preventDefault(),el(ee>=0?ee:s(Q));return;}("Enter"===e.key||" "===e.key)&&(e.preventDefault(),B?eo():el());}},role:"combobox",style:T,type:"button",children:[void 0!==w?(0,t.jsx)("span",{className:"ksel-trigger-leading",children:w}):null,(0,t.jsxs)("span",{className:"ksel-trigger-copy",children:[(0,t.jsx)("span",{className:"ksel-trigger-label",children:ei}),null!==er?(0,t.jsx)("span",{className:"ksel-trigger-desc",children:er}):null]}),S?(0,t.jsx)("span",{"aria-hidden":"true",className:`ksel-trigger-caret${B?" 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]}),eu]});}]);},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}]);},64344,e=>{"use strict";var t=e.i(43476),n=e.i(71645),i=e.i(98729);let r="[A-Za-z0-9_.-]{1,255}",a=String.raw`(?:${r}\/){0,1000}${r}\.[A-Za-z0-9][A-Za-z0-9]{0,15}`,o=RegExp(String.raw`@?(${a})(?::(\d{1,7})(?:-(\d{1,7}))?)?`,"gu"),l=String.raw`@?${a}(?::\d{1,7}(?:-\d{1,7})?)?`,s=RegExp(String.raw`\[\s*(${l})\s*\]`,"giu"),d=String.raw`\[source:[^\]]+\]`,c=RegExp(String.raw`\[\s*(${l})\s*\]\s*(?:${d}\s*)?(${l})`,"giu"),u=RegExp(String.raw`(${l})\s+(?:${d}\s*)?(${l})`,"giu"),p=RegExp(d,"giu"),m=new Set(["astro","bash","c","cc","cjs","config","cpp","cs","css","csv","cts","go","gradle","h","hpp","htm","html","ini","java","js","json","jsonc","jsx","kt","kts","less","lock","lua","md","mdx","mjs","mts","php","py","rb","rs","sass","scala","scss","sh","sql","svelte","swift","toml","ts","tsx","txt","vue","xml","yaml","yml","zsh"]);function g(e){let t=e.length;for(;t>0&&"/"===e[t-1];)t-=1;return e.slice(0,t);}function h(e){return g(function(e){let t=0;for(;t<e.length&&"/"===e[t];)t+=1;return e.slice(t);}(e.replaceAll("\\","/")));}function f(e){var _e$lineStart$toString,_e$lineStart,_e$lineEnd$toString,_e$lineEnd;return null===e?null:[e.path.toLowerCase(),(_e$lineStart$toString=(_e$lineStart=e.lineStart)===null||_e$lineStart===void 0?void 0:_e$lineStart.toString())!==null&&_e$lineStart$toString!==void 0?_e$lineStart$toString:"",(_e$lineEnd$toString=(_e$lineEnd=e.lineEnd)===null||_e$lineEnd===void 0?void 0:_e$lineEnd.toString())!==null&&_e$lineEnd$toString!==void 0?_e$lineEnd$toString:""].join(":");}function x(e,t,n){let i=f(y(e)),r=f(y(t));return null!==i&&i===r?e:n;}function v(e){if(void 0===e)return;let t=Number.parseInt(e,10);return Number.isSafeInteger(t)&&t>0?t:void 0;}function b(e,t){var _e$,_e$2;let n=(_e$=e[0])!==null&&_e$!==void 0?_e$:"",i=e.index;if(!function(e,t,_e){if(t<=0)return!0;let n=(_e=e[t-1])!==null&&_e!==void 0?_e:"";return!/[A-Za-z0-9_./:@-]/u.test(n);}(t,i)||!function(e,t,_e$t2){if(t>=e.length)return!0;let n=(_e$t2=e[t])!==null&&_e$t2!==void 0?_e$t2:"";return!/[A-Za-z0-9_/:+-]/u.test(n);}(t,i+n.length))return null;let r=h((_e$2=e[1])!==null&&_e$2!==void 0?_e$2:"");if(!function(e,_n$at,_i$split$pop$toLowerC,_i$split$pop){let t=h(e);if(0===t.length||t!==e||t.startsWith(".")||t.includes("..")||!t.includes("."))return!1;let n=t.split("/");if(n.some(e=>0===e.length||"."===e||".."===e))return!1;let i=(_n$at=n.at(-1))!==null&&_n$at!==void 0?_n$at:"",r=(_i$split$pop$toLowerC=(_i$split$pop=i.split(".").pop())===null||_i$split$pop===void 0?void 0:_i$split$pop.toLowerCase())!==null&&_i$split$pop$toLowerC!==void 0?_i$split$pop$toLowerC:"";return m.has(r);}(r))return null;let a=v(e[2]),o=v(e[3]),l=void 0===a?void 0:Math.max(a,o!==null&&o!==void 0?o:a);return{label:n,path:r,...(void 0===a?{}:{lineStart:a}),...(void 0===l?{}:{lineEnd:l})};}function y(e){var _t$0$length,_t$;o.lastIndex=0;let t=o.exec(e);return(t===null||t===void 0?void 0:t.index)!==0||((_t$0$length=(_t$=t[0])===null||_t$===void 0?void 0:_t$.length)!==null&&_t$0$length!==void 0?_t$0$length:0)!==e.length?null:b(t,e);}function k(e){var _g$split$filter$at;return(_g$split$filter$at=g(e.replaceAll("\\","/")).split("/").filter(e=>e.length>0).at(-1))!==null&&_g$split$filter$at!==void 0?_g$split$filter$at:e;}function j(e){var _e$path$split$filter$;let t=(_e$path$split$filter$=e.path.split("/").filter(Boolean).pop())!==null&&_e$path$split$filter$!==void 0?_e$path$split$filter$:e.path;return void 0===e.lineStart?t:void 0===e.lineEnd||e.lineEnd===e.lineStart?`${t}:${String(e.lineStart)}`:`${t}:${String(e.lineStart)}-${String(e.lineEnd)}`;}function w(e){return g(e.replaceAll("\\","/")).split("/").filter(e=>e.length>0).slice(-2).join("/");}e.s(["RepositoryReferenceInline",0,function({reference:e,roots:r,openReference:a,className:o="repo-ref-link"}){var l;let s,d,[c,u]=(0,n.useState)("idle"),[p,m]=(0,n.useState)(""),g=(l=(0,n.useCallback)(()=>{u("idle"),m("");},[]),s=(0,n.useRef)(void 0),d=(0,n.useCallback)(()=>{void 0!==s.current&&(window.clearTimeout(s.current),s.current=void 0);},[]),(0,n.useEffect)(()=>d,[d]),(0,n.useCallback)(e=>{d(),s.current=window.setTimeout(()=>{s.current=void 0,l();},e);},[l,d])),f=(0,n.useMemo)(()=>{let e=new Set(),t=[];for(let n of r){let i=n.root.trim();if(0===i.length||e.has(i))continue;e.add(i);let r=n.label.trim();t.push({root:i,label:r.length>0?r:k(i)});}return t;},[r]),x=(0,n.useMemo)(()=>f.filter(t=>{var _h$split$;var n;let i,r;return n=e.path,null===(r=void 0===(i=(_h$split$=h(n).split("/")[0])===null||_h$split$===void 0?void 0:_h$split$.toLocaleLowerCase())||0===i.length?null:f.some(e=>k(e.root).toLocaleLowerCase()===i)?i:null)||k(t.root).toLocaleLowerCase()===r;}).map(t=>{var n,i;let r,a;return{...t,openPath:(n=e.path,i=t.root,r=h(n),(a=h(k(i))).length>0&&r.startsWith(`${a}/`)?r.slice(a.length+1):r)};}).sort((e,t)=>e.openPath.length-t.openPath.length||e.root.localeCompare(t.root)),[e,f]),v=(0,n.useMemo)(()=>{let e=x[0];return void 0===e?[]:x.filter(t=>t.openPath.length===e.openPath.length);},[x]),b=(0,n.useCallback)(t=>{if(void 0===a)return;let n=t.openPath;u("opening"),m(`Opening ${n}…`);let i=a({root:t.root,path:n,...(void 0===e.lineStart?{}:{lineStart:e.lineStart}),...(void 0===e.lineEnd?{}:{lineEnd:e.lineEnd})});if(i.ok){u("opened"),m(`Opened ${n} in editor.`),g(1800);return;}u("failed"),m(i.message);},[a,e,g]),y=(0,n.useCallback)(()=>{if(void 0===a||0===f.length){u("failed"),m("Connect a Files window to open repository references.");return;}if(0===x.length){u("failed"),m("This repository reference does not match any connected source.");return;}if(1===v.length){let e=v[0];void 0!==e&&b(e);return;}u(e=>"choosing"===e?"idle":"choosing"),m("Select a repository source.");},[v,b,a,x.length,f.length]),$=(0,n.useCallback)(e=>{if("Escape"===e.key){u("idle"),m("");return;}("Enter"===e.key||" "===e.key)&&(e.preventDefault(),y());},[y]);if(void 0===a)return(0,t.jsx)("span",{title:e.label,children:j(e)});let S="failed"===c;return(0,t.jsxs)("span",{className:"repo-ref",children:[(0,t.jsxs)("button",{type:"button",className:o,"aria-label":`Open ${e.path}${void 0===e.lineStart?"":void 0===e.lineEnd||e.lineEnd===e.lineStart?` at line ${String(e.lineStart)}`:` at lines ${String(e.lineStart)}-${String(e.lineEnd)}`} in editor`,"aria-expanded":v.length>1?"choosing"===c:void 0,"data-state":c,title:e.label,onClick:y,onKeyDown:$,children:[(0,t.jsx)("span",{className:"repo-ref-file-icon","aria-hidden":"true",children:(0,t.jsx)(i.FileIcon,{name:e.path})}),(0,t.jsx)("span",{children:j(e)})]}),"choosing"===c?(0,t.jsx)("span",{className:"repo-ref-picker",role:"dialog","aria-label":"Select repository source",children:v.map(e=>(0,t.jsxs)("button",{type:"button",className:"repo-ref-root",onClick:()=>b(e),children:[(0,t.jsx)("span",{children:e.label}),w(e.root)===e.label?null:(0,t.jsx)("span",{className:"repo-ref-root-path",children:w(e.root)})]},e.root))}):null,p.length>0?(0,t.jsx)("span",{role:S?"alert":"status",className:"repo-ref-status",children:p}):null]});},"parseExactRepositoryReference",0,y,"repositoryReferenceRoots",0,function(e){let t=new Set(),n=[];for(let i of e){let e=i.trim();0===e.length||t.has(e)||(t.add(e),n.push({root:e,label:k(e)}));}return n;},"repositoryReferenceTextParts",0,function(e){let t=[],n=0;for(o.lastIndex=0;;){var _i$0$length,_i$;let i=o.exec(e);if(null===i)break;let r=b(i,e);null!==r&&(i.index>n&&t.push({kind:"text",text:e.slice(n,i.index)}),t.push({kind:"reference",reference:r}),n=i.index+((_i$0$length=(_i$=i[0])===null||_i$===void 0?void 0:_i$.length)!==null&&_i$0$length!==void 0?_i$0$length:0));}return 0===n?[{kind:"text",text:e}]:(n<e.length&&t.push({kind:"text",text:e.slice(n)}),t);},"sanitizeRepositoryEvidenceText",0,function(e){return e.replace(c,(e,t,n)=>x(t,n,e.replace(p,""))).replace(u,(e,t,n)=>x(t,n,e.replace(p,""))).replace(s,(e,t)=>null===y(t)?e:t).replace(p,"").replace(/[ \t]{2,}/gu," ").replace(/[ \t]([,.;:!?])/gu,"$1");}]);},98729,e=>{"use strict";var t=e.i(43476);let n=e.i(17161).Icons.file,i=[{test:e=>"dockerfile"===e||e.includes("docker-compose")||e.endsWith(".dockerignore"),key:"docker"},{test:e=>e.endsWith(".json"),key:"json"},{test:e=>e.endsWith(".yml")||e.endsWith(".yaml"),key:"yaml"},{test:e=>e.endsWith(".md"),key:"markdown"},{test:e=>e.endsWith(".properties")||e.endsWith(".env")||e.startsWith(".env."),key:"properties"},{test:e=>e.endsWith(".java"),key:"java"},{test:e=>e.endsWith(".tsx"),key:"react"},{test:e=>e.endsWith(".ts"),key:"typescript"},{test:e=>e.endsWith(".jsx")||e.endsWith(".js")||e.endsWith(".mjs")||e.endsWith(".cjs"),key:"javascript"},{test:e=>e.endsWith(".py"),key:"python"},{test:e=>e.endsWith(".go"),key:"go"},{test:e=>e.endsWith(".rs"),key:"rust"},{test:e=>e.endsWith(".gradle"),key:"gradle"},{test:e=>e.endsWith(".sql"),key:"postgresql"},{test:e=>e.endsWith(".html"),key:"html5"},{test:e=>e.endsWith(".css"),key:"css3"},{test:e=>e.endsWith(".graphql")||e.endsWith(".gql"),key:"graphql"},{test:e=>e.endsWith(".png")||e.endsWith(".jpg")||e.endsWith(".jpeg")||e.endsWith(".gif")||e.endsWith(".webp")||e.endsWith(".svg"),key:"image"}];e.s(["FileIcon",0,function({name:e,icon:r}){let a,o,l=r!==null&&r!==void 0?r:(a=e.toLowerCase(),(o=i.find(({test:e})=>e(a)))?o.key:null);return null!==l?(0,t.jsx)("img",{className:"fi-img",src:`/assets/icons/${l}.svg`,width:"15",height:"15",alt:""}):(0,t.jsx)("span",{className:"fi-fallback",children:(0,t.jsx)(n,{size:14})});}]);},56049,e=>{"use strict";async function t(e,t,n){let i=t&&document.activeElement instanceof HTMLElement?document.activeElement:null,r=document.createElement("textarea");r.value=e,r.setAttribute("readonly","true"),r.style.position="fixed",r.style.inset="0 auto auto -9999px",r.style.width="1px",r.style.height="1px",r.style.opacity="0",r.style.pointerEvents="none",document.body.appendChild(r);try{if(r.focus(),r.select(),!("function"==typeof document.execCommand&&document.execCommand("copy")))throw Error("clipboard-fallback-failed",{cause:n});}finally{r.remove(),t&&(i===null||i===void 0?void 0:i.focus());}}async function n(e,n){var _n$restoreFocus,_navigator$clipboard;let i,r=(_n$restoreFocus=n===null||n===void 0?void 0:n.restoreFocus)!==null&&_n$restoreFocus!==void 0?_n$restoreFocus:!0,a="u"<typeof navigator?void 0:(_navigator$clipboard=navigator.clipboard)===null||_navigator$clipboard===void 0?void 0:_navigator$clipboard.writeText;if(void 0!==a&&void 0!==navigator.clipboard)try{await a.call(navigator.clipboard,e);return;}catch(e){i=e;}if("u"<typeof document||null===document.body)throw Error("clipboard-unavailable",{cause:i});await t(e,r,i);}e.s(["copyTextToClipboard",0,n]);},83449,e=>{"use strict";function t(e,t){return void 0===t?e.toFixed(1):new Intl.NumberFormat(t,{maximumFractionDigits:1}).format(e);}e.s(["costClassLabel",0,function(e){switch(e){case"low":return"Low cost";case"medium":return"Medium cost";case"high":return"High cost";case"unknown":return"Unknown cost";}},"formatBytes",0,function(e,n){return!Number.isFinite(e)||e<=0?"0 B":e<1024?`${e.toString()} B`:e<1048576?`${t(e/1024,n)} KB`:e<0x40000000?`${t(e/1048576,n)} MB`:`${t(e/0x40000000,n)} GB`;},"formatBytesPrecise",0,function(e){var t;if(!Number.isFinite(e)||e<=0)return"0 B";let n=["B","KB","MB","GB"],i=e,r=0;for(;i>=1024&&r<n.length-1;)i/=1024,r+=1;let a=(t=i,0===r?t.toFixed(0):t>=10?t.toFixed(1):t.toFixed(2));return`${a} ${n[r]}`;},"formatDate",0,function(e){try{return new Date(e).toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"});}catch{return"string"==typeof e?e:e.toString();}},"formatDurationCompact",0,function(e){if(!Number.isFinite(e)||e<=0)return"0s";let t=Math.round(e/1e3),n=Math.floor(t/60),i=t%60;return 0===n?`${i.toString()}s`:`${n.toString()}m ${i.toString().padStart(2,"0")}s`;},"formatMs",0,function(e){if(e<1e3)return`${e.toString()} ms`;if(e<6e4)return`${(e/1e3).toFixed(1)} s`;let t=Math.floor(e/6e4),n=Math.floor(e%6e4/1e3);return`${t.toString()}m ${n.toString()}s`;},"formatTokens",0,function(e){return e<1e3?e.toString():`${(e/1e3).toFixed(1)}k`;},"outcomeLabel",0,function(e){switch(e){case"fix-applied":return"Fix applied";case"fix-proposed":return"Fix proposed (dry-run)";case"investigation-only":return"Investigation only";case"limit-exceeded":return"Limit exceeded";case"dry-run":return"Dry-run";default:return e.charAt(0).toUpperCase()+e.slice(1);}},"runStatusLabel",0,function(e){var _running$completed$dr;return(_running$completed$dr={running:"Running",completed:"Completed","dry-run":"Dry run",rejected:"Rejected",cancelled:"Cancelled",failed:"Failed","fix-applied":"Fix applied","fix-proposed":"Fix proposed","investigation-only":"Investigation only"}[e])!==null&&_running$completed$dr!==void 0?_running$completed$dr:e;},"toSafeIsoString",0,function(e){let t=new Date(e);return Number.isNaN(t.getTime())?void 0:t.toISOString();}]);}]);
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
.CodingWorkbenchProgress-module__q7cXsq__cmpBar{align-items:center;gap:var(--space-2);min-height:2rem;padding:var(--space-1) 0;color:var(--text-primary);background:0 0;border:0;display:flex}.CodingWorkbenchProgress-module__q7cXsq__cmpCopy{align-items:baseline;gap:var(--space-1) var(--space-3);flex-wrap:wrap;flex:1;min-width:0;display:flex}.CodingWorkbenchProgress-module__q7cXsq__cmpCopy strong{font-size:var(--text-caption)}.CodingWorkbenchProgress-module__q7cXsq__cmpIndicator{width:14px;height:14px;color:var(--text-secondary);border:1.5px solid;border-radius:50%;flex:0 0 14px;place-items:center;font-weight:700;display:grid}.CodingWorkbenchProgress-module__q7cXsq__cmpBar[data-status=working]{border-color:var(--accent-line)}.CodingWorkbenchProgress-module__q7cXsq__cmpBar[data-status=working] .CodingWorkbenchProgress-module__q7cXsq__cmpIndicator{border-color:var(--border-subtle);border-top-color:var(--text-accent);animation:1.2s linear infinite CodingWorkbenchProgress-module__q7cXsq__workbench-spin}.CodingWorkbenchProgress-module__q7cXsq__cmpBar[data-status=approval],.CodingWorkbenchProgress-module__q7cXsq__cmpBar[data-status=question],.CodingWorkbenchProgress-module__q7cXsq__cmpBar[data-status=approval] .CodingWorkbenchProgress-module__q7cXsq__cmpIndicator,.CodingWorkbenchProgress-module__q7cXsq__cmpBar[data-status=question] .CodingWorkbenchProgress-module__q7cXsq__cmpIndicator{color:var(--warn)}.CodingWorkbenchProgress-module__q7cXsq__cmpAction{min-height:2rem;padding:var(--space-1) var(--space-2);border:1px solid var(--border-subtle);border-radius:var(--radius-control);background:var(--surface-secondary);color:var(--text-primary);font:inherit;font-size:var(--text-caption);cursor:pointer}.CodingWorkbenchProgress-module__q7cXsq__cmpAction:focus-visible{outline:2px solid var(--text-accent);outline-offset:3px}@keyframes CodingWorkbenchProgress-module__q7cXsq__workbench-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.CodingWorkbenchProgress-module__q7cXsq__cmpBar[data-status=working] .CodingWorkbenchProgress-module__q7cXsq__cmpIndicator{animation:none}}@media (max-width:480px){.CodingWorkbenchProgress-module__q7cXsq__cmpBar{flex-wrap:wrap}.CodingWorkbenchProgress-module__q7cXsq__cmpAction{margin-inline-start:22px}}
|
|
2
|
+
.CodingWorkbenchCiReadiness-module__vV_BAG__cmp-ci-state{font-weight:var(--weight-semibold);color:var(--text-primary);display:block}.CodingWorkbenchCiReadiness-module__vV_BAG__cmp-ci-state[data-state=technical-ready]{color:var(--feedback-success)}.CodingWorkbenchCiReadiness-module__vV_BAG__cmp-ci-state[data-state=failed],.CodingWorkbenchCiReadiness-module__vV_BAG__cmp-ci-state[data-state=blocked]{color:var(--feedback-danger)}.CodingWorkbenchCiReadiness-module__vV_BAG__cmp-ci-state[data-state=stale],.CodingWorkbenchCiReadiness-module__vV_BAG__cmp-ci-state[data-state=unknown]{color:var(--feedback-warning)}.CodingWorkbenchCiReadiness-module__vV_BAG__cmp-ci-groups{gap:var(--space-3);margin-block:var(--space-3);grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));display:grid}.CodingWorkbenchCiReadiness-module__vV_BAG__cmp-ci-checks{min-width:0;padding:var(--space-3);border:1px solid var(--border-subtle);border-radius:var(--radius-control);background:var(--surface-inset)}.CodingWorkbenchCiReadiness-module__vV_BAG__cmp-ci-checks h4{margin:0 0 var(--space-2)}.CodingWorkbenchCiReadiness-module__vV_BAG__cmp-ci-counts{gap:var(--space-2) var(--space-8);grid-template-columns:repeat(2,minmax(0,1fr));margin:0;display:grid}.CodingWorkbenchCiReadiness-module__vV_BAG__cmp-ci-counts>div{justify-content:space-between;gap:var(--space-1);flex-wrap:wrap;display:flex}.CodingWorkbenchCiReadiness-module__vV_BAG__cmp-ci-counts dd{font-variant-numeric:tabular-nums;margin:0}.CodingWorkbenchCiReadiness-module__vV_BAG__cmp-ci-value{overflow-wrap:anywhere}@media (forced-colors:active){.CodingWorkbenchCiReadiness-module__vV_BAG__cmp-ci-checks{border-color:canvastext}.CodingWorkbenchCiReadiness-module__vV_BAG__cmp-ci-state{color:canvastext}}
|
|
3
|
+
.CodingWorkbenchJourneyOutcome-module__QjLLPW__cmp-journey-state{color:var(--text-primary);font-weight:var(--weight-semibold);display:block}.CodingWorkbenchJourneyOutcome-module__QjLLPW__cmp-journey-state[data-state=completed]{color:var(--feedback-success)}.CodingWorkbenchJourneyOutcome-module__QjLLPW__cmp-journey-state[data-state=blocked],.CodingWorkbenchJourneyOutcome-module__QjLLPW__cmp-journey-state[data-state=recovery-required]{color:var(--feedback-danger)}.CodingWorkbenchJourneyOutcome-module__QjLLPW__cmp-journey-state[data-state=stale]{color:var(--feedback-warning)}.CodingWorkbenchJourneyOutcome-module__QjLLPW__cmp-journey-links,.CodingWorkbenchJourneyOutcome-module__QjLLPW__cmp-journey-actions{gap:var(--space-3);margin-block:var(--space-3);flex-wrap:wrap;display:flex}.CodingWorkbenchJourneyOutcome-module__QjLLPW__cmp-journey-links a{color:var(--text-accent);overflow-wrap:anywhere;text-underline-offset:.2em;text-decoration:underline}.CodingWorkbenchJourneyOutcome-module__QjLLPW__cmp-journey-links a:focus-visible{outline:var(--focus-w) solid var(--focus-ring);outline-offset:var(--space-1)}.CodingWorkbenchJourneyOutcome-module__QjLLPW__cmp-journey-groups{gap:var(--space-3);margin-block:var(--space-3);grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));display:grid}.CodingWorkbenchJourneyOutcome-module__QjLLPW__cmp-journey-group{min-width:0;padding:var(--space-3);border:1px solid var(--border-subtle);border-radius:var(--radius-control);background:var(--surface-inset)}.CodingWorkbenchJourneyOutcome-module__QjLLPW__cmp-journey-group h4,.CodingWorkbenchJourneyOutcome-module__QjLLPW__cmp-journey-group p{margin:0 0 var(--space-2)}.CodingWorkbenchJourneyOutcome-module__QjLLPW__cmp-journey-value{overflow-wrap:anywhere}@media (forced-colors:active){.CodingWorkbenchJourneyOutcome-module__QjLLPW__cmp-journey-state{color:canvastext}.CodingWorkbenchJourneyOutcome-module__QjLLPW__cmp-journey-group{border-color:canvastext}.CodingWorkbenchJourneyOutcome-module__QjLLPW__cmp-journey-links a{color:linktext}}.CodingWorkbenchJourneyOutcome-module__QjLLPW__cmp-journey-error{color:var(--feedback-danger);overflow-wrap:anywhere}
|
|
@@ -0,0 +1 @@
|
|
|
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,b=c.Icons.moon,S=c.Icons.sun;function j(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 M(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?G(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){return[{options:[{value:"",label:e("gatewaySetup.gateway.endpointStyle.unstated")},{value:"openai-compatible",label:e("gatewaySetup.gateway.endpointStyle.openaiCompatible")},{value:"azure-openai-deployment",label:e("gatewaySetup.gateway.endpointStyle.azureDeploymentPath")}]}];}function L(e){let t=e.trim();return""===t?void 0:t;}function D(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 H(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 F(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 q(e){return""!==e.voiceModelId.trim()||""!==e.voiceRealtimeModelId.trim()||""!==e.voiceSpeechOutputModelId.trim();}function z(e){let t=e.length;for(;t>0&&"/"===e[t-1];)t-=1;return e.slice(0,t);}let $="/chat/completions";function G(e){let t,i=(t=z(e.trim())).endsWith($)?z(t.slice(0,-$.length)):t;try{return z(new URL(i).href);}catch{return i;}}function _(e){return{...(""===e.importedEndpointStyle?{}:{endpointStyle:e.importedEndpointStyle}),...(""===e.importedApiVersion?{}:{apiVersion:e.importedApiVersion})};}function W(e){return{...(""===e.voiceEndpointStyle?{}:{voiceEndpointStyle:e.voiceEndpointStyle}),...(""===e.voiceApiVersion.trim()?{}:{voiceApiVersion:e.voiceApiVersion.trim()}),...(""===e.voiceRealtimeAuthMode?{}:{voiceRealtimeAuthMode:e.voiceRealtimeAuthMode})};}async function Y(e,t){var _f$skippedModelIds,_o$skippedModelIds,_o$unsupportedModels,_o$droppedEmbeddingMo,_o$unverifiedEmbeddin,_o$unverifiedChatMode;var i,o;let a,s,l,d=j(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&&q(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&&F(e)&&!q(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:j(e.imageInputModelIds),parsedWorkflowEligibleModelIds:j(e.workflowEligibleModelIds),parsedTimeoutMs:u.timeoutMs,parsedVoiceTimeoutMs:u.voiceTimeoutMs},m=F(e)?"voice":"standard",v=function(e,t,i){var o;let a,s,n,l,d,r,c,u;return"standard"===i?{}:(a=L((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=L(o.voiceApiKey),n=L(o.voiceApiKeyHeaderName),l=L(o.voiceModelId),d=L(o.voiceRealtimeModelId),r=L(o.voiceRealtimeTranscriptionModelId),c=L(o.voiceSpeechOutputModelId),u=L(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:L(e.baseUrl),apiKey:L(e.apiKey),apiKeyHeaderName:L(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?W(e):{}:""!==e.voiceProtocolBoundBaseUrl&&G(e.voiceProtocolBoundBaseUrl)!==G(s)?{}:W(e)),...(""===(l=e.baseUrl.trim())?e.preserveExisting&&""===e.importedEndpointBaseUrl?_(e):{}:""!==e.importedEndpointBaseUrl&&G(l)!==G(e.importedEndpointBaseUrl)?{}:_(e)),...(!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 X(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 J({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=>X(e,s)})]});}function Q({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=>X(e,a)})]});}function Z({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 ee({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.gateway.apiVersion.label")," ",(0,t.jsx)("span",{className:"dlg-opt",children:a("gatewaySetup.gateway.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 et({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 ei({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 eo({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 ea({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 es({endpointStyleLabelId:e,endpointStyle:i,setEndpointStyle:o,apiVersion:a,setApiVersion:s,disabled:n}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(eh,{labelId:e,labelKey:"gatewaySetup.gateway.endpointStyle.label",sections:B,value:i,disabled:n,onChange:o}),(0,t.jsx)(ee,{value:a,disabled:n,onChange:s})]});}function en(e){let i=e.busy||void 0!==e.success;return(0,t.jsxs)("div",{className:"gw-grid",children:[(0,t.jsx)(J,{preserveExisting:e.preserveExisting,value:e.baseUrl,disabled:i,inputRef:e.baseUrlRef,onChange:e.setBaseUrl}),(0,t.jsx)(Q,{preserveExisting:e.preserveExisting,value:e.apiKey,disabled:i,onChange:e.setApiKey}),(0,t.jsx)(Z,{preserveExisting:e.preserveExisting,value:e.apiKeyHeaderName,disabled:i,onChange:e.setApiKeyHeaderName}),(0,t.jsx)(es,{...e,disabled:i}),(0,t.jsx)(et,{preserveExisting:e.preserveExisting,value:e.timeoutMs,disabled:i,onChange:e.setTimeoutMs}),(0,t.jsx)(ei,{value:e.deploymentNames,disabled:i,onChange:e.setDeploymentNames}),(0,t.jsx)(eo,{value:e.imageInputModelIds,disabled:i,onChange:e.setImageInputModelIds}),(0,t.jsx)(ea,{t:e.t,value:e.workflowEligibleModelIds,disabled:i,onChange:e.setWorkflowEligibleModelIds})]});}function el({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 ed({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)(el,{storedApiKeyHeaderName:i,visibleModelNames:o,hiddenModelCount:a,fields:s}):s]});}function er({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 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.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 eu({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 ep({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 em({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 ev({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 eg({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 eh({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 ey({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 ef({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 ew({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 ex({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 eb({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 eS({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 ej(e){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(er,{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)(ec,{t:e.t,value:e.voiceModelId,disabled:e.disabled,onChange:e.setVoiceModelId}),(0,t.jsx)(em,{t:e.t,value:e.voiceSpeechOutputModelId,disabled:e.disabled,onChange:e.setVoiceSpeechOutputModelId,onBlur:e.commitVoiceSpeechOutputModelId}),(0,t.jsx)(ev,{t:e.t,value:e.voiceOutputVoiceId,disabled:e.disabled,onChange:e.setVoiceOutputVoiceId})]});}function eI(e){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(eu,{t:e.t,value:e.voiceRealtimeModelId,disabled:e.disabled,onChange:e.setVoiceRealtimeModelId,onBlur:e.commitVoiceRealtimeModelId}),(0,t.jsx)(ep,{t:e.t,value:e.voiceRealtimeTranscriptionModelId,disabled:e.disabled,requiredForRealtime:""!==e.voiceRealtimeModelId.trim(),onChange:e.setVoiceRealtimeTranscriptionModelId}),(0,t.jsx)(eS,{t:e.t,checked:e.voiceSupportsSemanticTurnDetection,disabled:e.disabled,onChange:e.setVoiceSupportsSemanticTurnDetection}),(0,t.jsx)(eg,{t:e.t,labelId:e.voiceProviderLocalityLabelId,value:e.voiceProviderLocality,disabled:e.disabled,onChange:e.setVoiceProviderLocality}),(0,t.jsx)(eh,{labelId:e.voiceEndpointStyleLabelId,labelKey:"gatewaySetup.voice.endpointStyle.label",sections:P,value:e.voiceEndpointStyle,disabled:e.disabled,onChange:e.setVoiceEndpointStyle}),(0,t.jsx)(ey,{value:e.voiceApiVersion,disabled:e.disabled,onChange:e.setVoiceApiVersion}),(0,t.jsx)(eh,{labelId:e.voiceRealtimeAuthModeLabelId,labelKey:"gatewaySetup.voice.realtimeAuthMode.label",sections:O,value:e.voiceRealtimeAuthMode,disabled:e.disabled,onChange:e.setVoiceRealtimeAuthMode})]});}function eM(e){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ef,{t:e.t,preserveExisting:e.preserveExisting,value:e.voiceBaseUrl,disabled:e.disabled,onChange:e.setVoiceBaseUrl,onBlur:e.commitVoiceBaseUrl}),(0,t.jsx)(ew,{t:e.t,preserveExisting:e.preserveExisting,value:e.voiceApiKey,disabled:e.disabled,onChange:e.setVoiceApiKey}),(0,t.jsx)(ex,{t:e.t,preserveExisting:e.preserveExisting,value:e.voiceApiKeyHeaderName,disabled:e.disabled,onChange:e.setVoiceApiKeyHeaderName}),(0,t.jsx)(eb,{t:e.t,preserveExisting:e.preserveExisting,value:e.voiceTimeoutMs,disabled:e.disabled,onChange:e.setVoiceTimeoutMs})]});}function eN(e){let i=e.busy||void 0!==e.success;return(0,t.jsxs)("div",{className:"gw-grid",children:[(0,t.jsx)(ej,{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)(eI,{...e,disabled:i}),(0,t.jsx)(eM,{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 eC({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 ek({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)(eC,{t:e,voiceModelNames:o,needsSetup:l,fields:n}):n]});}function eV({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 eA({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 eE({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.useId)(),O=(0,i.useRef)(null),P=(0,i.useRef)(null),B=(0,i.useRef)(null),L=(0,i.useRef)(void 0),[q,z]=(0,i.useState)(""),[$,_]=(0,i.useState)(""),[W,X]=(0,i.useState)(""),[J,Q]=(0,i.useState)(""),[Z,ee]=(0,i.useState)(""),[et,ei]=(0,i.useState)(""),[eo,ea]=(0,i.useState)(()=>a?l.filter(e=>"chat"===e.kind&&!0===e.workflowEligible).map(e=>e.id).join("\n"):""),[es,el]=(0,i.useState)(!1),[er,ec]=(0,i.useState)([]),[eu,ep]=(0,i.useState)(""),[em,ev]=(0,i.useState)(""),[eg,eh]=(0,i.useState)(""),[ey,ef]=(0,i.useState)(""),[ew,ex]=(0,i.useState)(""),eb=()=>{ex(eq.trim());},[eS,ej]=(0,i.useState)(""),[eI,eM]=(0,i.useState)(""),[eC,eT]=(0,i.useState)(""),[eR,eK]=(0,i.useState)(""),[eU,eO]=(0,i.useState)(""),[eP,eB]=(0,i.useState)(""),[eL,eD]=(0,i.useState)(!1),[eH,eF]=(0,i.useState)(!1),[eq,ez]=(0,i.useState)(""),[e$,eG]=(0,i.useState)(""),[e_,eW]=(0,i.useState)(""),[eY,eX]=(0,i.useState)(""),[eJ,eQ]=(0,i.useState)(""),[eZ,e0]=(0,i.useState)(""),[e1,e2]=(0,i.useState)(()=>!!a&&void 0!==k(l)),[e7,e5]=(0,i.useState)(!1),[e8,e6]=(0,i.useState)(!1),[e4,e9]=(0,i.useState)(!1),[e3,te]=(0,i.useState)(""),[tt,ti]=(0,i.useState)(""),[to,ta]=(0,i.useState)(""),[ts,tn]=(0,i.useState)(!1),[tl,td]=(0,i.useState)("azure-foundry"),[tr,tc]=(0,i.useState)(!1),[tu,tp]=(0,i.useState)(""),[tm,tv]=(0,i.useState)(""),[tg,th]=(0,i.useState)(!1),[ty,tf]=(0,i.useState)(),[tw,tx]=(0,i.useState)(),[tb,tS]=(0,i.useState)(),tj=M(l).length>0,tI=(0,i.useRef)(a?N(l):void 0),tM=(0,i.useRef)(a?C(l):void 0),tN=(0,i.useRef)(a&&tj?A:void 0),tC=e=>{e2(e),e5(!0);},tk=(e,t)=>{e0(""),e2(V(a,l,e,t)),e5(!1);},tV=()=>{ta(""),tn(!1),e6(!1),e9(!0),te("");},tA=(e,t)=>{let i=t===A,o=tU(e);eh(o?eu:""),ef(o?em:""),ej(o?eI:""),ex(o?eC:""),eX(""),eQ(""),ti(""),tk("",e),tV(),tI.current=i?N(l):void 0,tM.current=i?C(l):void 0;},tE=e=>{let t="function"==typeof e?e(eJ):e;eQ(t),R(tI,E(t,a?N(l):void 0),()=>tk(t,eq),!1),e7||e2(V(a,l,t,eq));},tT=e=>{let t="function"==typeof e?e(tt):e;ti(t),R(tM,E(t,a?C(l):void 0),tV,!1),tR(t);},tR=e=>{e4&&e8&&e.trim()!==e3&&e6(!1);},tK=e=>{let t="function"==typeof e?e(eq):e;ez(t);let i=T(t,a,tj);R(tN,i,()=>tA(t,i),!1),tU(t)&&tO();},tU=e=>""!==eC&&G(e)===G(eC),tO=()=>{""===ew&&(eh(eu),ef(em),ej(eI),ex(eC));};async function tP(e){if(e.preventDefault(),!tg){var _v$current;th(!0),tf(void 0),tx(void 0),tS(void 0),(_v$current=v.current)===null||_v$current===void 0?void 0:_v$current.focus();try{let e=await Y({baseUrl:q,apiKey:$,apiKeyHeaderName:W,timeoutMs:J,deploymentNames:Z,imageInputModelIds:et,imageInputModelIdsConfigured:es,importedEmbeddingModelIds:er,workflowEligibleModelIds:eo,workflowEligibleModelIdsConfigured:eH,voiceBaseUrl:eq,voiceApiKey:e$,voiceApiKeyHeaderName:e_,voiceModelId:eY,voiceRealtimeModelId:eJ,voiceRealtimeTranscriptionModelId:eZ,voiceSupportsSemanticTurnDetection:e1,voiceSemanticTurnDetectionConfigured:e7,voiceSupportsSpeechSynthesisInstructions:e8,voiceSpeechSynthesisInstructionsConfigured:e4,importedVoiceEndpointStyle:eu,importedVoiceApiVersion:em,voiceEndpointStyle:eg,voiceRealtimeAuthMode:eS,voiceApiVersion:ey,voiceProtocolBoundBaseUrl:ew,importedVoiceRealtimeAuthMode:eI,importedVoiceEndpointBaseUrl:eC,importedEndpointStyle:eR,importedApiVersion:eU,importedEndpointBaseUrl:eP,voiceSpeechOutputModelId:tt,voiceOutputVoiceId:to,voiceOutputVoiceIdConfigured:ts,voiceProviderLocality:tl,voiceProviderLocalityConfigured:tr,voiceTimeoutMs:tu,figmaAccessToken:tm,preserveExisting:a,hasStoredVoiceProvider:M(l).length>0,storedRealtimeModelId:N(l)},c);if("validation-error"===e.kind){tf(e.message),th(!1);return;}th(!1),tS(e.message),(0,g.notifyGatewayConfigUpdated)(),L.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."};tf(e.message),tx(e.code),th(!1);}}}(0,i.useEffect)(()=>{var _P$current,_O$current;let e=v.current;if(null===e)return;e.open||e.showModal();let t=document.documentElement;return D(t,"keikoModalOpenCount","data-keiko-modal-open"),D(t,"keikoGatewaySetupOpenCount","data-keiko-gateway-setup-open"),B.current=document.activeElement,a?(_P$current=P.current)===null||_P$current===void 0?void 0:_P$current.focus():(_O$current=O.current)===null||_O$current===void 0?void 0:_O$current.focus(),()=>{var _B$current,_B$current$focus;void 0!==L.current&&window.clearTimeout(L.current),H(t,"keikoModalOpenCount","data-keiko-modal-open"),H(t,"keikoGatewaySetupOpenCount","data-keiko-gateway-setup-open"),e.open&&e.close(),(_B$current=B.current)===null||_B$current===void 0||(_B$current$focus=_B$current.focus)===null||_B$current$focus===void 0?void 0:_B$current$focus.call(_B$current);};},[a]),(0,i.useEffect)(()=>{let t=v.current;if(null===t)return;let i=i=>{let o,a;if("Escape"===i.key){if(tg||void 0!==tb||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);},[tg,e,tb]),(0,i.useEffect)(()=>{var _P$current2,_O$current2;void 0===ty||tg||(a&&""===q.trim()&&""===$.trim()?(_P$current2=P.current)===null||_P$current2===void 0?void 0:_P$current2.focus():(_O$current2=O.current)===null||_O$current2===void 0?void 0:_O$current2.focus());},[$,q,tg,ty,a]);let tB=j(Z),tL=j(et),tD=j(eo),tH=F({voiceBaseUrl:eq,voiceEndpointStyle:eg,voiceApiVersion:ey,voiceRealtimeAuthMode:eS,voiceApiKey:e$,voiceApiKeyHeaderName:e_,voiceModelId:eY,voiceRealtimeModelId:eJ,voiceRealtimeTranscriptionModelId:eZ,voiceSpeechOutputModelId:tt,voiceTimeoutMs:tu,voiceSemanticTurnDetectionConfigured:e7,voiceSpeechSynthesisInstructionsConfigured:e4,voiceOutputVoiceIdConfigured:ts,voiceProviderLocalityConfigured:tr}),tF=!a,tq=""!==(d={baseUrl:q,apiKey:$,apiKeyHeaderName:W,timeoutMs:J,parsedDeploymentNames:tB,parsedImageInputModelIds:tL,parsedWorkflowEligibleModelIds:tD,workflowEligibleModelIdsConfigured:eH,voiceCredentialInput:tH}).baseUrl.trim()||""!==d.apiKey.trim()||""!==d.apiKeyHeaderName.trim()||""!==d.timeoutMs.trim()||d.parsedDeploymentNames.length>0||d.parsedImageInputModelIds.length>0||d.workflowEligibleModelIdsConfigured||d.voiceCredentialInput,tz=!(r={busy:tg||eL,success:tb,requiresGatewayCredentials:tF,baseUrl:q,apiKey:$,hasGatewayCredentialInput:tq,hasFigmaCredentialInput:""!==tm.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."},tG=l.map(e=>e.id),t_=tG.slice(0,6),tW=Math.max(0,tG.length-t_.length),tY=M(l),tX=(0,t.jsx)(en,{t:c,preserveExisting:a,busy:tg,success:tb,baseUrl:q,setBaseUrl:z,baseUrlRef:O,apiKey:$,setApiKey:_,apiKeyHeaderName:W,setApiKeyHeaderName:X,endpointStyleLabelId:K,endpointStyle:eR,setEndpointStyle:e=>{eK(e),"azure-openai-deployment"!==e&&eO(""),eB("");},apiVersion:eU,setApiVersion:e=>{eO(e),eB("");},timeoutMs:J,setTimeoutMs:Q,deploymentNames:Z,setDeploymentNames:ee,imageInputModelIds:et,setImageInputModelIds:e=>{el(!0),ei(e);},workflowEligibleModelIds:eo,setWorkflowEligibleModelIds:e=>{eF(!0),ea(e);}}),tJ=(0,t.jsx)(eN,{t:c,busy:tg,success:tb,preserveExisting:a,storedModels:l,voiceModelId:eY,setVoiceModelId:eX,voiceRealtimeModelId:eJ,setVoiceRealtimeModelId:tE,commitVoiceRealtimeModelId:()=>{R(tI,E(eJ,a?N(l):void 0),()=>tk(eJ,eq),!0);},voiceRealtimeTranscriptionModelId:eZ,setVoiceRealtimeTranscriptionModelId:e0,voiceSupportsSemanticTurnDetection:e1,setVoiceSupportsSemanticTurnDetection:tC,voiceSpeechOutputModelId:tt,setVoiceSpeechOutputModelId:tT,commitVoiceSpeechOutputModelId:()=>{R(tM,E(tt,a?C(l):void 0),tV,!0);},voiceOutputVoiceId:to,setVoiceOutputVoiceId:e=>{ta(e),tn(!0);},voiceProviderLocalityLabelId:h,voiceEndpointStyleLabelId:I,voiceRealtimeAuthModeLabelId:U,voiceRealtimeAuthMode:eS,setVoiceRealtimeAuthMode:e=>{ej(e),eb();},voiceEndpointStyle:eg,setVoiceEndpointStyle:e=>{eh(e),"azure-openai-deployment"!==e&&ef(""),eb();},voiceApiVersion:ey,setVoiceApiVersion:e=>{ef(e),eb();},voiceProviderLocality:tl,setVoiceProviderLocality:e=>{td(e),tc(!0);},voiceBaseUrl:eq,setVoiceBaseUrl:tK,commitVoiceBaseUrl:()=>{let e=T(eq,a,tj);R(tN,e,()=>tA(eq,e),!0);},voiceApiKey:e$,setVoiceApiKey:eG,voiceApiKeyHeaderName:e_,setVoiceApiKeyHeaderName:eW,voiceTimeoutMs:tu,setVoiceTimeoutMs:tp}),tQ=(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(),tg||void 0!==tb||(e===null||e===void 0?void 0:e());},tabIndex:-1,children:(0,t.jsxs)("form",{className:"gw-form",onSubmit:e=>void tP(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)(b,{size:16}):(0,t.jsx)(S,{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:tg||void 0!==tb,onApply:function(e){var _e$embeddingModelIds,_t$endpointStyle,_t$apiVersion,_t$baseUrl$trim,_t$baseUrl;var t;void 0!==e.baseUrl&&z(e.baseUrl),void 0!==e.apiKey&&_(e.apiKey),void 0!==e.apiKeyHeaderName&&X(e.apiKeyHeaderName),void 0!==e.timeoutMs&&Q(e.timeoutMs),e.deploymentNames.length>0&&ee(e.deploymentNames.join("\n")),el(void 0!==e.imageInputModelIds),void 0!==e.imageInputModelIds&&ei(e.imageInputModelIds.join("\n")),eF(void 0!==e.workflowEligibleModelIds),void 0!==e.workflowEligibleModelIds&&ea(e.workflowEligibleModelIds.join("\n")),ec((_e$embeddingModelIds=e.embeddingModelIds)!==null&&_e$embeddingModelIds!==void 0?_e$embeddingModelIds:[]),void 0!==e.figmaAccessToken&&tv(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&&tK(e.voiceBaseUrl),void 0!==e.voiceApiKey&&eG(e.voiceApiKey),void 0!==e.voiceApiKeyHeaderName&&eW(e.voiceApiKeyHeaderName),void 0!==e.voiceTimeoutMs&&tp(e.voiceTimeoutMs),i=void 0!==e.voiceBaseUrl,(o=(e,t)=>{i&&t(e!==null&&e!==void 0?e:"");})(e.voiceModelId,eX),o(e.voiceRealtimeModelId,tE),o(e.voiceRealtimeTranscriptionModelId,e0),o(e.voiceSpeechOutputModelId,tT),(void 0!==e.voiceBaseUrl||void 0!==e.voiceOutputVoiceId)&&(ta((_e$voiceOutputVoiceId=e.voiceOutputVoiceId)!==null&&_e$voiceOutputVoiceId!==void 0?_e$voiceOutputVoiceId:""),tn(void 0!==e.voiceOutputVoiceId)),(void 0!==e.voiceBaseUrl||void 0!==e.voiceSupportsSpeechSynthesisInstructions)&&(e6((_e$voiceSupportsSpeec=e.voiceSupportsSpeechSynthesisInstructions)!==null&&_e$voiceSupportsSpeec!==void 0?_e$voiceSupportsSpeec:!1),e9(void 0!==e.voiceSupportsSpeechSynthesisInstructions),te(void 0!==e.voiceSupportsSpeechSynthesisInstructions?(_e$voiceSpeechOutputM=e.voiceSpeechOutputModelId)!==null&&_e$voiceSpeechOutputM!==void 0?_e$voiceSpeechOutputM:"":"")),void 0!==e.voiceProviderLocality&&(td(e.voiceProviderLocality),tc(!0)),void 0!==e.voiceSemanticTurnDetection&&tC(e.voiceSemanticTurnDetection),void 0!==(t=e).voiceBaseUrl&&(eh((_t$voiceEndpointStyle=t.voiceEndpointStyle)!==null&&_t$voiceEndpointStyle!==void 0?_t$voiceEndpointStyle:""),ef((_t$voiceApiVersion=t.voiceApiVersion)!==null&&_t$voiceApiVersion!==void 0?_t$voiceApiVersion:""),ej((_t$voiceRealtimeAuthM=t.voiceRealtimeAuthMode)!==null&&_t$voiceRealtimeAuthM!==void 0?_t$voiceRealtimeAuthM:""),tN.current=T(t.voiceBaseUrl,a,tj),ex(t.voiceBaseUrl.trim()),ep((_t$voiceEndpointStyle2=t.voiceEndpointStyle)!==null&&_t$voiceEndpointStyle2!==void 0?_t$voiceEndpointStyle2:""),ev((_t$voiceApiVersion2=t.voiceApiVersion)!==null&&_t$voiceApiVersion2!==void 0?_t$voiceApiVersion2:""),eM((_t$voiceRealtimeAuthM2=t.voiceRealtimeAuthMode)!==null&&_t$voiceRealtimeAuthM2!==void 0?_t$voiceRealtimeAuthM2:""),eT(t.voiceBaseUrl.trim()));}(e),eK((_t$endpointStyle=(t=e).endpointStyle)!==null&&_t$endpointStyle!==void 0?_t$endpointStyle:""),eO((_t$apiVersion=t.apiVersion)!==null&&_t$apiVersion!==void 0?_t$apiVersion:""),eB((_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:eD}),(0,t.jsx)(ed,{preserveExisting:a,storedApiKeyHeaderName:n,visibleModelNames:t_,hiddenModelCount:tW,fields:tX}),(0,t.jsx)(ek,{t:c,preserveExisting:a,voiceModelNames:tY,storedModels:l,fields:tJ}),(0,t.jsx)(eV,{preserveExisting:a,busy:tg,success:tb,figmaAccessToken:tm,setFigmaAccessToken:tv,figmaAccessTokenRef:P}),(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)(eA,{error:ty,errorCode:tw,success:tb,busy:tg}),(0,t.jsx)("span",{id:"gw-submit-requirements",className:"visually-hidden",children:t$.submitRequirements}),(0,t.jsx)(eE,{onCancel:e,busy:tg,success:tb,canSubmit:tz})]})})});return"u"<typeof document?tQ:(0,o.createPortal)(tQ,document.body);}]);},89398,function(e){e.n(e.i(70307));}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==typeof i?i:i+"";}function _toPrimitive(t,r){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,25327,e=>{"use strict";let r=new Set(["Error","AggregateError","EvalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError","AbortError","ChunkLoadError","DataCloneError","InvalidStateError","NetworkError","NotAllowedError","NotFoundError","NotReadableError","NotSupportedError","OverconstrainedError","QuotaExceededError","SecurityError","TimeoutError","ChunkLoadError","ApiError","ChatLookupFailure","DebugRequestError","DictationRecorderError","EditorModelOwnershipError","OverlappingPatchEditError","PollAbortError","RelationshipApiError","StreamingUnavailableError","TaskWorkspaceProvisionError","TaskWorkspaceRepairOperatorRequiredError","TaskWorkspaceRestoreVerificationError","VoiceControlError","VoiceLiveDictationControlError","VoiceRtcError","WorkspaceShortcutConflictError","WorkspaceShortcutReservedError","bigint","boolean","function","number","object","string","symbol","undefined"]);function t(e,r){return"string"==typeof e&&r.has(e);}let o=new Set(["target-missing"]),i=new Set(["replayed","stream-repaired","repair-acknowledged"]),n=new Set(["discarded-failed","retry-failed"]),a=["catalog-mismatch","sink-unwritable","storage-pressure","budget-exceeded","port-unwired","level-silent","storage-check-failed"],s=new Set(["ready","degraded","unavailable"]),d=new Set(a),c=new Set(["production-file","test-injected","unavailable"]);e.s(["CLIENT_BINDING_FAILURE_OUTCOMES",0,o,"CLIENT_BINDING_RELATED_CORRELATIONS_MAX",0,63,"CLIENT_BINDING_WINDOW_REF_PATTERN",0,/^[A-Za-z0-9._-]{1,128}$/u,"CLIENT_DIAGNOSTIC_LOSS_COUNT_KEYS",0,["bufferEvicted","postsThrottled","postsFailed","rejectionsSuppressed","errorsSuppressed"],"CLIENT_DIAGNOSTIC_LOSS_COUNT_MAX",0,1e6,"CLIENT_DIAGNOSTIC_MESSAGE_MAX_LENGTH",0,200,"CLIENT_GIT_CLIENT_OPERATION_FAILURE_OUTCOMES",0,n,"CLIENT_NOTE_MAX_LENGTH",0,160,"CLIENT_SESSION_REPAIR_ROUTINE_OUTCOMES",0,i,"CLIENT_STAGE_DURATION_MS_MAX",0,864e5,"clientErrorClass",0,function(e){return e instanceof Error||"u">typeof DOMException&&e instanceof DOMException?r.has(e.name)?e.name:"Error":typeof e;},"isActivityLogReadinessSnapshot",0,function(e){var r;return!!("object"==typeof e&&null!==e&&!Array.isArray(e))&&t(e.readiness,s)&&Array.isArray(r=e.reasons)&&r.length<=a.length&&r.every(e=>t(e,d))&&new Set(r).size===r.length&&"ready"===e.readiness==(0===e.reasons.length)&&t(e.writer,c)&&"number"==typeof e.lostEvents&&Number.isSafeInteger(e.lostEvents)&&e.lostEvents>=0;},"isClientDiagnosticFrame",0,function(e){return"string"==typeof e&&/^dist\/ui\/static\/_next\/static\/chunks\/[a-z0-9_-]{8,32}\.js:\d{1,8}:\d{1,8}$/u.test(e);}]);},18829,e=>{"use strict";let r=/[\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]/u;e.s(["ApiError",0,class extends Error{constructor(e,r,t){super(r),_defineProperty(this,"code",void 0),_defineProperty(this,"status",void 0),_defineProperty(this,"correlationId",void 0),this.code=e,this.status=t,this.name="ApiError";}},"GITHUB_ISSUE_BINDING_ID_MAX_CHARS",0,128,"SHA256_HEX",0,/^[0-9a-f]{64}$/u,"isBoundedText",0,function(e,t,o=!1){return"string"==typeof e&&(o||e.trim().length>0)&&e.length<=t&&!r.test(e);},"isRecordValue",0,function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e);}]);},20081,e=>{"use strict";var r=e.i(75297);let t="X-Keiko-Correlation-Id",o=new WeakMap();e.s(["CORRELATION_HEADER",0,t,"buildBffHeaders",0,function(e,r){var _e$method;var o;let i,{isStateChanging:n,hasBody:a}={isStateChanging:"GET"!==(i=((_e$method=e===null||e===void 0?void 0:e.method)!==null&&_e$method!==void 0?_e$method:"GET").toUpperCase())&&"HEAD"!==i,hasBody:(e===null||e===void 0?void 0:e.body)!==void 0&&null!==e.body},s={Accept:"application/json",[t]:r};for(let[r,t]of((n||a)&&(s["Content-Type"]="application/json"),n&&(s["X-Keiko-CSRF"]="1"),void 0===(o=e===null||e===void 0?void 0:e.headers)?[]:o instanceof Headers||Array.isArray(o)?[...new Headers(o)]:Object.entries(o)))!function(e,r,t){let o=r.toLowerCase();for(let r of Object.keys(e))r.toLowerCase()===o&&delete e[r];e[r]=t;}(s,r,t);return s;},"newClientCorrelationId",0,function(){return(0,r.secureRandomId)("ui");},"recordResponseCorrelationId",0,function(e,r){null!==r&&"object"==typeof e&&null!==e&&o.set(e,r);},"responseCorrelationIdOf",0,function(e){if("object"==typeof e&&null!==e)return o.get(e);}]);},24541,e=>{"use strict";var r=e.i(25327);let t=[],o=new Map();function i(e,t=1){var _o$get;if(!Number.isSafeInteger(t)||t<=0)return;let n=((_o$get=o.get(e))!==null&&_o$get!==void 0?_o$get:0)+t;o.set(e,Math.min(r.CLIENT_DIAGNOSTIC_LOSS_COUNT_MAX,n));}let n=function(e,r){t.push({message:e,meta:r}),t.length>100&&(t.shift(),i("bufferEvicted"));};e.s(["recordClientDiagnosticLoss",0,i,"reportClientDiagnostic",0,function(e,r){n(e,r);},"restoreClientDiagnosticLoss",0,function(e){if(void 0!==e)for(let t of r.CLIENT_DIAGNOSTIC_LOSS_COUNT_KEYS){let r=e[t];void 0!==r&&i(t,r);}},"setClientDiagnosticWriter",0,function(e){if(n=e,0!==t.length)for(let r of t.splice(0,t.length))e(r.message,r.meta);},"sseStreamErrorDiagnostic",0,function(e,r){let t=void 0===r?"unknown":String(r);return`[keiko] ${e} sse stream error (kind=sse-error, readyState=${t}, reason=${0===r?"connecting":2===r?"closed":"unknown"})`;},"takeClientDiagnosticLoss",0,function(){if(0===o.size)return;let e={};for(let[r,t]of o)e[r]=t;return o.clear(),e;}]);},29835,e=>{"use strict";var r=e.i(25327);e.s(["clientErrorSummary",0,function(e){return(0,r.clientErrorClass)(e);},"correlationIdOf",0,function(e){return"object"==typeof e&&null!==e&&"correlationId"in e&&"string"==typeof e.correlationId?e.correlationId:void 0;}]);},92215,e=>{"use strict";var r=e.i(18829),t=e.i(20081),o=e.i(24541),i=e.i(29835);async function n(e,r){var _r$parseFailureMessag;let t={code:"INTERNAL",message:((_r$parseFailureMessag=r===null||r===void 0?void 0:r.parseFailureMessage)!==null&&_r$parseFailureMessag!==void 0?_r$parseFailureMessag:function(e){return`HTTP ${e.toString()}`;})(e.status),envelope:void 0};try{let r=await e.json();if(!function(e){if("object"!=typeof e||null===e||!("error"in e))return!1;let r=e.error;return"object"==typeof r&&null!==r&&"code"in r&&"string"==typeof r.code&&"message"in r&&"string"==typeof r.message;}(r))return t;return{code:r.error.code,message:r.error.message,envelope:r};}catch{return t;}}async function a(e,a,s){var _s$correlationId;let d=(_s$correlationId=s===null||s===void 0?void 0:s.correlationId)!==null&&_s$correlationId!==void 0?_s$correlationId:(0,t.newClientCorrelationId)(),c=await fetch(e,{...a,headers:(0,t.buildBffHeaders)(a,d)});if(!c.ok){var _c$headers$get;let{code:e,message:a,envelope:l}=await n(c,s),u=new r.ApiError(e,a,c.status),f=l===null||l===void 0?void 0:l.error.correlationId;u.correlationId=(_c$headers$get=c.headers.get(t.CORRELATION_HEADER))!==null&&_c$headers$get!==void 0?_c$headers$get:"string"==typeof f?f:d;try{var _s$enrichError;s===null||s===void 0||(_s$enrichError=s.enrichError)===null||_s$enrichError===void 0||_s$enrichError.call(s,u,l);}catch(e){(0,o.reportClientDiagnostic)(`[keiko] bff error enrichment failed: ${(0,i.clientErrorSummary)(e)}`,{correlationId:u.correlationId});}throw u;}if(204===c.status)return;let l=await c.json();if((0,t.recordResponseCorrelationId)(l,c.headers.get(t.CORRELATION_HEADER)),(s===null||s===void 0?void 0:s.validator)===void 0)return l;try{return s.validator(e,l);}catch(e){var _c$headers$get2;throw e instanceof r.ApiError&&void 0===e.correlationId&&(e.correlationId=(_c$headers$get2=c.headers.get(t.CORRELATION_HEADER))!==null&&_c$headers$get2!==void 0?_c$headers$get2:d),e;}}let s={401:"authority-denied",403:"authority-denied",408:"timeout",409:"conflict",429:"rate-limited",499:"cancelled",500:"internal"};function d(e){if(e instanceof r.ApiError){let r=s[e.status];return void 0!==r?r:e.status>=500?"unavailable":e.status>=400?"invalid-request":"unknown";}return e instanceof DOMException&&"AbortError"===e.name?"cancelled":e instanceof TypeError?"unavailable":"unknown";}function c(e,r,t,i){(0,o.reportClientDiagnostic)(`[keiko] stale session repair: ${e}`,{correlationId:r,sessionRepairReport:{outcome:e,repairCorrelationId:t,...(void 0===i?{}:{errorKind:i})}});}async function l(r,o,i,n){var _r$correlationId,_i$method;let s,{repairLocalCodingAppSessionWithEvidence:l}=await e.A(94018),u=await l(),f=(_r$correlationId=r.correlationId)!==null&&_r$correlationId!==void 0?_r$correlationId:(0,t.newClientCorrelationId)();if(!u.repaired)throw c("repair-failed",f,u.correlationId,u.errorKind),r;if("GET"!==(s=((_i$method=i===null||i===void 0?void 0:i.method)!==null&&_i$method!==void 0?_i$method:"GET").toUpperCase())&&"HEAD"!==s)throw c("replay-skipped",f,u.correlationId,"authority-denied"),r;try{let e=await a(o,i,{...n,correlationId:f});return c("replayed",f,u.correlationId),e;}catch(e){throw c("replay-failed",f,u.correlationId,d(e)),e;}}async function u(e,t,o){try{return await a(e,t,o);}catch(i){if(!(i instanceof r.ApiError&&403===i.status&&"DENIED"===i.code)||(o===null||o===void 0?void 0:o.repairSession)===!1)throw i;return l(i,e,t,o);}}e.s(["bffFetchJson",0,u,"bffRequestErrorKind",0,d]);},273,e=>{"use strict";var r=e.i(25327),t=e.i(24541),o=e.i(92215);function i(e){"u">typeof console&&"function"==typeof console.warn&&console.warn(e);}let n=/^[A-Za-z0-9._-]{8,128}$/;function a(e){return void 0!==e&&n.test(e)?e:void 0;}let s=/kind=sse-error, readyState=([0-2]), reason=(?:connecting|closed|unknown)/;function d(e){if((e===null||e===void 0?void 0:e.stageReport)!==void 0){let r;return t=e.stageReport,r=a(e.correlationId),"started"===t.phase?{kind:"stage",stage:t.stage,phase:"started",ordinal:t.ordinal,correlationId:r}:{kind:"stage",stage:t.stage,phase:"settled",ordinal:t.ordinal,durationMs:t.durationMs,correlationId:r};}if((e===null||e===void 0?void 0:e.bindingReport)!==void 0){var _o$relatedCorrelation;let t;return o=e.bindingReport,i=e.correlationId,t=((_o$relatedCorrelation=o.relatedCorrelationIds)!==null&&_o$relatedCorrelation!==void 0?_o$relatedCorrelation:[]).flatMap(e=>{let r=a(e);return void 0===r?[]:[r];}).slice(0,r.CLIENT_BINDING_RELATED_CORRELATIONS_MAX),{kind:"binding",surface:o.surface,outcome:o.outcome,referenceShape:o.referenceShape,heuristicFlagged:o.heuristicFlagged,windowRef:o.windowRef,correlationId:a(i),...(0===t.length?{}:{relatedCorrelationIds:t}),...(void 0===o.decidingLoadCount?{}:{decidingLoadCount:o.decidingLoadCount}),...(void 0===o.candidateCount?{}:{candidateCount:o.candidateCount}),...(void 0===o.disambiguatedCount?{}:{disambiguatedCount:o.disambiguatedCount}),...(void 0===o.targetFingerprint?{}:{targetFingerprint:o.targetFingerprint})};}if((e===null||e===void 0?void 0:e.sessionRepairReport)!==void 0)return function(e,r){let t=a(r),o=a(e.repairCorrelationId);if(void 0!==t&&void 0!==o)return{kind:"session-repair",outcome:e.outcome,correlationId:t,repairCorrelationId:o,errorKind:e.errorKind,stream:e.stream};}(e.sessionRepairReport,e.correlationId);if((e===null||e===void 0?void 0:e.gitRetryAttemptReport)!==void 0){var t,o,i,n=e.gitRetryAttemptReport;let r=a(n.correlationId);return void 0!==r?{kind:"git-retry-attempt",operation:n.operation,correlationId:r}:void 0;}}let c={failure:20,routine:60};function l(){return{startedAtMs:0,count:0,throttled:0};}let u={failure:l(),routine:l()},f=0,E=0;function p(e){f+=1,(0,t.restoreClientDiagnosticLoss)(e),(0,t.recordClientDiagnosticLoss)("postsFailed"),i("[keiko] diagnostic delivery to the server failed; the diagnostic above (if any) was not recorded server-side.");}function g(e,t,i){try{var _d;var n;let c=(n=t!==null&&t!==void 0?t:{},(_d=d(n))!==null&&_d!==void 0?_d:function(e,t,o,_s$exec){let i={message:e.length>r.CLIENT_DIAGNOSTIC_MESSAGE_MAX_LENGTH?e.slice(0,r.CLIENT_DIAGNOSTIC_MESSAGE_MAX_LENGTH):e,clientTs:new Date().toISOString(),correlationId:a(t.correlationId),parentCorrelationId:a(t.parentCorrelationId),errorKind:t.errorKind,voiceDialogueStage:t.voiceDialogueStage,voiceCaptureReason:t.voiceCaptureReason,voiceCaptureError:t.voiceCaptureError,markdownLayout:t.markdownLayout,moduleLoadFailure:t.moduleLoadFailure,errorEvidence:t.errorEvidence,gitChangeDescription:t.gitChangeDescription,workspaceTrustBinding:t.workspaceTrustBinding,gitClientOperation:t.gitClientOperation,selectDismissal:t.selectDismissal,codingHistoryScope:t.codingHistoryScope,codingIssueOutcome:t.codingIssueOutcome,loss:o},n=(_s$exec=s.exec(e))===null||_s$exec===void 0?void 0:_s$exec[1];return void 0===n?{...i,kind:t.kind}:{...i,readyState:"0"===n?0:"2"===n?2:1,kind:"sse-error"};}(e,n!==null&&n!==void 0?n:{},i));(0,o.bffFetchJson)("/api/diagnostics/client",{method:"POST",body:JSON.stringify(c),keepalive:!0}).catch(()=>{p(i);});}catch{p(i);}}"function"==typeof window.addEventListener&&window.addEventListener("pagehide",function(){let e=(0,t.takeClientDiagnosticLoss)();void 0!==e&&g("[keiko] client diagnostic delivery loss summary",{kind:"other"},e);}),(0,t.setClientDiagnosticWriter)(function(e,o){i(e),function(e,o){var n,a,s,l,f,p;let I=void 0===(s=o)?"failure":void 0!==s.stageReport||void 0!==s.gitRetryAttemptReport||void 0!==s.selectDismissal?"routine":void 0!==s.bindingReport?(l=s.bindingReport.outcome,r.CLIENT_BINDING_FAILURE_OUTCOMES.has(l)?"failure":"routine"):void 0!==s.sessionRepairReport?void 0!==(f=s.sessionRepairReport.outcome)&&r.CLIENT_SESSION_REPAIR_ROUTINE_OUTCOMES.has(f)?"routine":"failure":void 0!==s.gitClientOperation?(p=s.gitClientOperation.outcome,r.CLIENT_GIT_CLIENT_OPERATION_FAILURE_OUTCOMES.has(p)?"failure":"routine"):"failure",C=u[I];if(n=c[I],(a=Date.now())-C.startedAtMs>=6e4&&(C.startedAtMs=a,C.count=0,C.throttled=0),C.count>=n||(C.count+=1,0)){E+=1,C.throttled+=1,(0,t.recordClientDiagnosticLoss)("postsThrottled"),1===C.throttled&&i("[keiko] diagnostic delivery to the server is throttled; further diagnostics in this window stay console-only.");return;}let h=void 0===d(o)?(0,t.takeClientDiagnosticLoss)():void 0;g(e,o,h);}(e,o);}),e.s([]);},75297,e=>{"use strict";function r(){let e=globalThis.crypto;if(void 0===e)throw TypeError("secure browser randomness is unavailable");return e;}e.s(["secureRandomId",0,function(e){let t=r();return"function"==typeof t.randomUUID?t.randomUUID():`${e}-${function(e){if("function"!=typeof e.getRandomValues)throw TypeError("secure browser randomness is unavailable");let r=new Uint8Array(16);return e.getRandomValues(r),Array.from(r,e=>e.toString(16).padStart(2,"0")).join("");}(t)}`;},"secureRandomInt",0,function(e){let t;if(!Number.isSafeInteger(e)||e<=0||e>0x100000000)throw RangeError("maxExclusive must be an integer between 1 and 2^32");let o=r();if("function"!=typeof o.getRandomValues)throw TypeError("secure browser randomness is unavailable");let i=Math.floor(0x100000000/e)*e,n=new Uint32Array(1);do{var _n$;o.getRandomValues(n),t=(_n$=n[0])!==null&&_n$!==void 0?_n$:0;}while(t>=i);return t%e;}]);}]);
|