notesoup 0.60.1 → 0.62.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.
Files changed (200) hide show
  1. package/.agents/plugins/marketplace.json +15 -0
  2. package/README.md +14 -10
  3. package/dist/plugins/antigravity/src/cli.d.ts +1 -0
  4. package/dist/plugins/antigravity/src/cli.js +23 -0
  5. package/dist/plugins/antigravity/src/hooks.d.ts +18 -0
  6. package/dist/plugins/antigravity/src/hooks.js +53 -0
  7. package/dist/plugins/antigravity/src/identity.d.ts +26 -0
  8. package/dist/plugins/antigravity/src/identity.js +129 -0
  9. package/dist/plugins/claude/src/helper.js +2 -1
  10. package/dist/plugins/codex/src/hooks.js +1 -0
  11. package/dist/plugins/codex/src/identity.d.ts +6 -1
  12. package/dist/plugins/codex/src/identity.js +13 -1
  13. package/dist/plugins/codex/src/mcp.d.ts +35 -7
  14. package/dist/plugins/codex/src/mcp.js +26 -88
  15. package/dist/plugins/codex/src/text.js +3 -3
  16. package/dist/plugins/dsh/tools.js +8 -4
  17. package/dist/plugins/mcp/operations.d.ts +15 -0
  18. package/dist/plugins/mcp/operations.js +43 -0
  19. package/dist/plugins/mcp/server.d.ts +14 -0
  20. package/dist/plugins/mcp/server.js +13 -0
  21. package/dist/plugins/pi/budget.d.ts +1 -1
  22. package/dist/plugins/pi/budget.js +3 -2
  23. package/dist/plugins/pi/entries.d.ts +1 -0
  24. package/dist/plugins/pi/entries.js +1 -0
  25. package/dist/plugins/pi/history-tools.js +2 -1
  26. package/dist/plugins/pi/history.js +18 -1
  27. package/dist/plugins/pi/notes/tools.js +7 -3
  28. package/dist/plugins/pi/render.d.ts +7 -1
  29. package/dist/plugins/pi/render.js +2 -2
  30. package/dist/plugins/pi/reset/lifecycle.d.ts +1 -1
  31. package/dist/plugins/pi/reset/lifecycle.js +8 -9
  32. package/dist/plugins/pi/runtime.js +102 -61
  33. package/dist/plugins/pi/tool-result.js +7 -7
  34. package/dist/plugins/pi/window.d.ts +33 -3
  35. package/dist/plugins/pi/window.js +209 -9
  36. package/dist/src/boot/render.d.ts +5 -0
  37. package/dist/src/boot/render.js +60 -28
  38. package/dist/src/boot/text.d.ts +3 -3
  39. package/dist/src/boot/text.js +27 -26
  40. package/dist/src/budget/text.d.ts +2 -2
  41. package/dist/src/budget/text.js +13 -13
  42. package/dist/src/history/claude.d.ts +2 -0
  43. package/dist/src/history/claude.js +46 -0
  44. package/dist/src/history/codex-transcript.js +7 -5
  45. package/dist/src/history/codex.js +3 -0
  46. package/dist/src/history/corpus.d.ts +28 -1
  47. package/dist/src/history/corpus.js +40 -0
  48. package/dist/src/history/history.d.ts +37 -46
  49. package/dist/src/history/history.js +21 -40
  50. package/dist/src/history/local.js +67 -32
  51. package/dist/src/history/pi.d.ts +2 -1
  52. package/dist/src/history/pi.js +122 -48
  53. package/dist/src/history/prefilter.js +76 -19
  54. package/dist/src/history/query.d.ts +28 -49
  55. package/dist/src/history/query.js +83 -68
  56. package/dist/src/history/summary-cache.d.ts +8 -1
  57. package/dist/src/history/summary-cache.js +138 -12
  58. package/dist/src/index.d.ts +1 -1
  59. package/dist/src/index.js +1 -1
  60. package/dist/src/notes/frontmatter.d.ts +4 -0
  61. package/dist/src/notes/frontmatter.js +15 -1
  62. package/dist/src/notes/index.d.ts +1 -1
  63. package/dist/src/notes/index.js +1 -1
  64. package/dist/src/notes/policy.d.ts +15 -1
  65. package/dist/src/notes/policy.js +47 -6
  66. package/dist/src/notes/store.d.ts +14 -0
  67. package/dist/src/notes/store.js +33 -12
  68. package/dist/src/text-match.d.ts +10 -1
  69. package/dist/src/text-match.js +42 -3
  70. package/dist/src/tools/dream.d.ts +22 -91
  71. package/dist/src/tools/dream.js +30 -27
  72. package/dist/src/tools/history.d.ts +33 -26
  73. package/dist/src/tools/history.js +257 -163
  74. package/dist/src/tools/notes.d.ts +58 -160
  75. package/dist/src/tools/notes.js +151 -99
  76. package/dist/src/tools/output.d.ts +2 -1
  77. package/dist/src/tools/output.js +2 -1
  78. package/dist/src/tools/result.d.ts +4 -7
  79. package/dist/src/tools/result.js +8 -9
  80. package/dist/src/tools/schema.d.ts +4 -1
  81. package/dist/src/tools/schema.js +25 -1
  82. package/dist/test/agent-loop.test.js +198 -16
  83. package/dist/test/antigravity-live.test.d.ts +1 -0
  84. package/dist/test/antigravity-live.test.js +142 -0
  85. package/dist/test/antigravity-plugin.test.d.ts +1 -0
  86. package/dist/test/antigravity-plugin.test.js +101 -0
  87. package/dist/test/boot.integration.test.js +133 -14
  88. package/dist/test/claude-history.test.js +14 -13
  89. package/dist/test/claude-mod.test.js +9 -6
  90. package/dist/test/codex-history.test.js +15 -3
  91. package/dist/test/codex-plugin.test.js +76 -38
  92. package/dist/test/dependencies.test.js +7 -3
  93. package/dist/test/dream-skill.test.js +3 -3
  94. package/dist/test/dream-tools.test.js +101 -56
  95. package/dist/test/dsh.test.js +34 -19
  96. package/dist/test/helpers/dependency-graph.js +2 -2
  97. package/dist/test/helpers/extension.d.ts +65 -2
  98. package/dist/test/helpers/extension.js +72 -3
  99. package/dist/test/history-corpus.test.js +79 -77
  100. package/dist/test/history-summary-cache.test.js +97 -9
  101. package/dist/test/history.integration.test.js +234 -168
  102. package/dist/test/host-neutral.test.js +69 -19
  103. package/dist/test/marker.test.js +1 -1
  104. package/dist/test/note-policy.test.js +189 -56
  105. package/dist/test/notes.integration.test.js +212 -94
  106. package/dist/test/notes.test.js +184 -113
  107. package/dist/test/pi-render.test.js +20 -12
  108. package/dist/test/project-namespace.test.js +3 -2
  109. package/dist/test/reset-lifecycle.test.js +2 -2
  110. package/docs/antigravity.md +44 -0
  111. package/docs/architecture.md +6 -4
  112. package/docs/claude-code-mod.md +2 -2
  113. package/docs/codex.md +36 -38
  114. package/docs/dsh.md +4 -4
  115. package/docs/history-sessions.md +28 -50
  116. package/docs/notes-library.md +6 -6
  117. package/docs/reset-lifecycle.md +1 -1
  118. package/docs/skills.md +3 -3
  119. package/docs/tool-results.md +47 -28
  120. package/package.json +3 -2
  121. package/playbook.md +3 -3
  122. package/plugins/antigravity/dist/antigravity/notesoup.js +26886 -0
  123. package/plugins/antigravity/hooks.json +7 -0
  124. package/plugins/antigravity/mcp_config.json +8 -0
  125. package/plugins/antigravity/plugin.json +6 -0
  126. package/plugins/antigravity/src/cli.ts +22 -0
  127. package/plugins/antigravity/src/hooks.ts +51 -0
  128. package/plugins/antigravity/src/identity.ts +127 -0
  129. package/plugins/claude/.claude-plugin/plugin.json +1 -1
  130. package/plugins/claude/dist/claude/helper.js +1129 -549
  131. package/plugins/claude/hooks/register.ts +2 -2
  132. package/plugins/claude/playbook.md +3 -3
  133. package/plugins/claude/skills/dream/SKILL.md +2 -2
  134. package/plugins/claude/skills/notesoup/SKILL.md +92 -0
  135. package/plugins/claude/src/helper.ts +2 -1
  136. package/plugins/codex/.codex-plugin/plugin.json +8 -0
  137. package/plugins/codex/.mcp.json +11 -0
  138. package/plugins/codex/README.md +5 -21
  139. package/plugins/codex/dist/codex/notesoup.js +18494 -17905
  140. package/plugins/codex/src/hooks.ts +1 -0
  141. package/plugins/codex/src/identity.ts +14 -1
  142. package/plugins/codex/src/mcp.ts +28 -98
  143. package/plugins/codex/src/text.ts +3 -3
  144. package/plugins/dsh/tools.ts +8 -4
  145. package/plugins/mcp/operations.ts +50 -0
  146. package/plugins/mcp/server.ts +23 -0
  147. package/plugins/paseo/README.md +5 -10
  148. package/plugins/paseo/client/brain-empty-card.tsx +3 -3
  149. package/plugins/paseo/client/markdown.tsx +50 -38
  150. package/plugins/paseo/client/notes-op-card.tsx +12 -9
  151. package/plugins/paseo/client/paper-card.tsx +6 -5
  152. package/plugins/paseo/client/paper-palette.ts +2 -9
  153. package/plugins/paseo/client/sticky-card.tsx +2 -2
  154. package/plugins/paseo/client/tool-result.ts +7 -14
  155. package/plugins/paseo/package-lock.json +3406 -0
  156. package/plugins/paseo/package.json +1 -0
  157. package/plugins/paseo/test/markdown-core.test.ts +73 -66
  158. package/plugins/pi/budget.ts +3 -3
  159. package/plugins/pi/entries.ts +1 -0
  160. package/plugins/pi/history-tools.ts +2 -1
  161. package/plugins/pi/history.ts +30 -1
  162. package/plugins/pi/notes/tools.ts +7 -3
  163. package/plugins/pi/render.ts +6 -6
  164. package/plugins/pi/reset/lifecycle.ts +9 -10
  165. package/plugins/pi/runtime.ts +96 -60
  166. package/plugins/pi/tool-result.ts +8 -8
  167. package/plugins/pi/window.ts +198 -9
  168. package/skills/dream/SKILL.md +2 -2
  169. package/skills/notesoup/SKILL.md +92 -0
  170. package/src/boot/render.ts +59 -25
  171. package/src/boot/text.ts +30 -27
  172. package/src/budget/text.ts +13 -13
  173. package/src/history/claude.ts +41 -0
  174. package/src/history/codex-transcript.ts +6 -4
  175. package/src/history/codex.ts +2 -0
  176. package/src/history/corpus.ts +51 -2
  177. package/src/history/history.ts +35 -44
  178. package/src/history/local.ts +67 -27
  179. package/src/history/pi.ts +113 -35
  180. package/src/history/prefilter.ts +73 -15
  181. package/src/history/query.ts +93 -73
  182. package/src/history/summary-cache.ts +142 -17
  183. package/src/index.ts +1 -1
  184. package/src/notes/frontmatter.ts +16 -1
  185. package/src/notes/index.ts +1 -1
  186. package/src/notes/policy.ts +45 -6
  187. package/src/notes/store.ts +30 -15
  188. package/src/text-match.ts +46 -4
  189. package/src/tools/dream.ts +29 -31
  190. package/src/tools/history.ts +249 -142
  191. package/src/tools/notes.ts +150 -112
  192. package/src/tools/output.ts +2 -1
  193. package/src/tools/result.ts +12 -11
  194. package/src/tools/schema.ts +24 -1
  195. package/plugins/claude/skills/memory/SKILL.md +0 -69
  196. package/plugins/codex/mcp.json +0 -10
  197. package/plugins/codex/plugin.json +0 -6
  198. package/plugins/paseo/client/markdown-core.tsx +0 -189
  199. package/plugins/paseo/client/typography.ts +0 -24
  200. package/skills/memory/SKILL.md +0 -69
@@ -1,6 +1,6 @@
1
1
  import type { NotesIdentity } from "../notes/identity.js";
2
2
  import { Type, type Static } from "typebox";
3
- import { type NoteChange, type NoteQueryStatus, type NoteRow } from "../notes/index.js";
3
+ import { noteIdentity, type NoteChange, type NotePolicy, type NoteQueryStatus, type NoteRow } from "../notes/index.js";
4
4
  import { type Outcome } from "../result.js";
5
5
  import { type NotesToolContext } from "./notes-context.js";
6
6
  /**
@@ -9,11 +9,12 @@ import { type NotesToolContext } from "./notes-context.js";
9
9
  */
10
10
  export declare function failureOf(error: unknown): Outcome<never>;
11
11
  export declare const NoteMetadataSchema: Type.TObject<{
12
- origin: Type.TUnion<[Type.TLiteral<"user">, Type.TLiteral<"self">, Type.TLiteral<"external">]>;
12
+ origin: Type.TUnsafe<"self" | "user" | "external">;
13
13
  created_at: Type.TString;
14
14
  updated_at: Type.TString;
15
15
  crumpled_at: Type.TOptional<Type.TString>;
16
16
  project: Type.TOptional<Type.TString>;
17
+ description: Type.TOptional<Type.TString>;
17
18
  extra: Type.TRecord<"^.*$", Type.TUnknown>;
18
19
  pinned: Type.TBoolean;
19
20
  budget: Type.TInteger;
@@ -38,67 +39,28 @@ export declare const NoteIdentitySchema: {
38
39
  address: Type.TString;
39
40
  project_key: Type.TOptional<Type.TString>;
40
41
  };
41
- export declare const ListedFileSchema: Type.TObject<{
42
- updated_at: Type.TString;
43
- crumpled_at: Type.TOptional<Type.TString>;
44
- warnings: Type.TArray<Type.TString>;
45
- pinned: Type.TBoolean;
46
- budget: Type.TInteger;
47
- readonly: Type.TBoolean;
48
- project_root: Type.TOptional<Type.TString>;
49
- project_siblings: Type.TOptional<Type.TArray<Type.TObject<{
50
- name: Type.TString;
51
- path: Type.TString;
52
- }>>>;
53
- address: Type.TString;
54
- project_key: Type.TOptional<Type.TString>;
55
- }>;
56
- export declare const SnapshotSchema: {
57
- more: Type.TInteger;
58
- namespaces_unavailable: Type.TArray<Type.TString>;
42
+ type NoteReceipt = ReturnType<typeof noteIdentity> & NotePolicy & {
43
+ warnings: string[];
44
+ };
45
+ export type NotesWriteData = NoteReceipt & {
46
+ outcome: "created" | "overwrote" | "uncrumpled";
47
+ };
48
+ export type NotesUpdateData = NoteReceipt & {
49
+ change_kind: NoteChange["kind"] | "moved";
50
+ rename_from?: string;
59
51
  };
60
- export declare const NotesWriteDataSchema: Type.TObject<{
61
- outcome: Type.TUnion<[Type.TLiteral<"created">, Type.TLiteral<"overwrote">, Type.TLiteral<"uncrumpled">]>;
62
- warnings: Type.TArray<Type.TString>;
63
- pinned: Type.TBoolean;
64
- budget: Type.TInteger;
65
- readonly: Type.TBoolean;
66
- project_root: Type.TOptional<Type.TString>;
67
- project_siblings: Type.TOptional<Type.TArray<Type.TObject<{
68
- name: Type.TString;
69
- path: Type.TString;
70
- }>>>;
71
- address: Type.TString;
72
- project_key: Type.TOptional<Type.TString>;
73
- }>;
74
- export type NotesWriteData = Static<typeof NotesWriteDataSchema>;
75
- export declare const NotesUpdateDataSchema: Type.TObject<{
76
- change_kind: Type.TUnion<[Type.TLiteral<"none">, Type.TLiteral<"body">, Type.TLiteral<"metadata">, Type.TLiteral<"moved">]>;
77
- rename_from: Type.TOptional<Type.TString>;
78
- warnings: Type.TArray<Type.TString>;
79
- pinned: Type.TBoolean;
80
- budget: Type.TInteger;
81
- readonly: Type.TBoolean;
82
- project_root: Type.TOptional<Type.TString>;
83
- project_siblings: Type.TOptional<Type.TArray<Type.TObject<{
84
- name: Type.TString;
85
- path: Type.TString;
86
- }>>>;
87
- address: Type.TString;
88
- project_key: Type.TOptional<Type.TString>;
89
- }>;
90
- export type NotesUpdateData = Static<typeof NotesUpdateDataSchema>;
91
52
  export declare const NotesReadDataSchema: Type.TObject<{
92
53
  text: Type.TString;
93
54
  total_chars: Type.TInteger;
94
55
  next_offset_chars: Type.TUnion<[Type.TInteger, Type.TNull]>;
95
56
  warnings: Type.TArray<Type.TString>;
96
57
  metadata: Type.TObject<{
97
- origin: Type.TUnion<[Type.TLiteral<"user">, Type.TLiteral<"self">, Type.TLiteral<"external">]>;
58
+ origin: Type.TUnsafe<"self" | "user" | "external">;
98
59
  created_at: Type.TString;
99
60
  updated_at: Type.TString;
100
61
  crumpled_at: Type.TOptional<Type.TString>;
101
62
  project: Type.TOptional<Type.TString>;
63
+ description: Type.TOptional<Type.TString>;
102
64
  extra: Type.TRecord<"^.*$", Type.TUnknown>;
103
65
  pinned: Type.TBoolean;
104
66
  budget: Type.TInteger;
@@ -113,35 +75,27 @@ export declare const NotesReadDataSchema: Type.TObject<{
113
75
  project_key: Type.TOptional<Type.TString>;
114
76
  }>;
115
77
  export type NotesReadData = Static<typeof NotesReadDataSchema>;
116
- export declare const NotesListDataSchema: Type.TObject<{
117
- more: Type.TInteger;
118
- namespaces_unavailable: Type.TArray<Type.TString>;
119
- files: Type.TArray<Type.TObject<{
120
- matches: Type.TOptional<Type.TArray<Type.TObject<{
121
- line: Type.TInteger;
122
- text: Type.TString;
123
- offset_chars: Type.TInteger;
124
- }>>>;
125
- more_matches: Type.TOptional<Type.TInteger>;
126
- updated_at: Type.TString;
127
- crumpled_at: Type.TOptional<Type.TString>;
128
- warnings: Type.TArray<Type.TString>;
129
- pinned: Type.TBoolean;
130
- budget: Type.TInteger;
131
- readonly: Type.TBoolean;
132
- project_root: Type.TOptional<Type.TString>;
133
- project_siblings: Type.TOptional<Type.TArray<Type.TObject<{
134
- name: Type.TString;
135
- path: Type.TString;
136
- }>>>;
137
- address: Type.TString;
138
- project_key: Type.TOptional<Type.TString>;
139
- }>>;
140
- }>;
141
- export type NotesListData = Static<typeof NotesListDataSchema>;
142
- type ListedFile = Static<typeof ListedFileSchema>;
143
- type Snapshot<T> = Omit<NotesListData, "files"> & {
78
+ export type ListedFile = NoteReceipt & {
79
+ updated_at: string;
80
+ crumpled_at?: string;
81
+ description?: string;
82
+ };
83
+ type Match = {
84
+ line: number;
85
+ text: string;
86
+ offset_chars: number;
87
+ };
88
+ type ListFile = ListedFile & {
89
+ matches?: Match[];
90
+ more_matches?: number;
91
+ };
92
+ export type Snapshot<T> = {
144
93
  files: T[];
94
+ more: number;
95
+ namespaces_unavailable: string[];
96
+ };
97
+ export type NotesListData = Snapshot<ListFile> & {
98
+ older?: string;
145
99
  };
146
100
  /** Keep identities intact. Only search previews may shrink to make the first row fit. */
147
101
  export declare function snapshot<T extends {
@@ -154,42 +108,25 @@ export declare function listedFile(row: Pick<NoteRow, "address" | "meta"> & {
154
108
  export declare const notesWriteParameters: Type.TObject<{
155
109
  cwd: Type.TOptional<Type.TString>;
156
110
  pinned: Type.TOptional<Type.TBoolean>;
157
- budget: Type.TOptional<Type.TInteger>;
158
111
  readonly: Type.TOptional<Type.TBoolean>;
159
112
  address: Type.TString;
160
113
  content: Type.TString;
161
- origin: Type.TOptional<Type.TUnion<[Type.TLiteral<"user">, Type.TLiteral<"self">, Type.TLiteral<"external">]>>;
114
+ origin: Type.TOptional<Type.TUnsafe<"self" | "user" | "external">>;
115
+ description: Type.TOptional<Type.TString>;
162
116
  }>;
163
117
  export declare const notesWrite: {
164
118
  readonly name: "notes_write";
165
119
  readonly label: "Notes write";
166
- readonly description: "Take a fresh page and write it — or rip out the old one and write it again. Title it for what's inside and when you'll reach for it.";
120
+ readonly description: "Create or overwrite a note. Set `description` (one line) so boot indexes it.";
167
121
  readonly parameters: Type.TObject<{
168
122
  cwd: Type.TOptional<Type.TString>;
169
123
  pinned: Type.TOptional<Type.TBoolean>;
170
- budget: Type.TOptional<Type.TInteger>;
171
124
  readonly: Type.TOptional<Type.TBoolean>;
172
125
  address: Type.TString;
173
126
  content: Type.TString;
174
- origin: Type.TOptional<Type.TUnion<[Type.TLiteral<"user">, Type.TLiteral<"self">, Type.TLiteral<"external">]>>;
127
+ origin: Type.TOptional<Type.TUnsafe<"self" | "user" | "external">>;
128
+ description: Type.TOptional<Type.TString>;
175
129
  }>;
176
- readonly outputSchema: Type.TUnion<[Type.TObject<{
177
- outcome: Type.TUnion<[Type.TLiteral<"created">, Type.TLiteral<"overwrote">, Type.TLiteral<"uncrumpled">]>;
178
- warnings: Type.TArray<Type.TString>;
179
- pinned: Type.TBoolean;
180
- budget: Type.TInteger;
181
- readonly: Type.TBoolean;
182
- project_root: Type.TOptional<Type.TString>;
183
- project_siblings: Type.TOptional<Type.TArray<Type.TObject<{
184
- name: Type.TString;
185
- path: Type.TString;
186
- }>>>;
187
- address: Type.TString;
188
- project_key: Type.TOptional<Type.TString>;
189
- }>, Type.TObject<{
190
- error: Type.TString;
191
- code: Type.TString;
192
- }>]>;
193
130
  readonly executionMode: "sequential";
194
131
  readonly execute: (params: Static<typeof notesWriteParameters>, context: NotesToolContext) => Promise<Outcome<NotesWriteData>>;
195
132
  readonly render: (result: Outcome<NotesWriteData>) => string;
@@ -200,52 +137,36 @@ export declare const notesUpdateParameters: Type.TObject<{
200
137
  rename_to: Type.TOptional<Type.TString>;
201
138
  cwd: Type.TOptional<Type.TString>;
202
139
  pinned: Type.TOptional<Type.TBoolean>;
203
- budget: Type.TOptional<Type.TInteger>;
204
140
  readonly: Type.TOptional<Type.TBoolean>;
205
141
  address: Type.TString;
206
142
  edits: Type.TOptional<Type.TArray<Type.TObject<{
207
143
  oldText: Type.TString;
208
144
  newText: Type.TString;
145
+ replace_all: Type.TOptional<Type.TBoolean>;
209
146
  }>>>;
210
- origin: Type.TOptional<Type.TUnion<[Type.TLiteral<"user">, Type.TLiteral<"self">, Type.TLiteral<"external">]>>;
147
+ origin: Type.TOptional<Type.TUnsafe<"self" | "user" | "external">>;
148
+ description: Type.TOptional<Type.TString>;
211
149
  }>;
212
150
  export declare const notesUpdate: {
213
151
  readonly name: "notes_update";
214
152
  readonly label: "Notes update";
215
- readonly description: "Work on a page you already have: cross out and rewrite lines, move it, pin it, lock it, give it more paper, crumple it. Keep every page true to now: wrong, stale, or no-longer-mattering lines get rewritten or struck where they stand. The page stays one page.";
153
+ readonly description: "Edit an existing note's text or metadata, move it (`rename_to`), or crumple/restore it (`crumpled`).";
216
154
  readonly parameters: Type.TObject<{
217
155
  crumpled: Type.TOptional<Type.TBoolean>;
218
156
  replace_all: Type.TOptional<Type.TBoolean>;
219
157
  rename_to: Type.TOptional<Type.TString>;
220
158
  cwd: Type.TOptional<Type.TString>;
221
159
  pinned: Type.TOptional<Type.TBoolean>;
222
- budget: Type.TOptional<Type.TInteger>;
223
160
  readonly: Type.TOptional<Type.TBoolean>;
224
161
  address: Type.TString;
225
162
  edits: Type.TOptional<Type.TArray<Type.TObject<{
226
163
  oldText: Type.TString;
227
164
  newText: Type.TString;
165
+ replace_all: Type.TOptional<Type.TBoolean>;
228
166
  }>>>;
229
- origin: Type.TOptional<Type.TUnion<[Type.TLiteral<"user">, Type.TLiteral<"self">, Type.TLiteral<"external">]>>;
167
+ origin: Type.TOptional<Type.TUnsafe<"self" | "user" | "external">>;
168
+ description: Type.TOptional<Type.TString>;
230
169
  }>;
231
- readonly outputSchema: Type.TUnion<[Type.TObject<{
232
- change_kind: Type.TUnion<[Type.TLiteral<"none">, Type.TLiteral<"body">, Type.TLiteral<"metadata">, Type.TLiteral<"moved">]>;
233
- rename_from: Type.TOptional<Type.TString>;
234
- warnings: Type.TArray<Type.TString>;
235
- pinned: Type.TBoolean;
236
- budget: Type.TInteger;
237
- readonly: Type.TBoolean;
238
- project_root: Type.TOptional<Type.TString>;
239
- project_siblings: Type.TOptional<Type.TArray<Type.TObject<{
240
- name: Type.TString;
241
- path: Type.TString;
242
- }>>>;
243
- address: Type.TString;
244
- project_key: Type.TOptional<Type.TString>;
245
- }>, Type.TObject<{
246
- error: Type.TString;
247
- code: Type.TString;
248
- }>]>;
249
170
  readonly executionMode: "sequential";
250
171
  readonly execute: (params: Static<typeof notesUpdateParameters>, context: NotesToolContext, onChange?: (change: NoteChange) => void) => Promise<Outcome<NotesUpdateData>>;
251
172
  readonly render: (result: Outcome<NotesUpdateData>) => string;
@@ -259,7 +180,7 @@ export declare const notesReadParameters: Type.TObject<{
259
180
  export declare const notesRead: {
260
181
  readonly name: "notes_read";
261
182
  readonly label: "Notes read";
262
- readonly description: "Read a page. Long ones come a stretch at a time; follow `next_offset_chars`.";
183
+ readonly description: "Read a note (supports windowed reads via `offset_chars` and `max_chars`).";
263
184
  readonly parameters: Type.TObject<{
264
185
  cwd: Type.TOptional<Type.TString>;
265
186
  offset_chars: Type.TOptional<Type.TInteger>;
@@ -272,11 +193,12 @@ export declare const notesRead: {
272
193
  next_offset_chars: Type.TUnion<[Type.TInteger, Type.TNull]>;
273
194
  warnings: Type.TArray<Type.TString>;
274
195
  metadata: Type.TObject<{
275
- origin: Type.TUnion<[Type.TLiteral<"user">, Type.TLiteral<"self">, Type.TLiteral<"external">]>;
196
+ origin: Type.TUnsafe<"self" | "user" | "external">;
276
197
  created_at: Type.TString;
277
198
  updated_at: Type.TString;
278
199
  crumpled_at: Type.TOptional<Type.TString>;
279
200
  project: Type.TOptional<Type.TString>;
201
+ description: Type.TOptional<Type.TString>;
280
202
  extra: Type.TRecord<"^.*$", Type.TUnknown>;
281
203
  pinned: Type.TBoolean;
282
204
  budget: Type.TInteger;
@@ -299,56 +221,32 @@ export declare const notesRead: {
299
221
  export declare const notesListParameters: Type.TObject<{
300
222
  glob: Type.TOptional<Type.TString>;
301
223
  query: Type.TOptional<Type.TUnion<[Type.TString, Type.TArray<Type.TString>]>>;
302
- max_matches_per_file: Type.TOptional<Type.TInteger>;
224
+ max_matches_per_note: Type.TOptional<Type.TInteger>;
303
225
  crumpled: Type.TOptional<Type.TBoolean>;
304
226
  limit: Type.TOptional<Type.TInteger>;
227
+ cursor: Type.TOptional<Type.TString>;
305
228
  cwd: Type.TOptional<Type.TString>;
306
229
  }>;
307
- export declare function renderListData(data: Snapshot<NotesListData["files"][number] & {
230
+ export declare function renderListData<T extends NotesListData["files"][number] & {
308
231
  last_accessed?: string;
309
- }>): string;
232
+ }>(data: Snapshot<T>, renderMore?: (more: number, files: T[]) => string, options?: {
233
+ omitNamedProjectContext?: boolean;
234
+ }): string;
310
235
  /** A shortened match line still ends with a marker, so its own text says it was cut. */
311
236
  export declare const MATCH_SHORTENED_MARKER = " [truncated]";
312
237
  export declare const notesList: {
313
238
  readonly name: "notes_list";
314
239
  readonly label: "Notes list";
315
- readonly description: "List or search notes, newest pages on top. A query matches literal text (ignoring case) and returns hit lines and read offsets. One pass; `more` counts pages left on the pile — narrow `glob`.";
240
+ readonly description: "List or search notes, newest first. Literal case-insensitive `query` returns matching lines and `offset_chars`.";
316
241
  readonly parameters: Type.TObject<{
317
242
  glob: Type.TOptional<Type.TString>;
318
243
  query: Type.TOptional<Type.TUnion<[Type.TString, Type.TArray<Type.TString>]>>;
319
- max_matches_per_file: Type.TOptional<Type.TInteger>;
244
+ max_matches_per_note: Type.TOptional<Type.TInteger>;
320
245
  crumpled: Type.TOptional<Type.TBoolean>;
321
246
  limit: Type.TOptional<Type.TInteger>;
247
+ cursor: Type.TOptional<Type.TString>;
322
248
  cwd: Type.TOptional<Type.TString>;
323
249
  }>;
324
- readonly outputSchema: Type.TUnion<[Type.TObject<{
325
- more: Type.TInteger;
326
- namespaces_unavailable: Type.TArray<Type.TString>;
327
- files: Type.TArray<Type.TObject<{
328
- matches: Type.TOptional<Type.TArray<Type.TObject<{
329
- line: Type.TInteger;
330
- text: Type.TString;
331
- offset_chars: Type.TInteger;
332
- }>>>;
333
- more_matches: Type.TOptional<Type.TInteger>;
334
- updated_at: Type.TString;
335
- crumpled_at: Type.TOptional<Type.TString>;
336
- warnings: Type.TArray<Type.TString>;
337
- pinned: Type.TBoolean;
338
- budget: Type.TInteger;
339
- readonly: Type.TBoolean;
340
- project_root: Type.TOptional<Type.TString>;
341
- project_siblings: Type.TOptional<Type.TArray<Type.TObject<{
342
- name: Type.TString;
343
- path: Type.TString;
344
- }>>>;
345
- address: Type.TString;
346
- project_key: Type.TOptional<Type.TString>;
347
- }>>;
348
- }>, Type.TObject<{
349
- error: Type.TString;
350
- code: Type.TString;
351
- }>]>;
352
250
  readonly execute: (params: Static<typeof notesListParameters>, context: NotesToolContext) => Promise<Outcome<NotesListData>>;
353
251
  readonly render: (result: Outcome<NotesListData>) => string;
354
252
  };