@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.
Files changed (244) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/CONTRIBUTING.md +1 -1
  3. package/README.md +3 -3
  4. package/dist/{acp-P2AQILE2.js → acp-S5R4RR5B.js} +7 -6
  5. package/dist/{agents-72W3BI7I.js → agents-P6DMMVZY.js} +24 -21
  6. package/dist/assets/codewiki.json +1 -1
  7. package/dist/{auth-5TWEIYDN.js → auth-2XCZLPKS.js} +12 -8
  8. package/dist/{chunk-GGXXDWE4.js → chunk-22NAGB7X.js} +2 -2
  9. package/dist/{chunk-2DJ2KNFG.js → chunk-2LZI5CAG.js} +133 -13
  10. package/dist/{chunk-OAO4GE4M.js → chunk-2TZWSW76.js} +2 -2
  11. package/dist/{chunk-OOJYHWRB.js → chunk-34475P3I.js} +2 -2
  12. package/dist/{chunk-4XUGQOHA.js → chunk-35MKKU5R.js} +4 -4
  13. package/dist/{chunk-LM5TQCJZ.js → chunk-3HZ5RWN2.js} +5 -5
  14. package/dist/{chunk-AGYYIBLL.js → chunk-3JLKSKD7.js} +2 -2
  15. package/dist/{chunk-KZWTDYJF.js → chunk-4JUF2NNX.js} +7 -7
  16. package/dist/{chunk-ZDOOVTXZ.js → chunk-4OC57DA6.js} +27 -4
  17. package/dist/chunk-5M54SPOL.js +926 -0
  18. package/dist/{chunk-STBPMHSX.js → chunk-7RXG6QRZ.js} +51 -11
  19. package/dist/{chunk-X6IAEBZR.js → chunk-A2GZF7DC.js} +5 -5
  20. package/dist/{chunk-A3CYT5EX.js → chunk-AD2SYQYC.js} +55 -2
  21. package/dist/chunk-AOCYTWAV.js +449 -0
  22. package/dist/chunk-BEY543CS.js +258 -0
  23. package/dist/{chunk-6N5PTWMY.js → chunk-BP4OYD6A.js} +32 -13
  24. package/dist/chunk-BPGS2WCQ.js +612 -0
  25. package/dist/{chunk-V6RTAOC2.js → chunk-BRXQQJFP.js} +8 -8
  26. package/dist/chunk-CFGTUFWB.js +67 -0
  27. package/dist/{chunk-CBCAPZAA.js → chunk-E25LMLRW.js} +2 -2
  28. package/dist/{chunk-DUYJ5IO6.js → chunk-EDRHSCIE.js} +4 -4
  29. package/dist/{chunk-XBXAASKX.js → chunk-EFADSJET.js} +2 -2
  30. package/dist/{chunk-M6SHUN7Q.js → chunk-FO5ZOVUY.js} +2 -2
  31. package/dist/chunk-FYYLNIL5.js +313 -0
  32. package/dist/{chunk-FNTMWMX5.js → chunk-HV5X7OR2.js} +14 -12
  33. package/dist/{chunk-TZTZS7QK.js → chunk-HXG4IURW.js} +5 -3
  34. package/dist/{chunk-5UFT4SUX.js → chunk-K6WL7QZT.js} +3 -3
  35. package/dist/chunk-K7VKOLQQ.js +15 -0
  36. package/dist/{chunk-BMEMKKIT.js → chunk-KOHPCX4K.js} +2 -2
  37. package/dist/{chunk-OC7FIQPC.js → chunk-KRPY7NTG.js} +10 -7
  38. package/dist/chunk-LL4KHSZI.js +22 -0
  39. package/dist/{chunk-DSELYM6W.js → chunk-MEQ45TQ4.js} +15 -9
  40. package/dist/{chunk-5UUP6MWO.js → chunk-MV3K5QF2.js} +5 -436
  41. package/dist/{chunk-6SGHMWE3.js → chunk-N4CZJQRK.js} +5 -5
  42. package/dist/{chunk-TZK7PACC.js → chunk-NILBFAPG.js} +14 -8
  43. package/dist/chunk-OZNBF4L3.js +23 -0
  44. package/dist/{verify-375KUB3Y.js → chunk-PCZJO5TI.js} +127 -42
  45. package/dist/chunk-QQK64KLB.js +1360 -0
  46. package/dist/{chunk-SRDMMSEP.js → chunk-QQL5RT5M.js} +979 -1619
  47. package/dist/{chunk-LZSJBIVT.js → chunk-QWU7ZBO7.js} +70 -720
  48. package/dist/{chunk-2TLUCQVG.js → chunk-RD5U66HV.js} +3 -3
  49. package/dist/{chunk-OKGUZO2U.js → chunk-SPULKLCF.js} +4 -3
  50. package/dist/{chunk-OQ33BKR3.js → chunk-TTNYS3EA.js} +3 -60
  51. package/dist/chunk-TW3WDMVS.js +677 -0
  52. package/dist/chunk-TZSKNMZG.js +434 -0
  53. package/dist/{chunk-7MNJORFF.js → chunk-UL3WSD3F.js} +6 -1
  54. package/dist/{chunk-PIWWS5BL.js → chunk-UZHIZC5S.js} +7 -7
  55. package/dist/{chunk-UFIIWP2H.js → chunk-VAWWTKDP.js} +8 -8
  56. package/dist/{chunk-COU2UHX6.js → chunk-VEZEGCGW.js} +170 -2
  57. package/dist/{chunk-LW6DSM3M.js → chunk-VMNQ6OZA.js} +98 -202
  58. package/dist/chunk-VSNATDE6.js +122 -0
  59. package/dist/chunk-W6GROXXM.js +69 -0
  60. package/dist/chunk-WPQLXFOZ.js +375 -0
  61. package/dist/{chunk-ORBHGJC5.js → chunk-WR67VIZY.js} +3 -3
  62. package/dist/{chunk-PAJK6MAQ.js → chunk-X6COSD2O.js} +5 -5
  63. package/dist/chunk-ZGVHUX3M.js +66 -0
  64. package/dist/{chunk-LWLEKMDQ.js → chunk-ZYKPLLNQ.js} +510 -547
  65. package/dist/cli/index.js +27 -23
  66. package/dist/{clio-JOU4FXVA.js → clio-J5JIOIDS.js} +7 -6
  67. package/dist/{code-nav-7AX6FYE6.js → code-nav-AXCXSBHX.js} +5 -3
  68. package/dist/{config-XCDVKR23.js → config-OEBMIN2U.js} +37 -27
  69. package/dist/{configure-4GAP54ZW.js → configure-PUQOSIXQ.js} +16 -13
  70. package/dist/{context-5VKGUVJJ.js → context-EKDCKUUZ.js} +82 -7
  71. package/dist/{context-4UOGGLQ5.js → context-MGSE4Z2T.js} +33 -23
  72. package/dist/{context-77FM5DV5.js → context-URSXPBCK.js} +17 -9
  73. package/dist/{context-clear-XXJRLCJJ.js → context-clear-KDAJRNUK.js} +33 -23
  74. package/dist/context-working-set-SBKMPPI2.js +1552 -0
  75. package/dist/{dispatch-runner-QPRDDBDX.js → dispatch-runner-MSWN72NK.js} +43 -29
  76. package/dist/{doctor-HR46URBJ.js → doctor-7BSE27PJ.js} +10 -10
  77. package/dist/{eval-XSSNATB4.js → eval-IZGDOO4H.js} +9 -8
  78. package/dist/{evidence-6HG2PY2B.js → evidence-SR7WXB5B.js} +51 -23
  79. package/dist/{evolve-K7YU3NCY.js → evolve-K7VE2CBX.js} +30 -20
  80. package/dist/{fleet-VY3HHKN6.js → fleet-7XMJNQNF.js} +48 -38
  81. package/dist/{fleet-preflight-DDN536IT.js → fleet-preflight-AQNAH644.js} +3 -3
  82. package/dist/{init-JYGXI3FK.js → init-JGNPAYXT.js} +41 -31
  83. package/dist/{memory-WFZMGYHX.js → memory-4ALKDJ4Q.js} +32 -22
  84. package/dist/{models-I5QWSEOM.js → models-ZMMLFJNN.js} +22 -19
  85. package/dist/{monitor-GE4ID3IA.js → monitor-2F3T5KHP.js} +55 -43
  86. package/dist/{orchestrator-EM5MC3HM.js → orchestrator-ORHT43JB.js} +572 -388
  87. package/dist/{reset-L2FQEE3E.js → reset-NXGTYNUO.js} +4 -3
  88. package/dist/{run-ZU3QMZPZ.js → run-RF4WJGMT.js} +51 -41
  89. package/dist/{share-S5BZQC5I.js → share-UT3W6E4M.js} +5 -4
  90. package/dist/{skills-X5VXCRNQ.js → skills-PSACKC5Q.js} +2 -2
  91. package/dist/{skills-eval-WKIHWTHR.js → skills-eval-WJSI55RZ.js} +34 -24
  92. package/dist/{targets-SNCPI2NR.js → targets-PIIRAOYS.js} +23 -20
  93. package/dist/{terminal-lease-BNAHVHBS.js → terminal-lease-ULWXWNVY.js} +4 -3
  94. package/dist/{upgrade-JQHHPQ4K.js → upgrade-346TZ6AV.js} +18 -17
  95. package/dist/{usage-OR4O5SMZ.js → usage-6KKXR32N.js} +34 -24
  96. package/dist/verifiers-4UUM6TEE.js +1214 -0
  97. package/dist/verify-X5HDROLA.js +25 -0
  98. package/dist/{wiki-generate-UEXP2ARI.js → wiki-generate-7STOCIFZ.js} +42 -31
  99. package/dist/worker/entry.js +33 -24
  100. package/docs/README.md +7 -6
  101. package/docs/acp.md +1 -1
  102. package/docs/alcf-provider.md +1 -1
  103. package/docs/architecture.md +2 -2
  104. package/docs/artifact-versions.md +1 -1
  105. package/docs/built-in-agents.md +1 -1
  106. package/docs/capacity-and-scheduling.md +1 -1
  107. package/docs/commands-and-modes.md +53 -21
  108. package/docs/config-knobs-audit.md +1 -2
  109. package/docs/configuration-and-targets.md +15 -1
  110. package/docs/context-engine.md +64 -12
  111. package/docs/context-working-set.md +194 -0
  112. package/docs/development-pipeline.md +1 -1
  113. package/docs/documentation-coverage.md +5 -5
  114. package/docs/documentation-guide.md +6 -5
  115. package/docs/environment-variables.md +2 -1
  116. package/docs/eval-runner.md +1 -1
  117. package/docs/evals-internal.md +14 -1
  118. package/docs/evidence-and-memory.md +74 -2
  119. package/docs/evolution.md +1 -1
  120. package/docs/exit-codes-and-output.md +1 -1
  121. package/docs/extensions-and-sharing.md +2 -2
  122. package/docs/fleet-dispatch.md +22 -7
  123. package/docs/glossary.md +21 -1
  124. package/docs/installation-and-lifecycle.md +2 -2
  125. package/docs/middleware-and-components.md +1 -1
  126. package/docs/model-catalog.md +7 -9
  127. package/docs/observability.md +4 -4
  128. package/docs/proactive-memory.md +1 -1
  129. package/docs/prompt-envelope-and-tools.md +4 -4
  130. package/docs/provider-adapter-cookbook.md +1 -1
  131. package/docs/release-cut-checklist.md +31 -31
  132. package/docs/safety-model.md +23 -4
  133. package/docs/scientific-validation.md +21 -3
  134. package/docs/session-lifecycle.md +3 -3
  135. package/docs/skills-marketplace.md +1 -1
  136. package/docs/tool-usage.md +79 -12
  137. package/docs/trace-store.md +1 -1
  138. package/docs/troubleshooting.md +1 -1
  139. package/docs/tui-design.md +1 -1
  140. package/docs/worker-dispatch-mechanics.md +11 -1
  141. package/package.json +8 -11
  142. package/skills/meta/clio-test/SKILL.md +20 -17
  143. package/skills/meta/clio-test/evals.md +3 -3
  144. package/skills/meta/clio-test/references/harness.md +35 -6
  145. package/skills/meta/clio-test/references/test-map.md +20 -10
  146. package/skills/registry.yaml +2 -2
  147. package/skills/skill-marketplace.json +1 -1
  148. package/src/cli/context-working-set.ts +513 -0
  149. package/src/cli/context.ts +8 -0
  150. package/src/cli/evidence.ts +20 -2
  151. package/src/cli/index.ts +4 -0
  152. package/src/cli/verifiers.ts +325 -0
  153. package/src/core/bash-exec.ts +39 -14
  154. package/src/core/bus-events.ts +19 -4
  155. package/src/core/config.ts +54 -0
  156. package/src/core/defaults.ts +50 -3
  157. package/src/core/verification-scripts.ts +6 -0
  158. package/src/domains/agents/builtins/verifier.md +3 -0
  159. package/src/domains/config/classify.ts +1 -0
  160. package/src/domains/context/working-set/contract.ts +161 -0
  161. package/src/domains/context/working-set/defaults.ts +28 -0
  162. package/src/domains/context/working-set/engine.ts +203 -0
  163. package/src/domains/context/working-set/fold.ts +62 -0
  164. package/src/domains/context/working-set/horizon.ts +38 -0
  165. package/src/domains/context/working-set/marker.ts +103 -0
  166. package/src/domains/context/working-set/path-index.ts +436 -0
  167. package/src/domains/context/working-set/payload.ts +152 -0
  168. package/src/domains/context/working-set/policies/age-horizon.ts +55 -0
  169. package/src/domains/context/working-set/policies/index.ts +21 -0
  170. package/src/domains/context/working-set/policies/structural.ts +160 -0
  171. package/src/domains/context/working-set/project.ts +132 -0
  172. package/src/domains/context/working-set/protect.ts +109 -0
  173. package/src/domains/context/working-set/recall.ts +177 -0
  174. package/src/domains/context/working-set/replay/controls.ts +112 -0
  175. package/src/domains/context/working-set/replay/load-clio.ts +199 -0
  176. package/src/domains/context/working-set/replay/metrics.ts +185 -0
  177. package/src/domains/context/working-set/replay/reference-graph.ts +79 -0
  178. package/src/domains/context/working-set/replay/report.ts +139 -0
  179. package/src/domains/context/working-set/replay/runner.ts +325 -0
  180. package/src/domains/context/working-set/replay/synthetic.ts +422 -0
  181. package/src/domains/context/working-set/replay/trace.ts +21 -0
  182. package/src/domains/context/working-set/visible.ts +54 -0
  183. package/src/domains/evidence/build.ts +112 -45
  184. package/src/domains/evidence/eval.ts +24 -7
  185. package/src/domains/evidence/index.ts +53 -0
  186. package/src/domains/evidence/ordering.ts +12 -0
  187. package/src/domains/evidence/run-trust.ts +221 -0
  188. package/src/domains/evidence/store.ts +46 -6
  189. package/src/domains/evidence/trust-status.ts +854 -0
  190. package/src/domains/evidence/types.ts +26 -0
  191. package/src/domains/middleware/memory-intervention.ts +3 -0
  192. package/src/domains/middleware/stalled-turn.ts +165 -4
  193. package/src/domains/safety/autonomy.ts +1 -1
  194. package/src/domains/safety/default-path-policy.ts +8 -0
  195. package/src/domains/safety/finish-contract.ts +4 -3
  196. package/src/domains/safety/policy-engine.ts +48 -6
  197. package/src/domains/session/compaction/compact.ts +23 -1
  198. package/src/domains/session/compaction/cut-point.ts +2 -0
  199. package/src/domains/session/compaction/tokens.ts +16 -1
  200. package/src/domains/session/context-ledger.ts +2 -0
  201. package/src/domains/session/entries.ts +107 -1
  202. package/src/domains/session/manager.ts +9 -2
  203. package/src/domains/session/migrations/index.ts +22 -3
  204. package/src/engine/acp/server.ts +3 -0
  205. package/src/engine/agent.ts +18 -1
  206. package/src/engine/session.ts +9 -3
  207. package/src/entry/orchestrator.ts +16 -4
  208. package/src/interactive/chat-loop-messages.ts +18 -6
  209. package/src/interactive/chat-panel.ts +17 -1
  210. package/src/interactive/chat-renderer.ts +30 -21
  211. package/src/interactive/context-meter.ts +10 -0
  212. package/src/interactive/context-overlay.ts +81 -6
  213. package/src/interactive/context-recall-command.ts +110 -0
  214. package/src/interactive/interactive-slash-runtime.ts +37 -1
  215. package/src/interactive/model-session-replay.ts +21 -0
  216. package/src/interactive/overlay-general-openers.ts +6 -0
  217. package/src/interactive/overlay-session-lifecycle.ts +8 -4
  218. package/src/interactive/renderers/tool-execution.ts +18 -2
  219. package/src/interactive/session-transcript.ts +2 -2
  220. package/src/interactive/slash-commands.ts +29 -2
  221. package/src/interactive/turn-context.ts +238 -88
  222. package/src/interactive/turn-middleware.ts +6 -6
  223. package/src/tools/agent-tools.ts +11 -4
  224. package/src/tools/bash.ts +144 -82
  225. package/src/tools/builtin-tool-catalog.ts +11 -5
  226. package/src/tools/context/index.ts +105 -3
  227. package/src/tools/context/surface.ts +3 -2
  228. package/src/tools/core-bootstrap.ts +21 -0
  229. package/src/tools/dispatch-runner.ts +9 -7
  230. package/src/tools/monitor.ts +28 -20
  231. package/src/tools/registry.ts +59 -7
  232. package/src/tools/result-disposition.ts +550 -0
  233. package/src/tools/result-shaping.ts +262 -19
  234. package/src/tools/safe-exec.ts +2 -0
  235. package/src/tools/verify/authoring.ts +1119 -0
  236. package/src/tools/verify/catalog.ts +346 -0
  237. package/src/tools/verify/index.ts +13 -3
  238. package/src/tools/verify/scripts.ts +135 -37
  239. package/src/tools/verify/surface.ts +9 -5
  240. package/src/tools/worker-evidence.ts +35 -12
  241. package/dist/chunk-J7CWMCQD.js +0 -255
  242. package/dist/chunk-T6YILFSB.js +0 -80
  243. package/dist/chunk-VAKQQHWR.js +0 -434
  244. package/dist/chunk-VPAYEGVX.js +0 -184
@@ -2,17 +2,17 @@ import { createRequire as __clioCreateRequire } from "node:module"; const requir
2
2
  import {
3
3
  canonicalJson,
4
4
  sha256
5
- } from "./chunk-SRDMMSEP.js";
5
+ } from "./chunk-QQL5RT5M.js";
6
6
  import {
7
7
  ToolNames
8
8
  } from "./chunk-CGKSTWHD.js";
9
+ import {
10
+ settingsPath
11
+ } from "./chunk-AD2SYQYC.js";
9
12
  import {
10
13
  ceilChars,
11
14
  extractReasoningTokens
12
- } from "./chunk-LZSJBIVT.js";
13
- import {
14
- settingsPath
15
- } from "./chunk-A3CYT5EX.js";
15
+ } from "./chunk-BPGS2WCQ.js";
16
16
  import {
17
17
  expandConfigPath
18
18
  } from "./chunk-SST6Z5JA.js";
@@ -431,12 +431,18 @@ function toolResultSummary(result2) {
431
431
  const bytes = Buffer.byteLength(text, "utf8");
432
432
  const details = recordValue(obj?.details);
433
433
  const size = recordValue(details?.resultSize);
434
+ const disposition = recordValue(details?.resultDisposition);
434
435
  const truncation = recordValue(details?.truncation);
435
436
  const observation = recordValue(details?.observation);
436
- const offloadPath = typeof observation?.offloadPath === "string" ? observation.offloadPath : typeof size?.offloadPath === "string" ? size.offloadPath : null;
437
+ const offloadPath = typeof disposition?.offloadPath === "string" ? disposition.offloadPath : typeof observation?.offloadPath === "string" ? observation.offloadPath : typeof size?.offloadPath === "string" ? size.offloadPath : null;
438
+ const displayedBytes = typeof disposition?.displayedBytes === "number" && Number.isFinite(disposition.displayedBytes) ? disposition.displayedBytes : bytes;
437
439
  return {
438
- bytes,
439
- truncated: size?.truncated === true || truncation?.truncated === true || observation?.truncated === true || text.includes("[tool result truncated]"),
440
+ bytes: displayedBytes,
441
+ truncated: disposition?.presentationTruncated === true || size?.truncated === true || truncation?.truncated === true || observation?.truncated === true || text.includes("[tool result truncated]"),
442
+ ...typeof disposition?.capturedBytes === "number" ? { capturedBytes: disposition.capturedBytes } : {},
443
+ ...typeof disposition?.displayedBytes === "number" ? { displayedBytes: disposition.displayedBytes } : {},
444
+ ...typeof disposition?.contextBytes === "number" ? { contextBytes: disposition.contextBytes } : {},
445
+ ...disposition?.contextTruncated === true ? { contextTruncated: true } : {},
440
446
  ...typeof size?.policy === "string" ? { policy: size.policy } : {},
441
447
  ...typeof size?.followUpHint === "string" ? { followUpHint: size.followUpHint } : {},
442
448
  ...offloadPath !== null ? { offloadPath } : {},
@@ -1074,4 +1080,4 @@ export {
1074
1080
  readFileArgsAsync,
1075
1081
  expandInlineFileReferencesAsync
1076
1082
  };
1077
- //# sourceMappingURL=chunk-DSELYM6W.js.map
1083
+ //# sourceMappingURL=chunk-MEQ45TQ4.js.map
@@ -1,26 +1,17 @@
1
1
  import { createRequire as __clioCreateRequire } from "node:module"; const require = __clioCreateRequire(import.meta.url);
2
2
  import {
3
3
  isVerificationScriptName
4
- } from "./chunk-7MNJORFF.js";
4
+ } from "./chunk-UL3WSD3F.js";
5
5
  import {
6
6
  canonicalizeExistingPath
7
7
  } from "./chunk-ECH6PKUQ.js";
8
8
  import {
9
- ToolNames,
10
- isBuiltinToolName
9
+ ToolNames
11
10
  } from "./chunk-CGKSTWHD.js";
12
11
  import {
13
12
  init_esm_shims
14
13
  } from "./chunk-3R73A4XB.js";
15
14
 
16
- // src/domains/agents/spec.ts
17
- init_esm_shims();
18
- import { createHash } from "node:crypto";
19
-
20
- // src/domains/safety/action-classifier.ts
21
- init_esm_shims();
22
- import path2 from "node:path";
23
-
24
15
  // src/core/artifact-paths.ts
25
16
  init_esm_shims();
26
17
  var CLIO_PROJECT_DIR = ".clio-coder";
@@ -756,415 +747,6 @@ function compareStrings(left, right) {
756
747
  return 0;
757
748
  }
758
749
 
759
- // src/domains/safety/action-classifier.ts
760
- var GIT_DESTRUCTIVE_PATTERNS = [
761
- { name: "git-push-force-long", re: /\bgit\s+push\s+--force\b/i },
762
- { name: "git-push-force-short", re: /\bgit\s+push\s+-f\b/i },
763
- { name: "git-reset-hard", re: /\bgit\s+reset\s+--hard\b/i },
764
- { name: "git-clean-fd", re: /\bgit\s+clean\s+-fd?\b/i },
765
- { name: "git-checkout-dot", re: /\bgit\s+checkout\s+--\s+\./i },
766
- { name: "git-branch-D", re: /\bgit\s+branch\s+-D\b/i },
767
- { name: "git-restore-source", re: /\bgit\s+restore\s+--source\b/i }
768
- ];
769
- var SYSTEM_MODIFY_PATTERNS = [
770
- { name: "sudo-or-doas", re: /\b(sudo|doas)\b/i },
771
- // allow rm -rf /tmp/... and /var/tmp/... but flag everything else rooted at /
772
- { name: "rm-rf-root", re: /\brm\s+-rf?\s+\/(?!(tmp|var\/tmp)(?:\/|\s|$))/i },
773
- { name: "apt-install", re: /\bapt(-get)?\s+(install|remove|purge)/i },
774
- { name: "brew-install", re: /\bbrew\s+(install|uninstall|reinstall)/i },
775
- { name: "npm-install-global", re: /\bnpm\s+install\s+-g\b/i },
776
- { name: "pip-install", re: /\bpip\s+install\b/i },
777
- { name: "systemctl", re: /\bsystemctl\s+/i },
778
- { name: "chmod-root", re: /\bchmod\s+[0-7]{3,4}\s+\//i },
779
- { name: "chown", re: /\bchown\s+/i }
780
- ];
781
- var SYSTEM_WRITE_ROOT_PREFIXES = ["/etc", "/usr", "/var", "/bin", "/sbin", "/run"];
782
- var SYSTEM_WRITE_EXEMPT_PREFIXES = ["/var/tmp", "/var/folders"];
783
- function isUnderPrefix(abs, prefix) {
784
- return abs === prefix || abs.startsWith(`${prefix}/`);
785
- }
786
- function baseClassify(tool) {
787
- switch (tool) {
788
- case ToolNames.Read:
789
- case ToolNames.Grep:
790
- case ToolNames.Find:
791
- case ToolNames.Ls:
792
- case ToolNames.WebFetch:
793
- case ToolNames.Git:
794
- case ToolNames.CodeNav:
795
- case ToolNames.Context:
796
- case ToolNames.Monitor:
797
- case ToolNames.AskUser:
798
- case ToolNames.CredentialPresent:
799
- // tasks pick mutates only Clio-owned session-ledger and project-local
800
- // .clio-coder runtime state, never source-workspace files. By intentional
801
- // policy it stays read class and ungated; the tool itself still requires
802
- // a durable operator task id before it can mutate either store.
803
- case ToolNames.Tasks:
804
- // ledger posts a typed contribution to a coordination board and reads a
805
- // local mirror. Neither touches the workspace, so it is never gated
806
- // behind a confirmation.
807
- case ToolNames.Ledger:
808
- return "read";
809
- case ToolNames.Write:
810
- case ToolNames.Edit:
811
- case ToolNames.Artifact:
812
- return "write";
813
- case ToolNames.Bash:
814
- case ToolNames.Verify:
815
- return "execute";
816
- case ToolNames.Dispatch:
817
- case ToolNames.Steer:
818
- return "dispatch";
819
- default:
820
- return null;
821
- }
822
- }
823
- function scanStringOf(args) {
824
- if (!args) return "";
825
- const parts = [];
826
- for (const value of Object.values(args)) {
827
- if (value == null) continue;
828
- if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
829
- parts.push(String(value));
830
- } else {
831
- try {
832
- parts.push(JSON.stringify(value));
833
- } catch {
834
- }
835
- }
836
- }
837
- return parts.join(" ");
838
- }
839
- function matchFirst(patterns, haystack) {
840
- for (const p of patterns) {
841
- if (p.re.test(haystack)) return p;
842
- }
843
- return null;
844
- }
845
- function resolveCandidate(p, baseCwd) {
846
- if (p.startsWith("~")) return p;
847
- const base = canonicalizeExistingPath(path2.resolve(baseCwd ?? process.cwd()));
848
- const resolved = path2.isAbsolute(p) ? path2.resolve(p) : path2.resolve(base, p);
849
- return canonicalizeExistingPath(resolved);
850
- }
851
- function isInsideCwd(abs) {
852
- const cwd = canonicalizeExistingPath(path2.resolve(process.cwd()));
853
- const candidate = canonicalizeExistingPath(abs);
854
- const rel = path2.relative(cwd, candidate);
855
- return rel === "" || !rel.startsWith("..") && !path2.isAbsolute(rel);
856
- }
857
- function writePathClass(pathArg, baseCwd) {
858
- if (pathArg.startsWith("~")) {
859
- return { cls: "system_modify", reason: `write-path-home-escape: ${pathArg}` };
860
- }
861
- const abs = resolveCandidate(pathArg, baseCwd);
862
- const exempt = SYSTEM_WRITE_EXEMPT_PREFIXES.some((prefix) => isUnderPrefix(abs, prefix));
863
- if (!exempt) {
864
- for (const prefix of SYSTEM_WRITE_ROOT_PREFIXES) {
865
- if (isUnderPrefix(abs, prefix)) {
866
- return { cls: "system_modify", reason: `write-path-system-root: ${prefix}` };
867
- }
868
- }
869
- }
870
- if (!isInsideCwd(abs)) {
871
- return { cls: "system_modify", reason: `write-path-outside-cwd: ${abs}` };
872
- }
873
- return { cls: "write" };
874
- }
875
- function extractWritePath(tool, args) {
876
- const candidate = args?.path ?? args?.file_path ?? args?.filePath;
877
- if (typeof candidate === "string" && candidate.length > 0) return candidate;
878
- return tool === ToolNames.Artifact ? artifactDefaultPath(args?.kind) : null;
879
- }
880
- function classify(call) {
881
- const base = baseClassify(call.tool);
882
- if (base === null) {
883
- return { actionClass: "unknown", reasons: [`unknown tool: ${call.tool}`] };
884
- }
885
- const reasons = [];
886
- if (call.tool === ToolNames.Bash) {
887
- const scan = scanStringOf(call.args);
888
- const gitHit = matchFirst(GIT_DESTRUCTIVE_PATTERNS, scan);
889
- if (gitHit) {
890
- return { actionClass: "git_destructive", reasons: [`pattern:${gitHit.name}`] };
891
- }
892
- const sysHit = matchFirst(SYSTEM_MODIFY_PATTERNS, scan);
893
- if (sysHit) {
894
- return { actionClass: "system_modify", reasons: [`pattern:${sysHit.name}`] };
895
- }
896
- const command = typeof call.args?.command === "string" ? call.args.command : null;
897
- const argCwd = typeof call.args?.cwd === "string" && call.args.cwd.length > 0 ? call.args.cwd : void 0;
898
- if (command !== null) {
899
- const targetReasons = [];
900
- for (const target of extractCommandWriteTargets(command)) {
901
- const decision = writePathClass(target, argCwd);
902
- if (decision.cls === "system_modify") {
903
- targetReasons.push(decision.reason ?? `bash-write-target: ${target}`);
904
- }
905
- }
906
- for (const target of extractCommandCdTargets(command)) {
907
- if (target.startsWith("~")) {
908
- targetReasons.push(`bash-cd-home-escape: ${target}`);
909
- continue;
910
- }
911
- const abs = resolveCandidate(target, argCwd);
912
- if (!isInsideCwd(abs)) {
913
- targetReasons.push(`bash-cd-outside-workspace: ${abs}`);
914
- }
915
- }
916
- if (targetReasons.length > 0) {
917
- return { actionClass: "system_modify", reasons: targetReasons };
918
- }
919
- }
920
- return { actionClass: "execute", reasons };
921
- }
922
- if (base === "write") {
923
- const pathArg = extractWritePath(call.tool, call.args);
924
- if (pathArg) {
925
- const decision = writePathClass(pathArg);
926
- if (decision.cls === "system_modify") {
927
- return { actionClass: "system_modify", reasons: decision.reason ? [decision.reason] : [] };
928
- }
929
- }
930
- return { actionClass: "write", reasons };
931
- }
932
- return { actionClass: base, reasons };
933
- }
934
-
935
- // src/domains/agents/spec.ts
936
- var AGENT_AUTOMATION_AUTHORITIES = ["read-only", "verification", "artifact-write", "workspace-edit"];
937
- var AGENT_PRODUCTS = ["orientation"];
938
- var AGENT_CATEGORIES = [
939
- "explore",
940
- "plan",
941
- "research",
942
- "implement",
943
- "quality",
944
- "science",
945
- "evolution",
946
- "operations",
947
- "internal"
948
- ];
949
- var AGENT_CAPABILITY_CLASSES = [
950
- "read-only",
951
- "artifact-write",
952
- "workspace-edit",
953
- "verification",
954
- "orchestration",
955
- "internal"
956
- ];
957
- var AGENT_LATENCY_CLASSES = ["fast", "balanced", "deep"];
958
- var AGENT_AUDIENCES = ["base", "shadow", "custom", "internal"];
959
- var AGENT_PROJECT_CONTEXT_TIERS = ["none", "bounded"];
960
- function includes(values, value) {
961
- return typeof value === "string" && values.includes(value);
962
- }
963
- function isAgentCategory(value) {
964
- return includes(AGENT_CATEGORIES, value);
965
- }
966
- function isAgentCapabilityClass(value) {
967
- return includes(AGENT_CAPABILITY_CLASSES, value);
968
- }
969
- function isAgentLatencyClass(value) {
970
- return includes(AGENT_LATENCY_CLASSES, value);
971
- }
972
- function isAgentAudience(value) {
973
- return includes(AGENT_AUDIENCES, value);
974
- }
975
- function isAgentProjectContextTier(value) {
976
- return includes(AGENT_PROJECT_CONTEXT_TIERS, value);
977
- }
978
- function isAgentProduct(value) {
979
- return includes(AGENT_PRODUCTS, value);
980
- }
981
- function actionClassesForTools(tools) {
982
- const actions = /* @__PURE__ */ new Set();
983
- for (const tool of tools) actions.add(classify({ tool }).actionClass);
984
- return actions;
985
- }
986
- function normalizeTools(recipe) {
987
- const seen = /* @__PURE__ */ new Set();
988
- const tools = [];
989
- for (const tool of recipe.tools) {
990
- if (typeof tool !== "string" || tool.trim().length === 0) {
991
- throw new Error(`agent recipe '${recipe.id}' declares an invalid tool name`);
992
- }
993
- if (seen.has(tool)) continue;
994
- seen.add(tool);
995
- tools.push(isBuiltinToolName(tool) ? tool : tool);
996
- }
997
- return tools;
998
- }
999
- function asToolName(tool) {
1000
- return isBuiltinToolName(tool) ? tool : tool;
1001
- }
1002
- function normalizeToolRequirements(recipe, tools) {
1003
- if (!recipe.toolRequirements) {
1004
- throw new Error(`agent recipe '${recipe.id}' must declare tools.required and tools.optional`);
1005
- }
1006
- const declared = new Set(tools);
1007
- const required = recipe.toolRequirements.required.map((requirement, index) => {
1008
- if (typeof requirement === "string") return asToolName(requirement);
1009
- if (!Array.isArray(requirement.anyOf) || requirement.anyOf.length === 0) {
1010
- throw new Error(`agent recipe '${recipe.id}' tools.required[${index}].anyOf must be non-empty`);
1011
- }
1012
- return { anyOf: requirement.anyOf.map(asToolName) };
1013
- });
1014
- const optional = recipe.toolRequirements.optional.map(asToolName);
1015
- const mentioned = required.flatMap(
1016
- (requirement) => typeof requirement === "string" ? [requirement] : requirement.anyOf
1017
- );
1018
- for (const tool of [...mentioned, ...optional]) {
1019
- if (!declared.has(tool)) throw new Error(`agent recipe '${recipe.id}' requirement '${tool}' is not declared`);
1020
- }
1021
- if ((/* @__PURE__ */ new Set([...mentioned, ...optional])).size !== mentioned.length + optional.length) {
1022
- throw new Error(`agent recipe '${recipe.id}' contains duplicate tool requirements`);
1023
- }
1024
- if ((/* @__PURE__ */ new Set([...mentioned, ...optional])).size !== tools.length) {
1025
- throw new Error(`agent recipe '${recipe.id}' has declared tools without required/optional semantics`);
1026
- }
1027
- return { required, optional };
1028
- }
1029
- function resolveAgentToolCompatibility(spec, effectiveTools, options) {
1030
- const available = new Set(effectiveTools);
1031
- const missingRequired = [];
1032
- for (const requirement of spec.toolRequirements.required) {
1033
- if (typeof requirement === "string") {
1034
- if (!available.has(requirement)) missingRequired.push(requirement);
1035
- continue;
1036
- }
1037
- if (!requirement.anyOf.some((tool) => available.has(tool))) {
1038
- missingRequired.push(`anyOf(${requirement.anyOf.join("|")})`);
1039
- }
1040
- }
1041
- if (available.has(ToolNames.Dispatch) && !options.mediatesDispatch) {
1042
- missingRequired.push("dispatch(runtime mediation unavailable)");
1043
- }
1044
- return {
1045
- compatible: missingRequired.length === 0,
1046
- missingRequired,
1047
- lostOptional: spec.toolRequirements.optional.filter((tool) => !available.has(tool))
1048
- };
1049
- }
1050
- function normalizeAgentSpec(recipe) {
1051
- const tools = normalizeTools(recipe);
1052
- const toolRequirements = normalizeToolRequirements(recipe, tools);
1053
- return {
1054
- version: recipe.version,
1055
- id: recipe.id,
1056
- name: recipe.name,
1057
- description: recipe.description,
1058
- source: recipe.source,
1059
- filepath: recipe.filepath,
1060
- tools,
1061
- toolRequirements,
1062
- category: recipe.category,
1063
- capabilityClass: recipe.capabilityClass,
1064
- latencyClass: recipe.latencyClass,
1065
- projectContextTier: recipe.projectContextTier,
1066
- audience: recipe.audience,
1067
- tags: recipe.tags,
1068
- skills: recipe.skills,
1069
- resultContract: recipe.resultContract,
1070
- ...recipe.product !== void 0 ? { product: recipe.product } : {},
1071
- budget: recipe.budget,
1072
- body: recipe.body
1073
- };
1074
- }
1075
- function agentSpecFingerprint(spec) {
1076
- const requirement = (entry) => typeof entry === "string" ? entry : `anyOf(${[...entry.anyOf].sort().join("|")})`;
1077
- const payload = JSON.stringify({
1078
- id: spec.id,
1079
- tools: [...spec.tools].sort(),
1080
- required: spec.toolRequirements.required.map(requirement).sort(),
1081
- optional: [...spec.toolRequirements.optional].sort(),
1082
- capabilityClass: spec.capabilityClass,
1083
- latencyClass: spec.latencyClass,
1084
- projectContextTier: spec.projectContextTier,
1085
- audience: spec.audience,
1086
- skills: [...spec.skills].sort(),
1087
- resultContract: spec.resultContract,
1088
- budget: spec.budget,
1089
- body: createHash("sha256").update(spec.body, "utf8").digest("hex")
1090
- });
1091
- return createHash("sha256").update(payload, "utf8").digest("hex");
1092
- }
1093
- function isUserVisibleAgent(spec) {
1094
- return spec.audience === "base" || spec.audience === "custom";
1095
- }
1096
- function isShadowAgent(spec) {
1097
- return spec.audience === "shadow" || spec.audience === "internal";
1098
- }
1099
- function agentSpecPolicyErrors(spec) {
1100
- const errors = [];
1101
- const actions = actionClassesForTools(spec.tools);
1102
- const requiredGroups = spec.toolRequirements.required.map(
1103
- (requirement) => typeof requirement === "string" ? [requirement] : requirement.anyOf
1104
- );
1105
- const requiresTool = (tool) => requiredGroups.some((group) => group.length > 0 && group.every((candidate) => candidate === tool));
1106
- const requiresMutation = requiredGroups.some(
1107
- (group) => group.length > 0 && group.every((tool) => tool === ToolNames.Write || tool === ToolNames.Edit)
1108
- );
1109
- if (spec.capabilityClass === "workspace-edit" && (!requiresTool(ToolNames.Read) || !requiresMutation)) {
1110
- errors.push(`workspace-edit agent '${spec.id}' must require read and write|edit`);
1111
- }
1112
- if (spec.capabilityClass === "verification" && !requiresTool(ToolNames.Verify)) {
1113
- errors.push(`verification agent '${spec.id}' must require verify`);
1114
- }
1115
- if (spec.capabilityClass === "artifact-write" && !requiresTool(ToolNames.Artifact)) {
1116
- errors.push(`artifact-write agent '${spec.id}' must require artifact`);
1117
- }
1118
- if (spec.skills.length > 0 && !requiresTool(ToolNames.Context)) {
1119
- errors.push(`agent '${spec.id}' must require context for bound skills`);
1120
- }
1121
- if (spec.capabilityClass === "orchestration" && spec.tools.includes(ToolNames.Dispatch) && !requiresTool(ToolNames.Dispatch)) {
1122
- errors.push(`orchestration agent '${spec.id}' must require dispatch when it is declared`);
1123
- }
1124
- const toolList = spec.tools.join(", ");
1125
- if (spec.capabilityClass === "read-only") {
1126
- for (const action of actions) {
1127
- if (action !== "read") errors.push(`read-only agent '${spec.id}' requests ${action} tools (${toolList})`);
1128
- }
1129
- }
1130
- if (spec.capabilityClass === "artifact-write") {
1131
- for (const tool of spec.tools) {
1132
- const action = classify({ tool }).actionClass;
1133
- if (action === "execute" || action === "dispatch" || action === "system_modify" || action === "git_destructive") {
1134
- errors.push(`artifact-write agent '${spec.id}' requests ${action} tool '${tool}'`);
1135
- }
1136
- if (action === "write" && tool !== ToolNames.Artifact) {
1137
- errors.push(`artifact-write agent '${spec.id}' can only write terminal artifacts; got '${tool}'`);
1138
- }
1139
- }
1140
- }
1141
- if (spec.capabilityClass === "verification") {
1142
- for (const tool of spec.tools) {
1143
- const action = classify({ tool }).actionClass;
1144
- if (action === "write" || action === "dispatch" || action === "system_modify" || action === "git_destructive") {
1145
- errors.push(`verification agent '${spec.id}' must not request ${action} tool '${tool}'`);
1146
- }
1147
- if (tool === ToolNames.Bash)
1148
- errors.push(`verification agent '${spec.id}' must use typed validation tools, not bash`);
1149
- }
1150
- }
1151
- if (spec.capabilityClass !== "orchestration" && spec.tools.includes(ToolNames.Dispatch)) {
1152
- errors.push(`agent '${spec.id}' exposes dispatch without orchestration capability`);
1153
- }
1154
- if (spec.tools.includes(ToolNames.AskUser)) {
1155
- errors.push(`agent '${spec.id}' exposes ask_user, which is only available to the orchestrator`);
1156
- }
1157
- if (spec.skills.length > 0 && !spec.tools.includes(ToolNames.Context)) {
1158
- errors.push(`agent '${spec.id}' declares skills but does not expose context`);
1159
- }
1160
- return errors;
1161
- }
1162
- function assertAgentSpecPolicy(spec) {
1163
- const errors = agentSpecPolicyErrors(spec);
1164
- if (errors.length > 0) throw new Error(`agent policy violation:
1165
- ${errors.map((error) => `- ${error}`).join("\n")}`);
1166
- }
1167
-
1168
750
  export {
1169
751
  CLIO_PROJECT_DIR,
1170
752
  CLIO_ARTIFACT_DIR,
@@ -1175,21 +757,8 @@ export {
1175
757
  detectValidationCommand,
1176
758
  extractCommandWriteTargets,
1177
759
  inlineShellScript,
760
+ extractCommandCdTargets,
1178
761
  extractCommandDeleteTargets,
1179
- tokenizeShellLike,
1180
- classify,
1181
- AGENT_AUTOMATION_AUTHORITIES,
1182
- isAgentCategory,
1183
- isAgentCapabilityClass,
1184
- isAgentLatencyClass,
1185
- isAgentAudience,
1186
- isAgentProjectContextTier,
1187
- isAgentProduct,
1188
- resolveAgentToolCompatibility,
1189
- normalizeAgentSpec,
1190
- agentSpecFingerprint,
1191
- isUserVisibleAgent,
1192
- isShadowAgent,
1193
- assertAgentSpecPolicy
762
+ tokenizeShellLike
1194
763
  };
1195
- //# sourceMappingURL=chunk-5UUP6MWO.js.map
764
+ //# sourceMappingURL=chunk-MV3K5QF2.js.map
@@ -1,20 +1,20 @@
1
1
  import { createRequire as __clioCreateRequire } from "node:module"; const require = __clioCreateRequire(import.meta.url);
2
2
  import {
3
3
  assistantTextFromEvent
4
- } from "./chunk-XBXAASKX.js";
4
+ } from "./chunk-EFADSJET.js";
5
5
  import {
6
6
  compileExecutionPlan,
7
7
  durableAssistantTextFromEvent
8
- } from "./chunk-SRDMMSEP.js";
8
+ } from "./chunk-QQL5RT5M.js";
9
9
  import {
10
10
  deriveExecutionRole
11
- } from "./chunk-GGXXDWE4.js";
11
+ } from "./chunk-22NAGB7X.js";
12
12
  import {
13
13
  truncateUtf8
14
14
  } from "./chunk-6XLNIQDB.js";
15
15
  import {
16
16
  BusChannels
17
- } from "./chunk-OQ33BKR3.js";
17
+ } from "./chunk-TTNYS3EA.js";
18
18
  import {
19
19
  init_esm_shims
20
20
  } from "./chunk-3R73A4XB.js";
@@ -274,4 +274,4 @@ export {
274
274
  compileScoutTransition,
275
275
  createDispatchRunEventRegistry
276
276
  };
277
- //# sourceMappingURL=chunk-6SGHMWE3.js.map
277
+ //# sourceMappingURL=chunk-N4CZJQRK.js.map
@@ -1,7 +1,7 @@
1
1
  import { createRequire as __clioCreateRequire } from "node:module"; const require = __clioCreateRequire(import.meta.url);
2
2
  import {
3
3
  VERIFICATION_SCRIPT_FAMILY_HINT
4
- } from "./chunk-7MNJORFF.js";
4
+ } from "./chunk-UL3WSD3F.js";
5
5
  import {
6
6
  truncateUtf8
7
7
  } from "./chunk-6XLNIQDB.js";
@@ -16,7 +16,7 @@ import {
16
16
  SAFE_EXEC_DEFAULT_TIMEOUT_MS,
17
17
  combineSafeOutput,
18
18
  runCommandVector
19
- } from "./chunk-VPAYEGVX.js";
19
+ } from "./chunk-VEZEGCGW.js";
20
20
  import {
21
21
  StringEnum
22
22
  } from "./chunk-FCSXB6T2.js";
@@ -41,20 +41,24 @@ function prepareVerifyArguments(args) {
41
41
  }
42
42
  var verifyToolSurface = {
43
43
  name: ToolNames.Verify,
44
- description: 'Run a declared verification check: no arguments lists checks, check=<package.json script> runs it, check="frontend" with path validates an HTML/CSS/JS artifact.',
44
+ description: 'Run a declared verification check: no arguments lists package scripts and .clio-coder/verifiers.yaml entries, check=<id> runs one, and check="frontend" with path validates an HTML/CSS/JS artifact.',
45
45
  parameters: typebox_exports.Object({
46
46
  check: typebox_exports.Optional(
47
47
  typebox_exports.String({
48
- description: `Declared script name (${VERIFICATION_SCRIPT_FAMILY_HINT}) or "frontend". Omit to list available checks.`
48
+ description: `Declared project check ID, package script (${VERIFICATION_SCRIPT_FAMILY_HINT}), or "frontend". Omit to list available checks.`
49
49
  })
50
50
  ),
51
51
  path: typebox_exports.Optional(typebox_exports.String({ description: "check=frontend: artifact file under the workspace root." })),
52
- args: typebox_exports.Optional(typebox_exports.Array(typebox_exports.String(), { description: "Extra arguments passed after --." })),
52
+ args: typebox_exports.Optional(
53
+ typebox_exports.Array(typebox_exports.String(), { description: "Package scripts only: extra arguments passed after --." })
54
+ ),
53
55
  browser: typebox_exports.Optional(
54
56
  StringEnum(BROWSER_MODES, { description: "check=frontend: headless browser mode (default auto)." })
55
57
  ),
56
- cwd: typebox_exports.Optional(typebox_exports.String({ description: "Working directory." })),
57
- timeout_ms: typebox_exports.Optional(typebox_exports.Number({ description: "Timeout in ms (default 120000)." })),
58
+ cwd: typebox_exports.Optional(typebox_exports.String({ description: "Package-script working directory; ignored by project checks." })),
59
+ timeout_ms: typebox_exports.Optional(
60
+ typebox_exports.Number({ description: "Package/frontend timeout in ms; project checks use their declared timeoutMs." })
61
+ ),
58
62
  max_output_bytes: typebox_exports.Optional(typebox_exports.Number({ description: "Output cap in bytes (default 600000)." }))
59
63
  }),
60
64
  baseActionClass: "execute",
@@ -77,9 +81,11 @@ function maxOutputArg(args) {
77
81
  function resultDetails(result) {
78
82
  return {
79
83
  command: [result.file, ...result.args].join(" "),
84
+ argv: [result.file, ...result.args],
80
85
  cwd: result.cwd,
81
86
  exitCode: result.exitCode,
82
87
  durationMs: result.durationMs,
88
+ aborted: result.aborted,
83
89
  timedOut: result.timedOut,
84
90
  outputCapped: result.outputCapped
85
91
  };
@@ -171,4 +177,4 @@ export {
171
177
  prepareVerifyArguments,
172
178
  verifyToolSurface
173
179
  };
174
- //# sourceMappingURL=chunk-TZK7PACC.js.map
180
+ //# sourceMappingURL=chunk-NILBFAPG.js.map
@@ -0,0 +1,23 @@
1
+ import { createRequire as __clioCreateRequire } from "node:module"; const require = __clioCreateRequire(import.meta.url);
2
+ import {
3
+ init_esm_shims
4
+ } from "./chunk-3R73A4XB.js";
5
+
6
+ // src/engine/truncate.ts
7
+ init_esm_shims();
8
+ import {
9
+ formatSize,
10
+ GREP_MAX_LINE_LENGTH,
11
+ truncateHead,
12
+ truncateLine,
13
+ truncateTail
14
+ } from "@earendil-works/pi-agent-core";
15
+
16
+ export {
17
+ formatSize,
18
+ GREP_MAX_LINE_LENGTH,
19
+ truncateHead,
20
+ truncateLine,
21
+ truncateTail
22
+ };
23
+ //# sourceMappingURL=chunk-OZNBF4L3.js.map