@wildo-ai/dev-companion 1.1.12 → 1.1.14
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 +21 -0
- 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 +37 -4
- 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.map +1 -1
- package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js +9 -2
- 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 +66 -0
- 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 +191 -13
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/git-change-set.companion.service.d.ts +6 -2
- package/dist/esm/claude-cli/services/git-change-set.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/git-change-set.companion.service.js +16 -39
- package/dist/esm/claude-cli/services/git-change-set.companion.service.js.map +1 -1
- package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.js +31 -2
- package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.js.map +1 -1
- package/dist/esm/companion-api/companion-api.schemas.d.ts +2 -0
- package/dist/esm/companion-api/companion-api.schemas.d.ts.map +1 -1
- package/dist/esm/companion-api/companion-api.schemas.js +8 -0
- package/dist/esm/companion-api/companion-api.schemas.js.map +1 -1
- package/dist/esm/companion-api/controllers/companion.controller.d.ts +13 -0
- package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion.controller.js +39 -13
- package/dist/esm/companion-api/controllers/companion.controller.js.map +1 -1
- package/dist/esm/companion-api/controllers/long-held-request.companion.d.ts +17 -0
- package/dist/esm/companion-api/controllers/long-held-request.companion.d.ts.map +1 -0
- package/dist/esm/companion-api/controllers/long-held-request.companion.js +33 -0
- package/dist/esm/companion-api/controllers/long-held-request.companion.js.map +1 -0
- package/dist/esm/core/introspection/resources/creation-home-projection.companion.d.ts +9 -0
- 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 +19 -0
- package/dist/esm/core/introspection/resources/creation-home-projection.companion.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 +7 -1
- 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 +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-source-state.companion.service.d.ts +8 -20
- 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 +37 -142
- package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/introspection-source-walk.worker.d.ts +64 -0
- package/dist/esm/core/introspection/services/introspection-source-walk.worker.d.ts.map +1 -0
- package/dist/esm/core/introspection/services/introspection-source-walk.worker.js +304 -0
- package/dist/esm/core/introspection/services/introspection-source-walk.worker.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/companion-language-model-route.d.ts +16 -1
- package/dist/esm/core/runtime/companion-language-model-route.d.ts.map +1 -1
- package/dist/esm/core/runtime/companion-language-model-route.js +23 -1
- package/dist/esm/core/runtime/companion-language-model-route.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/core/runtime/services/start-companion-application.service.d.ts.map +1 -1
- package/dist/esm/core/runtime/services/start-companion-application.service.js +3 -2
- package/dist/esm/core/runtime/services/start-companion-application.service.js.map +1 -1
- package/dist/esm/core/utils/git-read-broker.companion.d.ts +62 -0
- package/dist/esm/core/utils/git-read-broker.companion.d.ts.map +1 -0
- package/dist/esm/core/utils/git-read-broker.companion.js +282 -0
- package/dist/esm/core/utils/git-read-broker.companion.js.map +1 -0
- package/dist/esm/core/utils/local-write-recording.companion.d.ts +8 -1
- package/dist/esm/core/utils/local-write-recording.companion.d.ts.map +1 -1
- package/dist/esm/core/utils/local-write-recording.companion.js +7 -23
- package/dist/esm/core/utils/local-write-recording.companion.js.map +1 -1
- 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/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.en.d.ts +29 -0
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.en.d.ts.map +1 -0
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.en.js +29 -0
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.en.js.map +1 -0
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.fr.d.ts +29 -0
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.fr.d.ts.map +1 -0
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.fr.js +29 -0
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.fr.js.map +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js +2 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.fr.d.ts +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.fr.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.fr.js +2 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.fr.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION_THREAD.en.d.ts +5 -2
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION_THREAD.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION_THREAD.en.js +5 -2
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION_THREAD.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION_THREAD.fr.d.ts +5 -2
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION_THREAD.fr.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION_THREAD.fr.js +5 -2
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION_THREAD.fr.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_APPROVAL_SEAL.en.d.ts +41 -0
- package/dist/esm/i18n/components/LOW_LEVEL_APPROVAL_SEAL.en.d.ts.map +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_APPROVAL_SEAL.en.js +41 -0
- package/dist/esm/i18n/components/LOW_LEVEL_APPROVAL_SEAL.en.js.map +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_APPROVAL_SEAL.fr.d.ts +41 -0
- package/dist/esm/i18n/components/LOW_LEVEL_APPROVAL_SEAL.fr.d.ts.map +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_APPROVAL_SEAL.fr.js +41 -0
- package/dist/esm/i18n/components/LOW_LEVEL_APPROVAL_SEAL.fr.js.map +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.d.ts +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.js +2 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.fr.d.ts +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.fr.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.fr.js +2 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.fr.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.js +2 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.fr.d.ts +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.fr.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.fr.js +2 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.fr.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.d.ts +1 -0
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.js +2 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.fr.d.ts +1 -0
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.fr.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.fr.js +2 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.fr.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.d.ts +2 -0
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.js +3 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.fr.d.ts +2 -0
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.fr.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.fr.js +3 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.fr.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.d.ts +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.js +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.fr.d.ts +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.fr.js +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.fr.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.d.ts +2 -0
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.js +3 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.fr.d.ts +3 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.fr.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.fr.js +4 -2
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.fr.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts +17 -0
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js +18 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.fr.d.ts +17 -0
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.fr.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.fr.js +18 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.fr.js.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-conversation.fr.d.ts +206 -195
- package/dist/esm/i18n/composite_views/app.creation-conversation.fr.d.ts.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-conversation.fr.js +206 -195
- package/dist/esm/i18n/composite_views/app.creation-conversation.fr.js.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-dossier.fr.d.ts +10 -0
- package/dist/esm/i18n/composite_views/app.creation-dossier.fr.d.ts.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-dossier.fr.js +12 -2
- package/dist/esm/i18n/composite_views/app.creation-dossier.fr.js.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.fr.d.ts +70 -0
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.fr.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.fr.js +70 -0
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.fr.js.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorTasks.fr.d.ts +12 -2
- package/dist/esm/i18n/resources/wildoApplicationActorTasks.fr.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorTasks.fr.js +12 -2
- package/dist/esm/i18n/resources/wildoApplicationActorTasks.fr.js.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.fr.d.ts +10 -0
- package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.fr.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.fr.js +10 -0
- package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.fr.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.fr.d.ts +25 -20
- package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.fr.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.fr.js +25 -20
- package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.fr.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildPlanTasks.fr.d.ts +32 -32
- package/dist/esm/i18n/resources/workbenchBuildPlanTasks.fr.js +32 -32
- package/dist/esm/i18n/resources/workbenchBuildPlanTasks.fr.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildTaskRecords.fr.d.ts +65 -65
- package/dist/esm/i18n/resources/workbenchBuildTaskRecords.fr.js +65 -65
- package/dist/esm/i18n/resources/workbenchBuildTaskRecords.fr.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchDossierEntries.fr.d.ts +20 -0
- package/dist/esm/i18n/resources/workbenchDossierEntries.fr.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchDossierEntries.fr.js +20 -0
- package/dist/esm/i18n/resources/workbenchDossierEntries.fr.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchGovernanceQuestions.fr.d.ts +12 -0
- package/dist/esm/i18n/resources/workbenchGovernanceQuestions.fr.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchGovernanceQuestions.fr.js +13 -1
- package/dist/esm/i18n/resources/workbenchGovernanceQuestions.fr.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 +175 -170
- package/dist/esm/i18n/system_enums/application-creation.fr.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/application-creation.fr.js +175 -170
- package/dist/esm/i18n/system_enums/application-creation.fr.js.map +1 -1
- package/dist/esm/i18n/system_enums/flows-actors.fr.d.ts +22 -22
- package/dist/esm/i18n/system_enums/flows-actors.fr.js +22 -22
- package/dist/esm/i18n/system_enums/flows-actors.fr.js.map +1 -1
- package/dist/esm/i18n/system_enums/run-records.fr.d.ts +21 -21
- package/dist/esm/i18n/system_enums/run-records.fr.js +21 -21
- package/dist/esm/i18n/system_enums/run-records.fr.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-build.en.d.ts +3 -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 +3 -0
- package/dist/esm/i18n/system_enums/workbench-build.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-build.fr.d.ts +37 -33
- package/dist/esm/i18n/system_enums/workbench-build.fr.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-build.fr.js +37 -33
- package/dist/esm/i18n/system_enums/workbench-build.fr.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-creation-home.en.d.ts +1 -0
- package/dist/esm/i18n/system_enums/workbench-creation-home.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-creation-home.en.js +1 -0
- package/dist/esm/i18n/system_enums/workbench-creation-home.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-creation-home.fr.d.ts +18 -17
- package/dist/esm/i18n/system_enums/workbench-creation-home.fr.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-creation-home.fr.js +18 -17
- package/dist/esm/i18n/system_enums/workbench-creation-home.fr.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-dossier.fr.d.ts +7 -5
- package/dist/esm/i18n/system_enums/workbench-dossier.fr.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-dossier.fr.js +8 -6
- package/dist/esm/i18n/system_enums/workbench-dossier.fr.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-secrets.fr.d.ts +12 -12
- package/dist/esm/i18n/system_enums/workbench-secrets.fr.js +12 -12
- package/dist/esm/i18n/system_enums/workbench-secrets.fr.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-specification-artifact.fr.d.ts +1 -0
- package/dist/esm/i18n/system_enums/workbench-specification-artifact.fr.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-specification-artifact.fr.js +2 -1
- package/dist/esm/i18n/system_enums/workbench-specification-artifact.fr.js.map +1 -1
- package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js +3 -4
- package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts +11 -0
- package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.js +21 -0
- package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.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 +200 -20
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js +1107 -230
- 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 +158 -16
- 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 +381 -46
- 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-landing-projection.companion.d.ts +3 -3
- package/dist/esm/meta-workflows/services/application-build-landing-projection.companion.js +3 -3
- package/dist/esm/meta-workflows/services/application-build-landing-projection.companion.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-task-closure.companion.d.ts +9 -0
- package/dist/esm/meta-workflows/services/application-build-task-closure.companion.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-task-closure.companion.js +19 -0
- package/dist/esm/meta-workflows/services/application-build-task-closure.companion.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-intervention-ledger.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.js +4 -5
- package/dist/esm/meta-workflows/services/creation-intervention-ledger.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/foundation-executor.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js +6 -3
- package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-run-write-register-window.companion.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-run-write-register-window.companion.js +3 -5
- package/dist/esm/meta-workflows/services/playbook-run-write-register-window.companion.js.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts +68 -3
- 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 +281 -69
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
- package/package.json +18 -18
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { existsSync, readFileSync } from 'node:fs';
|
|
2
|
+
import { dirname, isAbsolute, join } from 'node:path';
|
|
3
|
+
import { LocalDevDependencyInstallPhase } from '@wildo-ai/platform-core-shared';
|
|
4
|
+
import { classifyDependencyInstall, readDependencyInstallRecord, readNodeModulesInstalledAtMs, } from '@wildo-ai/platform-core-shared/dev-runtime';
|
|
5
|
+
/** What the gate concluded about a failed derivation. */
|
|
6
|
+
export var DependencyTreeSettleVerdict;
|
|
7
|
+
(function (DependencyTreeSettleVerdict) {
|
|
8
|
+
/** The failure names no unresolved bare package: it is the derivation's own, and stands. */
|
|
9
|
+
DependencyTreeSettleVerdict["NOT_A_DEPENDENCY_FAILURE"] = "NOT_A_DEPENDENCY_FAILURE";
|
|
10
|
+
/** The package is not one its importer declares: no install will bring it, so the failure stands. */
|
|
11
|
+
DependencyTreeSettleVerdict["UNDECLARED_PACKAGE"] = "UNDECLARED_PACKAGE";
|
|
12
|
+
/** The package resolves again and no recorded install is running: derive once more, in a fresh process. */
|
|
13
|
+
DependencyTreeSettleVerdict["SETTLED"] = "SETTLED";
|
|
14
|
+
/** The package still does not resolve after the ceiling (or did not over this same tree before): the failure stands. */
|
|
15
|
+
DependencyTreeSettleVerdict["STILL_UNRESOLVED"] = "STILL_UNRESOLVED";
|
|
16
|
+
})(DependencyTreeSettleVerdict || (DependencyTreeSettleVerdict = {}));
|
|
17
|
+
/** How often the gate re-reads the record and the resolver's answer while it waits. */
|
|
18
|
+
export const DEPENDENCY_TREE_POLL_MS = 1_000;
|
|
19
|
+
/**
|
|
20
|
+
* The longest the gate waits for a package to resolve again when no recorded install explains the gap.
|
|
21
|
+
*
|
|
22
|
+
* The longest window measured (reference run 42886943490, 18:35:50 → 18:38:20) was 2.5 min, a reinjection that failed
|
|
23
|
+
* and was retried several times. Twice that leaves room for a slower host, and a package that is really missing pays it
|
|
24
|
+
* once (see the memory above). A RECORDED install extends the wait to its own deadline instead.
|
|
25
|
+
*/
|
|
26
|
+
export const DEPENDENCY_TREE_SETTLE_CEILING_MS = 5 * 60_000;
|
|
27
|
+
// Both `ERR_MODULE_NOT_FOUND` shapes, the ESM resolver's and `require`'s. ANSI colour codes are stripped first: the
|
|
28
|
+
// text arrives as a child's stderr.
|
|
29
|
+
const ESM_UNRESOLVED_PACKAGE = /Cannot find package '([^']+)' imported from (.+?)(?:\r?\n|$)/;
|
|
30
|
+
const CJS_UNRESOLVED_MODULE = /Cannot find module '([^']+)'(?:[^\n]*)\r?\nRequire stack:\r?\n- (.+?)(?:\r?\n|$)/;
|
|
31
|
+
const ANSI_ESCAPE = /\u001b\[[0-9;]*m/g;
|
|
32
|
+
/**
|
|
33
|
+
* The package name of a BARE specifier (`zod`, `zod/v4` → `zod`; `@scope/pkg/sub` → `@scope/pkg`), or null for a
|
|
34
|
+
* relative, absolute, URL or builtin specifier, which no install moves.
|
|
35
|
+
*/
|
|
36
|
+
export function packageNameOfBareSpecifier(specifier) {
|
|
37
|
+
if (specifier.length === 0 || specifier.startsWith('.') || isAbsolute(specifier) || specifier.startsWith('node:') || /^[a-z][a-z0-9+.-]*:/i.test(specifier)) {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
const segments = specifier.split('/');
|
|
41
|
+
if (specifier.startsWith('@'))
|
|
42
|
+
return segments.length >= 2 && segments[1] ? `${segments[0]}/${segments[1]}` : null;
|
|
43
|
+
return segments[0] ?? null;
|
|
44
|
+
}
|
|
45
|
+
/** The unresolved bare package a failure text names, or null when it names none. */
|
|
46
|
+
export function findUnresolvedPackageImport(text) {
|
|
47
|
+
const plain = text.replace(ANSI_ESCAPE, '');
|
|
48
|
+
const match = ESM_UNRESOLVED_PACKAGE.exec(plain) ?? CJS_UNRESOLVED_MODULE.exec(plain);
|
|
49
|
+
if (!match)
|
|
50
|
+
return null;
|
|
51
|
+
const packageName = packageNameOfBareSpecifier(match[1] ?? '');
|
|
52
|
+
const importerPath = (match[2] ?? '').trim();
|
|
53
|
+
if (packageName === null || !isAbsolute(importerPath))
|
|
54
|
+
return null;
|
|
55
|
+
return { packageName, importerPath };
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Whether `packageName` resolves from `importerPath` the way Node's resolver looks for it: the first
|
|
59
|
+
* `node_modules/<name>/package.json` found walking up from the importer's directory. `existsSync` follows the symlink
|
|
60
|
+
* pnpm links a package through, so a link whose target is being re-created reads as absent, which is exactly the gap.
|
|
61
|
+
*/
|
|
62
|
+
export function isPackageResolvableFrom(packageName, importerPath, exists = existsSync) {
|
|
63
|
+
let directory = dirname(importerPath);
|
|
64
|
+
for (;;) {
|
|
65
|
+
if (exists(join(directory, 'node_modules', packageName, 'package.json')))
|
|
66
|
+
return true;
|
|
67
|
+
const parent = dirname(directory);
|
|
68
|
+
if (parent === directory)
|
|
69
|
+
return false;
|
|
70
|
+
directory = parent;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Whether the importer's own package DECLARES `packageName`: the nearest `package.json` above it that has a `name` (a
|
|
75
|
+
* `dist/esm/package.json` carrying only `"type"` is not a package boundary for this question).
|
|
76
|
+
*/
|
|
77
|
+
export function importerDeclaresPackage(packageName, importerPath, readText = readTextOrNull) {
|
|
78
|
+
let directory = dirname(importerPath);
|
|
79
|
+
for (;;) {
|
|
80
|
+
const text = readText(join(directory, 'package.json'));
|
|
81
|
+
if (text !== null) {
|
|
82
|
+
try {
|
|
83
|
+
const manifest = JSON.parse(text);
|
|
84
|
+
if (typeof manifest.name === 'string') {
|
|
85
|
+
return ['dependencies', 'devDependencies', 'peerDependencies', 'optionalDependencies'].some((field) => {
|
|
86
|
+
const declared = manifest[field];
|
|
87
|
+
return declared !== null && typeof declared === 'object' && Object.prototype.hasOwnProperty.call(declared, packageName);
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
catch {
|
|
92
|
+
// An unreadable manifest is not a boundary; keep walking.
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
const parent = dirname(directory);
|
|
96
|
+
if (parent === directory)
|
|
97
|
+
return false;
|
|
98
|
+
directory = parent;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
function readTextOrNull(path) {
|
|
102
|
+
try {
|
|
103
|
+
return readFileSync(path, 'utf8');
|
|
104
|
+
}
|
|
105
|
+
catch {
|
|
106
|
+
return null;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
/** See the module comment. One per companion introspection service. */
|
|
110
|
+
export class IntrospectionDependencyTreeGate {
|
|
111
|
+
options;
|
|
112
|
+
readInstall;
|
|
113
|
+
readInstalledAtMs;
|
|
114
|
+
isResolvable;
|
|
115
|
+
declares;
|
|
116
|
+
now;
|
|
117
|
+
sleep;
|
|
118
|
+
pollMs;
|
|
119
|
+
settleCeilingMs;
|
|
120
|
+
/** `<package>\0<importer>` → the `.modules.yaml` time over which a wait for it already ran out. */
|
|
121
|
+
exhausted = new Map();
|
|
122
|
+
constructor(options) {
|
|
123
|
+
this.options = options;
|
|
124
|
+
this.readInstall = options.readInstall ?? (() => classifyDependencyInstall(readDependencyInstallRecord(options.appRoot), Date.now()));
|
|
125
|
+
this.readInstalledAtMs = options.readNodeModulesInstalledAtMs ?? (() => readNodeModulesInstalledAtMs(options.appRoot));
|
|
126
|
+
this.isResolvable = options.isResolvable ?? ((unresolved) => isPackageResolvableFrom(unresolved.packageName, unresolved.importerPath));
|
|
127
|
+
this.declares = options.declares ?? ((unresolved) => importerDeclaresPackage(unresolved.packageName, unresolved.importerPath));
|
|
128
|
+
this.now = options.now ?? Date.now;
|
|
129
|
+
this.sleep = options.sleep ?? ((ms) => new Promise((resolveSleep) => setTimeout(resolveSleep, ms)));
|
|
130
|
+
this.pollMs = options.pollMs ?? DEPENDENCY_TREE_POLL_MS;
|
|
131
|
+
this.settleCeilingMs = options.settleCeilingMs ?? DEPENDENCY_TREE_SETTLE_CEILING_MS;
|
|
132
|
+
}
|
|
133
|
+
/** Wait while a recorded install is in flight; returns how long it waited. Bounded by the record's deadline. */
|
|
134
|
+
async holdWhileInstallInFlight() {
|
|
135
|
+
const startedAtMs = this.now();
|
|
136
|
+
let announced = false;
|
|
137
|
+
while (this.readInstall().phase === LocalDevDependencyInstallPhase.IN_FLIGHT) {
|
|
138
|
+
if (!announced) {
|
|
139
|
+
announced = true;
|
|
140
|
+
this.options.log?.('Introspection derivation held: a dependency install is re-creating node_modules', { appRoot: this.options.appRoot });
|
|
141
|
+
}
|
|
142
|
+
await this.sleep(this.pollMs);
|
|
143
|
+
}
|
|
144
|
+
return this.now() - startedAtMs;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Judge a failed derivation's text (its error message and stderr). Waits only when the failure is a declared
|
|
148
|
+
* package the resolver could not find; see the module comment for every case.
|
|
149
|
+
*/
|
|
150
|
+
async settleAfterFailure(failureText) {
|
|
151
|
+
const startedAtMs = this.now();
|
|
152
|
+
const unresolved = findUnresolvedPackageImport(failureText);
|
|
153
|
+
if (unresolved === null)
|
|
154
|
+
return { verdict: DependencyTreeSettleVerdict.NOT_A_DEPENDENCY_FAILURE, waitedMs: 0 };
|
|
155
|
+
if (!this.declares(unresolved))
|
|
156
|
+
return { verdict: DependencyTreeSettleVerdict.UNDECLARED_PACKAGE, unresolved, waitedMs: 0 };
|
|
157
|
+
const memoryKey = `${unresolved.packageName}\u0000${unresolved.importerPath}`;
|
|
158
|
+
if (this.exhausted.has(memoryKey)
|
|
159
|
+
&& this.exhausted.get(memoryKey) === this.readInstalledAtMs()
|
|
160
|
+
&& this.readInstall().phase !== LocalDevDependencyInstallPhase.IN_FLIGHT
|
|
161
|
+
&& !this.isResolvable(unresolved)) {
|
|
162
|
+
return { verdict: DependencyTreeSettleVerdict.STILL_UNRESOLVED, unresolved, waitedMs: 0 };
|
|
163
|
+
}
|
|
164
|
+
for (;;) {
|
|
165
|
+
const inFlight = this.readInstall().phase === LocalDevDependencyInstallPhase.IN_FLIGHT;
|
|
166
|
+
if (!inFlight && this.isResolvable(unresolved)) {
|
|
167
|
+
this.exhausted.delete(memoryKey);
|
|
168
|
+
const settledAtMs = this.now();
|
|
169
|
+
return { verdict: DependencyTreeSettleVerdict.SETTLED, unresolved, waitedMs: settledAtMs - startedAtMs, settledAtMs };
|
|
170
|
+
}
|
|
171
|
+
// A recorded install is bounded by its own deadline; only an unexplained gap is bounded by the ceiling.
|
|
172
|
+
if (!inFlight && this.now() - startedAtMs >= this.settleCeilingMs) {
|
|
173
|
+
this.exhausted.set(memoryKey, this.readInstalledAtMs());
|
|
174
|
+
return { verdict: DependencyTreeSettleVerdict.STILL_UNRESOLVED, unresolved, waitedMs: this.now() - startedAtMs };
|
|
175
|
+
}
|
|
176
|
+
await this.sleep(this.pollMs);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
//# sourceMappingURL=introspection-dependency-tree.companion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"introspection-dependency-tree.companion.js","sourceRoot":"","sources":["../../../../../src/core/introspection/services/introspection-dependency-tree.companion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEtD,OAAO,EAAE,8BAA8B,EAAE,MAAM,gCAAgC,CAAC;AAChF,OAAO,EACL,yBAAyB,EACzB,2BAA2B,EAC3B,4BAA4B,GAE7B,MAAM,4CAA4C,CAAC;AAgDpD,yDAAyD;AACzD,MAAM,CAAN,IAAY,2BASX;AATD,WAAY,2BAA2B;IACrC,4FAA4F;IAC5F,oFAAqD,CAAA;IACrD,qGAAqG;IACrG,wEAAyC,CAAA;IACzC,2GAA2G;IAC3G,kDAAmB,CAAA;I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,CAAC,EAAE,CAAC;QAC5F,CAAC;QACD,SAAS,CAAC;YACR,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC,KAAK,KAAK,8BAA8B,CAAC,SAAS,CAAC;YACvF,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,EAAE,CAAC;gBAC/C,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;gBACjC,MAAM,WAAW,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;gBAC/B,OAAO,EAAE,OAAO,EAAE,2BAA2B,CAAC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,GAAG,WAAW,EAAE,WAAW,EAAE,CAAC;YACxH,CAAC;YACD,wGAAwG;YACxG,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,GAAG,EAAE,GAAG,WAAW,IAAI,IAAI,CAAC,eAAe,EAAE,CAAC;gBAClE,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,EAAE,IAAI,CAAC,iBAAiB,EAAE,CAAC,CAAC;gBACxD,OAAO,EAAE,OAAO,EAAE,2BAA2B,CAAC,gBAAgB,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,WAAW,EAAE,CAAC;YACnH,CAAC;YACD,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAChC,CAAC;IACH,CAAC;CACF","sourcesContent":["import { existsSync, readFileSync } from 'node:fs';\nimport { dirname, isAbsolute, join } from 'node:path';\n\nimport { LocalDevDependencyInstallPhase } from '@wildo-ai/platform-core-shared';\nimport {\n classifyDependencyInstall,\n readDependencyInstallRecord,\n readNodeModulesInstalledAtMs,\n type DependencyInstallStatus,\n} from '@wildo-ai/platform-core-shared/dev-runtime';\n\n/**\n * An introspection derivation survives a dependency install under the live companion (#3703).\n *\n * ## Why\n *\n * Every derivation runs in a child process that resolves its packages (`zod` first, then the engine and the\n * application) from the application's `node_modules` AT THE MOMENT IT STARTS. The companion process itself loaded\n * its graph long before, so it keeps running while a `pnpm install` re-creates that tree under it, but every child\n * started during the install dies on its first bare import. Reference run 42886943490 (2026-11-09) logged 788 such\n * failures in six windows of 6 s to 2.5 min, every one `ERR_MODULE_NOT_FOUND: Cannot find package 'zod' imported from\n * …/companion-introspection-child.js`: a foundation install, a monorepo reinjection (`[sync] reinjecting via pnpm`,\n * which writes no install record), and installs nobody recorded (the backend's compile lost `react/jsx-runtime` and\n * `@types/node` at the same instant, which is a tree being re-created, not a missing declaration). Each failure read as\n * \"unanswerable\" to a landing probe, and held the build's labels step.\n *\n * #3552 taught the supervisors and the compile watchers to wait an install out; nothing taught this lane, whose\n * children are started on demand rather than supervised.\n *\n * ## The two decisions\n *\n * 1. **Before a derivation starts**, {@link IntrospectionDependencyTreeGate.holdWhileInstallInFlight}: while a RECORDED\n * install is in flight (the #3552 record, written by the foundation step and the CLI), start nothing. The record's\n * own deadline and writer liveness bound the wait (`classifyDependencyInstall`).\n * 2. **After a derivation failed**, {@link IntrospectionDependencyTreeGate.settleAfterFailure}: when the failure is a\n * bare package the importer DECLARES that the resolver could not find, the tree was in motion. Wait until that\n * package resolves again from that importer (and no recorded install is in flight), then the caller derives once\n * more, in a process started after the tree settled. This covers the installs nobody recorded, because it asks the\n * file system the same question Node's resolver asked rather than trusting a record.\n *\n * ## What is NOT waited for\n *\n * - A failure that names no unresolved package: every other failure is the derivation's own and is returned at once.\n * - A package the importer does not declare: no install can make an undeclared import resolve, so it is a defect in\n * the importing code, reported at once rather than after a wait.\n * - The same package from the same importer once more, over the same installed tree: a wait that already ran to its\n * ceiling is remembered against pnpm's `node_modules/.modules.yaml` time, so a package that is really missing (a\n * lockfile that never installed it) costs one wait, not one per derivation. A later install moves that time and\n * lifts the memory.\n */\n\n/** A bare package the module resolver could not find, and the file that imported it. */\nexport interface UnresolvedPackageImport {\n readonly packageName: string;\n readonly importerPath: string;\n}\n\n/** What the gate concluded about a failed derivation. */\nexport enum DependencyTreeSettleVerdict {\n /** The failure names no unresolved bare package: it is the derivation's own, and stands. */\n NOT_A_DEPENDENCY_FAILURE = 'NOT_A_DEPENDENCY_FAILURE',\n /** The package is not one its importer declares: no install will bring it, so the failure stands. */\n UNDECLARED_PACKAGE = 'UNDECLARED_PACKAGE',\n /** The package resolves again and no recorded install is running: derive once more, in a fresh process. */\n SETTLED = 'SETTLED',\n /** The package still does not resolve after the ceiling (or did not over this same tree before): the failure stands. */\n STILL_UNRESOLVED = 'STILL_UNRESOLVED',\n}\n\nexport interface DependencyTreeSettleOutcome {\n readonly verdict: DependencyTreeSettleVerdict;\n readonly unresolved?: UnresolvedPackageImport;\n readonly waitedMs: number;\n /** When the tree was judged settled ({@link DependencyTreeSettleVerdict.SETTLED} only): a process started before it may hold the moved tree. */\n readonly settledAtMs?: number;\n}\n\n/** How often the gate re-reads the record and the resolver's answer while it waits. */\nexport const DEPENDENCY_TREE_POLL_MS = 1_000;\n\n/**\n * The longest the gate waits for a package to resolve again when no recorded install explains the gap.\n *\n * The longest window measured (reference run 42886943490, 18:35:50 → 18:38:20) was 2.5 min, a reinjection that failed\n * and was retried several times. Twice that leaves room for a slower host, and a package that is really missing pays it\n * once (see the memory above). A RECORDED install extends the wait to its own deadline instead.\n */\nexport const DEPENDENCY_TREE_SETTLE_CEILING_MS = 5 * 60_000;\n\n// Both `ERR_MODULE_NOT_FOUND` shapes, the ESM resolver's and `require`'s. ANSI colour codes are stripped first: the\n// text arrives as a child's stderr.\nconst ESM_UNRESOLVED_PACKAGE = /Cannot find package '([^']+)' imported from (.+?)(?:\\r?\\n|$)/;\nconst CJS_UNRESOLVED_MODULE = /Cannot find module '([^']+)'(?:[^\\n]*)\\r?\\nRequire stack:\\r?\\n- (.+?)(?:\\r?\\n|$)/;\nconst ANSI_ESCAPE = /\\u001b\\[[0-9;]*m/g;\n\n/**\n * The package name of a BARE specifier (`zod`, `zod/v4` → `zod`; `@scope/pkg/sub` → `@scope/pkg`), or null for a\n * relative, absolute, URL or builtin specifier, which no install moves.\n */\nexport function packageNameOfBareSpecifier(specifier: string): string | null {\n if (specifier.length === 0 || specifier.startsWith('.') || isAbsolute(specifier) || specifier.startsWith('node:') || /^[a-z][a-z0-9+.-]*:/i.test(specifier)) {\n return null;\n }\n const segments = specifier.split('/');\n if (specifier.startsWith('@')) return segments.length >= 2 && segments[1] ? `${segments[0]}/${segments[1]}` : null;\n return segments[0] ?? null;\n}\n\n/** The unresolved bare package a failure text names, or null when it names none. */\nexport function findUnresolvedPackageImport(text: string): UnresolvedPackageImport | null {\n const plain = text.replace(ANSI_ESCAPE, '');\n const match = ESM_UNRESOLVED_PACKAGE.exec(plain) ?? CJS_UNRESOLVED_MODULE.exec(plain);\n if (!match) return null;\n const packageName = packageNameOfBareSpecifier(match[1] ?? '');\n const importerPath = (match[2] ?? '').trim();\n if (packageName === null || !isAbsolute(importerPath)) return null;\n return { packageName, importerPath };\n}\n\n/**\n * Whether `packageName` resolves from `importerPath` the way Node's resolver looks for it: the first\n * `node_modules/<name>/package.json` found walking up from the importer's directory. `existsSync` follows the symlink\n * pnpm links a package through, so a link whose target is being re-created reads as absent, which is exactly the gap.\n */\nexport function isPackageResolvableFrom(packageName: string, importerPath: string, exists: (path: string) => boolean = existsSync): boolean {\n let directory = dirname(importerPath);\n for (;;) {\n if (exists(join(directory, 'node_modules', packageName, 'package.json'))) return true;\n const parent = dirname(directory);\n if (parent === directory) return false;\n directory = parent;\n }\n}\n\n/**\n * Whether the importer's own package DECLARES `packageName`: the nearest `package.json` above it that has a `name` (a\n * `dist/esm/package.json` carrying only `\"type\"` is not a package boundary for this question).\n */\nexport function importerDeclaresPackage(packageName: string, importerPath: string, readText: (path: string) => string | null = readTextOrNull): boolean {\n let directory = dirname(importerPath);\n for (;;) {\n const text = readText(join(directory, 'package.json'));\n if (text !== null) {\n try {\n const manifest = JSON.parse(text) as Record<string, unknown>;\n if (typeof manifest.name === 'string') {\n return ['dependencies', 'devDependencies', 'peerDependencies', 'optionalDependencies'].some((field) => {\n const declared = manifest[field];\n return declared !== null && typeof declared === 'object' && Object.prototype.hasOwnProperty.call(declared, packageName);\n });\n }\n } catch {\n // An unreadable manifest is not a boundary; keep walking.\n }\n }\n const parent = dirname(directory);\n if (parent === directory) return false;\n directory = parent;\n }\n}\n\nfunction readTextOrNull(path: string): string | null {\n try {\n return readFileSync(path, 'utf8');\n } catch {\n return null;\n }\n}\n\nexport interface IntrospectionDependencyTreeGateOptions {\n /** The application root: where the #3552 install record and pnpm's `.modules.yaml` live. */\n readonly appRoot: string;\n readonly log?: (message: string, context?: Record<string, unknown>) => void;\n /** Test seams; production reads the record, the file system and the clock. */\n readonly readInstall?: () => DependencyInstallStatus;\n readonly readNodeModulesInstalledAtMs?: () => number | null;\n readonly isResolvable?: (unresolved: UnresolvedPackageImport) => boolean;\n readonly declares?: (unresolved: UnresolvedPackageImport) => boolean;\n readonly now?: () => number;\n readonly sleep?: (ms: number) => Promise<void>;\n readonly pollMs?: number;\n readonly settleCeilingMs?: number;\n}\n\n/** See the module comment. One per companion introspection service. */\nexport class IntrospectionDependencyTreeGate {\n private readonly readInstall: () => DependencyInstallStatus;\n private readonly readInstalledAtMs: () => number | null;\n private readonly isResolvable: (unresolved: UnresolvedPackageImport) => boolean;\n private readonly declares: (unresolved: UnresolvedPackageImport) => boolean;\n private readonly now: () => number;\n private readonly sleep: (ms: number) => Promise<void>;\n private readonly pollMs: number;\n private readonly settleCeilingMs: number;\n /** `<package>\\0<importer>` → the `.modules.yaml` time over which a wait for it already ran out. */\n private readonly exhausted = new Map<string, number | null>();\n\n public constructor(private readonly options: IntrospectionDependencyTreeGateOptions) {\n this.readInstall = options.readInstall ?? (() => classifyDependencyInstall(readDependencyInstallRecord(options.appRoot), Date.now()));\n this.readInstalledAtMs = options.readNodeModulesInstalledAtMs ?? (() => readNodeModulesInstalledAtMs(options.appRoot));\n this.isResolvable = options.isResolvable ?? ((unresolved) => isPackageResolvableFrom(unresolved.packageName, unresolved.importerPath));\n this.declares = options.declares ?? ((unresolved) => importerDeclaresPackage(unresolved.packageName, unresolved.importerPath));\n this.now = options.now ?? Date.now;\n this.sleep = options.sleep ?? ((ms) => new Promise((resolveSleep) => setTimeout(resolveSleep, ms)));\n this.pollMs = options.pollMs ?? DEPENDENCY_TREE_POLL_MS;\n this.settleCeilingMs = options.settleCeilingMs ?? DEPENDENCY_TREE_SETTLE_CEILING_MS;\n }\n\n /** Wait while a recorded install is in flight; returns how long it waited. Bounded by the record's deadline. */\n public async holdWhileInstallInFlight(): Promise<number> {\n const startedAtMs = this.now();\n let announced = false;\n while (this.readInstall().phase === LocalDevDependencyInstallPhase.IN_FLIGHT) {\n if (!announced) {\n announced = true;\n this.options.log?.('Introspection derivation held: a dependency install is re-creating node_modules', { appRoot: this.options.appRoot });\n }\n await this.sleep(this.pollMs);\n }\n return this.now() - startedAtMs;\n }\n\n /**\n * Judge a failed derivation's text (its error message and stderr). Waits only when the failure is a declared\n * package the resolver could not find; see the module comment for every case.\n */\n public async settleAfterFailure(failureText: string): Promise<DependencyTreeSettleOutcome> {\n const startedAtMs = this.now();\n const unresolved = findUnresolvedPackageImport(failureText);\n if (unresolved === null) return { verdict: DependencyTreeSettleVerdict.NOT_A_DEPENDENCY_FAILURE, waitedMs: 0 };\n if (!this.declares(unresolved)) return { verdict: DependencyTreeSettleVerdict.UNDECLARED_PACKAGE, unresolved, waitedMs: 0 };\n const memoryKey = `${unresolved.packageName}\\u0000${unresolved.importerPath}`;\n if (\n this.exhausted.has(memoryKey)\n && this.exhausted.get(memoryKey) === this.readInstalledAtMs()\n && this.readInstall().phase !== LocalDevDependencyInstallPhase.IN_FLIGHT\n && !this.isResolvable(unresolved)\n ) {\n return { verdict: DependencyTreeSettleVerdict.STILL_UNRESOLVED, unresolved, waitedMs: 0 };\n }\n for (;;) {\n const inFlight = this.readInstall().phase === LocalDevDependencyInstallPhase.IN_FLIGHT;\n if (!inFlight && this.isResolvable(unresolved)) {\n this.exhausted.delete(memoryKey);\n const settledAtMs = this.now();\n return { verdict: DependencyTreeSettleVerdict.SETTLED, unresolved, waitedMs: settledAtMs - startedAtMs, settledAtMs };\n }\n // A recorded install is bounded by its own deadline; only an unexplained gap is bounded by the ceiling.\n if (!inFlight && this.now() - startedAtMs >= this.settleCeilingMs) {\n this.exhausted.set(memoryKey, this.readInstalledAtMs());\n return { verdict: DependencyTreeSettleVerdict.STILL_UNRESOLVED, unresolved, waitedMs: this.now() - startedAtMs };\n }\n await this.sleep(this.pollMs);\n }\n }\n}\n"]}
|
package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { CompanionContext } from '../../context/companion-context';
|
|
2
|
+
import { SourceWalkWorker, type SourceWalkRequest, type SourceWalkResult } from './introspection-source-walk.worker';
|
|
2
3
|
/** Forget every held root walk. For tests. */
|
|
3
4
|
export declare function forgetHeldSourceRootWalks(): void;
|
|
4
5
|
/**
|
|
@@ -47,6 +48,8 @@ export interface IntrospectionSourceStateComponents {
|
|
|
47
48
|
readonly shared: string;
|
|
48
49
|
readonly byApplicationRoot: ReadonlyMap<string, string>;
|
|
49
50
|
}
|
|
51
|
+
/** Walk on `worker`, or in process when no worker can (a harness, a failed start, a dead worker). Exported for tests. */
|
|
52
|
+
export declare function walkWithInProcessFallback(worker: SourceWalkWorker, request: SourceWalkRequest): Promise<SourceWalkResult>;
|
|
50
53
|
/**
|
|
51
54
|
* Observes the state of every source tree an introspection derivation can read, as one comparable
|
|
52
55
|
* token.
|
|
@@ -130,7 +133,11 @@ export declare class IntrospectionSourceStateObserver {
|
|
|
130
133
|
private readonly companionContext;
|
|
131
134
|
private observationSequence;
|
|
132
135
|
private inFlight;
|
|
133
|
-
|
|
136
|
+
/** The walk: on the process's worker thread by default (#3204); a test may substitute one. */
|
|
137
|
+
private readonly walkRoots;
|
|
138
|
+
constructor(companionContext: Pick<CompanionContext, 'saasRoot' | 'companionHome' | 'servicesByKey' | 'resolvedLibraries' | 'resolvedSpecifications'>, options?: {
|
|
139
|
+
readonly walkRoots?: (request: SourceWalkRequest) => Promise<SourceWalkResult>;
|
|
140
|
+
});
|
|
134
141
|
/**
|
|
135
142
|
* Take a reading of the source trees, reusing an in-flight one ONLY when that reading started at
|
|
136
143
|
* or after the caller's own arrival.
|
|
@@ -215,25 +222,6 @@ export declare class IntrospectionSourceStateObserver {
|
|
|
215
222
|
* token unique and every cache read a miss.
|
|
216
223
|
*/
|
|
217
224
|
private observeApplicationRootManifests;
|
|
218
|
-
/**
|
|
219
|
-
* Breadth-of-tree walk with a fixed directory concurrency.
|
|
220
|
-
*
|
|
221
|
-
* A worker-pool built over the ROOT list was written first and was wrong: it sizes its pool from
|
|
222
|
-
* the number of roots, so a single-root application would walk its whole tree one directory at a
|
|
223
|
-
* time, and a worker that finds the queue momentarily empty cannot tell "finished" from "another
|
|
224
|
-
* worker is about to push children". The pump below sizes on IN-FLIGHT directories instead, which
|
|
225
|
-
* is the quantity the concurrency limit is actually about, and terminates on the only condition
|
|
226
|
-
* that means finished: nothing queued and nothing running.
|
|
227
|
-
*/
|
|
228
|
-
private walk;
|
|
229
|
-
/**
|
|
230
|
-
* Read one directory: count it, fold its own mtime in, stat its files, and queue its children.
|
|
231
|
-
*
|
|
232
|
-
* Never rejects. A directory that cannot be read (an unbuilt `dist`, a permission) contributes
|
|
233
|
-
* nothing and is not an error — when it appears later it is a new directory, which moves the
|
|
234
|
-
* counts and invalidates every cached derivation.
|
|
235
|
-
*/
|
|
236
|
-
private visitDirectory;
|
|
237
225
|
}
|
|
238
226
|
/**
|
|
239
227
|
* Every APPLICATION package an introspection derivation can import: each declared service, each
|
package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"introspection-source-state.companion.service.d.ts","sourceRoot":"","sources":["../../../../../src/core/introspection/services/introspection-source-state.companion.service.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"introspection-source-state.companion.service.d.ts","sourceRoot":"","sources":["../../../../../src/core/introspection/services/introspection-source-state.companion.service.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAGxE,OAAO,EAAE,gBAAgB,EAAqD,KAAK,iBAAiB,EAAE,KAAK,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAQxK,8CAA8C;AAC9C,wBAAgB,yBAAyB,IAAI,IAAI,CAEhD;AAcD;;GAEG;AACH,MAAM,WAAW,mCAAmC;IAClD;;;;;OAKG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB,4FAA4F;IAC5F,UAAU,EAAE,MAAM,CAAC;IACnB,mFAAmF;IACnF,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;OAGG;IACH,2BAA2B,EAAE,MAAM,CAAC;IACpC,2FAA2F;IAC3F,kBAAkB,EAAE,MAAM,CAAC;IAC3B,+EAA+E;IAC/E,SAAS,EAAE,MAAM,CAAC;IAClB;;;;;;;;OAQG;IACH,UAAU,CAAC,EAAE,kCAAkC,CAAC;CACjD;AAED,8DAA8D;AAC9D,MAAM,WAAW,kCAAkC;IACjD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,iBAAiB,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACzD;AA0BD,yHAAyH;AACzH,wBAAsB,yBAAyB,CAAC,MAAM,EAAE,gBAAgB,EAAE,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAO/H;AAeD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8EG;AACH,qBAA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;;;OAIG;IACH,aAAa,kBAAkB;IAC/B;;;;OAIG;IACH,YAAY,iBAAiB;CAC9B;AAQD;;;;;;GAMG;AACH,wBAAgB,iCAAiC,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,GAAG,8BAA8B,CAM/G;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,mCAAmC,CACvD,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,SAAS,MAAM,EAAE,GAC5B,OAAO,CAAC,WAAW,CAAC,MAAM,EAAE,8BAA8B,CAAC,CAAC,CA0C9D;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAK3G"}
|
package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js
CHANGED
|
@@ -1,28 +1,9 @@
|
|
|
1
1
|
import { promises as fsPromises } from 'node:fs';
|
|
2
|
-
import {
|
|
2
|
+
import { join, resolve, sep } from 'node:path';
|
|
3
3
|
import { readApplicationPnpmSettings } from '@wildo-ai/platform-config-lib';
|
|
4
4
|
import { activeDerivedInputChangeFeed } from '../../utils/derived-input-change-feed.companion.utils.js';
|
|
5
5
|
import { DIRECTORY_WALK_CONCURRENCY, FILE_STAT_CONCURRENCY } from './introspection-source-state.concurrency.companion.js';
|
|
6
|
-
|
|
7
|
-
* Directory names never descended into.
|
|
8
|
-
*
|
|
9
|
-
* `node_modules` is skipped during the walk and reached only through the explicit `@wildo-ai/*`
|
|
10
|
-
* roots below: descending into it from an application package would sweep the app's entire
|
|
11
|
-
* dependency graph (hundreds of thousands of files) to learn nothing the resolved engine roots do
|
|
12
|
-
* not already say.
|
|
13
|
-
*/
|
|
14
|
-
const SKIPPED_DIRECTORY_NAMES = new Set(['node_modules', '.git']);
|
|
15
|
-
/**
|
|
16
|
-
* The compiler's private output, never descended into when it sits in a package's `.wildo-runtime-signals` (#3452).
|
|
17
|
-
*
|
|
18
|
-
* A compile writes here first and publishes into `dist` once the emit is final, and nothing a derivation imports resolves
|
|
19
|
-
* here: every package's `exports` name `dist`, and no link in any dogfood application points into staging (measured
|
|
20
|
-
* 2026-11-08 over `examples/`). So a staging write cannot change a derivation, and the publication that can moves `dist`
|
|
21
|
-
* and the accepted-generation manifest beside it, which are still walked. It was about 40 % of what a sweep stat'ed
|
|
22
|
-
* (5,440 of Wonder Todos' 13,484 `backend-api` files). The change source ignores the same subtree.
|
|
23
|
-
*/
|
|
24
|
-
const COMPILE_STAGING_DIRECTORY_NAME = 'compile-staging';
|
|
25
|
-
const RUNTIME_SIGNALS_DIRECTORY_NAME = '.wildo-runtime-signals';
|
|
6
|
+
import { SourceWalkWorker, SourceWalkWorkerUnavailableError, walkSourceRoots } from './introspection-source-walk.worker.js';
|
|
26
7
|
/**
|
|
27
8
|
* A root's last walk, reused while the change feed vouches that no event touched the root since (#3452). Module-level
|
|
28
9
|
* because two observers (the derivation state's and the watcher's) sweep the same roots.
|
|
@@ -43,34 +24,26 @@ export function forgetHeldSourceRootWalks() {
|
|
|
43
24
|
* moving when the source does.
|
|
44
25
|
*/
|
|
45
26
|
const MAXIMUM_OBSERVED_ENTRIES = 250_000;
|
|
46
|
-
/**
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
27
|
+
/**
|
|
28
|
+
* The process's source-walk worker (#3204): the walk runs off the main thread, shared by every observer. See
|
|
29
|
+
* `introspection-source-walk.worker.ts` for why, and for the in-process fallback.
|
|
30
|
+
*/
|
|
31
|
+
const sourceWalkWorker = new SourceWalkWorker();
|
|
32
|
+
/** Walk on `worker`, or in process when no worker can (a harness, a failed start, a dead worker). Exported for tests. */
|
|
33
|
+
export async function walkWithInProcessFallback(worker, request) {
|
|
34
|
+
try {
|
|
35
|
+
return await worker.walk(request);
|
|
52
36
|
}
|
|
53
|
-
|
|
54
|
-
if (
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
else {
|
|
58
|
-
// A released permit is handed straight to the next waiter, so `available` never rises while
|
|
59
|
-
// anyone is waiting and no waiter can be overtaken by a later caller.
|
|
60
|
-
await new Promise((resolveWait) => this.waiting.push(resolveWait));
|
|
61
|
-
}
|
|
62
|
-
try {
|
|
63
|
-
return await operation();
|
|
64
|
-
}
|
|
65
|
-
finally {
|
|
66
|
-
const next = this.waiting.shift();
|
|
67
|
-
if (next)
|
|
68
|
-
next();
|
|
69
|
-
else
|
|
70
|
-
this.available += 1;
|
|
71
|
-
}
|
|
37
|
+
catch (error) {
|
|
38
|
+
if (!(error instanceof SourceWalkWorkerUnavailableError))
|
|
39
|
+
throw error;
|
|
40
|
+
return walkSourceRoots(request);
|
|
72
41
|
}
|
|
73
42
|
}
|
|
43
|
+
/** The observer's default walk: the process's worker, with the in-process fallback. */
|
|
44
|
+
function walkOffMainThread(request) {
|
|
45
|
+
return walkWithInProcessFallback(sourceWalkWorker, request);
|
|
46
|
+
}
|
|
74
47
|
function emptyAccumulator() {
|
|
75
48
|
return { fileCount: 0, directoryCount: 0, maximumMtimeMs: 0 };
|
|
76
49
|
}
|
|
@@ -160,8 +133,11 @@ export class IntrospectionSourceStateObserver {
|
|
|
160
133
|
companionContext;
|
|
161
134
|
observationSequence = 0;
|
|
162
135
|
inFlight = null;
|
|
163
|
-
|
|
136
|
+
/** The walk: on the process's worker thread by default (#3204); a test may substitute one. */
|
|
137
|
+
walkRoots;
|
|
138
|
+
constructor(companionContext, options = {}) {
|
|
164
139
|
this.companionContext = companionContext;
|
|
140
|
+
this.walkRoots = options.walkRoots ?? walkOffMainThread;
|
|
165
141
|
}
|
|
166
142
|
/**
|
|
167
143
|
* Take a reading of the source trees, reusing an in-flight one ONLY when that reading started at
|
|
@@ -232,7 +208,7 @@ export class IntrospectionSourceStateObserver {
|
|
|
232
208
|
const byApplicationRoot = new Map(applicationRoots.map((root) => [root, emptyAccumulator()]));
|
|
233
209
|
const shared = emptyAccumulator();
|
|
234
210
|
const sharedFrameworkRoots = [...new Set(frameworkRoots)].filter((root) => !byApplicationRoot.has(root));
|
|
235
|
-
const totals = { entryCount: 0, exceededCeiling: false
|
|
211
|
+
const totals = { entryCount: 0, exceededCeiling: false };
|
|
236
212
|
await this.observeApplicationRootManifests(shared, totals);
|
|
237
213
|
/*
|
|
238
214
|
* Each root is walked only when the change feed cannot vouch that nothing under it moved since its last walk (#3452).
|
|
@@ -256,7 +232,19 @@ export class IntrospectionSourceStateObserver {
|
|
|
256
232
|
walkedGenerations.set(root, generation);
|
|
257
233
|
toWalk.push({ directory: root, accumulator });
|
|
258
234
|
}
|
|
259
|
-
|
|
235
|
+
// Off the main thread (#3204): the walk was the largest single cost on the companion's event loop during a build.
|
|
236
|
+
if (toWalk.length > 0) {
|
|
237
|
+
const walked = await this.walkRoots({
|
|
238
|
+
roots: toWalk.map((pending) => pending.directory),
|
|
239
|
+
entryCountBefore: totals.entryCount,
|
|
240
|
+
maximumEntries: MAXIMUM_OBSERVED_ENTRIES,
|
|
241
|
+
directoryConcurrency: DIRECTORY_WALK_CONCURRENCY,
|
|
242
|
+
fileStatConcurrency: FILE_STAT_CONCURRENCY,
|
|
243
|
+
});
|
|
244
|
+
walked.accumulators.forEach((accumulator, index) => Object.assign(toWalk[index].accumulator, accumulator));
|
|
245
|
+
totals.entryCount = walked.entryCount;
|
|
246
|
+
totals.exceededCeiling = walked.exceededCeiling;
|
|
247
|
+
}
|
|
260
248
|
for (const accumulator of frameworkAccumulators.values()) {
|
|
261
249
|
shared.fileCount += accumulator.fileCount;
|
|
262
250
|
shared.directoryCount += accumulator.directoryCount;
|
|
@@ -400,99 +388,6 @@ export class IntrospectionSourceStateObserver {
|
|
|
400
388
|
}
|
|
401
389
|
}));
|
|
402
390
|
}
|
|
403
|
-
/**
|
|
404
|
-
* Breadth-of-tree walk with a fixed directory concurrency.
|
|
405
|
-
*
|
|
406
|
-
* A worker-pool built over the ROOT list was written first and was wrong: it sizes its pool from
|
|
407
|
-
* the number of roots, so a single-root application would walk its whole tree one directory at a
|
|
408
|
-
* time, and a worker that finds the queue momentarily empty cannot tell "finished" from "another
|
|
409
|
-
* worker is about to push children". The pump below sizes on IN-FLIGHT directories instead, which
|
|
410
|
-
* is the quantity the concurrency limit is actually about, and terminates on the only condition
|
|
411
|
-
* that means finished: nothing queued and nothing running.
|
|
412
|
-
*/
|
|
413
|
-
async walk(roots, totals) {
|
|
414
|
-
const pending = [...roots];
|
|
415
|
-
let inFlightDirectories = 0;
|
|
416
|
-
return new Promise((resolveWalk) => {
|
|
417
|
-
const pump = () => {
|
|
418
|
-
while (!totals.exceededCeiling
|
|
419
|
-
&& inFlightDirectories < DIRECTORY_WALK_CONCURRENCY
|
|
420
|
-
&& pending.length > 0) {
|
|
421
|
-
const next = pending.pop();
|
|
422
|
-
inFlightDirectories += 1;
|
|
423
|
-
void this.visitDirectory(next, totals, pending).then(() => {
|
|
424
|
-
inFlightDirectories -= 1;
|
|
425
|
-
pump();
|
|
426
|
-
});
|
|
427
|
-
}
|
|
428
|
-
if (inFlightDirectories === 0 && (pending.length === 0 || totals.exceededCeiling)) {
|
|
429
|
-
resolveWalk();
|
|
430
|
-
}
|
|
431
|
-
};
|
|
432
|
-
pump();
|
|
433
|
-
});
|
|
434
|
-
}
|
|
435
|
-
/**
|
|
436
|
-
* Read one directory: count it, fold its own mtime in, stat its files, and queue its children.
|
|
437
|
-
*
|
|
438
|
-
* Never rejects. A directory that cannot be read (an unbuilt `dist`, a permission) contributes
|
|
439
|
-
* nothing and is not an error — when it appears later it is a new directory, which moves the
|
|
440
|
-
* counts and invalidates every cached derivation.
|
|
441
|
-
*/
|
|
442
|
-
async visitDirectory({ directory, accumulator }, totals, pending) {
|
|
443
|
-
let entries;
|
|
444
|
-
try {
|
|
445
|
-
entries = await fsPromises.readdir(directory, { withFileTypes: true });
|
|
446
|
-
}
|
|
447
|
-
catch {
|
|
448
|
-
return;
|
|
449
|
-
}
|
|
450
|
-
accumulator.directoryCount += 1;
|
|
451
|
-
totals.entryCount += 1;
|
|
452
|
-
try {
|
|
453
|
-
const directoryStats = await fsPromises.stat(directory);
|
|
454
|
-
if (directoryStats.mtimeMs > accumulator.maximumMtimeMs) {
|
|
455
|
-
accumulator.maximumMtimeMs = directoryStats.mtimeMs;
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
catch {
|
|
459
|
-
// Counted above regardless: the directory demonstrably exists, we just read it.
|
|
460
|
-
}
|
|
461
|
-
const fileStats = [];
|
|
462
|
-
const insideRuntimeSignals = basename(directory) === RUNTIME_SIGNALS_DIRECTORY_NAME;
|
|
463
|
-
for (const entry of entries) {
|
|
464
|
-
if (SKIPPED_DIRECTORY_NAMES.has(entry.name))
|
|
465
|
-
continue;
|
|
466
|
-
if (insideRuntimeSignals && entry.name === COMPILE_STAGING_DIRECTORY_NAME)
|
|
467
|
-
continue;
|
|
468
|
-
const entryPath = join(directory, entry.name);
|
|
469
|
-
if (entry.isDirectory()) {
|
|
470
|
-
pending.push({ directory: entryPath, accumulator });
|
|
471
|
-
continue;
|
|
472
|
-
}
|
|
473
|
-
if (!entry.isFile()) {
|
|
474
|
-
// A symlink is counted but never followed — following one inside a package tree can walk
|
|
475
|
-
// back out into a dependency graph. Retargeting one rewrites its directory entry, which
|
|
476
|
-
// moves the parent directory's mtime, so the change is still observed.
|
|
477
|
-
accumulator.fileCount += 1;
|
|
478
|
-
totals.entryCount += 1;
|
|
479
|
-
continue;
|
|
480
|
-
}
|
|
481
|
-
totals.entryCount += 1;
|
|
482
|
-
fileStats.push(totals.statPermits.run(() => fsPromises.stat(entryPath)).then((entryStats) => {
|
|
483
|
-
accumulator.fileCount += 1;
|
|
484
|
-
if (entryStats.mtimeMs > accumulator.maximumMtimeMs) {
|
|
485
|
-
accumulator.maximumMtimeMs = entryStats.mtimeMs;
|
|
486
|
-
}
|
|
487
|
-
}, () => {
|
|
488
|
-
accumulator.fileCount += 1;
|
|
489
|
-
}));
|
|
490
|
-
}
|
|
491
|
-
await Promise.all(fileStats);
|
|
492
|
-
if (totals.entryCount > MAXIMUM_OBSERVED_ENTRIES) {
|
|
493
|
-
totals.exceededCeiling = true;
|
|
494
|
-
}
|
|
495
|
-
}
|
|
496
391
|
}
|
|
497
392
|
/**
|
|
498
393
|
* Every APPLICATION package an introspection derivation can import: each declared service, each
|