@kitsy/cnos 1.9.2 → 1.10.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/dist/build/index.cjs +193 -18
- package/dist/build/index.d.cts +1 -1
- package/dist/build/index.d.ts +1 -1
- package/dist/build/index.js +8 -8
- package/dist/{chunk-2JBA2LXU.js → chunk-3EZGPQCE.js} +35 -6
- package/dist/{chunk-6QQPHDUI.js → chunk-A5U7EZCJ.js} +1 -1
- package/dist/{chunk-CPGRRZLP.js → chunk-CSA4L64V.js} +10 -10
- package/dist/{chunk-QK7BMU47.js → chunk-EIK7OUFP.js} +3 -3
- package/dist/{chunk-A2WG3ZKW.js → chunk-ESBHCFC6.js} +1 -1
- package/dist/{chunk-7JZO6XN3.js → chunk-FHXLOWAB.js} +1 -1
- package/dist/{chunk-7KVM5PUW.js → chunk-MQ4WG3K6.js} +158 -12
- package/dist/{chunk-LURQ4LAK.js → chunk-RTHKUGJV.js} +1 -1
- package/dist/{chunk-L7JVECPE.js → chunk-UGLATJJD.js} +1 -1
- package/dist/{chunk-NVFACB64.js → chunk-UKNL2Y4N.js} +1 -1
- package/dist/configure/index.cjs +193 -18
- package/dist/configure/index.d.cts +3 -3
- package/dist/configure/index.d.ts +3 -3
- package/dist/configure/index.js +8 -8
- package/dist/{core-zDTUSVx9.d.cts → core-Ud1o2MBn.d.cts} +12 -5
- package/dist/{core-zDTUSVx9.d.ts → core-Ud1o2MBn.d.ts} +12 -5
- package/dist/{envNaming-BkorOKW_.d.ts → envNaming-CPwXl4I6.d.ts} +1 -1
- package/dist/{envNaming-EFzezmB3.d.cts → envNaming-DxxqiGKN.d.cts} +1 -1
- package/dist/index.cjs +193 -18
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +10 -10
- package/dist/internal.cjs +289 -31
- package/dist/internal.d.cts +31 -3
- package/dist/internal.d.ts +31 -3
- package/dist/internal.js +141 -23
- package/dist/plugin/basic-schema.cjs +9 -2
- package/dist/plugin/basic-schema.d.cts +1 -1
- package/dist/plugin/basic-schema.d.ts +1 -1
- package/dist/plugin/basic-schema.js +2 -2
- package/dist/plugin/cli-args.d.cts +1 -1
- package/dist/plugin/cli-args.d.ts +1 -1
- package/dist/plugin/cli-args.js +2 -2
- package/dist/plugin/dotenv.cjs +34 -5
- package/dist/plugin/dotenv.d.cts +2 -2
- package/dist/plugin/dotenv.d.ts +2 -2
- package/dist/plugin/dotenv.js +2 -2
- package/dist/plugin/env-export.d.cts +2 -2
- package/dist/plugin/env-export.d.ts +2 -2
- package/dist/plugin/env-export.js +2 -2
- package/dist/plugin/filesystem.d.cts +1 -1
- package/dist/plugin/filesystem.d.ts +1 -1
- package/dist/plugin/filesystem.js +2 -2
- package/dist/plugin/process-env.d.cts +2 -2
- package/dist/plugin/process-env.d.ts +2 -2
- package/dist/plugin/process-env.js +2 -2
- package/dist/runtime/index.cjs +193 -18
- package/dist/runtime/index.d.cts +1 -1
- package/dist/runtime/index.d.ts +1 -1
- package/dist/runtime/index.js +10 -10
- package/dist/{toPublicEnv-CT265rzS.d.ts → toPublicEnv-C9wPSpRo.d.ts} +1 -1
- package/dist/{toPublicEnv-Ds1DRwCX.d.cts → toPublicEnv-fUZMRUOz.d.cts} +1 -1
- package/package.json +1 -1
package/dist/internal.js
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
serializeRuntimeGraph,
|
|
12
12
|
serializeSecretPayload,
|
|
13
13
|
serializeServerProjection
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-UKNL2Y4N.js";
|
|
15
15
|
import {
|
|
16
16
|
CnosAuthenticationError,
|
|
17
17
|
CnosSecurityError,
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
writeLocalSecret,
|
|
65
65
|
writeRemoteRootCacheMetadata,
|
|
66
66
|
writeVaultSessionKey
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-MQ4WG3K6.js";
|
|
68
68
|
|
|
69
69
|
// src/codegen/generateTypes.ts
|
|
70
70
|
function toPascalCase(value) {
|
|
@@ -269,7 +269,7 @@ async function watchSchema(options = {}) {
|
|
|
269
269
|
return watcher;
|
|
270
270
|
}
|
|
271
271
|
|
|
272
|
-
// src/
|
|
272
|
+
// src/spec/compareSpecToGraph.ts
|
|
273
273
|
function describeValueType(value) {
|
|
274
274
|
if (Array.isArray(value)) {
|
|
275
275
|
return "array";
|
|
@@ -292,6 +292,17 @@ function matchesType(value, type) {
|
|
|
292
292
|
return typeof value === type;
|
|
293
293
|
}
|
|
294
294
|
}
|
|
295
|
+
function enumMatches(value, allowed) {
|
|
296
|
+
const serialized = JSON.stringify(value);
|
|
297
|
+
return allowed.some((candidate) => JSON.stringify(candidate) === serialized);
|
|
298
|
+
}
|
|
299
|
+
function matchesPattern(pattern, value) {
|
|
300
|
+
try {
|
|
301
|
+
return new RegExp(pattern).test(value);
|
|
302
|
+
} catch {
|
|
303
|
+
return false;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
295
306
|
function isSchemaDefault(entry) {
|
|
296
307
|
return entry.winner.metadata?.schemaDefault === true;
|
|
297
308
|
}
|
|
@@ -301,34 +312,53 @@ function shouldTrackKey(key) {
|
|
|
301
312
|
function isTransientRuntimeSource(entry) {
|
|
302
313
|
return entry.winner.sourceId === "process-env" || entry.winner.sourceId === "cli-args";
|
|
303
314
|
}
|
|
304
|
-
function
|
|
315
|
+
function buildSummary(issues) {
|
|
316
|
+
return {
|
|
317
|
+
missingRequired: issues.filter((issue) => issue.status === "missing_required").length,
|
|
318
|
+
undeclared: issues.filter((issue) => issue.status === "undeclared").length,
|
|
319
|
+
typeMismatch: issues.filter((issue) => issue.status === "type_mismatch").length,
|
|
320
|
+
enumMismatch: issues.filter((issue) => issue.status === "enum_mismatch").length,
|
|
321
|
+
patternMismatch: issues.filter((issue) => issue.status === "pattern_mismatch").length,
|
|
322
|
+
defaultApplied: issues.filter((issue) => issue.status === "default_applied").length,
|
|
323
|
+
deprecatedInUse: issues.filter((issue) => issue.status === "deprecated_in_use").length
|
|
324
|
+
};
|
|
325
|
+
}
|
|
326
|
+
function compareSpecToGraph(runtime) {
|
|
305
327
|
const schema = runtime.manifest.schema;
|
|
306
|
-
const
|
|
307
|
-
const mismatches = [];
|
|
308
|
-
const defaultsApplied = [];
|
|
328
|
+
const issues = [];
|
|
309
329
|
for (const [key, rule] of Object.entries(schema).sort(([left], [right]) => left.localeCompare(right))) {
|
|
310
330
|
const entry = runtime.graph.entries.get(key);
|
|
331
|
+
const summary = rule.summary;
|
|
311
332
|
if (!entry) {
|
|
312
333
|
if (rule.required && rule.default === void 0) {
|
|
313
|
-
|
|
334
|
+
issues.push({
|
|
314
335
|
key,
|
|
336
|
+
status: "missing_required",
|
|
315
337
|
...rule.type ? {
|
|
316
338
|
expectedType: rule.type
|
|
339
|
+
} : {},
|
|
340
|
+
...summary ? {
|
|
341
|
+
summary
|
|
317
342
|
} : {}
|
|
318
343
|
});
|
|
319
344
|
}
|
|
320
345
|
continue;
|
|
321
346
|
}
|
|
322
347
|
if (isSchemaDefault(entry)) {
|
|
323
|
-
|
|
348
|
+
issues.push({
|
|
324
349
|
key,
|
|
325
|
-
|
|
350
|
+
status: "default_applied",
|
|
351
|
+
value: entry.value,
|
|
352
|
+
...summary ? {
|
|
353
|
+
summary
|
|
354
|
+
} : {}
|
|
326
355
|
});
|
|
327
356
|
}
|
|
328
357
|
const actualValue = entry.winner.value;
|
|
329
358
|
if (!matchesType(actualValue, rule.type)) {
|
|
330
|
-
|
|
359
|
+
issues.push({
|
|
331
360
|
key,
|
|
361
|
+
status: "type_mismatch",
|
|
332
362
|
...rule.type ? {
|
|
333
363
|
expectedType: rule.type
|
|
334
364
|
} : {},
|
|
@@ -336,26 +366,113 @@ function compareSchemaToGraph(runtime) {
|
|
|
336
366
|
value: actualValue,
|
|
337
367
|
...entry.winner.origin?.file ? {
|
|
338
368
|
sourceFile: entry.winner.origin.file
|
|
369
|
+
} : {},
|
|
370
|
+
...summary ? {
|
|
371
|
+
summary
|
|
372
|
+
} : {}
|
|
373
|
+
});
|
|
374
|
+
}
|
|
375
|
+
if (rule.enum && !enumMatches(actualValue, rule.enum)) {
|
|
376
|
+
issues.push({
|
|
377
|
+
key,
|
|
378
|
+
status: "enum_mismatch",
|
|
379
|
+
value: actualValue,
|
|
380
|
+
...summary ? {
|
|
381
|
+
summary
|
|
382
|
+
} : {}
|
|
383
|
+
});
|
|
384
|
+
}
|
|
385
|
+
if (rule.pattern) {
|
|
386
|
+
if (typeof actualValue !== "string" || !matchesPattern(rule.pattern, actualValue)) {
|
|
387
|
+
issues.push({
|
|
388
|
+
key,
|
|
389
|
+
status: "pattern_mismatch",
|
|
390
|
+
value: actualValue,
|
|
391
|
+
pattern: rule.pattern,
|
|
392
|
+
...summary ? {
|
|
393
|
+
summary
|
|
394
|
+
} : {}
|
|
395
|
+
});
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
if (rule.deprecated) {
|
|
399
|
+
issues.push({
|
|
400
|
+
key,
|
|
401
|
+
status: "deprecated_in_use",
|
|
402
|
+
value: actualValue,
|
|
403
|
+
...summary ? {
|
|
404
|
+
summary
|
|
339
405
|
} : {}
|
|
340
406
|
});
|
|
341
407
|
}
|
|
342
408
|
}
|
|
343
|
-
const
|
|
409
|
+
const undeclaredIssues = Array.from(runtime.graph.entries.values()).filter(
|
|
344
410
|
(entry) => shouldTrackKey(entry.key) && !schema[entry.key] && !isSchemaDefault(entry) && !isTransientRuntimeSource(entry)
|
|
345
|
-
).map((entry) => {
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
}).sort((left, right) => left.key.localeCompare(right.key));
|
|
411
|
+
).map((entry) => ({
|
|
412
|
+
key: entry.key,
|
|
413
|
+
status: "undeclared",
|
|
414
|
+
value: entry.winner.value,
|
|
415
|
+
actualType: describeValueType(entry.winner.value),
|
|
416
|
+
...entry.winner.origin?.file ? {
|
|
417
|
+
sourceFile: entry.winner.origin.file
|
|
418
|
+
} : {}
|
|
419
|
+
})).sort((left, right) => left.key.localeCompare(right.key));
|
|
420
|
+
const allIssues = [...issues, ...undeclaredIssues].sort((left, right) => left.key.localeCompare(right.key));
|
|
356
421
|
return {
|
|
357
422
|
profile: runtime.graph.profile,
|
|
358
423
|
workspace: runtime.graph.workspace.workspaceId,
|
|
424
|
+
summary: buildSummary(allIssues),
|
|
425
|
+
issues: allIssues
|
|
426
|
+
};
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
// src/drift/compareSchemaToGraph.ts
|
|
430
|
+
function compareSchemaToGraph(runtime) {
|
|
431
|
+
const report = compareSpecToGraph(runtime);
|
|
432
|
+
const missing = report.issues.filter((issue) => issue.status === "missing_required").map(
|
|
433
|
+
(issue) => ({
|
|
434
|
+
key: issue.key,
|
|
435
|
+
...issue.expectedType ? {
|
|
436
|
+
expectedType: issue.expectedType
|
|
437
|
+
} : {}
|
|
438
|
+
})
|
|
439
|
+
);
|
|
440
|
+
const undeclared = report.issues.filter((issue) => issue.status === "undeclared").map(
|
|
441
|
+
(issue) => ({
|
|
442
|
+
key: issue.key,
|
|
443
|
+
value: issue.value,
|
|
444
|
+
...issue.actualType ? {
|
|
445
|
+
actualType: issue.actualType
|
|
446
|
+
} : {},
|
|
447
|
+
...issue.sourceFile ? {
|
|
448
|
+
sourceFile: issue.sourceFile
|
|
449
|
+
} : {}
|
|
450
|
+
})
|
|
451
|
+
);
|
|
452
|
+
const mismatches = report.issues.filter((issue) => issue.status === "type_mismatch").map(
|
|
453
|
+
(issue) => ({
|
|
454
|
+
key: issue.key,
|
|
455
|
+
...issue.expectedType ? {
|
|
456
|
+
expectedType: issue.expectedType
|
|
457
|
+
} : {},
|
|
458
|
+
...issue.actualType ? {
|
|
459
|
+
actualType: issue.actualType
|
|
460
|
+
} : {},
|
|
461
|
+
value: issue.value,
|
|
462
|
+
...issue.sourceFile ? {
|
|
463
|
+
sourceFile: issue.sourceFile
|
|
464
|
+
} : {}
|
|
465
|
+
})
|
|
466
|
+
);
|
|
467
|
+
const defaultsApplied = report.issues.filter((issue) => issue.status === "default_applied").map(
|
|
468
|
+
(issue) => ({
|
|
469
|
+
key: issue.key,
|
|
470
|
+
value: issue.value
|
|
471
|
+
})
|
|
472
|
+
);
|
|
473
|
+
return {
|
|
474
|
+
profile: report.profile,
|
|
475
|
+
workspace: report.workspace,
|
|
359
476
|
missing,
|
|
360
477
|
undeclared,
|
|
361
478
|
mismatches,
|
|
@@ -666,6 +783,7 @@ export {
|
|
|
666
783
|
clearAllVaultSessionKeys,
|
|
667
784
|
clearVaultSessionKey,
|
|
668
785
|
compareSchemaToGraph,
|
|
786
|
+
compareSpecToGraph,
|
|
669
787
|
createRemoteRootCacheKey,
|
|
670
788
|
createSecretVault,
|
|
671
789
|
createSecretVaultProvider,
|
|
@@ -165,6 +165,13 @@ function enumMatches(value, allowed) {
|
|
|
165
165
|
const serialized = JSON.stringify(value);
|
|
166
166
|
return allowed.some((candidate) => JSON.stringify(candidate) === serialized);
|
|
167
167
|
}
|
|
168
|
+
function testPattern(pattern, value) {
|
|
169
|
+
try {
|
|
170
|
+
return new RegExp(pattern).test(value);
|
|
171
|
+
} catch {
|
|
172
|
+
return false;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
168
175
|
function applySchemaRules(graph, schema) {
|
|
169
176
|
const nextEntries = new Map(graph.entries);
|
|
170
177
|
const issues = [];
|
|
@@ -231,11 +238,11 @@ function applySchemaRules(graph, schema) {
|
|
|
231
238
|
key,
|
|
232
239
|
message: `Config key ${key} must be a string to match pattern ${rule.pattern}`
|
|
233
240
|
});
|
|
234
|
-
} else if (!
|
|
241
|
+
} else if (!testPattern(rule.pattern, coercedValue)) {
|
|
235
242
|
issues.push({
|
|
236
243
|
code: "schema.pattern",
|
|
237
244
|
key,
|
|
238
|
-
message: `Config key ${key} does not match pattern ${rule.pattern}
|
|
245
|
+
message: `Config key ${key} does not match pattern ${rule.pattern} (or the pattern is invalid).`
|
|
239
246
|
});
|
|
240
247
|
}
|
|
241
248
|
}
|
package/dist/plugin/cli-args.js
CHANGED
package/dist/plugin/dotenv.cjs
CHANGED
|
@@ -186,9 +186,30 @@ var DOTENV_PLUGIN_ID = "@kitsy/cnos/plugins/dotenv";
|
|
|
186
186
|
function parseDoubleQuoted(value) {
|
|
187
187
|
return value.replace(/\\n/g, "\n").replace(/\\r/g, "\r").replace(/\\t/g, " ").replace(/\\"/g, '"').replace(/\\\\/g, "\\");
|
|
188
188
|
}
|
|
189
|
+
function isEscapedCharacter(value, index) {
|
|
190
|
+
let slashCount = 0;
|
|
191
|
+
for (let cursor = index - 1; cursor >= 0 && value[cursor] === "\\"; cursor -= 1) {
|
|
192
|
+
slashCount += 1;
|
|
193
|
+
}
|
|
194
|
+
return slashCount % 2 === 1;
|
|
195
|
+
}
|
|
196
|
+
function findClosingQuote(value, quote) {
|
|
197
|
+
for (let index = 0; index < value.length; index += 1) {
|
|
198
|
+
if (value[index] !== quote) {
|
|
199
|
+
continue;
|
|
200
|
+
}
|
|
201
|
+
if (quote === '"' && isEscapedCharacter(value, index)) {
|
|
202
|
+
continue;
|
|
203
|
+
}
|
|
204
|
+
return index;
|
|
205
|
+
}
|
|
206
|
+
return -1;
|
|
207
|
+
}
|
|
189
208
|
function parseDotenv(document) {
|
|
190
209
|
const parsed = {};
|
|
191
|
-
|
|
210
|
+
const lines = document.split(/\r?\n/);
|
|
211
|
+
for (let lineIndex = 0; lineIndex < lines.length; lineIndex += 1) {
|
|
212
|
+
const rawLine = lines[lineIndex] ?? "";
|
|
192
213
|
const line = rawLine.trim();
|
|
193
214
|
if (!line || line.startsWith("#")) {
|
|
194
215
|
continue;
|
|
@@ -203,10 +224,18 @@ function parseDotenv(document) {
|
|
|
203
224
|
if (!envVar) {
|
|
204
225
|
continue;
|
|
205
226
|
}
|
|
206
|
-
if (value.startsWith('"')
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
227
|
+
if (value.startsWith('"') || value.startsWith("'")) {
|
|
228
|
+
const quote = value.startsWith('"') ? '"' : "'";
|
|
229
|
+
let quotedContent = value.slice(1);
|
|
230
|
+
let closingIndex = findClosingQuote(quotedContent, quote);
|
|
231
|
+
while (closingIndex === -1 && lineIndex < lines.length - 1) {
|
|
232
|
+
lineIndex += 1;
|
|
233
|
+
quotedContent = `${quotedContent}
|
|
234
|
+
${lines[lineIndex] ?? ""}`;
|
|
235
|
+
closingIndex = findClosingQuote(quotedContent, quote);
|
|
236
|
+
}
|
|
237
|
+
const rawQuotedValue = closingIndex === -1 ? quotedContent : quotedContent.slice(0, closingIndex);
|
|
238
|
+
value = quote === '"' ? parseDoubleQuoted(rawQuotedValue) : rawQuotedValue;
|
|
210
239
|
} else {
|
|
211
240
|
value = value.replace(/\s+#.*$/, "").trim();
|
|
212
241
|
}
|
package/dist/plugin/dotenv.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as LoaderPlugin, a as ConfigEntry } from '../core-
|
|
2
|
-
import { E as EnvMappingConfig } from '../envNaming-
|
|
1
|
+
import { L as LoaderPlugin, a as ConfigEntry } from '../core-Ud1o2MBn.cjs';
|
|
2
|
+
import { E as EnvMappingConfig } from '../envNaming-DxxqiGKN.cjs';
|
|
3
3
|
|
|
4
4
|
declare function parseDotenv(document: string): Record<string, string>;
|
|
5
5
|
declare function dotenvEntriesFromObject(values: Record<string, string>, mapping?: EnvMappingConfig, originFile?: string, workspaceId?: string): ConfigEntry[];
|
package/dist/plugin/dotenv.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as LoaderPlugin, a as ConfigEntry } from '../core-
|
|
2
|
-
import { E as EnvMappingConfig } from '../envNaming-
|
|
1
|
+
import { L as LoaderPlugin, a as ConfigEntry } from '../core-Ud1o2MBn.js';
|
|
2
|
+
import { E as EnvMappingConfig } from '../envNaming-CPwXl4I6.js';
|
|
3
3
|
|
|
4
4
|
declare function parseDotenv(document: string): Record<string, string>;
|
|
5
5
|
declare function dotenvEntriesFromObject(values: Record<string, string>, mapping?: EnvMappingConfig, originFile?: string, workspaceId?: string): ConfigEntry[];
|
package/dist/plugin/dotenv.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as ExporterPlugin } from '../core-
|
|
2
|
-
export { t as toEnv, a as toPublicEnv } from '../toPublicEnv-
|
|
1
|
+
import { E as ExporterPlugin } from '../core-Ud1o2MBn.cjs';
|
|
2
|
+
export { t as toEnv, a as toPublicEnv } from '../toPublicEnv-fUZMRUOz.cjs';
|
|
3
3
|
|
|
4
4
|
declare function createEnvExportPlugin(): ExporterPlugin;
|
|
5
5
|
declare function createPublicEnvExportPlugin(): ExporterPlugin;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as ExporterPlugin } from '../core-
|
|
2
|
-
export { t as toEnv, a as toPublicEnv } from '../toPublicEnv-
|
|
1
|
+
import { E as ExporterPlugin } from '../core-Ud1o2MBn.js';
|
|
2
|
+
export { t as toEnv, a as toPublicEnv } from '../toPublicEnv-C9wPSpRo.js';
|
|
3
3
|
|
|
4
4
|
declare function createEnvExportPlugin(): ExporterPlugin;
|
|
5
5
|
declare function createPublicEnvExportPlugin(): ExporterPlugin;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createEnvExportPlugin,
|
|
3
3
|
createPublicEnvExportPlugin
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-RTHKUGJV.js";
|
|
5
5
|
import {
|
|
6
6
|
toEnv,
|
|
7
7
|
toPublicEnv
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-MQ4WG3K6.js";
|
|
9
9
|
export {
|
|
10
10
|
createEnvExportPlugin,
|
|
11
11
|
createPublicEnvExportPlugin,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { L as LoaderPlugin, a as ConfigEntry, W as WorkspaceRoot, m as NamespaceName } from '../core-
|
|
1
|
+
import { L as LoaderPlugin, a as ConfigEntry, W as WorkspaceRoot, m as NamespaceName } from '../core-Ud1o2MBn.cjs';
|
|
2
2
|
|
|
3
3
|
declare function filesystemSecretsReader(filePath: string, document: string, workspaceId?: string): ConfigEntry[];
|
|
4
4
|
declare function createFilesystemSecretsPlugin(): LoaderPlugin;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { L as LoaderPlugin, a as ConfigEntry, W as WorkspaceRoot, m as NamespaceName } from '../core-
|
|
1
|
+
import { L as LoaderPlugin, a as ConfigEntry, W as WorkspaceRoot, m as NamespaceName } from '../core-Ud1o2MBn.js';
|
|
2
2
|
|
|
3
3
|
declare function filesystemSecretsReader(filePath: string, document: string, workspaceId?: string): ConfigEntry[];
|
|
4
4
|
declare function createFilesystemSecretsPlugin(): LoaderPlugin;
|
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
filesystemSecretsReader,
|
|
6
6
|
filesystemValuesReader,
|
|
7
7
|
yamlObjectToEntries
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-ESBHCFC6.js";
|
|
9
|
+
import "../chunk-MQ4WG3K6.js";
|
|
10
10
|
export {
|
|
11
11
|
collectFilesystemLayerFiles,
|
|
12
12
|
createFilesystemSecretsPlugin,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as LoaderPlugin, a as ConfigEntry } from '../core-
|
|
2
|
-
import { E as EnvMappingConfig } from '../envNaming-
|
|
1
|
+
import { L as LoaderPlugin, a as ConfigEntry } from '../core-Ud1o2MBn.cjs';
|
|
2
|
+
import { E as EnvMappingConfig } from '../envNaming-DxxqiGKN.cjs';
|
|
3
3
|
|
|
4
4
|
declare function processEnvEntriesFromObject(env: Record<string, string | undefined>, mapping?: EnvMappingConfig, workspaceId?: string): ConfigEntry[];
|
|
5
5
|
declare function processNamespaceEntriesFromContext(env: Record<string, string | undefined>, workspaceId?: string): ConfigEntry[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as LoaderPlugin, a as ConfigEntry } from '../core-
|
|
2
|
-
import { E as EnvMappingConfig } from '../envNaming-
|
|
1
|
+
import { L as LoaderPlugin, a as ConfigEntry } from '../core-Ud1o2MBn.js';
|
|
2
|
+
import { E as EnvMappingConfig } from '../envNaming-CPwXl4I6.js';
|
|
3
3
|
|
|
4
4
|
declare function processEnvEntriesFromObject(env: Record<string, string | undefined>, mapping?: EnvMappingConfig, workspaceId?: string): ConfigEntry[];
|
|
5
5
|
declare function processNamespaceEntriesFromContext(env: Record<string, string | undefined>, workspaceId?: string): ConfigEntry[];
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
createProcessEnvPlugin,
|
|
3
3
|
processEnvEntriesFromObject,
|
|
4
4
|
processNamespaceEntriesFromContext
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-UGLATJJD.js";
|
|
6
|
+
import "../chunk-MQ4WG3K6.js";
|
|
7
7
|
export {
|
|
8
8
|
createProcessEnvPlugin,
|
|
9
9
|
processEnvEntriesFromObject,
|