@gh-symphony/cli 0.4.1 → 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-MUN7QSFF.js → chunk-34YCGQD2.js} +1 -1
- package/dist/{chunk-BBUCDKSL.js → chunk-HHBXGE23.js} +1 -1
- package/dist/{chunk-YKC6CGD6.js → chunk-LJUEOVAQ.js} +29 -2
- package/dist/{chunk-RU5GQG6A.js → chunk-OVE4KOBD.js} +1 -1
- package/dist/{chunk-GOR4JGJT.js → chunk-QBBJMCNC.js} +1 -1
- package/dist/{chunk-3EFLX75C.js → chunk-QHMT2V3X.js} +3 -3
- package/dist/{doctor-3WDODAKW.js → doctor-LT5UQG67.js} +5 -5
- package/dist/index.js +6 -6
- package/dist/{repo-3JLOCGRJ.js → repo-2NS2AU3D.js} +4 -4
- package/dist/{setup-AADOLSW5.js → setup-4ZBHGOXT.js} +3 -3
- package/dist/{upgrade-KTTYQQFB.js → upgrade-334S2JVT.js} +2 -2
- package/dist/{version-HXAMSXVG.js → version-J6P6WDMA.js} +1 -1
- package/dist/worker-entry.js +2 -2
- package/dist/{workflow-URPIYFYQ.js → workflow-R3G7IA3Z.js} +5 -5
- package/package.json +4 -4
|
@@ -359,7 +359,7 @@ function parseBlock(lines, startIndex, indent) {
|
|
|
359
359
|
);
|
|
360
360
|
}
|
|
361
361
|
collectionType = "array";
|
|
362
|
-
const itemText = trimmed.slice(2).trim();
|
|
362
|
+
const itemText = stripYamlInlineComment(trimmed.slice(2)).trim();
|
|
363
363
|
if (itemText === "|" || itemText === "|-") {
|
|
364
364
|
const [multiline, nextIndex3] = parseMultilineScalar(
|
|
365
365
|
lines,
|
|
@@ -396,7 +396,9 @@ function parseBlock(lines, startIndex, indent) {
|
|
|
396
396
|
throw new Error(`Invalid workflow front matter key "${rawKey}".`);
|
|
397
397
|
}
|
|
398
398
|
const key = parsedKey;
|
|
399
|
-
const remainder =
|
|
399
|
+
const remainder = stripYamlInlineComment(
|
|
400
|
+
trimmed.slice(separatorIndex + 1)
|
|
401
|
+
).trim();
|
|
400
402
|
if (remainder === "|" || remainder === "|-") {
|
|
401
403
|
const [multiline, nextIndex2] = parseMultilineScalar(
|
|
402
404
|
lines,
|
|
@@ -465,6 +467,7 @@ function findMappingSeparator(value) {
|
|
|
465
467
|
return -1;
|
|
466
468
|
}
|
|
467
469
|
function parseScalar(value) {
|
|
470
|
+
value = stripYamlInlineComment(value).trim();
|
|
468
471
|
if (value === "null") return null;
|
|
469
472
|
if (value === "true") return true;
|
|
470
473
|
if (value === "false") return false;
|
|
@@ -489,6 +492,30 @@ function parseScalar(value) {
|
|
|
489
492
|
}
|
|
490
493
|
return value;
|
|
491
494
|
}
|
|
495
|
+
function stripYamlInlineComment(value) {
|
|
496
|
+
let quote = null;
|
|
497
|
+
for (let index = 0; index < value.length; index += 1) {
|
|
498
|
+
const char = value[index];
|
|
499
|
+
if (quote) {
|
|
500
|
+
if (quote === '"' && char === "\\") {
|
|
501
|
+
index += 1;
|
|
502
|
+
continue;
|
|
503
|
+
}
|
|
504
|
+
if (char === quote) {
|
|
505
|
+
quote = null;
|
|
506
|
+
}
|
|
507
|
+
continue;
|
|
508
|
+
}
|
|
509
|
+
if (char === '"' || char === "'") {
|
|
510
|
+
quote = char;
|
|
511
|
+
continue;
|
|
512
|
+
}
|
|
513
|
+
if (char === "#" && (index === 0 || /\s/.test(value[index - 1] ?? ""))) {
|
|
514
|
+
return value.slice(0, index).trimEnd();
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
return value;
|
|
518
|
+
}
|
|
492
519
|
function parseInlineArray(value) {
|
|
493
520
|
const inner = value.slice(1, -1).trim();
|
|
494
521
|
if (!inner) {
|
|
@@ -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,7 +19,7 @@ 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
25
|
} from "./chunk-YZP5N5XP.js";
|
|
@@ -5,14 +5,14 @@ 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
18
|
} from "./chunk-3IRPSPAF.js";
|
|
@@ -40,7 +40,7 @@ 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,
|
package/dist/index.js
CHANGED
|
@@ -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-
|
|
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
425
|
config: () => import("./config-cmd-OIVIUKG7.js"),
|
|
426
|
-
version: () => import("./version-
|
|
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");
|
|
@@ -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,8 +33,8 @@ 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
|
|
@@ -58,7 +58,7 @@ 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,
|
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
warnDeprecatedSkipContext,
|
|
17
17
|
writeEcosystem,
|
|
18
18
|
writeWorkflowPlan
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-OVE4KOBD.js";
|
|
20
20
|
import {
|
|
21
21
|
initRepoRuntime
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-34YCGQD2.js";
|
|
23
23
|
import "./chunk-3IRPSPAF.js";
|
|
24
24
|
import {
|
|
25
25
|
GhAuthError,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
listUserProjects,
|
|
34
34
|
validateToken
|
|
35
35
|
} from "./chunk-SMNIGNS3.js";
|
|
36
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-LJUEOVAQ.js";
|
|
37
37
|
import "./chunk-YZP5N5XP.js";
|
|
38
38
|
|
|
39
39
|
// src/commands/setup.ts
|
|
@@ -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,12 +6,12 @@ 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-
|
|
14
|
+
import "./chunk-LJUEOVAQ.js";
|
|
15
15
|
import "./chunk-YZP5N5XP.js";
|
|
16
16
|
export {
|
|
17
17
|
workflow_default as default,
|
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/control-plane": "0.0.15",
|
|
46
44
|
"@gh-symphony/dashboard": "0.0.14",
|
|
45
|
+
"@gh-symphony/control-plane": "0.0.15",
|
|
47
46
|
"@gh-symphony/orchestrator": "0.0.14",
|
|
48
|
-
"@gh-symphony/runtime-claude": "0.0.14",
|
|
49
47
|
"@gh-symphony/tracker-github": "0.0.14",
|
|
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": {
|