@burdenoff/fluidgrids-fe-sdk 2026.1111.14 → 2026.1111.15

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 (43) hide show
  1. package/README.md +41 -0
  2. package/dist/{ExecutionDetailPage-itor_whl.js → ExecutionDetailPage-DO38vZ_F.js} +4 -4
  3. package/dist/{FluidGridsProvider-B30VcLdX.js → FluidGridsProvider-B9RR_CI_.js} +2 -309
  4. package/dist/{HistoryPage-DueEld8g.js → HistoryPage-CA42pU85.js} +1 -1
  5. package/dist/{InsightsPage-DQ7KCR9h.js → InsightsPage-CBoN_Mj9.js} +2 -2
  6. package/dist/{ManagedAiPolicyAuthority-C0YPTJMS.js → ManagedAiPolicyAuthority-CKihmbJE.js} +2 -2
  7. package/dist/{MissingNodesInstallModal-Cj31oMDX.js → MissingNodesInstallModal-Dm0nMBXM.js} +1 -1
  8. package/dist/{TemplateConfigurationModal-BAPCG8y-.js → TemplateConfigurationModal-Bs_V-E4u.js} +1 -1
  9. package/dist/{TemplateDetailPanel-CZ1uxEQL.js → TemplateDetailPanel-MlT39VLG.js} +1 -1
  10. package/dist/{TemplatesPage-DWdgZnIH.js → TemplatesPage-CHVpWBuw.js} +5 -4
  11. package/dist/{WorkflowSearchRedirect-C8vhSZK9.js → WorkflowSearchRedirect-3gyHcYY2.js} +13 -9
  12. package/dist/{WorkflowShareDialog-DnBQA3V6.js → WorkflowShareDialog-0Ai1HED-.js} +2 -1
  13. package/dist/{WorkflowsList-74jjJFsJ.js → WorkflowsList-CJ3KmMHX.js} +5 -4
  14. package/dist/agent-tools.d.ts +3 -0
  15. package/dist/agent-tools.js +5 -0
  16. package/dist/{agentTools-D5AW7zHn.js → agentTools-B1IK1JEO.js} +2 -2
  17. package/dist/{canvasNoteTools-BqQTTCll.js → canvasNoteTools-eewVHVuy.js} +3 -2
  18. package/dist/executions.js +1 -1
  19. package/dist/{flow-builder-BR8p5tXG.js → flow-builder-C_3sY3pZ.js} +12 -157
  20. package/dist/fluidgridsEvents-CNdcrUNN.js +310 -0
  21. package/dist/history.js +1 -1
  22. package/dist/index-CHeY7_A1.d.ts +105 -0
  23. package/dist/{index-CLqh2u28.d.ts → index-DRf25-D3.d.ts} +7 -105
  24. package/dist/index.d.ts +3 -2
  25. package/dist/index.js +21 -946
  26. package/dist/marksStore-DGCXjTmZ.js +151 -0
  27. package/dist/{node-detail-view-Dnhqdn8C.js → node-detail-view-CAws5qjg.js} +3 -3
  28. package/dist/observability.d.ts +1 -1
  29. package/dist/observability.js +1 -1
  30. package/dist/{quick-config-panel-C4tSpCrt.js → quick-config-panel-DOzNkSVV.js} +2 -2
  31. package/dist/settings.js +1 -1
  32. package/dist/templates.js +1 -1
  33. package/dist/uiMarkTools-nlmzsHQM.js +937 -0
  34. package/dist/{useExecutions-CNEN1ENQ.js → useExecutions-DkS0FTfw.js} +2 -1
  35. package/dist/{useObservability-CmFFXmKb.js → useObservability-BkxhHZsX.js} +2 -1
  36. package/dist/{useRunHistory-DhU_mrzF.js → useRunHistory-DHehG09Z.js} +1 -1
  37. package/dist/{useWorkflows-D01LC39Y.js → useWorkflows-DyhtoVwp.js} +25 -5
  38. package/dist/workflow-builder.js +2 -2
  39. package/dist/workflow-route.d.ts +33 -0
  40. package/dist/workflow-route.js +4 -0
  41. package/dist/workflowRouteData-BkfVOc-O.js +169 -0
  42. package/dist/workflows-list.js +1 -1
  43. package/package.json +9 -1
@@ -0,0 +1,105 @@
1
+
2
+ import { FC } from "react";
3
+ import { AnyDefinedAgentTool } from "@burdenoff/fe-libs/shared/agent-tools";
4
+ declare const AGENT_OPERATIONS: {
5
+ readonly AgentFindWorkflows: "\n query AgentFindWorkflows($input: ListWorkflowDefinitionsInput!) {\n workflowDefinitions(input: $input) {\n total\n hasMore\n items { id name workflowKey version status updatedAt workspaceId deletedAt description }\n }\n }\n";
6
+ readonly AgentGetWorkflow: "\n query AgentGetWorkflow($workflowKey: String!, $version: String) {\n workflowDefinition(workflowKey: $workflowKey, version: $version) {\n id name workflowKey version status updatedAt description definitionJson totalVersions workspaceId deletedAt\n }\n }\n";
7
+ readonly AgentListRuns: "\n query AgentListRuns($input: ListWorkflowRunsInput!) {\n workflowRuns(input: $input) {\n total\n hasMore\n items { id workflowKey version status mode startedAt completedAt duration errorMessage workflow { name } }\n }\n }\n";
8
+ readonly AgentGetRun: "\n query AgentGetRun($id: ID!) {\n workflowRun(id: $id) {\n id workflowKey version status mode startedAt completedAt duration errorMessage errorType\n totalNodes completedNodes failedNodes\n workflow { name }\n nodeStates { nodeId nodeType status error }\n }\n }\n";
9
+ readonly AgentActivateWorkflow: "\n mutation AgentActivateWorkflow($id: ID!) {\n activateWorkflowDefinition(id: $id) { workflowKey version status }\n }\n";
10
+ readonly AgentDeactivateWorkflow: "\n mutation AgentDeactivateWorkflow($id: ID!) {\n deactivateWorkflowDefinition(id: $id) { workflowKey version status }\n }\n";
11
+ readonly AgentTriggerWorkflow: "\n mutation AgentTriggerWorkflow($input: TriggerWorkflowInput!) {\n triggerWorkflow(input: $input) { runId status workflowKey version }\n }\n";
12
+ readonly AgentCancelRun: "\n mutation AgentCancelRun($id: ID!) {\n cancelWorkflowRun(id: $id) { id status }\n }\n";
13
+ };
14
+ type AgentOperationName = keyof typeof AGENT_OPERATIONS;
15
+ interface FluidGridsAgentToolDeps {
16
+ request: <T>(operation: {
17
+ operationName: AgentOperationName;
18
+ query: string;
19
+ variables: Record<string, unknown>;
20
+ signal: AbortSignal;
21
+ }) => Promise<T>;
22
+ getWorkspaceId: () => string | null;
23
+ navigate: (path: string) => void;
24
+ listFilters?: () => Record<string, unknown> | undefined;
25
+ }
26
+ interface TriggerNode {
27
+ id: string;
28
+ label: string;
29
+ type: string;
30
+ }
31
+ declare function triggerNodesOf(definition: unknown): TriggerNode[];
32
+ declare function pickTriggerNode(triggers: readonly TriggerNode[], requested: string | undefined): TriggerNode;
33
+ declare function createFluidGridsAgentTools(deps: FluidGridsAgentToolDeps): AnyDefinedAgentTool[];
34
+ interface AgentCalloutOverlayProps {
35
+ rightInset?: number;
36
+ }
37
+ declare const AgentCalloutOverlay: FC<AgentCalloutOverlayProps>;
38
+ interface UiMarkToolOptions {
39
+ root?: () => ParentNode | null;
40
+ waitMs?: number;
41
+ }
42
+ declare function createUiMarkTools(options?: UiMarkToolOptions): AnyDefinedAgentTool[];
43
+ type CanvasNoteKind = "fix" | "info";
44
+ interface CalloutTarget {
45
+ role: string;
46
+ name: string;
47
+ nth: number;
48
+ }
49
+ interface AgentCallout {
50
+ id: string;
51
+ label: string;
52
+ target: CalloutTarget;
53
+ route: string;
54
+ element: WeakRef<Element> | null;
55
+ }
56
+ interface CanvasNote {
57
+ id: string;
58
+ number: number;
59
+ workflowKey: string;
60
+ nodeId: string;
61
+ nodeLabel: string;
62
+ paramKey: string | null;
63
+ kind: CanvasNoteKind;
64
+ message: string;
65
+ resolved: boolean;
66
+ }
67
+ interface NewCanvasNote {
68
+ workflowKey: string;
69
+ nodeId: string;
70
+ nodeLabel: string;
71
+ paramKey?: string | null;
72
+ kind: CanvasNoteKind;
73
+ message: string;
74
+ }
75
+ interface AgentMarksState {
76
+ callouts: AgentCallout[];
77
+ notes: CanvasNote[];
78
+ nextNumber: Record<string, number>;
79
+ openNoteId: string | null;
80
+ flash: {
81
+ nodeId: string;
82
+ token: number;
83
+ } | null;
84
+ actions: {
85
+ addCallout: (callout: {
86
+ label: string;
87
+ target: CalloutTarget;
88
+ element: Element | null;
89
+ route: string;
90
+ }) => AgentCallout;
91
+ rebindCallout: (id: string, element: Element) => void;
92
+ removeCallout: (id: string) => void;
93
+ clearCallouts: () => number;
94
+ dropCalloutsOffRoute: (route: string) => number;
95
+ addNote: (note: NewCanvasNote) => CanvasNote | null;
96
+ setResolved: (id: string, resolved: boolean) => void;
97
+ removeNote: (id: string) => void;
98
+ clearNotes: (workflowKey?: string) => number;
99
+ openNote: (id: string | null) => void;
100
+ flashNode: (nodeId: string) => void;
101
+ };
102
+ }
103
+ declare const useAgentMarksStore: import("zustand").UseBoundStore<import("zustand").StoreApi<AgentMarksState>>;
104
+ declare function resetAgentMarks(): void;
105
+ export { createUiMarkTools as a, FluidGridsAgentToolDeps as c, triggerNodesOf as d, UiMarkToolOptions as i, createFluidGridsAgentTools as l, resetAgentMarks as n, AgentCalloutOverlay as o, useAgentMarksStore as r, AgentCalloutOverlayProps as s, CanvasNote as t, pickTriggerNode as u };