@openma/deepseek-harness-acp 0.4.25 → 0.4.26
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/index.js +11 -30
- package/package.json +1 -1
- package/vendor/dsh-runtime.tgz +0 -0
- package/vendor/runtime.json +1 -1
package/dist/index.js
CHANGED
|
@@ -295,11 +295,8 @@ async function bootAcpProfile(host, overrides) {
|
|
|
295
295
|
const appBoot = await import(pathToFileURL(req.resolve("@deepseek-ai/dsh-app-boot")).href);
|
|
296
296
|
const homePaths = await import(pathToFileURL(req.resolve("@deepseek-ai/dsh-home-paths")).href);
|
|
297
297
|
const home = homePaths.resolveDshHome();
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
let profilePatchPath;
|
|
301
|
-
let rootConfigPath = join3(ownRoot(), "profile-root.cordis.yml");
|
|
302
|
-
let bareModuleBaseUrl = pathToFileURL(dshDir + sep2).href;
|
|
298
|
+
const rootConfigPath = join3(ownRoot(), "profile-root.cordis.yml");
|
|
299
|
+
const bareModuleBaseUrl = pathToFileURL(dshDir + sep2).href;
|
|
303
300
|
const distBridge = join3(ownRoot(), "dist", "bridge.js");
|
|
304
301
|
const bridgeEntry = import.meta.url.endsWith(".ts") || !existsSync3(distBridge) ? join3(ownRoot(), "src", "bundle.ts") : distBridge;
|
|
305
302
|
const distServer = join3(ownRoot(), "dist", "server.js");
|
|
@@ -308,26 +305,13 @@ async function bootAcpProfile(host, overrides) {
|
|
|
308
305
|
const pluginEntry = import.meta.url.endsWith(".ts") || !existsSync3(distPlugin) ? join3(ownRoot(), "src", "plugin.ts") : distPlugin;
|
|
309
306
|
const distStdio = join3(ownRoot(), "dist", "stdio.js");
|
|
310
307
|
const stdioEntry = import.meta.url.endsWith(".ts") || !existsSync3(distStdio) ? join3(ownRoot(), "src", "stdio.ts") : distStdio;
|
|
311
|
-
const
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
const realRoot = join3(profile.dir, "cordis.yml");
|
|
319
|
-
if (existsSync3(realRoot)) rootConfigPath = realRoot;
|
|
320
|
-
bareModuleBaseUrl = void 0;
|
|
321
|
-
logDebug(`profile: real (${profile.dir})`);
|
|
322
|
-
} else {
|
|
323
|
-
const basePatch = bundlePatchPath(req.resolve("@deepseek-ai/dsh-base/package.json"));
|
|
324
|
-
const ownPatch = bundlePatchPath(join3(ownRoot(), "package.json"));
|
|
325
|
-
bundlePatches = [
|
|
326
|
-
...appBoot.loadOverlayPatches(BIN, basePatch),
|
|
327
|
-
...appBoot.loadOverlayPatches(BIN, ownPatch)
|
|
328
|
-
];
|
|
329
|
-
logDebug(`profile: virtual (dsh-base + ${ownRoot()})`);
|
|
330
|
-
}
|
|
308
|
+
const basePatch = bundlePatchPath(req.resolve("@deepseek-ai/dsh-base/package.json"));
|
|
309
|
+
const ownPatch = bundlePatchPath(join3(ownRoot(), "package.json"));
|
|
310
|
+
const bundlePatches = [
|
|
311
|
+
...appBoot.loadOverlayPatches(BIN, basePatch),
|
|
312
|
+
...appBoot.loadOverlayPatches(BIN, ownPatch)
|
|
313
|
+
];
|
|
314
|
+
logDebug(`profile: standalone (dsh-base + ${ownRoot()})`);
|
|
331
315
|
for (const bundle of overrides?.bundles ?? []) {
|
|
332
316
|
bundlePatches.push(...loadBundleLayer(appBoot, bundle));
|
|
333
317
|
logDebug(`profile: added bundle ${bundle}`);
|
|
@@ -343,7 +327,7 @@ async function bootAcpProfile(host, overrides) {
|
|
|
343
327
|
const homePatchPath = join3(home, "cordis.patch.yml");
|
|
344
328
|
const homePatches = appBoot.loadOptionalPatches(BIN, homePatchPath) ?? [];
|
|
345
329
|
const rows = /* @__PURE__ */ new Map();
|
|
346
|
-
for (const row of appBoot.composeEntries([bundlePatches,
|
|
330
|
+
for (const row of appBoot.composeEntries([bundlePatches, homePatches])) {
|
|
347
331
|
if (typeof row.id === "string") rows.set(row.id, row);
|
|
348
332
|
}
|
|
349
333
|
const overlays = [];
|
|
@@ -376,7 +360,7 @@ async function bootAcpProfile(host, overrides) {
|
|
|
376
360
|
overlays.push({ id: configRowId, config: { ...configRow.config ?? {}, ...patch } });
|
|
377
361
|
}
|
|
378
362
|
}
|
|
379
|
-
const allPatches = [...bundlePatches, ...
|
|
363
|
+
const allPatches = [...bundlePatches, ...homePatches, ...overlays];
|
|
380
364
|
const launchEnvironment = appBoot.loadLayeredEnv("dsh");
|
|
381
365
|
const launchEnvKey = (await import(pathToFileURL(req.resolve("@deepseek-ai/dsh-launch-environment")).href)).DSH_LAUNCH_ENVIRONMENT_KEY;
|
|
382
366
|
const ctx = await appBoot.boot(
|
|
@@ -396,9 +380,6 @@ async function bootAcpProfile(host, overrides) {
|
|
|
396
380
|
});
|
|
397
381
|
throw error;
|
|
398
382
|
}
|
|
399
|
-
if (profilePatchPath !== void 0) {
|
|
400
|
-
logDebug(`user patch layers are read at boot; edit ${profilePatchPath} and restart to apply`);
|
|
401
|
-
}
|
|
402
383
|
return ctx;
|
|
403
384
|
}
|
|
404
385
|
|
package/package.json
CHANGED
package/vendor/dsh-runtime.tgz
CHANGED
|
Binary file
|
package/vendor/runtime.json
CHANGED