@iowarp/clio-coder 0.4.1 → 0.4.3
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/CHANGELOG.md +127 -0
- package/CONTRIBUTING.md +142 -52
- package/README.md +434 -473
- package/SECURITY.md +2 -1
- package/dist/{acp-ZILU3AUO.js → acp-H2NGRPWO.js} +12 -12
- package/dist/{agents-HYWGBGQR.js → agents-TL5LLUQP.js} +56 -55
- package/dist/assets/codewiki.json +1 -1
- package/dist/{auth-N3QT7CBO.js → auth-E5SW4HMS.js} +23 -21
- package/dist/builtins-IA7V7FUC.js +22 -0
- package/dist/{chunk-7RY5VZPH.js → chunk-2APPQIER.js} +8 -8
- package/dist/{chunk-72GZI5EV.js → chunk-2JH2WHGE.js} +2 -2
- package/dist/{chunk-JA5QWE4Z.js → chunk-2UG5F4C5.js} +1973 -1664
- package/dist/{chunk-5YHDIDBP.js → chunk-2UH2KFUP.js} +2 -2
- package/dist/{chunk-CTJ4RNAA.js → chunk-2VIKGWFZ.js} +2 -2
- package/dist/{chunk-I66EAJFY.js → chunk-2WZ546HR.js} +267 -232
- package/dist/{chunk-GIZNH63R.js → chunk-35MSIRKH.js} +9 -4
- package/dist/chunk-3EBYEESD.js +314 -0
- package/dist/{chunk-J5LZHVIT.js → chunk-3M6DQK6S.js} +113 -35
- package/dist/{chunk-RKSR6VSF.js → chunk-4IUZQIJ3.js} +29 -1
- package/dist/{chunk-6FN3E6KX.js → chunk-4O6MANBS.js} +2 -2
- package/dist/chunk-4UVU7BJ5.js +39 -0
- package/dist/{chunk-VKRH2TCS.js → chunk-4WR7VSYB.js} +2 -2
- package/dist/{chunk-BBTJOK6Y.js → chunk-54CBCGIR.js} +5 -5
- package/dist/{chunk-AP73CFDC.js → chunk-5ICU3EUH.js} +2 -2
- package/dist/chunk-5MEZN6CB.js +1334 -0
- package/dist/{chunk-O42A54GG.js → chunk-5OIVVPHF.js} +2 -2
- package/dist/{chunk-ABLSQ6JX.js → chunk-64I3JVYM.js} +8 -2
- package/dist/{chunk-AFKWHWXF.js → chunk-6PTFB5VS.js} +39 -22
- package/dist/{chunk-VN3SHNBN.js → chunk-7DICMOS6.js} +2 -2
- package/dist/chunk-7DRAWPTZ.js +360 -0
- package/dist/chunk-7E7I3WLS.js +3762 -0
- package/dist/{chunk-BJGUKIG4.js → chunk-7ZYNNDKC.js} +7 -7
- package/dist/{chunk-XKA2ICR3.js → chunk-AF4YM7Z4.js} +652 -252
- package/dist/{chunk-GVQJ5CCZ.js → chunk-AX2THNSA.js} +12 -12
- package/dist/{chunk-IG7BCQBA.js → chunk-B4OAX3SI.js} +65 -3
- package/dist/{chunk-TD3PGPQA.js → chunk-B4VEBZKF.js} +3 -3
- package/dist/{chunk-74YWRRU5.js → chunk-BEPZRGGU.js} +10 -10
- package/dist/{chunk-FEFIFZTL.js → chunk-CE5AX47J.js} +2 -2
- package/dist/{chunk-UAPGZHYC.js → chunk-DWUOQKRU.js} +25 -11
- package/dist/{chunk-THYWACCR.js → chunk-E3TPLWFX.js} +3 -3
- package/dist/{chunk-7EPLI7VL.js → chunk-EKCHAPYA.js} +2 -2
- package/dist/{chunk-HLW2MRKE.js → chunk-F4EKGO4N.js} +3 -1
- package/dist/{chunk-PJJ6MY27.js → chunk-F5JHEYZM.js} +7 -7
- package/dist/{chunk-6CCS4G3W.js → chunk-FTMGRKEF.js} +3 -3
- package/dist/{chunk-SINK3QR6.js → chunk-G76U63X4.js} +17 -17
- package/dist/{chunk-EIMVLWB3.js → chunk-GHS5EBTQ.js} +64 -9
- package/dist/{chunk-QMXC4JB7.js → chunk-GI7YYQ3F.js} +187 -1419
- package/dist/{chunk-TZSKNMZG.js → chunk-GTUD2WMY.js} +2 -1
- package/dist/{chunk-6HMJX2VU.js → chunk-GWZNEVM2.js} +44 -12
- package/dist/chunk-GYV6VZOC.js +26 -0
- package/dist/{chunk-MQXIVJ35.js → chunk-HAXOFFRH.js} +5 -5
- package/dist/{chunk-UXN6JT4W.js → chunk-HEQY7ZFI.js} +3 -3
- package/dist/{chunk-7PWAODYW.js → chunk-I7XBWTYH.js} +2 -2
- package/dist/{chunk-GCSMB2KY.js → chunk-I7ZPNEJM.js} +145 -102
- package/dist/{chunk-WNP7O5WZ.js → chunk-ID64D7PE.js} +4 -4
- package/dist/{chunk-QTFGO774.js → chunk-IGLP3ODT.js} +29 -16
- package/dist/chunk-IJNZMHLA.js +101 -0
- package/dist/{chunk-BDPT6GTK.js → chunk-INY6HTFL.js} +7 -7
- package/dist/{chunk-PBP4B7XR.js → chunk-IUE3Y34X.js} +2 -2
- package/dist/{chunk-6NJQITNH.js → chunk-IWT4SF4R.js} +6 -3
- package/dist/{chunk-R23Z6K6I.js → chunk-JDAY6FIL.js} +19 -19
- package/dist/chunk-JEQ3XTHC.js +42 -0
- package/dist/{chunk-FSP7CMNU.js → chunk-JGRC33J2.js} +50 -4
- package/dist/{chunk-TVH4ONAM.js → chunk-JKKCYP3C.js} +10 -10
- package/dist/{chunk-HJWWJ6IL.js → chunk-JSC3U7TI.js} +16 -4
- package/dist/{chunk-C537JADH.js → chunk-KK4JZPBQ.js} +19 -141
- package/dist/{chunk-K6BF4U2H.js → chunk-KKOJXO6R.js} +62 -14
- package/dist/{chunk-IHXBNWMM.js → chunk-KXDSS5WJ.js} +7 -3
- package/dist/{chunk-6DWBAZ5U.js → chunk-L47TF46W.js} +5 -7
- package/dist/{chunk-HUAS7ITX.js → chunk-LDJG7DW3.js} +91 -42
- package/dist/{chunk-CDNVLKUX.js → chunk-LLDJM5XK.js} +13 -7
- package/dist/{chunk-YPI3QQCF.js → chunk-MCEPRMZW.js} +2 -4
- package/dist/{chunk-Y4CAGMM6.js → chunk-MNJGS2IN.js} +5 -6
- package/dist/{chunk-VKFQTNDV.js → chunk-MUW2BDDH.js} +4 -4
- package/dist/{chunk-E67WX76H.js → chunk-MWUZBSAQ.js} +104 -152
- package/dist/{chunk-OJTRZGR3.js → chunk-N2Z7HLVY.js} +21 -21
- package/dist/{chunk-TVHHYFHE.js → chunk-NEDJ26B5.js} +2 -2
- package/dist/{chunk-FYUN5KZ3.js → chunk-NIQJ66N4.js} +21 -21
- package/dist/{chunk-U2WB7TZS.js → chunk-NMJXSHBJ.js} +97 -85
- package/dist/{chunk-CWVRRIEI.js → chunk-NZMNUPZZ.js} +2 -2
- package/dist/{chunk-VEGN6WIQ.js → chunk-O5CVSAG5.js} +3 -3
- package/dist/{chunk-MOPSG2X7.js → chunk-OML5D5V5.js} +8 -8
- package/dist/{chunk-2VG7KLYV.js → chunk-PAJQJ7BS.js} +5816 -3255
- package/dist/{chunk-ZW55JB7N.js → chunk-PUVDKJ2Y.js} +2 -2
- package/dist/{chunk-BTGG6BG2.js → chunk-QWGDJJYJ.js} +158 -19
- package/dist/chunk-R6Q67RJH.js +134 -0
- package/dist/{chunk-ZJLUDYFY.js → chunk-RRNP2ANY.js} +6 -6
- package/dist/{chunk-PVAMAVBB.js → chunk-RSJ25QSL.js} +102 -2
- package/dist/{chunk-NLFAQR7Z.js → chunk-S66XZJOF.js} +3 -23
- package/dist/chunk-SKHCAU7K.js +385 -0
- package/dist/chunk-SZAA6XDG.js +30 -0
- package/dist/{chunk-J4HBWF6Y.js → chunk-TM6LQDI3.js} +131 -28
- package/dist/chunk-UOIZ7DA4.js +41 -0
- package/dist/{chunk-MA3H6DM5.js → chunk-UPZU6GE4.js} +25 -3
- package/dist/{chunk-BWW4HLO4.js → chunk-UXCU4E3T.js} +8 -6
- package/dist/{chunk-N5UK64DP.js → chunk-V2ANDPVT.js} +4 -4
- package/dist/{chunk-AK5XEFVZ.js → chunk-VA5FNYMT.js} +26 -13
- package/dist/{chunk-6VC4OV3Z.js → chunk-VIA6RFQZ.js} +3 -11
- package/dist/{chunk-ZAZB4JMW.js → chunk-VKPAQYEB.js} +27 -8
- package/dist/{chunk-QKIFBZKT.js → chunk-VW6DOEDG.js} +497 -81
- package/dist/{chunk-SCYB3HA4.js → chunk-W6RRQCPQ.js} +63 -19
- package/dist/{chunk-2NM363SV.js → chunk-WBKFA554.js} +10 -10
- package/dist/{chunk-R32CLGZ6.js → chunk-WCXUNS7U.js} +82 -21
- package/dist/{chunk-GPPB3JBE.js → chunk-WRBAGUNF.js} +3 -3
- package/dist/{chunk-IXJT6DCX.js → chunk-XIVNBFZS.js} +85 -30
- package/dist/{chunk-UEDMSP56.js → chunk-XPWWI35G.js} +417 -201
- package/dist/chunk-XRZT5WY5.js +47 -0
- package/dist/{chunk-3QSOM6PA.js → chunk-Y3CBHOR6.js} +2 -2
- package/dist/{chunk-VXMFAE2W.js → chunk-YPC6ZR5L.js} +19 -6
- package/dist/{chunk-AKB4GYDL.js → chunk-YQWYVTMC.js} +5 -5
- package/dist/{chunk-6I5ILFOF.js → chunk-ZA4VCIGV.js} +3 -3
- package/dist/{chunk-7OBGU7UB.js → chunk-ZDN3Y73Y.js} +12 -18
- package/dist/{chunk-3I5NY75V.js → chunk-ZWPRK62N.js} +8 -5
- package/dist/cli/index.js +41 -39
- package/dist/{clio-IT3G3VQH.js → clio-CMMK4KRR.js} +9 -9
- package/dist/{code-nav-RK6S7F6E.js → code-nav-MDZNQS33.js} +89 -21
- package/dist/{components-UBWCQSRW.js → components-UCUQ4QXW.js} +4 -4
- package/dist/{config-3QZRWZJF.js → config-SVM5P5YI.js} +131 -84
- package/dist/{configure-FL7Y3KJF.js → configure-LE3IK2TJ.js} +28 -26
- package/dist/{context-5HE7ODYK.js → context-2OHRKS42.js} +69 -64
- package/dist/{context-KYQFRVDC.js → context-E3VC7RX5.js} +15 -11
- package/dist/{context-XNHL75JV.js → context-VNCR7KAG.js} +93 -65
- package/dist/{context-clear-N545L53A.js → context-clear-BW4O37TG.js} +64 -60
- package/dist/context-map-COB37XXN.js +505 -0
- package/dist/{context-working-set-QHKXSV2F.js → context-working-set-VDS25HXZ.js} +19 -18
- package/dist/{dispatch-runner-RGIE5PCT.js → dispatch-runner-5AHT53RF.js} +93 -82
- package/dist/{docs-5NAF6AU7.js → docs-PD3EXDKU.js} +21 -20
- package/dist/{doctor-ZGPEGHIP.js → doctor-WNNVO6FY.js} +48 -47
- package/dist/{eval-GXLL44RD.js → eval-7G7SGAYO.js} +287 -115
- package/dist/{eval-inventory-HBWSWQOK.js → eval-inventory-Y6QRFOH5.js} +4 -4
- package/dist/{evidence-HWLBRH3Q.js → evidence-VD6736FQ.js} +67 -64
- package/dist/{evolve-FTZBMNVW.js → evolve-AL3NGVRL.js} +65 -62
- package/dist/{extensions-VHRBEID7.js → extensions-MOVJ32NM.js} +9 -7
- package/dist/{fleet-CKZHJWZJ.js → fleet-QZHUMAGI.js} +114 -111
- package/dist/{fleet-commands-EXDXBMV6.js → fleet-commands-BAYT5FJZ.js} +10 -10
- package/dist/{fleet-decisions-OTHB6KRL.js → fleet-decisions-IREVMRU4.js} +7 -6
- package/dist/{fleet-graph-YTEZUCUT.js → fleet-graph-YCTT3HTI.js} +22 -19
- package/dist/{fleet-inspect-SS6YMDCK.js → fleet-inspect-QVJTDAVB.js} +58 -55
- package/dist/{fleet-preflight-PBY4VYOM.js → fleet-preflight-25QAFPK4.js} +4 -4
- package/dist/{fleet-validate-KMEM5L3S.js → fleet-validate-5O57AAJ7.js} +26 -23
- package/dist/{fleet-verify-QD5M7E7Q.js → fleet-verify-CPH2W2T6.js} +59 -56
- package/dist/{fleet-view-WAMJYNDT.js → fleet-view-SWBR3VGQ.js} +58 -55
- package/dist/{init-5XQRBOFV.js → init-J477LKZH.js} +82 -79
- package/dist/{interop-34TVO25M.js → interop-3FCM6XLG.js} +11 -11
- package/dist/{library-3QY6KF57.js → library-QUQEIUG6.js} +30 -27
- package/dist/{memory-L4UTIIIW.js → memory-SGGSEP65.js} +67 -64
- package/dist/{models-ZVX3QOWE.js → models-HEKUAXXK.js} +53 -46
- package/dist/{monitor-CEKVSYTS.js → monitor-HKU57TYQ.js} +63 -60
- package/dist/{orchestrator-77BAP6BC.js → orchestrator-VDFAEFAI.js} +1831 -1057
- package/dist/{panes-7STHOAUJ.js → panes-DN2SSFOH.js} +5 -5
- package/dist/{panes-SHAUIRXY.js → panes-TALGNPZT.js} +29 -14
- package/dist/{paths-L7LGY6RN.js → paths-NBMFAIEZ.js} +5 -5
- package/dist/reset-EAJFFJVB.js +344 -0
- package/dist/{resources-74GKTLSF.js → resources-OVKSEFVE.js} +29 -20
- package/dist/{run-HBAUJNNZ.js → run-7DP7ZF2J.js} +120 -115
- package/dist/{share-G3APVLVP.js → share-WML67FT3.js} +32 -27
- package/dist/{skills-35HHUKCR.js → skills-SG662R2K.js} +41 -31
- package/dist/{skills-eval-QN4HSHDC.js → skills-eval-VVZEUU46.js} +78 -77
- package/dist/{skills-inventory-J357J34F.js → skills-inventory-I2E23GET.js} +23 -20
- package/dist/{slash-commands-JZZCQA32.js → slash-commands-S7MBJDQK.js} +40 -36
- package/dist/{steer-XAVHJM22.js → steer-2LQOMCPB.js} +3 -3
- package/dist/{support-U7QOWY26.js → support-CC2UJBJ6.js} +6 -6
- package/dist/{targets-DSM6CY3M.js → targets-4QC3HIEW.js} +54 -54
- package/dist/{terminal-lease-JOPFUVEM.js → terminal-lease-TUHIJ6Y2.js} +5 -5
- package/dist/{tools-MKNWVPBH.js → tools-TFGJICCU.js} +10 -10
- package/dist/{trace-ECQ7TIYZ.js → trace-FXMXUZUF.js} +55 -7
- package/dist/uninstall-5PEVOE5B.js +408 -0
- package/dist/upgrade-M4WXY6KN.js +303 -0
- package/dist/{usage-X52N3IDJ.js → usage-N7ZNVLEM.js} +151 -104
- package/dist/{verifiers-EJTVVSMA.js → verifiers-DJTP4XX6.js} +15 -15
- package/dist/{verify-YJL6XET2.js → verify-RWE4PPEK.js} +9 -9
- package/dist/{web-fetch-MPIFL3LL.js → web-fetch-MPARV2K7.js} +2 -2
- package/dist/{wiki-generate-4NDZTQ4B.js → wiki-generate-C7IQOXSP.js} +89 -86
- package/dist/{with-panes-OBOBFIIR.js → with-panes-4GCGSL7J.js} +53 -257
- package/dist/worker/entry.js +90 -74
- package/docs/README.md +176 -81
- package/docs/{acp.md → architecture/acp.md} +36 -20
- package/docs/{alcf-provider.md → architecture/alcf-provider.md} +8 -5
- package/docs/{architecture.md → architecture/architecture.md} +43 -22
- package/docs/{artifact-placement.md → architecture/artifact-placement.md} +27 -23
- package/docs/architecture/artifact-versions.md +90 -0
- package/docs/{capacity-and-scheduling.md → architecture/capacity-and-scheduling.md} +26 -13
- package/docs/{context-engine.md → architecture/context-engine.md} +29 -25
- package/docs/{context-working-set.md → architecture/context-working-set.md} +13 -10
- package/docs/{dispatch-architecture-rationale.md → architecture/dispatch-architecture-rationale.md} +12 -9
- package/docs/{dispatch-typed-intent.md → architecture/dispatch-typed-intent.md} +68 -46
- package/docs/{evidence-and-memory.md → architecture/evidence-and-memory.md} +23 -16
- package/docs/{middleware-and-components.md → architecture/middleware-and-components.md} +11 -5
- package/docs/{model-catalog.md → architecture/model-catalog.md} +61 -27
- package/docs/{observability.md → architecture/observability.md} +38 -14
- package/docs/{pi-boundary.md → architecture/pi-boundary.md} +24 -11
- package/docs/{prompt-envelope-and-tools.md → architecture/prompt-envelope-and-tools.md} +57 -20
- package/docs/{provider-adapter-cookbook.md → architecture/provider-adapter-cookbook.md} +99 -25
- package/docs/{safety-model.md → architecture/safety-model.md} +35 -20
- package/docs/{session-lifecycle.md → architecture/session-lifecycle.md} +8 -5
- package/docs/architecture/time-conventions.md +125 -0
- package/docs/{trace-store.md → architecture/trace-store.md} +13 -5
- package/docs/{tui-design.md → architecture/tui-design.md} +13 -13
- package/docs/{worker-dispatch-mechanics.md → architecture/worker-dispatch-mechanics.md} +27 -30
- package/docs/{built-in-agents.md → guide/built-in-agents.md} +65 -35
- package/docs/{commands-and-modes.md → guide/commands-and-modes.md} +66 -61
- package/docs/{configuration-and-targets.md → guide/configuration-and-targets.md} +323 -297
- package/docs/guide/configuration-reference.md +1163 -0
- package/docs/{environment-variables.md → guide/environment-variables.md} +33 -28
- package/docs/{exit-codes-and-output.md → guide/exit-codes-and-output.md} +6 -3
- package/docs/{extensions-and-sharing.md → guide/extensions-and-sharing.md} +41 -14
- package/docs/{fleet-dispatch.md → guide/fleet-dispatch.md} +39 -43
- package/docs/{glossary.md → guide/glossary.md} +14 -11
- package/docs/{installation-and-lifecycle.md → guide/installation-and-lifecycle.md} +81 -17
- package/docs/guide/panes-and-files.md +290 -0
- package/docs/{proactive-memory.md → guide/proactive-memory.md} +131 -107
- package/docs/{resource-library.md → guide/resource-library.md} +13 -4
- package/docs/{skills-marketplace.md → guide/skills-marketplace.md} +25 -3
- package/docs/{tool-usage.md → guide/tool-usage.md} +87 -23
- package/docs/{troubleshooting.md → guide/troubleshooting.md} +9 -4
- package/docs/{config-knobs-audit.md → history/config-knobs-audit.md} +11 -11
- package/docs/{release-cut-checklist.md → history/release-cut-checklist.md} +29 -2
- package/docs/process/development-pipeline.md +152 -0
- package/docs/process/documentation-coverage.md +100 -0
- package/docs/process/documentation-guide.md +187 -0
- package/docs/{eval-runner.md → process/eval-runner.md} +108 -53
- package/docs/{evals-internal.md → process/evals-internal.md} +10 -10
- package/docs/{evolution.md → process/evolution.md} +2 -2
- package/docs/{fleet-demo-runbook.md → process/fleet-demo-runbook.md} +11 -7
- package/docs/{git-commit-provenance.md → process/git-commit-provenance.md} +11 -4
- package/docs/{performance-methodology.md → process/performance-methodology.md} +87 -69
- package/docs/{scientific-validation.md → process/scientific-validation.md} +4 -4
- package/evals/README.md +2 -2
- package/evals/behavioral-model.yaml +3 -2
- package/package.json +10 -8
- package/skills/README.md +52 -41
- package/skills/coding/ast-grep/SKILL.md +102 -31
- package/skills/coding/ast-grep/evals.md +26 -0
- package/skills/coding/coding-standards/SKILL.md +41 -6
- package/skills/coding/coding-standards/evals.md +23 -0
- package/skills/coding/prototype/SKILL.md +88 -29
- package/skills/coding/prototype/evals.md +19 -0
- package/skills/coding/tdd/SKILL.md +81 -54
- package/skills/coding/tdd/evals.md +20 -0
- package/skills/context/context-handoff/SKILL.md +44 -3
- package/skills/context/context-handoff/evals.md +44 -0
- package/skills/context/context-prime/SKILL.md +46 -16
- package/skills/context/context-prime/evals.md +45 -0
- package/skills/git/branch-closeout/SKILL.md +132 -0
- package/skills/git/branch-closeout/evals.md +133 -0
- package/skills/git/branch-closeout/references/closeout-checklist.md +81 -0
- package/skills/git/file-ticket/SKILL.md +78 -64
- package/skills/git/file-ticket/assets/issue-template.md +22 -0
- package/skills/git/file-ticket/evals.md +31 -26
- package/skills/git/file-ticket/references/issue-discovery.md +49 -0
- package/skills/git/fix-issue/SKILL.md +88 -65
- package/skills/git/fix-issue/evals.md +35 -31
- package/skills/git/fix-issue/references/diagnosis-and-rca.md +46 -0
- package/skills/git/resolve-merge-conflicts/SKILL.md +101 -52
- package/skills/git/resolve-merge-conflicts/evals.md +52 -25
- package/skills/git/resolve-merge-conflicts/references/conflict-matrix.md +126 -0
- package/skills/git/ship/SKILL.md +103 -67
- package/skills/git/ship/assets/pr-template.md +21 -0
- package/skills/git/ship/evals.md +44 -28
- package/skills/git/ship/references/remote-and-branch-policy.md +62 -0
- package/skills/git/worktree-create/SKILL.md +80 -50
- package/skills/git/worktree-create/evals.md +40 -33
- package/skills/git/worktree-create/references/worktree-setup.md +62 -66
- package/skills/git/worktree-merge/SKILL.md +112 -65
- package/skills/git/worktree-merge/evals.md +42 -34
- package/skills/git/worktree-merge/references/merge-strategies.md +52 -0
- package/skills/meta/clio-coder-dev/SKILL.md +9 -5
- package/skills/meta/clio-coder-dev/evals.md +3 -2
- package/skills/meta/clio-coder-test/SKILL.md +102 -95
- package/skills/meta/clio-coder-test/evals.md +9 -4
- package/skills/meta/clio-coder-test/references/harness.md +100 -124
- package/skills/meta/clio-coder-test/references/test-map.md +77 -50
- package/skills/meta/credentials/SKILL.md +2 -2
- package/skills/meta/find-skills/SKILL.md +2 -2
- package/skills/meta/herdr/SKILL.md +2 -2
- package/skills/meta/skill-craft/SKILL.md +22 -16
- package/skills/planning/archify/SKILL.md +196 -0
- package/skills/planning/archify/evals.md +65 -0
- package/skills/planning/architecture/SKILL.md +62 -13
- package/skills/planning/architecture/evals.md +65 -0
- package/skills/planning/backlog/SKILL.md +131 -15
- package/skills/planning/backlog/evals.md +142 -0
- package/skills/planning/prd/SKILL.md +47 -7
- package/skills/planning/prd/evals.md +54 -0
- package/skills/planning/product-intent/SKILL.md +58 -3
- package/skills/planning/product-intent/evals.md +70 -0
- package/skills/planning/tech-spec/SKILL.md +54 -3
- package/skills/planning/tech-spec/evals.md +73 -0
- package/skills/registry.yaml +70 -62
- package/skills/remote.yaml +13 -0
- package/skills/research/arxiv-literature/SKILL.md +77 -19
- package/skills/research/arxiv-literature/evals.md +50 -0
- package/skills/research/experiment-protocol/SKILL.md +21 -2
- package/skills/research/experiment-protocol/evals.md +23 -0
- package/skills/research/scientific-debugging/SKILL.md +24 -2
- package/skills/research/scientific-debugging/evals.md +18 -0
- package/skills/research/scientific-modernization/SKILL.md +27 -2
- package/skills/research/scientific-modernization/evals.md +27 -0
- package/skills/skill-marketplace.json +97 -62
- package/skills/workflow/cut-it/SKILL.md +66 -6
- package/skills/workflow/cut-it/evals.md +101 -0
- package/skills/workflow/design-council/SKILL.md +118 -28
- package/skills/workflow/design-council/evals.md +161 -0
- package/skills/workflow/grill-me/SKILL.md +87 -11
- package/skills/workflow/grill-me/evals.md +153 -0
- package/skills/workflow/workflow-distiller/SKILL.md +77 -18
- package/skills/workflow/workflow-distiller/evals.md +118 -0
- package/src/cli/args.ts +2 -2
- package/src/cli/bootstrap-generate.ts +1 -1
- package/src/cli/config-inspect.ts +65 -12
- package/src/cli/configure-interop.ts +105 -13
- package/src/cli/configure-oauth.ts +57 -0
- package/src/cli/configure-onboarding.ts +980 -0
- package/src/cli/configure-target.ts +594 -0
- package/src/cli/configure.ts +1082 -532
- package/src/cli/context-map.ts +114 -0
- package/src/cli/context.ts +4 -0
- package/src/cli/docs.ts +22 -14
- package/src/cli/doctor-naming.ts +5 -5
- package/src/cli/doctor-toolchain.ts +3 -3
- package/src/cli/eval.ts +1 -2
- package/src/cli/extensions.ts +2 -1
- package/src/cli/fleet.ts +1 -1
- package/src/cli/index.ts +3 -1
- package/src/cli/internal-dispatch.ts +3 -4
- package/src/cli/lifecycle-presenter.ts +436 -0
- package/src/cli/models.ts +10 -2
- package/src/cli/modes/print.ts +5 -1
- package/src/cli/panes.ts +19 -5
- package/src/cli/reset.ts +228 -106
- package/src/cli/run.ts +9 -4
- package/src/cli/select.ts +664 -0
- package/src/cli/share.ts +5 -1
- package/src/cli/skills-eval.ts +3 -3
- package/src/cli/skills.ts +9 -2
- package/src/cli/targets.ts +5 -6
- package/src/cli/trace.ts +55 -4
- package/src/cli/uninstall.ts +233 -165
- package/src/cli/upgrade.ts +204 -149
- package/src/cli/usage.ts +86 -27
- package/src/cli/validate-model.ts +3 -3
- package/src/cli/wiki-generate.ts +1 -1
- package/src/core/artifact-paths.ts +1 -1
- package/src/core/bash-exec.ts +131 -86
- package/src/core/bus-events.ts +51 -6
- package/src/core/config.ts +61 -1
- package/src/core/defaults.ts +7 -4
- package/src/core/dispatch-outcome.ts +16 -0
- package/src/core/external-diagnostic.ts +44 -0
- package/src/core/gateway-routing.ts +157 -0
- package/src/core/guardrails.ts +10 -49
- package/src/core/prompt-hint.ts +9 -0
- package/src/core/safe-exec.ts +17 -2
- package/src/core/skill-activation.ts +89 -2
- package/src/domains/agents/builtins/architect.md +2 -3
- package/src/domains/agents/builtins/coder.md +3 -2
- package/src/domains/agents/builtins/debugger.md +2 -2
- package/src/domains/agents/builtins/documenter.md +2 -2
- package/src/domains/agents/builtins/git-master.md +1 -1
- package/src/domains/agents/builtins/oracle.md +1 -1
- package/src/domains/agents/builtins/provenance.md +1 -1
- package/src/domains/agents/builtins/researcher.md +1 -1
- package/src/domains/agents/builtins/scout.md +1 -1
- package/src/domains/agents/builtins/tester.md +2 -2
- package/src/domains/agents/builtins/verifier.md +2 -2
- package/src/domains/agents/builtins/wiki-writer.md +1 -1
- package/src/domains/agents/builtins/world-knowledge.md +31 -0
- package/src/domains/agents/catalog.ts +13 -15
- package/src/domains/agents/contract.ts +2 -0
- package/src/domains/agents/extension.ts +23 -1
- package/src/domains/agents/result-contract.ts +70 -0
- package/src/domains/config/keybindings.ts +8 -0
- package/src/domains/context/extension.ts +0 -3
- package/src/domains/context/wiki/map-seed.ts +589 -0
- package/src/domains/context/wiki/plan.ts +2 -2
- package/src/domains/context/working-set/path-index.ts +1 -0
- package/src/domains/dispatch/admission.ts +29 -0
- package/src/domains/dispatch/agent-candidates.ts +10 -0
- package/src/domains/dispatch/budget-envelope.ts +86 -1
- package/src/domains/dispatch/capability-match.ts +11 -0
- package/src/domains/dispatch/capacity-lease.ts +17 -0
- package/src/domains/dispatch/contract.ts +11 -1
- package/src/domains/dispatch/extension.ts +237 -49
- package/src/domains/dispatch/host-verification.ts +435 -39
- package/src/domains/dispatch/intent-requirements.ts +10 -0
- package/src/domains/dispatch/intent.ts +18 -1
- package/src/domains/dispatch/path-scope.ts +235 -24
- package/src/domains/dispatch/run-event-journal.ts +4 -15
- package/src/domains/dispatch/state.ts +2 -3
- package/src/domains/dispatch/transport.ts +45 -21
- package/src/domains/dispatch/types.ts +58 -3
- package/src/domains/dispatch/worker-model-metadata.ts +38 -0
- package/src/domains/eval/artifacts/store.ts +5 -0
- package/src/domains/eval/metrics/call-ledger-stream.ts +34 -11
- package/src/domains/eval/metrics/token-stream.ts +201 -31
- package/src/domains/eval/metrics/tracked.ts +40 -4
- package/src/domains/eval/runners/clio-run.ts +5 -2
- package/src/domains/eval/schema/suite.ts +28 -0
- package/src/domains/eval/schema/verdict.ts +2 -2
- package/src/domains/eval/store.ts +8 -1
- package/src/domains/eval/suites/resolve.ts +13 -1
- package/src/domains/eval/suites/run.ts +24 -3
- package/src/domains/evidence/trust-status.ts +10 -1
- package/src/domains/extensions/contract.ts +15 -1
- package/src/domains/extensions/discovery.ts +238 -41
- package/src/domains/extensions/extension.ts +105 -6
- package/src/domains/extensions/index.ts +24 -0
- package/src/domains/extensions/integrity.ts +189 -0
- package/src/domains/extensions/manager.ts +17 -1
- package/src/domains/extensions/resource-path.ts +27 -0
- package/src/domains/extensions/resources.ts +18 -38
- package/src/domains/extensions/snapshot-store.ts +39 -0
- package/src/domains/extensions/snapshot.ts +180 -0
- package/src/domains/extensions/state.ts +385 -57
- package/src/domains/extensions/types.ts +118 -1
- package/src/domains/interop/registry.ts +6 -2
- package/src/domains/interop/types.ts +4 -0
- package/src/domains/lifecycle/migrations/2026-09-01-extension-install-digests.ts +27 -0
- package/src/domains/lifecycle/migrations/index.ts +6 -0
- package/src/domains/lifecycle/naming-resources.ts +19 -4
- package/src/domains/lifecycle/naming-yazi.ts +10 -5
- package/src/domains/memory/task-memory-policy.ts +70 -26
- package/src/domains/memory/task-memory-telemetry.ts +1 -0
- package/src/domains/middleware/contract.ts +26 -0
- package/src/domains/middleware/extension.ts +24 -24
- package/src/domains/middleware/hook-receipts.ts +27 -4
- package/src/domains/middleware/hooks-io.ts +65 -32
- package/src/domains/middleware/hooks.ts +64 -0
- package/src/domains/middleware/index.ts +28 -5
- package/src/domains/middleware/marketplace-offer.ts +3 -35
- package/src/domains/middleware/memory-intervention.ts +127 -32
- package/src/domains/middleware/memory-step-endpoint.ts +3 -2
- package/src/domains/middleware/registrations.ts +326 -0
- package/src/domains/middleware/runtime.ts +28 -0
- package/src/domains/middleware/skills-reminder.ts +31 -2
- package/src/domains/middleware/snapshot.ts +20 -7
- package/src/domains/mux/contract.ts +38 -0
- package/src/domains/mux/detect.ts +6 -13
- package/src/domains/mux/index.ts +1 -1
- package/src/domains/mux/operations.ts +44 -5
- package/src/domains/mux/yazi/assets/yazi.toml +2 -2
- package/src/domains/mux/yazi/session.ts +53 -4
- package/src/domains/mux/yazi/theme.ts +117 -17
- package/src/domains/observability/compaction-usage.ts +118 -0
- package/src/domains/observability/contract.ts +10 -11
- package/src/domains/observability/cost.ts +1 -1
- package/src/domains/observability/extension.ts +17 -4
- package/src/domains/observability/out-of-turn-usage.ts +52 -21
- package/src/domains/observability/projection.ts +14 -90
- package/src/domains/observability/trace-store.ts +43 -7
- package/src/domains/prompts/compiler.ts +73 -53
- package/src/domains/prompts/contract.ts +15 -3
- package/src/domains/prompts/extension.ts +97 -9
- package/src/domains/prompts/fragments/identity/clio-worker.md +1 -3
- package/src/domains/prompts/fragments/identity/clio.md +6 -12
- package/src/domains/prompts/fragments/identity/docs-routing.md +1 -2
- package/src/domains/prompts/fragments/identity/self-awareness.md +3 -11
- package/src/domains/prompts/fragments/operating/contract.md +7 -15
- package/src/domains/prompts/fragments/operating/delegation.md +32 -34
- package/src/domains/prompts/fragments/operating/skills.md +10 -24
- package/src/domains/prompts/fragments/operating/worker.md +1 -8
- package/src/domains/providers/contract.ts +4 -1
- package/src/domains/providers/extension.ts +40 -9
- package/src/domains/providers/index.ts +1 -1
- package/src/domains/providers/model-capabilities.ts +9 -0
- package/src/domains/providers/model-discovery.ts +2 -0
- package/src/domains/providers/model-runtime-capabilities.ts +99 -25
- package/src/domains/providers/models/local-models/clio-coder-local-coding-targets.yaml +699 -114
- package/src/domains/providers/runtime-resolution.ts +31 -0
- package/src/domains/providers/runtimes/antigravity/antigravity-code.ts +225 -45
- package/src/domains/providers/runtimes/common/lmstudio-http.ts +6 -2
- package/src/domains/providers/runtimes/common/local-synth.ts +2 -0
- package/src/domains/providers/runtimes/common/probe-helpers.ts +7 -2
- package/src/domains/providers/runtimes/local-native/llamacpp.ts +9 -1
- package/src/domains/providers/runtimes/protocol/litellm.ts +119 -29
- package/src/domains/providers/support.ts +11 -5
- package/src/domains/providers/target-model-cache.ts +25 -2
- package/src/domains/providers/types/capability-flags.ts +2 -0
- package/src/domains/providers/types/cost-provenance.ts +19 -0
- package/src/domains/providers/types/local-model-quirks.ts +85 -37
- package/src/domains/providers/types/runtime-descriptor.ts +20 -1
- package/src/domains/providers/types/target-descriptor.ts +19 -0
- package/src/domains/resources/index.ts +3 -0
- package/src/domains/resources/skills/install.ts +72 -7
- package/src/domains/resources/skills/loader.ts +23 -19
- package/src/domains/resources/skills/marketplace.ts +63 -11
- package/src/domains/safety/autonomy.ts +15 -0
- package/src/domains/safety/call-target.ts +1 -1
- package/src/domains/safety/index.ts +1 -0
- package/src/domains/safety/loop-detector.ts +7 -4
- package/src/domains/safety/path-policy.ts +1 -1
- package/src/domains/safety/policy-engine.ts +34 -11
- package/src/domains/safety/protected-artifacts.ts +191 -88
- package/src/domains/safety/run-effects.ts +2 -22
- package/src/domains/safety/skill-authority.ts +55 -0
- package/src/domains/session/compaction/compact.ts +72 -22
- package/src/domains/session/entries.ts +6 -0
- package/src/domains/session/task-board.ts +10 -9
- package/src/domains/session/usage.ts +3 -3
- package/src/domains/share/archive.ts +164 -7
- package/src/engine/acp/server.ts +62 -9
- package/src/engine/agent.ts +13 -3
- package/src/engine/ai.ts +26 -8
- package/src/engine/antigravity/subprocess-runtime.ts +386 -120
- package/src/engine/api-registry.ts +3 -0
- package/src/engine/apis/llamacpp-residency.ts +3 -4
- package/src/engine/apis/lmstudio.ts +3 -3
- package/src/engine/apis/ollama-native.ts +6 -6
- package/src/engine/apis/openai-completions.ts +145 -39
- package/src/engine/apis/output-budget.ts +8 -18
- package/src/engine/apis/residency.ts +8 -27
- package/src/engine/external-subprocess.ts +114 -6
- package/src/engine/gemma-channel-filter.ts +19 -0
- package/src/engine/loop-guard.ts +92 -12
- package/src/engine/worker-runtime.ts +40 -11
- package/src/engine/worker-tools.ts +3 -1
- package/src/entry/background-model-metadata.ts +18 -0
- package/src/entry/compaction-prompt.ts +57 -0
- package/src/entry/extension-hook-sources.ts +28 -0
- package/src/entry/extension-reload.ts +309 -0
- package/src/entry/orchestrator.ts +464 -251
- package/src/entry/task-memory-lifecycle.ts +35 -0
- package/src/interactive/application-controller.ts +2 -1
- package/src/interactive/bus-notices.ts +8 -1
- package/src/interactive/chat-loop-messages.ts +16 -17
- package/src/interactive/chat-loop.ts +75 -3
- package/src/interactive/chat-panel.ts +36 -13
- package/src/interactive/chat-renderer.ts +72 -7
- package/src/interactive/cost-overlay.ts +26 -2
- package/src/interactive/dispatch-board.ts +6 -11
- package/src/interactive/footer/widgets.ts +13 -0
- package/src/interactive/interactive-application.ts +39 -4
- package/src/interactive/interactive-input-runtime.ts +4 -0
- package/src/interactive/interactive-presentation.ts +2 -2
- package/src/interactive/interactive-slash-runtime.ts +4 -1
- package/src/interactive/overlays/extensions.ts +9 -1
- package/src/interactive/overlays/help-reference.ts +13 -0
- package/src/interactive/overlays/settings.ts +27 -16
- package/src/interactive/panes-runtime.ts +111 -35
- package/src/interactive/prompt-cache-identity.ts +88 -0
- package/src/interactive/renderers/worker-entry.ts +32 -0
- package/src/interactive/slash-commands.ts +153 -20
- package/src/interactive/stream-pacing-policy.ts +0 -23
- package/src/interactive/theme/labels.ts +19 -13
- package/src/interactive/turn-context.ts +39 -20
- package/src/interactive/turn-recovery.ts +8 -0
- package/src/interactive/turn-runtime.ts +27 -11
- package/src/interactive/turn-state.ts +7 -0
- package/src/interactive/worker-receipts.ts +1 -0
- package/src/interactive/worker-stream.ts +6 -1
- package/src/interactive/yazi-bridge.ts +60 -6
- package/src/tools/agent-tools.ts +30 -1
- package/src/tools/artifact.ts +2 -2
- package/src/tools/ask-user.ts +3 -3
- package/src/tools/bash.ts +1 -1
- package/src/tools/bootstrap.ts +4 -0
- package/src/tools/builtin-tool-catalog.ts +52 -22
- package/src/tools/codewiki/code-nav-surface.ts +6 -0
- package/src/tools/codewiki/code-nav.ts +99 -13
- package/src/tools/context/docs-engine.ts +20 -7
- package/src/tools/context/index.ts +59 -21
- package/src/tools/core-bootstrap.ts +28 -6
- package/src/tools/credential-present.ts +1 -2
- package/src/tools/dispatch-arguments.ts +6 -1
- package/src/tools/dispatch-event-text.ts +10 -0
- package/src/tools/dispatch-plan.ts +49 -4
- package/src/tools/dispatch-run-events.ts +1 -1
- package/src/tools/dispatch-runner.ts +12 -0
- package/src/tools/dispatch-schema.ts +338 -0
- package/src/tools/dispatch-types.ts +3 -0
- package/src/tools/dispatch.ts +9 -254
- package/src/tools/ledger.ts +3 -5
- package/src/tools/monitor-surface.ts +5 -13
- package/src/tools/observation.ts +4 -5
- package/src/tools/panes-surface.ts +4 -11
- package/src/tools/panes.ts +4 -2
- package/src/tools/policy.ts +15 -2
- package/src/tools/read.ts +5 -6
- package/src/tools/registry.ts +41 -12
- package/src/tools/result-shaping.ts +18 -14
- package/src/tools/steer-surface.ts +1 -1
- package/src/tools/tasks.ts +1 -1
- package/src/tools/truncate.ts +6 -5
- package/src/tools/verify/surface.ts +6 -12
- package/src/tools/web-fetch-surface.ts +1 -3
- package/src/tools/worker-evidence.ts +3 -1
- package/src/worker/spec-contract.ts +4 -0
- package/dist/builtins-UJLMOVOV.js +0 -17
- package/dist/chunk-5QIAJV2D.js +0 -48
- package/dist/chunk-JZWT5J3Y.js +0 -814
- package/dist/chunk-K7VKOLQQ.js +0 -15
- package/dist/chunk-PMZCIOCJ.js +0 -25
- package/dist/chunk-SUW5DORT.js +0 -819
- package/dist/chunk-UOV2BYIW.js +0 -107
- package/dist/chunk-WR6U3OVP.js +0 -45
- package/dist/chunk-Y45G3AXC.js +0 -1558
- package/dist/reset-EOLM7GVE.js +0 -230
- package/dist/uninstall-N34PCTGJ.js +0 -331
- package/dist/upgrade-H7TOM7YL.js +0 -323
- package/docs/artifact-versions.md +0 -67
- package/docs/development-pipeline.md +0 -121
- package/docs/documentation-coverage.md +0 -46
- package/docs/documentation-guide.md +0 -167
- package/docs/time-conventions.md +0 -101
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { createRequire as __clioCreateRequire } from "node:module"; const require = __clioCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
EVAL_SUITE_V2_VERSION
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-4IUZQIJ3.js";
|
|
5
5
|
import {
|
|
6
6
|
loadFragments,
|
|
7
7
|
renderCodewikiDigest
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-Y3CBHOR6.js";
|
|
9
|
+
import {
|
|
10
|
+
discoverAgentRecipes
|
|
11
|
+
} from "./chunk-RRNP2ANY.js";
|
|
9
12
|
import {
|
|
10
13
|
EvalTaskFileError,
|
|
11
14
|
TRUST_STATUS_AXES,
|
|
@@ -20,12 +23,11 @@ import {
|
|
|
20
23
|
loadEvalTaskFile,
|
|
21
24
|
summarizeTrustStatus,
|
|
22
25
|
verifyReceiptIntegrity
|
|
23
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-IWT4SF4R.js";
|
|
24
27
|
import {
|
|
25
28
|
listSessionLedgerRefs,
|
|
26
29
|
parseSessionEntries
|
|
27
|
-
} from "./chunk-
|
|
28
|
-
import "./chunk-3DPEIQKN.js";
|
|
30
|
+
} from "./chunk-JKKCYP3C.js";
|
|
29
31
|
import {
|
|
30
32
|
EVAL_BEHAVIOR_METRIC_DEFINITIONS_V1,
|
|
31
33
|
EVAL_EXECUTION_ENVELOPE_SCHEMA_V1,
|
|
@@ -46,37 +48,60 @@ import {
|
|
|
46
48
|
renderEvalServingConfiguration,
|
|
47
49
|
sameEvalServingConfiguration,
|
|
48
50
|
writeEvalArtifactV4
|
|
49
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-FTMGRKEF.js";
|
|
50
52
|
import "./chunk-W6GROXXM.js";
|
|
53
|
+
import "./chunk-RKKLTLYB.js";
|
|
51
54
|
import {
|
|
52
55
|
shellQuote
|
|
53
56
|
} from "./chunk-TXOTCRLG.js";
|
|
57
|
+
import "./chunk-LDJG7DW3.js";
|
|
58
|
+
import "./chunk-NDDGJUXD.js";
|
|
59
|
+
import "./chunk-CE5AX47J.js";
|
|
60
|
+
import "./chunk-3DPEIQKN.js";
|
|
61
|
+
import "./chunk-7DRAWPTZ.js";
|
|
62
|
+
import "./chunk-5MEZN6CB.js";
|
|
63
|
+
import "./chunk-PUVDKJ2Y.js";
|
|
54
64
|
import "./chunk-HVDIIIQW.js";
|
|
55
65
|
import {
|
|
56
|
-
|
|
57
|
-
} from "./chunk-
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-
|
|
61
|
-
import "./chunk-RKKLTLYB.js";
|
|
62
|
-
import "./chunk-SUW5DORT.js";
|
|
63
|
-
import "./chunk-7EPLI7VL.js";
|
|
64
|
-
import "./chunk-6DWBAZ5U.js";
|
|
66
|
+
printError
|
|
67
|
+
} from "./chunk-VPKWYKEY.js";
|
|
68
|
+
import "./chunk-5TSRNF4G.js";
|
|
69
|
+
import "./chunk-EKCHAPYA.js";
|
|
70
|
+
import "./chunk-L47TF46W.js";
|
|
65
71
|
import {
|
|
66
72
|
createSafetyPolicyEngine
|
|
67
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-XIVNBFZS.js";
|
|
68
74
|
import "./chunk-H7IXIC72.js";
|
|
69
|
-
import "./chunk-
|
|
70
|
-
import "./chunk-FSP7CMNU.js";
|
|
75
|
+
import "./chunk-7DICMOS6.js";
|
|
71
76
|
import "./chunk-HHV2GANA.js";
|
|
72
77
|
import {
|
|
73
78
|
agentSpecFingerprint,
|
|
74
79
|
normalizeAgentSpec
|
|
75
|
-
} from "./chunk-
|
|
76
|
-
import "./chunk-
|
|
80
|
+
} from "./chunk-B4OAX3SI.js";
|
|
81
|
+
import "./chunk-I7ZPNEJM.js";
|
|
82
|
+
import "./chunk-GYV6VZOC.js";
|
|
77
83
|
import "./chunk-UL3WSD3F.js";
|
|
78
84
|
import "./chunk-ECH6PKUQ.js";
|
|
85
|
+
import "./chunk-JGRC33J2.js";
|
|
79
86
|
import "./chunk-K6BSR66V.js";
|
|
87
|
+
import "./chunk-CFGTUFWB.js";
|
|
88
|
+
import {
|
|
89
|
+
extractReasoningTokens
|
|
90
|
+
} from "./chunk-NZMNUPZZ.js";
|
|
91
|
+
import "./chunk-HAXOFFRH.js";
|
|
92
|
+
import {
|
|
93
|
+
InvalidIdError
|
|
94
|
+
} from "./chunk-R346GLFC.js";
|
|
95
|
+
import "./chunk-KXDSS5WJ.js";
|
|
96
|
+
import "./chunk-GHS5EBTQ.js";
|
|
97
|
+
import {
|
|
98
|
+
namingCompatibilityEnvironment
|
|
99
|
+
} from "./chunk-D7E7WCDF.js";
|
|
100
|
+
import {
|
|
101
|
+
normalizeClioCoderEventRecord,
|
|
102
|
+
normalizeClioCoderEventType
|
|
103
|
+
} from "./chunk-BTK3SSSK.js";
|
|
104
|
+
import "./chunk-F4EKGO4N.js";
|
|
80
105
|
import {
|
|
81
106
|
readCodewiki,
|
|
82
107
|
structuralCodewikiHash
|
|
@@ -89,50 +114,27 @@ import {
|
|
|
89
114
|
} from "./chunk-33YXPOE3.js";
|
|
90
115
|
import "./chunk-7CR24IG7.js";
|
|
91
116
|
import "./chunk-XPLRXC72.js";
|
|
92
|
-
import "./chunk-
|
|
93
|
-
import
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
import "./chunk-
|
|
97
|
-
import "./chunk-CFGTUFWB.js";
|
|
98
|
-
import {
|
|
99
|
-
extractReasoningTokens
|
|
100
|
-
} from "./chunk-CWVRRIEI.js";
|
|
101
|
-
import "./chunk-MQXIVJ35.js";
|
|
102
|
-
import {
|
|
103
|
-
InvalidIdError
|
|
104
|
-
} from "./chunk-R346GLFC.js";
|
|
105
|
-
import "./chunk-HLW2MRKE.js";
|
|
106
|
-
import {
|
|
107
|
-
normalizeClioCoderEventRecord,
|
|
108
|
-
normalizeClioCoderEventType
|
|
109
|
-
} from "./chunk-BTK3SSSK.js";
|
|
110
|
-
import "./chunk-IHXBNWMM.js";
|
|
111
|
-
import "./chunk-EIMVLWB3.js";
|
|
112
|
-
import {
|
|
113
|
-
namingCompatibilityEnvironment
|
|
114
|
-
} from "./chunk-D7E7WCDF.js";
|
|
115
|
-
import "./chunk-HJWWJ6IL.js";
|
|
117
|
+
import "./chunk-IWHMRKLL.js";
|
|
118
|
+
import "./chunk-UXCU4E3T.js";
|
|
119
|
+
import "./chunk-LL4KHSZI.js";
|
|
120
|
+
import "./chunk-JSC3U7TI.js";
|
|
121
|
+
import "./chunk-S66XZJOF.js";
|
|
116
122
|
import "./chunk-JIEGK6UF.js";
|
|
117
123
|
import "./chunk-EBY63B7G.js";
|
|
118
124
|
import "./chunk-6EJMN2Y3.js";
|
|
119
|
-
import "./chunk-
|
|
120
|
-
import "./chunk-BWW4HLO4.js";
|
|
121
|
-
import "./chunk-LL4KHSZI.js";
|
|
122
|
-
import "./chunk-NLFAQR7Z.js";
|
|
123
|
-
import "./chunk-WNP7O5WZ.js";
|
|
125
|
+
import "./chunk-ID64D7PE.js";
|
|
124
126
|
import "./chunk-336NSSKI.js";
|
|
125
127
|
import "./chunk-IKCO5N3L.js";
|
|
126
128
|
import "./chunk-3I7MS7N2.js";
|
|
127
129
|
import {
|
|
128
130
|
require_dist
|
|
129
131
|
} from "./chunk-APJ265NV.js";
|
|
132
|
+
import "./chunk-WEPFGWHJ.js";
|
|
133
|
+
import "./chunk-YXLYO42X.js";
|
|
130
134
|
import {
|
|
131
135
|
clioDataDir,
|
|
132
136
|
clioStateDir
|
|
133
137
|
} from "./chunk-BYP5D4HI.js";
|
|
134
|
-
import "./chunk-WEPFGWHJ.js";
|
|
135
|
-
import "./chunk-YXLYO42X.js";
|
|
136
138
|
import {
|
|
137
139
|
__toESM,
|
|
138
140
|
init_esm_shims
|
|
@@ -1465,7 +1467,15 @@ function artifactMatrixIdentity(targets) {
|
|
|
1465
1467
|
}
|
|
1466
1468
|
function resolveTargets(targets, options) {
|
|
1467
1469
|
const filtered = options.target === void 0 ? [...targets] : targets.filter((target) => target.id === options.target);
|
|
1468
|
-
const selected = filtered.length > 0 ? filtered : options.target === void 0 ? [...targets] : [
|
|
1470
|
+
const selected = filtered.length > 0 ? filtered : options.target === void 0 ? [...targets] : [
|
|
1471
|
+
{
|
|
1472
|
+
id: options.target,
|
|
1473
|
+
// A one-row suite still owns its thinking dimension when the CLI
|
|
1474
|
+
// substitutes the target/model pair. Dropping it silently changes
|
|
1475
|
+
// an off baseline into the target's configured default.
|
|
1476
|
+
...targets.length === 1 && targets[0]?.thinking !== void 0 ? { thinking: targets[0].thinking } : {}
|
|
1477
|
+
}
|
|
1478
|
+
];
|
|
1469
1479
|
return selected.map((target) => ({
|
|
1470
1480
|
...target,
|
|
1471
1481
|
...options.model === void 0 ? {} : { model: options.model }
|
|
@@ -2284,6 +2294,16 @@ function zeroToolCallMetrics() {
|
|
|
2284
2294
|
init_esm_shims();
|
|
2285
2295
|
import { readFile as readFile2 } from "node:fs/promises";
|
|
2286
2296
|
import { dirname as dirname2, join as join2 } from "node:path";
|
|
2297
|
+
function selectEvalLedgerEntries(durable, stream) {
|
|
2298
|
+
const sessionCalls = assistantCalls(durable).length;
|
|
2299
|
+
const streamCalls = assistantCalls(stream).length;
|
|
2300
|
+
return {
|
|
2301
|
+
entries: sessionCalls > 0 ? durable : [...durable, ...stream],
|
|
2302
|
+
source: sessionCalls > 0 ? "session" : "stream",
|
|
2303
|
+
sessionCalls,
|
|
2304
|
+
streamCalls
|
|
2305
|
+
};
|
|
2306
|
+
}
|
|
2287
2307
|
async function readEvalLedgerSnapshot(stateDir) {
|
|
2288
2308
|
const refs = await listSessionLedgerRefs(stateDir);
|
|
2289
2309
|
const entries = [];
|
|
@@ -2383,7 +2403,7 @@ function emptyEvalTrackedMetrics(source = "estimated") {
|
|
|
2383
2403
|
reasoningTokens: { value: null, source },
|
|
2384
2404
|
toolCalls: zero(),
|
|
2385
2405
|
toolErrors: zero(),
|
|
2386
|
-
ttftMsFirstCall:
|
|
2406
|
+
ttftMsFirstCall: { value: null, source: "estimated" },
|
|
2387
2407
|
wallClockMs: zero(),
|
|
2388
2408
|
contextTokensAtEnd: zero(),
|
|
2389
2409
|
compactions: zero(),
|
|
@@ -2399,6 +2419,7 @@ function assistantCalls(entries) {
|
|
|
2399
2419
|
if (promptCache === null && timing === null && usage === null) return [];
|
|
2400
2420
|
return [
|
|
2401
2421
|
{
|
|
2422
|
+
timestamp: entry.payload.timestampEstimated === true ? null : entry.timestamp,
|
|
2402
2423
|
payload: entry.payload,
|
|
2403
2424
|
promptCache,
|
|
2404
2425
|
backend: promptCache === null ? null : recordField(promptCache, "backend"),
|
|
@@ -2458,9 +2479,19 @@ function reasoningMetric(receipt, calls, compactionUsage) {
|
|
|
2458
2479
|
return measured ? { value: total, source: "ledger" } : { value: null, source: "estimated" };
|
|
2459
2480
|
}
|
|
2460
2481
|
function firstCallTtft(calls) {
|
|
2461
|
-
|
|
2482
|
+
let first;
|
|
2483
|
+
let firstAt = Number.POSITIVE_INFINITY;
|
|
2484
|
+
for (const call of calls) {
|
|
2485
|
+
if (call.timestamp === null) return { value: null, source: "estimated" };
|
|
2486
|
+
const at = Date.parse(call.timestamp);
|
|
2487
|
+
if (!Number.isFinite(at)) return { value: null, source: "estimated" };
|
|
2488
|
+
if (at < firstAt) {
|
|
2489
|
+
first = call;
|
|
2490
|
+
firstAt = at;
|
|
2491
|
+
}
|
|
2492
|
+
}
|
|
2462
2493
|
const value = first?.timing === null || first?.timing === void 0 ? null : nonNegativeNumber(first.timing.ttftMs);
|
|
2463
|
-
return value === null ? { value:
|
|
2494
|
+
return value === null ? { value: null, source: "estimated" } : { value, source: "ledger" };
|
|
2464
2495
|
}
|
|
2465
2496
|
function wallClockMetric(receipt, fallback) {
|
|
2466
2497
|
if (receipt !== null) {
|
|
@@ -2664,13 +2695,15 @@ init_esm_shims();
|
|
|
2664
2695
|
var UNMEASURED_TOKEN_USAGE = {
|
|
2665
2696
|
measured: false,
|
|
2666
2697
|
tokens: { input: 0, output: 0, total: 0, cacheRead: 0, cacheWrite: 0 },
|
|
2667
|
-
costUsd: 0
|
|
2698
|
+
costUsd: 0,
|
|
2699
|
+
provider: emptyProviderObservation()
|
|
2668
2700
|
};
|
|
2669
2701
|
function createTokenUsageFold() {
|
|
2670
2702
|
const tokens = { input: 0, output: 0, total: 0, cacheRead: 0, cacheWrite: 0 };
|
|
2671
2703
|
let costUsd = 0;
|
|
2672
2704
|
let measured = false;
|
|
2673
2705
|
let pending = "";
|
|
2706
|
+
const provider = emptyProviderObservation();
|
|
2674
2707
|
const consume = (line) => {
|
|
2675
2708
|
if (line.trim().length === 0) return;
|
|
2676
2709
|
let event;
|
|
@@ -2679,23 +2712,16 @@ function createTokenUsageFold() {
|
|
|
2679
2712
|
} catch {
|
|
2680
2713
|
return;
|
|
2681
2714
|
}
|
|
2682
|
-
if (!isRecord6(event)
|
|
2683
|
-
|
|
2684
|
-
if (
|
|
2685
|
-
const usage =
|
|
2686
|
-
if (usage ===
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
const totalTokens = numberField2(usage, "totalTokens");
|
|
2693
|
-
tokens.input += input;
|
|
2694
|
-
tokens.output += output;
|
|
2695
|
-
tokens.cacheRead += cacheRead;
|
|
2696
|
-
tokens.cacheWrite += cacheWrite;
|
|
2697
|
-
tokens.total += totalTokens > 0 ? totalTokens : input + output + cacheRead + cacheWrite;
|
|
2698
|
-
if (isRecord6(usage.cost)) costUsd += numberField2(usage.cost, "total");
|
|
2715
|
+
if (!isRecord6(event)) return;
|
|
2716
|
+
observeProviderEvent(provider, event);
|
|
2717
|
+
if (event.type !== "message_end" || !isRecord6(event.message) || event.message.role !== "assistant") return;
|
|
2718
|
+
const usage = readMessageUsage(event.message);
|
|
2719
|
+
if (usage === null) return;
|
|
2720
|
+
if (Object.keys(usage.tokens).length > 0) {
|
|
2721
|
+
measured = true;
|
|
2722
|
+
for (const field of TOKEN_FIELDS) tokens[field] += usage.tokens[field] ?? 0;
|
|
2723
|
+
}
|
|
2724
|
+
costUsd += usage.costUsd ?? 0;
|
|
2699
2725
|
};
|
|
2700
2726
|
return {
|
|
2701
2727
|
push(chunk) {
|
|
@@ -2712,7 +2738,7 @@ function createTokenUsageFold() {
|
|
|
2712
2738
|
consume(pending.replace(/\r$/u, ""));
|
|
2713
2739
|
pending = "";
|
|
2714
2740
|
}
|
|
2715
|
-
return { measured, tokens: { ...tokens }, costUsd };
|
|
2741
|
+
return { measured, tokens: { ...tokens }, costUsd, provider: structuredClone(provider) };
|
|
2716
2742
|
}
|
|
2717
2743
|
};
|
|
2718
2744
|
}
|
|
@@ -2726,24 +2752,145 @@ function addTokenStreamUsage(left, right) {
|
|
|
2726
2752
|
cacheRead: left.tokens.cacheRead + right.tokens.cacheRead,
|
|
2727
2753
|
cacheWrite: left.tokens.cacheWrite + right.tokens.cacheWrite
|
|
2728
2754
|
},
|
|
2729
|
-
costUsd: left.costUsd + right.costUsd
|
|
2755
|
+
costUsd: left.costUsd + right.costUsd,
|
|
2756
|
+
provider: addProviderObservations(left.provider, right.provider)
|
|
2730
2757
|
};
|
|
2731
2758
|
}
|
|
2732
2759
|
function tokenMetricEntries(usage) {
|
|
2733
|
-
if (!usage.measured) return { "tokens.measured": false };
|
|
2734
2760
|
return {
|
|
2735
|
-
|
|
2736
|
-
"tokens.
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2761
|
+
...providerMetricEntries(usage.provider),
|
|
2762
|
+
"tokens.measured": usage.measured,
|
|
2763
|
+
...usage.measured ? {
|
|
2764
|
+
"tokens.input": usage.tokens.input,
|
|
2765
|
+
"tokens.output": usage.tokens.output,
|
|
2766
|
+
"tokens.total": usage.tokens.total,
|
|
2767
|
+
"tokens.cacheRead": usage.tokens.cacheRead,
|
|
2768
|
+
"tokens.cacheWrite": usage.tokens.cacheWrite
|
|
2769
|
+
} : {},
|
|
2741
2770
|
...usage.costUsd > 0 ? { "cost.usd": usage.costUsd } : {}
|
|
2742
2771
|
};
|
|
2743
2772
|
}
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2773
|
+
var TOKEN_FIELDS = ["input", "output", "total", "cacheRead", "cacheWrite"];
|
|
2774
|
+
var STOP_REASONS = ["stop", "toolUse", "length", "error", "aborted", "other"];
|
|
2775
|
+
var RETRY_PHASES = {
|
|
2776
|
+
scheduled: "retryScheduled",
|
|
2777
|
+
retrying: "retryStarted",
|
|
2778
|
+
cancelled: "retryCancelled",
|
|
2779
|
+
exhausted: "retryExhausted",
|
|
2780
|
+
recovered: "retryRecovered"
|
|
2781
|
+
};
|
|
2782
|
+
function emptyProviderObservation() {
|
|
2783
|
+
return {
|
|
2784
|
+
measured: false,
|
|
2785
|
+
stops: { stop: 0, toolUse: 0, length: 0, error: 0, aborted: 0, other: 0 },
|
|
2786
|
+
retries: { scheduled: 0, retrying: 0, cancelled: 0, exhausted: 0, recovered: 0 },
|
|
2787
|
+
errorUsageObservedCalls: 0,
|
|
2788
|
+
errorUsageUnobservedCalls: 0,
|
|
2789
|
+
errorUsageIncompleteCalls: 0,
|
|
2790
|
+
errorCostUnobservedCalls: 0,
|
|
2791
|
+
errorReasoningUnobservedCalls: 0,
|
|
2792
|
+
errorReasoningTokens: null,
|
|
2793
|
+
errorTokens: {},
|
|
2794
|
+
errorCostUsd: null
|
|
2795
|
+
};
|
|
2796
|
+
}
|
|
2797
|
+
function readMessageUsage(message) {
|
|
2798
|
+
if (!isRecord6(message.usage)) return null;
|
|
2799
|
+
const usage = message.usage;
|
|
2800
|
+
const failed = message.stopReason === "error" || message.stopReason === "aborted";
|
|
2801
|
+
const raw = {};
|
|
2802
|
+
for (const field of TOKEN_FIELDS) {
|
|
2803
|
+
const value = nonNegativeNumber2(usage[field === "total" ? "totalTokens" : field]);
|
|
2804
|
+
if (value !== null && (!failed || value > 0)) raw[field] = value;
|
|
2805
|
+
}
|
|
2806
|
+
const cost = isRecord6(usage.cost) ? nonNegativeNumber2(usage.cost.total) : null;
|
|
2807
|
+
const costUsd = cost !== null && cost > 0 ? cost : null;
|
|
2808
|
+
const reportedReasoning = extractReasoningTokens({ ...usage, reasoningTokens: void 0 });
|
|
2809
|
+
const reasoningTokens = reportedReasoning !== null && reportedReasoning > 0 ? reportedReasoning : null;
|
|
2810
|
+
const tokens = raw;
|
|
2811
|
+
if (Object.keys(tokens).length === 0 && costUsd === null && reasoningTokens === null) return null;
|
|
2812
|
+
const completeTokens = Object.keys(tokens).length === TOKEN_FIELDS.length;
|
|
2813
|
+
if (Object.keys(tokens).length > 0 && !(tokens.total !== void 0 && tokens.total > 0)) {
|
|
2814
|
+
tokens.total = (tokens.input ?? 0) + (tokens.output ?? 0) + (tokens.cacheRead ?? 0) + (tokens.cacheWrite ?? 0);
|
|
2815
|
+
}
|
|
2816
|
+
return { tokens, costUsd, completeTokens, reasoningTokens };
|
|
2817
|
+
}
|
|
2818
|
+
function observeProviderEvent(provider, event) {
|
|
2819
|
+
if (event.type === "retry_status" && isRecord6(event.status)) {
|
|
2820
|
+
const phase = event.status.phase;
|
|
2821
|
+
if (typeof phase === "string" && Object.hasOwn(RETRY_PHASES, phase)) {
|
|
2822
|
+
provider.measured = true;
|
|
2823
|
+
provider.retries[phase] += 1;
|
|
2824
|
+
}
|
|
2825
|
+
return;
|
|
2826
|
+
}
|
|
2827
|
+
if (event.type !== "message_end" || !isRecord6(event.message) || event.message.role !== "assistant") return;
|
|
2828
|
+
const reason = event.message.stopReason;
|
|
2829
|
+
if (typeof reason !== "string" || reason.length === 0 || reason === "pending") return;
|
|
2830
|
+
provider.measured = true;
|
|
2831
|
+
const stop = STOP_REASONS.includes(reason) ? reason : "other";
|
|
2832
|
+
provider.stops[stop] += 1;
|
|
2833
|
+
if (reason !== "error") return;
|
|
2834
|
+
const usage = readMessageUsage(event.message);
|
|
2835
|
+
if (usage === null) provider.errorUsageUnobservedCalls += 1;
|
|
2836
|
+
else {
|
|
2837
|
+
provider.errorUsageObservedCalls += 1;
|
|
2838
|
+
for (const field of TOKEN_FIELDS) {
|
|
2839
|
+
const value = usage.tokens[field];
|
|
2840
|
+
if (value !== void 0) provider.errorTokens[field] = (provider.errorTokens[field] ?? 0) + value;
|
|
2841
|
+
}
|
|
2842
|
+
}
|
|
2843
|
+
if (usage?.completeTokens !== true) provider.errorUsageIncompleteCalls += 1;
|
|
2844
|
+
if (usage?.costUsd === void 0 || usage.costUsd === null) provider.errorCostUnobservedCalls += 1;
|
|
2845
|
+
else provider.errorCostUsd = (provider.errorCostUsd ?? 0) + usage.costUsd;
|
|
2846
|
+
if (usage?.reasoningTokens === void 0 || usage.reasoningTokens === null)
|
|
2847
|
+
provider.errorReasoningUnobservedCalls += 1;
|
|
2848
|
+
else provider.errorReasoningTokens = (provider.errorReasoningTokens ?? 0) + usage.reasoningTokens;
|
|
2849
|
+
}
|
|
2850
|
+
function addProviderObservations(left, right) {
|
|
2851
|
+
const result = emptyProviderObservation();
|
|
2852
|
+
result.measured = left.measured || right.measured;
|
|
2853
|
+
for (const reason of STOP_REASONS) result.stops[reason] = left.stops[reason] + right.stops[reason];
|
|
2854
|
+
for (const phase of Object.keys(RETRY_PHASES))
|
|
2855
|
+
result.retries[phase] = left.retries[phase] + right.retries[phase];
|
|
2856
|
+
result.errorUsageObservedCalls = left.errorUsageObservedCalls + right.errorUsageObservedCalls;
|
|
2857
|
+
result.errorUsageUnobservedCalls = left.errorUsageUnobservedCalls + right.errorUsageUnobservedCalls;
|
|
2858
|
+
result.errorUsageIncompleteCalls = left.errorUsageIncompleteCalls + right.errorUsageIncompleteCalls;
|
|
2859
|
+
result.errorCostUnobservedCalls = left.errorCostUnobservedCalls + right.errorCostUnobservedCalls;
|
|
2860
|
+
result.errorReasoningUnobservedCalls = left.errorReasoningUnobservedCalls + right.errorReasoningUnobservedCalls;
|
|
2861
|
+
if (left.errorReasoningTokens !== null || right.errorReasoningTokens !== null)
|
|
2862
|
+
result.errorReasoningTokens = (left.errorReasoningTokens ?? 0) + (right.errorReasoningTokens ?? 0);
|
|
2863
|
+
for (const field of TOKEN_FIELDS) {
|
|
2864
|
+
if (left.errorTokens[field] !== void 0 || right.errorTokens[field] !== void 0) {
|
|
2865
|
+
result.errorTokens[field] = (left.errorTokens[field] ?? 0) + (right.errorTokens[field] ?? 0);
|
|
2866
|
+
}
|
|
2867
|
+
}
|
|
2868
|
+
if (left.errorCostUsd !== null || right.errorCostUsd !== null)
|
|
2869
|
+
result.errorCostUsd = (left.errorCostUsd ?? 0) + (right.errorCostUsd ?? 0);
|
|
2870
|
+
return result;
|
|
2871
|
+
}
|
|
2872
|
+
function providerMetricEntries(provider) {
|
|
2873
|
+
if (!provider.measured) return { "provider.measured": false };
|
|
2874
|
+
const metrics = { "provider.measured": true };
|
|
2875
|
+
for (const reason of STOP_REASONS) metrics[`provider.stopReason.${reason}`] = provider.stops[reason];
|
|
2876
|
+
for (const phase of Object.keys(RETRY_PHASES))
|
|
2877
|
+
metrics[`provider.${RETRY_PHASES[phase]}`] = provider.retries[phase];
|
|
2878
|
+
if (provider.stops.error === 0) return metrics;
|
|
2879
|
+
metrics["provider.errorUsageObservedCalls"] = provider.errorUsageObservedCalls;
|
|
2880
|
+
metrics["provider.errorUsageUnobservedCalls"] = provider.errorUsageUnobservedCalls;
|
|
2881
|
+
metrics["provider.errorUsageIncompleteCalls"] = provider.errorUsageIncompleteCalls;
|
|
2882
|
+
metrics["provider.errorCostUnobservedCalls"] = provider.errorCostUnobservedCalls;
|
|
2883
|
+
metrics["provider.errorReasoningUnobservedCalls"] = provider.errorReasoningUnobservedCalls;
|
|
2884
|
+
if (provider.errorReasoningTokens !== null) metrics["provider.errorReasoningTokens"] = provider.errorReasoningTokens;
|
|
2885
|
+
for (const field of TOKEN_FIELDS) {
|
|
2886
|
+
const value = provider.errorTokens[field];
|
|
2887
|
+
if (value !== void 0) metrics[`provider.errorTokens.${field}`] = value;
|
|
2888
|
+
}
|
|
2889
|
+
if (provider.errorCostUsd !== null) metrics["provider.errorCostUsd"] = provider.errorCostUsd;
|
|
2890
|
+
return metrics;
|
|
2891
|
+
}
|
|
2892
|
+
function nonNegativeNumber2(value) {
|
|
2893
|
+
return typeof value === "number" && Number.isFinite(value) && value >= 0 ? value : null;
|
|
2747
2894
|
}
|
|
2748
2895
|
function isRecord6(value) {
|
|
2749
2896
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -2770,7 +2917,7 @@ function createEvalCallLedgerFold(now = () => performance.now()) {
|
|
|
2770
2917
|
activeFirstOutputAt = null;
|
|
2771
2918
|
return;
|
|
2772
2919
|
}
|
|
2773
|
-
if (event
|
|
2920
|
+
if (isAssistantOutput(event) && activeStartedAt !== null && activeFirstOutputAt === null) {
|
|
2774
2921
|
activeFirstOutputAt = now();
|
|
2775
2922
|
return;
|
|
2776
2923
|
}
|
|
@@ -2784,24 +2931,28 @@ function createEvalCallLedgerFold(now = () => performance.now()) {
|
|
|
2784
2931
|
}
|
|
2785
2932
|
const endedAt = now();
|
|
2786
2933
|
const promptCache = {
|
|
2787
|
-
input:
|
|
2788
|
-
cacheRead:
|
|
2789
|
-
cacheWrite:
|
|
2934
|
+
input: nonNegativeNumber3(usage.input) ?? 0,
|
|
2935
|
+
cacheRead: nonNegativeNumber3(usage.cacheRead) ?? 0,
|
|
2936
|
+
cacheWrite: nonNegativeNumber3(usage.cacheWrite) ?? 0,
|
|
2790
2937
|
backendVerdict: "unknown"
|
|
2791
2938
|
};
|
|
2792
2939
|
if (isRecord7(message.backendTimings)) promptCache.backend = structuredClone(message.backendTimings);
|
|
2793
2940
|
const previous = entries.at(-1);
|
|
2941
|
+
const timestamp = messageTimestamp(message.timestamp);
|
|
2794
2942
|
entries.push({
|
|
2795
2943
|
kind: "message",
|
|
2796
2944
|
role: "assistant",
|
|
2797
2945
|
turnId: `eval-call-${entries.length + 1}`,
|
|
2798
2946
|
parentTurnId: previous?.turnId ?? null,
|
|
2799
|
-
timestamp:
|
|
2947
|
+
timestamp: timestamp ?? (/* @__PURE__ */ new Date(0)).toISOString(),
|
|
2800
2948
|
payload: {
|
|
2949
|
+
// Retain the legacy ISO placeholder without treating it as observed
|
|
2950
|
+
// chronology. Per-call monotonic timing remains usable on its own.
|
|
2951
|
+
...timestamp === null ? { timestampEstimated: true } : {},
|
|
2801
2952
|
promptCache,
|
|
2802
|
-
timing: {
|
|
2803
|
-
ttftMs:
|
|
2804
|
-
apiMs:
|
|
2953
|
+
timing: activeStartedAt === null ? null : {
|
|
2954
|
+
ttftMs: activeFirstOutputAt === null ? null : Math.round(Math.max(0, activeFirstOutputAt - activeStartedAt)),
|
|
2955
|
+
apiMs: Math.round(Math.max(0, endedAt - activeStartedAt))
|
|
2805
2956
|
},
|
|
2806
2957
|
usage: structuredClone(usage)
|
|
2807
2958
|
}
|
|
@@ -2828,16 +2979,22 @@ function createEvalCallLedgerFold(now = () => performance.now()) {
|
|
|
2828
2979
|
}
|
|
2829
2980
|
};
|
|
2830
2981
|
}
|
|
2982
|
+
function isAssistantOutput(event) {
|
|
2983
|
+
const output = event.type === "message_update" ? event.assistantMessageEvent : event;
|
|
2984
|
+
if (!isRecord7(output)) return false;
|
|
2985
|
+
if (output.type === "toolcall_start") return event.type === "message_update";
|
|
2986
|
+
return (output.type === "text_delta" || output.type === "thinking_delta" || output.type === "toolcall_delta") && typeof output.delta === "string" && output.delta.length > 0;
|
|
2987
|
+
}
|
|
2831
2988
|
function isAssistantMessage(value) {
|
|
2832
2989
|
return isRecord7(value) && value.role === "assistant";
|
|
2833
2990
|
}
|
|
2834
2991
|
function messageTimestamp(value) {
|
|
2835
|
-
const milliseconds =
|
|
2836
|
-
if (milliseconds === null) return
|
|
2992
|
+
const milliseconds = nonNegativeNumber3(value);
|
|
2993
|
+
if (milliseconds === null) return null;
|
|
2837
2994
|
const date = new Date(milliseconds);
|
|
2838
|
-
return Number.isFinite(date.getTime()) ? date.toISOString() :
|
|
2995
|
+
return Number.isFinite(date.getTime()) ? date.toISOString() : null;
|
|
2839
2996
|
}
|
|
2840
|
-
function
|
|
2997
|
+
function nonNegativeNumber3(value) {
|
|
2841
2998
|
return typeof value === "number" && Number.isFinite(value) && value >= 0 ? value : null;
|
|
2842
2999
|
}
|
|
2843
3000
|
function parseRecord(line) {
|
|
@@ -3226,16 +3383,19 @@ function toolBehaviorMetricEntriesFromJsonl(stdout, cwd, readObservation) {
|
|
|
3226
3383
|
}
|
|
3227
3384
|
const terminals = canonicalFinishes.length > 0 ? canonicalFinishes : executionEnds;
|
|
3228
3385
|
const calls = /* @__PURE__ */ new Map();
|
|
3386
|
+
const succeeded = /* @__PURE__ */ new Map();
|
|
3229
3387
|
const blocked = /* @__PURE__ */ new Map();
|
|
3230
3388
|
for (const terminal of terminals) {
|
|
3231
3389
|
const tool = metricToolName(terminal.tool);
|
|
3232
3390
|
calls.set(tool, (calls.get(tool) ?? 0) + 1);
|
|
3391
|
+
if (terminal.outcome === "ok") succeeded.set(tool, (succeeded.get(tool) ?? 0) + 1);
|
|
3233
3392
|
if (terminal.outcome === "blocked") blocked.set(tool, (blocked.get(tool) ?? 0) + 1);
|
|
3234
3393
|
}
|
|
3235
|
-
const namedTools = /* @__PURE__ */ new Set(["bash", "dispatch", "read", ...calls.keys(), ...blocked.keys()]);
|
|
3394
|
+
const namedTools = /* @__PURE__ */ new Set(["bash", "dispatch", "read", ...calls.keys(), ...succeeded.keys(), ...blocked.keys()]);
|
|
3236
3395
|
const entries = { "tools.read.distinctPaths": readPaths.size };
|
|
3237
3396
|
for (const tool of [...namedTools].sort()) {
|
|
3238
3397
|
entries[`tools.calls.${tool}`] = calls.get(tool) ?? 0;
|
|
3398
|
+
entries[`tools.succeeded.${tool}`] = succeeded.get(tool) ?? 0;
|
|
3239
3399
|
entries[`tools.blocked.${tool}`] = blocked.get(tool) ?? 0;
|
|
3240
3400
|
}
|
|
3241
3401
|
if (readObservation !== void 0) {
|
|
@@ -3377,21 +3537,21 @@ async function runContextInitRunner(runner, cwd, clioEntry, timeoutMs, target, e
|
|
|
3377
3537
|
wallTimeMs: result.wallTimeMs,
|
|
3378
3538
|
metrics: {
|
|
3379
3539
|
"latency.wallMs": result.wallTimeMs,
|
|
3380
|
-
"latency.modelMs":
|
|
3381
|
-
"tokens.input":
|
|
3382
|
-
"tokens.output":
|
|
3383
|
-
"tokens.total":
|
|
3384
|
-
"tokens.cacheRead":
|
|
3385
|
-
"tokens.cacheWrite":
|
|
3386
|
-
"tools.totalCalls":
|
|
3387
|
-
"tools.failed":
|
|
3388
|
-
"tools.blocked":
|
|
3540
|
+
"latency.modelMs": numberField2(run, "durationMs"),
|
|
3541
|
+
"tokens.input": numberField2(tokens, "input"),
|
|
3542
|
+
"tokens.output": numberField2(tokens, "output"),
|
|
3543
|
+
"tokens.total": numberField2(tokens, "total"),
|
|
3544
|
+
"tokens.cacheRead": numberField2(tokens, "cacheRead"),
|
|
3545
|
+
"tokens.cacheWrite": numberField2(tokens, "cacheWrite"),
|
|
3546
|
+
"tools.totalCalls": numberField2(run, "toolCalls"),
|
|
3547
|
+
"tools.failed": numberField2(run, "toolFailures"),
|
|
3548
|
+
"tools.blocked": numberField2(run, "toolBlocked"),
|
|
3389
3549
|
"context.clioMdBytes": clioMdBytes,
|
|
3390
3550
|
"context.initMode": stringField3(generation, "mode") ?? "unknown",
|
|
3391
3551
|
"context.initParserOutcome": stringField3(generation, "parserOutcome") ?? "unknown",
|
|
3392
3552
|
"context.initFallback": stringField3(generation, "fallbackReason") !== null,
|
|
3393
|
-
"context.initPromptBytes":
|
|
3394
|
-
"context.initOutputBytes":
|
|
3553
|
+
"context.initPromptBytes": numberField2(run, "promptBytes"),
|
|
3554
|
+
"context.initOutputBytes": numberField2(run, "outputBytes"),
|
|
3395
3555
|
"context.initTargetId": effectiveTarget,
|
|
3396
3556
|
"context.initModelId": effectiveModel,
|
|
3397
3557
|
"context.initRuntimeId": effectiveRuntime,
|
|
@@ -3490,7 +3650,7 @@ function recordField2(value, field) {
|
|
|
3490
3650
|
const selected = field && typeof value === "object" && value !== null && !Array.isArray(value) ? value[field] : value;
|
|
3491
3651
|
return typeof selected === "object" && selected !== null && !Array.isArray(selected) ? selected : null;
|
|
3492
3652
|
}
|
|
3493
|
-
function
|
|
3653
|
+
function numberField2(value, field) {
|
|
3494
3654
|
const record = recordField2(value);
|
|
3495
3655
|
const selected = record?.[field];
|
|
3496
3656
|
return typeof selected === "number" && Number.isFinite(selected) ? selected : null;
|
|
@@ -3915,11 +4075,23 @@ async function runMatrixItem(loaded, task, target, repeatIndex, clioEntry, fresh
|
|
|
3915
4075
|
}
|
|
3916
4076
|
};
|
|
3917
4077
|
const snapshot = await readEvalLedgerSnapshot(stateDir);
|
|
3918
|
-
const
|
|
4078
|
+
const selected = selectEvalLedgerEntries(snapshot.entries, runner.ledgerEntries ?? []);
|
|
4079
|
+
result.artifacts.trackedMetricSources = JSON.stringify({
|
|
4080
|
+
assistantCalls: selected.source,
|
|
4081
|
+
sessionCalls: selected.sessionCalls,
|
|
4082
|
+
streamCalls: selected.streamCalls,
|
|
4083
|
+
compactions: "session"
|
|
4084
|
+
});
|
|
4085
|
+
if (selected.sessionCalls > 0 && selected.streamCalls > 0) {
|
|
4086
|
+
result.artifacts.callLedger ??= JSON.stringify(runner.ledgerEntries);
|
|
4087
|
+
if (selected.sessionCalls !== selected.streamCalls || task.runner.kind === "external-command") {
|
|
4088
|
+
result.artifacts.trackedMetricWarning = "Session and stream call coverage may differ; tracked metrics use session calls, not a reconciled union. Inspect callLedger before treating these counts as complete: no shared call identity proves overlap.";
|
|
4089
|
+
}
|
|
4090
|
+
}
|
|
3919
4091
|
result.verdict = adaptSuiteV2ResultToVerdictV1(
|
|
3920
4092
|
result,
|
|
3921
4093
|
buildEvalTrackedMetrics({
|
|
3922
|
-
ledgerEntries,
|
|
4094
|
+
ledgerEntries: selected.entries,
|
|
3923
4095
|
receipt: receipt ?? null,
|
|
3924
4096
|
fallbackWallClockMs: runner.wallTimeMs
|
|
3925
4097
|
})
|
|
@@ -4240,7 +4412,7 @@ function parseEvalArgs(args) {
|
|
|
4240
4412
|
index += 1;
|
|
4241
4413
|
continue;
|
|
4242
4414
|
}
|
|
4243
|
-
if (arg === "--clio-coder-entry"
|
|
4415
|
+
if (arg === "--clio-coder-entry") {
|
|
4244
4416
|
parsed.clioEntry = requiredValue(args, index, arg);
|
|
4245
4417
|
index += 1;
|
|
4246
4418
|
continue;
|
|
@@ -4325,7 +4497,7 @@ function parseEvalArgs(args) {
|
|
|
4325
4497
|
}
|
|
4326
4498
|
async function runEvalCommand(args) {
|
|
4327
4499
|
if (args[0] === "inventory") {
|
|
4328
|
-
const { runEvalInventory } = await import("./eval-inventory-
|
|
4500
|
+
const { runEvalInventory } = await import("./eval-inventory-Y6QRFOH5.js");
|
|
4329
4501
|
return runEvalInventory(args.slice(1));
|
|
4330
4502
|
}
|
|
4331
4503
|
let parsed;
|
|
@@ -4500,4 +4672,4 @@ function comparisonFormat(value) {
|
|
|
4500
4672
|
export {
|
|
4501
4673
|
runEvalCommand
|
|
4502
4674
|
};
|
|
4503
|
-
//# sourceMappingURL=eval-
|
|
4675
|
+
//# sourceMappingURL=eval-7G7SGAYO.js.map
|
|
@@ -2,19 +2,19 @@ import { createRequire as __clioCreateRequire } from "node:module"; const requir
|
|
|
2
2
|
import {
|
|
3
3
|
CANONICAL_METRICS,
|
|
4
4
|
CANONICAL_METRIC_PREFIXES
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-4IUZQIJ3.js";
|
|
6
6
|
import {
|
|
7
7
|
EVAL_EXECUTION_MATRIX_DIMENSIONS_V1,
|
|
8
8
|
evalRoot,
|
|
9
9
|
evalServingConfigurationOf,
|
|
10
10
|
loadEvalArtifactV4,
|
|
11
11
|
sameEvalServingConfiguration
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-FTMGRKEF.js";
|
|
13
13
|
import "./chunk-R346GLFC.js";
|
|
14
|
+
import "./chunk-WEPFGWHJ.js";
|
|
14
15
|
import {
|
|
15
16
|
clioDataDir
|
|
16
17
|
} from "./chunk-BYP5D4HI.js";
|
|
17
|
-
import "./chunk-WEPFGWHJ.js";
|
|
18
18
|
import {
|
|
19
19
|
init_esm_shims
|
|
20
20
|
} from "./chunk-3R73A4XB.js";
|
|
@@ -312,4 +312,4 @@ export {
|
|
|
312
312
|
EVAL_INVENTORY_MAX_SCENARIOS,
|
|
313
313
|
runEvalInventory
|
|
314
314
|
};
|
|
315
|
-
//# sourceMappingURL=eval-inventory-
|
|
315
|
+
//# sourceMappingURL=eval-inventory-Y6QRFOH5.js.map
|