@rool-dev/cli 0.1.13-dev.52d2a0b → 0.1.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rool-dev/cli",
3
- "version": "0.1.13-dev.52d2a0b",
3
+ "version": "0.1.13",
4
4
  "description": "Command-line interface for working with Rool Spaces",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -38,7 +38,7 @@
38
38
  "commander": "^14.0.3",
39
39
  "marked": "^15.0.12",
40
40
  "marked-terminal": "^7.3.0",
41
- "@rool-dev/sdk": "0.1.28"
41
+ "@rool-dev/sdk": "0.1.26"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/archiver": "^7.0.0",
@@ -20,13 +20,15 @@ node_modules/@rool-dev/sdk/README.md # The core SDK
20
20
 
21
21
  **RoolClient** - Authentication and space lifecycle. One per app.
22
22
 
23
- **ReactiveSpace** - The workspace. Contains objects and conversations.
23
+ **ReactiveSpace** - The workspace. Contains objects, relations, and conversations.
24
24
  - `space.collection({ where? })` - Reactive query returning `{ objects }`
25
25
  - `space.prompt(text)` - Invoke AI to create/modify objects
26
26
  - `space.checkpoint()` - Create undo point before mutations
27
27
  - `space.interactions` - Chat history for current conversation
28
28
 
29
- **Objects** - Key-value records with `id` field. Created via `space.createObject()` or AI. References between objects are data fields whose values are object IDs.
29
+ **Objects** - Key-value records with `id` field. Created via `space.createObject()` or AI.
30
+
31
+ **Relations** - Directional links between objects via `space.link(source, relation, target)`.
30
32
 
31
33
  ## Key Patterns
32
34
 
@@ -19,13 +19,15 @@ node_modules/@rool-dev/sdk/README.md
19
19
 
20
20
  **RoolClient** - Authentication and space lifecycle. One per app.
21
21
 
22
- **RoolSpace** - The workspace. Contains objects and conversations.
22
+ **RoolSpace** - The workspace. Contains objects, relations, and conversations.
23
23
  - `space.prompt(text)` - Invoke AI to create/modify objects
24
24
  - `space.checkpoint()` - Create undo point before mutations
25
25
  - `space.on(event, handler)` - Subscribe to real-time events
26
26
  - `space.findObjects({ where? })` - Query objects
27
27
 
28
- **Objects** - Key-value records with `id` field. Created via `space.createObject()` or AI. References between objects are data fields whose values are object IDs.
28
+ **Objects** - Key-value records with `id` field. Created via `space.createObject()` or AI.
29
+
30
+ **Relations** - Directional links between objects via `space.link(source, relation, target)`.
29
31
 
30
32
  ## Event-Driven Pattern
31
33
 
@@ -39,6 +41,8 @@ space.on('objectCreated', ({ objectId, object, source }) => {
39
41
 
40
42
  space.on('objectUpdated', ({ objectId, object }) => { ... });
41
43
  space.on('objectDeleted', ({ objectId }) => { ... });
44
+ space.on('linked', ({ sourceId, relation, targetId }) => { ... });
45
+ space.on('unlinked', ({ sourceId, relation, targetId }) => { ... });
42
46
  ```
43
47
 
44
48
  ## Key Pattern