@gh-symphony/cli 0.0.21 → 0.0.22
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 +36 -0
- package/dist/{chunk-SXGT7LOF.js → chunk-2TSM3INR.js} +26 -1
- package/dist/{chunk-A67CMOYE.js → chunk-2UW7NQLX.js} +1 -1
- package/dist/{chunk-MVRF7BES.js → chunk-36KYEDEO.js} +10 -1
- package/dist/{chunk-C7G7RJ4G.js → chunk-DDL4BWSL.js} +1 -1
- package/dist/{chunk-XN5ABWZ6.js → chunk-DFLXHNYQ.js} +26 -30
- package/dist/{chunk-KY6WKH66.js → chunk-E7HYEEZD.js} +70 -52
- package/dist/{chunk-QEONJ5DZ.js → chunk-EEQQWTXS.js} +1288 -92
- package/dist/chunk-GDE6FYN4.js +26 -0
- package/dist/{chunk-Y6TYJMNT.js → chunk-GSX2FV3M.js} +10 -16
- package/dist/{chunk-JN3TQVFV.js → chunk-HMLBBZNY.js} +11 -2
- package/dist/{chunk-5NV3LSAJ.js → chunk-IWFX2FMA.js} +5 -1
- package/dist/{chunk-MYVJ6HK4.js → chunk-PUDXVBSN.js} +706 -376
- package/dist/{chunk-ROGRTUFI.js → chunk-QIRE2VXS.js} +14 -3
- package/dist/{chunk-S6VIK4FF.js → chunk-ZHOKYUO3.js} +337 -13
- package/dist/{config-cmd-DNXNL26Z.js → config-cmd-Z3A7V6NC.js} +1 -1
- package/dist/{doctor-4HBRICHP.js → doctor-EJUMPBMW.js} +4 -4
- package/dist/index.js +88 -21
- package/dist/{init-HZ3JEDGQ.js → init-54HMKNYI.js} +3 -3
- package/dist/{logs-6JKKYDGJ.js → logs-GTZ4U5JE.js} +2 -2
- package/dist/project-RMYMZSFV.js +25 -0
- package/dist/{recover-L3MJHHDA.js → recover-LTLKMTRX.js} +7 -7
- package/dist/repo-WI7GF6XQ.js +749 -0
- package/dist/{run-XJQ6BF7U.js → run-IHN3ZL35.js} +21 -9
- package/dist/{setup-B2SVLW2R.js → setup-TZJSM3QV.js} +14 -13
- package/dist/start-RTAHQMR2.js +19 -0
- package/dist/status-F4D52OVK.js +12 -0
- package/dist/stop-MDKMJPVR.js +10 -0
- package/dist/{upgrade-OJXPZRYE.js → upgrade-O33S2SJK.js} +2 -2
- package/dist/{version-TBDCTKDO.js → version-CW54Q7BK.js} +1 -1
- package/dist/worker-entry.js +369 -13
- package/dist/{workflow-BLJH2HC3.js → workflow-L3KT6HB7.js} +5 -5
- package/package.json +3 -3
- package/dist/project-25NQ4J4Y.js +0 -24
- package/dist/repo-TDCWQR6P.js +0 -379
- package/dist/start-I2CC7BLW.js +0 -18
- package/dist/status-QSCFVGRQ.js +0 -11
- package/dist/stop-7MFCBQVW.js +0 -9
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// src/removed-project-id.ts
|
|
4
|
+
var REMOVED_PROJECT_ID_MESSAGE = "--project-id has been removed. gh-symphony now uses the current repository directory; run the command from the target repo or pass --repo-dir where supported.";
|
|
5
|
+
function rejectRemovedProjectId(args, options = { rejectProjectAlias: true }) {
|
|
6
|
+
for (let i = 0; i < args.length; i += 1) {
|
|
7
|
+
const arg = args[i];
|
|
8
|
+
if (arg === "--project-id" || options.rejectProjectAlias !== false && arg === "--project") {
|
|
9
|
+
process.stderr.write(`${REMOVED_PROJECT_ID_MESSAGE}
|
|
10
|
+
`);
|
|
11
|
+
process.exitCode = 2;
|
|
12
|
+
return true;
|
|
13
|
+
}
|
|
14
|
+
if (arg?.startsWith("--project-id=") || options.rejectProjectAlias !== false && arg?.startsWith("--project=")) {
|
|
15
|
+
process.stderr.write(`${REMOVED_PROJECT_ID_MESSAGE}
|
|
16
|
+
`);
|
|
17
|
+
process.exitCode = 2;
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return false;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export {
|
|
25
|
+
rejectRemovedProjectId
|
|
26
|
+
};
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
rejectRemovedProjectId
|
|
4
|
+
} from "./chunk-GDE6FYN4.js";
|
|
2
5
|
import {
|
|
3
6
|
handleMissingManagedProjectConfig,
|
|
4
7
|
resolveManagedProjectConfig
|
|
5
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-DDL4BWSL.js";
|
|
6
9
|
import {
|
|
7
10
|
daemonPidPath
|
|
8
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-QIRE2VXS.js";
|
|
9
12
|
|
|
10
13
|
// src/commands/stop.ts
|
|
11
14
|
import { readFile, rm } from "fs/promises";
|
|
@@ -19,16 +22,6 @@ function parseStopArgs(args) {
|
|
|
19
22
|
parsed.force = true;
|
|
20
23
|
continue;
|
|
21
24
|
}
|
|
22
|
-
if (arg === "--project" || arg === "--project-id") {
|
|
23
|
-
const value = args[i + 1];
|
|
24
|
-
if (!value || value.startsWith("-")) {
|
|
25
|
-
parsed.error = `Option '${arg}' argument missing`;
|
|
26
|
-
return parsed;
|
|
27
|
-
}
|
|
28
|
-
parsed.projectId = value;
|
|
29
|
-
i += 1;
|
|
30
|
-
continue;
|
|
31
|
-
}
|
|
32
25
|
if (arg?.startsWith("-")) {
|
|
33
26
|
parsed.error = `Unknown option '${arg}'`;
|
|
34
27
|
return parsed;
|
|
@@ -37,20 +30,21 @@ function parseStopArgs(args) {
|
|
|
37
30
|
return parsed;
|
|
38
31
|
}
|
|
39
32
|
var handler = async (args, options) => {
|
|
33
|
+
if (rejectRemovedProjectId(args)) {
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
40
36
|
const parsed = parseStopArgs(args);
|
|
41
37
|
if (parsed.error) {
|
|
42
38
|
process.stderr.write(`${parsed.error}
|
|
43
39
|
`);
|
|
44
|
-
process.stderr.write(
|
|
45
|
-
"Usage: gh-symphony stop --project-id <project-id> [--force]\n"
|
|
46
|
-
);
|
|
40
|
+
process.stderr.write("Usage: gh-symphony stop [--force]\n");
|
|
47
41
|
process.exitCode = 2;
|
|
48
42
|
return;
|
|
49
43
|
}
|
|
50
44
|
const resolvedForce = parsed.force;
|
|
51
45
|
const projectConfig = await resolveManagedProjectConfig({
|
|
52
46
|
configDir: options.configDir,
|
|
53
|
-
requestedProjectId:
|
|
47
|
+
requestedProjectId: void 0
|
|
54
48
|
});
|
|
55
49
|
if (!projectConfig) {
|
|
56
50
|
handleMissingManagedProjectConfig();
|
|
@@ -15,12 +15,12 @@ import {
|
|
|
15
15
|
formatClaudePreflightText,
|
|
16
16
|
resolveClaudeCommandBinary,
|
|
17
17
|
runClaudePreflight
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-EEQQWTXS.js";
|
|
19
19
|
import {
|
|
20
20
|
loadGlobalConfig,
|
|
21
21
|
saveGlobalConfig,
|
|
22
22
|
saveProjectConfig
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-QIRE2VXS.js";
|
|
24
24
|
|
|
25
25
|
// src/commands/init.ts
|
|
26
26
|
import * as p from "@clack/prompts";
|
|
@@ -2669,11 +2669,19 @@ async function runInteractiveStandalone(flags, _options) {
|
|
|
2669
2669
|
});
|
|
2670
2670
|
}
|
|
2671
2671
|
async function writeConfig(configDir, input) {
|
|
2672
|
+
const repository = input.repos[0];
|
|
2672
2673
|
await saveProjectConfig(configDir, input.projectId, {
|
|
2673
2674
|
projectId: input.projectId,
|
|
2674
2675
|
slug: input.projectId,
|
|
2675
2676
|
displayName: input.project.title,
|
|
2676
2677
|
workspaceDir: input.workspaceDir,
|
|
2678
|
+
...repository ? {
|
|
2679
|
+
repository: {
|
|
2680
|
+
owner: repository.owner,
|
|
2681
|
+
name: repository.name,
|
|
2682
|
+
cloneUrl: repository.cloneUrl
|
|
2683
|
+
}
|
|
2684
|
+
} : {},
|
|
2677
2685
|
repositories: input.repos.map((r) => ({
|
|
2678
2686
|
owner: r.owner,
|
|
2679
2687
|
name: r.name,
|
|
@@ -2684,6 +2692,7 @@ async function writeConfig(configDir, input) {
|
|
|
2684
2692
|
bindingId: input.project.id,
|
|
2685
2693
|
settings: {
|
|
2686
2694
|
projectId: input.project.id,
|
|
2695
|
+
...input.repos[0] ? { repository: `${repository.owner}/${repository.name}` } : {},
|
|
2687
2696
|
...input.assignedOnly ? { assignedOnly: true } : {}
|
|
2688
2697
|
}
|
|
2689
2698
|
}
|
|
@@ -5,7 +5,11 @@ import { resolve } from "path";
|
|
|
5
5
|
function resolveRuntimeRoot(configDir) {
|
|
6
6
|
return resolve(configDir);
|
|
7
7
|
}
|
|
8
|
+
function resolveRepoRuntimeRoot(repoDir = process.cwd()) {
|
|
9
|
+
return resolve(repoDir, ".runtime", "orchestrator");
|
|
10
|
+
}
|
|
8
11
|
|
|
9
12
|
export {
|
|
10
|
-
resolveRuntimeRoot
|
|
13
|
+
resolveRuntimeRoot,
|
|
14
|
+
resolveRepoRuntimeRoot
|
|
11
15
|
};
|