@myagentroam/marctl 0.11.6 → 0.11.8
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 +3 -3
- package/src/i18n/zh-CN.mjs +3 -3
- 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]
|
|
@@ -101,7 +101,7 @@ Input and results:
|
|
|
101
101
|
not consumed until that Goal exits.
|
|
102
102
|
Acceptance does not guarantee immediate processing.
|
|
103
103
|
|
|
104
|
-
show --json includes session.status, session.
|
|
104
|
+
show --json includes session.status, session.modelId, session.effort,
|
|
105
105
|
session.title, session.runId, session.recentTools, session.queuedCount and
|
|
106
106
|
session.latestMessage. list reports latestActivity; wait may include progress.
|
|
107
107
|
Status is RUNNING/IDLE/SLEEPING. In history, segments[].items[] with
|
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]
|
|
@@ -95,7 +95,7 @@ ${configurationHelp}
|
|
|
95
95
|
仅明确要延后处理的输入使用 --queue:当前工作及前面的队列项结束后才消费,
|
|
96
96
|
有活动 Goal 时,必须等到该 Goal 退出才消费。已接收不保证立即处理。
|
|
97
97
|
|
|
98
|
-
show --json 包含 session.status、session.
|
|
98
|
+
show --json 包含 session.status、session.modelId、session.effort、
|
|
99
99
|
session.title、session.runId、session.recentTools、session.queuedCount 和
|
|
100
100
|
session.latestMessage。list 返回 latestActivity;wait 可能包含 progress;
|
|
101
101
|
状态为 RUNNING/IDLE/SLEEPING。历史中 segments[].items[] 的
|
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',
|