notesoup 0.59.2 → 0.60.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.
Files changed (78) hide show
  1. package/README.md +3 -17
  2. package/dist/plugins/claude/src/helper.js +1 -2
  3. package/dist/plugins/codex/src/mcp.js +1 -2
  4. package/dist/plugins/dsh/tools.js +1 -2
  5. package/dist/plugins/pi/notes/tools.d.ts +1 -1
  6. package/dist/plugins/pi/notes/tools.js +2 -3
  7. package/dist/src/dream/git.js +12 -13
  8. package/dist/src/history/history.d.ts +10 -11
  9. package/dist/src/history/history.js +8 -19
  10. package/dist/src/history/query.d.ts +3 -14
  11. package/dist/src/history/query.js +73 -85
  12. package/dist/src/index.d.ts +1 -1
  13. package/dist/src/index.js +1 -1
  14. package/dist/src/notes/address.js +3 -3
  15. package/dist/src/notes/project-namespace.js +39 -73
  16. package/dist/src/notes/store.d.ts +2 -4
  17. package/dist/src/notes/store.js +1 -2
  18. package/dist/src/sqlite-lock.d.ts +2 -0
  19. package/dist/src/sqlite-lock.js +17 -0
  20. package/dist/src/tools/dream.d.ts +2 -4
  21. package/dist/src/tools/dream.js +15 -16
  22. package/dist/src/tools/history.d.ts +4 -6
  23. package/dist/src/tools/history.js +69 -29
  24. package/dist/src/tools/notes.d.ts +18 -78
  25. package/dist/src/tools/notes.js +39 -50
  26. package/dist/src/tools/schema.d.ts +0 -1
  27. package/dist/src/tools/schema.js +0 -1
  28. package/dist/test/claude-history.test.js +5 -6
  29. package/dist/test/claude-mod.test.js +6 -7
  30. package/dist/test/codex-history.test.js +1 -1
  31. package/dist/test/codex-plugin.test.js +1 -2
  32. package/dist/test/dependencies.test.js +2 -2
  33. package/dist/test/dream-tools.test.js +42 -14
  34. package/dist/test/dsh.test.js +2 -2
  35. package/dist/test/history-corpus.test.js +21 -36
  36. package/dist/test/history-summary-cache.test.js +3 -3
  37. package/dist/test/history.integration.test.js +53 -106
  38. package/dist/test/host-neutral.test.js +1 -1
  39. package/dist/test/note-policy.test.js +5 -5
  40. package/dist/test/notes-cwd.test.js +5 -5
  41. package/dist/test/notes-query-namespaces.test.js +2 -6
  42. package/dist/test/notes.integration.test.js +33 -42
  43. package/dist/test/notes.test.js +12 -14
  44. package/dist/test/project-namespace.test.js +36 -91
  45. package/docs/architecture.md +3 -3
  46. package/docs/claude-code-mod.md +2 -2
  47. package/docs/codex.md +1 -1
  48. package/docs/dsh.md +2 -2
  49. package/docs/history-sessions.md +8 -9
  50. package/docs/notes-library.md +9 -3
  51. package/docs/skills.md +2 -6
  52. package/docs/tool-results.md +12 -6
  53. package/package.json +1 -1
  54. package/plugins/claude/.claude-plugin/plugin.json +1 -1
  55. package/plugins/claude/dist/claude/helper.js +212 -211
  56. package/plugins/claude/skills/memory/SKILL.md +6 -6
  57. package/plugins/claude/src/helper.ts +1 -2
  58. package/plugins/codex/README.md +1 -1
  59. package/plugins/codex/dist/codex/notesoup.js +211 -210
  60. package/plugins/codex/src/mcp.ts +1 -2
  61. package/plugins/dsh/tools.ts +1 -2
  62. package/plugins/pi/notes/tools.ts +2 -3
  63. package/skills/memory/SKILL.md +6 -6
  64. package/src/dream/git.ts +11 -11
  65. package/src/history/history.ts +11 -16
  66. package/src/history/query.ts +67 -99
  67. package/src/index.ts +1 -1
  68. package/src/notes/address.ts +2 -2
  69. package/src/notes/project-namespace.ts +37 -59
  70. package/src/notes/store.ts +3 -6
  71. package/src/sqlite-lock.ts +14 -0
  72. package/src/tools/dream.ts +15 -14
  73. package/src/tools/history.ts +60 -29
  74. package/src/tools/notes.ts +39 -54
  75. package/src/tools/schema.ts +0 -1
  76. package/dist/src/dream/lock.d.ts +0 -14
  77. package/dist/src/dream/lock.js +0 -29
  78. package/src/dream/lock.ts +0 -28
@@ -38,15 +38,15 @@ Keep notes focused on what is true now; if a piece of past context still matters
38
38
 
39
39
  ## Finding things again
40
40
 
41
- For list/search, omit `glob` or use the collection alias `@default` for this session and current shared notebooks. Use `**` for all notebooks or `@sessions/*/**` for all sessions. Results carry readable note addresses; `@default` itself is not a read/write address.
41
+ In `notes_list`, omit `glob` for this session and the current shared notebooks. Use `**` for all notebooks or `@sessions/*/**` for all sessions.
42
42
 
43
- - **A note**: `notes_list` with a `glob` when you know roughly where it lives, `notes_search` when you know a phrase; then `notes_read` the address.
44
- - **Something that happened**: `history_list` to browse or search this session's events; `history_read` the seq for the whole event.
45
- - **An earlier window**: use its seq range from the boot window tree with `history_list`'s `before_seq` / `after_seq` bounds, or search for a remembered phrase.
43
+ - **A note**: add `glob` to narrow where `notes_list` looks, and `query` if you remember a phrase. Then use `notes_read` with the address and, for a match, its `offset_chars`.
44
+ - **Something that happened**: `history_list` browses or searches this session's events. Add `context: 1` with a `query` to include neighboring events. Use `history_read` with the seq for the whole event.
45
+ - **An earlier window**: use its seq range from the boot window tree with `history_list`'s exclusive `after` / `before` bounds, or search for a remembered phrase. With `after` you page forward; otherwise you page back from the newest eligible end.
46
46
  - **Another session**: pass `session: "<id-or-prefix>"` or `"pi:<id>"`, `"claude:<id>"`, `"codex:<id>"`, `"dsh:<id>"`. An unqualified selector checks this harness first. If ambiguous, use a longer ID or a harness prefix; never pick a candidate blindly.
47
- - **A phrase across sessions**: `history_list({ session: "*", query: "remembered phrase" })`, or restrict to a harness with `"pi:*"`. A wildcard cannot use `before_seq`/`after_seq` or `history_read`. Query results cover every role unless `roles` narrows them, are chronological, and have no paging cursors; narrow by time, role, query or session pattern instead. DSH sessions are discoverable only from DSH.
47
+ - **A phrase across sessions**: `history_list({ session: "*", query: "remembered phrase" })`, or restrict to a harness with `"pi:*"`. A wildcard takes ISO 8601 times only in `after` / `before` and cannot use `history_read`. Hits cover every role unless `roles` narrows them. Results are chronological and have no paging cursors; narrow by time, role, query or session pattern instead. DSH sessions are discoverable only from DSH.
48
48
 
49
- - **Recent sessions, no remembered phrase**: `history_list({ session: "*" })` returns one representative event per session, preferring its first visible user prompt, up to `limit` (default 20). Sessions are chosen newest-modified first (`from: "oldest"` reverses that), then results are sorted chronologically. Empty queries also browse. Role/time filters apply before choosing representatives; with `roles`, the latest matching event represents each session. No paging cursors.
49
+ - **Recent sessions, no remembered phrase**: `history_list({ session: "*" })` returns one representative event per session, preferring its first visible user prompt, up to `limit` (default 20). Sessions are chosen newest-modified first (oldest-modified first with `after`), then results are sorted chronologically. Empty queries also browse. Role/time filters apply before choosing representatives; with `roles`, the latest matching event represents each session. No paging cursors.
50
50
 
51
51
  Seqs are stable **within a session**. When a hit carries `session`, copy it together with `seq` into `history_read` and save both in your note. The paging/expand/neighborhood recipes already preserve the resolved session. Omit `session` only when you mean your current host session. A single unreadable or unsupported local transcript refuses explicitly; wildcards skip individual sessions that cannot load. An empty result is not proof the remembered event never happened.
52
52
 
@@ -3,7 +3,7 @@ import { pathToFileURL } from "node:url";
3
3
  import type { Static, TSchema } from "typebox";
4
4
  import { Check } from "typebox/value";
5
5
  import { paramProblem } from "../../../src/tools/schema.js";
6
- import { notesList, notesRead, notesSearch, notesUpdate, notesWrite } from "../../../src/tools/notes.js";
6
+ import { notesList, notesRead, notesUpdate, notesWrite } from "../../../src/tools/notes.js";
7
7
  import { historyList, historyRead, type HistoryTextWrapper } from "../../../src/tools/history.js";
8
8
  import { localHistoryCorpus, type LocalHistoryOptions } from "../../../src/history/local.js";
9
9
  import { readClaudeHistory, type ClaudeHistorySource } from "./history.js";
@@ -54,7 +54,6 @@ const OPERATIONS: Record<string, BoundOperation<[NotesToolContext]>> = {
54
54
  notes_update: boundOperation(notesUpdate),
55
55
  notes_read: boundOperation(notesRead),
56
56
  notes_list: boundOperation(notesList),
57
- notes_search: boundOperation(notesSearch),
58
57
  };
59
58
 
60
59
  const HISTORY_OPERATIONS = {
@@ -1,6 +1,6 @@
1
1
  # notesoup for Codex
2
2
 
3
- Native notes and history for Codex **0.160.1**. The plugin bundles one stdio MCP server with the five notebooks and three history tools, and one hook helper that injects the notes boot into each native context window. `new_context` and `get_context_remaining` stay Codex's own tools; notesoup does not replace Codex's reset or budget.
3
+ Native notes and history for Codex **0.160.1**. The plugin bundles one stdio MCP server with the five notebooks and two history tools, and one hook helper that injects the notes boot into each native context window. `new_context` and `get_context_remaining` stay Codex's own tools; notesoup does not replace Codex's reset or budget.
4
4
 
5
5
  ## Install
6
6