@kitsy/cnos 1.9.2 → 1.11.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.
Files changed (61) hide show
  1. package/dist/build/index.cjs +523 -80
  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-6QQPHDUI.js → chunk-2DMCB3PK.js} +1 -1
  6. package/dist/{chunk-LURQ4LAK.js → chunk-5JGNRADB.js} +1 -1
  7. package/dist/{chunk-2JBA2LXU.js → chunk-DPC2BV3S.js} +35 -6
  8. package/dist/{chunk-7JZO6XN3.js → chunk-KJ57PF47.js} +1 -1
  9. package/dist/{chunk-CPGRRZLP.js → chunk-NFGPS7VJ.js} +8 -8
  10. package/dist/{chunk-A2WG3ZKW.js → chunk-NU25VFA2.js} +1 -1
  11. package/dist/{chunk-L7JVECPE.js → chunk-RNTTPI5S.js} +1 -1
  12. package/dist/{chunk-NVFACB64.js → chunk-T3E57MSQ.js} +1 -1
  13. package/dist/{chunk-7KVM5PUW.js → chunk-WPB4HB2K.js} +478 -61
  14. package/dist/{chunk-QK7BMU47.js → chunk-XGK6DXQL.js} +157 -37
  15. package/dist/configure/index.cjs +521 -76
  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-zDTUSVx9.d.cts → core-BW8SLnRx.d.cts} +46 -7
  20. package/dist/{core-zDTUSVx9.d.ts → core-BW8SLnRx.d.ts} +46 -7
  21. package/dist/{envNaming-EFzezmB3.d.cts → envNaming-1rk7BR0e.d.cts} +1 -1
  22. package/dist/{envNaming-BkorOKW_.d.ts → envNaming-CjL28IeH.d.ts} +1 -1
  23. package/dist/index.cjs +672 -108
  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 +378 -54
  28. package/dist/internal.d.cts +32 -4
  29. package/dist/internal.d.ts +32 -4
  30. package/dist/internal.js +141 -23
  31. package/dist/plugin/basic-schema.cjs +13 -3
  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 +40 -8
  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 +672 -108
  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-Ds1DRwCX.d.cts → toPublicEnv-CZzpvhGg.d.cts} +1 -1
  60. package/dist/{toPublicEnv-CT265rzS.d.ts → toPublicEnv-CmydGcxg.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-zDTUSVx9.cjs';
1
+ import { b as LogicalKey, g as CnosRuntime, s as SecretVaultProviderFactory, C as CnosCreateOptions, I as InspectResult } from '../core-BW8SLnRx.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-zDTUSVx9.js';
1
+ import { b as LogicalKey, g as CnosRuntime, s as SecretVaultProviderFactory, C as CnosCreateOptions, I as InspectResult } from '../core-BW8SLnRx.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-QK7BMU47.js";
4
- import "../chunk-NVFACB64.js";
5
- import "../chunk-CPGRRZLP.js";
6
- import "../chunk-LURQ4LAK.js";
7
- import "../chunk-A2WG3ZKW.js";
8
- import "../chunk-L7JVECPE.js";
9
- import "../chunk-6QQPHDUI.js";
10
- import "../chunk-7JZO6XN3.js";
11
- import "../chunk-2JBA2LXU.js";
12
- import "../chunk-7KVM5PUW.js";
3
+ } from "../chunk-XGK6DXQL.js";
4
+ import "../chunk-T3E57MSQ.js";
5
+ import "../chunk-NFGPS7VJ.js";
6
+ import "../chunk-5JGNRADB.js";
7
+ import "../chunk-NU25VFA2.js";
8
+ import "../chunk-RNTTPI5S.js";
9
+ import "../chunk-2DMCB3PK.js";
10
+ import "../chunk-KJ57PF47.js";
11
+ import "../chunk-DPC2BV3S.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-zDTUSVx9.cjs';
1
+ import { R as ResolvedGraph, N as NormalizedManifest, T as ToEnvOptions, c as ToPublicEnvOptions } from './core-BW8SLnRx.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-zDTUSVx9.js';
1
+ import { R as ResolvedGraph, N as NormalizedManifest, T as ToEnvOptions, c as ToPublicEnvOptions } from './core-BW8SLnRx.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.9.2",
3
+ "version": "1.11.0",
4
4
  "description": "Batteries-included CNOS runtime package wired with the official plugins.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",