@memberjunction/task-graph 6.1.0-edge.1 → 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.
Files changed (36) hide show
  1. package/README.md +185 -0
  2. package/dist/TaskClaimStore.d.ts +11 -0
  3. package/dist/TaskClaimStore.d.ts.map +1 -1
  4. package/dist/TaskClaimStore.js +8 -3
  5. package/dist/TaskClaimStore.js.map +1 -1
  6. package/dist/TaskGraphDispatcher.d.ts +364 -2
  7. package/dist/TaskGraphDispatcher.d.ts.map +1 -1
  8. package/dist/TaskGraphDispatcher.js +1534 -37
  9. package/dist/TaskGraphDispatcher.js.map +1 -1
  10. package/dist/TaskGraphService.d.ts +110 -1
  11. package/dist/TaskGraphService.d.ts.map +1 -1
  12. package/dist/TaskGraphService.js +458 -19
  13. package/dist/TaskGraphService.js.map +1 -1
  14. package/dist/TaskLoopExecutor.d.ts +62 -0
  15. package/dist/TaskLoopExecutor.d.ts.map +1 -0
  16. package/dist/TaskLoopExecutor.js +248 -0
  17. package/dist/TaskLoopExecutor.js.map +1 -0
  18. package/dist/WorkflowSpecSync.d.ts +28 -2
  19. package/dist/WorkflowSpecSync.d.ts.map +1 -1
  20. package/dist/WorkflowSpecSync.js +83 -2
  21. package/dist/WorkflowSpecSync.js.map +1 -1
  22. package/dist/index.d.ts +1 -0
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index.js +1 -0
  25. package/dist/index.js.map +1 -1
  26. package/dist/operations/TaskGraphOperations.d.ts.map +1 -1
  27. package/dist/operations/TaskGraphOperations.js +4 -0
  28. package/dist/operations/TaskGraphOperations.js.map +1 -1
  29. package/dist/operations/WorkflowDraftOperation.d.ts +37 -0
  30. package/dist/operations/WorkflowDraftOperation.d.ts.map +1 -0
  31. package/dist/operations/WorkflowDraftOperation.js +141 -0
  32. package/dist/operations/WorkflowDraftOperation.js.map +1 -0
  33. package/dist/types.d.ts +114 -0
  34. package/dist/types.d.ts.map +1 -1
  35. package/dist/types.js.map +1 -1
  36. package/package.json +10 -7
package/dist/index.d.ts CHANGED
@@ -14,5 +14,6 @@ export * from './TaskGraphDispatcher.js';
14
14
  export * from './TaskGraphSubmitterImpl.js';
15
15
  export * from './WorkflowSpecSync.js';
16
16
  export * from './operations/TaskGraphOperations.js';
17
+ export * from './operations/WorkflowDraftOperation.js';
17
18
  export * from './operations/WorkflowOperations.js';
18
19
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,cAAc,SAAS,CAAC;AACxB,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,iCAAiC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,cAAc,SAAS,CAAC;AACxB,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,qCAAqC,CAAC;AACpD,cAAc,iCAAiC,CAAC"}
package/dist/index.js CHANGED
@@ -14,5 +14,6 @@ export * from './TaskGraphDispatcher.js';
14
14
  export * from './TaskGraphSubmitterImpl.js';
15
15
  export * from './WorkflowSpecSync.js';
16
16
  export * from './operations/TaskGraphOperations.js';
17
+ export * from './operations/WorkflowDraftOperation.js';
17
18
  export * from './operations/WorkflowOperations.js';
18
19
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,cAAc,SAAS,CAAC;AACxB,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,iCAAiC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,cAAc,SAAS,CAAC;AACxB,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,qCAAqC,CAAC;AACpD,cAAc,iCAAiC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TaskGraphOperations.d.ts","sourceRoot":"","sources":["../../src/operations/TaskGraphOperations.ts"],"names":[],"mappings":"AAqBA,OAAO,EAA0B,iBAAiB,EAAW,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACpG,OAAO,EAEH,wBAAwB,EACxB,wBAAwB,EACxB,2BAA2B,EAC3B,2BAA2B,EAC3B,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC7B,MAAM,+BAA+B,CAAC;AAsCvC;;;;;;GAMG;AACH,qBACa,8BAA+B,SAAQ,wBAAwB;cACxD,eAAe,CAC3B,KAAK,EAAE,oBAAoB,EAC3B,QAAQ,EAAE,iBAAiB,EAC3B,IAAI,EAAE,QAAQ,GACf,OAAO,CAA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BACa,8BAA+B,SAAQ,wBAAwB;cACxD,eAAe,CAC3B,KAAK,EAAE,qBAAqB,EAC5B,QAAQ,EAAE,iBAAiB,EAC3B,IAAI,EAAE,QAAQ,GACf,OAAO,CAAC,sBAAsB,CAAC;CAYrC;AAED;;;;;GAKG;AACH,qBACa,iCAAkC,SAAQ,2BAA2B;cAC9D,eAAe,CAC3B,KAAK,EAAE,mBAAmB,EAC1B,QAAQ,EAAE,iBAAiB,EAC3B,IAAI,EAAE,QAAQ,GACf,OAAO,CAAC,sBAAsB,CAAC;CAUrC;AAED;;;;;;;GAOG;AACH,qBACa,iCAAkC,SAAQ,2BAA2B;cAC9D,eAAe,CAC3B,KAAK,EAAE,qBAAqB,EAC5B,QAAQ,EAAE,iBAAiB,EAC3B,IAAI,EAAE,QAAQ,GACf,OAAO,CAAC,qBAAqB,CAAC;CAkCpC;AAED,iEAAiE;AACjE,wBAAgB,uBAAuB,IAAI,IAAI,CAQ9C"}
@@ -29,6 +29,7 @@ import { BaseRemotableOperation, RunView } from '@memberjunction/core';
29
29
  import { TaskGraphSubmitOperation, TaskGraphCancelOperation, TaskGraphRetryTaskOperation, TaskGraphGetStatusOperation, } from '@memberjunction/core-entities';
30
30
  import { ComputeParentRollup } from '@memberjunction/ai-core-plus';
31
31
  import { TaskGraphService } from '../TaskGraphService.js';
32
+ import { LoadWorkflowDraftOperation } from './WorkflowDraftOperation.js';
32
33
  /**
33
34
  * Builds the service context from the operation's provider + user.
34
35
  *
@@ -160,5 +161,8 @@ export function LoadTaskGraphOperations() {
160
161
  void TaskGraphCancelServerOperation;
161
162
  void TaskGraphRetryTaskServerOperation;
162
163
  void TaskGraphGetStatusServerOperation;
164
+ // Workflow authoring rides the same loader: a host that starts the dispatcher but never
165
+ // registered these would accept a draft request and route it to the contract-only base.
166
+ LoadWorkflowDraftOperation();
163
167
  }
164
168
  //# sourceMappingURL=TaskGraphOperations.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TaskGraphOperations.js","sourceRo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K,8BAA8B,CAAC;IACpC,KAAK,8BAA8B,CAAC;IACpC,KAAK,iCAAiC,CAAC;IACvC,KAAK,iCAAiC,CAAC;IACvC,wFAAwF;IACxF,wFAAwF;IACxF,0BAA0B,EAAE,CAAC;AACjC,CAAC"}
@@ -0,0 +1,37 @@
1
+ import { IMetadataProvider, UserInfo } from '@memberjunction/core';
2
+ import { WorkflowDraftOperation, type WorkflowDraftInput, type WorkflowDraftOutput } from '@memberjunction/core-entities';
3
+ import { type TaskGraphSpec } from '@memberjunction/ai-core-plus';
4
+ /** The seeded prompt that does the drafting. */
5
+ export declare const WORKFLOW_DRAFTING_PROMPT = "Workflow Drafting";
6
+ /**
7
+ * How many agent names the prompt is told about.
8
+ *
9
+ * Bounded because the list goes into a prompt: an instance with hundreds of agents would spend most
10
+ * of its context enumerating them, and a model choosing between 300 names chooses worse than one
11
+ * choosing between 40. Top-level agents come first — those are the ones a workflow step can actually
12
+ * be assigned to.
13
+ */
14
+ export declare const MAX_AGENTS_OFFERED = 40;
15
+ /** `Workflow.Draft` — draft a workflow's steps from a description. Persists nothing. */
16
+ export declare class WorkflowDraftServerOperation extends WorkflowDraftOperation {
17
+ protected InternalExecute(input: WorkflowDraftInput, provider: IMetadataProvider, user: UserInfo): Promise<WorkflowDraftOutput>;
18
+ /**
19
+ * Checks the model's output against the SAME validator the canvas and `Workflow.Save` run.
20
+ *
21
+ * A draft that comes back must be savable. Returning something that only fails later — on the
22
+ * canvas, or worse at save time — would put the author in the position of debugging a graph they
23
+ * did not write, which is precisely the work this operation was meant to save them.
24
+ */
25
+ protected acceptDraft(draft: TaskGraphSpec, workflowName: string): WorkflowDraftOutput;
26
+ /**
27
+ * Agent names a step may be assigned to.
28
+ *
29
+ * Top-level agents only. A sub-agent exists to be called by its parent, so offering one as a
30
+ * workflow step would produce a draft that looks fine and assigns work to something that was
31
+ * never meant to be entered directly.
32
+ */
33
+ protected resolveAssignableAgents(provider: IMetadataProvider, user: UserInfo): Promise<string[]>;
34
+ }
35
+ /** Keeps the registration from being tree-shaken out of a bundled host. */
36
+ export declare function LoadWorkflowDraftOperation(): void;
37
+ //# sourceMappingURL=WorkflowDraftOperation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WorkflowDraftOperation.d.ts","sourceRoot":"","sources":["../../src/operations/WorkflowDraftOperation.ts"],"names":[],"mappings":"AAoBA,OAAO,EAA0B,iBAAiB,EAAqB,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC9G,OAAO,EACH,sBAAsB,EACtB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EAC3B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAIH,KAAK,aAAa,EACrB,MAAM,8BAA8B,CAAC;AAItC,gDAAgD;AAChD,eAAO,MAAM,wBAAwB,sBAAsB,CAAC;AAE5D;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,KAAK,CAAC;AAErC,wFAAwF;AACxF,qBACa,4BAA6B,SAAQ,sBAAsB;cACpD,eAAe,CAC3B,KAAK,EAAE,kBAAkB,EACzB,QAAQ,EAAE,iBAAiB,EAC3B,IAAI,EAAE,QAAQ,GACf,OAAO,CAAC,mBAAmB,CAAC;IAgD/B;;;;;;OAMG;IACH,SAAS,CAAC,WAAW,CAAC,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,GAAG,mBAAmB;IAetF;;;;;;OAMG;cACa,uBAAuB,CAAC,QAAQ,EAAE,iBAAiB,EAAE,IAAI,EAAE,QAAQ,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;CAiB1G;AAED,2EAA2E;AAC3E,wBAAgB,0BAA0B,IAAI,IAAI,CAGjD"}
@@ -0,0 +1,141 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ /**
8
+ * @fileoverview `Workflow.Draft` — turn a description into a workflow's steps.
9
+ *
10
+ * **Why this exists.** The Create Workflow front door offers three doors, and the middle one says
11
+ * *"Say what you want done. We draft the steps; you refine them on the canvas."* Without this
12
+ * operation that sentence is a promise the product does not keep — the author types a brief and
13
+ * lands on an empty canvas, which is worse than not offering the door at all.
14
+ *
15
+ * **It persists nothing.** The draft goes back to the caller and onto the canvas; `Workflow.Save` is
16
+ * what commits. That split is what makes the tile's other promise — *"Nothing is saved until you
17
+ * approve it"* — true rather than merely stated, and it is the same draft-then-confirm shape dry-run
18
+ * and Plan Mode already established.
19
+ *
20
+ * **A Remote Operation, per the program's standing rule**, so drafting is reachable from MCP, an
21
+ * Action wrapper and the editor by the same typed call — not a mutation only the Explorer client can
22
+ * make.
23
+ *
24
+ * @module @memberjunction/task-graph
25
+ */
26
+ import { RegisterClass } from '@memberjunction/global';
27
+ import { BaseRemotableOperation, LogError, RunView } from '@memberjunction/core';
28
+ import { WorkflowDraftOperation, } from '@memberjunction/core-entities';
29
+ import { AIPromptParams, FormatValidationErrors, ValidateTaskGraphSpec, } from '@memberjunction/ai-core-plus';
30
+ import { AIEngine } from '@memberjunction/aiengine';
31
+ import { AIPromptRunner } from '@memberjunction/ai-prompts';
32
+ /** The seeded prompt that does the drafting. */
33
+ export const WORKFLOW_DRAFTING_PROMPT = 'Workflow Drafting';
34
+ /**
35
+ * How many agent names the prompt is told about.
36
+ *
37
+ * Bounded because the list goes into a prompt: an instance with hundreds of agents would spend most
38
+ * of its context enumerating them, and a model choosing between 300 names chooses worse than one
39
+ * choosing between 40. Top-level agents come first — those are the ones a workflow step can actually
40
+ * be assigned to.
41
+ */
42
+ export const MAX_AGENTS_OFFERED = 40;
43
+ /** `Workflow.Draft` — draft a workflow's steps from a description. Persists nothing. */
44
+ let WorkflowDraftServerOperation = class WorkflowDraftServerOperation extends WorkflowDraftOperation {
45
+ async InternalExecute(input, provider, user) {
46
+ const description = input?.description?.trim();
47
+ const workflowName = input?.workflowName?.trim();
48
+ if (!description)
49
+ return { success: false, errorMessage: 'A description is required to draft a workflow.' };
50
+ if (!workflowName)
51
+ return { success: false, errorMessage: 'A workflow name is required.' };
52
+ try {
53
+ await AIEngine.Instance.Config(false, user, provider);
54
+ const prompt = AIEngine.Instance.Prompts.find((p) => p.Name === WORKFLOW_DRAFTING_PROMPT);
55
+ if (!prompt) {
56
+ return {
57
+ success: false,
58
+ errorMessage: `The '${WORKFLOW_DRAFTING_PROMPT}' prompt is not present — has the metadata seed been pushed?`,
59
+ };
60
+ }
61
+ const agentNames = await this.resolveAssignableAgents(provider, user);
62
+ if (agentNames.length === 0) {
63
+ // Stated rather than drafted around: every step needs an assignment, so a draft
64
+ // produced with no agents to assign would be invalid the moment it was validated.
65
+ return {
66
+ success: false,
67
+ errorMessage: 'No agents are available to run workflow steps on this instance, so there is nothing to draft with.',
68
+ };
69
+ }
70
+ const params = new AIPromptParams();
71
+ params.prompt = prompt;
72
+ params.contextUser = user;
73
+ params.data = {
74
+ description,
75
+ workflowName,
76
+ availableAgents: agentNames.join('\n'),
77
+ };
78
+ const result = await new AIPromptRunner().ExecutePrompt(params);
79
+ if (!result.success || !result.result) {
80
+ return { success: false, errorMessage: result.errorMessage ?? 'The workflow could not be drafted.' };
81
+ }
82
+ return this.acceptDraft(result.result, workflowName);
83
+ }
84
+ catch (e) {
85
+ const message = e instanceof Error ? e.message : String(e);
86
+ LogError(`[Workflow.Draft] Drafting failed for "${workflowName}": ${message}`);
87
+ return { success: false, errorMessage: message };
88
+ }
89
+ }
90
+ /**
91
+ * Checks the model's output against the SAME validator the canvas and `Workflow.Save` run.
92
+ *
93
+ * A draft that comes back must be savable. Returning something that only fails later — on the
94
+ * canvas, or worse at save time — would put the author in the position of debugging a graph they
95
+ * did not write, which is precisely the work this operation was meant to save them.
96
+ */
97
+ acceptDraft(draft, workflowName) {
98
+ // The name is the author's, not the model's: they typed it on the front door, and a model
99
+ // quietly renaming their workflow is a small betrayal of a field they filled in themselves.
100
+ const graph = { ...draft, workflowName };
101
+ const validation = ValidateTaskGraphSpec(graph);
102
+ if (!validation.Valid) {
103
+ return {
104
+ success: false,
105
+ errorMessage: `The drafted workflow was not usable:\n${FormatValidationErrors(validation.Errors)}`,
106
+ };
107
+ }
108
+ return { success: true, graph };
109
+ }
110
+ /**
111
+ * Agent names a step may be assigned to.
112
+ *
113
+ * Top-level agents only. A sub-agent exists to be called by its parent, so offering one as a
114
+ * workflow step would produce a draft that looks fine and assigns work to something that was
115
+ * never meant to be entered directly.
116
+ */
117
+ async resolveAssignableAgents(provider, user) {
118
+ const result = await RunView.FromMetadataProvider(provider).RunView({
119
+ EntityName: 'MJ: AI Agents',
120
+ ExtraFilter: `Status='Active' AND ParentID IS NULL`,
121
+ Fields: ['Name'],
122
+ OrderBy: 'Name ASC',
123
+ MaxRows: MAX_AGENTS_OFFERED,
124
+ ResultType: 'simple',
125
+ }, user);
126
+ if (!result.Success) {
127
+ throw new Error(result.ErrorMessage ?? 'The list of available agents could not be read.');
128
+ }
129
+ return (result.Results ?? []).map((a) => a.Name).filter((n) => !!n);
130
+ }
131
+ };
132
+ WorkflowDraftServerOperation = __decorate([
133
+ RegisterClass(BaseRemotableOperation, 'Workflow.Draft')
134
+ ], WorkflowDraftServerOperation);
135
+ export { WorkflowDraftServerOperation };
136
+ /** Keeps the registration from being tree-shaken out of a bundled host. */
137
+ export function LoadWorkflowDraftOperation() {
138
+ // Referencing the class is what the bundler needs.
139
+ void WorkflowDraftServerOperation;
140
+ }
141
+ //# sourceMappingURL=WorkflowDraftOperation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WorkflowDraftOperation.js","sourceRoot":"","sources":["../../src/operations/WorkflowDraftOperation.ts"],"names":[],"mappings":";;;;;;A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CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACxE,CAAC;CACJ,CAAA;AAnGY,4BAA4B;IADxC,aAAa,CAAC,sBAAsB,EAAE,gBAAgB,CAAC;GAC3C,4BAA4B,CAmGxC;;AAED,2EAA2E;AAC3E,MAAM,UAAU,0BAA0B;IACtC,mDAAmD;IACnD,KAAK,4BAA4B,CAAC;AACtC,CAAC"}
package/dist/types.d.ts CHANGED
@@ -29,6 +29,91 @@ export type ProviderFactory = {
29
29
  export type TaskAgentRunner = {
30
30
  RunAgentForTask(params: TaskAgentRunParams): Promise<TaskAgentRunResult>;
31
31
  };
32
+ /** Everything running one action for one task node needs. */
33
+ export type TaskActionRunParams = {
34
+ TaskID: string;
35
+ ActionID: string;
36
+ /** Structured input from `Task.InputPayload` — for durable entity-action dispatch, the redacted params. */
37
+ InputPayload: unknown;
38
+ /** Outputs of this node's satisfied prerequisites, in the same shape agent nodes receive. */
39
+ DependencyOutputs: Map<string, unknown>;
40
+ Provider: IMetadataProvider;
41
+ ContextUser: UserInfo;
42
+ };
43
+ /** The outcome of one action node. */
44
+ export type TaskActionRunResult = {
45
+ Success: boolean;
46
+ Output?: unknown;
47
+ ErrorMessage?: string;
48
+ /**
49
+ * The `MJ: Action Execution Logs` row this run produced.
50
+ *
51
+ * Carried so the step can record it, which is what lets a workflow's action offer "view the
52
+ * execution log" the way an ordinary agent run step does. Optional because a runner that
53
+ * cannot produce one is limited, not broken.
54
+ */
55
+ ActionLogID?: string;
56
+ };
57
+ /**
58
+ * Runs one action for one task node.
59
+ *
60
+ * The third execution shape, beside agents and people. Abstracted for the same reason
61
+ * {@link TaskAgentRunner} is: the dispatcher must stay unit-testable without standing up the action
62
+ * engine, and this package must not import it — `@memberjunction/actions` depends on the entity
63
+ * layer this one also builds on, and reaching for it here would make every consumer of durable
64
+ * execution load the action engine too.
65
+ *
66
+ * **A host with no action runner is not broken, it is limited.** Action nodes stay Pending on it,
67
+ * which is visible in the Tasks UI, rather than being marked failed — a task nobody in this
68
+ * deployment can run is not the same as a task that ran and did not work.
69
+ */
70
+ export type TaskActionRunner = {
71
+ RunActionForTask(params: TaskActionRunParams): Promise<TaskActionRunResult>;
72
+ };
73
+ /** Everything running one prompt for one task node needs. */
74
+ export type TaskPromptRunParams = {
75
+ TaskID: string;
76
+ PromptID: string;
77
+ /** Structured input from `Task.InputPayload`, after the node's input mapping. */
78
+ InputPayload: unknown;
79
+ /** Outputs of this node's satisfied prerequisites, in the same shape agent nodes receive. */
80
+ DependencyOutputs: Map<string, unknown>;
81
+ /** Template parameters declared on the node's configuration. */
82
+ TemplateParameters?: Record<string, string>;
83
+ Provider: IMetadataProvider;
84
+ ContextUser: UserInfo;
85
+ };
86
+ /** The outcome of one prompt node. */
87
+ export type TaskPromptRunResult = {
88
+ Success: boolean;
89
+ /** The parsed JSON response, deep-merged into the payload by the dispatcher. */
90
+ Output?: unknown;
91
+ ErrorMessage?: string;
92
+ /** The `MJ: AI Prompt Runs` row, for provenance. */
93
+ PromptRunID?: string;
94
+ /**
95
+ * Set when the prompt asked to end the workflow and say something to a person.
96
+ *
97
+ * A prompt is the one node kind that can decide the workflow is *done* — it is the only one
98
+ * doing open-ended reasoning. The dispatcher honours it by skipping the remaining tasks and
99
+ * settling the parent Complete with this message, rather than treating an early finish as an
100
+ * abandoned graph.
101
+ */
102
+ ChatMessage?: string;
103
+ };
104
+ /**
105
+ * Runs one prompt for one task node.
106
+ *
107
+ * The fourth execution shape, and abstracted for the same reason as the others: this package must
108
+ * stay unit-testable without standing up the AI engine, and must not import it — the prompt runner
109
+ * lives in MJServer where the engine already does.
110
+ *
111
+ * **A host with no prompt runner is limited, not broken.** Prompt nodes stay Pending and visible,
112
+ * exactly like action nodes without an action runner.
113
+ */
114
+ export type TaskPromptRunner = {
115
+ RunPromptForTask(params: TaskPromptRunParams): Promise<TaskPromptRunResult>;
116
+ };
32
117
  /** What happened to a task or a graph, as a closed set a consumer can branch on. */
33
118
  export type TaskGraphFrameKind =
34
119
  /** A task was claimed by an instance and is about to run. */
@@ -39,6 +124,15 @@ export type TaskGraphFrameKind =
39
124
  | 'TaskFailed'
40
125
  /** A task was blocked because a prerequisite failed or became unreachable. */
41
126
  | 'TaskBlocked'
127
+ /**
128
+ * A task was NOT TAKEN because another branch of an exclusive fan-out won.
129
+ *
130
+ * Distinct from `TaskBlocked` on purpose: blocked means something went wrong upstream and the
131
+ * viewer should look for a cause; skipped means the workflow chose a different route and there
132
+ * is nothing to investigate. Rendering them the same would send people hunting for bugs that do
133
+ * not exist.
134
+ */
135
+ | 'TaskSkipped'
42
136
  /** A human task became actionable and is waiting on its assignee. */
43
137
  | 'TaskAwaitingHuman'
44
138
  /** Every node has reached a terminal state; `Status` is the graph's rolled-up outcome. */
@@ -99,6 +193,26 @@ export type TaskGraphObserver = {
99
193
  export type TaskAgentRunParams = {
100
194
  /** The task row being executed. */
101
195
  TaskID: string;
196
+ /**
197
+ * The agent run that submitted this graph, when there was one.
198
+ *
199
+ * Becomes the spawned run's `ParentRunID`, which is what makes a workflow's total cost a single
200
+ * indexed sum over `RootParentRunID` instead of a walk. Null for a graph nobody's run submitted
201
+ * — a schedule, MCP, or a person — and that is a real case, not a missing value.
202
+ *
203
+ * Note this is a run→run link: the task graph sits BETWEEN the two conceptually but cannot be
204
+ * the parent, because the column points at a run. The graph is recovered through
205
+ * `Task.AgentRunID` and `Task.ParentID`.
206
+ */
207
+ SubmittingAgentRunID?: string | null;
208
+ /**
209
+ * How many continuation hops led to this run, from the graph's own metadata.
210
+ *
211
+ * Carried so the chain is BOUNDED. A flow that dispatches a graph containing itself recurses
212
+ * forever otherwise: each spawned run starts at depth zero, so `MAX_REINVOKE_DEPTH` compares
213
+ * against a permanent zero and never fires. The cap exists; this is what feeds it.
214
+ */
215
+ ContinuationDepth?: number;
102
216
  /** Agent assigned to the task. */
103
217
  AgentID: string;
104
218
  /** Parsed `Task.InputPayload`, if any. */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","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IAC5B,kBAAkB,EAAE,CAAC;IACrB,mBAAmB,EAAE,CAAC;IACtB,6BAA6B,EAAE,GAAG;CACrC,CAAC"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAmVA,wFAAwF;AACxF,MAAM,CAAC,MAAM,yBAAyB,GAAkD;IACpF,eAAe,EAAE,GAAG;IACpB,wBAAwB,EAAE,EAAE;IAC5B,kBAAkB,EAAE,CAAC;IACrB,mBAAmB,EAAE,CAAC;IACtB,6BAA6B,EAAE,GAAG;CACrC,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@memberjunction/task-graph",
3
3
  "type": "module",
4
- "version": "6.1.0-edge.1",
4
+ "version": "6.1.0-edge.2",
5
5
  "description": "MemberJunction: Task Graph - producer-agnostic submission and durable execution of dependency-ordered task graphs",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -11,12 +11,15 @@
11
11
  "author": "MemberJunction.com",
12
12
  "license": "ISC",
13
13
  "dependencies": {
14
- "@memberjunction/ai-agents": "6.1.0-edge.1",
15
- "@memberjunction/ai-core-plus": "6.1.0-edge.1",
16
- "@memberjunction/core": "6.1.0-edge.1",
17
- "@memberjunction/core-entities": "6.1.0-edge.1",
18
- "@memberjunction/global": "6.1.0-edge.1",
19
- "@memberjunction/notifications": "6.1.0-edge.1"
14
+ "@memberjunction/actions-base": "6.1.0-edge.2",
15
+ "@memberjunction/ai-agents": "6.1.0-edge.2",
16
+ "@memberjunction/ai-core-plus": "6.1.0-edge.2",
17
+ "@memberjunction/ai-prompts": "6.1.0-edge.2",
18
+ "@memberjunction/aiengine": "6.1.0-edge.2",
19
+ "@memberjunction/core": "6.1.0-edge.2",
20
+ "@memberjunction/core-entities": "6.1.0-edge.2",
21
+ "@memberjunction/global": "6.1.0-edge.2",
22
+ "@memberjunction/notifications": "6.1.0-edge.2"
20
23
  },
21
24
  "devDependencies": {
22
25
  "@types/node": "24.10.11",