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.
Files changed (109) hide show
  1. package/README.md +1 -1
  2. package/bin/carrick.mjs +7 -7
  3. package/dist/auth/read.d.ts +0 -10
  4. package/dist/auth/read.js +3 -11
  5. package/dist/auth/read.js.map +1 -1
  6. package/dist/cli.d.ts +23 -20
  7. package/dist/cli.js +17 -32
  8. package/dist/cli.js.map +1 -1
  9. package/dist/contract.d.ts +72 -0
  10. package/dist/contract.js +14 -0
  11. package/dist/contract.js.map +1 -1
  12. package/dist/hook/checked.d.ts +11 -0
  13. package/dist/hook/checked.js +44 -0
  14. package/dist/hook/checked.js.map +1 -0
  15. package/dist/hook/edited.d.ts +22 -0
  16. package/dist/hook/edited.js +84 -0
  17. package/dist/hook/edited.js.map +1 -0
  18. package/dist/hook/invoker.d.ts +7 -0
  19. package/dist/hook/invoker.js +18 -0
  20. package/dist/hook/invoker.js.map +1 -0
  21. package/dist/hook/late.d.ts +8 -0
  22. package/dist/hook/late.js +60 -0
  23. package/dist/hook/late.js.map +1 -0
  24. package/dist/hook/post-edit.d.ts +0 -22
  25. package/dist/hook/post-edit.js +78 -126
  26. package/dist/hook/post-edit.js.map +1 -1
  27. package/dist/hook/post-read.js +19 -9
  28. package/dist/hook/post-read.js.map +1 -1
  29. package/dist/hook/probe.d.ts +15 -0
  30. package/dist/hook/probe.js +41 -0
  31. package/dist/hook/probe.js.map +1 -0
  32. package/dist/hook/recheck-run.d.ts +2 -0
  33. package/dist/hook/recheck-run.js +28 -0
  34. package/dist/hook/recheck-run.js.map +1 -0
  35. package/dist/hook/rechecks.d.ts +108 -0
  36. package/dist/hook/rechecks.js +537 -0
  37. package/dist/hook/rechecks.js.map +1 -0
  38. package/dist/hook/refresh.d.ts +1 -0
  39. package/dist/hook/refresh.js +1 -1
  40. package/dist/hook/refresh.js.map +1 -1
  41. package/dist/hook/reuse.d.ts +15 -3
  42. package/dist/hook/reuse.js +31 -11
  43. package/dist/hook/reuse.js.map +1 -1
  44. package/dist/hook/session-start.js +14 -0
  45. package/dist/hook/session-start.js.map +1 -1
  46. package/dist/hook/stop-wait.d.ts +17 -0
  47. package/dist/hook/stop-wait.js +120 -0
  48. package/dist/hook/stop-wait.js.map +1 -0
  49. package/dist/hook/stop.js +12 -1
  50. package/dist/hook/stop.js.map +1 -1
  51. package/dist/hook/user-prompt.js +4 -1
  52. package/dist/hook/user-prompt.js.map +1 -1
  53. package/dist/init/agents-section.js +1 -3
  54. package/dist/init/agents-section.js.map +1 -1
  55. package/dist/init/connect.d.ts +6 -107
  56. package/dist/init/connect.js +7 -318
  57. package/dist/init/connect.js.map +1 -1
  58. package/dist/init/doctor.d.ts +8 -71
  59. package/dist/init/doctor.js +37 -223
  60. package/dist/init/doctor.js.map +1 -1
  61. package/dist/init/hosted.d.ts +7 -7
  62. package/dist/init/hosted.js +8 -10
  63. package/dist/init/hosted.js.map +1 -1
  64. package/dist/init/outdated.d.ts +11 -0
  65. package/dist/init/outdated.js +1 -1
  66. package/dist/init/outdated.js.map +1 -1
  67. package/dist/init/output.d.ts +0 -55
  68. package/dist/init/output.js +0 -142
  69. package/dist/init/output.js.map +1 -1
  70. package/dist/init/projects.d.ts +3 -200
  71. package/dist/init/projects.js +22 -352
  72. package/dist/init/projects.js.map +1 -1
  73. package/dist/init/remove.js +4 -5
  74. package/dist/init/remove.js.map +1 -1
  75. package/dist/init/repos.d.ts +25 -53
  76. package/dist/init/repos.js +28 -65
  77. package/dist/init/repos.js.map +1 -1
  78. package/dist/init/run.d.ts +52 -212
  79. package/dist/init/run.js +247 -987
  80. package/dist/init/run.js.map +1 -1
  81. package/dist/init/self-update.d.ts +18 -0
  82. package/dist/init/self-update.js +147 -0
  83. package/dist/init/self-update.js.map +1 -0
  84. package/dist/init/settings.d.ts +2 -0
  85. package/dist/init/settings.js +13 -2
  86. package/dist/init/settings.js.map +1 -1
  87. package/dist/render.d.ts +24 -6
  88. package/dist/render.js +135 -28
  89. package/dist/render.js.map +1 -1
  90. package/dist/templates.d.ts +1 -6
  91. package/dist/templates.js +4 -14
  92. package/dist/templates.js.map +1 -1
  93. package/package.json +6 -6
  94. package/plugin/.claude-plugin/plugin.json +1 -1
  95. package/plugin/hooks/hooks.json +3 -2
  96. package/sidecar/dist/src/capture/api.d.ts +2 -2
  97. package/sidecar/dist/src/capture/deno-project.js +5 -1
  98. package/sidecar/dist/src/capture/index.d.ts +18 -0
  99. package/sidecar/dist/src/capture/index.js +73 -0
  100. package/sidecar/dist/src/index.js +1 -1
  101. package/sidecar/dist/src/library-claims.d.ts +4 -0
  102. package/sidecar/dist/src/library-claims.js +2 -2
  103. package/sidecar/dist/src/project-loader.js +9 -2
  104. package/sidecar/dist/src/type-inferrer.d.ts +17 -2
  105. package/sidecar/dist/src/type-inferrer.js +59 -16
  106. package/sidecar/dist/src/types.d.ts +26 -0
  107. package/sidecar/dist/src/validators.d.ts +6 -0
  108. package/sidecar/dist/src/validators.js +2 -0
  109. package/templates/carrick.json +0 -7
@@ -8,8 +8,6 @@
8
8
  // the file is somebody's and is never read for meaning. The file is created
9
9
  // when it is missing, and deleted again on remove only when our section was
10
10
  // all it held.
11
- //
12
- // carrick-cloud's scaffold (cloud#2289) must write this same block.
13
11
  import fs from "node:fs";
14
12
  import path from "node:path";
15
13
  import { writeIfChanged } from "./files.js";
@@ -21,7 +19,7 @@ export const CHECK_SECTION = [
21
19
  START,
22
20
  "## Carrick check",
23
21
  "",
24
- "Before you say a change is done, run `carrick check --changed` alongside the tests. The per-edit check covers only the file each edit touched; `check --changed` checks every changed file on this branch against the other services. It can take a few minutes: allow up to five. Then tell the user in one line what Carrick checked and found (for example \"Carrick checked 3 changed files against 35 services: no contract problems\"). If it exits non-zero, fix what it reports, or say why it is wrong. When you added functions, use the carrick-reuse skill on them.",
22
+ "When your change touches a route, a call to another service, an event or a type another service reads, run `carrick check --changed` before you say it is done. The per-edit check covers only the file each edit touched; `check --changed` checks every changed file on this branch against the other services. Then tell the user in one line what Carrick checked and found (for example \"Carrick checked 3 changed files against 35 services: no contract problems\"). If it exits non-zero, fix what it reports, or say why it is wrong. When you added functions, use the carrick-reuse skill on them.",
25
23
  END,
26
24
  "",
27
25
  ].join("\n");
@@ -1 +1 @@
1
- {"version":3,"file":"agents-section.js","sourceRoot":"","sources":["../../src/init/agents-section.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,2EAA2E;AAC3E,mCAAmC;AACnC,EAAE;AACF,4EAA4E;AAC5E,2EAA2E;AAC3E,+EAA+E;AAC/E,4EAA4E;AAC5E,4EAA4E;AAC5E,eAAe;AACf,EAAE;AACF,oEAAoE;AAEpE,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,MAAM,CAAC,MAAM,WAAW,GAAG,WAAW,CAAC;AAEvC,MAAM,KAAK,GAAG,8BAA8B,CAAC;AAC7C,MAAM,GAAG,GAAG,4BAA4B,CAAC;AAEzC,qEAAqE;AACrE,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,KAAK;IACL,kBAAkB;IAClB,EAAE;IACF,ijBAAijB;IACjjB,GAAG;IACH,EAAE;CACH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,iFAAiF;AACjF,SAAS,IAAI,CAAC,IAAY;IACxB,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,IAAI,KAAK,CAAC,CAAC;QAAE,OAAO,IAAI,CAAC;IAC7B,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;IACpC,IAAI,GAAG,KAAK,CAAC,CAAC;QAAE,OAAO,IAAI,CAAC;IAC5B,MAAM,KAAK,GAAG,GAAG,GAAG,GAAG,CAAC,MAAM,CAAC;IAC/B,OAAO,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E,IAAI,CAAC,OAAO,CAAC,OAAO;QAAE,OAAO,IAAI,CAAC;IAClC,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC;QAClB,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QAClB,OAAO,cAAc,CAAC;IACxB,CAAC;IACD,EAAE,CAAC,aAAa,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IACvC,OAAO,iBAAiB,CAAC;AAC3B,CAAC"}
@@ -1,110 +1,9 @@
1
- import { type ResolvedRepos } from "../auth/read.ts";
2
- import { type AssignOutcome } from "./projects.ts";
3
- import type { StepProgress, StepReport } from "./output.ts";
4
1
  /**
5
- * Show a status that updates in place while `work` runs, then its report.
2
+ * The dashboard page init sends a reader to: where a workspace's repos are
3
+ * added, and where each one shows how far its index has got.
6
4
  *
7
- * `InitOutput.step` in a run: a spinner on a terminal, one line per change on
8
- * a pipe. The default is the pipe's behaviour, for a caller with no output.
5
+ * The only page there is to send anyone to. Repos join the workspace through
6
+ * the GitHub App and the dashboard, never from this command, because the
7
+ * config and the index are Carrick's (carrick#3361).
9
8
  */
10
- export type Track = <T>(label: string, work: (progress: StepProgress) => Promise<T>, report: (value: T) => StepReport) => Promise<T>;
11
- type ConnectOptions = {
12
- interactive: boolean;
13
- say: (message: string) => void;
14
- project?: string;
15
- /** True when this run has already seen or created the project (carrick#955). */
16
- projectExists?: boolean;
17
- /**
18
- * The repos this run may take OUT of another project, lowercased.
19
- *
20
- * A move changes what every agent querying either project can see, so it is
21
- * named in the proposal and consented to there; this set is that consent
22
- * arriving (carrick#1338). A repo that was not connected at all when the
23
- * proposal was read is in it too: the App grant lands it in the workspace's
24
- * default project seconds later, and placing it where the run asked for is
25
- * the grant finishing rather than a move out of a project anyone chose.
26
- */
27
- movable?: Set<string>;
28
- /**
29
- * The movable repos whose move is said, lowercased: the ones in a project
30
- * somebody chose. A repo the App grant has just put in the default project
31
- * moves silently, because nobody chose where it was (carrick#1489).
32
- */
33
- announce?: Set<string>;
34
- /** How a project is printed: display name beside slug, where one is known. */
35
- label?: (slug: string) => string;
36
- /**
37
- * True where the workspace read says the signed-in user is a member, not an
38
- * owner or an admin. Only they are told who can finish a browser step: an
39
- * owner told to go and find an owner was the line in carrick#1512.
40
- */
41
- member?: boolean;
42
- /** How to run init again, for the member's line: "run carrick init in ~/shop again". */
43
- again?: string;
44
- open?: (url: string) => Promise<boolean>;
45
- poll?: (signal?: AbortSignal) => Promise<ResolvedRepos>;
46
- /** Placing repos in the project, injected so tests state the server (carrick#999). */
47
- assign?: (repos: string[], signal?: AbortSignal) => Promise<AssignOutcome>;
48
- wait?: (signal: AbortSignal) => Promise<void>;
49
- /** The live status line the wait is shown on (carrick#1489). */
50
- track?: Track;
51
- signal?: AbortSignal;
52
- };
53
- /**
54
- * The line before a member's wait.
55
- *
56
- * What is waited on is a page in the Carrick dashboard, and both of them —
57
- * the App grant and the Repos page — refuse anyone who is not an owner or an
58
- * admin of the workspace. Waiting thirty minutes on a page you may not use is
59
- * the friction this says out loud (carrick#993), to the members it is true of
60
- * (carrick#1512). `again` is how to run init again, which names the folder
61
- * when the run set up the one above where it started.
62
- */
63
- export declare function adminWait(again?: string): string;
64
- /** The dashboard pages init sends a reader to, for one workspace. */
65
- export declare function workspaceUrls(slug: string): {
66
- connect: string;
67
- projects: string;
68
- repos: string;
69
- };
70
- /** Every requested repo must be present, connected, and assigned to this project. */
71
- export declare function reposAreInProject(identity: ResolvedRepos, repos: string[], project: string): boolean;
72
- /**
73
- * The project each requested repo is in, in the order they were requested,
74
- * with null for one this workspace does not hold.
75
- *
76
- * The project step reads this before it asks anything: a repo that is already
77
- * in a project answers the question on its own (carrick#987).
78
- */
79
- export declare function projectAssignments(identity: ResolvedRepos, repos: string[]): Array<string | null>;
80
- /** The requested repos this read says are not connected, as the server spells them. */
81
- export declare function unconnectedRepos(identity: ResolvedRepos, repos: string[]): string[];
82
- /**
83
- * The line that sends a reader to the GitHub App, naming the repos it is for,
84
- * for a run that cannot open the page itself: one with no terminal, and one
85
- * whose wait was stopped with the grant still to do. Printed only for repos a
86
- * read taken just now says are unconnected: the grant page re-asks GitHub for
87
- * the whole repo list, which is wasted on a repo that is already connected
88
- * (carrick#1489).
89
- */
90
- export declare function connectLine(unconnected: string[], total: number, url: string): string;
91
- /**
92
- * The GitHub App grant is the only browser step; the CLI places the repos.
93
- *
94
- * Assignment is a server action on this credential (carrick#999), tried for
95
- * every connected repo the moment the poll sees it, so nobody has to open the
96
- * Repos page and move it by hand. An API that does not serve the action yet
97
- * answers an absence, and the browser instruction is what it falls back to.
98
- * Ctrl-C stops verification.
99
- *
100
- * What it prints is the state and the next step, not the traffic
101
- * (carrick#1489): the wait is one status line that updates in place, a move
102
- * the run was allowed to make is not announced (the first one out of an
103
- * untouched default project is the App grant finishing, not a decision), and
104
- * a repo gets a line of its own only when something about it failed.
105
- *
106
- * `initial` must be a read taken just before this call: it decides which
107
- * repos are sent to the grant page and whether there is anything to wait for.
108
- */
109
- export declare function connectRepos(token: string, repos: string[], initial: ResolvedRepos, options: ConnectOptions): Promise<ResolvedRepos>;
110
- export {};
9
+ export declare function reposUrl(slug: string): string;
@@ -1,324 +1,13 @@
1
- import { setTimeout } from "node:timers/promises";
2
1
  import { APP_BASE } from "../auth/credentials.js";
3
- import { openBrowser } from "../auth/oauth.js";
4
- import { resolveRepos } from "../auth/read.js";
5
- import { assignRepos } from "./projects.js";
6
2
  /**
7
- * The line before a member's wait.
3
+ * The dashboard page init sends a reader to: where a workspace's repos are
4
+ * added, and where each one shows how far its index has got.
8
5
  *
9
- * What is waited on is a page in the Carrick dashboard, and both of them —
10
- * the App grant and the Repos page — refuse anyone who is not an owner or an
11
- * admin of the workspace. Waiting thirty minutes on a page you may not use is
12
- * the friction this says out loud (carrick#993), to the members it is true of
13
- * (carrick#1512). `again` is how to run init again, which names the folder
14
- * when the run set up the one above where it started.
6
+ * The only page there is to send anyone to. Repos join the workspace through
7
+ * the GitHub App and the dashboard, never from this command, because the
8
+ * config and the index are Carrick's (carrick#3361).
15
9
  */
16
- export function adminWait(again = "run carrick init again") {
17
- return `A workspace owner or admin must do this; press Ctrl-C and ${again} once they have.`;
18
- }
19
- /** The dashboard pages init sends a reader to, for one workspace. */
20
- export function workspaceUrls(slug) {
21
- const workspace = `${APP_BASE}/w/${encodeURIComponent(slug)}`;
22
- return { connect: `${workspace}/connect`, projects: `${workspace}/projects`, repos: `${workspace}/repos` };
23
- }
24
- /** Every requested repo must be present, connected, and assigned to this project. */
25
- export function reposAreInProject(identity, repos, project) {
26
- if (!identity.workspace.installed || repos.length === 0)
27
- return false;
28
- return repos.every((name) => {
29
- const repo = identity.repos.find((candidate) => candidate.full_name.toLowerCase() === name.toLowerCase());
30
- return repo?.connected === true && repo.project_slug === project;
31
- });
32
- }
33
- /**
34
- * The project each requested repo is in, in the order they were requested,
35
- * with null for one this workspace does not hold.
36
- *
37
- * The project step reads this before it asks anything: a repo that is already
38
- * in a project answers the question on its own (carrick#987).
39
- */
40
- export function projectAssignments(identity, repos) {
41
- return repos.map((name) => {
42
- const repo = identity.repos.find((candidate) => candidate.full_name.toLowerCase() === name.toLowerCase());
43
- return repo?.connected === true ? repo.project_slug : null;
44
- });
45
- }
46
- /** The requested repos this read says are not connected, as the server spells them. */
47
- export function unconnectedRepos(identity, repos) {
48
- return repos
49
- .map((name) => ({
50
- name,
51
- row: identity.repos.find((candidate) => candidate.full_name.toLowerCase() === name.toLowerCase()),
52
- }))
53
- .filter(({ row }) => !identity.workspace.installed || row?.connected !== true)
54
- .map(({ name, row }) => row?.full_name ?? name);
55
- }
56
- /**
57
- * The line that sends a reader to the GitHub App, naming the repos it is for,
58
- * for a run that cannot open the page itself: one with no terminal, and one
59
- * whose wait was stopped with the grant still to do. Printed only for repos a
60
- * read taken just now says are unconnected: the grant page re-asks GitHub for
61
- * the whole repo list, which is wasted on a repo that is already connected
62
- * (carrick#1489).
63
- */
64
- export function connectLine(unconnected, total, url) {
65
- const which = unconnected.length === 1
66
- ? `${unconnected[0]} is not connected yet`
67
- : unconnected.length === total && total === 2
68
- ? "Neither repo is connected yet"
69
- : unconnected.length === total
70
- ? `None of the ${total} repos is connected yet`
71
- : `${unconnected.length} of ${total} repos are not connected yet`;
72
- const on = unconnected.length === 1 ? "it" : total === 2 && unconnected.length === 2 ? "both" : "them";
73
- return `${which}. Install the Carrick GitHub App on ${on}: ${url}`;
74
- }
75
- /** "1 repo", "2 repos". */
76
- function repoCount(count) {
77
- return `${count} repo${count === 1 ? "" : "s"}`;
78
- }
79
- /**
80
- * The repos this run may still place: connected to the workspace, in some
81
- * other project than the one asked for, and consented to in the proposal.
82
- *
83
- * A connected repo that was not consented to is left exactly where it is. The
84
- * caller says so once and prints the browser step, because a project move is
85
- * not something a `--yes` to a list of packages grants (carrick#1338).
86
- */
87
- function misplaced(identity, repos, project, movable) {
88
- return repos.filter((name) => {
89
- const repo = identity.repos.find((candidate) => candidate.full_name.toLowerCase() === name.toLowerCase());
90
- return (repo?.connected === true && repo.project_slug !== project && movable.has(name.toLowerCase()));
91
- });
92
- }
93
- /** The pipe's rendering of a tracked wait: each distinct status once, then the report. */
94
- function plainTrack(say) {
95
- return async (_label, work, report) => {
96
- const value = await work((text) => say(text));
97
- say(report(value).text);
98
- return value;
99
- };
100
- }
101
- /**
102
- * The GitHub App grant is the only browser step; the CLI places the repos.
103
- *
104
- * Assignment is a server action on this credential (carrick#999), tried for
105
- * every connected repo the moment the poll sees it, so nobody has to open the
106
- * Repos page and move it by hand. An API that does not serve the action yet
107
- * answers an absence, and the browser instruction is what it falls back to.
108
- * Ctrl-C stops verification.
109
- *
110
- * What it prints is the state and the next step, not the traffic
111
- * (carrick#1489): the wait is one status line that updates in place, a move
112
- * the run was allowed to make is not announced (the first one out of an
113
- * untouched default project is the App grant finishing, not a decision), and
114
- * a repo gets a line of its own only when something about it failed.
115
- *
116
- * `initial` must be a read taken just before this call: it decides which
117
- * repos are sent to the grant page and whether there is anything to wait for.
118
- */
119
- export async function connectRepos(token, repos, initial, options) {
120
- const urls = workspaceUrls(initial.workspace.slug);
121
- const poll = options.poll ?? ((signal) => resolveRepos(token, repos, fetch, signal));
122
- const project = options.project;
123
- const label = options.label ?? ((slug) => slug);
124
- const movable = options.movable ?? new Set();
125
- const announce = options.announce ?? new Set();
126
- const track = options.track ?? plainTrack(options.say);
127
- const assign = options.assign ??
128
- ((names, signal) => assignRepos(token, project ?? "", names, fetch, signal));
129
- // A project this run has not seen in the workspace may not exist at all, so
130
- // there is nothing to place repos into and the browser owns both steps.
131
- let placeable = project !== undefined && options.projectExists === true;
132
- let saidBrowserAssign = false;
133
- // What happened to a repo that failed, said once each. During the wait the
134
- // status line owns the terminal, so these are held until it ends.
135
- const said = new Set();
136
- let held = null;
137
- const report = (line) => {
138
- if (said.has(line))
139
- return;
140
- said.add(line);
141
- if (held !== null)
142
- held.push(line);
143
- else
144
- options.say(line);
145
- };
146
- const browserAssign = () => {
147
- if (saidBrowserAssign)
148
- return;
149
- saidBrowserAssign = true;
150
- report(`Assign the requested repos: ${urls.repos}`);
151
- report(` Select ${repos.join(", ")}, choose the target project in "Move selected to", then choose "Move selected".`);
152
- };
153
- /** Place what can be placed; true when something moved and is worth re-reading. */
154
- const place = async (identity, signal) => {
155
- if (!placeable || project === undefined)
156
- return false;
157
- const pending = misplaced(identity, repos, project, movable);
158
- if (pending.length === 0)
159
- return false;
160
- const outcome = await assign(pending, signal);
161
- if (outcome.kind !== "placed") {
162
- // Neither a refusal nor an absence is worth retrying every five seconds,
163
- // and both leave the assignment to the browser.
164
- placeable = false;
165
- if (outcome.kind === "refused") {
166
- report(`Carrick did not assign the requested repos to ${label(project)}: ${outcome.message}`);
167
- }
168
- return false;
169
- }
170
- let moved = false;
171
- for (const repo of outcome.repos) {
172
- if (!repo.assigned) {
173
- report(`${repo.full_name} was not moved: ${repo.reason ?? "Carrick gave no reason."}`);
174
- continue;
175
- }
176
- moved = moved || repo.moved;
177
- const row = identity.repos.find((candidate) => candidate.full_name.toLowerCase() === repo.full_name.toLowerCase());
178
- const from = row?.connected === true ? row.project_slug : null;
179
- if (repo.moved && from && announce.has(repo.full_name.toLowerCase())) {
180
- report(`Moved ${repo.full_name} from ${label(from)} into ${label(project)}.`);
181
- }
182
- }
183
- return moved;
184
- };
185
- /** Place, then read the assignment back: a claim is only made on the read. */
186
- const settle = async (identity, signal) => {
187
- if (!(await place(identity, signal)))
188
- return identity;
189
- return poll(signal);
190
- };
191
- /**
192
- * Whether a person has to move a repo on the Repos page: this run cannot
193
- * place repos at all, or a connected repo sits in another project and
194
- * nobody consented to moving it (carrick#1338).
195
- */
196
- const byHand = (identity) => project !== undefined &&
197
- (!placeable ||
198
- identity.repos.some((repo) => repo.connected &&
199
- repo.project_slug !== project &&
200
- repos.some((name) => name.toLowerCase() === repo.full_name.toLowerCase()) &&
201
- !movable.has(repo.full_name.toLowerCase())));
202
- const settled = (identity) => project !== undefined
203
- ? reposAreInProject(identity, repos, project)
204
- : identity.workspace.installed && identity.repos.every((repo) => repo.connected);
205
- let latest = initial;
206
- if (project !== undefined) {
207
- if (settled(latest))
208
- return latest;
209
- latest = await settle(latest, options.signal);
210
- if (settled(latest))
211
- return latest;
212
- // The create step is skipped only when this run has just seen the project
213
- // in the workspace or created it.
214
- if (!options.projectExists) {
215
- options.say(`Create project "${project}" if needed: ${urls.projects}`);
216
- options.say(` Choose Create project, enter a name, and set the slug to "${project}".`);
217
- }
218
- }
219
- else if (settled(latest)) {
220
- return latest;
221
- }
222
- // The grant itself is not said here: the list the reader said yes to named
223
- // it, with its link where there is no terminal to open it from, and a
224
- // second line saying the same thing was the repeat in carrick#1512.
225
- const unconnected = unconnectedRepos(latest, repos);
226
- // Only where this run cannot do the placing itself.
227
- if (byHand(latest))
228
- browserAssign();
229
- if (!options.interactive) {
230
- if (project !== undefined) {
231
- options.say(`Project ${label(project)} is not verified for every requested repo.`);
232
- }
233
- return latest;
234
- }
235
- // Where the browser is pointed: at the project it must create, else at the
236
- // grant — only where a repo really is unconnected — else, only where this
237
- // run cannot place them itself, at the page that moves them.
238
- const target = project !== undefined && !options.projectExists
239
- ? urls.projects
240
- : unconnected.length > 0
241
- ? urls.connect
242
- : byHand(latest)
243
- ? urls.repos
244
- : null;
245
- // Who can finish a browser step, said only where there is one — a wait on
246
- // placements this run makes itself has nothing for an owner to do — and
247
- // only to a member, who is the one it is news to (carrick#1512).
248
- if (target !== null) {
249
- if (options.member === true)
250
- options.say(adminWait(options.again));
251
- // The page is named only where it could not be opened: a reader looking
252
- // at it in the browser does not need its address as well.
253
- const opened = await (options.open ?? openBrowser)(target).catch(() => false);
254
- if (!opened)
255
- options.say(`Open ${target} in your browser.`);
256
- }
257
- /** Where the wait stands, as one line. */
258
- const status = (identity) => {
259
- const missing = unconnectedRepos(identity, repos).length;
260
- if (missing > 0) {
261
- return `Waiting for GitHub: ${repos.length - missing} of ${repoCount(repos.length)} connected`;
262
- }
263
- if (project === undefined)
264
- return `Waiting for GitHub: ${repoCount(repos.length)} connected`;
265
- // The move instruction is held with the other lines while this shows, so
266
- // the page it names is on the status line itself.
267
- return `Waiting for ${repoCount(repos.length)} to reach ${label(project)}${byHand(identity) ? `: move them at ${urls.repos}` : ""}`;
268
- };
269
- const controller = new AbortController();
270
- const cancel = () => controller.abort();
271
- process.once("SIGINT", cancel);
272
- const signal = AbortSignal.any([controller.signal, AbortSignal.timeout(30 * 60_000), ...(options.signal ? [options.signal] : [])]);
273
- held = [];
274
- let done = false;
275
- try {
276
- await track(status(latest), async (progress) => {
277
- let shown = status(latest);
278
- progress(`${shown}. Press Ctrl-C to stop.`);
279
- try {
280
- while (!signal.aborted) {
281
- await (options.wait ?? (async (signal) => { await setTimeout(5000, undefined, { signal }); }))(signal);
282
- signal.throwIfAborted();
283
- latest = await settle(await poll(signal), signal);
284
- if (settled(latest)) {
285
- done = true;
286
- return;
287
- }
288
- if (byHand(latest))
289
- browserAssign();
290
- const now = status(latest);
291
- if (now !== shown) {
292
- shown = now;
293
- progress(`${now}. Press Ctrl-C to stop.`);
294
- }
295
- }
296
- }
297
- catch (error) {
298
- if (!signal.aborted)
299
- throw error;
300
- }
301
- }, () => done
302
- ? {
303
- kind: "done",
304
- // The count alone: the line after the wait names the project
305
- // and its repos (carrick#1512).
306
- text: `${repoCount(repos.length)} connected`,
307
- }
308
- : {
309
- kind: "warn",
310
- text: project !== undefined
311
- ? `Stopped waiting; project ${label(project)} is not verified for every requested repo.`
312
- : "Stopped waiting for repository connections; continuing local setup.",
313
- });
314
- }
315
- finally {
316
- process.removeListener("SIGINT", cancel);
317
- const lines = held;
318
- held = null;
319
- for (const line of lines)
320
- options.say(line);
321
- }
322
- return latest;
10
+ export function reposUrl(slug) {
11
+ return `${APP_BASE}/w/${encodeURIComponent(slug)}/repos`;
323
12
  }
324
13
  //# sourceMappingURL=connect.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"connect.js","sourceRoot":"","sources":["../../src/init/connect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAsB,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,WAAW,EAAsB,MAAM,eAAe,CAAC;AA0DhE;;;;;;;;;GASG;AACH,MAAM,UAAU,SAAS,CAAC,QAAgB,wBAAwB;IAChE,OAAO,6DAA6D,KAAK,kBAAkB,CAAC;AAC9F,CAAC;AAED,qEAAqE;AACrE,MAAM,UAAU,aAAa,CAAC,IAAY;IACxC,MAAM,SAAS,GAAG,GAAG,QAAQ,MAAM,kBAAkB,CAAC,IAAI,CAAC,EAAE,CAAC;IAC9D,OAAO,EAAE,OAAO,EAAE,GAAG,SAAS,UAAU,EAAE,QAAQ,EAAE,GAAG,SAAS,WAAW,EAAE,KAAK,EAAE,GAAG,SAAS,QAAQ,EAAE,CAAC;AAC7G,CAAC;AAED,q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G,IAAI,CAAC;QACnB,IAAI,GAAG,IAAI,CAAC;QACZ,KAAK,MAAM,IAAI,IAAI,KAAK;YAAE,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAC9C,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
1
+ {"version":3,"file":"connect.js","sourceRoot":"","sources":["../../src/init/connect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAElD;;;;;;;GAOG;AACH,MAAM,UAAU,QAAQ,CAAC,IAAY;IACnC,OAAO,GAAG,QAAQ,MAAM,kBAAkB,CAAC,IAAI,CAAC,QAAQ,CAAC;AAC3D,CAAC"}
@@ -1,7 +1,6 @@
1
1
  import { type McpInspection } from "./mcp.ts";
2
2
  import { type InitOutput } from "./output.ts";
3
3
  import { type GlobalCarrick } from "../global-install.ts";
4
- import { resolveRepos } from "../auth/read.ts";
5
4
  import { type InstalledSkill } from "./task-skills.ts";
6
5
  import type { StatusResult } from "../contract.ts";
7
6
  export type DoctorOptions = {
@@ -76,78 +75,16 @@ export declare function declaredServices(config: Record<string, unknown>): Decla
76
75
  * file on every monorepo that has one.
77
76
  */
78
77
  export declare function checkDeclaredPaths(repos: ConfiguredRepo[]): Line[];
79
- /** The lines of a file that state behaviour: no comments, no blank lines. */
80
- export declare function functionalLines(body: string): string[];
81
- export type Drift = {
82
- /** Template lines this file does not have. The finding. */
83
- missing: string[];
84
- /** Lines this file has that the template does not. Context, never a finding. */
85
- added: string[];
86
- /** Both, interleaved in file order, as `-`/`+` lines. */
87
- diff: string[];
88
- };
89
- /**
90
- * What one file differs from a rendered template by, comment-insensitively.
91
- *
92
- * Comments and blank lines are dropped from both sides first. The template is
93
- * two fifths comment, so comparing them would report a finding for every line
94
- * a reader trimmed and for every rewording of an explanation — neither of
95
- * which changes what CI runs.
96
- *
97
- * Only `missing` is a finding. A workflow with steps of its own is the case
98
- * the template itself invites ("If you add deploy steps to this file..."), so
99
- * added lines are printed as context and fail nothing.
100
- */
101
- export declare function templateDrift(actual: string, expected: string): Drift;
102
- /**
103
- * The variables a workflow on disk states, so the comparison is about drift
104
- * rather than about the two values the template exists to parameterise.
105
- *
106
- * A repo pinned to an older action ref, or building on a branch that is not
107
- * `main`, is not drift: it is the template with its variables filled in. Both
108
- * are read back out of the file, and where one cannot be read the default is
109
- * used and the caller says so.
110
- */
111
- export declare function workflowVariables(body: string): {
112
- variables: Record<string, string>;
113
- unread: string[];
114
- };
115
- /**
116
- * A ref that will never move, said plainly.
117
- *
118
- * A finding rather than a note, by the rule at the top of this file: a
119
- * repository whose CI is frozen on an old scanner keeps re-indexing itself with
120
- * defects that are already fixed, and the whole point of the index is that it
121
- * is current. The way out is one token in one line.
122
- */
123
- export declare function pinnedActionRef(ref: string | undefined): string | null;
124
- /** Who builds this workspace's index. Only a read that says "cloud" is cloud. */
125
- export type IndexLane = "cloud" | "laptop";
126
- /** What the lane read needs; every part is replaceable so a test reaches no network. */
127
- export type LaneDeps = {
128
- credential: () => {
129
- token: string;
130
- } | null;
131
- resolve: typeof resolveRepos;
132
- repoName: (root: string) => string | null;
133
- };
134
- /**
135
- * The lane of the signed-in workspace, from one `resolve-repos` read.
136
- *
137
- * No credential, no repo with a GitHub remote, a failed read, a missing field
138
- * or any other value is the laptop lane: doctor then prints what it always
139
- * has. The read never fails doctor. Only the names of the repos Carrick
140
- * indexes here are sent (carrick#1338).
141
- */
142
- export declare function readLane(repos: ConfiguredRepo[], deps?: LaneDeps): Promise<IndexLane>;
143
78
  /**
144
- * The CI workflow of every configured repo, against the template this package
145
- * renders.
79
+ * A Carrick workflow left in a repo, which nothing needs any more.
146
80
  *
147
- * Only repos with a `carrick.json` are asked for one: a sibling clone that
148
- * Carrick does not index owes CI nothing.
81
+ * Carrick scans every repo in its own runners on every push (carrick#2219),
82
+ * so a workflow file only spends CI minutes, and a missing one is the
83
+ * expected state. Every repo is read, with or without a committed config: the
84
+ * workflow and the config were written together by the old scaffold, and
85
+ * either can be left behind. A note, never a finding (carrick#3361).
149
86
  */
150
- export declare function checkWorkflow(repos: ConfiguredRepo[], lane?: IndexLane): Line[];
87
+ export declare function checkWorkflow(repos: ConfiguredRepo[]): Line[];
151
88
  /** What the hook check needs to know about this machine. */
152
89
  export type HookMachine = {
153
90
  /** The absolute path `command` resolves to on PATH, through symlinks. */
@@ -258,5 +195,5 @@ export declare function checkVersion(env?: NodeJS.ProcessEnv, fetchImpl?: typeof
258
195
  * a `which` inside an npx run answers with the npx cache's own shim.
259
196
  */
260
197
  export declare function checkPathVersion(workspace: string, found: GlobalCarrick | null): Line[];
261
- export declare function doctor(argv: string[], out?: InitOutput, laneDeps?: LaneDeps): Promise<number>;
198
+ export declare function doctor(argv: string[], out?: InitOutput): Promise<number>;
262
199
  export {};