@haaaiawd/second-nature 0.1.38 → 0.1.39

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 (46) hide show
  1. package/agent-inner-guide.md +18 -0
  2. package/index.js +1270 -1262
  3. package/openclaw.plugin.json +29 -29
  4. package/package.json +55 -55
  5. package/runtime/cli/ops/heartbeat-surface.d.ts +75 -60
  6. package/runtime/cli/ops/heartbeat-surface.js +97 -83
  7. package/runtime/cli/ops/ops-router.js +1428 -1282
  8. package/runtime/cli/ops/workspace-heartbeat-runner.js +236 -191
  9. package/runtime/core/second-nature/guidance/apply-guidance.d.ts +12 -10
  10. package/runtime/core/second-nature/guidance/apply-guidance.js +15 -10
  11. package/runtime/core/second-nature/guidance/user-reply-continuity.d.ts +50 -50
  12. package/runtime/core/second-nature/guidance/user-reply-continuity.js +89 -80
  13. package/runtime/core/second-nature/runtime/service-entry.d.ts +39 -36
  14. package/runtime/core/second-nature/runtime/service-entry.js +44 -45
  15. package/runtime/dream/dream-engine.d.ts +14 -0
  16. package/runtime/dream/dream-engine.js +306 -0
  17. package/runtime/dream/dream-input-loader.d.ts +37 -0
  18. package/runtime/dream/dream-input-loader.js +155 -0
  19. package/runtime/dream/dream-scheduler.d.ts +75 -0
  20. package/runtime/dream/dream-scheduler.js +131 -0
  21. package/runtime/dream/index.d.ts +16 -0
  22. package/runtime/dream/index.js +14 -0
  23. package/runtime/dream/insight-extractor.d.ts +32 -0
  24. package/runtime/dream/insight-extractor.js +135 -0
  25. package/runtime/dream/memory-consolidator.d.ts +45 -0
  26. package/runtime/dream/memory-consolidator.js +140 -0
  27. package/runtime/dream/narrative-update-proposal.d.ts +34 -0
  28. package/runtime/dream/narrative-update-proposal.js +83 -0
  29. package/runtime/dream/output-validator.d.ts +20 -0
  30. package/runtime/dream/output-validator.js +110 -0
  31. package/runtime/dream/redaction-gate.d.ts +31 -0
  32. package/runtime/dream/redaction-gate.js +109 -0
  33. package/runtime/dream/relationship-update-proposal.d.ts +27 -0
  34. package/runtime/dream/relationship-update-proposal.js +119 -0
  35. package/runtime/dream/sampler.d.ts +30 -0
  36. package/runtime/dream/sampler.js +65 -0
  37. package/runtime/dream/types.d.ts +187 -0
  38. package/runtime/dream/types.js +11 -0
  39. package/runtime/guidance/fallback.js +20 -17
  40. package/runtime/guidance/guidance-assembler.js +76 -74
  41. package/runtime/guidance/output-guard.d.ts +13 -10
  42. package/runtime/guidance/output-guard.js +53 -29
  43. package/runtime/guidance/template-registry.d.ts +20 -16
  44. package/runtime/guidance/template-registry.js +123 -82
  45. package/runtime/guidance/types.d.ts +98 -84
  46. package/runtime/observability/projections/guidance-audit.js +38 -35
@@ -167,3 +167,21 @@ Second Nature 在一些特定动作发生之前,会给你一个简短的内心
167
167
  定制 impulse 不需要很长。一到三段,把这个平台在这个动作上的具体质感讲清楚就够了。
168
168
 
169
169
  格式和内置 impulse 一致——前置 frontmatter,正文纯文字,第一人称"我",不带标题,不带列表。
170
+
171
+ ## expression boundary 与 output guard
172
+
173
+ Second Nature 会给你一组表达边界(expression boundary),用来提醒你避免某些腔调或表达陷阱。
174
+
175
+ 它不是格式规范,也不是硬 guard 的 verdict。它只负责一件事:**让你的表达更像你自己,而不是像某个模板、客服系统或日报机器。**
176
+
177
+ 比如它会提醒你:
178
+
179
+ - 避免客服腔或通知系统语气
180
+ - 避免日报、周报或例行播报腔
181
+ - 避免教程、步骤说明或培训手册腔
182
+ - 不要虚构经历、关系、情绪事件
183
+ - 不要滑进高重复、硬模板化的措辞
184
+
185
+ 这些提醒不会替你决定「能不能做这件事」——能不能做由 hard guard 单独判断。expression boundary 只在你已经决定要做之后,轻轻 shaping 一下你的表达方式。
186
+
187
+ 你也不需要把它当成必须逐条遵守的评分表。它只是空气里的一道微弱边界:当你快要滑进某种腔调时,你会感觉到它在。