@myagentroam/node 0.10.50 → 0.10.52

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/dist/connector.js CHANGED
@@ -890,8 +890,7 @@ export class NodeConnector {
890
890
  sessionId: input.sessionId,
891
891
  workspaceId: input.workspaceId,
892
892
  ...(task === undefined ? {} : { taskId: task.id, revision: task.revision }),
893
- actorUserId: run.initiatedByUserId,
894
- readonly: run.source === 'SCHEDULED'
893
+ actorUserId: run.initiatedByUserId
895
894
  });
896
895
  },
897
896
  notificationMcp: async (input) => {
@@ -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. Use this skill to inspect, create, rename, configure, message, stop or coordinate independent Sessions, manage their scheduled tasks, or use authorized Node terminals and file transfer. Load before cross-Session coordination.',
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 uses normal user permissions. 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
- ? 'RESTARTING'
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 'RESTARTING';
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 'RESTARTING';
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: 'RESTARTING' }
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: 'RESTARTING' };
320
+ return { run: active, delivery: 'ACCEPTED' };
321
321
  }
322
322
  this.startIdleQueue(item.sessionId);
323
323
  const started = this.options.runtime.activeSessionRun(item.sessionId);
@@ -39,8 +39,7 @@ export class ScheduleMcpBridge {
39
39
  args,
40
40
  environment: {
41
41
  MAR_SCHEDULE_MCP_ENDPOINT: this.#endpoint,
42
- MAR_SCHEDULE_MCP_TOKEN: token,
43
- MAR_SCHEDULE_MCP_READ_ONLY: capability.readonly ? '1' : '0'
42
+ MAR_SCHEDULE_MCP_TOKEN: token
44
43
  },
45
44
  allowedToolCallers: {
46
45
  [NODE_MCP.schedule.tools.get]: ['direct', 'programmatic'],
@@ -106,8 +105,6 @@ export class ScheduleMcpBridge {
106
105
  return;
107
106
  }
108
107
  if (request.tool === NODE_MCP.schedule.tools.create) {
109
- if (capability.readonly)
110
- throw new Error('SCHEDULE_READ_ONLY');
111
108
  if (task !== undefined)
112
109
  throw new Error('SCHEDULE_ALREADY_EXISTS');
113
110
  const args = record(request.arguments);
@@ -134,8 +131,6 @@ export class ScheduleMcpBridge {
134
131
  }
135
132
  if (request.tool !== NODE_MCP.schedule.tools.update)
136
133
  throw new Error('SCHEDULE_TOOL_INVALID');
137
- if (capability.readonly)
138
- throw new Error('SCHEDULE_READ_ONLY');
139
134
  if (task === undefined)
140
135
  throw new Error('SCHEDULE_NOT_FOUND');
141
136
  const args = record(request.arguments);
@@ -16,33 +16,31 @@ server.registerTool(NODE_MCP.schedule.tools.get, {
16
16
  description: 'Read the MAR scheduled task bound to this MAR-managed Workspace conversation, or null if none exists. ' +
17
17
  scopeNote
18
18
  }, async () => result(await request(NODE_MCP.schedule.tools.get, {})));
19
- if (process.env['MAR_SCHEDULE_MCP_READ_ONLY'] !== '1') {
20
- server.registerTool(NODE_MCP.schedule.tools.create, {
21
- description: 'Create the MAR scheduled task for this MAR-managed Workspace conversation. MAR runs it in this conversation for each admitted trigger using the connected Node time zone. ' +
22
- scopeNote,
23
- inputSchema: {
24
- objective: z.string().min(1).max(20_000).describe(objectiveDescription),
25
- cron: z
26
- .string()
27
- .min(9)
28
- .max(64)
29
- .describe('Five-field cron expression interpreted in the connected MAR Node time zone. It defines the schedule separately from the per-run task body.')
30
- }
31
- }, async (args) => result(await request(NODE_MCP.schedule.tools.create, args)));
32
- server.registerTool(NODE_MCP.schedule.tools.update, {
33
- description: 'Update the MAR scheduled task for this MAR-managed Workspace conversation. MAR runs the saved objective in this conversation for each admitted trigger using the connected Node time zone. ' +
34
- scopeNote,
35
- inputSchema: {
36
- objective: z.string().min(1).max(20_000).describe(objectiveDescription).optional(),
37
- cron: z
38
- .string()
39
- .min(9)
40
- .max(64)
41
- .describe('Replacement five-field cron expression in the connected MAR Node time zone.')
42
- .optional()
43
- }
44
- }, async (args) => result(await request(NODE_MCP.schedule.tools.update, args)));
45
- }
19
+ server.registerTool(NODE_MCP.schedule.tools.create, {
20
+ description: 'Create the MAR scheduled task for this MAR-managed Workspace conversation. MAR runs it in this conversation for each admitted trigger using the connected Node time zone. ' +
21
+ scopeNote,
22
+ inputSchema: {
23
+ objective: z.string().min(1).max(20_000).describe(objectiveDescription),
24
+ cron: z
25
+ .string()
26
+ .min(9)
27
+ .max(64)
28
+ .describe('Five-field cron expression interpreted in the connected MAR Node time zone. It defines the schedule separately from the per-run task body.')
29
+ }
30
+ }, async (args) => result(await request(NODE_MCP.schedule.tools.create, args)));
31
+ server.registerTool(NODE_MCP.schedule.tools.update, {
32
+ description: 'Update the MAR scheduled task for this MAR-managed Workspace conversation. MAR runs the saved objective in this conversation for each admitted trigger using the connected Node time zone. ' +
33
+ scopeNote,
34
+ inputSchema: {
35
+ objective: z.string().min(1).max(20_000).describe(objectiveDescription).optional(),
36
+ cron: z
37
+ .string()
38
+ .min(9)
39
+ .max(64)
40
+ .describe('Replacement five-field cron expression in the connected MAR Node time zone.')
41
+ .optional()
42
+ }
43
+ }, async (args) => result(await request(NODE_MCP.schedule.tools.update, args)));
46
44
  await server.connect(new StdioServerTransport());
47
45
  function request(tool, args) {
48
46
  return new Promise((resolve, reject) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myagentroam/node",
3
- "version": "0.10.50",
3
+ "version": "0.10.52",
4
4
  "description": "MyAgentRoam Node runtime CLI.",
5
5
  "license": "Apache-2.0 AND GPL-2.0-or-later",
6
6
  "type": "module",
@@ -37,9 +37,9 @@
37
37
  "playwright": "1.62.1",
38
38
  "ws": "^8.21.3",
39
39
  "zod": "4.4.3",
40
- "@myagentroam/agent": "0.10.50",
41
- "@myagentroam/protocol": "0.10.50",
42
- "@myagentroam/marctl": "0.10.10",
40
+ "@myagentroam/agent": "0.10.52",
41
+ "@myagentroam/marctl": "0.10.11",
42
+ "@myagentroam/protocol": "0.10.52",
43
43
  "@myagentroam/code-navigation": "0.10.1"
44
44
  },
45
45
  "devDependencies": {