@gh-symphony/cli 0.4.0 → 0.4.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.
- package/dist/{chunk-QOX5UGUE.js → chunk-34YCGQD2.js} +6 -3
- package/dist/{chunk-RZ3WO7OV.js → chunk-3IRPSPAF.js} +1 -1
- package/dist/{chunk-B6G3KGBB.js → chunk-HHBXGE23.js} +76 -8
- package/dist/{chunk-6OPRRC2J.js → chunk-LJUEOVAQ.js} +50 -2
- package/dist/{chunk-ZPS4CQZJ.js → chunk-OVE4KOBD.js} +824 -971
- package/dist/{chunk-Z7CDL3T2.js → chunk-QBBJMCNC.js} +1 -1
- package/dist/{chunk-TTVGBHZI.js → chunk-QHMT2V3X.js} +5 -5
- package/dist/{chunk-4ICDSQCJ.js → chunk-YZP5N5XP.js} +3 -1
- package/dist/{config-cmd-AOZVS6GU.js → config-cmd-OIVIUKG7.js} +1 -1
- package/dist/{doctor-CCUTNEYN.js → doctor-LT5UQG67.js} +7 -7
- package/dist/index.js +10 -10
- package/dist/{repo-C2APQR2P.js → repo-2NS2AU3D.js} +6 -6
- package/dist/{setup-JINI7HBM.js → setup-4ZBHGOXT.js} +12 -6
- package/dist/{upgrade-EBD4LX5W.js → upgrade-334S2JVT.js} +2 -2
- package/dist/{version-6Z354HHH.js → version-J6P6WDMA.js} +1 -1
- package/dist/worker-entry.js +2 -2
- package/dist/{workflow-BOZ25AJ2.js → workflow-R3G7IA3Z.js} +6 -6
- package/package.json +3 -3
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
workflow_init_default
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-OVE4KOBD.js";
|
|
5
5
|
import {
|
|
6
6
|
fetchGithubProjectIssueByRepositoryAndNumber,
|
|
7
7
|
inspectManagedProjectSelection,
|
|
8
8
|
resolveTrackerAdapter
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-HHBXGE23.js";
|
|
10
10
|
import {
|
|
11
11
|
GitHubApiError,
|
|
12
12
|
createClient,
|
|
@@ -19,10 +19,10 @@ import {
|
|
|
19
19
|
buildPromptVariables,
|
|
20
20
|
parseWorkflowMarkdown,
|
|
21
21
|
renderPrompt
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-LJUEOVAQ.js";
|
|
23
23
|
import {
|
|
24
24
|
loadActiveProjectConfig
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-YZP5N5XP.js";
|
|
26
26
|
|
|
27
27
|
// src/commands/workflow.ts
|
|
28
28
|
import { readFile } from "fs/promises";
|
|
@@ -377,7 +377,7 @@ Commands:
|
|
|
377
377
|
preview Render the final worker prompt from a sample or live issue
|
|
378
378
|
|
|
379
379
|
Options:
|
|
380
|
-
workflow init [--non-interactive] [--project <id>] [--output <path>] [--skip-skills] [--skip-context] [--dry-run]
|
|
380
|
+
workflow init [--non-interactive] [--project <id>] [--output <path>] [--skip-skills] [--skip-context (deprecated no-op)] [--dry-run]
|
|
381
381
|
workflow validate [--file <path>]
|
|
382
382
|
workflow preview [issue] [--file <path>] [--issue <owner/repo#number|ENG-123>] [--project-id <projectId>] [--sample <json>] [--attempt <n>]
|
|
383
383
|
|
|
@@ -66,7 +66,9 @@ async function saveGlobalConfig(configDir, config) {
|
|
|
66
66
|
await writeJsonFile(configFilePath(configDir), config);
|
|
67
67
|
}
|
|
68
68
|
async function loadProjectConfig(configDir, projectId) {
|
|
69
|
-
return readJsonFile(
|
|
69
|
+
return readJsonFile(
|
|
70
|
+
projectConfigPath(configDir, projectId)
|
|
71
|
+
);
|
|
70
72
|
}
|
|
71
73
|
async function saveProjectConfig(configDir, projectId, config) {
|
|
72
74
|
await writeJsonFile(projectConfigPath(configDir, projectId), config);
|
|
@@ -5,17 +5,17 @@ import {
|
|
|
5
5
|
parseIssueReference,
|
|
6
6
|
readGitHubProjectBinding,
|
|
7
7
|
renderIssueWorkflowPreview
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-QHMT2V3X.js";
|
|
9
|
+
import "./chunk-OVE4KOBD.js";
|
|
10
10
|
import {
|
|
11
11
|
fetchGithubProjectIssueByRepositoryAndNumber,
|
|
12
12
|
fetchGithubProjectIssues,
|
|
13
13
|
inspectManagedProjectSelection
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-HHBXGE23.js";
|
|
15
|
+
import "./chunk-QBBJMCNC.js";
|
|
16
16
|
import {
|
|
17
17
|
resolveRuntimeRoot
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-3IRPSPAF.js";
|
|
19
19
|
import {
|
|
20
20
|
GitHubApiError,
|
|
21
21
|
REQUIRED_GH_SCOPES,
|
|
@@ -40,12 +40,12 @@ import {
|
|
|
40
40
|
resolveClaudeCommandBinary,
|
|
41
41
|
resolveRuntimeCommandBinary,
|
|
42
42
|
runClaudePreflight
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-LJUEOVAQ.js";
|
|
44
44
|
import {
|
|
45
45
|
configFilePath,
|
|
46
46
|
orchestratorLogPath,
|
|
47
47
|
projectConfigPath
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-YZP5N5XP.js";
|
|
49
49
|
|
|
50
50
|
// src/commands/doctor.ts
|
|
51
51
|
import { constants as constants2 } from "fs";
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./chunk-MVRF7BES.js";
|
|
8
8
|
import {
|
|
9
9
|
resolveConfigDir
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-YZP5N5XP.js";
|
|
11
11
|
|
|
12
12
|
// src/index.ts
|
|
13
13
|
import { realpathSync } from "fs";
|
|
@@ -417,13 +417,13 @@ function createRemovedCommandHandler(message) {
|
|
|
417
417
|
|
|
418
418
|
// src/index.ts
|
|
419
419
|
var COMMANDS = {
|
|
420
|
-
workflow: () => import("./workflow-
|
|
421
|
-
setup: () => import("./setup-
|
|
422
|
-
doctor: () => import("./doctor-
|
|
423
|
-
upgrade: () => import("./upgrade-
|
|
424
|
-
repo: () => import("./repo-
|
|
425
|
-
config: () => import("./config-cmd-
|
|
426
|
-
version: () => import("./version-
|
|
420
|
+
workflow: () => import("./workflow-R3G7IA3Z.js"),
|
|
421
|
+
setup: () => import("./setup-4ZBHGOXT.js"),
|
|
422
|
+
doctor: () => import("./doctor-LT5UQG67.js"),
|
|
423
|
+
upgrade: () => import("./upgrade-334S2JVT.js"),
|
|
424
|
+
repo: () => import("./repo-2NS2AU3D.js"),
|
|
425
|
+
config: () => import("./config-cmd-OIVIUKG7.js"),
|
|
426
|
+
version: () => import("./version-J6P6WDMA.js")
|
|
427
427
|
};
|
|
428
428
|
function addGlobalOptions(command) {
|
|
429
429
|
return command.option("--config <dir>", "Config directory").addOption(new Option("--config-dir <dir>").hideHelp()).option("-v, --verbose", "Enable verbose output").option("--json", "Output in JSON format").option("--no-color", "Disable color output");
|
|
@@ -528,7 +528,7 @@ function createProgram() {
|
|
|
528
528
|
workflow.command("init").description("Generate WORKFLOW.md and workflow support files").option("--non-interactive", "Run without prompts").option("--project <id>", "GitHub Project ID or URL").option("--output <path>", "Write WORKFLOW.md to a custom path").option(
|
|
529
529
|
"--runtime <kind>",
|
|
530
530
|
"Runtime preset: codex-app-server or claude-print"
|
|
531
|
-
).option("--skip-skills", "Skip runtime skill generation").option("--skip-context", "
|
|
531
|
+
).option("--skip-skills", "Skip runtime skill generation").option("--skip-context", "Deprecated no-op").option("--dry-run", "Preview generated files without writing them").allowExcessArguments(false)
|
|
532
532
|
).action(async function() {
|
|
533
533
|
markInvoked();
|
|
534
534
|
const values = this.optsWithGlobals();
|
|
@@ -565,7 +565,7 @@ function createProgram() {
|
|
|
565
565
|
await invokeHandler("workflow", args, values);
|
|
566
566
|
});
|
|
567
567
|
addGlobalOptions(
|
|
568
|
-
program.command("setup").description("Run the one-command first-run setup flow").option("--non-interactive", "Run without prompts").option("--output <path>", "Write WORKFLOW.md to a custom path").option("--skip-skills", "Skip runtime skill generation").option("--skip-context", "
|
|
568
|
+
program.command("setup").description("Run the one-command first-run setup flow").option("--non-interactive", "Run without prompts").option("--output <path>", "Write WORKFLOW.md to a custom path").option("--skip-skills", "Skip runtime skill generation").option("--skip-context", "Deprecated no-op").allowExcessArguments(false)
|
|
569
569
|
).action(async function() {
|
|
570
570
|
markInvoked();
|
|
571
571
|
const values = this.optsWithGlobals();
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
import {
|
|
18
18
|
initRepoRuntime,
|
|
19
19
|
parseRepoRuntimeFlags
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-34YCGQD2.js";
|
|
21
21
|
import {
|
|
22
22
|
OrchestratorService,
|
|
23
23
|
acquireProjectLock,
|
|
@@ -33,12 +33,12 @@ import {
|
|
|
33
33
|
resolveOrchestratorLogLevel,
|
|
34
34
|
resolveTrackerAdapter,
|
|
35
35
|
runCli
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import "./chunk-
|
|
36
|
+
} from "./chunk-HHBXGE23.js";
|
|
37
|
+
import "./chunk-QBBJMCNC.js";
|
|
38
38
|
import {
|
|
39
39
|
resolveRepoRuntimeRoot,
|
|
40
40
|
resolveRuntimeRoot
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-3IRPSPAF.js";
|
|
42
42
|
import {
|
|
43
43
|
GhAuthError,
|
|
44
44
|
GitHubApiError,
|
|
@@ -58,14 +58,14 @@ import {
|
|
|
58
58
|
parseRecentEvents,
|
|
59
59
|
readJsonFile,
|
|
60
60
|
safeReadDir
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-LJUEOVAQ.js";
|
|
62
62
|
import {
|
|
63
63
|
daemonPidPath,
|
|
64
64
|
httpStatusPath,
|
|
65
65
|
loadActiveProjectConfig,
|
|
66
66
|
orchestratorLogPath,
|
|
67
67
|
writeJsonFile
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-YZP5N5XP.js";
|
|
69
69
|
|
|
70
70
|
// src/commands/logs.ts
|
|
71
71
|
import { readFile, readdir, stat } from "fs/promises";
|
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
collectPriorityLabelNames,
|
|
6
6
|
planWorkflowArtifacts,
|
|
7
7
|
promptBlockerCheck,
|
|
8
|
+
promptLegacyGhSymphonyCleanup,
|
|
8
9
|
promptPriorityConfig,
|
|
9
10
|
promptStateMappings,
|
|
10
11
|
renderDryRunPreview,
|
|
@@ -12,13 +13,14 @@ import {
|
|
|
12
13
|
resolveStatusField,
|
|
13
14
|
toWorkflowLifecycleConfig,
|
|
14
15
|
validateStateMapping,
|
|
16
|
+
warnDeprecatedSkipContext,
|
|
15
17
|
writeEcosystem,
|
|
16
18
|
writeWorkflowPlan
|
|
17
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-OVE4KOBD.js";
|
|
18
20
|
import {
|
|
19
21
|
initRepoRuntime
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-34YCGQD2.js";
|
|
23
|
+
import "./chunk-3IRPSPAF.js";
|
|
22
24
|
import {
|
|
23
25
|
GhAuthError,
|
|
24
26
|
GitHubScopeError,
|
|
@@ -31,8 +33,8 @@ import {
|
|
|
31
33
|
listUserProjects,
|
|
32
34
|
validateToken
|
|
33
35
|
} from "./chunk-SMNIGNS3.js";
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-LJUEOVAQ.js";
|
|
37
|
+
import "./chunk-YZP5N5XP.js";
|
|
36
38
|
|
|
37
39
|
// src/commands/setup.ts
|
|
38
40
|
import * as p from "@clack/prompts";
|
|
@@ -63,7 +65,7 @@ function parseSetupFlags(args) {
|
|
|
63
65
|
default:
|
|
64
66
|
if (arg?.startsWith("-")) {
|
|
65
67
|
throw new Error(
|
|
66
|
-
`Unknown option '${arg}'. Removed project/workspace flags are no longer supported; run 'gh-symphony setup' from inside the target repository. Supported flags: --non-interactive, --output, --skip-skills
|
|
68
|
+
`Unknown option '${arg}'. Removed project/workspace flags are no longer supported; run 'gh-symphony setup' from inside the target repository. Supported flags: --non-interactive, --output, --skip-skills. Deprecated no-op: --skip-context.`
|
|
67
69
|
);
|
|
68
70
|
}
|
|
69
71
|
}
|
|
@@ -142,6 +144,9 @@ var handler = async (args, options) => {
|
|
|
142
144
|
process.exitCode = 2;
|
|
143
145
|
return;
|
|
144
146
|
}
|
|
147
|
+
if (flags.skipContext) {
|
|
148
|
+
warnDeprecatedSkipContext();
|
|
149
|
+
}
|
|
145
150
|
if (flags.nonInteractive) {
|
|
146
151
|
await runNonInteractive(flags, options);
|
|
147
152
|
return;
|
|
@@ -407,6 +412,7 @@ async function runInteractive(flags, _options) {
|
|
|
407
412
|
process.exitCode = 130;
|
|
408
413
|
return;
|
|
409
414
|
}
|
|
415
|
+
await promptLegacyGhSymphonyCleanup(process.cwd());
|
|
410
416
|
const writeSpinner = p.spinner();
|
|
411
417
|
writeSpinner.start("Writing setup files...");
|
|
412
418
|
try {
|
|
@@ -16,8 +16,8 @@ function execFileAsync(file, args, execFileImpl = execFileCallback) {
|
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
18
|
function resolveCurrentCliVersion() {
|
|
19
|
-
if ("0.4.
|
|
20
|
-
return "0.4.
|
|
19
|
+
if ("0.4.2".length > 0) {
|
|
20
|
+
return "0.4.2";
|
|
21
21
|
}
|
|
22
22
|
const pkg = JSON.parse(
|
|
23
23
|
readFileSync(new URL("../../package.json", import.meta.url), "utf8")
|
package/dist/worker-entry.js
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
normalizeCodexRuntimeEvents,
|
|
7
7
|
prepareCodexRuntimePlan,
|
|
8
8
|
resolveLocalRuntimeLaunchConfig
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-QBBJMCNC.js";
|
|
10
10
|
import {
|
|
11
11
|
DEFAULT_AGENT_INPUT_REQUIRED_REASON,
|
|
12
12
|
classifySessionExit,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
resolveClaudeCommandBinary,
|
|
18
18
|
resolveWorkflowRuntimeCommand,
|
|
19
19
|
runClaudePreflight
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-LJUEOVAQ.js";
|
|
21
21
|
|
|
22
22
|
// ../worker/src/index.ts
|
|
23
23
|
import { spawn as spawn2 } from "child_process";
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
resetWorkflowCommandDependenciesForTest,
|
|
7
7
|
setWorkflowCommandDependenciesForTest,
|
|
8
8
|
workflow_default
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-QHMT2V3X.js";
|
|
10
|
+
import "./chunk-OVE4KOBD.js";
|
|
11
|
+
import "./chunk-HHBXGE23.js";
|
|
12
|
+
import "./chunk-QBBJMCNC.js";
|
|
13
13
|
import "./chunk-SMNIGNS3.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-LJUEOVAQ.js";
|
|
15
|
+
import "./chunk-YZP5N5XP.js";
|
|
16
16
|
export {
|
|
17
17
|
workflow_default as default,
|
|
18
18
|
parseIssueReference,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gh-symphony/cli",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "hojinzs",
|
|
6
6
|
"description": "Interactive CLI for GitHub Symphony orchestration",
|
|
@@ -41,12 +41,12 @@
|
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"tsup": "^8.5.1",
|
|
44
|
-
"@gh-symphony/core": "0.0.14",
|
|
45
|
-
"@gh-symphony/orchestrator": "0.0.14",
|
|
46
44
|
"@gh-symphony/dashboard": "0.0.14",
|
|
47
45
|
"@gh-symphony/control-plane": "0.0.15",
|
|
46
|
+
"@gh-symphony/orchestrator": "0.0.14",
|
|
48
47
|
"@gh-symphony/tracker-github": "0.0.14",
|
|
49
48
|
"@gh-symphony/runtime-claude": "0.0.14",
|
|
49
|
+
"@gh-symphony/core": "0.0.14",
|
|
50
50
|
"@gh-symphony/worker": "0.0.14"
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|