@kitsy/cnos 0.0.1 → 1.0.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 (47) hide show
  1. package/README.md +3 -1
  2. package/dist/chunk-BSETFXI3.js +23 -0
  3. package/dist/chunk-BSOPGV7G.js +49 -0
  4. package/dist/chunk-D7AYK7X5.js +8899 -0
  5. package/dist/chunk-I6QXNQEF.js +202 -0
  6. package/dist/chunk-QNGS4HFP.js +109 -0
  7. package/dist/chunk-TYA4BNYT.js +83 -0
  8. package/dist/chunk-V4LCFDBY.js +35 -0
  9. package/dist/envNaming-BrOk5ndZ.d.cts +8 -0
  10. package/dist/envNaming-DCaNdnrF.d.ts +8 -0
  11. package/dist/index.cjs +9244 -28
  12. package/dist/index.d.cts +7 -3
  13. package/dist/index.d.ts +7 -3
  14. package/dist/index.js +109 -23
  15. package/dist/internal.cjs +7593 -0
  16. package/dist/internal.d.cts +20 -0
  17. package/dist/internal.d.ts +20 -0
  18. package/dist/internal.js +18 -0
  19. package/dist/plugin/basic-schema.cjs +7519 -3
  20. package/dist/plugin/basic-schema.d.cts +5 -6
  21. package/dist/plugin/basic-schema.d.ts +5 -6
  22. package/dist/plugin/basic-schema.js +7 -2
  23. package/dist/plugin/cli-args.cjs +7437 -3
  24. package/dist/plugin/cli-args.d.cts +12 -1
  25. package/dist/plugin/cli-args.d.ts +12 -1
  26. package/dist/plugin/cli-args.js +11 -2
  27. package/dist/plugin/dotenv.cjs +7517 -3
  28. package/dist/plugin/dotenv.d.cts +8 -1
  29. package/dist/plugin/dotenv.d.ts +8 -1
  30. package/dist/plugin/dotenv.js +11 -2
  31. package/dist/plugin/env-export.cjs +7527 -3
  32. package/dist/plugin/env-export.d.cts +7 -1
  33. package/dist/plugin/env-export.d.ts +7 -1
  34. package/dist/plugin/env-export.js +14 -2
  35. package/dist/plugin/filesystem.cjs +7625 -3
  36. package/dist/plugin/filesystem.d.cts +17 -1
  37. package/dist/plugin/filesystem.d.ts +17 -1
  38. package/dist/plugin/filesystem.js +17 -2
  39. package/dist/plugin/process-env.cjs +7431 -3
  40. package/dist/plugin/process-env.d.cts +7 -1
  41. package/dist/plugin/process-env.d.ts +7 -1
  42. package/dist/plugin/process-env.js +9 -2
  43. package/dist/plugin-BVNEHj19.d.cts +309 -0
  44. package/dist/plugin-BVNEHj19.d.ts +309 -0
  45. package/dist/toPublicEnv-Dd152fFy.d.cts +7 -0
  46. package/dist/toPublicEnv-Gwz3xTK0.d.ts +7 -0
  47. package/package.json +14 -18
@@ -0,0 +1,20 @@
1
+ import { d as CnosRuntime, V as ValidationSummary } from './plugin-BVNEHj19.cjs';
2
+ export { i as ValidationIssue, W as WorkspaceFile } from './plugin-BVNEHj19.cjs';
3
+
4
+ declare function flattenObject(value: Record<string, unknown>, prefix?: string): Record<string, unknown>;
5
+
6
+ declare function resolveConfigDocumentPath(workspaceRoot: string, namespace: 'value' | 'secret', configPath: string, profile?: string): string;
7
+
8
+ interface SecretReference {
9
+ provider: string;
10
+ ref: string;
11
+ }
12
+ declare function resolveSecretStoreRoot(processEnv?: Record<string, string | undefined>): string;
13
+ declare function writeLocalSecret(storeRoot: string, ref: string, value: string, passphrase: string): Promise<string>;
14
+
15
+ declare function parseYaml<T>(source: string): T;
16
+ declare function stringifyYaml(value: unknown): string;
17
+
18
+ declare function validateRuntime(runtime: CnosRuntime): Promise<ValidationSummary>;
19
+
20
+ export { type SecretReference, ValidationSummary, flattenObject, parseYaml, resolveConfigDocumentPath, resolveSecretStoreRoot, stringifyYaml, validateRuntime, writeLocalSecret };
@@ -0,0 +1,20 @@
1
+ import { d as CnosRuntime, V as ValidationSummary } from './plugin-BVNEHj19.js';
2
+ export { i as ValidationIssue, W as WorkspaceFile } from './plugin-BVNEHj19.js';
3
+
4
+ declare function flattenObject(value: Record<string, unknown>, prefix?: string): Record<string, unknown>;
5
+
6
+ declare function resolveConfigDocumentPath(workspaceRoot: string, namespace: 'value' | 'secret', configPath: string, profile?: string): string;
7
+
8
+ interface SecretReference {
9
+ provider: string;
10
+ ref: string;
11
+ }
12
+ declare function resolveSecretStoreRoot(processEnv?: Record<string, string | undefined>): string;
13
+ declare function writeLocalSecret(storeRoot: string, ref: string, value: string, passphrase: string): Promise<string>;
14
+
15
+ declare function parseYaml<T>(source: string): T;
16
+ declare function stringifyYaml(value: unknown): string;
17
+
18
+ declare function validateRuntime(runtime: CnosRuntime): Promise<ValidationSummary>;
19
+
20
+ export { type SecretReference, ValidationSummary, flattenObject, parseYaml, resolveConfigDocumentPath, resolveSecretStoreRoot, stringifyYaml, validateRuntime, writeLocalSecret };
@@ -0,0 +1,18 @@
1
+ import {
2
+ flattenObject,
3
+ parseYaml,
4
+ resolveConfigDocumentPath,
5
+ resolveSecretStoreRoot,
6
+ stringifyYaml,
7
+ validateRuntime,
8
+ writeLocalSecret
9
+ } from "./chunk-D7AYK7X5.js";
10
+ export {
11
+ flattenObject,
12
+ parseYaml,
13
+ resolveConfigDocumentPath,
14
+ resolveSecretStoreRoot,
15
+ stringifyYaml,
16
+ validateRuntime,
17
+ writeLocalSecret
18
+ };