@yu_robotics/remote-cli 1.6.265 → 1.6.267

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.
Files changed (120) hide show
  1. package/dist/client/MessageHandler.d.ts +1 -0
  2. package/dist/client/MessageHandler.d.ts.map +1 -1
  3. package/dist/client/MessageHandler.js +86 -58
  4. package/dist/client/MessageHandler.js.map +1 -1
  5. package/dist/executor/AgyExecutor.d.ts +0 -2
  6. package/dist/executor/AgyExecutor.d.ts.map +1 -1
  7. package/dist/executor/AgyExecutor.js +0 -19
  8. package/dist/executor/AgyExecutor.js.map +1 -1
  9. package/dist/executor/ClaudePersistentExecutor.d.ts +1 -4
  10. package/dist/executor/ClaudePersistentExecutor.d.ts.map +1 -1
  11. package/dist/executor/ClaudePersistentExecutor.js +0 -59
  12. package/dist/executor/ClaudePersistentExecutor.js.map +1 -1
  13. package/dist/executor/DshExecutor.d.ts +1 -5
  14. package/dist/executor/DshExecutor.d.ts.map +1 -1
  15. package/dist/executor/DshExecutor.js +0 -35
  16. package/dist/executor/DshExecutor.js.map +1 -1
  17. package/dist/executor/IExecutor.d.ts +0 -4
  18. package/dist/executor/IExecutor.d.ts.map +1 -1
  19. package/dist/executor/acp/AcpClient.d.ts +0 -1
  20. package/dist/executor/acp/AcpClient.d.ts.map +1 -1
  21. package/dist/executor/acp/AcpClient.js.map +1 -1
  22. package/dist/executor/agy/AgyAcpRuntime.d.ts +0 -3
  23. package/dist/executor/agy/AgyAcpRuntime.d.ts.map +1 -1
  24. package/dist/executor/agy/AgyAcpRuntime.js +1 -30
  25. package/dist/executor/agy/AgyAcpRuntime.js.map +1 -1
  26. package/dist/executor/dsh/DshAcpClient.d.ts +1 -10
  27. package/dist/executor/dsh/DshAcpClient.d.ts.map +1 -1
  28. package/dist/executor/dsh/DshAcpClient.js +12 -75
  29. package/dist/executor/dsh/DshAcpClient.js.map +1 -1
  30. package/dist/executor/dsh/DshPrivacy.d.ts +1 -1
  31. package/dist/executor/dsh/DshPrivacy.d.ts.map +1 -1
  32. package/dist/executor/dsh/DshPrivacy.js +2 -2
  33. package/dist/executor/dsh/DshPrivacy.js.map +1 -1
  34. package/dist/maintenance/release-notes.json +1 -1
  35. package/dist/scheduling/ScheduleCapabilities.d.ts +0 -42
  36. package/dist/scheduling/ScheduleCapabilities.d.ts.map +1 -1
  37. package/dist/scheduling/ScheduleCapabilities.js +3 -4
  38. package/dist/scheduling/ScheduleCapabilities.js.map +1 -1
  39. package/dist/scheduling/ScheduleCommand.js +3 -3
  40. package/dist/scheduling/ScheduleCommand.js.map +1 -1
  41. package/dist/scheduling/ScheduleService.d.ts +10 -19
  42. package/dist/scheduling/ScheduleService.d.ts.map +1 -1
  43. package/dist/scheduling/ScheduleService.js +103 -577
  44. package/dist/scheduling/ScheduleService.js.map +1 -1
  45. package/dist/scheduling/ScheduleToolScope.d.ts +2 -2
  46. package/dist/scheduling/ScheduleToolScope.d.ts.map +1 -1
  47. package/dist/scheduling/ScheduleToolScope.js +1 -1
  48. package/dist/scheduling/ScheduleToolScope.js.map +1 -1
  49. package/dist/scheduling/agy/AgyScheduleHost.d.ts +1 -3
  50. package/dist/scheduling/agy/AgyScheduleHost.d.ts.map +1 -1
  51. package/dist/scheduling/agy/AgyScheduleHost.js +0 -3
  52. package/dist/scheduling/agy/AgyScheduleHost.js.map +1 -1
  53. package/dist/scheduling/agy/AgySessionSchedules.d.ts +3 -2
  54. package/dist/scheduling/agy/AgySessionSchedules.d.ts.map +1 -1
  55. package/dist/scheduling/agy/AgySessionSchedules.js +3 -0
  56. package/dist/scheduling/agy/AgySessionSchedules.js.map +1 -1
  57. package/dist/scheduling/dsh/NativeScheduleToolGuard.d.ts +14 -0
  58. package/dist/scheduling/dsh/NativeScheduleToolGuard.d.ts.map +1 -0
  59. package/dist/scheduling/dsh/NativeScheduleToolGuard.js +12 -0
  60. package/dist/scheduling/dsh/NativeScheduleToolGuard.js.map +1 -0
  61. package/dist/scheduling/dsh/ScheduledSessionGuard.d.ts +0 -1
  62. package/dist/scheduling/dsh/ScheduledSessionGuard.d.ts.map +1 -1
  63. package/dist/scheduling/dsh/ScheduledSessionGuard.js +0 -27
  64. package/dist/scheduling/dsh/ScheduledSessionGuard.js.map +1 -1
  65. package/dist/scheduling/types.d.ts +3 -8
  66. package/dist/scheduling/types.d.ts.map +1 -1
  67. package/dist/scheduling/types.js.map +1 -1
  68. package/native/prebuilds/darwin-arm64/managed_native.node +0 -0
  69. package/native/prebuilds/darwin-arm64/manifest.json +1 -1
  70. package/native/prebuilds/darwin-x64/managed_native.node +0 -0
  71. package/native/prebuilds/darwin-x64/manifest.json +1 -1
  72. package/native/prebuilds/win32-arm64/managed_native.node +0 -0
  73. package/native/prebuilds/win32-arm64/manifest.json +1 -1
  74. package/native/prebuilds/win32-x64/managed_native.node +0 -0
  75. package/native/prebuilds/win32-x64/manifest.json +1 -1
  76. package/package.json +1 -1
  77. package/dist/scheduling/ClaudeNativeScheduleProvider.d.ts +0 -19
  78. package/dist/scheduling/ClaudeNativeScheduleProvider.d.ts.map +0 -1
  79. package/dist/scheduling/ClaudeNativeScheduleProvider.js +0 -570
  80. package/dist/scheduling/ClaudeNativeScheduleProvider.js.map +0 -1
  81. package/dist/scheduling/DshNativeScheduleProvider.d.ts +0 -19
  82. package/dist/scheduling/DshNativeScheduleProvider.d.ts.map +0 -1
  83. package/dist/scheduling/DshNativeScheduleProvider.js +0 -470
  84. package/dist/scheduling/DshNativeScheduleProvider.js.map +0 -1
  85. package/dist/scheduling/dsh/HostBridge.d.ts +0 -96
  86. package/dist/scheduling/dsh/HostBridge.d.ts.map +0 -1
  87. package/dist/scheduling/dsh/HostBridge.js +0 -364
  88. package/dist/scheduling/dsh/HostBridge.js.map +0 -1
  89. package/dist/scheduling/dsh/ScopePlugin.d.ts +0 -9
  90. package/dist/scheduling/dsh/ScopePlugin.d.ts.map +0 -1
  91. package/dist/scheduling/dsh/ScopePlugin.js +0 -13
  92. package/dist/scheduling/dsh/ScopePlugin.js.map +0 -1
  93. package/dist/scheduling/dsh/SessionScheduleBridge.d.ts +0 -35
  94. package/dist/scheduling/dsh/SessionScheduleBridge.d.ts.map +0 -1
  95. package/dist/scheduling/dsh/SessionScheduleBridge.js +0 -296
  96. package/dist/scheduling/dsh/SessionScheduleBridge.js.map +0 -1
  97. package/dist/scheduling/dsh/SessionScheduleClient.d.ts +0 -15
  98. package/dist/scheduling/dsh/SessionScheduleClient.d.ts.map +0 -1
  99. package/dist/scheduling/dsh/SessionScheduleClient.js +0 -184
  100. package/dist/scheduling/dsh/SessionScheduleClient.js.map +0 -1
  101. package/dist/scheduling/dsh/SessionScheduleStorage.d.ts +0 -8
  102. package/dist/scheduling/dsh/SessionScheduleStorage.d.ts.map +0 -1
  103. package/dist/scheduling/dsh/SessionScheduleStorage.js +0 -34
  104. package/dist/scheduling/dsh/SessionScheduleStorage.js.map +0 -1
  105. package/dist/scheduling/dsh/launch.d.ts +0 -13
  106. package/dist/scheduling/dsh/launch.d.ts.map +0 -1
  107. package/dist/scheduling/dsh/launch.js +0 -58
  108. package/dist/scheduling/dsh/launch.js.map +0 -1
  109. package/dist/scheduling/dsh/protocol.d.ts +0 -28
  110. package/dist/scheduling/dsh/protocol.d.ts.map +0 -1
  111. package/dist/scheduling/dsh/protocol.js +0 -142
  112. package/dist/scheduling/dsh/protocol.js.map +0 -1
  113. package/dist/scheduling/dsh/sessionLaunch.d.ts +0 -3
  114. package/dist/scheduling/dsh/sessionLaunch.d.ts.map +0 -1
  115. package/dist/scheduling/dsh/sessionLaunch.js +0 -22
  116. package/dist/scheduling/dsh/sessionLaunch.js.map +0 -1
  117. package/dist/scheduling/dsh/sessionProtocol.d.ts +0 -4
  118. package/dist/scheduling/dsh/sessionProtocol.d.ts.map +0 -1
  119. package/dist/scheduling/dsh/sessionProtocol.js +0 -7
  120. package/dist/scheduling/dsh/sessionProtocol.js.map +0 -1
@@ -1,364 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.DshScheduleBridge = exports.inject = exports.name = void 0;
7
- exports.apply = apply;
8
- exports.verifyScope = verifyScope;
9
- const promises_1 = __importDefault(require("fs/promises"));
10
- const path_1 = __importDefault(require("path"));
11
- const protocol_1 = require("./protocol");
12
- exports.name = 'remote-cli-native-schedule';
13
- exports.inject = ['agents', 'sessions', 'tools', 'schedule', 'remoteCliScheduleScope'];
14
- /** Explicit plugin dependencies keep native startup's activation audit ordered. */
15
- async function apply(ctx, config) {
16
- const bridge = new DshScheduleBridge(ctx, config.scope, process.stdin, process.stdout);
17
- await bridge.start();
18
- ctx.effect(() => () => bridge.dispose(), 'remote-cli native schedule bridge');
19
- ctx.provide('remoteCliScheduleReady', {});
20
- }
21
- async function verifyScope(ctx, config) {
22
- if (!(0, protocol_1.exact)(config, ['directory', 'scope']) || !(0, protocol_1.identifier)(config.scope) || !path_1.default.isAbsolute(config.directory))
23
- throw new Error('Invalid DSH schedule scope.');
24
- const stat = await promises_1.default.lstat(config.directory);
25
- if (!stat.isDirectory() || stat.isSymbolicLink() || await promises_1.default.realpath(config.directory) !== config.directory
26
- || (process.platform !== 'win32' && (stat.mode & 0o077) !== 0))
27
- throw new Error('DSH schedule scope is not private.');
28
- for (const [name, actual] of [['sessions', ctx.sessionPersistence.root], ['storage', ctx.storage.backend.get('json').root]]) {
29
- const expected = path_1.default.join(config.directory, name);
30
- const child = await promises_1.default.lstat(expected);
31
- if (actual !== expected)
32
- throw new Error(`DSH ${name} storage routing differs from the owned scope.`);
33
- if (!child.isDirectory() || child.isSymbolicLink() || await promises_1.default.realpath(expected) !== expected)
34
- throw new Error('DSH schedule storage is not canonical.');
35
- if (name === 'sessions' && (await promises_1.default.readdir(expected)).length !== 0)
36
- throw new Error('DSH session storage is not empty.');
37
- if (name === 'storage') {
38
- // Other fresh native domains initialize concurrently. Only schedule.json can restore timers.
39
- try {
40
- await promises_1.default.lstat(path_1.default.join(expected, 'schedule.json'));
41
- }
42
- catch (error) {
43
- if (error.code === 'ENOENT')
44
- continue;
45
- throw error;
46
- }
47
- throw new Error('DSH schedule storage is not empty.');
48
- }
49
- }
50
- }
51
- /** A protocol/event adapter only: every clock, occurrence, and CRUD mutation belongs to ctx.schedule. */
52
- class DshScheduleBridge {
53
- ctx;
54
- scope;
55
- input;
56
- output;
57
- sequence = 0;
58
- requestId = 0;
59
- chain = Promise.resolve();
60
- stopped = false;
61
- failed = false;
62
- attempted = false;
63
- creating = false;
64
- early = [];
65
- observed;
66
- agent;
67
- job;
68
- rule;
69
- active;
70
- lastTurn = 0;
71
- lastOccurrence = '';
72
- cancelled = false;
73
- disposal;
74
- disposers = [];
75
- reader = new protocol_1.JsonLines(frame => this.frame(frame));
76
- read = (chunk) => {
77
- try {
78
- this.reader.read(chunk);
79
- }
80
- catch {
81
- this.fatal();
82
- }
83
- };
84
- end = () => { void this.dispose().catch(() => { }); };
85
- constructor(ctx, scope, input, output) {
86
- this.ctx = ctx;
87
- this.scope = scope;
88
- this.input = input;
89
- this.output = output;
90
- }
91
- async start() {
92
- if ((await this.ctx.schedule.catalog()).length)
93
- throw new Error('DSH schedule store is not empty.');
94
- this.disposers.push(this.ctx.tools.guard(execution => {
95
- // Monotonic native guard: later tool policies cannot re-authorize scheduling or host reconfiguration.
96
- if (/^schedule_|^plugin_manager$|cordis|^run_code$|subagent|^spawn_agent$|^fork_agent$/.test(execution.name)) {
97
- return 'Native schedule management and delegation are reserved for the schedule owner.';
98
- }
99
- return undefined;
100
- }));
101
- this.disposers.push(this.ctx.on('session/created', session => {
102
- if (this.observed && this.observed !== session) {
103
- this.fatal();
104
- return;
105
- }
106
- this.observed = session;
107
- }));
108
- this.disposers.push(this.ctx.on('agent/inbox/claimed', data => this.native(() => this.claim(data))));
109
- this.disposers.push(this.ctx.on('session/event', (session, event) => this.native(() => this.event(session, event))));
110
- this.disposers.push(this.ctx.on('schedule/changed', () => {
111
- // Event-driven validation, never timer polling. Defer beyond the native mutation's commit.
112
- queueMicrotask(() => { this.chain = this.chain.then(() => this.audit()).catch(() => this.fatal()); });
113
- }));
114
- this.input.on('data', this.read);
115
- this.input.on('end', this.end);
116
- this.input.on('error', this.end);
117
- this.send({ kind: 'ready' });
118
- }
119
- native(work) {
120
- if (this.stopped || this.failed)
121
- return;
122
- if (this.creating) {
123
- if (this.early.length >= 128) {
124
- this.fatal();
125
- return;
126
- }
127
- this.early.push(work);
128
- }
129
- else {
130
- try {
131
- work();
132
- }
133
- catch {
134
- this.fatal();
135
- }
136
- }
137
- }
138
- frame(frame) {
139
- // Observe the same bytes as stock ACP. Never consume its RPCs or manufacture their replies.
140
- if (frame.method !== protocol_1.COMMAND)
141
- return;
142
- const p = frame.params;
143
- if (frame.jsonrpc !== '2.0' || 'id' in frame || !(0, protocol_1.object)(p) || p.version !== protocol_1.VERSION || p.scope !== this.scope
144
- || !Number.isSafeInteger(p.requestId) || p.requestId <= this.requestId) {
145
- this.fatal();
146
- return;
147
- }
148
- this.requestId = p.requestId;
149
- this.chain = this.chain.then(async () => {
150
- if (this.stopped || this.failed)
151
- throw new Error();
152
- const result = await this.manage(p);
153
- this.send({ kind: 'receipt', requestId: p.requestId, operation: p.operation, ...result });
154
- // A very short native timer may claim its message before create's await resumes.
155
- const early = this.early.splice(0);
156
- this.creating = false;
157
- for (const work of early)
158
- this.native(work);
159
- }).catch(() => this.fatal());
160
- }
161
- async manage(p) {
162
- const base = ['version', 'scope', 'requestId', 'operation', 'sessionId'];
163
- if (p.operation === 'bind') {
164
- if (!(0, protocol_1.exact)(p, [...base, 'cwd']) || this.agent || !(0, protocol_1.identifier)(p.sessionId))
165
- throw new Error();
166
- const agent = this.ctx.agents.get(p.sessionId);
167
- if (!agent || agent.session !== this.observed || agent.session.id !== p.sessionId
168
- || agent.session.header.cwd !== p.cwd || agent.session.header.origin === 'subagent'
169
- || agent.session.header.parentSession !== undefined)
170
- throw new Error();
171
- this.agent = agent;
172
- await this.audit();
173
- return { sessionId: p.sessionId };
174
- }
175
- if (!this.agent || p.sessionId !== this.agent.session.id || this.ctx.agents.get(p.sessionId) !== this.agent)
176
- throw new Error();
177
- if (p.operation === 'create') {
178
- if (!(0, protocol_1.exact)(p, [...base, 'rule', 'prompt', 'title']) || this.attempted || !(0, protocol_1.validPrompt)(p.prompt) || !(0, protocol_1.identifier)(p.title))
179
- throw new Error();
180
- this.attempted = true;
181
- this.rule = (0, protocol_1.normalizeRule)(p.rule);
182
- await this.audit();
183
- this.creating = true;
184
- const selector = this.rule.kind === 'once' ? { at: this.rule.at }
185
- : { cron: { expression: this.rule.expression, time_zone: this.rule.timezone } };
186
- const record = await this.ctx.schedule.create(p.sessionId, { ...selector, prompt: p.prompt, title: p.title });
187
- this.job = record;
188
- if (!(0, protocol_1.matchesRecord)(record, this.rule, p.prompt, p.title))
189
- throw new Error();
190
- await this.audit();
191
- return { sessionId: p.sessionId, nativeId: record.id, record };
192
- }
193
- if (!(0, protocol_1.exact)(p, base) || !['list', 'cancel'].includes(p.operation))
194
- throw new Error();
195
- if (p.operation === 'cancel') {
196
- this.cancelled = true;
197
- // Catalog includes already-fired one-shots. Delete every row in this exclusively owned scope.
198
- await this.removeJobs();
199
- this.agent.cancel({ kind: 'user' });
200
- return { sessionId: p.sessionId, nativeId: this.job?.id ?? '', deleted: true, remaining: 0 };
201
- }
202
- await this.audit();
203
- const rows = await this.ctx.schedule.list({ sessionId: p.sessionId });
204
- if (rows.length > 1 || rows.some(row => !this.job || !(0, protocol_1.matchesRecord)(row, this.rule, this.job.prompt, this.job.title, this.job.id)))
205
- throw new Error();
206
- // Native catalog retains a fired one-shot until its queued turn finishes.
207
- const catalog = await this.ctx.schedule.catalog();
208
- if (catalog.length > 1 || catalog.some(row => row.sessionId !== p.sessionId || !this.job
209
- || !(0, protocol_1.matchesRecord)(row, this.rule, this.job.prompt, this.job.title, this.job.id)))
210
- throw new Error();
211
- return { sessionId: p.sessionId, nativeId: this.job?.id ?? '', records: catalog };
212
- }
213
- async audit() {
214
- if (this.stopped || this.failed)
215
- return;
216
- const rows = await this.ctx.schedule.catalog();
217
- if (this.cancelled) {
218
- if (rows.length)
219
- throw new Error();
220
- return;
221
- }
222
- if (!this.job) {
223
- if (rows.length)
224
- throw new Error();
225
- return;
226
- }
227
- if (rows.length !== 1 || rows[0].sessionId !== this.agent?.session.id
228
- || !(0, protocol_1.matchesRecord)(rows[0], this.rule, this.job.prompt, this.job.title, this.job.id))
229
- throw new Error();
230
- }
231
- claim({ agent, message, turn }) {
232
- if (agent !== this.agent || !this.job || !this.rule || !Number.isSafeInteger(turn) || turn < 1 || !(0, protocol_1.identifier)(message.id))
233
- throw new Error();
234
- // Native step context is claimed alongside the schedule's input, sometimes first.
235
- // It never creates an occurrence or replaces the schedule message/turn join.
236
- if (['tool-jobs', 'tool-registry'].includes(message.source?.kind)) {
237
- if (this.active ? turn !== this.active.turn : turn <= this.lastTurn)
238
- throw new Error();
239
- return;
240
- }
241
- if (this.active || turn <= this.lastTurn || message.source?.kind !== 'schedule')
242
- throw new Error();
243
- const text = message.content?.length === 1 && message.content[0].type === 'text' ? message.content[0].text : undefined;
244
- if (typeof text !== 'string')
245
- throw new Error();
246
- const lines = text.split('\n');
247
- let occurrenceAt;
248
- if (this.rule.kind === 'once') {
249
- if (lines.length !== 5 || lines[0] !== '[SCHEDULE REMINDER]' || lines[1] !== 'This is a scheduled message from the user'
250
- || !lines[2].startsWith('schedule_id_json: ') || JSON.parse(lines[2].slice(18)) !== this.job.id
251
- || !lines[3].startsWith('occurrence_at: ') || !lines[4].startsWith('reminder_prompt_json: ')
252
- || JSON.parse(lines[4].slice(22)) !== this.job.prompt)
253
- throw new Error();
254
- occurrenceAt = lines[3].slice(15);
255
- if (occurrenceAt !== this.rule.at)
256
- throw new Error();
257
- }
258
- else {
259
- if (lines.length !== 3 || lines[0] !== '[SCHEDULE REMINDER BATCH]' || lines[1] !== 'This is a scheduled message from the user'
260
- || !lines[2].startsWith('reminders_json: '))
261
- throw new Error();
262
- const reminders = JSON.parse(lines[2].slice(16));
263
- if (!Array.isArray(reminders) || reminders.length !== 1 || !(0, protocol_1.exact)(reminders[0], ['schedule_id', 'occurrence_at', 'reminder_prompt'])
264
- || reminders[0].schedule_id !== this.job.id || reminders[0].reminder_prompt !== this.job.prompt)
265
- throw new Error();
266
- occurrenceAt = reminders[0].occurrence_at;
267
- }
268
- this.startOccurrence(turn, message.id, occurrenceAt);
269
- }
270
- startOccurrence(turn, messageId, occurrenceAt) {
271
- if (!(0, protocol_1.instant)(occurrenceAt) || occurrenceAt <= this.lastOccurrence || Date.parse(occurrenceAt) > Date.now() + 1000)
272
- throw new Error();
273
- this.lastTurn = turn;
274
- this.lastOccurrence = occurrenceAt;
275
- this.active = { turn, messageId, occurrenceAt, output: '', truncated: false };
276
- this.send({ kind: 'started', ...this.identity() });
277
- }
278
- identity() {
279
- return { sessionId: this.agent.session.id, nativeId: this.job.id, turn: this.active.turn,
280
- messageId: this.active.messageId, occurrenceAt: this.active.occurrenceAt };
281
- }
282
- event(session, event) {
283
- if (session !== this.observed || !['assistant/message', 'turn/end'].includes(event.type))
284
- return;
285
- if (!this.active || event.data.turn !== this.active.turn)
286
- throw new Error();
287
- if (event.type === 'assistant/message') {
288
- for (const block of event.data.message.content) {
289
- if (block.type !== 'text')
290
- continue;
291
- if (typeof block.text !== 'string')
292
- throw new Error();
293
- const remaining = protocol_1.MAX_OUTPUT - 64 - Buffer.byteLength(this.active.output);
294
- this.active.output += (0, protocol_1.boundedText)(block.text, remaining);
295
- if (Buffer.byteLength(block.text) > remaining)
296
- this.active.truncated = true;
297
- }
298
- }
299
- else {
300
- const reason = event.data.reason?.kind;
301
- if (!['completed', 'blocked', 'max-tokens', 'aborted', 'error'].includes(reason))
302
- throw new Error();
303
- const output = this.active.output + (this.active.truncated ? '\n[Output truncated.]' : '');
304
- this.send({ kind: 'completed', ...this.identity(), success: reason === 'completed', output,
305
- ...(reason === 'completed' ? {} : { error: `Native DSH scheduled turn ended: ${reason}.` }) });
306
- this.active = undefined;
307
- }
308
- }
309
- send(params) {
310
- if (this.output.destroyed || this.output.writableLength > protocol_1.MAX_FRAME * 2)
311
- throw new Error('DSH bridge output unavailable.');
312
- const line = JSON.stringify({ jsonrpc: '2.0', method: protocol_1.EVENT, params: { version: protocol_1.VERSION, scope: this.scope, sequence: ++this.sequence, ...params } }) + '\n';
313
- if (Buffer.byteLength(line) > protocol_1.MAX_FRAME)
314
- throw new Error('DSH bridge output limit exceeded.');
315
- this.output.write(line);
316
- }
317
- fatal() {
318
- if (this.failed)
319
- return;
320
- this.failed = true;
321
- try {
322
- this.send({ kind: 'fatal', error: 'Native DSH schedule ownership or protocol validation failed.' });
323
- }
324
- catch { /* Parent observes transport failure or timeout. */ }
325
- this.early = [];
326
- void this.dispose().catch(() => { });
327
- try {
328
- this.agent?.cancel({ kind: 'user' });
329
- }
330
- catch { /* Parent retains process ownership. */ }
331
- }
332
- async removeJobs() {
333
- const rows = await this.ctx.schedule.catalog();
334
- for (const row of rows) {
335
- const receipt = await this.ctx.schedule.delete({ sessionId: row.sessionId, id: row.id });
336
- if (receipt.id !== row.id || receipt.deleted !== true)
337
- throw new Error('Native DSH deletion was not confirmed.');
338
- }
339
- if ((await this.ctx.schedule.catalog()).length !== 0)
340
- throw new Error('Native DSH jobs remain.');
341
- }
342
- dispose() {
343
- if (this.disposal)
344
- return this.disposal;
345
- this.stopped = true;
346
- this.input.off('data', this.read);
347
- this.input.off('end', this.end);
348
- this.input.off('error', this.end);
349
- this.disposal = (async () => {
350
- await this.chain;
351
- try {
352
- await this.removeJobs();
353
- }
354
- finally {
355
- this.agent?.cancel({ kind: 'user' });
356
- for (const dispose of this.disposers.splice(0))
357
- dispose();
358
- }
359
- })();
360
- return this.disposal;
361
- }
362
- }
363
- exports.DshScheduleBridge = DshScheduleBridge;
364
- //# sourceMappingURL=HostBridge.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HostBridge.js","sourceRoot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AC,KAAK,CAAC;YACjB,IAAI,CAAC;gBAAC,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC;YAAC,CAAC;oBAAS,CAAC;gBACxC,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC;gBACrC,KAAK,MAAM,OAAO,IAAI,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;oBAAE,OAAO,EAAE,CAAC;YAC5D,CAAC;QACH,CAAC,CAAC,EAAE,CAAC;QACL,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;CACF;AAxOD,8CAwOC"}
@@ -1,9 +0,0 @@
1
- import { type DshContext } from './HostBridge';
2
- export declare const name = "remote-cli-schedule-scope";
3
- export declare const inject: string[];
4
- /** The first-party schedule service must depend on this gate, so no retained job can start first. */
5
- export declare function apply(ctx: DshContext, config: {
6
- directory: string;
7
- scope: string;
8
- }): Promise<void>;
9
- //# sourceMappingURL=ScopePlugin.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ScopePlugin.d.ts","sourceRoot":"","sources":["../../../src/scheduling/dsh/ScopePlugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAE5D,eAAO,MAAM,IAAI,8BAA8B,CAAC;AAChD,eAAO,MAAM,MAAM,UAA4D,CAAC;AAChF,qGAAqG;AACrG,wBAAsB,KAAK,CAAC,GAAG,EAAE,UAAU,EAAE,MAAM,EAAE;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAGxG"}
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.inject = exports.name = void 0;
4
- exports.apply = apply;
5
- const HostBridge_1 = require("./HostBridge");
6
- exports.name = 'remote-cli-schedule-scope';
7
- exports.inject = ['sessionPersistence', 'storage', 'storage.backend.json'];
8
- /** The first-party schedule service must depend on this gate, so no retained job can start first. */
9
- async function apply(ctx, config) {
10
- await (0, HostBridge_1.verifyScope)(ctx, config);
11
- ctx.provide('remoteCliScheduleScope', {});
12
- }
13
- //# sourceMappingURL=ScopePlugin.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ScopePlugin.js","sourceRoot":"","sources":["../../../src/scheduling/dsh/ScopePlugin.ts"],"names":[],"mappings":";;;AAKA,sBAGC;AARD,6CAA4D;AAE/C,QAAA,IAAI,GAAG,2BAA2B,CAAC;AACnC,QAAA,MAAM,GAAG,CAAC,oBAAoB,EAAE,SAAS,EAAE,sBAAsB,CAAC,CAAC;AAChF,qGAAqG;AAC9F,KAAK,UAAU,KAAK,CAAC,GAAe,EAAE,MAA4C;IACvF,MAAM,IAAA,wBAAW,EAAC,GAAG,EAAE,MAAM,CAAC,CAAC;IAC/B,GAAG,CAAC,OAAO,CAAC,wBAAwB,EAAE,EAAE,CAAC,CAAC;AAC5C,CAAC"}
@@ -1,35 +0,0 @@
1
- import type { Readable, Writable } from 'stream';
2
- export declare const name = "remote-cli-session-schedule-bridge";
3
- export declare const inject: string[];
4
- export declare function apply(ctx: any, config: {
5
- scope: string;
6
- }): Promise<void>;
7
- /** All timing/CRUD belongs to DSH. Observe durable turns, including mixed foreground/reminder turns. */
8
- export declare class SessionScheduleBridge {
9
- private ctx;
10
- private scope;
11
- private input;
12
- private output;
13
- private initialize;
14
- private jobs;
15
- private turns;
16
- private disposers;
17
- private chain;
18
- private stopped;
19
- private initialized?;
20
- private enabled;
21
- private creating;
22
- private early;
23
- private requests;
24
- private reader;
25
- private read;
26
- constructor(ctx: any, scope: string, input: Readable, output: Writable, initialize?: () => Promise<any>);
27
- start(): Promise<void>;
28
- private manage;
29
- private retire;
30
- private claim;
31
- private event;
32
- private send;
33
- dispose(): Promise<void>;
34
- }
35
- //# sourceMappingURL=SessionScheduleBridge.d.ts.map
@@ -1 +0,0 @@
1
- {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