@cueframe/api-contract 3.0.1 → 4.0.1

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.
package/README.md CHANGED
@@ -14,6 +14,16 @@ import { contractVersion, openApiSha256, operationCount } from "@cueframe/api-co
14
14
  import openApi from "@cueframe/api-contract/openapi.json" with { type: "json" };
15
15
  ```
16
16
 
17
+ ## Use the contract
18
+
19
+ ```bash
20
+ npm install @cueframe/api-contract
21
+ ```
22
+
23
+ Requires Node.js 24 or newer for the JavaScript exports. Other languages and generators can read the [public OpenAPI JSON](https://github.com/cueframe-ai/cueframe-mcp/blob/main/api/openapi.json) directly. Use the versioned npm package when you need reproducible generation.
24
+
25
+ The contract describes the hosted API at `https://api.cueframe.ai`; installing it does not run a server. Start with the [API reference](https://docs.cueframe.ai/docs/api), [API walkthrough](https://cueframe.ai/api), or [TypeScript SDK](../sdk).
26
+
17
27
  ## One contract chain
18
28
 
19
29
  ```
@@ -25,15 +35,14 @@ private CueFrame API ──sync──▶ cueframe-ai/cueframe-mcp: api/*.json
25
35
  `api/contract-manifest.json` into this repository, from one kernel build.
26
36
  The manifest records the kernel version, the private commit and the sha256
27
37
  of each file as written.
28
- 2. This repository vendors the scene schema into `openapi.json` as named,
29
- depth-capped components (the sync's form carries `$ref`s a resolver cannot
30
- follow), regenerates the SDK from the result, and commits all of it.
38
+ 2. `openapi.json` carries the kernel's own OpenAPI components (`Composition`,
39
+ `CompositionOp`, `SceneShotSpecV2` and its recursive parts, ...) verbatim.
40
+ This repository regenerates the SDK from it and commits both.
31
41
  `api/public-surface.json`, the reviewed operation inventory, is maintained
32
42
  here.
33
43
  3. `pnpm --filter @cueframe/api-contract build` copies the five `api/*.json`
34
- files into `dist/` as they are committed (so the vendored document; the
35
- build refuses the un-vendored form) and writes `manifest.json`, `index.js`
36
- and `index.d.ts`.
44
+ files into `dist/` as they are committed and writes `manifest.json`,
45
+ `index.js` and `index.d.ts`.
37
46
  4. Everything else reads the npm package: the application repository's MCP
38
47
  tool, composition-op and scene-contract generators and their tests, and any
39
48
  third party. Nothing reads `api/` out of a second checkout.
@@ -1,23 +1,20 @@
1
1
  {
2
2
  "schemaVersion": 2,
3
- "kernelVersion": "0.5.2",
4
- "privateCommit": "670cac8bd5bccf2b13b7a0b141acf8ef0e302fee",
3
+ "kernelVersion": "0.7.0",
4
+ "privateCommit": "abcba194532eb14c54285d82cbc531798e2e8441",
5
5
  "privateSource": {
6
- "kind": "working-tree",
7
- "baseCommit": "670cac8bd5bccf2b13b7a0b141acf8ef0e302fee",
8
- "lockfileSha256": "41b3210596b1fce7a192f85a4e7d89650528227e954f41a69689269fa8201a0b",
9
- "sha256": "147392634d58f553bd706022f5f75453377e407780689a654c9221f11e34dc44",
10
- "patchSha256": "3e1ba8e40c63e191ce0417145c0cce0ca733e9ba044d48443ca0f921e2277cb8",
11
- "untrackedSha256": "c031821a324cf178f81641a3547f49db9fc3dcb80dfda7312c96a732031e49c8"
6
+ "kind": "commit",
7
+ "baseCommit": "abcba194532eb14c54285d82cbc531798e2e8441",
8
+ "lockfileSha256": "002b91732f4785b0209198092e589c27389b61763f27d9238d0a08cbf100d497"
12
9
  },
13
10
  "kernelArtifact": {
14
- "version": "0.5.2",
15
- "sha256": "827207844d4e0898a424249111b6bb4d1c5ea26cd90dc8fb52a766786187c922"
11
+ "version": "0.7.0",
12
+ "sha256": "2d388a2a5aaee2eff4d752c41f18485fb89fb1ab25c7a734bbfe16aa1f8c381d"
16
13
  },
17
14
  "files": {
18
- "openapi.json": "0674432af535746523e1444a132eb8be7b70e1957bbf9e1923282d745c8a03b7",
15
+ "openapi.json": "e6483b21c116cabf00c379603c8f6b6c076dd06f9bdd3289b3accef122b82e2d",
19
16
  "scene-schema.json": "dbed283643cb2a60968f7d4f5372d5b4cb9d2204ae88054e83c87366b1f8aa7c",
20
17
  "scene-examples.json": "6eca2929e8567fb804e599619363e4f3f61e4ee1d53b170266d2261ae22cd5a2"
21
18
  },
22
- "contractVersion": "3.0.1"
19
+ "contractVersion": "4.0.1"
23
20
  }
package/dist/index.d.ts CHANGED
@@ -1,12 +1,12 @@
1
- export declare const contractVersion: "3.0.1";
2
- export declare const openApiSha256: "093231da785d261317dc08a9f989186e0ea6807ba9f4d6ce96b7889b742c60c2";
3
- export declare const operationCount: 136;
4
- export declare const pathCount: 109;
5
- export declare const componentCount: 216;
6
- export declare const kernelVersion: "0.5.2";
7
- export declare const privateCommit: "670cac8bd5bccf2b13b7a0b141acf8ef0e302fee";
1
+ export declare const contractVersion: "4.0.1";
2
+ export declare const openApiSha256: "e6483b21c116cabf00c379603c8f6b6c076dd06f9bdd3289b3accef122b82e2d";
3
+ export declare const operationCount: 137;
4
+ export declare const pathCount: 110;
5
+ export declare const componentCount: 219;
6
+ export declare const kernelVersion: "0.7.0";
7
+ export declare const privateCommit: "abcba194532eb14c54285d82cbc531798e2e8441";
8
8
  export declare const syncedFiles: {
9
- "openapi.json": "0674432af535746523e1444a132eb8be7b70e1957bbf9e1923282d745c8a03b7",
9
+ "openapi.json": "e6483b21c116cabf00c379603c8f6b6c076dd06f9bdd3289b3accef122b82e2d",
10
10
  "scene-schema.json": "dbed283643cb2a60968f7d4f5372d5b4cb9d2204ae88054e83c87366b1f8aa7c",
11
11
  "scene-examples.json": "6eca2929e8567fb804e599619363e4f3f61e4ee1d53b170266d2261ae22cd5a2"
12
12
  };
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
1
- export const contractVersion = "3.0.1";
2
- export const openApiSha256 = "093231da785d261317dc08a9f989186e0ea6807ba9f4d6ce96b7889b742c60c2";
3
- export const operationCount = 136;
4
- export const pathCount = 109;
5
- export const componentCount = 216;
6
- export const kernelVersion = "0.5.2";
7
- export const privateCommit = "670cac8bd5bccf2b13b7a0b141acf8ef0e302fee";
1
+ export const contractVersion = "4.0.1";
2
+ export const openApiSha256 = "e6483b21c116cabf00c379603c8f6b6c076dd06f9bdd3289b3accef122b82e2d";
3
+ export const operationCount = 137;
4
+ export const pathCount = 110;
5
+ export const componentCount = 219;
6
+ export const kernelVersion = "0.7.0";
7
+ export const privateCommit = "abcba194532eb14c54285d82cbc531798e2e8441";
8
8
  export const syncedFiles = {
9
- "openapi.json": "0674432af535746523e1444a132eb8be7b70e1957bbf9e1923282d745c8a03b7",
9
+ "openapi.json": "e6483b21c116cabf00c379603c8f6b6c076dd06f9bdd3289b3accef122b82e2d",
10
10
  "scene-schema.json": "dbed283643cb2a60968f7d4f5372d5b4cb9d2204ae88054e83c87366b1f8aa7c",
11
11
  "scene-examples.json": "6eca2929e8567fb804e599619363e4f3f61e4ee1d53b170266d2261ae22cd5a2"
12
12
  };
@@ -1,26 +1,23 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "contractVersion": "3.0.1",
4
- "sha256": "093231da785d261317dc08a9f989186e0ea6807ba9f4d6ce96b7889b742c60c2",
5
- "operationCount": 136,
6
- "pathCount": 109,
7
- "componentCount": 216,
8
- "kernelVersion": "0.5.2",
9
- "privateCommit": "670cac8bd5bccf2b13b7a0b141acf8ef0e302fee",
3
+ "contractVersion": "4.0.1",
4
+ "sha256": "e6483b21c116cabf00c379603c8f6b6c076dd06f9bdd3289b3accef122b82e2d",
5
+ "operationCount": 137,
6
+ "pathCount": 110,
7
+ "componentCount": 219,
8
+ "kernelVersion": "0.7.0",
9
+ "privateCommit": "abcba194532eb14c54285d82cbc531798e2e8441",
10
10
  "privateSource": {
11
- "kind": "working-tree",
12
- "baseCommit": "670cac8bd5bccf2b13b7a0b141acf8ef0e302fee",
13
- "lockfileSha256": "41b3210596b1fce7a192f85a4e7d89650528227e954f41a69689269fa8201a0b",
14
- "sha256": "147392634d58f553bd706022f5f75453377e407780689a654c9221f11e34dc44",
15
- "patchSha256": "3e1ba8e40c63e191ce0417145c0cce0ca733e9ba044d48443ca0f921e2277cb8",
16
- "untrackedSha256": "c031821a324cf178f81641a3547f49db9fc3dcb80dfda7312c96a732031e49c8"
11
+ "kind": "commit",
12
+ "baseCommit": "abcba194532eb14c54285d82cbc531798e2e8441",
13
+ "lockfileSha256": "002b91732f4785b0209198092e589c27389b61763f27d9238d0a08cbf100d497"
17
14
  },
18
15
  "kernelArtifact": {
19
- "version": "0.5.2",
20
- "sha256": "827207844d4e0898a424249111b6bb4d1c5ea26cd90dc8fb52a766786187c922"
16
+ "version": "0.7.0",
17
+ "sha256": "2d388a2a5aaee2eff4d752c41f18485fb89fb1ab25c7a734bbfe16aa1f8c381d"
21
18
  },
22
19
  "syncedFiles": {
23
- "openapi.json": "0674432af535746523e1444a132eb8be7b70e1957bbf9e1923282d745c8a03b7",
20
+ "openapi.json": "e6483b21c116cabf00c379603c8f6b6c076dd06f9bdd3289b3accef122b82e2d",
24
21
  "scene-schema.json": "dbed283643cb2a60968f7d4f5372d5b4cb9d2204ae88054e83c87366b1f8aa7c",
25
22
  "scene-examples.json": "6eca2929e8567fb804e599619363e4f3f61e4ee1d53b170266d2261ae22cd5a2"
26
23
  }