nvent 1.0.0-alpha.1 → 1.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1247,8 +1247,6 @@ const module$1 = defineNuxtModule({
|
|
|
1247
1247
|
nitroOpts.experimental.websocket = true;
|
|
1248
1248
|
addServerHandler({ route: "/stream/**", handler: resolve("./runtime/nitro/routes/stream-proxy") });
|
|
1249
1249
|
addServerImports([
|
|
1250
|
-
{ from: registryTemplatePath, name: "registry" },
|
|
1251
|
-
{ from: registryTemplatePath, name: "pythonFunctions" },
|
|
1252
1250
|
{ from: resolve("./runtime/nitro/utils/useIii"), name: "useIii" },
|
|
1253
1251
|
{ from: resolve("./runtime/nitro/utils/useIii"), name: "useIiiHealth" },
|
|
1254
1252
|
{ from: resolve("./runtime/nitro/utils/useIii"), name: "getContext" },
|
|
@@ -5,6 +5,7 @@ import { resolveNventDir } from "../utils/nventDir.js";
|
|
|
5
5
|
import { registerWorker } from "iii-sdk";
|
|
6
6
|
import { registerNodeFunctions } from "../utils/workers/node.js";
|
|
7
7
|
import { PythonWorkersOrchestrator } from "../utils/workers/python.js";
|
|
8
|
+
import { registry, pythonFunctions } from "#nvent/iii-registry";
|
|
8
9
|
function readProjectName() {
|
|
9
10
|
try {
|
|
10
11
|
const pkgPath = join(process.cwd(), "package.json");
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare module '#nvent/iii-registry' {
|
|
2
|
+
interface NodeFnInfo {
|
|
3
|
+
name: string
|
|
4
|
+
description?: string
|
|
5
|
+
handler: (input: unknown, ctx: unknown) => Promise<unknown>
|
|
6
|
+
triggers: Array<{ type: string; function_id: string; config?: Record<string, unknown> }>
|
|
7
|
+
enqueues: string[]
|
|
8
|
+
flows: string[]
|
|
9
|
+
stream?: string
|
|
10
|
+
filePath?: string
|
|
11
|
+
}
|
|
12
|
+
export const registry: {
|
|
13
|
+
functions: NodeFnInfo[]
|
|
14
|
+
triggers: Array<{ type: string; function_id: string; config?: Record<string, unknown> }>
|
|
15
|
+
}
|
|
16
|
+
export const pythonFunctions: Array<{ id: string; absPath: string; standalone: boolean }>
|
|
17
|
+
}
|