@myagentroam/marctl 0.11.6 → 0.11.7
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/package.json +1 -1
- package/src/i18n/en-US.mjs +2 -2
- package/src/i18n/zh-CN.mjs +2 -2
- package/src/session-args.mjs +6 -4
- package/src/session-prepare.mjs +2 -2
package/package.json
CHANGED
package/src/i18n/en-US.mjs
CHANGED
|
@@ -46,7 +46,7 @@ Notes:
|
|
|
46
46
|
|
|
47
47
|
Usage:
|
|
48
48
|
{program} start [-m <text> | --message-file <file|->] [--image <path> ...]
|
|
49
|
-
[--runner <runner>] [--parent <id>] [--model <id>] [--effort <value>]
|
|
49
|
+
[--runner <runner>] [--parent <id>] [--model-id <id>] [--effort <value>]
|
|
50
50
|
[--title <name>] [--goal <objective> | --clear-goal]
|
|
51
51
|
[--client-message-id <id>] [--json]
|
|
52
52
|
{program} send <id> [-m <text> | --message-file <file|->]
|
|
@@ -65,7 +65,7 @@ Usage:
|
|
|
65
65
|
[--limit <1..100>] [--json]
|
|
66
66
|
|
|
67
67
|
Management:
|
|
68
|
-
{program} config [<id>] [--model <id>] [--effort <value>] [--json]
|
|
68
|
+
{program} config [<id>] [--model-id <id>] [--effort <value>] [--json]
|
|
69
69
|
{program} rename [<id>] --title <name> [--json]
|
|
70
70
|
{program} prompt get|clear [<id>] [--json]
|
|
71
71
|
{program} prompt set [<id>] (-m <text> | --message-file <file|->) [--json]
|
package/src/i18n/zh-CN.mjs
CHANGED
|
@@ -45,7 +45,7 @@ ${configurationHelp}
|
|
|
45
45
|
|
|
46
46
|
用法:
|
|
47
47
|
{program} start [-m <text> | --message-file <file|->] [--image <path> ...]
|
|
48
|
-
[--runner <runner>] [--parent <id>] [--model <id>] [--effort <value>]
|
|
48
|
+
[--runner <runner>] [--parent <id>] [--model-id <id>] [--effort <value>]
|
|
49
49
|
[--title <name>] [--goal <objective> | --clear-goal]
|
|
50
50
|
[--client-message-id <id>] [--json]
|
|
51
51
|
{program} send <id> [-m <text> | --message-file <file|->]
|
|
@@ -64,7 +64,7 @@ ${configurationHelp}
|
|
|
64
64
|
[--limit <1..100>] [--json]
|
|
65
65
|
|
|
66
66
|
管理:
|
|
67
|
-
{program} config [<id>] [--model <id>] [--effort <value>] [--json]
|
|
67
|
+
{program} config [<id>] [--model-id <id>] [--effort <value>] [--json]
|
|
68
68
|
{program} rename [<id>] --title <name> [--json]
|
|
69
69
|
{program} prompt get|clear [<id>] [--json]
|
|
70
70
|
{program} prompt set [<id>] (-m <text> | --message-file <file|->) [--json]
|
package/src/session-args.mjs
CHANGED
|
@@ -11,7 +11,7 @@ const commands = {
|
|
|
11
11
|
history: ['cursor', 'limit'],
|
|
12
12
|
start: [
|
|
13
13
|
'runner',
|
|
14
|
-
'model',
|
|
14
|
+
'model-id',
|
|
15
15
|
'effort',
|
|
16
16
|
'title',
|
|
17
17
|
'message',
|
|
@@ -22,7 +22,7 @@ const commands = {
|
|
|
22
22
|
'goal',
|
|
23
23
|
'clear-goal'
|
|
24
24
|
],
|
|
25
|
-
config: ['model', 'effort'],
|
|
25
|
+
config: ['model-id', 'effort'],
|
|
26
26
|
rename: ['title'],
|
|
27
27
|
'prompt.get': [],
|
|
28
28
|
'prompt.set': ['message', 'message-file'],
|
|
@@ -51,6 +51,7 @@ const commands = {
|
|
|
51
51
|
wait: ['timeout', 'wait-for', 'mode', 'agent', 'run', 'until']
|
|
52
52
|
};
|
|
53
53
|
const fieldNames = {
|
|
54
|
+
'model-id': 'modelId',
|
|
54
55
|
parent: 'parentSessionId',
|
|
55
56
|
'expected-revision': 'expectedRevision',
|
|
56
57
|
'message-file': 'messageFile',
|
|
@@ -225,10 +226,11 @@ export function parseSessionArgs(argv, translate = createTranslator()) {
|
|
|
225
226
|
);
|
|
226
227
|
if (action === 'rename' && args.title !== undefined) args.title = args.title.trim();
|
|
227
228
|
if (args.title !== undefined && args.title.length > 160) throw invalid();
|
|
228
|
-
if (args.
|
|
229
|
+
if (args.modelId !== undefined && (args.modelId.trim().length === 0 || args.modelId.length > 120))
|
|
229
230
|
throw invalid();
|
|
230
231
|
if (args.effort !== undefined && args.effort.length > 120) throw invalid();
|
|
231
|
-
if (action === 'config' && args.
|
|
232
|
+
if (action === 'config' && args.modelId === undefined && args.effort === undefined)
|
|
233
|
+
throw invalid();
|
|
232
234
|
if (action === 'rename') {
|
|
233
235
|
if (args.title === undefined || args.title.trim().length === 0) throw invalid();
|
|
234
236
|
}
|
package/src/session-prepare.mjs
CHANGED
|
@@ -8,7 +8,7 @@ export async function prepareAgentNetworkRequest({ args, stdin, translate, sessi
|
|
|
8
8
|
const input = {};
|
|
9
9
|
for (const name of [
|
|
10
10
|
'runner',
|
|
11
|
-
'
|
|
11
|
+
'modelId',
|
|
12
12
|
'effort',
|
|
13
13
|
'title',
|
|
14
14
|
'cursor',
|
|
@@ -55,7 +55,7 @@ export async function prepareSessionRequest({ args, env, stdin, translate, sessi
|
|
|
55
55
|
'sessionId',
|
|
56
56
|
'parentSessionId',
|
|
57
57
|
'runner',
|
|
58
|
-
'
|
|
58
|
+
'modelId',
|
|
59
59
|
'effort',
|
|
60
60
|
'title',
|
|
61
61
|
'cursor',
|