@intentius/chant-lexicon-k3d 0.101.0 → 0.102.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.
@@ -1 +1 @@
1
- {"version":3,"file":"naming.d.ts","sourceRoot":"","sources":["../../src/codegen/naming.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,cAAc,IAAI,kBAAkB,EAGrC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAgC,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC;AAE5E,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAiCnF;;GAEG;AACH,qBAAa,cAAe,SAAQ,kBAAkB;gBACxC,OAAO,EAAE,cAAc,EAAE;CAOtC"}
1
+ {"version":3,"file":"naming.d.ts","sourceRoot":"","sources":["../../src/codegen/naming.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,cAAc,IAAI,kBAAkB,EAGrC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAgC,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC;AAE5E,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAiCnF;;GAEG;AACH,qBAAa,cAAe,SAAQ,kBAAkB;IACpD,YAAY,OAAO,EAAE,cAAc,EAAE,EAMpC;CACF"}
@@ -5,7 +5,7 @@ export declare function packageLexicon(options?: {
5
5
  verbose?: boolean;
6
6
  force?: boolean;
7
7
  }): Promise<{
8
- spec: import("packages/core/src").BundleSpec;
8
+ spec: import("@intentius/chant").BundleSpec;
9
9
  stats: {
10
10
  resources: number;
11
11
  properties: number;
@@ -1,22 +1,22 @@
1
- export declare const Cluster: new (props: Record<string, unknown>, attributes?: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, string>;
2
- export declare const EnvVar: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
3
- export declare const File: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
4
- export declare const HostAlias: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
5
- export declare const K3dOptions: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
6
- export declare const K3sExtraArg: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
7
- export declare const K3sOptions: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
8
- export declare const KubeAPI: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
9
- export declare const KubeconfigOptions: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
10
- export declare const LoadbalancerOptions: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
11
- export declare const Metadata: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
12
- export declare const NodeLabel: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
13
- export declare const Options: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
14
- export declare const Port: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
15
- export declare const Registries: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
16
- export declare const RegistryCreate: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
17
- export declare const RegistryProxy: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
18
- export declare const RuntimeLabel: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
19
- export declare const RuntimeOptions: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
20
- export declare const Ulimit: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
21
- export declare const Volume: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
1
+ export declare const Cluster: new (props: Record<string, unknown>, attributes?: Record<string, unknown>) => import("@intentius/chant").Declarable & Record<string, string>;
2
+ export declare const EnvVar: new (props: Record<string, unknown>) => import("@intentius/chant").Declarable & Record<string, unknown>;
3
+ export declare const File: new (props: Record<string, unknown>) => import("@intentius/chant").Declarable & Record<string, unknown>;
4
+ export declare const HostAlias: new (props: Record<string, unknown>) => import("@intentius/chant").Declarable & Record<string, unknown>;
5
+ export declare const K3dOptions: new (props: Record<string, unknown>) => import("@intentius/chant").Declarable & Record<string, unknown>;
6
+ export declare const K3sExtraArg: new (props: Record<string, unknown>) => import("@intentius/chant").Declarable & Record<string, unknown>;
7
+ export declare const K3sOptions: new (props: Record<string, unknown>) => import("@intentius/chant").Declarable & Record<string, unknown>;
8
+ export declare const KubeAPI: new (props: Record<string, unknown>) => import("@intentius/chant").Declarable & Record<string, unknown>;
9
+ export declare const KubeconfigOptions: new (props: Record<string, unknown>) => import("@intentius/chant").Declarable & Record<string, unknown>;
10
+ export declare const LoadbalancerOptions: new (props: Record<string, unknown>) => import("@intentius/chant").Declarable & Record<string, unknown>;
11
+ export declare const Metadata: new (props: Record<string, unknown>) => import("@intentius/chant").Declarable & Record<string, unknown>;
12
+ export declare const NodeLabel: new (props: Record<string, unknown>) => import("@intentius/chant").Declarable & Record<string, unknown>;
13
+ export declare const Options: new (props: Record<string, unknown>) => import("@intentius/chant").Declarable & Record<string, unknown>;
14
+ export declare const Port: new (props: Record<string, unknown>) => import("@intentius/chant").Declarable & Record<string, unknown>;
15
+ export declare const Registries: new (props: Record<string, unknown>) => import("@intentius/chant").Declarable & Record<string, unknown>;
16
+ export declare const RegistryCreate: new (props: Record<string, unknown>) => import("@intentius/chant").Declarable & Record<string, unknown>;
17
+ export declare const RegistryProxy: new (props: Record<string, unknown>) => import("@intentius/chant").Declarable & Record<string, unknown>;
18
+ export declare const RuntimeLabel: new (props: Record<string, unknown>) => import("@intentius/chant").Declarable & Record<string, unknown>;
19
+ export declare const RuntimeOptions: new (props: Record<string, unknown>) => import("@intentius/chant").Declarable & Record<string, unknown>;
20
+ export declare const Ulimit: new (props: Record<string, unknown>) => import("@intentius/chant").Declarable & Record<string, unknown>;
21
+ export declare const Volume: new (props: Record<string, unknown>) => import("@intentius/chant").Declarable & Record<string, unknown>;
22
22
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,+IAA4C,CAAC;AAEjE,eAAO,MAAM,MAAM,0GAAuC,CAAC;AAC3D,eAAO,MAAM,IAAI,0GAAqC,CAAC;AACvD,eAAO,MAAM,SAAS,0GAA0C,CAAC;AACjE,eAAO,MAAM,UAAU,0GAA2C,CAAC;AACnE,eAAO,MAAM,WAAW,0GAA4C,CAAC;AACrE,eAAO,MAAM,UAAU,0GAA2C,CAAC;AACnE,eAAO,MAAM,OAAO,0GAAwC,CAAC;AAC7D,eAAO,MAAM,iBAAiB,0GAAkD,CAAC;AACjF,eAAO,MAAM,mBAAmB,0GAAoD,CAAC;AACrF,eAAO,MAAM,QAAQ,0GAAyC,CAAC;AAC/D,eAAO,MAAM,SAAS,0GAA0C,CAAC;AACjE,eAAO,MAAM,OAAO,0GAAwC,CAAC;AAC7D,eAAO,MAAM,IAAI,0GAAqC,CAAC;AACvD,eAAO,MAAM,UAAU,0GAA2C,CAAC;AACnE,eAAO,MAAM,cAAc,0GAA+C,CAAC;AAC3E,eAAO,MAAM,aAAa,0GAA8C,CAAC;AACzE,eAAO,MAAM,YAAY,0GAA6C,CAAC;AACvE,eAAO,MAAM,cAAc,0GAA+C,CAAC;AAC3E,eAAO,MAAM,MAAM,0GAAuC,CAAC;AAC3D,eAAO,MAAM,MAAM,0GAAuC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,8IAA4C,CAAC;AAEjE,eAAO,MAAM,MAA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MAAM,EACZ,OAAO,YAAY,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,GAAG,QAAQ,KACtD,iBAGF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,OAAO,GAClB,MAAM,MAAM,EACZ,OAAO,YAAY,CAAC,IAAI,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC,GAAG,QAAQ,KACxD,iBAGF,CAAC"}
1
+ {"version":3,"file":"builders.d.ts","sourceRoot":"","sources":["../../src/op/builders.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAGL,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,YAAY,EAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/D,kFAAkF;AAClF,KAAK,QAAQ,GAAG;IAAE,OAAO,CAAC,EAAE,YAAY,CAAC,SAAS,CAAC,CAAC;IAAC,EAAE,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEnE;;;;GAIG;AACH,eAAO,MAAM,KAAK,SACV,MAAM,SACL,YAAY,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,GAAG,QAAQ,KACtD,iBAGF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,OAAO,SACZ,MAAM,SACL,YAAY,CAAC,IAAI,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC,GAAG,QAAQ,KACxD,iBAGF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intentius/chant-lexicon-k3d",
3
- "version": "0.101.0",
3
+ "version": "0.102.0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src/",
@@ -35,7 +35,7 @@
35
35
  "generate": "npx tsx src/codegen/generate-cli.ts",
36
36
  "validate": "npx tsx src/validate-cli.ts",
37
37
  "docs": "npx tsx src/codegen/docs-cli.ts",
38
- "build": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json && find dist -type f \\( -name \"*.js\" -o -name \"*.js.map\" \\) -delete",
38
+ "build": "../../scripts/tsc7.sh -p tsconfig.build.json && tsc-alias -p tsconfig.build.json && find dist -type f \\( -name \"*.js\" -o -name \"*.js.map\" \\) -delete",
39
39
  "prepack": "npm run generate && npm run bundle && npm run validate && npm run build",
40
40
  "bundle": "tsx src/package-cli.ts"
41
41
  },
@@ -52,7 +52,7 @@
52
52
  "access": "public"
53
53
  },
54
54
  "peerDependencies": {
55
- "@intentius/chant": "^0.101.0",
55
+ "@intentius/chant": "^0.102.0",
56
56
  "typescript": "^5.9.3"
57
57
  },
58
58
  "description": "k3d lexicon for chant — a local Kubernetes cluster as declarable data",
package/src/serializer.ts CHANGED
@@ -36,7 +36,7 @@ import { isResourceDeclarable } from "@intentius/chant/declarable";
36
36
  import type { Serializer, SerializerResult, SerializeContext } from "@intentius/chant/serializer";
37
37
  import type { LexiconOutput } from "@intentius/chant/lexicon-output";
38
38
  import { walkValue, type SerializerVisitor } from "@intentius/chant/serializer-walker";
39
- import { emitYAML } from "@intentius/chant/yaml";
39
+ import { emitYAMLEntry } from "@intentius/chant/yaml";
40
40
  import { ownershipEntries, LABEL_OWNERSHIP_KEYS } from "@intentius/chant/ownership";
41
41
 
42
42
  const CLUSTER_TYPE = "K3d::Cluster";
@@ -160,7 +160,7 @@ function emitDocument(doc: Record<string, unknown>): string {
160
160
  if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
161
161
  sections.push(`${key}: ${scalar(value)}`);
162
162
  } else {
163
- sections.push(`${key}:` + emitYAML(value, 1));
163
+ sections.push(emitYAMLEntry(key, value));
164
164
  }
165
165
  }
166
166
  return sections.join("\n") + "\n";