@tailor-platform/sdk 1.63.0 → 1.66.0
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/CHANGELOG.md +51 -0
- package/dist/{actor-J2gJ0eK5.d.mts → actor-D_2aJjYO.d.mts} +2 -2
- package/dist/{application-BezXGbrU.mjs → application-DGDmL8i_.mjs} +72 -9
- package/dist/application-DGDmL8i_.mjs.map +1 -0
- package/dist/application-nTydHJm8.mjs +4 -0
- package/dist/cli/index.mjs +66 -22
- package/dist/cli/index.mjs.map +1 -1
- package/dist/cli/lib.d.mts +375 -375
- package/dist/cli/lib.mjs +3 -3
- package/dist/{client-CobIRHl-.mjs → client-F0a4cWUM.mjs} +3 -2
- package/dist/client-F0a4cWUM.mjs.map +1 -0
- package/dist/{client-C68VWo4g.mjs → client-boxXYevx.mjs} +1 -1
- package/dist/completion/zsh-worker.zsh +4043 -0
- package/dist/configure/index.d.mts +5 -5
- package/dist/configure/index.mjs +17 -1
- package/dist/configure/index.mjs.map +1 -1
- package/dist/{crashreport-BhD0y14F.mjs → crashreport-0EHy-ayY.mjs} +2 -2
- package/dist/{crashreport-BhD0y14F.mjs.map → crashreport-0EHy-ayY.mjs.map} +1 -1
- package/dist/{crashreport-D1wKBJ8N.mjs → crashreport-Bf6uT6mf.mjs} +1 -1
- package/dist/{index-CLxubakC.d.mts → index-BdLqzJDu.d.mts} +19 -6
- package/dist/{index-CfRFkXIO.d.mts → index-Bhjep8cS.d.mts} +2 -2
- package/dist/{index-DUupuPhZ.d.mts → index-CZ2r3qiO.d.mts} +2 -2
- package/dist/{index-CPRnOjjt.d.mts → index-Db2RvnEH.d.mts} +2 -2
- package/dist/{index-CQZVJ5SX.d.mts → index-QpC0TNbH.d.mts} +2 -2
- package/dist/plugin/builtin/enum-constants/index.d.mts +1 -1
- package/dist/plugin/builtin/file-utils/index.d.mts +1 -1
- package/dist/plugin/builtin/kysely-type/index.d.mts +1 -1
- package/dist/plugin/builtin/seed/index.d.mts +1 -1
- package/dist/plugin/index.d.mts +2 -2
- package/dist/{plugin-C_FyVSdl.d.mts → plugin-DylAsA4Z.d.mts} +2 -2
- package/dist/{runtime-CW3jcQCc.mjs → runtime-2nzOZCUb.mjs} +728 -182
- package/dist/runtime-2nzOZCUb.mjs.map +1 -0
- package/dist/{tailordb-BlBGmQK-.d.mts → tailordb-C-ar4XCX.d.mts} +4 -4
- package/dist/utils/test/index.d.mts +3 -3
- package/dist/{workflow.generated-Bf1tWylx.d.mts → workflow.generated--1Qc15Et.d.mts} +62 -7
- package/docs/cli/auth.md +4 -4
- package/docs/cli/completion.md +3 -0
- package/docs/cli/function.md +8 -8
- package/docs/cli/query.md +1 -1
- package/docs/cli/workflow.md +10 -10
- package/docs/cli/workspace.md +14 -10
- package/docs/cli-reference.md +1 -1
- package/docs/services/aigateway.md +97 -0
- package/docs/services/auth.md +19 -0
- package/docs/services/idp.md +96 -0
- package/docs/services/tailordb-migration.md +17 -6
- package/package.json +12 -12
- package/dist/application-BezXGbrU.mjs.map +0 -1
- package/dist/application-DSXntqnV.mjs +0 -4
- package/dist/client-CobIRHl-.mjs.map +0 -1
- package/dist/runtime-CW3jcQCc.mjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,56 @@
|
|
|
1
1
|
# @tailor-platform/sdk
|
|
2
2
|
|
|
3
|
+
## 1.66.0
|
|
4
|
+
### Minor Changes
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
- [#1343](https://github.com/tailor-platform/sdk/pull/1343) [`f8ad2f7`](https://github.com/tailor-platform/sdk/commit/f8ad2f7f17b9453fc6ac20d25e780b6c420d4525) Thanks [@dqn](https://github.com/dqn)! - Adopt dispatcher-mode shell completion so generated completion scripts resolve the currently visible `tailor-sdk` binary at completion time, allowing project-local SDK installations to provide matching completions. Published SDK packages now include a bundled zsh completion worker so the dispatcher can skip first-use cache generation.
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
- [#1402](https://github.com/tailor-platform/sdk/pull/1402) [`2720c06`](https://github.com/tailor-platform/sdk/commit/2720c06e1b7029df6518449abd7d5b7c480903e3) Thanks [@dragon3](https://github.com/dragon3)! - Add `defineAIGateway()` for declaring AI Gateways in `tailor.config.ts`. Configure with `authNamespace` (required) and an optional `cors` allow-list; reference the deployed gateway domain via the `domain` getter. Gateways are created, updated, and removed by `tailor deploy` / `tailor remove` against the platform's AI Gateway API.
|
|
13
|
+
|
|
14
|
+
## 1.65.0
|
|
15
|
+
### Minor Changes
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
- [#1456](https://github.com/tailor-platform/sdk/pull/1456) [`5401fa8`](https://github.com/tailor-platform/sdk/commit/5401fa8a179af6adbf6edddba2307d55ae1cbc0b) Thanks [@k1LoW](https://github.com/k1LoW)! - Type the `federated_identity` claim in the `beforeLogin` hook. When a user signs in through a Built-in IdP OAuth provider (Google or Microsoft), `claims.federated_identity` now exposes the upstream provider's profile (`provider` plus profile claims such as `picture`, `name`, `given_name`, `family_name`, `locale`) with autocompletion, while arbitrary IdP claims remain reachable. Adds the `FederatedIdentity`, `FederatedIdentityClaims`, `FederatedIdentityProvider`, and `BeforeLoginClaims` types.
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
- [#1449](https://github.com/tailor-platform/sdk/pull/1449) [`016aff6`](https://github.com/tailor-platform/sdk/commit/016aff6aab31c334c57a5e5244453f2dd559c008) Thanks [@k1LoW](https://github.com/k1LoW)! - Document the `userAuthPolicy`, `gqlOperations`, and `lang` options of `defineIdp()` in the IdP service guide, including the password policy fields, allowed email domains, Google/Microsoft social login, the read-only `"query"` shortcut, and the cross-field validation constraints.
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
- [#1450](https://github.com/tailor-platform/sdk/pull/1450) [`162ba62`](https://github.com/tailor-platform/sdk/commit/162ba629e0d511593718f289b93788d5d56778da) Thanks [@toiroakr](https://github.com/toiroakr)! - Update OpenTelemetry runtime dependencies to 2.8.0 to resolve a moderate security advisory (GHSA-8988-4f7v-96qf) in `@opentelemetry/core`
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
- [#1432](https://github.com/tailor-platform/sdk/pull/1432) [`3a854a3`](https://github.com/tailor-platform/sdk/commit/3a854a3a10b938ce3cf6fe7527de4ab56ecf48d5) Thanks [@toiroakr](https://github.com/toiroakr)! - Roll back a migration's pre-migration schema changes when its data migration (`migrate.ts`) fails during `apply`. A failed migration now leaves the workspace at its prior checkpoint and prior schema instead of half-applied, so subsequent deploys are no longer blocked by opaque "Remote schema drift detected" errors.
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
- [#1422](https://github.com/tailor-platform/sdk/pull/1422) [`f3f8427`](https://github.com/tailor-platform/sdk/commit/f3f84277fe1942601d0fcbb8a64c2c26823b5624) Thanks [@dqn](https://github.com/dqn)! - Internal cleanup of proto field optionality handling. No behavior change.
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
- [#1421](https://github.com/tailor-platform/sdk/pull/1421) [`b933f47`](https://github.com/tailor-platform/sdk/commit/b933f474d65f8dfed56f3991aae3a52589368b10) Thanks [@dqn](https://github.com/dqn)! - Corrupted or hand-edited TailorDB migration snapshot/diff files now fail with a clear validation error when loaded, instead of causing undefined behavior later.
|
|
43
|
+
|
|
44
|
+
## 1.64.0
|
|
45
|
+
|
|
46
|
+
### Minor Changes
|
|
47
|
+
|
|
48
|
+
- [#1419](https://github.com/tailor-platform/sdk/pull/1419) [`d9b5755`](https://github.com/tailor-platform/sdk/commit/d9b57557d812f107fc02721680aecf2ea5ba24ad) Thanks [@dqn](https://github.com/dqn)! - Add default machine user to CLI profiles. Use `tailor-sdk profile create <name> --machine-user <name>` or `tailor-sdk profile update <name> --machine-user <name>` to store a default machine user on a profile. Commands that require a machine user (`query`, `workflow start`, `function test-run`, `machineuser token`) now fall back to the active profile's default when no machine user is given via the command line (`--machine-user`, or the `NAME` argument for `machineuser token`) or the `TAILOR_PLATFORM_MACHINE_USER_NAME` environment variable. Pass an empty string to `profile update --machine-user ""` to clear the stored default. Profiles also support `--machine-user-override deny`, which locks the machine user to the stored default: any explicit machine user supplied on the command line or via `TAILOR_PLATFORM_MACHINE_USER_NAME` that differs from the profile's value causes commands to fail immediately with error code `PROFILE_MACHINE_USER_OVERRIDE_DENIED`. Use `--machine-user-override allow` (the default) to restore the previous behavior.
|
|
49
|
+
|
|
50
|
+
### Patch Changes
|
|
51
|
+
|
|
52
|
+
- [#1414](https://github.com/tailor-platform/sdk/pull/1414) [`1d04806`](https://github.com/tailor-platform/sdk/commit/1d04806e331377d847ac55ac3b9c1dcbb887a1f7) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update oxc
|
|
53
|
+
|
|
3
54
|
## 1.63.0
|
|
4
55
|
|
|
5
56
|
### Minor Changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as InferredAttributeList, j as InferredAttributeMap } from "./tailordb-
|
|
1
|
+
import { A as InferredAttributeList, j as InferredAttributeMap } from "./tailordb-C-ar4XCX.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/types/actor.d.ts
|
|
4
4
|
/** User type enum values from the Tailor Platform server. */
|
|
@@ -21,4 +21,4 @@ type TailorActor = {
|
|
|
21
21
|
};
|
|
22
22
|
//#endregion
|
|
23
23
|
export { TailorActor as t };
|
|
24
|
-
//# sourceMappingURL=actor-
|
|
24
|
+
//# sourceMappingURL=actor-D_2aJjYO.d.mts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { n as isSdkBranded } from "./brand-DlnJ375c.mjs";
|
|
3
|
-
import { a as fetchAll, d as initOAuth2Client } from "./client-
|
|
3
|
+
import { a as fetchAll, d as initOAuth2Client } from "./client-F0a4cWUM.mjs";
|
|
4
4
|
import { t as assertDefined } from "./assert-CKfwrmCV.mjs";
|
|
5
5
|
import { a as parseBoolean, n as logger, r as styles } from "./logger-DpJyJvNz.mjs";
|
|
6
6
|
import { a as TailorFieldSchema, i as AuthInvokerSchema, n as ExecutorSchema, o as loadFilesWithIgnores, r as AuthConfigSchema, s as functionSchema, t as createExecutorService } from "./service-wI3Hvrgx.mjs";
|
|
@@ -10,6 +10,7 @@ import { n as fileUtilsPlugin, t as FileUtilsGeneratorID } from "./file-utils-BH
|
|
|
10
10
|
import { n as kyselyTypePlugin, t as KyselyGeneratorID } from "./kysely-type-D1e0Vwkd.mjs";
|
|
11
11
|
import { n as seedPlugin, r as isPluginGeneratedType, t as SeedGeneratorID } from "./seed-BH2FbrPV.mjs";
|
|
12
12
|
import { t as readPackageJson } from "./package-json-DcQApfPQ.mjs";
|
|
13
|
+
import { t as createCLIError } from "./errors-EsY4XO6O.mjs";
|
|
13
14
|
import { n as tightenSecretFilePermissions, r as writeSecretFile } from "./secret-file-CWzF8rry.mjs";
|
|
14
15
|
import { builtinModules, createRequire } from "node:module";
|
|
15
16
|
import { z } from "zod";
|
|
@@ -82,6 +83,7 @@ const AppConfigSchema = z.object({
|
|
|
82
83
|
workflow: z.unknown().optional(),
|
|
83
84
|
httpAdapter: z.unknown().optional(),
|
|
84
85
|
staticWebsites: z.unknown().optional(),
|
|
86
|
+
aiGateways: z.unknown().optional(),
|
|
85
87
|
secrets: z.unknown().optional()
|
|
86
88
|
});
|
|
87
89
|
|
|
@@ -216,7 +218,9 @@ async function deleteKeyringTokens(account) {
|
|
|
216
218
|
const pfProfileSchema = z.object({
|
|
217
219
|
user: z.string(),
|
|
218
220
|
workspace_id: z.string(),
|
|
219
|
-
readonly: z.boolean().optional()
|
|
221
|
+
readonly: z.boolean().optional(),
|
|
222
|
+
machine_user: z.string().optional(),
|
|
223
|
+
machine_user_override: z.enum(["allow", "deny"]).optional()
|
|
220
224
|
});
|
|
221
225
|
const pfUserSchemaV1 = z.object({
|
|
222
226
|
access_token: z.string(),
|
|
@@ -441,6 +445,40 @@ async function loadWorkspaceId(opts) {
|
|
|
441
445
|
`);
|
|
442
446
|
}
|
|
443
447
|
/**
|
|
448
|
+
* Load machine user name from command options, environment variables, or platform config.
|
|
449
|
+
* In CLI context, env fallback is also handled by politty's arg env option.
|
|
450
|
+
* Priority: opts/machineUser > env/TAILOR_PLATFORM_MACHINE_USER_NAME > opts/profile (profile default) > undefined.
|
|
451
|
+
* An explicitly empty `opts.machineUser` is rejected with a CLIError (`MACHINE_USER_NAME_EMPTY`) rather than falling back to the env var or profile default.
|
|
452
|
+
* When the active profile has `machine_user_override: "deny"`, an explicit value that differs from the profile's machine user throws a CLIError with code `PROFILE_MACHINE_USER_OVERRIDE_DENIED`.
|
|
453
|
+
* @param opts - Machine user and profile options
|
|
454
|
+
* @returns Resolved machine user name, or undefined if not set
|
|
455
|
+
*/
|
|
456
|
+
async function loadMachineUserName(opts) {
|
|
457
|
+
if (opts?.machineUser === "") throw createCLIError({
|
|
458
|
+
code: "MACHINE_USER_NAME_EMPTY",
|
|
459
|
+
message: "Machine user name cannot be empty.",
|
|
460
|
+
suggestion: "Pass a non-empty machine user name, or omit the option to use the environment variable or profile default."
|
|
461
|
+
});
|
|
462
|
+
const explicit = opts?.machineUser || process.env.TAILOR_PLATFORM_MACHINE_USER_NAME || void 0;
|
|
463
|
+
const profile = opts?.profile || process.env.TAILOR_PLATFORM_PROFILE;
|
|
464
|
+
if (!profile) return explicit;
|
|
465
|
+
const entry = (await readPlatformConfig()).profiles[profile];
|
|
466
|
+
if (!entry) {
|
|
467
|
+
if (explicit) return explicit;
|
|
468
|
+
throw new Error(`Profile "${profile}" not found`);
|
|
469
|
+
}
|
|
470
|
+
if (entry.machine_user && entry.machine_user_override === "deny") {
|
|
471
|
+
if (explicit && explicit !== entry.machine_user) throw createCLIError({
|
|
472
|
+
code: "PROFILE_MACHINE_USER_OVERRIDE_DENIED",
|
|
473
|
+
message: `Profile "${profile}" denies overriding the machine user.`,
|
|
474
|
+
details: `This profile fixes the machine user to "${entry.machine_user}" for application-data commands.`,
|
|
475
|
+
suggestion: `Omit the machine user option, unset TAILOR_PLATFORM_MACHINE_USER_NAME, or run 'tailor-sdk profile update ${profile} --machine-user-override allow'.`
|
|
476
|
+
});
|
|
477
|
+
return entry.machine_user;
|
|
478
|
+
}
|
|
479
|
+
return explicit || entry.machine_user;
|
|
480
|
+
}
|
|
481
|
+
/**
|
|
444
482
|
* Load access token from environment variables, command options, or platform config.
|
|
445
483
|
* In CLI context, profile env fallback is also handled by politty's arg env option.
|
|
446
484
|
* Priority: env/TAILOR_PLATFORM_TOKEN > env/TAILOR_TOKEN (deprecated) > opts/profile > env/profile > config/currentUser > error
|
|
@@ -2484,7 +2522,7 @@ function normalizeGqlPermission(permission) {
|
|
|
2484
2522
|
}
|
|
2485
2523
|
function normalizeGqlPolicy(policy) {
|
|
2486
2524
|
return {
|
|
2487
|
-
conditions:
|
|
2525
|
+
conditions: normalizeConditions(policy.conditions),
|
|
2488
2526
|
actions: policy.actions === "all" ? ["all"] : policy.actions,
|
|
2489
2527
|
permit: policy.permit ? "allow" : "deny",
|
|
2490
2528
|
description: policy.description
|
|
@@ -2557,7 +2595,7 @@ function normalizeActionPermission(permission) {
|
|
|
2557
2595
|
function findOmittedPermitRules(rawPermissions) {
|
|
2558
2596
|
const locations = [];
|
|
2559
2597
|
const record = rawPermissions.record;
|
|
2560
|
-
if (record) for (const action of Object.keys(record)) record[action]
|
|
2598
|
+
if (record) for (const action of Object.keys(record)) record[action].forEach((rule, index) => {
|
|
2561
2599
|
if (isObjectFormat(rule) && rule.permit === void 0) locations.push(`record.${String(action)}[${index}]`);
|
|
2562
2600
|
});
|
|
2563
2601
|
const gql = rawPermissions.gql;
|
|
@@ -4018,7 +4056,7 @@ const HTTP_METHOD_KEYS = Object.keys(HTTP_METHODS);
|
|
|
4018
4056
|
|
|
4019
4057
|
//#endregion
|
|
4020
4058
|
//#region src/parser/service/http-adapter/schema.ts
|
|
4021
|
-
const NAME_PATTERN = /^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/;
|
|
4059
|
+
const NAME_PATTERN$1 = /^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/;
|
|
4022
4060
|
const inputHandlersSchema = z.strictObject({
|
|
4023
4061
|
get: functionSchema.optional().describe("Handler for GET requests"),
|
|
4024
4062
|
post: functionSchema.optional().describe("Handler for POST requests"),
|
|
@@ -4027,7 +4065,7 @@ const inputHandlersSchema = z.strictObject({
|
|
|
4027
4065
|
delete: functionSchema.optional().describe("Handler for DELETE requests")
|
|
4028
4066
|
}).refine((val) => Object.values(val).some((v) => v !== void 0), "input must declare at least one HTTP method handler").describe("Per-method functions that transform HTTP requests to GraphQL requests");
|
|
4029
4067
|
const HttpAdapterConfigSchema = z.strictObject({
|
|
4030
|
-
name: z.string().regex(NAME_PATTERN, "name must be 3-63 chars, lowercase alphanumeric with hyphens, not starting or ending with a hyphen").describe("Unique adapter name within the domain"),
|
|
4068
|
+
name: z.string().regex(NAME_PATTERN$1, "name must be 3-63 chars, lowercase alphanumeric with hyphens, not starting or ending with a hyphen").describe("Unique adapter name within the domain"),
|
|
4031
4069
|
pathPattern: z.string().min(1).describe("Path pattern with segment wildcards (trailing or single-segment)"),
|
|
4032
4070
|
enabled: z.boolean().default(true).describe("Whether the adapter is active"),
|
|
4033
4071
|
priority: z.number().int().min(0).default(0).describe("Matching priority; the lowest value wins when multiple adapters match"),
|
|
@@ -5047,6 +5085,16 @@ function resolveInlineSourcemap(configValue) {
|
|
|
5047
5085
|
return true;
|
|
5048
5086
|
}
|
|
5049
5087
|
|
|
5088
|
+
//#endregion
|
|
5089
|
+
//#region src/parser/service/aigateway/schema.ts
|
|
5090
|
+
const NAME_PATTERN = /^[a-z0-9][a-z0-9-]{1,28}[a-z0-9]$/;
|
|
5091
|
+
const AUTH_NAMESPACE_PATTERN = /^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/;
|
|
5092
|
+
const AIGatewaySchema = z.object({
|
|
5093
|
+
name: z.string().regex(NAME_PATTERN, "Must be 3-30 lowercase alphanumeric characters or hyphens").describe("AI Gateway name"),
|
|
5094
|
+
authNamespace: z.string().regex(AUTH_NAMESPACE_PATTERN, "Must be 3-63 lowercase alphanumeric characters or hyphens").describe("Auth namespace used to resolve request tokens against the workspace's auth"),
|
|
5095
|
+
cors: z.array(z.string()).optional().describe("Allowed CORS origins for browser-based clients. Each entry is `*`, `http(s)://*`, `http(s)://*.example.com`, or `http(s)://app.example.com`, optionally with `:port`. Empty list disables cross-origin access.")
|
|
5096
|
+
}).brand("AIGatewayConfig");
|
|
5097
|
+
|
|
5050
5098
|
//#endregion
|
|
5051
5099
|
//#region src/parser/service/idp/schema.ts
|
|
5052
5100
|
/**
|
|
@@ -5339,6 +5387,17 @@ function defineStaticWebsites(websites) {
|
|
|
5339
5387
|
});
|
|
5340
5388
|
return staticWebsiteServices;
|
|
5341
5389
|
}
|
|
5390
|
+
function defineAIGateways(gateways) {
|
|
5391
|
+
const aiGatewayServices = [];
|
|
5392
|
+
const gatewayNames = /* @__PURE__ */ new Set();
|
|
5393
|
+
(gateways ?? []).forEach((config) => {
|
|
5394
|
+
const gateway = AIGatewaySchema.parse(config);
|
|
5395
|
+
if (gatewayNames.has(gateway.name)) throw new Error(`AI Gateway with name "${gateway.name}" already defined.`);
|
|
5396
|
+
gatewayNames.add(gateway.name);
|
|
5397
|
+
aiGatewayServices.push(gateway);
|
|
5398
|
+
});
|
|
5399
|
+
return aiGatewayServices;
|
|
5400
|
+
}
|
|
5342
5401
|
function parseSecretManager(config) {
|
|
5343
5402
|
if (!config) return {
|
|
5344
5403
|
secrets: [],
|
|
@@ -5367,6 +5426,7 @@ function defineServices(config, pluginManager) {
|
|
|
5367
5426
|
const idpResult = defineIdp(config.idp);
|
|
5368
5427
|
const authResult = defineAuth(config.auth, tailordbResult.tailorDBServices, tailordbResult.externalTailorDBNamespaces);
|
|
5369
5428
|
const staticWebsiteServices = defineStaticWebsites(config.staticWebsites);
|
|
5429
|
+
const aiGatewayServices = defineAIGateways(config.aiGateways);
|
|
5370
5430
|
const { secrets, ignoreNullishValues } = parseSecretManager(config.secrets);
|
|
5371
5431
|
return {
|
|
5372
5432
|
tailordbResult,
|
|
@@ -5374,6 +5434,7 @@ function defineServices(config, pluginManager) {
|
|
|
5374
5434
|
idpResult,
|
|
5375
5435
|
authResult,
|
|
5376
5436
|
staticWebsiteServices,
|
|
5437
|
+
aiGatewayServices,
|
|
5377
5438
|
secrets,
|
|
5378
5439
|
ignoreNullishValues
|
|
5379
5440
|
};
|
|
@@ -5398,6 +5459,7 @@ function buildApplication(params) {
|
|
|
5398
5459
|
workflowService: params.workflowService,
|
|
5399
5460
|
httpAdapterService: params.httpAdapterService,
|
|
5400
5461
|
staticWebsiteServices: params.staticWebsiteServices,
|
|
5462
|
+
aiGatewayServices: params.aiGatewayServices,
|
|
5401
5463
|
secrets: params.secrets,
|
|
5402
5464
|
ignoreNullishValues: params.ignoreNullishValues,
|
|
5403
5465
|
env: params.env,
|
|
@@ -5464,7 +5526,7 @@ function generatePluginFilesIfNeeded(pluginManager, tailorDBServices, configPath
|
|
|
5464
5526
|
*/
|
|
5465
5527
|
async function loadApplication(params) {
|
|
5466
5528
|
const { config, pluginManager, bundleCache } = params;
|
|
5467
|
-
const { tailordbResult, resolverResult, idpResult, authResult, staticWebsiteServices, secrets, ignoreNullishValues } = defineServices(config, pluginManager);
|
|
5529
|
+
const { tailordbResult, resolverResult, idpResult, authResult, staticWebsiteServices, aiGatewayServices, secrets, ignoreNullishValues } = defineServices(config, pluginManager);
|
|
5468
5530
|
for (const tailordb of tailordbResult.tailorDBServices) {
|
|
5469
5531
|
await tailordb.loadTypes();
|
|
5470
5532
|
await tailordb.processNamespacePlugins();
|
|
@@ -5542,6 +5604,7 @@ async function loadApplication(params) {
|
|
|
5542
5604
|
workflowService,
|
|
5543
5605
|
httpAdapterService,
|
|
5544
5606
|
staticWebsiteServices,
|
|
5607
|
+
aiGatewayServices,
|
|
5545
5608
|
secrets,
|
|
5546
5609
|
ignoreNullishValues,
|
|
5547
5610
|
env: config.env ?? {}
|
|
@@ -5553,5 +5616,5 @@ async function loadApplication(params) {
|
|
|
5553
5616
|
}
|
|
5554
5617
|
|
|
5555
5618
|
//#endregion
|
|
5556
|
-
export {
|
|
5557
|
-
//# sourceMappingURL=application-
|
|
5619
|
+
export { readPlatformConfig as A, loadConfig as C, loadConfigPath as D, loadAccessToken as E, saveUserTokens as M, writePlatformConfig as N, loadMachineUserName as O, hashFile as S, fetchLatestToken as T, createLogLevelTreeshakeOptions as _, WorkflowJobSchema as a, getDistDir as b, INVOKER_EXPR as c, assertUniqueLocalTailorDBTypeNames as d, assertUniqueTailorDBTypeNamesWithExternal as f, composeFunctionTreeshakeOptions as g, platformBundleDefinePlugin as h, resolveInlineSourcemap as i, resolveTokens as j, loadWorkspaceId as k, buildExecutorArgsExpr as l, stringifyFunction as m, generatePluginFilesIfNeeded as n, ResolverSchema as o, TailorDBTypeSchema as p, loadApplication as r, HTTP_METHODS as s, defineApplication as t, buildResolverOperationHookExpr as u, resolveBundleLogLevel as v, deleteUserTokens as w, hashContent as x, createBundleCache as y };
|
|
5620
|
+
//# sourceMappingURL=application-DGDmL8i_.mjs.map
|