@memberjunction/ng-task-graph-editor 6.2.2 → 6.3.0-edge.1
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.
- package/dist/lib/remembered-breakpoints.d.ts +29 -0
- package/dist/lib/remembered-breakpoints.d.ts.map +1 -0
- package/dist/lib/remembered-breakpoints.js +57 -0
- package/dist/lib/remembered-breakpoints.js.map +1 -0
- package/dist/lib/task-graph-debugger.component.d.ts +16 -1
- package/dist/lib/task-graph-debugger.component.d.ts.map +1 -1
- package/dist/lib/task-graph-debugger.component.js +21 -4
- package/dist/lib/task-graph-debugger.component.js.map +1 -1
- package/dist/lib/task-graph-run-view.component.d.ts +16 -1
- package/dist/lib/task-graph-run-view.component.d.ts.map +1 -1
- package/dist/lib/task-graph-run-view.component.js +42 -2
- package/dist/lib/task-graph-run-view.component.js.map +1 -1
- package/dist/public-api.d.ts +1 -0
- package/dist/public-api.d.ts.map +1 -1
- package/dist/public-api.js +1 -0
- package/dist/public-api.js.map +1 -1
- package/package.json +9 -9
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Breakpoints a person keeps across runs of one workflow (#3798).
|
|
3
|
+
*
|
|
4
|
+
* A run's breakpoints are task IDs, which are new on every run. What survives a re-run is the step's
|
|
5
|
+
* spec `tempId`, stamped on each task as `Configuration.stepId` at submit. The remembered set is a list
|
|
6
|
+
* of those step IDs, per user and per workflow, in one `MJ: User Settings` key; the host passes it as
|
|
7
|
+
* `taskGraphDebug.breakpointStepIDs` when it starts a debug run, and Submit maps it to the new task IDs.
|
|
8
|
+
*/
|
|
9
|
+
/** The user-setting key for one workflow (the workflow agent's ID). */
|
|
10
|
+
export declare function RememberedBreakpointsKey(workflowAgentID: string): string;
|
|
11
|
+
/** The remembered step IDs from a stored setting; empty for missing or unreadable values. */
|
|
12
|
+
export declare function ParseRememberedBreakpoints(raw: string | null | undefined): string[];
|
|
13
|
+
/** Adds or removes one step ID, keeping order and never duplicating. */
|
|
14
|
+
export declare function ToggleRememberedStep(current: readonly string[], stepID: string, remember: boolean): string[];
|
|
15
|
+
/** The stable step ID a task row carries in its `Configuration` JSON, or null. */
|
|
16
|
+
export declare function StepIDOfTask(configuration: string | null | undefined): string | null;
|
|
17
|
+
/** The settings surface the store needs — `UserInfoEngine` in a host, a fake in tests. */
|
|
18
|
+
export type RememberedBreakpointsSettingsPort = {
|
|
19
|
+
Get(key: string): string | undefined;
|
|
20
|
+
Set(key: string, value: string): void;
|
|
21
|
+
};
|
|
22
|
+
/** Reads and writes one workflow's remembered breakpoints through a settings port. */
|
|
23
|
+
export declare class RememberedBreakpointsStore {
|
|
24
|
+
private readonly settings;
|
|
25
|
+
constructor(settings: RememberedBreakpointsSettingsPort);
|
|
26
|
+
Load(workflowAgentID: string): string[];
|
|
27
|
+
Toggle(workflowAgentID: string, stepID: string, remember: boolean): string[];
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=remembered-breakpoints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remembered-breakpoints.d.ts","sourceRoot":"","sources":["../../src/lib/remembered-breakpoints.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,uEAAuE;AACvE,wBAAgB,wBAAwB,CAAC,eAAe,EAAE,MAAM,GAAG,MAAM,CAExE;AAED,6FAA6F;AAC7F,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,EAAE,CAQnF;AAED,wEAAwE;AACxE,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,GAAG,MAAM,EAAE,CAG5G;AAED,kFAAkF;AAClF,wBAAgB,YAAY,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,IAAI,CAQpF;AAED,0FAA0F;AAC1F,MAAM,MAAM,iCAAiC,GAAG;IAC5C,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACrC,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACzC,CAAC;AAEF,sFAAsF;AACtF,qBAAa,0BAA0B;IACvB,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBAAR,QAAQ,EAAE,iCAAiC;IAEjE,IAAI,CAAC,eAAe,EAAE,MAAM,GAAG,MAAM,EAAE;IAIvC,MAAM,CAAC,eAAe,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,GAAG,MAAM,EAAE;CAKtF"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Breakpoints a person keeps across runs of one workflow (#3798).
|
|
3
|
+
*
|
|
4
|
+
* A run's breakpoints are task IDs, which are new on every run. What survives a re-run is the step's
|
|
5
|
+
* spec `tempId`, stamped on each task as `Configuration.stepId` at submit. The remembered set is a list
|
|
6
|
+
* of those step IDs, per user and per workflow, in one `MJ: User Settings` key; the host passes it as
|
|
7
|
+
* `taskGraphDebug.breakpointStepIDs` when it starts a debug run, and Submit maps it to the new task IDs.
|
|
8
|
+
*/
|
|
9
|
+
/** The user-setting key for one workflow (the workflow agent's ID). */
|
|
10
|
+
export function RememberedBreakpointsKey(workflowAgentID) {
|
|
11
|
+
return `TaskGraph.Breakpoints/${workflowAgentID.toLowerCase()}`;
|
|
12
|
+
}
|
|
13
|
+
/** The remembered step IDs from a stored setting; empty for missing or unreadable values. */
|
|
14
|
+
export function ParseRememberedBreakpoints(raw) {
|
|
15
|
+
if (!raw)
|
|
16
|
+
return [];
|
|
17
|
+
try {
|
|
18
|
+
const parsed = JSON.parse(raw);
|
|
19
|
+
return Array.isArray(parsed) ? parsed.filter((id) => typeof id === 'string' && id.length > 0) : [];
|
|
20
|
+
}
|
|
21
|
+
catch {
|
|
22
|
+
return [];
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
/** Adds or removes one step ID, keeping order and never duplicating. */
|
|
26
|
+
export function ToggleRememberedStep(current, stepID, remember) {
|
|
27
|
+
const without = current.filter((id) => id !== stepID);
|
|
28
|
+
return remember ? [...without, stepID] : without;
|
|
29
|
+
}
|
|
30
|
+
/** The stable step ID a task row carries in its `Configuration` JSON, or null. */
|
|
31
|
+
export function StepIDOfTask(configuration) {
|
|
32
|
+
if (!configuration)
|
|
33
|
+
return null;
|
|
34
|
+
try {
|
|
35
|
+
const parsed = JSON.parse(configuration);
|
|
36
|
+
return typeof parsed?.stepId === 'string' && parsed.stepId.length > 0 ? parsed.stepId : null;
|
|
37
|
+
}
|
|
38
|
+
catch {
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
/** Reads and writes one workflow's remembered breakpoints through a settings port. */
|
|
43
|
+
export class RememberedBreakpointsStore {
|
|
44
|
+
settings;
|
|
45
|
+
constructor(settings) {
|
|
46
|
+
this.settings = settings;
|
|
47
|
+
}
|
|
48
|
+
Load(workflowAgentID) {
|
|
49
|
+
return ParseRememberedBreakpoints(this.settings.Get(RememberedBreakpointsKey(workflowAgentID)));
|
|
50
|
+
}
|
|
51
|
+
Toggle(workflowAgentID, stepID, remember) {
|
|
52
|
+
const next = ToggleRememberedStep(this.Load(workflowAgentID), stepID, remember);
|
|
53
|
+
this.settings.Set(RememberedBreakpointsKey(workflowAgentID), JSON.stringify(next));
|
|
54
|
+
return next;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=remembered-breakpoints.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remembered-breakpoints.js","sourceRoot":"","sources":["../../src/lib/remembered-breakpoints.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,uEAAuE;AACvE,MAAM,UAAU,wBAAwB,CAAC,eAAuB;IAC5D,OAAO,yBAAyB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AChB,CAAC;AACL,CAAC;AAQD,sFAAsF;AACtF,MAAM,OAAO,0BAA0B;IACN;IAA7B,YAA6B,QAA2C;QAA3C,aAAQ,GAAR,QAAQ,CAAmC;IAAG,CAAC;IAErE,IAAI,CAAC,eAAuB;QAC/B,OAAO,0BAA0B,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,wBAAwB,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;IACpG,CAAC;IAEM,MAAM,CAAC,eAAuB,EAAE,MAAc,EAAE,QAAiB;QACpE,MAAM,IAAI,GAAG,oBAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;QAChF,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,wBAAwB,CAAC,eAAe,CAAC,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;QACnF,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ","sourcesContent":["/**\n * Breakpoints a person keeps across runs of one workflow (#3798).\n *\n * A run's breakpoints are task IDs, which are new on every run. What survives a re-run is the step's\n * spec `tempId`, stamped on each task as `Configuration.stepId` at submit. The remembered set is a list\n * of those step IDs, per user and per workflow, in one `MJ: User Settings` key; the host passes it as\n * `taskGraphDebug.breakpointStepIDs` when it starts a debug run, and Submit maps it to the new task IDs.\n */\n\n/** The user-setting key for one workflow (the workflow agent's ID). */\nexport function RememberedBreakpointsKey(workflowAgentID: string): string {\n return `TaskGraph.Breakpoints/${workflowAgentID.toLowerCase()}`;\n}\n\n/** The remembered step IDs from a stored setting; empty for missing or unreadable values. */\nexport function ParseRememberedBreakpoints(raw: string | null | undefined): string[] {\n if (!raw) return [];\n try {\n const parsed: unknown = JSON.parse(raw);\n return Array.isArray(parsed) ? parsed.filter((id): id is string => typeof id === 'string' && id.length > 0) : [];\n } catch {\n return [];\n }\n}\n\n/** Adds or removes one step ID, keeping order and never duplicating. */\nexport function ToggleRememberedStep(current: readonly string[], stepID: string, remember: boolean): string[] {\n const without = current.filter((id) => id !== stepID);\n return remember ? [...without, stepID] : without;\n}\n\n/** The stable step ID a task row carries in its `Configuration` JSON, or null. */\nexport function StepIDOfTask(configuration: string | null | undefined): string | null {\n if (!configuration) return null;\n try {\n const parsed = JSON.parse(configuration) as { stepId?: unknown };\n return typeof parsed?.stepId === 'string' && parsed.stepId.length > 0 ? parsed.stepId : null;\n } catch {\n return null;\n }\n}\n\n/** The settings surface the store needs — `UserInfoEngine` in a host, a fake in tests. */\nexport type RememberedBreakpointsSettingsPort = {\n Get(key: string): string | undefined;\n Set(key: string, value: string): void;\n};\n\n/** Reads and writes one workflow's remembered breakpoints through a settings port. */\nexport class RememberedBreakpointsStore {\n constructor(private readonly settings: RememberedBreakpointsSettingsPort) {}\n\n public Load(workflowAgentID: string): string[] {\n return ParseRememberedBreakpoints(this.settings.Get(RememberedBreakpointsKey(workflowAgentID)));\n }\n\n public Toggle(workflowAgentID: string, stepID: string, remember: boolean): string[] {\n const next = ToggleRememberedStep(this.Load(workflowAgentID), stepID, remember);\n this.settings.Set(RememberedBreakpointsKey(workflowAgentID), JSON.stringify(next));\n return next;\n }\n}\n"]}
|
|
@@ -29,6 +29,15 @@ export declare class TaskGraphDebuggerComponent extends BaseAngularComponent imp
|
|
|
29
29
|
ToolbarVisibility: FlowToolbarVisibility;
|
|
30
30
|
ToolbarAlign: FlowToolbarAlign;
|
|
31
31
|
AllowBreakpointEditing: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Breakpoints the person keeps for future runs of this workflow, as stable step IDs (#3798). The host loads
|
|
34
|
+
* them from the user's settings, stores changes from {@link RememberBreakpointToggled}, and passes them as
|
|
35
|
+
* `taskGraphDebug.breakpointStepIDs` when it starts the next debug run. Generic components hold no settings
|
|
36
|
+
* of their own.
|
|
37
|
+
*/
|
|
38
|
+
RememberedStepIDs: readonly string[];
|
|
39
|
+
/** Offer "Remember Breakpoint for Future Runs" on a step. Off unless the host stores the set. */
|
|
40
|
+
AllowRememberBreakpoints: boolean;
|
|
32
41
|
ShowVariables: boolean;
|
|
33
42
|
/** VCR + error line above the canvas. Off if the host already has its own bar. */
|
|
34
43
|
ShowChrome: boolean;
|
|
@@ -52,6 +61,12 @@ export declare class TaskGraphDebuggerComponent extends BaseAngularComponent imp
|
|
|
52
61
|
Frame: EventEmitter<TaskGraphRunFrame>;
|
|
53
62
|
ControlFailed: EventEmitter<string>;
|
|
54
63
|
Settled: EventEmitter<void>;
|
|
64
|
+
/** A step's remembered breakpoint was turned on or off. Intent only — the host stores it. */
|
|
65
|
+
RememberBreakpointToggled: EventEmitter<{
|
|
66
|
+
TaskID: string;
|
|
67
|
+
StepID: string;
|
|
68
|
+
Remember: boolean;
|
|
69
|
+
}>;
|
|
55
70
|
RunView: TaskGraphRunViewComponent | undefined;
|
|
56
71
|
private parentTaskID;
|
|
57
72
|
private frameSub;
|
|
@@ -91,6 +106,6 @@ export declare class TaskGraphDebuggerComponent extends BaseAngularComponent imp
|
|
|
91
106
|
private failControl;
|
|
92
107
|
private clearSession;
|
|
93
108
|
static ɵfac: i0.ɵɵFactoryDeclaration<TaskGraphDebuggerComponent, never>;
|
|
94
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TaskGraphDebuggerComponent, "mj-task-graph-debugger", never, { "ParentTaskID": { "alias": "ParentTaskID"; "required": false; }; "WorkflowName": { "alias": "WorkflowName"; "required": false; }; "LiveUpdates": { "alias": "LiveUpdates"; "required": false; }; "PollIntervalSeconds": { "alias": "PollIntervalSeconds"; "required": false; }; "Height": { "alias": "Height"; "required": false; }; "ShowLegend": { "alias": "ShowLegend"; "required": false; }; "ShowCanvasToolbar": { "alias": "ShowCanvasToolbar"; "required": false; }; "ToolbarVisibility": { "alias": "ToolbarVisibility"; "required": false; }; "ToolbarAlign": { "alias": "ToolbarAlign"; "required": false; }; "AllowBreakpointEditing": { "alias": "AllowBreakpointEditing"; "required": false; }; "ShowVariables": { "alias": "ShowVariables"; "required": false; }; "ShowChrome": { "alias": "ShowChrome"; "required": false; }; "Enabled": { "alias": "Enabled"; "required": false; }; "ReplayAt": { "alias": "ReplayAt"; "required": false; }; }, { "NodeSelected": "NodeSelected"; "ConnectionSelected": "ConnectionSelected"; "LegendToggled": "LegendToggled"; "SettledChange": "SettledChange"; "PausedChange": "PausedChange"; "Frame": "Frame"; "ControlFailed": "ControlFailed"; "Settled": "Settled"; }, never, never, false, never>;
|
|
109
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TaskGraphDebuggerComponent, "mj-task-graph-debugger", never, { "ParentTaskID": { "alias": "ParentTaskID"; "required": false; }; "WorkflowName": { "alias": "WorkflowName"; "required": false; }; "LiveUpdates": { "alias": "LiveUpdates"; "required": false; }; "PollIntervalSeconds": { "alias": "PollIntervalSeconds"; "required": false; }; "Height": { "alias": "Height"; "required": false; }; "ShowLegend": { "alias": "ShowLegend"; "required": false; }; "ShowCanvasToolbar": { "alias": "ShowCanvasToolbar"; "required": false; }; "ToolbarVisibility": { "alias": "ToolbarVisibility"; "required": false; }; "ToolbarAlign": { "alias": "ToolbarAlign"; "required": false; }; "AllowBreakpointEditing": { "alias": "AllowBreakpointEditing"; "required": false; }; "RememberedStepIDs": { "alias": "RememberedStepIDs"; "required": false; }; "AllowRememberBreakpoints": { "alias": "AllowRememberBreakpoints"; "required": false; }; "ShowVariables": { "alias": "ShowVariables"; "required": false; }; "ShowChrome": { "alias": "ShowChrome"; "required": false; }; "Enabled": { "alias": "Enabled"; "required": false; }; "ReplayAt": { "alias": "ReplayAt"; "required": false; }; }, { "NodeSelected": "NodeSelected"; "ConnectionSelected": "ConnectionSelected"; "LegendToggled": "LegendToggled"; "SettledChange": "SettledChange"; "PausedChange": "PausedChange"; "Frame": "Frame"; "ControlFailed": "ControlFailed"; "Settled": "Settled"; "RememberBreakpointToggled": "RememberBreakpointToggled"; }, never, never, false, never>;
|
|
95
110
|
}
|
|
96
111
|
//# sourceMappingURL=task-graph-debugger.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-graph-debugger.component.d.ts","sourceRoot":"","sources":["../../src/lib/task-graph-debugger.component.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAEH,iBAAiB,EAEjB,YAAY,EAEZ,SAAS,EAGZ,MAAM,eAAe,CAAC;AAIvB,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAErE,OAAO,KAAK,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC9F,OAAO,EAIH,KAAK,uBAAuB,EAC/B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACH,yBAAyB,EACzB,KAAK,mCAAmC,EACxC,KAAK,iBAAiB,EACtB,KAAK,6BAA6B,EACrC,MAAM,iCAAiC,CAAC;;AAuBzC,qBAOa,0BAA2B,SAAQ,oBAAqB,YAAW,SAAS;
|
|
1
|
+
{"version":3,"file":"task-graph-debugger.component.d.ts","sourceRoot":"","sources":["../../src/lib/task-graph-debugger.component.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAEH,iBAAiB,EAEjB,YAAY,EAEZ,SAAS,EAGZ,MAAM,eAAe,CAAC;AAIvB,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAErE,OAAO,KAAK,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC9F,OAAO,EAIH,KAAK,uBAAuB,EAC/B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACH,yBAAyB,EACzB,KAAK,mCAAmC,EACxC,KAAK,iBAAiB,EACtB,KAAK,6BAA6B,EACrC,MAAM,iCAAiC,CAAC;;AAuBzC,qBAOa,0BAA2B,SAAQ,oBAAqB,YAAW,SAAS;IAyEzE,OAAO,CAAC,GAAG;IAxEvB;;OAEG;IACH,IACW,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,EAY3C;IACD,IAAW,Y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uB,CAAC,KAAK,EAAE,mCAAmC,GAAG,IAAI;IAIzE,YAAY,IAAI,IAAI;IAIpB,sBAAsB,CAAC,KAAK,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAE,GAAG,IAAI;IAIzE,iBAAiB,CAAC,KAAK,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;KAAE,GAAG,IAAI;YAI7E,cAAc;IA8B5B,OAAO,CAAC,YAAY;IAWpB,OAAO,CAAC,OAAO;IAmBf,OAAO,CAAC,YAAY;IAMpB,OAAO,CAAC,WAAW;IAUnB,OAAO,CAAC,SAAS;IAKjB,OAAO,CAAC,WAAW;IAMnB,OAAO,CAAC,YAAY;yCAjRX,0BAA0B;2CAA1B,0BAA0B;CA4RtC"}
|
|
@@ -73,6 +73,15 @@ export class TaskGraphDebuggerComponent extends BaseAngularComponent {
|
|
|
73
73
|
ToolbarVisibility = 'minimized';
|
|
74
74
|
ToolbarAlign = 'left';
|
|
75
75
|
AllowBreakpointEditing = true;
|
|
76
|
+
/**
|
|
77
|
+
* Breakpoints the person keeps for future runs of this workflow, as stable step IDs (#3798). The host loads
|
|
78
|
+
* them from the user's settings, stores changes from {@link RememberBreakpointToggled}, and passes them as
|
|
79
|
+
* `taskGraphDebug.breakpointStepIDs` when it starts the next debug run. Generic components hold no settings
|
|
80
|
+
* of their own.
|
|
81
|
+
*/
|
|
82
|
+
RememberedStepIDs = [];
|
|
83
|
+
/** Offer "Remember Breakpoint for Future Runs" on a step. Off unless the host stores the set. */
|
|
84
|
+
AllowRememberBreakpoints = false;
|
|
76
85
|
ShowVariables = true;
|
|
77
86
|
/** VCR + error line above the canvas. Off if the host already has its own bar. */
|
|
78
87
|
ShowChrome = true;
|
|
@@ -96,6 +105,8 @@ export class TaskGraphDebuggerComponent extends BaseAngularComponent {
|
|
|
96
105
|
Frame = new EventEmitter();
|
|
97
106
|
ControlFailed = new EventEmitter();
|
|
98
107
|
Settled = new EventEmitter();
|
|
108
|
+
/** A step's remembered breakpoint was turned on or off. Intent only — the host stores it. */
|
|
109
|
+
RememberBreakpointToggled = new EventEmitter();
|
|
99
110
|
RunView;
|
|
100
111
|
parentTaskID = null;
|
|
101
112
|
frameSub = null;
|
|
@@ -303,22 +314,22 @@ export class TaskGraphDebuggerComponent extends BaseAngularComponent {
|
|
|
303
314
|
} if (rf & 2) {
|
|
304
315
|
let _t;
|
|
305
316
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.RunView = _t.first);
|
|
306
|
-
} }, inputs: { ParentTaskID: "ParentTaskID", WorkflowName: "WorkflowName", LiveUpdates: "LiveUpdates", PollIntervalSeconds: "PollIntervalSeconds", Height: "Height", ShowLegend: "ShowLegend", ShowCanvasToolbar: "ShowCanvasToolbar", ToolbarVisibility: "ToolbarVisibility", ToolbarAlign: "ToolbarAlign", AllowBreakpointEditing: "AllowBreakpointEditing", ShowVariables: "ShowVariables", ShowChrome: "ShowChrome", Enabled: "Enabled", ReplayAt: "ReplayAt" }, outputs: { NodeSelected: "NodeSelected", ConnectionSelected: "ConnectionSelected", LegendToggled: "LegendToggled", SettledChange: "SettledChange", PausedChange: "PausedChange", Frame: "Frame", ControlFailed: "ControlFailed", Settled: "Settled" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 4, vars:
|
|
317
|
+
} }, inputs: { ParentTaskID: "ParentTaskID", WorkflowName: "WorkflowName", LiveUpdates: "LiveUpdates", PollIntervalSeconds: "PollIntervalSeconds", Height: "Height", ShowLegend: "ShowLegend", ShowCanvasToolbar: "ShowCanvasToolbar", ToolbarVisibility: "ToolbarVisibility", ToolbarAlign: "ToolbarAlign", AllowBreakpointEditing: "AllowBreakpointEditing", RememberedStepIDs: "RememberedStepIDs", AllowRememberBreakpoints: "AllowRememberBreakpoints", ShowVariables: "ShowVariables", ShowChrome: "ShowChrome", Enabled: "Enabled", ReplayAt: "ReplayAt" }, outputs: { NodeSelected: "NodeSelected", ConnectionSelected: "ConnectionSelected", LegendToggled: "LegendToggled", SettledChange: "SettledChange", PausedChange: "PausedChange", Frame: "Frame", ControlFailed: "ControlFailed", Settled: "Settled", RememberBreakpointToggled: "RememberBreakpointToggled" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 4, vars: 22, consts: [[1, "tgdbg"], [1, "tgdbg-chrome"], [1, "tgdbg-body"], [3, "NodeSelected", "ConnectionSelected", "LegendToggled", "Settled", "BreakpointToggled", "RememberBreakpointToggled", "EdgeOverrideRequested", "Provider", "ParentTaskID", "WorkflowName", "LiveUpdates", "PollIntervalSeconds", "Height", "ShowLegend", "ShowToolbar", "ToolbarVisibility", "ToolbarAlign", "LiveFrame", "ReplayAt", "Breakpoints", "PausedAtTaskID", "GraphPaused", "EdgeOverrides", "AllowBreakpointEditing", "ShowVariables", "Invocation", "RememberedStepIDs", "AllowRememberBreakpoints"], [3, "Pause", "Resume", "Step", "StepWave", "Cancel", "Paused", "Busy", "Settled", "Enabled"], ["Variant", "error", 3, "Message"]], template: function TaskGraphDebuggerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
307
318
|
i0.ɵɵelementStart(0, "div", 0);
|
|
308
319
|
i0.ɵɵconditionalCreate(1, TaskGraphDebuggerComponent_Conditional_1_Template, 3, 5, "div", 1);
|
|
309
320
|
i0.ɵɵelementStart(2, "div", 2)(3, "mj-task-graph-run-view", 3);
|
|
310
|
-
i0.ɵɵlistener("NodeSelected", function TaskGraphDebuggerComponent_Template_mj_task_graph_run_view_NodeSelected_3_listener($event) { return ctx.OnRunNodeSelected($event); })("ConnectionSelected", function TaskGraphDebuggerComponent_Template_mj_task_graph_run_view_ConnectionSelected_3_listener($event) { return ctx.OnRunConnectionSelected($event); })("LegendToggled", function TaskGraphDebuggerComponent_Template_mj_task_graph_run_view_LegendToggled_3_listener($event) { return ctx.LegendToggled.emit($event); })("Settled", function TaskGraphDebuggerComponent_Template_mj_task_graph_run_view_Settled_3_listener() { return ctx.OnRunSettled(); })("BreakpointToggled", function TaskGraphDebuggerComponent_Template_mj_task_graph_run_view_BreakpointToggled_3_listener($event) { return ctx.OnRunBreakpointToggled($event); })("EdgeOverrideRequested", function TaskGraphDebuggerComponent_Template_mj_task_graph_run_view_EdgeOverrideRequested_3_listener($event) { return ctx.OnRunEdgeOverride($event); });
|
|
321
|
+
i0.ɵɵlistener("NodeSelected", function TaskGraphDebuggerComponent_Template_mj_task_graph_run_view_NodeSelected_3_listener($event) { return ctx.OnRunNodeSelected($event); })("ConnectionSelected", function TaskGraphDebuggerComponent_Template_mj_task_graph_run_view_ConnectionSelected_3_listener($event) { return ctx.OnRunConnectionSelected($event); })("LegendToggled", function TaskGraphDebuggerComponent_Template_mj_task_graph_run_view_LegendToggled_3_listener($event) { return ctx.LegendToggled.emit($event); })("Settled", function TaskGraphDebuggerComponent_Template_mj_task_graph_run_view_Settled_3_listener() { return ctx.OnRunSettled(); })("BreakpointToggled", function TaskGraphDebuggerComponent_Template_mj_task_graph_run_view_BreakpointToggled_3_listener($event) { return ctx.OnRunBreakpointToggled($event); })("RememberBreakpointToggled", function TaskGraphDebuggerComponent_Template_mj_task_graph_run_view_RememberBreakpointToggled_3_listener($event) { return ctx.RememberBreakpointToggled.emit($event); })("EdgeOverrideRequested", function TaskGraphDebuggerComponent_Template_mj_task_graph_run_view_EdgeOverrideRequested_3_listener($event) { return ctx.OnRunEdgeOverride($event); });
|
|
311
322
|
i0.ɵɵelementEnd()()();
|
|
312
323
|
} if (rf & 2) {
|
|
313
324
|
i0.ɵɵadvance();
|
|
314
325
|
i0.ɵɵconditional(ctx.ShowChrome ? 1 : -1);
|
|
315
326
|
i0.ɵɵadvance(2);
|
|
316
|
-
i0.ɵɵproperty("Provider", ctx.ProviderToUse)("ParentTaskID", ctx.ParentTaskID)("WorkflowName", ctx.WorkflowName)("LiveUpdates", ctx.LiveUpdates)("PollIntervalSeconds", ctx.PollIntervalSeconds)("Height", "100%")("ShowLegend", ctx.ShowLegend)("ShowToolbar", ctx.ShowCanvasToolbar)("ToolbarVisibility", ctx.ToolbarVisibility)("ToolbarAlign", ctx.ToolbarAlign)("LiveFrame", ctx.LatestFrame)("ReplayAt", ctx.ReplayAt)("Breakpoints", ctx.Breakpoints)("PausedAtTaskID", ctx.PausedAtTaskID)("GraphPaused", ctx.Paused)("EdgeOverrides", ctx.EdgeOverrides)("AllowBreakpointEditing", ctx.AllowBreakpointEditing)("ShowVariables", ctx.ShowVariables)("Invocation", ctx.Invocation);
|
|
327
|
+
i0.ɵɵproperty("Provider", ctx.ProviderToUse)("ParentTaskID", ctx.ParentTaskID)("WorkflowName", ctx.WorkflowName)("LiveUpdates", ctx.LiveUpdates)("PollIntervalSeconds", ctx.PollIntervalSeconds)("Height", "100%")("ShowLegend", ctx.ShowLegend)("ShowToolbar", ctx.ShowCanvasToolbar)("ToolbarVisibility", ctx.ToolbarVisibility)("ToolbarAlign", ctx.ToolbarAlign)("LiveFrame", ctx.LatestFrame)("ReplayAt", ctx.ReplayAt)("Breakpoints", ctx.Breakpoints)("PausedAtTaskID", ctx.PausedAtTaskID)("GraphPaused", ctx.Paused)("EdgeOverrides", ctx.EdgeOverrides)("AllowBreakpointEditing", ctx.AllowBreakpointEditing)("ShowVariables", ctx.ShowVariables)("Invocation", ctx.Invocation)("RememberedStepIDs", ctx.RememberedStepIDs)("AllowRememberBreakpoints", ctx.AllowRememberBreakpoints);
|
|
317
328
|
} }, dependencies: [i1.MJAlertComponent, i2.TaskGraphDebugToolbarComponent, i3.TaskGraphRunViewComponent], styles: ["[_nghost-%COMP%] {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n}\n\n.tgdbg[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n gap: var(--mj-space-2);\n}\n\n.tgdbg-chrome[_ngcontent-%COMP%] {\n flex: 0 0 auto;\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--mj-space-2);\n}\n\n.tgdbg-body[_ngcontent-%COMP%] {\n flex: 1 1 auto;\n min-height: 0;\n}"], changeDetection: 0 });
|
|
318
329
|
}
|
|
319
330
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TaskGraphDebuggerComponent, [{
|
|
320
331
|
type: Component,
|
|
321
|
-
args: [{ standalone: false, selector: 'mj-task-graph-debugger', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"tgdbg\">\n @if (ShowChrome) {\n <div class=\"tgdbg-chrome\">\n <mj-task-graph-debug-toolbar\n [Paused]=\"Paused\"\n [Busy]=\"Busy\"\n [Settled]=\"IsSettled\"\n [Enabled]=\"Enabled && !Busy\"\n (Pause)=\"Pause()\"\n (Resume)=\"Resume()\"\n (Step)=\"Step('one')\"\n (StepWave)=\"Step('wave')\"\n (Cancel)=\"Cancel()\">\n </mj-task-graph-debug-toolbar>\n @if (ControlError) {\n <mj-alert Variant=\"error\" [Message]=\"ControlError\"></mj-alert>\n }\n </div>\n }\n <div class=\"tgdbg-body\">\n <mj-task-graph-run-view\n [Provider]=\"ProviderToUse\"\n [ParentTaskID]=\"ParentTaskID\"\n [WorkflowName]=\"WorkflowName\"\n [LiveUpdates]=\"LiveUpdates\"\n [PollIntervalSeconds]=\"PollIntervalSeconds\"\n [Height]=\"'100%'\"\n [ShowLegend]=\"ShowLegend\"\n [ShowToolbar]=\"ShowCanvasToolbar\"\n [ToolbarVisibility]=\"ToolbarVisibility\"\n [ToolbarAlign]=\"ToolbarAlign\"\n [LiveFrame]=\"LatestFrame\"\n [ReplayAt]=\"ReplayAt\"\n [Breakpoints]=\"Breakpoints\"\n [PausedAtTaskID]=\"PausedAtTaskID\"\n [GraphPaused]=\"Paused\"\n [EdgeOverrides]=\"EdgeOverrides\"\n [AllowBreakpointEditing]=\"AllowBreakpointEditing\"\n [ShowVariables]=\"ShowVariables\"\n [Invocation]=\"Invocation\"\n (NodeSelected)=\"OnRunNodeSelected($event)\"\n (ConnectionSelected)=\"OnRunConnectionSelected($event)\"\n (LegendToggled)=\"LegendToggled.emit($event)\"\n (Settled)=\"OnRunSettled()\"\n (BreakpointToggled)=\"OnRunBreakpointToggled($event)\"\n (EdgeOverrideRequested)=\"OnRunEdgeOverride($event)\">\n </mj-task-graph-run-view>\n </div>\n</div>\n", styles: [":host {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n}\n\n.tgdbg {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n gap: var(--mj-space-2);\n}\n\n.tgdbg-chrome {\n flex: 0 0 auto;\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--mj-space-2);\n}\n\n.tgdbg-body {\n flex: 1 1 auto;\n min-height: 0;\n}\n"] }]
|
|
332
|
+
args: [{ standalone: false, selector: 'mj-task-graph-debugger', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"tgdbg\">\n @if (ShowChrome) {\n <div class=\"tgdbg-chrome\">\n <mj-task-graph-debug-toolbar\n [Paused]=\"Paused\"\n [Busy]=\"Busy\"\n [Settled]=\"IsSettled\"\n [Enabled]=\"Enabled && !Busy\"\n (Pause)=\"Pause()\"\n (Resume)=\"Resume()\"\n (Step)=\"Step('one')\"\n (StepWave)=\"Step('wave')\"\n (Cancel)=\"Cancel()\">\n </mj-task-graph-debug-toolbar>\n @if (ControlError) {\n <mj-alert Variant=\"error\" [Message]=\"ControlError\"></mj-alert>\n }\n </div>\n }\n <div class=\"tgdbg-body\">\n <mj-task-graph-run-view\n [Provider]=\"ProviderToUse\"\n [ParentTaskID]=\"ParentTaskID\"\n [WorkflowName]=\"WorkflowName\"\n [LiveUpdates]=\"LiveUpdates\"\n [PollIntervalSeconds]=\"PollIntervalSeconds\"\n [Height]=\"'100%'\"\n [ShowLegend]=\"ShowLegend\"\n [ShowToolbar]=\"ShowCanvasToolbar\"\n [ToolbarVisibility]=\"ToolbarVisibility\"\n [ToolbarAlign]=\"ToolbarAlign\"\n [LiveFrame]=\"LatestFrame\"\n [ReplayAt]=\"ReplayAt\"\n [Breakpoints]=\"Breakpoints\"\n [PausedAtTaskID]=\"PausedAtTaskID\"\n [GraphPaused]=\"Paused\"\n [EdgeOverrides]=\"EdgeOverrides\"\n [AllowBreakpointEditing]=\"AllowBreakpointEditing\"\n [ShowVariables]=\"ShowVariables\"\n [Invocation]=\"Invocation\"\n (NodeSelected)=\"OnRunNodeSelected($event)\"\n (ConnectionSelected)=\"OnRunConnectionSelected($event)\"\n (LegendToggled)=\"LegendToggled.emit($event)\"\n (Settled)=\"OnRunSettled()\"\n (BreakpointToggled)=\"OnRunBreakpointToggled($event)\"\n [RememberedStepIDs]=\"RememberedStepIDs\"\n [AllowRememberBreakpoints]=\"AllowRememberBreakpoints\"\n (RememberBreakpointToggled)=\"RememberBreakpointToggled.emit($event)\"\n (EdgeOverrideRequested)=\"OnRunEdgeOverride($event)\">\n </mj-task-graph-run-view>\n </div>\n</div>\n", styles: [":host {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n}\n\n.tgdbg {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n gap: var(--mj-space-2);\n}\n\n.tgdbg-chrome {\n flex: 0 0 auto;\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--mj-space-2);\n}\n\n.tgdbg-body {\n flex: 1 1 auto;\n min-height: 0;\n}\n"] }]
|
|
322
333
|
}], () => [{ type: i0.ChangeDetectorRef }], { ParentTaskID: [{
|
|
323
334
|
type: Input
|
|
324
335
|
}], WorkflowName: [{
|
|
@@ -339,6 +350,10 @@ export class TaskGraphDebuggerComponent extends BaseAngularComponent {
|
|
|
339
350
|
type: Input
|
|
340
351
|
}], AllowBreakpointEditing: [{
|
|
341
352
|
type: Input
|
|
353
|
+
}], RememberedStepIDs: [{
|
|
354
|
+
type: Input
|
|
355
|
+
}], AllowRememberBreakpoints: [{
|
|
356
|
+
type: Input
|
|
342
357
|
}], ShowVariables: [{
|
|
343
358
|
type: Input
|
|
344
359
|
}], ShowChrome: [{
|
|
@@ -363,6 +378,8 @@ export class TaskGraphDebuggerComponent extends BaseAngularComponent {
|
|
|
363
378
|
type: Output
|
|
364
379
|
}], Settled: [{
|
|
365
380
|
type: Output
|
|
381
|
+
}], RememberBreakpointToggled: [{
|
|
382
|
+
type: Output
|
|
366
383
|
}], RunView: [{
|
|
367
384
|
type: ViewChild,
|
|
368
385
|
args: [TaskGraphRunViewComponent]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-graph-debugger.component.js","sourceRoot":"","sources":["../../src/lib/task-graph-debugger.component.ts","../../src/lib/task-graph-debugger.component.html"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EACH,uBAAuB,EAEvB,SAAS,EACT,YAAY,EACZ,KAAK,EAEL,MAAM,EACN,SAAS,GACZ,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,OAAO,EAAyD,MAAM,sBAAsB,CAAC;AAEtG,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD,OAAO,EACH,oBAAoB,EACpB,yBAAyB,EACzB,uBAAuB,GAE1B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACH,yBAAyB,GAI5B,MAAM,iCAAiC,CAAC;;;;;;ICrBjC,8BAA8D;;;IAApC,6CAAwB;;;;IAZpD,AADF,8BAA0B,qCAUF;IAApB,AADA,AADA,AADA,AADA,mNAAS,cAAO,KAAC,wMACP,eAAQ,KAAC,oMACX,YAAK,KAAK,CAAC,KAAC,4MACR,YAAK,MAAM,CAAC,KAAC,wMACf,eAAQ,KAAC;IACrB,iBAA8B;IAC9B,+GAAoB;IAGtB,iBAAM;;;IAbF,cAAiB;IAGjB,AADA,AADA,AADA,sCAAiB,qBACJ,6BACQ,2CACO;IAO9B,cAEC;IAFD,8CAEC;;ADiCP,SAAS,aAAa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AmB;YACjB,4FAAkB;YAmBhB,AADF,8BAAwB,gCA0BgC;YAApD,AADA,AADA,AADA,AADA,AADA,2IAAgB,6BAAyB,IAAC,0IACpB,mCAA+B,IAAC,gIACrC,8BAA0B,IAAC,8GACjC,kBAAc,IAAC,wIACL,kCAA8B,IAAC,gJAC3B,6BAAyB,IAAC;YAGzD,AADE,AADE,iBAAyB,EACrB,EACF;;YA/CJ,cAiBC;YAjBD,yCAiBC;YAGG,eAA0B;YAkB1B,AADA,AADA,AADA,AADA,AADA,AADA,AADA,AADA,AADA,AADA,AADA,AADA,AADA,AADA,AADA,AADA,AADA,AADA,4CAA0B,kCACG,kCACA,gCACF,gDACgB,kBAC1B,8BACQ,sCACQ,4CACM,kCACV,8BACJ,0BACJ,gCACM,sCACM,2BACX,oCACS,sDACkB,oCAClB,8BACN;;;iFD2BlB,0BAA0B;cAPtC,SAAS;6BACM,KAAK,YACP,wBAAwB,mBAGjB,uBAAuB,CAAC,MAAM;;kBAM9C,KAAK;;kBAkBL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBAEL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBAaL,MAAM;;kBACN,MAAM;;kBACN,MAAM;;kBACN,MAAM;;kBACN,MAAM;;kBACN,MAAM;;kBACN,MAAM;;kBACN,MAAM;;kBAEN,SAAS;mBAAC,yBAAyB;;kFAzD3B,0BAA0B","sourcesContent":["/**\n * Drop-in debugger for a live task graph.\n *\n * This is a wrap of the existing run view + VCR toolbar + the session wiring the harness and\n * Runs console already had (RouteOperation, frame subscribe, `$.debug` bag). The picture and\n * the verbs are unchanged; a host now supplies a parent task id and nothing else.\n *\n * @module @memberjunction/ng-task-graph-editor\n */\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n EventEmitter,\n Input,\n OnDestroy,\n Output,\n ViewChild,\n} from '@angular/core';\nimport { Subscription } from 'rxjs';\nimport { RunView, type IMetadataProvider, type IRemoteOperationProvider } from '@memberjunction/core';\nimport { MJTaskEntity } from '@memberjunction/core-entities';\nimport { BaseAngularComponent } from '@memberjunction/ng-base-types';\nimport { UUIDsEqual } from '@memberjunction/global';\nimport type { FlowToolbarAlign, FlowToolbarVisibility } from '@memberjunction/ng-flow-editor';\nimport {\n ComposeBreakpointSet,\n ParseWorkflowDebugOverlay,\n ParseWorkflowInvocation,\n type WorkflowInvocationRoots,\n} from './workflow-debug-host';\nimport {\n TaskGraphRunViewComponent,\n type TaskGraphRunConnectionSelectedEvent,\n type TaskGraphRunFrame,\n type TaskGraphRunNodeSelectedEvent,\n} from './task-graph-run-view.component';\n\n/** A provider that can push dispatcher frames. GraphQL does; others simply do not. */\ntype FrameCapableProvider = IMetadataProvider & {\n TaskGraphFrames(parentTaskId: string): {\n subscribe(observer: {\n next: (frame: TaskGraphRunFrame) => void;\n error: () => void;\n complete: () => void;\n }): Subscription;\n };\n};\n\nfunction AsFrameSource(provider: IMetadataProvider): FrameCapableProvider | null {\n const candidate = provider as FrameCapableProvider;\n return typeof candidate.TaskGraphFrames === 'function' ? candidate : null;\n}\n\ntype ControlOutput = {\n success?: boolean;\n errorMessage?: string;\n};\n\n@Component({\n standalone: false,\n selector: 'mj-task-graph-debugger',\n templateUrl: './task-graph-debugger.component.html',\n styleUrls: ['./task-graph-debugger.component.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TaskGraphDebuggerComponent extends BaseAngularComponent implements OnDestroy {\n /**\n * The graph to debug — the parent `MJ: Tasks` row. Everything else is optional.\n */\n @Input()\n public set ParentTaskID(value: string | null) {\n if (value === this.parentTaskID) return;\n this.detachFrames();\n this.parentTaskID = value;\n this.IsSettled = false;\n if (value) {\n this.attachFrames(value);\n void this.Refresh();\n } else {\n this.clearSession();\n }\n this.cdr.markForCheck();\n }\n public get ParentTaskID(): string | null {\n return this.parentTaskID;\n }\n\n @Input() public WorkflowName: string = 'Workflow';\n @Input() public LiveUpdates: boolean = true;\n @Input() public PollIntervalSeconds: number = 3;\n @Input() public Height: string = '100%';\n @Input() public ShowLegend: boolean = false;\n @Input() public ShowCanvasToolbar: boolean = true;\n @Input() public ToolbarVisibility: FlowToolbarVisibility = 'minimized';\n @Input() public ToolbarAlign: FlowToolbarAlign = 'left';\n @Input() public AllowBreakpointEditing: boolean = true;\n @Input() public ShowVariables: boolean = true;\n /** VCR + error line above the canvas. Off if the host already has its own bar. */\n @Input() public ShowChrome: boolean = true;\n @Input() public Enabled: boolean = true;\n @Input() public ReplayAt: Date | null = null;\n\n /** Claim-gated. Public so a host toolbar can bind the same flag. */\n public Paused = false;\n public IsSettled = false;\n public Busy = false;\n public ControlError: string | null = null;\n public Breakpoints: readonly string[] = [];\n public PausedAtTaskID: string | null = null;\n public EdgeOverrides: Readonly<Record<string, 'true' | 'false'>> = {};\n public Invocation: WorkflowInvocationRoots | null = null;\n public LatestFrame: TaskGraphRunFrame | null = null;\n\n @Output() public NodeSelected = new EventEmitter<TaskGraphRunNodeSelectedEvent>();\n @Output() public ConnectionSelected = new EventEmitter<TaskGraphRunConnectionSelectedEvent>();\n @Output() public LegendToggled = new EventEmitter<boolean>();\n @Output() public SettledChange = new EventEmitter<boolean>();\n @Output() public PausedChange = new EventEmitter<boolean>();\n @Output() public Frame = new EventEmitter<TaskGraphRunFrame>();\n @Output() public ControlFailed = new EventEmitter<string>();\n @Output() public Settled = new EventEmitter<void>();\n\n @ViewChild(TaskGraphRunViewComponent) public RunView: TaskGraphRunViewComponent | undefined;\n\n private parentTaskID: string | null = null;\n private frameSub: Subscription | null = null;\n\n constructor(private cdr: ChangeDetectorRef) {\n super();\n }\n\n public ngOnDestroy(): void {\n this.detachFrames();\n }\n\n // ── verbs: same RouteOperation calls the hosts already made ──────────────\n\n public Pause(): Promise<boolean> {\n return this.executeControl('TaskGraph.Pause', { parentTaskID: this.parentTaskID });\n }\n\n public Resume(): Promise<boolean> {\n return this.executeControl('TaskGraph.Resume', { parentTaskID: this.parentTaskID });\n }\n\n public Step(target: 'one' | 'wave' = 'one'): Promise<boolean> {\n return this.executeControl('TaskGraph.Step', { parentTaskID: this.parentTaskID, target });\n }\n\n public Cancel(): Promise<boolean> {\n return this.executeControl('TaskGraph.Cancel', { parentTaskID: this.parentTaskID });\n }\n\n public async ToggleBreakpoint(taskID: string, enabled: boolean): Promise<boolean> {\n await this.Refresh();\n return this.executeControl('TaskGraph.SetBreakpoints', {\n parentTaskID: this.parentTaskID,\n taskIDs: ComposeBreakpointSet(this.Breakpoints, taskID, enabled),\n });\n }\n\n public OverrideEdge(edgeID: string, verdict: 'true' | 'false' | null): Promise<boolean> {\n return this.executeControl('TaskGraph.OverrideEdge', {\n parentTaskID: this.parentTaskID,\n edgeID,\n verdict,\n });\n }\n\n public SkipTask(taskID: string): Promise<boolean> {\n return this.executeControl('TaskGraph.SkipTask', { taskID });\n }\n\n public RetryTask(taskID: string, inputPayload?: Record<string, unknown> | string): Promise<boolean> {\n return this.executeControl('TaskGraph.RetryTask', { taskID, inputPayload });\n }\n\n public UpdateTaskInput(taskID: string, payload: unknown): Promise<boolean> {\n return this.executeControl('TaskGraph.UpdateTaskInput', { taskID, payload });\n }\n\n public ForceCompleteTask(taskID: string, payload?: unknown): Promise<boolean> {\n return this.executeControl('TaskGraph.ForceCompleteTask', { taskID, payload });\n }\n\n public HasBreakpoint(taskID: string): boolean {\n return this.Breakpoints.some((id) => UUIDsEqual(id, taskID));\n }\n\n public GetEdgeOverride(edgeID: string | null): 'true' | 'false' | null {\n if (!edgeID) return null;\n for (const [id, verdict] of Object.entries(this.EdgeOverrides)) {\n if (UUIDsEqual(id, edgeID)) return verdict;\n }\n return null;\n }\n\n /** Re-read `$.debug` from the parent row. Same query the hosts already used. */\n public async Refresh(): Promise<void> {\n if (!this.parentTaskID) return;\n const parentTaskID = this.parentTaskID;\n const result = await RunView.FromMetadataProvider(this.ProviderToUse).RunView<MJTaskEntity>({\n EntityName: 'MJ: Tasks',\n ExtraFilter: `ID='${parentTaskID}'`,\n ResultType: 'entity_object',\n BypassCache: true,\n });\n if (this.parentTaskID !== parentTaskID) return;\n const parent = result.Success ? result.Results?.[0] : undefined;\n const overlay = ParseWorkflowDebugOverlay(parent?.InputPayload);\n this.Breakpoints = overlay.breakpoints;\n this.EdgeOverrides = overlay.edgeOverrides;\n this.Invocation = ParseWorkflowInvocation(parent?.InputPayload);\n if (!this.IsSettled) {\n this.Paused = overlay.paused;\n this.PausedAtTaskID = overlay.pausedAtTaskID;\n }\n this.cdr.markForCheck();\n }\n\n public OnRunNodeSelected(event: TaskGraphRunNodeSelectedEvent): void {\n this.NodeSelected.emit(event);\n }\n\n public OnRunConnectionSelected(event: TaskGraphRunConnectionSelectedEvent): void {\n this.ConnectionSelected.emit(event);\n }\n\n public OnRunSettled(): void {\n this.markSettled();\n }\n\n public OnRunBreakpointToggled(event: { TaskID: string; Enabled: boolean }): void {\n void this.ToggleBreakpoint(event.TaskID, event.Enabled);\n }\n\n public OnRunEdgeOverride(event: { EdgeID: string; Verdict: 'true' | 'false' | null }): void {\n void this.OverrideEdge(event.EdgeID, event.Verdict);\n }\n\n private async executeControl(operationKey: string, input: Record<string, unknown>): Promise<boolean> {\n if (!this.parentTaskID) return false;\n const provider = this.ProviderToUse as IMetadataProvider & Partial<IRemoteOperationProvider>;\n if (typeof provider.RouteOperation !== 'function') {\n this.failControl('This connection cannot send workflow controls.');\n return false;\n }\n this.Busy = true;\n this.ControlError = null;\n this.cdr.markForCheck();\n try {\n const result = await provider.RouteOperation(operationKey, input, {});\n const output = result?.Output as ControlOutput | undefined;\n if (!result?.Success || output?.success === false) {\n this.failControl(output?.errorMessage ?? result?.ErrorMessage ?? 'The control could not be applied.');\n return false;\n }\n if (operationKey === 'TaskGraph.Pause') this.setPaused(true);\n if (operationKey === 'TaskGraph.Resume') this.setPaused(false);\n await this.Refresh();\n return true;\n } catch (e) {\n this.failControl(e instanceof Error ? e.message : String(e));\n return false;\n } finally {\n this.Busy = false;\n this.cdr.markForCheck();\n }\n }\n\n private attachFrames(parentTaskID: string): void {\n this.detachFrames();\n const source = AsFrameSource(this.ProviderToUse);\n if (!source) return;\n this.frameSub = source.TaskGraphFrames(parentTaskID).subscribe({\n next: (frame) => this.onFrame(frame),\n error: () => { this.frameSub = null; },\n complete: () => { this.frameSub = null; },\n });\n }\n\n private onFrame(frame: TaskGraphRunFrame): void {\n this.LatestFrame = frame;\n this.Frame.emit(frame);\n if (this.IsSettled && (frame.kind === 'GraphPaused' || frame.kind === 'BreakpointHit')) {\n return;\n }\n if (frame.kind === 'GraphPaused' || frame.kind === 'BreakpointHit') {\n this.IsSettled = false;\n this.setPaused(true);\n if (this.parentTaskID) void this.Refresh();\n } else if (frame.kind === 'GraphResumed' || frame.kind === 'TaskStarted') {\n this.IsSettled = false;\n this.setPaused(false);\n } else if (frame.kind === 'GraphSettled') {\n this.markSettled();\n }\n this.cdr.markForCheck();\n }\n\n private detachFrames(): void {\n this.frameSub?.unsubscribe();\n this.frameSub = null;\n this.LatestFrame = null;\n }\n\n private markSettled(): void {\n this.IsSettled = true;\n this.setPaused(false);\n this.PausedAtTaskID = null;\n this.SettledChange.emit(true);\n this.Settled.emit();\n if (this.parentTaskID) void this.Refresh();\n this.cdr.markForCheck();\n }\n\n private setPaused(paused: boolean): void {\n this.Paused = paused;\n this.PausedChange.emit(paused);\n }\n\n private failControl(message: string): void {\n this.ControlError = message;\n this.ControlFailed.emit(message);\n this.cdr.markForCheck();\n }\n\n private clearSession(): void {\n this.Paused = false;\n this.IsSettled = false;\n this.Busy = false;\n this.ControlError = null;\n this.Breakpoints = [];\n this.PausedAtTaskID = null;\n this.EdgeOverrides = {};\n this.Invocation = null;\n this.LatestFrame = null;\n }\n}\n","<div class=\"tgdbg\">\n @if (ShowChrome) {\n <div class=\"tgdbg-chrome\">\n <mj-task-graph-debug-toolbar\n [Paused]=\"Paused\"\n [Busy]=\"Busy\"\n [Settled]=\"IsSettled\"\n [Enabled]=\"Enabled && !Busy\"\n (Pause)=\"Pause()\"\n (Resume)=\"Resume()\"\n (Step)=\"Step('one')\"\n (StepWave)=\"Step('wave')\"\n (Cancel)=\"Cancel()\">\n </mj-task-graph-debug-toolbar>\n @if (ControlError) {\n <mj-alert Variant=\"error\" [Message]=\"ControlError\"></mj-alert>\n }\n </div>\n }\n <div class=\"tgdbg-body\">\n <mj-task-graph-run-view\n [Provider]=\"ProviderToUse\"\n [ParentTaskID]=\"ParentTaskID\"\n [WorkflowName]=\"WorkflowName\"\n [LiveUpdates]=\"LiveUpdates\"\n [PollIntervalSeconds]=\"PollIntervalSeconds\"\n [Height]=\"'100%'\"\n [ShowLegend]=\"ShowLegend\"\n [ShowToolbar]=\"ShowCanvasToolbar\"\n [ToolbarVisibility]=\"ToolbarVisibility\"\n [ToolbarAlign]=\"ToolbarAlign\"\n [LiveFrame]=\"LatestFrame\"\n [ReplayAt]=\"ReplayAt\"\n [Breakpoints]=\"Breakpoints\"\n [PausedAtTaskID]=\"PausedAtTaskID\"\n [GraphPaused]=\"Paused\"\n [EdgeOverrides]=\"EdgeOverrides\"\n [AllowBreakpointEditing]=\"AllowBreakpointEditing\"\n [ShowVariables]=\"ShowVariables\"\n [Invocation]=\"Invocation\"\n (NodeSelected)=\"OnRunNodeSelected($event)\"\n (ConnectionSelected)=\"OnRunConnectionSelected($event)\"\n (LegendToggled)=\"LegendToggled.emit($event)\"\n (Settled)=\"OnRunSettled()\"\n (BreakpointToggled)=\"OnRunBreakpointToggled($event)\"\n (EdgeOverrideRequested)=\"OnRunEdgeOverride($event)\">\n </mj-task-graph-run-view>\n </div>\n</div>\n"]}
|
|
1
|
+
{"version":3,"file":"task-graph-debugger.component.js","sourceRoot":"","sources":["../../src/lib/task-graph-debugger.component.ts","../../src/lib/task-graph-debugger.component.html"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EACH,uBAAuB,EAEvB,SAAS,EACT,YAAY,EACZ,KAAK,EAEL,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A,AADA,AADA,AADA,AADA,AADA,AADA,AADA,AADA,AADA,AADA,AADA,AADA,4CAA0B,kCACG,kCACA,gCACF,gDACgB,kBAC1B,8BACQ,sCACQ,4CACM,kCACV,8BACJ,0BACJ,gCACM,sCACM,2BACX,oCACS,sDACkB,oCAClB,8BACN,4CAMc,0DACc;;;iFDoB9C,0BAA0B;cAPtC,SAAS;6BACM,KAAK,YACP,wBAAwB,mBAGjB,uBAAuB,CAAC,MAAM;;kBAM9C,KAAK;;kBAkBL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBAOL,KAAK;;kBAEL,KAAK;;kBACL,KAAK;;kBAEL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBAaL,MAAM;;kBACN,MAAM;;kBACN,MAAM;;kBACN,MAAM;;kBACN,MAAM;;kBACN,MAAM;;kBACN,MAAM;;kBACN,MAAM;;kBAEN,MAAM;;kBAEN,SAAS;mBAAC,yBAAyB;;kFApE3B,0BAA0B","sourcesContent":["/**\n * Drop-in debugger for a live task graph.\n *\n * This is a wrap of the existing run view + VCR toolbar + the session wiring the harness and\n * Runs console already had (RouteOperation, frame subscribe, `$.debug` bag). The picture and\n * the verbs are unchanged; a host now supplies a parent task id and nothing else.\n *\n * @module @memberjunction/ng-task-graph-editor\n */\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n EventEmitter,\n Input,\n OnDestroy,\n Output,\n ViewChild,\n} from '@angular/core';\nimport { Subscription } from 'rxjs';\nimport { RunView, type IMetadataProvider, type IRemoteOperationProvider } from '@memberjunction/core';\nimport { MJTaskEntity } from '@memberjunction/core-entities';\nimport { BaseAngularComponent } from '@memberjunction/ng-base-types';\nimport { UUIDsEqual } from '@memberjunction/global';\nimport type { FlowToolbarAlign, FlowToolbarVisibility } from '@memberjunction/ng-flow-editor';\nimport {\n ComposeBreakpointSet,\n ParseWorkflowDebugOverlay,\n ParseWorkflowInvocation,\n type WorkflowInvocationRoots,\n} from './workflow-debug-host';\nimport {\n TaskGraphRunViewComponent,\n type TaskGraphRunConnectionSelectedEvent,\n type TaskGraphRunFrame,\n type TaskGraphRunNodeSelectedEvent,\n} from './task-graph-run-view.component';\n\n/** A provider that can push dispatcher frames. GraphQL does; others simply do not. */\ntype FrameCapableProvider = IMetadataProvider & {\n TaskGraphFrames(parentTaskId: string): {\n subscribe(observer: {\n next: (frame: TaskGraphRunFrame) => void;\n error: () => void;\n complete: () => void;\n }): Subscription;\n };\n};\n\nfunction AsFrameSource(provider: IMetadataProvider): FrameCapableProvider | null {\n const candidate = provider as FrameCapableProvider;\n return typeof candidate.TaskGraphFrames === 'function' ? candidate : null;\n}\n\ntype ControlOutput = {\n success?: boolean;\n errorMessage?: string;\n};\n\n@Component({\n standalone: false,\n selector: 'mj-task-graph-debugger',\n templateUrl: './task-graph-debugger.component.html',\n styleUrls: ['./task-graph-debugger.component.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TaskGraphDebuggerComponent extends BaseAngularComponent implements OnDestroy {\n /**\n * The graph to debug — the parent `MJ: Tasks` row. Everything else is optional.\n */\n @Input()\n public set ParentTaskID(value: string | null) {\n if (value === this.parentTaskID) return;\n this.detachFrames();\n this.parentTaskID = value;\n this.IsSettled = false;\n if (value) {\n this.attachFrames(value);\n void this.Refresh();\n } else {\n this.clearSession();\n }\n this.cdr.markForCheck();\n }\n public get ParentTaskID(): string | null {\n return this.parentTaskID;\n }\n\n @Input() public WorkflowName: string = 'Workflow';\n @Input() public LiveUpdates: boolean = true;\n @Input() public PollIntervalSeconds: number = 3;\n @Input() public Height: string = '100%';\n @Input() public ShowLegend: boolean = false;\n @Input() public ShowCanvasToolbar: boolean = true;\n @Input() public ToolbarVisibility: FlowToolbarVisibility = 'minimized';\n @Input() public ToolbarAlign: FlowToolbarAlign = 'left';\n @Input() public AllowBreakpointEditing: boolean = true;\n /**\n * Breakpoints the person keeps for future runs of this workflow, as stable step IDs (#3798). The host loads\n * them from the user's settings, stores changes from {@link RememberBreakpointToggled}, and passes them as\n * `taskGraphDebug.breakpointStepIDs` when it starts the next debug run. Generic components hold no settings\n * of their own.\n */\n @Input() public RememberedStepIDs: readonly string[] = [];\n /** Offer \"Remember Breakpoint for Future Runs\" on a step. Off unless the host stores the set. */\n @Input() public AllowRememberBreakpoints: boolean = false;\n @Input() public ShowVariables: boolean = true;\n /** VCR + error line above the canvas. Off if the host already has its own bar. */\n @Input() public ShowChrome: boolean = true;\n @Input() public Enabled: boolean = true;\n @Input() public ReplayAt: Date | null = null;\n\n /** Claim-gated. Public so a host toolbar can bind the same flag. */\n public Paused = false;\n public IsSettled = false;\n public Busy = false;\n public ControlError: string | null = null;\n public Breakpoints: readonly string[] = [];\n public PausedAtTaskID: string | null = null;\n public EdgeOverrides: Readonly<Record<string, 'true' | 'false'>> = {};\n public Invocation: WorkflowInvocationRoots | null = null;\n public LatestFrame: TaskGraphRunFrame | null = null;\n\n @Output() public NodeSelected = new EventEmitter<TaskGraphRunNodeSelectedEvent>();\n @Output() public ConnectionSelected = new EventEmitter<TaskGraphRunConnectionSelectedEvent>();\n @Output() public LegendToggled = new EventEmitter<boolean>();\n @Output() public SettledChange = new EventEmitter<boolean>();\n @Output() public PausedChange = new EventEmitter<boolean>();\n @Output() public Frame = new EventEmitter<TaskGraphRunFrame>();\n @Output() public ControlFailed = new EventEmitter<string>();\n @Output() public Settled = new EventEmitter<void>();\n /** A step's remembered breakpoint was turned on or off. Intent only — the host stores it. */\n @Output() public RememberBreakpointToggled = new EventEmitter<{ TaskID: string; StepID: string; Remember: boolean }>();\n\n @ViewChild(TaskGraphRunViewComponent) public RunView: TaskGraphRunViewComponent | undefined;\n\n private parentTaskID: string | null = null;\n private frameSub: Subscription | null = null;\n\n constructor(private cdr: ChangeDetectorRef) {\n super();\n }\n\n public ngOnDestroy(): void {\n this.detachFrames();\n }\n\n // ── verbs: same RouteOperation calls the hosts already made ──────────────\n\n public Pause(): Promise<boolean> {\n return this.executeControl('TaskGraph.Pause', { parentTaskID: this.parentTaskID });\n }\n\n public Resume(): Promise<boolean> {\n return this.executeControl('TaskGraph.Resume', { parentTaskID: this.parentTaskID });\n }\n\n public Step(target: 'one' | 'wave' = 'one'): Promise<boolean> {\n return this.executeControl('TaskGraph.Step', { parentTaskID: this.parentTaskID, target });\n }\n\n public Cancel(): Promise<boolean> {\n return this.executeControl('TaskGraph.Cancel', { parentTaskID: this.parentTaskID });\n }\n\n public async ToggleBreakpoint(taskID: string, enabled: boolean): Promise<boolean> {\n await this.Refresh();\n return this.executeControl('TaskGraph.SetBreakpoints', {\n parentTaskID: this.parentTaskID,\n taskIDs: ComposeBreakpointSet(this.Breakpoints, taskID, enabled),\n });\n }\n\n public OverrideEdge(edgeID: string, verdict: 'true' | 'false' | null): Promise<boolean> {\n return this.executeControl('TaskGraph.OverrideEdge', {\n parentTaskID: this.parentTaskID,\n edgeID,\n verdict,\n });\n }\n\n public SkipTask(taskID: string): Promise<boolean> {\n return this.executeControl('TaskGraph.SkipTask', { taskID });\n }\n\n public RetryTask(taskID: string, inputPayload?: Record<string, unknown> | string): Promise<boolean> {\n return this.executeControl('TaskGraph.RetryTask', { taskID, inputPayload });\n }\n\n public UpdateTaskInput(taskID: string, payload: unknown): Promise<boolean> {\n return this.executeControl('TaskGraph.UpdateTaskInput', { taskID, payload });\n }\n\n public ForceCompleteTask(taskID: string, payload?: unknown): Promise<boolean> {\n return this.executeControl('TaskGraph.ForceCompleteTask', { taskID, payload });\n }\n\n public HasBreakpoint(taskID: string): boolean {\n return this.Breakpoints.some((id) => UUIDsEqual(id, taskID));\n }\n\n public GetEdgeOverride(edgeID: string | null): 'true' | 'false' | null {\n if (!edgeID) return null;\n for (const [id, verdict] of Object.entries(this.EdgeOverrides)) {\n if (UUIDsEqual(id, edgeID)) return verdict;\n }\n return null;\n }\n\n /** Re-read `$.debug` from the parent row. Same query the hosts already used. */\n public async Refresh(): Promise<void> {\n if (!this.parentTaskID) return;\n const parentTaskID = this.parentTaskID;\n const result = await RunView.FromMetadataProvider(this.ProviderToUse).RunView<MJTaskEntity>({\n EntityName: 'MJ: Tasks',\n ExtraFilter: `ID='${parentTaskID}'`,\n ResultType: 'entity_object',\n BypassCache: true,\n });\n if (this.parentTaskID !== parentTaskID) return;\n const parent = result.Success ? result.Results?.[0] : undefined;\n const overlay = ParseWorkflowDebugOverlay(parent?.InputPayload);\n this.Breakpoints = overlay.breakpoints;\n this.EdgeOverrides = overlay.edgeOverrides;\n this.Invocation = ParseWorkflowInvocation(parent?.InputPayload);\n if (!this.IsSettled) {\n this.Paused = overlay.paused;\n this.PausedAtTaskID = overlay.pausedAtTaskID;\n }\n this.cdr.markForCheck();\n }\n\n public OnRunNodeSelected(event: TaskGraphRunNodeSelectedEvent): void {\n this.NodeSelected.emit(event);\n }\n\n public OnRunConnectionSelected(event: TaskGraphRunConnectionSelectedEvent): void {\n this.ConnectionSelected.emit(event);\n }\n\n public OnRunSettled(): void {\n this.markSettled();\n }\n\n public OnRunBreakpointToggled(event: { TaskID: string; Enabled: boolean }): void {\n void this.ToggleBreakpoint(event.TaskID, event.Enabled);\n }\n\n public OnRunEdgeOverride(event: { EdgeID: string; Verdict: 'true' | 'false' | null }): void {\n void this.OverrideEdge(event.EdgeID, event.Verdict);\n }\n\n private async executeControl(operationKey: string, input: Record<string, unknown>): Promise<boolean> {\n if (!this.parentTaskID) return false;\n const provider = this.ProviderToUse as IMetadataProvider & Partial<IRemoteOperationProvider>;\n if (typeof provider.RouteOperation !== 'function') {\n this.failControl('This connection cannot send workflow controls.');\n return false;\n }\n this.Busy = true;\n this.ControlError = null;\n this.cdr.markForCheck();\n try {\n const result = await provider.RouteOperation(operationKey, input, {});\n const output = result?.Output as ControlOutput | undefined;\n if (!result?.Success || output?.success === false) {\n this.failControl(output?.errorMessage ?? result?.ErrorMessage ?? 'The control could not be applied.');\n return false;\n }\n if (operationKey === 'TaskGraph.Pause') this.setPaused(true);\n if (operationKey === 'TaskGraph.Resume') this.setPaused(false);\n await this.Refresh();\n return true;\n } catch (e) {\n this.failControl(e instanceof Error ? e.message : String(e));\n return false;\n } finally {\n this.Busy = false;\n this.cdr.markForCheck();\n }\n }\n\n private attachFrames(parentTaskID: string): void {\n this.detachFrames();\n const source = AsFrameSource(this.ProviderToUse);\n if (!source) return;\n this.frameSub = source.TaskGraphFrames(parentTaskID).subscribe({\n next: (frame) => this.onFrame(frame),\n error: () => { this.frameSub = null; },\n complete: () => { this.frameSub = null; },\n });\n }\n\n private onFrame(frame: TaskGraphRunFrame): void {\n this.LatestFrame = frame;\n this.Frame.emit(frame);\n if (this.IsSettled && (frame.kind === 'GraphPaused' || frame.kind === 'BreakpointHit')) {\n return;\n }\n if (frame.kind === 'GraphPaused' || frame.kind === 'BreakpointHit') {\n this.IsSettled = false;\n this.setPaused(true);\n if (this.parentTaskID) void this.Refresh();\n } else if (frame.kind === 'GraphResumed' || frame.kind === 'TaskStarted') {\n this.IsSettled = false;\n this.setPaused(false);\n } else if (frame.kind === 'GraphSettled') {\n this.markSettled();\n }\n this.cdr.markForCheck();\n }\n\n private detachFrames(): void {\n this.frameSub?.unsubscribe();\n this.frameSub = null;\n this.LatestFrame = null;\n }\n\n private markSettled(): void {\n this.IsSettled = true;\n this.setPaused(false);\n this.PausedAtTaskID = null;\n this.SettledChange.emit(true);\n this.Settled.emit();\n if (this.parentTaskID) void this.Refresh();\n this.cdr.markForCheck();\n }\n\n private setPaused(paused: boolean): void {\n this.Paused = paused;\n this.PausedChange.emit(paused);\n }\n\n private failControl(message: string): void {\n this.ControlError = message;\n this.ControlFailed.emit(message);\n this.cdr.markForCheck();\n }\n\n private clearSession(): void {\n this.Paused = false;\n this.IsSettled = false;\n this.Busy = false;\n this.ControlError = null;\n this.Breakpoints = [];\n this.PausedAtTaskID = null;\n this.EdgeOverrides = {};\n this.Invocation = null;\n this.LatestFrame = null;\n }\n}\n","<div class=\"tgdbg\">\n @if (ShowChrome) {\n <div class=\"tgdbg-chrome\">\n <mj-task-graph-debug-toolbar\n [Paused]=\"Paused\"\n [Busy]=\"Busy\"\n [Settled]=\"IsSettled\"\n [Enabled]=\"Enabled && !Busy\"\n (Pause)=\"Pause()\"\n (Resume)=\"Resume()\"\n (Step)=\"Step('one')\"\n (StepWave)=\"Step('wave')\"\n (Cancel)=\"Cancel()\">\n </mj-task-graph-debug-toolbar>\n @if (ControlError) {\n <mj-alert Variant=\"error\" [Message]=\"ControlError\"></mj-alert>\n }\n </div>\n }\n <div class=\"tgdbg-body\">\n <mj-task-graph-run-view\n [Provider]=\"ProviderToUse\"\n [ParentTaskID]=\"ParentTaskID\"\n [WorkflowName]=\"WorkflowName\"\n [LiveUpdates]=\"LiveUpdates\"\n [PollIntervalSeconds]=\"PollIntervalSeconds\"\n [Height]=\"'100%'\"\n [ShowLegend]=\"ShowLegend\"\n [ShowToolbar]=\"ShowCanvasToolbar\"\n [ToolbarVisibility]=\"ToolbarVisibility\"\n [ToolbarAlign]=\"ToolbarAlign\"\n [LiveFrame]=\"LatestFrame\"\n [ReplayAt]=\"ReplayAt\"\n [Breakpoints]=\"Breakpoints\"\n [PausedAtTaskID]=\"PausedAtTaskID\"\n [GraphPaused]=\"Paused\"\n [EdgeOverrides]=\"EdgeOverrides\"\n [AllowBreakpointEditing]=\"AllowBreakpointEditing\"\n [ShowVariables]=\"ShowVariables\"\n [Invocation]=\"Invocation\"\n (NodeSelected)=\"OnRunNodeSelected($event)\"\n (ConnectionSelected)=\"OnRunConnectionSelected($event)\"\n (LegendToggled)=\"LegendToggled.emit($event)\"\n (Settled)=\"OnRunSettled()\"\n (BreakpointToggled)=\"OnRunBreakpointToggled($event)\"\n [RememberedStepIDs]=\"RememberedStepIDs\"\n [AllowRememberBreakpoints]=\"AllowRememberBreakpoints\"\n (RememberBreakpointToggled)=\"RememberBreakpointToggled.emit($event)\"\n (EdgeOverrideRequested)=\"OnRunEdgeOverride($event)\">\n </mj-task-graph-run-view>\n </div>\n</div>\n"]}
|
|
@@ -170,6 +170,19 @@ export declare class TaskGraphRunViewComponent extends BaseAngularComponent impl
|
|
|
170
170
|
TaskID: string;
|
|
171
171
|
Enabled: boolean;
|
|
172
172
|
}>;
|
|
173
|
+
/**
|
|
174
|
+
* Step IDs the person keeps as breakpoints for future runs of this workflow (#3798). Shown in the step's
|
|
175
|
+
* context menu; empty (and the menu item hidden) unless a host remembers breakpoints.
|
|
176
|
+
*/
|
|
177
|
+
RememberedStepIDs: readonly string[];
|
|
178
|
+
/** Whether the host offers "remember for future runs" at all. */
|
|
179
|
+
AllowRememberBreakpoints: boolean;
|
|
180
|
+
/** Intent only — the host stores the remembered set. */
|
|
181
|
+
RememberBreakpointToggled: EventEmitter<{
|
|
182
|
+
TaskID: string;
|
|
183
|
+
StepID: string;
|
|
184
|
+
Remember: boolean;
|
|
185
|
+
}>;
|
|
173
186
|
/** Intent only — the host owns `OverrideEdge`. */
|
|
174
187
|
EdgeOverrideRequested: EventEmitter<{
|
|
175
188
|
EdgeID: string;
|
|
@@ -234,6 +247,8 @@ export declare class TaskGraphRunViewComponent extends BaseAngularComponent impl
|
|
|
234
247
|
get SelectedTask(): MJTaskEntity | null;
|
|
235
248
|
/** All loaded task step entities for the current parent workflow run. */
|
|
236
249
|
get Tasks(): MJTaskEntity[];
|
|
250
|
+
/** The stable step ID of a task on the canvas, from its `Configuration.stepId`; null for rows submitted before it. */
|
|
251
|
+
StepIDOf(taskID: string): string | null;
|
|
237
252
|
OnToggleSelectedBreakpoint(): void;
|
|
238
253
|
/** Debug attaches here: replace Edit/Remove with breakpoint / path-override items. */
|
|
239
254
|
OnBeforeContextMenu(event: FlowBeforeContextMenuEventArgs): void;
|
|
@@ -287,6 +302,6 @@ export declare class TaskGraphRunViewComponent extends BaseAngularComponent impl
|
|
|
287
302
|
Height: number;
|
|
288
303
|
};
|
|
289
304
|
static ɵfac: i0.ɵɵFactoryDeclaration<TaskGraphRunViewComponent, never>;
|
|
290
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TaskGraphRunViewComponent, "mj-task-graph-run-view", never, { "ParentTaskID": { "alias": "ParentTaskID"; "required": false; }; "WorkflowName": { "alias": "WorkflowName"; "required": false; }; "LiveUpdates": { "alias": "LiveUpdates"; "required": false; }; "PollIntervalSeconds": { "alias": "PollIntervalSeconds"; "required": false; }; "Height": { "alias": "Height"; "required": false; }; "ShowLegend": { "alias": "ShowLegend"; "required": false; }; "ShowToolbar": { "alias": "ShowToolbar"; "required": false; }; "ToolbarVisibility": { "alias": "ToolbarVisibility"; "required": false; }; "ToolbarAlign": { "alias": "ToolbarAlign"; "required": false; }; "LiveFrame": { "alias": "LiveFrame"; "required": false; }; "ReplayAt": { "alias": "ReplayAt"; "required": false; }; "Breakpoints": { "alias": "Breakpoints"; "required": false; }; "PausedAtTaskID": { "alias": "PausedAtTaskID"; "required": false; }; "GraphPaused": { "alias": "GraphPaused"; "required": false; }; "EdgeOverrides": { "alias": "EdgeOverrides"; "required": false; }; "AllowBreakpointEditing": { "alias": "AllowBreakpointEditing"; "required": false; }; "ShowDebugLegend": { "alias": "ShowDebugLegend"; "required": false; }; "ShowVariables": { "alias": "ShowVariables"; "required": false; }; "Invocation": { "alias": "Invocation"; "required": false; }; }, { "NodeSelected": "NodeSelected"; "LegendToggled": "LegendToggled"; "Settled": "Settled"; "ConnectionSelected": "ConnectionSelected"; "BreakpointToggled": "BreakpointToggled"; "EdgeOverrideRequested": "EdgeOverrideRequested"; }, never, never, false, never>;
|
|
305
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TaskGraphRunViewComponent, "mj-task-graph-run-view", never, { "ParentTaskID": { "alias": "ParentTaskID"; "required": false; }; "WorkflowName": { "alias": "WorkflowName"; "required": false; }; "LiveUpdates": { "alias": "LiveUpdates"; "required": false; }; "PollIntervalSeconds": { "alias": "PollIntervalSeconds"; "required": false; }; "Height": { "alias": "Height"; "required": false; }; "ShowLegend": { "alias": "ShowLegend"; "required": false; }; "ShowToolbar": { "alias": "ShowToolbar"; "required": false; }; "ToolbarVisibility": { "alias": "ToolbarVisibility"; "required": false; }; "ToolbarAlign": { "alias": "ToolbarAlign"; "required": false; }; "LiveFrame": { "alias": "LiveFrame"; "required": false; }; "ReplayAt": { "alias": "ReplayAt"; "required": false; }; "Breakpoints": { "alias": "Breakpoints"; "required": false; }; "PausedAtTaskID": { "alias": "PausedAtTaskID"; "required": false; }; "GraphPaused": { "alias": "GraphPaused"; "required": false; }; "EdgeOverrides": { "alias": "EdgeOverrides"; "required": false; }; "AllowBreakpointEditing": { "alias": "AllowBreakpointEditing"; "required": false; }; "ShowDebugLegend": { "alias": "ShowDebugLegend"; "required": false; }; "ShowVariables": { "alias": "ShowVariables"; "required": false; }; "Invocation": { "alias": "Invocation"; "required": false; }; "RememberedStepIDs": { "alias": "RememberedStepIDs"; "required": false; }; "AllowRememberBreakpoints": { "alias": "AllowRememberBreakpoints"; "required": false; }; }, { "NodeSelected": "NodeSelected"; "LegendToggled": "LegendToggled"; "Settled": "Settled"; "ConnectionSelected": "ConnectionSelected"; "BreakpointToggled": "BreakpointToggled"; "RememberBreakpointToggled": "RememberBreakpointToggled"; "EdgeOverrideRequested": "EdgeOverrideRequested"; }, never, never, false, never>;
|
|
291
306
|
}
|
|
292
307
|
//# sourceMappingURL=task-graph-run-view.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-graph-run-view.component.d.ts","sourceRoot":"","sources":["../../src/lib/task-graph-run-view.component.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EAEH,iBAAiB,EAEjB,YAAY,EAGZ,SAAS,EAEZ,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAGrE,OAAO,EAAE,YAAY,EAA0C,MAAM,+BAA+B,CAAC;AAErG,OAAO,EAA0B,KAAK,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AACxF,OAAO,EAKH,KAAK,iBAAiB,EACtB,KAAK,aAAa,EACrB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,KAAK,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACjG,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"task-graph-run-view.component.d.ts","sourceRoot":"","sources":["../../src/lib/task-graph-run-view.component.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EAEH,iBAAiB,EAEjB,YAAY,EAGZ,SAAS,EAEZ,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAGrE,OAAO,EAAE,YAAY,EAA0C,MAAM,+BAA+B,CAAC;AAErG,OAAO,EAA0B,KAAK,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AACxF,OAAO,EAKH,KAAK,iBAAiB,EACtB,KAAK,aAAa,EACrB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,KAAK,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACjG,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,4BAA4B,CAAC;AAErF,OAAO,KAAK,EACR,mCAAmC,EACnC,8BAA8B,EAC9B,cAAc,EACd,gBAAgB,EAChB,qBAAqB,EACxB,MAAM,gCAAgC,CAAC;;AAExC,uDAAuD;AACvD,MAAM,MAAM,6BAA6B,GAAG;IACxC,8BAA8B;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,YAAY,GAAG,IAAI,CAAC;CAC7B,CAAC;AAEF,uDAAuD;AACvD,MAAM,MAAM,mCAAmC,GAAG;IAC9C,2EAA2E;IAC3E,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,M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E;IAC3E,OAAO,CAAC,QAAQ;IAahB;;;;;;;OAOG;IACH,OAAO,CAAC,gBAAgB;IAgBxB,OAAO,CAAC,SAAS;IAIjB;;;;;;;;OAQG;IACH,OAAO,CAAC,SAAS;IA0CjB,iEAAiE;IACjE,OAAO,CAAC,mBAAmB;IAQ3B,OAAO,CAAC,YAAY;IAIpB,OAAO,CAAC,WAAW;IAOnB,OAAO,CAAC,IAAI;IAMZ,yFAAyF;IACzF,IAAW,WAAW,IAAI;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAG1D;yCA3qBQ,yBAAyB;2CAAzB,yBAAyB;CA4qBrC"}
|
|
@@ -25,6 +25,7 @@ import { ToPaneSizePair } from './pane-split';
|
|
|
25
25
|
import { TaskGraphRunPrefsStore } from './task-graph-run-prefs';
|
|
26
26
|
import { GraphLayoutBounds, LayoutGraphNodes, ProjectTaskRowsToSpec, } from '@memberjunction/ai-core-plus';
|
|
27
27
|
import { BuildRuntimeStatus, IsRuntimeSettled, NormalizeRuntimeState } from './task-graph-runtime-source';
|
|
28
|
+
import { StepIDOfTask } from './remembered-breakpoints';
|
|
28
29
|
import * as i0 from "@angular/core";
|
|
29
30
|
import * as i1 from "@memberjunction/ng-ui-components";
|
|
30
31
|
import * as i2 from "angular-split";
|
|
@@ -344,6 +345,15 @@ export class TaskGraphRunViewComponent extends BaseAngularComponent {
|
|
|
344
345
|
ConnectionSelected = new EventEmitter();
|
|
345
346
|
/** Intent only — the host owns `SetBreakpoints`. */
|
|
346
347
|
BreakpointToggled = new EventEmitter();
|
|
348
|
+
/**
|
|
349
|
+
* Step IDs the person keeps as breakpoints for future runs of this workflow (#3798). Shown in the step's
|
|
350
|
+
* context menu; empty (and the menu item hidden) unless a host remembers breakpoints.
|
|
351
|
+
*/
|
|
352
|
+
RememberedStepIDs = [];
|
|
353
|
+
/** Whether the host offers "remember for future runs" at all. */
|
|
354
|
+
AllowRememberBreakpoints = false;
|
|
355
|
+
/** Intent only — the host stores the remembered set. */
|
|
356
|
+
RememberBreakpointToggled = new EventEmitter();
|
|
347
357
|
/** Intent only — the host owns `OverrideEdge`. */
|
|
348
358
|
EdgeOverrideRequested = new EventEmitter();
|
|
349
359
|
/** What each running step says it is doing, from `NodeProgress` frames. Keyed by task row id. */
|
|
@@ -502,6 +512,10 @@ export class TaskGraphRunViewComponent extends BaseAngularComponent {
|
|
|
502
512
|
get Tasks() {
|
|
503
513
|
return [...this.taskByID.values()];
|
|
504
514
|
}
|
|
515
|
+
/** The stable step ID of a task on the canvas, from its `Configuration.stepId`; null for rows submitted before it. */
|
|
516
|
+
StepIDOf(taskID) {
|
|
517
|
+
return StepIDOfTask(this.taskByID.get(taskID)?.Configuration);
|
|
518
|
+
}
|
|
505
519
|
OnToggleSelectedBreakpoint() {
|
|
506
520
|
if (!this.AllowBreakpointEditing || !this.SelectedTaskID)
|
|
507
521
|
return;
|
|
@@ -524,6 +538,15 @@ export class TaskGraphRunViewComponent extends BaseAngularComponent {
|
|
|
524
538
|
Icon: 'fa-circle',
|
|
525
539
|
Shortcut: 'F9',
|
|
526
540
|
}];
|
|
541
|
+
const stepID = this.AllowRememberBreakpoints ? this.StepIDOf(event.Node.ID) : null;
|
|
542
|
+
if (stepID) {
|
|
543
|
+
const remembered = this.RememberedStepIDs.includes(stepID);
|
|
544
|
+
event.Items.push({
|
|
545
|
+
ID: 'toggle-remember-breakpoint',
|
|
546
|
+
Label: remembered ? 'Stop Remembering Breakpoint' : 'Remember Breakpoint for Future Runs',
|
|
547
|
+
Icon: remembered ? 'fa-bookmark' : 'fa-regular fa-bookmark',
|
|
548
|
+
});
|
|
549
|
+
}
|
|
527
550
|
return;
|
|
528
551
|
}
|
|
529
552
|
if (event.Target === 'connection' && event.Connection?.Condition?.trim()) {
|
|
@@ -551,6 +574,17 @@ export class TaskGraphRunViewComponent extends BaseAngularComponent {
|
|
|
551
574
|
});
|
|
552
575
|
return;
|
|
553
576
|
}
|
|
577
|
+
if (event.ActionID === 'toggle-remember-breakpoint' && event.Node) {
|
|
578
|
+
const stepID = this.StepIDOf(event.Node.ID);
|
|
579
|
+
if (stepID) {
|
|
580
|
+
this.RememberBreakpointToggled.emit({
|
|
581
|
+
TaskID: event.Node.ID,
|
|
582
|
+
StepID: stepID,
|
|
583
|
+
Remember: !this.RememberedStepIDs.includes(stepID),
|
|
584
|
+
});
|
|
585
|
+
}
|
|
586
|
+
return;
|
|
587
|
+
}
|
|
554
588
|
const edgeID = typeof event.Connection?.Data?.['EdgeID'] === 'string'
|
|
555
589
|
? event.Connection.Data['EdgeID']
|
|
556
590
|
: null;
|
|
@@ -808,7 +842,7 @@ export class TaskGraphRunViewComponent extends BaseAngularComponent {
|
|
|
808
842
|
static ɵfac = function TaskGraphRunViewComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TaskGraphRunViewComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
809
843
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TaskGraphRunViewComponent, selectors: [["mj-task-graph-run-view"]], hostBindings: function TaskGraphRunViewComponent_HostBindings(rf, ctx) { if (rf & 1) {
|
|
810
844
|
i0.ɵɵlistener("keydown", function TaskGraphRunViewComponent_keydown_HostBindingHandler($event) { return ctx.OnDebugHotkey($event); }, i0.ɵɵresolveDocument);
|
|
811
|
-
} }, inputs: { ParentTaskID: "ParentTaskID", WorkflowName: "WorkflowName", LiveUpdates: "LiveUpdates", PollIntervalSeconds: "PollIntervalSeconds", Height: "Height", ShowLegend: "ShowLegend", ShowToolbar: "ShowToolbar", ToolbarVisibility: "ToolbarVisibility", ToolbarAlign: "ToolbarAlign", LiveFrame: "LiveFrame", ReplayAt: "ReplayAt", Breakpoints: "Breakpoints", PausedAtTaskID: "PausedAtTaskID", GraphPaused: "GraphPaused", EdgeOverrides: "EdgeOverrides", AllowBreakpointEditing: "AllowBreakpointEditing", ShowDebugLegend: "ShowDebugLegend", ShowVariables: "ShowVariables", Invocation: "Invocation" }, outputs: { NodeSelected: "NodeSelected", LegendToggled: "LegendToggled", Settled: "Settled", ConnectionSelected: "ConnectionSelected", BreakpointToggled: "BreakpointToggled", EdgeOverrideRequested: "EdgeOverrideRequested" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 4, vars: 1, consts: [["Variant", "error", 3, "Message"], [1, "run-view-loading"], ["Icon", "fa-solid fa-diagram-project", "Title", "No steps yet", "Message", "This workflow has not created any steps."], [1, "run-view", 3, "height"], [1, "run-view"], [1, "run-view-summary"], [1, "run-view-count"], [1, "run-view-skipped"], [1, "run-view-done"], [1, "run-view-waiting"], [1, "run-view-running"], [1, "run-view-body"], ["type", "button", "title", "Show step inputs and outputs", "aria-label", "Show step inputs and outputs", 1, "run-view-vars-rail"], ["direction", "horizontal", "unit", "percent", 1, "run-view-split", 3, "dragEnd", "gutterSize"], [3, "size", "minSize", "visible"], [1, "run-view-vars"], [1, "run-view-vars-bar"], [1, "run-view-vars-title"], ["type", "button", "title", "Minimize", "aria-label", "Minimize invocation and output", 1, "run-view-vars-min", 3, "click"], ["aria-hidden", "true", 1, "fa-solid", "fa-chevron-left"], ["role", "status", 1, "run-view-vars-error"], [3, "TaskID", "InputPayload", "OutputPayload", "Invocation"], [3, "size", "minSize"], [1, "run-view-canvas"], [3, "SelectionChanged", "ConnectionSelected", "LegendToggled", "BeforeContextMenu", "AfterContextMenuAction", "Spec", "RuntimeStatus", "NodePositions", "DebugOverlay", "ReadOnly", "ShowToolbar", "ToolbarVisibility", "ToolbarAlign", "ShowPalette", "ShowProperties", "ShowMinimap", "ShowStatusBar", "ShowLegend"], ["type", "button", 1, "run-view-bp", 3, "click", "title"], ["aria-hidden", "true", 1, "fa-circle"], [1, "run-view-bp-name"], ["type", "button", "title", "Show step inputs and outputs", "aria-label", "Show step inputs and outputs", 1, "run-view-vars-rail", 3, "click"], ["aria-hidden", "true", 1, "fa-solid", "fa-code"], [1, "run-view-vars-step-name", 3, "title"], [1, "run-view-vars-status"], ["aria-hidden", "true", 1, "fa-solid", "fa-triangle-exclamation"]], template: function TaskGraphRunViewComponent_Template(rf, ctx) { if (rf & 1) {
|
|
845
|
+
} }, inputs: { ParentTaskID: "ParentTaskID", WorkflowName: "WorkflowName", LiveUpdates: "LiveUpdates", PollIntervalSeconds: "PollIntervalSeconds", Height: "Height", ShowLegend: "ShowLegend", ShowToolbar: "ShowToolbar", ToolbarVisibility: "ToolbarVisibility", ToolbarAlign: "ToolbarAlign", LiveFrame: "LiveFrame", ReplayAt: "ReplayAt", Breakpoints: "Breakpoints", PausedAtTaskID: "PausedAtTaskID", GraphPaused: "GraphPaused", EdgeOverrides: "EdgeOverrides", AllowBreakpointEditing: "AllowBreakpointEditing", ShowDebugLegend: "ShowDebugLegend", ShowVariables: "ShowVariables", Invocation: "Invocation", RememberedStepIDs: "RememberedStepIDs", AllowRememberBreakpoints: "AllowRememberBreakpoints" }, outputs: { NodeSelected: "NodeSelected", LegendToggled: "LegendToggled", Settled: "Settled", ConnectionSelected: "ConnectionSelected", BreakpointToggled: "BreakpointToggled", RememberBreakpointToggled: "RememberBreakpointToggled", EdgeOverrideRequested: "EdgeOverrideRequested" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 4, vars: 1, consts: [["Variant", "error", 3, "Message"], [1, "run-view-loading"], ["Icon", "fa-solid fa-diagram-project", "Title", "No steps yet", "Message", "This workflow has not created any steps."], [1, "run-view", 3, "height"], [1, "run-view"], [1, "run-view-summary"], [1, "run-view-count"], [1, "run-view-skipped"], [1, "run-view-done"], [1, "run-view-waiting"], [1, "run-view-running"], [1, "run-view-body"], ["type", "button", "title", "Show step inputs and outputs", "aria-label", "Show step inputs and outputs", 1, "run-view-vars-rail"], ["direction", "horizontal", "unit", "percent", 1, "run-view-split", 3, "dragEnd", "gutterSize"], [3, "size", "minSize", "visible"], [1, "run-view-vars"], [1, "run-view-vars-bar"], [1, "run-view-vars-title"], ["type", "button", "title", "Minimize", "aria-label", "Minimize invocation and output", 1, "run-view-vars-min", 3, "click"], ["aria-hidden", "true", 1, "fa-solid", "fa-chevron-left"], ["role", "status", 1, "run-view-vars-error"], [3, "TaskID", "InputPayload", "OutputPayload", "Invocation"], [3, "size", "minSize"], [1, "run-view-canvas"], [3, "SelectionChanged", "ConnectionSelected", "LegendToggled", "BeforeContextMenu", "AfterContextMenuAction", "Spec", "RuntimeStatus", "NodePositions", "DebugOverlay", "ReadOnly", "ShowToolbar", "ToolbarVisibility", "ToolbarAlign", "ShowPalette", "ShowProperties", "ShowMinimap", "ShowStatusBar", "ShowLegend"], ["type", "button", 1, "run-view-bp", 3, "click", "title"], ["aria-hidden", "true", 1, "fa-circle"], [1, "run-view-bp-name"], ["type", "button", "title", "Show step inputs and outputs", "aria-label", "Show step inputs and outputs", 1, "run-view-vars-rail", 3, "click"], ["aria-hidden", "true", 1, "fa-solid", "fa-code"], [1, "run-view-vars-step-name", 3, "title"], [1, "run-view-vars-status"], ["aria-hidden", "true", 1, "fa-solid", "fa-triangle-exclamation"]], template: function TaskGraphRunViewComponent_Template(rf, ctx) { if (rf & 1) {
|
|
812
846
|
i0.ɵɵconditionalCreate(0, TaskGraphRunViewComponent_Conditional_0_Template, 1, 1, "mj-alert", 0)(1, TaskGraphRunViewComponent_Conditional_1_Template, 2, 0, "div", 1)(2, TaskGraphRunViewComponent_Conditional_2_Template, 1, 0, "mj-empty-state", 2)(3, TaskGraphRunViewComponent_Conditional_3_Template, 25, 33, "div", 3);
|
|
813
847
|
} if (rf & 2) {
|
|
814
848
|
i0.ɵɵconditional(ctx.ErrorMessage ? 0 : ctx.IsLoading ? 1 : !ctx.Spec || ctx.Spec.tasks.length === 0 ? 2 : 3);
|
|
@@ -865,13 +899,19 @@ export class TaskGraphRunViewComponent extends BaseAngularComponent {
|
|
|
865
899
|
type: Output
|
|
866
900
|
}], BreakpointToggled: [{
|
|
867
901
|
type: Output
|
|
902
|
+
}], RememberedStepIDs: [{
|
|
903
|
+
type: Input
|
|
904
|
+
}], AllowRememberBreakpoints: [{
|
|
905
|
+
type: Input
|
|
906
|
+
}], RememberBreakpointToggled: [{
|
|
907
|
+
type: Output
|
|
868
908
|
}], EdgeOverrideRequested: [{
|
|
869
909
|
type: Output
|
|
870
910
|
}], OnDebugHotkey: [{
|
|
871
911
|
type: HostListener,
|
|
872
912
|
args: ['document:keydown', ['$event']]
|
|
873
913
|
}] }); })();
|
|
874
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TaskGraphRunViewComponent, { className: "TaskGraphRunViewComponent", filePath: "src/lib/task-graph-run-view.component.ts", lineNumber:
|
|
914
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TaskGraphRunViewComponent, { className: "TaskGraphRunViewComponent", filePath: "src/lib/task-graph-run-view.component.ts", lineNumber: 109 }); })();
|
|
875
915
|
function isTypingTarget(target) {
|
|
876
916
|
if (!(target instanceof HTMLElement))
|
|
877
917
|
return false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-graph-run-view.component.js","sourceRoot":"","sources":["../../src/lib/task-graph-run-view.component.ts","../../src/lib/task-graph-run-view.component.html"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EACH,uBAAuB,EAEvB,SAAS,EACT,YAAY,EACZ,YAAY,EACZ,KAAK,EAEL,MAAM,GACT,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAwC,cAAc,EAAE,MAAM,+BAA+B,CAAC;AACrG,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,sBAAsB,EAA0B,MAAM,wBAAwB,CAAC;AACxF,OA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AC,CAAC,MAAM,YAAY,WAAW,CAAC;QAAE,OAAO,KAAK,CAAC;IACnD,MAAM,GAAG,GAAG,MAAM,CAAC,OAAO,CAAC;IAC3B,OAAO,GAAG,KAAK,OAAO,IAAI,GAAG,KAAK,UAAU,IAAI,GAAG,KAAK,QAAQ,IAAI,MAAM,CAAC,iBAAiB,CAAC;AACjG,CAAC","sourcesContent":["/**\n * @fileoverview Watching a graph that is running, on the canvas its author drew on.\n *\n * **Why this is a component and not three.** A run needs rendering in at least three places — inside\n * an Agent Run, inside the test harness, and on a standalone workflow-runs screen — and every one of\n * them wants the identical thing: the graph, with live status, laid out legibly, with a node you can\n * click. Three implementations would be three chances to render the same run differently, and the\n * one that matters most (is that branch grey because it was *not taken*, or because it *broke*?) is\n * exactly the distinction a second implementation gets wrong.\n *\n * **What it owns and what it doesn't.** It owns data acquisition — reading `MJ: Tasks` and\n * `MJ: Task Dependencies` through the host's provider — and geometry. It does not navigate: a\n * widgets-layer component cannot know whether it sits inside Explorer, so selecting a node emits an\n * event and the host decides what \"open the agent run\" means. That boundary is the whole reason\n * this can live beside the editor rather than in Explorer.\n *\n * @module @memberjunction/ng-task-graph-editor\n */\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n EventEmitter,\n HostListener,\n Input,\n OnDestroy,\n Output,\n} from '@angular/core';\nimport { BaseAngularComponent } from '@memberjunction/ng-base-types';\nimport { LogError, RunView } from '@memberjunction/core';\nimport { UUIDsEqual } from '@memberjunction/global';\nimport { MJTaskEntity, MJTaskDependencyEntity, UserInfoEngine } from '@memberjunction/core-entities';\nimport { ToPaneSizePair } from './pane-split';\nimport { TaskGraphRunPrefsStore, type TaskGraphRunPrefs } from './task-graph-run-prefs';\nimport {\n GraphLayoutBounds,\n LayoutGraphNodes,\n ProjectTaskRowsToSpec,\n type GraphLayoutEdge,\n type GraphNodePosition,\n type TaskGraphSpec,\n} from '@memberjunction/ai-core-plus';\nimport { BuildRuntimeStatus, IsRuntimeSettled, NormalizeRuntimeState } from './task-graph-runtime-source';\nimport type { TaskGraphDebugOverlay, TaskGraphRuntimeStatus } from './task-graph-canvas-adapter';\nimport type { TaskGraphSelectionChangedEventArgs } from './task-graph-editor-events';\nimport type {\n FlowAfterContextMenuActionEventArgs,\n FlowBeforeContextMenuEventArgs,\n FlowConnection,\n FlowToolbarAlign,\n FlowToolbarVisibility,\n} from '@memberjunction/ng-flow-editor';\n\n/** What the host learns when someone clicks a step. */\nexport type TaskGraphRunNodeSelectedEvent = {\n /** The `MJ: Tasks` row id. */\n TaskID: string;\n Task: MJTaskEntity | null;\n};\n\n/** What the host learns when someone clicks a path. */\nexport type TaskGraphRunConnectionSelectedEvent = {\n /** The `MJ: Task Dependencies` row id, when the projection carried one. */\n EdgeID: string | null;\n FromTaskID: string;\n ToTaskID: string;\n Condition?: string;\n};\n\n/**\n * One live dispatcher frame, as the HOST hands it in.\n *\n * Structural on purpose: the widget must not import the transport (`GraphQLDataProvider`'s\n * `TaskGraphFrameEvent` satisfies this shape as-is), and the host owns the subscription — this\n * component only renders what it is handed, which is the widgets-layer rule that keeps it embeddable\n * anywhere. Fields beyond these are ignored, so a newer server cannot break an older widget.\n */\nexport type TaskGraphRunFrame = {\n kind: string;\n taskId?: string;\n taskName?: string;\n status?: string;\n progressMessage?: string;\n progressPercent?: number;\n reason?: string;\n edgeId?: string;\n dependsOnTaskId?: string;\n conditionText?: string;\n claimEvent?: string;\n claimedBy?: string;\n verdict?: string;\n passNumber?: number;\n eligibleCount?: number;\n heldCount?: number;\n claimedCount?: number;\n};\n\n/** Statuses at which a graph has stopped moving, so polling can stop with it. */\nconst SETTLED = new Set<MJTaskEntity['Status']>(['Complete', 'Failed', 'Cancelled', 'Skipped']);\n\n@Component({\n standalone: false,\n selector: 'mj-task-graph-run-view',\n templateUrl: './task-graph-run-view.component.html',\n styleUrls: ['./task-graph-run-view.component.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TaskGraphRunViewComponent extends BaseAngularComponent implements OnDestroy {\n /**\n * The graph to watch — the parent `MJ: Tasks` row that represents it.\n *\n * Setter-based rather than `ngOnChanges`, matching the editor beside it: the reaction is\n * explicit and costs nothing on unrelated change-detection passes.\n */\n @Input()\n public set ParentTaskID(value: string | null) {\n if (value === this.parentTaskID) return;\n this.parentTaskID = value;\n this.settledEmitted = false;\n this.SelectedTaskID = null;\n this.LiveActivity.clear();\n void this.load();\n }\n public get ParentTaskID(): string | null {\n return this.parentTaskID;\n }\n\n /** Name shown on the compiled graph. Purely cosmetic; the rows carry the truth. */\n @Input() public WorkflowName: string = 'Workflow';\n\n /**\n * Keep re-reading while the graph is still moving.\n *\n * Off by default: most hosts show a finished run, and a component that polls by default would\n * have every historical run quietly issuing queries forever.\n */\n @Input() public LiveUpdates: boolean = false;\n\n /** How often to re-read while live. Seconds, not milliseconds — this is a human-scale view. */\n @Input() public PollIntervalSeconds: number = 3;\n\n /** Height of the canvas. Hosts embed this in very different amounts of space. */\n @Input() public Height: string = '320px';\n\n /**\n * Whether the canvas legend shows. **Off by default here**, unlike the editor.\n *\n * The legend explains the authoring vocabulary — what a conditional edge means, what a duplicate\n * default looks like. That is what someone drawing a graph needs. A run view answers a different\n * question, \"what happened\", which the legend helps with not at all while covering a corner of\n * the canvas the graph is usually occupying.\n */\n @Input() public ShowLegend: boolean = false;\n\n /**\n * Whether the canvas toolbar rides above the graph.\n *\n * Debug and other run hosts leave this on and set `ToolbarVisibility` to `minimized` so the\n * graph is the picture, not a floating tool strip. The chip in the corner restores the bar.\n */\n @Input() public ShowToolbar: boolean = true;\n @Input() public ToolbarVisibility: FlowToolbarVisibility = 'minimized';\n @Input() public ToolbarAlign: FlowToolbarAlign = 'left';\n\n /**\n * The latest live dispatcher frame, handed in by the host.\n *\n * The host owns the subscription (`GraphQLDataProvider.TaskGraphFrames` or anything shaped like\n * it) and binds each arrival here; the widget folds it into the overlay. Frames are advisory —\n * a task frame patches the node's status in place for sub-second feedback, and the frames that\n * imply CASCADES (a skip, a block, settlement) trigger a debounced row reload, because the\n * dispatcher's propagation writes rows this component cannot infer from one frame. Rows remain\n * the truth; the existing poll (if enabled) remains the safety net.\n */\n @Input()\n public set LiveFrame(frame: TaskGraphRunFrame | null) {\n if (!frame) return;\n this.foldFrame(frame);\n }\n\n /**\n * Replay: render the run as it stood at this moment, reconstructed from each step's\n * `StartedAt`/`CompletedAt`. Null (the default) renders the present. A step that had not\n * started reads Pending; one mid-flight reads In Progress; one already finished reads its\n * final status — the same three answers the rows would have given a viewer at that time.\n */\n @Input()\n public set ReplayAt(value: Date | null) {\n if (value?.getTime() === this.replayAt?.getTime()) return;\n this.replayAt = value;\n this.applyReplay();\n }\n public get ReplayAt(): Date | null {\n return this.replayAt;\n }\n\n /**\n * Armed breakpoint task IDs, from the parent row's `$.debug.breakpoints`. Empty by default so\n * embeds (agent-run timeline, test harness) never grow debugger chrome they did not ask for.\n */\n @Input()\n public set Breakpoints(value: readonly string[]) {\n this.breakpoints = value ?? [];\n this.rebuildOverlay();\n }\n public get Breakpoints(): readonly string[] {\n return this.breakpoints;\n }\n /** The step a breakpoint actually stopped on. */\n @Input()\n public set PausedAtTaskID(value: string | null) {\n this.pausedAtTaskID = value;\n if (value) this.SelectedTaskID = value;\n this.rebuildOverlay();\n }\n public get PausedAtTaskID(): string | null {\n return this.pausedAtTaskID;\n }\n /**\n * The graph is claim-gated. Combined with `PausedAtTaskID` so start-paused (no specific\n * step yet) can still light the entry node as waiting.\n */\n @Input()\n public set GraphPaused(value: boolean) {\n this.graphPaused = value;\n this.rebuildOverlay();\n }\n public get GraphPaused(): boolean {\n return this.graphPaused;\n }\n /** Operator-forced edge verdicts, keyed by `MJ: Task Dependencies` row ID. */\n @Input()\n public set EdgeOverrides(value: Readonly<Record<string, 'true' | 'false'>>) {\n this.edgeOverrides = value ?? {};\n this.rebuildOverlay();\n }\n public get EdgeOverrides(): Readonly<Record<string, 'true' | 'false'>> {\n return this.edgeOverrides;\n }\n /**\n * Whether this host may arm/disarm breakpoints from the selected-step control.\n * Off by default — the run view also renders where those controls would be wrong.\n */\n @Input() public AllowBreakpointEditing: boolean = false;\n /** Compact debug key under the summary line. Off unless the host is a debugger. */\n @Input() public ShowDebugLegend: boolean = false;\n /** Step Inputs & Outputs (VARIABLES) inspector pane to the left of the canvas. Enabled by default across all task graph views. */\n @Input() public ShowVariables: boolean = true;\n /** The parent bag's `data` / `context` roots, for the Invocation scope. */\n @Input() public Invocation: { data?: unknown; context?: unknown } | null = null;\n\n @Output() public NodeSelected = new EventEmitter<TaskGraphRunNodeSelectedEvent>();\n /** The legend was toggled from the toolbar, so a host can remember the choice. */\n @Output() public LegendToggled = new EventEmitter<boolean>();\n /** Emitted once, when every step has reached a terminal status. */\n @Output() public Settled = new EventEmitter<void>();\n /** A connection was clicked. `EdgeID` is the dependency row id when the projection carried one. */\n @Output() public ConnectionSelected = new EventEmitter<TaskGraphRunConnectionSelectedEvent>();\n /** Intent only — the host owns `SetBreakpoints`. */\n @Output() public BreakpointToggled = new EventEmitter<{ TaskID: string; Enabled: boolean }>();\n /** Intent only — the host owns `OverrideEdge`. */\n @Output() public EdgeOverrideRequested = new EventEmitter<{\n EdgeID: string;\n Verdict: 'true' | 'false' | null;\n }>();\n\n /** What each running step says it is doing, from `NodeProgress` frames. Keyed by task row id. */\n public LiveActivity = new Map<string, { Message: string; Percent?: number }>();\n\n /** The last step the person selected, so the breakpoint control has a target. */\n public SelectedTaskID: string | null = null;\n /** Stable overlay object — rebuilt only when debug inputs change, so the editor does not re-project every CD cycle. */\n public Overlay: TaskGraphDebugOverlay = { showConditions: true };\n\n private breakpoints: readonly string[] = [];\n private pausedAtTaskID: string | null = null;\n private graphPaused = false;\n private edgeOverrides: Readonly<Record<string, 'true' | 'false'>> = {};\n /** `Settled` is once-per-parent — a finished poll must not re-fire the host. */\n private settledEmitted = false;\n\n /** Left data pane + split sizes. One JSON bag in `MJ: User Settings`. */\n public get Prefs(): TaskGraphRunPrefs {\n return this.prefsStore.Value;\n }\n private prefsStore = new TaskGraphRunPrefsStore({\n Get: () => undefined,\n Set: () => { /* unit tests / pre-bootstrap */ },\n });\n\n public Spec: TaskGraphSpec | null = null;\n public RuntimeStatus: TaskGraphRuntimeStatus | null = null;\n public Positions: Map<string, GraphNodePosition> = new Map();\n public IsLoading = false;\n public ErrorMessage: string | null = null;\n\n /** Rows by id, so a selection event can hand the host the whole task rather than an id. */\n private taskByID = new Map<string, MJTaskEntity>();\n private parentTaskID: string | null = null;\n private replayAt: Date | null = null;\n private pollTimer: ReturnType<typeof setTimeout> | null = null;\n private frameReloadTimer: ReturnType<typeof setTimeout> | null = null;\n private destroyed = false;\n\n constructor(private cdr: ChangeDetectorRef) {\n super();\n try {\n this.prefsStore = new TaskGraphRunPrefsStore({\n Get: (key) => UserInfoEngine.Instance.GetSetting(key),\n Set: (key, value) => UserInfoEngine.Instance.SetSettingDebounced(key, value),\n });\n this.prefsStore.Restore();\n } catch {\n // Engine not configured yet (unit tests, pre-bootstrap) — keep the default.\n }\n }\n\n public get InvocationPaneOpen(): boolean {\n return this.ShowVariables && this.Prefs.InvocationOpen;\n }\n\n public get InvocationPaneSize(): number {\n return this.InvocationPaneOpen ? this.Prefs.InvocationSplit[0] : 0;\n }\n\n public get CanvasPaneSize(): number {\n return this.InvocationPaneOpen ? this.Prefs.InvocationSplit[1] : 100;\n }\n\n public OnToggleInvocation(): void {\n this.prefsStore.SetInvocationOpen(!this.Prefs.InvocationOpen);\n this.cdr.markForCheck();\n }\n\n public OnInvocationSplitDragEnd(sizes: readonly (number | '*')[]): void {\n const pair = ToPaneSizePair(sizes);\n if (!pair) return;\n this.prefsStore.SetInvocationSplit(pair);\n this.cdr.markForCheck();\n }\n\n public ngOnDestroy(): void {\n this.destroyed = true;\n this.stopPolling();\n if (this.frameReloadTimer) {\n clearTimeout(this.frameReloadTimer);\n this.frameReloadTimer = null;\n }\n }\n\n /** Steps in a terminal state, for the host's summary line. Uses the same map the canvas paints. */\n public get CompletedCount(): number {\n return this.countRuntime('Complete');\n }\n\n public get TotalCount(): number {\n return this.Spec?.tasks.length ?? this.taskByID.size;\n }\n\n public get SkippedCount(): number {\n return this.countRuntime('Skipped');\n }\n\n public get RunningCount(): number {\n return this.countRuntime('In Progress');\n }\n\n public get IsSettled(): boolean {\n if (!this.Spec || this.Spec.tasks.length === 0) return false;\n return IsRuntimeSettled(this.RuntimeStatus ?? {}, this.Spec.tasks.map((t) => t.tempId));\n }\n\n /**\n * A node was selected on the canvas.\n *\n * The projected `tempId` IS the task id, so the row lookup is exact — and handing the host the\n * whole task rather than an id spares every host from re-reading a row this component already\n * holds.\n */\n public OnSelectionChanged(args: TaskGraphSelectionChangedEventArgs): void {\n const tempId = args?.Task?.tempId;\n if (!tempId) return;\n this.SelectedTaskID = tempId;\n if (this.ShowVariables && !this.Prefs.InvocationOpen) {\n this.prefsStore.SetInvocationOpen(true);\n }\n this.NodeSelected.emit({ TaskID: tempId, Task: this.taskByID.get(tempId) ?? null });\n this.cdr.markForCheck();\n }\n\n public OnConnectionSelected(connection: FlowConnection | null): void {\n if (!connection) {\n this.ConnectionSelected.emit({ EdgeID: null, FromTaskID: '', ToTaskID: '' });\n return;\n }\n const data = connection.Data ?? {};\n const edgeID = typeof data['EdgeID'] === 'string' ? data['EdgeID'] : null;\n const from = typeof data['FromTempId'] === 'string' ? data['FromTempId'] : connection.SourceNodeID;\n const to = typeof data['ToTempId'] === 'string' ? data['ToTempId'] : connection.TargetNodeID;\n this.ConnectionSelected.emit({\n EdgeID: edgeID,\n FromTaskID: from,\n ToTaskID: to,\n Condition: connection.Condition,\n });\n }\n\n private countRuntime(state: TaskGraphRuntimeStatus[string]): number {\n if (!this.RuntimeStatus) {\n return [...this.taskByID.values()].filter((t) => NormalizeRuntimeState(t.Status) === state).length;\n }\n return Object.values(this.RuntimeStatus).filter((s) => s === state).length;\n }\n\n public get HasSelectedBreakpoint(): boolean {\n return !!this.SelectedTaskID && this.hasBreakpoint(this.SelectedTaskID);\n }\n\n public get SelectedTaskName(): string {\n if (!this.SelectedTaskID) return '';\n return this.taskByID.get(this.SelectedTaskID)?.Name ?? 'this step';\n }\n\n public get WaitingStepName(): string {\n if (this.pausedAtTaskID) {\n return this.taskByID.get(this.pausedAtTaskID)?.Name\n ?? this.Spec?.tasks.find((t) => t.tempId === this.pausedAtTaskID)?.name\n ?? 'this step';\n }\n const entry = this.Spec?.tasks.find((t) => (t.dependsOn?.length ?? 0) === 0);\n return entry?.name ?? 'the first step';\n }\n\n public get SelectedTask(): MJTaskEntity | null {\n return this.SelectedTaskID ? this.taskByID.get(this.SelectedTaskID) ?? null : null;\n }\n\n /** All loaded task step entities for the current parent workflow run. */\n public get Tasks(): MJTaskEntity[] {\n return [...this.taskByID.values()];\n }\n\n public OnToggleSelectedBreakpoint(): void {\n if (!this.AllowBreakpointEditing || !this.SelectedTaskID) return;\n this.BreakpointToggled.emit({\n TaskID: this.SelectedTaskID,\n Enabled: !this.HasSelectedBreakpoint,\n });\n }\n\n /** Debug attaches here: replace Edit/Remove with breakpoint / path-override items. */\n public OnBeforeContextMenu(event: FlowBeforeContextMenuEventArgs): void {\n if (!this.AllowBreakpointEditing) {\n event.Cancel = true;\n return;\n }\n if (event.Target === 'node' && event.Node) {\n const on = this.hasBreakpoint(event.Node.ID);\n event.Items = [{\n ID: 'toggle-breakpoint',\n Label: on ? 'Remove Breakpoint' : 'Add Breakpoint',\n Icon: 'fa-circle',\n Shortcut: 'F9',\n }];\n return;\n }\n if (event.Target === 'connection' && event.Connection?.Condition?.trim()) {\n const edgeID = typeof event.Connection.Data?.['EdgeID'] === 'string'\n ? event.Connection.Data['EdgeID']\n : null;\n if (!edgeID) {\n event.Cancel = true;\n return;\n }\n event.Items = [\n { ID: 'force-true', Label: 'Take this path', Icon: 'fa-check' },\n { ID: 'force-false', Label: 'Skip this path', Icon: 'fa-xmark' },\n { ID: 'force-clear', Label: 'Clear override', Icon: 'fa-rotate-left' },\n ];\n return;\n }\n event.Cancel = true;\n }\n\n public OnAfterContextMenuAction(event: FlowAfterContextMenuActionEventArgs): void {\n if (event.ActionID === 'toggle-breakpoint' && event.Node) {\n this.BreakpointToggled.emit({\n TaskID: event.Node.ID,\n Enabled: !this.hasBreakpoint(event.Node.ID),\n });\n return;\n }\n const edgeID = typeof event.Connection?.Data?.['EdgeID'] === 'string'\n ? event.Connection.Data['EdgeID']\n : null;\n if (!edgeID) return;\n if (event.ActionID === 'force-true') this.EdgeOverrideRequested.emit({ EdgeID: edgeID, Verdict: 'true' });\n if (event.ActionID === 'force-false') this.EdgeOverrideRequested.emit({ EdgeID: edgeID, Verdict: 'false' });\n if (event.ActionID === 'force-clear') this.EdgeOverrideRequested.emit({ EdgeID: edgeID, Verdict: null });\n }\n\n private hasBreakpoint(taskID: string): boolean {\n return this.breakpoints.some((id) => UUIDsEqual(id, taskID));\n }\n\n @HostListener('document:keydown', ['$event'])\n public OnDebugHotkey(event: KeyboardEvent): void {\n if (!this.AllowBreakpointEditing) return;\n if (isTypingTarget(event.target)) return;\n if (event.key === 'F9') {\n event.preventDefault();\n this.OnToggleSelectedBreakpoint();\n }\n }\n\n private rebuildOverlay(): void {\n this.Overlay = {\n breakpoints: this.breakpoints,\n // A finished graph is not \"paused here\" — the durable bag can still name the last\n // breakpoint after every step is terminal.\n pausedAtTaskID: this.IsSettled ? null : this.pausedAtTaskID,\n paused: !this.IsSettled && this.graphPaused,\n edgeOverrides: this.edgeOverrides,\n showConditions: true,\n };\n }\n\n private emitSettledOnce(): void {\n if (this.settledEmitted || !this.IsSettled) return;\n this.settledEmitted = true;\n this.Settled.emit();\n }\n\n /**\n * Reads the graph and projects it onto the canvas.\n *\n * `BypassCache` throughout: a run view exists to show what is true *now*, and the whole point of\n * the poll is to see a status that changed a second ago. A cached read would render a stale graph\n * that looks authoritative.\n */\n private async load(): Promise<void> {\n this.stopPolling();\n if (!this.parentTaskID) {\n this.Spec = null;\n this.cdr.markForCheck();\n return;\n }\n\n this.IsLoading = this.Spec === null; // only show the spinner on first load, not on every poll\n this.ErrorMessage = null;\n\n try {\n const rv = RunView.FromMetadataProvider(this.ProviderToUse);\n const [tasks, deps] = await rv.RunViews<MJTaskEntity | MJTaskDependencyEntity>([\n {\n EntityName: 'MJ: Tasks',\n ExtraFilter: `ParentID='${this.parentTaskID}'`,\n // Started work in the order it ran, unstarted last, persist order as the\n // tiebreak — the same rule GetAgentRunTree uses, so a graph reads identically\n // wherever it is shown.\n //\n // `__mj_CreatedAt ASC` alone was persist order, which is the COMPILER's walk\n // order, not the author's numbering and not what actually happened: a settled\n // graph listed its steps in an order unrelated to their execution, and a skipped\n // step could sit above work that ran.\n OrderBy: 'CASE WHEN StartedAt IS NULL THEN 1 ELSE 0 END, StartedAt, __mj_CreatedAt',\n ResultType: 'entity_object',\n BypassCache: true,\n },\n {\n EntityName: 'MJ: Task Dependencies',\n ExtraFilter: `TaskID IN (SELECT ID FROM [__mj].[vwTasks] WHERE ParentID='${this.parentTaskID}')`,\n ResultType: 'entity_object',\n BypassCache: true,\n },\n ]);\n\n if (this.destroyed) return;\n\n if (!tasks.Success) {\n this.fail(`The workflow's steps could not be loaded: ${tasks.ErrorMessage}`);\n return;\n }\n\n const taskRows = (tasks.Results ?? []) as MJTaskEntity[];\n const depRows = (deps.Success ? (deps.Results ?? []) : []) as MJTaskDependencyEntity[];\n this.project(taskRows, depRows);\n this.rebuildOverlay();\n this.emitSettledOnce();\n\n if (this.LiveUpdates && !this.isSettled(taskRows)) this.schedulePoll();\n } catch (e) {\n this.fail(e instanceof Error ? e.message : String(e));\n } finally {\n this.IsLoading = false;\n this.cdr.markForCheck();\n }\n }\n\n /** Rows → spec + runtime + geometry. */\n private project(taskRows: MJTaskEntity[], depRows: MJTaskDependencyEntity[]): void {\n this.taskByID = new Map(taskRows.map((t) => [t.ID, t]));\n if (taskRows.length === 0) {\n this.SelectedTaskID = null;\n } else if (!this.SelectedTaskID || !this.taskByID.has(this.SelectedTaskID)) {\n const activeRow = taskRows.find((t) => t.Status === 'In Progress');\n this.SelectedTaskID = (activeRow ?? taskRows[0]).ID;\n }\n\n const projection = ProjectTaskRowsToSpec(this.WorkflowName, taskRows, depRows);\n this.Spec = projection.Spec;\n\n // Correlate by ID, not by name: a projected node's tempId IS the task id, which is the one\n // case where an id match is exact. Name correlation exists for specs whose tempIds were\n // never real, and would be needlessly lossy here.\n const knownIDs = new Set(taskRows.map((t) => t.ID));\n this.RuntimeStatus = this.replayAt\n ? this.statusAt(this.replayAt)\n : BuildRuntimeStatus(taskRows, new Map(), knownIDs);\n\n this.Positions = this.resolvePositions(projection.AuthoredPositions, taskRows, depRows);\n }\n\n /** Re-derives the overlay for the current replay position (or the present) from held rows. */\n private applyReplay(): void {\n if (this.taskByID.size === 0) return;\n const rows = [...this.taskByID.values()];\n this.RuntimeStatus = this.replayAt\n ? this.statusAt(this.replayAt)\n : BuildRuntimeStatus(rows, new Map(), new Set(rows.map((t) => t.ID)));\n this.cdr.markForCheck();\n }\n\n /** The overlay as it stood at `moment`, from each row's own timestamps. */\n private statusAt(moment: Date): TaskGraphRuntimeStatus {\n const at = moment.getTime();\n const status: TaskGraphRuntimeStatus = {};\n for (const [id, row] of this.taskByID) {\n const started = row.StartedAt?.getTime?.() ?? (row.StartedAt ? new Date(row.StartedAt).getTime() : null);\n const completed = row.CompletedAt?.getTime?.() ?? (row.CompletedAt ? new Date(row.CompletedAt).getTime() : null);\n if (started == null || started > at) status[id] = 'Pending';\n else if (completed == null || completed > at) status[id] = 'In Progress';\n else status[id] = NormalizeRuntimeState(row.Status);\n }\n return status;\n }\n\n /**\n * The author's arrangement where there is one, a computed layout everywhere else.\n *\n * Mixing the two per-node rather than choosing one for the whole graph: a workflow whose author\n * positioned some steps and left others where they fell should keep the positions they chose.\n * A wholly unpositioned graph — the normal case for anything an agent emitted — is laid out\n * entirely by the algorithm.\n */\n private resolvePositions(\n authored: Map<string, GraphNodePosition>,\n taskRows: MJTaskEntity[],\n depRows: MJTaskDependencyEntity[],\n ): Map<string, GraphNodePosition> {\n const missing = taskRows.filter((t) => !authored.has(t.ID)).map((t) => t.ID);\n if (missing.length === 0) return authored;\n\n const edges: GraphLayoutEdge[] = depRows.map((d) => ({ From: d.DependsOnTaskID, To: d.TaskID }));\n const computed = LayoutGraphNodes(taskRows.map((t) => t.ID), edges, { Direction: 'LR' });\n\n const resolved = new Map(computed);\n for (const [id, position] of authored) resolved.set(id, position);\n return resolved;\n }\n\n private isSettled(taskRows: MJTaskEntity[]): boolean {\n return taskRows.length > 0 && taskRows.every((t) => SETTLED.has(t.Status));\n }\n\n /**\n * Folds one live frame into the overlay.\n *\n * Direct status frames patch in place — a new `RuntimeStatus` object, because the canvas is\n * OnPush and mutation would render nothing. Frames whose consequences the dispatcher computes\n * across the whole graph (skips cascade, blocks propagate, settlement rolls up) reload the rows\n * instead: inferring a cascade client-side would be a second implementation of the engine's\n * rules, free to drift.\n */\n private foldFrame(frame: TaskGraphRunFrame): void {\n switch (frame.kind) {\n case 'TaskStarted':\n case 'TaskCompleted':\n case 'TaskFailed':\n if (frame.taskId && frame.status && this.RuntimeStatus) {\n const row = this.taskByID.get(frame.taskId);\n if (row) row.Status = frame.status as MJTaskEntity['Status'];\n this.RuntimeStatus = { ...this.RuntimeStatus, [frame.taskId]: NormalizeRuntimeState(frame.status) };\n if (frame.kind !== 'TaskStarted') this.LiveActivity.delete(frame.taskId);\n this.rebuildOverlay();\n this.emitSettledOnce();\n this.cdr.markForCheck();\n }\n break;\n case 'NodeProgress':\n if (frame.taskId && frame.progressMessage) {\n this.LiveActivity.set(frame.taskId, { Message: frame.progressMessage, Percent: frame.progressPercent });\n this.cdr.markForCheck();\n }\n break;\n case 'GraphSettled':\n this.scheduleFrameReload();\n // The engine said the graph is done — do not wait for the row reload to tell the host.\n if (!this.settledEmitted) {\n this.settledEmitted = true;\n this.Settled.emit();\n }\n break;\n case 'TaskSkipped':\n case 'TaskBlocked':\n case 'TaskAwaitingHuman':\n case 'GraphResumed':\n this.scheduleFrameReload();\n break;\n default:\n // GateDecision / ClaimChanged / PassCompleted / GraphPaused / BreakpointHit are\n // console-chrome concerns the HOST renders; unknown kinds are a newer server.\n break;\n }\n }\n\n /** One reload per burst of cascade frames, not one per frame. */\n private scheduleFrameReload(): void {\n if (this.frameReloadTimer) return;\n this.frameReloadTimer = setTimeout(() => {\n this.frameReloadTimer = null;\n void this.load();\n }, 250);\n }\n\n private schedulePoll(): void {\n this.pollTimer = setTimeout(() => void this.load(), Math.max(1, this.PollIntervalSeconds) * 1000);\n }\n\n private stopPolling(): void {\n if (this.pollTimer) {\n clearTimeout(this.pollTimer);\n this.pollTimer = null;\n }\n }\n\n private fail(message: string): void {\n LogError(`[TaskGraphRunView] ${message}`);\n this.ErrorMessage = message;\n this.cdr.markForCheck();\n }\n\n /** Canvas extent, so a host can size its container to the graph rather than guessing. */\n public get GraphBounds(): { Width: number; Height: number } {\n const box = GraphLayoutBounds(this.Positions);\n return { Width: box.Width, Height: box.Height };\n }\n}\n\nfunction isTypingTarget(target: EventTarget | null): boolean {\n if (!(target instanceof HTMLElement)) return false;\n const tag = target.tagName;\n return tag === 'INPUT' || tag === 'TEXTAREA' || tag === 'SELECT' || target.isContentEditable;\n}\n","@if (ErrorMessage) {\n <mj-alert Variant=\"error\" [Message]=\"ErrorMessage\"></mj-alert>\n} @else if (IsLoading) {\n <div class=\"run-view-loading\">Loading the workflow’s steps…</div>\n} @else if (!Spec || Spec.tasks.length === 0) {\n <mj-empty-state\n Icon=\"fa-solid fa-diagram-project\"\n Title=\"No steps yet\"\n Message=\"This workflow has not created any steps.\">\n </mj-empty-state>\n} @else {\n <div class=\"run-view\" [style.height]=\"Height\">\n <div class=\"run-view-summary\">\n <span class=\"run-view-count\">{{ CompletedCount }} of {{ TotalCount }} complete</span>\n @if (SkippedCount > 0) {\n <span class=\"run-view-skipped\">{{ SkippedCount }} not taken</span>\n }\n @if (IsSettled) {\n <span class=\"run-view-done\">Finished</span>\n } @else if (GraphPaused) {\n <span class=\"run-view-waiting\">\n @if (PausedAtTaskID) { Waiting on {{ WaitingStepName }} }\n @else { Waiting to start — Continue or Step }\n </span>\n } @else if (RunningCount > 0) {\n <span class=\"run-view-running\">{{ RunningCount }} running</span>\n }\n @if (AllowBreakpointEditing && SelectedTaskID) {\n <button\n type=\"button\"\n class=\"run-view-bp\"\n [class.run-view-bp-on]=\"HasSelectedBreakpoint\"\n (click)=\"OnToggleSelectedBreakpoint()\"\n [attr.aria-pressed]=\"HasSelectedBreakpoint\"\n [attr.aria-label]=\"HasSelectedBreakpoint ? 'Remove breakpoint from ' + SelectedTaskName : 'Add breakpoint on ' + SelectedTaskName\"\n [title]=\"HasSelectedBreakpoint ? 'Remove breakpoint' : 'Break before this step'\">\n <i class=\"fa-circle\" [class.fa-solid]=\"HasSelectedBreakpoint\" [class.fa-regular]=\"!HasSelectedBreakpoint\" aria-hidden=\"true\"></i>\n </button>\n <span class=\"run-view-bp-name\">{{ SelectedTaskName }}</span>\n }\n </div>\n\n <div class=\"run-view-body\">\n @if (ShowVariables && !Prefs.InvocationOpen) {\n <button type=\"button\" class=\"run-view-vars-rail\"\n (click)=\"OnToggleInvocation()\"\n title=\"Show step inputs and outputs\"\n aria-label=\"Show step inputs and outputs\">\n <i class=\"fa-solid fa-code\" aria-hidden=\"true\"></i>\n <span>Data</span>\n </button>\n }\n <as-split class=\"run-view-split\" direction=\"horizontal\" unit=\"percent\"\n [gutterSize]=\"8\" (dragEnd)=\"OnInvocationSplitDragEnd($event.sizes)\">\n <as-split-area [size]=\"InvocationPaneSize\" [minSize]=\"18\" [visible]=\"InvocationPaneOpen\">\n <div class=\"run-view-vars\">\n <div class=\"run-view-vars-bar\">\n <div class=\"run-view-vars-title\">\n @if (SelectedTask; as step) {\n <span class=\"run-view-vars-step-name\" [title]=\"step.Name\">{{ step.Name }}</span>\n <span class=\"run-view-vars-status\" [attr.data-status]=\"step.Status\">{{ step.Status }}</span>\n } @else {\n <span>Step Inputs & Outputs</span>\n }\n </div>\n <button type=\"button\" class=\"run-view-vars-min\"\n (click)=\"OnToggleInvocation()\"\n title=\"Minimize\"\n aria-label=\"Minimize invocation and output\">\n <i class=\"fa-solid fa-chevron-left\" aria-hidden=\"true\"></i>\n </button>\n </div>\n @if (SelectedTask?.ErrorMessage; as errMsg) {\n <div class=\"run-view-vars-error\" role=\"status\">\n <i class=\"fa-solid fa-triangle-exclamation\" aria-hidden=\"true\"></i>\n <span>{{ errMsg }}</span>\n </div>\n }\n <mj-task-graph-variables\n [TaskID]=\"SelectedTask?.ID\"\n [InputPayload]=\"SelectedTask?.InputPayload\"\n [OutputPayload]=\"SelectedTask?.OutputPayload\"\n [Invocation]=\"Invocation\">\n </mj-task-graph-variables>\n </div>\n </as-split-area>\n <as-split-area [size]=\"CanvasPaneSize\" [minSize]=\"40\">\n <div class=\"run-view-canvas\">\n <mj-task-graph-editor\n [Spec]=\"Spec\"\n [RuntimeStatus]=\"RuntimeStatus\"\n [NodePositions]=\"Positions\"\n [DebugOverlay]=\"Overlay\"\n [ReadOnly]=\"true\"\n [ShowToolbar]=\"ShowToolbar\"\n [ToolbarVisibility]=\"ToolbarVisibility\"\n [ToolbarAlign]=\"ToolbarAlign\"\n [ShowPalette]=\"false\"\n [ShowProperties]=\"false\"\n [ShowMinimap]=\"false\"\n [ShowStatusBar]=\"false\"\n [ShowLegend]=\"ShowLegend\"\n (SelectionChanged)=\"OnSelectionChanged($event)\"\n (ConnectionSelected)=\"OnConnectionSelected($event)\"\n (LegendToggled)=\"LegendToggled.emit($event)\"\n (BeforeContextMenu)=\"OnBeforeContextMenu($event)\"\n (AfterContextMenuAction)=\"OnAfterContextMenuAction($event)\">\n </mj-task-graph-editor>\n </div>\n </as-split-area>\n </as-split>\n </div>\n </div>\n}\n"]}
|
|
1
|
+
{"version":3,"file":"task-graph-run-view.component.js","sourceRoot":"","sources":["../../src/lib/task-graph-run-view.component.ts","../../src/lib/task-graph-run-view.component.html"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EACH,uBAAuB,EAEvB,SAAS,EACT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CAAC,MAAM;;kBAS9C,KAAK;;kBAcL,KAAK;;kBAQL,KAAK;;kBAGL,KAAK;;kBAGL,KAAK;;kBAUL,KAAK;;kBAQL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBAYL,KAAK;;kBAYL,KAAK;;kBAcL,KAAK;;kBASL,KAAK;;kBAaL,KAAK;;kBASL,KAAK;;kBAYL,KAAK;;kBAEL,KAAK;;kBAEL,KAAK;;kBAEL,KAAK;;kBAEL,MAAM;;kBAEN,MAAM;;kBAEN,MAAM;;kBAEN,MAAM;;kBAEN,MAAM;;kBAKN,KAAK;;kBAEL,KAAK;;kBAEL,MAAM;;kBAEN,MAAM;;kBA6QN,YAAY;mBAAC,kBAAkB,EAAE,CAAC,QAAQ,CAAC;;kFAhbnC,yBAAyB;AA8qBtC,SAAS,cAAc,CAAC,MAA0B;IAC9C,IAAI,CAAC,CAAC,MAAM,YAAY,WAAW,CAAC;QAAE,OAAO,KAAK,CAAC;IACnD,MAAM,GAAG,GAAG,MAAM,CAAC,OAAO,CAAC;IAC3B,OAAO,GAAG,KAAK,OAAO,IAAI,GAAG,KAAK,UAAU,IAAI,GAAG,KAAK,QAAQ,IAAI,MAAM,CAAC,iBAAiB,CAAC;AACjG,CAAC","sourcesContent":["/**\n * @fileoverview Watching a graph that is running, on the canvas its author drew on.\n *\n * **Why this is a component and not three.** A run needs rendering in at least three places — inside\n * an Agent Run, inside the test harness, and on a standalone workflow-runs screen — and every one of\n * them wants the identical thing: the graph, with live status, laid out legibly, with a node you can\n * click. Three implementations would be three chances to render the same run differently, and the\n * one that matters most (is that branch grey because it was *not taken*, or because it *broke*?) is\n * exactly the distinction a second implementation gets wrong.\n *\n * **What it owns and what it doesn't.** It owns data acquisition — reading `MJ: Tasks` and\n * `MJ: Task Dependencies` through the host's provider — and geometry. It does not navigate: a\n * widgets-layer component cannot know whether it sits inside Explorer, so selecting a node emits an\n * event and the host decides what \"open the agent run\" means. That boundary is the whole reason\n * this can live beside the editor rather than in Explorer.\n *\n * @module @memberjunction/ng-task-graph-editor\n */\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n EventEmitter,\n HostListener,\n Input,\n OnDestroy,\n Output,\n} from '@angular/core';\nimport { BaseAngularComponent } from '@memberjunction/ng-base-types';\nimport { LogError, RunView } from '@memberjunction/core';\nimport { UUIDsEqual } from '@memberjunction/global';\nimport { MJTaskEntity, MJTaskDependencyEntity, UserInfoEngine } from '@memberjunction/core-entities';\nimport { ToPaneSizePair } from './pane-split';\nimport { TaskGraphRunPrefsStore, type TaskGraphRunPrefs } from './task-graph-run-prefs';\nimport {\n GraphLayoutBounds,\n LayoutGraphNodes,\n ProjectTaskRowsToSpec,\n type GraphLayoutEdge,\n type GraphNodePosition,\n type TaskGraphSpec,\n} from '@memberjunction/ai-core-plus';\nimport { BuildRuntimeStatus, IsRuntimeSettled, NormalizeRuntimeState } from './task-graph-runtime-source';\nimport type { TaskGraphDebugOverlay, TaskGraphRuntimeStatus } from './task-graph-canvas-adapter';\nimport type { TaskGraphSelectionChangedEventArgs } from './task-graph-editor-events';\nimport { StepIDOfTask } from './remembered-breakpoints';\nimport type {\n FlowAfterContextMenuActionEventArgs,\n FlowBeforeContextMenuEventArgs,\n FlowConnection,\n FlowToolbarAlign,\n FlowToolbarVisibility,\n} from '@memberjunction/ng-flow-editor';\n\n/** What the host learns when someone clicks a step. */\nexport type TaskGraphRunNodeSelectedEvent = {\n /** The `MJ: Tasks` row id. */\n TaskID: string;\n Task: MJTaskEntity | null;\n};\n\n/** What the host learns when someone clicks a path. */\nexport type TaskGraphRunConnectionSelectedEvent = {\n /** The `MJ: Task Dependencies` row id, when the projection carried one. */\n EdgeID: string | null;\n FromTaskID: string;\n ToTaskID: string;\n Condition?: string;\n};\n\n/**\n * One live dispatcher frame, as the HOST hands it in.\n *\n * Structural on purpose: the widget must not import the transport (`GraphQLDataProvider`'s\n * `TaskGraphFrameEvent` satisfies this shape as-is), and the host owns the subscription — this\n * component only renders what it is handed, which is the widgets-layer rule that keeps it embeddable\n * anywhere. Fields beyond these are ignored, so a newer server cannot break an older widget.\n */\nexport type TaskGraphRunFrame = {\n kind: string;\n taskId?: string;\n taskName?: string;\n status?: string;\n progressMessage?: string;\n progressPercent?: number;\n reason?: string;\n edgeId?: string;\n dependsOnTaskId?: string;\n conditionText?: string;\n claimEvent?: string;\n claimedBy?: string;\n verdict?: string;\n passNumber?: number;\n eligibleCount?: number;\n heldCount?: number;\n claimedCount?: number;\n};\n\n/** Statuses at which a graph has stopped moving, so polling can stop with it. */\nconst SETTLED = new Set<MJTaskEntity['Status']>(['Complete', 'Failed', 'Cancelled', 'Skipped']);\n\n@Component({\n standalone: false,\n selector: 'mj-task-graph-run-view',\n templateUrl: './task-graph-run-view.component.html',\n styleUrls: ['./task-graph-run-view.component.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TaskGraphRunViewComponent extends BaseAngularComponent implements OnDestroy {\n /**\n * The graph to watch — the parent `MJ: Tasks` row that represents it.\n *\n * Setter-based rather than `ngOnChanges`, matching the editor beside it: the reaction is\n * explicit and costs nothing on unrelated change-detection passes.\n */\n @Input()\n public set ParentTaskID(value: string | null) {\n if (value === this.parentTaskID) return;\n this.parentTaskID = value;\n this.settledEmitted = false;\n this.SelectedTaskID = null;\n this.LiveActivity.clear();\n void this.load();\n }\n public get ParentTaskID(): string | null {\n return this.parentTaskID;\n }\n\n /** Name shown on the compiled graph. Purely cosmetic; the rows carry the truth. */\n @Input() public WorkflowName: string = 'Workflow';\n\n /**\n * Keep re-reading while the graph is still moving.\n *\n * Off by default: most hosts show a finished run, and a component that polls by default would\n * have every historical run quietly issuing queries forever.\n */\n @Input() public LiveUpdates: boolean = false;\n\n /** How often to re-read while live. Seconds, not milliseconds — this is a human-scale view. */\n @Input() public PollIntervalSeconds: number = 3;\n\n /** Height of the canvas. Hosts embed this in very different amounts of space. */\n @Input() public Height: string = '320px';\n\n /**\n * Whether the canvas legend shows. **Off by default here**, unlike the editor.\n *\n * The legend explains the authoring vocabulary — what a conditional edge means, what a duplicate\n * default looks like. That is what someone drawing a graph needs. A run view answers a different\n * question, \"what happened\", which the legend helps with not at all while covering a corner of\n * the canvas the graph is usually occupying.\n */\n @Input() public ShowLegend: boolean = false;\n\n /**\n * Whether the canvas toolbar rides above the graph.\n *\n * Debug and other run hosts leave this on and set `ToolbarVisibility` to `minimized` so the\n * graph is the picture, not a floating tool strip. The chip in the corner restores the bar.\n */\n @Input() public ShowToolbar: boolean = true;\n @Input() public ToolbarVisibility: FlowToolbarVisibility = 'minimized';\n @Input() public ToolbarAlign: FlowToolbarAlign = 'left';\n\n /**\n * The latest live dispatcher frame, handed in by the host.\n *\n * The host owns the subscription (`GraphQLDataProvider.TaskGraphFrames` or anything shaped like\n * it) and binds each arrival here; the widget folds it into the overlay. Frames are advisory —\n * a task frame patches the node's status in place for sub-second feedback, and the frames that\n * imply CASCADES (a skip, a block, settlement) trigger a debounced row reload, because the\n * dispatcher's propagation writes rows this component cannot infer from one frame. Rows remain\n * the truth; the existing poll (if enabled) remains the safety net.\n */\n @Input()\n public set LiveFrame(frame: TaskGraphRunFrame | null) {\n if (!frame) return;\n this.foldFrame(frame);\n }\n\n /**\n * Replay: render the run as it stood at this moment, reconstructed from each step's\n * `StartedAt`/`CompletedAt`. Null (the default) renders the present. A step that had not\n * started reads Pending; one mid-flight reads In Progress; one already finished reads its\n * final status — the same three answers the rows would have given a viewer at that time.\n */\n @Input()\n public set ReplayAt(value: Date | null) {\n if (value?.getTime() === this.replayAt?.getTime()) return;\n this.replayAt = value;\n this.applyReplay();\n }\n public get ReplayAt(): Date | null {\n return this.replayAt;\n }\n\n /**\n * Armed breakpoint task IDs, from the parent row's `$.debug.breakpoints`. Empty by default so\n * embeds (agent-run timeline, test harness) never grow debugger chrome they did not ask for.\n */\n @Input()\n public set Breakpoints(value: readonly string[]) {\n this.breakpoints = value ?? [];\n this.rebuildOverlay();\n }\n public get Breakpoints(): readonly string[] {\n return this.breakpoints;\n }\n /** The step a breakpoint actually stopped on. */\n @Input()\n public set PausedAtTaskID(value: string | null) {\n this.pausedAtTaskID = value;\n if (value) this.SelectedTaskID = value;\n this.rebuildOverlay();\n }\n public get PausedAtTaskID(): string | null {\n return this.pausedAtTaskID;\n }\n /**\n * The graph is claim-gated. Combined with `PausedAtTaskID` so start-paused (no specific\n * step yet) can still light the entry node as waiting.\n */\n @Input()\n public set GraphPaused(value: boolean) {\n this.graphPaused = value;\n this.rebuildOverlay();\n }\n public get GraphPaused(): boolean {\n return this.graphPaused;\n }\n /** Operator-forced edge verdicts, keyed by `MJ: Task Dependencies` row ID. */\n @Input()\n public set EdgeOverrides(value: Readonly<Record<string, 'true' | 'false'>>) {\n this.edgeOverrides = value ?? {};\n this.rebuildOverlay();\n }\n public get EdgeOverrides(): Readonly<Record<string, 'true' | 'false'>> {\n return this.edgeOverrides;\n }\n /**\n * Whether this host may arm/disarm breakpoints from the selected-step control.\n * Off by default — the run view also renders where those controls would be wrong.\n */\n @Input() public AllowBreakpointEditing: boolean = false;\n /** Compact debug key under the summary line. Off unless the host is a debugger. */\n @Input() public ShowDebugLegend: boolean = false;\n /** Step Inputs & Outputs (VARIABLES) inspector pane to the left of the canvas. Enabled by default across all task graph views. */\n @Input() public ShowVariables: boolean = true;\n /** The parent bag's `data` / `context` roots, for the Invocation scope. */\n @Input() public Invocation: { data?: unknown; context?: unknown } | null = null;\n\n @Output() public NodeSelected = new EventEmitter<TaskGraphRunNodeSelectedEvent>();\n /** The legend was toggled from the toolbar, so a host can remember the choice. */\n @Output() public LegendToggled = new EventEmitter<boolean>();\n /** Emitted once, when every step has reached a terminal status. */\n @Output() public Settled = new EventEmitter<void>();\n /** A connection was clicked. `EdgeID` is the dependency row id when the projection carried one. */\n @Output() public ConnectionSelected = new EventEmitter<TaskGraphRunConnectionSelectedEvent>();\n /** Intent only — the host owns `SetBreakpoints`. */\n @Output() public BreakpointToggled = new EventEmitter<{ TaskID: string; Enabled: boolean }>();\n /**\n * Step IDs the person keeps as breakpoints for future runs of this workflow (#3798). Shown in the step's\n * context menu; empty (and the menu item hidden) unless a host remembers breakpoints.\n */\n @Input() public RememberedStepIDs: readonly string[] = [];\n /** Whether the host offers \"remember for future runs\" at all. */\n @Input() public AllowRememberBreakpoints: boolean = false;\n /** Intent only — the host stores the remembered set. */\n @Output() public RememberBreakpointToggled = new EventEmitter<{ TaskID: string; StepID: string; Remember: boolean }>();\n /** Intent only — the host owns `OverrideEdge`. */\n @Output() public EdgeOverrideRequested = new EventEmitter<{\n EdgeID: string;\n Verdict: 'true' | 'false' | null;\n }>();\n\n /** What each running step says it is doing, from `NodeProgress` frames. Keyed by task row id. */\n public LiveActivity = new Map<string, { Message: string; Percent?: number }>();\n\n /** The last step the person selected, so the breakpoint control has a target. */\n public SelectedTaskID: string | null = null;\n /** Stable overlay object — rebuilt only when debug inputs change, so the editor does not re-project every CD cycle. */\n public Overlay: TaskGraphDebugOverlay = { showConditions: true };\n\n private breakpoints: readonly string[] = [];\n private pausedAtTaskID: string | null = null;\n private graphPaused = false;\n private edgeOverrides: Readonly<Record<string, 'true' | 'false'>> = {};\n /** `Settled` is once-per-parent — a finished poll must not re-fire the host. */\n private settledEmitted = false;\n\n /** Left data pane + split sizes. One JSON bag in `MJ: User Settings`. */\n public get Prefs(): TaskGraphRunPrefs {\n return this.prefsStore.Value;\n }\n private prefsStore = new TaskGraphRunPrefsStore({\n Get: () => undefined,\n Set: () => { /* unit tests / pre-bootstrap */ },\n });\n\n public Spec: TaskGraphSpec | null = null;\n public RuntimeStatus: TaskGraphRuntimeStatus | null = null;\n public Positions: Map<string, GraphNodePosition> = new Map();\n public IsLoading = false;\n public ErrorMessage: string | null = null;\n\n /** Rows by id, so a selection event can hand the host the whole task rather than an id. */\n private taskByID = new Map<string, MJTaskEntity>();\n private parentTaskID: string | null = null;\n private replayAt: Date | null = null;\n private pollTimer: ReturnType<typeof setTimeout> | null = null;\n private frameReloadTimer: ReturnType<typeof setTimeout> | null = null;\n private destroyed = false;\n\n constructor(private cdr: ChangeDetectorRef) {\n super();\n try {\n this.prefsStore = new TaskGraphRunPrefsStore({\n Get: (key) => UserInfoEngine.Instance.GetSetting(key),\n Set: (key, value) => UserInfoEngine.Instance.SetSettingDebounced(key, value),\n });\n this.prefsStore.Restore();\n } catch {\n // Engine not configured yet (unit tests, pre-bootstrap) — keep the default.\n }\n }\n\n public get InvocationPaneOpen(): boolean {\n return this.ShowVariables && this.Prefs.InvocationOpen;\n }\n\n public get InvocationPaneSize(): number {\n return this.InvocationPaneOpen ? this.Prefs.InvocationSplit[0] : 0;\n }\n\n public get CanvasPaneSize(): number {\n return this.InvocationPaneOpen ? this.Prefs.InvocationSplit[1] : 100;\n }\n\n public OnToggleInvocation(): void {\n this.prefsStore.SetInvocationOpen(!this.Prefs.InvocationOpen);\n this.cdr.markForCheck();\n }\n\n public OnInvocationSplitDragEnd(sizes: readonly (number | '*')[]): void {\n const pair = ToPaneSizePair(sizes);\n if (!pair) return;\n this.prefsStore.SetInvocationSplit(pair);\n this.cdr.markForCheck();\n }\n\n public ngOnDestroy(): void {\n this.destroyed = true;\n this.stopPolling();\n if (this.frameReloadTimer) {\n clearTimeout(this.frameReloadTimer);\n this.frameReloadTimer = null;\n }\n }\n\n /** Steps in a terminal state, for the host's summary line. Uses the same map the canvas paints. */\n public get CompletedCount(): number {\n return this.countRuntime('Complete');\n }\n\n public get TotalCount(): number {\n return this.Spec?.tasks.length ?? this.taskByID.size;\n }\n\n public get SkippedCount(): number {\n return this.countRuntime('Skipped');\n }\n\n public get RunningCount(): number {\n return this.countRuntime('In Progress');\n }\n\n public get IsSettled(): boolean {\n if (!this.Spec || this.Spec.tasks.length === 0) return false;\n return IsRuntimeSettled(this.RuntimeStatus ?? {}, this.Spec.tasks.map((t) => t.tempId));\n }\n\n /**\n * A node was selected on the canvas.\n *\n * The projected `tempId` IS the task id, so the row lookup is exact — and handing the host the\n * whole task rather than an id spares every host from re-reading a row this component already\n * holds.\n */\n public OnSelectionChanged(args: TaskGraphSelectionChangedEventArgs): void {\n const tempId = args?.Task?.tempId;\n if (!tempId) return;\n this.SelectedTaskID = tempId;\n if (this.ShowVariables && !this.Prefs.InvocationOpen) {\n this.prefsStore.SetInvocationOpen(true);\n }\n this.NodeSelected.emit({ TaskID: tempId, Task: this.taskByID.get(tempId) ?? null });\n this.cdr.markForCheck();\n }\n\n public OnConnectionSelected(connection: FlowConnection | null): void {\n if (!connection) {\n this.ConnectionSelected.emit({ EdgeID: null, FromTaskID: '', ToTaskID: '' });\n return;\n }\n const data = connection.Data ?? {};\n const edgeID = typeof data['EdgeID'] === 'string' ? data['EdgeID'] : null;\n const from = typeof data['FromTempId'] === 'string' ? data['FromTempId'] : connection.SourceNodeID;\n const to = typeof data['ToTempId'] === 'string' ? data['ToTempId'] : connection.TargetNodeID;\n this.ConnectionSelected.emit({\n EdgeID: edgeID,\n FromTaskID: from,\n ToTaskID: to,\n Condition: connection.Condition,\n });\n }\n\n private countRuntime(state: TaskGraphRuntimeStatus[string]): number {\n if (!this.RuntimeStatus) {\n return [...this.taskByID.values()].filter((t) => NormalizeRuntimeState(t.Status) === state).length;\n }\n return Object.values(this.RuntimeStatus).filter((s) => s === state).length;\n }\n\n public get HasSelectedBreakpoint(): boolean {\n return !!this.SelectedTaskID && this.hasBreakpoint(this.SelectedTaskID);\n }\n\n public get SelectedTaskName(): string {\n if (!this.SelectedTaskID) return '';\n return this.taskByID.get(this.SelectedTaskID)?.Name ?? 'this step';\n }\n\n public get WaitingStepName(): string {\n if (this.pausedAtTaskID) {\n return this.taskByID.get(this.pausedAtTaskID)?.Name\n ?? this.Spec?.tasks.find((t) => t.tempId === this.pausedAtTaskID)?.name\n ?? 'this step';\n }\n const entry = this.Spec?.tasks.find((t) => (t.dependsOn?.length ?? 0) === 0);\n return entry?.name ?? 'the first step';\n }\n\n public get SelectedTask(): MJTaskEntity | null {\n return this.SelectedTaskID ? this.taskByID.get(this.SelectedTaskID) ?? null : null;\n }\n\n /** All loaded task step entities for the current parent workflow run. */\n public get Tasks(): MJTaskEntity[] {\n return [...this.taskByID.values()];\n }\n\n /** The stable step ID of a task on the canvas, from its `Configuration.stepId`; null for rows submitted before it. */\n public StepIDOf(taskID: string): string | null {\n return StepIDOfTask(this.taskByID.get(taskID)?.Configuration);\n }\n\n public OnToggleSelectedBreakpoint(): void {\n if (!this.AllowBreakpointEditing || !this.SelectedTaskID) return;\n this.BreakpointToggled.emit({\n TaskID: this.SelectedTaskID,\n Enabled: !this.HasSelectedBreakpoint,\n });\n }\n\n /** Debug attaches here: replace Edit/Remove with breakpoint / path-override items. */\n public OnBeforeContextMenu(event: FlowBeforeContextMenuEventArgs): void {\n if (!this.AllowBreakpointEditing) {\n event.Cancel = true;\n return;\n }\n if (event.Target === 'node' && event.Node) {\n const on = this.hasBreakpoint(event.Node.ID);\n event.Items = [{\n ID: 'toggle-breakpoint',\n Label: on ? 'Remove Breakpoint' : 'Add Breakpoint',\n Icon: 'fa-circle',\n Shortcut: 'F9',\n }];\n const stepID = this.AllowRememberBreakpoints ? this.StepIDOf(event.Node.ID) : null;\n if (stepID) {\n const remembered = this.RememberedStepIDs.includes(stepID);\n event.Items.push({\n ID: 'toggle-remember-breakpoint',\n Label: remembered ? 'Stop Remembering Breakpoint' : 'Remember Breakpoint for Future Runs',\n Icon: remembered ? 'fa-bookmark' : 'fa-regular fa-bookmark',\n });\n }\n return;\n }\n if (event.Target === 'connection' && event.Connection?.Condition?.trim()) {\n const edgeID = typeof event.Connection.Data?.['EdgeID'] === 'string'\n ? event.Connection.Data['EdgeID']\n : null;\n if (!edgeID) {\n event.Cancel = true;\n return;\n }\n event.Items = [\n { ID: 'force-true', Label: 'Take this path', Icon: 'fa-check' },\n { ID: 'force-false', Label: 'Skip this path', Icon: 'fa-xmark' },\n { ID: 'force-clear', Label: 'Clear override', Icon: 'fa-rotate-left' },\n ];\n return;\n }\n event.Cancel = true;\n }\n\n public OnAfterContextMenuAction(event: FlowAfterContextMenuActionEventArgs): void {\n if (event.ActionID === 'toggle-breakpoint' && event.Node) {\n this.BreakpointToggled.emit({\n TaskID: event.Node.ID,\n Enabled: !this.hasBreakpoint(event.Node.ID),\n });\n return;\n }\n if (event.ActionID === 'toggle-remember-breakpoint' && event.Node) {\n const stepID = this.StepIDOf(event.Node.ID);\n if (stepID) {\n this.RememberBreakpointToggled.emit({\n TaskID: event.Node.ID,\n StepID: stepID,\n Remember: !this.RememberedStepIDs.includes(stepID),\n });\n }\n return;\n }\n const edgeID = typeof event.Connection?.Data?.['EdgeID'] === 'string'\n ? event.Connection.Data['EdgeID']\n : null;\n if (!edgeID) return;\n if (event.ActionID === 'force-true') this.EdgeOverrideRequested.emit({ EdgeID: edgeID, Verdict: 'true' });\n if (event.ActionID === 'force-false') this.EdgeOverrideRequested.emit({ EdgeID: edgeID, Verdict: 'false' });\n if (event.ActionID === 'force-clear') this.EdgeOverrideRequested.emit({ EdgeID: edgeID, Verdict: null });\n }\n\n private hasBreakpoint(taskID: string): boolean {\n return this.breakpoints.some((id) => UUIDsEqual(id, taskID));\n }\n\n @HostListener('document:keydown', ['$event'])\n public OnDebugHotkey(event: KeyboardEvent): void {\n if (!this.AllowBreakpointEditing) return;\n if (isTypingTarget(event.target)) return;\n if (event.key === 'F9') {\n event.preventDefault();\n this.OnToggleSelectedBreakpoint();\n }\n }\n\n private rebuildOverlay(): void {\n this.Overlay = {\n breakpoints: this.breakpoints,\n // A finished graph is not \"paused here\" — the durable bag can still name the last\n // breakpoint after every step is terminal.\n pausedAtTaskID: this.IsSettled ? null : this.pausedAtTaskID,\n paused: !this.IsSettled && this.graphPaused,\n edgeOverrides: this.edgeOverrides,\n showConditions: true,\n };\n }\n\n private emitSettledOnce(): void {\n if (this.settledEmitted || !this.IsSettled) return;\n this.settledEmitted = true;\n this.Settled.emit();\n }\n\n /**\n * Reads the graph and projects it onto the canvas.\n *\n * `BypassCache` throughout: a run view exists to show what is true *now*, and the whole point of\n * the poll is to see a status that changed a second ago. A cached read would render a stale graph\n * that looks authoritative.\n */\n private async load(): Promise<void> {\n this.stopPolling();\n if (!this.parentTaskID) {\n this.Spec = null;\n this.cdr.markForCheck();\n return;\n }\n\n this.IsLoading = this.Spec === null; // only show the spinner on first load, not on every poll\n this.ErrorMessage = null;\n\n try {\n const rv = RunView.FromMetadataProvider(this.ProviderToUse);\n const [tasks, deps] = await rv.RunViews<MJTaskEntity | MJTaskDependencyEntity>([\n {\n EntityName: 'MJ: Tasks',\n ExtraFilter: `ParentID='${this.parentTaskID}'`,\n // Started work in the order it ran, unstarted last, persist order as the\n // tiebreak — the same rule GetAgentRunTree uses, so a graph reads identically\n // wherever it is shown.\n //\n // `__mj_CreatedAt ASC` alone was persist order, which is the COMPILER's walk\n // order, not the author's numbering and not what actually happened: a settled\n // graph listed its steps in an order unrelated to their execution, and a skipped\n // step could sit above work that ran.\n OrderBy: 'CASE WHEN StartedAt IS NULL THEN 1 ELSE 0 END, StartedAt, __mj_CreatedAt',\n ResultType: 'entity_object',\n BypassCache: true,\n },\n {\n EntityName: 'MJ: Task Dependencies',\n ExtraFilter: `TaskID IN (SELECT ID FROM [__mj].[vwTasks] WHERE ParentID='${this.parentTaskID}')`,\n ResultType: 'entity_object',\n BypassCache: true,\n },\n ]);\n\n if (this.destroyed) return;\n\n if (!tasks.Success) {\n this.fail(`The workflow's steps could not be loaded: ${tasks.ErrorMessage}`);\n return;\n }\n\n const taskRows = (tasks.Results ?? []) as MJTaskEntity[];\n const depRows = (deps.Success ? (deps.Results ?? []) : []) as MJTaskDependencyEntity[];\n this.project(taskRows, depRows);\n this.rebuildOverlay();\n this.emitSettledOnce();\n\n if (this.LiveUpdates && !this.isSettled(taskRows)) this.schedulePoll();\n } catch (e) {\n this.fail(e instanceof Error ? e.message : String(e));\n } finally {\n this.IsLoading = false;\n this.cdr.markForCheck();\n }\n }\n\n /** Rows → spec + runtime + geometry. */\n private project(taskRows: MJTaskEntity[], depRows: MJTaskDependencyEntity[]): void {\n this.taskByID = new Map(taskRows.map((t) => [t.ID, t]));\n if (taskRows.length === 0) {\n this.SelectedTaskID = null;\n } else if (!this.SelectedTaskID || !this.taskByID.has(this.SelectedTaskID)) {\n const activeRow = taskRows.find((t) => t.Status === 'In Progress');\n this.SelectedTaskID = (activeRow ?? taskRows[0]).ID;\n }\n\n const projection = ProjectTaskRowsToSpec(this.WorkflowName, taskRows, depRows);\n this.Spec = projection.Spec;\n\n // Correlate by ID, not by name: a projected node's tempId IS the task id, which is the one\n // case where an id match is exact. Name correlation exists for specs whose tempIds were\n // never real, and would be needlessly lossy here.\n const knownIDs = new Set(taskRows.map((t) => t.ID));\n this.RuntimeStatus = this.replayAt\n ? this.statusAt(this.replayAt)\n : BuildRuntimeStatus(taskRows, new Map(), knownIDs);\n\n this.Positions = this.resolvePositions(projection.AuthoredPositions, taskRows, depRows);\n }\n\n /** Re-derives the overlay for the current replay position (or the present) from held rows. */\n private applyReplay(): void {\n if (this.taskByID.size === 0) return;\n const rows = [...this.taskByID.values()];\n this.RuntimeStatus = this.replayAt\n ? this.statusAt(this.replayAt)\n : BuildRuntimeStatus(rows, new Map(), new Set(rows.map((t) => t.ID)));\n this.cdr.markForCheck();\n }\n\n /** The overlay as it stood at `moment`, from each row's own timestamps. */\n private statusAt(moment: Date): TaskGraphRuntimeStatus {\n const at = moment.getTime();\n const status: TaskGraphRuntimeStatus = {};\n for (const [id, row] of this.taskByID) {\n const started = row.StartedAt?.getTime?.() ?? (row.StartedAt ? new Date(row.StartedAt).getTime() : null);\n const completed = row.CompletedAt?.getTime?.() ?? (row.CompletedAt ? new Date(row.CompletedAt).getTime() : null);\n if (started == null || started > at) status[id] = 'Pending';\n else if (completed == null || completed > at) status[id] = 'In Progress';\n else status[id] = NormalizeRuntimeState(row.Status);\n }\n return status;\n }\n\n /**\n * The author's arrangement where there is one, a computed layout everywhere else.\n *\n * Mixing the two per-node rather than choosing one for the whole graph: a workflow whose author\n * positioned some steps and left others where they fell should keep the positions they chose.\n * A wholly unpositioned graph — the normal case for anything an agent emitted — is laid out\n * entirely by the algorithm.\n */\n private resolvePositions(\n authored: Map<string, GraphNodePosition>,\n taskRows: MJTaskEntity[],\n depRows: MJTaskDependencyEntity[],\n ): Map<string, GraphNodePosition> {\n const missing = taskRows.filter((t) => !authored.has(t.ID)).map((t) => t.ID);\n if (missing.length === 0) return authored;\n\n const edges: GraphLayoutEdge[] = depRows.map((d) => ({ From: d.DependsOnTaskID, To: d.TaskID }));\n const computed = LayoutGraphNodes(taskRows.map((t) => t.ID), edges, { Direction: 'LR' });\n\n const resolved = new Map(computed);\n for (const [id, position] of authored) resolved.set(id, position);\n return resolved;\n }\n\n private isSettled(taskRows: MJTaskEntity[]): boolean {\n return taskRows.length > 0 && taskRows.every((t) => SETTLED.has(t.Status));\n }\n\n /**\n * Folds one live frame into the overlay.\n *\n * Direct status frames patch in place — a new `RuntimeStatus` object, because the canvas is\n * OnPush and mutation would render nothing. Frames whose consequences the dispatcher computes\n * across the whole graph (skips cascade, blocks propagate, settlement rolls up) reload the rows\n * instead: inferring a cascade client-side would be a second implementation of the engine's\n * rules, free to drift.\n */\n private foldFrame(frame: TaskGraphRunFrame): void {\n switch (frame.kind) {\n case 'TaskStarted':\n case 'TaskCompleted':\n case 'TaskFailed':\n if (frame.taskId && frame.status && this.RuntimeStatus) {\n const row = this.taskByID.get(frame.taskId);\n if (row) row.Status = frame.status as MJTaskEntity['Status'];\n this.RuntimeStatus = { ...this.RuntimeStatus, [frame.taskId]: NormalizeRuntimeState(frame.status) };\n if (frame.kind !== 'TaskStarted') this.LiveActivity.delete(frame.taskId);\n this.rebuildOverlay();\n this.emitSettledOnce();\n this.cdr.markForCheck();\n }\n break;\n case 'NodeProgress':\n if (frame.taskId && frame.progressMessage) {\n this.LiveActivity.set(frame.taskId, { Message: frame.progressMessage, Percent: frame.progressPercent });\n this.cdr.markForCheck();\n }\n break;\n case 'GraphSettled':\n this.scheduleFrameReload();\n // The engine said the graph is done — do not wait for the row reload to tell the host.\n if (!this.settledEmitted) {\n this.settledEmitted = true;\n this.Settled.emit();\n }\n break;\n case 'TaskSkipped':\n case 'TaskBlocked':\n case 'TaskAwaitingHuman':\n case 'GraphResumed':\n this.scheduleFrameReload();\n break;\n default:\n // GateDecision / ClaimChanged / PassCompleted / GraphPaused / BreakpointHit are\n // console-chrome concerns the HOST renders; unknown kinds are a newer server.\n break;\n }\n }\n\n /** One reload per burst of cascade frames, not one per frame. */\n private scheduleFrameReload(): void {\n if (this.frameReloadTimer) return;\n this.frameReloadTimer = setTimeout(() => {\n this.frameReloadTimer = null;\n void this.load();\n }, 250);\n }\n\n private schedulePoll(): void {\n this.pollTimer = setTimeout(() => void this.load(), Math.max(1, this.PollIntervalSeconds) * 1000);\n }\n\n private stopPolling(): void {\n if (this.pollTimer) {\n clearTimeout(this.pollTimer);\n this.pollTimer = null;\n }\n }\n\n private fail(message: string): void {\n LogError(`[TaskGraphRunView] ${message}`);\n this.ErrorMessage = message;\n this.cdr.markForCheck();\n }\n\n /** Canvas extent, so a host can size its container to the graph rather than guessing. */\n public get GraphBounds(): { Width: number; Height: number } {\n const box = GraphLayoutBounds(this.Positions);\n return { Width: box.Width, Height: box.Height };\n }\n}\n\nfunction isTypingTarget(target: EventTarget | null): boolean {\n if (!(target instanceof HTMLElement)) return false;\n const tag = target.tagName;\n return tag === 'INPUT' || tag === 'TEXTAREA' || tag === 'SELECT' || target.isContentEditable;\n}\n","@if (ErrorMessage) {\n <mj-alert Variant=\"error\" [Message]=\"ErrorMessage\"></mj-alert>\n} @else if (IsLoading) {\n <div class=\"run-view-loading\">Loading the workflow’s steps…</div>\n} @else if (!Spec || Spec.tasks.length === 0) {\n <mj-empty-state\n Icon=\"fa-solid fa-diagram-project\"\n Title=\"No steps yet\"\n Message=\"This workflow has not created any steps.\">\n </mj-empty-state>\n} @else {\n <div class=\"run-view\" [style.height]=\"Height\">\n <div class=\"run-view-summary\">\n <span class=\"run-view-count\">{{ CompletedCount }} of {{ TotalCount }} complete</span>\n @if (SkippedCount > 0) {\n <span class=\"run-view-skipped\">{{ SkippedCount }} not taken</span>\n }\n @if (IsSettled) {\n <span class=\"run-view-done\">Finished</span>\n } @else if (GraphPaused) {\n <span class=\"run-view-waiting\">\n @if (PausedAtTaskID) { Waiting on {{ WaitingStepName }} }\n @else { Waiting to start — Continue or Step }\n </span>\n } @else if (RunningCount > 0) {\n <span class=\"run-view-running\">{{ RunningCount }} running</span>\n }\n @if (AllowBreakpointEditing && SelectedTaskID) {\n <button\n type=\"button\"\n class=\"run-view-bp\"\n [class.run-view-bp-on]=\"HasSelectedBreakpoint\"\n (click)=\"OnToggleSelectedBreakpoint()\"\n [attr.aria-pressed]=\"HasSelectedBreakpoint\"\n [attr.aria-label]=\"HasSelectedBreakpoint ? 'Remove breakpoint from ' + SelectedTaskName : 'Add breakpoint on ' + SelectedTaskName\"\n [title]=\"HasSelectedBreakpoint ? 'Remove breakpoint' : 'Break before this step'\">\n <i class=\"fa-circle\" [class.fa-solid]=\"HasSelectedBreakpoint\" [class.fa-regular]=\"!HasSelectedBreakpoint\" aria-hidden=\"true\"></i>\n </button>\n <span class=\"run-view-bp-name\">{{ SelectedTaskName }}</span>\n }\n </div>\n\n <div class=\"run-view-body\">\n @if (ShowVariables && !Prefs.InvocationOpen) {\n <button type=\"button\" class=\"run-view-vars-rail\"\n (click)=\"OnToggleInvocation()\"\n title=\"Show step inputs and outputs\"\n aria-label=\"Show step inputs and outputs\">\n <i class=\"fa-solid fa-code\" aria-hidden=\"true\"></i>\n <span>Data</span>\n </button>\n }\n <as-split class=\"run-view-split\" direction=\"horizontal\" unit=\"percent\"\n [gutterSize]=\"8\" (dragEnd)=\"OnInvocationSplitDragEnd($event.sizes)\">\n <as-split-area [size]=\"InvocationPaneSize\" [minSize]=\"18\" [visible]=\"InvocationPaneOpen\">\n <div class=\"run-view-vars\">\n <div class=\"run-view-vars-bar\">\n <div class=\"run-view-vars-title\">\n @if (SelectedTask; as step) {\n <span class=\"run-view-vars-step-name\" [title]=\"step.Name\">{{ step.Name }}</span>\n <span class=\"run-view-vars-status\" [attr.data-status]=\"step.Status\">{{ step.Status }}</span>\n } @else {\n <span>Step Inputs & Outputs</span>\n }\n </div>\n <button type=\"button\" class=\"run-view-vars-min\"\n (click)=\"OnToggleInvocation()\"\n title=\"Minimize\"\n aria-label=\"Minimize invocation and output\">\n <i class=\"fa-solid fa-chevron-left\" aria-hidden=\"true\"></i>\n </button>\n </div>\n @if (SelectedTask?.ErrorMessage; as errMsg) {\n <div class=\"run-view-vars-error\" role=\"status\">\n <i class=\"fa-solid fa-triangle-exclamation\" aria-hidden=\"true\"></i>\n <span>{{ errMsg }}</span>\n </div>\n }\n <mj-task-graph-variables\n [TaskID]=\"SelectedTask?.ID\"\n [InputPayload]=\"SelectedTask?.InputPayload\"\n [OutputPayload]=\"SelectedTask?.OutputPayload\"\n [Invocation]=\"Invocation\">\n </mj-task-graph-variables>\n </div>\n </as-split-area>\n <as-split-area [size]=\"CanvasPaneSize\" [minSize]=\"40\">\n <div class=\"run-view-canvas\">\n <mj-task-graph-editor\n [Spec]=\"Spec\"\n [RuntimeStatus]=\"RuntimeStatus\"\n [NodePositions]=\"Positions\"\n [DebugOverlay]=\"Overlay\"\n [ReadOnly]=\"true\"\n [ShowToolbar]=\"ShowToolbar\"\n [ToolbarVisibility]=\"ToolbarVisibility\"\n [ToolbarAlign]=\"ToolbarAlign\"\n [ShowPalette]=\"false\"\n [ShowProperties]=\"false\"\n [ShowMinimap]=\"false\"\n [ShowStatusBar]=\"false\"\n [ShowLegend]=\"ShowLegend\"\n (SelectionChanged)=\"OnSelectionChanged($event)\"\n (ConnectionSelected)=\"OnConnectionSelected($event)\"\n (LegendToggled)=\"LegendToggled.emit($event)\"\n (BeforeContextMenu)=\"OnBeforeContextMenu($event)\"\n (AfterContextMenuAction)=\"OnAfterContextMenuAction($event)\">\n </mj-task-graph-editor>\n </div>\n </as-split-area>\n </as-split>\n </div>\n </div>\n}\n"]}
|
package/dist/public-api.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export * from './lib/task-graph-debug-toolbar.component';
|
|
|
9
9
|
export * from './lib/task-graph-debugger.component';
|
|
10
10
|
export * from './lib/task-graph-variables.component';
|
|
11
11
|
export * from './lib/workflow-debug-host';
|
|
12
|
+
export * from './lib/remembered-breakpoints';
|
|
12
13
|
export * from './lib/debug-variables';
|
|
13
14
|
export * from './lib/pane-split';
|
|
14
15
|
export * from './lib/task-graph-run-prefs';
|
package/dist/public-api.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-api.d.ts","sourceRoot":"","sources":["../src/public-api.ts"],"names":[],"mappings":"AAQA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,qCAAqC,CAAC;AACpD,cAAc,iCAAiC,CAAC;AAChD,cAAc,0CAA0C,CAAC;AACzD,cAAc,qCAAqC,CAAC;AACpD,cAAc,sCAAsC,CAAC;AACrD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,4BAA4B,CAAC"}
|
|
1
|
+
{"version":3,"file":"public-api.d.ts","sourceRoot":"","sources":["../src/public-api.ts"],"names":[],"mappings":"AAQA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,qCAAqC,CAAC;AACpD,cAAc,iCAAiC,CAAC;AAChD,cAAc,0CAA0C,CAAC;AACzD,cAAc,qCAAqC,CAAC;AACpD,cAAc,sCAAsC,CAAC;AACrD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,4BAA4B,CAAC"}
|
package/dist/public-api.js
CHANGED
|
@@ -17,6 +17,7 @@ export * from './lib/task-graph-debug-toolbar.component';
|
|
|
17
17
|
export * from './lib/task-graph-debugger.component';
|
|
18
18
|
export * from './lib/task-graph-variables.component';
|
|
19
19
|
export * from './lib/workflow-debug-host';
|
|
20
|
+
export * from './lib/remembered-breakpoints';
|
|
20
21
|
export * from './lib/debug-variables';
|
|
21
22
|
export * from './lib/pane-split';
|
|
22
23
|
export * from './lib/task-graph-run-prefs';
|
package/dist/public-api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-api.js","sourceRoot":"","sources":["../src/public-api.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,qCAAqC,CAAC;AACpD,cAAc,iCAAiC,CAAC;AAChD,cAAc,0CAA0C,CAAC;AACzD,cAAc,qCAAqC,CAAC;AACpD,cAAc,sCAAsC,CAAC;AACrD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,4BAA4B,CAAC","sourcesContent":["/*\n * Public API Surface of @memberjunction/ng-task-graph-editor\n *\n * A `widgets`-layer component for viewing and editing a `TaskGraphSpec` — the one graph contract\n * shared by design-time flows and runtime task graphs. Import `TaskGraphSpec` itself from\n * `@memberjunction/ai-core-plus`; this package deliberately does not re-export it (see the\n * no-cross-package-re-exports rule in `.claude/rules/typescript-style.md`).\n */\nexport * from './lib/task-graph-editor.module';\nexport * from './lib/task-graph-editor.component';\nexport * from './lib/task-graph-editor-events';\nexport * from './lib/task-graph-canvas-adapter';\nexport * from './lib/task-graph-properties-panel.component';\nexport * from './lib/task-graph-run-view.component';\nexport * from './lib/task-graph-runtime-source';\nexport * from './lib/task-graph-debug-toolbar.component';\nexport * from './lib/task-graph-debugger.component';\nexport * from './lib/task-graph-variables.component';\nexport * from './lib/workflow-debug-host';\nexport * from './lib/debug-variables';\nexport * from './lib/pane-split';\nexport * from './lib/task-graph-run-prefs';\n"]}
|
|
1
|
+
{"version":3,"file":"public-api.js","sourceRoot":"","sources":["../src/public-api.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,qCAAqC,CAAC;AACpD,cAAc,iCAAiC,CAAC;AAChD,cAAc,0CAA0C,CAAC;AACzD,cAAc,qCAAqC,CAAC;AACpD,cAAc,sCAAsC,CAAC;AACrD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,4BAA4B,CAAC","sourcesContent":["/*\n * Public API Surface of @memberjunction/ng-task-graph-editor\n *\n * A `widgets`-layer component for viewing and editing a `TaskGraphSpec` — the one graph contract\n * shared by design-time flows and runtime task graphs. Import `TaskGraphSpec` itself from\n * `@memberjunction/ai-core-plus`; this package deliberately does not re-export it (see the\n * no-cross-package-re-exports rule in `.claude/rules/typescript-style.md`).\n */\nexport * from './lib/task-graph-editor.module';\nexport * from './lib/task-graph-editor.component';\nexport * from './lib/task-graph-editor-events';\nexport * from './lib/task-graph-canvas-adapter';\nexport * from './lib/task-graph-properties-panel.component';\nexport * from './lib/task-graph-run-view.component';\nexport * from './lib/task-graph-runtime-source';\nexport * from './lib/task-graph-debug-toolbar.component';\nexport * from './lib/task-graph-debugger.component';\nexport * from './lib/task-graph-variables.component';\nexport * from './lib/workflow-debug-host';\nexport * from './lib/remembered-breakpoints';\nexport * from './lib/debug-variables';\nexport * from './lib/pane-split';\nexport * from './lib/task-graph-run-prefs';\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/ng-task-graph-editor",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.3.0-edge.1",
|
|
4
4
|
"description": "MemberJunction: View and edit a TaskGraphSpec on a canvas — the one graph contract shared by design-time flows and runtime task graphs",
|
|
5
5
|
"main": "./dist/public-api.js",
|
|
6
6
|
"typings": "./dist/public-api.d.ts",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@angular/compiler": "21.2.22",
|
|
22
22
|
"@angular/compiler-cli": "21.2.22",
|
|
23
|
-
"@memberjunction/ng-test-utils": "6.
|
|
23
|
+
"@memberjunction/ng-test-utils": "6.3.0-edge.1",
|
|
24
24
|
"sass": "^1.97.3",
|
|
25
25
|
"vitest": "^4.0.18"
|
|
26
26
|
},
|
|
@@ -31,13 +31,13 @@
|
|
|
31
31
|
"@angular/platform-browser": "^21.2.22"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@memberjunction/ai-core-plus": "6.
|
|
35
|
-
"@memberjunction/core": "6.
|
|
36
|
-
"@memberjunction/core-entities": "6.
|
|
37
|
-
"@memberjunction/global": "6.
|
|
38
|
-
"@memberjunction/ng-base-types": "6.
|
|
39
|
-
"@memberjunction/ng-flow-editor": "6.
|
|
40
|
-
"@memberjunction/ng-ui-components": "6.
|
|
34
|
+
"@memberjunction/ai-core-plus": "6.3.0-edge.1",
|
|
35
|
+
"@memberjunction/core": "6.3.0-edge.1",
|
|
36
|
+
"@memberjunction/core-entities": "6.3.0-edge.1",
|
|
37
|
+
"@memberjunction/global": "6.3.0-edge.1",
|
|
38
|
+
"@memberjunction/ng-base-types": "6.3.0-edge.1",
|
|
39
|
+
"@memberjunction/ng-flow-editor": "6.3.0-edge.1",
|
|
40
|
+
"@memberjunction/ng-ui-components": "6.3.0-edge.1",
|
|
41
41
|
"angular-split": "^20.0.0",
|
|
42
42
|
"rxjs": "^7.8.2",
|
|
43
43
|
"tslib": "^2.8.1"
|