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.
- package/.agents/plugins/marketplace.json +15 -0
- package/README.md +14 -10
- 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 +2 -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 +1 -1
- package/dist/plugins/pi/budget.js +3 -2
- package/dist/plugins/pi/entries.d.ts +1 -0
- package/dist/plugins/pi/entries.js +1 -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/lifecycle.d.ts +1 -1
- package/dist/plugins/pi/reset/lifecycle.js +8 -9
- package/dist/plugins/pi/runtime.js +102 -61
- package/dist/plugins/pi/tool-result.js +7 -7
- package/dist/plugins/pi/window.d.ts +33 -3
- package/dist/plugins/pi/window.js +209 -9
- package/dist/src/boot/render.d.ts +5 -0
- package/dist/src/boot/render.js +60 -28
- package/dist/src/boot/text.d.ts +3 -3
- package/dist/src/boot/text.js +27 -26
- package/dist/src/budget/text.d.ts +2 -2
- package/dist/src/budget/text.js +13 -13
- 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 +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/notes/frontmatter.d.ts +4 -0
- package/dist/src/notes/frontmatter.js +15 -1
- 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 +47 -6
- package/dist/src/notes/store.d.ts +14 -0
- package/dist/src/notes/store.js +33 -12
- 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 -91
- 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 +58 -160
- package/dist/src/tools/notes.js +151 -99
- 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 +198 -16
- 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 +133 -14
- package/dist/test/claude-history.test.js +14 -13
- package/dist/test/claude-mod.test.js +9 -6
- 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 +65 -2
- package/dist/test/helpers/extension.js +72 -3
- 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/note-policy.test.js +189 -56
- 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 +2 -2
- package/docs/antigravity.md +44 -0
- package/docs/architecture.md +6 -4
- package/docs/claude-code-mod.md +2 -2
- package/docs/codex.md +36 -38
- package/docs/dsh.md +4 -4
- package/docs/history-sessions.md +28 -50
- package/docs/notes-library.md +6 -6
- 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 +3 -3
- 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 +1129 -549
- package/plugins/claude/hooks/register.ts +2 -2
- package/plugins/claude/playbook.md +3 -3
- package/plugins/claude/skills/dream/SKILL.md +2 -2
- package/plugins/claude/skills/notesoup/SKILL.md +92 -0
- package/plugins/claude/src/helper.ts +2 -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 +18494 -17905
- 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 +3 -3
- package/plugins/pi/entries.ts +1 -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/lifecycle.ts +9 -10
- package/plugins/pi/runtime.ts +96 -60
- package/plugins/pi/tool-result.ts +8 -8
- package/plugins/pi/window.ts +198 -9
- package/skills/dream/SKILL.md +2 -2
- package/skills/notesoup/SKILL.md +92 -0
- package/src/boot/render.ts +59 -25
- package/src/boot/text.ts +30 -27
- package/src/budget/text.ts +13 -13
- 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 +1 -1
- package/src/notes/frontmatter.ts +16 -1
- package/src/notes/index.ts +1 -1
- package/src/notes/policy.ts +45 -6
- package/src/notes/store.ts +30 -15
- 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 +150 -112
- 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,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.
|
|
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
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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.
|
|
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
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
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.
|
|
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: "
|
|
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.
|
|
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.
|
|
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: "
|
|
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.
|
|
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
|
|
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.
|
|
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
|
-
|
|
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
|
|
230
|
+
export declare function renderListData<T extends NotesListData["files"][number] & {
|
|
308
231
|
last_accessed?: string;
|
|
309
|
-
}>
|
|
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
|
|
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
|
-
|
|
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
|
};
|