@oscharko-dev/keiko 1.3.4 → 1.4.0
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 +22 -1
- package/dist/ui/csp-hashes.json +6 -6
- package/dist/ui/static/404.html +1 -1
- package/dist/ui/static/__next.__PAGE__.txt +36 -35
- package/dist/ui/static/__next._full.txt +42 -41
- package/dist/ui/static/__next._index.txt +20 -20
- package/dist/ui/static/__next._tree.txt +3 -3
- package/dist/ui/static/_next/static/chunks/{0a_27i2rr3ump.js → 0-s9is2lubt4u.js} +1 -1
- package/dist/ui/static/_next/static/chunks/01u47g_c-0xpl.js +1 -0
- package/dist/ui/static/_next/static/chunks/{40k_jn2muy0cc.js → 054bvichrkfha.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{32iqi_5l8og3x.js → 077wtaycd43nt.js} +1 -1
- package/dist/ui/static/_next/static/chunks/0_844mbicmo2e.js +1 -0
- package/dist/ui/static/_next/static/chunks/{2i21bq-a_xnpw.js → 0ee_6jcyt61pj.js} +1 -1
- package/dist/ui/static/_next/static/chunks/0j8k6htc7maws.js +1 -0
- package/dist/ui/static/_next/static/chunks/{0ivdm4rb8fw-v.js → 0kbpujucm3lkb.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{1go5_n12aefbl.js → 0pm9iw5usm6wh.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{3pfzo7lskb82h.js → 0tpycpk_-2te8.js} +1 -1
- package/dist/ui/static/_next/static/chunks/0uh_0z-gtgnce.js +1 -0
- package/dist/ui/static/_next/static/chunks/0wy344j4_i-kt.js +1 -0
- package/dist/ui/static/_next/static/chunks/{2wfyqggh0fnqz.js → 0zlee1nl3tow7.js} +1 -1
- package/dist/ui/static/_next/static/chunks/12558ct1l2m2l.js +1 -0
- package/dist/ui/static/_next/static/chunks/17iebyo_a5eum.js +1 -0
- package/dist/ui/static/_next/static/chunks/1_r--0_0_lut8.js +1 -0
- package/dist/ui/static/_next/static/chunks/1ca9r5i6_0gco.js +1 -0
- package/dist/ui/static/_next/static/chunks/1e7j3d8ldouw-.js +1 -0
- package/dist/ui/static/_next/static/chunks/{42ujh8mqvkem7.js → 1f3qejkbojfb3.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{06g3oe93r_678.js → 1f6ez0i_noelw.js} +1 -1
- package/dist/ui/static/_next/static/chunks/1i7nw5sn-cmnv.js +1 -0
- package/dist/ui/static/_next/static/chunks/1lzwu0q-ssbma.js +1 -0
- package/dist/ui/static/_next/static/chunks/1p4fos-7pdjjc.js +1 -0
- package/dist/ui/static/_next/static/chunks/{0z6-7yghma18f.js → 1r6ctyn3cnlnk.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{3_jiuk-o0u4b8.js → 1rk904femczok.js} +1 -1
- package/dist/ui/static/_next/static/chunks/1xt5xuvobvzla.js +1 -0
- package/dist/ui/static/_next/static/chunks/2-rwt7mg7rypr.js +3 -0
- package/dist/ui/static/_next/static/chunks/20j_c9i0v9e27.js +1 -0
- package/dist/ui/static/_next/static/chunks/{0r77lkincf-_m.js → 248emo5wsoxdu.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{0yyw4taefm8y-.js → 24m_56_q_ru19.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{44q6rup2gv3_v.js → 250kt-rzlrjey.js} +1 -1
- package/dist/ui/static/_next/static/chunks/27waqidbh9p2p.css +1 -0
- package/dist/ui/static/_next/static/chunks/28az_80rlphq6.js +1 -0
- package/dist/ui/static/_next/static/chunks/2a81bykgy9qnj.js +1 -0
- package/dist/ui/static/_next/static/chunks/{1pqcljp4_2qe3.js → 2dbz5eb3w8s_0.js} +1 -1
- package/dist/ui/static/_next/static/chunks/2gh0n9j4f_4go.js +1 -0
- package/dist/ui/static/_next/static/chunks/{2-f_s3dha6lwz.css → 2o60ts_f9lbfq.css} +1 -1
- package/dist/ui/static/_next/static/chunks/2p7r062xb_f9q.js +1 -0
- package/dist/ui/static/_next/static/chunks/2qzq9eh-d9xp6.js +1 -0
- package/dist/ui/static/_next/static/chunks/{2cr_43y_421vg.js → 2vlslj_4nf7gu.js} +1 -1
- package/dist/ui/static/_next/static/chunks/2z2f4me1hcs45.js +4 -0
- package/dist/ui/static/_next/static/chunks/3-wizj885wb_o.js +1 -0
- package/dist/ui/static/_next/static/chunks/{28os13ehcs0w8.js → 30azj87mlalvi.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{29xkz3907owjy.css → 34gnwydkoqfzn.css} +5 -6
- package/dist/ui/static/_next/static/chunks/35kx02kcl9w1x.js +1 -0
- package/dist/ui/static/_next/static/chunks/{2-d9_unc356vl.js → 3cxfs-l32ej0x.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{2l7fx-klib93f.js → 3e3hxg7wp4zp7.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{3jclkr9npha_g.js → 3em107mqtwha9.js} +1 -1
- package/dist/ui/static/_next/static/chunks/3i4571y3ja14w.js +1 -0
- package/dist/ui/static/_next/static/chunks/3oliuh-fq5-a9.js +1 -0
- package/dist/ui/static/_next/static/chunks/3pb3yiauj_r4k.js +1 -0
- package/dist/ui/static/_next/static/chunks/3smzizb4a8fc6.js +1 -0
- package/dist/ui/static/_next/static/chunks/3u79cc2zmzu1j.js +1 -0
- package/dist/ui/static/_next/static/chunks/3uo4ygtasgybr.js +1 -0
- package/dist/ui/static/_next/static/chunks/3ym8dq2ahs9-r.js +1 -0
- package/dist/ui/static/_next/static/chunks/3z03k7begao4q.js +1 -0
- package/dist/ui/static/_next/static/chunks/{28qkmmimb75ae.css → 423zmh6e818kf.css} +5 -0
- package/dist/ui/static/_next/static/chunks/44lm2j1lz8mz2.js +1 -0
- package/dist/ui/static/_next/static/chunks/452aryzc0q0me.js +1 -0
- package/dist/ui/static/_not-found/__next._full.txt +29 -28
- package/dist/ui/static/_not-found/__next._index.txt +20 -20
- package/dist/ui/static/_not-found/__next._not-found.__PAGE__.txt +26 -25
- package/dist/ui/static/_not-found/__next._tree.txt +2 -2
- package/dist/ui/static/_not-found.html +1 -1
- package/dist/ui/static/_not-found.txt +29 -28
- package/dist/ui/static/atlassian-connectors/__next._full.txt +36 -35
- package/dist/ui/static/atlassian-connectors/__next._index.txt +20 -20
- package/dist/ui/static/atlassian-connectors/__next._tree.txt +3 -3
- package/dist/ui/static/atlassian-connectors/__next.atlassian-connectors.__PAGE__.txt +33 -32
- package/dist/ui/static/atlassian-connectors.html +1 -1
- package/dist/ui/static/atlassian-connectors.txt +36 -35
- package/dist/ui/static/index.html +1 -1
- package/dist/ui/static/index.txt +42 -41
- package/dist/ui/static/launch/__next._full.txt +43 -42
- package/dist/ui/static/launch/__next._index.txt +20 -20
- package/dist/ui/static/launch/__next._tree.txt +3 -3
- package/dist/ui/static/launch/__next.launch.__PAGE__.txt +40 -39
- package/dist/ui/static/launch.html +1 -1
- package/dist/ui/static/launch.txt +43 -42
- package/dist/ui/static/local-knowledge/__next._full.txt +43 -42
- package/dist/ui/static/local-knowledge/__next._index.txt +20 -20
- package/dist/ui/static/local-knowledge/__next._tree.txt +3 -3
- package/dist/ui/static/local-knowledge/__next.local-knowledge.__PAGE__.txt +40 -39
- package/dist/ui/static/local-knowledge/capsule/__next._full.txt +38 -37
- package/dist/ui/static/local-knowledge/capsule/__next._index.txt +20 -20
- package/dist/ui/static/local-knowledge/capsule/__next._tree.txt +3 -3
- package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.capsule.__PAGE__.txt +36 -35
- package/dist/ui/static/local-knowledge/capsule.html +1 -1
- package/dist/ui/static/local-knowledge/capsule.txt +38 -37
- package/dist/ui/static/local-knowledge.html +1 -1
- package/dist/ui/static/local-knowledge.txt +43 -42
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory-data.generated.json +143 -7
- 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 +30 -16
- 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 +33 -17
- 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/adf-to-text.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/adf-to-text.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-connectors/dist/adf-to-text.js +1 -1
- package/node_modules/@oscharko-dev/keiko-connectors/dist/atlassian-http-port.d.ts +6 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/atlassian-http-port.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-connectors/dist/atlassian-http-port.js +4 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/atlassian-write-http.d.ts +6 -1
- package/node_modules/@oscharko-dev/keiko-connectors/dist/atlassian-write-http.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-connectors/dist/atlassian-write-http.js +71 -32
- package/node_modules/@oscharko-dev/keiko-connectors/dist/index.d.ts +18 -1
- package/node_modules/@oscharko-dev/keiko-connectors/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-connectors/dist/index.js +16 -1
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-attachments.d.ts +71 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-attachments.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-attachments.js +154 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-draft-stage-tool.d.ts +73 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-draft-stage-tool.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-draft-stage-tool.js +231 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-draft-store.d.ts +54 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-draft-store.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-draft-store.js +114 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-draft.d.ts +117 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-draft.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-draft.js +544 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-field-metadata.d.ts +8 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-field-metadata.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-field-metadata.js +248 -14
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-issue-link-writes.d.ts +12 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-issue-link-writes.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-issue-link-writes.js +61 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-issue-links.d.ts +73 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-issue-links.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-issue-links.js +174 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-issue-template-check.d.ts +83 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-issue-template-check.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-issue-template-check.js +294 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-issue-template-instance.d.ts +44 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-issue-template-instance.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-issue-template-instance.js +216 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-managed-connection.d.ts +8 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-managed-connection.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-managed-field-reads.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-managed-field-reads.js +93 -1
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-managed-issue-reads.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-managed-issue-reads.js +12 -1
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-managed-metadata.d.ts +3 -1
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-managed-metadata.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-managed-metadata.js +14 -2
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-managed-mutation-metadata.d.ts +3 -1
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-managed-mutation-metadata.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-managed-mutation-metadata.js +12 -2
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-managed-mutations.d.ts +62 -2
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-managed-mutations.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-managed-mutations.js +683 -74
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-managed-template-gate.d.ts +64 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-managed-template-gate.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-managed-template-gate.js +221 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-managed-tools.d.ts +8 -1
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-managed-tools.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-managed-tools.js +50 -8
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-mutation-confirmation.d.ts +11 -1
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-mutation-confirmation.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-mutation-confirmation.js +78 -7
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-mutation-failure.d.ts +13 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-mutation-failure.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-mutation-failure.js +21 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report-aggregate.d.ts +16 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report-aggregate.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report-aggregate.js +399 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report-args.d.ts +31 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report-args.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report-args.js +184 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report-export.d.ts +10 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report-export.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report-export.js +330 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report-figures.d.ts +12 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report-figures.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report-figures.js +116 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report-http.d.ts +30 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report-http.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report-http.js +34 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report-issue.d.ts +43 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report-issue.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report-issue.js +248 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report-jql.d.ts +12 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report-jql.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report-jql.js +53 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report-metadata.d.ts +26 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report-metadata.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report-metadata.js +143 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report-order.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report-order.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report-order.js +14 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report-page.d.ts +26 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report-page.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report-page.js +93 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report-read.d.ts +8 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report-read.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report-read.js +281 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report-result.d.ts +31 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report-result.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report-result.js +236 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report-session.d.ts +74 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report-session.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report-session.js +90 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report-store.d.ts +32 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report-store.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report-store.js +71 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report-template-checker.d.ts +11 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report-template-checker.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report-template-checker.js +128 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report-tool.d.ts +66 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report-tool.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report-tool.js +226 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report-types.d.ts +253 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report-types.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report-types.js +1 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report.fixture.d.ts +74 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report.fixture.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report.fixture.js +272 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report.harness.d.ts +25 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report.harness.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-report.harness.js +48 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-requirement-trace.d.ts +47 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-requirement-trace.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-requirement-trace.js +192 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-store-bounds.d.ts +14 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-store-bounds.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-connectors/dist/jira-store-bounds.js +24 -0
- 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 +39 -19
- 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 +115 -18
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-coverage.generated.json +994 -59
- 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 +10 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-operations.generated.d.ts +917 -70
- 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 +1038 -46
- package/node_modules/@oscharko-dev/keiko-contracts/dist/atlassian-connectors.d.ts +5 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/atlassian-connectors.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/atlassian-connectors.js +8 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/bff-wire.d.ts +35 -5
- package/node_modules/@oscharko-dev/keiko-contracts/dist/bff-wire.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/bff-wire.js +23 -6
- package/node_modules/@oscharko-dev/keiko-contracts/dist/chat-tool-authority.d.ts +10 -6
- package/node_modules/@oscharko-dev/keiko-contracts/dist/chat-tool-authority.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/chat-tool-authority.js +37 -15
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-api.d.ts +6 -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 +13 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench.d.ts +6 -0
- 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 +6 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/comparators.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/comparators.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/comparators.js +16 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/deep-freeze.d.ts +6 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/deep-freeze.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/deep-freeze.js +30 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/jira-description-sections.d.ts +27 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/jira-description-sections.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/jira-description-sections.js +189 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/jira-issue-template.d.ts +99 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/jira-issue-template.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/jira-issue-template.js +460 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/jira-report.d.ts +50 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/jira-report.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/jira-report.js +57 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/jira-template-pattern.d.ts +21 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/jira-template-pattern.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/jira-template-pattern.js +402 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/jira-tool-execution.d.ts +111 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/jira-tool-execution.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/jira-tool-execution.js +227 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/jira-tool-fields.d.ts +14 -2
- package/node_modules/@oscharko-dev/keiko-contracts/dist/jira-tool-fields.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/jira-tool-fields.js +10 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/local-knowledge-file-selection.d.ts +2 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/local-knowledge-file-selection.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/local-knowledge-file-selection.js +2 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/managed-mcp.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/managed-mcp.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/verification.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/verification.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/version.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-contracts/dist/version.js +2 -2
- package/node_modules/@oscharko-dev/keiko-contracts/package.json +1 -1
- package/node_modules/@oscharko-dev/keiko-evaluations/package.json +9 -9
- package/node_modules/@oscharko-dev/keiko-evidence/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-evidence/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-evidence/package.json +4 -4
- package/node_modules/@oscharko-dev/keiko-git/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-git/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-git/package.json +1 -1
- package/node_modules/@oscharko-dev/keiko-harness/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-harness/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-harness/package.json +7 -7
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/bounded-document-extraction.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/bounded-document-extraction.js +4 -18
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/bounded-ooxml-package.d.ts +22 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/bounded-ooxml-package.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/bounded-ooxml-package.js +30 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/conversation/grounded-answer-runner.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/conversation/grounded-answer-runner.js +38 -6
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/conversation/index.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/conversation/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/conversation/types.d.ts +25 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/conversation/types.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/discovery/media-type.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/discovery/media-type.js +1 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/index.d.ts +2 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/index.js +3 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/_internal.d.ts +7 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/_internal.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/_internal.js +13 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/docx-parser.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/docx-parser.js +26 -233
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/index.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/index.js +3 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/ooxml-zip.d.ts +46 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/ooxml-zip.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/ooxml-zip.js +214 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/parser-test-fixtures.d.ts +15 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/parser-test-fixtures.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/parser-test-fixtures.js +110 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/pptx-parser.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/pptx-parser.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/pptx-parser.js +339 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/pptx-test-fixtures.d.ts +29 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/pptx-test-fixtures.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/pptx-test-fixtures.js +79 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/pptx-xml.d.ts +51 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/pptx-xml.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/pptx-xml.js +306 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/types.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/types.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/types.js +1 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/xlsx-parser.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/xlsx-parser.js +18 -144
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/qualityIntelligence/index.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/qualityIntelligence/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/qualityIntelligence/index.js +2 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/qualityIntelligence/scopeDocuments.d.ts +63 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/qualityIntelligence/scopeDocuments.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/qualityIntelligence/scopeDocuments.js +206 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/index.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/index.js +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/retrieval-runner.d.ts +12 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/retrieval-runner.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/retrieval-runner.js +3 -0
- 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/dist/host.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-mcp/dist/host.js +22 -1
- package/node_modules/@oscharko-dev/keiko-mcp/dist/relay-endpoint.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-mcp/dist/relay-endpoint.js +1 -0
- 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/gateway.d.ts +14 -4
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/gateway.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/gateway.js +65 -72
- 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/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/toolCatalogBridge.d.ts +4 -12
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/toolCatalogBridge.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/toolCatalogBridge.js +39 -3
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/toolSchemaCorrection.d.ts +16 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/toolSchemaCorrection.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/toolSchemaCorrection.js +38 -0
- 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/dist/domain/requirementChanges.d.ts +42 -0
- package/node_modules/@oscharko-dev/keiko-quality-intelligence/dist/domain/requirementChanges.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-quality-intelligence/dist/domain/requirementChanges.js +103 -0
- package/node_modules/@oscharko-dev/keiko-quality-intelligence/dist/domain/requirementInventory.d.ts +77 -0
- package/node_modules/@oscharko-dev/keiko-quality-intelligence/dist/domain/requirementInventory.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-quality-intelligence/dist/domain/requirementInventory.js +722 -0
- package/node_modules/@oscharko-dev/keiko-quality-intelligence/dist/domain/requirementInventoryQuality.d.ts +7 -0
- package/node_modules/@oscharko-dev/keiko-quality-intelligence/dist/domain/requirementInventoryQuality.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-quality-intelligence/dist/domain/requirementInventoryQuality.js +53 -0
- package/node_modules/@oscharko-dev/keiko-quality-intelligence/dist/domain/requirementTable.d.ts +36 -0
- package/node_modules/@oscharko-dev/keiko-quality-intelligence/dist/domain/requirementTable.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-quality-intelligence/dist/domain/requirementTable.js +127 -0
- package/node_modules/@oscharko-dev/keiko-quality-intelligence/dist/domain/requirementText.d.ts +20 -0
- package/node_modules/@oscharko-dev/keiko-quality-intelligence/dist/domain/requirementText.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-quality-intelligence/dist/domain/requirementText.js +73 -0
- package/node_modules/@oscharko-dev/keiko-quality-intelligence/dist/domain/requirementTrace.d.ts +82 -0
- package/node_modules/@oscharko-dev/keiko-quality-intelligence/dist/domain/requirementTrace.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-quality-intelligence/dist/domain/requirementTrace.js +185 -0
- package/node_modules/@oscharko-dev/keiko-quality-intelligence/dist/domain/requirementVocabulary.d.ts +64 -0
- package/node_modules/@oscharko-dev/keiko-quality-intelligence/dist/domain/requirementVocabulary.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-quality-intelligence/dist/domain/requirementVocabulary.js +306 -0
- package/node_modules/@oscharko-dev/keiko-quality-intelligence/dist/index.d.ts +10 -0
- package/node_modules/@oscharko-dev/keiko-quality-intelligence/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-quality-intelligence/dist/index.js +5 -0
- 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/_requirementSupport.d.ts +46 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/_requirementSupport.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/_requirementSupport.js +250 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/activity-line-fields.d.ts +7 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/activity-line-fields.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/actionApprovals.d.ts +7 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/actionApprovals.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/actionApprovals.js +27 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/actionOutcomeActivity.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/actionOutcomeActivity.js +2 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/chatWriteApprovalRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/chatWriteApprovalRoutes.js +4 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/chatWriteApprovalState.d.ts +13 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/chatWriteApprovalState.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/chatWriteApprovalState.js +19 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/httpPort.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/httpPort.js +23 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/httpRequestLifecycle.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/httpRequestLifecycle.js +9 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraAttachmentContentPolicy.d.ts +44 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraAttachmentContentPolicy.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraAttachmentContentPolicy.js +411 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraAttachmentMarkupText.d.ts +9 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraAttachmentMarkupText.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraAttachmentMarkupText.js +64 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraAttachmentPdfSyntax.d.ts +30 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraAttachmentPdfSyntax.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraAttachmentPdfSyntax.js +367 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraChatAttachment.d.ts +57 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraChatAttachment.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraChatAttachment.js +349 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraChatAuthority.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraChatAuthority.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraChatAuthority.js +12 -14
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraChatBindingPatch.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraChatBindingPatch.js +14 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraChatCatalogConsumer.d.ts +16 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraChatCatalogConsumer.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraChatCatalogConsumer.js +38 -8
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraChatCatalogRuntime.d.ts +24 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraChatCatalogRuntime.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraChatCatalogRuntime.js +227 -25
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraChatCatalogWrite.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraChatCatalogWrite.js +14 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraChatDraft.d.ts +91 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraChatDraft.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraChatDraft.js +547 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraChatDraftArguments.d.ts +32 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraChatDraftArguments.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraChatDraftArguments.js +65 -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 +58 -9
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraChatTemplatePreflight.d.ts +23 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraChatTemplatePreflight.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraChatTemplatePreflight.js +253 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraChatToolTurn.d.ts +15 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraChatToolTurn.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraChatToolTurn.js +71 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraChatWriteApproval.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraChatWriteApproval.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraChatWriteApproval.js +2 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraDraftActivity.d.ts +16 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraDraftActivity.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraDraftActivity.js +92 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraDraftDescriptor.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraDraftDescriptor.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraDraftDescriptor.js +64 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraDraftKeyRanges.d.ts +34 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraDraftKeyRanges.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraDraftKeyRanges.js +105 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraDraftRoutes.d.ts +10 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraDraftRoutes.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraDraftRoutes.js +65 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraManagedMutationDescriptors.d.ts +16 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraManagedMutationDescriptors.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraManagedMutationDescriptors.js +305 -27
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraManagedProvider.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraManagedProvider.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraManagedProvider.js +34 -17
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraMutationResult.d.ts +24 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraMutationResult.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraMutationResult.js +151 -9
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraMutationToolId.d.ts +7 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraMutationToolId.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraMutationToolId.js +7 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraReportActivity.d.ts +17 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraReportActivity.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraReportActivity.js +214 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraReportDescriptor.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraReportDescriptor.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraReportDescriptor.js +70 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraReportRoutes.d.ts +10 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraReportRoutes.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraReportRoutes.js +57 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraTemplateLog.d.ts +26 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraTemplateLog.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraTemplateLog.js +154 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraToolGuidance.d.ts +8 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraToolGuidance.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/jiraToolGuidance.js +7 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-activity.d.ts +4 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-activity.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-activity.js +9 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-breakdown.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-breakdown.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-breakdown.js +14 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-connectors.d.ts +21 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-connectors.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-connectors.js +109 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-log.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-log.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-log.js +19 -0
- 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 +33 -14
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-handlers.d.ts +2 -0
- 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 +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-scope-update-log.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-scope-update-log.js +6 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-stream-handlers.js +20 -8
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-tool-approvals.d.ts +9 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-tool-approvals.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-tool-approvals.js +46 -18
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-tool-continuation-fit.d.ts +13 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-tool-continuation-fit.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-tool-continuation-fit.js +64 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-tool-receipts.d.ts +25 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-tool-receipts.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-tool-receipts.js +100 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-tool-report-coverage.d.ts +36 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-tool-report-coverage.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-tool-report-coverage.js +217 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-tool-runtime.d.ts +10 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-tool-runtime.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-tool-runtime.js +60 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-tool-sources-turn.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-tool-sources-turn.js +3 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-tool-sources.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-tool-sources.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-tool-turn-budget.d.ts +19 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-tool-turn-budget.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-tool-turn-budget.js +45 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-tool-turn-ending.d.ts +73 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-tool-turn-ending.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-tool-turn-ending.js +305 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-tool-turn.d.ts +95 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-tool-turn.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-tool-turn.js +357 -35
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-turn-serializer.d.ts +8 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-turn-serializer.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-turn-serializer.js +33 -13
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingJiraPodBinding.d.ts +14 -10
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingJiraPodBinding.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingJiraPodBinding.js +37 -8
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingJiraPodMcp.d.ts +6 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingJiraPodMcp.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingJiraPodMcp.js +34 -4
- 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 +5 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestratorTypes.d.ts +2 -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/codingToolFacade.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacade.js +16 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolGovernedDelegate.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolGovernedDelegate.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolGovernedDelegate.js +7 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolIpc.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolIpc.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolIpc.js +14 -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/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/opencodeToolSchemas.d.ts +22 -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 +11 -2
- 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 +15 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionManagedWorktreeTools.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionManagedWorktreeTools.js +23 -6
- 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 +6 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionRuntimeWorkspaceAuthority.d.ts +1 -0
- 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/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-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 +125 -31
- package/node_modules/@oscharko-dev/keiko-server/dist/conversation-readiness-admission.d.ts +9 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/conversation-readiness-admission.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/conversation-readiness-admission.js +22 -10
- package/node_modules/@oscharko-dev/keiko-server/dist/deps.d.ts +9 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/deps.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/deps.js +28 -6
- 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/editor/chatAuthorityActivity.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/chatAuthorityActivity.js +37 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationRunner.d.ts +7 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationRunner.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationRunner.js +159 -53
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationRunnerErrors.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationRunnerErrors.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationRunnerErrors.js +11 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/files.d.ts +15 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/files.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/files.js +31 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-readiness.d.ts +21 -11
- 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 +126 -206
- 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/grounded-answer-activity.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-activity.js +2 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer.d.ts +6 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer.js +45 -14
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-log.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-log.js +2 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-explicit-paths.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-explicit-paths.js +9 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-gateway-error-status.d.ts +11 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-gateway-error-status.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-gateway-error-status.js +20 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-plural-synthesis.d.ts +10 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-plural-synthesis.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-plural-synthesis.js +11 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-hybrid.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-hybrid.js +7 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-multi-source.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-multi-source.js +2 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa.d.ts +3 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa.js +18 -20
- 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/local-knowledge-grounded-qa.d.ts +4 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-grounded-qa.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-grounded-qa.js +114 -30
- package/node_modules/@oscharko-dev/keiko-server/dist/markdown-skill-jira-template-routes.d.ts +14 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/markdown-skill-jira-template-routes.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/markdown-skill-jira-template-routes.js +114 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/markdown-skill-log.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/markdown-skill-log.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/markdown-skill-log.js +3 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/markdown-skill-routes.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/markdown-skill-routes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/markdown-skill-routes.js +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpChatAuthority.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpChatAuthority.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpChatAuthority.js +18 -17
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpChatCatalogRuntime.d.ts +9 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpChatCatalogRuntime.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpChatCatalogRuntime.js +17 -12
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpChatDescriptors.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpChatDescriptors.js +3 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpChatSelection.d.ts +14 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpChatSelection.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpChatSelection.js +24 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpChatToolTurn.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpChatToolTurn.js +2 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpChatWriteApproval.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpChatWriteApproval.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpConfiguredConnections.d.ts +7 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpConfiguredConnections.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpConfiguredConnections.js +8 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpCredentialRelay.d.ts +2 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpCredentialRelay.d.ts.map +1 -1
- 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 +3 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/redaction-secrets.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/redaction-secrets.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/requirement-changes.d.ts +54 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/requirement-changes.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/requirement-changes.js +187 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/requirement-coverage-note.d.ts +26 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/requirement-coverage-note.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/requirement-coverage-note.js +48 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/requirement-inventory-activity.d.ts +46 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/requirement-inventory-activity.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/requirement-inventory-activity.js +130 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/requirement-inventory.d.ts +90 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/requirement-inventory.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/requirement-inventory.js +289 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/requirement-trace.d.ts +48 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/requirement-trace.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/requirement-trace.js +166 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/requirementsTool.d.ts +30 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/requirementsTool.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/requirementsTool.js +487 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/requirementsToolName.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/requirementsToolName.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/requirementsToolName.js +4 -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 +20 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/store/chat-grounding-scope-identity.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/chat-grounding-scope-identity.js +17 -10
- package/node_modules/@oscharko-dev/keiko-server/dist/store/chatJiraBinding.d.ts +4 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/store/chatJiraBinding.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/chatJiraBinding.js +55 -12
- package/node_modules/@oscharko-dev/keiko-server/dist/store/chatToolApprovalTransition.d.ts +7 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/store/chatToolApprovalTransition.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/store/chatToolApprovalTransition.js +58 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/store/chatToolMutationActivity.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/store/chatToolMutationActivity.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/chatToolMutationActivity.js +74 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/chatToolMutationProjection.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/chatToolMutationProjection.js +41 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/store/chatToolMutationState.d.ts +9 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/chatToolMutationState.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/chatToolMutationState.js +50 -11
- package/node_modules/@oscharko-dev/keiko-server/dist/store/chatToolMutationTypes.d.ts +32 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/store/chatToolMutationTypes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/chatToolMutations.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/chatToolMutations.js +73 -27
- package/node_modules/@oscharko-dev/keiko-server/dist/store/chatToolReadGrants.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/chatToolReadGrants.js +16 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/chatToolTranscript.d.ts +9 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/chatToolTranscript.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/chatToolTranscript.js +49 -15
- 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 +2 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/markdownSkillValidation.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/markdownSkillValidation.js +16 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/store/markdownSkills.d.ts +8 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/store/markdownSkills.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/markdownSkills.js +34 -0
- 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 +82 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store-handlers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store-handlers.js +2 -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 +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/managedProviderCatalog.d.ts +14 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/managedProviderCatalog.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/managedProviderCatalog.js +23 -8
- package/node_modules/@oscharko-dev/keiko-server/package.json +24 -24
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/descriptor.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/descriptor.js +9 -1
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/invocation.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/invocation.js +41 -2
- 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 +8 -1
- package/node_modules/@oscharko-dev/keiko-tool-catalog/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-tools/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/package.json +7 -7
- package/node_modules/@oscharko-dev/keiko-verification/dist/detect.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-verification/dist/detect.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-verification/dist/detect.js +4 -2
- package/node_modules/@oscharko-dev/keiko-verification/dist/index.d.ts +4 -2
- package/node_modules/@oscharko-dev/keiko-verification/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-verification/dist/index.js +2 -1
- package/node_modules/@oscharko-dev/keiko-verification/dist/orchestrator.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-verification/dist/orchestrator.js +69 -9
- package/node_modules/@oscharko-dev/keiko-verification/dist/package-dir.d.ts +51 -0
- package/node_modules/@oscharko-dev/keiko-verification/dist/package-dir.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-verification/dist/package-dir.js +244 -0
- package/node_modules/@oscharko-dev/keiko-verification/dist/plan.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-verification/dist/plan.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-verification/dist/plan.js +61 -8
- package/node_modules/@oscharko-dev/keiko-verification/dist/types.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-verification/dist/types.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-verification/package.json +5 -5
- package/node_modules/@oscharko-dev/keiko-workflows/package.json +10 -10
- package/node_modules/@oscharko-dev/keiko-workspace/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/package.json +3 -3
- package/package.json +29 -29
- package/release-impact.catalog.json +172 -23
- package/vendor/oscharko-dev-keiko-activity-log-1.4.0.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-cli-1.3.4.tgz → oscharko-dev-keiko-cli-1.4.0.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-connectors-1.4.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-contracts-1.4.0.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-evaluations-1.3.4.tgz → oscharko-dev-keiko-evaluations-1.4.0.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-evidence-1.3.4.tgz → oscharko-dev-keiko-evidence-1.4.0.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-git-1.3.4.tgz → oscharko-dev-keiko-git-1.4.0.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-harness-1.3.4.tgz → oscharko-dev-keiko-harness-1.4.0.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-local-knowledge-1.4.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-mcp-1.4.0.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-memory-capture-1.3.4.tgz → oscharko-dev-keiko-memory-capture-1.4.0.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-memory-consolidation-1.3.4.tgz → oscharko-dev-keiko-memory-consolidation-1.4.0.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-memory-governance-1.3.4.tgz → oscharko-dev-keiko-memory-governance-1.4.0.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-memory-retrieval-1.3.4.tgz → oscharko-dev-keiko-memory-retrieval-1.4.0.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-memory-vault-1.3.4.tgz → oscharko-dev-keiko-memory-vault-1.4.0.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-model-gateway-1.4.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-quality-intelligence-1.4.0.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-sandbox-1.3.4.tgz → oscharko-dev-keiko-sandbox-1.4.0.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-sdk-1.3.4.tgz → oscharko-dev-keiko-sdk-1.4.0.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-security-1.3.4.tgz → oscharko-dev-keiko-security-1.4.0.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-server-1.4.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-tool-catalog-1.4.0.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-tools-1.3.4.tgz → oscharko-dev-keiko-tools-1.4.0.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-verification-1.4.0.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-workflows-1.3.4.tgz → oscharko-dev-keiko-workflows-1.4.0.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-workspace-1.3.4.tgz → oscharko-dev-keiko-workspace-1.4.0.tgz} +0 -0
- package/dist/ui/static/_next/static/chunks/06l4zd_sw2y-9.js +0 -1
- package/dist/ui/static/_next/static/chunks/0_djzjuth9fin.js +0 -1
- package/dist/ui/static/_next/static/chunks/0_rrvhayegpgl.js +0 -1
- package/dist/ui/static/_next/static/chunks/0a1wpvupfbmib.js +0 -1
- package/dist/ui/static/_next/static/chunks/0djrsx1yq9q3r.js +0 -3
- package/dist/ui/static/_next/static/chunks/0dmz4t3ei2uq7.js +0 -1
- package/dist/ui/static/_next/static/chunks/0ly83qo_osuod.js +0 -1
- package/dist/ui/static/_next/static/chunks/0m1qrjisqjere.js +0 -1
- package/dist/ui/static/_next/static/chunks/0svnnxx416bcp.js +0 -1
- package/dist/ui/static/_next/static/chunks/1-fpfnm1iv6q0.js +0 -4
- package/dist/ui/static/_next/static/chunks/10-_rvoc2btdx.js +0 -1
- package/dist/ui/static/_next/static/chunks/112bj1jo4-ase.js +0 -1
- package/dist/ui/static/_next/static/chunks/13ov-3t5gszyf.js +0 -1
- package/dist/ui/static/_next/static/chunks/19-n1vg7xa0wm.js +0 -1
- package/dist/ui/static/_next/static/chunks/1bv_ots4aky1s.js +0 -1
- package/dist/ui/static/_next/static/chunks/1e9f1ex2uq29r.js +0 -1
- package/dist/ui/static/_next/static/chunks/1fcza2wdia5qm.js +0 -1
- package/dist/ui/static/_next/static/chunks/1hv5i64znwlbu.js +0 -1
- package/dist/ui/static/_next/static/chunks/1i-keu61dby7z.js +0 -1
- package/dist/ui/static/_next/static/chunks/25mabvr2xs1ql.js +0 -1
- package/dist/ui/static/_next/static/chunks/2au392b0y1-e5.js +0 -1
- package/dist/ui/static/_next/static/chunks/2g6shdwhrg8_2.js +0 -1
- package/dist/ui/static/_next/static/chunks/2mclpcid8nla6.js +0 -1
- package/dist/ui/static/_next/static/chunks/2rxwfcn3g_xcj.js +0 -1
- package/dist/ui/static/_next/static/chunks/2yy_pp229f-eb.css +0 -3
- package/dist/ui/static/_next/static/chunks/33j1k7syz5_95.js +0 -1
- package/dist/ui/static/_next/static/chunks/368errcbd6o_y.js +0 -1
- package/dist/ui/static/_next/static/chunks/3apw-eem5wchc.js +0 -1
- package/dist/ui/static/_next/static/chunks/3hk8fz9b976qs.js +0 -1
- package/dist/ui/static/_next/static/chunks/3ram28kwenqtb.js +0 -1
- package/dist/ui/static/_next/static/chunks/3vhvlyplc36t6.js +0 -1
- package/dist/ui/static/_next/static/chunks/3wr8-p-uepqia.js +0 -1
- package/dist/ui/static/_next/static/chunks/3xximf7pr40jh.js +0 -1
- package/dist/ui/static/_next/static/chunks/40k7a3hk7rnwa.css +0 -1
- package/dist/ui/static/_next/static/chunks/435_soqjmawxr.js +0 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/chatReadConsentRoutes.d.ts +0 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/chatReadConsentRoutes.d.ts.map +0 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/chatReadConsentRoutes.js +0 -49
- package/vendor/oscharko-dev-keiko-activity-log-1.3.4.tgz +0 -0
- package/vendor/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-local-knowledge-1.3.4.tgz +0 -0
- package/vendor/oscharko-dev-keiko-mcp-1.3.4.tgz +0 -0
- package/vendor/oscharko-dev-keiko-model-gateway-1.3.4.tgz +0 -0
- package/vendor/oscharko-dev-keiko-quality-intelligence-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-verification-1.3.4.tgz +0 -0
- /package/dist/ui/static/_next/static/{Ytdn01XusgvfUzdjNVXIY → O4yBwHFHa0mmBnSZlIECH}/_buildManifest.js +0 -0
- /package/dist/ui/static/_next/static/{Ytdn01XusgvfUzdjNVXIY → O4yBwHFHa0mmBnSZlIECH}/_clientMiddlewareManifest.js +0 -0
- /package/dist/ui/static/_next/static/{Ytdn01XusgvfUzdjNVXIY → O4yBwHFHa0mmBnSZlIECH}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { JIRA_ATTACHMENT_MAX_BYTES, JIRA_ATTACHMENT_SOURCE_KINDS, isJiraAttachmentName, isSafeAtlassianIdentifier, } from "@oscharko-dev/keiko-contracts/runtime/atlassian-connectors";
|
|
2
|
+
import { compareStrings } from "@oscharko-dev/keiko-contracts/runtime/comparators";
|
|
3
|
+
import { isPortableWorkspaceRelativePath } from "@oscharko-dev/keiko-contracts/runtime/workspace-contract-primitives";
|
|
4
|
+
import { Buffer } from "node:buffer";
|
|
5
|
+
import { createHash } from "node:crypto";
|
|
6
|
+
import { asArray, asRecord } from "./atlassian-sync-classify.js";
|
|
7
|
+
const INVALID = { ok: false, reason: "field-validation" };
|
|
8
|
+
const MALFORMED = { ok: false, reason: "malformed-payload" };
|
|
9
|
+
const CONFLICT = { ok: false, reason: "conflict" };
|
|
10
|
+
function sourceInput(value) {
|
|
11
|
+
const raw = asRecord(value);
|
|
12
|
+
if (raw === undefined || Object.keys(raw).sort(compareStrings).join() !== "kind,path")
|
|
13
|
+
return undefined;
|
|
14
|
+
const kinds = JIRA_ATTACHMENT_SOURCE_KINDS;
|
|
15
|
+
return kinds.includes(raw.kind) && isPortableWorkspaceRelativePath(raw.path)
|
|
16
|
+
? raw.path
|
|
17
|
+
: undefined;
|
|
18
|
+
}
|
|
19
|
+
/** Exactly the allowed keys; a missing or malformed part refuses the whole request. */
|
|
20
|
+
export function parseJiraAttachmentArguments(args) {
|
|
21
|
+
const allowed = new Set(["issueKey", "source", "name"]);
|
|
22
|
+
const path = sourceInput(args.source);
|
|
23
|
+
if (!Object.keys(args).every((key) => allowed.has(key)) ||
|
|
24
|
+
!isSafeAtlassianIdentifier(args.issueKey) ||
|
|
25
|
+
path === undefined ||
|
|
26
|
+
(args.name !== undefined && !isJiraAttachmentName(args.name)))
|
|
27
|
+
return undefined;
|
|
28
|
+
return {
|
|
29
|
+
issueKey: args.issueKey,
|
|
30
|
+
path,
|
|
31
|
+
...(typeof args.name === "string" ? { name: args.name } : {}),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
const ENCODER = new TextEncoder();
|
|
35
|
+
/** A boundary derived from the content digest that the content itself does not contain. */
|
|
36
|
+
function boundaryFor(content) {
|
|
37
|
+
const body = Buffer.from(content.bytes.buffer, content.bytes.byteOffset, content.bytes.length);
|
|
38
|
+
for (let attempt = 0;; attempt += 1) {
|
|
39
|
+
const boundary = `keiko-${createHash("sha256")
|
|
40
|
+
.update(`${content.sha256}:${String(attempt)}`)
|
|
41
|
+
.digest("hex")
|
|
42
|
+
.slice(0, 40)}`;
|
|
43
|
+
if (!body.includes(boundary))
|
|
44
|
+
return boundary;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
/** The name every header parser reads: printable ASCII only. */
|
|
48
|
+
export function jiraAttachmentAsciiName(name) {
|
|
49
|
+
return name.replaceAll(/[^\u0020-\u007e]/gu, "_");
|
|
50
|
+
}
|
|
51
|
+
/** RFC 5987 `UTF-8''` value: everything but attr-char is percent-encoded. */
|
|
52
|
+
function extendedFilename(name) {
|
|
53
|
+
return encodeURIComponent(name).replaceAll(/['()*]/gu, (character) => `%${(character.codePointAt(0) ?? 0).toString(16).toUpperCase()}`);
|
|
54
|
+
}
|
|
55
|
+
function dispositionFor(name) {
|
|
56
|
+
const ascii = jiraAttachmentAsciiName(name);
|
|
57
|
+
return ascii === name
|
|
58
|
+
? `filename="${name}"`
|
|
59
|
+
: `filename="${ascii}"; filename*=UTF-8''${extendedFilename(name)}`;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* One `file` part, the shape Jira's attachment endpoint documents. A name outside ASCII travels as
|
|
63
|
+
* an ASCII-sanitized `filename` plus the RFC 5987 `filename*`; whether Jira honours the extended
|
|
64
|
+
* form is not assumed — the readback accepts either spelling of the stored name.
|
|
65
|
+
*/
|
|
66
|
+
export function jiraAttachmentUpload(content, name) {
|
|
67
|
+
const boundary = boundaryFor(content);
|
|
68
|
+
const head = ENCODER.encode(`--${boundary}\r\nContent-Disposition: form-data; name="file"; ${dispositionFor(name)}\r\nContent-Type: application/octet-stream\r\n\r\n`);
|
|
69
|
+
const tail = ENCODER.encode(`\r\n--${boundary}--\r\n`);
|
|
70
|
+
const bytes = new Uint8Array(head.length + content.bytes.length + tail.length);
|
|
71
|
+
bytes.set(head, 0);
|
|
72
|
+
bytes.set(content.bytes, head.length);
|
|
73
|
+
bytes.set(tail, head.length + content.bytes.length);
|
|
74
|
+
return { contentType: `multipart/form-data; boundary=${boundary}`, bytes };
|
|
75
|
+
}
|
|
76
|
+
/** The instance's own attachment switch and limit; Keiko's ceiling can only lower it. */
|
|
77
|
+
export async function jiraAttachmentLimit(request) {
|
|
78
|
+
const response = await request("attachment/meta");
|
|
79
|
+
if (!response.ok)
|
|
80
|
+
return { ok: false, reason: response.reason };
|
|
81
|
+
const body = response.body;
|
|
82
|
+
const limit = body?.uploadLimit;
|
|
83
|
+
if (response.status !== 200 || body === undefined || typeof body.enabled !== "boolean")
|
|
84
|
+
return MALFORMED;
|
|
85
|
+
if (!body.enabled)
|
|
86
|
+
return { ok: false, reason: "unavailable" };
|
|
87
|
+
if (typeof limit !== "number" || !Number.isSafeInteger(limit) || limit < 0)
|
|
88
|
+
return MALFORMED;
|
|
89
|
+
return { ok: true, maxBytes: Math.min(limit, JIRA_ATTACHMENT_MAX_BYTES) };
|
|
90
|
+
}
|
|
91
|
+
/** Jira answers an upload with the stored attachments; ours is the one new entry of this size. */
|
|
92
|
+
function createdAttachmentId(items, size) {
|
|
93
|
+
if (items?.length !== 1)
|
|
94
|
+
return undefined;
|
|
95
|
+
const raw = asRecord(items[0]);
|
|
96
|
+
return raw !== undefined && isSafeAtlassianIdentifier(raw.id) && raw.size === size
|
|
97
|
+
? raw.id
|
|
98
|
+
: undefined;
|
|
99
|
+
}
|
|
100
|
+
/** A refused request keeps its closed reason and Jira's bounded explanation, never the HTTP outcome. */
|
|
101
|
+
function requestFailure(response) {
|
|
102
|
+
return {
|
|
103
|
+
ok: false,
|
|
104
|
+
reason: response.reason,
|
|
105
|
+
...(response.remote === undefined ? {} : { detail: response.remote }),
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* The readback confirms that Jira holds an attachment with this id, name and size on the issue. It
|
|
110
|
+
* does not read the stored bytes back, so it proves Jira's record, not byte equality. The name may
|
|
111
|
+
* be spelled as sent or in its ASCII-sanitized form (Jira's handling of `filename*` is not assumed).
|
|
112
|
+
*/
|
|
113
|
+
async function readbackAttachment(request, issueKey, expected) {
|
|
114
|
+
const response = await request(`issue/${encodeURIComponent(issueKey)}?fields=attachment`);
|
|
115
|
+
if (!response.ok)
|
|
116
|
+
return requestFailure(response);
|
|
117
|
+
const attachments = asArray(asRecord(response.body?.fields)?.attachment);
|
|
118
|
+
if (response.status !== 200 || attachments === undefined)
|
|
119
|
+
return MALFORMED;
|
|
120
|
+
const stored = attachments
|
|
121
|
+
.map((value) => asRecord(value))
|
|
122
|
+
.find((value) => value?.id === expected.id);
|
|
123
|
+
const names = [expected.name, jiraAttachmentAsciiName(expected.name)];
|
|
124
|
+
const matches = stored?.size === expected.size &&
|
|
125
|
+
typeof stored.filename === "string" &&
|
|
126
|
+
names.includes(stored.filename);
|
|
127
|
+
return matches ? { ok: true, receipt: { issueKey, attachmentId: expected.id } } : CONFLICT;
|
|
128
|
+
}
|
|
129
|
+
/** POST once, then confirm by direct readback; a lost response is never sent again. */
|
|
130
|
+
export async function dispatchJiraAttachment(request, input) {
|
|
131
|
+
const { issueKey, content, name } = input;
|
|
132
|
+
const response = await request(`issue/${encodeURIComponent(issueKey)}/attachments`, "POST", undefined, "json-array", jiraAttachmentUpload(content, name));
|
|
133
|
+
if (!response.ok)
|
|
134
|
+
return requestFailure(response);
|
|
135
|
+
const size = content.bytes.length;
|
|
136
|
+
const id = createdAttachmentId(response.items, size);
|
|
137
|
+
return response.status === 200 && id !== undefined
|
|
138
|
+
? readbackAttachment(request, issueKey, { id, name, size })
|
|
139
|
+
: MALFORMED;
|
|
140
|
+
}
|
|
141
|
+
const SHA256_HEX = /^[0-9a-f]{64}$/u;
|
|
142
|
+
/**
|
|
143
|
+
* The source's bounds, name and digest shape are checked before a single byte is sent. The digest
|
|
144
|
+
* is computed once, by the source that read the bytes; it is not recomputed here.
|
|
145
|
+
*/
|
|
146
|
+
export function verifiedJiraAttachmentContent(content, maxBytes) {
|
|
147
|
+
if (content.bytes.length === 0 ||
|
|
148
|
+
content.bytes.length > maxBytes ||
|
|
149
|
+
content.bytes.length > JIRA_ATTACHMENT_MAX_BYTES)
|
|
150
|
+
return { ok: false, reason: "bounds-exceeded" };
|
|
151
|
+
return SHA256_HEX.test(content.sha256) && isJiraAttachmentName(content.name)
|
|
152
|
+
? undefined
|
|
153
|
+
: INVALID;
|
|
154
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { type JiraTemplateViolation } from "@oscharko-dev/keiko-contracts/runtime/atlassian-connectors";
|
|
2
|
+
import type { CatalogJsonObject } from "@oscharko-dev/keiko-contracts/runtime/governed-tool-catalog";
|
|
3
|
+
import type { ManagedMcpInvocationContext, ManagedMcpToolResult } from "@oscharko-dev/keiko-contracts/runtime/managed-mcp";
|
|
4
|
+
import { type JiraDraftStore, type StagedJiraDraft, type StagedJiraDraftItem } from "./jira-draft-store.js";
|
|
5
|
+
import type { JiraManagedConnection } from "./jira-managed-connection.js";
|
|
6
|
+
export type JiraDraftRefusal = "invalid-input" | "unsupported-deployment" | "draft-not-found" | "connection-changed" | "duplicate-ref" | "too-large" | "template-violation" | "invalid-fields";
|
|
7
|
+
/** Body-free facts about one staging call; the composing server maps them to its log. */
|
|
8
|
+
export interface JiraDraftActivity {
|
|
9
|
+
/** staged/refused: one staging call; progress/executed: the approved draft's run (#4178). */
|
|
10
|
+
readonly phase: "staged" | "refused" | "progress" | "executed";
|
|
11
|
+
readonly refusal?: JiraDraftRefusal;
|
|
12
|
+
readonly newDraft: boolean;
|
|
13
|
+
readonly pageItemCount: number;
|
|
14
|
+
readonly itemCount: number;
|
|
15
|
+
readonly pageCount: number;
|
|
16
|
+
readonly byteCount: number;
|
|
17
|
+
readonly unresolvedRefCount: number;
|
|
18
|
+
readonly violationCount: number;
|
|
19
|
+
readonly durationMs: number;
|
|
20
|
+
/** A run only: items created, reconciled or deselected so far, and items not yet started. */
|
|
21
|
+
readonly settledCount?: number;
|
|
22
|
+
readonly pendingCount?: number;
|
|
23
|
+
}
|
|
24
|
+
export interface JiraDraftToolDeps<Context extends ManagedMcpInvocationContext> {
|
|
25
|
+
readonly store: JiraDraftStore;
|
|
26
|
+
/** Binds a draft to the Chat that started it. */
|
|
27
|
+
readonly owner: (context: Context) => string;
|
|
28
|
+
readonly activity?: ((activity: JiraDraftActivity, context: Context) => void) | undefined;
|
|
29
|
+
readonly now?: (() => number) | undefined;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* The create the item stands for. A parent or link target held by another draft item gets a
|
|
33
|
+
* stand-in key; the relations themselves are kept, because a template may require one (a
|
|
34
|
+
* `parentLink`) and the item that will be created carries exactly these.
|
|
35
|
+
*/
|
|
36
|
+
export declare function jiraDraftTemplateSource(item: StagedJiraDraftItem): CatalogJsonObject;
|
|
37
|
+
export interface JiraDraftTemplateRefusal {
|
|
38
|
+
readonly ref: string;
|
|
39
|
+
readonly violations: readonly JiraTemplateViolation[];
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Every item passes the template check a create passes, now, so the model corrects an item while it
|
|
43
|
+
* is being written instead of after the human has been asked. Items are read one after another
|
|
44
|
+
* because each check reads Jira's metadata through the same bounded connection.
|
|
45
|
+
*/
|
|
46
|
+
export declare function firstJiraDraftTemplateRefusal(items: readonly StagedJiraDraftItem[], context: ManagedMcpInvocationContext, connection: JiraManagedConnection, index?: number): Promise<JiraDraftTemplateRefusal | undefined>;
|
|
47
|
+
/**
|
|
48
|
+
* The fixed instruction for the one bound a draft has: its size in bytes. It is plain language for
|
|
49
|
+
* a person who is not a developer, and it always leaves a way forward - several smaller drafts.
|
|
50
|
+
*/
|
|
51
|
+
export declare const JIRA_DRAFT_TOO_LARGE_GUIDANCE: string;
|
|
52
|
+
/** `jira.draft-stage`: append a page of validated items to a draft; it changes nothing in Jira. */
|
|
53
|
+
export declare function executeJiraDraftStageTool<Context extends ManagedMcpInvocationContext>(rawArgs: CatalogJsonObject, context: Context, connection: JiraManagedConnection, deps: JiraDraftToolDeps<Context>): Promise<ManagedMcpToolResult>;
|
|
54
|
+
/** `{draftId, draftDigest}`: the one form of a `jira.draft` call that names a staged draft. */
|
|
55
|
+
export interface JiraDraftReference {
|
|
56
|
+
readonly draftId: string;
|
|
57
|
+
readonly draftDigest: string;
|
|
58
|
+
}
|
|
59
|
+
export declare function parseJiraDraftReference(args: Readonly<Record<string, unknown>>): JiraDraftReference | undefined;
|
|
60
|
+
export type JiraDraftResolution = {
|
|
61
|
+
readonly ok: true;
|
|
62
|
+
readonly arguments: CatalogJsonObject;
|
|
63
|
+
} | {
|
|
64
|
+
readonly ok: false;
|
|
65
|
+
readonly reason: "draft-not-found" | "draft-changed";
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* The staged draft a `jira.draft` call names, as the `{ items }` arguments every consumer parses.
|
|
69
|
+
* `undefined` when the call does not name a staged draft. The digest the call carries must be the
|
|
70
|
+
* digest of the items held now: a draft extended after the digest was read is a different draft.
|
|
71
|
+
*/
|
|
72
|
+
export declare function resolveJiraDraftArguments(args: Readonly<Record<string, unknown>>, lookup: (draftId: string) => StagedJiraDraft | undefined): JiraDraftResolution | undefined;
|
|
73
|
+
//# sourceMappingURL=jira-draft-stage-tool.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jira-draft-stage-tool.d.ts","sourceRoot":"","sources":["../src/jira-draft-stage-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,qBAAqB,EAC3B,MAAM,4DAA4D,CAAC;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6DAA6D,CAAC;AACrG,OAAO,KAAK,EACV,2BAA2B,EAC3B,oBAAoB,EACrB,MAAM,mDAAmD,CAAC;AAQ3D,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACzB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAU1E,MAAM,MAAM,gBAAgB,GACxB,eAAe,GACf,wBAAwB,GACxB,iBAAiB,GACjB,oBAAoB,GACpB,eAAe,GACf,WAAW,GACX,oBAAoB,GACpB,gBAAgB,CAAC;AAErB,yFAAyF;AACzF,MAAM,WAAW,iBAAiB;IAChC,6FAA6F;IAC7F,QAAQ,CAAC,KAAK,EAAE,QAAQ,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,CAAC;IAC/D,QAAQ,CAAC,OAAO,CAAC,EAAE,gBAAgB,CAAC;IACpC,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;IACpC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,6FAA6F;IAC7F,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,iBAAiB,CAAC,OAAO,SAAS,2BAA2B;IAC5E,QAAQ,CAAC,KAAK,EAAE,cAAc,CAAC;IAC/B,iDAAiD;IACjD,QAAQ,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,MAAM,CAAC;IAC7C,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE,iBAAiB,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;IAC1F,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,MAAM,MAAM,CAAC,GAAG,SAAS,CAAC;CAC3C;AAoDD;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,mBAAmB,GAAG,iBAAiB,CAcpF;AAED,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,UAAU,EAAE,SAAS,qBAAqB,EAAE,CAAC;CACvD;AACD;;;;GAIG;AACH,wBAAsB,6BAA6B,CACjD,KAAK,EAAE,SAAS,mBAAmB,EAAE,EACrC,OAAO,EAAE,2BAA2B,EACpC,UAAU,EAAE,qBAAqB,EACjC,KAAK,SAAI,GACR,OAAO,CAAC,wBAAwB,GAAG,SAAS,CAAC,CAY/C;AAgCD;;;GAGG;AACH,eAAO,MAAM,6BAA6B,QAIiB,CAAC;AA6E5D,mGAAmG;AACnG,wBAAsB,yBAAyB,CAAC,OAAO,SAAS,2BAA2B,EACzF,OAAO,EAAE,iBAAiB,EAC1B,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,qBAAqB,EACjC,IAAI,EAAE,iBAAiB,CAAC,OAAO,CAAC,GAC/B,OAAO,CAAC,oBAAoB,CAAC,CA2C/B;AAED,+FAA+F;AAC/F,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AACD,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GACtC,kBAAkB,GAAG,SAAS,CAUhC;AACD,MAAM,MAAM,mBAAmB,GAC3B;IAAE,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,SAAS,EAAE,iBAAiB,CAAA;CAAE,GAC5D;IAAE,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,iBAAiB,GAAG,eAAe,CAAA;CAAE,CAAC;AAEjF;;;;GAIG;AACH,wBAAgB,yBAAyB,CACvC,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EACvC,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,eAAe,GAAG,SAAS,GACvD,mBAAmB,GAAG,SAAS,CASjC"}
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import { JIRA_DRAFT_DIGEST_PATTERN, JIRA_DRAFT_ID_PATTERN, JIRA_DRAFT_PAGE_ITEMS_MAX, } from "@oscharko-dev/keiko-contracts/runtime/atlassian-connectors";
|
|
2
|
+
import { isJiraDraftItem, JIRA_DRAFT_STAND_IN_KEY, jiraDraftStagedItem, unresolvedJiraDraftRefs, } from "./jira-draft.js";
|
|
3
|
+
import { jiraDraftDigest, } from "./jira-draft-store.js";
|
|
4
|
+
import { jiraReadFailure } from "./jira-managed-metadata.js";
|
|
5
|
+
import { jiraTemplateViolationGuidance } from "./jira-issue-template-check.js";
|
|
6
|
+
import { checkJiraManagedMutationTemplates, jiraDraftFieldRefusals, } from "./jira-managed-mutations.js";
|
|
7
|
+
import { connectionFingerprint } from "./jira-report-tool.js";
|
|
8
|
+
const DRAFT_ID = new RegExp(JIRA_DRAFT_ID_PATTERN, "u");
|
|
9
|
+
const DRAFT_DIGEST = new RegExp(JIRA_DRAFT_DIGEST_PATTERN, "u");
|
|
10
|
+
const UNRESOLVED_LISTED_MAX = 32;
|
|
11
|
+
const STAGE_KEYS = new Set(["draftId", "items"]);
|
|
12
|
+
/**
|
|
13
|
+
* What to correct in a page that is not well formed. The declaration leaves the item form to
|
|
14
|
+
* jira.draft's, so this names the first item that does not match it (counting from 1).
|
|
15
|
+
*/
|
|
16
|
+
function invalidPageGuidance(raw) {
|
|
17
|
+
const { items } = raw;
|
|
18
|
+
const page = Array.isArray(items) ? items : [];
|
|
19
|
+
const index = page.findIndex((item) => !isJiraDraftItem(item));
|
|
20
|
+
const subject = index < 0
|
|
21
|
+
? `Send draftId (when appending) and 1 to ${String(JIRA_DRAFT_PAGE_ITEMS_MAX)} items.`
|
|
22
|
+
: `Item ${String(index + 1)} is not in the jira.draft item form: ref, projectId, issueTypeId and fields with summary; optionally parent, links and requirementIds.`;
|
|
23
|
+
return `${subject} Correct the page and send it again; nothing was staged.`;
|
|
24
|
+
}
|
|
25
|
+
/** One page of well-formed items and, when it extends a draft, that draft's id. */
|
|
26
|
+
function parseStageArgs(raw) {
|
|
27
|
+
if (!Object.keys(raw).every((key) => STAGE_KEYS.has(key)))
|
|
28
|
+
return undefined;
|
|
29
|
+
const { draftId, items } = raw;
|
|
30
|
+
if (draftId !== undefined && !(typeof draftId === "string" && DRAFT_ID.test(draftId)))
|
|
31
|
+
return undefined;
|
|
32
|
+
if (!Array.isArray(items) || items.length === 0 || items.length > JIRA_DRAFT_PAGE_ITEMS_MAX)
|
|
33
|
+
return undefined;
|
|
34
|
+
const page = items;
|
|
35
|
+
if (!page.every(isJiraDraftItem))
|
|
36
|
+
return undefined;
|
|
37
|
+
return { draftId, items: page };
|
|
38
|
+
}
|
|
39
|
+
/** The key a relation to another draft item stands for until that item exists. */
|
|
40
|
+
function standInLinks(item) {
|
|
41
|
+
const links = item.links;
|
|
42
|
+
if (!Array.isArray(links))
|
|
43
|
+
return [];
|
|
44
|
+
return links.map((link) => ({
|
|
45
|
+
type: link.type,
|
|
46
|
+
direction: link.direction,
|
|
47
|
+
issueKey: typeof link.issueKey === "string" ? link.issueKey : JIRA_DRAFT_STAND_IN_KEY,
|
|
48
|
+
}));
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* The create the item stands for. A parent or link target held by another draft item gets a
|
|
52
|
+
* stand-in key; the relations themselves are kept, because a template may require one (a
|
|
53
|
+
* `parentLink`) and the item that will be created carries exactly these.
|
|
54
|
+
*/
|
|
55
|
+
export function jiraDraftTemplateSource(item) {
|
|
56
|
+
const fields = (item.fields ?? {});
|
|
57
|
+
const parent = item.parent;
|
|
58
|
+
const parentFieldId = typeof parent?.fieldId === "string" ? parent.fieldId : undefined;
|
|
59
|
+
const links = standInLinks(item);
|
|
60
|
+
return {
|
|
61
|
+
projectId: item.projectId,
|
|
62
|
+
issueTypeId: item.issueTypeId,
|
|
63
|
+
fields: {
|
|
64
|
+
...fields,
|
|
65
|
+
...(parentFieldId === undefined ? {} : { [parentFieldId]: JIRA_DRAFT_STAND_IN_KEY }),
|
|
66
|
+
},
|
|
67
|
+
...(links.length === 0 ? {} : { links }),
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Every item passes the template check a create passes, now, so the model corrects an item while it
|
|
72
|
+
* is being written instead of after the human has been asked. Items are read one after another
|
|
73
|
+
* because each check reads Jira's metadata through the same bounded connection.
|
|
74
|
+
*/
|
|
75
|
+
export async function firstJiraDraftTemplateRefusal(items, context, connection, index = 0) {
|
|
76
|
+
const item = items[index];
|
|
77
|
+
if (item === undefined)
|
|
78
|
+
return undefined;
|
|
79
|
+
const result = await checkJiraManagedMutationTemplates("jira.create", jiraDraftTemplateSource(item), context, connection);
|
|
80
|
+
if (!result.ok && result.violations !== undefined)
|
|
81
|
+
return { ref: String(item.ref), violations: result.violations };
|
|
82
|
+
return firstJiraDraftTemplateRefusal(items, context, connection, index + 1);
|
|
83
|
+
}
|
|
84
|
+
function stagedView(draft, newDraft) {
|
|
85
|
+
const unresolved = unresolvedJiraDraftRefs(draft.items);
|
|
86
|
+
return {
|
|
87
|
+
data: {
|
|
88
|
+
outcome: "succeeded",
|
|
89
|
+
draftId: draft.id,
|
|
90
|
+
draftDigest: draft.digest,
|
|
91
|
+
newDraft,
|
|
92
|
+
itemCount: draft.items.length,
|
|
93
|
+
pageCount: draft.pageCount,
|
|
94
|
+
unresolvedRefCount: unresolved.length,
|
|
95
|
+
unresolvedRefs: unresolved.slice(0, UNRESOLVED_LISTED_MAX),
|
|
96
|
+
},
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
function activityOf(base, draft, extra = {}) {
|
|
100
|
+
return {
|
|
101
|
+
...base,
|
|
102
|
+
itemCount: draft?.items.length ?? 0,
|
|
103
|
+
pageCount: draft?.pageCount ?? 0,
|
|
104
|
+
byteCount: draft?.bytes ?? 0,
|
|
105
|
+
unresolvedRefCount: draft === undefined ? 0 : unresolvedJiraDraftRefs(draft.items).length,
|
|
106
|
+
violationCount: 0,
|
|
107
|
+
...extra,
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* The fixed instruction for the one bound a draft has: its size in bytes. It is plain language for
|
|
112
|
+
* a person who is not a developer, and it always leaves a way forward - several smaller drafts.
|
|
113
|
+
*/
|
|
114
|
+
export const JIRA_DRAFT_TOO_LARGE_GUIDANCE = "This backlog is larger than a single draft can hold, so nothing more was added to it. " +
|
|
115
|
+
"Tell the user in plain language that the backlog is too big to approve in one piece, that the items already written are still saved, " +
|
|
116
|
+
"and offer to split the rest into several smaller drafts, for example one per epic or theme, each approved on its own. " +
|
|
117
|
+
"Do not show this message, an error code or any numbers.";
|
|
118
|
+
function guidanceOf(refusal) {
|
|
119
|
+
return refusal === "too-large" ? { guidance: JIRA_DRAFT_TOO_LARGE_GUIDANCE } : {};
|
|
120
|
+
}
|
|
121
|
+
function refuseStage(run, refusal, pageItemCount, extra = {}) {
|
|
122
|
+
const { deps, context, args, startedAt } = run;
|
|
123
|
+
deps.activity?.(activityOf({
|
|
124
|
+
phase: "refused",
|
|
125
|
+
newDraft: args?.draftId === undefined,
|
|
126
|
+
pageItemCount,
|
|
127
|
+
durationMs: (deps.now ?? Date.now)() - startedAt,
|
|
128
|
+
}, undefined, { refusal, ...extra }), context);
|
|
129
|
+
const failure = jiraReadFailure(refusal);
|
|
130
|
+
return { ...failure, data: { ...failure.data, ...guidanceOf(refusal) } };
|
|
131
|
+
}
|
|
132
|
+
function templateRefusalResult(refusal) {
|
|
133
|
+
const guidance = jiraTemplateViolationGuidance(refusal.violations);
|
|
134
|
+
return {
|
|
135
|
+
isError: true,
|
|
136
|
+
data: {
|
|
137
|
+
outcome: "rejected",
|
|
138
|
+
reason: "field-validation",
|
|
139
|
+
ref: refusal.ref,
|
|
140
|
+
...(guidance === undefined ? {} : { guidance }),
|
|
141
|
+
violations: refusal.violations.map((violation) => ({ ...violation })),
|
|
142
|
+
},
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
function fieldRefusalResult(refusal) {
|
|
146
|
+
return {
|
|
147
|
+
isError: true,
|
|
148
|
+
data: {
|
|
149
|
+
outcome: "rejected",
|
|
150
|
+
reason: "field-validation",
|
|
151
|
+
ref: refusal.ref,
|
|
152
|
+
...(refusal.detail.fieldId === undefined ? {} : { fieldId: refusal.detail.fieldId }),
|
|
153
|
+
...(refusal.detail.validation === undefined ? {} : { validation: refusal.detail.validation }),
|
|
154
|
+
...(refusal.detail.messages === undefined ? {} : { messages: [...refusal.detail.messages] }),
|
|
155
|
+
},
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* The field check a create passes, while the item is being written: a large draft that a later
|
|
160
|
+
* approval would refuse would have to be staged again. An item's identity needs the whole draft, so
|
|
161
|
+
* a staged item is not looked up; one that exists already corrects its fields and still reconciles.
|
|
162
|
+
*/
|
|
163
|
+
function pageFieldRefusals(items, context, connection) {
|
|
164
|
+
const parsed = items
|
|
165
|
+
.map((item) => jiraDraftStagedItem(item))
|
|
166
|
+
.filter((item) => item !== undefined);
|
|
167
|
+
return jiraDraftFieldRefusals(parsed, context, connection, { reconcile: false });
|
|
168
|
+
}
|
|
169
|
+
/** `jira.draft-stage`: append a page of validated items to a draft; it changes nothing in Jira. */
|
|
170
|
+
export async function executeJiraDraftStageTool(rawArgs, context, connection, deps) {
|
|
171
|
+
const now = deps.now ?? Date.now;
|
|
172
|
+
const startedAt = now();
|
|
173
|
+
const args = parseStageArgs(rawArgs);
|
|
174
|
+
const run = { deps, context, args, startedAt };
|
|
175
|
+
if (args === undefined) {
|
|
176
|
+
const refused = refuseStage(run, "invalid-input", 0);
|
|
177
|
+
return { ...refused, data: { ...refused.data, guidance: invalidPageGuidance(rawArgs) } };
|
|
178
|
+
}
|
|
179
|
+
if (connection.deployment !== "data-center")
|
|
180
|
+
return refuseStage(run, "unsupported-deployment", 0);
|
|
181
|
+
const template = await firstJiraDraftTemplateRefusal(args.items, context, connection);
|
|
182
|
+
if (template !== undefined) {
|
|
183
|
+
refuseStage(run, "template-violation", args.items.length, {
|
|
184
|
+
violationCount: template.violations.length,
|
|
185
|
+
});
|
|
186
|
+
return templateRefusalResult(template);
|
|
187
|
+
}
|
|
188
|
+
const fields = await pageFieldRefusals(args.items, context, connection);
|
|
189
|
+
const firstField = fields.refusals[0];
|
|
190
|
+
if (firstField !== undefined) {
|
|
191
|
+
refuseStage(run, "invalid-fields", args.items.length, { violationCount: fields.total });
|
|
192
|
+
return fieldRefusalResult(firstField);
|
|
193
|
+
}
|
|
194
|
+
const appended = deps.store.append(deps.owner(context), args.draftId, connectionFingerprint(connection), args.items);
|
|
195
|
+
if (!appended.ok)
|
|
196
|
+
return refuseStage(run, appended.refusal, args.items.length);
|
|
197
|
+
deps.activity?.(activityOf({
|
|
198
|
+
phase: "staged",
|
|
199
|
+
newDraft: args.draftId === undefined,
|
|
200
|
+
pageItemCount: args.items.length,
|
|
201
|
+
durationMs: now() - startedAt,
|
|
202
|
+
}, appended.draft), context);
|
|
203
|
+
return stagedView(appended.draft, args.draftId === undefined);
|
|
204
|
+
}
|
|
205
|
+
export function parseJiraDraftReference(args) {
|
|
206
|
+
const keys = Object.keys(args);
|
|
207
|
+
const { draftId, draftDigest } = args;
|
|
208
|
+
return keys.length === 2 &&
|
|
209
|
+
typeof draftId === "string" &&
|
|
210
|
+
DRAFT_ID.test(draftId) &&
|
|
211
|
+
typeof draftDigest === "string" &&
|
|
212
|
+
DRAFT_DIGEST.test(draftDigest)
|
|
213
|
+
? { draftId, draftDigest }
|
|
214
|
+
: undefined;
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* The staged draft a `jira.draft` call names, as the `{ items }` arguments every consumer parses.
|
|
218
|
+
* `undefined` when the call does not name a staged draft. The digest the call carries must be the
|
|
219
|
+
* digest of the items held now: a draft extended after the digest was read is a different draft.
|
|
220
|
+
*/
|
|
221
|
+
export function resolveJiraDraftArguments(args, lookup) {
|
|
222
|
+
if (!("draftId" in args) && !("draftDigest" in args))
|
|
223
|
+
return undefined;
|
|
224
|
+
const reference = parseJiraDraftReference(args);
|
|
225
|
+
const draft = reference === undefined ? undefined : lookup(reference.draftId);
|
|
226
|
+
if (reference === undefined || draft === undefined)
|
|
227
|
+
return { ok: false, reason: "draft-not-found" };
|
|
228
|
+
return draft.digest === reference.draftDigest && jiraDraftDigest(draft.items) === draft.digest
|
|
229
|
+
? { ok: true, arguments: { items: draft.items } }
|
|
230
|
+
: { ok: false, reason: "draft-changed" };
|
|
231
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/** One validated item as the model sent it; relations are resolved only when the draft is run. */
|
|
2
|
+
export type StagedJiraDraftItem = Readonly<Record<string, unknown>>;
|
|
3
|
+
/**
|
|
4
|
+
* A backlog draft being assembled in pages (#4178). It lives in memory only: the model appends
|
|
5
|
+
* validated pages, then asks for one approval of the whole draft by naming it and the digest of
|
|
6
|
+
* its exact item list. Idle drafts expire, one owner holds a bounded number (its oldest go first)
|
|
7
|
+
* and beyond the shared byte budget the owner holding the most is trimmed first.
|
|
8
|
+
*/
|
|
9
|
+
export interface StagedJiraDraft {
|
|
10
|
+
readonly id: string;
|
|
11
|
+
readonly owner: string;
|
|
12
|
+
/** The Jira instance and credential the draft was started with; never the credential. */
|
|
13
|
+
readonly fingerprint: string;
|
|
14
|
+
readonly items: readonly StagedJiraDraftItem[];
|
|
15
|
+
/** Canonical JSON bytes of the items; the resource bound is measured on this. */
|
|
16
|
+
readonly bytes: number;
|
|
17
|
+
readonly pageCount: number;
|
|
18
|
+
/** Commits to the exact item list and its order. */
|
|
19
|
+
readonly digest: string;
|
|
20
|
+
readonly lastUsedAt: number;
|
|
21
|
+
}
|
|
22
|
+
export type JiraDraftAppend = {
|
|
23
|
+
readonly ok: true;
|
|
24
|
+
readonly draft: StagedJiraDraft;
|
|
25
|
+
} | {
|
|
26
|
+
readonly ok: false;
|
|
27
|
+
readonly refusal: "draft-not-found" | "connection-changed" | "duplicate-ref" | "too-large";
|
|
28
|
+
};
|
|
29
|
+
export interface JiraDraftStore {
|
|
30
|
+
/** Appends one validated page; a refused page changes nothing. */
|
|
31
|
+
readonly append: (owner: string, draftId: string | undefined, fingerprint: string, page: readonly StagedJiraDraftItem[]) => JiraDraftAppend;
|
|
32
|
+
/** The draft only for the owner that started it; anything else is indistinguishable from absent. */
|
|
33
|
+
readonly get: (id: string, owner: string) => StagedJiraDraft | undefined;
|
|
34
|
+
/** The same lookup without renewing the expiry: reading a draft is not use of it. */
|
|
35
|
+
readonly peek: (id: string, owner: string) => StagedJiraDraft | undefined;
|
|
36
|
+
readonly size: () => number;
|
|
37
|
+
}
|
|
38
|
+
export interface JiraDraftStoreOptions {
|
|
39
|
+
/** Retained bytes one draft may hold; defaults to the contract's resource bound. */
|
|
40
|
+
readonly maxDraftBytes?: number;
|
|
41
|
+
readonly now?: () => number;
|
|
42
|
+
readonly newId?: () => string;
|
|
43
|
+
readonly idleTtlMs?: number;
|
|
44
|
+
readonly maxTotalBytes?: number;
|
|
45
|
+
readonly maxDraftsPerOwner?: number;
|
|
46
|
+
}
|
|
47
|
+
export declare const JIRA_DRAFT_IDLE_TTL_MS: number;
|
|
48
|
+
/** Retained size of all staged drafts together; a memory safety bound, never a draft limit. */
|
|
49
|
+
export declare const JIRA_DRAFT_STORE_MAX_BYTES: number;
|
|
50
|
+
export declare const JIRA_DRAFT_OWNER_DRAFTS_MAX = 8;
|
|
51
|
+
/** The digest an approval commits to: the items in the order they were staged. */
|
|
52
|
+
export declare function jiraDraftDigest(items: readonly StagedJiraDraftItem[]): string;
|
|
53
|
+
export declare function createJiraDraftStore(options?: JiraDraftStoreOptions): JiraDraftStore;
|
|
54
|
+
//# sourceMappingURL=jira-draft-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jira-draft-store.d.ts","sourceRoot":"","sources":["../src/jira-draft-store.ts"],"names":[],"mappings":"AAKA,kGAAkG;AAClG,MAAM,MAAM,mBAAmB,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;AAEpE;;;;;GAKG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,yFAAyF;IACzF,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,KAAK,EAAE,SAAS,mBAAmB,EAAE,CAAC;IAC/C,iFAAiF;IACjF,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,oDAAoD;IACpD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,MAAM,eAAe,GACvB;IAAE,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,eAAe,CAAA;CAAE,GACtD;IACE,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC;IACnB,QAAQ,CAAC,OAAO,EAAE,iBAAiB,GAAG,oBAAoB,GAAG,eAAe,GAAG,WAAW,CAAC;CAC5F,CAAC;AAEN,MAAM,WAAW,cAAc;IAC7B,kEAAkE;IAClE,QAAQ,CAAC,MAAM,EAAE,CACf,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,SAAS,mBAAmB,EAAE,KACjC,eAAe,CAAC;IACrB,oGAAoG;IACpG,QAAQ,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,eAAe,GAAG,SAAS,CAAC;IACzE,qFAAqF;IACrF,QAAQ,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,eAAe,GAAG,SAAS,CAAC;IAC1E,QAAQ,CAAC,IAAI,EAAE,MAAM,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,qBAAqB;IACpC,oFAAoF;IACpF,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,MAAM,CAAC;IAC5B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,MAAM,CAAC;IAC9B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;CACrC;AAED,eAAO,MAAM,sBAAsB,QAAqB,CAAC;AACzD,+FAA+F;AAC/F,eAAO,MAAM,0BAA0B,QAAmB,CAAC;AAC3D,eAAO,MAAM,2BAA2B,IAAI,CAAC;AAI7C,kFAAkF;AAClF,wBAAgB,eAAe,CAAC,KAAK,EAAE,SAAS,mBAAmB,EAAE,GAAG,MAAM,CAE7E;AA6DD,wBAAgB,oBAAoB,CAAC,OAAO,GAAE,qBAA0B,GAAG,cAAc,CAgDxF"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { randomUUID } from "node:crypto";
|
|
2
|
+
import { JIRA_DRAFT_STAGE_BYTES_MAX } from "@oscharko-dev/keiko-contracts/runtime/atlassian-connectors";
|
|
3
|
+
import { canonicalise, sha256Hex } from "@oscharko-dev/keiko-security";
|
|
4
|
+
import { trimOwnedBytes } from "./jira-store-bounds.js";
|
|
5
|
+
export const JIRA_DRAFT_IDLE_TTL_MS = 4 * 60 * 60 * 1000;
|
|
6
|
+
/** Retained size of all staged drafts together; a memory safety bound, never a draft limit. */
|
|
7
|
+
export const JIRA_DRAFT_STORE_MAX_BYTES = 96 * 1024 * 1024;
|
|
8
|
+
export const JIRA_DRAFT_OWNER_DRAFTS_MAX = 8;
|
|
9
|
+
/** The digest an approval commits to: the items in the order they were staged. */
|
|
10
|
+
export function jiraDraftDigest(items) {
|
|
11
|
+
return sha256Hex(canonicalise({ items }));
|
|
12
|
+
}
|
|
13
|
+
function itemBytes(item) {
|
|
14
|
+
return Buffer.byteLength(canonicalise(item));
|
|
15
|
+
}
|
|
16
|
+
function oldestFirst(drafts, owner) {
|
|
17
|
+
return [...drafts.values()]
|
|
18
|
+
.filter((draft) => owner === undefined || draft.owner === owner)
|
|
19
|
+
.sort((left, right) => left.lastUsedAt - right.lastUsedAt);
|
|
20
|
+
}
|
|
21
|
+
function trimOwner(drafts, owner, limit) {
|
|
22
|
+
const held = oldestFirst(drafts, owner);
|
|
23
|
+
for (const draft of held.slice(0, Math.max(0, held.length - limit)))
|
|
24
|
+
drafts.delete(draft.id);
|
|
25
|
+
}
|
|
26
|
+
function trimBytes(drafts, limit) {
|
|
27
|
+
trimOwnedBytes(drafts, limit, (owner) => oldestFirst(drafts, owner)[0]);
|
|
28
|
+
}
|
|
29
|
+
function refsOf(items) {
|
|
30
|
+
return new Set(items.map((item) => item.ref).filter((ref) => typeof ref === "string"));
|
|
31
|
+
}
|
|
32
|
+
/** A ref repeated within the page itself, or one the draft already holds. */
|
|
33
|
+
function repeatsRef(held, page) {
|
|
34
|
+
const seen = new Set(held);
|
|
35
|
+
return page.some((item) => {
|
|
36
|
+
const ref = String(item.ref);
|
|
37
|
+
const repeated = seen.has(ref);
|
|
38
|
+
seen.add(ref);
|
|
39
|
+
return repeated;
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
/** Why a page cannot be appended to the draft it names (or to a new one), or undefined. */
|
|
43
|
+
function appendRefusal(current, fingerprint, page, bytes, maxDraftBytes) {
|
|
44
|
+
if (current !== undefined && current.fingerprint !== fingerprint)
|
|
45
|
+
return "connection-changed";
|
|
46
|
+
if (repeatsRef(refsOf(current?.items ?? []), page))
|
|
47
|
+
return "duplicate-ref";
|
|
48
|
+
return bytes > maxDraftBytes ? "too-large" : undefined;
|
|
49
|
+
}
|
|
50
|
+
function extendedDraft(current, page, base) {
|
|
51
|
+
const items = [...(current?.items ?? []), ...page];
|
|
52
|
+
return Object.freeze({
|
|
53
|
+
...base,
|
|
54
|
+
items: Object.freeze(items),
|
|
55
|
+
pageCount: (current?.pageCount ?? 0) + 1,
|
|
56
|
+
digest: jiraDraftDigest(items),
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
function pageBytes(page) {
|
|
60
|
+
return page.reduce((sum, item) => sum + itemBytes(item), 0);
|
|
61
|
+
}
|
|
62
|
+
export function createJiraDraftStore(options = {}) {
|
|
63
|
+
const now = options.now ?? Date.now;
|
|
64
|
+
const newId = options.newId ?? randomUUID;
|
|
65
|
+
const idleTtlMs = options.idleTtlMs ?? JIRA_DRAFT_IDLE_TTL_MS;
|
|
66
|
+
const maxTotalBytes = options.maxTotalBytes ?? JIRA_DRAFT_STORE_MAX_BYTES;
|
|
67
|
+
const maxDraftBytes = options.maxDraftBytes ?? JIRA_DRAFT_STAGE_BYTES_MAX;
|
|
68
|
+
const perOwner = options.maxDraftsPerOwner ?? JIRA_DRAFT_OWNER_DRAFTS_MAX;
|
|
69
|
+
const drafts = new Map();
|
|
70
|
+
const sweep = () => {
|
|
71
|
+
const cutoff = now() - idleTtlMs;
|
|
72
|
+
for (const [id, draft] of drafts)
|
|
73
|
+
if (draft.lastUsedAt < cutoff)
|
|
74
|
+
drafts.delete(id);
|
|
75
|
+
trimBytes(drafts, maxTotalBytes);
|
|
76
|
+
};
|
|
77
|
+
const peek = (id, owner) => {
|
|
78
|
+
sweep();
|
|
79
|
+
const draft = drafts.get(id);
|
|
80
|
+
return draft?.owner === owner ? draft : undefined;
|
|
81
|
+
};
|
|
82
|
+
return {
|
|
83
|
+
append: (owner, draftId, fingerprint, page) => {
|
|
84
|
+
const current = draftId === undefined ? undefined : peek(draftId, owner);
|
|
85
|
+
if (draftId !== undefined && current === undefined)
|
|
86
|
+
return { ok: false, refusal: "draft-not-found" };
|
|
87
|
+
const bytes = (current?.bytes ?? 0) + pageBytes(page);
|
|
88
|
+
const refusal = appendRefusal(current, fingerprint, page, bytes, maxDraftBytes);
|
|
89
|
+
if (refusal !== undefined)
|
|
90
|
+
return { ok: false, refusal };
|
|
91
|
+
const draft = extendedDraft(current, page, {
|
|
92
|
+
id: current?.id ?? newId(),
|
|
93
|
+
owner,
|
|
94
|
+
fingerprint,
|
|
95
|
+
bytes,
|
|
96
|
+
lastUsedAt: now(),
|
|
97
|
+
});
|
|
98
|
+
drafts.set(draft.id, draft);
|
|
99
|
+
trimOwner(drafts, owner, perOwner);
|
|
100
|
+
trimBytes(drafts, maxTotalBytes);
|
|
101
|
+
return { ok: true, draft };
|
|
102
|
+
},
|
|
103
|
+
get: (id, owner) => {
|
|
104
|
+
const draft = peek(id, owner);
|
|
105
|
+
if (draft === undefined)
|
|
106
|
+
return undefined;
|
|
107
|
+
const renewed = Object.freeze({ ...draft, lastUsedAt: now() });
|
|
108
|
+
drafts.set(id, renewed);
|
|
109
|
+
return renewed;
|
|
110
|
+
},
|
|
111
|
+
peek,
|
|
112
|
+
size: () => drafts.size,
|
|
113
|
+
};
|
|
114
|
+
}
|