@rool-dev/client 0.4.6-dev.cb0118f → 0.4.6-dev.cf065fe

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 (2) hide show
  1. package/README.md +12 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -142,6 +142,17 @@ const client = new RoolClient({
142
142
  });
143
143
  ```
144
144
 
145
+ ---
146
+
147
+ ## AI Context Awareness
148
+
149
+ AI operations (`prompt`, `createObject`, `updateObject`, `findObjects`) automatically receive context from your session:
150
+
151
+ - **Conversation history** — Previous requests and responses in your session, so the AI understands references like "it", "them", or "the one I just created"
152
+ - **Recently modified objects** — Objects created or changed during your session, providing continuity across operations
153
+ - **Selected objects** — Objects passed via `objectIds` are given primary focus
154
+
155
+ This context flows automatically — no configuration needed. The AI sees enough history to maintain coherent multi-turn interactions while respecting the `_`-prefixed field hiding rules.
145
156
 
146
157
  ---
147
158
 
@@ -399,7 +410,7 @@ Store arbitrary data alongside the Space without it being part of the graph cont
399
410
 
400
411
  | Method | Description |
401
412
  |--------|-------------|
402
- | `prompt(prompt, options?): Promise<string | null>` | Invoke the AI agent to manipulate the space |
413
+ | `prompt(prompt, options?): Promise<string \| null>` | Invoke the AI agent to manipulate the space |
403
414
 
404
415
  The agent has editor-level capabilities — it can create, modify, delete, link, and research — but cannot modify `_`-prefixed fields. Use `checkpoint()` before prompting to make operations undoable.
405
416
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rool-dev/client",
3
- "version": "0.4.6-dev.cb0118f",
3
+ "version": "0.4.6-dev.cf065fe",
4
4
  "description": "TypeScript client library for the Rool API",
5
5
  "packageManager": "pnpm@10.17.1",
6
6
  "type": "module",