@iowarp/clio-coder 0.5.0 → 0.5.1

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 (132) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +12 -9
  3. package/dist/{acp-KS7ARGV6.js → acp-X3N7JDGS.js} +2 -2
  4. package/dist/{agents-YOGJ2YEJ.js → agents-UYGSMAWR.js} +3 -3
  5. package/dist/assets/codewiki.json +1 -1
  6. package/dist/{chunk-EOJPDNUP.js → chunk-3OODBJ45.js} +1 -1
  7. package/dist/{chunk-R7FGRZNF.js → chunk-4D7QM7S5.js} +2 -2
  8. package/dist/{chunk-X4CEFOSG.js → chunk-6B76U65H.js} +4 -4
  9. package/dist/{chunk-LTWH2ACR.js → chunk-7FHSA7VB.js} +5 -5
  10. package/dist/{chunk-GRHOXDKB.js → chunk-7KI4ZSEB.js} +2 -2
  11. package/dist/{chunk-LYJJ6546.js → chunk-7VNLPEUG.js} +6 -6
  12. package/dist/{chunk-D65E25JG.js → chunk-A7G7OUND.js} +2 -2
  13. package/dist/{chunk-3JLTRPN7.js → chunk-AKQ3N3L4.js} +2 -2
  14. package/dist/{chunk-AVSR2HKI.js → chunk-BIQLF3NZ.js} +3 -3
  15. package/dist/{chunk-D3KWFOUT.js → chunk-DGMY2DWE.js} +2 -2
  16. package/dist/{chunk-IN7DGBVS.js → chunk-FBXTHPNZ.js} +2 -2
  17. package/dist/{chunk-EX57VVWW.js → chunk-GGEEG7CD.js} +2 -2
  18. package/dist/{chunk-V35KZDUZ.js → chunk-GW2KVAVI.js} +2 -2
  19. package/dist/{chunk-SJGS3GDI.js → chunk-KIAUZGKF.js} +2 -2
  20. package/dist/{chunk-CBAQPTDU.js → chunk-LFYA3HYH.js} +2 -2
  21. package/dist/{chunk-4VDHLCF5.js → chunk-M5FPIZQW.js} +2 -2
  22. package/dist/{chunk-R2UUNSNQ.js → chunk-O3ZAF7UY.js} +18 -5
  23. package/dist/{chunk-QNUQ7K7D.js → chunk-OXWRE2QJ.js} +2 -2
  24. package/dist/{chunk-55RMDDFM.js → chunk-PGQG7ZMW.js} +2 -2
  25. package/dist/{chunk-HQVN7G4F.js → chunk-QM7HFPQQ.js} +4 -4
  26. package/dist/{chunk-ZR5YA6ZF.js → chunk-QTYRMBW6.js} +2 -2
  27. package/dist/{chunk-3LT34CAM.js → chunk-SAL2SBP4.js} +8 -8
  28. package/dist/{chunk-OJXOA6YU.js → chunk-TL6LNERH.js} +2 -2
  29. package/dist/{chunk-U6YTUVOX.js → chunk-VMTCZ2GR.js} +2 -2
  30. package/dist/{chunk-OQ2EOAHA.js → chunk-VWKR2NN5.js} +5 -5
  31. package/dist/{chunk-QDUUOZ3S.js → chunk-WAISUJNQ.js} +2 -2
  32. package/dist/{chunk-XDHUDE5K.js → chunk-XOH3SD7H.js} +3 -3
  33. package/dist/{chunk-62UK7AGW.js → chunk-ZNTGRDFA.js} +281 -14
  34. package/dist/cli/index.js +17 -17
  35. package/dist/{clio-K2PBVCEM.js → clio-Z3JTEL2I.js} +2 -2
  36. package/dist/{config-Q5J7UBAB.js → config-QYIRZHI7.js} +8 -8
  37. package/dist/{config-graph-P3555574.js → config-graph-TS3SGGQW.js} +8 -8
  38. package/dist/{configure-KIJ32ZO6.js → configure-OX7KVJTQ.js} +2 -2
  39. package/dist/{context-LFBQOSXT.js → context-2BNF6HTP.js} +12 -12
  40. package/dist/{context-WBH3KSVR.js → context-GTMUGAR4.js} +7 -7
  41. package/dist/{context-clear-YOHMQ6SQ.js → context-clear-FVJQBBL7.js} +7 -7
  42. package/dist/{context-working-set-MRAEVDNV.js → context-working-set-MOE72SD6.js} +2 -2
  43. package/dist/{detail-RHJOTGN4.js → detail-QZM3QAAU.js} +8 -8
  44. package/dist/{dispatch-runner-NC7PYNIO.js → dispatch-runner-2KSQO5FU.js} +8 -8
  45. package/dist/{doctor-S5KZ2GTN.js → doctor-2U6YR5NH.js} +3 -3
  46. package/dist/{eval-3D6M36N7.js → eval-ZKK77JWZ.js} +3 -3
  47. package/dist/{evidence-6IYN52ET.js → evidence-FMP7KZZ2.js} +7 -7
  48. package/dist/{evidence-JVECPI3F.js → evidence-PJTOE7JA.js} +7 -7
  49. package/dist/{evidence-XNVPPLVK.js → evidence-POSEQW4Q.js} +9 -9
  50. package/dist/{evolve-TLPUDJDM.js → evolve-JT6PAMZE.js} +7 -7
  51. package/dist/{fleet-WKVBF5SZ.js → fleet-4XR2ZEOF.js} +16 -16
  52. package/dist/{fleet-6RJWIOEO.js → fleet-6JJKNIMV.js} +8 -8
  53. package/dist/{fleet-inspect-236FZPRB.js → fleet-inspect-SWJMFVDP.js} +9 -9
  54. package/dist/{fleet-preflight-NZQHABWO.js → fleet-preflight-KSIHWQAU.js} +4 -4
  55. package/dist/{fleet-verify-E3RO6A5W.js → fleet-verify-QM6XU2KL.js} +7 -7
  56. package/dist/{fleet-view-KMZQY7YJ.js → fleet-view-RLKFHFCM.js} +8 -8
  57. package/dist/gui/reads-worker.js +4 -4
  58. package/dist/{init-DV5B6HQG.js → init-VBUPHABR.js} +11 -11
  59. package/dist/{interactive-OXGYZYAS.js → interactive-JCVBPVYT.js} +1597 -503
  60. package/dist/{inventory-OEGIL6PY.js → inventory-54G7FSVY.js} +8 -8
  61. package/dist/{mcp-2GSPYQ54.js → mcp-EFCWUPUR.js} +3 -3
  62. package/dist/{memory-J3STUUIK.js → memory-5BPQSSOP.js} +7 -7
  63. package/dist/{models-Y3GMFJ2V.js → models-R6HILX6X.js} +3 -3
  64. package/dist/{monitor-LHNH577J.js → monitor-HVRKSFEQ.js} +10 -10
  65. package/dist/{orchestrator-DTAPXULA.js → orchestrator-OR7V4YWK.js} +26 -26
  66. package/dist/{preload-OJBMAIXF.js → preload-KLXFOX2F.js} +7 -7
  67. package/dist/{run-H64MEVTA.js → run-UIDRUYAY.js} +16 -16
  68. package/dist/{skills-eval-CQ23MYQK.js → skills-eval-JDAXOPWC.js} +7 -7
  69. package/dist/{slash-commands-ROG3KIFJ.js → slash-commands-MNKQ5QP3.js} +4 -4
  70. package/dist/{startup-background-KDWCQMWT.js → startup-background-PJMWTKVO.js} +7 -7
  71. package/dist/{system-ZDW44ZGX.js → system-IVVZRKGI.js} +2 -2
  72. package/dist/{targets-AJWA6E7Z.js → targets-RFRUMCQ5.js} +4 -4
  73. package/dist/{terminal-lease-YFUSDPAD.js → terminal-lease-V2N2BIKQ.js} +2 -2
  74. package/dist/{usage-XSILDHKF.js → usage-LA33SG3R.js} +9 -9
  75. package/dist/{wiki-generate-RP22WP5K.js → wiki-generate-HL73TICA.js} +10 -10
  76. package/dist/worker/entry.js +4 -4
  77. package/docs/architecture/architecture.md +1 -0
  78. package/docs/architecture/context-engine.md +2 -2
  79. package/docs/architecture/observability.md +6 -4
  80. package/docs/architecture/prompt-envelope-and-tools.md +1 -1
  81. package/docs/architecture/session-lifecycle.md +1 -1
  82. package/docs/architecture/tui-design.md +12 -9
  83. package/docs/gui/parity/02-slash-and-surfaces.md +1 -1
  84. package/docs/guide/commands-and-modes.md +91 -5
  85. package/docs/guide/configuration-and-targets.md +2 -2
  86. package/docs/guide/proactive-memory.md +3 -3
  87. package/package.json +1 -1
  88. package/src/cli/usage.ts +2 -2
  89. package/src/domains/gateway/mcp/client.ts +1 -1
  90. package/src/domains/observability/background-memory-usage.ts +1 -1
  91. package/src/domains/observability/cost.ts +3 -3
  92. package/src/domains/observability/extension.ts +1 -1
  93. package/src/domains/observability/metrics.ts +1 -1
  94. package/src/domains/quota/anthropic-max-provider.ts +134 -0
  95. package/src/domains/quota/anthropic-usage.ts +220 -0
  96. package/src/domains/quota/antigravity-provider.ts +339 -0
  97. package/src/domains/quota/cache.ts +87 -0
  98. package/src/domains/quota/claude-code-provider.ts +169 -0
  99. package/src/domains/quota/codex-provider.ts +237 -0
  100. package/src/domains/quota/presentation.ts +240 -0
  101. package/src/domains/quota/registry.ts +23 -0
  102. package/src/domains/quota/service.ts +93 -0
  103. package/src/domains/quota/summary-feed.ts +86 -0
  104. package/src/domains/quota/types.ts +84 -0
  105. package/src/domains/session/usage.ts +2 -2
  106. package/src/engine/acp/commands.ts +1 -1
  107. package/src/entry/orchestrator.ts +2 -2
  108. package/src/interactive/chat-loop-messages.ts +2 -2
  109. package/src/interactive/chat-loop.ts +3 -3
  110. package/src/interactive/dispatch-board.ts +21 -3
  111. package/src/interactive/footer/dashboard.ts +13 -0
  112. package/src/interactive/footer/key-hints.ts +2 -2
  113. package/src/interactive/footer/pages.ts +55 -20
  114. package/src/interactive/footer-panel.ts +1 -1
  115. package/src/interactive/interactive-application.ts +5 -2
  116. package/src/interactive/interactive-input-runtime.ts +2 -2
  117. package/src/interactive/interactive-presentation.ts +15 -0
  118. package/src/interactive/interactive-slash-runtime.ts +2 -2
  119. package/src/interactive/interactive-tickers.ts +7 -1
  120. package/src/interactive/overlay-general-openers.ts +12 -8
  121. package/src/interactive/overlay-key-routing.ts +6 -9
  122. package/src/interactive/overlay-lifecycle.ts +10 -6
  123. package/src/interactive/overlay-session-lifecycle.ts +3 -3
  124. package/src/interactive/quota-view.ts +229 -0
  125. package/src/interactive/session-last-turn.ts +1 -1
  126. package/src/interactive/session-usage-reseed.ts +2 -2
  127. package/src/interactive/side-question.ts +2 -2
  128. package/src/interactive/slash-commands.ts +8 -8
  129. package/src/interactive/turn-context.ts +1 -1
  130. package/src/interactive/turn-prewarm.ts +1 -1
  131. package/src/interactive/{cost-overlay.ts → usage-overlay.ts} +121 -33
  132. package/src/interactive/welcome-dashboard.ts +26 -3
@@ -1322,4 +1322,4 @@ export {
1322
1322
  ledgerUsageCalls,
1323
1323
  SessionDomainModule
1324
1324
  };
1325
- //# sourceMappingURL=chunk-EOJPDNUP.js.map
1325
+ //# sourceMappingURL=chunk-3OODBJ45.js.map
@@ -6,7 +6,7 @@ import {
6
6
  assertValidResponseSchema,
7
7
  runtimeSpeaksResponseSchemaDialect,
8
8
  snapshotTurnConstraints
9
- } from "./chunk-OQ2EOAHA.js";
9
+ } from "./chunk-VWKR2NN5.js";
10
10
  import {
11
11
  completeHistoryLength,
12
12
  contextHash,
@@ -1791,4 +1791,4 @@ export {
1791
1791
  nodeResultContractFilesystem,
1792
1792
  createRunEffectsRecorder
1793
1793
  };
1794
- //# sourceMappingURL=chunk-R7FGRZNF.js.map
1794
+ //# sourceMappingURL=chunk-4D7QM7S5.js.map
@@ -143,7 +143,7 @@ function terminalLeaseEligible(options, env = process.env) {
143
143
  }
144
144
  var DEFAULT_DEPENDENCIES = {
145
145
  bootOrchestrator: async (options) => {
146
- const { bootOrchestrator } = await import("./orchestrator-DTAPXULA.js");
146
+ const { bootOrchestrator } = await import("./orchestrator-OR7V4YWK.js");
147
147
  return bootOrchestrator(options);
148
148
  }
149
149
  };
@@ -170,7 +170,7 @@ Run \`clio-coder auth login ${verdict.store}\` if the endpoint requires one; loc
170
170
  } else if (verdict.kind !== "usable") {
171
171
  process.stdout.write(`${describeVerdict(verdict)} Starting \`clio-coder configure\`.
172
172
  `);
173
- const { runConfigureCommand } = await import("./configure-KIJ32ZO6.js");
173
+ const { runConfigureCommand } = await import("./configure-OX7KVJTQ.js");
174
174
  const configured = await runConfigureCommand([]);
175
175
  if (configured !== 0) return configured;
176
176
  startupSettings = readStrictLayeredSettings(process.cwd()).settings;
@@ -185,7 +185,7 @@ Run \`clio-coder auth login ${verdict.store}\` if the endpoint requires one; loc
185
185
  let terminalLease;
186
186
  try {
187
187
  if (terminalLeaseEligible(options)) {
188
- const { createProcessTerminalLease, instantShellEnabled } = await import("./terminal-lease-YFUSDPAD.js");
188
+ const { createProcessTerminalLease, instantShellEnabled } = await import("./terminal-lease-V2N2BIKQ.js");
189
189
  if (instantShellEnabled()) {
190
190
  let stage0FrameId = null;
191
191
  const shellSettings = startupSettings ?? readLayeredSettings(process.cwd()).settings;
@@ -223,4 +223,4 @@ Run \`clio-coder auth login ${verdict.store}\` if the endpoint requires one; loc
223
223
  export {
224
224
  runClioCommand
225
225
  };
226
- //# sourceMappingURL=chunk-X4CEFOSG.js.map
226
+ //# sourceMappingURL=chunk-6B76U65H.js.map
@@ -38,7 +38,7 @@ import {
38
38
  readAuditRows,
39
39
  readSessionEntriesForId,
40
40
  responseModelIdObservationFromRecord
41
- } from "./chunk-EOJPDNUP.js";
41
+ } from "./chunk-3OODBJ45.js";
42
42
  import {
43
43
  loadEvalArtifact,
44
44
  parseEvalArtifactV4,
@@ -97,7 +97,7 @@ import {
97
97
  receiptAttestationFields,
98
98
  routeFactVerdict,
99
99
  spawnNativeWorker
100
- } from "./chunk-U6YTUVOX.js";
100
+ } from "./chunk-VMTCZ2GR.js";
101
101
  import {
102
102
  JUDGED_CHECK_MAX_OUTPUT_BYTES,
103
103
  judgeNumericTexts,
@@ -165,7 +165,7 @@ import {
165
165
  isClaudeCanonicalTool,
166
166
  nodeResultContractFilesystem,
167
167
  serializeWorkerRuntimeDescriptor
168
- } from "./chunk-R7FGRZNF.js";
168
+ } from "./chunk-4D7QM7S5.js";
169
169
  import {
170
170
  assessFinishContract
171
171
  } from "./chunk-DOUISWEE.js";
@@ -217,7 +217,7 @@ import {
217
217
  toolPromptHintsForNames,
218
218
  turnAllowsTool,
219
219
  validateJobSpec
220
- } from "./chunk-OQ2EOAHA.js";
220
+ } from "./chunk-VWKR2NN5.js";
221
221
  import {
222
222
  WORKER_CONTEXT_MAX_BYTES,
223
223
  completeHistoryLength,
@@ -22999,4 +22999,4 @@ export {
22999
22999
  buildWikiPlanPrompt,
23000
23000
  buildWikiPagePrompt
23001
23001
  };
23002
- //# sourceMappingURL=chunk-LTWH2ACR.js.map
23002
+ //# sourceMappingURL=chunk-7FHSA7VB.js.map
@@ -3,7 +3,7 @@ import {
3
3
  GATEWAY_SCHEMA_RUNTIME_ID,
4
4
  RESPONSE_SCHEMA_RUNTIME_ID,
5
5
  responseSchemaDialectFor
6
- } from "./chunk-OQ2EOAHA.js";
6
+ } from "./chunk-VWKR2NN5.js";
7
7
  import {
8
8
  hashToolCall
9
9
  } from "./chunk-7QXCO3AF.js";
@@ -1101,4 +1101,4 @@ export {
1101
1101
  patchResponseSchemaPayloadForDialect,
1102
1102
  patchWorkerRequestPayload
1103
1103
  };
1104
- //# sourceMappingURL=chunk-GRHOXDKB.js.map
1104
+ //# sourceMappingURL=chunk-7KI4ZSEB.js.map
@@ -2,13 +2,13 @@ import { createRequire as __clioCreateRequire } from "node:module"; const requir
2
2
  import {
3
3
  SchedulingDomainModule,
4
4
  createPromptsDomainModule
5
- } from "./chunk-3JLTRPN7.js";
5
+ } from "./chunk-AKQ3N3L4.js";
6
6
  import {
7
7
  AgentsDomainModule
8
8
  } from "./chunk-UCINIRHW.js";
9
9
  import {
10
10
  createObservabilityDomainModule
11
- } from "./chunk-HQVN7G4F.js";
11
+ } from "./chunk-QM7HFPQQ.js";
12
12
  import {
13
13
  ResourcesDomainModule
14
14
  } from "./chunk-4WOOTKFD.js";
@@ -18,13 +18,13 @@ import {
18
18
  import {
19
19
  DispatchDomainModule,
20
20
  fallbackBootstrapOutput
21
- } from "./chunk-LTWH2ACR.js";
21
+ } from "./chunk-7FHSA7VB.js";
22
22
  import {
23
23
  renderCodewikiDigest
24
24
  } from "./chunk-OZ76TLGU.js";
25
25
  import {
26
26
  SessionDomainModule
27
- } from "./chunk-EOJPDNUP.js";
27
+ } from "./chunk-3OODBJ45.js";
28
28
  import {
29
29
  SafetyDomainModule
30
30
  } from "./chunk-XMDBTYCH.js";
@@ -32,7 +32,7 @@ import {
32
32
  MiddlewareDomainModule,
33
33
  UnsupportedResponseSchemaError,
34
34
  isResponseSchemaRejection
35
- } from "./chunk-OQ2EOAHA.js";
35
+ } from "./chunk-VWKR2NN5.js";
36
36
  import {
37
37
  declaredScopeIntent
38
38
  } from "./chunk-L4N3DWNW.js";
@@ -658,4 +658,4 @@ export {
658
658
  resolveBootstrapRoute,
659
659
  modelBootstrapGenerate
660
660
  };
661
- //# sourceMappingURL=chunk-LYJJ6546.js.map
661
+ //# sourceMappingURL=chunk-7VNLPEUG.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
  COUNCIL_MAX_MEMBERS
4
- } from "./chunk-OQ2EOAHA.js";
4
+ } from "./chunk-VWKR2NN5.js";
5
5
  import {
6
6
  init_esm_shims
7
7
  } from "./chunk-ECBHH7LU.js";
@@ -182,4 +182,4 @@ export {
182
182
  COUNCIL_TOPOLOGY_MAX_SCAN,
183
183
  councilTopologies
184
184
  };
185
- //# sourceMappingURL=chunk-D65E25JG.js.map
185
+ //# sourceMappingURL=chunk-A7G7OUND.js.map
@@ -8,7 +8,7 @@ import {
8
8
  renderOperatorProfile,
9
9
  selectActiveRules,
10
10
  selectProjectPreload
11
- } from "./chunk-LTWH2ACR.js";
11
+ } from "./chunk-7FHSA7VB.js";
12
12
  import {
13
13
  loadFragments,
14
14
  sha256
@@ -708,4 +708,4 @@ export {
708
708
  createPromptsDomainModule,
709
709
  SchedulingDomainModule
710
710
  };
711
- //# sourceMappingURL=chunk-3JLTRPN7.js.map
711
+ //# sourceMappingURL=chunk-AKQ3N3L4.js.map
@@ -2,7 +2,7 @@ import { createRequire as __clioCreateRequire } from "node:module"; const requir
2
2
  import {
3
3
  receiptGatewayRoutingLabel,
4
4
  receiptResponseModelIdObservationLabel
5
- } from "./chunk-LTWH2ACR.js";
5
+ } from "./chunk-7FHSA7VB.js";
6
6
  import {
7
7
  formatTrustAxes,
8
8
  formatTrustSummary
@@ -15,7 +15,7 @@ import {
15
15
  formatBudgetReasons,
16
16
  formatBudgetRequest,
17
17
  formatEffectiveBudget
18
- } from "./chunk-OQ2EOAHA.js";
18
+ } from "./chunk-VWKR2NN5.js";
19
19
  import {
20
20
  truncateUtf8
21
21
  } from "./chunk-MYI32N4R.js";
@@ -229,4 +229,4 @@ export {
229
229
  workerTextLabel,
230
230
  workerTextNonEvidenceNotices
231
231
  };
232
- //# sourceMappingURL=chunk-AVSR2HKI.js.map
232
+ //# sourceMappingURL=chunk-BIQLF3NZ.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
  appendOutOfTurnUsageRow
4
- } from "./chunk-V35KZDUZ.js";
4
+ } from "./chunk-GW2KVAVI.js";
5
5
  import {
6
6
  extractReasoningTokens
7
7
  } from "./chunk-6W75D37F.js";
@@ -100,4 +100,4 @@ export {
100
100
  recordFailedCompactionCalls,
101
101
  summarizeFailedCompactionUsage
102
102
  };
103
- //# sourceMappingURL=chunk-D3KWFOUT.js.map
103
+ //# sourceMappingURL=chunk-DGMY2DWE.js.map
@@ -360,7 +360,7 @@ async function runDoctorFleetChecks(projectRoot = process.cwd(), options = {}) {
360
360
  }
361
361
  const nodes = settings.fleet?.nodes ?? [];
362
362
  if (nodes.length === 0) return [];
363
- const { recordFleetPreflight, runFleetNodePreflight } = await import("./fleet-preflight-NZQHABWO.js");
363
+ const { recordFleetPreflight, runFleetNodePreflight } = await import("./fleet-preflight-KSIHWQAU.js");
364
364
  const targets = (settings.targets ?? []).map((target) => ({
365
365
  id: target.id,
366
366
  runtimeId: target.runtime,
@@ -579,4 +579,4 @@ export {
579
579
  runDoctorRuntimeChecks,
580
580
  runDoctorModelChecks
581
581
  };
582
- //# sourceMappingURL=chunk-IN7DGBVS.js.map
582
+ //# sourceMappingURL=chunk-FBXTHPNZ.js.map
@@ -3151,7 +3151,7 @@ var DIAGNOSTICS_SECTION = {
3151
3151
  label: "Run doctor",
3152
3152
  hint: "read-only health check",
3153
3153
  run: async (io) => {
3154
- const { runDoctorCommand } = await import("./doctor-S5KZ2GTN.js");
3154
+ const { runDoctorCommand } = await import("./doctor-2U6YR5NH.js");
3155
3155
  await runDoctorCommand([]);
3156
3156
  await io.rl.text("Press Enter to return");
3157
3157
  }
@@ -4154,4 +4154,4 @@ export {
4154
4154
  runTargetRename,
4155
4155
  runConfigureCommand
4156
4156
  };
4157
- //# sourceMappingURL=chunk-EX57VVWW.js.map
4157
+ //# sourceMappingURL=chunk-GGEEG7CD.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
  FAILURE_CAUSE_TAGS
4
- } from "./chunk-LTWH2ACR.js";
4
+ } from "./chunk-7FHSA7VB.js";
5
5
  import {
6
6
  readEvidenceIndex
7
7
  } from "./chunk-G5R53COU.js";
@@ -215,4 +215,4 @@ export {
215
215
  appendOutOfTurnUsageRow,
216
216
  readOutOfTurnUsageRows
217
217
  };
218
- //# sourceMappingURL=chunk-V35KZDUZ.js.map
218
+ //# sourceMappingURL=chunk-GW2KVAVI.js.map
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  openLedger,
9
9
  readFleetRun
10
- } from "./chunk-LTWH2ACR.js";
10
+ } from "./chunk-7FHSA7VB.js";
11
11
  import {
12
12
  WRITE_BOUNDARY_VIOLATION_REASON
13
13
  } from "./chunk-DXSETN72.js";
@@ -572,4 +572,4 @@ export {
572
572
  loadFleetRunViewModel,
573
573
  runFleetView
574
574
  };
575
- //# sourceMappingURL=chunk-SJGS3GDI.js.map
575
+ //# sourceMappingURL=chunk-KIAUZGKF.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
  sumRunUsage
4
- } from "./chunk-ZR5YA6ZF.js";
4
+ } from "./chunk-QTYRMBW6.js";
5
5
  import {
6
6
  init_esm_shims
7
7
  } from "./chunk-ECBHH7LU.js";
@@ -162,4 +162,4 @@ export {
162
162
  projectHeadlessJsonEvent,
163
163
  projectDispatchJsonEvent
164
164
  };
165
- //# sourceMappingURL=chunk-CBAQPTDU.js.map
165
+ //# sourceMappingURL=chunk-LFYA3HYH.js.map
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-HOYZUKG7.js";
5
5
  import {
6
6
  runDoctor
7
- } from "./chunk-IN7DGBVS.js";
7
+ } from "./chunk-FBXTHPNZ.js";
8
8
  import {
9
9
  readStateInfo
10
10
  } from "./chunk-NOCSM22Y.js";
@@ -63,4 +63,4 @@ export {
63
63
  describeUpgradeNotice,
64
64
  LifecycleDomainModule
65
65
  };
66
- //# sourceMappingURL=chunk-4VDHLCF5.js.map
66
+ //# sourceMappingURL=chunk-M5FPIZQW.js.map
@@ -19,7 +19,8 @@ import {
19
19
  getKeybindings,
20
20
  stripTerminalSequences,
21
21
  truncateToWidth,
22
- visibleWidth
22
+ visibleWidth,
23
+ wrapTextWithAnsi
23
24
  } from "./chunk-6OWUM2NC.js";
24
25
  import {
25
26
  sanitizeCallTargetText
@@ -1376,13 +1377,21 @@ function buildWelcomeDashboardLines(stats, version, width, mode, hintPage = 0, g
1376
1377
  theme.fg("dim", "Ask Clio how to use or extend her."),
1377
1378
  theme.fg("dim", "Targets"),
1378
1379
  theme.fg("muted", stats.targets),
1380
+ // Keep the subscription field beside the wordmark, between Targets and
1381
+ // Fleet. Wrap at the actual detail-column width instead of clipping the
1382
+ // last accounts (especially Local) off a single concatenated line.
1383
+ ...stats.quota === null ? [] : wrapTextWithAnsi(
1384
+ field("Subscriptions", theme.fg("muted", sanitizeCallTargetText(stats.quota))),
1385
+ Math.max(1, detailWidth)
1386
+ ),
1379
1387
  theme.fg("dim", "Fleet"),
1380
1388
  theme.fg("muted", stats.fleet)
1381
1389
  ];
1382
1390
  return [
1383
1391
  heading,
1384
- ...details.map((detail, index) => {
1385
- const art = sideBySide ? `${theme.fg("accent", wordmark[index] ?? "")} ` : "";
1392
+ ...Array.from({ length: Math.max(details.length, hints.length, sideBySide ? wordmark.length : 0) }, (_, index) => {
1393
+ const detail = details[index] ?? "";
1394
+ const art = sideBySide ? `${padAnsi(theme.fg("accent", wordmark[index] ?? ""), artWidth)} ` : "";
1386
1395
  const content = `${art}${truncateToWidth(detail, detailWidth, GLYPH.ellipsis, false)}`;
1387
1396
  return row(
1388
1397
  showHints ? `${padAnsi(content, contentWidth)} ${frame("\u2502")} ${truncateToWidth(hints[index] ?? "", hintWidth, GLYPH.ellipsis, false)}` : content
@@ -1406,7 +1415,8 @@ function statsSignature(stats) {
1406
1415
  stats.submitKeyLabel,
1407
1416
  stats.autonomy,
1408
1417
  stats.targets,
1409
- stats.fleet
1418
+ stats.fleet,
1419
+ stats.quota
1410
1420
  ].join("\0");
1411
1421
  }
1412
1422
  var WelcomeDashboard = class {
@@ -1507,6 +1517,7 @@ var WelcomeDashboard = class {
1507
1517
  projectContext: launchpad ? this.projectContext(cwd) : "checking",
1508
1518
  submitKeyLabel: launchpad ? this.deps.getSubmitKeyLabel?.() ?? null : null,
1509
1519
  autonomy: settings?.safety?.autonomy ?? "auto-edit",
1520
+ quota: launchpad ? this.deps.getQuotaSummary?.() ?? null : null,
1510
1521
  ...inventory(settings, statuses, this.deps.getAgentCount?.())
1511
1522
  };
1512
1523
  }
@@ -1582,6 +1593,8 @@ function createBootWelcome(settings, submitKeyLabel, getKeyLabel) {
1582
1593
  routeReason: null,
1583
1594
  projectContext: "checking",
1584
1595
  submitKeyLabel,
1596
+ // Boot paints before any provider has been read, so the row stays hidden.
1597
+ quota: null,
1585
1598
  autonomy: settings.safety.autonomy,
1586
1599
  ...inventory(settings)
1587
1600
  };
@@ -1602,4 +1615,4 @@ export {
1602
1615
  createWelcomeDashboard,
1603
1616
  createBootWelcome
1604
1617
  };
1605
- //# sourceMappingURL=chunk-R2UUNSNQ.js.map
1618
+ //# sourceMappingURL=chunk-O3ZAF7UY.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
  inspectEvidence
4
- } from "./chunk-LTWH2ACR.js";
4
+ } from "./chunk-7FHSA7VB.js";
5
5
  import {
6
6
  trustVerdict
7
7
  } from "./chunk-OZ76TLGU.js";
@@ -43,4 +43,4 @@ export {
43
43
  EVIDENCE_DETAIL_MAX_RUNS,
44
44
  evidenceDetailSnapshot
45
45
  };
46
- //# sourceMappingURL=chunk-QNUQ7K7D.js.map
46
+ //# sourceMappingURL=chunk-OXWRE2QJ.js.map
@@ -715,7 +715,7 @@ function createLineFramer(maxLineBytes = DEFAULT_MAX_LINE_BYTES) {
715
715
 
716
716
  // src/domains/gateway/mcp/client.ts
717
717
  var MCP_CLIENT_NAME = "clio-coder";
718
- var DEFAULT_MCP_CLIENT_VERSION = "0.5.0";
718
+ var DEFAULT_MCP_CLIENT_VERSION = "0.5.1";
719
719
  var DEFAULT_INITIALIZE_TIMEOUT_MS = 15e3;
720
720
  var DEFAULT_REQUEST_TIMEOUT_MS = 6e4;
721
721
  var DEFAULT_STDERR_TAIL_BYTES = 16 * 1024;
@@ -1344,4 +1344,4 @@ export {
1344
1344
  trustMcpServer,
1345
1345
  untrustMcpServer
1346
1346
  };
1347
- //# sourceMappingURL=chunk-55RMDDFM.js.map
1347
+ //# sourceMappingURL=chunk-PGQG7ZMW.js.map
@@ -2,7 +2,7 @@ import { createRequire as __clioCreateRequire } from "node:module"; const requir
2
2
  import {
3
3
  appendOutOfTurnUsageRow,
4
4
  readAccountabilitySummary
5
- } from "./chunk-V35KZDUZ.js";
5
+ } from "./chunk-GW2KVAVI.js";
6
6
  import {
7
7
  createWorkerProgressFold
8
8
  } from "./chunk-HOEDA42N.js";
@@ -12,7 +12,7 @@ import {
12
12
  import {
13
13
  buildEvidence,
14
14
  createCostTracker
15
- } from "./chunk-LTWH2ACR.js";
15
+ } from "./chunk-7FHSA7VB.js";
16
16
  import {
17
17
  summarizeTrustStatus
18
18
  } from "./chunk-OZ76TLGU.js";
@@ -28,7 +28,7 @@ import {
28
28
  } from "./chunk-GM4TY6VN.js";
29
29
  import {
30
30
  cloneRunToolBudgetEnvelope
31
- } from "./chunk-OQ2EOAHA.js";
31
+ } from "./chunk-VWKR2NN5.js";
32
32
  import {
33
33
  sanitizeCallTargetText
34
34
  } from "./chunk-XNIZBOFV.js";
@@ -1018,4 +1018,4 @@ export {
1018
1018
  ObservabilityDomainModule,
1019
1019
  createObservabilityDomainModule
1020
1020
  };
1021
- //# sourceMappingURL=chunk-HQVN7G4F.js.map
1021
+ //# sourceMappingURL=chunk-QM7HFPQQ.js.map
@@ -7,7 +7,7 @@ import {
7
7
  addResponseModelIdObservationCount,
8
8
  emptyResponseModelIdObservationCounts,
9
9
  responseModelIdObservationFromRecord
10
- } from "./chunk-EOJPDNUP.js";
10
+ } from "./chunk-3OODBJ45.js";
11
11
  import {
12
12
  uncachedPrefillTokens
13
13
  } from "./chunk-TKDRT2DF.js";
@@ -509,4 +509,4 @@ export {
509
509
  pruneFailedAssistantFromContext,
510
510
  detectOverflowFromState
511
511
  };
512
- //# sourceMappingURL=chunk-ZR5YA6ZF.js.map
512
+ //# sourceMappingURL=chunk-QTYRMBW6.js.map
@@ -14,7 +14,7 @@ import {
14
14
  } from "./chunk-QUIJZSDW.js";
15
15
  import {
16
16
  mcpCommandOutput
17
- } from "./chunk-OJXOA6YU.js";
17
+ } from "./chunk-TL6LNERH.js";
18
18
  import {
19
19
  acceptanceFromTaskFlags,
20
20
  formatUserTaskHandoff
@@ -1876,14 +1876,14 @@ ${usage}` : usage);
1876
1876
  }
1877
1877
  },
1878
1878
  {
1879
- name: "cost",
1880
- description: "Show session token and cost totals",
1879
+ name: "usage",
1880
+ description: "Show subscription quota, credits, and session token and cost totals",
1881
1881
  group: "Inspect",
1882
- kinds: ["cost"],
1882
+ kinds: ["usage"],
1883
1883
  args: {},
1884
- fromArgs: fromArgsOrUsage("cost", { kind: "cost" }),
1884
+ fromArgs: fromArgsOrUsage("usage", { kind: "usage" }),
1885
1885
  handle(_command, ctx) {
1886
- ctx.openCost();
1886
+ ctx.openUsage();
1887
1887
  }
1888
1888
  },
1889
1889
  {
@@ -2738,7 +2738,7 @@ var COMMAND_ORDER = [
2738
2738
  "memory",
2739
2739
  "view",
2740
2740
  "panes",
2741
- "cost",
2741
+ "usage",
2742
2742
  "doctor",
2743
2743
  "decisions",
2744
2744
  "library",
@@ -2793,4 +2793,4 @@ export {
2793
2793
  dispatchSlashCommand,
2794
2794
  commandReference
2795
2795
  };
2796
- //# sourceMappingURL=chunk-3LT34CAM.js.map
2796
+ //# sourceMappingURL=chunk-SAL2SBP4.js.map
@@ -7,7 +7,7 @@ import {
7
7
  resolveMcpServers,
8
8
  trustMcpServer,
9
9
  untrustMcpServer
10
- } from "./chunk-55RMDDFM.js";
10
+ } from "./chunk-PGQG7ZMW.js";
11
11
  import {
12
12
  init_esm_shims
13
13
  } from "./chunk-ECBHH7LU.js";
@@ -95,4 +95,4 @@ export {
95
95
  mcpCommandOutput,
96
96
  runMcpCommand
97
97
  };
98
- //# sourceMappingURL=chunk-OJXOA6YU.js.map
98
+ //# sourceMappingURL=chunk-TL6LNERH.js.map
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-SD7SHNDW.js";
5
5
  import {
6
6
  attestedToolSignature
7
- } from "./chunk-OQ2EOAHA.js";
7
+ } from "./chunk-VWKR2NN5.js";
8
8
  import {
9
9
  enableClioCompileCache,
10
10
  publishClioCompileCache,
@@ -1008,4 +1008,4 @@ export {
1008
1008
  routeFactVerdict,
1009
1009
  runFleetNodePreflight
1010
1010
  };
1011
- //# sourceMappingURL=chunk-U6YTUVOX.js.map
1011
+ //# sourceMappingURL=chunk-VMTCZ2GR.js.map
@@ -51,7 +51,7 @@ import {
51
51
  McpError,
52
52
  createMcpStdioClient,
53
53
  resolveMcpServers
54
- } from "./chunk-55RMDDFM.js";
54
+ } from "./chunk-PGQG7ZMW.js";
55
55
  import {
56
56
  isDispatchIntent,
57
57
  resolveDispatchPathScope
@@ -11261,7 +11261,7 @@ var evidenceTool = {
11261
11261
  try {
11262
11262
  const dataDir = clioDataDir();
11263
11263
  if (mode === "list") {
11264
- const { evidenceInventorySnapshot } = await import("./inventory-OEGIL6PY.js");
11264
+ const { evidenceInventorySnapshot } = await import("./inventory-54G7FSVY.js");
11265
11265
  return boundedResult(await evidenceInventorySnapshot(Date.now, dataDir));
11266
11266
  }
11267
11267
  const id = mode === "inspect" ? args.id : args.runId;
@@ -11269,8 +11269,8 @@ var evidenceTool = {
11269
11269
  return { kind: "error", message: `evidence: ${mode} requires ${mode === "inspect" ? "id" : "runId"}` };
11270
11270
  }
11271
11271
  assertSafeId(id, mode === "inspect" ? "evidence" : "run");
11272
- const { buildEvidence, EvidenceNotFoundError, inspectEvidence, loadEvidenceGateDecisions } = await import("./evidence-JVECPI3F.js");
11273
- const { evidenceDetailSnapshot } = await import("./detail-RHJOTGN4.js");
11272
+ const { buildEvidence, EvidenceNotFoundError, inspectEvidence, loadEvidenceGateDecisions } = await import("./evidence-PJTOE7JA.js");
11273
+ const { evidenceDetailSnapshot } = await import("./detail-QZM3QAAU.js");
11274
11274
  let evidenceId = mode === "run" ? `run-${id}` : id;
11275
11275
  let inspected;
11276
11276
  try {
@@ -14396,4 +14396,4 @@ export {
14396
14396
  createWorkerToolRegistry,
14397
14397
  attestedToolSignature
14398
14398
  };
14399
- //# sourceMappingURL=chunk-OQ2EOAHA.js.map
14399
+ //# sourceMappingURL=chunk-VWKR2NN5.js.map
@@ -6,7 +6,7 @@ import {
6
6
  EVIDENCE_TAGS,
7
7
  listEvidenceOverviews,
8
8
  loadEvidenceTrustStatus
9
- } from "./chunk-LTWH2ACR.js";
9
+ } from "./chunk-7FHSA7VB.js";
10
10
  import {
11
11
  trustVerdict
12
12
  } from "./chunk-OZ76TLGU.js";
@@ -105,4 +105,4 @@ export {
105
105
  EVIDENCE_INVENTORY_MAX_IDS,
106
106
  evidenceInventorySnapshot
107
107
  };
108
- //# sourceMappingURL=chunk-QDUUOZ3S.js.map
108
+ //# sourceMappingURL=chunk-WAISUJNQ.js.map
@@ -14,7 +14,7 @@ import {
14
14
  renderOperatorProfile,
15
15
  renderPromptContext,
16
16
  selectProjectPreload
17
- } from "./chunk-LTWH2ACR.js";
17
+ } from "./chunk-7FHSA7VB.js";
18
18
  import {
19
19
  defaultScopedResourceRoots
20
20
  } from "./chunk-CDQ2UC6W.js";
@@ -27,7 +27,7 @@ import {
27
27
  loadUserHooks,
28
28
  readHookSources,
29
29
  readPersistedHookReceipts
30
- } from "./chunk-OQ2EOAHA.js";
30
+ } from "./chunk-VWKR2NN5.js";
31
31
  import {
32
32
  listInstalledExtensions
33
33
  } from "./chunk-VESL6DQY.js";
@@ -377,4 +377,4 @@ function buildCustomizationGraph(cwd) {
377
377
  export {
378
378
  buildCustomizationGraph
379
379
  };
380
- //# sourceMappingURL=chunk-XDHUDE5K.js.map
380
+ //# sourceMappingURL=chunk-XOH3SD7H.js.map