notesoup 0.61.0 → 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 -11
  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.js +18 -15
  37. package/dist/src/boot/text.d.ts +3 -1
  38. package/dist/src/boot/text.js +22 -20
  39. package/dist/src/budget/text.d.ts +2 -2
  40. package/dist/src/budget/text.js +13 -13
  41. package/dist/src/history/claude.d.ts +2 -0
  42. package/dist/src/history/claude.js +46 -0
  43. package/dist/src/history/codex-transcript.js +7 -5
  44. package/dist/src/history/codex.js +3 -0
  45. package/dist/src/history/corpus.d.ts +28 -1
  46. package/dist/src/history/corpus.js +40 -0
  47. package/dist/src/history/history.d.ts +37 -46
  48. package/dist/src/history/history.js +21 -40
  49. package/dist/src/history/local.js +67 -32
  50. package/dist/src/history/pi.d.ts +2 -1
  51. package/dist/src/history/pi.js +122 -48
  52. package/dist/src/history/prefilter.js +76 -19
  53. package/dist/src/history/query.d.ts +28 -49
  54. package/dist/src/history/query.js +83 -68
  55. package/dist/src/history/summary-cache.d.ts +8 -1
  56. package/dist/src/history/summary-cache.js +138 -12
  57. package/dist/src/index.d.ts +1 -1
  58. package/dist/src/index.js +1 -1
  59. package/dist/src/notes/errors.d.ts +1 -1
  60. package/dist/src/notes/frontmatter.d.ts +0 -2
  61. package/dist/src/notes/frontmatter.js +0 -2
  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 +46 -5
  66. package/dist/src/notes/store.d.ts +12 -0
  67. package/dist/src/notes/store.js +16 -20
  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 -93
  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 +51 -163
  75. package/dist/src/tools/notes.js +146 -100
  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 +96 -77
  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 +3 -3
  115. package/docs/history-sessions.md +28 -50
  116. package/docs/notes-library.md +4 -4
  117. package/docs/skills.md +3 -3
  118. package/docs/tool-results.md +47 -28
  119. package/package.json +3 -2
  120. package/playbook.md +1 -1
  121. package/plugins/antigravity/dist/antigravity/notesoup.js +26886 -0
  122. package/plugins/antigravity/hooks.json +7 -0
  123. package/plugins/antigravity/mcp_config.json +8 -0
  124. package/plugins/antigravity/plugin.json +6 -0
  125. package/plugins/antigravity/src/cli.ts +22 -0
  126. package/plugins/antigravity/src/hooks.ts +51 -0
  127. package/plugins/antigravity/src/identity.ts +127 -0
  128. package/plugins/claude/.claude-plugin/plugin.json +1 -1
  129. package/plugins/claude/dist/claude/helper.js +1059 -534
  130. package/plugins/claude/hooks/register.ts +2 -2
  131. package/plugins/claude/playbook.md +1 -1
  132. package/plugins/claude/skills/dream/SKILL.md +1 -1
  133. package/plugins/claude/skills/notesoup/SKILL.md +92 -0
  134. package/plugins/claude/src/helper.ts +2 -1
  135. package/plugins/codex/.codex-plugin/plugin.json +8 -0
  136. package/plugins/codex/.mcp.json +11 -0
  137. package/plugins/codex/README.md +5 -21
  138. package/plugins/codex/dist/codex/notesoup.js +18480 -17946
  139. package/plugins/codex/src/hooks.ts +1 -0
  140. package/plugins/codex/src/identity.ts +14 -1
  141. package/plugins/codex/src/mcp.ts +28 -98
  142. package/plugins/codex/src/text.ts +3 -3
  143. package/plugins/dsh/tools.ts +8 -4
  144. package/plugins/mcp/operations.ts +50 -0
  145. package/plugins/mcp/server.ts +23 -0
  146. package/plugins/paseo/README.md +5 -10
  147. package/plugins/paseo/client/brain-empty-card.tsx +3 -3
  148. package/plugins/paseo/client/markdown.tsx +50 -38
  149. package/plugins/paseo/client/notes-op-card.tsx +12 -9
  150. package/plugins/paseo/client/paper-card.tsx +6 -5
  151. package/plugins/paseo/client/paper-palette.ts +2 -9
  152. package/plugins/paseo/client/sticky-card.tsx +2 -2
  153. package/plugins/paseo/client/tool-result.ts +7 -14
  154. package/plugins/paseo/package-lock.json +3406 -0
  155. package/plugins/paseo/package.json +1 -0
  156. package/plugins/paseo/test/markdown-core.test.ts +73 -66
  157. package/plugins/pi/budget.ts +3 -3
  158. package/plugins/pi/entries.ts +1 -0
  159. package/plugins/pi/history-tools.ts +2 -1
  160. package/plugins/pi/history.ts +30 -1
  161. package/plugins/pi/notes/tools.ts +7 -3
  162. package/plugins/pi/render.ts +6 -6
  163. package/plugins/pi/reset/lifecycle.ts +9 -10
  164. package/plugins/pi/runtime.ts +96 -60
  165. package/plugins/pi/tool-result.ts +8 -8
  166. package/plugins/pi/window.ts +198 -9
  167. package/skills/dream/SKILL.md +1 -1
  168. package/skills/notesoup/SKILL.md +92 -0
  169. package/src/boot/render.ts +18 -15
  170. package/src/boot/text.ts +23 -19
  171. package/src/budget/text.ts +13 -13
  172. package/src/history/claude.ts +41 -0
  173. package/src/history/codex-transcript.ts +6 -4
  174. package/src/history/codex.ts +2 -0
  175. package/src/history/corpus.ts +51 -2
  176. package/src/history/history.ts +35 -44
  177. package/src/history/local.ts +67 -27
  178. package/src/history/pi.ts +113 -35
  179. package/src/history/prefilter.ts +73 -15
  180. package/src/history/query.ts +93 -73
  181. package/src/history/summary-cache.ts +142 -17
  182. package/src/index.ts +1 -1
  183. package/src/notes/errors.ts +1 -1
  184. package/src/notes/frontmatter.ts +0 -3
  185. package/src/notes/index.ts +1 -1
  186. package/src/notes/policy.ts +44 -5
  187. package/src/notes/store.ts +17 -20
  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 +145 -113
  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,7 +9,7 @@ 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>;
@@ -39,64 +39,23 @@ export declare const NoteIdentitySchema: {
39
39
  address: Type.TString;
40
40
  project_key: Type.TOptional<Type.TString>;
41
41
  };
42
- export declare const ListedFileSchema: Type.TObject<{
43
- updated_at: Type.TString;
44
- crumpled_at: Type.TOptional<Type.TString>;
45
- description: Type.TOptional<Type.TString>;
46
- warnings: Type.TArray<Type.TString>;
47
- pinned: Type.TBoolean;
48
- budget: Type.TInteger;
49
- readonly: Type.TBoolean;
50
- project_root: Type.TOptional<Type.TString>;
51
- project_siblings: Type.TOptional<Type.TArray<Type.TObject<{
52
- name: Type.TString;
53
- path: Type.TString;
54
- }>>>;
55
- address: Type.TString;
56
- project_key: Type.TOptional<Type.TString>;
57
- }>;
58
- export declare const SnapshotSchema: {
59
- more: Type.TInteger;
60
- 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;
61
51
  };
62
- export declare const NotesWriteDataSchema: Type.TObject<{
63
- outcome: Type.TUnion<[Type.TLiteral<"created">, Type.TLiteral<"overwrote">, Type.TLiteral<"uncrumpled">]>;
64
- warnings: Type.TArray<Type.TString>;
65
- pinned: Type.TBoolean;
66
- budget: Type.TInteger;
67
- readonly: Type.TBoolean;
68
- project_root: Type.TOptional<Type.TString>;
69
- project_siblings: Type.TOptional<Type.TArray<Type.TObject<{
70
- name: Type.TString;
71
- path: Type.TString;
72
- }>>>;
73
- address: Type.TString;
74
- project_key: Type.TOptional<Type.TString>;
75
- }>;
76
- export type NotesWriteData = Static<typeof NotesWriteDataSchema>;
77
- export declare const NotesUpdateDataSchema: Type.TObject<{
78
- change_kind: Type.TUnion<[Type.TLiteral<"none">, Type.TLiteral<"body">, Type.TLiteral<"metadata">, Type.TLiteral<"moved">]>;
79
- rename_from: Type.TOptional<Type.TString>;
80
- warnings: Type.TArray<Type.TString>;
81
- pinned: Type.TBoolean;
82
- budget: Type.TInteger;
83
- readonly: Type.TBoolean;
84
- project_root: Type.TOptional<Type.TString>;
85
- project_siblings: Type.TOptional<Type.TArray<Type.TObject<{
86
- name: Type.TString;
87
- path: Type.TString;
88
- }>>>;
89
- address: Type.TString;
90
- project_key: Type.TOptional<Type.TString>;
91
- }>;
92
- export type NotesUpdateData = Static<typeof NotesUpdateDataSchema>;
93
52
  export declare const NotesReadDataSchema: Type.TObject<{
94
53
  text: Type.TString;
95
54
  total_chars: Type.TInteger;
96
55
  next_offset_chars: Type.TUnion<[Type.TInteger, Type.TNull]>;
97
56
  warnings: Type.TArray<Type.TString>;
98
57
  metadata: Type.TObject<{
99
- origin: Type.TUnion<[Type.TLiteral<"user">, Type.TLiteral<"self">, Type.TLiteral<"external">]>;
58
+ origin: Type.TUnsafe<"self" | "user" | "external">;
100
59
  created_at: Type.TString;
101
60
  updated_at: Type.TString;
102
61
  crumpled_at: Type.TOptional<Type.TString>;
@@ -116,36 +75,27 @@ export declare const NotesReadDataSchema: Type.TObject<{
116
75
  project_key: Type.TOptional<Type.TString>;
117
76
  }>;
118
77
  export type NotesReadData = Static<typeof NotesReadDataSchema>;
119
- export declare const NotesListDataSchema: Type.TObject<{
120
- more: Type.TInteger;
121
- namespaces_unavailable: Type.TArray<Type.TString>;
122
- files: Type.TArray<Type.TObject<{
123
- matches: Type.TOptional<Type.TArray<Type.TObject<{
124
- line: Type.TInteger;
125
- text: Type.TString;
126
- offset_chars: Type.TInteger;
127
- }>>>;
128
- more_matches: Type.TOptional<Type.TInteger>;
129
- updated_at: Type.TString;
130
- crumpled_at: Type.TOptional<Type.TString>;
131
- description: Type.TOptional<Type.TString>;
132
- warnings: Type.TArray<Type.TString>;
133
- pinned: Type.TBoolean;
134
- budget: Type.TInteger;
135
- readonly: Type.TBoolean;
136
- project_root: Type.TOptional<Type.TString>;
137
- project_siblings: Type.TOptional<Type.TArray<Type.TObject<{
138
- name: Type.TString;
139
- path: Type.TString;
140
- }>>>;
141
- address: Type.TString;
142
- project_key: Type.TOptional<Type.TString>;
143
- }>>;
144
- }>;
145
- export type NotesListData = Static<typeof NotesListDataSchema>;
146
- type ListedFile = Static<typeof ListedFileSchema>;
147
- 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> = {
148
93
  files: T[];
94
+ more: number;
95
+ namespaces_unavailable: string[];
96
+ };
97
+ export type NotesListData = Snapshot<ListFile> & {
98
+ older?: string;
149
99
  };
150
100
  /** Keep identities intact. Only search previews may shrink to make the first row fit. */
151
101
  export declare function snapshot<T extends {
@@ -158,44 +108,25 @@ export declare function listedFile(row: Pick<NoteRow, "address" | "meta"> & {
158
108
  export declare const notesWriteParameters: Type.TObject<{
159
109
  cwd: Type.TOptional<Type.TString>;
160
110
  pinned: Type.TOptional<Type.TBoolean>;
161
- budget: Type.TOptional<Type.TInteger>;
162
111
  readonly: Type.TOptional<Type.TBoolean>;
163
112
  address: Type.TString;
164
113
  content: Type.TString;
165
- origin: Type.TOptional<Type.TUnion<[Type.TLiteral<"user">, Type.TLiteral<"self">, Type.TLiteral<"external">]>>;
114
+ origin: Type.TOptional<Type.TUnsafe<"self" | "user" | "external">>;
166
115
  description: Type.TOptional<Type.TString>;
167
116
  }>;
168
117
  export declare const notesWrite: {
169
118
  readonly name: "notes_write";
170
119
  readonly label: "Notes write";
171
- 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.";
172
121
  readonly parameters: Type.TObject<{
173
122
  cwd: Type.TOptional<Type.TString>;
174
123
  pinned: Type.TOptional<Type.TBoolean>;
175
- budget: Type.TOptional<Type.TInteger>;
176
124
  readonly: Type.TOptional<Type.TBoolean>;
177
125
  address: Type.TString;
178
126
  content: Type.TString;
179
- origin: Type.TOptional<Type.TUnion<[Type.TLiteral<"user">, Type.TLiteral<"self">, Type.TLiteral<"external">]>>;
127
+ origin: Type.TOptional<Type.TUnsafe<"self" | "user" | "external">>;
180
128
  description: Type.TOptional<Type.TString>;
181
129
  }>;
182
- readonly outputSchema: Type.TUnion<[Type.TObject<{
183
- outcome: Type.TUnion<[Type.TLiteral<"created">, Type.TLiteral<"overwrote">, Type.TLiteral<"uncrumpled">]>;
184
- warnings: Type.TArray<Type.TString>;
185
- pinned: Type.TBoolean;
186
- budget: Type.TInteger;
187
- readonly: Type.TBoolean;
188
- project_root: Type.TOptional<Type.TString>;
189
- project_siblings: Type.TOptional<Type.TArray<Type.TObject<{
190
- name: Type.TString;
191
- path: Type.TString;
192
- }>>>;
193
- address: Type.TString;
194
- project_key: Type.TOptional<Type.TString>;
195
- }>, Type.TObject<{
196
- error: Type.TString;
197
- code: Type.TString;
198
- }>]>;
199
130
  readonly executionMode: "sequential";
200
131
  readonly execute: (params: Static<typeof notesWriteParameters>, context: NotesToolContext) => Promise<Outcome<NotesWriteData>>;
201
132
  readonly render: (result: Outcome<NotesWriteData>) => string;
@@ -206,54 +137,36 @@ export declare const notesUpdateParameters: Type.TObject<{
206
137
  rename_to: Type.TOptional<Type.TString>;
207
138
  cwd: Type.TOptional<Type.TString>;
208
139
  pinned: Type.TOptional<Type.TBoolean>;
209
- budget: Type.TOptional<Type.TInteger>;
210
140
  readonly: Type.TOptional<Type.TBoolean>;
211
141
  address: Type.TString;
212
142
  edits: Type.TOptional<Type.TArray<Type.TObject<{
213
143
  oldText: Type.TString;
214
144
  newText: Type.TString;
145
+ replace_all: Type.TOptional<Type.TBoolean>;
215
146
  }>>>;
216
- origin: Type.TOptional<Type.TUnion<[Type.TLiteral<"user">, Type.TLiteral<"self">, Type.TLiteral<"external">]>>;
147
+ origin: Type.TOptional<Type.TUnsafe<"self" | "user" | "external">>;
217
148
  description: Type.TOptional<Type.TString>;
218
149
  }>;
219
150
  export declare const notesUpdate: {
220
151
  readonly name: "notes_update";
221
152
  readonly label: "Notes update";
222
- 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`).";
223
154
  readonly parameters: Type.TObject<{
224
155
  crumpled: Type.TOptional<Type.TBoolean>;
225
156
  replace_all: Type.TOptional<Type.TBoolean>;
226
157
  rename_to: Type.TOptional<Type.TString>;
227
158
  cwd: Type.TOptional<Type.TString>;
228
159
  pinned: Type.TOptional<Type.TBoolean>;
229
- budget: Type.TOptional<Type.TInteger>;
230
160
  readonly: Type.TOptional<Type.TBoolean>;
231
161
  address: Type.TString;
232
162
  edits: Type.TOptional<Type.TArray<Type.TObject<{
233
163
  oldText: Type.TString;
234
164
  newText: Type.TString;
165
+ replace_all: Type.TOptional<Type.TBoolean>;
235
166
  }>>>;
236
- origin: Type.TOptional<Type.TUnion<[Type.TLiteral<"user">, Type.TLiteral<"self">, Type.TLiteral<"external">]>>;
167
+ origin: Type.TOptional<Type.TUnsafe<"self" | "user" | "external">>;
237
168
  description: Type.TOptional<Type.TString>;
238
169
  }>;
239
- readonly outputSchema: Type.TUnion<[Type.TObject<{
240
- change_kind: Type.TUnion<[Type.TLiteral<"none">, Type.TLiteral<"body">, Type.TLiteral<"metadata">, Type.TLiteral<"moved">]>;
241
- rename_from: Type.TOptional<Type.TString>;
242
- warnings: Type.TArray<Type.TString>;
243
- pinned: Type.TBoolean;
244
- budget: Type.TInteger;
245
- readonly: Type.TBoolean;
246
- project_root: Type.TOptional<Type.TString>;
247
- project_siblings: Type.TOptional<Type.TArray<Type.TObject<{
248
- name: Type.TString;
249
- path: Type.TString;
250
- }>>>;
251
- address: Type.TString;
252
- project_key: Type.TOptional<Type.TString>;
253
- }>, Type.TObject<{
254
- error: Type.TString;
255
- code: Type.TString;
256
- }>]>;
257
170
  readonly executionMode: "sequential";
258
171
  readonly execute: (params: Static<typeof notesUpdateParameters>, context: NotesToolContext, onChange?: (change: NoteChange) => void) => Promise<Outcome<NotesUpdateData>>;
259
172
  readonly render: (result: Outcome<NotesUpdateData>) => string;
@@ -267,7 +180,7 @@ export declare const notesReadParameters: Type.TObject<{
267
180
  export declare const notesRead: {
268
181
  readonly name: "notes_read";
269
182
  readonly label: "Notes read";
270
- 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`).";
271
184
  readonly parameters: Type.TObject<{
272
185
  cwd: Type.TOptional<Type.TString>;
273
186
  offset_chars: Type.TOptional<Type.TInteger>;
@@ -280,7 +193,7 @@ export declare const notesRead: {
280
193
  next_offset_chars: Type.TUnion<[Type.TInteger, Type.TNull]>;
281
194
  warnings: Type.TArray<Type.TString>;
282
195
  metadata: Type.TObject<{
283
- origin: Type.TUnion<[Type.TLiteral<"user">, Type.TLiteral<"self">, Type.TLiteral<"external">]>;
196
+ origin: Type.TUnsafe<"self" | "user" | "external">;
284
197
  created_at: Type.TString;
285
198
  updated_at: Type.TString;
286
199
  crumpled_at: Type.TOptional<Type.TString>;
@@ -308,57 +221,32 @@ export declare const notesRead: {
308
221
  export declare const notesListParameters: Type.TObject<{
309
222
  glob: Type.TOptional<Type.TString>;
310
223
  query: Type.TOptional<Type.TUnion<[Type.TString, Type.TArray<Type.TString>]>>;
311
- max_matches_per_file: Type.TOptional<Type.TInteger>;
224
+ max_matches_per_note: Type.TOptional<Type.TInteger>;
312
225
  crumpled: Type.TOptional<Type.TBoolean>;
313
226
  limit: Type.TOptional<Type.TInteger>;
227
+ cursor: Type.TOptional<Type.TString>;
314
228
  cwd: Type.TOptional<Type.TString>;
315
229
  }>;
316
- export declare function renderListData(data: Snapshot<NotesListData["files"][number] & {
230
+ export declare function renderListData<T extends NotesListData["files"][number] & {
317
231
  last_accessed?: string;
318
- }>): string;
232
+ }>(data: Snapshot<T>, renderMore?: (more: number, files: T[]) => string, options?: {
233
+ omitNamedProjectContext?: boolean;
234
+ }): string;
319
235
  /** A shortened match line still ends with a marker, so its own text says it was cut. */
320
236
  export declare const MATCH_SHORTENED_MARKER = " [truncated]";
321
237
  export declare const notesList: {
322
238
  readonly name: "notes_list";
323
239
  readonly label: "Notes list";
324
- 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`.";
325
241
  readonly parameters: Type.TObject<{
326
242
  glob: Type.TOptional<Type.TString>;
327
243
  query: Type.TOptional<Type.TUnion<[Type.TString, Type.TArray<Type.TString>]>>;
328
- max_matches_per_file: Type.TOptional<Type.TInteger>;
244
+ max_matches_per_note: Type.TOptional<Type.TInteger>;
329
245
  crumpled: Type.TOptional<Type.TBoolean>;
330
246
  limit: Type.TOptional<Type.TInteger>;
247
+ cursor: Type.TOptional<Type.TString>;
331
248
  cwd: Type.TOptional<Type.TString>;
332
249
  }>;
333
- readonly outputSchema: Type.TUnion<[Type.TObject<{
334
- more: Type.TInteger;
335
- namespaces_unavailable: Type.TArray<Type.TString>;
336
- files: Type.TArray<Type.TObject<{
337
- matches: Type.TOptional<Type.TArray<Type.TObject<{
338
- line: Type.TInteger;
339
- text: Type.TString;
340
- offset_chars: Type.TInteger;
341
- }>>>;
342
- more_matches: Type.TOptional<Type.TInteger>;
343
- updated_at: Type.TString;
344
- crumpled_at: Type.TOptional<Type.TString>;
345
- description: Type.TOptional<Type.TString>;
346
- warnings: Type.TArray<Type.TString>;
347
- pinned: Type.TBoolean;
348
- budget: Type.TInteger;
349
- readonly: Type.TBoolean;
350
- project_root: Type.TOptional<Type.TString>;
351
- project_siblings: Type.TOptional<Type.TArray<Type.TObject<{
352
- name: Type.TString;
353
- path: Type.TString;
354
- }>>>;
355
- address: Type.TString;
356
- project_key: Type.TOptional<Type.TString>;
357
- }>>;
358
- }>, Type.TObject<{
359
- error: Type.TString;
360
- code: Type.TString;
361
- }>]>;
362
250
  readonly execute: (params: Static<typeof notesListParameters>, context: NotesToolContext) => Promise<Outcome<NotesListData>>;
363
251
  readonly render: (result: Outcome<NotesListData>) => string;
364
252
  };