@elevasis/ui 2.68.0 → 2.70.0

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 (85) hide show
  1. package/dist/api/index.js +3 -3
  2. package/dist/app/index.d.ts +577 -367
  3. package/dist/app/index.js +10 -19
  4. package/dist/auth/index.d.ts +5 -0
  5. package/dist/auth/index.js +5 -5
  6. package/dist/charts/index.js +5 -5
  7. package/dist/{chunk-JC5W55J3.js → chunk-26BTE3Z4.js} +1 -1
  8. package/dist/{chunk-ZNKZMK2E.js → chunk-5C62IRKS.js} +5 -5
  9. package/dist/{chunk-ZGCWTWBD.js → chunk-6TT3FQEZ.js} +16218 -15769
  10. package/dist/{chunk-QYI5BZKM.js → chunk-AGX2CY2O.js} +1 -1
  11. package/dist/{chunk-UFTM5SZZ.js → chunk-AKANHRQ5.js} +9 -3
  12. package/dist/{chunk-NDHMZT2G.js → chunk-C75XWBYZ.js} +1 -1
  13. package/dist/{chunk-2MTP3H3A.js → chunk-CCZJ4OWY.js} +1 -1
  14. package/dist/{chunk-75NOC536.js → chunk-DUEGHF7A.js} +4 -4
  15. package/dist/{chunk-SIVUCZXQ.js → chunk-GJQF3S2Q.js} +1 -1
  16. package/dist/{chunk-ZWS3TCQR.js → chunk-GZADST64.js} +21 -108
  17. package/dist/{chunk-TYKAKJGW.js → chunk-JA2XDMAE.js} +1 -1
  18. package/dist/{chunk-76IVMVI3.js → chunk-LWYLZUUV.js} +3 -3
  19. package/dist/{chunk-WPIASV3H.js → chunk-LY3IKYTZ.js} +2 -2
  20. package/dist/{chunk-HJVPVS57.js → chunk-MFCV4JMQ.js} +5 -5
  21. package/dist/{chunk-L3HFJFYF.js → chunk-NM4A63KJ.js} +30 -48
  22. package/dist/{chunk-OOACTYRA.js → chunk-QDMIFD6F.js} +1 -1
  23. package/dist/{chunk-GBXTRSAU.js → chunk-SMH6SQQE.js} +1 -1
  24. package/dist/{chunk-TGPJNKDU.js → chunk-TJMZUL6E.js} +4 -4
  25. package/dist/{chunk-5NRJ2BLQ.js → chunk-VDX6DL7Z.js} +1 -1
  26. package/dist/{chunk-FK3K2VK2.js → chunk-XKUEO4HG.js} +10 -7
  27. package/dist/components/index.d.ts +1614 -256
  28. package/dist/components/index.js +25 -25
  29. package/dist/components/navigation/index.js +6 -6
  30. package/dist/features/auth/index.d.ts +457 -163
  31. package/dist/features/auth/index.js +7 -7
  32. package/dist/features/clients/index.d.ts +39 -1
  33. package/dist/features/clients/index.js +6 -5
  34. package/dist/features/content/index.css +659 -0
  35. package/dist/features/content/index.d.ts +1978 -0
  36. package/dist/features/content/index.js +2312 -0
  37. package/dist/features/crm/index.d.ts +584 -369
  38. package/dist/features/crm/index.js +7 -7
  39. package/dist/features/dashboard/index.d.ts +0 -6
  40. package/dist/features/dashboard/index.js +7 -7
  41. package/dist/features/delivery/index.css +149 -149
  42. package/dist/features/delivery/index.d.ts +457 -163
  43. package/dist/features/delivery/index.js +6 -6
  44. package/dist/features/knowledge/index.js +5 -5
  45. package/dist/features/lead-gen/index.d.ts +20 -91
  46. package/dist/features/lead-gen/index.js +7 -7
  47. package/dist/features/monitoring/index.css +149 -149
  48. package/dist/features/monitoring/index.js +8 -8
  49. package/dist/features/monitoring/requests/index.js +7 -12
  50. package/dist/features/operations/index.d.ts +0 -84
  51. package/dist/features/operations/index.js +10 -10
  52. package/dist/features/settings/index.d.ts +457 -163
  53. package/dist/features/settings/index.js +7 -7
  54. package/dist/hooks/access/index.d.ts +5 -0
  55. package/dist/hooks/access/index.js +5 -5
  56. package/dist/hooks/delivery/index.d.ts +457 -163
  57. package/dist/hooks/delivery/index.js +2 -2
  58. package/dist/hooks/index.css +149 -149
  59. package/dist/hooks/index.d.ts +2128 -233
  60. package/dist/hooks/index.js +5 -5
  61. package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +0 -6
  62. package/dist/hooks/published.css +149 -149
  63. package/dist/hooks/published.d.ts +2128 -233
  64. package/dist/hooks/published.js +5 -5
  65. package/dist/initialization/index.d.ts +464 -164
  66. package/dist/knowledge/index.d.ts +4 -88
  67. package/dist/knowledge/index.js +3211 -3201
  68. package/dist/{knowledge-search-index-6EZNBNSR.js → knowledge-search-index-LP2WVSQX.js} +689 -695
  69. package/dist/layout/index.js +8 -8
  70. package/dist/organization/index.d.ts +7 -1
  71. package/dist/profile/index.d.ts +457 -163
  72. package/dist/provider/index.d.ts +577 -368
  73. package/dist/provider/index.js +5 -5
  74. package/dist/provider/published.d.ts +577 -368
  75. package/dist/provider/published.js +5 -5
  76. package/dist/supabase/index.d.ts +906 -339
  77. package/dist/test-utils/index.d.ts +10 -2
  78. package/dist/test-utils/index.js +39 -10
  79. package/dist/types/index.d.ts +464 -170
  80. package/dist/utils/index.d.ts +0 -6
  81. package/dist/utils/index.js +1 -1
  82. package/dist/vite/index.js +2 -2
  83. package/dist/vite-plugin-knowledge/index.js +1 -1
  84. package/package.json +9 -5
  85. package/src/features/README.md +28 -28
@@ -1,4 +1,4 @@
1
- import { useOptionalElevasisSystems } from './chunk-ZGCWTWBD.js';
1
+ import { useOptionalElevasisSystems } from './chunk-6TT3FQEZ.js';
2
2
  import { useRouterContext } from './chunk-Q7DJKLEN.js';
3
3
  import { useMemo } from 'react';
4
4
 
@@ -25,11 +25,17 @@ function detectLayout(viteRoot) {
25
25
  return {
26
26
  mode: "monorepo",
27
27
  projectRoot,
28
- omSourcePath: resolve(projectRoot, "packages/elevasis-core/src/organization-model/index.ts"),
28
+ omSourcePath: resolve(projectRoot, "packages/elevasis/core/config/organization-model.ts"),
29
29
  // monorepo mode does not consume mdxNodesDir; field kept for type uniformity
30
- mdxNodesDir: resolve(projectRoot, "packages/elevasis-core/knowledge-nodes-unused"),
30
+ mdxNodesDir: resolve(projectRoot, "packages/elevasis/core/knowledge-nodes-unused"),
31
31
  generatedDir: resolve(projectRoot, "packages/ui/src/knowledge/_generated"),
32
- watchPaths: [resolve(projectRoot, "packages/elevasis-core/src/organization-model")]
32
+ // Both, and the knowledge dir is the load-bearing one: monorepo runCodegen
33
+ // regenerates from the MDX bodies, so watching only the OM meant a node edit
34
+ // never hot-regenerated. Pre-dates the move — the paths changed, the gap did not.
35
+ watchPaths: [
36
+ resolve(projectRoot, "packages/elevasis/core/config/organization-model"),
37
+ resolve(projectRoot, "packages/elevasis/core/config/knowledge/nodes")
38
+ ]
33
39
  };
34
40
  }
35
41
  const parent = resolve(dir, "..");
@@ -1,4 +1,4 @@
1
- import { getErrorInfo, formatErrorMessage, getErrorTitle } from './chunk-L3HFJFYF.js';
1
+ import { getErrorInfo, formatErrorMessage, getErrorTitle } from './chunk-NM4A63KJ.js';
2
2
  import { useElevasisServices } from './chunk-BI5VDO2K.js';
3
3
  import { useQuery, useQueryClient, useMutation } from '@tanstack/react-query';
4
4
  import { notifications } from '@mantine/notifications';
@@ -1,4 +1,4 @@
1
- import { useAppearance } from './chunk-ZGCWTWBD.js';
1
+ import { useAppearance } from './chunk-6TT3FQEZ.js';
2
2
  import { useState, Component } from 'react';
3
3
  import { CopyButton, Tooltip } from '@mantine/core';
4
4
  import { IconCheck, IconCopy } from '@tabler/icons-react';
@@ -1,13 +1,13 @@
1
1
  import { useAvailablePresets } from './chunk-ZFISGKYW.js';
2
- import { AppShellLoader } from './chunk-GBXTRSAU.js';
2
+ import { AppShellLoader } from './chunk-SMH6SQQE.js';
3
3
  import { FilterBar } from './chunk-PDHTXPSF.js';
4
- import { useDeleteCredential, ListSkeleton, EmptyState, CustomModal, useCreateCredential, useCredentials, PageTitleCaption, MEMBERSHIP_STATUS_COLORS, PROVISIONING_STATE_DISPLAY, transformMembershipToTableRow, APIErrorAlert, useUserMemberships, useUpdateWebhookEndpoint, useResources, useDeleteWebhookEndpoint, useCreateWebhookEndpoint, useListWebhookEndpoints, StatCard, useOrgRoles, useAssignRole, useRevokeRole, useAccess, AccessKeys, useOrganizationMembers, usePermissionCatalog, AccessGuard, useUpdateCredential, CredentialSchemas } from './chunk-ZGCWTWBD.js';
5
- import { showApiErrorNotification, showErrorNotification, showSuccessNotification } from './chunk-NDHMZT2G.js';
4
+ import { useDeleteCredential, ListSkeleton, EmptyState, CustomModal, useCreateCredential, useCredentials, PageTitleCaption, MEMBERSHIP_STATUS_COLORS, PROVISIONING_STATE_DISPLAY, transformMembershipToTableRow, APIErrorAlert, useUserMemberships, useUpdateWebhookEndpoint, useResources, useDeleteWebhookEndpoint, useCreateWebhookEndpoint, useListWebhookEndpoints, StatCard, useOrgRoles, useAssignRole, useRevokeRole, useAccess, AccessKeys, useOrganizationMembers, usePermissionCatalog, AccessGuard, useUpdateCredential, CredentialSchemas } from './chunk-6TT3FQEZ.js';
5
+ import { showApiErrorNotification, showErrorNotification, showSuccessNotification } from './chunk-C75XWBYZ.js';
6
6
  import { CardHeader } from './chunk-62GVNH5U.js';
7
7
  import { useInitialization } from './chunk-P45GQ3ZW.js';
8
8
  import { RoleBadge } from './chunk-UD657ICS.js';
9
9
  import { useOrganization } from './chunk-DD3CCMCZ.js';
10
- import { isAPIClientError, formatDateTime, OAUTH_FLOW_TIMEOUT } from './chunk-L3HFJFYF.js';
10
+ import { isAPIClientError, formatDateTime, OAUTH_FLOW_TIMEOUT } from './chunk-NM4A63KJ.js';
11
11
  import { useElevasisServices } from './chunk-BI5VDO2K.js';
12
12
  import { brandSupabaseOrgId } from './chunk-MQZE7SUI.js';
13
13
  import { createUseExternalEvents, Text, Table, Group, Tooltip, ActionIcon, Stack, Title, Button, Select, TextInput, Alert, PasswordInput, Anchor, Paper, Badge, Center, Loader, Box, Code, CopyButton, ThemeIcon, SimpleGrid, UnstyledButton, Card, Switch, Divider, Textarea, MultiSelect } from '@mantine/core';
@@ -1,4 +1,4 @@
1
- import { NavigationButton, useAppearance, useElevasisSystems } from './chunk-ZGCWTWBD.js';
1
+ import { NavigationButton, useAppearance, useElevasisSystems } from './chunk-6TT3FQEZ.js';
2
2
  import { sidebarItemGap, sidebarSubLinkPaddingY, sidebarSubLinkPaddingX, sidebarSubLinkIndent, sidebarHoverDelay, sidebarTransitionDuration, sidebarCollapsedWidth, sidebarWidth, topbarHeight, sidebarToggleIconSize, sidebarSectionPadding, sidebarGroupChevronSize, sidebarIconInnerSize, SubshellNavItem } from './chunk-MISHPEJX.js';
3
3
  import { useRouterContext } from './chunk-Q7DJKLEN.js';
4
4
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
@@ -1,21 +1,21 @@
1
- import { SubshellLoader } from './chunk-OOACTYRA.js';
2
- import { CollapsibleJsonSection, ExecutionStats, UnifiedWorkflowGraph, WorkflowExecutionTimeline, AgentExecutionVisualizer, AgentExecutionTimeline, AgentIterationDetailPanel } from './chunk-FK3K2VK2.js';
1
+ import { SubshellLoader } from './chunk-QDMIFD6F.js';
2
+ import { CollapsibleJsonSection, ExecutionStats, UnifiedWorkflowGraph, WorkflowExecutionTimeline, AgentExecutionVisualizer, AgentExecutionTimeline, AgentIterationDetailPanel } from './chunk-XKUEO4HG.js';
3
3
  import { FormFieldRenderer } from './chunk-3MEXPLWT.js';
4
4
  import { ChatInterface, ChatHeader } from './chunk-SNZDFCOQ.js';
5
- import { ResourceHealthPanel } from './chunk-TYKAKJGW.js';
5
+ import { ResourceHealthPanel } from './chunk-JA2XDMAE.js';
6
6
  import { Graph_module_css_default } from './chunk-HENXLGVD.js';
7
- import { AppShellLoader } from './chunk-GBXTRSAU.js';
7
+ import { AppShellLoader } from './chunk-SMH6SQQE.js';
8
8
  import { PageContainer } from './chunk-BZZCNLT6.js';
9
- import { DEFAULT_ORGANIZATION_GRAPH_FILTERS, resolveSemanticIconComponent, CustomModal, useAppearance, useErrorDetail, JsonViewer, useExecution, useArchivedLogs, useDeleteExecution, useRetryExecution, useCancelExecution, ConfirmationModal, PageTitleCaption, CollapsibleSection, useStatusFilter, useResourceSearch, useResourcesDomainFilters, usePaginationState, useResources, useRecentExecutionsByResource, filterByDomainFilters, TabCountBadge, ResourceCard, useResourceDefinition, isSessionCapable, useOptionalElevasisSystems, useDeleteTask, useCommandQueue, useSubmitAction, useCommandQueueTask, ContextViewer, useElevasisSystems, useCommandViewData, useCommandViewStats, useCommandViewStore, buildOrganizationGraph, useResourceExecutions, useCheckpointTasks, EmptyState, useExecutionPanelState, useSessionMessages, useSessionWebSocket, useSessions, SessionListItem, useSessionExecutions, useDeleteSession, useEndSession, useCreateSession, useSession, getSessionView, SubshellContentContainer, collectResourceFilterFacets, SemanticIcon, useSystemsViewState, aggregateSystemMetrics, useSystemHealth, ORGANIZATION_GRAPH_NODE_KIND_ORDER, formatResourceAttribution, SYSTEM_RESOURCE_KINDS, ORGANIZATION_GRAPH_NODE_KIND_LABELS, ORGANIZATION_GRAPH_EDGE_KIND_LABELS, ORGANIZATION_GRAPH_NODE_KIND_DETAIL_LABELS, ORGANIZATION_GRAPH_NODE_KIND_MEANINGS, ORGANIZATION_GRAPH_EDGE_KIND_MEANINGS } from './chunk-ZGCWTWBD.js';
10
- import { showApiErrorNotification, showSuccessNotification } from './chunk-NDHMZT2G.js';
9
+ import { DEFAULT_ORGANIZATION_GRAPH_FILTERS, resolveSemanticIconComponent, CustomModal, useAppearance, useErrorDetail, JsonViewer, useExecution, useArchivedLogs, useDeleteExecution, useRetryExecution, useCancelExecution, ConfirmationModal, PageTitleCaption, CollapsibleSection, useStatusFilter, useResourceSearch, useResourcesDomainFilters, usePaginationState, useResources, useRecentExecutionsByResource, filterByDomainFilters, TabCountBadge, ResourceCard, useResourceDefinition, isSessionCapable, useOptionalElevasisSystems, useDeleteTask, useCommandQueue, useSubmitAction, useCommandQueueTask, ContextViewer, useElevasisSystems, useCommandViewData, useCommandViewStats, useCommandViewStore, buildOrganizationGraph, useResourceExecutions, useCheckpointTasks, EmptyState, useExecutionPanelState, useSessionMessages, useSessionWebSocket, useSessions, SessionListItem, useSessionExecutions, useDeleteSession, useEndSession, useCreateSession, useSession, getSessionView, SubshellContentContainer, collectResourceFilterFacets, SemanticIcon, useSystemsViewState, aggregateSystemMetrics, useSystemHealth, ORGANIZATION_GRAPH_NODE_KIND_ORDER, formatResourceAttribution, SYSTEM_RESOURCE_KINDS, ORGANIZATION_GRAPH_NODE_KIND_LABELS, ORGANIZATION_GRAPH_EDGE_KIND_LABELS, ORGANIZATION_GRAPH_NODE_KIND_DETAIL_LABELS, ORGANIZATION_GRAPH_NODE_KIND_MEANINGS, ORGANIZATION_GRAPH_EDGE_KIND_MEANINGS } from './chunk-6TT3FQEZ.js';
10
+ import { showApiErrorNotification, showSuccessNotification } from './chunk-C75XWBYZ.js';
11
+ import { topbarHeight } from './chunk-MISHPEJX.js';
11
12
  import { CardHeader } from './chunk-62GVNH5U.js';
12
13
  import { useInitialization } from './chunk-P45GQ3ZW.js';
13
14
  import { mergeSessionMessages } from './chunk-M7WWRZ5Z.js';
14
15
  import { StyledMarkdown } from './chunk-3KMDHCAR.js';
15
- import { topbarHeight } from './chunk-MISHPEJX.js';
16
16
  import { getResourceStatusColor, useMergedExecution, useTimelineData, useAgentIterationData } from './chunk-BLXJEIQS.js';
17
17
  import { useOrganization } from './chunk-DD3CCMCZ.js';
18
- import { getErrorInfo, formatErrorMessage, getResourceIcon, formatRelativeTime, PAGE_SIZE_DEFAULT, listAllSystems, getSystem, compileOrganizationOntology, getSystemAncestors } from './chunk-L3HFJFYF.js';
18
+ import { getErrorInfo, formatErrorMessage, getResourceIcon, formatRelativeTime, PAGE_SIZE_DEFAULT, listAllSystems, getSystem, compileOrganizationOntology, getSystemAncestors } from './chunk-NM4A63KJ.js';
19
19
  import { ResourceStatusColors, toWorkflowLogMessages } from './chunk-6SSQGWK7.js';
20
20
  import { useElevasisServices } from './chunk-BI5VDO2K.js';
21
21
  import { useRouterContext } from './chunk-Q7DJKLEN.js';
@@ -3283,89 +3283,11 @@ function EventObjectView({ node, linkedNodes, organizationModel, onSelectNode })
3283
3283
  ] })
3284
3284
  ] });
3285
3285
  }
3286
- var LINKED_OBJECT_ORDER7 = [
3287
- "applies_to (outgoing)",
3288
- "triggers (incoming)",
3289
- "effects (outgoing)",
3290
- "governs (outgoing)",
3291
- "governs (incoming)"
3292
- ];
3293
- function describeTrigger(trigger) {
3294
- switch (trigger.kind) {
3295
- case "event":
3296
- return `event ${trigger.eventId}`;
3297
- case "action-invocation":
3298
- return `action ${trigger.actionId}`;
3299
- case "schedule":
3300
- return `schedule ${trigger.cron}`;
3301
- case "manual":
3302
- return "manual";
3303
- }
3304
- }
3305
- function describePredicate(predicate) {
3306
- switch (predicate.kind) {
3307
- case "always":
3308
- return "always";
3309
- case "expression":
3310
- return predicate.expression;
3311
- case "threshold":
3312
- return `${predicate.metric} ${predicate.operator} ${predicate.value}`;
3313
- }
3314
- }
3315
- function describeEffect(effect) {
3316
- switch (effect.kind) {
3317
- case "require-approval":
3318
- return effect.roleId ? `require approval from ${effect.roleId}` : "require approval";
3319
- case "invoke-action":
3320
- return `invoke ${effect.actionId}`;
3321
- case "notify-role":
3322
- return `notify ${effect.roleId}`;
3323
- case "block":
3324
- return "block";
3325
- }
3326
- }
3327
- function countApplicability(appliesTo) {
3328
- return appliesTo.systemIds.length + appliesTo.actionIds.length + appliesTo.resourceIds.length + appliesTo.roleIds.length;
3329
- }
3330
- function PolicyObjectView({ node, linkedNodes, organizationModel, onSelectNode }) {
3331
- const policy = node.sourceId ? organizationModel?.policies[node.sourceId] : void 0;
3332
- const prominentProperties = policy ? [
3333
- { label: "Applies To", value: String(countApplicability(policy.appliesTo)) },
3334
- { label: "Trigger", value: describeTrigger(policy.trigger) },
3335
- { label: "Conditions", value: describePredicate(policy.predicate) },
3336
- { label: "Effects", value: policy.actions.map(describeEffect).join(", ") },
3337
- { label: "Lifecycle", value: policy.lifecycle }
3338
- ] : [
3339
- { label: "Kind", value: node.kind },
3340
- { label: "ID", value: node.id },
3341
- { label: "Policy ID", value: node.sourceId ?? "Not declared" },
3342
- { label: "Label", value: node.label }
3343
- ];
3344
- return /* @__PURE__ */ jsxs(Stack, { gap: "md", children: [
3345
- /* @__PURE__ */ jsxs(Stack, { gap: "sm", children: [
3346
- /* @__PURE__ */ jsx(Title, { order: 5, children: "Prominent Properties" }),
3347
- !policy ? /* @__PURE__ */ jsx(Text, { size: "sm", c: "dimmed", children: "Policy details are not available in the current organization model snapshot." }) : null,
3348
- /* @__PURE__ */ jsx(ProminentPropertiesSection, { properties: prominentProperties })
3349
- ] }),
3350
- /* @__PURE__ */ jsxs(Stack, { gap: "sm", children: [
3351
- /* @__PURE__ */ jsx(Title, { order: 5, children: "Linked" }),
3352
- /* @__PURE__ */ jsx(
3353
- LinkedObjectsSection,
3354
- {
3355
- orderedKeys: LINKED_OBJECT_ORDER7,
3356
- byRelationship: linkedNodes.byRelationship,
3357
- onSelectNode
3358
- }
3359
- )
3360
- ] })
3361
- ] });
3362
- }
3363
3286
 
3364
3287
  // src/features/operations/organization-graph/object-views/registry.ts
3365
3288
  var objectViewRegistry = {
3366
3289
  entity: EntityObjectView,
3367
3290
  event: EventObjectView,
3368
- policy: PolicyObjectView,
3369
3291
  "resource:agent": AgentObjectView,
3370
3292
  "resource:workflow": WorkflowObjectView,
3371
3293
  "resource:trigger": TriggerObjectView,
@@ -3443,8 +3365,6 @@ function getNodeIconToken(kind) {
3443
3365
  return "database";
3444
3366
  case "event":
3445
3367
  return "bolt";
3446
- case "policy":
3447
- return "shield";
3448
3368
  case "system":
3449
3369
  return "apps";
3450
3370
  case "role":
@@ -4311,9 +4231,6 @@ function getNodeDomain(node, graph) {
4311
4231
  if (node.kind === "event") {
4312
4232
  return "runtime";
4313
4233
  }
4314
- if (node.kind === "policy") {
4315
- return "admin";
4316
- }
4317
4234
  if (node.kind === "knowledge") {
4318
4235
  return "knowledge";
4319
4236
  }
@@ -5015,7 +4932,6 @@ var COMMAND_VIEW_NODE_KINDS = [
5015
4932
  "role",
5016
4933
  "action",
5017
4934
  "entity",
5018
- "policy",
5019
4935
  "stage",
5020
4936
  "resource",
5021
4937
  "knowledge",
@@ -5343,16 +5259,15 @@ var NODE_KIND_ORDER = {
5343
5259
  action: 4,
5344
5260
  stage: 5,
5345
5261
  entity: 6,
5346
- policy: 7,
5347
- resource: 8,
5348
- knowledge: 9,
5349
- event: 10,
5350
- "customer-segment": 11,
5351
- offering: 12,
5352
- goal: 13,
5353
- surface: 14,
5354
- "navigation-group": 15,
5355
- ontology: 16
5262
+ resource: 7,
5263
+ knowledge: 8,
5264
+ event: 9,
5265
+ "customer-segment": 10,
5266
+ offering: 11,
5267
+ goal: 12,
5268
+ surface: 13,
5269
+ "navigation-group": 14,
5270
+ ontology: 15
5356
5271
  };
5357
5272
  function getNodeLabel(node) {
5358
5273
  return node.label || node.sourceId || node.id;
@@ -5576,7 +5491,6 @@ var ORG_MODEL_ROOT_KINDS = /* @__PURE__ */ new Set([
5576
5491
  "role",
5577
5492
  "action",
5578
5493
  "entity",
5579
- "policy",
5580
5494
  "stage",
5581
5495
  "knowledge",
5582
5496
  "customer-segment",
@@ -5711,7 +5625,7 @@ function buildSummaryMessages(input) {
5711
5625
  return ["Select an available node to expand around."];
5712
5626
  }
5713
5627
  if (!preset && rootNode.kind === "organization") {
5714
- return ["Choose a system, role, action, entity, policy, or resource before expanding."];
5628
+ return ["Choose a system, role, action, entity, or resource before expanding."];
5715
5629
  }
5716
5630
  if (expandedNodes.length === 0) {
5717
5631
  return [`No matching graph context found around "${getNodeDisplayName(rootNode)}".`];
@@ -6333,7 +6247,7 @@ function ExploreLegend() {
6333
6247
  /* @__PURE__ */ jsx(Text, { size: "xs", fw: 600, c: "dimmed", tt: "uppercase", children: "Multi-level drill-down" }),
6334
6248
  /* @__PURE__ */ jsxs(Stack, { gap: 2, children: [
6335
6249
  /* @__PURE__ */ jsx(Text, { size: "xs", c: "dimmed", children: "Click any node with children to expand its subgraph; siblings at the same level auto-collapse; click a higher segment in the breadcrumb to collapse downward; Esc collapses all." }),
6336
- /* @__PURE__ */ jsx(Text, { size: "xs", c: "dimmed", children: "Expansion follows the Organization Model path: root to systems, owned content, surfaces, actions, entities, policies, and mapped resources." }),
6250
+ /* @__PURE__ */ jsx(Text, { size: "xs", c: "dimmed", children: "Expansion follows the Organization Model path: root to systems, owned content, surfaces, actions, entities, and mapped resources." }),
6337
6251
  /* @__PURE__ */ jsx(Text, { size: "xs", c: "dimmed", children: "Resource visibility inside expanded zones is controlled by the existing Show/Hide resources toggle." })
6338
6252
  ] })
6339
6253
  ] });
@@ -6971,7 +6885,6 @@ function getNodeThemeByKind(tokens) {
6971
6885
  action: mixColors(tokens.primary, tokens.success, 0.72),
6972
6886
  entity: mixColors(tokens.success, tokens.warning, 0.44),
6973
6887
  event: mixColors(tokens.warning, tokens.error, 0.48),
6974
- policy: mixColors(tokens.primary, tokens.error, 0.62),
6975
6888
  stage: mixColors(tokens.primary, tokens.warning, 0.32),
6976
6889
  resource: mixColors(tokens.primary, tokens.warning, 0.58),
6977
6890
  knowledge: mixColors(tokens.primary, tokens.text, 0.6),
@@ -7522,8 +7435,8 @@ function createCytoscapeStyle(tokens, visualizationMode) {
7522
7435
  }
7523
7436
  },
7524
7437
  {
7525
- // OD-9: action and policy nodes - medium ellipse.
7526
- selector: 'node[kind = "action"], node[kind = "policy"]',
7438
+ // OD-9: action nodes - medium ellipse.
7439
+ selector: 'node[kind = "action"]',
7527
7440
  style: {
7528
7441
  shape: "ellipse",
7529
7442
  width: 70,
@@ -1,4 +1,4 @@
1
- import { useCyberColors, useResourcesHealth, EmptyState, CyberLegendItem, CyberAreaChart } from './chunk-ZGCWTWBD.js';
1
+ import { useCyberColors, useResourcesHealth, EmptyState, CyberLegendItem, CyberAreaChart } from './chunk-6TT3FQEZ.js';
2
2
  import { CardHeader } from './chunk-62GVNH5U.js';
3
3
  import { getTimeRangeDates, formatBucketTime } from './chunk-Y6I3IC45.js';
4
4
  import { Paper, Center, Loader, Group } from '@mantine/core';
@@ -1,9 +1,9 @@
1
- import { AppShellLoader } from './chunk-GBXTRSAU.js';
1
+ import { AppShellLoader } from './chunk-SMH6SQQE.js';
2
2
  import { FilterBar } from './chunk-PDHTXPSF.js';
3
- import { CenteredErrorState, StatsCardSkeleton, CyberAreaChart, TrendIndicator, DetailCardSkeleton, useResolveError, useResolveAllErrors, usePaginationState, useErrorDetails, EmptyState, useMarkAsRead, useExecutionLogsFilters, useExecutionLogs, PageTitleCaption, useExecutionHealth, useErrorAnalysis, useTimeRangeDates, useErrorDetail, useResolveErrorsByExecution, useResources, CustomModal, JsonViewer, useCostTrends, useCostSummary, useCostByModel, useCostBreakdown, CostTrendChart, useActivityFilters, useActivityTrend, useActivities, ActivityTrendChart, useNotifications, useMarkAllAsRead } from './chunk-ZGCWTWBD.js';
3
+ import { CenteredErrorState, StatsCardSkeleton, CyberAreaChart, TrendIndicator, DetailCardSkeleton, useResolveError, useResolveAllErrors, usePaginationState, useErrorDetails, EmptyState, useMarkAsRead, useExecutionLogsFilters, useExecutionLogs, PageTitleCaption, useExecutionHealth, useErrorAnalysis, useTimeRangeDates, useErrorDetail, useResolveErrorsByExecution, useResources, CustomModal, JsonViewer, useCostTrends, useCostSummary, useCostByModel, useCostBreakdown, CostTrendChart, useActivityFilters, useActivityTrend, useActivities, ActivityTrendChart, useNotifications, useMarkAllAsRead } from './chunk-6TT3FQEZ.js';
4
4
  import { CardHeader } from './chunk-62GVNH5U.js';
5
5
  import { formatDuration } from './chunk-BLXJEIQS.js';
6
- import { PAGE_SIZE_DEFAULT } from './chunk-L3HFJFYF.js';
6
+ import { PAGE_SIZE_DEFAULT } from './chunk-NM4A63KJ.js';
7
7
  import { formatBucketTime, getTimeRangeDates } from './chunk-Y6I3IC45.js';
8
8
  import { useRouterContext } from './chunk-Q7DJKLEN.js';
9
9
  import { useState, useMemo, useCallback } from 'react';
@@ -1,5 +1,5 @@
1
- import { getLeadGenStageCatalog } from './chunk-ZGCWTWBD.js';
2
- import { SYSTEM_INTERFACE_PROFILES, formatOntologyId, registerBuiltInReadinessProfile, registerReadinessInterfaceMarker, requireContractReadiness, computeInterfaceReadiness, addReadinessIssue, formatInterfaceIdentity, resourceBindingIds, requireCatalogReadiness, requireScopedBinding } from './chunk-L3HFJFYF.js';
1
+ import { getLeadGenStageCatalog } from './chunk-6TT3FQEZ.js';
2
+ import { SYSTEM_INTERFACE_PROFILES, formatOntologyId, registerBuiltInReadinessProfile, registerReadinessInterfaceMarker, requireContractReadiness, computeInterfaceReadiness, addReadinessIssue, formatInterfaceIdentity, resourceBindingIds, requireCatalogReadiness, requireScopedBinding } from './chunk-NM4A63KJ.js';
3
3
 
4
4
  // ../core/src/business/acquisition/ontology-validation.ts
5
5
  var LEAD_GEN_API_INTERFACE = SYSTEM_INTERFACE_PROFILES[0];
@@ -1,12 +1,12 @@
1
- import { CRM_API_INTERFACE } from './chunk-WPIASV3H.js';
1
+ import { CRM_API_INTERFACE } from './chunk-LY3IKYTZ.js';
2
2
  import { PageContainer } from './chunk-BZZCNLT6.js';
3
3
  import { TableSelectionToolbar, SortableHeader } from './chunk-TUMSNGTX.js';
4
4
  import { FilterBar } from './chunk-PDHTXPSF.js';
5
- import { CrmSidebarMiddle, useDealsSummary, useOptionalElevasisSystems, getCrmPipelineCatalog, CenteredErrorState, StatCard, PageTitleCaption, useDeleteDeal, usePaginationState, useDeals, useTableSort, sortData, useTableSelection, SubshellContentContainer, EmptyState, CustomModal, useDealDetail, useCrmActions, ActivityTimeline, useCompany, ContextViewer, JsonViewer, dealKeys, useContact, deriveActions, useExecuteAction } from './chunk-ZGCWTWBD.js';
6
- import { showApiErrorNotification, showSuccessNotification } from './chunk-NDHMZT2G.js';
7
- import { CardHeader } from './chunk-62GVNH5U.js';
5
+ import { CrmSidebarMiddle, useDealsSummary, useOptionalElevasisSystems, getCrmPipelineCatalog, CenteredErrorState, StatCard, PageTitleCaption, useDeleteDeal, usePaginationState, useDeals, useTableSort, sortData, useTableSelection, SubshellContentContainer, EmptyState, CustomModal, useDealDetail, useCrmActions, ActivityTimeline, useCompany, ContextViewer, JsonViewer, dealKeys, useContact, deriveActions, useExecuteAction } from './chunk-6TT3FQEZ.js';
6
+ import { showApiErrorNotification, showSuccessNotification } from './chunk-C75XWBYZ.js';
8
7
  import { SubshellSidebarSection } from './chunk-MISHPEJX.js';
9
- import { computeInterfaceReadiness, getSystem, PAGE_SIZE_DEFAULT, formatTimeAgo } from './chunk-L3HFJFYF.js';
8
+ import { CardHeader } from './chunk-62GVNH5U.js';
9
+ import { computeInterfaceReadiness, getSystem, PAGE_SIZE_DEFAULT, formatTimeAgo } from './chunk-NM4A63KJ.js';
10
10
  import { useElevasisServices } from './chunk-BI5VDO2K.js';
11
11
  import { Stack, Paper, Center, Loader, Group, Box, Text, Alert, Table, SimpleGrid, Button, Select, TextInput, Tabs, Checkbox, Badge, Tooltip, Pagination, Title, Code, Card, SegmentedControl, Switch, NumberInput, ColorSwatch, Popover, ActionIcon, Anchor, CopyButton, Divider, Textarea } from '@mantine/core';
12
12
  import { IconAddressBook, IconColumns, IconHistory, IconAlertCircle, IconCurrencyDollar, IconChartBar, IconBriefcase, IconTrophy, IconSearch, IconTargetArrow, IconAlertTriangle, IconMessages, IconArrowLeft, IconFileText, IconInbox, IconUser, IconBolt, IconBuilding, IconSettings, IconRestore, IconInfoCircle, IconMailForward, IconPlus, IconArrowRight, IconNote, IconCheck, IconCopy } from '@tabler/icons-react';
@@ -310,11 +310,8 @@ function parentOf(systems, id) {
310
310
  function inheritedValue(systems, id, getValue) {
311
311
  return ancestorsOf(systems, id).slice().reverse().map(getValue).find((value) => value !== void 0);
312
312
  }
313
- function requiresAdminFor(systems, id) {
314
- return inheritedValue(systems, id, (system) => system.requiresAdmin) ?? false;
315
- }
316
313
  function devOnlyFor(systems, id) {
317
- return inheritedValue(systems, id, (system) => system.devOnly || system.lifecycle === "beta" || void 0) ?? false;
314
+ return inheritedValue(systems, id, (system) => system.lifecycle === "beta" || void 0) ?? false;
318
315
  }
319
316
  function getSystem(model, path) {
320
317
  const flatMatch = model.systems[path];
@@ -824,10 +821,28 @@ function compileOrganizationOntology(model) {
824
821
  return { ontology: sortResolvedOntologyIndex(ontology), diagnostics };
825
822
  }
826
823
 
824
+ // ../core/src/organization-model/readiness/profile-registry.ts
825
+ var _builtInProfileValidators = /* @__PURE__ */ new Map();
826
+ function registerBuiltInReadinessProfile(profileId, registration) {
827
+ _builtInProfileValidators.set(profileId, registration);
828
+ }
829
+ function getBuiltInReadinessProfile(profileId) {
830
+ return _builtInProfileValidators.get(profileId);
831
+ }
832
+ var _interfaceMarkerResolvers = /* @__PURE__ */ new Map();
833
+ function interfaceMarkerKey(systemPath, interfaceKey) {
834
+ return `${systemPath}::${interfaceKey}`;
835
+ }
836
+ function registerReadinessInterfaceMarker(systemPath, interfaceKey, resolver) {
837
+ _interfaceMarkerResolvers.set(interfaceMarkerKey(systemPath, interfaceKey), resolver);
838
+ }
839
+ function resolveReadinessInterfaceMarker(model, systemPath, interfaceKey) {
840
+ return _interfaceMarkerResolvers.get(interfaceMarkerKey(systemPath, interfaceKey))?.(model);
841
+ }
842
+
827
843
  // ../core/src/organization-model/domains/systems.ts
828
844
  var SystemKindSchema = z.enum(["product", "operational", "platform", "diagnostic"]).meta({ label: "System kind", color: "blue" });
829
845
  var SystemLifecycleSchema = z.enum(["draft", "beta", "active", "deprecated", "archived"]).meta({ label: "Lifecycle", color: "teal" });
830
- var SystemStatusSchema = z.enum(["active", "deprecated", "archived"]).meta({ label: "Status", color: "teal" });
831
846
  var SystemIdSchema = ModelIdSchema;
832
847
  var SystemPathSchema = z.string().trim().min(1).regex(
833
848
  /^[a-z0-9][a-z0-9-]*(?:\.[a-z0-9][a-z0-9-]*)*$/,
@@ -841,8 +856,7 @@ var NodeIdStringSchema = z.string().trim().min(1).max(200).regex(
841
856
  var SystemUiSchema = z.object({
842
857
  path: PathSchema,
843
858
  surfaces: ReferenceIdsSchema,
844
- icon: IconNameSchema.optional(),
845
- order: z.number().int().optional()
859
+ icon: IconNameSchema.optional()
846
860
  });
847
861
  var SystemInterfaceKeySchema = ModelIdSchema;
848
862
  var SystemInterfaceLifecycleSchema = z.enum(["draft", "active", "disabled", "deprecated", "archived"]).meta({ label: "System interface lifecycle", color: "teal" });
@@ -902,14 +916,11 @@ var SystemApiInterfaceSchema = z.object({
902
916
  */
903
917
  readinessContract: SystemApiInterfaceReadinessContractSchema.optional()
904
918
  }).strict();
905
- var _profileRegistry = new Map(
906
- SYSTEM_INTERFACE_READINESS_PROFILES.map((profileId) => [
907
- profileId,
908
- { profileId, kind: "built-in" }
909
- ])
910
- );
919
+ function isReservedPlatformProfileId(profileId) {
920
+ return SYSTEM_INTERFACE_READINESS_PROFILES.includes(profileId);
921
+ }
911
922
  function isBuiltInReadinessProfile(profileId) {
912
- return _profileRegistry.get(profileId)?.kind === "built-in";
923
+ return isReservedPlatformProfileId(profileId) || getBuiltInReadinessProfile(profileId) !== void 0;
913
924
  }
914
925
  var SystemInterfaceRefSchema = z.object({
915
926
  systemPath: SystemPathSchema,
@@ -941,7 +952,7 @@ var SystemEntrySchema = z.object({
941
952
  parentSystemId: SystemIdSchema.optional(),
942
953
  /** Optional UI presence. Systems without UI omit this. */
943
954
  ui: SystemUiSchema.optional(),
944
- /** Canonical lifecycle state. Replaces Feature.enabled/devOnly and System.status. */
955
+ /** Canonical lifecycle state. `beta` is what gates a System to dev-mode viewers. */
945
956
  lifecycle: SystemLifecycleSchema.optional(),
946
957
  /** Optional role responsible for this system. */
947
958
  responsibleRoleId: ModelIdSchema.meta({ ref: "role" }).optional(),
@@ -949,14 +960,10 @@ var SystemEntrySchema = z.object({
949
960
  governedByKnowledge: z.array(ModelIdSchema.meta({ ref: "knowledge" })).default([]).optional(),
950
961
  /** Optional actions this system exposes or consumes. */
951
962
  actions: z.array(ActionRefSchema).optional(),
952
- /** Optional operational policies that apply to this system. */
953
- policies: z.array(ModelIdSchema.meta({ ref: "policy" })).default([]).optional(),
954
963
  /** Optional goals this system contributes to. */
955
964
  drivesGoals: z.array(ModelIdSchema.meta({ ref: "goal" })).default([]).optional(),
956
965
  /** Thin API runtime-boundary marker. Readiness is derived from scoped resources and topology. */
957
966
  apiInterface: SystemApiInterfaceSchema.optional(),
958
- /** @deprecated Use lifecycle. Accepted for one publish cycle. */
959
- status: SystemStatusSchema.optional(),
960
967
  /** @deprecated Use ui.path. Kept for one-cycle Feature compatibility. */
961
968
  path: PathSchema.optional(),
962
969
  /** @deprecated Use ui.icon. Kept for one-cycle Feature compatibility. */
@@ -965,9 +972,6 @@ var SystemEntrySchema = z.object({
965
972
  uiPosition: UiPositionSchema.optional(),
966
973
  /** @deprecated Use lifecycle. */
967
974
  enabled: z.boolean().optional(),
968
- /** @deprecated Use lifecycle: "beta". */
969
- devOnly: z.boolean().optional(),
970
- requiresAdmin: z.boolean().optional(),
971
975
  /** Domain-map iteration order. Convention: multiples of 10 (10, 20, 30, ...) to allow easy insertion. */
972
976
  order: z.number(),
973
977
  /**
@@ -994,36 +998,14 @@ var SystemEntrySchema = z.object({
994
998
  }).strict().refine((system) => system.label !== void 0 || system.title !== void 0, {
995
999
  path: ["label"],
996
1000
  message: "System must provide label or title"
997
- }).transform((system) => {
998
- const normalizedSystem = system.systems !== void 0 && system.subsystems === void 0 ? { ...system, subsystems: system.systems } : system;
999
- if (normalizedSystem.status === void 0) return normalizedSystem;
1000
- console.warn("[organization-model] System.status is deprecated; use System.lifecycle instead.");
1001
- return normalizedSystem.lifecycle === void 0 ? { ...normalizedSystem, lifecycle: normalizedSystem.status } : normalizedSystem;
1002
- });
1001
+ }).transform(
1002
+ (system) => system.systems !== void 0 && system.subsystems === void 0 ? { ...system, subsystems: system.systems } : system
1003
+ );
1003
1004
  var SystemsDomainSchema = z.record(z.string(), SystemEntrySchema).refine((record) => Object.entries(record).every(([key, entry]) => entry.id === key), {
1004
1005
  message: "Each system entry id must match its map key"
1005
1006
  }).default({});
1006
1007
  var DEFAULT_ORGANIZATION_MODEL_SYSTEMS = {};
1007
1008
 
1008
- // ../core/src/organization-model/readiness/profile-registry.ts
1009
- var _builtInProfileValidators = /* @__PURE__ */ new Map();
1010
- function registerBuiltInReadinessProfile(profileId, registration) {
1011
- _builtInProfileValidators.set(profileId, registration);
1012
- }
1013
- function getBuiltInReadinessProfile(profileId) {
1014
- return _builtInProfileValidators.get(profileId);
1015
- }
1016
- var _interfaceMarkerResolvers = /* @__PURE__ */ new Map();
1017
- function interfaceMarkerKey(systemPath, interfaceKey) {
1018
- return `${systemPath}::${interfaceKey}`;
1019
- }
1020
- function registerReadinessInterfaceMarker(systemPath, interfaceKey, resolver) {
1021
- _interfaceMarkerResolvers.set(interfaceMarkerKey(systemPath, interfaceKey), resolver);
1022
- }
1023
- function resolveReadinessInterfaceMarker(model, systemPath, interfaceKey) {
1024
- return _interfaceMarkerResolvers.get(interfaceMarkerKey(systemPath, interfaceKey))?.(model);
1025
- }
1026
-
1027
1009
  // ../core/src/organization-model/readiness/engine.ts
1028
1010
  function addReadinessIssue(issues, family, code, message, details = {}) {
1029
1011
  issues.push({
@@ -1450,4 +1432,4 @@ function setupBrowserMocks() {
1450
1432
  setupResizeObserver();
1451
1433
  }
1452
1434
 
1453
- export { APIClientError, API_URL, ActionInvocationSchema, ActionSchema, ActionsDomainSchema, DEBOUNCE_FILTER, DEBOUNCE_SLIDER, DEFAULT_ONTOLOGY_SCOPE, DEFAULT_ORGANIZATION_MODEL_ACTIONS, DEFAULT_ORGANIZATION_MODEL_SYSTEMS, DescriptionSchema, EntitiesDomainSchema, EntitySchema, GC_TIME_LONG, GC_TIME_MEDIUM, GC_TIME_SHORT, IconNameSchema, JsonValueSchema, LIMIT_ACTIVITY_FEED, LabelSchema, ModelIdSchema, NodeIdStringSchema, OAUTH_FLOW_TIMEOUT, OntologyIdSchema, OntologyScopeSchema, PAGE_SIZE_DEFAULT, PathSchema, STALE_TIME_ADMIN, STALE_TIME_DEFAULT, STALE_TIME_MONITORING, SYSTEM_INTERFACE_PROFILES, SystemEntrySchema, SystemIdSchema, SystemInterfaceRefSchema, SystemLifecycleSchema, SystemPathSchema, SystemsDomainSchema, addReadinessIssue, ancestorsOf, childrenOf, compileOrganizationOntology, computeInterfaceReadiness, defaultPathFor, devOnlyFor, findById, findByPath, formatChartAxisDate, formatDate, formatDateTime, formatErrorMessage, formatInterfaceIdentity, formatOntologyId, formatRelativeTime, formatTimeAgo, getErrorInfo, getErrorTitle, getResourceColor, getResourceIcon, getResourcesForSystem, getSystem, getSystemAncestors, isAPIClientError, listAllSystems, listResolvedOntologyRecords, ontologyGraphNodeId, parentOf, parseOntologyId, registerBuiltInReadinessProfile, registerReadinessInterfaceMarker, requireCatalogReadiness, requireContractReadiness, requireScopedBinding, requiresAdminFor, resolveSystemConfig, resourceBindingIds, restoreConsole, setupBrowserMocks, suppressKnownWarnings, topLevel, validateEmail };
1435
+ export { APIClientError, API_URL, ActionInvocationSchema, ActionSchema, ActionsDomainSchema, DEBOUNCE_FILTER, DEBOUNCE_SLIDER, DEFAULT_ONTOLOGY_SCOPE, DEFAULT_ORGANIZATION_MODEL_ACTIONS, DEFAULT_ORGANIZATION_MODEL_SYSTEMS, DescriptionSchema, EntitiesDomainSchema, EntitySchema, GC_TIME_LONG, GC_TIME_MEDIUM, GC_TIME_SHORT, IconNameSchema, JsonValueSchema, LIMIT_ACTIVITY_FEED, LabelSchema, ModelIdSchema, NodeIdStringSchema, OAUTH_FLOW_TIMEOUT, OntologyIdSchema, OntologyScopeSchema, PAGE_SIZE_DEFAULT, PathSchema, STALE_TIME_ADMIN, STALE_TIME_DEFAULT, STALE_TIME_MONITORING, SYSTEM_INTERFACE_PROFILES, SystemEntrySchema, SystemIdSchema, SystemInterfaceRefSchema, SystemLifecycleSchema, SystemPathSchema, SystemsDomainSchema, addReadinessIssue, ancestorsOf, childrenOf, compileOrganizationOntology, computeInterfaceReadiness, defaultPathFor, devOnlyFor, findById, findByPath, formatChartAxisDate, formatDate, formatDateTime, formatErrorMessage, formatInterfaceIdentity, formatOntologyId, formatRelativeTime, formatTimeAgo, getErrorInfo, getErrorTitle, getResourceColor, getResourceIcon, getResourcesForSystem, getSystem, getSystemAncestors, isAPIClientError, listAllSystems, listResolvedOntologyRecords, ontologyGraphNodeId, parentOf, parseOntologyId, registerBuiltInReadinessProfile, registerReadinessInterfaceMarker, requireCatalogReadiness, requireContractReadiness, requireScopedBinding, resolveSystemConfig, resourceBindingIds, restoreConsole, setupBrowserMocks, suppressKnownWarnings, topLevel, validateEmail };
@@ -1,4 +1,4 @@
1
- import { useAppearance } from './chunk-ZGCWTWBD.js';
1
+ import { useAppearance } from './chunk-6TT3FQEZ.js';
2
2
  import { Center } from '@mantine/core';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
 
@@ -1,4 +1,4 @@
1
- import { useAppearance } from './chunk-ZGCWTWBD.js';
1
+ import { useAppearance } from './chunk-6TT3FQEZ.js';
2
2
  import { topbarHeight } from './chunk-MISHPEJX.js';
3
3
  import { Stack, Title, Button } from '@mantine/core';
4
4
  import { IconAlertCircle } from '@tabler/icons-react';
@@ -2,11 +2,11 @@ import { milestoneStatusColors, formatStatusLabel, taskTypeColors, taskStatusCol
2
2
  import { PageContainer } from './chunk-BZZCNLT6.js';
3
3
  import { TableSelectionToolbar, SortableHeader } from './chunk-TUMSNGTX.js';
4
4
  import { FilterBar } from './chunk-PDHTXPSF.js';
5
- import { StatusBadge, EmptyState, SubshellContentContainer, PageTitleCaption, useProjectRealtime, useTableSort, sortData, usePaginationState, useTableSelection, CenteredErrorState, CustomModal, StatCard, useProjectActivities } from './chunk-ZGCWTWBD.js';
6
- import { useCreateTask, useCreateMilestone, useProjectMilestones, useUpdateTask, useProjects, useDeleteProject, useProject, useProjectNotes, useUpdateMilestone, useCreateNote } from './chunk-NDHMZT2G.js';
7
- import { CardHeader } from './chunk-62GVNH5U.js';
5
+ import { StatusBadge, EmptyState, SubshellContentContainer, PageTitleCaption, useProjectRealtime, useTableSort, sortData, usePaginationState, useTableSelection, CenteredErrorState, CustomModal, StatCard, useProjectActivities } from './chunk-6TT3FQEZ.js';
6
+ import { useCreateTask, useCreateMilestone, useProjectMilestones, useUpdateTask, useProjects, useDeleteProject, useProject, useProjectNotes, useUpdateMilestone, useCreateNote } from './chunk-C75XWBYZ.js';
8
7
  import { SubshellSidebarSection, SubshellNavItem } from './chunk-MISHPEJX.js';
9
- import { PAGE_SIZE_DEFAULT, formatTimeAgo, formatDate, formatRelativeTime } from './chunk-L3HFJFYF.js';
8
+ import { CardHeader } from './chunk-62GVNH5U.js';
9
+ import { PAGE_SIZE_DEFAULT, formatTimeAgo, formatDate, formatRelativeTime } from './chunk-NM4A63KJ.js';
10
10
  import { useRouterContext } from './chunk-Q7DJKLEN.js';
11
11
  import { useState, useMemo } from 'react';
12
12
  import { Stack, Text, Group, Checkbox, ActionIcon, TextInput, Button, Modal, Title, Textarea, Select, SimpleGrid, Card, ThemeIcon, RingProgress, Paper, Timeline, Badge, Collapse, Center, Loader, Table, Pagination, Alert, CopyButton, Tooltip, Space, Tabs, Divider, Anchor, Chip, List } from '@mantine/core';
@@ -1,5 +1,5 @@
1
1
  import { OrganizationContext } from './chunk-DD3CCMCZ.js';
2
- import { APIClientError } from './chunk-L3HFJFYF.js';
2
+ import { APIClientError } from './chunk-NM4A63KJ.js';
3
3
  import { createContext, useContext, useMemo, useCallback } from 'react';
4
4
  import { jsx } from 'react/jsx-runtime';
5
5
 
@@ -1,13 +1,13 @@
1
1
  import { ZodFormRenderer } from './chunk-3MEXPLWT.js';
2
2
  import { ResourceHealthChart } from './chunk-LGKLC5MG.js';
3
3
  import { Graph_module_css_default, useDirectedChainHighlighting, useNodeSelection, useFitViewTrigger } from './chunk-HENXLGVD.js';
4
- import { AppShellCenteredContainer, AppShellLoader } from './chunk-GBXTRSAU.js';
5
- import { useCyberColors, GlowDot, JsonViewer, useExecuteResource, EmptyState, useDashboardMetrics, useResources, useTimeRangeDates, useUnresolvedErrors, useRecentExecutionsByResource, PageTitleCaption, HeroStatsRow, useCommandQueue, useScheduledTasks, TabCountBadge, useResourcesHealth } from './chunk-ZGCWTWBD.js';
4
+ import { AppShellCenteredContainer, AppShellLoader } from './chunk-SMH6SQQE.js';
5
+ import { useCyberColors, GlowDot, JsonViewer, useExecuteResource, EmptyState, useDashboardMetrics, useResources, useTimeRangeDates, useUnresolvedErrors, useRecentExecutionsByResource, PageTitleCaption, HeroStatsRow, useCommandQueue, useScheduledTasks, TabCountBadge, useResourcesHealth } from './chunk-6TT3FQEZ.js';
6
6
  import { glassBase } from './chunk-R6NMRXNO.js';
7
7
  import { CardHeader } from './chunk-62GVNH5U.js';
8
8
  import { useInitialization } from './chunk-P45GQ3ZW.js';
9
9
  import { STATUS_COLORS, getStatusIcon, formatDuration, getStatusColors, AGENT_CONSTANTS, shouldAnimateEdge, TIMELINE_CONSTANTS, calculateBarPosition, CONTAINER_CONSTANTS, useExecutionPath, useUnifiedWorkflowLayout, WORKFLOW_CONSTANTS, useReactFlowAgent } from './chunk-BLXJEIQS.js';
10
- import { formatTimeAgo, formatRelativeTime } from './chunk-L3HFJFYF.js';
10
+ import { formatTimeAgo, formatRelativeTime } from './chunk-NM4A63KJ.js';
11
11
  import { getTimeRangeDates } from './chunk-Y6I3IC45.js';
12
12
  import { ResourceStatusColors } from './chunk-6SSQGWK7.js';
13
13
  import { memo, useMemo, useEffect, useState, useCallback, Fragment } from 'react';
@@ -1428,7 +1428,10 @@ function RunResourceButton({
1428
1428
  resourceId,
1429
1429
  resourceType,
1430
1430
  getInput,
1431
+ baseInput,
1431
1432
  label,
1433
+ title,
1434
+ disabled,
1432
1435
  icon,
1433
1436
  color,
1434
1437
  onSuccess,
@@ -1441,7 +1444,7 @@ function RunResourceButton({
1441
1444
  const handleExecute = useCallback(
1442
1445
  async (input) => {
1443
1446
  try {
1444
- const result = await execute(input);
1447
+ const result = await execute({ ...baseInput, ...input });
1445
1448
  setModalState(null);
1446
1449
  notifications.show({
1447
1450
  title: "Execution started",
@@ -1459,7 +1462,7 @@ function RunResourceButton({
1459
1462
  onError?.(error);
1460
1463
  }
1461
1464
  },
1462
- [execute, onSuccess, onError]
1465
+ [execute, baseInput, onSuccess, onError]
1463
1466
  );
1464
1467
  const handleClick = useCallback(() => {
1465
1468
  const result = getInput();
@@ -1472,8 +1475,8 @@ function RunResourceButton({
1472
1475
  }
1473
1476
  }, [getInput, handleExecute]);
1474
1477
  return /* @__PURE__ */ jsxs(Fragment$1, { children: [
1475
- /* @__PURE__ */ jsx(Button, { leftSection: icon, color: resolvedColor, loading: isPending, onClick: handleClick, children: resolvedLabel }),
1476
- /* @__PURE__ */ jsx(Modal, { opened: modalState !== null, onClose: () => setModalState(null), children: modalState !== null && /* @__PURE__ */ jsx(
1478
+ /* @__PURE__ */ jsx(Button, { leftSection: icon, color: resolvedColor, loading: isPending, disabled, onClick: handleClick, children: resolvedLabel }),
1479
+ /* @__PURE__ */ jsx(Modal, { opened: modalState !== null, onClose: () => setModalState(null), title: title ?? resolvedLabel, children: modalState !== null && /* @__PURE__ */ jsx(
1477
1480
  ZodFormRenderer,
1478
1481
  {
1479
1482
  schema: modalState.schema,