notesoup 0.52.2 → 0.52.3

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.
@@ -3,4 +3,4 @@ export declare const CLAUDE_WIPE_SENTENCE = "If this feels like the right moment
3
3
  /** Claude's boot says history is missing rather than naming tools it cannot serve. */
4
4
  export declare const CLAUDE_HISTORY_UNAVAILABLE_SENTENCE = "History isn't available in this Claude session: no main transcript_path was supplied. Keep essential state in notes; don't pretend those notes are the missing transcript.";
5
5
  /** Claude's variant: the mod resets after the turn, so the model only has to stop. */
6
- export declare const CLAUDE_WARNING_PROMPT = "This brain is already spent. Whatever lives only in this brain goes with it \u2014 but the notes stay where they are, and history has the rest written down, though digging it back out is on you.\nUse the last of this brain to put down what the next window can't get back:\n- what you're in the middle of, and how far it has progressed\n- decisions the human has made, in their words\n- what is blocked or pending\n- the next step\n- where the unfinished work sits (branches, scratch directories, uncommitted changes)\n- what failed, and why\n- skills to re-read, and history seqs, notes, or files to consult\n- anything else you expect to be useful after the reset\n- and refresh the stale notes with what has changed since you last wrote them \u2014 the notes the next window gets are the old ones, unless you fix them now\nCorrect or crumple notes that are no longer accurate, starting with MAP files, since every new window loads them.\nWhen the notes are ready, end your turn; the reset runs after it.\nBrain emptied in 3\u2026 2\u2026";
6
+ export declare const CLAUDE_WARNING_PROMPT = "This brain is spent \u2014 and the wipe isn't on a timer: it lands at the end of whatever turn spends the last reserve, which may be this turn. Whatever lives only in this brain goes with it \u2014 but the notes stay where they are, and history has the rest written down, though digging it back out is on you.\nUse what's left of this brain to put down what the next window can't get back:\n- what you're in the middle of, and how far it has progressed\n- decisions the human has made, in their words\n- what is blocked or pending\n- the next step\n- where the unfinished work sits (branches, scratch directories, uncommitted changes)\n- what failed, and why\n- skills to re-read, and history seqs, notes, or files to consult\n- anything else you expect to be useful after the reset\nThen leave the shelf current: replace what's stale \u2014 a whole note or a section inside one \u2014 and crumple notes that are dead, starting with the MAP files every new window loads. The next window gets whatever you leave, dead notes and dead sections alike.\nWhen the notes are ready, end your turn; the reset runs after it.\nBrain emptied in 3\u2026 2\u2026";
@@ -17,7 +17,7 @@ export declare function selectContinuation(origin: ResetOrigin): string;
17
17
  * The shared warning body: the one text both hosts show before a reset. Only the closing
18
18
  * instruction differs — Pi can reset the model itself, Claude can only end the turn.
19
19
  */
20
- export declare const WARNING_BODY = "This brain is already spent. Whatever lives only in this brain goes with it \u2014 but the notes stay where they are, and history has the rest written down, though digging it back out is on you.\nUse the last of this brain to put down what the next window can't get back:\n- what you're in the middle of, and how far it has progressed\n- decisions the human has made, in their words\n- what is blocked or pending\n- the next step\n- where the unfinished work sits (branches, scratch directories, uncommitted changes)\n- what failed, and why\n- skills to re-read, and history seqs, notes, or files to consult\n- anything else you expect to be useful after the reset\n- and refresh the stale notes with what has changed since you last wrote them \u2014 the notes the next window gets are the old ones, unless you fix them now\nCorrect or crumple notes that are no longer accurate, starting with MAP files, since every new window loads them.";
20
+ export declare const WARNING_BODY = "This brain is spent \u2014 and the wipe isn't on a timer: it lands at the end of whatever turn spends the last reserve, which may be this turn. Whatever lives only in this brain goes with it \u2014 but the notes stay where they are, and history has the rest written down, though digging it back out is on you.\nUse what's left of this brain to put down what the next window can't get back:\n- what you're in the middle of, and how far it has progressed\n- decisions the human has made, in their words\n- what is blocked or pending\n- the next step\n- where the unfinished work sits (branches, scratch directories, uncommitted changes)\n- what failed, and why\n- skills to re-read, and history seqs, notes, or files to consult\n- anything else you expect to be useful after the reset\nThen leave the shelf current: replace what's stale \u2014 a whole note or a section inside one \u2014 and crumple notes that are dead, starting with the MAP files every new window loads. The next window gets whatever you leave, dead notes and dead sections alike.";
21
21
  export declare const WARNING_CALL = "The moment the notes are saved, call `empty_brain`. Not one more probe, not one more test \u2014 the next thing you do after saving is reset.";
22
22
  export declare function warningPrompt(): string;
23
23
  /**
@@ -25,7 +25,7 @@ export function selectContinuation(origin) {
25
25
  * The shared warning body: the one text both hosts show before a reset. Only the closing
26
26
  * instruction differs — Pi can reset the model itself, Claude can only end the turn.
27
27
  */
28
- export const WARNING_BODY = "This brain is already spent. Whatever lives only in this brain goes with it — but the notes stay where they are, and history has the rest written down, though digging it back out is on you.\nUse the last of this brain to put down what the next window can't get back:\n- what you're in the middle of, and how far it has progressed\n- decisions the human has made, in their words\n- what is blocked or pending\n- the next step\n- where the unfinished work sits (branches, scratch directories, uncommitted changes)\n- what failed, and why\n- skills to re-read, and history seqs, notes, or files to consult\n- anything else you expect to be useful after the reset\n- and refresh the stale notes with what has changed since you last wrote them — the notes the next window gets are the old ones, unless you fix them now\nCorrect or crumple notes that are no longer accurate, starting with MAP files, since every new window loads them.";
28
+ export const WARNING_BODY = "This brain is spent — and the wipe isn't on a timer: it lands at the end of whatever turn spends the last reserve, which may be this turn. Whatever lives only in this brain goes with it — but the notes stay where they are, and history has the rest written down, though digging it back out is on you.\nUse what's left of this brain to put down what the next window can't get back:\n- what you're in the middle of, and how far it has progressed\n- decisions the human has made, in their words\n- what is blocked or pending\n- the next step\n- where the unfinished work sits (branches, scratch directories, uncommitted changes)\n- what failed, and why\n- skills to re-read, and history seqs, notes, or files to consult\n- anything else you expect to be useful after the reset\nThen leave the shelf current: replace what's stale — a whole note or a section inside one — and crumple notes that are dead, starting with the MAP files every new window loads. The next window gets whatever you leave, dead notes and dead sections alike.";
29
29
  export const WARNING_CALL = "The moment the notes are saved, call `empty_brain`. Not one more probe, not one more test — the next thing you do after saving is reset.";
30
30
  export function warningPrompt() {
31
31
  return `${WARNING_BODY}\n${WARNING_CALL}`;
@@ -104,7 +104,7 @@ export declare const notesWriteParameters: Type.TObject<{
104
104
  export declare const notesWrite: {
105
105
  readonly name: "notes_write";
106
106
  readonly label: "Notes write";
107
- readonly description: "Create or replace a note. Name it for what it holds and when to use it. Store what git and history can't recover. Addresses: a bare path is this session's note; `@project/`, `@human/`, `@self/`, `@model/` are durable homes; `@projects/<name>/<path>` and `@sessions/<id>/<path>` read named project and session notes (read-only). Not file paths: never pass them to file tools.";
107
+ readonly description: "Create a note, or overwrite its whole body. Name it for what it holds and when to use it. Addresses: a bare path is this session's note; `@project/`, `@human/`, `@self/`, `@model/` are durable homes; `@projects/<name>/<path>` and `@sessions/<id>/<path>` read named project and session notes (read-only). Not file paths: never pass them to file tools.";
108
108
  readonly parameters: Type.TObject<{
109
109
  address: Type.TString;
110
110
  content: Type.TString;
@@ -139,7 +139,7 @@ export declare const DIFF_SHORTENED_MARKER = "[diff truncated; update applied]";
139
139
  export declare const notesUpdate: {
140
140
  readonly name: "notes_update";
141
141
  readonly label: "Notes update";
142
- readonly description: "Edit a note, change its origin or crumpled state, or move it. Each `oldText` must match exactly once unless `replace_all` is true. Addresses: a bare path is this session's note; `@project/`, `@human/`, `@self/`, `@model/` are durable homes; `@projects/<name>/<path>` and `@sessions/<id>/<path>` read named project and session notes (read-only). Not file paths: never pass them to file tools.";
142
+ readonly description: "Change part of a note's body, its origin or crumpled state, or its address. When a line goes stale, replace it; don't append the correction below it. Each `oldText` must match exactly once unless `replace_all` is true. Addresses: a bare path is this session's note; `@project/`, `@human/`, `@self/`, `@model/` are durable homes; `@projects/<name>/<path>` and `@sessions/<id>/<path>` read named project and session notes (read-only). Not file paths: never pass them to file tools.";
143
143
  readonly parameters: Type.TObject<{
144
144
  address: Type.TString;
145
145
  edits: Type.TOptional<Type.TArray<Type.TObject<{
@@ -181,7 +181,7 @@ function renderWriteData(data) {
181
181
  }
182
182
  export const notesWrite = {
183
183
  name: "notes_write", label: "Notes write",
184
- description: `Create or replace a note. Name it for what it holds and when to use it. Store what git and history can't recover. ${ADDRESS_DESCRIPTION}`,
184
+ description: `Create a note, or overwrite its whole body. Name it for what it holds and when to use it. ${ADDRESS_DESCRIPTION}`,
185
185
  parameters: notesWriteParameters, outputSchema: resultSchema(NotesWriteDataSchema), executionMode: "sequential",
186
186
  async execute(params, identity) {
187
187
  try {
@@ -229,7 +229,7 @@ function boundedUpdate(data) {
229
229
  }
230
230
  export const notesUpdate = {
231
231
  name: "notes_update", label: "Notes update",
232
- description: `Edit a note, change its origin or crumpled state, or move it. Each \`oldText\` must match exactly once unless \`replace_all\` is true. ${ADDRESS_DESCRIPTION}`,
232
+ description: `Change part of a note's body, its origin or crumpled state, or its address. When a line goes stale, replace it; don't append the correction below it. Each \`oldText\` must match exactly once unless \`replace_all\` is true. ${ADDRESS_DESCRIPTION}`,
233
233
  parameters: notesUpdateParameters, outputSchema: resultSchema(NotesUpdateDataSchema), executionMode: "sequential",
234
234
  async execute(params, identity, renderDiff = (change) => change.kind === "none" ? "" : `note ${change.kind}`) {
235
235
  try {
@@ -17,8 +17,8 @@ Your notes don't go anywhere — no wipe reaches the shelves. History has it too
17
17
  What lives only in this brain leaves with it.
18
18
  A decent moment to put down where you are, while you still remember why.
19
19
  Ready when you are: \`{wipeTool}\`.`;
20
- const GOLDEN_WARNING = `This brain is already spent. Whatever lives only in this brain goes with it — but the notes stay where they are, and history has the rest written down, though digging it back out is on you.
21
- Use the last of this brain to put down what the next window can't get back:
20
+ const GOLDEN_WARNING = `This brain is spent — and the wipe isn't on a timer: it lands at the end of whatever turn spends the last reserve, which may be this turn. Whatever lives only in this brain goes with it — but the notes stay where they are, and history has the rest written down, though digging it back out is on you.
21
+ Use what's left of this brain to put down what the next window can't get back:
22
22
  - what you're in the middle of, and how far it has progressed
23
23
  - decisions the human has made, in their words
24
24
  - what is blocked or pending
@@ -27,8 +27,7 @@ Use the last of this brain to put down what the next window can't get back:
27
27
  - what failed, and why
28
28
  - skills to re-read, and history seqs, notes, or files to consult
29
29
  - anything else you expect to be useful after the reset
30
- - and refresh the stale notes with what has changed since you last wrote them — the notes the next window gets are the old ones, unless you fix them now
31
- Correct or crumple notes that are no longer accurate, starting with MAP files, since every new window loads them.`;
30
+ Then leave the shelf current: replace what's stale — a whole note or a section inside one — and crumple notes that are dead, starting with the MAP files every new window loads. The next window gets whatever you leave, dead notes and dead sections alike.`;
32
31
  const GOLDEN_COUNTDOWN = "Brain emptied in 3… 2…";
33
32
  /**
34
33
  * The approved reset handoffs. Each line is one complete paragraph used verbatim: no fragment
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "notesoup",
3
- "version": "0.52.2",
3
+ "version": "0.52.3",
4
4
  "type": "module",
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "notesoup",
3
- "version": "0.52.2",
3
+ "version": "0.52.3",
4
4
  "description": "Durable notes and a host-scoped notes boot section for Claude Code.",
5
5
  "author": {
6
6
  "name": "AstroSheep"
@@ -9183,7 +9183,7 @@ function renderWriteData(data) {
9183
9183
  var notesWrite = {
9184
9184
  name: "notes_write",
9185
9185
  label: "Notes write",
9186
- description: `Create or replace a note. Name it for what it holds and when to use it. Store what git and history can't recover. ${ADDRESS_DESCRIPTION}`,
9186
+ description: `Create a note, or overwrite its whole body. Name it for what it holds and when to use it. ${ADDRESS_DESCRIPTION}`,
9187
9187
  parameters: notesWriteParameters,
9188
9188
  outputSchema: resultSchema(NotesWriteDataSchema),
9189
9189
  executionMode: "sequential",
@@ -9228,7 +9228,7 @@ ${DIFF_SHORTENED_MARKER}` });
9228
9228
  var notesUpdate = {
9229
9229
  name: "notes_update",
9230
9230
  label: "Notes update",
9231
- description: `Edit a note, change its origin or crumpled state, or move it. Each \`oldText\` must match exactly once unless \`replace_all\` is true. ${ADDRESS_DESCRIPTION}`,
9231
+ description: `Change part of a note's body, its origin or crumpled state, or its address. When a line goes stale, replace it; don't append the correction below it. Each \`oldText\` must match exactly once unless \`replace_all\` is true. ${ADDRESS_DESCRIPTION}`,
9232
9232
  parameters: notesUpdateParameters,
9233
9233
  outputSchema: resultSchema(NotesUpdateDataSchema),
9234
9234
  executionMode: "sequential",
@@ -10077,7 +10077,7 @@ function selectContinuation(origin) {
10077
10077
  const pool = origin === "forced" ? FORCED_CONTINUATIONS : NORMAL_CONTINUATIONS;
10078
10078
  return pool[Math.floor(Math.random() * pool.length)];
10079
10079
  }
10080
- var WARNING_BODY = "This brain is already spent. Whatever lives only in this brain goes with it \u2014 but the notes stay where they are, and history has the rest written down, though digging it back out is on you.\nUse the last of this brain to put down what the next window can't get back:\n- what you're in the middle of, and how far it has progressed\n- decisions the human has made, in their words\n- what is blocked or pending\n- the next step\n- where the unfinished work sits (branches, scratch directories, uncommitted changes)\n- what failed, and why\n- skills to re-read, and history seqs, notes, or files to consult\n- anything else you expect to be useful after the reset\n- and refresh the stale notes with what has changed since you last wrote them \u2014 the notes the next window gets are the old ones, unless you fix them now\nCorrect or crumple notes that are no longer accurate, starting with MAP files, since every new window loads them.";
10080
+ var WARNING_BODY = "This brain is spent \u2014 and the wipe isn't on a timer: it lands at the end of whatever turn spends the last reserve, which may be this turn. Whatever lives only in this brain goes with it \u2014 but the notes stay where they are, and history has the rest written down, though digging it back out is on you.\nUse what's left of this brain to put down what the next window can't get back:\n- what you're in the middle of, and how far it has progressed\n- decisions the human has made, in their words\n- what is blocked or pending\n- the next step\n- where the unfinished work sits (branches, scratch directories, uncommitted changes)\n- what failed, and why\n- skills to re-read, and history seqs, notes, or files to consult\n- anything else you expect to be useful after the reset\nThen leave the shelf current: replace what's stale \u2014 a whole note or a section inside one \u2014 and crumple notes that are dead, starting with the MAP files every new window loads. The next window gets whatever you leave, dead notes and dead sections alike.";
10081
10081
  var COUNTDOWN_LINE = "Brain emptied in 3\u2026 2\u2026";
10082
10082
 
10083
10083
  // plugins/claude/src/text.ts
@@ -33,7 +33,7 @@ export function selectContinuation(origin: ResetOrigin): string {
33
33
  * instruction differs — Pi can reset the model itself, Claude can only end the turn.
34
34
  */
35
35
  export const WARNING_BODY =
36
- "This brain is already spent. Whatever lives only in this brain goes with it — but the notes stay where they are, and history has the rest written down, though digging it back out is on you.\nUse the last of this brain to put down what the next window can't get back:\n- what you're in the middle of, and how far it has progressed\n- decisions the human has made, in their words\n- what is blocked or pending\n- the next step\n- where the unfinished work sits (branches, scratch directories, uncommitted changes)\n- what failed, and why\n- skills to re-read, and history seqs, notes, or files to consult\n- anything else you expect to be useful after the reset\n- and refresh the stale notes with what has changed since you last wrote them — the notes the next window gets are the old ones, unless you fix them now\nCorrect or crumple notes that are no longer accurate, starting with MAP files, since every new window loads them.";
36
+ "This brain is spent — and the wipe isn't on a timer: it lands at the end of whatever turn spends the last reserve, which may be this turn. Whatever lives only in this brain goes with it — but the notes stay where they are, and history has the rest written down, though digging it back out is on you.\nUse what's left of this brain to put down what the next window can't get back:\n- what you're in the middle of, and how far it has progressed\n- decisions the human has made, in their words\n- what is blocked or pending\n- the next step\n- where the unfinished work sits (branches, scratch directories, uncommitted changes)\n- what failed, and why\n- skills to re-read, and history seqs, notes, or files to consult\n- anything else you expect to be useful after the reset\nThen leave the shelf current: replace what's stale — a whole note or a section inside one — and crumple notes that are dead, starting with the MAP files every new window loads. The next window gets whatever you leave, dead notes and dead sections alike.";
37
37
 
38
38
  export const WARNING_CALL = "The moment the notes are saved, call `empty_brain`. Not one more probe, not one more test — the next thing you do after saving is reset.";
39
39
 
@@ -208,7 +208,7 @@ function renderWriteData(data: NotesWriteData): string {
208
208
 
209
209
  export const notesWrite = {
210
210
  name: "notes_write", label: "Notes write",
211
- description: `Create or replace a note. Name it for what it holds and when to use it. Store what git and history can't recover. ${ADDRESS_DESCRIPTION}`,
211
+ description: `Create a note, or overwrite its whole body. Name it for what it holds and when to use it. ${ADDRESS_DESCRIPTION}`,
212
212
  parameters: notesWriteParameters, outputSchema: resultSchema(NotesWriteDataSchema), executionMode: "sequential",
213
213
  async execute(params: Static<typeof notesWriteParameters>, identity: NotesIdentity): Promise<Outcome<NotesWriteData>> {
214
214
  try {
@@ -257,7 +257,7 @@ function boundedUpdate(data: NotesUpdateData): Outcome<NotesUpdateData> {
257
257
 
258
258
  export const notesUpdate = {
259
259
  name: "notes_update", label: "Notes update",
260
- description: `Edit a note, change its origin or crumpled state, or move it. Each \`oldText\` must match exactly once unless \`replace_all\` is true. ${ADDRESS_DESCRIPTION}`,
260
+ description: `Change part of a note's body, its origin or crumpled state, or its address. When a line goes stale, replace it; don't append the correction below it. Each \`oldText\` must match exactly once unless \`replace_all\` is true. ${ADDRESS_DESCRIPTION}`,
261
261
  parameters: notesUpdateParameters, outputSchema: resultSchema(NotesUpdateDataSchema), executionMode: "sequential",
262
262
  async execute(params: Static<typeof notesUpdateParameters>, identity: NotesIdentity, renderDiff: (change: NoteChange) => string = (change) => change.kind === "none" ? "" : `note ${change.kind}`): Promise<Outcome<NotesUpdateData>> {
263
263
  try {