@runcore-sh/runcore 0.1.2
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/LICENSE +21 -0
- package/README.md +353 -0
- package/dist/activity/log.d.ts +37 -0
- package/dist/activity/log.d.ts.map +1 -0
- package/dist/activity/log.js +259 -0
- package/dist/activity/log.js.map +1 -0
- package/dist/adapters/storage/gdrive-backup.d.ts +20 -0
- package/dist/adapters/storage/gdrive-backup.d.ts.map +1 -0
- package/dist/adapters/storage/gdrive-backup.js +244 -0
- package/dist/adapters/storage/gdrive-backup.js.map +1 -0
- package/dist/adapters/storage/local.d.ts +19 -0
- package/dist/adapters/storage/local.d.ts.map +1 -0
- package/dist/adapters/storage/local.js +101 -0
- package/dist/adapters/storage/local.js.map +1 -0
- package/dist/adapters/storage/types.d.ts +44 -0
- package/dist/adapters/storage/types.d.ts.map +1 -0
- package/dist/adapters/storage/types.js +6 -0
- package/dist/adapters/storage/types.js.map +1 -0
- package/dist/agents/autonomous.d.ts +67 -0
- package/dist/agents/autonomous.d.ts.map +1 -0
- package/dist/agents/autonomous.js +710 -0
- package/dist/agents/autonomous.js.map +1 -0
- package/dist/agents/commit.d.ts +22 -0
- package/dist/agents/commit.d.ts.map +1 -0
- package/dist/agents/commit.js +120 -0
- package/dist/agents/commit.js.map +1 -0
- package/dist/agents/continue.d.ts +19 -0
- package/dist/agents/continue.d.ts.map +1 -0
- package/dist/agents/continue.js +158 -0
- package/dist/agents/continue.js.map +1 -0
- package/dist/agents/cooldown.d.ts +127 -0
- package/dist/agents/cooldown.d.ts.map +1 -0
- package/dist/agents/cooldown.js +396 -0
- package/dist/agents/cooldown.js.map +1 -0
- package/dist/agents/dedup-guard.d.ts +15 -0
- package/dist/agents/dedup-guard.d.ts.map +1 -0
- package/dist/agents/dedup-guard.js +128 -0
- package/dist/agents/dedup-guard.js.map +1 -0
- package/dist/agents/index.d.ts +34 -0
- package/dist/agents/index.d.ts.map +1 -0
- package/dist/agents/index.js +51 -0
- package/dist/agents/index.js.map +1 -0
- package/dist/agents/instance-manager.d.ts +262 -0
- package/dist/agents/instance-manager.d.ts.map +1 -0
- package/dist/agents/instance-manager.js +850 -0
- package/dist/agents/instance-manager.js.map +1 -0
- package/dist/agents/locks.d.ts +81 -0
- package/dist/agents/locks.d.ts.map +1 -0
- package/dist/agents/locks.js +234 -0
- package/dist/agents/locks.js.map +1 -0
- package/dist/agents/memory.d.ts +37 -0
- package/dist/agents/memory.d.ts.map +1 -0
- package/dist/agents/memory.js +92 -0
- package/dist/agents/memory.js.map +1 -0
- package/dist/agents/monitor.d.ts +16 -0
- package/dist/agents/monitor.d.ts.map +1 -0
- package/dist/agents/monitor.js +235 -0
- package/dist/agents/monitor.js.map +1 -0
- package/dist/agents/orchestration.d.ts +218 -0
- package/dist/agents/orchestration.d.ts.map +1 -0
- package/dist/agents/orchestration.js +715 -0
- package/dist/agents/orchestration.js.map +1 -0
- package/dist/agents/recover.d.ts +30 -0
- package/dist/agents/recover.d.ts.map +1 -0
- package/dist/agents/recover.js +166 -0
- package/dist/agents/recover.js.map +1 -0
- package/dist/agents/reflection.d.ts +36 -0
- package/dist/agents/reflection.d.ts.map +1 -0
- package/dist/agents/reflection.js +198 -0
- package/dist/agents/reflection.js.map +1 -0
- package/dist/agents/runtime/bus.d.ts +46 -0
- package/dist/agents/runtime/bus.d.ts.map +1 -0
- package/dist/agents/runtime/bus.js +174 -0
- package/dist/agents/runtime/bus.js.map +1 -0
- package/dist/agents/runtime/config.d.ts +14 -0
- package/dist/agents/runtime/config.d.ts.map +1 -0
- package/dist/agents/runtime/config.js +100 -0
- package/dist/agents/runtime/config.js.map +1 -0
- package/dist/agents/runtime/driver.d.ts +25 -0
- package/dist/agents/runtime/driver.d.ts.map +1 -0
- package/dist/agents/runtime/driver.js +215 -0
- package/dist/agents/runtime/driver.js.map +1 -0
- package/dist/agents/runtime/errors.d.ts +30 -0
- package/dist/agents/runtime/errors.d.ts.map +1 -0
- package/dist/agents/runtime/errors.js +40 -0
- package/dist/agents/runtime/errors.js.map +1 -0
- package/dist/agents/runtime/index.d.ts +29 -0
- package/dist/agents/runtime/index.d.ts.map +1 -0
- package/dist/agents/runtime/index.js +54 -0
- package/dist/agents/runtime/index.js.map +1 -0
- package/dist/agents/runtime/lifecycle.d.ts +46 -0
- package/dist/agents/runtime/lifecycle.d.ts.map +1 -0
- package/dist/agents/runtime/lifecycle.js +116 -0
- package/dist/agents/runtime/lifecycle.js.map +1 -0
- package/dist/agents/runtime/manager.d.ts +129 -0
- package/dist/agents/runtime/manager.d.ts.map +1 -0
- package/dist/agents/runtime/manager.js +947 -0
- package/dist/agents/runtime/manager.js.map +1 -0
- package/dist/agents/runtime/registry.d.ts +66 -0
- package/dist/agents/runtime/registry.d.ts.map +1 -0
- package/dist/agents/runtime/registry.js +195 -0
- package/dist/agents/runtime/registry.js.map +1 -0
- package/dist/agents/runtime/resources.d.ts +49 -0
- package/dist/agents/runtime/resources.d.ts.map +1 -0
- package/dist/agents/runtime/resources.js +146 -0
- package/dist/agents/runtime/resources.js.map +1 -0
- package/dist/agents/runtime/types.d.ts +168 -0
- package/dist/agents/runtime/types.d.ts.map +1 -0
- package/dist/agents/runtime/types.js +24 -0
- package/dist/agents/runtime/types.js.map +1 -0
- package/dist/agents/runtime.d.ts +240 -0
- package/dist/agents/runtime.d.ts.map +1 -0
- package/dist/agents/runtime.js +577 -0
- package/dist/agents/runtime.js.map +1 -0
- package/dist/agents/spawn.d.ts +49 -0
- package/dist/agents/spawn.d.ts.map +1 -0
- package/dist/agents/spawn.js +975 -0
- package/dist/agents/spawn.js.map +1 -0
- package/dist/agents/store.d.ts +29 -0
- package/dist/agents/store.d.ts.map +1 -0
- package/dist/agents/store.js +174 -0
- package/dist/agents/store.js.map +1 -0
- package/dist/agents/triage.d.ts +23 -0
- package/dist/agents/triage.d.ts.map +1 -0
- package/dist/agents/triage.js +81 -0
- package/dist/agents/triage.js.map +1 -0
- package/dist/agents/types.d.ts +37 -0
- package/dist/agents/types.d.ts.map +1 -0
- package/dist/agents/types.js +2 -0
- package/dist/agents/types.js.map +1 -0
- package/dist/agents/workflow.d.ts +137 -0
- package/dist/agents/workflow.d.ts.map +1 -0
- package/dist/agents/workflow.js +542 -0
- package/dist/agents/workflow.js.map +1 -0
- package/dist/auth/crypto.d.ts +22 -0
- package/dist/auth/crypto.d.ts.map +1 -0
- package/dist/auth/crypto.js +42 -0
- package/dist/auth/crypto.js.map +1 -0
- package/dist/auth/identity.d.ts +89 -0
- package/dist/auth/identity.d.ts.map +1 -0
- package/dist/auth/identity.js +264 -0
- package/dist/auth/identity.js.map +1 -0
- package/dist/avatar/client.d.ts +34 -0
- package/dist/avatar/client.d.ts.map +1 -0
- package/dist/avatar/client.js +172 -0
- package/dist/avatar/client.js.map +1 -0
- package/dist/avatar/sidecar.d.ts +16 -0
- package/dist/avatar/sidecar.d.ts.map +1 -0
- package/dist/avatar/sidecar.js +125 -0
- package/dist/avatar/sidecar.js.map +1 -0
- package/dist/board/provider.d.ts +13 -0
- package/dist/board/provider.d.ts.map +1 -0
- package/dist/board/provider.js +19 -0
- package/dist/board/provider.js.map +1 -0
- package/dist/board/types.d.ts +76 -0
- package/dist/board/types.d.ts.map +1 -0
- package/dist/board/types.js +7 -0
- package/dist/board/types.js.map +1 -0
- package/dist/brain/skills.d.ts +177 -0
- package/dist/brain/skills.d.ts.map +1 -0
- package/dist/brain/skills.js +452 -0
- package/dist/brain/skills.js.map +1 -0
- package/dist/brain.d.ts +42 -0
- package/dist/brain.d.ts.map +1 -0
- package/dist/brain.js +98 -0
- package/dist/brain.js.map +1 -0
- package/dist/browser/sessions.d.ts +23 -0
- package/dist/browser/sessions.d.ts.map +1 -0
- package/dist/browser/sessions.js +121 -0
- package/dist/browser/sessions.js.map +1 -0
- package/dist/cache/file.d.ts +56 -0
- package/dist/cache/file.d.ts.map +1 -0
- package/dist/cache/file.js +176 -0
- package/dist/cache/file.js.map +1 -0
- package/dist/cache/index.d.ts +64 -0
- package/dist/cache/index.d.ts.map +1 -0
- package/dist/cache/index.js +108 -0
- package/dist/cache/index.js.map +1 -0
- package/dist/cache/keys.d.ts +29 -0
- package/dist/cache/keys.d.ts.map +1 -0
- package/dist/cache/keys.js +52 -0
- package/dist/cache/keys.js.map +1 -0
- package/dist/cache/llm-cache.d.ts +70 -0
- package/dist/cache/llm-cache.d.ts.map +1 -0
- package/dist/cache/llm-cache.js +165 -0
- package/dist/cache/llm-cache.js.map +1 -0
- package/dist/cache/memory.d.ts +53 -0
- package/dist/cache/memory.d.ts.map +1 -0
- package/dist/cache/memory.js +114 -0
- package/dist/cache/memory.js.map +1 -0
- package/dist/calendar/google-adapter.d.ts +16 -0
- package/dist/calendar/google-adapter.d.ts.map +1 -0
- package/dist/calendar/google-adapter.js +163 -0
- package/dist/calendar/google-adapter.js.map +1 -0
- package/dist/calendar/index.d.ts +8 -0
- package/dist/calendar/index.d.ts.map +1 -0
- package/dist/calendar/index.js +7 -0
- package/dist/calendar/index.js.map +1 -0
- package/dist/calendar/routes.d.ts +7 -0
- package/dist/calendar/routes.d.ts.map +1 -0
- package/dist/calendar/routes.js +199 -0
- package/dist/calendar/routes.js.map +1 -0
- package/dist/calendar/store.d.ts +73 -0
- package/dist/calendar/store.d.ts.map +1 -0
- package/dist/calendar/store.js +373 -0
- package/dist/calendar/store.js.map +1 -0
- package/dist/calendar/types.d.ts +99 -0
- package/dist/calendar/types.d.ts.map +1 -0
- package/dist/calendar/types.js +7 -0
- package/dist/calendar/types.js.map +1 -0
- package/dist/capabilities/definitions/board.d.ts +7 -0
- package/dist/capabilities/definitions/board.d.ts.map +1 -0
- package/dist/capabilities/definitions/board.js +232 -0
- package/dist/capabilities/definitions/board.js.map +1 -0
- package/dist/capabilities/definitions/browser.d.ts +18 -0
- package/dist/capabilities/definitions/browser.d.ts.map +1 -0
- package/dist/capabilities/definitions/browser.js +242 -0
- package/dist/capabilities/definitions/browser.js.map +1 -0
- package/dist/capabilities/definitions/calendar-context.d.ts +8 -0
- package/dist/capabilities/definitions/calendar-context.d.ts.map +1 -0
- package/dist/capabilities/definitions/calendar-context.js +41 -0
- package/dist/capabilities/definitions/calendar-context.js.map +1 -0
- package/dist/capabilities/definitions/calendar.d.ts +7 -0
- package/dist/capabilities/definitions/calendar.d.ts.map +1 -0
- package/dist/capabilities/definitions/calendar.js +173 -0
- package/dist/capabilities/definitions/calendar.js.map +1 -0
- package/dist/capabilities/definitions/docs.d.ts +6 -0
- package/dist/capabilities/definitions/docs.d.ts.map +1 -0
- package/dist/capabilities/definitions/docs.js +62 -0
- package/dist/capabilities/definitions/docs.js.map +1 -0
- package/dist/capabilities/definitions/email-context.d.ts +7 -0
- package/dist/capabilities/definitions/email-context.d.ts.map +1 -0
- package/dist/capabilities/definitions/email-context.js +55 -0
- package/dist/capabilities/definitions/email-context.js.map +1 -0
- package/dist/capabilities/definitions/email.d.ts +7 -0
- package/dist/capabilities/definitions/email.d.ts.map +1 -0
- package/dist/capabilities/definitions/email.js +94 -0
- package/dist/capabilities/definitions/email.js.map +1 -0
- package/dist/capabilities/definitions/task-done.d.ts +10 -0
- package/dist/capabilities/definitions/task-done.d.ts.map +1 -0
- package/dist/capabilities/definitions/task-done.js +83 -0
- package/dist/capabilities/definitions/task-done.js.map +1 -0
- package/dist/capabilities/definitions/vault-context.d.ts +12 -0
- package/dist/capabilities/definitions/vault-context.d.ts.map +1 -0
- package/dist/capabilities/definitions/vault-context.js +62 -0
- package/dist/capabilities/definitions/vault-context.js.map +1 -0
- package/dist/capabilities/definitions/web-search-context.d.ts +22 -0
- package/dist/capabilities/definitions/web-search-context.d.ts.map +1 -0
- package/dist/capabilities/definitions/web-search-context.js +60 -0
- package/dist/capabilities/definitions/web-search-context.js.map +1 -0
- package/dist/capabilities/index.d.ts +18 -0
- package/dist/capabilities/index.d.ts.map +1 -0
- package/dist/capabilities/index.js +21 -0
- package/dist/capabilities/index.js.map +1 -0
- package/dist/capabilities/registry.d.ts +84 -0
- package/dist/capabilities/registry.d.ts.map +1 -0
- package/dist/capabilities/registry.js +248 -0
- package/dist/capabilities/registry.js.map +1 -0
- package/dist/capabilities/types.d.ts +157 -0
- package/dist/capabilities/types.d.ts.map +1 -0
- package/dist/capabilities/types.js +35 -0
- package/dist/capabilities/types.js.map +1 -0
- package/dist/channels/whatsapp.d.ts +88 -0
- package/dist/channels/whatsapp.d.ts.map +1 -0
- package/dist/channels/whatsapp.js +200 -0
- package/dist/channels/whatsapp.js.map +1 -0
- package/dist/cli/backup.d.ts +13 -0
- package/dist/cli/backup.d.ts.map +1 -0
- package/dist/cli/backup.js +176 -0
- package/dist/cli/backup.js.map +1 -0
- package/dist/cli.d.ts +12 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +231 -0
- package/dist/cli.js.map +1 -0
- package/dist/config/defaults.d.ts +45 -0
- package/dist/config/defaults.d.ts.map +1 -0
- package/dist/config/defaults.js +54 -0
- package/dist/config/defaults.js.map +1 -0
- package/dist/contacts/index.d.ts +3 -0
- package/dist/contacts/index.d.ts.map +1 -0
- package/dist/contacts/index.js +2 -0
- package/dist/contacts/index.js.map +1 -0
- package/dist/contacts/store.d.ts +58 -0
- package/dist/contacts/store.d.ts.map +1 -0
- package/dist/contacts/store.js +278 -0
- package/dist/contacts/store.js.map +1 -0
- package/dist/contacts/types.d.ts +47 -0
- package/dist/contacts/types.d.ts.map +1 -0
- package/dist/contacts/types.js +5 -0
- package/dist/contacts/types.js.map +1 -0
- package/dist/context/assembler.d.ts +26 -0
- package/dist/context/assembler.d.ts.map +1 -0
- package/dist/context/assembler.js +65 -0
- package/dist/context/assembler.js.map +1 -0
- package/dist/context/compaction.d.ts +34 -0
- package/dist/context/compaction.d.ts.map +1 -0
- package/dist/context/compaction.js +84 -0
- package/dist/context/compaction.js.map +1 -0
- package/dist/context/index.d.ts +3 -0
- package/dist/context/index.d.ts.map +1 -0
- package/dist/context/index.js +2 -0
- package/dist/context/index.js.map +1 -0
- package/dist/core/registry/index.d.ts +12 -0
- package/dist/core/registry/index.d.ts.map +1 -0
- package/dist/core/registry/index.js +14 -0
- package/dist/core/registry/index.js.map +1 -0
- package/dist/core/registry/publisher.d.ts +22 -0
- package/dist/core/registry/publisher.d.ts.map +1 -0
- package/dist/core/registry/publisher.js +195 -0
- package/dist/core/registry/publisher.js.map +1 -0
- package/dist/core/registry/registry.d.ts +92 -0
- package/dist/core/registry/registry.d.ts.map +1 -0
- package/dist/core/registry/registry.js +254 -0
- package/dist/core/registry/registry.js.map +1 -0
- package/dist/core/registry/search.d.ts +12 -0
- package/dist/core/registry/search.d.ts.map +1 -0
- package/dist/core/registry/search.js +132 -0
- package/dist/core/registry/search.js.map +1 -0
- package/dist/core/registry/store.d.ts +55 -0
- package/dist/core/registry/store.d.ts.map +1 -0
- package/dist/core/registry/store.js +185 -0
- package/dist/core/registry/store.js.map +1 -0
- package/dist/core/registry/types.d.ts +141 -0
- package/dist/core/registry/types.d.ts.map +1 -0
- package/dist/core/registry/types.js +30 -0
- package/dist/core/registry/types.js.map +1 -0
- package/dist/core/registry/versions.d.ts +56 -0
- package/dist/core/registry/versions.d.ts.map +1 -0
- package/dist/core/registry/versions.js +101 -0
- package/dist/core/registry/versions.js.map +1 -0
- package/dist/credentials/store.d.ts +59 -0
- package/dist/credentials/store.d.ts.map +1 -0
- package/dist/credentials/store.js +178 -0
- package/dist/credentials/store.js.map +1 -0
- package/dist/files/agent-api.d.ts +50 -0
- package/dist/files/agent-api.d.ts.map +1 -0
- package/dist/files/agent-api.js +126 -0
- package/dist/files/agent-api.js.map +1 -0
- package/dist/files/compress.d.ts +20 -0
- package/dist/files/compress.d.ts.map +1 -0
- package/dist/files/compress.js +83 -0
- package/dist/files/compress.js.map +1 -0
- package/dist/files/extract.d.ts +11 -0
- package/dist/files/extract.d.ts.map +1 -0
- package/dist/files/extract.js +33 -0
- package/dist/files/extract.js.map +1 -0
- package/dist/files/gdrive.d.ts +56 -0
- package/dist/files/gdrive.d.ts.map +1 -0
- package/dist/files/gdrive.js +246 -0
- package/dist/files/gdrive.js.map +1 -0
- package/dist/files/ingest-folder.d.ts +22 -0
- package/dist/files/ingest-folder.d.ts.map +1 -0
- package/dist/files/ingest-folder.js +71 -0
- package/dist/files/ingest-folder.js.map +1 -0
- package/dist/files/ingest.d.ts +13 -0
- package/dist/files/ingest.d.ts.map +1 -0
- package/dist/files/ingest.js +127 -0
- package/dist/files/ingest.js.map +1 -0
- package/dist/files/manager.d.ts +117 -0
- package/dist/files/manager.d.ts.map +1 -0
- package/dist/files/manager.js +306 -0
- package/dist/files/manager.js.map +1 -0
- package/dist/files/store.d.ts +41 -0
- package/dist/files/store.d.ts.map +1 -0
- package/dist/files/store.js +271 -0
- package/dist/files/store.js.map +1 -0
- package/dist/files/templates.d.ts +45 -0
- package/dist/files/templates.d.ts.map +1 -0
- package/dist/files/templates.js +179 -0
- package/dist/files/templates.js.map +1 -0
- package/dist/files/types.d.ts +115 -0
- package/dist/files/types.d.ts.map +1 -0
- package/dist/files/types.js +20 -0
- package/dist/files/types.js.map +1 -0
- package/dist/files/validate.d.ts +15 -0
- package/dist/files/validate.d.ts.map +1 -0
- package/dist/files/validate.js +213 -0
- package/dist/files/validate.js.map +1 -0
- package/dist/files/version.d.ts +31 -0
- package/dist/files/version.d.ts.map +1 -0
- package/dist/files/version.js +129 -0
- package/dist/files/version.js.map +1 -0
- package/dist/github/client.d.ts +83 -0
- package/dist/github/client.d.ts.map +1 -0
- package/dist/github/client.js +408 -0
- package/dist/github/client.js.map +1 -0
- package/dist/github/commit-analysis.d.ts +30 -0
- package/dist/github/commit-analysis.d.ts.map +1 -0
- package/dist/github/commit-analysis.js +276 -0
- package/dist/github/commit-analysis.js.map +1 -0
- package/dist/github/contributor-stats.d.ts +18 -0
- package/dist/github/contributor-stats.d.ts.map +1 -0
- package/dist/github/contributor-stats.js +119 -0
- package/dist/github/contributor-stats.js.map +1 -0
- package/dist/github/issue-sla.d.ts +25 -0
- package/dist/github/issue-sla.d.ts.map +1 -0
- package/dist/github/issue-sla.js +220 -0
- package/dist/github/issue-sla.js.map +1 -0
- package/dist/github/issue-triage.d.ts +49 -0
- package/dist/github/issue-triage.d.ts.map +1 -0
- package/dist/github/issue-triage.js +286 -0
- package/dist/github/issue-triage.js.map +1 -0
- package/dist/github/pr-readiness.d.ts +18 -0
- package/dist/github/pr-readiness.d.ts.map +1 -0
- package/dist/github/pr-readiness.js +197 -0
- package/dist/github/pr-readiness.js.map +1 -0
- package/dist/github/pr-review.d.ts +17 -0
- package/dist/github/pr-review.d.ts.map +1 -0
- package/dist/github/pr-review.js +410 -0
- package/dist/github/pr-review.js.map +1 -0
- package/dist/github/release-notes.d.ts +32 -0
- package/dist/github/release-notes.d.ts.map +1 -0
- package/dist/github/release-notes.js +227 -0
- package/dist/github/release-notes.js.map +1 -0
- package/dist/github/repo-health.d.ts +17 -0
- package/dist/github/repo-health.d.ts.map +1 -0
- package/dist/github/repo-health.js +303 -0
- package/dist/github/repo-health.js.map +1 -0
- package/dist/github/retry.d.ts +39 -0
- package/dist/github/retry.d.ts.map +1 -0
- package/dist/github/retry.js +117 -0
- package/dist/github/retry.js.map +1 -0
- package/dist/github/types.d.ts +527 -0
- package/dist/github/types.d.ts.map +1 -0
- package/dist/github/types.js +8 -0
- package/dist/github/types.js.map +1 -0
- package/dist/github/webhooks.d.ts +36 -0
- package/dist/github/webhooks.d.ts.map +1 -0
- package/dist/github/webhooks.js +153 -0
- package/dist/github/webhooks.js.map +1 -0
- package/dist/goals/loop.d.ts +27 -0
- package/dist/goals/loop.d.ts.map +1 -0
- package/dist/goals/loop.js +239 -0
- package/dist/goals/loop.js.map +1 -0
- package/dist/goals/notifications.d.ts +20 -0
- package/dist/goals/notifications.d.ts.map +1 -0
- package/dist/goals/notifications.js +101 -0
- package/dist/goals/notifications.js.map +1 -0
- package/dist/goals/timer.d.ts +21 -0
- package/dist/goals/timer.d.ts.map +1 -0
- package/dist/goals/timer.js +60 -0
- package/dist/goals/timer.js.map +1 -0
- package/dist/google/auth.d.ts +84 -0
- package/dist/google/auth.d.ts.map +1 -0
- package/dist/google/auth.js +323 -0
- package/dist/google/auth.js.map +1 -0
- package/dist/google/calendar-timer.d.ts +20 -0
- package/dist/google/calendar-timer.d.ts.map +1 -0
- package/dist/google/calendar-timer.js +91 -0
- package/dist/google/calendar-timer.js.map +1 -0
- package/dist/google/calendar.d.ts +126 -0
- package/dist/google/calendar.d.ts.map +1 -0
- package/dist/google/calendar.js +270 -0
- package/dist/google/calendar.js.map +1 -0
- package/dist/google/docs.d.ts +87 -0
- package/dist/google/docs.d.ts.map +1 -0
- package/dist/google/docs.js +309 -0
- package/dist/google/docs.js.map +1 -0
- package/dist/google/gmail-send.d.ts +58 -0
- package/dist/google/gmail-send.d.ts.map +1 -0
- package/dist/google/gmail-send.js +219 -0
- package/dist/google/gmail-send.js.map +1 -0
- package/dist/google/gmail-timer.d.ts +34 -0
- package/dist/google/gmail-timer.d.ts.map +1 -0
- package/dist/google/gmail-timer.js +223 -0
- package/dist/google/gmail-timer.js.map +1 -0
- package/dist/google/gmail.d.ts +172 -0
- package/dist/google/gmail.d.ts.map +1 -0
- package/dist/google/gmail.js +470 -0
- package/dist/google/gmail.js.map +1 -0
- package/dist/google/tasks-timer.d.ts +20 -0
- package/dist/google/tasks-timer.d.ts.map +1 -0
- package/dist/google/tasks-timer.js +107 -0
- package/dist/google/tasks-timer.js.map +1 -0
- package/dist/google/tasks.d.ts +167 -0
- package/dist/google/tasks.d.ts.map +1 -0
- package/dist/google/tasks.js +331 -0
- package/dist/google/tasks.js.map +1 -0
- package/dist/google/temporal.d.ts +76 -0
- package/dist/google/temporal.d.ts.map +1 -0
- package/dist/google/temporal.js +176 -0
- package/dist/google/temporal.js.map +1 -0
- package/dist/health/alert-defaults.d.ts +12 -0
- package/dist/health/alert-defaults.d.ts.map +1 -0
- package/dist/health/alert-defaults.js +88 -0
- package/dist/health/alert-defaults.js.map +1 -0
- package/dist/health/alert-types.d.ts +97 -0
- package/dist/health/alert-types.d.ts.map +1 -0
- package/dist/health/alert-types.js +8 -0
- package/dist/health/alert-types.js.map +1 -0
- package/dist/health/alerting.d.ts +66 -0
- package/dist/health/alerting.d.ts.map +1 -0
- package/dist/health/alerting.js +373 -0
- package/dist/health/alerting.js.map +1 -0
- package/dist/health/checker.d.ts +32 -0
- package/dist/health/checker.d.ts.map +1 -0
- package/dist/health/checker.js +138 -0
- package/dist/health/checker.js.map +1 -0
- package/dist/health/checks/openrouter.d.ts +29 -0
- package/dist/health/checks/openrouter.d.ts.map +1 -0
- package/dist/health/checks/openrouter.js +75 -0
- package/dist/health/checks/openrouter.js.map +1 -0
- package/dist/health/checks.d.ts +26 -0
- package/dist/health/checks.d.ts.map +1 -0
- package/dist/health/checks.js +122 -0
- package/dist/health/checks.js.map +1 -0
- package/dist/health/components.d.ts +38 -0
- package/dist/health/components.d.ts.map +1 -0
- package/dist/health/components.js +112 -0
- package/dist/health/components.js.map +1 -0
- package/dist/health/index.d.ts +19 -0
- package/dist/health/index.d.ts.map +1 -0
- package/dist/health/index.js +23 -0
- package/dist/health/index.js.map +1 -0
- package/dist/health/recovery.d.ts +42 -0
- package/dist/health/recovery.d.ts.map +1 -0
- package/dist/health/recovery.js +138 -0
- package/dist/health/recovery.js.map +1 -0
- package/dist/health/types.d.ts +68 -0
- package/dist/health/types.d.ts.map +1 -0
- package/dist/health/types.js +5 -0
- package/dist/health/types.js.map +1 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +22 -0
- package/dist/index.js.map +1 -0
- package/dist/instance.d.ts +24 -0
- package/dist/instance.d.ts.map +1 -0
- package/dist/instance.js +48 -0
- package/dist/instance.js.map +1 -0
- package/dist/integrations/github.d.ts +83 -0
- package/dist/integrations/github.d.ts.map +1 -0
- package/dist/integrations/github.js +331 -0
- package/dist/integrations/github.js.map +1 -0
- package/dist/integrations/google-tasks.d.ts +232 -0
- package/dist/integrations/google-tasks.d.ts.map +1 -0
- package/dist/integrations/google-tasks.js +432 -0
- package/dist/integrations/google-tasks.js.map +1 -0
- package/dist/learning/extractor.d.ts +28 -0
- package/dist/learning/extractor.d.ts.map +1 -0
- package/dist/learning/extractor.js +135 -0
- package/dist/learning/extractor.js.map +1 -0
- package/dist/lib/BasePlugin.d.ts +58 -0
- package/dist/lib/BasePlugin.d.ts.map +1 -0
- package/dist/lib/BasePlugin.js +181 -0
- package/dist/lib/BasePlugin.js.map +1 -0
- package/dist/lib/PluginRegistry.d.ts +56 -0
- package/dist/lib/PluginRegistry.d.ts.map +1 -0
- package/dist/lib/PluginRegistry.js +172 -0
- package/dist/lib/PluginRegistry.js.map +1 -0
- package/dist/lib/brain-io.d.ts +60 -0
- package/dist/lib/brain-io.d.ts.map +1 -0
- package/dist/lib/brain-io.js +180 -0
- package/dist/lib/brain-io.js.map +1 -0
- package/dist/lib/encryption-config.d.ts +16 -0
- package/dist/lib/encryption-config.d.ts.map +1 -0
- package/dist/lib/encryption-config.js +40 -0
- package/dist/lib/encryption-config.js.map +1 -0
- package/dist/lib/encryption.d.ts +19 -0
- package/dist/lib/encryption.d.ts.map +1 -0
- package/dist/lib/encryption.js +65 -0
- package/dist/lib/encryption.js.map +1 -0
- package/dist/lib/key-store.d.ts +24 -0
- package/dist/lib/key-store.d.ts.map +1 -0
- package/dist/lib/key-store.js +38 -0
- package/dist/lib/key-store.js.map +1 -0
- package/dist/lib/schema-migration.d.ts +34 -0
- package/dist/lib/schema-migration.d.ts.map +1 -0
- package/dist/lib/schema-migration.js +77 -0
- package/dist/lib/schema-migration.js.map +1 -0
- package/dist/library/brain-shadow.d.ts +10 -0
- package/dist/library/brain-shadow.d.ts.map +1 -0
- package/dist/library/brain-shadow.js +158 -0
- package/dist/library/brain-shadow.js.map +1 -0
- package/dist/library/index.d.ts +7 -0
- package/dist/library/index.d.ts.map +1 -0
- package/dist/library/index.js +6 -0
- package/dist/library/index.js.map +1 -0
- package/dist/library/routes.d.ts +7 -0
- package/dist/library/routes.d.ts.map +1 -0
- package/dist/library/routes.js +473 -0
- package/dist/library/routes.js.map +1 -0
- package/dist/library/store.d.ts +54 -0
- package/dist/library/store.d.ts.map +1 -0
- package/dist/library/store.js +403 -0
- package/dist/library/store.js.map +1 -0
- package/dist/library/types.d.ts +56 -0
- package/dist/library/types.d.ts.map +1 -0
- package/dist/library/types.js +12 -0
- package/dist/library/types.js.map +1 -0
- package/dist/llm/cache.d.ts +42 -0
- package/dist/llm/cache.d.ts.map +1 -0
- package/dist/llm/cache.js +104 -0
- package/dist/llm/cache.js.map +1 -0
- package/dist/llm/complete.d.ts +24 -0
- package/dist/llm/complete.d.ts.map +1 -0
- package/dist/llm/complete.js +56 -0
- package/dist/llm/complete.js.map +1 -0
- package/dist/llm/errors.d.ts +28 -0
- package/dist/llm/errors.d.ts.map +1 -0
- package/dist/llm/errors.js +82 -0
- package/dist/llm/errors.js.map +1 -0
- package/dist/llm/ollama.d.ts +21 -0
- package/dist/llm/ollama.d.ts.map +1 -0
- package/dist/llm/ollama.js +116 -0
- package/dist/llm/ollama.js.map +1 -0
- package/dist/llm/openrouter.d.ts +13 -0
- package/dist/llm/openrouter.d.ts.map +1 -0
- package/dist/llm/openrouter.js +105 -0
- package/dist/llm/openrouter.js.map +1 -0
- package/dist/llm/providers/anthropic.d.ts +8 -0
- package/dist/llm/providers/anthropic.d.ts.map +1 -0
- package/dist/llm/providers/anthropic.js +189 -0
- package/dist/llm/providers/anthropic.js.map +1 -0
- package/dist/llm/providers/index.d.ts +20 -0
- package/dist/llm/providers/index.d.ts.map +1 -0
- package/dist/llm/providers/index.js +47 -0
- package/dist/llm/providers/index.js.map +1 -0
- package/dist/llm/providers/ollama.d.ts +13 -0
- package/dist/llm/providers/ollama.d.ts.map +1 -0
- package/dist/llm/providers/ollama.js +188 -0
- package/dist/llm/providers/ollama.js.map +1 -0
- package/dist/llm/providers/openai.d.ts +8 -0
- package/dist/llm/providers/openai.d.ts.map +1 -0
- package/dist/llm/providers/openai.js +144 -0
- package/dist/llm/providers/openai.js.map +1 -0
- package/dist/llm/providers/openrouter.d.ts +7 -0
- package/dist/llm/providers/openrouter.d.ts.map +1 -0
- package/dist/llm/providers/openrouter.js +158 -0
- package/dist/llm/providers/openrouter.js.map +1 -0
- package/dist/llm/providers/types.d.ts +29 -0
- package/dist/llm/providers/types.d.ts.map +1 -0
- package/dist/llm/providers/types.js +6 -0
- package/dist/llm/providers/types.js.map +1 -0
- package/dist/llm/retry.d.ts +29 -0
- package/dist/llm/retry.d.ts.map +1 -0
- package/dist/llm/retry.js +139 -0
- package/dist/llm/retry.js.map +1 -0
- package/dist/memory/file-backed.d.ts +36 -0
- package/dist/memory/file-backed.d.ts.map +1 -0
- package/dist/memory/file-backed.js +178 -0
- package/dist/memory/file-backed.js.map +1 -0
- package/dist/memory/index.d.ts +7 -0
- package/dist/memory/index.d.ts.map +1 -0
- package/dist/memory/index.js +6 -0
- package/dist/memory/index.js.map +1 -0
- package/dist/memory/long-term.d.ts +38 -0
- package/dist/memory/long-term.d.ts.map +1 -0
- package/dist/memory/long-term.js +58 -0
- package/dist/memory/long-term.js.map +1 -0
- package/dist/memory/vector-index.d.ts +55 -0
- package/dist/memory/vector-index.d.ts.map +1 -0
- package/dist/memory/vector-index.js +207 -0
- package/dist/memory/vector-index.js.map +1 -0
- package/dist/memory/visual.d.ts +53 -0
- package/dist/memory/visual.d.ts.map +1 -0
- package/dist/memory/visual.js +218 -0
- package/dist/memory/visual.js.map +1 -0
- package/dist/memory/working.d.ts +12 -0
- package/dist/memory/working.d.ts.map +1 -0
- package/dist/memory/working.js +34 -0
- package/dist/memory/working.js.map +1 -0
- package/dist/metrics/aggregator.d.ts +58 -0
- package/dist/metrics/aggregator.d.ts.map +1 -0
- package/dist/metrics/aggregator.js +253 -0
- package/dist/metrics/aggregator.js.map +1 -0
- package/dist/metrics/collector.d.ts +26 -0
- package/dist/metrics/collector.d.ts.map +1 -0
- package/dist/metrics/collector.js +346 -0
- package/dist/metrics/collector.js.map +1 -0
- package/dist/metrics/firewall-metrics.d.ts +95 -0
- package/dist/metrics/firewall-metrics.d.ts.map +1 -0
- package/dist/metrics/firewall-metrics.js +261 -0
- package/dist/metrics/firewall-metrics.js.map +1 -0
- package/dist/metrics/index.d.ts +20 -0
- package/dist/metrics/index.d.ts.map +1 -0
- package/dist/metrics/index.js +23 -0
- package/dist/metrics/index.js.map +1 -0
- package/dist/metrics/instruments.d.ts +89 -0
- package/dist/metrics/instruments.d.ts.map +1 -0
- package/dist/metrics/instruments.js +172 -0
- package/dist/metrics/instruments.js.map +1 -0
- package/dist/metrics/middleware.d.ts +12 -0
- package/dist/metrics/middleware.d.ts.map +1 -0
- package/dist/metrics/middleware.js +47 -0
- package/dist/metrics/middleware.js.map +1 -0
- package/dist/metrics/prometheus.d.ts +39 -0
- package/dist/metrics/prometheus.d.ts.map +1 -0
- package/dist/metrics/prometheus.js +115 -0
- package/dist/metrics/prometheus.js.map +1 -0
- package/dist/metrics/registry.d.ts +58 -0
- package/dist/metrics/registry.d.ts.map +1 -0
- package/dist/metrics/registry.js +145 -0
- package/dist/metrics/registry.js.map +1 -0
- package/dist/metrics/reporter.d.ts +21 -0
- package/dist/metrics/reporter.d.ts.map +1 -0
- package/dist/metrics/reporter.js +207 -0
- package/dist/metrics/reporter.js.map +1 -0
- package/dist/metrics/store.d.ts +47 -0
- package/dist/metrics/store.d.ts.map +1 -0
- package/dist/metrics/store.js +209 -0
- package/dist/metrics/store.js.map +1 -0
- package/dist/metrics/system.d.ts +20 -0
- package/dist/metrics/system.d.ts.map +1 -0
- package/dist/metrics/system.js +109 -0
- package/dist/metrics/system.js.map +1 -0
- package/dist/metrics/types.d.ts +101 -0
- package/dist/metrics/types.d.ts.map +1 -0
- package/dist/metrics/types.js +6 -0
- package/dist/metrics/types.js.map +1 -0
- package/dist/modules/index.d.ts +6 -0
- package/dist/modules/index.d.ts.map +1 -0
- package/dist/modules/index.js +6 -0
- package/dist/modules/index.js.map +1 -0
- package/dist/modules/registry.d.ts +36 -0
- package/dist/modules/registry.d.ts.map +1 -0
- package/dist/modules/registry.js +155 -0
- package/dist/modules/registry.js.map +1 -0
- package/dist/modules/types.d.ts +37 -0
- package/dist/modules/types.d.ts.map +1 -0
- package/dist/modules/types.js +9 -0
- package/dist/modules/types.js.map +1 -0
- package/dist/notifications/channel.d.ts +25 -0
- package/dist/notifications/channel.d.ts.map +1 -0
- package/dist/notifications/channel.js +83 -0
- package/dist/notifications/channel.js.map +1 -0
- package/dist/notifications/email.d.ts +27 -0
- package/dist/notifications/email.d.ts.map +1 -0
- package/dist/notifications/email.js +72 -0
- package/dist/notifications/email.js.map +1 -0
- package/dist/notifications/index.d.ts +16 -0
- package/dist/notifications/index.d.ts.map +1 -0
- package/dist/notifications/index.js +12 -0
- package/dist/notifications/index.js.map +1 -0
- package/dist/notifications/phone.d.ts +16 -0
- package/dist/notifications/phone.d.ts.map +1 -0
- package/dist/notifications/phone.js +48 -0
- package/dist/notifications/phone.js.map +1 -0
- package/dist/notifications/sms.d.ts +26 -0
- package/dist/notifications/sms.d.ts.map +1 -0
- package/dist/notifications/sms.js +65 -0
- package/dist/notifications/sms.js.map +1 -0
- package/dist/notifications/webhook.d.ts +28 -0
- package/dist/notifications/webhook.d.ts.map +1 -0
- package/dist/notifications/webhook.js +65 -0
- package/dist/notifications/webhook.js.map +1 -0
- package/dist/openloop/foldback.d.ts +24 -0
- package/dist/openloop/foldback.d.ts.map +1 -0
- package/dist/openloop/foldback.js +127 -0
- package/dist/openloop/foldback.js.map +1 -0
- package/dist/openloop/index.d.ts +11 -0
- package/dist/openloop/index.d.ts.map +1 -0
- package/dist/openloop/index.js +9 -0
- package/dist/openloop/index.js.map +1 -0
- package/dist/openloop/lifecycle.d.ts +16 -0
- package/dist/openloop/lifecycle.d.ts.map +1 -0
- package/dist/openloop/lifecycle.js +304 -0
- package/dist/openloop/lifecycle.js.map +1 -0
- package/dist/openloop/resolution-scanner.d.ts +17 -0
- package/dist/openloop/resolution-scanner.d.ts.map +1 -0
- package/dist/openloop/resolution-scanner.js +551 -0
- package/dist/openloop/resolution-scanner.js.map +1 -0
- package/dist/openloop/scanner.d.ts +28 -0
- package/dist/openloop/scanner.d.ts.map +1 -0
- package/dist/openloop/scanner.js +587 -0
- package/dist/openloop/scanner.js.map +1 -0
- package/dist/openloop/store.d.ts +41 -0
- package/dist/openloop/store.d.ts.map +1 -0
- package/dist/openloop/store.js +154 -0
- package/dist/openloop/store.js.map +1 -0
- package/dist/openloop/types.d.ts +94 -0
- package/dist/openloop/types.d.ts.map +1 -0
- package/dist/openloop/types.js +6 -0
- package/dist/openloop/types.js.map +1 -0
- package/dist/plugins/google-tasks/index.d.ts +55 -0
- package/dist/plugins/google-tasks/index.d.ts.map +1 -0
- package/dist/plugins/google-tasks/index.js +135 -0
- package/dist/plugins/google-tasks/index.js.map +1 -0
- package/dist/pulse/activation-event.d.ts +66 -0
- package/dist/pulse/activation-event.d.ts.map +1 -0
- package/dist/pulse/activation-event.js +139 -0
- package/dist/pulse/activation-event.js.map +1 -0
- package/dist/pulse/activation-log.d.ts +37 -0
- package/dist/pulse/activation-log.d.ts.map +1 -0
- package/dist/pulse/activation-log.js +101 -0
- package/dist/pulse/activation-log.js.map +1 -0
- package/dist/pulse/index.d.ts +11 -0
- package/dist/pulse/index.d.ts.map +1 -0
- package/dist/pulse/index.js +13 -0
- package/dist/pulse/index.js.map +1 -0
- package/dist/pulse/pressure.d.ts +69 -0
- package/dist/pulse/pressure.d.ts.map +1 -0
- package/dist/pulse/pressure.js +304 -0
- package/dist/pulse/pressure.js.map +1 -0
- package/dist/pulse/types.d.ts +89 -0
- package/dist/pulse/types.d.ts.map +1 -0
- package/dist/pulse/types.js +6 -0
- package/dist/pulse/types.js.map +1 -0
- package/dist/queue/grooming.d.ts +16 -0
- package/dist/queue/grooming.d.ts.map +1 -0
- package/dist/queue/grooming.js +269 -0
- package/dist/queue/grooming.js.map +1 -0
- package/dist/queue/provider.d.ts +50 -0
- package/dist/queue/provider.d.ts.map +1 -0
- package/dist/queue/provider.js +131 -0
- package/dist/queue/provider.js.map +1 -0
- package/dist/queue/store.d.ts +97 -0
- package/dist/queue/store.d.ts.map +1 -0
- package/dist/queue/store.js +448 -0
- package/dist/queue/store.js.map +1 -0
- package/dist/queue/types.d.ts +47 -0
- package/dist/queue/types.d.ts.map +1 -0
- package/dist/queue/types.js +22 -0
- package/dist/queue/types.js.map +1 -0
- package/dist/rate-limit.d.ts +26 -0
- package/dist/rate-limit.d.ts.map +1 -0
- package/dist/rate-limit.js +74 -0
- package/dist/rate-limit.js.map +1 -0
- package/dist/registry/discovery.d.ts +30 -0
- package/dist/registry/discovery.d.ts.map +1 -0
- package/dist/registry/discovery.js +171 -0
- package/dist/registry/discovery.js.map +1 -0
- package/dist/registry/index.d.ts +14 -0
- package/dist/registry/index.d.ts.map +1 -0
- package/dist/registry/index.js +18 -0
- package/dist/registry/index.js.map +1 -0
- package/dist/registry/installer.d.ts +45 -0
- package/dist/registry/installer.d.ts.map +1 -0
- package/dist/registry/installer.js +175 -0
- package/dist/registry/installer.js.map +1 -0
- package/dist/registry/registry.d.ts +70 -0
- package/dist/registry/registry.d.ts.map +1 -0
- package/dist/registry/registry.js +153 -0
- package/dist/registry/registry.js.map +1 -0
- package/dist/registry/store.d.ts +69 -0
- package/dist/registry/store.d.ts.map +1 -0
- package/dist/registry/store.js +242 -0
- package/dist/registry/store.js.map +1 -0
- package/dist/registry/types.d.ts +116 -0
- package/dist/registry/types.d.ts.map +1 -0
- package/dist/registry/types.js +9 -0
- package/dist/registry/types.js.map +1 -0
- package/dist/registry/validator.d.ts +24 -0
- package/dist/registry/validator.d.ts.map +1 -0
- package/dist/registry/validator.js +203 -0
- package/dist/registry/validator.js.map +1 -0
- package/dist/scheduling/index.d.ts +4 -0
- package/dist/scheduling/index.d.ts.map +1 -0
- package/dist/scheduling/index.js +3 -0
- package/dist/scheduling/index.js.map +1 -0
- package/dist/scheduling/store.d.ts +41 -0
- package/dist/scheduling/store.d.ts.map +1 -0
- package/dist/scheduling/store.js +237 -0
- package/dist/scheduling/store.js.map +1 -0
- package/dist/scheduling/timer.d.ts +25 -0
- package/dist/scheduling/timer.d.ts.map +1 -0
- package/dist/scheduling/timer.js +118 -0
- package/dist/scheduling/timer.js.map +1 -0
- package/dist/scheduling/types.d.ts +43 -0
- package/dist/scheduling/types.d.ts.map +1 -0
- package/dist/scheduling/types.js +5 -0
- package/dist/scheduling/types.js.map +1 -0
- package/dist/search/brain-docs.d.ts +20 -0
- package/dist/search/brain-docs.d.ts.map +1 -0
- package/dist/search/brain-docs.js +103 -0
- package/dist/search/brain-docs.js.map +1 -0
- package/dist/search/browse.d.ts +45 -0
- package/dist/search/browse.d.ts.map +1 -0
- package/dist/search/browse.js +225 -0
- package/dist/search/browse.js.map +1 -0
- package/dist/search/classify.d.ts +23 -0
- package/dist/search/classify.d.ts.map +1 -0
- package/dist/search/classify.js +132 -0
- package/dist/search/classify.js.map +1 -0
- package/dist/search/client.d.ts +32 -0
- package/dist/search/client.d.ts.map +1 -0
- package/dist/search/client.js +72 -0
- package/dist/search/client.js.map +1 -0
- package/dist/search/perplexity.d.ts +13 -0
- package/dist/search/perplexity.d.ts.map +1 -0
- package/dist/search/perplexity.js +41 -0
- package/dist/search/perplexity.js.map +1 -0
- package/dist/search/sidecar.d.ts +20 -0
- package/dist/search/sidecar.d.ts.map +1 -0
- package/dist/search/sidecar.js +103 -0
- package/dist/search/sidecar.js.map +1 -0
- package/dist/server.d.ts +8 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +4851 -0
- package/dist/server.js.map +1 -0
- package/dist/services/backlogReview.d.ts +66 -0
- package/dist/services/backlogReview.d.ts.map +1 -0
- package/dist/services/backlogReview.js +285 -0
- package/dist/services/backlogReview.js.map +1 -0
- package/dist/services/backup.d.ts +43 -0
- package/dist/services/backup.d.ts.map +1 -0
- package/dist/services/backup.js +334 -0
- package/dist/services/backup.js.map +1 -0
- package/dist/services/credit-monitor.d.ts +40 -0
- package/dist/services/credit-monitor.d.ts.map +1 -0
- package/dist/services/credit-monitor.js +147 -0
- package/dist/services/credit-monitor.js.map +1 -0
- package/dist/services/morningBriefing.d.ts +125 -0
- package/dist/services/morningBriefing.d.ts.map +1 -0
- package/dist/services/morningBriefing.js +660 -0
- package/dist/services/morningBriefing.js.map +1 -0
- package/dist/services/routine-patterns.d.ts +21 -0
- package/dist/services/routine-patterns.d.ts.map +1 -0
- package/dist/services/routine-patterns.js +46 -0
- package/dist/services/routine-patterns.js.map +1 -0
- package/dist/services/traceInsights.d.ts +53 -0
- package/dist/services/traceInsights.d.ts.map +1 -0
- package/dist/services/traceInsights.js +762 -0
- package/dist/services/traceInsights.js.map +1 -0
- package/dist/services/training.d.ts +63 -0
- package/dist/services/training.d.ts.map +1 -0
- package/dist/services/training.js +697 -0
- package/dist/services/training.js.map +1 -0
- package/dist/services/whatsapp.d.ts +45 -0
- package/dist/services/whatsapp.d.ts.map +1 -0
- package/dist/services/whatsapp.js +194 -0
- package/dist/services/whatsapp.js.map +1 -0
- package/dist/sessions/store.d.ts +21 -0
- package/dist/sessions/store.d.ts.map +1 -0
- package/dist/sessions/store.js +47 -0
- package/dist/sessions/store.js.map +1 -0
- package/dist/settings.d.ts +111 -0
- package/dist/settings.d.ts.map +1 -0
- package/dist/settings.js +256 -0
- package/dist/settings.js.map +1 -0
- package/dist/skills/index.d.ts +10 -0
- package/dist/skills/index.d.ts.map +1 -0
- package/dist/skills/index.js +11 -0
- package/dist/skills/index.js.map +1 -0
- package/dist/skills/loader.d.ts +22 -0
- package/dist/skills/loader.d.ts.map +1 -0
- package/dist/skills/loader.js +65 -0
- package/dist/skills/loader.js.map +1 -0
- package/dist/skills/registry.d.ts +161 -0
- package/dist/skills/registry.d.ts.map +1 -0
- package/dist/skills/registry.js +664 -0
- package/dist/skills/registry.js.map +1 -0
- package/dist/skills/types.d.ts +83 -0
- package/dist/skills/types.d.ts.map +1 -0
- package/dist/skills/types.js +31 -0
- package/dist/skills/types.js.map +1 -0
- package/dist/skills/validator.d.ts +36 -0
- package/dist/skills/validator.d.ts.map +1 -0
- package/dist/skills/validator.js +114 -0
- package/dist/skills/validator.js.map +1 -0
- package/dist/slack/channels.d.ts +102 -0
- package/dist/slack/channels.d.ts.map +1 -0
- package/dist/slack/channels.js +277 -0
- package/dist/slack/channels.js.map +1 -0
- package/dist/slack/client.d.ts +151 -0
- package/dist/slack/client.d.ts.map +1 -0
- package/dist/slack/client.js +468 -0
- package/dist/slack/client.js.map +1 -0
- package/dist/slack/retry.d.ts +36 -0
- package/dist/slack/retry.d.ts.map +1 -0
- package/dist/slack/retry.js +100 -0
- package/dist/slack/retry.js.map +1 -0
- package/dist/slack/types.d.ts +271 -0
- package/dist/slack/types.d.ts.map +1 -0
- package/dist/slack/types.js +52 -0
- package/dist/slack/types.js.map +1 -0
- package/dist/slack/webhooks.d.ts +55 -0
- package/dist/slack/webhooks.d.ts.map +1 -0
- package/dist/slack/webhooks.js +285 -0
- package/dist/slack/webhooks.js.map +1 -0
- package/dist/stt/client.d.ts +18 -0
- package/dist/stt/client.d.ts.map +1 -0
- package/dist/stt/client.js +66 -0
- package/dist/stt/client.js.map +1 -0
- package/dist/stt/sidecar.d.ts +16 -0
- package/dist/stt/sidecar.d.ts.map +1 -0
- package/dist/stt/sidecar.js +115 -0
- package/dist/stt/sidecar.js.map +1 -0
- package/dist/tracing/bridge.d.ts +14 -0
- package/dist/tracing/bridge.d.ts.map +1 -0
- package/dist/tracing/bridge.js +70 -0
- package/dist/tracing/bridge.js.map +1 -0
- package/dist/tracing/correlation.d.ts +34 -0
- package/dist/tracing/correlation.d.ts.map +1 -0
- package/dist/tracing/correlation.js +49 -0
- package/dist/tracing/correlation.js.map +1 -0
- package/dist/tracing/index.d.ts +15 -0
- package/dist/tracing/index.d.ts.map +1 -0
- package/dist/tracing/index.js +18 -0
- package/dist/tracing/index.js.map +1 -0
- package/dist/tracing/init.d.ts +42 -0
- package/dist/tracing/init.d.ts.map +1 -0
- package/dist/tracing/init.js +81 -0
- package/dist/tracing/init.js.map +1 -0
- package/dist/tracing/instrument.d.ts +39 -0
- package/dist/tracing/instrument.d.ts.map +1 -0
- package/dist/tracing/instrument.js +145 -0
- package/dist/tracing/instrument.js.map +1 -0
- package/dist/tracing/middleware.d.ts +18 -0
- package/dist/tracing/middleware.d.ts.map +1 -0
- package/dist/tracing/middleware.js +69 -0
- package/dist/tracing/middleware.js.map +1 -0
- package/dist/tracing/tracer.d.ts +105 -0
- package/dist/tracing/tracer.d.ts.map +1 -0
- package/dist/tracing/tracer.js +327 -0
- package/dist/tracing/tracer.js.map +1 -0
- package/dist/tts/client.d.ts +18 -0
- package/dist/tts/client.d.ts.map +1 -0
- package/dist/tts/client.js +48 -0
- package/dist/tts/client.js.map +1 -0
- package/dist/tts/sidecar.d.ts +16 -0
- package/dist/tts/sidecar.d.ts.map +1 -0
- package/dist/tts/sidecar.js +148 -0
- package/dist/tts/sidecar.js.map +1 -0
- package/dist/twilio/call.d.ts +22 -0
- package/dist/twilio/call.d.ts.map +1 -0
- package/dist/twilio/call.js +79 -0
- package/dist/twilio/call.js.map +1 -0
- package/dist/types/plugin.d.ts +342 -0
- package/dist/types/plugin.d.ts.map +1 -0
- package/dist/types/plugin.js +10 -0
- package/dist/types/plugin.js.map +1 -0
- package/dist/types.d.ts +97 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +5 -0
- package/dist/types.js.map +1 -0
- package/dist/utils/logger.d.ts +53 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +169 -0
- package/dist/utils/logger.js.map +1 -0
- package/dist/vault/matcher.d.ts +39 -0
- package/dist/vault/matcher.d.ts.map +1 -0
- package/dist/vault/matcher.js +197 -0
- package/dist/vault/matcher.js.map +1 -0
- package/dist/vault/personal.d.ts +60 -0
- package/dist/vault/personal.d.ts.map +1 -0
- package/dist/vault/personal.js +162 -0
- package/dist/vault/personal.js.map +1 -0
- package/dist/vault/store.d.ts +39 -0
- package/dist/vault/store.d.ts.map +1 -0
- package/dist/vault/store.js +111 -0
- package/dist/vault/store.js.map +1 -0
- package/dist/webhooks/config.d.ts +64 -0
- package/dist/webhooks/config.d.ts.map +1 -0
- package/dist/webhooks/config.js +214 -0
- package/dist/webhooks/config.js.map +1 -0
- package/dist/webhooks/event-log.d.ts +90 -0
- package/dist/webhooks/event-log.d.ts.map +1 -0
- package/dist/webhooks/event-log.js +132 -0
- package/dist/webhooks/event-log.js.map +1 -0
- package/dist/webhooks/handler.d.ts +92 -0
- package/dist/webhooks/handler.d.ts.map +1 -0
- package/dist/webhooks/handler.js +103 -0
- package/dist/webhooks/handler.js.map +1 -0
- package/dist/webhooks/handlers.d.ts +100 -0
- package/dist/webhooks/handlers.d.ts.map +1 -0
- package/dist/webhooks/handlers.js +178 -0
- package/dist/webhooks/handlers.js.map +1 -0
- package/dist/webhooks/index.d.ts +29 -0
- package/dist/webhooks/index.d.ts.map +1 -0
- package/dist/webhooks/index.js +33 -0
- package/dist/webhooks/index.js.map +1 -0
- package/dist/webhooks/mount.d.ts +77 -0
- package/dist/webhooks/mount.d.ts.map +1 -0
- package/dist/webhooks/mount.js +400 -0
- package/dist/webhooks/mount.js.map +1 -0
- package/dist/webhooks/registry.d.ts +52 -0
- package/dist/webhooks/registry.d.ts.map +1 -0
- package/dist/webhooks/registry.js +143 -0
- package/dist/webhooks/registry.js.map +1 -0
- package/dist/webhooks/relay.d.ts +25 -0
- package/dist/webhooks/relay.d.ts.map +1 -0
- package/dist/webhooks/relay.js +53 -0
- package/dist/webhooks/relay.js.map +1 -0
- package/dist/webhooks/retry.d.ts +92 -0
- package/dist/webhooks/retry.d.ts.map +1 -0
- package/dist/webhooks/retry.js +270 -0
- package/dist/webhooks/retry.js.map +1 -0
- package/dist/webhooks/router.d.ts +94 -0
- package/dist/webhooks/router.d.ts.map +1 -0
- package/dist/webhooks/router.js +290 -0
- package/dist/webhooks/router.js.map +1 -0
- package/dist/webhooks/twilio.d.ts +63 -0
- package/dist/webhooks/twilio.d.ts.map +1 -0
- package/dist/webhooks/twilio.js +129 -0
- package/dist/webhooks/twilio.js.map +1 -0
- package/dist/webhooks/types.d.ts +142 -0
- package/dist/webhooks/types.d.ts.map +1 -0
- package/dist/webhooks/types.js +8 -0
- package/dist/webhooks/types.js.map +1 -0
- package/dist/webhooks/verify.d.ts +51 -0
- package/dist/webhooks/verify.d.ts.map +1 -0
- package/dist/webhooks/verify.js +98 -0
- package/dist/webhooks/verify.js.map +1 -0
- package/package.json +70 -0
- package/public/board.html +1316 -0
- package/public/browser.html +600 -0
- package/public/help.html +655 -0
- package/public/index.html +4689 -0
- package/public/library.html +3642 -0
- package/public/observatory.html +1693 -0
- package/public/ops.html +1129 -0
- package/public/share-modal.js +211 -0
- package/skills/README.md +34 -0
- package/skills/core-architecture.md +33 -0
- package/skills/form-fill.md +98 -0
- package/skills/form-review.md +110 -0
- package/skills/form-scout.md +94 -0
- package/skills/log-decision.md +27 -0
- package/skills/onboard.md +98 -0
- package/skills/voice-guide.md +22 -0
- package/skills/write-blog.md +43 -0
|
@@ -0,0 +1,1693 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>{{INSTANCE_NAME}} — Observatory</title>
|
|
7
|
+
<style>
|
|
8
|
+
:root {
|
|
9
|
+
--bg: #0e0e10;
|
|
10
|
+
--surface: #18181b;
|
|
11
|
+
--surface2: #222226;
|
|
12
|
+
--border: #2e2e33;
|
|
13
|
+
--text: #e4e4e7;
|
|
14
|
+
--text-dim: #8b8b94;
|
|
15
|
+
--accent: #6d5dfc;
|
|
16
|
+
--green: #22c55e;
|
|
17
|
+
--red: #ef4444;
|
|
18
|
+
--yellow: #eab308;
|
|
19
|
+
--orange: #f97316;
|
|
20
|
+
--blue: #3b82f6;
|
|
21
|
+
--purple: #a78bfa;
|
|
22
|
+
--pink: #f472b6;
|
|
23
|
+
--teal: #34d399;
|
|
24
|
+
--mono: 'SF Mono', 'Cascadia Code', 'Fira Code', monospace;
|
|
25
|
+
|
|
26
|
+
/* Pulse colors */
|
|
27
|
+
--pulse-still: #a78bfa;
|
|
28
|
+
--pulse-steady: #3b82f6;
|
|
29
|
+
--pulse-turbulent: #f97316;
|
|
30
|
+
--pulse-breakthrough: #22c55e;
|
|
31
|
+
--pulse-color: var(--pulse-steady);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
35
|
+
|
|
36
|
+
body {
|
|
37
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
|
|
38
|
+
background: var(--bg);
|
|
39
|
+
color: var(--text);
|
|
40
|
+
min-height: 100vh;
|
|
41
|
+
line-height: 1.5;
|
|
42
|
+
position: relative;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
body::before {
|
|
46
|
+
content: '';
|
|
47
|
+
position: fixed;
|
|
48
|
+
top: 0;
|
|
49
|
+
left: 0;
|
|
50
|
+
right: 0;
|
|
51
|
+
bottom: 0;
|
|
52
|
+
background: radial-gradient(ellipse at 50% 30%, color-mix(in srgb, var(--pulse-color) 6%, transparent) 0%, transparent 70%);
|
|
53
|
+
pointer-events: none;
|
|
54
|
+
z-index: 0;
|
|
55
|
+
animation: bgBreathe 8s ease-in-out infinite;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@keyframes bgBreathe {
|
|
59
|
+
0%, 100% { opacity: 0.4; }
|
|
60
|
+
50% { opacity: 1; }
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
header {
|
|
64
|
+
display: flex;
|
|
65
|
+
align-items: center;
|
|
66
|
+
justify-content: space-between;
|
|
67
|
+
padding: 16px 24px;
|
|
68
|
+
border-bottom: 1px solid var(--border);
|
|
69
|
+
background: var(--surface);
|
|
70
|
+
position: relative;
|
|
71
|
+
z-index: 1;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
header h1 {
|
|
75
|
+
font-size: 18px;
|
|
76
|
+
font-weight: 600;
|
|
77
|
+
letter-spacing: -0.3px;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
header h1 span { color: var(--text-dim); font-weight: 400; }
|
|
81
|
+
|
|
82
|
+
.header-nav {
|
|
83
|
+
display: flex;
|
|
84
|
+
align-items: center;
|
|
85
|
+
gap: 8px;
|
|
86
|
+
margin-left: 16px;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.header-nav a {
|
|
90
|
+
color: var(--text-dim);
|
|
91
|
+
text-decoration: none;
|
|
92
|
+
font-size: 13px;
|
|
93
|
+
padding: 4px 10px;
|
|
94
|
+
border-radius: 6px;
|
|
95
|
+
border: 1px solid var(--border);
|
|
96
|
+
transition: all 0.15s;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.header-nav a:hover { color: var(--text); border-color: var(--accent); background: rgba(109,93,252,0.1); }
|
|
100
|
+
.header-nav a.active { color: var(--text); border-color: var(--border); background: var(--surface2); }
|
|
101
|
+
|
|
102
|
+
.header-meta {
|
|
103
|
+
display: flex;
|
|
104
|
+
align-items: center;
|
|
105
|
+
gap: 16px;
|
|
106
|
+
font-size: 13px;
|
|
107
|
+
color: var(--text-dim);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.away-duration {
|
|
111
|
+
font-family: var(--mono);
|
|
112
|
+
font-size: 12px;
|
|
113
|
+
cursor: pointer;
|
|
114
|
+
transition: color 0.2s;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.away-duration:hover { color: var(--text); }
|
|
118
|
+
|
|
119
|
+
.heartbeat-dot {
|
|
120
|
+
display: inline-block;
|
|
121
|
+
width: 8px;
|
|
122
|
+
height: 8px;
|
|
123
|
+
border-radius: 50%;
|
|
124
|
+
background: var(--green);
|
|
125
|
+
box-shadow: 0 0 6px var(--green);
|
|
126
|
+
animation: heartbeat 2s ease-in-out infinite;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
@keyframes heartbeat {
|
|
130
|
+
0%, 100% { opacity: 1; transform: scale(1); }
|
|
131
|
+
50% { opacity: 0.5; transform: scale(0.8); }
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
main {
|
|
135
|
+
max-width: 1280px;
|
|
136
|
+
margin: 0 auto;
|
|
137
|
+
padding: 24px;
|
|
138
|
+
display: flex;
|
|
139
|
+
flex-direction: column;
|
|
140
|
+
gap: 20px;
|
|
141
|
+
position: relative;
|
|
142
|
+
z-index: 1;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/* Section entrance animation */
|
|
146
|
+
.section-enter {
|
|
147
|
+
opacity: 0;
|
|
148
|
+
transform: translateY(12px);
|
|
149
|
+
animation: sectionFadeIn 0.5s ease forwards;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
@keyframes sectionFadeIn {
|
|
153
|
+
to { opacity: 1; transform: translateY(0); }
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/* Card base */
|
|
157
|
+
.card {
|
|
158
|
+
background: var(--surface);
|
|
159
|
+
border: 1px solid var(--border);
|
|
160
|
+
border-radius: 10px;
|
|
161
|
+
padding: 18px 20px;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.card h2 {
|
|
165
|
+
font-size: 12px;
|
|
166
|
+
font-weight: 500;
|
|
167
|
+
text-transform: uppercase;
|
|
168
|
+
letter-spacing: 0.8px;
|
|
169
|
+
color: var(--text-dim);
|
|
170
|
+
margin-bottom: 12px;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/* Grid layouts */
|
|
174
|
+
.grid { display: grid; gap: 16px; }
|
|
175
|
+
.grid-2 { grid-template-columns: repeat(2, 1fr); }
|
|
176
|
+
|
|
177
|
+
@media (max-width: 900px) {
|
|
178
|
+
.grid-2 { grid-template-columns: 1fr; }
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/* ===== THE PULSE ===== */
|
|
182
|
+
.pulse-card {
|
|
183
|
+
position: relative;
|
|
184
|
+
overflow: hidden;
|
|
185
|
+
text-align: center;
|
|
186
|
+
padding: 32px 24px;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.pulse-card::before {
|
|
190
|
+
content: '';
|
|
191
|
+
position: absolute;
|
|
192
|
+
inset: 0;
|
|
193
|
+
border-radius: 10px;
|
|
194
|
+
padding: 1px;
|
|
195
|
+
background: linear-gradient(135deg, color-mix(in srgb, var(--pulse-color) 40%, transparent), transparent 60%);
|
|
196
|
+
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
|
|
197
|
+
-webkit-mask-composite: xor;
|
|
198
|
+
mask-composite: exclude;
|
|
199
|
+
pointer-events: none;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.pulse-dot {
|
|
203
|
+
display: inline-block;
|
|
204
|
+
width: 14px;
|
|
205
|
+
height: 14px;
|
|
206
|
+
border-radius: 50%;
|
|
207
|
+
background: var(--pulse-color);
|
|
208
|
+
box-shadow: 0 0 12px var(--pulse-color);
|
|
209
|
+
animation: breathe 3s ease-in-out infinite;
|
|
210
|
+
margin-bottom: 12px;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
@keyframes breathe {
|
|
214
|
+
0%, 100% { transform: scale(1); opacity: 0.8; }
|
|
215
|
+
50% { transform: scale(1.3); opacity: 1; }
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.pulse-label {
|
|
219
|
+
font-size: 28px;
|
|
220
|
+
font-weight: 700;
|
|
221
|
+
letter-spacing: -0.5px;
|
|
222
|
+
margin-bottom: 6px;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.pulse-summary {
|
|
226
|
+
font-size: 14px;
|
|
227
|
+
color: var(--text-dim);
|
|
228
|
+
max-width: 500px;
|
|
229
|
+
margin: 0 auto;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/* ===== THE NERVOUS SYSTEM ===== */
|
|
233
|
+
.nervous-grid {
|
|
234
|
+
display: grid;
|
|
235
|
+
grid-template-columns: 1fr auto;
|
|
236
|
+
gap: 12px 24px;
|
|
237
|
+
align-items: center;
|
|
238
|
+
}
|
|
239
|
+
.voltage-bar-wrap {
|
|
240
|
+
background: var(--surface2);
|
|
241
|
+
border-radius: 6px;
|
|
242
|
+
height: 22px;
|
|
243
|
+
position: relative;
|
|
244
|
+
overflow: hidden;
|
|
245
|
+
min-width: 200px;
|
|
246
|
+
}
|
|
247
|
+
.voltage-bar-fill {
|
|
248
|
+
height: 100%;
|
|
249
|
+
border-radius: 6px;
|
|
250
|
+
transition: width 0.6s ease, background 0.6s ease;
|
|
251
|
+
}
|
|
252
|
+
.voltage-bar-label {
|
|
253
|
+
position: absolute;
|
|
254
|
+
top: 0;
|
|
255
|
+
left: 0;
|
|
256
|
+
right: 0;
|
|
257
|
+
bottom: 0;
|
|
258
|
+
display: flex;
|
|
259
|
+
align-items: center;
|
|
260
|
+
justify-content: center;
|
|
261
|
+
font-family: var(--mono);
|
|
262
|
+
font-size: 11px;
|
|
263
|
+
color: var(--text);
|
|
264
|
+
text-shadow: 0 1px 2px rgba(0,0,0,0.5);
|
|
265
|
+
}
|
|
266
|
+
.nervous-stat {
|
|
267
|
+
font-family: var(--mono);
|
|
268
|
+
font-size: 12px;
|
|
269
|
+
color: var(--text-dim);
|
|
270
|
+
}
|
|
271
|
+
.nervous-stat strong {
|
|
272
|
+
color: var(--text);
|
|
273
|
+
}
|
|
274
|
+
.nervous-state {
|
|
275
|
+
display: inline-block;
|
|
276
|
+
padding: 2px 8px;
|
|
277
|
+
border-radius: 4px;
|
|
278
|
+
font-family: var(--mono);
|
|
279
|
+
font-size: 11px;
|
|
280
|
+
font-weight: 600;
|
|
281
|
+
text-transform: uppercase;
|
|
282
|
+
}
|
|
283
|
+
.nervous-state.ready { background: color-mix(in srgb, var(--green) 20%, transparent); color: var(--green); }
|
|
284
|
+
.nervous-state.refractory { background: color-mix(in srgb, var(--red) 20%, transparent); color: var(--red); }
|
|
285
|
+
.nervous-state.relative-refractory { background: color-mix(in srgb, var(--orange) 20%, transparent); color: var(--orange); }
|
|
286
|
+
|
|
287
|
+
/* ===== THE RIVER ===== */
|
|
288
|
+
.river-bar-container {
|
|
289
|
+
height: 24px;
|
|
290
|
+
border-radius: 6px;
|
|
291
|
+
overflow: hidden;
|
|
292
|
+
display: flex;
|
|
293
|
+
background: var(--surface2);
|
|
294
|
+
margin-bottom: 12px;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.river-segment {
|
|
298
|
+
height: 100%;
|
|
299
|
+
transition: width 0.4s ease;
|
|
300
|
+
opacity: 0;
|
|
301
|
+
animation: flowIn 0.6s ease forwards;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
@keyframes flowIn {
|
|
305
|
+
from { opacity: 0; transform: translateX(-10px); }
|
|
306
|
+
to { opacity: 1; transform: translateX(0); }
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.river-chips {
|
|
310
|
+
display: flex;
|
|
311
|
+
flex-wrap: wrap;
|
|
312
|
+
gap: 8px;
|
|
313
|
+
margin-bottom: 14px;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.river-chip {
|
|
317
|
+
font-size: 11px;
|
|
318
|
+
font-weight: 500;
|
|
319
|
+
padding: 3px 8px;
|
|
320
|
+
border-radius: 4px;
|
|
321
|
+
background: var(--surface2);
|
|
322
|
+
font-family: var(--mono);
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.river-entries {
|
|
326
|
+
display: flex;
|
|
327
|
+
flex-direction: column;
|
|
328
|
+
gap: 0;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.river-entry {
|
|
332
|
+
display: flex;
|
|
333
|
+
align-items: flex-start;
|
|
334
|
+
gap: 10px;
|
|
335
|
+
padding: 6px 0;
|
|
336
|
+
border-bottom: 1px solid var(--border);
|
|
337
|
+
font-size: 13px;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.river-entry:last-child { border-bottom: none; }
|
|
341
|
+
|
|
342
|
+
.river-source {
|
|
343
|
+
font-size: 10px;
|
|
344
|
+
font-weight: 600;
|
|
345
|
+
padding: 2px 6px;
|
|
346
|
+
border-radius: 3px;
|
|
347
|
+
text-transform: uppercase;
|
|
348
|
+
letter-spacing: 0.4px;
|
|
349
|
+
flex-shrink: 0;
|
|
350
|
+
min-width: 68px;
|
|
351
|
+
text-align: center;
|
|
352
|
+
background: var(--surface2);
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.river-time {
|
|
356
|
+
font-family: var(--mono);
|
|
357
|
+
font-size: 11px;
|
|
358
|
+
color: var(--text-dim);
|
|
359
|
+
flex-shrink: 0;
|
|
360
|
+
width: 50px;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.river-text { flex: 1; color: var(--text); }
|
|
364
|
+
|
|
365
|
+
.empty { color: var(--text-dim); font-style: italic; font-size: 13px; padding: 12px 0; }
|
|
366
|
+
|
|
367
|
+
/* ===== THE SOUP ===== */
|
|
368
|
+
.resonance-card, .insight-card {
|
|
369
|
+
background: var(--surface2);
|
|
370
|
+
border: 1px solid var(--border);
|
|
371
|
+
border-radius: 8px;
|
|
372
|
+
padding: 12px 14px;
|
|
373
|
+
margin-bottom: 10px;
|
|
374
|
+
opacity: 0;
|
|
375
|
+
transform: translateY(10px);
|
|
376
|
+
animation: surface 0.5s ease forwards;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.resonance-card:last-child, .insight-card:last-child { margin-bottom: 0; }
|
|
380
|
+
|
|
381
|
+
@keyframes surface {
|
|
382
|
+
to { opacity: 1; transform: translateY(0); }
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
.resonance-anchor {
|
|
386
|
+
font-weight: 600;
|
|
387
|
+
font-size: 13px;
|
|
388
|
+
margin-bottom: 4px;
|
|
389
|
+
color: var(--accent);
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
.resonance-summary {
|
|
393
|
+
font-size: 13px;
|
|
394
|
+
color: var(--text);
|
|
395
|
+
margin-bottom: 6px;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.similarity-bar-wrap {
|
|
399
|
+
display: flex;
|
|
400
|
+
align-items: center;
|
|
401
|
+
gap: 8px;
|
|
402
|
+
margin-bottom: 6px;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.similarity-bar {
|
|
406
|
+
flex: 1;
|
|
407
|
+
height: 6px;
|
|
408
|
+
background: var(--surface);
|
|
409
|
+
border-radius: 3px;
|
|
410
|
+
overflow: hidden;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.similarity-fill {
|
|
414
|
+
height: 100%;
|
|
415
|
+
border-radius: 3px;
|
|
416
|
+
background: var(--accent);
|
|
417
|
+
transition: width 0.4s ease;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
.similarity-label {
|
|
421
|
+
font-family: var(--mono);
|
|
422
|
+
font-size: 11px;
|
|
423
|
+
color: var(--text-dim);
|
|
424
|
+
width: 36px;
|
|
425
|
+
text-align: right;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
.resonance-explanation {
|
|
429
|
+
font-size: 12px;
|
|
430
|
+
color: var(--text-dim);
|
|
431
|
+
line-height: 1.5;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
.insight-header {
|
|
435
|
+
display: flex;
|
|
436
|
+
align-items: center;
|
|
437
|
+
gap: 8px;
|
|
438
|
+
margin-bottom: 6px;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
.insight-category {
|
|
442
|
+
display: inline-block;
|
|
443
|
+
padding: 2px 7px;
|
|
444
|
+
border-radius: 4px;
|
|
445
|
+
font-size: 10px;
|
|
446
|
+
font-weight: 600;
|
|
447
|
+
text-transform: uppercase;
|
|
448
|
+
letter-spacing: 0.3px;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
.insight-category-pattern { background: rgba(59, 130, 246, 0.15); color: var(--blue); }
|
|
452
|
+
.insight-category-anomaly { background: rgba(239, 68, 68, 0.15); color: var(--red); }
|
|
453
|
+
.insight-category-correlation { background: rgba(34, 197, 94, 0.15); color: var(--green); }
|
|
454
|
+
.insight-category-bottleneck { background: rgba(234, 179, 8, 0.15); color: var(--yellow); }
|
|
455
|
+
|
|
456
|
+
.insight-title {
|
|
457
|
+
font-size: 13px;
|
|
458
|
+
font-weight: 600;
|
|
459
|
+
color: var(--text);
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
.insight-desc {
|
|
463
|
+
font-size: 12px;
|
|
464
|
+
color: var(--text-dim);
|
|
465
|
+
line-height: 1.5;
|
|
466
|
+
margin-bottom: 4px;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
.insight-meta {
|
|
470
|
+
font-family: var(--mono);
|
|
471
|
+
font-size: 10px;
|
|
472
|
+
color: var(--text-dim);
|
|
473
|
+
opacity: 0.7;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
.scanner-summary {
|
|
477
|
+
font-size: 12px;
|
|
478
|
+
color: var(--text-dim);
|
|
479
|
+
font-family: var(--mono);
|
|
480
|
+
margin-top: 12px;
|
|
481
|
+
padding-top: 10px;
|
|
482
|
+
border-top: 1px solid var(--border);
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
/* ===== THE VERTICAL ===== */
|
|
486
|
+
.state-overview {
|
|
487
|
+
display: flex;
|
|
488
|
+
gap: 20px;
|
|
489
|
+
flex-wrap: wrap;
|
|
490
|
+
margin-bottom: 16px;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
.state-item {
|
|
494
|
+
display: flex;
|
|
495
|
+
align-items: center;
|
|
496
|
+
gap: 6px;
|
|
497
|
+
font-size: 13px;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
.state-num {
|
|
501
|
+
font-family: var(--mono);
|
|
502
|
+
font-weight: 700;
|
|
503
|
+
font-size: 18px;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
.state-label {
|
|
507
|
+
color: var(--text-dim);
|
|
508
|
+
font-size: 12px;
|
|
509
|
+
text-transform: capitalize;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
.state-resonant { color: var(--accent); }
|
|
513
|
+
.state-resonant-glow {
|
|
514
|
+
text-shadow: 0 0 8px var(--accent);
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
.triad-card {
|
|
518
|
+
background: var(--surface2);
|
|
519
|
+
border: 1px solid var(--border);
|
|
520
|
+
border-left: 3px solid var(--accent);
|
|
521
|
+
border-radius: 8px;
|
|
522
|
+
padding: 12px 14px;
|
|
523
|
+
margin-bottom: 10px;
|
|
524
|
+
opacity: 0;
|
|
525
|
+
animation: deepen 0.6s ease forwards;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
.triad-card:last-child { margin-bottom: 0; }
|
|
529
|
+
|
|
530
|
+
@keyframes deepen {
|
|
531
|
+
from {
|
|
532
|
+
opacity: 0;
|
|
533
|
+
border-left-color: transparent;
|
|
534
|
+
}
|
|
535
|
+
to {
|
|
536
|
+
opacity: 1;
|
|
537
|
+
border-left-color: var(--accent);
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
.triad-anchor {
|
|
542
|
+
font-weight: 600;
|
|
543
|
+
font-size: 14px;
|
|
544
|
+
margin-bottom: 4px;
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
.triad-shift {
|
|
548
|
+
font-size: 13px;
|
|
549
|
+
color: var(--text-dim);
|
|
550
|
+
margin-bottom: 6px;
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
.triad-tensions {
|
|
554
|
+
display: flex;
|
|
555
|
+
flex-wrap: wrap;
|
|
556
|
+
gap: 6px;
|
|
557
|
+
margin-bottom: 4px;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
.tension-tag {
|
|
561
|
+
font-size: 10px;
|
|
562
|
+
font-family: var(--mono);
|
|
563
|
+
padding: 2px 6px;
|
|
564
|
+
border-radius: 3px;
|
|
565
|
+
background: rgba(109, 93, 252, 0.12);
|
|
566
|
+
color: var(--accent);
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
.triad-meta {
|
|
570
|
+
font-family: var(--mono);
|
|
571
|
+
font-size: 10px;
|
|
572
|
+
color: var(--text-dim);
|
|
573
|
+
opacity: 0.7;
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
.loop-change-card {
|
|
577
|
+
background: var(--surface2);
|
|
578
|
+
border: 1px solid var(--border);
|
|
579
|
+
border-radius: 8px;
|
|
580
|
+
padding: 10px 14px;
|
|
581
|
+
margin-bottom: 8px;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
.loop-change-card:last-child { margin-bottom: 0; }
|
|
585
|
+
|
|
586
|
+
.loop-dissonance {
|
|
587
|
+
font-size: 13px;
|
|
588
|
+
font-weight: 500;
|
|
589
|
+
margin-bottom: 4px;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
.loop-heuristics {
|
|
593
|
+
display: flex;
|
|
594
|
+
flex-wrap: wrap;
|
|
595
|
+
gap: 4px;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
.heuristic-tag {
|
|
599
|
+
font-size: 10px;
|
|
600
|
+
font-family: var(--mono);
|
|
601
|
+
padding: 1px 5px;
|
|
602
|
+
border-radius: 3px;
|
|
603
|
+
background: var(--surface);
|
|
604
|
+
color: var(--text-dim);
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
/* ===== THE RADIO WAVES ===== */
|
|
608
|
+
.radio-line {
|
|
609
|
+
display: flex;
|
|
610
|
+
align-items: center;
|
|
611
|
+
gap: 10px;
|
|
612
|
+
padding: 6px 0;
|
|
613
|
+
border-bottom: 1px solid var(--border);
|
|
614
|
+
font-size: 13px;
|
|
615
|
+
opacity: 0;
|
|
616
|
+
transform: translateX(15px);
|
|
617
|
+
animation: slideInRight 0.4s ease forwards;
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
.radio-line:last-child { border-bottom: none; }
|
|
621
|
+
|
|
622
|
+
@keyframes slideInRight {
|
|
623
|
+
to { opacity: 1; transform: translateX(0); }
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
.radio-indicator {
|
|
627
|
+
font-size: 16px;
|
|
628
|
+
width: 20px;
|
|
629
|
+
text-align: center;
|
|
630
|
+
flex-shrink: 0;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
.radio-label {
|
|
634
|
+
flex: 1;
|
|
635
|
+
color: var(--text-dim);
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
.radio-value {
|
|
639
|
+
font-family: var(--mono);
|
|
640
|
+
font-size: 13px;
|
|
641
|
+
font-weight: 600;
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
.radio-delta {
|
|
645
|
+
font-family: var(--mono);
|
|
646
|
+
font-size: 11px;
|
|
647
|
+
color: var(--text-dim);
|
|
648
|
+
min-width: 60px;
|
|
649
|
+
text-align: right;
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
.radio-delta.up { color: var(--green); }
|
|
653
|
+
.radio-delta.down { color: var(--red); }
|
|
654
|
+
.radio-delta.new { color: var(--accent); }
|
|
655
|
+
|
|
656
|
+
/* Source color map */
|
|
657
|
+
.source-goal-loop { color: #60a5fa; }
|
|
658
|
+
.source-learn { color: #4ade80; }
|
|
659
|
+
.source-search { color: #fbbf24; }
|
|
660
|
+
.source-agent { color: #c084fc; }
|
|
661
|
+
.source-system { color: #9ca3af; }
|
|
662
|
+
.source-open-loop { color: #6d5dfc; }
|
|
663
|
+
.source-autonomous { color: #f472b6; }
|
|
664
|
+
.source-board { color: #fb923c; }
|
|
665
|
+
.source-calendar { color: #34d399; }
|
|
666
|
+
.source-gmail { color: #f87171; }
|
|
667
|
+
.source-google { color: #34d399; }
|
|
668
|
+
.source-tasks { color: #34d399; }
|
|
669
|
+
.source-slack { color: #60a5fa; }
|
|
670
|
+
.source-whatsapp { color: #4ade80; }
|
|
671
|
+
.source-avatar { color: #f472b6; }
|
|
672
|
+
.source-browse { color: #fbbf24; }
|
|
673
|
+
.source-ingest { color: #9ca3af; }
|
|
674
|
+
|
|
675
|
+
/* Source background colors for chips/segments */
|
|
676
|
+
.source-bg-goal-loop { background: #60a5fa; }
|
|
677
|
+
.source-bg-learn { background: #4ade80; }
|
|
678
|
+
.source-bg-search { background: #fbbf24; }
|
|
679
|
+
.source-bg-agent { background: #c084fc; }
|
|
680
|
+
.source-bg-system { background: #9ca3af; }
|
|
681
|
+
.source-bg-open-loop { background: #6d5dfc; }
|
|
682
|
+
.source-bg-autonomous { background: #f472b6; }
|
|
683
|
+
.source-bg-board { background: #fb923c; }
|
|
684
|
+
.source-bg-calendar { background: #34d399; }
|
|
685
|
+
.source-bg-gmail { background: #f87171; }
|
|
686
|
+
.source-bg-google { background: #34d399; }
|
|
687
|
+
.source-bg-tasks { background: #34d399; }
|
|
688
|
+
.source-bg-slack { background: #60a5fa; }
|
|
689
|
+
.source-bg-whatsapp { background: #4ade80; }
|
|
690
|
+
.source-bg-avatar { background: #f472b6; }
|
|
691
|
+
.source-bg-browse { background: #fbbf24; }
|
|
692
|
+
.source-bg-ingest { background: #9ca3af; }
|
|
693
|
+
|
|
694
|
+
.mono { font-family: var(--mono); font-size: 12px; }
|
|
695
|
+
.dim { color: var(--text-dim); }
|
|
696
|
+
|
|
697
|
+
/* ===== TIMELINE STRIP ===== */
|
|
698
|
+
.timeline-strip {
|
|
699
|
+
position: relative;
|
|
700
|
+
z-index: 1;
|
|
701
|
+
background: var(--surface);
|
|
702
|
+
border-bottom: 1px solid var(--border);
|
|
703
|
+
padding: 8px 24px 20px;
|
|
704
|
+
user-select: none;
|
|
705
|
+
-webkit-user-select: none;
|
|
706
|
+
touch-action: none;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
.timeline-histogram {
|
|
710
|
+
position: relative;
|
|
711
|
+
display: flex;
|
|
712
|
+
align-items: flex-end;
|
|
713
|
+
height: 40px;
|
|
714
|
+
gap: 1px;
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
.timeline-bar {
|
|
718
|
+
flex: 1;
|
|
719
|
+
min-height: 1px;
|
|
720
|
+
border-radius: 1px 1px 0 0;
|
|
721
|
+
transition: height 0.3s ease;
|
|
722
|
+
opacity: 0.7;
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
.timeline-bar:hover { opacity: 1; }
|
|
726
|
+
|
|
727
|
+
.timeline-region {
|
|
728
|
+
position: absolute;
|
|
729
|
+
top: 0;
|
|
730
|
+
bottom: 0;
|
|
731
|
+
background: var(--accent);
|
|
732
|
+
opacity: 0.06;
|
|
733
|
+
pointer-events: none;
|
|
734
|
+
border-radius: 2px;
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
.timeline-thumb {
|
|
738
|
+
position: absolute;
|
|
739
|
+
top: -2px;
|
|
740
|
+
bottom: -2px;
|
|
741
|
+
width: 12px;
|
|
742
|
+
margin-left: -6px;
|
|
743
|
+
cursor: ew-resize;
|
|
744
|
+
z-index: 3;
|
|
745
|
+
display: flex;
|
|
746
|
+
align-items: center;
|
|
747
|
+
justify-content: center;
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
.timeline-thumb::before {
|
|
751
|
+
content: '';
|
|
752
|
+
width: 2px;
|
|
753
|
+
height: 100%;
|
|
754
|
+
background: var(--accent);
|
|
755
|
+
border-radius: 1px;
|
|
756
|
+
box-shadow: 0 0 6px var(--accent);
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
.timeline-thumb-label {
|
|
760
|
+
position: absolute;
|
|
761
|
+
bottom: calc(100% + 4px);
|
|
762
|
+
left: 50%;
|
|
763
|
+
transform: translateX(-50%);
|
|
764
|
+
font-family: var(--mono);
|
|
765
|
+
font-size: 11px;
|
|
766
|
+
color: var(--accent);
|
|
767
|
+
white-space: nowrap;
|
|
768
|
+
pointer-events: none;
|
|
769
|
+
background: var(--surface);
|
|
770
|
+
padding: 1px 6px;
|
|
771
|
+
border-radius: 3px;
|
|
772
|
+
border: 1px solid var(--border);
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
.timeline-labels {
|
|
776
|
+
display: flex;
|
|
777
|
+
justify-content: space-between;
|
|
778
|
+
font-family: var(--mono);
|
|
779
|
+
font-size: 10px;
|
|
780
|
+
color: var(--text-dim);
|
|
781
|
+
margin-top: 4px;
|
|
782
|
+
position: relative;
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
.timeline-gridlabel {
|
|
786
|
+
position: absolute;
|
|
787
|
+
transform: translateX(-50%);
|
|
788
|
+
font-family: var(--mono);
|
|
789
|
+
font-size: 10px;
|
|
790
|
+
color: var(--text-dim);
|
|
791
|
+
opacity: 0.5;
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
.timeline-gridline {
|
|
795
|
+
position: absolute;
|
|
796
|
+
top: 0;
|
|
797
|
+
width: 1px;
|
|
798
|
+
height: 40px;
|
|
799
|
+
background: var(--border);
|
|
800
|
+
opacity: 0.4;
|
|
801
|
+
pointer-events: none;
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
/* ─── Signal section ─── */
|
|
805
|
+
.signal-chips { display: flex; gap: 8px; flex-wrap: wrap; }
|
|
806
|
+
.signal-chip {
|
|
807
|
+
font-family: var(--mono);
|
|
808
|
+
font-size: 12px;
|
|
809
|
+
padding: 4px 10px;
|
|
810
|
+
border-radius: 4px;
|
|
811
|
+
background: var(--surface);
|
|
812
|
+
border-left: 3px solid var(--border);
|
|
813
|
+
}
|
|
814
|
+
.signal-chip.prompted { border-left-color: #5b9aff; color: #5b9aff; }
|
|
815
|
+
.signal-chip.autonomous { border-left-color: #e06cff; color: #e06cff; }
|
|
816
|
+
.signal-chip.reflective { border-left-color: #4ecdc4; color: #4ecdc4; }
|
|
817
|
+
.signal-reflection {
|
|
818
|
+
margin-top: 12px;
|
|
819
|
+
padding: 10px 14px;
|
|
820
|
+
background: var(--surface2);
|
|
821
|
+
border-left: 3px solid #4ecdc4;
|
|
822
|
+
border-radius: 4px;
|
|
823
|
+
font-style: italic;
|
|
824
|
+
font-size: 13px;
|
|
825
|
+
color: var(--text-mid);
|
|
826
|
+
}
|
|
827
|
+
.signal-reflection .reflection-label {
|
|
828
|
+
font-style: normal;
|
|
829
|
+
font-size: 10px;
|
|
830
|
+
text-transform: uppercase;
|
|
831
|
+
letter-spacing: 1px;
|
|
832
|
+
color: #4ecdc4;
|
|
833
|
+
margin-bottom: 4px;
|
|
834
|
+
font-family: var(--mono);
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
</style>
|
|
838
|
+
</head>
|
|
839
|
+
<body>
|
|
840
|
+
|
|
841
|
+
<header>
|
|
842
|
+
<div style="display:flex;align-items:center;">
|
|
843
|
+
<h1><a href="/" style="color: inherit; text-decoration: none;">{{INSTANCE_NAME}}</a></h1>
|
|
844
|
+
<nav class="header-nav">
|
|
845
|
+
<a href="/library">Library</a>
|
|
846
|
+
<a href="/board">Board</a>
|
|
847
|
+
<a href="/ops">Ops</a>
|
|
848
|
+
<a href="/observatory" class="active">Observatory</a>
|
|
849
|
+
<a href="/browser">Browser</a>
|
|
850
|
+
</nav>
|
|
851
|
+
</div>
|
|
852
|
+
<div style="display:flex;align-items:center;gap:16px;">
|
|
853
|
+
<div class="header-meta">
|
|
854
|
+
<span class="away-duration" id="awayDuration" title="Click to cycle time window">Last 2h</span>
|
|
855
|
+
<span class="dim" id="refreshTime">--</span>
|
|
856
|
+
<span><span class="heartbeat-dot" id="heartbeatDot"></span> <span id="heartbeatLabel">alive</span></span>
|
|
857
|
+
</div>
|
|
858
|
+
<div class="header-actions-right">
|
|
859
|
+
<button class="gear-btn" onclick="openShareModal()" title="Share Core">✉</button>
|
|
860
|
+
<a class="gear-btn" href="/?settings=open" title="Settings">⚙</a>
|
|
861
|
+
</div>
|
|
862
|
+
</div>
|
|
863
|
+
</header>
|
|
864
|
+
|
|
865
|
+
<div class="timeline-strip" id="timelineStrip"></div>
|
|
866
|
+
|
|
867
|
+
<main id="mainContent">
|
|
868
|
+
<!-- Sections rendered by JS -->
|
|
869
|
+
<div class="card section-enter" id="pulseSection" style="animation-delay: 0s">
|
|
870
|
+
<div class="pulse-card" id="pulseContent">
|
|
871
|
+
<div class="empty">Loading...</div>
|
|
872
|
+
</div>
|
|
873
|
+
</div>
|
|
874
|
+
|
|
875
|
+
<div class="card section-enter" id="nervousSection" style="animation-delay: 0.1s">
|
|
876
|
+
<h2>The Nervous System — metabolic pulse</h2>
|
|
877
|
+
<div id="nervousContent"><div class="empty">Loading...</div></div>
|
|
878
|
+
</div>
|
|
879
|
+
|
|
880
|
+
<div class="card section-enter" id="signalSection" style="animation-delay: 0.2s">
|
|
881
|
+
<h2>The Signal — action breakdown</h2>
|
|
882
|
+
<div id="signalContent"><div class="empty">Loading...</div></div>
|
|
883
|
+
</div>
|
|
884
|
+
|
|
885
|
+
<div class="card section-enter" id="riverSection" style="animation-delay: 0.35s">
|
|
886
|
+
<h2>The River — what flowed</h2>
|
|
887
|
+
<div id="riverContent"><div class="empty">Loading...</div></div>
|
|
888
|
+
</div>
|
|
889
|
+
|
|
890
|
+
<div class="grid grid-2 section-enter" id="soupSection" style="animation-delay: 0.5s">
|
|
891
|
+
<div class="card">
|
|
892
|
+
<h2>The Soup — resonances</h2>
|
|
893
|
+
<div id="resonancesContent"><div class="empty">Loading...</div></div>
|
|
894
|
+
</div>
|
|
895
|
+
<div class="card">
|
|
896
|
+
<h2>The Soup — insights</h2>
|
|
897
|
+
<div id="insightsContent"><div class="empty">Loading...</div></div>
|
|
898
|
+
</div>
|
|
899
|
+
</div>
|
|
900
|
+
|
|
901
|
+
<div class="card section-enter" id="verticalSection" style="animation-delay: 0.65s">
|
|
902
|
+
<h2>The Vertical — what deepened</h2>
|
|
903
|
+
<div id="verticalContent"><div class="empty">Loading...</div></div>
|
|
904
|
+
</div>
|
|
905
|
+
|
|
906
|
+
<div class="card section-enter" id="radioSection" style="animation-delay: 0.8s">
|
|
907
|
+
<h2>The Radio Waves — contour of change</h2>
|
|
908
|
+
<div id="radioContent"><div class="empty">Loading...</div></div>
|
|
909
|
+
</div>
|
|
910
|
+
</main>
|
|
911
|
+
|
|
912
|
+
<script>
|
|
913
|
+
(function() {
|
|
914
|
+
// --- Helpers ---
|
|
915
|
+
|
|
916
|
+
function escHtml(s) {
|
|
917
|
+
const d = document.createElement('div');
|
|
918
|
+
d.textContent = String(s ?? '');
|
|
919
|
+
return d.innerHTML;
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
function fmtTime(iso) {
|
|
923
|
+
const d = new Date(iso);
|
|
924
|
+
return d.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' });
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
function fmtDuration(ms) {
|
|
928
|
+
const totalMin = Math.floor(ms / 60000);
|
|
929
|
+
const h = Math.floor(totalMin / 60);
|
|
930
|
+
const m = totalMin % 60;
|
|
931
|
+
if (h === 0) return m + 'm';
|
|
932
|
+
return h + 'h ' + m + 'm';
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
async function fetchJSON(url, timeoutMs = 10000) {
|
|
936
|
+
const controller = new AbortController();
|
|
937
|
+
const timer = setTimeout(() => controller.abort(), timeoutMs);
|
|
938
|
+
try {
|
|
939
|
+
const res = await fetch(url, { signal: controller.signal });
|
|
940
|
+
if (!res.ok) throw new Error(res.statusText);
|
|
941
|
+
return res.json();
|
|
942
|
+
} finally {
|
|
943
|
+
clearTimeout(timer);
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
const SOURCE_COLORS = {
|
|
948
|
+
'goal-loop': '#60a5fa', learn: '#4ade80', search: '#fbbf24',
|
|
949
|
+
agent: '#c084fc', system: '#9ca3af', 'open-loop': '#6d5dfc',
|
|
950
|
+
autonomous: '#f472b6', board: '#fb923c', calendar: '#34d399',
|
|
951
|
+
gmail: '#f87171', google: '#34d399', tasks: '#34d399',
|
|
952
|
+
slack: '#60a5fa', whatsapp: '#4ade80', avatar: '#f472b6',
|
|
953
|
+
browse: '#fbbf24', ingest: '#9ca3af',
|
|
954
|
+
};
|
|
955
|
+
|
|
956
|
+
function sourceColor(s) {
|
|
957
|
+
return SOURCE_COLORS[s] || '#9ca3af';
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
// --- Away duration ---
|
|
961
|
+
|
|
962
|
+
const LAST_CONTOUR_KEY = 'observatory_lastContour';
|
|
963
|
+
const TIME_WINDOW_KEY = 'observatory_timeWindow';
|
|
964
|
+
|
|
965
|
+
const TIME_WINDOWS = [
|
|
966
|
+
{ label: 'Last 2h', ms: 2 * 60 * 60 * 1000 },
|
|
967
|
+
{ label: 'Last 6h', ms: 6 * 60 * 60 * 1000 },
|
|
968
|
+
{ label: 'Last 24h', ms: 24 * 60 * 60 * 1000 },
|
|
969
|
+
];
|
|
970
|
+
|
|
971
|
+
let windowIdx = parseInt(localStorage.getItem(TIME_WINDOW_KEY) || '0', 10);
|
|
972
|
+
if (windowIdx < 0 || windowIdx >= TIME_WINDOWS.length) windowIdx = 0;
|
|
973
|
+
|
|
974
|
+
// Track duration (ms ago) rather than absolute timestamp — survives auto-refresh
|
|
975
|
+
let awayDurationMs = TIME_WINDOWS[windowIdx].ms;
|
|
976
|
+
let awayTs = Date.now() - awayDurationMs;
|
|
977
|
+
|
|
978
|
+
// Cached raw API data for slider re-filtering
|
|
979
|
+
let cachedActivities = [];
|
|
980
|
+
let cachedResonances = [];
|
|
981
|
+
let cachedLastRun = null;
|
|
982
|
+
let cachedLoops = [];
|
|
983
|
+
let cachedTriads = [];
|
|
984
|
+
let cachedInsights = [];
|
|
985
|
+
let cachedDashboard = {};
|
|
986
|
+
let cachedPulseStatus = {};
|
|
987
|
+
|
|
988
|
+
function updateAwayDisplay() {
|
|
989
|
+
const el = document.getElementById('awayDuration');
|
|
990
|
+
el.textContent = TIME_WINDOWS[windowIdx].label;
|
|
991
|
+
el.title = 'Click to cycle time window';
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
document.getElementById('awayDuration').addEventListener('click', () => {
|
|
995
|
+
windowIdx = (windowIdx + 1) % TIME_WINDOWS.length;
|
|
996
|
+
localStorage.setItem(TIME_WINDOW_KEY, String(windowIdx));
|
|
997
|
+
awayDurationMs = TIME_WINDOWS[windowIdx].ms;
|
|
998
|
+
awayTs = Date.now() - awayDurationMs;
|
|
999
|
+
updateAwayDisplay();
|
|
1000
|
+
refreshDisplay();
|
|
1001
|
+
});
|
|
1002
|
+
|
|
1003
|
+
updateAwayDisplay();
|
|
1004
|
+
|
|
1005
|
+
// --- Pulse classification ---
|
|
1006
|
+
|
|
1007
|
+
function classifyPulse(deltaActivities, resonances, insights) {
|
|
1008
|
+
const eventCount = deltaActivities.length;
|
|
1009
|
+
const hasResonances = resonances.length > 0;
|
|
1010
|
+
const hasInsights = insights.length > 0;
|
|
1011
|
+
|
|
1012
|
+
if (hasResonances && hasInsights) {
|
|
1013
|
+
return {
|
|
1014
|
+
label: 'Breakthrough',
|
|
1015
|
+
color: 'var(--pulse-breakthrough)',
|
|
1016
|
+
cssVar: '--pulse-breakthrough',
|
|
1017
|
+
hex: '#22c55e',
|
|
1018
|
+
summary: 'Resonances fired and insights emerged. Something connected while you were away.',
|
|
1019
|
+
};
|
|
1020
|
+
}
|
|
1021
|
+
if (eventCount > 30 || (eventCount > 15 && hasResonances)) {
|
|
1022
|
+
return {
|
|
1023
|
+
label: 'Turbulent',
|
|
1024
|
+
color: 'var(--pulse-turbulent)',
|
|
1025
|
+
cssVar: '--pulse-turbulent',
|
|
1026
|
+
hex: '#f97316',
|
|
1027
|
+
summary: eventCount + ' events churned through the system. High activity night.',
|
|
1028
|
+
};
|
|
1029
|
+
}
|
|
1030
|
+
if (eventCount <= 5 && !hasResonances) {
|
|
1031
|
+
return {
|
|
1032
|
+
label: 'Still',
|
|
1033
|
+
color: 'var(--pulse-still)',
|
|
1034
|
+
cssVar: '--pulse-still',
|
|
1035
|
+
hex: '#a78bfa',
|
|
1036
|
+
summary: 'A quiet stretch. ' + (eventCount === 0 ? 'Nothing stirred.' : 'Only ' + eventCount + ' small ripple' + (eventCount > 1 ? 's' : '') + '.'),
|
|
1037
|
+
};
|
|
1038
|
+
}
|
|
1039
|
+
return {
|
|
1040
|
+
label: 'Steady',
|
|
1041
|
+
color: 'var(--pulse-steady)',
|
|
1042
|
+
cssVar: '--pulse-steady',
|
|
1043
|
+
hex: '#3b82f6',
|
|
1044
|
+
summary: eventCount + ' events flowed through. The system kept its rhythm.',
|
|
1045
|
+
};
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
// --- Render: Pulse ---
|
|
1049
|
+
|
|
1050
|
+
function renderPulse(pulse) {
|
|
1051
|
+
document.documentElement.style.setProperty('--pulse-color', pulse.hex);
|
|
1052
|
+
const el = document.getElementById('pulseContent');
|
|
1053
|
+
el.innerHTML = `
|
|
1054
|
+
<div class="pulse-dot" style="background: ${pulse.color}; box-shadow: 0 0 12px ${pulse.color};"></div>
|
|
1055
|
+
<div class="pulse-label" style="color: ${pulse.color}">${escHtml(pulse.label)}</div>
|
|
1056
|
+
<div class="pulse-summary">${escHtml(pulse.summary)}</div>
|
|
1057
|
+
`;
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
// --- Render: Signal ---
|
|
1061
|
+
|
|
1062
|
+
function renderSignal(deltaActivities) {
|
|
1063
|
+
const el = document.getElementById('signalContent');
|
|
1064
|
+
|
|
1065
|
+
const counts = { PROMPTED: 0, AUTONOMOUS: 0, REFLECTIVE: 0 };
|
|
1066
|
+
let latestReflection = null;
|
|
1067
|
+
|
|
1068
|
+
for (const a of deltaActivities) {
|
|
1069
|
+
if (a.actionLabel && counts.hasOwnProperty(a.actionLabel)) {
|
|
1070
|
+
counts[a.actionLabel]++;
|
|
1071
|
+
}
|
|
1072
|
+
if (a.actionLabel === 'REFLECTIVE' && (!latestReflection || a.timestamp > latestReflection.timestamp)) {
|
|
1073
|
+
latestReflection = a;
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
let html = '<div class="signal-chips">';
|
|
1078
|
+
html += `<span class="signal-chip prompted">PROMPTED ${counts.PROMPTED}</span>`;
|
|
1079
|
+
html += `<span class="signal-chip autonomous">AUTONOMOUS ${counts.AUTONOMOUS}</span>`;
|
|
1080
|
+
html += `<span class="signal-chip reflective">REFLECTIVE ${counts.REFLECTIVE}</span>`;
|
|
1081
|
+
html += '</div>';
|
|
1082
|
+
|
|
1083
|
+
if (latestReflection) {
|
|
1084
|
+
html += `<div class="signal-reflection">
|
|
1085
|
+
<div class="reflection-label">Latest reflection</div>
|
|
1086
|
+
<div class="reflection-text">"${escHtml(latestReflection.summary)}"</div>
|
|
1087
|
+
</div>`;
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
el.innerHTML = html;
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
// --- Render: River ---
|
|
1094
|
+
|
|
1095
|
+
function renderRiver(deltaActivities) {
|
|
1096
|
+
const el = document.getElementById('riverContent');
|
|
1097
|
+
|
|
1098
|
+
if (deltaActivities.length === 0) {
|
|
1099
|
+
el.innerHTML = '<div class="empty">The river was still</div>';
|
|
1100
|
+
return;
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
// Count by source
|
|
1104
|
+
const counts = {};
|
|
1105
|
+
for (const a of deltaActivities) {
|
|
1106
|
+
counts[a.source] = (counts[a.source] || 0) + 1;
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1109
|
+
const total = deltaActivities.length;
|
|
1110
|
+
const sources = Object.entries(counts).sort((a, b) => b[1] - a[1]);
|
|
1111
|
+
|
|
1112
|
+
// Horizontal bar
|
|
1113
|
+
let barHtml = '<div class="river-bar-container">';
|
|
1114
|
+
sources.forEach(([source, count], i) => {
|
|
1115
|
+
const pct = (count / total * 100).toFixed(1);
|
|
1116
|
+
barHtml += `<div class="river-segment source-bg-${source}" style="width: ${pct}%; animation-delay: ${i * 0.1}s" title="${escHtml(source)}: ${count}"></div>`;
|
|
1117
|
+
});
|
|
1118
|
+
barHtml += '</div>';
|
|
1119
|
+
|
|
1120
|
+
// Source chips
|
|
1121
|
+
let chipsHtml = '<div class="river-chips">';
|
|
1122
|
+
for (const [source, count] of sources) {
|
|
1123
|
+
chipsHtml += `<span class="river-chip" style="color: ${sourceColor(source)}">${escHtml(source)} ${count}</span>`;
|
|
1124
|
+
}
|
|
1125
|
+
chipsHtml += '</div>';
|
|
1126
|
+
|
|
1127
|
+
// Top 5 notable entries (most recent)
|
|
1128
|
+
const top5 = deltaActivities.slice(-5).reverse();
|
|
1129
|
+
let entriesHtml = '<div class="river-entries">';
|
|
1130
|
+
for (const a of top5) {
|
|
1131
|
+
entriesHtml += `
|
|
1132
|
+
<div class="river-entry">
|
|
1133
|
+
<span class="river-time">${fmtTime(a.timestamp)}</span>
|
|
1134
|
+
<span class="river-source" style="color: ${sourceColor(a.source)}">${escHtml(a.source)}</span>
|
|
1135
|
+
<span class="river-text">${escHtml(a.summary)}</span>
|
|
1136
|
+
</div>`;
|
|
1137
|
+
}
|
|
1138
|
+
entriesHtml += '</div>';
|
|
1139
|
+
|
|
1140
|
+
el.innerHTML = barHtml + chipsHtml + entriesHtml;
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
// --- Render: Soup (Resonances) ---
|
|
1144
|
+
|
|
1145
|
+
function renderResonances(resonances, loops, lastRun) {
|
|
1146
|
+
const el = document.getElementById('resonancesContent');
|
|
1147
|
+
|
|
1148
|
+
if (resonances.length === 0) {
|
|
1149
|
+
el.innerHTML = '<div class="empty">No resonances detected</div>';
|
|
1150
|
+
appendScannerSummary(el, lastRun);
|
|
1151
|
+
return;
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
// Build loop lookup
|
|
1155
|
+
const loopMap = {};
|
|
1156
|
+
for (const l of loops) loopMap[l.id] = l;
|
|
1157
|
+
|
|
1158
|
+
let html = '';
|
|
1159
|
+
for (let i = 0; i < resonances.length; i++) {
|
|
1160
|
+
const r = resonances[i];
|
|
1161
|
+
const loop = loopMap[r.loopId];
|
|
1162
|
+
const anchor = loop ? loop.anchor : r.loopId;
|
|
1163
|
+
const simPct = Math.round(r.similarity * 100);
|
|
1164
|
+
html += `
|
|
1165
|
+
<div class="resonance-card" style="animation-delay: ${i * 0.15}s">
|
|
1166
|
+
<div class="resonance-anchor">${escHtml(anchor)}</div>
|
|
1167
|
+
<div class="resonance-summary">${escHtml(r.matchedSummary)}</div>
|
|
1168
|
+
<div class="similarity-bar-wrap">
|
|
1169
|
+
<div class="similarity-bar"><div class="similarity-fill" style="width: ${simPct}%"></div></div>
|
|
1170
|
+
<span class="similarity-label">${simPct}%</span>
|
|
1171
|
+
</div>
|
|
1172
|
+
<div class="resonance-explanation">${escHtml(r.explanation)}</div>
|
|
1173
|
+
</div>`;
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
el.innerHTML = html;
|
|
1177
|
+
appendScannerSummary(el, lastRun);
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
function appendScannerSummary(el, lastRun) {
|
|
1181
|
+
if (!lastRun) return;
|
|
1182
|
+
const summary = document.createElement('div');
|
|
1183
|
+
summary.className = 'scanner-summary';
|
|
1184
|
+
summary.textContent = 'Scanned ' + lastRun.activeLoopsScanned + ' loops against ' + lastRun.newEntriesScanned + ' entries';
|
|
1185
|
+
el.appendChild(summary);
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
// --- Render: Soup (Insights) ---
|
|
1189
|
+
|
|
1190
|
+
function renderInsights(insights) {
|
|
1191
|
+
const el = document.getElementById('insightsContent');
|
|
1192
|
+
|
|
1193
|
+
if (insights.length === 0) {
|
|
1194
|
+
el.innerHTML = '<div class="empty">No insights emerged</div>';
|
|
1195
|
+
return;
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
let html = '';
|
|
1199
|
+
for (let i = 0; i < insights.length; i++) {
|
|
1200
|
+
const ins = insights[i];
|
|
1201
|
+
const catClass = 'insight-category-' + escHtml(ins.category);
|
|
1202
|
+
html += `
|
|
1203
|
+
<div class="insight-card" style="animation-delay: ${i * 0.15}s">
|
|
1204
|
+
<div class="insight-header">
|
|
1205
|
+
<span class="insight-category ${catClass}">${escHtml(ins.category)}</span>
|
|
1206
|
+
<span class="insight-title">${escHtml(ins.title)}</span>
|
|
1207
|
+
</div>
|
|
1208
|
+
<div class="insight-desc">${escHtml(ins.description)}</div>
|
|
1209
|
+
<div class="insight-meta">${escHtml(ins.confidence)} confidence</div>
|
|
1210
|
+
</div>`;
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
el.innerHTML = html;
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
// --- Render: Vertical ---
|
|
1217
|
+
|
|
1218
|
+
function renderVertical(loops, triads) {
|
|
1219
|
+
const el = document.getElementById('verticalContent');
|
|
1220
|
+
|
|
1221
|
+
// State counts
|
|
1222
|
+
const stateCounts = { active: 0, resonant: 0, dormant: 0, expired: 0 };
|
|
1223
|
+
for (const l of loops) {
|
|
1224
|
+
if (stateCounts[l.state] !== undefined) stateCounts[l.state]++;
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
const resonantGlow = stateCounts.resonant > 0 ? ' state-resonant-glow' : '';
|
|
1228
|
+
|
|
1229
|
+
let stateHtml = '<div class="state-overview">';
|
|
1230
|
+
stateHtml += `<div class="state-item"><span class="state-num" style="color: var(--green)">${stateCounts.active}</span><span class="state-label">Active</span></div>`;
|
|
1231
|
+
stateHtml += `<div class="state-item"><span class="state-num state-resonant${resonantGlow}">${stateCounts.resonant}</span><span class="state-label">Resonant</span></div>`;
|
|
1232
|
+
stateHtml += `<div class="state-item"><span class="state-num" style="color: var(--text-dim)">${stateCounts.dormant}</span><span class="state-label">Dormant</span></div>`;
|
|
1233
|
+
stateHtml += `<div class="state-item"><span class="state-num" style="color: var(--text-dim)">${stateCounts.expired}</span><span class="state-label">Expired</span></div>`;
|
|
1234
|
+
stateHtml += '</div>';
|
|
1235
|
+
|
|
1236
|
+
// Filter triads created since away
|
|
1237
|
+
const awaySince = new Date(awayTs).toISOString();
|
|
1238
|
+
const recentTriads = triads.filter(t => t.createdAt >= awaySince);
|
|
1239
|
+
|
|
1240
|
+
let triadsHtml = '';
|
|
1241
|
+
if (recentTriads.length > 0) {
|
|
1242
|
+
for (let i = 0; i < recentTriads.length; i++) {
|
|
1243
|
+
const t = recentTriads[i];
|
|
1244
|
+
let tensionTags = '';
|
|
1245
|
+
if (t.residualTensions && t.residualTensions.length > 0) {
|
|
1246
|
+
tensionTags = '<div class="triad-tensions">' +
|
|
1247
|
+
t.residualTensions.map(rt => `<span class="tension-tag">${escHtml(rt)}</span>`).join('') +
|
|
1248
|
+
'</div>';
|
|
1249
|
+
}
|
|
1250
|
+
triadsHtml += `
|
|
1251
|
+
<div class="triad-card" style="animation-delay: ${i * 0.15}s">
|
|
1252
|
+
<div class="triad-anchor">${escHtml(t.anchor)}</div>
|
|
1253
|
+
<div class="triad-shift">${escHtml(t.vectorShift)}</div>
|
|
1254
|
+
${tensionTags}
|
|
1255
|
+
<div class="triad-meta">${t.openLoopIds ? t.openLoopIds.length : 0} connected loops</div>
|
|
1256
|
+
</div>`;
|
|
1257
|
+
}
|
|
1258
|
+
} else {
|
|
1259
|
+
triadsHtml = '<div class="empty" style="margin-top: 8px">No new triads formed</div>';
|
|
1260
|
+
}
|
|
1261
|
+
|
|
1262
|
+
// Loops that recently changed to resonant state (proxy: resonant loops)
|
|
1263
|
+
const resonantLoops = loops.filter(l => l.state === 'resonant');
|
|
1264
|
+
let loopChangesHtml = '';
|
|
1265
|
+
if (resonantLoops.length > 0) {
|
|
1266
|
+
loopChangesHtml = '<div style="margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border);">';
|
|
1267
|
+
loopChangesHtml += '<div style="font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 8px;">Resonant Loops</div>';
|
|
1268
|
+
for (const l of resonantLoops) {
|
|
1269
|
+
let heuristicTags = '';
|
|
1270
|
+
if (l.searchHeuristic && l.searchHeuristic.length > 0) {
|
|
1271
|
+
heuristicTags = '<div class="loop-heuristics">' +
|
|
1272
|
+
l.searchHeuristic.map(h => `<span class="heuristic-tag">${escHtml(h)}</span>`).join('') +
|
|
1273
|
+
'</div>';
|
|
1274
|
+
}
|
|
1275
|
+
loopChangesHtml += `
|
|
1276
|
+
<div class="loop-change-card">
|
|
1277
|
+
<div class="loop-dissonance">${escHtml(l.dissonance)}</div>
|
|
1278
|
+
${heuristicTags}
|
|
1279
|
+
</div>`;
|
|
1280
|
+
}
|
|
1281
|
+
loopChangesHtml += '</div>';
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
el.innerHTML = stateHtml + triadsHtml + loopChangesHtml;
|
|
1285
|
+
}
|
|
1286
|
+
|
|
1287
|
+
// --- Render: Radio Waves ---
|
|
1288
|
+
|
|
1289
|
+
function renderRadioWaves(deltaActivities, loops, resonances, insights, dashboard) {
|
|
1290
|
+
const el = document.getElementById('radioContent');
|
|
1291
|
+
|
|
1292
|
+
// Current contour
|
|
1293
|
+
const contour = {
|
|
1294
|
+
events: deltaActivities.length,
|
|
1295
|
+
loops: loops.length,
|
|
1296
|
+
resonances: resonances.length,
|
|
1297
|
+
insights: insights.length,
|
|
1298
|
+
activeLoops: loops.filter(l => l.state === 'active').length,
|
|
1299
|
+
resonantLoops: loops.filter(l => l.state === 'resonant').length,
|
|
1300
|
+
};
|
|
1301
|
+
|
|
1302
|
+
// Load previous contour
|
|
1303
|
+
const prevRaw = localStorage.getItem(LAST_CONTOUR_KEY);
|
|
1304
|
+
let prev = null;
|
|
1305
|
+
try { prev = prevRaw ? JSON.parse(prevRaw) : null; } catch(e) {}
|
|
1306
|
+
|
|
1307
|
+
function delta(key) {
|
|
1308
|
+
if (!prev || prev[key] === undefined) return { text: 'new', cls: 'new' };
|
|
1309
|
+
const diff = contour[key] - prev[key];
|
|
1310
|
+
if (diff > 0) return { text: '+' + diff, cls: 'up' };
|
|
1311
|
+
if (diff < 0) return { text: String(diff), cls: 'down' };
|
|
1312
|
+
return { text: '—', cls: '' };
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
function indicator(key) {
|
|
1316
|
+
if (!prev || prev[key] === undefined) return '✦';
|
|
1317
|
+
const diff = contour[key] - prev[key];
|
|
1318
|
+
if (diff > 0) return '↑';
|
|
1319
|
+
if (diff < 0) return '↓';
|
|
1320
|
+
return '—';
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
const lines = [
|
|
1324
|
+
{ label: 'Events while away', value: contour.events, key: 'events' },
|
|
1325
|
+
{ label: 'Total open loops', value: contour.loops, key: 'loops' },
|
|
1326
|
+
{ label: 'Active loops', value: contour.activeLoops, key: 'activeLoops' },
|
|
1327
|
+
{ label: 'Resonant loops', value: contour.resonantLoops, key: 'resonantLoops' },
|
|
1328
|
+
{ label: 'Resonances fired', value: contour.resonances, key: 'resonances' },
|
|
1329
|
+
{ label: 'Insights discovered', value: contour.insights, key: 'insights' },
|
|
1330
|
+
];
|
|
1331
|
+
|
|
1332
|
+
let html = '';
|
|
1333
|
+
lines.forEach((line, i) => {
|
|
1334
|
+
const d = delta(line.key);
|
|
1335
|
+
const ind = indicator(line.key);
|
|
1336
|
+
html += `
|
|
1337
|
+
<div class="radio-line" style="animation-delay: ${i * 0.1}s">
|
|
1338
|
+
<span class="radio-indicator">${ind}</span>
|
|
1339
|
+
<span class="radio-label">${escHtml(line.label)}</span>
|
|
1340
|
+
<span class="radio-value">${line.value}</span>
|
|
1341
|
+
<span class="radio-delta ${d.cls}">${d.text}</span>
|
|
1342
|
+
</div>`;
|
|
1343
|
+
});
|
|
1344
|
+
|
|
1345
|
+
el.innerHTML = html;
|
|
1346
|
+
|
|
1347
|
+
// Store contour in memory; only persist to localStorage on page unload
|
|
1348
|
+
currentContour = contour;
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1351
|
+
// Contour saved on unload so Radio Waves delta stays meaningful during the session
|
|
1352
|
+
let currentContour = null;
|
|
1353
|
+
window.addEventListener('beforeunload', () => {
|
|
1354
|
+
if (currentContour) localStorage.setItem(LAST_CONTOUR_KEY, JSON.stringify(currentContour));
|
|
1355
|
+
});
|
|
1356
|
+
|
|
1357
|
+
|
|
1358
|
+
|
|
1359
|
+
function fmtTimeAgo(d) {
|
|
1360
|
+
const ms = Date.now() - d.getTime();
|
|
1361
|
+
const mins = Math.round(ms / 60000);
|
|
1362
|
+
if (mins < 1) return 'just now';
|
|
1363
|
+
if (mins < 60) return mins + 'm ago';
|
|
1364
|
+
const hrs = Math.round(mins / 60);
|
|
1365
|
+
if (hrs < 24) return hrs + 'h ago';
|
|
1366
|
+
return Math.round(hrs / 24) + 'd ago';
|
|
1367
|
+
}
|
|
1368
|
+
|
|
1369
|
+
// --- Timeline Histogram + Slider ---
|
|
1370
|
+
|
|
1371
|
+
const TIMELINE_HOURS = 24;
|
|
1372
|
+
const BUCKET_MINUTES = 10;
|
|
1373
|
+
const BUCKET_COUNT = (TIMELINE_HOURS * 60) / BUCKET_MINUTES; // 144
|
|
1374
|
+
|
|
1375
|
+
function buildHistogram(activities) {
|
|
1376
|
+
const now = Date.now();
|
|
1377
|
+
const windowStart = now - TIMELINE_HOURS * 60 * 60 * 1000;
|
|
1378
|
+
const buckets = Array.from({ length: BUCKET_COUNT }, (_, i) => ({
|
|
1379
|
+
time: windowStart + i * BUCKET_MINUTES * 60000,
|
|
1380
|
+
count: 0,
|
|
1381
|
+
sources: {},
|
|
1382
|
+
}));
|
|
1383
|
+
|
|
1384
|
+
for (const a of activities) {
|
|
1385
|
+
const t = new Date(a.timestamp).getTime();
|
|
1386
|
+
if (t < windowStart || t > now) continue;
|
|
1387
|
+
const idx = Math.min(Math.floor((t - windowStart) / (BUCKET_MINUTES * 60000)), BUCKET_COUNT - 1);
|
|
1388
|
+
buckets[idx].count++;
|
|
1389
|
+
buckets[idx].sources[a.source] = (buckets[idx].sources[a.source] || 0) + 1;
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1392
|
+
// Compute dominant source per bucket
|
|
1393
|
+
for (const b of buckets) {
|
|
1394
|
+
let best = null, bestCount = 0;
|
|
1395
|
+
for (const [src, cnt] of Object.entries(b.sources)) {
|
|
1396
|
+
if (cnt > bestCount) { best = src; bestCount = cnt; }
|
|
1397
|
+
}
|
|
1398
|
+
b.dominantSource = best;
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1401
|
+
return buckets;
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1404
|
+
function renderTimeline(bins) {
|
|
1405
|
+
const strip = document.getElementById('timelineStrip');
|
|
1406
|
+
const now = Date.now();
|
|
1407
|
+
const windowStart = now - TIMELINE_HOURS * 60 * 60 * 1000;
|
|
1408
|
+
const maxCount = Math.max(1, ...bins.map(b => b.count));
|
|
1409
|
+
|
|
1410
|
+
// Gridlines every 3 hours
|
|
1411
|
+
let gridHtml = '';
|
|
1412
|
+
let gridLabelHtml = '';
|
|
1413
|
+
for (let h = 3; h < TIMELINE_HOURS; h += 3) {
|
|
1414
|
+
const pct = (h / TIMELINE_HOURS * 100).toFixed(2);
|
|
1415
|
+
const t = new Date(windowStart + h * 3600000);
|
|
1416
|
+
const label = t.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' });
|
|
1417
|
+
gridHtml += `<div class="timeline-gridline" style="left: ${pct}%"></div>`;
|
|
1418
|
+
gridLabelHtml += `<span class="timeline-gridlabel" style="left: ${pct}%">${label}</span>`;
|
|
1419
|
+
}
|
|
1420
|
+
|
|
1421
|
+
// Bars
|
|
1422
|
+
let barsHtml = '';
|
|
1423
|
+
for (const b of bins) {
|
|
1424
|
+
const h = b.count === 0 ? 1 : Math.max(2, Math.round((b.count / maxCount) * 40));
|
|
1425
|
+
const color = b.dominantSource ? sourceColor(b.dominantSource) : 'var(--text-dim)';
|
|
1426
|
+
barsHtml += `<div class="timeline-bar" style="height: ${h}px; background: ${color}"></div>`;
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1429
|
+
// Thumb position
|
|
1430
|
+
const thumbPct = Math.max(0, Math.min(100, ((awayTs - windowStart) / (now - windowStart)) * 100));
|
|
1431
|
+
|
|
1432
|
+
strip.innerHTML = `
|
|
1433
|
+
<div class="timeline-histogram" id="timelineHistogram">
|
|
1434
|
+
${gridHtml}
|
|
1435
|
+
${barsHtml}
|
|
1436
|
+
<div class="timeline-region" style="left: ${thumbPct}%; right: 0"></div>
|
|
1437
|
+
<div class="timeline-thumb" id="timelineThumb" style="left: ${thumbPct}%">
|
|
1438
|
+
<div class="timeline-thumb-label">${fmtDuration(now - awayTs)} ago</div>
|
|
1439
|
+
</div>
|
|
1440
|
+
</div>
|
|
1441
|
+
<div class="timeline-labels">
|
|
1442
|
+
<span>24h ago</span>
|
|
1443
|
+
${gridLabelHtml}
|
|
1444
|
+
<span>now</span>
|
|
1445
|
+
</div>
|
|
1446
|
+
`;
|
|
1447
|
+
|
|
1448
|
+
setupTimelineDrag();
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1451
|
+
function setupTimelineDrag() {
|
|
1452
|
+
const histogram = document.getElementById('timelineHistogram');
|
|
1453
|
+
const thumb = document.getElementById('timelineThumb');
|
|
1454
|
+
if (!thumb || !histogram) return;
|
|
1455
|
+
|
|
1456
|
+
let dragging = false;
|
|
1457
|
+
let rafPending = false;
|
|
1458
|
+
|
|
1459
|
+
function positionFromEvent(e) {
|
|
1460
|
+
const rect = histogram.getBoundingClientRect();
|
|
1461
|
+
const x = Math.max(0, Math.min(e.clientX - rect.left, rect.width));
|
|
1462
|
+
return x / rect.width;
|
|
1463
|
+
}
|
|
1464
|
+
|
|
1465
|
+
function updateFromFraction(frac) {
|
|
1466
|
+
const now = Date.now();
|
|
1467
|
+
const windowStart = now - TIMELINE_HOURS * 60 * 60 * 1000;
|
|
1468
|
+
// Snap to bucket boundaries
|
|
1469
|
+
const bucketFrac = 1 / BUCKET_COUNT;
|
|
1470
|
+
const snapped = Math.round(frac / bucketFrac) * bucketFrac;
|
|
1471
|
+
const clampedFrac = Math.max(0, Math.min(1, snapped));
|
|
1472
|
+
|
|
1473
|
+
awayTs = Math.round(windowStart + clampedFrac * (now - windowStart));
|
|
1474
|
+
// Don't allow future timestamps
|
|
1475
|
+
if (awayTs > now) awayTs = now;
|
|
1476
|
+
// Persist as duration so auto-refresh preserves the drag position
|
|
1477
|
+
awayDurationMs = now - awayTs;
|
|
1478
|
+
|
|
1479
|
+
// Update thumb + region visually (no full rerender during drag)
|
|
1480
|
+
const pct = (clampedFrac * 100).toFixed(2);
|
|
1481
|
+
thumb.style.left = pct + '%';
|
|
1482
|
+
const region = histogram.querySelector('.timeline-region');
|
|
1483
|
+
if (region) region.style.left = pct + '%';
|
|
1484
|
+
const label = thumb.querySelector('.timeline-thumb-label');
|
|
1485
|
+
if (label) label.textContent = fmtDuration(now - awayTs) + ' ago';
|
|
1486
|
+
|
|
1487
|
+
updateAwayDisplay();
|
|
1488
|
+
}
|
|
1489
|
+
|
|
1490
|
+
thumb.addEventListener('pointerdown', (e) => {
|
|
1491
|
+
dragging = true;
|
|
1492
|
+
thumb.setPointerCapture(e.pointerId);
|
|
1493
|
+
e.preventDefault();
|
|
1494
|
+
});
|
|
1495
|
+
|
|
1496
|
+
thumb.addEventListener('pointermove', (e) => {
|
|
1497
|
+
if (!dragging) return;
|
|
1498
|
+
if (rafPending) return;
|
|
1499
|
+
rafPending = true;
|
|
1500
|
+
requestAnimationFrame(() => {
|
|
1501
|
+
updateFromFraction(positionFromEvent(e));
|
|
1502
|
+
rafPending = false;
|
|
1503
|
+
});
|
|
1504
|
+
});
|
|
1505
|
+
|
|
1506
|
+
thumb.addEventListener('pointerup', (e) => {
|
|
1507
|
+
if (!dragging) return;
|
|
1508
|
+
dragging = false;
|
|
1509
|
+
thumb.releasePointerCapture(e.pointerId);
|
|
1510
|
+
rerender();
|
|
1511
|
+
});
|
|
1512
|
+
|
|
1513
|
+
// Click on histogram to jump
|
|
1514
|
+
histogram.addEventListener('click', (e) => {
|
|
1515
|
+
if (e.target === thumb || thumb.contains(e.target)) return;
|
|
1516
|
+
updateFromFraction(positionFromEvent(e));
|
|
1517
|
+
rerender();
|
|
1518
|
+
});
|
|
1519
|
+
}
|
|
1520
|
+
|
|
1521
|
+
function rerender() {
|
|
1522
|
+
const awaySince = new Date(awayTs).toISOString();
|
|
1523
|
+
const deltaActivities = cachedActivities.filter(a => a.timestamp >= awaySince);
|
|
1524
|
+
const insights = cachedInsights.filter(ins => ins.discoveredAt >= awaySince);
|
|
1525
|
+
const deltaResonances = cachedResonances.filter(r => r.timestamp >= awaySince);
|
|
1526
|
+
|
|
1527
|
+
const pulse = classifyPulse(deltaActivities, deltaResonances, insights);
|
|
1528
|
+
|
|
1529
|
+
renderPulse(pulse);
|
|
1530
|
+
renderSignal(deltaActivities);
|
|
1531
|
+
renderRiver(deltaActivities);
|
|
1532
|
+
renderResonances(deltaResonances, cachedLoops, cachedLastRun);
|
|
1533
|
+
renderInsights(insights);
|
|
1534
|
+
renderVertical(cachedLoops, cachedTriads);
|
|
1535
|
+
renderRadioWaves(deltaActivities, cachedLoops, deltaResonances, insights, cachedDashboard);
|
|
1536
|
+
updateAwayDisplay();
|
|
1537
|
+
}
|
|
1538
|
+
|
|
1539
|
+
// --- Main load ---
|
|
1540
|
+
|
|
1541
|
+
const REFRESH_INTERVAL = 30000;
|
|
1542
|
+
let isFirstLoad = true;
|
|
1543
|
+
|
|
1544
|
+
function setHeartbeat(ok) {
|
|
1545
|
+
const dot = document.getElementById('heartbeatDot');
|
|
1546
|
+
const label = document.getElementById('heartbeatLabel');
|
|
1547
|
+
if (ok) {
|
|
1548
|
+
dot.style.background = 'var(--green)';
|
|
1549
|
+
dot.style.boxShadow = '0 0 6px var(--green)';
|
|
1550
|
+
label.textContent = 'alive';
|
|
1551
|
+
} else {
|
|
1552
|
+
dot.style.background = 'var(--red)';
|
|
1553
|
+
dot.style.boxShadow = '0 0 6px var(--red)';
|
|
1554
|
+
label.textContent = 'unreachable';
|
|
1555
|
+
}
|
|
1556
|
+
}
|
|
1557
|
+
|
|
1558
|
+
function renderNervous(data) {
|
|
1559
|
+
const el = document.getElementById('nervousContent');
|
|
1560
|
+
if (!data || data.error || !data.voltage && data.voltage !== 0) {
|
|
1561
|
+
el.innerHTML = '<div class="empty">Pulse system not active</div>';
|
|
1562
|
+
return;
|
|
1563
|
+
}
|
|
1564
|
+
|
|
1565
|
+
const pct = Math.min(100, Math.round((data.voltage / data.effectiveThreshold) * 100));
|
|
1566
|
+
|
|
1567
|
+
// Color based on fill percentage
|
|
1568
|
+
let barColor = 'var(--green)';
|
|
1569
|
+
if (pct > 80) barColor = 'var(--red)';
|
|
1570
|
+
else if (pct > 50) barColor = 'var(--orange)';
|
|
1571
|
+
else if (pct > 25) barColor = 'var(--yellow)';
|
|
1572
|
+
|
|
1573
|
+
const stateClass = data.state.replace('-', '-');
|
|
1574
|
+
|
|
1575
|
+
// Last pulse age
|
|
1576
|
+
let lastPulseStr = 'never';
|
|
1577
|
+
if (data.lastPulseAge >= 0) {
|
|
1578
|
+
const mins = Math.floor(data.lastPulseAge / 60000);
|
|
1579
|
+
if (mins < 1) lastPulseStr = '<1m ago';
|
|
1580
|
+
else if (mins < 60) lastPulseStr = mins + 'm ago';
|
|
1581
|
+
else lastPulseStr = Math.floor(mins / 60) + 'h ' + (mins % 60) + 'm ago';
|
|
1582
|
+
}
|
|
1583
|
+
|
|
1584
|
+
// Refractory remaining
|
|
1585
|
+
let refractoryStr = '';
|
|
1586
|
+
if (data.refractoryRemaining > 0) {
|
|
1587
|
+
refractoryStr = ' (' + Math.ceil(data.refractoryRemaining / 1000) + 's)';
|
|
1588
|
+
}
|
|
1589
|
+
|
|
1590
|
+
el.innerHTML = `
|
|
1591
|
+
<div class="nervous-grid">
|
|
1592
|
+
<div>
|
|
1593
|
+
<div class="voltage-bar-wrap">
|
|
1594
|
+
<div class="voltage-bar-fill" style="width: ${pct}%; background: ${barColor};"></div>
|
|
1595
|
+
<div class="voltage-bar-label">${data.voltage}/${data.effectiveThreshold} mV</div>
|
|
1596
|
+
</div>
|
|
1597
|
+
</div>
|
|
1598
|
+
<div>
|
|
1599
|
+
<span class="nervous-state ${stateClass}">${escHtml(data.state)}${refractoryStr}</span>
|
|
1600
|
+
</div>
|
|
1601
|
+
</div>
|
|
1602
|
+
<div style="display: flex; gap: 24px; margin-top: 10px; flex-wrap: wrap;">
|
|
1603
|
+
<span class="nervous-stat">pulses: <strong>${data.pulseCount}</strong></span>
|
|
1604
|
+
<span class="nervous-stat">last: <strong>${lastPulseStr}</strong></span>
|
|
1605
|
+
<span class="nervous-stat">decay: <strong>${data.decayRate} mV/hr</strong></span>
|
|
1606
|
+
<span class="nervous-stat">θ: <strong>${data.threshold} mV</strong></span>
|
|
1607
|
+
</div>
|
|
1608
|
+
`;
|
|
1609
|
+
}
|
|
1610
|
+
|
|
1611
|
+
function refreshDisplay() {
|
|
1612
|
+
// Recompute awayTs from stored duration (preserves drag position across refreshes)
|
|
1613
|
+
awayTs = Date.now() - awayDurationMs;
|
|
1614
|
+
updateAwayDisplay();
|
|
1615
|
+
|
|
1616
|
+
const awaySince = new Date(awayTs).toISOString();
|
|
1617
|
+
const deltaActivities = cachedActivities.filter(a => a.timestamp >= awaySince);
|
|
1618
|
+
const insights = cachedInsights.filter(ins => ins.discoveredAt >= awaySince);
|
|
1619
|
+
const deltaResonances = cachedResonances.filter(r => r.timestamp >= awaySince);
|
|
1620
|
+
|
|
1621
|
+
const pulse = classifyPulse(deltaActivities, deltaResonances, insights);
|
|
1622
|
+
const bins = buildHistogram(cachedActivities);
|
|
1623
|
+
renderTimeline(bins);
|
|
1624
|
+
|
|
1625
|
+
renderPulse(pulse);
|
|
1626
|
+
renderSignal(deltaActivities);
|
|
1627
|
+
renderRiver(deltaActivities);
|
|
1628
|
+
renderResonances(deltaResonances, cachedLoops, cachedLastRun);
|
|
1629
|
+
renderInsights(insights);
|
|
1630
|
+
renderVertical(cachedLoops, cachedTriads);
|
|
1631
|
+
renderRadioWaves(deltaActivities, cachedLoops, deltaResonances, insights, cachedDashboard);
|
|
1632
|
+
renderNervous(cachedPulseStatus);
|
|
1633
|
+
|
|
1634
|
+
document.getElementById('refreshTime').textContent =
|
|
1635
|
+
new Date().toLocaleTimeString([], { hour: '2-digit', minute: '2-digit', second: '2-digit' });
|
|
1636
|
+
}
|
|
1637
|
+
|
|
1638
|
+
async function load() {
|
|
1639
|
+
try {
|
|
1640
|
+
// Fire all API calls in parallel — use allSettled so one slow/failed
|
|
1641
|
+
// endpoint doesn't block the entire dashboard from loading
|
|
1642
|
+
const results = await Promise.allSettled([
|
|
1643
|
+
fetchJSON('/api/ops/activity?since=0&limit=3000'),
|
|
1644
|
+
fetchJSON('/api/open-loops/resonances'),
|
|
1645
|
+
fetchJSON('/api/open-loops'),
|
|
1646
|
+
fetchJSON('/api/open-loops/triads'),
|
|
1647
|
+
fetchJSON('/api/insights'),
|
|
1648
|
+
fetchJSON('/api/metrics/dashboard'),
|
|
1649
|
+
fetchJSON('/api/pulse/status'),
|
|
1650
|
+
]);
|
|
1651
|
+
const val = (i) => results[i].status === 'fulfilled' ? results[i].value : {};
|
|
1652
|
+
const activityData = val(0);
|
|
1653
|
+
const resonanceData = val(1);
|
|
1654
|
+
const loopsData = val(2);
|
|
1655
|
+
const triadsData = val(3);
|
|
1656
|
+
const insightsData = val(4);
|
|
1657
|
+
const dashboardData = val(5);
|
|
1658
|
+
|
|
1659
|
+
// Cache raw data for slider re-filtering
|
|
1660
|
+
cachedActivities = activityData.activities || [];
|
|
1661
|
+
cachedResonances = resonanceData.resonances || [];
|
|
1662
|
+
cachedLastRun = resonanceData.lastRun || null;
|
|
1663
|
+
cachedLoops = loopsData.loops || [];
|
|
1664
|
+
cachedTriads = triadsData.triads || [];
|
|
1665
|
+
cachedInsights = insightsData.insights || [];
|
|
1666
|
+
cachedDashboard = dashboardData || {};
|
|
1667
|
+
cachedPulseStatus = val(6);
|
|
1668
|
+
|
|
1669
|
+
refreshDisplay();
|
|
1670
|
+
setHeartbeat(true);
|
|
1671
|
+
isFirstLoad = false;
|
|
1672
|
+
|
|
1673
|
+
} catch (err) {
|
|
1674
|
+
console.error('Observatory load failed:', err);
|
|
1675
|
+
setHeartbeat(false);
|
|
1676
|
+
if (isFirstLoad) {
|
|
1677
|
+
document.getElementById('pulseContent').innerHTML =
|
|
1678
|
+
'<div class="empty">Unable to load observatory data. Is the server running?</div>';
|
|
1679
|
+
}
|
|
1680
|
+
}
|
|
1681
|
+
}
|
|
1682
|
+
|
|
1683
|
+
// Time window is persisted in localStorage — no need for beforeunload tracking
|
|
1684
|
+
|
|
1685
|
+
// Initial load + auto-refresh every 30s
|
|
1686
|
+
load();
|
|
1687
|
+
setInterval(load, REFRESH_INTERVAL);
|
|
1688
|
+
|
|
1689
|
+
})();
|
|
1690
|
+
</script>
|
|
1691
|
+
<script src="/public/share-modal.js"></script>
|
|
1692
|
+
</body>
|
|
1693
|
+
</html>
|