@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 +15 -6
- package/dist/contract-manifest.json +9 -12
- package/dist/index.d.ts +8 -8
- package/dist/index.js +8 -8
- package/dist/manifest.json +13 -16
- package/dist/openapi.json +18351 -31401
- package/dist/public-surface.json +1 -0
- package/package.json +17 -3
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.
|
|
29
|
-
|
|
30
|
-
|
|
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
|
|
35
|
-
|
|
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.
|
|
4
|
-
"privateCommit": "
|
|
3
|
+
"kernelVersion": "0.7.0",
|
|
4
|
+
"privateCommit": "abcba194532eb14c54285d82cbc531798e2e8441",
|
|
5
5
|
"privateSource": {
|
|
6
|
-
"kind": "
|
|
7
|
-
"baseCommit": "
|
|
8
|
-
"lockfileSha256": "
|
|
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.
|
|
15
|
-
"sha256": "
|
|
11
|
+
"version": "0.7.0",
|
|
12
|
+
"sha256": "2d388a2a5aaee2eff4d752c41f18485fb89fb1ab25c7a734bbfe16aa1f8c381d"
|
|
16
13
|
},
|
|
17
14
|
"files": {
|
|
18
|
-
"openapi.json": "
|
|
15
|
+
"openapi.json": "e6483b21c116cabf00c379603c8f6b6c076dd06f9bdd3289b3accef122b82e2d",
|
|
19
16
|
"scene-schema.json": "dbed283643cb2a60968f7d4f5372d5b4cb9d2204ae88054e83c87366b1f8aa7c",
|
|
20
17
|
"scene-examples.json": "6eca2929e8567fb804e599619363e4f3f61e4ee1d53b170266d2261ae22cd5a2"
|
|
21
18
|
},
|
|
22
|
-
"contractVersion": "
|
|
19
|
+
"contractVersion": "4.0.1"
|
|
23
20
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export declare const contractVersion: "
|
|
2
|
-
export declare const openApiSha256: "
|
|
3
|
-
export declare const operationCount:
|
|
4
|
-
export declare const pathCount:
|
|
5
|
-
export declare const componentCount:
|
|
6
|
-
export declare const kernelVersion: "0.
|
|
7
|
-
export declare const privateCommit: "
|
|
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": "
|
|
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 = "
|
|
2
|
-
export const openApiSha256 = "
|
|
3
|
-
export const operationCount =
|
|
4
|
-
export const pathCount =
|
|
5
|
-
export const componentCount =
|
|
6
|
-
export const kernelVersion = "0.
|
|
7
|
-
export const privateCommit = "
|
|
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": "
|
|
9
|
+
"openapi.json": "e6483b21c116cabf00c379603c8f6b6c076dd06f9bdd3289b3accef122b82e2d",
|
|
10
10
|
"scene-schema.json": "dbed283643cb2a60968f7d4f5372d5b4cb9d2204ae88054e83c87366b1f8aa7c",
|
|
11
11
|
"scene-examples.json": "6eca2929e8567fb804e599619363e4f3f61e4ee1d53b170266d2261ae22cd5a2"
|
|
12
12
|
};
|
package/dist/manifest.json
CHANGED
|
@@ -1,26 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"contractVersion": "
|
|
4
|
-
"sha256": "
|
|
5
|
-
"operationCount":
|
|
6
|
-
"pathCount":
|
|
7
|
-
"componentCount":
|
|
8
|
-
"kernelVersion": "0.
|
|
9
|
-
"privateCommit": "
|
|
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": "
|
|
12
|
-
"baseCommit": "
|
|
13
|
-
"lockfileSha256": "
|
|
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.
|
|
20
|
-
"sha256": "
|
|
16
|
+
"version": "0.7.0",
|
|
17
|
+
"sha256": "2d388a2a5aaee2eff4d752c41f18485fb89fb1ab25c7a734bbfe16aa1f8c381d"
|
|
21
18
|
},
|
|
22
19
|
"syncedFiles": {
|
|
23
|
-
"openapi.json": "
|
|
20
|
+
"openapi.json": "e6483b21c116cabf00c379603c8f6b6c076dd06f9bdd3289b3accef122b82e2d",
|
|
24
21
|
"scene-schema.json": "dbed283643cb2a60968f7d4f5372d5b4cb9d2204ae88054e83c87366b1f8aa7c",
|
|
25
22
|
"scene-examples.json": "6eca2929e8567fb804e599619363e4f3f61e4ee1d53b170266d2261ae22cd5a2"
|
|
26
23
|
}
|