@kitsy/cnos 1.10.0 → 1.11.1

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.
Files changed (61) hide show
  1. package/dist/build/index.cjs +331 -63
  2. package/dist/build/index.d.cts +1 -1
  3. package/dist/build/index.d.ts +1 -1
  4. package/dist/build/index.js +13 -15
  5. package/dist/{chunk-A5U7EZCJ.js → chunk-2DMCB3PK.js} +1 -1
  6. package/dist/{chunk-RTHKUGJV.js → chunk-5JGNRADB.js} +1 -1
  7. package/dist/{chunk-3EZGPQCE.js → chunk-DPC2BV3S.js} +1 -1
  8. package/dist/{chunk-FHXLOWAB.js → chunk-KJ57PF47.js} +1 -1
  9. package/dist/{chunk-ESBHCFC6.js → chunk-NU25VFA2.js} +1 -1
  10. package/dist/{chunk-UGLATJJD.js → chunk-RNTTPI5S.js} +1 -1
  11. package/dist/{chunk-UKNL2Y4N.js → chunk-T3E57MSQ.js} +1 -1
  12. package/dist/{chunk-CSA4L64V.js → chunk-V3USPV5U.js} +8 -8
  13. package/dist/{chunk-MQ4WG3K6.js → chunk-WPB4HB2K.js} +320 -49
  14. package/dist/{chunk-EIK7OUFP.js → chunk-X4PBPUKL.js} +157 -37
  15. package/dist/configure/index.cjs +329 -59
  16. package/dist/configure/index.d.cts +3 -3
  17. package/dist/configure/index.d.ts +3 -3
  18. package/dist/configure/index.js +8 -8
  19. package/dist/{core-Ud1o2MBn.d.cts → core-CGJObpyy.d.cts} +40 -2
  20. package/dist/{core-Ud1o2MBn.d.ts → core-CGJObpyy.d.ts} +40 -2
  21. package/dist/{envNaming-DxxqiGKN.d.cts → envNaming-DIaBgT6E.d.cts} +1 -1
  22. package/dist/{envNaming-CPwXl4I6.d.ts → envNaming-_WD9sLZI.d.ts} +1 -1
  23. package/dist/index.cjs +480 -91
  24. package/dist/index.d.cts +2 -2
  25. package/dist/index.d.ts +2 -2
  26. package/dist/index.js +10 -10
  27. package/dist/internal.cjs +89 -23
  28. package/dist/internal.d.cts +3 -3
  29. package/dist/internal.d.ts +3 -3
  30. package/dist/internal.js +2 -2
  31. package/dist/plugin/basic-schema.cjs +4 -1
  32. package/dist/plugin/basic-schema.d.cts +1 -1
  33. package/dist/plugin/basic-schema.d.ts +1 -1
  34. package/dist/plugin/basic-schema.js +2 -2
  35. package/dist/plugin/cli-args.cjs +4 -1
  36. package/dist/plugin/cli-args.d.cts +1 -1
  37. package/dist/plugin/cli-args.d.ts +1 -1
  38. package/dist/plugin/cli-args.js +2 -2
  39. package/dist/plugin/dotenv.cjs +6 -3
  40. package/dist/plugin/dotenv.d.cts +2 -2
  41. package/dist/plugin/dotenv.d.ts +2 -2
  42. package/dist/plugin/dotenv.js +2 -2
  43. package/dist/plugin/env-export.cjs +5 -2
  44. package/dist/plugin/env-export.d.cts +2 -2
  45. package/dist/plugin/env-export.d.ts +2 -2
  46. package/dist/plugin/env-export.js +2 -2
  47. package/dist/plugin/filesystem.cjs +13 -10
  48. package/dist/plugin/filesystem.d.cts +1 -1
  49. package/dist/plugin/filesystem.d.ts +1 -1
  50. package/dist/plugin/filesystem.js +2 -2
  51. package/dist/plugin/process-env.cjs +4 -1
  52. package/dist/plugin/process-env.d.cts +2 -2
  53. package/dist/plugin/process-env.d.ts +2 -2
  54. package/dist/plugin/process-env.js +2 -2
  55. package/dist/runtime/index.cjs +480 -91
  56. package/dist/runtime/index.d.cts +13 -6
  57. package/dist/runtime/index.d.ts +13 -6
  58. package/dist/runtime/index.js +10 -10
  59. package/dist/{toPublicEnv-fUZMRUOz.d.cts → toPublicEnv-C3A8aLjo.d.cts} +1 -1
  60. package/dist/{toPublicEnv-C9wPSpRo.d.ts → toPublicEnv-DLNNcEso.d.ts} +1 -1
  61. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { b as LogicalKey, g as CnosRuntime, I as InspectResult } from '../core-Ud1o2MBn.cjs';
1
+ import { b as LogicalKey, g as CnosRuntime, s as SecretVaultProviderFactory, C as CnosCreateOptions, I as InspectResult } from '../core-CGJObpyy.cjs';
2
2
 
3
3
  interface CnosSingleton {
4
4
  <T = unknown>(key: LogicalKey): T | undefined;
@@ -14,11 +14,16 @@ interface CnosSingleton {
14
14
  toPublicEnv(options?: Parameters<CnosRuntime['toPublicEnv']>[0]): ReturnType<CnosRuntime['toPublicEnv']>;
15
15
  format(message: string): string;
16
16
  log(message: string): string;
17
- loadProjection(source: string): Promise<void>;
17
+ loadProjection(source: string, options?: CnosSingletonProjectionOptions): Promise<void>;
18
18
  registerRuntimeProvider(namespace: string, provider: Parameters<CnosRuntime['registerRuntimeProvider']>[1]): void;
19
+ registerSecretVaultProvider(factory: SecretVaultProviderFactory): void;
20
+ registerSecretVaultProviders(factories: SecretVaultProviderFactory[]): void;
19
21
  refreshSecrets(): Promise<void>;
20
22
  refreshSecret(key: LogicalKey): Promise<void>;
21
- ready(): Promise<void>;
23
+ ready(options?: CnosCreateOptions): Promise<void>;
24
+ }
25
+ interface CnosSingletonProjectionOptions {
26
+ secretVaultProviders?: SecretVaultProviderFactory[];
22
27
  }
23
28
  declare const cnos: CnosSingleton & {
24
29
  read<T = unknown>(key: LogicalKey): T | undefined;
@@ -33,11 +38,13 @@ declare const cnos: CnosSingleton & {
33
38
  toPublicEnv(options: Parameters<CnosRuntime["toPublicEnv"]>[0]): Record<string, string>;
34
39
  format(message: string): string;
35
40
  log(message: string): string;
36
- loadProjection(source: string): Promise<void>;
41
+ loadProjection(source: string, options?: CnosSingletonProjectionOptions): Promise<void>;
37
42
  registerRuntimeProvider(namespace: string, provider: Parameters<CnosRuntime["registerRuntimeProvider"]>[1]): void;
43
+ registerSecretVaultProvider(factory: SecretVaultProviderFactory): void;
44
+ registerSecretVaultProviders(factories: SecretVaultProviderFactory[]): void;
38
45
  refreshSecrets(): Promise<void>;
39
46
  refreshSecret(key: LogicalKey): Promise<void>;
40
- ready(): Promise<void>;
47
+ ready(options?: CnosCreateOptions): Promise<void>;
41
48
  };
42
49
 
43
- export { type CnosSingleton, cnos as default };
50
+ export { type CnosSingleton, type CnosSingletonProjectionOptions, cnos as default };
@@ -1,4 +1,4 @@
1
- import { b as LogicalKey, g as CnosRuntime, I as InspectResult } from '../core-Ud1o2MBn.js';
1
+ import { b as LogicalKey, g as CnosRuntime, s as SecretVaultProviderFactory, C as CnosCreateOptions, I as InspectResult } from '../core-CGJObpyy.js';
2
2
 
3
3
  interface CnosSingleton {
4
4
  <T = unknown>(key: LogicalKey): T | undefined;
@@ -14,11 +14,16 @@ interface CnosSingleton {
14
14
  toPublicEnv(options?: Parameters<CnosRuntime['toPublicEnv']>[0]): ReturnType<CnosRuntime['toPublicEnv']>;
15
15
  format(message: string): string;
16
16
  log(message: string): string;
17
- loadProjection(source: string): Promise<void>;
17
+ loadProjection(source: string, options?: CnosSingletonProjectionOptions): Promise<void>;
18
18
  registerRuntimeProvider(namespace: string, provider: Parameters<CnosRuntime['registerRuntimeProvider']>[1]): void;
19
+ registerSecretVaultProvider(factory: SecretVaultProviderFactory): void;
20
+ registerSecretVaultProviders(factories: SecretVaultProviderFactory[]): void;
19
21
  refreshSecrets(): Promise<void>;
20
22
  refreshSecret(key: LogicalKey): Promise<void>;
21
- ready(): Promise<void>;
23
+ ready(options?: CnosCreateOptions): Promise<void>;
24
+ }
25
+ interface CnosSingletonProjectionOptions {
26
+ secretVaultProviders?: SecretVaultProviderFactory[];
22
27
  }
23
28
  declare const cnos: CnosSingleton & {
24
29
  read<T = unknown>(key: LogicalKey): T | undefined;
@@ -33,11 +38,13 @@ declare const cnos: CnosSingleton & {
33
38
  toPublicEnv(options: Parameters<CnosRuntime["toPublicEnv"]>[0]): Record<string, string>;
34
39
  format(message: string): string;
35
40
  log(message: string): string;
36
- loadProjection(source: string): Promise<void>;
41
+ loadProjection(source: string, options?: CnosSingletonProjectionOptions): Promise<void>;
37
42
  registerRuntimeProvider(namespace: string, provider: Parameters<CnosRuntime["registerRuntimeProvider"]>[1]): void;
43
+ registerSecretVaultProvider(factory: SecretVaultProviderFactory): void;
44
+ registerSecretVaultProviders(factories: SecretVaultProviderFactory[]): void;
38
45
  refreshSecrets(): Promise<void>;
39
46
  refreshSecret(key: LogicalKey): Promise<void>;
40
- ready(): Promise<void>;
47
+ ready(options?: CnosCreateOptions): Promise<void>;
41
48
  };
42
49
 
43
- export { type CnosSingleton, cnos as default };
50
+ export { type CnosSingleton, type CnosSingletonProjectionOptions, cnos as default };
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  runtime_default
3
- } from "../chunk-EIK7OUFP.js";
4
- import "../chunk-UKNL2Y4N.js";
5
- import "../chunk-CSA4L64V.js";
6
- import "../chunk-3EZGPQCE.js";
7
- import "../chunk-RTHKUGJV.js";
8
- import "../chunk-ESBHCFC6.js";
9
- import "../chunk-UGLATJJD.js";
10
- import "../chunk-A5U7EZCJ.js";
11
- import "../chunk-FHXLOWAB.js";
12
- import "../chunk-MQ4WG3K6.js";
3
+ } from "../chunk-X4PBPUKL.js";
4
+ import "../chunk-T3E57MSQ.js";
5
+ import "../chunk-V3USPV5U.js";
6
+ import "../chunk-DPC2BV3S.js";
7
+ import "../chunk-5JGNRADB.js";
8
+ import "../chunk-NU25VFA2.js";
9
+ import "../chunk-RNTTPI5S.js";
10
+ import "../chunk-2DMCB3PK.js";
11
+ import "../chunk-KJ57PF47.js";
12
+ import "../chunk-WPB4HB2K.js";
13
13
  export {
14
14
  runtime_default as default
15
15
  };
@@ -1,4 +1,4 @@
1
- import { R as ResolvedGraph, N as NormalizedManifest, T as ToEnvOptions, c as ToPublicEnvOptions } from './core-Ud1o2MBn.cjs';
1
+ import { R as ResolvedGraph, N as NormalizedManifest, T as ToEnvOptions, c as ToPublicEnvOptions } from './core-CGJObpyy.cjs';
2
2
 
3
3
  declare function toEnv(graph: ResolvedGraph, manifest: NormalizedManifest, options?: ToEnvOptions, helpers?: {
4
4
  read?: (key: string) => unknown;
@@ -1,4 +1,4 @@
1
- import { R as ResolvedGraph, N as NormalizedManifest, T as ToEnvOptions, c as ToPublicEnvOptions } from './core-Ud1o2MBn.js';
1
+ import { R as ResolvedGraph, N as NormalizedManifest, T as ToEnvOptions, c as ToPublicEnvOptions } from './core-CGJObpyy.js';
2
2
 
3
3
  declare function toEnv(graph: ResolvedGraph, manifest: NormalizedManifest, options?: ToEnvOptions, helpers?: {
4
4
  read?: (key: string) => unknown;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitsy/cnos",
3
- "version": "1.10.0",
3
+ "version": "1.11.1",
4
4
  "description": "Batteries-included CNOS runtime package wired with the official plugins.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",