@memberjunction/ng-tasks 6.2.0-edge.3 → 6.2.0-edge.5
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/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +104 -0
- package/README.md +1 -0
- package/dist/lib/components/task-detail-panel.component.d.ts +4 -0
- package/dist/lib/components/task-detail-panel.component.d.ts.map +1 -1
- package/dist/lib/components/task-detail-panel.component.js +106 -44
- package/dist/lib/components/task-detail-panel.component.js.map +1 -1
- package/package.json +8 -8
- package/src/lib/components/task-detail-panel.component.ts +77 -6
package/.turbo/turbo-build.log
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,109 @@
|
|
|
1
1
|
# @memberjunction/ng-tasks
|
|
2
2
|
|
|
3
|
+
## 6.2.0-edge.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 39b35f1: Real-time task graph workflow UX, continuation synthesis with step outputs and artifacts, single-step delegation folding, per-user runnable agent directory & task graph validation, and a redesigned AI Agent Workflows & Tasks Command Center (#5878).
|
|
8
|
+
- **Single-step task graph folding (`@memberjunction/ai-agents`).** `LoopAgentType.DetermineNextStep` automatically folds single-node `Tasks` emissions with no dependencies into an in-turn `Sub-Agent` step (`terminateAfter: false`) so single-agent delegations complete in a single conversation turn without spawning a background task graph, while preserving durable `Tasks` execution for multi-step (`2+` node) workflows. When an orchestrator with `ArtifactCreationMode = 'Never'` or `'System Only'` delegates a folded step to a specialist agent that produces artifacts, `AgentRunner.ProcessAgentArtifacts` resolves the specialist's `DefaultArtifactTypeID` and creation mode so deliverables are persisted and attached to the conversation message.
|
|
9
|
+
- **Per-user runnable agent directory, pre-submission task graph validation, and sub-agent workflow propagation (`@memberjunction/ai-engine-base`, `@memberjunction/aiengine`, `@memberjunction/ai-core-plus`, `@memberjunction/ai-agents`, `@memberjunction/task-graph`, `@memberjunction/server`).** `AIEngineBase.GetUserRunnableAgentDirectory(user)` caches a per-user directory of active top-level agents permitted by `CanUserRunAgent`, invalidated on agent and permission changes. `BaseAgent` preloads `availableAgentCount` / `availableAgentDetails` into prompt templates, validates `Tasks` step targets before submission (converting unknown or restricted agent/action references into a self-correcting `Retry` step with the user's permitted agent list), propagates `conversationDetailId` and `Paused` workflow-awaiting state from sub-agents (`Workflow Planner`) to parent runs (`Sage`), includes `agentRun.Message` in sub-agent result markdown, and settles/reinvokes ancestor runs along `ParentRunID` in `TaskGraphDispatcher` and `TaskGraphContinuationDeliverer`.
|
|
10
|
+
- **Live task graph telemetry, isolated step artifact persistence, and adaptive continuation delivery (`@memberjunction/server`, `@memberjunction/ai-agents`, `@memberjunction/conversations-runtime`).** `TaskGraphAgentRunner` resolves the originating `ConversationDetailID`, passes `inputArtifacts: []` to isolate task-graph step runs from earlier conversation turn artifacts, and forces `behavior: 'create-new'` when persisting step deliverables so sibling/prior artifacts are never overwritten as `v2`. `AgentRunner.ProcessAgentArtifacts` infers `Research Content` (`report.html`) and extracts `report.name` / `report.description` / `synthesis.executiveSummary` for report-producing specialist steps. `TaskGraphContinuationDeliverer` strips inherited upstream keys from merged `OutputPayload`s, updates the originating workflow message in-place when no intervening messages were sent (`origin.IsLatest`), or posts a bottom continuation reply linked via `ConversationDetail.ParentID` when intervening messages were sent while the workflow ran.
|
|
11
|
+
- **First-class inline Workflow Execution Card, Workflow Context Header, & real-time chat reconciliation (`@memberjunction/ng-conversations`).** `ConversationChatAreaComponent` and `MessageItemComponent` reconcile live `TaskGraphProgress` frames in place, deduplicate parent container tasks from executable step rows, strip inherited upstream payload keys from step summaries, and render a relational `.workflow-continuation-banner` (`Completed workflow · <Name> · View workflow ↑`) on bottom continuation replies that scrolls to and highlights the originating workflow turn.
|
|
12
|
+
- **AI Agent Workflows & Tasks Command Center (`@memberjunction/ng-conversations`, `@memberjunction/ng-tasks`, `@memberjunction/ng-explorer-core`).** Redesigned `TasksFullViewComponent` with a 5-metric KPI telemetry ribbon, instant search and status/agent filters, a **Workflow Cards** DAG view, a second-resolution **Execution Timeline & DAG** waterfall view, and a slide-over **Step Inspector Drawer** with one-click navigation back to the originating conversation.
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [0d81c53]
|
|
15
|
+
- Updated dependencies [0cc6b08]
|
|
16
|
+
- Updated dependencies [0cc6b08]
|
|
17
|
+
- Updated dependencies [0cc6b08]
|
|
18
|
+
- Updated dependencies [39b35f1]
|
|
19
|
+
- Updated dependencies [3080e83]
|
|
20
|
+
- Updated dependencies [c159e2f]
|
|
21
|
+
- Updated dependencies [29129bd]
|
|
22
|
+
- Updated dependencies [db39145]
|
|
23
|
+
- Updated dependencies [b14c72f]
|
|
24
|
+
- Updated dependencies [5e4205c]
|
|
25
|
+
- Updated dependencies [81aea34]
|
|
26
|
+
- Updated dependencies [ac9b00b]
|
|
27
|
+
- Updated dependencies [5465489]
|
|
28
|
+
- Updated dependencies [83486cf]
|
|
29
|
+
- Updated dependencies [d29b5c2]
|
|
30
|
+
- Updated dependencies [8b62f8c]
|
|
31
|
+
- Updated dependencies [0c634ba]
|
|
32
|
+
- Updated dependencies [223669e]
|
|
33
|
+
- Updated dependencies [2274f42]
|
|
34
|
+
- Updated dependencies [5fed75a]
|
|
35
|
+
- Updated dependencies [1cb1d52]
|
|
36
|
+
- Updated dependencies [db39145]
|
|
37
|
+
- Updated dependencies [b73e3bc]
|
|
38
|
+
- Updated dependencies [08be974]
|
|
39
|
+
- Updated dependencies [7e72c86]
|
|
40
|
+
- Updated dependencies [5fed75a]
|
|
41
|
+
- Updated dependencies [ce758af]
|
|
42
|
+
- Updated dependencies [2a7a098]
|
|
43
|
+
- Updated dependencies [8420f36]
|
|
44
|
+
- Updated dependencies [1d29837]
|
|
45
|
+
- Updated dependencies [8c120db]
|
|
46
|
+
- Updated dependencies [3ab85f9]
|
|
47
|
+
- Updated dependencies [0cc6b08]
|
|
48
|
+
- Updated dependencies [17a4137]
|
|
49
|
+
- Updated dependencies [b4afc13]
|
|
50
|
+
- Updated dependencies [5f707d1]
|
|
51
|
+
- Updated dependencies [e1f2583]
|
|
52
|
+
- Updated dependencies [dc38250]
|
|
53
|
+
- @memberjunction/core-entities@6.2.0-edge.5
|
|
54
|
+
- @memberjunction/ai-core-plus@6.2.0-edge.5
|
|
55
|
+
- @memberjunction/ai-engine-base@6.2.0-edge.5
|
|
56
|
+
- @memberjunction/core@6.2.0-edge.5
|
|
57
|
+
- @memberjunction/global@6.2.0-edge.5
|
|
58
|
+
- @memberjunction/ng-shared-generic@6.2.0-edge.5
|
|
59
|
+
|
|
60
|
+
## 6.2.0-edge.4
|
|
61
|
+
|
|
62
|
+
### Patch Changes
|
|
63
|
+
|
|
64
|
+
- Updated dependencies [96d6ec2]
|
|
65
|
+
- Updated dependencies [a709bb6]
|
|
66
|
+
- Updated dependencies [51c469d]
|
|
67
|
+
- Updated dependencies [432cb73]
|
|
68
|
+
- Updated dependencies [1d6e3e8]
|
|
69
|
+
- Updated dependencies [de2dc2f]
|
|
70
|
+
- Updated dependencies [822ed69]
|
|
71
|
+
- Updated dependencies [0dbd455]
|
|
72
|
+
- Updated dependencies [49f26d9]
|
|
73
|
+
- Updated dependencies [7384dd6]
|
|
74
|
+
- Updated dependencies [88e6902]
|
|
75
|
+
- Updated dependencies [bb3028a]
|
|
76
|
+
- Updated dependencies [6dc3aa9]
|
|
77
|
+
- Updated dependencies [c87f87a]
|
|
78
|
+
- Updated dependencies [0a7c255]
|
|
79
|
+
- Updated dependencies [d86bcbc]
|
|
80
|
+
- Updated dependencies [7316ac3]
|
|
81
|
+
- Updated dependencies [08b3d7b]
|
|
82
|
+
- Updated dependencies [1ea4085]
|
|
83
|
+
- Updated dependencies [975948b]
|
|
84
|
+
- Updated dependencies [22c9074]
|
|
85
|
+
- Updated dependencies [88b85fc]
|
|
86
|
+
- Updated dependencies [aee2d53]
|
|
87
|
+
- Updated dependencies [f0c78c3]
|
|
88
|
+
- Updated dependencies [25f7b82]
|
|
89
|
+
- Updated dependencies [02bb563]
|
|
90
|
+
- Updated dependencies [90829e3]
|
|
91
|
+
- Updated dependencies [aac148b]
|
|
92
|
+
- Updated dependencies [d52f9ba]
|
|
93
|
+
- Updated dependencies [0e5a4cd]
|
|
94
|
+
- Updated dependencies [b968642]
|
|
95
|
+
- Updated dependencies [68a7e3b]
|
|
96
|
+
- Updated dependencies [57fea6a]
|
|
97
|
+
- Updated dependencies [1ba9315]
|
|
98
|
+
- Updated dependencies [b8a9e5e]
|
|
99
|
+
- Updated dependencies [e8258a1]
|
|
100
|
+
- @memberjunction/ai-core-plus@6.2.0-edge.4
|
|
101
|
+
- @memberjunction/core-entities@6.2.0-edge.4
|
|
102
|
+
- @memberjunction/ai-engine-base@6.2.0-edge.4
|
|
103
|
+
- @memberjunction/core@6.2.0-edge.4
|
|
104
|
+
- @memberjunction/ng-shared-generic@6.2.0-edge.4
|
|
105
|
+
- @memberjunction/global@6.2.0-edge.4
|
|
106
|
+
|
|
3
107
|
## 6.2.0-edge.3
|
|
4
108
|
|
|
5
109
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -88,6 +88,7 @@ export class YourComponent {}
|
|
|
88
88
|
| `TaskComponent` | `mj-task` | Composite wrapper with view toggle |
|
|
89
89
|
| `SimpleTaskViewerComponent` | `mj-simple-task-viewer` | Hierarchical list view |
|
|
90
90
|
| `GanttTaskViewerComponent` | `mj-gantt-task-viewer` | Gantt chart timeline |
|
|
91
|
+
| `TaskDetailPanelComponent` | `mj-task-detail-panel` | Slide-over task inspector panel with separated instructions, agent output/error sections, progress bar, and AI Agent Run deep-link |
|
|
91
92
|
|
|
92
93
|
## TaskComponent API
|
|
93
94
|
|
|
@@ -51,6 +51,10 @@ export declare class TaskDetailPanelComponent implements OnInit, OnChanges {
|
|
|
51
51
|
OpenAgent(): void;
|
|
52
52
|
/** @deprecated Use {@link OpenAgent}. */
|
|
53
53
|
openAgent(): void;
|
|
54
|
+
get EffectiveAgentRunId(): string | null;
|
|
55
|
+
get TaskInstructions(): string;
|
|
56
|
+
get TaskOutput(): string | null;
|
|
57
|
+
get IsErrorOutput(): boolean;
|
|
54
58
|
OpenAgentRun(): void;
|
|
55
59
|
/** @deprecated Use {@link OpenAgentRun}. */
|
|
56
60
|
openAgentRun(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-detail-panel.component.d.ts","sourceRoot":"","sources":["../../../src/lib/components/task-detail-panel.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1F,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAE7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;;AAGvE;;;GAGG;AACH,
|
|
1
|
+
{"version":3,"file":"task-detail-panel.component.d.ts","sourceRoot":"","sources":["../../../src/lib/components/task-detail-panel.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1F,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAE7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;;AAGvE;;;GAGG;AACH,qBA6Ra,wBAAyB,YAAW,MAAM,EAAE,SAAS;IACvD,IAAI,EAAG,YAAY,CAAC;IAE7B,oCAAoC;IACpC,IAAa,IAAI,CAAC,KAAK,EAAE,YAAY,EAEpC;IACD,oCAAoC;IACpC,IAAI,IAAI,IAAI,YAAY,CAEvB;IACQ,UAAU,EAAE,MAAM,GAAG,IAAI,CAAQ;IAChC,UAAU,qBAA4B;IAEhD;;;;;;OAMG;IACO,UAAU,qBAAmB;IAC7B,gBAAgB;oBAAkC,MAAM;kBAAY,MAAM;OAAM;IAE1F;;;;;;OAMG;IACO,gBAAgB;oBATkC,MAAM;kBAAY,MAAM;OASjC;IAE5C,KAAK,EAAE,uBAAuB,GAAG,IAAI,CAAQ;IAEpD,qCAAqC;IACrC,IAAW,KAAK,IAAI,uBAAuB,GAAG,IAAI,CAEjD;IACD,qCAAqC;IACrC,IAAW,KAAK,CAAC,KAAK,EAAE,uBAAuB,GAAG,IAAI,EAErD;IAED,QAAQ,IAAI,IAAI;IAIhB,WAAW,IAAI,IAAI;YAIL,aAAa;IAYpB,cAAc,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,MAAM;IAYhD,8CAA8C;IACvC,cAAc,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,MAAM;IAIzC,SAAS,IAAI,IAAI;IASxB,yCAAyC;IAClC,SAAS,IAAI,IAAI;IAIxB,IAAW,mBAAmB,IAAI,MAAM,GAAG,IAAI,CAE9C;IAED,IAAW,gBAAgB,IAAI,MAAM,CAapC;IAED,IAAW,UAAU,IAAI,MAAM,GAAG,IAAI,CAarC;IAED,IAAW,aAAa,IAAI,OAAO,CAGlC;IAEM,YAAY,IAAI,IAAI;IAU3B,4CAA4C;IACrC,YAAY,IAAI,IAAI;yCAjJhB,wBAAwB;2CAAxB,wBAAwB;CAoJpC"}
|
|
@@ -6,20 +6,36 @@ function TaskDetailPanelComponent_Conditional_7_Template(rf, ctx) { if (rf & 1)
|
|
|
6
6
|
i0.ɵɵdomElementStart(0, "div", 5)(1, "label");
|
|
7
7
|
i0.ɵɵtext(2, "Description");
|
|
8
8
|
i0.ɵɵdomElementEnd();
|
|
9
|
-
i0.ɵɵdomElementStart(3, "p");
|
|
9
|
+
i0.ɵɵdomElementStart(3, "p", 6);
|
|
10
10
|
i0.ɵɵtext(4);
|
|
11
11
|
i0.ɵɵdomElementEnd()();
|
|
12
12
|
} if (rf & 2) {
|
|
13
13
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
14
14
|
i0.ɵɵadvance(4);
|
|
15
|
-
i0.ɵɵtextInterpolate(ctx_r0.
|
|
15
|
+
i0.ɵɵtextInterpolate(ctx_r0.TaskInstructions);
|
|
16
16
|
} }
|
|
17
|
-
function
|
|
17
|
+
function TaskDetailPanelComponent_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
18
|
+
i0.ɵɵdomElementStart(0, "div", 5)(1, "label");
|
|
19
|
+
i0.ɵɵtext(2);
|
|
20
|
+
i0.ɵɵdomElementEnd();
|
|
21
|
+
i0.ɵɵdomElementStart(3, "div", 7);
|
|
22
|
+
i0.ɵɵtext(4);
|
|
23
|
+
i0.ɵɵdomElementEnd()();
|
|
24
|
+
} if (rf & 2) {
|
|
25
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
26
|
+
i0.ɵɵadvance(2);
|
|
27
|
+
i0.ɵɵtextInterpolate(ctx_r0.IsErrorOutput ? "Error Details" : "Agent Output");
|
|
28
|
+
i0.ɵɵadvance();
|
|
29
|
+
i0.ɵɵclassProp("error-output", ctx_r0.IsErrorOutput);
|
|
30
|
+
i0.ɵɵadvance();
|
|
31
|
+
i0.ɵɵtextInterpolate(ctx_r0.TaskOutput);
|
|
32
|
+
} }
|
|
33
|
+
function TaskDetailPanelComponent_Conditional_14_Template(rf, ctx) { if (rf & 1) {
|
|
18
34
|
i0.ɵɵdomElementStart(0, "div", 5)(1, "label");
|
|
19
35
|
i0.ɵɵtext(2, "Progress");
|
|
20
36
|
i0.ɵɵdomElementEnd();
|
|
21
|
-
i0.ɵɵdomElementStart(3, "div",
|
|
22
|
-
i0.ɵɵdomElement(5, "div",
|
|
37
|
+
i0.ɵɵdomElementStart(3, "div", 8)(4, "div", 9);
|
|
38
|
+
i0.ɵɵdomElement(5, "div", 10);
|
|
23
39
|
i0.ɵɵdomElementEnd();
|
|
24
40
|
i0.ɵɵdomElementStart(6, "span");
|
|
25
41
|
i0.ɵɵtext(7);
|
|
@@ -31,7 +47,7 @@ function TaskDetailPanelComponent_Conditional_13_Template(rf, ctx) { if (rf & 1)
|
|
|
31
47
|
i0.ɵɵadvance(2);
|
|
32
48
|
i0.ɵɵtextInterpolate1("", ctx_r0.task.PercentComplete, "%");
|
|
33
49
|
} }
|
|
34
|
-
function
|
|
50
|
+
function TaskDetailPanelComponent_Conditional_15_Template(rf, ctx) { if (rf & 1) {
|
|
35
51
|
i0.ɵɵdomElementStart(0, "div", 5)(1, "label");
|
|
36
52
|
i0.ɵɵtext(2, "Started");
|
|
37
53
|
i0.ɵɵdomElementEnd();
|
|
@@ -43,7 +59,7 @@ function TaskDetailPanelComponent_Conditional_14_Template(rf, ctx) { if (rf & 1)
|
|
|
43
59
|
i0.ɵɵadvance(4);
|
|
44
60
|
i0.ɵɵtextInterpolate(ctx_r0.formatDateTime(ctx_r0.task.StartedAt));
|
|
45
61
|
} }
|
|
46
|
-
function
|
|
62
|
+
function TaskDetailPanelComponent_Conditional_16_Template(rf, ctx) { if (rf & 1) {
|
|
47
63
|
i0.ɵɵdomElementStart(0, "div", 5)(1, "label");
|
|
48
64
|
i0.ɵɵtext(2, "Due");
|
|
49
65
|
i0.ɵɵdomElementEnd();
|
|
@@ -55,7 +71,7 @@ function TaskDetailPanelComponent_Conditional_15_Template(rf, ctx) { if (rf & 1)
|
|
|
55
71
|
i0.ɵɵadvance(4);
|
|
56
72
|
i0.ɵɵtextInterpolate(ctx_r0.formatDateTime(ctx_r0.task.DueAt));
|
|
57
73
|
} }
|
|
58
|
-
function
|
|
74
|
+
function TaskDetailPanelComponent_Conditional_17_Template(rf, ctx) { if (rf & 1) {
|
|
59
75
|
i0.ɵɵdomElementStart(0, "div", 5)(1, "label");
|
|
60
76
|
i0.ɵɵtext(2, "Completed");
|
|
61
77
|
i0.ɵɵdomElementEnd();
|
|
@@ -67,7 +83,7 @@ function TaskDetailPanelComponent_Conditional_16_Template(rf, ctx) { if (rf & 1)
|
|
|
67
83
|
i0.ɵɵadvance(4);
|
|
68
84
|
i0.ɵɵtextInterpolate(ctx_r0.formatDateTime(ctx_r0.task.CompletedAt));
|
|
69
85
|
} }
|
|
70
|
-
function
|
|
86
|
+
function TaskDetailPanelComponent_Conditional_18_Template(rf, ctx) { if (rf & 1) {
|
|
71
87
|
i0.ɵɵdomElementStart(0, "div", 5)(1, "label");
|
|
72
88
|
i0.ɵɵtext(2, "Assigned User");
|
|
73
89
|
i0.ɵɵdomElementEnd();
|
|
@@ -79,18 +95,18 @@ function TaskDetailPanelComponent_Conditional_17_Template(rf, ctx) { if (rf & 1)
|
|
|
79
95
|
i0.ɵɵadvance(4);
|
|
80
96
|
i0.ɵɵtextInterpolate(ctx_r0.task.User);
|
|
81
97
|
} }
|
|
82
|
-
function
|
|
98
|
+
function TaskDetailPanelComponent_Conditional_19_Template(rf, ctx) { if (rf & 1) {
|
|
83
99
|
const _r2 = i0.ɵɵgetCurrentView();
|
|
84
100
|
i0.ɵɵdomElementStart(0, "div", 5)(1, "label");
|
|
85
101
|
i0.ɵɵtext(2, "Agent");
|
|
86
102
|
i0.ɵɵdomElementEnd();
|
|
87
|
-
i0.ɵɵdomElementStart(3, "div",
|
|
88
|
-
i0.ɵɵdomListener("click", function
|
|
89
|
-
i0.ɵɵdomElement(4, "i",
|
|
90
|
-
i0.ɵɵdomElementStart(5, "span",
|
|
103
|
+
i0.ɵɵdomElementStart(3, "div", 11);
|
|
104
|
+
i0.ɵɵdomListener("click", function TaskDetailPanelComponent_Conditional_19_Template_div_click_3_listener() { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.openAgent()); });
|
|
105
|
+
i0.ɵɵdomElement(4, "i", 12);
|
|
106
|
+
i0.ɵɵdomElementStart(5, "span", 13);
|
|
91
107
|
i0.ɵɵtext(6);
|
|
92
108
|
i0.ɵɵdomElementEnd();
|
|
93
|
-
i0.ɵɵdomElement(7, "i",
|
|
109
|
+
i0.ɵɵdomElement(7, "i", 14);
|
|
94
110
|
i0.ɵɵdomElementEnd()();
|
|
95
111
|
} if (rf & 2) {
|
|
96
112
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
@@ -99,17 +115,17 @@ function TaskDetailPanelComponent_Conditional_18_Template(rf, ctx) { if (rf & 1)
|
|
|
99
115
|
i0.ɵɵadvance(2);
|
|
100
116
|
i0.ɵɵtextInterpolate(ctx_r0.agent.Name);
|
|
101
117
|
} }
|
|
102
|
-
function
|
|
118
|
+
function TaskDetailPanelComponent_Conditional_20_Template(rf, ctx) { if (rf & 1) {
|
|
103
119
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
104
120
|
i0.ɵɵdomElementStart(0, "div", 5)(1, "label");
|
|
105
121
|
i0.ɵɵtext(2, "Agent Run");
|
|
106
122
|
i0.ɵɵdomElementEnd();
|
|
107
|
-
i0.ɵɵdomElementStart(3, "div",
|
|
108
|
-
i0.ɵɵdomListener("click", function
|
|
123
|
+
i0.ɵɵdomElementStart(3, "div", 15);
|
|
124
|
+
i0.ɵɵdomListener("click", function TaskDetailPanelComponent_Conditional_20_Template_div_click_3_listener() { i0.ɵɵrestoreView(_r3); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.openAgentRun()); });
|
|
109
125
|
i0.ɵɵdomElementStart(4, "span");
|
|
110
126
|
i0.ɵɵtext(5, "View Run Details");
|
|
111
127
|
i0.ɵɵdomElementEnd();
|
|
112
|
-
i0.ɵɵdomElement(6, "i",
|
|
128
|
+
i0.ɵɵdomElement(6, "i", 14);
|
|
113
129
|
i0.ɵɵdomElementEnd()();
|
|
114
130
|
} }
|
|
115
131
|
/**
|
|
@@ -198,11 +214,47 @@ export class TaskDetailPanelComponent {
|
|
|
198
214
|
openAgent() {
|
|
199
215
|
return this.OpenAgent();
|
|
200
216
|
}
|
|
217
|
+
get EffectiveAgentRunId() {
|
|
218
|
+
return this.agentRunId || this.Task?.AgentRunID || null;
|
|
219
|
+
}
|
|
220
|
+
get TaskInstructions() {
|
|
221
|
+
const desc = this.Task?.Description || '';
|
|
222
|
+
const outputMarker = '\n\n--- Output ---\n';
|
|
223
|
+
const errorMarker = '\n\n--- Error ---\n';
|
|
224
|
+
const outIdx = desc.indexOf(outputMarker);
|
|
225
|
+
if (outIdx >= 0) {
|
|
226
|
+
return desc.substring(0, outIdx).trim();
|
|
227
|
+
}
|
|
228
|
+
const errIdx = desc.indexOf(errorMarker);
|
|
229
|
+
if (errIdx >= 0) {
|
|
230
|
+
return desc.substring(0, errIdx).trim();
|
|
231
|
+
}
|
|
232
|
+
return desc.trim();
|
|
233
|
+
}
|
|
234
|
+
get TaskOutput() {
|
|
235
|
+
const desc = this.Task?.Description || '';
|
|
236
|
+
const outputMarker = '\n\n--- Output ---\n';
|
|
237
|
+
const errorMarker = '\n\n--- Error ---\n';
|
|
238
|
+
const outIdx = desc.indexOf(outputMarker);
|
|
239
|
+
if (outIdx >= 0) {
|
|
240
|
+
return desc.substring(outIdx + outputMarker.length).trim();
|
|
241
|
+
}
|
|
242
|
+
const errIdx = desc.indexOf(errorMarker);
|
|
243
|
+
if (errIdx >= 0) {
|
|
244
|
+
return desc.substring(errIdx + errorMarker.length).trim();
|
|
245
|
+
}
|
|
246
|
+
return null;
|
|
247
|
+
}
|
|
248
|
+
get IsErrorOutput() {
|
|
249
|
+
const desc = this.Task?.Description || '';
|
|
250
|
+
return desc.includes('\n\n--- Error ---\n');
|
|
251
|
+
}
|
|
201
252
|
OpenAgentRun() {
|
|
202
|
-
|
|
253
|
+
const runId = this.EffectiveAgentRunId;
|
|
254
|
+
if (runId) {
|
|
203
255
|
this.OpenEntityRecord.emit({
|
|
204
256
|
entityName: 'MJ: AI Agent Runs',
|
|
205
|
-
recordId:
|
|
257
|
+
recordId: runId
|
|
206
258
|
});
|
|
207
259
|
}
|
|
208
260
|
}
|
|
@@ -211,7 +263,7 @@ export class TaskDetailPanelComponent {
|
|
|
211
263
|
return this.OpenAgentRun();
|
|
212
264
|
}
|
|
213
265
|
static ɵfac = function TaskDetailPanelComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TaskDetailPanelComponent)(); };
|
|
214
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TaskDetailPanelComponent, selectors: [["mj-task-detail-panel"]], inputs: { Task: "Task", task: "task", agentRunId: "agentRunId" }, outputs: { ClosePanel: "ClosePanel", closePanel: "closePanel", OpenEntityRecord: "OpenEntityRecord", openEntityRecord: "openEntityRecord" }, features: [i0.ɵɵNgOnChangesFeature], decls:
|
|
266
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TaskDetailPanelComponent, selectors: [["mj-task-detail-panel"]], inputs: { Task: "Task", task: "task", agentRunId: "agentRunId" }, outputs: { ClosePanel: "ClosePanel", closePanel: "closePanel", OpenEntityRecord: "OpenEntityRecord", openEntityRecord: "openEntityRecord" }, features: [i0.ɵɵNgOnChangesFeature], decls: 21, vars: 11, consts: [[1, "task-detail-panel"], [1, "detail-header"], [1, "close-detail-btn", 3, "click"], [1, "fas", "fa-times"], [1, "detail-content"], [1, "detail-field"], [1, "detail-pre-text"], [1, "detail-output-box"], [1, "detail-progress"], [1, "progress-bar-detail"], [1, "progress-fill-detail"], [1, "agent-info", 3, "click"], [1, "agent-icon"], [1, "agent-name"], [1, "fas", "fa-external-link-alt", "link-icon"], [1, "agent-run-link", 3, "click"]], template: function TaskDetailPanelComponent_Template(rf, ctx) { if (rf & 1) {
|
|
215
267
|
i0.ɵɵdomElementStart(0, "div", 0)(1, "div", 1)(2, "h3");
|
|
216
268
|
i0.ɵɵtext(3);
|
|
217
269
|
i0.ɵɵdomElementEnd();
|
|
@@ -221,42 +273,45 @@ export class TaskDetailPanelComponent {
|
|
|
221
273
|
i0.ɵɵdomElementEnd()();
|
|
222
274
|
i0.ɵɵdomElementStart(6, "div", 4);
|
|
223
275
|
i0.ɵɵconditionalCreate(7, TaskDetailPanelComponent_Conditional_7_Template, 5, 1, "div", 5);
|
|
224
|
-
i0.ɵɵ
|
|
225
|
-
i0.ɵɵ
|
|
276
|
+
i0.ɵɵconditionalCreate(8, TaskDetailPanelComponent_Conditional_8_Template, 5, 4, "div", 5);
|
|
277
|
+
i0.ɵɵdomElementStart(9, "div", 5)(10, "label");
|
|
278
|
+
i0.ɵɵtext(11, "Status");
|
|
226
279
|
i0.ɵɵdomElementEnd();
|
|
227
|
-
i0.ɵɵdomElementStart(
|
|
228
|
-
i0.ɵɵtext(
|
|
280
|
+
i0.ɵɵdomElementStart(12, "p");
|
|
281
|
+
i0.ɵɵtext(13);
|
|
229
282
|
i0.ɵɵdomElementEnd()();
|
|
230
|
-
i0.ɵɵconditionalCreate(
|
|
231
|
-
i0.ɵɵconditionalCreate(14, TaskDetailPanelComponent_Conditional_14_Template, 5, 1, "div", 5);
|
|
283
|
+
i0.ɵɵconditionalCreate(14, TaskDetailPanelComponent_Conditional_14_Template, 8, 3, "div", 5);
|
|
232
284
|
i0.ɵɵconditionalCreate(15, TaskDetailPanelComponent_Conditional_15_Template, 5, 1, "div", 5);
|
|
233
285
|
i0.ɵɵconditionalCreate(16, TaskDetailPanelComponent_Conditional_16_Template, 5, 1, "div", 5);
|
|
234
286
|
i0.ɵɵconditionalCreate(17, TaskDetailPanelComponent_Conditional_17_Template, 5, 1, "div", 5);
|
|
235
|
-
i0.ɵɵconditionalCreate(18, TaskDetailPanelComponent_Conditional_18_Template,
|
|
236
|
-
i0.ɵɵconditionalCreate(19, TaskDetailPanelComponent_Conditional_19_Template,
|
|
287
|
+
i0.ɵɵconditionalCreate(18, TaskDetailPanelComponent_Conditional_18_Template, 5, 1, "div", 5);
|
|
288
|
+
i0.ɵɵconditionalCreate(19, TaskDetailPanelComponent_Conditional_19_Template, 8, 3, "div", 5);
|
|
289
|
+
i0.ɵɵconditionalCreate(20, TaskDetailPanelComponent_Conditional_20_Template, 7, 0, "div", 5);
|
|
237
290
|
i0.ɵɵdomElementEnd()();
|
|
238
291
|
} if (rf & 2) {
|
|
239
292
|
i0.ɵɵadvance(3);
|
|
240
293
|
i0.ɵɵtextInterpolate(ctx.task.Name);
|
|
241
294
|
i0.ɵɵadvance(4);
|
|
242
|
-
i0.ɵɵconditional(ctx.
|
|
295
|
+
i0.ɵɵconditional(ctx.TaskInstructions ? 7 : -1);
|
|
296
|
+
i0.ɵɵadvance();
|
|
297
|
+
i0.ɵɵconditional(ctx.TaskOutput ? 8 : -1);
|
|
243
298
|
i0.ɵɵadvance(5);
|
|
244
299
|
i0.ɵɵtextInterpolate(ctx.task.Status);
|
|
245
300
|
i0.ɵɵadvance();
|
|
246
|
-
i0.ɵɵconditional(ctx.task.PercentComplete != null ?
|
|
301
|
+
i0.ɵɵconditional(ctx.task.PercentComplete != null ? 14 : -1);
|
|
247
302
|
i0.ɵɵadvance();
|
|
248
|
-
i0.ɵɵconditional(ctx.task.StartedAt ?
|
|
303
|
+
i0.ɵɵconditional(ctx.task.StartedAt ? 15 : -1);
|
|
249
304
|
i0.ɵɵadvance();
|
|
250
|
-
i0.ɵɵconditional(ctx.task.DueAt ?
|
|
305
|
+
i0.ɵɵconditional(ctx.task.DueAt ? 16 : -1);
|
|
251
306
|
i0.ɵɵadvance();
|
|
252
|
-
i0.ɵɵconditional(ctx.task.CompletedAt ?
|
|
307
|
+
i0.ɵɵconditional(ctx.task.CompletedAt ? 17 : -1);
|
|
253
308
|
i0.ɵɵadvance();
|
|
254
|
-
i0.ɵɵconditional(ctx.task.User ?
|
|
309
|
+
i0.ɵɵconditional(ctx.task.User ? 18 : -1);
|
|
255
310
|
i0.ɵɵadvance();
|
|
256
|
-
i0.ɵɵconditional(ctx.agent ?
|
|
311
|
+
i0.ɵɵconditional(ctx.agent ? 19 : -1);
|
|
257
312
|
i0.ɵɵadvance();
|
|
258
|
-
i0.ɵɵconditional(ctx.
|
|
259
|
-
} }, styles: [".task-detail-panel[_ngcontent-%COMP%] {\n width: 100%;\n height: calc(100% - 45px);\n background: var(--mj-bg-surface);\n display: flex;\n flex-direction: column;\n overflow: hidden;\n }\n\n .detail-header[_ngcontent-%COMP%] {\n padding: 20px;\n border-bottom: 1px solid var(--mj-border-default);\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n background: var(--mj-bg-surface-sunken);\n flex-shrink: 0;\n }\n\n .detail-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] {\n margin: 0;\n font-size: 18px;\n font-weight: 600;\n color: var(--mj-text-primary);\n flex: 1;\n padding-right: 12px;\n }\n\n .close-detail-btn[_ngcontent-%COMP%] {\n background: none;\n border: none;\n color: var(--mj-text-muted);\n cursor: pointer;\n padding: 4px;\n width: 28px;\n height: 28px;\n border-radius: 4px;\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n }\n\n .close-detail-btn[_ngcontent-%COMP%]:hover {\n background: var(--mj-border-default);\n color: var(--mj-text-primary);\n }\n\n .detail-content[_ngcontent-%COMP%] {\n padding: 20px;\n flex: 1;\n min-height: 0;\n overflow-y: auto;\n }\n\n .detail-field[_ngcontent-%COMP%] {\n margin-bottom: 20px;\n }\n\n .detail-field[_ngcontent-%COMP%]:last-child {\n margin-bottom: 0;\n }\n\n .detail-field[_ngcontent-%COMP%] label[_ngcontent-%COMP%] {\n display: block;\n font-size: 12px;\n font-weight: 600;\n color: var(--mj-text-muted);\n text-transform: uppercase;\n letter-spacing: 0.5px;\n margin-bottom: 6px;\n }\n\n .detail-field[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n margin: 0;\n font-size: 14px;\n color: var(--mj-text-primary);\n line-height: 1.5;\n }\n\n .detail-progress[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 12px;\n }\n\n .progress-bar-detail[_ngcontent-%COMP%] {\n flex: 1;\n height: 8px;\n background: var(--mj-border-default);\n border-radius: 4px;\n overflow: hidden;\n }\n\n .progress-fill-detail[_ngcontent-%COMP%] {\n height:
|
|
313
|
+
i0.ɵɵconditional(ctx.EffectiveAgentRunId ? 20 : -1);
|
|
314
|
+
} }, styles: [".task-detail-panel[_ngcontent-%COMP%] {\n width: 100%;\n height: calc(100% - 45px);\n background: var(--mj-bg-surface);\n display: flex;\n flex-direction: column;\n overflow: hidden;\n }\n\n .detail-header[_ngcontent-%COMP%] {\n padding: 20px;\n border-bottom: 1px solid var(--mj-border-default);\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n background: var(--mj-bg-surface-sunken);\n flex-shrink: 0;\n }\n\n .detail-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] {\n margin: 0;\n font-size: 18px;\n font-weight: 600;\n color: var(--mj-text-primary);\n flex: 1;\n padding-right: 12px;\n }\n\n .close-detail-btn[_ngcontent-%COMP%] {\n background: none;\n border: none;\n color: var(--mj-text-muted);\n cursor: pointer;\n padding: 4px;\n width: 28px;\n height: 28px;\n border-radius: 4px;\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n }\n\n .close-detail-btn[_ngcontent-%COMP%]:hover {\n background: var(--mj-border-default);\n color: var(--mj-text-primary);\n }\n\n .detail-content[_ngcontent-%COMP%] {\n padding: 20px;\n flex: 1;\n min-height: 0;\n overflow-y: auto;\n }\n\n .detail-field[_ngcontent-%COMP%] {\n margin-bottom: 20px;\n }\n\n .detail-field[_ngcontent-%COMP%]:last-child {\n margin-bottom: 0;\n }\n\n .detail-field[_ngcontent-%COMP%] label[_ngcontent-%COMP%] {\n display: block;\n font-size: 12px;\n font-weight: 600;\n color: var(--mj-text-muted);\n text-transform: uppercase;\n letter-spacing: 0.5px;\n margin-bottom: 6px;\n }\n\n .detail-field[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n margin: 0;\n font-size: 14px;\n color: var(--mj-text-primary);\n line-height: 1.5;\n }\n\n .detail-pre-text[_ngcontent-%COMP%] {\n white-space: pre-wrap;\n word-break: break-word;\n }\n\n .detail-output-box[_ngcontent-%COMP%] {\n padding: 12px;\n background: var(--mj-bg-surface-sunken);\n border: 1px solid var(--mj-border-default);\n border-radius: 6px;\n font-size: 13px;\n color: var(--mj-text-primary);\n line-height: 1.55;\n white-space: pre-wrap;\n word-break: break-word;\n max-height: 280px;\n overflow-y: auto;\n }\n\n .detail-output-box.error-output[_ngcontent-%COMP%] {\n border-color: var(--mj-status-error);\n color: var(--mj-status-error);\n }\n\n .detail-progress[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 12px;\n }\n\n .progress-bar-detail[_ngcontent-%COMP%] {\n flex: 1;\n height: 8px;\n background: var(--mj-border-default);\n border-radius: 4px;\n overflow: hidden;\n }\n\n .progress-fill-detail[_ngcontent-%COMP%] {\n height: 100%;\n background: var(--mj-brand-primary);\n transition: width 0.3s ease;\n }\n\n .detail-progress[_ngcontent-%COMP%] span[_ngcontent-%COMP%] {\n font-size: 13px;\n font-weight: 600;\n color: var(--mj-text-muted);\n min-width: 40px;\n }\n\n .agent-info[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 10px;\n padding: 10px 12px;\n background: var(--mj-bg-surface-sunken);\n border-radius: 6px;\n cursor: pointer;\n transition: all 0.15s;\n }\n\n .agent-info[_ngcontent-%COMP%]:hover {\n background: var(--mj-border-default);\n }\n\n .agent-icon[_ngcontent-%COMP%] {\n font-size: 18px;\n color: var(--mj-brand-primary);\n }\n\n .agent-name[_ngcontent-%COMP%] {\n flex: 1;\n font-size: 14px;\n font-weight: 500;\n color: var(--mj-text-primary);\n }\n\n .link-icon[_ngcontent-%COMP%] {\n font-size: 12px;\n color: var(--mj-text-muted);\n }\n\n .agent-run-link[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 10px 12px;\n background: var(--mj-bg-surface-sunken);\n border-radius: 6px;\n cursor: pointer;\n transition: all 0.15s;\n }\n\n .agent-run-link[_ngcontent-%COMP%]:hover {\n background: var(--mj-border-default);\n }\n\n .agent-run-link[_ngcontent-%COMP%] span[_ngcontent-%COMP%] {\n flex: 1;\n font-size: 14px;\n font-weight: 500;\n color: var(--mj-text-primary);\n }"] });
|
|
260
315
|
}
|
|
261
316
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TaskDetailPanelComponent, [{
|
|
262
317
|
type: Component,
|
|
@@ -270,10 +325,17 @@ export class TaskDetailPanelComponent {
|
|
|
270
325
|
</div>
|
|
271
326
|
|
|
272
327
|
<div class="detail-content">
|
|
273
|
-
@if (
|
|
328
|
+
@if (TaskInstructions) {
|
|
274
329
|
<div class="detail-field">
|
|
275
330
|
<label>Description</label>
|
|
276
|
-
<p>{{
|
|
331
|
+
<p class="detail-pre-text">{{ TaskInstructions }}</p>
|
|
332
|
+
</div>
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
@if (TaskOutput) {
|
|
336
|
+
<div class="detail-field">
|
|
337
|
+
<label>{{ IsErrorOutput ? 'Error Details' : 'Agent Output' }}</label>
|
|
338
|
+
<div class="detail-output-box" [class.error-output]="IsErrorOutput">{{ TaskOutput }}</div>
|
|
277
339
|
</div>
|
|
278
340
|
}
|
|
279
341
|
|
|
@@ -335,7 +397,7 @@ export class TaskDetailPanelComponent {
|
|
|
335
397
|
}
|
|
336
398
|
|
|
337
399
|
<!-- Agent Run Information -->
|
|
338
|
-
@if (
|
|
400
|
+
@if (EffectiveAgentRunId) {
|
|
339
401
|
<div class="detail-field">
|
|
340
402
|
<label>Agent Run</label>
|
|
341
403
|
<div class="agent-run-link" (click)="openAgentRun()">
|
|
@@ -346,7 +408,7 @@ export class TaskDetailPanelComponent {
|
|
|
346
408
|
}
|
|
347
409
|
</div>
|
|
348
410
|
</div>
|
|
349
|
-
`, styles: ["\n .task-detail-panel {\n width: 100%;\n height: calc(100% - 45px);\n background: var(--mj-bg-surface);\n display: flex;\n flex-direction: column;\n overflow: hidden;\n }\n\n .detail-header {\n padding: 20px;\n border-bottom: 1px solid var(--mj-border-default);\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n background: var(--mj-bg-surface-sunken);\n flex-shrink: 0;\n }\n\n .detail-header h3 {\n margin: 0;\n font-size: 18px;\n font-weight: 600;\n color: var(--mj-text-primary);\n flex: 1;\n padding-right: 12px;\n }\n\n .close-detail-btn {\n background: none;\n border: none;\n color: var(--mj-text-muted);\n cursor: pointer;\n padding: 4px;\n width: 28px;\n height: 28px;\n border-radius: 4px;\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n }\n\n .close-detail-btn:hover {\n background: var(--mj-border-default);\n color: var(--mj-text-primary);\n }\n\n .detail-content {\n padding: 20px;\n flex: 1;\n min-height: 0;\n overflow-y: auto;\n }\n\n .detail-field {\n margin-bottom: 20px;\n }\n\n .detail-field:last-child {\n margin-bottom: 0;\n }\n\n .detail-field label {\n display: block;\n font-size: 12px;\n font-weight: 600;\n color: var(--mj-text-muted);\n text-transform: uppercase;\n letter-spacing: 0.5px;\n margin-bottom: 6px;\n }\n\n .detail-field p {\n margin: 0;\n font-size: 14px;\n color: var(--mj-text-primary);\n line-height: 1.5;\n }\n\n .detail-progress {\n display: flex;\n align-items: center;\n gap: 12px;\n }\n\n .progress-bar-detail {\n flex: 1;\n height: 8px;\n background: var(--mj-border-default);\n border-radius: 4px;\n overflow: hidden;\n }\n\n .progress-fill-detail {\n height:
|
|
411
|
+
`, styles: ["\n .task-detail-panel {\n width: 100%;\n height: calc(100% - 45px);\n background: var(--mj-bg-surface);\n display: flex;\n flex-direction: column;\n overflow: hidden;\n }\n\n .detail-header {\n padding: 20px;\n border-bottom: 1px solid var(--mj-border-default);\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n background: var(--mj-bg-surface-sunken);\n flex-shrink: 0;\n }\n\n .detail-header h3 {\n margin: 0;\n font-size: 18px;\n font-weight: 600;\n color: var(--mj-text-primary);\n flex: 1;\n padding-right: 12px;\n }\n\n .close-detail-btn {\n background: none;\n border: none;\n color: var(--mj-text-muted);\n cursor: pointer;\n padding: 4px;\n width: 28px;\n height: 28px;\n border-radius: 4px;\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n }\n\n .close-detail-btn:hover {\n background: var(--mj-border-default);\n color: var(--mj-text-primary);\n }\n\n .detail-content {\n padding: 20px;\n flex: 1;\n min-height: 0;\n overflow-y: auto;\n }\n\n .detail-field {\n margin-bottom: 20px;\n }\n\n .detail-field:last-child {\n margin-bottom: 0;\n }\n\n .detail-field label {\n display: block;\n font-size: 12px;\n font-weight: 600;\n color: var(--mj-text-muted);\n text-transform: uppercase;\n letter-spacing: 0.5px;\n margin-bottom: 6px;\n }\n\n .detail-field p {\n margin: 0;\n font-size: 14px;\n color: var(--mj-text-primary);\n line-height: 1.5;\n }\n\n .detail-pre-text {\n white-space: pre-wrap;\n word-break: break-word;\n }\n\n .detail-output-box {\n padding: 12px;\n background: var(--mj-bg-surface-sunken);\n border: 1px solid var(--mj-border-default);\n border-radius: 6px;\n font-size: 13px;\n color: var(--mj-text-primary);\n line-height: 1.55;\n white-space: pre-wrap;\n word-break: break-word;\n max-height: 280px;\n overflow-y: auto;\n }\n\n .detail-output-box.error-output {\n border-color: var(--mj-status-error);\n color: var(--mj-status-error);\n }\n\n .detail-progress {\n display: flex;\n align-items: center;\n gap: 12px;\n }\n\n .progress-bar-detail {\n flex: 1;\n height: 8px;\n background: var(--mj-border-default);\n border-radius: 4px;\n overflow: hidden;\n }\n\n .progress-fill-detail {\n height: 100%;\n background: var(--mj-brand-primary);\n transition: width 0.3s ease;\n }\n\n .detail-progress span {\n font-size: 13px;\n font-weight: 600;\n color: var(--mj-text-muted);\n min-width: 40px;\n }\n\n .agent-info {\n display: flex;\n align-items: center;\n gap: 10px;\n padding: 10px 12px;\n background: var(--mj-bg-surface-sunken);\n border-radius: 6px;\n cursor: pointer;\n transition: all 0.15s;\n }\n\n .agent-info:hover {\n background: var(--mj-border-default);\n }\n\n .agent-icon {\n font-size: 18px;\n color: var(--mj-brand-primary);\n }\n\n .agent-name {\n flex: 1;\n font-size: 14px;\n font-weight: 500;\n color: var(--mj-text-primary);\n }\n\n .link-icon {\n font-size: 12px;\n color: var(--mj-text-muted);\n }\n\n .agent-run-link {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 10px 12px;\n background: var(--mj-bg-surface-sunken);\n border-radius: 6px;\n cursor: pointer;\n transition: all 0.15s;\n }\n\n .agent-run-link:hover {\n background: var(--mj-border-default);\n }\n\n .agent-run-link span {\n flex: 1;\n font-size: 14px;\n font-weight: 500;\n color: var(--mj-text-primary);\n }\n "] }]
|
|
350
412
|
}], null, { Task: [{
|
|
351
413
|
type: Input
|
|
352
414
|
}], task: [{
|
|
@@ -362,5 +424,5 @@ export class TaskDetailPanelComponent {
|
|
|
362
424
|
}], openEntityRecord: [{
|
|
363
425
|
type: Output
|
|
364
426
|
}] }); })();
|
|
365
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TaskDetailPanelComponent, { className: "TaskDetailPanelComponent", filePath: "src/lib/components/task-detail-panel.component.ts", lineNumber:
|
|
427
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TaskDetailPanelComponent, { className: "TaskDetailPanelComponent", filePath: "src/lib/components/task-detail-panel.component.ts", lineNumber: 297 }); })();
|
|
366
428
|
//# sourceMappingURL=task-detail-panel.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-detail-panel.component.js","sourceRoot":"","sources":["../../../src/lib/components/task-detail-panel.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAqB,MAAM,eAAe,CAAC;AAG1F,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAE9D,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;;;IAsBxC,AADF,iCAA0B,YACjB;IAAA,2BAAW;IAAA,oBAAQ;IAC1B,4BAAG;IAAA,YAAsB;IAC3B,AAD2B,oBAAI,EACzB;;;IADD,eAAsB;IAAtB,6CAAsB;;;IAWzB,AADF,iCAA0B,YACjB;IAAA,wBAAQ;IAAA,oBAAQ;IAErB,AADF,iCAA6B,aACM;IAC/B,4BAA+E;IACjF,oBAAM;IACN,+BAAM;IAAA,YAA2B;IAErC,AADE,AADmC,oBAAO,EACpC,EACF;;;IAJkC,eAAsC;IAAtC,yDAAsC;IAEpE,eAA2B;IA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AwB;YAOxB,4FAAiB;YAQjB,4FAAa;YAYb,4FAAkB;YAUtB,AADE,oBAAM,EACF;;YAlFE,eAAe;YAAf,mCAAe;YAOnB,eAKC;YALD,+CAKC;YAII,eAAiB;YAAjB,qCAAiB;YAGtB,cAUC;YAVD,4DAUC;YAED,cAKC;YALD,8CAKC;YAED,cAKC;YALD,0CAKC;YAED,cAKC;YALD,gDAKC;YAED,cAKC;YALD,yCAKC;YAGD,cASC;YATD,qCASC;YAGD,cAQC;YARD,0CAQC;;;iFAuKI,wBAAwB;cA9PpC,SAAS;2BACE,sBAAsB,cACpB,IAAI,WACP,EAAE,YACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAsFP;;kBAqKF,KAAK;;kBAGL,KAAK;;kBAOL,KAAK;;kBACL,MAAM;;kBASN,MAAM;;kBACN,MAAM;;kBASN,MAAM;;kFA/BI,wBAAwB","sourcesContent":["import { Component, Input, Output, EventEmitter, OnInit, OnChanges } from '@angular/core';\n\nimport { MJTaskEntity } from '@memberjunction/core-entities';\nimport { AIEngineBase } from '@memberjunction/ai-engine-base';\nimport { MJAIAgentEntityExtended } from '@memberjunction/ai-core-plus';\nimport { UUIDsEqual } from '@memberjunction/global';\n\n/**\n * Task detail panel showing task information, agent details, and agent run\n * Reusable across list and Gantt views\n */\n@Component({\n selector: 'mj-task-detail-panel',\n standalone: true,\n imports: [],\n template: `\n <div class=\"task-detail-panel\">\n <div class=\"detail-header\">\n <h3>{{ task.Name }}</h3>\n <button class=\"close-detail-btn\" (click)=\"closePanel.emit()\">\n <i class=\"fas fa-times\"></i>\n </button>\n </div>\n \n <div class=\"detail-content\">\n @if (task.Description) {\n <div class=\"detail-field\">\n <label>Description</label>\n <p>{{ task.Description }}</p>\n </div>\n }\n \n <div class=\"detail-field\">\n <label>Status</label>\n <p>{{ task.Status }}</p>\n </div>\n \n @if (task.PercentComplete != null) {\n <div class=\"detail-field\">\n <label>Progress</label>\n <div class=\"detail-progress\">\n <div class=\"progress-bar-detail\">\n <div class=\"progress-fill-detail\" [style.width.%]=\"task.PercentComplete\"></div>\n </div>\n <span>{{ task.PercentComplete }}%</span>\n </div>\n </div>\n }\n \n @if (task.StartedAt) {\n <div class=\"detail-field\">\n <label>Started</label>\n <p>{{ formatDateTime(task.StartedAt) }}</p>\n </div>\n }\n \n @if (task.DueAt) {\n <div class=\"detail-field\">\n <label>Due</label>\n <p>{{ formatDateTime(task.DueAt) }}</p>\n </div>\n }\n \n @if (task.CompletedAt) {\n <div class=\"detail-field\">\n <label>Completed</label>\n <p>{{ formatDateTime(task.CompletedAt) }}</p>\n </div>\n }\n \n @if (task.User) {\n <div class=\"detail-field\">\n <label>Assigned User</label>\n <p>{{ task.User }}</p>\n </div>\n }\n \n <!-- Agent Information -->\n @if (agent) {\n <div class=\"detail-field\">\n <label>Agent</label>\n <div class=\"agent-info\" (click)=\"openAgent()\">\n <i [class]=\"'fas fa-' + ('robot')\" class=\"agent-icon\"></i>\n <span class=\"agent-name\">{{ agent.Name }}</span>\n <i class=\"fas fa-external-link-alt link-icon\"></i>\n </div>\n </div>\n }\n \n <!-- Agent Run Information -->\n @if (agentRunId) {\n <div class=\"detail-field\">\n <label>Agent Run</label>\n <div class=\"agent-run-link\" (click)=\"openAgentRun()\">\n <span>View Run Details</span>\n <i class=\"fas fa-external-link-alt link-icon\"></i>\n </div>\n </div>\n }\n </div>\n </div>\n `,\n styles: [`\n .task-detail-panel {\n width: 100%;\n height: calc(100% - 45px);\n background: var(--mj-bg-surface);\n display: flex;\n flex-direction: column;\n overflow: hidden;\n }\n\n .detail-header {\n padding: 20px;\n border-bottom: 1px solid var(--mj-border-default);\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n background: var(--mj-bg-surface-sunken);\n flex-shrink: 0;\n }\n\n .detail-header h3 {\n margin: 0;\n font-size: 18px;\n font-weight: 600;\n color: var(--mj-text-primary);\n flex: 1;\n padding-right: 12px;\n }\n\n .close-detail-btn {\n background: none;\n border: none;\n color: var(--mj-text-muted);\n cursor: pointer;\n padding: 4px;\n width: 28px;\n height: 28px;\n border-radius: 4px;\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n }\n\n .close-detail-btn:hover {\n background: var(--mj-border-default);\n color: var(--mj-text-primary);\n }\n\n .detail-content {\n padding: 20px;\n flex: 1;\n min-height: 0;\n overflow-y: auto;\n }\n\n .detail-field {\n margin-bottom: 20px;\n }\n\n .detail-field:last-child {\n margin-bottom: 0;\n }\n\n .detail-field label {\n display: block;\n font-size: 12px;\n font-weight: 600;\n color: var(--mj-text-muted);\n text-transform: uppercase;\n letter-spacing: 0.5px;\n margin-bottom: 6px;\n }\n\n .detail-field p {\n margin: 0;\n font-size: 14px;\n color: var(--mj-text-primary);\n line-height: 1.5;\n }\n\n .detail-progress {\n display: flex;\n align-items: center;\n gap: 12px;\n }\n\n .progress-bar-detail {\n flex: 1;\n height: 8px;\n background: var(--mj-border-default);\n border-radius: 4px;\n overflow: hidden;\n }\n\n .progress-fill-detail {\n height: calc(100% - 69px);\n background: var(--mj-brand-primary);\n transition: width 0.3s ease;\n }\n\n .detail-progress span {\n font-size: 13px;\n font-weight: 600;\n color: var(--mj-text-muted);\n min-width: 40px;\n }\n\n .agent-info {\n display: flex;\n align-items: center;\n gap: 10px;\n padding: 10px 12px;\n background: var(--mj-bg-surface-sunken);\n border-radius: 6px;\n cursor: pointer;\n transition: all 0.15s;\n }\n\n .agent-info:hover {\n background: var(--mj-border-default);\n }\n\n .agent-icon {\n font-size: 18px;\n color: var(--mj-brand-primary);\n }\n\n .agent-name {\n flex: 1;\n font-size: 14px;\n font-weight: 500;\n color: var(--mj-text-primary);\n }\n\n .link-icon {\n font-size: 12px;\n color: var(--mj-text-muted);\n }\n\n .agent-run-link {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 10px 12px;\n background: var(--mj-bg-surface-sunken);\n border-radius: 6px;\n cursor: pointer;\n transition: all 0.15s;\n }\n\n .agent-run-link:hover {\n background: var(--mj-border-default);\n }\n\n .agent-run-link span {\n flex: 1;\n font-size: 14px;\n font-weight: 500;\n color: var(--mj-text-primary);\n }\n `]\n})\nexport class TaskDetailPanelComponent implements OnInit, OnChanges {\n @Input() Task!: MJTaskEntity;\n\n /** @deprecated Use {@link Task}. */\n @Input() set task(value: MJTaskEntity) {\n this.Task = value;\n }\n /** @deprecated Use {@link Task}. */\n get task(): MJTaskEntity {\n return this.Task;\n }\n @Input() agentRunId: string | null = null;\n @Output() ClosePanel = new EventEmitter<void>();\n\n /**\n * @deprecated Use {@link ClosePanel}.\n *\n * The same emitter under the old binding name, so a template still binding\n * (closePanel) keeps working. Must stay AFTER ClosePanel: class fields\n * initialise in order, and the other way round this captures undefined.\n */\n @Output() closePanel = this.ClosePanel;\n @Output() OpenEntityRecord = new EventEmitter<{ entityName: string; recordId: string }>();\n\n /**\n * @deprecated Use {@link OpenEntityRecord}.\n *\n * The same emitter under the old binding name, so a template still binding\n * (openEntityRecord) keeps working. Must stay AFTER OpenEntityRecord: class fields\n * initialise in order, and the other way round this captures undefined.\n */\n @Output() openEntityRecord = this.OpenEntityRecord;\n\n public Agent: MJAIAgentEntityExtended | null = null;\n\n /** @deprecated Use {@link Agent}. */\n public get agent(): MJAIAgentEntityExtended | null {\n return this.Agent;\n }\n /** @deprecated Use {@link Agent}. */\n public set agent(value: MJAIAgentEntityExtended | null) {\n this.Agent = value;\n }\n\n ngOnInit(): void {\n this.loadAgentInfo();\n }\n\n ngOnChanges(): void {\n this.loadAgentInfo();\n }\n\n private async loadAgentInfo(): Promise<void> {\n if (!this.Task?.AgentID) {\n this.Agent = null;\n return;\n }\n\n // AIEngineBase is deferred at startup; ensure loaded before reading .Agents.\n await AIEngineBase.Instance.EnsureLoaded();\n const agents = AIEngineBase.Instance.Agents;\n this.Agent = agents.find((a: MJAIAgentEntityExtended) => UUIDsEqual(a.ID, this.Task.AgentID)) || null;\n }\n\n public FormatDateTime(date: Date | null): string {\n if (!date) return '';\n const d = new Date(date);\n return d.toLocaleDateString('en-US', {\n month: 'short',\n day: 'numeric',\n year: 'numeric',\n hour: '2-digit',\n minute: '2-digit'\n });\n }\n\n /** @deprecated Use {@link FormatDateTime}. */\n public formatDateTime(date: Date | null): string {\n return this.FormatDateTime(date);\n }\n\n public OpenAgent(): void {\n if (this.Task.AgentID) {\n this.OpenEntityRecord.emit({\n entityName: 'MJ: AI Agents',\n recordId: this.Task.AgentID\n });\n }\n }\n\n /** @deprecated Use {@link OpenAgent}. */\n public openAgent(): void {\n return this.OpenAgent();\n }\n\n public OpenAgentRun(): void {\n if (this.agentRunId) {\n this.OpenEntityRecord.emit({\n entityName: 'MJ: AI Agent Runs',\n recordId: this.agentRunId\n });\n }\n }\n\n /** @deprecated Use {@link OpenAgentRun}. */\n public openAgentRun(): void {\n return this.OpenAgentRun();\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"task-detail-panel.component.js","sourceRoot":"","sources":["../../../src/lib/components/task-detail-panel.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAqB,MAAM,eAAe,CAAC;AAG1F,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAE9D,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;;;IAsBxC,AADF,iCAA0B,YACjB;IAAA,2BAAW;IAAA,oBAAQ;IAC1B,+BAA2B;IAAA,YAAsB;IACnD,AADmD,oBAAI,EACjD;;;IADuB,eAAsB;IAAtB,6CAAsB;;;IAMjD,AADF,iCAA0B,YACjB;IAAA,YAAsD;IAAA,oBAAQ;IACrE,iCAAoE;IAAA,YAAgB;IACtF,AADsF,oBAAM,EACtF;;;IAFG,eAAsD;IAAtD,6EAAsD;IAC9B,cAAoC;IAApC,oDAAoC;IAAC,cAAgB;IAAhB,uCAAgB;;;IAWpF,AADF,iCAA0B,YACjB;IAAA,w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, OnChanges } from '@angular/core';\n\nimport { MJTaskEntity } from '@memberjunction/core-entities';\nimport { AIEngineBase } from '@memberjunction/ai-engine-base';\nimport { MJAIAgentEntityExtended } from '@memberjunction/ai-core-plus';\nimport { UUIDsEqual } from '@memberjunction/global';\n\n/**\n * Task detail panel showing task information, agent details, and agent run\n * Reusable across list and Gantt views\n */\n@Component({\n selector: 'mj-task-detail-panel',\n standalone: true,\n imports: [],\n template: `\n <div class=\"task-detail-panel\">\n <div class=\"detail-header\">\n <h3>{{ task.Name }}</h3>\n <button class=\"close-detail-btn\" (click)=\"closePanel.emit()\">\n <i class=\"fas fa-times\"></i>\n </button>\n </div>\n \n <div class=\"detail-content\">\n @if (TaskInstructions) {\n <div class=\"detail-field\">\n <label>Description</label>\n <p class=\"detail-pre-text\">{{ TaskInstructions }}</p>\n </div>\n }\n\n @if (TaskOutput) {\n <div class=\"detail-field\">\n <label>{{ IsErrorOutput ? 'Error Details' : 'Agent Output' }}</label>\n <div class=\"detail-output-box\" [class.error-output]=\"IsErrorOutput\">{{ TaskOutput }}</div>\n </div>\n }\n \n <div class=\"detail-field\">\n <label>Status</label>\n <p>{{ task.Status }}</p>\n </div>\n \n @if (task.PercentComplete != null) {\n <div class=\"detail-field\">\n <label>Progress</label>\n <div class=\"detail-progress\">\n <div class=\"progress-bar-detail\">\n <div class=\"progress-fill-detail\" [style.width.%]=\"task.PercentComplete\"></div>\n </div>\n <span>{{ task.PercentComplete }}%</span>\n </div>\n </div>\n }\n \n @if (task.StartedAt) {\n <div class=\"detail-field\">\n <label>Started</label>\n <p>{{ formatDateTime(task.StartedAt) }}</p>\n </div>\n }\n \n @if (task.DueAt) {\n <div class=\"detail-field\">\n <label>Due</label>\n <p>{{ formatDateTime(task.DueAt) }}</p>\n </div>\n }\n \n @if (task.CompletedAt) {\n <div class=\"detail-field\">\n <label>Completed</label>\n <p>{{ formatDateTime(task.CompletedAt) }}</p>\n </div>\n }\n \n @if (task.User) {\n <div class=\"detail-field\">\n <label>Assigned User</label>\n <p>{{ task.User }}</p>\n </div>\n }\n \n <!-- Agent Information -->\n @if (agent) {\n <div class=\"detail-field\">\n <label>Agent</label>\n <div class=\"agent-info\" (click)=\"openAgent()\">\n <i [class]=\"'fas fa-' + ('robot')\" class=\"agent-icon\"></i>\n <span class=\"agent-name\">{{ agent.Name }}</span>\n <i class=\"fas fa-external-link-alt link-icon\"></i>\n </div>\n </div>\n }\n \n <!-- Agent Run Information -->\n @if (EffectiveAgentRunId) {\n <div class=\"detail-field\">\n <label>Agent Run</label>\n <div class=\"agent-run-link\" (click)=\"openAgentRun()\">\n <span>View Run Details</span>\n <i class=\"fas fa-external-link-alt link-icon\"></i>\n </div>\n </div>\n }\n </div>\n </div>\n `,\n styles: [`\n .task-detail-panel {\n width: 100%;\n height: calc(100% - 45px);\n background: var(--mj-bg-surface);\n display: flex;\n flex-direction: column;\n overflow: hidden;\n }\n\n .detail-header {\n padding: 20px;\n border-bottom: 1px solid var(--mj-border-default);\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n background: var(--mj-bg-surface-sunken);\n flex-shrink: 0;\n }\n\n .detail-header h3 {\n margin: 0;\n font-size: 18px;\n font-weight: 600;\n color: var(--mj-text-primary);\n flex: 1;\n padding-right: 12px;\n }\n\n .close-detail-btn {\n background: none;\n border: none;\n color: var(--mj-text-muted);\n cursor: pointer;\n padding: 4px;\n width: 28px;\n height: 28px;\n border-radius: 4px;\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n }\n\n .close-detail-btn:hover {\n background: var(--mj-border-default);\n color: var(--mj-text-primary);\n }\n\n .detail-content {\n padding: 20px;\n flex: 1;\n min-height: 0;\n overflow-y: auto;\n }\n\n .detail-field {\n margin-bottom: 20px;\n }\n\n .detail-field:last-child {\n margin-bottom: 0;\n }\n\n .detail-field label {\n display: block;\n font-size: 12px;\n font-weight: 600;\n color: var(--mj-text-muted);\n text-transform: uppercase;\n letter-spacing: 0.5px;\n margin-bottom: 6px;\n }\n\n .detail-field p {\n margin: 0;\n font-size: 14px;\n color: var(--mj-text-primary);\n line-height: 1.5;\n }\n\n .detail-pre-text {\n white-space: pre-wrap;\n word-break: break-word;\n }\n\n .detail-output-box {\n padding: 12px;\n background: var(--mj-bg-surface-sunken);\n border: 1px solid var(--mj-border-default);\n border-radius: 6px;\n font-size: 13px;\n color: var(--mj-text-primary);\n line-height: 1.55;\n white-space: pre-wrap;\n word-break: break-word;\n max-height: 280px;\n overflow-y: auto;\n }\n\n .detail-output-box.error-output {\n border-color: var(--mj-status-error);\n color: var(--mj-status-error);\n }\n\n .detail-progress {\n display: flex;\n align-items: center;\n gap: 12px;\n }\n\n .progress-bar-detail {\n flex: 1;\n height: 8px;\n background: var(--mj-border-default);\n border-radius: 4px;\n overflow: hidden;\n }\n\n .progress-fill-detail {\n height: 100%;\n background: var(--mj-brand-primary);\n transition: width 0.3s ease;\n }\n\n .detail-progress span {\n font-size: 13px;\n font-weight: 600;\n color: var(--mj-text-muted);\n min-width: 40px;\n }\n\n .agent-info {\n display: flex;\n align-items: center;\n gap: 10px;\n padding: 10px 12px;\n background: var(--mj-bg-surface-sunken);\n border-radius: 6px;\n cursor: pointer;\n transition: all 0.15s;\n }\n\n .agent-info:hover {\n background: var(--mj-border-default);\n }\n\n .agent-icon {\n font-size: 18px;\n color: var(--mj-brand-primary);\n }\n\n .agent-name {\n flex: 1;\n font-size: 14px;\n font-weight: 500;\n color: var(--mj-text-primary);\n }\n\n .link-icon {\n font-size: 12px;\n color: var(--mj-text-muted);\n }\n\n .agent-run-link {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 10px 12px;\n background: var(--mj-bg-surface-sunken);\n border-radius: 6px;\n cursor: pointer;\n transition: all 0.15s;\n }\n\n .agent-run-link:hover {\n background: var(--mj-border-default);\n }\n\n .agent-run-link span {\n flex: 1;\n font-size: 14px;\n font-weight: 500;\n color: var(--mj-text-primary);\n }\n `]\n})\nexport class TaskDetailPanelComponent implements OnInit, OnChanges {\n @Input() Task!: MJTaskEntity;\n\n /** @deprecated Use {@link Task}. */\n @Input() set task(value: MJTaskEntity) {\n this.Task = value;\n }\n /** @deprecated Use {@link Task}. */\n get task(): MJTaskEntity {\n return this.Task;\n }\n @Input() agentRunId: string | null = null;\n @Output() ClosePanel = new EventEmitter<void>();\n\n /**\n * @deprecated Use {@link ClosePanel}.\n *\n * The same emitter under the old binding name, so a template still binding\n * (closePanel) keeps working. Must stay AFTER ClosePanel: class fields\n * initialise in order, and the other way round this captures undefined.\n */\n @Output() closePanel = this.ClosePanel;\n @Output() OpenEntityRecord = new EventEmitter<{ entityName: string; recordId: string }>();\n\n /**\n * @deprecated Use {@link OpenEntityRecord}.\n *\n * The same emitter under the old binding name, so a template still binding\n * (openEntityRecord) keeps working. Must stay AFTER OpenEntityRecord: class fields\n * initialise in order, and the other way round this captures undefined.\n */\n @Output() openEntityRecord = this.OpenEntityRecord;\n\n public Agent: MJAIAgentEntityExtended | null = null;\n\n /** @deprecated Use {@link Agent}. */\n public get agent(): MJAIAgentEntityExtended | null {\n return this.Agent;\n }\n /** @deprecated Use {@link Agent}. */\n public set agent(value: MJAIAgentEntityExtended | null) {\n this.Agent = value;\n }\n\n ngOnInit(): void {\n this.loadAgentInfo();\n }\n\n ngOnChanges(): void {\n this.loadAgentInfo();\n }\n\n private async loadAgentInfo(): Promise<void> {\n if (!this.Task?.AgentID) {\n this.Agent = null;\n return;\n }\n\n // AIEngineBase is deferred at startup; ensure loaded before reading .Agents.\n await AIEngineBase.Instance.EnsureLoaded();\n const agents = AIEngineBase.Instance.Agents;\n this.Agent = agents.find((a: MJAIAgentEntityExtended) => UUIDsEqual(a.ID, this.Task.AgentID)) || null;\n }\n\n public FormatDateTime(date: Date | null): string {\n if (!date) return '';\n const d = new Date(date);\n return d.toLocaleDateString('en-US', {\n month: 'short',\n day: 'numeric',\n year: 'numeric',\n hour: '2-digit',\n minute: '2-digit'\n });\n }\n\n /** @deprecated Use {@link FormatDateTime}. */\n public formatDateTime(date: Date | null): string {\n return this.FormatDateTime(date);\n }\n\n public OpenAgent(): void {\n if (this.Task.AgentID) {\n this.OpenEntityRecord.emit({\n entityName: 'MJ: AI Agents',\n recordId: this.Task.AgentID\n });\n }\n }\n\n /** @deprecated Use {@link OpenAgent}. */\n public openAgent(): void {\n return this.OpenAgent();\n }\n\n public get EffectiveAgentRunId(): string | null {\n return this.agentRunId || this.Task?.AgentRunID || null;\n }\n\n public get TaskInstructions(): string {\n const desc = this.Task?.Description || '';\n const outputMarker = '\\n\\n--- Output ---\\n';\n const errorMarker = '\\n\\n--- Error ---\\n';\n const outIdx = desc.indexOf(outputMarker);\n if (outIdx >= 0) {\n return desc.substring(0, outIdx).trim();\n }\n const errIdx = desc.indexOf(errorMarker);\n if (errIdx >= 0) {\n return desc.substring(0, errIdx).trim();\n }\n return desc.trim();\n }\n\n public get TaskOutput(): string | null {\n const desc = this.Task?.Description || '';\n const outputMarker = '\\n\\n--- Output ---\\n';\n const errorMarker = '\\n\\n--- Error ---\\n';\n const outIdx = desc.indexOf(outputMarker);\n if (outIdx >= 0) {\n return desc.substring(outIdx + outputMarker.length).trim();\n }\n const errIdx = desc.indexOf(errorMarker);\n if (errIdx >= 0) {\n return desc.substring(errIdx + errorMarker.length).trim();\n }\n return null;\n }\n\n public get IsErrorOutput(): boolean {\n const desc = this.Task?.Description || '';\n return desc.includes('\\n\\n--- Error ---\\n');\n }\n\n public OpenAgentRun(): void {\n const runId = this.EffectiveAgentRunId;\n if (runId) {\n this.OpenEntityRecord.emit({\n entityName: 'MJ: AI Agent Runs',\n recordId: runId\n });\n }\n }\n\n /** @deprecated Use {@link OpenAgentRun}. */\n public openAgentRun(): void {\n return this.OpenAgentRun();\n }\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/ng-tasks",
|
|
3
|
-
"version": "6.2.0-edge.
|
|
3
|
+
"version": "6.2.0-edge.5",
|
|
4
4
|
"description": "MemberJunction: Angular components for task visualization and management with Gantt chart support",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@memberjunction/ai-core-plus": "6.2.0-edge.
|
|
9
|
-
"@memberjunction/ai-engine-base": "6.2.0-edge.
|
|
10
|
-
"@memberjunction/core": "6.2.0-edge.
|
|
11
|
-
"@memberjunction/core-entities": "6.2.0-edge.
|
|
12
|
-
"@memberjunction/global": "6.2.0-edge.
|
|
13
|
-
"@memberjunction/ng-shared-generic": "6.2.0-edge.
|
|
8
|
+
"@memberjunction/ai-core-plus": "6.2.0-edge.5",
|
|
9
|
+
"@memberjunction/ai-engine-base": "6.2.0-edge.5",
|
|
10
|
+
"@memberjunction/core": "6.2.0-edge.5",
|
|
11
|
+
"@memberjunction/core-entities": "6.2.0-edge.5",
|
|
12
|
+
"@memberjunction/global": "6.2.0-edge.5",
|
|
13
|
+
"@memberjunction/ng-shared-generic": "6.2.0-edge.5",
|
|
14
14
|
"dhtmlx-gantt": "^9.1.1",
|
|
15
15
|
"rxjs": "^7.8.2"
|
|
16
16
|
},
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"url": "https://github.com/MemberJunction/MJ"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@memberjunction/ng-test-utils": "6.2.0-edge.
|
|
30
|
+
"@memberjunction/ng-test-utils": "6.2.0-edge.5",
|
|
31
31
|
"vitest": "^4.0.18",
|
|
32
32
|
"@angular/compiler-cli": "21.2.22"
|
|
33
33
|
},
|
|
@@ -23,10 +23,17 @@ import { UUIDsEqual } from '@memberjunction/global';
|
|
|
23
23
|
</div>
|
|
24
24
|
|
|
25
25
|
<div class="detail-content">
|
|
26
|
-
@if (
|
|
26
|
+
@if (TaskInstructions) {
|
|
27
27
|
<div class="detail-field">
|
|
28
28
|
<label>Description</label>
|
|
29
|
-
<p>{{
|
|
29
|
+
<p class="detail-pre-text">{{ TaskInstructions }}</p>
|
|
30
|
+
</div>
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@if (TaskOutput) {
|
|
34
|
+
<div class="detail-field">
|
|
35
|
+
<label>{{ IsErrorOutput ? 'Error Details' : 'Agent Output' }}</label>
|
|
36
|
+
<div class="detail-output-box" [class.error-output]="IsErrorOutput">{{ TaskOutput }}</div>
|
|
30
37
|
</div>
|
|
31
38
|
}
|
|
32
39
|
|
|
@@ -88,7 +95,7 @@ import { UUIDsEqual } from '@memberjunction/global';
|
|
|
88
95
|
}
|
|
89
96
|
|
|
90
97
|
<!-- Agent Run Information -->
|
|
91
|
-
@if (
|
|
98
|
+
@if (EffectiveAgentRunId) {
|
|
92
99
|
<div class="detail-field">
|
|
93
100
|
<label>Agent Run</label>
|
|
94
101
|
<div class="agent-run-link" (click)="openAgentRun()">
|
|
@@ -181,6 +188,30 @@ import { UUIDsEqual } from '@memberjunction/global';
|
|
|
181
188
|
line-height: 1.5;
|
|
182
189
|
}
|
|
183
190
|
|
|
191
|
+
.detail-pre-text {
|
|
192
|
+
white-space: pre-wrap;
|
|
193
|
+
word-break: break-word;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.detail-output-box {
|
|
197
|
+
padding: 12px;
|
|
198
|
+
background: var(--mj-bg-surface-sunken);
|
|
199
|
+
border: 1px solid var(--mj-border-default);
|
|
200
|
+
border-radius: 6px;
|
|
201
|
+
font-size: 13px;
|
|
202
|
+
color: var(--mj-text-primary);
|
|
203
|
+
line-height: 1.55;
|
|
204
|
+
white-space: pre-wrap;
|
|
205
|
+
word-break: break-word;
|
|
206
|
+
max-height: 280px;
|
|
207
|
+
overflow-y: auto;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.detail-output-box.error-output {
|
|
211
|
+
border-color: var(--mj-status-error);
|
|
212
|
+
color: var(--mj-status-error);
|
|
213
|
+
}
|
|
214
|
+
|
|
184
215
|
.detail-progress {
|
|
185
216
|
display: flex;
|
|
186
217
|
align-items: center;
|
|
@@ -196,7 +227,7 @@ import { UUIDsEqual } from '@memberjunction/global';
|
|
|
196
227
|
}
|
|
197
228
|
|
|
198
229
|
.progress-fill-detail {
|
|
199
|
-
height:
|
|
230
|
+
height: 100%;
|
|
200
231
|
background: var(--mj-brand-primary);
|
|
201
232
|
transition: width 0.3s ease;
|
|
202
233
|
}
|
|
@@ -358,11 +389,51 @@ export class TaskDetailPanelComponent implements OnInit, OnChanges {
|
|
|
358
389
|
return this.OpenAgent();
|
|
359
390
|
}
|
|
360
391
|
|
|
392
|
+
public get EffectiveAgentRunId(): string | null {
|
|
393
|
+
return this.agentRunId || this.Task?.AgentRunID || null;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
public get TaskInstructions(): string {
|
|
397
|
+
const desc = this.Task?.Description || '';
|
|
398
|
+
const outputMarker = '\n\n--- Output ---\n';
|
|
399
|
+
const errorMarker = '\n\n--- Error ---\n';
|
|
400
|
+
const outIdx = desc.indexOf(outputMarker);
|
|
401
|
+
if (outIdx >= 0) {
|
|
402
|
+
return desc.substring(0, outIdx).trim();
|
|
403
|
+
}
|
|
404
|
+
const errIdx = desc.indexOf(errorMarker);
|
|
405
|
+
if (errIdx >= 0) {
|
|
406
|
+
return desc.substring(0, errIdx).trim();
|
|
407
|
+
}
|
|
408
|
+
return desc.trim();
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
public get TaskOutput(): string | null {
|
|
412
|
+
const desc = this.Task?.Description || '';
|
|
413
|
+
const outputMarker = '\n\n--- Output ---\n';
|
|
414
|
+
const errorMarker = '\n\n--- Error ---\n';
|
|
415
|
+
const outIdx = desc.indexOf(outputMarker);
|
|
416
|
+
if (outIdx >= 0) {
|
|
417
|
+
return desc.substring(outIdx + outputMarker.length).trim();
|
|
418
|
+
}
|
|
419
|
+
const errIdx = desc.indexOf(errorMarker);
|
|
420
|
+
if (errIdx >= 0) {
|
|
421
|
+
return desc.substring(errIdx + errorMarker.length).trim();
|
|
422
|
+
}
|
|
423
|
+
return null;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
public get IsErrorOutput(): boolean {
|
|
427
|
+
const desc = this.Task?.Description || '';
|
|
428
|
+
return desc.includes('\n\n--- Error ---\n');
|
|
429
|
+
}
|
|
430
|
+
|
|
361
431
|
public OpenAgentRun(): void {
|
|
362
|
-
|
|
432
|
+
const runId = this.EffectiveAgentRunId;
|
|
433
|
+
if (runId) {
|
|
363
434
|
this.OpenEntityRecord.emit({
|
|
364
435
|
entityName: 'MJ: AI Agent Runs',
|
|
365
|
-
recordId:
|
|
436
|
+
recordId: runId
|
|
366
437
|
});
|
|
367
438
|
}
|
|
368
439
|
}
|