@iowarp/clio-coder 0.3.3 → 0.3.4
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 +39 -0
- package/CONTRIBUTING.md +1 -1
- package/README.md +3 -3
- package/dist/{acp-P2AQILE2.js → acp-S5R4RR5B.js} +7 -6
- package/dist/{agents-72W3BI7I.js → agents-P6DMMVZY.js} +24 -21
- package/dist/assets/codewiki.json +1 -1
- package/dist/{auth-5TWEIYDN.js → auth-2XCZLPKS.js} +12 -8
- package/dist/{chunk-GGXXDWE4.js → chunk-22NAGB7X.js} +2 -2
- package/dist/{chunk-2DJ2KNFG.js → chunk-2LZI5CAG.js} +133 -13
- package/dist/{chunk-OAO4GE4M.js → chunk-2TZWSW76.js} +2 -2
- package/dist/{chunk-OOJYHWRB.js → chunk-34475P3I.js} +2 -2
- package/dist/{chunk-4XUGQOHA.js → chunk-35MKKU5R.js} +4 -4
- package/dist/{chunk-LM5TQCJZ.js → chunk-3HZ5RWN2.js} +5 -5
- package/dist/{chunk-AGYYIBLL.js → chunk-3JLKSKD7.js} +2 -2
- package/dist/{chunk-KZWTDYJF.js → chunk-4JUF2NNX.js} +7 -7
- package/dist/{chunk-ZDOOVTXZ.js → chunk-4OC57DA6.js} +27 -4
- package/dist/chunk-5M54SPOL.js +926 -0
- package/dist/{chunk-STBPMHSX.js → chunk-7RXG6QRZ.js} +51 -11
- package/dist/{chunk-X6IAEBZR.js → chunk-A2GZF7DC.js} +5 -5
- package/dist/{chunk-A3CYT5EX.js → chunk-AD2SYQYC.js} +55 -2
- package/dist/chunk-AOCYTWAV.js +449 -0
- package/dist/chunk-BEY543CS.js +258 -0
- package/dist/{chunk-6N5PTWMY.js → chunk-BP4OYD6A.js} +32 -13
- package/dist/chunk-BPGS2WCQ.js +612 -0
- package/dist/{chunk-V6RTAOC2.js → chunk-BRXQQJFP.js} +8 -8
- package/dist/chunk-CFGTUFWB.js +67 -0
- package/dist/{chunk-CBCAPZAA.js → chunk-E25LMLRW.js} +2 -2
- package/dist/{chunk-DUYJ5IO6.js → chunk-EDRHSCIE.js} +4 -4
- package/dist/{chunk-XBXAASKX.js → chunk-EFADSJET.js} +2 -2
- package/dist/{chunk-M6SHUN7Q.js → chunk-FO5ZOVUY.js} +2 -2
- package/dist/chunk-FYYLNIL5.js +313 -0
- package/dist/{chunk-FNTMWMX5.js → chunk-HV5X7OR2.js} +14 -12
- package/dist/{chunk-TZTZS7QK.js → chunk-HXG4IURW.js} +5 -3
- package/dist/{chunk-5UFT4SUX.js → chunk-K6WL7QZT.js} +3 -3
- package/dist/chunk-K7VKOLQQ.js +15 -0
- package/dist/{chunk-BMEMKKIT.js → chunk-KOHPCX4K.js} +2 -2
- package/dist/{chunk-OC7FIQPC.js → chunk-KRPY7NTG.js} +10 -7
- package/dist/chunk-LL4KHSZI.js +22 -0
- package/dist/{chunk-DSELYM6W.js → chunk-MEQ45TQ4.js} +15 -9
- package/dist/{chunk-5UUP6MWO.js → chunk-MV3K5QF2.js} +5 -436
- package/dist/{chunk-6SGHMWE3.js → chunk-N4CZJQRK.js} +5 -5
- package/dist/{chunk-TZK7PACC.js → chunk-NILBFAPG.js} +14 -8
- package/dist/chunk-OZNBF4L3.js +23 -0
- package/dist/{verify-375KUB3Y.js → chunk-PCZJO5TI.js} +127 -42
- package/dist/chunk-QQK64KLB.js +1360 -0
- package/dist/{chunk-SRDMMSEP.js → chunk-QQL5RT5M.js} +979 -1619
- package/dist/{chunk-LZSJBIVT.js → chunk-QWU7ZBO7.js} +70 -720
- package/dist/{chunk-2TLUCQVG.js → chunk-RD5U66HV.js} +3 -3
- package/dist/{chunk-OKGUZO2U.js → chunk-SPULKLCF.js} +4 -3
- package/dist/{chunk-OQ33BKR3.js → chunk-TTNYS3EA.js} +3 -60
- package/dist/chunk-TW3WDMVS.js +677 -0
- package/dist/chunk-TZSKNMZG.js +434 -0
- package/dist/{chunk-7MNJORFF.js → chunk-UL3WSD3F.js} +6 -1
- package/dist/{chunk-PIWWS5BL.js → chunk-UZHIZC5S.js} +7 -7
- package/dist/{chunk-UFIIWP2H.js → chunk-VAWWTKDP.js} +8 -8
- package/dist/{chunk-COU2UHX6.js → chunk-VEZEGCGW.js} +170 -2
- package/dist/{chunk-LW6DSM3M.js → chunk-VMNQ6OZA.js} +98 -202
- package/dist/chunk-VSNATDE6.js +122 -0
- package/dist/chunk-W6GROXXM.js +69 -0
- package/dist/chunk-WPQLXFOZ.js +375 -0
- package/dist/{chunk-ORBHGJC5.js → chunk-WR67VIZY.js} +3 -3
- package/dist/{chunk-PAJK6MAQ.js → chunk-X6COSD2O.js} +5 -5
- package/dist/chunk-ZGVHUX3M.js +66 -0
- package/dist/{chunk-LWLEKMDQ.js → chunk-ZYKPLLNQ.js} +510 -547
- package/dist/cli/index.js +27 -23
- package/dist/{clio-JOU4FXVA.js → clio-J5JIOIDS.js} +7 -6
- package/dist/{code-nav-7AX6FYE6.js → code-nav-AXCXSBHX.js} +5 -3
- package/dist/{config-XCDVKR23.js → config-OEBMIN2U.js} +37 -27
- package/dist/{configure-4GAP54ZW.js → configure-PUQOSIXQ.js} +16 -13
- package/dist/{context-5VKGUVJJ.js → context-EKDCKUUZ.js} +82 -7
- package/dist/{context-4UOGGLQ5.js → context-MGSE4Z2T.js} +33 -23
- package/dist/{context-77FM5DV5.js → context-URSXPBCK.js} +17 -9
- package/dist/{context-clear-XXJRLCJJ.js → context-clear-KDAJRNUK.js} +33 -23
- package/dist/context-working-set-SBKMPPI2.js +1552 -0
- package/dist/{dispatch-runner-QPRDDBDX.js → dispatch-runner-MSWN72NK.js} +43 -29
- package/dist/{doctor-HR46URBJ.js → doctor-7BSE27PJ.js} +10 -10
- package/dist/{eval-XSSNATB4.js → eval-IZGDOO4H.js} +9 -8
- package/dist/{evidence-6HG2PY2B.js → evidence-SR7WXB5B.js} +51 -23
- package/dist/{evolve-K7YU3NCY.js → evolve-K7VE2CBX.js} +30 -20
- package/dist/{fleet-VY3HHKN6.js → fleet-7XMJNQNF.js} +48 -38
- package/dist/{fleet-preflight-DDN536IT.js → fleet-preflight-AQNAH644.js} +3 -3
- package/dist/{init-JYGXI3FK.js → init-JGNPAYXT.js} +41 -31
- package/dist/{memory-WFZMGYHX.js → memory-4ALKDJ4Q.js} +32 -22
- package/dist/{models-I5QWSEOM.js → models-ZMMLFJNN.js} +22 -19
- package/dist/{monitor-GE4ID3IA.js → monitor-2F3T5KHP.js} +55 -43
- package/dist/{orchestrator-EM5MC3HM.js → orchestrator-ORHT43JB.js} +572 -388
- package/dist/{reset-L2FQEE3E.js → reset-NXGTYNUO.js} +4 -3
- package/dist/{run-ZU3QMZPZ.js → run-RF4WJGMT.js} +51 -41
- package/dist/{share-S5BZQC5I.js → share-UT3W6E4M.js} +5 -4
- package/dist/{skills-X5VXCRNQ.js → skills-PSACKC5Q.js} +2 -2
- package/dist/{skills-eval-WKIHWTHR.js → skills-eval-WJSI55RZ.js} +34 -24
- package/dist/{targets-SNCPI2NR.js → targets-PIIRAOYS.js} +23 -20
- package/dist/{terminal-lease-BNAHVHBS.js → terminal-lease-ULWXWNVY.js} +4 -3
- package/dist/{upgrade-JQHHPQ4K.js → upgrade-346TZ6AV.js} +18 -17
- package/dist/{usage-OR4O5SMZ.js → usage-6KKXR32N.js} +34 -24
- package/dist/verifiers-4UUM6TEE.js +1214 -0
- package/dist/verify-X5HDROLA.js +25 -0
- package/dist/{wiki-generate-UEXP2ARI.js → wiki-generate-7STOCIFZ.js} +42 -31
- package/dist/worker/entry.js +33 -24
- package/docs/README.md +7 -6
- package/docs/acp.md +1 -1
- package/docs/alcf-provider.md +1 -1
- package/docs/architecture.md +2 -2
- package/docs/artifact-versions.md +1 -1
- package/docs/built-in-agents.md +1 -1
- package/docs/capacity-and-scheduling.md +1 -1
- package/docs/commands-and-modes.md +53 -21
- package/docs/config-knobs-audit.md +1 -2
- package/docs/configuration-and-targets.md +15 -1
- package/docs/context-engine.md +64 -12
- package/docs/context-working-set.md +194 -0
- package/docs/development-pipeline.md +1 -1
- package/docs/documentation-coverage.md +5 -5
- package/docs/documentation-guide.md +6 -5
- package/docs/environment-variables.md +2 -1
- package/docs/eval-runner.md +1 -1
- package/docs/evals-internal.md +14 -1
- package/docs/evidence-and-memory.md +74 -2
- package/docs/evolution.md +1 -1
- package/docs/exit-codes-and-output.md +1 -1
- package/docs/extensions-and-sharing.md +2 -2
- package/docs/fleet-dispatch.md +22 -7
- package/docs/glossary.md +21 -1
- package/docs/installation-and-lifecycle.md +2 -2
- package/docs/middleware-and-components.md +1 -1
- package/docs/model-catalog.md +7 -9
- package/docs/observability.md +4 -4
- package/docs/proactive-memory.md +1 -1
- package/docs/prompt-envelope-and-tools.md +4 -4
- package/docs/provider-adapter-cookbook.md +1 -1
- package/docs/release-cut-checklist.md +31 -31
- package/docs/safety-model.md +23 -4
- package/docs/scientific-validation.md +21 -3
- package/docs/session-lifecycle.md +3 -3
- package/docs/skills-marketplace.md +1 -1
- package/docs/tool-usage.md +79 -12
- package/docs/trace-store.md +1 -1
- package/docs/troubleshooting.md +1 -1
- package/docs/tui-design.md +1 -1
- package/docs/worker-dispatch-mechanics.md +11 -1
- package/package.json +8 -11
- package/skills/meta/clio-test/SKILL.md +20 -17
- package/skills/meta/clio-test/evals.md +3 -3
- package/skills/meta/clio-test/references/harness.md +35 -6
- package/skills/meta/clio-test/references/test-map.md +20 -10
- package/skills/registry.yaml +2 -2
- package/skills/skill-marketplace.json +1 -1
- package/src/cli/context-working-set.ts +513 -0
- package/src/cli/context.ts +8 -0
- package/src/cli/evidence.ts +20 -2
- package/src/cli/index.ts +4 -0
- package/src/cli/verifiers.ts +325 -0
- package/src/core/bash-exec.ts +39 -14
- package/src/core/bus-events.ts +19 -4
- package/src/core/config.ts +54 -0
- package/src/core/defaults.ts +50 -3
- package/src/core/verification-scripts.ts +6 -0
- package/src/domains/agents/builtins/verifier.md +3 -0
- package/src/domains/config/classify.ts +1 -0
- package/src/domains/context/working-set/contract.ts +161 -0
- package/src/domains/context/working-set/defaults.ts +28 -0
- package/src/domains/context/working-set/engine.ts +203 -0
- package/src/domains/context/working-set/fold.ts +62 -0
- package/src/domains/context/working-set/horizon.ts +38 -0
- package/src/domains/context/working-set/marker.ts +103 -0
- package/src/domains/context/working-set/path-index.ts +436 -0
- package/src/domains/context/working-set/payload.ts +152 -0
- package/src/domains/context/working-set/policies/age-horizon.ts +55 -0
- package/src/domains/context/working-set/policies/index.ts +21 -0
- package/src/domains/context/working-set/policies/structural.ts +160 -0
- package/src/domains/context/working-set/project.ts +132 -0
- package/src/domains/context/working-set/protect.ts +109 -0
- package/src/domains/context/working-set/recall.ts +177 -0
- package/src/domains/context/working-set/replay/controls.ts +112 -0
- package/src/domains/context/working-set/replay/load-clio.ts +199 -0
- package/src/domains/context/working-set/replay/metrics.ts +185 -0
- package/src/domains/context/working-set/replay/reference-graph.ts +79 -0
- package/src/domains/context/working-set/replay/report.ts +139 -0
- package/src/domains/context/working-set/replay/runner.ts +325 -0
- package/src/domains/context/working-set/replay/synthetic.ts +422 -0
- package/src/domains/context/working-set/replay/trace.ts +21 -0
- package/src/domains/context/working-set/visible.ts +54 -0
- package/src/domains/evidence/build.ts +112 -45
- package/src/domains/evidence/eval.ts +24 -7
- package/src/domains/evidence/index.ts +53 -0
- package/src/domains/evidence/ordering.ts +12 -0
- package/src/domains/evidence/run-trust.ts +221 -0
- package/src/domains/evidence/store.ts +46 -6
- package/src/domains/evidence/trust-status.ts +854 -0
- package/src/domains/evidence/types.ts +26 -0
- package/src/domains/middleware/memory-intervention.ts +3 -0
- package/src/domains/middleware/stalled-turn.ts +165 -4
- package/src/domains/safety/autonomy.ts +1 -1
- package/src/domains/safety/default-path-policy.ts +8 -0
- package/src/domains/safety/finish-contract.ts +4 -3
- package/src/domains/safety/policy-engine.ts +48 -6
- package/src/domains/session/compaction/compact.ts +23 -1
- package/src/domains/session/compaction/cut-point.ts +2 -0
- package/src/domains/session/compaction/tokens.ts +16 -1
- package/src/domains/session/context-ledger.ts +2 -0
- package/src/domains/session/entries.ts +107 -1
- package/src/domains/session/manager.ts +9 -2
- package/src/domains/session/migrations/index.ts +22 -3
- package/src/engine/acp/server.ts +3 -0
- package/src/engine/agent.ts +18 -1
- package/src/engine/session.ts +9 -3
- package/src/entry/orchestrator.ts +16 -4
- package/src/interactive/chat-loop-messages.ts +18 -6
- package/src/interactive/chat-panel.ts +17 -1
- package/src/interactive/chat-renderer.ts +30 -21
- package/src/interactive/context-meter.ts +10 -0
- package/src/interactive/context-overlay.ts +81 -6
- package/src/interactive/context-recall-command.ts +110 -0
- package/src/interactive/interactive-slash-runtime.ts +37 -1
- package/src/interactive/model-session-replay.ts +21 -0
- package/src/interactive/overlay-general-openers.ts +6 -0
- package/src/interactive/overlay-session-lifecycle.ts +8 -4
- package/src/interactive/renderers/tool-execution.ts +18 -2
- package/src/interactive/session-transcript.ts +2 -2
- package/src/interactive/slash-commands.ts +29 -2
- package/src/interactive/turn-context.ts +238 -88
- package/src/interactive/turn-middleware.ts +6 -6
- package/src/tools/agent-tools.ts +11 -4
- package/src/tools/bash.ts +144 -82
- package/src/tools/builtin-tool-catalog.ts +11 -5
- package/src/tools/context/index.ts +105 -3
- package/src/tools/context/surface.ts +3 -2
- package/src/tools/core-bootstrap.ts +21 -0
- package/src/tools/dispatch-runner.ts +9 -7
- package/src/tools/monitor.ts +28 -20
- package/src/tools/registry.ts +59 -7
- package/src/tools/result-disposition.ts +550 -0
- package/src/tools/result-shaping.ts +262 -19
- package/src/tools/safe-exec.ts +2 -0
- package/src/tools/verify/authoring.ts +1119 -0
- package/src/tools/verify/catalog.ts +346 -0
- package/src/tools/verify/index.ts +13 -3
- package/src/tools/verify/scripts.ts +135 -37
- package/src/tools/verify/surface.ts +9 -5
- package/src/tools/worker-evidence.ts +35 -12
- package/dist/chunk-J7CWMCQD.js +0 -255
- package/dist/chunk-T6YILFSB.js +0 -80
- package/dist/chunk-VAKQQHWR.js +0 -434
- package/dist/chunk-VPAYEGVX.js +0 -184
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { createRequire as __clioCreateRequire } from "node:module"; const require = __clioCreateRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
verifyTool
|
|
4
|
+
} from "./chunk-PCZJO5TI.js";
|
|
5
|
+
import "./chunk-NILBFAPG.js";
|
|
6
|
+
import "./chunk-FYYLNIL5.js";
|
|
7
|
+
import "./chunk-UL3WSD3F.js";
|
|
8
|
+
import "./chunk-VG7TBQIY.js";
|
|
9
|
+
import "./chunk-OQE5J4C6.js";
|
|
10
|
+
import "./chunk-ECH6PKUQ.js";
|
|
11
|
+
import "./chunk-6XLNIQDB.js";
|
|
12
|
+
import "./chunk-5B2AEOW5.js";
|
|
13
|
+
import "./chunk-CGKSTWHD.js";
|
|
14
|
+
import "./chunk-VEZEGCGW.js";
|
|
15
|
+
import "./chunk-FQ4SKYE4.js";
|
|
16
|
+
import "./chunk-FCSXB6T2.js";
|
|
17
|
+
import "./chunk-APJ265NV.js";
|
|
18
|
+
import "./chunk-YXLYO42X.js";
|
|
19
|
+
import "./chunk-BNAZZHFG.js";
|
|
20
|
+
import "./chunk-6EJMN2Y3.js";
|
|
21
|
+
import "./chunk-3R73A4XB.js";
|
|
22
|
+
export {
|
|
23
|
+
verifyTool
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=verify-X5HDROLA.js.map
|
|
@@ -5,36 +5,37 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
SchedulingDomainModule,
|
|
7
7
|
createPromptsDomainModule
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3HZ5RWN2.js";
|
|
9
9
|
import {
|
|
10
10
|
AgentsDomainModule,
|
|
11
11
|
SafetyDomainModule
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-X6COSD2O.js";
|
|
13
13
|
import {
|
|
14
14
|
ConfigDomainModule,
|
|
15
15
|
loadDomains
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-KRPY7NTG.js";
|
|
17
17
|
import {
|
|
18
18
|
createObservabilityDomainModule
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-35MKKU5R.js";
|
|
20
20
|
import "./chunk-HC4CLZ2Y.js";
|
|
21
21
|
import "./chunk-HFSBBKSQ.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-E25LMLRW.js";
|
|
23
23
|
import {
|
|
24
24
|
ContextDomainModule,
|
|
25
25
|
buildWikiPagePrompt,
|
|
26
26
|
buildWikiPlanPrompt
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-UZHIZC5S.js";
|
|
28
28
|
import "./chunk-5WIGXA4T.js";
|
|
29
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-BRXQQJFP.js";
|
|
30
|
+
import {
|
|
31
|
+
DispatchDomainModule
|
|
32
|
+
} from "./chunk-QQL5RT5M.js";
|
|
30
33
|
import {
|
|
31
|
-
DispatchDomainModule,
|
|
32
34
|
SessionDomainModule
|
|
33
|
-
} from "./chunk-
|
|
34
|
-
import "./chunk-4BJ5BYCE.js";
|
|
35
|
+
} from "./chunk-QQK64KLB.js";
|
|
35
36
|
import "./chunk-QKMUKYO7.js";
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-3JLKSKD7.js";
|
|
38
|
+
import "./chunk-34475P3I.js";
|
|
38
39
|
import "./chunk-TXOTCRLG.js";
|
|
39
40
|
import "./chunk-G4BMMOKF.js";
|
|
40
41
|
import {
|
|
@@ -50,24 +51,30 @@ import {
|
|
|
50
51
|
import "./chunk-4BPJXDWC.js";
|
|
51
52
|
import "./chunk-2SFS6XQE.js";
|
|
52
53
|
import "./chunk-ZWLZP4ZT.js";
|
|
54
|
+
import "./chunk-W6GROXXM.js";
|
|
53
55
|
import {
|
|
54
56
|
MiddlewareDomainModule
|
|
55
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-2LZI5CAG.js";
|
|
56
58
|
import "./chunk-IR4CFBFN.js";
|
|
57
59
|
import "./chunk-UOV2BYIW.js";
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-
|
|
60
|
+
import "./chunk-2TZWSW76.js";
|
|
61
|
+
import "./chunk-ZYKPLLNQ.js";
|
|
62
|
+
import "./chunk-WPQLXFOZ.js";
|
|
63
|
+
import "./chunk-7RXG6QRZ.js";
|
|
64
|
+
import "./chunk-22NAGB7X.js";
|
|
65
|
+
import "./chunk-AOCYTWAV.js";
|
|
66
|
+
import "./chunk-MV3K5QF2.js";
|
|
63
67
|
import "./chunk-CMZWFGD2.js";
|
|
64
68
|
import "./chunk-I4HZDVNP.js";
|
|
65
|
-
import "./chunk-
|
|
69
|
+
import "./chunk-FYYLNIL5.js";
|
|
70
|
+
import "./chunk-UL3WSD3F.js";
|
|
66
71
|
import "./chunk-VG7TBQIY.js";
|
|
67
72
|
import "./chunk-OQE5J4C6.js";
|
|
68
73
|
import "./chunk-ECH6PKUQ.js";
|
|
69
|
-
import "./chunk-
|
|
70
|
-
import "./chunk-
|
|
74
|
+
import "./chunk-BEY543CS.js";
|
|
75
|
+
import "./chunk-5M54SPOL.js";
|
|
76
|
+
import "./chunk-OZNBF4L3.js";
|
|
77
|
+
import "./chunk-4BJ5BYCE.js";
|
|
71
78
|
import "./chunk-6XLNIQDB.js";
|
|
72
79
|
import "./chunk-5B2AEOW5.js";
|
|
73
80
|
import {
|
|
@@ -81,27 +88,31 @@ import "./chunk-EKMEHE4H.js";
|
|
|
81
88
|
import {
|
|
82
89
|
ProvidersDomainModule,
|
|
83
90
|
canonicalizeWireModelId
|
|
84
|
-
} from "./chunk-
|
|
85
|
-
import "./chunk-
|
|
86
|
-
import "./chunk-
|
|
91
|
+
} from "./chunk-QWU7ZBO7.js";
|
|
92
|
+
import "./chunk-CFGTUFWB.js";
|
|
93
|
+
import "./chunk-AD2SYQYC.js";
|
|
94
|
+
import "./chunk-4OC57DA6.js";
|
|
95
|
+
import "./chunk-LL4KHSZI.js";
|
|
87
96
|
import "./chunk-4VP4KH3K.js";
|
|
88
|
-
import "./chunk-
|
|
89
|
-
import "./chunk-R346GLFC.js";
|
|
90
|
-
import "./chunk-COU2UHX6.js";
|
|
97
|
+
import "./chunk-VEZEGCGW.js";
|
|
91
98
|
import "./chunk-FQ4SKYE4.js";
|
|
92
99
|
import "./chunk-IKCO5N3L.js";
|
|
93
100
|
import "./chunk-3I7MS7N2.js";
|
|
94
101
|
import "./chunk-IHXBNWMM.js";
|
|
102
|
+
import "./chunk-BPGS2WCQ.js";
|
|
95
103
|
import "./chunk-SST6Z5JA.js";
|
|
104
|
+
import "./chunk-FO5ZOVUY.js";
|
|
105
|
+
import "./chunk-R346GLFC.js";
|
|
96
106
|
import "./chunk-4ZG3XFUR.js";
|
|
97
|
-
import "./chunk-APJ265NV.js";
|
|
98
107
|
import "./chunk-FCSXB6T2.js";
|
|
108
|
+
import "./chunk-APJ265NV.js";
|
|
99
109
|
import "./chunk-YXLYO42X.js";
|
|
100
110
|
import "./chunk-BNAZZHFG.js";
|
|
101
111
|
import "./chunk-6EJMN2Y3.js";
|
|
102
112
|
import "./chunk-WEPFGWHJ.js";
|
|
103
|
-
import "./chunk-
|
|
104
|
-
import "./chunk-
|
|
113
|
+
import "./chunk-HXG4IURW.js";
|
|
114
|
+
import "./chunk-ZGVHUX3M.js";
|
|
115
|
+
import "./chunk-TTNYS3EA.js";
|
|
105
116
|
import "./chunk-JVCV3ICN.js";
|
|
106
117
|
import "./chunk-7CR24IG7.js";
|
|
107
118
|
import "./chunk-IWHMRKLL.js";
|
|
@@ -424,4 +435,4 @@ export {
|
|
|
424
435
|
resolveDocumenterModelId,
|
|
425
436
|
runWikiDispatch
|
|
426
437
|
};
|
|
427
|
-
//# sourceMappingURL=wiki-generate-
|
|
438
|
+
//# sourceMappingURL=wiki-generate-7STOCIFZ.js.map
|
package/dist/worker/entry.js
CHANGED
|
@@ -17,13 +17,13 @@ import {
|
|
|
17
17
|
resolveDeliveryTools,
|
|
18
18
|
sanitizeLockedSynthesisMessage,
|
|
19
19
|
workerLoopBlockBudget
|
|
20
|
-
} from "../chunk-
|
|
21
|
-
import "../chunk-
|
|
20
|
+
} from "../chunk-VMNQ6OZA.js";
|
|
21
|
+
import "../chunk-K7VKOLQQ.js";
|
|
22
22
|
import {
|
|
23
23
|
createMiddlewareContractFromSnapshot,
|
|
24
24
|
createMiddlewareToolChoiceControl,
|
|
25
25
|
shouldRequestStalledTurnContinuation
|
|
26
|
-
} from "../chunk-
|
|
26
|
+
} from "../chunk-2LZI5CAG.js";
|
|
27
27
|
import {
|
|
28
28
|
CONFIRMED_SCOPE,
|
|
29
29
|
READONLY_SCOPE,
|
|
@@ -34,8 +34,8 @@ import {
|
|
|
34
34
|
createLoopState,
|
|
35
35
|
observe
|
|
36
36
|
} from "../chunk-UOV2BYIW.js";
|
|
37
|
-
import "../chunk-
|
|
38
|
-
import "../chunk-
|
|
37
|
+
import "../chunk-EDRHSCIE.js";
|
|
38
|
+
import "../chunk-2TZWSW76.js";
|
|
39
39
|
import {
|
|
40
40
|
DEFAULT_ESCALATION_FALLBACK,
|
|
41
41
|
DEFAULT_ESCALATION_TIMEOUT_MS,
|
|
@@ -50,7 +50,8 @@ import {
|
|
|
50
50
|
startAntigravityWorkerRun,
|
|
51
51
|
startClaudeCodeWorkerRun,
|
|
52
52
|
validateRehydratedWorkerRuntime
|
|
53
|
-
} from "../chunk-
|
|
53
|
+
} from "../chunk-ZYKPLLNQ.js";
|
|
54
|
+
import "../chunk-WPQLXFOZ.js";
|
|
54
55
|
import {
|
|
55
56
|
DEFAULT_AUTONOMY_LEVEL,
|
|
56
57
|
RESULT_CONTRACT_REPAIR_LIMIT,
|
|
@@ -58,12 +59,14 @@ import {
|
|
|
58
59
|
parseResultContract,
|
|
59
60
|
resultContractRepairMessages,
|
|
60
61
|
validateResultContract
|
|
61
|
-
} from "../chunk-
|
|
62
|
-
import "../chunk-
|
|
62
|
+
} from "../chunk-7RXG6QRZ.js";
|
|
63
|
+
import "../chunk-22NAGB7X.js";
|
|
64
|
+
import {
|
|
65
|
+
classify
|
|
66
|
+
} from "../chunk-AOCYTWAV.js";
|
|
63
67
|
import {
|
|
64
|
-
classify,
|
|
65
68
|
protectedArtifactMutationBlockReason
|
|
66
|
-
} from "../chunk-
|
|
69
|
+
} from "../chunk-MV3K5QF2.js";
|
|
67
70
|
import {
|
|
68
71
|
UNKNOWN_RESOURCE,
|
|
69
72
|
WORKER_PROTOCOL_VERSION,
|
|
@@ -83,17 +86,20 @@ import {
|
|
|
83
86
|
deleteInjectedCompileCacheFrom
|
|
84
87
|
} from "../chunk-I4HZDVNP.js";
|
|
85
88
|
import "../chunk-ZI647VB5.js";
|
|
86
|
-
import "../chunk-
|
|
87
|
-
import "../chunk-
|
|
89
|
+
import "../chunk-NILBFAPG.js";
|
|
90
|
+
import "../chunk-FYYLNIL5.js";
|
|
91
|
+
import "../chunk-UL3WSD3F.js";
|
|
88
92
|
import "../chunk-XN3L4EYL.js";
|
|
89
93
|
import "../chunk-VG7TBQIY.js";
|
|
90
94
|
import "../chunk-OQE5J4C6.js";
|
|
91
95
|
import "../chunk-ECH6PKUQ.js";
|
|
92
|
-
import "../chunk-
|
|
96
|
+
import "../chunk-SPULKLCF.js";
|
|
93
97
|
import {
|
|
94
98
|
agentSkillToolPolicy
|
|
95
|
-
} from "../chunk-
|
|
96
|
-
import "../chunk-
|
|
99
|
+
} from "../chunk-BEY543CS.js";
|
|
100
|
+
import "../chunk-5M54SPOL.js";
|
|
101
|
+
import "../chunk-OZNBF4L3.js";
|
|
102
|
+
import "../chunk-4BJ5BYCE.js";
|
|
97
103
|
import "../chunk-6XLNIQDB.js";
|
|
98
104
|
import "../chunk-5B2AEOW5.js";
|
|
99
105
|
import {
|
|
@@ -112,41 +118,44 @@ import {
|
|
|
112
118
|
setGlobalDefaultMaxOutputTokens,
|
|
113
119
|
setProtectedModelsProvider,
|
|
114
120
|
setResidencyNoticeSink
|
|
115
|
-
} from "../chunk-
|
|
121
|
+
} from "../chunk-QWU7ZBO7.js";
|
|
122
|
+
import "../chunk-CFGTUFWB.js";
|
|
116
123
|
import {
|
|
117
124
|
readSettings,
|
|
118
125
|
validateSettingsFile
|
|
119
|
-
} from "../chunk-
|
|
120
|
-
import "../chunk-
|
|
126
|
+
} from "../chunk-AD2SYQYC.js";
|
|
127
|
+
import "../chunk-4OC57DA6.js";
|
|
128
|
+
import "../chunk-LL4KHSZI.js";
|
|
121
129
|
import "../chunk-4VP4KH3K.js";
|
|
122
|
-
import "../chunk-M6SHUN7Q.js";
|
|
123
|
-
import "../chunk-R346GLFC.js";
|
|
124
|
-
import "../chunk-VPAYEGVX.js";
|
|
125
130
|
import {
|
|
126
131
|
setGitCommitAttributionEnabled,
|
|
127
132
|
withManagedGitCommitAttributionEnvironment
|
|
128
|
-
} from "../chunk-
|
|
133
|
+
} from "../chunk-VEZEGCGW.js";
|
|
129
134
|
import "../chunk-FQ4SKYE4.js";
|
|
130
135
|
import "../chunk-IKCO5N3L.js";
|
|
131
136
|
import "../chunk-3I7MS7N2.js";
|
|
132
137
|
import "../chunk-IHXBNWMM.js";
|
|
138
|
+
import "../chunk-BPGS2WCQ.js";
|
|
133
139
|
import "../chunk-SST6Z5JA.js";
|
|
140
|
+
import "../chunk-FO5ZOVUY.js";
|
|
141
|
+
import "../chunk-R346GLFC.js";
|
|
134
142
|
import {
|
|
135
143
|
configureGuardrails,
|
|
136
144
|
isWorkerToolCallCapExceededReason,
|
|
137
145
|
isWorkerToolCallCapSynthesisReason
|
|
138
146
|
} from "../chunk-4ZG3XFUR.js";
|
|
139
|
-
import "../chunk-APJ265NV.js";
|
|
140
147
|
import {
|
|
141
148
|
registerFauxFromEnv
|
|
142
149
|
} from "../chunk-FCSXB6T2.js";
|
|
150
|
+
import "../chunk-APJ265NV.js";
|
|
143
151
|
import "../chunk-YXLYO42X.js";
|
|
144
152
|
import "../chunk-BNAZZHFG.js";
|
|
145
153
|
import {
|
|
146
154
|
AI_AGENT_NAME
|
|
147
155
|
} from "../chunk-6EJMN2Y3.js";
|
|
148
156
|
import "../chunk-WEPFGWHJ.js";
|
|
149
|
-
import "../chunk-
|
|
157
|
+
import "../chunk-ZGVHUX3M.js";
|
|
158
|
+
import "../chunk-TTNYS3EA.js";
|
|
150
159
|
import {
|
|
151
160
|
readClioVersion
|
|
152
161
|
} from "../chunk-IWHMRKLL.js";
|
package/docs/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Clio Coder Documentation
|
|
6
6
|
|
|
7
|
-
These pages document `v0.3.
|
|
7
|
+
These pages document `v0.3.4` of Clio Coder, an open-source coding orchestrator within the [IOWarp](https://iowarp.ai) scientific computing platform, created by the [Gnosis Research Center](https://grc.iit.edu) at the [Illinois Institute of Technology](https://www.iit.edu).
|
|
8
8
|
|
|
9
9
|
They are source-aligned guides: when prose and source disagree, prefer the
|
|
10
10
|
current source, tests, and `CHANGELOG.md`.
|
|
@@ -15,6 +15,7 @@ current source, tests, and `CHANGELOG.md`.
|
|
|
15
15
|
| --- | --- |
|
|
16
16
|
| Commands, slash commands, operating posture, keybindings, dispatch, verification, and troubleshooting | [commands-and-modes.md](commands-and-modes.md) ([Interactive Blueprint](html/commands_blueprint.html)) |
|
|
17
17
|
| Context window resolution, per-model probe capabilities, token accounting, per-turn snapshots, compaction, and context priming | [context-engine.md](context-engine.md) ([Interactive Blueprint](html/context_blueprint.html)) |
|
|
18
|
+
| Non-destructive working-set eviction, markers, eviction policies, recall by ref, and the `contextEviction` / `contextRecall` records | [context-working-set.md](context-working-set.md) |
|
|
18
19
|
| Runtime targets, local model configuration, fleet profiles, and auth | [configuration-and-targets.md](configuration-and-targets.md) ([Interactive Blueprint](html/configuration_blueprint.html)) |
|
|
19
20
|
| Every environment variable the runtime reads: guardrail overrides, directory layout, debug toggles, and internal plumbing | [environment-variables.md](environment-variables.md) ([Interactive Blueprint](html/environment_blueprint.html)) |
|
|
20
21
|
| Argonne ALCF Sophia/Metis inference targets over Globus OAuth | [alcf-provider.md](alcf-provider.md) ([Interactive Blueprint](html/alcf_blueprint.html)) |
|
|
@@ -43,12 +44,12 @@ current source, tests, and `CHANGELOG.md`.
|
|
|
43
44
|
| Multi-node fleet dispatch: process-safe admission, attested workers, measured routing, activation, agent automation, topologies, and receipts | [fleet-dispatch.md](fleet-dispatch.md) ([Interactive Blueprint](html/fleet_dispatch_blueprint.html)) |
|
|
44
45
|
| Multi-process capacity leases, heartbeat TTLs, cross-process locks, and cluster drain controls | [capacity-and-scheduling.md](capacity-and-scheduling.md) ([Interactive Blueprint](html/capacity_scheduling_blueprint.html)) |
|
|
45
46
|
| Executable multi-node demo with reviewer gate and receipt provenance walkthrough | [fleet-demo-runbook.md](fleet-demo-runbook.md) |
|
|
46
|
-
| Session lifecycle, on-disk ledger format
|
|
47
|
+
| Session lifecycle, on-disk ledger format v4, `/tree` active-path lineage, `/fork`, `/resume`, checkpoints, and recovery | [session-lifecycle.md](session-lifecycle.md) ([Interactive Blueprint](html/session_lifecycle_blueprint.html)) |
|
|
47
48
|
| Agent Client Protocol (ACP) server over stdio, tool mediation, non-stall permissions, and error taxonomy | [acp.md](acp.md) ([Interactive Blueprint](html/acp_blueprint.html)) |
|
|
48
49
|
| Version registry and migration policies for all 9 serialized artifact schemas | [artifact-versions.md](artifact-versions.md) ([Interactive Blueprint](html/artifact_versions_blueprint.html)) |
|
|
49
50
|
| Process exit code taxonomy, `--help` standard, machine-readable JSON streaming, and headless output contracts | [exit-codes-and-output.md](exit-codes-and-output.md) ([Interactive Blueprint](html/exit_codes_blueprint.html)) |
|
|
50
51
|
| Actionable error remediation and diagnostics keyed by exact user-facing messages | [troubleshooting.md](troubleshooting.md) ([Interactive Blueprint](html/troubleshooting_blueprint.html)) |
|
|
51
|
-
| Canonical definitions of
|
|
52
|
+
| Canonical definitions of 45 core architectural concepts mapped to `src/` types | [glossary.md](glossary.md) ([Interactive Blueprint](html/glossary_blueprint.html)) |
|
|
52
53
|
| Complete source-to-documentation mapping matrix and subsystem coverage status | [documentation-coverage.md](documentation-coverage.md) |
|
|
53
54
|
| Issue-driven development lifecycle: file-ticket through release, label taxonomy, and dogfooding setup | [development-pipeline.md](development-pipeline.md) |
|
|
54
55
|
| Proactive task memory architecture, session task bank, intervention rules, and handoff carrying | [proactive-memory.md](proactive-memory.md) ([Interactive Blueprint](html/memory_blueprint.html)) |
|
|
@@ -82,12 +83,12 @@ under `src/`, run `npm run build` again or keep `npm run dev` running.
|
|
|
82
83
|
## Release Notes
|
|
83
84
|
|
|
84
85
|
The release entry point is [../README.md](../README.md); detailed release
|
|
85
|
-
history lives in [../CHANGELOG.md](../CHANGELOG.md). For v0.3.
|
|
86
|
+
history lives in [../CHANGELOG.md](../CHANGELOG.md). For v0.3.4 the supported
|
|
86
87
|
install paths are `npm install -g @iowarp/clio-coder` and a source checkout
|
|
87
88
|
through `npm run install:local`, the deterministic release gate is
|
|
88
89
|
`npm run ci:release`, and live model smoke validation is local/manual and
|
|
89
|
-
opt-in through `npm run
|
|
90
|
-
opencode/copilot checks).
|
|
90
|
+
opt-in through `npm run live:smoke -- --target <id>` (add `--delegation`
|
|
91
|
+
for opencode/copilot checks).
|
|
91
92
|
|
|
92
93
|
## Writing Documentation
|
|
93
94
|
|
package/docs/acp.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Agent Client Protocol (ACP) Server
|
|
2
2
|
|
|
3
|
-
This document defines the architecture, transport protocols, tool mediation layers, permission handling, and error taxonomy for Clio Coder's Agent Client Protocol (ACP) server implementation in `v0.3.
|
|
3
|
+
This document defines the architecture, transport protocols, tool mediation layers, permission handling, and error taxonomy for Clio Coder's Agent Client Protocol (ACP) server implementation in `v0.3.4`.
|
|
4
4
|
|
|
5
5
|
Source implementations: `src/engine/acp/` and `src/cli/acp.ts`.
|
|
6
6
|
|
package/docs/alcf-provider.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# ALCF Inference Provider
|
|
2
2
|
|
|
3
3
|
> [!TIP]
|
|
4
|
-
> **Interactive Spec Available:** An interactive target configurator and Globus OAuth flow diagram is located at [docs/html/alcf_blueprint.html](html/alcf_blueprint.html) (Version: 0.3.
|
|
4
|
+
> **Interactive Spec Available:** An interactive target configurator and Globus OAuth flow diagram is located at [docs/html/alcf_blueprint.html](html/alcf_blueprint.html) (Version: 0.3.4).
|
|
5
5
|
|
|
6
6
|
Clio can use Argonne's ALCF inference gateway as an OpenAI-compatible target
|
|
7
7
|
backed by Globus OAuth. The runtime id is `alcf`; each configured target points
|
package/docs/architecture.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# Clio Coder Architecture and Boundaries
|
|
2
2
|
|
|
3
3
|
> [!TIP]
|
|
4
|
-
> **Interactive Spec Available:** An interactive dashboard is located at [docs/html/architecture_blueprint.html](html/architecture_blueprint.html) (Version: 0.3.
|
|
4
|
+
> **Interactive Spec Available:** An interactive dashboard is located at [docs/html/architecture_blueprint.html](html/architecture_blueprint.html) (Version: 0.3.4).
|
|
5
5
|
|
|
6
6
|
Clio Coder is an experimental, terminal-first coding harness for the CLIO ecosystem. CLIO stands for Context Layer for Input/Output; the project is named for the Greek muse of history and developed by the Gnosis Research Center at Illinois Tech. Its architecture favors small, auditable subsystems over a single monolithic agent loop: CLI entry points, the interactive TUI, provider/runtime code, worker subprocesses, tools, and feature domains are kept separate so local-model support and scientific-software workflows can evolve without collapsing safety boundaries.
|
|
7
7
|
|
|
8
|
-
This page is source-code aligned for the current `v0.3.
|
|
8
|
+
This page is source-code aligned for the current `v0.3.4` development line.
|
|
9
9
|
|
|
10
10
|
---
|
|
11
11
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Artifact Versions & Serialization Contracts
|
|
2
2
|
|
|
3
|
-
This document is the canonical registry of all versioned file formats, serialized data structures, integrity digests, and migration rules across Clio Coder in `v0.3.
|
|
3
|
+
This document is the canonical registry of all versioned file formats, serialized data structures, integrity digests, and migration rules across Clio Coder in `v0.3.4`.
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
package/docs/built-in-agents.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Clio Coder dispatches focused fleet agents from Markdown recipes. Recipes are data files, not hidden code plugins: YAML frontmatter declares identity, mode, tools, optional target/model hints, and thinking level; the Markdown body is the agent instruction text.
|
|
4
4
|
|
|
5
5
|
> [!TIP]
|
|
6
|
-
> **Interactive Spec Available:** An interactive dashboard for the agent registry and dispatch admission check gates is located at [docs/html/agents_blueprint.html](html/agents_blueprint.html) (Version: 0.3.
|
|
6
|
+
> **Interactive Spec Available:** An interactive dashboard for the agent registry and dispatch admission check gates is located at [docs/html/agents_blueprint.html](html/agents_blueprint.html) (Version: 0.3.4).
|
|
7
7
|
|
|
8
8
|
The source of truth is `src/domains/agents/**`. Clio's agent dispatch engine and execution boundaries are built upon the [@earendil-works/pi-agent-core](https://www.npmjs.com/package/@earendil-works/pi-agent-core) library.
|
|
9
9
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Capacity Leases & Fleet Scheduling
|
|
2
2
|
|
|
3
|
-
This document specifies the multi-process capacity leasing protocols, node scheduling models, cross-process transaction locks, and failure recovery mechanics implemented in Clio Coder `v0.3.
|
|
3
|
+
This document specifies the multi-process capacity leasing protocols, node scheduling models, cross-process transaction locks, and failure recovery mechanics implemented in Clio Coder `v0.3.4`.
|
|
4
4
|
|
|
5
5
|
Source implementations: `src/domains/scheduling/` and `src/domains/dispatch/capacity-lease.ts`.
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Commands and Modes
|
|
2
2
|
|
|
3
3
|
> [!TIP]
|
|
4
|
-
> **Interactive Spec Available:** An interactive dashboard is located at [docs/html/commands_blueprint.html](html/commands_blueprint.html) (Version: 0.3.
|
|
4
|
+
> **Interactive Spec Available:** An interactive dashboard is located at [docs/html/commands_blueprint.html](html/commands_blueprint.html) (Version: 0.3.4).
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Clio Coder is a terminal-first alpha harness. This page keeps the command
|
|
@@ -78,6 +78,8 @@ For process exit codes, stdout deliverable guarantees, and machine-readable JSON
|
|
|
78
78
|
| `clio-coder context wiki [--update] [--status] [--depth auto\|simple\|medium\|detailed] [--target <id>] [--model <id>] [--thinking off\|low\|medium\|high]` | Generate, update, or inspect the agent-authored Markdown wiki under `.clio-coder/wiki/`. |
|
|
79
79
|
| `clio-coder context reset [--all] [--yes]` | Clear accumulated project context artifacts; `--all` also removes `CLIO-CODER.md`. `--yes` (or `-y`) answers every confirmation and is required when stdin is not a terminal. |
|
|
80
80
|
| `clio-coder context index [--json]` | Build the structural codewiki index without model calls; writes `.clio-coder/codewiki.json` and `.clio-coder/state.json` and prints coverage plus a structural hash. |
|
|
81
|
+
| `clio-coder context replay (--sessions <path>... \| --synthetic <ids>) [--policies <ids>] [--budgets <tokens>] [--threshold <ratio>] [--target <ratio>] [--protect-last-turns <n>] [--min-evictable-tokens <n>] [--seed <n>] [--no-filter] [--json <out>] [--md <out>]` | Replay working-set policies over Clio session ledgers or the seeded procedural corpora and report retention, precision, token savings, recall cost, cold-prefix cost, saturation, and summary headroom. |
|
|
82
|
+
| `clio-coder context working-set --session <id\|path>` | Inspect one session's durable working-set fold and path-index summary without modifying the ledger. |
|
|
81
83
|
|
|
82
84
|
## Headless Run Flags
|
|
83
85
|
|
|
@@ -152,7 +154,7 @@ The registry table below lists the available interactive slash commands. On a ba
|
|
|
152
154
|
| `/agents` | `/agents` | List Clio agents and ACP delegation agents |
|
|
153
155
|
| `/targets` | `/targets` | Open Settings → Targets: health, use, connect, probe, remove |
|
|
154
156
|
| `/cost` | `/cost` | Show session token and cost totals |
|
|
155
|
-
| `/context` | `/context compact [instructions] \| /context init \| /context refresh \| /context reset` | Context hub: window overlay plus compact, init, refresh, and reset |
|
|
157
|
+
| `/context` | `/context compact [instructions] \| /context recall <ref> \| /context init \| /context refresh \| /context reset` | Context hub: window overlay plus compact, recall, init, refresh, and reset |
|
|
156
158
|
| `/fleet` | `/fleet` | Open Settings → Fleet: defaults, profiles, agent bindings, nodes |
|
|
157
159
|
| `/decisions` | `/decisions` | Show settled interview decisions and operator revisions |
|
|
158
160
|
| `/tasks` | `/tasks add <text> \| /tasks hand <id> \| /tasks done <id> \| /tasks drop <id>` | Show the session board or manage project operator tasks |
|
|
@@ -169,9 +171,13 @@ The registry table below lists the available interactive slash commands. On a ba
|
|
|
169
171
|
| `/fork` | `/fork` | Fork from an assistant turn |
|
|
170
172
|
| `/export` | `/export [path]` | Export a self-contained HTML transcript by default; a `.md` path writes Markdown |
|
|
171
173
|
|
|
172
|
-
`/context` with no arguments opens the context-window ledger overlay
|
|
173
|
-
|
|
174
|
-
|
|
174
|
+
`/context` with no arguments opens the context-window ledger overlay, including
|
|
175
|
+
the working-set section (policy, evicted items and tokens, events, recalls, churn).
|
|
176
|
+
The subcommands own the durable project-context noun: `compact` summarizes older
|
|
177
|
+
turns in the session window, `recall <ref>` prints an evicted tool-result body
|
|
178
|
+
back into the transcript by the ref its `[evicted ...]` marker names (it never
|
|
179
|
+
enters model context; the model recalls with `context(scope="recall", ref=...)`),
|
|
180
|
+
`init` bootstraps or updates `CLIO-CODER.md` and the
|
|
175
181
|
codewiki, `refresh` re-indexes the codewiki and refreshes `.clio-coder/state.json`
|
|
176
182
|
without touching `CLIO-CODER.md`, and `reset` deletes accumulated
|
|
177
183
|
context artifacts (`.clio-coder/codewiki.json`, `.clio-coder/state.json`,
|
|
@@ -459,7 +465,7 @@ to execute through the existing engine worker path, the sanctioned Claude Code w
|
|
|
459
465
|
| --- | --- |
|
|
460
466
|
| `npm run ci` | Local and GitHub PR gate: typecheck, lint, skills pin check, build, the deterministic test suite, and the trace-viewer suite. |
|
|
461
467
|
| `npm run ci:release` | Maintainer release gate: `npm run ci`, then the `check-release` dist and packaging audit. |
|
|
462
|
-
| `npm run
|
|
468
|
+
| `npm run live:smoke -- --target <id>` | One real headless turn against a configured target. Add `--delegation` for the `opencode` and `copilot` ACP agents. The other operator-run drivers (`live:recon`, `live:fleet-dispatch`, `live:tui`) are listed in `benchmarks/internal/README.md`. |
|
|
463
469
|
| `npm run typecheck` | Strict TypeScript pass. |
|
|
464
470
|
| `npm run lint` | Biome checks plus `scripts/check-hygiene.ts`, which runs the boundary invariants, the skills pin check, and the README and docs drift rules. |
|
|
465
471
|
| `npm run test` | Contract and smoke tests through the sharded runner. |
|
|
@@ -467,28 +473,21 @@ to execute through the existing engine worker path, the sanctioned Claude Code w
|
|
|
467
473
|
| `npm run dev` | `tsup --watch`. |
|
|
468
474
|
| `npm run clean` | Remove `dist/`. |
|
|
469
475
|
|
|
470
|
-
Live
|
|
476
|
+
Live drivers pick their model with `--target <id>`, naming one of the targets
|
|
477
|
+
`clio-coder targets` lists; `--model <wireId>` and `--thinking <level>`
|
|
478
|
+
override that target's defaults for the run. The run happens in a scratch Clio
|
|
479
|
+
home holding only that target, so nothing touches the operator's real state:
|
|
471
480
|
|
|
472
481
|
```bash
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
CLIO_CODER_LIVE_MODEL=your-model \
|
|
477
|
-
CLIO_CODER_LIVE_BASE_URL=http://localhost:8080/v1 \
|
|
478
|
-
npm run test:live
|
|
479
|
-
```
|
|
480
|
-
|
|
481
|
-
Delegation validation is a separate opt-in flag because it depends on local
|
|
482
|
-
`opencode` and `copilot` commands:
|
|
483
|
-
|
|
484
|
-
```bash
|
|
485
|
-
CLIO_CODER_LIVE_SMOKE=1 npm run test:live -- --delegation
|
|
482
|
+
npm run build
|
|
483
|
+
npm run live:smoke -- --target local-lmstudio --model qwen3.8-27b
|
|
484
|
+
npm run live:smoke -- --target anthropic --delegation
|
|
486
485
|
```
|
|
487
486
|
|
|
488
487
|
Live checks cost tokens or local GPU time and are not deterministic CI. They
|
|
489
488
|
are useful for OpenAI-compatible local gateways such as llama.cpp, LM Studio
|
|
490
489
|
with Dynamo-backed workers, vLLM, and SGLang, plus cloud targets when
|
|
491
|
-
credentials are
|
|
490
|
+
credentials are configured.
|
|
492
491
|
|
|
493
492
|
## Environment Variables
|
|
494
493
|
|
|
@@ -519,6 +518,39 @@ structural hash. The same builder is used by `clio-coder context init`, `clio-co
|
|
|
519
518
|
refresh`, session freshness checks, tool-demand backfill, and in-session
|
|
520
519
|
incremental updates.
|
|
521
520
|
|
|
521
|
+
### Working-set replay
|
|
522
|
+
|
|
523
|
+
`clio-coder context replay --sessions <path>...` accepts individual session directories,
|
|
524
|
+
Clio sessions roots, and ledger JSONL files; `--synthetic <ids>` adds one or more procedural
|
|
525
|
+
corpora (`science-long`, `refactor`, `exploration`) generated in memory from a fixed seed, so
|
|
526
|
+
the committed tables can be rebuilt byte for byte on any checkout without private transcripts.
|
|
527
|
+
Clio traces remove prior eviction/recall sidecars and select the active branch. Both sources
|
|
528
|
+
drive the live fold, projection, policy, and eviction planner at deterministic turn
|
|
529
|
+
boundaries. The default inclusion cascade for ledgers requires at least eight turns, eight
|
|
530
|
+
tool results, and one file re-read; `--no-filter` retains every otherwise-readable trace.
|
|
531
|
+
Markdown goes to stdout unless `--md` names a file, while `--json` writes a stable report
|
|
532
|
+
including the configuration, the corpus, git revision when available, and exact command line.
|
|
533
|
+
`--protect-last-turns` and `--min-evictable-tokens` override those two working-set settings
|
|
534
|
+
for the replay only; they never update saved settings. Saturated events is pooled over
|
|
535
|
+
applied eviction events and reports how often a policy exhausted its usable candidates,
|
|
536
|
+
which distinguishes a budget that measures policy choice from one that simply runs out of
|
|
537
|
+
evictable material. Recall tokens is the token-weighted complement of precision: what a
|
|
538
|
+
perfect recall would read back for evicted items the session referenced again. Cold prefix
|
|
539
|
+
tokens is the projected working set after the earliest evicted position of each event, which
|
|
540
|
+
is what an exact-prefix cache re-prefills on the next request. The replay also models the
|
|
541
|
+
summary stage: when the projection is still over the threshold after an eviction, it applies
|
|
542
|
+
the same `findCutPoint(keepRecentTokens)` cut the live path uses, appends a stand-in
|
|
543
|
+
`compactionSummary`, counts it, and treats what the cut removed as lost for retention.
|
|
544
|
+
Summaries (mean) is therefore the number of lossy, token-spending compactions a policy forced
|
|
545
|
+
per trace. The summary-headroom mean always carries its contributing trace count because
|
|
546
|
+
traces that never require summary compaction do not enter that nullable mean.
|
|
547
|
+
|
|
548
|
+
`clio-coder context working-set --session <id|path>` is a read-only inspection command for
|
|
549
|
+
one ledger. It prints evicted refs with reason, superseding ref, and token count; aggregate
|
|
550
|
+
event, recall, and churn facts; path-observation counts by operation; and paths whose earlier
|
|
551
|
+
reads were followed by writes or edits. A persisted `/tree` pin is honored when the session
|
|
552
|
+
metadata is available, so the report does not resurrect an abandoned branch.
|
|
553
|
+
|
|
522
554
|
The current artifact is schema v5. It records files with path, language, line
|
|
523
555
|
count, role, content hash, imports, and optional summary; declaration-only
|
|
524
556
|
symbols with name, kind, file id, line, and optional signature; and import edges
|
|
@@ -96,8 +96,7 @@ All default off; all enabled with `1`.
|
|
|
96
96
|
|
|
97
97
|
| Env var(s) | Used by |
|
|
98
98
|
|---|---|
|
|
99
|
-
| `
|
|
100
|
-
| `CLIO_CODER_MAIN_TARGET/_MODEL/_URL/_THINKING`, `CLIO_CODER_WORKER_TARGET/_MODEL/_URL/_THINKING`, `CLIO_CODER_FLEET`, `CLIO_CODER_FLEET_PROFILE`, `CLIO_CODER_PRED_MODEL`, `CLIO_CODER_LLAMACPP_KEY`, `CLIO_CODER_LMSTUDIO_KEY` | benchmark fleet config (`benchmarks/community/`) |
|
|
99
|
+
| `CLIO_CODER_MAIN_TARGET/_MODEL/_URL/_RUNTIME/_THINKING`, `CLIO_CODER_WORKER_TARGET/_MODEL/_URL/_RUNTIME/_THINKING`, `CLIO_CODER_LLAMACPP_KEY`, `CLIO_CODER_LMSTUDIO_KEY` | Terminal-Bench installed agent (`benchmarks/community/terminal-bench/`), which renders its own settings.yaml inside the task container |
|
|
101
100
|
| `CLIO_CODER_AUTONOMY`, `CLIO_CODER_TASK_TIMEOUT` | terminal-bench agent wrapper (writes settings.yaml / its own timeout; not a Clio knob) |
|
|
102
101
|
| `CLIO_CODER_BIN`, `CLIO_CODER_ENTRY`, `CLIO_CODER_TARBALL_URL` | install/dev scripts |
|
|
103
102
|
| `CLIO_CODER_NO_UPDATE_NOTIFIER` | **Dead.** Set by four benchmark harnesses, read by nothing in `src/`. Either an update notifier was removed and the setters were left behind, or the feature was never built. |
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Configuration, Targets, Runtimes, and Auth
|
|
2
2
|
|
|
3
3
|
> [!TIP]
|
|
4
|
-
> **Interactive Spec Available:** An interactive configuration validator, target resolver, and CLI command generator is located at [docs/html/configuration_blueprint.html](html/configuration_blueprint.html) (Version: 0.3.
|
|
4
|
+
> **Interactive Spec Available:** An interactive configuration validator, target resolver, and CLI command generator is located at [docs/html/configuration_blueprint.html](html/configuration_blueprint.html) (Version: 0.3.4).
|
|
5
5
|
|
|
6
6
|
Clio Coder is target-first: chat and fleet dispatch resolve through configured targets in `settings.yaml`, not through provider-specific ad hoc flags. Chat and print targets are HTTP and native engine-backed runtimes. Fleet dispatch can also target the sanctioned Claude Code subscription runtimes described below.
|
|
7
7
|
|
|
@@ -224,6 +224,15 @@ compaction:
|
|
|
224
224
|
excludeLastTurns: 6
|
|
225
225
|
# model: provider/summary-model-id
|
|
226
226
|
# systemPrompt: ~/.config/clio-coder/prompts/compaction.md
|
|
227
|
+
|
|
228
|
+
context:
|
|
229
|
+
workingSet:
|
|
230
|
+
enabled: true
|
|
231
|
+
policy: structural-v1
|
|
232
|
+
target: 0.6
|
|
233
|
+
protectLastTurns: 6
|
|
234
|
+
minEvictableTokens: 200
|
|
235
|
+
|
|
227
236
|
retry:
|
|
228
237
|
enabled: true
|
|
229
238
|
maxRetries: 3
|
|
@@ -575,6 +584,11 @@ Every one of these has an environment override for a single process; see [enviro
|
|
|
575
584
|
| `compaction.auto` | `true` | boolean | next turn |
|
|
576
585
|
| `compaction.threshold` | `0.8` | number in 0 to 1 | next turn |
|
|
577
586
|
| `compaction.excludeLastTurns` | `6` | integer ≥ 1 | next turn |
|
|
587
|
+
| `context.workingSet.enabled` | `true` | boolean | next turn |
|
|
588
|
+
| `context.workingSet.policy` | `structural-v1` | `age-horizon` or `structural-v1` | next turn |
|
|
589
|
+
| `context.workingSet.target` | `0.6` | number greater than 0 and less than 1 | next turn |
|
|
590
|
+
| `context.workingSet.protectLastTurns` | `6` | integer ≥ 1 | next turn |
|
|
591
|
+
| `context.workingSet.minEvictableTokens` | `200` | integer ≥ 0 | next turn |
|
|
578
592
|
| `defaults.maxTokens` | `32768` | integer ≥ 0 | next turn |
|
|
579
593
|
| `budget.sessionCeilingUsd` | `5` | number ≥ 0 | immediately |
|
|
580
594
|
| `budget.concurrency` | `auto` | `auto` or integer ≥ 1 | next dispatch |
|