@oscharko-dev/keiko 1.2.7 → 1.3.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 +10 -1
- package/dist/ui/csp-hashes.json +7 -7
- package/dist/ui/static/404.html +1 -1
- package/dist/ui/static/__next.__PAGE__.txt +29 -29
- package/dist/ui/static/__next._full.txt +39 -37
- package/dist/ui/static/__next._tree.txt +4 -3
- package/dist/ui/static/_next/static/chunks/0-vpa4wvwcpe-.js +1 -0
- package/dist/ui/static/_next/static/chunks/00r78wq51vv7p.js +1 -0
- package/dist/ui/static/_next/static/chunks/00yei-8muakqk.js +1 -0
- package/dist/ui/static/_next/static/chunks/013_eu8kl0gb5.js +2 -0
- package/dist/ui/static/_next/static/chunks/{2-ayearhfgxi5.js → 01q9wnshe_-rz.js} +1 -1
- package/dist/ui/static/_next/static/chunks/02ex3k089apnn.js +1 -0
- package/dist/ui/static/_next/static/chunks/036rtd09k8_ad.js +115 -0
- package/dist/ui/static/_next/static/chunks/048ovhn3wu_bu.js +1 -0
- package/dist/ui/static/_next/static/chunks/{13k6ykgg16pc4.js → 04k2mahro7j92.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{06hwq8_gunvuo.js → 07957vlppntmk.js} +1 -1
- package/dist/ui/static/_next/static/chunks/08db-gqjr8owi.js +1 -0
- package/dist/ui/static/_next/static/chunks/08x7pi746hdjg.js +86 -0
- package/dist/ui/static/_next/static/chunks/0_avx_tl-uxim.js +1 -0
- package/dist/ui/static/_next/static/chunks/0bn9_5u9n-9b9.js +1 -0
- package/dist/ui/static/_next/static/chunks/0cpk4khbn9_uw.js +1 -0
- package/dist/ui/static/_next/static/chunks/0cvtkiw2nnx5u.js +1 -0
- package/dist/ui/static/_next/static/chunks/0e-mzde0wr44_.js +1 -0
- package/dist/ui/static/_next/static/chunks/0em5-43ag74be.js +1 -0
- package/dist/ui/static/_next/static/chunks/0eub6ctk-lx6x.js +1 -0
- package/dist/ui/static/_next/static/chunks/0f5a0vl40n41q.js +93 -0
- package/dist/ui/static/_next/static/chunks/0frmhx04k4f8m.js +1 -0
- package/dist/ui/static/_next/static/chunks/0h-upsn6lazz9.js +1 -0
- package/dist/ui/static/_next/static/chunks/{1nqe0rzxqwjkw.js → 0kx828qnu1y09.js} +2 -2
- package/dist/ui/static/_next/static/chunks/{1lo51t4ykvotu.js → 0ld3t8oea9hy4.js} +1 -1
- package/dist/ui/static/_next/static/chunks/0lkj6sqxq86nj.js +1 -0
- package/dist/ui/static/_next/static/chunks/0lmsmxjl20gd_.js +1 -0
- package/dist/ui/static/_next/static/chunks/{2r-ixexb6tw-l.js → 0o0r6txb3s4ga.js} +1 -1
- package/dist/ui/static/_next/static/chunks/0q093f1wzrxjc.js +10 -0
- package/dist/ui/static/_next/static/chunks/{2--bm_kzfgi53.js → 0ru_y22on6q7e.js} +1 -1
- package/dist/ui/static/_next/static/chunks/0sbsupp6l3fhs.js +122 -0
- package/dist/ui/static/_next/static/chunks/0sjpthhqiy35-.js +77 -0
- package/dist/ui/static/_next/static/chunks/0u0_dl0v9_1iu.js +1 -0
- package/dist/ui/static/_next/static/chunks/0u1yu4bee1lua.js +148 -0
- package/dist/ui/static/_next/static/chunks/0ulgtntj_ouhr.js +94 -0
- package/dist/ui/static/_next/static/chunks/{2a9l_04_160z1.js → 0vculqg2ywydc.js} +2 -2
- package/dist/ui/static/_next/static/chunks/{1tmw16_b-qann.js → 0vm0za6c--wqd.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{242ju-8-y2a2m.js → 0z-0fcs2vq9p8.js} +1 -1
- package/dist/ui/static/_next/static/chunks/0zf356goly5qa.js +1 -0
- package/dist/ui/static/_next/static/chunks/1073luadh4b0t.js +34 -0
- package/dist/ui/static/_next/static/chunks/13f6ivzqgnbw1.js +287 -0
- package/dist/ui/static/_next/static/chunks/14a82wtay44g0.js +1 -0
- package/dist/ui/static/_next/static/chunks/165pcl4xl06au.js +1 -0
- package/dist/ui/static/_next/static/chunks/18lchth-3hzrj.js +158 -0
- package/dist/ui/static/_next/static/chunks/19wc3w-pyquvj.js +1 -0
- package/dist/ui/static/_next/static/chunks/1a1e0t6lmbu2t.js +22 -0
- package/dist/ui/static/_next/static/chunks/1a6xpyv7wp8mw.css +6 -0
- package/dist/ui/static/_next/static/chunks/1at-eg4pjyhhv.js +124 -0
- package/dist/ui/static/_next/static/chunks/1attgz5m1f9pb.js +104 -0
- package/dist/ui/static/_next/static/chunks/1b2674hlxp05d.js +1 -0
- package/dist/ui/static/_next/static/chunks/1b_3is6j9lo7s.js +27 -0
- package/dist/ui/static/_next/static/chunks/1bexndskkpb-l.js +1 -0
- package/dist/ui/static/_next/static/chunks/{0kjv5jpoy_3wx.js → 1c_pss23_wycd.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{40_mgil0e17bk.js → 1d_810phvbt-v.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{30vnoxh_uxkfo.js → 1e9f1ex2uq29r.js} +1 -1
- package/dist/ui/static/_next/static/chunks/1i7xk_bpdb206.js +1 -0
- package/dist/ui/static/_next/static/chunks/1isrybhkr_cy_.js +82 -0
- package/dist/ui/static/_next/static/chunks/{1wxgm93nd75ns.js → 1k7tt8btcpb6z.js} +1 -1
- package/dist/ui/static/_next/static/chunks/1k_nzgb93nxr8.js +226 -0
- package/dist/ui/static/_next/static/chunks/{1wq7gotrl8jek.css → 1kbra771vsw0c.css} +1 -1
- package/dist/ui/static/_next/static/chunks/1mjmyr3-5-6-7.js +15 -0
- package/dist/ui/static/_next/static/chunks/1n4mmvvatk3mn.js +1 -0
- package/dist/ui/static/_next/static/chunks/1pw2mt5mwtr9t.js +1 -0
- package/dist/ui/static/_next/static/chunks/1r5gxo360o3td.js +153 -0
- package/dist/ui/static/_next/static/chunks/{2dhtqq8a83t27.css → 1rhvew72iz-n3.css} +14 -9
- package/dist/ui/static/_next/static/chunks/{09v8w4wuj4m1_.js → 1sjvzpa27mjxc.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{2ql8dczlqzd4u.js → 1t64aljha95yf.js} +1 -1
- package/dist/ui/static/_next/static/chunks/1tw5oyzju-ijp.js +23 -0
- package/dist/ui/static/_next/static/chunks/1tyghneva-hiy.js +1 -0
- package/dist/ui/static/_next/static/chunks/1uxz_w63vj11u.js +79 -0
- package/dist/ui/static/_next/static/chunks/{0_wcaciq9-s_c.js → 1uy2itzuap01l.js} +1 -1
- package/dist/ui/static/_next/static/chunks/1veg_qtra_2-d.js +41 -0
- package/dist/ui/static/_next/static/chunks/{1_6h8vxxlkwg1.js → 1z8n7lj5wgp4m.js} +1 -1
- package/dist/ui/static/_next/static/chunks/20eou_wcxpx1s.js +1 -0
- package/dist/ui/static/_next/static/chunks/{35eygftv-qu-q.js → 21yx7habl0roe.js} +1 -1
- package/dist/ui/static/_next/static/chunks/226y24czlj0wp.js +1 -0
- package/dist/ui/static/_next/static/chunks/{3i5xyx-alljjx.js → 24fnfy1y6n4og.js} +1 -1
- package/dist/ui/static/_next/static/chunks/250of-fyd3fhr.js +1 -0
- package/dist/ui/static/_next/static/chunks/26dysjhfplkru.js +1 -0
- package/dist/ui/static/_next/static/chunks/2_c97y2pecrx2.js +1 -0
- package/dist/ui/static/_next/static/chunks/2_uz2tn-uwusm.js +1 -0
- package/dist/ui/static/_next/static/chunks/2ajmg9bm0a9y0.js +32 -0
- package/dist/ui/static/_next/static/chunks/2ayjltgsne_71.js +90 -0
- package/dist/ui/static/_next/static/chunks/2bm_bps837c8s.js +1 -0
- package/dist/ui/static/_next/static/chunks/2db5ooma2i4yx.js +1 -0
- package/dist/ui/static/_next/static/chunks/2dsu6hwhp85it.js +1 -0
- package/dist/ui/static/_next/static/chunks/2dwa2hysai57e.js +1 -0
- package/dist/ui/static/_next/static/chunks/2ek5ny0z29n-_.js +201 -0
- package/dist/ui/static/_next/static/chunks/{2fr8bahvq9eg9.js → 2he22glqm5s22.js} +1 -1
- package/dist/ui/static/_next/static/chunks/2ie6v7cdqe406.js +62 -0
- package/dist/ui/static/_next/static/chunks/2img0w643cwi4.js +1 -0
- package/dist/ui/static/_next/static/chunks/2kqjvq-p_chx9.js +1 -0
- package/dist/ui/static/_next/static/chunks/2lfji5sgej4v4.js +1 -0
- package/dist/ui/static/_next/static/chunks/2mcajqb-umr1q.css +4 -0
- package/dist/ui/static/_next/static/chunks/2mk8qovgc1zl-.js +2 -0
- package/dist/ui/static/_next/static/chunks/{2206mw-z43vyo.js → 2ni4tm0tqgcdk.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{0mde4a5qgo7cd.js → 2nzruc7wyn8dr.js} +1 -1
- package/dist/ui/static/_next/static/chunks/2o7tp9zv8u7tw.js +1 -0
- package/dist/ui/static/_next/static/chunks/2o9fq12slgfa0.js +1 -0
- package/dist/ui/static/_next/static/chunks/2o9mtyaa7p_se.js +1 -0
- package/dist/ui/static/_next/static/chunks/{34w7t_j7upvnc.js → 2rxwfcn3g_xcj.js} +1 -1
- package/dist/ui/static/_next/static/chunks/2sff-cr7dn-6k.js +1 -0
- package/dist/ui/static/_next/static/chunks/2werku_ws_bu6.js +1 -0
- package/dist/ui/static/_next/static/chunks/{3kftpmlf_wvd3.js → 2x_kyz5ial_41.js} +1 -1
- package/dist/ui/static/_next/static/chunks/2xudunn-lg4q1.js +1 -0
- package/dist/ui/static/_next/static/chunks/2yk59ik12pbte.js +1 -0
- package/dist/ui/static/_next/static/chunks/2yzeyiuh6hiyi.js +1 -0
- package/dist/ui/static/_next/static/chunks/2yzl8qiydb5e5.js +4 -0
- package/dist/ui/static/_next/static/chunks/{1w7td7s2ds1r4.js → 30jm7s-paox4s.js} +3 -3
- package/dist/ui/static/_next/static/chunks/33iwa_n3mi3c1.js +1 -0
- package/dist/ui/static/_next/static/chunks/{2_52lwqeijscc.js → 33jglfz6y49ka.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{2chlwgzo2fo43.js → 34ey1sc6cg1jb.js} +1 -1
- package/dist/ui/static/_next/static/chunks/34xq7t6q8xscy.js +38 -0
- package/dist/ui/static/_next/static/chunks/{403kjiu_bjumv.js → 35oxd7_mv6yx-.js} +1 -1
- package/dist/ui/static/_next/static/chunks/374l27tamvcx2.js +1 -0
- package/dist/ui/static/_next/static/chunks/{35amvhf88zprh.js → 37nl28rjnj-un.js} +1 -1
- package/dist/ui/static/_next/static/chunks/38x98fr04cv7f.js +61 -0
- package/dist/ui/static/_next/static/chunks/395aita-ystfu.js +1 -0
- package/dist/ui/static/_next/static/chunks/39thlt_b984p5.js +1 -0
- package/dist/ui/static/_next/static/chunks/3_32gobpn9eea.js +1 -0
- package/dist/ui/static/_next/static/chunks/{2h3yq6o4kg_kb.js → 3_qhvykv4ncye.js} +1 -1
- package/dist/ui/static/_next/static/chunks/3ca17qj3ru209.js +1 -0
- package/dist/ui/static/_next/static/chunks/3e39amxssw159.js +1 -0
- package/dist/ui/static/_next/static/chunks/{2ty81249w2gdw.js → 3e_kp81r43l1p.js} +1 -1
- package/dist/ui/static/_next/static/chunks/3g9t_w1rxvy9k.js +1 -0
- package/dist/ui/static/_next/static/chunks/{2na7t_nmk3z_c.js → 3he4t7yk0v9z5.js} +1 -1
- package/dist/ui/static/_next/static/chunks/3hxvi-06cjs9x.js +1 -0
- package/dist/ui/static/_next/static/chunks/3hykczegwyd5i.js +36 -0
- package/dist/ui/static/_next/static/chunks/{2r8nyeo1ifl95.js → 3jc_y1tnauj-z.js} +1 -1
- package/dist/ui/static/_next/static/chunks/3jvw3i_osp8l_.js +64 -0
- package/dist/ui/static/_next/static/chunks/3k-z30ov7etov.js +1 -0
- package/dist/ui/static/_next/static/chunks/{302c7ueozi8kb.js → 3ksimuw0ad9zn.js} +1 -1
- package/dist/ui/static/_next/static/chunks/3l4xc7b94iz9e.css +1 -0
- package/dist/ui/static/_next/static/chunks/3l6l7qzd411sc.js +1 -0
- package/dist/ui/static/_next/static/chunks/3lmi87qw7ehxj.js +15 -0
- package/dist/ui/static/_next/static/chunks/3lyh88nxnumm7.js +1 -0
- package/dist/ui/static/_next/static/chunks/3m4bd79015ouy.js +1 -0
- package/dist/ui/static/_next/static/chunks/{09lp4q0mk16fc.js → 3mqrq9fc15u8f.js} +1 -1
- package/dist/ui/static/_next/static/chunks/3ndfyq6sdfacc.js +24 -0
- package/dist/ui/static/_next/static/chunks/{3_fsw1lkt1_wh.js → 3nir0q_tbd635.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{13sm61rx0q9m9.js → 3owd_yj0kssh5.js} +1 -1
- package/dist/ui/static/_next/static/chunks/3owvaep851hrg.js +1 -0
- package/dist/ui/static/_next/static/chunks/3q-qr3yas3rmr.js +1 -0
- package/dist/ui/static/_next/static/chunks/{1d4ot7_nywn7m.js → 3qabgkg9agmqc.js} +1 -1
- package/dist/ui/static/_next/static/chunks/3qkwuc11h025w.js +15 -0
- package/dist/ui/static/_next/static/chunks/3qqqcf3iyho8i.js +62 -0
- package/dist/ui/static/_next/static/chunks/3r1y5u63no3t6.js +1 -0
- package/dist/ui/static/_next/static/chunks/3snum7xpnvwx_.js +1 -0
- package/dist/ui/static/_next/static/chunks/3tl76hukh2-pb.js +1 -0
- package/dist/ui/static/_next/static/chunks/3u1g6632-f7ay.js +15 -0
- package/dist/ui/static/_next/static/chunks/3w0ad9bnfy9s8.js +1 -0
- package/dist/ui/static/_next/static/chunks/3yr06bc-tr_ms.js +1 -0
- package/dist/ui/static/_next/static/chunks/3zt236vwq5bnr.js +1 -0
- package/dist/ui/static/_next/static/chunks/40rspfo2bz_p3.js +1 -0
- package/dist/ui/static/_next/static/chunks/41s-b40scg1v9.js +1 -0
- package/dist/ui/static/_next/static/chunks/{0_mnz9imy_h8n.js → 43ke4vyo6p4wu.js} +1 -1
- package/dist/ui/static/_next/static/chunks/43p3o8p9_gmdm.js +1 -0
- package/dist/ui/static/_next/static/chunks/43qb7fm2lvzfr.js +1 -0
- package/dist/ui/static/_next/static/chunks/{11cv_1ipmnwdr.js → 447_k7yqc6i7k.js} +3 -3
- package/dist/ui/static/_next/static/chunks/44jjws0h08uog.js +24 -0
- package/dist/ui/static/_not-found/__next._full.txt +28 -25
- package/dist/ui/static/_not-found/__next._not-found.__PAGE__.txt +6 -5
- package/dist/ui/static/_not-found/__next._tree.txt +3 -2
- package/dist/ui/static/_not-found.html +1 -1
- package/dist/ui/static/_not-found.txt +28 -25
- package/dist/ui/static/atlassian-connectors/__next._full.txt +27 -25
- package/dist/ui/static/atlassian-connectors/__next._tree.txt +3 -2
- package/dist/ui/static/atlassian-connectors/__next.atlassian-connectors.__PAGE__.txt +11 -10
- package/dist/ui/static/atlassian-connectors.html +1 -1
- package/dist/ui/static/atlassian-connectors.txt +27 -25
- package/dist/ui/static/index.html +1 -1
- package/dist/ui/static/index.txt +39 -37
- package/dist/ui/static/launch/__next._full.txt +43 -41
- package/dist/ui/static/launch/__next._tree.txt +4 -3
- package/dist/ui/static/launch/__next.launch.__PAGE__.txt +29 -29
- package/dist/ui/static/launch.html +1 -1
- package/dist/ui/static/launch.txt +43 -41
- package/dist/ui/static/local-knowledge/__next._full.txt +21 -20
- package/dist/ui/static/local-knowledge/__next._tree.txt +4 -3
- package/dist/ui/static/local-knowledge/__next.local-knowledge.__PAGE__.txt +29 -29
- package/dist/ui/static/local-knowledge/capsule/__next._full.txt +28 -26
- package/dist/ui/static/local-knowledge/capsule/__next._tree.txt +3 -2
- package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.capsule.__PAGE__.txt +9 -8
- package/dist/ui/static/local-knowledge/capsule.html +1 -1
- package/dist/ui/static/local-knowledge/capsule.txt +28 -26
- package/dist/ui/static/local-knowledge.html +1 -1
- package/dist/ui/static/local-knowledge.txt +21 -20
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/activity-log-compatibility-3558.fixture.json +4 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory-data.generated.json +3844 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.js +10 -3703
- package/node_modules/@oscharko-dev/keiko-activity-log/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-cli/dist/portable-maintenance.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/portable-maintenance.js +4 -0
- package/node_modules/@oscharko-dev/keiko-cli/package.json +15 -15
- package/node_modules/@oscharko-dev/keiko-connectors/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-connectors/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-connectors/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-diagnostic-fields.d.ts +18 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-diagnostic-fields.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-diagnostic-fields.js +17 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-contracts.d.ts +443 -43
- 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 +760 -77
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-coverage.generated.json +45847 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-identity.generated.d.ts +6 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-identity.generated.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-identity.generated.js +15 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-operation-surfaces.generated.json +592 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-operations.generated.d.ts +3162 -370
- 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 +3737 -498
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry-metadata.d.ts +43 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry-metadata.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry-metadata.js +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry.generated.d.ts +2 -34384
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry.generated.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry.generated.js +2 -42955
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-runtime-metadata.generated.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-runtime-metadata.generated.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-runtime-metadata.generated.js +6 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/bff-wire.d.ts +95 -0
- 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 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/code-task-acceptance.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/code-task-acceptance.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/code-task-acceptance.js +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-runtime-git.d.ts +30 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-runtime-git.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-runtime-git.js +31 -9
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-evidence.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-evidence.js +12 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-api.d.ts +386 -1
- 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 +623 -18
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-approval-review.d.ts +13 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-approval-review.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-approval-review.js +28 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-validation.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-validation.js +17 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench.d.ts +28 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench.js +30 -5
- package/node_modules/@oscharko-dev/keiko-contracts/dist/gateway.d.ts +40 -3
- package/node_modules/@oscharko-dev/keiko-contracts/dist/gateway.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/gateway.js +14 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/governed-tool-bridge.d.ts +56 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/governed-tool-bridge.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/governed-tool-bridge.js +120 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts +8 -7
- package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/mcp-servers.d.ts +121 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/mcp-servers.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/mcp-servers.js +415 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/sensitive-path-patterns.d.ts +10 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/sensitive-path-patterns.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/sensitive-path-patterns.js +117 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/task-workspace.d.ts +6 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/task-workspace.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/task-workspace.js +21 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/version.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-contracts/dist/version.js +2 -2
- package/node_modules/@oscharko-dev/keiko-contracts/package.json +12 -4
- package/node_modules/@oscharko-dev/keiko-evaluations/dist/local-knowledge/runner.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-evaluations/dist/local-knowledge/runner.js +12 -9
- 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/indexing/embedding-batcher.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/embedding-batcher.js +4 -17
- 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-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/diversity.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/diversity.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/diversity.js +2 -2
- package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/index.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/index.js +1 -1
- 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/config.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/config.js +12 -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 +69 -4
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/index.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/index.js +1 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/model-selection.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/model-selection.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/model-selection.js +12 -2
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/prompt-admission.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/prompt-admission.js +14 -5
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/prompt-token-accounting.d.ts +10 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/prompt-token-accounting.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/prompt-token-accounting.js +14 -7
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/resilience.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/resilience.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/resilience.js +42 -64
- 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 +70 -6
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/types.d.ts +10 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/types.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/package.json +4 -4
- package/node_modules/@oscharko-dev/keiko-quality-intelligence/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/backends.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/backends.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/backends.js +49 -3
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/index.d.ts +4 -1
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/index.js +3 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/native-linked-files.d.ts +28 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/native-linked-files.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/native-linked-files.js +117 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/native-toolchain-roots.d.ts +15 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/native-toolchain-roots.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/native-toolchain-roots.js +248 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/plan.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/plan.js +16 -3
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/runtime-gateway.d.ts +11 -2
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/runtime-gateway.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/runtime-gateway.js +77 -21
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/runtime-service.d.ts +21 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/runtime-service.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/runtime-service.js +248 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/runtime.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/runtime.js +51 -23
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/seatbelt-credential-paths.d.ts +6 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/seatbelt-credential-paths.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/seatbelt-credential-paths.js +60 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/seatbelt-execution-root.d.ts +27 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/seatbelt-execution-root.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/seatbelt-execution-root.js +289 -6
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/types.d.ts +64 -2
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/types.d.ts.map +1 -1
- 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/index.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-security/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/index.js +1 -0
- package/node_modules/@oscharko-dev/keiko-security/dist/redaction-spelling.d.ts +24 -0
- package/node_modules/@oscharko-dev/keiko-security/dist/redaction-spelling.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-security/dist/redaction-spelling.js +354 -0
- 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/agent-run-governance.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/agent-run-governance.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/agent-run-governance.js +22 -5
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingHistoryRoutes.d.ts +13 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingHistoryRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingHistoryRoutes.js +133 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingHistoryTransferLog.d.ts +100 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingHistoryTransferLog.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingHistoryTransferLog.js +64 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeActivityOperations.d.ts +38 -10
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeActivityOperations.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeActivityOperations.js +13 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeCiRepairController.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeCiRepairController.js +3 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeControlPlane.d.ts +4 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeControlPlane.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeControlPlane.js +7 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeGitIpc.d.ts +14 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeGitIpc.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeGitIpc.js +14 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeHistory.d.ts +33 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeHistory.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeHistory.js +117 -11
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeInbox.d.ts +42 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeInbox.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeInbox.js +47 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeInstructionSources.d.ts +57 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeInstructionSources.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeInstructionSources.js +296 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeManager.d.ts +25 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeManager.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeManager.js +112 -124
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOperationCoordinator.d.ts +62 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOperationCoordinator.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOperationCoordinator.js +364 -26
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestrator.d.ts +68 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestrator.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestrator.js +266 -23
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestratorTypes.d.ts +25 -2
- 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/codingRuntimeRepositoryConfig.d.ts +37 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRepositoryConfig.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRepositoryConfig.js +178 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRepositoryInstructions.d.ts +49 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRepositoryInstructions.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRepositoryInstructions.js +267 -13
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRepositoryItemSanitizer.d.ts +62 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRepositoryItemSanitizer.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRepositoryItemSanitizer.js +572 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRepositoryItems.d.ts +64 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRepositoryItems.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRepositoryItems.js +560 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRevert.d.ts +39 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRevert.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRevert.js +47 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRoutes.d.ts +55 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRoutes.js +263 -54
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeUndoWindow.d.ts +60 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeUndoWindow.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeUndoWindow.js +188 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingSafeActivityProjection.d.ts +8 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingSafeActivityProjection.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingSessionContinuity.d.ts +116 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingSessionContinuity.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingSessionContinuity.js +237 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingSidecarEventParser.d.ts +6 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingSidecarEventParser.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingSidecarEventParser.js +24 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingTaskExport.d.ts +52 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingTaskExport.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingTaskExport.js +347 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingTaskImport.d.ts +64 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingTaskImport.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingTaskImport.js +332 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolApprovalBridge.d.ts +9 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolApprovalBridge.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolApprovalBridge.js +5 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolAuthorityPort.d.ts +3 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolAuthorityPort.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolAuthorityPort.js +74 -26
- 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 +8 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacadePorts.d.ts +120 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacadePorts.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolIpc.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolIpc.js +24 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolNativeEffect.d.ts +54 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolNativeEffect.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolNativeEffect.js +217 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/darwinProcessTable.d.ts +35 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/darwinProcessTable.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/darwinProcessTable.js +108 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/darwinRuntimeDescendants.d.ts +183 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/darwinRuntimeDescendants.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/darwinRuntimeDescendants.js +220 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/darwinSandboxMembership.d.ts +42 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/darwinSandboxMembership.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/darwinSandboxMembership.js +210 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/devLanePortableCodingRuntime.d.ts +15 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/devLanePortableCodingRuntime.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/devLanePortableCodingRuntime.js +87 -19
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/devLaneRuntimeProcessBackend.d.ts +12 -1
- 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 +164 -42
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/governedSyncHeads.d.ts +28 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/governedSyncHeads.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/governedSyncHeads.js +17 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/launchFailure.d.ts +21 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/launchFailure.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/launchFailure.js +36 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeWebSearch.d.ts +221 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeWebSearch.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeWebSearch.js +345 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/npmLaneRuntimeApprovals.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/npmLaneRuntimeApprovals.js +28 -14
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeAgents.d.ts +22 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeAgents.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeAgents.js +28 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeCommands.d.ts +124 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeCommands.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeCommands.js +398 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeConfigDocuments.d.ts +33 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeConfigDocuments.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeConfigDocuments.js +91 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeHttpClient.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeHttpClient.js +6 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeInbox.d.ts +83 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeInbox.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeInbox.js +258 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeLaunchProfile.d.ts +110 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeLaunchProfile.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeLaunchProfile.js +286 -35
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeAgentModels.d.ts +36 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeAgentModels.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeAgentModels.js +61 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeContext.d.ts +21 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeContext.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeContext.js +33 -7
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeDeliveryTools.d.ts +28 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeDeliveryTools.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeDeliveryTools.js +41 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeEgress.d.ts +9 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeEgress.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeEgress.js +8 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeExternalRoots.d.ts +38 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeExternalRoots.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeExternalRoots.js +119 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeFormatter.d.ts +67 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeFormatter.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeFormatter.js +181 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeGitMetadata.d.ts +25 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeGitMetadata.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeGitMetadata.js +66 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeLinkedFiles.d.ts +12 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeLinkedFiles.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeLinkedFiles.js +81 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeMcp.d.ts +76 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeMcp.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeMcp.js +136 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeMcpAuthorization.d.ts +51 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeMcpAuthorization.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeMcpAuthorization.js +263 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeMcpCredentials.d.ts +38 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeMcpCredentials.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeMcpCredentials.js +171 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeMcpRelay.d.ts +29 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeMcpRelay.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeMcpRelay.js +47 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeMessageId.d.ts +13 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeMessageId.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeMessageId.js +59 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativePluginReadiness.d.ts +42 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativePluginReadiness.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativePluginReadiness.js +90 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativePolicy.d.ts +321 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativePolicy.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativePolicy.js +1296 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativePolicyPlugin.d.ts +43 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativePolicyPlugin.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativePolicyPlugin.js +195 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeQuestions.d.ts +50 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeQuestions.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeQuestions.js +265 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeSessionTree.d.ts +117 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeSessionTree.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeSessionTree.js +281 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeTools.d.ts +81 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeTools.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeTools.js +149 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeWorktree.d.ts +58 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeWorktree.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeWorktree.js +71 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeOperatorPluginPackage.d.ts +38 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeOperatorPluginPackage.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeOperatorPluginPackage.js +87 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeOperatorPlugins.d.ts +105 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeOperatorPlugins.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeOperatorPlugins.js +386 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodePersistenceContract.d.ts +17 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodePersistenceContract.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodePersistenceContract.js +142 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodePromptInputs.d.ts +236 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodePromptInputs.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodePromptInputs.js +719 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeProtocol.d.ts +14 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeProtocol.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeProtocol.js +52 -12
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeProtocolSurface.d.ts +8 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeProtocolSurface.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeProtocolSurface.js +36 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeReconciler.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeReconciler.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeReconciler.js +19 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRemoteSkills.d.ts +79 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRemoteSkills.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRemoteSkills.js +361 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRevert.d.ts +95 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRevert.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRevert.js +458 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRipgrepLaunch.d.ts +84 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRipgrepLaunch.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRipgrepLaunch.js +236 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeAdapter.d.ts +32 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeAdapter.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeAdapter.js +248 -78
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeComposition.d.ts +174 -34
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeComposition.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeComposition.js +1498 -430
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeVersions.d.ts +28 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeVersions.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeVersions.js +31 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeSafeActivity.d.ts +24 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeSafeActivity.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeSafeActivity.js +28 -7
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeServiceInventory.d.ts +197 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeServiceInventory.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeServiceInventory.js +793 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeSessionContinuation.d.ts +96 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeSessionContinuation.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeSessionContinuation.js +346 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeSessionRetention.d.ts +141 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeSessionRetention.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeSessionRetention.js +580 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeToolSchemas.d.ts +438 -10
- 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 +83 -10
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2ApprovalRequests.d.ts +11 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2ApprovalRequests.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2ApprovalRequests.js +18 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2History.d.ts +22 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2History.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2History.js +320 -145
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2HttpClient.d.ts +304 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2HttpClient.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2HttpClient.js +578 -25
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2LiveText.d.ts +2 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2LiveText.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2LiveText.js +5 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2Questions.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2Questions.js +12 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimeHost.d.ts +110 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimeHost.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimePorts.d.ts +68 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimePorts.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimePorts.js +353 -13
- 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 +71 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionManagedWorktreeTools.d.ts +1 -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 +124 -103
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeActivation.d.ts +14 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeActivation.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeActivation.js +106 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.d.ts +66 -3
- 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.functional/nativeToolTranscript.d.ts +7 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.functional/nativeToolTranscript.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.functional/nativeToolTranscript.js +43 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.functional/repositorySearchProof.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.functional/repositorySearchProof.js +44 -48
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.functional/skillDiscoveryProof.d.ts +7 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.functional/skillDiscoveryProof.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.functional/skillDiscoveryProof.js +37 -43
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.js +365 -37
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionReadOnlyChildRunner.js +7 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionRuntimeWorkspaceAuthority.d.ts +3 -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/productionRuntimeWorkspaceAuthority.js +11 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionVerifiedCommitRuntime.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionVerifiedCommitRuntime.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionVerifiedCommitRuntime.js +4 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/ripgrepRuntime.d.ts +198 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/ripgrepRuntime.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/ripgrepRuntime.js +357 -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 +17 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextRead.d.ts +7 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextRead.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextRead.js +16 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadArtifact.d.ts +9 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadArtifact.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadArtifact.js +14 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadPortable.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadPortable.js +2 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/supervisedCodingPolicy.js +2 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-data-url.d.ts +27 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-data-url.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-data-url.js +44 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-document-parts.d.ts +43 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-document-parts.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-document-parts.js +106 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-gateway.d.ts +7 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-gateway.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-gateway.js +449 -70
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-image-parts.d.ts +48 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-image-parts.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-image-parts.js +92 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-mcp-relay.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-mcp-relay.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-mcp-relay.js +19 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/deps.d.ts +39 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/deps.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/deps.js +142 -28
- 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 +6 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationExecution.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationExecution.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationExecution.js +3 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationRunner.d.ts +1 -0
- 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 +3 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/embedding-provider-identity.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/embedding-provider-identity.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/embedding-provider-identity.js +14 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-deployment-identity.d.ts +33 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-deployment-identity.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-deployment-identity.js +33 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-readiness.d.ts +9 -0
- 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 +16 -0
- 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 +114 -26
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-startup-activity.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-startup-activity.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-startup-activity.js +10 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/execution.d.ts +8 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/execution.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/execution.js +10 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/prDescriptionPreparation.js +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/proposalId.d.ts +4 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/proposalId.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/proposalId.js +4 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/runBoundAuthority.d.ts +19 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/runBoundAuthority.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/runBoundAuthority.js +24 -13
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/runtimeGitRead.d.ts +9 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/runtimeGitRead.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/runtimeGitRead.js +21 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/runtimeGitService.d.ts +15 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/runtimeGitService.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/runtimeGitService.js +216 -17
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/syncEvidence.d.ts +17 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/syncEvidence.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/syncEvidence.js +24 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/syncRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/syncRoutes.js +9 -28
- package/node_modules/@oscharko-dev/keiko-server/dist/gitRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitRoutes.js +11 -9
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-document-evidence.js +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-handlers.d.ts +1 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-handlers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-handlers.js +56 -112
- package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-remediation.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-remediation.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-remediation.js +2 -12
- package/node_modules/@oscharko-dev/keiko-server/dist/markdown-skill-admission.d.ts +24 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/markdown-skill-admission.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/markdown-skill-admission.js +68 -7
- package/node_modules/@oscharko-dev/keiko-server/dist/markdown-skill-log.d.ts +17 -0
- 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 +60 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/markdown-skill-prompt.d.ts +7 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/markdown-skill-prompt.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/markdown-skill-prompt.js +30 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpCredentialRelay.d.ts +104 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpCredentialRelay.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpCredentialRelay.js +442 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpOAuthAuthorizationUrl.d.ts +16 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpOAuthAuthorizationUrl.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpOAuthAuthorizationUrl.js +56 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpOAuthCredentialStore.d.ts +27 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpOAuthCredentialStore.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpOAuthCredentialStore.js +70 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpOAuthIssuer.d.ts +54 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpOAuthIssuer.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpOAuthIssuer.js +191 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpServerRegistry.d.ts +29 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpServerRegistry.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpServerRegistry.js +127 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/memory-embedding-identity.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/memory-embedding-identity.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/memory-embedding-identity.js +18 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/memory-embedding.d.ts +1 -2
- 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 +17 -83
- package/node_modules/@oscharko-dev/keiko-server/dist/memory-retrieval-signals.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/memory-retrieval-signals.js +1 -18
- 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 +4 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/operatorRegistryJson.d.ts +10 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/operatorRegistryJson.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/operatorRegistryJson.js +15 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/ownerPrivateStateFile.d.ts +16 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/ownerPrivateStateFile.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/ownerPrivateStateFile.js +55 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/read-handlers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/read-handlers.js +8 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/routes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/routes.js +17 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/run-engine.d.ts +3 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/run-engine.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/run-engine.js +88 -12
- package/node_modules/@oscharko-dev/keiko-server/dist/run-handlers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/run-handlers.js +93 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/run-request.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/run-request.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/run-request.js +36 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/runs.d.ts +7 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/runs.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/codingHistory.d.ts +76 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/store/codingHistory.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/codingHistory.js +145 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/routes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/routes.js +14 -5
- 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 +12 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-sidecar-verification.d.ts +0 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-sidecar-verification.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-sidecar-verification.js +15 -22
- package/node_modules/@oscharko-dev/keiko-server/dist/voice-live-dictation.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/voice-live-dictation.js +6 -54
- package/node_modules/@oscharko-dev/keiko-server/dist/voice-realtime.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/voice-realtime.js +8 -75
- package/node_modules/@oscharko-dev/keiko-server/dist/voice-transport.d.ts +17 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/voice-transport.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/voice-transport.js +54 -0
- package/node_modules/@oscharko-dev/keiko-server/package.json +23 -23
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/dialect.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/dialect.js +1 -1
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/index.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/index.js +1 -1
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/json.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/json.js +4 -1
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/opencode.d.ts +8 -1
- 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 +38 -9
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/profile.js +1 -1
- package/node_modules/@oscharko-dev/keiko-tool-catalog/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-tools/dist/git-mutation-adapter.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-tools/dist/git-mutation-adapter.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/git-mutation-node.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/git-mutation-node.js +29 -9
- package/node_modules/@oscharko-dev/keiko-tools/dist/git-mutation-orchestrator.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-tools/dist/git-mutation-orchestrator.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/git-mutation-orchestrator.js +4 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/git-stage-node.d.ts +8 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/git-stage-node.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/git-stage-node.js +22 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/package.json +7 -7
- package/node_modules/@oscharko-dev/keiko-verification/dist/dependencies.d.ts +12 -1
- package/node_modules/@oscharko-dev/keiko-verification/dist/dependencies.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-verification/dist/dependencies.js +12 -1
- package/node_modules/@oscharko-dev/keiko-verification/dist/orchestrator.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-verification/dist/orchestrator.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-verification/dist/orchestrator.js +1 -0
- package/node_modules/@oscharko-dev/keiko-verification/package.json +5 -5
- package/node_modules/@oscharko-dev/keiko-workflows/dist/bug-investigation/model-loop.d.ts +7 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/bug-investigation/model-loop.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/bug-investigation/model-loop.js +17 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/bug-investigation/types.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/bug-investigation/types.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/bug-investigation/workflow.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/bug-investigation/workflow.js +6 -2
- package/node_modules/@oscharko-dev/keiko-workflows/dist/unit-tests/model-loop.d.ts +7 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/unit-tests/model-loop.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/unit-tests/model-loop.js +22 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/unit-tests/types.d.ts +6 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/unit-tests/types.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/unit-tests/workflow.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/unit-tests/workflow.js +6 -2
- package/node_modules/@oscharko-dev/keiko-workflows/package.json +10 -10
- package/node_modules/@oscharko-dev/keiko-workspace/dist/fs.d.ts +6 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/fs.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/fs.js +6 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/ignore.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/ignore.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/ignore.js +30 -94
- package/node_modules/@oscharko-dev/keiko-workspace/dist/index.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/index.js +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/sourceRedaction.d.ts +7 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/sourceRedaction.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/sourceRedaction.js +7 -1
- 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 +7 -3
- package/package.json +40 -37
- package/release-impact.catalog.json +75 -0
- package/vendor/oscharko-dev-keiko-activity-log-1.3.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-cli-1.3.0.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-connectors-1.2.7.tgz → oscharko-dev-keiko-connectors-1.3.0.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-contracts-1.3.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-evaluations-1.3.0.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-evidence-1.2.7.tgz → oscharko-dev-keiko-evidence-1.3.0.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-git-1.2.7.tgz → oscharko-dev-keiko-git-1.3.0.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-harness-1.2.7.tgz → oscharko-dev-keiko-harness-1.3.0.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-local-knowledge-1.3.0.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-memory-capture-1.2.7.tgz → oscharko-dev-keiko-memory-capture-1.3.0.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-memory-consolidation-1.3.0.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-memory-governance-1.2.7.tgz → oscharko-dev-keiko-memory-governance-1.3.0.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-memory-retrieval-1.3.0.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-memory-vault-1.2.7.tgz → oscharko-dev-keiko-memory-vault-1.3.0.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-model-gateway-1.3.0.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-quality-intelligence-1.2.7.tgz → oscharko-dev-keiko-quality-intelligence-1.3.0.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-sandbox-1.3.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-sdk-1.3.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-security-1.3.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-server-1.3.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-tool-catalog-1.3.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-tools-1.3.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-verification-1.3.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-workflows-1.3.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-workspace-1.3.0.tgz +0 -0
- package/dist/ui/static/_next/static/chunks/0-u520yf_wb_j.js +0 -1
- package/dist/ui/static/_next/static/chunks/04n_hxe12wdv3.js +0 -1
- package/dist/ui/static/_next/static/chunks/0891-mvb901op.js +0 -1
- package/dist/ui/static/_next/static/chunks/0alcm0tnx-n8-.js +0 -1
- package/dist/ui/static/_next/static/chunks/0e6yt02qckkgg.js +0 -1
- package/dist/ui/static/_next/static/chunks/0qeb8v4j-hvxn.js +0 -1
- package/dist/ui/static/_next/static/chunks/0squn2lq5smnf.js +0 -1
- package/dist/ui/static/_next/static/chunks/11186fkh5coce.js +0 -2
- package/dist/ui/static/_next/static/chunks/1daa_1zod-ndb.js +0 -1
- package/dist/ui/static/_next/static/chunks/1eg67od6go7bm.js +0 -1
- package/dist/ui/static/_next/static/chunks/1enud1-bc9hju.js +0 -1
- package/dist/ui/static/_next/static/chunks/1fwlq_j3who0_.js +0 -1
- package/dist/ui/static/_next/static/chunks/1heusut-vh7z0.js +0 -1
- package/dist/ui/static/_next/static/chunks/1te8076xiv1_f.css +0 -3
- package/dist/ui/static/_next/static/chunks/1v92406tlxfiq.js +0 -1
- package/dist/ui/static/_next/static/chunks/1wj7exxi550gi.css +0 -1
- package/dist/ui/static/_next/static/chunks/1wsoxouji7eb9.js +0 -1
- package/dist/ui/static/_next/static/chunks/22or338lout8-.js +0 -1
- package/dist/ui/static/_next/static/chunks/22pvivewswjat.js +0 -1
- package/dist/ui/static/_next/static/chunks/24418_x2or4rl.js +0 -1
- package/dist/ui/static/_next/static/chunks/24_0lv80gez9c.js +0 -1
- package/dist/ui/static/_next/static/chunks/2az51zfcfe4w7.js +0 -1
- package/dist/ui/static/_next/static/chunks/2ckbk_cxw04nr.js +0 -1
- package/dist/ui/static/_next/static/chunks/2n8v0d0jxc0vm.js +0 -1
- package/dist/ui/static/_next/static/chunks/2nxhnrgae6nij.js +0 -1
- package/dist/ui/static/_next/static/chunks/2prq37rl7-s0l.js +0 -1
- package/dist/ui/static/_next/static/chunks/3-xsabbhsq0xh.js +0 -1
- package/dist/ui/static/_next/static/chunks/37h-dtpel_wcw.js +0 -1
- package/dist/ui/static/_next/static/chunks/37kujq-6rc3ey.js +0 -1
- package/dist/ui/static/_next/static/chunks/3cr7wi4udns8d.js +0 -1
- package/dist/ui/static/_next/static/chunks/3e4qdou22wwph.js +0 -1
- package/dist/ui/static/_next/static/chunks/3i3kblvx52ywv.js +0 -1
- package/dist/ui/static/_next/static/chunks/3n0xbx7qq5429.js +0 -1
- package/dist/ui/static/_next/static/chunks/3nydk_onn2xx2.css +0 -1
- package/dist/ui/static/_next/static/chunks/3vqr94foc1i2t.js +0 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/opencode-service-host.d.ts +0 -42
- package/node_modules/@oscharko-dev/keiko-contracts/dist/opencode-service-host.d.ts.map +0 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/opencode-service-host.js +0 -151
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeServiceHostArtifact.d.ts +0 -79
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeServiceHostArtifact.d.ts.map +0 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeServiceHostArtifact.js +0 -176
- package/vendor/oscharko-dev-keiko-activity-log-1.2.7.tgz +0 -0
- package/vendor/oscharko-dev-keiko-cli-1.2.7.tgz +0 -0
- package/vendor/oscharko-dev-keiko-contracts-1.2.7.tgz +0 -0
- package/vendor/oscharko-dev-keiko-evaluations-1.2.7.tgz +0 -0
- package/vendor/oscharko-dev-keiko-local-knowledge-1.2.7.tgz +0 -0
- package/vendor/oscharko-dev-keiko-memory-consolidation-1.2.7.tgz +0 -0
- package/vendor/oscharko-dev-keiko-memory-retrieval-1.2.7.tgz +0 -0
- package/vendor/oscharko-dev-keiko-model-gateway-1.2.7.tgz +0 -0
- package/vendor/oscharko-dev-keiko-sandbox-1.2.7.tgz +0 -0
- package/vendor/oscharko-dev-keiko-sdk-1.2.7.tgz +0 -0
- package/vendor/oscharko-dev-keiko-security-1.2.7.tgz +0 -0
- package/vendor/oscharko-dev-keiko-server-1.2.7.tgz +0 -0
- package/vendor/oscharko-dev-keiko-tool-catalog-1.2.7.tgz +0 -0
- package/vendor/oscharko-dev-keiko-tools-1.2.7.tgz +0 -0
- package/vendor/oscharko-dev-keiko-verification-1.2.7.tgz +0 -0
- package/vendor/oscharko-dev-keiko-workflows-1.2.7.tgz +0 -0
- package/vendor/oscharko-dev-keiko-workspace-1.2.7.tgz +0 -0
- /package/dist/ui/static/_next/static/{H3xxDPi4xvbxoz-xJSbax → 6pkGWU1F8PM1C3Cb4rVAo}/_buildManifest.js +0 -0
- /package/dist/ui/static/_next/static/{H3xxDPi4xvbxoz-xJSbax → 6pkGWU1F8PM1C3Cb4rVAo}/_clientMiddlewareManifest.js +0 -0
- /package/dist/ui/static/_next/static/{H3xxDPi4xvbxoz-xJSbax → 6pkGWU1F8PM1C3Cb4rVAo}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,1296 @@
|
|
|
1
|
+
import { createHash, randomBytes } from "node:crypto";
|
|
2
|
+
import { lstatSync, realpathSync, statSync } from "node:fs";
|
|
3
|
+
import { dirname, isAbsolute, join, relative, resolve, sep } from "node:path";
|
|
4
|
+
import { codingWorkbenchPolicyEffectFor, isCodingWorkbenchMode, } from "@oscharko-dev/keiko-contracts/runtime/coding-workbench";
|
|
5
|
+
import { GOVERNED_TOOL_HUMAN_DECISION_WAIT_MS } from "@oscharko-dev/keiko-contracts/runtime/tools";
|
|
6
|
+
import { activityLogEvent, defineActivityLogOperation, } from "@oscharko-dev/keiko-contracts/runtime/observability";
|
|
7
|
+
import { isDenied } from "@oscharko-dev/keiko-workspace";
|
|
8
|
+
import { OPENCODE_NATIVE_DELIVERY_REFUSAL_MESSAGE } from "./opencodeNativeDeliveryTools.js";
|
|
9
|
+
import { OPENCODE_CODE_MODE_SESSION_MOVE, OPENCODE_CODE_MODE_WORKTREE_CREATE, OPENCODE_NATIVE_POLICY_ACTION, OPENCODE_NATIVE_POLICY_MAX_RESOURCES, OPENCODE_NATIVE_POLICY_MAX_RESOURCE_CHARS, } from "./opencodeNativePolicyPlugin.js";
|
|
10
|
+
import { OPENCODE_NATIVE_PERMISSION_ACTIONS } from "./opencodeNativeTools.js";
|
|
11
|
+
import { projectOpenCodePermissionRequestId } from "./opencodeProtocol.js";
|
|
12
|
+
const SEARCH_ACTIONS = new Set(["glob", "grep"]);
|
|
13
|
+
/** A new managed task workspace's name: the task id the managed owner derives its branch from. */
|
|
14
|
+
const WORKTREE_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$/u;
|
|
15
|
+
const READ_ACTIONS = new Set([
|
|
16
|
+
"read",
|
|
17
|
+
"list",
|
|
18
|
+
"skill",
|
|
19
|
+
"subagent",
|
|
20
|
+
"question",
|
|
21
|
+
"todowrite",
|
|
22
|
+
"doom_loop",
|
|
23
|
+
]);
|
|
24
|
+
const EDIT_ACTIONS = new Set(["edit", "write", "patch"]);
|
|
25
|
+
const EGRESS_ACTIONS = new Set(["webfetch"]);
|
|
26
|
+
/**
|
|
27
|
+
* The original `websearch` (T15) calls the selected provider of the runtime's websearch service,
|
|
28
|
+
* which Keiko's generated plugin sets to Keiko's own (nativeWebSearch.ts): the search runs in the
|
|
29
|
+
* server, through the integration the operator admitted. With one admitted it is an internet action
|
|
30
|
+
* like `webfetch` (Full access). Without one it is refused at once, in every mode, with the
|
|
31
|
+
* alternative the model has: `webfetch` of a known URL (Full access).
|
|
32
|
+
*/
|
|
33
|
+
const WEBSEARCH_UNCONFIGURED = Object.freeze({
|
|
34
|
+
reason: "unsupported-action",
|
|
35
|
+
message: "Keiko refused this action: web search needs a search integration, and none is configured for this run. Fetch a known URL with webfetch instead (Full access only).",
|
|
36
|
+
});
|
|
37
|
+
const KNOWN_ACTIONS = new Set(OPENCODE_NATIVE_PERMISSION_ACTIONS);
|
|
38
|
+
/** The closed log vocabulary of evaluated actions; anything unpinned is logged as `other`. */
|
|
39
|
+
const PERMISSION_LOG_VALUES = [
|
|
40
|
+
"read",
|
|
41
|
+
"glob",
|
|
42
|
+
"grep",
|
|
43
|
+
"list",
|
|
44
|
+
"edit",
|
|
45
|
+
"shell",
|
|
46
|
+
"webfetch",
|
|
47
|
+
"websearch",
|
|
48
|
+
"skill",
|
|
49
|
+
"subagent",
|
|
50
|
+
"question",
|
|
51
|
+
"todowrite",
|
|
52
|
+
"execute",
|
|
53
|
+
"external_directory",
|
|
54
|
+
"doom_loop",
|
|
55
|
+
"opencode_session_move",
|
|
56
|
+
"opencode_worktree_create",
|
|
57
|
+
];
|
|
58
|
+
// An MCP tool is logged by its class alone: its server and tool names are the operator's words.
|
|
59
|
+
function loggedPermission(request, decision) {
|
|
60
|
+
return decision.classification?.label === "native-mcp"
|
|
61
|
+
? "mcp"
|
|
62
|
+
: permissionLogValue(request.permission);
|
|
63
|
+
}
|
|
64
|
+
function permissionLogValue(permission) {
|
|
65
|
+
const known = PERMISSION_LOG_VALUES.find((value) => value === permission);
|
|
66
|
+
return known ?? "other";
|
|
67
|
+
}
|
|
68
|
+
const SESSION_ID = /^ses_[A-Za-z0-9_-]{1,251}$/u;
|
|
69
|
+
const RUN_ID = /^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/u;
|
|
70
|
+
const AGENT_ID = /^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$/u;
|
|
71
|
+
const CALL_ID = /^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/u;
|
|
72
|
+
/**
|
|
73
|
+
* Git operations Keiko owns as product actions (signed commits, bounded refs, human-controlled
|
|
74
|
+
* merge, ADR-0135): a native shell may read the repository but never deliver through it.
|
|
75
|
+
*/
|
|
76
|
+
const RESERVED_GIT_SUBCOMMANDS = new Set([
|
|
77
|
+
"commit",
|
|
78
|
+
"push",
|
|
79
|
+
"pull",
|
|
80
|
+
"fetch",
|
|
81
|
+
"merge",
|
|
82
|
+
"rebase",
|
|
83
|
+
"reset",
|
|
84
|
+
"checkout",
|
|
85
|
+
"switch",
|
|
86
|
+
"branch",
|
|
87
|
+
"tag",
|
|
88
|
+
"remote",
|
|
89
|
+
"stash",
|
|
90
|
+
"cherry-pick",
|
|
91
|
+
"revert",
|
|
92
|
+
"am",
|
|
93
|
+
"apply",
|
|
94
|
+
"clean",
|
|
95
|
+
"worktree",
|
|
96
|
+
"submodule",
|
|
97
|
+
"gc",
|
|
98
|
+
"filter-branch",
|
|
99
|
+
]);
|
|
100
|
+
/**
|
|
101
|
+
* Commands a Supervised workspace runs without a decision (ADR-0138: "vetted commands and
|
|
102
|
+
* verification"): the project's own package scripts, test runners, type checkers, linters,
|
|
103
|
+
* formatters and build tools, and read-only Git and file inspection. Anything else is a
|
|
104
|
+
* high-risk command that asks. Token based, so classification stays linear in the command.
|
|
105
|
+
*/
|
|
106
|
+
const VETTED_PACKAGE_MANAGERS = new Set(["npm", "pnpm", "yarn", "bun"]);
|
|
107
|
+
const VETTED_PACKAGE_SUBCOMMANDS = new Set([
|
|
108
|
+
"run",
|
|
109
|
+
"test",
|
|
110
|
+
"t",
|
|
111
|
+
"run-script",
|
|
112
|
+
"ci",
|
|
113
|
+
"install",
|
|
114
|
+
"i",
|
|
115
|
+
"exec",
|
|
116
|
+
"x",
|
|
117
|
+
]);
|
|
118
|
+
const VETTED_NPX_TOOLS = new Set([
|
|
119
|
+
"vitest",
|
|
120
|
+
"jest",
|
|
121
|
+
"mocha",
|
|
122
|
+
"tsc",
|
|
123
|
+
"eslint",
|
|
124
|
+
"prettier",
|
|
125
|
+
"playwright",
|
|
126
|
+
"tsx",
|
|
127
|
+
"ts-node",
|
|
128
|
+
"next",
|
|
129
|
+
"vite",
|
|
130
|
+
"turbo",
|
|
131
|
+
"nx",
|
|
132
|
+
]);
|
|
133
|
+
const VETTED_BUILD_TOOLS = {
|
|
134
|
+
mvn: new Set(["test", "verify", "compile", "package", "install", "clean"]),
|
|
135
|
+
mvnw: new Set(["test", "verify", "compile", "package", "install", "clean"]),
|
|
136
|
+
"./mvnw": new Set(["test", "verify", "compile", "package", "install", "clean"]),
|
|
137
|
+
gradle: new Set(["test", "check", "build", "compileJava", "assemble", "clean"]),
|
|
138
|
+
gradlew: new Set(["test", "check", "build", "compileJava", "assemble", "clean"]),
|
|
139
|
+
"./gradlew": new Set(["test", "check", "build", "compileJava", "assemble", "clean"]),
|
|
140
|
+
cargo: new Set(["test", "build", "check", "clippy", "fmt"]),
|
|
141
|
+
go: new Set(["test", "build", "vet", "fmt"]),
|
|
142
|
+
make: new Set(["test", "check", "build", "lint"]),
|
|
143
|
+
git: new Set([
|
|
144
|
+
"status",
|
|
145
|
+
"diff",
|
|
146
|
+
"log",
|
|
147
|
+
"show",
|
|
148
|
+
"blame",
|
|
149
|
+
"ls-files",
|
|
150
|
+
"rev-parse",
|
|
151
|
+
"describe",
|
|
152
|
+
"grep",
|
|
153
|
+
"shortlog",
|
|
154
|
+
]),
|
|
155
|
+
};
|
|
156
|
+
const VETTED_INSPECTION_TOOLS = new Set([
|
|
157
|
+
"pytest",
|
|
158
|
+
"ls",
|
|
159
|
+
"cat",
|
|
160
|
+
"head",
|
|
161
|
+
"tail",
|
|
162
|
+
"wc",
|
|
163
|
+
"find",
|
|
164
|
+
"grep",
|
|
165
|
+
"rg",
|
|
166
|
+
"pwd",
|
|
167
|
+
"echo",
|
|
168
|
+
"tree",
|
|
169
|
+
"which",
|
|
170
|
+
"env",
|
|
171
|
+
"printenv",
|
|
172
|
+
"date",
|
|
173
|
+
"sort",
|
|
174
|
+
"uniq",
|
|
175
|
+
"diff",
|
|
176
|
+
"stat",
|
|
177
|
+
"du",
|
|
178
|
+
"file",
|
|
179
|
+
]);
|
|
180
|
+
const RESERVED_GH_SUBCOMMANDS = new Set(["pr", "repo", "release", "api"]);
|
|
181
|
+
/** Splits a command line at its shell list operators; no regex backtracking is involved. */
|
|
182
|
+
function commandSegments(command) {
|
|
183
|
+
return command
|
|
184
|
+
.split(/&&|\|\||[;|]/u)
|
|
185
|
+
.map((segment) => segment.trim())
|
|
186
|
+
.filter((segment) => segment.length > 0);
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* Whitespace tokens of one segment, reduced to the effective invocation: leading `NAME=value`
|
|
190
|
+
* assignments and transparent wrappers (`env`, `command`, `exec`, `nice`, `nohup`, `time`) are
|
|
191
|
+
* dropped with their own options, and a program given by path is read by its basename, so
|
|
192
|
+
* `env git push`, `/usr/bin/git push` and `exec git push` all read as `git push`. Quoting is not
|
|
193
|
+
* interpreted, so a token is at most a hint (#3897 review).
|
|
194
|
+
*/
|
|
195
|
+
function commandTokens(segment) {
|
|
196
|
+
let tokens = segment.split(/\s+/u).filter((token) => token.length > 0);
|
|
197
|
+
for (let guard = 0; guard < 8; guard += 1) {
|
|
198
|
+
const stripped = stripInvocationPrefix(tokens);
|
|
199
|
+
if (stripped === tokens)
|
|
200
|
+
break;
|
|
201
|
+
tokens = stripped;
|
|
202
|
+
}
|
|
203
|
+
const [program, ...rest] = tokens;
|
|
204
|
+
return program === undefined ? [] : [program.slice(program.lastIndexOf("/") + 1), ...rest];
|
|
205
|
+
}
|
|
206
|
+
const WRAPPER_PROGRAMS = new Set(["env", "command", "exec", "nice", "nohup", "time"]);
|
|
207
|
+
/** Wrapper options that take a separate argument (`env -u NAME`, `nice -n 10`). */
|
|
208
|
+
const WRAPPER_OPTIONS_WITH_VALUE = new Set([
|
|
209
|
+
"-u",
|
|
210
|
+
"--unset",
|
|
211
|
+
"-n",
|
|
212
|
+
"--adjustment",
|
|
213
|
+
"-C",
|
|
214
|
+
"--chdir",
|
|
215
|
+
]);
|
|
216
|
+
function stripInvocationPrefix(tokens) {
|
|
217
|
+
const [first] = tokens;
|
|
218
|
+
if (first === undefined)
|
|
219
|
+
return tokens;
|
|
220
|
+
if (/^[A-Za-z_]\w*=/u.test(first))
|
|
221
|
+
return tokens.slice(1);
|
|
222
|
+
const program = first.slice(first.lastIndexOf("/") + 1);
|
|
223
|
+
if (!WRAPPER_PROGRAMS.has(program))
|
|
224
|
+
return tokens;
|
|
225
|
+
let index = 1;
|
|
226
|
+
while (index < tokens.length && tokens[index]?.startsWith("-") === true) {
|
|
227
|
+
const option = tokens[index] ?? "";
|
|
228
|
+
index += WRAPPER_OPTIONS_WITH_VALUE.has(option) ? 2 : 1;
|
|
229
|
+
if (option === "--")
|
|
230
|
+
break;
|
|
231
|
+
}
|
|
232
|
+
return tokens.slice(index);
|
|
233
|
+
}
|
|
234
|
+
/** Git global options that consume the next token (`git -C <path> push`, `git -c k=v push`). */
|
|
235
|
+
const GIT_OPTIONS_WITH_VALUE = new Set([
|
|
236
|
+
"-C",
|
|
237
|
+
"-c",
|
|
238
|
+
"--git-dir",
|
|
239
|
+
"--work-tree",
|
|
240
|
+
"--namespace",
|
|
241
|
+
"--exec-path",
|
|
242
|
+
"--super-prefix",
|
|
243
|
+
"--config-env",
|
|
244
|
+
]);
|
|
245
|
+
/** The first non-option token after `program`, as `git <subcommand>` would read it. */
|
|
246
|
+
function subcommandOf(tokens) {
|
|
247
|
+
let index = 1;
|
|
248
|
+
while (index < tokens.length) {
|
|
249
|
+
const token = tokens[index] ?? "";
|
|
250
|
+
if (!token.startsWith("-"))
|
|
251
|
+
return token;
|
|
252
|
+
index += tokens[0] === "git" && GIT_OPTIONS_WITH_VALUE.has(token) ? 2 : 1;
|
|
253
|
+
}
|
|
254
|
+
return undefined;
|
|
255
|
+
}
|
|
256
|
+
function isVettedSegment(segment) {
|
|
257
|
+
const tokens = commandTokens(segment);
|
|
258
|
+
const [program] = tokens;
|
|
259
|
+
if (program === undefined)
|
|
260
|
+
return false;
|
|
261
|
+
const subcommand = subcommandOf(tokens);
|
|
262
|
+
const vettedSubcommands = vettedSubcommandsOf(program);
|
|
263
|
+
if (vettedSubcommands !== undefined)
|
|
264
|
+
return subcommand !== undefined && vettedSubcommands.has(subcommand);
|
|
265
|
+
if (program === "node")
|
|
266
|
+
return isVettedNodeInvocation(subcommand);
|
|
267
|
+
if (program === "python" || program === "python3")
|
|
268
|
+
return tokens[1] === "-m" && (tokens[2] === "pytest" || tokens[2] === "unittest");
|
|
269
|
+
return VETTED_INSPECTION_TOOLS.has(program);
|
|
270
|
+
}
|
|
271
|
+
function vettedSubcommandsOf(program) {
|
|
272
|
+
if (VETTED_PACKAGE_MANAGERS.has(program))
|
|
273
|
+
return VETTED_PACKAGE_SUBCOMMANDS;
|
|
274
|
+
if (program === "npx")
|
|
275
|
+
return VETTED_NPX_TOOLS;
|
|
276
|
+
// Own entries only: `constructor` or `__proto__` as a program must not reach the prototype.
|
|
277
|
+
return Object.hasOwn(VETTED_BUILD_TOOLS, program) ? VETTED_BUILD_TOOLS[program] : undefined;
|
|
278
|
+
}
|
|
279
|
+
function isVettedNodeInvocation(subcommand) {
|
|
280
|
+
return subcommand === "--test" || /\.(?:m?js|c?js|ts)$/u.test(subcommand ?? "");
|
|
281
|
+
}
|
|
282
|
+
/**
|
|
283
|
+
* The project check a native shell line runs (#3897 review, #3901). The runtime reports one exit
|
|
284
|
+
* status for the whole line, so the line counts as verification only when that status is the
|
|
285
|
+
* check's own: simple commands joined by `&&` alone, each a check or a `cd`, at least one a check.
|
|
286
|
+
* An `&&` list exits zero only when every command in it did. `;`, `||`, a pipe, a background `&`
|
|
287
|
+
* or a second line lets a later command decide the status (`npm test; cd .` exits zero after a
|
|
288
|
+
* failed test), so such a line is no verification at all; it still runs under the shell policy.
|
|
289
|
+
*/
|
|
290
|
+
export function openCodeNativeVerificationKind(resources) {
|
|
291
|
+
let kind;
|
|
292
|
+
for (const resource of resources) {
|
|
293
|
+
const segments = statusPreservingSegments(resource);
|
|
294
|
+
if (segments === undefined)
|
|
295
|
+
return undefined;
|
|
296
|
+
for (const segment of segments) {
|
|
297
|
+
const tokens = commandTokens(segment);
|
|
298
|
+
if (tokens[0] === "cd")
|
|
299
|
+
continue;
|
|
300
|
+
const next = segmentVerificationKind(tokens);
|
|
301
|
+
if (next === undefined)
|
|
302
|
+
return undefined;
|
|
303
|
+
kind ??= next;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
return kind;
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* The `&&`-joined simple commands of a line, or undefined when another operator could hand the
|
|
310
|
+
* line's exit status to a command after the check. A descriptor duplication (`2>&1`) is not one.
|
|
311
|
+
*/
|
|
312
|
+
function statusPreservingSegments(command) {
|
|
313
|
+
const segments = command.split("&&").map((segment) => segment.trim());
|
|
314
|
+
const decided = segments.some((segment) => segment.length === 0 || STATUS_HANDOVER.test(segment.replaceAll(DESCRIPTOR_DUPLICATION, "")));
|
|
315
|
+
return decided ? undefined : segments;
|
|
316
|
+
}
|
|
317
|
+
const DESCRIPTOR_DUPLICATION = /\d?>&\d/gu;
|
|
318
|
+
const STATUS_HANDOVER = /[;|&\n\r]/u;
|
|
319
|
+
const NPX_VERIFICATION_KINDS = new Map([
|
|
320
|
+
["vitest", "test"],
|
|
321
|
+
["jest", "test"],
|
|
322
|
+
["mocha", "test"],
|
|
323
|
+
["playwright", "test"],
|
|
324
|
+
["tsc", "typecheck"],
|
|
325
|
+
["eslint", "lint"],
|
|
326
|
+
]);
|
|
327
|
+
const MAVEN_CHECKS = [
|
|
328
|
+
["test", "test"],
|
|
329
|
+
["verify", "test"],
|
|
330
|
+
["compile", "build"],
|
|
331
|
+
["package", "build"],
|
|
332
|
+
];
|
|
333
|
+
const GRADLE_CHECKS = [
|
|
334
|
+
["test", "test"],
|
|
335
|
+
["check", "test"],
|
|
336
|
+
["build", "build"],
|
|
337
|
+
["compileJava", "build"],
|
|
338
|
+
];
|
|
339
|
+
const BUILD_TOOL_VERIFICATION = new Map([
|
|
340
|
+
["mvn", MAVEN_CHECKS],
|
|
341
|
+
["mvnw", MAVEN_CHECKS],
|
|
342
|
+
["gradle", GRADLE_CHECKS],
|
|
343
|
+
["gradlew", GRADLE_CHECKS],
|
|
344
|
+
[
|
|
345
|
+
"cargo",
|
|
346
|
+
[
|
|
347
|
+
["test", "test"],
|
|
348
|
+
["build", "build"],
|
|
349
|
+
["check", "build"],
|
|
350
|
+
["clippy", "lint"],
|
|
351
|
+
],
|
|
352
|
+
],
|
|
353
|
+
[
|
|
354
|
+
"go",
|
|
355
|
+
[
|
|
356
|
+
["test", "test"],
|
|
357
|
+
["build", "build"],
|
|
358
|
+
["vet", "lint"],
|
|
359
|
+
],
|
|
360
|
+
],
|
|
361
|
+
[
|
|
362
|
+
"make",
|
|
363
|
+
[
|
|
364
|
+
["test", "test"],
|
|
365
|
+
["check", "test"],
|
|
366
|
+
["build", "build"],
|
|
367
|
+
["lint", "lint"],
|
|
368
|
+
],
|
|
369
|
+
],
|
|
370
|
+
]);
|
|
371
|
+
/** A package script's check by its name: `test`, `test:unit`, `typecheck`, `lint:fix`, ... */
|
|
372
|
+
const SCRIPT_VERIFICATION = [
|
|
373
|
+
[/^(?:test|tests|spec|check|verify)(?::|$)/u, "test"],
|
|
374
|
+
[/^(?:typecheck|type-check|types|tsc)(?::|$)/u, "typecheck"],
|
|
375
|
+
[/^(?:lint|eslint)(?::|$)/u, "lint"],
|
|
376
|
+
[/^(?:build|compile)(?::|$)/u, "build"],
|
|
377
|
+
];
|
|
378
|
+
/**
|
|
379
|
+
* Options and subcommands that make a check print, list or plan instead of running (#3901): such a
|
|
380
|
+
* line exits zero without testing, type-checking, linting or building anything, so its status
|
|
381
|
+
* cannot be verification evidence.
|
|
382
|
+
*/
|
|
383
|
+
const NON_EXECUTING_FLAGS = new Set([
|
|
384
|
+
"--help",
|
|
385
|
+
"-h",
|
|
386
|
+
"--version",
|
|
387
|
+
"--listTests",
|
|
388
|
+
"--list-tests",
|
|
389
|
+
"--list",
|
|
390
|
+
"-list",
|
|
391
|
+
"--showConfig",
|
|
392
|
+
"--print-config",
|
|
393
|
+
"--init",
|
|
394
|
+
"--dry-run",
|
|
395
|
+
"--collect-only",
|
|
396
|
+
"--co",
|
|
397
|
+
"--no-run",
|
|
398
|
+
"--just-print",
|
|
399
|
+
"--recon",
|
|
400
|
+
"--question",
|
|
401
|
+
]);
|
|
402
|
+
const PROGRAM_NON_EXECUTING = new Map([
|
|
403
|
+
["make", new Set(["-n", "-q", "-t", "-v", "--touch"])],
|
|
404
|
+
["gradle", new Set(["-m", "-v", "--task-graph"])],
|
|
405
|
+
["gradlew", new Set(["-m", "-v", "--task-graph"])],
|
|
406
|
+
["./gradlew", new Set(["-m", "-v", "--task-graph"])],
|
|
407
|
+
["npx", new Set(["list"])],
|
|
408
|
+
]);
|
|
409
|
+
/** Stop at an operand: in `-fnotes` the `n` names a file, not make's dry-run switch. */
|
|
410
|
+
const PROGRAM_SHORT_OPTION_OPERANDS = new Map([
|
|
411
|
+
["make", "CEfIjloONW"],
|
|
412
|
+
["gradle", "bcgIpDPx"],
|
|
413
|
+
["gradlew", "bcgIpDPx"],
|
|
414
|
+
["./gradlew", "bcgIpDPx"],
|
|
415
|
+
]);
|
|
416
|
+
function nonExecutingShortOptions(token, program) {
|
|
417
|
+
const operands = PROGRAM_SHORT_OPTION_OPERANDS.get(program);
|
|
418
|
+
if (operands === undefined || !/^-[^-]/u.test(token))
|
|
419
|
+
return false;
|
|
420
|
+
const own = PROGRAM_NON_EXECUTING.get(program);
|
|
421
|
+
for (const letter of token.slice(1)) {
|
|
422
|
+
const option = `-${letter}`;
|
|
423
|
+
if (NON_EXECUTING_FLAGS.has(option) || own?.has(option))
|
|
424
|
+
return true;
|
|
425
|
+
if (operands.includes(letter))
|
|
426
|
+
return false;
|
|
427
|
+
}
|
|
428
|
+
return false;
|
|
429
|
+
}
|
|
430
|
+
function nonExecutingCheck(tokens) {
|
|
431
|
+
const program = tokens[0] ?? "";
|
|
432
|
+
const own = PROGRAM_NON_EXECUTING.get(program);
|
|
433
|
+
return tokens.slice(1).some((token) => {
|
|
434
|
+
const option = token.startsWith("-") ? (token.split("=", 1)[0] ?? token) : token;
|
|
435
|
+
return (NON_EXECUTING_FLAGS.has(option) ||
|
|
436
|
+
own?.has(option) === true ||
|
|
437
|
+
nonExecutingShortOptions(token, program));
|
|
438
|
+
});
|
|
439
|
+
}
|
|
440
|
+
function segmentVerificationKind(tokens) {
|
|
441
|
+
const [program] = tokens;
|
|
442
|
+
if (program === undefined || nonExecutingCheck(tokens))
|
|
443
|
+
return undefined;
|
|
444
|
+
const subcommand = subcommandOf(tokens);
|
|
445
|
+
if (VETTED_PACKAGE_MANAGERS.has(program))
|
|
446
|
+
return packageCheckKind(tokens, subcommand);
|
|
447
|
+
const check = PROGRAM_CHECKS.get(program);
|
|
448
|
+
if (check !== undefined)
|
|
449
|
+
return check(tokens, subcommand);
|
|
450
|
+
return BUILD_TOOL_VERIFICATION.get(program)?.find(([name]) => name === subcommand)?.[1];
|
|
451
|
+
}
|
|
452
|
+
function pythonCheck(tokens) {
|
|
453
|
+
return tokens[1] === "-m" && (tokens[2] === "pytest" || tokens[2] === "unittest")
|
|
454
|
+
? "test"
|
|
455
|
+
: undefined;
|
|
456
|
+
}
|
|
457
|
+
function npxCheck(_tokens, subcommand) {
|
|
458
|
+
return NPX_VERIFICATION_KINDS.get(subcommand ?? "");
|
|
459
|
+
}
|
|
460
|
+
function nodeCheck(tokens) {
|
|
461
|
+
return tokens[1] === "--test" ? "test" : undefined;
|
|
462
|
+
}
|
|
463
|
+
function pytestCheck() {
|
|
464
|
+
return "test";
|
|
465
|
+
}
|
|
466
|
+
const PROGRAM_CHECKS = new Map([
|
|
467
|
+
["npx", npxCheck],
|
|
468
|
+
["node", nodeCheck],
|
|
469
|
+
["pytest", pytestCheck],
|
|
470
|
+
["python", pythonCheck],
|
|
471
|
+
["python3", pythonCheck],
|
|
472
|
+
]);
|
|
473
|
+
function packageCheckKind(tokens, subcommand) {
|
|
474
|
+
if (subcommand === "test" || subcommand === "t")
|
|
475
|
+
return "test";
|
|
476
|
+
if (subcommand !== "run" && subcommand !== "run-script")
|
|
477
|
+
return undefined;
|
|
478
|
+
const script = tokens
|
|
479
|
+
.slice(tokens.indexOf(subcommand) + 1)
|
|
480
|
+
.find((token) => !token.startsWith("-"));
|
|
481
|
+
return SCRIPT_VERIFICATION.find(([pattern]) => pattern.test(script ?? ""))?.[1];
|
|
482
|
+
}
|
|
483
|
+
export function parseOpenCodeNativePolicyRequest(value) {
|
|
484
|
+
const record = asRecord(value);
|
|
485
|
+
if (record?.action !== OPENCODE_NATIVE_POLICY_ACTION)
|
|
486
|
+
return undefined;
|
|
487
|
+
const identity = parseIdentity(record);
|
|
488
|
+
const bounded = boundedResources(record.resources);
|
|
489
|
+
const optional = parseOptionalFields(record);
|
|
490
|
+
const target = parseTargetSession(record.targetSessionID);
|
|
491
|
+
if (identity === undefined || bounded === undefined || optional === undefined || target === null)
|
|
492
|
+
return undefined;
|
|
493
|
+
return {
|
|
494
|
+
...identity,
|
|
495
|
+
resources: bounded,
|
|
496
|
+
...optional,
|
|
497
|
+
...(target === undefined ? {} : { targetSessionID: target }),
|
|
498
|
+
};
|
|
499
|
+
}
|
|
500
|
+
/** `undefined` when absent, `null` when malformed (not a session id). */
|
|
501
|
+
function parseTargetSession(value) {
|
|
502
|
+
if (value === undefined || value === null)
|
|
503
|
+
return undefined;
|
|
504
|
+
return typeof value === "string" && SESSION_ID.test(value) ? value : null;
|
|
505
|
+
}
|
|
506
|
+
/** The optional request fields; `undefined` when any present one is malformed. */
|
|
507
|
+
function parseOptionalFields(record) {
|
|
508
|
+
const agent = parseAgent(record.agent);
|
|
509
|
+
const source = parseSource(record.source);
|
|
510
|
+
const searchPath = parseSearchPath(record.searchPath);
|
|
511
|
+
const patchBytes = parsePatchBytes(record.patchBytes);
|
|
512
|
+
if (agent === null || source === null || searchPath === null || patchBytes === null)
|
|
513
|
+
return undefined;
|
|
514
|
+
return {
|
|
515
|
+
...(agent === undefined ? {} : { agent }),
|
|
516
|
+
...(source === undefined ? {} : { source }),
|
|
517
|
+
...(searchPath === undefined ? {} : { searchPath }),
|
|
518
|
+
...(patchBytes === undefined ? {} : { patchBytes }),
|
|
519
|
+
};
|
|
520
|
+
}
|
|
521
|
+
/**
|
|
522
|
+
* `undefined` when absent, `null` when malformed. The plugin reports an edit whose diff it could
|
|
523
|
+
* not measure as `-1`, so a producer that changes its diff metadata is refused, never uncharged.
|
|
524
|
+
*/
|
|
525
|
+
function parsePatchBytes(value) {
|
|
526
|
+
if (value === undefined || value === null)
|
|
527
|
+
return undefined;
|
|
528
|
+
return typeof value === "number" && Number.isSafeInteger(value) && value >= 0 ? value : null;
|
|
529
|
+
}
|
|
530
|
+
/** `undefined` when absent, `null` when malformed (not a bounded string). */
|
|
531
|
+
function parseSearchPath(value) {
|
|
532
|
+
if (value === undefined || value === null)
|
|
533
|
+
return undefined;
|
|
534
|
+
return typeof value === "string" &&
|
|
535
|
+
value.length > 0 &&
|
|
536
|
+
value.length <= OPENCODE_NATIVE_POLICY_MAX_RESOURCE_CHARS
|
|
537
|
+
? value
|
|
538
|
+
: null;
|
|
539
|
+
}
|
|
540
|
+
function parseIdentity(record) {
|
|
541
|
+
const { runId, sessionID, permission } = record;
|
|
542
|
+
if (typeof runId !== "string" || !RUN_ID.test(runId))
|
|
543
|
+
return undefined;
|
|
544
|
+
if (typeof sessionID !== "string" || !SESSION_ID.test(sessionID))
|
|
545
|
+
return undefined;
|
|
546
|
+
if (typeof permission !== "string" || permission.length === 0 || permission.length > 64)
|
|
547
|
+
return undefined;
|
|
548
|
+
return { runId, sessionID, permission };
|
|
549
|
+
}
|
|
550
|
+
/** `undefined` for an absent agent, `null` for a malformed one. */
|
|
551
|
+
function parseAgent(value) {
|
|
552
|
+
if (value === undefined || value === null)
|
|
553
|
+
return undefined;
|
|
554
|
+
return typeof value === "string" && AGENT_ID.test(value) ? value : null;
|
|
555
|
+
}
|
|
556
|
+
function boundedResources(value) {
|
|
557
|
+
if (!Array.isArray(value) || value.length > OPENCODE_NATIVE_POLICY_MAX_RESOURCES)
|
|
558
|
+
return undefined;
|
|
559
|
+
const resources = [];
|
|
560
|
+
for (const entry of value) {
|
|
561
|
+
if (typeof entry !== "string" || entry.length > OPENCODE_NATIVE_POLICY_MAX_RESOURCE_CHARS)
|
|
562
|
+
return undefined;
|
|
563
|
+
resources.push(entry);
|
|
564
|
+
}
|
|
565
|
+
return resources;
|
|
566
|
+
}
|
|
567
|
+
function parseSource(value) {
|
|
568
|
+
if (value === undefined || value === null)
|
|
569
|
+
return undefined;
|
|
570
|
+
const record = asRecord(value);
|
|
571
|
+
if (record?.type !== "tool")
|
|
572
|
+
return null;
|
|
573
|
+
const { messageID, id } = record;
|
|
574
|
+
return typeof messageID === "string" &&
|
|
575
|
+
messageID.length > 0 &&
|
|
576
|
+
messageID.length <= 128 &&
|
|
577
|
+
typeof id === "string" &&
|
|
578
|
+
CALL_ID.test(id)
|
|
579
|
+
? { messageID, id }
|
|
580
|
+
: null;
|
|
581
|
+
}
|
|
582
|
+
export function decideOpenCodeNativePolicy(input) {
|
|
583
|
+
const { request } = input;
|
|
584
|
+
if (!isCodingWorkbenchMode(input.mode))
|
|
585
|
+
return deny("mode-denied", "Keiko refused this action: the run's autonomy mode is unknown.");
|
|
586
|
+
const classification = classifyMcpAction(request, input.mcp) ?? classifyNativeAction(request, admittedRootsOf(input));
|
|
587
|
+
if ("reason" in classification)
|
|
588
|
+
return deny(classification.reason, classification.message);
|
|
589
|
+
// Reads and planning are allowed in every mode (ADR-0124 D1); only effects consult the matrix.
|
|
590
|
+
if (alwaysAllowedRead(classification))
|
|
591
|
+
return { effect: "allow", classification };
|
|
592
|
+
// Below Full access the sandbox has no route beyond this machine, and customer networks are often
|
|
593
|
+
// firewalled anyway: refuse at once with a clear reason instead of an approval the kernel would
|
|
594
|
+
// then block (#3897), so the agent continues with local files and tools.
|
|
595
|
+
if (classification.scope === "internet" && input.mode !== "autonomous-delivery")
|
|
596
|
+
return deny("mode-denied", "Keiko refused this action: internet access is only available in Full access, and this run has no route outside the machine. Continue with the local files and tools.");
|
|
597
|
+
const effect = codingWorkbenchPolicyEffectFor(input.mode, classification.scope, classification.risk);
|
|
598
|
+
if (effect === "allowed")
|
|
599
|
+
return { effect: "allow", classification };
|
|
600
|
+
if (effect === "denied")
|
|
601
|
+
return {
|
|
602
|
+
effect: "deny",
|
|
603
|
+
reason: "mode-denied",
|
|
604
|
+
message: `Keiko refused this action: ${classification.label} is not permitted in the current autonomy mode.`,
|
|
605
|
+
classification,
|
|
606
|
+
};
|
|
607
|
+
return {
|
|
608
|
+
effect: "ask",
|
|
609
|
+
classification,
|
|
610
|
+
event: askEvent(request, classification, input.nowMs),
|
|
611
|
+
actionId: request.source === undefined ? undefined : `${request.sessionID}:${request.source.id}`,
|
|
612
|
+
};
|
|
613
|
+
}
|
|
614
|
+
function admittedRootsOf(input) {
|
|
615
|
+
return {
|
|
616
|
+
workspaceRoot: input.workspaceRoot,
|
|
617
|
+
planRoot: input.planRoot,
|
|
618
|
+
externalRoots: input.externalRoots ?? [],
|
|
619
|
+
webSearch: input.webSearch === true,
|
|
620
|
+
};
|
|
621
|
+
}
|
|
622
|
+
// Reads and planning in the workspace are allowed in every mode (ADR-0124 D1); a read of an
|
|
623
|
+
// accepted external reference is an `external-file` action the mode decides (#3900 AC5).
|
|
624
|
+
function alwaysAllowedRead(classification) {
|
|
625
|
+
return (classification.actionClass === "workspace-read" && classification.scope !== "external-file");
|
|
626
|
+
}
|
|
627
|
+
function classifyNativeAction(request, roots) {
|
|
628
|
+
const { permission, resources } = request;
|
|
629
|
+
if (permission === OPENCODE_CODE_MODE_SESSION_MOVE)
|
|
630
|
+
return classifySessionMove(request, roots.workspaceRoot);
|
|
631
|
+
if (permission === OPENCODE_CODE_MODE_WORKTREE_CREATE)
|
|
632
|
+
return classifyWorktreeCreate(request);
|
|
633
|
+
if (permission === "websearch")
|
|
634
|
+
return roots.webSearch === true ? EGRESS : WEBSEARCH_UNCONFIGURED;
|
|
635
|
+
if (!KNOWN_ACTIONS.has(permission))
|
|
636
|
+
return {
|
|
637
|
+
reason: "unsupported-action",
|
|
638
|
+
message: "Keiko refused this action: it is not a classified OpenCode action.",
|
|
639
|
+
};
|
|
640
|
+
const pathAction = classifyPathAction(request, roots);
|
|
641
|
+
if (pathAction !== undefined)
|
|
642
|
+
return pathAction;
|
|
643
|
+
if (EGRESS_ACTIONS.has(permission))
|
|
644
|
+
return EGRESS;
|
|
645
|
+
if (permission === "shell")
|
|
646
|
+
return classifyShell(resources);
|
|
647
|
+
return EXECUTE;
|
|
648
|
+
}
|
|
649
|
+
/**
|
|
650
|
+
* Code Mode's `session_move` (#3903 AC4): the run's own session may change its working directory to
|
|
651
|
+
* an existing directory inside the task workspace, named by its absolute, normalized path with no
|
|
652
|
+
* symbolic link on the way. That is navigation inside the workspace, so it is a read in every mode;
|
|
653
|
+
* the run's session tree then follows the session (`admitNativeSessionLocation`). Moving another
|
|
654
|
+
* session, or to any other place, stays refused.
|
|
655
|
+
*/
|
|
656
|
+
function classifySessionMove(request, workspaceRoot) {
|
|
657
|
+
const target = request.targetSessionID ?? request.sessionID;
|
|
658
|
+
if (target !== request.sessionID)
|
|
659
|
+
return {
|
|
660
|
+
reason: "unsupported-action",
|
|
661
|
+
message: "Keiko refused this action: a session may move only its own working directory.",
|
|
662
|
+
};
|
|
663
|
+
const [directory, ...rest] = request.resources;
|
|
664
|
+
if (directory === undefined || rest.length > 0 || resolve(directory) !== directory)
|
|
665
|
+
return {
|
|
666
|
+
reason: "unsupported-action",
|
|
667
|
+
message: "Keiko refused this action: name one directory inside the task workspace by its absolute path.",
|
|
668
|
+
};
|
|
669
|
+
const guarded = guardedPaths([directory], { workspaceRoot }, READ);
|
|
670
|
+
if ("reason" in guarded)
|
|
671
|
+
return guarded;
|
|
672
|
+
return openCodeNativeSessionMoveDirectory(directory, workspaceRoot) === undefined
|
|
673
|
+
? {
|
|
674
|
+
reason: "workspace-escape",
|
|
675
|
+
message: "Keiko refused this action: the target is not an existing directory inside the task workspace.",
|
|
676
|
+
}
|
|
677
|
+
: guarded;
|
|
678
|
+
}
|
|
679
|
+
/**
|
|
680
|
+
* Code Mode's `worktree_create` (#3903 AC4): a new branch and worktree of the repository, so a
|
|
681
|
+
* delivery-scoped action the human decides in every mode. An approved one is provisioned by the
|
|
682
|
+
* managed task-workspace owner (`opencodeNativeWorktree.ts`), never by the producer's own git call.
|
|
683
|
+
*/
|
|
684
|
+
const NATIVE_WORKTREE = Object.freeze({
|
|
685
|
+
actionClass: "workspace-write",
|
|
686
|
+
kind: "workspace-write",
|
|
687
|
+
scope: "delivery",
|
|
688
|
+
risk: "high",
|
|
689
|
+
label: "native-edit",
|
|
690
|
+
});
|
|
691
|
+
function classifyWorktreeCreate(request) {
|
|
692
|
+
const [name, ...rest] = request.resources;
|
|
693
|
+
return name !== undefined && rest.length === 0 && WORKTREE_NAME.test(name)
|
|
694
|
+
? NATIVE_WORKTREE
|
|
695
|
+
: {
|
|
696
|
+
reason: "unsupported-action",
|
|
697
|
+
message: "Keiko refused this action: name the new task workspace with letters, digits, dots, dashes or underscores (at most 64 characters).",
|
|
698
|
+
};
|
|
699
|
+
}
|
|
700
|
+
/**
|
|
701
|
+
* `directory` when it is an existing directory inside the workspace that no symbolic link reaches:
|
|
702
|
+
* its physical path is the workspace's physical path plus the same relative path.
|
|
703
|
+
*/
|
|
704
|
+
function openCodeNativeSessionMoveDirectory(directory, workspaceRoot) {
|
|
705
|
+
const contained = workspaceRelative(directory, workspaceRoot);
|
|
706
|
+
if (contained === undefined || !isAbsolute(directory))
|
|
707
|
+
return undefined;
|
|
708
|
+
const physical = physicalPathIfPresent(directory);
|
|
709
|
+
if (physical === undefined || !statSync(physical).isDirectory())
|
|
710
|
+
return undefined;
|
|
711
|
+
return physical === join(realpathSync(workspaceRoot), contained) ? directory : undefined;
|
|
712
|
+
}
|
|
713
|
+
function physicalPathIfPresent(path) {
|
|
714
|
+
try {
|
|
715
|
+
return realpathSync(path);
|
|
716
|
+
}
|
|
717
|
+
catch (error) {
|
|
718
|
+
const { code } = error;
|
|
719
|
+
if (code === "ENOENT" || code === "ENOTDIR")
|
|
720
|
+
return undefined;
|
|
721
|
+
throw error;
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
const MCP_RESOURCE_ACTIONS = new Set(["opencode_list_mcp_resources", "opencode_read_mcp_resource"]);
|
|
725
|
+
// A local MCP server is a process Keiko starts in the run's sandbox: its read tools are a vetted
|
|
726
|
+
// command, its write tools a risky one. A remote server is internet use, whatever the tool says.
|
|
727
|
+
const MCP_LOCAL_READ = Object.freeze({
|
|
728
|
+
actionClass: "command-execution",
|
|
729
|
+
kind: "command-execution",
|
|
730
|
+
scope: "workspace-contained",
|
|
731
|
+
risk: "low",
|
|
732
|
+
label: "native-mcp",
|
|
733
|
+
});
|
|
734
|
+
const MCP_LOCAL_WRITE = Object.freeze({
|
|
735
|
+
...MCP_LOCAL_READ,
|
|
736
|
+
risk: "high",
|
|
737
|
+
});
|
|
738
|
+
const MCP_REMOTE = Object.freeze({
|
|
739
|
+
actionClass: "network-egress",
|
|
740
|
+
kind: "network-egress",
|
|
741
|
+
scope: "internet",
|
|
742
|
+
risk: "medium",
|
|
743
|
+
label: "native-mcp",
|
|
744
|
+
});
|
|
745
|
+
/**
|
|
746
|
+
* An MCP tool or resource action the registry admits, or undefined to fall through to the native
|
|
747
|
+
* classification (which refuses what it does not know). A resource action names its servers in its
|
|
748
|
+
* resources (`probe`, or `probe:<uri>` for a read); every one must be admitted.
|
|
749
|
+
*/
|
|
750
|
+
function classifyMcpAction(request, mcp) {
|
|
751
|
+
if (mcp === undefined)
|
|
752
|
+
return undefined;
|
|
753
|
+
const grant = mcp.actions.get(request.permission);
|
|
754
|
+
if (grant !== undefined) {
|
|
755
|
+
if (grant.remote)
|
|
756
|
+
return MCP_REMOTE;
|
|
757
|
+
return grant.risk === "write" ? MCP_LOCAL_WRITE : MCP_LOCAL_READ;
|
|
758
|
+
}
|
|
759
|
+
if (!MCP_RESOURCE_ACTIONS.has(request.permission) || request.resources.length === 0)
|
|
760
|
+
return undefined;
|
|
761
|
+
const servers = request.resources.map((resource) => mcp.servers.get(resource.split(":")[0] ?? ""));
|
|
762
|
+
if (servers.includes(undefined))
|
|
763
|
+
return undefined;
|
|
764
|
+
return servers.some((server) => server?.remote === true) ? MCP_REMOTE : MCP_LOCAL_READ;
|
|
765
|
+
}
|
|
766
|
+
const READ = Object.freeze({
|
|
767
|
+
actionClass: "workspace-read",
|
|
768
|
+
kind: "workspace-write",
|
|
769
|
+
scope: "workspace-contained",
|
|
770
|
+
risk: "low",
|
|
771
|
+
label: "native-read",
|
|
772
|
+
});
|
|
773
|
+
/** A read in an accepted external reference: decided by the mode's `external-file` row. */
|
|
774
|
+
const EXTERNAL_READ = Object.freeze({
|
|
775
|
+
...READ,
|
|
776
|
+
scope: "external-file",
|
|
777
|
+
});
|
|
778
|
+
const EDIT = Object.freeze({
|
|
779
|
+
actionClass: "workspace-write",
|
|
780
|
+
kind: "workspace-write",
|
|
781
|
+
scope: "workspace-contained",
|
|
782
|
+
risk: "medium",
|
|
783
|
+
label: "native-edit",
|
|
784
|
+
});
|
|
785
|
+
const EGRESS = Object.freeze({
|
|
786
|
+
actionClass: "network-egress",
|
|
787
|
+
kind: "network-egress",
|
|
788
|
+
scope: "internet",
|
|
789
|
+
risk: "medium",
|
|
790
|
+
label: "native-egress",
|
|
791
|
+
});
|
|
792
|
+
const EXECUTE = Object.freeze({
|
|
793
|
+
actionClass: "command-execution",
|
|
794
|
+
kind: "command-execution",
|
|
795
|
+
scope: "workspace-contained",
|
|
796
|
+
risk: "high",
|
|
797
|
+
label: "native-execute",
|
|
798
|
+
});
|
|
799
|
+
const SHELL_VETTED = Object.freeze({
|
|
800
|
+
actionClass: "command-execution",
|
|
801
|
+
kind: "command-execution",
|
|
802
|
+
scope: "workspace-contained",
|
|
803
|
+
risk: "low",
|
|
804
|
+
label: "native-shell",
|
|
805
|
+
});
|
|
806
|
+
const SHELL_UNVETTED = Object.freeze({
|
|
807
|
+
...SHELL_VETTED,
|
|
808
|
+
risk: "high",
|
|
809
|
+
});
|
|
810
|
+
/**
|
|
811
|
+
* Path resources of read and edit actions: OpenCode reports workspace-relative or absolute paths.
|
|
812
|
+
* A path that leaves the workspace is a hard denial in every mode, and so is a path the shared
|
|
813
|
+
* sensitive-path policy denies (`.env`, keys, credential stores, ADR-0129 D3).
|
|
814
|
+
*/
|
|
815
|
+
function guardedPaths(resources, roots, classification, loadsInstructions = false) {
|
|
816
|
+
for (const resource of resources) {
|
|
817
|
+
const contained = admittedRelative(resource, roots);
|
|
818
|
+
if (contained === undefined)
|
|
819
|
+
return {
|
|
820
|
+
reason: "workspace-escape",
|
|
821
|
+
message: "Keiko refused this action: the path is outside the task workspace.",
|
|
822
|
+
};
|
|
823
|
+
if (contained.length > 0 && isDenied(contained))
|
|
824
|
+
return {
|
|
825
|
+
reason: "sensitive-path",
|
|
826
|
+
message: "Keiko refused this action: the path is a protected sensitive file.",
|
|
827
|
+
};
|
|
828
|
+
if (linkedInWorkspace(resource, roots.workspaceRoot, loadsInstructions))
|
|
829
|
+
return {
|
|
830
|
+
reason: "linked-file",
|
|
831
|
+
message: "Keiko refused this action: the file, or an AGENTS.md instruction file the read would load, is a hard link that can name a file outside the task workspace.",
|
|
832
|
+
};
|
|
833
|
+
}
|
|
834
|
+
return classification;
|
|
835
|
+
}
|
|
836
|
+
/** The instruction file the producer's read tool loads from every directory it passes. */
|
|
837
|
+
const READ_INSTRUCTION_FILE = "AGENTS.md";
|
|
838
|
+
/**
|
|
839
|
+
* A pathname names exactly one file only while that file has one link (PR #4064 review): a hard
|
|
840
|
+
* link inside the workspace can alias a protected file or one outside it, and no pathname or
|
|
841
|
+
* realpath check resolves it. An existing regular file a read or edit touches must therefore have
|
|
842
|
+
* one link, and so must every `AGENTS.md` between a read target and the workspace root, which the
|
|
843
|
+
* producer's read tool loads as instructions without asking. The kernel refuses a sandboxed link to
|
|
844
|
+
* a file the run may not read, so such an alias can only predate the run.
|
|
845
|
+
*/
|
|
846
|
+
function linkedInWorkspace(resource, workspaceRoot, instructions) {
|
|
847
|
+
const contained = workspaceRelative(resource, workspaceRoot);
|
|
848
|
+
if (contained === undefined)
|
|
849
|
+
return false;
|
|
850
|
+
const root = resolve(workspaceRoot);
|
|
851
|
+
const target = resolve(root, contained);
|
|
852
|
+
const stat = lstatIfPresent(target);
|
|
853
|
+
if (multiplyLinked(stat))
|
|
854
|
+
return true;
|
|
855
|
+
if (!instructions)
|
|
856
|
+
return false;
|
|
857
|
+
let directory = stat?.isDirectory() === true ? target : dirname(target);
|
|
858
|
+
while (!relative(root, directory).startsWith("..")) {
|
|
859
|
+
if (multiplyLinked(lstatIfPresent(join(directory, READ_INSTRUCTION_FILE))))
|
|
860
|
+
return true;
|
|
861
|
+
if (directory === root)
|
|
862
|
+
return false;
|
|
863
|
+
directory = dirname(directory);
|
|
864
|
+
}
|
|
865
|
+
return false;
|
|
866
|
+
}
|
|
867
|
+
function multiplyLinked(stat) {
|
|
868
|
+
return stat?.isFile() === true && stat.nlink > 1;
|
|
869
|
+
}
|
|
870
|
+
/** The path-bearing actions; `undefined` for every other action. */
|
|
871
|
+
function classifyPathAction(request, roots) {
|
|
872
|
+
const { permission, resources } = request;
|
|
873
|
+
if (permission === "external_directory")
|
|
874
|
+
return externalDirectory(resources, roots);
|
|
875
|
+
// A glob/grep resource is a search pattern (`/api/users`, `*.pem`), not a path: only the searched
|
|
876
|
+
// directory is a path, and the kernel boundary keeps credential files unreadable regardless.
|
|
877
|
+
if (SEARCH_ACTIONS.has(permission)) {
|
|
878
|
+
const searched = request.searchPath === undefined ? [] : [request.searchPath];
|
|
879
|
+
return externalRead(searched, roots) ?? guardedPaths(searched, roots, READ);
|
|
880
|
+
}
|
|
881
|
+
if (READ_ACTIONS.has(permission))
|
|
882
|
+
return (externalRead(resources, roots) ??
|
|
883
|
+
guardedPaths(resources, roots, READ, permission === "read" || permission === "list"));
|
|
884
|
+
// The plan agent's notes live in the run's private plan directory, not in the workspace: writing
|
|
885
|
+
// them is planning, allowed in every mode like a read (standalone OpenCode does not ask either).
|
|
886
|
+
if (EDIT_ACTIONS.has(permission))
|
|
887
|
+
return guardedPaths(resources, roots, onlyInPlanRoot(resources, roots) ? READ : EDIT);
|
|
888
|
+
return undefined;
|
|
889
|
+
}
|
|
890
|
+
function onlyInPlanRoot(resources, roots) {
|
|
891
|
+
const { planRoot } = roots;
|
|
892
|
+
return (planRoot !== undefined &&
|
|
893
|
+
resources.length > 0 &&
|
|
894
|
+
resources.every((resource) => physicallyInPlanRoot(resource.trim(), planRoot)));
|
|
895
|
+
}
|
|
896
|
+
/**
|
|
897
|
+
* A plan note is exempt from workspace-edit approval only when its path names a file physically
|
|
898
|
+
* inside the plan directory (#3897 review): no existing component between the run's private state
|
|
899
|
+
* and the target is a symbolic link, and an existing target is a regular file with one link. The
|
|
900
|
+
* kernel's link-free rule on the plan directory keeps that true after this check.
|
|
901
|
+
*/
|
|
902
|
+
function physicallyInPlanRoot(target, planRoot) {
|
|
903
|
+
if (!isAbsolute(target) || workspaceRelative(target, planRoot) === undefined)
|
|
904
|
+
return false;
|
|
905
|
+
const trusted = dirname(dirname(dirname(planRoot)));
|
|
906
|
+
const resolved = resolve(target);
|
|
907
|
+
let current = trusted;
|
|
908
|
+
for (const part of relative(trusted, resolved).split(sep)) {
|
|
909
|
+
current = join(current, part);
|
|
910
|
+
const stat = lstatIfPresent(current);
|
|
911
|
+
if (stat === undefined)
|
|
912
|
+
return true;
|
|
913
|
+
if (stat.isSymbolicLink())
|
|
914
|
+
return false;
|
|
915
|
+
const last = current === resolved;
|
|
916
|
+
if (last ? !stat.isFile() || stat.nlink > 1 : !stat.isDirectory())
|
|
917
|
+
return false;
|
|
918
|
+
}
|
|
919
|
+
return true;
|
|
920
|
+
}
|
|
921
|
+
function lstatIfPresent(path) {
|
|
922
|
+
try {
|
|
923
|
+
return lstatSync(path);
|
|
924
|
+
}
|
|
925
|
+
catch (error) {
|
|
926
|
+
const { code } = error;
|
|
927
|
+
if (code === "ENOENT" || code === "ENOTDIR")
|
|
928
|
+
return undefined;
|
|
929
|
+
throw error;
|
|
930
|
+
}
|
|
931
|
+
}
|
|
932
|
+
/** Relative to the workspace, or to the plan root for an absolute path inside it. */
|
|
933
|
+
function admittedRelative(resource, roots) {
|
|
934
|
+
const inWorkspace = workspaceRelative(resource, roots.workspaceRoot);
|
|
935
|
+
if (inWorkspace !== undefined || roots.planRoot === undefined)
|
|
936
|
+
return inWorkspace;
|
|
937
|
+
return isAbsolute(resource.trim()) ? workspaceRelative(resource, roots.planRoot) : undefined;
|
|
938
|
+
}
|
|
939
|
+
/**
|
|
940
|
+
* OpenCode checks a directory outside the workspace before reading or editing in it. The run's plan
|
|
941
|
+
* directory is admitted like the workspace, an accepted external reference as an external read
|
|
942
|
+
* (#3900 AC5); every other external directory stays a hard denial.
|
|
943
|
+
*/
|
|
944
|
+
function externalDirectory(resources, roots) {
|
|
945
|
+
const directories = resources.map((resource) => resource.trim().replace(/\/\*$/u, ""));
|
|
946
|
+
const within = (root) => root !== undefined &&
|
|
947
|
+
directories.length > 0 &&
|
|
948
|
+
directories.every((directory) => isAbsolute(directory) && workspaceRelative(directory, root) !== undefined);
|
|
949
|
+
if (within(roots.planRoot))
|
|
950
|
+
return READ;
|
|
951
|
+
if ((roots.externalRoots ?? []).some((root) => within(root)))
|
|
952
|
+
return EXTERNAL_READ;
|
|
953
|
+
return {
|
|
954
|
+
reason: "workspace-escape",
|
|
955
|
+
message: "Keiko refused this action: files outside the task workspace are not accessible.",
|
|
956
|
+
};
|
|
957
|
+
}
|
|
958
|
+
/**
|
|
959
|
+
* A read or search inside one accepted external reference (#3900 AC5): an `external-file` read the
|
|
960
|
+
* run's mode decides, with the same sensitive-path and hard-link refusals as inside the workspace.
|
|
961
|
+
* `undefined` when a path is not inside one, so the workspace rules decide it.
|
|
962
|
+
*/
|
|
963
|
+
function externalRead(paths, roots) {
|
|
964
|
+
const root = (roots.externalRoots ?? []).find((candidate) => paths.length > 0 &&
|
|
965
|
+
paths.every((path) => isAbsolute(path.trim()) && workspaceRelative(path, candidate) !== undefined));
|
|
966
|
+
if (root === undefined)
|
|
967
|
+
return undefined;
|
|
968
|
+
for (const path of paths) {
|
|
969
|
+
const contained = workspaceRelative(path, root) ?? "";
|
|
970
|
+
if (contained.length > 0 && isDenied(contained))
|
|
971
|
+
return {
|
|
972
|
+
reason: "sensitive-path",
|
|
973
|
+
message: "Keiko refused this action: the path is a protected sensitive file.",
|
|
974
|
+
};
|
|
975
|
+
if (linkedInWorkspace(path, root, false))
|
|
976
|
+
return {
|
|
977
|
+
reason: "linked-file",
|
|
978
|
+
message: "Keiko refused this action: the file is a hard link that can name a file outside the accepted reference.",
|
|
979
|
+
};
|
|
980
|
+
}
|
|
981
|
+
return EXTERNAL_READ;
|
|
982
|
+
}
|
|
983
|
+
/** Workspace-relative POSIX path, or undefined when the resource points outside the workspace. */
|
|
984
|
+
/**
|
|
985
|
+
* The workspace files an admitted native `edit` check names, workspace-relative as the runtime's
|
|
986
|
+
* own diff names them; plan notes and anything outside the workspace are not workspace files.
|
|
987
|
+
*/
|
|
988
|
+
export function openCodeNativeEditFiles(request, workspaceRoot) {
|
|
989
|
+
if (!EDIT_ACTIONS.has(request.permission))
|
|
990
|
+
return [];
|
|
991
|
+
return request.resources.flatMap((resource) => {
|
|
992
|
+
const file = workspaceRelative(resource, workspaceRoot);
|
|
993
|
+
return file === undefined || file === "" ? [] : [file];
|
|
994
|
+
});
|
|
995
|
+
}
|
|
996
|
+
export function workspaceRelative(resource, workspaceRoot) {
|
|
997
|
+
const candidate = resource.trim();
|
|
998
|
+
if (candidate.includes("\0"))
|
|
999
|
+
return undefined;
|
|
1000
|
+
const rel = isAbsolute(candidate) ? relative(workspaceRoot, candidate) : candidate;
|
|
1001
|
+
const posix = rel.split(sep).join("/");
|
|
1002
|
+
if (posix === "" || posix === ".")
|
|
1003
|
+
return "";
|
|
1004
|
+
if (isAbsolute(posix) || posix === ".." || posix.startsWith("../") || posix.startsWith("/"))
|
|
1005
|
+
return undefined;
|
|
1006
|
+
const segments = posix.split("/");
|
|
1007
|
+
if (segments.includes(".."))
|
|
1008
|
+
return undefined;
|
|
1009
|
+
return posix;
|
|
1010
|
+
}
|
|
1011
|
+
/**
|
|
1012
|
+
* A reserved Git or gh invocation at a command position anywhere in the text: the start, after a
|
|
1013
|
+
* list operator, `(` or a backtick, or inside a quoted string that a shell or interpreter executes
|
|
1014
|
+
* (`sh -c "git push"`, `node -e "…execSync('git push')"`, `eval "git push"`). A quoted mention passed
|
|
1015
|
+
* to an ordinary program (`grep -rn "git push" docs`) is data, not a command. Each fragment is read
|
|
1016
|
+
* by the same tokenizer as a plain segment, so the scan stays linear in the command.
|
|
1017
|
+
*/
|
|
1018
|
+
function reservedInvocationInText(command) {
|
|
1019
|
+
let start = 0;
|
|
1020
|
+
let opener = "";
|
|
1021
|
+
for (let index = 0; index <= command.length; index += 1) {
|
|
1022
|
+
const char = command.charAt(index);
|
|
1023
|
+
if (index < command.length && !COMMAND_DELIMITERS.has(char))
|
|
1024
|
+
continue;
|
|
1025
|
+
const fragment = command.slice(start, index);
|
|
1026
|
+
if (executedFragment(opener, command.slice(0, Math.max(0, start - 1))))
|
|
1027
|
+
if (reservedTokens(commandTokens(fragment)))
|
|
1028
|
+
return true;
|
|
1029
|
+
opener = char;
|
|
1030
|
+
start = index + 1;
|
|
1031
|
+
}
|
|
1032
|
+
return false;
|
|
1033
|
+
}
|
|
1034
|
+
const COMMAND_DELIMITERS = new Set([";", "&", "|", "(", "`", "'", '"']);
|
|
1035
|
+
const QUOTES = new Set(["'", '"']);
|
|
1036
|
+
const EXECUTING_PREFIX = /(?:(?:^|\s)-[A-Za-z]*[ce]|\(|(?:^|\s)(?:eval|exec|xargs))\s*$/u;
|
|
1037
|
+
function executedFragment(opener, before) {
|
|
1038
|
+
return !QUOTES.has(opener) || EXECUTING_PREFIX.test(before);
|
|
1039
|
+
}
|
|
1040
|
+
/** Read-only forms of otherwise reserved Git subcommands stay available (status-like listings). */
|
|
1041
|
+
const READ_ONLY_BRANCH_FLAGS = new Set([
|
|
1042
|
+
"--show-current",
|
|
1043
|
+
"-a",
|
|
1044
|
+
"--all",
|
|
1045
|
+
"-r",
|
|
1046
|
+
"--remotes",
|
|
1047
|
+
"-v",
|
|
1048
|
+
"-vv",
|
|
1049
|
+
"--verbose",
|
|
1050
|
+
"-l",
|
|
1051
|
+
"--list",
|
|
1052
|
+
"--no-color",
|
|
1053
|
+
"--color",
|
|
1054
|
+
]);
|
|
1055
|
+
const READ_ONLY_GIT_FORMS = {
|
|
1056
|
+
branch: (args) => args.every((arg) => READ_ONLY_BRANCH_FLAGS.has(arg)),
|
|
1057
|
+
stash: ([first]) => first === "list" || first === "show",
|
|
1058
|
+
remote: (args) => args.every((arg) => arg === "-v" || arg === "--verbose") || args[0] === "get-url",
|
|
1059
|
+
tag: ([first]) => first === undefined || first === "-l" || first === "--list",
|
|
1060
|
+
worktree: ([first]) => first === "list",
|
|
1061
|
+
submodule: ([first]) => first === "status",
|
|
1062
|
+
};
|
|
1063
|
+
function isReadOnlyGitForm(subcommand, args) {
|
|
1064
|
+
const form = Object.hasOwn(READ_ONLY_GIT_FORMS, subcommand)
|
|
1065
|
+
? READ_ONLY_GIT_FORMS[subcommand]
|
|
1066
|
+
: undefined;
|
|
1067
|
+
return form?.(args) === true;
|
|
1068
|
+
}
|
|
1069
|
+
function reservedTokens(tokens) {
|
|
1070
|
+
const [program] = tokens;
|
|
1071
|
+
const subcommand = subcommandOf(tokens);
|
|
1072
|
+
if (subcommand === undefined)
|
|
1073
|
+
return false;
|
|
1074
|
+
if (program === "gh")
|
|
1075
|
+
return RESERVED_GH_SUBCOMMANDS.has(subcommand);
|
|
1076
|
+
if (program !== "git" || !RESERVED_GIT_SUBCOMMANDS.has(subcommand))
|
|
1077
|
+
return false;
|
|
1078
|
+
return !isReadOnlyGitForm(subcommand, tokens.slice(tokens.indexOf(subcommand) + 1));
|
|
1079
|
+
}
|
|
1080
|
+
/**
|
|
1081
|
+
* OpenCode reports one resource per simple command of a shell line (`npm test && git push` arrives
|
|
1082
|
+
* as two), so every resource is classified on its own: any reserved delivery command refuses the
|
|
1083
|
+
* whole line, and the line is vetted only when every command in it is (#3897 audit).
|
|
1084
|
+
*/
|
|
1085
|
+
function classifyShell(resources) {
|
|
1086
|
+
const commands = resources.map((resource) => resource.trim()).filter((r) => r.length > 0);
|
|
1087
|
+
if (commands.length === 0)
|
|
1088
|
+
return SHELL_UNVETTED;
|
|
1089
|
+
if (commands.some((command) => isReservedCommand(command) || reservedInvocationInText(command)))
|
|
1090
|
+
return {
|
|
1091
|
+
reason: "delivery-reserved",
|
|
1092
|
+
message: OPENCODE_NATIVE_DELIVERY_REFUSAL_MESSAGE,
|
|
1093
|
+
};
|
|
1094
|
+
return commands.every((command) => commandSegments(command).every(isVettedSegment))
|
|
1095
|
+
? SHELL_VETTED
|
|
1096
|
+
: SHELL_UNVETTED;
|
|
1097
|
+
}
|
|
1098
|
+
function isReservedCommand(command) {
|
|
1099
|
+
return commandSegments(command).some((segment) => reservedTokens(commandTokens(segment)));
|
|
1100
|
+
}
|
|
1101
|
+
function askEvent(request, classification, nowMs) {
|
|
1102
|
+
const requestId = projectOpenCodePermissionRequestId(`per_${randomBytes(16).toString("hex")}`);
|
|
1103
|
+
if (requestId === undefined)
|
|
1104
|
+
throw new Error("native-policy-request-id-invalid");
|
|
1105
|
+
return {
|
|
1106
|
+
type: "permission-request",
|
|
1107
|
+
requestId,
|
|
1108
|
+
kind: classification.kind,
|
|
1109
|
+
actionClass: classification.actionClass === "workspace-read"
|
|
1110
|
+
? "workspace-write"
|
|
1111
|
+
: classification.actionClass,
|
|
1112
|
+
reasonCode: "approval-required",
|
|
1113
|
+
expiresAt: new Date(nowMs + GOVERNED_TOOL_HUMAN_DECISION_WAIT_MS).toISOString(),
|
|
1114
|
+
scopeLabel: classification.scope === "internet" ? "network-egress" : "workspace-scope",
|
|
1115
|
+
risk: classification.risk,
|
|
1116
|
+
policyReason: "approval-required",
|
|
1117
|
+
...(classification.kind === "command-execution" ? { commandLabel: classification.label } : {}),
|
|
1118
|
+
nativeAction: { permission: request.permission, resources: request.resources },
|
|
1119
|
+
};
|
|
1120
|
+
}
|
|
1121
|
+
function deny(reason, message) {
|
|
1122
|
+
return { effect: "deny", reason, message };
|
|
1123
|
+
}
|
|
1124
|
+
function asRecord(value) {
|
|
1125
|
+
return typeof value === "object" && value !== null && !Array.isArray(value)
|
|
1126
|
+
? value
|
|
1127
|
+
: undefined;
|
|
1128
|
+
}
|
|
1129
|
+
/** Body-free: the action name and its closed disposition, never a path, command or URL. */
|
|
1130
|
+
export const CODING_RUNTIME_NATIVE_POLICY_DECIDED_OPERATION = defineActivityLogOperation({
|
|
1131
|
+
contractKind: "activity-log-operation",
|
|
1132
|
+
schemaVersion: 1,
|
|
1133
|
+
op: "coding-runtime.native-policy.decided",
|
|
1134
|
+
category: "process",
|
|
1135
|
+
owner: "keiko-server",
|
|
1136
|
+
emitter: "coding-runtime.opencodeNativePolicy.recordOpenCodeNativePolicyDecision",
|
|
1137
|
+
fields: {
|
|
1138
|
+
mode: {
|
|
1139
|
+
type: "string",
|
|
1140
|
+
dataClass: "closed-enum",
|
|
1141
|
+
required: true,
|
|
1142
|
+
values: ["governed-assist", "supervised-coding", "autonomous-delivery", "unknown"],
|
|
1143
|
+
},
|
|
1144
|
+
permission: {
|
|
1145
|
+
type: "string",
|
|
1146
|
+
dataClass: "closed-enum",
|
|
1147
|
+
required: true,
|
|
1148
|
+
values: [
|
|
1149
|
+
"read",
|
|
1150
|
+
"glob",
|
|
1151
|
+
"grep",
|
|
1152
|
+
"list",
|
|
1153
|
+
"edit",
|
|
1154
|
+
"shell",
|
|
1155
|
+
"webfetch",
|
|
1156
|
+
"websearch",
|
|
1157
|
+
"skill",
|
|
1158
|
+
"subagent",
|
|
1159
|
+
"question",
|
|
1160
|
+
"todowrite",
|
|
1161
|
+
"execute",
|
|
1162
|
+
"external_directory",
|
|
1163
|
+
"doom_loop",
|
|
1164
|
+
"opencode_session_move",
|
|
1165
|
+
"opencode_worktree_create",
|
|
1166
|
+
"mcp",
|
|
1167
|
+
"other",
|
|
1168
|
+
],
|
|
1169
|
+
},
|
|
1170
|
+
effect: {
|
|
1171
|
+
type: "string",
|
|
1172
|
+
dataClass: "closed-enum",
|
|
1173
|
+
required: true,
|
|
1174
|
+
values: ["allow", "deny", "ask"],
|
|
1175
|
+
},
|
|
1176
|
+
outcome: {
|
|
1177
|
+
type: "string",
|
|
1178
|
+
dataClass: "closed-enum",
|
|
1179
|
+
required: true,
|
|
1180
|
+
values: [
|
|
1181
|
+
"allowed",
|
|
1182
|
+
"mode-denied",
|
|
1183
|
+
"unsupported-action",
|
|
1184
|
+
"workspace-escape",
|
|
1185
|
+
"sensitive-path",
|
|
1186
|
+
"linked-file",
|
|
1187
|
+
"delivery-reserved",
|
|
1188
|
+
"approved",
|
|
1189
|
+
"denied",
|
|
1190
|
+
"expired",
|
|
1191
|
+
"cancelled",
|
|
1192
|
+
"unavailable",
|
|
1193
|
+
"authority-refused",
|
|
1194
|
+
],
|
|
1195
|
+
},
|
|
1196
|
+
sessionRelation: {
|
|
1197
|
+
type: "string",
|
|
1198
|
+
dataClass: "closed-enum",
|
|
1199
|
+
required: false,
|
|
1200
|
+
values: ["primary", "child"],
|
|
1201
|
+
},
|
|
1202
|
+
// #3903 AC4: how an approved Code Mode `worktree_create` ended at the managed owner.
|
|
1203
|
+
worktree: {
|
|
1204
|
+
type: "string",
|
|
1205
|
+
dataClass: "closed-enum",
|
|
1206
|
+
required: false,
|
|
1207
|
+
values: ["provisioned", "resumed", "unavailable", "workspace-changed", "provision-failed"],
|
|
1208
|
+
},
|
|
1209
|
+
risk: {
|
|
1210
|
+
type: "string",
|
|
1211
|
+
dataClass: "closed-enum",
|
|
1212
|
+
required: false,
|
|
1213
|
+
values: ["low", "medium", "high", "critical"],
|
|
1214
|
+
},
|
|
1215
|
+
resourceCount: { type: "integer", dataClass: "count", required: true },
|
|
1216
|
+
resourceDigest: { type: "string", dataClass: "digest", required: true, maxLength: 64 },
|
|
1217
|
+
requestId: { type: "string", dataClass: "opaque-id", required: false, maxLength: 128 },
|
|
1218
|
+
// Why the live authority refused an allowed effect (outcome `authority-refused`): the budget,
|
|
1219
|
+
// an expired or revoked envelope, a class outside it, a drifted binding, or no owner at all.
|
|
1220
|
+
authorityReason: {
|
|
1221
|
+
type: "string",
|
|
1222
|
+
dataClass: "closed-enum",
|
|
1223
|
+
required: false,
|
|
1224
|
+
values: [
|
|
1225
|
+
"authority-budget-exceeded",
|
|
1226
|
+
"authority-expired",
|
|
1227
|
+
"revoked",
|
|
1228
|
+
"authority-resolution-failed",
|
|
1229
|
+
"action-not-authorized",
|
|
1230
|
+
"drift",
|
|
1231
|
+
"unavailable",
|
|
1232
|
+
"other",
|
|
1233
|
+
],
|
|
1234
|
+
},
|
|
1235
|
+
// How an admitted check was accounted against the run's tool-call budget: the invocation's
|
|
1236
|
+
// call reserved now, found reserved by an earlier check of the same invocation, or a check
|
|
1237
|
+
// that names no tool invocation and was charged on its own.
|
|
1238
|
+
invocationCharge: {
|
|
1239
|
+
type: "string",
|
|
1240
|
+
dataClass: "closed-enum",
|
|
1241
|
+
required: false,
|
|
1242
|
+
values: ["charged", "already-charged", "per-check"],
|
|
1243
|
+
},
|
|
1244
|
+
// The UTF-8 size of the producer's diff for a proposed edit, charged to the patch budget.
|
|
1245
|
+
patchBytes: { type: "integer", dataClass: "count", required: false },
|
|
1246
|
+
},
|
|
1247
|
+
causal: "correlation",
|
|
1248
|
+
lifecycle: "state",
|
|
1249
|
+
analyzerProjection: "timeline",
|
|
1250
|
+
failureClasses: ["coding-runtime-native-policy"],
|
|
1251
|
+
proofIds: ["coding-runtime.native-policy.decided.emitted-line"],
|
|
1252
|
+
releaseImpact: "minor",
|
|
1253
|
+
});
|
|
1254
|
+
/** The closed log word of a refusal reason; every binding drift is one word, anything else `other`. */
|
|
1255
|
+
export function nativeAuthorityReasonLogValue(reason) {
|
|
1256
|
+
switch (reason) {
|
|
1257
|
+
case "authority-budget-exceeded":
|
|
1258
|
+
case "authority-expired":
|
|
1259
|
+
case "revoked":
|
|
1260
|
+
case "authority-resolution-failed":
|
|
1261
|
+
case "action-not-authorized":
|
|
1262
|
+
case "unavailable":
|
|
1263
|
+
return reason;
|
|
1264
|
+
default:
|
|
1265
|
+
return reason.endsWith("-drift") ? "drift" : "other";
|
|
1266
|
+
}
|
|
1267
|
+
}
|
|
1268
|
+
function authorityEvidenceFields(authority) {
|
|
1269
|
+
return {
|
|
1270
|
+
...(authority?.charge === undefined ? {} : { invocationCharge: authority.charge }),
|
|
1271
|
+
...(authority?.reason === undefined
|
|
1272
|
+
? {}
|
|
1273
|
+
: { authorityReason: nativeAuthorityReasonLogValue(authority.reason) }),
|
|
1274
|
+
};
|
|
1275
|
+
}
|
|
1276
|
+
export function recordOpenCodeNativePolicyDecision(sink, runId, input) {
|
|
1277
|
+
const { request, decision } = input;
|
|
1278
|
+
const risk = decision.classification?.risk;
|
|
1279
|
+
const requestId = decision.effect === "ask" ? decision.event.requestId : undefined;
|
|
1280
|
+
sink.write(activityLogEvent(CODING_RUNTIME_NATIVE_POLICY_DECIDED_OPERATION, { correlationId: runId, level: decision.effect === "deny" ? "warn" : "info" }, {
|
|
1281
|
+
mode: isCodingWorkbenchMode(input.mode) ? input.mode : "unknown",
|
|
1282
|
+
permission: loggedPermission(request, decision),
|
|
1283
|
+
effect: decision.effect,
|
|
1284
|
+
outcome: input.outcome,
|
|
1285
|
+
...(input.sessionRelation === undefined ? {} : { sessionRelation: input.sessionRelation }),
|
|
1286
|
+
...(risk === undefined ? {} : { risk }),
|
|
1287
|
+
resourceCount: request.resources.length,
|
|
1288
|
+
resourceDigest: createHash("sha256")
|
|
1289
|
+
.update(JSON.stringify(request.resources), "utf8")
|
|
1290
|
+
.digest("hex"),
|
|
1291
|
+
...(requestId === undefined ? {} : { requestId }),
|
|
1292
|
+
...(request.patchBytes === undefined ? {} : { patchBytes: request.patchBytes }),
|
|
1293
|
+
...(input.worktree === undefined ? {} : { worktree: input.worktree }),
|
|
1294
|
+
...authorityEvidenceFields(input.authority),
|
|
1295
|
+
}));
|
|
1296
|
+
}
|