@wildo-ai/dev-companion 1.1.15 → 1.1.16
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/esm/.tsbuildinfo +1 -1
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts +165 -5
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js +239 -8
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -1
- package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts +2 -1
- package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js +2 -1
- package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js.map +1 -1
- package/dist/esm/claude-cli/models/isolated-recheck-interference.models.d.ts +68 -0
- package/dist/esm/claude-cli/models/isolated-recheck-interference.models.d.ts.map +1 -0
- package/dist/esm/claude-cli/models/isolated-recheck-interference.models.js +198 -0
- package/dist/esm/claude-cli/models/isolated-recheck-interference.models.js.map +1 -0
- package/dist/esm/claude-cli/models/workspace-path-claims.models.d.ts +138 -0
- package/dist/esm/claude-cli/models/workspace-path-claims.models.d.ts.map +1 -0
- package/dist/esm/claude-cli/models/workspace-path-claims.models.js +204 -0
- package/dist/esm/claude-cli/models/workspace-path-claims.models.js.map +1 -0
- package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts +20 -0
- package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js +27 -12
- package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts +155 -3
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js +791 -151
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js.map +1 -1
- package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion.controller.js +7 -1
- package/dist/esm/companion-api/controllers/companion.controller.js.map +1 -1
- package/dist/esm/core/introspection/resources/creation-home-projection.companion.js +1 -1
- package/dist/esm/core/introspection/resources/creation-home-projection.companion.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.d.ts +13 -0
- package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.js +98 -16
- package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.js.map +1 -1
- package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts +21 -1
- package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts.map +1 -1
- package/dist/esm/expert-personas/services/expert-persona.companion.service.js +35 -3
- package/dist/esm/expert-personas/services/expert-persona.companion.service.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_ACTIVITY_SETTINGS.en.d.ts +62 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_ACTIVITY_SETTINGS.en.d.ts.map +1 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_ACTIVITY_SETTINGS.en.js +62 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_ACTIVITY_SETTINGS.en.js.map +1 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_ACTIVITY_SETTINGS.fr.d.ts +62 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_ACTIVITY_SETTINGS.fr.d.ts.map +1 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_ACTIVITY_SETTINGS.fr.js +62 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_ACTIVITY_SETTINGS.fr.js.map +1 -0
- package/dist/esm/i18n/system_enums/workbench-build.en.d.ts +1 -1
- package/dist/esm/i18n/system_enums/workbench-build.en.js +1 -1
- package/dist/esm/i18n/system_enums/workbench-build.en.js.map +1 -1
- package/dist/esm/meta-workflows/models/carried-verification-failure.models.d.ts +23 -0
- package/dist/esm/meta-workflows/models/carried-verification-failure.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/carried-verification-failure.models.js +14 -0
- package/dist/esm/meta-workflows/models/carried-verification-failure.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/creation-journey-timeline.models.d.ts +12 -1
- package/dist/esm/meta-workflows/models/creation-journey-timeline.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/creation-journey-timeline.models.js +99 -1
- package/dist/esm/meta-workflows/models/creation-journey-timeline.models.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.d.ts +5 -0
- package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.js +22 -1
- package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts +67 -20
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js +344 -76
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-follow-up-derivation.companion.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-follow-up-derivation.companion.js +9 -0
- package/dist/esm/meta-workflows/services/application-build-follow-up-derivation.companion.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts +47 -1
- package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js +98 -9
- package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts +38 -2
- package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js +176 -22
- package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.d.ts +45 -0
- package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js +74 -0
- package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/creation-run-report.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/creation-run-report.companion.service.js +9 -1
- package/dist/esm/meta-workflows/services/creation-run-report.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts +64 -5
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.js +139 -14
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/website-demo-facts.models.d.ts +19 -1
- package/dist/esm/meta-workflows/services/website-demo-facts.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/website-demo-facts.models.js +7 -5
- package/dist/esm/meta-workflows/services/website-demo-facts.models.js.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.d.ts +2 -0
- package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.js +3 -1
- package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.js.map +1 -1
- package/package.json +17 -17
package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.d.ts
CHANGED
|
@@ -243,6 +243,51 @@ export declare function websiteTaskSkillRefs(task: BuildPlanTask, companionExpor
|
|
|
243
243
|
* there is no readable plan.
|
|
244
244
|
*/
|
|
245
245
|
export declare function deriveWebsiteTaskOrdering(graph: BuildPlanTaskGraph, companionExports: unknown): BuildPlanTaskGraph;
|
|
246
|
+
/** What {@link deriveWebsiteClaimPrerequisites} added, and what it left out because waiting would close a cycle. */
|
|
247
|
+
export interface WebsiteClaimPrerequisiteDerivation {
|
|
248
|
+
/** The graph with every admissible claim edge added; the input graph itself when none was added. */
|
|
249
|
+
readonly graph: BuildPlanTaskGraph;
|
|
250
|
+
/** The edges added, per website task, in plan order. */
|
|
251
|
+
readonly added: ReadonlyMap<string, readonly string[]>;
|
|
252
|
+
/**
|
|
253
|
+
* Per website task, the PLANNED delivering tasks it does not wait on because they already wait on it, directly or
|
|
254
|
+
* through others. An authored task waiting on a website page is an authoring oddity the host names.
|
|
255
|
+
*/
|
|
256
|
+
readonly withheldPlanned: ReadonlyMap<string, readonly string[]>;
|
|
257
|
+
/**
|
|
258
|
+
* Per website task, the host-derived follow-ups it does not wait on for the same reason. Expected, never a finding: a
|
|
259
|
+
* follow-up waits on the task whose report derived it, on the follow-up before it on its target, and on its owner or its
|
|
260
|
+
* scope's planned tasks, so one derived from this page or from one of its sections (a section waits on its page) always
|
|
261
|
+
* waits on it, and one chained after such a follow-up does too.
|
|
262
|
+
*/
|
|
263
|
+
readonly withheldFollowUps: ReadonlyMap<string, readonly string[]>;
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* A website task waits for the tasks that BUILD what its copy describes (#2507 re-review N1): every task delivering a
|
|
267
|
+
* requirement it cites ({@link deliveringTasksFor}, website and documentation tasks excluded), host-derived follow-ups
|
|
268
|
+
* included. Pure; the dispatch host calls it on the plan with its follow-ups appended.
|
|
269
|
+
*
|
|
270
|
+
* ## An edge is added unless it closes a cycle, one edge at a time
|
|
271
|
+
*
|
|
272
|
+
* The only plan floor an added prerequisite of a WEBSITE task can break is `PREREQUISITE_CYCLE`. The product and target
|
|
273
|
+
* floors read a task's own products or target, which an edge does not change. The resource-stage sequence asks whether a
|
|
274
|
+
* stage reaches its predecessor, and an added edge only makes more tasks reachable, so that finding can only disappear.
|
|
275
|
+
* So an edge is admissible exactly when the delivering task does not already wait on the website task, in the graph as
|
|
276
|
+
* extended so far (which is what keeps two added edges from closing a cycle together), as
|
|
277
|
+
* {@link deriveWebsiteTaskOrdering} already checks for its own edges.
|
|
278
|
+
*
|
|
279
|
+
* It used to be decided by re-validating the whole plan and refusing a website task's edges whenever the result carried
|
|
280
|
+
* ANY hard-floor finding. The host's plan can carry one the edges did not cause: a follow-up of a RELATIONSHIP task keeps
|
|
281
|
+
* that target and declares no product, which `RELATIONSHIP_TARGET_DISAGREES_WITH_PRODUCTS` reports. From the first such
|
|
282
|
+
* follow-up on, every website task was refused on every read: 77 tasks a pass on reference run 44052185141 (17,402 warnings),
|
|
283
|
+
* whose pages were then built before the features they describe, reported them unmet, and derived 142 follow-ups. And a
|
|
284
|
+
* website task's edges were kept or dropped together, so one follow-up derived from a page (it waits on the page) cost
|
|
285
|
+
* that page every other wait. Now one edge that would close a cycle costs only that edge.
|
|
286
|
+
*
|
|
287
|
+
* A follow-up that does not wait on this website task is kept, typically one derived from ANOTHER page: it closes a gap
|
|
288
|
+
* this page's copy describes, so the page waits for it rather than describing the gap.
|
|
289
|
+
*/
|
|
290
|
+
export declare function deriveWebsiteClaimPrerequisites(graph: BuildPlanTaskGraph, citedByTask: ReadonlyMap<string, readonly string[]>): WebsiteClaimPrerequisiteDerivation;
|
|
246
291
|
/** The enum MEMBER name a section of this kind declares (`PRODUCT_SHOWCASE`), as the agent writes it in code. */
|
|
247
292
|
export declare function websiteSectionCategoryMember(kind: WebsiteSectionKind): string;
|
|
248
293
|
/** The Astro route file that mounts a route: `/` → index.astro, `/product/analytics` → product/analytics.astro. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-build-website-context.companion.service.d.ts","sourceRoot":"","sources":["../../../../src/meta-workflows/services/application-build-website-context.companion.service.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,sBAAsB,EAG5B,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EAGL,KAAK,aAAa,EAClB,KAAK,kBAAkB,EAEvB,uBAAuB,EACvB,KAAK,eAAe,EACpB,KAAK,WAAW,EAIhB,kBAAkB,EAUnB,MAAM,oDAAoD,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,sBAAsB,EAAE,KAAK,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;
|
|
1
|
+
{"version":3,"file":"application-build-website-context.companion.service.d.ts","sourceRoot":"","sources":["../../../../src/meta-workflows/services/application-build-website-context.companion.service.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,sBAAsB,EAG5B,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EAGL,KAAK,aAAa,EAClB,KAAK,kBAAkB,EAEvB,uBAAuB,EACvB,KAAK,eAAe,EACpB,KAAK,WAAW,EAIhB,kBAAkB,EAUnB,MAAM,oDAAoD,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,sBAAsB,EAAE,KAAK,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AAajH,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAWjF;;;;;GAKG;AACH,oBAAY,4BAA4B;IACtC,uHAAuH;IACvH,SAAS,cAAc;IACvB,oGAAoG;IACpG,cAAc,mBAAmB;IACjC,0EAA0E;IAC1E,WAAW,gBAAgB;IAC3B,6FAA6F;IAC7F,oBAAoB,yBAAyB;IAC7C,6FAA6F;IAC7F,SAAS,cAAc;CACxB;AAED,wHAAwH;AACxH,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,QAAQ,EAAE,4BAA4B,CAAC;IAChD,gHAAgH;IAChH,QAAQ,CAAC,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AgB,+BAA+B,CAAC,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,WAAW,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,GAAG,kCAAkC,CA2ClK;AAoGD,iHAAiH;AACjH,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,kBAAkB,GAAG,MAAM,CAK7E;AAED,mHAAmH;AACnH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAE1D;AAaD;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA+E5G"}
|
package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js
CHANGED
|
@@ -4,6 +4,7 @@ import { ApplicationSpecificationFamily, BuildPlanDataSeedContent, BuildPlanTask
|
|
|
4
4
|
import { RoadmapPhaseHorizon } from '@wildo-ai/saas-models';
|
|
5
5
|
import { readCompiledResearchInformedContent } from '@wildo-ai/framework-knowledge';
|
|
6
6
|
import { ThirdPartyBriefContent } from '../models/build-brief-content-trust.models.js';
|
|
7
|
+
import { HOST_DERIVED_FOLLOW_UP_TASK_REF_PREFIX } from './application-build-follow-up-derivation.companion.js';
|
|
7
8
|
import { WebsiteMenuItemSlot, WebsiteMenuPanelLayout, WebsiteSectionCategory, websiteMenuLabelKeys, websiteMenuPanelLayoutFor, } from '@wildo-ai/saas-website/companion';
|
|
8
9
|
import { LLMS_TXT_UNAUTHORED_MARKER } from '@wildo-ai/saas-website/astro';
|
|
9
10
|
import { websitePageIdentity, websitePageSectionsListName } from './application-build-task-coding-policy.companion.service.js';
|
|
@@ -652,6 +653,79 @@ export function deriveWebsiteTaskOrdering(graph, companionExports) {
|
|
|
652
653
|
}),
|
|
653
654
|
};
|
|
654
655
|
}
|
|
656
|
+
/**
|
|
657
|
+
* A website task waits for the tasks that BUILD what its copy describes (#2507 re-review N1): every task delivering a
|
|
658
|
+
* requirement it cites ({@link deliveringTasksFor}, website and documentation tasks excluded), host-derived follow-ups
|
|
659
|
+
* included. Pure; the dispatch host calls it on the plan with its follow-ups appended.
|
|
660
|
+
*
|
|
661
|
+
* ## An edge is added unless it closes a cycle, one edge at a time
|
|
662
|
+
*
|
|
663
|
+
* The only plan floor an added prerequisite of a WEBSITE task can break is `PREREQUISITE_CYCLE`. The product and target
|
|
664
|
+
* floors read a task's own products or target, which an edge does not change. The resource-stage sequence asks whether a
|
|
665
|
+
* stage reaches its predecessor, and an added edge only makes more tasks reachable, so that finding can only disappear.
|
|
666
|
+
* So an edge is admissible exactly when the delivering task does not already wait on the website task, in the graph as
|
|
667
|
+
* extended so far (which is what keeps two added edges from closing a cycle together), as
|
|
668
|
+
* {@link deriveWebsiteTaskOrdering} already checks for its own edges.
|
|
669
|
+
*
|
|
670
|
+
* It used to be decided by re-validating the whole plan and refusing a website task's edges whenever the result carried
|
|
671
|
+
* ANY hard-floor finding. The host's plan can carry one the edges did not cause: a follow-up of a RELATIONSHIP task keeps
|
|
672
|
+
* that target and declares no product, which `RELATIONSHIP_TARGET_DISAGREES_WITH_PRODUCTS` reports. From the first such
|
|
673
|
+
* follow-up on, every website task was refused on every read: 77 tasks a pass on reference run 44052185141 (17,402 warnings),
|
|
674
|
+
* whose pages were then built before the features they describe, reported them unmet, and derived 142 follow-ups. And a
|
|
675
|
+
* website task's edges were kept or dropped together, so one follow-up derived from a page (it waits on the page) cost
|
|
676
|
+
* that page every other wait. Now one edge that would close a cycle costs only that edge.
|
|
677
|
+
*
|
|
678
|
+
* A follow-up that does not wait on this website task is kept, typically one derived from ANOTHER page: it closes a gap
|
|
679
|
+
* this page's copy describes, so the page waits for it rather than describing the gap.
|
|
680
|
+
*/
|
|
681
|
+
export function deriveWebsiteClaimPrerequisites(graph, citedByTask) {
|
|
682
|
+
const prerequisites = new Map(graph.tasks.map((task) => [task.taskRef, [...task.prerequisiteTaskRefs]]));
|
|
683
|
+
/** Whether `from` already waits, directly or through others, on `to`, in the graph as extended so far. */
|
|
684
|
+
const waitsOn = (from, to) => {
|
|
685
|
+
const seen = new Set();
|
|
686
|
+
const stack = [from];
|
|
687
|
+
while (stack.length > 0) {
|
|
688
|
+
const current = stack.pop();
|
|
689
|
+
if (current === to)
|
|
690
|
+
return true;
|
|
691
|
+
if (seen.has(current))
|
|
692
|
+
continue;
|
|
693
|
+
seen.add(current);
|
|
694
|
+
stack.push(...(prerequisites.get(current) ?? []));
|
|
695
|
+
}
|
|
696
|
+
return false;
|
|
697
|
+
};
|
|
698
|
+
const added = new Map();
|
|
699
|
+
const withheldPlanned = new Map();
|
|
700
|
+
const withheldFollowUps = new Map();
|
|
701
|
+
for (const task of graph.tasks) {
|
|
702
|
+
const cited = citedByTask.get(task.taskRef) ?? [];
|
|
703
|
+
if (cited.length === 0)
|
|
704
|
+
continue;
|
|
705
|
+
const own = prerequisites.get(task.taskRef);
|
|
706
|
+
const delivering = [...new Set(cited.flatMap((requirementRef) => deliveringTasksFor(requirementRef, graph.tasks)).map((entry) => entry.taskRef))];
|
|
707
|
+
for (const candidate of delivering) {
|
|
708
|
+
if (candidate === task.taskRef || own.includes(candidate))
|
|
709
|
+
continue;
|
|
710
|
+
if (waitsOn(candidate, task.taskRef)) {
|
|
711
|
+
const withheld = candidate.startsWith(HOST_DERIVED_FOLLOW_UP_TASK_REF_PREFIX) ? withheldFollowUps : withheldPlanned;
|
|
712
|
+
withheld.set(task.taskRef, [...(withheld.get(task.taskRef) ?? []), candidate]);
|
|
713
|
+
continue;
|
|
714
|
+
}
|
|
715
|
+
own.push(candidate);
|
|
716
|
+
added.set(task.taskRef, [...(added.get(task.taskRef) ?? []), candidate]);
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
return {
|
|
720
|
+
graph: added.size === 0 ? graph : {
|
|
721
|
+
...graph,
|
|
722
|
+
tasks: graph.tasks.map((task) => (added.has(task.taskRef) ? { ...task, prerequisiteTaskRefs: prerequisites.get(task.taskRef) } : task)),
|
|
723
|
+
},
|
|
724
|
+
added,
|
|
725
|
+
withheldPlanned,
|
|
726
|
+
withheldFollowUps,
|
|
727
|
+
};
|
|
728
|
+
}
|
|
655
729
|
/**
|
|
656
730
|
* The landed website plan, read through the semantic-authority binding — the registry that owns which
|
|
657
731
|
* `companion-exports` field carries each family — rather than a hand-typed field name that could
|