@oscharko-dev/keiko 1.3.3 → 1.3.5
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 +18 -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/0-i2xjcha5mb7.js +1 -0
- package/dist/ui/static/_next/static/chunks/{36k6xayb_mepf.js → 06g3oe93r_678.js} +1 -1
- 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/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/{0x35q9z0tiicw.js → 1buzq8xbrkl5r.js} +1 -1
- 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/{06d6c74v_hg_g.js → 28jbqfl7obckb.js} +1 -1
- 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/{3l06hi3xkcn82.js → 2l7fx-klib93f.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{249nvi2mcd8y_.js → 2qrbagnu1-dgt.js} +1 -1
- package/dist/ui/static/_next/static/chunks/2rn7qy5l22wex.js +1 -0
- package/dist/ui/static/_next/static/chunks/2svyhwq3u6czg.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/35ha_z9n1aouj.js +4 -0
- 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/{1hv5i64znwlbu.js → 3ktuwnqu-kln5.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/3w2jrdn8n3a_q.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 +10 -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 +12 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry-history.generated.d.ts +14 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry-history.generated.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry-history.generated.js +17 -1
- 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 +44 -4
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-contracts.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-contracts.js +58 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-coverage.generated.json +383 -4
- 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 +4 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-operations.generated.d.ts +326 -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 +403 -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/http.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/http.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/http.js +43 -4
- 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/rerank-adapter.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/rerank-adapter.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/rerank-adapter.js +5 -2
- 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/devLaneRuntimeProcessBackend.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/devLaneRuntimeProcessBackend.js +10 -13
- 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/nativeRuntimeProcessBackend.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessBackend.js +4 -2
- 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 +95 -9
- 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 +5 -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/runtimeGatewayProcessSandbox.d.ts +8 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeGatewayProcessSandbox.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeGatewayProcessSandbox.js +10 -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 +8 -0
- 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 +199 -38
- package/node_modules/@oscharko-dev/keiko-server/dist/deps.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/deps.js +74 -21
- 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 +45 -12
- 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 +239 -151
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-setup.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-setup.js +18 -7
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-startup.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-startup.js +8 -5
- 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/grounded-rerank-facade.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-rerank-facade.js +7 -0
- 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/memory-embedding.d.ts +2 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/memory-embedding.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/memory-embedding.js +10 -5
- 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 +188 -23
- package/vendor/oscharko-dev-keiko-activity-log-1.3.5.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-cli-1.3.3.tgz → oscharko-dev-keiko-cli-1.3.5.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-connectors-1.3.3.tgz → oscharko-dev-keiko-connectors-1.3.5.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-contracts-1.3.5.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-evaluations-1.3.3.tgz → oscharko-dev-keiko-evaluations-1.3.5.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-evidence-1.3.5.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-git-1.3.3.tgz → oscharko-dev-keiko-git-1.3.5.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-harness-1.3.3.tgz → oscharko-dev-keiko-harness-1.3.5.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-local-knowledge-1.3.3.tgz → oscharko-dev-keiko-local-knowledge-1.3.5.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-mcp-1.3.3.tgz → oscharko-dev-keiko-mcp-1.3.5.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-memory-capture-1.3.3.tgz → oscharko-dev-keiko-memory-capture-1.3.5.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-memory-consolidation-1.3.3.tgz → oscharko-dev-keiko-memory-consolidation-1.3.5.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-memory-governance-1.3.3.tgz → oscharko-dev-keiko-memory-governance-1.3.5.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-memory-retrieval-1.3.3.tgz → oscharko-dev-keiko-memory-retrieval-1.3.5.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-memory-vault-1.3.3.tgz → oscharko-dev-keiko-memory-vault-1.3.5.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-model-gateway-1.3.5.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-quality-intelligence-1.3.3.tgz → oscharko-dev-keiko-quality-intelligence-1.3.5.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-sandbox-1.3.3.tgz → oscharko-dev-keiko-sandbox-1.3.5.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-sdk-1.3.5.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-security-1.3.3.tgz → oscharko-dev-keiko-security-1.3.5.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-server-1.3.5.tgz +0 -0
- package/vendor/oscharko-dev-keiko-tool-catalog-1.3.5.tgz +0 -0
- package/vendor/oscharko-dev-keiko-tools-1.3.5.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-verification-1.3.3.tgz → oscharko-dev-keiko-verification-1.3.5.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-workflows-1.3.3.tgz → oscharko-dev-keiko-workflows-1.3.5.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-workspace-1.3.3.tgz → oscharko-dev-keiko-workspace-1.3.5.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/1fcza2wdia5qm.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-model-gateway-1.3.3.tgz +0 -0
- package/vendor/oscharko-dev-keiko-sdk-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 → DvyH4zbpyM3K-9QY4w0ah}/_buildManifest.js +0 -0
- /package/dist/ui/static/_next/static/{KmFW5oN4Tu2nC9Ox3ukB4 → DvyH4zbpyM3K-9QY4w0ah}/_clientMiddlewareManifest.js +0 -0
- /package/dist/ui/static/_next/static/{KmFW5oN4Tu2nC9Ox3ukB4 → DvyH4zbpyM3K-9QY4w0ah}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.SuccinctRoles = exports.DelegatedRole = exports.Role = exports.TOP_LEVEL_ROLE_NAMES = void 0;
|
|
7
|
+
const crypto_1 = __importDefault(require("crypto"));
|
|
8
|
+
const minimatch_1 = require("minimatch");
|
|
9
|
+
const util_1 = __importDefault(require("util"));
|
|
10
|
+
const error_1 = require("./error");
|
|
11
|
+
const utils_1 = require("./utils");
|
|
12
|
+
exports.TOP_LEVEL_ROLE_NAMES = [
|
|
13
|
+
'root',
|
|
14
|
+
'targets',
|
|
15
|
+
'snapshot',
|
|
16
|
+
'timestamp',
|
|
17
|
+
];
|
|
18
|
+
/**
|
|
19
|
+
* Container that defines which keys are required to sign roles metadata.
|
|
20
|
+
*
|
|
21
|
+
* Role defines how many keys are required to successfully sign the roles
|
|
22
|
+
* metadata, and which keys are accepted.
|
|
23
|
+
*/
|
|
24
|
+
class Role {
|
|
25
|
+
keyIDs;
|
|
26
|
+
threshold;
|
|
27
|
+
unrecognizedFields;
|
|
28
|
+
constructor(options) {
|
|
29
|
+
const { keyIDs, threshold, unrecognizedFields } = options;
|
|
30
|
+
if (hasDuplicates(keyIDs)) {
|
|
31
|
+
throw new error_1.ValueError('duplicate key IDs found');
|
|
32
|
+
}
|
|
33
|
+
if (threshold < 1) {
|
|
34
|
+
throw new error_1.ValueError('threshold must be at least 1');
|
|
35
|
+
}
|
|
36
|
+
this.keyIDs = keyIDs;
|
|
37
|
+
this.threshold = threshold;
|
|
38
|
+
this.unrecognizedFields = unrecognizedFields || {};
|
|
39
|
+
}
|
|
40
|
+
equals(other) {
|
|
41
|
+
if (!(other instanceof Role)) {
|
|
42
|
+
return false;
|
|
43
|
+
}
|
|
44
|
+
return (this.threshold === other.threshold &&
|
|
45
|
+
util_1.default.isDeepStrictEqual(this.keyIDs, other.keyIDs) &&
|
|
46
|
+
util_1.default.isDeepStrictEqual(this.unrecognizedFields, other.unrecognizedFields));
|
|
47
|
+
}
|
|
48
|
+
toJSON() {
|
|
49
|
+
return {
|
|
50
|
+
keyids: this.keyIDs,
|
|
51
|
+
threshold: this.threshold,
|
|
52
|
+
...this.unrecognizedFields,
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
static fromJSON(data) {
|
|
56
|
+
const { keyids, threshold, ...rest } = data;
|
|
57
|
+
if (!utils_1.guard.isStringArray(keyids)) {
|
|
58
|
+
throw new TypeError('keyids must be an array');
|
|
59
|
+
}
|
|
60
|
+
if (typeof threshold !== 'number') {
|
|
61
|
+
throw new TypeError('threshold must be a number');
|
|
62
|
+
}
|
|
63
|
+
return new Role({
|
|
64
|
+
keyIDs: keyids,
|
|
65
|
+
threshold,
|
|
66
|
+
unrecognizedFields: rest,
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
exports.Role = Role;
|
|
71
|
+
function hasDuplicates(array) {
|
|
72
|
+
return new Set(array).size !== array.length;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* A container with information about a delegated role.
|
|
76
|
+
*
|
|
77
|
+
* A delegation can happen in two ways:
|
|
78
|
+
* - ``paths`` is set: delegates targets matching any path pattern in ``paths``
|
|
79
|
+
* - ``pathHashPrefixes`` is set: delegates targets whose target path hash
|
|
80
|
+
* starts with any of the prefixes in ``pathHashPrefixes``
|
|
81
|
+
*
|
|
82
|
+
* ``paths`` and ``pathHashPrefixes`` are mutually exclusive: both cannot be
|
|
83
|
+
* set, at least one of them must be set.
|
|
84
|
+
*/
|
|
85
|
+
class DelegatedRole extends Role {
|
|
86
|
+
name;
|
|
87
|
+
terminating;
|
|
88
|
+
paths;
|
|
89
|
+
pathHashPrefixes;
|
|
90
|
+
constructor(opts) {
|
|
91
|
+
super(opts);
|
|
92
|
+
const { name, terminating, paths, pathHashPrefixes } = opts;
|
|
93
|
+
this.name = name;
|
|
94
|
+
this.terminating = terminating;
|
|
95
|
+
if (opts.paths && opts.pathHashPrefixes) {
|
|
96
|
+
throw new error_1.ValueError('paths and pathHashPrefixes are mutually exclusive');
|
|
97
|
+
}
|
|
98
|
+
this.paths = paths;
|
|
99
|
+
this.pathHashPrefixes = pathHashPrefixes;
|
|
100
|
+
}
|
|
101
|
+
equals(other) {
|
|
102
|
+
if (!(other instanceof DelegatedRole)) {
|
|
103
|
+
return false;
|
|
104
|
+
}
|
|
105
|
+
return (super.equals(other) &&
|
|
106
|
+
this.name === other.name &&
|
|
107
|
+
this.terminating === other.terminating &&
|
|
108
|
+
util_1.default.isDeepStrictEqual(this.paths, other.paths) &&
|
|
109
|
+
util_1.default.isDeepStrictEqual(this.pathHashPrefixes, other.pathHashPrefixes));
|
|
110
|
+
}
|
|
111
|
+
isDelegatedPath(targetFilepath) {
|
|
112
|
+
if (this.paths) {
|
|
113
|
+
return this.paths.some((pathPattern) => isTargetInPathPattern(targetFilepath, pathPattern));
|
|
114
|
+
}
|
|
115
|
+
if (this.pathHashPrefixes) {
|
|
116
|
+
const hasher = crypto_1.default.createHash('sha256');
|
|
117
|
+
const pathHash = hasher.update(targetFilepath).digest('hex');
|
|
118
|
+
return this.pathHashPrefixes.some((pathHashPrefix) => pathHash.startsWith(pathHashPrefix));
|
|
119
|
+
}
|
|
120
|
+
return false;
|
|
121
|
+
}
|
|
122
|
+
toJSON() {
|
|
123
|
+
const json = {
|
|
124
|
+
...super.toJSON(),
|
|
125
|
+
name: this.name,
|
|
126
|
+
terminating: this.terminating,
|
|
127
|
+
};
|
|
128
|
+
if (this.paths) {
|
|
129
|
+
json.paths = this.paths;
|
|
130
|
+
}
|
|
131
|
+
if (this.pathHashPrefixes) {
|
|
132
|
+
json.path_hash_prefixes = this.pathHashPrefixes;
|
|
133
|
+
}
|
|
134
|
+
return json;
|
|
135
|
+
}
|
|
136
|
+
static fromJSON(data) {
|
|
137
|
+
const { keyids, threshold, name, terminating, paths, path_hash_prefixes, ...rest } = data;
|
|
138
|
+
if (!utils_1.guard.isStringArray(keyids)) {
|
|
139
|
+
throw new TypeError('keyids must be an array of strings');
|
|
140
|
+
}
|
|
141
|
+
if (typeof threshold !== 'number') {
|
|
142
|
+
throw new TypeError('threshold must be a number');
|
|
143
|
+
}
|
|
144
|
+
if (typeof name !== 'string') {
|
|
145
|
+
throw new TypeError('name must be a string');
|
|
146
|
+
}
|
|
147
|
+
if (typeof terminating !== 'boolean') {
|
|
148
|
+
throw new TypeError('terminating must be a boolean');
|
|
149
|
+
}
|
|
150
|
+
if (utils_1.guard.isDefined(paths) && !utils_1.guard.isStringArray(paths)) {
|
|
151
|
+
throw new TypeError('paths must be an array of strings');
|
|
152
|
+
}
|
|
153
|
+
if (utils_1.guard.isDefined(path_hash_prefixes) &&
|
|
154
|
+
!utils_1.guard.isStringArray(path_hash_prefixes)) {
|
|
155
|
+
throw new TypeError('path_hash_prefixes must be an array of strings');
|
|
156
|
+
}
|
|
157
|
+
return new DelegatedRole({
|
|
158
|
+
keyIDs: keyids,
|
|
159
|
+
threshold,
|
|
160
|
+
name,
|
|
161
|
+
terminating,
|
|
162
|
+
paths,
|
|
163
|
+
pathHashPrefixes: path_hash_prefixes,
|
|
164
|
+
unrecognizedFields: rest,
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
exports.DelegatedRole = DelegatedRole;
|
|
169
|
+
// JS version of Ruby's Array#zip
|
|
170
|
+
const zip = (a, b) => a.map((k, i) => [k, b[i]]);
|
|
171
|
+
function isTargetInPathPattern(target, pattern) {
|
|
172
|
+
const targetParts = target.split('/');
|
|
173
|
+
const patternParts = pattern.split('/');
|
|
174
|
+
if (patternParts.length != targetParts.length) {
|
|
175
|
+
return false;
|
|
176
|
+
}
|
|
177
|
+
return zip(targetParts, patternParts).every(([targetPart, patternPart]) => (0, minimatch_1.minimatch)(targetPart, patternPart));
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Succinctly defines a hash bin delegation graph.
|
|
181
|
+
*
|
|
182
|
+
* A ``SuccinctRoles`` object describes a delegation graph that covers all
|
|
183
|
+
* targets, distributing them uniformly over the delegated roles (i.e. bins)
|
|
184
|
+
* in the graph.
|
|
185
|
+
*
|
|
186
|
+
* The total number of bins is 2 to the power of the passed ``bit_length``.
|
|
187
|
+
*
|
|
188
|
+
* Bin names are the concatenation of the passed ``name_prefix`` and a
|
|
189
|
+
* zero-padded hex representation of the bin index separated by a hyphen.
|
|
190
|
+
*
|
|
191
|
+
* The passed ``keyids`` and ``threshold`` is used for each bin, and each bin
|
|
192
|
+
* is 'terminating'.
|
|
193
|
+
*
|
|
194
|
+
* For details: https://github.com/theupdateframework/taps/blob/master/tap15.md
|
|
195
|
+
*/
|
|
196
|
+
class SuccinctRoles extends Role {
|
|
197
|
+
bitLength;
|
|
198
|
+
namePrefix;
|
|
199
|
+
numberOfBins;
|
|
200
|
+
suffixLen;
|
|
201
|
+
constructor(opts) {
|
|
202
|
+
super(opts);
|
|
203
|
+
const { bitLength, namePrefix } = opts;
|
|
204
|
+
if (bitLength <= 0 || bitLength > 32) {
|
|
205
|
+
throw new error_1.ValueError('bitLength must be between 1 and 32');
|
|
206
|
+
}
|
|
207
|
+
this.bitLength = bitLength;
|
|
208
|
+
this.namePrefix = namePrefix;
|
|
209
|
+
// Calculate the suffix_len value based on the total number of bins in
|
|
210
|
+
// hex. If bit_length = 10 then number_of_bins = 1024 or bin names will
|
|
211
|
+
// have a suffix between "000" and "3ff" in hex and suffix_len will be 3
|
|
212
|
+
// meaning the third bin will have a suffix of "003".
|
|
213
|
+
this.numberOfBins = Math.pow(2, bitLength);
|
|
214
|
+
// suffix_len is calculated based on "number_of_bins - 1" as the name
|
|
215
|
+
// of the last bin contains the number "number_of_bins -1" as a suffix.
|
|
216
|
+
this.suffixLen = (this.numberOfBins - 1).toString(16).length;
|
|
217
|
+
}
|
|
218
|
+
equals(other) {
|
|
219
|
+
if (!(other instanceof SuccinctRoles)) {
|
|
220
|
+
return false;
|
|
221
|
+
}
|
|
222
|
+
return (super.equals(other) &&
|
|
223
|
+
this.bitLength === other.bitLength &&
|
|
224
|
+
this.namePrefix === other.namePrefix);
|
|
225
|
+
}
|
|
226
|
+
/***
|
|
227
|
+
* Calculates the name of the delegated role responsible for 'target_filepath'.
|
|
228
|
+
*
|
|
229
|
+
* The target at path ''target_filepath' is assigned to a bin by casting
|
|
230
|
+
* the left-most 'bit_length' of bits of the file path hash digest to
|
|
231
|
+
* int, using it as bin index between 0 and '2**bit_length - 1'.
|
|
232
|
+
*
|
|
233
|
+
* Args:
|
|
234
|
+
* target_filepath: URL path to a target file, relative to a base
|
|
235
|
+
* targets URL.
|
|
236
|
+
*/
|
|
237
|
+
getRoleForTarget(targetFilepath) {
|
|
238
|
+
const hasher = crypto_1.default.createHash('sha256');
|
|
239
|
+
const hasherBuffer = hasher.update(targetFilepath).digest();
|
|
240
|
+
// can't ever need more than 4 bytes (32 bits).
|
|
241
|
+
const hashBytes = hasherBuffer.subarray(0, 4);
|
|
242
|
+
// Right shift hash bytes, so that we only have the leftmost
|
|
243
|
+
// bit_length bits that we care about.
|
|
244
|
+
const shiftValue = 32 - this.bitLength;
|
|
245
|
+
const binNumber = hashBytes.readUInt32BE() >>> shiftValue;
|
|
246
|
+
// Add zero padding if necessary and cast to hex the suffix.
|
|
247
|
+
const suffix = binNumber.toString(16).padStart(this.suffixLen, '0');
|
|
248
|
+
return `${this.namePrefix}-${suffix}`;
|
|
249
|
+
}
|
|
250
|
+
*getRoles() {
|
|
251
|
+
for (let i = 0; i < this.numberOfBins; i++) {
|
|
252
|
+
const suffix = i.toString(16).padStart(this.suffixLen, '0');
|
|
253
|
+
yield `${this.namePrefix}-${suffix}`;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
/***
|
|
257
|
+
* Determines whether the given ``role_name`` is in one of
|
|
258
|
+
* the delegated roles that ``SuccinctRoles`` represents.
|
|
259
|
+
*
|
|
260
|
+
* Args:
|
|
261
|
+
* role_name: The name of the role to check against.
|
|
262
|
+
*/
|
|
263
|
+
isDelegatedRole(roleName) {
|
|
264
|
+
const desiredPrefix = this.namePrefix + '-';
|
|
265
|
+
if (!roleName.startsWith(desiredPrefix)) {
|
|
266
|
+
return false;
|
|
267
|
+
}
|
|
268
|
+
const suffix = roleName.slice(desiredPrefix.length, roleName.length);
|
|
269
|
+
if (suffix.length != this.suffixLen) {
|
|
270
|
+
return false;
|
|
271
|
+
}
|
|
272
|
+
// make sure the suffix is a hex string
|
|
273
|
+
if (!suffix.match(/^[0-9a-fA-F]+$/)) {
|
|
274
|
+
return false;
|
|
275
|
+
}
|
|
276
|
+
const num = parseInt(suffix, 16);
|
|
277
|
+
return 0 <= num && num < this.numberOfBins;
|
|
278
|
+
}
|
|
279
|
+
toJSON() {
|
|
280
|
+
const json = {
|
|
281
|
+
...super.toJSON(),
|
|
282
|
+
bit_length: this.bitLength,
|
|
283
|
+
name_prefix: this.namePrefix,
|
|
284
|
+
};
|
|
285
|
+
return json;
|
|
286
|
+
}
|
|
287
|
+
static fromJSON(data) {
|
|
288
|
+
const { keyids, threshold, bit_length, name_prefix, ...rest } = data;
|
|
289
|
+
if (!utils_1.guard.isStringArray(keyids)) {
|
|
290
|
+
throw new TypeError('keyids must be an array of strings');
|
|
291
|
+
}
|
|
292
|
+
if (typeof threshold !== 'number') {
|
|
293
|
+
throw new TypeError('threshold must be a number');
|
|
294
|
+
}
|
|
295
|
+
if (typeof bit_length !== 'number') {
|
|
296
|
+
throw new TypeError('bit_length must be a number');
|
|
297
|
+
}
|
|
298
|
+
if (typeof name_prefix !== 'string') {
|
|
299
|
+
throw new TypeError('name_prefix must be a string');
|
|
300
|
+
}
|
|
301
|
+
return new SuccinctRoles({
|
|
302
|
+
keyIDs: keyids,
|
|
303
|
+
threshold,
|
|
304
|
+
bitLength: bit_length,
|
|
305
|
+
namePrefix: name_prefix,
|
|
306
|
+
unrecognizedFields: rest,
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
exports.SuccinctRoles = SuccinctRoles;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { MetadataKind, Signed, SignedOptions } from './base';
|
|
2
|
+
import { Key } from './key';
|
|
3
|
+
import { Role } from './role';
|
|
4
|
+
import { JSONObject } from './utils';
|
|
5
|
+
type KeyMap = Record<string, Key>;
|
|
6
|
+
type RoleMap = Record<string, Role>;
|
|
7
|
+
export interface RootOptions extends SignedOptions {
|
|
8
|
+
keys?: Record<string, Key>;
|
|
9
|
+
roles?: Record<string, Role>;
|
|
10
|
+
consistentSnapshot?: boolean;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* A container for the signed part of root metadata.
|
|
14
|
+
*
|
|
15
|
+
* The top-level role and metadata file signed by the root keys.
|
|
16
|
+
* This role specifies trusted keys for all other top-level roles, which may further delegate trust.
|
|
17
|
+
*/
|
|
18
|
+
export declare class Root extends Signed {
|
|
19
|
+
readonly type = MetadataKind.Root;
|
|
20
|
+
readonly keys: KeyMap;
|
|
21
|
+
readonly roles: RoleMap;
|
|
22
|
+
readonly consistentSnapshot: boolean;
|
|
23
|
+
constructor(options: RootOptions);
|
|
24
|
+
addKey(key: Key, role: string): void;
|
|
25
|
+
equals(other: Root): boolean;
|
|
26
|
+
toJSON(): JSONObject;
|
|
27
|
+
static fromJSON(data: JSONObject): Root;
|
|
28
|
+
}
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Root = void 0;
|
|
7
|
+
const util_1 = __importDefault(require("util"));
|
|
8
|
+
const base_1 = require("./base");
|
|
9
|
+
const error_1 = require("./error");
|
|
10
|
+
const key_1 = require("./key");
|
|
11
|
+
const role_1 = require("./role");
|
|
12
|
+
const utils_1 = require("./utils");
|
|
13
|
+
/**
|
|
14
|
+
* A container for the signed part of root metadata.
|
|
15
|
+
*
|
|
16
|
+
* The top-level role and metadata file signed by the root keys.
|
|
17
|
+
* This role specifies trusted keys for all other top-level roles, which may further delegate trust.
|
|
18
|
+
*/
|
|
19
|
+
class Root extends base_1.Signed {
|
|
20
|
+
type = base_1.MetadataKind.Root;
|
|
21
|
+
keys;
|
|
22
|
+
roles;
|
|
23
|
+
consistentSnapshot;
|
|
24
|
+
constructor(options) {
|
|
25
|
+
super(options);
|
|
26
|
+
this.keys = options.keys || {};
|
|
27
|
+
this.consistentSnapshot = options.consistentSnapshot ?? true;
|
|
28
|
+
if (!options.roles) {
|
|
29
|
+
this.roles = role_1.TOP_LEVEL_ROLE_NAMES.reduce((acc, role) => ({
|
|
30
|
+
...acc,
|
|
31
|
+
[role]: new role_1.Role({ keyIDs: [], threshold: 1 }),
|
|
32
|
+
}), {});
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
const roleNames = new Set(Object.keys(options.roles));
|
|
36
|
+
if (!role_1.TOP_LEVEL_ROLE_NAMES.every((role) => roleNames.has(role))) {
|
|
37
|
+
throw new error_1.ValueError('missing top-level role');
|
|
38
|
+
}
|
|
39
|
+
this.roles = options.roles;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
addKey(key, role) {
|
|
43
|
+
if (!this.roles[role]) {
|
|
44
|
+
throw new error_1.ValueError(`role ${role} does not exist`);
|
|
45
|
+
}
|
|
46
|
+
if (!this.roles[role].keyIDs.includes(key.keyID)) {
|
|
47
|
+
this.roles[role].keyIDs.push(key.keyID);
|
|
48
|
+
}
|
|
49
|
+
this.keys[key.keyID] = key;
|
|
50
|
+
}
|
|
51
|
+
equals(other) {
|
|
52
|
+
if (!(other instanceof Root)) {
|
|
53
|
+
return false;
|
|
54
|
+
}
|
|
55
|
+
return (super.equals(other) &&
|
|
56
|
+
this.consistentSnapshot === other.consistentSnapshot &&
|
|
57
|
+
util_1.default.isDeepStrictEqual(this.keys, other.keys) &&
|
|
58
|
+
util_1.default.isDeepStrictEqual(this.roles, other.roles));
|
|
59
|
+
}
|
|
60
|
+
toJSON() {
|
|
61
|
+
return {
|
|
62
|
+
_type: this.type,
|
|
63
|
+
spec_version: this.specVersion,
|
|
64
|
+
version: this.version,
|
|
65
|
+
expires: this.expires,
|
|
66
|
+
keys: keysToJSON(this.keys),
|
|
67
|
+
roles: rolesToJSON(this.roles),
|
|
68
|
+
consistent_snapshot: this.consistentSnapshot,
|
|
69
|
+
...this.unrecognizedFields,
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
static fromJSON(data) {
|
|
73
|
+
const { unrecognizedFields, ...commonFields } = base_1.Signed.commonFieldsFromJSON(data);
|
|
74
|
+
const { keys, roles, consistent_snapshot, ...rest } = unrecognizedFields;
|
|
75
|
+
if (typeof consistent_snapshot !== 'boolean') {
|
|
76
|
+
throw new TypeError('consistent_snapshot must be a boolean');
|
|
77
|
+
}
|
|
78
|
+
return new Root({
|
|
79
|
+
...commonFields,
|
|
80
|
+
keys: keysFromJSON(keys),
|
|
81
|
+
roles: rolesFromJSON(roles),
|
|
82
|
+
consistentSnapshot: consistent_snapshot,
|
|
83
|
+
unrecognizedFields: rest,
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
exports.Root = Root;
|
|
88
|
+
function keysToJSON(keys) {
|
|
89
|
+
return Object.entries(keys).reduce((acc, [keyID, key]) => ({ ...acc, [keyID]: key.toJSON() }), {});
|
|
90
|
+
}
|
|
91
|
+
function rolesToJSON(roles) {
|
|
92
|
+
return Object.entries(roles).reduce((acc, [roleName, role]) => ({ ...acc, [roleName]: role.toJSON() }), {});
|
|
93
|
+
}
|
|
94
|
+
function keysFromJSON(data) {
|
|
95
|
+
let keys;
|
|
96
|
+
if (utils_1.guard.isDefined(data)) {
|
|
97
|
+
if (!utils_1.guard.isObjectRecord(data)) {
|
|
98
|
+
throw new TypeError('keys must be an object');
|
|
99
|
+
}
|
|
100
|
+
keys = Object.entries(data).reduce((acc, [keyID, keyData]) => ({
|
|
101
|
+
...acc,
|
|
102
|
+
[keyID]: key_1.Key.fromJSON(keyID, keyData),
|
|
103
|
+
}), {});
|
|
104
|
+
}
|
|
105
|
+
return keys;
|
|
106
|
+
}
|
|
107
|
+
function rolesFromJSON(data) {
|
|
108
|
+
let roles;
|
|
109
|
+
if (utils_1.guard.isDefined(data)) {
|
|
110
|
+
if (!utils_1.guard.isObjectRecord(data)) {
|
|
111
|
+
throw new TypeError('roles must be an object');
|
|
112
|
+
}
|
|
113
|
+
roles = Object.entries(data).reduce((acc, [roleName, roleData]) => ({
|
|
114
|
+
...acc,
|
|
115
|
+
[roleName]: role_1.Role.fromJSON(roleData),
|
|
116
|
+
}), {});
|
|
117
|
+
}
|
|
118
|
+
return roles;
|
|
119
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { JSONObject } from './utils';
|
|
2
|
+
export interface SignatureOptions {
|
|
3
|
+
keyID: string;
|
|
4
|
+
sig: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* A container class containing information about a signature.
|
|
8
|
+
*
|
|
9
|
+
* Contains a signature and the keyid uniquely identifying the key used
|
|
10
|
+
* to generate the signature.
|
|
11
|
+
*
|
|
12
|
+
* Provide a `fromJSON` method to create a Signature from a JSON object.
|
|
13
|
+
*/
|
|
14
|
+
export declare class Signature {
|
|
15
|
+
readonly keyID: string;
|
|
16
|
+
readonly sig: string;
|
|
17
|
+
constructor(options: SignatureOptions);
|
|
18
|
+
toJSON(): JSONObject;
|
|
19
|
+
static fromJSON(data: JSONObject): Signature;
|
|
20
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Signature = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* A container class containing information about a signature.
|
|
6
|
+
*
|
|
7
|
+
* Contains a signature and the keyid uniquely identifying the key used
|
|
8
|
+
* to generate the signature.
|
|
9
|
+
*
|
|
10
|
+
* Provide a `fromJSON` method to create a Signature from a JSON object.
|
|
11
|
+
*/
|
|
12
|
+
class Signature {
|
|
13
|
+
keyID;
|
|
14
|
+
sig;
|
|
15
|
+
constructor(options) {
|
|
16
|
+
const { keyID, sig } = options;
|
|
17
|
+
this.keyID = keyID;
|
|
18
|
+
this.sig = sig;
|
|
19
|
+
}
|
|
20
|
+
toJSON() {
|
|
21
|
+
return {
|
|
22
|
+
keyid: this.keyID,
|
|
23
|
+
sig: this.sig,
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
static fromJSON(data) {
|
|
27
|
+
const { keyid, sig } = data;
|
|
28
|
+
if (typeof keyid !== 'string') {
|
|
29
|
+
throw new TypeError('keyid must be a string');
|
|
30
|
+
}
|
|
31
|
+
if (typeof sig !== 'string') {
|
|
32
|
+
throw new TypeError('sig must be a string');
|
|
33
|
+
}
|
|
34
|
+
return new Signature({
|
|
35
|
+
keyID: keyid,
|
|
36
|
+
sig: sig,
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.Signature = Signature;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { MetadataKind, Signed, SignedOptions } from './base';
|
|
2
|
+
import { MetaFile } from './file';
|
|
3
|
+
import { JSONObject } from './utils';
|
|
4
|
+
type MetaFileMap = Record<string, MetaFile>;
|
|
5
|
+
export interface SnapshotOptions extends SignedOptions {
|
|
6
|
+
meta?: MetaFileMap;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* A container for the signed part of snapshot metadata.
|
|
10
|
+
*
|
|
11
|
+
* Snapshot contains information about all target Metadata files.
|
|
12
|
+
* A top-level role that specifies the latest versions of all targets metadata files,
|
|
13
|
+
* and hence the latest versions of all targets (including any dependencies between them) on the repository.
|
|
14
|
+
*/
|
|
15
|
+
export declare class Snapshot extends Signed {
|
|
16
|
+
readonly type = MetadataKind.Snapshot;
|
|
17
|
+
readonly meta: MetaFileMap;
|
|
18
|
+
constructor(opts: SnapshotOptions);
|
|
19
|
+
equals(other: Snapshot): boolean;
|
|
20
|
+
toJSON(): JSONObject;
|
|
21
|
+
static fromJSON(data: JSONObject): Snapshot;
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Snapshot = void 0;
|
|
7
|
+
const util_1 = __importDefault(require("util"));
|
|
8
|
+
const base_1 = require("./base");
|
|
9
|
+
const file_1 = require("./file");
|
|
10
|
+
const utils_1 = require("./utils");
|
|
11
|
+
/**
|
|
12
|
+
* A container for the signed part of snapshot metadata.
|
|
13
|
+
*
|
|
14
|
+
* Snapshot contains information about all target Metadata files.
|
|
15
|
+
* A top-level role that specifies the latest versions of all targets metadata files,
|
|
16
|
+
* and hence the latest versions of all targets (including any dependencies between them) on the repository.
|
|
17
|
+
*/
|
|
18
|
+
class Snapshot extends base_1.Signed {
|
|
19
|
+
type = base_1.MetadataKind.Snapshot;
|
|
20
|
+
meta;
|
|
21
|
+
constructor(opts) {
|
|
22
|
+
super(opts);
|
|
23
|
+
this.meta = opts.meta || { 'targets.json': new file_1.MetaFile({ version: 1 }) };
|
|
24
|
+
}
|
|
25
|
+
equals(other) {
|
|
26
|
+
if (!(other instanceof Snapshot)) {
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
return super.equals(other) && util_1.default.isDeepStrictEqual(this.meta, other.meta);
|
|
30
|
+
}
|
|
31
|
+
toJSON() {
|
|
32
|
+
return {
|
|
33
|
+
_type: this.type,
|
|
34
|
+
meta: metaToJSON(this.meta),
|
|
35
|
+
spec_version: this.specVersion,
|
|
36
|
+
version: this.version,
|
|
37
|
+
expires: this.expires,
|
|
38
|
+
...this.unrecognizedFields,
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
static fromJSON(data) {
|
|
42
|
+
const { unrecognizedFields, ...commonFields } = base_1.Signed.commonFieldsFromJSON(data);
|
|
43
|
+
const { meta, ...rest } = unrecognizedFields;
|
|
44
|
+
return new Snapshot({
|
|
45
|
+
...commonFields,
|
|
46
|
+
meta: metaFromJSON(meta),
|
|
47
|
+
unrecognizedFields: rest,
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.Snapshot = Snapshot;
|
|
52
|
+
function metaToJSON(meta) {
|
|
53
|
+
return Object.entries(meta).reduce((acc, [path, metadata]) => ({
|
|
54
|
+
...acc,
|
|
55
|
+
[path]: metadata.toJSON(),
|
|
56
|
+
}), {});
|
|
57
|
+
}
|
|
58
|
+
function metaFromJSON(data) {
|
|
59
|
+
let meta;
|
|
60
|
+
if (utils_1.guard.isDefined(data)) {
|
|
61
|
+
if (!utils_1.guard.isObjectRecord(data)) {
|
|
62
|
+
throw new TypeError('meta field is malformed');
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
meta = Object.entries(data).reduce((acc, [path, metadata]) => ({
|
|
66
|
+
...acc,
|
|
67
|
+
[path]: file_1.MetaFile.fromJSON(metadata),
|
|
68
|
+
}), {});
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
return meta;
|
|
72
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { MetadataKind, Signed, SignedOptions } from './base';
|
|
2
|
+
import { Delegations } from './delegations';
|
|
3
|
+
import { TargetFile } from './file';
|
|
4
|
+
import { JSONObject } from './utils';
|
|
5
|
+
type TargetFileMap = Record<string, TargetFile>;
|
|
6
|
+
interface TargetsOptions extends SignedOptions {
|
|
7
|
+
targets?: TargetFileMap;
|
|
8
|
+
delegations?: Delegations;
|
|
9
|
+
}
|
|
10
|
+
export declare class Targets extends Signed {
|
|
11
|
+
readonly type = MetadataKind.Targets;
|
|
12
|
+
readonly targets: TargetFileMap;
|
|
13
|
+
readonly delegations?: Delegations;
|
|
14
|
+
constructor(options: TargetsOptions);
|
|
15
|
+
addTarget(target: TargetFile): void;
|
|
16
|
+
equals(other: Targets): boolean;
|
|
17
|
+
toJSON(): JSONObject;
|
|
18
|
+
static fromJSON(data: JSONObject): Targets;
|
|
19
|
+
}
|
|
20
|
+
export {};
|