@ai-setting/roy-agent-cli 1.4.4 → 1.4.5
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/index.js +23 -23
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -7219,14 +7219,14 @@ var require_dist = __commonJS((exports) => {
|
|
|
7219
7219
|
var require_package = __commonJS((exports, module) => {
|
|
7220
7220
|
module.exports = {
|
|
7221
7221
|
name: "@ai-setting/roy-agent-cli",
|
|
7222
|
-
version: "1.4.
|
|
7222
|
+
version: "1.4.5",
|
|
7223
7223
|
type: "module",
|
|
7224
7224
|
description: "CLI for roy-agent - Non-interactive command execution",
|
|
7225
7225
|
main: "./dist/index.js",
|
|
7226
7226
|
module: "./dist/index.js",
|
|
7227
7227
|
types: "./dist/index.d.ts",
|
|
7228
7228
|
bin: {
|
|
7229
|
-
roy: "./dist/bin/roy.js"
|
|
7229
|
+
"roy-agent": "./dist/bin/roy-agent.js"
|
|
7230
7230
|
},
|
|
7231
7231
|
exports: {
|
|
7232
7232
|
".": {
|
|
@@ -8205,8 +8205,8 @@ var ActCommand = {
|
|
|
8205
8205
|
const output = new OutputService;
|
|
8206
8206
|
output.configure({ quiet });
|
|
8207
8207
|
if (!args.message) {
|
|
8208
|
-
output.error("\u8BF7\u63D0\u4F9B\u8981\u6267\u884C\u7684\u6D88\u606F\uFF0C\u4F7F\u7528\u65B9\u5F0F\uFF1Aroy act <\u6D88\u606F>");
|
|
8209
|
-
output.info('\u793A\u4F8B\uFF1Aroy act "\u5E2E\u6211\u5199\u4E00\u4E2A hello world"');
|
|
8208
|
+
output.error("\u8BF7\u63D0\u4F9B\u8981\u6267\u884C\u7684\u6D88\u606F\uFF0C\u4F7F\u7528\u65B9\u5F0F\uFF1Aroy-agent act <\u6D88\u606F>");
|
|
8209
|
+
output.info('\u793A\u4F8B\uFF1Aroy-agent act "\u5E2E\u6211\u5199\u4E00\u4E2A hello world"');
|
|
8210
8210
|
process.exit(1);
|
|
8211
8211
|
}
|
|
8212
8212
|
const envService = new EnvironmentService(output);
|
|
@@ -8430,7 +8430,7 @@ var ActCommand = {
|
|
|
8430
8430
|
rootSpan.end(undefined, error instanceof Error ? error : new Error(String(error)));
|
|
8431
8431
|
if (error instanceof ContextError2 && error.code === ErrorCodes2.CONTEXT_THRESHOLD_EXCEEDED) {
|
|
8432
8432
|
output.error(`\u4E0A\u4E0B\u6587\u9608\u503C\u8D85\u51FA\u9650\u5236: ${error.usage?.totalTokens}/${error.contextWindow}`);
|
|
8433
|
-
output.info("\u8BF7\u624B\u52A8\u538B\u7F29\u4F1A\u8BDD: roy sessions compact " + (sessionId || "<session-id>"));
|
|
8433
|
+
output.info("\u8BF7\u624B\u52A8\u538B\u7F29\u4F1A\u8BDD: roy-agent sessions compact " + (sessionId || "<session-id>"));
|
|
8434
8434
|
}
|
|
8435
8435
|
throw error;
|
|
8436
8436
|
} finally {
|
|
@@ -8651,7 +8651,7 @@ class QueryExecutor {
|
|
|
8651
8651
|
}
|
|
8652
8652
|
if (error instanceof ContextError3 && error.code === ErrorCodes3.CONTEXT_THRESHOLD_EXCEEDED) {
|
|
8653
8653
|
this.output.error(`\u4E0A\u4E0B\u6587\u9608\u503C\u8D85\u51FA\u9650\u5236: ${error.usage?.totalTokens}/${error.contextWindow}`);
|
|
8654
|
-
this.output.info("\u8BF7\u624B\u52A8\u538B\u7F29\u4F1A\u8BDD: roy sessions compact " + sessionId);
|
|
8654
|
+
this.output.info("\u8BF7\u624B\u52A8\u538B\u7F29\u4F1A\u8BDD: roy-agent sessions compact " + sessionId);
|
|
8655
8655
|
}
|
|
8656
8656
|
throw error;
|
|
8657
8657
|
} finally {}
|
|
@@ -10980,7 +10980,7 @@ ${JSON.stringify(tc.args, null, 2)}
|
|
|
10980
10980
|
output.log(` Messages: ${addedMessages.length}`);
|
|
10981
10981
|
output.log("");
|
|
10982
10982
|
output.log(chalk13.gray(" Now run: "));
|
|
10983
|
-
output.log(chalk13.gray(` roy sessions compact ${a.sessionId}`));
|
|
10983
|
+
output.log(chalk13.gray(` roy-agent sessions compact ${a.sessionId}`));
|
|
10984
10984
|
output.log(chalk13.gray(" to trigger checkpoint generation"));
|
|
10985
10985
|
}
|
|
10986
10986
|
} finally {
|
|
@@ -11159,19 +11159,19 @@ var SessionsCommand = {
|
|
|
11159
11159
|
describe: `\u4F1A\u8BDD\u7BA1\u7406 - \u5217\u51FA\u3001\u521B\u5EFA\u3001\u5220\u9664\u548C\u7BA1\u7406\u4F1A\u8BDD
|
|
11160
11160
|
|
|
11161
11161
|
\u5220\u9664\u547D\u4EE4\u4F7F\u7528\u793A\u4F8B\uFF1A
|
|
11162
|
-
roy sessions delete <id> # \u5220\u9664\u5355\u4E2A\u4F1A\u8BDD
|
|
11163
|
-
roy sessions delete <id1> <id2> <id3> # \u6279\u91CF\u5220\u9664
|
|
11164
|
-
roy sessions delete --all # \u5220\u9664\u6240\u6709\u4F1A\u8BDD
|
|
11165
|
-
roy sessions delete --all --keep-active # \u5220\u9664\u6240\u6709\u975E\u6D3B\u8DC3\u4F1A\u8BDD
|
|
11166
|
-
roy sessions delete --older-than 30 # \u5220\u966430\u5929\u524D\u7684\u4F1A\u8BDD
|
|
11167
|
-
roy sessions delete --dry-run # \u9884\u89C8\u6A21\u5F0F
|
|
11162
|
+
roy-agent sessions delete <id> # \u5220\u9664\u5355\u4E2A\u4F1A\u8BDD
|
|
11163
|
+
roy-agent sessions delete <id1> <id2> <id3> # \u6279\u91CF\u5220\u9664
|
|
11164
|
+
roy-agent sessions delete --all # \u5220\u9664\u6240\u6709\u4F1A\u8BDD
|
|
11165
|
+
roy-agent sessions delete --all --keep-active # \u5220\u9664\u6240\u6709\u975E\u6D3B\u8DC3\u4F1A\u8BDD
|
|
11166
|
+
roy-agent sessions delete --older-than 30 # \u5220\u966430\u5929\u524D\u7684\u4F1A\u8BDD
|
|
11167
|
+
roy-agent sessions delete --dry-run # \u9884\u89C8\u6A21\u5F0F
|
|
11168
11168
|
|
|
11169
11169
|
\u641C\u7D22\u547D\u4EE4\u4F7F\u7528\u793A\u4F8B\uFF1A
|
|
11170
|
-
roy sessions grep K8s deployment error # \u591A\u5173\u952E\u5B57\u641C\u7D22
|
|
11171
|
-
roy sessions grep "exact phrase" # \u7CBE\u786E\u77ED\u8BED
|
|
11172
|
-
roy sessions grep --session <id> query # \u641C\u7D22\u6307\u5B9A\u4F1A\u8BDD
|
|
11173
|
-
roy sessions grep --limit 10 query # \u9650\u5236\u7ED3\u679C\u6570
|
|
11174
|
-
roy sessions grep --json query # JSON \u8F93\u51FA`,
|
|
11170
|
+
roy-agent sessions grep K8s deployment error # \u591A\u5173\u952E\u5B57\u641C\u7D22
|
|
11171
|
+
roy-agent sessions grep "exact phrase" # \u7CBE\u786E\u77ED\u8BED
|
|
11172
|
+
roy-agent sessions grep --session <id> query # \u641C\u7D22\u6307\u5B9A\u4F1A\u8BDD
|
|
11173
|
+
roy-agent sessions grep --limit 10 query # \u9650\u5236\u7ED3\u679C\u6570
|
|
11174
|
+
roy-agent sessions grep --json query # JSON \u8F93\u51FA`,
|
|
11175
11175
|
builder: (yargs) => {
|
|
11176
11176
|
return yargs.command(ListCommand).command(GetCommand).command(NewCommand).command(RenameCommand).command(DeleteCommand).command(MessagesCommand).command(GrepCommand).command(CompactCommand).command(CheckpointsCommand).command(ActiveCommand).command(AddMessageCommand).command(MockCommand).demandCommand().help();
|
|
11177
11177
|
},
|
|
@@ -12815,7 +12815,7 @@ var ConfigListCommand = {
|
|
|
12815
12815
|
}
|
|
12816
12816
|
};
|
|
12817
12817
|
function showHelp(output) {
|
|
12818
|
-
output.log(chalk32.bold.cyan("# roy config list"));
|
|
12818
|
+
output.log(chalk32.bold.cyan("# roy-agent config list"));
|
|
12819
12819
|
output.log("");
|
|
12820
12820
|
output.log("\u67E5\u770B roy-agent \u7EC4\u4EF6\u914D\u7F6E\u4FE1\u606F");
|
|
12821
12821
|
output.log("");
|
|
@@ -15767,8 +15767,8 @@ var WorkflowAddCommand = {
|
|
|
15767
15767
|
${a.desc}
|
|
15768
15768
|
|
|
15769
15769
|
## \u91CD\u8981\u63D0\u9192
|
|
15770
|
-
1. \u5148\u7528 \`roy workflow nodes\` \u67E5\u770B\u53EF\u7528\u7684\u8282\u70B9\u7C7B\u578B
|
|
15771
|
-
2. \u751F\u6210\u7684 YAML \u5FC5\u987B\u901A\u8FC7 \`roy workflow validate --yaml "<yaml>"\` \u9A8C\u8BC1
|
|
15770
|
+
1. \u5148\u7528 \`roy-agent workflow nodes\` \u67E5\u770B\u53EF\u7528\u7684\u8282\u70B9\u7C7B\u578B
|
|
15771
|
+
2. \u751F\u6210\u7684 YAML \u5FC5\u987B\u901A\u8FC7 \`roy-agent workflow validate --yaml "<yaml>"\` \u9A8C\u8BC1
|
|
15772
15772
|
3. \u9A8C\u8BC1\u901A\u8FC7\u540E\u624D\u8F93\u51FA\u6700\u7EC8 YAML`;
|
|
15773
15773
|
output.log(chalk50.gray("Running workflow-extractor agent..."));
|
|
15774
15774
|
const result = await agentComponent.run("workflow-extractor", prompt);
|
|
@@ -15810,7 +15810,7 @@ Agent output:
|
|
|
15810
15810
|
`));
|
|
15811
15811
|
} else {
|
|
15812
15812
|
output.error("Please provide --file or --desc option");
|
|
15813
|
-
output.error('Usage: roy workflow add --file <path> | --desc "<description>"');
|
|
15813
|
+
output.error('Usage: roy-agent workflow add --file <path> | --desc "<description>"');
|
|
15814
15814
|
process.exit(1);
|
|
15815
15815
|
}
|
|
15816
15816
|
const tags = a.tags ? a.tags.split(",").map((t) => t.trim()) : undefined;
|
|
@@ -17299,7 +17299,7 @@ Examples:
|
|
|
17299
17299
|
async function runCli() {
|
|
17300
17300
|
const pkg = await Promise.resolve().then(() => __toESM(require_package(), 1));
|
|
17301
17301
|
const yargs = yargsLib;
|
|
17302
|
-
await yargs(hideBin(process.argv)).scriptName("roy").version(pkg.default.version).option("quiet", {
|
|
17302
|
+
await yargs(hideBin(process.argv)).scriptName("roy-agent").version(pkg.default.version).option("quiet", {
|
|
17303
17303
|
alias: "q",
|
|
17304
17304
|
type: "boolean",
|
|
17305
17305
|
description: "Suppress all log output",
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-setting/roy-agent-cli",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "CLI for roy-agent - Non-interactive command execution",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"module": "./dist/index.js",
|
|
8
8
|
"types": "./dist/index.d.ts",
|
|
9
9
|
"bin": {
|
|
10
|
-
"roy": "./dist/bin/roy.js"
|
|
10
|
+
"roy-agent": "./dist/bin/roy-agent.js"
|
|
11
11
|
},
|
|
12
12
|
"exports": {
|
|
13
13
|
".": {
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"vscode-json-languageserver": "^1.3.4",
|
|
31
31
|
"yargs": "^17.7.2",
|
|
32
32
|
"zod-to-json-schema": "^3.25.2",
|
|
33
|
-
"@ai-setting/roy-agent-
|
|
34
|
-
"@ai-setting/roy-agent-
|
|
33
|
+
"@ai-setting/roy-agent-coder-harness": "1.1.3",
|
|
34
|
+
"@ai-setting/roy-agent-core": "1.4.5"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/node": "^20.10.0",
|