@iowarp/clio-coder 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (226) hide show
  1. package/CHANGELOG.md +407 -0
  2. package/CODE_OF_CONDUCT.md +21 -0
  3. package/CONTRIBUTING.md +224 -0
  4. package/LICENSE +202 -0
  5. package/NOTICE +9 -0
  6. package/README.md +798 -0
  7. package/SECURITY.md +72 -0
  8. package/assets/clio-coder-logo-128.webp +0 -0
  9. package/damage-control-rules.yaml +419 -0
  10. package/dist/acp-UMLFVA3F.js +92 -0
  11. package/dist/agents-Q4MYPMUW.js +91 -0
  12. package/dist/auth-O6HYIJ6J.js +521 -0
  13. package/dist/chunk-262G75JS.js +35 -0
  14. package/dist/chunk-26BZQOAD.js +1281 -0
  15. package/dist/chunk-2J63S4SF.js +508 -0
  16. package/dist/chunk-3DANZDGR.js +717 -0
  17. package/dist/chunk-4UQA7NCT.js +29 -0
  18. package/dist/chunk-527KG6XR.js +497 -0
  19. package/dist/chunk-5LDRNKX2.js +1063 -0
  20. package/dist/chunk-5N2FG33Q.js +25 -0
  21. package/dist/chunk-67MTHP2E.js +135 -0
  22. package/dist/chunk-6CWDTGUC.js +20 -0
  23. package/dist/chunk-7BHLZB3A.js +2115 -0
  24. package/dist/chunk-7RBKDI66.js +348 -0
  25. package/dist/chunk-AMFR5YA3.js +541 -0
  26. package/dist/chunk-BBUH4VAA.js +1224 -0
  27. package/dist/chunk-BYEU76JP.js +899 -0
  28. package/dist/chunk-CLJ5HLUD.js +458 -0
  29. package/dist/chunk-D5YD55AR.js +116 -0
  30. package/dist/chunk-DXQNI4PC.js +61 -0
  31. package/dist/chunk-E3NYWENM.js +1004 -0
  32. package/dist/chunk-GNGDQYDU.js +34688 -0
  33. package/dist/chunk-GOTUR54M.js +9 -0
  34. package/dist/chunk-HBU5MTAM.js +41 -0
  35. package/dist/chunk-HMYNFFY4.js +28 -0
  36. package/dist/chunk-JPOWPFCU.js +1010 -0
  37. package/dist/chunk-JWHCJDCI.js +1215 -0
  38. package/dist/chunk-KBR4MZZR.js +41 -0
  39. package/dist/chunk-KKKPTZLM.js +93 -0
  40. package/dist/chunk-ME6DNWIU.js +66 -0
  41. package/dist/chunk-NI4DEJMC.js +88 -0
  42. package/dist/chunk-O4EJEDHO.js +659 -0
  43. package/dist/chunk-PIDUD6M2.js +31 -0
  44. package/dist/chunk-PS4PFJQP.js +29459 -0
  45. package/dist/chunk-QV47YRF4.js +48 -0
  46. package/dist/chunk-RQDWMVRB.js +279 -0
  47. package/dist/chunk-TFSSEXL6.js +136 -0
  48. package/dist/chunk-TKHQ4DGZ.js +8290 -0
  49. package/dist/chunk-TPOCL34A.js +2876 -0
  50. package/dist/chunk-UGYAX5YI.js +565 -0
  51. package/dist/chunk-UHTSULZS.js +461 -0
  52. package/dist/chunk-UU3R62TT.js +128 -0
  53. package/dist/chunk-UWIJNAOB.js +3906 -0
  54. package/dist/chunk-VOO7NYPP.js +914 -0
  55. package/dist/chunk-VPAWTYLY.js +117 -0
  56. package/dist/chunk-WD6AJM35.js +1216 -0
  57. package/dist/chunk-X3BR7HWV.js +115 -0
  58. package/dist/chunk-X3NE4WVW.js +120 -0
  59. package/dist/chunk-XNISANGE.js +1395 -0
  60. package/dist/chunk-XV4ZJ6ZM.js +3177 -0
  61. package/dist/cli/index.js +236 -0
  62. package/dist/clio-KIQ5SNDS.js +53 -0
  63. package/dist/components-JVHMUBEB.js +653 -0
  64. package/dist/config-ZFCDBMDC.js +372 -0
  65. package/dist/configure-G4E3A2PG.js +27 -0
  66. package/dist/context-CDXTP2MP.js +293 -0
  67. package/dist/context-E3KIFVXI.js +185 -0
  68. package/dist/context-clear-3F4PLXOS.js +102 -0
  69. package/dist/context-index-Q7YSYTR3.js +106 -0
  70. package/dist/docs-YIETIWZI.js +280 -0
  71. package/dist/doctor-M5HJJZOL.js +61 -0
  72. package/dist/domains/agents/builtins/architect.md +33 -0
  73. package/dist/domains/agents/builtins/coder.md +31 -0
  74. package/dist/domains/agents/builtins/context-bootstrap.md +38 -0
  75. package/dist/domains/agents/builtins/debugger.md +30 -0
  76. package/dist/domains/agents/builtins/documenter.md +31 -0
  77. package/dist/domains/agents/builtins/git-master.md +30 -0
  78. package/dist/domains/agents/builtins/provenance.md +30 -0
  79. package/dist/domains/agents/builtins/researcher.md +71 -0
  80. package/dist/domains/agents/builtins/scout.md +42 -0
  81. package/dist/domains/agents/builtins/tester.md +31 -0
  82. package/dist/domains/agents/builtins/verifier.md +30 -0
  83. package/dist/domains/agents/builtins/wiki-writer.md +41 -0
  84. package/dist/eval-B3KZZESM.js +2674 -0
  85. package/dist/evidence-V67CHM35.js +233 -0
  86. package/dist/evolve-YDZSUQYA.js +518 -0
  87. package/dist/extensions-SRG7XCAH.js +207 -0
  88. package/dist/fleet-CA2CRTVG.js +760 -0
  89. package/dist/fleet-preflight-CLIAX7YR.js +21 -0
  90. package/dist/init-2OZDJE2D.js +227 -0
  91. package/dist/memory-3PIQQAKX.js +207 -0
  92. package/dist/models-DY35XI7Y.js +237 -0
  93. package/dist/paths-5OMXW7Z4.js +57 -0
  94. package/dist/preload-KZVHET2B.js +11 -0
  95. package/dist/reset-PIFYNOS3.js +216 -0
  96. package/dist/run-3VSPP24F.js +735 -0
  97. package/dist/share-D36RQCXM.js +241 -0
  98. package/dist/skills-F2MRLELY.js +445 -0
  99. package/dist/skills-eval-E2ZTW4PL.js +932 -0
  100. package/dist/targets-DZMEZAH4.js +977 -0
  101. package/dist/trace-7NYCUI2J.js +250 -0
  102. package/dist/uninstall-AD3JWHBB.js +322 -0
  103. package/dist/upgrade-WYYBKGDY.js +301 -0
  104. package/dist/usage-ULIDAGFF.js +755 -0
  105. package/dist/version-ROZ6CZKH.js +16 -0
  106. package/dist/wiki-generate-PKFIX6OB.js +377 -0
  107. package/dist/worker/entry.js +1739 -0
  108. package/docs/README.md +93 -0
  109. package/docs/acp.md +120 -0
  110. package/docs/alcf-provider.md +72 -0
  111. package/docs/architecture.md +172 -0
  112. package/docs/artifact-versions.md +54 -0
  113. package/docs/built-in-agents.md +265 -0
  114. package/docs/capacity-and-scheduling.md +97 -0
  115. package/docs/commands-and-modes.md +554 -0
  116. package/docs/config-knobs-audit.md +115 -0
  117. package/docs/configuration-and-targets.md +812 -0
  118. package/docs/context-engine.md +236 -0
  119. package/docs/dispatch-architecture-rationale.md +126 -0
  120. package/docs/documentation-coverage.md +46 -0
  121. package/docs/documentation-guide.md +166 -0
  122. package/docs/environment-variables.md +105 -0
  123. package/docs/eval-runner.md +205 -0
  124. package/docs/evals-internal.md +298 -0
  125. package/docs/evidence-and-memory.md +243 -0
  126. package/docs/evolution.md +143 -0
  127. package/docs/exit-codes-and-output.md +74 -0
  128. package/docs/extensions-and-sharing.md +306 -0
  129. package/docs/fleet-demo-runbook.md +179 -0
  130. package/docs/fleet-dispatch.md +591 -0
  131. package/docs/glossary.md +75 -0
  132. package/docs/html/agents_blueprint.html +936 -0
  133. package/docs/html/alcf_blueprint.html +324 -0
  134. package/docs/html/architecture_blueprint.html +850 -0
  135. package/docs/html/commands_blueprint.html +794 -0
  136. package/docs/html/config_knobs_audit_blueprint.html +178 -0
  137. package/docs/html/configuration_blueprint.html +1080 -0
  138. package/docs/html/context_blueprint.html +603 -0
  139. package/docs/html/documentation_blueprint.html +832 -0
  140. package/docs/html/environment_blueprint.html +404 -0
  141. package/docs/html/eval_blueprint.html +743 -0
  142. package/docs/html/evals_internal_blueprint.html +190 -0
  143. package/docs/html/evolution_blueprint.html +674 -0
  144. package/docs/html/extensions_blueprint.html +2065 -0
  145. package/docs/html/fleet_dispatch_blueprint.html +286 -0
  146. package/docs/html/index.html +919 -0
  147. package/docs/html/lifecycle_blueprint.html +723 -0
  148. package/docs/html/memory_blueprint.html +699 -0
  149. package/docs/html/middleware_blueprint.html +664 -0
  150. package/docs/html/models_blueprint.html +2366 -0
  151. package/docs/html/observability_blueprint.html +683 -0
  152. package/docs/html/provider_adapter_blueprint.html +245 -0
  153. package/docs/html/safety_blueprint.html +1386 -0
  154. package/docs/html/shared.css +571 -0
  155. package/docs/html/shared.js +143 -0
  156. package/docs/html/skills_blueprint.html +671 -0
  157. package/docs/html/soak_blueprint.html +182 -0
  158. package/docs/html/tool_usage_blueprint.html +350 -0
  159. package/docs/html/tools_blueprint.html +2249 -0
  160. package/docs/html/trace_blueprint.html +235 -0
  161. package/docs/html/tui_design_blueprint.html +314 -0
  162. package/docs/html/validation_blueprint.html +961 -0
  163. package/docs/html/worker_dispatch_blueprint.html +231 -0
  164. package/docs/installation-and-lifecycle.md +308 -0
  165. package/docs/middleware-and-components.md +148 -0
  166. package/docs/model-catalog.md +189 -0
  167. package/docs/observability.md +233 -0
  168. package/docs/proactive-memory.md +452 -0
  169. package/docs/prompt-envelope-and-tools.md +142 -0
  170. package/docs/provider-adapter-cookbook.md +148 -0
  171. package/docs/release-cut-checklist.md +138 -0
  172. package/docs/safety-model.md +357 -0
  173. package/docs/scientific-validation.md +105 -0
  174. package/docs/session-lifecycle.md +156 -0
  175. package/docs/skills-marketplace.md +46 -0
  176. package/docs/tool-usage.md +527 -0
  177. package/docs/trace-store.md +132 -0
  178. package/docs/troubleshooting.md +33 -0
  179. package/docs/tui-design.md +239 -0
  180. package/docs/worker-dispatch-mechanics.md +242 -0
  181. package/package.json +132 -0
  182. package/skills/README.md +408 -0
  183. package/skills/git/commit-crafting/SKILL.md +79 -0
  184. package/skills/git/commit-crafting/evals.md +92 -0
  185. package/skills/git/create-pr/SKILL.md +116 -0
  186. package/skills/git/create-pr/evals.md +114 -0
  187. package/skills/git/investigate-issue/SKILL.md +139 -0
  188. package/skills/git/investigate-issue/evals.md +94 -0
  189. package/skills/git/resolve-merge-conflicts/SKILL.md +96 -0
  190. package/skills/git/resolve-merge-conflicts/evals.md +58 -0
  191. package/skills/git/review-changes/SKILL.md +103 -0
  192. package/skills/git/review-changes/evals.md +85 -0
  193. package/skills/git/worktree-create/SKILL.md +92 -0
  194. package/skills/git/worktree-create/evals.md +97 -0
  195. package/skills/git/worktree-create/references/worktree-setup.md +66 -0
  196. package/skills/git/worktree-merge/SKILL.md +95 -0
  197. package/skills/git/worktree-merge/evals.md +114 -0
  198. package/skills/skill-marketplace.json +261 -0
  199. package/skills/workflow/cut-it/SKILL.md +86 -0
  200. package/skills/workflow/cut-it/evals.md +42 -0
  201. package/src/domains/agents/builtins/architect.md +33 -0
  202. package/src/domains/agents/builtins/coder.md +31 -0
  203. package/src/domains/agents/builtins/context-bootstrap.md +38 -0
  204. package/src/domains/agents/builtins/debugger.md +30 -0
  205. package/src/domains/agents/builtins/documenter.md +31 -0
  206. package/src/domains/agents/builtins/git-master.md +30 -0
  207. package/src/domains/agents/builtins/provenance.md +30 -0
  208. package/src/domains/agents/builtins/researcher.md +71 -0
  209. package/src/domains/agents/builtins/scout.md +42 -0
  210. package/src/domains/agents/builtins/tester.md +31 -0
  211. package/src/domains/agents/builtins/verifier.md +30 -0
  212. package/src/domains/agents/builtins/wiki-writer.md +41 -0
  213. package/src/domains/agents/fleets/build-review.md +34 -0
  214. package/src/domains/agents/fleets/build-test.md +35 -0
  215. package/src/domains/agents/fleets/sdlc.md +86 -0
  216. package/src/domains/prompts/fragments/identity/clio-worker.md +11 -0
  217. package/src/domains/prompts/fragments/identity/clio.md +26 -0
  218. package/src/domains/prompts/fragments/operating/contract.md +64 -0
  219. package/src/domains/prompts/fragments/safety/auto-edit.md +14 -0
  220. package/src/domains/prompts/fragments/safety/full-auto.md +14 -0
  221. package/src/domains/prompts/fragments/safety/read-only.md +13 -0
  222. package/src/domains/prompts/fragments/safety/suggest.md +13 -0
  223. package/src/domains/prompts/fragments/wiki/page.md +75 -0
  224. package/src/domains/prompts/fragments/wiki/plan.md +48 -0
  225. package/src/domains/providers/models/cloud-models/alcf.yaml +40 -0
  226. package/src/domains/providers/models/local-models/clio-local-coding-targets.yaml +993 -0
@@ -0,0 +1,57 @@
1
+ import "./chunk-PIDUD6M2.js";
2
+ import {
3
+ printError
4
+ } from "./chunk-67MTHP2E.js";
5
+ import "./chunk-5LDRNKX2.js";
6
+ import "./chunk-VPAWTYLY.js";
7
+ import {
8
+ resolveClioDirs
9
+ } from "./chunk-X3NE4WVW.js";
10
+
11
+ // src/cli/paths.ts
12
+ import { existsSync } from "node:fs";
13
+ var HELP = `clio-coder paths [--json]
14
+
15
+ Print the resolved Clio Coder directories. Read-only: nothing is created.
16
+ This is the single source of truth for scripts; parse the --json form instead
17
+ of re-implementing the resolution rules.
18
+
19
+ Resolution order per directory: CLIO_CODER_CONFIG_DIR / CLIO_CODER_DATA_DIR /
20
+ CLIO_CODER_STATE_DIR / CLIO_CODER_CACHE_DIR beat CLIO_CODER_HOME, which beats the platform
21
+ defaults (XDG base dirs on Linux).
22
+ `;
23
+ function runPathsCommand(args = []) {
24
+ if (args.includes("--help") || args.includes("-h")) {
25
+ process.stdout.write(HELP);
26
+ return 0;
27
+ }
28
+ const json = args.includes("--json");
29
+ const unknown = args.find((arg) => arg !== "--json");
30
+ if (unknown) {
31
+ printError(`unknown flag: ${unknown}`);
32
+ process.stderr.write(HELP);
33
+ return 2;
34
+ }
35
+ const dirs = resolveClioDirs();
36
+ if (json) {
37
+ process.stdout.write(
38
+ `${JSON.stringify({ config: dirs.config, data: dirs.data, state: dirs.state, cache: dirs.cache }, null, 2)}
39
+ `
40
+ );
41
+ return 0;
42
+ }
43
+ for (const [label, path] of [
44
+ ["config", dirs.config],
45
+ ["data", dirs.data],
46
+ ["state", dirs.state],
47
+ ["cache", dirs.cache]
48
+ ]) {
49
+ process.stdout.write(`${label.padEnd(8)} ${path}${existsSync(path) ? "" : " (absent)"}
50
+ `);
51
+ }
52
+ return 0;
53
+ }
54
+ export {
55
+ runPathsCommand
56
+ };
57
+ //# sourceMappingURL=paths-5OMXW7Z4.js.map
@@ -0,0 +1,11 @@
1
+ import {
2
+ FULL_PROJECT_CONTEXT_MAX_CHARS,
3
+ FULL_PROJECT_CONTEXT_MAX_LINES,
4
+ classifyProjectPreload
5
+ } from "./chunk-KBR4MZZR.js";
6
+ export {
7
+ FULL_PROJECT_CONTEXT_MAX_CHARS,
8
+ FULL_PROJECT_CONTEXT_MAX_LINES,
9
+ classifyProjectPreload
10
+ };
11
+ //# sourceMappingURL=preload-KZVHET2B.js.map
@@ -0,0 +1,216 @@
1
+ import {
2
+ removePath,
3
+ reportRemovalFailures
4
+ } from "./chunk-HBU5MTAM.js";
5
+ import {
6
+ terminalColumns,
7
+ wrapPlain
8
+ } from "./chunk-ME6DNWIU.js";
9
+ import {
10
+ initializeClioHome
11
+ } from "./chunk-TFSSEXL6.js";
12
+ import "./chunk-PIDUD6M2.js";
13
+ import {
14
+ printError,
15
+ printHeader,
16
+ printOk
17
+ } from "./chunk-67MTHP2E.js";
18
+ import "./chunk-UHTSULZS.js";
19
+ import "./chunk-5LDRNKX2.js";
20
+ import "./chunk-VPAWTYLY.js";
21
+ import {
22
+ resetXdgCache,
23
+ resolveClioDirs
24
+ } from "./chunk-X3NE4WVW.js";
25
+ import "./chunk-DXQNI4PC.js";
26
+
27
+ // src/cli/reset.ts
28
+ import { existsSync, readdirSync } from "node:fs";
29
+ import { join } from "node:path";
30
+ var HELP = `clio-coder reset [--state|--data|--cache|--auth|--config|--all] [--dry-run] [--force]
31
+
32
+ Recover or wipe Clio Coder state while keeping the clio binary installed.
33
+ Each level clears exactly the root (or file) it names and nothing else.
34
+
35
+ Levels (combinable except --all):
36
+ --state state root only (default). Holds every session transcript, so a
37
+ reset is the end of resume, /view, and the audit behind them.
38
+ --data data root only: memory, evidence, evals (durable products)
39
+ --cache cache root only
40
+ --auth credentials.yaml only
41
+ --config settings.yaml only
42
+ --all all four roots: config, data, state, and cache
43
+
44
+ Every run reads each selected root and lists what is inside it before removing
45
+ anything, so what a level covers is read off that listing rather than off this
46
+ text. --dry-run prints the same listing and changes nothing.
47
+
48
+ Safety:
49
+ --force required for destructive execution
50
+ --dry-run print what would be reset without changing anything
51
+ `;
52
+ var ROOT_NOTES = {
53
+ state: "the state root holds every session transcript and the audit trail beside it; resume and /view lose their history",
54
+ data: "the data root holds durable products (memory, evidence, evals)"
55
+ };
56
+ function parseResetArgs(argv) {
57
+ const parsed = {
58
+ state: false,
59
+ data: false,
60
+ cache: false,
61
+ auth: false,
62
+ config: false,
63
+ all: false,
64
+ force: false,
65
+ dryRun: false,
66
+ help: false
67
+ };
68
+ for (const arg of argv) {
69
+ switch (arg) {
70
+ case "--state":
71
+ parsed.state = true;
72
+ break;
73
+ case "--data":
74
+ parsed.data = true;
75
+ break;
76
+ case "--cache":
77
+ parsed.cache = true;
78
+ break;
79
+ case "--auth":
80
+ parsed.auth = true;
81
+ break;
82
+ case "--config":
83
+ parsed.config = true;
84
+ break;
85
+ case "--all":
86
+ parsed.all = true;
87
+ break;
88
+ case "--force":
89
+ case "-f":
90
+ parsed.force = true;
91
+ break;
92
+ case "--dry-run":
93
+ parsed.dryRun = true;
94
+ break;
95
+ case "--help":
96
+ case "-h":
97
+ parsed.help = true;
98
+ break;
99
+ default:
100
+ throw new Error(`unknown flag: ${arg}`);
101
+ }
102
+ }
103
+ const levels = [parsed.state, parsed.data, parsed.cache, parsed.auth, parsed.config];
104
+ if (!parsed.help && parsed.all && levels.some(Boolean)) {
105
+ throw new Error("--all cannot be combined with --state, --data, --cache, --auth, or --config");
106
+ }
107
+ if (!parsed.help && !parsed.all && !levels.some(Boolean)) {
108
+ parsed.state = true;
109
+ }
110
+ return parsed;
111
+ }
112
+ function report(label, path) {
113
+ process.stdout.write(` ${label.padEnd(12)} ${path}${existsSync(path) ? "" : " (absent)"}
114
+ `);
115
+ }
116
+ function rootContents(path) {
117
+ let entries;
118
+ try {
119
+ entries = readdirSync(path, { withFileTypes: true });
120
+ } catch {
121
+ return [];
122
+ }
123
+ return entries.map((entry) => {
124
+ if (!entry.isDirectory()) return entry.name;
125
+ let count;
126
+ try {
127
+ count = readdirSync(join(path, entry.name)).length;
128
+ } catch {
129
+ return `${entry.name}/`;
130
+ }
131
+ return `${entry.name}/ (${count})`;
132
+ }).sort((left, right) => left.localeCompare(right));
133
+ }
134
+ function writeIndented(text, indent) {
135
+ const [first = "", ...rest] = wrapPlain(text, Math.max(20, terminalColumns() - indent), indent);
136
+ process.stdout.write(`${" ".repeat(indent)}${first}
137
+ `);
138
+ for (const line of rest) process.stdout.write(`${line}
139
+ `);
140
+ }
141
+ function resetInvocation(args) {
142
+ const levels = [
143
+ ["all", args.all],
144
+ ["config", args.config],
145
+ ["auth", args.auth],
146
+ ["data", args.data],
147
+ ["state", args.state],
148
+ ["cache", args.cache]
149
+ ].filter(([, on]) => on).map(([name]) => `--${name}`);
150
+ return `clio-coder reset ${levels.join(" ")} --force`;
151
+ }
152
+ function runResetCommand(argv) {
153
+ let args;
154
+ try {
155
+ args = parseResetArgs(argv);
156
+ } catch (error) {
157
+ printError(error instanceof Error ? error.message : String(error));
158
+ process.stdout.write(HELP);
159
+ return 2;
160
+ }
161
+ if (args.help) {
162
+ process.stdout.write(HELP);
163
+ return 0;
164
+ }
165
+ if (!args.dryRun && !args.force) {
166
+ printError("`clio-coder reset` requires --force unless you are using --dry-run");
167
+ process.stdout.write(HELP);
168
+ return 2;
169
+ }
170
+ const dirs = resolveClioDirs();
171
+ const settingsPath = join(dirs.config, "settings.yaml");
172
+ const credentialsPath = join(dirs.config, "credentials.yaml");
173
+ printHeader("Clio Coder reset");
174
+ const selected = args.all ? [
175
+ { label: "config", path: dirs.config },
176
+ { label: "data", path: dirs.data },
177
+ { label: "state", path: dirs.state },
178
+ { label: "cache", path: dirs.cache }
179
+ ] : [
180
+ ...args.config ? [{ label: "settings", path: settingsPath }] : [],
181
+ ...args.auth ? [{ label: "credentials", path: credentialsPath }] : [],
182
+ ...args.data ? [{ label: "data", path: dirs.data }] : [],
183
+ ...args.state ? [{ label: "state", path: dirs.state }] : [],
184
+ ...args.cache ? [{ label: "cache", path: dirs.cache }] : []
185
+ ];
186
+ for (const entry of selected) {
187
+ report(entry.label, entry.path);
188
+ const contents = rootContents(entry.path);
189
+ if (contents.length > 0) writeIndented(contents.join(", "), 4);
190
+ const note = ROOT_NOTES[entry.label];
191
+ if (note) writeIndented(`note: ${note}`, 2);
192
+ }
193
+ const failures = [];
194
+ for (const entry of selected) {
195
+ const failure = removePath(entry.label, entry.path, args.dryRun);
196
+ if (failure) failures.push(failure);
197
+ }
198
+ resetXdgCache();
199
+ if (!args.dryRun) initializeClioHome();
200
+ if (failures.length > 0) {
201
+ printError("reset did not remove everything");
202
+ reportRemovalFailures(resetInvocation(args), failures);
203
+ return 1;
204
+ }
205
+ if (args.dryRun) {
206
+ printOk(args.all ? "reset --all preview complete" : "reset preview complete");
207
+ } else {
208
+ printOk(args.all ? "reset config, data, state, and cache" : "reset complete");
209
+ }
210
+ return 0;
211
+ }
212
+ export {
213
+ rootContents,
214
+ runResetCommand
215
+ };
216
+ //# sourceMappingURL=reset-PIFYNOS3.js.map