carrick 0.3.81 → 0.3.83

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 (79) hide show
  1. package/README.md +46 -19
  2. package/bin/carrick.mjs +45 -2
  3. package/dist/contract.d.ts +17 -0
  4. package/dist/contract.js.map +1 -1
  5. package/dist/hook/apply-patch.d.ts +13 -0
  6. package/dist/hook/apply-patch.js +100 -0
  7. package/dist/hook/apply-patch.js.map +1 -0
  8. package/dist/hook/post-edit.d.ts +30 -1
  9. package/dist/hook/post-edit.js +95 -24
  10. package/dist/hook/post-edit.js.map +1 -1
  11. package/dist/hook/reuse.d.ts +97 -0
  12. package/dist/hook/reuse.js +245 -0
  13. package/dist/hook/reuse.js.map +1 -0
  14. package/dist/hook/stop.d.ts +3 -0
  15. package/dist/hook/stop.js +76 -0
  16. package/dist/hook/stop.js.map +1 -0
  17. package/dist/hook/user-prompt.d.ts +9 -0
  18. package/dist/hook/user-prompt.js +79 -0
  19. package/dist/hook/user-prompt.js.map +1 -0
  20. package/dist/init/codex.d.ts +51 -0
  21. package/dist/init/codex.js +167 -0
  22. package/dist/init/codex.js.map +1 -0
  23. package/dist/init/connect.d.ts +13 -0
  24. package/dist/init/connect.js +21 -15
  25. package/dist/init/connect.js.map +1 -1
  26. package/dist/init/doctor.d.ts +36 -0
  27. package/dist/init/doctor.js +97 -2
  28. package/dist/init/doctor.js.map +1 -1
  29. package/dist/init/files.d.ts +16 -0
  30. package/dist/init/files.js +35 -0
  31. package/dist/init/files.js.map +1 -0
  32. package/dist/init/outdated.d.ts +54 -0
  33. package/dist/init/outdated.js +175 -0
  34. package/dist/init/outdated.js.map +1 -0
  35. package/dist/init/output.d.ts +35 -3
  36. package/dist/init/output.js +115 -23
  37. package/dist/init/output.js.map +1 -1
  38. package/dist/init/projects.d.ts +27 -13
  39. package/dist/init/projects.js +48 -50
  40. package/dist/init/projects.js.map +1 -1
  41. package/dist/init/remove.d.ts +0 -2
  42. package/dist/init/remove.js +91 -23
  43. package/dist/init/remove.js.map +1 -1
  44. package/dist/init/repos.d.ts +34 -0
  45. package/dist/init/repos.js +77 -0
  46. package/dist/init/repos.js.map +1 -1
  47. package/dist/init/run.d.ts +73 -6
  48. package/dist/init/run.js +382 -101
  49. package/dist/init/run.js.map +1 -1
  50. package/dist/init/settings.d.ts +20 -0
  51. package/dist/init/settings.js +42 -4
  52. package/dist/init/settings.js.map +1 -1
  53. package/dist/init/task-skills.d.ts +97 -0
  54. package/dist/init/task-skills.js +267 -0
  55. package/dist/init/task-skills.js.map +1 -0
  56. package/dist/init/workspace-file.d.ts +73 -0
  57. package/dist/init/workspace-file.js +173 -0
  58. package/dist/init/workspace-file.js.map +1 -0
  59. package/dist/scan.d.ts +13 -5
  60. package/dist/scan.js +21 -10
  61. package/dist/scan.js.map +1 -1
  62. package/dist/templates.d.ts +9 -0
  63. package/dist/templates.js +9 -1
  64. package/dist/templates.js.map +1 -1
  65. package/package.json +6 -6
  66. package/plugin/hooks/hooks.json +11 -0
  67. package/sidecar/dist/src/capture/check-classify.d.ts +10 -1
  68. package/sidecar/dist/src/capture/check-classify.js +66 -8
  69. package/sidecar/dist/src/capture/check-deep.d.ts +16 -4
  70. package/sidecar/dist/src/capture/check-deep.js +21 -17
  71. package/sidecar/dist/src/capture/check-fields.d.ts +83 -0
  72. package/sidecar/dist/src/capture/check-fields.js +259 -0
  73. package/sidecar/dist/src/capture/check-probe.d.ts +21 -1
  74. package/sidecar/dist/src/capture/check-probe.js +39 -0
  75. package/sidecar/dist/src/capture/check.js +9 -2
  76. package/templates/skills/carrick-census.md +89 -0
  77. package/templates/skills/carrick-drift.md +107 -0
  78. package/templates/skills/carrick-impact.md +108 -0
  79. package/templates/skills/carrick-reuse.md +106 -0
@@ -1,26 +1,35 @@
1
1
  // Undoing `carrick init`, on this machine.
2
2
  //
3
3
  // An install that can state its own undo is the courtesy that makes people
4
- // willing to try it (carrick#1034), and init now writes in seven places: the
5
- // hook entries in a workspace's `.claude` settings, an MCP server entry in
6
- // each agent client's own configuration, the `.carrick` directory, the
7
- // install id in `~/.carrick`, and the credential in the user's configuration
8
- // directory.
4
+ // willing to try it (carrick#1034), and init now writes in ten places: the
5
+ // hook entries in a workspace's `.claude` settings, the Codex ones in
6
+ // `.codex/hooks.json`, the task skills under `.claude/skills` and
7
+ // `.agents/skills`, the repo selection in `carrick-workspace.json`, an MCP
8
+ // server entry in each agent client's own configuration, the `.carrick`
9
+ // directory, the install id in `~/.carrick`, and the credential in the user's
10
+ // configuration directory.
9
11
  //
10
12
  // Every step here is the inverse of a writer in this folder, and each pair
11
13
  // lives in one file so the two cannot drift: `mergeCarrickHooks` /
12
- // `removeCarrickHooks` in `settings.ts`, `mergeServerEntry` /
14
+ // `removeCarrickHooks` in `settings.ts`, `writeTaskSkills` /
15
+ // `removeTaskSkills` in `task-skills.ts`, `mergeServerEntry` /
13
16
  // `removeServerEntry` and `connectMcpClients` / `disconnectMcpClients` in
14
17
  // `mcp.ts`, `ensureInstallId` / `removeInstallId` in `install-id.ts`,
15
18
  // `writeProposal` / the `.carrick` removal below, `saveCredential` /
16
19
  // `removeCredential` in `../auth/credentials.ts`.
17
20
  //
18
- // What it does NOT do is edit a tracked file. The scaffold pull request put
19
- // files in the repository and a repository is version controlled: those are
20
- // listed with the `git rm` line that removes them, and the sections that were
21
- // merged into files someone else owns are named for a human to delete. A
22
- // command that rewrote a committed workflow or an AGENTS.md would be
23
- // destroying work this command cannot read.
21
+ // What it does NOT do is edit a file whose content it cannot reproduce. The
22
+ // scaffold pull request put files in the repository and a repository is
23
+ // version controlled: those are listed with the `git rm` line that removes
24
+ // them, and the sections that were merged into files someone else owns are
25
+ // named for a human to delete. A command that rewrote a committed workflow or
26
+ // an AGENTS.md would be destroying work this command cannot read.
27
+ //
28
+ // The task skills are the one exception, and they earn it by being checkable:
29
+ // each one carries a digest of the body this package wrote, so a file that
30
+ // still matches its stamp is byte for byte what `carrick init` put there and
31
+ // nothing of anyone's is in it. One whose stamp no longer matches, and one
32
+ // carrying no stamp, are left where they are and named.
24
33
  //
25
34
  // It runs no scan and never asks for the scanner binary: everything it touches
26
35
  // is a file this package wrote.
@@ -28,9 +37,14 @@ import fs from "node:fs";
28
37
  import path from "node:path";
29
38
  import { removeCredential, credentialPath } from "../auth/credentials.js";
30
39
  import { installIdPath, removeInstallId } from "./install-id.js";
40
+ import { removeSessions, sessionsDir } from "../hook/reuse.js";
31
41
  import { disconnectMcpClients } from "./mcp.js";
32
42
  import { repoRoots } from "./repos.js";
33
- import { removeCarrickHooks } from "./settings.js";
43
+ import { removeCarrickHooks, SETTINGS_FILES } from "./settings.js";
44
+ import { CODEX_HOOKS_FILE, uninstallCodexHooks } from "./codex.js";
45
+ import { removeTaskSkills, SKILL_ROOTS } from "./task-skills.js";
46
+ import { removeNotice } from "./outdated.js";
47
+ import { removeSelection, WORKSPACE_FILE } from "./workspace-file.js";
34
48
  import { createOutput, DOCS } from "./output.js";
35
49
  export function parseArgs(argv, cwd = process.cwd()) {
36
50
  const options = { workspace: cwd, keepLogin: false };
@@ -65,12 +79,15 @@ function help() {
65
79
  "carrick remove [DIRECTORY] [--keep-login]",
66
80
  "",
67
81
  "Undo what carrick init wrote on this machine: the Carrick hook entries in",
68
- "this folder's .claude settings, the carrick MCP server in each agent",
69
- "client's configuration, the .carrick directory, this machine's install id,",
70
- "and the saved credential.",
82
+ "this folder's .claude settings and in .codex/hooks.json, the carrick MCP",
83
+ "server in each agent client's configuration, the .carrick directory, this",
84
+ "machine's install id, and the saved credential.",
71
85
  "Other hooks, other MCP servers and the settings files themselves are left",
72
- "as they are. Files the scaffold added to the repository are listed with the",
73
- "git rm line that removes them; this command never edits a tracked file.",
86
+ "as they are, and so is anything in carrick-workspace.json that init did",
87
+ "not put there. The task skills it wrote are removed where they still match",
88
+ "the stamp it wrote them with, and named where they do not. Files the",
89
+ "scaffold added to the repository are listed with the git rm line that",
90
+ "removes them.",
74
91
  "",
75
92
  " -w, --workspace DIR The folder init was run in (default: this one)",
76
93
  " --keep-login Leave the saved credential; remove everything else",
@@ -78,11 +95,6 @@ function help() {
78
95
  `What each of those things is, and what it does: ${DOCS}`,
79
96
  ].join("\n");
80
97
  }
81
- /** The settings files a workspace can hold our hook entries in. */
82
- export const SETTINGS_FILES = [
83
- path.join(".claude", "settings.json"),
84
- path.join(".claude", "settings.local.json"),
85
- ];
86
98
  /**
87
99
  * The files the scaffold pull request adds to a repository.
88
100
  *
@@ -203,6 +215,21 @@ export async function remove(argv, out = createOutput()) {
203
215
  out.refuse(`Could not read ${relative}: ${error.message}. Remove the carrick hook entries there by hand.`);
204
216
  }
205
217
  }
218
+ // Codex's half of the same pair. Unlike a settings file, this one exists
219
+ // because init wrote it, so a file left holding no hooks at all goes with the
220
+ // entries (carrick#1335).
221
+ try {
222
+ const codex = uninstallCodexHooks(workspace);
223
+ if (codex !== null) {
224
+ out.done(codex === "file removed"
225
+ ? `${CODEX_HOOKS_FILE} removed, with the Carrick hook entries that were the whole of it`
226
+ : `Carrick hook entries removed from ${CODEX_HOOKS_FILE}`);
227
+ removed += 1;
228
+ }
229
+ }
230
+ catch (error) {
231
+ out.refuse(`Could not read ${CODEX_HOOKS_FILE}: ${error.message}. Remove the carrick hook entries there by hand.`);
232
+ }
206
233
  const { done, warn } = mcpRemovalLines(disconnectMcpClients());
207
234
  for (const line of done) {
208
235
  out.done(line);
@@ -210,6 +237,19 @@ export async function remove(argv, out = createOutput()) {
210
237
  }
211
238
  for (const line of warn)
212
239
  out.warn(line);
240
+ // Before the install id, so the directory both live in can go with it: what
241
+ // the Stop hook speaks from is a scratch record of conversations that have
242
+ // ended, and it is no more use than the hook entry that fed it
243
+ // (carrick#1330).
244
+ const sessions = removeSessions();
245
+ if (sessions > 0) {
246
+ out.done(`${sessions} session record(s) removed from ${sessionsDir()}`);
247
+ removed += 1;
248
+ }
249
+ // Same directory, same reason, and the same ordering it imposes: the day the
250
+ // refresh notice was last said means nothing once there is no install to
251
+ // refresh (carrick#1333).
252
+ removeNotice();
213
253
  // The install id goes with the entries that carried it: what the header
214
254
  // named is this machine's setup, and the setup is what just came off it. A
215
255
  // later `carrick init` mints a new one, which is the reset the file exists
@@ -223,6 +263,34 @@ export async function remove(argv, out = createOutput()) {
223
263
  catch (error) {
224
264
  out.refuse(`${error.message}. Delete ${installIdPath()} by hand.`);
225
265
  }
266
+ // Only the stamped, unchanged copies. Anything a user has made their own is
267
+ // named rather than deleted, which is the same rule the install follows.
268
+ const skills = removeTaskSkills(workspace);
269
+ if (skills.deleted.length > 0) {
270
+ out.done(`${skills.deleted.length} task skill file(s) removed from ${SKILL_ROOTS.join(" and ")}`);
271
+ removed += 1;
272
+ }
273
+ for (const row of skills.kept) {
274
+ out.warn(row.state === "edited"
275
+ ? `${row.path} has been edited since Carrick wrote it, so it was left in place. Delete it by hand to finish removing it.`
276
+ : `${row.path} was not written by Carrick, so it was left in place.`);
277
+ }
278
+ // The repo selection, which is the one thing init writes into a file a user
279
+ // can also write to (carrick#1344). Only the names init put in the exclude
280
+ // list come out; a repo somebody excluded by hand stays excluded, and the
281
+ // file stays unless init is the whole reason it is there.
282
+ try {
283
+ const selection = removeSelection(workspace);
284
+ if (selection !== null) {
285
+ out.done(selection.deleted
286
+ ? `${selection.file} removed, with the repo selection init wrote in it`
287
+ : `${selection.removed.join(", ")} taken out of the exclude list in ${selection.file}; the rest of the file is yours and was left`);
288
+ removed += 1;
289
+ }
290
+ }
291
+ catch (error) {
292
+ out.refuse(`Could not read ${WORKSPACE_FILE}: ${error.message}. Take the carrick exclusions out by hand.`);
293
+ }
226
294
  const carrick = path.join(workspace, ".carrick");
227
295
  if (fs.existsSync(carrick)) {
228
296
  try {
@@ -1 +1 @@
1
- {"version":3,"file":"remove.js","sourceRoot":"","sources":["../../src/init/remove.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,EAAE;AACF,2EAA2E;AAC3E,6EAA6E;AAC7E,2EAA2E;AAC3E,uEAAuE;AACvE,6EAA6E;AAC7E,aAAa;A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;QACjF,KAAK,MAAM,OAAO,IAAI,SAAS,CAAC,QAAQ;YAAE,GAAG,CAAC,GAAG,CAAC,eAAe,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED,GAAG,CAAC,IAAI,CAAC,uDAAuD,EAAE,CAAC,0BAA0B,CAAC,CAAC,CAAC;IAChG,OAAO,CAAC,CAAC;AACX,CAAC"}
@@ -118,6 +118,23 @@ export type DerivedWorkspace = {
118
118
  };
119
119
  /** Rust owns service selection, tsconfig precedence and configuration validation. */
120
120
  export declare function deriveWorkspace(workspace: string): DerivedWorkspace;
121
+ /**
122
+ * The same derivation with the repos this install does not cover taken out.
123
+ *
124
+ * A folder routinely holds a repo that must not be indexed — private data, a
125
+ * throwaway fixture — and the proposal is what an agent turns into
126
+ * `carrick.json`, so a repo left in it is a repo that gets scanned
127
+ * (carrick#1338). The filtering is done on the scanner's own JSON rather than
128
+ * on the parsed shape, so a field this client's schema does not know survives
129
+ * it, and a selection that keeps everything returns the scanner's bytes
130
+ * untouched.
131
+ *
132
+ * The dropped repos are named in `repos_excluded`, which is the field the
133
+ * workspace file's own `exclude` list lands in: the agent reading this
134
+ * document then sees which repos were left out rather than a shorter list with
135
+ * nothing to explain it.
136
+ */
137
+ export declare function selectedProposal(derived: DerivedWorkspace, keep: string[]): DerivedWorkspace;
121
138
  /** The seam document, relative to the workspace root (carrick-cloud#799). */
122
139
  export declare const PROPOSAL_FILE: string;
123
140
  /**
@@ -159,6 +176,23 @@ export type RepoIdentity = {
159
176
  remote: string | null;
160
177
  problem: string | null;
161
178
  };
179
+ /**
180
+ * The repos `--repo` names, out of the repos this folder holds.
181
+ *
182
+ * `--repo` is the answer to "which of these does this install cover" without a
183
+ * terminal, and it is also the only way to name a repository whose remote
184
+ * could not (carrick#991): a value that matches nothing on disk names the one
185
+ * repo here that has no GitHub identity, because that is the repo the flag was
186
+ * introduced for and there is no other reading of it. Two unmatched values, or
187
+ * one with no unnamed repo to attach it to, is a typo and is refused rather
188
+ * than silently covering a different repo.
189
+ */
190
+ export declare function selectRepos(candidates: RepoIdentity[], requested: string[]): {
191
+ repos: RepoIdentity[];
192
+ taken: RepoIdentity | null;
193
+ } | {
194
+ problem: string;
195
+ };
162
196
  /** The two machine reads, injected so tests never spawn anything. */
163
197
  export type IdentityProbe = {
164
198
  /** `git remote get-url origin`, or null when there is no origin. */
@@ -31,6 +31,37 @@ export function deriveWorkspace(workspace) {
31
31
  throw new Error("The scanner returned an unsupported workspace proposal. Install matching Carrick CLI and scanner versions.");
32
32
  return { plan: parsed.data, document: result.stdout };
33
33
  }
34
+ /**
35
+ * The same derivation with the repos this install does not cover taken out.
36
+ *
37
+ * A folder routinely holds a repo that must not be indexed — private data, a
38
+ * throwaway fixture — and the proposal is what an agent turns into
39
+ * `carrick.json`, so a repo left in it is a repo that gets scanned
40
+ * (carrick#1338). The filtering is done on the scanner's own JSON rather than
41
+ * on the parsed shape, so a field this client's schema does not know survives
42
+ * it, and a selection that keeps everything returns the scanner's bytes
43
+ * untouched.
44
+ *
45
+ * The dropped repos are named in `repos_excluded`, which is the field the
46
+ * workspace file's own `exclude` list lands in: the agent reading this
47
+ * document then sees which repos were left out rather than a shorter list with
48
+ * nothing to explain it.
49
+ */
50
+ export function selectedProposal(derived, keep) {
51
+ const kept = new Set(keep);
52
+ const dropped = derived.plan.repos.filter((repo) => !kept.has(repo.path));
53
+ if (dropped.length === 0)
54
+ return derived;
55
+ const document = JSON.parse(derived.document);
56
+ const repos = Array.isArray(document["repos"]) ? document["repos"] : [];
57
+ document["repos"] = repos.filter((repo) => kept.has(String(repo["path"])));
58
+ const excluded = Array.isArray(document["repos_excluded"]) ? document["repos_excluded"] : [];
59
+ document["repos_excluded"] = [...excluded, ...dropped.map((repo) => path.basename(repo.path))];
60
+ return {
61
+ plan: { ...derived.plan, repos: derived.plan.repos.filter((repo) => kept.has(repo.path)), repos_excluded: document["repos_excluded"] },
62
+ document: JSON.stringify(document),
63
+ };
64
+ }
34
65
  /** The seam document, relative to the workspace root (carrick-cloud#799). */
35
66
  export const PROPOSAL_FILE = path.join(".carrick", "proposal.json");
36
67
  /**
@@ -90,6 +121,52 @@ export function repoRoots(workspace) {
90
121
  }
91
122
  return roots;
92
123
  }
124
+ /**
125
+ * The repos `--repo` names, out of the repos this folder holds.
126
+ *
127
+ * `--repo` is the answer to "which of these does this install cover" without a
128
+ * terminal, and it is also the only way to name a repository whose remote
129
+ * could not (carrick#991): a value that matches nothing on disk names the one
130
+ * repo here that has no GitHub identity, because that is the repo the flag was
131
+ * introduced for and there is no other reading of it. Two unmatched values, or
132
+ * one with no unnamed repo to attach it to, is a typo and is refused rather
133
+ * than silently covering a different repo.
134
+ */
135
+ export function selectRepos(candidates, requested) {
136
+ const wanted = [...new Set(requested.map((name) => name.toLowerCase()))];
137
+ const matched = new Map();
138
+ const unmatched = [];
139
+ for (const name of wanted) {
140
+ const found = candidates.find((repo) => repo.name !== null && repo.name.toLowerCase() === name);
141
+ if (found)
142
+ matched.set(found.path, found);
143
+ else
144
+ unmatched.push(name);
145
+ }
146
+ const unnamed = candidates.filter((repo) => repo.name === null);
147
+ let taken = null;
148
+ if (unmatched.length > 0) {
149
+ const here = candidates
150
+ .map((repo) => repo.name ?? path.basename(repo.path))
151
+ .join(", ");
152
+ if (unmatched.length > 1) {
153
+ return { problem: `--repo ${unmatched.join(" and --repo ")} name no repo in this folder. The repos here are: ${here}.` };
154
+ }
155
+ if (unnamed.length !== 1) {
156
+ return {
157
+ problem: unnamed.length === 0
158
+ ? `--repo ${unmatched[0]} names no repo in this folder. The repos here are: ${here}.`
159
+ : `--repo ${unmatched[0]} names no repo in this folder, and ${unnamed.length} repos here have no GitHub identity, so it cannot name one of those either: ${unnamed.map((repo) => repo.path).join(", ")}.`,
160
+ };
161
+ }
162
+ const original = requested.find((name) => name.toLowerCase() === unmatched[0]);
163
+ taken = { ...unnamed[0], name: original, problem: null };
164
+ matched.set(taken.path, taken);
165
+ }
166
+ // Workspace order, whatever order the flags came in: everything downstream
167
+ // reads this list, and the scanner's order is the one the proposal is in.
168
+ return { repos: candidates.map((repo) => matched.get(repo.path)).filter((repo) => repo !== undefined), taken };
169
+ }
93
170
  function gitOrigin(repo) {
94
171
  const result = spawnSync("git", ["-C", repo, "remote", "get-url", "origin"], { encoding: "utf8", timeout: 5000 });
95
172
  return result.status === 0 ? result.stdout.trim() : null;
@@ -1 +1 @@
1
- {"version":3,"file":"repos.js","sourceRoot":"","sources":["../../src/init/repos.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAE9D,MAAM,OAAO,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;AAClJ,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC;IACxB,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC3F,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,cAAc,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACnG,eAAe,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AO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,MAAM,2BAA2B,EAAE,CAAC;IACtG,CAAC;IACD,IAAI,IAAI,CAAC,WAAW,EAAE,KAAK,YAAY;QAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAC5F,IAAI,CAAC,GAAG,EAAE,CAAC;QACT,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,MAAM,UAAU,IAAI,kBAAkB,EAAE,CAAC;IAC3G,CAAC;IACD,MAAM,QAAQ,GAAG,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IACzC,IAAI,QAAQ,KAAK,IAAI,EAAE,CAAC;QACtB,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,MAAM,oBAAoB,IAAI,gCAAgC,EAAE,CAAC;IACnI,CAAC;IACD,IAAI,QAAQ,CAAC,WAAW,EAAE,KAAK,YAAY;QAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAChG,OAAO;QACL,IAAI,EAAE,IAAI;QACV,IAAI,EAAE,IAAI;QACV,MAAM;QACN,OAAO,EAAE,cAAc,MAAM,oBAAoB,IAAI,6BAA6B,QAAQ,mBAAmB;KAC9G,CAAC;AACJ,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import { type ResolvedRepos } from "../auth/read.ts";
2
- import { type WorkspaceProposal } from "./repos.ts";
2
+ import { type RepoIdentity, type WorkspaceProposal } from "./repos.ts";
3
3
  import { type McpOutcome } from "./mcp.ts";
4
+ import { type Choice, type InitOutput } from "./output.ts";
4
5
  /**
5
6
  * The one sentence the run ends on.
6
7
  *
@@ -19,12 +20,21 @@ import { type McpOutcome } from "./mcp.ts";
19
20
  export declare const SCAFFOLD_SENTENCE = "Run the carrick scaffold tool for this repo, passing its owner/repo as `repo`, and follow what it returns.";
20
21
  export type InitOptions = {
21
22
  workspace: string;
22
- /** Require every proposed GitHub repo to belong to this project. */
23
+ /** Put the selected repos in this project, moving them where `allowMove` says. */
23
24
  project: string | null;
24
- /** The `owner/repo` to use when the origin remote names none (carrick#991). */
25
- repo: string | null;
26
- /** Answer yes to the repo list rather than asking. */
25
+ /**
26
+ * The repos this install covers, `owner/repo` each, repeatable and
27
+ * comma-separable. Empty means the terminal picks them (carrick#1338).
28
+ *
29
+ * It is also how a repository whose remote names none is named
30
+ * (carrick#991): a value that matches nothing on disk attaches to the one
31
+ * repo here that has no identity.
32
+ */
33
+ repos: string[];
34
+ /** Answer yes to the proposal rather than asking. Never grants a move. */
27
35
  assumeYes: boolean;
36
+ /** Take the selected repos out of whatever project they are in now. */
37
+ allowMove: boolean;
28
38
  };
29
39
  export declare function parseArgs(argv: string[], cwd?: string): InitOptions | string;
30
40
  /**
@@ -37,7 +47,7 @@ export declare function parseArgs(argv: string[], cwd?: string): InitOptions | s
37
47
  * Capped and counted like the identity lines, because a project can hold two
38
48
  * hundred.
39
49
  */
40
- export declare function absentRepos(identity: ResolvedRepos, names: string[], project: string | null): string[];
50
+ export declare function absentRepos(identity: ResolvedRepos, names: string[], project: string | null, label?: (slug: string) => string): string[];
41
51
  /** The repos this run connected, as one line however many there are. */
42
52
  export declare function connectedLine(names: string[]): string;
43
53
  /**
@@ -78,6 +88,63 @@ export declare function mcpClientLines(mcp: McpOutcome[]): string[];
78
88
  * that put it there, which are the owner's to run (`mcp.ts`).
79
89
  */
80
90
  export declare function mcpUnstampedLines(mcp: McpOutcome[]): string[];
91
+ /** The line a run that was stopped at a question ends on (carrick#1338). */
92
+ export declare const CANCELLED = "Cancelled. Nothing was written, here or in Carrick.";
93
+ /**
94
+ * The line a declined proposal ends on.
95
+ *
96
+ * A "no" used to be silent, which beside a cancel that says so reads as two
97
+ * different things having happened. Both leave the machine and the server as
98
+ * they were, and both say it.
99
+ */
100
+ export declare const NOTHING_WRITTEN = "Nothing written, here or in Carrick.";
101
+ /** A repo as the picker lists it: what it is called, and what is in it. */
102
+ export declare function repoChoices(plan: WorkspaceProposal, candidates: RepoIdentity[]): Choice[];
103
+ /**
104
+ * Which repos in this folder this install covers, settled before anything is
105
+ * read from Carrick and long before anything is written (carrick#1338).
106
+ *
107
+ * A folder routinely holds a repo that must not be scanned, and the only
108
+ * answer this command used to take was one yes covering every repo in it. The
109
+ * terminal picks; without one, `--repo` names them; with neither, there is no
110
+ * safe default and the run stops here, having written nothing.
111
+ */
112
+ export declare function chooseRepos(plan: WorkspaceProposal, candidates: RepoIdentity[], options: {
113
+ repos: string[];
114
+ assumeYes: boolean;
115
+ interactive: boolean;
116
+ }, out: InitOutput): Promise<RepoIdentity[]>;
117
+ /**
118
+ * The excluded repos a `--repo` flag is asking for, by identity.
119
+ *
120
+ * An excluded repo is invisible to everything downstream — the scanner never
121
+ * derives it, so `selectRepos` sees a value matching nothing on disk and, by
122
+ * carrick#991's rule, attaches it to the one repo here with no GitHub identity
123
+ * of its own. That is a flag quietly covering a different repository, so the
124
+ * question is asked here instead, before any of it.
125
+ *
126
+ * Asked of the directory, not of the spelling: `--repo owner/web` and a
127
+ * directory called `web` are not the same claim, and the repo's own origin
128
+ * remote is what says whether they name one repository. A directory that is
129
+ * gone, or that names no GitHub repo, answers nothing and is not reported —
130
+ * there is no identity to have asked for.
131
+ */
132
+ export declare function namedButExcluded(workspace: string, excluded: string[], requested: string[], identify?: (repo: string) => RepoIdentity): string[];
133
+ /** The repos this install covers, one line each, for the proposal. */
134
+ export declare function coverageLines(plan: WorkspaceProposal, selected: RepoIdentity[]): string[];
135
+ /**
136
+ * What the server would be asked to change, said before it is asked.
137
+ *
138
+ * A move is named with the project it comes OUT of, display name and slug
139
+ * both, because that is the project whose agents stop seeing this repo and
140
+ * the one a reader has to find again to undo it (carrick#1338).
141
+ */
142
+ export declare function moveLines(moving: string[], from: (name: string) => string, target: string, label: (slug: string) => string): string[];
81
143
  export declare function init(argv: string[]): Promise<number>;
144
+ /**
145
+ * `init` with the terminal stated rather than sniffed, so a test can be the
146
+ * terminal: the cancel path and the picker have no other way in.
147
+ */
148
+ export declare function initWith(argv: string[], out: InitOutput, interactive: boolean): Promise<number>;
82
149
  /** `carrick templates <name>`, so a workflow is one command. */
83
150
  export declare function templates(argv: string[]): number;