@objectstack/service-ai 4.0.1 → 4.0.2

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 (39) hide show
  1. package/.turbo/turbo-build.log +11 -11
  2. package/CHANGELOG.md +9 -0
  3. package/dist/index.cjs +1120 -66
  4. package/dist/index.cjs.map +1 -1
  5. package/dist/index.d.cts +316 -78
  6. package/dist/index.d.ts +316 -78
  7. package/dist/index.js +1105 -63
  8. package/dist/index.js.map +1 -1
  9. package/package.json +26 -4
  10. package/src/__tests__/ai-service.test.ts +248 -27
  11. package/src/__tests__/auth-and-toolcalling.test.ts +30 -28
  12. package/src/__tests__/chatbot-features.test.ts +229 -82
  13. package/src/__tests__/metadata-tools.test.ts +964 -0
  14. package/src/__tests__/objectql-conversation-service.test.ts +34 -16
  15. package/src/__tests__/vercel-stream-encoder.test.ts +263 -0
  16. package/src/adapters/index.ts +2 -0
  17. package/src/adapters/memory-adapter.ts +17 -9
  18. package/src/adapters/vercel-adapter.ts +148 -0
  19. package/src/agent-runtime.ts +27 -3
  20. package/src/agents/index.ts +1 -0
  21. package/src/agents/metadata-assistant-agent.ts +87 -0
  22. package/src/ai-service.ts +68 -36
  23. package/src/conversation/in-memory-conversation-service.ts +2 -2
  24. package/src/conversation/objectql-conversation-service.ts +67 -18
  25. package/src/index.ts +21 -2
  26. package/src/plugin.ts +166 -9
  27. package/src/routes/agent-routes.ts +26 -3
  28. package/src/routes/ai-routes.ts +156 -13
  29. package/src/stream/index.ts +3 -0
  30. package/src/stream/vercel-stream-encoder.ts +129 -0
  31. package/src/tools/add-field.tool.ts +70 -0
  32. package/src/tools/create-object.tool.ts +66 -0
  33. package/src/tools/delete-field.tool.ts +38 -0
  34. package/src/tools/describe-metadata-object.tool.ts +32 -0
  35. package/src/tools/index.ts +12 -1
  36. package/src/tools/list-metadata-objects.tool.ts +34 -0
  37. package/src/tools/metadata-tools.ts +430 -0
  38. package/src/tools/modify-field.tool.ts +44 -0
  39. package/src/tools/tool-registry.ts +32 -9
@@ -1,22 +1,22 @@
1
1
 
2
- > @objectstack/service-ai@4.0.1 build /home/runner/work/spec/spec/packages/services/service-ai
2
+ > @objectstack/service-ai@4.0.2 build /home/runner/work/framework/framework/packages/services/service-ai
3
3
  > tsup --config ../../../tsup.config.ts
4
4
 
5
5
  CLI Building entry: src/index.ts
6
6
  CLI Using tsconfig: tsconfig.json
7
7
  CLI tsup v8.5.1
8
- CLI Using tsup config: /home/runner/work/spec/spec/tsup.config.ts
8
+ CLI Using tsup config: /home/runner/work/framework/framework/tsup.config.ts
9
9
  CLI Target: es2020
10
10
  CLI Cleaning output folder
11
11
  ESM Build start
12
12
  CJS Build start
13
- ESM dist/index.js 49.00 KB
14
- ESM dist/index.js.map 106.10 KB
15
- ESM ⚡️ Build success in 168ms
16
- CJS dist/index.cjs 50.82 KB
17
- CJS dist/index.cjs.map 107.70 KB
18
- CJS ⚡️ Build success in 178ms
13
+ ESM dist/index.js 85.20 KB
14
+ ESM dist/index.js.map 181.90 KB
15
+ ESM ⚡️ Build success in 323ms
16
+ CJS dist/index.cjs 87.65 KB
17
+ CJS dist/index.cjs.map 184.29 KB
18
+ CJS ⚡️ Build success in 323ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 18643ms
21
- DTS dist/index.d.ts 149.83 KB
22
- DTS dist/index.d.cts 149.83 KB
20
+ DTS ⚡️ Build success in 21564ms
21
+ DTS dist/index.d.ts 157.82 KB
22
+ DTS dist/index.d.cts 157.82 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @objectstack/service-ai
2
2
 
3
+ ## 4.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 5f659e9: fix ai
8
+ - Updated dependencies [5f659e9]
9
+ - @objectstack/spec@4.0.2
10
+ - @objectstack/core@4.0.2
11
+
3
12
  ## 4.1.0
4
13
 
5
14
  ### Minor Changes