@yu_robotics/remote-cli 1.6.231 → 1.6.234
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/client/MessageHandler.d.ts +23 -0
- package/dist/client/MessageHandler.d.ts.map +1 -1
- package/dist/client/MessageHandler.js +422 -8
- package/dist/client/MessageHandler.js.map +1 -1
- package/dist/client/WebSocketClient.d.ts +4 -1
- package/dist/client/WebSocketClient.d.ts.map +1 -1
- package/dist/client/WebSocketClient.js +39 -3
- package/dist/client/WebSocketClient.js.map +1 -1
- package/dist/delegation/DelegationBridge.d.ts +2 -13
- package/dist/delegation/DelegationBridge.d.ts.map +1 -1
- package/dist/delegation/DelegationBridge.js +3 -126
- package/dist/delegation/DelegationBridge.js.map +1 -1
- package/dist/delegation/contract.d.ts +3 -4
- package/dist/delegation/contract.d.ts.map +1 -1
- package/dist/delegation/contract.js +3 -2
- package/dist/delegation/contract.js.map +1 -1
- package/dist/delegation/mcpServer.js +3 -2
- package/dist/delegation/mcpServer.js.map +1 -1
- package/dist/delegation/piExtension.d.ts +3 -3
- package/dist/delegation/piExtension.d.ts.map +1 -1
- package/dist/delegation/piExtension.js +4 -4
- package/dist/delegation/piExtension.js.map +1 -1
- package/dist/executor/AcpExecutor.d.ts +1 -0
- package/dist/executor/AcpExecutor.d.ts.map +1 -1
- package/dist/executor/AcpExecutor.js +10 -4
- package/dist/executor/AcpExecutor.js.map +1 -1
- package/dist/executor/AgyExecutor.d.ts +1 -0
- package/dist/executor/AgyExecutor.d.ts.map +1 -1
- package/dist/executor/AgyExecutor.js +5 -0
- package/dist/executor/AgyExecutor.js.map +1 -1
- package/dist/executor/ClaudePersistentExecutor.d.ts +1 -0
- package/dist/executor/ClaudePersistentExecutor.d.ts.map +1 -1
- package/dist/executor/ClaudePersistentExecutor.js +7 -1
- package/dist/executor/ClaudePersistentExecutor.js.map +1 -1
- package/dist/executor/CodexAppServerExecutor.d.ts +1 -0
- package/dist/executor/CodexAppServerExecutor.d.ts.map +1 -1
- package/dist/executor/CodexAppServerExecutor.js +15 -8
- package/dist/executor/CodexAppServerExecutor.js.map +1 -1
- package/dist/executor/IExecutor.d.ts +2 -0
- package/dist/executor/IExecutor.d.ts.map +1 -1
- package/dist/executor/PiExecutor.d.ts +1 -0
- package/dist/executor/PiExecutor.d.ts.map +1 -1
- package/dist/executor/PiExecutor.js +5 -0
- package/dist/executor/PiExecutor.js.map +1 -1
- package/dist/executor/pi/PiClient.d.ts.map +1 -1
- package/dist/executor/pi/PiClient.js +1 -0
- package/dist/executor/pi/PiClient.js.map +1 -1
- package/dist/maintenance/release-notes.json +1 -1
- package/dist/managed/ManagedToolBridge.d.ts +14 -0
- package/dist/managed/ManagedToolBridge.d.ts.map +1 -0
- package/dist/managed/ManagedToolBridge.js +132 -0
- package/dist/managed/ManagedToolBridge.js.map +1 -0
- package/dist/managed/contract.d.ts +9 -0
- package/dist/managed/contract.d.ts.map +1 -0
- package/dist/managed/contract.js +7 -0
- package/dist/managed/contract.js.map +1 -0
- package/dist/managed/tools.d.ts +230 -0
- package/dist/managed/tools.d.ts.map +1 -0
- package/dist/managed/tools.js +23 -0
- package/dist/managed/tools.js.map +1 -0
- package/dist/scheduling/ClaudeNativeScheduleProvider.d.ts +19 -0
- package/dist/scheduling/ClaudeNativeScheduleProvider.d.ts.map +1 -0
- package/dist/scheduling/ClaudeNativeScheduleProvider.js +570 -0
- package/dist/scheduling/ClaudeNativeScheduleProvider.js.map +1 -0
- package/dist/scheduling/DshNativeScheduleProvider.d.ts +19 -0
- package/dist/scheduling/DshNativeScheduleProvider.d.ts.map +1 -0
- package/dist/scheduling/DshNativeScheduleProvider.js +470 -0
- package/dist/scheduling/DshNativeScheduleProvider.js.map +1 -0
- package/dist/scheduling/ScheduleCapabilities.d.ts +53 -0
- package/dist/scheduling/ScheduleCapabilities.d.ts.map +1 -0
- package/dist/scheduling/ScheduleCapabilities.js +65 -0
- package/dist/scheduling/ScheduleCapabilities.js.map +1 -0
- package/dist/scheduling/ScheduleCardService.d.ts +26 -0
- package/dist/scheduling/ScheduleCardService.d.ts.map +1 -0
- package/dist/scheduling/ScheduleCardService.js +109 -0
- package/dist/scheduling/ScheduleCardService.js.map +1 -0
- package/dist/scheduling/ScheduleCommand.d.ts +27 -0
- package/dist/scheduling/ScheduleCommand.d.ts.map +1 -0
- package/dist/scheduling/ScheduleCommand.js +173 -0
- package/dist/scheduling/ScheduleCommand.js.map +1 -0
- package/dist/scheduling/ScheduleDeliveryClient.d.ts +17 -0
- package/dist/scheduling/ScheduleDeliveryClient.d.ts.map +1 -0
- package/dist/scheduling/ScheduleDeliveryClient.js +109 -0
- package/dist/scheduling/ScheduleDeliveryClient.js.map +1 -0
- package/dist/scheduling/ScheduleService.d.ts +75 -0
- package/dist/scheduling/ScheduleService.d.ts.map +1 -0
- package/dist/scheduling/ScheduleService.js +749 -0
- package/dist/scheduling/ScheduleService.js.map +1 -0
- package/dist/scheduling/ScheduleToolScope.d.ts +55 -0
- package/dist/scheduling/ScheduleToolScope.d.ts.map +1 -0
- package/dist/scheduling/ScheduleToolScope.js +182 -0
- package/dist/scheduling/ScheduleToolScope.js.map +1 -0
- package/dist/scheduling/claude/rules.d.ts +8 -0
- package/dist/scheduling/claude/rules.d.ts.map +1 -0
- package/dist/scheduling/claude/rules.js +46 -0
- package/dist/scheduling/claude/rules.js.map +1 -0
- package/dist/scheduling/dsh/HostBridge.d.ts +96 -0
- package/dist/scheduling/dsh/HostBridge.d.ts.map +1 -0
- package/dist/scheduling/dsh/HostBridge.js +364 -0
- package/dist/scheduling/dsh/HostBridge.js.map +1 -0
- package/dist/scheduling/dsh/ScopePlugin.d.ts +9 -0
- package/dist/scheduling/dsh/ScopePlugin.d.ts.map +1 -0
- package/dist/scheduling/dsh/ScopePlugin.js +13 -0
- package/dist/scheduling/dsh/ScopePlugin.js.map +1 -0
- package/dist/scheduling/dsh/launch.d.ts +13 -0
- package/dist/scheduling/dsh/launch.d.ts.map +1 -0
- package/dist/scheduling/dsh/launch.js +58 -0
- package/dist/scheduling/dsh/launch.js.map +1 -0
- package/dist/scheduling/dsh/protocol.d.ts +28 -0
- package/dist/scheduling/dsh/protocol.d.ts.map +1 -0
- package/dist/scheduling/dsh/protocol.js +142 -0
- package/dist/scheduling/dsh/protocol.js.map +1 -0
- package/dist/scheduling/toolContract.d.ts +48 -0
- package/dist/scheduling/toolContract.d.ts.map +1 -0
- package/dist/scheduling/toolContract.js +24 -0
- package/dist/scheduling/toolContract.js.map +1 -0
- package/dist/scheduling/types.d.ts +79 -0
- package/dist/scheduling/types.d.ts.map +1 -0
- package/dist/scheduling/types.js +13 -0
- package/dist/scheduling/types.js.map +1 -0
- package/dist/types/ScheduleCards.d.ts +56 -0
- package/dist/types/ScheduleCards.d.ts.map +1 -0
- package/dist/types/ScheduleCards.js +3 -0
- package/dist/types/ScheduleCards.js.map +1 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/types/index.d.ts.map +1 -1
- package/native/prebuilds/darwin-arm64/managed_native.node +0 -0
- package/native/prebuilds/darwin-arm64/manifest.json +1 -1
- package/native/prebuilds/darwin-x64/managed_native.node +0 -0
- package/native/prebuilds/darwin-x64/manifest.json +1 -1
- package/native/prebuilds/win32-arm64/managed_native.node +0 -0
- package/native/prebuilds/win32-arm64/manifest.json +1 -1
- package/native/prebuilds/win32-x64/managed_native.node +0 -0
- package/native/prebuilds/win32-x64/manifest.json +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,364 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HostBridge.js","sourceRoot":"","sources":["../../../src/scheduling/dsh/HostBridge.ts"],"names":[],"mappings":";;;;;;AA6BA,sBAKC;AAED,kCAkBC;AAtDD,2DAA6B;AAC7B,gDAAwB;AAGxB,yCAC0F;AAoB7E,QAAA,IAAI,GAAG,4BAA4B,CAAC;AACpC,QAAA,MAAM,GAAG,CAAC,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE,wBAAwB,CAAC,CAAC;AAE5F,mFAAmF;AAC5E,KAAK,UAAU,KAAK,CAAC,GAAe,EAAE,MAA4C;IACvF,MAAM,MAAM,GAAG,IAAI,iBAAiB,CAAC,GAAG,EAAE,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;IACvF,MAAM,MAAM,CAAC,KAAK,EAAE,CAAC;IACrB,GAAG,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,EAAE,mCAAmC,CAAC,CAAC;IAC9E,GAAG,CAAC,OAAO,CAAC,wBAAwB,EAAE,EAAE,CAAC,CAAC;AAC5C,CAAC;AAEM,KAAK,UAAU,WAAW,CAAC,GAAe,EAAE,MAA4C;IAC7F,IAAI,CAAC,IAAA,gBAAK,EAAC,MAAM,EAAE,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,IAAA,qBAAU,EAA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AAC,OAAO,GAAG,IAAI,CAAC;QACpB,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;QAClC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;QAChC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;QAClC,IAAI,CAAC,QAAQ,GAAG,CAAC,KAAK,IAAI,EAAE;YAC1B,MAAM,IAAI,CAAC,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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** A fresh, never resumed scope. Authentication and tool HOME retain normal native loading. */
|
|
2
|
+
export declare function createLaunch(bridge?: string): Promise<{
|
|
3
|
+
directory: string;
|
|
4
|
+
scope: `${string}-${string}-${string}-${string}-${string}`;
|
|
5
|
+
args: string[];
|
|
6
|
+
env: {
|
|
7
|
+
DSH_TELEMETRY_DISABLED: string;
|
|
8
|
+
TZ?: string | undefined;
|
|
9
|
+
};
|
|
10
|
+
dispose(): Promise<void>;
|
|
11
|
+
}>;
|
|
12
|
+
export type DshLaunch = Awaited<ReturnType<typeof createLaunch>>;
|
|
13
|
+
//# sourceMappingURL=launch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"launch.d.ts","sourceRoot":"","sources":["../../../src/scheduling/dsh/launch.ts"],"names":[],"mappings":"AAMA,+FAA+F;AAC/F,wBAAsB,YAAY,CAAC,MAAM,SAAwC;;;;;;;;;GAqChF;AACD,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
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.createLaunch = createLaunch;
|
|
7
|
+
const promises_1 = __importDefault(require("fs/promises"));
|
|
8
|
+
const path_1 = __importDefault(require("path"));
|
|
9
|
+
const os_1 = __importDefault(require("os"));
|
|
10
|
+
const crypto_1 = require("crypto");
|
|
11
|
+
const DshPrivacy_1 = require("../../executor/dsh/DshPrivacy");
|
|
12
|
+
/** A fresh, never resumed scope. Authentication and tool HOME retain normal native loading. */
|
|
13
|
+
async function createLaunch(bridge = path_1.default.join(__dirname, 'HostBridge.js')) {
|
|
14
|
+
const directory = await promises_1.default.realpath(await promises_1.default.mkdtemp(path_1.default.join(os_1.default.tmpdir(), 'remote-cli-dsh-schedule-')));
|
|
15
|
+
const scope = (0, crypto_1.randomUUID)();
|
|
16
|
+
try {
|
|
17
|
+
await promises_1.default.chmod(directory, 0o700);
|
|
18
|
+
for (const name of ['sessions', 'storage', 'query', 'attachments'])
|
|
19
|
+
await promises_1.default.mkdir(path_1.default.join(directory, name), { mode: 0o700 });
|
|
20
|
+
// tsc includes the bridge and its relative imports in the published dist tree.
|
|
21
|
+
if (!(await promises_1.default.stat(bridge)).isFile())
|
|
22
|
+
throw new Error('DSH schedule bridge is not built. Build the CLI before using this provider.');
|
|
23
|
+
const rows = [
|
|
24
|
+
{ id: 'session-persistence-jsonl', config: { root: path_1.default.join(directory, 'sessions'), compression: 'none' } },
|
|
25
|
+
{ id: 'session-query-sqlite', config: { path: path_1.default.join(directory, 'query', 'index.sqlite'), openAt: 'never' } },
|
|
26
|
+
{ id: 'storage-json', config: { root: path_1.default.join(directory, 'storage') } },
|
|
27
|
+
{ id: 'storage-domain', config: { backend: 'json', routes: {} } },
|
|
28
|
+
{ id: 'attachment-local', config: { dshHome: path_1.default.join(directory, 'attachments') } },
|
|
29
|
+
{ id: 'acp', inject: ['acpAppStartup', 'remoteCliScheduleReady'] },
|
|
30
|
+
{ id: 'hmr', disabled: true },
|
|
31
|
+
{ insert: [
|
|
32
|
+
...['connection:dsh-client-connection', 'file-upload:dsh-client-file-upload', 'workspace:dsh-workspace',
|
|
33
|
+
'session-controller:dsh-api-session-controller', 'tool-schedule:dsh-tool-schedule']
|
|
34
|
+
.map(value => { const [id, name] = value.split(':'); return { id, name: `@deepseek-ai/${name}` }; }),
|
|
35
|
+
{ id: 'schedule', name: '@deepseek-ai/dsh-schedule', inject: ['remoteCliScheduleScope'] },
|
|
36
|
+
{ id: 'remote-cli-schedule-scope', name: path_1.default.join(path_1.default.dirname(bridge), 'ScopePlugin.js'), config: { directory, scope } },
|
|
37
|
+
{ id: 'remote-cli-schedule', name: bridge, config: { directory, scope } },
|
|
38
|
+
] },
|
|
39
|
+
];
|
|
40
|
+
const filename = path_1.default.join(directory, 'schedule.patch.yml');
|
|
41
|
+
// JSON flow mappings are YAML mappings; scalars safely preserve Windows paths.
|
|
42
|
+
await promises_1.default.writeFile(filename, DshPrivacy_1.DSH_PRIVACY_PATCH + rows.map(row => `- ${JSON.stringify(row)}\n`).join(''), { mode: 0o600, flag: 'wx' });
|
|
43
|
+
const identity = await promises_1.default.lstat(directory);
|
|
44
|
+
return { directory, scope, args: ['--profile', 'acp', '--patch', filename], env: { ...process.env, DSH_TELEMETRY_DISABLED: '1' },
|
|
45
|
+
async dispose() {
|
|
46
|
+
const current = await promises_1.default.lstat(directory);
|
|
47
|
+
if (!current.isDirectory() || current.isSymbolicLink() || current.dev !== identity.dev || current.ino !== identity.ino
|
|
48
|
+
|| await promises_1.default.realpath(directory) !== directory)
|
|
49
|
+
throw new Error('DSH schedule storage ownership changed.');
|
|
50
|
+
await promises_1.default.rm(directory, { recursive: true, force: false });
|
|
51
|
+
} };
|
|
52
|
+
}
|
|
53
|
+
catch (error) {
|
|
54
|
+
await promises_1.default.rm(directory, { recursive: true, force: true });
|
|
55
|
+
throw error;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=launch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"launch.js","sourceRoot":"","sources":["../../../src/scheduling/dsh/launch.ts"],"names":[],"mappings":";;;;;AAOA,oCAqCC;AA5CD,2DAA6B;AAC7B,gDAAwB;AACxB,4CAAoB;AACpB,mCAAoC;AACpC,8DAAkE;AAElE,+FAA+F;AACxF,KAAK,UAAU,YAAY,CAAC,MAAM,GAAG,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,eAAe,CAAC;IAC/E,MAAM,SAAS,GAAG,MAAM,kBAAE,CAAC,QAAQ,CAAC,MAAM,kBAAE,CAAC,OAAO,CAAC,cAAI,CAAC,IAAI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/native_schedule_command";
|
|
4
|
+
export declare const EVENT = "_remote_cli/native_schedule_event";
|
|
5
|
+
export declare const MAX_FRAME: number;
|
|
6
|
+
export declare const MAX_OUTPUT: number;
|
|
7
|
+
export declare const MAX_PROMPT: number;
|
|
8
|
+
export type ObjectValue = Record<string, any>;
|
|
9
|
+
export declare function object(value: unknown): value is ObjectValue;
|
|
10
|
+
export declare function identifier(value: unknown): value is string;
|
|
11
|
+
export declare function exact(value: unknown, keys: string[]): value is ObjectValue;
|
|
12
|
+
export declare function instant(value: unknown): value is string;
|
|
13
|
+
/** Compare matched fields and Vixie DOM/DOW star semantics, never calculate firing times. */
|
|
14
|
+
export declare function cronSignature(expression: string): string;
|
|
15
|
+
export declare function normalizeRule(value: unknown, now?: number): ScheduleRule;
|
|
16
|
+
export declare function validPrompt(value: unknown): value is string;
|
|
17
|
+
/** Validate the native row itself, including its canonical rule, rather than assistant prose. */
|
|
18
|
+
export declare function matchesRecord(row: unknown, rule: ScheduleRule, prompt: string, title: string, nativeId?: string): row is ObjectValue;
|
|
19
|
+
/** Bound each line before concatenation; a single chunk may contain many complete frames. */
|
|
20
|
+
export declare class JsonLines {
|
|
21
|
+
private readonly accept;
|
|
22
|
+
private readonly limit;
|
|
23
|
+
private buffer;
|
|
24
|
+
constructor(accept: (frame: ObjectValue) => void, limit?: number);
|
|
25
|
+
read(chunk: Buffer | string): void;
|
|
26
|
+
}
|
|
27
|
+
export declare function boundedText(text: string, remaining: number): string;
|
|
28
|
+
//# sourceMappingURL=protocol.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"protocol.d.ts","sourceRoot":"","sources":["../../../src/scheduling/dsh/protocol.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C,eAAO,MAAM,OAAO,IAAI,CAAC;AACzB,eAAO,MAAM,OAAO,wCAAwC,CAAC;AAC7D,eAAO,MAAM,KAAK,sCAAsC,CAAC;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