@powerhousedao/switchboard 6.2.3-dev.58 → 6.2.3-dev.59

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 (38) hide show
  1. package/.tsbuild/test/plugin-presence.test.d.ts +2 -0
  2. package/.tsbuild/test/plugin-presence.test.d.ts.map +1 -0
  3. package/.tsbuild/tsconfig.tsbuildinfo +1 -1
  4. package/CHANGELOG.md +22 -0
  5. package/dist/index.mjs +1 -1
  6. package/dist/mcp-cNWW82NH.mjs +27 -0
  7. package/dist/mcp-cNWW82NH.mjs.map +1 -0
  8. package/dist/plugin-host-CGO4XZzK.d.mts +38 -0
  9. package/dist/plugin-host-CGO4XZzK.d.mts.map +1 -0
  10. package/dist/plugins/attachments.d.mts +23 -0
  11. package/dist/plugins/attachments.d.mts.map +1 -0
  12. package/dist/plugins/attachments.mjs +4 -0
  13. package/dist/plugins/mcp.d.mts +21 -0
  14. package/dist/plugins/mcp.d.mts.map +1 -0
  15. package/dist/plugins/mcp.mjs +4 -0
  16. package/dist/plugins/privacy.d.mts +12 -0
  17. package/dist/plugins/privacy.d.mts.map +1 -0
  18. package/dist/plugins/privacy.mjs +4 -0
  19. package/dist/plugins/workflows.d.mts +36 -0
  20. package/dist/plugins/workflows.d.mts.map +1 -0
  21. package/dist/plugins/workflows.mjs +4 -0
  22. package/dist/privacy-C8KVimKF.mjs +113 -0
  23. package/dist/privacy-C8KVimKF.mjs.map +1 -0
  24. package/dist/{server-Cw2WnaCA.mjs → server-Ncv91CrC.mjs} +187 -1359
  25. package/dist/server-Ncv91CrC.mjs.map +1 -0
  26. package/dist/server.d.mts +12 -14
  27. package/dist/server.d.mts.map +1 -1
  28. package/dist/server.mjs +3 -3
  29. package/dist/workflow-runtime-7GaJ13c9.d.mts +30 -0
  30. package/dist/workflow-runtime-7GaJ13c9.d.mts.map +1 -0
  31. package/dist/workflows-qKtqZhn3.mjs +1338 -0
  32. package/dist/workflows-qKtqZhn3.mjs.map +1 -0
  33. package/package.json +42 -17
  34. package/test/boot-mcp-enabled.test.ts +10 -1
  35. package/test/plugin-presence.test.ts +269 -0
  36. package/tsconfig.json +3 -0
  37. package/tsdown.config.ts +6 -0
  38. package/dist/server-Cw2WnaCA.mjs.map +0 -1
package/dist/server.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { a as StoredDocumentsRefusedError, i as startSwitchboard, n as deriveAttachmentServiceConfig, o as resolveUnsupportedStoredDocuments, r as isPortAvailable, s as applySwitchboardReactorDefaults, t as createReactorKysely } from "./server-Cw2WnaCA.mjs";
2
+ import { a as StoredDocumentsRefusedError, c as applySwitchboardReactorDefaults, i as startSwitchboard, n as deriveAttachmentServiceConfig, o as resolveUnsupportedStoredDocuments, r as isPortAvailable, t as createReactorKysely } from "./server-Ncv91CrC.mjs";
3
3
  export { StoredDocumentsRefusedError, applySwitchboardReactorDefaults, createReactorKysely, deriveAttachmentServiceConfig, isPortAvailable, resolveUnsupportedStoredDocuments, startSwitchboard };
4
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="a0774745-54c0-5116-aa98-7bec55598af8")}catch(e){}}();
5
- //# debugId=a0774745-54c0-5116-aa98-7bec55598af8
4
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="92a03219-a110-573c-a7ff-5957043b6ef7")}catch(e){}}();
5
+ //# debugId=92a03219-a110-573c-a7ff-5957043b6ef7
@@ -0,0 +1,30 @@
1
+ import { ILogger } from "document-model";
2
+ import { IReactorClient, InProcessReactorClientModule, ModelManifestEntry, ReactorBuilder } from "@powerhousedao/reactor";
3
+ import { SubgraphClass } from "@powerhousedao/reactor-api";
4
+ import "@powerhousedao/shared/document-model";
5
+ import "@powerhousedao/reactor-workflow";
6
+ import "@powerhousedao/shared/processors";
7
+ //#region src/workflow-runtime.d.mts
8
+ /** Whether the operation intake is indexing. Same shape as the attachment
9
+ * reference projection, because it is the same limitation. */
10
+ type WorkflowTriggersCapability = {
11
+ status: "available";
12
+ } | {
13
+ status: "unavailable";
14
+ reason: "in-process-reactor-module-unavailable" | "live-read-model-registration-unsupported" | "workflow-singleton-lost";
15
+ };
16
+ interface ComposedWorkflowRuntime {
17
+ subgraph: SubgraphClass;
18
+ /** Whether document operations reach the runtime at all; unavailable once
19
+ * the singleton is lost. */
20
+ readonly triggers: WorkflowTriggersCapability;
21
+ /** The owner name this host holds the workflow singleton under; undefined
22
+ * when the lease was not taken (a suite that opted out). */
23
+ singletonOwner?: string;
24
+ start(): Promise<void>;
25
+ stop(): Promise<void>;
26
+ }
27
+ //#endregion
28
+ export { WorkflowTriggersCapability as n, ComposedWorkflowRuntime as t };
29
+ export {};
30
+ //# sourceMappingURL=workflow-runtime-7GaJ13c9.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-runtime-7GaJ13c9.d.mts","names":[],"sources":["../src/workflow-runtime.mts"],"mappings":";;;;;;;;;KAiEY;EACN;;EAEA;EACA;;UAuRW;EACf,UAAU;;;WAGD,UAAU;;;EAGnB;EACA,SAAS;EACT,QAAQ"}