carrick 0.3.65 → 0.3.66
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 +8 -0
- package/dist/init/connect.js +10 -8
- package/dist/init/connect.js.map +1 -1
- package/dist/init/hosted.d.ts +22 -1
- package/dist/init/hosted.js +38 -32
- package/dist/init/hosted.js.map +1 -1
- package/dist/init/mcp.d.ts +0 -2
- package/dist/init/mcp.js +0 -18
- package/dist/init/mcp.js.map +1 -1
- package/dist/init/output.d.ts +44 -0
- package/dist/init/output.js +134 -0
- package/dist/init/output.js.map +1 -0
- package/dist/init/run.d.ts +44 -30
- package/dist/init/run.js +155 -216
- package/dist/init/run.js.map +1 -1
- package/package.json +8 -6
- package/sidecar/dist/src/capture/machinery.d.ts +10 -0
- package/sidecar/dist/src/capture/machinery.js +19 -9
- package/sidecar/dist/src/type-inferrer.d.ts +66 -4
- package/sidecar/dist/src/type-inferrer.js +249 -18
package/dist/init/run.d.ts
CHANGED
|
@@ -1,26 +1,22 @@
|
|
|
1
1
|
import { type ResolvedRepos } from "../auth/read.ts";
|
|
2
|
+
import { type WorkspaceProposal } from "./repos.ts";
|
|
3
|
+
import { type McpOutcome } from "./mcp.ts";
|
|
2
4
|
/**
|
|
3
|
-
* The
|
|
5
|
+
* The one sentence the run ends on.
|
|
4
6
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* proposal this command derived, READS it back against the repo, and then runs
|
|
11
|
-
* the one scan. There is no rehearsal in front of it — `carrick index` is the
|
|
12
|
-
* only scan in the flow (carrick#1008, cloud#832), and a facts-only pass has
|
|
13
|
-
* no user here, so nothing in this copy names one. Keep the two copies in
|
|
14
|
-
* step; the tool's instructions, not this text, decide what gets written.
|
|
7
|
+
* The scaffold tool carries the instructions — which files to create, how to
|
|
8
|
+
* seed `carrick.json` from the proposal, whether to run the scan at all
|
|
9
|
+
* (carrick-cloud#832) — so the terminal names the tool and stops. The copy
|
|
10
|
+
* that used to stand here was a second statement of the same instructions, and
|
|
11
|
+
* two copies of a sequence drift.
|
|
15
12
|
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* cloud#832).
|
|
13
|
+
* The argument is named because the tool's branch turns on it and turns soft
|
|
14
|
+
* without it: `repo` is what resolves the hosted rows, and with no `repo` the
|
|
15
|
+
* response keeps its default ending and tells the agent to run the scan — on a
|
|
16
|
+
* repo CI already indexes, which is the row the whole workspace reads
|
|
17
|
+
* (carrick-cloud `src/tools/scaffold.ts`, cloud#805 item 1).
|
|
22
18
|
*/
|
|
23
|
-
export declare
|
|
19
|
+
export declare const SCAFFOLD_SENTENCE = "Run the carrick scaffold tool for this repo, passing its owner/repo as `repo`, and follow what it returns.";
|
|
24
20
|
export type InitOptions = {
|
|
25
21
|
workspace: string;
|
|
26
22
|
/** Require every proposed GitHub repo to belong to this project. */
|
|
@@ -35,27 +31,45 @@ export declare function parseArgs(argv: string[], cwd?: string): InitOptions | s
|
|
|
35
31
|
* The repos a project holds that this folder does not, one line per project.
|
|
36
32
|
*
|
|
37
33
|
* Carrick answers across every repo in a project, so a machine holding half of
|
|
38
|
-
* one gets half the answers, and the connection
|
|
34
|
+
* one gets half the answers, and the connection line above names only what is
|
|
39
35
|
* here. `project_repos` is the workspace read's answer to that: the whole
|
|
40
36
|
* membership of every project the requested repos are in (carrick#993 row 18).
|
|
41
37
|
* Capped and counted like the identity lines, because a project can hold two
|
|
42
38
|
* hundred.
|
|
43
39
|
*/
|
|
44
40
|
export declare function absentRepos(identity: ResolvedRepos, names: string[], project: string | null): string[];
|
|
41
|
+
/** The repos this run connected, as one line however many there are. */
|
|
42
|
+
export declare function connectedLine(names: string[]): string;
|
|
45
43
|
/**
|
|
46
|
-
*
|
|
44
|
+
* What the derive found, in the words the workspace stated it in.
|
|
47
45
|
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
|
|
54
|
-
|
|
46
|
+
* The manifest kind is the scanner's own `reason` for each repo — "npm
|
|
47
|
+
* workspaces", "pnpm workspaces", "Deno manifests", "carrick.json", "single
|
|
48
|
+
* repository", or a `+` join of them (`src/service_derivation.rs`) — and it is
|
|
49
|
+
* named only where every repo here agrees on one, because a mixed workspace
|
|
50
|
+
* has no one word for what was found.
|
|
51
|
+
*/
|
|
52
|
+
export declare function packagesFound(plan: WorkspaceProposal): string;
|
|
53
|
+
/** The line that states it, and names where the proposal landed. */
|
|
54
|
+
export declare function packagesLine(plan: WorkspaceProposal): string;
|
|
55
|
+
/**
|
|
56
|
+
* The one line for the hooks and the MCP connection.
|
|
57
|
+
*
|
|
58
|
+
* A client is named only where this run changed something for it: an "already
|
|
59
|
+
* connected" line is a line about nothing, and a first run prints four of them
|
|
60
|
+
* (carrick#1026). The hooks are always this repo's, so they are always the
|
|
61
|
+
* subject.
|
|
62
|
+
*/
|
|
63
|
+
export declare function configuredLine(mcp: McpOutcome[]): string;
|
|
64
|
+
/**
|
|
65
|
+
* One line per other client this run wrote a file for, naming that file.
|
|
55
66
|
*
|
|
56
|
-
*
|
|
67
|
+
* The path is printed because this command guessed it: a client detected by its
|
|
68
|
+
* own data directory gets an entry written into its own config file, and a
|
|
69
|
+
* wrong guess has to be one visible line and one entry to delete (`mcp.ts`).
|
|
70
|
+
* A client left exactly as it was gets no line at all (carrick#1026).
|
|
57
71
|
*/
|
|
58
|
-
export declare function
|
|
72
|
+
export declare function mcpClientLines(mcp: McpOutcome[]): string[];
|
|
59
73
|
export declare function init(argv: string[]): Promise<number>;
|
|
60
|
-
/** `carrick templates <name>`, so
|
|
74
|
+
/** `carrick templates <name>`, so a workflow is one command. */
|
|
61
75
|
export declare function templates(argv: string[]): number;
|