@clipboard-health/groundcrew 1.9.0 → 1.10.0
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/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +15 -0
- package/package.json +1 -1
package/dist/cli.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAmHA,wBAAsB,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CA8BvD"}
|
package/dist/cli.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { createRequire } from "node:module";
|
|
1
2
|
import { cleanupWorkspaceCli } from "./commands/cleanupWorkspace.js";
|
|
2
3
|
import { doctor } from "./commands/doctor.js";
|
|
3
4
|
import { orchestrate } from "./commands/orchestrator.js";
|
|
4
5
|
import { remoteCli } from "./commands/remoteSetup.js";
|
|
5
6
|
import { setupWorkspaceCli } from "./commands/setupWorkspace.js";
|
|
6
7
|
import { errorMessage, writeError, writeOutput } from "./lib/util.js";
|
|
8
|
+
const requireFromCli = createRequire(import.meta.url);
|
|
7
9
|
async function runCli(argv) {
|
|
8
10
|
let watch = false;
|
|
9
11
|
let dryRun = false;
|
|
@@ -72,6 +74,10 @@ const SUBCOMMANDS = {
|
|
|
72
74
|
function printHelp() {
|
|
73
75
|
const width = Math.max(...Object.keys(SUBCOMMANDS).map((key) => key.length));
|
|
74
76
|
writeOutput("Usage: crew <command> [...args]\n");
|
|
77
|
+
writeOutput("Options:");
|
|
78
|
+
writeOutput(" -h, --help Show help");
|
|
79
|
+
writeOutput(" -v, --version Print version");
|
|
80
|
+
writeOutput("");
|
|
75
81
|
writeOutput("Commands:");
|
|
76
82
|
for (const [name, command] of Object.entries(SUBCOMMANDS)) {
|
|
77
83
|
writeOutput(` ${name.padEnd(width)} ${command.summary}`);
|
|
@@ -81,6 +87,11 @@ function printHelp() {
|
|
|
81
87
|
}
|
|
82
88
|
writeOutput("\nSee README.md for full configuration and behavior.");
|
|
83
89
|
}
|
|
90
|
+
function packageVersion() {
|
|
91
|
+
// oxlint-disable-next-line typescript-eslint/no-unsafe-assignment -- package.json is shipped with this package and is the version source of truth.
|
|
92
|
+
const packageMetadata = requireFromCli("../package.json");
|
|
93
|
+
return packageMetadata.version;
|
|
94
|
+
}
|
|
84
95
|
export async function run(argv) {
|
|
85
96
|
const [subcommand, ...rest] = argv;
|
|
86
97
|
if (subcommand === undefined || subcommand === "-h" || subcommand === "--help") {
|
|
@@ -90,6 +101,10 @@ export async function run(argv) {
|
|
|
90
101
|
}
|
|
91
102
|
return;
|
|
92
103
|
}
|
|
104
|
+
if (subcommand === "-v" || subcommand === "--version") {
|
|
105
|
+
writeOutput(packageVersion());
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
93
108
|
const command = SUBCOMMANDS[subcommand];
|
|
94
109
|
if (!command) {
|
|
95
110
|
writeError(`Unknown command: ${subcommand}\n`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clipboard-health/groundcrew",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
4
4
|
"description": "Linear-driven orchestrator that launches AI coding agents in git worktrees, with workspace lifecycle, remote runners, and usage tracking.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent",
|