refactor(core): finish TypeScript workspace migration
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# Obelisk -- Helper API Reference
|
||||
|
||||
Detailed reference for globals available inside `runtime.mjs --query` and
|
||||
`runtime.mjs --attune` scripts.
|
||||
Detailed reference for globals available inside `runtime.js --query` and
|
||||
`runtime.js --attune` scripts.
|
||||
|
||||
- Use `references/schema.md` for raw SQL table/field/join checks.
|
||||
- Use `references/query-patterns.md` for copyable retrieval plans.
|
||||
@@ -16,7 +16,7 @@ memory mutation helpers.
|
||||
|
||||
### Read Helpers
|
||||
|
||||
These globals are available only in `runtime.mjs --query` scripts:
|
||||
These globals are available only in `runtime.js --query` scripts:
|
||||
|
||||
```js
|
||||
sql, search, context, trace, thread, raw,
|
||||
@@ -31,7 +31,7 @@ helpers is treated as `sessionId`; passing a number is treated as `limit`.
|
||||
|
||||
### Mutation Helpers
|
||||
|
||||
These globals are available only in `runtime.mjs --attune` scripts:
|
||||
These globals are available only in `runtime.js --attune` scripts:
|
||||
|
||||
```js
|
||||
remember, forget
|
||||
@@ -413,7 +413,7 @@ not a counting primitive.
|
||||
#### `remember(record)`
|
||||
|
||||
Register a human-approved markdown memory file. Available only in
|
||||
`runtime.mjs --attune` scripts.
|
||||
`runtime.js --attune` scripts.
|
||||
|
||||
| Param | Type | Description |
|
||||
| --- | --- | --- |
|
||||
@@ -439,7 +439,7 @@ Returns:
|
||||
#### `forget(record)`
|
||||
|
||||
Archive a human-approved memory record. Available only in
|
||||
`runtime.mjs --attune` scripts.
|
||||
`runtime.js --attune` scripts.
|
||||
|
||||
| Param | Type | Description |
|
||||
| --- | --- | --- |
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Obelisk Query Patterns
|
||||
|
||||
These are copyable CodeAct patterns for `runtime.mjs --query` scripts plus
|
||||
These are copyable CodeAct patterns for `runtime.js --query` scripts plus
|
||||
`--attune` memory mutation patterns. They are not new APIs. Adapt them to the
|
||||
user's scope and return compact evidence.
|
||||
|
||||
@@ -179,7 +179,7 @@ Use this only after the user approves writing memory and the markdown file
|
||||
already exists. `remember()` validates the file and stores a normalized absolute
|
||||
path, so keep the script small and return the registered record.
|
||||
|
||||
Run this script with `runtime.mjs --attune <script>`. The `--attune` runtime
|
||||
Run this script with `runtime.js --attune <script>`. The `--attune` runtime
|
||||
exposes only `remember()` and `forget()`, not retrieval helpers.
|
||||
|
||||
```js
|
||||
@@ -204,7 +204,7 @@ the exact memory ID in a normal `--query` script first. If one candidate clearly
|
||||
matches the user's request, that request is approval to archive it; if several
|
||||
candidates match, ask which one to forget.
|
||||
|
||||
Run the mutation with `runtime.mjs --attune <script>`:
|
||||
Run the mutation with `runtime.js --attune <script>`:
|
||||
|
||||
```js
|
||||
return forget({
|
||||
|
||||
Reference in New Issue
Block a user