@ai-setting/roy-agent-cli 1.7.4 → 1.7.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/bin/roy-agent.js
CHANGED
|
@@ -9461,7 +9461,7 @@ class CliQuietModeService {
|
|
|
9461
9461
|
// package.json
|
|
9462
9462
|
var package_default = {
|
|
9463
9463
|
name: "@ai-setting/roy-agent-cli",
|
|
9464
|
-
version: "1.7.
|
|
9464
|
+
version: "1.7.5",
|
|
9465
9465
|
type: "module",
|
|
9466
9466
|
description: "CLI for roy-agent - Non-interactive command execution",
|
|
9467
9467
|
main: "./dist/index.js",
|
|
@@ -10781,13 +10781,16 @@ function createActCommand(externalEnvService) {
|
|
|
10781
10781
|
if (!quiet) {
|
|
10782
10782
|
output.info(`会话: ${session.title} (${sessionId})`);
|
|
10783
10783
|
}
|
|
10784
|
-
} else {
|
|
10785
|
-
output.warn(
|
|
10784
|
+
} else if (!/^[a-zA-Z0-9_-]{1,128}$/.test(sessionId)) {
|
|
10785
|
+
output.warn(`会话 ID 格式非法: ${sessionId},将创建新会话`);
|
|
10786
10786
|
sessionId = undefined;
|
|
10787
|
+
} else if (!quiet) {
|
|
10788
|
+
output.info(`会话 ID 合法但不存在,将使用此 ID 创建新会话: ${sessionId}`);
|
|
10787
10789
|
}
|
|
10788
10790
|
}
|
|
10789
|
-
if (!sessionId) {
|
|
10791
|
+
if (!sessionId || !await sessionComponent.get(sessionId)) {
|
|
10790
10792
|
const newSession = await sessionComponent.create({
|
|
10793
|
+
id: sessionId,
|
|
10791
10794
|
title: `Session - ${new Date().toLocaleString("zh-CN")}`
|
|
10792
10795
|
});
|
|
10793
10796
|
sessionId = newSession.id;
|
package/dist/index.js
CHANGED
|
@@ -9460,7 +9460,7 @@ class CliQuietModeService {
|
|
|
9460
9460
|
// package.json
|
|
9461
9461
|
var package_default = {
|
|
9462
9462
|
name: "@ai-setting/roy-agent-cli",
|
|
9463
|
-
version: "1.7.
|
|
9463
|
+
version: "1.7.5",
|
|
9464
9464
|
type: "module",
|
|
9465
9465
|
description: "CLI for roy-agent - Non-interactive command execution",
|
|
9466
9466
|
main: "./dist/index.js",
|
|
@@ -10780,13 +10780,16 @@ function createActCommand(externalEnvService) {
|
|
|
10780
10780
|
if (!quiet) {
|
|
10781
10781
|
output.info(`会话: ${session.title} (${sessionId})`);
|
|
10782
10782
|
}
|
|
10783
|
-
} else {
|
|
10784
|
-
output.warn(
|
|
10783
|
+
} else if (!/^[a-zA-Z0-9_-]{1,128}$/.test(sessionId)) {
|
|
10784
|
+
output.warn(`会话 ID 格式非法: ${sessionId},将创建新会话`);
|
|
10785
10785
|
sessionId = undefined;
|
|
10786
|
+
} else if (!quiet) {
|
|
10787
|
+
output.info(`会话 ID 合法但不存在,将使用此 ID 创建新会话: ${sessionId}`);
|
|
10786
10788
|
}
|
|
10787
10789
|
}
|
|
10788
|
-
if (!sessionId) {
|
|
10790
|
+
if (!sessionId || !await sessionComponent.get(sessionId)) {
|
|
10789
10791
|
const newSession = await sessionComponent.create({
|
|
10792
|
+
id: sessionId,
|
|
10790
10793
|
title: `Session - ${new Date().toLocaleString("zh-CN")}`
|
|
10791
10794
|
});
|
|
10792
10795
|
sessionId = newSession.id;
|
|
Binary file
|