@oscharko-dev/keiko 0.2.14 → 0.2.15-beta.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/dist/cli/index.js +5 -1
- package/dist/ui/csp-hashes.json +22 -20
- package/dist/ui/static/404.html +1 -1
- package/dist/ui/static/__next.__PAGE__.txt +3 -2
- package/dist/ui/static/__next._full.txt +5 -4
- package/dist/ui/static/__next._head.txt +1 -1
- package/dist/ui/static/__next._index.txt +2 -2
- package/dist/ui/static/__next._tree.txt +3 -2
- package/dist/ui/static/_next/static/chunks/{123zys-86bw0i.js → 0-hm1epmd0vvp.js} +2 -2
- package/dist/ui/static/_next/static/chunks/0-nie22jfftce.js +1 -0
- package/dist/ui/static/_next/static/chunks/{2a-3r2qbe_809.css → 0-qseb2wmer78.css} +1 -1
- package/dist/ui/static/_next/static/chunks/000y5xkfxrexb.js +1 -0
- package/dist/ui/static/_next/static/chunks/04n0jyvhbwse0.js +3 -0
- package/dist/ui/static/_next/static/chunks/{1vxst1llijszw.css → 06g8ih2dqq37-.css} +2 -0
- package/dist/ui/static/_next/static/chunks/09zf3viokcug_.js +1 -0
- package/dist/ui/static/_next/static/chunks/0ek7qny6nvx32.js +1 -0
- package/dist/ui/static/_next/static/chunks/0jr_cphx8hvbd.js +1 -0
- package/dist/ui/static/_next/static/chunks/0k2hrhrg7zaxr.css +2 -0
- package/dist/ui/static/_next/static/chunks/0key6yz2nwv1w.js +1 -0
- package/dist/ui/static/_next/static/chunks/{36hhu5fz-cazp.css → 0m2g5mxpxz5bf.css} +0 -1
- package/dist/ui/static/_next/static/chunks/0p--md5gidwqw.css +1 -0
- package/dist/ui/static/_next/static/chunks/0pxturz4u3v5r.js +1 -0
- package/dist/ui/static/_next/static/chunks/0x0m0m5iu-0ly.js +1 -0
- package/dist/ui/static/_next/static/chunks/0xhz_xxn2tczo.js +7 -0
- package/dist/ui/static/_next/static/chunks/10dmdvhb4utde.js +1 -0
- package/dist/ui/static/_next/static/chunks/10moz0ymn81np.js +3 -0
- package/dist/ui/static/_next/static/chunks/11qb8-eony27a.js +3 -0
- package/dist/ui/static/_next/static/chunks/1aggh7uo8r_su.js +1 -0
- package/dist/ui/static/_next/static/chunks/1as174pqalmxd.js +1 -0
- package/dist/ui/static/_next/static/chunks/1cc1ucdue756u.css +4 -0
- package/dist/ui/static/_next/static/chunks/1dcefxgr2fjdm.js +1 -0
- package/dist/ui/static/_next/static/chunks/1jgzrm0qfy0wq.js +1 -0
- package/dist/ui/static/_next/static/chunks/1mdx5ucu3mvuv.js +1 -0
- package/dist/ui/static/_next/static/chunks/1oio_ymps8kf6.js +1 -0
- package/dist/ui/static/_next/static/chunks/1xupi4n54sm4q.js +1 -0
- package/dist/ui/static/_next/static/chunks/20kz94-ix-3e0.js +1 -0
- package/dist/ui/static/_next/static/chunks/220gd36upw6he.js +1 -0
- package/dist/ui/static/_next/static/chunks/24d3vudf0ytnw.js +1 -0
- package/dist/ui/static/_next/static/chunks/274ri2ykilzrp.js +1 -0
- package/dist/ui/static/_next/static/chunks/27g-6g463o035.css +1 -0
- package/dist/ui/static/_next/static/chunks/28420r7gnkuzv.js +1 -0
- package/dist/ui/static/_next/static/chunks/2941aafg40ql0.js +1 -0
- package/dist/ui/static/_next/static/chunks/2a9nbowpmp305.js +1 -0
- package/dist/ui/static/_next/static/chunks/2e37sp-k03pmk.js +1 -0
- package/dist/ui/static/_next/static/chunks/2mumzjpth81in.js +1 -0
- package/dist/ui/static/_next/static/chunks/2qhf0ow8i7lw0.js +1 -0
- package/dist/ui/static/_next/static/chunks/2ry589yenpqj_.js +1 -0
- package/dist/ui/static/_next/static/chunks/2ucwk5tch543h.js +9 -0
- package/dist/ui/static/_next/static/chunks/2x3qcv49nf_nm.js +1 -0
- package/dist/ui/static/_next/static/chunks/3-3dirqkmw72_.js +1 -0
- package/dist/ui/static/_next/static/chunks/3-g8i45sekw_v.js +1 -0
- package/dist/ui/static/_next/static/chunks/339h8ujx2ptw8.js +1 -0
- package/dist/ui/static/_next/static/chunks/396bv09y0f-w1.js +1 -0
- package/dist/ui/static/_next/static/chunks/3_jb__9txhm-l.js +1 -0
- package/dist/ui/static/_next/static/chunks/3bjg-ia5akguz.js +1 -0
- package/dist/ui/static/_next/static/chunks/3hj42lmlmkfgp.js +1 -0
- package/dist/ui/static/_next/static/chunks/{3m-1c900pj68k.css → 3j1bzq0oqvto8.css} +1 -1
- package/dist/ui/static/_next/static/chunks/3j4_75b0bh7j_.js +1 -0
- package/dist/ui/static/_next/static/chunks/3k6e3iwlodqkf.js +1 -0
- package/dist/ui/static/_next/static/chunks/3l9x0buut4hsk.js +1 -0
- package/dist/ui/static/_next/static/chunks/3lsudvg7qsr99.js +1 -0
- package/dist/ui/static/_next/static/chunks/3ox9ts5akzj1b.js +1 -0
- package/dist/ui/static/_next/static/chunks/3r0n7mf7ly9wn.css +1 -0
- package/dist/ui/static/_next/static/chunks/{1gfpvwq1457h1.css → 3s4w0yl_p2lcg.css} +8 -5
- package/dist/ui/static/_next/static/chunks/3upg_hi1chrde.js +1 -0
- package/dist/ui/static/_next/static/chunks/3y0rm2gskoyi0.js +1 -0
- package/dist/ui/static/_next/static/chunks/{39i473yj1crf3.css → 40zvqgo8jkl9z.css} +3 -3
- package/dist/ui/static/_next/static/chunks/41ami_rpr1rw0.js +1 -0
- package/dist/ui/static/_next/static/chunks/{40vi2j6pfvb_h.js → 44c8jtl5ihqav.js} +1 -1
- package/dist/ui/static/_not-found/__next._full.txt +3 -3
- package/dist/ui/static/_not-found/__next._head.txt +1 -1
- package/dist/ui/static/_not-found/__next._index.txt +2 -2
- package/dist/ui/static/_not-found/__next._not-found.__PAGE__.txt +1 -1
- package/dist/ui/static/_not-found/__next._not-found.txt +1 -1
- package/dist/ui/static/_not-found/__next._tree.txt +2 -2
- package/dist/ui/static/_not-found.html +1 -1
- package/dist/ui/static/_not-found.txt +3 -3
- package/dist/ui/static/index.html +1 -1
- package/dist/ui/static/index.txt +5 -4
- package/dist/ui/static/launch/__next._full.txt +5 -4
- package/dist/ui/static/launch/__next._head.txt +1 -1
- package/dist/ui/static/launch/__next._index.txt +2 -2
- package/dist/ui/static/launch/__next._tree.txt +3 -2
- package/dist/ui/static/launch/__next.launch.__PAGE__.txt +3 -2
- package/dist/ui/static/launch/__next.launch.txt +1 -1
- package/dist/ui/static/launch.html +1 -1
- package/dist/ui/static/launch.txt +5 -4
- package/dist/ui/static/local-knowledge/__next._full.txt +9 -7
- package/dist/ui/static/local-knowledge/__next._head.txt +1 -1
- package/dist/ui/static/local-knowledge/__next._index.txt +2 -2
- package/dist/ui/static/local-knowledge/__next._tree.txt +3 -2
- package/dist/ui/static/local-knowledge/__next.local-knowledge.__PAGE__.txt +3 -2
- package/dist/ui/static/local-knowledge/__next.local-knowledge.txt +1 -1
- package/dist/ui/static/local-knowledge/capsule/__next._full.txt +10 -11
- package/dist/ui/static/local-knowledge/capsule/__next._head.txt +1 -1
- package/dist/ui/static/local-knowledge/capsule/__next._index.txt +2 -2
- 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 +5 -4
- package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.capsule.txt +1 -1
- package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.txt +1 -1
- package/dist/ui/static/local-knowledge/capsule.html +1 -1
- package/dist/ui/static/local-knowledge/capsule.txt +10 -11
- package/dist/ui/static/local-knowledge.html +1 -1
- package/dist/ui/static/local-knowledge.txt +9 -7
- package/dist/ui/static/manifest.webmanifest +1 -1
- package/dist/ui/static/memoriaviva/__next._full.txt +3 -3
- package/dist/ui/static/memoriaviva/__next._head.txt +1 -1
- package/dist/ui/static/memoriaviva/__next._index.txt +2 -2
- package/dist/ui/static/memoriaviva/__next._tree.txt +2 -2
- package/dist/ui/static/memoriaviva/__next.memoriaviva.__PAGE__.txt +1 -1
- package/dist/ui/static/memoriaviva/__next.memoriaviva.txt +1 -1
- package/dist/ui/static/memoriaviva/consolidation/__next._full.txt +3 -3
- package/dist/ui/static/memoriaviva/consolidation/__next._head.txt +1 -1
- package/dist/ui/static/memoriaviva/consolidation/__next._index.txt +2 -2
- package/dist/ui/static/memoriaviva/consolidation/__next._tree.txt +2 -2
- package/dist/ui/static/memoriaviva/consolidation/__next.memoriaviva.consolidation.__PAGE__.txt +1 -1
- package/dist/ui/static/memoriaviva/consolidation/__next.memoriaviva.consolidation.txt +1 -1
- package/dist/ui/static/memoriaviva/consolidation/__next.memoriaviva.txt +1 -1
- package/dist/ui/static/memoriaviva/consolidation.html +1 -1
- package/dist/ui/static/memoriaviva/consolidation.txt +3 -3
- package/dist/ui/static/memoriaviva/detail/__next._full.txt +3 -3
- package/dist/ui/static/memoriaviva/detail/__next._head.txt +1 -1
- package/dist/ui/static/memoriaviva/detail/__next._index.txt +2 -2
- package/dist/ui/static/memoriaviva/detail/__next._tree.txt +2 -2
- package/dist/ui/static/memoriaviva/detail/__next.memoriaviva.detail.__PAGE__.txt +1 -1
- package/dist/ui/static/memoriaviva/detail/__next.memoriaviva.detail.txt +1 -1
- package/dist/ui/static/memoriaviva/detail/__next.memoriaviva.txt +1 -1
- package/dist/ui/static/memoriaviva/detail.html +1 -1
- package/dist/ui/static/memoriaviva/detail.txt +3 -3
- package/dist/ui/static/memoriaviva/health-scan/__next._full.txt +18 -0
- package/dist/ui/static/memoriaviva/health-scan/__next._head.txt +6 -0
- package/dist/ui/static/memoriaviva/health-scan/__next._index.txt +6 -0
- package/dist/ui/static/memoriaviva/health-scan/__next._tree.txt +3 -0
- package/dist/ui/static/memoriaviva/health-scan/__next.memoriaviva.health-scan.__PAGE__.txt +6 -0
- package/dist/ui/static/memoriaviva/health-scan/__next.memoriaviva.health-scan.txt +5 -0
- package/dist/ui/static/memoriaviva/health-scan/__next.memoriaviva.txt +5 -0
- package/dist/ui/static/memoriaviva/health-scan.html +1 -0
- package/dist/ui/static/memoriaviva/health-scan.txt +18 -0
- package/dist/ui/static/memoriaviva/review-queue/__next._full.txt +3 -3
- package/dist/ui/static/memoriaviva/review-queue/__next._head.txt +1 -1
- package/dist/ui/static/memoriaviva/review-queue/__next._index.txt +2 -2
- package/dist/ui/static/memoriaviva/review-queue/__next._tree.txt +2 -2
- package/dist/ui/static/memoriaviva/review-queue/__next.memoriaviva.review-queue.__PAGE__.txt +1 -1
- package/dist/ui/static/memoriaviva/review-queue/__next.memoriaviva.review-queue.txt +1 -1
- package/dist/ui/static/memoriaviva/review-queue/__next.memoriaviva.txt +1 -1
- package/dist/ui/static/memoriaviva/review-queue.html +1 -1
- package/dist/ui/static/memoriaviva/review-queue.txt +3 -3
- package/dist/ui/static/memoriaviva.html +1 -1
- package/dist/ui/static/memoriaviva.txt +3 -3
- package/dist/ui/static/sw.js +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/context.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/context.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/context.js +14 -12
- package/node_modules/@oscharko-dev/keiko-cli/dist/doctor.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/doctor.js +2 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/evaluate.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-cli/dist/evaluate.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/evaluate.js +52 -40
- package/node_modules/@oscharko-dev/keiko-cli/dist/evidence.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-cli/dist/evidence.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/evidence.js +17 -15
- package/node_modules/@oscharko-dev/keiko-cli/dist/gateway-config.d.ts +3 -2
- package/node_modules/@oscharko-dev/keiko-cli/dist/gateway-config.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/gateway-config.js +16 -4
- package/node_modules/@oscharko-dev/keiko-cli/dist/gen-tests.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-cli/dist/gen-tests.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/gen-tests.js +29 -25
- package/node_modules/@oscharko-dev/keiko-cli/dist/index.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/index.js +2 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/investigate.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-cli/dist/investigate.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/investigate.js +38 -34
- package/node_modules/@oscharko-dev/keiko-cli/dist/lazy-modules.d.ts +13 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/lazy-modules.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/lazy-modules.js +22 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/lifecycle.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/lifecycle.js +14 -2
- package/node_modules/@oscharko-dev/keiko-cli/dist/memory.d.ts +3 -3
- package/node_modules/@oscharko-dev/keiko-cli/dist/memory.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/memory.js +32 -19
- package/node_modules/@oscharko-dev/keiko-cli/dist/models.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-cli/dist/models.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/models.js +11 -9
- package/node_modules/@oscharko-dev/keiko-cli/dist/portable-install.d.ts +56 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/portable-install.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/portable-install.js +442 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/portable-maintenance.d.ts +29 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/portable-maintenance.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/portable-maintenance.js +282 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/portable-registration.d.ts +48 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/portable-registration.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/portable-registration.js +228 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/portable-root-policy.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/portable-root-policy.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/portable-root-policy.js +102 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/portable-shared.d.ts +41 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/portable-shared.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/portable-shared.js +70 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/portable.d.ts +18 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/portable.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/portable.js +203 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/process-guards.d.ts +7 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/process-guards.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/process-guards.js +33 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/prompt-enhancer.d.ts +5 -4
- package/node_modules/@oscharko-dev/keiko-cli/dist/prompt-enhancer.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/prompt-enhancer.js +34 -26
- package/node_modules/@oscharko-dev/keiko-cli/dist/repair.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/repair.js +70 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/run.d.ts +3 -3
- package/node_modules/@oscharko-dev/keiko-cli/dist/run.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/run.js +53 -51
- package/node_modules/@oscharko-dev/keiko-cli/dist/runner.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/runner.js +10 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/state-paths.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/state-paths.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/state-paths.js +11 -3
- package/node_modules/@oscharko-dev/keiko-cli/dist/tool-shaper.d.ts +2 -3
- package/node_modules/@oscharko-dev/keiko-cli/dist/tool-shaper.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/tool-shaper.js +14 -18
- package/node_modules/@oscharko-dev/keiko-cli/dist/ui.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-cli/dist/ui.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/ui.js +77 -16
- package/node_modules/@oscharko-dev/keiko-cli/dist/uninstall.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/uninstall.js +38 -2
- package/node_modules/@oscharko-dev/keiko-cli/dist/update-output.d.ts +3 -2
- package/node_modules/@oscharko-dev/keiko-cli/dist/update-output.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/update-output.js +33 -9
- package/node_modules/@oscharko-dev/keiko-cli/dist/update.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/update.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/update.js +76 -31
- package/node_modules/@oscharko-dev/keiko-cli/dist/verify.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/verify.js +20 -8
- package/node_modules/@oscharko-dev/keiko-cli/package.json +14 -14
- package/node_modules/@oscharko-dev/keiko-contracts/dist/bff-wire.d.ts +31 -15
- 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 +7 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-codex-auth.d.ts +66 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-codex-auth.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-codex-auth.js +228 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-evidence.d.ts +29 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-evidence.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-evidence.js +411 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-validation.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-validation.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-validation.js +749 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench.d.ts +187 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench.js +202 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/documentation-browser.d.ts +2 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/documentation-browser.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/documentation-browser.js +24 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/documentation-manual-proposal.d.ts +152 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/documentation-manual-proposal.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/documentation-manual-proposal.js +580 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/editor-layout.d.ts +6 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/editor-layout.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/editor-layout.js +50 -11
- package/node_modules/@oscharko-dev/keiko-contracts/dist/html-manual-refresh.d.ts +31 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/html-manual-refresh.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/html-manual-refresh.js +183 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/html-manual-source.d.ts +56 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/html-manual-source.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/html-manual-source.js +277 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts +35 -12
- package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/index.js +20 -8
- package/node_modules/@oscharko-dev/keiko-contracts/dist/language-service.d.ts +113 -2
- package/node_modules/@oscharko-dev/keiko-contracts/dist/language-service.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/language-service.js +145 -16
- package/node_modules/@oscharko-dev/keiko-contracts/dist/local-knowledge-embedding-profiles.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/local-knowledge-embedding-profiles.js +7 -2
- package/node_modules/@oscharko-dev/keiko-contracts/dist/local-knowledge-file-selection.d.ts +21 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/local-knowledge-file-selection.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/local-knowledge-file-selection.js +106 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/local-knowledge-model-use-policy.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/local-knowledge-model-use-policy.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/local-knowledge-pods.d.ts +7 -3
- package/node_modules/@oscharko-dev/keiko-contracts/dist/local-knowledge-pods.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/local-knowledge-pods.js +102 -14
- package/node_modules/@oscharko-dev/keiko-contracts/dist/local-knowledge-records.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/local-knowledge-records.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/local-knowledge-retrieval-activity.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/local-knowledge-retrieval-activity.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/local-knowledge-retrieval-activity.js +29 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/local-knowledge-schema.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/local-knowledge-schema.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/local-knowledge-schema.js +137 -3
- package/node_modules/@oscharko-dev/keiko-contracts/dist/memory-barrel.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/memory-barrel.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/memory-barrel.js +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/memory-consolidation-wire.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/memory-consolidation-wire.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/memory-health-scan-wire.d.ts +22 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/memory-health-scan-wire.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/memory-health-scan-wire.js +16 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/memory.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/memory.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/memory.js +40 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/native-file-dialog.d.ts +47 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/native-file-dialog.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/native-file-dialog.js +206 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/update-local-state.d.ts +18 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/update-local-state.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/update-local-state.js +5 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/update-preflight.d.ts +29 -2
- package/node_modules/@oscharko-dev/keiko-contracts/dist/update-preflight.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/update-preflight.js +30 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/update-session.d.ts +87 -2
- package/node_modules/@oscharko-dev/keiko-contracts/dist/update-session.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/update-session.js +70 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/voice-session-recap.d.ts +50 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/voice-session-recap.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/voice-session-recap.js +93 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/workspace-search.d.ts +113 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/workspace-search.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/workspace-search.js +224 -0
- package/node_modules/@oscharko-dev/keiko-contracts/package.json +5 -1
- package/node_modules/@oscharko-dev/keiko-evaluations/package.json +9 -9
- package/node_modules/@oscharko-dev/keiko-evidence/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-evidence/dist/version.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-evidence/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-evidence/package.json +4 -4
- package/node_modules/@oscharko-dev/keiko-git/dist/classify.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-git/dist/classify.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-git/dist/classify.js +18 -0
- package/node_modules/@oscharko-dev/keiko-git/dist/env.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-git/dist/env.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-git/dist/env.js +85 -0
- package/node_modules/@oscharko-dev/keiko-git/dist/index.d.ts +6 -0
- package/node_modules/@oscharko-dev/keiko-git/dist/index.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-git/dist/index.js +8 -0
- package/node_modules/@oscharko-dev/keiko-git/dist/resolve.d.ts +44 -0
- package/node_modules/@oscharko-dev/keiko-git/dist/resolve.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-git/dist/resolve.js +67 -0
- package/node_modules/@oscharko-dev/keiko-git/dist/runner.d.ts +6 -0
- package/node_modules/@oscharko-dev/keiko-git/dist/runner.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-git/dist/runner.js +126 -0
- package/node_modules/@oscharko-dev/keiko-git/dist/types.d.ts +21 -0
- package/node_modules/@oscharko-dev/keiko-git/dist/types.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-git/dist/types.js +4 -0
- package/node_modules/@oscharko-dev/keiko-git/package.json +32 -0
- package/node_modules/@oscharko-dev/keiko-harness/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-harness/dist/version.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-harness/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-harness/package.json +6 -6
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/capsule-lifecycle.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/capsule-lifecycle.js +1 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/chunking/chunker-persist.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/chunking/chunker-persist.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/chunking/chunker-persist.js +11 -2
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/chunking/chunker-runner.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/chunking/chunker-runner.js +3 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/chunking/chunker.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/chunking/chunker.js +15 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/chunking/citation-mapper.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/chunking/citation-mapper.js +7 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/chunking/types.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/chunking/types.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/chunking/types.js +6 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/composition.d.ts +2 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/composition.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/composition.js +1 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/conversation/model-gateway-answer-generator.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/conversation/model-gateway-answer-generator.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/conversation/model-gateway-answer-generator.js +11 -2
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/crawl/crawl-runner.d.ts +10 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/crawl/crawl-runner.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/crawl/crawl-runner.js +185 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/crawl/fetchers.d.ts +15 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/crawl/fetchers.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/crawl/fetchers.js +79 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/crawl/index.d.ts +7 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/crawl/index.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/crawl/index.js +10 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/crawl/link-extract.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/crawl/link-extract.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/crawl/link-extract.js +97 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/crawl/manual-fixtures.d.ts +8 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/crawl/manual-fixtures.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/crawl/manual-fixtures.js +125 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/crawl/manual-page-fs.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/crawl/manual-page-fs.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/crawl/manual-page-fs.js +73 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/crawl/scope-guard.d.ts +20 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/crawl/scope-guard.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/crawl/scope-guard.js +198 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/crawl/types.d.ts +70 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/crawl/types.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/crawl/types.js +10 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/discovery/persist.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/discovery/persist.js +16 -8
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/discovery/walk.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/discovery/walk.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/discovery/walk.js +4 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/evaluations/comparison.d.ts +20 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/evaluations/comparison.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/evaluations/comparison.js +141 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/evaluations/fixtures.d.ts +11 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/evaluations/fixtures.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/evaluations/fixtures.js +1115 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/evaluations/index.d.ts +3 -2
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/evaluations/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/evaluations/index.js +2 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/evaluations/report.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/evaluations/report.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/evaluations/report.js +34 -2
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/evaluations/runner-seed.js +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/evaluations/runner.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/evaluations/runner.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/evaluations/runner.js +69 -9
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/evaluations/types.d.ts +12 -2
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/evaluations/types.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/index.d.ts +8 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/index.js +17 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/lexical-index-persist.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/lexical-index-persist.js +5 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/orchestrator.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/orchestrator.js +151 -6
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/knowledge-pods.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/knowledge-pods.js +91 -13
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/manual-page-fingerprints.d.ts +12 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/manual-page-fingerprints.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/manual-page-fingerprints.js +82 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/manual-pod-progress.d.ts +31 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/manual-pod-progress.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/manual-pod-progress.js +97 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/manual-pod-refresh.d.ts +33 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/manual-pod-refresh.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/manual-pod-refresh.js +209 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/manual-pod.d.ts +35 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/manual-pod.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/manual-pod.js +133 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/manual-refresh-change-summary.d.ts +15 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/manual-refresh-change-summary.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/manual-refresh-change-summary.js +182 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/manual-source-metadata.d.ts +46 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/manual-source-metadata.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/manual-source-metadata.js +202 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/model-use-policy.js +0 -2
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/_internal.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/_internal.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/_internal.js +65 -9
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/csv-parser.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/csv-parser.js +3 -2
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/docx-parser.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/docx-parser.js +4 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/html-parser.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/html-parser.js +552 -29
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/json-parser.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/json-parser.js +3 -2
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/pdf-parser.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/pdf-parser.js +3 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/text-parser.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/text-parser.js +2 -45
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/types.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/types.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/types.js +6 -3
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/xlsx-parser.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/xlsx-parser.js +7 -5
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/lexical-normalization.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/lexical-normalization.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/lexical-normalization.js +9 -2
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/query-decomposition.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/query-decomposition.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/query-decomposition.js +67 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/retrieval-runner.js +11 -8
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/scoped-vector-search.d.ts +2 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/scoped-vector-search.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/scoped-vector-search.js +339 -96
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/types.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/types.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/store-content-encryption.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/store-content-encryption.js +1 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/package.json +5 -5
- package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-capture/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/index.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/types.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/types.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-consolidation/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-memory-governance/dist/conflict.d.ts +3 -1
- package/node_modules/@oscharko-dev/keiko-memory-governance/dist/conflict.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-governance/dist/conflict.js +6 -2
- package/node_modules/@oscharko-dev/keiko-memory-governance/dist/health-scan.d.ts +43 -0
- package/node_modules/@oscharko-dev/keiko-memory-governance/dist/health-scan.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-memory-governance/dist/health-scan.js +274 -0
- package/node_modules/@oscharko-dev/keiko-memory-governance/dist/index.d.ts +2 -1
- package/node_modules/@oscharko-dev/keiko-memory-governance/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-governance/dist/index.js +3 -1
- package/node_modules/@oscharko-dev/keiko-memory-governance/dist/maintenance.d.ts +3 -2
- package/node_modules/@oscharko-dev/keiko-memory-governance/dist/maintenance.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-governance/dist/maintenance.js +13 -3
- package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-governance/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-retrieval/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-vault/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/config.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/config.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/config.js +4 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/egress-policy.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/egress-policy.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/egress-policy.js +95 -14
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/embedding.d.ts +3 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/embedding.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/embedding.js +18 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/gateway.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/gateway.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/gateway.js +3 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/http.d.ts +4 -1
- 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 +128 -19
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/index.d.ts +2 -2
- 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 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/model-selection.d.ts +6 -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 +99 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-adapter.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-adapter.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-adapter.js +31 -4
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/resilience.d.ts +1 -1
- 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 +32 -16
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/types.d.ts +1 -0
- 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.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-quality-intelligence/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-sandbox/package.json +2 -2
- package/node_modules/@oscharko-dev/keiko-sdk/package.json +9 -9
- package/node_modules/@oscharko-dev/keiko-security/dist/errors/gateway.d.ts +7 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/errors/gateway.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/errors/gateway.js +13 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/version.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-security/package.json +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-handlers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-handlers.js +3 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-stream-handlers.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-stream-handlers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-stream-handlers.js +40 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-codex-subscription.d.ts +8 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-codex-subscription.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-codex-subscription.js +173 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/codeContextConnector.d.ts +99 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/codeContextConnector.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/codeContextConnector.js +164 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/codingContextRoutes.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/codingContextRoutes.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/codingContextRoutes.js +247 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/githubCodeContextConnector.d.ts +10 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/githubCodeContextConnector.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/githubCodeContextConnector.js +60 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/githubCodeContextPort.d.ts +16 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/githubCodeContextPort.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/githubCodeContextPort.js +103 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/jiraCodeContextConnector.d.ts +12 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/jiraCodeContextConnector.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/jiraCodeContextConnector.js +90 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/jiraCodeContextPort.d.ts +18 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/jiraCodeContextPort.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/jiraCodeContextPort.js +115 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/autonomousDeliveryApprovalStore.d.ts +8 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/autonomousDeliveryApprovalStore.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/autonomousDeliveryApprovalStore.js +54 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/autonomousDeliveryPolicy.d.ts +75 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/autonomousDeliveryPolicy.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/autonomousDeliveryPolicy.js +252 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/autonomousDeliveryRoutes.d.ts +6 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/autonomousDeliveryRoutes.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/autonomousDeliveryRoutes.js +436 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeManager.d.ts +121 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeManager.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeManager.js +722 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingSidecarEventParser.d.ts +43 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingSidecarEventParser.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingSidecarEventParser.js +203 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/supervisedCodingApprovalStore.d.ts +53 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/supervisedCodingApprovalStore.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/supervisedCodingApprovalStore.js +104 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/supervisedCodingPolicy.d.ts +55 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/supervisedCodingPolicy.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/supervisedCodingPolicy.js +265 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-gateway.d.ts +19 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-gateway.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-gateway.js +332 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/command-runner-routes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/command-runner-routes.js +4 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/deps.d.ts +28 -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 +108 -10
- package/node_modules/@oscharko-dev/keiko-server/dist/diagnostics-log.d.ts +8 -0
- 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 +17 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/docs-browser-proposal.d.ts +37 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/docs-browser-proposal.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/docs-browser-proposal.js +211 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/docs-browser.d.ts +13 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/docs-browser.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/docs-browser.js +40 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/completionRoutes.d.ts +6 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/completionRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/languageProvider.d.ts +18 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/languageProvider.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/languageProvider.js +9 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/languageRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/languageRoutes.js +25 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/languageSanitize.d.ts +7 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/languageSanitize.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/languageSanitize.js +95 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/languageService.d.ts +19 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/languageService.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/languageService.js +93 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/localKnowledgeRetrieval.js +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/lsp/hostLanguageOperation.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/lsp/hostLanguageOperation.js +0 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/lsp/lspFrameCodec.js +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/typescriptLanguageProvider.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/typescriptLanguageProvider.js +116 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/typescriptNavigationProvider.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/typescriptNavigationProvider.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/typescriptNavigationProvider.js +75 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/typescriptProjectService.d.ts +48 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/typescriptProjectService.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/typescriptProjectService.js +639 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/typescriptRefactoringProvider.d.ts +18 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/typescriptRefactoringProvider.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/typescriptRefactoringProvider.js +234 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/workspaceSearchRoutes.d.ts +7 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/workspaceSearchRoutes.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/workspaceSearchRoutes.js +608 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/files.d.ts +1 -16
- package/node_modules/@oscharko-dev/keiko-server/dist/files.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/files.js +8 -85
- 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 +33 -7
- package/node_modules/@oscharko-dev/keiko-server/dist/gitRepositoryReads.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitRepositoryReads.js +3 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/gitRepositoryRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitRepositoryRoutes.js +30 -52
- package/node_modules/@oscharko-dev/keiko-server/dist/gitRoutes.d.ts +3 -19
- package/node_modules/@oscharko-dev/keiko-server/dist/gitRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitRoutes.js +33 -194
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-git-history-evidence.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-git-history-evidence.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-git-history-evidence.js +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-hybrid.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-hybrid.js +85 -43
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-rerank.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-rerank.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-rerank.js +15 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/html-manual-citation-navigation.d.ts +23 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/html-manual-citation-navigation.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/html-manual-citation-navigation.js +79 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/index.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/index.js +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-grounded-qa.d.ts +10 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-grounded-qa.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-grounded-qa.js +247 -63
- package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-handlers.d.ts +1 -0
- 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 +119 -21
- package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-index-lifecycle.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-index-lifecycle.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-index-lifecycle.js +13 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/memory-conflict-advisory.d.ts +13 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/memory-conflict-advisory.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/memory-conflict-advisory.js +354 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/memory-consolidation-handlers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/memory-consolidation-handlers.js +56 -37
- package/node_modules/@oscharko-dev/keiko-server/dist/memory-health-scan-handlers.d.ts +10 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/memory-health-scan-handlers.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/memory-health-scan-handlers.js +90 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/memory-maintenance-handlers.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/memory-maintenance-handlers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/memory-maintenance-handlers.js +30 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/native-file-dialog/adapter.d.ts +28 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/native-file-dialog/adapter.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/native-file-dialog/adapter.js +299 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/native-file-dialog/route.d.ts +15 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/native-file-dialog/route.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/native-file-dialog/route.js +221 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/native-file-dialog/scripts.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/native-file-dialog/scripts.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/native-file-dialog/scripts.js +284 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/relationship-activity-broadcast.d.ts +28 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/relationship-activity-broadcast.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/relationship-activity-broadcast.js +122 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/relationship-handlers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/relationship-handlers.js +0 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/routes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/routes.js +88 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/runtime/containerRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/runtime/containerRoutes.js +4 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/server.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/server.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/server.js +13 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/sse-frame-cache.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/sse-frame-cache.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/sse-frame-cache.js +34 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/sse.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/sse.js +11 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/store/relationships.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/relationships.js +35 -14
- package/node_modules/@oscharko-dev/keiko-server/dist/store-handlers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store-handlers.js +4 -7
- package/node_modules/@oscharko-dev/keiko-server/dist/terminal-routes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/terminal-routes.js +4 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/update-install-mode.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-install-mode.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/update-install-mode.js +13 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-activation-files.d.ts +49 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-activation-files.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-activation-files.js +251 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-activation.d.ts +33 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-activation.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-activation.js +180 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-install-mode.d.ts +17 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-install-mode.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-install-mode.js +253 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-platform-verification.d.ts +10 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-platform-verification.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-platform-verification.js +152 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-sidecar-staging-verification.d.ts +6 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-sidecar-staging-verification.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-sidecar-staging-verification.js +77 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-sidecar-verification.d.ts +22 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-sidecar-verification.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-sidecar-verification.js +211 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-staging-archive.d.ts +22 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-staging-archive.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-staging-archive.js +318 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-staging-manifest.d.ts +13 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-staging-manifest.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-staging-manifest.js +264 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-staging-shared.d.ts +89 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-staging-shared.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-staging-shared.js +89 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-staging.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-staging.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-staging.js +154 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-portable-assets.d.ts +16 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-portable-assets.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-portable-assets.js +163 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-portable-evidence.d.ts +11 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-portable-evidence.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-portable-evidence.js +338 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-portable-shared.d.ts +16 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-portable-shared.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-portable-shared.js +20 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-registry.d.ts +11 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-registry.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-registry.js +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-report.d.ts +5 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-report.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-report.js +94 -8
- package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-routes.d.ts +3 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-routes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-routes.js +72 -12
- package/node_modules/@oscharko-dev/keiko-server/dist/update-session-support.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/update-session-support.js +24 -11
- package/node_modules/@oscharko-dev/keiko-server/dist/update-session.d.ts +6 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-session.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/update-session.js +105 -9
- package/node_modules/@oscharko-dev/keiko-server/dist/voice-realtime-memory-tool.d.ts +10 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/voice-realtime-memory-tool.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/voice-realtime-memory-tool.js +259 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/voice-realtime.d.ts +13 -2
- 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 +177 -65
- package/node_modules/@oscharko-dev/keiko-server/dist/voice-recap.d.ts +14 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/voice-recap.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/voice-recap.js +309 -0
- package/node_modules/@oscharko-dev/keiko-server/package.json +22 -20
- package/node_modules/@oscharko-dev/keiko-tools/dist/git-pr-node.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/git-pr-node.js +7 -3
- package/node_modules/@oscharko-dev/keiko-tools/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/version.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/package.json +5 -5
- package/node_modules/@oscharko-dev/keiko-verification/package.json +5 -5
- package/node_modules/@oscharko-dev/keiko-workflows/package.json +10 -10
- package/node_modules/@oscharko-dev/keiko-workspace/dist/boundedMemo.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/boundedMemo.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/boundedMemo.js +33 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/ecosystems.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-workspace/dist/ecosystems.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/ecosystems.js +13 -7
- package/node_modules/@oscharko-dev/keiko-workspace/dist/ignore.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/ignore.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/ignore.js +6 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchMatchers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchMatchers.js +12 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchPolicy.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchPolicy.js +5 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchRanking.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchRanking.js +22 -2
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchRegexSafety.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchRegexSafety.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchRegexSafety.js +4 -15
- package/node_modules/@oscharko-dev/keiko-workspace/dist/symbolGraphBuild.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/symbolGraphBuild.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/symbolGraphBuild.js +6 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/version.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/package.json +3 -3
- package/package.json +41 -24
- package/release-impact.catalog.json +179 -0
- package/dist/ui/static/_next/static/chunks/00z66zbbbra-j.js +0 -7
- package/dist/ui/static/_next/static/chunks/02_l1wz7apb4m.js +0 -1
- package/dist/ui/static/_next/static/chunks/05mbete4x08if.js +0 -1
- package/dist/ui/static/_next/static/chunks/09ywz8yq415ai.js +0 -1
- package/dist/ui/static/_next/static/chunks/0d3ewjc53gv11.js +0 -1
- package/dist/ui/static/_next/static/chunks/0jha10nx01h7c.js +0 -1
- package/dist/ui/static/_next/static/chunks/0keuk33oi9fdv.js +0 -1
- package/dist/ui/static/_next/static/chunks/111t4c8p4nk9n.js +0 -3
- package/dist/ui/static/_next/static/chunks/12xxilhesctf7.js +0 -1
- package/dist/ui/static/_next/static/chunks/15ol6gknrcj9o.js +0 -1
- package/dist/ui/static/_next/static/chunks/1_ng8jg-6ciaq.js +0 -3
- package/dist/ui/static/_next/static/chunks/1grd5vbipsubi.js +0 -1
- package/dist/ui/static/_next/static/chunks/1igav-cjacnb_.js +0 -1
- package/dist/ui/static/_next/static/chunks/1o5ovsj1be278.js +0 -1
- package/dist/ui/static/_next/static/chunks/1r5hnsrgkrath.js +0 -1
- package/dist/ui/static/_next/static/chunks/1sjgo6uy6df0v.js +0 -1
- package/dist/ui/static/_next/static/chunks/1v9fwgi-8jczy.js +0 -1
- package/dist/ui/static/_next/static/chunks/1y60fg6zia2hq.js +0 -1
- package/dist/ui/static/_next/static/chunks/2270hxhnwivx3.js +0 -1
- package/dist/ui/static/_next/static/chunks/25cvsxgpbwi98.js +0 -1
- package/dist/ui/static/_next/static/chunks/26jwaj4670i2v.js +0 -1
- package/dist/ui/static/_next/static/chunks/28l02a1t0uxna.js +0 -1
- package/dist/ui/static/_next/static/chunks/28qej8ky54qga.js +0 -1
- package/dist/ui/static/_next/static/chunks/2f1amg-1_tl_r.js +0 -1
- package/dist/ui/static/_next/static/chunks/2g1zahzx2_zkp.js +0 -9
- package/dist/ui/static/_next/static/chunks/2gnk0j313tzvx.js +0 -1
- package/dist/ui/static/_next/static/chunks/2qvc27ae-cxyz.js +0 -1
- package/dist/ui/static/_next/static/chunks/2qz6l6ap_rpqf.js +0 -1
- package/dist/ui/static/_next/static/chunks/2stntztshfb5l.js +0 -1
- package/dist/ui/static/_next/static/chunks/2tex1ymvmigb5.css +0 -3
- package/dist/ui/static/_next/static/chunks/2zj-bopeh14hq.js +0 -1
- package/dist/ui/static/_next/static/chunks/31j9gvgvefwqk.js +0 -3
- package/dist/ui/static/_next/static/chunks/3324vgiq57xc4.js +0 -1
- package/dist/ui/static/_next/static/chunks/369sd9fc1a7f6.js +0 -1
- package/dist/ui/static/_next/static/chunks/378i4_7vzijwf.js +0 -1
- package/dist/ui/static/_next/static/chunks/3boo9oww1wxe-.js +0 -1
- package/dist/ui/static/_next/static/chunks/3e9ez0whrt_3e.js +0 -1
- package/dist/ui/static/_next/static/chunks/3hpg1z2aetvpf.js +0 -1
- package/dist/ui/static/_next/static/chunks/3l2zqffqd-pl-.js +0 -1
- package/dist/ui/static/_next/static/chunks/3shz3yaz5sh5k.js +0 -1
- package/dist/ui/static/_next/static/chunks/3uf9j0-nj02sh.js +0 -1
- package/dist/ui/static/_next/static/chunks/3us1gpdrl_uxf.js +0 -1
- package/dist/ui/static/_next/static/chunks/3xx1mph9w-bxa.js +0 -1
- /package/dist/ui/static/_next/static/{jl8jH3yyn14ivcsupg7WV → OGP2hy74W91KbDwPVdTYP}/_buildManifest.js +0 -0
- /package/dist/ui/static/_next/static/{jl8jH3yyn14ivcsupg7WV → OGP2hy74W91KbDwPVdTYP}/_clientMiddlewareManifest.js +0 -0
- /package/dist/ui/static/_next/static/{jl8jH3yyn14ivcsupg7WV → OGP2hy74W91KbDwPVdTYP}/_ssgManifest.js +0 -0
|
@@ -15,7 +15,15 @@
|
|
|
15
15
|
// Emits one `html-block` ParsedUnit per visible-content run between heading boundaries.
|
|
16
16
|
// `headingPath` is set from the most recent `<h1>`-`<h6>` stack at the moment the block
|
|
17
17
|
// opens. Inline text outside any heading produces a `html-block` with `headingPath: []`.
|
|
18
|
-
|
|
18
|
+
//
|
|
19
|
+
// Technical-manual structure (Epic #1855): the `<title>` is captured as a searchable block,
|
|
20
|
+
// heading `id`/`name` anchors are stamped as `anchorId`, definition lists become "Term:
|
|
21
|
+
// definition" blocks, `<pre>`/`<code>` is preserved verbatim, `<frame>` targets are surfaced as
|
|
22
|
+
// redacted navigation references, and a declared `<meta charset>` is cross-checked against the
|
|
23
|
+
// decoded byte shape. All structure is emitted as decoded PLAINTEXT — `normalizedText` and every
|
|
24
|
+
// unit span remain markup-free (GRD-003).
|
|
25
|
+
import { decodeBytes, decodeXmlEntities, diagnostic, emptyResult, oversizeDiagnostic, readAttribute, shouldStop, } from "./_internal.js";
|
|
26
|
+
import { LOCAL_KNOWLEDGE_WEB_DOCUMENT_FILE_EXTENSIONS } from "@oscharko-dev/keiko-contracts";
|
|
19
27
|
// Collapse internal whitespace runs to single spaces and trim. Applied to each block's
|
|
20
28
|
// visible text so the cleaned projection reads as flowing prose (the raw HTML had source
|
|
21
29
|
// indentation / newlines between inline tags).
|
|
@@ -38,7 +46,7 @@ function collapseWhitespace(value) {
|
|
|
38
46
|
}
|
|
39
47
|
const PARSER_ID = "html";
|
|
40
48
|
const PARSER_VERSION = "1";
|
|
41
|
-
const HTML_EXTENSIONS = new Set(
|
|
49
|
+
const HTML_EXTENSIONS = new Set(LOCAL_KNOWLEDGE_WEB_DOCUMENT_FILE_EXTENSIONS);
|
|
42
50
|
const HTML_MEDIA_TYPES = new Set(["text/html", "application/xhtml+xml"]);
|
|
43
51
|
function isHtml(input) {
|
|
44
52
|
const ext = input.extension.toLowerCase();
|
|
@@ -53,6 +61,13 @@ function isHtml(input) {
|
|
|
53
61
|
return text.startsWith("<!doctype html") || text.startsWith("<html");
|
|
54
62
|
}
|
|
55
63
|
const RAW_TEXT_TAGS = new Set(["script", "style", "noscript"]);
|
|
64
|
+
// `<title>` inner text is captured once, structurally, by `readDocumentTitle` (before <main>
|
|
65
|
+
// narrowing). Skipping it in the body scan avoids emitting the title twice when a document has no
|
|
66
|
+
// <main> element and the head is therefore part of the scanned text.
|
|
67
|
+
const METADATA_TAGS = new Set(["title"]);
|
|
68
|
+
// Frame/nav-link containers whose `src` targets are surfaced as body-safe navigation references so
|
|
69
|
+
// a frameset table-of-contents is discoverable without executing scripts or following the link.
|
|
70
|
+
const FRAME_TAGS = new Set(["frame", "iframe"]);
|
|
56
71
|
const BOILERPLATE_TAGS = new Set(["nav", "footer", "aside"]);
|
|
57
72
|
const BOILERPLATE_HINTS = [
|
|
58
73
|
"cookie",
|
|
@@ -89,6 +104,42 @@ function skipSpecialMarker(text, after) {
|
|
|
89
104
|
}
|
|
90
105
|
return null;
|
|
91
106
|
}
|
|
107
|
+
// Quote-aware scan for a tag's terminating `>`. A single- or double-quoted attribute value may
|
|
108
|
+
// contain a literal `>` (e.g. `title="Section > Details"`); a bare `indexOf(">", from)` would
|
|
109
|
+
// mis-terminate the tag there, corrupting `tag.raw` and desynchronizing the scanner cursor for
|
|
110
|
+
// every subsequent event. This stays a single-pass character scan (no regex) so the CodeQL
|
|
111
|
+
// `js/bad-tag-filter` posture is preserved.
|
|
112
|
+
function findQuotedTagEnd(text, from) {
|
|
113
|
+
let quote = 0; // 0 = not in a quote, else the quote char code (0x22 `"` or 0x27 `'`)
|
|
114
|
+
for (let i = from; i < text.length; i += 1) {
|
|
115
|
+
const code = text.charCodeAt(i);
|
|
116
|
+
if (quote !== 0) {
|
|
117
|
+
if (code === quote)
|
|
118
|
+
quote = 0;
|
|
119
|
+
continue;
|
|
120
|
+
}
|
|
121
|
+
if (code === 0x22 || code === 0x27) {
|
|
122
|
+
quote = code;
|
|
123
|
+
continue;
|
|
124
|
+
}
|
|
125
|
+
if (code === 0x3e /* > */)
|
|
126
|
+
return i;
|
|
127
|
+
}
|
|
128
|
+
return -1;
|
|
129
|
+
}
|
|
130
|
+
// A stray, never-closed quote in an attribute value (malformed/truncated markup) would otherwise
|
|
131
|
+
// leave the quote-aware scan tracking "inside a quote" all the way to end of document, so it never
|
|
132
|
+
// finds an unquoted `>` and reports the tag as unterminated. `readTagAt` then treats the tag as
|
|
133
|
+
// absent, and the top-level scanner falls back to emitting raw, un-stripped markup as literal text
|
|
134
|
+
// for the REST OF THE DOCUMENT — an unbounded leak from a single malformed tag. Bound the damage to
|
|
135
|
+
// just this one tag by falling back to a plain `>` search (ignoring quote state) so the scanner
|
|
136
|
+
// re-synchronizes on the next tag boundary instead of corrupting everything that follows.
|
|
137
|
+
function findTagEnd(text, from) {
|
|
138
|
+
const quoted = findQuotedTagEnd(text, from);
|
|
139
|
+
if (quoted !== -1)
|
|
140
|
+
return quoted;
|
|
141
|
+
return text.indexOf(">", from);
|
|
142
|
+
}
|
|
92
143
|
function readTagAt(text, lt) {
|
|
93
144
|
const after = lt + 1;
|
|
94
145
|
const isClose = text.charCodeAt(after) === 0x2f; /* / */
|
|
@@ -96,7 +147,7 @@ function readTagAt(text, lt) {
|
|
|
96
147
|
if (!isAlpha(text.charCodeAt(nameStart)))
|
|
97
148
|
return null;
|
|
98
149
|
const { name, after: afterName } = readTagName(text, nameStart);
|
|
99
|
-
const gt = text
|
|
150
|
+
const gt = findTagEnd(text, afterName);
|
|
100
151
|
if (gt === -1)
|
|
101
152
|
return null;
|
|
102
153
|
const selfClosing = !isClose && text.charCodeAt(gt - 1) === 0x2f;
|
|
@@ -136,8 +187,63 @@ function skipRawText(text, textLower, tagName, from) {
|
|
|
136
187
|
const gt = text.indexOf(">", close);
|
|
137
188
|
return gt === -1 ? text.length : gt + 1;
|
|
138
189
|
}
|
|
190
|
+
// Depth-aware close for elements that legitimately nest same-named children — `<table>` (a cell
|
|
191
|
+
// may contain a sub-table) and `<dl>` (a `<dd>` may contain a nested `<dl>`). A naive
|
|
192
|
+
// `indexOf("</table>", from)` (a plain substring search) stops at the FIRST close tag, which for a
|
|
193
|
+
// nested table/dl is the INNER element's close — truncating the outer element and silently
|
|
194
|
+
// dropping every sibling that follows the nested one. Walks tags via `nextEvent`, counting depth,
|
|
195
|
+
// so the returned offsets bracket the matching OUTER close tag. MUST also skip `<script>`/`<style>`/
|
|
196
|
+
// `<noscript>` subtrees the same way `fragmentTextRaw`/`readDocumentTitle` do (GRD-003): otherwise a
|
|
197
|
+
// raw-text body containing a literal `</table>`/`</dl>`-shaped substring (e.g. a JS string literal)
|
|
198
|
+
// is mis-read as a real close tag, prematurely ending the depth-aware scan and leaking the rest of
|
|
199
|
+
// the script/style body as ordinary text. `textLower` is the caller's already-lowercased view of
|
|
200
|
+
// `text` (never recomputed per call here) so a large table with many rows stays O(n), not O(n²).
|
|
201
|
+
// +1 for a matching open tag, -1 for a matching close tag, 0 otherwise. Split out of
|
|
202
|
+
// `findNestableElementEnd` purely to keep that function's cyclomatic complexity within the
|
|
203
|
+
// repo's limit.
|
|
204
|
+
function nestableDepthDelta(tag, tagName) {
|
|
205
|
+
if (tag.name !== tagName)
|
|
206
|
+
return 0;
|
|
207
|
+
if (tag.kind === "open")
|
|
208
|
+
return 1;
|
|
209
|
+
if (tag.kind === "close")
|
|
210
|
+
return -1;
|
|
211
|
+
return 0;
|
|
212
|
+
}
|
|
213
|
+
function findNestableElementEnd(text, textLower, tagName, from) {
|
|
214
|
+
let depth = 1;
|
|
215
|
+
let cursor = from;
|
|
216
|
+
while (cursor < text.length) {
|
|
217
|
+
const event = nextEvent(text, cursor);
|
|
218
|
+
if (event.kind === "eof")
|
|
219
|
+
break;
|
|
220
|
+
if (event.kind !== "tag") {
|
|
221
|
+
cursor = event.next;
|
|
222
|
+
continue;
|
|
223
|
+
}
|
|
224
|
+
if (RAW_TEXT_TAGS.has(event.tag.name) && event.tag.kind === "open") {
|
|
225
|
+
cursor = skipRawText(text, textLower, event.tag.name, event.tag.end);
|
|
226
|
+
continue;
|
|
227
|
+
}
|
|
228
|
+
depth += nestableDepthDelta(event.tag, tagName);
|
|
229
|
+
if (depth === 0)
|
|
230
|
+
return { contentEnd: event.tag.start, elementEnd: event.tag.end };
|
|
231
|
+
cursor = event.next;
|
|
232
|
+
}
|
|
233
|
+
return { contentEnd: text.length, elementEnd: text.length };
|
|
234
|
+
}
|
|
235
|
+
function skipNestableElement(text, textLower, tagName, from) {
|
|
236
|
+
return findNestableElementEnd(text, textLower, tagName, from).elementEnd;
|
|
237
|
+
}
|
|
238
|
+
// Skip past a non-raw-text container (`<title>`, `<pre>`, boilerplate `<nav>`/`<footer>`/`<aside>`)
|
|
239
|
+
// to its matching close tag. This MUST go through the same RAW_TEXT_TAGS-aware, depth-tracking walk
|
|
240
|
+
// as `skipNestableElement` (GRD-003) rather than a plain `indexOf("</" + tagName)` substring search:
|
|
241
|
+
// a `<script>` nested inside one of these containers whose body happens to contain a literal
|
|
242
|
+
// `</pre>`/`</title>`/`</nav>`/`</footer>`/`</aside>`-shaped substring (e.g. a JS string literal)
|
|
243
|
+
// would otherwise be mis-read as the container's own close tag, prematurely ending the skip and
|
|
244
|
+
// leaking the remainder of the still-open `<script>` body as ordinary text on the next scan step.
|
|
139
245
|
function skipElement(text, textLower, tagName, from) {
|
|
140
|
-
return
|
|
246
|
+
return skipNestableElement(text, textLower, tagName, from);
|
|
141
247
|
}
|
|
142
248
|
function isBoilerplateTag(tag) {
|
|
143
249
|
if (tag.kind !== "open")
|
|
@@ -225,14 +331,17 @@ function flushBlock(state, end) {
|
|
|
225
331
|
kind: "html-block",
|
|
226
332
|
documentId: state.input.documentId,
|
|
227
333
|
headingPath: [...state.heading.stack],
|
|
334
|
+
...(state.currentAnchor !== undefined ? { anchorId: state.currentAnchor } : {}),
|
|
228
335
|
characterStart: start,
|
|
229
336
|
characterEnd: state.cleanedOffset,
|
|
230
337
|
});
|
|
231
338
|
resetBlock(state);
|
|
232
339
|
}
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
340
|
+
// Push a fully-rendered block (already collapsed or verbatim) onto the cleaned projection and emit
|
|
341
|
+
// the matching html-block unit. Shared by the collapsed (`pushCleanedBlock`) and verbatim
|
|
342
|
+
// (`pushVerbatimBlock`) paths so offset math and anchor stamping stay identical.
|
|
343
|
+
function pushRenderedBlock(state, rendered) {
|
|
344
|
+
if (rendered.length === 0)
|
|
236
345
|
return;
|
|
237
346
|
const limit = shouldStop(state.startedAt, state.options, state.units.length);
|
|
238
347
|
if (limit.stop && limit.code !== undefined && limit.message !== undefined) {
|
|
@@ -245,38 +354,128 @@ function pushCleanedBlock(state, text) {
|
|
|
245
354
|
state.cleanedOffset += 1;
|
|
246
355
|
}
|
|
247
356
|
const start = state.cleanedOffset;
|
|
248
|
-
state.cleanedParts.push(
|
|
249
|
-
state.cleanedOffset +=
|
|
357
|
+
state.cleanedParts.push(rendered);
|
|
358
|
+
state.cleanedOffset += rendered.length;
|
|
250
359
|
state.units.push({
|
|
251
360
|
kind: "html-block",
|
|
252
361
|
documentId: state.input.documentId,
|
|
253
362
|
headingPath: [...state.heading.stack],
|
|
363
|
+
...(state.currentAnchor !== undefined ? { anchorId: state.currentAnchor } : {}),
|
|
254
364
|
characterStart: start,
|
|
255
365
|
characterEnd: state.cleanedOffset,
|
|
256
366
|
});
|
|
257
367
|
}
|
|
258
|
-
function
|
|
368
|
+
function pushCleanedBlock(state, text) {
|
|
369
|
+
pushRenderedBlock(state, collapseWhitespace(text));
|
|
370
|
+
}
|
|
371
|
+
// Verbatim variant for <pre>/<code> so code indentation, line breaks, and exact identifiers are
|
|
372
|
+
// preserved for lexical retrieval instead of being flattened by `collapseWhitespace`. Only
|
|
373
|
+
// leading/trailing blank lines are trimmed; interior whitespace is kept byte-for-byte.
|
|
374
|
+
function pushVerbatimBlock(state, text) {
|
|
375
|
+
let start = 0;
|
|
376
|
+
let end = text.length;
|
|
377
|
+
while (start < end && text.charCodeAt(start) === 0x0a)
|
|
378
|
+
start += 1;
|
|
379
|
+
while (end > start && text.charCodeAt(end - 1) === 0x0a)
|
|
380
|
+
end -= 1;
|
|
381
|
+
pushRenderedBlock(state, text.slice(start, end));
|
|
382
|
+
}
|
|
383
|
+
// Shared by <pre>/<code> verbatim capture, <dl> definitions, <table> cells, and <title>: walks an
|
|
384
|
+
// already-sliced element-HTML fragment and returns its visible text. MUST skip any nested
|
|
385
|
+
// `<script>`/`<style>`/`<noscript>` subtree the same way the top-level body scanner does — a
|
|
386
|
+
// script/style body must never survive tag-stripping into the persisted normalizedText (GRD-003),
|
|
387
|
+
// regardless of which container element it happens to be nested inside.
|
|
388
|
+
function fragmentTextRaw(fragment) {
|
|
389
|
+
const fragmentLower = fragment.toLowerCase();
|
|
259
390
|
let out = "";
|
|
260
391
|
let cursor = 0;
|
|
261
392
|
while (cursor < fragment.length) {
|
|
262
393
|
const event = nextEvent(fragment, cursor);
|
|
263
394
|
if (event.kind === "eof")
|
|
264
395
|
break;
|
|
265
|
-
if (event.kind === "text")
|
|
396
|
+
if (event.kind === "text") {
|
|
266
397
|
out += fragment.slice(event.start, event.end);
|
|
398
|
+
cursor = event.next;
|
|
399
|
+
continue;
|
|
400
|
+
}
|
|
401
|
+
if (event.kind === "tag" && RAW_TEXT_TAGS.has(event.tag.name) && event.tag.kind === "open") {
|
|
402
|
+
cursor = skipRawText(fragment, fragmentLower, event.tag.name, event.tag.end);
|
|
403
|
+
continue;
|
|
404
|
+
}
|
|
405
|
+
cursor = event.next;
|
|
406
|
+
}
|
|
407
|
+
return decodeXmlEntities(out);
|
|
408
|
+
}
|
|
409
|
+
function htmlFragmentText(fragment) {
|
|
410
|
+
return fragmentTextRaw(fragment).trim();
|
|
411
|
+
}
|
|
412
|
+
// Extracts TOP-LEVEL `<name>...</name>` elements (any of `tagNames`) from an already-sliced
|
|
413
|
+
// fragment of element HTML, depth-aware per tag name so a nested element of the SAME name (a
|
|
414
|
+
// sub-table cell, a nested `<dl>`) does not truncate the outer element at its first inner close
|
|
415
|
+
// tag — the same bug class `skipNestableElement` fixes for the top-level `<table>`/`<dl>` scan.
|
|
416
|
+
// Elements nested inside one of the matched tags are NOT separately returned (e.g. a `<td>`
|
|
417
|
+
// inside a `<td>` is invalid HTML and out of scope; a `<dt>`/`<dd>` inside a `<dd>` — from a
|
|
418
|
+
// nested `<dl>` — is folded into the parent's innerHtml and flattened by `htmlFragmentText`).
|
|
419
|
+
function extractElements(html, tagNames) {
|
|
420
|
+
// Lowercased once per call (not per matched tag) so a table with many rows/cells stays O(n)
|
|
421
|
+
// across the whole extraction instead of re-lowering the same fragment on every match.
|
|
422
|
+
const htmlLower = html.toLowerCase();
|
|
423
|
+
const spans = [];
|
|
424
|
+
let cursor = 0;
|
|
425
|
+
while (cursor < html.length) {
|
|
426
|
+
const event = nextEvent(html, cursor);
|
|
427
|
+
if (event.kind === "eof")
|
|
428
|
+
break;
|
|
429
|
+
if (event.kind !== "tag") {
|
|
430
|
+
cursor = event.next;
|
|
431
|
+
continue;
|
|
432
|
+
}
|
|
433
|
+
if (event.tag.kind === "open" && tagNames.has(event.tag.name)) {
|
|
434
|
+
const bounds = findNestableElementEnd(html, htmlLower, event.tag.name, event.tag.end);
|
|
435
|
+
spans.push({
|
|
436
|
+
name: event.tag.name,
|
|
437
|
+
innerHtml: html.slice(event.tag.end, bounds.contentEnd),
|
|
438
|
+
tagRaw: event.tag.raw,
|
|
439
|
+
});
|
|
440
|
+
cursor = bounds.elementEnd;
|
|
441
|
+
continue;
|
|
442
|
+
}
|
|
267
443
|
cursor = event.next;
|
|
268
444
|
}
|
|
269
|
-
return
|
|
445
|
+
return spans;
|
|
446
|
+
}
|
|
447
|
+
const ROW_TAGS = new Set(["tr"]);
|
|
448
|
+
const CELL_TAGS = new Set(["td", "th"]);
|
|
449
|
+
// Bounds a `colspan`/`rowspan` attribute value to a sane positive integer so a malformed or
|
|
450
|
+
// hostile table (e.g. `colspan="999999999"`) cannot force an unbounded column-expansion loop.
|
|
451
|
+
const MAX_CELL_SPAN = 1000;
|
|
452
|
+
function readSpanCount(tagRaw, attribute) {
|
|
453
|
+
const raw = readAttribute(tagRaw, attribute);
|
|
454
|
+
if (raw === undefined)
|
|
455
|
+
return 1;
|
|
456
|
+
const parsed = Number.parseInt(raw, 10);
|
|
457
|
+
if (!Number.isFinite(parsed) || parsed < 1)
|
|
458
|
+
return 1;
|
|
459
|
+
return Math.min(parsed, MAX_CELL_SPAN);
|
|
270
460
|
}
|
|
271
461
|
function tableCells(rowHtml) {
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
462
|
+
return extractElements(rowHtml, CELL_TAGS).map((cell) => ({
|
|
463
|
+
header: cell.name === "th",
|
|
464
|
+
text: htmlFragmentText(cell.innerHtml),
|
|
465
|
+
colspan: readSpanCount(cell.tagRaw, "colspan"),
|
|
466
|
+
rowspan: readSpanCount(cell.tagRaw, "rowspan"),
|
|
467
|
+
}));
|
|
468
|
+
}
|
|
469
|
+
// Repeats each cell `colspan` times so a spanning `<th>`/`<td>` occupies one array slot per
|
|
470
|
+
// logical column it covers — otherwise header-to-value zipping (`appendTableRows`) stays purely
|
|
471
|
+
// positional and misaligns every column from a spanning cell onward.
|
|
472
|
+
function expandRowByColspan(row) {
|
|
473
|
+
const expanded = [];
|
|
474
|
+
for (const cell of row) {
|
|
475
|
+
for (let i = 0; i < cell.colspan; i += 1)
|
|
476
|
+
expanded.push(cell);
|
|
278
477
|
}
|
|
279
|
-
return
|
|
478
|
+
return expanded;
|
|
280
479
|
}
|
|
281
480
|
function normalizeHeaders(headers, count) {
|
|
282
481
|
const seen = new Map();
|
|
@@ -288,12 +487,41 @@ function normalizeHeaders(headers, count) {
|
|
|
288
487
|
return seenCount === 0 ? base : `${base} ${String(seenCount + 1)}`;
|
|
289
488
|
});
|
|
290
489
|
}
|
|
490
|
+
const CAPTION_TAGS = new Set(["caption"]);
|
|
491
|
+
// `<caption>` names the table (e.g. "Table 4-2: HTTP Status Codes") but lives inside the
|
|
492
|
+
// `<table>` element the body scan otherwise skips wholesale via `skipNestableElement` — without
|
|
493
|
+
// surfacing it separately here, the one span of text that LABELS the table is silently lost, even
|
|
494
|
+
// though every other table cell is preserved. Emitted as its own block (not folded into a row) so
|
|
495
|
+
// exact-match retrieval on the caption text is not diluted by cell data.
|
|
496
|
+
function appendTableCaption(state, tableHtml) {
|
|
497
|
+
const caption = extractElements(tableHtml, CAPTION_TAGS)[0];
|
|
498
|
+
if (caption === undefined)
|
|
499
|
+
return;
|
|
500
|
+
const text = htmlFragmentText(caption.innerHtml);
|
|
501
|
+
if (text.length === 0)
|
|
502
|
+
return;
|
|
503
|
+
pushCleanedBlock(state, `Table caption: ${text}`);
|
|
504
|
+
}
|
|
505
|
+
// A header cell's `rowspan` is meant to carry that header down across the spanned data rows below
|
|
506
|
+
// it — this parser does not track per-column carry-forward state across rows, so a spanning header
|
|
507
|
+
// only labels its own row. Surface a body-safe diagnostic instead of silently misaligning the
|
|
508
|
+
// spanned rows' headers.
|
|
509
|
+
function warnIfHeaderRowspanUnsupported(state, headerRow) {
|
|
510
|
+
if (!headerRow.some((cell) => cell.header && cell.rowspan > 1))
|
|
511
|
+
return;
|
|
512
|
+
state.diagnostics.push(diagnostic("HTML_TABLE_SPAN_UNSUPPORTED", "table header cell uses rowspan > 1; header association is not carried into the spanned rows below it", state.input.documentId, "warning"));
|
|
513
|
+
}
|
|
291
514
|
function appendTableRows(state, tableHtml) {
|
|
292
|
-
|
|
515
|
+
appendTableCaption(state, tableHtml);
|
|
516
|
+
const rows = extractElements(tableHtml, ROW_TAGS)
|
|
517
|
+
.map((row) => tableCells(row.innerHtml))
|
|
518
|
+
.map(expandRowByColspan);
|
|
293
519
|
if (rows.length === 0)
|
|
294
520
|
return;
|
|
295
521
|
const first = rows[0] ?? [];
|
|
296
522
|
const headerIsSchema = rows.length > 1 && first.some((cell) => cell.header || /[A-Za-z_]/u.test(cell.text));
|
|
523
|
+
if (headerIsSchema)
|
|
524
|
+
warnIfHeaderRowspanUnsupported(state, first);
|
|
297
525
|
const maxCells = rows.reduce((max, row) => Math.max(max, row.length), 0);
|
|
298
526
|
const headers = headerIsSchema
|
|
299
527
|
? normalizeHeaders(first.map((cell) => cell.text), maxCells)
|
|
@@ -308,6 +536,249 @@ function appendTableRows(state, tableHtml) {
|
|
|
308
536
|
pushCleanedBlock(state, `Table: ${text}`);
|
|
309
537
|
}
|
|
310
538
|
}
|
|
539
|
+
// ─── Definition lists ────────────────────────────────────────────────────────
|
|
540
|
+
// Pair each `<dt>` term with its following `<dd>` definition(s). Mirrors the table extractor:
|
|
541
|
+
// Depth-aware TOP-LEVEL `<dt>`/`<dd>` walk via `extractElements` (not a non-greedy regex — a
|
|
542
|
+
// `<dd>` containing its own nested `<dl>` would otherwise truncate at the INNER list's first
|
|
543
|
+
// `</dd>`/`</dt>`, silently dropping every sibling term/definition that follows the nested list).
|
|
544
|
+
const DEFINITION_TAGS = new Set(["dt", "dd"]);
|
|
545
|
+
function definitionEntries(dlHtml) {
|
|
546
|
+
const entries = [];
|
|
547
|
+
let term;
|
|
548
|
+
for (const element of extractElements(dlHtml, DEFINITION_TAGS)) {
|
|
549
|
+
const text = htmlFragmentText(element.innerHtml);
|
|
550
|
+
if (element.name === "dt") {
|
|
551
|
+
term = text;
|
|
552
|
+
}
|
|
553
|
+
else if (term !== undefined && term.length > 0) {
|
|
554
|
+
entries.push({ term, definition: text });
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
return entries;
|
|
558
|
+
}
|
|
559
|
+
function appendDefinitionList(state, dlHtml) {
|
|
560
|
+
for (const entry of definitionEntries(dlHtml)) {
|
|
561
|
+
if (state.stopped)
|
|
562
|
+
return;
|
|
563
|
+
// "Term: definition" keeps the term attached to its definition for exact + semantic lookup,
|
|
564
|
+
// instead of flattening a definition list into undifferentiated prose.
|
|
565
|
+
pushCleanedBlock(state, `${entry.term}: ${entry.definition}`);
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
// ─── Preformatted / code blocks ──────────────────────────────────────────────
|
|
569
|
+
function codeLanguageFromClass(className) {
|
|
570
|
+
if (className === undefined)
|
|
571
|
+
return undefined;
|
|
572
|
+
for (const token of className.toLowerCase().split(/\s+/u)) {
|
|
573
|
+
if (token.startsWith("language-"))
|
|
574
|
+
return token.slice("language-".length) || undefined;
|
|
575
|
+
if (token.startsWith("lang-"))
|
|
576
|
+
return token.slice("lang-".length) || undefined;
|
|
577
|
+
}
|
|
578
|
+
return undefined;
|
|
579
|
+
}
|
|
580
|
+
function firstCodeLanguage(elementHtml) {
|
|
581
|
+
const at = elementHtml.toLowerCase().indexOf("<code");
|
|
582
|
+
if (at < 0)
|
|
583
|
+
return undefined;
|
|
584
|
+
const gt = elementHtml.indexOf(">", at);
|
|
585
|
+
if (gt < 0)
|
|
586
|
+
return undefined;
|
|
587
|
+
return codeLanguageFromClass(readAttribute(elementHtml.slice(at, gt + 1), "class"));
|
|
588
|
+
}
|
|
589
|
+
function appendPreformatted(state, elementHtml, tag) {
|
|
590
|
+
// Verbatim inner text: tags stripped and entities decoded, but whitespace NOT collapsed so code
|
|
591
|
+
// indentation and exact identifiers survive for lexical retrieval.
|
|
592
|
+
const code = fragmentTextRaw(elementHtml);
|
|
593
|
+
const language = codeLanguageFromClass(readAttribute(tag.raw, "class")) ?? firstCodeLanguage(elementHtml);
|
|
594
|
+
pushVerbatimBlock(state, language !== undefined ? `Code (${language}):\n${code}` : code);
|
|
595
|
+
}
|
|
596
|
+
// ─── Frameset navigation links ───────────────────────────────────────────────
|
|
597
|
+
// True when `value` starts with a URI scheme (`letter [letter|digit|+|-|.]* ":"`) that is NOT
|
|
598
|
+
// `http`/`https`. Catches `javascript:`, `data:`, `vbscript:`, etc. — schemes that carry an
|
|
599
|
+
// executable or arbitrary-payload body and have no `://` to trip the old (bypassed) check.
|
|
600
|
+
function hasUnsafeScheme(value) {
|
|
601
|
+
const match = /^([a-z][a-z0-9+.-]*):/iu.exec(value);
|
|
602
|
+
if (match?.[1] === undefined)
|
|
603
|
+
return false;
|
|
604
|
+
const scheme = match[1].toLowerCase();
|
|
605
|
+
return scheme !== "http" && scheme !== "https";
|
|
606
|
+
}
|
|
607
|
+
// Reduce a frame `src` to a body-safe navigation reference: drop query/fragment, and for an
|
|
608
|
+
// absolute URL keep only the path so no host, credentials, or token can surface in evidence. Any
|
|
609
|
+
// non-http(s) scheme (javascript:, data:, vbscript:, …) is rejected outright rather than
|
|
610
|
+
// forwarded verbatim — a scheme body may carry an arbitrary attacker-controlled payload. A
|
|
611
|
+
// protocol-relative target (`//host/path`, valid and browser-resolvable HTML with no scheme and no
|
|
612
|
+
// literal `://`) carries a host exactly like `scheme://host/path` does and must have it stripped
|
|
613
|
+
// the same way — it has neither an unsafe scheme nor a `://` substring, so both of those checks
|
|
614
|
+
// alone would fall through and forward the host verbatim.
|
|
615
|
+
function redactFrameTarget(src) {
|
|
616
|
+
const base = src.split(/[?#]/u)[0] ?? "";
|
|
617
|
+
const trimmed = base.trim();
|
|
618
|
+
if (trimmed.length === 0 || trimmed.length > 256 || trimmed.includes("\0"))
|
|
619
|
+
return undefined;
|
|
620
|
+
if (hasUnsafeScheme(trimmed))
|
|
621
|
+
return undefined;
|
|
622
|
+
const schemeAt = trimmed.indexOf("://");
|
|
623
|
+
const hostStart = schemeAt >= 0 ? schemeAt + 3 : trimmed.startsWith("//") ? 2 : -1;
|
|
624
|
+
if (hostStart < 0)
|
|
625
|
+
return trimmed;
|
|
626
|
+
const afterHost = trimmed.slice(hostStart);
|
|
627
|
+
const slash = afterHost.indexOf("/");
|
|
628
|
+
return slash < 0 ? "/" : afterHost.slice(slash);
|
|
629
|
+
}
|
|
630
|
+
function appendFrameLink(state, tag) {
|
|
631
|
+
const src = readAttribute(tag.raw, "src");
|
|
632
|
+
if (src === undefined)
|
|
633
|
+
return;
|
|
634
|
+
const target = redactFrameTarget(src);
|
|
635
|
+
if (target === undefined)
|
|
636
|
+
return;
|
|
637
|
+
// Surface the frameset table-of-contents targets as discoverable references. The parser stays
|
|
638
|
+
// pure — it never fetches or follows the link; egress remains the crawler's injected port.
|
|
639
|
+
pushCleanedBlock(state, `Frame: ${target}`);
|
|
640
|
+
}
|
|
641
|
+
// ─── Title + declared charset ────────────────────────────────────────────────
|
|
642
|
+
// Finds the real `<title>` element by walking tags with the same event scanner the body uses,
|
|
643
|
+
// skipping `<script>`/`<style>`/`<noscript>` subtrees along the way — NOT a raw `indexOf` over
|
|
644
|
+
// undifferentiated document text. A raw substring search would accept a `<title>...</title>`-
|
|
645
|
+
// shaped literal sitting inside an earlier `<script>` (e.g. a client-side widget building HTML
|
|
646
|
+
// strings) as if it were the document's real title.
|
|
647
|
+
function readDocumentTitle(rawText) {
|
|
648
|
+
const textLower = rawText.toLowerCase();
|
|
649
|
+
let cursor = 0;
|
|
650
|
+
while (cursor < rawText.length) {
|
|
651
|
+
const event = nextEvent(rawText, cursor);
|
|
652
|
+
if (event.kind === "eof")
|
|
653
|
+
return undefined;
|
|
654
|
+
if (event.kind !== "tag") {
|
|
655
|
+
cursor = event.next;
|
|
656
|
+
continue;
|
|
657
|
+
}
|
|
658
|
+
const { tag } = event;
|
|
659
|
+
if (RAW_TEXT_TAGS.has(tag.name) && tag.kind === "open") {
|
|
660
|
+
cursor = skipRawText(rawText, textLower, tag.name, tag.end);
|
|
661
|
+
continue;
|
|
662
|
+
}
|
|
663
|
+
if (tag.name === "title" && tag.kind === "open") {
|
|
664
|
+
const close = textLower.indexOf("</title", tag.end);
|
|
665
|
+
if (close < 0)
|
|
666
|
+
return undefined;
|
|
667
|
+
const title = htmlFragmentText(rawText.slice(tag.end, close));
|
|
668
|
+
return title.length === 0 ? undefined : title;
|
|
669
|
+
}
|
|
670
|
+
cursor = event.next;
|
|
671
|
+
}
|
|
672
|
+
return undefined;
|
|
673
|
+
}
|
|
674
|
+
function isCharsetLabelChar(code) {
|
|
675
|
+
return (isNameChar(code) || code === 0x2e /* . */ || code === 0x3a /* : */ || code === 0x5f); /* _ */
|
|
676
|
+
}
|
|
677
|
+
// Advance past `=`, whitespace, and an opening quote to the first character of the charset value.
|
|
678
|
+
function skipToCharsetValue(head, from) {
|
|
679
|
+
let i = from;
|
|
680
|
+
while (i < head.length && (head.charCodeAt(i) === 0x3d || head.charCodeAt(i) <= 0x20))
|
|
681
|
+
i += 1;
|
|
682
|
+
if (i < head.length && (head.charCodeAt(i) === 0x22 || head.charCodeAt(i) === 0x27))
|
|
683
|
+
i += 1;
|
|
684
|
+
return i;
|
|
685
|
+
}
|
|
686
|
+
// Real charset names (utf-8, windows-1252, shift_jis, iso-8859-1, …) are well under this length.
|
|
687
|
+
// Capping here keeps the label bounded everywhere it is used downstream — including the
|
|
688
|
+
// HTML_CHARSET_MISMATCH diagnostic message — instead of embedding an arbitrarily long,
|
|
689
|
+
// document-controlled value (the head window is scanned up to 2048 bytes).
|
|
690
|
+
const MAX_CHARSET_LABEL_LENGTH = 64;
|
|
691
|
+
// Extract a charset label from a single `<meta ...>` tag's raw text (bounded input — never the
|
|
692
|
+
// whole head window), so ordinary body prose containing the word "charset" cannot be mistaken for
|
|
693
|
+
// a declaration.
|
|
694
|
+
function charsetFromMetaTag(metaTagLower) {
|
|
695
|
+
const at = metaTagLower.indexOf("charset");
|
|
696
|
+
if (at < 0)
|
|
697
|
+
return undefined;
|
|
698
|
+
const start = skipToCharsetValue(metaTagLower, at + "charset".length);
|
|
699
|
+
let end = start;
|
|
700
|
+
while (end < metaTagLower.length &&
|
|
701
|
+
end - start < MAX_CHARSET_LABEL_LENGTH &&
|
|
702
|
+
isCharsetLabelChar(metaTagLower.charCodeAt(end))) {
|
|
703
|
+
end += 1;
|
|
704
|
+
}
|
|
705
|
+
const label = metaTagLower.slice(start, end);
|
|
706
|
+
return label.length === 0 ? undefined : label;
|
|
707
|
+
}
|
|
708
|
+
// Read a declared `<meta charset>` / `http-equiv` charset from the head bytes. Scoped to actual
|
|
709
|
+
// `<meta ...>` tags (found via the same quote-aware `findTagEnd` the body scanner uses — no
|
|
710
|
+
// tag-filter regex, preserving the CodeQL posture) instead of a bare `indexOf("charset")` over
|
|
711
|
+
// undifferentiated text, so ordinary prose that happens to contain the word "charset" cannot
|
|
712
|
+
// trigger a false HTML_CHARSET_MISMATCH diagnostic.
|
|
713
|
+
function readMetaCharset(bytes) {
|
|
714
|
+
const head = new TextDecoder("utf-8", { fatal: false }).decode(bytes.subarray(0, 2048));
|
|
715
|
+
const headLower = head.toLowerCase();
|
|
716
|
+
let cursor = 0;
|
|
717
|
+
while (cursor < head.length) {
|
|
718
|
+
const lt = headLower.indexOf("<meta", cursor);
|
|
719
|
+
if (lt < 0)
|
|
720
|
+
return undefined;
|
|
721
|
+
const gt = findTagEnd(head, lt + 5);
|
|
722
|
+
if (gt < 0)
|
|
723
|
+
return undefined;
|
|
724
|
+
const label = charsetFromMetaTag(headLower.slice(lt, gt + 1));
|
|
725
|
+
if (label !== undefined)
|
|
726
|
+
return label;
|
|
727
|
+
cursor = gt + 1;
|
|
728
|
+
}
|
|
729
|
+
return undefined;
|
|
730
|
+
}
|
|
731
|
+
function normalizeCharset(label) {
|
|
732
|
+
const key = label.toLowerCase().replace(/[^a-z0-9]/gu, "");
|
|
733
|
+
if (key === "utf8")
|
|
734
|
+
return "utf-8";
|
|
735
|
+
if (key === "utf16" || key === "utf16le" || key === "utf16be" || key === "ucs2")
|
|
736
|
+
return "utf-16";
|
|
737
|
+
if (key === "latin1" || key === "iso88591" || key === "cp1252" || key === "windows1252") {
|
|
738
|
+
return "windows-1252";
|
|
739
|
+
}
|
|
740
|
+
return key;
|
|
741
|
+
}
|
|
742
|
+
// Emit a body-safe warning when the declared charset disagrees with the byte-shape codec actually
|
|
743
|
+
// used, so a legacy-encoding manual degrades predictably with a diagnostic instead of silently
|
|
744
|
+
// corrupting content. The message carries only normalized codec LABELS, never document bytes.
|
|
745
|
+
function charsetMismatchDiagnostic(declared, usedCodec, documentId) {
|
|
746
|
+
if (declared === undefined)
|
|
747
|
+
return undefined;
|
|
748
|
+
const declaredFamily = normalizeCharset(declared);
|
|
749
|
+
if (declaredFamily === normalizeCharset(usedCodec))
|
|
750
|
+
return undefined;
|
|
751
|
+
return diagnostic("HTML_CHARSET_MISMATCH", `declared charset '${declaredFamily}' differs from decoded byte shape '${normalizeCharset(usedCodec)}'; decoded using byte-shape detection`, documentId, "warning");
|
|
752
|
+
}
|
|
753
|
+
// A fragment identifier is a safe slug — never a path, scheme, or quoted string (see the
|
|
754
|
+
// `anchorId` contract comment in keiko-contracts/local-knowledge-records.ts). This is a positive
|
|
755
|
+
// allowlist (letters, digits, `-`, `_`, `.`, `:`) rather than a negative blocklist so a
|
|
756
|
+
// scheme-like prefix without `//` (e.g. `javascript:alert(1)`), a path (`../../etc/passwd`), or an
|
|
757
|
+
// embedded quote cannot slip through as a "close enough" slug.
|
|
758
|
+
function isAnchorSlugChar(code) {
|
|
759
|
+
return (isAlpha(code) ||
|
|
760
|
+
(code >= 0x30 && code <= 0x39) /* 0-9 */ ||
|
|
761
|
+
code === 0x2d /* - */ ||
|
|
762
|
+
code === 0x5f /* _ */ ||
|
|
763
|
+
code === 0x2e /* . */ ||
|
|
764
|
+
code === 0x3a /* : */);
|
|
765
|
+
}
|
|
766
|
+
function isAnchorSlug(value) {
|
|
767
|
+
if (value.length === 0 || value.length > 128)
|
|
768
|
+
return false;
|
|
769
|
+
for (let i = 0; i < value.length; i += 1) {
|
|
770
|
+
if (!isAnchorSlugChar(value.charCodeAt(i)))
|
|
771
|
+
return false;
|
|
772
|
+
}
|
|
773
|
+
return true;
|
|
774
|
+
}
|
|
775
|
+
function anchorFromTag(tag) {
|
|
776
|
+
const raw = readAttribute(tag.raw, "id") ?? readAttribute(tag.raw, "name");
|
|
777
|
+
if (raw === undefined)
|
|
778
|
+
return undefined;
|
|
779
|
+
const value = raw.startsWith("#") ? raw.slice(1) : raw;
|
|
780
|
+
return isAnchorSlug(value) ? value : undefined;
|
|
781
|
+
}
|
|
311
782
|
function openBlock(state, at, hasText) {
|
|
312
783
|
if (state.pendingBlockStart === null) {
|
|
313
784
|
state.pendingBlockStart = at;
|
|
@@ -317,7 +788,10 @@ function openBlock(state, at, hasText) {
|
|
|
317
788
|
state.pendingBlockHasText = true;
|
|
318
789
|
}
|
|
319
790
|
function handleHeadingOpen(state, tag, level) {
|
|
791
|
+
// Flush the previous section's block first (it still owns the previous anchor), then adopt this
|
|
792
|
+
// heading's fragment anchor so blocks under it can deep-link to the exact manual section.
|
|
320
793
|
flushBlock(state, tag.start);
|
|
794
|
+
state.currentAnchor = anchorFromTag(tag);
|
|
321
795
|
state.pendingHeadingLabel = "";
|
|
322
796
|
state.pendingHeadingLevel = level;
|
|
323
797
|
return tag.end;
|
|
@@ -344,7 +818,37 @@ function appendTextRun(state, from, to) {
|
|
|
344
818
|
// a run, so the cleaned projection is tag-free by construction.
|
|
345
819
|
state.blockText += state.text.slice(from, to);
|
|
346
820
|
}
|
|
347
|
-
|
|
821
|
+
// Elements whose whole subtree is skipped in the body scan and re-rendered structurally: table
|
|
822
|
+
// rows, definition lists, verbatim code, and (metadata) `<title>` captured separately. Returns the
|
|
823
|
+
// cursor past the element, or `undefined` when `tag` is not one of these.
|
|
824
|
+
function handleStructuralTag(state, tag) {
|
|
825
|
+
if (tag.kind !== "open")
|
|
826
|
+
return undefined;
|
|
827
|
+
if (METADATA_TAGS.has(tag.name)) {
|
|
828
|
+
flushBlock(state, tag.start);
|
|
829
|
+
return skipElement(state.text, state.textLower, tag.name, tag.end);
|
|
830
|
+
}
|
|
831
|
+
if (tag.name === "table" || tag.name === "dl" || tag.name === "pre") {
|
|
832
|
+
flushBlock(state, tag.start);
|
|
833
|
+
// `<table>` and `<dl>` can legitimately nest same-named children (a cell with a sub-table, a
|
|
834
|
+
// `<dd>` with a nested `<dl>`); `<pre>` cannot, so the simpler raw-text-style skip is enough.
|
|
835
|
+
const end = tag.name === "pre"
|
|
836
|
+
? skipElement(state.text, state.textLower, tag.name, tag.end)
|
|
837
|
+
: skipNestableElement(state.text, state.textLower, tag.name, tag.end);
|
|
838
|
+
const elementHtml = state.text.slice(tag.start, end);
|
|
839
|
+
if (tag.name === "table")
|
|
840
|
+
appendTableRows(state, elementHtml);
|
|
841
|
+
else if (tag.name === "dl")
|
|
842
|
+
appendDefinitionList(state, elementHtml);
|
|
843
|
+
else
|
|
844
|
+
appendPreformatted(state, elementHtml, tag);
|
|
845
|
+
return end;
|
|
846
|
+
}
|
|
847
|
+
return undefined;
|
|
848
|
+
}
|
|
849
|
+
// Tags whose subtree is dropped from the body flow (raw-text/script, boilerplate) or surfaced as a
|
|
850
|
+
// navigation reference (frame). Returns the cursor past the tag, or `undefined` when not handled.
|
|
851
|
+
function handleDropTag(state, tag) {
|
|
348
852
|
if (RAW_TEXT_TAGS.has(tag.name) && tag.kind === "open") {
|
|
349
853
|
// Terminate any in-progress block at the tag boundary so the raw bytes never appear in
|
|
350
854
|
// the unit stream. Skip past `</script>` (etc.); the next text run reopens a block.
|
|
@@ -355,18 +859,25 @@ function handleTag(state, tag) {
|
|
|
355
859
|
flushBlock(state, tag.start);
|
|
356
860
|
return skipElement(state.text, state.textLower, tag.name, tag.end);
|
|
357
861
|
}
|
|
358
|
-
if (tag.name
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
appendTableRows(state, state.text.slice(tag.start, end));
|
|
362
|
-
return end;
|
|
862
|
+
if (FRAME_TAGS.has(tag.name) && tag.kind !== "close") {
|
|
863
|
+
appendFrameLink(state, tag);
|
|
864
|
+
return tag.end;
|
|
363
865
|
}
|
|
866
|
+
return undefined;
|
|
867
|
+
}
|
|
868
|
+
function handleHeading(state, tag) {
|
|
364
869
|
const level = headingLevel(tag.name);
|
|
365
870
|
if (level > 0 && tag.kind === "open")
|
|
366
871
|
return handleHeadingOpen(state, tag, level);
|
|
367
872
|
if (level > 0 && tag.kind === "close")
|
|
368
873
|
return handleHeadingClose(state, tag);
|
|
369
|
-
return
|
|
874
|
+
return undefined;
|
|
875
|
+
}
|
|
876
|
+
function handleTag(state, tag) {
|
|
877
|
+
return (handleDropTag(state, tag) ??
|
|
878
|
+
handleStructuralTag(state, tag) ??
|
|
879
|
+
handleHeading(state, tag) ??
|
|
880
|
+
tag.end);
|
|
370
881
|
}
|
|
371
882
|
function step(state, cursor) {
|
|
372
883
|
const event = nextEvent(state.text, cursor);
|
|
@@ -383,6 +894,9 @@ function step(state, cursor) {
|
|
|
383
894
|
return handleTag(state, event.tag);
|
|
384
895
|
}
|
|
385
896
|
function emitHtml(rawText, input, options) {
|
|
897
|
+
// Read the title from the FULL document (before <main> narrowing drops the head) so a manual's
|
|
898
|
+
// name is preserved as a searchable block even when it lives in <head>.
|
|
899
|
+
const documentTitle = readDocumentTitle(rawText);
|
|
386
900
|
const text = selectMainContent(rawText);
|
|
387
901
|
const state = {
|
|
388
902
|
text,
|
|
@@ -397,11 +911,14 @@ function emitHtml(rawText, input, options) {
|
|
|
397
911
|
pendingBlockHasText: false,
|
|
398
912
|
pendingHeadingLabel: null,
|
|
399
913
|
pendingHeadingLevel: 0,
|
|
914
|
+
currentAnchor: undefined,
|
|
400
915
|
stopped: false,
|
|
401
916
|
blockText: "",
|
|
402
917
|
cleanedParts: [],
|
|
403
918
|
cleanedOffset: 0,
|
|
404
919
|
};
|
|
920
|
+
if (documentTitle !== undefined)
|
|
921
|
+
pushCleanedBlock(state, documentTitle);
|
|
405
922
|
let cursor = 0;
|
|
406
923
|
while (cursor < text.length && !state.stopped) {
|
|
407
924
|
cursor = step(state, cursor);
|
|
@@ -425,10 +942,16 @@ export const htmlParser = Object.freeze({
|
|
|
425
942
|
oversizeDiagnostic(input.documentId, input.bytes.byteLength, options.maxBytes),
|
|
426
943
|
]);
|
|
427
944
|
}
|
|
428
|
-
|
|
945
|
+
// Cross-check any declared <meta charset> against the byte-shape decode: the declared charset
|
|
946
|
+
// only steers the fallback codec (strict UTF-8/BOM still win), and a genuine disagreement is
|
|
947
|
+
// surfaced as a body-safe HTML_CHARSET_MISMATCH warning rather than silently corrupting text.
|
|
948
|
+
const declaredCharset = readMetaCharset(input.bytes);
|
|
949
|
+
const decoded = decodeBytes(input.bytes, declaredCharset);
|
|
429
950
|
const emission = emitHtml(decoded.text, input, options);
|
|
951
|
+
const charsetDiag = charsetMismatchDiagnostic(declaredCharset, decoded.codec, input.documentId);
|
|
952
|
+
const diagnostics = charsetDiag === undefined ? emission.diagnostics : [charsetDiag, ...emission.diagnostics];
|
|
430
953
|
const result = {
|
|
431
|
-
...emptyResult(htmlParser.capability, input.documentId, options,
|
|
954
|
+
...emptyResult(htmlParser.capability, input.documentId, options, diagnostics, emission.units),
|
|
432
955
|
// GRD-003: persist the cleaned, tag/script/style-free projection so extract.ts NEVER
|
|
433
956
|
// falls back to raw bytes (which carried <script> bodies + embedded secrets).
|
|
434
957
|
normalizedText: emission.normalizedText,
|