@cef-ai/cli 0.2.7 → 0.4.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 (153) hide show
  1. package/README.md +75 -1247
  2. package/dist/build/duration.d.ts +22 -0
  3. package/dist/build/duration.d.ts.map +1 -0
  4. package/dist/build/duration.js +44 -0
  5. package/dist/build/duration.js.map +1 -0
  6. package/dist/build/esbuild-plugin.d.ts +32 -0
  7. package/dist/build/esbuild-plugin.d.ts.map +1 -0
  8. package/dist/build/esbuild-plugin.js +53 -0
  9. package/dist/build/esbuild-plugin.js.map +1 -0
  10. package/dist/build/lints.d.ts +55 -0
  11. package/dist/build/lints.d.ts.map +1 -0
  12. package/dist/build/lints.js +214 -0
  13. package/dist/build/lints.js.map +1 -0
  14. package/dist/build/load-config.d.ts +114 -0
  15. package/dist/build/load-config.d.ts.map +1 -0
  16. package/dist/build/load-config.js +150 -0
  17. package/dist/build/load-config.js.map +1 -0
  18. package/dist/build/manifest.d.ts +156 -0
  19. package/dist/build/manifest.d.ts.map +1 -0
  20. package/dist/build/manifest.js +111 -0
  21. package/dist/build/manifest.js.map +1 -0
  22. package/dist/build/targeting.d.ts +15 -0
  23. package/dist/build/targeting.d.ts.map +1 -0
  24. package/dist/build/targeting.js +69 -0
  25. package/dist/build/targeting.js.map +1 -0
  26. package/dist/cli-program.d.ts +14 -0
  27. package/dist/cli-program.d.ts.map +1 -0
  28. package/dist/cli-program.js +171 -0
  29. package/dist/cli-program.js.map +1 -0
  30. package/dist/cli.d.ts +2 -2
  31. package/dist/cli.d.ts.map +1 -0
  32. package/dist/cli.js +25 -65
  33. package/dist/cli.js.map +1 -0
  34. package/dist/commands/build.d.ts +41 -0
  35. package/dist/commands/build.d.ts.map +1 -0
  36. package/dist/commands/build.js +252 -0
  37. package/dist/commands/build.js.map +1 -0
  38. package/dist/commands/inspect.d.ts +49 -0
  39. package/dist/commands/inspect.d.ts.map +1 -0
  40. package/dist/commands/inspect.js +135 -0
  41. package/dist/commands/inspect.js.map +1 -0
  42. package/dist/commands/keypair.d.ts +21 -0
  43. package/dist/commands/keypair.d.ts.map +1 -0
  44. package/dist/commands/keypair.js +91 -0
  45. package/dist/commands/keypair.js.map +1 -0
  46. package/dist/commands/publish.d.ts +40 -0
  47. package/dist/commands/publish.d.ts.map +1 -0
  48. package/dist/commands/publish.js +187 -0
  49. package/dist/commands/publish.js.map +1 -0
  50. package/dist/commands/typegen.d.ts +36 -0
  51. package/dist/commands/typegen.d.ts.map +1 -0
  52. package/dist/commands/typegen.js +210 -0
  53. package/dist/commands/typegen.js.map +1 -0
  54. package/dist/index.d.ts +6 -0
  55. package/dist/index.d.ts.map +1 -0
  56. package/dist/index.js +6 -0
  57. package/dist/index.js.map +1 -0
  58. package/dist/lib/cid.d.ts +3 -0
  59. package/dist/lib/cid.d.ts.map +1 -0
  60. package/dist/lib/cid.js +43 -0
  61. package/dist/lib/cid.js.map +1 -0
  62. package/dist/lib/credentials.d.ts +40 -16
  63. package/dist/lib/credentials.d.ts.map +1 -0
  64. package/dist/lib/credentials.js +222 -49
  65. package/dist/lib/credentials.js.map +1 -0
  66. package/dist/lib/jcs.d.ts +3 -0
  67. package/dist/lib/jcs.d.ts.map +1 -0
  68. package/dist/lib/jcs.js +48 -0
  69. package/dist/lib/jcs.js.map +1 -0
  70. package/dist/lib/signing.d.ts +13 -0
  71. package/dist/lib/signing.d.ts.map +1 -0
  72. package/dist/lib/signing.js +34 -0
  73. package/dist/lib/signing.js.map +1 -0
  74. package/dist/lib.d.ts +18 -0
  75. package/dist/lib.d.ts.map +1 -0
  76. package/dist/lib.js +12 -0
  77. package/dist/lib.js.map +1 -0
  78. package/dist/typegen/augment.d.ts +57 -0
  79. package/dist/typegen/augment.d.ts.map +1 -0
  80. package/dist/typegen/augment.js +87 -0
  81. package/dist/typegen/augment.js.map +1 -0
  82. package/dist/typegen/fetch.d.ts +30 -0
  83. package/dist/typegen/fetch.d.ts.map +1 -0
  84. package/dist/typegen/fetch.js +38 -0
  85. package/dist/typegen/fetch.js.map +1 -0
  86. package/dist/typegen/lockfile.d.ts +42 -0
  87. package/dist/typegen/lockfile.d.ts.map +1 -0
  88. package/dist/typegen/lockfile.js +58 -0
  89. package/dist/typegen/lockfile.js.map +1 -0
  90. package/dist/typegen/schema-to-ts.d.ts +21 -0
  91. package/dist/typegen/schema-to-ts.d.ts.map +1 -0
  92. package/dist/typegen/schema-to-ts.js +29 -0
  93. package/dist/typegen/schema-to-ts.js.map +1 -0
  94. package/package.json +23 -58
  95. package/dist/commands/auth/index.d.ts +0 -2
  96. package/dist/commands/auth/index.js +0 -162
  97. package/dist/commands/deploy/clone.d.ts +0 -13
  98. package/dist/commands/deploy/clone.js +0 -143
  99. package/dist/commands/deploy/delete.d.ts +0 -14
  100. package/dist/commands/deploy/delete.js +0 -134
  101. package/dist/commands/deploy/deploy.d.ts +0 -24
  102. package/dist/commands/deploy/deploy.js +0 -654
  103. package/dist/commands/deploy/index.d.ts +0 -2
  104. package/dist/commands/deploy/index.js +0 -216
  105. package/dist/commands/deploy/status.d.ts +0 -14
  106. package/dist/commands/deploy/status.js +0 -61
  107. package/dist/commands/dev/index.d.ts +0 -2
  108. package/dist/commands/dev/index.js +0 -134
  109. package/dist/commands/dev/server.d.ts +0 -14
  110. package/dist/commands/dev/server.js +0 -195
  111. package/dist/commands/dev/static/app.js +0 -633
  112. package/dist/commands/dev/static/index.html +0 -205
  113. package/dist/commands/dev/static/static/app.js +0 -633
  114. package/dist/commands/dev/static/static/index.html +0 -205
  115. package/dist/commands/dev/static/static/style.css +0 -184
  116. package/dist/commands/dev/static/style.css +0 -184
  117. package/dist/commands/playground/index.d.ts +0 -2
  118. package/dist/commands/playground/index.js +0 -75
  119. package/dist/commands/playground/test.d.ts +0 -15
  120. package/dist/commands/playground/test.js +0 -166
  121. package/dist/commands/service/index.d.ts +0 -2
  122. package/dist/commands/service/index.js +0 -89
  123. package/dist/lib/api.d.ts +0 -146
  124. package/dist/lib/api.js +0 -330
  125. package/dist/lib/config.d.ts +0 -12
  126. package/dist/lib/config.js +0 -145
  127. package/dist/lib/runtime/agent-router.d.ts +0 -12
  128. package/dist/lib/runtime/agent-router.js +0 -67
  129. package/dist/lib/runtime/context-builder.d.ts +0 -27
  130. package/dist/lib/runtime/context-builder.js +0 -166
  131. package/dist/lib/runtime/cubby-manager.d.ts +0 -20
  132. package/dist/lib/runtime/cubby-manager.js +0 -162
  133. package/dist/lib/runtime/index.d.ts +0 -51
  134. package/dist/lib/runtime/index.js +0 -181
  135. package/dist/lib/runtime/log-collector.d.ts +0 -17
  136. package/dist/lib/runtime/log-collector.js +0 -61
  137. package/dist/lib/runtime/stream-manager.d.ts +0 -10
  138. package/dist/lib/runtime/stream-manager.js +0 -77
  139. package/dist/lib/runtime/types.d.ts +0 -76
  140. package/dist/lib/runtime/types.js +0 -2
  141. package/dist/lib/transpile.d.ts +0 -1
  142. package/dist/lib/transpile.js +0 -9
  143. package/dist/lib/typecheck.d.ts +0 -31
  144. package/dist/lib/typecheck.js +0 -175
  145. package/dist/lib/types.d.ts +0 -246
  146. package/dist/lib/types.js +0 -2
  147. package/dist/lib/utils.d.ts +0 -4
  148. package/dist/lib/utils.js +0 -33
  149. package/example/.env.example +0 -6
  150. package/example/agents/object-detection/tasks/yolo.ts +0 -28
  151. package/example/agents/parking-violation-detector/tasks/detect.ts +0 -326
  152. package/example/cef.config.yaml +0 -91
  153. package/example/engagements/engagement.ts +0 -902
@@ -0,0 +1 @@
1
+ {"version":3,"file":"credentials.js","sourceRoot":"","sources":["../../src/lib/credentials.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAClC,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AA+B7B,MAAM,OAAO,gBAAiB,SAAQ,KAAK;IACzC,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,C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U,CAAC,CAAC;QAC3C,MAAM,OAAO,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC;QACpC,IAAI,OAAO,IAAI,OAAO,CAAC,MAAM,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;YACjD,OAAO;gBACL,MAAM,EAAE,eAAe,CACrB,OAAO,CAAC,MAAM,EACd,GAAG,cAAc,KAAK,WAAW,GAAG,CACrC;gBACD,YAAY,EAAE,UAAU,CACtB,OAAO,CAAC,OAAO,EACf,GAAG,cAAc,KAAK,WAAW,GAAG,CACrC;gBACD,MAAM,EAAE,gBAAgB;gBACxB,WAAW;aACZ,CAAC;QACJ,CAAC;QACD,IAAI,eAAe,EAAE,CAAC;YACpB,MAAM,IAAI,gBAAgB,CACxB,cAAc,WAAW,iBAAiB,cAAc,EAAE,CAC3D,CAAC;QACJ,CAAC;IACH,CAAC;SAAM,IAAI,eAAe,EAAE,CAAC;QAC3B,MAAM,IAAI,gBAAgB,CACxB,+BAA+B,cAAc,iBAAiB,CAC/D,CAAC;IACJ,CAAC;IAED,MAAM,IAAI,gBAAgB,CAAC,sBAAsB,CAAC,CAAC;AACrD,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare function canonicalize(value: unknown): string;
2
+ export declare function canonicalizeBytes(value: unknown): Uint8Array;
3
+ //# sourceMappingURL=jcs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jcs.d.ts","sourceRoot":"","sources":["../../src/lib/jcs.ts"],"names":[],"mappings":"AAeA,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAOnD;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,UAAU,CAE5D"}
@@ -0,0 +1,48 @@
1
+ /**
2
+ * RFC 8785 JSON Canonicalization Scheme (JCS).
3
+ *
4
+ * Thin wrapper over the `canonicalize` npm package — the same library the
5
+ * marketplace API uses. Re-exposed here as `canonicalize()` returning a
6
+ * string (and `canonicalizeBytes()` returning the UTF-8 bytes that get
7
+ * signed / hashed) so call sites in `cef publish` mirror the marketplace's
8
+ * `lib/jcs.ts` one-to-one.
9
+ *
10
+ * RFC 8785 leaves the encoding of non-finite numbers / BigInt undefined; we
11
+ * reject them up front rather than rely on the package's silent coercion,
12
+ * matching the marketplace's behaviour.
13
+ */
14
+ import canonicalizePkg from "canonicalize";
15
+ export function canonicalize(value) {
16
+ assertJcsCompatible(value);
17
+ const out = canonicalizePkg(value);
18
+ if (out === undefined) {
19
+ throw new TypeError("JCS: canonicalize() returned undefined");
20
+ }
21
+ return out;
22
+ }
23
+ export function canonicalizeBytes(value) {
24
+ return new TextEncoder().encode(canonicalize(value));
25
+ }
26
+ function assertJcsCompatible(value) {
27
+ if (typeof value === "number") {
28
+ if (!Number.isFinite(value)) {
29
+ throw new TypeError(`JCS: non-finite number ${String(value)}`);
30
+ }
31
+ return;
32
+ }
33
+ if (typeof value === "bigint") {
34
+ throw new TypeError("JCS: bigint not supported by RFC 8785");
35
+ }
36
+ if (Array.isArray(value)) {
37
+ for (const item of value)
38
+ assertJcsCompatible(item);
39
+ return;
40
+ }
41
+ if (value !== null && typeof value === "object") {
42
+ for (const v of Object.values(value)) {
43
+ if (v !== undefined)
44
+ assertJcsCompatible(v);
45
+ }
46
+ }
47
+ }
48
+ //# sourceMappingURL=jcs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jcs.js","sourceRoot":"","sources":["../../src/lib/jcs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,eAAe,MAAM,cAAc,CAAC;AAE3C,MAAM,UAAU,YAAY,CAAC,KAAc;IACzC,mBAAmB,CAAC,KAAK,CAAC,CAAC;IAC3B,MAAM,GAAG,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC;IACnC,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;QACtB,MAAM,IAAI,SAAS,CAAC,wCAAwC,CAAC,CAAC;IAChE,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,KAAc;IAC9C,OAAO,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;AACvD,CAAC;AAED,SAAS,mBAAmB,CAAC,KAAc;IACzC,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;YAC5B,MAAM,IAAI,SAAS,CAAC,0BAA0B,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QACjE,CAAC;QACD,OAAO;IACT,CAAC;IACD,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,MAAM,IAAI,SAAS,CAAC,uCAAuC,CAAC,CAAC;IAC/D,CAAC;IACD,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACzB,KAAK,MAAM,IAAI,IAAI,KAAK;YAAE,mBAAmB,CAAC,IAAI,CAAC,CAAC;QACpD,OAAO;IACT,CAAC;IACD,IAAI,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAChD,KAAK,MAAM,CAAC,IAAI,MAAM,CAAC,MAAM,CAAC,KAAgC,CAAC,EAAE,CAAC;YAChE,IAAI,CAAC,KAAK,SAAS;gBAAE,mBAAmB,CAAC,CAAC,CAAC,CAAC;QAC9C,CAAC;IACH,CAAC;AACH,CAAC"}
@@ -0,0 +1,13 @@
1
+ export interface Ed25519Keypair {
2
+ /** Hex-encoded public key (32-byte Ed25519 pubkey, lowercase, no prefix). */
3
+ pubkey: string;
4
+ /** Raw 32-byte private seed. */
5
+ privkeyBytes: Uint8Array;
6
+ }
7
+ export declare function generateKeypair(): Promise<Ed25519Keypair>;
8
+ /**
9
+ * Sign the UTF-8 bytes of `canonicalJson` with `privkeyBytes`. Returns
10
+ * lowercase-hex signature (64 bytes → 128 hex chars).
11
+ */
12
+ export declare function signBody(canonicalJson: string, privkeyBytes: Uint8Array): Promise<string>;
13
+ //# sourceMappingURL=signing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signing.d.ts","sourceRoot":"","sources":["../../src/lib/signing.ts"],"names":[],"mappings":"AAqBA,MAAM,WAAW,cAAc;IAC7B,6EAA6E;IAC7E,MAAM,EAAE,MAAM,CAAC;IACf,gCAAgC;IAChC,YAAY,EAAE,UAAU,CAAC;CAC1B;AAED,wBAAsB,eAAe,IAAI,OAAO,CAAC,cAAc,CAAC,CAI/D;AAED;;;GAGG;AACH,wBAAsB,QAAQ,CAC5B,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,UAAU,GACvB,OAAO,CAAC,MAAM,CAAC,CAIjB"}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Ed25519 keypair generation + body signing for `cef publish`. Produces the
3
+ * lowercase-hex pubkey + signature pair that the marketplace's
4
+ * `X-AS-Pubkey` / `X-AS-Signature` headers expect (raw hex, no `0x` prefix,
5
+ * no encoding wrapper).
6
+ *
7
+ * Mirrors the marketplace's `lib/signing/sign.ts`. Signing input is the
8
+ * UTF-8 bytes of the JCS-canonical body — callers are expected to pass the
9
+ * exact string they place in the HTTP request body, so the signature
10
+ * covers byte-for-byte what the server will re-canonicalize and verify.
11
+ */
12
+ import * as ed25519 from "@noble/ed25519";
13
+ function bytesToHex(b) {
14
+ let s = "";
15
+ for (let i = 0; i < b.length; i++) {
16
+ s += b[i].toString(16).padStart(2, "0");
17
+ }
18
+ return s;
19
+ }
20
+ export async function generateKeypair() {
21
+ const privkeyBytes = ed25519.utils.randomPrivateKey();
22
+ const pubkeyBytes = await ed25519.getPublicKeyAsync(privkeyBytes);
23
+ return { pubkey: bytesToHex(pubkeyBytes), privkeyBytes };
24
+ }
25
+ /**
26
+ * Sign the UTF-8 bytes of `canonicalJson` with `privkeyBytes`. Returns
27
+ * lowercase-hex signature (64 bytes → 128 hex chars).
28
+ */
29
+ export async function signBody(canonicalJson, privkeyBytes) {
30
+ const message = new TextEncoder().encode(canonicalJson);
31
+ const sig = await ed25519.signAsync(message, privkeyBytes);
32
+ return bytesToHex(sig);
33
+ }
34
+ //# sourceMappingURL=signing.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signing.js","sourceRoot":"","sources":["../../src/lib/signing.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAE1C,SAAS,UAAU,CAAC,CAAa;IAC/B,IAAI,CAAC,GAAG,EAAE,CAAC;IACX,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QAClC,CAAC,IAAK,CAAC,CAAC,CAAC,CAAY,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;IACtD,CAAC;IACD,OAAO,CAAC,CAAC;AACX,CAAC;AASD,MAAM,CAAC,KAAK,UAAU,eAAe;IACnC,MAAM,YAAY,GAAG,OAAO,CAAC,KAAK,CAAC,gBAAgB,EAAE,CAAC;IACtD,MAAM,WAAW,GAAG,MAAM,OAAO,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAAC;IAClE,OAAO,EAAE,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC,EAAE,YAAY,EAAE,CAAC;AAC3D,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,QAAQ,CAC5B,aAAqB,EACrB,YAAwB;IAExB,MAAM,OAAO,GAAG,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;IACxD,MAAM,GAAG,GAAG,MAAM,OAAO,CAAC,SAAS,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;IAC3D,OAAO,UAAU,CAAC,GAAG,CAAC,CAAC;AACzB,CAAC"}
package/dist/lib.d.ts ADDED
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Programmatic API for `@cef-ai/cli`. Other packages and tests can import the
3
+ * underlying command functions directly without going through the CLI
4
+ * binary. The CLI entry point (`./cli.ts`) wires these into commander.
5
+ */
6
+ export { cefBuild } from "./commands/build.js";
7
+ export type { CefBuildOptions, CefBuildResult } from "./commands/build.js";
8
+ export { cefTypegen } from "./commands/typegen.js";
9
+ export type { CefTypegenOptions, CefTypegenResult, } from "./commands/typegen.js";
10
+ export { cefInspect } from "./commands/inspect.js";
11
+ export type { CefInspectOptions, CefInspectResult } from "./commands/inspect.js";
12
+ export { cefPublish } from "./commands/publish.js";
13
+ export type { CefPublishOptions, CefPublishResult, } from "./commands/publish.js";
14
+ export { cefKeypairGenerate } from "./commands/keypair.js";
15
+ export type { CefKeypairGenerateOptions, CefKeypairGenerateResult, } from "./commands/keypair.js";
16
+ export { resolveCredentials, CredentialsError, defaultCredentialsFilePath, } from "./lib/credentials.js";
17
+ export type { AsCredentials, CredentialSource, ResolveCredentialsOptions, } from "./lib/credentials.js";
18
+ //# sourceMappingURL=lib.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../src/lib.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE3E,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,YAAY,EACV,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,YAAY,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEjF,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,YAAY,EACV,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,YAAY,EACV,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,kBAAkB,EAClB,gBAAgB,EAChB,0BAA0B,GAC3B,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EACV,aAAa,EACb,gBAAgB,EAChB,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC"}
package/dist/lib.js ADDED
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Programmatic API for `@cef-ai/cli`. Other packages and tests can import the
3
+ * underlying command functions directly without going through the CLI
4
+ * binary. The CLI entry point (`./cli.ts`) wires these into commander.
5
+ */
6
+ export { cefBuild } from "./commands/build.js";
7
+ export { cefTypegen } from "./commands/typegen.js";
8
+ export { cefInspect } from "./commands/inspect.js";
9
+ export { cefPublish } from "./commands/publish.js";
10
+ export { cefKeypairGenerate } from "./commands/keypair.js";
11
+ export { resolveCredentials, CredentialsError, defaultCredentialsFilePath, } from "./lib/credentials.js";
12
+ //# sourceMappingURL=lib.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lib.js","sourceRoot":"","sources":["../src/lib.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAG/C,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAMnD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAGnD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAMnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAM3D,OAAO,EACL,kBAAkB,EAClB,gBAAgB,EAChB,0BAA0B,GAC3B,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,57 @@
1
+ /**
2
+ * Parsed slice of `model.json` we care about. Per `agent-sdk.md` §5 a model
3
+ * spec also carries `name` / `version` etc., but for typegen we only need
4
+ * the I/O schemas.
5
+ */
6
+ export interface ModelSpec {
7
+ /** Alias under which the agent declares this model in `cef.config.ts`. */
8
+ alias: string;
9
+ input: unknown;
10
+ output: unknown;
11
+ }
12
+ /**
13
+ * Parsed slice of a peer agent's `manifest.json`. Per the contract §2.1 a
14
+ * peer's `publishes[]` is what *consumers* react to, so those become the
15
+ * payload types in `KnownEventTypes`. (`handles[]` would feed the inverse
16
+ * relationship — payload types for `ctx.publish(toPeer, ...)` — which we
17
+ * defer to a later iteration.)
18
+ */
19
+ export interface PeerSpec {
20
+ /** Alias under which the agent declares this peer in `cef.config.ts`. */
21
+ alias: string;
22
+ publishes: Array<{
23
+ type: string;
24
+ schema?: unknown;
25
+ }>;
26
+ }
27
+ /**
28
+ * Convert a snake_case / kebab-case / mixed identifier into PascalCase.
29
+ *
30
+ * Used for two things:
31
+ * - model alias → `ChatInput` / `ChatOutput` interface names
32
+ * - event type → `ResearchComplete` payload interface names
33
+ *
34
+ * We strip non-alphanumeric runs and uppercase the first letter of each
35
+ * remaining segment. Leading digits get a `_` prefix so the result is a
36
+ * valid TS identifier.
37
+ */
38
+ export declare function pascalCase(s: string): string;
39
+ /**
40
+ * Build the full `.cef/generated.d.ts` content from the fetched model and
41
+ * peer specs.
42
+ *
43
+ * Output structure:
44
+ * 1. Banner.
45
+ * 2. `export interface <Alias>Input { ... }` / `<Alias>Output { ... }`
46
+ * per model.
47
+ * 3. `export interface <PascalCasedEventType> { ... }` per peer-published
48
+ * event that carries a JSON schema.
49
+ * 4. `declare module "@cef-ai/agent-sdk"` block augmenting `KnownEventTypes`
50
+ * with `"<event_type>": <PascalCasedEventType>` entries.
51
+ *
52
+ * Models augmentation (so `ctx.models[alias]` becomes typed) is intentionally
53
+ * deferred to a follow-up — the agent-sdk surface for that needs a
54
+ * `KnownModels` map analogous to `KnownEventTypes`, which doesn't exist yet.
55
+ */
56
+ export declare function buildGeneratedDts(models: ModelSpec[], peers: PeerSpec[]): Promise<string>;
57
+ //# sourceMappingURL=augment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"augment.d.ts","sourceRoot":"","sources":["../../src/typegen/augment.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACxB,0EAA0E;IAC1E,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,OAAO,CAAC;CACjB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,QAAQ;IACvB,yEAAyE;IACzE,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;CACtD;AAMD;;;;;;;;;;GAUG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAO5C;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,SAAS,EAAE,EACnB,KAAK,EAAE,QAAQ,EAAE,GAChB,OAAO,CAAC,MAAM,CAAC,CAiDjB"}
@@ -0,0 +1,87 @@
1
+ import { schemaToTsInterface } from "./schema-to-ts.js";
2
+ const HEADER = `// Auto-generated by \`cef typegen\` — do not edit.
3
+ // To regenerate: run \`cef typegen\`.
4
+ `;
5
+ /**
6
+ * Convert a snake_case / kebab-case / mixed identifier into PascalCase.
7
+ *
8
+ * Used for two things:
9
+ * - model alias → `ChatInput` / `ChatOutput` interface names
10
+ * - event type → `ResearchComplete` payload interface names
11
+ *
12
+ * We strip non-alphanumeric runs and uppercase the first letter of each
13
+ * remaining segment. Leading digits get a `_` prefix so the result is a
14
+ * valid TS identifier.
15
+ */
16
+ export function pascalCase(s) {
17
+ const parts = s.split(/[^A-Za-z0-9]+/).filter(Boolean);
18
+ if (parts.length === 0)
19
+ return "_";
20
+ const joined = parts
21
+ .map((p) => p.charAt(0).toUpperCase() + p.slice(1))
22
+ .join("");
23
+ return /^[0-9]/.test(joined) ? "_" + joined : joined;
24
+ }
25
+ /**
26
+ * Build the full `.cef/generated.d.ts` content from the fetched model and
27
+ * peer specs.
28
+ *
29
+ * Output structure:
30
+ * 1. Banner.
31
+ * 2. `export interface <Alias>Input { ... }` / `<Alias>Output { ... }`
32
+ * per model.
33
+ * 3. `export interface <PascalCasedEventType> { ... }` per peer-published
34
+ * event that carries a JSON schema.
35
+ * 4. `declare module "@cef-ai/agent-sdk"` block augmenting `KnownEventTypes`
36
+ * with `"<event_type>": <PascalCasedEventType>` entries.
37
+ *
38
+ * Models augmentation (so `ctx.models[alias]` becomes typed) is intentionally
39
+ * deferred to a follow-up — the agent-sdk surface for that needs a
40
+ * `KnownModels` map analogous to `KnownEventTypes`, which doesn't exist yet.
41
+ */
42
+ export async function buildGeneratedDts(models, peers) {
43
+ const sections = [HEADER];
44
+ // 1. Per-model I/O interfaces.
45
+ if (models.length > 0) {
46
+ sections.push("// ---- Models ----");
47
+ for (const m of models) {
48
+ const base = pascalCase(m.alias);
49
+ const inputTs = await schemaToTsInterface(`${base}Input`, m.input);
50
+ const outputTs = await schemaToTsInterface(`${base}Output`, m.output);
51
+ sections.push(inputTs);
52
+ sections.push(outputTs);
53
+ }
54
+ }
55
+ // 2. Per-peer-event payload interfaces + collect KnownEventTypes entries.
56
+ const knownEvents = [];
57
+ if (peers.length > 0) {
58
+ sections.push("// ---- Peer events ----");
59
+ for (const p of peers) {
60
+ for (const pub of p.publishes) {
61
+ const tsName = pascalCase(pub.type);
62
+ if (pub.schema) {
63
+ const ts = await schemaToTsInterface(tsName, pub.schema);
64
+ sections.push(ts);
65
+ }
66
+ else {
67
+ // No schema → fall back to `unknown` payload.
68
+ sections.push(`export type ${tsName} = unknown;`);
69
+ }
70
+ knownEvents.push({ eventType: pub.type, tsName });
71
+ }
72
+ }
73
+ }
74
+ // 3. Module augmentation block.
75
+ if (knownEvents.length > 0) {
76
+ const lines = knownEvents
77
+ .map(({ eventType, tsName }) => ` ${JSON.stringify(eventType)}: ${tsName};`)
78
+ .join("\n");
79
+ sections.push(`declare module "@cef-ai/agent-sdk" {
80
+ interface KnownEventTypes {
81
+ ${lines}
82
+ }
83
+ }`);
84
+ }
85
+ return sections.join("\n\n") + "\n";
86
+ }
87
+ //# sourceMappingURL=augment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"augment.js","sourceRoot":"","sources":["../../src/typegen/augment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AA2BxD,MAAM,MAAM,GAAG;;CAEd,CAAC;AAEF;;;;;;;;;;GAUG;AACH,MAAM,UAAU,UAAU,CAAC,CAAS;IAClC,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACvD,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,GAAG,CAAC;IACnC,MAAM,MAAM,GAAG,KAAK;SACjB,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;SAClD,IAAI,CAAC,EAAE,CAAC,CAAC;IACZ,OAAO,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC;AACvD,CAAC;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,KAAK,UAAU,iBAAiB,CACrC,MAAmB,EACnB,KAAiB;IAEjB,MAAM,QAAQ,GAAa,CAAC,MAAM,CAAC,CAAC;IAEpC,+BAA+B;IAC/B,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACtB,QAAQ,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;QACrC,KAAK,MAAM,CAAC,IA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AAE,CAAC;QAC3B,MAAM,KAAK,GAAG,WAAW;aACtB,GAAG,CAAC,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,OAAO,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,KAAK,MAAM,GAAG,CAAC;aAC9E,IAAI,CAAC,IAAI,CAAC,CAAC;QACd,QAAQ,CAAC,IAAI,CACX;;EAEJ,KAAK;;EAEL,CACG,CAAC;IACJ,CAAC;IAED,OAAO,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;AACtC,CAAC"}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Result of a single typegen fetch. The body is kept verbatim so the
3
+ * caller can hash exactly what came over the wire (we use the raw bytes
4
+ * for the lockfile integrity field — re-stringifying after parse would
5
+ * be lossy and order-sensitive).
6
+ */
7
+ export interface FetchResult {
8
+ /** Raw response body as text. */
9
+ body: string;
10
+ /** `JSON.parse(body)` result. */
11
+ parsed: unknown;
12
+ /** Final URL after redirects (Node's `fetch` exposes this on `Response.url`). */
13
+ resolvedUrl: string;
14
+ /** `sha256-<base64(sha256(body))>` integrity tag — matches lockfile §C.5 form. */
15
+ integrity: string;
16
+ }
17
+ /**
18
+ * GET `<baseUrl>/<suffix>` and validate the response. Used by `cef typegen`
19
+ * to fetch model and peer-agent manifests declared in `cef.config.ts`.
20
+ *
21
+ * - Redirects are followed transparently (Node's built-in `fetch` does this
22
+ * by default with `redirect: "follow"`).
23
+ * - Content-Type is required to include `json` — anything else (HTML
24
+ * error page, plain text) is treated as a typegen failure rather than
25
+ * blindly trying to JSON.parse the bytes.
26
+ * - Non-2xx status codes throw with a `[cef typegen] fetch <url> → <status>`
27
+ * message so the CLI surfaces the failing URL to the author.
28
+ */
29
+ export declare function fetchJson(baseUrl: string, suffix: "model.json" | "manifest.json"): Promise<FetchResult>;
30
+ //# sourceMappingURL=fetch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../../src/typegen/fetch.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,WAAW,WAAW;IAC1B,iCAAiC;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,iCAAiC;IACjC,MAAM,EAAE,OAAO,CAAC;IAChB,iFAAiF;IACjF,WAAW,EAAE,MAAM,CAAC;IACpB,kFAAkF;IAClF,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,SAAS,CAC7B,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,YAAY,GAAG,eAAe,GACrC,OAAO,CAAC,WAAW,CAAC,CA+BtB"}
@@ -0,0 +1,38 @@
1
+ import crypto from "node:crypto";
2
+ /**
3
+ * GET `<baseUrl>/<suffix>` and validate the response. Used by `cef typegen`
4
+ * to fetch model and peer-agent manifests declared in `cef.config.ts`.
5
+ *
6
+ * - Redirects are followed transparently (Node's built-in `fetch` does this
7
+ * by default with `redirect: "follow"`).
8
+ * - Content-Type is required to include `json` — anything else (HTML
9
+ * error page, plain text) is treated as a typegen failure rather than
10
+ * blindly trying to JSON.parse the bytes.
11
+ * - Non-2xx status codes throw with a `[cef typegen] fetch <url> → <status>`
12
+ * message so the CLI surfaces the failing URL to the author.
13
+ */
14
+ export async function fetchJson(baseUrl, suffix) {
15
+ // `new URL(rel, base)` requires the base to end with `/` for the path to
16
+ // be appended rather than replacing the last segment.
17
+ const baseWithSlash = baseUrl.endsWith("/") ? baseUrl : baseUrl + "/";
18
+ const url = new URL(suffix, baseWithSlash).href;
19
+ const res = await fetch(url, { redirect: "follow" });
20
+ if (!res.ok) {
21
+ throw new Error(`[cef typegen] fetch ${url} → ${res.status}`);
22
+ }
23
+ const ct = res.headers.get("content-type") ?? "";
24
+ if (!ct.toLowerCase().includes("json")) {
25
+ throw new Error(`[cef typegen] fetch ${url} → non-JSON content-type "${ct}"`);
26
+ }
27
+ const body = await res.text();
28
+ let parsed;
29
+ try {
30
+ parsed = JSON.parse(body);
31
+ }
32
+ catch (err) {
33
+ throw new Error(`[cef typegen] fetch ${url} → invalid JSON: ${err.message}`);
34
+ }
35
+ const integrity = "sha256-" + crypto.createHash("sha256").update(body).digest("base64");
36
+ return { body, parsed, resolvedUrl: res.url, integrity };
37
+ }
38
+ //# sourceMappingURL=fetch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetch.js","sourceRoot":"","sources":["../../src/typegen/fetch.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAC;AAmBjC;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,KAAK,UAAU,SAAS,CAC7B,OAAe,EACf,MAAsC;IAEtC,yEAAyE;IACzE,sDAAsD;IACtD,MAAM,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,GAAG,GAAG,CAAC;IACtE,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,IAAI,CAAC;IAEhD,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,GAAG,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,CAAC;IACrD,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC;QACZ,MAAM,IAAI,KAAK,CAAC,uBAAuB,GAAG,MAAM,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC;IAChE,CAAC;IACD,MAAM,EAAE,GAAG,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,IAAI,EAAE,CAAC;IACjD,IAAI,CAAC,EAAE,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QACvC,MAAM,IAAI,KAAK,CACb,uBAAuB,GAAG,6BAA6B,EAAE,GAAG,CAC7D,CAAC;IACJ,CAAC;IAED,MAAM,IAAI,GAAG,MAAM,GAAG,CAAC,IAAI,EAAE,CAAC;IAC9B,IAAI,MAAe,CAAC;IACpB,IAAI,CAAC;QACH,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CACb,uBAAuB,GAAG,oBAAqB,GAAa,CAAC,OAAO,EAAE,CACvE,CAAC;IACJ,CAAC;IAED,MAAM,SAAS,GACb,SAAS,GAAG,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAExE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,CAAC,GAAG,EAAE,SAAS,EAAE,CAAC;AAC3D,CAAC"}
@@ -0,0 +1,42 @@
1
+ /**
2
+ * `cef.lock.json` schema, version 1.
3
+ *
4
+ * Modelled after the lockfile shape sketched in the SDK proposal: every
5
+ * fetched artefact (model spec, peer manifest) gets one entry keyed by the
6
+ * alias the user gave it in `cef.config.ts`. The entry records both the
7
+ * declared URL (which may carry a semver range like `agent@^1`) and the
8
+ * post-resolution / post-redirect URL the runtime should pin to.
9
+ *
10
+ * `integrity` is `sha256-<base64>` over the raw fetched bytes — same form
11
+ * Subresource Integrity uses, so existing tooling can validate it.
12
+ */
13
+ export interface CefLockfile {
14
+ version: 1;
15
+ models: Record<string, LockEntry>;
16
+ uses: Record<string, LockEntry>;
17
+ }
18
+ export interface LockEntry {
19
+ /** URL exactly as declared in `cef.config.ts`. */
20
+ url: string;
21
+ /** Post-redirect / post-semver-resolution URL. */
22
+ resolvedUrl: string;
23
+ /** `sha256-<base64>` of the fetched body. */
24
+ integrity: string;
25
+ /** ISO 8601 timestamp at which the artefact was fetched. */
26
+ fetchedAt: string;
27
+ }
28
+ /**
29
+ * Read a lockfile from disk. Returns `null` if the file does not exist
30
+ * (first run) or fails to parse (corrupt — caller decides whether to
31
+ * regenerate or surface). The `version` field is verified; future format
32
+ * bumps will live behind explicit migration code rather than silently
33
+ * accepting older shapes.
34
+ */
35
+ export declare function readLockfile(path: string): Promise<CefLockfile | null>;
36
+ /**
37
+ * Write the lockfile as pretty-printed, key-sorted JSON with a trailing
38
+ * newline. Sorted keys keep diffs stable across runs even when the
39
+ * iteration order of `models` / `uses` differs.
40
+ */
41
+ export declare function writeLockfile(path: string, lock: CefLockfile): Promise<void>;
42
+ //# sourceMappingURL=lockfile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lockfile.d.ts","sourceRoot":"","sources":["../../src/typegen/lockfile.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,CAAC,CAAC;IACX,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IAClC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CACjC;AAED,MAAM,WAAW,SAAS;IACxB,kDAAkD;IAClD,GAAG,EAAE,MAAM,CAAC;IACZ,kDAAkD;IAClD,WAAW,EAAE,MAAM,CAAC;IACpB,6CAA6C;IAC7C,SAAS,EAAE,MAAM,CAAC;IAClB,4DAA4D;IAC5D,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;GAMG;AACH,wBAAsB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,CAsB5E;AAeD;;;;GAIG;AACH,wBAAsB,aAAa,CACjC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,WAAW,GAChB,OAAO,CAAC,IAAI,CAAC,CAOf"}
@@ -0,0 +1,58 @@
1
+ import fs from "node:fs/promises";
2
+ /**
3
+ * Read a lockfile from disk. Returns `null` if the file does not exist
4
+ * (first run) or fails to parse (corrupt — caller decides whether to
5
+ * regenerate or surface). The `version` field is verified; future format
6
+ * bumps will live behind explicit migration code rather than silently
7
+ * accepting older shapes.
8
+ */
9
+ export async function readLockfile(path) {
10
+ let raw;
11
+ try {
12
+ raw = await fs.readFile(path, "utf8");
13
+ }
14
+ catch (err) {
15
+ if (err.code === "ENOENT")
16
+ return null;
17
+ throw err;
18
+ }
19
+ let parsed;
20
+ try {
21
+ parsed = JSON.parse(raw);
22
+ }
23
+ catch {
24
+ return null;
25
+ }
26
+ if (!parsed ||
27
+ typeof parsed !== "object" ||
28
+ parsed.version !== 1) {
29
+ return null;
30
+ }
31
+ return parsed;
32
+ }
33
+ /**
34
+ * Sort an object's keys for stable JSON output. We do this recursively for
35
+ * `models` / `uses` records so a re-run with no changes produces a
36
+ * byte-identical lockfile (good for diffs and content-addressing).
37
+ */
38
+ function sortKeys(obj) {
39
+ const sorted = {};
40
+ for (const k of Object.keys(obj).sort()) {
41
+ sorted[k] = obj[k];
42
+ }
43
+ return sorted;
44
+ }
45
+ /**
46
+ * Write the lockfile as pretty-printed, key-sorted JSON with a trailing
47
+ * newline. Sorted keys keep diffs stable across runs even when the
48
+ * iteration order of `models` / `uses` differs.
49
+ */
50
+ export async function writeLockfile(path, lock) {
51
+ const out = {
52
+ version: 1,
53
+ models: sortKeys(lock.models),
54
+ uses: sortKeys(lock.uses),
55
+ };
56
+ await fs.writeFile(path, JSON.stringify(out, null, 2) + "\n", "utf8");
57
+ }
58
+ //# sourceMappingURL=lockfile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lockfile.js","sourceRoot":"","sources":["../../src/typegen/lockfile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,kBAAkB,CAAC;AA+BlC;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,IAAY;IAC7C,IAAI,GAAW,CAAC;IAChB,IAAI,CAAC;QACH,GAAG,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IACxC,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,IAAK,GAA6B,CAAC,IAAI,KAAK,QAAQ;YAAE,OAAO,IAAI,CAAC;QAClE,MAAM,GAAG,CAAC;IACZ,CAAC;IACD,IAAI,MAAe,CAAC;IACpB,IAAI,CAAC;QACH,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC3B,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;IACD,IACE,CAAC,MAAM;QACP,OAAO,MAAM,KAAK,QAAQ;QACzB,MAAgC,CAAC,OAAO,KAAK,CAAC,EAC/C,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,MAAqB,CAAC;AAC/B,CAAC;AAED;;;;GAIG;AACH,SAAS,QAAQ,CAAoC,GAAM;IACzD,MAAM,MAAM,GAA4B,EAAE,CAAC;IAC3C,KAAK,MAAM,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC;QACxC,MAAM,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;IACrB,CAAC;IACD,OAAO,MAAW,CAAC;AACrB,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,aAAa,CACjC,IAAY,EACZ,IAAiB;IAEjB,MAAM,GAAG,GAAgB;QACvB,OAAO,EAAE,CAAC;QACV,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC;QAC7B,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC;KAC1B,CAAC;IACF,MAAM,EAAE,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC,CAAC;AACxE,CAAC"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Compile a JSON Schema into a TypeScript interface declaration string.
3
+ *
4
+ * Wraps `json-schema-to-typescript`'s `compile` with the defaults the rest
5
+ * of the CLI assumes:
6
+ *
7
+ * - `bannerComment: ""` — we add our own banner once at the top of the
8
+ * generated file rather than per interface.
9
+ * - `additionalProperties: false` — typegen output should be strict by
10
+ * default; if a schema permits extra properties it can declare them
11
+ * itself with `additionalProperties: true`.
12
+ * - `format: false` — we already format the assembled output once at the
13
+ * end of `buildGeneratedDts`, so per-interface prettier passes are wasted
14
+ * work (and a perf cost on big schemas).
15
+ *
16
+ * Returns the raw output string (one or more `export interface` blocks,
17
+ * potentially with helper aliases for nested objects). Callers concatenate
18
+ * the returned strings into the final `.cef/generated.d.ts` body.
19
+ */
20
+ export declare function schemaToTsInterface(name: string, schema: unknown): Promise<string>;
21
+ //# sourceMappingURL=schema-to-ts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-to-ts.d.ts","sourceRoot":"","sources":["../../src/typegen/schema-to-ts.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAsB,mBAAmB,CACvC,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,OAAO,GACd,OAAO,CAAC,MAAM,CAAC,CAOjB"}
@@ -0,0 +1,29 @@
1
+ import { compile } from "json-schema-to-typescript";
2
+ /**
3
+ * Compile a JSON Schema into a TypeScript interface declaration string.
4
+ *
5
+ * Wraps `json-schema-to-typescript`'s `compile` with the defaults the rest
6
+ * of the CLI assumes:
7
+ *
8
+ * - `bannerComment: ""` — we add our own banner once at the top of the
9
+ * generated file rather than per interface.
10
+ * - `additionalProperties: false` — typegen output should be strict by
11
+ * default; if a schema permits extra properties it can declare them
12
+ * itself with `additionalProperties: true`.
13
+ * - `format: false` — we already format the assembled output once at the
14
+ * end of `buildGeneratedDts`, so per-interface prettier passes are wasted
15
+ * work (and a perf cost on big schemas).
16
+ *
17
+ * Returns the raw output string (one or more `export interface` blocks,
18
+ * potentially with helper aliases for nested objects). Callers concatenate
19
+ * the returned strings into the final `.cef/generated.d.ts` body.
20
+ */
21
+ export async function schemaToTsInterface(name, schema) {
22
+ const out = await compile(schema, name, {
23
+ bannerComment: "",
24
+ additionalProperties: false,
25
+ format: false,
26
+ });
27
+ return out.trim();
28
+ }
29
+ //# sourceMappingURL=schema-to-ts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-to-ts.js","sourceRoot":"","sources":["../../src/typegen/schema-to-ts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAmB,MAAM,2BAA2B,CAAC;AAErE;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,KAAK,UAAU,mBAAmB,CACvC,IAAY,EACZ,MAAe;IAEf,MAAM,GAAG,GAAG,MAAM,OAAO,CAAC,MAAoB,EAAE,IAAI,EAAE;QACpD,aAAa,EAAE,EAAE;QACjB,oBAAoB,EAAE,KAAK;QAC3B,MAAM,EAAE,KAAK;KACd,CAAC,CAAC;IACH,OAAO,GAAG,CAAC,IAAI,EAAE,CAAC;AACpB,CAAC"}