@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 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
- let bundlePatches;
299
- let profilePatches = [];
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 realProfileDir = join3(home, "profiles", "acp");
312
- if (existsSync3(join3(realProfileDir, "package.json"))) {
313
- appBoot.healProfilesModuleFallback(dshPkgPath);
314
- const profile = appBoot.loadProfile(BIN, "acp", dshPkgPath);
315
- bundlePatches = profile.layers.flatMap((layer) => layer.patches);
316
- profilePatches = profile.patches;
317
- profilePatchPath = join3(profile.dir, "cordis.patch.yml");
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, profilePatches, homePatches])) {
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, ...profilePatches, ...homePatches, ...overlays];
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
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.4.25",
6
+ "version": "0.4.26",
7
7
  "repository": {
8
8
  "type": "git",
9
9
  "url": "git+https://github.com/openma-ai/deepseek-harness-acp.git"
Binary file
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "archive": "dsh-runtime.tgz",
3
3
  "dsh": "0.1.1-rc.2",
4
- "sha256": "4a2d5d44fca9ef7c5afcd986309f4a6f5b4605a8d45f1197645297e3f7f5ae85"
4
+ "sha256": "f9f9276ec14fdd907146175d5c3b98d1e680eb27b9caaa37fd609908f197e70e"
5
5
  }