@goodandready/dsh-goal 0.2.5 → 0.2.7
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 +13 -0
- package/README.ru.md +7 -0
- package/README.zh.md +7 -0
- package/lib/client.js +539 -135
- package/lib/engine-milestones.js +106 -0
- package/lib/engine-prompt.js +29 -8
- package/lib/engine-reports.js +108 -2
- package/lib/goal-engine-constants.js +116 -0
- package/lib/goal-engine.js +120 -112
- package/lib/index.js +15 -0
- package/lib/routes.js +88 -1
- package/lib/tools.js +19 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -202,6 +202,9 @@ dsh-goal:
|
|
|
202
202
|
showQuickLaunchButton: true
|
|
203
203
|
consecutiveToolFailureLimit: 3
|
|
204
204
|
enableBrowserNotifications: true
|
|
205
|
+
maxTokenBudget: 0
|
|
206
|
+
budgetWarningThreshold: 80
|
|
207
|
+
autoCheckpointOnMilestone: false
|
|
205
208
|
```
|
|
206
209
|
|
|
207
210
|
| Parameter | Type | Default | Description |
|
|
@@ -212,6 +215,9 @@ dsh-goal:
|
|
|
212
215
|
| `showQuickLaunchButton` | `boolean` | `true` | Show the quick launch goal button above the composer dock |
|
|
213
216
|
| `consecutiveToolFailureLimit` | `number` | `3` | Auto-pause goal if N consecutive turns hit tool execution errors (0 to disable) |
|
|
214
217
|
| `enableBrowserNotifications` | `boolean` | `true` | Show native desktop push notifications on goal completion or failure |
|
|
218
|
+
| `maxTokenBudget` | `number` | `0` | Safety token ceiling (0 = disabled); triggers soft-pause when exceeded |
|
|
219
|
+
| `budgetWarningThreshold` | `number` | `80` | Percentage of budget consumed before warning model to wrap up |
|
|
220
|
+
| `autoCheckpointOnMilestone` | `boolean` | `false` | Automatically create git snapshot commits upon milestone completion |
|
|
215
221
|
|
|
216
222
|
---
|
|
217
223
|
|
|
@@ -229,6 +235,13 @@ npm test
|
|
|
229
235
|
|
|
230
236
|
## 📦 Release Notes
|
|
231
237
|
|
|
238
|
+
### v0.2.6
|
|
239
|
+
- **Token Budget Guard**: Safety ceiling with proactive model guidance at threshold (default 80%) and soft pause (`PAUSED_BUDGET_EXCEEDED`) with 1-click +50k extension.
|
|
240
|
+
- **Sub-milestones & Checklists**: Granular sub-tasks per milestone (`checklist: [{ text, done }]`) with real-time UI toggling and model prompt synchronization.
|
|
241
|
+
- **Auto Git Checkpoints**: Optional automatic git snapshotting upon milestone completion with one-click rollback in the details modal.
|
|
242
|
+
- **Run Artifact Export**: One-click export of structured execution runs to `.dsh/goals/<timestamp>-<slug>.md` (with `.dsh/` git-ignored).
|
|
243
|
+
- **Compact Dock Mode**: Minimizable dock banner switching to sleek status pill, state persisted in `localStorage`.
|
|
244
|
+
|
|
232
245
|
### v0.2.3
|
|
233
246
|
- **Auto-Updater**: Integrated one-click update API endpoint at `/api/dsh-goal/update` with fail-closed origin checks.
|
|
234
247
|
- **Modular Architecture**: Decomposed server codebase into focused submodules (<600 lines each) for routes, tools, store, reports, and updater.
|
package/README.ru.md
CHANGED
|
@@ -159,6 +159,13 @@ npm test
|
|
|
159
159
|
|
|
160
160
|
## 📦 История версий (Release Notes)
|
|
161
161
|
|
|
162
|
+
### v0.2.6
|
|
163
|
+
- **Token Budget Guard**: Защитный потолок расхода токенов с предупреждением модели на 80% и мягкой паузой (`PAUSED_BUDGET_EXCEEDED`) с продлением +50k в 1 клик.
|
|
164
|
+
- **Подзадачи и чек-листы (Sub-milestones)**: Интерактивные чекбоксы подзадач внутри каждого этапа (`checklist: [{ text, done }]`) с синхронизацией с моделью.
|
|
165
|
+
- **Автоматические Git-чекпоинты**: Опциональное создание снимков репозитория при завершении этапа с откатом в 1 клик.
|
|
166
|
+
- **Экспорт артефактов выполнения**: Сохранение полного отчёта в `.dsh/goals/<timestamp>-<slug>.md` (каталог `.dsh/` добавлен в `.gitignore`).
|
|
167
|
+
- **Компактный режим панели (Compact Dock Mode)**: Сворачивание панели цели в аккуратную капсулу с запоминанием в `localStorage`.
|
|
168
|
+
|
|
162
169
|
### v0.2.3
|
|
163
170
|
- **Автообновление**: Встроен эндпоинт API автообновления в один клик по адресу `/api/dsh-goal/update` с fail-closed проверкой источника.
|
|
164
171
|
- **Модульная архитектура**: Серверная половина плагина полностью декомпозирована на специализированные модули (<600 строк каждый): маршруты, инструменты, хранилище, отчёты и модуль обновления.
|
package/README.zh.md
CHANGED
|
@@ -224,6 +224,13 @@ MIT © [GooDAnDReaDY](https://github.com/GooDAnDReaDY)
|
|
|
224
224
|
|
|
225
225
|
## 📦 版本历史 (Release Notes)
|
|
226
226
|
|
|
227
|
+
### v0.2.6
|
|
228
|
+
- **Token 预算守护 (Token Budget Guard)**:设置安全使用上限,并在消耗达阈值(默认80%)时注入预警引导,达到100%时软暂停(`PAUSED_BUDGET_EXCEEDED`),支持一键延展 +50k 预算。
|
|
229
|
+
- **子里程碑与检查清单 (Sub-milestones & Checklists)**:支持里程碑层级下的细分任务清单(`checklist: [{ text, done }]`),支持前端实时勾选及提示词自动同步。
|
|
230
|
+
- **Git 自动检查点 (Auto Git Checkpoints)**:里程碑达成时可选自动生成快照提交,并在详情弹窗中支持一键回滚。
|
|
231
|
+
- **执行成果导出 (Run Artifact Export)**:一键导出 Markdown 格式执行成果至 `.dsh/goals/<timestamp>-<slug>.md`(已添加 `.dsh/` 至 `.gitignore`)。
|
|
232
|
+
- **紧凑面板模式 (Compact Dock Mode)**:输入栏固定面板可折叠为精巧胶囊状态栏,状态保存至 `localStorage`。
|
|
233
|
+
|
|
227
234
|
### v0.2.3
|
|
228
235
|
- **自动更新**: 在 `/api/dsh-goal/update` 集成了一键更新 API 端点,并配备安全的原点验证。
|
|
229
236
|
- **模块化架构**: 将服务端完整解耦为高内聚子模块(各模块均低于 600 行):路由、工具、持久化存储、报告生成与更新器。
|