@ordewell/core 0.10.1 → 0.10.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.
Files changed (42) hide show
  1. package/dist/{IFileSystem-BCJBHFwB.d.ts → IFileSystem-CyTIoiSn.d.ts} +1 -1
  2. package/dist/{IFileSystem-Bj6fy1cG.d.mts → IFileSystem-j0naIoAQ.d.mts} +1 -1
  3. package/dist/{IRunner-C7_SSpzG.d.ts → IRunner---PfQVdc.d.mts} +25 -20
  4. package/dist/{IRunner-hWAJC4hg.d.mts → IRunner-WwL-Bjqq.d.ts} +25 -20
  5. package/dist/{ModeResolver-u5ZhRC8x.d.ts → ModeResolver-CjQ7zqTN.d.mts} +1 -1
  6. package/dist/{ModeResolver-m1d8Cb-j.d.mts → ModeResolver-DrMU-5lw.d.ts} +1 -1
  7. package/dist/{Task-CxwnCJLi.d.mts → Task-AfA1m4qW.d.mts} +35 -7
  8. package/dist/{Task-CxwnCJLi.d.ts → Task-AfA1m4qW.d.ts} +35 -7
  9. package/dist/{chunk-DJAPDO6E.mjs → chunk-3LNZDBCX.mjs} +8 -7
  10. package/dist/chunk-3LNZDBCX.mjs.map +1 -0
  11. package/dist/{chunk-DNFT4SQG.mjs → chunk-4FEARWTS.mjs} +3 -3
  12. package/dist/{chunk-2IIRSBEQ.mjs → chunk-CIL3BQIF.mjs} +4 -2
  13. package/dist/chunk-CIL3BQIF.mjs.map +1 -0
  14. package/dist/{chunk-CH5IGWFS.mjs → chunk-UQGR3UCA.mjs} +35 -3
  15. package/dist/chunk-UQGR3UCA.mjs.map +1 -0
  16. package/dist/index.d.mts +49 -36
  17. package/dist/index.d.ts +49 -36
  18. package/dist/index.js +15816 -15877
  19. package/dist/index.js.map +1 -1
  20. package/dist/index.mjs +14846 -14941
  21. package/dist/index.mjs.map +1 -1
  22. package/dist/parsing.d.mts +2 -2
  23. package/dist/parsing.d.ts +2 -2
  24. package/dist/parsing.js +3 -2
  25. package/dist/parsing.js.map +1 -1
  26. package/dist/parsing.mjs +3 -3
  27. package/dist/{plan-utils-CKXdD1AD.d.mts → plan-utils-DL7yOuJs.d.mts} +39 -8
  28. package/dist/{plan-utils-B6yJdpgi.d.ts → plan-utils-gpeqV-Lp.d.ts} +39 -8
  29. package/dist/plan-utils.d.mts +4 -4
  30. package/dist/plan-utils.d.ts +4 -4
  31. package/dist/plan-utils.js +44 -0
  32. package/dist/plan-utils.js.map +1 -1
  33. package/dist/plan-utils.mjs +7 -3
  34. package/dist/testing.d.mts +3 -3
  35. package/dist/testing.d.ts +3 -3
  36. package/dist/testing.js.map +1 -1
  37. package/dist/testing.mjs +1 -1
  38. package/package.json +5 -1
  39. package/dist/chunk-2IIRSBEQ.mjs.map +0 -1
  40. package/dist/chunk-CH5IGWFS.mjs.map +0 -1
  41. package/dist/chunk-DJAPDO6E.mjs.map +0 -1
  42. /package/dist/{chunk-DNFT4SQG.mjs.map → chunk-4FEARWTS.mjs.map} +0 -0
@@ -1,5 +1,5 @@
1
- import { $ as RunnerId, ac as Task } from './Task-CxwnCJLi.mjs';
2
- import { R as RunnerModeInfo } from './ModeResolver-m1d8Cb-j.mjs';
1
+ import { a1 as RunnerId, ae as Task } from './Task-AfA1m4qW.mjs';
2
+ import { R as RunnerModeInfo } from './ModeResolver-CjQ7zqTN.mjs';
3
3
 
4
4
  declare function parsePlanJson(raw: string, runners: RunnerId[], runnerModes?: Record<RunnerId, RunnerModeInfo[]>, autonomousDefault?: boolean): Task[];
5
5
 
package/dist/parsing.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { $ as RunnerId, ac as Task } from './Task-CxwnCJLi.js';
2
- import { R as RunnerModeInfo } from './ModeResolver-u5ZhRC8x.js';
1
+ import { a1 as RunnerId, ae as Task } from './Task-AfA1m4qW.js';
2
+ import { R as RunnerModeInfo } from './ModeResolver-DrMU-5lw.js';
3
3
 
4
4
  declare function parsePlanJson(raw: string, runners: RunnerId[], runnerModes?: Record<RunnerId, RunnerModeInfo[]>, autonomousDefault?: boolean): Task[];
5
5
 
package/dist/parsing.js CHANGED
@@ -57,7 +57,7 @@ function createTask(overrides = {}) {
57
57
  outputSummary: overrides.outputSummary,
58
58
  ...overrides.attemptUsage ? { attemptUsage: structuredClone(overrides.attemptUsage) } : {},
59
59
  assignedModel: overrides.assignedModel,
60
- assignedRunner: overrides.assignedRunner ?? "claude-code",
60
+ assignedRunner: overrides.assignedRunner ?? DEFAULT_RUNNERS[0],
61
61
  taskMode: overrides.taskMode ?? "build",
62
62
  autonomy: overrides.autonomy,
63
63
  sliceType: overrides.sliceType,
@@ -83,6 +83,7 @@ function inheritedSkills(chosen, inherited) {
83
83
  function opsFlag(value, type = "ai") {
84
84
  return value === true && type === "ai" ? true : void 0;
85
85
  }
86
+ var DEFAULT_RUNNERS = ["claude-code"];
86
87
  function flattenTasksWithParents(tasks) {
87
88
  const rows = [];
88
89
  const walk = (t, parent, parentLabel) => {
@@ -372,7 +373,7 @@ function plannedTask(spec, catalog, at = {}) {
372
373
  if (freshIds && plannerId) renamed.set(plannerId, id);
373
374
  const type = raw.type === "user" || raw.type === "ai" ? raw.type : base.type ?? "ai";
374
375
  const ai = type === "ai";
375
- const assignedRunner = text(raw.assignedRunner) ?? base.assignedRunner ?? catalog.runners[0] ?? "claude-code";
376
+ const assignedRunner = text(raw.assignedRunner) ?? base.assignedRunner ?? catalog.runners[0] ?? DEFAULT_RUNNERS[0];
376
377
  const description = text(raw.description) ?? base.description ?? title;
377
378
  if (raw.ops === true && !ai) errors.push({ taskId: id, field: "ops", message: `${where} ${opsPlacementRefusal(type, !!parent)}` });
378
379
  if (raw.taskMode !== void 0) ignored.push({ taskId: id, field: "taskMode", message: `${where}: ${MODE_NOT_THE_PLANNERS}` });