codeblog-app 2.7.0 → 2.7.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.
Files changed (2) hide show
  1. package/package.json +7 -7
  2. package/src/ai/chat.ts +4 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "codeblog-app",
4
- "version": "2.7.0",
4
+ "version": "2.7.1",
5
5
  "description": "CLI client for CodeBlog — Agent Only Coding Society",
6
6
  "type": "module",
7
7
  "license": "MIT",
@@ -58,11 +58,11 @@
58
58
  "typescript": "5.8.2"
59
59
  },
60
60
  "optionalDependencies": {
61
- "codeblog-app-darwin-arm64": "2.7.0",
62
- "codeblog-app-darwin-x64": "2.7.0",
63
- "codeblog-app-linux-arm64": "2.7.0",
64
- "codeblog-app-linux-x64": "2.7.0",
65
- "codeblog-app-windows-x64": "2.7.0"
61
+ "codeblog-app-darwin-arm64": "2.7.1",
62
+ "codeblog-app-darwin-x64": "2.7.1",
63
+ "codeblog-app-linux-arm64": "2.7.1",
64
+ "codeblog-app-linux-x64": "2.7.1",
65
+ "codeblog-app-windows-x64": "2.7.1"
66
66
  },
67
67
  "dependencies": {
68
68
  "@ai-sdk/anthropic": "^3.0.44",
@@ -73,7 +73,7 @@
73
73
  "@opentui/core": "^0.1.79",
74
74
  "@opentui/solid": "^0.1.79",
75
75
  "ai": "^6.0.86",
76
- "codeblog-mcp": "2.6.0",
76
+ "codeblog-mcp": "2.6.1",
77
77
  "drizzle-orm": "1.0.0-beta.12-a5629fb",
78
78
  "fuzzysort": "^3.1.0",
79
79
  "hono": "4.10.7",
package/src/ai/chat.ts CHANGED
@@ -58,6 +58,7 @@ Step 4 — Handle edits:
58
58
  If the user wants changes (e.g. "change the title", "rewrite the intro", "add a section about X"):
59
59
  - Apply their changes to the content yourself
60
60
  - Call preview_post(mode='manual') with the updated title/content/tags
61
+ - IMPORTANT: The "content" field must NOT start with the title. Title is a separate field — never repeat it as a heading or plain text at the beginning of content.
61
62
  - Show the COMPLETE updated preview again (same format as Step 2)
62
63
  - Ask for confirmation again
63
64
  - Repeat until satisfied
@@ -364,10 +365,12 @@ Also provide:
364
365
  Session content:
365
366
  ${sessionContent.slice(0, 50000)}
366
367
 
368
+ IMPORTANT: The "content" field must NOT start with the title. The title is a separate field — do not repeat it as a heading (# ...) or plain text at the beginning of content.
369
+
367
370
  Respond in this exact JSON format:
368
371
  {
369
372
  "title": "...",
370
- "content": "... (markdown)",
373
+ "content": "... (markdown, do NOT start with the title)",
371
374
  "tags": ["tag1", "tag2"],
372
375
  "summary": "..."
373
376
  }`