principles-disciple 1.192.0 → 1.194.0
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/dist/commands/pain.js +24 -0
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/dist/commands/pain.js
CHANGED
|
@@ -171,6 +171,18 @@ export function handlePainCommand(ctx) {
|
|
|
171
171
|
if (suggestionText) {
|
|
172
172
|
text += suggestionText;
|
|
173
173
|
}
|
|
174
|
+
else if (stats.totalRules === 0 && stats.totalHits === 0) {
|
|
175
|
+
// Fix-14 (P1-DESIGN-2): Empty-state onboarding guidance for fresh installs.
|
|
176
|
+
// Merges Fix-13's welcome message here instead of injecting into the
|
|
177
|
+
// before_prompt_build hook (avoids MVP-Core behavior change).
|
|
178
|
+
text += `\n🦞 **欢迎使用 Principles Disciple!**\n\n`;
|
|
179
|
+
text += `当前是全新工作区,还没有痛觉信号 —— 这是正常的。\n\n`;
|
|
180
|
+
text += `**下一步**:\n`;
|
|
181
|
+
text += `1. 让 Agent 工作,当它犯错时运行 \`/pd-pain <描述问题>\`\n`;
|
|
182
|
+
text += `2. 或运行演示: \`pd demo first-principle\`\n`;
|
|
183
|
+
text += `3. 配置 LLM runtime profile: \`pd console open --workspace "<path>"\`\n\n`;
|
|
184
|
+
text += `审批通过的原则会出现在这里。`;
|
|
185
|
+
}
|
|
174
186
|
else {
|
|
175
187
|
text += `*💡 提示: 使用 \`/pd-status empathy\` 查看详细情绪事件统计。*`;
|
|
176
188
|
}
|
|
@@ -189,6 +201,18 @@ export function handlePainCommand(ctx) {
|
|
|
189
201
|
if (suggestionText) {
|
|
190
202
|
text += suggestionText;
|
|
191
203
|
}
|
|
204
|
+
else if (stats.totalRules === 0 && stats.totalHits === 0) {
|
|
205
|
+
// Fix-14 (P1-DESIGN-2): Empty-state onboarding guidance for fresh installs.
|
|
206
|
+
// Merges Fix-13's welcome message here instead of injecting into the
|
|
207
|
+
// before_prompt_build hook (avoids MVP-Core behavior change).
|
|
208
|
+
text += `\n🦞 **Welcome to Principles Disciple!**\n\n`;
|
|
209
|
+
text += `This is a fresh workspace with no pain signals yet — that's expected.\n\n`;
|
|
210
|
+
text += `**Next steps**:\n`;
|
|
211
|
+
text += `1. Let your agent work and run \`/pd-pain <description>\` when it makes a mistake\n`;
|
|
212
|
+
text += `2. Or run the demo: \`pd demo first-principle\`\n`;
|
|
213
|
+
text += `3. Configure LLM runtime profile: \`pd console open --workspace "<path>"\`\n\n`;
|
|
214
|
+
text += `Approved principles will appear here once activated.`;
|
|
215
|
+
}
|
|
192
216
|
else {
|
|
193
217
|
text += `*💡 Hint: Use \`/pd-status empathy\` to view detailed empathy event statistics.*`;
|
|
194
218
|
}
|
package/openclaw.plugin.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "principles-disciple",
|
|
3
3
|
"name": "Principles Disciple",
|
|
4
4
|
"description": "Evolutionary programming agent framework with strategic guardrails and reflection loops.",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.194.0",
|
|
6
6
|
"activation": {
|
|
7
7
|
"onCapabilities": [
|
|
8
8
|
"hook"
|