nvent 1.0.0-alpha.10 → 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 +293 -338
- package/dist/module.json +1 -1
- package/dist/module.mjs +180 -48
- package/dist/runtime/app/composables/useIiiStream.d.ts +26 -3
- package/dist/runtime/app/composables/useIiiStream.js +70 -14
- package/dist/runtime/nitro/server.d.ts +3 -2
- package/dist/runtime/nitro/server.js +2 -1
- package/dist/runtime/nitro/utils/engine.d.ts +2 -0
- package/dist/runtime/nitro/utils/engine.js +9 -2
- package/dist/runtime/python/nvent.py +39 -7
- package/dist/runtime/python/worker_runtime.py +17 -4
- package/dist/runtime/virtual.d.ts +3 -2
- package/package.json +12 -10
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
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
/**
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
/**
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
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 {
|