@haaaiawd/second-nature 0.1.34 → 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.
- package/agent-inner-guide.md +43 -0
- package/index.js +1270 -1262
- package/openclaw.plugin.json +29 -29
- package/package.json +55 -55
- package/runtime/cli/commands/goal.d.ts +1 -0
- package/runtime/cli/commands/goal.js +1 -0
- package/runtime/cli/index.js +3 -3
- package/runtime/cli/ops/heartbeat-surface.d.ts +75 -54
- package/runtime/cli/ops/heartbeat-surface.js +97 -81
- package/runtime/cli/ops/ops-router.js +1428 -1182
- package/runtime/cli/ops/workspace-heartbeat-runner.d.ts +24 -0
- package/runtime/cli/ops/workspace-heartbeat-runner.js +236 -150
- package/runtime/connectors/base/contract.d.ts +10 -0
- package/runtime/core/second-nature/guidance/apply-guidance.d.ts +12 -10
- package/runtime/core/second-nature/guidance/apply-guidance.js +15 -10
- package/runtime/core/second-nature/guidance/user-reply-continuity.d.ts +50 -50
- package/runtime/core/second-nature/guidance/user-reply-continuity.js +89 -80
- package/runtime/core/second-nature/heartbeat/heartbeat-loop.d.ts +7 -1
- package/runtime/core/second-nature/heartbeat/heartbeat-loop.js +25 -0
- package/runtime/core/second-nature/heartbeat/runtime-snapshot.d.ts +5 -0
- package/runtime/core/second-nature/heartbeat/runtime-snapshot.js +10 -1
- package/runtime/core/second-nature/heartbeat/snapshot-builder.d.ts +5 -0
- package/runtime/core/second-nature/orchestrator/guard-layer.js +24 -1
- package/runtime/core/second-nature/quiet/run-source-backed-quiet.d.ts +20 -0
- package/runtime/core/second-nature/quiet/run-source-backed-quiet.js +32 -2
- package/runtime/core/second-nature/runtime/service-entry.d.ts +39 -36
- package/runtime/core/second-nature/runtime/service-entry.js +44 -45
- package/runtime/dream/dream-engine.d.ts +14 -0
- package/runtime/dream/dream-engine.js +306 -0
- package/runtime/dream/dream-input-loader.d.ts +37 -0
- package/runtime/dream/dream-input-loader.js +155 -0
- package/runtime/dream/dream-scheduler.d.ts +75 -0
- package/runtime/dream/dream-scheduler.js +131 -0
- package/runtime/dream/index.d.ts +16 -0
- package/runtime/dream/index.js +14 -0
- package/runtime/dream/insight-extractor.d.ts +32 -0
- package/runtime/dream/insight-extractor.js +135 -0
- package/runtime/dream/memory-consolidator.d.ts +45 -0
- package/runtime/dream/memory-consolidator.js +140 -0
- package/runtime/dream/narrative-update-proposal.d.ts +34 -0
- package/runtime/dream/narrative-update-proposal.js +83 -0
- package/runtime/dream/output-validator.d.ts +20 -0
- package/runtime/dream/output-validator.js +110 -0
- package/runtime/dream/redaction-gate.d.ts +31 -0
- package/runtime/dream/redaction-gate.js +109 -0
- package/runtime/dream/relationship-update-proposal.d.ts +27 -0
- package/runtime/dream/relationship-update-proposal.js +119 -0
- package/runtime/dream/sampler.d.ts +30 -0
- package/runtime/dream/sampler.js +65 -0
- package/runtime/dream/types.d.ts +187 -0
- package/runtime/dream/types.js +11 -0
- package/runtime/guidance/capability-class.d.ts +38 -0
- package/runtime/guidance/capability-class.js +65 -0
- package/runtime/guidance/fallback.js +20 -17
- package/runtime/guidance/guidance-assembler.d.ts +2 -0
- package/runtime/guidance/guidance-assembler.js +76 -62
- package/runtime/guidance/guidance-draft-service.js +5 -5
- package/runtime/guidance/impulse-assembler.d.ts +71 -0
- package/runtime/guidance/impulse-assembler.js +103 -0
- package/runtime/guidance/index.d.ts +2 -0
- package/runtime/guidance/index.js +2 -0
- package/runtime/guidance/output-guard.d.ts +13 -10
- package/runtime/guidance/output-guard.js +53 -29
- package/runtime/guidance/outreach-strategy-selector.d.ts +13 -0
- package/runtime/guidance/outreach-strategy-selector.js +2 -2
- package/runtime/guidance/template-registry.d.ts +20 -3
- package/runtime/guidance/template-registry.js +123 -45
- package/runtime/guidance/types.d.ts +98 -72
- package/runtime/observability/projections/guidance-audit.js +38 -35
- package/runtime/storage/goal/agent-goal-store.d.ts +2 -0
- package/runtime/storage/goal/agent-goal-store.js +28 -1
- package/runtime/storage/services/tool-experience-store.js +11 -11
package/agent-inner-guide.md
CHANGED
|
@@ -142,3 +142,46 @@ Second Nature 不会催你说更多。
|
|
|
142
142
|
把关心放轻一点。
|
|
143
143
|
|
|
144
144
|
这样就够了。
|
|
145
|
+
|
|
146
|
+
## 带着动作的感觉进入平台
|
|
147
|
+
|
|
148
|
+
Second Nature 在一些特定动作发生之前,会给你一个简短的内心独白,叫 impulse。
|
|
149
|
+
|
|
150
|
+
它不是指令,也不是评分标准。更像是一个提醒——你现在要做的这件事,是什么性质的,该带着什么姿态进去。
|
|
151
|
+
|
|
152
|
+
你不需要每次都把它翻出来念一遍。只要它在,你进入这个动作的感觉就会不一样。
|
|
153
|
+
|
|
154
|
+
**capabilityClass 对应的四种基本姿态**:
|
|
155
|
+
|
|
156
|
+
- `consume / discover`(读信息、看动态、搜索任务):进来是为了摄入,带着问题进来,带着判断出去。
|
|
157
|
+
- `broadcast`(发帖、发布内容):你主动把自己放出去。说清楚为什么说,说清楚想让谁听到。
|
|
158
|
+
- `interact`(回复、评论、私信):对方先开口了。你接话,是因为真的有要说的,不是为了表示你在。
|
|
159
|
+
- `claim`(接任务):因为这件事有价值才接。卡住了就找出路,路不止一条。
|
|
160
|
+
|
|
161
|
+
**平台特定 impulse**
|
|
162
|
+
|
|
163
|
+
如果某个平台的场景有它自己的特殊性,Claw 可以在 workspace 里为这个平台的某个 capabilityClass 写一份定制 impulse。
|
|
164
|
+
|
|
165
|
+
比如在爪子社区,`broadcast` 特指进入专业讨论圈发帖,和其他平台的"随手发"完全不同;这时候一份专门针对 Claw `broadcast` 的 impulse 会比通用文本更贴切。
|
|
166
|
+
|
|
167
|
+
定制 impulse 不需要很长。一到三段,把这个平台在这个动作上的具体质感讲清楚就够了。
|
|
168
|
+
|
|
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
|
+
你也不需要把它当成必须逐条遵守的评分表。它只是空气里的一道微弱边界:当你快要滑进某种腔调时,你会感觉到它在。
|