carrick 0.3.142 → 0.3.144
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 +1 -1
- package/bin/carrick.mjs +7 -7
- package/dist/auth/read.d.ts +0 -10
- package/dist/auth/read.js +3 -11
- package/dist/auth/read.js.map +1 -1
- package/dist/cli.d.ts +23 -20
- package/dist/cli.js +17 -32
- package/dist/cli.js.map +1 -1
- package/dist/contract.d.ts +72 -0
- package/dist/contract.js +14 -0
- package/dist/contract.js.map +1 -1
- package/dist/hook/checked.d.ts +11 -0
- package/dist/hook/checked.js +44 -0
- package/dist/hook/checked.js.map +1 -0
- package/dist/hook/edited.d.ts +22 -0
- package/dist/hook/edited.js +84 -0
- package/dist/hook/edited.js.map +1 -0
- package/dist/hook/invoker.d.ts +7 -0
- package/dist/hook/invoker.js +18 -0
- package/dist/hook/invoker.js.map +1 -0
- package/dist/hook/late.d.ts +8 -0
- package/dist/hook/late.js +60 -0
- package/dist/hook/late.js.map +1 -0
- package/dist/hook/post-edit.d.ts +0 -22
- package/dist/hook/post-edit.js +78 -126
- package/dist/hook/post-edit.js.map +1 -1
- package/dist/hook/post-read.js +19 -9
- package/dist/hook/post-read.js.map +1 -1
- package/dist/hook/probe.d.ts +15 -0
- package/dist/hook/probe.js +41 -0
- package/dist/hook/probe.js.map +1 -0
- package/dist/hook/recheck-run.d.ts +2 -0
- package/dist/hook/recheck-run.js +28 -0
- package/dist/hook/recheck-run.js.map +1 -0
- package/dist/hook/rechecks.d.ts +108 -0
- package/dist/hook/rechecks.js +537 -0
- package/dist/hook/rechecks.js.map +1 -0
- package/dist/hook/refresh.d.ts +1 -0
- package/dist/hook/refresh.js +1 -1
- package/dist/hook/refresh.js.map +1 -1
- package/dist/hook/reuse.d.ts +15 -3
- package/dist/hook/reuse.js +31 -11
- package/dist/hook/reuse.js.map +1 -1
- package/dist/hook/session-start.js +14 -0
- package/dist/hook/session-start.js.map +1 -1
- package/dist/hook/stop-wait.d.ts +17 -0
- package/dist/hook/stop-wait.js +120 -0
- package/dist/hook/stop-wait.js.map +1 -0
- package/dist/hook/stop.js +12 -1
- package/dist/hook/stop.js.map +1 -1
- package/dist/hook/user-prompt.js +4 -1
- package/dist/hook/user-prompt.js.map +1 -1
- package/dist/init/agents-section.js +1 -3
- package/dist/init/agents-section.js.map +1 -1
- package/dist/init/connect.d.ts +6 -107
- package/dist/init/connect.js +7 -318
- package/dist/init/connect.js.map +1 -1
- package/dist/init/doctor.d.ts +8 -71
- package/dist/init/doctor.js +37 -223
- package/dist/init/doctor.js.map +1 -1
- package/dist/init/hosted.d.ts +7 -7
- package/dist/init/hosted.js +8 -10
- package/dist/init/hosted.js.map +1 -1
- package/dist/init/outdated.d.ts +11 -0
- package/dist/init/outdated.js +1 -1
- package/dist/init/outdated.js.map +1 -1
- package/dist/init/output.d.ts +0 -55
- package/dist/init/output.js +0 -142
- package/dist/init/output.js.map +1 -1
- package/dist/init/projects.d.ts +3 -200
- package/dist/init/projects.js +22 -352
- package/dist/init/projects.js.map +1 -1
- package/dist/init/remove.js +4 -5
- package/dist/init/remove.js.map +1 -1
- package/dist/init/repos.d.ts +25 -53
- package/dist/init/repos.js +28 -65
- package/dist/init/repos.js.map +1 -1
- package/dist/init/run.d.ts +52 -212
- package/dist/init/run.js +247 -987
- package/dist/init/run.js.map +1 -1
- package/dist/init/self-update.d.ts +18 -0
- package/dist/init/self-update.js +147 -0
- package/dist/init/self-update.js.map +1 -0
- package/dist/init/settings.d.ts +2 -0
- package/dist/init/settings.js +13 -2
- package/dist/init/settings.js.map +1 -1
- package/dist/render.d.ts +24 -6
- package/dist/render.js +135 -28
- package/dist/render.js.map +1 -1
- package/dist/templates.d.ts +1 -6
- package/dist/templates.js +4 -14
- package/dist/templates.js.map +1 -1
- package/package.json +6 -6
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/plugin/hooks/hooks.json +3 -2
- package/sidecar/dist/src/capture/api.d.ts +2 -2
- package/sidecar/dist/src/capture/deno-project.js +5 -1
- package/sidecar/dist/src/capture/index.d.ts +18 -0
- package/sidecar/dist/src/capture/index.js +73 -0
- package/sidecar/dist/src/index.js +1 -1
- package/sidecar/dist/src/library-claims.d.ts +4 -0
- package/sidecar/dist/src/library-claims.js +2 -2
- package/sidecar/dist/src/project-loader.js +9 -2
- package/sidecar/dist/src/type-inferrer.d.ts +17 -2
- package/sidecar/dist/src/type-inferrer.js +59 -16
- package/sidecar/dist/src/types.d.ts +26 -0
- package/sidecar/dist/src/validators.d.ts +6 -0
- package/sidecar/dist/src/validators.js +2 -0
- package/templates/carrick.json +0 -7
package/dist/init/run.d.ts
CHANGED
|
@@ -1,52 +1,31 @@
|
|
|
1
1
|
import { type ResolvedRepos } from "../auth/read.ts";
|
|
2
2
|
import { type RepoIdentity, type WorkspaceProposal } from "./repos.ts";
|
|
3
3
|
import { type OfferedClient } from "./mcp.ts";
|
|
4
|
-
import { type
|
|
5
|
-
/**
|
|
6
|
-
* The repos this run covers that the scaffold tool still has work in.
|
|
7
|
-
*
|
|
8
|
-
* The two files that tool writes: the `carrick.json` a scan reads, and the
|
|
9
|
-
* workflow that runs the scan. A repo holding both has been scaffolded, and
|
|
10
|
-
* the closing instruction is then an instruction to do nothing — which is what
|
|
11
|
-
* it was on a folder where every repo was already set up (carrick#1365).
|
|
12
|
-
*
|
|
13
|
-
* The repo root only, because that is where the scanner looks for a config
|
|
14
|
-
* (`Config::load_services`): a `carrick.json` deeper in the tree is a fixture
|
|
15
|
-
* or a nested example, not this repo's.
|
|
16
|
-
*/
|
|
17
|
-
export declare function reposToScaffold(repos: RepoIdentity[], exists?: (target: string) => boolean): RepoIdentity[];
|
|
18
|
-
/**
|
|
19
|
-
* The instruction to paste, naming the repos it is about.
|
|
20
|
-
*
|
|
21
|
-
* The scaffold tool's branch turns on `repo` and turns soft without it: with
|
|
22
|
-
* no `repo` the response keeps its default ending and tells the agent to run
|
|
23
|
-
* the scan — on a repo CI already indexes, which is the row the whole
|
|
24
|
-
* workspace reads (carrick-cloud `src/tools/scaffold.ts`, cloud#805 item 1).
|
|
25
|
-
* So the names are in the sentence, one call per repo.
|
|
26
|
-
*
|
|
27
|
-
* One repo whose owner/repo is known is the value of `repo`, said once; the
|
|
28
|
-
* sentence used to name it and then ask for it again (carrick#1574). A repo
|
|
29
|
-
* known here only by its folder still needs the agent to find its owner/repo.
|
|
30
|
-
* The several-repo sentence is carrick-cloud#1404's: the tool now takes them
|
|
31
|
-
* all in one `repos` call.
|
|
32
|
-
*/
|
|
33
|
-
export declare function scaffoldSentence(repos: RepoIdentity[]): string;
|
|
34
|
-
/** The title of the block a run closes on when there is scaffolding left to do. */
|
|
35
|
-
export declare const NEXT_TITLE = "Next: paste this into a new agent session";
|
|
36
|
-
/**
|
|
37
|
-
* The line that tells the agent where the proposal is, for a run that set up
|
|
38
|
-
* the folder above the one it started in (carrick#1512).
|
|
39
|
-
*/
|
|
40
|
-
export declare function initFolderSentence(workspace: string): string;
|
|
4
|
+
import { type InitOutput } from "./output.ts";
|
|
41
5
|
/** What a run with nothing left to set up closes on: what this machine can do now. */
|
|
42
6
|
export declare const READY_SENTENCE = "The index is on this machine: `carrick check <file>` answers for a file, and your agent can ask who calls an operation.";
|
|
7
|
+
/** The title of the block a run closes on (carrick#3286). */
|
|
8
|
+
export declare const CLOUD_NEXT_TITLE = "Done. Open a new agent session in this folder, then ask it:";
|
|
9
|
+
/** The question the ready email also carries, so both say the same first thing. */
|
|
10
|
+
export declare const ASK_YOUR_AGENT_PROMPT = "Use Carrick to list every service in our project and the number of endpoints each one exposes";
|
|
11
|
+
/**
|
|
12
|
+
* What a run closes on, under CLOUD_NEXT_TITLE: the first question to ask,
|
|
13
|
+
* then only the steps still open. What init wrote is already listed while it
|
|
14
|
+
* runs, and a failed step warns where it fails, so neither is repeated here.
|
|
15
|
+
* Nobody scaffolds, so there is no instruction to paste (carrick#3286).
|
|
16
|
+
*/
|
|
17
|
+
export declare function cloudNextLines(codexTrust: boolean, indexPending: boolean): string[];
|
|
43
18
|
export type InitOptions = {
|
|
44
19
|
workspace: string;
|
|
45
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* The project the repos must already be in. Repos change project on the
|
|
22
|
+
* dashboard, so a slug that would move one stops the run; one they are in
|
|
23
|
+
* changes nothing.
|
|
24
|
+
*/
|
|
46
25
|
project: string | null;
|
|
47
26
|
/**
|
|
48
27
|
* The repos this install covers, `owner/repo` each, repeatable and
|
|
49
|
-
* comma-separable. Empty means
|
|
28
|
+
* comma-separable. Empty means every repo here the workspace holds.
|
|
50
29
|
*
|
|
51
30
|
* It is also how a repository whose remote names none is named
|
|
52
31
|
* (carrick#991): a value that matches nothing on disk attaches to the one
|
|
@@ -55,38 +34,25 @@ export type InitOptions = {
|
|
|
55
34
|
repos: string[];
|
|
56
35
|
/**
|
|
57
36
|
* The editors outside this workspace to add the MCP entry to, by name.
|
|
58
|
-
*
|
|
59
|
-
* Empty means the terminal asks, and a run with no terminal writes no editor
|
|
60
|
-
* file at all: `--yes` is an answer about this workspace (carrick#1365).
|
|
37
|
+
* Empty means the ones whose own command answers on this machine.
|
|
61
38
|
*/
|
|
62
39
|
editors: string[];
|
|
63
|
-
/** Answer yes to the proposal rather than asking. Never grants a move. */
|
|
64
|
-
assumeYes: boolean;
|
|
65
|
-
/** Take the selected repos out of whatever project they are in now. */
|
|
66
|
-
allowMove: boolean;
|
|
67
40
|
/**
|
|
68
41
|
* Install carrick globally where this machine has none (carrick#1372).
|
|
69
42
|
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
* this ran — and stop working when it is cleared.
|
|
43
|
+
* Without a global, the hooks written below name this install — an npx
|
|
44
|
+
* cache directory, when that is how this ran — and stop working when it is
|
|
45
|
+
* cleared.
|
|
74
46
|
*/
|
|
75
47
|
installGlobal: boolean;
|
|
76
|
-
/**
|
|
77
|
-
* Set up for an index built on this machine, whatever the workspace says
|
|
78
|
-
* about who builds it (carrick#2219). With it the run is the one a laptop
|
|
79
|
-
* workspace gets: the same questions, the same requests, the same lines.
|
|
80
|
-
*/
|
|
81
|
-
local: boolean;
|
|
82
48
|
};
|
|
83
49
|
export declare function parseArgs(argv: string[], cwd?: string): InitOptions | string;
|
|
84
50
|
/**
|
|
85
51
|
* The repos a project holds that this machine does not, one line per project.
|
|
86
52
|
*
|
|
87
53
|
* Carrick answers across every repo in a project, so a machine holding half of
|
|
88
|
-
* one gets half the answers, and the
|
|
89
|
-
*
|
|
54
|
+
* one gets half the answers, and the summary line names only what is here.
|
|
55
|
+
* `project_repos` is the workspace read's answer to that: the whole
|
|
90
56
|
* membership of every project the requested repos are in (carrick#993 row 18).
|
|
91
57
|
* Capped and counted like the identity lines, because a project can hold two
|
|
92
58
|
* hundred.
|
|
@@ -98,43 +64,37 @@ export declare function parseArgs(argv: string[], cwd?: string): InitOptions | s
|
|
|
98
64
|
export declare function absentRepos(identity: ResolvedRepos, onMachine: string[], project: string | null, label?: (slug: string) => string): string[];
|
|
99
65
|
/**
|
|
100
66
|
* The one line that says what is set up: the project and the repos in it
|
|
101
|
-
* from this run (carrick#1489, carrick#1512).
|
|
102
|
-
*
|
|
103
|
-
* What was written was the list the reader said yes to, and a hook file that
|
|
104
|
-
* could not be written has its own line, so what is left to say is where the
|
|
105
|
-
* repos are. Only repos with a GitHub remote are named: a repo with none is in
|
|
106
|
-
* no project. The line says what it reports: a bare "Shop (shop): api" did
|
|
107
|
-
* not (carrick#1574).
|
|
67
|
+
* from this run (carrick#1489, carrick#1512). The line says what it reports:
|
|
68
|
+
* a bare "Shop (shop): api" did not (carrick#1574).
|
|
108
69
|
*/
|
|
109
70
|
export declare function summaryLine(project: string | null, repos: string[]): string;
|
|
110
71
|
/**
|
|
111
|
-
* The installs
|
|
72
|
+
* The installs the local read would have needed for full types, as commands.
|
|
112
73
|
*
|
|
113
|
-
* The scanner states them (`not_installed` on each derived repo, from
|
|
114
|
-
* preflight rule
|
|
115
|
-
*
|
|
74
|
+
* The scanner states them (`not_installed` on each derived repo, from its
|
|
75
|
+
* preflight rule), so this only says where each runs, as a path from the
|
|
76
|
+
* workspace (carrick#1489). A repo read in from the hosted index carries the
|
|
77
|
+
* hosted scan's types, captured with dependencies installed, so it is not
|
|
78
|
+
* named (carrick#2839).
|
|
116
79
|
*/
|
|
117
80
|
export declare function installCommands(plan: WorkspaceProposal, readFromHosted?: string[]): string[];
|
|
118
81
|
/**
|
|
119
|
-
* The sentence that installs them, when there is anything to install
|
|
120
|
-
*
|
|
121
|
-
* printed. On a workspace whose index Carrick builds there is no next scan on
|
|
122
|
-
* this machine, so that reader's line ends on the read instead ("cloud").
|
|
82
|
+
* The sentence that installs them, when there is anything to install. There is
|
|
83
|
+
* no scan on this machine to install them for, so it ends on the read.
|
|
123
84
|
*/
|
|
124
|
-
export declare function installSentence(commands: string[]
|
|
85
|
+
export declare function installSentence(commands: string[]): string | null;
|
|
125
86
|
/**
|
|
126
|
-
* The files the
|
|
127
|
-
*
|
|
87
|
+
* The files the run creates, as one line under "Next:" (carrick#1489,
|
|
88
|
+
* carrick#1512).
|
|
128
89
|
*
|
|
129
90
|
* Directories, because each holds several files and the line has to stay one
|
|
130
91
|
* sentence; every file outside the workspace by its own path, because those
|
|
131
92
|
* belong to somebody's editor. Claude Code's server list is written by its own
|
|
132
93
|
* command, so it is named rather than given a path. It says "add", because
|
|
133
|
-
* that is what happens: every writer here merges
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
*
|
|
137
|
-
* folder as the reader types it, and null for a run in one repo.
|
|
94
|
+
* that is what happens: every writer here merges. And it says where: a folder
|
|
95
|
+
* of repos gets the hooks and skills in the folder and again in each repo,
|
|
96
|
+
* with that repo's `.git/info/exclude` (carrick#1512, option A), so `folder`
|
|
97
|
+
* is the folder as the reader types it, and null for a run in one repo.
|
|
138
98
|
*/
|
|
139
99
|
export declare function writesLine(options: {
|
|
140
100
|
workspaceFile: boolean;
|
|
@@ -143,125 +103,15 @@ export declare function writesLine(options: {
|
|
|
143
103
|
folder: string | null;
|
|
144
104
|
home?: string;
|
|
145
105
|
}): string;
|
|
146
|
-
/** The list
|
|
106
|
+
/** The list of what the run writes, under its heading. */
|
|
147
107
|
export declare function nextBlock(lines: string[]): string;
|
|
148
108
|
/**
|
|
149
|
-
* The
|
|
150
|
-
*
|
|
151
|
-
* With a terminal, init opens the page itself once the reader says yes, so the
|
|
152
|
-
* line says that and no address. Without one it cannot, and the line carries
|
|
153
|
-
* the address instead: it is the only place a run with no terminal says it.
|
|
154
|
-
*/
|
|
155
|
-
export declare function connectItem(unconnected: string[], total: number, interactive: boolean, url: string): string;
|
|
156
|
-
/**
|
|
157
|
-
* The moves out of other projects, one line per project they come from, in
|
|
158
|
-
* the spelling the move question uses too.
|
|
159
|
-
*/
|
|
160
|
-
export declare function moveLines(moving: Array<{
|
|
161
|
-
repo: string;
|
|
162
|
-
from: string;
|
|
163
|
-
}>, project: string): string[];
|
|
164
|
-
/**
|
|
165
|
-
* Everything the run will do, one line each, for the one question that covers
|
|
166
|
-
* it (carrick#1512).
|
|
167
|
-
*
|
|
168
|
-
* A project used to be created at its own question, before the reader had seen
|
|
169
|
-
* which repos went into it, and the GitHub App line was printed twice around
|
|
170
|
-
* the files question. Now the project, the App and the files are three lines
|
|
171
|
-
* under "Next:", and "Go ahead?" is asked once, about all of them. A move out
|
|
172
|
-
* of another project is a line here too, and still its own question after this
|
|
173
|
-
* one, because `--yes` never grants it (carrick#1338).
|
|
174
|
-
*/
|
|
175
|
-
export declare function nextLines(input: {
|
|
176
|
-
/** True when this run creates the project. */
|
|
177
|
-
create: boolean;
|
|
178
|
-
/**
|
|
179
|
-
* The project the repos go to, as the list and the move question both
|
|
180
|
-
* print it — the name typed for one this run creates — or null when none
|
|
181
|
-
* was settled.
|
|
182
|
-
*/
|
|
183
|
-
project: string | null;
|
|
184
|
-
/** The repos this run covers that have a GitHub remote, as the reader knows them. */
|
|
185
|
-
repos: string[];
|
|
186
|
-
/** Repos that go into an existing project once the App is on them. */
|
|
187
|
-
joining: string[];
|
|
188
|
-
moving: Array<{
|
|
189
|
-
repo: string;
|
|
190
|
-
from: string;
|
|
191
|
-
}>;
|
|
192
|
-
/** The GitHub App line, or null when every repo is connected. */
|
|
193
|
-
connect: string | null;
|
|
194
|
-
writes: string;
|
|
195
|
-
}): string[];
|
|
196
|
-
/**
|
|
197
|
-
* The line a run inside one repo prints about the others beside it, where it
|
|
198
|
-
* does not ask about them: too many to list, or no terminal to ask in.
|
|
109
|
+
* The line a run inside one repo prints about the others beside it: it sets
|
|
110
|
+
* up this repo, and the folder run is the one that covers them.
|
|
199
111
|
*/
|
|
200
112
|
export declare function thisRepoOnly(repo: string): string;
|
|
201
|
-
/**
|
|
202
|
-
* Which of the repos beside this one belong to the same system, asked in the
|
|
203
|
-
* run itself (carrick#1512).
|
|
204
|
-
*
|
|
205
|
-
* The run used to name the folder above and tell the reader to start again
|
|
206
|
-
* there. This repo starts ticked and the others do not: a sibling folder is
|
|
207
|
-
* not a claim that the repos in it call each other. Each row names the GitHub
|
|
208
|
-
* repo its remote points at, which is what the reader recognises when two
|
|
209
|
-
* folders are called something else.
|
|
210
|
-
*/
|
|
211
|
-
export declare function chooseSiblings(current: RepoIdentity, siblings: RepoIdentity[], directory: string, out: InitOutput): Promise<string[]>;
|
|
212
|
-
/** The line a run that was stopped at a question ends on (carrick#1338). */
|
|
113
|
+
/** The line a run that was stopped at the sign-in ends on (carrick#1338). */
|
|
213
114
|
export declare const CANCELLED = "Cancelled. Nothing was written, here or in Carrick.";
|
|
214
|
-
/**
|
|
215
|
-
* The line a declined proposal ends on.
|
|
216
|
-
*
|
|
217
|
-
* A "no" used to be silent, which beside a cancel that says so reads as two
|
|
218
|
-
* different things having happened. Both leave the machine and the server as
|
|
219
|
-
* they were, and both say it.
|
|
220
|
-
*/
|
|
221
|
-
export declare const NOTHING_WRITTEN = "Nothing written, here or in Carrick.";
|
|
222
|
-
/**
|
|
223
|
-
* The repos that start selected, and why each of the others does not.
|
|
224
|
-
*
|
|
225
|
-
* A default is a claim about somebody's folder, so only the repos something
|
|
226
|
-
* already says belong here carry one: connected to this workspace, and in the
|
|
227
|
-
* project most of this folder's connected repos are in. Everything else — a
|
|
228
|
-
* repo nobody connected, one sitting in a different project, one with no
|
|
229
|
-
* GitHub identity to ask about — starts out, with the reason on its row, and
|
|
230
|
-
* the reader adds it in one keystroke (carrick#1365).
|
|
231
|
-
*
|
|
232
|
-
* Two cases preselect nothing at all, and neither is in the ruling because
|
|
233
|
-
* neither is a majority: a folder where nothing is connected (a first run), and
|
|
234
|
-
* a tie between two projects. A guess there is a guess about which half of
|
|
235
|
-
* somebody's folder this install is for.
|
|
236
|
-
*
|
|
237
|
-
* Unconnected is not the same as unknown: with no read of the workspace — no
|
|
238
|
-
* login yet, or a read that did not answer — `identity` is null and nothing is
|
|
239
|
-
* preselected, because "not connected" would then be this command's assumption
|
|
240
|
-
* rather than the server's answer.
|
|
241
|
-
*/
|
|
242
|
-
export declare function preselectedRepos(candidates: RepoIdentity[], identity: ResolvedRepos | null, label?: (slug: string) => string): {
|
|
243
|
-
keep: string[];
|
|
244
|
-
reasons: Map<string, string>;
|
|
245
|
-
};
|
|
246
|
-
/** A repo as the picker lists it: what it is called, what is in it, and why it is out. */
|
|
247
|
-
export declare function repoChoices(plan: WorkspaceProposal, candidates: RepoIdentity[], reasons?: Map<string, string>): Choice[];
|
|
248
|
-
/**
|
|
249
|
-
* Which repos in this folder this install covers, settled before anything is
|
|
250
|
-
* read from Carrick and long before anything is written (carrick#1338).
|
|
251
|
-
*
|
|
252
|
-
* A folder routinely holds a repo that must not be scanned, and the only
|
|
253
|
-
* answer this command used to take was one yes covering every repo in it. The
|
|
254
|
-
* terminal picks; without one, `--repo` names them; with neither, there is no
|
|
255
|
-
* safe default and the run stops here, having written nothing.
|
|
256
|
-
*/
|
|
257
|
-
export declare function chooseRepos(plan: WorkspaceProposal, candidates: RepoIdentity[], options: {
|
|
258
|
-
repos: string[];
|
|
259
|
-
assumeYes: boolean;
|
|
260
|
-
interactive: boolean;
|
|
261
|
-
/** The workspace read that decides the defaults, or null when there is none. */
|
|
262
|
-
identity?: ResolvedRepos | null;
|
|
263
|
-
label?: (slug: string) => string;
|
|
264
|
-
}, out: InitOutput): Promise<RepoIdentity[]>;
|
|
265
115
|
/**
|
|
266
116
|
* The excluded repos a `--repo` flag is asking for, by identity.
|
|
267
117
|
*
|
|
@@ -279,27 +129,17 @@ export declare function chooseRepos(plan: WorkspaceProposal, candidates: RepoIde
|
|
|
279
129
|
*/
|
|
280
130
|
export declare function namedButExcluded(workspace: string, excluded: string[], requested: string[], identify?: (repo: string) => RepoIdentity): string[];
|
|
281
131
|
/**
|
|
282
|
-
*
|
|
283
|
-
*
|
|
284
|
-
*
|
|
285
|
-
*
|
|
286
|
-
* strongest thing a configuration directory can do is put a row in the
|
|
287
|
-
* question (carrick#1365). An editor whose own command answers on PATH starts
|
|
288
|
-
* ticked; without a terminal, `--mcp` names them and nothing else is written.
|
|
289
|
-
*
|
|
290
|
-
* `--yes` does not cover these. It takes the proposal as printed — a list of
|
|
291
|
-
* packages and a set of files inside this workspace — and an entry in
|
|
292
|
-
* `~/.cursor/mcp.json` is neither.
|
|
132
|
+
* The editors outside the workspace that get an MCP entry: the ones `--mcp`
|
|
133
|
+
* names, or else every one whose own command answers on this machine. A file
|
|
134
|
+
* for an editor this machine does not run is never written unasked
|
|
135
|
+
* (carrick#1365).
|
|
293
136
|
*/
|
|
294
|
-
export declare function chooseEditors(offered: OfferedClient[],
|
|
295
|
-
editors: string[];
|
|
296
|
-
assumeYes: boolean;
|
|
297
|
-
interactive: boolean;
|
|
298
|
-
}, out: InitOutput): Promise<string[]>;
|
|
137
|
+
export declare function chooseEditors(offered: OfferedClient[], named: string[]): string[];
|
|
299
138
|
export declare function init(argv: string[]): Promise<number>;
|
|
300
139
|
/**
|
|
301
140
|
* `init` with the terminal stated rather than sniffed, so a test can be the
|
|
302
|
-
* terminal
|
|
141
|
+
* terminal. The terminal decides only whether init can sign in from here and
|
|
142
|
+
* how a step draws: nothing is asked after sign-in.
|
|
303
143
|
*/
|
|
304
144
|
export declare function initWith(argv: string[], out: InitOutput, interactive: boolean): Promise<number>;
|
|
305
145
|
/** `carrick templates <name>`, so a workflow is one command. */
|