@nodetool-ai/runtime-core 0.8.11 → 0.8.14

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/README.md CHANGED
@@ -7,3 +7,64 @@ does not load media codecs, browser automation or local inference.
7
7
  Install `@nodetool-ai/runtime-core` to use `OpenAITextProvider`,
8
8
  `createLocalWorkspace` and `RunCancellation`. Hosts supply the authenticated
9
9
  owner, secret resolver and usage accounting through `ExecutionContext`.
10
+
11
+ ## Node context contract
12
+
13
+ `NodeContext` (`src/node-context.ts`) lists the context members node code may
14
+ use, with their signatures, grouped by concern. `ProcessingContext` in
15
+ `@nodetool-ai/runtime` implements `NodeContext<RuntimeNodeContextTypes>`, so the
16
+ compiler checks the TypeScript side. Types this package cannot import, such as
17
+ `BaseProvider` and `Message`, are slots in `NodeContextTypes` that the runtime
18
+ binds. Unbound, they are `unknown`. The persistence port the context forwards
19
+ to (`ProcessingContextModelInterfaces` and its record types) lives in
20
+ `src/model-interfaces.ts`.
21
+
22
+ `node-context-members.json` is generated from the interface. The native
23
+ runner's guest context is tested against it (see
24
+ [the graph-runner README](../../native/graph-runner/README.md#node-context-contract)).
25
+
26
+ To add a member that node code needs:
27
+
28
+ 1. Add it to the matching group interface in `src/node-context.ts`, with the
29
+ signature `ProcessingContext` has.
30
+ 2. Run `node packages/runtime-core/scripts/node-context-members.mjs` from the
31
+ repository root to regenerate the JSON.
32
+ 3. Implement it in the guest context, or declare it in
33
+ `native/graph-runner/guest/context-unavailable.mjs` with a reason.
34
+
35
+ `npm run check:node-context --workspace=packages/runtime-core` fails when the
36
+ JSON is stale, or when node code uses a `ProcessingContext` member the
37
+ interface lacks. The second check reads the built declarations, so run
38
+ `npm run build:packages` first. Without `--check`,
39
+ `node packages/runtime-core/scripts/node-context-usage.mjs` prints each member
40
+ with its call sites and packages.
41
+
42
+ ### Shared context logic
43
+
44
+ Member logic that does not depend on the host lives in modules that both
45
+ `ProcessingContext` and the native runner's guest context call, so the two do
46
+ not keep separate copies:
47
+
48
+ | Module | Members |
49
+ |---|---|
50
+ | `src/cost-ledger.ts` (`@nodetool-ai/runtime-core/cost-ledger`) | `addToTotalCost`, `getTotalCost` |
51
+ | `packages/runtime/src/node-context/message-media.ts` | `resolveMessageMediaUris` |
52
+ | `packages/runtime/src/node-context/provider-dispatch.ts` | `providerSupportsStreamingTTS`, the provider call of each capability |
53
+ | `packages/runtime/src/node-context/generation.ts` | `runGeneration`, `runProviderPrediction`, `streamProviderPrediction`, `textToSpeechEncoded`, `textToMusic`, `audioToAudio` |
54
+
55
+ A module goes in this package when it needs only types from here. The
56
+ modules in `packages/runtime/src/node-context/` use runtime types such as
57
+ `BaseProvider` and `Message`. Every one of them must load in QuickJS: no Node
58
+ builtins, no file system, no `process` and no side effects at load time.
59
+
60
+ Each function takes a host as its first argument.
61
+ `packages/runtime/src/node-context/context-host.ts` defines the host
62
+ interfaces: `MediaHost` (stored bytes and entity lookups), `ProviderHost`,
63
+ `ProviderCallHost` (media, the run signal and message resolution) and
64
+ `GenerationHost` (the run, its lifecycle callbacks, the registry of live
65
+ generations and the app-run flag). `ProcessingContext` passes itself, or for
66
+ the generation envelope an adapter over its private lifecycle state, and its
67
+ methods delegate. The guest context passes its own context, whose primitives
68
+ reach the C++ host. To move another member's logic into a shared module, add
69
+ the primitives it needs to the matching host interface and implement them on
70
+ both sides.
@@ -1 +1 @@
1
- 2026-11-04T09:35:57.936Z
1
+ 2026-11-19T19:42:35.913Z
@@ -0,0 +1,21 @@
1
+ /**
2
+ * The cost totals of one run context: the running total that
3
+ * `addToTotalCost` and `getTotalCost` read and write, and the per-operation
4
+ * entries behind `trackOperationCost`. `ProcessingContext` in
5
+ * `@nodetool-ai/runtime` and the native runner's guest context both keep
6
+ * their totals in one. It has no host dependencies.
7
+ */
8
+ export declare class CostLedger {
9
+ private totalCost;
10
+ private entries;
11
+ /** Adds a cost to the total. A cost that is not a finite number counts as 0. */
12
+ add(cost: number): void;
13
+ /** Adds a cost to the total and records it as an operation entry. */
14
+ track(operation: string, cost: number, metadata?: Record<string, unknown>): void;
15
+ reset(): void;
16
+ get total(): number;
17
+ get operations(): ReadonlyArray<Record<string, unknown>>;
18
+ /** An independent ledger with the same total and copies of the entries. */
19
+ clone(): CostLedger;
20
+ }
21
+ //# sourceMappingURL=cost-ledger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cost-ledger.d.ts","sourceRoot":"","sources":["../src/cost-ledger.ts"],"names":[],"mappings":"AACA;;;;;;GAMG;AACH,qBAAa,UAAU;IACrB,OAAO,CAAC,SAAS,CAAK;IACtB,OAAO,CAAC,OAAO,CAAsC;IAErD,gFAAgF;IAChF,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAEtB;IAED,qEAAqE;IACrE,KAAK,CACH,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,MAAM,EACZ,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACjC,IAAI,CASN;IAED,KAAK,IAAI,IAAI,CAGZ;IAED,IAAI,KAAK,IAAI,MAAM,CAElB;IAED,IAAI,UAAU,IAAI,aAAa,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAEvD;IAED,2EAA2E;IAC3E,KAAK,IAAI,UAAU,CAKlB;CACF"}
@@ -0,0 +1,48 @@
1
+ /* oxlint-disable anti-slop/no-unsafe-dictionary-type -- the entries keep the shape ProcessingContext.trackOperationCost and getOperationCosts expose: caller metadata spread into an open record. Narrowing it changes that public contract. */
2
+ /**
3
+ * The cost totals of one run context: the running total that
4
+ * `addToTotalCost` and `getTotalCost` read and write, and the per-operation
5
+ * entries behind `trackOperationCost`. `ProcessingContext` in
6
+ * `@nodetool-ai/runtime` and the native runner's guest context both keep
7
+ * their totals in one. It has no host dependencies.
8
+ */
9
+ export class CostLedger {
10
+ totalCost = 0;
11
+ entries = [];
12
+ /** Adds a cost to the total. A cost that is not a finite number counts as 0. */
13
+ add(cost) {
14
+ this.totalCost += finiteCost(cost);
15
+ }
16
+ /** Adds a cost to the total and records it as an operation entry. */
17
+ track(operation, cost, metadata) {
18
+ const safeCost = finiteCost(cost);
19
+ this.totalCost += safeCost;
20
+ this.entries.push({
21
+ operation,
22
+ cost: safeCost,
23
+ timestamp: new Date().toISOString(),
24
+ ...(metadata ?? {})
25
+ });
26
+ }
27
+ reset() {
28
+ this.totalCost = 0;
29
+ this.entries = [];
30
+ }
31
+ get total() {
32
+ return this.totalCost;
33
+ }
34
+ get operations() {
35
+ return this.entries;
36
+ }
37
+ /** An independent ledger with the same total and copies of the entries. */
38
+ clone() {
39
+ const next = new CostLedger();
40
+ next.totalCost = this.totalCost;
41
+ next.entries = this.entries.map((entry) => ({ ...entry }));
42
+ return next;
43
+ }
44
+ }
45
+ function finiteCost(cost) {
46
+ return Number.isFinite(cost) ? cost : 0;
47
+ }
48
+ //# sourceMappingURL=cost-ledger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cost-ledger.js","sourceRoot":"","sources":["../src/cost-ledger.ts"],"names":[],"mappings":"AAAA,gPAAgP;AAChP;;;;;;GAMG;AACH,MAAM,OAAO,UAAU;IACb,SAAS,GAAG,CAAC,CAAC;IACd,OAAO,GAAmC,EAAE,CAAC;IAErD,gFAAgF;IAChF,GAAG,CAAC,IAAY;QACd,IAAI,CAAC,SAAS,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC;IACrC,CAAC;IAED,qEAAqE;IACrE,KAAK,CACH,SAAiB,EACjB,IAAY,EACZ,QAAkC;QAElC,MAAM,QAAQ,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC;QAClC,IAAI,CAAC,SAAS,IAAI,QAAQ,CAAC;QAC3B,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;YAChB,SAAS;YACT,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACnC,GAAG,CAAC,QAAQ,IAAI,EAAE,CAAC;SACpB,CAAC,CAAC;IACL,CAAC;IAED,KAAK;QACH,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC;QACnB,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;IACpB,CAAC;IAED,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAED,IAAI,UAAU;QACZ,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IAED,2EAA2E;IAC3E,KAAK;QACH,MAAM,IAAI,GAAG,IAAI,UAAU,EAAE,CAAC;QAC9B,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;QAChC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC,CAAC;QAC3D,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAED,SAAS,UAAU,CAAC,IAAY;IAC9B,OAAO,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;AAC1C,CAAC"}
package/dist/index.d.ts CHANGED
@@ -3,4 +3,7 @@ export * from "./workspace.js";
3
3
  export * from "./text-provider.js";
4
4
  export * from "./context.js";
5
5
  export * from "./storage-workspace.js";
6
+ export * from "./model-interfaces.js";
7
+ export * from "./node-context.js";
8
+ export * from "./cost-ledger.js";
6
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC"}
package/dist/index.js CHANGED
@@ -3,4 +3,7 @@ export * from "./workspace.js";
3
3
  export * from "./text-provider.js";
4
4
  export * from "./context.js";
5
5
  export * from "./storage-workspace.js";
6
+ export * from "./model-interfaces.js";
7
+ export * from "./node-context.js";
8
+ export * from "./cost-ledger.js";
6
9
  //# 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,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,264 @@
1
+ /**
2
+ * The persistence port a node context forwards to. The host installs these
3
+ * functions, and the context binds `userId` from the run.
4
+ */
5
+ import type { Entity, EntityKind, EntitySource } from "@nodetool-ai/protocol";
6
+ export interface MessageCreateRequestLike {
7
+ thread_id: string;
8
+ role: string;
9
+ content?: unknown;
10
+ tool_calls?: unknown;
11
+ workflow_id?: string | null;
12
+ name?: string | null;
13
+ tool_call_id?: string | null;
14
+ }
15
+ export interface ThreadMessagesResultLike {
16
+ messages: Array<Record<string, unknown>>;
17
+ next: string | null;
18
+ }
19
+ export interface AssetCreateParamsLike {
20
+ userId: string;
21
+ workflowId: string | null;
22
+ jobId: string;
23
+ projectId?: string | null;
24
+ name: string;
25
+ contentType: string;
26
+ content: Uint8Array;
27
+ parentId?: string | null;
28
+ nodeId?: string | null;
29
+ /** Stored on the asset row; the generation seam stamps `generation_id`. */
30
+ metadata?: Record<string, unknown> | null;
31
+ /**
32
+ * Exact path in the run's project folder, when the caller named the file
33
+ * (an agent's `output_file`, a Save-file node's name). The file is written
34
+ * there and the row points at it. Unset, the host picks a free name in
35
+ * `Generated/`.
36
+ */
37
+ path?: string | null;
38
+ }
39
+ /** A non-folder asset surfaced when listing a folder's contents. */
40
+ export interface FolderAssetEntry {
41
+ id: string;
42
+ content_type: string;
43
+ name: string;
44
+ }
45
+ /** An asset's identity + metadata, as surfaced by `getAssetInfo`. */
46
+ export interface AssetInfoEntry {
47
+ id: string;
48
+ content_type: string;
49
+ name: string;
50
+ metadata: Record<string, unknown> | null;
51
+ }
52
+ /**
53
+ * A record the host's persistence layer answers with.
54
+ *
55
+ * The row and response types live in `@nodetool-ai/models`, which sits above
56
+ * `runtime`, so the port names the field every caller reads — the record's
57
+ * identity — and each caller re-reads the document fields it knows how to
58
+ * interpret.
59
+ */
60
+ export interface PersistedRecordLike {
61
+ id: string;
62
+ }
63
+ export interface ProcessingContextModelInterfaces {
64
+ /** Read a non-secret setting owned by the current user. */
65
+ getSetting?: (args: {
66
+ userId: string;
67
+ key: string;
68
+ }) => Promise<string | null>;
69
+ getJob?: (args: {
70
+ userId: string;
71
+ jobId: string;
72
+ }) => Promise<PersistedRecordLike | null>;
73
+ /**
74
+ * HOLDOUT (anti-slop/no-unknown-returns): narrowing this to the created
75
+ * record's shape breaks the `as Record<string, unknown>` assertions on the
76
+ * result in `image-nodes` and `audio-nodes` — an interface without an index
77
+ * signature is not comparable to that type. Typing it honestly means editing
78
+ * those call sites too.
79
+ */
80
+ createAsset?: (args: AssetCreateParamsLike) => Promise<unknown>;
81
+ /**
82
+ * Replace an existing asset's bytes in place, keeping its id. Returns `null`
83
+ * when the asset does not exist or is not owned by the user.
84
+ *
85
+ * An editing loop needs this: creating a new asset per save would give the
86
+ * caller a different id after every edit, and the handles it already handed
87
+ * out would point at a stale version.
88
+ */
89
+ updateAssetBytes?: (args: {
90
+ userId: string;
91
+ assetId: string;
92
+ content: Uint8Array;
93
+ contentType?: string;
94
+ name?: string;
95
+ }) => Promise<AssetInfoEntry | null>;
96
+ /**
97
+ * Recursively list the non-folder assets contained in `folderId`. Returns
98
+ * `null` when the id is not a folder (or does not exist) so callers can tell
99
+ * "not a folder" apart from "empty folder" (`[]`).
100
+ */
101
+ listFolderAssets?: (args: {
102
+ userId: string;
103
+ folderId: string;
104
+ }) => Promise<FolderAssetEntry[] | null>;
105
+ /**
106
+ * Look up one owned asset's identity + metadata (no bytes). Returns `null`
107
+ * when the asset does not exist or is not owned by the user.
108
+ */
109
+ getAssetInfo?: (args: {
110
+ userId: string;
111
+ assetId: string;
112
+ }) => Promise<AssetInfoEntry | null>;
113
+ createMessage?: (args: {
114
+ userId: string;
115
+ req: MessageCreateRequestLike;
116
+ }) => Promise<PersistedRecordLike>;
117
+ getMessages?: (args: {
118
+ userId: string;
119
+ threadId: string;
120
+ limit?: number;
121
+ startKey?: string | null;
122
+ reverse?: boolean;
123
+ }) => Promise<ThreadMessagesResultLike>;
124
+ /** Load a persisted sketch (image document) by id; null when missing or not owned. */
125
+ getImageDocument?: (args: {
126
+ userId: string;
127
+ id: string;
128
+ }) => Promise<PersistedRecordLike | null>;
129
+ /** Create a persisted sketch (image document); returns the created document response. */
130
+ createImageDocument?: (args: {
131
+ userId: string;
132
+ name: string;
133
+ projectId?: string;
134
+ width: number;
135
+ height: number;
136
+ document: unknown;
137
+ }) => Promise<PersistedRecordLike>;
138
+ /** Load a persisted timeline sequence by id; null when missing or not owned. */
139
+ getTimelineSequence?: (args: {
140
+ userId: string;
141
+ id: string;
142
+ }) => Promise<PersistedRecordLike | null>;
143
+ /** Create a persisted timeline sequence from a full sequence document. */
144
+ createTimelineSequence?: (args: {
145
+ userId: string;
146
+ sequence: unknown;
147
+ }) => Promise<PersistedRecordLike>;
148
+ /** Replace a persisted timeline sequence's document; null when missing or not owned. */
149
+ updateTimelineSequence?: (args: {
150
+ userId: string;
151
+ id: string;
152
+ sequence: unknown;
153
+ }) => Promise<PersistedRecordLike | null>;
154
+ /** Load a persisted script by id; null when missing or not owned. */
155
+ getScript?: (args: {
156
+ userId: string;
157
+ id: string;
158
+ }) => Promise<PersistedRecordLike | null>;
159
+ /** Create a persisted script from a name + document. */
160
+ createScript?: (args: {
161
+ userId: string;
162
+ name?: string;
163
+ projectId?: string;
164
+ document: unknown;
165
+ }) => Promise<PersistedRecordLike>;
166
+ /** Replace a persisted script's document (and optional timeline link); null when missing or not owned. */
167
+ updateScript?: (args: {
168
+ userId: string;
169
+ id: string;
170
+ document?: unknown;
171
+ timelineId?: string | null;
172
+ baseUpdatedAt?: string;
173
+ }) => Promise<PersistedRecordLike | null>;
174
+ /** Load a persisted storyboard by id; null when missing or not owned. */
175
+ getStoryboard?: (args: {
176
+ userId: string;
177
+ id: string;
178
+ }) => Promise<PersistedRecordLike | null>;
179
+ /** The caller's storyboards, optionally narrowed by project. */
180
+ listStoryboards?: (args: {
181
+ userId: string;
182
+ projectId?: string;
183
+ limit?: number;
184
+ }) => Promise<PersistedRecordLike[]>;
185
+ /**
186
+ * The copy a previous run derived from `templateId` for that `recastKey`;
187
+ * null when there is none. Scoped rather than listed, because a listing is
188
+ * windowed and a batch bigger than the window would keep re-deriving — and
189
+ * re-rendering — copies it already has.
190
+ */
191
+ findRecastStoryboard?: (args: {
192
+ userId: string;
193
+ projectId?: string;
194
+ templateId: string;
195
+ recastKey: string;
196
+ }) => Promise<PersistedRecordLike | null>;
197
+ /** Create a persisted storyboard from a name + document. */
198
+ createStoryboard?: (args: {
199
+ userId: string;
200
+ name?: string;
201
+ projectId?: string;
202
+ document: unknown;
203
+ }) => Promise<PersistedRecordLike>;
204
+ /** Replace a persisted storyboard's document (and optional timeline link); null when missing or not owned. */
205
+ updateStoryboard?: (args: {
206
+ userId: string;
207
+ id: string;
208
+ document?: unknown;
209
+ timelineId?: string | null;
210
+ baseUpdatedAt?: string;
211
+ }) => Promise<PersistedRecordLike | null>;
212
+ /** The caller's entity library, optionally narrowed by project, kind, tags or name. */
213
+ listEntities?: (args: {
214
+ userId: string;
215
+ projectId?: string;
216
+ kind?: EntityKind;
217
+ tags?: string[];
218
+ nameContains?: string;
219
+ limit?: number;
220
+ }) => Promise<Entity[]>;
221
+ /** Read one owned entity by id; null when missing, not owned, or not tagged. */
222
+ getEntity?: (args: {
223
+ userId: string;
224
+ id: string;
225
+ }) => Promise<Entity | null>;
226
+ /**
227
+ * Create or update one entity, identified by `source.key` when given and by
228
+ * (project, kind, name) otherwise. A re-run of the same graph therefore
229
+ * updates the entity it made last time instead of growing the library.
230
+ */
231
+ upsertEntity?: (args: EntityUpsertArgs) => Promise<EntityUpsertResult>;
232
+ }
233
+ /** The arguments {@link ProcessingContextModelInterfaces.upsertEntity} takes. */
234
+ export interface EntityUpsertArgs {
235
+ userId: string;
236
+ projectId?: string;
237
+ kind: EntityKind;
238
+ name: string;
239
+ descriptor: string;
240
+ /** The image asset the entity shows; also the row a new entity is tagged on. */
241
+ imageAssetId: string;
242
+ description?: string;
243
+ tags?: string[];
244
+ voiceId?: string | null;
245
+ /** Stored verbatim on the marker, so a re-run finds its own row. */
246
+ source?: EntitySource;
247
+ }
248
+ /**
249
+ * What an upsert did. The host owns the match rule (`source.key`, then
250
+ * project/kind/name), so it is the only place that can say whether the row is
251
+ * new — a caller re-deriving that from a probe duplicates the rule and drifts
252
+ * from it the moment the host's changes.
253
+ */
254
+ export interface EntityUpsertResult {
255
+ entity: Entity;
256
+ created: boolean;
257
+ }
258
+ /**
259
+ * The arguments one model interface takes, minus the `userId` every context
260
+ * forwarder binds from the run. Derived so the shape is declared once, on the
261
+ * interface.
262
+ */
263
+ export type ModelInterfaceArgs<K extends keyof ProcessingContextModelInterfaces> = Omit<Parameters<NonNullable<ProcessingContextModelInterfaces[K]>>[0], "userId">;
264
+ //# sourceMappingURL=model-interfaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model-interfaces.d.ts","sourceRoot":"","sources":["../src/model-interfaces.ts"],"names":[],"mappings":"AACA;;;GAGG;AACH,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE9E,MAAM,WAAW,wBAAwB;IACvC,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B;AAED,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IACzC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACrB;AAED,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,UAAU,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC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C,CAAC,CAAC,CAAC,CAAC,EAC/D,QAAQ,CACT,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=model-interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model-interfaces.js","sourceRoot":"","sources":["../src/model-interfaces.ts"],"names":[],"mappings":""}