@lmzhen/dsh-evolution-core 0.30.17 → 0.30.19

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 (37) hide show
  1. package/lib/composition/index.js +2 -2
  2. package/lib/{composition-D8Y3-ROd.js → composition-DSesmTvf.js} +3 -3
  3. package/lib/{http-routes-ifJKGnu6.js → http-routes-D1Ty6nnh.js} +2 -0
  4. package/lib/http-routes.js +1 -1
  5. package/lib/index.js +3205 -2080
  6. package/lib/subagent/index.js +1 -1
  7. package/lib/types/composition/composer.js +1 -1
  8. package/lib/types/frontmatter.js +1 -1
  9. package/lib/types/http-routes.d.ts +2 -0
  10. package/lib/types/http-routes.js +2 -0
  11. package/lib/types/index.d.ts +5 -0
  12. package/lib/types/index.js +5 -0
  13. package/lib/types/params.js +1 -2
  14. package/lib/types/platform-services.js +1 -1
  15. package/lib/types/redact.js +2 -2
  16. package/lib/types/run-registry.d.ts +27 -6
  17. package/lib/types/run-registry.js +58 -15
  18. package/lib/types/skill-history.d.ts +4 -0
  19. package/lib/types/skill-revision.d.ts +37 -0
  20. package/lib/types/skill-revision.js +45 -0
  21. package/lib/types/skill-store.d.ts +43 -1
  22. package/lib/types/skill-store.js +235 -9
  23. package/lib/types/tree-lock.d.ts +3 -0
  24. package/lib/types/tree-lock.js +13 -5
  25. package/lib/types/unit-backend.d.ts +5 -0
  26. package/lib/types/unit-backend.js +55 -0
  27. package/lib/types/unit-journal.d.ts +29 -0
  28. package/lib/types/unit-journal.js +51 -0
  29. package/lib/types/unit-recovery.d.ts +5 -0
  30. package/lib/types/unit-recovery.js +12 -0
  31. package/lib/types/unit-storage.d.ts +95 -0
  32. package/lib/types/unit-storage.js +124 -0
  33. package/lib/types/unit-transaction.d.ts +220 -0
  34. package/lib/types/unit-transaction.js +487 -0
  35. package/package.json +1 -1
  36. package/persisted-write-inventory.json +91 -1
  37. package/lib/{ensure-MEYMj9jn.js → ensure-BuWsjPGD.js} +1 -1
@@ -1,3 +1,3 @@
1
- import { a as entryListSchema, c as MAINTAINER_PRESET_ID, d as RESTRICTED_TOOLS_ROW_ID, f as RESTRICTOR_MODULE, h as restrictedPresetId, i as composeRestrictedPresetDefinition, l as RESTRICTED_PRESET_DELIVERY, m as normalizeAllow, n as ensureRestrictedPreset, o as parsePresetRows, p as REVIEWER_PRESET_ID, r as restrictedPresetState, s as EVOLUTION_PRESET_IDS, t as disposeRestrictedPreset, u as RESTRICTED_PRESET_DISPLAY } from "../ensure-MEYMj9jn.js";
2
- import { C as trimTrailingBlankLines, S as rowSiblingEnd, _ as presetRowId, a as composePresetComposition, b as resolveBasePresetPatch, c as composePresetRow, d as listDirectories, f as loadRowOverrides, g as presetRowBody, h as presetRowBlock, i as basePresetPlugins, l as compositionRowIds, m as presetPatchText, n as AGENT_PRESET_ROOT_HINT, o as composePresetEntry, p as mergePresetRow, r as EMPTY_PATCH_SEED, s as composePresetInsert, t as AGENT_PRESET_PACKAGE, u as denseBlockSequence, v as probeDesktopScope, x as rowBlockSpan, y as removePresetRow } from "../composition-D8Y3-ROd.js";
1
+ import { a as entryListSchema, c as MAINTAINER_PRESET_ID, d as RESTRICTED_TOOLS_ROW_ID, f as RESTRICTOR_MODULE, h as restrictedPresetId, i as composeRestrictedPresetDefinition, l as RESTRICTED_PRESET_DELIVERY, m as normalizeAllow, n as ensureRestrictedPreset, o as parsePresetRows, p as REVIEWER_PRESET_ID, r as restrictedPresetState, s as EVOLUTION_PRESET_IDS, t as disposeRestrictedPreset, u as RESTRICTED_PRESET_DISPLAY } from "../ensure-BuWsjPGD.js";
2
+ import { C as trimTrailingBlankLines, S as rowSiblingEnd, _ as presetRowId, a as composePresetComposition, b as resolveBasePresetPatch, c as composePresetRow, d as listDirectories, f as loadRowOverrides, g as presetRowBody, h as presetRowBlock, i as basePresetPlugins, l as compositionRowIds, m as presetPatchText, n as AGENT_PRESET_ROOT_HINT, o as composePresetEntry, p as mergePresetRow, r as EMPTY_PATCH_SEED, s as composePresetInsert, t as AGENT_PRESET_PACKAGE, u as denseBlockSequence, v as probeDesktopScope, x as rowBlockSpan, y as removePresetRow } from "../composition-DSesmTvf.js";
3
3
  export { AGENT_PRESET_PACKAGE, AGENT_PRESET_ROOT_HINT, EMPTY_PATCH_SEED, EVOLUTION_PRESET_IDS, MAINTAINER_PRESET_ID, RESTRICTED_PRESET_DELIVERY, RESTRICTED_PRESET_DISPLAY, RESTRICTED_TOOLS_ROW_ID, RESTRICTOR_MODULE, REVIEWER_PRESET_ID, basePresetPlugins, composePresetComposition, composePresetEntry, composePresetInsert, composePresetRow, composeRestrictedPresetDefinition, compositionRowIds, denseBlockSequence, disposeRestrictedPreset, ensureRestrictedPreset, entryListSchema, listDirectories, loadRowOverrides, mergePresetRow, normalizeAllow, parsePresetRows, presetPatchText, presetRowBlock, presetRowBody, presetRowId, probeDesktopScope, removePresetRow, resolveBasePresetPatch, restrictedPresetId, restrictedPresetState, rowBlockSpan, rowSiblingEnd, trimTrailingBlankLines };
@@ -1,6 +1,6 @@
1
- import { _ as scopedPackageName } from "./ensure-MEYMj9jn.js";
2
- import { existsSync, readFileSync, readdirSync } from "node:fs";
1
+ import { _ as scopedPackageName } from "./ensure-BuWsjPGD.js";
3
2
  import { dirname, join } from "node:path";
3
+ import { existsSync, readFileSync, readdirSync } from "node:fs";
4
4
  import { fileURLToPath } from "node:url";
5
5
  //#region lib/types/env.js
6
6
  /**
@@ -342,7 +342,7 @@ function presetRowBlock(patchText, rowId) {
342
342
  const lines = patchText.split("\n");
343
343
  const span = rowBlockSpan(lines, rowId);
344
344
  if (span === null) return null;
345
- const block = [...lines.slice(span.start, span.end)];
345
+ const block = lines.slice(span.start, span.end);
346
346
  while (block.length > 0 && (block[block.length - 1] ?? "").trim() === "") block.pop();
347
347
  return block.join("\n") + "\n";
348
348
  }
@@ -77,6 +77,8 @@ const HOST_ROUTES = {
77
77
  merge: {
78
78
  view: "/api/dsh-evolution/merge/view",
79
79
  rows: "/api/dsh-evolution/merge/rows",
80
+ run: "/api/dsh-evolution/merge/run",
81
+ runs: "/api/dsh-evolution/merge/runs",
80
82
  body: "/api/dsh-evolution/merge/body",
81
83
  history: "/api/dsh-evolution/merge/history"
82
84
  },
@@ -1,2 +1,2 @@
1
- import { a as methodNotAllowed, i as json, n as MAX_REQUEST_BODY_BYTES, o as readJsonObject, r as hostSurface, s as registerHostRoutes, t as HOST_ROUTES } from "./http-routes-ifJKGnu6.js";
1
+ import { a as methodNotAllowed, i as json, n as MAX_REQUEST_BODY_BYTES, o as readJsonObject, r as hostSurface, s as registerHostRoutes, t as HOST_ROUTES } from "./http-routes-D1Ty6nnh.js";
2
2
  export { HOST_ROUTES, MAX_REQUEST_BODY_BYTES, hostSurface, json, methodNotAllowed, readJsonObject, registerHostRoutes };