trucontext 0.7.0 → 0.7.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 +25 -15
- package/package.json +1 -1
- package/src/commands/roots.js +2 -2
package/README.md
CHANGED
|
@@ -17,17 +17,20 @@ That's it. No API keys to copy, no config files to edit. Browser-based OAuth, th
|
|
|
17
17
|
## The 30-Second Version
|
|
18
18
|
|
|
19
19
|
```bash
|
|
20
|
-
# Create
|
|
21
|
-
npx trucontext
|
|
22
|
-
--
|
|
23
|
-
--
|
|
20
|
+
# Create a root node — the intelligence boundary for your agent's memory
|
|
21
|
+
npx trucontext roots create --id dustin --type Person \
|
|
22
|
+
--recipe recipe:personal-assistant-memory \
|
|
23
|
+
--properties '{"name": "Dustin", "role": "founder"}'
|
|
24
|
+
|
|
25
|
+
# Set it as the active root for queries
|
|
26
|
+
npx trucontext roots use dustin
|
|
24
27
|
|
|
25
28
|
# Ingest what your agent learned
|
|
26
29
|
npx trucontext ingest "Dustin prefers async communication and dark mode. \
|
|
27
30
|
He values clean code over backwards compatibility." \
|
|
28
31
|
--context dustin:ABOUT --confidence 0.85 --temporal
|
|
29
32
|
|
|
30
|
-
# Ask an intelligent question
|
|
33
|
+
# Ask an intelligent question (scoped to the root's ego network)
|
|
31
34
|
npx trucontext query "What does Dustin prefer?"
|
|
32
35
|
```
|
|
33
36
|
|
|
@@ -135,28 +138,35 @@ Observe → Capture → Sleep → Wake → Query → Observe → ...
|
|
|
135
138
|
### Apps
|
|
136
139
|
| Command | Description |
|
|
137
140
|
|---------|-------------|
|
|
138
|
-
| `init [name]` | Create a new app with
|
|
141
|
+
| `init [name]` | Create a new app with schema + root node |
|
|
139
142
|
| `apps` | List your apps |
|
|
140
143
|
| `use <app>` | Set the active app |
|
|
141
144
|
|
|
145
|
+
### Root Nodes
|
|
146
|
+
| Command | Description |
|
|
147
|
+
|---------|-------------|
|
|
148
|
+
| `roots create` | Create a root node with recipe and dreamers |
|
|
149
|
+
| `roots list` | List all root nodes |
|
|
150
|
+
| `roots show <id>` | Show root node details and linked roots |
|
|
151
|
+
| `roots update <id>` | Update recipe, dreamers, or properties |
|
|
152
|
+
| `roots delete <id>` | Demote to regular entity |
|
|
153
|
+
| `roots use <id>` | Set active root for queries |
|
|
154
|
+
|
|
142
155
|
### Data
|
|
143
156
|
| Command | Description |
|
|
144
157
|
|---------|-------------|
|
|
145
|
-
| `ingest <source>` | Ingest text or file
|
|
146
|
-
| `query <question>` | Query the
|
|
147
|
-
| `recall <query>` | Semantic
|
|
158
|
+
| `ingest <source>` | Ingest text or file (requires `--context`) |
|
|
159
|
+
| `query <question>` | Query the graph (requires active root or `--root`) |
|
|
160
|
+
| `recall <query>` | Semantic recall (requires active root or `--root`) |
|
|
148
161
|
|
|
149
|
-
###
|
|
162
|
+
### Entities
|
|
150
163
|
| Command | Description |
|
|
151
164
|
|---------|-------------|
|
|
152
165
|
| `entities list` | List entities |
|
|
153
|
-
| `entities create` | Create entity
|
|
166
|
+
| `entities create` | Create entity (requires `--context`) |
|
|
154
167
|
| `entities get <id>` | Get entity details |
|
|
155
|
-
| `entities update <id>` | Update
|
|
168
|
+
| `entities update <id>` | Update properties, recipe, heartbeat |
|
|
156
169
|
| `entities delete <id>` | Delete entity |
|
|
157
|
-
| `contexts list` | List contexts |
|
|
158
|
-
| `contexts create <name>` | Create a scoping context |
|
|
159
|
-
| `contexts delete <id>` | Delete context |
|
|
160
170
|
|
|
161
171
|
### Intelligence
|
|
162
172
|
| Command | Description |
|
package/package.json
CHANGED
package/src/commands/roots.js
CHANGED
|
@@ -20,7 +20,7 @@ export function registerRootsCommand(program) {
|
|
|
20
20
|
.requiredOption('--id <entityId>', 'Unique identifier for the root node')
|
|
21
21
|
.requiredOption('--type <type>', 'Node type (e.g., Person, Agent, Organization)')
|
|
22
22
|
.requiredOption('--recipe <recipeId>', 'Recipe ID (e.g., recipe:personal-assistant-memory)')
|
|
23
|
-
.option('--dreamers <list>', 'Dreamers: "all" or comma-separated
|
|
23
|
+
.option('--dreamers <list>', 'Dreamers: "all" or comma-separated. Valid: decay, concepts, people, primitives, curiosity, entity-linking, consolidation, fitness', 'all')
|
|
24
24
|
.option('--hop-depth <n>', 'Max traversal depth for ego network (default: unlimited)', parseInt)
|
|
25
25
|
.option('--do-not-follow', 'Mark as structural root — do not traverse into from other roots')
|
|
26
26
|
.option('--properties <json>', 'JSON properties object')
|
|
@@ -128,7 +128,7 @@ export function registerRootsCommand(program) {
|
|
|
128
128
|
.command('update <rootId>')
|
|
129
129
|
.description('Update a root node')
|
|
130
130
|
.option('--recipe <recipeId>', 'New recipe ID')
|
|
131
|
-
.option('--dreamers <list>', 'New dreamers: "all" or comma-separated')
|
|
131
|
+
.option('--dreamers <list>', 'New dreamers: "all" or comma-separated. Valid: decay, concepts, people, primitives, curiosity, entity-linking, consolidation, fitness')
|
|
132
132
|
.option('--hop-depth <n>', 'New hop depth', parseInt)
|
|
133
133
|
.option('--do-not-follow', 'Set do-not-follow flag')
|
|
134
134
|
.option('--no-do-not-follow', 'Clear do-not-follow flag')
|