@dotcms/ai 26.8.13-1 → 26.8.14-1-next.2533

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
@@ -75,7 +75,7 @@ await dotcms.run(code); // SANDBOXED — a model wrote `code`.
75
75
  | `@dotcms/ai/runtime` | Most callers — the front door | `createRuntime`, `defineAdapter`, errors | dotCMS-wired |
76
76
  | `@dotcms/ai/sandbox` | Power users / custom adapters | `createSandbox`, `defineAdapter`, `Executor`, types, errors | **fully generic, lint-enforced** |
77
77
  | `@dotcms/ai/adapter` | Power users | `dotcmsAdapter`, `requestCore`, context loading + cache | dotCMS-specific |
78
- | `@dotcms/ai/spec` | The search use case | the OpenAPI spec (opt-in; keeps the ~550KB off the default path) | dotCMS-specific |
78
+ | `@dotcms/ai/spec` | The search use case | the OpenAPI spec (opt-in; keeps the ~400KB off the default path) | dotCMS-specific |
79
79
 
80
80
  `@dotcms/ai` is a pure namespace — there is no bare import; everything is reached through a subpath. It is an **umbrella** for growth: future AI surfaces (RAG, embeddings, custom agents, harness) land as new subpaths under the same package.
81
81
 
@@ -151,9 +151,11 @@ pnpm nx run sdk-ai:generate-spec
151
151
  pnpm nx run sdk-ai:generate-spec -- http://localhost:8080/api/openapi.json
152
152
  ```
153
153
 
154
- The script filters the spec to the endpoints in `ALLOWED_PREFIXES` (see `scripts/generate-spec.ts`),
155
- dereferences `$ref`s, and strips response schemas to keep the file small. Because the spec is
156
- regenerated at build time, there is nothing to commit.
154
+ The script filters the spec to the endpoints in `ALLOWED_PREFIXES` (see `scripts/spec-transform.ts`),
155
+ keeps request/response `$ref`s, and prunes `components.schemas` to just the schemas those endpoints
156
+ reference. Keeping `$ref`s (rather than dereferencing) dedupes shared schemas and keeps the file
157
+ small (~400KB). The output is compact JSON (machine-read only) — use `jq` to inspect it. Because the
158
+ spec is regenerated at build time, there is nothing to commit.
157
159
 
158
160
  ## Commands
159
161
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dotcms/ai",
3
- "version": "26.08.13-01",
3
+ "version": "26.8.14-1-next.2533",
4
4
  "description": "The dotCMS agentic runtime — run model-written or human-written code safely against a dotCMS instance, with auth and policy owned in one place.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -16,10 +16,30 @@
16
16
  },
17
17
  "exports": {
18
18
  "./package.json": "./package.json",
19
- "./runtime": "./src/runtime.ts",
20
- "./sandbox": "./src/sandbox/index.ts",
21
- "./adapter": "./src/adapter/index.ts",
22
- "./spec": "./src/spec/index.ts",
19
+ "./runtime": {
20
+ "module": "./runtime.esm.js",
21
+ "types": "./runtime.d.ts",
22
+ "import": "./runtime.cjs.mjs",
23
+ "default": "./runtime.cjs.js"
24
+ },
25
+ "./sandbox": {
26
+ "module": "./runtime.esm.js",
27
+ "types": "./src/sandbox/index.d.ts",
28
+ "import": "./runtime.cjs.mjs",
29
+ "default": "./runtime.cjs.js"
30
+ },
31
+ "./adapter": {
32
+ "module": "./runtime.esm.js",
33
+ "types": "./src/adapter/index.d.ts",
34
+ "import": "./runtime.cjs.mjs",
35
+ "default": "./runtime.cjs.js"
36
+ },
37
+ "./spec": {
38
+ "module": "./spec.esm.js",
39
+ "types": "./src/spec/index.d.ts",
40
+ "import": "./spec.cjs.js",
41
+ "default": "./spec.cjs.js"
42
+ },
23
43
  ".": {
24
44
  "module": "./runtime.esm.js",
25
45
  "types": "./runtime.d.ts",
@@ -36,7 +56,7 @@
36
56
  "typesVersions": {
37
57
  "*": {
38
58
  "runtime": [
39
- "./src/runtime.d.ts"
59
+ "./runtime.d.ts"
40
60
  ],
41
61
  "sandbox": [
42
62
  "./src/sandbox/index.d.ts"
package/runtime.cjs.js CHANGED
Binary file
package/runtime.esm.js CHANGED
Binary file