@wildo-ai/dev-companion 1.1.8 → 1.1.9
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/bin/companion-supervisor.d.mts +33 -0
- package/bin/companion-supervisor.mjs +174 -0
- package/bin/wildo-dev-companion-supervised.mjs +16 -0
- package/dist/esm/brand/models/logo-generation.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-generation.actors-system.definitions.js +8 -2
- package/dist/esm/brand/models/logo-generation.actors-system.definitions.js.map +1 -1
- package/dist/esm/brand/models/logo-judge.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-judge.actors-system.definitions.js +8 -2
- package/dist/esm/brand/models/logo-judge.actors-system.definitions.js.map +1 -1
- package/dist/esm/brand/services/brand-accept.companion.service.d.ts +1 -1
- package/dist/esm/brand/services/brand-accept.companion.service.d.ts.map +1 -1
- package/dist/esm/brand/services/brand-accept.companion.service.js +9 -11
- package/dist/esm/brand/services/brand-accept.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.d.ts +21 -0
- package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.js +33 -1
- package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.js.map +1 -1
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts +41 -2
- 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 +43 -1
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -1
- package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts +57 -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 +75 -1
- 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 +90 -5
- 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 +242 -22
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js.map +1 -1
- package/dist/esm/companion-api/companion-api.schemas.d.ts +23 -2
- package/dist/esm/companion-api/companion-api.schemas.d.ts.map +1 -1
- package/dist/esm/companion-api/companion-api.schemas.js +13 -2
- package/dist/esm/companion-api/companion-api.schemas.js.map +1 -1
- package/dist/esm/companion-api/controllers/companion.controller.d.ts +63 -7
- package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion.controller.js +315 -39
- package/dist/esm/companion-api/controllers/companion.controller.js.map +1 -1
- package/dist/esm/core/config/primary-language.companion.utils.d.ts +5 -4
- package/dist/esm/core/config/primary-language.companion.utils.d.ts.map +1 -1
- package/dist/esm/core/config/primary-language.companion.utils.js +5 -4
- package/dist/esm/core/config/primary-language.companion.utils.js.map +1 -1
- package/dist/esm/core/context/application-module-generations.companion.d.ts +103 -0
- package/dist/esm/core/context/application-module-generations.companion.d.ts.map +1 -0
- package/dist/esm/core/context/application-module-generations.companion.js +313 -0
- package/dist/esm/core/context/application-module-generations.companion.js.map +1 -0
- package/dist/esm/core/context/companion-package-loaders.companion.d.ts +19 -19
- package/dist/esm/core/context/companion-package-loaders.companion.d.ts.map +1 -1
- package/dist/esm/core/context/companion-package-loaders.companion.js +52 -40
- package/dist/esm/core/context/companion-package-loaders.companion.js.map +1 -1
- package/dist/esm/core/inject/models/container.d.ts.map +1 -1
- package/dist/esm/core/inject/models/container.js +4 -0
- package/dist/esm/core/inject/models/container.js.map +1 -1
- package/dist/esm/core/inject/models/service-types.d.ts +4 -0
- package/dist/esm/core/inject/models/service-types.d.ts.map +1 -1
- package/dist/esm/core/inject/models/service-types.js +4 -0
- package/dist/esm/core/inject/models/service-types.js.map +1 -1
- package/dist/esm/core/introspection/resources/creation-console-answer.companion.d.ts +15 -1
- package/dist/esm/core/introspection/resources/creation-console-answer.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-console-answer.companion.js +38 -3
- package/dist/esm/core/introspection/resources/creation-console-answer.companion.js.map +1 -1
- package/dist/esm/core/introspection/resources/creation-console-projection.companion.d.ts +21 -0
- package/dist/esm/core/introspection/resources/creation-console-projection.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-console-projection.companion.js +64 -25
- package/dist/esm/core/introspection/resources/creation-console-projection.companion.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 +2 -0
- package/dist/esm/core/introspection/resources/creation-home-projection.companion.js.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts +0 -28
- package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js +192 -19
- package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js +27 -5
- package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/resources/launch-blockers.companion.d.ts +47 -0
- package/dist/esm/core/introspection/resources/launch-blockers.companion.d.ts.map +1 -0
- package/dist/esm/core/introspection/resources/launch-blockers.companion.js +98 -0
- package/dist/esm/core/introspection/resources/launch-blockers.companion.js.map +1 -0
- package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts +6 -1
- 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 +20 -1
- package/dist/esm/core/introspection/services/companion-introspection.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.d.ts +34 -8
- package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.js +61 -12
- package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/introspection-input-closure.companion.d.ts +44 -0
- package/dist/esm/core/introspection/services/introspection-input-closure.companion.d.ts.map +1 -0
- package/dist/esm/core/introspection/services/introspection-input-closure.companion.js +104 -0
- package/dist/esm/core/introspection/services/introspection-input-closure.companion.js.map +1 -0
- package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts +41 -22
- package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js +64 -47
- package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.d.ts +7 -1
- package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.js +13 -4
- package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js +7 -0
- package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.schemas.d.ts +4 -4
- package/dist/esm/core/runtime/companion-env-file.d.ts +39 -9
- package/dist/esm/core/runtime/companion-env-file.d.ts.map +1 -1
- package/dist/esm/core/runtime/companion-env-file.js +75 -16
- package/dist/esm/core/runtime/companion-env-file.js.map +1 -1
- package/dist/esm/core/runtime/services/start-companion-application.service.d.ts +7 -3
- 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 +29 -11
- package/dist/esm/core/runtime/services/start-companion-application.service.js.map +1 -1
- package/dist/esm/core/utils/bounded-concurrency.utils.d.ts +17 -0
- package/dist/esm/core/utils/bounded-concurrency.utils.d.ts.map +1 -0
- package/dist/esm/core/utils/bounded-concurrency.utils.js +37 -0
- package/dist/esm/core/utils/bounded-concurrency.utils.js.map +1 -0
- package/dist/esm/core/utils/derived-input-signature.companion.utils.d.ts +10 -1
- package/dist/esm/core/utils/derived-input-signature.companion.utils.d.ts.map +1 -1
- package/dist/esm/core/utils/derived-input-signature.companion.utils.js +9 -2
- package/dist/esm/core/utils/derived-input-signature.companion.utils.js.map +1 -1
- package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js +2 -0
- package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js.map +1 -1
- package/dist/esm/creation-conversation/creation-conversation.function-tools.d.ts.map +1 -1
- package/dist/esm/creation-conversation/creation-conversation.function-tools.js +66 -6
- package/dist/esm/creation-conversation/creation-conversation.function-tools.js.map +1 -1
- package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.d.ts +0 -17
- package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js +10 -4
- package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js.map +1 -1
- package/dist/esm/email/services/email-template.companion.service.d.ts +6 -1
- package/dist/esm/email/services/email-template.companion.service.d.ts.map +1 -1
- package/dist/esm/email/services/email-template.companion.service.js +4 -1
- package/dist/esm/email/services/email-template.companion.service.js.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js +8 -2
- package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js +8 -2
- package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js.map +1 -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 +7 -7
- package/dist/esm/expert-personas/services/expert-persona.companion.service.js.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-conversation.en.js +41 -1
- package/dist/esm/i18n/composite_views/app.creation-conversation.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchAspects.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchAspects.en.js +7 -0
- package/dist/esm/i18n/resources/workbenchAspects.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.d.ts +5 -0
- package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.js +5 -0
- package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts +1 -1
- package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.js +2 -1
- package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts +46 -0
- package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchDossierEntries.en.js +12 -0
- package/dist/esm/i18n/resources/workbenchDossierEntries.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts +266 -0
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js +91 -5
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/application-creation.en.d.ts +41 -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 +45 -1
- package/dist/esm/i18n/system_enums/application-creation.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/localization.en.d.ts +82 -0
- package/dist/esm/i18n/system_enums/localization.en.d.ts.map +1 -0
- package/dist/esm/i18n/system_enums/localization.en.js +82 -0
- package/dist/esm/i18n/system_enums/localization.en.js.map +1 -0
- package/dist/esm/i18n/system_enums/risk-register.en.d.ts +1 -0
- package/dist/esm/i18n/system_enums/risk-register.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/risk-register.en.js +1 -0
- package/dist/esm/i18n/system_enums/risk-register.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts +10 -0
- package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-dossier.en.js +13 -0
- package/dist/esm/i18n/system_enums/workbench-dossier.en.js.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling-progress.models.d.ts +43 -0
- package/dist/esm/i18n-labelling/models/labelling-progress.models.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/models/labelling-progress.models.js +34 -0
- package/dist/esm/i18n-labelling/models/labelling-progress.models.js.map +1 -0
- package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts +8 -0
- package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js +97 -56
- package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts +18 -0
- package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js +269 -153
- package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/labelling-concurrency.utils.d.ts +41 -0
- package/dist/esm/i18n-labelling/utils/labelling-concurrency.utils.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/utils/labelling-concurrency.utils.js +47 -0
- package/dist/esm/i18n-labelling/utils/labelling-concurrency.utils.js.map +1 -0
- package/dist/esm/i18n-labelling/utils/per-unit-file.utils.d.ts +12 -0
- package/dist/esm/i18n-labelling/utils/per-unit-file.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/per-unit-file.utils.js +10 -2
- package/dist/esm/i18n-labelling/utils/per-unit-file.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/staged-label-file-writer.utils.d.ts +89 -0
- package/dist/esm/i18n-labelling/utils/staged-label-file-writer.utils.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/utils/staged-label-file-writer.utils.js +229 -0
- package/dist/esm/i18n-labelling/utils/staged-label-file-writer.utils.js.map +1 -0
- package/dist/esm/meta-workflows/models/build-task-rearm.models.d.ts +67 -1
- package/dist/esm/meta-workflows/models/build-task-rearm.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/build-task-rearm.models.js +64 -0
- package/dist/esm/meta-workflows/models/build-task-rearm.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/creation-intervention.models.d.ts +308 -0
- package/dist/esm/meta-workflows/models/creation-intervention.models.d.ts.map +1 -0
- package/dist/esm/meta-workflows/models/creation-intervention.models.js +365 -0
- package/dist/esm/meta-workflows/models/creation-intervention.models.js.map +1 -0
- package/dist/esm/meta-workflows/models/generation-step-progress.models.d.ts +61 -0
- package/dist/esm/meta-workflows/models/generation-step-progress.models.d.ts.map +1 -0
- package/dist/esm/meta-workflows/models/generation-step-progress.models.js +58 -0
- package/dist/esm/meta-workflows/models/generation-step-progress.models.js.map +1 -0
- package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts +10 -6
- package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js +11 -6
- package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts +3 -0
- package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js +8 -1
- package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts +26 -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 +66 -10
- package/dist/esm/meta-workflows/models/playbook-run-record.models.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.d.ts +13 -0
- package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.js +33 -0
- package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.js.map +1 -0
- package/dist/esm/meta-workflows/services/application-assembly-repair.companion.utils.d.ts +145 -0
- package/dist/esm/meta-workflows/services/application-assembly-repair.companion.utils.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/application-assembly-repair.companion.utils.js +179 -0
- package/dist/esm/meta-workflows/services/application-assembly-repair.companion.utils.js.map +1 -0
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts +376 -17
- 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 +805 -39
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts +93 -7
- 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 +142 -25
- 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 +120 -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 +325 -16
- 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.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js +15 -6
- package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.js +10 -11
- package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js +10 -11
- package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.d.ts +82 -0
- package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.js +291 -0
- package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.js.map +1 -0
- package/dist/esm/meta-workflows/services/creation-lane-preflight.companion.service.d.ts +60 -0
- package/dist/esm/meta-workflows/services/creation-lane-preflight.companion.service.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/creation-lane-preflight.companion.service.js +66 -0
- package/dist/esm/meta-workflows/services/creation-lane-preflight.companion.service.js.map +1 -0
- package/dist/esm/meta-workflows/services/creation-run-report.companion.service.d.ts +53 -0
- package/dist/esm/meta-workflows/services/creation-run-report.companion.service.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/creation-run-report.companion.service.js +164 -0
- package/dist/esm/meta-workflows/services/creation-run-report.companion.service.js.map +1 -0
- package/dist/esm/meta-workflows/services/dossier-write-queue.companion.utils.d.ts +37 -0
- package/dist/esm/meta-workflows/services/dossier-write-queue.companion.utils.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/dossier-write-queue.companion.utils.js +52 -0
- package/dist/esm/meta-workflows/services/dossier-write-queue.companion.utils.js.map +1 -0
- package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts +74 -14
- package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/dossier.companion.service.js +180 -28
- package/dist/esm/meta-workflows/services/dossier.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts +2 -3
- package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js +2 -8
- package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/interview-answer-proposal.companion.d.ts +67 -0
- package/dist/esm/meta-workflows/services/interview-answer-proposal.companion.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/interview-answer-proposal.companion.js +64 -0
- package/dist/esm/meta-workflows/services/interview-answer-proposal.companion.js.map +1 -0
- package/dist/esm/meta-workflows/services/playbook-instance.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js +11 -3
- package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts +92 -4
- package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js +328 -7
- package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts +105 -6
- 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 +309 -39
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.d.ts +62 -1
- package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.js +152 -2
- package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.js.map +1 -1
- package/package.json +22 -18
- package/dist/esm/.tsbuildinfo +0 -1
- package/dist/esm/__tests__/asset-noop.d.ts +0 -3
- package/dist/esm/__tests__/asset-noop.d.ts.map +0 -1
- package/dist/esm/__tests__/asset-noop.js +0 -2
- package/dist/esm/__tests__/asset-noop.js.map +0 -1
- package/dist/esm/__tests__/chdir-dogfood-app.setup.d.ts +0 -2
- package/dist/esm/__tests__/chdir-dogfood-app.setup.d.ts.map +0 -1
- package/dist/esm/__tests__/chdir-dogfood-app.setup.js +0 -44
- package/dist/esm/__tests__/chdir-dogfood-app.setup.js.map +0 -1
- package/dist/esm/__tests__/internal-test-view.d.ts +0 -39
- package/dist/esm/__tests__/internal-test-view.d.ts.map +0 -1
- package/dist/esm/__tests__/internal-test-view.js +0 -2
- package/dist/esm/__tests__/internal-test-view.js.map +0 -1
- package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts +0 -50
- package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts.map +0 -1
- package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js +0 -157
- package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js.map +0 -1
- package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.d.ts +0 -8
- package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.d.ts.map +0 -1
- package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.js +0 -43
- package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.js.map +0 -1
- package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts +0 -79
- package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts.map +0 -1
- package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js +0 -193
- package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js.map +0 -1
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
import { type PlaybookSpend } from '@wildo-ai/application-creation-runtime';
|
|
2
|
+
/**
|
|
3
|
+
* THE INTERVENTION LEDGER of a creation run (#2231) — what a PERSON (or the session driving creation for
|
|
4
|
+
* one) did to keep the lane going, derived from what the lane already records.
|
|
5
|
+
*
|
|
6
|
+
* ## Why this exists
|
|
7
|
+
*
|
|
8
|
+
* A creation run recorded what the playbooks did and nothing about what a person did. On
|
|
9
|
+
* app-creation-test-004 (2026-10-01) the driving session kept the run report by hand: fifteen interventions,
|
|
10
|
+
* each restart, hand edit, manual commit, re-arm and forced answer counted from memory, the spend added up
|
|
11
|
+
* run by run. That report is the only measure of whether the next run needs a person less, and nothing in
|
|
12
|
+
* the lane could produce it. The run's own history showed the gap: `161f4f9 build-task-logo: commit what
|
|
13
|
+
* the wave left, writer unknown` is an intervention, and only its prose said so.
|
|
14
|
+
*
|
|
15
|
+
* ## Derived, not declared
|
|
16
|
+
*
|
|
17
|
+
* Every entry is computed from a record that exists for another reason, so a person is asked for nothing
|
|
18
|
+
* but the REASON (`.claude/rules/derive-before-you-ask.md`):
|
|
19
|
+
*
|
|
20
|
+
* | kind | derived from |
|
|
21
|
+
* |---|---|
|
|
22
|
+
* | a manual commit | a commit NOT authored by the companion that commits, unchanged, a file a recorded run wrote |
|
|
23
|
+
* | a hand edit | a commit not authored by the companion that changes such a file to something the run did not write, or the same change still uncommitted in the working tree |
|
|
24
|
+
* | a companion restart | a boot whose reconciliation found runs in flight (`CreationRestartRecord`, written at that boot) |
|
|
25
|
+
* | a re-arm | a person's re-arm on a build task's run row (`wildo build rearm`) |
|
|
26
|
+
* | an override | a run started past a landing the person said was wrong (`wildo build run --despite-landed`) |
|
|
27
|
+
* | a revert | a revert marker in the playbook write register (`wildo creation revert`); a forced one says so |
|
|
28
|
+
*
|
|
29
|
+
* ## What it covers, and what it cannot see
|
|
30
|
+
*
|
|
31
|
+
* - **One creation run is one application**, from its first recorded run: the same identity a defect found
|
|
32
|
+
* during it carries in its `**Creation run:** <slug>` field (#2287), so the ledger and the issues filed
|
|
33
|
+
* against the run cover the same thing. A person's later edit of a file a run wrote is still a HAND_EDIT,
|
|
34
|
+
* because a creation is never "over": an application keeps being built by its lane.
|
|
35
|
+
* - **A reverted run still owns what it wrote, until its revert.** The revert deletes the run's write record,
|
|
36
|
+
* so its marker keeps the footprint (when it ran, what it wrote): a commit of those files before the revert
|
|
37
|
+
* is still that run's, and committing the restored files afterwards is not a second intervention. Only a
|
|
38
|
+
* marker written before it carried the footprint loses that, and the report says how many (`notChecked`).
|
|
39
|
+
* - **Answers.** Answering or declining a question the lane asked is the lane working, not a person stepping in.
|
|
40
|
+
* What counts as overriding an answer is overriding a VERDICT: running a task past its landing probe.
|
|
41
|
+
*
|
|
42
|
+
* ## A record for people, not an input to the lane
|
|
43
|
+
*
|
|
44
|
+
* Nothing in the creation lane reads this, and nothing may decide from it
|
|
45
|
+
* (`.claude/rules/application-creation-directive.md`, "Records"): `wildo creation report` renders it and a
|
|
46
|
+
* person reads it. The only thing it stores is what cannot be derived, each restart (an instant no later
|
|
47
|
+
* read can recover) and each reason a person gives; both are throwaway state under `.wildo-saas/state/`.
|
|
48
|
+
*/
|
|
49
|
+
/** What kind of act an intervention was. One named source for the vocabulary. */
|
|
50
|
+
export declare enum CreationInterventionKind {
|
|
51
|
+
/** The companion booted with runs in flight; its reconciliation settled them interrupted. */
|
|
52
|
+
COMPANION_RESTART = "companion_restart",
|
|
53
|
+
/** A file a recorded run wrote was changed by something no recorded run is: a person, a tool, a session. */
|
|
54
|
+
HAND_EDIT = "hand_edit",
|
|
55
|
+
/** A person committed, unchanged, what a run wrote: the lane's own commit did not happen or did not cover it. */
|
|
56
|
+
MANUAL_COMMIT = "manual_commit",
|
|
57
|
+
/** A person put a build task back in the queue after a run that completed without landing. */
|
|
58
|
+
BUILD_TASK_REARM = "build_task_rearm",
|
|
59
|
+
/** A person overruled the lane's verdict: ran a task its landing probe called landed. */
|
|
60
|
+
VERDICT_OVERRIDE = "verdict_override",
|
|
61
|
+
/** A person undid a playbook run's writes. */
|
|
62
|
+
RUN_REVERT = "run_revert"
|
|
63
|
+
}
|
|
64
|
+
/** Where an intervention's reason came from. */
|
|
65
|
+
export declare enum CreationInterventionReasonSource {
|
|
66
|
+
/** The person stated it for this entry (`wildo creation reason`). */
|
|
67
|
+
STATED = "stated",
|
|
68
|
+
/** The record the act left already carries it: a re-arm's or an override's note. */
|
|
69
|
+
RECORDED_NOTE = "recorded_note",
|
|
70
|
+
/** The subject of the person's own commit: their words about it, until they state another. */
|
|
71
|
+
COMMIT_MESSAGE = "commit_message"
|
|
72
|
+
}
|
|
73
|
+
/** The lane name of the BUILD: every coding run of the build plan, whoever started it. */
|
|
74
|
+
export declare const CREATION_BUILD_LANE = "build";
|
|
75
|
+
/** The lane name of the unattended playbook LOOP (`wildo creation loop`), whose rows name no playbook. */
|
|
76
|
+
export declare const CREATION_LOOP_LANE = "unattended loop";
|
|
77
|
+
/** The lane of a playbook execution the report could not read (older than its page of rows). */
|
|
78
|
+
export declare const CREATION_UNRESOLVED_PLAYBOOK_LANE = "playbook (row not read)";
|
|
79
|
+
/** What an intervention unblocked: a lane (a playbook ref, or {@link CREATION_BUILD_LANE}) and, when known, its task. */
|
|
80
|
+
export interface CreationInterventionTarget {
|
|
81
|
+
readonly lane: string;
|
|
82
|
+
/** The build task's ref, or the playbook run's id. Absent when the record names no task. */
|
|
83
|
+
readonly task?: string;
|
|
84
|
+
}
|
|
85
|
+
export interface CreationIntervention {
|
|
86
|
+
/** Stable across reads: `<kind>:<the record it was derived from>`. What `wildo creation reason` names. */
|
|
87
|
+
readonly id: string;
|
|
88
|
+
readonly kind: CreationInterventionKind;
|
|
89
|
+
/** When it happened, ISO-8601. */
|
|
90
|
+
readonly at: string;
|
|
91
|
+
/** What it unblocked. Never empty: an act on nothing a run owns is no intervention in a creation run. */
|
|
92
|
+
readonly targets: readonly CreationInterventionTarget[];
|
|
93
|
+
/** What happened, in one line. */
|
|
94
|
+
readonly summary: string;
|
|
95
|
+
/** What it was derived from — a commit, a run row, a record — so a reader can check it. */
|
|
96
|
+
readonly evidence: string;
|
|
97
|
+
readonly reason?: {
|
|
98
|
+
readonly text: string;
|
|
99
|
+
readonly source: CreationInterventionReasonSource;
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
/** What one recorded run wrote: its lane and task, when it wrote, and each path's bytes after it (sha256; `null` = deleted). */
|
|
103
|
+
export interface CreationRunFootprint {
|
|
104
|
+
readonly target: CreationInterventionTarget;
|
|
105
|
+
readonly at: string;
|
|
106
|
+
readonly files: ReadonlyMap<string, string | null>;
|
|
107
|
+
/**
|
|
108
|
+
* When the run stopped owning its files: a REVERTED run owns what it wrote until the revert, and no longer.
|
|
109
|
+
* Without it, committing the restored files would read as a hand edit of a run that was already undone.
|
|
110
|
+
*/
|
|
111
|
+
readonly until?: string;
|
|
112
|
+
}
|
|
113
|
+
/** The author git records for every commit the companion makes (`accepted-change-commit.companion.service.ts`). */
|
|
114
|
+
export declare const COMPANION_COMMIT_AUTHOR_NAME = "Wildo development companion";
|
|
115
|
+
/**
|
|
116
|
+
* The trailers that mark a commit made through the lane's own accept door (`accepted-change-commit`'s
|
|
117
|
+
* `Wildo-Coding-Run` / `Wildo-Playbook-Run`). A person's `wildo creation accept` carries one and is still a
|
|
118
|
+
* person's commit, so it is still an intervention; the trailer only lets the summary say which door it was.
|
|
119
|
+
*/
|
|
120
|
+
export declare const LANE_ACCEPT_TRAILER_KEYS: readonly string[];
|
|
121
|
+
/** A commit, with the content of the run-owned paths it touched. */
|
|
122
|
+
export interface CreationCommitObservation {
|
|
123
|
+
readonly sha: string;
|
|
124
|
+
/** Committer date, ISO-8601: when it entered history. */
|
|
125
|
+
readonly at: string;
|
|
126
|
+
readonly authorName: string;
|
|
127
|
+
readonly subject: string;
|
|
128
|
+
readonly body: string;
|
|
129
|
+
/** Each path it changed with its committed bytes' sha256 (`null` = deleted). Only paths a run owned need a hash. */
|
|
130
|
+
readonly files: readonly {
|
|
131
|
+
readonly path: string;
|
|
132
|
+
readonly sha256: string | null;
|
|
133
|
+
}[];
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* The latest run that wrote `path` and still owned it at `at`, or `undefined` when no recorded run did.
|
|
137
|
+
* `committedSha256` is the bytes the commit holds there, which settles a commit in a reverted run's last second.
|
|
138
|
+
*/
|
|
139
|
+
export declare function findRunOwningPathAt(path: string, at: string, footprints: readonly CreationRunFootprint[], committedSha256?: string | null): CreationRunFootprint | undefined;
|
|
140
|
+
/**
|
|
141
|
+
* A commit as an intervention, or `null` when it is not one: the companion authored it, or it touched no
|
|
142
|
+
* path a run had written by then (a person's own work beside the lane is not the lane's business).
|
|
143
|
+
*
|
|
144
|
+
* MANUAL_COMMIT when every run-owned path holds exactly what its run left; HAND_EDIT as soon as one holds
|
|
145
|
+
* something else. Paths are attributed to the latest run that wrote them before the commit.
|
|
146
|
+
*/
|
|
147
|
+
export declare function classifyCommitAsIntervention(commit: CreationCommitObservation, footprints: readonly CreationRunFootprint[]): CreationIntervention | null;
|
|
148
|
+
/**
|
|
149
|
+
* Hand edits not committed yet: a working-tree file a run wrote, whose bytes are neither what the run left
|
|
150
|
+
* nor what HEAD holds. Bytes equal to HEAD were committed and are judged by their commit; bytes equal to the
|
|
151
|
+
* run's are the run's own output waiting for a commit. Read only while no run is in flight, because a run
|
|
152
|
+
* in flight writes files no record yet names (the caller says so when it skips this).
|
|
153
|
+
*/
|
|
154
|
+
export declare function classifyWorkingTreeEdits(dirty: readonly {
|
|
155
|
+
readonly path: string;
|
|
156
|
+
readonly sha256: string | null;
|
|
157
|
+
readonly headSha256: string | null;
|
|
158
|
+
}[], footprints: readonly CreationRunFootprint[], observedAt: string): CreationIntervention[];
|
|
159
|
+
/** A build task's run row, as far as interventions read it. */
|
|
160
|
+
export interface CreationBuildAttemptObservation {
|
|
161
|
+
readonly taskRef: string;
|
|
162
|
+
readonly runTaskId: string;
|
|
163
|
+
readonly startedAt: string;
|
|
164
|
+
readonly rearm?: {
|
|
165
|
+
readonly reason: string;
|
|
166
|
+
readonly note: string;
|
|
167
|
+
readonly rearmedAt: string;
|
|
168
|
+
};
|
|
169
|
+
readonly landedOverride?: {
|
|
170
|
+
readonly reason: string;
|
|
171
|
+
readonly note: string;
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Re-arms and overrides off the build's run rows. A re-arm whose reason is not one a PERSON may give is
|
|
176
|
+
* the wave's own (it re-runs a task a sibling interfered with) and is not counted: nobody intervened.
|
|
177
|
+
*/
|
|
178
|
+
export declare function deriveBuildAttemptInterventions(attempts: readonly CreationBuildAttemptObservation[], personRearmReasons: readonly string[]): CreationIntervention[];
|
|
179
|
+
/** A revert marker of the playbook write register. */
|
|
180
|
+
export interface CreationRevertObservation {
|
|
181
|
+
/** The marker's own name: one per revert, never per run. */
|
|
182
|
+
readonly markerId: string;
|
|
183
|
+
readonly runId: string;
|
|
184
|
+
readonly playbookRef: string;
|
|
185
|
+
readonly at: string;
|
|
186
|
+
readonly paths: readonly string[];
|
|
187
|
+
readonly forced: boolean;
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Each revert, once. A FORCED revert (over files edited since the run) is still one act, so it is one
|
|
191
|
+
* entry that says it was forced, never a revert and an override counted twice.
|
|
192
|
+
*/
|
|
193
|
+
export declare function deriveRevertInterventions(reverts: readonly CreationRevertObservation[]): CreationIntervention[];
|
|
194
|
+
/** What a boot found in flight, as `CreationInterventionLedgerCompanionService.recordRestart` wrote it. */
|
|
195
|
+
export interface CreationRestartRecord {
|
|
196
|
+
readonly bootAt: string;
|
|
197
|
+
readonly codingTaskIds: readonly string[];
|
|
198
|
+
readonly playbookExecutionIds: readonly string[];
|
|
199
|
+
readonly generationExecutionIds: readonly string[];
|
|
200
|
+
}
|
|
201
|
+
/** What the report knows of one meta-workflows execution a restart interrupted. */
|
|
202
|
+
export interface CreationInterruptedPlaybookExecution {
|
|
203
|
+
/** The playbook it ran, or {@link CREATION_LOOP_LANE} for the unattended loop. */
|
|
204
|
+
readonly lane: string;
|
|
205
|
+
/** Set on a composite's CHILD: the root run whose tree it belongs to. */
|
|
206
|
+
readonly rootRunId?: string;
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* A restart as an intervention. Its targets are resolved through what the reader knows: a coding run's task
|
|
210
|
+
* id to its build task, a playbook execution to its playbook (or the loop). A composite's child interrupted
|
|
211
|
+
* with its root is the root's work, so it is folded into the root, and the summary counts RUNS, not rows. An
|
|
212
|
+
* id nothing resolves still counts, under {@link CREATION_UNRESOLVED_PLAYBOOK_LANE}, because the restart did
|
|
213
|
+
* interrupt it.
|
|
214
|
+
*/
|
|
215
|
+
export declare function deriveRestartIntervention(restart: CreationRestartRecord, resolve: {
|
|
216
|
+
readonly codingTaskRef: (taskId: string) => string | undefined;
|
|
217
|
+
readonly playbookExecution: (executionId: string) => CreationInterruptedPlaybookExecution | undefined;
|
|
218
|
+
}): CreationIntervention;
|
|
219
|
+
/** A person's stated reason, keyed by intervention id. A stated reason replaces a derived one. */
|
|
220
|
+
export declare function applyStatedReasons(interventions: readonly CreationIntervention[], stated: Readonly<Record<string, {
|
|
221
|
+
readonly reason: string;
|
|
222
|
+
}>>): CreationIntervention[];
|
|
223
|
+
/**
|
|
224
|
+
* The INDEPENDENCE SCORE (#2231): interventions per lane, and per landed unit. Lower is more independent; 0
|
|
225
|
+
* means nobody stepped in. A lane with interventions and no landing has no ratio — `null`, never infinity
|
|
226
|
+
* and never zero — and says so beside its count.
|
|
227
|
+
*
|
|
228
|
+
* A landed unit is a build task the plan reads LANDED or a playbook run that landed files. An intervention
|
|
229
|
+
* that unblocked two lanes is counted once in each lane and once in the total.
|
|
230
|
+
*/
|
|
231
|
+
export declare function deriveIndependenceScore(interventions: readonly CreationIntervention[], landedByLane: ReadonlyMap<string, number>): {
|
|
232
|
+
readonly interventions: number;
|
|
233
|
+
readonly landedUnits: number;
|
|
234
|
+
readonly interventionsPerLandedUnit: number | null;
|
|
235
|
+
readonly byLane: readonly {
|
|
236
|
+
readonly lane: string;
|
|
237
|
+
readonly interventions: number;
|
|
238
|
+
readonly landed: number;
|
|
239
|
+
readonly interventionsPerLanding: number | null;
|
|
240
|
+
}[];
|
|
241
|
+
};
|
|
242
|
+
/** One playbook ROOT run's spend, as its row records it (a root's spend includes its children). */
|
|
243
|
+
export interface CreationPlaybookRunSpend {
|
|
244
|
+
readonly runId: string;
|
|
245
|
+
readonly playbookRef: string;
|
|
246
|
+
readonly instanceKey?: string;
|
|
247
|
+
readonly startedAt: string;
|
|
248
|
+
readonly finishedAt?: string;
|
|
249
|
+
readonly status: string;
|
|
250
|
+
/** Absent on a row from before #1507, or one whose process stopped before it settled. */
|
|
251
|
+
readonly spend?: PlaybookSpend;
|
|
252
|
+
}
|
|
253
|
+
/** One coding run's spend, as its build task's row records it. */
|
|
254
|
+
export interface CreationCodingRunSpend {
|
|
255
|
+
readonly runTaskId: string;
|
|
256
|
+
readonly taskRef: string;
|
|
257
|
+
readonly startedAt: string;
|
|
258
|
+
readonly settledAt?: string;
|
|
259
|
+
readonly tokens?: {
|
|
260
|
+
readonly totalTokens?: number;
|
|
261
|
+
readonly cacheReadTokens?: number;
|
|
262
|
+
};
|
|
263
|
+
readonly cost?: {
|
|
264
|
+
readonly amount: number;
|
|
265
|
+
readonly currency: string;
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
/** One build GENERATION STEP's spend, as its row records it (#2232). `spend` is absent on a row from before it. */
|
|
269
|
+
export interface CreationGenerationStepSpend {
|
|
270
|
+
readonly runTaskId: string;
|
|
271
|
+
readonly taskRef: string;
|
|
272
|
+
readonly startedAt: string;
|
|
273
|
+
readonly settledAt?: string;
|
|
274
|
+
readonly spend?: PlaybookSpend;
|
|
275
|
+
}
|
|
276
|
+
/** An unattended loop's own selection spend: its total less the lanes it ran, each a root run of its own. */
|
|
277
|
+
export interface CreationLoopSelectionSpend {
|
|
278
|
+
readonly runId: string;
|
|
279
|
+
readonly startedAt: string;
|
|
280
|
+
readonly cost?: Readonly<Record<string, number>>;
|
|
281
|
+
}
|
|
282
|
+
/**
|
|
283
|
+
* The journey's spend, counted ONCE (#2232, #2231).
|
|
284
|
+
*
|
|
285
|
+
* Root playbook runs + coding runs + generation steps + loop selections, less the coding runs and generation
|
|
286
|
+
* steps a playbook run's own figure already contains (`PlaybookSpend.codingRuns` / `.generationSteps`), because
|
|
287
|
+
* each of those is also on its build task's row.
|
|
288
|
+
*
|
|
289
|
+
* A root row that reported a cost and no coding part was recorded before #2232 counted that part. If coding
|
|
290
|
+
* runs started inside its window, the total may count them twice; the number of such runs is returned rather
|
|
291
|
+
* than guessed away, because a coding run started by a person while an unrelated lane ran is in that window
|
|
292
|
+
* too, and subtracting it would undercount.
|
|
293
|
+
*/
|
|
294
|
+
export declare function deriveJourneySpend(input: {
|
|
295
|
+
readonly playbookRuns: readonly CreationPlaybookRunSpend[];
|
|
296
|
+
readonly codingRuns: readonly CreationCodingRunSpend[];
|
|
297
|
+
readonly generationSteps: readonly CreationGenerationStepSpend[];
|
|
298
|
+
readonly loopSelections: readonly CreationLoopSelectionSpend[];
|
|
299
|
+
}): {
|
|
300
|
+
readonly cost: Readonly<Record<string, number>>;
|
|
301
|
+
readonly totalTokens?: number;
|
|
302
|
+
readonly codingRunsWithoutReportedCost: number;
|
|
303
|
+
readonly playbookRunsWithoutSpend: number;
|
|
304
|
+
/** Settled generation steps whose row records no spend (rows from before #2232): left out, so a floor. */
|
|
305
|
+
readonly generationStepsWithoutRecordedSpend: number;
|
|
306
|
+
readonly codingRunsPossiblyCountedTwice: number;
|
|
307
|
+
};
|
|
308
|
+
//# sourceMappingURL=creation-intervention.models.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"creation-intervention.models.d.ts","sourceRoot":"","sources":["../../../../../src/meta-workflows/models/creation-intervention.models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgD,KAAK,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAE1H;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AAEH,iFAAiF;AACjF,oBAAY,wBAAwB;IAClC,6FAA6F;IAC7F,iBAAiB,sBAAsB;IACvC,4GAA4G;IAC5G,SAAS,cAAc;IACvB,iHAAiH;IACjH,aAAa,kBAAkB;IAC/B,8FAA8F;IAC9F,gBAAgB,qBAAqB;IACrC,yFAAyF;IACzF,gBAAgB,qBAAqB;IACrC,8CAA8C;IAC9C,UAAU,eAAe;CAC1B;AAED,gDAAgD;AAChD,oBAAY,gCAAgC;IAC1C,qEAAqE;IACrE,MAAM,WAAW;IACjB,oFAAoF;IACpF,aAAa,kBAAkB;IAC/B,8FAA8F;IAC9F,cAAc,mBAAmB;CAClC;AAED,0FAA0F;AAC1F,eAAO,MAAM,mBAAmB,UAAU,CAAC;AAE3C,0GAA0G;AAC1G,eAAO,MAAM,kBAAkB,oBAAoB,CAAC;AAEpD,gGAAgG;AAChG,eAAO,MAAM,iCAAiC,4BAA4B,CAAC;AAE3E,yHAAyH;AACzH,MAAM,WAAW,0BAA0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