@memberjunction/core-actions 6.3.0-edge.0 → 6.3.0-edge.2

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 (200) hide show
  1. package/README.md +13 -0
  2. package/dist/custom/ai/agent-channel.action.d.ts +29 -0
  3. package/dist/custom/ai/agent-channel.action.d.ts.map +1 -0
  4. package/dist/custom/ai/agent-channel.action.js +843 -0
  5. package/dist/custom/ai/agent-channel.action.js.map +1 -0
  6. package/dist/custom/ai/chief-of-staff-approval-helper.d.ts +16 -0
  7. package/dist/custom/ai/chief-of-staff-approval-helper.d.ts.map +1 -0
  8. package/dist/custom/ai/chief-of-staff-approval-helper.js +63 -0
  9. package/dist/custom/ai/chief-of-staff-approval-helper.js.map +1 -0
  10. package/dist/custom/ai/chief-of-staff-core-reads.action.d.ts +64 -0
  11. package/dist/custom/ai/chief-of-staff-core-reads.action.d.ts.map +1 -0
  12. package/dist/custom/ai/chief-of-staff-core-reads.action.js +1097 -0
  13. package/dist/custom/ai/chief-of-staff-core-reads.action.js.map +1 -0
  14. package/dist/custom/ai/chief-of-staff-rhythms-suggestions.action.d.ts +28 -0
  15. package/dist/custom/ai/chief-of-staff-rhythms-suggestions.action.d.ts.map +1 -0
  16. package/dist/custom/ai/chief-of-staff-rhythms-suggestions.action.js +817 -0
  17. package/dist/custom/ai/chief-of-staff-rhythms-suggestions.action.js.map +1 -0
  18. package/dist/custom/ai/configure-agent-user-policy.action.d.ts +1 -0
  19. package/dist/custom/ai/configure-agent-user-policy.action.d.ts.map +1 -1
  20. package/dist/custom/ai/configure-agent-user-policy.action.js +5 -1
  21. package/dist/custom/ai/configure-agent-user-policy.action.js.map +1 -1
  22. package/dist/custom/ai/manage-my-agent-instance.action.d.ts +39 -0
  23. package/dist/custom/ai/manage-my-agent-instance.action.d.ts.map +1 -0
  24. package/dist/custom/ai/manage-my-agent-instance.action.js +752 -0
  25. package/dist/custom/ai/manage-my-agent-instance.action.js.map +1 -0
  26. package/dist/custom/ai/prepare-outbound-call-brief.action.js +1 -1
  27. package/dist/custom/ai/prepare-outbound-call-brief.action.js.map +1 -1
  28. package/dist/custom/ai/schedule-next-agent-wake.action.d.ts +2 -0
  29. package/dist/custom/ai/schedule-next-agent-wake.action.d.ts.map +1 -1
  30. package/dist/custom/ai/schedule-next-agent-wake.action.js +105 -2
  31. package/dist/custom/ai/schedule-next-agent-wake.action.js.map +1 -1
  32. package/dist/custom/ai/send-inter-agent-request.action.d.ts +1 -0
  33. package/dist/custom/ai/send-inter-agent-request.action.d.ts.map +1 -1
  34. package/dist/custom/ai/send-inter-agent-request.action.js +72 -18
  35. package/dist/custom/ai/send-inter-agent-request.action.js.map +1 -1
  36. package/dist/custom/ai/test-runtime-action.action.d.ts.map +1 -1
  37. package/dist/custom/ai/test-runtime-action.action.js +6 -1
  38. package/dist/custom/ai/test-runtime-action.action.js.map +1 -1
  39. package/dist/custom/ai/trigger-agent-wake.action.d.ts +1 -0
  40. package/dist/custom/ai/trigger-agent-wake.action.d.ts.map +1 -1
  41. package/dist/custom/ai/trigger-agent-wake.action.js +3 -0
  42. package/dist/custom/ai/trigger-agent-wake.action.js.map +1 -1
  43. package/dist/custom/ai/user-scoped-communication.action.d.ts +20 -0
  44. package/dist/custom/ai/user-scoped-communication.action.d.ts.map +1 -1
  45. package/dist/custom/ai/user-scoped-communication.action.js +140 -23
  46. package/dist/custom/ai/user-scoped-communication.action.js.map +1 -1
  47. package/dist/custom/artifacts/base-governed-artifact.action.d.ts +30 -0
  48. package/dist/custom/artifacts/base-governed-artifact.action.d.ts.map +1 -0
  49. package/dist/custom/artifacts/base-governed-artifact.action.js +201 -0
  50. package/dist/custom/artifacts/base-governed-artifact.action.js.map +1 -0
  51. package/dist/custom/artifacts/create-governed-artifact.action.d.ts +11 -0
  52. package/dist/custom/artifacts/create-governed-artifact.action.d.ts.map +1 -0
  53. package/dist/custom/artifacts/create-governed-artifact.action.js +104 -0
  54. package/dist/custom/artifacts/create-governed-artifact.action.js.map +1 -0
  55. package/dist/custom/artifacts/index.d.ts +6 -0
  56. package/dist/custom/artifacts/index.d.ts.map +1 -0
  57. package/dist/custom/artifacts/index.js +6 -0
  58. package/dist/custom/artifacts/index.js.map +1 -0
  59. package/dist/custom/artifacts/inspect-governed-artifact.action.d.ts +11 -0
  60. package/dist/custom/artifacts/inspect-governed-artifact.action.d.ts.map +1 -0
  61. package/dist/custom/artifacts/inspect-governed-artifact.action.js +84 -0
  62. package/dist/custom/artifacts/inspect-governed-artifact.action.js.map +1 -0
  63. package/dist/custom/artifacts/list-workspace-artifacts.action.d.ts +11 -0
  64. package/dist/custom/artifacts/list-workspace-artifacts.action.d.ts.map +1 -0
  65. package/dist/custom/artifacts/list-workspace-artifacts.action.js +63 -0
  66. package/dist/custom/artifacts/list-workspace-artifacts.action.js.map +1 -0
  67. package/dist/custom/artifacts/mutate-governed-artifact.action.d.ts +12 -0
  68. package/dist/custom/artifacts/mutate-governed-artifact.action.d.ts.map +1 -0
  69. package/dist/custom/artifacts/mutate-governed-artifact.action.js +110 -0
  70. package/dist/custom/artifacts/mutate-governed-artifact.action.js.map +1 -0
  71. package/dist/custom/crud/agent-data-policy-guard.d.ts +9 -1
  72. package/dist/custom/crud/agent-data-policy-guard.d.ts.map +1 -1
  73. package/dist/custom/crud/agent-data-policy-guard.js +49 -16
  74. package/dist/custom/crud/agent-data-policy-guard.js.map +1 -1
  75. package/dist/custom/data/adhoc-sql-gate.d.ts +40 -0
  76. package/dist/custom/data/adhoc-sql-gate.d.ts.map +1 -0
  77. package/dist/custom/data/adhoc-sql-gate.js +102 -0
  78. package/dist/custom/data/adhoc-sql-gate.js.map +1 -0
  79. package/dist/custom/data/data-mapper.action.d.ts +8 -0
  80. package/dist/custom/data/data-mapper.action.d.ts.map +1 -1
  81. package/dist/custom/data/data-mapper.action.js +21 -3
  82. package/dist/custom/data/data-mapper.action.js.map +1 -1
  83. package/dist/custom/data/find-graph-path.action.d.ts +37 -0
  84. package/dist/custom/data/find-graph-path.action.d.ts.map +1 -0
  85. package/dist/custom/data/find-graph-path.action.js +114 -0
  86. package/dist/custom/data/find-graph-path.action.js.map +1 -0
  87. package/dist/custom/data/get-graph-context.action.d.ts +22 -12
  88. package/dist/custom/data/get-graph-context.action.d.ts.map +1 -1
  89. package/dist/custom/data/get-graph-context.action.js +102 -239
  90. package/dist/custom/data/get-graph-context.action.js.map +1 -1
  91. package/dist/custom/data/graph-action-params.d.ts +51 -0
  92. package/dist/custom/data/graph-action-params.d.ts.map +1 -0
  93. package/dist/custom/data/graph-action-params.js +164 -0
  94. package/dist/custom/data/graph-action-params.js.map +1 -0
  95. package/dist/custom/data/mapping-template-guard.d.ts +18 -0
  96. package/dist/custom/data/mapping-template-guard.d.ts.map +1 -0
  97. package/dist/custom/data/mapping-template-guard.js +106 -0
  98. package/dist/custom/data/mapping-template-guard.js.map +1 -0
  99. package/dist/custom/data/propose-canon-domains.action.d.ts +26 -0
  100. package/dist/custom/data/propose-canon-domains.action.d.ts.map +1 -0
  101. package/dist/custom/data/propose-canon-domains.action.js +105 -0
  102. package/dist/custom/data/propose-canon-domains.action.js.map +1 -0
  103. package/dist/custom/data/run-adhoc-query.action.d.ts +4 -21
  104. package/dist/custom/data/run-adhoc-query.action.d.ts.map +1 -1
  105. package/dist/custom/data/run-adhoc-query.action.js +15 -105
  106. package/dist/custom/data/run-adhoc-query.action.js.map +1 -1
  107. package/dist/custom/demo/text-analyzer.action.d.ts +8 -0
  108. package/dist/custom/demo/text-analyzer.action.d.ts.map +1 -1
  109. package/dist/custom/demo/text-analyzer.action.js +34 -2
  110. package/dist/custom/demo/text-analyzer.action.js.map +1 -1
  111. package/dist/custom/files/excel-reader.action.d.ts +14 -0
  112. package/dist/custom/files/excel-reader.action.d.ts.map +1 -1
  113. package/dist/custom/files/excel-reader.action.js +51 -6
  114. package/dist/custom/files/excel-reader.action.js.map +1 -1
  115. package/dist/custom/github/github-client.d.ts.map +1 -1
  116. package/dist/custom/github/github-client.js +72 -11
  117. package/dist/custom/github/github-client.js.map +1 -1
  118. package/dist/custom/integration/http-request.action.d.ts.map +1 -1
  119. package/dist/custom/integration/http-request.action.js +5 -1
  120. package/dist/custom/integration/http-request.action.js.map +1 -1
  121. package/dist/custom/lists/create-list-from-query.action.d.ts +39 -0
  122. package/dist/custom/lists/create-list-from-query.action.d.ts.map +1 -0
  123. package/dist/custom/lists/create-list-from-query.action.js +179 -0
  124. package/dist/custom/lists/create-list-from-query.action.js.map +1 -0
  125. package/dist/custom/lists/index.d.ts +2 -0
  126. package/dist/custom/lists/index.d.ts.map +1 -1
  127. package/dist/custom/lists/index.js +2 -0
  128. package/dist/custom/lists/index.js.map +1 -1
  129. package/dist/custom/lists/refresh-list-from-source.action.d.ts.map +1 -1
  130. package/dist/custom/lists/refresh-list-from-source.action.js +3 -2
  131. package/dist/custom/lists/refresh-list-from-source.action.js.map +1 -1
  132. package/dist/custom/search/scoped-search.action.d.ts +12 -1
  133. package/dist/custom/search/scoped-search.action.d.ts.map +1 -1
  134. package/dist/custom/search/scoped-search.action.js +44 -6
  135. package/dist/custom/search/scoped-search.action.js.map +1 -1
  136. package/dist/custom/search/search-query.util.d.ts +24 -0
  137. package/dist/custom/search/search-query.util.d.ts.map +1 -0
  138. package/dist/custom/search/search-query.util.js +211 -0
  139. package/dist/custom/search/search-query.util.js.map +1 -0
  140. package/dist/custom/search/search.action.js +2 -2
  141. package/dist/custom/search/search.action.js.map +1 -1
  142. package/dist/custom/user-management/validate-email-unique.action.d.ts.map +1 -1
  143. package/dist/custom/user-management/validate-email-unique.action.js +2 -3
  144. package/dist/custom/user-management/validate-email-unique.action.js.map +1 -1
  145. package/dist/custom/utilities/refresh-and-snapshot-artifact.action.d.ts +48 -0
  146. package/dist/custom/utilities/refresh-and-snapshot-artifact.action.d.ts.map +1 -0
  147. package/dist/custom/utilities/refresh-and-snapshot-artifact.action.js +248 -0
  148. package/dist/custom/utilities/refresh-and-snapshot-artifact.action.js.map +1 -0
  149. package/dist/custom/web/rss-feed-parsing.d.ts.map +1 -1
  150. package/dist/custom/web/rss-feed-parsing.js +80 -6
  151. package/dist/custom/web/rss-feed-parsing.js.map +1 -1
  152. package/dist/custom/web/url-link-validator.action.d.ts.map +1 -1
  153. package/dist/custom/web/url-link-validator.action.js +3 -1
  154. package/dist/custom/web/url-link-validator.action.js.map +1 -1
  155. package/dist/custom/web/web-content-transforms.d.ts +35 -0
  156. package/dist/custom/web/web-content-transforms.d.ts.map +1 -0
  157. package/dist/custom/web/web-content-transforms.js +157 -0
  158. package/dist/custom/web/web-content-transforms.js.map +1 -0
  159. package/dist/custom/web/web-page-content.action.d.ts +4 -20
  160. package/dist/custom/web/web-page-content.action.d.ts.map +1 -1
  161. package/dist/custom/web/web-page-content.action.js +23 -168
  162. package/dist/custom/web/web-page-content.action.js.map +1 -1
  163. package/dist/custom/web/worker/ServeWorkerRequests.d.ts +26 -0
  164. package/dist/custom/web/worker/ServeWorkerRequests.d.ts.map +1 -0
  165. package/dist/custom/web/worker/ServeWorkerRequests.js +33 -0
  166. package/dist/custom/web/worker/ServeWorkerRequests.js.map +1 -0
  167. package/dist/custom/web/worker/WebContentWorker.d.ts +9 -0
  168. package/dist/custom/web/worker/WebContentWorker.d.ts.map +1 -0
  169. package/dist/custom/web/worker/WebContentWorker.js +11 -0
  170. package/dist/custom/web/worker/WebContentWorker.js.map +1 -0
  171. package/dist/custom/web/worker/WebContentWorkerHandler.d.ts +11 -0
  172. package/dist/custom/web/worker/WebContentWorkerHandler.d.ts.map +1 -0
  173. package/dist/custom/web/worker/WebContentWorkerHandler.js +19 -0
  174. package/dist/custom/web/worker/WebContentWorkerHandler.js.map +1 -0
  175. package/dist/custom/web/worker/WebContentWorkerHost.d.ts +26 -0
  176. package/dist/custom/web/worker/WebContentWorkerHost.d.ts.map +1 -0
  177. package/dist/custom/web/worker/WebContentWorkerHost.js +37 -0
  178. package/dist/custom/web/worker/WebContentWorkerHost.js.map +1 -0
  179. package/dist/custom/web/worker/WebContentWorkerProtocol.d.ts +23 -0
  180. package/dist/custom/web/worker/WebContentWorkerProtocol.d.ts.map +1 -0
  181. package/dist/custom/web/worker/WebContentWorkerProtocol.js +8 -0
  182. package/dist/custom/web/worker/WebContentWorkerProtocol.js.map +1 -0
  183. package/dist/custom/web/worker/WorkerProtocol.d.ts +36 -0
  184. package/dist/custom/web/worker/WorkerProtocol.d.ts.map +1 -0
  185. package/dist/custom/web/worker/WorkerProtocol.js +9 -0
  186. package/dist/custom/web/worker/WorkerProtocol.js.map +1 -0
  187. package/dist/custom/web/worker/WorkerThreadHost.d.ts +88 -0
  188. package/dist/custom/web/worker/WorkerThreadHost.d.ts.map +1 -0
  189. package/dist/custom/web/worker/WorkerThreadHost.js +174 -0
  190. package/dist/custom/web/worker/WorkerThreadHost.js.map +1 -0
  191. package/dist/custom/workflow/loop.action.d.ts +8 -0
  192. package/dist/custom/workflow/loop.action.d.ts.map +1 -1
  193. package/dist/custom/workflow/loop.action.js +36 -4
  194. package/dist/custom/workflow/loop.action.js.map +1 -1
  195. package/dist/index.d.ts +9 -1
  196. package/dist/index.d.ts.map +1 -1
  197. package/dist/index.js +10 -2
  198. package/dist/index.js.map +1 -1
  199. package/dist/tsconfig.tsbuildinfo +1 -0
  200. package/package.json +45 -45
package/README.md CHANGED
@@ -193,6 +193,8 @@ Actions used by the Chief of Staff agent (and other autonomous agents) to manage
193
193
 
194
194
  The mailbox actions run through the enterprise provider's app-level credential (Microsoft Graph or Gmail) and the gate in `BaseUserScopedCommunicationAction`: the caller's email domain must match the provider's `AllowedEmailDomains`, the provider's `EnterpriseScopeMode` must allow personal mailboxes (otherwise the action falls back to the user's `MJ: AI Bridge Agent Identities` utility inbox), and the provider's mailbox-access preflight must succeed. The per-user OAuth service described below is a separate, not-yet-wired path to the same mailboxes.
195
195
 
196
+ The `Send` operation of `Manage My Email Inbox and Drafts` also checks its `To` address against Communications V2 endpoint status and suppressions, as a `Transactional` message: an address with a hard bounce, an invalid-address status or an erasure on record is refused with result code `COMPLIANCE_BLOCKED` before the provider is called. See the [Communications V2 Guide](../../../guides/COMMUNICATIONS_V2_GUIDE.md#10-v1-behavior-and-the-v1-bridge).
197
+
196
198
  ### Communication (3 actions)
197
199
 
198
200
  Send messages via the MJ Communication Framework or webhook integrations.
@@ -588,6 +590,17 @@ const aggResult = await engine.RunAction({
588
590
  });
589
591
  ```
590
592
 
593
+ ### Governed Collaborative Artifacts (`src/custom/artifacts/`)
594
+
595
+ Unlike binary document export actions (`__CreateDocument` -> `MJ: Files` `.pdf`/`.docx`/`.xlsx`), the four governed artifact actions wrap `GovernedArtifactService` in `@memberjunction/ai-agents` to create, inspect, and live-mutate collaborative **`MJ: Artifacts`** (`Markdown Document`, `Presentation`, `Excel Spreadsheet`) with per-user ACL checks, live Yjs room hydration/commit hooks, and spoof-proof server awareness broadcasts:
596
+
597
+ | Action Name | `DriverClass` | Purpose |
598
+ |---|---|---|
599
+ | **Create Governed Artifact** | `__CreateGovernedArtifact` | Create a permission-checked Doc, Presentation, or Spreadsheet (optional initial `Content` / `SheetNames` / `CollectionID`) and persist Version 1. |
600
+ | **Inspect Governed Artifact** | `__InspectGovernedArtifact` | Inspect summary or execute read-only library tools (`get_outline`, `get_workbook_outline`, `read_deck`, `get_sheets`, `read_range`, `search_cells`), hydrating uncompacted edits from active Yjs rooms. |
601
+ | **Mutate Governed Artifact** | `__MutateGovernedArtifact` | Execute single (`Tool` + `Input`) or batched (`Operations`) mutations (`upsert_live_table`, `write_cells`, `format_range`, `add_sheet`, `upsert_chart`, `insert_block_after`, `replace_block`, `add_slide`, `upsert_slide_element`) through live Yjs sync + agent presence events. |
602
+ | **List Workspace Artifacts** | `__ListWorkspaceArtifacts` | List collaborative artifacts readable by `ContextUser` filtered by `CollectionID`, `TypeFilter`, or `Search`. |
603
+
591
604
  ## Action Execution Flow
592
605
 
593
606
  The following diagram illustrates how an action invocation flows from caller through the engine to this package's registered classes.
@@ -0,0 +1,29 @@
1
+ import { ActionResultSimple, RunActionParams } from '@memberjunction/actions-base';
2
+ import { BaseAction } from '@memberjunction/actions';
3
+ /**
4
+ * Opens a shared, observable `AGENT_CHANNEL` conversation (`MJ: Agent Channels` IS-A
5
+ * `MJ: Conversations`) between the caller's agent and one or more colleagues' agents,
6
+ * enforcing `CoordinationMode` (`Observer` blocked, `Coordinator` requires approval when run
7
+ * autonomously, `Autonomous` allowed) and waking peer agents under loop-guard / rate-limit bounds.
8
+ */
9
+ export declare class OpenAgentChannelAction extends BaseAction {
10
+ static readonly AuthorizesCaller = true;
11
+ protected InternalRunAction(params: RunActionParams): Promise<ActionResultSimple>;
12
+ }
13
+ /**
14
+ * Posts a reply into an existing `AGENT_CHANNEL` conversation, enforcing participant
15
+ * membership, loop-guard / hourly wake caps, and optional channel resolution.
16
+ */
17
+ export declare class ReplyInAgentChannelAction extends BaseAction {
18
+ static readonly AuthorizesCaller = true;
19
+ protected InternalRunAction(params: RunActionParams): Promise<ActionResultSimple>;
20
+ }
21
+ /**
22
+ * Reads an `AGENT_CHANNEL` conversation (metadata, participants, guard counters, and messages)
23
+ * or lists the calling user's Agent Channels when `ChannelID` is omitted.
24
+ */
25
+ export declare class GetAgentChannelAction extends BaseAction {
26
+ static readonly AuthorizesCaller = true;
27
+ protected InternalRunAction(params: RunActionParams): Promise<ActionResultSimple>;
28
+ }
29
+ //# sourceMappingURL=agent-channel.action.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-channel.action.d.ts","sourceRoot":"","sources":["../../../src/custom/ai/agent-channel.action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,kBAAkB,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAChG,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAoMrD;;;;;GAKG;AACH,qBACa,sBAAuB,SAAQ,UAAU;IAClD,gBAAgC,gBAAgB,QAAQ;cAExC,iBAAiB,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAmX1F;AAED;;;GAGG;AACH,qBACa,yBAA0B,SAAQ,UAAU;IACrD,gBAAgC,gBAAgB,QAAQ;cAExC,iBAAiB,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAkL1F;AAED;;;GAGG;AACH,qBACa,qBAAsB,SAAQ,UAAU;IACjD,gBAAgC,gBAAgB,QAAQ;cAExC,iBAAiB,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,kBAAkB,CAAC;CA0L1F"}