@gh-symphony/cli 0.0.20 → 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.
Files changed (40) hide show
  1. package/README.md +66 -2
  2. package/dist/chunk-2TSM3INR.js +1085 -0
  3. package/dist/chunk-2UW7NQLX.js +684 -0
  4. package/dist/{chunk-MVRF7BES.js → chunk-36KYEDEO.js} +10 -1
  5. package/dist/{chunk-TILHWBP6.js → chunk-C67H3OUL.js} +239 -36
  6. package/dist/{chunk-C7G7RJ4G.js → chunk-DDL4BWSL.js} +1 -1
  7. package/dist/{chunk-XN5ABWZ6.js → chunk-DFLXHNYQ.js} +26 -30
  8. package/dist/{chunk-EKKT5USP.js → chunk-E7HYEEZD.js} +487 -133
  9. package/dist/chunk-EEQQWTXS.js +3257 -0
  10. package/dist/chunk-GDE6FYN4.js +26 -0
  11. package/dist/{chunk-Y6TYJMNT.js → chunk-GSX2FV3M.js} +10 -16
  12. package/dist/{chunk-RN2PACNV.js → chunk-HMLBBZNY.js} +731 -75
  13. package/dist/{chunk-5NV3LSAJ.js → chunk-IWFX2FMA.js} +5 -1
  14. package/dist/{chunk-HZVDTAPS.js → chunk-PUDXVBSN.js} +1549 -1458
  15. package/dist/{chunk-ROGRTUFI.js → chunk-QIRE2VXS.js} +14 -3
  16. package/dist/{chunk-3AWF54PI.js → chunk-ZHOKYUO3.js} +394 -42
  17. package/dist/{config-cmd-DNXNL26Z.js → config-cmd-Z3A7V6NC.js} +1 -1
  18. package/dist/{doctor-IYHCFXOZ.js → doctor-EJUMPBMW.js} +105 -40
  19. package/dist/index.js +112 -24
  20. package/dist/{init-KZT6YNOH.js → init-54HMKNYI.js} +8 -3
  21. package/dist/{logs-6JKKYDGJ.js → logs-GTZ4U5JE.js} +2 -2
  22. package/dist/project-RMYMZSFV.js +25 -0
  23. package/dist/{recover-5KQI7WH5.js → recover-LTLKMTRX.js} +7 -5
  24. package/dist/repo-WI7GF6XQ.js +749 -0
  25. package/dist/{run-ETC5UTRA.js → run-IHN3ZL35.js} +21 -7
  26. package/dist/{setup-VWB7RZUQ.js → setup-TZJSM3QV.js} +53 -14
  27. package/dist/start-RTAHQMR2.js +19 -0
  28. package/dist/status-F4D52OVK.js +12 -0
  29. package/dist/stop-MDKMJPVR.js +10 -0
  30. package/dist/{upgrade-3YNF3VKY.js → upgrade-O33S2SJK.js} +2 -2
  31. package/dist/{version-NUBTTOG7.js → version-CW54Q7BK.js} +1 -1
  32. package/dist/worker-entry.js +848 -693
  33. package/dist/{workflow-TBIFY5MO.js → workflow-L3KT6HB7.js} +177 -11
  34. package/package.json +4 -2
  35. package/dist/chunk-M3IFVLQS.js +0 -1155
  36. package/dist/project-UUVHS3ZR.js +0 -22
  37. package/dist/repo-HDDE7OUI.js +0 -321
  38. package/dist/start-ENFLZUI6.js +0 -16
  39. package/dist/status-QSCFVGRQ.js +0 -11
  40. 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-C7G7RJ4G.js";
8
+ } from "./chunk-DDL4BWSL.js";
6
9
  import {
7
10
  daemonPidPath
8
- } from "./chunk-ROGRTUFI.js";
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: parsed.projectId
47
+ requestedProjectId: void 0
54
48
  });
55
49
  if (!projectConfig) {
56
50
  handleMissingManagedProjectConfig();