@wildo-ai/dev-companion 1.1.12 → 1.1.13
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/services/coding-agent-dispatch.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js +8 -6
- 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 +6 -0
- package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion.controller.js +13 -1
- package/dist/esm/companion-api/controllers/companion.controller.js.map +1 -1
- package/dist/esm/core/introspection/resources/creation-home-projection.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-home-projection.companion.js +7 -0
- package/dist/esm/core/introspection/resources/creation-home-projection.companion.js.map +1 -1
- package/dist/esm/core/introspection/resources/launch-blockers.companion.d.ts +5 -1
- package/dist/esm/core/introspection/resources/launch-blockers.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/launch-blockers.companion.js +37 -4
- package/dist/esm/core/introspection/resources/launch-blockers.companion.js.map +1 -1
- package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts +14 -0
- package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/companion-introspection.companion.service.js +48 -0
- package/dist/esm/core/introspection/services/companion-introspection.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/introspection-dependency-tree.companion.d.ts +128 -0
- package/dist/esm/core/introspection/services/introspection-dependency-tree.companion.d.ts.map +1 -0
- package/dist/esm/core/introspection/services/introspection-dependency-tree.companion.js +180 -0
- package/dist/esm/core/introspection/services/introspection-dependency-tree.companion.js.map +1 -0
- package/dist/esm/core/introspection/services/introspection-worker-pool.companion.d.ts +9 -0
- package/dist/esm/core/introspection/services/introspection-worker-pool.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/introspection-worker-pool.companion.js +25 -3
- package/dist/esm/core/introspection/services/introspection-worker-pool.companion.js.map +1 -1
- package/dist/esm/core/runtime/restart-drain.companion.d.ts +107 -0
- package/dist/esm/core/runtime/restart-drain.companion.d.ts.map +1 -0
- package/dist/esm/core/runtime/restart-drain.companion.js +237 -0
- package/dist/esm/core/runtime/restart-drain.companion.js.map +1 -0
- package/dist/esm/executions/services/companion-executions.companion.service.d.ts +18 -1
- package/dist/esm/executions/services/companion-executions.companion.service.d.ts.map +1 -1
- package/dist/esm/executions/services/companion-executions.companion.service.js +34 -8
- package/dist/esm/executions/services/companion-executions.companion.service.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts +40 -0
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js +13 -0
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.fr.d.ts +40 -0
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.fr.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.fr.js +40 -0
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.fr.js.map +1 -1
- package/dist/esm/i18n/system_enums/application-creation.en.d.ts +5 -0
- package/dist/esm/i18n/system_enums/application-creation.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/application-creation.en.js +6 -0
- package/dist/esm/i18n/system_enums/application-creation.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/application-creation.fr.d.ts +5 -0
- package/dist/esm/i18n/system_enums/application-creation.fr.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/application-creation.fr.js +5 -0
- package/dist/esm/i18n/system_enums/application-creation.fr.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-build.en.d.ts +2 -0
- package/dist/esm/i18n/system_enums/workbench-build.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-build.en.js +2 -0
- package/dist/esm/i18n/system_enums/workbench-build.en.js.map +1 -1
- package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts +5 -1
- package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js +5 -1
- package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts +12 -0
- package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-run-record.models.js +9 -0
- package/dist/esm/meta-workflows/models/playbook-run-record.models.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts +80 -4
- 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 +235 -42
- 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 +56 -3
- 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 +182 -33
- 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 +58 -0
- 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 +116 -2
- 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 +12 -0
- 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 +31 -7
- package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/creation-run-report.companion.service.d.ts +2 -2
- 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 +10 -8
- 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 +67 -2
- 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 +243 -48
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
- package/package.json +17 -17
|
@@ -193,6 +193,17 @@ const TASK_STATUS_GUARD_ATTEMPTS = 3;
|
|
|
193
193
|
const BUILD_TASK_RUN_ROWS_LIMIT = 200;
|
|
194
194
|
/** The longest one execution listing is shared, whatever else happens (#3204, {@link CompanionExecutionsCompanionService}). */
|
|
195
195
|
const EXECUTION_LISTING_HOLD_MS = 3_000;
|
|
196
|
+
/**
|
|
197
|
+
* The stored fields an actor-execution listing leaves out unless its caller asks for whole rows (#3204,
|
|
198
|
+
* `RepositoryOptions.omitStoredFields`).
|
|
199
|
+
*
|
|
200
|
+
* `standaloneTasks.input.baseline.files` is a coding run's dirty-file map at admission: measured on the reference creation
|
|
201
|
+
* (run 42886943490), 15.7 KB of a 36 KB coding row, over 986 rows, re-read by the build loop's 2,000-row listings several
|
|
202
|
+
* times a minute — which kept the companion's thread blocked about 1.5 s in every 30. No reader of a LISTING uses it: the
|
|
203
|
+
* change-set and recovery paths read the baseline from the task row (`getActorTask`) or hold it in memory, and the
|
|
204
|
+
* listing readers take only `baseline.headSha` / `capturedAt`. The HTTP listing passes `[]` and keeps returning whole rows.
|
|
205
|
+
*/
|
|
206
|
+
export const ACTOR_EXECUTION_LISTING_OMITTED_FIELDS = ['standaloneTasks.input.baseline.files'];
|
|
196
207
|
let CompanionExecutionsCompanionService = class CompanionExecutionsCompanionService {
|
|
197
208
|
logger;
|
|
198
209
|
errorBuilder;
|
|
@@ -837,7 +848,11 @@ let CompanionExecutionsCompanionService = class CompanionExecutionsCompanionServ
|
|
|
837
848
|
throw error;
|
|
838
849
|
}
|
|
839
850
|
}
|
|
840
|
-
async listActorExecutions(query, _sessionContext
|
|
851
|
+
async listActorExecutions(query, _sessionContext,
|
|
852
|
+
/**
|
|
853
|
+
* Stored fields the rows leave out. Defaults to {@link ACTOR_EXECUTION_LISTING_OMITTED_FIELDS}; pass `[]` for whole rows.
|
|
854
|
+
*/
|
|
855
|
+
readOptions = {}) {
|
|
841
856
|
const traceStep = this.createOperationTraceStep(_sessionContext, "list-actor-executions");
|
|
842
857
|
await this.traceOperationStart({
|
|
843
858
|
sessionContext: _sessionContext,
|
|
@@ -849,7 +864,7 @@ let CompanionExecutionsCompanionService = class CompanionExecutionsCompanionServ
|
|
|
849
864
|
artifactContent: query,
|
|
850
865
|
});
|
|
851
866
|
try {
|
|
852
|
-
const executions = await this.listExecutions(WILDO_APPLICATION_ACTOR_SYSTEM_EXECUTIONS_RESOURCE_TYPE, query, _sessionContext);
|
|
867
|
+
const executions = await this.listExecutions(WILDO_APPLICATION_ACTOR_SYSTEM_EXECUTIONS_RESOURCE_TYPE, query, _sessionContext, readOptions.omitStoredFields ?? ACTOR_EXECUTION_LISTING_OMITTED_FIELDS);
|
|
853
868
|
await this.traceOperationSuccess({
|
|
854
869
|
sessionContext: _sessionContext,
|
|
855
870
|
step: traceStep,
|
|
@@ -1498,14 +1513,15 @@ let CompanionExecutionsCompanionService = class CompanionExecutionsCompanionServ
|
|
|
1498
1513
|
* written since its read began. A few seconds' ceiling bounds anything this service did not write. Each caller gets its
|
|
1499
1514
|
* own array; the rows themselves are shared, read-only by contract.
|
|
1500
1515
|
*/
|
|
1501
|
-
async listExecutions(resourceType, query, sessionContext) {
|
|
1502
|
-
|
|
1516
|
+
async listExecutions(resourceType, query, sessionContext, omitStoredFields = []) {
|
|
1517
|
+
// A listing that left fields out is not the one a whole-row caller asked for, so the omission is part of the key.
|
|
1518
|
+
const key = `${resourceType}:${JSON.stringify(query)}:${JSON.stringify(omitStoredFields)}`;
|
|
1503
1519
|
const generation = this.executionWriteGeneration ?? 0;
|
|
1504
1520
|
const listings = (this.executionListings ??= new Map());
|
|
1505
1521
|
const held = listings.get(key);
|
|
1506
1522
|
if (held !== undefined && held.generation === generation && Date.now() < held.heldUntilMs)
|
|
1507
1523
|
return [...(await held.rows)];
|
|
1508
|
-
const rows = this.readExecutionListing(resourceType, query, sessionContext);
|
|
1524
|
+
const rows = this.readExecutionListing(resourceType, query, sessionContext, omitStoredFields);
|
|
1509
1525
|
listings.set(key, { generation, heldUntilMs: Date.now() + EXECUTION_LISTING_HOLD_MS, rows });
|
|
1510
1526
|
// A failed read is held by nobody.
|
|
1511
1527
|
rows.catch(() => {
|
|
@@ -1514,7 +1530,7 @@ let CompanionExecutionsCompanionService = class CompanionExecutionsCompanionServ
|
|
|
1514
1530
|
});
|
|
1515
1531
|
return [...(await rows)];
|
|
1516
1532
|
}
|
|
1517
|
-
async readExecutionListing(resourceType, query, sessionContext) {
|
|
1533
|
+
async readExecutionListing(resourceType, query, sessionContext, omitStoredFields = []) {
|
|
1518
1534
|
const ownership = await this.resolveOwnership(sessionContext);
|
|
1519
1535
|
const repository = this.repositoriesRegistry.getRepositoryOrThrow(resourceType);
|
|
1520
1536
|
const executionContext = await this.createInternalExecutionContext(resourceType, CoreResourceOperation.LIST, sessionContext);
|
|
@@ -1527,11 +1543,21 @@ let CompanionExecutionsCompanionService = class CompanionExecutionsCompanionServ
|
|
|
1527
1543
|
...(query.finishedAfter ? { finishedAt: { $gt: new Date(query.finishedAfter) } } : {}),
|
|
1528
1544
|
};
|
|
1529
1545
|
// The newest `query.limit` rows, read newest-first FROM THE DATABASE, page by page (#2186): see `readNewestRowsByPage`.
|
|
1530
|
-
const listed = (await readNewestRowsByPage(async (listOptions) => (await repository.list(executionContext, filter, {
|
|
1546
|
+
const listed = (await readNewestRowsByPage(async (listOptions) => (await repository.list(executionContext, filter, {
|
|
1547
|
+
paginated: true,
|
|
1548
|
+
listOptions,
|
|
1549
|
+
...(omitStoredFields.length > 0 ? { omitStoredFields } : {}),
|
|
1550
|
+
})).data, (rows) => rows.length >= query.limit))
|
|
1531
1551
|
.sort(newestUpdatedFirst)
|
|
1532
1552
|
.slice(0, query.limit);
|
|
1533
1553
|
const projected = listed.map(toExecutionWithTaskSnapshot);
|
|
1534
|
-
|
|
1554
|
+
/*
|
|
1555
|
+
* The compaction writes each projected `standaloneTasks` back WHOLE, so it runs only on rows read whole: written back
|
|
1556
|
+
* from a row that left a field out, it would delete that field from the stored row. A whole-row listing (the HTTP one)
|
|
1557
|
+
* still compacts.
|
|
1558
|
+
*/
|
|
1559
|
+
if (omitStoredFields.length === 0)
|
|
1560
|
+
await this.compactStoredTaskSnapshots(resourceType, ownership.wildoApplicationId, listed, projected);
|
|
1535
1561
|
return projected;
|
|
1536
1562
|
}
|
|
1537
1563
|
/**
|