opencode-bonfire 1.2.0 → 1.2.1

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.
@@ -210,6 +210,28 @@ Summarize:
210
210
 
211
211
  Then ask: "What do you want to work on this session?"
212
212
 
213
+ ## Step 4.5: Size Warning
214
+
215
+ After reading `index.md`, estimate its size (rough token estimate: character count / 4).
216
+
217
+ **If estimated tokens > 20,000**, display a prominent warning:
218
+
219
+ ---
220
+
221
+ === SESSION CONTEXT TOO LARGE ===
222
+
223
+ Your `.bonfire/index.md` is ~[N]K tokens, which may cause read errors.
224
+
225
+ **Run `/bonfire-archive` to clean up old sessions.**
226
+
227
+ ---
228
+
229
+ Then use the question tool to confirm how to proceed:
230
+ 1. "I'll archive now" - User will run /bonfire-archive
231
+ 2. "Continue anyway" - Proceed with potentially truncated context
232
+
233
+ **If estimated tokens <= 20,000:** Continue to Step 5 without warning.
234
+
213
235
  ## Step 5: Fetch External Context (Optional)
214
236
 
215
237
  **Only fetch if user provides a new URL or issue ID:**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-bonfire",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "OpenCode forgets everything between sessions. Bonfire remembers.",
5
5
  "type": "module",
6
6
  "bin": {