next-workflow-builder 0.4.6 → 0.4.7
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/{chunk-X5GOM4L4.js → chunk-5H76TY4T.js} +1 -1
- package/dist/{chunk-BL6QJDNB.js → chunk-CKE7ETZL.js} +1 -1
- package/dist/{chunk-KZNRU3LB.js → chunk-J72T2LRL.js} +1 -1
- package/dist/{chunk-F6HAK4HT.js → chunk-JUV5RBYM.js} +2 -2
- package/dist/{chunk-PGG52OSJ.js → chunk-PEVVELQ6.js} +1 -1
- package/dist/{condition-IWTKYMBN.js → condition-VHC4KYLI.js} +5 -5
- package/dist/{database-query-C4GDVVDK.js → database-query-BYPF5CDB.js} +3 -3
- package/dist/{http-request-T2UP7JLH.js → http-request-4OT32ZXA.js} +1 -1
- package/dist/{loop-2237QQBO.js → loop-S5H7DSCB.js} +5 -5
- package/dist/{merge-Q5YUAT6F.js → merge-X5JAIZSZ.js} +5 -5
- package/dist/next/index.js +15 -2
- package/dist/server/api/index.js +9 -9
- package/dist/server/index.js +5 -5
- package/dist/{switch-H2N4F2YX.js → switch-WZBVDWWR.js} +5 -5
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
workflowExecutions,
|
|
10
10
|
workflowExecutionsRelations,
|
|
11
11
|
workflows
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-PEVVELQ6.js";
|
|
13
13
|
|
|
14
14
|
// src/server/auth/index.ts
|
|
15
15
|
import { betterAuth } from "better-auth";
|
|
@@ -19,7 +19,7 @@ import { eq } from "drizzle-orm";
|
|
|
19
19
|
|
|
20
20
|
// src/server/auth/config-store.ts
|
|
21
21
|
function getAuthConfig() {
|
|
22
|
-
const authOptions = process.env.
|
|
22
|
+
const authOptions = process.env.NWB_AUTH_OPTIONS ? JSON.parse(process.env.NWB_AUTH_OPTIONS) : void 0;
|
|
23
23
|
return {
|
|
24
24
|
hasRealProviders: Object.keys(authOptions?.socialProviders ?? {})?.length > 0,
|
|
25
25
|
authOptions
|
|
@@ -162,7 +162,7 @@ var schema = {
|
|
|
162
162
|
apiKeys,
|
|
163
163
|
integrations
|
|
164
164
|
};
|
|
165
|
-
var connectionString = process.env.
|
|
165
|
+
var connectionString = process.env.NWB_DATABASE_URL || process.env.DATABASE_URL || "postgres://localhost:5432/workflow";
|
|
166
166
|
var migrationClient = postgres(connectionString, { max: 1 });
|
|
167
167
|
var globalForDb = globalThis;
|
|
168
168
|
var queryClient = globalForDb.queryClient ?? postgres(connectionString, { max: 10 });
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-J72T2LRL.js";
|
|
2
2
|
import "./chunk-C7GDB4KC.js";
|
|
3
|
-
import "./chunk-
|
|
3
|
+
import "./chunk-JUV5RBYM.js";
|
|
4
4
|
import "./chunk-5YYA34YV.js";
|
|
5
5
|
import "./chunk-OQHML4II.js";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-5H76TY4T.js";
|
|
7
|
+
import "./chunk-CKE7ETZL.js";
|
|
8
8
|
import "./chunk-3XFDIK7H.js";
|
|
9
9
|
import "./chunk-O3I2INCD.js";
|
|
10
10
|
import {
|
|
11
11
|
withStepLogging
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-PEVVELQ6.js";
|
|
13
13
|
|
|
14
14
|
// src/plugins/condition/condition.ts
|
|
15
15
|
import "server-only";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fetchCredentials
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-5H76TY4T.js";
|
|
4
|
+
import "./chunk-CKE7ETZL.js";
|
|
5
5
|
import "./chunk-3XFDIK7H.js";
|
|
6
6
|
import {
|
|
7
7
|
withStepLogging
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-PEVVELQ6.js";
|
|
9
9
|
|
|
10
10
|
// src/plugins/database-query/database-query.ts
|
|
11
11
|
import "server-only";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-J72T2LRL.js";
|
|
2
2
|
import "./chunk-C7GDB4KC.js";
|
|
3
|
-
import "./chunk-
|
|
3
|
+
import "./chunk-JUV5RBYM.js";
|
|
4
4
|
import "./chunk-5YYA34YV.js";
|
|
5
5
|
import "./chunk-OQHML4II.js";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-5H76TY4T.js";
|
|
7
|
+
import "./chunk-CKE7ETZL.js";
|
|
8
8
|
import "./chunk-3XFDIK7H.js";
|
|
9
9
|
import "./chunk-O3I2INCD.js";
|
|
10
10
|
import {
|
|
11
11
|
withStepLogging
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-PEVVELQ6.js";
|
|
13
13
|
|
|
14
14
|
// src/plugins/loop/loop.ts
|
|
15
15
|
import "server-only";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-J72T2LRL.js";
|
|
2
2
|
import "./chunk-C7GDB4KC.js";
|
|
3
|
-
import "./chunk-
|
|
3
|
+
import "./chunk-JUV5RBYM.js";
|
|
4
4
|
import "./chunk-5YYA34YV.js";
|
|
5
5
|
import "./chunk-OQHML4II.js";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-5H76TY4T.js";
|
|
7
|
+
import "./chunk-CKE7ETZL.js";
|
|
8
8
|
import "./chunk-3XFDIK7H.js";
|
|
9
9
|
import "./chunk-O3I2INCD.js";
|
|
10
10
|
import {
|
|
11
11
|
withStepLogging
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-PEVVELQ6.js";
|
|
13
13
|
|
|
14
14
|
// src/plugins/merge/merge.ts
|
|
15
15
|
import "server-only";
|
package/dist/next/index.js
CHANGED
|
@@ -29,10 +29,10 @@ var nextWorkflowBuilder = (config = {}) => {
|
|
|
29
29
|
throw z2.prettifyError(error);
|
|
30
30
|
}
|
|
31
31
|
if (loaderOptions.authOptions) {
|
|
32
|
-
process.env.
|
|
32
|
+
process.env.NWB_AUTH_OPTIONS = JSON.stringify(loaderOptions.authOptions);
|
|
33
33
|
}
|
|
34
34
|
if (loaderOptions.databaseUrl) {
|
|
35
|
-
process.env.
|
|
35
|
+
process.env.NWB_DATABASE_URL = loaderOptions.databaseUrl;
|
|
36
36
|
}
|
|
37
37
|
discoverPlugins();
|
|
38
38
|
return function withNextWorkflowBuilder(nextConfig = {}) {
|
|
@@ -40,8 +40,21 @@ var nextWorkflowBuilder = (config = {}) => {
|
|
|
40
40
|
const consumerPluginsAbsolute = join(process.cwd(), "plugins", "index.ts");
|
|
41
41
|
const consumerStepRegistryRelative = "./lib/step-registry.ts";
|
|
42
42
|
const consumerStepRegistryAbsolute = join(process.cwd(), "lib", "step-registry.ts");
|
|
43
|
+
const inlinedEnv = {};
|
|
44
|
+
if (loaderOptions.authOptions) {
|
|
45
|
+
inlinedEnv.NWB_AUTH_OPTIONS = JSON.stringify(loaderOptions.authOptions);
|
|
46
|
+
}
|
|
47
|
+
if (loaderOptions.databaseUrl) {
|
|
48
|
+
inlinedEnv.NWB_DATABASE_URL = loaderOptions.databaseUrl;
|
|
49
|
+
}
|
|
43
50
|
return {
|
|
44
51
|
...nextConfig,
|
|
52
|
+
...Object.keys(inlinedEnv).length > 0 ? {
|
|
53
|
+
env: {
|
|
54
|
+
...nextConfig.env,
|
|
55
|
+
...inlinedEnv
|
|
56
|
+
}
|
|
57
|
+
} : {},
|
|
45
58
|
// Turbopack alias (used by `next dev` in Next.js 15+)
|
|
46
59
|
turbopack: {
|
|
47
60
|
...nextConfig.turbopack,
|
package/dist/server/api/index.js
CHANGED
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
auth,
|
|
17
17
|
getAuthConfig
|
|
18
|
-
} from "../../chunk-
|
|
18
|
+
} from "../../chunk-JUV5RBYM.js";
|
|
19
19
|
import {
|
|
20
20
|
getErrorMessageAsync
|
|
21
21
|
} from "../../chunk-5YYA34YV.js";
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
getIntegrations,
|
|
34
34
|
updateIntegration,
|
|
35
35
|
validateWorkflowIntegrations
|
|
36
|
-
} from "../../chunk-
|
|
36
|
+
} from "../../chunk-CKE7ETZL.js";
|
|
37
37
|
import {
|
|
38
38
|
findActionById,
|
|
39
39
|
getAllEnvVars,
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
workflowExecutionLogs,
|
|
51
51
|
workflowExecutions,
|
|
52
52
|
workflows
|
|
53
|
-
} from "../../chunk-
|
|
53
|
+
} from "../../chunk-PEVVELQ6.js";
|
|
54
54
|
|
|
55
55
|
// src/server/api/index.ts
|
|
56
56
|
import { NextResponse as NextResponse5 } from "next/server";
|
|
@@ -416,32 +416,32 @@ triggerStep.maxRetries = 0;
|
|
|
416
416
|
var SYSTEM_ACTIONS = {
|
|
417
417
|
"Database Query": {
|
|
418
418
|
// biome-ignore lint/suspicious/noExplicitAny: Dynamic module import
|
|
419
|
-
importer: () => import("../../database-query-
|
|
419
|
+
importer: () => import("../../database-query-BYPF5CDB.js"),
|
|
420
420
|
stepFunction: "databaseQueryStep"
|
|
421
421
|
},
|
|
422
422
|
"HTTP Request": {
|
|
423
423
|
// biome-ignore lint/suspicious/noExplicitAny: Dynamic module import
|
|
424
|
-
importer: () => import("../../http-request-
|
|
424
|
+
importer: () => import("../../http-request-4OT32ZXA.js"),
|
|
425
425
|
stepFunction: "httpRequestStep"
|
|
426
426
|
},
|
|
427
427
|
Condition: {
|
|
428
428
|
// biome-ignore lint/suspicious/noExplicitAny: Dynamic module import
|
|
429
|
-
importer: () => import("../../condition-
|
|
429
|
+
importer: () => import("../../condition-VHC4KYLI.js"),
|
|
430
430
|
stepFunction: "conditionStep"
|
|
431
431
|
},
|
|
432
432
|
Loop: {
|
|
433
433
|
// biome-ignore lint/suspicious/noExplicitAny: Dynamic module import
|
|
434
|
-
importer: () => import("../../loop-
|
|
434
|
+
importer: () => import("../../loop-S5H7DSCB.js"),
|
|
435
435
|
stepFunction: "loopStep"
|
|
436
436
|
},
|
|
437
437
|
Switch: {
|
|
438
438
|
// biome-ignore lint/suspicious/noExplicitAny: Dynamic module import
|
|
439
|
-
importer: () => import("../../switch-
|
|
439
|
+
importer: () => import("../../switch-WZBVDWWR.js"),
|
|
440
440
|
stepFunction: "switchStep"
|
|
441
441
|
},
|
|
442
442
|
Merge: {
|
|
443
443
|
// biome-ignore lint/suspicious/noExplicitAny: Dynamic module import
|
|
444
|
-
importer: () => import("../../merge-
|
|
444
|
+
importer: () => import("../../merge-X5JAIZSZ.js"),
|
|
445
445
|
stepFunction: "mergeStep"
|
|
446
446
|
}
|
|
447
447
|
};
|
package/dist/server/index.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generateWorkflowMetadata
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-J72T2LRL.js";
|
|
4
4
|
import {
|
|
5
5
|
discoverPlugins
|
|
6
6
|
} from "../chunk-C7GDB4KC.js";
|
|
7
7
|
import {
|
|
8
8
|
auth
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-JUV5RBYM.js";
|
|
10
10
|
import {
|
|
11
11
|
getErrorMessageAsync
|
|
12
12
|
} from "../chunk-5YYA34YV.js";
|
|
13
13
|
import "../chunk-OQHML4II.js";
|
|
14
14
|
import {
|
|
15
15
|
fetchCredentials
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-5H76TY4T.js";
|
|
17
17
|
import {
|
|
18
18
|
decrypt,
|
|
19
19
|
encrypt
|
|
20
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-CKE7ETZL.js";
|
|
21
21
|
import "../chunk-3XFDIK7H.js";
|
|
22
22
|
import {
|
|
23
23
|
getErrorMessage
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
workflowExecutionLogs,
|
|
36
36
|
workflowExecutions,
|
|
37
37
|
workflowExecutionsRelations
|
|
38
|
-
} from "../chunk-
|
|
38
|
+
} from "../chunk-PEVVELQ6.js";
|
|
39
39
|
export {
|
|
40
40
|
accounts,
|
|
41
41
|
apiKeys,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-J72T2LRL.js";
|
|
2
2
|
import "./chunk-C7GDB4KC.js";
|
|
3
|
-
import "./chunk-
|
|
3
|
+
import "./chunk-JUV5RBYM.js";
|
|
4
4
|
import "./chunk-5YYA34YV.js";
|
|
5
5
|
import "./chunk-OQHML4II.js";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-5H76TY4T.js";
|
|
7
|
+
import "./chunk-CKE7ETZL.js";
|
|
8
8
|
import "./chunk-3XFDIK7H.js";
|
|
9
9
|
import "./chunk-O3I2INCD.js";
|
|
10
10
|
import {
|
|
11
11
|
withStepLogging
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-PEVVELQ6.js";
|
|
13
13
|
|
|
14
14
|
// src/plugins/switch/switch.ts
|
|
15
15
|
import "server-only";
|