@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.
- package/SKILL.md +22 -320
- package/{docs/claw-second-nature-inner-guide.md → agent-inner-guide.md} +43 -0
- package/openclaw.plugin.json +29 -0
- package/package.json +32 -61
- package/{dist/src → runtime}/cli/commands/index.js +325 -325
- package/{dist/src → runtime}/cli/ops/heartbeat-surface.d.ts +84 -84
- package/{dist/src → runtime}/cli/ops/heartbeat-surface.js +100 -100
- package/{dist/src → runtime}/cli/ops/ops-router.js +1482 -1482
- package/{dist/src → runtime}/cli/ops/workspace-heartbeat-runner.d.ts +85 -85
- package/{dist/src → runtime}/cli/ops/workspace-heartbeat-runner.js +242 -242
- package/{dist/src → runtime}/connectors/base/contract.d.ts +111 -111
- package/{dist/src → runtime}/connectors/base/failure-taxonomy.d.ts +13 -13
- package/{dist/src → runtime}/connectors/base/failure-taxonomy.js +186 -186
- package/{dist/src → runtime}/connectors/base/map-life-evidence.js +137 -137
- package/{dist/src → runtime}/connectors/base/policy-layer.js +202 -202
- package/{dist/src → runtime}/connectors/manifest/manifest-schema.d.ts +152 -152
- package/{dist/src → runtime}/connectors/manifest/manifest-schema.js +54 -54
- package/{dist/src → runtime}/connectors/services/connector-executor-adapter.d.ts +20 -20
- package/{dist/src → runtime}/connectors/services/connector-executor-adapter.js +645 -645
- package/{dist/src → runtime}/core/second-nature/heartbeat/goal-lifecycle-policy.d.ts +24 -24
- package/{dist/src → runtime}/core/second-nature/heartbeat/goal-lifecycle-policy.js +61 -61
- package/{dist/src → runtime}/core/second-nature/heartbeat/heartbeat-loop.d.ts +97 -97
- package/{dist/src → runtime}/core/second-nature/heartbeat/heartbeat-loop.js +397 -397
- package/{dist/src → runtime}/core/second-nature/orchestrator/platform-capability-router.js +149 -149
- package/HEARTBEAT.md +0 -44
- package/LICENSE +0 -176
- package/README.md +0 -136
- package/README.zh-CN.md +0 -120
- package/dist/data/observability.db +0 -0
- package/dist/data/state.db +0 -0
- package/dist/plugin/index.d.ts +0 -31
- package/dist/plugin/workspace-ops-bridge.d.ts +0 -15
- package/dist/scripts/build-plugin-package.d.ts +0 -12
- package/dist/scripts/build-plugin-package.js +0 -220
- package/dist/scripts/build-plugin-runtime.d.ts +0 -10
- package/dist/scripts/build-plugin-runtime.js +0 -198
- package/dist/scripts/packaging-feasibility-poc.d.ts +0 -1
- package/dist/scripts/packaging-feasibility-poc.js +0 -127
- package/dist/scripts/plugin-smoke-check.d.ts +0 -1
- package/dist/scripts/plugin-smoke-check.js +0 -124
- package/dist/src/cli/action-bridge.d.ts +0 -11
- package/dist/src/cli/index.d.ts +0 -65
- package/dist/tests/integration/cli/cli-ops-surface.test.d.ts +0 -1
- package/dist/tests/integration/cli/cli-ops-surface.test.js +0 -380
- package/dist/tests/integration/cli/heartbeat-surface-workspace.test.d.ts +0 -1
- package/dist/tests/integration/cli/heartbeat-surface-workspace.test.js +0 -61
- package/dist/tests/integration/cli/host-capability-probe.test.d.ts +0 -1
- package/dist/tests/integration/cli/host-capability-probe.test.js +0 -37
- package/dist/tests/integration/cli/host-smoke-heartbeat-tool.test.d.ts +0 -1
- package/dist/tests/integration/cli/host-smoke-heartbeat-tool.test.js +0 -34
- package/dist/tests/integration/cli/plugin-packaging-walkthrough.test.d.ts +0 -1
- package/dist/tests/integration/cli/plugin-packaging-walkthrough.test.js +0 -79
- package/dist/tests/integration/cli/plugin-runtime-registration.test.d.ts +0 -1
- package/dist/tests/integration/cli/plugin-runtime-registration.test.js +0 -285
- package/dist/tests/integration/cli/plugin-workspace-ops-bridge.test.d.ts +0 -1
- package/dist/tests/integration/cli/plugin-workspace-ops-bridge.test.js +0 -487
- package/dist/tests/integration/cli/t1-2-1-explain-read-models.test.d.ts +0 -1
- package/dist/tests/integration/cli/t1-2-1-explain-read-models.test.js +0 -58
- package/dist/tests/integration/cli/t1-2-1-narrative-command.test.d.ts +0 -1
- package/dist/tests/integration/cli/t1-2-1-narrative-command.test.js +0 -194
- package/dist/tests/integration/cli/t1-2-2-dream-recent.test.d.ts +0 -1
- package/dist/tests/integration/cli/t1-2-2-dream-recent.test.js +0 -100
- package/dist/tests/integration/cli/t1-2-3-status-observability-writeback.test.d.ts +0 -1
- package/dist/tests/integration/cli/t1-2-3-status-observability-writeback.test.js +0 -71
- package/dist/tests/integration/cli/t1-2-4-quiet-report-read-canonical.test.d.ts +0 -1
- package/dist/tests/integration/cli/t1-2-4-quiet-report-read-canonical.test.js +0 -206
- package/dist/tests/integration/cli/t1-2-5-cycle-recent.test.d.ts +0 -1
- package/dist/tests/integration/cli/t1-2-5-cycle-recent.test.js +0 -156
- package/dist/tests/integration/cli/t1-2-5-status-delivery-posture-audit-store.test.d.ts +0 -1
- package/dist/tests/integration/cli/t1-2-5-status-delivery-posture-audit-store.test.js +0 -95
- package/dist/tests/integration/cli/t1-2-6-policy-show-non-shell.test.d.ts +0 -1
- package/dist/tests/integration/cli/t1-2-6-policy-show-non-shell.test.js +0 -74
- package/dist/tests/integration/cli/t1-2-6-status-aggregate.test.d.ts +0 -1
- package/dist/tests/integration/cli/t1-2-6-status-aggregate.test.js +0 -223
- package/dist/tests/integration/cli/t1-2-7-audit-command-minimal-closure.test.d.ts +0 -1
- package/dist/tests/integration/cli/t1-2-7-audit-command-minimal-closure.test.js +0 -101
- package/dist/tests/integration/cli/t1-2-8-capability-probe-ops-surface.test.d.ts +0 -1
- package/dist/tests/integration/cli/t1-2-8-capability-probe-ops-surface.test.js +0 -74
- package/dist/tests/integration/cli/t1-2-9-decision-denied-not-degraded.test.d.ts +0 -1
- package/dist/tests/integration/cli/t1-2-9-decision-denied-not-degraded.test.js +0 -79
- package/dist/tests/integration/cli/t1-4-1-runtime-secret-bootstrap.test.d.ts +0 -1
- package/dist/tests/integration/cli/t1-4-1-runtime-secret-bootstrap.test.js +0 -139
- package/dist/tests/integration/cli/t1-4-2-activation-ux-contract.test.d.ts +0 -1
- package/dist/tests/integration/cli/t1-4-2-activation-ux-contract.test.js +0 -143
- package/dist/tests/integration/cli/t2-2-2-snapshot-life-evidence.test.d.ts +0 -1
- package/dist/tests/integration/cli/t2-2-2-snapshot-life-evidence.test.js +0 -116
- package/dist/tests/integration/cli/t3-3-2-near-real-smoke-cli-bridge.test.d.ts +0 -1
- package/dist/tests/integration/cli/t3-3-2-near-real-smoke-cli-bridge.test.js +0 -69
- package/dist/tests/integration/connectors/connector-base.test.d.ts +0 -1
- package/dist/tests/integration/connectors/connector-base.test.js +0 -211
- package/dist/tests/integration/connectors/connector-executor-adapter-honest-failure.test.d.ts +0 -1
- package/dist/tests/integration/connectors/connector-executor-adapter-honest-failure.test.js +0 -311
- package/dist/tests/integration/connectors/credential-optional-regression.test.d.ts +0 -1
- package/dist/tests/integration/connectors/credential-optional-regression.test.js +0 -117
- package/dist/tests/integration/connectors/declarative-http-runner.test.d.ts +0 -7
- package/dist/tests/integration/connectors/declarative-http-runner.test.js +0 -229
- package/dist/tests/integration/connectors/evomap-secret-port.test.d.ts +0 -1
- package/dist/tests/integration/connectors/evomap-secret-port.test.js +0 -83
- package/dist/tests/integration/connectors/life-evidence-chain.test.d.ts +0 -1
- package/dist/tests/integration/connectors/life-evidence-chain.test.js +0 -188
- package/dist/tests/integration/connectors/moltbook-client.test.d.ts +0 -1
- package/dist/tests/integration/connectors/moltbook-client.test.js +0 -274
- package/dist/tests/integration/connectors/moltbook-mock-runner.test.d.ts +0 -7
- package/dist/tests/integration/connectors/moltbook-mock-runner.test.js +0 -108
- package/dist/tests/integration/connectors/near-real-connector-smoke.test.d.ts +0 -1
- package/dist/tests/integration/connectors/near-real-connector-smoke.test.js +0 -38
- package/dist/tests/integration/connectors/platform-adapters.test.d.ts +0 -1
- package/dist/tests/integration/connectors/platform-adapters.test.js +0 -189
- package/dist/tests/integration/connectors/policy-layer.test.d.ts +0 -1
- package/dist/tests/integration/connectors/policy-layer.test.js +0 -249
- package/dist/tests/integration/connectors/scriptable-node-e2e.test.d.ts +0 -1
- package/dist/tests/integration/connectors/scriptable-node-e2e.test.js +0 -228
- package/dist/tests/integration/connectors/t3-3-1-real-connector-evidence.test.d.ts +0 -1
- package/dist/tests/integration/connectors/t3-3-1-real-connector-evidence.test.js +0 -171
- package/dist/tests/integration/control-plane/_helpers/decision-cycle-harness.d.ts +0 -40
- package/dist/tests/integration/control-plane/_helpers/decision-cycle-harness.js +0 -116
- package/dist/tests/integration/control-plane/decision-loop-validation.test.d.ts +0 -1
- package/dist/tests/integration/control-plane/decision-loop-validation.test.js +0 -319
- package/dist/tests/integration/control-plane/delivery-failed-fallback.test.d.ts +0 -1
- package/dist/tests/integration/control-plane/delivery-failed-fallback.test.js +0 -118
- package/dist/tests/integration/control-plane/dream-projection-heartbeat.test.d.ts +0 -1
- package/dist/tests/integration/control-plane/dream-projection-heartbeat.test.js +0 -109
- package/dist/tests/integration/control-plane/effect-dispatcher.test.d.ts +0 -1
- package/dist/tests/integration/control-plane/effect-dispatcher.test.js +0 -157
- package/dist/tests/integration/control-plane/guidance-request.test.d.ts +0 -1
- package/dist/tests/integration/control-plane/guidance-request.test.js +0 -63
- package/dist/tests/integration/control-plane/heartbeat-executor.test.d.ts +0 -1
- package/dist/tests/integration/control-plane/heartbeat-executor.test.js +0 -363
- package/dist/tests/integration/control-plane/heartbeat-loop.test.d.ts +0 -1
- package/dist/tests/integration/control-plane/heartbeat-loop.test.js +0 -190
- package/dist/tests/integration/control-plane/heartbeat-quiet-orchestration.test.d.ts +0 -1
- package/dist/tests/integration/control-plane/heartbeat-quiet-orchestration.test.js +0 -133
- package/dist/tests/integration/control-plane/heartbeat-spine-integration.test.d.ts +0 -1
- package/dist/tests/integration/control-plane/heartbeat-spine-integration.test.js +0 -342
- package/dist/tests/integration/control-plane/heartbeat-spine.test.d.ts +0 -1
- package/dist/tests/integration/control-plane/heartbeat-spine.test.js +0 -216
- package/dist/tests/integration/control-plane/int-s3-outreach-delivery-quiet-closure.test.d.ts +0 -1
- package/dist/tests/integration/control-plane/int-s3-outreach-delivery-quiet-closure.test.js +0 -241
- package/dist/tests/integration/control-plane/outreach-resume.test.d.ts +0 -1
- package/dist/tests/integration/control-plane/outreach-resume.test.js +0 -158
- package/dist/tests/integration/control-plane/outreach-style.test.d.ts +0 -1
- package/dist/tests/integration/control-plane/outreach-style.test.js +0 -46
- package/dist/tests/integration/control-plane/quiet-reflection.test.d.ts +0 -1
- package/dist/tests/integration/control-plane/quiet-reflection.test.js +0 -73
- package/dist/tests/integration/control-plane/rhythm-intent-guard.test.d.ts +0 -1
- package/dist/tests/integration/control-plane/rhythm-intent-guard.test.js +0 -99
- package/dist/tests/integration/control-plane/run-heartbeat-cycle.test.d.ts +0 -1
- package/dist/tests/integration/control-plane/run-heartbeat-cycle.test.js +0 -80
- package/dist/tests/integration/control-plane/t2-3-1-outreach-v6.test.d.ts +0 -1
- package/dist/tests/integration/control-plane/t2-3-1-outreach-v6.test.js +0 -208
- package/dist/tests/integration/control-plane/t2-4-1-heartbeat-platform-intent.test.d.ts +0 -1
- package/dist/tests/integration/control-plane/t2-4-1-heartbeat-platform-intent.test.js +0 -156
- package/dist/tests/integration/control-plane/t2-4-2-source-backed-outreach-loop.test.d.ts +0 -1
- package/dist/tests/integration/control-plane/t2-4-2-source-backed-outreach-loop.test.js +0 -188
- package/dist/tests/integration/control-plane/v7c-evidence-body-feedback.test.d.ts +0 -11
- package/dist/tests/integration/control-plane/v7c-evidence-body-feedback.test.js +0 -213
- package/dist/tests/integration/control-plane/v7c-heartbeat-unlock-e2e.test.d.ts +0 -9
- package/dist/tests/integration/control-plane/v7c-heartbeat-unlock-e2e.test.js +0 -134
- package/dist/tests/integration/dream/quiet-dream-trigger.test.d.ts +0 -1
- package/dist/tests/integration/dream/quiet-dream-trigger.test.js +0 -86
- package/dist/tests/integration/dream/t7-1-1-dream-pipeline.test.d.ts +0 -1
- package/dist/tests/integration/dream/t7-1-1-dream-pipeline.test.js +0 -378
- package/dist/tests/integration/dream/t7-1-2-dream-scheduler.test.d.ts +0 -1
- package/dist/tests/integration/dream/t7-1-2-dream-scheduler.test.js +0 -124
- package/dist/tests/integration/dream/v7c-rhythm-loop.test.d.ts +0 -10
- package/dist/tests/integration/dream/v7c-rhythm-loop.test.js +0 -185
- package/dist/tests/integration/guidance/assembler-and-fallback.test.d.ts +0 -1
- package/dist/tests/integration/guidance/assembler-and-fallback.test.js +0 -86
- package/dist/tests/integration/guidance/outreach-draft-contract.test.d.ts +0 -1
- package/dist/tests/integration/guidance/outreach-draft-contract.test.js +0 -106
- package/dist/tests/integration/guidance/persona-selection.test.d.ts +0 -1
- package/dist/tests/integration/guidance/persona-selection.test.js +0 -70
- package/dist/tests/integration/guidance/template-review.test.d.ts +0 -1
- package/dist/tests/integration/guidance/template-review.test.js +0 -26
- package/dist/tests/integration/guidance/user-reply-continuity.test.d.ts +0 -1
- package/dist/tests/integration/guidance/user-reply-continuity.test.js +0 -96
- package/dist/tests/integration/guidance/v7c-guidance-chain.test.d.ts +0 -1
- package/dist/tests/integration/guidance/v7c-guidance-chain.test.js +0 -190
- package/dist/tests/integration/guidance/v7c-guidance-semantics.test.d.ts +0 -1
- package/dist/tests/integration/guidance/v7c-guidance-semantics.test.js +0 -146
- package/dist/tests/integration/observability/digest-delivery.test.d.ts +0 -14
- package/dist/tests/integration/observability/digest-delivery.test.js +0 -160
- package/dist/tests/integration/observability/evidence-query-engine.test.d.ts +0 -1
- package/dist/tests/integration/observability/evidence-query-engine.test.js +0 -219
- package/dist/tests/integration/observability/explain-query-export.test.d.ts +0 -1
- package/dist/tests/integration/observability/explain-query-export.test.js +0 -92
- package/dist/tests/integration/observability/guidance-audit.test.d.ts +0 -1
- package/dist/tests/integration/observability/guidance-audit.test.js +0 -55
- package/dist/tests/integration/observability/heartbeat-decision-record.test.d.ts +0 -1
- package/dist/tests/integration/observability/heartbeat-decision-record.test.js +0 -223
- package/dist/tests/integration/observability/heartbeat-narrative-trace.test.d.ts +0 -1
- package/dist/tests/integration/observability/heartbeat-narrative-trace.test.js +0 -230
- package/dist/tests/integration/observability/lived-experience-audit-chain.test.d.ts +0 -1
- package/dist/tests/integration/observability/lived-experience-audit-chain.test.js +0 -43
- package/dist/tests/integration/observability/observability-gates.test.d.ts +0 -1
- package/dist/tests/integration/observability/observability-gates.test.js +0 -224
- package/dist/tests/integration/observability/observability-retention-cleanup.test.d.ts +0 -1
- package/dist/tests/integration/observability/observability-retention-cleanup.test.js +0 -94
- package/dist/tests/integration/observability/observability-services.test.d.ts +0 -1
- package/dist/tests/integration/observability/observability-services.test.js +0 -219
- package/dist/tests/integration/observability/projections.test.d.ts +0 -1
- package/dist/tests/integration/observability/projections.test.js +0 -36
- package/dist/tests/integration/observability/t5-1-1-dream-trace-audit.test.d.ts +0 -1
- package/dist/tests/integration/observability/t5-1-1-dream-trace-audit.test.js +0 -115
- package/dist/tests/integration/plugin/plugin-registration.test.d.ts +0 -16
- package/dist/tests/integration/plugin/plugin-registration.test.js +0 -151
- package/dist/tests/integration/runtime-ops/commands.test.d.ts +0 -16
- package/dist/tests/integration/runtime-ops/commands.test.js +0 -662
- package/dist/tests/integration/s3-exit/int-s3-body-heartbeat.test.d.ts +0 -15
- package/dist/tests/integration/s3-exit/int-s3-body-heartbeat.test.js +0 -462
- package/dist/tests/integration/s5-exit/int-s5-observability.test.d.ts +0 -17
- package/dist/tests/integration/s5-exit/int-s5-observability.test.js +0 -402
- package/dist/tests/integration/state/t4-2-1-owner-reply-relationship-loop.test.d.ts +0 -1
- package/dist/tests/integration/state/t4-2-1-owner-reply-relationship-loop.test.js +0 -132
- package/dist/tests/integration/state/v7c-identity-goal-hygiene.test.d.ts +0 -9
- package/dist/tests/integration/state/v7c-identity-goal-hygiene.test.js +0 -240
- package/dist/tests/integration/storage/packaged-runtime-smoke.test.d.ts +0 -1
- package/dist/tests/integration/storage/packaged-runtime-smoke.test.js +0 -17
- package/dist/tests/integration/storage/persona-candidate-loader.test.d.ts +0 -1
- package/dist/tests/integration/storage/persona-candidate-loader.test.js +0 -23
- package/dist/tests/integration/storage/quiet-artifact-writer.test.d.ts +0 -1
- package/dist/tests/integration/storage/quiet-artifact-writer.test.js +0 -66
- package/dist/tests/integration/storage/repair-and-backup.test.d.ts +0 -1
- package/dist/tests/integration/storage/repair-and-backup.test.js +0 -125
- package/dist/tests/integration/storage/schema-migration.test.d.ts +0 -11
- package/dist/tests/integration/storage/schema-migration.test.js +0 -183
- package/dist/tests/integration/storage/storage-mode-smoke.test.d.ts +0 -1
- package/dist/tests/integration/storage/storage-mode-smoke.test.js +0 -18
- package/dist/tests/integration/storage/t4-1-5-memory-store-lifecycle.test.d.ts +0 -1
- package/dist/tests/integration/storage/t4-1-5-memory-store-lifecycle.test.js +0 -118
- package/dist/tests/unit/body/affordance-assembler.test.d.ts +0 -14
- package/dist/tests/unit/body/affordance-assembler.test.js +0 -259
- package/dist/tests/unit/body/affordance-context-scope.test.d.ts +0 -12
- package/dist/tests/unit/body/affordance-context-scope.test.js +0 -73
- package/dist/tests/unit/body/behavior-promotion-loop.test.d.ts +0 -15
- package/dist/tests/unit/body/behavior-promotion-loop.test.js +0 -130
- package/dist/tests/unit/body/circuit-breaker-manager.test.d.ts +0 -13
- package/dist/tests/unit/body/circuit-breaker-manager.test.js +0 -160
- package/dist/tests/unit/body/experience-writer.test.d.ts +0 -11
- package/dist/tests/unit/body/experience-writer.test.js +0 -77
- package/dist/tests/unit/body/pain-signal-query.test.d.ts +0 -11
- package/dist/tests/unit/body/pain-signal-query.test.js +0 -104
- package/dist/tests/unit/cli/connector-init-manifest.test.d.ts +0 -9
- package/dist/tests/unit/cli/connector-init-manifest.test.js +0 -68
- package/dist/tests/unit/cli/delivery-target-probe.test.d.ts +0 -1
- package/dist/tests/unit/cli/delivery-target-probe.test.js +0 -108
- package/dist/tests/unit/cli/host-capability.test.d.ts +0 -1
- package/dist/tests/unit/cli/host-capability.test.js +0 -50
- package/dist/tests/unit/cli/operator-fallback-view.test.d.ts +0 -1
- package/dist/tests/unit/cli/operator-fallback-view.test.js +0 -60
- package/dist/tests/unit/cli/runtime-artifact-boundary.test.d.ts +0 -1
- package/dist/tests/unit/cli/runtime-artifact-boundary.test.js +0 -57
- package/dist/tests/unit/cli/t1-2-3-connector-status.test.d.ts +0 -1
- package/dist/tests/unit/cli/t1-2-3-connector-status.test.js +0 -214
- package/dist/tests/unit/cli/t1-2-4-goal-command.test.d.ts +0 -1
- package/dist/tests/unit/cli/t1-2-4-goal-command.test.js +0 -207
- package/dist/tests/unit/cli/t1-3-1-connector-init.test.d.ts +0 -1
- package/dist/tests/unit/cli/t1-3-1-connector-init.test.js +0 -212
- package/dist/tests/unit/connectors/connector-manifest-and-evidence-map.test.d.ts +0 -1
- package/dist/tests/unit/connectors/connector-manifest-and-evidence-map.test.js +0 -71
- package/dist/tests/unit/connectors/effect-commit-ledger-sqlite.test.d.ts +0 -10
- package/dist/tests/unit/connectors/effect-commit-ledger-sqlite.test.js +0 -101
- package/dist/tests/unit/connectors/evomap-runner.test.d.ts +0 -1
- package/dist/tests/unit/connectors/evomap-runner.test.js +0 -136
- package/dist/tests/unit/connectors/execution-policy.test.d.ts +0 -1
- package/dist/tests/unit/connectors/execution-policy.test.js +0 -71
- package/dist/tests/unit/connectors/instreet-registration.test.d.ts +0 -1
- package/dist/tests/unit/connectors/instreet-registration.test.js +0 -102
- package/dist/tests/unit/connectors/manifest-v7-schema.test.d.ts +0 -9
- package/dist/tests/unit/connectors/manifest-v7-schema.test.js +0 -165
- package/dist/tests/unit/connectors/scriptable-node-runner.test.d.ts +0 -1
- package/dist/tests/unit/connectors/scriptable-node-runner.test.js +0 -246
- package/dist/tests/unit/connectors/structured-unavailable-reason.test.d.ts +0 -11
- package/dist/tests/unit/connectors/structured-unavailable-reason.test.js +0 -76
- package/dist/tests/unit/connectors/t3-1-1-dynamic-registry.test.d.ts +0 -1
- package/dist/tests/unit/connectors/t3-1-1-dynamic-registry.test.js +0 -178
- package/dist/tests/unit/connectors/t3-1-2-capability-registry.test.d.ts +0 -1
- package/dist/tests/unit/connectors/t3-1-2-capability-registry.test.js +0 -105
- package/dist/tests/unit/connectors/t3-2-1-v5-parity.test.d.ts +0 -1
- package/dist/tests/unit/connectors/t3-2-1-v5-parity.test.js +0 -103
- package/dist/tests/unit/connectors/t3-3-1-evidence-mapper.test.d.ts +0 -1
- package/dist/tests/unit/connectors/t3-3-1-evidence-mapper.test.js +0 -198
- package/dist/tests/unit/connectors/t3-3-1-evidence-redaction.test.d.ts +0 -1
- package/dist/tests/unit/connectors/t3-3-1-evidence-redaction.test.js +0 -95
- package/dist/tests/unit/connectors/wet-probe-runner.test.d.ts +0 -11
- package/dist/tests/unit/connectors/wet-probe-runner.test.js +0 -84
- package/dist/tests/unit/control-plane/decision-trace-emitter.test.d.ts +0 -1
- package/dist/tests/unit/control-plane/decision-trace-emitter.test.js +0 -51
- package/dist/tests/unit/control-plane/downstream-intent-orchestrator.test.d.ts +0 -1
- package/dist/tests/unit/control-plane/downstream-intent-orchestrator.test.js +0 -57
- package/dist/tests/unit/control-plane/embodied-context-assembler.test.d.ts +0 -13
- package/dist/tests/unit/control-plane/embodied-context-assembler.test.js +0 -182
- package/dist/tests/unit/control-plane/goal-lifecycle-policy.test.d.ts +0 -1
- package/dist/tests/unit/control-plane/goal-lifecycle-policy.test.js +0 -75
- package/dist/tests/unit/control-plane/hard-guard-evaluator.test.d.ts +0 -1
- package/dist/tests/unit/control-plane/hard-guard-evaluator.test.js +0 -113
- package/dist/tests/unit/control-plane/idle-curiosity-policy.test.d.ts +0 -1
- package/dist/tests/unit/control-plane/idle-curiosity-policy.test.js +0 -69
- package/dist/tests/unit/control-plane/intent-planner-source-ref-fallback.test.d.ts +0 -7
- package/dist/tests/unit/control-plane/intent-planner-source-ref-fallback.test.js +0 -124
- package/dist/tests/unit/control-plane/rhythm-policy-snapshot-window.test.d.ts +0 -1
- package/dist/tests/unit/control-plane/rhythm-policy-snapshot-window.test.js +0 -64
- package/dist/tests/unit/control-plane/run-heartbeat-cycle-v7.test.d.ts +0 -1
- package/dist/tests/unit/control-plane/run-heartbeat-cycle-v7.test.js +0 -165
- package/dist/tests/unit/control-plane/t2-1-4-goal-priority.test.d.ts +0 -1
- package/dist/tests/unit/control-plane/t2-1-4-goal-priority.test.js +0 -185
- package/dist/tests/unit/control-plane/t2-1-5-narrative-update.test.d.ts +0 -1
- package/dist/tests/unit/control-plane/t2-1-5-narrative-update.test.js +0 -313
- package/dist/tests/unit/control-plane/t2-4-1-credential-route.test.d.ts +0 -1
- package/dist/tests/unit/control-plane/t2-4-1-credential-route.test.js +0 -75
- package/dist/tests/unit/control-plane/t2-4-1-platform-intent.test.d.ts +0 -1
- package/dist/tests/unit/control-plane/t2-4-1-platform-intent.test.js +0 -168
- package/dist/tests/unit/core/outreach-judgment.test.d.ts +0 -1
- package/dist/tests/unit/core/outreach-judgment.test.js +0 -109
- package/dist/tests/unit/core/resolve-allowed-intent.test.d.ts +0 -1
- package/dist/tests/unit/core/resolve-allowed-intent.test.js +0 -69
- package/dist/tests/unit/core/t2-2-3-connector-action-honest-result.test.d.ts +0 -1
- package/dist/tests/unit/core/t2-2-3-connector-action-honest-result.test.js +0 -130
- package/dist/tests/unit/core/t2-2-3-connector-dispatch-wired.test.d.ts +0 -1
- package/dist/tests/unit/core/t2-2-3-connector-dispatch-wired.test.js +0 -99
- package/dist/tests/unit/dream/dream-input-loader.test.d.ts +0 -15
- package/dist/tests/unit/dream/dream-input-loader.test.js +0 -424
- package/dist/tests/unit/dream/dream-scheduler.test.d.ts +0 -1
- package/dist/tests/unit/dream/dream-scheduler.test.js +0 -57
- package/dist/tests/unit/dream/t-dqs-c3-redacted-evidence.test.d.ts +0 -11
- package/dist/tests/unit/dream/t-dqs-c3-redacted-evidence.test.js +0 -298
- package/dist/tests/unit/dream/t7-1-3-insight-extraction.test.d.ts +0 -1
- package/dist/tests/unit/dream/t7-1-3-insight-extraction.test.js +0 -79
- package/dist/tests/unit/dream/t7-1-4-narrative-update.test.d.ts +0 -1
- package/dist/tests/unit/dream/t7-1-4-narrative-update.test.js +0 -93
- package/dist/tests/unit/dream/t7-1-5-relationship-update.test.d.ts +0 -1
- package/dist/tests/unit/dream/t7-1-5-relationship-update.test.js +0 -116
- package/dist/tests/unit/feedback/t4-2-1-owner-reply-inference.test.d.ts +0 -1
- package/dist/tests/unit/feedback/t4-2-1-owner-reply-inference.test.js +0 -58
- package/dist/tests/unit/guidance/capability-class.test.d.ts +0 -1
- package/dist/tests/unit/guidance/capability-class.test.js +0 -96
- package/dist/tests/unit/guidance/channel-feedback-ingestion.test.d.ts +0 -1
- package/dist/tests/unit/guidance/channel-feedback-ingestion.test.js +0 -163
- package/dist/tests/unit/guidance/evidence-guidance.test.d.ts +0 -1
- package/dist/tests/unit/guidance/evidence-guidance.test.js +0 -40
- package/dist/tests/unit/guidance/guidance-draft-service.test.d.ts +0 -1
- package/dist/tests/unit/guidance/guidance-draft-service.test.js +0 -140
- package/dist/tests/unit/guidance/impulse-assembler.test.d.ts +0 -1
- package/dist/tests/unit/guidance/impulse-assembler.test.js +0 -169
- package/dist/tests/unit/guidance/outreach-draft-schema.test.d.ts +0 -1
- package/dist/tests/unit/guidance/outreach-draft-schema.test.js +0 -56
- package/dist/tests/unit/guidance/outreach-strategy-selector.test.d.ts +0 -1
- package/dist/tests/unit/guidance/outreach-strategy-selector.test.js +0 -208
- package/dist/tests/unit/guidance/outreach-style-fixtures.test.d.ts +0 -1
- package/dist/tests/unit/guidance/outreach-style-fixtures.test.js +0 -81
- package/dist/tests/unit/guidance/t6-1-1-narrative-outreach.test.d.ts +0 -1
- package/dist/tests/unit/guidance/t6-1-1-narrative-outreach.test.js +0 -256
- package/dist/tests/unit/observability/audit-envelope.test.d.ts +0 -1
- package/dist/tests/unit/observability/audit-envelope.test.js +0 -169
- package/dist/tests/unit/observability/connector-inventory-ledger.test.d.ts +0 -1
- package/dist/tests/unit/observability/connector-inventory-ledger.test.js +0 -128
- package/dist/tests/unit/observability/family-registry.test.d.ts +0 -12
- package/dist/tests/unit/observability/family-registry.test.js +0 -105
- package/dist/tests/unit/observability/governance-plane-recorder.test.d.ts +0 -1
- package/dist/tests/unit/observability/governance-plane-recorder.test.js +0 -72
- package/dist/tests/unit/observability/heartbeat-digest-assembler.test.d.ts +0 -1
- package/dist/tests/unit/observability/heartbeat-digest-assembler.test.js +0 -227
- package/dist/tests/unit/observability/lived-experience-audit.test.d.ts +0 -1
- package/dist/tests/unit/observability/lived-experience-audit.test.js +0 -105
- package/dist/tests/unit/observability/narrative-timeline-query.test.d.ts +0 -18
- package/dist/tests/unit/observability/narrative-timeline-query.test.js +0 -239
- package/dist/tests/unit/observability/restore-audit-service.test.d.ts +0 -16
- package/dist/tests/unit/observability/restore-audit-service.test.js +0 -186
- package/dist/tests/unit/observability/runtime-decision-recorder.test.d.ts +0 -1
- package/dist/tests/unit/observability/runtime-decision-recorder.test.js +0 -66
- package/dist/tests/unit/observability/runtime-secret-anchor-view.test.d.ts +0 -18
- package/dist/tests/unit/observability/runtime-secret-anchor-view.test.js +0 -209
- package/dist/tests/unit/observability/self-health-snapshot.test.d.ts +0 -1
- package/dist/tests/unit/observability/self-health-snapshot.test.js +0 -223
- package/dist/tests/unit/observability/verify-audit-hash-chain.test.d.ts +0 -1
- package/dist/tests/unit/observability/verify-audit-hash-chain.test.js +0 -93
- package/dist/tests/unit/ops/manual-run-dispatcher.test.d.ts +0 -13
- package/dist/tests/unit/ops/manual-run-dispatcher.test.js +0 -219
- package/dist/tests/unit/quiet/claim-synthesizer.test.d.ts +0 -17
- package/dist/tests/unit/quiet/claim-synthesizer.test.js +0 -289
- package/dist/tests/unit/quiet/daily-diary-writer.test.d.ts +0 -12
- package/dist/tests/unit/quiet/daily-diary-writer.test.js +0 -108
- package/dist/tests/unit/shared/v7-entities.test.d.ts +0 -13
- package/dist/tests/unit/shared/v7-entities.test.js +0 -306
- package/dist/tests/unit/storage/delivery-attempt.test.d.ts +0 -1
- package/dist/tests/unit/storage/delivery-attempt.test.js +0 -72
- package/dist/tests/unit/storage/diary-dream-store.test.d.ts +0 -12
- package/dist/tests/unit/storage/diary-dream-store.test.js +0 -118
- package/dist/tests/unit/storage/embodied-context-state-port.test.d.ts +0 -4
- package/dist/tests/unit/storage/embodied-context-state-port.test.js +0 -77
- package/dist/tests/unit/storage/goal-lifecycle-store.test.d.ts +0 -4
- package/dist/tests/unit/storage/goal-lifecycle-store.test.js +0 -143
- package/dist/tests/unit/storage/history-digest-store.test.d.ts +0 -10
- package/dist/tests/unit/storage/history-digest-store.test.js +0 -126
- package/dist/tests/unit/storage/identity-profile-store.test.d.ts +0 -4
- package/dist/tests/unit/storage/identity-profile-store.test.js +0 -48
- package/dist/tests/unit/storage/life-evidence-snapshot.test.d.ts +0 -1
- package/dist/tests/unit/storage/life-evidence-snapshot.test.js +0 -60
- package/dist/tests/unit/storage/life-evidence.test.d.ts +0 -1
- package/dist/tests/unit/storage/life-evidence.test.js +0 -54
- package/dist/tests/unit/storage/migration-runner.test.d.ts +0 -12
- package/dist/tests/unit/storage/migration-runner.test.js +0 -197
- package/dist/tests/unit/storage/repair-gate.test.d.ts +0 -1
- package/dist/tests/unit/storage/repair-gate.test.js +0 -41
- package/dist/tests/unit/storage/restore-snapshot-store.test.d.ts +0 -11
- package/dist/tests/unit/storage/restore-snapshot-store.test.js +0 -161
- package/dist/tests/unit/storage/rhythm-policy-snapshot.test.d.ts +0 -1
- package/dist/tests/unit/storage/rhythm-policy-snapshot.test.js +0 -31
- package/dist/tests/unit/storage/runtime-secret-anchor-store.test.d.ts +0 -10
- package/dist/tests/unit/storage/runtime-secret-anchor-store.test.js +0 -81
- package/dist/tests/unit/storage/t1-4-1-credential-health-mapper.test.d.ts +0 -1
- package/dist/tests/unit/storage/t1-4-1-credential-health-mapper.test.js +0 -83
- package/dist/tests/unit/storage/t4-1-1-session-chronicle.test.d.ts +0 -1
- package/dist/tests/unit/storage/t4-1-1-session-chronicle.test.js +0 -112
- package/dist/tests/unit/storage/t4-1-2-narrative-state.test.d.ts +0 -1
- package/dist/tests/unit/storage/t4-1-2-narrative-state.test.js +0 -80
- package/dist/tests/unit/storage/t4-1-3-relationship-memory.test.d.ts +0 -1
- package/dist/tests/unit/storage/t4-1-3-relationship-memory.test.js +0 -65
- package/dist/tests/unit/storage/t4-1-4-agent-goal.test.d.ts +0 -1
- package/dist/tests/unit/storage/t4-1-4-agent-goal.test.js +0 -166
- package/dist/tests/unit/storage/tool-experience-store.test.d.ts +0 -4
- package/dist/tests/unit/storage/tool-experience-store.test.js +0 -92
- package/dist/tests/unit/storage/user-interest-snapshot.test.d.ts +0 -1
- package/dist/tests/unit/storage/user-interest-snapshot.test.js +0 -48
- package/dist/tests/unit/storage/write-queue.test.d.ts +0 -12
- package/dist/tests/unit/storage/write-queue.test.js +0 -177
- package/dist/tests/unit/storage/write-validation-gate.test.d.ts +0 -9
- package/dist/tests/unit/storage/write-validation-gate.test.js +0 -153
- /package/{dist/plugin/index.js → index.js} +0 -0
- /package/{dist/src → runtime}/cli/action-bridge.js +0 -0
- /package/{dist/src → runtime}/cli/commands/connector-behavior.d.ts +0 -0
- /package/{dist/src → runtime}/cli/commands/connector-behavior.js +0 -0
- /package/{dist/src → runtime}/cli/commands/connector-init.d.ts +0 -0
- /package/{dist/src → runtime}/cli/commands/connector-init.js +0 -0
- /package/{dist/src → runtime}/cli/commands/connector-status.d.ts +0 -0
- /package/{dist/src → runtime}/cli/commands/connector-status.js +0 -0
- /package/{dist/src → runtime}/cli/commands/credential.d.ts +0 -0
- /package/{dist/src → runtime}/cli/commands/credential.js +0 -0
- /package/{dist/src → runtime}/cli/commands/goal.d.ts +0 -0
- /package/{dist/src → runtime}/cli/commands/goal.js +0 -0
- /package/{dist/src → runtime}/cli/commands/index.d.ts +0 -0
- /package/{dist/src → runtime}/cli/commands/policy.d.ts +0 -0
- /package/{dist/src → runtime}/cli/commands/policy.js +0 -0
- /package/{dist/src → runtime}/cli/explain/explain-surface-subject.d.ts +0 -0
- /package/{dist/src → runtime}/cli/explain/explain-surface-subject.js +0 -0
- /package/{dist/src → runtime}/cli/explain/format-explanation.d.ts +0 -0
- /package/{dist/src → runtime}/cli/explain/format-explanation.js +0 -0
- /package/{dist/src → runtime}/cli/explain/resolve-subject.d.ts +0 -0
- /package/{dist/src → runtime}/cli/explain/resolve-subject.js +0 -0
- /package/{dist/src → runtime}/cli/host-capability/classify-delivery.d.ts +0 -0
- /package/{dist/src → runtime}/cli/host-capability/classify-delivery.js +0 -0
- /package/{dist/src → runtime}/cli/host-capability/probe-host-capability.d.ts +0 -0
- /package/{dist/src → runtime}/cli/host-capability/probe-host-capability.js +0 -0
- /package/{dist/src → runtime}/cli/host-capability/record-host-capability.d.ts +0 -0
- /package/{dist/src → runtime}/cli/host-capability/record-host-capability.js +0 -0
- /package/{dist/src → runtime}/cli/host-capability/types.d.ts +0 -0
- /package/{dist/src → runtime}/cli/host-capability/types.js +0 -0
- /package/{dist/src → runtime}/cli/host-smoke/run-host-smoke.d.ts +0 -0
- /package/{dist/src → runtime}/cli/host-smoke/run-host-smoke.js +0 -0
- /package/{dist/src → runtime}/cli/host-smoke/types.d.ts +0 -0
- /package/{dist/src → runtime}/cli/host-smoke/types.js +0 -0
- /package/{dist/src → runtime}/cli/index.js +0 -0
- /package/{dist/src → runtime}/cli/ops/manual-run-dispatcher.d.ts +0 -0
- /package/{dist/src → runtime}/cli/ops/manual-run-dispatcher.js +0 -0
- /package/{dist/src → runtime}/cli/ops/ops-router.d.ts +0 -0
- /package/{dist/src → runtime}/cli/ops/show-operator-fallback.d.ts +0 -0
- /package/{dist/src → runtime}/cli/ops/show-operator-fallback.js +0 -0
- /package/{dist/src → runtime}/cli/read-models/index.d.ts +0 -0
- /package/{dist/src → runtime}/cli/read-models/index.js +0 -0
- /package/{dist/src → runtime}/cli/read-models/operator-explain-map.d.ts +0 -0
- /package/{dist/src → runtime}/cli/read-models/operator-explain-map.js +0 -0
- /package/{dist/src → runtime}/cli/read-models/types.d.ts +0 -0
- /package/{dist/src → runtime}/cli/read-models/types.js +0 -0
- /package/{dist/src → runtime}/cli/runtime/runtime-artifact-boundary.d.ts +0 -0
- /package/{dist/src → runtime}/cli/runtime/runtime-artifact-boundary.js +0 -0
- /package/{dist/src → runtime}/connectors/agent-network/agent-world/adapter.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/agent-network/agent-world/adapter.js +0 -0
- /package/{dist/src → runtime}/connectors/agent-network/agent-world/index.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/agent-network/agent-world/index.js +0 -0
- /package/{dist/src → runtime}/connectors/agent-network/agent-world/manifest.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/agent-network/agent-world/manifest.js +0 -0
- /package/{dist/src → runtime}/connectors/agent-network/evomap/adapter.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/agent-network/evomap/adapter.js +0 -0
- /package/{dist/src → runtime}/connectors/agent-network/evomap/index.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/agent-network/evomap/index.js +0 -0
- /package/{dist/src → runtime}/connectors/agent-network/evomap/manifest.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/agent-network/evomap/manifest.js +0 -0
- /package/{dist/src → runtime}/connectors/base/channel-health.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/base/channel-health.js +0 -0
- /package/{dist/src → runtime}/connectors/base/contract.js +0 -0
- /package/{dist/src → runtime}/connectors/base/effect-commit-ledger-sqlite.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/base/effect-commit-ledger-sqlite.js +0 -0
- /package/{dist/src → runtime}/connectors/base/execution-policy.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/base/execution-policy.js +0 -0
- /package/{dist/src → runtime}/connectors/base/index.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/base/index.js +0 -0
- /package/{dist/src → runtime}/connectors/base/manifest-v7.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/base/manifest-v7.js +0 -0
- /package/{dist/src → runtime}/connectors/base/manifest.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/base/manifest.js +0 -0
- /package/{dist/src → runtime}/connectors/base/map-life-evidence.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/base/policy-layer.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/base/route-planner.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/base/route-planner.js +0 -0
- /package/{dist/src → runtime}/connectors/base/structured-unavailable-reason.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/base/structured-unavailable-reason.js +0 -0
- /package/{dist/src → runtime}/connectors/base/wet-probe-runner.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/base/wet-probe-runner.js +0 -0
- /package/{dist/src → runtime}/connectors/index.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/index.js +0 -0
- /package/{dist/src → runtime}/connectors/manifest/manifest-parser.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/manifest/manifest-parser.js +0 -0
- /package/{dist/src → runtime}/connectors/near-real/near-real-connector-smoke.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/near-real/near-real-connector-smoke.js +0 -0
- /package/{dist/src → runtime}/connectors/registry/dynamic-connector-registry.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/registry/dynamic-connector-registry.js +0 -0
- /package/{dist/src → runtime}/connectors/registry/index.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/registry/index.js +0 -0
- /package/{dist/src → runtime}/connectors/registry/manifest-scanner.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/registry/manifest-scanner.js +0 -0
- /package/{dist/src → runtime}/connectors/registry/trust-policy.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/registry/trust-policy.js +0 -0
- /package/{dist/src → runtime}/connectors/services/credential-route-context.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/services/credential-route-context.js +0 -0
- /package/{dist/src → runtime}/connectors/social-community/instreet/adapter.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/social-community/instreet/adapter.js +0 -0
- /package/{dist/src → runtime}/connectors/social-community/instreet/index.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/social-community/instreet/index.js +0 -0
- /package/{dist/src → runtime}/connectors/social-community/instreet/manifest.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/social-community/instreet/manifest.js +0 -0
- /package/{dist/src → runtime}/connectors/social-community/moltbook/adapter.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/social-community/moltbook/adapter.js +0 -0
- /package/{dist/src → runtime}/connectors/social-community/moltbook/api-client.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/social-community/moltbook/api-client.js +0 -0
- /package/{dist/src → runtime}/connectors/social-community/moltbook/index.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/social-community/moltbook/index.js +0 -0
- /package/{dist/src → runtime}/connectors/social-community/moltbook/manifest.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/social-community/moltbook/manifest.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/body/behavior-promotion/behavior-promotion-loop.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/body/behavior-promotion/behavior-promotion-loop.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/body/circuit-breaker/circuit-breaker-manager.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/body/circuit-breaker/circuit-breaker-manager.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/body/probe-signal-adapter.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/body/probe-signal-adapter.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/body/tool-affordance/affordance-assembler.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/body/tool-affordance/affordance-assembler.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/body/tool-affordance/affordance-context-scope.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/body/tool-affordance/affordance-context-scope.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/body/tool-experience/experience-writer.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/body/tool-experience/experience-writer.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/body/tool-experience/pain-signal-query.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/body/tool-experience/pain-signal-query.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/feedback/owner-reply-feedback.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/feedback/owner-reply-feedback.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/guidance/apply-guidance.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/guidance/apply-guidance.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/guidance/request-guidance.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/guidance/request-guidance.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/guidance/user-reply-continuity.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/guidance/user-reply-continuity.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/heartbeat/decision-trace-emitter.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/heartbeat/decision-trace-emitter.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/heartbeat/embodied-context-assembler.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/heartbeat/embodied-context-assembler.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/heartbeat/heartbeat-executor.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/heartbeat/heartbeat-executor.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/heartbeat/idle-curiosity-policy.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/heartbeat/idle-curiosity-policy.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/heartbeat/index.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/heartbeat/index.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/heartbeat/run-heartbeat-cycle-v7.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/heartbeat/run-heartbeat-cycle-v7.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/heartbeat/run-heartbeat-cycle.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/heartbeat/run-heartbeat-cycle.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/heartbeat/runtime-snapshot.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/heartbeat/runtime-snapshot.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/heartbeat/scope-router.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/heartbeat/scope-router.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/heartbeat/signal.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/heartbeat/signal.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/heartbeat/snapshot-builder.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/heartbeat/snapshot-builder.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/index.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/index.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/orchestrator/downstream-intent-orchestrator.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/orchestrator/downstream-intent-orchestrator.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/orchestrator/effect-dispatcher.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/orchestrator/effect-dispatcher.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/orchestrator/goal-priority.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/orchestrator/goal-priority.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/orchestrator/guard-layer.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/orchestrator/guard-layer.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/orchestrator/hard-guard-evaluator.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/orchestrator/hard-guard-evaluator.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/orchestrator/index.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/orchestrator/index.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/orchestrator/intent-planner.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/orchestrator/intent-planner.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/orchestrator/lease-manager.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/orchestrator/lease-manager.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/orchestrator/narrative-update.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/orchestrator/narrative-update.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/orchestrator/platform-capability-router.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/orchestrator/resume-from-checkpoint.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/orchestrator/resume-from-checkpoint.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/outreach/build-message.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/outreach/build-message.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/outreach/build-outreach-draft-request.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/outreach/build-outreach-draft-request.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/outreach/delivery-target.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/outreach/delivery-target.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/outreach/dispatch-user-outreach.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/outreach/dispatch-user-outreach.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/outreach/evaluate-outreach.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/outreach/evaluate-outreach.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/outreach/judge-input-from-snapshot.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/outreach/judge-input-from-snapshot.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/outreach/judge-outreach.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/outreach/judge-outreach.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/quiet/claim-synthesizer.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/quiet/claim-synthesizer.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/quiet/daily-diary-writer.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/quiet/daily-diary-writer.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/quiet/index.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/quiet/index.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/quiet/quiet-pipeline.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/quiet/quiet-pipeline.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/quiet/run-source-backed-quiet.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/quiet/run-source-backed-quiet.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/reflection/run-narrative-reflection.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/reflection/run-narrative-reflection.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/rhythm/planner-rhythm-window.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/rhythm/planner-rhythm-window.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/rhythm/policy-bridge.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/rhythm/policy-bridge.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/rhythm/rhythm-policy.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/rhythm/rhythm-policy.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/rhythm/select-window.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/rhythm/select-window.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/runtime/lifecycle-service.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/runtime/lifecycle-service.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/runtime/service-entry.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/runtime/service-entry.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/types.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/types.js +0 -0
- /package/{dist/src → runtime}/dream/dream-engine.d.ts +0 -0
- /package/{dist/src → runtime}/dream/dream-engine.js +0 -0
- /package/{dist/src → runtime}/dream/dream-input-loader.d.ts +0 -0
- /package/{dist/src → runtime}/dream/dream-input-loader.js +0 -0
- /package/{dist/src → runtime}/dream/dream-scheduler.d.ts +0 -0
- /package/{dist/src → runtime}/dream/dream-scheduler.js +0 -0
- /package/{dist/src → runtime}/dream/index.d.ts +0 -0
- /package/{dist/src → runtime}/dream/index.js +0 -0
- /package/{dist/src → runtime}/dream/insight-extractor.d.ts +0 -0
- /package/{dist/src → runtime}/dream/insight-extractor.js +0 -0
- /package/{dist/src → runtime}/dream/memory-consolidator.d.ts +0 -0
- /package/{dist/src → runtime}/dream/memory-consolidator.js +0 -0
- /package/{dist/src → runtime}/dream/narrative-update-proposal.d.ts +0 -0
- /package/{dist/src → runtime}/dream/narrative-update-proposal.js +0 -0
- /package/{dist/src → runtime}/dream/output-validator.d.ts +0 -0
- /package/{dist/src → runtime}/dream/output-validator.js +0 -0
- /package/{dist/src → runtime}/dream/redaction-gate.d.ts +0 -0
- /package/{dist/src → runtime}/dream/redaction-gate.js +0 -0
- /package/{dist/src → runtime}/dream/relationship-update-proposal.d.ts +0 -0
- /package/{dist/src → runtime}/dream/relationship-update-proposal.js +0 -0
- /package/{dist/src → runtime}/dream/sampler.d.ts +0 -0
- /package/{dist/src → runtime}/dream/sampler.js +0 -0
- /package/{dist/src → runtime}/dream/types.d.ts +0 -0
- /package/{dist/src → runtime}/dream/types.js +0 -0
- /package/{dist/src → runtime}/guidance/capability-class.d.ts +0 -0
- /package/{dist/src → runtime}/guidance/capability-class.js +0 -0
- /package/{dist/src → runtime}/guidance/channel-feedback-ingestion-service.d.ts +0 -0
- /package/{dist/src → runtime}/guidance/channel-feedback-ingestion-service.js +0 -0
- /package/{dist/src → runtime}/guidance/contracts.d.ts +0 -0
- /package/{dist/src → runtime}/guidance/contracts.js +0 -0
- /package/{dist/src → runtime}/guidance/draft-narrative-outreach.d.ts +0 -0
- /package/{dist/src → runtime}/guidance/draft-narrative-outreach.js +0 -0
- /package/{dist/src → runtime}/guidance/draft-outreach-message.d.ts +0 -0
- /package/{dist/src → runtime}/guidance/draft-outreach-message.js +0 -0
- /package/{dist/src → runtime}/guidance/evidence-guidance.d.ts +0 -0
- /package/{dist/src → runtime}/guidance/evidence-guidance.js +0 -0
- /package/{dist/src → runtime}/guidance/fallback.d.ts +0 -0
- /package/{dist/src → runtime}/guidance/fallback.js +0 -0
- /package/{dist/src → runtime}/guidance/guidance-assembler.d.ts +0 -0
- /package/{dist/src → runtime}/guidance/guidance-assembler.js +0 -0
- /package/{dist/src → runtime}/guidance/guidance-draft-service.d.ts +0 -0
- /package/{dist/src → runtime}/guidance/guidance-draft-service.js +0 -0
- /package/{dist/src → runtime}/guidance/impulse-assembler.d.ts +0 -0
- /package/{dist/src → runtime}/guidance/impulse-assembler.js +0 -0
- /package/{dist/src → runtime}/guidance/index.d.ts +0 -0
- /package/{dist/src → runtime}/guidance/index.js +0 -0
- /package/{dist/src → runtime}/guidance/output-guard.d.ts +0 -0
- /package/{dist/src → runtime}/guidance/output-guard.js +0 -0
- /package/{dist/src → runtime}/guidance/outreach-draft-schema.d.ts +0 -0
- /package/{dist/src → runtime}/guidance/outreach-draft-schema.js +0 -0
- /package/{dist/src → runtime}/guidance/outreach-strategy-selector.d.ts +0 -0
- /package/{dist/src → runtime}/guidance/outreach-strategy-selector.js +0 -0
- /package/{dist/src → runtime}/guidance/persona-selection.d.ts +0 -0
- /package/{dist/src → runtime}/guidance/persona-selection.js +0 -0
- /package/{dist/src → runtime}/guidance/review-workflow.d.ts +0 -0
- /package/{dist/src → runtime}/guidance/review-workflow.js +0 -0
- /package/{dist/src → runtime}/guidance/template-registry.d.ts +0 -0
- /package/{dist/src → runtime}/guidance/template-registry.js +0 -0
- /package/{dist/src → runtime}/guidance/types.d.ts +0 -0
- /package/{dist/src → runtime}/guidance/types.js +0 -0
- /package/{dist/src → runtime}/observability/audit/append-only-audit-store.d.ts +0 -0
- /package/{dist/src → runtime}/observability/audit/append-only-audit-store.js +0 -0
- /package/{dist/src → runtime}/observability/audit/audit-envelope.d.ts +0 -0
- /package/{dist/src → runtime}/observability/audit/audit-envelope.js +0 -0
- /package/{dist/src → runtime}/observability/audit/audit-family-registry.json +0 -0
- /package/{dist/src → runtime}/observability/audit/family-registry.d.ts +0 -0
- /package/{dist/src → runtime}/observability/audit/family-registry.js +0 -0
- /package/{dist/src → runtime}/observability/audit/verify-audit-hash-chain.d.ts +0 -0
- /package/{dist/src → runtime}/observability/audit/verify-audit-hash-chain.js +0 -0
- /package/{dist/src → runtime}/observability/connector-inventory-ledger.d.ts +0 -0
- /package/{dist/src → runtime}/observability/connector-inventory-ledger.js +0 -0
- /package/{dist/src → runtime}/observability/db/index.d.ts +0 -0
- /package/{dist/src → runtime}/observability/db/index.js +0 -0
- /package/{dist/src → runtime}/observability/db/schema/connector-inventory.d.ts +0 -0
- /package/{dist/src → runtime}/observability/db/schema/connector-inventory.js +0 -0
- /package/{dist/src → runtime}/observability/db/schema/host-capability-reports.d.ts +0 -0
- /package/{dist/src → runtime}/observability/db/schema/host-capability-reports.js +0 -0
- /package/{dist/src → runtime}/observability/db/schema/index.d.ts +0 -0
- /package/{dist/src → runtime}/observability/db/schema/index.js +0 -0
- /package/{dist/src → runtime}/observability/index.d.ts +0 -0
- /package/{dist/src → runtime}/observability/index.js +0 -0
- /package/{dist/src → runtime}/observability/projections/guidance-audit.d.ts +0 -0
- /package/{dist/src → runtime}/observability/projections/guidance-audit.js +0 -0
- /package/{dist/src → runtime}/observability/projections/outreach-quality-audit.d.ts +0 -0
- /package/{dist/src → runtime}/observability/projections/outreach-quality-audit.js +0 -0
- /package/{dist/src → runtime}/observability/projections/reflection-audit.d.ts +0 -0
- /package/{dist/src → runtime}/observability/projections/reflection-audit.js +0 -0
- /package/{dist/src → runtime}/observability/query/compose-evidence.d.ts +0 -0
- /package/{dist/src → runtime}/observability/query/compose-evidence.js +0 -0
- /package/{dist/src → runtime}/observability/query/evidence-query-engine.d.ts +0 -0
- /package/{dist/src → runtime}/observability/query/evidence-query-engine.js +0 -0
- /package/{dist/src → runtime}/observability/query/explain-query.d.ts +0 -0
- /package/{dist/src → runtime}/observability/query/explain-query.js +0 -0
- /package/{dist/src → runtime}/observability/query/export-audit-bundle.d.ts +0 -0
- /package/{dist/src → runtime}/observability/query/export-audit-bundle.js +0 -0
- /package/{dist/src → runtime}/observability/redaction/manifest.d.ts +0 -0
- /package/{dist/src → runtime}/observability/redaction/manifest.js +0 -0
- /package/{dist/src → runtime}/observability/redaction/policy.d.ts +0 -0
- /package/{dist/src → runtime}/observability/redaction/policy.js +0 -0
- /package/{dist/src → runtime}/observability/services/decision-ledger.d.ts +0 -0
- /package/{dist/src → runtime}/observability/services/decision-ledger.js +0 -0
- /package/{dist/src → runtime}/observability/services/execution-telemetry.d.ts +0 -0
- /package/{dist/src → runtime}/observability/services/execution-telemetry.js +0 -0
- /package/{dist/src → runtime}/observability/services/governance-audit.d.ts +0 -0
- /package/{dist/src → runtime}/observability/services/governance-audit.js +0 -0
- /package/{dist/src → runtime}/observability/services/governance-plane-recorder.d.ts +0 -0
- /package/{dist/src → runtime}/observability/services/governance-plane-recorder.js +0 -0
- /package/{dist/src → runtime}/observability/services/heartbeat-digest-assembler.d.ts +0 -0
- /package/{dist/src → runtime}/observability/services/heartbeat-digest-assembler.js +0 -0
- /package/{dist/src → runtime}/observability/services/lived-experience-audit.d.ts +0 -0
- /package/{dist/src → runtime}/observability/services/lived-experience-audit.js +0 -0
- /package/{dist/src → runtime}/observability/services/narrative-timeline-query-service.d.ts +0 -0
- /package/{dist/src → runtime}/observability/services/narrative-timeline-query-service.js +0 -0
- /package/{dist/src → runtime}/observability/services/observability-retention.d.ts +0 -0
- /package/{dist/src → runtime}/observability/services/observability-retention.js +0 -0
- /package/{dist/src → runtime}/observability/services/redaction-store.d.ts +0 -0
- /package/{dist/src → runtime}/observability/services/redaction-store.js +0 -0
- /package/{dist/src → runtime}/observability/services/restore-audit-service.d.ts +0 -0
- /package/{dist/src → runtime}/observability/services/restore-audit-service.js +0 -0
- /package/{dist/src → runtime}/observability/services/runtime-decision-recorder.d.ts +0 -0
- /package/{dist/src → runtime}/observability/services/runtime-decision-recorder.js +0 -0
- /package/{dist/src → runtime}/observability/services/runtime-secret-anchor-view.d.ts +0 -0
- /package/{dist/src → runtime}/observability/services/runtime-secret-anchor-view.js +0 -0
- /package/{dist/src → runtime}/observability/services/self-health-snapshot.d.ts +0 -0
- /package/{dist/src → runtime}/observability/services/self-health-snapshot.js +0 -0
- /package/{dist/src → runtime}/shared/types/continuity.d.ts +0 -0
- /package/{dist/src → runtime}/shared/types/continuity.js +0 -0
- /package/{dist/src → runtime}/shared/types/credential.d.ts +0 -0
- /package/{dist/src → runtime}/shared/types/credential.js +0 -0
- /package/{dist/src → runtime}/shared/types/goal.d.ts +0 -0
- /package/{dist/src → runtime}/shared/types/goal.js +0 -0
- /package/{dist/src → runtime}/shared/types/index.d.ts +0 -0
- /package/{dist/src → runtime}/shared/types/index.js +0 -0
- /package/{dist/src → runtime}/shared/types/outreach.d.ts +0 -0
- /package/{dist/src → runtime}/shared/types/outreach.js +0 -0
- /package/{dist/src → runtime}/shared/types/source-ref.d.ts +0 -0
- /package/{dist/src → runtime}/shared/types/source-ref.js +0 -0
- /package/{dist/src → runtime}/shared/types/v7-entities.d.ts +0 -0
- /package/{dist/src → runtime}/shared/types/v7-entities.js +0 -0
- /package/{dist/src → runtime}/storage/bootstrap/native-sqlite-probe.d.ts +0 -0
- /package/{dist/src → runtime}/storage/bootstrap/native-sqlite-probe.js +0 -0
- /package/{dist/src → runtime}/storage/bootstrap/repair-gate.d.ts +0 -0
- /package/{dist/src → runtime}/storage/bootstrap/repair-gate.js +0 -0
- /package/{dist/src → runtime}/storage/bootstrap/repair.d.ts +0 -0
- /package/{dist/src → runtime}/storage/bootstrap/repair.js +0 -0
- /package/{dist/src → runtime}/storage/bootstrap/storage-mode-smoke.d.ts +0 -0
- /package/{dist/src → runtime}/storage/bootstrap/storage-mode-smoke.js +0 -0
- /package/{dist/src → runtime}/storage/chronicle/session-chronicle-store.d.ts +0 -0
- /package/{dist/src → runtime}/storage/chronicle/session-chronicle-store.js +0 -0
- /package/{dist/src → runtime}/storage/db/index.d.ts +0 -0
- /package/{dist/src → runtime}/storage/db/index.js +0 -0
- /package/{dist/src → runtime}/storage/db/migration-runner.d.ts +0 -0
- /package/{dist/src → runtime}/storage/db/migration-runner.js +0 -0
- /package/{dist/src → runtime}/storage/db/migrations/index.d.ts +0 -0
- /package/{dist/src → runtime}/storage/db/migrations/index.js +0 -0
- /package/{dist/src → runtime}/storage/db/migrations/v7-001-foundation.d.ts +0 -0
- /package/{dist/src → runtime}/storage/db/migrations/v7-001-foundation.js +0 -0
- /package/{dist/src → runtime}/storage/db/migrations/v7-002-effect-commit-ledger.d.ts +0 -0
- /package/{dist/src → runtime}/storage/db/migrations/v7-002-effect-commit-ledger.js +0 -0
- /package/{dist/src → runtime}/storage/db/migrations/v7-003-circuit-breaker.d.ts +0 -0
- /package/{dist/src → runtime}/storage/db/migrations/v7-003-circuit-breaker.js +0 -0
- /package/{dist/src → runtime}/storage/db/migrations/v7-004-behavior-promotion.d.ts +0 -0
- /package/{dist/src → runtime}/storage/db/migrations/v7-004-behavior-promotion.js +0 -0
- /package/{dist/src → runtime}/storage/db/schema/agent-goal.d.ts +0 -0
- /package/{dist/src → runtime}/storage/db/schema/agent-goal.js +0 -0
- /package/{dist/src → runtime}/storage/db/schema/assets.d.ts +0 -0
- /package/{dist/src → runtime}/storage/db/schema/assets.js +0 -0
- /package/{dist/src → runtime}/storage/db/schema/credentials.d.ts +0 -0
- /package/{dist/src → runtime}/storage/db/schema/credentials.js +0 -0
- /package/{dist/src → runtime}/storage/db/schema/delivery-attempts.d.ts +0 -0
- /package/{dist/src → runtime}/storage/db/schema/delivery-attempts.js +0 -0
- /package/{dist/src → runtime}/storage/db/schema/index.d.ts +0 -0
- /package/{dist/src → runtime}/storage/db/schema/index.js +0 -0
- /package/{dist/src → runtime}/storage/db/schema/intent-commits.d.ts +0 -0
- /package/{dist/src → runtime}/storage/db/schema/intent-commits.js +0 -0
- /package/{dist/src → runtime}/storage/db/schema/life-evidence-index.d.ts +0 -0
- /package/{dist/src → runtime}/storage/db/schema/life-evidence-index.js +0 -0
- /package/{dist/src → runtime}/storage/db/schema/memory-store.d.ts +0 -0
- /package/{dist/src → runtime}/storage/db/schema/memory-store.js +0 -0
- /package/{dist/src → runtime}/storage/db/schema/narrative-state.d.ts +0 -0
- /package/{dist/src → runtime}/storage/db/schema/narrative-state.js +0 -0
- /package/{dist/src → runtime}/storage/db/schema/operator-fallback-artifacts.d.ts +0 -0
- /package/{dist/src → runtime}/storage/db/schema/operator-fallback-artifacts.js +0 -0
- /package/{dist/src → runtime}/storage/db/schema/policies.d.ts +0 -0
- /package/{dist/src → runtime}/storage/db/schema/policies.js +0 -0
- /package/{dist/src → runtime}/storage/db/schema/proposals.d.ts +0 -0
- /package/{dist/src → runtime}/storage/db/schema/proposals.js +0 -0
- /package/{dist/src → runtime}/storage/db/schema/provenance.d.ts +0 -0
- /package/{dist/src → runtime}/storage/db/schema/provenance.js +0 -0
- /package/{dist/src → runtime}/storage/db/schema/relationship-memory.d.ts +0 -0
- /package/{dist/src → runtime}/storage/db/schema/relationship-memory.js +0 -0
- /package/{dist/src → runtime}/storage/db/schema/session-chronicle.d.ts +0 -0
- /package/{dist/src → runtime}/storage/db/schema/session-chronicle.js +0 -0
- /package/{dist/src → runtime}/storage/db/transaction-utils.d.ts +0 -0
- /package/{dist/src → runtime}/storage/db/transaction-utils.js +0 -0
- /package/{dist/src → runtime}/storage/db/write-queue.d.ts +0 -0
- /package/{dist/src → runtime}/storage/db/write-queue.js +0 -0
- /package/{dist/src → runtime}/storage/delivery/query-delivery-attempts.d.ts +0 -0
- /package/{dist/src → runtime}/storage/delivery/query-delivery-attempts.js +0 -0
- /package/{dist/src → runtime}/storage/delivery/types.d.ts +0 -0
- /package/{dist/src → runtime}/storage/delivery/types.js +0 -0
- /package/{dist/src → runtime}/storage/delivery/write-delivery-attempt.d.ts +0 -0
- /package/{dist/src → runtime}/storage/delivery/write-delivery-attempt.js +0 -0
- /package/{dist/src → runtime}/storage/fallback/load-operator-fallback.d.ts +0 -0
- /package/{dist/src → runtime}/storage/fallback/load-operator-fallback.js +0 -0
- /package/{dist/src → runtime}/storage/fallback/operator-fallback-types.d.ts +0 -0
- /package/{dist/src → runtime}/storage/fallback/operator-fallback-types.js +0 -0
- /package/{dist/src → runtime}/storage/fallback/operator-fallback-view.d.ts +0 -0
- /package/{dist/src → runtime}/storage/fallback/operator-fallback-view.js +0 -0
- /package/{dist/src → runtime}/storage/fallback/write-operator-fallback.d.ts +0 -0
- /package/{dist/src → runtime}/storage/fallback/write-operator-fallback.js +0 -0
- /package/{dist/src → runtime}/storage/goal/agent-goal-store.d.ts +0 -0
- /package/{dist/src → runtime}/storage/goal/agent-goal-store.js +0 -0
- /package/{dist/src → runtime}/storage/index.d.ts +0 -0
- /package/{dist/src → runtime}/storage/index.js +0 -0
- /package/{dist/src → runtime}/storage/life-evidence/append-life-evidence.d.ts +0 -0
- /package/{dist/src → runtime}/storage/life-evidence/append-life-evidence.js +0 -0
- /package/{dist/src → runtime}/storage/life-evidence/types.d.ts +0 -0
- /package/{dist/src → runtime}/storage/life-evidence/types.js +0 -0
- /package/{dist/src → runtime}/storage/memory/workspace/paths.d.ts +0 -0
- /package/{dist/src → runtime}/storage/memory/workspace/paths.js +0 -0
- /package/{dist/src → runtime}/storage/memory/workspace/store.d.ts +0 -0
- /package/{dist/src → runtime}/storage/memory/workspace/store.js +0 -0
- /package/{dist/src → runtime}/storage/memory/workspace/types.d.ts +0 -0
- /package/{dist/src → runtime}/storage/memory/workspace/types.js +0 -0
- /package/{dist/src → runtime}/storage/memory-store/memory-store-lifecycle.d.ts +0 -0
- /package/{dist/src → runtime}/storage/memory-store/memory-store-lifecycle.js +0 -0
- /package/{dist/src → runtime}/storage/narrative/narrative-state-store.d.ts +0 -0
- /package/{dist/src → runtime}/storage/narrative/narrative-state-store.js +0 -0
- /package/{dist/src → runtime}/storage/quiet/persist-quiet-artifact.d.ts +0 -0
- /package/{dist/src → runtime}/storage/quiet/persist-quiet-artifact.js +0 -0
- /package/{dist/src → runtime}/storage/quiet/quiet-artifact-types.d.ts +0 -0
- /package/{dist/src → runtime}/storage/quiet/quiet-artifact-types.js +0 -0
- /package/{dist/src → runtime}/storage/quiet/quiet-artifact-writer.d.ts +0 -0
- /package/{dist/src → runtime}/storage/quiet/quiet-artifact-writer.js +0 -0
- /package/{dist/src → runtime}/storage/relationship/relationship-memory-store.d.ts +0 -0
- /package/{dist/src → runtime}/storage/relationship/relationship-memory-store.js +0 -0
- /package/{dist/src → runtime}/storage/repositories/asset-repository.d.ts +0 -0
- /package/{dist/src → runtime}/storage/repositories/asset-repository.js +0 -0
- /package/{dist/src → runtime}/storage/repositories/credential-repository.d.ts +0 -0
- /package/{dist/src → runtime}/storage/repositories/credential-repository.js +0 -0
- /package/{dist/src → runtime}/storage/repositories/index.d.ts +0 -0
- /package/{dist/src → runtime}/storage/repositories/index.js +0 -0
- /package/{dist/src → runtime}/storage/repositories/intent-commit-repository.d.ts +0 -0
- /package/{dist/src → runtime}/storage/repositories/intent-commit-repository.js +0 -0
- /package/{dist/src → runtime}/storage/repositories/policy-repository.d.ts +0 -0
- /package/{dist/src → runtime}/storage/repositories/policy-repository.js +0 -0
- /package/{dist/src → runtime}/storage/repositories/proposal-repository.d.ts +0 -0
- /package/{dist/src → runtime}/storage/repositories/proposal-repository.js +0 -0
- /package/{dist/src → runtime}/storage/repositories/provenance-repository.d.ts +0 -0
- /package/{dist/src → runtime}/storage/repositories/provenance-repository.js +0 -0
- /package/{dist/src → runtime}/storage/rhythm/rhythm-policy-snapshot.d.ts +0 -0
- /package/{dist/src → runtime}/storage/rhythm/rhythm-policy-snapshot.js +0 -0
- /package/{dist/src → runtime}/storage/services/credential-vault.d.ts +0 -0
- /package/{dist/src → runtime}/storage/services/credential-vault.js +0 -0
- /package/{dist/src → runtime}/storage/services/daily-log-pipeline.d.ts +0 -0
- /package/{dist/src → runtime}/storage/services/daily-log-pipeline.js +0 -0
- /package/{dist/src → runtime}/storage/services/diary-dream-store.d.ts +0 -0
- /package/{dist/src → runtime}/storage/services/diary-dream-store.js +0 -0
- /package/{dist/src → runtime}/storage/services/effect-commit-store.d.ts +0 -0
- /package/{dist/src → runtime}/storage/services/effect-commit-store.js +0 -0
- /package/{dist/src → runtime}/storage/services/embodied-context-state-port.d.ts +0 -0
- /package/{dist/src → runtime}/storage/services/embodied-context-state-port.js +0 -0
- /package/{dist/src → runtime}/storage/services/goal-lifecycle-store.d.ts +0 -0
- /package/{dist/src → runtime}/storage/services/goal-lifecycle-store.js +0 -0
- /package/{dist/src → runtime}/storage/services/governance-layer.d.ts +0 -0
- /package/{dist/src → runtime}/storage/services/governance-layer.js +0 -0
- /package/{dist/src → runtime}/storage/services/history-digest-store.d.ts +0 -0
- /package/{dist/src → runtime}/storage/services/history-digest-store.js +0 -0
- /package/{dist/src → runtime}/storage/services/identity-profile-store.d.ts +0 -0
- /package/{dist/src → runtime}/storage/services/identity-profile-store.js +0 -0
- /package/{dist/src → runtime}/storage/services/interaction-snapshot-projector.d.ts +0 -0
- /package/{dist/src → runtime}/storage/services/interaction-snapshot-projector.js +0 -0
- /package/{dist/src → runtime}/storage/services/persona-candidate-loader.d.ts +0 -0
- /package/{dist/src → runtime}/storage/services/persona-candidate-loader.js +0 -0
- /package/{dist/src → runtime}/storage/services/provenance-service.d.ts +0 -0
- /package/{dist/src → runtime}/storage/services/provenance-service.js +0 -0
- /package/{dist/src → runtime}/storage/services/quiet-input-loader.d.ts +0 -0
- /package/{dist/src → runtime}/storage/services/quiet-input-loader.js +0 -0
- /package/{dist/src → runtime}/storage/services/repair-and-backup.d.ts +0 -0
- /package/{dist/src → runtime}/storage/services/repair-and-backup.js +0 -0
- /package/{dist/src → runtime}/storage/services/restore-snapshot-store.d.ts +0 -0
- /package/{dist/src → runtime}/storage/services/restore-snapshot-store.js +0 -0
- /package/{dist/src → runtime}/storage/services/runtime-secret-anchor-store.d.ts +0 -0
- /package/{dist/src → runtime}/storage/services/runtime-secret-anchor-store.js +0 -0
- /package/{dist/src → runtime}/storage/services/tool-experience-store.d.ts +0 -0
- /package/{dist/src → runtime}/storage/services/tool-experience-store.js +0 -0
- /package/{dist/src → runtime}/storage/services/write-validation-gate.d.ts +0 -0
- /package/{dist/src → runtime}/storage/services/write-validation-gate.js +0 -0
- /package/{dist/src → runtime}/storage/snapshots/continuity-snapshot.d.ts +0 -0
- /package/{dist/src → runtime}/storage/snapshots/continuity-snapshot.js +0 -0
- /package/{dist/src → runtime}/storage/snapshots/life-evidence-snapshot.d.ts +0 -0
- /package/{dist/src → runtime}/storage/snapshots/life-evidence-snapshot.js +0 -0
- /package/{dist/src → runtime}/storage/snapshots/types.d.ts +0 -0
- /package/{dist/src → runtime}/storage/snapshots/types.js +0 -0
- /package/{dist/src → runtime}/storage/state-api.d.ts +0 -0
- /package/{dist/src → runtime}/storage/state-api.js +0 -0
- /package/{dist/src → runtime}/storage/user-interest/load-user-interest-snapshot.d.ts +0 -0
- /package/{dist/src → runtime}/storage/user-interest/load-user-interest-snapshot.js +0 -0
- /package/{dist/src → runtime}/storage/user-interest/types.d.ts +0 -0
- /package/{dist/src → runtime}/storage/user-interest/types.js +0 -0
- /package/{dist/plugin/workspace-ops-bridge.js → workspace-ops-bridge.js} +0 -0
|
@@ -1,325 +1,325 @@
|
|
|
1
|
-
import { credentialVerify } from "./credential.js";
|
|
2
|
-
import { connectorInit } from "./connector-init.js";
|
|
3
|
-
import { formatExplanation } from "../explain/format-explanation.js";
|
|
4
|
-
import { explainSurfaceSubject } from "../explain/explain-surface-subject.js";
|
|
5
|
-
import { showOperatorFallback, OperatorFallbackNotFoundError, } from "../ops/show-operator-fallback.js";
|
|
6
|
-
import { runStorageModeSmoke } from "../../storage/bootstrap/storage-mode-smoke.js";
|
|
7
|
-
import { policySet } from "./policy.js";
|
|
8
|
-
const notImplemented = async (command) => ({
|
|
9
|
-
ok: false,
|
|
10
|
-
command,
|
|
11
|
-
message: "Command shell registered. Implementation lands in later Wave tasks.",
|
|
12
|
-
});
|
|
13
|
-
function explainSubjectError(code, message) {
|
|
14
|
-
return {
|
|
15
|
-
ok: false,
|
|
16
|
-
error: {
|
|
17
|
-
code,
|
|
18
|
-
message,
|
|
19
|
-
requiredUserInput: ["subject"],
|
|
20
|
-
nextStep: "reinvoke_explain_with_supported_subject",
|
|
21
|
-
},
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
export function createCliCommands(deps) {
|
|
25
|
-
const { readModels, actionBridge, opsRouter } = deps;
|
|
26
|
-
const opsCommand = (name, description) => ({
|
|
27
|
-
name,
|
|
28
|
-
description,
|
|
29
|
-
execute: async (input) => {
|
|
30
|
-
const surface = await Promise.resolve(opsRouter.dispatch(name, input));
|
|
31
|
-
return surface;
|
|
32
|
-
},
|
|
33
|
-
});
|
|
34
|
-
return [
|
|
35
|
-
{
|
|
36
|
-
name: "status",
|
|
37
|
-
description: "T1.2.6 — Show v6 aggregated Second Nature status (narrative + dream + cycles + runtime)",
|
|
38
|
-
execute: async (input) => {
|
|
39
|
-
const scope = typeof input?.scope === "string" ? input.scope : undefined;
|
|
40
|
-
const data = await readModels.loadV6Status(scope);
|
|
41
|
-
return { ok: true, data };
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
name: "policy",
|
|
46
|
-
description: "Write or inspect policy state",
|
|
47
|
-
execute: async (input) => {
|
|
48
|
-
const action = typeof input?.action === "string" ? input.action : "show";
|
|
49
|
-
if (action === "set") {
|
|
50
|
-
return policySet(actionBridge, input);
|
|
51
|
-
}
|
|
52
|
-
// T1.2.6 (SN-CODE-01): `policy show` (default) returns the current rhythm policy
|
|
53
|
-
// snapshot. Returns workspace defaults when no policy row has been persisted yet.
|
|
54
|
-
const data = await readModels.loadPolicy();
|
|
55
|
-
return { ok: true, data };
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
name: "credential",
|
|
60
|
-
description: "Inspect or recover credential state",
|
|
61
|
-
execute: async (input) => {
|
|
62
|
-
const action = typeof input?.action === "string" ? input.action : "show";
|
|
63
|
-
if (action === "verify") {
|
|
64
|
-
return credentialVerify(actionBridge, input);
|
|
65
|
-
}
|
|
66
|
-
const platformId = typeof input?.platformId === "string" ? input.platformId : "unknown";
|
|
67
|
-
const data = await readModels.loadCredential(platformId);
|
|
68
|
-
return { ok: true, data };
|
|
69
|
-
},
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
name: "quiet",
|
|
73
|
-
description: "Inspect Quiet lifecycle state",
|
|
74
|
-
execute: async (input) => {
|
|
75
|
-
const scope = typeof input?.scope === "string" ? input.scope : undefined;
|
|
76
|
-
const data = await readModels.loadQuiet(scope);
|
|
77
|
-
return { ok: true, data };
|
|
78
|
-
},
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
name: "report",
|
|
82
|
-
description: "Show daily report artifacts",
|
|
83
|
-
execute: async (input) => {
|
|
84
|
-
const day = typeof input?.day === "string"
|
|
85
|
-
? input.day
|
|
86
|
-
: new Date().toISOString().slice(0, 10);
|
|
87
|
-
const data = await readModels.loadDailyReport(day);
|
|
88
|
-
return { ok: true, data };
|
|
89
|
-
},
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
name: "session",
|
|
93
|
-
description: "Inspect continuity session details",
|
|
94
|
-
execute: async (input) => {
|
|
95
|
-
const sessionId = typeof input?.sessionId === "string" ? input.sessionId : "";
|
|
96
|
-
if (!sessionId) {
|
|
97
|
-
return {
|
|
98
|
-
ok: false,
|
|
99
|
-
error: {
|
|
100
|
-
code: "MISSING_SESSION_ID",
|
|
101
|
-
message: "session show requires sessionId",
|
|
102
|
-
requiredUserInput: ["session_id"],
|
|
103
|
-
nextStep: "reinvoke_session_with_session_id",
|
|
104
|
-
},
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
const data = await readModels.loadSession(sessionId);
|
|
108
|
-
return { ok: true, data };
|
|
109
|
-
},
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
name: "audit",
|
|
113
|
-
description: "Inspect audit and evidence views",
|
|
114
|
-
execute: async () => {
|
|
115
|
-
// T1.2.7 (SN-CODE-02): minimal read-side view — list all in-memory audit events.
|
|
116
|
-
// Empty store returns { totalEvents: 0, events: [] } (honest empty, not an error).
|
|
117
|
-
const data = await readModels.loadAuditSummary();
|
|
118
|
-
return { ok: true, data };
|
|
119
|
-
},
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
name: "explain",
|
|
123
|
-
description: "Answer why-question explain requests",
|
|
124
|
-
execute: async (input) => {
|
|
125
|
-
const subjectRaw = typeof input?.subject === "string" ? input.subject.trim() : "";
|
|
126
|
-
if (!subjectRaw) {
|
|
127
|
-
return {
|
|
128
|
-
ok: false,
|
|
129
|
-
error: {
|
|
130
|
-
code: "MISSING_EXPLAIN_SUBJECT",
|
|
131
|
-
message: "explain requires subject",
|
|
132
|
-
requiredUserInput: ["subject"],
|
|
133
|
-
nextStep: "reinvoke_explain_with_subject",
|
|
134
|
-
},
|
|
135
|
-
};
|
|
136
|
-
}
|
|
137
|
-
let model;
|
|
138
|
-
try {
|
|
139
|
-
model = await explainSurfaceSubject(subjectRaw, readModels);
|
|
140
|
-
}
|
|
141
|
-
catch (error) {
|
|
142
|
-
const code = error.message;
|
|
143
|
-
if (code === "explain_subject_requires_id") {
|
|
144
|
-
return explainSubjectError("EXPLAIN_SUBJECT_REQUIRES_ID", "subject must include identifier");
|
|
145
|
-
}
|
|
146
|
-
if (code === "explain_subject_unsupported") {
|
|
147
|
-
return explainSubjectError("EXPLAIN_SUBJECT_UNSUPPORTED", "supported subjects include decision:, platform:, outreach:, soul:, fallback:, delivery:, probe:, report:, source:, relationship:");
|
|
148
|
-
}
|
|
149
|
-
return explainSubjectError("EXPLAIN_SUBJECT_INVALID", "invalid explain subject");
|
|
150
|
-
}
|
|
151
|
-
return {
|
|
152
|
-
ok: true,
|
|
153
|
-
data: formatExplanation(model),
|
|
154
|
-
};
|
|
155
|
-
},
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
name: "heartbeat_check",
|
|
159
|
-
description: "Workspace heartbeat_check ops surface (v5 HeartbeatSurfaceResult)",
|
|
160
|
-
execute: async (input) => {
|
|
161
|
-
const surface = await Promise.resolve(opsRouter.dispatch("heartbeat_check", input));
|
|
162
|
-
return surface;
|
|
163
|
-
},
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
name: "storage_smoke",
|
|
167
|
-
description: "T4.1.4 — report sql.js vs native SQLite probe and optional artifact→index repair fixture",
|
|
168
|
-
execute: async (input) => {
|
|
169
|
-
const runRepairFixture = Boolean(input?.runRepairFixture);
|
|
170
|
-
const workspaceRoot = typeof input?.workspaceRoot === "string"
|
|
171
|
-
? input.workspaceRoot
|
|
172
|
-
: undefined;
|
|
173
|
-
const data = await runStorageModeSmoke({
|
|
174
|
-
runRepairFixture,
|
|
175
|
-
workspaceRoot,
|
|
176
|
-
});
|
|
177
|
-
return { ok: true, data };
|
|
178
|
-
},
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
name: "fallback",
|
|
182
|
-
description: "Operator-visible delivery fallback view (status always not_sent)",
|
|
183
|
-
execute: async (input) => {
|
|
184
|
-
const ref = typeof input?.ref === "string" ? input.ref.trim() : "";
|
|
185
|
-
if (!ref) {
|
|
186
|
-
return {
|
|
187
|
-
ok: false,
|
|
188
|
-
error: {
|
|
189
|
-
code: "MISSING_FALLBACK_REF",
|
|
190
|
-
message: "fallback requires ref (e.g. fallback:…)",
|
|
191
|
-
requiredUserInput: ["ref"],
|
|
192
|
-
nextStep: "reinvoke_with_ref",
|
|
193
|
-
},
|
|
194
|
-
};
|
|
195
|
-
}
|
|
196
|
-
try {
|
|
197
|
-
const data = await showOperatorFallback(ref, readModels);
|
|
198
|
-
return { ok: true, data };
|
|
199
|
-
}
|
|
200
|
-
catch (error) {
|
|
201
|
-
if (error instanceof OperatorFallbackNotFoundError) {
|
|
202
|
-
return {
|
|
203
|
-
ok: false,
|
|
204
|
-
error: {
|
|
205
|
-
code: error.code,
|
|
206
|
-
message: error.message,
|
|
207
|
-
requiredUserInput: ["ref"],
|
|
208
|
-
nextStep: "verify_fallback_ref_from_delivery_audit",
|
|
209
|
-
},
|
|
210
|
-
};
|
|
211
|
-
}
|
|
212
|
-
throw error;
|
|
213
|
-
}
|
|
214
|
-
},
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
name: "capability_probe",
|
|
218
|
-
description: "T1.2.8 — probe host capabilities and persist report (static unknown adapter in CLI context)",
|
|
219
|
-
execute: async (input) => {
|
|
220
|
-
const surface = await Promise.resolve(opsRouter.dispatch("capability_probe", input));
|
|
221
|
-
return surface;
|
|
222
|
-
},
|
|
223
|
-
},
|
|
224
|
-
{
|
|
225
|
-
name: "near_real_smoke",
|
|
226
|
-
description: "T3.3.2 — run near-real connector smoke (sentinel Moltbook + EvoMap, no live HTTP)",
|
|
227
|
-
execute: async (input) => {
|
|
228
|
-
const surface = await Promise.resolve(opsRouter.dispatch("near_real_smoke", input));
|
|
229
|
-
return surface;
|
|
230
|
-
},
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
name: "connector_init",
|
|
234
|
-
description: "T1.3.1 — generate connector manifest stub under .second-nature/connectors/{platformId}/",
|
|
235
|
-
execute: async (input) => {
|
|
236
|
-
const result = await connectorInit({
|
|
237
|
-
platformId: typeof input?.platformId === "string" ? input.platformId : "",
|
|
238
|
-
family: typeof input?.family === "string"
|
|
239
|
-
? input.family
|
|
240
|
-
: undefined,
|
|
241
|
-
displayName: typeof input?.displayName === "string"
|
|
242
|
-
? input.displayName
|
|
243
|
-
: undefined,
|
|
244
|
-
runnerKind: typeof input?.runnerKind === "string"
|
|
245
|
-
? input.runnerKind
|
|
246
|
-
: undefined,
|
|
247
|
-
force: Boolean(input?.force),
|
|
248
|
-
workspaceRoot: typeof input?.workspaceRoot === "string"
|
|
249
|
-
? input.workspaceRoot
|
|
250
|
-
: undefined,
|
|
251
|
-
});
|
|
252
|
-
return result;
|
|
253
|
-
},
|
|
254
|
-
},
|
|
255
|
-
{
|
|
256
|
-
name: "connector_behavior_add",
|
|
257
|
-
description: "Add a workspace-defined connector behavior to an existing manifest without executing custom code",
|
|
258
|
-
execute: async (input) => {
|
|
259
|
-
const surface = await Promise.resolve(opsRouter.dispatch("connector_behavior_add", input));
|
|
260
|
-
return surface;
|
|
261
|
-
},
|
|
262
|
-
},
|
|
263
|
-
{
|
|
264
|
-
name: "connector_status",
|
|
265
|
-
description: "T1.2.3 — show connector inventory, trust/executable/conflict summary",
|
|
266
|
-
execute: async (input) => {
|
|
267
|
-
const surface = await Promise.resolve(opsRouter.dispatch("connector_status", input));
|
|
268
|
-
return surface;
|
|
269
|
-
},
|
|
270
|
-
},
|
|
271
|
-
{
|
|
272
|
-
name: "connector_test",
|
|
273
|
-
description: "T1.2.3 — dry-run test a connector by platformId (default dry-run)",
|
|
274
|
-
execute: async (input) => {
|
|
275
|
-
const surface = await Promise.resolve(opsRouter.dispatch("connector_test", input));
|
|
276
|
-
return surface;
|
|
277
|
-
},
|
|
278
|
-
},
|
|
279
|
-
opsCommand("connector:run", "T-ROS.C.3 — manually execute a connector capability outside heartbeat cadence"),
|
|
280
|
-
opsCommand("self_health", "T-ROS.C.1 — show v7 self-health snapshot and degraded dimensions"),
|
|
281
|
-
opsCommand("tool_affordance", "T-ROS.C.1 — show v7 tool affordance map or explicit unavailable state"),
|
|
282
|
-
opsCommand("heartbeat_digest", "T-ROS.C.1 — assemble v7 heartbeat digest for a day"),
|
|
283
|
-
opsCommand("snapshot:capture", "T-V7C.C.1 — capture restore snapshot and narrative timeline version"),
|
|
284
|
-
opsCommand("narrative:diff", "T-ROS.C.1 — compare two narrative timeline versions"),
|
|
285
|
-
opsCommand("timeline", "T-ROS.C.1 — query v7 narrative timeline with cursor pagination"),
|
|
286
|
-
opsCommand("restore", "T-ROS.C.1 — apply bounded restore and write restore audit"),
|
|
287
|
-
opsCommand("runtime_secret_bootstrap", "T-ROS.C.1 — inspect runtime secret anchor health without exposing plaintext"),
|
|
288
|
-
opsCommand("guidance_payload", "T-V7C.C.4R — assemble impulse + atmosphere for a scene context"),
|
|
289
|
-
{
|
|
290
|
-
name: "goal",
|
|
291
|
-
description: "T1.2.4 — owner-governed goal operations: set, list, accept, reject",
|
|
292
|
-
execute: async (input) => {
|
|
293
|
-
const surface = await Promise.resolve(opsRouter.dispatch("goal", input));
|
|
294
|
-
return surface;
|
|
295
|
-
},
|
|
296
|
-
},
|
|
297
|
-
{
|
|
298
|
-
name: "narrative",
|
|
299
|
-
description: "T1.2.1 — show current NarrativeState: focus, progress, next intent, source refs, grounding status",
|
|
300
|
-
execute: async (input) => {
|
|
301
|
-
const narrativeId = typeof input?.narrativeId === "string" ? input.narrativeId : undefined;
|
|
302
|
-
const data = await readModels.loadNarrative(narrativeId);
|
|
303
|
-
return { ok: true, data };
|
|
304
|
-
},
|
|
305
|
-
},
|
|
306
|
-
{
|
|
307
|
-
name: "dream:recent",
|
|
308
|
-
description: "T1.2.2 — show recent Dream run results, candidate/accepted status, fallback/partial summary",
|
|
309
|
-
execute: async (input) => {
|
|
310
|
-
const limit = typeof input?.limit === "number" ? input.limit : 5;
|
|
311
|
-
const data = await readModels.loadDreamRecent(limit);
|
|
312
|
-
return { ok: true, data };
|
|
313
|
-
},
|
|
314
|
-
},
|
|
315
|
-
{
|
|
316
|
-
name: "cycle:recent",
|
|
317
|
-
description: "T1.2.5 — aggregate recent heartbeat, narrative, Dream, delivery, connector cycle summary",
|
|
318
|
-
execute: async (input) => {
|
|
319
|
-
const limit = typeof input?.limit === "number" ? input.limit : 5;
|
|
320
|
-
const data = await readModels.loadCycleRecent(limit);
|
|
321
|
-
return { ok: true, data };
|
|
322
|
-
},
|
|
323
|
-
},
|
|
324
|
-
];
|
|
325
|
-
}
|
|
1
|
+
import { credentialVerify } from "./credential.js";
|
|
2
|
+
import { connectorInit } from "./connector-init.js";
|
|
3
|
+
import { formatExplanation } from "../explain/format-explanation.js";
|
|
4
|
+
import { explainSurfaceSubject } from "../explain/explain-surface-subject.js";
|
|
5
|
+
import { showOperatorFallback, OperatorFallbackNotFoundError, } from "../ops/show-operator-fallback.js";
|
|
6
|
+
import { runStorageModeSmoke } from "../../storage/bootstrap/storage-mode-smoke.js";
|
|
7
|
+
import { policySet } from "./policy.js";
|
|
8
|
+
const notImplemented = async (command) => ({
|
|
9
|
+
ok: false,
|
|
10
|
+
command,
|
|
11
|
+
message: "Command shell registered. Implementation lands in later Wave tasks.",
|
|
12
|
+
});
|
|
13
|
+
function explainSubjectError(code, message) {
|
|
14
|
+
return {
|
|
15
|
+
ok: false,
|
|
16
|
+
error: {
|
|
17
|
+
code,
|
|
18
|
+
message,
|
|
19
|
+
requiredUserInput: ["subject"],
|
|
20
|
+
nextStep: "reinvoke_explain_with_supported_subject",
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export function createCliCommands(deps) {
|
|
25
|
+
const { readModels, actionBridge, opsRouter } = deps;
|
|
26
|
+
const opsCommand = (name, description) => ({
|
|
27
|
+
name,
|
|
28
|
+
description,
|
|
29
|
+
execute: async (input) => {
|
|
30
|
+
const surface = await Promise.resolve(opsRouter.dispatch(name, input));
|
|
31
|
+
return surface;
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
return [
|
|
35
|
+
{
|
|
36
|
+
name: "status",
|
|
37
|
+
description: "T1.2.6 — Show v6 aggregated Second Nature status (narrative + dream + cycles + runtime)",
|
|
38
|
+
execute: async (input) => {
|
|
39
|
+
const scope = typeof input?.scope === "string" ? input.scope : undefined;
|
|
40
|
+
const data = await readModels.loadV6Status(scope);
|
|
41
|
+
return { ok: true, data };
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
name: "policy",
|
|
46
|
+
description: "Write or inspect policy state",
|
|
47
|
+
execute: async (input) => {
|
|
48
|
+
const action = typeof input?.action === "string" ? input.action : "show";
|
|
49
|
+
if (action === "set") {
|
|
50
|
+
return policySet(actionBridge, input);
|
|
51
|
+
}
|
|
52
|
+
// T1.2.6 (SN-CODE-01): `policy show` (default) returns the current rhythm policy
|
|
53
|
+
// snapshot. Returns workspace defaults when no policy row has been persisted yet.
|
|
54
|
+
const data = await readModels.loadPolicy();
|
|
55
|
+
return { ok: true, data };
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: "credential",
|
|
60
|
+
description: "Inspect or recover credential state",
|
|
61
|
+
execute: async (input) => {
|
|
62
|
+
const action = typeof input?.action === "string" ? input.action : "show";
|
|
63
|
+
if (action === "verify") {
|
|
64
|
+
return credentialVerify(actionBridge, input);
|
|
65
|
+
}
|
|
66
|
+
const platformId = typeof input?.platformId === "string" ? input.platformId : "unknown";
|
|
67
|
+
const data = await readModels.loadCredential(platformId);
|
|
68
|
+
return { ok: true, data };
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
name: "quiet",
|
|
73
|
+
description: "Inspect Quiet lifecycle state",
|
|
74
|
+
execute: async (input) => {
|
|
75
|
+
const scope = typeof input?.scope === "string" ? input.scope : undefined;
|
|
76
|
+
const data = await readModels.loadQuiet(scope);
|
|
77
|
+
return { ok: true, data };
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
name: "report",
|
|
82
|
+
description: "Show daily report artifacts",
|
|
83
|
+
execute: async (input) => {
|
|
84
|
+
const day = typeof input?.day === "string"
|
|
85
|
+
? input.day
|
|
86
|
+
: new Date().toISOString().slice(0, 10);
|
|
87
|
+
const data = await readModels.loadDailyReport(day);
|
|
88
|
+
return { ok: true, data };
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
name: "session",
|
|
93
|
+
description: "Inspect continuity session details",
|
|
94
|
+
execute: async (input) => {
|
|
95
|
+
const sessionId = typeof input?.sessionId === "string" ? input.sessionId : "";
|
|
96
|
+
if (!sessionId) {
|
|
97
|
+
return {
|
|
98
|
+
ok: false,
|
|
99
|
+
error: {
|
|
100
|
+
code: "MISSING_SESSION_ID",
|
|
101
|
+
message: "session show requires sessionId",
|
|
102
|
+
requiredUserInput: ["session_id"],
|
|
103
|
+
nextStep: "reinvoke_session_with_session_id",
|
|
104
|
+
},
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
const data = await readModels.loadSession(sessionId);
|
|
108
|
+
return { ok: true, data };
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
name: "audit",
|
|
113
|
+
description: "Inspect audit and evidence views",
|
|
114
|
+
execute: async () => {
|
|
115
|
+
// T1.2.7 (SN-CODE-02): minimal read-side view — list all in-memory audit events.
|
|
116
|
+
// Empty store returns { totalEvents: 0, events: [] } (honest empty, not an error).
|
|
117
|
+
const data = await readModels.loadAuditSummary();
|
|
118
|
+
return { ok: true, data };
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
name: "explain",
|
|
123
|
+
description: "Answer why-question explain requests",
|
|
124
|
+
execute: async (input) => {
|
|
125
|
+
const subjectRaw = typeof input?.subject === "string" ? input.subject.trim() : "";
|
|
126
|
+
if (!subjectRaw) {
|
|
127
|
+
return {
|
|
128
|
+
ok: false,
|
|
129
|
+
error: {
|
|
130
|
+
code: "MISSING_EXPLAIN_SUBJECT",
|
|
131
|
+
message: "explain requires subject",
|
|
132
|
+
requiredUserInput: ["subject"],
|
|
133
|
+
nextStep: "reinvoke_explain_with_subject",
|
|
134
|
+
},
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
let model;
|
|
138
|
+
try {
|
|
139
|
+
model = await explainSurfaceSubject(subjectRaw, readModels);
|
|
140
|
+
}
|
|
141
|
+
catch (error) {
|
|
142
|
+
const code = error.message;
|
|
143
|
+
if (code === "explain_subject_requires_id") {
|
|
144
|
+
return explainSubjectError("EXPLAIN_SUBJECT_REQUIRES_ID", "subject must include identifier");
|
|
145
|
+
}
|
|
146
|
+
if (code === "explain_subject_unsupported") {
|
|
147
|
+
return explainSubjectError("EXPLAIN_SUBJECT_UNSUPPORTED", "supported subjects include decision:, platform:, outreach:, soul:, fallback:, delivery:, probe:, report:, source:, relationship:");
|
|
148
|
+
}
|
|
149
|
+
return explainSubjectError("EXPLAIN_SUBJECT_INVALID", "invalid explain subject");
|
|
150
|
+
}
|
|
151
|
+
return {
|
|
152
|
+
ok: true,
|
|
153
|
+
data: formatExplanation(model),
|
|
154
|
+
};
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
name: "heartbeat_check",
|
|
159
|
+
description: "Workspace heartbeat_check ops surface (v5 HeartbeatSurfaceResult)",
|
|
160
|
+
execute: async (input) => {
|
|
161
|
+
const surface = await Promise.resolve(opsRouter.dispatch("heartbeat_check", input));
|
|
162
|
+
return surface;
|
|
163
|
+
},
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
name: "storage_smoke",
|
|
167
|
+
description: "T4.1.4 — report sql.js vs native SQLite probe and optional artifact→index repair fixture",
|
|
168
|
+
execute: async (input) => {
|
|
169
|
+
const runRepairFixture = Boolean(input?.runRepairFixture);
|
|
170
|
+
const workspaceRoot = typeof input?.workspaceRoot === "string"
|
|
171
|
+
? input.workspaceRoot
|
|
172
|
+
: undefined;
|
|
173
|
+
const data = await runStorageModeSmoke({
|
|
174
|
+
runRepairFixture,
|
|
175
|
+
workspaceRoot,
|
|
176
|
+
});
|
|
177
|
+
return { ok: true, data };
|
|
178
|
+
},
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
name: "fallback",
|
|
182
|
+
description: "Operator-visible delivery fallback view (status always not_sent)",
|
|
183
|
+
execute: async (input) => {
|
|
184
|
+
const ref = typeof input?.ref === "string" ? input.ref.trim() : "";
|
|
185
|
+
if (!ref) {
|
|
186
|
+
return {
|
|
187
|
+
ok: false,
|
|
188
|
+
error: {
|
|
189
|
+
code: "MISSING_FALLBACK_REF",
|
|
190
|
+
message: "fallback requires ref (e.g. fallback:…)",
|
|
191
|
+
requiredUserInput: ["ref"],
|
|
192
|
+
nextStep: "reinvoke_with_ref",
|
|
193
|
+
},
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
try {
|
|
197
|
+
const data = await showOperatorFallback(ref, readModels);
|
|
198
|
+
return { ok: true, data };
|
|
199
|
+
}
|
|
200
|
+
catch (error) {
|
|
201
|
+
if (error instanceof OperatorFallbackNotFoundError) {
|
|
202
|
+
return {
|
|
203
|
+
ok: false,
|
|
204
|
+
error: {
|
|
205
|
+
code: error.code,
|
|
206
|
+
message: error.message,
|
|
207
|
+
requiredUserInput: ["ref"],
|
|
208
|
+
nextStep: "verify_fallback_ref_from_delivery_audit",
|
|
209
|
+
},
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
throw error;
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
name: "capability_probe",
|
|
218
|
+
description: "T1.2.8 — probe host capabilities and persist report (static unknown adapter in CLI context)",
|
|
219
|
+
execute: async (input) => {
|
|
220
|
+
const surface = await Promise.resolve(opsRouter.dispatch("capability_probe", input));
|
|
221
|
+
return surface;
|
|
222
|
+
},
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
name: "near_real_smoke",
|
|
226
|
+
description: "T3.3.2 — run near-real connector smoke (sentinel Moltbook + EvoMap, no live HTTP)",
|
|
227
|
+
execute: async (input) => {
|
|
228
|
+
const surface = await Promise.resolve(opsRouter.dispatch("near_real_smoke", input));
|
|
229
|
+
return surface;
|
|
230
|
+
},
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
name: "connector_init",
|
|
234
|
+
description: "T1.3.1 — generate connector manifest stub under .second-nature/connectors/{platformId}/",
|
|
235
|
+
execute: async (input) => {
|
|
236
|
+
const result = await connectorInit({
|
|
237
|
+
platformId: typeof input?.platformId === "string" ? input.platformId : "",
|
|
238
|
+
family: typeof input?.family === "string"
|
|
239
|
+
? input.family
|
|
240
|
+
: undefined,
|
|
241
|
+
displayName: typeof input?.displayName === "string"
|
|
242
|
+
? input.displayName
|
|
243
|
+
: undefined,
|
|
244
|
+
runnerKind: typeof input?.runnerKind === "string"
|
|
245
|
+
? input.runnerKind
|
|
246
|
+
: undefined,
|
|
247
|
+
force: Boolean(input?.force),
|
|
248
|
+
workspaceRoot: typeof input?.workspaceRoot === "string"
|
|
249
|
+
? input.workspaceRoot
|
|
250
|
+
: undefined,
|
|
251
|
+
});
|
|
252
|
+
return result;
|
|
253
|
+
},
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
name: "connector_behavior_add",
|
|
257
|
+
description: "Add a workspace-defined connector behavior to an existing manifest without executing custom code",
|
|
258
|
+
execute: async (input) => {
|
|
259
|
+
const surface = await Promise.resolve(opsRouter.dispatch("connector_behavior_add", input));
|
|
260
|
+
return surface;
|
|
261
|
+
},
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
name: "connector_status",
|
|
265
|
+
description: "T1.2.3 — show connector inventory, trust/executable/conflict summary",
|
|
266
|
+
execute: async (input) => {
|
|
267
|
+
const surface = await Promise.resolve(opsRouter.dispatch("connector_status", input));
|
|
268
|
+
return surface;
|
|
269
|
+
},
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
name: "connector_test",
|
|
273
|
+
description: "T1.2.3 — dry-run test a connector by platformId (default dry-run)",
|
|
274
|
+
execute: async (input) => {
|
|
275
|
+
const surface = await Promise.resolve(opsRouter.dispatch("connector_test", input));
|
|
276
|
+
return surface;
|
|
277
|
+
},
|
|
278
|
+
},
|
|
279
|
+
opsCommand("connector:run", "T-ROS.C.3 — manually execute a connector capability outside heartbeat cadence"),
|
|
280
|
+
opsCommand("self_health", "T-ROS.C.1 — show v7 self-health snapshot and degraded dimensions"),
|
|
281
|
+
opsCommand("tool_affordance", "T-ROS.C.1 — show v7 tool affordance map or explicit unavailable state"),
|
|
282
|
+
opsCommand("heartbeat_digest", "T-ROS.C.1 — assemble v7 heartbeat digest for a day"),
|
|
283
|
+
opsCommand("snapshot:capture", "T-V7C.C.1 — capture restore snapshot and narrative timeline version"),
|
|
284
|
+
opsCommand("narrative:diff", "T-ROS.C.1 — compare two narrative timeline versions"),
|
|
285
|
+
opsCommand("timeline", "T-ROS.C.1 — query v7 narrative timeline with cursor pagination"),
|
|
286
|
+
opsCommand("restore", "T-ROS.C.1 — apply bounded restore and write restore audit"),
|
|
287
|
+
opsCommand("runtime_secret_bootstrap", "T-ROS.C.1 — inspect runtime secret anchor health without exposing plaintext"),
|
|
288
|
+
opsCommand("guidance_payload", "T-V7C.C.4R — assemble impulse + atmosphere for a scene context"),
|
|
289
|
+
{
|
|
290
|
+
name: "goal",
|
|
291
|
+
description: "T1.2.4 — owner-governed goal operations: set, list, accept, reject",
|
|
292
|
+
execute: async (input) => {
|
|
293
|
+
const surface = await Promise.resolve(opsRouter.dispatch("goal", input));
|
|
294
|
+
return surface;
|
|
295
|
+
},
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
name: "narrative",
|
|
299
|
+
description: "T1.2.1 — show current NarrativeState: focus, progress, next intent, source refs, grounding status",
|
|
300
|
+
execute: async (input) => {
|
|
301
|
+
const narrativeId = typeof input?.narrativeId === "string" ? input.narrativeId : undefined;
|
|
302
|
+
const data = await readModels.loadNarrative(narrativeId);
|
|
303
|
+
return { ok: true, data };
|
|
304
|
+
},
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
name: "dream:recent",
|
|
308
|
+
description: "T1.2.2 — show recent Dream run results, candidate/accepted status, fallback/partial summary",
|
|
309
|
+
execute: async (input) => {
|
|
310
|
+
const limit = typeof input?.limit === "number" ? input.limit : 5;
|
|
311
|
+
const data = await readModels.loadDreamRecent(limit);
|
|
312
|
+
return { ok: true, data };
|
|
313
|
+
},
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
name: "cycle:recent",
|
|
317
|
+
description: "T1.2.5 — aggregate recent heartbeat, narrative, Dream, delivery, connector cycle summary",
|
|
318
|
+
execute: async (input) => {
|
|
319
|
+
const limit = typeof input?.limit === "number" ? input.limit : 5;
|
|
320
|
+
const data = await readModels.loadCycleRecent(limit);
|
|
321
|
+
return { ok: true, data };
|
|
322
|
+
},
|
|
323
|
+
},
|
|
324
|
+
];
|
|
325
|
+
}
|