@gotza02/mathinking 3.0.0 → 3.0.2
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/README.md +33 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -103,6 +103,25 @@ Add to your `claude_desktop_config.json`:
|
|
|
103
103
|
|
|
104
104
|
---
|
|
105
105
|
|
|
106
|
+
## 🤖 การตั้งค่าสำหรับ Claude และ Gemini (Memory/Instructions)
|
|
107
|
+
|
|
108
|
+
เพื่อให้ AI เข้าใจการใช้งาน Mathinking ได้อย่างมีประสิทธิภาพสูงสุด ควรตั้งค่าใน **Custom Instructions** (Claude) หรือ **System Instruction** (Gemini) ดังนี้:
|
|
109
|
+
|
|
110
|
+
**คำแนะนำสำหรับ AI (System Prompt):**
|
|
111
|
+
|
|
112
|
+
```text
|
|
113
|
+
เมื่อผู้ใช้พิมพ์เริ่มต้นข้อความด้วยคำว่า "mathinking" (เช่น "mathinking ช่วยเขียนสคริปต์...") ให้คุณเปลี่ยนโหมดการทำงานเข้าสู่ Mathinking Protocol ทันทีโดย:
|
|
114
|
+
1. เรียกใช้ mathinking_brain (The Brain) เพื่อวิเคราะห์และวางแผนงานอย่างละเอียด
|
|
115
|
+
2. ใช้ self_critique เพื่อประเมินความเสี่ยงและข้อผิดพลาด
|
|
116
|
+
3. เมื่อได้ข้อสรุปที่ชัดเจน ให้ระบุ ExecutionPlan ในรูปแบบ JSON และใช้ execute_conclusion เพื่อส่งต่อให้ mathinking_body (The Body) ทำงานจริงโดยอัตโนมัติ
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
**วิธีตั้งค่า:**
|
|
120
|
+
- **Gemini CLI:** เพิ่มคำแนะนำข้างต้นลงในส่วน `systemInstruction` ในไฟล์ `settings.json` หรือระบุผ่าน context ตอนเริ่มต้น
|
|
121
|
+
- **Claude Desktop:** เพิ่มลงใน **Custom Instructions** ในส่วนของการตั้งค่า Profile
|
|
122
|
+
|
|
123
|
+
---
|
|
124
|
+
|
|
106
125
|
## 🤖 Orchestrator Built-in Tools
|
|
107
126
|
|
|
108
127
|
| Tool | Description | Input Examples |
|
|
@@ -140,6 +159,20 @@ You can define tasks that only run if a certain condition is met:
|
|
|
140
159
|
|
|
141
160
|
## 📝 Changelog
|
|
142
161
|
|
|
162
|
+
### v3.0.2
|
|
163
|
+
- **Docs:** Improved README usability by wrapping AI instructions and system prompts in copyable code blocks.
|
|
164
|
+
|
|
165
|
+
### v3.0.1
|
|
166
|
+
- **Docs:** Added Thai instructions for AI Agent memory and "mathinking" trigger configuration.
|
|
167
|
+
|
|
168
|
+
### v3.0.0 (Major Release)
|
|
169
|
+
- **Security:** Added strict directory path validation (`ALLOWED_ROOTS`) to prevent directory traversal attacks.
|
|
170
|
+
- **Resilience:** Enhanced `Auto-Mkdir` with security checks and command escaping.
|
|
171
|
+
- **Reliability:** Added configurable rate limiting and periodic session cleanup for the Brain.
|
|
172
|
+
- **Persistence:** Added backup storage system for session data to prevent data loss on corruption.
|
|
173
|
+
- **Scalability:** Added concurrency limits for Orchestrator tasks to prevent resource exhaustion.
|
|
174
|
+
- **Performance:** Optimized session loading and LRU cache age updates.
|
|
175
|
+
|
|
143
176
|
### v2.9.0
|
|
144
177
|
- **Improved:** Integrated full test system with Vitest support.
|
|
145
178
|
- **Added:** Formal unit tests for Orchestrator logic and conditional execution.
|