@e-n-v/env 0.0.9 → 0.0.11
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/{EnvChannelOptions-BbKeuO-o.d.cts → EnvChannelOptions-D2-3p4b_.d.cts} +20 -0
- package/dist/{EnvChannelOptions-BbKeuO-o.d.ts → EnvChannelOptions-D2-3p4b_.d.ts} +20 -0
- package/dist/{ProcessEnvChannel-DWHPZePe.d.cts → ProcessEnvChannel-By7mCljr.d.cts} +1 -1
- package/dist/{ProcessEnvChannel-CwhV7_EB.d.ts → ProcessEnvChannel-CvdASj6O.d.ts} +1 -1
- package/dist/channels.cjs +1 -1
- package/dist/channels.d.cts +4 -4
- package/dist/channels.d.ts +4 -4
- package/dist/channels.js +1 -2
- package/dist/cli.cjs +2 -2
- package/dist/cli.js +2 -2
- package/dist/core.d.cts +17 -17
- package/dist/core.d.ts +17 -17
- package/dist/files.d.cts +8 -8
- package/dist/files.d.ts +8 -8
- package/dist/{index-CEyOIRdj.d.ts → index-B0GSc17M.d.ts} +1 -1
- package/dist/{index-BKBW9Dxs.d.cts → index-bqDK7Ycd.d.cts} +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/model.cjs +1 -1
- package/dist/model.js +1 -1
- package/dist/parse.cjs +2 -2
- package/dist/parse.d.cts +2 -2
- package/dist/parse.d.ts +2 -2
- package/dist/parse.js +2 -2
- package/dist/prompt-Rbr8DN-r.d.cts +9 -0
- package/dist/prompt.cjs +2 -2
- package/dist/prompt.d.cts +5 -11
- package/dist/prompt.d.ts +3 -3
- package/dist/prompt.js +2 -2
- package/dist/{resolveChannel-DxZNYdDe.cjs → resolveChannel-Cug62jvj.cjs} +5 -3
- package/dist/{resolveChannel-D1Fzl4TL.js → resolveChannel-DB1XyYCC.js} +5 -3
- package/dist/schemas/zod.d.cts +90 -90
- package/dist/schemas/zod.d.ts +90 -90
- package/dist/schemas.js +1 -2
- package/dist/{src-CdzAzdq-.js → src-BK5HcxMN.js} +30 -26
- package/dist/{src-8rEOvFG5.js → src-BPxfJblL.js} +12 -11
- package/dist/{src-5GYFbR9n.cjs → src-CJ_QE-uc.cjs} +12 -11
- package/dist/{src-D5KzIEH_.cjs → src-CtWcViFD.cjs} +7 -5
- package/dist/{src-CttkcdpE.cjs → src-DefPAYdi.cjs} +30 -26
- package/dist/{src-DWc-WWjX.js → src-DgHZi7PD.js} +7 -5
- package/dist/vars.cjs +1 -1
- package/dist/vars.js +1 -1
- package/package.json +1 -1
package/dist/schemas/zod.d.ts
CHANGED
|
@@ -3,103 +3,103 @@ import { z } from "zod";
|
|
|
3
3
|
type ZodSingleton = typeof z;
|
|
4
4
|
//#endregion
|
|
5
5
|
//#region ../schemas/src/zod/v4/api.d.ts
|
|
6
|
-
declare const apiKey: (z: ZodSingleton) => import("zod").ZodString;
|
|
7
|
-
declare const apiBaseUrl: (z: ZodSingleton) => import("zod").ZodURL;
|
|
8
|
-
declare const apiTimeout: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
6
|
+
export declare const apiKey: (z: ZodSingleton) => import("zod").ZodString;
|
|
7
|
+
export declare const apiBaseUrl: (z: ZodSingleton) => import("zod").ZodURL;
|
|
8
|
+
export declare const apiTimeout: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region ../schemas/src/zod/v4/applicationInsights.d.ts
|
|
11
|
-
declare const applicationInsightsConnectionString: (z: ZodSingleton) => import("zod").ZodString;
|
|
12
|
-
declare const appInsightsInstrumentationKey: (z: ZodSingleton) => import("zod").ZodUUID;
|
|
13
|
-
declare const appInsightsRoleName: (z: ZodSingleton) => import("zod").ZodString;
|
|
14
|
-
declare const appInsightsSamplingRate: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
15
|
-
declare const appInsightsAutocollectDependencies: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
16
|
-
declare const appInsightsAutocollectExceptions: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
17
|
-
declare const appInsightsAutocollectConsole: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
18
|
-
declare const appInsightsAutocollectPerformance: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
11
|
+
export declare const applicationInsightsConnectionString: (z: ZodSingleton) => import("zod").ZodString;
|
|
12
|
+
export declare const appInsightsInstrumentationKey: (z: ZodSingleton) => import("zod").ZodUUID;
|
|
13
|
+
export declare const appInsightsRoleName: (z: ZodSingleton) => import("zod").ZodString;
|
|
14
|
+
export declare const appInsightsSamplingRate: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
15
|
+
export declare const appInsightsAutocollectDependencies: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
16
|
+
export declare const appInsightsAutocollectExceptions: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
17
|
+
export declare const appInsightsAutocollectConsole: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
18
|
+
export declare const appInsightsAutocollectPerformance: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region ../schemas/src/zod/v4/aws.d.ts
|
|
21
|
-
declare const awsAccessKeyId: (z: ZodSingleton) => import("zod").ZodString;
|
|
22
|
-
declare const awsSecretAccessKey: (z: ZodSingleton) => import("zod").ZodString;
|
|
23
|
-
declare const awsRegion: (z: ZodSingleton) => import("zod").ZodString;
|
|
24
|
-
declare const awsS3BucketName: (z: ZodSingleton) => import("zod").ZodString;
|
|
25
|
-
declare const awsSqsQueueUrl: (z: ZodSingleton) => import("zod").ZodString;
|
|
21
|
+
export declare const awsAccessKeyId: (z: ZodSingleton) => import("zod").ZodString;
|
|
22
|
+
export declare const awsSecretAccessKey: (z: ZodSingleton) => import("zod").ZodString;
|
|
23
|
+
export declare const awsRegion: (z: ZodSingleton) => import("zod").ZodString;
|
|
24
|
+
export declare const awsS3BucketName: (z: ZodSingleton) => import("zod").ZodString;
|
|
25
|
+
export declare const awsSqsQueueUrl: (z: ZodSingleton) => import("zod").ZodString;
|
|
26
26
|
//#endregion
|
|
27
27
|
//#region ../schemas/src/zod/v4/azure.d.ts
|
|
28
|
-
declare const azureStorageConnectionString: (z: ZodSingleton) => import("zod").ZodString;
|
|
29
|
-
declare const azureStorageAccountName: (z: ZodSingleton) => import("zod").ZodString;
|
|
30
|
-
declare const azureStorageAccountKey: (z: ZodSingleton) => import("zod").ZodString;
|
|
31
|
-
declare const azureServiceBusConnectionString: (z: ZodSingleton) => import("zod").ZodString;
|
|
32
|
-
declare const azureEventHubConnectionString: (z: ZodSingleton) => import("zod").ZodString;
|
|
28
|
+
export declare const azureStorageConnectionString: (z: ZodSingleton) => import("zod").ZodString;
|
|
29
|
+
export declare const azureStorageAccountName: (z: ZodSingleton) => import("zod").ZodString;
|
|
30
|
+
export declare const azureStorageAccountKey: (z: ZodSingleton) => import("zod").ZodString;
|
|
31
|
+
export declare const azureServiceBusConnectionString: (z: ZodSingleton) => import("zod").ZodString;
|
|
32
|
+
export declare const azureEventHubConnectionString: (z: ZodSingleton) => import("zod").ZodString;
|
|
33
33
|
//#endregion
|
|
34
34
|
//#region ../schemas/src/zod/v4/memcached.d.ts
|
|
35
|
-
declare const memcachedServers: (z: ZodSingleton) => import("zod").ZodString;
|
|
35
|
+
export declare const memcachedServers: (z: ZodSingleton) => import("zod").ZodString;
|
|
36
36
|
//#endregion
|
|
37
37
|
//#region ../schemas/src/zod/v4/cors.d.ts
|
|
38
|
-
declare const cors: (z: ZodSingleton) => import("zod").ZodString;
|
|
38
|
+
export declare const cors: (z: ZodSingleton) => import("zod").ZodString;
|
|
39
39
|
//#endregion
|
|
40
40
|
//#region ../schemas/src/zod/v4/database.d.ts
|
|
41
|
-
declare const databaseUrl: (z: ZodSingleton) => import("zod").ZodString;
|
|
42
|
-
declare const databaseHost: (z: ZodSingleton) => import("zod").ZodString;
|
|
43
|
-
declare const databasePort: (z: ZodSingleton) => import("zod").ZodCoercedNumber<unknown>;
|
|
44
|
-
declare const databaseName: (z: ZodSingleton) => import("zod").ZodString;
|
|
45
|
-
declare const databaseUsername: (z: ZodSingleton) => import("zod").ZodString;
|
|
46
|
-
declare const databasePassword: (z: ZodSingleton) => import("zod").ZodString;
|
|
47
|
-
declare const databaseSchema: (z: ZodSingleton) => import("zod").ZodOptional<import("zod").ZodString>;
|
|
48
|
-
declare const databasePoolSize: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodCoercedNumber<unknown>>;
|
|
49
|
-
declare const databaseTimeout: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodCoercedNumber<unknown>>;
|
|
50
|
-
declare const databaseSsl: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
41
|
+
export declare const databaseUrl: (z: ZodSingleton) => import("zod").ZodString;
|
|
42
|
+
export declare const databaseHost: (z: ZodSingleton) => import("zod").ZodString;
|
|
43
|
+
export declare const databasePort: (z: ZodSingleton) => import("zod").ZodCoercedNumber<unknown>;
|
|
44
|
+
export declare const databaseName: (z: ZodSingleton) => import("zod").ZodString;
|
|
45
|
+
export declare const databaseUsername: (z: ZodSingleton) => import("zod").ZodString;
|
|
46
|
+
export declare const databasePassword: (z: ZodSingleton) => import("zod").ZodString;
|
|
47
|
+
export declare const databaseSchema: (z: ZodSingleton) => import("zod").ZodOptional<import("zod").ZodString>;
|
|
48
|
+
export declare const databasePoolSize: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodCoercedNumber<unknown>>;
|
|
49
|
+
export declare const databaseTimeout: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodCoercedNumber<unknown>>;
|
|
50
|
+
export declare const databaseSsl: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
51
51
|
//#endregion
|
|
52
52
|
//#region ../schemas/src/zod/v4/datadog.d.ts
|
|
53
|
-
declare const datadogApiKey: (z: ZodSingleton) => import("zod").ZodOptional<import("zod").ZodString>;
|
|
53
|
+
export declare const datadogApiKey: (z: ZodSingleton) => import("zod").ZodOptional<import("zod").ZodString>;
|
|
54
54
|
//#endregion
|
|
55
55
|
//#region ../schemas/src/zod/v4/docker.d.ts
|
|
56
|
-
declare const dockerRegistryUrl: (z: ZodSingleton) => import("zod").ZodString;
|
|
57
|
-
declare const dockerRegistryUsername: (z: ZodSingleton) => import("zod").ZodOptional<import("zod").ZodString>;
|
|
58
|
-
declare const dockerRegistryPassword: (z: ZodSingleton) => import("zod").ZodOptional<import("zod").ZodString>;
|
|
56
|
+
export declare const dockerRegistryUrl: (z: ZodSingleton) => import("zod").ZodString;
|
|
57
|
+
export declare const dockerRegistryUsername: (z: ZodSingleton) => import("zod").ZodOptional<import("zod").ZodString>;
|
|
58
|
+
export declare const dockerRegistryPassword: (z: ZodSingleton) => import("zod").ZodOptional<import("zod").ZodString>;
|
|
59
59
|
//#endregion
|
|
60
60
|
//#region ../schemas/src/zod/v4/elasticsearch.d.ts
|
|
61
|
-
declare const elasticsearchUrl: (z: ZodSingleton) => import("zod").ZodURL;
|
|
62
|
-
declare const elasticsearchUsername: (z: ZodSingleton) => import("zod").ZodOptional<import("zod").ZodString>;
|
|
63
|
-
declare const elasticsearchPassword: (z: ZodSingleton) => import("zod").ZodOptional<import("zod").ZodString>;
|
|
61
|
+
export declare const elasticsearchUrl: (z: ZodSingleton) => import("zod").ZodURL;
|
|
62
|
+
export declare const elasticsearchUsername: (z: ZodSingleton) => import("zod").ZodOptional<import("zod").ZodString>;
|
|
63
|
+
export declare const elasticsearchPassword: (z: ZodSingleton) => import("zod").ZodOptional<import("zod").ZodString>;
|
|
64
64
|
//#endregion
|
|
65
65
|
//#region ../schemas/src/zod/v4/encryptionKey.d.ts
|
|
66
|
-
declare const encryptionKey: (z: ZodSingleton) => import("zod").ZodString;
|
|
66
|
+
export declare const encryptionKey: (z: ZodSingleton) => import("zod").ZodString;
|
|
67
67
|
//#endregion
|
|
68
68
|
//#region ../schemas/src/zod/v4/gel.d.ts
|
|
69
|
-
declare const gelDsn: (z: ZodSingleton) => import("zod").ZodString;
|
|
70
|
-
declare const gelInstance: (z: ZodSingleton) => import("zod").ZodString;
|
|
71
|
-
declare const gelSecretKey: (z: ZodSingleton) => import("zod").ZodString;
|
|
72
|
-
declare const gelHost: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodString>;
|
|
73
|
-
declare const gelPort: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodCoercedNumber<unknown>>;
|
|
74
|
-
declare const gelUser: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodString>;
|
|
75
|
-
declare const gelPassword: (z: ZodSingleton) => import("zod").ZodString;
|
|
76
|
-
declare const gelBranch: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodString>;
|
|
77
|
-
declare const gelTlsCaFile: (z: ZodSingleton) => import("zod").ZodOptional<import("zod").ZodString>;
|
|
78
|
-
declare const gelClientTlsSecurity: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
69
|
+
export declare const gelDsn: (z: ZodSingleton) => import("zod").ZodString;
|
|
70
|
+
export declare const gelInstance: (z: ZodSingleton) => import("zod").ZodString;
|
|
71
|
+
export declare const gelSecretKey: (z: ZodSingleton) => import("zod").ZodString;
|
|
72
|
+
export declare const gelHost: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodString>;
|
|
73
|
+
export declare const gelPort: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodCoercedNumber<unknown>>;
|
|
74
|
+
export declare const gelUser: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodString>;
|
|
75
|
+
export declare const gelPassword: (z: ZodSingleton) => import("zod").ZodString;
|
|
76
|
+
export declare const gelBranch: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodString>;
|
|
77
|
+
export declare const gelTlsCaFile: (z: ZodSingleton) => import("zod").ZodOptional<import("zod").ZodString>;
|
|
78
|
+
export declare const gelClientTlsSecurity: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
79
79
|
insecure: "insecure";
|
|
80
80
|
no_host_verification: "no_host_verification";
|
|
81
81
|
strict: "strict";
|
|
82
82
|
}>>;
|
|
83
|
-
declare const gelCredentialsFile: (z: ZodSingleton) => import("zod").ZodOptional<import("zod").ZodString>;
|
|
83
|
+
export declare const gelCredentialsFile: (z: ZodSingleton) => import("zod").ZodOptional<import("zod").ZodString>;
|
|
84
84
|
//#endregion
|
|
85
85
|
//#region ../schemas/src/zod/v4/host.d.ts
|
|
86
|
-
declare const hostSchema: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodString>;
|
|
86
|
+
export declare const hostSchema: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodString>;
|
|
87
87
|
//#endregion
|
|
88
88
|
//#region ../schemas/src/zod/v4/jwt.d.ts
|
|
89
|
-
declare const jwtSecret: (z: ZodSingleton) => import("zod").ZodString;
|
|
90
|
-
declare const jwtAccessTokenExpiresIn: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodString>;
|
|
91
|
-
declare const jwtRefreshTokenExpiresIn: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodString>;
|
|
89
|
+
export declare const jwtSecret: (z: ZodSingleton) => import("zod").ZodString;
|
|
90
|
+
export declare const jwtAccessTokenExpiresIn: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodString>;
|
|
91
|
+
export declare const jwtRefreshTokenExpiresIn: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodString>;
|
|
92
92
|
//#endregion
|
|
93
93
|
//#region ../schemas/src/zod/v4/kafka.d.ts
|
|
94
|
-
declare const kafkaBrokers: (z: ZodSingleton) => import("zod").ZodString;
|
|
95
|
-
declare const kafkaClientId: (z: ZodSingleton) => import("zod").ZodString;
|
|
94
|
+
export declare const kafkaBrokers: (z: ZodSingleton) => import("zod").ZodString;
|
|
95
|
+
export declare const kafkaClientId: (z: ZodSingleton) => import("zod").ZodString;
|
|
96
96
|
//#endregion
|
|
97
97
|
//#region ../schemas/src/zod/v4/kubernetes.d.ts
|
|
98
|
-
declare const kubernetesNamespace: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodString>;
|
|
99
|
-
declare const kubernetesServiceAccount: (z: ZodSingleton) => import("zod").ZodOptional<import("zod").ZodString>;
|
|
98
|
+
export declare const kubernetesNamespace: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodString>;
|
|
99
|
+
export declare const kubernetesServiceAccount: (z: ZodSingleton) => import("zod").ZodOptional<import("zod").ZodString>;
|
|
100
100
|
//#endregion
|
|
101
101
|
//#region ../schemas/src/zod/v4/logLevel.d.ts
|
|
102
|
-
declare const logLevelSchema: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
102
|
+
export declare const logLevelSchema: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
103
103
|
debug: "debug";
|
|
104
104
|
error: "error";
|
|
105
105
|
info: "info";
|
|
@@ -108,16 +108,16 @@ declare const logLevelSchema: (z: ZodSingleton) => import("zod").ZodDefault<impo
|
|
|
108
108
|
}>>;
|
|
109
109
|
//#endregion
|
|
110
110
|
//#region ../schemas/src/zod/v4/rabbitmq.d.ts
|
|
111
|
-
declare const rabbitmqUrl: (z: ZodSingleton) => import("zod").ZodString;
|
|
111
|
+
export declare const rabbitmqUrl: (z: ZodSingleton) => import("zod").ZodString;
|
|
112
112
|
//#endregion
|
|
113
113
|
//#region ../schemas/src/zod/v4/monitoring.d.ts
|
|
114
|
-
declare const newRelicLicenseKey: (z: ZodSingleton) => import("zod").ZodOptional<import("zod").ZodString>;
|
|
115
|
-
declare const sentryDsn: (z: ZodSingleton) => import("zod").ZodOptional<import("zod").ZodString>;
|
|
116
|
-
declare const jaegerEndpoint: (z: ZodSingleton) => import("zod").ZodOptional<import("zod").ZodString>;
|
|
117
|
-
declare const prometheusPort: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
114
|
+
export declare const newRelicLicenseKey: (z: ZodSingleton) => import("zod").ZodOptional<import("zod").ZodString>;
|
|
115
|
+
export declare const sentryDsn: (z: ZodSingleton) => import("zod").ZodOptional<import("zod").ZodString>;
|
|
116
|
+
export declare const jaegerEndpoint: (z: ZodSingleton) => import("zod").ZodOptional<import("zod").ZodString>;
|
|
117
|
+
export declare const prometheusPort: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
118
118
|
//#endregion
|
|
119
119
|
//#region ../schemas/src/zod/v4/node.d.ts
|
|
120
|
-
declare const nodeEnv: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
120
|
+
export declare const nodeEnv: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
121
121
|
development: "development";
|
|
122
122
|
production: "production";
|
|
123
123
|
staging: "staging";
|
|
@@ -125,38 +125,38 @@ declare const nodeEnv: (z: ZodSingleton) => import("zod").ZodDefault<import("zod
|
|
|
125
125
|
}>>;
|
|
126
126
|
//#endregion
|
|
127
127
|
//#region ../schemas/src/zod/v4/oauth.d.ts
|
|
128
|
-
declare const oauthClientId: (z: ZodSingleton) => import("zod").ZodString;
|
|
129
|
-
declare const oauthClientSecret: (z: ZodSingleton) => import("zod").ZodString;
|
|
130
|
-
declare const oauthRedirectUri: (z: ZodSingleton) => import("zod").ZodURL;
|
|
131
|
-
declare const oauthScope: (z: ZodSingleton) => import("zod").ZodString;
|
|
128
|
+
export declare const oauthClientId: (z: ZodSingleton) => import("zod").ZodString;
|
|
129
|
+
export declare const oauthClientSecret: (z: ZodSingleton) => import("zod").ZodString;
|
|
130
|
+
export declare const oauthRedirectUri: (z: ZodSingleton) => import("zod").ZodURL;
|
|
131
|
+
export declare const oauthScope: (z: ZodSingleton) => import("zod").ZodString;
|
|
132
132
|
//#endregion
|
|
133
133
|
//#region ../schemas/src/zod/v4/openai.d.ts
|
|
134
|
-
declare const openaiApiKey: (z: ZodSingleton) => import("zod").ZodString;
|
|
135
|
-
declare const openaiOrganizationId: (z: ZodSingleton) => import("zod").ZodOptional<import("zod").ZodString>;
|
|
136
|
-
declare const openaiProjectId: (z: ZodSingleton) => import("zod").ZodOptional<import("zod").ZodString>;
|
|
137
|
-
declare const openaiBaseUrl: (z: ZodSingleton) => import("zod").ZodOptional<import("zod").ZodString>;
|
|
138
|
-
declare const openaiModel: (z: ZodSingleton) => import("zod").ZodOptional<import("zod").ZodString>;
|
|
139
|
-
declare const openaiTimeout: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
134
|
+
export declare const openaiApiKey: (z: ZodSingleton) => import("zod").ZodString;
|
|
135
|
+
export declare const openaiOrganizationId: (z: ZodSingleton) => import("zod").ZodOptional<import("zod").ZodString>;
|
|
136
|
+
export declare const openaiProjectId: (z: ZodSingleton) => import("zod").ZodOptional<import("zod").ZodString>;
|
|
137
|
+
export declare const openaiBaseUrl: (z: ZodSingleton) => import("zod").ZodOptional<import("zod").ZodString>;
|
|
138
|
+
export declare const openaiModel: (z: ZodSingleton) => import("zod").ZodOptional<import("zod").ZodString>;
|
|
139
|
+
export declare const openaiTimeout: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
140
140
|
//#endregion
|
|
141
141
|
//#region ../schemas/src/zod/v4/redis.d.ts
|
|
142
|
-
declare const redisUrl: (z: ZodSingleton) => import("zod").ZodString;
|
|
143
|
-
declare const redisHost: (z: ZodSingleton) => import("zod").ZodString;
|
|
144
|
-
declare const redisPort: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
145
|
-
declare const redisUsername: (z: ZodSingleton) => import("zod").ZodString;
|
|
146
|
-
declare const redisPassword: (z: ZodSingleton) => import("zod").ZodString;
|
|
147
|
-
declare const redisDb: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
148
|
-
declare const redisTls: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
149
|
-
declare const redisTlsCaCertPath: (z: ZodSingleton) => import("zod").ZodString;
|
|
142
|
+
export declare const redisUrl: (z: ZodSingleton) => import("zod").ZodString;
|
|
143
|
+
export declare const redisHost: (z: ZodSingleton) => import("zod").ZodString;
|
|
144
|
+
export declare const redisPort: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
145
|
+
export declare const redisUsername: (z: ZodSingleton) => import("zod").ZodString;
|
|
146
|
+
export declare const redisPassword: (z: ZodSingleton) => import("zod").ZodString;
|
|
147
|
+
export declare const redisDb: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
148
|
+
export declare const redisTls: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
149
|
+
export declare const redisTlsCaCertPath: (z: ZodSingleton) => import("zod").ZodString;
|
|
150
150
|
//#endregion
|
|
151
151
|
//#region ../schemas/src/zod/v4/port.d.ts
|
|
152
|
-
declare const port: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodCoercedNumber<unknown>>;
|
|
152
|
+
export declare const port: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodCoercedNumber<unknown>>;
|
|
153
153
|
//#endregion
|
|
154
154
|
//#region ../schemas/src/zod/v4/rateLimit.d.ts
|
|
155
|
-
declare const rateLimitRpm: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodCoercedNumber<unknown>>;
|
|
156
|
-
declare const rateLimitWindow: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodCoercedNumber<unknown>>;
|
|
155
|
+
export declare const rateLimitRpm: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodCoercedNumber<unknown>>;
|
|
156
|
+
export declare const rateLimitWindow: (z: ZodSingleton) => import("zod").ZodDefault<import("zod").ZodCoercedNumber<unknown>>;
|
|
157
157
|
//#endregion
|
|
158
158
|
//#region ../schemas/src/zod/v4/webhook.d.ts
|
|
159
|
-
declare const webhookUrl: (z: ZodSingleton) => import("zod").ZodURL;
|
|
159
|
+
export declare const webhookUrl: (z: ZodSingleton) => import("zod").ZodURL;
|
|
160
160
|
//#endregion
|
|
161
161
|
//#region src/schemas/zod.d.ts
|
|
162
162
|
declare const _default: {
|
|
@@ -266,4 +266,4 @@ declare const _default: {
|
|
|
266
266
|
WEBHOOK_URL: z.ZodURL;
|
|
267
267
|
};
|
|
268
268
|
//#endregion
|
|
269
|
-
export {
|
|
269
|
+
export { _default as default };
|
package/dist/schemas.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { API_BASE_URL, API_KEY, API_TIMEOUT, AWS_ACCESS_KEY_ID, AWS_REGION, AWS_S3_BUCKET_NAME, AWS_SECRET_ACCESS_KEY, AWS_SQS_QUEUE_URL, AZURE_EVENT_HUB_CONNECTION_STRING, AZURE_SERVICE_BUS_CONNECTION_STRING, AZURE_STORAGE_ACCOUNT_KEY, AZURE_STORAGE_ACCOUNT_NAME, AZURE_STORAGE_CONNECTION_STRING, CORS_ORIGIN, DATABASE_HOST, DATABASE_NAME, DATABASE_PASSWORD, DATABASE_POOL_SIZE, DATABASE_PORT, DATABASE_SCHEMA, DATABASE_SSL, DATABASE_TIMEOUT, DATABASE_URL, DATABASE_USERNAME, DATADOG_API_KEY, DEBUG, DOCKER_REGISTRY_PASSWORD, DOCKER_REGISTRY_URL, DOCKER_REGISTRY_USERNAME, ELASTICSEARCH_PASSWORD, ELASTICSEARCH_URL, ELASTICSEARCH_USERNAME, GEL_BRANCH, GEL_CLIENT_TLS_SECURITY, GEL_CREDENTIALS_FILE, GEL_DSN, GEL_HOST, GEL_INSTANCE, GEL_PASSWORD, GEL_PORT, GEL_SECRET_KEY, GEL_TLS_CA_FILE, GEL_USER, HOST, JAEGER_ENDPOINT, JWT_ACCESS_TOKEN_EXPIRES_IN, JWT_REFRESH_TOKEN_EXPIRES_IN, JWT_SECRET, KAFKA_BROKERS, KAFKA_CLIENT_ID, LOG_LEVEL, NEW_RELIC_LICENSE_KEY, NODE_ENV, OAUTH_CLIENT_ID, OAUTH_CLIENT_SECRET, OAUTH_REDIRECT_URI, OAUTH_SCOPE, OPENAI_API_KEY, OPENAI_BASE_URL, OPENAI_MODEL, OPENAI_ORGANIZATION_ID, OPENAI_PROJECT_ID, OPENAI_TIMEOUT, PORT, PROMETHEUS_PORT, RABBITMQ_URL, REDIS_DB, REDIS_HOST, REDIS_PASSWORD, REDIS_PORT, REDIS_TLS, REDIS_TLS_CA_CERT_PATH, REDIS_URL, REDIS_USERNAME, SENTRY_DSN, apiBaseUrl, apiKey, apiTimeout, awsAccessKeyId, awsRegion, awsS3BucketName, awsSecretAccessKey, awsSqsQueueUrl, azureEventHubConnectionString, azureServiceBusConnectionString, azureStorageAccountKey, azureStorageAccountName, azureStorageConnectionString, corsOrigin, databaseHost, databaseName, databasePassword, databasePoolSize, databasePort, databaseSchema, databaseSsl, databaseTimeout, databaseUrl, databaseUsername, datadogApiKey, debug, dockerRegistryPassword, dockerRegistryUrl, dockerRegistryUsername, elasticsearchPassword, elasticsearchUrl, elasticsearchUsername, gelBranch, gelClientTlsSecurity, gelCredentialsFile, gelDsn, gelHost, gelInstance, gelPassword, gelPort, gelSecretKey, gelTlsCaFile, gelUser, host, jaegerEndpoint, jwtAccessTokenExpiresIn, jwtRefreshTokenExpiresIn, jwtSecret, kafkaBrokers, kafkaClientId, logLevel, newRelicLicenseKey, nodeEnv, oauthClientId, oauthClientSecret, oauthRedirectUri, oauthScope, openaiApiKey, openaiBaseUrl, openaiModel, openaiOrganizationId, openaiProjectId, openaiTimeout, port, prometheusPort, rabbitmqUrl, redisDb, redisHost, redisPassword, redisPort, redisTls, redisTlsCaCertPath, redisUrl, redisUsername, sentryDsn };
|
|
1
|
+
export { Rn as API_BASE_URL, zn as API_KEY, Bn as API_TIMEOUT, On as AWS_ACCESS_KEY_ID, kn as AWS_REGION, An as AWS_S3_BUCKET_NAME, jn as AWS_SECRET_ACCESS_KEY, Mn as AWS_SQS_QUEUE_URL, vn as AZURE_EVENT_HUB_CONNECTION_STRING, yn as AZURE_SERVICE_BUS_CONNECTION_STRING, bn as AZURE_STORAGE_ACCOUNT_KEY, xn as AZURE_STORAGE_ACCOUNT_NAME, Sn as AZURE_STORAGE_CONNECTION_STRING, fn as CORS_ORIGIN, Kt as DATABASE_HOST, qt as DATABASE_NAME, Jt as DATABASE_PASSWORD, Yt as DATABASE_POOL_SIZE, Xt as DATABASE_PORT, Zt as DATABASE_SCHEMA, Qt as DATABASE_SSL, $t as DATABASE_TIMEOUT, en as DATABASE_URL, tn as DATABASE_USERNAME, H as DATADOG_API_KEY, mn as DEBUG, Bt as DOCKER_REGISTRY_PASSWORD, Vt as DOCKER_REGISTRY_URL, Ht as DOCKER_REGISTRY_USERNAME, Pt as ELASTICSEARCH_PASSWORD, Ft as ELASTICSEARCH_URL, It as ELASTICSEARCH_USERNAME, ft as GEL_BRANCH, pt as GEL_CLIENT_TLS_SECURITY, mt as GEL_CREDENTIALS_FILE, ht as GEL_DSN, gt as GEL_HOST, _t as GEL_INSTANCE, vt as GEL_PASSWORD, yt as GEL_PORT, bt as GEL_SECRET_KEY, xt as GEL_TLS_CA_FILE, St as GEL_USER, ut as HOST, U as JAEGER_ENDPOINT, it as JWT_ACCESS_TOKEN_EXPIRES_IN, at as JWT_REFRESH_TOKEN_EXPIRES_IN, ot as JWT_SECRET, et as KAFKA_BROKERS, tt as KAFKA_CLIENT_ID, Q as LOG_LEVEL, W as NEW_RELIC_LICENSE_KEY, B as NODE_ENV, M as OAUTH_CLIENT_ID, N as OAUTH_CLIENT_SECRET, P as OAUTH_REDIRECT_URI, F as OAUTH_SCOPE, b as OPENAI_API_KEY, x as OPENAI_BASE_URL, S as OPENAI_MODEL, C as OPENAI_ORGANIZATION_ID, w as OPENAI_PROJECT_ID, T as OPENAI_TIMEOUT, hn as PORT, G as PROMETHEUS_PORT, v as RABBITMQ_URL, n as REDIS_DB, r as REDIS_HOST, i as REDIS_PASSWORD, a as REDIS_PORT, o as REDIS_TLS, s as REDIS_TLS_CA_CERT_PATH, c as REDIS_URL, l as REDIS_USERNAME, K as SENTRY_DSN, Vn as apiBaseUrl, Hn as apiKey, Un as apiTimeout, Nn as awsAccessKeyId, Pn as awsRegion, Fn as awsS3BucketName, In as awsSecretAccessKey, Ln as awsSqsQueueUrl, Cn as azureEventHubConnectionString, wn as azureServiceBusConnectionString, Tn as azureStorageAccountKey, En as azureStorageAccountName, Dn as azureStorageConnectionString, pn as corsOrigin, nn as databaseHost, rn as databaseName, in as databasePassword, an as databasePoolSize, on as databasePort, sn as databaseSchema, cn as databaseSsl, ln as databaseTimeout, un as databaseUrl, dn as databaseUsername, q as datadogApiKey, gn as debug, Ut as dockerRegistryPassword, Wt as dockerRegistryUrl, Gt as dockerRegistryUsername, Lt as elasticsearchPassword, Rt as elasticsearchUrl, zt as elasticsearchUsername, Ct as gelBranch, wt as gelClientTlsSecurity, Tt as gelCredentialsFile, Et as gelDsn, Dt as gelHost, Ot as gelInstance, kt as gelPassword, At as gelPort, jt as gelSecretKey, Mt as gelTlsCaFile, Nt as gelUser, dt as host, J as jaegerEndpoint, st as jwtAccessTokenExpiresIn, ct as jwtRefreshTokenExpiresIn, lt as jwtSecret, nt as kafkaBrokers, rt as kafkaClientId, $ as logLevel, Y as newRelicLicenseKey, V as nodeEnv, I as oauthClientId, L as oauthClientSecret, R as oauthRedirectUri, z as oauthScope, E as openaiApiKey, D as openaiBaseUrl, O as openaiModel, k as openaiOrganizationId, A as openaiProjectId, j as openaiTimeout, _n as port, X as prometheusPort, y as rabbitmqUrl, u as redisDb, d as redisHost, f as redisPassword, p as redisPort, m as redisTls, h as redisTlsCaCertPath, g as redisUrl, _ as redisUsername, Z as sentryDsn } from "./src-DvUBRBe3.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
2
|
import { n as preprocessors, t as resolvePreprocessor } from "./src-Cg49gGJb.js";
|
|
3
|
-
import { i as resolveSchemas, n as EnvModel } from "./src-
|
|
4
|
-
import { t as resolveChannel } from "./resolveChannel-
|
|
3
|
+
import { i as resolveSchemas, n as EnvModel } from "./src-DgHZi7PD.js";
|
|
4
|
+
import { t as resolveChannel } from "./resolveChannel-DB1XyYCC.js";
|
|
5
5
|
import { dirname, relative, resolve } from "node:path";
|
|
6
6
|
import { stdin, stdout } from "node:process";
|
|
7
7
|
import { Prompt, isCancel } from "@clack/core";
|
|
@@ -1110,9 +1110,10 @@ var EnvNumberPrompt = class extends EnvPrompt {
|
|
|
1110
1110
|
if (this.mode.isInInteraction("typing")) {
|
|
1111
1111
|
const displayText = dimInputs ? this.colors.dim(this.getInputDisplay(false)) : this.colors.white(this.getInputDisplay(true));
|
|
1112
1112
|
output += `${this.getBar()} ${circle} ${displayText}\n`;
|
|
1113
|
-
} else if (isSelected)
|
|
1114
|
-
|
|
1115
|
-
|
|
1113
|
+
} else if (isSelected) {
|
|
1114
|
+
if (dimInputs) output += `${this.getBar()} ${circle} ${this.colors.dim(option.label)}\n`;
|
|
1115
|
+
else output += `${this.getBar()} ${circle} ${this.colors.white(this.getInputDisplay(true))}\n`;
|
|
1116
|
+
} else {
|
|
1116
1117
|
const text = dimInputs ? this.colors.dim(option.label) : this.colors.subtle(option.label);
|
|
1117
1118
|
output += `${this.getBar()} ${circle} ${text}\n`;
|
|
1118
1119
|
}
|
|
@@ -1232,15 +1233,16 @@ var EnvNumberPrompt = class extends EnvPrompt {
|
|
|
1232
1233
|
}
|
|
1233
1234
|
if (this.mode.isInInteraction("typing")) {
|
|
1234
1235
|
let nextInput = input;
|
|
1235
|
-
if (this.shouldStitchInput && this.otherInputCache)
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1236
|
+
if (this.shouldStitchInput && this.otherInputCache) {
|
|
1237
|
+
if (!input || input === this.otherInputCache) nextInput = this.otherInputCache;
|
|
1238
|
+
else if (input.startsWith(this.otherInputCache)) {
|
|
1239
|
+
nextInput = input;
|
|
1240
|
+
this.shouldStitchInput = false;
|
|
1241
|
+
} else {
|
|
1242
|
+
nextInput = `${this.otherInputCache}${input}`;
|
|
1243
|
+
this.shouldStitchInput = false;
|
|
1244
|
+
}
|
|
1245
|
+
} else this.shouldStitchInput = false;
|
|
1244
1246
|
this.mode.updateInput(nextInput);
|
|
1245
1247
|
this.userInput = nextInput;
|
|
1246
1248
|
this.otherInputCache = nextInput;
|
|
@@ -1518,9 +1520,10 @@ var EnvStringPrompt = class extends EnvPrompt {
|
|
|
1518
1520
|
if (this.mode.isInInteraction("typing")) {
|
|
1519
1521
|
const displayText = dimInputs ? this.colors.dim(this.getInputDisplay(false)) : this.colors.white(this.getInputDisplay(true));
|
|
1520
1522
|
output += `${this.getBar()} ${circle} ${displayText}\n`;
|
|
1521
|
-
} else if (isSelected)
|
|
1522
|
-
|
|
1523
|
-
|
|
1523
|
+
} else if (isSelected) {
|
|
1524
|
+
if (dimInputs) output += `${this.getBar()} ${circle} ${this.colors.dim(option.label)}\n`;
|
|
1525
|
+
else output += `${this.getBar()} ${circle} ${this.colors.white(this.getInputDisplay(true))}\n`;
|
|
1526
|
+
} else {
|
|
1524
1527
|
const text = dimInputs ? this.colors.dim(option.label) : this.colors.subtle(option.label);
|
|
1525
1528
|
output += `${this.getBar()} ${circle} ${text}\n`;
|
|
1526
1529
|
}
|
|
@@ -1652,15 +1655,16 @@ var EnvStringPrompt = class extends EnvPrompt {
|
|
|
1652
1655
|
}
|
|
1653
1656
|
if (this.mode.isInInteraction("typing")) {
|
|
1654
1657
|
let nextInput = input;
|
|
1655
|
-
if (this.shouldStitchInput && this.otherInputCache)
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1658
|
+
if (this.shouldStitchInput && this.otherInputCache) {
|
|
1659
|
+
if (!input || input === this.otherInputCache) nextInput = this.otherInputCache;
|
|
1660
|
+
else if (input.startsWith(this.otherInputCache)) {
|
|
1661
|
+
nextInput = input;
|
|
1662
|
+
this.shouldStitchInput = false;
|
|
1663
|
+
} else {
|
|
1664
|
+
nextInput = `${this.otherInputCache}${input}`;
|
|
1665
|
+
this.shouldStitchInput = false;
|
|
1666
|
+
}
|
|
1667
|
+
} else this.shouldStitchInput = false;
|
|
1664
1668
|
this.mode.updateInput(nextInput);
|
|
1665
1669
|
this.userInput = nextInput;
|
|
1666
1670
|
this.otherInputCache = nextInput;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as resolvePreprocessor } from "./src-Cg49gGJb.js";
|
|
2
|
-
import { i as resolveSchemas, n as EnvModel } from "./src-
|
|
2
|
+
import { i as resolveSchemas, n as EnvModel } from "./src-DgHZi7PD.js";
|
|
3
3
|
//#region ../parse/src/errors/EnvParseError.ts
|
|
4
4
|
/**
|
|
5
5
|
* Error thrown when parsing environment variables fails.
|
|
@@ -92,16 +92,17 @@ function parse(source, modelOrOptions) {
|
|
|
92
92
|
const preprocessedValue = preprocessor ? preprocessor(rawValue) : rawValue;
|
|
93
93
|
try {
|
|
94
94
|
const processedValue = schema.process(preprocessedValue);
|
|
95
|
-
if (processedValue === void 0)
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
95
|
+
if (processedValue === void 0) {
|
|
96
|
+
if (schema.default !== void 0) result[key] = schema.default;
|
|
97
|
+
else if (schema.required) {
|
|
98
|
+
issues.push({
|
|
99
|
+
type: "missing",
|
|
100
|
+
key,
|
|
101
|
+
message: `Required environment variable "${key}" is missing`
|
|
102
|
+
});
|
|
103
|
+
result[key] = void 0;
|
|
104
|
+
} else result[key] = void 0;
|
|
105
|
+
} else result[key] = processedValue;
|
|
105
106
|
} catch (error) {
|
|
106
107
|
const message = `Environment variable "${key}" validation failed: ${error instanceof Error ? error.message : String(error)}`;
|
|
107
108
|
issues.push({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_src = require("./src-TZx_e95f.cjs");
|
|
2
|
-
const require_src$1 = require("./src-
|
|
2
|
+
const require_src$1 = require("./src-CtWcViFD.cjs");
|
|
3
3
|
//#region ../parse/src/errors/EnvParseError.ts
|
|
4
4
|
/**
|
|
5
5
|
* Error thrown when parsing environment variables fails.
|
|
@@ -92,16 +92,17 @@ function parse(source, modelOrOptions) {
|
|
|
92
92
|
const preprocessedValue = preprocessor ? preprocessor(rawValue) : rawValue;
|
|
93
93
|
try {
|
|
94
94
|
const processedValue = schema.process(preprocessedValue);
|
|
95
|
-
if (processedValue === void 0)
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
95
|
+
if (processedValue === void 0) {
|
|
96
|
+
if (schema.default !== void 0) result[key] = schema.default;
|
|
97
|
+
else if (schema.required) {
|
|
98
|
+
issues.push({
|
|
99
|
+
type: "missing",
|
|
100
|
+
key,
|
|
101
|
+
message: `Required environment variable "${key}" is missing`
|
|
102
|
+
});
|
|
103
|
+
result[key] = void 0;
|
|
104
|
+
} else result[key] = void 0;
|
|
105
|
+
} else result[key] = processedValue;
|
|
105
106
|
} catch (error) {
|
|
106
107
|
const message = `Environment variable "${key}" validation failed: ${error instanceof Error ? error.message : String(error)}`;
|
|
107
108
|
issues.push({
|
|
@@ -316,11 +316,13 @@ function peelV4Schema(schema) {
|
|
|
316
316
|
const def = getV4Def(current);
|
|
317
317
|
const typeName = getV4TypeName(def);
|
|
318
318
|
if (!description) description = getV4Description(current, def);
|
|
319
|
-
if (!isV4WrapperType(typeName))
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
319
|
+
if (!isV4WrapperType(typeName)) {
|
|
320
|
+
if (typeName === "pipe" && def.in && def.out) {
|
|
321
|
+
const inType = resolveV4EnvVarType(def.in);
|
|
322
|
+
const outType = resolveV4EnvVarType(def.out);
|
|
323
|
+
if (inType === "string" && outType === "boolean") break;
|
|
324
|
+
} else break;
|
|
325
|
+
}
|
|
324
326
|
if (typeName === "optional" || typeName === "nullish") required = false;
|
|
325
327
|
if ((typeName === "default" || typeName === "prefault") && defaultValue === void 0) defaultValue = getV4DefaultValue(def);
|
|
326
328
|
const inner = getV4InnerSchema(def);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-C0BPl7ul.cjs");
|
|
2
2
|
const require_src = require("./src-TZx_e95f.cjs");
|
|
3
|
-
const require_src$1 = require("./src-
|
|
4
|
-
const require_resolveChannel = require("./resolveChannel-
|
|
3
|
+
const require_src$1 = require("./src-CtWcViFD.cjs");
|
|
4
|
+
const require_resolveChannel = require("./resolveChannel-Cug62jvj.cjs");
|
|
5
5
|
let node_path = require("node:path");
|
|
6
6
|
let node_process = require("node:process");
|
|
7
7
|
let _clack_core = require("@clack/core");
|
|
@@ -1111,9 +1111,10 @@ var EnvNumberPrompt = class extends EnvPrompt {
|
|
|
1111
1111
|
if (this.mode.isInInteraction("typing")) {
|
|
1112
1112
|
const displayText = dimInputs ? this.colors.dim(this.getInputDisplay(false)) : this.colors.white(this.getInputDisplay(true));
|
|
1113
1113
|
output += `${this.getBar()} ${circle} ${displayText}\n`;
|
|
1114
|
-
} else if (isSelected)
|
|
1115
|
-
|
|
1116
|
-
|
|
1114
|
+
} else if (isSelected) {
|
|
1115
|
+
if (dimInputs) output += `${this.getBar()} ${circle} ${this.colors.dim(option.label)}\n`;
|
|
1116
|
+
else output += `${this.getBar()} ${circle} ${this.colors.white(this.getInputDisplay(true))}\n`;
|
|
1117
|
+
} else {
|
|
1117
1118
|
const text = dimInputs ? this.colors.dim(option.label) : this.colors.subtle(option.label);
|
|
1118
1119
|
output += `${this.getBar()} ${circle} ${text}\n`;
|
|
1119
1120
|
}
|
|
@@ -1233,15 +1234,16 @@ var EnvNumberPrompt = class extends EnvPrompt {
|
|
|
1233
1234
|
}
|
|
1234
1235
|
if (this.mode.isInInteraction("typing")) {
|
|
1235
1236
|
let nextInput = input;
|
|
1236
|
-
if (this.shouldStitchInput && this.otherInputCache)
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1237
|
+
if (this.shouldStitchInput && this.otherInputCache) {
|
|
1238
|
+
if (!input || input === this.otherInputCache) nextInput = this.otherInputCache;
|
|
1239
|
+
else if (input.startsWith(this.otherInputCache)) {
|
|
1240
|
+
nextInput = input;
|
|
1241
|
+
this.shouldStitchInput = false;
|
|
1242
|
+
} else {
|
|
1243
|
+
nextInput = `${this.otherInputCache}${input}`;
|
|
1244
|
+
this.shouldStitchInput = false;
|
|
1245
|
+
}
|
|
1246
|
+
} else this.shouldStitchInput = false;
|
|
1245
1247
|
this.mode.updateInput(nextInput);
|
|
1246
1248
|
this.userInput = nextInput;
|
|
1247
1249
|
this.otherInputCache = nextInput;
|
|
@@ -1519,9 +1521,10 @@ var EnvStringPrompt = class extends EnvPrompt {
|
|
|
1519
1521
|
if (this.mode.isInInteraction("typing")) {
|
|
1520
1522
|
const displayText = dimInputs ? this.colors.dim(this.getInputDisplay(false)) : this.colors.white(this.getInputDisplay(true));
|
|
1521
1523
|
output += `${this.getBar()} ${circle} ${displayText}\n`;
|
|
1522
|
-
} else if (isSelected)
|
|
1523
|
-
|
|
1524
|
-
|
|
1524
|
+
} else if (isSelected) {
|
|
1525
|
+
if (dimInputs) output += `${this.getBar()} ${circle} ${this.colors.dim(option.label)}\n`;
|
|
1526
|
+
else output += `${this.getBar()} ${circle} ${this.colors.white(this.getInputDisplay(true))}\n`;
|
|
1527
|
+
} else {
|
|
1525
1528
|
const text = dimInputs ? this.colors.dim(option.label) : this.colors.subtle(option.label);
|
|
1526
1529
|
output += `${this.getBar()} ${circle} ${text}\n`;
|
|
1527
1530
|
}
|
|
@@ -1653,15 +1656,16 @@ var EnvStringPrompt = class extends EnvPrompt {
|
|
|
1653
1656
|
}
|
|
1654
1657
|
if (this.mode.isInInteraction("typing")) {
|
|
1655
1658
|
let nextInput = input;
|
|
1656
|
-
if (this.shouldStitchInput && this.otherInputCache)
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1659
|
+
if (this.shouldStitchInput && this.otherInputCache) {
|
|
1660
|
+
if (!input || input === this.otherInputCache) nextInput = this.otherInputCache;
|
|
1661
|
+
else if (input.startsWith(this.otherInputCache)) {
|
|
1662
|
+
nextInput = input;
|
|
1663
|
+
this.shouldStitchInput = false;
|
|
1664
|
+
} else {
|
|
1665
|
+
nextInput = `${this.otherInputCache}${input}`;
|
|
1666
|
+
this.shouldStitchInput = false;
|
|
1667
|
+
}
|
|
1668
|
+
} else this.shouldStitchInput = false;
|
|
1665
1669
|
this.mode.updateInput(nextInput);
|
|
1666
1670
|
this.userInput = nextInput;
|
|
1667
1671
|
this.otherInputCache = nextInput;
|
|
@@ -314,11 +314,13 @@ function peelV4Schema(schema) {
|
|
|
314
314
|
const def = getV4Def(current);
|
|
315
315
|
const typeName = getV4TypeName(def);
|
|
316
316
|
if (!description) description = getV4Description(current, def);
|
|
317
|
-
if (!isV4WrapperType(typeName))
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
317
|
+
if (!isV4WrapperType(typeName)) {
|
|
318
|
+
if (typeName === "pipe" && def.in && def.out) {
|
|
319
|
+
const inType = resolveV4EnvVarType(def.in);
|
|
320
|
+
const outType = resolveV4EnvVarType(def.out);
|
|
321
|
+
if (inType === "string" && outType === "boolean") break;
|
|
322
|
+
} else break;
|
|
323
|
+
}
|
|
322
324
|
if (typeName === "optional" || typeName === "nullish") required = false;
|
|
323
325
|
if ((typeName === "default" || typeName === "prefault") && defaultValue === void 0) defaultValue = getV4DefaultValue(def);
|
|
324
326
|
const inner = getV4InnerSchema(def);
|
package/dist/vars.cjs
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_src = require("./src-
|
|
5
|
+
const require_src = require("./src-CtWcViFD.cjs");
|
|
6
6
|
const require_src$1 = require("./src-DB0Har0j.cjs");
|
|
7
7
|
//#region src/vars.ts
|
|
8
8
|
/**
|