@wildo-ai/dev-companion 1.1.14 → 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 +233 -6
- 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 +316 -13
- 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 +48 -2
- 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 +41 -3
- 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/shared-tree-reconciliation.models.d.ts +6 -0
- package/dist/esm/claude-cli/models/shared-tree-reconciliation.models.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/shared-tree-reconciliation.models.js.map +1 -1
- package/dist/esm/claude-cli/models/verification-tool-availability.models.d.ts +19 -5
- package/dist/esm/claude-cli/models/verification-tool-availability.models.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/verification-tool-availability.models.js +17 -5
- package/dist/esm/claude-cli/models/verification-tool-availability.models.js.map +1 -1
- 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 +36 -1
- 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 +71 -16
- 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 +234 -9
- 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 +1073 -182
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts +14 -0
- package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/research-evidence-store.companion.js +35 -0
- package/dist/esm/claude-cli/services/research-evidence-store.companion.js.map +1 -1
- package/dist/esm/claude-cli/services/unrecorded-provider-directories.companion.d.ts +36 -0
- package/dist/esm/claude-cli/services/unrecorded-provider-directories.companion.d.ts.map +1 -0
- package/dist/esm/claude-cli/services/unrecorded-provider-directories.companion.js +134 -0
- package/dist/esm/claude-cli/services/unrecorded-provider-directories.companion.js.map +1 -0
- 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/services/translation-placement.companion.service.d.ts +3 -2
- package/dist/esm/core/introspection/services/translation-placement.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/translation-placement.companion.service.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/core/introspection/subprocess/companion-introspection-behavior-handlers.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js +24 -14
- package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js.map +1 -1
- package/dist/esm/core/introspection/workspace-element-index.companion.d.ts +42 -0
- package/dist/esm/core/introspection/workspace-element-index.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/workspace-element-index.companion.js +42 -0
- package/dist/esm/core/introspection/workspace-element-index.companion.js.map +1 -1
- package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts +53 -0
- package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/dev-compile-quiet.companion.js +119 -2
- package/dist/esm/core/runtime/dev-compile-quiet.companion.js.map +1 -1
- package/dist/esm/core/runtime/services/start-companion-application.service.d.ts.map +1 -1
- package/dist/esm/core/runtime/services/start-companion-application.service.js +13 -1
- package/dist/esm/core/runtime/services/start-companion-application.service.js.map +1 -1
- package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts +2 -2
- package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/utils/companion-platform-config.companion.js +6 -6
- package/dist/esm/core/runtime/utils/companion-platform-config.companion.js.map +1 -1
- package/dist/esm/email/services/email-template.companion.service.d.ts +5 -0
- package/dist/esm/email/services/email-template.companion.service.d.ts.map +1 -1
- package/dist/esm/email/services/email-template.companion.service.js +44 -11
- package/dist/esm/email/services/email-template.companion.service.js.map +1 -1
- package/dist/esm/email/utils/email-template-fs-discovery.utils.d.ts +26 -2
- package/dist/esm/email/utils/email-template-fs-discovery.utils.d.ts.map +1 -1
- package/dist/esm/email/utils/email-template-fs-discovery.utils.js +41 -2
- package/dist/esm/email/utils/email-template-fs-discovery.utils.js.map +1 -1
- package/dist/esm/email/utils/email-template-scanner-calls.companion.utils.d.ts +19 -0
- package/dist/esm/email/utils/email-template-scanner-calls.companion.utils.d.ts.map +1 -0
- package/dist/esm/email/utils/email-template-scanner-calls.companion.utils.js +171 -0
- package/dist/esm/email/utils/email-template-scanner-calls.companion.utils.js.map +1 -0
- package/dist/esm/email/utils/module-email-root.companion.utils.d.ts +75 -0
- package/dist/esm/email/utils/module-email-root.companion.utils.d.ts.map +1 -0
- package/dist/esm/email/utils/module-email-root.companion.utils.js +162 -0
- package/dist/esm/email/utils/module-email-root.companion.utils.js.map +1 -0
- 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/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.js +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.fr.d.ts +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.fr.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.fr.js +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.fr.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchAspects.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchAspects.en.js +4 -0
- package/dist/esm/i18n/resources/workbenchAspects.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts +35 -0
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js +12 -0
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.fr.d.ts +536 -531
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.fr.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.fr.js +536 -531
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.fr.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-build.en.d.ts +3 -3
- package/dist/esm/i18n/system_enums/workbench-build.en.js +3 -3
- package/dist/esm/i18n/system_enums/workbench-build.en.js.map +1 -1
- package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.js +7 -3
- package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.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 +21 -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 +117 -3
- 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 +98 -24
- 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 +439 -93
- 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 +21 -8
- 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 +74 -12
- 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 +39 -3
- 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 +224 -48
- 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/build-task-brief-application-facts.companion.d.ts +12 -0
- package/dist/esm/meta-workflows/services/build-task-brief-application-facts.companion.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/build-task-brief-application-facts.companion.js +30 -1
- package/dist/esm/meta-workflows/services/build-task-brief-application-facts.companion.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 +21 -2
- 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 +71 -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 +219 -17
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/provider-registry-brief.companion.utils.d.ts +55 -1
- package/dist/esm/meta-workflows/services/provider-registry-brief.companion.utils.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/provider-registry-brief.companion.utils.js +157 -10
- package/dist/esm/meta-workflows/services/provider-registry-brief.companion.utils.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/module-layout/module-layout-convention.companion.d.ts +158 -0
- package/dist/esm/module-layout/module-layout-convention.companion.d.ts.map +1 -0
- package/dist/esm/module-layout/module-layout-convention.companion.js +272 -0
- package/dist/esm/module-layout/module-layout-convention.companion.js.map +1 -0
- package/dist/esm/module-layout/module-layout-inspection.companion.d.ts +42 -0
- package/dist/esm/module-layout/module-layout-inspection.companion.d.ts.map +1 -0
- package/dist/esm/module-layout/module-layout-inspection.companion.js +290 -0
- package/dist/esm/module-layout/module-layout-inspection.companion.js.map +1 -0
- package/dist/esm/module-layout/module-source-files.companion.d.ts +3 -0
- package/dist/esm/module-layout/module-source-files.companion.d.ts.map +1 -0
- package/dist/esm/module-layout/module-source-files.companion.js +45 -0
- package/dist/esm/module-layout/module-source-files.companion.js.map +1 -0
- 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
|
@@ -50,7 +50,14 @@ export declare enum AcceptRefusalReason {
|
|
|
50
50
|
* task read as closed, declined or approved by a person who never decided. No `force` passes it: the remedy is the
|
|
51
51
|
* decision door, which commits it under the person's name. The reader would not honour it either.
|
|
52
52
|
*/
|
|
53
|
-
PERSON_DECISION_RECORD = "person_decision_record"
|
|
53
|
+
PERSON_DECISION_RECORD = "person_decision_record",
|
|
54
|
+
/**
|
|
55
|
+
* The run's file imports a module this same accept left out (#4000), so committing it would leave HEAD importing a
|
|
56
|
+
* module no commit holds. Left out with it, by name, and the rest of the run commits. Before this, the import
|
|
57
|
+
* closure refused the whole run and named the run itself as the one to accept first, which no one could ever do: a
|
|
58
|
+
* foundation run whose generated file a tool had rewritten was never committed, nor its whole scaffold.
|
|
59
|
+
*/
|
|
60
|
+
IMPORTS_A_LEFT_OUT_PATH = "imports_a_left_out_path"
|
|
54
61
|
}
|
|
55
62
|
/** One path a door left uncommitted, and why. */
|
|
56
63
|
export interface AcceptRefusal {
|
|
@@ -62,6 +69,14 @@ export interface AcceptRefusal {
|
|
|
62
69
|
readonly playbookRef: string;
|
|
63
70
|
};
|
|
64
71
|
}
|
|
72
|
+
/**
|
|
73
|
+
* The files of `toCommit` whose import is a module the same accept left out (#4000): what to leave out with it. Empty
|
|
74
|
+
* when no unresolved import is of a left-out module, so the refusal stands as it is.
|
|
75
|
+
*/
|
|
76
|
+
export declare function importersOfLeftOutModules(unresolved: readonly {
|
|
77
|
+
readonly importer: string;
|
|
78
|
+
readonly workingTreeModule?: string;
|
|
79
|
+
}[], refused: readonly AcceptRefusal[], toCommit: readonly string[]): string[];
|
|
65
80
|
/**
|
|
66
81
|
* A file a recorded coding run left in the tree, uncommitted and still exactly as that run left it, while no run of its
|
|
67
82
|
* task is live (#3267). Under a reviewing posture nothing automatic is coming for it (under a committing one, the next
|
|
@@ -238,6 +253,13 @@ export declare class AcceptedChangeCommitCompanionService {
|
|
|
238
253
|
commitBuildCheckpoint(input: {
|
|
239
254
|
readonly origin: AcceptOrigin.WAVE_RECONCILIATION | AcceptOrigin.INTERRUPTED_RUN_RECOVERY | AcceptOrigin.OPERATOR;
|
|
240
255
|
readonly liveTaskIds: ReadonlySet<string>;
|
|
256
|
+
/**
|
|
257
|
+
* Roots no commit may carry now (#4020): what a generation step still running has claimed (directories with their
|
|
258
|
+
* slash, or single files). Every automatic checkpoint takes the lock a step holds for its whole window, so only the
|
|
259
|
+
* door that takes no lock passes these (a person's `POST /build/checkpoint`). A path under one is left out and listed,
|
|
260
|
+
* like a person's decision record; the step's own closing checkpoint commits it. Absent, nothing is left out.
|
|
261
|
+
*/
|
|
262
|
+
readonly excludedPathPrefixes?: readonly string[];
|
|
241
263
|
}): Promise<BuildCheckpointOutcome | undefined>;
|
|
242
264
|
/** The commit that last changed any of these paths, or HEAD when git has no history for them (or none are given). */
|
|
243
265
|
private lastCommitTouching;
|
|
@@ -345,6 +367,19 @@ export declare class AcceptedChangeCommitCompanionService {
|
|
|
345
367
|
* A file the run created and HEAD lacks merges from empty, which yields the run's own bytes.
|
|
346
368
|
*/
|
|
347
369
|
private mergeRunChangeOntoHead;
|
|
370
|
+
/**
|
|
371
|
+
* The playbook runs {@link acceptPendingPlaybookRuns} would commit, oldest first: not yet accepted, not held for a
|
|
372
|
+
* person's request (research evidence, #2419), and not a run that failed after writing (#3237: a half-applied
|
|
373
|
+
* composition is a person's to accept or revert, never the posture's). One list, so the question below and the accept
|
|
374
|
+
* cannot disagree about what is pending.
|
|
375
|
+
*/
|
|
376
|
+
private listPlaybookRunsTheAutomaticAcceptTakes;
|
|
377
|
+
/**
|
|
378
|
+
* Whether {@link acceptPendingPlaybookRuns} has anything to commit right now (#4020). A concurrent coding run takes the
|
|
379
|
+
* whole-tree lock before its baseline to make that commit; when the answer is no it only waits for the lock's holder, and
|
|
380
|
+
* not at all when that holder is a generation step or a re-check whose claimed paths its scope does not meet.
|
|
381
|
+
*/
|
|
382
|
+
hasPlaybookRunsTheAutomaticAcceptTakes(): Promise<boolean>;
|
|
348
383
|
/**
|
|
349
384
|
* Accept EVERY playbook run whose writes are not yet accepted — the third site of #1534's invariant,
|
|
350
385
|
* run by the coding dispatch inside its worktree window, immediately before it takes a baseline.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accepted-change-commit.companion.service.d.ts","sourceRoot":"","sources":["../../../../src/claude-cli/services/accepted-change-commit.companion.service.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAIhE,OAAO,EACL,YAAY,EAMb,MAAM,oDAAoD,CAAC;AAG5D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAE7E,OAAO,EAAqE,wCAAwC,EAAgC,MAAM,6EAA6E,CAAC;AAGxO,OAAO,EAAE,sCAAsC,EAAwC,MAAM,+CAA+C,CAAC;AAM7I,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,kEAAkE,CAAC;AAE5H,OAAO,EAAkC,KAAK,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;
|
|
1
|
+
{"version":3,"file":"accepted-change-commit.companion.service.d.ts","sourceRoot":"","sources":["../../../../src/claude-cli/services/accepted-change-commit.companion.service.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAIhE,OAAO,EACL,YAAY,EAMb,MAAM,oDAAoD,CAAC;AAG5D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAE7E,OAAO,EAAqE,wCAAwC,EAAgC,MAAM,6EAA6E,CAAC;AAGxO,OAAO,EAAE,sCAAsC,EAAwC,MAAM,+CAA+C,CAAC;AAM7I,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,kEAAkE,CAAC;AAE5H,OAAO,EAAkC,KAAK,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AAwGzH;;;;GAIG;AACH,oBAAY,mBAAmB;IAC7B,OAAO,YAAY;IACnB,KAAK,UAAU;CAChB;AAuHD,oBAAY,mBAAmB;IAC7B,uGAAuG;IACvG,mCAAmC,wCAAwC;IAC3E,iDAAiD;IACjD,oBAAoB,yBAAyB;IAC7C,sGAAsG;IACtG,YAAY,iBAAiB;IAC7B;;;;;OAKG;IACH,sBAAsB,2BAA2B;IACjD;;;;;;;OAOG;IACH,kBAAkB,uBAAuB;IACzC;;;;;OAKG;IACH,qBAAqB,0BAA0B;IAC/C;;;;;OAKG;IACH,sBAAsB,2BAA2B;IACjD;;;;;OAKG;IACH,uBAAuB,4BAA4B;CACpD;AAED,iDAAiD;AACjD,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,mBAAmB,CAAC;I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,MAAM,CAAC,EAAE,YAAY,CAAC;KAChC,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAuCxC;;;;;;;;OAQG;IACU,oBAAoB,CAAC,KAAK,EAAE;QACvC,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;QAClC,kCAAkC;QAClC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;QACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;QACzB,QAAQ,CAAC,KAAK,EAAE,mBAAmB,CAAC;QACpC,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC;QAC9B;;;;WAIG;QACH,QAAQ,CAAC,yBAAyB,CAAC,EAAE,IAAI,CAAC;QAC1C,8HAA8H;QAC9H,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;KAC9B,GAAG,OAAO,CAAC,IAAI,CAAC,2BAA2B,EAAE,cAAc,CAAC,GAAG;QAAE,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;IAe/F,wGAAwG;YAC1F,OAAO;CAuCtB"}
|
|
@@ -35,6 +35,7 @@ import { serializeDossierWrite } from '../../meta-workflows/services/dossier-wri
|
|
|
35
35
|
import { closeCommitOverRelativeImports } from './accepted-change-import-closure.companion.js';
|
|
36
36
|
import { APPLICATION_CREATION_AUTONOMY_POSTURE } from '../../meta-workflows/models/playbook-run-checkpoint.models.js';
|
|
37
37
|
import { isBuildTaskDecisionsPath } from '../../meta-workflows/models/build-task-decisions-path.models.js';
|
|
38
|
+
import { isUnderWriteRoots } from '../models/workspace-path-claims.models.js';
|
|
38
39
|
const execFileAsync = promisify(execFile);
|
|
39
40
|
/**
|
|
40
41
|
* ACCEPTANCE as a commit, from the workbench (#1454, Step 7).
|
|
@@ -285,6 +286,13 @@ export var AcceptRefusalReason;
|
|
|
285
286
|
* decision door, which commits it under the person's name. The reader would not honour it either.
|
|
286
287
|
*/
|
|
287
288
|
AcceptRefusalReason["PERSON_DECISION_RECORD"] = "person_decision_record";
|
|
289
|
+
/**
|
|
290
|
+
* The run's file imports a module this same accept left out (#4000), so committing it would leave HEAD importing a
|
|
291
|
+
* module no commit holds. Left out with it, by name, and the rest of the run commits. Before this, the import
|
|
292
|
+
* closure refused the whole run and named the run itself as the one to accept first, which no one could ever do: a
|
|
293
|
+
* foundation run whose generated file a tool had rewritten was never committed, nor its whole scaffold.
|
|
294
|
+
*/
|
|
295
|
+
AcceptRefusalReason["IMPORTS_A_LEFT_OUT_PATH"] = "imports_a_left_out_path";
|
|
288
296
|
})(AcceptRefusalReason || (AcceptRefusalReason = {}));
|
|
289
297
|
/** A refusal as a commit message or an error names it: the path, the reason, and the playbook run that owns it when one does. */
|
|
290
298
|
function describeRefusal(entry, taskRef) {
|
|
@@ -300,6 +308,17 @@ function describeRefusal(entry, taskRef) {
|
|
|
300
308
|
: '';
|
|
301
309
|
return `${entry.path} — ${entry.reason}${door}${entry.playbookRun ? ` (playbook run ${entry.playbookRun.runId}, ${entry.playbookRun.playbookRef}: accept it with \`wildo creation accept ${entry.playbookRun.runId}\`)` : ''}`;
|
|
302
310
|
}
|
|
311
|
+
/**
|
|
312
|
+
* The files of `toCommit` whose import is a module the same accept left out (#4000): what to leave out with it. Empty
|
|
313
|
+
* when no unresolved import is of a left-out module, so the refusal stands as it is.
|
|
314
|
+
*/
|
|
315
|
+
export function importersOfLeftOutModules(unresolved, refused, toCommit) {
|
|
316
|
+
const leftOut = new Set(refused.map((entry) => entry.path));
|
|
317
|
+
return [...new Set(unresolved
|
|
318
|
+
.filter((entry) => entry.workingTreeModule !== undefined && leftOut.has(entry.workingTreeModule))
|
|
319
|
+
.map((entry) => entry.importer))]
|
|
320
|
+
.filter((importer) => toCommit.includes(importer));
|
|
321
|
+
}
|
|
303
322
|
/**
|
|
304
323
|
* Move every accepted path an unaccepted playbook run recorded to the refusals (#3221). Applied by every door that
|
|
305
324
|
* commits a coding run's writes, so a playbook run's output is never committed under a build task's name: it waits
|
|
@@ -607,7 +626,9 @@ let AcceptedChangeCommitCompanionService = class AcceptedChangeCommitCompanionSe
|
|
|
607
626
|
const excludedPaths = changed.map((entry) => entry.path).filter((filePath) => isBuildTaskDecisionsPath(filePath, this.companionContext)
|
|
608
627
|
|| playbookOwners.has(filePath)
|
|
609
628
|
// The research-evidence store is accepted only on a person's request (#2419), whether or not a run record still owns it.
|
|
610
|
-
|| filePath.startsWith(`${RESEARCH_EVIDENCE_RELATIVE_ROOT}/`)
|
|
629
|
+
|| filePath.startsWith(`${RESEARCH_EVIDENCE_RELATIVE_ROOT}/`)
|
|
630
|
+
// A generation step still writing there (#4020): its output is half-written until its own window ends.
|
|
631
|
+
|| isUnderWriteRoots(filePath, input.excludedPathPrefixes ?? []));
|
|
611
632
|
const excluded = new Set(excludedPaths);
|
|
612
633
|
const stillThere = await Promise.all(changed.map(async (entry) => (!entry.untracked || await stat(path.resolve(this.companionContext.saasRoot, entry.path)).then(() => true, () => false))));
|
|
613
634
|
const paths = changed.filter((entry, index) => !excluded.has(entry.path) && stillThere[index]).map((entry) => entry.path);
|
|
@@ -626,7 +647,7 @@ let AcceptedChangeCommitCompanionService = class AcceptedChangeCommitCompanionSe
|
|
|
626
647
|
'The working tree the build\'s runs share is committed as it stands. The runs named below settled since the previous checkpoint; which run wrote which file is in each run\'s own write record.',
|
|
627
648
|
'',
|
|
628
649
|
...runs.map((record) => `Run: ${record.taskRef} (run ${record.taskId}, recorded ${record.at})`),
|
|
629
|
-
...(excludedPaths.length > 0 ? ['', 'Left out (a person\'s decision record, an unaccepted playbook run\'s file, or
|
|
650
|
+
...(excludedPaths.length > 0 ? ['', 'Left out (a person\'s decision record, an unaccepted playbook run\'s file, research evidence, or a generation step\'s output still being written):', ...excludedPaths.map((filePath) => `- ${filePath}`)] : []),
|
|
630
651
|
'',
|
|
631
652
|
...runs.map((record) => `${CODING_RUN_TRAILER}: ${record.taskId}`),
|
|
632
653
|
].join('\n');
|
|
@@ -1014,7 +1035,7 @@ let AcceptedChangeCommitCompanionService = class AcceptedChangeCommitCompanionSe
|
|
|
1014
1035
|
if (accepted.length === 0) {
|
|
1015
1036
|
throw new NothingToAcceptError(`Nothing of run ${input.runId} can be accepted: ${refused.map((entry) => `${entry.path} (${entry.reason})`).join(', ')}.`, refused);
|
|
1016
1037
|
}
|
|
1017
|
-
const
|
|
1038
|
+
const messageFor = (accepted, refused) => [
|
|
1018
1039
|
`${diff.playbookRef}: accept the run's writes`,
|
|
1019
1040
|
'',
|
|
1020
1041
|
`${ACCEPT_ORIGIN_SENTENCE[input.origin ?? AcceptOrigin.OPERATOR]}: the writes of playbook run ${diff.runId} on ${diff.at}.`,
|
|
@@ -1045,10 +1066,32 @@ let AcceptedChangeCommitCompanionService = class AcceptedChangeCommitCompanionSe
|
|
|
1045
1066
|
* Closed under its imports (#2332): the aggregate files a run wires into also carry the lines the dossier
|
|
1046
1067
|
* landing added, so the dossier the run read is carried with it, and any other module the commit would
|
|
1047
1068
|
* import without holding refuses the accept by name rather than leaving HEAD uncompilable.
|
|
1069
|
+
*
|
|
1070
|
+
* One exception, kept partial like the rest of this accept (#4000): a module THIS accept left out above (edited
|
|
1071
|
+
* since the run) leaves out the run's files that import it too, refused by name, until the set closes. Any other
|
|
1072
|
+
* unresolved import still refuses the whole accept.
|
|
1048
1073
|
*/
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1074
|
+
let toCommit = [...accepted];
|
|
1075
|
+
for (;;) {
|
|
1076
|
+
try {
|
|
1077
|
+
const outcome = await this.commitPaths(toCommit, messageFor(toCommit, refused), input.origin ?? AcceptOrigin.OPERATOR, ImportClosurePolicy.REFUSE_UNRESOLVED, committedContent);
|
|
1078
|
+
await this.playbookRunWrites.markAccepted(input.runId, outcome.commitSha, new Date().toISOString());
|
|
1079
|
+
return { ...outcome, refusedPaths: refused };
|
|
1080
|
+
}
|
|
1081
|
+
catch (error) {
|
|
1082
|
+
if (!(error instanceof AcceptWouldLeaveUnresolvedImportError))
|
|
1083
|
+
throw error;
|
|
1084
|
+
const importersOfLeftOut = importersOfLeftOutModules(error.unresolved, refused, toCommit);
|
|
1085
|
+
if (importersOfLeftOut.length === 0)
|
|
1086
|
+
throw error;
|
|
1087
|
+
for (const importer of importersOfLeftOut)
|
|
1088
|
+
refused.push({ path: importer, reason: AcceptRefusalReason.IMPORTS_A_LEFT_OUT_PATH });
|
|
1089
|
+
toCommit = toCommit.filter((filePath) => !importersOfLeftOut.includes(filePath));
|
|
1090
|
+
if (toCommit.length === 0) {
|
|
1091
|
+
throw new NothingToAcceptError(`Nothing of run ${input.runId} can be accepted: ${refused.map((entry) => `${entry.path} (${entry.reason})`).join(', ')}.`, refused);
|
|
1092
|
+
}
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1052
1095
|
}
|
|
1053
1096
|
/**
|
|
1054
1097
|
* A run's change to one file (`previousContent → writtenContent`), applied to the file as HEAD holds it (#2418).
|
|
@@ -1082,6 +1125,27 @@ let AcceptedChangeCommitCompanionService = class AcceptedChangeCommitCompanionSe
|
|
|
1082
1125
|
await rm(directory, { recursive: true, force: true }).catch(() => undefined);
|
|
1083
1126
|
}
|
|
1084
1127
|
}
|
|
1128
|
+
/**
|
|
1129
|
+
* The playbook runs {@link acceptPendingPlaybookRuns} would commit, oldest first: not yet accepted, not held for a
|
|
1130
|
+
* person's request (research evidence, #2419), and not a run that failed after writing (#3237: a half-applied
|
|
1131
|
+
* composition is a person's to accept or revert, never the posture's). One list, so the question below and the accept
|
|
1132
|
+
* cannot disagree about what is pending.
|
|
1133
|
+
*/
|
|
1134
|
+
async listPlaybookRunsTheAutomaticAcceptTakes() {
|
|
1135
|
+
return (await this.playbookRunWrites.list())
|
|
1136
|
+
.filter((record) => record.acceptedCommitSha === undefined)
|
|
1137
|
+
.filter((record) => record.acceptOnRequestOnly !== true)
|
|
1138
|
+
.filter((record) => record.landingFailed !== true)
|
|
1139
|
+
.sort((left, right) => left.at.localeCompare(right.at));
|
|
1140
|
+
}
|
|
1141
|
+
/**
|
|
1142
|
+
* Whether {@link acceptPendingPlaybookRuns} has anything to commit right now (#4020). A concurrent coding run takes the
|
|
1143
|
+
* whole-tree lock before its baseline to make that commit; when the answer is no it only waits for the lock's holder, and
|
|
1144
|
+
* not at all when that holder is a generation step or a re-check whose claimed paths its scope does not meet.
|
|
1145
|
+
*/
|
|
1146
|
+
async hasPlaybookRunsTheAutomaticAcceptTakes() {
|
|
1147
|
+
return (await this.listPlaybookRunsTheAutomaticAcceptTakes()).length > 0;
|
|
1148
|
+
}
|
|
1085
1149
|
/**
|
|
1086
1150
|
* Accept EVERY playbook run whose writes are not yet accepted — the third site of #1534's invariant,
|
|
1087
1151
|
* run by the coding dispatch inside its worktree window, immediately before it takes a baseline.
|
|
@@ -1108,16 +1172,7 @@ let AcceptedChangeCommitCompanionService = class AcceptedChangeCommitCompanionSe
|
|
|
1108
1172
|
* which is how the unstamped backlog of a run carried by hand is absorbed on the first pass.
|
|
1109
1173
|
*/
|
|
1110
1174
|
async acceptPendingPlaybookRuns(origin) {
|
|
1111
|
-
const pending =
|
|
1112
|
-
.filter((record) => record.acceptedCommitSha === undefined)
|
|
1113
|
-
// Research evidence waits for a person's accept (#2419): never carried by the automatic commit.
|
|
1114
|
-
.filter((record) => record.acceptOnRequestOnly !== true)
|
|
1115
|
-
/*
|
|
1116
|
-
* A run that FAILED after writing (#3237): its record makes its writes attributable and keeps them out of a
|
|
1117
|
-
* coding run's commit, but a half-applied composition is a person's to accept or revert, never the posture's.
|
|
1118
|
-
*/
|
|
1119
|
-
.filter((record) => record.landingFailed !== true)
|
|
1120
|
-
.sort((left, right) => left.at.localeCompare(right.at));
|
|
1175
|
+
const pending = await this.listPlaybookRunsTheAutomaticAcceptTakes();
|
|
1121
1176
|
let accepted = 0;
|
|
1122
1177
|
let superseded = 0;
|
|
1123
1178
|
let editedOutsideRuns = 0;
|