@yeaft/webchat-agent 1.0.525 → 1.0.527
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/local-runtime/server/index.js +2 -0
- package/local-runtime/server/routes/installer-routes.js +19 -0
- package/local-runtime/version.json +1 -1
- package/local-runtime/web/app.bundle.js +174 -175
- package/local-runtime/web/app.bundle.js.gz +0 -0
- package/local-runtime/web/index.html +2 -2
- package/local-runtime/web/installers/install.ps1 +264 -0
- package/local-runtime/web/installers/install.sh +150 -0
- package/local-runtime/web/style.bundle.css +1 -1
- package/local-runtime/web/style.bundle.css.gz +0 -0
- package/package.json +1 -1
- package/repo-workflow-cli.js +34 -26
- package/repo-workflow.js +0 -779
- package/service/linux.js +24 -11
- package/service/macos.js +23 -19
- package/service/windows.js +8 -7
- package/yeaft/routing/router.js +0 -135
- package/yeaft/tools/activation.js +0 -3
- package/yeaft/tools/index.js +0 -2
- package/yeaft/tools/route-forward.js +1 -19
- package/yeaft/web-bridge.js +2 -54
- package/skills/review-merge-tag/SKILL.md +0 -78
- package/yeaft/tools/repo-workflow.js +0 -80
|
Binary file
|
package/package.json
CHANGED
package/repo-workflow-cli.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
formatRepoWorkflowError,
|
|
3
|
-
landRepoWorkflow,
|
|
4
3
|
prepareRepoReview,
|
|
5
4
|
prepareRepoWorkflow,
|
|
6
5
|
} from './repo-workflow.js';
|
|
7
6
|
|
|
8
|
-
const COMMANDS = new Set(['prepare', 'review-prep'
|
|
7
|
+
const COMMANDS = new Set(['prepare', 'review-prep']);
|
|
9
8
|
|
|
10
9
|
function requireValue(argv, index, option) {
|
|
11
10
|
const value = argv[index + 1];
|
|
@@ -47,13 +46,6 @@ export function parseRepoWorkflowArgs(argv) {
|
|
|
47
46
|
case '--name': options.name = value; break;
|
|
48
47
|
case '--worktree': options.worktreePath = value; break;
|
|
49
48
|
case '--pr': options.pr = parseInteger(value, arg); break;
|
|
50
|
-
case '--reviewed-head': options.reviewedHead = value; break;
|
|
51
|
-
case '--reviewed-snapshot': options.reviewedSnapshot = value; break;
|
|
52
|
-
case '--tag-prefix': options.tagPrefix = value; break;
|
|
53
|
-
case '--tag-start': options.tagStart = parseInteger(value, arg); break;
|
|
54
|
-
case '--workflow': options.workflow = value; break;
|
|
55
|
-
case '--wait-timeout-ms': options.waitTimeoutMs = parseInteger(value, arg); break;
|
|
56
|
-
case '--poll-interval-ms': options.pollIntervalMs = parseInteger(value, arg); break;
|
|
57
49
|
default: throw new Error(`Unknown option: ${arg}`);
|
|
58
50
|
}
|
|
59
51
|
}
|
|
@@ -61,17 +53,39 @@ export function parseRepoWorkflowArgs(argv) {
|
|
|
61
53
|
}
|
|
62
54
|
|
|
63
55
|
export function repoWorkflowHelp(command = null) {
|
|
64
|
-
const common = `Common options
|
|
56
|
+
const common = `Common options:
|
|
57
|
+
--cwd <path> Repository or worktree path (default: current directory)
|
|
58
|
+
--remote <name> Git remote (default: origin)`;
|
|
65
59
|
if (command === 'prepare') {
|
|
66
|
-
return `Usage: yeaft-repo prepare --name <name> [options]
|
|
60
|
+
return `Usage: yeaft-repo prepare --name <name> [options]
|
|
61
|
+
|
|
62
|
+
Fetch the default branch and create or reuse an exact-base development worktree.
|
|
63
|
+
|
|
64
|
+
Options:
|
|
65
|
+
--name <name> Worktree and yeaft-wt/<name> branch name
|
|
66
|
+
--base <branch> Base branch (default: repository default)
|
|
67
|
+
--worktree <path> Worktree path
|
|
68
|
+
${common}`;
|
|
67
69
|
}
|
|
68
70
|
if (command === 'review-prep') {
|
|
69
|
-
return `Usage: yeaft-repo review-prep --pr <number> [options]
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
return `Usage: yeaft-repo review-prep --pr <number> [options]
|
|
72
|
+
|
|
73
|
+
Freeze GitHub PR head/base/merge refs and create or reuse a clean detached review worktree.
|
|
74
|
+
|
|
75
|
+
Options:
|
|
76
|
+
--pr <number> Pull request number
|
|
77
|
+
--name <name> Review worktree name
|
|
78
|
+
--worktree <path> Review worktree path
|
|
79
|
+
${common}`;
|
|
73
80
|
}
|
|
74
|
-
return `yeaft-repo — deterministic GitHub
|
|
81
|
+
return `yeaft-repo — deterministic GitHub worktree preparation
|
|
82
|
+
|
|
83
|
+
Usage:
|
|
84
|
+
yeaft-repo prepare --name <name> [options]
|
|
85
|
+
yeaft-repo review-prep --pr <number> [options]
|
|
86
|
+
|
|
87
|
+
Each command emits one JSON result. GitHub repositories require authenticated git and gh CLIs.
|
|
88
|
+
Run yeaft-repo <command> --help for command options.`;
|
|
75
89
|
}
|
|
76
90
|
|
|
77
91
|
export async function runRepoWorkflowCli(argv, dependencies = {}) {
|
|
@@ -83,19 +97,13 @@ export async function runRepoWorkflowCli(argv, dependencies = {}) {
|
|
|
83
97
|
writeOut(repoWorkflowHelp(parsed.command));
|
|
84
98
|
return 0;
|
|
85
99
|
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
} else if (parsed.command === 'review-prep') {
|
|
90
|
-
result = await prepareRepoReview(parsed.options, dependencies);
|
|
91
|
-
} else {
|
|
92
|
-
result = await landRepoWorkflow(parsed.options, dependencies);
|
|
93
|
-
}
|
|
100
|
+
const result = parsed.command === 'prepare'
|
|
101
|
+
? await prepareRepoWorkflow(parsed.options, dependencies)
|
|
102
|
+
: await prepareRepoReview(parsed.options, dependencies);
|
|
94
103
|
writeOut(JSON.stringify(result));
|
|
95
104
|
return 0;
|
|
96
105
|
} catch (error) {
|
|
97
|
-
|
|
98
|
-
writeErr(JSON.stringify(result));
|
|
106
|
+
writeErr(JSON.stringify(formatRepoWorkflowError(error)));
|
|
99
107
|
return 1;
|
|
100
108
|
}
|
|
101
109
|
}
|