notesoup 0.61.0 → 0.63.0
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/.agents/plugins/marketplace.json +15 -0
- package/README.md +14 -11
- package/dist/plugins/antigravity/src/cli.d.ts +1 -0
- package/dist/plugins/antigravity/src/cli.js +23 -0
- package/dist/plugins/antigravity/src/hooks.d.ts +18 -0
- package/dist/plugins/antigravity/src/hooks.js +53 -0
- package/dist/plugins/antigravity/src/identity.d.ts +26 -0
- package/dist/plugins/antigravity/src/identity.js +129 -0
- package/dist/plugins/claude/src/helper.js +24 -5
- package/dist/plugins/claude/src/text.d.ts +7 -0
- package/dist/plugins/claude/src/text.js +12 -1
- package/dist/plugins/codex/src/hooks.js +1 -0
- package/dist/plugins/codex/src/identity.d.ts +6 -1
- package/dist/plugins/codex/src/identity.js +13 -1
- package/dist/plugins/codex/src/mcp.d.ts +35 -7
- package/dist/plugins/codex/src/mcp.js +26 -88
- package/dist/plugins/codex/src/text.js +3 -3
- package/dist/plugins/dsh/tools.js +8 -4
- package/dist/plugins/mcp/operations.d.ts +15 -0
- package/dist/plugins/mcp/operations.js +43 -0
- package/dist/plugins/mcp/server.d.ts +14 -0
- package/dist/plugins/mcp/server.js +13 -0
- package/dist/plugins/pi/budget.d.ts +4 -1
- package/dist/plugins/pi/budget.js +35 -8
- package/dist/plugins/pi/entries.d.ts +2 -0
- package/dist/plugins/pi/entries.js +2 -0
- package/dist/plugins/pi/history-tools.js +2 -1
- package/dist/plugins/pi/history.js +18 -1
- package/dist/plugins/pi/notes/tools.js +7 -3
- package/dist/plugins/pi/render.d.ts +7 -1
- package/dist/plugins/pi/render.js +2 -2
- package/dist/plugins/pi/reset/artifacts.d.ts +1 -1
- package/dist/plugins/pi/reset/artifacts.js +4 -4
- package/dist/plugins/pi/reset/lifecycle.d.ts +9 -2
- package/dist/plugins/pi/reset/lifecycle.js +109 -31
- package/dist/plugins/pi/runtime.js +104 -63
- package/dist/plugins/pi/tool-result.js +7 -7
- package/dist/plugins/pi/window.d.ts +25 -3
- package/dist/plugins/pi/window.js +219 -9
- package/dist/src/boot/render.js +18 -15
- package/dist/src/boot/text.d.ts +3 -1
- package/dist/src/boot/text.js +22 -20
- package/dist/src/budget/text.d.ts +7 -3
- package/dist/src/budget/text.js +24 -15
- package/dist/src/history/claude.d.ts +2 -0
- package/dist/src/history/claude.js +46 -0
- package/dist/src/history/codex-transcript.js +7 -5
- package/dist/src/history/codex.js +3 -0
- package/dist/src/history/corpus.d.ts +28 -1
- package/dist/src/history/corpus.js +40 -0
- package/dist/src/history/history.d.ts +37 -46
- package/dist/src/history/history.js +21 -40
- package/dist/src/history/local.js +67 -32
- package/dist/src/history/pi.d.ts +2 -1
- package/dist/src/history/pi.js +122 -48
- package/dist/src/history/prefilter.js +76 -19
- package/dist/src/history/query.d.ts +28 -49
- package/dist/src/history/query.js +83 -68
- package/dist/src/history/summary-cache.d.ts +8 -1
- package/dist/src/history/summary-cache.js +138 -12
- package/dist/src/index.d.ts +2 -2
- package/dist/src/index.js +1 -1
- package/dist/src/notes/errors.d.ts +1 -1
- package/dist/src/notes/frontmatter.d.ts +0 -2
- package/dist/src/notes/frontmatter.js +0 -2
- package/dist/src/notes/index.d.ts +1 -1
- package/dist/src/notes/index.js +1 -1
- package/dist/src/notes/policy.d.ts +15 -1
- package/dist/src/notes/policy.js +46 -5
- package/dist/src/notes/store.d.ts +12 -0
- package/dist/src/notes/store.js +16 -20
- package/dist/src/text-match.d.ts +10 -1
- package/dist/src/text-match.js +42 -3
- package/dist/src/tools/dream.d.ts +22 -93
- package/dist/src/tools/dream.js +30 -27
- package/dist/src/tools/history.d.ts +33 -26
- package/dist/src/tools/history.js +257 -163
- package/dist/src/tools/notes.d.ts +51 -163
- package/dist/src/tools/notes.js +146 -100
- package/dist/src/tools/output.d.ts +2 -1
- package/dist/src/tools/output.js +2 -1
- package/dist/src/tools/result.d.ts +4 -7
- package/dist/src/tools/result.js +8 -9
- package/dist/src/tools/schema.d.ts +4 -1
- package/dist/src/tools/schema.js +25 -1
- package/dist/test/agent-loop.test.js +394 -56
- package/dist/test/antigravity-live.test.d.ts +1 -0
- package/dist/test/antigravity-live.test.js +142 -0
- package/dist/test/antigravity-plugin.test.d.ts +1 -0
- package/dist/test/antigravity-plugin.test.js +101 -0
- package/dist/test/boot.integration.test.js +156 -15
- package/dist/test/budget-settings.integration.test.js +4 -4
- package/dist/test/claude-history.test.js +14 -13
- package/dist/test/claude-mod.test.js +199 -16
- package/dist/test/claude-validation.test.js +69 -2
- package/dist/test/codex-history.test.js +15 -3
- package/dist/test/codex-plugin.test.js +76 -38
- package/dist/test/dependencies.test.js +7 -3
- package/dist/test/dream-skill.test.js +3 -3
- package/dist/test/dream-tools.test.js +101 -56
- package/dist/test/dsh.test.js +34 -19
- package/dist/test/helpers/dependency-graph.js +2 -2
- package/dist/test/helpers/extension.d.ts +68 -3
- package/dist/test/helpers/extension.js +74 -5
- package/dist/test/history-corpus.test.js +79 -77
- package/dist/test/history-summary-cache.test.js +97 -9
- package/dist/test/history.integration.test.js +234 -168
- package/dist/test/host-neutral.test.js +69 -19
- package/dist/test/marker.test.js +1 -1
- package/dist/test/model-facing-text.test.js +13 -3
- package/dist/test/note-policy.test.js +96 -77
- package/dist/test/notes.integration.test.js +212 -94
- package/dist/test/notes.test.js +184 -113
- package/dist/test/pi-render.test.js +20 -12
- package/dist/test/project-namespace.test.js +3 -2
- package/dist/test/reset-lifecycle.test.js +12 -2
- package/docs/antigravity.md +44 -0
- package/docs/architecture.md +6 -4
- package/docs/claude-code-mod.md +7 -7
- package/docs/codex.md +36 -38
- package/docs/dsh.md +3 -3
- package/docs/history-sessions.md +28 -50
- package/docs/notes-library.md +4 -4
- package/docs/reset-lifecycle.md +1 -1
- package/docs/skills.md +3 -3
- package/docs/tool-results.md +47 -28
- package/package.json +3 -2
- package/playbook.md +1 -1
- package/plugins/antigravity/dist/antigravity/notesoup.js +26886 -0
- package/plugins/antigravity/hooks.json +7 -0
- package/plugins/antigravity/mcp_config.json +8 -0
- package/plugins/antigravity/plugin.json +6 -0
- package/plugins/antigravity/src/cli.ts +22 -0
- package/plugins/antigravity/src/hooks.ts +51 -0
- package/plugins/antigravity/src/identity.ts +127 -0
- package/plugins/claude/.claude-plugin/plugin.json +1 -1
- package/plugins/claude/dist/claude/helper.js +1108 -539
- package/plugins/claude/hooks/register.ts +202 -62
- package/plugins/claude/playbook.md +1 -1
- package/plugins/claude/skills/dream/SKILL.md +1 -1
- package/plugins/claude/skills/notesoup-guide/SKILL.md +92 -0
- package/plugins/claude/src/helper.ts +24 -5
- package/plugins/claude/src/text.ts +14 -1
- package/plugins/codex/.codex-plugin/plugin.json +8 -0
- package/plugins/codex/.mcp.json +11 -0
- package/plugins/codex/README.md +5 -21
- package/plugins/codex/dist/codex/notesoup.js +18480 -17946
- package/plugins/codex/src/hooks.ts +1 -0
- package/plugins/codex/src/identity.ts +14 -1
- package/plugins/codex/src/mcp.ts +28 -98
- package/plugins/codex/src/text.ts +3 -3
- package/plugins/dsh/tools.ts +8 -4
- package/plugins/mcp/operations.ts +50 -0
- package/plugins/mcp/server.ts +23 -0
- package/plugins/paseo/README.md +5 -10
- package/plugins/paseo/client/brain-empty-card.tsx +3 -3
- package/plugins/paseo/client/markdown.tsx +50 -38
- package/plugins/paseo/client/notes-op-card.tsx +12 -9
- package/plugins/paseo/client/paper-card.tsx +6 -5
- package/plugins/paseo/client/paper-palette.ts +2 -9
- package/plugins/paseo/client/sticky-card.tsx +2 -2
- package/plugins/paseo/client/tool-result.ts +7 -14
- package/plugins/paseo/package-lock.json +3406 -0
- package/plugins/paseo/package.json +1 -0
- package/plugins/paseo/test/markdown-core.test.ts +73 -66
- package/plugins/pi/budget.ts +31 -8
- package/plugins/pi/entries.ts +2 -0
- package/plugins/pi/history-tools.ts +2 -1
- package/plugins/pi/history.ts +30 -1
- package/plugins/pi/notes/tools.ts +7 -3
- package/plugins/pi/render.ts +6 -6
- package/plugins/pi/reset/artifacts.ts +4 -3
- package/plugins/pi/reset/lifecycle.ts +125 -32
- package/plugins/pi/runtime.ts +98 -62
- package/plugins/pi/tool-result.ts +8 -8
- package/plugins/pi/window.ts +210 -10
- package/skills/dream/SKILL.md +1 -1
- package/skills/notesoup-guide/SKILL.md +92 -0
- package/src/boot/render.ts +18 -15
- package/src/boot/text.ts +23 -19
- package/src/budget/text.ts +27 -15
- package/src/history/claude.ts +41 -0
- package/src/history/codex-transcript.ts +6 -4
- package/src/history/codex.ts +2 -0
- package/src/history/corpus.ts +51 -2
- package/src/history/history.ts +35 -44
- package/src/history/local.ts +67 -27
- package/src/history/pi.ts +113 -35
- package/src/history/prefilter.ts +73 -15
- package/src/history/query.ts +93 -73
- package/src/history/summary-cache.ts +142 -17
- package/src/index.ts +2 -2
- package/src/notes/errors.ts +1 -1
- package/src/notes/frontmatter.ts +0 -3
- package/src/notes/index.ts +1 -1
- package/src/notes/policy.ts +44 -5
- package/src/notes/store.ts +17 -20
- package/src/text-match.ts +46 -4
- package/src/tools/dream.ts +29 -31
- package/src/tools/history.ts +249 -142
- package/src/tools/notes.ts +145 -113
- package/src/tools/output.ts +2 -1
- package/src/tools/result.ts +12 -11
- package/src/tools/schema.ts +24 -1
- package/plugins/claude/skills/memory/SKILL.md +0 -69
- package/plugins/codex/mcp.json +0 -10
- package/plugins/codex/plugin.json +0 -6
- package/plugins/paseo/client/markdown-core.tsx +0 -189
- package/plugins/paseo/client/typography.ts +0 -24
- package/skills/memory/SKILL.md +0 -69
package/docs/reset-lifecycle.md
CHANGED
|
@@ -16,7 +16,7 @@ Pi reset control lives in `plugins/pi/reset/lifecycle.ts`: the pure `reduceReset
|
|
|
16
16
|
| Passive provider overflow / recoverable length | With automatic reset enabled, force a retain-none reset and continue once from notes, without replaying the failed request's input. |
|
|
17
17
|
| Command close-out overflow | Force a reset even if automatic reset is disabled. Apply command policy: continue with separate carried input, otherwise stop. The recovery attempt is spent, so an oversized carried prompt cannot loop. |
|
|
18
18
|
| Budget warning | Stage reminders when automatic reset is enabled. Warnings alone never authorize reset. |
|
|
19
|
-
| Hard reserve |
|
|
19
|
+
| Hard reserve | When automatic reset is enabled: mid-turn work (tool batch, pre-send cutoff, queued input, or manual close-out) resets at `turn_end` and continues without replaying already-submitted text/images. For a clean final answer: non-erasing modes (`rpc`, `json`, `print`) rotate quietly at `turn_end` with `betweenTurns: true` and `continue: false` (no ghost turn, no `input` interception); Pi TUI (`mode === "tui"`) keeps the reply visible on screen and rolls over cleanly on the next idle interactive input whenever that input would exceed hard reserve and still fits a fresh window (preserving `/skill:*` and prompt-template expansion), while an oversized paste falls back to pre-send history reset. A command stop latch cancels empty tool follow-ups, but never real queued or carried human input. |
|
|
20
20
|
| Abort / ordinary error | Restore stashed originals as visible user-content custom messages before clearing command state. Explicit abort stays stopped; ordinary close-out errors trigger a turn for the restored input without forcing a reset. |
|
|
21
21
|
| `/compact` while active | Cancel native compaction; manual attempts receive a `/fresh-window` notice. |
|
|
22
22
|
|
package/docs/skills.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Skills and dream
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## Notesoup guide skill
|
|
4
4
|
|
|
5
|
-
The package provides `/skill:
|
|
5
|
+
The package provides `/skill:notesoup-guide`, a short self-contained guide to the notes and history tools: note addresses and notebooks, finding and paging notes, searching and paging history, saving recovery state, and what to do when a memory tool is unavailable. It is a fallback for sessions where the boot protocol is missing or unclear and a reference on demand; normal tool calls do not require reading it. It is written independently of the boot text rather than generated from it. The Claude Code Mod ships the same guide; current-session history requires the documented main-session transcript path and a confirmed append head, while explicit `session` selectors use the local cross-harness corpus (offline Claude prefers non-attachment leaves, then the last leaf in transcript order).
|
|
6
6
|
|
|
7
7
|
## Dream
|
|
8
8
|
|
|
@@ -10,7 +10,7 @@ The package provides `/skill:memory`, a short self-contained guide to the notes
|
|
|
10
10
|
|
|
11
11
|
In Pi the session gets three hidden `dream_*` tools; they are not declared to the model and are found with `tool_search` or codemode's `searchTools("dream")`:
|
|
12
12
|
|
|
13
|
-
- `dream_begin(
|
|
13
|
+
- `dream_begin(cwd?)` opens one project, by default the current one, as in `@projects/<name>/`. Pass `cwd` to select a directory's project (relative paths resolve against the host cwd). It lists that project's notes and every session note whose frontmatter `project` names it, crumpled notes included. While it is open, `notes_write` and `notes_update` may edit those addresses (existing notes only in other sessions), and reads leave no access stamp. Other projects stay read-only.
|
|
14
14
|
- `dream_forget(address)` permanently deletes one crumpled note within reach; live notes refuse.
|
|
15
15
|
- `dream_end()` closes the dream.
|
|
16
16
|
|
package/docs/tool-results.md
CHANGED
|
@@ -1,24 +1,21 @@
|
|
|
1
1
|
# Notes and history tool results
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Notes, dream and history tools return the same rendered results across Pi, Claude Code, Codex, Antigravity and Cordis. Only `notes_read` also returns structured data where supported.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Stored notes and raw session entries are not rewritten by this protocol change. In Pi, `get_context_remaining` independently declares `{ remaining_tokens }` as its output schema; `empty_brain` remains outside this protocol.
|
|
6
6
|
|
|
7
7
|
## Results
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
type Result<T> = T | { error: string; code: string };
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
Each operation declares its concrete success schema; `error` is reserved for a refusal message. Success and expected failure both have a structured result; Pi's `isError` follows the outcome. Host-level argument validation, blocked execution and transport errors remain host failures. Shared handlers return an internal `Outcome<T>` (`{ ok: true, data }` or `{ ok: false, error: { code, message } }`); this envelope is not the Pi wire result. The Claude hook returns rendered text as a string result and sets `isError: true` only on a refusal.
|
|
9
|
+
In Pi codemode and DSH, all shared tools except `notes_read` return strings. Pi and MCP also provide `notes_read` as structured data; in Claude Code it is text only.
|
|
14
10
|
|
|
15
11
|
```js
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
return result.files;
|
|
12
|
+
const note = await tools.notes_read({ address: "plan.md" });
|
|
13
|
+
return note.text;
|
|
19
14
|
```
|
|
20
15
|
|
|
21
|
-
|
|
16
|
+
A refusal displays `error: <code>: <message>`. Pi and MCP mark the call as failed (`isError: true`); Pi codemode throws an `Error`, and DSH throws a `HarnessError` with the refusal code. On Pi and MCP, `notes_read` additionally returns `{ error, code }` on refusal.
|
|
17
|
+
|
|
18
|
+
When an edit fails, the message identifies the failing edit and, for ambiguous text, the matching lines.
|
|
22
19
|
|
|
23
20
|
## Per-call project selection
|
|
24
21
|
|
|
@@ -26,7 +23,7 @@ All four notes tools accept optional `cwd`. Omitted means the host session's cur
|
|
|
26
23
|
|
|
27
24
|
## Read windows
|
|
28
25
|
|
|
29
|
-
|
|
26
|
+
`notes_read` returns these fields at the structured result root, alongside identity and metadata:
|
|
30
27
|
|
|
31
28
|
```ts
|
|
32
29
|
{
|
|
@@ -39,14 +36,14 @@ Both read operations return these fields at the result root, alongside identity
|
|
|
39
36
|
Positions count Unicode code points, not UTF-16 units or UTF-8 bytes. The returned text is a contiguous unmodified prefix of the requested range, without ellipsis markers. `next_offset_chars` names the first undelivered character, or is null at the true end. A negative input offset selects a tail; the delivered window does not echo the offset it resolved.
|
|
40
37
|
|
|
41
38
|
- `notes_read`: `address`, optional `project_key`, and `metadata` accompany the text fields. Positions address only the note **body**. Access counts and last-access times remain stored; only `dream_begin` rows report last access.
|
|
42
|
-
- `history_read`:
|
|
39
|
+
- `history_read`: the rendered header identifies the seq, role and any tool summary. Explicit session targeting also displays the canonical session. Positions address one deterministic document derived from the event's facts. Query matches address that same document, not its decorated presentation.
|
|
43
40
|
|
|
44
41
|
Repeated note reads observe the current file; this is not a retained snapshot service. A concurrent body edit can change positions. History reflects the active branch and recorded facts, including a result that may arrive after a pending call was first observed.
|
|
45
42
|
|
|
46
|
-
Text rendering puts identity and relevant metadata above the payload. Only an incomplete read receives a continuation suffix, which
|
|
43
|
+
Text rendering puts identity and relevant metadata above the payload. Only an incomplete read receives a continuation suffix, which states how much of the document was delivered and where to resume:
|
|
47
44
|
|
|
48
45
|
```text
|
|
49
|
-
[truncated; continue at offset_chars=12000]
|
|
46
|
+
[truncated at 12000/45000 chars; continue at offset_chars=12000]
|
|
50
47
|
```
|
|
51
48
|
|
|
52
49
|
The suffix and presentation header are never part of `text`, search offsets or total character counts. At the end there is no completion footer.
|
|
@@ -55,31 +52,55 @@ The suffix and presentation header are never part of `text`, search offsets or t
|
|
|
55
52
|
|
|
56
53
|
The native adapter allocates seqs from session append order, selects the active branch and decodes facts. Shared history pairs calls and results without allocating a second transcript. A paired execution is addressed by its call seq. Its result's raw slot is not a public event address; list/search provide the canonical seq. Unpaired results remain independently addressable. Inactive-branch addresses are not readable.
|
|
57
54
|
|
|
58
|
-
Seqs address events across the whole session, including earlier windows. With `session` omitted,
|
|
55
|
+
Seqs address events across the whole session, including earlier windows. With `session` omitted, headers use `seq <seq> | <role>` plus the event's local ISO timestamp when recorded (`seq <seq> | <role> | <timestamp>`); the boot window tree supplies seq ranges for narrowing `history_list` with `after` and `before`. With an explicit selector, `history_list` and `history_search` print `=== session <harness>:<id> ===` once above that session's rows, `history_read` uses `session <harness>:<id> | seq <seq> | <role> | <timestamp>`, and all paging/expand/neighborhood recipes carry that same identity. Untimed events omit the timestamp segment. Wildcard selectors in `history_list` and `history_search` accept `since` / `until` time bounds and report whether more results may exist beyond the page. See [cross-session history](history-sessions.md) for discovery, representative selection and refusal rules.
|
|
59
56
|
|
|
60
|
-
Tool
|
|
57
|
+
Tool event headers expose the tool name, status and, when recorded, truncation and full output path; a truncated run is named even when the host recorded no path, and the full text path is named only when it exists. `history_read` also reports nested-call counts and completeness; a page row does not. Full arguments and nested-call records live only in the searchable/readable document, without duplicating the document.
|
|
61
58
|
|
|
62
59
|
Pi's nested records contain child ID, name, optional arguments, status, timing and error, plus completeness. They contain **no child result bodies**. Absent records do not establish that no nested work occurred. Host-omitted arguments and unfinished calls remain visible as incomplete evidence. Child records belong to their parent event and do not consume seqs.
|
|
63
60
|
|
|
64
|
-
`history_read` reports
|
|
61
|
+
`history_read` reports the count and completeness of nested calls exactly as recorded: the count is every record the host stored, even if the current text slice contains none of them. Continue at the displayed `offset_chars` to recover the entire recorded document. Both a call's result and an unpaired result carry their recorded evidence; neither invents the call the other one is missing. Query results contain event rows only; folded rows exist only in the browse view.
|
|
65
62
|
|
|
66
63
|
## Bounds and continuation
|
|
67
64
|
|
|
68
|
-
|
|
65
|
+
### Notes
|
|
66
|
+
|
|
67
|
+
`notes_list` with a non-empty `query` returns only matching notes and displays hit lines with their line numbers and `offset_chars`, plus a count when lines are omitted. `max_matches_per_note` requires a query. `notes_list` shows the newest page and, when more match, ends with `→ older: {…}`: pass that object back to keep reading older notes; it carries `cursor` as `<updated_at> <address>`. Paging continues from the last shown note, so an edited note cannot repeat. Omit `glob` for current notebooks or supply a non-empty glob to narrow or widen the selection.
|
|
68
|
+
|
|
69
|
+
`notes_write` and `notes_update` accept optional `pinned`, `readonly`, and `description` fields (`budget` is a frontmatter-only override, not a model tool parameter). Their receipts and list/search rows display only policy that differs from the note's path defaults (`pinned`, `pinned false` on an unpinned root `CHEATSHEET.md`, `budget <N>`, `readonly`), while read metadata keeps the full effective policy (with `description` included on read metadata and list/search rows when present). Warnings render inside `<notesoup:warning>...</notesoup:warning>` when a body exceeds its UTF-8 byte budget (4096 bytes for root `CHEATSHEET.md`, 8192 bytes for ordinary notes) or when `description` exceeds the boot-index display cap. Both save whole; boot truncates over-budget pinned bodies at the budget boundary (`[truncated at X/Y; offset_chars=X]`) and places warnings outside the note frame. Pi's write/update/read cards display policy and warnings even when collapsed. Pi shows the update diff in the expanded card; the tool response stays a short receipt.
|
|
70
|
+
|
|
71
|
+
A readonly note refuses mutations with `readonly` until explicitly unlocked with `readonly:false`; this is a soft lock, not security. Pin admission refuses a sixth live pin per notebook with `pin_limit`, including restore/move/rename. Invalid policy fields refuse with `invalid_policy`.
|
|
69
72
|
|
|
70
|
-
|
|
73
|
+
A note read reports unrecognized frontmatter under `metadata.extra`; a value too large to carry, or past the verbatim budget, is named in place as `[omitted: too large]` under its key, and the value itself stays in the note file. A rename receipt displays both source and destination.
|
|
71
74
|
|
|
72
|
-
|
|
75
|
+
`notes_update` takes `replace_all` for the whole call and `edits[].replace_all` for one edit; a per-edit value overrides the call default for that edit, so one atomic update can mix unique-match edits with multi-occurrence ones.
|
|
73
76
|
|
|
74
|
-
|
|
77
|
+
### Shared bounds
|
|
75
78
|
|
|
76
|
-
A
|
|
79
|
+
A result fits within 32 KiB of UTF-8, including the headers, notices and continuation footers
|
|
80
|
+
you see. For `notes_read`, the structured result must also fit within 32 KiB when encoded as
|
|
81
|
+
JSON.
|
|
77
82
|
|
|
78
|
-
|
|
83
|
+
Queries are literal and case-insensitive; a list matches any entry, ignoring empty entries. In `notes_list`, an empty or omitted query browses; in `history_search`, `query` is required and an empty query returns no matches.
|
|
79
84
|
|
|
80
|
-
A
|
|
85
|
+
A read that cannot deliver a single advancing character refuses with `output_too_large` rather
|
|
86
|
+
than returning an empty window. A concurrent change to the source can invalidate a previously
|
|
87
|
+
observed offset.
|
|
81
88
|
|
|
82
|
-
|
|
89
|
+
A shortened note search match ends with ` [truncated]`; a shortened history preview appends the same ` [truncated]` and names its starting character position as ` | offset_chars <N>` on the header line. The markers are not part of either source document.
|
|
90
|
+
|
|
91
|
+
Narrowing helps only when a parameter actually reduces the selection. A read whose own metadata
|
|
92
|
+
or header overflows cannot be repaired by narrowing a list or search.
|
|
93
|
+
|
|
94
|
+
If a result omits entries or cuts a preview short, it tells you. Text and structured note reads
|
|
95
|
+
refer to the same slice.
|
|
96
|
+
|
|
97
|
+
### History
|
|
98
|
+
|
|
99
|
+
- `history_list` browses a single timeline in ascending seq order, or lists one representative event per session when given a wildcard `session` (e.g. `*` or `pi:*`). For a single timeline, `after` and `before` are exclusive integer seqs (with `after: 0` starting at the beginning), optional `since` / `until` filter by ISO 8601 time, and without `roles`, tool/context runs fold and don't count against `limit` (use `→ expand` to see them). Follow `→ older` or `→ newer` to keep paging with the same options. For wildcard sessions, `after` / `before` are refused; use `since` / `until` and `roles`.
|
|
100
|
+
- `history_search` finds literal, case-insensitive text (`query` required; a list means any match, and an empty query returns no matches), including tool arguments and output. Search one session or a wildcard such as `*`. Use exclusive ISO 8601 `since` / `until` bounds (local time without an offset); without `since` take the newest matches. `context: N` adds visible neighbors on either side of a hit, even outside its filters, without consuming `limit`. If more results exist, narrow the time range, query, roles or session pattern.
|
|
101
|
+
- `history_read` opens one event using `seq`, the session shown above it if any, and the header's `offset_chars` if shown. Follow `offset_chars` to continue a long read. Concatenate text slices without headers or footers before parsing any recorded arguments.
|
|
102
|
+
|
|
103
|
+
Both list and search default to 20 events or hits/sessions, with a 32 KiB UTF-8 text limit including session headings, notices and footers. Limit previews with `max_chars_per_item`; if a page cannot fit, narrow your request or read a single event.
|
|
83
104
|
|
|
84
105
|
## Ownership
|
|
85
106
|
|
|
@@ -90,5 +111,3 @@ A note read reports unrecognized frontmatter under `metadata.extra`; a value too
|
|
|
90
111
|
- Host adapters supply base cwd, default identity, projections, optional pure text decoration and transport packaging only; they do not implement separate cwd override algorithms.
|
|
91
112
|
|
|
92
113
|
There is no second query implementation for codemode, no copy of session storage and no migration of user records.
|
|
93
|
-
|
|
94
|
-
In single-session browse pages, `items` contains events only. A folded tool/context run appears in `folded_before` on the following event, or in `folded_after` at the end of the page. Folded runs do not count toward the event limit.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "notesoup",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.63.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/src/index.js",
|
|
6
6
|
"types": "./dist/src/index.d.ts",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"import": "./dist/plugins/dsh/engine.js"
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
|
-
"description": "Host-neutral notes, history and context-window core, with plugins for Pi, Claude Code, the DeepSeek Harness and
|
|
26
|
+
"description": "Host-neutral notes, history and context-window core, with plugins for Pi, Claude Code, the DeepSeek Harness, Codex and Antigravity.",
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"keywords": [
|
|
29
29
|
"pi-package",
|
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
"files": [
|
|
49
49
|
"src",
|
|
50
50
|
"plugins",
|
|
51
|
+
".agents/plugins/marketplace.json",
|
|
51
52
|
"dist",
|
|
52
53
|
"docs",
|
|
53
54
|
"LICENSE",
|
package/playbook.md
CHANGED
|
@@ -27,7 +27,7 @@ Durable notes hold decisions, constraints, and lessons that stay true after the
|
|
|
27
27
|
5. **Relocate misfiled notes.** When a standing ruling or the note's own `description` already names its proper notebook, move it there, preserving its metadata, and keep its `description` true. Do it, don't propose it. Propose only when the destination notebook itself is unclear.
|
|
28
28
|
6. **Preserve meaning and provenance.** Keep facts, conditions, exceptions, uncertainty, authorship, and sources. When promoting a finding, cite its source. Do not relabel agent-authored material as human-authored. If its destination or authority is unclear, propose the promotion instead.
|
|
29
29
|
7. **Keep notes manageable.** Aim below about 200 lines / 8KB per note. Split oversized notes by topic with one-line cross-links.
|
|
30
|
-
8. **Keep wake-up pages useful.** Each writable notebook's `CHEATSHEET.md` holds standing reminders
|
|
30
|
+
8. **Keep wake-up pages useful.** Each writable notebook's `CHEATSHEET.md` holds compact standing reminders; it is the one default-pinned page and loads every window when live unless explicitly unpinned. Every durable note gets a short one-line `description` saying what it holds and when to open it — boot lists each notebook's unpinned notes newest first from these, so a missing, stale, or vague description hides the page. A hand-written `MAP.md` is an ordinary note now; once its lines live in `description`s, crumple it. Do not create empty pages. Pin slots per notebook are capped, and each page carries a UTF-8 byte budget (4 KB for `CHEATSHEET.md`, 8 KB for ordinary notes; overridable in frontmatter); overflow warns, and boot truncates over-budget pinned bodies. Preserve standing rules and keep descriptions true as notes are promoted or retired.
|
|
31
31
|
|
|
32
32
|
## Deleting
|
|
33
33
|
|