@memberjunction/ng-dashboards 6.2.0-edge.6 → 6.2.0-edge.7

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/README.md +23 -16
  2. package/dist/AI/components/analytics/agent-runs/agent-run-analysis.component.js +2 -2
  3. package/dist/AI/components/analytics/agent-runs/agent-run-analysis.component.js.map +1 -1
  4. package/dist/AI/components/analytics/realtime/realtime-management.component.d.ts.map +1 -1
  5. package/dist/AI/components/analytics/realtime/realtime-management.component.js +3 -1
  6. package/dist/AI/components/analytics/realtime/realtime-management.component.js.map +1 -1
  7. package/dist/AI/components/analytics/realtime/realtime-overview.component.d.ts +1 -1
  8. package/dist/AI/components/analytics/realtime/realtime-overview.component.js +3 -3
  9. package/dist/AI/components/analytics/realtime/realtime-overview.component.js.map +1 -1
  10. package/dist/AI/components/analytics/realtime/realtime-session-data.d.ts +6 -4
  11. package/dist/AI/components/analytics/realtime/realtime-session-data.d.ts.map +1 -1
  12. package/dist/AI/components/analytics/realtime/realtime-session-data.js +8 -2
  13. package/dist/AI/components/analytics/realtime/realtime-session-data.js.map +1 -1
  14. package/dist/AI/components/autotagging/autotagging-pipeline-resource.component.js +6 -6
  15. package/dist/AI/components/autotagging/autotagging-pipeline-resource.component.js.map +1 -1
  16. package/dist/AI/components/autotagging/components/classify-item-grid.component.js +1 -1
  17. package/dist/AI/components/autotagging/components/classify-item-grid.component.js.map +1 -1
  18. package/dist/AI/components/autotagging/components/classify-org-context-editor.component.d.ts.map +1 -1
  19. package/dist/AI/components/autotagging/components/classify-org-context-editor.component.js +1 -0
  20. package/dist/AI/components/autotagging/components/classify-org-context-editor.component.js.map +1 -1
  21. package/dist/AI/components/autotagging/dialogs/source-type-form.dialog.component.d.ts.map +1 -1
  22. package/dist/AI/components/autotagging/dialogs/source-type-form.dialog.component.js +1 -0
  23. package/dist/AI/components/autotagging/dialogs/source-type-form.dialog.component.js.map +1 -1
  24. package/dist/AI/components/autotagging/tabs/sources-tab.component.d.ts.map +1 -1
  25. package/dist/AI/components/autotagging/tabs/sources-tab.component.js +1 -0
  26. package/dist/AI/components/autotagging/tabs/sources-tab.component.js.map +1 -1
  27. package/dist/AI/components/duplicates/duplicate-detection-resource.component.d.ts.map +1 -1
  28. package/dist/AI/components/duplicates/duplicate-detection-resource.component.js +1 -0
  29. package/dist/AI/components/duplicates/duplicate-detection-resource.component.js.map +1 -1
  30. package/dist/AI/components/prompts/model-prompt-priority-matrix.component.js +2 -2
  31. package/dist/AI/components/tags/tags-resource.component.d.ts.map +1 -1
  32. package/dist/AI/components/tags/tags-resource.component.js +3 -2
  33. package/dist/AI/components/tags/tags-resource.component.js.map +1 -1
  34. package/dist/AI/components/vectors/vector-management-resource.component.d.ts.map +1 -1
  35. package/dist/AI/components/vectors/vector-management-resource.component.js +12 -6
  36. package/dist/AI/components/vectors/vector-management-resource.component.js.map +1 -1
  37. package/dist/AI/services/ai-instrumentation.service.d.ts.map +1 -1
  38. package/dist/AI/services/ai-instrumentation.service.js +4 -2
  39. package/dist/AI/services/ai-instrumentation.service.js.map +1 -1
  40. package/dist/Actions/action-result-code.d.ts +80 -0
  41. package/dist/Actions/action-result-code.d.ts.map +1 -0
  42. package/dist/Actions/action-result-code.js +163 -0
  43. package/dist/Actions/action-result-code.js.map +1 -0
  44. package/dist/Actions/components/actions-overview.component.d.ts +8 -0
  45. package/dist/Actions/components/actions-overview.component.d.ts.map +1 -1
  46. package/dist/Actions/components/actions-overview.component.js +12 -9
  47. package/dist/Actions/components/actions-overview.component.js.map +1 -1
  48. package/dist/Actions/components/execution-monitoring.component.d.ts +29 -9
  49. package/dist/Actions/components/execution-monitoring.component.d.ts.map +1 -1
  50. package/dist/Actions/components/execution-monitoring.component.js +65 -42
  51. package/dist/Actions/components/execution-monitoring.component.js.map +1 -1
  52. package/dist/Actions/components/explorer/action-card.component.d.ts.map +1 -1
  53. package/dist/Actions/components/explorer/action-card.component.js +5 -4
  54. package/dist/Actions/components/explorer/action-card.component.js.map +1 -1
  55. package/dist/ChiefOfStaff/chief-of-staff-agent-context.d.ts +92 -130
  56. package/dist/ChiefOfStaff/chief-of-staff-agent-context.d.ts.map +1 -1
  57. package/dist/ChiefOfStaff/chief-of-staff-agent-context.js +189 -274
  58. package/dist/ChiefOfStaff/chief-of-staff-agent-context.js.map +1 -1
  59. package/dist/ChiefOfStaff/chief-of-staff-approvals.component.d.ts +29 -0
  60. package/dist/ChiefOfStaff/chief-of-staff-approvals.component.d.ts.map +1 -0
  61. package/dist/ChiefOfStaff/chief-of-staff-approvals.component.js +666 -0
  62. package/dist/ChiefOfStaff/chief-of-staff-approvals.component.js.map +1 -0
  63. package/dist/ChiefOfStaff/chief-of-staff-governance.component.d.ts +56 -0
  64. package/dist/ChiefOfStaff/chief-of-staff-governance.component.d.ts.map +1 -0
  65. package/dist/ChiefOfStaff/chief-of-staff-governance.component.js +515 -0
  66. package/dist/ChiefOfStaff/chief-of-staff-governance.component.js.map +1 -0
  67. package/dist/ChiefOfStaff/chief-of-staff-live-refresh.d.ts +14 -0
  68. package/dist/ChiefOfStaff/chief-of-staff-live-refresh.d.ts.map +1 -0
  69. package/dist/ChiefOfStaff/chief-of-staff-live-refresh.js +39 -0
  70. package/dist/ChiefOfStaff/chief-of-staff-live-refresh.js.map +1 -0
  71. package/dist/ChiefOfStaff/chief-of-staff-overview.component.d.ts +17 -0
  72. package/dist/ChiefOfStaff/chief-of-staff-overview.component.d.ts.map +1 -0
  73. package/dist/ChiefOfStaff/chief-of-staff-overview.component.js +485 -0
  74. package/dist/ChiefOfStaff/chief-of-staff-overview.component.js.map +1 -0
  75. package/dist/ChiefOfStaff/chief-of-staff-page-base.d.ts +139 -0
  76. package/dist/ChiefOfStaff/chief-of-staff-page-base.d.ts.map +1 -0
  77. package/dist/ChiefOfStaff/chief-of-staff-page-base.js +602 -0
  78. package/dist/ChiefOfStaff/chief-of-staff-page-base.js.map +1 -0
  79. package/dist/ChiefOfStaff/index.d.ts +4 -1
  80. package/dist/ChiefOfStaff/index.d.ts.map +1 -1
  81. package/dist/ChiefOfStaff/index.js +4 -1
  82. package/dist/ChiefOfStaff/index.js.map +1 -1
  83. package/dist/Communication/communication-monitor-resource.component.js +3 -3
  84. package/dist/Communication/communication-monitor-resource.component.js.map +1 -1
  85. package/dist/Communication/communication-runs-resource.component.js +3 -3
  86. package/dist/Communication/communication-runs-resource.component.js.map +1 -1
  87. package/dist/ComponentStudio/component-studio-dashboard.component.d.ts.map +1 -1
  88. package/dist/ComponentStudio/component-studio-dashboard.component.js +1 -0
  89. package/dist/ComponentStudio/component-studio-dashboard.component.js.map +1 -1
  90. package/dist/ComponentStudio/components/artifact-selection-dialog.component.d.ts.map +1 -1
  91. package/dist/ComponentStudio/components/artifact-selection-dialog.component.js +2 -1
  92. package/dist/ComponentStudio/components/artifact-selection-dialog.component.js.map +1 -1
  93. package/dist/ComponentStudio/services/component-version.service.d.ts.map +1 -1
  94. package/dist/ComponentStudio/services/component-version.service.js +3 -0
  95. package/dist/ComponentStudio/services/component-version.service.js.map +1 -1
  96. package/dist/DataExplorer/data-explorer-dashboard.component.d.ts +21 -2
  97. package/dist/DataExplorer/data-explorer-dashboard.component.d.ts.map +1 -1
  98. package/dist/DataExplorer/data-explorer-dashboard.component.js +32 -5
  99. package/dist/DataExplorer/data-explorer-dashboard.component.js.map +1 -1
  100. package/dist/DevTools/graphql-console.component.js +2 -2
  101. package/dist/DevTools/lazy-module-status.component.js +2 -2
  102. package/dist/FormBuilder/form-builder-resource.component.d.ts.map +1 -1
  103. package/dist/FormBuilder/form-builder-resource.component.js +5 -0
  104. package/dist/FormBuilder/form-builder-resource.component.js.map +1 -1
  105. package/dist/Integration/components/connections/connections.component.js +2 -2
  106. package/dist/Integration/services/integration-data.service.d.ts +1 -1
  107. package/dist/Integration/services/integration-data.service.d.ts.map +1 -1
  108. package/dist/Integration/services/integration-data.service.js +4 -3
  109. package/dist/Integration/services/integration-data.service.js.map +1 -1
  110. package/dist/Lists/components/lists-browse-resource.component.js +1 -1
  111. package/dist/Lists/components/lists-browse-resource.component.js.map +1 -1
  112. package/dist/Lists/components/lists-my-lists-resource.component.js +1 -1
  113. package/dist/Lists/components/lists-my-lists-resource.component.js.map +1 -1
  114. package/dist/LoginStudio/login-studio-resource.component.d.ts.map +1 -1
  115. package/dist/LoginStudio/login-studio-resource.component.js +1 -0
  116. package/dist/LoginStudio/login-studio-resource.component.js.map +1 -1
  117. package/dist/PredictiveStudio/components/ps-experiments.component.d.ts.map +1 -1
  118. package/dist/PredictiveStudio/components/ps-experiments.component.js +1 -0
  119. package/dist/PredictiveStudio/components/ps-experiments.component.js.map +1 -1
  120. package/dist/PredictiveStudio/components/ps-pipeline-wizard.component.js +2 -2
  121. package/dist/PredictiveStudio/components/ps-predictions-grid.component.d.ts.map +1 -1
  122. package/dist/PredictiveStudio/components/ps-predictions-grid.component.js +3 -0
  123. package/dist/PredictiveStudio/components/ps-predictions-grid.component.js.map +1 -1
  124. package/dist/PredictiveStudio/engine/predictive-studio.engine.d.ts.map +1 -1
  125. package/dist/PredictiveStudio/engine/predictive-studio.engine.js +1 -0
  126. package/dist/PredictiveStudio/engine/predictive-studio.engine.js.map +1 -1
  127. package/dist/PredictiveStudio/resources/ps-predictions-resource.component.d.ts.map +1 -1
  128. package/dist/PredictiveStudio/resources/ps-predictions-resource.component.js +1 -0
  129. package/dist/PredictiveStudio/resources/ps-predictions-resource.component.js.map +1 -1
  130. package/dist/QueryBrowser/query-browser-resource.component.d.ts +26 -0
  131. package/dist/QueryBrowser/query-browser-resource.component.d.ts.map +1 -1
  132. package/dist/QueryBrowser/query-browser-resource.component.js +375 -252
  133. package/dist/QueryBrowser/query-browser-resource.component.js.map +1 -1
  134. package/dist/UserRoutines/user-routines-resource.component.d.ts +8 -1
  135. package/dist/UserRoutines/user-routines-resource.component.d.ts.map +1 -1
  136. package/dist/UserRoutines/user-routines-resource.component.js +22 -4
  137. package/dist/UserRoutines/user-routines-resource.component.js.map +1 -1
  138. package/dist/VersionHistory/components/diff-resource.component.d.ts.map +1 -1
  139. package/dist/VersionHistory/components/diff-resource.component.js +1 -0
  140. package/dist/VersionHistory/components/diff-resource.component.js.map +1 -1
  141. package/dist/VideoStudio/components/vs-archetype-editor.component.d.ts +162 -0
  142. package/dist/VideoStudio/components/vs-archetype-editor.component.d.ts.map +1 -0
  143. package/dist/VideoStudio/components/vs-archetype-editor.component.js +1105 -0
  144. package/dist/VideoStudio/components/vs-archetype-editor.component.js.map +1 -0
  145. package/dist/VideoStudio/components/vs-audio-options.component.d.ts +27 -0
  146. package/dist/VideoStudio/components/vs-audio-options.component.d.ts.map +1 -0
  147. package/dist/VideoStudio/components/vs-audio-options.component.js +119 -0
  148. package/dist/VideoStudio/components/vs-audio-options.component.js.map +1 -0
  149. package/dist/VideoStudio/components/vs-copilot-panel.component.d.ts +105 -0
  150. package/dist/VideoStudio/components/vs-copilot-panel.component.d.ts.map +1 -0
  151. package/dist/VideoStudio/components/vs-copilot-panel.component.js +560 -0
  152. package/dist/VideoStudio/components/vs-copilot-panel.component.js.map +1 -0
  153. package/dist/VideoStudio/components/vs-production-brief.component.d.ts +163 -0
  154. package/dist/VideoStudio/components/vs-production-brief.component.d.ts.map +1 -0
  155. package/dist/VideoStudio/components/vs-production-brief.component.js +1054 -0
  156. package/dist/VideoStudio/components/vs-production-brief.component.js.map +1 -0
  157. package/dist/VideoStudio/components/vs-setup-health-card.component.d.ts +43 -0
  158. package/dist/VideoStudio/components/vs-setup-health-card.component.d.ts.map +1 -0
  159. package/dist/VideoStudio/components/vs-setup-health-card.component.js +412 -0
  160. package/dist/VideoStudio/components/vs-setup-health-card.component.js.map +1 -0
  161. package/dist/VideoStudio/components/vs-studio-slide-in.component.d.ts +73 -0
  162. package/dist/VideoStudio/components/vs-studio-slide-in.component.d.ts.map +1 -0
  163. package/dist/VideoStudio/components/vs-studio-slide-in.component.js +271 -0
  164. package/dist/VideoStudio/components/vs-studio-slide-in.component.js.map +1 -0
  165. package/dist/VideoStudio/index.d.ts +12 -0
  166. package/dist/VideoStudio/index.d.ts.map +1 -0
  167. package/dist/VideoStudio/index.js +12 -0
  168. package/dist/VideoStudio/index.js.map +1 -0
  169. package/dist/VideoStudio/resources/video-studio-archetypes-resource.component.d.ts +118 -0
  170. package/dist/VideoStudio/resources/video-studio-archetypes-resource.component.d.ts.map +1 -0
  171. package/dist/VideoStudio/resources/video-studio-archetypes-resource.component.js +964 -0
  172. package/dist/VideoStudio/resources/video-studio-archetypes-resource.component.js.map +1 -0
  173. package/dist/VideoStudio/resources/video-studio-brand-kits-resource.component.d.ts +70 -0
  174. package/dist/VideoStudio/resources/video-studio-brand-kits-resource.component.d.ts.map +1 -0
  175. package/dist/VideoStudio/resources/video-studio-brand-kits-resource.component.js +600 -0
  176. package/dist/VideoStudio/resources/video-studio-brand-kits-resource.component.js.map +1 -0
  177. package/dist/VideoStudio/resources/video-studio-productions-resource.component.d.ts +182 -0
  178. package/dist/VideoStudio/resources/video-studio-productions-resource.component.d.ts.map +1 -0
  179. package/dist/VideoStudio/resources/video-studio-productions-resource.component.js +1481 -0
  180. package/dist/VideoStudio/resources/video-studio-productions-resource.component.js.map +1 -0
  181. package/dist/VideoStudio/services/vs-studio-slide-in-state.service.d.ts +102 -0
  182. package/dist/VideoStudio/services/vs-studio-slide-in-state.service.d.ts.map +1 -0
  183. package/dist/VideoStudio/services/vs-studio-slide-in-state.service.js +240 -0
  184. package/dist/VideoStudio/services/vs-studio-slide-in-state.service.js.map +1 -0
  185. package/dist/VideoStudio/video-studio-agent-context.d.ts +495 -0
  186. package/dist/VideoStudio/video-studio-agent-context.d.ts.map +1 -0
  187. package/dist/VideoStudio/video-studio-agent-context.js +992 -0
  188. package/dist/VideoStudio/video-studio-agent-context.js.map +1 -0
  189. package/dist/ai-dashboards.module.d.ts +25 -22
  190. package/dist/ai-dashboards.module.d.ts.map +1 -1
  191. package/dist/ai-dashboards.module.js +23 -7
  192. package/dist/ai-dashboards.module.js.map +1 -1
  193. package/dist/module.d.ts +13 -12
  194. package/dist/module.d.ts.map +1 -1
  195. package/dist/module.js +7 -0
  196. package/dist/module.js.map +1 -1
  197. package/dist/public-api.d.ts +7 -1
  198. package/dist/public-api.d.ts.map +1 -1
  199. package/dist/public-api.js +9 -2
  200. package/dist/public-api.js.map +1 -1
  201. package/dist/shared/action-scheduled-job.d.ts.map +1 -1
  202. package/dist/shared/action-scheduled-job.js +2 -0
  203. package/dist/shared/action-scheduled-job.js.map +1 -1
  204. package/dist/video-studio-dashboards.module.d.ts +40 -0
  205. package/dist/video-studio-dashboards.module.d.ts.map +1 -0
  206. package/dist/video-studio-dashboards.module.js +159 -0
  207. package/dist/video-studio-dashboards.module.js.map +1 -0
  208. package/package.json +77 -71
  209. package/dist/ChiefOfStaff/chief-of-staff-dashboard.component.d.ts +0 -195
  210. package/dist/ChiefOfStaff/chief-of-staff-dashboard.component.d.ts.map +0 -1
  211. package/dist/ChiefOfStaff/chief-of-staff-dashboard.component.js +0 -2910
  212. package/dist/ChiefOfStaff/chief-of-staff-dashboard.component.js.map +0 -1
@@ -1,32 +1,40 @@
1
1
  /**
2
- * Pure, unit-testable helpers for the "My Chief of Staff" Executive Cockpit's
3
- * agent context + client tools.
2
+ * Pure, unit-testable helpers for the Chief of Staff application's pages (Overview,
3
+ * Approvals & Wakes, Governance): their agent context, client tools and policy drafts.
4
+ *
5
+ * Core only: everything here reads core entities (`MJ: AI Agent User Policies`,
6
+ * `MJ: User Routines`, `MJ: AI Agent Requests`). Business data such as priorities, tasks and
7
+ * to-dos comes from Open Apps that add their own nav items to the Chief of Staff application
8
+ * through `NavItem.*` application settings; core never names an Open App's entities.
4
9
  *
5
10
  * 🚨 SAFETY BOUNDARY 🚨
6
- * The Chief of Staff Cockpit exposes ONLY navigation / tab-switch / filter / search /
11
+ * The Chief of Staff pages expose ONLY navigation / search /
7
12
  * refresh / detail-view tools to the co-agent. DELIBERATELY NOT exposed as client tools
8
13
  * (mutations stay human-driven in the UI):
9
14
  * - Approving or rejecting `MJ: AI Agent Requests`
10
15
  * - Modifying or saving `MJ: AI Agent User Policies` governance toggles / thresholds
11
16
  * - Triggering "Wake Now" or pausing/resuming `MJ: User Routines`
12
17
  *
13
- * Published context exposes only aggregate counts, active tab/filter state, governance
18
+ * Published context exposes only aggregate counts, the current page and search, governance
14
19
  * mode summaries, and bounded display names (capped at 25) — never raw request payloads,
15
20
  * custom instructions overrides, or private message content.
16
21
  */
17
22
  import type { MJAIAgentUserPolicyEntity, MJUserRoutineEntity, MJAIAgentRequestEntity } from '@memberjunction/core-entities';
18
- import { CompositeKey, type EntityInfo, type RunViewParams } from '@memberjunction/core';
19
23
  import { type AgentToolResult } from '../shared/agent-tool-validation';
20
24
  /**
21
- * The cockpit serves one agent, identified by its metadata name. The id is resolved at runtime
25
+ * The pages serve one agent, identified by its metadata name. The id is resolved at runtime
22
26
  * through `AIEngineBase.GetAgentByName`, never hardcoded.
23
27
  */
24
28
  export declare const CHIEF_OF_STAFF_AGENT_NAME = "Chief of Staff";
25
- export type ChiefOfStaffTab = 'overview' | 'priorities' | 'approvals-wakes' | 'governance';
26
- export declare const VALID_CHIEF_OF_STAFF_TABS: readonly ChiefOfStaffTab[];
27
- export type TaskHealthStatus = 'OnTrack' | 'AtRisk' | 'OffTrack' | 'Completed' | 'Paused';
28
- export type HealthFilter = 'all' | TaskHealthStatus;
29
- export declare const VALID_HEALTH_FILTERS: readonly HealthFilter[];
29
+ /** The name of the Chief of Staff application whose nav items open the pages. */
30
+ export declare const CHIEF_OF_STAFF_APP_NAME = "Chief of Staff";
31
+ /** The Chief of Staff application's own pages; each is one nav item. */
32
+ export type ChiefOfStaffPage = 'overview' | 'approvals-wakes' | 'governance';
33
+ export declare const CHIEF_OF_STAFF_PAGES: readonly ChiefOfStaffPage[];
34
+ /** Each page's nav item label; must match the application's `DefaultNavItems`. */
35
+ export declare const CHIEF_OF_STAFF_PAGE_LABELS: Readonly<Record<ChiefOfStaffPage, string>>;
36
+ /** Each page's Font Awesome icon; matches the application's `DefaultNavItems`. */
37
+ export declare const CHIEF_OF_STAFF_PAGE_ICONS: Readonly<Record<ChiefOfStaffPage, string>>;
30
38
  export type PolicyStatusValue = MJAIAgentUserPolicyEntity['Status'];
31
39
  export type PolicyCoordinationModeValue = MJAIAgentUserPolicyEntity['CoordinationMode'];
32
40
  export type PolicyDataAccessModeValue = MJAIAgentUserPolicyEntity['DefaultDataAccessMode'];
@@ -36,46 +44,6 @@ export type PolicyPhoneChannelModeValue = MJAIAgentUserPolicyEntity['PhoneChanne
36
44
  export type PolicyMessagingChannelModeValue = MJAIAgentUserPolicyEntity['MessagingChannelMode'];
37
45
  export type RoutineStatusValue = MJUserRoutineEntity['Status'];
38
46
  export type RequestStatusValue = MJAIAgentRequestEntity['Status'];
39
- /**
40
- * Projection shape for rows returned from `MJ_BizApps_Tasks: Tasks` (`[__mj_BizAppsTasks].[vwTasks]`).
41
- */
42
- export interface BizAppsTaskRecordLike {
43
- ID: string;
44
- ParentID: string | null;
45
- Name: string;
46
- Description: string | null;
47
- Status: string;
48
- Priority: string | null;
49
- IsPriority: boolean | number | null;
50
- HealthStatus: TaskHealthStatus | null;
51
- ConfidenceScore: number | null;
52
- PercentComplete: number | null;
53
- CheckInCadence: string | null;
54
- PlanningPeriod: string | null;
55
- BaselineValue: number | null;
56
- TargetValue: number | null;
57
- CurrentValue: number | null;
58
- UnitOfMeasure: string | null;
59
- MetricDirection: string | null;
60
- DueAt: Date | string | null;
61
- LastCheckInAt: Date | string | null;
62
- NextCheckInDueAt: Date | string | null;
63
- TypeID?: string | null;
64
- Type?: string | null;
65
- TaskType?: string | null;
66
- }
67
- /**
68
- * Grouped priority objective card with its child milestones/tasks and computed progress.
69
- */
70
- export interface PriorityObjectiveCardViewModel {
71
- Task: BizAppsTaskRecordLike;
72
- Subtasks: BizAppsTaskRecordLike[];
73
- CompletedSubtaskCount: number;
74
- EffectivePercentComplete: number;
75
- EffectiveHealth: TaskHealthStatus;
76
- MetricProgressLabel: string | null;
77
- IsOverdue: boolean;
78
- }
79
47
  export interface RoutineSummaryItem {
80
48
  ID: string;
81
49
  Name: string;
@@ -86,6 +54,43 @@ export interface RoutineSummaryItem {
86
54
  LastRunAt: Date | string | null;
87
55
  LastRunStatus: MJUserRoutineEntity['LastRunStatus'];
88
56
  }
57
+ /** The status label the pages show for a routine: the entity's Status, or 'Fired' for a spent one-shot. */
58
+ export type RoutineDisplayStatusValue = RoutineSummaryItem['Status'] | 'Fired';
59
+ /**
60
+ * True for a one-shot routine that has run and has no next time: the dispatcher disables a one-shot
61
+ * once it fires, so "Disabled" here means "done", not "broken". A one-shot still waiting for its
62
+ * time is not spent, whatever it has run before (a manual run keeps the schedule); a one-shot that
63
+ * was disabled before ever running is just disabled; a recurring routine is never spent.
64
+ */
65
+ export declare function IsSpentOneShotRoutine(routine: Pick<RoutineSummaryItem, 'ScheduleMode' | 'NextRunAt' | 'LastRunAt' | 'Status'>): boolean;
66
+ /** 'Fired' for a spent one-shot, otherwise the routine's own Status. */
67
+ export declare function RoutineDisplayStatus(routine: Pick<RoutineSummaryItem, 'ScheduleMode' | 'NextRunAt' | 'LastRunAt' | 'Status'>): RoutineDisplayStatusValue;
68
+ /**
69
+ * Display order for the wake schedule: routines with a next wake first, soonest first; then the
70
+ * unscheduled (paused, or disabled before ever running); spent one-shots last, most recent first.
71
+ * Returns a new array.
72
+ */
73
+ export declare function SortRoutinesForDisplay<T extends Pick<RoutineSummaryItem, 'ScheduleMode' | 'NextRunAt' | 'LastRunAt' | 'Status'>>(routines: readonly T[]): T[];
74
+ /**
75
+ * An outbound email waiting for approval, as the email action records it in the request's
76
+ * `Comments` (JSON with Operation / From / To / CCRecipients / Subject / Body).
77
+ */
78
+ export interface EmailApprovalDraft {
79
+ Operation: 'Send' | 'Reply' | 'Forward';
80
+ From: string | null;
81
+ To: string;
82
+ CC: string[];
83
+ Subject: string;
84
+ Body: string;
85
+ }
86
+ /**
87
+ * Reads the email draft out of an approval request's Comments. Returns null when the comments are
88
+ * empty, not JSON, or not an email (a call brief, say), so callers can show the draft only when
89
+ * there is one. An older payload without `Operation` counts as a `Send` when To and Subject exist.
90
+ */
91
+ export declare function ParseEmailApprovalPayload(comments: string | null | undefined): EmailApprovalDraft | null;
92
+ /** The draft as plain text for a mail client: headers, a blank line, then the body. */
93
+ export declare function FormatEmailDraftForClipboard(draft: EmailApprovalDraft): string;
89
94
  export interface RequestSummaryItem {
90
95
  ID: string;
91
96
  Request: string;
@@ -113,26 +118,41 @@ export interface PolicyGovernanceSummary {
113
118
  RequireApprovalForDestructiveActions: boolean;
114
119
  AutoApproveAmountThreshold: number | null;
115
120
  }
121
+ /** The Governance page's editable copy of the user's policy. */
122
+ export interface GovernancePolicyDraft {
123
+ DisplayNameOverride: string;
124
+ Status: PolicyStatusValue;
125
+ OnboardingStatus: MJAIAgentUserPolicyEntity['OnboardingStatus'];
126
+ CoordinationMode: PolicyCoordinationModeValue;
127
+ DefaultDataAccessMode: PolicyDataAccessModeValue;
128
+ EmailChannelMode: PolicyEmailChannelModeValue;
129
+ CalendarChannelMode: PolicyCalendarChannelModeValue;
130
+ PhoneChannelMode: PolicyPhoneChannelModeValue;
131
+ MessagingChannelMode: PolicyMessagingChannelModeValue;
132
+ AllowInterAgentCoordination: boolean;
133
+ RequireApprovalForExternalComms: boolean;
134
+ RequireApprovalForFinancials: boolean;
135
+ RequireApprovalForDestructiveActions: boolean;
136
+ AutoApproveAmountThreshold: number | null;
137
+ InstructionsOverride: string;
138
+ }
139
+ /** The draft shown before the user has a policy record. */
140
+ export declare function CreateDefaultPolicyDraft(): GovernancePolicyDraft;
141
+ /** A draft copied from the user's policy record, or the default draft when there is none. */
142
+ export declare function BuildPolicyDraftFromEntity(entity: MJAIAgentUserPolicyEntity | null): GovernancePolicyDraft;
143
+ /** The display name: the draft's override, or 'My Chief of Staff'. */
144
+ export declare function ChiefOfStaffDisplayName(draft: Pick<GovernancePolicyDraft, 'DisplayNameOverride'>): string;
145
+ /** The governance summary published in the agent context. */
146
+ export declare function BuildGovernanceSummary(draft: GovernancePolicyDraft, hasPolicyRecord: boolean): PolicyGovernanceSummary;
116
147
  export interface ChiefOfStaffMetrics {
117
- TotalTaskCount: number;
118
- PriorityObjectiveCount: number;
119
- SubtaskCount: number;
120
- OnTrackCount: number;
121
- AtRiskCount: number;
122
- OffTrackCount: number;
123
- CompletedPriorityCount: number;
124
- AverageConfidenceScore: number | null;
125
- AveragePriorityProgress: number;
126
148
  PendingApprovalCount: number;
127
149
  HighPriorityPendingCount: number;
128
150
  ActiveWakeRoutineCount: number;
129
151
  NextScheduledWakeAt: Date | null;
130
- PriorityCards: PriorityObjectiveCardViewModel[];
131
152
  }
132
153
  export interface ChiefOfStaffAgentContextInput {
133
- ActiveTab: ChiefOfStaffTab;
154
+ Page: ChiefOfStaffPage;
134
155
  SearchText: string;
135
- HealthFilter: HealthFilter;
136
156
  Metrics: ChiefOfStaffMetrics;
137
157
  Governance: PolicyGovernanceSummary;
138
158
  Routines: readonly RoutineSummaryItem[];
@@ -142,7 +162,7 @@ export type AgentContextScalar = string | number | boolean | null;
142
162
  export type AgentContextRecord = Record<string, AgentContextScalar | string[] | Record<string, AgentContextScalar>>;
143
163
  /**
144
164
  * Returns `true` when an `MJ: AI Agent Requests` row represents an actionable approval or
145
- * review request for the Executive Cockpit's Pending Approvals queue, and `false` when it
165
+ * review request for the Chief of Staff's Pending Approvals queue, and `false` when it
146
166
  * is a conversational `Information` turn created by `BaseAgent` when ending a chat turn.
147
167
  */
148
168
  export declare function IsApprovalRequest(req: {
@@ -150,71 +170,20 @@ export declare function IsApprovalRequest(req: {
150
170
  RequestTypeID?: MJAIAgentRequestEntity['RequestTypeID'] | undefined;
151
171
  }): boolean;
152
172
  export declare function ParseOptionalDate(val: Date | string | null | undefined): Date | null;
153
- /**
154
- * Builds the primary key of a BizApps task from the entity's own primary key column(s) and the
155
- * in-memory row. Tasks is an OpenApp entity, so neither the column name nor the column count is
156
- * assumed; the same key feeds `OpenEntityRecord` and the `PrimaryKey` parameter of `Update Record`.
157
- */
158
- export declare function BuildTaskRecordKey(entityInfo: EntityInfo, task: BizAppsTaskRecordLike): CompositeKey;
159
- export declare function IsTaskPriorityObjective(task: BizAppsTaskRecordLike): boolean;
160
- export declare function NormalizeTaskHealth(task: BizAppsTaskRecordLike): TaskHealthStatus;
161
- /**
162
- * Percent progress from `BaselineValue` toward `TargetValue`, clamped to 0-100.
163
- * Honors `MetricDirection` implicitly: a Down target (target < baseline) measures reduction.
164
- * Returns null when there is no target or the target equals the baseline (no measurable span).
165
- */
166
- export declare function ComputeTaskMetricPercent(task: BizAppsTaskRecordLike): number | null;
167
- /** ExtraFilters for the cockpit's three core-entity queries. Every clause is bound to the current user: the cockpit never shows another user's Chief of Staff data. */
168
- export interface CockpitScopeFilters {
173
+ /** ExtraFilters for the pages' three core-entity queries. Every clause is bound to the current user: the pages never show another user's Chief of Staff data. */
174
+ export interface ChiefOfStaffScopeFilters {
169
175
  Policy: string;
170
176
  Routines: string;
171
177
  Requests: string;
172
178
  }
173
- export declare function BuildCockpitScopeFilters(currentUserId: string, chiefOfStaffAgentId: string): CockpitScopeFilters;
174
- /** OpenApp entity holding the person linked to the signed-in MJ user (`LinkedUserID`). */
175
- export declare const BIZAPPS_PEOPLE_ENTITY_NAME = "MJ_BizApps_Common: People";
176
- /** OpenApp entity linking tasks to the people assigned to them. */
177
- export declare const BIZAPPS_TASK_ASSIGNMENTS_ENTITY_NAME = "MJ_BizApps_Tasks: Task Assignments";
178
- /** CSS modifier for a task priority badge, keyed by the Tasks `Priority` value list (Critical/High/Medium/Low). */
179
- export declare function GetTaskPriorityClass(priority: string | null): string;
180
- /** Minimal RunView surface the task-scope resolver needs; `RunView` from @memberjunction/core satisfies it. */
181
- export interface TaskScopeQueryRunner {
182
- RunView<T>(params: RunViewParams): Promise<{
183
- Success: boolean;
184
- Results: T[];
185
- ErrorMessage?: string;
186
- }>;
187
- }
188
- export type PersonTaskScope = {
189
- HasLinkedPerson: false;
190
- } | {
191
- HasLinkedPerson: true;
192
- PersonID: string;
193
- Filter: string;
194
- };
195
- /**
196
- * Resolve the BizApps person linked to `currentUserId` and the filter that limits the Tasks query to work
197
- * that person created or is assigned to. Throws when either lookup fails so the caller can show the error.
198
- */
199
- export declare function ResolvePersonTaskScope(runner: TaskScopeQueryRunner, currentUserId: string): Promise<PersonTaskScope>;
200
- /**
201
- * ExtraFilter for `MJ_BizApps_Tasks: Tasks` limiting rows to work the given person created or is assigned to.
202
- * `assignedTaskIDs` come from `MJ_BizApps_Tasks: Task Assignments` for the same person.
203
- */
204
- export declare function BuildPersonScopedTaskFilter(personID: string, assignedTaskIDs: readonly string[]): string;
205
- export declare function FormatTaskMetricProgress(task: BizAppsTaskRecordLike): string | null;
206
- export declare function CalculateChiefOfStaffMetrics(tasks: readonly BizAppsTaskRecordLike[], routines: readonly RoutineSummaryItem[], requests: readonly RequestSummaryItem[], now?: Date): ChiefOfStaffMetrics;
179
+ export declare function BuildChiefOfStaffScopeFilters(currentUserId: string, chiefOfStaffAgentId: string): ChiefOfStaffScopeFilters;
180
+ /** The core counts: pending approvals and active wakes. */
181
+ export declare function CalculateChiefOfStaffMetrics(routines: readonly RoutineSummaryItem[], requests: readonly RequestSummaryItem[]): ChiefOfStaffMetrics;
207
182
  export declare function BuildChiefOfStaffAgentContext(input: ChiefOfStaffAgentContextInput): AgentContextRecord;
208
- export declare function ValidateChiefOfStaffTabParam(raw: string | number | boolean | null | undefined): {
183
+ /** Validates a page parameter against the Chief of Staff application's own pages. */
184
+ export declare function ValidateChiefOfStaffPageParam(raw: string | number | boolean | null | undefined): {
209
185
  ok: true;
210
- value: ChiefOfStaffTab;
211
- } | {
212
- ok: false;
213
- result: AgentToolResult;
214
- };
215
- export declare function ValidateHealthFilterParam(raw: string | number | boolean | null | undefined): {
216
- ok: true;
217
- value: HealthFilter;
186
+ value: ChiefOfStaffPage;
218
187
  } | {
219
188
  ok: false;
220
189
  result: AgentToolResult;
@@ -226,11 +195,4 @@ export declare function ValidateSearchQueryParam(raw: string | number | boolean
226
195
  ok: false;
227
196
  result: AgentToolResult;
228
197
  };
229
- export declare function ResolvePriorityObjectiveByIDOrName(cards: readonly PriorityObjectiveCardViewModel[], rawRef: string | number | boolean | null | undefined): {
230
- ok: true;
231
- value: PriorityObjectiveCardViewModel;
232
- } | {
233
- ok: false;
234
- error: string;
235
- };
236
198
  //# sourceMappingURL=chief-of-staff-agent-context.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"chief-of-staff-agent-context.d.ts","sourceRoot":"","sources":["../../src/ChiefOfStaff/chief-of-staff-agent-context.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EACR,yBAAyB,EACzB,mBAAmB,EACnB,sBAAsB,EACzB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,KAAK,UAAU,EAAE,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAEzF,OAAO,EAKH,KAAK,eAAe,EACvB,MAAM,iCAAiC,CAAC;AAEzC;;;GAGG;AACH,eAAO,MAAM,yBAAyB,mBAAmB,CAAC;AAE1D,MAAM,MAAM,eAAe,GAAG,UAAU,GAAG,YAAY,GAAG,iBAAiB,GAAG,YAAY,CAAC;AAC3F,eAAO,MAAM,yBAAyB,EAAE,SAAS,eAAe,EAKtD,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,QAAQ,GAAG,UAAU,GAAG,WAAW,GAAG,QAAQ,CAAC;AAC1F,MAAM,MAAM,YAAY,GAAG,KAAK,GAAG,gBAAgB,CAAC;AACpD,eAAO,MAAM,oBAAoB,EAAE,SAAS,YAAY,EAO9C,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,yBAAyB,CAAC,QAAQ,CAAC,CAAC;AACpE,MAAM,MAAM,2BAA2B,GAAG,yBAAyB,CAAC,kBAAkB,CAAC,CAAC;AACxF,MAAM,MAAM,yBAAyB,GAAG,yBAAyB,CA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