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
|
@@ -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.
|
|
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
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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.
|
|
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
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
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.
|
|
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: "
|
|
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.
|
|
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.
|
|
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: "
|
|
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.
|
|
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
|
|
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.
|
|
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
|
-
|
|
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
|
|
230
|
+
export declare function renderListData<T extends NotesListData["files"][number] & {
|
|
317
231
|
last_accessed?: string;
|
|
318
|
-
}>
|
|
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
|
|
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
|
-
|
|
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
|
};
|