@myagentroam/marctl 0.11.5 → 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 +8 -8
- package/src/i18n/zh-CN.mjs +6 -6
- 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]
|
|
@@ -86,7 +86,7 @@ Input and results:
|
|
|
86
86
|
Start defaults to the current Session Runner; a terminal without a current
|
|
87
87
|
Session must specify --runner or --parent. Profile lists configured models,
|
|
88
88
|
not guaranteed account availability. Start returns without waiting.
|
|
89
|
-
Send appends by default; --steer
|
|
89
|
+
Send appends by default; --steer provides timely input and --queue defers.
|
|
90
90
|
--goal sets or replaces a Goal; --clear-goal clears it. Send can update a Goal
|
|
91
91
|
without text; omitted Goal is unchanged. Stop clears the target Session Goal.
|
|
92
92
|
Wait defaults to direct-child completion and 30s; 0ms is a snapshot.
|
|
@@ -95,11 +95,11 @@ Input and results:
|
|
|
95
95
|
-m and --message-file are exclusive; files use UTF-8 and - reads stdin.
|
|
96
96
|
List exposes current identity and bounded pages; nextCursor marks more.
|
|
97
97
|
Configuration and prompt changes apply to future executions.
|
|
98
|
-
Prefer --steer for timely
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
98
|
+
Prefer --steer for timely communication or course correction.
|
|
99
|
+
Use --queue only for deliberately deferred input: it is consumed after
|
|
100
|
+
current work and earlier queued inputs finish. With an active Goal it is
|
|
101
|
+
not consumed until that Goal exits.
|
|
102
|
+
Acceptance does not guarantee immediate processing.
|
|
103
103
|
|
|
104
104
|
show --json includes session.status, session.model, session.effort,
|
|
105
105
|
session.title, session.runId, session.recentTools, session.queuedCount and
|
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]
|
|
@@ -84,16 +84,16 @@ ${configurationHelp}
|
|
|
84
84
|
输入与结果:
|
|
85
85
|
start 默认当前会话的 Runner;没有当前会话的终端须指定 --runner 或
|
|
86
86
|
--parent。profile 显示已配置模型,不代表账号实时可用。start 不等待。
|
|
87
|
-
send 默认追加;--steer
|
|
87
|
+
send 默认追加;--steer 优先补充,--queue 排队。--goal 设置或替换目标,
|
|
88
88
|
--clear-goal 清除目标;send 可仅更新目标,省略则不修改。
|
|
89
89
|
stop 清除目标会话的 Goal。wait 默认等待直接子会话终态 30 秒,
|
|
90
90
|
0ms 为快照;正数小于 10 秒按 10 秒等待,最多 5 分钟。等待不会停止任务。
|
|
91
91
|
可只传图片:最多 5 张,单张 5 MiB、总计 10 MiB。-m 与 --message-file
|
|
92
92
|
互斥;文件使用 UTF-8,- 从 stdin 读取。list 返回当前身份和分页结果,
|
|
93
93
|
nextCursor 表示还有后续页面。配置和持久提示从后续执行生效。
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
94
|
+
即时沟通或纠偏优先使用 --steer。
|
|
95
|
+
仅明确要延后处理的输入使用 --queue:当前工作及前面的队列项结束后才消费,
|
|
96
|
+
有活动 Goal 时,必须等到该 Goal 退出才消费。已接收不保证立即处理。
|
|
97
97
|
|
|
98
98
|
show --json 包含 session.status、session.model、session.effort、
|
|
99
99
|
session.title、session.runId、session.recentTools、session.queuedCount 和
|
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',
|