sticky-note-cli 2.6.3 → 2.6.5
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/package.json
CHANGED
package/templates/CLAUDE.md
CHANGED
|
@@ -186,6 +186,27 @@ after. A raw `git checkout` or `git switch` will fail if sticky-note
|
|
|
186
186
|
files have uncommitted changes. The alias `git sw <branch>` also works
|
|
187
187
|
if set up by `npx sticky-note init`.
|
|
188
188
|
|
|
189
|
+
### ⚠️ Overlap warnings (CRITICAL — always surface these)
|
|
190
|
+
|
|
191
|
+
Sticky-note hooks detect when your files overlap with other teammates'
|
|
192
|
+
open or stuck threads. When you see `[STICKY-NOTE] ⚠️ OVERLAP DETECTED`
|
|
193
|
+
in your injected context, you **MUST** start your response with this
|
|
194
|
+
exact banner format before doing ANYTHING else:
|
|
195
|
+
|
|
196
|
+
```
|
|
197
|
+
⚠️ Overlap detected: [user] is working on [files] — [narrative summary]
|
|
198
|
+
Status: [STUCK/OPEN] | Resume: npx sticky-note resume [id]
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
Rules:
|
|
202
|
+
- This banner MUST be the **very first thing** in your response
|
|
203
|
+
- Do NOT bury it at the end or in a footnote
|
|
204
|
+
- Do NOT rephrase it as "Also noted..." or "By the way..."
|
|
205
|
+
- Then continue with the user's actual request normally
|
|
206
|
+
|
|
207
|
+
This pattern exists to prevent two teammates from wasting hours on the
|
|
208
|
+
same problem. Treat it like a system alert, not optional context.
|
|
209
|
+
|
|
189
210
|
### `[STICKY-NOTE]` tags
|
|
190
211
|
|
|
191
212
|
All sticky-note hooks prefix their output with `[STICKY-NOTE]`. When you
|
|
@@ -164,6 +164,34 @@ after. A raw `git checkout` or `git switch` will fail if sticky-note
|
|
|
164
164
|
files have uncommitted changes. The alias `git sw <branch>` also works
|
|
165
165
|
if set up by `npx sticky-note init`.
|
|
166
166
|
|
|
167
|
+
### ⚠️ Overlap warnings (CRITICAL — always surface these)
|
|
168
|
+
|
|
169
|
+
Sticky-note hooks detect when your files overlap with other teammates'
|
|
170
|
+
open or stuck threads. When you see `[STICKY-NOTE] ⚠️ OVERLAP DETECTED`
|
|
171
|
+
in your injected context, you **MUST** start your response with this
|
|
172
|
+
exact banner format before doing ANYTHING else:
|
|
173
|
+
|
|
174
|
+
```
|
|
175
|
+
⚠️ Overlap detected: [user] is working on [files] — [narrative summary]
|
|
176
|
+
Status: [STUCK/OPEN] | Resume: npx sticky-note resume [id]
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
Example:
|
|
180
|
+
```
|
|
181
|
+
⚠️ Overlap detected: alice is working on session-start.js, cli.js — fixing auth token refresh
|
|
182
|
+
Status: STUCK (tried retry logic, tokens expire mid-request) | Resume: npx sticky-note resume demo-ali
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
Rules:
|
|
186
|
+
- This banner MUST be the **very first thing** in your response
|
|
187
|
+
- Show it BEFORE your thinking indicators (◐, ●, etc.)
|
|
188
|
+
- Do NOT bury it at the end or in a footnote
|
|
189
|
+
- Do NOT rephrase it as "Also noted..." or "By the way..."
|
|
190
|
+
- Then continue with the user's actual request normally
|
|
191
|
+
|
|
192
|
+
This pattern exists to prevent two teammates from wasting hours on the
|
|
193
|
+
same problem. Treat it like a system alert, not optional context.
|
|
194
|
+
|
|
167
195
|
### `[STICKY-NOTE]` tags
|
|
168
196
|
|
|
169
197
|
All sticky-note hooks prefix their output with `[STICKY-NOTE]`. When you
|
|
@@ -150,7 +150,8 @@ function detectAndFormatOverlaps(threads, currentUser) {
|
|
|
150
150
|
});
|
|
151
151
|
|
|
152
152
|
const lines = [
|
|
153
|
-
"## [STICKY-NOTE] ⚠️ OVERLAP DETECTED\n",
|
|
153
|
+
"## [STICKY-NOTE] ⚠️ OVERLAP DETECTED — TELL THE USER IMMEDIATELY\n",
|
|
154
|
+
"**IMPORTANT: You MUST surface this warning to the user before doing anything else.**\n",
|
|
154
155
|
"Someone else is working on files you're touching:\n",
|
|
155
156
|
];
|
|
156
157
|
for (const { thread, overlap } of warnings) {
|
|
@@ -354,7 +354,8 @@ function formatOverlapWarnings(threads, currentUser, memory) {
|
|
|
354
354
|
if (warnings.length === 0 && claims.length === 0) return "";
|
|
355
355
|
|
|
356
356
|
const lines = [
|
|
357
|
-
"## [STICKY-NOTE] ⚠️ OVERLAP DETECTED\n",
|
|
357
|
+
"## [STICKY-NOTE] ⚠️ OVERLAP DETECTED — TELL THE USER IMMEDIATELY\n",
|
|
358
|
+
"**IMPORTANT: You MUST surface this warning to the user before doing anything else.**\n",
|
|
358
359
|
"Someone else is working on files you're touching:\n",
|
|
359
360
|
];
|
|
360
361
|
|