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.
- package/README.md +46 -19
- package/bin/carrick.mjs +45 -2
- package/dist/contract.d.ts +17 -0
- package/dist/contract.js.map +1 -1
- package/dist/hook/apply-patch.d.ts +13 -0
- package/dist/hook/apply-patch.js +100 -0
- package/dist/hook/apply-patch.js.map +1 -0
- package/dist/hook/post-edit.d.ts +30 -1
- package/dist/hook/post-edit.js +95 -24
- package/dist/hook/post-edit.js.map +1 -1
- package/dist/hook/reuse.d.ts +97 -0
- package/dist/hook/reuse.js +245 -0
- package/dist/hook/reuse.js.map +1 -0
- package/dist/hook/stop.d.ts +3 -0
- package/dist/hook/stop.js +76 -0
- package/dist/hook/stop.js.map +1 -0
- package/dist/hook/user-prompt.d.ts +9 -0
- package/dist/hook/user-prompt.js +79 -0
- package/dist/hook/user-prompt.js.map +1 -0
- package/dist/init/codex.d.ts +51 -0
- package/dist/init/codex.js +167 -0
- package/dist/init/codex.js.map +1 -0
- package/dist/init/connect.d.ts +13 -0
- package/dist/init/connect.js +21 -15
- package/dist/init/connect.js.map +1 -1
- package/dist/init/doctor.d.ts +36 -0
- package/dist/init/doctor.js +97 -2
- package/dist/init/doctor.js.map +1 -1
- package/dist/init/files.d.ts +16 -0
- package/dist/init/files.js +35 -0
- package/dist/init/files.js.map +1 -0
- package/dist/init/outdated.d.ts +54 -0
- package/dist/init/outdated.js +175 -0
- package/dist/init/outdated.js.map +1 -0
- package/dist/init/output.d.ts +35 -3
- package/dist/init/output.js +115 -23
- package/dist/init/output.js.map +1 -1
- package/dist/init/projects.d.ts +27 -13
- package/dist/init/projects.js +48 -50
- package/dist/init/projects.js.map +1 -1
- package/dist/init/remove.d.ts +0 -2
- package/dist/init/remove.js +91 -23
- package/dist/init/remove.js.map +1 -1
- package/dist/init/repos.d.ts +34 -0
- package/dist/init/repos.js +77 -0
- package/dist/init/repos.js.map +1 -1
- package/dist/init/run.d.ts +73 -6
- package/dist/init/run.js +382 -101
- package/dist/init/run.js.map +1 -1
- package/dist/init/settings.d.ts +20 -0
- package/dist/init/settings.js +42 -4
- package/dist/init/settings.js.map +1 -1
- package/dist/init/task-skills.d.ts +97 -0
- package/dist/init/task-skills.js +267 -0
- package/dist/init/task-skills.js.map +1 -0
- package/dist/init/workspace-file.d.ts +73 -0
- package/dist/init/workspace-file.js +173 -0
- package/dist/init/workspace-file.js.map +1 -0
- package/dist/scan.d.ts +13 -5
- package/dist/scan.js +21 -10
- package/dist/scan.js.map +1 -1
- package/dist/templates.d.ts +9 -0
- package/dist/templates.js +9 -1
- package/dist/templates.js.map +1 -1
- package/package.json +6 -6
- package/plugin/hooks/hooks.json +11 -0
- package/sidecar/dist/src/capture/check-classify.d.ts +10 -1
- package/sidecar/dist/src/capture/check-classify.js +66 -8
- package/sidecar/dist/src/capture/check-deep.d.ts +16 -4
- package/sidecar/dist/src/capture/check-deep.js +21 -17
- package/sidecar/dist/src/capture/check-fields.d.ts +83 -0
- package/sidecar/dist/src/capture/check-fields.js +259 -0
- package/sidecar/dist/src/capture/check-probe.d.ts +21 -1
- package/sidecar/dist/src/capture/check-probe.js +39 -0
- package/sidecar/dist/src/capture/check.js +9 -2
- package/templates/skills/carrick-census.md +89 -0
- package/templates/skills/carrick-drift.md +107 -0
- package/templates/skills/carrick-impact.md +108 -0
- package/templates/skills/carrick-reuse.md +106 -0
package/dist/init/output.js
CHANGED
|
@@ -41,8 +41,78 @@ export const DONE = "◇";
|
|
|
41
41
|
export const WARN = "▲";
|
|
42
42
|
export const REFUSE = "■";
|
|
43
43
|
export const DOCS = "https://docs.carrick.tools/quickstart";
|
|
44
|
+
/**
|
|
45
|
+
* A question the user ended rather than answered: Ctrl-C, Escape, or an input
|
|
46
|
+
* that closed under them.
|
|
47
|
+
*
|
|
48
|
+
* It is an error and not a value because every caller would otherwise have to
|
|
49
|
+
* remember that one of its answers means "stop", and one that forgot carried
|
|
50
|
+
* on with the wrong one: a cancelled project question was read as "leave it to
|
|
51
|
+
* the browser" and the run continued into the steps that question governed
|
|
52
|
+
* (carrick#1338). Thrown, it ends the run wherever it is asked, and `init`
|
|
53
|
+
* asks everything before it writes anything.
|
|
54
|
+
*/
|
|
55
|
+
export class PromptCancelled extends Error {
|
|
56
|
+
constructor() {
|
|
57
|
+
super("cancelled");
|
|
58
|
+
this.name = "PromptCancelled";
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* One question on a terminal with no prompt library: the answer, or a cancel.
|
|
63
|
+
*
|
|
64
|
+
* A closed input is a cancel and has to be caught here, because `question`
|
|
65
|
+
* never settles when the stream ends under it — the interface closes, the loop
|
|
66
|
+
* drains, and a run that asked nothing further would exit 0 as though the
|
|
67
|
+
* question had been answered (measured 2026-09-20, carrick#1338). `SIGINT`
|
|
68
|
+
* reaches this only while a readline interface is open on a TTY; without the
|
|
69
|
+
* listener Node's own default kills the process, which ends the run too.
|
|
70
|
+
*/
|
|
71
|
+
async function askOnce(input, output, text) {
|
|
72
|
+
const rl = readline.createInterface({ input, output });
|
|
73
|
+
const cancelled = new Promise((_, reject) => {
|
|
74
|
+
rl.once("SIGINT", () => {
|
|
75
|
+
rl.close();
|
|
76
|
+
reject(new PromptCancelled());
|
|
77
|
+
});
|
|
78
|
+
rl.once("close", () => reject(new PromptCancelled()));
|
|
79
|
+
});
|
|
80
|
+
// Every answer closes the interface too, so this rejects after the race is
|
|
81
|
+
// already settled. Without a handler of its own that is an unhandled
|
|
82
|
+
// rejection, which Node ends the process on.
|
|
83
|
+
cancelled.catch(() => { });
|
|
84
|
+
try {
|
|
85
|
+
return await Promise.race([rl.question(text), cancelled]);
|
|
86
|
+
}
|
|
87
|
+
finally {
|
|
88
|
+
rl.close();
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
/** The numbers an answer names, or null when it names none of them. */
|
|
92
|
+
export function chosenNumbers(answer, count) {
|
|
93
|
+
const trimmed = answer.trim();
|
|
94
|
+
if (trimmed === "" || /^all$/i.test(trimmed))
|
|
95
|
+
return Array.from({ length: count }, (_, index) => index);
|
|
96
|
+
const picked = [];
|
|
97
|
+
for (const part of trimmed.split(/[\s,]+/)) {
|
|
98
|
+
if (!/^\d+$/.test(part))
|
|
99
|
+
return null;
|
|
100
|
+
const index = Number(part) - 1;
|
|
101
|
+
if (index < 0 || index >= count)
|
|
102
|
+
return null;
|
|
103
|
+
if (!picked.includes(index))
|
|
104
|
+
picked.push(index);
|
|
105
|
+
}
|
|
106
|
+
return picked.length > 0 ? picked : null;
|
|
107
|
+
}
|
|
44
108
|
/** Plain text: the same lines, no spinner, no colour, no gutter. */
|
|
45
|
-
export function plainOutput(write = (text) => process.stdout.write(text)
|
|
109
|
+
export function plainOutput(write = (text) => process.stdout.write(text),
|
|
110
|
+
// The streams the questions are asked on. Named rather than taken from the
|
|
111
|
+
// process so a test can state a cancel: an input it ends is the one thing
|
|
112
|
+
// that proves a closed terminal stops the run rather than answering it.
|
|
113
|
+
io = {}) {
|
|
114
|
+
const input = io.input ?? process.stdin;
|
|
115
|
+
const echo = io.output ?? process.stdout;
|
|
46
116
|
const line = (marker, text) => {
|
|
47
117
|
for (const entry of text.split("\n"))
|
|
48
118
|
write(`${marker} ${entry}\n`);
|
|
@@ -79,23 +149,26 @@ export function plainOutput(write = (text) => process.stdout.write(text)) {
|
|
|
79
149
|
// without `--yes`; a stdin that is a TTY under a piped stdout still gets a
|
|
80
150
|
// real question rather than a silent yes.
|
|
81
151
|
confirm: async (question) => {
|
|
82
|
-
const
|
|
83
|
-
|
|
84
|
-
const answer = await rl.question(`${question} [Y/n] `);
|
|
85
|
-
return answer.trim() === "" || /^y(es)?$/i.test(answer.trim());
|
|
86
|
-
}
|
|
87
|
-
finally {
|
|
88
|
-
rl.close();
|
|
89
|
-
}
|
|
152
|
+
const answer = (await askOnce(input, echo, `${question} [Y/n] `)).trim();
|
|
153
|
+
return answer === "" || /^y(es)?$/i.test(answer);
|
|
90
154
|
},
|
|
91
|
-
ask: async (question) => {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
155
|
+
ask: async (question) => (await askOnce(input, echo, `${question}\n> `)).trim(),
|
|
156
|
+
// The list, then the numbers to keep. Every row is printed with its own
|
|
157
|
+
// number because this rendering has no cursor to move: the question a
|
|
158
|
+
// reader answers has to carry the whole choice.
|
|
159
|
+
choose: async (question, options) => {
|
|
160
|
+
write(`${question}\n`);
|
|
161
|
+
options.forEach((option, index) => {
|
|
162
|
+
write(` ${index + 1}. ${option.label}${option.hint === undefined ? "" : ` (${option.hint})`}\n`);
|
|
163
|
+
});
|
|
164
|
+
for (let attempt = 0; attempt < 3; attempt += 1) {
|
|
165
|
+
const answer = await askOnce(input, echo, `Numbers to include, separated by commas, or Enter for all\n> `);
|
|
166
|
+
const picked = chosenNumbers(answer, options.length);
|
|
167
|
+
if (picked)
|
|
168
|
+
return picked.map((index) => options[index].value);
|
|
169
|
+
write(`${REFUSE} Not a number between 1 and ${options.length}: "${answer.trim()}"\n`);
|
|
98
170
|
}
|
|
171
|
+
throw new PromptCancelled();
|
|
99
172
|
},
|
|
100
173
|
quiet: false,
|
|
101
174
|
};
|
|
@@ -110,7 +183,7 @@ export function plainOutput(write = (text) => process.stdout.write(text)) {
|
|
|
110
183
|
* with different lines. A test that hands this a stream is the only thing that
|
|
111
184
|
* sees the interactive markers at all (carrick#1032).
|
|
112
185
|
*/
|
|
113
|
-
export function interactiveOutput(output = process.stdout) {
|
|
186
|
+
export function interactiveOutput(output = process.stdout, keys = process.stdin) {
|
|
114
187
|
return {
|
|
115
188
|
done: (text) => clack.log.step(text, { output }),
|
|
116
189
|
warn: (text) => clack.log.warn(text, { output }),
|
|
@@ -145,15 +218,34 @@ export function interactiveOutput(output = process.stdout) {
|
|
|
145
218
|
spinner.cancel(outcome.text);
|
|
146
219
|
return value;
|
|
147
220
|
},
|
|
148
|
-
// A cancelled prompt
|
|
149
|
-
//
|
|
221
|
+
// A cancelled prompt ends the run. It used to be read as the prompt's own
|
|
222
|
+
// quiet answer — "no" for a confirm, an empty string for a question — so
|
|
223
|
+
// Ctrl-C at the project question carried on into the steps that question
|
|
224
|
+
// governed (carrick#1338).
|
|
150
225
|
confirm: async (question) => {
|
|
151
|
-
const answer = await clack.confirm({ message: question, initialValue: true, output });
|
|
152
|
-
|
|
226
|
+
const answer = await clack.confirm({ message: question, initialValue: true, output, input: keys });
|
|
227
|
+
if (clack.isCancel(answer))
|
|
228
|
+
throw new PromptCancelled();
|
|
229
|
+
return answer;
|
|
153
230
|
},
|
|
154
231
|
ask: async (question) => {
|
|
155
|
-
const answer = await clack.text({ message: question, output });
|
|
156
|
-
|
|
232
|
+
const answer = await clack.text({ message: question, output, input: keys });
|
|
233
|
+
if (clack.isCancel(answer))
|
|
234
|
+
throw new PromptCancelled();
|
|
235
|
+
return answer.trim();
|
|
236
|
+
},
|
|
237
|
+
choose: async (question, options) => {
|
|
238
|
+
const answer = await clack.multiselect({
|
|
239
|
+
message: question,
|
|
240
|
+
options: options.map((option) => ({ value: option.value, label: option.label, hint: option.hint })),
|
|
241
|
+
initialValues: options.map((option) => option.value),
|
|
242
|
+
required: true,
|
|
243
|
+
output,
|
|
244
|
+
input: keys,
|
|
245
|
+
});
|
|
246
|
+
if (clack.isCancel(answer))
|
|
247
|
+
throw new PromptCancelled();
|
|
248
|
+
return answer;
|
|
157
249
|
},
|
|
158
250
|
accent: (text) => pc.dim(text),
|
|
159
251
|
quiet: true,
|
package/dist/init/output.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"output.js","sourceRoot":"","sources":["../../src/init/output.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,EAAE;AACF,sEAAsE;AACtE,4DAA4D;AAC5D,4EAA4E;AAC5E,8EAA8E;AAC9E,mDAAmD;AACnD,EAAE;AACF,iDAAiD;AACjD,EAAE;AACF,mCAAmC;AACnC,0EAA0E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AK,EAAE,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;gBACnG,aAAa,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC;gBACpD,QAAQ,EAAE,IAAI;gBACd,MAAM;gBACN,KAAK,EAAE,IAAI;aACZ,CAAC,CAAC;YACH,IAAI,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC;gBAAE,MAAM,IAAI,eAAe,EAAE,CAAC;YACxD,OAAO,MAAM,CAAC;QAChB,CAAC;QACD,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC;QAC9B,KAAK,EAAE,IAAI;KACZ,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,YAAY,CAC1B,MAAe,OAAO,CAAC,MAAM,CAAC,KAAK,KAAK,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,IAAI,CAAC,CAAC,GAAG,CAAC;IAEjF,OAAO,GAAG,CAAC,CAAC,CAAC,iBAAiB,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;AACnD,CAAC"}
|
package/dist/init/projects.d.ts
CHANGED
|
@@ -110,9 +110,19 @@ export type ProjectPrompts = {
|
|
|
110
110
|
confirm: (question: string) => Promise<boolean>;
|
|
111
111
|
interactive: boolean;
|
|
112
112
|
assumeYes: boolean;
|
|
113
|
-
list?: (token: string) => Promise<Project[] | null>;
|
|
114
|
-
create?: (token: string, slug: string) => Promise<CreateOutcome>;
|
|
115
113
|
};
|
|
114
|
+
/**
|
|
115
|
+
* A project as it is printed: the name the dashboard shows it under, and the
|
|
116
|
+
* slug every command takes.
|
|
117
|
+
*
|
|
118
|
+
* The CLI named projects by slug and the dashboard's picker names them by
|
|
119
|
+
* display name, with nothing connecting the two, so undoing a move meant
|
|
120
|
+
* guessing which display name `default` was (carrick#1338). Both, wherever a
|
|
121
|
+
* project is printed. A workspace whose API does not serve the project list —
|
|
122
|
+
* and a project this run is about to create, which has no name yet — has only
|
|
123
|
+
* the slug, and that is what it gets.
|
|
124
|
+
*/
|
|
125
|
+
export declare function projectLabel(slug: string, projects: Project[] | null): string;
|
|
116
126
|
/**
|
|
117
127
|
* The project these repos should be in, and whether this run can state that it
|
|
118
128
|
* exists.
|
|
@@ -126,16 +136,20 @@ export type ProjectPrompts = {
|
|
|
126
136
|
export type ProjectChoice = {
|
|
127
137
|
slug: string | null;
|
|
128
138
|
exists: boolean;
|
|
139
|
+
/** The terminal asked for this project to be created, and it is not there yet. */
|
|
140
|
+
create: boolean;
|
|
129
141
|
};
|
|
130
142
|
/**
|
|
131
|
-
*
|
|
143
|
+
* What to do about a named project, decided and not yet done.
|
|
132
144
|
*
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
*
|
|
145
|
+
* Nothing here writes: the whole project step runs before the proposal is
|
|
146
|
+
* accepted, and a run the reader stops must leave the workspace exactly as it
|
|
147
|
+
* found it (carrick#1338). `exists` is what this run can state; `create` is
|
|
148
|
+
* what it has permission to do once the proposal is accepted. A workspace
|
|
149
|
+
* whose API has no project list settles neither, and the caller falls back to
|
|
150
|
+
* the browser instructions, which include creating it.
|
|
137
151
|
*/
|
|
138
|
-
export declare function
|
|
152
|
+
export declare function planProject(slug: string, projects: Project[] | null, prompts: ProjectPrompts): Promise<ProjectChoice>;
|
|
139
153
|
/**
|
|
140
154
|
* The project step for a plain `carrick init`, with no `--project` to verify
|
|
141
155
|
* (carrick#987, decision record carrick-cloud#772 step 3).
|
|
@@ -144,13 +158,13 @@ export declare function ensureProject(token: string, slug: string, prompts: Proj
|
|
|
144
158
|
* the workspace's projects and the repo silently stayed wherever the browser
|
|
145
159
|
* had put it. The order is: the assignment the repos already have, then the
|
|
146
160
|
* list, then a name the user types, which may be one that does not exist yet.
|
|
147
|
-
*
|
|
148
|
-
*
|
|
161
|
+
* Nothing is created here — the answer is carried into the proposal and acted
|
|
162
|
+
* on only if that is accepted (carrick#1338).
|
|
149
163
|
*
|
|
150
|
-
* `current` is one entry per
|
|
151
|
-
*
|
|
164
|
+
* `current` is one entry per SELECTED repo: the project it is in, or null when
|
|
165
|
+
* it is not connected to this workspace at all.
|
|
152
166
|
*/
|
|
153
|
-
export declare function projectStep(
|
|
167
|
+
export declare function projectStep(current: Array<string | null>, projects: Project[] | null, prompts: ProjectPrompts): Promise<ProjectChoice>;
|
|
154
168
|
/** The list as init prints it: one line per project, active ones first. */
|
|
155
169
|
export declare function projectLines(projects: Project[]): string[];
|
|
156
170
|
export {};
|
package/dist/init/projects.js
CHANGED
|
@@ -181,36 +181,46 @@ export const SLUG = /^[a-z0-9](?:[a-z0-9]|-(?=[a-z0-9])){2,31}$/;
|
|
|
181
181
|
/** What a project is, said once, above the picker that asks for one. */
|
|
182
182
|
export const PROJECT_RULE = "One project per interconnected system: repos that call each other belong together.";
|
|
183
183
|
/**
|
|
184
|
-
*
|
|
184
|
+
* A project as it is printed: the name the dashboard shows it under, and the
|
|
185
|
+
* slug every command takes.
|
|
185
186
|
*
|
|
186
|
-
*
|
|
187
|
-
*
|
|
188
|
-
*
|
|
189
|
-
*
|
|
187
|
+
* The CLI named projects by slug and the dashboard's picker names them by
|
|
188
|
+
* display name, with nothing connecting the two, so undoing a move meant
|
|
189
|
+
* guessing which display name `default` was (carrick#1338). Both, wherever a
|
|
190
|
+
* project is printed. A workspace whose API does not serve the project list —
|
|
191
|
+
* and a project this run is about to create, which has no name yet — has only
|
|
192
|
+
* the slug, and that is what it gets.
|
|
190
193
|
*/
|
|
191
|
-
export
|
|
194
|
+
export function projectLabel(slug, projects) {
|
|
195
|
+
const found = projects?.find((project) => project.slug === slug);
|
|
196
|
+
return found && found.name !== slug ? `${found.name} (${slug})` : slug;
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* What to do about a named project, decided and not yet done.
|
|
200
|
+
*
|
|
201
|
+
* Nothing here writes: the whole project step runs before the proposal is
|
|
202
|
+
* accepted, and a run the reader stops must leave the workspace exactly as it
|
|
203
|
+
* found it (carrick#1338). `exists` is what this run can state; `create` is
|
|
204
|
+
* what it has permission to do once the proposal is accepted. A workspace
|
|
205
|
+
* whose API has no project list settles neither, and the caller falls back to
|
|
206
|
+
* the browser instructions, which include creating it.
|
|
207
|
+
*/
|
|
208
|
+
export async function planProject(slug, projects, prompts) {
|
|
192
209
|
const { say } = prompts;
|
|
193
|
-
const projects = await (prompts.list ?? ((token) => listProjects(token)))(token);
|
|
194
210
|
if (projects === null)
|
|
195
|
-
return false;
|
|
211
|
+
return { slug, exists: false, create: false };
|
|
196
212
|
if (projects.some((project) => project.slug === slug && !project.archived)) {
|
|
197
|
-
say(`Project
|
|
198
|
-
return true;
|
|
213
|
+
say(`Project ${projectLabel(slug, projects)} is in this workspace.`);
|
|
214
|
+
return { slug, exists: true, create: false };
|
|
199
215
|
}
|
|
200
216
|
say(projects.length === 0 ? "This workspace has no projects yet." : "Projects in this workspace:");
|
|
201
217
|
for (const line of projectLines(projects))
|
|
202
218
|
say(line);
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
say(`Created project "${slug}".`);
|
|
209
|
-
return true;
|
|
210
|
-
}
|
|
211
|
-
if (outcome.kind === "refused")
|
|
212
|
-
say(`Carrick did not create "${slug}": ${outcome.message}`);
|
|
213
|
-
return false;
|
|
219
|
+
if (prompts.assumeYes)
|
|
220
|
+
return { slug, exists: false, create: true };
|
|
221
|
+
if (!prompts.interactive)
|
|
222
|
+
return { slug, exists: false, create: false };
|
|
223
|
+
return { slug, exists: false, create: await prompts.confirm(`Create project "${slug}"?`) };
|
|
214
224
|
}
|
|
215
225
|
/**
|
|
216
226
|
* The project step for a plain `carrick init`, with no `--project` to verify
|
|
@@ -220,16 +230,16 @@ export async function ensureProject(token, slug, prompts) {
|
|
|
220
230
|
* the workspace's projects and the repo silently stayed wherever the browser
|
|
221
231
|
* had put it. The order is: the assignment the repos already have, then the
|
|
222
232
|
* list, then a name the user types, which may be one that does not exist yet.
|
|
223
|
-
*
|
|
224
|
-
*
|
|
233
|
+
* Nothing is created here — the answer is carried into the proposal and acted
|
|
234
|
+
* on only if that is accepted (carrick#1338).
|
|
225
235
|
*
|
|
226
|
-
* `current` is one entry per
|
|
227
|
-
*
|
|
236
|
+
* `current` is one entry per SELECTED repo: the project it is in, or null when
|
|
237
|
+
* it is not connected to this workspace at all.
|
|
228
238
|
*/
|
|
229
|
-
export async function projectStep(
|
|
230
|
-
const
|
|
239
|
+
export async function projectStep(current, projects, prompts) {
|
|
240
|
+
const none = { slug: null, exists: false, create: false };
|
|
231
241
|
if (current.length === 0)
|
|
232
|
-
return
|
|
242
|
+
return none;
|
|
233
243
|
const assigned = [...new Set(current)];
|
|
234
244
|
const sole = assigned.length === 1 ? assigned[0] : null;
|
|
235
245
|
if (sole != null) {
|
|
@@ -237,18 +247,17 @@ export async function projectStep(token, current, prompts) {
|
|
|
237
247
|
// someone at the keyboard says otherwise, and the caller states the
|
|
238
248
|
// assignment it verifies, so this says nothing of its own.
|
|
239
249
|
if (!prompts.interactive || prompts.assumeYes)
|
|
240
|
-
return { slug: sole, exists: true };
|
|
241
|
-
if (await prompts.confirm(`These repos are in project
|
|
242
|
-
return { slug: sole, exists: true };
|
|
250
|
+
return { slug: sole, exists: true, create: false };
|
|
251
|
+
if (await prompts.confirm(`These repos are in project ${projectLabel(sole, projects)}. Keep them there?`)) {
|
|
252
|
+
return { slug: sole, exists: true, create: false };
|
|
243
253
|
}
|
|
244
254
|
}
|
|
245
255
|
// Nothing to ask without a terminal, and nothing this run may assume: a
|
|
246
256
|
// repo's project is not a thing to guess at.
|
|
247
257
|
if (!prompts.interactive)
|
|
248
|
-
return
|
|
249
|
-
const projects = await list(token);
|
|
258
|
+
return none;
|
|
250
259
|
if (projects === null)
|
|
251
|
-
return
|
|
260
|
+
return none;
|
|
252
261
|
// The one thing someone picking a project has to know, said where the
|
|
253
262
|
// question is asked: a project is the boundary every cross-service answer
|
|
254
263
|
// is computed inside, so repos split across two of them see nothing of each
|
|
@@ -259,25 +268,15 @@ export async function projectStep(token, current, prompts) {
|
|
|
259
268
|
prompts.say(line);
|
|
260
269
|
const answer = await prompts.ask("Which project should these repos be in? Enter a slug, or press Enter to leave it to the browser.");
|
|
261
270
|
if (answer === "")
|
|
262
|
-
return
|
|
271
|
+
return none;
|
|
263
272
|
if (!SLUG.test(answer)) {
|
|
264
273
|
prompts.say(`"${answer}" is not a project slug: use 3-32 lowercase letters, digits, and single hyphens. Leaving the project step to the browser.`);
|
|
265
|
-
return
|
|
274
|
+
return none;
|
|
266
275
|
}
|
|
267
276
|
if (projects.some((project) => project.slug === answer && !project.archived)) {
|
|
268
|
-
return { slug: answer, exists: true };
|
|
269
|
-
}
|
|
270
|
-
const create = await prompts.confirm(`Create project "${answer}"?`);
|
|
271
|
-
if (!create)
|
|
272
|
-
return { slug: answer, exists: false };
|
|
273
|
-
const outcome = await (prompts.create ?? ((token, slug) => createProject(token, slug)))(token, answer);
|
|
274
|
-
if (outcome.kind === "created") {
|
|
275
|
-
prompts.say(`Created project "${answer}".`);
|
|
276
|
-
return { slug: answer, exists: true };
|
|
277
|
+
return { slug: answer, exists: true, create: false };
|
|
277
278
|
}
|
|
278
|
-
|
|
279
|
-
prompts.say(`Carrick did not create "${answer}": ${outcome.message}`);
|
|
280
|
-
return { slug: answer, exists: false };
|
|
279
|
+
return { slug: answer, exists: false, create: await prompts.confirm(`Create project "${answer}"?`) };
|
|
281
280
|
}
|
|
282
281
|
/** The list as init prints it: one line per project, active ones first. */
|
|
283
282
|
export function projectLines(projects) {
|
|
@@ -289,8 +288,7 @@ export function projectLines(projects) {
|
|
|
289
288
|
? ""
|
|
290
289
|
: ` ${entry.repo_count} repo${entry.repo_count === 1 ? "" : "s"}`;
|
|
291
290
|
const archived = entry.archived ? " (archived)" : "";
|
|
292
|
-
|
|
293
|
-
return ` ${entry.slug}${named}${repos}${archived}`;
|
|
291
|
+
return ` ${projectLabel(entry.slug, [entry])}${repos}${archived}`;
|
|
294
292
|
});
|
|
295
293
|
}
|
|
296
294
|
//# sourceMappingURL=projects.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projects.js","sourceRoot":"","sources":["../../src/init/projects.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,8BAA8B;AAC9B,EAAE;AACF,0EAA0E;AAC1E,4EAA4E;AAC5E,8EAA8E;AAC9E,8EAA8E;AAC9E,4DAA4D;AAC5D,EAAE;AACF,yEAAyE;AACzE,8EAA8E;AAC9E,8EAA8E;AAC9E,8EAA8E;AAC9E,0EAA0E;AAC1E,0EAA0E;AAC1E,8EAA8E;AAC9E,0EAA0E;AAC1E,6EAA6E;AAC7E,mDAAmD;AACnD,EAAE;AACF,8EAA8E;AAC9E,6EAA6E;AAC7E,wEAAwE;AACxE,iDAAiD;AAEjD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAElD,MAAM,OAAO,GAAG,CAAC,CAAC,MAAM,CAAC;IACvB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE;IACrB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE;CACtD,CAAC,CAAC;AAKH,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5B,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,yBAAyB,CAAC;IAC5C,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC;CAC3B,CAAC,CAAC;AAEH,MAAM,c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IACrE,CAAC,CAAC,CAAC;AACL,CAAC"}
|
package/dist/init/remove.d.ts
CHANGED
|
@@ -6,8 +6,6 @@ export type RemoveOptions = {
|
|
|
6
6
|
keepLogin: boolean;
|
|
7
7
|
};
|
|
8
8
|
export declare function parseArgs(argv: string[], cwd?: string): RemoveOptions | string;
|
|
9
|
-
/** The settings files a workspace can hold our hook entries in. */
|
|
10
|
-
export declare const SETTINGS_FILES: string[];
|
|
11
9
|
/**
|
|
12
10
|
* The files the scaffold pull request adds to a repository.
|
|
13
11
|
*
|