@intentius/chant-lexicon-k3s 0.101.0 → 0.104.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;AAmBnF;;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;AAmBnF;;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,8 +1,8 @@
1
- export declare const Agent: new (props: Record<string, unknown>, attributes?: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, string>;
2
- export declare const Registries: new (props: Record<string, unknown>, attributes?: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, string>;
3
- export declare const Server: new (props: Record<string, unknown>, attributes?: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, string>;
4
- export declare const Mirror: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
5
- export declare const RegistryAuth: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
6
- export declare const RegistryConfig: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
7
- export declare const RegistryTLS: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
1
+ export declare const Agent: new (props: Record<string, unknown>, attributes?: Record<string, unknown>) => import("@intentius/chant").Declarable & Record<string, string>;
2
+ export declare const Registries: new (props: Record<string, unknown>, attributes?: Record<string, unknown>) => import("@intentius/chant").Declarable & Record<string, string>;
3
+ export declare const Server: new (props: Record<string, unknown>, attributes?: Record<string, unknown>) => import("@intentius/chant").Declarable & Record<string, string>;
4
+ export declare const Mirror: new (props: Record<string, unknown>) => import("@intentius/chant").Declarable & Record<string, unknown>;
5
+ export declare const RegistryAuth: new (props: Record<string, unknown>) => import("@intentius/chant").Declarable & Record<string, unknown>;
6
+ export declare const RegistryConfig: new (props: Record<string, unknown>) => import("@intentius/chant").Declarable & Record<string, unknown>;
7
+ export declare const RegistryTLS: new (props: Record<string, unknown>) => import("@intentius/chant").Declarable & Record<string, unknown>;
8
8
  //# 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,KAAK,+IAA0C,CAAC;AAC7D,eAAO,MAAM,UAAU,+IAA+C,CAAC;AACvE,eAAO,MAAM,MAAM,+IAA2C,CAAC;AAE/D,eAAO,MAAM,MAAM,0GAAuC,CAAC;AAC3D,eAAO,MAAM,YAAY,0GAA6C,CAAC;AACvE,eAAO,MAAM,cAAc,0GAA+C,CAAC;AAC3E,eAAO,MAAM,WAAW,0GAA4C,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK,8IAA0C,CAAC;AAC7D,eAAO,MAAM,UAAU,8IAA+C,CAAC;AACvE,eAAO,MAAM,MAAM,8IAA2C,CAAC;AAE/D,eAAO,MAAM,MAAM,yGAAuC,CAAC;AAC3D,eAAO,MAAM,YAAY,yGAA6C,CAAC;AACvE,eAAO,MAAM,cAAc,yGAA+C,CAAC;AAC3E,eAAO,MAAM,WAAW,yGAA4C,CAAC"}
@@ -1 +1 @@
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,cAAc,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAElF,kFAAkF;AAClF,KAAK,QAAQ,GAAG;IAAE,OAAO,CAAC,EAAE,YAAY,CAAC,SAAS,CAAC,CAAC;IAAC,EAAE,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEnE;;;;;GAKG;AACH,eAAO,MAAM,UAAU,GACrB,MAAM,OAAO,EACb,MAAM,YAAY,CAAC,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC,GAAG,QAAQ,KAC1D,iBAGF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,YAAY,GACvB,MAAM,OAAO,EACb,OAAO,YAAY,CAAC,IAAI,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC,GAAG,QAAQ,KAC7D,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,cAAc,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAElF,kFAAkF;AAClF,KAAK,QAAQ,GAAG;IAAE,OAAO,CAAC,EAAE,YAAY,CAAC,SAAS,CAAC,CAAC;IAAC,EAAE,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEnE;;;;;GAKG;AACH,eAAO,MAAM,UAAU,SACf,OAAO,QACP,YAAY,CAAC,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC,GAAG,QAAQ,KAC1D,iBAGF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,YAAY,SACjB,OAAO,SACN,YAAY,CAAC,IAAI,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC,GAAG,QAAQ,KAC7D,iBAGF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intentius/chant-lexicon-k3s",
3
- "version": "0.101.0",
3
+ "version": "0.104.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
  },
@@ -50,7 +50,7 @@
50
50
  "access": "public"
51
51
  },
52
52
  "peerDependencies": {
53
- "@intentius/chant": "^0.101.0",
53
+ "@intentius/chant": "^0.104.0",
54
54
  "typescript": "^5.9.3"
55
55
  },
56
56
  "description": "k3s lexicon for chant — the k3s distro's host configuration as declarable data",
package/src/serializer.ts CHANGED
@@ -35,7 +35,7 @@ import { isResourceDeclarable } from "@intentius/chant/declarable";
35
35
  import type { Serializer, SerializerResult, SerializeContext } from "@intentius/chant/serializer";
36
36
  import type { LexiconOutput } from "@intentius/chant/lexicon-output";
37
37
  import { walkValue, type SerializerVisitor } from "@intentius/chant/serializer-walker";
38
- import { emitYAML } from "@intentius/chant/yaml";
38
+ import { emitYAMLEntry } from "@intentius/chant/yaml";
39
39
  import { ownershipEntries, LABEL_OWNERSHIP_KEYS } from "@intentius/chant/ownership";
40
40
 
41
41
  export const SERVER_TYPE = "K3s::Server";
@@ -139,7 +139,7 @@ function emitDocument(doc: Record<string, unknown>): string {
139
139
  if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
140
140
  sections.push(`${key}: ${scalar(value)}`);
141
141
  } else {
142
- sections.push(`${key}:` + emitYAML(value, 1));
142
+ sections.push(emitYAMLEntry(key, value));
143
143
  }
144
144
  }
145
145
  return sections.join("\n") + "\n";