@myagentroam/node 0.10.50 → 0.10.51
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.
|
@@ -10,14 +10,14 @@ export function marctlHostSkill(environment = {}) {
|
|
|
10
10
|
return undefined;
|
|
11
11
|
return {
|
|
12
12
|
name: 'marctl',
|
|
13
|
-
description: 'You are in a MAR-managed Workspace with marctl on PATH.
|
|
13
|
+
description: 'You are in a MAR-managed Workspace with marctl on PATH. Load this skill to create, coordinate, message or stop independent Sessions; inspect Session status/history/results; change titles or models; manage Goals or scheduled tasks for the current or other Sessions; or run commands/transfer files on other authorized MAR Nodes, even when marctl is not named. Ordinary local shell work and built-in subagents alone do not require it.',
|
|
14
14
|
requiredTools: ['exec'],
|
|
15
15
|
load: async () => marctlInstructions
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
18
|
const marctlInstructions = [
|
|
19
19
|
'## MAR Workspace CLI',
|
|
20
|
-
'Use exec to run marctl. Reuse loaded guidance while it remains in context. Consult local marctl help sessions for unclear options and marctl --version when version matters; neither needs a network request. Capabilities and permissions still apply.',
|
|
20
|
+
'Use exec to run marctl. Reuse loaded guidance while it remains in context. Consult local marctl help sessions for unclear options (shared by all Session subcommands) and marctl --version when version matters; neither needs a network request. Capabilities and permissions still apply.',
|
|
21
21
|
'Use sessions current --json only when the current identity or scope is unknown. For a known target ID, use sessions show <session-id> --json only when fresh state is needed, without current/list first. Use sessions list --limit 10 --json to discover an unknown target; narrow with --query <title> or --parent <session-id>. These query Node-known Sessions without scanning Runners. Use sessions graph <session-id> --json only for a creation tree (bounded to 100 nodes with truncated); start automatically records the current Session as parent, not task ownership. Stop once found and follow nextCursor only if needed. Do not scan the Workspace to prove capacity: check assigned work, recorded worker IDs and overlapping write scopes.',
|
|
22
22
|
'MAR binds sessions to the current Node and Workspace. No --node or --workspace override exists. Use returned native Session IDs, not titles, for later operations. A Workspace terminal may have no current Session. Missing scope, an old Node, expired authorization or an unavailable Runner is an explicit error, not permission to bypass the API.',
|
|
23
23
|
'## Create and coordinate independent Sessions',
|
|
@@ -29,7 +29,7 @@ const marctlInstructions = [
|
|
|
29
29
|
'show --json fields: session.activity, session.model, session.effort, session.customTitle or session.runnerTitle, runs[] (id/status), queue.items[], and goal.status (goal may be null). Run status and Goal status are separate.',
|
|
30
30
|
'Rename any authorized Workspace Session with sessions rename <session-id> --title <name> --json; parent relationships do not restrict renaming.',
|
|
31
31
|
'show/config/history/graph/rename and schedule get/create/update may omit the Session ID to use the current Session. Without a current Session, specify an ID. send/goal/stop/wait always require explicit target IDs.',
|
|
32
|
-
'Use sessions schedule list/get/create/update for the same tasks as the built-in schedule MCP, which is hidden while this skill is available. list is Workspace-scoped. create requires --cron and text (-m/--message-file, up to 20,000 characters). update requires --expected-revision from get and at least cron or text. Other-owner edits return a PENDING proposal, not an applied change; scheduled execution is read-only. Follow existing approval rules and do not retry conflicts or uncertain writes blindly.',
|
|
32
|
+
'Use sessions schedule list/get/create/update for the same tasks as the built-in schedule MCP, which is hidden while this skill is available. list is Workspace-scoped. create requires --cron and text (-m/--message-file, up to 20,000 characters). update requires --expected-revision from get and at least cron or text. get returns task (null if absent), with id, revision, objective, cron, timezone and enabled; applied updates also return task. Reuse that task instead of probing its shape or refetching unchanged state. Schedule text is trimmed at both ends; compare after the same trimming; a conclusive update response needs no extra get. Other-owner edits return a PENDING proposal, not an applied change; scheduled execution is read-only. Follow existing approval rules and do not retry conflicts or uncertain writes blindly.',
|
|
33
33
|
'Read results with sessions history <session-id> --limit 10 --json (default: latest 10 SEGMENTs, not messages; --limit 1..100). In segments[].items[], select kind === "assistant_message" and read payload.text; keep segment runId and user_message.payload.clientMessageId for queued-input correlation. Reuse the returned page; follow --cursor <nextCursor> only for missing evidence.',
|
|
34
34
|
'Use sessions send <session-id> --steer -m "Additional context: focus on the resume path." --json for decision-changing updates rather than routine reports: it may switch the current execution. Node decides delivery from actual state; an idle Session receives ordinary input. Choose exactly one of --steer or --queue, even when idle; missing, conflicting, repeated, or obsolete options are rejected locally before input is read or a request is sent. Use --queue to place input in a subsequent turn; with an active Goal, ordinary queued input waits until the Goal exits. start/send return clientMessageId and the accepted/queued result. A queued result may refer to the currently active Run: associate queueItemId/clientMessageId with history before deciding that input finished. There are no queue-item edit/delete/reorder commands; show includes queue state.',
|
|
35
35
|
'Wait with sessions wait <session-id> --run <run-id> --timeout 5m --json through the existing Watch. Prefer --timeout 5m when blocked on task completion; use 30s for a short deadline. Continue useful independent work before waiting. If exec returns a running process or cell, reuse its process/cell handle rather than starting another wait or polling show/list. Timeout or cancelled waiting does not stop the task. Use sessions stop <session-id> --run <run-id> --json only to stop that active Run; ownership rules still apply.',
|
|
@@ -121,7 +121,7 @@ export class ContinuousRunCoordinator {
|
|
|
121
121
|
const attempt = this.tryNativeSteer(input.submissionId, active, input.onNativeAccepted);
|
|
122
122
|
if (attempt)
|
|
123
123
|
return attempt.then((accepted) => accepted
|
|
124
|
-
? '
|
|
124
|
+
? 'ACCEPTED'
|
|
125
125
|
: this.suspended || this.options.stopped()
|
|
126
126
|
? 'QUEUED'
|
|
127
127
|
: this.settleFallback(input));
|
|
@@ -166,7 +166,7 @@ export class ContinuousRunCoordinator {
|
|
|
166
166
|
this.options.runtime.prioritizeQueueItem(item.id);
|
|
167
167
|
this.publish(sessionId);
|
|
168
168
|
this.scheduleImmediate(sessionId);
|
|
169
|
-
return '
|
|
169
|
+
return 'ACCEPTED';
|
|
170
170
|
}
|
|
171
171
|
if (this.options.runtime.currentExecutionId(active.id) === undefined &&
|
|
172
172
|
!this.isMessageRun(active)) {
|
|
@@ -176,7 +176,7 @@ export class ContinuousRunCoordinator {
|
|
|
176
176
|
return 'QUEUED';
|
|
177
177
|
}
|
|
178
178
|
this.replace(input.submissionId, active.id);
|
|
179
|
-
return '
|
|
179
|
+
return 'ACCEPTED';
|
|
180
180
|
}
|
|
181
181
|
if (startsAcceptedRun) {
|
|
182
182
|
this.schedule(sessionId);
|
|
@@ -214,7 +214,7 @@ export class ContinuousRunCoordinator {
|
|
|
214
214
|
const attempt = this.tryNativeSteer(itemId, active);
|
|
215
215
|
if (attempt)
|
|
216
216
|
return attempt.then((accepted) => accepted
|
|
217
|
-
? { run: active, delivery: '
|
|
217
|
+
? { run: active, delivery: 'ACCEPTED' }
|
|
218
218
|
: this.suspended || this.options.stopped()
|
|
219
219
|
? { run: active, delivery: 'QUEUED' }
|
|
220
220
|
: this.executeQueueItemFallback(itemId));
|
|
@@ -317,7 +317,7 @@ export class ContinuousRunCoordinator {
|
|
|
317
317
|
if (this.isMessageRun(active))
|
|
318
318
|
this.scheduleImmediate(item.sessionId);
|
|
319
319
|
}
|
|
320
|
-
return { run: active, delivery: '
|
|
320
|
+
return { run: active, delivery: 'ACCEPTED' };
|
|
321
321
|
}
|
|
322
322
|
this.startIdleQueue(item.sessionId);
|
|
323
323
|
const started = this.options.runtime.activeSessionRun(item.sessionId);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myagentroam/node",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.51",
|
|
4
4
|
"description": "MyAgentRoam Node runtime CLI.",
|
|
5
5
|
"license": "Apache-2.0 AND GPL-2.0-or-later",
|
|
6
6
|
"type": "module",
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
"playwright": "1.62.1",
|
|
38
38
|
"ws": "^8.21.3",
|
|
39
39
|
"zod": "4.4.3",
|
|
40
|
-
"@myagentroam/agent": "0.10.
|
|
41
|
-
"@myagentroam/
|
|
42
|
-
"@myagentroam/
|
|
43
|
-
"@myagentroam/
|
|
40
|
+
"@myagentroam/agent": "0.10.51",
|
|
41
|
+
"@myagentroam/code-navigation": "0.10.1",
|
|
42
|
+
"@myagentroam/protocol": "0.10.51",
|
|
43
|
+
"@myagentroam/marctl": "0.10.10"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/ws": "^8.18.1"
|