@myagentroam/marctl 0.10.7 → 0.10.9

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myagentroam/marctl",
3
- "version": "0.10.7",
3
+ "version": "0.10.9",
4
4
  "description": "MyAgentRoam command-line interface for authorized Node access.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -80,11 +80,21 @@ Input:
80
80
  Config requires model or effort; other fields and permissions are unchanged.
81
81
  Use --effort "" for the Runner default. Active execution is not restarted.
82
82
 
83
+ Reading JSON:
84
+ show: session.activity, session.model, session.effort,
85
+ session.customTitle / session.runnerTitle, runs[] (id/status),
86
+ queue.items[], goal.status (goal may be null).
87
+ history: segments[].items[]; select kind === "assistant_message",
88
+ read payload.text.
89
+
83
90
  Delivery and waiting:
84
91
  Start/send return a clientMessageId.
85
92
  Send requires exactly one of --steer or --queue, even when idle.
86
- When useful, --steer adds gentle context to an in-progress task.
87
- --queue places input in a subsequent turn.
93
+ --steer prioritizes new context and may switch the current execution.
94
+ Node decides from actual state; reserve it for updates
95
+ affecting current work.
96
+ --queue schedules a subsequent turn; an active Goal can delay it
97
+ until the Goal exits.
88
98
  Example:
89
99
  marctl sessions send <session-id> --steer \\
90
100
  -m "Additional context: focus on the resume path." --json
@@ -79,11 +79,19 @@ ${configurationHelp}
79
79
  config 至少指定 model 或 effort;未指定字段和权限不变。
80
80
  --effort "" 使用 Runner 默认值,不重启当前执行。
81
81
 
82
+ 读取 JSON:
83
+ show:session.activity、session.model、session.effort、
84
+ session.customTitle / session.runnerTitle、runs[](id/status)、
85
+ queue.items[]、goal.status(goal 可为空)。
86
+ history:segments[].items[] 中按 kind === "assistant_message"
87
+ 筛选,读取 payload.text。
88
+
82
89
  投递与等待:
83
90
  start/send 返回 clientMessageId。
84
91
  send 必须二选一:--steer 或 --queue,空闲时也需指定。
85
- --steer 在必要时为正在进行的任务补充温和的新信息。
86
- --queue 将输入排入后续轮次。
92
+ --steer 优先补充新信息,可能切换当前执行;
93
+ Node 按实际状态裁决,仅用于影响当前工作的必要更新。
94
+ --queue 排入后续轮次;有活动 Goal 时可能等待 Goal 退出才处理。
87
95
  示例:
88
96
  marctl sessions send <session-id> --steer \\
89
97
  -m "Additional context: focus on the resume path." --json
package/src/sessions.mjs CHANGED
@@ -161,6 +161,8 @@ export async function runSessionCommand({ args, client, env, stdin, WebSocketCla
161
161
  if (args.action === 'current' && env.MAR_CTL_SESSION_ID) body.sessionId = env.MAR_CTL_SESSION_ID;
162
162
  if (args.action === 'start' && env.MAR_CTL_SESSION_ID)
163
163
  body.parentSessionId = env.MAR_CTL_SESSION_ID;
164
+ if (['start', 'send'].includes(args.action) && env.MAR_CTL_SESSION_ID)
165
+ body.sourceSessionId = env.MAR_CTL_SESSION_ID;
164
166
  if (args.messageFile !== undefined || args.message !== undefined)
165
167
  body.content = await messageContent(
166
168
  args,