@wildo-ai/dev-companion 1.1.1 → 1.1.3

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.
Files changed (212) hide show
  1. package/dist/esm/.tsbuildinfo +1 -1
  2. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts +12 -1
  3. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts.map +1 -1
  4. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js +11 -0
  5. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -1
  6. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts +153 -1
  7. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts.map +1 -1
  8. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js +408 -38
  9. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js.map +1 -1
  10. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts +25 -10
  11. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts.map +1 -1
  12. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js +65 -24
  13. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js.map +1 -1
  14. package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts +70 -0
  15. package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts.map +1 -0
  16. package/dist/esm/claude-cli/services/research-evidence-store.companion.js +110 -0
  17. package/dist/esm/claude-cli/services/research-evidence-store.companion.js.map +1 -0
  18. package/dist/esm/companion-api/companion-api.schemas.d.ts +59 -2
  19. package/dist/esm/companion-api/companion-api.schemas.d.ts.map +1 -1
  20. package/dist/esm/companion-api/companion-api.schemas.js +60 -0
  21. package/dist/esm/companion-api/companion-api.schemas.js.map +1 -1
  22. package/dist/esm/companion-api/controllers/companion.controller.d.ts +62 -1
  23. package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
  24. package/dist/esm/companion-api/controllers/companion.controller.js +295 -19
  25. package/dist/esm/companion-api/controllers/companion.controller.js.map +1 -1
  26. package/dist/esm/core/inject/models/container.d.ts.map +1 -1
  27. package/dist/esm/core/inject/models/container.js +11 -0
  28. package/dist/esm/core/inject/models/container.js.map +1 -1
  29. package/dist/esm/core/inject/models/service-types.d.ts +5 -0
  30. package/dist/esm/core/inject/models/service-types.d.ts.map +1 -1
  31. package/dist/esm/core/inject/models/service-types.js +5 -0
  32. package/dist/esm/core/inject/models/service-types.js.map +1 -1
  33. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.d.ts.map +1 -1
  34. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.js +81 -0
  35. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.js.map +1 -1
  36. package/dist/esm/core/introspection/models/companion-introspection.models.d.ts +11 -1
  37. package/dist/esm/core/introspection/models/companion-introspection.models.d.ts.map +1 -1
  38. package/dist/esm/core/introspection/models/companion-introspection.models.js +39 -0
  39. package/dist/esm/core/introspection/models/companion-introspection.models.js.map +1 -1
  40. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts +8 -0
  41. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts.map +1 -0
  42. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js +317 -0
  43. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js.map +1 -0
  44. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts +45 -0
  45. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts.map +1 -0
  46. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js +243 -0
  47. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js.map +1 -0
  48. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts +123 -0
  49. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts.map +1 -0
  50. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.js +298 -0
  51. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.js.map +1 -0
  52. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.d.ts +78 -1
  53. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.d.ts.map +1 -1
  54. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js +155 -6
  55. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js.map +1 -1
  56. package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts +131 -2
  57. package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts.map +1 -1
  58. package/dist/esm/core/introspection/services/companion-introspection.companion.service.js +259 -9
  59. package/dist/esm/core/introspection/services/companion-introspection.companion.service.js.map +1 -1
  60. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.d.ts +243 -0
  61. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.d.ts.map +1 -0
  62. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.js +417 -0
  63. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.js.map +1 -0
  64. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts +186 -0
  65. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts.map +1 -0
  66. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js +368 -0
  67. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js.map +1 -0
  68. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.d.ts +101 -0
  69. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.d.ts.map +1 -0
  70. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.js +278 -0
  71. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.js.map +1 -0
  72. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts +370 -0
  73. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts.map +1 -0
  74. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.js +167 -0
  75. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.js.map +1 -0
  76. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.d.ts.map +1 -1
  77. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js +332 -3
  78. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js.map +1 -1
  79. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.d.ts +40 -0
  80. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.d.ts.map +1 -0
  81. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.js +126 -0
  82. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.js.map +1 -0
  83. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts +51 -0
  84. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts.map +1 -0
  85. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js +391 -0
  86. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js.map +1 -0
  87. package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts +103 -0
  88. package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts.map +1 -0
  89. package/dist/esm/core/runtime/dev-compile-quiet.companion.js +124 -0
  90. package/dist/esm/core/runtime/dev-compile-quiet.companion.js.map +1 -0
  91. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts +39 -2
  92. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts.map +1 -1
  93. package/dist/esm/core/runtime/services/start-companion-application.service.js +122 -11
  94. package/dist/esm/core/runtime/services/start-companion-application.service.js.map +1 -1
  95. package/dist/esm/core/specifications/non-composite-view-specification-context.shared.d.ts +6 -0
  96. package/dist/esm/core/specifications/non-composite-view-specification-context.shared.d.ts.map +1 -1
  97. package/dist/esm/core/specifications/non-composite-view-specification-context.shared.js.map +1 -1
  98. package/dist/esm/core/specifications/specification-context-factory.shared.d.ts +23 -0
  99. package/dist/esm/core/specifications/specification-context-factory.shared.d.ts.map +1 -1
  100. package/dist/esm/core/specifications/specification-context-factory.shared.js +26 -4
  101. package/dist/esm/core/specifications/specification-context-factory.shared.js.map +1 -1
  102. package/dist/esm/executions/services/companion-executions.companion.service.d.ts.map +1 -1
  103. package/dist/esm/executions/services/companion-executions.companion.service.js +13 -8
  104. package/dist/esm/executions/services/companion-executions.companion.service.js.map +1 -1
  105. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts +12 -0
  106. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts.map +1 -0
  107. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.js +12 -0
  108. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.js.map +1 -0
  109. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.d.ts +1 -1
  110. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.js +1 -1
  111. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.js.map +1 -1
  112. package/dist/esm/i18n/composite_views/app.creation-board.en.d.ts +13 -0
  113. package/dist/esm/i18n/composite_views/app.creation-board.en.d.ts.map +1 -0
  114. package/dist/esm/i18n/composite_views/app.creation-board.en.js +91 -0
  115. package/dist/esm/i18n/composite_views/app.creation-board.en.js.map +1 -0
  116. package/dist/esm/i18n/composite_views/app.domain-model.en.d.ts +38 -0
  117. package/dist/esm/i18n/composite_views/app.domain-model.en.d.ts.map +1 -0
  118. package/dist/esm/i18n/composite_views/app.domain-model.en.js +41 -0
  119. package/dist/esm/i18n/composite_views/app.domain-model.en.js.map +1 -0
  120. package/dist/esm/i18n/index.d.ts +3 -3
  121. package/dist/esm/i18n/index.js +3 -3
  122. package/dist/esm/i18n/index.js.map +1 -1
  123. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts +24 -0
  124. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts.map +1 -0
  125. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js +20 -0
  126. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js.map +1 -0
  127. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.d.ts +31 -0
  128. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.d.ts.map +1 -0
  129. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.js +27 -0
  130. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.js.map +1 -0
  131. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.d.ts +24 -0
  132. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.d.ts.map +1 -0
  133. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.js +20 -0
  134. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.js.map +1 -0
  135. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts +28 -0
  136. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts.map +1 -0
  137. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.js +24 -0
  138. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.js.map +1 -0
  139. package/dist/esm/i18n/resources/workbenchDomainResources.en.d.ts +138 -0
  140. package/dist/esm/i18n/resources/workbenchDomainResources.en.d.ts.map +1 -0
  141. package/dist/esm/i18n/resources/workbenchDomainResources.en.js +100 -0
  142. package/dist/esm/i18n/resources/workbenchDomainResources.en.js.map +1 -0
  143. package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts +29 -0
  144. package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts.map +1 -0
  145. package/dist/esm/i18n/resources/workbenchPlaybooks.en.js +25 -0
  146. package/dist/esm/i18n/resources/workbenchPlaybooks.en.js.map +1 -0
  147. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts +27 -0
  148. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts.map +1 -0
  149. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js +23 -0
  150. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js.map +1 -0
  151. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts +806 -0
  152. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -0
  153. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js +326 -0
  154. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js.map +1 -0
  155. package/dist/esm/i18n/resources/workbenchTraceSessions.en.d.ts +26 -0
  156. package/dist/esm/i18n/resources/workbenchTraceSessions.en.d.ts.map +1 -0
  157. package/dist/esm/i18n/resources/workbenchTraceSessions.en.js +22 -0
  158. package/dist/esm/i18n/resources/workbenchTraceSessions.en.js.map +1 -0
  159. package/dist/esm/i18n/system_enums/market.en.d.ts +202 -0
  160. package/dist/esm/i18n/system_enums/market.en.d.ts.map +1 -0
  161. package/dist/esm/i18n/system_enums/market.en.js +209 -0
  162. package/dist/esm/i18n/system_enums/market.en.js.map +1 -0
  163. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts +31 -0
  164. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts.map +1 -1
  165. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js +91 -8
  166. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js.map +1 -1
  167. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.d.ts +4 -2
  168. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.d.ts.map +1 -1
  169. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js +10 -7
  170. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js.map +1 -1
  171. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts +80 -7
  172. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts.map +1 -1
  173. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js +261 -24
  174. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js.map +1 -1
  175. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts +46 -3
  176. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts.map +1 -1
  177. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js +95 -2
  178. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js.map +1 -1
  179. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.d.ts +9 -0
  180. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.d.ts.map +1 -1
  181. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.js +13 -0
  182. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.js.map +1 -1
  183. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts +12 -0
  184. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts.map +1 -1
  185. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js +23 -0
  186. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js.map +1 -1
  187. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts +113 -1
  188. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts.map +1 -1
  189. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js +517 -54
  190. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
  191. package/dist/esm/meta-workflows/services/playbook-suspended-run.companion.service.d.ts +40 -0
  192. package/dist/esm/meta-workflows/services/playbook-suspended-run.companion.service.d.ts.map +1 -1
  193. package/dist/esm/meta-workflows/services/playbook-suspended-run.companion.service.js +63 -1
  194. package/dist/esm/meta-workflows/services/playbook-suspended-run.companion.service.js.map +1 -1
  195. package/dist/esm/technical-doc/services/technical-doc.companion.service.d.ts +21 -0
  196. package/dist/esm/technical-doc/services/technical-doc.companion.service.d.ts.map +1 -1
  197. package/dist/esm/technical-doc/services/technical-doc.companion.service.js +84 -2
  198. package/dist/esm/technical-doc/services/technical-doc.companion.service.js.map +1 -1
  199. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.d.ts +10 -1
  200. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.d.ts.map +1 -1
  201. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.js +10 -1
  202. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.js.map +1 -1
  203. package/package.json +17 -17
  204. package/dist/esm/.builder.pid +0 -9
  205. package/dist/esm/i18n/resources/workbenchApplicationModules.en.d.ts +0 -36
  206. package/dist/esm/i18n/resources/workbenchApplicationModules.en.d.ts.map +0 -1
  207. package/dist/esm/i18n/resources/workbenchApplicationModules.en.js +0 -32
  208. package/dist/esm/i18n/resources/workbenchApplicationModules.en.js.map +0 -1
  209. package/dist/esm/i18n/resources/workbenchResourceRelationships.en.d.ts +0 -29
  210. package/dist/esm/i18n/resources/workbenchResourceRelationships.en.d.ts.map +0 -1
  211. package/dist/esm/i18n/resources/workbenchResourceRelationships.en.js +0 -25
  212. package/dist/esm/i18n/resources/workbenchResourceRelationships.en.js.map +0 -1
@@ -0,0 +1,298 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
11
+ return function (target, key) { decorator(target, key, paramIndex); }
12
+ };
13
+ import { inject, injectable } from 'inversify';
14
+ import { buildScopeRoomNotificationPayload, SAAS_SERVICE_TYPES } from '@wildo-ai/saas-backend-lib';
15
+ import { CoreResourceOperation, CoreWebSocketEvent, DataMode, ResourceAction, ResourceScopeRoomKey, } from '@wildo-ai/saas-models';
16
+ import { COMPANION_SERVICE_TYPES } from '../../inject/models/service-types.js';
17
+ /**
18
+ * Publishes an introspection recompilation to the frontends watching it.
19
+ *
20
+ * ## What this joins, rather than builds
21
+ *
22
+ * Every part of the delivery already existed and none of it was reachable from here:
23
+ *
24
+ * - the companion MOUNTS the engine WebSocket server (`skipWebSocket: false`), and before this
25
+ * change held no reference to `WebSocketService` at all — it served a frontend and emitted nothing;
26
+ * - `sendResourceData` builds a sync-grade payload and validates the row against the resource's own
27
+ * canonical READ DTO before it leaves the process;
28
+ * - `RMMWebSocketBridge` receives that payload, re-validates it, diffs it FIELD BY FIELD against
29
+ * what the client holds, and applies the result with no refetch.
30
+ *
31
+ * So a changed row travels from a `tsc` emit to a repainted field without anybody asking for it, and
32
+ * the only new code is the diff below.
33
+ *
34
+ * ## Why the diff is computed here rather than pushed wholesale
35
+ *
36
+ * A recompilation of a 93-row derivation in which one row moved must not repaint 93 rows. The rows
37
+ * are keyed by the identity the binding already composes — the same value a READ addresses — so the
38
+ * three sets fall out of a map comparison, and a derivation that recompiled to a byte-identical
39
+ * payload never reaches this service at all (the state service reports it as unchanged).
40
+ *
41
+ * ## The `version` is the derivation's generation, and that is load-bearing
42
+ *
43
+ * `sendResourceData` refuses a non-DELETED sync payload with no version, and
44
+ * `ResourceMutationManager` DROPS any update whose version is not strictly greater than the one it
45
+ * holds. Introspection rows carry no `_version`, so the generation is supplied explicitly — and it
46
+ * is wall-clock-derived precisely so that a companion restart cannot hand an open browser tab a
47
+ * lower number than it already has, which would silently freeze that tab forever.
48
+ */
49
+ let IntrospectionResourceNotifierCompanionService = class IntrospectionResourceNotifierCompanionService {
50
+ logger;
51
+ websocketService;
52
+ watcher;
53
+ resourceSource;
54
+ appConfigService;
55
+ logDebug;
56
+ unsubscribe;
57
+ constructor(logger, websocketService, watcher, resourceSource, appConfigService) {
58
+ this.logger = logger;
59
+ this.websocketService = websocketService;
60
+ this.watcher = watcher;
61
+ this.resourceSource = resourceSource;
62
+ this.appConfigService = appConfigService;
63
+ this.logDebug = this.logger.debugByType('IntrospectionResourceNotifier');
64
+ this.logger.setDebugTypeLogging('IntrospectionResourceNotifier', true);
65
+ }
66
+ /** Begin publishing recompilations. Idempotent. */
67
+ start() {
68
+ if (this.unsubscribe)
69
+ return;
70
+ this.unsubscribe = this.watcher.onRecompiled((outcomes) => {
71
+ for (const outcome of outcomes) {
72
+ try {
73
+ this.publishOutcome(outcome);
74
+ }
75
+ catch (error) {
76
+ // A resource whose rows cannot be projected must not stop the others being published. The
77
+ // dominant cause is an authoring error the read path reports far more legibly.
78
+ this.logger.warn('Introspection recompilation could not be published', {
79
+ behavior: outcome.behavior,
80
+ error: error instanceof Error ? error.message : String(error),
81
+ });
82
+ }
83
+ }
84
+ });
85
+ }
86
+ stop() {
87
+ this.unsubscribe?.();
88
+ this.unsubscribe = undefined;
89
+ }
90
+ /** Publish every resource that projects the behavior this outcome recompiled. */
91
+ publishOutcome(outcome) {
92
+ if (!outcome.next)
93
+ return;
94
+ /*
95
+ * A FIRST compilation is not a change, and must not be published.
96
+ *
97
+ * With no previous state there is nothing to diff against, so every row would be reported as
98
+ * CREATED — which at boot means the whole catalog, for every resource, to every connected
99
+ * client. A client that has not read this resource yet learns it by reading; a client that has
100
+ * read it already holds rows this compilation did not move. Neither is served by an all-created
101
+ * wave, so the honest answer for "I have nothing to compare with" is silence.
102
+ */
103
+ if (!outcome.previous) {
104
+ this.logDebug('Skipped publication: first compilation has nothing to diff against', {
105
+ behavior: outcome.behavior,
106
+ generation: outcome.next.generation,
107
+ });
108
+ return;
109
+ }
110
+ const resourceTypes = this.resourceSource.resolveResourceTypesByBehavior().get(outcome.behavior) ?? [];
111
+ for (const resourceType of resourceTypes) {
112
+ const identityField = this.resourceSource.resolveRowIdentityField(resourceType);
113
+ const before = this.resourceSource.projectRowsForResource(resourceType, outcome.previous.result.data);
114
+ const after = this.resourceSource.projectRowsForResource(resourceType, outcome.next.result.data);
115
+ if (!after || !before)
116
+ continue;
117
+ const diff = diffProjectedRows(before, after, identityField);
118
+ this.publishDiff(resourceType, identityField, diff, outcome.next.generation);
119
+ }
120
+ }
121
+ /**
122
+ * Emit one sync-grade event per changed row, then one collection-level event.
123
+ *
124
+ * Both are needed and they serve different consumers. The per-row events reach a live
125
+ * `ResourceMutationManager` and repaint fields in place. The collection event reaches
126
+ * `WebSocketEventBridge`, which fans it out to `RESOURCE_REFRESH` and is what a LIST surface
127
+ * listens to — lists are served in `SUMMARY` mode and therefore cannot consume the RAW canonical
128
+ * replay a per-row sync carries.
129
+ */
130
+ publishDiff(resourceType, identityField, diff, generation) {
131
+ for (const row of diff.created) {
132
+ this.emitRow(resourceType, identityField, row, ResourceAction.CREATED, generation);
133
+ }
134
+ for (const row of diff.updated) {
135
+ this.emitRow(resourceType, identityField, row, ResourceAction.UPDATED, generation);
136
+ }
137
+ for (const deletedId of diff.deletedIds) {
138
+ this.websocketService.sendResourceData(resourceType, deletedId, CoreWebSocketEvent.RESOURCE_DELETED, ResourceAction.DELETED, {}, { operationIdentifier: CoreResourceOperation.DELETE, version: generation });
139
+ }
140
+ const changedCount = diff.created.length + diff.updated.length + diff.deletedIds.length;
141
+ if (changedCount === 0)
142
+ return;
143
+ this.emitCollectionRefresh(resourceType, identityField, diff);
144
+ this.logDebug('Published introspection recompilation', {
145
+ resourceType,
146
+ created: diff.created.length,
147
+ updated: diff.updated.length,
148
+ deleted: diff.deletedIds.length,
149
+ generation,
150
+ });
151
+ }
152
+ /**
153
+ * Tell every subscriber of this resource's COLLECTION that its rows moved.
154
+ *
155
+ * ## Why the per-row lane is not enough, measured rather than assumed
156
+ *
157
+ * `sendResourceData` emits into the PER-ROW room, and a client is only in that room while a live
158
+ * `ResourceMutationManager` holds it — `RMMWebSocketBridge` claims row rooms from live RMM
159
+ * instances and destroys one 100 ms after unmount. The application-creation workbench instantiates
160
+ * NONE: its surfaces are read-only lists and a graph. So on 2026-09-03 a source edit produced a
161
+ * correct, versioned, single-row publication that a browser sitting on the affected surface
162
+ * received **zero** frames of (issue #283). The producer was right and the room was empty.
163
+ *
164
+ * The collection lane has a subscriber that already exists and is already confirmed. The same
165
+ * browser sends `resource:subscribe` for these resource types and the server answers
166
+ * `{"success": true}` — those are SCOPE rooms, which is a different family from the row room the
167
+ * push went to. Emitting here is what makes the two meet.
168
+ *
169
+ * ## Why the APPLICATION room, and only that one
170
+ *
171
+ * Every resource this notifier serves is APPLICATION-scoped by declaration — the workbench's
172
+ * introspection resources anchor `isPrimaryScope: true` on `CoreResourceType.APPLICATION`, and
173
+ * their configuration says so in prose: "APPLICATION rather than ORGANIZATIONS on purpose: these
174
+ * rows describe the application's own structure". They carry no tenant dimension, so there is no
175
+ * organization or user room they could honestly be addressed by — and this notifier, which runs
176
+ * off a filesystem watcher rather than a request, has no principal whose org or user it could
177
+ * borrow. `app` is the only room that is true of the data.
178
+ *
179
+ * That room is joinable and authorized because issue #247 made it so; before that a client could
180
+ * not subscribe to it at all.
181
+ *
182
+ * ## Notification-grade on purpose
183
+ *
184
+ * No `resourceData`. A collection-room payload cannot settle a list's membership, ordering or
185
+ * pagination for a client whose query it does not know, so it says only "this collection moved"
186
+ * and lets the surface re-read. The per-row sync emit above is unchanged and stays authoritative
187
+ * for a client that IS holding the row.
188
+ */
189
+ emitCollectionRefresh(resourceType, identityField, diff) {
190
+ if (!this.appConfigService.isInitialized()) {
191
+ // Boot ordering only: a recompilation that beats app configuration has no room to address.
192
+ // The next recompilation carries the same rows, so nothing is lost that a re-read would not find.
193
+ return;
194
+ }
195
+ const applicationId = this.appConfigService.applicationId;
196
+ if (!applicationId)
197
+ return;
198
+ /*
199
+ * Refuse to address a TENANT's rows to the application room.
200
+ *
201
+ * Every introspection resource is APPLICATION-anchored today, so this never fires — and that is
202
+ * exactly why it is here rather than in a comment. The set is open: the day someone adds a
203
+ * tenant-scoped introspection resource, an application-room broadcast would carry one tenant's
204
+ * row ids to every user of the application, and nothing else in this path would notice.
205
+ */
206
+ if (!this.resourceSource.isApplicationScoped(resourceType)) {
207
+ this.logger.warn(`[IntrospectionResourceNotifier] '${resourceType}' is not APPLICATION-scoped, so its collection `
208
+ + 'event has no room that is true of its rows — emitting it to the application room would cross '
209
+ + 'a tenant boundary. Per-row sync is unaffected; only the collection lane is withheld.');
210
+ return;
211
+ }
212
+ /*
213
+ * The ids that actually moved, so a consumer that wants to be selective can be. `affectedIds`
214
+ * is `min(1)` by schema and we already returned on an empty diff, so this cannot be empty.
215
+ */
216
+ const affectedIds = [
217
+ ...diff.created.map((row) => row[identityField]),
218
+ ...diff.updated.map((row) => row[identityField]),
219
+ ...diff.deletedIds,
220
+ ].filter((id) => typeof id === 'string' && id.length > 0);
221
+ if (affectedIds.length === 0)
222
+ return;
223
+ this.websocketService.emitToScopeRooms(resourceType, [{ scopeKey: ResourceScopeRoomKey.APPLICATION, scopeId: applicationId }], CoreWebSocketEvent.RESOURCE_UPDATED, buildScopeRoomNotificationPayload({
224
+ resourceType,
225
+ resourceId: affectedIds[0],
226
+ // No principal and no tenant: this notifier runs off a filesystem watcher, and the rows it
227
+ // serves are application-wide. The room already carries the only identifier that is true.
228
+ contextResourceIdentifiers: { applicationId },
229
+ action: ResourceAction.UPDATED,
230
+ affectedIds,
231
+ operationIdentifier: CoreResourceOperation.LIST,
232
+ // Notification-grade: the collection moved. `currentObject` is deliberately absent — see
233
+ // the method docstring for why a scope room must not carry row data here.
234
+ currentObject: undefined,
235
+ }));
236
+ }
237
+ emitRow(resourceType, identityField, row, action, generation) {
238
+ const rowId = row[identityField];
239
+ if (typeof rowId !== 'string')
240
+ return;
241
+ this.websocketService.sendResourceData(resourceType, rowId, CoreWebSocketEvent.RESOURCE_UPDATED, action, row, {
242
+ operationIdentifier: CoreResourceOperation.READ,
243
+ // The canonical replay lane is RAW-only on both ends: the server resolves the READ DTO for
244
+ // this mode, and `CANONICAL_RMM_DATA_MODE` on the client is `RAW`. Declaring anything else
245
+ // makes the payload fail validation and be silently dropped rather than applied.
246
+ dataMode: DataMode.RAW,
247
+ version: generation,
248
+ });
249
+ }
250
+ };
251
+ IntrospectionResourceNotifierCompanionService = __decorate([
252
+ injectable(),
253
+ __param(0, inject(SAAS_SERVICE_TYPES.Logger)),
254
+ __param(1, inject(SAAS_SERVICE_TYPES.WebSocketService)),
255
+ __param(2, inject(COMPANION_SERVICE_TYPES.IntrospectionSourceWatcherService)),
256
+ __param(3, inject(SAAS_SERVICE_TYPES.IntrospectionResourceSource)),
257
+ __param(4, inject(SAAS_SERVICE_TYPES.AppConfigService)),
258
+ __metadata("design:paramtypes", [Function, Function, Function, Function, Function])
259
+ ], IntrospectionResourceNotifierCompanionService);
260
+ export { IntrospectionResourceNotifierCompanionService };
261
+ /**
262
+ * Compare two projections of one resource by the identity the binding composes.
263
+ *
264
+ * Exported for its own test: this is the whole of what decides whether a frontend repaints one row
265
+ * or ninety-three, and it is the only part of the notification path this repository owns.
266
+ *
267
+ * An `updated` row is one whose serialized content differs. Serializing is honest here for the same
268
+ * reason it is in the state service's payload comparison — a row is produced by one code path from
269
+ * one imported module graph, so key order is stable between two runs of the same bytes.
270
+ */
271
+ export function diffProjectedRows(before, after, identityField) {
272
+ const beforeById = new Map();
273
+ for (const row of before) {
274
+ const id = row[identityField];
275
+ if (typeof id === 'string')
276
+ beforeById.set(id, row);
277
+ }
278
+ const created = [];
279
+ const updated = [];
280
+ const seen = new Set();
281
+ for (const row of after) {
282
+ const id = row[identityField];
283
+ if (typeof id !== 'string')
284
+ continue;
285
+ seen.add(id);
286
+ const previous = beforeById.get(id);
287
+ if (!previous) {
288
+ created.push(row);
289
+ continue;
290
+ }
291
+ if (JSON.stringify(previous) !== JSON.stringify(row)) {
292
+ updated.push(row);
293
+ }
294
+ }
295
+ const deletedIds = [...beforeById.keys()].filter((id) => !seen.has(id));
296
+ return { created, updated, deletedIds };
297
+ }
298
+ //# sourceMappingURL=introspection-resource-notifier.companion.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"introspection-resource-notifier.companion.service.js","sourceRoot":"","sources":["../../../../../../src/core/introspection/resources/introspection-resource-notifier.companion.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAE/C,OAAO,EAAE,iCAAiC,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACnG,OAAO,EACL,qBAAqB,EACrB,kBAAkB,EAClB,QAAQ,EACR,cAAc,EACd,oBAAoB,GACrB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAiB5E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEI,IAAM,6CAA6C,GAAnD,MAAM,6CAA6C;IAKF;IACU;IAE7C;IAQA;IAOA;IAtBF,QAAQ,CAA+D;IAChF,WAAW,CAA2B;IAE9C,YACsD,MAAqB,EACX,gBAAkC,EAE/E,OAAmD,EAQnD,cAA2D,EAO3D,gBAAyC;QAlBN,WAAM,GAAN,MAAM,CAAe;QACX,qBAAgB,GAAhB,gBAAgB,CAAkB;QAE/E,YAAO,GAAP,OAAO,CAA4C;QAQnD,mBAAc,GAAd,cAAc,CAA6C;QAO3D,qBAAgB,GAAhB,gBAAgB,CAAyB;QAE1D,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,+BAA+B,CAAC,CAAC;QACzE,IAAI,CAAC,MAAM,CAAC,mBAAmB,CAAC,+BAA+B,EAAE,IAAI,CAAC,CAAC;IACzE,CAA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,QAAQ,GAAG,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QACpC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACd,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAClB,SAAS;QACX,CAAC;QACD,IAAI,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC;YACrD,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACpB,CAAC;IACH,CAAC;IAED,MAAM,UAAU,GAAG,CAAC,GAAG,UAAU,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;IACxE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;AAC1C,CAAC","sourcesContent":["import { inject, injectable } from 'inversify';\nimport type { AppConfigurationService, LoggerService, WebSocketService } from '@wildo-ai/saas-backend-lib';\nimport { buildScopeRoomNotificationPayload, SAAS_SERVICE_TYPES } from '@wildo-ai/saas-backend-lib';\nimport {\n CoreResourceOperation,\n CoreWebSocketEvent,\n DataMode,\n ResourceAction,\n ResourceScopeRoomKey,\n} from '@wildo-ai/saas-models';\n\nimport { COMPANION_SERVICE_TYPES } from '../../inject/models/service-types';\nimport type { IntrospectionRecompileOutcome } from '../services/introspection-derivation-state.companion.service';\nimport type { IntrospectionSourceWatcherCompanionService } from '../services/introspection-source-watcher.companion.service';\nimport type { IntrospectionResourceSourceCompanionService } from './introspection-resource-source.companion.service';\n\n/**\n * What one recompilation did to one resource's rows.\n *\n * Deliberately the same three verbs the engine's `ResourceAction` already publishes, because the\n * consumer is `RMMWebSocketBridge` and it already knows how to apply exactly these.\n */\ninterface ProjectedRowDiff {\n readonly created: readonly Record<string, unknown>[];\n readonly updated: readonly Record<string, unknown>[];\n readonly deletedIds: readonly string[];\n}\n\n/**\n * Publishes an introspection recompilation to the frontends watching it.\n *\n * ## What this joins, rather than builds\n *\n * Every part of the delivery already existed and none of it was reachable from here:\n *\n * - the companion MOUNTS the engine WebSocket server (`skipWebSocket: false`), and before this\n * change held no reference to `WebSocketService` at all — it served a frontend and emitted nothing;\n * - `sendResourceData` builds a sync-grade payload and validates the row against the resource's own\n * canonical READ DTO before it leaves the process;\n * - `RMMWebSocketBridge` receives that payload, re-validates it, diffs it FIELD BY FIELD against\n * what the client holds, and applies the result with no refetch.\n *\n * So a changed row travels from a `tsc` emit to a repainted field without anybody asking for it, and\n * the only new code is the diff below.\n *\n * ## Why the diff is computed here rather than pushed wholesale\n *\n * A recompilation of a 93-row derivation in which one row moved must not repaint 93 rows. The rows\n * are keyed by the identity the binding already composes — the same value a READ addresses — so the\n * three sets fall out of a map comparison, and a derivation that recompiled to a byte-identical\n * payload never reaches this service at all (the state service reports it as unchanged).\n *\n * ## The `version` is the derivation's generation, and that is load-bearing\n *\n * `sendResourceData` refuses a non-DELETED sync payload with no version, and\n * `ResourceMutationManager` DROPS any update whose version is not strictly greater than the one it\n * holds. Introspection rows carry no `_version`, so the generation is supplied explicitly — and it\n * is wall-clock-derived precisely so that a companion restart cannot hand an open browser tab a\n * lower number than it already has, which would silently freeze that tab forever.\n */\n@injectable()\nexport class IntrospectionResourceNotifierCompanionService {\n private readonly logDebug: (message: string, context?: Record<string, unknown>) => void;\n private unsubscribe: (() => void) | undefined;\n\n constructor(\n @inject(SAAS_SERVICE_TYPES.Logger) private readonly logger: LoggerService,\n @inject(SAAS_SERVICE_TYPES.WebSocketService) private readonly websocketService: WebSocketService,\n @inject(COMPANION_SERVICE_TYPES.IntrospectionSourceWatcherService)\n private readonly watcher: IntrospectionSourceWatcherCompanionService,\n /*\n * Injected by the ENGINE port symbol it is bound under, not by a companion-local one. The\n * companion binds this class as `SAAS_SERVICE_TYPES.IntrospectionResourceSource`; adding a\n * second symbol for the same singleton would make two names for one thing and invite a future\n * binding to satisfy one of them with a different instance.\n */\n @inject(SAAS_SERVICE_TYPES.IntrospectionResourceSource)\n private readonly resourceSource: IntrospectionResourceSourceCompanionService,\n /*\n * Read ONLY for the application id the collection lane addresses its room by. The companion\n * initialises this service with `runtimeEnv.APPLICATION_ID` at startup, which is the same id an\n * APPLICATION-scoped resource's room is keyed on.\n */\n @inject(SAAS_SERVICE_TYPES.AppConfigService)\n private readonly appConfigService: AppConfigurationService,\n ) {\n this.logDebug = this.logger.debugByType('IntrospectionResourceNotifier');\n this.logger.setDebugTypeLogging('IntrospectionResourceNotifier', true);\n }\n\n /** Begin publishing recompilations. Idempotent. */\n public start(): void {\n if (this.unsubscribe) return;\n this.unsubscribe = this.watcher.onRecompiled((outcomes) => {\n for (const outcome of outcomes) {\n try {\n this.publishOutcome(outcome);\n } catch (error) {\n // A resource whose rows cannot be projected must not stop the others being published. The\n // dominant cause is an authoring error the read path reports far more legibly.\n this.logger.warn('Introspection recompilation could not be published', {\n behavior: outcome.behavior,\n error: error instanceof Error ? error.message : String(error),\n });\n }\n }\n });\n }\n\n public stop(): void {\n this.unsubscribe?.();\n this.unsubscribe = undefined;\n }\n\n /** Publish every resource that projects the behavior this outcome recompiled. */\n private publishOutcome(outcome: IntrospectionRecompileOutcome): void {\n if (!outcome.next) return;\n\n /*\n * A FIRST compilation is not a change, and must not be published.\n *\n * With no previous state there is nothing to diff against, so every row would be reported as\n * CREATED — which at boot means the whole catalog, for every resource, to every connected\n * client. A client that has not read this resource yet learns it by reading; a client that has\n * read it already holds rows this compilation did not move. Neither is served by an all-created\n * wave, so the honest answer for \"I have nothing to compare with\" is silence.\n */\n if (!outcome.previous) {\n this.logDebug('Skipped publication: first compilation has nothing to diff against', {\n behavior: outcome.behavior,\n generation: outcome.next.generation,\n });\n return;\n }\n\n const resourceTypes = this.resourceSource.resolveResourceTypesByBehavior().get(outcome.behavior) ?? [];\n for (const resourceType of resourceTypes) {\n const identityField = this.resourceSource.resolveRowIdentityField(resourceType);\n const before = this.resourceSource.projectRowsForResource(resourceType, outcome.previous.result.data);\n const after = this.resourceSource.projectRowsForResource(resourceType, outcome.next.result.data);\n if (!after || !before) continue;\n\n const diff = diffProjectedRows(before, after, identityField);\n this.publishDiff(resourceType, identityField, diff, outcome.next.generation);\n }\n }\n\n /**\n * Emit one sync-grade event per changed row, then one collection-level event.\n *\n * Both are needed and they serve different consumers. The per-row events reach a live\n * `ResourceMutationManager` and repaint fields in place. The collection event reaches\n * `WebSocketEventBridge`, which fans it out to `RESOURCE_REFRESH` and is what a LIST surface\n * listens to — lists are served in `SUMMARY` mode and therefore cannot consume the RAW canonical\n * replay a per-row sync carries.\n */\n private publishDiff(\n resourceType: string,\n identityField: string,\n diff: ProjectedRowDiff,\n generation: number,\n ): void {\n for (const row of diff.created) {\n this.emitRow(resourceType, identityField, row, ResourceAction.CREATED, generation);\n }\n for (const row of diff.updated) {\n this.emitRow(resourceType, identityField, row, ResourceAction.UPDATED, generation);\n }\n for (const deletedId of diff.deletedIds) {\n this.websocketService.sendResourceData(\n resourceType,\n deletedId,\n CoreWebSocketEvent.RESOURCE_DELETED,\n ResourceAction.DELETED,\n {},\n { operationIdentifier: CoreResourceOperation.DELETE, version: generation },\n );\n }\n\n const changedCount = diff.created.length + diff.updated.length + diff.deletedIds.length;\n if (changedCount === 0) return;\n\n this.emitCollectionRefresh(resourceType, identityField, diff);\n\n this.logDebug('Published introspection recompilation', {\n resourceType,\n created: diff.created.length,\n updated: diff.updated.length,\n deleted: diff.deletedIds.length,\n generation,\n });\n }\n\n /**\n * Tell every subscriber of this resource's COLLECTION that its rows moved.\n *\n * ## Why the per-row lane is not enough, measured rather than assumed\n *\n * `sendResourceData` emits into the PER-ROW room, and a client is only in that room while a live\n * `ResourceMutationManager` holds it — `RMMWebSocketBridge` claims row rooms from live RMM\n * instances and destroys one 100 ms after unmount. The application-creation workbench instantiates\n * NONE: its surfaces are read-only lists and a graph. So on 2026-09-03 a source edit produced a\n * correct, versioned, single-row publication that a browser sitting on the affected surface\n * received **zero** frames of (issue #283). The producer was right and the room was empty.\n *\n * The collection lane has a subscriber that already exists and is already confirmed. The same\n * browser sends `resource:subscribe` for these resource types and the server answers\n * `{\"success\": true}` — those are SCOPE rooms, which is a different family from the row room the\n * push went to. Emitting here is what makes the two meet.\n *\n * ## Why the APPLICATION room, and only that one\n *\n * Every resource this notifier serves is APPLICATION-scoped by declaration — the workbench's\n * introspection resources anchor `isPrimaryScope: true` on `CoreResourceType.APPLICATION`, and\n * their configuration says so in prose: \"APPLICATION rather than ORGANIZATIONS on purpose: these\n * rows describe the application's own structure\". They carry no tenant dimension, so there is no\n * organization or user room they could honestly be addressed by — and this notifier, which runs\n * off a filesystem watcher rather than a request, has no principal whose org or user it could\n * borrow. `app` is the only room that is true of the data.\n *\n * That room is joinable and authorized because issue #247 made it so; before that a client could\n * not subscribe to it at all.\n *\n * ## Notification-grade on purpose\n *\n * No `resourceData`. A collection-room payload cannot settle a list's membership, ordering or\n * pagination for a client whose query it does not know, so it says only \"this collection moved\"\n * and lets the surface re-read. The per-row sync emit above is unchanged and stays authoritative\n * for a client that IS holding the row.\n */\n private emitCollectionRefresh(\n resourceType: string,\n identityField: string,\n diff: ProjectedRowDiff,\n ): void {\n if (!this.appConfigService.isInitialized()) {\n // Boot ordering only: a recompilation that beats app configuration has no room to address.\n // The next recompilation carries the same rows, so nothing is lost that a re-read would not find.\n return;\n }\n\n const applicationId = this.appConfigService.applicationId;\n if (!applicationId) return;\n\n /*\n * Refuse to address a TENANT's rows to the application room.\n *\n * Every introspection resource is APPLICATION-anchored today, so this never fires — and that is\n * exactly why it is here rather than in a comment. The set is open: the day someone adds a\n * tenant-scoped introspection resource, an application-room broadcast would carry one tenant's\n * row ids to every user of the application, and nothing else in this path would notice.\n */\n if (!this.resourceSource.isApplicationScoped(resourceType)) {\n this.logger.warn(\n `[IntrospectionResourceNotifier] '${resourceType}' is not APPLICATION-scoped, so its collection `\n + 'event has no room that is true of its rows — emitting it to the application room would cross '\n + 'a tenant boundary. Per-row sync is unaffected; only the collection lane is withheld.',\n );\n return;\n }\n\n /*\n * The ids that actually moved, so a consumer that wants to be selective can be. `affectedIds`\n * is `min(1)` by schema and we already returned on an empty diff, so this cannot be empty.\n */\n const affectedIds = [\n ...diff.created.map((row) => row[identityField]),\n ...diff.updated.map((row) => row[identityField]),\n ...diff.deletedIds,\n ].filter((id): id is string => typeof id === 'string' && id.length > 0);\n if (affectedIds.length === 0) return;\n\n this.websocketService.emitToScopeRooms(\n resourceType,\n [{ scopeKey: ResourceScopeRoomKey.APPLICATION, scopeId: applicationId }],\n CoreWebSocketEvent.RESOURCE_UPDATED,\n buildScopeRoomNotificationPayload({\n resourceType,\n resourceId: affectedIds[0],\n // No principal and no tenant: this notifier runs off a filesystem watcher, and the rows it\n // serves are application-wide. The room already carries the only identifier that is true.\n contextResourceIdentifiers: { applicationId },\n action: ResourceAction.UPDATED,\n affectedIds,\n operationIdentifier: CoreResourceOperation.LIST,\n // Notification-grade: the collection moved. `currentObject` is deliberately absent — see\n // the method docstring for why a scope room must not carry row data here.\n currentObject: undefined,\n }),\n );\n }\n\n private emitRow(\n resourceType: string,\n identityField: string,\n row: Record<string, unknown>,\n action: ResourceAction,\n generation: number,\n ): void {\n const rowId = row[identityField];\n if (typeof rowId !== 'string') return;\n this.websocketService.sendResourceData(\n resourceType,\n rowId,\n CoreWebSocketEvent.RESOURCE_UPDATED,\n action,\n row,\n {\n operationIdentifier: CoreResourceOperation.READ,\n // The canonical replay lane is RAW-only on both ends: the server resolves the READ DTO for\n // this mode, and `CANONICAL_RMM_DATA_MODE` on the client is `RAW`. Declaring anything else\n // makes the payload fail validation and be silently dropped rather than applied.\n dataMode: DataMode.RAW,\n version: generation,\n },\n );\n }\n}\n\n/**\n * Compare two projections of one resource by the identity the binding composes.\n *\n * Exported for its own test: this is the whole of what decides whether a frontend repaints one row\n * or ninety-three, and it is the only part of the notification path this repository owns.\n *\n * An `updated` row is one whose serialized content differs. Serializing is honest here for the same\n * reason it is in the state service's payload comparison — a row is produced by one code path from\n * one imported module graph, so key order is stable between two runs of the same bytes.\n */\nexport function diffProjectedRows(\n before: readonly Record<string, unknown>[],\n after: readonly Record<string, unknown>[],\n identityField: string,\n): ProjectedRowDiff {\n const beforeById = new Map<string, Record<string, unknown>>();\n for (const row of before) {\n const id = row[identityField];\n if (typeof id === 'string') beforeById.set(id, row);\n }\n\n const created: Record<string, unknown>[] = [];\n const updated: Record<string, unknown>[] = [];\n const seen = new Set<string>();\n\n for (const row of after) {\n const id = row[identityField];\n if (typeof id !== 'string') continue;\n seen.add(id);\n const previous = beforeById.get(id);\n if (!previous) {\n created.push(row);\n continue;\n }\n if (JSON.stringify(previous) !== JSON.stringify(row)) {\n updated.push(row);\n }\n }\n\n const deletedIds = [...beforeById.keys()].filter((id) => !seen.has(id));\n return { created, updated, deletedIds };\n}\n"]}
@@ -1,13 +1,67 @@
1
1
  import { type IntrospectionResourceQuery, type IntrospectionResourceRows, type IntrospectionResourceSourceBackendPort, type ResourcesRegistryBackendService } from '@wildo-ai/saas-backend-lib';
2
2
  import type { CompanionContext } from '../../context/companion-context';
3
3
  import type { CompanionIntrospectionService } from '../services/companion-introspection.companion.service';
4
+ import { CreationPlaneProjectionCompanionService } from './creation-plane-projection.companion.service';
4
5
  export declare class IntrospectionResourceSourceCompanionService implements IntrospectionResourceSourceBackendPort {
5
6
  private readonly introspectionService;
6
7
  private readonly companionContext;
7
8
  private readonly resourcesRegistry;
8
- constructor(introspectionService: CompanionIntrospectionService, companionContext: CompanionContext, resourcesRegistry: ResourcesRegistryBackendService);
9
+ private readonly creationPlane;
10
+ constructor(introspectionService: CompanionIntrospectionService, companionContext: CompanionContext, resourcesRegistry: ResourcesRegistryBackendService, creationPlane: CreationPlaneProjectionCompanionService);
9
11
  supports(resourceType: string): boolean;
10
12
  deriveRows(query: IntrospectionResourceQuery): Promise<IntrospectionResourceRows>;
13
+ /**
14
+ * Compile every introspection behavior the registry declares, before anyone reads one.
15
+ *
16
+ * A supervised restart empties the compiled state, and restarts are frequent — 26 self-sent
17
+ * SIGTERMs were logged in one wonder-crm session on 2026-09-02. Without this, the first operator
18
+ * to open the workbench after any restart pays a full cold derivation, measured at 8.8 s.
19
+ *
20
+ * One request per BEHAVIOR rather than per resource: two resources projecting one behavior are one
21
+ * derivation, so asking once keeps the count honest about how much work was actually done.
22
+ * Creation-plane behaviors are skipped — they are served in-process from the companion's own
23
+ * runtime state, carry their own cache, and have no subprocess to warm.
24
+ *
25
+ * Never throws. Warming is a latency improvement over a path that already works, and the caller
26
+ * treats a failure as a warning: a companion that refused to finish booting because an
27
+ * application's `dist` was mid-build would need the companion this failure just prevented from
28
+ * starting in order to be repaired.
29
+ */
30
+ warmDeclaredDerivations(): Promise<{
31
+ readonly attempted: number;
32
+ readonly failed: number;
33
+ }>;
34
+ /**
35
+ * Every INTROSPECTION-backed resource in the registry, grouped by the behavior it projects.
36
+ *
37
+ * The notifier needs the reverse of what a read needs: a read has a resource and wants its
38
+ * behavior, while a recompilation has a behavior and wants every resource whose rows just moved.
39
+ * Derived from the SAME registry declarations rather than from a table, for the reason the class
40
+ * docstring already gives — a second enumeration of a population the resource configurations
41
+ * define would agree only until one side gained an entry.
42
+ */
43
+ resolveResourceTypesByBehavior(): ReadonlyMap<string, readonly string[]>;
44
+ /**
45
+ * Project a raw behavior payload into this resource's rows, exactly as a read would.
46
+ *
47
+ * Public because a recompilation has to produce the same rows a read would have produced, and
48
+ * projecting them a second way is how a pushed row and a fetched row come to disagree about the
49
+ * same source.
50
+ */
51
+ projectRowsForResource(resourceType: string, data: unknown): readonly Record<string, unknown>[] | undefined;
52
+ /** The resource's primary-key field name, for a caller keying rows it did not read. */
53
+ resolveRowIdentityField(resourceType: string): string;
54
+ /**
55
+ * Whether this resource's rows belong to the APPLICATION rather than to a tenant.
56
+ *
57
+ * Asked by the notifier before it addresses a collection event to the application room. Every
58
+ * introspection resource is APPLICATION-anchored today — all four `isPrimaryScope: true` anchors
59
+ * in the workbench resolve to `CoreResourceType.APPLICATION` — but that set is OPEN, and the day
60
+ * a tenant-scoped one is added, an application-room broadcast would carry one tenant's row ids to
61
+ * every user of the application. Asking the registry keeps the answer with the declaration
62
+ * instead of with a comment that has to stay true.
63
+ */
64
+ isApplicationScoped(resourceType: string): boolean;
11
65
  private resolveBinding;
12
66
  /**
13
67
  * The resource's OWN primary-key field name, which composed identity is written to.
@@ -94,4 +148,27 @@ export declare class IntrospectionResourceSourceCompanionService implements Intr
94
148
  */
95
149
  private assertAddressable;
96
150
  }
151
+ /**
152
+ * Honor the filters a LIST actually carried — or REFUSE the ones this source cannot apply.
153
+ *
154
+ * Filters reach an introspection LIST only when the operation DECLARES `filterFields` (the
155
+ * controller's `extractCollectionFilters` allow-lists on those keys), so until the first workbench
156
+ * resource declared any, this function's absence was coherent. The moment one is declared, silence
157
+ * stops being an option: a declared filter that is quietly dropped returns the UNFILTERED set
158
+ * wearing a filtered label — the caller's quick-filter tab selects `intent` and the page shows all
159
+ * fifteen rows, with nothing anywhere reporting the lie. That is the `--state ready` defect class,
160
+ * and it is worse than a refusal.
161
+ *
162
+ * What is honored is deliberately NARROW: scalar equality, and an array of scalars as IN — the two
163
+ * shapes an enum quick-filter and a filters panel emit. A shape outside that (a range object, a
164
+ * nested operator) throws naming the field, because "I cannot apply your filter" must never be
165
+ * indistinguishable from "your filter matched everything".
166
+ *
167
+ * `createdAt`/`updatedAt` are allow-listed by the controller UNIVERSALLY, but these derived rows
168
+ * carry no timestamps — the same refusal covers them the day something sends one.
169
+ *
170
+ * A pure exported function rather than a private method, so the refusal and both honored shapes are
171
+ * pinnable without constructing the service's three-injection DI surface.
172
+ */
173
+ export declare function applyScalarRowFilters(rows: readonly Record<string, unknown>[], filter: unknown, resourceType: string): readonly Record<string, unknown>[];
97
174
  //# sourceMappingURL=introspection-resource-source.companion.service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"introspection-resource-source.companion.service.d.ts","sourceRoot":"","sources":["../../../../../../src/core/introspection/resources/introspection-resource-source.companion.service.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,EAC9B,KAAK,sCAAsC,EAC3C,KAAK,+BAA+B,EACrC,MAAM,4BAA4B,CAAC;AAIpC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,uDAAuD,CAAC;AAgD3G,qBACa,2CAA4C,YAAW,sCAAsC;IAGtG,OAAO,CAAC,QAAQ,CAAC,oBAAoB;IAErC,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IAEjC,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBAJjB,oBAAoB,EAAE,6BAA6B,EAEnD,gBAAgB,EAAE,gBAAgB,EAElC,iBAAiB,EAAE,+BAA+B;IAG9D,QAAQ,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO;IAIjC,UAAU,CAAC,KAAK,EAAE,0BAA0B,GAAG,OAAO,CAAC,yBAAyB,CAAC;IA0B9F,OAAO,CAAC,cAAc;IAOtB;;;;;;OAMG;IACH,OAAO,CAAC,sBAAsB;IAc9B;;;;;;OAMG;IACH,OAAO,CAAC,iBAAiB;IAQzB;;;;;;;;;OASG;IACH,OAAO,CAAC,WAAW;IAgBnB;;;;;;;;;;;;;;;;;OAiBG;IACH,OAAO,CAAC,qBAAqB;IAsC7B;;;;;;;;;;;;;;;OAeG;IACH,OAAO,CAAC,UAAU;IAWlB;;;;;;OAMG;IACH,OAAO,CAAC,kBAAkB;IAS1B;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,iBAAiB;CAsB1B"}
1
+ {"version":3,"file":"introspection-resource-source.companion.service.d.ts","sourceRoot":"","sources":["../../../../../../src/core/introspection/resources/introspection-resource-source.companion.service.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,EAC9B,KAAK,sCAAsC,EAC3C,KAAK,+BAA+B,EACrC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