@memberjunction/core-actions 6.3.0-edge.1 → 6.3.0-edge.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 (127) hide show
  1. package/README.md +28 -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/base-find-actions.action.d.ts +6 -0
  7. package/dist/custom/ai/base-find-actions.action.d.ts.map +1 -1
  8. package/dist/custom/ai/base-find-actions.action.js +11 -0
  9. package/dist/custom/ai/base-find-actions.action.js.map +1 -1
  10. package/dist/custom/ai/chief-of-staff-approval-helper.d.ts +16 -0
  11. package/dist/custom/ai/chief-of-staff-approval-helper.d.ts.map +1 -0
  12. package/dist/custom/ai/chief-of-staff-approval-helper.js +63 -0
  13. package/dist/custom/ai/chief-of-staff-approval-helper.js.map +1 -0
  14. package/dist/custom/ai/chief-of-staff-core-reads.action.d.ts +64 -0
  15. package/dist/custom/ai/chief-of-staff-core-reads.action.d.ts.map +1 -0
  16. package/dist/custom/ai/chief-of-staff-core-reads.action.js +1097 -0
  17. package/dist/custom/ai/chief-of-staff-core-reads.action.js.map +1 -0
  18. package/dist/custom/ai/chief-of-staff-rhythms-suggestions.action.d.ts +28 -0
  19. package/dist/custom/ai/chief-of-staff-rhythms-suggestions.action.d.ts.map +1 -0
  20. package/dist/custom/ai/chief-of-staff-rhythms-suggestions.action.js +817 -0
  21. package/dist/custom/ai/chief-of-staff-rhythms-suggestions.action.js.map +1 -0
  22. package/dist/custom/ai/configure-agent-user-policy.action.d.ts +1 -0
  23. package/dist/custom/ai/configure-agent-user-policy.action.d.ts.map +1 -1
  24. package/dist/custom/ai/configure-agent-user-policy.action.js +5 -1
  25. package/dist/custom/ai/configure-agent-user-policy.action.js.map +1 -1
  26. package/dist/custom/ai/get-skill-details.action.d.ts +6 -0
  27. package/dist/custom/ai/get-skill-details.action.d.ts.map +1 -1
  28. package/dist/custom/ai/get-skill-details.action.js +5 -1
  29. package/dist/custom/ai/get-skill-details.action.js.map +1 -1
  30. package/dist/custom/ai/manage-my-agent-instance.action.d.ts +39 -0
  31. package/dist/custom/ai/manage-my-agent-instance.action.d.ts.map +1 -0
  32. package/dist/custom/ai/manage-my-agent-instance.action.js +758 -0
  33. package/dist/custom/ai/manage-my-agent-instance.action.js.map +1 -0
  34. package/dist/custom/ai/prepare-outbound-call-brief.action.js +1 -1
  35. package/dist/custom/ai/prepare-outbound-call-brief.action.js.map +1 -1
  36. package/dist/custom/ai/schedule-next-agent-wake.action.d.ts +2 -0
  37. package/dist/custom/ai/schedule-next-agent-wake.action.d.ts.map +1 -1
  38. package/dist/custom/ai/schedule-next-agent-wake.action.js +105 -2
  39. package/dist/custom/ai/schedule-next-agent-wake.action.js.map +1 -1
  40. package/dist/custom/ai/send-inter-agent-request.action.d.ts +1 -0
  41. package/dist/custom/ai/send-inter-agent-request.action.d.ts.map +1 -1
  42. package/dist/custom/ai/send-inter-agent-request.action.js +72 -18
  43. package/dist/custom/ai/send-inter-agent-request.action.js.map +1 -1
  44. package/dist/custom/ai/test-runtime-action.action.d.ts +3 -0
  45. package/dist/custom/ai/test-runtime-action.action.d.ts.map +1 -1
  46. package/dist/custom/ai/test-runtime-action.action.js +13 -1
  47. package/dist/custom/ai/test-runtime-action.action.js.map +1 -1
  48. package/dist/custom/ai/trigger-agent-wake.action.d.ts +1 -0
  49. package/dist/custom/ai/trigger-agent-wake.action.d.ts.map +1 -1
  50. package/dist/custom/ai/trigger-agent-wake.action.js +3 -0
  51. package/dist/custom/ai/trigger-agent-wake.action.js.map +1 -1
  52. package/dist/custom/ai/user-scoped-communication.action.d.ts +20 -0
  53. package/dist/custom/ai/user-scoped-communication.action.d.ts.map +1 -1
  54. package/dist/custom/ai/user-scoped-communication.action.js +140 -23
  55. package/dist/custom/ai/user-scoped-communication.action.js.map +1 -1
  56. package/dist/custom/artifacts/list-workspace-artifacts.action.d.ts +1 -0
  57. package/dist/custom/artifacts/list-workspace-artifacts.action.d.ts.map +1 -1
  58. package/dist/custom/artifacts/list-workspace-artifacts.action.js +38 -4
  59. package/dist/custom/artifacts/list-workspace-artifacts.action.js.map +1 -1
  60. package/dist/custom/data/adhoc-sql-gate.d.ts +40 -0
  61. package/dist/custom/data/adhoc-sql-gate.d.ts.map +1 -0
  62. package/dist/custom/data/adhoc-sql-gate.js +102 -0
  63. package/dist/custom/data/adhoc-sql-gate.js.map +1 -0
  64. package/dist/custom/data/data-mapper.action.d.ts +8 -0
  65. package/dist/custom/data/data-mapper.action.d.ts.map +1 -1
  66. package/dist/custom/data/data-mapper.action.js +21 -3
  67. package/dist/custom/data/data-mapper.action.js.map +1 -1
  68. package/dist/custom/data/find-graph-path.action.d.ts +60 -0
  69. package/dist/custom/data/find-graph-path.action.d.ts.map +1 -0
  70. package/dist/custom/data/find-graph-path.action.js +285 -0
  71. package/dist/custom/data/find-graph-path.action.js.map +1 -0
  72. package/dist/custom/data/get-entity-details.action.d.ts.map +1 -1
  73. package/dist/custom/data/get-entity-details.action.js +14 -2
  74. package/dist/custom/data/get-entity-details.action.js.map +1 -1
  75. package/dist/custom/data/get-graph-context.action.d.ts +50 -14
  76. package/dist/custom/data/get-graph-context.action.d.ts.map +1 -1
  77. package/dist/custom/data/get-graph-context.action.js +393 -227
  78. package/dist/custom/data/get-graph-context.action.js.map +1 -1
  79. package/dist/custom/data/graph-action-params.d.ts +89 -0
  80. package/dist/custom/data/graph-action-params.d.ts.map +1 -0
  81. package/dist/custom/data/graph-action-params.js +239 -0
  82. package/dist/custom/data/graph-action-params.js.map +1 -0
  83. package/dist/custom/data/mapping-template-guard.d.ts +18 -0
  84. package/dist/custom/data/mapping-template-guard.d.ts.map +1 -0
  85. package/dist/custom/data/mapping-template-guard.js +106 -0
  86. package/dist/custom/data/mapping-template-guard.js.map +1 -0
  87. package/dist/custom/data/propose-canon-domains.action.d.ts +26 -0
  88. package/dist/custom/data/propose-canon-domains.action.d.ts.map +1 -0
  89. package/dist/custom/data/propose-canon-domains.action.js +105 -0
  90. package/dist/custom/data/propose-canon-domains.action.js.map +1 -0
  91. package/dist/custom/data/run-adhoc-query.action.d.ts +4 -21
  92. package/dist/custom/data/run-adhoc-query.action.d.ts.map +1 -1
  93. package/dist/custom/data/run-adhoc-query.action.js +15 -105
  94. package/dist/custom/data/run-adhoc-query.action.js.map +1 -1
  95. package/dist/custom/files/get-file-content.action.d.ts.map +1 -1
  96. package/dist/custom/files/get-file-content.action.js +2 -1
  97. package/dist/custom/files/get-file-content.action.js.map +1 -1
  98. package/dist/custom/integration/http-request.action.d.ts.map +1 -1
  99. package/dist/custom/integration/http-request.action.js +5 -1
  100. package/dist/custom/integration/http-request.action.js.map +1 -1
  101. package/dist/custom/lists/create-list-from-query.action.d.ts +39 -0
  102. package/dist/custom/lists/create-list-from-query.action.d.ts.map +1 -0
  103. package/dist/custom/lists/create-list-from-query.action.js +179 -0
  104. package/dist/custom/lists/create-list-from-query.action.js.map +1 -0
  105. package/dist/custom/lists/index.d.ts +2 -0
  106. package/dist/custom/lists/index.d.ts.map +1 -1
  107. package/dist/custom/lists/index.js +2 -0
  108. package/dist/custom/lists/index.js.map +1 -1
  109. package/dist/custom/search/scoped-search.action.d.ts +12 -1
  110. package/dist/custom/search/scoped-search.action.d.ts.map +1 -1
  111. package/dist/custom/search/scoped-search.action.js +69 -9
  112. package/dist/custom/search/scoped-search.action.js.map +1 -1
  113. package/dist/custom/search/search-query.util.d.ts +24 -0
  114. package/dist/custom/search/search-query.util.d.ts.map +1 -0
  115. package/dist/custom/search/search-query.util.js +211 -0
  116. package/dist/custom/search/search-query.util.js.map +1 -0
  117. package/dist/custom/search/search.action.js +2 -2
  118. package/dist/custom/search/search.action.js.map +1 -1
  119. package/dist/custom/web/url-link-validator.action.d.ts.map +1 -1
  120. package/dist/custom/web/url-link-validator.action.js +3 -1
  121. package/dist/custom/web/url-link-validator.action.js.map +1 -1
  122. package/dist/index.d.ts +8 -0
  123. package/dist/index.d.ts.map +1 -1
  124. package/dist/index.js +8 -0
  125. package/dist/index.js.map +1 -1
  126. package/dist/tsconfig.tsbuildinfo +1 -1
  127. 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.
@@ -229,6 +231,32 @@ Parse, transform, aggregate, and explore structured data.
229
231
  | `Explore Database Schema` | `ExploreDatabaseSchemaAction` | Retrieve entity metadata and schema information |
230
232
  | `Run Ad-hoc Query` | `RunAdhocQueryAction` | Execute ad-hoc SQL queries against entity data |
231
233
 
234
+ ### Semantic Graph & Canon (3 actions)
235
+
236
+ Retrieve governed Canon/semantic graph context, discover weighted paths, and propose domain clusters.
237
+
238
+ | Registration Name | Class | Description |
239
+ |---|---|---|
240
+ | `Get Graph Context` | `GetGraphContextAction` | Resolve concepts from a `Question` or `Seeds` within explicit `GraphName`/`GraphNames` (or every active Canon graph the caller can read when omitted, D52) and return a bounded permission-checked subgraph + prompt text; fails closed (`GRAPH_NOT_FOUND`) on unknown/inactive/blank explicit graphs and logs non-blocking gap alerts on `NO_MATCH` / `AMBIGUOUS_CONCEPT` |
241
+ | `Find Graph Path` | `FindGraphPathAction` | Find bounded weighted paths between two concepts or entity records within explicit `GraphName`/`GraphNames` (or every active Canon graph the caller can read when omitted, D52), resolving each endpoint once across graphs and failing closed (`GRAPH_NOT_FOUND`) on unknown/inactive/blank explicit graphs |
242
+ | `Propose Canon Domains` | `ProposeCanonDomainsAction` | Group entities into candidate business domains by community detection (`DryRun` by default) |
243
+
244
+ #### Graph Scoping (`Get Graph Context`, `Find Graph Path`, `Get Entity Details`)
245
+
246
+ All three Canon-aware data actions thread `GraphName` and `GraphNames` cleanly to `CanonGraphEngine` with zero cross-graph bleed and caller-readable default scope owned by `CanonGraphEngine.Instance.ResolveReadableActiveGraphs()`:
247
+
248
+ - **`Get Graph Context` & `Find Graph Path`**: Accept `GraphName` (single graph) and/or `GraphNames` (array, JSON array string, or comma-separated list). When both are omitted, `CanonGraphEngine` resolves the default scope once to the active Canon graphs the caller can read (no preferred default graph per D52), and responses never name graphs the caller did not name. Any unknown, inactive, or explicitly blank graph name fails closed with `GRAPH_NOT_FOUND`. Ambiguous concept responses include each candidate's `RecordID`, `GraphName`, `GraphID`, and `Status`, instructing callers to pass the chosen candidate's `RecordID` or specify `GraphName`. When multiple active graphs are supplied to `Get Graph Context`, each matched concept seed expands strictly in its own owning graph (`GraphID` -> `Graph.Name`) before merging subgraphs.
249
+ - **`Get Entity Details`**: Threads optional `GraphName` / `GraphNames` inputs into `CanonGraphEngine.Instance.ExplainEntity()` (searching all active Canon graphs the caller can read when omitted) so the returned `Canon` section (`DescribedConcepts`, `AlternateBaseViews`, `ReadingQueries`, `MeasuringQueries`) reflects only the readable graph(s) in scope and fails closed (empty Canon section) on unknown, inactive, or explicitly blank graph names.
250
+
251
+ #### Gap Alerts (`Get Graph Context`)
252
+
253
+ When `Get Graph Context` resolves to `NO_MATCH` or `AMBIGUOUS_CONCEPT`, it records a fault-isolated `MJ: Audit Logs` entry (using the seeded `Graph Context No Match` or `Graph Context Ambiguous Concept` `MJ: Audit Log Types` from `metadata/audit-log-types/.canon-gap-alert-audit-types.json`) so knowledge stewards can query unanswered or ambiguous questions via `RunView`:
254
+
255
+ - **`EntityID` / `RecordID`**: References the queried `MJ: Graphs` record (`graph.ID`).
256
+ - **`UserID`**: The calling `ContextUser.ID` (persisted via `UserCache.Instance.GetSystemUser()` when available so non-admin callers never hit audit write denials).
257
+ - **`Details` JSON**: `{ graphName, question, resolution, candidates, userId }`.
258
+ - **Matched (`SUCCESS`) & Fault Isolation**: Emits nothing when concepts resolve cleanly (`SUCCESS`), and logs a warning via `LogWarning` without altering or failing the action response if metadata lookup or audit persistence fails.
259
+
232
260
  ### File Operations (8 actions)
233
261
 
234
262
  Document generation, parsing, compression, and spreadsheet I/O.
@@ -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"}