nvent 1.0.0-alpha.11 → 1.0.0-alpha.12

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/module.d.mts CHANGED
@@ -40,345 +40,300 @@ type NventQueueConfig = {
40
40
  * `iii/config.ts` can import them without creating a circular dependency with
41
41
  * `module.ts`.
42
42
  */
43
+
43
44
  interface NventIiiOptions {
44
- iii?: {
45
- /** Version of the iii engine to install. Default: 'latest' */
46
- version?: string;
47
- /** 'local' uses a local binary, 'docker' uses Docker, 'remote' skips lifecycle management */
48
- mode?: 'local' | 'docker' | 'remote';
49
- /** WebSocket URL for workers to connect to (default: ws://localhost:49134) */
50
- wsUrl?: string;
51
- /** HTTP port for iii REST API (default: 3111) */
52
- httpPort?: number;
53
- /** HTTP host for iii REST API (default: 'localhost') */
54
- httpHost?: string;
55
- /** WebSocket port for workers (default: 49134) */
56
- wsPort?: number;
57
- /** WebSocket port for the Stream module (default: 3112) */
58
- streamPort?: number;
59
- /** Whether nvent manages engine lifecycle. Default: true in dev, false in prod */
60
- managed?: boolean;
61
- modules?: {
62
- state?: boolean;
63
- queue?: boolean;
64
- cron?: boolean;
65
- observability?: boolean;
66
- stream?: boolean;
67
- };
68
- /** State module adapter configuration */
69
- state?: {
70
- adapter?: {
71
- type: 'kv';
72
- storeMethod?: 'file_based' | 'in_memory';
73
- filePath?: string;
74
- saveIntervalMs?: number;
75
- } | {
76
- type: 'redis';
77
- redisUrl?: string;
78
- } | {
79
- type: 'bridge';
80
- bridgeUrl: string;
81
- };
82
- };
83
- /**
84
- * Queue module configuration.
85
- * Named queues must be declared here for the iii engine to route messages through them.
86
- */
87
- queue?: {
88
- adapter?: {
89
- type: 'builtin';
90
- storeMethod?: 'file_based' | 'in_memory';
91
- filePath?: string;
92
- saveIntervalMs?: number;
93
- maxAttempts?: number;
94
- backoffMs?: number;
95
- concurrency?: number;
96
- pollIntervalMs?: number;
97
- /** Processing order. 'concurrent' (parallel) or 'fifo' (sequential). Default: 'concurrent' */
98
- mode?: 'concurrent' | 'fifo';
99
- } | {
100
- type: 'redis';
101
- redisUrl?: string;
102
- } | {
103
- type: 'rabbitmq';
104
- amqpUrl?: string;
105
- maxAttempts?: number;
106
- prefetchCount?: number;
107
- /** 'standard' or 'quorum' (HA replicated). Default: 'standard' */
108
- queueMode?: 'standard' | 'quorum';
109
- } | {
110
- type: 'bridge';
111
- bridgeUrl: string;
112
- };
113
- queueConfigs?: Record<string, {
114
- type?: 'standard' | 'fifo';
115
- concurrency?: number;
116
- /** Alias of maxRetries */
117
- retries?: number;
118
- maxRetries?: number;
119
- /** Alias of backoffMs */
120
- backoff?: number;
121
- backoffMs?: number;
122
- /** Optional visibility timeout / lease timeout if supported by the engine */
123
- visibilityTimeoutMs?: number;
124
- leaseTimeoutMs?: number;
125
- /** Optional dead-letter / fallback queue names if supported by the engine */
126
- deadLetterQueue?: string;
127
- fallbackQueue?: string;
128
- /** FIFO only: field in the payload used to group messages */
129
- messageGroupField?: string;
130
- }>;
131
- };
132
- /** Cron module adapter configuration */
133
- cron?: {
134
- adapter?: {
135
- type: 'kv';
136
- lockTtlMs?: number;
137
- lockIndex?: string;
138
- storeMethod?: 'file_based' | 'in_memory';
139
- filePath?: string;
140
- saveIntervalMs?: number;
141
- } | {
142
- type: 'redis';
143
- redisUrl?: string;
144
- };
145
- };
146
- /** WebSocket Stream module configuration */
147
- stream?: {
148
- host?: string;
149
- authFunction?: string | null;
150
- adapter?: {
151
- type: 'kv';
152
- storeMethod?: 'file_based' | 'in_memory';
153
- filePath?: string;
154
- saveIntervalMs?: number;
155
- } | {
156
- type: 'redis';
157
- redisUrl?: string;
158
- } | {
159
- type: 'bridge';
160
- bridgeUrl: string;
161
- };
162
- };
163
- /** REST API module extra settings */
164
- restApi?: {
165
- host?: string;
166
- defaultTimeout?: number;
167
- concurrencyRequestLimit?: number;
168
- /** CORS configuration for browser clients */
169
- cors?: {
170
- /** Origins allowed to make requests. Use '*' for any, or list specific domains. */
171
- allowedOrigins?: string[];
172
- /** HTTP methods permitted for cross-origin requests. */
173
- allowedMethods?: string[];
174
- };
175
- };
176
- /** OtelModule (observability) configuration */
177
- observability?: {
178
- enabled?: boolean;
179
- serviceName?: string;
180
- serviceVersion?: string;
181
- serviceNamespace?: string;
182
- /**
183
- * Trace export destination.
184
- * 'memory' = queryable via iii API / console (default).
185
- * 'otlp' = external collector (set endpoint too).
186
- * 'both' = memory + otlp.
187
- */
188
- exporter?: 'memory' | 'otlp' | 'both';
189
- endpoint?: string;
190
- samplingRatio?: number;
191
- memoryMaxSpans?: number;
192
- metricsEnabled?: boolean;
193
- metricsExporter?: 'memory' | 'otlp';
194
- metricsRetentionSeconds?: number;
195
- metricsMaxCount?: number;
196
- logsEnabled?: boolean;
197
- logsExporter?: 'memory' | 'otlp' | 'both';
198
- logsMaxCount?: number;
199
- logsRetentionSeconds?: number;
200
- logsBatchSize?: number;
201
- logsFlushIntervalMs?: number;
202
- logsSamplingRatio?: number;
203
- logsConsoleOutput?: boolean;
204
- /** Advanced sampling rules override samplingRatio for matched operations. */
205
- sampling?: {
206
- default?: number;
207
- parentBased?: boolean;
208
- rules?: Array<{
209
- operation?: string;
210
- service?: string;
211
- rate: number;
212
- }>;
213
- rateLimit?: {
214
- maxTracesPerSecond?: number;
215
- };
216
- };
217
- /** Alert rules — trigger a webhook or function when a metric crosses a threshold. */
218
- alerts?: Array<{
219
- name: string;
220
- metric: string;
221
- threshold: number;
222
- operator: '>' | '>=' | '<' | '<=' | '==' | '!=';
223
- windowSeconds: number;
224
- enabled?: boolean;
225
- cooldownSeconds?: number;
226
- action: {
227
- type: 'webhook';
228
- url: string;
229
- } | {
230
- type: 'function';
231
- path: string;
232
- };
233
- }>;
234
- level?: 'trace' | 'debug' | 'info' | 'warn' | 'error';
235
- format?: 'default' | 'json';
236
- };
237
- /**
238
- * Minimum log level for iii engine output.
239
- * 'none' silences all output, 'error' shows only errors, 'warn' shows warnings + errors,
240
- * 'info' shows everything. Default: 'warn'
241
- */
242
- logLevel?: 'none' | 'error' | 'warn' | 'info';
243
- /**
244
- * Enable the iii-console web UI (separate binary, http://localhost:3113).
245
- * Pass `true` for defaults or an object to customise.
246
- */
247
- console?: boolean | {
248
- /** Version to install. Default: same as iii engine version */
249
- version?: string;
250
- /** Port for the console web UI. Default: 3113 */
251
- port?: number;
252
- /** Host for the console web UI. Default: 'localhost' */
253
- host?: string;
254
- /** Enable the Flow visualization page */
255
- flow?: boolean;
256
- };
257
- /** PubSub worker — topic-based event fanout across functions. */
258
- pubsub?: {
259
- adapter?: {
260
- type: 'local';
261
- } | {
262
- type: 'redis';
263
- redisUrl?: string;
264
- };
265
- };
266
- /**
267
- * HTTP Functions worker — enables outbound HTTP calls from the engine.
268
- * Required for functions registered with HttpInvocationConfig.
269
- */
270
- httpFunctions?: {
271
- security?: {
272
- /** URL patterns allowed for outbound requests. Use '*' to allow all. */
273
- urlAllowlist?: string[];
274
- /** Block requests to private/internal IP ranges (SSRF prevention). Default: true */
275
- blockPrivateIps?: boolean;
276
- /** Require HTTPS for all outbound requests. Default: true */
277
- requireHttps?: boolean;
278
- };
279
- };
280
- /**
281
- * Additional iii-worker-manager instance with RBAC.
282
- * nvent uses this automatically when browser SDK is enabled.
283
- * Can also be configured manually for custom auth scenarios.
284
- */
285
- workerManager?: {
286
- rbac?: {
287
- /** Port for the RBAC worker manager. Default: 49135 */
288
- port?: number;
289
- /** Function ID called on every WebSocket upgrade for auth. */
290
- authFunctionId?: string;
291
- /** Functions the connecting worker is allowed to invoke (patterns supported). */
292
- exposeFunctions?: string[];
293
- /** Function invoked before each handler — enrich or audit requests. */
294
- middlewareFunctionId?: string;
295
- /** Allow workers to register their own function handlers. Default: true */
296
- allowFunctionRegistration?: boolean;
297
- /** Allow workers to register new trigger types. Default: false */
298
- allowTriggerTypeRegistration?: boolean;
299
- /** Prefix prepended to every function the worker registers. */
300
- functionRegistrationPrefix?: string;
301
- /** TTL for signed browser auth tokens generated by the Nuxt proxy. Default: 120 */
302
- tokenTtlSeconds?: number;
303
- /** Allow browser connections without a custom resolver returning user context. Default: true */
304
- allowAnonymous?: boolean;
305
- /** Optional path (relative to project root) to a custom browser auth resolver module. */
306
- authResolverPath?: string;
307
- };
308
- };
309
- /**
310
- * Bridge client workers — connects this engine to remote iii instances.
311
- * Each entry creates an `iii-bridge` worker in the config.
312
- */
313
- bridge?: Array<{
314
- url: string;
315
- serviceId: string;
316
- serviceName?: string;
317
- expose?: Array<{
318
- localFunction: string;
319
- remoteFunction?: string;
320
- }>;
321
- forward?: Array<{
322
- localFunction: string;
323
- remoteFunction: string;
324
- timeoutMs?: number;
325
- }>;
326
- }>;
327
- /**
328
- * Exec workers — spawns external processes alongside the engine.
329
- * Each entry creates an `iii-exec` worker in the config.
330
- */
331
- exec?: Array<{
332
- watch?: string[];
333
- exec: string[];
334
- }>;
335
- /** Anonymous usage telemetry. Set enabled: false to opt out. */
336
- telemetry?: {
337
- enabled?: boolean;
338
- apiKey?: string;
339
- sdkApiKey?: string;
340
- heartbeatIntervalSecs?: number;
341
- };
342
- };
343
- functions?: {
344
- /** Directory under server/ where functions are, relative to serverDir (default: 'functions') */
345
- dir?: string;
346
- /**
347
- * Function ID prefix for this layer's functions.
348
- * Set in a layer's `nuxt.config.ts` to namespace its functions.
349
- * Priority: this value → `$meta.name` → package.json name → directory name.
350
- * Set to `''` (empty string) to explicitly opt out of any prefix.
351
- * Has no effect in the root project (always un-prefixed).
352
- * Example: 'myorg::auth'
353
- */
354
- prefix?: string;
355
- python?: {
356
- /**
357
- * Path to the Python executable used **in development only** (e.g. a virtualenv).
358
- * Has no effect in production — set `NVENT_PYTHON_BIN` env var instead.
359
- * Default: 'python3'
360
- * Example: '.venv/bin/python3'
361
- */
362
- devPath?: string;
363
- /**
364
- * Skip Python worker support entirely (no Python scanning, no workers started).
365
- * Useful when the project has no Python functions. Default: false
366
- */
367
- skip?: boolean;
368
- };
369
- };
370
- app?: {
371
- /** Enable the nvent app UI and its built-in route. Default: true */
372
- enabled?: boolean;
373
- /** Route path for the nvent app. Default: '/_nvent' */
374
- routePath?: string;
375
- /**
376
- * Layout to use for the nvent app route.
377
- * Set to false for no layout, or a string to use a named layout.
378
- * Default: false
379
- */
380
- layout?: string | false;
381
- };
45
+ iii?: {
46
+ /** Version of the iii engine to install. Default: 'latest' */
47
+ version?: string
48
+ /** 'local' uses a local binary, 'docker' uses Docker, 'remote' skips lifecycle management */
49
+ mode?: 'local' | 'docker' | 'remote'
50
+ /** WebSocket URL for workers to connect to (default: ws://localhost:49134) */
51
+ wsUrl?: string
52
+ /** HTTP port for iii REST API (default: 3111) */
53
+ httpPort?: number
54
+ /** HTTP host for iii REST API (default: 'localhost') */
55
+ httpHost?: string
56
+ /** WebSocket port for workers (default: 49134) */
57
+ wsPort?: number
58
+ /** WebSocket port for the Stream module (default: 3112) */
59
+ streamPort?: number
60
+ /** Whether nvent manages engine lifecycle. Default: true in dev, false in prod */
61
+ managed?: boolean
62
+ /** Exit with non-zero code if engine installation fails. Default: false */
63
+ failOnInstallFailure?: boolean
64
+ modules?: {
65
+ state?: boolean
66
+ queue?: boolean
67
+ cron?: boolean
68
+ observability?: boolean
69
+ stream?: boolean
70
+ }
71
+ /** State module adapter configuration */
72
+ state?: {
73
+ adapter?:
74
+ | { type: 'kv'; storeMethod?: 'file_based' | 'in_memory'; filePath?: string; saveIntervalMs?: number }
75
+ | { type: 'redis'; redisUrl?: string }
76
+ | { type: 'bridge'; bridgeUrl: string }
77
+ }
78
+ /**
79
+ * Queue module configuration.
80
+ * Named queues must be declared here for the iii engine to route messages through them.
81
+ */
82
+ queue?: {
83
+ adapter?:
84
+ | {
85
+ type: 'builtin'
86
+ storeMethod?: 'file_based' | 'in_memory'
87
+ filePath?: string
88
+ saveIntervalMs?: number
89
+ maxAttempts?: number
90
+ backoffMs?: number
91
+ concurrency?: number
92
+ pollIntervalMs?: number
93
+ /** Processing order. 'concurrent' (parallel) or 'fifo' (sequential). Default: 'concurrent' */
94
+ mode?: 'concurrent' | 'fifo'
95
+ }
96
+ | { type: 'redis'; redisUrl?: string }
97
+ | {
98
+ type: 'rabbitmq'
99
+ amqpUrl?: string
100
+ maxAttempts?: number
101
+ prefetchCount?: number
102
+ /** 'standard' or 'quorum' (HA replicated). Default: 'standard' */
103
+ queueMode?: 'standard' | 'quorum'
104
+ }
105
+ | { type: 'bridge'; bridgeUrl: string }
106
+ queueConfigs?: Record<string, {
107
+ type?: 'standard' | 'fifo'
108
+ concurrency?: number
109
+ /** Alias of maxRetries */
110
+ retries?: number
111
+ maxRetries?: number
112
+ /** Alias of backoffMs */
113
+ backoff?: number
114
+ backoffMs?: number
115
+ /** Optional visibility timeout / lease timeout if supported by the engine */
116
+ visibilityTimeoutMs?: number
117
+ leaseTimeoutMs?: number
118
+ /** Optional dead-letter / fallback queue names if supported by the engine */
119
+ deadLetterQueue?: string
120
+ fallbackQueue?: string
121
+ /** FIFO only: field in the payload used to group messages */
122
+ messageGroupField?: string
123
+ }>
124
+ }
125
+ /** Cron module adapter configuration */
126
+ cron?: {
127
+ adapter?:
128
+ | { type: 'kv'; lockTtlMs?: number; lockIndex?: string; storeMethod?: 'file_based' | 'in_memory'; filePath?: string; saveIntervalMs?: number }
129
+ | { type: 'redis'; redisUrl?: string }
130
+ }
131
+ /** WebSocket Stream module configuration */
132
+ stream?: {
133
+ host?: string
134
+ authFunction?: string | null
135
+ adapter?:
136
+ | { type: 'kv'; storeMethod?: 'file_based' | 'in_memory'; filePath?: string; saveIntervalMs?: number }
137
+ | { type: 'redis'; redisUrl?: string }
138
+ | { type: 'bridge'; bridgeUrl: string }
139
+ }
140
+ /** REST API module extra settings */
141
+ restApi?: {
142
+ host?: string
143
+ defaultTimeout?: number
144
+ concurrencyRequestLimit?: number
145
+ /** CORS configuration for browser clients */
146
+ cors?: {
147
+ /** Origins allowed to make requests. Use '*' for any, or list specific domains. */
148
+ allowedOrigins?: string[]
149
+ /** HTTP methods permitted for cross-origin requests. */
150
+ allowedMethods?: string[]
151
+ }
152
+ }
153
+ /** OtelModule (observability) configuration */
154
+ observability?: {
155
+ enabled?: boolean
156
+ serviceName?: string
157
+ serviceVersion?: string
158
+ serviceNamespace?: string
159
+ /**
160
+ * Trace export destination.
161
+ * 'memory' = queryable via iii API / console (default).
162
+ * 'otlp' = external collector (set endpoint too).
163
+ * 'both' = memory + otlp.
164
+ */
165
+ exporter?: 'memory' | 'otlp' | 'both'
166
+ endpoint?: string
167
+ samplingRatio?: number
168
+ memoryMaxSpans?: number
169
+ metricsEnabled?: boolean
170
+ metricsExporter?: 'memory' | 'otlp'
171
+ metricsRetentionSeconds?: number
172
+ metricsMaxCount?: number
173
+ logsEnabled?: boolean
174
+ logsExporter?: 'memory' | 'otlp' | 'both'
175
+ logsMaxCount?: number
176
+ logsRetentionSeconds?: number
177
+ logsBatchSize?: number
178
+ logsFlushIntervalMs?: number
179
+ logsSamplingRatio?: number
180
+ logsConsoleOutput?: boolean
181
+ /** Advanced sampling rules — override samplingRatio for matched operations. */
182
+ sampling?: {
183
+ default?: number
184
+ parentBased?: boolean
185
+ rules?: Array<{ operation?: string; service?: string; rate: number }>
186
+ rateLimit?: { maxTracesPerSecond?: number }
187
+ }
188
+ /** Alert rules — trigger a webhook or function when a metric crosses a threshold. */
189
+ alerts?: Array<{
190
+ name: string
191
+ metric: string
192
+ threshold: number
193
+ operator: '>' | '>=' | '<' | '<=' | '==' | '!='
194
+ windowSeconds: number
195
+ enabled?: boolean
196
+ cooldownSeconds?: number
197
+ action: { type: 'webhook'; url: string } | { type: 'function'; path: string }
198
+ }>
199
+ level?: 'trace' | 'debug' | 'info' | 'warn' | 'error'
200
+ format?: 'default' | 'json'
201
+ }
202
+ /**
203
+ * Minimum log level for iii engine output.
204
+ * 'none' silences all output, 'error' shows only errors, 'warn' shows warnings + errors,
205
+ * 'info' shows everything. Default: 'warn'
206
+ */
207
+ logLevel?: 'none' | 'error' | 'warn' | 'info'
208
+ /**
209
+ * Enable the iii-console web UI (separate binary, http://localhost:3113).
210
+ * Pass `true` for defaults or an object to customise.
211
+ */
212
+ console?: boolean | {
213
+ /** Version to install. Default: same as iii engine version */
214
+ version?: string
215
+ /** Port for the console web UI. Default: 3113 */
216
+ port?: number
217
+ /** Host for the console web UI. Default: 'localhost' */
218
+ host?: string
219
+ /** Enable the Flow visualization page */
220
+ flow?: boolean
221
+ }
222
+ /** PubSub worker — topic-based event fanout across functions. */
223
+ pubsub?: {
224
+ adapter?:
225
+ | { type: 'local' }
226
+ | { type: 'redis'; redisUrl?: string }
227
+ }
228
+ /**
229
+ * HTTP Functions worker — enables outbound HTTP calls from the engine.
230
+ * Required for functions registered with HttpInvocationConfig.
231
+ */
232
+ httpFunctions?: {
233
+ security?: {
234
+ /** URL patterns allowed for outbound requests. Use '*' to allow all. */
235
+ urlAllowlist?: string[]
236
+ /** Block requests to private/internal IP ranges (SSRF prevention). Default: true */
237
+ blockPrivateIps?: boolean
238
+ /** Require HTTPS for all outbound requests. Default: true */
239
+ requireHttps?: boolean
240
+ }
241
+ }
242
+ /**
243
+ * Additional iii-worker-manager instance with RBAC.
244
+ * nvent uses this automatically when browser SDK is enabled.
245
+ * Can also be configured manually for custom auth scenarios.
246
+ */
247
+ workerManager?: {
248
+ rbac?: {
249
+ /** Port for the RBAC worker manager. Default: 49135 */
250
+ port?: number
251
+ /** Function ID called on every WebSocket upgrade for auth. */
252
+ authFunctionId?: string
253
+ /** Functions the connecting worker is allowed to invoke (patterns supported). */
254
+ exposeFunctions?: string[]
255
+ /** Function invoked before each handler — enrich or audit requests. */
256
+ middlewareFunctionId?: string
257
+ /** Allow workers to register their own function handlers. Default: true */
258
+ allowFunctionRegistration?: boolean
259
+ /** Allow workers to register new trigger types. Default: false */
260
+ allowTriggerTypeRegistration?: boolean
261
+ /** Prefix prepended to every function the worker registers. */
262
+ functionRegistrationPrefix?: string
263
+ /** TTL for signed browser auth tokens generated by the Nuxt proxy. Default: 120 */
264
+ tokenTtlSeconds?: number
265
+ /** Allow browser connections without a custom resolver returning user context. Default: true */
266
+ allowAnonymous?: boolean
267
+ /** Optional path (relative to project root) to a custom browser auth resolver module. */
268
+ authResolverPath?: string
269
+ }
270
+ }
271
+ /**
272
+ * Bridge client workers — connects this engine to remote iii instances.
273
+ * Each entry creates an `iii-bridge` worker in the config.
274
+ */
275
+ bridge?: Array<{
276
+ url: string
277
+ serviceId: string
278
+ serviceName?: string
279
+ expose?: Array<{ localFunction: string; remoteFunction?: string }>
280
+ forward?: Array<{ localFunction: string; remoteFunction: string; timeoutMs?: number }>
281
+ }>
282
+ /**
283
+ * Exec workers spawns external processes alongside the engine.
284
+ * Each entry creates an `iii-exec` worker in the config.
285
+ */
286
+ exec?: Array<{
287
+ watch?: string[]
288
+ exec: string[]
289
+ }>
290
+ /** Anonymous usage telemetry. Set enabled: false to opt out. */
291
+ telemetry?: {
292
+ enabled?: boolean
293
+ apiKey?: string
294
+ sdkApiKey?: string
295
+ heartbeatIntervalSecs?: number
296
+ }
297
+ }
298
+ functions?: {
299
+ /** Directory under server/ where functions are, relative to serverDir (default: 'functions') */
300
+ dir?: string
301
+ /**
302
+ * Function ID prefix for this layer's functions.
303
+ * Set in a layer's `nuxt.config.ts` to namespace its functions.
304
+ * Priority: this value `$meta.name` package.json name directory name.
305
+ * Set to `''` (empty string) to explicitly opt out of any prefix.
306
+ * Has no effect in the root project (always un-prefixed).
307
+ * Example: 'myorg::auth'
308
+ */
309
+ prefix?: string
310
+ python?: {
311
+ /**
312
+ * Path to the Python executable used **in development only** (e.g. a virtualenv).
313
+ * Has no effect in production — set `NVENT_PYTHON_BIN` env var instead.
314
+ * Default: 'python3'
315
+ * Example: '.venv/bin/python3'
316
+ */
317
+ devPath?: string
318
+ /**
319
+ * Skip Python worker support entirely (no Python scanning, no workers started).
320
+ * Useful when the project has no Python functions. Default: false
321
+ */
322
+ skip?: boolean
323
+ }
324
+ }
325
+ app?: {
326
+ /** Enable the nvent app UI and its built-in route. Default: true */
327
+ enabled?: boolean
328
+ /** Route path for the nvent app. Default: '/_nvent' */
329
+ routePath?: string
330
+ /**
331
+ * Layout to use for the nvent app route.
332
+ * Set to false for no layout, or a string to use a named layout.
333
+ * Default: false
334
+ */
335
+ layout?: string | false
336
+ }
382
337
  }
383
338
 
384
339
  interface LayerInfo {
package/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nvent",
3
- "version": "1.0.0-alpha.11",
3
+ "version": "1.0.0-alpha.12",
4
4
  "configKey": "nvent",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
package/dist/module.mjs CHANGED
@@ -699,8 +699,100 @@ async function ensureIiiEngine(options) {
699
699
  if (!existsSync(binDir)) {
700
700
  mkdirSync(binDir, { recursive: true });
701
701
  }
702
- const asset = getPlatformAsset(version);
703
- await downloadAndExtract(asset.url, asset.ext, binDir, logLevel);
702
+ getPlatformAsset(version);
703
+ const tried = [];
704
+ async function tryDownloadForVersion(ver) {
705
+ try {
706
+ const a = getPlatformAsset(ver);
707
+ tried.push(a.url);
708
+ await downloadAndExtract(a.url, a.ext, binDir, logLevel);
709
+ return true;
710
+ } catch (err) {
711
+ if (logLevel === "info") logger$1.info(`Download for ${ver} failed: ${String(err)}`);
712
+ return false;
713
+ }
714
+ }
715
+ let downloaded = false;
716
+ downloaded = await tryDownloadForVersion(version);
717
+ if (!downloaded && !version.includes("/")) {
718
+ const releaseTag = toReleaseTag$1(version);
719
+ const variants = [
720
+ `iii/${releaseTag}`,
721
+ releaseTag,
722
+ semverFromTag$1(releaseTag),
723
+ `iii/${semverFromTag$1(releaseTag)}`
724
+ ];
725
+ for (const v of variants) {
726
+ if (downloaded) break;
727
+ if (v === version) continue;
728
+ downloaded = await tryDownloadForVersion(v);
729
+ }
730
+ }
731
+ if (!downloaded) {
732
+ const candidateTags = [version];
733
+ if (!version.includes("/")) candidateTags.push(toReleaseTag$1(version), `iii/${toReleaseTag$1(version)}`);
734
+ for (const tag of candidateTags) {
735
+ try {
736
+ const apiUrl = `https://api.github.com/repos/iii-hq/iii/releases/tags/${encodeURIComponent(tag)}`;
737
+ if (logLevel === "info") logger$1.info(`Querying GitHub Release: ${apiUrl}`);
738
+ const res = await fetch(apiUrl, { headers: { "Accept": "application/vnd.github+json", "X-GitHub-Api-Version": "2022-11-28" } });
739
+ if (!res.ok) {
740
+ if (logLevel === "info") logger$1.info(`GitHub API responded ${res.status} ${res.statusText} for tag ${tag}`);
741
+ continue;
742
+ }
743
+ const data = await res.json();
744
+ const assets = Array.isArray(data.assets) ? data.assets : [];
745
+ const platformCandidates = [
746
+ "x86_64-unknown-linux-gnu",
747
+ "aarch64-unknown-linux-gnu",
748
+ "x86_64-apple-darwin",
749
+ "aarch64-apple-darwin",
750
+ "x86_64-pc-windows-msvc",
751
+ "aarch64-pc-windows-msvc"
752
+ ];
753
+ const match = assets.find((a) => platformCandidates.some((p) => a.name.includes(p)));
754
+ if (match && match.browser_download_url) {
755
+ if (logLevel === "info") logger$1.info(`Found asset via GitHub API: ${match.name}`);
756
+ await downloadAndExtract(match.browser_download_url, match.name.endsWith(".zip") ? "zip" : "tar.gz", binDir, logLevel);
757
+ downloaded = true;
758
+ break;
759
+ }
760
+ } catch (err) {
761
+ if (logLevel === "info") logger$1.info(`GitHub API lookup failed for tag ${tag}: ${String(err)}`);
762
+ continue;
763
+ }
764
+ }
765
+ }
766
+ if (!downloaded) {
767
+ try {
768
+ const releasesRes = await fetch("https://api.github.com/repos/iii-hq/iii/releases?per_page=50", {
769
+ headers: { "Accept": "application/vnd.github+json", "X-GitHub-Api-Version": "2022-11-28" }
770
+ });
771
+ let tags = [];
772
+ if (releasesRes.ok) {
773
+ const releases = await releasesRes.json();
774
+ tags = releases.map((r) => r.tag_name).filter(Boolean);
775
+ } else {
776
+ try {
777
+ const tagsRes = await fetch("https://api.github.com/repos/iii-hq/iii/tags?per_page=50", {
778
+ headers: { "Accept": "application/vnd.github+json", "X-GitHub-Api-Version": "2022-11-28" }
779
+ });
780
+ if (tagsRes.ok) {
781
+ const tagsData = await tagsRes.json();
782
+ tags = tagsData.map((t) => t.name).filter(Boolean);
783
+ }
784
+ } catch {
785
+ }
786
+ }
787
+ const shown = tags.slice(0, 20);
788
+ const tagPart = shown.length ? ` Available release tags (first ${shown.length}): ${shown.join(", ")}.` : "";
789
+ throw new Error(
790
+ `Failed to download iii engine from tried URLs: ${tried.join(", ")}.` + tagPart + ` Set a matching 'nvent.iii.version' in your nuxt config (e.g. 'iii/v0.22.1' or 'v0.22.1').`
791
+ );
792
+ } catch (err) {
793
+ throw new Error(`Failed to download iii engine from tried URLs: ${tried.join(", ")}. (${String(err)})`);
794
+ }
795
+ }
704
796
  if (process.platform !== "win32") {
705
797
  chmodSync(binaryPath, 493);
706
798
  }
@@ -1352,6 +1444,7 @@ const module$1 = defineNuxtModule({
1352
1444
  const managed = iiiOpts.managed ?? mode === "local";
1353
1445
  const version = iiiOpts.version ?? "latest";
1354
1446
  const logLevel = iiiOpts.logLevel ?? "warn";
1447
+ const failOnInstallFailure = iiiOpts.failOnInstallFailure ?? false;
1355
1448
  const consoleCfg = typeof iiiOpts.console === "object" ? iiiOpts.console : {};
1356
1449
  installNventPyToSitePackages(pythonBin, readFileSync(PYTHON_NVENT_HELPER_SRC, "utf-8"));
1357
1450
  if (hasNuxtModule("@nvent-addon/app")) {
@@ -1547,44 +1640,74 @@ const module$1 = defineNuxtModule({
1547
1640
  const nventDir = join(nuxt.options.rootDir, "node_modules", ".nvent");
1548
1641
  const binDir = join(nventDir, "bin");
1549
1642
  if (managed && mode === "local") {
1550
- const binaryPath = await ensureIiiEngine({ binDir, version, logLevel });
1551
- const consoleBinaryPath = iiiOpts.console ? await ensureIiiConsole({ binDir, version: consoleCfg.version ?? version, logLevel }) : void 0;
1552
- const nventConfigPath = join(nventDir, "iii-config.yaml");
1553
- writeIiiConfig(nventConfigPath, engineCfg);
1554
- const engine = createEngineManager({
1555
- binaryPath,
1556
- configPath: nventConfigPath,
1557
- httpPort: engineCfg.httpPort,
1558
- wsPort: engineCfg.wsPort,
1559
- logLevel
1560
- });
1561
- await engine.start();
1562
- nuxt.hook("close", async () => {
1563
- await engine.stop();
1564
- });
1565
- if (consoleBinaryPath) {
1566
- const consolePort = consoleCfg.port ?? 3113;
1567
- const consoleManager = new ConsoleManager({
1568
- binaryPath: consoleBinaryPath,
1569
- port: consolePort,
1570
- enginePort: engineCfg.httpPort,
1571
- bridgePort: engineCfg.wsPort,
1572
- flow: consoleCfg.flow ?? true,
1643
+ let binaryPath;
1644
+ let consoleBinaryPath;
1645
+ try {
1646
+ binaryPath = await ensureIiiEngine({ binDir, version, logLevel });
1647
+ consoleBinaryPath = iiiOpts.console ? await ensureIiiConsole({ binDir, version: consoleCfg.version ?? version, logLevel }) : void 0;
1648
+ } catch (err) {
1649
+ console.error("[nvent] III engine installation failed \u2014 skipping engine start. Error:");
1650
+ if (err && err.stack) console.error(err.stack);
1651
+ else console.error(JSON.stringify(err, Object.getOwnPropertyNames(err)));
1652
+ if (failOnInstallFailure) {
1653
+ console.error("[nvent] failOnInstallFailure enabled \u2014 aborting startup.");
1654
+ process.exit(1);
1655
+ }
1656
+ }
1657
+ if (binaryPath) {
1658
+ const nventConfigPath = join(nventDir, "iii-config.yaml");
1659
+ writeIiiConfig(nventConfigPath, engineCfg);
1660
+ const engine = createEngineManager({
1661
+ binaryPath,
1662
+ configPath: nventConfigPath,
1663
+ httpPort: engineCfg.httpPort,
1664
+ wsPort: engineCfg.wsPort,
1665
+ workingDir: nventDir,
1573
1666
  logLevel
1574
1667
  });
1575
- await consoleManager.start();
1576
- nuxt.hook("close", async () => {
1577
- await consoleManager.stop();
1578
- });
1579
- addCustomTab({
1580
- name: "nvent-console",
1581
- title: "nvent",
1582
- icon: "carbon:flow",
1583
- view: {
1584
- type: "iframe",
1585
- src: `http://localhost:${consolePort}`
1668
+ try {
1669
+ await engine.start();
1670
+ nuxt.hook("close", async () => {
1671
+ await engine.stop();
1672
+ });
1673
+ } catch (err) {
1674
+ console.error("[nvent] Failed to start iii engine \u2014 continuing without engine. Error:");
1675
+ if (err && err.stack) console.error(err.stack);
1676
+ else console.error(JSON.stringify(err, Object.getOwnPropertyNames(err)));
1677
+ if (failOnInstallFailure) {
1678
+ console.error("[nvent] failOnInstallFailure enabled \u2014 aborting startup.");
1679
+ process.exit(1);
1586
1680
  }
1587
- });
1681
+ }
1682
+ if (consoleBinaryPath) {
1683
+ const consolePort = consoleCfg.port ?? 3113;
1684
+ const consoleManager = new ConsoleManager({
1685
+ binaryPath: consoleBinaryPath,
1686
+ port: consolePort,
1687
+ enginePort: engineCfg.httpPort,
1688
+ bridgePort: engineCfg.wsPort,
1689
+ flow: consoleCfg.flow ?? true,
1690
+ logLevel
1691
+ });
1692
+ try {
1693
+ await consoleManager.start();
1694
+ nuxt.hook("close", async () => {
1695
+ await consoleManager.stop();
1696
+ });
1697
+ addCustomTab({
1698
+ name: "nvent-console",
1699
+ title: "nvent",
1700
+ icon: "carbon:flow",
1701
+ view: {
1702
+ type: "iframe",
1703
+ src: `http://localhost:${consolePort}`
1704
+ }
1705
+ });
1706
+ } catch (err) {
1707
+ console.error("[nvent] Failed to start iii console UI \u2014 continuing. Error:");
1708
+ console.error(err && err.message ? err.message : err);
1709
+ }
1710
+ }
1588
1711
  }
1589
1712
  }
1590
1713
  if (!skipPython) {
@@ -1630,17 +1753,26 @@ const module$1 = defineNuxtModule({
1630
1753
  } else {
1631
1754
  if (managed && mode === "local") {
1632
1755
  const binDir = join(nuxt.options.rootDir, "node_modules", ".nvent", "bin");
1633
- const binaryPath = await ensureIiiEngine({ binDir, version, logLevel });
1634
- const consoleBinaryPath = iiiOpts.console ? await ensureIiiConsole({ binDir, version: consoleCfg.version ?? version, logLevel }) : void 0;
1635
- nuxt.hook("nitro:build:public-assets", async (nitro) => {
1636
- const outputNventDir = join(nitro.options.output.dir, "nvent");
1637
- const outputBinDir = join(outputNventDir, "bin");
1638
- mkdirSync(outputBinDir, { recursive: true });
1639
- copyFileSync(binaryPath, join(outputBinDir, basename(binaryPath)));
1640
- if (consoleBinaryPath) copyFileSync(consoleBinaryPath, join(outputBinDir, basename(consoleBinaryPath)));
1641
- writeFileSync(join(outputNventDir, "iii-config.yaml"), engineConfigYaml, "utf-8");
1642
- console.log("[nvent] Engine binaries + config copied to .output/nvent/");
1643
- });
1756
+ let binaryPath;
1757
+ let consoleBinaryPath;
1758
+ try {
1759
+ binaryPath = await ensureIiiEngine({ binDir, version, logLevel });
1760
+ consoleBinaryPath = iiiOpts.console ? await ensureIiiConsole({ binDir, version: consoleCfg.version ?? version, logLevel }) : void 0;
1761
+ } catch (err) {
1762
+ console.warn("[nvent] Could not download iii engine for build embedding \u2014 skipping binary copy. Error:");
1763
+ console.warn(err && err.message ? err.message : err);
1764
+ }
1765
+ if (binaryPath) {
1766
+ nuxt.hook("nitro:build:public-assets", async (nitro) => {
1767
+ const outputNventDir = join(nitro.options.output.dir, "nvent");
1768
+ const outputBinDir = join(outputNventDir, "bin");
1769
+ mkdirSync(outputBinDir, { recursive: true });
1770
+ copyFileSync(binaryPath, join(outputBinDir, basename(binaryPath)));
1771
+ if (consoleBinaryPath) copyFileSync(consoleBinaryPath, join(outputBinDir, basename(consoleBinaryPath)));
1772
+ writeFileSync(join(outputNventDir, "iii-config.yaml"), engineConfigYaml, "utf-8");
1773
+ console.log("[nvent] Engine binaries + config copied to .output/nvent/");
1774
+ });
1775
+ }
1644
1776
  }
1645
1777
  if (!skipPython) {
1646
1778
  nuxt.hook("nitro:build:public-assets", async (nitro) => {
@@ -10,5 +10,6 @@
10
10
  export { defineFunction } from './utils/defineFunction.js';
11
11
  export type { FunctionDef, FunctionHandler, TriggerConfig, HttpTriggerConfig, CronTriggerConfig, QueueTriggerConfig, StateTriggerConfig, StreamTriggerConfig, SubscribeTriggerConfig, LogTriggerConfig, CustomTriggerConfig, HttpRequest, } from './utils/defineFunction.js';
12
12
  export { useIii, useIiiHealth } from './utils/useIii.js';
13
- export { Logger, registerWorker, TriggerAction } from 'iii-sdk';
14
- export type { ISdk, InitOptions, TriggerConfig as IiiTriggerConfig } from 'iii-sdk';
13
+ export { registerWorker, TriggerAction } from 'iii-sdk';
14
+ export { Logger } from '@iii-dev/helpers/observability';
15
+ export type { IIIClient, InitOptions } from 'iii-sdk';
@@ -1,3 +1,4 @@
1
1
  export { defineFunction } from "./utils/defineFunction.js";
2
2
  export { useIii, useIiiHealth } from "./utils/useIii.js";
3
- export { Logger, registerWorker, TriggerAction } from "iii-sdk";
3
+ export { registerWorker, TriggerAction } from "iii-sdk";
4
+ export { Logger } from "@iii-dev/helpers/observability";
@@ -10,6 +10,8 @@ export interface EngineManagerOptions {
10
10
  configPath: string;
11
11
  httpPort?: number;
12
12
  wsPort?: number;
13
+ /** Working directory for the engine process. Defaults to process.cwd() */
14
+ workingDir?: string;
13
15
  /** Minimum log level for engine output. Default: 'warn' */
14
16
  logLevel?: 'none' | 'error' | 'warn' | 'info';
15
17
  }
@@ -50,7 +50,13 @@ export class EngineManager {
50
50
  pendingGroup = null;
51
51
  pendingTimer = null;
52
52
  constructor(opts) {
53
- this.opts = { httpPort: 3111, wsPort: 49134, logLevel: "warn", ...opts };
53
+ this.opts = {
54
+ httpPort: 3111,
55
+ wsPort: 49134,
56
+ logLevel: "warn",
57
+ workingDir: process.cwd(),
58
+ ...opts
59
+ };
54
60
  }
55
61
  isRunning() {
56
62
  return this.process !== null && !this.process.killed && this.process.exitCode === null;
@@ -126,7 +132,8 @@ export class EngineManager {
126
132
  this.startupComplete = false;
127
133
  this.process = spawn(binaryPath, ["--config", configPath], {
128
134
  stdio: ["ignore", "pipe", "pipe"],
129
- detached: false
135
+ detached: false,
136
+ cwd: this.opts.workingDir
130
137
  });
131
138
  this.process.stdout?.on("data", (chunk) => {
132
139
  for (const line of chunk.toString().split("\n").filter(Boolean))
@@ -35,11 +35,13 @@ def cron(expression: str) -> dict:
35
35
 
36
36
 
37
37
  # ── Request / Response ─────────────────────────────────────────────────────
38
+ # Stubs for Pylance. Runtime imports real types from iii_helpers.http via _runtime.py.
38
39
 
39
- class ApiRequest:
40
+ class HttpRequest:
40
41
  """HTTP request input for http-triggered Python functions.
41
42
 
42
- The iii SDK uses snake_case field names:
43
+ The iii SDK 0.21.3+ uses HttpRequest from iii_helpers.http.
44
+ Fields use snake_case:
43
45
  req.headers — dict[str, str]
44
46
  req.method — 'GET' | 'POST' | ...
45
47
  req.path_params — dict[str, str]
@@ -53,23 +55,51 @@ class ApiRequest:
53
55
  body: Optional[Any]
54
56
 
55
57
 
56
- class ApiResponse:
58
+ class HttpResponse:
57
59
  """HTTP response returned from an http-triggered handler.
58
60
 
61
+ The iii SDK 0.21.3+ uses HttpResponse from iii_helpers.http.
62
+
59
63
  Example::
60
64
 
61
- return ApiResponse(statusCode=200, body={"ok": True})
62
- return ApiResponse(statusCode=201, body=result, headers={"x-request-id": rid})
65
+ return HttpResponse(status_code=200, body={"ok": True})
66
+ return HttpResponse(status_code=201, body=result, headers={"x-request-id": rid})
63
67
  """
64
68
  def __init__(
65
69
  self,
66
70
  *,
67
- statusCode: int = 200,
71
+ status_code: int = 200,
68
72
  body: Any = None,
69
73
  headers: dict[str, str] = None,
70
74
  ) -> None: ...
71
75
 
72
76
 
77
+ # Backward compatibility aliases
78
+ ApiRequest = HttpRequest
79
+ ApiResponse = HttpResponse
80
+
81
+
82
+ # ── Logger ─────────────────────────────────────────────────────────────────
83
+ # Stub for Pylance. Runtime imports real Logger from iii_helpers.observability.
84
+
85
+ class Logger:
86
+ """Structured logger from iii_helpers.observability.
87
+
88
+ Emits logs as OpenTelemetry LogRecords with automatic trace/span correlation.
89
+
90
+ Usage::
91
+
92
+ logger = Logger("my-function")
93
+ logger.info("Processing order", {"orderId": order_id})
94
+ logger.error("Validation failed", {"field": "email"})
95
+ """
96
+ def __init__(self, name: str = "nvent"): ...
97
+ def debug(self, message: str, attributes: dict[str, Any] | None = None) -> None: ...
98
+ def info(self, message: str, attributes: dict[str, Any] | None = None) -> None: ...
99
+ def warn(self, message: str, attributes: dict[str, Any] | None = None) -> None: ...
100
+ def error(self, message: str, attributes: dict[str, Any] | None = None) -> None: ...
101
+
102
+
73
103
  # ── Stream ─────────────────────────────────────────────────────────────────
74
104
 
75
105
  class IStream:
@@ -314,8 +344,10 @@ try:
314
344
  cron,
315
345
  define_function,
316
346
  FlowContext,
347
+ ApiRequest,
348
+ ApiResponse,
317
349
  )
318
- from iii import ApiRequest, ApiResponse, Logger # type: ignore[no-redef] # noqa: F401, E402
350
+ from iii_helpers.observability import Logger # type: ignore[no-redef] # noqa: F401, E402
319
351
  except ImportError:
320
352
  pass
321
353
 
@@ -22,8 +22,10 @@ import logging as _logging
22
22
 
23
23
  try:
24
24
  import iii as _iii_sdk
25
+ from iii_helpers.http import HttpRequest as _HttpRequest, HttpResponse as _HttpResponse
26
+ from iii_helpers.observability import Logger
25
27
  except ImportError:
26
- print("[nvent] iii package not found — install it: pip install iii-sdk[otel]", flush=True)
28
+ print("[nvent] iii package not found — install it: pip install iii-sdk[otel] iii-helpers", flush=True)
27
29
  sys.exit(1)
28
30
 
29
31
  # Direct Python logging to stdout so nvent captures it alongside other output.
@@ -103,6 +105,15 @@ def set_span_ok(span) -> None:
103
105
  _NVENT_STREAM_KEY = '__nventStream'
104
106
 
105
107
 
108
+ # ---------------------------------------------------------------------------
109
+ # HTTP Request/Response wrappers — convenience aliases for iii_helpers.http
110
+ # ---------------------------------------------------------------------------
111
+
112
+ # Expose iii_helpers.http types as ApiRequest/ApiResponse for backward compatibility
113
+ ApiRequest = _HttpRequest
114
+ ApiResponse = _HttpResponse
115
+
116
+
106
117
  # ---------------------------------------------------------------------------
107
118
  # Trigger config helpers — use these in config["triggers"]
108
119
  # ---------------------------------------------------------------------------
@@ -403,7 +414,7 @@ class FlowContext:
403
414
  self._input = input_data
404
415
  self._stream_name = stream_name or fn_id.split("::")[0]
405
416
  self._stream_group_id = inherited_group_id
406
- self.logger = _iii_sdk.Logger(fn_id)
417
+ self.logger = Logger(fn_id)
407
418
  self.state = _State(client, fn_id)
408
419
  self.stream = _Stream(client, self._stream_name, self._get_or_create_group_id)
409
420
 
@@ -621,7 +632,8 @@ def _register_one(client, mod, default_id: str, fn_def: dict) -> None:
621
632
 
622
633
  def _make_wrapper_thin(_h, _is_http):
623
634
  async def _wrapped(data):
624
- input_data = _iii_sdk.ApiRequest(**data) if (_is_http and isinstance(data, dict)) else data
635
+ # Wrap dict in HttpRequest for HTTP triggers
636
+ input_data = ApiRequest(**data) if (_is_http and isinstance(data, dict)) else data
625
637
  return await _h(input_data)
626
638
  return _wrapped
627
639
 
@@ -702,7 +714,8 @@ def _register_legacy(client, mod, default_id: str) -> None:
702
714
  inherited_group = nvent_stream.get('groupId')
703
715
  effective_stream = nvent_stream.get('name') or _stream_name
704
716
  clean_data = {k: v for k, v in data.items() if k != _NVENT_STREAM_KEY}
705
- input_data = _iii_sdk.ApiRequest(**clean_data) if (_is_http and isinstance(clean_data, dict)) else clean_data
717
+ # Wrap dict in HttpRequest for HTTP triggers
718
+ input_data = ApiRequest(**clean_data) if (_is_http and isinstance(clean_data, dict)) else clean_data
706
719
  if not _hc:
707
720
  return await _h(input_data)
708
721
  ctx = FlowContext(client, _fn_id, _t_type, input_data, effective_stream, inherited_group)
@@ -30,6 +30,7 @@ declare module '#nvent/server' {
30
30
  HttpRequest,
31
31
  } from '../nitro/utils/defineFunction'
32
32
  export { useIii, useIiiHealth } from '../nitro/utils/useIii'
33
- export { Logger, registerWorker, TriggerAction } from 'iii-sdk'
34
- export type { ISdk, InitOptions } from 'iii-sdk'
33
+ export { registerWorker, TriggerAction } from 'iii-sdk'
34
+ export { Logger } from '@iii-dev/helpers/observability'
35
+ export type { IIIClient, InitOptions} from 'iii-sdk'
35
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nvent",
3
- "version": "1.0.0-alpha.11",
3
+ "version": "1.0.0-alpha.12",
4
4
 
5
5
  "description": "Event-driven workflows for Nuxt",
6
6
  "repository": "nhealthorg/nvent",
@@ -24,22 +24,23 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "@nuxt/devtools-kit": "^3.2.4",
27
- "@nuxt/kit": "4.4.4",
27
+ "@nuxt/kit": "4.4.8",
28
28
  "chokidar": "^5.0.0",
29
29
  "confbox": "^0.2.4",
30
- "globby": "16.2.0",
31
- "iii-browser-sdk": "^0.11.6",
32
- "iii-sdk": "^0.11.6",
30
+ "globby": "16.2.1",
31
+ "iii-browser-sdk": "0.21.3",
32
+ "iii-sdk": "0.21.3",
33
+ "@iii-dev/helpers": "0.21.3",
33
34
  "knitwork": "^1.3.0",
34
- "nuxt": "4.4.4",
35
+ "nuxt": "4.4.8",
35
36
  "pathe": "^2.0.3",
36
37
  "perfect-debounce": "^2.1.0"
37
38
  },
38
39
  "devDependencies": {
39
40
  "@nuxt/module-builder": "^1.0.2",
40
- "@nuxt/schema": "4.4.4",
41
- "@types/node": "^25.6.0",
42
- "typescript": "latest",
43
- "vitest": "^4.1.5"
41
+ "@nuxt/schema": "4.4.8",
42
+ "@types/node": "^26.1.1",
43
+ "typescript": "5.9.3",
44
+ "vitest": "^4.1.10"
44
45
  }
45
46
  }