@memberjunction/task-graph 6.2.1 → 6.3.0-edge.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/TaskGraphDispatcher.d.ts +279 -2
- package/dist/TaskGraphDispatcher.d.ts.map +1 -1
- package/dist/TaskGraphDispatcher.js +1255 -330
- package/dist/TaskGraphDispatcher.js.map +1 -1
- package/dist/TaskGraphService.d.ts +57 -1
- package/dist/TaskGraphService.d.ts.map +1 -1
- package/dist/TaskGraphService.js +176 -24
- package/dist/TaskGraphService.js.map +1 -1
- package/dist/TaskGraphSubmitterImpl.d.ts +1 -0
- package/dist/TaskGraphSubmitterImpl.d.ts.map +1 -1
- package/dist/TaskGraphSubmitterImpl.js +5 -0
- package/dist/TaskGraphSubmitterImpl.js.map +1 -1
- package/dist/decision-node.d.ts +19 -0
- package/dist/decision-node.d.ts.map +1 -1
- package/dist/decision-node.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/operations/TaskGraphDebugOperations.d.ts +23 -0
- package/dist/operations/TaskGraphDebugOperations.d.ts.map +1 -1
- package/dist/operations/TaskGraphDebugOperations.js +13 -13
- package/dist/operations/TaskGraphDebugOperations.js.map +1 -1
- package/dist/operations/TaskGraphOperations.d.ts.map +1 -1
- package/dist/operations/TaskGraphOperations.js +12 -7
- package/dist/operations/TaskGraphOperations.js.map +1 -1
- package/dist/saga-compensation.d.ts +167 -0
- package/dist/saga-compensation.d.ts.map +1 -0
- package/dist/saga-compensation.js +392 -0
- package/dist/saga-compensation.js.map +1 -0
- package/dist/task-security.d.ts +96 -0
- package/dist/task-security.d.ts.map +1 -0
- package/dist/task-security.js +187 -0
- package/dist/task-security.js.map +1 -0
- package/dist/types.d.ts +57 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +1 -0
- package/dist/types.js.map +1 -1
- package/package.json +12 -12
|
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AC,GAAG,CAAC,MAAM,CAAC;YAAE,OAAO,CAAC,CAAC;QACnC,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QACrB,IAAI,cAAc,GAAG,CAAC,CAAC,CAAC;QACxB,KAAK,MAAM,QAAQ,IAAI,eAAe,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC;YACvD,cAAc,GAAG,IAAI,CAAC,GAAG,CAAC,cAAc,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC/D,CAAC;QACD,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACxB,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,cAAc,GAAG,CAAC,CAAC,CAAC;QACvC,OAAO,cAAc,GAAG,CAAC,CAAC;IAC9B,CAAC,CAAC;IACF,KAAK,MAAM,GAAG,IAAI,KAAK;QAAE,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IACvC,OAAO,MAAM,CAAC;AAClB,CAAC;AAED,SAAS,gBAAgB,CAAC,KAAc;IACpC,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AAC3F,CAAC;AAED,SAAS,QAAQ,CAAC,KAAc;IAC5B,OAAO,CAAC,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AACzE,CAAC"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview How the dispatcher reads and applies a node's security envelope.
|
|
3
|
+
*
|
|
4
|
+
* The envelope itself (`TaskSecurityEnvelope`, `@memberjunction/ai-core-plus`) is the submitting
|
|
5
|
+
* run's constraints. This module answers the three questions the dispatcher asks of it for one node:
|
|
6
|
+
* which constraints apply (the parent's and the node's stored envelopes, merged), whether the node's
|
|
7
|
+
* input is tainted, and which user the node runs as.
|
|
8
|
+
*
|
|
9
|
+
* @module @memberjunction/task-graph
|
|
10
|
+
*/
|
|
11
|
+
import { type TaskSecurityEnvelope } from '@memberjunction/ai-core-plus';
|
|
12
|
+
import { type IMetadataProvider, type TenantContext, UserInfo } from '@memberjunction/core';
|
|
13
|
+
import type { MJTaskEntity } from '@memberjunction/core-entities';
|
|
14
|
+
/** A node's stored constraints, or why they cannot be enforced (the node is then refused). */
|
|
15
|
+
export type NodeSecurity = {
|
|
16
|
+
readonly Envelope: TaskSecurityEnvelope | undefined;
|
|
17
|
+
} | {
|
|
18
|
+
readonly Refusal: string;
|
|
19
|
+
};
|
|
20
|
+
/** The task columns {@link UpstreamCarriesTaint} reads. */
|
|
21
|
+
export type UpstreamTaskTaintFields = Pick<MJTaskEntity, 'ID' | 'StepType' | 'UserID' | 'Status' | 'Configuration'>;
|
|
22
|
+
/**
|
|
23
|
+
* The rows a task depends on, by that task's ID: how the taint check looks past a node that recorded
|
|
24
|
+
* no taint to what could have reached it. Returns `undefined` when they are not known.
|
|
25
|
+
*/
|
|
26
|
+
export type UpstreamTaintLookup = (taskID: string) => readonly UpstreamTaskTaintFields[] | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* The constraints a node runs under: its graph parent's stored envelope merged with its own, keeping
|
|
29
|
+
* the stricter of each part. An envelope that does not parse, is of an unknown version, or conflicts
|
|
30
|
+
* with the other refuses the node — it never runs as though it had no envelope.
|
|
31
|
+
*/
|
|
32
|
+
export declare function ResolveStoredNodeSecurity(parentColumn: string | null | undefined, nodeColumn: string | null | undefined): NodeSecurity;
|
|
33
|
+
/**
|
|
34
|
+
* Whether a finished node's output carries taint into the nodes that depend on it.
|
|
35
|
+
*
|
|
36
|
+
* A `Human` step that its assignee completed in person never does: a person reviewed what flowed
|
|
37
|
+
* through it, which is the only thing that clears taint inside a graph ({@link HumanReviewClearsTaint}).
|
|
38
|
+
* Any other node carries what it recorded when it ran (`Configuration.runtime.isOutputTainted`, which
|
|
39
|
+
* every node the dispatcher runs writes as its input taint OR its own). In a graph whose steps record their
|
|
40
|
+
* taint (`recordsTaint`, every graph submitted since), a node `Complete` with nothing recorded and no person
|
|
41
|
+
* recorded as completing it is tainted: it was completed outside the dispatcher
|
|
42
|
+
* (forced, or saved or answered by code), so its output is nobody's vouched-for result, and what ran
|
|
43
|
+
* before it may not have run yet. Any other node that recorded nothing (a Human step a person other than
|
|
44
|
+
* its assignee completed, skipped, failed before recording) is never read as clean: it is tainted when the graph is, or when anything it depends on
|
|
45
|
+
* could be (followed through `upstreamOf`, transitively), and tainted outright when what it depends on
|
|
46
|
+
* is not known. So a Decision, a skipped branch or a failed step between an untrusted fetch and an
|
|
47
|
+
* egress action cannot launder the fetch's taint.
|
|
48
|
+
*/
|
|
49
|
+
export declare function UpstreamCarriesTaint(upstream: UpstreamTaskTaintFields, graphTainted: boolean, upstreamOf?: UpstreamTaintLookup, recordsTaint?: boolean): boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Whether a node is a Human step whose review clears taint: `StepType` is `Human` (a row with a null
|
|
52
|
+
* `StepType` and a `UserID` is not enough), it is `Complete`, and the server recorded a person's
|
|
53
|
+
* completion (`Configuration.runtime.completedByUserID`) as made by its assignee.
|
|
54
|
+
*
|
|
55
|
+
* The record is what tells a person's review apart from code: it is written only for a completion
|
|
56
|
+
* that came from a person, never for one made by server code such as an agent or action run (which
|
|
57
|
+
* runs as the same user as the graph's submitter, the step's assignee). `MJTaskEntityServer` writes
|
|
58
|
+
* it for a save that arrives as a direct client CRUD request (the Tasks UI) and records nothing for
|
|
59
|
+
* any other, and the dispatcher writes it from an answered request's server-recorded responder. Any
|
|
60
|
+
* other write of it is refused. A completion by someone other than the assignee does not count.
|
|
61
|
+
*/
|
|
62
|
+
export declare function HumanReviewClearsTaint(node: Pick<UpstreamTaskTaintFields, 'StepType' | 'UserID' | 'Status' | 'Configuration'>): boolean;
|
|
63
|
+
/** The output taint a node recorded when it ran, or `undefined` when it recorded none. */
|
|
64
|
+
export declare function RecordedOutputTaint(configuration: string | null | undefined): boolean | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* Whether a node's input is tainted. A node with no prerequisites reads only what the (possibly
|
|
67
|
+
* tainted) run wrote into the graph, so it takes the envelope's taint. A node with prerequisites is
|
|
68
|
+
* tainted when any of them carries taint ({@link UpstreamCarriesTaint}, which follows `UpstreamOf`
|
|
69
|
+
* past a prerequisite that recorded none); a compensation task also keeps the taint it inherited
|
|
70
|
+
* from the forward task it undoes.
|
|
71
|
+
*/
|
|
72
|
+
export declare function ComputeNodeInputTaint(args: {
|
|
73
|
+
EnvelopeTainted: boolean;
|
|
74
|
+
IsCompensation: boolean;
|
|
75
|
+
Upstream: readonly UpstreamTaskTaintFields[];
|
|
76
|
+
/** The graph's prerequisites by task, for prerequisites that recorded no taint. Omitted: they read as tainted. */
|
|
77
|
+
UpstreamOf?: UpstreamTaintLookup;
|
|
78
|
+
/** The graph's steps record their taint (`TaskGraphParentMetadata.recordsTaint`). Omitted: true. */
|
|
79
|
+
RecordsTaint?: boolean;
|
|
80
|
+
}): boolean;
|
|
81
|
+
/**
|
|
82
|
+
* The envelope a node's runners receive: its stored constraints with the taint bit set to the node's
|
|
83
|
+
* input taint. `undefined` when the node has neither constraints nor taint.
|
|
84
|
+
*/
|
|
85
|
+
export declare function WithInputTaint(envelope: TaskSecurityEnvelope | undefined, inputTainted: boolean): TaskSecurityEnvelope | undefined;
|
|
86
|
+
/** Whether an envelope constrains anything a runner must enforce. */
|
|
87
|
+
export declare function EnvelopeConstrains(envelope: TaskSecurityEnvelope | undefined): boolean;
|
|
88
|
+
/**
|
|
89
|
+
* A per-task copy of `user` carrying the caller's tenant context. The user a node runs as is the
|
|
90
|
+
* process-wide `UserCache` instance or the dispatcher's own user, and every other task — and every
|
|
91
|
+
* request — shares it; stamping the context onto it would pin it to this tenant for the life of the
|
|
92
|
+
* process. So the input is never stamped: this follows MJServer's `CloneUserForSessionContext`
|
|
93
|
+
* (spread the backing fields, hand the roles over explicitly, then stamp the clone).
|
|
94
|
+
*/
|
|
95
|
+
export declare function CloneUserWithTenantContext(user: UserInfo, tenant: TenantContext, provider: IMetadataProvider): UserInfo;
|
|
96
|
+
//# sourceMappingURL=task-security.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task-security.d.ts","sourceRoot":"","sources":["../src/task-security.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAIH,KAAK,oBAAoB,EAC5B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,aAAa,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC5F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAGlE,8FAA8F;AAC9F,MAAM,MAAM,YAAY,GAClB;IAAE,QAAQ,CAAC,QAAQ,EAAE,oBAAoB,GAAG,SAAS,CAAA;CAAE,GACvD;IAAE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AAEnC,2DAA2D;AAC3D,MAAM,MAAM,uBAAuB,GAAG,IAAI,CAAC,YAAY,EAAE,IAAI,GAAG,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,eAAe,CAAC,CAAC;AAEpH;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,MAAM,EAAE,MAAM,KAAK,SAAS,uBAAuB,EAAE,GAAG,SAAS,CAAC;AAErG;;;;GAIG;AACH,wBAAgB,yBAAyB,CACrC,YAAY,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACvC,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GACtC,YAAY,CAad;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,oBAAoB,CAChC,QAAQ,EAAE,uBAAuB,EACjC,YAAY,EAAE,OAAO,EACrB,UAAU,CAAC,EAAE,mBAAmB,EAChC,YAAY,UAAO,GACpB,OAAO,CAET;AAgBD;;;;;;;;;;;GAWG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,IAAI,CAAC,uBAAuB,EAAE,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,eAAe,CAAC,GAAG,OAAO,CAMvI;AA6CD,0FAA0F;AAC1F,wBAAgB,mBAAmB,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAGjG;AAaD;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE;IACxC,eAAe,EAAE,OAAO,CAAC;IACzB,cAAc,EAAE,OAAO,CAAC;IACxB,QAAQ,EAAE,SAAS,uBAAuB,EAAE,CAAC;IAC7C,kHAAkH;IAClH,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC,oGAAoG;IACpG,YAAY,CAAC,EAAE,OAAO,CAAC;CAC1B,GAAG,OAAO,CAOV;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,oBAAoB,GAAG,SAAS,EAAE,YAAY,EAAE,OAAO,GAAG,oBAAoB,GAAG,SAAS,CAGlI;AAED,qEAAqE;AACrE,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,oBAAoB,GAAG,SAAS,GAAG,OAAO,CAOtF;AAED;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,iBAAiB,GAAG,QAAQ,CAWvH"}
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview How the dispatcher reads and applies a node's security envelope.
|
|
3
|
+
*
|
|
4
|
+
* The envelope itself (`TaskSecurityEnvelope`, `@memberjunction/ai-core-plus`) is the submitting
|
|
5
|
+
* run's constraints. This module answers the three questions the dispatcher asks of it for one node:
|
|
6
|
+
* which constraints apply (the parent's and the node's stored envelopes, merged), whether the node's
|
|
7
|
+
* input is tainted, and which user the node runs as.
|
|
8
|
+
*
|
|
9
|
+
* @module @memberjunction/task-graph
|
|
10
|
+
*/
|
|
11
|
+
import { MergeTaskSecurityEnvelopes, ParseTaskSecurityEnvelope, TASK_SECURITY_ENVELOPE_VERSION, } from '@memberjunction/ai-core-plus';
|
|
12
|
+
import { UserInfo } from '@memberjunction/core';
|
|
13
|
+
import { UUIDMap, UUIDSet, UUIDsEqual } from '@memberjunction/global';
|
|
14
|
+
/**
|
|
15
|
+
* The constraints a node runs under: its graph parent's stored envelope merged with its own, keeping
|
|
16
|
+
* the stricter of each part. An envelope that does not parse, is of an unknown version, or conflicts
|
|
17
|
+
* with the other refuses the node — it never runs as though it had no envelope.
|
|
18
|
+
*/
|
|
19
|
+
export function ResolveStoredNodeSecurity(parentColumn, nodeColumn) {
|
|
20
|
+
const parent = ParseTaskSecurityEnvelope(parentColumn);
|
|
21
|
+
if (parent.Status === 'Invalid')
|
|
22
|
+
return { Refusal: `On the workflow: ${parent.Reason}` };
|
|
23
|
+
const node = ParseTaskSecurityEnvelope(nodeColumn);
|
|
24
|
+
if (node.Status === 'Invalid')
|
|
25
|
+
return { Refusal: node.Reason };
|
|
26
|
+
const merged = MergeTaskSecurityEnvelopes(parent.Status === 'Valid' ? parent.Envelope : undefined, node.Status === 'Valid' ? node.Envelope : undefined);
|
|
27
|
+
if ('Reason' in merged) {
|
|
28
|
+
return { Refusal: `The task's security envelope cannot be enforced: ${merged.Reason}.` };
|
|
29
|
+
}
|
|
30
|
+
return { Envelope: merged.Envelope };
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Whether a finished node's output carries taint into the nodes that depend on it.
|
|
34
|
+
*
|
|
35
|
+
* A `Human` step that its assignee completed in person never does: a person reviewed what flowed
|
|
36
|
+
* through it, which is the only thing that clears taint inside a graph ({@link HumanReviewClearsTaint}).
|
|
37
|
+
* Any other node carries what it recorded when it ran (`Configuration.runtime.isOutputTainted`, which
|
|
38
|
+
* every node the dispatcher runs writes as its input taint OR its own). In a graph whose steps record their
|
|
39
|
+
* taint (`recordsTaint`, every graph submitted since), a node `Complete` with nothing recorded and no person
|
|
40
|
+
* recorded as completing it is tainted: it was completed outside the dispatcher
|
|
41
|
+
* (forced, or saved or answered by code), so its output is nobody's vouched-for result, and what ran
|
|
42
|
+
* before it may not have run yet. Any other node that recorded nothing (a Human step a person other than
|
|
43
|
+
* its assignee completed, skipped, failed before recording) is never read as clean: it is tainted when the graph is, or when anything it depends on
|
|
44
|
+
* could be (followed through `upstreamOf`, transitively), and tainted outright when what it depends on
|
|
45
|
+
* is not known. So a Decision, a skipped branch or a failed step between an untrusted fetch and an
|
|
46
|
+
* egress action cannot launder the fetch's taint.
|
|
47
|
+
*/
|
|
48
|
+
export function UpstreamCarriesTaint(upstream, graphTainted, upstreamOf, recordsTaint = true) {
|
|
49
|
+
return carriesTaint(upstream, newTaintWalk(graphTainted, upstreamOf, recordsTaint));
|
|
50
|
+
}
|
|
51
|
+
function newTaintWalk(graphTainted, upstreamOf, recordsTaint) {
|
|
52
|
+
return { GraphTainted: graphTainted, UpstreamOf: upstreamOf, RecordsTaint: recordsTaint, Known: new UUIDMap(), Visiting: new UUIDSet() };
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Whether a node is a Human step whose review clears taint: `StepType` is `Human` (a row with a null
|
|
56
|
+
* `StepType` and a `UserID` is not enough), it is `Complete`, and the server recorded a person's
|
|
57
|
+
* completion (`Configuration.runtime.completedByUserID`) as made by its assignee.
|
|
58
|
+
*
|
|
59
|
+
* The record is what tells a person's review apart from code: it is written only for a completion
|
|
60
|
+
* that came from a person, never for one made by server code such as an agent or action run (which
|
|
61
|
+
* runs as the same user as the graph's submitter, the step's assignee). `MJTaskEntityServer` writes
|
|
62
|
+
* it for a save that arrives as a direct client CRUD request (the Tasks UI) and records nothing for
|
|
63
|
+
* any other, and the dispatcher writes it from an answered request's server-recorded responder. Any
|
|
64
|
+
* other write of it is refused. A completion by someone other than the assignee does not count.
|
|
65
|
+
*/
|
|
66
|
+
export function HumanReviewClearsTaint(node) {
|
|
67
|
+
if (node.StepType !== 'Human' || node.Status !== 'Complete' || !node.UserID) {
|
|
68
|
+
return false;
|
|
69
|
+
}
|
|
70
|
+
const completedBy = runtimeOf(node.Configuration)?.completedByUserID;
|
|
71
|
+
return typeof completedBy === 'string' && UUIDsEqual(completedBy, node.UserID);
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Whether the server recorded a person as completing this Human step. `completedByUserID` is written only for
|
|
75
|
+
* a person: the user whose own client request completed the step, or the responder of the request a person
|
|
76
|
+
* answered (`MJTaskEntityServer`, `MJAIAgentRequestEntityServer`).
|
|
77
|
+
*/
|
|
78
|
+
function completedByAPerson(node) {
|
|
79
|
+
return node.StepType === 'Human' && typeof runtimeOf(node.Configuration)?.completedByUserID === 'string';
|
|
80
|
+
}
|
|
81
|
+
function carriesTaint(node, walk) {
|
|
82
|
+
if (HumanReviewClearsTaint(node)) {
|
|
83
|
+
return false;
|
|
84
|
+
}
|
|
85
|
+
const recorded = RecordedOutputTaint(node.Configuration);
|
|
86
|
+
if (recorded !== undefined) {
|
|
87
|
+
return recorded;
|
|
88
|
+
}
|
|
89
|
+
if (walk.RecordsTaint && node.Status === 'Complete' && !completedByAPerson(node)) {
|
|
90
|
+
// Complete with nothing recorded and no person recorded as completing it: it did not finish through the
|
|
91
|
+
// dispatcher, which records every run's taint. Its output (forced from the debugger, saved by code, or an
|
|
92
|
+
// answer server code gave) is untrusted whatever ran before it, which may not have run yet. A Human step
|
|
93
|
+
// a person other than its assignee completed (a delegated approval) cleared nothing, but its answer is
|
|
94
|
+
// that person's own, so it passes on what fed it, below.
|
|
95
|
+
return true;
|
|
96
|
+
}
|
|
97
|
+
if (walk.GraphTainted) {
|
|
98
|
+
return true;
|
|
99
|
+
}
|
|
100
|
+
const known = walk.Known.Get(node.ID);
|
|
101
|
+
if (known !== undefined) {
|
|
102
|
+
return known;
|
|
103
|
+
}
|
|
104
|
+
const inputs = walk.UpstreamOf?.(node.ID);
|
|
105
|
+
if (inputs === undefined || walk.Visiting.Has(node.ID)) {
|
|
106
|
+
return true;
|
|
107
|
+
}
|
|
108
|
+
walk.Visiting.Add(node.ID);
|
|
109
|
+
const tainted = inputs.some((input) => carriesTaint(input, walk));
|
|
110
|
+
walk.Visiting.Delete(node.ID);
|
|
111
|
+
walk.Known.Set(node.ID, tainted);
|
|
112
|
+
return tainted;
|
|
113
|
+
}
|
|
114
|
+
/** The output taint a node recorded when it ran, or `undefined` when it recorded none. */
|
|
115
|
+
export function RecordedOutputTaint(configuration) {
|
|
116
|
+
const flag = runtimeOf(configuration)?.isOutputTainted;
|
|
117
|
+
return typeof flag === 'boolean' ? flag : undefined;
|
|
118
|
+
}
|
|
119
|
+
/** The `runtime` object of a serialized `Task.Configuration`, or `undefined` when it has none or does not parse. */
|
|
120
|
+
function runtimeOf(configuration) {
|
|
121
|
+
if (!configuration)
|
|
122
|
+
return undefined;
|
|
123
|
+
try {
|
|
124
|
+
const parsed = JSON.parse(configuration);
|
|
125
|
+
return isRecord(parsed) && isRecord(parsed.runtime) ? parsed.runtime : undefined;
|
|
126
|
+
}
|
|
127
|
+
catch {
|
|
128
|
+
return undefined;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Whether a node's input is tainted. A node with no prerequisites reads only what the (possibly
|
|
133
|
+
* tainted) run wrote into the graph, so it takes the envelope's taint. A node with prerequisites is
|
|
134
|
+
* tainted when any of them carries taint ({@link UpstreamCarriesTaint}, which follows `UpstreamOf`
|
|
135
|
+
* past a prerequisite that recorded none); a compensation task also keeps the taint it inherited
|
|
136
|
+
* from the forward task it undoes.
|
|
137
|
+
*/
|
|
138
|
+
export function ComputeNodeInputTaint(args) {
|
|
139
|
+
if (args.Upstream.length === 0) {
|
|
140
|
+
return args.EnvelopeTainted;
|
|
141
|
+
}
|
|
142
|
+
const walk = newTaintWalk(args.EnvelopeTainted, args.UpstreamOf, args.RecordsTaint !== false);
|
|
143
|
+
const fromUpstream = args.Upstream.some((u) => carriesTaint(u, walk));
|
|
144
|
+
return fromUpstream || (args.IsCompensation && args.EnvelopeTainted);
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* The envelope a node's runners receive: its stored constraints with the taint bit set to the node's
|
|
148
|
+
* input taint. `undefined` when the node has neither constraints nor taint.
|
|
149
|
+
*/
|
|
150
|
+
export function WithInputTaint(envelope, inputTainted) {
|
|
151
|
+
if (!envelope && !inputTainted)
|
|
152
|
+
return undefined;
|
|
153
|
+
return { ...(envelope ?? { Version: TASK_SECURITY_ENVELOPE_VERSION }), IsRunTainted: inputTainted };
|
|
154
|
+
}
|
|
155
|
+
/** Whether an envelope constrains anything a runner must enforce. */
|
|
156
|
+
export function EnvelopeConstrains(envelope) {
|
|
157
|
+
if (!envelope)
|
|
158
|
+
return false;
|
|
159
|
+
return envelope.IsRunTainted
|
|
160
|
+
|| envelope.Audience !== undefined
|
|
161
|
+
|| envelope.RunScope !== undefined
|
|
162
|
+
|| envelope.CallerTenantContext !== undefined
|
|
163
|
+
|| (envelope.BoundActionParams !== undefined && Object.keys(envelope.BoundActionParams).length > 0);
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* A per-task copy of `user` carrying the caller's tenant context. The user a node runs as is the
|
|
167
|
+
* process-wide `UserCache` instance or the dispatcher's own user, and every other task — and every
|
|
168
|
+
* request — shares it; stamping the context onto it would pin it to this tenant for the life of the
|
|
169
|
+
* process. So the input is never stamped: this follows MJServer's `CloneUserForSessionContext`
|
|
170
|
+
* (spread the backing fields, hand the roles over explicitly, then stamp the clone).
|
|
171
|
+
*/
|
|
172
|
+
export function CloneUserWithTenantContext(user, tenant, provider) {
|
|
173
|
+
const clone = new UserInfo(provider, { ...user, _UserRoles: undefined, UserRoles: user.UserRoles });
|
|
174
|
+
clone.MagicLinkScope = user.MagicLinkScope;
|
|
175
|
+
clone.ReturningVisitorContext = user.ReturningVisitorContext;
|
|
176
|
+
clone.WidgetGuestContext = user.WidgetGuestContext;
|
|
177
|
+
clone.IsMagicLinkAnonymous = user.IsMagicLinkAnonymous;
|
|
178
|
+
clone.AnonymousVisitorID = user.AnonymousVisitorID;
|
|
179
|
+
clone.APIKeyActingContext = user.APIKeyActingContext;
|
|
180
|
+
clone.APIKeyRowFilters = user.APIKeyRowFilters;
|
|
181
|
+
clone.TenantContext = { ...tenant };
|
|
182
|
+
return clone;
|
|
183
|
+
}
|
|
184
|
+
function isRecord(value) {
|
|
185
|
+
return !!value && typeof value === 'object' && !Array.isArray(value);
|
|
186
|
+
}
|
|
187
|
+
//# sourceMappingURL=task-security.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task-security.js","sourceRoot":"","sources":["../src/task-security.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EACH,0BAA0B,EAC1B,yBAAyB,EACzB,8BAA8B,GAEjC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAA8C,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAE5F,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAgBtE;;;;GAIG;AACH,MAAM,UAAU,yBAAyB,CACrC,YAAuC,EACvC,UAAqC;IAErC,MAAM,MAAM,GAAG,yBAAyB,CAAC,YAAY,CAAC,CAAC;IACvD,IAAI,MAAM,CAAC,MAAM,KAAK,SAAS;QAAE,OAAO,EAAE,OAAO,EAAE,oBAAoB,MAAM,CAAC,MAAM,EAAE,EAAE,CAAC;IACzF,MAAM,IAAI,GAAG,yBAAyB,CAAC,UAAU,CAAC,CAAC;IACnD,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS;QAAE,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC;IAC/D,MAAM,MAAM,GAAG,0BAA0B,CACrC,MAAM,CAAC,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,cAAc,CAAC;IAC3C,KAAK,CAAC,uBAAuB,GAAG,IAAI,CAAC,uBAAuB,CAAC;IAC7D,KAAK,CAAC,kBAAkB,GAAG,IAAI,CAAC,kBAAkB,CAAC;IACnD,KAAK,CAAC,oBAAoB,GAAG,IAAI,CAAC,oBAAoB,CAAC;IACvD,KAAK,CAAC,kBAAkB,GAAG,IAAI,CAAC,kBAAkB,CAAC;IACnD,KAAK,CAAC,mBAAmB,GAAG,IAAI,CAAC,mBAAmB,CAAC;IACrD,KAAK,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC;IAC/C,KAAK,CAAC,aAAa,GAAG,EAAE,GAAG,MAAM,EAAE,CAAC;IACpC,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,SAAS,QAAQ,CAAC,KAAc;IAC5B,OAAO,CAAC,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AACzE,CAAC"}
|
package/dist/types.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @module @memberjunction/task-graph
|
|
4
4
|
*/
|
|
5
5
|
import { IMetadataProvider, UserInfo } from '@memberjunction/core';
|
|
6
|
-
import type { AgentDecisionQuestion, TaskGraphDecisionAnswer } from '@memberjunction/ai-core-plus';
|
|
6
|
+
import type { AgentDecisionQuestion, TaskGraphDecisionAnswer, TaskSecurityEnvelope } from '@memberjunction/ai-core-plus';
|
|
7
7
|
/**
|
|
8
8
|
* Mints a fresh metadata/data provider.
|
|
9
9
|
*
|
|
@@ -38,6 +38,12 @@ export type TaskRunProgressCallback = (message: string, percent?: number) => voi
|
|
|
38
38
|
*/
|
|
39
39
|
export type TaskAgentRunner = {
|
|
40
40
|
RunAgentForTask(params: TaskAgentRunParams): Promise<TaskAgentRunResult>;
|
|
41
|
+
/**
|
|
42
|
+
* True when the runner starts the node's run under its `SecurityEnvelope`: the same run scope,
|
|
43
|
+
* audience, bound parameters and taint, with the actions a tainted run may not call taken away.
|
|
44
|
+
* The dispatcher refuses a node whose envelope constrains anything when this is not true.
|
|
45
|
+
*/
|
|
46
|
+
EnforcesSecurityEnvelope?: boolean;
|
|
41
47
|
};
|
|
42
48
|
/** Everything running one action for one task node needs. */
|
|
43
49
|
export type TaskActionRunParams = {
|
|
@@ -49,6 +55,11 @@ export type TaskActionRunParams = {
|
|
|
49
55
|
DependencyOutputs: Map<string, unknown>;
|
|
50
56
|
Provider: IMetadataProvider;
|
|
51
57
|
ContextUser: UserInfo;
|
|
58
|
+
/**
|
|
59
|
+
* The node's security envelope: the submitting run's constraints, with `IsRunTainted` set to whether
|
|
60
|
+
* this node's input is tainted. `ContextUser` already carries the caller's tenant context.
|
|
61
|
+
*/
|
|
62
|
+
SecurityEnvelope?: TaskSecurityEnvelope;
|
|
52
63
|
/** Optional progress sink; the dispatcher turns calls into rate-limited `NodeProgress` frames. */
|
|
53
64
|
OnProgress?: TaskRunProgressCallback;
|
|
54
65
|
};
|
|
@@ -57,6 +68,8 @@ export type TaskActionRunResult = {
|
|
|
57
68
|
Success: boolean;
|
|
58
69
|
Output?: unknown;
|
|
59
70
|
ErrorMessage?: string;
|
|
71
|
+
/** The action engine's result code (e.g. `AUDIENCE_UNSUPPORTED`, or `TAINTED_EGRESS_BLOCKED` from the runner's taint gate). */
|
|
72
|
+
ResultCode?: string;
|
|
60
73
|
/**
|
|
61
74
|
* The `MJ: Action Execution Logs` row this run produced.
|
|
62
75
|
*
|
|
@@ -65,6 +78,12 @@ export type TaskActionRunResult = {
|
|
|
65
78
|
* cannot produce one is limited, not broken.
|
|
66
79
|
*/
|
|
67
80
|
ActionLogID?: string;
|
|
81
|
+
/**
|
|
82
|
+
* True when the action's own output is untrusted (its `outputTrustLevel` is `SemiTrusted` or
|
|
83
|
+
* `Untrusted`). The dispatcher ORs it with the node's input taint and records the result, so the
|
|
84
|
+
* nodes downstream inherit it until a completed Human step reviews it.
|
|
85
|
+
*/
|
|
86
|
+
IsOutputTainted?: boolean;
|
|
68
87
|
};
|
|
69
88
|
/**
|
|
70
89
|
* Runs one action for one task node.
|
|
@@ -81,6 +100,13 @@ export type TaskActionRunResult = {
|
|
|
81
100
|
*/
|
|
82
101
|
export type TaskActionRunner = {
|
|
83
102
|
RunActionForTask(params: TaskActionRunParams): Promise<TaskActionRunResult>;
|
|
103
|
+
/**
|
|
104
|
+
* True when the runner enforces the node's `SecurityEnvelope` on the action: the run scope passed
|
|
105
|
+
* as `RunScope`, the audience, the bound parameters, and the taint gate (a tainted node may not run
|
|
106
|
+
* an action whose configuration says `disallowWhenTainted`). The dispatcher refuses a node whose
|
|
107
|
+
* envelope constrains anything when this is not true.
|
|
108
|
+
*/
|
|
109
|
+
EnforcesSecurityEnvelope?: boolean;
|
|
84
110
|
};
|
|
85
111
|
/** Everything running one prompt for one task node needs. */
|
|
86
112
|
export type TaskPromptRunParams = {
|
|
@@ -94,6 +120,8 @@ export type TaskPromptRunParams = {
|
|
|
94
120
|
TemplateParameters?: Record<string, string>;
|
|
95
121
|
Provider: IMetadataProvider;
|
|
96
122
|
ContextUser: UserInfo;
|
|
123
|
+
/** The node's security envelope; `IsRunTainted` is the node's input taint. */
|
|
124
|
+
SecurityEnvelope?: TaskSecurityEnvelope;
|
|
97
125
|
/** Optional progress sink; the dispatcher turns calls into rate-limited `NodeProgress` frames. */
|
|
98
126
|
OnProgress?: TaskRunProgressCallback;
|
|
99
127
|
};
|
|
@@ -114,6 +142,8 @@ export type TaskPromptRunResult = {
|
|
|
114
142
|
* abandoned graph.
|
|
115
143
|
*/
|
|
116
144
|
ChatMessage?: string;
|
|
145
|
+
/** True when the prompt's own output is untrusted. The dispatcher always adds the node's input taint. */
|
|
146
|
+
IsOutputTainted?: boolean;
|
|
117
147
|
};
|
|
118
148
|
/**
|
|
119
149
|
* Runs one prompt for one task node.
|
|
@@ -375,6 +405,11 @@ export type TaskAgentRunParams = {
|
|
|
375
405
|
ContextUser: UserInfo;
|
|
376
406
|
/** Optional configuration preset name for the target agent, configured on the Agent step. */
|
|
377
407
|
ConfigurationPresetName?: string;
|
|
408
|
+
/**
|
|
409
|
+
* The node's security envelope (the submitting run's constraints, `IsRunTainted` set to the node's
|
|
410
|
+
* input taint). The runner starts the agent run under it; see `TaskAgentRunner.EnforcesSecurityEnvelope`.
|
|
411
|
+
*/
|
|
412
|
+
SecurityEnvelope?: TaskSecurityEnvelope;
|
|
378
413
|
/** Optional progress sink; the dispatcher turns calls into rate-limited `NodeProgress` frames. */
|
|
379
414
|
OnProgress?: TaskRunProgressCallback;
|
|
380
415
|
};
|
|
@@ -387,6 +422,8 @@ export type TaskAgentRunResult = {
|
|
|
387
422
|
ErrorMessage?: string;
|
|
388
423
|
/** The `MJ: AI Agent Runs` row that executed this task, for `Task.AgentRunID`. */
|
|
389
424
|
AgentRunID?: string;
|
|
425
|
+
/** True when the run ingested untrusted content (`taintedSources`), including any it started with. */
|
|
426
|
+
IsOutputTainted?: boolean;
|
|
390
427
|
};
|
|
391
428
|
/**
|
|
392
429
|
* Delivers a finished graph's outcome, per its `continuation` mode.
|
|
@@ -409,6 +446,13 @@ export type TaskContinuationDeliverer = {
|
|
|
409
446
|
* this, and the dispatcher degrades to `PostMessage` rather than dropping the completion.
|
|
410
447
|
*/
|
|
411
448
|
Reinvoke?(params: TaskContinuationParams): Promise<void>;
|
|
449
|
+
/**
|
|
450
|
+
* True when `Reinvoke` starts the turn under `TaskContinuationParams.SecurityEnvelope` exactly as an
|
|
451
|
+
* agent node runs under its envelope: the same run scope, audience, bound parameters and tenant (on a
|
|
452
|
+
* per-run user clone), starting tainted when the outcome is. The dispatcher posts a message instead of
|
|
453
|
+
* reinvoking a graph whose envelope constrains anything when this is not true.
|
|
454
|
+
*/
|
|
455
|
+
EnforcesSecurityEnvelope?: boolean;
|
|
412
456
|
};
|
|
413
457
|
/** Everything a continuation needs to say what happened. */
|
|
414
458
|
export type TaskContinuationParams = {
|
|
@@ -422,6 +466,12 @@ export type TaskContinuationParams = {
|
|
|
422
466
|
SubmittedByUserID: string | null;
|
|
423
467
|
/** How many continuation hops preceded this one, so a re-submitted graph can carry depth + 1. */
|
|
424
468
|
ReinvokeDepth: number;
|
|
469
|
+
/**
|
|
470
|
+
* What a `reinvoke` turn runs under: the graph's stored security envelope (the submitting run's
|
|
471
|
+
* scope, audience, bound parameters and tenant), with `IsRunTainted` set when the submitting run was
|
|
472
|
+
* tainted or any step's output the outcome carries is. Absent when the graph carries neither.
|
|
473
|
+
*/
|
|
474
|
+
SecurityEnvelope?: TaskSecurityEnvelope;
|
|
425
475
|
/**
|
|
426
476
|
* Per-task outcome. Deliberately carries a `summary` and an `outputRef`, not inline payloads —
|
|
427
477
|
* a ten-task graph's full outputs would swamp the continuation turn's context window, and the
|
|
@@ -439,6 +489,12 @@ export type TaskContinuationParams = {
|
|
|
439
489
|
};
|
|
440
490
|
/** Tuning knobs for the durable dispatcher. */
|
|
441
491
|
export type TaskGraphDispatcherConfig = {
|
|
492
|
+
/**
|
|
493
|
+
* The first delay before retrying a failed idempotent action step; each later retry doubles it, up to
|
|
494
|
+
* 30× this. Only idempotent actions are retried at all (see `TaskCompensationStepMetadata.isIdempotent`
|
|
495
|
+
* and `Action.IsIdempotent`).
|
|
496
|
+
*/
|
|
497
|
+
RetryBackoffBaseMs: number;
|
|
442
498
|
/**
|
|
443
499
|
* Identifies this dispatcher instance in `Task.ClaimedBy`. Must be stable for the process
|
|
444
500
|
* lifetime and distinct per instance — it is what lets reconciliation tell "my orphaned work"
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;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;;OAWG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;;;OAOG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB,+FAA+F;IAC/F,wBAAwB,EAAE,MAAM,CAAC;IAEjC,4DAA4D;IAC5D,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;;;;;;;OAQG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAE5B,+CAA+C;IAC/C,6BAA6B,EAAE,MAAM,CAAC;CACzC,CAAC;AAEF,wFAAwF;AACxF,eAAO,MAAM,yBAAyB,EAAE,IAAI,CAAC,yBAAyB,EAAE,YAAY,CAOnF,CAAC;AAEF,2FAA2F;AAC3F,MAAM,MAAM,oBAAoB,GAC1B,sBAAsB,GACtB,4BAA4B,GAC5B,mBAAmB,CAAC;AAE1B,6CAA6C;AAC7C,MAAM,MAAM,mBAAmB,GAAG;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,oBAAoB,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAC;CAClB,CAAC"}
|
package/dist/types.js
CHANGED
package/dist/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AA+jBA,wFAAwF;AACxF,MAAM,CAAC,MAAM,yBAAyB,GAAkD;IACpF,kBAAkB,EAAE,IAAI;IACxB,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.
|
|
4
|
+
"version": "6.3.0-edge.0",
|
|
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,17 +11,17 @@
|
|
|
11
11
|
"author": "MemberJunction.com",
|
|
12
12
|
"license": "BUSL-1.1",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@memberjunction/actions-base": "6.
|
|
15
|
-
"@memberjunction/ai-agents": "6.
|
|
16
|
-
"@memberjunction/ai-core-plus": "6.
|
|
17
|
-
"@memberjunction/ai-engine-base": "6.
|
|
18
|
-
"@memberjunction/ai-prompts": "6.
|
|
19
|
-
"@memberjunction/aiengine": "6.
|
|
20
|
-
"@memberjunction/core": "6.
|
|
21
|
-
"@memberjunction/core-entities": "6.
|
|
22
|
-
"@memberjunction/global": "6.
|
|
23
|
-
"@memberjunction/notifications": "6.
|
|
24
|
-
"@memberjunction/sql-dialect": "6.
|
|
14
|
+
"@memberjunction/actions-base": "6.3.0-edge.0",
|
|
15
|
+
"@memberjunction/ai-agents": "6.3.0-edge.0",
|
|
16
|
+
"@memberjunction/ai-core-plus": "6.3.0-edge.0",
|
|
17
|
+
"@memberjunction/ai-engine-base": "6.3.0-edge.0",
|
|
18
|
+
"@memberjunction/ai-prompts": "6.3.0-edge.0",
|
|
19
|
+
"@memberjunction/aiengine": "6.3.0-edge.0",
|
|
20
|
+
"@memberjunction/core": "6.3.0-edge.0",
|
|
21
|
+
"@memberjunction/core-entities": "6.3.0-edge.0",
|
|
22
|
+
"@memberjunction/global": "6.3.0-edge.0",
|
|
23
|
+
"@memberjunction/notifications": "6.3.0-edge.0",
|
|
24
|
+
"@memberjunction/sql-dialect": "6.3.0-edge.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/node": "24.10.11",
|