@gh-symphony/cli 0.0.22 → 0.1.3
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 +72 -77
- package/dist/{chunk-HMLBBZNY.js → chunk-2YF7PQUC.js} +16 -71
- package/dist/{chunk-IWFX2FMA.js → chunk-6I753NYO.js} +4 -1
- package/dist/{chunk-2TSM3INR.js → chunk-HQ7A3C7K.js} +575 -12
- package/dist/{chunk-36KYEDEO.js → chunk-MVRF7BES.js} +1 -10
- package/dist/{workflow-L3KT6HB7.js → chunk-NESHTYXQ.js} +27 -19
- package/dist/{chunk-2UW7NQLX.js → chunk-PEZUBHWJ.js} +1 -1
- package/dist/chunk-PG332ZS4.js +238 -0
- package/dist/{chunk-EEQQWTXS.js → chunk-WCOIVNHH.js} +213 -82
- package/dist/{chunk-QIRE2VXS.js → chunk-WOVNN5NW.js} +16 -17
- package/dist/{chunk-C67H3OUL.js → chunk-Z3NZOPLZ.js} +0 -81
- package/dist/{config-cmd-Z3A7V6NC.js → config-cmd-2ADPUYWA.js} +1 -1
- package/dist/{doctor-EJUMPBMW.js → doctor-2AXHIEAP.js} +464 -40
- package/dist/index.js +340 -294
- package/dist/{chunk-PUDXVBSN.js → repo-SUXYT4OK.js} +6272 -2996
- package/dist/{setup-TZJSM3QV.js → setup-UBHOMXUG.js} +57 -92
- package/dist/{upgrade-O33S2SJK.js → upgrade-355SQJ5P.js} +2 -2
- package/dist/{version-CW54Q7BK.js → version-4ILSDZQH.js} +1 -1
- package/dist/worker-entry.js +10 -5
- package/dist/workflow-S6YSZPQT.js +22 -0
- package/package.json +4 -4
- package/dist/chunk-DDL4BWSL.js +0 -146
- package/dist/chunk-DFLXHNYQ.js +0 -482
- package/dist/chunk-E7HYEEZD.js +0 -1318
- package/dist/chunk-GDE6FYN4.js +0 -26
- package/dist/chunk-GSX2FV3M.js +0 -103
- package/dist/chunk-ZHOKYUO3.js +0 -1047
- package/dist/init-54HMKNYI.js +0 -38
- package/dist/logs-GTZ4U5JE.js +0 -188
- package/dist/project-RMYMZSFV.js +0 -25
- package/dist/recover-LTLKMTRX.js +0 -133
- package/dist/repo-WI7GF6XQ.js +0 -749
- package/dist/run-IHN3ZL35.js +0 -122
- package/dist/start-RTAHQMR2.js +0 -19
- package/dist/status-F4D52OVK.js +0 -12
- package/dist/stop-MDKMJPVR.js +0 -10
package/dist/run-IHN3ZL35.js
DELETED
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
runCli
|
|
4
|
-
} from "./chunk-PUDXVBSN.js";
|
|
5
|
-
import "./chunk-2UW7NQLX.js";
|
|
6
|
-
import "./chunk-2TSM3INR.js";
|
|
7
|
-
import "./chunk-EEQQWTXS.js";
|
|
8
|
-
import {
|
|
9
|
-
resolveRuntimeRoot
|
|
10
|
-
} from "./chunk-IWFX2FMA.js";
|
|
11
|
-
import {
|
|
12
|
-
handleMissingManagedProjectConfig,
|
|
13
|
-
resolveManagedProjectConfig
|
|
14
|
-
} from "./chunk-DDL4BWSL.js";
|
|
15
|
-
import "./chunk-QIRE2VXS.js";
|
|
16
|
-
|
|
17
|
-
// src/commands/run.ts
|
|
18
|
-
function parseRunArgs(args) {
|
|
19
|
-
const parsed = {
|
|
20
|
-
watch: false
|
|
21
|
-
};
|
|
22
|
-
for (let i = 0; i < args.length; i += 1) {
|
|
23
|
-
const arg = args[i];
|
|
24
|
-
if (arg === "--watch" || arg === "-w") {
|
|
25
|
-
parsed.watch = true;
|
|
26
|
-
} else if (arg === "--project" || arg === "--project-id") {
|
|
27
|
-
const value = args[i + 1];
|
|
28
|
-
if (!value || value.startsWith("-")) {
|
|
29
|
-
parsed.error = `Option '${arg}' argument missing`;
|
|
30
|
-
return parsed;
|
|
31
|
-
}
|
|
32
|
-
parsed.projectId = value;
|
|
33
|
-
i += 1;
|
|
34
|
-
} else if (arg === "--log-level") {
|
|
35
|
-
const value = args[i + 1];
|
|
36
|
-
if (!value || value.startsWith("-")) {
|
|
37
|
-
parsed.error = `Option '${arg}' argument missing`;
|
|
38
|
-
return parsed;
|
|
39
|
-
}
|
|
40
|
-
parsed.logLevel = value;
|
|
41
|
-
i += 1;
|
|
42
|
-
} else if (!arg?.startsWith("-")) {
|
|
43
|
-
parsed.issue = arg;
|
|
44
|
-
} else {
|
|
45
|
-
parsed.error = `Unknown option '${arg}'`;
|
|
46
|
-
return parsed;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
return parsed;
|
|
50
|
-
}
|
|
51
|
-
var handler = async (args, options) => {
|
|
52
|
-
const parsed = parseRunArgs(args);
|
|
53
|
-
if (parsed.error) {
|
|
54
|
-
process.stderr.write(`${parsed.error}
|
|
55
|
-
`);
|
|
56
|
-
process.exitCode = 2;
|
|
57
|
-
return;
|
|
58
|
-
}
|
|
59
|
-
if (!parsed.issue) {
|
|
60
|
-
process.stderr.write("Usage: gh-symphony run <owner/repo#number>\n");
|
|
61
|
-
process.exitCode = 2;
|
|
62
|
-
return;
|
|
63
|
-
}
|
|
64
|
-
const projectConfig = await resolveManagedProjectConfig({
|
|
65
|
-
configDir: options.configDir,
|
|
66
|
-
requestedProjectId: parsed.projectId
|
|
67
|
-
});
|
|
68
|
-
if (!projectConfig) {
|
|
69
|
-
handleMissingManagedProjectConfig();
|
|
70
|
-
return;
|
|
71
|
-
}
|
|
72
|
-
const runtimeRoot = resolveRuntimeRoot(options.configDir);
|
|
73
|
-
const projectId = projectConfig.projectId;
|
|
74
|
-
const [repoSpec] = parsed.issue.split("#");
|
|
75
|
-
const configuredRepos = [
|
|
76
|
-
...projectConfig.repository ? [projectConfig.repository] : [],
|
|
77
|
-
...projectConfig.repositories ?? []
|
|
78
|
-
].filter((repository) => repository.owner && repository.name).map((repository) => `${repository.owner}/${repository.name}`);
|
|
79
|
-
const configuredRepoSet = new Set(configuredRepos);
|
|
80
|
-
if (configuredRepoSet.size === 0) {
|
|
81
|
-
process.stderr.write(
|
|
82
|
-
"No repository is configured in this project. Run 'gh-symphony repo add owner/name' first.\n"
|
|
83
|
-
);
|
|
84
|
-
process.exitCode = 1;
|
|
85
|
-
return;
|
|
86
|
-
}
|
|
87
|
-
if (repoSpec && !configuredRepoSet.has(repoSpec)) {
|
|
88
|
-
process.stderr.write(
|
|
89
|
-
`Repository "${repoSpec}" is not configured in this project.
|
|
90
|
-
Configured repo: ${configuredRepos.join(", ")}
|
|
91
|
-
`
|
|
92
|
-
);
|
|
93
|
-
process.exitCode = 1;
|
|
94
|
-
return;
|
|
95
|
-
}
|
|
96
|
-
process.stdout.write(`Dispatching issue: ${parsed.issue}
|
|
97
|
-
`);
|
|
98
|
-
await runCli([
|
|
99
|
-
"run-issue",
|
|
100
|
-
"--runtime-root",
|
|
101
|
-
runtimeRoot,
|
|
102
|
-
"--project-id",
|
|
103
|
-
projectId,
|
|
104
|
-
"--issue",
|
|
105
|
-
parsed.issue,
|
|
106
|
-
...parsed.logLevel ? ["--log-level", parsed.logLevel] : []
|
|
107
|
-
]);
|
|
108
|
-
if (parsed.watch) {
|
|
109
|
-
process.stdout.write("\nWatching for status changes...\n");
|
|
110
|
-
await runCli([
|
|
111
|
-
"status",
|
|
112
|
-
"--runtime-root",
|
|
113
|
-
runtimeRoot,
|
|
114
|
-
"--project-id",
|
|
115
|
-
projectId
|
|
116
|
-
]);
|
|
117
|
-
}
|
|
118
|
-
};
|
|
119
|
-
var run_default = handler;
|
|
120
|
-
export {
|
|
121
|
-
run_default as default
|
|
122
|
-
};
|
package/dist/start-RTAHQMR2.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
shutdownForegroundOrchestrator,
|
|
4
|
-
start_default
|
|
5
|
-
} from "./chunk-E7HYEEZD.js";
|
|
6
|
-
import "./chunk-PUDXVBSN.js";
|
|
7
|
-
import "./chunk-2UW7NQLX.js";
|
|
8
|
-
import "./chunk-2TSM3INR.js";
|
|
9
|
-
import "./chunk-C67H3OUL.js";
|
|
10
|
-
import "./chunk-EEQQWTXS.js";
|
|
11
|
-
import "./chunk-36KYEDEO.js";
|
|
12
|
-
import "./chunk-IWFX2FMA.js";
|
|
13
|
-
import "./chunk-GDE6FYN4.js";
|
|
14
|
-
import "./chunk-DDL4BWSL.js";
|
|
15
|
-
import "./chunk-QIRE2VXS.js";
|
|
16
|
-
export {
|
|
17
|
-
start_default as default,
|
|
18
|
-
shutdownForegroundOrchestrator
|
|
19
|
-
};
|
package/dist/status-F4D52OVK.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
status_default
|
|
4
|
-
} from "./chunk-DFLXHNYQ.js";
|
|
5
|
-
import "./chunk-36KYEDEO.js";
|
|
6
|
-
import "./chunk-IWFX2FMA.js";
|
|
7
|
-
import "./chunk-GDE6FYN4.js";
|
|
8
|
-
import "./chunk-DDL4BWSL.js";
|
|
9
|
-
import "./chunk-QIRE2VXS.js";
|
|
10
|
-
export {
|
|
11
|
-
status_default as default
|
|
12
|
-
};
|