@gh-symphony/cli 0.0.22 → 0.1.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.
Files changed (36) hide show
  1. package/README.md +72 -77
  2. package/dist/{chunk-IWFX2FMA.js → chunk-6I753NYO.js} +4 -1
  3. package/dist/{workflow-L3KT6HB7.js → chunk-B4ZJMAZL.js} +27 -19
  4. package/dist/{chunk-2TSM3INR.js → chunk-DLZAJXZL.js} +575 -12
  5. package/dist/chunk-GHVDABFO.js +235 -0
  6. package/dist/{chunk-EEQQWTXS.js → chunk-GPRCOJDJ.js} +158 -75
  7. package/dist/{chunk-36KYEDEO.js → chunk-MVRF7BES.js} +1 -10
  8. package/dist/{chunk-2UW7NQLX.js → chunk-VFHMHHZW.js} +1 -1
  9. package/dist/{chunk-HMLBBZNY.js → chunk-WM2B6BJ7.js} +16 -71
  10. package/dist/{chunk-QIRE2VXS.js → chunk-WOVNN5NW.js} +16 -17
  11. package/dist/{chunk-C67H3OUL.js → chunk-Z3NZOPLZ.js} +0 -81
  12. package/dist/{config-cmd-Z3A7V6NC.js → config-cmd-2ADPUYWA.js} +1 -1
  13. package/dist/{doctor-EJUMPBMW.js → doctor-EEPNFCGF.js} +464 -40
  14. package/dist/index.js +340 -294
  15. package/dist/{chunk-PUDXVBSN.js → repo-RX4OK7XH.js} +5944 -3001
  16. package/dist/{setup-TZJSM3QV.js → setup-XNHHRBGU.js} +57 -92
  17. package/dist/{upgrade-O33S2SJK.js → upgrade-NS53EO2B.js} +2 -2
  18. package/dist/{version-CW54Q7BK.js → version-2RHFZ5CI.js} +1 -1
  19. package/dist/worker-entry.js +10 -5
  20. package/dist/workflow-26QNZZWH.js +22 -0
  21. package/package.json +4 -4
  22. package/dist/chunk-DDL4BWSL.js +0 -146
  23. package/dist/chunk-DFLXHNYQ.js +0 -482
  24. package/dist/chunk-E7HYEEZD.js +0 -1318
  25. package/dist/chunk-GDE6FYN4.js +0 -26
  26. package/dist/chunk-GSX2FV3M.js +0 -103
  27. package/dist/chunk-ZHOKYUO3.js +0 -1047
  28. package/dist/init-54HMKNYI.js +0 -38
  29. package/dist/logs-GTZ4U5JE.js +0 -188
  30. package/dist/project-RMYMZSFV.js +0 -25
  31. package/dist/recover-LTLKMTRX.js +0 -133
  32. package/dist/repo-WI7GF6XQ.js +0 -749
  33. package/dist/run-IHN3ZL35.js +0 -122
  34. package/dist/start-RTAHQMR2.js +0 -19
  35. package/dist/status-F4D52OVK.js +0 -12
  36. package/dist/stop-MDKMJPVR.js +0 -10
@@ -1,26 +0,0 @@
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,103 +0,0 @@
1
- #!/usr/bin/env node
2
- import {
3
- rejectRemovedProjectId
4
- } from "./chunk-GDE6FYN4.js";
5
- import {
6
- handleMissingManagedProjectConfig,
7
- resolveManagedProjectConfig
8
- } from "./chunk-DDL4BWSL.js";
9
- import {
10
- daemonPidPath
11
- } from "./chunk-QIRE2VXS.js";
12
-
13
- // src/commands/stop.ts
14
- import { readFile, rm } from "fs/promises";
15
- function parseStopArgs(args) {
16
- const parsed = {
17
- force: false
18
- };
19
- for (let i = 0; i < args.length; i += 1) {
20
- const arg = args[i];
21
- if (arg === "--force") {
22
- parsed.force = true;
23
- continue;
24
- }
25
- if (arg?.startsWith("-")) {
26
- parsed.error = `Unknown option '${arg}'`;
27
- return parsed;
28
- }
29
- }
30
- return parsed;
31
- }
32
- var handler = async (args, options) => {
33
- if (rejectRemovedProjectId(args)) {
34
- return;
35
- }
36
- const parsed = parseStopArgs(args);
37
- if (parsed.error) {
38
- process.stderr.write(`${parsed.error}
39
- `);
40
- process.stderr.write("Usage: gh-symphony stop [--force]\n");
41
- process.exitCode = 2;
42
- return;
43
- }
44
- const resolvedForce = parsed.force;
45
- const projectConfig = await resolveManagedProjectConfig({
46
- configDir: options.configDir,
47
- requestedProjectId: void 0
48
- });
49
- if (!projectConfig) {
50
- handleMissingManagedProjectConfig();
51
- return;
52
- }
53
- const resolvedProjectId = projectConfig.projectId;
54
- const pidPath = daemonPidPath(options.configDir, resolvedProjectId);
55
- let pidStr;
56
- try {
57
- pidStr = await readFile(pidPath, "utf8");
58
- } catch {
59
- process.stderr.write(
60
- `No running daemon found for project "${resolvedProjectId}" (PID file missing).
61
- `
62
- );
63
- process.exitCode = 1;
64
- return;
65
- }
66
- const pid = Number.parseInt(pidStr.trim(), 10);
67
- if (!Number.isFinite(pid)) {
68
- process.stderr.write(`Invalid PID in ${pidPath}: ${pidStr}
69
- `);
70
- process.exitCode = 1;
71
- return;
72
- }
73
- try {
74
- process.kill(pid, 0);
75
- } catch {
76
- process.stdout.write(
77
- `Daemon for project "${resolvedProjectId}" (PID ${pid}) is not running. Cleaning up PID file.
78
- `
79
- );
80
- await rm(pidPath, { force: true });
81
- return;
82
- }
83
- const signal = resolvedForce ? "SIGKILL" : "SIGTERM";
84
- try {
85
- process.kill(pid, signal);
86
- process.stdout.write(`Sent ${signal} to orchestrator (PID ${pid}).
87
- `);
88
- } catch (error) {
89
- process.stderr.write(
90
- `Failed to stop process ${pid}: ${error instanceof Error ? error.message : "Unknown error"}
91
- `
92
- );
93
- process.exitCode = 1;
94
- return;
95
- }
96
- await rm(pidPath, { force: true });
97
- process.stdout.write("Daemon stopped.\n");
98
- };
99
- var stop_default = handler;
100
-
101
- export {
102
- stop_default
103
- };