@clipboard-health/groundcrew 3.0.0 → 3.0.2
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 +74 -19
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +19 -14
- package/dist/commands/doctor.d.ts +2 -0
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +9 -4
- package/dist/commands/ticketCheck.d.ts +22 -0
- package/dist/commands/ticketCheck.d.ts.map +1 -0
- package/dist/commands/ticketCheck.js +23 -0
- package/dist/commands/ticketDoctor.d.ts +168 -20
- package/dist/commands/ticketDoctor.d.ts.map +1 -1
- package/dist/commands/ticketDoctor.js +766 -133
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/lib/usage.d.ts.map +1 -1
- package/dist/lib/usage.js +11 -3
- package/dist/lib/util.d.ts +18 -0
- package/dist/lib/util.d.ts.map +1 -1
- package/dist/lib/util.js +30 -0
- package/dist/lib/worktrees.d.ts +16 -0
- package/dist/lib/worktrees.d.ts.map +1 -1
- package/dist/lib/worktrees.js +5 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -7,5 +7,6 @@ export type { Config, ModelDefinition, ResolvedConfig } from "./lib/config.ts";
|
|
|
7
7
|
export { loadConfig } from "./lib/config.ts";
|
|
8
8
|
export { fetchBlockersForTicket, fetchInProgressIssueCount, fetchRawLinearIssue, fetchResolvedIssue, resolveModelFor, resolveRepositoryFor, type ModelResolution, type RawLinearIssue, type RepositoryResolution, } from "./lib/boardSource.ts";
|
|
9
9
|
export { getUsageByModel, type UsageByModel } from "./lib/usage.ts";
|
|
10
|
-
export {
|
|
10
|
+
export type { TicketCheck } from "./commands/ticketCheck.ts";
|
|
11
|
+
export { ticketDoctor, type TicketDoctorDependencies, type TicketDoctorResult, type TicketDoctorVerdict, } from "./commands/ticketDoctor.ts";
|
|
11
12
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,gBAAgB,EAAE,KAAK,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAChG,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,KAAK,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACnF,OAAO,EAAE,cAAc,EAAE,KAAK,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC1F,YAAY,EAAE,MAAM,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAC/E,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EACL,sBAAsB,EACtB,yBAAyB,EACzB,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,EACf,oBAAoB,EACpB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,oBAAoB,GAC1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,eAAe,EAAE,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACpE,OAAO,EACL,YAAY,EACZ,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,gBAAgB,EAAE,KAAK,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAChG,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,KAAK,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACnF,OAAO,EAAE,cAAc,EAAE,KAAK,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC1F,YAAY,EAAE,MAAM,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAC/E,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EACL,sBAAsB,EACtB,yBAAyB,EACzB,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,EACf,oBAAoB,EACpB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,oBAAoB,GAC1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,eAAe,EAAE,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACpE,YAAY,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EACL,YAAY,EACZ,KAAK,wBAAwB,EAC7B,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,GACzB,MAAM,4BAA4B,CAAC"}
|
package/dist/lib/usage.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage.d.ts","sourceRoot":"","sources":["../../src/lib/usage.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAmB,cAAc,EAAE,MAAM,aAAa,CAAC;AA+BnE,UAAU,eAAe;IACvB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC;AAED,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;AAE3D;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,EAAE,eAK7B,CAAC;
|
|
1
|
+
{"version":3,"file":"usage.d.ts","sourceRoot":"","sources":["../../src/lib/usage.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAmB,cAAc,EAAE,MAAM,aAAa,CAAC;AA+BnE,UAAU,eAAe;IACvB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC;AAED,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;AAE3D;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,EAAE,eAK7B,CAAC;AAiHF,wBAAsB,eAAe,CACnC,MAAM,EAAE,cAAc,EACtB,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,YAAY,CAAC,CA6BvB"}
|
package/dist/lib/usage.js
CHANGED
|
@@ -24,8 +24,16 @@ export const EXHAUSTED_USAGE = {
|
|
|
24
24
|
const MS_PER_MINUTE = 60_000;
|
|
25
25
|
const PERCENT_FRACTION_DIVISOR = 100;
|
|
26
26
|
const CODEXBAR_TIMEOUT_MS = 30_000;
|
|
27
|
-
function defaultCodexbarSource() {
|
|
28
|
-
|
|
27
|
+
function defaultCodexbarSource(provider) {
|
|
28
|
+
if (process.platform !== "darwin") {
|
|
29
|
+
return "cli";
|
|
30
|
+
}
|
|
31
|
+
// codexbar's CLI `auto` for Codex/Claude probes browser sessions before OAuth,
|
|
32
|
+
// while the menu bar app prefers OAuth. Match the app so gates follow the CLI account.
|
|
33
|
+
if (provider === "codex" || provider === "claude") {
|
|
34
|
+
return "oauth";
|
|
35
|
+
}
|
|
36
|
+
return "auto";
|
|
29
37
|
}
|
|
30
38
|
async function codexbarUsage(definition, signal) {
|
|
31
39
|
/* v8 ignore next 3 @preserve -- callers filter to definitions with usage; this is a defensive guard */
|
|
@@ -34,7 +42,7 @@ async function codexbarUsage(definition, signal) {
|
|
|
34
42
|
}
|
|
35
43
|
const { provider } = definition.usage.codexbar;
|
|
36
44
|
const configuredSource = definition.usage.codexbar.source;
|
|
37
|
-
const source = configuredSource ?? defaultCodexbarSource();
|
|
45
|
+
const source = configuredSource ?? defaultCodexbarSource(provider);
|
|
38
46
|
const arguments_ = [
|
|
39
47
|
"usage",
|
|
40
48
|
"--provider",
|
package/dist/lib/util.d.ts
CHANGED
|
@@ -16,6 +16,24 @@ export interface ResolvedLinearApiKey {
|
|
|
16
16
|
}
|
|
17
17
|
export declare function resolveLinearApiKey(): ResolvedLinearApiKey | undefined;
|
|
18
18
|
export declare function getLinearClient(): LinearClient;
|
|
19
|
+
/**
|
|
20
|
+
* Returns a zero-arg getter that lazily constructs (and caches) a Linear
|
|
21
|
+
* client on first call. Used by CLI entry points that may not need the
|
|
22
|
+
* client at all (e.g. `--no-linear`), so we avoid blowing up on a missing
|
|
23
|
+
* API key when no Linear call is actually made. The factory is taken as a
|
|
24
|
+
* parameter (rather than calling `getLinearClient` directly) so callers can
|
|
25
|
+
* pass their own module-level import of `getLinearClient` — that binding
|
|
26
|
+
* respects `vi.mock` intercepts, whereas an intra-module reference would
|
|
27
|
+
* not.
|
|
28
|
+
*/
|
|
29
|
+
export declare function lazyLinearClient(factory: () => LinearClient): () => LinearClient;
|
|
30
|
+
/**
|
|
31
|
+
* Reads the value that follows `--ticket` at `argv[index + 1]`. Throws a
|
|
32
|
+
* uniform "ticket id is required" error if the value is missing, empty, or
|
|
33
|
+
* looks like another flag (starts with `-`). Centralizes the validation so
|
|
34
|
+
* each subcommand's arg parser stays DRY.
|
|
35
|
+
*/
|
|
36
|
+
export declare function readTicketArgument(argv: string[], index: number, command: string): string;
|
|
19
37
|
export declare function errorMessage(error: unknown): string;
|
|
20
38
|
export {};
|
|
21
39
|
//# sourceMappingURL=util.d.ts.map
|
package/dist/lib/util.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../src/lib/util.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,wBAAsB,KAAK,CAAC,E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AE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAMzF;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAcnD"}
|
package/dist/lib/util.js
CHANGED
|
@@ -104,6 +104,36 @@ export function getLinearClient() {
|
|
|
104
104
|
}
|
|
105
105
|
return new LinearClient({ apiKey: resolved.value });
|
|
106
106
|
}
|
|
107
|
+
/**
|
|
108
|
+
* Returns a zero-arg getter that lazily constructs (and caches) a Linear
|
|
109
|
+
* client on first call. Used by CLI entry points that may not need the
|
|
110
|
+
* client at all (e.g. `--no-linear`), so we avoid blowing up on a missing
|
|
111
|
+
* API key when no Linear call is actually made. The factory is taken as a
|
|
112
|
+
* parameter (rather than calling `getLinearClient` directly) so callers can
|
|
113
|
+
* pass their own module-level import of `getLinearClient` — that binding
|
|
114
|
+
* respects `vi.mock` intercepts, whereas an intra-module reference would
|
|
115
|
+
* not.
|
|
116
|
+
*/
|
|
117
|
+
export function lazyLinearClient(factory) {
|
|
118
|
+
let client;
|
|
119
|
+
return () => {
|
|
120
|
+
client ??= factory();
|
|
121
|
+
return client;
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Reads the value that follows `--ticket` at `argv[index + 1]`. Throws a
|
|
126
|
+
* uniform "ticket id is required" error if the value is missing, empty, or
|
|
127
|
+
* looks like another flag (starts with `-`). Centralizes the validation so
|
|
128
|
+
* each subcommand's arg parser stays DRY.
|
|
129
|
+
*/
|
|
130
|
+
export function readTicketArgument(argv, index, command) {
|
|
131
|
+
const value = argv[index + 1];
|
|
132
|
+
if (value === undefined || value.length === 0 || value.startsWith("-")) {
|
|
133
|
+
throw new Error(`crew ${command} --ticket: ticket id is required`);
|
|
134
|
+
}
|
|
135
|
+
return value;
|
|
136
|
+
}
|
|
107
137
|
export function errorMessage(error) {
|
|
108
138
|
if (error instanceof Error) {
|
|
109
139
|
return error.message;
|
package/dist/lib/worktrees.d.ts
CHANGED
|
@@ -28,6 +28,16 @@ export interface WorktreeSpec {
|
|
|
28
28
|
repository: string;
|
|
29
29
|
ticket: string;
|
|
30
30
|
}
|
|
31
|
+
declare function branchNameForTicket(ticket: string): string;
|
|
32
|
+
export type WorktreeDirtiness = {
|
|
33
|
+
kind: "dirty";
|
|
34
|
+
modified: number;
|
|
35
|
+
untracked: number;
|
|
36
|
+
} | {
|
|
37
|
+
kind: "clean";
|
|
38
|
+
} | {
|
|
39
|
+
kind: "unknown";
|
|
40
|
+
};
|
|
31
41
|
declare function list(config: ResolvedConfig): WorktreeEntry[];
|
|
32
42
|
declare function findByTicket(config: ResolvedConfig, ticket: string): WorktreeEntry[];
|
|
33
43
|
declare function create(config: ResolvedConfig, spec: WorktreeSpec, signal?: AbortSignal): Promise<WorktreeEntry>;
|
|
@@ -54,12 +64,18 @@ declare function teardown(config: ResolvedConfig, entries: readonly WorktreeEntr
|
|
|
54
64
|
force?: boolean;
|
|
55
65
|
signal?: AbortSignal;
|
|
56
66
|
}): Promise<TeardownResult>;
|
|
67
|
+
declare function probeWorkingTree(input: {
|
|
68
|
+
worktreeDir: string;
|
|
69
|
+
signal?: AbortSignal;
|
|
70
|
+
}): Promise<WorktreeDirtiness>;
|
|
57
71
|
export declare const worktrees: {
|
|
58
72
|
create: typeof create;
|
|
59
73
|
list: typeof list;
|
|
60
74
|
findByTicket: typeof findByTicket;
|
|
61
75
|
remove: typeof remove;
|
|
62
76
|
teardown: typeof teardown;
|
|
77
|
+
branchNameForTicket: typeof branchNameForTicket;
|
|
78
|
+
probeWorkingTree: typeof probeWorkingTree;
|
|
63
79
|
};
|
|
64
80
|
export {};
|
|
65
81
|
//# sourceMappingURL=worktrees.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worktrees.d.ts","sourceRoot":"","sources":["../../src/lib/worktrees.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAOH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;A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AAQ,EAAE,eAAe,EAAE,CAAC;IAC5B,cAAc,EAAE,cAAc,CAAC;CAChC;AAKD,iBAAe,QAAQ,CACrB,MAAM,EAAE,cAAc,EACtB,OAAO,EAAE,SAAS,aAAa,EAAE,EACjC,OAAO,CAAC,EAAE;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC;IAAC,MAAM,CAAC,EAAE,WAAW,CAAA;CAAE,GAClD,OAAO,CAAC,cAAc,CAAC,CAkDzB;AAED,iBAAe,gBAAgB,CAAC,KAAK,EAAE;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAE7B;AAED,eAAO,MAAM,SAAS;;;;;;;;CAQrB,CAAC"}
|
package/dist/lib/worktrees.js
CHANGED
|
@@ -336,10 +336,15 @@ async function teardown(config, entries, options) {
|
|
|
336
336
|
}
|
|
337
337
|
return result;
|
|
338
338
|
}
|
|
339
|
+
async function probeWorkingTree(input) {
|
|
340
|
+
return await probeWorktreeDirtiness(input.worktreeDir, input.signal);
|
|
341
|
+
}
|
|
339
342
|
export const worktrees = {
|
|
340
343
|
create,
|
|
341
344
|
list,
|
|
342
345
|
findByTicket,
|
|
343
346
|
remove,
|
|
344
347
|
teardown,
|
|
348
|
+
branchNameForTicket,
|
|
349
|
+
probeWorkingTree,
|
|
345
350
|
};
|
package/package.json
CHANGED