lody 0.104.0 → 0.105.0-nightly.2
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/baguette-worker.js +60 -86
- package/dist/chunks/cloudflared-native-D8R-sBbb.js +16939 -0
- package/dist/chunks/{daemon-session-tools-C6AE_3JK.js → daemon-session-tools-DxsxGcVN.js} +23 -22
- package/dist/chunks/{diff-line-counts-DDGc5P-T.js → diff-line-counts-DcoHZuco.js} +19 -10
- package/dist/chunks/{diff-worker-task-MZsLArT5.js → diff-worker-task-BWd1wpoW.js} +2 -2
- package/dist/chunks/{directory-handle-DgcESjFj.js → directory-handle-fuCqse5L.js} +52 -50
- package/dist/chunks/{index-Sv4ANSUY.js → index-Bpv15Zz4.js} +145 -239
- package/dist/chunks/{index-DNsg-GUk.js → index-D-3HSD1G.js} +16 -8
- package/dist/chunks/index-D7-o5Uku.js +130 -0
- package/dist/chunks/{ios-simulator-hTbW-tat.js → ios-simulator-2zCUndUk.js} +14 -14
- package/dist/chunks/process-D1XNeXEb.js +6756 -0
- package/dist/chunks/{acp-C0LiROfB.js → profile-dPP051kz.js} +551 -393
- package/dist/chunks/{review-viewer-nQBrydLp.js → review-viewer-bVLoml0A.js} +13 -57
- package/dist/chunks/{schemas-D_XLKCXC.js → schemas-CODbzktn.js} +37 -37
- package/dist/chunks/{subagent-emitter-BsTuVPDw.js → subagent-emitter-3SH_TxPU.js} +2 -2
- package/dist/chunks/{subagent-events-BJ9JwZva.js → subagent-events-DzPEi0iV.js} +9 -9
- package/dist/chunks/{workspace-watch-protocol-POg9Lpeq.js → workspace-watch-protocol-BpSfAwi2.js} +3 -3
- package/dist/claude-acp.js +3 -3
- package/dist/cloudflared-worker.js +25 -4
- package/dist/code-collab-watch-worker.js +1 -1
- package/dist/codex-acp.js +1 -1
- package/dist/deepseek-acp.js +836 -73
- package/dist/deepseek-agent-presets/cordis.yml +153 -0
- package/dist/deepseek-agent-presets/minimal.yml +60 -0
- package/dist/deepseek-agent-presets/ptc.yml +151 -0
- package/dist/deepseek-agent-presets/standard.yml +145 -0
- package/dist/devin-acp.js +1 -1
- package/dist/diff-worker.js +9 -3
- package/dist/file-index-scan-worker.js +9 -4
- package/dist/grok-acp.js +1 -1
- package/dist/index.js +118812 -129868
- package/package.json +9 -7
- package/dist/chunks/cloudflared-native-BWtpTE_5.js +0 -240
- package/dist/deepseek-agent-presets/cordis/agent.cordis.yml +0 -266
- package/dist/deepseek-agent-presets/cordis/preset.yml +0 -3
- package/dist/deepseek-agent-presets/cordis/skills/cordis-plugin-development/SKILL.md +0 -420
- package/dist/deepseek-agent-presets/cordis/skills/editing-cordis-compositions/SKILL.md +0 -165
- package/dist/deepseek-agent-presets/minimal/agent.cordis.yml +0 -69
- package/dist/deepseek-agent-presets/minimal/preset.yml +0 -3
- package/dist/deepseek-agent-presets/ptc/agent.cordis.yml +0 -275
- package/dist/deepseek-agent-presets/ptc/preset.yml +0 -3
- package/dist/deepseek-agent-presets/standard/agent.cordis.yml +0 -255
- package/dist/deepseek-agent-presets/standard/preset.yml +0 -3
package/dist/baguette-worker.js
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { s as startProcessLegacy, b as runPromise, c as raceAll, p as promise, d as sleep, t as terminateChildTreeLegacy, e as provide, f as runCommand, g as processLayer } from "./chunks/process-D1XNeXEb.js";
|
|
2
2
|
import { createServer } from "node:net";
|
|
3
3
|
import { setTimeout as setTimeout$1 } from "node:timers/promises";
|
|
4
4
|
import { mkdtemp, writeFile, rm } from "node:fs/promises";
|
|
5
5
|
import { tmpdir } from "node:os";
|
|
6
6
|
import { join } from "node:path";
|
|
7
|
-
import {
|
|
8
|
-
import { s as string, o as object,
|
|
7
|
+
import { I as IosSimulatorDeviceControlSchema } from "./chunks/ios-simulator-2zCUndUk.js";
|
|
8
|
+
import { s as string, o as object, u as union, _ as _enum, n as number, l as literal } from "./chunks/schemas-CODbzktn.js";
|
|
9
|
+
import "node:child_process";
|
|
10
|
+
import "node:fs";
|
|
11
|
+
import "node:url";
|
|
12
|
+
import "child_process";
|
|
13
|
+
import "path";
|
|
14
|
+
import "fs";
|
|
15
|
+
import "node:stream";
|
|
9
16
|
const guestButtonsSource = String.raw`
|
|
10
17
|
#import <Foundation/Foundation.h>
|
|
11
18
|
#import <objc/message.h>
|
|
@@ -84,7 +91,7 @@ int main(void) {
|
|
|
84
91
|
function createGuestButtons(signal, executable = "/usr/bin/xcrun") {
|
|
85
92
|
let directory;
|
|
86
93
|
let device;
|
|
87
|
-
let
|
|
94
|
+
let child;
|
|
88
95
|
let childClosed;
|
|
89
96
|
let preparing;
|
|
90
97
|
let pending;
|
|
@@ -100,43 +107,34 @@ function createGuestButtons(signal, executable = "/usr/bin/xcrun") {
|
|
|
100
107
|
let terminating;
|
|
101
108
|
function terminate() {
|
|
102
109
|
if (terminating) return terminating;
|
|
103
|
-
const
|
|
104
|
-
if (!
|
|
110
|
+
const owned2 = child;
|
|
111
|
+
if (!owned2) return Promise.resolve();
|
|
105
112
|
const closed = childClosed;
|
|
106
113
|
terminating = (async () => {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
return false;
|
|
118
|
-
};
|
|
119
|
-
const term = setTimeout(() => send("SIGTERM"), 1e3);
|
|
120
|
-
const kill = setTimeout(() => send("SIGKILL"), 2e3);
|
|
114
|
+
owned2.stdin.end();
|
|
115
|
+
if (closed)
|
|
116
|
+
await runPromise(raceAll([promise(() => closed), sleep(1e3)]));
|
|
117
|
+
await terminateChildTreeLegacy(owned2, {
|
|
118
|
+
processGroup: true,
|
|
119
|
+
graceMs: 1e3,
|
|
120
|
+
killWaitMs: 2e3
|
|
121
|
+
});
|
|
121
122
|
await closed;
|
|
122
|
-
|
|
123
|
-
clearTimeout(kill);
|
|
124
|
-
if (send("SIGTERM")) {
|
|
125
|
-
const killAt = Date.now() + 1e3;
|
|
126
|
-
while (send(0)) {
|
|
127
|
-
if (Date.now() >= killAt) send("SIGKILL");
|
|
128
|
-
await setTimeout$1(25);
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
if (child2 === owned) child2 = void 0;
|
|
123
|
+
if (child === owned2) child = void 0;
|
|
132
124
|
})();
|
|
133
125
|
return terminating;
|
|
134
126
|
}
|
|
135
127
|
function launch(args, protocol) {
|
|
136
128
|
signal.throwIfAborted();
|
|
137
129
|
if (failed) throw error();
|
|
138
|
-
const
|
|
139
|
-
|
|
130
|
+
const { child: started } = startProcessLegacy({
|
|
131
|
+
command: executable,
|
|
132
|
+
args,
|
|
133
|
+
processGroup: true,
|
|
134
|
+
options: { stdio: ["pipe", "pipe", "ignore"] }
|
|
135
|
+
});
|
|
136
|
+
const process2 = started;
|
|
137
|
+
child = process2;
|
|
140
138
|
terminating = void 0;
|
|
141
139
|
childClosed = new Promise((resolve) => process2.once("close", resolve));
|
|
142
140
|
process2.stdin.on("error", fail);
|
|
@@ -247,12 +245,12 @@ function createGuestButtons(signal, executable = "/usr/bin/xcrun") {
|
|
|
247
245
|
try {
|
|
248
246
|
preparing ??= prepare(udid);
|
|
249
247
|
await preparing;
|
|
250
|
-
if (failed || signal.aborted || !
|
|
248
|
+
if (failed || signal.aborted || !child) throw error();
|
|
251
249
|
if (!button) return;
|
|
252
250
|
const id = ++sequence;
|
|
253
251
|
await new Promise((resolve, reject) => {
|
|
254
252
|
pending = { line: `${id} ok`, resolve, reject };
|
|
255
|
-
|
|
253
|
+
child?.stdin.write(`${id} ${button}
|
|
256
254
|
`, (err) => {
|
|
257
255
|
if (err) fail();
|
|
258
256
|
});
|
|
@@ -269,34 +267,25 @@ function createGuestButtons(signal, executable = "/usr/bin/xcrun") {
|
|
|
269
267
|
async function runSimulatorHostControl(udid, control, signal, executable = "/usr/bin/xcrun") {
|
|
270
268
|
async function run(args, input) {
|
|
271
269
|
signal.throwIfAborted();
|
|
272
|
-
|
|
273
|
-
const
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
failed = true;
|
|
292
|
-
});
|
|
293
|
-
child2.once("close", (code2) => {
|
|
294
|
-
clearTimeout(kill);
|
|
295
|
-
signal.removeEventListener("abort", cancel);
|
|
296
|
-
if (signal.aborted || failed) reject(new Error("Simulator control failed."));
|
|
297
|
-
else resolve(code2);
|
|
298
|
-
});
|
|
299
|
-
});
|
|
270
|
+
try {
|
|
271
|
+
const result = await runPromise(
|
|
272
|
+
provide(
|
|
273
|
+
runCommand({
|
|
274
|
+
command: executable,
|
|
275
|
+
args,
|
|
276
|
+
input: input ?? "",
|
|
277
|
+
// simctl decodes stdin with the locale; keep Unicode clipboard input.
|
|
278
|
+
env: { ...process.env, LANG: "en_US.UTF-8", LC_ALL: "en_US.UTF-8" },
|
|
279
|
+
abandonPolicy: { graceMs: 1e3, killWaitMs: 2e3 }
|
|
280
|
+
}),
|
|
281
|
+
processLayer({})
|
|
282
|
+
),
|
|
283
|
+
{ signal }
|
|
284
|
+
);
|
|
285
|
+
return result.code;
|
|
286
|
+
} catch {
|
|
287
|
+
throw new Error("Simulator control failed.");
|
|
288
|
+
}
|
|
300
289
|
}
|
|
301
290
|
let code;
|
|
302
291
|
switch (control.kind) {
|
|
@@ -393,7 +382,7 @@ const onMessage = (raw) => {
|
|
|
393
382
|
process.on("message", onMessage);
|
|
394
383
|
process.once("SIGTERM", stop);
|
|
395
384
|
process.once("SIGINT", stop);
|
|
396
|
-
let
|
|
385
|
+
let owned;
|
|
397
386
|
let exited;
|
|
398
387
|
try {
|
|
399
388
|
if (!process.connected) throw new Error("Missing lifecycle owner");
|
|
@@ -410,12 +399,13 @@ try {
|
|
|
410
399
|
(resolve, reject) => reservation.close((error) => error ? reject(error) : resolve())
|
|
411
400
|
);
|
|
412
401
|
abort.signal.throwIfAborted();
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
env: process.env
|
|
402
|
+
owned = startProcessLegacy({
|
|
403
|
+
command: binary,
|
|
404
|
+
args: ["serve", "--host", "127.0.0.1", "--port", String(port), "--no-plugins"],
|
|
405
|
+
processGroup: true,
|
|
406
|
+
options: { stdio: "ignore", env: process.env }
|
|
418
407
|
});
|
|
408
|
+
const child = owned.child;
|
|
419
409
|
exited = new Promise((resolve) => {
|
|
420
410
|
child?.once("error", () => {
|
|
421
411
|
stop();
|
|
@@ -453,24 +443,8 @@ try {
|
|
|
453
443
|
await buttons.close().catch(() => {
|
|
454
444
|
process.exitCode = 1;
|
|
455
445
|
});
|
|
456
|
-
if (
|
|
457
|
-
|
|
458
|
-
const signalGroup = (signal) => {
|
|
459
|
-
try {
|
|
460
|
-
process.kill(group, signal);
|
|
461
|
-
return true;
|
|
462
|
-
} catch (error) {
|
|
463
|
-
if (error instanceof Error && "code" in error && error.code === "ESRCH") return false;
|
|
464
|
-
throw error;
|
|
465
|
-
}
|
|
466
|
-
};
|
|
467
|
-
if (signalGroup("SIGTERM")) {
|
|
468
|
-
const killAt = Date.now() + 3e3;
|
|
469
|
-
while (signalGroup(0)) {
|
|
470
|
-
if (Date.now() >= killAt) signalGroup("SIGKILL");
|
|
471
|
-
await setTimeout$1(25);
|
|
472
|
-
}
|
|
473
|
-
}
|
|
446
|
+
if (owned) {
|
|
447
|
+
await owned.terminate({ graceMs: 3e3, killWaitMs: 2e3 });
|
|
474
448
|
await exited;
|
|
475
449
|
}
|
|
476
450
|
process.removeListener("disconnect", stop);
|