@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-generation-step.companion.service.js
CHANGED
|
@@ -19,18 +19,20 @@ import { SAAS_SERVICE_TYPES, describeCaughtError, executeBoundedSubprocess } fro
|
|
|
19
19
|
import { BrandDesignState, DesignTokenBlockState, SchemaPlanSyncState } from '@wildo-ai/platform-core-shared';
|
|
20
20
|
import { CoreResourceType } from '@wildo-ai/saas-models';
|
|
21
21
|
import { OPENAPI_AUTHORED_EXAMPLE_ERROR_NAME } from '@wildo-ai/saas-technical-doc/companion';
|
|
22
|
-
import { NO_PLAYBOOK_SPEND_METER, SAAS_CONFIG_FILE_NAME, applyApplicationDisplayName, listDisplayNameBearingPaths, resolveBrandSurfaceDirs, assertSpecificationWritePermitted, SpecificationWriteRefusedError, writeSpecificationFileAtomically, } from '@wildo-ai/application-creation-runtime';
|
|
22
|
+
import { NO_PLAYBOOK_SPEND_METER, SAAS_CONFIG_FILE_NAME, applyApplicationDisplayName, listDisplayNameBearingPaths, resolveBrandPropagationWriteRoots, resolveBrandSurfaceDirs, assertSpecificationWritePermitted, SpecificationWriteRefusedError, writeSpecificationFileAtomically, } from '@wildo-ai/application-creation-runtime';
|
|
23
23
|
import { assertSpecificationsReadWhole } from '../../core/context/companion-package-loaders.companion.js';
|
|
24
24
|
import { loadSpecificationFamilyData, readSpecificationFamiliesForRewrite } from '../../core/context/specification-family-data.companion.js';
|
|
25
25
|
import { propagateAcceptedBrand } from '../../brand/services/brand-propagation.companion.utils.js';
|
|
26
26
|
import { BRAND_RESOLVED_ASSETS_MODULE_PATH, hasAcceptedBrandMarkInWorkingTree } from '../../brand/models/accepted-brand-mark.models.js';
|
|
27
|
+
import { API_REFERENCE_GENERATED_ROOT } from '../../technical-doc/services/technical-documentation-pilot.companion.service.js';
|
|
27
28
|
import { BuildPlanTaskTargetKind, FrontendConfigSurface } from '@wildo-ai/saas-specifications/application-creation';
|
|
28
29
|
import { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types.js';
|
|
29
30
|
import { getCompanionConfiguredPrimaryLanguage, getCompanionServedLanguages } from '../../core/config/primary-language.companion.utils.js';
|
|
30
31
|
import { signDerivedInputs } from '../../core/utils/derived-input-signature.companion.utils.js';
|
|
31
32
|
import { LabellingPlannerCompanionService } from '../../i18n-labelling/services/labelling-planner.companion.service.js';
|
|
32
33
|
import { LabellingPlanIncompletenessReason } from '../../i18n-labelling/models/labelling-unit.models.js';
|
|
33
|
-
import { BACKEND_I18N_TREE_RELATIVE_PATH } from '../../i18n-labelling/utils/per-unit-file.utils.js';
|
|
34
|
+
import { BACKEND_I18N_TREE_RELATIVE_PATH, resolveApplicationI18nRoot } from '../../i18n-labelling/utils/per-unit-file.utils.js';
|
|
35
|
+
import { WILDO_SAAS_LOCK_RELATIVE_PATH } from '@wildo-ai/platform-config-lib';
|
|
34
36
|
import { requestCompanionRestart } from '../../core/runtime/companion-self-restart.companion.js';
|
|
35
37
|
import { BuildPlanTaskLandedProbeKind } from './application-build-task-coding-policy.companion.service.js';
|
|
36
38
|
import { LabellizeOrchestratorCompanionService, } from '../../i18n-labelling/services/labellize-orchestrator.companion.service.js';
|
|
@@ -246,6 +248,15 @@ export var GenerationStepWriteScope;
|
|
|
246
248
|
/** Exactly the evidence files: others write the directories around them. */
|
|
247
249
|
GenerationStepWriteScope["EVIDENCE_FILES"] = "EVIDENCE_FILES";
|
|
248
250
|
})(GenerationStepWriteScope || (GenerationStepWriteScope = {}));
|
|
251
|
+
/**
|
|
252
|
+
* Directories a step writes, as their only writer, that hold none of its evidence (#3933). The documentation publication
|
|
253
|
+
* also writes the API reference (`technical-doc/src/generated/api-reference/`, `publishOpenApiDocuments`), replacing its
|
|
254
|
+
* files and removing stale ones. Missing from the step's write scope, that output was neither claimed by the step nor
|
|
255
|
+
* excluded from what it reads, so a stale file the publish removed counted as a moved input of the next attempt.
|
|
256
|
+
*/
|
|
257
|
+
export const GENERATION_STEP_OUTPUT_ROOTS_BESIDE_EVIDENCE = {
|
|
258
|
+
[ApplicationBuildGenerationStep.DOCUMENTATION_PUBLICATION]: [`${API_REFERENCE_GENERATED_ROOT}/`],
|
|
259
|
+
};
|
|
249
260
|
/** Total over the steps, so a step added tomorrow does not compile until somebody says what it may write. */
|
|
250
261
|
export const GENERATION_STEP_WRITE_SCOPE = {
|
|
251
262
|
[ApplicationBuildGenerationStep.I18N_LABELS]: GenerationStepWriteScope.EVIDENCE_DIRECTORIES,
|
|
@@ -264,6 +275,52 @@ export const GENERATION_STEP_WRITE_SCOPE = {
|
|
|
264
275
|
// in directories the frontend config and website coding tasks also write.
|
|
265
276
|
[ApplicationBuildGenerationStep.DESIGN_SYSTEM_BRAND]: GenerationStepWriteScope.EVIDENCE_FILES,
|
|
266
277
|
};
|
|
278
|
+
/**
|
|
279
|
+
* What a generation step CLAIMS while it runs (#4020): the paths it may write, so that a concurrent coding run whose
|
|
280
|
+
* declared scope meets one is not admitted beside it. Not its write scope ({@link GENERATION_STEP_WRITE_SCOPE}, read off its
|
|
281
|
+
* evidence): that is where its OUTPUT lands and what it may name as its own, while a claim must cover every write, side
|
|
282
|
+
* effects included. An omission lets a run into a file the step rewrites; a superset only makes a run wait.
|
|
283
|
+
*
|
|
284
|
+
* Total over the steps, so a step added tomorrow does not compile until somebody says what it claims. A step whose writes
|
|
285
|
+
* have not been traced to the end is {@link GenerationStepClaimBasis.NOT_AUDITED}: it claims nothing, and every coding run
|
|
286
|
+
* waits for it as before #4020 (fail closed). Audited 2026-11-18:
|
|
287
|
+
* - `i18n-labels`: every unit file under the application's i18n root (`resolveApplicationI18nRoot`, where the labellize
|
|
288
|
+
* run and its seeders write), and the freshness rows in `.wildo-saas/wildo-saas.lock.json`
|
|
289
|
+
* (`WildoSaasLockCompanionService.upsertI18nUnit`).
|
|
290
|
+
* - `logo`: the brand directory, the deliberation's staging (`.wildo-saas/generated/brand/`), and what accepting the mark
|
|
291
|
+
* propagates to every surface (`propagateAcceptedBrand`, on its fresh and its skip branch alike), as each brand
|
|
292
|
+
* destination declares it (`resolveBrandPropagationWriteRoots`).
|
|
293
|
+
* - `database-migrations`: the migrations directory, which holds both the new migration and the lockfile it rewrites.
|
|
294
|
+
* - Not audited yet: `i18n-translations` (an unfiltered translate run also writes each email template's labels file and
|
|
295
|
+
* the documentation site's `i18n/<locale>/code.json`, #1908, #1964), `email-templates` (its label translation writes
|
|
296
|
+
* beyond its template directories), the documentation publication, and the four steps whose output is single files
|
|
297
|
+
* other writers share.
|
|
298
|
+
*/
|
|
299
|
+
export var GenerationStepClaimBasis;
|
|
300
|
+
(function (GenerationStepClaimBasis) {
|
|
301
|
+
/** Every write lies under its write scope. */
|
|
302
|
+
GenerationStepClaimBasis["DECLARED_ROOTS"] = "DECLARED_ROOTS";
|
|
303
|
+
/** Its write scope, the whole i18n tree, and the label freshness rows in the application lockfile. */
|
|
304
|
+
GenerationStepClaimBasis["DECLARED_ROOTS_AND_LABEL_STATE"] = "DECLARED_ROOTS_AND_LABEL_STATE";
|
|
305
|
+
/** Its write scope, the brand staging, and every path brand propagation writes. */
|
|
306
|
+
GenerationStepClaimBasis["DECLARED_ROOTS_AND_BRAND_PROPAGATION"] = "DECLARED_ROOTS_AND_BRAND_PROPAGATION";
|
|
307
|
+
/** Not traced: claims nothing, so every coding run waits for it. */
|
|
308
|
+
GenerationStepClaimBasis["NOT_AUDITED"] = "NOT_AUDITED";
|
|
309
|
+
})(GenerationStepClaimBasis || (GenerationStepClaimBasis = {}));
|
|
310
|
+
export const GENERATION_STEP_CLAIM_BASIS = {
|
|
311
|
+
[ApplicationBuildGenerationStep.I18N_LABELS]: GenerationStepClaimBasis.DECLARED_ROOTS_AND_LABEL_STATE,
|
|
312
|
+
[ApplicationBuildGenerationStep.I18N_TRANSLATIONS]: GenerationStepClaimBasis.NOT_AUDITED,
|
|
313
|
+
[ApplicationBuildGenerationStep.LOGO]: GenerationStepClaimBasis.DECLARED_ROOTS_AND_BRAND_PROPAGATION,
|
|
314
|
+
[ApplicationBuildGenerationStep.DATABASE_MIGRATIONS]: GenerationStepClaimBasis.DECLARED_ROOTS,
|
|
315
|
+
[ApplicationBuildGenerationStep.EMAIL_TEMPLATES]: GenerationStepClaimBasis.NOT_AUDITED,
|
|
316
|
+
[ApplicationBuildGenerationStep.DOCUMENTATION_PUBLICATION]: GenerationStepClaimBasis.NOT_AUDITED,
|
|
317
|
+
[ApplicationBuildGenerationStep.ENGINE_CAPABILITIES]: GenerationStepClaimBasis.NOT_AUDITED,
|
|
318
|
+
[ApplicationBuildGenerationStep.DISPLAY_NAME]: GenerationStepClaimBasis.NOT_AUDITED,
|
|
319
|
+
[ApplicationBuildGenerationStep.DESIGN_TOKENS]: GenerationStepClaimBasis.NOT_AUDITED,
|
|
320
|
+
[ApplicationBuildGenerationStep.DESIGN_SYSTEM_BRAND]: GenerationStepClaimBasis.NOT_AUDITED,
|
|
321
|
+
};
|
|
322
|
+
/** The logo deliberation's staging, application-relative (`logo-deliberation.companion.service.ts`). */
|
|
323
|
+
const LOGO_DELIBERATION_STAGING_ROOT = '.wildo-saas/generated/brand/';
|
|
267
324
|
/**
|
|
268
325
|
* What a generation step READS in the application's tree (#3709): the roots (a directory with its trailing slash, or one
|
|
269
326
|
* file) whose change may change what the step produces. A step held for having run on unchanged inputs (#3233) or for
|
|
@@ -891,7 +948,7 @@ let ApplicationBuildGenerationStepCompanionService = class ApplicationBuildGener
|
|
|
891
948
|
logDebug;
|
|
892
949
|
/** The running step of each task, by task ref — runtime state only, see {@link GenerationStepProgress}. */
|
|
893
950
|
progressByTaskRef = new Map();
|
|
894
|
-
constructor(logger, appConfigService, companionContext, planner, labellize, translate, emailTemplates, logoDeliberation, brandAccept, technicalDoc, foundationExecutor, spendMeter) {
|
|
951
|
+
constructor(logger, appConfigService, companionContext, planner, labellize, translate, emailTemplates, logoDeliberation, brandAccept, technicalDoc, foundationExecutor, spendMeter, dispatch) {
|
|
895
952
|
this.logger = logger;
|
|
896
953
|
this.appConfigService = appConfigService;
|
|
897
954
|
this.companionContext = companionContext;
|
|
@@ -905,6 +962,32 @@ let ApplicationBuildGenerationStepCompanionService = class ApplicationBuildGener
|
|
|
905
962
|
this.foundationExecutor = foundationExecutor;
|
|
906
963
|
this.spendMeter = spendMeter;
|
|
907
964
|
this.logDebug = this.logger.debugByType('ApplicationBuildGenerationStep');
|
|
965
|
+
dispatch?.registerGenerationStepClaimResolver?.((input) => this.resolveGenerationStepClaimRoots(input.generationStepRef, input.writableRoots));
|
|
966
|
+
}
|
|
967
|
+
/**
|
|
968
|
+
* The paths this step CLAIMS while it runs (#4020, {@link GENERATION_STEP_CLAIM_BASIS}), application-relative, or
|
|
969
|
+
* `undefined` when it claims nothing: a step it does not know, or one whose writes have not been traced. `writableRoots`
|
|
970
|
+
* is the step's write scope as its dispatch plan carries it ({@link resolveGenerationStepWritableRoots}).
|
|
971
|
+
*/
|
|
972
|
+
async resolveGenerationStepClaimRoots(generationStepRef, writableRoots) {
|
|
973
|
+
if (!Object.values(ApplicationBuildGenerationStep).includes(generationStepRef))
|
|
974
|
+
return undefined;
|
|
975
|
+
const saasRoot = this.companionContext.saasRoot;
|
|
976
|
+
switch (GENERATION_STEP_CLAIM_BASIS[generationStepRef]) {
|
|
977
|
+
case GenerationStepClaimBasis.NOT_AUDITED:
|
|
978
|
+
return undefined;
|
|
979
|
+
case GenerationStepClaimBasis.DECLARED_ROOTS:
|
|
980
|
+
return writableRoots.length === 0 ? undefined : writableRoots;
|
|
981
|
+
case GenerationStepClaimBasis.DECLARED_ROOTS_AND_LABEL_STATE: {
|
|
982
|
+
const i18nRoot = resolveApplicationI18nRoot(this.companionContext);
|
|
983
|
+
// No backend, no i18n root: where the labels go is unknown, so nothing is claimed.
|
|
984
|
+
if (i18nRoot === undefined)
|
|
985
|
+
return undefined;
|
|
986
|
+
return [...writableRoots, `${path.relative(saasRoot, i18nRoot).split(path.sep).join('/')}/`, WILDO_SAAS_LOCK_RELATIVE_PATH];
|
|
987
|
+
}
|
|
988
|
+
case GenerationStepClaimBasis.DECLARED_ROOTS_AND_BRAND_PROPAGATION:
|
|
989
|
+
return [...writableRoots, LOGO_DELIBERATION_STAGING_ROOT, ...(await resolveBrandPropagationWriteRoots(saasRoot))];
|
|
990
|
+
}
|
|
908
991
|
}
|
|
909
992
|
/** What each executed step spent, by the task object it ran — read by the step's row writer (`spentByGenerationStep`). */
|
|
910
993
|
stepSpendByTask = new WeakMap();
|
|
@@ -1027,12 +1110,16 @@ let ApplicationBuildGenerationStepCompanionService = class ApplicationBuildGener
|
|
|
1027
1110
|
*/
|
|
1028
1111
|
async resolveGenerationStepWritableRoots(task) {
|
|
1029
1112
|
const evidencePaths = await this.resolveGenerationStepEvidencePaths(task);
|
|
1030
|
-
const
|
|
1113
|
+
const generationStepRef = this.requireGenerationStepRef(task);
|
|
1114
|
+
const scope = GENERATION_STEP_WRITE_SCOPE[generationStepRef]
|
|
1031
1115
|
?? GenerationStepWriteScope.EVIDENCE_FILES;
|
|
1032
|
-
return [...new Set(
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1116
|
+
return [...new Set([
|
|
1117
|
+
...evidencePaths.map((evidencePath) => {
|
|
1118
|
+
const directory = evidencePath.split('/').slice(0, -1).join('/');
|
|
1119
|
+
return scope === GenerationStepWriteScope.EVIDENCE_FILES || directory === '' ? evidencePath : `${directory}/`;
|
|
1120
|
+
}),
|
|
1121
|
+
...(GENERATION_STEP_OUTPUT_ROOTS_BESIDE_EVIDENCE[generationStepRef] ?? []),
|
|
1122
|
+
])].sort();
|
|
1036
1123
|
}
|
|
1037
1124
|
/**
|
|
1038
1125
|
* What this task's generation step reads in the application's tree ({@link GENERATION_STEP_READ_ROOTS}, #3709), or
|
|
@@ -1746,12 +1833,14 @@ ApplicationBuildGenerationStepCompanionService = __decorate([
|
|
|
1746
1833
|
__param(10, inject(COMPANION_SERVICE_TYPES.FoundationExecutorService)),
|
|
1747
1834
|
__param(11, inject(COMPANION_SERVICE_TYPES.PlaybookSpendMeter)),
|
|
1748
1835
|
__param(11, optional()),
|
|
1836
|
+
__param(12, inject(COMPANION_SERVICE_TYPES.CodingAgentDispatchService)),
|
|
1837
|
+
__param(12, optional()),
|
|
1749
1838
|
__metadata("design:paramtypes", [Function, Function, Object, LabellingPlannerCompanionService,
|
|
1750
1839
|
LabellizeOrchestratorCompanionService,
|
|
1751
1840
|
TranslateOrchestratorCompanionService,
|
|
1752
1841
|
EmailTemplateCompanionService,
|
|
1753
1842
|
LogoDeliberationCompanionService,
|
|
1754
|
-
BrandAcceptCompanionService, Function, Function, Function])
|
|
1843
|
+
BrandAcceptCompanionService, Function, Function, Function, Function])
|
|
1755
1844
|
], ApplicationBuildGenerationStepCompanionService);
|
|
1756
1845
|
export { ApplicationBuildGenerationStepCompanionService };
|
|
1757
1846
|
//# sourceMappingURL=application-build-generation-step.companion.service.js.map
|