@memberjunction/ng-agents 6.1.0-edge.0 → 6.1.0-edge.2

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.
@@ -7,9 +7,11 @@ import * as i5 from "./components/skill-permissions-dialog.component";
7
7
  import * as i6 from "./components/create-agent-panel.component";
8
8
  import * as i7 from "./components/create-agent-dialog.component";
9
9
  import * as i8 from "./components/create-agent-slidein.component";
10
- import * as i9 from "@angular/common";
11
- import * as i10 from "@angular/forms";
12
- import * as i11 from "@memberjunction/ng-ui-components";
10
+ import * as i9 from "./components/agent-invocations.component";
11
+ import * as i10 from "@angular/common";
12
+ import * as i11 from "@angular/forms";
13
+ import * as i12 from "@memberjunction/ng-ui-components";
14
+ import * as i13 from "@memberjunction/ng-shared-generic";
13
15
  /**
14
16
  * Module providing reusable AI Agent UI components.
15
17
  *
@@ -22,6 +24,7 @@ import * as i11 from "@memberjunction/ng-ui-components";
22
24
  * - `<mj-create-agent-panel>` — Embeddable agent creation form
23
25
  * - `<mj-create-agent-dialog>` — Centered modal dialog for agent creation
24
26
  * - `<mj-create-agent-slidein>` — Right-side slide-in for agent creation
27
+ * - `<mj-agent-invocations>` — Read-only index of every automated pathway that invokes an agent
25
28
  *
26
29
  * Services:
27
30
  * - `CreateAgentService` — Programmatically open create agent dialogs/slide-ins
@@ -36,7 +39,7 @@ import * as i11 from "@memberjunction/ng-ui-components";
36
39
  */
37
40
  export declare class AgentsModule {
38
41
  static ɵfac: i0.ɵɵFactoryDeclaration<AgentsModule, never>;
39
- static ɵmod: i0.ɵɵNgModuleDeclaration<AgentsModule, [typeof i1.AgentPermissionsPanelComponent, typeof i2.AgentPermissionsDialogComponent, typeof i3.AgentPermissionsSlideoverComponent, typeof i4.SkillPermissionsPanelComponent, typeof i5.SkillPermissionsDialogComponent, typeof i6.CreateAgentPanelComponent, typeof i7.CreateAgentDialogComponent, typeof i8.CreateAgentSlideInComponent], [typeof i9.CommonModule, typeof i10.FormsModule, typeof i10.ReactiveFormsModule, typeof i11.MJEmptyStateComponent, typeof i11.MJAlertComponent, typeof i11.MJAccordionModule], [typeof i1.AgentPermissionsPanelComponent, typeof i2.AgentPermissionsDialogComponent, typeof i3.AgentPermissionsSlideoverComponent, typeof i4.SkillPermissionsPanelComponent, typeof i5.SkillPermissionsDialogComponent, typeof i6.CreateAgentPanelComponent, typeof i7.CreateAgentDialogComponent, typeof i8.CreateAgentSlideInComponent]>;
42
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AgentsModule, [typeof i1.AgentPermissionsPanelComponent, typeof i2.AgentPermissionsDialogComponent, typeof i3.AgentPermissionsSlideoverComponent, typeof i4.SkillPermissionsPanelComponent, typeof i5.SkillPermissionsDialogComponent, typeof i6.CreateAgentPanelComponent, typeof i7.CreateAgentDialogComponent, typeof i8.CreateAgentSlideInComponent, typeof i9.AgentInvocationsComponent], [typeof i10.CommonModule, typeof i11.FormsModule, typeof i11.ReactiveFormsModule, typeof i12.MJEmptyStateComponent, typeof i12.MJAlertComponent, typeof i12.MJAccordionModule, typeof i12.MJButtonDirective, typeof i13.SharedGenericModule], [typeof i1.AgentPermissionsPanelComponent, typeof i2.AgentPermissionsDialogComponent, typeof i3.AgentPermissionsSlideoverComponent, typeof i4.SkillPermissionsPanelComponent, typeof i5.SkillPermissionsDialogComponent, typeof i6.CreateAgentPanelComponent, typeof i7.CreateAgentDialogComponent, typeof i8.CreateAgentSlideInComponent, typeof i9.AgentInvocationsComponent]>;
40
43
  static ɵinj: i0.ɵɵInjectorDeclaration<AgentsModule>;
41
44
  }
42
45
  //# sourceMappingURL=agents.module.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"agents.module.d.ts","sourceRoot":"","sources":["../../src/lib/agents.module.ts"],"names":[],"mappings":";;;;;;;;;;;;AAeA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,qBA8Ba,YAAY;yCAAZ,YAAY;0CAAZ,YAAY;0CAAZ,YAAY;CAAG"}
1
+ {"version":3,"file":"agents.module.d.ts","sourceRoot":"","sources":["../../src/lib/agents.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAiBA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,qBAkCa,YAAY;yCAAZ,YAAY;0CAAZ,YAAY;0CAAZ,YAAY;CAAG"}
@@ -1,7 +1,8 @@
1
1
  import { NgModule } from '@angular/core';
2
2
  import { CommonModule } from '@angular/common';
3
3
  import { FormsModule, ReactiveFormsModule } from '@angular/forms';
4
- import { MJEmptyStateComponent, MJAlertComponent, MJAccordionModule } from '@memberjunction/ng-ui-components';
4
+ import { MJEmptyStateComponent, MJAlertComponent, MJAccordionModule, MJButtonDirective } from '@memberjunction/ng-ui-components';
5
+ import { SharedGenericModule } from '@memberjunction/ng-shared-generic';
5
6
  import { AgentPermissionsPanelComponent } from './components/agent-permissions-panel.component';
6
7
  import { AgentPermissionsDialogComponent } from './components/agent-permissions-dialog.component';
7
8
  import { AgentPermissionsSlideoverComponent } from './components/agent-permissions-slideover.component';
@@ -10,6 +11,7 @@ import { SkillPermissionsDialogComponent } from './components/skill-permissions-
10
11
  import { CreateAgentPanelComponent } from './components/create-agent-panel.component';
11
12
  import { CreateAgentDialogComponent } from './components/create-agent-dialog.component';
12
13
  import { CreateAgentSlideInComponent } from './components/create-agent-slidein.component';
14
+ import { AgentInvocationsComponent } from './components/agent-invocations.component';
13
15
  import * as i0 from "@angular/core";
14
16
  /**
15
17
  * Module providing reusable AI Agent UI components.
@@ -23,6 +25,7 @@ import * as i0 from "@angular/core";
23
25
  * - `<mj-create-agent-panel>` — Embeddable agent creation form
24
26
  * - `<mj-create-agent-dialog>` — Centered modal dialog for agent creation
25
27
  * - `<mj-create-agent-slidein>` — Right-side slide-in for agent creation
28
+ * - `<mj-agent-invocations>` — Read-only index of every automated pathway that invokes an agent
26
29
  *
27
30
  * Services:
28
31
  * - `CreateAgentService` — Programmatically open create agent dialogs/slide-ins
@@ -43,7 +46,8 @@ export class AgentsModule {
43
46
  ReactiveFormsModule,
44
47
  MJEmptyStateComponent,
45
48
  MJAlertComponent,
46
- MJAccordionModule] });
49
+ MJAccordionModule,
50
+ SharedGenericModule] });
47
51
  }
48
52
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AgentsModule, [{
49
53
  type: NgModule,
@@ -56,7 +60,8 @@ export class AgentsModule {
56
60
  SkillPermissionsDialogComponent,
57
61
  CreateAgentPanelComponent,
58
62
  CreateAgentDialogComponent,
59
- CreateAgentSlideInComponent
63
+ CreateAgentSlideInComponent,
64
+ AgentInvocationsComponent
60
65
  ],
61
66
  imports: [
62
67
  CommonModule,
@@ -64,7 +69,9 @@ export class AgentsModule {
64
69
  ReactiveFormsModule,
65
70
  MJEmptyStateComponent,
66
71
  MJAlertComponent,
67
- MJAccordionModule
72
+ MJAccordionModule,
73
+ MJButtonDirective,
74
+ SharedGenericModule
68
75
  ],
69
76
  exports: [
70
77
  AgentPermissionsPanelComponent,
@@ -74,7 +81,8 @@ export class AgentsModule {
74
81
  SkillPermissionsDialogComponent,
75
82
  CreateAgentPanelComponent,
76
83
  CreateAgentDialogComponent,
77
- CreateAgentSlideInComponent
84
+ CreateAgentSlideInComponent,
85
+ AgentInvocationsComponent
78
86
  ]
79
87
  }]
80
88
  }], null, null); })();
@@ -85,17 +93,21 @@ export class AgentsModule {
85
93
  SkillPermissionsDialogComponent,
86
94
  CreateAgentPanelComponent,
87
95
  CreateAgentDialogComponent,
88
- CreateAgentSlideInComponent], imports: [CommonModule,
96
+ CreateAgentSlideInComponent,
97
+ AgentInvocationsComponent], imports: [CommonModule,
89
98
  FormsModule,
90
99
  ReactiveFormsModule,
91
100
  MJEmptyStateComponent,
92
101
  MJAlertComponent,
93
- MJAccordionModule], exports: [AgentPermissionsPanelComponent,
102
+ MJAccordionModule,
103
+ MJButtonDirective,
104
+ SharedGenericModule], exports: [AgentPermissionsPanelComponent,
94
105
  AgentPermissionsDialogComponent,
95
106
  AgentPermissionsSlideoverComponent,
96
107
  SkillPermissionsPanelComponent,
97
108
  SkillPermissionsDialogComponent,
98
109
  CreateAgentPanelComponent,
99
110
  CreateAgentDialogComponent,
100
- CreateAgentSlideInComponent] }); })();
111
+ CreateAgentSlideInComponent,
112
+ AgentInvocationsComponent] }); })();
101
113
  //# sourceMappingURL=agents.module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"agents.module.js","sourceRoot":"","sources":["../../src/lib/agents.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAElE,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAE9G,OAAO,EAAE,8BAA8B,EAAE,MAAM,gDAAgD,CAAC;AAChG,OAAO,EAAE,+BAA+B,EAAE,MAAM,iDAAiD,CAAC;AAClG,OAAO,EAAE,kCAAkC,EAAE,MAAM,oDAAoD,CAAC;AACxG,OAAO,EAAE,8BAA8B,EAAE,MAAM,gDAAgD,CAAC;AAChG,OAAO,EAAE,+BAA+B,EAAE,MAAM,iDAAiD,CAAC;AAClG,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AACtF,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,EAAE,2BAA2B,EAAE,MAAM,6CAA6C,CAAC;;AAE1F;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AA+BH,MAAM,OAAO,YAAY;sGAAZ,YAAY;4DAAZ,YAAY;gEAlBjB,YAAY;YACZ,WAAW;YACX,mBAAmB;YACnB,qBAAqB;YACrB,gBAAgB;YAChB,iBAAiB;;iFAaZ,YAAY;cA9BxB,QAAQ;eAAC;gBACN,YAAY,EAAE;oBACV,8BAA8B;oBAC9B,+BAA+B;oBAC/B,kCAAkC;oBAClC,8BAA8B;oBAC9B,+BAA+B;oBAC/B,yBAAyB;oBACzB,0BAA0B;oBAC1B,2BAA2B;iBAC9B;gBACD,OAAO,EAAE;oBACL,YAAY;oBACZ,WAAW;oBACX,mBAAmB;oBACnB,qBAAqB;oBACrB,gBAAgB;oBAChB,iBAAiB;iBACpB;gBACD,OAAO,EAAE;oBACL,8BAA8B;oBAC9B,+BAA+B;oBAC/B,kCAAkC;oBAClC,8BAA8B;oBAC9B,+BAA+B;oBAC/B,yBAAyB;oBACzB,0BAA0B;oBAC1B,2BAA2B;iBAC9B;aACJ;;wFACY,YAAY,mBA5BjB,8BAA8B;QAC9B,+BAA+B;QAC/B,kCAAkC;QAClC,8BAA8B;QAC9B,+BAA+B;QAC/B,yBAAyB;QACzB,0BAA0B;QAC1B,2BAA2B,aAG3B,YAAY;QACZ,WAAW;QACX,mBAAmB;QACnB,qBAAqB;QACrB,gBAAgB;QAChB,iBAAiB,aAGjB,8BAA8B;QAC9B,+BAA+B;QAC/B,kCAAkC;QAClC,8BAA8B;QAC9B,+BAA+B;QAC/B,yBAAyB;QACzB,0BAA0B;QAC1B,2BAA2B","sourcesContent":["import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\n\nimport { MJEmptyStateComponent, MJAlertComponent, MJAccordionModule } from '@memberjunction/ng-ui-components';\n\nimport { AgentPermissionsPanelComponent } from './components/agent-permissions-panel.component';\nimport { AgentPermissionsDialogComponent } from './components/agent-permissions-dialog.component';\nimport { AgentPermissionsSlideoverComponent } from './components/agent-permissions-slideover.component';\nimport { SkillPermissionsPanelComponent } from './components/skill-permissions-panel.component';\nimport { SkillPermissionsDialogComponent } from './components/skill-permissions-dialog.component';\nimport { CreateAgentPanelComponent } from './components/create-agent-panel.component';\nimport { CreateAgentDialogComponent } from './components/create-agent-dialog.component';\nimport { CreateAgentSlideInComponent } from './components/create-agent-slidein.component';\n\n/**\n * Module providing reusable AI Agent UI components.\n *\n * Components:\n * - `<mj-agent-permissions-panel>` — Embeddable permissions manager\n * - `<mj-agent-permissions-dialog>` — Centered modal dialog wrapper\n * - `<mj-agent-permissions-slideover>` — Right-side slide-over wrapper\n * - `<mj-skill-permissions-panel>` — Embeddable AI Skill permissions manager\n * - `<mj-skill-permissions-dialog>` — Centered modal dialog wrapper for skill permissions\n * - `<mj-create-agent-panel>` — Embeddable agent creation form\n * - `<mj-create-agent-dialog>` — Centered modal dialog for agent creation\n * - `<mj-create-agent-slidein>` — Right-side slide-in for agent creation\n *\n * Services:\n * - `CreateAgentService` — Programmatically open create agent dialogs/slide-ins\n *\n * Usage:\n * ```typescript\n * import { AgentsModule } from '@memberjunction/ng-agents';\n *\n * @NgModule({ imports: [AgentsModule] })\n * export class MyModule {}\n * ```\n */\n@NgModule({\n declarations: [\n AgentPermissionsPanelComponent,\n AgentPermissionsDialogComponent,\n AgentPermissionsSlideoverComponent,\n SkillPermissionsPanelComponent,\n SkillPermissionsDialogComponent,\n CreateAgentPanelComponent,\n CreateAgentDialogComponent,\n CreateAgentSlideInComponent\n ],\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n MJEmptyStateComponent,\n MJAlertComponent,\n MJAccordionModule\n ],\n exports: [\n AgentPermissionsPanelComponent,\n AgentPermissionsDialogComponent,\n AgentPermissionsSlideoverComponent,\n SkillPermissionsPanelComponent,\n SkillPermissionsDialogComponent,\n CreateAgentPanelComponent,\n CreateAgentDialogComponent,\n CreateAgentSlideInComponent\n ]\n})\nexport class AgentsModule {}\n"]}
1
+ {"version":3,"file":"agents.module.js","sourceRoot":"","sources":["../../src/lib/agents.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAElE,OAA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BAClC,8BAA8B;oBAC9B,+BAA+B;oBAC/B,yBAAyB;oBACzB,0BAA0B;oBAC1B,2BAA2B;oBAC3B,yBAAyB;iBAC5B;aACJ;;wFACY,YAAY,mBAhCjB,8BAA8B;QAC9B,+BAA+B;QAC/B,kCAAkC;QAClC,8BAA8B;QAC9B,+BAA+B;QAC/B,yBAAyB;QACzB,0BAA0B;QAC1B,2BAA2B;QAC3B,yBAAyB,aAGzB,YAAY;QACZ,WAAW;QACX,mBAAmB;QACnB,qBAAqB;QACrB,gBAAgB;QAChB,iBAAiB;QACjB,iBAAiB;QACjB,mBAAmB,aAGnB,8BAA8B;QAC9B,+BAA+B;QAC/B,kCAAkC;QAClC,8BAA8B;QAC9B,+BAA+B;QAC/B,yBAAyB;QACzB,0BAA0B;QAC1B,2BAA2B;QAC3B,yBAAyB","sourcesContent":["import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\n\nimport { MJEmptyStateComponent, MJAlertComponent, MJAccordionModule, MJButtonDirective } from '@memberjunction/ng-ui-components';\nimport { SharedGenericModule } from '@memberjunction/ng-shared-generic';\n\nimport { AgentPermissionsPanelComponent } from './components/agent-permissions-panel.component';\nimport { AgentPermissionsDialogComponent } from './components/agent-permissions-dialog.component';\nimport { AgentPermissionsSlideoverComponent } from './components/agent-permissions-slideover.component';\nimport { SkillPermissionsPanelComponent } from './components/skill-permissions-panel.component';\nimport { SkillPermissionsDialogComponent } from './components/skill-permissions-dialog.component';\nimport { CreateAgentPanelComponent } from './components/create-agent-panel.component';\nimport { CreateAgentDialogComponent } from './components/create-agent-dialog.component';\nimport { CreateAgentSlideInComponent } from './components/create-agent-slidein.component';\nimport { AgentInvocationsComponent } from './components/agent-invocations.component';\n\n/**\n * Module providing reusable AI Agent UI components.\n *\n * Components:\n * - `<mj-agent-permissions-panel>` — Embeddable permissions manager\n * - `<mj-agent-permissions-dialog>` — Centered modal dialog wrapper\n * - `<mj-agent-permissions-slideover>` — Right-side slide-over wrapper\n * - `<mj-skill-permissions-panel>` — Embeddable AI Skill permissions manager\n * - `<mj-skill-permissions-dialog>` — Centered modal dialog wrapper for skill permissions\n * - `<mj-create-agent-panel>` — Embeddable agent creation form\n * - `<mj-create-agent-dialog>` — Centered modal dialog for agent creation\n * - `<mj-create-agent-slidein>` — Right-side slide-in for agent creation\n * - `<mj-agent-invocations>` — Read-only index of every automated pathway that invokes an agent\n *\n * Services:\n * - `CreateAgentService` — Programmatically open create agent dialogs/slide-ins\n *\n * Usage:\n * ```typescript\n * import { AgentsModule } from '@memberjunction/ng-agents';\n *\n * @NgModule({ imports: [AgentsModule] })\n * export class MyModule {}\n * ```\n */\n@NgModule({\n declarations: [\n AgentPermissionsPanelComponent,\n AgentPermissionsDialogComponent,\n AgentPermissionsSlideoverComponent,\n SkillPermissionsPanelComponent,\n SkillPermissionsDialogComponent,\n CreateAgentPanelComponent,\n CreateAgentDialogComponent,\n CreateAgentSlideInComponent,\n AgentInvocationsComponent\n ],\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n MJEmptyStateComponent,\n MJAlertComponent,\n MJAccordionModule,\n MJButtonDirective,\n SharedGenericModule\n ],\n exports: [\n AgentPermissionsPanelComponent,\n AgentPermissionsDialogComponent,\n AgentPermissionsSlideoverComponent,\n SkillPermissionsPanelComponent,\n SkillPermissionsDialogComponent,\n CreateAgentPanelComponent,\n CreateAgentDialogComponent,\n CreateAgentSlideInComponent,\n AgentInvocationsComponent\n ]\n})\nexport class AgentsModule {}\n"]}
@@ -0,0 +1,101 @@
1
+ /**
2
+ * @fileoverview "Everywhere this agent runs without anyone pressing Run."
3
+ *
4
+ * **The gap this closes.** MJ has never lacked ways to invoke an agent automatically — Scheduled
5
+ * Jobs, User Routines, Entity Action bindings, Record Processes, a Sub-Agent step inside another
6
+ * agent's flow. What it lacked was the *inverse* index. Every one of those substrates knows which
7
+ * agent it calls; none of them can be asked the question from the other end, so standing on an agent
8
+ * record there was no way to learn what fires it short of checking five admin surfaces by hand. In
9
+ * practice that means nobody checked — and an agent quietly running on a schedule somebody set up
10
+ * months ago is exactly the thing an owner needs to see first.
11
+ *
12
+ * **Read-only, by design.** This surface answers a question; it does not change any answer. Editing
13
+ * a schedule belongs in Scheduling, editing a binding belongs in Entity Actions, and putting a
14
+ * second editor here would be a second set of rules about what a valid trigger is. Every row instead
15
+ * emits {@link AgentInvocationsComponent.RecordOpenRequested} so the host can navigate to the
16
+ * substrate that owns it.
17
+ *
18
+ * **Layer: `widgets`.** No Router, no `NavigationService`, no global provider. Navigation leaves as
19
+ * intent; data is read through `this.ProviderToUse`.
20
+ *
21
+ * @module @memberjunction/ng-agents
22
+ */
23
+ import { ChangeDetectorRef, EventEmitter } from '@angular/core';
24
+ import { BaseAngularComponent } from '@memberjunction/ng-base-types';
25
+ import { type AgentInvocationGroup, type AgentInvocationPathway, type AgentInvocationSummary } from './agent-invocations.model';
26
+ import * as i0 from "@angular/core";
27
+ /** Emitted when a row is activated. The host decides how to open it — this widget has no Router. */
28
+ export declare class AgentInvocationOpenRequestedEventArgs {
29
+ readonly EntityName: string;
30
+ readonly RecordID: string;
31
+ readonly Pathway: AgentInvocationPathway;
32
+ constructor(EntityName: string, RecordID: string, Pathway: AgentInvocationPathway);
33
+ }
34
+ export declare class AgentInvocationsComponent extends BaseAngularComponent {
35
+ private cdr;
36
+ /**
37
+ * The agent to index. Setter-based per repo convention — the reaction is explicit and runs only
38
+ * when the id actually changes, rather than on every change-detection pass.
39
+ */
40
+ set AgentID(value: string | null);
41
+ get AgentID(): string | null;
42
+ /**
43
+ * Whether the surface is currently on screen.
44
+ *
45
+ * The host keeps this component alive across tab switches (so a return trip is instant), which
46
+ * means without this it would issue six queries for a tab nobody has opened. Flipping to true
47
+ * triggers the first load; flipping back does nothing.
48
+ */
49
+ set Active(value: boolean);
50
+ get Active(): boolean;
51
+ /** The agent's own `ExposeAsAction` flag — a pathway that lives on the agent, not in another table. */
52
+ ExposeAsAction: boolean;
53
+ /** The agent's parent, when it is a child sub-agent. Named so the row can say who calls it. */
54
+ ParentAgentName: string | null;
55
+ ParentAgentID: string | null;
56
+ /** Intent only — the host navigates. */
57
+ RecordOpenRequested: EventEmitter<AgentInvocationOpenRequestedEventArgs>;
58
+ IsLoading: boolean;
59
+ HasLoaded: boolean;
60
+ LoadError: string | null;
61
+ Groups: AgentInvocationGroup[];
62
+ Summary: AgentInvocationSummary;
63
+ private agentID;
64
+ private active;
65
+ constructor(cdr: ChangeDetectorRef);
66
+ /**
67
+ * Rebuilds the index.
68
+ *
69
+ * Public so a host can offer Refresh, and so an agent-context tool can drive it — the same
70
+ * entry point either way, rather than a private loader plus a public wrapper that can drift.
71
+ */
72
+ Load(): Promise<void>;
73
+ /**
74
+ * The four substrates that name the agent by id on their own row, in one round trip.
75
+ *
76
+ * Batched through `RunViews` rather than four awaited calls: this is one screen, and four
77
+ * sequential round trips is the difference between a tab that opens and a tab that loads.
78
+ */
79
+ private loadDirectPathways;
80
+ /**
81
+ * Entity-change bindings, which name the agent one table further out.
82
+ *
83
+ * An Entity Action does not reference an agent; it references the `Execute Agent` action, and the
84
+ * agent lives in that binding's `AgentID` **parameter**. So this walks params → bindings →
85
+ * invocation types. Three steps, but each one is a single batched query, and skipping straight to
86
+ * the bindings would find every agent-dispatching binding rather than this agent's.
87
+ */
88
+ private loadDataChangePathways;
89
+ /** The pathways carried on the agent's own record rather than in another table. */
90
+ private loadAgentPathways;
91
+ /** Says why a pathway will not fire. Returns undefined when it will — there is nothing to explain. */
92
+ private explainState;
93
+ OnRowActivated(pathway: AgentInvocationPathway): void;
94
+ /** Template helper — coarse relative time, computed at render rather than stored. */
95
+ When(value: Date | null | undefined): string | null;
96
+ /** Template helper: the header line, phrased for whichever case the agent is in. */
97
+ get SummaryLine(): string;
98
+ static ɵfac: i0.ɵɵFactoryDeclaration<AgentInvocationsComponent, never>;
99
+ static ɵcmp: i0.ɵɵComponentDeclaration<AgentInvocationsComponent, "mj-agent-invocations", never, { "AgentID": { "alias": "AgentID"; "required": false; }; "Active": { "alias": "Active"; "required": false; }; "ExposeAsAction": { "alias": "ExposeAsAction"; "required": false; }; "ParentAgentName": { "alias": "ParentAgentName"; "required": false; }; "ParentAgentID": { "alias": "ParentAgentID"; "required": false; }; }, { "RecordOpenRequested": "RecordOpenRequested"; }, never, never, false, never>;
100
+ }
101
+ //# sourceMappingURL=agent-invocations.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-invocations.component.d.ts","sourceRoot":"","sources":["../../../src/lib/components/agent-invocations.component.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,EAEH,iBAAiB,EAEjB,YAAY,EAGf,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAWrE,OAAO,EAQH,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC9B,MAAM,2BAA2B,CAAC;;AAEnC,oGAAoG;AACpG,qBAAa,qCAAqC;aAE1B,UAAU,EAAE,MAAM;aAClB,QAAQ,EAAE,MAAM;aAChB,OAAO,EAAE,sBAAsB;gBAF/B,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,sBAAsB;CAEtD;AAED,qBAOa,yBAA0B,SAAQ,oBAAoB;IAmDnD,OAAO,CAAC,GAAG;IAlDvB;;;OAGG;IACH,IACW,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,EAKtC;IACD,IAAW,OAAO,IAAI,MAAM,GAAG,IAAI,CAElC;IAED;;;;;;OAMG;IACH,IACW,MAAM,CAAC,KAAK,EAAE,OAAO,EAG/B;IACD,IAAW,MAAM,IAAI,OAAO,CAE3B;IAED,uGAAuG;IACvF,cAAc,EAAE,OAAO,CAAS;IAEhD,+FAA+F;IAC/E,eAAe,EAAE,MAAM,GAAG,IAAI,CAAQ;IACtC,aAAa,EAA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