@oscharko-dev/keiko 1.3.3 → 1.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/dist/ui/csp-hashes.json +6 -6
- package/dist/ui/static/404.html +1 -1
- package/dist/ui/static/__next.__PAGE__.txt +15 -15
- package/dist/ui/static/__next._full.txt +15 -15
- package/dist/ui/static/__next._index.txt +5 -5
- package/dist/ui/static/__next._tree.txt +2 -2
- package/dist/ui/static/_next/static/chunks/{36k6xayb_mepf.js → 06g3oe93r_678.js} +1 -1
- package/dist/ui/static/_next/static/chunks/0_djzjuth9fin.js +1 -0
- package/dist/ui/static/_next/static/chunks/0djrsx1yq9q3r.js +3 -0
- package/dist/ui/static/_next/static/chunks/{0hdqqtdtlw3ti.js → 0r77lkincf-_m.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{1jw91zv_4zsq5.js → 0z_5240lhcdze.js} +1 -1
- package/dist/ui/static/_next/static/chunks/1-fpfnm1iv6q0.js +4 -0
- package/dist/ui/static/_next/static/chunks/137dt5kr-1__b.js +1 -0
- package/dist/ui/static/_next/static/chunks/13ov-3t5gszyf.js +1 -0
- package/dist/ui/static/_next/static/chunks/1_rx0zd2gpqyu.js +1 -0
- package/dist/ui/static/_next/static/chunks/1fkf-yv61zx2b.js +1 -0
- package/dist/ui/static/_next/static/chunks/{2dxbsvbfd0b2d.js → 1i-keu61dby7z.js} +1 -1
- package/dist/ui/static/_next/static/chunks/1pqcljp4_2qe3.js +1 -0
- package/dist/ui/static/_next/static/chunks/{1uly-k9l4q3bk.js → 2-i--dmljgxls.js} +1 -1
- package/dist/ui/static/_next/static/chunks/21y9ezefwidlf.js +1 -0
- package/dist/ui/static/_next/static/chunks/23azcdt9vudem.js +1 -0
- package/dist/ui/static/_next/static/chunks/28os13ehcs0w8.js +1 -0
- package/dist/ui/static/_next/static/chunks/28qkmmimb75ae.css +4 -0
- package/dist/ui/static/_next/static/chunks/{2o7pr5mit74id.css → 29xkz3907owjy.css} +3 -3
- package/dist/ui/static/_next/static/chunks/{0x35q9z0tiicw.js → 2au392b0y1-e5.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{06d6c74v_hg_g.js → 2cr_43y_421vg.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{3l06hi3xkcn82.js → 2l7fx-klib93f.js} +1 -1
- package/dist/ui/static/_next/static/chunks/2rn7qy5l22wex.js +1 -0
- package/dist/ui/static/_next/static/chunks/2tf596skd93nv.js +1 -0
- package/dist/ui/static/_next/static/chunks/2wfyqggh0fnqz.js +1 -0
- package/dist/ui/static/_next/static/chunks/{249nvi2mcd8y_.js → 33j1k7syz5_95.js} +1 -1
- package/dist/ui/static/_next/static/chunks/368errcbd6o_y.js +1 -0
- package/dist/ui/static/_next/static/chunks/371e736g0zot0.js +1 -0
- package/dist/ui/static/_next/static/chunks/37j3f91kw2ss1.js +1 -0
- package/dist/ui/static/_next/static/chunks/{1lx_k4r3_3_k8.js → 3apw-eem5wchc.js} +1 -1
- package/dist/ui/static/_next/static/chunks/3chl41-ji247o.js +2 -0
- package/dist/ui/static/_next/static/chunks/3fvxpzfnyqrqy.js +1 -0
- package/dist/ui/static/_next/static/chunks/{3_xj8v4_gq-15.js → 3jclkr9npha_g.js} +1 -1
- package/dist/ui/static/_next/static/chunks/3p88bedlr67z3.js +1 -0
- package/dist/ui/static/_next/static/chunks/3pfzo7lskb82h.js +1 -0
- package/dist/ui/static/_next/static/chunks/{15iwz3570nbcl.js → 3ram28kwenqtb.js} +1 -1
- package/dist/ui/static/_next/static/chunks/3vcan7x5acmin.js +1 -0
- package/dist/ui/static/_next/static/chunks/3vhvlyplc36t6.js +1 -0
- package/dist/ui/static/_next/static/chunks/3xximf7pr40jh.js +1 -0
- package/dist/ui/static/_next/static/chunks/{3p6jy_na2pnh8.js → 42ujh8mqvkem7.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{32bpm9l-zxjtg.js → 431tcidb2ski1.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{175-dw1j1dsnt.js → 44q6rup2gv3_v.js} +3 -3
- package/dist/ui/static/_not-found/__next._full.txt +5 -5
- package/dist/ui/static/_not-found/__next._index.txt +5 -5
- package/dist/ui/static/_not-found/__next._not-found.__PAGE__.txt +5 -5
- 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 +5 -5
- package/dist/ui/static/atlassian-connectors/__next._full.txt +5 -5
- package/dist/ui/static/atlassian-connectors/__next._index.txt +5 -5
- package/dist/ui/static/atlassian-connectors/__next._tree.txt +1 -1
- package/dist/ui/static/atlassian-connectors/__next.atlassian-connectors.__PAGE__.txt +5 -5
- package/dist/ui/static/atlassian-connectors.html +1 -1
- package/dist/ui/static/atlassian-connectors.txt +5 -5
- package/dist/ui/static/index.html +1 -1
- package/dist/ui/static/index.txt +15 -15
- package/dist/ui/static/launch/__next._full.txt +15 -15
- package/dist/ui/static/launch/__next._index.txt +5 -5
- package/dist/ui/static/launch/__next._tree.txt +2 -2
- package/dist/ui/static/launch/__next.launch.__PAGE__.txt +15 -15
- package/dist/ui/static/launch.html +1 -1
- package/dist/ui/static/launch.txt +15 -15
- package/dist/ui/static/local-knowledge/__next._full.txt +15 -15
- package/dist/ui/static/local-knowledge/__next._index.txt +5 -5
- package/dist/ui/static/local-knowledge/__next._tree.txt +2 -2
- package/dist/ui/static/local-knowledge/__next.local-knowledge.__PAGE__.txt +15 -15
- package/dist/ui/static/local-knowledge/capsule/__next._full.txt +7 -7
- package/dist/ui/static/local-knowledge/capsule/__next._index.txt +5 -5
- 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 +7 -7
- package/dist/ui/static/local-knowledge/capsule.html +1 -1
- package/dist/ui/static/local-knowledge/capsule.txt +7 -7
- package/dist/ui/static/local-knowledge.html +1 -1
- package/dist/ui/static/local-knowledge.txt +15 -15
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory-data.generated.json +27 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.js +6 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry-history.generated.d.ts +22 -15
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry-history.generated.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry-history.generated.js +24 -16
- package/node_modules/@oscharko-dev/keiko-activity-log/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-cli/package.json +15 -15
- package/node_modules/@oscharko-dev/keiko-connectors/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-connectors/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-connectors/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-contracts.d.ts +48 -8
- 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 +62 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-coverage.generated.json +432 -5
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-identity.generated.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-identity.generated.js +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-operation-surfaces.generated.json +5 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-operations.generated.d.ts +368 -11
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-operations.generated.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-operations.generated.js +446 -4
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-runtime-delivery.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-runtime-delivery.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-runtime-delivery.js +9 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-runtime-git.d.ts +24 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-runtime-git.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-runtime-git.js +38 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-safe-activity.d.ts +17 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-safe-activity.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-safe-activity.js +23 -2
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-api.d.ts +8 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-api.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-api.js +25 -8
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench.js +4 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.d.ts +21 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.js +64 -2
- package/node_modules/@oscharko-dev/keiko-contracts/dist/draft-delivery.d.ts +78 -2
- package/node_modules/@oscharko-dev/keiko-contracts/dist/draft-delivery.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/draft-delivery.js +89 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts +3 -3
- package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/task-workspace.d.ts +19 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/task-workspace.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/task-workspace.js +49 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/version.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-contracts/dist/version.js +2 -2
- package/node_modules/@oscharko-dev/keiko-contracts/package.json +1 -1
- package/node_modules/@oscharko-dev/keiko-evaluations/package.json +9 -9
- package/node_modules/@oscharko-dev/keiko-evidence/dist/compaction-evidence.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-evidence/dist/compaction-evidence.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-evidence/dist/compaction-evidence.js +29 -53
- package/node_modules/@oscharko-dev/keiko-evidence/dist/index.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-evidence/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-evidence/dist/index.js +1 -1
- package/node_modules/@oscharko-dev/keiko-evidence/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-evidence/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-evidence/package.json +4 -4
- package/node_modules/@oscharko-dev/keiko-git/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-git/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-git/package.json +1 -1
- package/node_modules/@oscharko-dev/keiko-harness/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-harness/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-harness/package.json +7 -7
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/package.json +5 -5
- package/node_modules/@oscharko-dev/keiko-mcp/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-capture/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-consolidation/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-governance/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-retrieval/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-vault/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/prompt-token-accounting.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/prompt-token-accounting.js +4 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/speech-to-text-adapter.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/speech-to-text-adapter.js +52 -13
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/package.json +4 -4
- package/node_modules/@oscharko-dev/keiko-quality-intelligence/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-sandbox/package.json +2 -2
- package/node_modules/@oscharko-dev/keiko-sdk/package.json +9 -9
- package/node_modules/@oscharko-dev/keiko-security/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-security/package.json +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/activity-line-fields.d.ts +21 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/activity-line-fields.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/activity-line-fields.js +23 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraChatMutation.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraChatMutation.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraChatMutation.js +6 -45
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraMutationResult.d.ts +7 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraMutationResult.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraMutationResult.js +48 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-compaction-model-call.d.ts +7 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-compaction-model-call.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-compaction-model-call.js +41 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-compaction-model-summary.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-compaction-model-summary.js +138 -26
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-status.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-status.js +19 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-continuity-checkpoint.d.ts +14 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-continuity-checkpoint.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-continuity-checkpoint.js +85 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-continuity-log.d.ts +24 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-continuity-log.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-continuity-log.js +101 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-handlers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-handlers.js +10 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-history-rehydration.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-history-rehydration.js +149 -52
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-history-snapshot.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-history-snapshot.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-history-snapshot.js +20 -0
- 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 +52 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/boundedRunRecords.d.ts +17 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/boundedRunRecords.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/boundedRunRecords.js +18 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingJiraPodBinding.d.ts +84 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingJiraPodBinding.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingJiraPodBinding.js +193 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingJiraPodMcp.d.ts +37 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingJiraPodMcp.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingJiraPodMcp.js +304 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeActivityOperations.d.ts +4 -4
- 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 +9 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeCiReadinessStore.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeCiReadinessStore.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeCiReadinessStore.js +2 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeCiRepairBudgetStore.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeCiRepairBudgetStore.js +2 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeDraftDeliverySource.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeDraftDeliverySource.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeDraftDeliverySource.js +3 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeDraftDeliveryStore.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeDraftDeliveryStore.js +14 -7
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeGitIpc.d.ts +12 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeGitIpc.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeGitIpc.js +12 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeManager.d.ts +2 -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 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestrator.d.ts +1 -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 +15 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestratorTypes.d.ts +8 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestratorTypes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeStartConfirmation.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeStartConfirmation.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeStartConfirmation.js +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingSafeActivityProjection.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingSafeActivityProjection.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingSafeActivityProjection.js +45 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolApprovalBridge.d.ts +15 -2
- 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 +9 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolAuthorityPort.js +10 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacade.d.ts +6 -0
- 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 +112 -10
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacadePorts.d.ts +16 -0
- 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 +10 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolIpc.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolIpc.js +30 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolNativeEffect.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolNativeEffect.js +9 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/governedSyncHeads.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/governedSyncHeads.js +3 -13
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/governedTaskBranches.d.ts +38 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/governedTaskBranches.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/governedTaskBranches.js +6 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/governedToolModelContent.d.ts +5 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/governedToolModelContent.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/governedToolModelContent.js +28 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/launchFailure.d.ts +11 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/launchFailure.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/launchFailure.js +18 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeLaunchProfile.js +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeContext.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeContext.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeContext.js +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeDeliveryTools.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeDeliveryTools.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeDeliveryTools.js +2 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeMcp.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeMcp.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeMcp.js +3 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativePolicy.d.ts +6 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativePolicy.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativePolicy.js +58 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeWorktree.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeWorktree.js +4 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeProtocol.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeProtocol.js +12 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRevert.d.ts +6 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRevert.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRevert.js +10 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeAdapter.js +61 -44
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeComposition.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeComposition.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeComposition.js +21 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeToolSchemas.d.ts +37 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeToolSchemas.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeToolSchemas.js +23 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCiRepairRuntime.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCiRepairRuntime.js +5 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimeResolver.d.ts +13 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimeResolver.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimeResolver.js +80 -8
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionDraftDeliveryDependencies.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionDraftDeliveryDependencies.js +122 -18
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionDraftDeliveryRuntime.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionDraftDeliveryRuntime.js +11 -8
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionManagedWorktreeTools.d.ts +6 -0
- 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 +164 -42
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeActivation.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeActivation.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeActivation.js +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.d.ts +6 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.js +22 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionRuntimeGitPreparation.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionRuntimeGitPreparation.js +6 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionRuntimeWorkspaceAuthority.d.ts +4 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionRuntimeWorkspaceAuthority.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionRuntimeWorkspaceAuthority.js +30 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionTaskBranchPort.d.ts +26 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionTaskBranchPort.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionTaskBranchPort.js +36 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionVerifiedCommitRuntime.d.ts +8 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionVerifiedCommitRuntime.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionVerifiedCommitRuntime.js +17 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeAuthorityService.d.ts +10 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeAuthorityService.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeAuthorityService.js +22 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/supervisedCodingPolicy.js +3 -2
- 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 +84 -17
- package/node_modules/@oscharko-dev/keiko-server/dist/deps.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/deps.js +63 -19
- package/node_modules/@oscharko-dev/keiko-server/dist/diagnostics-log.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/diagnostics-log.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/diagnostics-log.js +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-readiness.d.ts +25 -2
- 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 +216 -48
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/ciObservationService.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/ciObservationService.js +7 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/ciReadinessSnapshot.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/ciReadinessSnapshot.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/ciReadinessSnapshot.js +5 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryChecksRefresh.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryChecksRefresh.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryEffects.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryEffects.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryEffects.js +39 -12
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryFacts.d.ts +17 -5
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryFacts.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryFacts.js +79 -10
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryLedger.d.ts +4 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryLedger.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryLedger.js +21 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryService.d.ts +8 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryService.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryService.js +152 -21
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryServiceTestSupport.d.ts +31 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryServiceTestSupport.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryServiceTestSupport.js +51 -14
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryTemplate.d.ts +6 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryTemplate.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryTemplate.js +9 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryTypes.d.ts +41 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryTypes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryTypes.js +10 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/execution.d.ts +8 -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 +2 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/journeyObservationService.d.ts +2 -2
- 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 +4 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/journeyOutcome.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/journeyOutcome.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/journeyOutcome.js +4 -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 +5 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/prMarkReadyExecution.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/prMarkReadyExecution.js +6 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/runtimeGitBranch.d.ts +74 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/runtimeGitBranch.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/runtimeGitBranch.js +188 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/runtimeGitService.d.ts +10 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/runtimeGitService.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/runtimeGitService.js +103 -14
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/verifiedCommitFacts.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/verifiedCommitFacts.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/verifiedCommitFacts.js +12 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/verifiedCommitService.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/verifiedCommitService.js +97 -14
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/verifiedCommitTypes.d.ts +9 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/verifiedCommitTypes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/verifiedCommitVerification.d.ts +6 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/verifiedCommitVerification.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/verifiedCommitVerification.js +28 -5
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-conversation-continuity.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-conversation-continuity.js +17 -5
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpCredentialRelay.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpCredentialRelay.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpCredentialRelay.js +14 -27
- package/node_modules/@oscharko-dev/keiko-server/dist/observability/route-template.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/observability/route-template.js +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/routes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/routes.js +2 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/chatContinuity.d.ts +7 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/store/chatContinuity.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/store/chatContinuity.js +85 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/store/chatHistorySearch.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/store/chatHistorySearch.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/store/chatHistorySearch.js +59 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/store/chatHistorySearchSchema.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/store/chatHistorySearchSchema.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/store/chatHistorySearchSchema.js +21 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/store/codingHistoryIsolation.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/codingHistoryIsolation.js +17 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/store/db.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/db.js +5 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/store/legacySchemaTestFixture.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/legacySchemaTestFixture.js +14 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/store/messages.d.ts +9 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/store/messages.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/messages.js +76 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/schema.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/schema.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/schema.js +30 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/types.d.ts +27 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/store/types.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/activity-log.d.ts +21 -1
- 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 +46 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/canonical-root.d.ts +7 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/canonical-root.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/canonical-root.js +21 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/folder-workspace.d.ts +18 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/folder-workspace.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/folder-workspace.js +151 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/local-checkout.d.ts +7 -8
- package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/local-checkout.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/local-checkout.js +91 -53
- package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/routes.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/routes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/routes.js +40 -11
- package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/store.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/store.js +4 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/types.d.ts +16 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/types.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolFacadeBridge.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolFacadeBridge.js +8 -0
- package/node_modules/@oscharko-dev/keiko-server/package.json +25 -25
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/opencode.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/opencode.js +34 -3
- package/node_modules/@oscharko-dev/keiko-tool-catalog/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-tools/dist/git-mutation-node.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/git-mutation-node.js +14 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/package.json +7 -7
- package/node_modules/@oscharko-dev/keiko-verification/package.json +5 -5
- package/node_modules/@oscharko-dev/keiko-workflows/package.json +10 -10
- package/node_modules/@oscharko-dev/keiko-workspace/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/package.json +3 -3
- package/node_modules/@sigstore/tuf/LICENSE +202 -0
- package/node_modules/@sigstore/tuf/README.md +69 -0
- package/node_modules/@sigstore/tuf/dist/appdata.d.ts +1 -0
- package/node_modules/@sigstore/tuf/dist/appdata.js +43 -0
- package/node_modules/@sigstore/tuf/dist/client.d.ts +23 -0
- package/node_modules/@sigstore/tuf/dist/client.js +116 -0
- package/node_modules/@sigstore/tuf/dist/error.d.ts +11 -0
- package/node_modules/@sigstore/tuf/dist/error.js +14 -0
- package/node_modules/@sigstore/tuf/dist/index.d.ts +10 -0
- package/node_modules/@sigstore/tuf/dist/index.js +56 -0
- package/node_modules/@sigstore/tuf/dist/target.d.ts +2 -0
- package/node_modules/@sigstore/tuf/dist/target.js +79 -0
- package/node_modules/@sigstore/tuf/package.json +33 -0
- package/node_modules/@sigstore/tuf/seeds.json +1 -0
- package/node_modules/@tufjs/models/LICENSE +21 -0
- package/node_modules/@tufjs/models/README.md +3 -0
- package/node_modules/@tufjs/models/dist/base.d.ts +37 -0
- package/node_modules/@tufjs/models/dist/base.js +96 -0
- package/node_modules/@tufjs/models/dist/delegations.d.ts +32 -0
- package/node_modules/@tufjs/models/dist/delegations.js +119 -0
- package/node_modules/@tufjs/models/dist/error.d.ts +12 -0
- package/node_modules/@tufjs/models/dist/error.js +27 -0
- package/node_modules/@tufjs/models/dist/file.d.ts +38 -0
- package/node_modules/@tufjs/models/dist/file.js +191 -0
- package/node_modules/@tufjs/models/dist/index.d.ts +10 -0
- package/node_modules/@tufjs/models/dist/index.js +24 -0
- package/node_modules/@tufjs/models/dist/key.d.ts +21 -0
- package/node_modules/@tufjs/models/dist/key.js +90 -0
- package/node_modules/@tufjs/models/dist/metadata.d.ts +47 -0
- package/node_modules/@tufjs/models/dist/metadata.js +165 -0
- package/node_modules/@tufjs/models/dist/role.d.ts +103 -0
- package/node_modules/@tufjs/models/dist/role.js +310 -0
- package/node_modules/@tufjs/models/dist/root.d.ts +29 -0
- package/node_modules/@tufjs/models/dist/root.js +119 -0
- package/node_modules/@tufjs/models/dist/signature.d.ts +20 -0
- package/node_modules/@tufjs/models/dist/signature.js +40 -0
- package/node_modules/@tufjs/models/dist/snapshot.d.ts +23 -0
- package/node_modules/@tufjs/models/dist/snapshot.js +72 -0
- package/node_modules/@tufjs/models/dist/targets.d.ts +20 -0
- package/node_modules/@tufjs/models/dist/targets.js +94 -0
- package/node_modules/@tufjs/models/dist/timestamp.d.ts +21 -0
- package/node_modules/@tufjs/models/dist/timestamp.js +59 -0
- package/node_modules/@tufjs/models/dist/utils/guard.d.ts +7 -0
- package/node_modules/@tufjs/models/dist/utils/guard.js +32 -0
- package/node_modules/@tufjs/models/dist/utils/index.d.ts +3 -0
- package/node_modules/@tufjs/models/dist/utils/index.js +38 -0
- package/node_modules/@tufjs/models/dist/utils/key.d.ts +8 -0
- package/node_modules/@tufjs/models/dist/utils/key.js +142 -0
- package/node_modules/@tufjs/models/dist/utils/oid.d.ts +1 -0
- package/node_modules/@tufjs/models/dist/utils/oid.js +26 -0
- package/node_modules/@tufjs/models/dist/utils/types.d.ts +4 -0
- package/node_modules/@tufjs/models/dist/utils/types.js +2 -0
- package/node_modules/@tufjs/models/dist/utils/verify.d.ts +3 -0
- package/node_modules/@tufjs/models/dist/utils/verify.js +13 -0
- package/node_modules/@tufjs/models/package.json +34 -0
- package/node_modules/tuf-js/LICENSE +21 -0
- package/node_modules/tuf-js/README.md +3 -0
- package/node_modules/tuf-js/dist/config.d.ts +15 -0
- package/node_modules/tuf-js/dist/config.js +16 -0
- package/node_modules/tuf-js/dist/error.d.ts +22 -0
- package/node_modules/tuf-js/dist/error.js +49 -0
- package/node_modules/tuf-js/dist/fetcher.d.ts +25 -0
- package/node_modules/tuf-js/dist/fetcher.js +131 -0
- package/node_modules/tuf-js/dist/index.d.ts +6 -0
- package/node_modules/tuf-js/dist/index.js +9 -0
- package/node_modules/tuf-js/dist/store.d.ts +18 -0
- package/node_modules/tuf-js/dist/store.js +219 -0
- package/node_modules/tuf-js/dist/updater.d.ts +35 -0
- package/node_modules/tuf-js/dist/updater.js +373 -0
- package/node_modules/tuf-js/dist/utils/tmpfile.d.ts +3 -0
- package/node_modules/tuf-js/dist/utils/tmpfile.js +25 -0
- package/node_modules/tuf-js/dist/utils/url.d.ts +1 -0
- package/node_modules/tuf-js/dist/utils/url.js +13 -0
- package/node_modules/tuf-js/package.json +35 -0
- package/package.json +42 -34
- package/release-impact.catalog.json +122 -23
- package/vendor/oscharko-dev-keiko-activity-log-1.3.4.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-cli-1.3.3.tgz → oscharko-dev-keiko-cli-1.3.4.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-connectors-1.3.3.tgz → oscharko-dev-keiko-connectors-1.3.4.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-contracts-1.3.4.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-evaluations-1.3.3.tgz → oscharko-dev-keiko-evaluations-1.3.4.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-evidence-1.3.4.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-git-1.3.3.tgz → oscharko-dev-keiko-git-1.3.4.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-harness-1.3.3.tgz → oscharko-dev-keiko-harness-1.3.4.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-local-knowledge-1.3.3.tgz → oscharko-dev-keiko-local-knowledge-1.3.4.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-mcp-1.3.3.tgz → oscharko-dev-keiko-mcp-1.3.4.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-memory-capture-1.3.3.tgz → oscharko-dev-keiko-memory-capture-1.3.4.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-memory-consolidation-1.3.3.tgz → oscharko-dev-keiko-memory-consolidation-1.3.4.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-memory-governance-1.3.3.tgz → oscharko-dev-keiko-memory-governance-1.3.4.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-memory-retrieval-1.3.3.tgz → oscharko-dev-keiko-memory-retrieval-1.3.4.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-memory-vault-1.3.3.tgz → oscharko-dev-keiko-memory-vault-1.3.4.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-model-gateway-1.3.3.tgz → oscharko-dev-keiko-model-gateway-1.3.4.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-quality-intelligence-1.3.3.tgz → oscharko-dev-keiko-quality-intelligence-1.3.4.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-sandbox-1.3.3.tgz → oscharko-dev-keiko-sandbox-1.3.4.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-sdk-1.3.3.tgz → oscharko-dev-keiko-sdk-1.3.4.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-security-1.3.3.tgz → oscharko-dev-keiko-security-1.3.4.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-server-1.3.4.tgz +0 -0
- package/vendor/oscharko-dev-keiko-tool-catalog-1.3.4.tgz +0 -0
- package/vendor/oscharko-dev-keiko-tools-1.3.4.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-verification-1.3.3.tgz → oscharko-dev-keiko-verification-1.3.4.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-workflows-1.3.3.tgz → oscharko-dev-keiko-workflows-1.3.4.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-workspace-1.3.3.tgz → oscharko-dev-keiko-workspace-1.3.4.tgz} +0 -0
- package/vendor/runtime-7ee58e70ec82a5310a8cfa05-5.0.0.tgz +0 -0
- package/vendor/runtime-adfa266be16990cea397db57-5.0.0.tgz +0 -0
- package/vendor/runtime-eb2c4f536814543400a0bd7d-6.0.0.tgz +0 -0
- package/dist/ui/static/_next/static/chunks/0-vpa4wvwcpe-.js +0 -1
- package/dist/ui/static/_next/static/chunks/0_6mtgmkla9qu.js +0 -1
- package/dist/ui/static/_next/static/chunks/0e5tuea6tlug3.js +0 -2
- package/dist/ui/static/_next/static/chunks/0ertzbirk17sb.js +0 -1
- package/dist/ui/static/_next/static/chunks/0kez3eb30_y20.js +0 -1
- package/dist/ui/static/_next/static/chunks/0r7w4-ed85x8_.js +0 -1
- package/dist/ui/static/_next/static/chunks/0s7h6q8gvga7e.js +0 -1
- package/dist/ui/static/_next/static/chunks/0yubxb7rh1hd0.js +0 -1
- package/dist/ui/static/_next/static/chunks/113i2ed523uql.js +0 -1
- package/dist/ui/static/_next/static/chunks/14qun_iwmflef.js +0 -1
- package/dist/ui/static/_next/static/chunks/18k43109q6nsu.css +0 -4
- package/dist/ui/static/_next/static/chunks/1d_810phvbt-v.js +0 -1
- package/dist/ui/static/_next/static/chunks/1h2_yob002hof.js +0 -1
- package/dist/ui/static/_next/static/chunks/1yozvmb5fguqg.js +0 -1
- package/dist/ui/static/_next/static/chunks/226y24czlj0wp.js +0 -1
- package/dist/ui/static/_next/static/chunks/2ejhbs16gist6.js +0 -1
- package/dist/ui/static/_next/static/chunks/2w1kh71cy7enz.js +0 -1
- package/dist/ui/static/_next/static/chunks/39thlt_b984p5.js +0 -1
- package/dist/ui/static/_next/static/chunks/3bjc67n5rtpdi.js +0 -1
- package/dist/ui/static/_next/static/chunks/3cxu95lv35pdr.js +0 -4
- package/dist/ui/static/_next/static/chunks/3f63ftrt4blps.js +0 -1
- package/dist/ui/static/_next/static/chunks/3gaq95iqa9klb.js +0 -3
- package/dist/ui/static/_next/static/chunks/3qabgkg9agmqc.js +0 -1
- package/dist/ui/static/_next/static/chunks/3t4_kygctsf_7.js +0 -1
- package/dist/ui/static/_next/static/chunks/3z6tj3bwv9zix.js +0 -1
- package/vendor/oscharko-dev-keiko-activity-log-1.3.3.tgz +0 -0
- package/vendor/oscharko-dev-keiko-contracts-1.3.3.tgz +0 -0
- package/vendor/oscharko-dev-keiko-evidence-1.3.3.tgz +0 -0
- package/vendor/oscharko-dev-keiko-server-1.3.3.tgz +0 -0
- package/vendor/oscharko-dev-keiko-tool-catalog-1.3.3.tgz +0 -0
- package/vendor/oscharko-dev-keiko-tools-1.3.3.tgz +0 -0
- /package/dist/ui/static/_next/static/{KmFW5oN4Tu2nC9Ox3ukB4 → Ytdn01XusgvfUzdjNVXIY}/_buildManifest.js +0 -0
- /package/dist/ui/static/_next/static/{KmFW5oN4Tu2nC9Ox3ukB4 → Ytdn01XusgvfUzdjNVXIY}/_clientMiddlewareManifest.js +0 -0
- /package/dist/ui/static/_next/static/{KmFW5oN4Tu2nC9Ox3ukB4 → Ytdn01XusgvfUzdjNVXIY}/_ssgManifest.js +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { isDraftDeliveryBranchBinding, isDraftDeliveryIssueBinding, isDraftDeliveryPullRequestBinding, isDraftDeliveryRepositoryBinding, } from "@oscharko-dev/keiko-contracts/runtime/draft-delivery";
|
|
1
2
|
import { DEFAULT_GIT_DELIVERY_APPROVAL_STORE, GIT_DELIVERY_LOCAL_OPERATOR_ID, } from "./approvalStore.js";
|
|
2
|
-
import { DraftDeliveryFailure, } from "./draftDeliveryTypes.js";
|
|
3
|
-
import { assertDraftAuthority, assertDraftLocalCandidate, assertKnownDraftIdentity, initialDraftBinding, readDraftRemoteState, resolveDraftRepository, } from "./draftDeliveryFacts.js";
|
|
3
|
+
import { DraftDeliveryFailure, isGitHubOriginContext, isIssueBoundContext, } from "./draftDeliveryTypes.js";
|
|
4
|
+
import { assertDraftAuthority, assertDraftBranchTarget, assertDraftLocalCandidate, assertKnownDraftIdentity, initialBranchBinding, initialDraftBinding, readDraftRemoteState, resolveDraftRepository, } from "./draftDeliveryFacts.js";
|
|
4
5
|
import { adoptDraftPredecessor, advanceDraft, currentDraft, draftNow, draftProposalDigest, proposalRecord, storeDraft, draftApprovalChanged, logDraftDeliveryActivity, } from "./draftDeliveryLedger.js";
|
|
5
6
|
import { resolveDraftDeliveryTemplate } from "./draftDeliveryTemplate.js";
|
|
6
7
|
import { readDraftDeliveryChecks } from "./draftDeliveryChecks.js";
|
|
@@ -10,12 +11,52 @@ import { processServerLogSink } from "../process-log-sink.js";
|
|
|
10
11
|
import { errorKindOf } from "@oscharko-dev/keiko-activity-log";
|
|
11
12
|
import { gitDeliveryActivityErrorKind } from "./execution.js";
|
|
12
13
|
import { logDraftRelatedIssues } from "./draftRelatedIssuesActivity.js";
|
|
14
|
+
import { correlationIdOrUnknown, UNKNOWN_CORRELATION_ID } from "../correlation.js";
|
|
13
15
|
function recorded(record) {
|
|
14
16
|
return { status: "recorded", record };
|
|
15
17
|
}
|
|
16
18
|
function unavailable(reason) {
|
|
17
19
|
return { status: "unavailable", reason };
|
|
18
20
|
}
|
|
21
|
+
// A binding of the other delivery kind than the run's own never carries over: an issue-bound run
|
|
22
|
+
// opens a pull request for its issue, an issue-free run on a github.com origin opens one for its
|
|
23
|
+
// task branch, and an issue-free run on any other remote pushes its branch only.
|
|
24
|
+
function issueBindingOf(binding) {
|
|
25
|
+
if (!isDraftDeliveryIssueBinding(binding))
|
|
26
|
+
throw new DraftDeliveryFailure("remote-drift");
|
|
27
|
+
return binding;
|
|
28
|
+
}
|
|
29
|
+
function pullRequestBindingOf(binding) {
|
|
30
|
+
if (!isDraftDeliveryPullRequestBinding(binding))
|
|
31
|
+
throw new DraftDeliveryFailure("remote-drift");
|
|
32
|
+
return binding;
|
|
33
|
+
}
|
|
34
|
+
function branchBindingOf(binding) {
|
|
35
|
+
if (isDraftDeliveryIssueBinding(binding))
|
|
36
|
+
throw new DraftDeliveryFailure("remote-drift");
|
|
37
|
+
return binding;
|
|
38
|
+
}
|
|
39
|
+
// An issue-free run's pull request needs a forge: no `origin` at all and a foreign `origin` are
|
|
40
|
+
// different truths, and neither is "no issue" (ADR-0086 D13).
|
|
41
|
+
function pullRequestOriginRefusal(context) {
|
|
42
|
+
if (isIssueBoundContext(context) || isGitHubOriginContext(context))
|
|
43
|
+
return undefined;
|
|
44
|
+
return context.repositoryKind === "local" ? "remote-required" : "github-origin-required";
|
|
45
|
+
}
|
|
46
|
+
// The remote phases of an issue-free GitHub run (a pull request proposed, created or delivered) are
|
|
47
|
+
// reconciled against the provider like an issue-bound run's; its push phases carry no remote fact.
|
|
48
|
+
function carriesPullRequest(record) {
|
|
49
|
+
return (record !== undefined &&
|
|
50
|
+
isDraftDeliveryRepositoryBinding(record.binding) &&
|
|
51
|
+
(record.pullRequest !== undefined ||
|
|
52
|
+
record.phase === "pr-proposed" ||
|
|
53
|
+
record.phase === "creating-pr" ||
|
|
54
|
+
record.phase === "draft-created"));
|
|
55
|
+
}
|
|
56
|
+
// A new proposal on an existing record keeps that record's recovery identity.
|
|
57
|
+
function withPriorRecovery(source, prior) {
|
|
58
|
+
return prior === undefined ? source : { ...source, recoveryId: prior.binding.recoveryId };
|
|
59
|
+
}
|
|
19
60
|
function deliveryAction(proposal) {
|
|
20
61
|
return proposal.command.kind === "push" ? "push" : "pull-request";
|
|
21
62
|
}
|
|
@@ -107,13 +148,13 @@ export class DraftDeliveryController {
|
|
|
107
148
|
async run(work, guard) {
|
|
108
149
|
const context = this.context(guard);
|
|
109
150
|
if (context === undefined)
|
|
110
|
-
return
|
|
151
|
+
return this.contextRefusal();
|
|
111
152
|
if (this.busy)
|
|
112
153
|
return this.busyRefusal(context);
|
|
113
154
|
this.busy = true;
|
|
114
155
|
try {
|
|
115
156
|
assertDraftAuthority(context);
|
|
116
|
-
return await work(context);
|
|
157
|
+
return this.loggedRefusal(context, await work(context));
|
|
117
158
|
}
|
|
118
159
|
catch (error) {
|
|
119
160
|
return this.failure(context, error);
|
|
@@ -122,6 +163,23 @@ export class DraftDeliveryController {
|
|
|
122
163
|
this.busy = false;
|
|
123
164
|
}
|
|
124
165
|
}
|
|
166
|
+
// The run has no verified delivery context (`repository-required`), or the caller's guard no
|
|
167
|
+
// longer holds (`authority-denied`). Both used to answer one bare refusal with no log line, so the
|
|
168
|
+
// model saw no cause and invented one (Coding Workbench live lab, 2026-10-30).
|
|
169
|
+
contextRefusal() {
|
|
170
|
+
const live = this.options.context();
|
|
171
|
+
const reason = live === undefined ? "repository-required" : "authority-denied";
|
|
172
|
+
this.logRefusal(live?.correlationId ?? correlationIdOrUnknown(this.options.runId), live?.runId ?? this.options.runId ?? UNKNOWN_CORRELATION_ID, reason);
|
|
173
|
+
return unavailable(reason);
|
|
174
|
+
}
|
|
175
|
+
loggedRefusal(context, result) {
|
|
176
|
+
if (result.status === "unavailable")
|
|
177
|
+
this.logRefusal(context.correlationId, context.runId, result.reason);
|
|
178
|
+
return result;
|
|
179
|
+
}
|
|
180
|
+
logRefusal(correlationId, runId, reason) {
|
|
181
|
+
logDraftDeliveryActivity(this.options, correlationId, { runId, phase: "refused", reason }, { errorKind: reason === "authority-denied" ? "authority-denied" : "unavailable" });
|
|
182
|
+
}
|
|
125
183
|
busyRefusal(context) {
|
|
126
184
|
logDraftDeliveryActivity(this.options, context.correlationId, { runId: context.runId, phase: "refused", reason: "operation-in-flight" }, { errorKind: "conflict" });
|
|
127
185
|
return unavailable("operation-in-flight");
|
|
@@ -152,7 +210,12 @@ export class DraftDeliveryController {
|
|
|
152
210
|
getOrAdopt(context) {
|
|
153
211
|
return currentDraft(this.options, context) ?? adoptDraftPredecessor(this.options, context);
|
|
154
212
|
}
|
|
155
|
-
|
|
213
|
+
preparePush(context) {
|
|
214
|
+
return isIssueBoundContext(context)
|
|
215
|
+
? this.prepareIssuePush(context)
|
|
216
|
+
: this.prepareBranchPush(context);
|
|
217
|
+
}
|
|
218
|
+
async prepareIssuePush(context) {
|
|
156
219
|
const repository = await resolveDraftRepository(this.options, context);
|
|
157
220
|
const prior = this.getOrAdopt(context);
|
|
158
221
|
if (prior?.phase === "pushing" || prior?.phase === "creating-pr")
|
|
@@ -160,13 +223,45 @@ export class DraftDeliveryController {
|
|
|
160
223
|
const source = initialDraftBinding(this.options, context, repository) ?? prior?.binding;
|
|
161
224
|
if (source === undefined)
|
|
162
225
|
return unavailable("verified-commit-required");
|
|
163
|
-
|
|
226
|
+
return this.proposeVerifiedPush(context, issueBindingOf(withPriorRecovery(source, prior)), prior);
|
|
227
|
+
}
|
|
228
|
+
// An issue-free run pushes its verified commit to its own task branch on `origin`, which may be
|
|
229
|
+
// any Git remote (ADR-0085 D1b). No GitHub fact is read for the push: the only remote evidence is
|
|
230
|
+
// the non-force push itself; `origin` is re-verified here and again right before the effect. On a
|
|
231
|
+
// verified github.com origin the binding also names the repository, so the pull request that may
|
|
232
|
+
// follow shares this record (ADR-0086 D13).
|
|
233
|
+
async prepareBranchPush(context) {
|
|
234
|
+
if (context.repositoryKind === "local")
|
|
235
|
+
return unavailable("remote-required");
|
|
236
|
+
const live = await assertDraftBranchTarget(this.options, context);
|
|
237
|
+
const prior = this.getOrAdopt(context);
|
|
238
|
+
if (prior?.phase === "pushing")
|
|
239
|
+
return this.reconcileCurrent(context);
|
|
240
|
+
const repository = this.branchRepository(context, live, prior);
|
|
241
|
+
const source = initialBranchBinding(this.options, context, repository) ?? prior?.binding;
|
|
242
|
+
if (source === undefined)
|
|
243
|
+
return unavailable("verified-commit-required");
|
|
244
|
+
return this.proposeVerifiedPush(context, branchBindingOf(withPriorRecovery(source, prior)), prior);
|
|
245
|
+
}
|
|
246
|
+
// The shared tail of both push kinds: the exact local candidate, then a retained or a new proposal.
|
|
247
|
+
async proposeVerifiedPush(context, binding, prior) {
|
|
164
248
|
await assertDraftLocalCandidate(this.options, context, binding);
|
|
165
249
|
const retained = this.retainedPushProposal(context, binding, prior);
|
|
166
250
|
if (retained !== undefined)
|
|
167
251
|
return retained;
|
|
168
252
|
return this.pushProposal(context, binding, prior);
|
|
169
253
|
}
|
|
254
|
+
// A stored target never changes kind, so a record that already exists keeps the kind it was born
|
|
255
|
+
// with; a new one is bound to the repository exactly when `origin` is a verified github.com one.
|
|
256
|
+
branchRepository(context, live, prior) {
|
|
257
|
+
if (prior !== undefined)
|
|
258
|
+
return isDraftDeliveryRepositoryBinding(prior.binding) ? prior.binding.repository : undefined;
|
|
259
|
+
if (context.repositoryKind !== "github-origin")
|
|
260
|
+
return undefined;
|
|
261
|
+
if (live === undefined)
|
|
262
|
+
throw new DraftDeliveryFailure("remote-drift");
|
|
263
|
+
return live;
|
|
264
|
+
}
|
|
170
265
|
retainedPushProposal(context, binding, prior) {
|
|
171
266
|
if (prior?.binding.headSha !== binding.headSha || prior.phase === "recovery-required")
|
|
172
267
|
return undefined;
|
|
@@ -186,6 +281,8 @@ export class DraftDeliveryController {
|
|
|
186
281
|
};
|
|
187
282
|
const record = proposalRecord(this.options, binding, command, prior);
|
|
188
283
|
storeDraft(this.options, context, record, prior?.revision ?? null);
|
|
284
|
+
if (!isDraftDeliveryIssueBinding(binding))
|
|
285
|
+
return this.acceptProposal(context, record, command, { record }, undefined);
|
|
189
286
|
const remote = await readDraftRemoteState(this.options, context, binding);
|
|
190
287
|
assertKnownDraftIdentity(record, remote);
|
|
191
288
|
if (remote.headSha !== undefined &&
|
|
@@ -195,31 +292,45 @@ export class DraftDeliveryController {
|
|
|
195
292
|
return this.acceptProposal(context, record, command, { record }, remote.headSha);
|
|
196
293
|
}
|
|
197
294
|
async preparePullRequest(context, title) {
|
|
295
|
+
// A pull request needs a verified GitHub repository, never an issue: an accepted issue only
|
|
296
|
+
// links it (ADR-0086 D13). Its head is the run's task branch and its base the branch the task was
|
|
297
|
+
// cut from; an issue-bound run additionally takes its closing line from the accepted issue.
|
|
298
|
+
const refusal = pullRequestOriginRefusal(context);
|
|
299
|
+
if (refusal !== undefined)
|
|
300
|
+
return unavailable(refusal);
|
|
198
301
|
await resolveDraftRepository(this.options, context);
|
|
199
302
|
const current = this.getOrAdopt(context);
|
|
200
303
|
if (current === undefined)
|
|
201
304
|
return unavailable("verified-commit-required");
|
|
202
|
-
|
|
305
|
+
// A branch-push record was bound before this run's origin was known to be GitHub (it predates
|
|
306
|
+
// repository bindings) and cannot become a pull request's record without changing its target.
|
|
307
|
+
if (isDraftDeliveryBranchBinding(current.binding))
|
|
308
|
+
return unavailable("proposal-unavailable");
|
|
309
|
+
const binding = pullRequestBindingOf(current.binding);
|
|
310
|
+
await assertDraftLocalCandidate(this.options, context, binding);
|
|
203
311
|
if (this.samePrProposal(current, title))
|
|
204
312
|
return recorded(current);
|
|
205
313
|
if (current.phase !== "pushed")
|
|
206
314
|
return this.reconcileCurrent(context);
|
|
207
|
-
const remote = await readDraftRemoteState(this.options, context,
|
|
315
|
+
const remote = await readDraftRemoteState(this.options, context, binding);
|
|
208
316
|
assertKnownDraftIdentity(current, remote);
|
|
209
|
-
if (remote.headSha !==
|
|
317
|
+
if (remote.headSha !== binding.headSha)
|
|
210
318
|
throw new DraftDeliveryFailure("remote-drift");
|
|
211
319
|
if (remote.pullRequest !== undefined)
|
|
212
320
|
return this.reconcileCurrent(context);
|
|
213
321
|
const template = await this.composeTemplate(context, current, title);
|
|
214
322
|
if (template.status !== "ready")
|
|
215
323
|
throw new DraftDeliveryFailure("payload-changed");
|
|
216
|
-
return this.pullRequestProposal(context, current, template.title, template.body);
|
|
324
|
+
return this.pullRequestProposal(context, current, binding, template.title, template.body);
|
|
217
325
|
}
|
|
218
|
-
// The server-owned body: the authored template, the closing line for the bound issue
|
|
219
|
-
// resolved children as a non-closing related-issue line (run
|
|
220
|
-
// run's verification evidence records for the committed change
|
|
326
|
+
// The server-owned body: the authored template, the closing line for the bound issue (an
|
|
327
|
+
// issue-free run has none), the epic's resolved children as a non-closing related-issue line (run
|
|
328
|
+
// 19, 2026-09-10) and the checks the run's verification evidence records for the committed change
|
|
329
|
+
// (F57, run 28).
|
|
221
330
|
async composeTemplate(context, record, title) {
|
|
222
|
-
const relatedIssueNumbers =
|
|
331
|
+
const relatedIssueNumbers = isIssueBoundContext(context)
|
|
332
|
+
? await this.relatedIssues(context)
|
|
333
|
+
: [];
|
|
223
334
|
const activityLog = this.options.execution?.activityLog;
|
|
224
335
|
const verificationChecks = readDraftDeliveryChecks({
|
|
225
336
|
snapshots: this.options.snapshots,
|
|
@@ -267,12 +378,12 @@ export class DraftDeliveryController {
|
|
|
267
378
|
const proposal = this.review(record.proposalId);
|
|
268
379
|
return proposal?.command.kind === "pr-create" && proposal.command.title === title;
|
|
269
380
|
}
|
|
270
|
-
pullRequestProposal(context, current, title, body) {
|
|
381
|
+
pullRequestProposal(context, current, binding, title, body) {
|
|
271
382
|
const command = {
|
|
272
383
|
kind: "pr-create",
|
|
273
|
-
ownerAndRepo:
|
|
274
|
-
headBranchName:
|
|
275
|
-
baseBranchName:
|
|
384
|
+
ownerAndRepo: binding.repository,
|
|
385
|
+
headBranchName: binding.headRef,
|
|
386
|
+
baseBranchName: binding.baseRef,
|
|
276
387
|
title,
|
|
277
388
|
body,
|
|
278
389
|
isDraft: true,
|
|
@@ -282,9 +393,9 @@ export class DraftDeliveryController {
|
|
|
282
393
|
// and `remote.headSha === current.binding.headSha` (throwing `DraftDeliveryFailure` otherwise a
|
|
283
394
|
// few lines above), so `current.binding.headSha` is already the live, drift-checked head of the
|
|
284
395
|
// branch this PR proposes to open — safe and correct to pin here.
|
|
285
|
-
verifiedCommitSha:
|
|
396
|
+
verifiedCommitSha: binding.headSha,
|
|
286
397
|
};
|
|
287
|
-
const record = proposalRecord(this.options,
|
|
398
|
+
const record = proposalRecord(this.options, binding, command, current);
|
|
288
399
|
storeDraft(this.options, context, record, current.revision);
|
|
289
400
|
return this.acceptProposal(context, record, command, { record, title, body }, record.binding.headSha);
|
|
290
401
|
}
|
|
@@ -346,13 +457,33 @@ export class DraftDeliveryController {
|
|
|
346
457
|
return { required: false };
|
|
347
458
|
}
|
|
348
459
|
async reconcileCurrent(context) {
|
|
460
|
+
if (!isIssueBoundContext(context) && !carriesPullRequest(currentDraft(this.options, context)))
|
|
461
|
+
return this.reconcileBranch(context);
|
|
349
462
|
await resolveDraftRepository(this.options, context);
|
|
350
463
|
const adopted = this.getOrAdopt(context);
|
|
351
464
|
if (adopted === undefined)
|
|
352
465
|
return unavailable("verified-commit-required");
|
|
353
466
|
return this.reconcileRecord(context, adopted);
|
|
354
467
|
}
|
|
468
|
+
// A branch push has no remote record to read back: the pinned, non-force push is the only effect
|
|
469
|
+
// and it either exited 0 or did not. An attempt that was interrupted is settled as recovery, and a
|
|
470
|
+
// fresh proposal re-pushes the same exact commit, which Git answers as already up to date.
|
|
471
|
+
reconcileBranch(context) {
|
|
472
|
+
const adopted = this.getOrAdopt(context);
|
|
473
|
+
if (adopted === undefined)
|
|
474
|
+
return unavailable("verified-commit-required");
|
|
475
|
+
branchBindingOf(adopted.binding);
|
|
476
|
+
this.proposal = undefined;
|
|
477
|
+
if (adopted.phase === "pushed" || adopted.phase === "recovery-required")
|
|
478
|
+
return recorded(adopted);
|
|
479
|
+
return recorded(advanceDraft(this.options, context, adopted, "recovery-required", "restart-reconciliation"));
|
|
480
|
+
}
|
|
355
481
|
async reconcileObservationCurrent(context) {
|
|
482
|
+
// CI observation follows a delivered pull request of an issue-bound run: its journey, readiness
|
|
483
|
+
// and repair budget are keyed to the accepted issue. A pull request opened without one is
|
|
484
|
+
// delivered but not observed (ADR-0086 D13).
|
|
485
|
+
if (!isIssueBoundContext(context))
|
|
486
|
+
return unavailable("issue-binding-required");
|
|
356
487
|
const existing = currentDraft(this.options, context);
|
|
357
488
|
if (existing !== undefined && existing.phase !== "recovery-required")
|
|
358
489
|
return unavailable("proposal-unavailable");
|
|
@@ -376,7 +507,7 @@ export class DraftDeliveryController {
|
|
|
376
507
|
let current = adopted;
|
|
377
508
|
// Reconciliation observes an already bound remote effect. Local repairs may be ahead or
|
|
378
509
|
// uncommitted; proposal and execution paths still verify their exact local candidate.
|
|
379
|
-
const remote = await readDraftRemoteState(this.options, context, current.binding);
|
|
510
|
+
const remote = await readDraftRemoteState(this.options, context, pullRequestBindingOf(current.binding));
|
|
380
511
|
if (!stillCurrent())
|
|
381
512
|
return unavailable("proposal-unavailable");
|
|
382
513
|
assertKnownDraftIdentity(current, remote);
|
|
@@ -5,8 +5,34 @@ import type { GitPullRequestIdentity } from "@oscharko-dev/keiko-contracts/runti
|
|
|
5
5
|
import { type GitPullRequestInspectionAdapter, type GitPullRequestBodyAdapter } from "@oscharko-dev/keiko-tools";
|
|
6
6
|
import type { ServerLogEvent } from "@oscharko-dev/keiko-activity-log";
|
|
7
7
|
import { DraftDeliveryController } from "./draftDeliveryService.js";
|
|
8
|
-
import type { DraftDeliveryRunContext, DraftDeliveryServiceOptions } from "./draftDeliveryTypes.js";
|
|
8
|
+
import type { DraftBranchTargetResolution, DraftDeliveryRunContext, DraftDeliveryServiceOptions } from "./draftDeliveryTypes.js";
|
|
9
|
+
/**
|
|
10
|
+
* `issueFree` builds a run with no accepted issue whose `origin` is the local bare repository, so a
|
|
11
|
+
* push is the whole delivery (ADR-0085 D1b). `realPublish` swaps the stub publish adapter for the
|
|
12
|
+
* real Node adapter, which runs the pinned `git push origin <sha>:refs/heads/<branch>` against that
|
|
13
|
+
* bare origin.
|
|
14
|
+
*/
|
|
15
|
+
export interface DraftDeliveryFixtureOptions {
|
|
16
|
+
readonly issueFree?: boolean;
|
|
17
|
+
readonly realPublish?: boolean;
|
|
18
|
+
readonly branch?: string;
|
|
19
|
+
/**
|
|
20
|
+
* An issue-free run whose `origin` was admitted as a verified github.com repository. Its bare
|
|
21
|
+
* repository stands in for GitHub: the run's identity digest and the repository the controller
|
|
22
|
+
* resolves are those of `owner/repository`, while every push still lands in the local bare remote
|
|
23
|
+
* through the stub publish adapter (`realPublish` would push to github.com and is not supported).
|
|
24
|
+
*/
|
|
25
|
+
readonly githubOrigin?: boolean;
|
|
26
|
+
}
|
|
9
27
|
export declare class DraftDeliveryFixture {
|
|
28
|
+
readonly issueFree: boolean;
|
|
29
|
+
readonly branch: string;
|
|
30
|
+
readonly realPublish: boolean;
|
|
31
|
+
/** What `resolveBranchTarget` answers; flip it to model a drifted or lost `origin`. */
|
|
32
|
+
branchTarget: DraftBranchTargetResolution;
|
|
33
|
+
branchTargetCalls: number;
|
|
34
|
+
repositoryKind: "github-origin" | "foreign-origin" | "local";
|
|
35
|
+
readonly githubOrigin: boolean;
|
|
10
36
|
readonly root: string;
|
|
11
37
|
readonly remote: string;
|
|
12
38
|
readonly db: DatabaseSync;
|
|
@@ -40,16 +66,18 @@ export declare class DraftDeliveryFixture {
|
|
|
40
66
|
liveIdentity: ((identity: GitPullRequestIdentity) => GitPullRequestIdentity) | undefined;
|
|
41
67
|
readonly bodyAdapter: GitPullRequestBodyAdapter;
|
|
42
68
|
readonly adapter: GitPullRequestInspectionAdapter;
|
|
43
|
-
constructor();
|
|
69
|
+
constructor(fixture?: DraftDeliveryFixtureOptions);
|
|
44
70
|
git(args: readonly string[], cwd?: string): string;
|
|
45
71
|
private initializeRepository;
|
|
46
72
|
private makeIssue;
|
|
73
|
+
/** The identity digest the run was admitted with: the issue's remote, or the foreign origin's. */
|
|
74
|
+
get repositoryDigest(): string;
|
|
47
75
|
private makeContext;
|
|
48
76
|
private createSnapshot;
|
|
49
77
|
recordVerifiedCommit(proposalId?: string, evidenceId?: string, message?: string): Promise<void>;
|
|
50
78
|
/** A later verified commit on the task branch, as a CI repair records it. */
|
|
51
79
|
recordLaterCommit(): Promise<string>;
|
|
52
|
-
|
|
80
|
+
remoteHead(branch: string): string | undefined;
|
|
53
81
|
identity(): GitPullRequestIdentity;
|
|
54
82
|
private makeAdapter;
|
|
55
83
|
private makeBodyAdapter;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draftDeliveryServiceTestSupport.d.ts","sourceRoot":"","sources":["../../src/gitDelivery/draftDeliveryServiceTestSupport.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AAChG,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wDAAwD,CAAC;AACrG,OAAO,EAEL,KAAK,+BAA+B,EAMpC,KAAK,yBAAyB,EAC/B,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"draftDeliveryServiceTestSupport.d.ts","sourceRoot":"","sources":["../../src/gitDelivery/draftDeliveryServiceTestSupport.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AAChG,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wDAAwD,CAAC;AACrG,OAAO,EAEL,KAAK,+BAA+B,EAMpC,KAAK,yBAAyB,EAC/B,MAAM,2BAA2B,CAAC;AAanC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAEvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,KAAK,EACV,2BAA2B,EAC3B,uBAAuB,EACvB,2BAA2B,EAC5B,MAAM,yBAAyB,CAAC;AA2BjC;;;;;GAKG;AACH,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAC/B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB;;;;;OAKG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,qBAAa,oBAAoB;IAC/B,SAAgB,SAAS,EAAE,OAAO,CAAC;IACnC,SAAgB,MAAM,EAAE,MAAM,CAAC;IAC/B,SAAgB,WAAW,EAAE,OAAO,CAAC;IACrC,uFAAuF;IAChF,YAAY,EAAE,2BAA2B,CAAC;IAC1C,iBAAiB,SAAK;IACtB,cAAc,EAAE,eAAe,GAAG,gBAAgB,GAAG,OAAO,CAAC;IACpE,SAAgB,YAAY,EAAE,OAAO,CAAC;IACtC,SAAgB,IAAI,SAAqE;IACzF,SAAgB,MAAM,SAAoE;IAC1F,SAAgB,EAAE,eAAgC;IAClD,SAAgB,MAAM,EAAE,cAAc,EAAE,CAAM;IAC9C,SAAgB,OAAO,EAAE,mBAAmB,EAAE,CAAM;IACpD,SAAgB,QAAQ,sBAA6B;IACrD,SAAgB,SAAS,uFAAC;IAC1B,SAAgB,KAAK,EAAE,2BAA2B,CAAC;IACnD,SAAgB,OAAO,EAAE,uBAAuB,CAAC;IACjD,SAAgB,OAAO,EAAE,2BAA2B,CAAC;IACrD,SAAgB,OAAO,EAAE,uBAAuB,CAAC;IAC1C,IAAI,UAAQ;IACZ,KAAK,UAAQ;IACb,GAAG,SAA0C;IAC7C,SAAS,SAAK;IACd,WAAW,SAAK;IAChB,GAAG,EAAE,sBAAsB,EAAE,CAAM;IACnC,aAAa,UAAS;IACtB,eAAe,UAAS;IACxB,mBAAmB,UAAS;IAC5B,mBAAmB,UAAS;IAC5B,YAAY,EAAE,aAAa,GAAG,cAAc,GAAG,iBAAiB,GAAG,SAAS,CAAC;IAC7E,iBAAiB,EAAE,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,SAAS,CAAC;IACrD,UAAU,SAAM;IAEhB,MAAM,SAAM;IACnB,SAAgB,eAAe,8BAA8B;IAC7D,SAAgB,WAAW,EAAE,MAAM,EAAE,CAAM;IACpC,SAAS,SAAK;IACd,YAAY,UAAS;IACrB,cAAc,EAAE,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;IAGrD,YAAY,EAAE,CAAC,CAAC,QAAQ,EAAE,sBAAsB,KAAK,sBAAsB,CAAC,GAAG,SAAS,CAAC;IAChG,SAAgB,WAAW,EAAE,yBAAyB,CAAC;IACvD,SAAgB,OAAO,EAAE,+BAA+B,CAAC;IAEzD,YAAmB,OAAO,GAAE,2BAAgC,EAmB3D;IACM,GAAG,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,EAAE,GAAG,SAAY,GAAG,MAAM,CAU3D;IACD,OAAO,CAAC,oBAAoB;IAsB5B,OAAO,CAAC,SAAS;IAYjB,kGAAkG;IAClG,IAAW,gBAAgB,IAAI,MAAM,CAGpC;IACD,OAAO,CAAC,WAAW;IA8BnB,OAAO,CAAC,cAAc;IAuBT,oBAAoB,CAC/B,UAAU,SAAa,EACvB,UAAU,SAAmB,EAC7B,OAAO,SAAyB,GAC/B,OAAO,CAAC,IAAI,CAAC,CAyBf;IACD,6EAA6E;IAChE,iBAAiB,IAAI,OAAO,CAAC,MAAM,CAAC,CAOhD;IACM,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAMpD;IACM,QAAQ,IAAI,sBAAsB,CAcxC;IACD,OAAO,CAAC,WAAW;IAgDnB,OAAO,CAAC,eAAe;IAoBvB,OAAO,CAAC,gBAAgB;IAgBxB,OAAO,CAAC,WAAW;IAkDnB,OAAO,CAAC,OAAO;IAkBR,gBAAgB,IAAI,2BAA2B,CAmCrD;IACM,KAAK,IAAI,IAAI,CAKnB;CACF"}
|
package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryServiceTestSupport.js
CHANGED
|
@@ -4,10 +4,11 @@ import { tmpdir } from "node:os";
|
|
|
4
4
|
import { join } from "node:path";
|
|
5
5
|
import { DatabaseSync } from "node:sqlite";
|
|
6
6
|
import { buildPushArgv, } from "@oscharko-dev/keiko-tools";
|
|
7
|
-
import { gitCommitMessageDigest, readGitIndexTreeDigest, } from "@oscharko-dev/keiko-tools/internal/git-mutation";
|
|
7
|
+
import { createNodeGitPublishAdapter, gitCommitMessageDigest, readGitIndexTreeDigest, } from "@oscharko-dev/keiko-tools/internal/git-mutation";
|
|
8
8
|
import { createCodingRuntimeSnapshotStore } from "../coding-runtime/codingRuntimeSnapshotStore.js";
|
|
9
9
|
import { codingWorkbenchIssueBindingDigest, codingWorkbenchRemoteDigest, } from "../coding-context/githubIssueResolution.js";
|
|
10
10
|
import { runMigrations } from "../store/schema.js";
|
|
11
|
+
import { foreignOriginDigest } from "./verifiedRepositoryIdentity.js";
|
|
11
12
|
import { createInMemoryGitDeliveryApprovalStore } from "./approvalStore.js";
|
|
12
13
|
import { DraftDeliveryController } from "./draftDeliveryService.js";
|
|
13
14
|
const DIGEST = "a".repeat(64);
|
|
@@ -34,6 +35,14 @@ function gitTestProcessEnv() {
|
|
|
34
35
|
return env;
|
|
35
36
|
}
|
|
36
37
|
export class DraftDeliveryFixture {
|
|
38
|
+
issueFree;
|
|
39
|
+
branch;
|
|
40
|
+
realPublish;
|
|
41
|
+
/** What `resolveBranchTarget` answers; flip it to model a drifted or lost `origin`. */
|
|
42
|
+
branchTarget;
|
|
43
|
+
branchTargetCalls = 0;
|
|
44
|
+
repositoryKind;
|
|
45
|
+
githubOrigin;
|
|
37
46
|
root = realpathSync(mkdtempSync(join(tmpdir(), "keiko-draft-service-")));
|
|
38
47
|
remote = realpathSync(mkdtempSync(join(tmpdir(), "keiko-draft-remote-")));
|
|
39
48
|
db = new DatabaseSync(":memory:");
|
|
@@ -70,7 +79,15 @@ export class DraftDeliveryFixture {
|
|
|
70
79
|
liveIdentity;
|
|
71
80
|
bodyAdapter;
|
|
72
81
|
adapter;
|
|
73
|
-
constructor() {
|
|
82
|
+
constructor(fixture = {}) {
|
|
83
|
+
this.issueFree = fixture.issueFree === true;
|
|
84
|
+
this.realPublish = fixture.realPublish === true;
|
|
85
|
+
this.githubOrigin = fixture.issueFree === true && fixture.githubOrigin === true;
|
|
86
|
+
if (this.githubOrigin && this.realPublish)
|
|
87
|
+
throw new Error("a github.com origin fixture publishes through the stub adapter");
|
|
88
|
+
this.repositoryKind = this.githubOrigin ? "github-origin" : "foreign-origin";
|
|
89
|
+
this.branchTarget = this.githubOrigin ? { ok: true, repository: REPOSITORY } : { ok: true };
|
|
90
|
+
this.branch = fixture.branch ?? (this.issueFree ? "claude/task-1" : "feature/issue-1");
|
|
74
91
|
this.initializeRepository();
|
|
75
92
|
runMigrations(this.db);
|
|
76
93
|
this.snapshots = createCodingRuntimeSnapshotStore(this.db);
|
|
@@ -103,12 +120,17 @@ export class DraftDeliveryFixture {
|
|
|
103
120
|
this.git(["commit", "-qm", "base"]);
|
|
104
121
|
this.git(["init", "--bare", "-q", this.remote]);
|
|
105
122
|
this.git(["push", "-q", this.remote, "master"]);
|
|
106
|
-
this.git(["checkout", "-qb",
|
|
123
|
+
this.git(["checkout", "-qb", this.branch]);
|
|
107
124
|
writeFileSync(join(this.root, "code.js"), "export const value = 2;\n");
|
|
108
125
|
this.git(["add", "code.js"]);
|
|
109
126
|
this.git(["commit", "-qm", "feat: bounded change"]);
|
|
110
127
|
this.git(["update-index", "--refresh", "-q"]);
|
|
111
|
-
this.git([
|
|
128
|
+
this.git([
|
|
129
|
+
"remote",
|
|
130
|
+
"add",
|
|
131
|
+
"origin",
|
|
132
|
+
this.issueFree && !this.githubOrigin ? this.remote : `https://github.com/${REPOSITORY}.git`,
|
|
133
|
+
]);
|
|
112
134
|
}
|
|
113
135
|
makeIssue() {
|
|
114
136
|
const fields = {
|
|
@@ -122,6 +144,12 @@ export class DraftDeliveryFixture {
|
|
|
122
144
|
};
|
|
123
145
|
return { ...fields, bindingDigest: codingWorkbenchIssueBindingDigest(fields) };
|
|
124
146
|
}
|
|
147
|
+
/** The identity digest the run was admitted with: the issue's remote, or the foreign origin's. */
|
|
148
|
+
get repositoryDigest() {
|
|
149
|
+
if (this.githubOrigin)
|
|
150
|
+
return codingWorkbenchRemoteDigest(REPOSITORY);
|
|
151
|
+
return this.issueFree ? foreignOriginDigest(this.remote) : this.issue.remoteDigest;
|
|
152
|
+
}
|
|
125
153
|
makeContext() {
|
|
126
154
|
return {
|
|
127
155
|
runId: "run-1",
|
|
@@ -130,11 +158,12 @@ export class DraftDeliveryFixture {
|
|
|
130
158
|
envelopeDigest: DIGEST,
|
|
131
159
|
runtimeAuthorityDigest: DIGEST,
|
|
132
160
|
workspaceDigest: DIGEST,
|
|
133
|
-
repositoryDigest: this.
|
|
134
|
-
|
|
135
|
-
|
|
161
|
+
repositoryDigest: this.repositoryDigest,
|
|
162
|
+
...(this.issueFree
|
|
163
|
+
? { repositoryKind: this.repositoryKind }
|
|
164
|
+
: { issueBindingDigest: this.issue.bindingDigest, issueBinding: this.issue }),
|
|
136
165
|
baseRef: "master",
|
|
137
|
-
headRef:
|
|
166
|
+
headRef: this.branch,
|
|
138
167
|
correlationId: "draft-delivery-test",
|
|
139
168
|
buffersClean: () => this.clean,
|
|
140
169
|
stillAuthorized: () => this.live,
|
|
@@ -171,7 +200,7 @@ export class DraftDeliveryFixture {
|
|
|
171
200
|
toolCallCount: 0,
|
|
172
201
|
patchByteCount: 0,
|
|
173
202
|
modelRequestCount: 0,
|
|
174
|
-
issueBinding: this.issue,
|
|
203
|
+
...(this.issueFree ? {} : { issueBinding: this.issue }),
|
|
175
204
|
});
|
|
176
205
|
}
|
|
177
206
|
async recordVerifiedCommit(proposalId = "commit-1", evidenceId = "verification-1", message = "feat: bounded change") {
|
|
@@ -186,8 +215,8 @@ export class DraftDeliveryFixture {
|
|
|
186
215
|
envelopeDigest: DIGEST,
|
|
187
216
|
runtimeAuthorityDigest: DIGEST,
|
|
188
217
|
workspaceDigest: DIGEST,
|
|
189
|
-
repositoryDigest: this.
|
|
190
|
-
issueBindingDigest: this.issue.bindingDigest,
|
|
218
|
+
repositoryDigest: this.repositoryDigest,
|
|
219
|
+
...(this.issueFree ? {} : { issueBindingDigest: this.issue.bindingDigest }),
|
|
191
220
|
baseSha: this.git(["rev-parse", this.context.baseRef]),
|
|
192
221
|
parentSha: this.git(["rev-parse", "HEAD^"]),
|
|
193
222
|
stagedTreeDigest,
|
|
@@ -321,6 +350,10 @@ export class DraftDeliveryFixture {
|
|
|
321
350
|
onChanged: (record) => {
|
|
322
351
|
this.changes.push(record);
|
|
323
352
|
},
|
|
353
|
+
resolveBranchTarget: () => {
|
|
354
|
+
this.branchTargetCalls += 1;
|
|
355
|
+
return Promise.resolve(this.branchTarget);
|
|
356
|
+
},
|
|
324
357
|
resolveTarget: async () => {
|
|
325
358
|
await this.asyncBeforeTarget?.();
|
|
326
359
|
return this.targetReason === undefined
|
|
@@ -332,9 +365,13 @@ export class DraftDeliveryFixture {
|
|
|
332
365
|
pullRequestSeams: () => ({ ...shared, prAdapterFactory: () => this.adapter }),
|
|
333
366
|
publishSeams: () => ({
|
|
334
367
|
...shared,
|
|
335
|
-
publishAdapterFactory: () =>
|
|
336
|
-
|
|
337
|
-
|
|
368
|
+
publishAdapterFactory: (workspace) => this.realPublish
|
|
369
|
+
? createNodeGitPublishAdapter({
|
|
370
|
+
workspace,
|
|
371
|
+
processEnv: gitTestProcessEnv(),
|
|
372
|
+
now: () => this.now,
|
|
373
|
+
})
|
|
374
|
+
: { publish: (request) => this.publish(request) },
|
|
338
375
|
}),
|
|
339
376
|
};
|
|
340
377
|
}
|
|
@@ -21,8 +21,12 @@ export type DraftDeliveryTemplateResult = {
|
|
|
21
21
|
};
|
|
22
22
|
export interface DraftDeliveryTemplateInput {
|
|
23
23
|
readonly workspace: WorkspaceInfo;
|
|
24
|
-
/**
|
|
25
|
-
|
|
24
|
+
/**
|
|
25
|
+
* Accepted server-owned binding, never an issue number supplied by authored metadata. Absent for
|
|
26
|
+
* an issue-free run on a github.com origin: its pull request carries no closing line (ADR-0086
|
|
27
|
+
* D13). An issue only ever links a pull request and is never its precondition.
|
|
28
|
+
*/
|
|
29
|
+
readonly issueBinding?: CodingWorkbenchIssueBinding | undefined;
|
|
26
30
|
/**
|
|
27
31
|
* Same-repository issues the bound issue references and the authorized reader resolved (an epic's
|
|
28
32
|
* children). Rendered as a non-closing "Related issues" line: the bound issue alone is closed.
|
package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryTemplate.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draftDeliveryTemplate.d.ts","sourceRoot":"","sources":["../../src/gitDelivery/draftDeliveryTemplate.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAgBjF,OAAO,EAGL,KAAK,WAAW,EAChB,KAAK,aAAa,EAEnB,MAAM,+BAA+B,CAAC;AAOvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAEtE,OAAO,EAEL,KAAK,mBAAmB,EAGzB,MAAM,0BAA0B,CAAC;AAwElC,eAAO,MAAM,6CAA6C,OAAO,CAAC;AAClE,eAAO,MAAM,iCAAiC,QAAS,CAAC;AAKxD,MAAM,MAAM,4BAA4B,GACpC,uBAAuB,GACvB,eAAe,GACf,iBAAiB,GACjB,uBAAuB,GACvB,oBAAoB,GACpB,oBAAoB,GACpB,qBAAqB,GACrB,iBAAiB,GACjB,sBAAsB,GACtB,0BAA0B,CAAC;AAE/B,MAAM,MAAM,2BAA2B,GACnC;IACE,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC,sFAAsF;IACtF,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;CACjC,GACD;IAAE,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,4BAA4B,CAAA;CAAE,CAAC;AAElF,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,SAAS,EAAE,aAAa,CAAC;IAClC
|
|
1
|
+
{"version":3,"file":"draftDeliveryTemplate.d.ts","sourceRoot":"","sources":["../../src/gitDelivery/draftDeliveryTemplate.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAgBjF,OAAO,EAGL,KAAK,WAAW,EAChB,KAAK,aAAa,EAEnB,MAAM,+BAA+B,CAAC;AAOvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAEtE,OAAO,EAEL,KAAK,mBAAmB,EAGzB,MAAM,0BAA0B,CAAC;AAwElC,eAAO,MAAM,6CAA6C,OAAO,CAAC;AAClE,eAAO,MAAM,iCAAiC,QAAS,CAAC;AAKxD,MAAM,MAAM,4BAA4B,GACpC,uBAAuB,GACvB,eAAe,GACf,iBAAiB,GACjB,uBAAuB,GACvB,oBAAoB,GACpB,oBAAoB,GACpB,qBAAqB,GACrB,iBAAiB,GACjB,sBAAsB,GACtB,0BAA0B,CAAC;AAE/B,MAAM,MAAM,2BAA2B,GACnC;IACE,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC,sFAAsF;IACtF,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;CACjC,GACD;IAAE,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,4BAA4B,CAAA;CAAE,CAAC;AAElF,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,SAAS,EAAE,aAAa,CAAC;IAClC;;;;OAIG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,2BAA2B,GAAG,SAAS,CAAC;IAChE;;;OAGG;IACH,QAAQ,CAAC,mBAAmB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACjD;;;OAGG;IACH,QAAQ,CAAC,kBAAkB,CAAC,EAAE,mBAAmB,CAAC;IAClD,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,EAAE,CAAC,EAAE,WAAW,CAAC;IAC1B,QAAQ,CAAC,WAAW,CAAC,EAAE,aAAa,CAAC;CACtC;AAkBD,eAAO,MAAM,iCAAiC,IAAoB,CAAC;AAwNnE,wGAAwG;AACxG,wBAAgB,4BAA4B,CAC1C,KAAK,EAAE,0BAA0B,GAChC,2BAA2B,CAU7B"}
|
|
@@ -109,7 +109,7 @@ function validRelatedIssues(input) {
|
|
|
109
109
|
new Set(related).size === related.length &&
|
|
110
110
|
related.every((issueNumber) => Number.isSafeInteger(issueNumber) &&
|
|
111
111
|
issueNumber > 0 &&
|
|
112
|
-
issueNumber !== input.issueBinding
|
|
112
|
+
issueNumber !== input.issueBinding?.issueNumber));
|
|
113
113
|
}
|
|
114
114
|
function issueReference(issueNumber) {
|
|
115
115
|
return `#${String(issueNumber)}`;
|
|
@@ -120,8 +120,14 @@ function relatedIssuesLine(input) {
|
|
|
120
120
|
return "";
|
|
121
121
|
return `Related issues: ${related.map(issueReference).join(", ")}\n\n`;
|
|
122
122
|
}
|
|
123
|
+
function closingLine(input) {
|
|
124
|
+
return input.issueBinding === undefined
|
|
125
|
+
? ""
|
|
126
|
+
: `Closes #${String(input.issueBinding.issueNumber)}\n\n`;
|
|
127
|
+
}
|
|
123
128
|
function validateInput(input) {
|
|
124
|
-
if (
|
|
129
|
+
if (input.issueBinding !== undefined &&
|
|
130
|
+
!validateCodingWorkbenchIssueBinding(input.issueBinding).ok)
|
|
125
131
|
throw new TemplateResolutionError("invalid-issue-binding");
|
|
126
132
|
if (!validRelatedIssues(input))
|
|
127
133
|
throw new TemplateResolutionError("invalid-issue-binding");
|
|
@@ -217,7 +223,7 @@ function compose(input) {
|
|
|
217
223
|
throw new TemplateResolutionError("template-unreadable");
|
|
218
224
|
const prefix = template.length === 0 ? "" : `${template}\n\n`;
|
|
219
225
|
const checks = renderedChecks(input);
|
|
220
|
-
const body = `${prefix}
|
|
226
|
+
const body = `${prefix}${closingLine(input)}${relatedIssuesLine(input)}${checks.section}${framePrDescriptionRegion("")}`;
|
|
221
227
|
return {
|
|
222
228
|
status: "ready",
|
|
223
229
|
title: input.title,
|
|
@@ -13,8 +13,30 @@ import type { CodingWorkbenchCodeTaskDeliveryAction } from "@oscharko-dev/keiko-
|
|
|
13
13
|
export interface DraftDeliveryRunContext extends VerifiedCommitRunContext {
|
|
14
14
|
readonly taskId: string;
|
|
15
15
|
readonly workspaceId: string;
|
|
16
|
+
/** Absent for an issue-free run, which delivers by pushing its own task branch (ADR-0085 D1b). */
|
|
17
|
+
readonly issueBinding?: CodingWorkbenchIssueBinding;
|
|
18
|
+
}
|
|
19
|
+
/** A run context whose accepted issue exists: the only one that resolves a GitHub target or opens a PR. */
|
|
20
|
+
export interface IssueBoundDraftDeliveryRunContext extends DraftDeliveryRunContext {
|
|
16
21
|
readonly issueBinding: CodingWorkbenchIssueBinding;
|
|
17
22
|
}
|
|
23
|
+
export declare function isIssueBoundContext(context: DraftDeliveryRunContext): context is IssueBoundDraftDeliveryRunContext;
|
|
24
|
+
/**
|
|
25
|
+
* An issue-free run whose `origin` was admitted as a verified github.com repository. It opens a
|
|
26
|
+
* draft pull request without an accepted issue; an issue only ever links one (ADR-0086 D13).
|
|
27
|
+
*/
|
|
28
|
+
export declare function isGitHubOriginContext(context: DraftDeliveryRunContext): boolean;
|
|
29
|
+
/**
|
|
30
|
+
* The closed outcome of verifying an issue-free run's `origin` before a branch push. A github.com
|
|
31
|
+
* origin also names its live `owner/repository`, whose identity digest equals the run's own.
|
|
32
|
+
*/
|
|
33
|
+
export type DraftBranchTargetResolution = {
|
|
34
|
+
readonly ok: true;
|
|
35
|
+
readonly repository?: string;
|
|
36
|
+
} | {
|
|
37
|
+
readonly ok: false;
|
|
38
|
+
readonly reason: "remote-drift" | "provider-failed" | "authority-denied";
|
|
39
|
+
};
|
|
18
40
|
export type DraftDeliveryTargetResolution = {
|
|
19
41
|
readonly ok: true;
|
|
20
42
|
readonly repository: string;
|
|
@@ -35,8 +57,19 @@ export interface DraftDeliveryDependencies {
|
|
|
35
57
|
* the pull request's related-issue line. Best effort: an unavailable answer is no line, never a
|
|
36
58
|
* refused delivery. Absent in compositions without an issue reader.
|
|
37
59
|
*/
|
|
38
|
-
readonly resolveRelatedIssues?: (context:
|
|
60
|
+
readonly resolveRelatedIssues?: (context: IssueBoundDraftDeliveryRunContext) => Promise<readonly number[]>;
|
|
61
|
+
/**
|
|
62
|
+
* The repository a pull request opens in. An issue-bound run re-reads its frozen issue; an
|
|
63
|
+
* issue-free run on a github.com origin is re-verified against its admitted identity and the
|
|
64
|
+
* checkout's GitHub grant, and no issue is read.
|
|
65
|
+
*/
|
|
39
66
|
readonly resolveTarget: (context: DraftDeliveryRunContext) => Promise<DraftDeliveryTargetResolution>;
|
|
67
|
+
/**
|
|
68
|
+
* Verifies an issue-free run's `origin` before a branch push: still the remote the run was
|
|
69
|
+
* admitted with, not a local-only repository, and, when its push URL is canonical GitHub, the
|
|
70
|
+
* URL `publishSeams` may then use. Absent in compositions without a checkout authority.
|
|
71
|
+
*/
|
|
72
|
+
readonly resolveBranchTarget?: (context: DraftDeliveryRunContext) => Promise<DraftBranchTargetResolution>;
|
|
40
73
|
readonly inspectionAdapter: (context: DraftDeliveryRunContext) => GitPullRequestInspectionAdapter | undefined;
|
|
41
74
|
readonly publishSeams: (context: DraftDeliveryRunContext) => GitDeliveryPublishSeams;
|
|
42
75
|
readonly pullRequestSeams: (context: DraftDeliveryRunContext) => GitDeliveryPullRequestSeams;
|
|
@@ -45,11 +78,16 @@ export interface DraftDeliveryDependencies {
|
|
|
45
78
|
* (draftDeliveryChecksRefresh.ts). Absent in compositions without a pull request provider.
|
|
46
79
|
*/
|
|
47
80
|
readonly bodyAdapter?: (context: DraftDeliveryRunContext) => GitPullRequestBodyAdapter | undefined;
|
|
81
|
+
/** See VerifiedCommitServiceOptions.policyAllowsWithoutApproval. */
|
|
82
|
+
readonly policyAllowsWithoutApproval?: ((action: CodingWorkbenchCodeTaskDeliveryAction) => boolean) | undefined;
|
|
48
83
|
}
|
|
49
84
|
export interface DraftDeliveryServiceOptions extends DraftDeliveryDependencies {
|
|
50
85
|
readonly context: () => DraftDeliveryRunContext | undefined;
|
|
51
|
-
/**
|
|
52
|
-
|
|
86
|
+
/**
|
|
87
|
+
* The run this service belongs to. Only names a refusal when `context` resolves nothing, so the
|
|
88
|
+
* Activity Log still carries the run and its correlation.
|
|
89
|
+
*/
|
|
90
|
+
readonly runId?: string;
|
|
53
91
|
/** Existing runtime event ingestion refreshes the public snapshot after every durable phase. */
|
|
54
92
|
readonly onChanged: (record: DraftDeliveryRecord) => void;
|
|
55
93
|
}
|