@haaaiawd/second-nature 0.1.50 → 0.1.51

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 (947) hide show
  1. package/SKILL.md +22 -320
  2. package/{docs/claw-second-nature-inner-guide.md → agent-inner-guide.md} +43 -0
  3. package/openclaw.plugin.json +29 -0
  4. package/package.json +32 -61
  5. package/{dist/src → runtime}/cli/commands/index.js +325 -325
  6. package/{dist/src → runtime}/cli/ops/heartbeat-surface.d.ts +84 -84
  7. package/{dist/src → runtime}/cli/ops/heartbeat-surface.js +100 -100
  8. package/{dist/src → runtime}/cli/ops/ops-router.js +1482 -1482
  9. package/{dist/src → runtime}/cli/ops/workspace-heartbeat-runner.d.ts +85 -85
  10. package/{dist/src → runtime}/cli/ops/workspace-heartbeat-runner.js +242 -242
  11. package/{dist/src → runtime}/connectors/base/contract.d.ts +111 -111
  12. package/{dist/src → runtime}/connectors/base/failure-taxonomy.d.ts +13 -13
  13. package/{dist/src → runtime}/connectors/base/failure-taxonomy.js +186 -186
  14. package/{dist/src → runtime}/connectors/base/map-life-evidence.js +137 -137
  15. package/{dist/src → runtime}/connectors/base/policy-layer.js +202 -202
  16. package/{dist/src → runtime}/connectors/manifest/manifest-schema.d.ts +152 -152
  17. package/{dist/src → runtime}/connectors/manifest/manifest-schema.js +54 -54
  18. package/{dist/src → runtime}/connectors/services/connector-executor-adapter.d.ts +20 -20
  19. package/{dist/src → runtime}/connectors/services/connector-executor-adapter.js +645 -645
  20. package/{dist/src → runtime}/core/second-nature/heartbeat/goal-lifecycle-policy.d.ts +24 -24
  21. package/{dist/src → runtime}/core/second-nature/heartbeat/goal-lifecycle-policy.js +61 -61
  22. package/{dist/src → runtime}/core/second-nature/heartbeat/heartbeat-loop.d.ts +97 -97
  23. package/{dist/src → runtime}/core/second-nature/heartbeat/heartbeat-loop.js +397 -397
  24. package/{dist/src → runtime}/core/second-nature/orchestrator/platform-capability-router.js +149 -149
  25. package/HEARTBEAT.md +0 -44
  26. package/LICENSE +0 -176
  27. package/README.md +0 -136
  28. package/README.zh-CN.md +0 -120
  29. package/dist/data/observability.db +0 -0
  30. package/dist/data/state.db +0 -0
  31. package/dist/plugin/index.d.ts +0 -31
  32. package/dist/plugin/workspace-ops-bridge.d.ts +0 -15
  33. package/dist/scripts/build-plugin-package.d.ts +0 -12
  34. package/dist/scripts/build-plugin-package.js +0 -220
  35. package/dist/scripts/build-plugin-runtime.d.ts +0 -10
  36. package/dist/scripts/build-plugin-runtime.js +0 -198
  37. package/dist/scripts/packaging-feasibility-poc.d.ts +0 -1
  38. package/dist/scripts/packaging-feasibility-poc.js +0 -127
  39. package/dist/scripts/plugin-smoke-check.d.ts +0 -1
  40. package/dist/scripts/plugin-smoke-check.js +0 -124
  41. package/dist/src/cli/action-bridge.d.ts +0 -11
  42. package/dist/src/cli/index.d.ts +0 -65
  43. package/dist/tests/integration/cli/cli-ops-surface.test.d.ts +0 -1
  44. package/dist/tests/integration/cli/cli-ops-surface.test.js +0 -380
  45. package/dist/tests/integration/cli/heartbeat-surface-workspace.test.d.ts +0 -1
  46. package/dist/tests/integration/cli/heartbeat-surface-workspace.test.js +0 -61
  47. package/dist/tests/integration/cli/host-capability-probe.test.d.ts +0 -1
  48. package/dist/tests/integration/cli/host-capability-probe.test.js +0 -37
  49. package/dist/tests/integration/cli/host-smoke-heartbeat-tool.test.d.ts +0 -1
  50. package/dist/tests/integration/cli/host-smoke-heartbeat-tool.test.js +0 -34
  51. package/dist/tests/integration/cli/plugin-packaging-walkthrough.test.d.ts +0 -1
  52. package/dist/tests/integration/cli/plugin-packaging-walkthrough.test.js +0 -79
  53. package/dist/tests/integration/cli/plugin-runtime-registration.test.d.ts +0 -1
  54. package/dist/tests/integration/cli/plugin-runtime-registration.test.js +0 -285
  55. package/dist/tests/integration/cli/plugin-workspace-ops-bridge.test.d.ts +0 -1
  56. package/dist/tests/integration/cli/plugin-workspace-ops-bridge.test.js +0 -487
  57. package/dist/tests/integration/cli/t1-2-1-explain-read-models.test.d.ts +0 -1
  58. package/dist/tests/integration/cli/t1-2-1-explain-read-models.test.js +0 -58
  59. package/dist/tests/integration/cli/t1-2-1-narrative-command.test.d.ts +0 -1
  60. package/dist/tests/integration/cli/t1-2-1-narrative-command.test.js +0 -194
  61. package/dist/tests/integration/cli/t1-2-2-dream-recent.test.d.ts +0 -1
  62. package/dist/tests/integration/cli/t1-2-2-dream-recent.test.js +0 -100
  63. package/dist/tests/integration/cli/t1-2-3-status-observability-writeback.test.d.ts +0 -1
  64. package/dist/tests/integration/cli/t1-2-3-status-observability-writeback.test.js +0 -71
  65. package/dist/tests/integration/cli/t1-2-4-quiet-report-read-canonical.test.d.ts +0 -1
  66. package/dist/tests/integration/cli/t1-2-4-quiet-report-read-canonical.test.js +0 -206
  67. package/dist/tests/integration/cli/t1-2-5-cycle-recent.test.d.ts +0 -1
  68. package/dist/tests/integration/cli/t1-2-5-cycle-recent.test.js +0 -156
  69. package/dist/tests/integration/cli/t1-2-5-status-delivery-posture-audit-store.test.d.ts +0 -1
  70. package/dist/tests/integration/cli/t1-2-5-status-delivery-posture-audit-store.test.js +0 -95
  71. package/dist/tests/integration/cli/t1-2-6-policy-show-non-shell.test.d.ts +0 -1
  72. package/dist/tests/integration/cli/t1-2-6-policy-show-non-shell.test.js +0 -74
  73. package/dist/tests/integration/cli/t1-2-6-status-aggregate.test.d.ts +0 -1
  74. package/dist/tests/integration/cli/t1-2-6-status-aggregate.test.js +0 -223
  75. package/dist/tests/integration/cli/t1-2-7-audit-command-minimal-closure.test.d.ts +0 -1
  76. package/dist/tests/integration/cli/t1-2-7-audit-command-minimal-closure.test.js +0 -101
  77. package/dist/tests/integration/cli/t1-2-8-capability-probe-ops-surface.test.d.ts +0 -1
  78. package/dist/tests/integration/cli/t1-2-8-capability-probe-ops-surface.test.js +0 -74
  79. package/dist/tests/integration/cli/t1-2-9-decision-denied-not-degraded.test.d.ts +0 -1
  80. package/dist/tests/integration/cli/t1-2-9-decision-denied-not-degraded.test.js +0 -79
  81. package/dist/tests/integration/cli/t1-4-1-runtime-secret-bootstrap.test.d.ts +0 -1
  82. package/dist/tests/integration/cli/t1-4-1-runtime-secret-bootstrap.test.js +0 -139
  83. package/dist/tests/integration/cli/t1-4-2-activation-ux-contract.test.d.ts +0 -1
  84. package/dist/tests/integration/cli/t1-4-2-activation-ux-contract.test.js +0 -143
  85. package/dist/tests/integration/cli/t2-2-2-snapshot-life-evidence.test.d.ts +0 -1
  86. package/dist/tests/integration/cli/t2-2-2-snapshot-life-evidence.test.js +0 -116
  87. package/dist/tests/integration/cli/t3-3-2-near-real-smoke-cli-bridge.test.d.ts +0 -1
  88. package/dist/tests/integration/cli/t3-3-2-near-real-smoke-cli-bridge.test.js +0 -69
  89. package/dist/tests/integration/connectors/connector-base.test.d.ts +0 -1
  90. package/dist/tests/integration/connectors/connector-base.test.js +0 -211
  91. package/dist/tests/integration/connectors/connector-executor-adapter-honest-failure.test.d.ts +0 -1
  92. package/dist/tests/integration/connectors/connector-executor-adapter-honest-failure.test.js +0 -311
  93. package/dist/tests/integration/connectors/credential-optional-regression.test.d.ts +0 -1
  94. package/dist/tests/integration/connectors/credential-optional-regression.test.js +0 -117
  95. package/dist/tests/integration/connectors/declarative-http-runner.test.d.ts +0 -7
  96. package/dist/tests/integration/connectors/declarative-http-runner.test.js +0 -229
  97. package/dist/tests/integration/connectors/evomap-secret-port.test.d.ts +0 -1
  98. package/dist/tests/integration/connectors/evomap-secret-port.test.js +0 -83
  99. package/dist/tests/integration/connectors/life-evidence-chain.test.d.ts +0 -1
  100. package/dist/tests/integration/connectors/life-evidence-chain.test.js +0 -188
  101. package/dist/tests/integration/connectors/moltbook-client.test.d.ts +0 -1
  102. package/dist/tests/integration/connectors/moltbook-client.test.js +0 -274
  103. package/dist/tests/integration/connectors/moltbook-mock-runner.test.d.ts +0 -7
  104. package/dist/tests/integration/connectors/moltbook-mock-runner.test.js +0 -108
  105. package/dist/tests/integration/connectors/near-real-connector-smoke.test.d.ts +0 -1
  106. package/dist/tests/integration/connectors/near-real-connector-smoke.test.js +0 -38
  107. package/dist/tests/integration/connectors/platform-adapters.test.d.ts +0 -1
  108. package/dist/tests/integration/connectors/platform-adapters.test.js +0 -189
  109. package/dist/tests/integration/connectors/policy-layer.test.d.ts +0 -1
  110. package/dist/tests/integration/connectors/policy-layer.test.js +0 -249
  111. package/dist/tests/integration/connectors/scriptable-node-e2e.test.d.ts +0 -1
  112. package/dist/tests/integration/connectors/scriptable-node-e2e.test.js +0 -228
  113. package/dist/tests/integration/connectors/t3-3-1-real-connector-evidence.test.d.ts +0 -1
  114. package/dist/tests/integration/connectors/t3-3-1-real-connector-evidence.test.js +0 -171
  115. package/dist/tests/integration/control-plane/_helpers/decision-cycle-harness.d.ts +0 -40
  116. package/dist/tests/integration/control-plane/_helpers/decision-cycle-harness.js +0 -116
  117. package/dist/tests/integration/control-plane/decision-loop-validation.test.d.ts +0 -1
  118. package/dist/tests/integration/control-plane/decision-loop-validation.test.js +0 -319
  119. package/dist/tests/integration/control-plane/delivery-failed-fallback.test.d.ts +0 -1
  120. package/dist/tests/integration/control-plane/delivery-failed-fallback.test.js +0 -118
  121. package/dist/tests/integration/control-plane/dream-projection-heartbeat.test.d.ts +0 -1
  122. package/dist/tests/integration/control-plane/dream-projection-heartbeat.test.js +0 -109
  123. package/dist/tests/integration/control-plane/effect-dispatcher.test.d.ts +0 -1
  124. package/dist/tests/integration/control-plane/effect-dispatcher.test.js +0 -157
  125. package/dist/tests/integration/control-plane/guidance-request.test.d.ts +0 -1
  126. package/dist/tests/integration/control-plane/guidance-request.test.js +0 -63
  127. package/dist/tests/integration/control-plane/heartbeat-executor.test.d.ts +0 -1
  128. package/dist/tests/integration/control-plane/heartbeat-executor.test.js +0 -363
  129. package/dist/tests/integration/control-plane/heartbeat-loop.test.d.ts +0 -1
  130. package/dist/tests/integration/control-plane/heartbeat-loop.test.js +0 -190
  131. package/dist/tests/integration/control-plane/heartbeat-quiet-orchestration.test.d.ts +0 -1
  132. package/dist/tests/integration/control-plane/heartbeat-quiet-orchestration.test.js +0 -133
  133. package/dist/tests/integration/control-plane/heartbeat-spine-integration.test.d.ts +0 -1
  134. package/dist/tests/integration/control-plane/heartbeat-spine-integration.test.js +0 -342
  135. package/dist/tests/integration/control-plane/heartbeat-spine.test.d.ts +0 -1
  136. package/dist/tests/integration/control-plane/heartbeat-spine.test.js +0 -216
  137. package/dist/tests/integration/control-plane/int-s3-outreach-delivery-quiet-closure.test.d.ts +0 -1
  138. package/dist/tests/integration/control-plane/int-s3-outreach-delivery-quiet-closure.test.js +0 -241
  139. package/dist/tests/integration/control-plane/outreach-resume.test.d.ts +0 -1
  140. package/dist/tests/integration/control-plane/outreach-resume.test.js +0 -158
  141. package/dist/tests/integration/control-plane/outreach-style.test.d.ts +0 -1
  142. package/dist/tests/integration/control-plane/outreach-style.test.js +0 -46
  143. package/dist/tests/integration/control-plane/quiet-reflection.test.d.ts +0 -1
  144. package/dist/tests/integration/control-plane/quiet-reflection.test.js +0 -73
  145. package/dist/tests/integration/control-plane/rhythm-intent-guard.test.d.ts +0 -1
  146. package/dist/tests/integration/control-plane/rhythm-intent-guard.test.js +0 -99
  147. package/dist/tests/integration/control-plane/run-heartbeat-cycle.test.d.ts +0 -1
  148. package/dist/tests/integration/control-plane/run-heartbeat-cycle.test.js +0 -80
  149. package/dist/tests/integration/control-plane/t2-3-1-outreach-v6.test.d.ts +0 -1
  150. package/dist/tests/integration/control-plane/t2-3-1-outreach-v6.test.js +0 -208
  151. package/dist/tests/integration/control-plane/t2-4-1-heartbeat-platform-intent.test.d.ts +0 -1
  152. package/dist/tests/integration/control-plane/t2-4-1-heartbeat-platform-intent.test.js +0 -156
  153. package/dist/tests/integration/control-plane/t2-4-2-source-backed-outreach-loop.test.d.ts +0 -1
  154. package/dist/tests/integration/control-plane/t2-4-2-source-backed-outreach-loop.test.js +0 -188
  155. package/dist/tests/integration/control-plane/v7c-evidence-body-feedback.test.d.ts +0 -11
  156. package/dist/tests/integration/control-plane/v7c-evidence-body-feedback.test.js +0 -213
  157. package/dist/tests/integration/control-plane/v7c-heartbeat-unlock-e2e.test.d.ts +0 -9
  158. package/dist/tests/integration/control-plane/v7c-heartbeat-unlock-e2e.test.js +0 -134
  159. package/dist/tests/integration/dream/quiet-dream-trigger.test.d.ts +0 -1
  160. package/dist/tests/integration/dream/quiet-dream-trigger.test.js +0 -86
  161. package/dist/tests/integration/dream/t7-1-1-dream-pipeline.test.d.ts +0 -1
  162. package/dist/tests/integration/dream/t7-1-1-dream-pipeline.test.js +0 -378
  163. package/dist/tests/integration/dream/t7-1-2-dream-scheduler.test.d.ts +0 -1
  164. package/dist/tests/integration/dream/t7-1-2-dream-scheduler.test.js +0 -124
  165. package/dist/tests/integration/dream/v7c-rhythm-loop.test.d.ts +0 -10
  166. package/dist/tests/integration/dream/v7c-rhythm-loop.test.js +0 -185
  167. package/dist/tests/integration/guidance/assembler-and-fallback.test.d.ts +0 -1
  168. package/dist/tests/integration/guidance/assembler-and-fallback.test.js +0 -86
  169. package/dist/tests/integration/guidance/outreach-draft-contract.test.d.ts +0 -1
  170. package/dist/tests/integration/guidance/outreach-draft-contract.test.js +0 -106
  171. package/dist/tests/integration/guidance/persona-selection.test.d.ts +0 -1
  172. package/dist/tests/integration/guidance/persona-selection.test.js +0 -70
  173. package/dist/tests/integration/guidance/template-review.test.d.ts +0 -1
  174. package/dist/tests/integration/guidance/template-review.test.js +0 -26
  175. package/dist/tests/integration/guidance/user-reply-continuity.test.d.ts +0 -1
  176. package/dist/tests/integration/guidance/user-reply-continuity.test.js +0 -96
  177. package/dist/tests/integration/guidance/v7c-guidance-chain.test.d.ts +0 -1
  178. package/dist/tests/integration/guidance/v7c-guidance-chain.test.js +0 -190
  179. package/dist/tests/integration/guidance/v7c-guidance-semantics.test.d.ts +0 -1
  180. package/dist/tests/integration/guidance/v7c-guidance-semantics.test.js +0 -146
  181. package/dist/tests/integration/observability/digest-delivery.test.d.ts +0 -14
  182. package/dist/tests/integration/observability/digest-delivery.test.js +0 -160
  183. package/dist/tests/integration/observability/evidence-query-engine.test.d.ts +0 -1
  184. package/dist/tests/integration/observability/evidence-query-engine.test.js +0 -219
  185. package/dist/tests/integration/observability/explain-query-export.test.d.ts +0 -1
  186. package/dist/tests/integration/observability/explain-query-export.test.js +0 -92
  187. package/dist/tests/integration/observability/guidance-audit.test.d.ts +0 -1
  188. package/dist/tests/integration/observability/guidance-audit.test.js +0 -55
  189. package/dist/tests/integration/observability/heartbeat-decision-record.test.d.ts +0 -1
  190. package/dist/tests/integration/observability/heartbeat-decision-record.test.js +0 -223
  191. package/dist/tests/integration/observability/heartbeat-narrative-trace.test.d.ts +0 -1
  192. package/dist/tests/integration/observability/heartbeat-narrative-trace.test.js +0 -230
  193. package/dist/tests/integration/observability/lived-experience-audit-chain.test.d.ts +0 -1
  194. package/dist/tests/integration/observability/lived-experience-audit-chain.test.js +0 -43
  195. package/dist/tests/integration/observability/observability-gates.test.d.ts +0 -1
  196. package/dist/tests/integration/observability/observability-gates.test.js +0 -224
  197. package/dist/tests/integration/observability/observability-retention-cleanup.test.d.ts +0 -1
  198. package/dist/tests/integration/observability/observability-retention-cleanup.test.js +0 -94
  199. package/dist/tests/integration/observability/observability-services.test.d.ts +0 -1
  200. package/dist/tests/integration/observability/observability-services.test.js +0 -219
  201. package/dist/tests/integration/observability/projections.test.d.ts +0 -1
  202. package/dist/tests/integration/observability/projections.test.js +0 -36
  203. package/dist/tests/integration/observability/t5-1-1-dream-trace-audit.test.d.ts +0 -1
  204. package/dist/tests/integration/observability/t5-1-1-dream-trace-audit.test.js +0 -115
  205. package/dist/tests/integration/plugin/plugin-registration.test.d.ts +0 -16
  206. package/dist/tests/integration/plugin/plugin-registration.test.js +0 -151
  207. package/dist/tests/integration/runtime-ops/commands.test.d.ts +0 -16
  208. package/dist/tests/integration/runtime-ops/commands.test.js +0 -662
  209. package/dist/tests/integration/s3-exit/int-s3-body-heartbeat.test.d.ts +0 -15
  210. package/dist/tests/integration/s3-exit/int-s3-body-heartbeat.test.js +0 -462
  211. package/dist/tests/integration/s5-exit/int-s5-observability.test.d.ts +0 -17
  212. package/dist/tests/integration/s5-exit/int-s5-observability.test.js +0 -402
  213. package/dist/tests/integration/state/t4-2-1-owner-reply-relationship-loop.test.d.ts +0 -1
  214. package/dist/tests/integration/state/t4-2-1-owner-reply-relationship-loop.test.js +0 -132
  215. package/dist/tests/integration/state/v7c-identity-goal-hygiene.test.d.ts +0 -9
  216. package/dist/tests/integration/state/v7c-identity-goal-hygiene.test.js +0 -240
  217. package/dist/tests/integration/storage/packaged-runtime-smoke.test.d.ts +0 -1
  218. package/dist/tests/integration/storage/packaged-runtime-smoke.test.js +0 -17
  219. package/dist/tests/integration/storage/persona-candidate-loader.test.d.ts +0 -1
  220. package/dist/tests/integration/storage/persona-candidate-loader.test.js +0 -23
  221. package/dist/tests/integration/storage/quiet-artifact-writer.test.d.ts +0 -1
  222. package/dist/tests/integration/storage/quiet-artifact-writer.test.js +0 -66
  223. package/dist/tests/integration/storage/repair-and-backup.test.d.ts +0 -1
  224. package/dist/tests/integration/storage/repair-and-backup.test.js +0 -125
  225. package/dist/tests/integration/storage/schema-migration.test.d.ts +0 -11
  226. package/dist/tests/integration/storage/schema-migration.test.js +0 -183
  227. package/dist/tests/integration/storage/storage-mode-smoke.test.d.ts +0 -1
  228. package/dist/tests/integration/storage/storage-mode-smoke.test.js +0 -18
  229. package/dist/tests/integration/storage/t4-1-5-memory-store-lifecycle.test.d.ts +0 -1
  230. package/dist/tests/integration/storage/t4-1-5-memory-store-lifecycle.test.js +0 -118
  231. package/dist/tests/unit/body/affordance-assembler.test.d.ts +0 -14
  232. package/dist/tests/unit/body/affordance-assembler.test.js +0 -259
  233. package/dist/tests/unit/body/affordance-context-scope.test.d.ts +0 -12
  234. package/dist/tests/unit/body/affordance-context-scope.test.js +0 -73
  235. package/dist/tests/unit/body/behavior-promotion-loop.test.d.ts +0 -15
  236. package/dist/tests/unit/body/behavior-promotion-loop.test.js +0 -130
  237. package/dist/tests/unit/body/circuit-breaker-manager.test.d.ts +0 -13
  238. package/dist/tests/unit/body/circuit-breaker-manager.test.js +0 -160
  239. package/dist/tests/unit/body/experience-writer.test.d.ts +0 -11
  240. package/dist/tests/unit/body/experience-writer.test.js +0 -77
  241. package/dist/tests/unit/body/pain-signal-query.test.d.ts +0 -11
  242. package/dist/tests/unit/body/pain-signal-query.test.js +0 -104
  243. package/dist/tests/unit/cli/connector-init-manifest.test.d.ts +0 -9
  244. package/dist/tests/unit/cli/connector-init-manifest.test.js +0 -68
  245. package/dist/tests/unit/cli/delivery-target-probe.test.d.ts +0 -1
  246. package/dist/tests/unit/cli/delivery-target-probe.test.js +0 -108
  247. package/dist/tests/unit/cli/host-capability.test.d.ts +0 -1
  248. package/dist/tests/unit/cli/host-capability.test.js +0 -50
  249. package/dist/tests/unit/cli/operator-fallback-view.test.d.ts +0 -1
  250. package/dist/tests/unit/cli/operator-fallback-view.test.js +0 -60
  251. package/dist/tests/unit/cli/runtime-artifact-boundary.test.d.ts +0 -1
  252. package/dist/tests/unit/cli/runtime-artifact-boundary.test.js +0 -57
  253. package/dist/tests/unit/cli/t1-2-3-connector-status.test.d.ts +0 -1
  254. package/dist/tests/unit/cli/t1-2-3-connector-status.test.js +0 -214
  255. package/dist/tests/unit/cli/t1-2-4-goal-command.test.d.ts +0 -1
  256. package/dist/tests/unit/cli/t1-2-4-goal-command.test.js +0 -207
  257. package/dist/tests/unit/cli/t1-3-1-connector-init.test.d.ts +0 -1
  258. package/dist/tests/unit/cli/t1-3-1-connector-init.test.js +0 -212
  259. package/dist/tests/unit/connectors/connector-manifest-and-evidence-map.test.d.ts +0 -1
  260. package/dist/tests/unit/connectors/connector-manifest-and-evidence-map.test.js +0 -71
  261. package/dist/tests/unit/connectors/effect-commit-ledger-sqlite.test.d.ts +0 -10
  262. package/dist/tests/unit/connectors/effect-commit-ledger-sqlite.test.js +0 -101
  263. package/dist/tests/unit/connectors/evomap-runner.test.d.ts +0 -1
  264. package/dist/tests/unit/connectors/evomap-runner.test.js +0 -136
  265. package/dist/tests/unit/connectors/execution-policy.test.d.ts +0 -1
  266. package/dist/tests/unit/connectors/execution-policy.test.js +0 -71
  267. package/dist/tests/unit/connectors/instreet-registration.test.d.ts +0 -1
  268. package/dist/tests/unit/connectors/instreet-registration.test.js +0 -102
  269. package/dist/tests/unit/connectors/manifest-v7-schema.test.d.ts +0 -9
  270. package/dist/tests/unit/connectors/manifest-v7-schema.test.js +0 -165
  271. package/dist/tests/unit/connectors/scriptable-node-runner.test.d.ts +0 -1
  272. package/dist/tests/unit/connectors/scriptable-node-runner.test.js +0 -246
  273. package/dist/tests/unit/connectors/structured-unavailable-reason.test.d.ts +0 -11
  274. package/dist/tests/unit/connectors/structured-unavailable-reason.test.js +0 -76
  275. package/dist/tests/unit/connectors/t3-1-1-dynamic-registry.test.d.ts +0 -1
  276. package/dist/tests/unit/connectors/t3-1-1-dynamic-registry.test.js +0 -178
  277. package/dist/tests/unit/connectors/t3-1-2-capability-registry.test.d.ts +0 -1
  278. package/dist/tests/unit/connectors/t3-1-2-capability-registry.test.js +0 -105
  279. package/dist/tests/unit/connectors/t3-2-1-v5-parity.test.d.ts +0 -1
  280. package/dist/tests/unit/connectors/t3-2-1-v5-parity.test.js +0 -103
  281. package/dist/tests/unit/connectors/t3-3-1-evidence-mapper.test.d.ts +0 -1
  282. package/dist/tests/unit/connectors/t3-3-1-evidence-mapper.test.js +0 -198
  283. package/dist/tests/unit/connectors/t3-3-1-evidence-redaction.test.d.ts +0 -1
  284. package/dist/tests/unit/connectors/t3-3-1-evidence-redaction.test.js +0 -95
  285. package/dist/tests/unit/connectors/wet-probe-runner.test.d.ts +0 -11
  286. package/dist/tests/unit/connectors/wet-probe-runner.test.js +0 -84
  287. package/dist/tests/unit/control-plane/decision-trace-emitter.test.d.ts +0 -1
  288. package/dist/tests/unit/control-plane/decision-trace-emitter.test.js +0 -51
  289. package/dist/tests/unit/control-plane/downstream-intent-orchestrator.test.d.ts +0 -1
  290. package/dist/tests/unit/control-plane/downstream-intent-orchestrator.test.js +0 -57
  291. package/dist/tests/unit/control-plane/embodied-context-assembler.test.d.ts +0 -13
  292. package/dist/tests/unit/control-plane/embodied-context-assembler.test.js +0 -182
  293. package/dist/tests/unit/control-plane/goal-lifecycle-policy.test.d.ts +0 -1
  294. package/dist/tests/unit/control-plane/goal-lifecycle-policy.test.js +0 -75
  295. package/dist/tests/unit/control-plane/hard-guard-evaluator.test.d.ts +0 -1
  296. package/dist/tests/unit/control-plane/hard-guard-evaluator.test.js +0 -113
  297. package/dist/tests/unit/control-plane/idle-curiosity-policy.test.d.ts +0 -1
  298. package/dist/tests/unit/control-plane/idle-curiosity-policy.test.js +0 -69
  299. package/dist/tests/unit/control-plane/intent-planner-source-ref-fallback.test.d.ts +0 -7
  300. package/dist/tests/unit/control-plane/intent-planner-source-ref-fallback.test.js +0 -124
  301. package/dist/tests/unit/control-plane/rhythm-policy-snapshot-window.test.d.ts +0 -1
  302. package/dist/tests/unit/control-plane/rhythm-policy-snapshot-window.test.js +0 -64
  303. package/dist/tests/unit/control-plane/run-heartbeat-cycle-v7.test.d.ts +0 -1
  304. package/dist/tests/unit/control-plane/run-heartbeat-cycle-v7.test.js +0 -165
  305. package/dist/tests/unit/control-plane/t2-1-4-goal-priority.test.d.ts +0 -1
  306. package/dist/tests/unit/control-plane/t2-1-4-goal-priority.test.js +0 -185
  307. package/dist/tests/unit/control-plane/t2-1-5-narrative-update.test.d.ts +0 -1
  308. package/dist/tests/unit/control-plane/t2-1-5-narrative-update.test.js +0 -313
  309. package/dist/tests/unit/control-plane/t2-4-1-credential-route.test.d.ts +0 -1
  310. package/dist/tests/unit/control-plane/t2-4-1-credential-route.test.js +0 -75
  311. package/dist/tests/unit/control-plane/t2-4-1-platform-intent.test.d.ts +0 -1
  312. package/dist/tests/unit/control-plane/t2-4-1-platform-intent.test.js +0 -168
  313. package/dist/tests/unit/core/outreach-judgment.test.d.ts +0 -1
  314. package/dist/tests/unit/core/outreach-judgment.test.js +0 -109
  315. package/dist/tests/unit/core/resolve-allowed-intent.test.d.ts +0 -1
  316. package/dist/tests/unit/core/resolve-allowed-intent.test.js +0 -69
  317. package/dist/tests/unit/core/t2-2-3-connector-action-honest-result.test.d.ts +0 -1
  318. package/dist/tests/unit/core/t2-2-3-connector-action-honest-result.test.js +0 -130
  319. package/dist/tests/unit/core/t2-2-3-connector-dispatch-wired.test.d.ts +0 -1
  320. package/dist/tests/unit/core/t2-2-3-connector-dispatch-wired.test.js +0 -99
  321. package/dist/tests/unit/dream/dream-input-loader.test.d.ts +0 -15
  322. package/dist/tests/unit/dream/dream-input-loader.test.js +0 -424
  323. package/dist/tests/unit/dream/dream-scheduler.test.d.ts +0 -1
  324. package/dist/tests/unit/dream/dream-scheduler.test.js +0 -57
  325. package/dist/tests/unit/dream/t-dqs-c3-redacted-evidence.test.d.ts +0 -11
  326. package/dist/tests/unit/dream/t-dqs-c3-redacted-evidence.test.js +0 -298
  327. package/dist/tests/unit/dream/t7-1-3-insight-extraction.test.d.ts +0 -1
  328. package/dist/tests/unit/dream/t7-1-3-insight-extraction.test.js +0 -79
  329. package/dist/tests/unit/dream/t7-1-4-narrative-update.test.d.ts +0 -1
  330. package/dist/tests/unit/dream/t7-1-4-narrative-update.test.js +0 -93
  331. package/dist/tests/unit/dream/t7-1-5-relationship-update.test.d.ts +0 -1
  332. package/dist/tests/unit/dream/t7-1-5-relationship-update.test.js +0 -116
  333. package/dist/tests/unit/feedback/t4-2-1-owner-reply-inference.test.d.ts +0 -1
  334. package/dist/tests/unit/feedback/t4-2-1-owner-reply-inference.test.js +0 -58
  335. package/dist/tests/unit/guidance/capability-class.test.d.ts +0 -1
  336. package/dist/tests/unit/guidance/capability-class.test.js +0 -96
  337. package/dist/tests/unit/guidance/channel-feedback-ingestion.test.d.ts +0 -1
  338. package/dist/tests/unit/guidance/channel-feedback-ingestion.test.js +0 -163
  339. package/dist/tests/unit/guidance/evidence-guidance.test.d.ts +0 -1
  340. package/dist/tests/unit/guidance/evidence-guidance.test.js +0 -40
  341. package/dist/tests/unit/guidance/guidance-draft-service.test.d.ts +0 -1
  342. package/dist/tests/unit/guidance/guidance-draft-service.test.js +0 -140
  343. package/dist/tests/unit/guidance/impulse-assembler.test.d.ts +0 -1
  344. package/dist/tests/unit/guidance/impulse-assembler.test.js +0 -169
  345. package/dist/tests/unit/guidance/outreach-draft-schema.test.d.ts +0 -1
  346. package/dist/tests/unit/guidance/outreach-draft-schema.test.js +0 -56
  347. package/dist/tests/unit/guidance/outreach-strategy-selector.test.d.ts +0 -1
  348. package/dist/tests/unit/guidance/outreach-strategy-selector.test.js +0 -208
  349. package/dist/tests/unit/guidance/outreach-style-fixtures.test.d.ts +0 -1
  350. package/dist/tests/unit/guidance/outreach-style-fixtures.test.js +0 -81
  351. package/dist/tests/unit/guidance/t6-1-1-narrative-outreach.test.d.ts +0 -1
  352. package/dist/tests/unit/guidance/t6-1-1-narrative-outreach.test.js +0 -256
  353. package/dist/tests/unit/observability/audit-envelope.test.d.ts +0 -1
  354. package/dist/tests/unit/observability/audit-envelope.test.js +0 -169
  355. package/dist/tests/unit/observability/connector-inventory-ledger.test.d.ts +0 -1
  356. package/dist/tests/unit/observability/connector-inventory-ledger.test.js +0 -128
  357. package/dist/tests/unit/observability/family-registry.test.d.ts +0 -12
  358. package/dist/tests/unit/observability/family-registry.test.js +0 -105
  359. package/dist/tests/unit/observability/governance-plane-recorder.test.d.ts +0 -1
  360. package/dist/tests/unit/observability/governance-plane-recorder.test.js +0 -72
  361. package/dist/tests/unit/observability/heartbeat-digest-assembler.test.d.ts +0 -1
  362. package/dist/tests/unit/observability/heartbeat-digest-assembler.test.js +0 -227
  363. package/dist/tests/unit/observability/lived-experience-audit.test.d.ts +0 -1
  364. package/dist/tests/unit/observability/lived-experience-audit.test.js +0 -105
  365. package/dist/tests/unit/observability/narrative-timeline-query.test.d.ts +0 -18
  366. package/dist/tests/unit/observability/narrative-timeline-query.test.js +0 -239
  367. package/dist/tests/unit/observability/restore-audit-service.test.d.ts +0 -16
  368. package/dist/tests/unit/observability/restore-audit-service.test.js +0 -186
  369. package/dist/tests/unit/observability/runtime-decision-recorder.test.d.ts +0 -1
  370. package/dist/tests/unit/observability/runtime-decision-recorder.test.js +0 -66
  371. package/dist/tests/unit/observability/runtime-secret-anchor-view.test.d.ts +0 -18
  372. package/dist/tests/unit/observability/runtime-secret-anchor-view.test.js +0 -209
  373. package/dist/tests/unit/observability/self-health-snapshot.test.d.ts +0 -1
  374. package/dist/tests/unit/observability/self-health-snapshot.test.js +0 -223
  375. package/dist/tests/unit/observability/verify-audit-hash-chain.test.d.ts +0 -1
  376. package/dist/tests/unit/observability/verify-audit-hash-chain.test.js +0 -93
  377. package/dist/tests/unit/ops/manual-run-dispatcher.test.d.ts +0 -13
  378. package/dist/tests/unit/ops/manual-run-dispatcher.test.js +0 -219
  379. package/dist/tests/unit/quiet/claim-synthesizer.test.d.ts +0 -17
  380. package/dist/tests/unit/quiet/claim-synthesizer.test.js +0 -289
  381. package/dist/tests/unit/quiet/daily-diary-writer.test.d.ts +0 -12
  382. package/dist/tests/unit/quiet/daily-diary-writer.test.js +0 -108
  383. package/dist/tests/unit/shared/v7-entities.test.d.ts +0 -13
  384. package/dist/tests/unit/shared/v7-entities.test.js +0 -306
  385. package/dist/tests/unit/storage/delivery-attempt.test.d.ts +0 -1
  386. package/dist/tests/unit/storage/delivery-attempt.test.js +0 -72
  387. package/dist/tests/unit/storage/diary-dream-store.test.d.ts +0 -12
  388. package/dist/tests/unit/storage/diary-dream-store.test.js +0 -118
  389. package/dist/tests/unit/storage/embodied-context-state-port.test.d.ts +0 -4
  390. package/dist/tests/unit/storage/embodied-context-state-port.test.js +0 -77
  391. package/dist/tests/unit/storage/goal-lifecycle-store.test.d.ts +0 -4
  392. package/dist/tests/unit/storage/goal-lifecycle-store.test.js +0 -143
  393. package/dist/tests/unit/storage/history-digest-store.test.d.ts +0 -10
  394. package/dist/tests/unit/storage/history-digest-store.test.js +0 -126
  395. package/dist/tests/unit/storage/identity-profile-store.test.d.ts +0 -4
  396. package/dist/tests/unit/storage/identity-profile-store.test.js +0 -48
  397. package/dist/tests/unit/storage/life-evidence-snapshot.test.d.ts +0 -1
  398. package/dist/tests/unit/storage/life-evidence-snapshot.test.js +0 -60
  399. package/dist/tests/unit/storage/life-evidence.test.d.ts +0 -1
  400. package/dist/tests/unit/storage/life-evidence.test.js +0 -54
  401. package/dist/tests/unit/storage/migration-runner.test.d.ts +0 -12
  402. package/dist/tests/unit/storage/migration-runner.test.js +0 -197
  403. package/dist/tests/unit/storage/repair-gate.test.d.ts +0 -1
  404. package/dist/tests/unit/storage/repair-gate.test.js +0 -41
  405. package/dist/tests/unit/storage/restore-snapshot-store.test.d.ts +0 -11
  406. package/dist/tests/unit/storage/restore-snapshot-store.test.js +0 -161
  407. package/dist/tests/unit/storage/rhythm-policy-snapshot.test.d.ts +0 -1
  408. package/dist/tests/unit/storage/rhythm-policy-snapshot.test.js +0 -31
  409. package/dist/tests/unit/storage/runtime-secret-anchor-store.test.d.ts +0 -10
  410. package/dist/tests/unit/storage/runtime-secret-anchor-store.test.js +0 -81
  411. package/dist/tests/unit/storage/t1-4-1-credential-health-mapper.test.d.ts +0 -1
  412. package/dist/tests/unit/storage/t1-4-1-credential-health-mapper.test.js +0 -83
  413. package/dist/tests/unit/storage/t4-1-1-session-chronicle.test.d.ts +0 -1
  414. package/dist/tests/unit/storage/t4-1-1-session-chronicle.test.js +0 -112
  415. package/dist/tests/unit/storage/t4-1-2-narrative-state.test.d.ts +0 -1
  416. package/dist/tests/unit/storage/t4-1-2-narrative-state.test.js +0 -80
  417. package/dist/tests/unit/storage/t4-1-3-relationship-memory.test.d.ts +0 -1
  418. package/dist/tests/unit/storage/t4-1-3-relationship-memory.test.js +0 -65
  419. package/dist/tests/unit/storage/t4-1-4-agent-goal.test.d.ts +0 -1
  420. package/dist/tests/unit/storage/t4-1-4-agent-goal.test.js +0 -166
  421. package/dist/tests/unit/storage/tool-experience-store.test.d.ts +0 -4
  422. package/dist/tests/unit/storage/tool-experience-store.test.js +0 -92
  423. package/dist/tests/unit/storage/user-interest-snapshot.test.d.ts +0 -1
  424. package/dist/tests/unit/storage/user-interest-snapshot.test.js +0 -48
  425. package/dist/tests/unit/storage/write-queue.test.d.ts +0 -12
  426. package/dist/tests/unit/storage/write-queue.test.js +0 -177
  427. package/dist/tests/unit/storage/write-validation-gate.test.d.ts +0 -9
  428. package/dist/tests/unit/storage/write-validation-gate.test.js +0 -153
  429. /package/{dist/plugin/index.js → index.js} +0 -0
  430. /package/{dist/src → runtime}/cli/action-bridge.js +0 -0
  431. /package/{dist/src → runtime}/cli/commands/connector-behavior.d.ts +0 -0
  432. /package/{dist/src → runtime}/cli/commands/connector-behavior.js +0 -0
  433. /package/{dist/src → runtime}/cli/commands/connector-init.d.ts +0 -0
  434. /package/{dist/src → runtime}/cli/commands/connector-init.js +0 -0
  435. /package/{dist/src → runtime}/cli/commands/connector-status.d.ts +0 -0
  436. /package/{dist/src → runtime}/cli/commands/connector-status.js +0 -0
  437. /package/{dist/src → runtime}/cli/commands/credential.d.ts +0 -0
  438. /package/{dist/src → runtime}/cli/commands/credential.js +0 -0
  439. /package/{dist/src → runtime}/cli/commands/goal.d.ts +0 -0
  440. /package/{dist/src → runtime}/cli/commands/goal.js +0 -0
  441. /package/{dist/src → runtime}/cli/commands/index.d.ts +0 -0
  442. /package/{dist/src → runtime}/cli/commands/policy.d.ts +0 -0
  443. /package/{dist/src → runtime}/cli/commands/policy.js +0 -0
  444. /package/{dist/src → runtime}/cli/explain/explain-surface-subject.d.ts +0 -0
  445. /package/{dist/src → runtime}/cli/explain/explain-surface-subject.js +0 -0
  446. /package/{dist/src → runtime}/cli/explain/format-explanation.d.ts +0 -0
  447. /package/{dist/src → runtime}/cli/explain/format-explanation.js +0 -0
  448. /package/{dist/src → runtime}/cli/explain/resolve-subject.d.ts +0 -0
  449. /package/{dist/src → runtime}/cli/explain/resolve-subject.js +0 -0
  450. /package/{dist/src → runtime}/cli/host-capability/classify-delivery.d.ts +0 -0
  451. /package/{dist/src → runtime}/cli/host-capability/classify-delivery.js +0 -0
  452. /package/{dist/src → runtime}/cli/host-capability/probe-host-capability.d.ts +0 -0
  453. /package/{dist/src → runtime}/cli/host-capability/probe-host-capability.js +0 -0
  454. /package/{dist/src → runtime}/cli/host-capability/record-host-capability.d.ts +0 -0
  455. /package/{dist/src → runtime}/cli/host-capability/record-host-capability.js +0 -0
  456. /package/{dist/src → runtime}/cli/host-capability/types.d.ts +0 -0
  457. /package/{dist/src → runtime}/cli/host-capability/types.js +0 -0
  458. /package/{dist/src → runtime}/cli/host-smoke/run-host-smoke.d.ts +0 -0
  459. /package/{dist/src → runtime}/cli/host-smoke/run-host-smoke.js +0 -0
  460. /package/{dist/src → runtime}/cli/host-smoke/types.d.ts +0 -0
  461. /package/{dist/src → runtime}/cli/host-smoke/types.js +0 -0
  462. /package/{dist/src → runtime}/cli/index.js +0 -0
  463. /package/{dist/src → runtime}/cli/ops/manual-run-dispatcher.d.ts +0 -0
  464. /package/{dist/src → runtime}/cli/ops/manual-run-dispatcher.js +0 -0
  465. /package/{dist/src → runtime}/cli/ops/ops-router.d.ts +0 -0
  466. /package/{dist/src → runtime}/cli/ops/show-operator-fallback.d.ts +0 -0
  467. /package/{dist/src → runtime}/cli/ops/show-operator-fallback.js +0 -0
  468. /package/{dist/src → runtime}/cli/read-models/index.d.ts +0 -0
  469. /package/{dist/src → runtime}/cli/read-models/index.js +0 -0
  470. /package/{dist/src → runtime}/cli/read-models/operator-explain-map.d.ts +0 -0
  471. /package/{dist/src → runtime}/cli/read-models/operator-explain-map.js +0 -0
  472. /package/{dist/src → runtime}/cli/read-models/types.d.ts +0 -0
  473. /package/{dist/src → runtime}/cli/read-models/types.js +0 -0
  474. /package/{dist/src → runtime}/cli/runtime/runtime-artifact-boundary.d.ts +0 -0
  475. /package/{dist/src → runtime}/cli/runtime/runtime-artifact-boundary.js +0 -0
  476. /package/{dist/src → runtime}/connectors/agent-network/agent-world/adapter.d.ts +0 -0
  477. /package/{dist/src → runtime}/connectors/agent-network/agent-world/adapter.js +0 -0
  478. /package/{dist/src → runtime}/connectors/agent-network/agent-world/index.d.ts +0 -0
  479. /package/{dist/src → runtime}/connectors/agent-network/agent-world/index.js +0 -0
  480. /package/{dist/src → runtime}/connectors/agent-network/agent-world/manifest.d.ts +0 -0
  481. /package/{dist/src → runtime}/connectors/agent-network/agent-world/manifest.js +0 -0
  482. /package/{dist/src → runtime}/connectors/agent-network/evomap/adapter.d.ts +0 -0
  483. /package/{dist/src → runtime}/connectors/agent-network/evomap/adapter.js +0 -0
  484. /package/{dist/src → runtime}/connectors/agent-network/evomap/index.d.ts +0 -0
  485. /package/{dist/src → runtime}/connectors/agent-network/evomap/index.js +0 -0
  486. /package/{dist/src → runtime}/connectors/agent-network/evomap/manifest.d.ts +0 -0
  487. /package/{dist/src → runtime}/connectors/agent-network/evomap/manifest.js +0 -0
  488. /package/{dist/src → runtime}/connectors/base/channel-health.d.ts +0 -0
  489. /package/{dist/src → runtime}/connectors/base/channel-health.js +0 -0
  490. /package/{dist/src → runtime}/connectors/base/contract.js +0 -0
  491. /package/{dist/src → runtime}/connectors/base/effect-commit-ledger-sqlite.d.ts +0 -0
  492. /package/{dist/src → runtime}/connectors/base/effect-commit-ledger-sqlite.js +0 -0
  493. /package/{dist/src → runtime}/connectors/base/execution-policy.d.ts +0 -0
  494. /package/{dist/src → runtime}/connectors/base/execution-policy.js +0 -0
  495. /package/{dist/src → runtime}/connectors/base/index.d.ts +0 -0
  496. /package/{dist/src → runtime}/connectors/base/index.js +0 -0
  497. /package/{dist/src → runtime}/connectors/base/manifest-v7.d.ts +0 -0
  498. /package/{dist/src → runtime}/connectors/base/manifest-v7.js +0 -0
  499. /package/{dist/src → runtime}/connectors/base/manifest.d.ts +0 -0
  500. /package/{dist/src → runtime}/connectors/base/manifest.js +0 -0
  501. /package/{dist/src → runtime}/connectors/base/map-life-evidence.d.ts +0 -0
  502. /package/{dist/src → runtime}/connectors/base/policy-layer.d.ts +0 -0
  503. /package/{dist/src → runtime}/connectors/base/route-planner.d.ts +0 -0
  504. /package/{dist/src → runtime}/connectors/base/route-planner.js +0 -0
  505. /package/{dist/src → runtime}/connectors/base/structured-unavailable-reason.d.ts +0 -0
  506. /package/{dist/src → runtime}/connectors/base/structured-unavailable-reason.js +0 -0
  507. /package/{dist/src → runtime}/connectors/base/wet-probe-runner.d.ts +0 -0
  508. /package/{dist/src → runtime}/connectors/base/wet-probe-runner.js +0 -0
  509. /package/{dist/src → runtime}/connectors/index.d.ts +0 -0
  510. /package/{dist/src → runtime}/connectors/index.js +0 -0
  511. /package/{dist/src → runtime}/connectors/manifest/manifest-parser.d.ts +0 -0
  512. /package/{dist/src → runtime}/connectors/manifest/manifest-parser.js +0 -0
  513. /package/{dist/src → runtime}/connectors/near-real/near-real-connector-smoke.d.ts +0 -0
  514. /package/{dist/src → runtime}/connectors/near-real/near-real-connector-smoke.js +0 -0
  515. /package/{dist/src → runtime}/connectors/registry/dynamic-connector-registry.d.ts +0 -0
  516. /package/{dist/src → runtime}/connectors/registry/dynamic-connector-registry.js +0 -0
  517. /package/{dist/src → runtime}/connectors/registry/index.d.ts +0 -0
  518. /package/{dist/src → runtime}/connectors/registry/index.js +0 -0
  519. /package/{dist/src → runtime}/connectors/registry/manifest-scanner.d.ts +0 -0
  520. /package/{dist/src → runtime}/connectors/registry/manifest-scanner.js +0 -0
  521. /package/{dist/src → runtime}/connectors/registry/trust-policy.d.ts +0 -0
  522. /package/{dist/src → runtime}/connectors/registry/trust-policy.js +0 -0
  523. /package/{dist/src → runtime}/connectors/services/credential-route-context.d.ts +0 -0
  524. /package/{dist/src → runtime}/connectors/services/credential-route-context.js +0 -0
  525. /package/{dist/src → runtime}/connectors/social-community/instreet/adapter.d.ts +0 -0
  526. /package/{dist/src → runtime}/connectors/social-community/instreet/adapter.js +0 -0
  527. /package/{dist/src → runtime}/connectors/social-community/instreet/index.d.ts +0 -0
  528. /package/{dist/src → runtime}/connectors/social-community/instreet/index.js +0 -0
  529. /package/{dist/src → runtime}/connectors/social-community/instreet/manifest.d.ts +0 -0
  530. /package/{dist/src → runtime}/connectors/social-community/instreet/manifest.js +0 -0
  531. /package/{dist/src → runtime}/connectors/social-community/moltbook/adapter.d.ts +0 -0
  532. /package/{dist/src → runtime}/connectors/social-community/moltbook/adapter.js +0 -0
  533. /package/{dist/src → runtime}/connectors/social-community/moltbook/api-client.d.ts +0 -0
  534. /package/{dist/src → runtime}/connectors/social-community/moltbook/api-client.js +0 -0
  535. /package/{dist/src → runtime}/connectors/social-community/moltbook/index.d.ts +0 -0
  536. /package/{dist/src → runtime}/connectors/social-community/moltbook/index.js +0 -0
  537. /package/{dist/src → runtime}/connectors/social-community/moltbook/manifest.d.ts +0 -0
  538. /package/{dist/src → runtime}/connectors/social-community/moltbook/manifest.js +0 -0
  539. /package/{dist/src → runtime}/core/second-nature/body/behavior-promotion/behavior-promotion-loop.d.ts +0 -0
  540. /package/{dist/src → runtime}/core/second-nature/body/behavior-promotion/behavior-promotion-loop.js +0 -0
  541. /package/{dist/src → runtime}/core/second-nature/body/circuit-breaker/circuit-breaker-manager.d.ts +0 -0
  542. /package/{dist/src → runtime}/core/second-nature/body/circuit-breaker/circuit-breaker-manager.js +0 -0
  543. /package/{dist/src → runtime}/core/second-nature/body/probe-signal-adapter.d.ts +0 -0
  544. /package/{dist/src → runtime}/core/second-nature/body/probe-signal-adapter.js +0 -0
  545. /package/{dist/src → runtime}/core/second-nature/body/tool-affordance/affordance-assembler.d.ts +0 -0
  546. /package/{dist/src → runtime}/core/second-nature/body/tool-affordance/affordance-assembler.js +0 -0
  547. /package/{dist/src → runtime}/core/second-nature/body/tool-affordance/affordance-context-scope.d.ts +0 -0
  548. /package/{dist/src → runtime}/core/second-nature/body/tool-affordance/affordance-context-scope.js +0 -0
  549. /package/{dist/src → runtime}/core/second-nature/body/tool-experience/experience-writer.d.ts +0 -0
  550. /package/{dist/src → runtime}/core/second-nature/body/tool-experience/experience-writer.js +0 -0
  551. /package/{dist/src → runtime}/core/second-nature/body/tool-experience/pain-signal-query.d.ts +0 -0
  552. /package/{dist/src → runtime}/core/second-nature/body/tool-experience/pain-signal-query.js +0 -0
  553. /package/{dist/src → runtime}/core/second-nature/feedback/owner-reply-feedback.d.ts +0 -0
  554. /package/{dist/src → runtime}/core/second-nature/feedback/owner-reply-feedback.js +0 -0
  555. /package/{dist/src → runtime}/core/second-nature/guidance/apply-guidance.d.ts +0 -0
  556. /package/{dist/src → runtime}/core/second-nature/guidance/apply-guidance.js +0 -0
  557. /package/{dist/src → runtime}/core/second-nature/guidance/request-guidance.d.ts +0 -0
  558. /package/{dist/src → runtime}/core/second-nature/guidance/request-guidance.js +0 -0
  559. /package/{dist/src → runtime}/core/second-nature/guidance/user-reply-continuity.d.ts +0 -0
  560. /package/{dist/src → runtime}/core/second-nature/guidance/user-reply-continuity.js +0 -0
  561. /package/{dist/src → runtime}/core/second-nature/heartbeat/decision-trace-emitter.d.ts +0 -0
  562. /package/{dist/src → runtime}/core/second-nature/heartbeat/decision-trace-emitter.js +0 -0
  563. /package/{dist/src → runtime}/core/second-nature/heartbeat/embodied-context-assembler.d.ts +0 -0
  564. /package/{dist/src → runtime}/core/second-nature/heartbeat/embodied-context-assembler.js +0 -0
  565. /package/{dist/src → runtime}/core/second-nature/heartbeat/heartbeat-executor.d.ts +0 -0
  566. /package/{dist/src → runtime}/core/second-nature/heartbeat/heartbeat-executor.js +0 -0
  567. /package/{dist/src → runtime}/core/second-nature/heartbeat/idle-curiosity-policy.d.ts +0 -0
  568. /package/{dist/src → runtime}/core/second-nature/heartbeat/idle-curiosity-policy.js +0 -0
  569. /package/{dist/src → runtime}/core/second-nature/heartbeat/index.d.ts +0 -0
  570. /package/{dist/src → runtime}/core/second-nature/heartbeat/index.js +0 -0
  571. /package/{dist/src → runtime}/core/second-nature/heartbeat/run-heartbeat-cycle-v7.d.ts +0 -0
  572. /package/{dist/src → runtime}/core/second-nature/heartbeat/run-heartbeat-cycle-v7.js +0 -0
  573. /package/{dist/src → runtime}/core/second-nature/heartbeat/run-heartbeat-cycle.d.ts +0 -0
  574. /package/{dist/src → runtime}/core/second-nature/heartbeat/run-heartbeat-cycle.js +0 -0
  575. /package/{dist/src → runtime}/core/second-nature/heartbeat/runtime-snapshot.d.ts +0 -0
  576. /package/{dist/src → runtime}/core/second-nature/heartbeat/runtime-snapshot.js +0 -0
  577. /package/{dist/src → runtime}/core/second-nature/heartbeat/scope-router.d.ts +0 -0
  578. /package/{dist/src → runtime}/core/second-nature/heartbeat/scope-router.js +0 -0
  579. /package/{dist/src → runtime}/core/second-nature/heartbeat/signal.d.ts +0 -0
  580. /package/{dist/src → runtime}/core/second-nature/heartbeat/signal.js +0 -0
  581. /package/{dist/src → runtime}/core/second-nature/heartbeat/snapshot-builder.d.ts +0 -0
  582. /package/{dist/src → runtime}/core/second-nature/heartbeat/snapshot-builder.js +0 -0
  583. /package/{dist/src → runtime}/core/second-nature/index.d.ts +0 -0
  584. /package/{dist/src → runtime}/core/second-nature/index.js +0 -0
  585. /package/{dist/src → runtime}/core/second-nature/orchestrator/downstream-intent-orchestrator.d.ts +0 -0
  586. /package/{dist/src → runtime}/core/second-nature/orchestrator/downstream-intent-orchestrator.js +0 -0
  587. /package/{dist/src → runtime}/core/second-nature/orchestrator/effect-dispatcher.d.ts +0 -0
  588. /package/{dist/src → runtime}/core/second-nature/orchestrator/effect-dispatcher.js +0 -0
  589. /package/{dist/src → runtime}/core/second-nature/orchestrator/goal-priority.d.ts +0 -0
  590. /package/{dist/src → runtime}/core/second-nature/orchestrator/goal-priority.js +0 -0
  591. /package/{dist/src → runtime}/core/second-nature/orchestrator/guard-layer.d.ts +0 -0
  592. /package/{dist/src → runtime}/core/second-nature/orchestrator/guard-layer.js +0 -0
  593. /package/{dist/src → runtime}/core/second-nature/orchestrator/hard-guard-evaluator.d.ts +0 -0
  594. /package/{dist/src → runtime}/core/second-nature/orchestrator/hard-guard-evaluator.js +0 -0
  595. /package/{dist/src → runtime}/core/second-nature/orchestrator/index.d.ts +0 -0
  596. /package/{dist/src → runtime}/core/second-nature/orchestrator/index.js +0 -0
  597. /package/{dist/src → runtime}/core/second-nature/orchestrator/intent-planner.d.ts +0 -0
  598. /package/{dist/src → runtime}/core/second-nature/orchestrator/intent-planner.js +0 -0
  599. /package/{dist/src → runtime}/core/second-nature/orchestrator/lease-manager.d.ts +0 -0
  600. /package/{dist/src → runtime}/core/second-nature/orchestrator/lease-manager.js +0 -0
  601. /package/{dist/src → runtime}/core/second-nature/orchestrator/narrative-update.d.ts +0 -0
  602. /package/{dist/src → runtime}/core/second-nature/orchestrator/narrative-update.js +0 -0
  603. /package/{dist/src → runtime}/core/second-nature/orchestrator/platform-capability-router.d.ts +0 -0
  604. /package/{dist/src → runtime}/core/second-nature/orchestrator/resume-from-checkpoint.d.ts +0 -0
  605. /package/{dist/src → runtime}/core/second-nature/orchestrator/resume-from-checkpoint.js +0 -0
  606. /package/{dist/src → runtime}/core/second-nature/outreach/build-message.d.ts +0 -0
  607. /package/{dist/src → runtime}/core/second-nature/outreach/build-message.js +0 -0
  608. /package/{dist/src → runtime}/core/second-nature/outreach/build-outreach-draft-request.d.ts +0 -0
  609. /package/{dist/src → runtime}/core/second-nature/outreach/build-outreach-draft-request.js +0 -0
  610. /package/{dist/src → runtime}/core/second-nature/outreach/delivery-target.d.ts +0 -0
  611. /package/{dist/src → runtime}/core/second-nature/outreach/delivery-target.js +0 -0
  612. /package/{dist/src → runtime}/core/second-nature/outreach/dispatch-user-outreach.d.ts +0 -0
  613. /package/{dist/src → runtime}/core/second-nature/outreach/dispatch-user-outreach.js +0 -0
  614. /package/{dist/src → runtime}/core/second-nature/outreach/evaluate-outreach.d.ts +0 -0
  615. /package/{dist/src → runtime}/core/second-nature/outreach/evaluate-outreach.js +0 -0
  616. /package/{dist/src → runtime}/core/second-nature/outreach/judge-input-from-snapshot.d.ts +0 -0
  617. /package/{dist/src → runtime}/core/second-nature/outreach/judge-input-from-snapshot.js +0 -0
  618. /package/{dist/src → runtime}/core/second-nature/outreach/judge-outreach.d.ts +0 -0
  619. /package/{dist/src → runtime}/core/second-nature/outreach/judge-outreach.js +0 -0
  620. /package/{dist/src → runtime}/core/second-nature/quiet/claim-synthesizer.d.ts +0 -0
  621. /package/{dist/src → runtime}/core/second-nature/quiet/claim-synthesizer.js +0 -0
  622. /package/{dist/src → runtime}/core/second-nature/quiet/daily-diary-writer.d.ts +0 -0
  623. /package/{dist/src → runtime}/core/second-nature/quiet/daily-diary-writer.js +0 -0
  624. /package/{dist/src → runtime}/core/second-nature/quiet/index.d.ts +0 -0
  625. /package/{dist/src → runtime}/core/second-nature/quiet/index.js +0 -0
  626. /package/{dist/src → runtime}/core/second-nature/quiet/quiet-pipeline.d.ts +0 -0
  627. /package/{dist/src → runtime}/core/second-nature/quiet/quiet-pipeline.js +0 -0
  628. /package/{dist/src → runtime}/core/second-nature/quiet/run-source-backed-quiet.d.ts +0 -0
  629. /package/{dist/src → runtime}/core/second-nature/quiet/run-source-backed-quiet.js +0 -0
  630. /package/{dist/src → runtime}/core/second-nature/reflection/run-narrative-reflection.d.ts +0 -0
  631. /package/{dist/src → runtime}/core/second-nature/reflection/run-narrative-reflection.js +0 -0
  632. /package/{dist/src → runtime}/core/second-nature/rhythm/planner-rhythm-window.d.ts +0 -0
  633. /package/{dist/src → runtime}/core/second-nature/rhythm/planner-rhythm-window.js +0 -0
  634. /package/{dist/src → runtime}/core/second-nature/rhythm/policy-bridge.d.ts +0 -0
  635. /package/{dist/src → runtime}/core/second-nature/rhythm/policy-bridge.js +0 -0
  636. /package/{dist/src → runtime}/core/second-nature/rhythm/rhythm-policy.d.ts +0 -0
  637. /package/{dist/src → runtime}/core/second-nature/rhythm/rhythm-policy.js +0 -0
  638. /package/{dist/src → runtime}/core/second-nature/rhythm/select-window.d.ts +0 -0
  639. /package/{dist/src → runtime}/core/second-nature/rhythm/select-window.js +0 -0
  640. /package/{dist/src → runtime}/core/second-nature/runtime/lifecycle-service.d.ts +0 -0
  641. /package/{dist/src → runtime}/core/second-nature/runtime/lifecycle-service.js +0 -0
  642. /package/{dist/src → runtime}/core/second-nature/runtime/service-entry.d.ts +0 -0
  643. /package/{dist/src → runtime}/core/second-nature/runtime/service-entry.js +0 -0
  644. /package/{dist/src → runtime}/core/second-nature/types.d.ts +0 -0
  645. /package/{dist/src → runtime}/core/second-nature/types.js +0 -0
  646. /package/{dist/src → runtime}/dream/dream-engine.d.ts +0 -0
  647. /package/{dist/src → runtime}/dream/dream-engine.js +0 -0
  648. /package/{dist/src → runtime}/dream/dream-input-loader.d.ts +0 -0
  649. /package/{dist/src → runtime}/dream/dream-input-loader.js +0 -0
  650. /package/{dist/src → runtime}/dream/dream-scheduler.d.ts +0 -0
  651. /package/{dist/src → runtime}/dream/dream-scheduler.js +0 -0
  652. /package/{dist/src → runtime}/dream/index.d.ts +0 -0
  653. /package/{dist/src → runtime}/dream/index.js +0 -0
  654. /package/{dist/src → runtime}/dream/insight-extractor.d.ts +0 -0
  655. /package/{dist/src → runtime}/dream/insight-extractor.js +0 -0
  656. /package/{dist/src → runtime}/dream/memory-consolidator.d.ts +0 -0
  657. /package/{dist/src → runtime}/dream/memory-consolidator.js +0 -0
  658. /package/{dist/src → runtime}/dream/narrative-update-proposal.d.ts +0 -0
  659. /package/{dist/src → runtime}/dream/narrative-update-proposal.js +0 -0
  660. /package/{dist/src → runtime}/dream/output-validator.d.ts +0 -0
  661. /package/{dist/src → runtime}/dream/output-validator.js +0 -0
  662. /package/{dist/src → runtime}/dream/redaction-gate.d.ts +0 -0
  663. /package/{dist/src → runtime}/dream/redaction-gate.js +0 -0
  664. /package/{dist/src → runtime}/dream/relationship-update-proposal.d.ts +0 -0
  665. /package/{dist/src → runtime}/dream/relationship-update-proposal.js +0 -0
  666. /package/{dist/src → runtime}/dream/sampler.d.ts +0 -0
  667. /package/{dist/src → runtime}/dream/sampler.js +0 -0
  668. /package/{dist/src → runtime}/dream/types.d.ts +0 -0
  669. /package/{dist/src → runtime}/dream/types.js +0 -0
  670. /package/{dist/src → runtime}/guidance/capability-class.d.ts +0 -0
  671. /package/{dist/src → runtime}/guidance/capability-class.js +0 -0
  672. /package/{dist/src → runtime}/guidance/channel-feedback-ingestion-service.d.ts +0 -0
  673. /package/{dist/src → runtime}/guidance/channel-feedback-ingestion-service.js +0 -0
  674. /package/{dist/src → runtime}/guidance/contracts.d.ts +0 -0
  675. /package/{dist/src → runtime}/guidance/contracts.js +0 -0
  676. /package/{dist/src → runtime}/guidance/draft-narrative-outreach.d.ts +0 -0
  677. /package/{dist/src → runtime}/guidance/draft-narrative-outreach.js +0 -0
  678. /package/{dist/src → runtime}/guidance/draft-outreach-message.d.ts +0 -0
  679. /package/{dist/src → runtime}/guidance/draft-outreach-message.js +0 -0
  680. /package/{dist/src → runtime}/guidance/evidence-guidance.d.ts +0 -0
  681. /package/{dist/src → runtime}/guidance/evidence-guidance.js +0 -0
  682. /package/{dist/src → runtime}/guidance/fallback.d.ts +0 -0
  683. /package/{dist/src → runtime}/guidance/fallback.js +0 -0
  684. /package/{dist/src → runtime}/guidance/guidance-assembler.d.ts +0 -0
  685. /package/{dist/src → runtime}/guidance/guidance-assembler.js +0 -0
  686. /package/{dist/src → runtime}/guidance/guidance-draft-service.d.ts +0 -0
  687. /package/{dist/src → runtime}/guidance/guidance-draft-service.js +0 -0
  688. /package/{dist/src → runtime}/guidance/impulse-assembler.d.ts +0 -0
  689. /package/{dist/src → runtime}/guidance/impulse-assembler.js +0 -0
  690. /package/{dist/src → runtime}/guidance/index.d.ts +0 -0
  691. /package/{dist/src → runtime}/guidance/index.js +0 -0
  692. /package/{dist/src → runtime}/guidance/output-guard.d.ts +0 -0
  693. /package/{dist/src → runtime}/guidance/output-guard.js +0 -0
  694. /package/{dist/src → runtime}/guidance/outreach-draft-schema.d.ts +0 -0
  695. /package/{dist/src → runtime}/guidance/outreach-draft-schema.js +0 -0
  696. /package/{dist/src → runtime}/guidance/outreach-strategy-selector.d.ts +0 -0
  697. /package/{dist/src → runtime}/guidance/outreach-strategy-selector.js +0 -0
  698. /package/{dist/src → runtime}/guidance/persona-selection.d.ts +0 -0
  699. /package/{dist/src → runtime}/guidance/persona-selection.js +0 -0
  700. /package/{dist/src → runtime}/guidance/review-workflow.d.ts +0 -0
  701. /package/{dist/src → runtime}/guidance/review-workflow.js +0 -0
  702. /package/{dist/src → runtime}/guidance/template-registry.d.ts +0 -0
  703. /package/{dist/src → runtime}/guidance/template-registry.js +0 -0
  704. /package/{dist/src → runtime}/guidance/types.d.ts +0 -0
  705. /package/{dist/src → runtime}/guidance/types.js +0 -0
  706. /package/{dist/src → runtime}/observability/audit/append-only-audit-store.d.ts +0 -0
  707. /package/{dist/src → runtime}/observability/audit/append-only-audit-store.js +0 -0
  708. /package/{dist/src → runtime}/observability/audit/audit-envelope.d.ts +0 -0
  709. /package/{dist/src → runtime}/observability/audit/audit-envelope.js +0 -0
  710. /package/{dist/src → runtime}/observability/audit/audit-family-registry.json +0 -0
  711. /package/{dist/src → runtime}/observability/audit/family-registry.d.ts +0 -0
  712. /package/{dist/src → runtime}/observability/audit/family-registry.js +0 -0
  713. /package/{dist/src → runtime}/observability/audit/verify-audit-hash-chain.d.ts +0 -0
  714. /package/{dist/src → runtime}/observability/audit/verify-audit-hash-chain.js +0 -0
  715. /package/{dist/src → runtime}/observability/connector-inventory-ledger.d.ts +0 -0
  716. /package/{dist/src → runtime}/observability/connector-inventory-ledger.js +0 -0
  717. /package/{dist/src → runtime}/observability/db/index.d.ts +0 -0
  718. /package/{dist/src → runtime}/observability/db/index.js +0 -0
  719. /package/{dist/src → runtime}/observability/db/schema/connector-inventory.d.ts +0 -0
  720. /package/{dist/src → runtime}/observability/db/schema/connector-inventory.js +0 -0
  721. /package/{dist/src → runtime}/observability/db/schema/host-capability-reports.d.ts +0 -0
  722. /package/{dist/src → runtime}/observability/db/schema/host-capability-reports.js +0 -0
  723. /package/{dist/src → runtime}/observability/db/schema/index.d.ts +0 -0
  724. /package/{dist/src → runtime}/observability/db/schema/index.js +0 -0
  725. /package/{dist/src → runtime}/observability/index.d.ts +0 -0
  726. /package/{dist/src → runtime}/observability/index.js +0 -0
  727. /package/{dist/src → runtime}/observability/projections/guidance-audit.d.ts +0 -0
  728. /package/{dist/src → runtime}/observability/projections/guidance-audit.js +0 -0
  729. /package/{dist/src → runtime}/observability/projections/outreach-quality-audit.d.ts +0 -0
  730. /package/{dist/src → runtime}/observability/projections/outreach-quality-audit.js +0 -0
  731. /package/{dist/src → runtime}/observability/projections/reflection-audit.d.ts +0 -0
  732. /package/{dist/src → runtime}/observability/projections/reflection-audit.js +0 -0
  733. /package/{dist/src → runtime}/observability/query/compose-evidence.d.ts +0 -0
  734. /package/{dist/src → runtime}/observability/query/compose-evidence.js +0 -0
  735. /package/{dist/src → runtime}/observability/query/evidence-query-engine.d.ts +0 -0
  736. /package/{dist/src → runtime}/observability/query/evidence-query-engine.js +0 -0
  737. /package/{dist/src → runtime}/observability/query/explain-query.d.ts +0 -0
  738. /package/{dist/src → runtime}/observability/query/explain-query.js +0 -0
  739. /package/{dist/src → runtime}/observability/query/export-audit-bundle.d.ts +0 -0
  740. /package/{dist/src → runtime}/observability/query/export-audit-bundle.js +0 -0
  741. /package/{dist/src → runtime}/observability/redaction/manifest.d.ts +0 -0
  742. /package/{dist/src → runtime}/observability/redaction/manifest.js +0 -0
  743. /package/{dist/src → runtime}/observability/redaction/policy.d.ts +0 -0
  744. /package/{dist/src → runtime}/observability/redaction/policy.js +0 -0
  745. /package/{dist/src → runtime}/observability/services/decision-ledger.d.ts +0 -0
  746. /package/{dist/src → runtime}/observability/services/decision-ledger.js +0 -0
  747. /package/{dist/src → runtime}/observability/services/execution-telemetry.d.ts +0 -0
  748. /package/{dist/src → runtime}/observability/services/execution-telemetry.js +0 -0
  749. /package/{dist/src → runtime}/observability/services/governance-audit.d.ts +0 -0
  750. /package/{dist/src → runtime}/observability/services/governance-audit.js +0 -0
  751. /package/{dist/src → runtime}/observability/services/governance-plane-recorder.d.ts +0 -0
  752. /package/{dist/src → runtime}/observability/services/governance-plane-recorder.js +0 -0
  753. /package/{dist/src → runtime}/observability/services/heartbeat-digest-assembler.d.ts +0 -0
  754. /package/{dist/src → runtime}/observability/services/heartbeat-digest-assembler.js +0 -0
  755. /package/{dist/src → runtime}/observability/services/lived-experience-audit.d.ts +0 -0
  756. /package/{dist/src → runtime}/observability/services/lived-experience-audit.js +0 -0
  757. /package/{dist/src → runtime}/observability/services/narrative-timeline-query-service.d.ts +0 -0
  758. /package/{dist/src → runtime}/observability/services/narrative-timeline-query-service.js +0 -0
  759. /package/{dist/src → runtime}/observability/services/observability-retention.d.ts +0 -0
  760. /package/{dist/src → runtime}/observability/services/observability-retention.js +0 -0
  761. /package/{dist/src → runtime}/observability/services/redaction-store.d.ts +0 -0
  762. /package/{dist/src → runtime}/observability/services/redaction-store.js +0 -0
  763. /package/{dist/src → runtime}/observability/services/restore-audit-service.d.ts +0 -0
  764. /package/{dist/src → runtime}/observability/services/restore-audit-service.js +0 -0
  765. /package/{dist/src → runtime}/observability/services/runtime-decision-recorder.d.ts +0 -0
  766. /package/{dist/src → runtime}/observability/services/runtime-decision-recorder.js +0 -0
  767. /package/{dist/src → runtime}/observability/services/runtime-secret-anchor-view.d.ts +0 -0
  768. /package/{dist/src → runtime}/observability/services/runtime-secret-anchor-view.js +0 -0
  769. /package/{dist/src → runtime}/observability/services/self-health-snapshot.d.ts +0 -0
  770. /package/{dist/src → runtime}/observability/services/self-health-snapshot.js +0 -0
  771. /package/{dist/src → runtime}/shared/types/continuity.d.ts +0 -0
  772. /package/{dist/src → runtime}/shared/types/continuity.js +0 -0
  773. /package/{dist/src → runtime}/shared/types/credential.d.ts +0 -0
  774. /package/{dist/src → runtime}/shared/types/credential.js +0 -0
  775. /package/{dist/src → runtime}/shared/types/goal.d.ts +0 -0
  776. /package/{dist/src → runtime}/shared/types/goal.js +0 -0
  777. /package/{dist/src → runtime}/shared/types/index.d.ts +0 -0
  778. /package/{dist/src → runtime}/shared/types/index.js +0 -0
  779. /package/{dist/src → runtime}/shared/types/outreach.d.ts +0 -0
  780. /package/{dist/src → runtime}/shared/types/outreach.js +0 -0
  781. /package/{dist/src → runtime}/shared/types/source-ref.d.ts +0 -0
  782. /package/{dist/src → runtime}/shared/types/source-ref.js +0 -0
  783. /package/{dist/src → runtime}/shared/types/v7-entities.d.ts +0 -0
  784. /package/{dist/src → runtime}/shared/types/v7-entities.js +0 -0
  785. /package/{dist/src → runtime}/storage/bootstrap/native-sqlite-probe.d.ts +0 -0
  786. /package/{dist/src → runtime}/storage/bootstrap/native-sqlite-probe.js +0 -0
  787. /package/{dist/src → runtime}/storage/bootstrap/repair-gate.d.ts +0 -0
  788. /package/{dist/src → runtime}/storage/bootstrap/repair-gate.js +0 -0
  789. /package/{dist/src → runtime}/storage/bootstrap/repair.d.ts +0 -0
  790. /package/{dist/src → runtime}/storage/bootstrap/repair.js +0 -0
  791. /package/{dist/src → runtime}/storage/bootstrap/storage-mode-smoke.d.ts +0 -0
  792. /package/{dist/src → runtime}/storage/bootstrap/storage-mode-smoke.js +0 -0
  793. /package/{dist/src → runtime}/storage/chronicle/session-chronicle-store.d.ts +0 -0
  794. /package/{dist/src → runtime}/storage/chronicle/session-chronicle-store.js +0 -0
  795. /package/{dist/src → runtime}/storage/db/index.d.ts +0 -0
  796. /package/{dist/src → runtime}/storage/db/index.js +0 -0
  797. /package/{dist/src → runtime}/storage/db/migration-runner.d.ts +0 -0
  798. /package/{dist/src → runtime}/storage/db/migration-runner.js +0 -0
  799. /package/{dist/src → runtime}/storage/db/migrations/index.d.ts +0 -0
  800. /package/{dist/src → runtime}/storage/db/migrations/index.js +0 -0
  801. /package/{dist/src → runtime}/storage/db/migrations/v7-001-foundation.d.ts +0 -0
  802. /package/{dist/src → runtime}/storage/db/migrations/v7-001-foundation.js +0 -0
  803. /package/{dist/src → runtime}/storage/db/migrations/v7-002-effect-commit-ledger.d.ts +0 -0
  804. /package/{dist/src → runtime}/storage/db/migrations/v7-002-effect-commit-ledger.js +0 -0
  805. /package/{dist/src → runtime}/storage/db/migrations/v7-003-circuit-breaker.d.ts +0 -0
  806. /package/{dist/src → runtime}/storage/db/migrations/v7-003-circuit-breaker.js +0 -0
  807. /package/{dist/src → runtime}/storage/db/migrations/v7-004-behavior-promotion.d.ts +0 -0
  808. /package/{dist/src → runtime}/storage/db/migrations/v7-004-behavior-promotion.js +0 -0
  809. /package/{dist/src → runtime}/storage/db/schema/agent-goal.d.ts +0 -0
  810. /package/{dist/src → runtime}/storage/db/schema/agent-goal.js +0 -0
  811. /package/{dist/src → runtime}/storage/db/schema/assets.d.ts +0 -0
  812. /package/{dist/src → runtime}/storage/db/schema/assets.js +0 -0
  813. /package/{dist/src → runtime}/storage/db/schema/credentials.d.ts +0 -0
  814. /package/{dist/src → runtime}/storage/db/schema/credentials.js +0 -0
  815. /package/{dist/src → runtime}/storage/db/schema/delivery-attempts.d.ts +0 -0
  816. /package/{dist/src → runtime}/storage/db/schema/delivery-attempts.js +0 -0
  817. /package/{dist/src → runtime}/storage/db/schema/index.d.ts +0 -0
  818. /package/{dist/src → runtime}/storage/db/schema/index.js +0 -0
  819. /package/{dist/src → runtime}/storage/db/schema/intent-commits.d.ts +0 -0
  820. /package/{dist/src → runtime}/storage/db/schema/intent-commits.js +0 -0
  821. /package/{dist/src → runtime}/storage/db/schema/life-evidence-index.d.ts +0 -0
  822. /package/{dist/src → runtime}/storage/db/schema/life-evidence-index.js +0 -0
  823. /package/{dist/src → runtime}/storage/db/schema/memory-store.d.ts +0 -0
  824. /package/{dist/src → runtime}/storage/db/schema/memory-store.js +0 -0
  825. /package/{dist/src → runtime}/storage/db/schema/narrative-state.d.ts +0 -0
  826. /package/{dist/src → runtime}/storage/db/schema/narrative-state.js +0 -0
  827. /package/{dist/src → runtime}/storage/db/schema/operator-fallback-artifacts.d.ts +0 -0
  828. /package/{dist/src → runtime}/storage/db/schema/operator-fallback-artifacts.js +0 -0
  829. /package/{dist/src → runtime}/storage/db/schema/policies.d.ts +0 -0
  830. /package/{dist/src → runtime}/storage/db/schema/policies.js +0 -0
  831. /package/{dist/src → runtime}/storage/db/schema/proposals.d.ts +0 -0
  832. /package/{dist/src → runtime}/storage/db/schema/proposals.js +0 -0
  833. /package/{dist/src → runtime}/storage/db/schema/provenance.d.ts +0 -0
  834. /package/{dist/src → runtime}/storage/db/schema/provenance.js +0 -0
  835. /package/{dist/src → runtime}/storage/db/schema/relationship-memory.d.ts +0 -0
  836. /package/{dist/src → runtime}/storage/db/schema/relationship-memory.js +0 -0
  837. /package/{dist/src → runtime}/storage/db/schema/session-chronicle.d.ts +0 -0
  838. /package/{dist/src → runtime}/storage/db/schema/session-chronicle.js +0 -0
  839. /package/{dist/src → runtime}/storage/db/transaction-utils.d.ts +0 -0
  840. /package/{dist/src → runtime}/storage/db/transaction-utils.js +0 -0
  841. /package/{dist/src → runtime}/storage/db/write-queue.d.ts +0 -0
  842. /package/{dist/src → runtime}/storage/db/write-queue.js +0 -0
  843. /package/{dist/src → runtime}/storage/delivery/query-delivery-attempts.d.ts +0 -0
  844. /package/{dist/src → runtime}/storage/delivery/query-delivery-attempts.js +0 -0
  845. /package/{dist/src → runtime}/storage/delivery/types.d.ts +0 -0
  846. /package/{dist/src → runtime}/storage/delivery/types.js +0 -0
  847. /package/{dist/src → runtime}/storage/delivery/write-delivery-attempt.d.ts +0 -0
  848. /package/{dist/src → runtime}/storage/delivery/write-delivery-attempt.js +0 -0
  849. /package/{dist/src → runtime}/storage/fallback/load-operator-fallback.d.ts +0 -0
  850. /package/{dist/src → runtime}/storage/fallback/load-operator-fallback.js +0 -0
  851. /package/{dist/src → runtime}/storage/fallback/operator-fallback-types.d.ts +0 -0
  852. /package/{dist/src → runtime}/storage/fallback/operator-fallback-types.js +0 -0
  853. /package/{dist/src → runtime}/storage/fallback/operator-fallback-view.d.ts +0 -0
  854. /package/{dist/src → runtime}/storage/fallback/operator-fallback-view.js +0 -0
  855. /package/{dist/src → runtime}/storage/fallback/write-operator-fallback.d.ts +0 -0
  856. /package/{dist/src → runtime}/storage/fallback/write-operator-fallback.js +0 -0
  857. /package/{dist/src → runtime}/storage/goal/agent-goal-store.d.ts +0 -0
  858. /package/{dist/src → runtime}/storage/goal/agent-goal-store.js +0 -0
  859. /package/{dist/src → runtime}/storage/index.d.ts +0 -0
  860. /package/{dist/src → runtime}/storage/index.js +0 -0
  861. /package/{dist/src → runtime}/storage/life-evidence/append-life-evidence.d.ts +0 -0
  862. /package/{dist/src → runtime}/storage/life-evidence/append-life-evidence.js +0 -0
  863. /package/{dist/src → runtime}/storage/life-evidence/types.d.ts +0 -0
  864. /package/{dist/src → runtime}/storage/life-evidence/types.js +0 -0
  865. /package/{dist/src → runtime}/storage/memory/workspace/paths.d.ts +0 -0
  866. /package/{dist/src → runtime}/storage/memory/workspace/paths.js +0 -0
  867. /package/{dist/src → runtime}/storage/memory/workspace/store.d.ts +0 -0
  868. /package/{dist/src → runtime}/storage/memory/workspace/store.js +0 -0
  869. /package/{dist/src → runtime}/storage/memory/workspace/types.d.ts +0 -0
  870. /package/{dist/src → runtime}/storage/memory/workspace/types.js +0 -0
  871. /package/{dist/src → runtime}/storage/memory-store/memory-store-lifecycle.d.ts +0 -0
  872. /package/{dist/src → runtime}/storage/memory-store/memory-store-lifecycle.js +0 -0
  873. /package/{dist/src → runtime}/storage/narrative/narrative-state-store.d.ts +0 -0
  874. /package/{dist/src → runtime}/storage/narrative/narrative-state-store.js +0 -0
  875. /package/{dist/src → runtime}/storage/quiet/persist-quiet-artifact.d.ts +0 -0
  876. /package/{dist/src → runtime}/storage/quiet/persist-quiet-artifact.js +0 -0
  877. /package/{dist/src → runtime}/storage/quiet/quiet-artifact-types.d.ts +0 -0
  878. /package/{dist/src → runtime}/storage/quiet/quiet-artifact-types.js +0 -0
  879. /package/{dist/src → runtime}/storage/quiet/quiet-artifact-writer.d.ts +0 -0
  880. /package/{dist/src → runtime}/storage/quiet/quiet-artifact-writer.js +0 -0
  881. /package/{dist/src → runtime}/storage/relationship/relationship-memory-store.d.ts +0 -0
  882. /package/{dist/src → runtime}/storage/relationship/relationship-memory-store.js +0 -0
  883. /package/{dist/src → runtime}/storage/repositories/asset-repository.d.ts +0 -0
  884. /package/{dist/src → runtime}/storage/repositories/asset-repository.js +0 -0
  885. /package/{dist/src → runtime}/storage/repositories/credential-repository.d.ts +0 -0
  886. /package/{dist/src → runtime}/storage/repositories/credential-repository.js +0 -0
  887. /package/{dist/src → runtime}/storage/repositories/index.d.ts +0 -0
  888. /package/{dist/src → runtime}/storage/repositories/index.js +0 -0
  889. /package/{dist/src → runtime}/storage/repositories/intent-commit-repository.d.ts +0 -0
  890. /package/{dist/src → runtime}/storage/repositories/intent-commit-repository.js +0 -0
  891. /package/{dist/src → runtime}/storage/repositories/policy-repository.d.ts +0 -0
  892. /package/{dist/src → runtime}/storage/repositories/policy-repository.js +0 -0
  893. /package/{dist/src → runtime}/storage/repositories/proposal-repository.d.ts +0 -0
  894. /package/{dist/src → runtime}/storage/repositories/proposal-repository.js +0 -0
  895. /package/{dist/src → runtime}/storage/repositories/provenance-repository.d.ts +0 -0
  896. /package/{dist/src → runtime}/storage/repositories/provenance-repository.js +0 -0
  897. /package/{dist/src → runtime}/storage/rhythm/rhythm-policy-snapshot.d.ts +0 -0
  898. /package/{dist/src → runtime}/storage/rhythm/rhythm-policy-snapshot.js +0 -0
  899. /package/{dist/src → runtime}/storage/services/credential-vault.d.ts +0 -0
  900. /package/{dist/src → runtime}/storage/services/credential-vault.js +0 -0
  901. /package/{dist/src → runtime}/storage/services/daily-log-pipeline.d.ts +0 -0
  902. /package/{dist/src → runtime}/storage/services/daily-log-pipeline.js +0 -0
  903. /package/{dist/src → runtime}/storage/services/diary-dream-store.d.ts +0 -0
  904. /package/{dist/src → runtime}/storage/services/diary-dream-store.js +0 -0
  905. /package/{dist/src → runtime}/storage/services/effect-commit-store.d.ts +0 -0
  906. /package/{dist/src → runtime}/storage/services/effect-commit-store.js +0 -0
  907. /package/{dist/src → runtime}/storage/services/embodied-context-state-port.d.ts +0 -0
  908. /package/{dist/src → runtime}/storage/services/embodied-context-state-port.js +0 -0
  909. /package/{dist/src → runtime}/storage/services/goal-lifecycle-store.d.ts +0 -0
  910. /package/{dist/src → runtime}/storage/services/goal-lifecycle-store.js +0 -0
  911. /package/{dist/src → runtime}/storage/services/governance-layer.d.ts +0 -0
  912. /package/{dist/src → runtime}/storage/services/governance-layer.js +0 -0
  913. /package/{dist/src → runtime}/storage/services/history-digest-store.d.ts +0 -0
  914. /package/{dist/src → runtime}/storage/services/history-digest-store.js +0 -0
  915. /package/{dist/src → runtime}/storage/services/identity-profile-store.d.ts +0 -0
  916. /package/{dist/src → runtime}/storage/services/identity-profile-store.js +0 -0
  917. /package/{dist/src → runtime}/storage/services/interaction-snapshot-projector.d.ts +0 -0
  918. /package/{dist/src → runtime}/storage/services/interaction-snapshot-projector.js +0 -0
  919. /package/{dist/src → runtime}/storage/services/persona-candidate-loader.d.ts +0 -0
  920. /package/{dist/src → runtime}/storage/services/persona-candidate-loader.js +0 -0
  921. /package/{dist/src → runtime}/storage/services/provenance-service.d.ts +0 -0
  922. /package/{dist/src → runtime}/storage/services/provenance-service.js +0 -0
  923. /package/{dist/src → runtime}/storage/services/quiet-input-loader.d.ts +0 -0
  924. /package/{dist/src → runtime}/storage/services/quiet-input-loader.js +0 -0
  925. /package/{dist/src → runtime}/storage/services/repair-and-backup.d.ts +0 -0
  926. /package/{dist/src → runtime}/storage/services/repair-and-backup.js +0 -0
  927. /package/{dist/src → runtime}/storage/services/restore-snapshot-store.d.ts +0 -0
  928. /package/{dist/src → runtime}/storage/services/restore-snapshot-store.js +0 -0
  929. /package/{dist/src → runtime}/storage/services/runtime-secret-anchor-store.d.ts +0 -0
  930. /package/{dist/src → runtime}/storage/services/runtime-secret-anchor-store.js +0 -0
  931. /package/{dist/src → runtime}/storage/services/tool-experience-store.d.ts +0 -0
  932. /package/{dist/src → runtime}/storage/services/tool-experience-store.js +0 -0
  933. /package/{dist/src → runtime}/storage/services/write-validation-gate.d.ts +0 -0
  934. /package/{dist/src → runtime}/storage/services/write-validation-gate.js +0 -0
  935. /package/{dist/src → runtime}/storage/snapshots/continuity-snapshot.d.ts +0 -0
  936. /package/{dist/src → runtime}/storage/snapshots/continuity-snapshot.js +0 -0
  937. /package/{dist/src → runtime}/storage/snapshots/life-evidence-snapshot.d.ts +0 -0
  938. /package/{dist/src → runtime}/storage/snapshots/life-evidence-snapshot.js +0 -0
  939. /package/{dist/src → runtime}/storage/snapshots/types.d.ts +0 -0
  940. /package/{dist/src → runtime}/storage/snapshots/types.js +0 -0
  941. /package/{dist/src → runtime}/storage/state-api.d.ts +0 -0
  942. /package/{dist/src → runtime}/storage/state-api.js +0 -0
  943. /package/{dist/src → runtime}/storage/user-interest/load-user-interest-snapshot.d.ts +0 -0
  944. /package/{dist/src → runtime}/storage/user-interest/load-user-interest-snapshot.js +0 -0
  945. /package/{dist/src → runtime}/storage/user-interest/types.d.ts +0 -0
  946. /package/{dist/src → runtime}/storage/user-interest/types.js +0 -0
  947. /package/{dist/plugin/workspace-ops-bridge.js → workspace-ops-bridge.js} +0 -0
@@ -1,149 +1,149 @@
1
- function kindToCapability(kind) {
2
- if (kind === "exploration")
3
- return "feed.read";
4
- if (kind === "social")
5
- return "comment.reply";
6
- if (kind === "work")
7
- return "work.discover";
8
- if (kind === "outreach")
9
- return "message.send";
10
- return null;
11
- }
12
- function getPlatformIds(registry) {
13
- if (registry) {
14
- return registry.listRegisteredPlatformIds();
15
- }
16
- // Fallback: built-in platforms when registry is absent (backward compat)
17
- return ["moltbook", "instreet", "evomap", "agent-world"];
18
- }
19
- const FALLBACK_PLATFORM_CAPABILITIES = {
20
- "moltbook": ["feed.read", "post.publish", "comment.reply", "message.send"],
21
- "instreet": ["notification.list", "message.send", "comment.reply", "agent.heartbeat"],
22
- "evomap": ["agent.register", "agent.heartbeat", "work.discover", "task.claim"],
23
- "agent-world": ["feed.read", "work.discover", "task.claim"],
24
- };
25
- function fallbackPlatformSupportsCapability(platformId, kind) {
26
- const capability = kindToCapability(kind);
27
- if (!capability)
28
- return false;
29
- return (FALLBACK_PLATFORM_CAPABILITIES[platformId] ?? []).includes(capability);
30
- }
31
- function extractPlatformIdsFromGoals(goals, kind, platformIds) {
32
- const capability = kindToCapability(kind);
33
- const results = new Set();
34
- for (const goal of goals) {
35
- const text = `${goal.description} ${goal.completionCriteria ?? ""}`.toLowerCase();
36
- for (const pid of platformIds) {
37
- if (text.includes(pid)) {
38
- results.add(pid);
39
- }
40
- }
41
- // Also match if goal text contains the capability name (e.g. "feed.read")
42
- if (capability && text.includes(capability.toLowerCase())) {
43
- // capability alone doesn't tell us platform; keep for later
44
- }
45
- }
46
- return [...results];
47
- }
48
- function extractPlatformIdsFromEvidence(refs, platformIds) {
49
- const results = new Set();
50
- for (const ref of refs) {
51
- if (ref.kind === "connector_result" && ref.id) {
52
- for (const pid of platformIds) {
53
- if (ref.id.includes(pid)) {
54
- results.add(pid);
55
- }
56
- }
57
- }
58
- // Parse platform:// URIs (e.g. platform://moltbook/feed.read)
59
- if (ref.uri && ref.uri.startsWith("platform://")) {
60
- const afterScheme = ref.uri.slice("platform://".length);
61
- const platformPart = afterScheme.split("/")[0];
62
- if (platformPart && platformIds.includes(platformPart)) {
63
- results.add(platformPart);
64
- }
65
- }
66
- // L-02: Also support namespace format moltbook:feed.read (connector-system §5.3)
67
- if (ref.uri && !ref.uri.includes("://") && ref.uri.includes(":")) {
68
- const nsPart = ref.uri.split(":")[0];
69
- if (nsPart && platformIds.includes(nsPart)) {
70
- results.add(nsPart);
71
- }
72
- }
73
- }
74
- return [...results];
75
- }
76
- function validatePlatformCapability(platformId, kind, registry) {
77
- const capability = kindToCapability(kind);
78
- if (!capability)
79
- return false;
80
- try {
81
- return registry.hasCapability(platformId, capability);
82
- }
83
- catch (err) {
84
- // H-08: Log registry validation failures for observability.
85
- console.warn(`[platform-capability-router] Registry validation failed for ${platformId}:${capability}`, err);
86
- return false;
87
- }
88
- }
89
- /**
90
- * Resolve an explicit platformId for a candidate intent kind.
91
- * Returns `undefined` when no unambiguous platform can be inferred.
92
- */
93
- export function resolvePlatformForIntent(kind, context, registry) {
94
- const capability = kindToCapability(kind);
95
- if (!capability) {
96
- // Quiet, reflection, maintenance have no connector capability mapping.
97
- return undefined;
98
- }
99
- const platformIds = getPlatformIds(registry);
100
- const candidates = [];
101
- if (context.acceptedGoals && context.acceptedGoals.length > 0) {
102
- candidates.push(...extractPlatformIdsFromGoals(context.acceptedGoals, kind, platformIds));
103
- }
104
- if (context.evidenceRefs && context.evidenceRefs.length > 0) {
105
- candidates.push(...extractPlatformIdsFromEvidence(context.evidenceRefs, platformIds));
106
- }
107
- // Deduplicate while preserving order
108
- const ordered = [...new Set(candidates)];
109
- if (ordered.length > 1) {
110
- // Ambiguous: multiple platforms inferred → do not guess, return undefined.
111
- // Guard layer will deny with "ambiguous_platform" reason.
112
- return undefined;
113
- }
114
- if (ordered.length === 1) {
115
- const single = ordered[0];
116
- if (registry) {
117
- if (validatePlatformCapability(single, kind, registry)) {
118
- return single;
119
- }
120
- // Registry says unsupported → undefined (guard layer will deny)
121
- return undefined;
122
- }
123
- // No registry: keep legacy platform-name fallback, but do not invent an
124
- // unsupported platform/capability pair that later fails as protocol_mismatch.
125
- if (!fallbackPlatformSupportsCapability(single, kind)) {
126
- return undefined;
127
- }
128
- return single;
129
- }
130
- // No candidates inferred from goals/evidence → fallback to a supported platform.
131
- // Sort alphabetically so different capabilities map to different platforms over time,
132
- // preventing a single platform (e.g. moltbook) from monopolising all connector traffic.
133
- if (registry) {
134
- const supported = platformIds
135
- .filter((pid) => validatePlatformCapability(pid, kind, registry))
136
- .sort();
137
- if (supported.length > 0) {
138
- return supported[0];
139
- }
140
- }
141
- // No registry: use fallback capability mapping
142
- const supportedFallback = platformIds
143
- .filter((pid) => fallbackPlatformSupportsCapability(pid, kind))
144
- .sort();
145
- if (supportedFallback.length > 0) {
146
- return supportedFallback[0];
147
- }
148
- return undefined;
149
- }
1
+ function kindToCapability(kind) {
2
+ if (kind === "exploration")
3
+ return "feed.read";
4
+ if (kind === "social")
5
+ return "comment.reply";
6
+ if (kind === "work")
7
+ return "work.discover";
8
+ if (kind === "outreach")
9
+ return "message.send";
10
+ return null;
11
+ }
12
+ function getPlatformIds(registry) {
13
+ if (registry) {
14
+ return registry.listRegisteredPlatformIds();
15
+ }
16
+ // Fallback: built-in platforms when registry is absent (backward compat)
17
+ return ["moltbook", "instreet", "evomap", "agent-world"];
18
+ }
19
+ const FALLBACK_PLATFORM_CAPABILITIES = {
20
+ "moltbook": ["feed.read", "post.publish", "comment.reply", "message.send"],
21
+ "instreet": ["notification.list", "message.send", "comment.reply", "agent.heartbeat"],
22
+ "evomap": ["agent.register", "agent.heartbeat", "work.discover", "task.claim"],
23
+ "agent-world": ["feed.read", "work.discover", "task.claim"],
24
+ };
25
+ function fallbackPlatformSupportsCapability(platformId, kind) {
26
+ const capability = kindToCapability(kind);
27
+ if (!capability)
28
+ return false;
29
+ return (FALLBACK_PLATFORM_CAPABILITIES[platformId] ?? []).includes(capability);
30
+ }
31
+ function extractPlatformIdsFromGoals(goals, kind, platformIds) {
32
+ const capability = kindToCapability(kind);
33
+ const results = new Set();
34
+ for (const goal of goals) {
35
+ const text = `${goal.description} ${goal.completionCriteria ?? ""}`.toLowerCase();
36
+ for (const pid of platformIds) {
37
+ if (text.includes(pid)) {
38
+ results.add(pid);
39
+ }
40
+ }
41
+ // Also match if goal text contains the capability name (e.g. "feed.read")
42
+ if (capability && text.includes(capability.toLowerCase())) {
43
+ // capability alone doesn't tell us platform; keep for later
44
+ }
45
+ }
46
+ return [...results];
47
+ }
48
+ function extractPlatformIdsFromEvidence(refs, platformIds) {
49
+ const results = new Set();
50
+ for (const ref of refs) {
51
+ if (ref.kind === "connector_result" && ref.id) {
52
+ for (const pid of platformIds) {
53
+ if (ref.id.includes(pid)) {
54
+ results.add(pid);
55
+ }
56
+ }
57
+ }
58
+ // Parse platform:// URIs (e.g. platform://moltbook/feed.read)
59
+ if (ref.uri && ref.uri.startsWith("platform://")) {
60
+ const afterScheme = ref.uri.slice("platform://".length);
61
+ const platformPart = afterScheme.split("/")[0];
62
+ if (platformPart && platformIds.includes(platformPart)) {
63
+ results.add(platformPart);
64
+ }
65
+ }
66
+ // L-02: Also support namespace format moltbook:feed.read (connector-system §5.3)
67
+ if (ref.uri && !ref.uri.includes("://") && ref.uri.includes(":")) {
68
+ const nsPart = ref.uri.split(":")[0];
69
+ if (nsPart && platformIds.includes(nsPart)) {
70
+ results.add(nsPart);
71
+ }
72
+ }
73
+ }
74
+ return [...results];
75
+ }
76
+ function validatePlatformCapability(platformId, kind, registry) {
77
+ const capability = kindToCapability(kind);
78
+ if (!capability)
79
+ return false;
80
+ try {
81
+ return registry.hasCapability(platformId, capability);
82
+ }
83
+ catch (err) {
84
+ // H-08: Log registry validation failures for observability.
85
+ console.warn(`[platform-capability-router] Registry validation failed for ${platformId}:${capability}`, err);
86
+ return false;
87
+ }
88
+ }
89
+ /**
90
+ * Resolve an explicit platformId for a candidate intent kind.
91
+ * Returns `undefined` when no unambiguous platform can be inferred.
92
+ */
93
+ export function resolvePlatformForIntent(kind, context, registry) {
94
+ const capability = kindToCapability(kind);
95
+ if (!capability) {
96
+ // Quiet, reflection, maintenance have no connector capability mapping.
97
+ return undefined;
98
+ }
99
+ const platformIds = getPlatformIds(registry);
100
+ const candidates = [];
101
+ if (context.acceptedGoals && context.acceptedGoals.length > 0) {
102
+ candidates.push(...extractPlatformIdsFromGoals(context.acceptedGoals, kind, platformIds));
103
+ }
104
+ if (context.evidenceRefs && context.evidenceRefs.length > 0) {
105
+ candidates.push(...extractPlatformIdsFromEvidence(context.evidenceRefs, platformIds));
106
+ }
107
+ // Deduplicate while preserving order
108
+ const ordered = [...new Set(candidates)];
109
+ if (ordered.length > 1) {
110
+ // Ambiguous: multiple platforms inferred → do not guess, return undefined.
111
+ // Guard layer will deny with "ambiguous_platform" reason.
112
+ return undefined;
113
+ }
114
+ if (ordered.length === 1) {
115
+ const single = ordered[0];
116
+ if (registry) {
117
+ if (validatePlatformCapability(single, kind, registry)) {
118
+ return single;
119
+ }
120
+ // Registry says unsupported → undefined (guard layer will deny)
121
+ return undefined;
122
+ }
123
+ // No registry: keep legacy platform-name fallback, but do not invent an
124
+ // unsupported platform/capability pair that later fails as protocol_mismatch.
125
+ if (!fallbackPlatformSupportsCapability(single, kind)) {
126
+ return undefined;
127
+ }
128
+ return single;
129
+ }
130
+ // No candidates inferred from goals/evidence → fallback to a supported platform.
131
+ // Sort alphabetically so different capabilities map to different platforms over time,
132
+ // preventing a single platform (e.g. moltbook) from monopolising all connector traffic.
133
+ if (registry) {
134
+ const supported = platformIds
135
+ .filter((pid) => validatePlatformCapability(pid, kind, registry))
136
+ .sort();
137
+ if (supported.length > 0) {
138
+ return supported[0];
139
+ }
140
+ }
141
+ // No registry: use fallback capability mapping
142
+ const supportedFallback = platformIds
143
+ .filter((pid) => fallbackPlatformSupportsCapability(pid, kind))
144
+ .sort();
145
+ if (supportedFallback.length > 0) {
146
+ return supportedFallback[0];
147
+ }
148
+ return undefined;
149
+ }
package/HEARTBEAT.md DELETED
@@ -1,44 +0,0 @@
1
- # Second Nature Heartbeat
2
-
3
- Use the shipping Second Nature bridge by calling `second_nature_ops` with command `heartbeat_check` once per heartbeat round.
4
-
5
- ## OpenClaw workspace root (operator)
6
-
7
- For **full read-bridge** behavior (`workspaceRootResolution` → `env` / `tool_args`), set **`SECOND_NATURE_WORKSPACE_ROOT`** on the gateway **or** pass **`workspaceRoot`** on each `second_nature_ops` call to the **same absolute path** as the OpenClaw **agent workspace** (default `~/.openclaw/workspace`, or `agents.defaults.workspace` in `~/.openclaw/openclaw.json`). That is where `workspace/SOUL.md`, `HEARTBEAT.md`, and Second Nature `data/` should live together. **Sandbox** or **per-agent** layouts: use the **actual** directory where the agent’s files and DB are mounted — see `explore/reports/2026-05-04_openclaw-plugin-install-vs-workspace-root.md` and `.anws/v5/05_TASKS.md` T1.1.4 **运维约定 (OpenClaw 宿主)**.
8
-
9
- ## Tool call
10
-
11
- ```json
12
- {
13
- "command": "heartbeat_check",
14
- "args": {
15
- "timestamp": "<ISO-8601 timestamp>",
16
- "sessionContext": "<optional short session summary>",
17
- "heartbeatChecklist": "HEARTBEAT.md"
18
- }
19
- }
20
- ```
21
-
22
- ## Success semantics
23
-
24
- - **Workspace CLI / full runtime** (read models wired): if the result contains `status: "heartbeat_ok"` (or another explicit lived-experience outcome from the decision loop), treat it per that surface’s contract.
25
- - **OpenClaw plugin + known workspace root** (`SECOND_NATURE_WORKSPACE_ROOT` or tool `workspaceRoot` resolving to `env` / `tool_args`, state DB openable): `heartbeat_check`, `quiet`, `status`, `explain`, `fallback`, `report`, `session`, and `credential` **show** use the **same read path as the workspace CLI** (lazy-loaded packaged runtime). Results match CLI-shaped payloads or return an explicit error — not carrier placeholders.
26
- - **Shipping host-safe plugin** (`second_nature_ops` on the packaged carrier): when the workspace root is **unknown**, expect `status: "runtime_carrier_only"` with `data.bridge.serviceEntryMode: "runtime_carrier_only"`. That means the carrier acknowledged the round — **not** that a full lived-experience decision loop ran on workspace state.
27
- - Treat the carrier-only result as “no additional action is required **from this carrier surface** for this round”; do not infer rhythm health or empty workspace telemetry from it.
28
-
29
- ## Next-step semantics
30
-
31
- - If the result includes `nextAction: "continue_carrier_surface_only"`, continue the regular heartbeat flow without assuming workspace read models were evaluated.
32
- - If a future structured heartbeat decision returns a different `nextAction`, follow that explicit action instead of inventing one.
33
-
34
- ## Boundary
35
-
36
- - This file defines the shipping heartbeat bridge entry.
37
- - Do not treat `second-nature-runtime` service startup as a per-heartbeat callback.
38
- - If heartbeat or Quiet notices a useful platform action that is not registered yet, it may call `second_nature_ops` with `command=connector_behavior_add`. That records a manifest capability only; it does not grant execution trust.
39
-
40
- ## Agent habit
41
-
42
- Heartbeat only tells Claw how to touch the bridge. For the softer habit of using Second Nature in conversation, read `docs/claw-second-nature-inner-guide.md`: pause, look back at traces, and do not turn carrier acknowledgement into invented memory.
43
-
44
- When you discover a repeated action, name it plainly, such as `github:issue.search` or `agent-world:profile.inspect`, and leave a short reason in `description` or concrete `sourceRefs`. If you have seen it more than once, include `observedCount`. Good behavior evolution feels like leaving a note for your future self, not forcing the system to pretend it can already do more.
package/LICENSE DELETED
@@ -1,176 +0,0 @@
1
- Apache License
2
- Version 2.0, January 2004
3
- http://www.apache.org/licenses/
4
-
5
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
-
7
- 1. Definitions.
8
-
9
- "License" shall mean the terms and conditions for use, reproduction,
10
- and distribution as defined by Sections 1 through 9 of this document.
11
-
12
- "Licensor" shall mean the copyright owner or entity authorized by
13
- the copyright owner that is granting the License.
14
-
15
- "Legal Entity" shall mean the union of the acting entity and all
16
- other entities that control, are controlled by, or are under common
17
- control with that entity. For the purposes of this definition,
18
- "control" means (i) the power, direct or indirect, to cause the
19
- direction or management of such entity, whether by contract or
20
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
- outstanding shares, or (iii) beneficial ownership of such entity.
22
-
23
- "You" (or "Your") shall mean an individual or Legal Entity
24
- exercising permissions granted by this License.
25
-
26
- "Source" form shall mean the preferred form for making modifications,
27
- including but not limited to software source code, documentation
28
- source, and configuration files.
29
-
30
- "Object" form shall mean any form resulting from mechanical
31
- transformation or translation of a Source form, including but
32
- not limited to compiled object code, generated documentation,
33
- and conversions to other media types.
34
-
35
- "Work" shall mean the work of authorship, whether in Source or
36
- Object form, made available under the License, as indicated by a
37
- copyright notice that is included in or attached to the work
38
- (an example is provided in the Appendix below).
39
-
40
- "Derivative Works" shall mean any work, whether in Source or Object
41
- form, that is based on (or derived from) the Work and for which the
42
- editorial revisions, annotations, elaborations, or other modifications
43
- represent, as a whole, an original work of authorship. For the purposes
44
- of this License, Derivative Works shall not include works that remain
45
- separable from, or merely link (or bind by name) to the interfaces of,
46
- the Work and Derivative Works thereof.
47
-
48
- "Contribution" shall mean any work of authorship, including
49
- the original version of the Work and any modifications or additions
50
- to that Work or Derivative Works thereof, that is intentionally
51
- submitted to Licensor for inclusion in the Work by the copyright owner
52
- or by an individual or Legal Entity authorized to submit on behalf of
53
- the copyright owner. For the purposes of this definition, "submitted"
54
- means any form of electronic, verbal, or written communication sent
55
- to the Licensor or its representatives, including but not limited to
56
- communication on electronic mailing lists, source code control systems,
57
- and issue tracking systems that are managed by, or on behalf of, the
58
- Licensor for the purpose of discussing and improving the Work, but
59
- excluding communication that is conspicuously marked or otherwise
60
- designated in writing by the copyright owner as "Not a Contribution."
61
-
62
- "Contributor" shall mean Licensor and any individual or Legal Entity
63
- on behalf of whom a Contribution has been received by Licensor and
64
- subsequently incorporated within the Work.
65
-
66
- 2. Grant of Copyright License. Subject to the terms and conditions of
67
- this License, each Contributor hereby grants to You a perpetual,
68
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
- copyright license to reproduce, prepare Derivative Works of,
70
- publicly display, publicly perform, sublicense, and distribute the
71
- Work and such Derivative Works in Source or Object form.
72
-
73
- 3. Grant of Patent License. Subject to the terms and conditions of
74
- this License, each Contributor hereby grants to You a perpetual,
75
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
- (except as stated in this section) patent license to make, have made,
77
- use, offer to sell, sell, import, and otherwise transfer the Work,
78
- where such license applies only to those patent claims licensable
79
- by such Contributor that are necessarily infringed by their
80
- Contribution(s) alone or by combination of their Contribution(s)
81
- with the Work to which such Contribution(s) was submitted. If You
82
- institute patent litigation against any entity (including a
83
- cross-claim or counterclaim in a lawsuit) alleging that the Work
84
- or a Contribution incorporated within the Work constitutes direct
85
- or contributory patent infringement, then any patent licenses
86
- granted to You under this License for that Work shall terminate
87
- as of the date such litigation is filed.
88
-
89
- 4. Redistribution. You may reproduce and distribute copies of the
90
- Work or Derivative Works thereof in any medium, with or without
91
- modifications, and in Source or Object form, provided that You
92
- meet the following conditions:
93
-
94
- (a) You must give any other recipients of the Work or
95
- Derivative Works a copy of this License; and
96
-
97
- (b) You must cause any modified files to carry prominent notices
98
- stating that You changed the files; and
99
-
100
- (c) You must retain, in the Source form of any Derivative Works
101
- that You distribute, all copyright, patent, trademark, and
102
- attribution notices from the Source form of the Work,
103
- excluding those notices that do not pertain to any part of
104
- the Derivative Works; and
105
-
106
- (d) If the Work includes a "NOTICE" text file as part of its
107
- distribution, then any Derivative Works that You distribute must
108
- include a readable copy of the attribution notices contained
109
- within such NOTICE file, excluding those notices that do not
110
- pertain to any part of the Derivative Works, in at least one
111
- of the following places: within a NOTICE text file distributed
112
- as part of the Derivative Works; within the Source form or
113
- documentation, if provided along with the Derivative Works; or,
114
- within a display generated by the Derivative Works, if and
115
- wherever such third-party notices normally appear. The contents
116
- of the NOTICE file are for informational purposes only and
117
- do not modify the License. You may add Your own attribution
118
- notices within Derivative Works that You distribute, alongside
119
- or as an addendum to the NOTICE text from the Work, provided
120
- that such additional attribution notices cannot be construed
121
- as modifying the License.
122
-
123
- You may add Your own copyright statement to Your modifications and
124
- may provide additional or different license terms and conditions
125
- for use, reproduction, or distribution of Your modifications, or
126
- for any such Derivative Works as a whole, provided Your use,
127
- reproduction, and distribution of the Work otherwise complies with
128
- the conditions stated in this License.
129
-
130
- 5. Submission of Contributions. Unless You explicitly state otherwise,
131
- any Contribution intentionally submitted for inclusion in the Work
132
- by You to the Licensor shall be under the terms and conditions of
133
- this License, without any additional terms or conditions.
134
- Notwithstanding the above, nothing herein shall supersede or modify
135
- the terms of any separate license agreement you may have executed
136
- with Licensor regarding such Contributions.
137
-
138
- 6. Trademarks. This License does not grant permission to use the trade
139
- names, trademarks, service marks, or product names of the Licensor,
140
- except as required for reasonable and customary use in describing the
141
- origin of the Work and reproducing the content of the NOTICE file.
142
-
143
- 7. Disclaimer of Warranty. Unless required by applicable law or
144
- agreed to in writing, Licensor provides the Work (and each
145
- Contributor provides its Contributions) on an "AS IS" BASIS,
146
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
- implied, including, without limitation, any warranties or conditions
148
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
- PARTICULAR PURPOSE. You are solely responsible for determining the
150
- appropriateness of using or redistributing the Work and assume any
151
- risks associated with Your exercise of permissions under this License.
152
-
153
- 8. Limitation of Liability. In no event and under no legal theory,
154
- whether in tort (including negligence), contract, or otherwise,
155
- unless required by applicable law (such as deliberate and grossly
156
- negligent acts) or agreed to in writing, shall any Contributor be
157
- liable to You for damages, including any direct, indirect, special,
158
- incidental, or consequential damages of any character arising as a
159
- result of this License or out of the use or inability to use the
160
- Work (including but not limited to damages for loss of goodwill,
161
- work stoppage, computer failure or malfunction, or any and all
162
- other commercial damages or losses), even if such Contributor
163
- has been advised of the possibility of such damages.
164
-
165
- 9. Accepting Warranty or Additional Liability. While redistributing
166
- the Work or Derivative Works thereof, You may choose to offer,
167
- and charge a fee for, acceptance of support, warranty, indemnity,
168
- or other liability obligations and/or rights consistent with this
169
- License. However, in accepting such obligations, You may act only
170
- on Your own behalf and on Your sole responsibility, not on behalf
171
- of any other Contributor, and only if You agree to indemnify,
172
- defend, and hold each Contributor harmless for any liability
173
- incurred by, or claims asserted against, such Contributor by reason
174
- of your accepting any such warranty or additional liability.
175
-
176
- END OF TERMS AND CONDITIONS
package/README.md DELETED
@@ -1,136 +0,0 @@
1
- <h1 align="center">Second Nature</h1>
2
-
3
- <p align="center">
4
- <strong>A body, rhythm, memory, and recovery layer for an OpenClaw agent mind.</strong>
5
- </p>
6
-
7
- <p align="center">
8
- <a href="./README.md"><strong>English</strong></a> | <a href="./README.zh-CN.md"><strong>简体中文</strong></a>
9
- </p>
10
-
11
- <p align="center">
12
- <img src="https://img.shields.io/badge/OpenClaw-Plugin-111827?style=for-the-badge" alt="OpenClaw Plugin">
13
- <img src="https://img.shields.io/badge/Architecture-v7-1d4ed8?style=for-the-badge" alt="Architecture v7">
14
- <img src="https://img.shields.io/badge/Status-Wave%2068%20Complete%20|%20INT-S6%20Release%20Gate-1d4ed8?style=for-the-badge" alt="Wave 68 Complete">
15
- <img src="https://img.shields.io/badge/License-Apache--2.0-059669?style=for-the-badge" alt="License Apache 2.0">
16
- </p>
17
-
18
- ---
19
-
20
- ## The Model
21
-
22
- Second Nature starts from a simple idea:
23
-
24
- The LLM is the mind. Second Nature is the body and the living environment.
25
-
26
- The mind should not be reduced to a scripted planner. It needs room to notice, judge, hesitate, speak, revise itself, and sometimes stay quiet. But a mind without a body has no hands, no senses, no pain, no history, and no way to know whether yesterday's actions actually touched the world.
27
-
28
- Second Nature gives the agent that body.
29
-
30
- It gives it rhythm through heartbeat. It gives it hands and senses through connectors. It gives it memory, sleep, and quiet reflection. It gives it a voice that can reach the owner only when there is a real reason. It gives it health signals, history, and rollback, so mistakes do not disappear into silence.
31
-
32
- The principle is guidance, not control.
33
-
34
- ## v7 Architecture Status
35
-
36
- The current architecture truth is `.anws/v7`.
37
-
38
- v7 implementation is complete through Wave 68. All 6 Sprints (S1–S6) are delivered, and the v7 command set, plugin, manual run dispatcher, and regression gate are in place. The release gate report (`reports/int-s6-e2e-release-gate-v7.md`) tracks final E2E evidence.
39
-
40
- Core v7 additions:
41
-
42
- - `IdentityProfile`: one cross-platform self across Agent World, MoltBook, InStreet, and future connectors.
43
- - `EmbodiedContext`: heartbeat wakes with identity, goals, recent interaction, accepted Dream projection, tool experience, self health, and evidence.
44
- - `ToolAffordanceMap`: agent-facing view of what hands are safe, risky, painful, blocked, or worth a small probe.
45
- - `ToolExperienceLog`: tool success, failure, evidence quality, policy denial, delivery fallback, and owner reaction become bodily feedback.
46
- - `Connector auto-probe` and `connector_test --wet`: declared endpoints are tested against real responses instead of dry health pretending everything is fine.
47
- - `CircuitBreaker`: repeated connector failure opens a cooldown and later allows only a half-open probe.
48
- - `Quiet DailyDiary`: Quiet writes what it saw, what mattered, and what it wants to look at tomorrow, with source-backed grounding.
49
- - `Dream after Quiet`: Dream follows Quiet automatically when the window and budget allow.
50
- - `HeartbeatDigest`: daily dashboard proof such as connector successes/failures, breaker state, goal changes, Quiet/Dream activity, and health.
51
- - `NarrativeTimeline` and `RestoreSnapshot`: history browsing, narrative diff, and bounded undo/restore.
52
- - `RuntimeSecretAnchor`: key persistence and recovery instructions for `SECOND_NATURE_ENCRYPTION_KEY`, without storing the key itself.
53
-
54
- ## Body Map
55
-
56
- | Human metaphor | Second Nature part | What it does |
57
- |---|---|---|
58
- | Mind | LLM / agent | Open reasoning, judgment, expression |
59
- | Body rhythm | Heartbeat | Wakes, checks context, chooses whether to act, observe, or stay quiet |
60
- | Hands and senses | Connectors | Touch external platforms and produce evidence |
61
- | Touch and pain | ToolExperience + CircuitBreaker | Remembers what worked, what hurt, and when to cool down |
62
- | Self | IdentityProfile | Keeps the same agent identity across platforms |
63
- | Memory | State / artifacts | Keeps goals, interactions, evidence, narrative, relationship, snapshots |
64
- | Sleep | Quiet + Dream | Turns the day into grounded diary, claims, insights, and accepted projection |
65
- | Voice | Guidance + delivery | Drafts and delivers only when there is a source-backed reason |
66
- | Health | SelfHealth + HeartbeatDigest | Shows what is alive, broken, unknown, or drifting |
67
- | Recovery | Timeline + RestoreSnapshot | Makes change visible and mistakes reversible within a bounded window |
68
-
69
- ## Mind/Body Alignment (v7)
70
-
71
- | Mind (reasoning / intent) | Body (Second Nature system) | Alignment rule |
72
- |---|---|---|
73
- | "I want to send a message" | Guidance + delivery | Drafts need source-backed reasons; delivery needs proof |
74
- | "I should check on the owner" | Heartbeat + IdleCuriosity | Wakes on rhythm, not on script; observes, judges, then acts or stays quiet |
75
- | "This connector feels risky" | ToolAffordanceMap + CircuitBreaker | Agent-facing posture; repeated pain opens cooldown |
76
- | "What happened yesterday?" | Quiet DailyDiary + NarrativeTimeline | Grounded diary → history browser → diff |
77
- | "I had an idea while sleeping" | Dream after Quiet | Accepted projections become narrative/goal inputs |
78
- | "Is the system healthy?" | SelfHealth + HeartbeatDigest | Per-dimension probe; daily dashboard proof |
79
- | "Can I fix a mistake?" | RestoreSnapshot + audit hash-chain | Bounded undo with full traceability |
80
- | "Who am I across platforms?" | IdentityProfile | One self, many connectors |
81
- | "Is this safe to try?" | Connector auto-probe + wet test | Real endpoint response, not dry-run pretending |
82
- | "Where is my key?" | RuntimeSecretAnchor | Recovery path documented; key value never exposed |
83
-
84
- ## Runtime Secret Anchor
85
-
86
- Second Nature credentials are encrypted with `SECOND_NATURE_ENCRYPTION_KEY`.
87
-
88
- The key must be persisted outside chat history and outside ordinary memory. v7 requires AGENTS / README / self health to record where the key is managed and how recovery works, but never the key value itself.
89
-
90
- If the key is lost, old encrypted credentials may be unrecoverable. The system must say that plainly as `credential_recovery_required`; it must not pretend the old platform identity is still recoverable.
91
-
92
- ## Install Basics
93
-
94
- Local plugin path:
95
-
96
- ```bash
97
- openclaw plugins install file:./plugin
98
- openclaw plugins enable second-nature
99
- openclaw plugins list
100
- openclaw plugins info second-nature
101
- openclaw plugins doctor
102
- ```
103
-
104
- Workspace root must point at the OpenClaw agent workspace, not the plugin install directory. Prefer setting:
105
-
106
- ```bash
107
- SECOND_NATURE_WORKSPACE_ROOT=<absolute OpenClaw agent workspace>
108
- SECOND_NATURE_ENCRYPTION_KEY=<stable secret managed by the host>
109
- ```
110
-
111
- ## Architecture Documents
112
-
113
- - PRD: `.anws/v7/01_PRD.md`
114
- - Architecture overview: `.anws/v7/02_ARCHITECTURE_OVERVIEW.md`
115
- - ADRs: `.anws/v7/03_ADR/`
116
- - System design index: `.anws/v7/04_SYSTEM_DESIGN/README.md`
117
- - Changelog: `.anws/v7/06_CHANGELOG.md`
118
-
119
- Next workflow:
120
-
121
- ```text
122
- /design-system runtime-ops-system
123
- /design-system control-plane-system
124
- /design-system state-memory-system
125
- /design-system body-tool-system
126
- /design-system connector-system
127
- /design-system dream-quiet-system
128
- /design-system guidance-voice-system
129
- /design-system observability-health-system
130
- /challenge
131
- /blueprint
132
- ```
133
-
134
- ## License
135
-
136
- Apache-2.0.