rookery-agent 0.3.0 → 0.4.0
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/README.md +5 -3
- package/docs/updates.md +12 -0
- package/package.json +1 -1
- package/packages/cli/dist/commands/chat.d.ts.map +1 -1
- package/packages/cli/dist/commands/chat.js +37 -74
- package/packages/cli/dist/commands/chat.js.map +1 -1
- package/packages/cli/dist/commands/config.js +4 -4
- package/packages/cli/dist/commands/config.js.map +1 -1
- package/packages/cli/dist/commands/doctor.d.ts.map +1 -1
- package/packages/cli/dist/commands/doctor.js +113 -91
- package/packages/cli/dist/commands/doctor.js.map +1 -1
- package/packages/cli/dist/commands/memory.d.ts.map +1 -1
- package/packages/cli/dist/commands/memory.js +28 -31
- package/packages/cli/dist/commands/memory.js.map +1 -1
- package/packages/cli/dist/commands/org.d.ts.map +1 -1
- package/packages/cli/dist/commands/org.js +36 -103
- package/packages/cli/dist/commands/org.js.map +1 -1
- package/packages/cli/dist/commands/serve.d.ts.map +1 -1
- package/packages/cli/dist/commands/serve.js +8 -6
- package/packages/cli/dist/commands/serve.js.map +1 -1
- package/packages/cli/dist/commands/sessions.d.ts.map +1 -1
- package/packages/cli/dist/commands/sessions.js +18 -17
- package/packages/cli/dist/commands/sessions.js.map +1 -1
- package/packages/cli/dist/commands/shared.d.ts +26 -5
- package/packages/cli/dist/commands/shared.d.ts.map +1 -1
- package/packages/cli/dist/commands/shared.js +85 -63
- package/packages/cli/dist/commands/shared.js.map +1 -1
- package/packages/cli/dist/commands/slash.d.ts +51 -0
- package/packages/cli/dist/commands/slash.d.ts.map +1 -0
- package/packages/cli/dist/commands/slash.js +110 -0
- package/packages/cli/dist/commands/slash.js.map +1 -0
- package/packages/cli/dist/commands/tasks.d.ts.map +1 -1
- package/packages/cli/dist/commands/tasks.js +74 -115
- package/packages/cli/dist/commands/tasks.js.map +1 -1
- package/packages/cli/dist/commands/tools.d.ts.map +1 -1
- package/packages/cli/dist/commands/tools.js +51 -34
- package/packages/cli/dist/commands/tools.js.map +1 -1
- package/packages/cli/dist/index.js +42 -52
- package/packages/cli/dist/index.js.map +1 -1
- package/packages/cli/dist/repl.d.ts +1 -25
- package/packages/cli/dist/repl.d.ts.map +1 -1
- package/packages/cli/dist/repl.js +165 -726
- package/packages/cli/dist/repl.js.map +1 -1
- package/packages/cli/dist/replInput.d.ts +33 -0
- package/packages/cli/dist/replInput.d.ts.map +1 -0
- package/packages/cli/dist/replInput.js +97 -0
- package/packages/cli/dist/replInput.js.map +1 -0
- package/packages/cli/dist/replOutput.d.ts +11 -0
- package/packages/cli/dist/replOutput.d.ts.map +1 -0
- package/packages/cli/dist/replOutput.js +22 -0
- package/packages/cli/dist/replOutput.js.map +1 -0
- package/packages/cli/dist/replQuestions.d.ts +32 -0
- package/packages/cli/dist/replQuestions.d.ts.map +1 -0
- package/packages/cli/dist/replQuestions.js +122 -0
- package/packages/cli/dist/replQuestions.js.map +1 -0
- package/packages/cli/dist/replSlash.d.ts +24 -0
- package/packages/cli/dist/replSlash.d.ts.map +1 -0
- package/packages/cli/dist/replSlash.js +311 -0
- package/packages/cli/dist/replSlash.js.map +1 -0
- package/packages/cli/dist/replState.d.ts +56 -0
- package/packages/cli/dist/replState.d.ts.map +1 -0
- package/packages/cli/dist/replState.js +89 -0
- package/packages/cli/dist/replState.js.map +1 -0
- package/packages/cli/dist/tui/App.d.ts +7 -24
- package/packages/cli/dist/tui/App.d.ts.map +1 -1
- package/packages/cli/dist/tui/App.js +139 -513
- package/packages/cli/dist/tui/App.js.map +1 -1
- package/packages/cli/dist/tui/LiveRegion.d.ts +16 -0
- package/packages/cli/dist/tui/LiveRegion.d.ts.map +1 -0
- package/packages/cli/dist/tui/LiveRegion.js +37 -0
- package/packages/cli/dist/tui/LiveRegion.js.map +1 -0
- package/packages/cli/dist/tui/boot.d.ts +34 -0
- package/packages/cli/dist/tui/boot.d.ts.map +1 -0
- package/packages/cli/dist/tui/boot.js +133 -0
- package/packages/cli/dist/tui/boot.js.map +1 -0
- package/packages/cli/dist/tui/commands.d.ts +3 -4
- package/packages/cli/dist/tui/commands.d.ts.map +1 -1
- package/packages/cli/dist/tui/commands.js +339 -405
- package/packages/cli/dist/tui/commands.js.map +1 -1
- package/packages/cli/dist/tui/components/ActivityLine.d.ts +1 -1
- package/packages/cli/dist/tui/components/ActivityLine.d.ts.map +1 -1
- package/packages/cli/dist/tui/components/ActivityLine.js +2 -2
- package/packages/cli/dist/tui/components/ActivityLine.js.map +1 -1
- package/packages/cli/dist/tui/components/AssignmentsView.d.ts.map +1 -1
- package/packages/cli/dist/tui/components/AssignmentsView.js +34 -20
- package/packages/cli/dist/tui/components/AssignmentsView.js.map +1 -1
- package/packages/cli/dist/tui/components/Logo.d.ts +3 -19
- package/packages/cli/dist/tui/components/Logo.d.ts.map +1 -1
- package/packages/cli/dist/tui/components/Logo.js +13 -13
- package/packages/cli/dist/tui/components/Logo.js.map +1 -1
- package/packages/cli/dist/tui/components/Markdown.d.ts.map +1 -1
- package/packages/cli/dist/tui/components/Markdown.js +201 -146
- package/packages/cli/dist/tui/components/Markdown.js.map +1 -1
- package/packages/cli/dist/tui/components/QuestionView.d.ts +0 -2
- package/packages/cli/dist/tui/components/QuestionView.d.ts.map +1 -1
- package/packages/cli/dist/tui/components/QuestionView.js +21 -12
- package/packages/cli/dist/tui/components/QuestionView.js.map +1 -1
- package/packages/cli/dist/tui/components/Scrollback.d.ts.map +1 -1
- package/packages/cli/dist/tui/components/Scrollback.js +6 -3
- package/packages/cli/dist/tui/components/Scrollback.js.map +1 -1
- package/packages/cli/dist/tui/components/SlashPalette.d.ts.map +1 -1
- package/packages/cli/dist/tui/components/SlashPalette.js +14 -9
- package/packages/cli/dist/tui/components/SlashPalette.js.map +1 -1
- package/packages/cli/dist/tui/components/StatusLine.d.ts.map +1 -1
- package/packages/cli/dist/tui/components/StatusLine.js +45 -22
- package/packages/cli/dist/tui/components/StatusLine.js.map +1 -1
- package/packages/cli/dist/tui/components/ToolGroup.d.ts.map +1 -1
- package/packages/cli/dist/tui/components/ToolGroup.js +12 -7
- package/packages/cli/dist/tui/components/ToolGroup.js.map +1 -1
- package/packages/cli/dist/tui/components/WatchView.d.ts.map +1 -1
- package/packages/cli/dist/tui/components/WatchView.js +28 -17
- package/packages/cli/dist/tui/components/WatchView.js.map +1 -1
- package/packages/cli/dist/tui/highlight.d.ts +0 -2
- package/packages/cli/dist/tui/highlight.d.ts.map +1 -1
- package/packages/cli/dist/tui/highlight.js +8 -6
- package/packages/cli/dist/tui/highlight.js.map +1 -1
- package/packages/cli/dist/tui/history.d.ts +30 -4
- package/packages/cli/dist/tui/history.d.ts.map +1 -1
- package/packages/cli/dist/tui/history.js +100 -75
- package/packages/cli/dist/tui/history.js.map +1 -1
- package/packages/cli/dist/tui/hooks/coalescer.d.ts +18 -0
- package/packages/cli/dist/tui/hooks/coalescer.d.ts.map +1 -0
- package/packages/cli/dist/tui/hooks/coalescer.js +36 -0
- package/packages/cli/dist/tui/hooks/coalescer.js.map +1 -0
- package/packages/cli/dist/tui/hooks/useColumns.d.ts +2 -7
- package/packages/cli/dist/tui/hooks/useColumns.d.ts.map +1 -1
- package/packages/cli/dist/tui/hooks/useColumns.js +6 -11
- package/packages/cli/dist/tui/hooks/useColumns.js.map +1 -1
- package/packages/cli/dist/tui/hooks/useHistory.d.ts +7 -4
- package/packages/cli/dist/tui/hooks/useHistory.d.ts.map +1 -1
- package/packages/cli/dist/tui/hooks/useHistory.js +21 -18
- package/packages/cli/dist/tui/hooks/useHistory.js.map +1 -1
- package/packages/cli/dist/tui/hooks/usePrompt.d.ts +27 -0
- package/packages/cli/dist/tui/hooks/usePrompt.d.ts.map +1 -0
- package/packages/cli/dist/tui/hooks/usePrompt.js +169 -0
- package/packages/cli/dist/tui/hooks/usePrompt.js.map +1 -0
- package/packages/cli/dist/tui/hooks/useQuestion.d.ts +23 -0
- package/packages/cli/dist/tui/hooks/useQuestion.d.ts.map +1 -0
- package/packages/cli/dist/tui/hooks/useQuestion.js +43 -0
- package/packages/cli/dist/tui/hooks/useQuestion.js.map +1 -0
- package/packages/cli/dist/tui/hooks/useScrollback.d.ts +18 -0
- package/packages/cli/dist/tui/hooks/useScrollback.d.ts.map +1 -0
- package/packages/cli/dist/tui/hooks/useScrollback.js +29 -0
- package/packages/cli/dist/tui/hooks/useScrollback.js.map +1 -0
- package/packages/cli/dist/tui/hooks/useSession.d.ts +25 -0
- package/packages/cli/dist/tui/hooks/useSession.d.ts.map +1 -0
- package/packages/cli/dist/tui/hooks/useSession.js +36 -0
- package/packages/cli/dist/tui/hooks/useSession.js.map +1 -0
- package/packages/cli/dist/tui/hooks/useSlash.d.ts +0 -2
- package/packages/cli/dist/tui/hooks/useSlash.d.ts.map +1 -1
- package/packages/cli/dist/tui/hooks/useSlash.js +0 -1
- package/packages/cli/dist/tui/hooks/useSlash.js.map +1 -1
- package/packages/cli/dist/tui/hooks/useSpeech.d.ts +19 -0
- package/packages/cli/dist/tui/hooks/useSpeech.d.ts.map +1 -0
- package/packages/cli/dist/tui/hooks/useSpeech.js +33 -0
- package/packages/cli/dist/tui/hooks/useSpeech.js.map +1 -0
- package/packages/cli/dist/tui/hooks/useTicker.d.ts +13 -0
- package/packages/cli/dist/tui/hooks/useTicker.d.ts.map +1 -0
- package/packages/cli/dist/tui/hooks/useTicker.js +24 -0
- package/packages/cli/dist/tui/hooks/useTicker.js.map +1 -0
- package/packages/cli/dist/tui/hooks/useTurn.d.ts +4 -4
- package/packages/cli/dist/tui/hooks/useTurn.d.ts.map +1 -1
- package/packages/cli/dist/tui/hooks/useTurn.js +167 -289
- package/packages/cli/dist/tui/hooks/useTurn.js.map +1 -1
- package/packages/cli/dist/tui/hooks/useWatch.d.ts.map +1 -1
- package/packages/cli/dist/tui/hooks/useWatch.js +15 -48
- package/packages/cli/dist/tui/hooks/useWatch.js.map +1 -1
- package/packages/cli/dist/tui/inkTheme.d.ts.map +1 -1
- package/packages/cli/dist/tui/inkTheme.js +9 -11
- package/packages/cli/dist/tui/inkTheme.js.map +1 -1
- package/packages/cli/dist/tui/theme.d.ts +7 -13
- package/packages/cli/dist/tui/theme.d.ts.map +1 -1
- package/packages/cli/dist/tui/theme.js +18 -15
- package/packages/cli/dist/tui/theme.js.map +1 -1
- package/packages/cli/dist/tui/types.d.ts +10 -23
- package/packages/cli/dist/tui/types.d.ts.map +1 -1
- package/packages/cli/dist/tui/types.js +13 -31
- package/packages/cli/dist/tui/types.js.map +1 -1
- package/packages/cli/dist/ui/modelNames.d.ts.map +1 -1
- package/packages/cli/dist/ui/modelNames.js +45 -37
- package/packages/cli/dist/ui/modelNames.js.map +1 -1
- package/packages/cli/dist/ui/render.d.ts +32 -14
- package/packages/cli/dist/ui/render.d.ts.map +1 -1
- package/packages/cli/dist/ui/render.js +155 -98
- package/packages/cli/dist/ui/render.js.map +1 -1
- package/packages/cli/dist/ui/speech.d.ts +4 -7
- package/packages/cli/dist/ui/speech.d.ts.map +1 -1
- package/packages/cli/dist/ui/speech.js +37 -51
- package/packages/cli/dist/ui/speech.js.map +1 -1
- package/packages/cli/dist/ui/spinner.d.ts +1 -4
- package/packages/cli/dist/ui/spinner.d.ts.map +1 -1
- package/packages/cli/dist/ui/spinner.js +1 -12
- package/packages/cli/dist/ui/spinner.js.map +1 -1
- package/packages/cli/package.json +1 -1
- package/packages/core/dist/agents/persona.d.ts.map +1 -1
- package/packages/core/dist/agents/persona.js +27 -11
- package/packages/core/dist/agents/persona.js.map +1 -1
- package/packages/core/dist/assistant/board-watch.d.ts +72 -0
- package/packages/core/dist/assistant/board-watch.d.ts.map +1 -0
- package/packages/core/dist/assistant/board-watch.js +224 -0
- package/packages/core/dist/assistant/board-watch.js.map +1 -0
- package/packages/core/dist/assistant/chat-turn.d.ts +14 -0
- package/packages/core/dist/assistant/chat-turn.d.ts.map +1 -0
- package/packages/core/dist/assistant/chat-turn.js +159 -0
- package/packages/core/dist/assistant/chat-turn.js.map +1 -0
- package/packages/core/dist/assistant/dream-recorder.d.ts +74 -0
- package/packages/core/dist/assistant/dream-recorder.d.ts.map +1 -0
- package/packages/core/dist/assistant/dream-recorder.js +282 -0
- package/packages/core/dist/assistant/dream-recorder.js.map +1 -0
- package/packages/core/dist/assistant/headless-turn.d.ts +17 -0
- package/packages/core/dist/assistant/headless-turn.d.ts.map +1 -0
- package/packages/core/dist/assistant/headless-turn.js +330 -0
- package/packages/core/dist/assistant/headless-turn.js.map +1 -0
- package/packages/core/dist/assistant/journalled-turn.d.ts +39 -0
- package/packages/core/dist/assistant/journalled-turn.d.ts.map +1 -0
- package/packages/core/dist/assistant/journalled-turn.js +75 -0
- package/packages/core/dist/assistant/journalled-turn.js.map +1 -0
- package/packages/core/dist/assistant/memory-learning.d.ts +27 -0
- package/packages/core/dist/assistant/memory-learning.d.ts.map +1 -0
- package/packages/core/dist/assistant/memory-learning.js +82 -0
- package/packages/core/dist/assistant/memory-learning.js.map +1 -0
- package/packages/core/dist/assistant/promotion-notice.d.ts +14 -0
- package/packages/core/dist/assistant/promotion-notice.d.ts.map +1 -0
- package/packages/core/dist/assistant/promotion-notice.js +33 -0
- package/packages/core/dist/assistant/promotion-notice.js.map +1 -0
- package/packages/core/dist/assistant/scheduled-runs.d.ts +30 -0
- package/packages/core/dist/assistant/scheduled-runs.d.ts.map +1 -0
- package/packages/core/dist/assistant/scheduled-runs.js +184 -0
- package/packages/core/dist/assistant/scheduled-runs.js.map +1 -0
- package/packages/core/dist/assistant/sessions.d.ts +44 -0
- package/packages/core/dist/assistant/sessions.d.ts.map +1 -0
- package/packages/core/dist/assistant/sessions.js +75 -0
- package/packages/core/dist/assistant/sessions.js.map +1 -0
- package/packages/core/dist/assistant/terminal-turn.d.ts +18 -0
- package/packages/core/dist/assistant/terminal-turn.d.ts.map +1 -0
- package/packages/core/dist/assistant/terminal-turn.js +228 -0
- package/packages/core/dist/assistant/terminal-turn.js.map +1 -0
- package/packages/core/dist/assistant/terminals.d.ts +91 -0
- package/packages/core/dist/assistant/terminals.d.ts.map +1 -0
- package/packages/core/dist/assistant/terminals.js +266 -0
- package/packages/core/dist/assistant/terminals.js.map +1 -0
- package/packages/core/dist/assistant/turn-support.d.ts +109 -0
- package/packages/core/dist/assistant/turn-support.d.ts.map +1 -0
- package/packages/core/dist/assistant/turn-support.js +80 -0
- package/packages/core/dist/assistant/turn-support.js.map +1 -0
- package/packages/core/dist/assistant/turn-transcript.d.ts +44 -0
- package/packages/core/dist/assistant/turn-transcript.d.ts.map +1 -0
- package/packages/core/dist/assistant/turn-transcript.js +82 -0
- package/packages/core/dist/assistant/turn-transcript.js.map +1 -0
- package/packages/core/dist/assistant/types.d.ts +120 -0
- package/packages/core/dist/assistant/types.d.ts.map +1 -0
- package/packages/core/dist/assistant/types.js +2 -0
- package/packages/core/dist/assistant/types.js.map +1 -0
- package/packages/core/dist/computer/accessibility.d.ts.map +1 -1
- package/packages/core/dist/computer/accessibility.js +40 -35
- package/packages/core/dist/computer/accessibility.js.map +1 -1
- package/packages/core/dist/computer/mcp-server.js +426 -364
- package/packages/core/dist/computer/mcp-server.js.map +1 -1
- package/packages/core/dist/computer/powershell.d.ts.map +1 -1
- package/packages/core/dist/computer/powershell.js +25 -16
- package/packages/core/dist/computer/powershell.js.map +1 -1
- package/packages/core/dist/computer/screen-text.d.ts.map +1 -1
- package/packages/core/dist/computer/screen-text.js +54 -34
- package/packages/core/dist/computer/screen-text.js.map +1 -1
- package/packages/core/dist/computer/sketch.d.ts.map +1 -1
- package/packages/core/dist/computer/sketch.js +185 -128
- package/packages/core/dist/computer/sketch.js.map +1 -1
- package/packages/core/dist/computer/tools.d.ts +2 -0
- package/packages/core/dist/computer/tools.d.ts.map +1 -1
- package/packages/core/dist/computer/tools.js +31 -27
- package/packages/core/dist/computer/tools.js.map +1 -1
- package/packages/core/dist/computer/validation.d.ts +16 -16
- package/packages/core/dist/computer/validation.d.ts.map +1 -1
- package/packages/core/dist/computer/validation.js +28 -20
- package/packages/core/dist/computer/validation.js.map +1 -1
- package/packages/core/dist/config.d.ts +10 -1
- package/packages/core/dist/config.d.ts.map +1 -1
- package/packages/core/dist/config.js +64 -23
- package/packages/core/dist/config.js.map +1 -1
- package/packages/core/dist/cron/parse.d.ts.map +1 -1
- package/packages/core/dist/cron/parse.js +90 -77
- package/packages/core/dist/cron/parse.js.map +1 -1
- package/packages/core/dist/cron/scheduler.d.ts.map +1 -1
- package/packages/core/dist/cron/scheduler.js +99 -65
- package/packages/core/dist/cron/scheduler.js.map +1 -1
- package/packages/core/dist/cron/script.d.ts.map +1 -1
- package/packages/core/dist/cron/script.js +72 -42
- package/packages/core/dist/cron/script.js.map +1 -1
- package/packages/core/dist/external/claude-code.d.ts.map +1 -1
- package/packages/core/dist/external/claude-code.js +41 -28
- package/packages/core/dist/external/claude-code.js.map +1 -1
- package/packages/core/dist/external/discovery.d.ts.map +1 -1
- package/packages/core/dist/external/discovery.js +14 -11
- package/packages/core/dist/external/discovery.js.map +1 -1
- package/packages/core/dist/external/shared.d.ts.map +1 -1
- package/packages/core/dist/external/shared.js +55 -74
- package/packages/core/dist/external/shared.js.map +1 -1
- package/packages/core/dist/gateway/policy.d.ts.map +1 -1
- package/packages/core/dist/gateway/policy.js +5 -2
- package/packages/core/dist/gateway/policy.js.map +1 -1
- package/packages/core/dist/index.d.ts +1 -1
- package/packages/core/dist/index.d.ts.map +1 -1
- package/packages/core/dist/index.js +1 -1
- package/packages/core/dist/index.js.map +1 -1
- package/packages/core/dist/logger.d.ts.map +1 -1
- package/packages/core/dist/logger.js +11 -11
- package/packages/core/dist/logger.js.map +1 -1
- package/packages/core/dist/memory/db.d.ts.map +1 -1
- package/packages/core/dist/memory/db.js +175 -226
- package/packages/core/dist/memory/db.js.map +1 -1
- package/packages/core/dist/memory/dream/admission.d.ts +5 -0
- package/packages/core/dist/memory/dream/admission.d.ts.map +1 -1
- package/packages/core/dist/memory/dream/admission.js +8 -14
- package/packages/core/dist/memory/dream/admission.js.map +1 -1
- package/packages/core/dist/memory/dream/candidate.d.ts.map +1 -1
- package/packages/core/dist/memory/dream/candidate.js +119 -92
- package/packages/core/dist/memory/dream/candidate.js.map +1 -1
- package/packages/core/dist/memory/dream/evaluate.d.ts +13 -4
- package/packages/core/dist/memory/dream/evaluate.d.ts.map +1 -1
- package/packages/core/dist/memory/dream/evaluate.js +264 -288
- package/packages/core/dist/memory/dream/evaluate.js.map +1 -1
- package/packages/core/dist/memory/dream/frame.d.ts +6 -0
- package/packages/core/dist/memory/dream/frame.d.ts.map +1 -1
- package/packages/core/dist/memory/dream/frame.js +137 -91
- package/packages/core/dist/memory/dream/frame.js.map +1 -1
- package/packages/core/dist/memory/dream/label.d.ts.map +1 -1
- package/packages/core/dist/memory/dream/label.js +6 -9
- package/packages/core/dist/memory/dream/label.js.map +1 -1
- package/packages/core/dist/memory/dream/measure.d.ts +4 -0
- package/packages/core/dist/memory/dream/measure.d.ts.map +1 -1
- package/packages/core/dist/memory/dream/measure.js +13 -58
- package/packages/core/dist/memory/dream/measure.js.map +1 -1
- package/packages/core/dist/memory/dream/policy.d.ts.map +1 -1
- package/packages/core/dist/memory/dream/policy.js +4 -2
- package/packages/core/dist/memory/dream/policy.js.map +1 -1
- package/packages/core/dist/memory/dream/probe.d.ts +31 -4
- package/packages/core/dist/memory/dream/probe.d.ts.map +1 -1
- package/packages/core/dist/memory/dream/probe.js +290 -289
- package/packages/core/dist/memory/dream/probe.js.map +1 -1
- package/packages/core/dist/memory/dream/promote.d.ts.map +1 -1
- package/packages/core/dist/memory/dream/promote.js +10 -11
- package/packages/core/dist/memory/dream/promote.js.map +1 -1
- package/packages/core/dist/memory/dream/score.d.ts +9 -0
- package/packages/core/dist/memory/dream/score.d.ts.map +1 -1
- package/packages/core/dist/memory/dream/score.js +6 -7
- package/packages/core/dist/memory/dream/score.js.map +1 -1
- package/packages/core/dist/memory/dream/slots.d.ts.map +1 -1
- package/packages/core/dist/memory/dream/slots.js +0 -0
- package/packages/core/dist/memory/dream/slots.js.map +1 -1
- package/packages/core/dist/memory/dream/trajectory.d.ts.map +1 -1
- package/packages/core/dist/memory/dream/trajectory.js +76 -53
- package/packages/core/dist/memory/dream/trajectory.js.map +1 -1
- package/packages/core/dist/memory/dream/util.d.ts +44 -0
- package/packages/core/dist/memory/dream/util.d.ts.map +1 -0
- package/packages/core/dist/memory/dream/util.js +83 -0
- package/packages/core/dist/memory/dream/util.js.map +1 -0
- package/packages/core/dist/memory/extractor.d.ts.map +1 -1
- package/packages/core/dist/memory/extractor.js +67 -46
- package/packages/core/dist/memory/extractor.js.map +1 -1
- package/packages/core/dist/memory/gate.d.ts.map +1 -1
- package/packages/core/dist/memory/gate.js +55 -44
- package/packages/core/dist/memory/gate.js.map +1 -1
- package/packages/core/dist/memory/recall.d.ts +1 -1
- package/packages/core/dist/memory/recall.d.ts.map +1 -1
- package/packages/core/dist/memory/recall.js +42 -39
- package/packages/core/dist/memory/recall.js.map +1 -1
- package/packages/core/dist/memory/sleep-dream.d.ts +210 -0
- package/packages/core/dist/memory/sleep-dream.d.ts.map +1 -0
- package/packages/core/dist/memory/sleep-dream.js +1109 -0
- package/packages/core/dist/memory/sleep-dream.js.map +1 -0
- package/packages/core/dist/memory/sleep-frames.d.ts +40 -0
- package/packages/core/dist/memory/sleep-frames.d.ts.map +1 -0
- package/packages/core/dist/memory/sleep-frames.js +127 -0
- package/packages/core/dist/memory/sleep-frames.js.map +1 -0
- package/packages/core/dist/memory/sleep-limits.d.ts +18 -0
- package/packages/core/dist/memory/sleep-limits.d.ts.map +1 -0
- package/packages/core/dist/memory/sleep-limits.js +34 -0
- package/packages/core/dist/memory/sleep-limits.js.map +1 -0
- package/packages/core/dist/memory/sleep-model.d.ts +36 -0
- package/packages/core/dist/memory/sleep-model.d.ts.map +1 -0
- package/packages/core/dist/memory/sleep-model.js +80 -0
- package/packages/core/dist/memory/sleep-model.js.map +1 -0
- package/packages/core/dist/memory/sleep-policy.d.ts +19 -0
- package/packages/core/dist/memory/sleep-policy.d.ts.map +1 -0
- package/packages/core/dist/memory/sleep-policy.js +79 -0
- package/packages/core/dist/memory/sleep-policy.js.map +1 -0
- package/packages/core/dist/memory/sleep-prompts.d.ts +15 -0
- package/packages/core/dist/memory/sleep-prompts.d.ts.map +1 -0
- package/packages/core/dist/memory/sleep-prompts.js +212 -0
- package/packages/core/dist/memory/sleep-prompts.js.map +1 -0
- package/packages/core/dist/memory/sleep-report.d.ts +63 -0
- package/packages/core/dist/memory/sleep-report.d.ts.map +1 -0
- package/packages/core/dist/memory/sleep-report.js +97 -0
- package/packages/core/dist/memory/sleep-report.js.map +1 -0
- package/packages/core/dist/memory/sleep-verdicts.d.ts +77 -0
- package/packages/core/dist/memory/sleep-verdicts.d.ts.map +1 -0
- package/packages/core/dist/memory/sleep-verdicts.js +198 -0
- package/packages/core/dist/memory/sleep-verdicts.js.map +1 -0
- package/packages/core/dist/memory/sleep.d.ts +6 -61
- package/packages/core/dist/memory/sleep.d.ts.map +1 -1
- package/packages/core/dist/memory/sleep.js +1099 -2458
- package/packages/core/dist/memory/sleep.js.map +1 -1
- package/packages/core/dist/memory/store-rows.d.ts +43 -0
- package/packages/core/dist/memory/store-rows.d.ts.map +1 -0
- package/packages/core/dist/memory/store-rows.js +330 -0
- package/packages/core/dist/memory/store-rows.js.map +1 -0
- package/packages/core/dist/memory/store.d.ts +34 -20
- package/packages/core/dist/memory/store.d.ts.map +1 -1
- package/packages/core/dist/memory/store.js +634 -861
- package/packages/core/dist/memory/store.js.map +1 -1
- package/packages/core/dist/migration-cron.d.ts +2 -1
- package/packages/core/dist/migration-cron.d.ts.map +1 -1
- package/packages/core/dist/migration-cron.js +197 -154
- package/packages/core/dist/migration-cron.js.map +1 -1
- package/packages/core/dist/migration-scripts.d.ts +11 -3
- package/packages/core/dist/migration-scripts.d.ts.map +1 -1
- package/packages/core/dist/migration-scripts.js +81 -61
- package/packages/core/dist/migration-scripts.js.map +1 -1
- package/packages/core/dist/migration-shared.d.ts +9 -0
- package/packages/core/dist/migration-shared.d.ts.map +1 -0
- package/packages/core/dist/migration-shared.js +16 -0
- package/packages/core/dist/migration-shared.js.map +1 -0
- package/packages/core/dist/migration.d.ts.map +1 -1
- package/packages/core/dist/migration.js +150 -111
- package/packages/core/dist/migration.js.map +1 -1
- package/packages/core/dist/org/assignment-log.d.ts +28 -0
- package/packages/core/dist/org/assignment-log.d.ts.map +1 -0
- package/packages/core/dist/org/assignment-log.js +86 -0
- package/packages/core/dist/org/assignment-log.js.map +1 -0
- package/packages/core/dist/org/bridge.d.ts.map +1 -1
- package/packages/core/dist/org/bridge.js +32 -30
- package/packages/core/dist/org/bridge.js.map +1 -1
- package/packages/core/dist/org/controller.d.ts +18 -21
- package/packages/core/dist/org/controller.d.ts.map +1 -1
- package/packages/core/dist/org/controller.js +2042 -1848
- package/packages/core/dist/org/controller.js.map +1 -1
- package/packages/core/dist/org/json-reply.d.ts +6 -0
- package/packages/core/dist/org/json-reply.d.ts.map +1 -0
- package/packages/core/dist/org/json-reply.js +23 -0
- package/packages/core/dist/org/json-reply.js.map +1 -0
- package/packages/core/dist/org/mcp-bridge.js +34 -26
- package/packages/core/dist/org/mcp-bridge.js.map +1 -1
- package/packages/core/dist/org/planner.d.ts.map +1 -1
- package/packages/core/dist/org/planner.js +38 -42
- package/packages/core/dist/org/planner.js.map +1 -1
- package/packages/core/dist/org/project-mcp.d.ts.map +1 -1
- package/packages/core/dist/org/project-mcp.js +2 -5
- package/packages/core/dist/org/project-mcp.js.map +1 -1
- package/packages/core/dist/org/prompts.d.ts.map +1 -1
- package/packages/core/dist/org/prompts.js +176 -156
- package/packages/core/dist/org/prompts.js.map +1 -1
- package/packages/core/dist/org/questions.d.ts.map +1 -1
- package/packages/core/dist/org/questions.js +19 -14
- package/packages/core/dist/org/questions.js.map +1 -1
- package/packages/core/dist/org/review.d.ts.map +1 -1
- package/packages/core/dist/org/review.js +27 -43
- package/packages/core/dist/org/review.js.map +1 -1
- package/packages/core/dist/org/store.d.ts +19 -32
- package/packages/core/dist/org/store.d.ts.map +1 -1
- package/packages/core/dist/org/store.js +250 -206
- package/packages/core/dist/org/store.js.map +1 -1
- package/packages/core/dist/org/tool-args.d.ts +54 -0
- package/packages/core/dist/org/tool-args.d.ts.map +1 -0
- package/packages/core/dist/org/tool-args.js +104 -0
- package/packages/core/dist/org/tool-args.js.map +1 -0
- package/packages/core/dist/org/tools.d.ts.map +1 -1
- package/packages/core/dist/org/tools.js +238 -443
- package/packages/core/dist/org/tools.js.map +1 -1
- package/packages/core/dist/profile.d.ts.map +1 -1
- package/packages/core/dist/profile.js +114 -57
- package/packages/core/dist/profile.js.map +1 -1
- package/packages/core/dist/providers/catalogue.d.ts.map +1 -1
- package/packages/core/dist/providers/catalogue.js +89 -60
- package/packages/core/dist/providers/catalogue.js.map +1 -1
- package/packages/core/dist/providers/claude-code.d.ts.map +1 -1
- package/packages/core/dist/providers/claude-code.js +425 -366
- package/packages/core/dist/providers/claude-code.js.map +1 -1
- package/packages/core/dist/providers/claude-tui.d.ts +13 -9
- package/packages/core/dist/providers/claude-tui.d.ts.map +1 -1
- package/packages/core/dist/providers/claude-tui.js +568 -396
- package/packages/core/dist/providers/claude-tui.js.map +1 -1
- package/packages/core/dist/providers/codex-auth.d.ts +3 -0
- package/packages/core/dist/providers/codex-auth.d.ts.map +1 -1
- package/packages/core/dist/providers/codex-auth.js +9 -7
- package/packages/core/dist/providers/codex-auth.js.map +1 -1
- package/packages/core/dist/providers/codex-bridge.d.ts +24 -7
- package/packages/core/dist/providers/codex-bridge.d.ts.map +1 -1
- package/packages/core/dist/providers/codex-bridge.js +128 -168
- package/packages/core/dist/providers/codex-bridge.js.map +1 -1
- package/packages/core/dist/providers/codex-translate.d.ts.map +1 -1
- package/packages/core/dist/providers/codex-translate.js +195 -197
- package/packages/core/dist/providers/codex-translate.js.map +1 -1
- package/packages/core/dist/providers/loopback-server.d.ts +33 -0
- package/packages/core/dist/providers/loopback-server.d.ts.map +1 -0
- package/packages/core/dist/providers/loopback-server.js +104 -0
- package/packages/core/dist/providers/loopback-server.js.map +1 -0
- package/packages/core/dist/providers/model-gateway.d.ts +2 -4
- package/packages/core/dist/providers/model-gateway.d.ts.map +1 -1
- package/packages/core/dist/providers/model-gateway.js +39 -75
- package/packages/core/dist/providers/model-gateway.js.map +1 -1
- package/packages/core/dist/providers/process.d.ts.map +1 -1
- package/packages/core/dist/providers/process.js +32 -23
- package/packages/core/dist/providers/process.js.map +1 -1
- package/packages/core/dist/providers/provider-catalog.d.ts +5 -3
- package/packages/core/dist/providers/provider-catalog.d.ts.map +1 -1
- package/packages/core/dist/providers/provider-catalog.js +33 -25
- package/packages/core/dist/providers/provider-catalog.js.map +1 -1
- package/packages/core/dist/providers/quota.d.ts.map +1 -1
- package/packages/core/dist/providers/quota.js +37 -37
- package/packages/core/dist/providers/quota.js.map +1 -1
- package/packages/core/dist/providers/registry.d.ts.map +1 -1
- package/packages/core/dist/providers/registry.js +3 -1
- package/packages/core/dist/providers/registry.js.map +1 -1
- package/packages/core/dist/providers/user-settings-guard.d.ts.map +1 -1
- package/packages/core/dist/providers/user-settings-guard.js +7 -2
- package/packages/core/dist/providers/user-settings-guard.js.map +1 -1
- package/packages/core/dist/runtime.d.ts +45 -158
- package/packages/core/dist/runtime.d.ts.map +1 -1
- package/packages/core/dist/runtime.js +184 -1701
- package/packages/core/dist/runtime.js.map +1 -1
- package/packages/core/dist/skills/import.d.ts.map +1 -1
- package/packages/core/dist/skills/import.js +52 -36
- package/packages/core/dist/skills/import.js.map +1 -1
- package/packages/core/dist/skills/shelf.d.ts +14 -0
- package/packages/core/dist/skills/shelf.d.ts.map +1 -1
- package/packages/core/dist/skills/shelf.js +2 -3
- package/packages/core/dist/skills/shelf.js.map +1 -1
- package/packages/core/dist/skills/store.d.ts +2 -0
- package/packages/core/dist/skills/store.d.ts.map +1 -1
- package/packages/core/dist/skills/store.js +17 -12
- package/packages/core/dist/skills/store.js.map +1 -1
- package/packages/core/dist/tools/catalog.d.ts.map +1 -1
- package/packages/core/dist/tools/catalog.js +6 -2
- package/packages/core/dist/tools/catalog.js.map +1 -1
- package/packages/core/dist/tools/hub.d.ts.map +1 -1
- package/packages/core/dist/tools/hub.js +97 -79
- package/packages/core/dist/tools/hub.js.map +1 -1
- package/packages/core/dist/turns/journal.d.ts.map +1 -1
- package/packages/core/dist/turns/journal.js +12 -18
- package/packages/core/dist/turns/journal.js.map +1 -1
- package/packages/core/dist/types.d.ts +12 -3
- package/packages/core/dist/types.d.ts.map +1 -1
- package/packages/core/dist/types.js.map +1 -1
- package/packages/core/dist/util/blocks.d.ts.map +1 -1
- package/packages/core/dist/util/blocks.js +14 -22
- package/packages/core/dist/util/blocks.js.map +1 -1
- package/packages/core/dist/util/queue.d.ts +0 -2
- package/packages/core/dist/util/queue.d.ts.map +1 -1
- package/packages/core/dist/util/queue.js +0 -6
- package/packages/core/dist/util/queue.js.map +1 -1
- package/packages/core/package.json +1 -1
- package/packages/server/dist/auth.d.ts +8 -0
- package/packages/server/dist/auth.d.ts.map +1 -1
- package/packages/server/dist/auth.js +8 -8
- package/packages/server/dist/auth.js.map +1 -1
- package/packages/server/dist/env.d.ts.map +1 -1
- package/packages/server/dist/env.js +18 -15
- package/packages/server/dist/env.js.map +1 -1
- package/packages/server/dist/errors.d.ts +3 -0
- package/packages/server/dist/errors.d.ts.map +1 -0
- package/packages/server/dist/errors.js +5 -0
- package/packages/server/dist/errors.js.map +1 -0
- package/packages/server/dist/gateways/attachments.d.ts.map +1 -1
- package/packages/server/dist/gateways/attachments.js +38 -21
- package/packages/server/dist/gateways/attachments.js.map +1 -1
- package/packages/server/dist/gateways/markdown.d.ts.map +1 -1
- package/packages/server/dist/gateways/markdown.js +30 -12
- package/packages/server/dist/gateways/markdown.js.map +1 -1
- package/packages/server/dist/gateways/push.d.ts +6 -6
- package/packages/server/dist/gateways/push.d.ts.map +1 -1
- package/packages/server/dist/gateways/push.js +101 -74
- package/packages/server/dist/gateways/push.js.map +1 -1
- package/packages/server/dist/gateways/telegram-api.d.ts.map +1 -1
- package/packages/server/dist/gateways/telegram-api.js +61 -44
- package/packages/server/dist/gateways/telegram-api.js.map +1 -1
- package/packages/server/dist/gateways/telegram.d.ts +5 -0
- package/packages/server/dist/gateways/telegram.d.ts.map +1 -1
- package/packages/server/dist/gateways/telegram.js +985 -753
- package/packages/server/dist/gateways/telegram.js.map +1 -1
- package/packages/server/dist/gateways/threads.d.ts.map +1 -1
- package/packages/server/dist/gateways/threads.js +144 -130
- package/packages/server/dist/gateways/threads.js.map +1 -1
- package/packages/server/dist/listeners/imap.d.ts.map +1 -1
- package/packages/server/dist/listeners/imap.js +0 -0
- package/packages/server/dist/listeners/imap.js.map +1 -1
- package/packages/server/dist/listeners/registry.d.ts.map +1 -1
- package/packages/server/dist/listeners/registry.js +15 -15
- package/packages/server/dist/listeners/registry.js.map +1 -1
- package/packages/server/dist/main.js +3 -2
- package/packages/server/dist/main.js.map +1 -1
- package/packages/server/dist/routes/chat.d.ts.map +1 -1
- package/packages/server/dist/routes/chat.js +5 -8
- package/packages/server/dist/routes/chat.js.map +1 -1
- package/packages/server/dist/routes/config.d.ts +6 -0
- package/packages/server/dist/routes/config.d.ts.map +1 -1
- package/packages/server/dist/routes/config.js +34 -31
- package/packages/server/dist/routes/config.js.map +1 -1
- package/packages/server/dist/routes/cron.d.ts.map +1 -1
- package/packages/server/dist/routes/cron.js +33 -23
- package/packages/server/dist/routes/cron.js.map +1 -1
- package/packages/server/dist/routes/dream.d.ts +1 -1
- package/packages/server/dist/routes/dream.d.ts.map +1 -1
- package/packages/server/dist/routes/dream.js +16 -34
- package/packages/server/dist/routes/dream.js.map +1 -1
- package/packages/server/dist/routes/gateways.d.ts.map +1 -1
- package/packages/server/dist/routes/gateways.js +8 -13
- package/packages/server/dist/routes/gateways.js.map +1 -1
- package/packages/server/dist/routes/memories.d.ts.map +1 -1
- package/packages/server/dist/routes/memories.js +16 -29
- package/packages/server/dist/routes/memories.js.map +1 -1
- package/packages/server/dist/routes/night.d.ts +31 -0
- package/packages/server/dist/routes/night.d.ts.map +1 -0
- package/packages/server/dist/routes/night.js +28 -0
- package/packages/server/dist/routes/night.js.map +1 -0
- package/packages/server/dist/routes/org.d.ts.map +1 -1
- package/packages/server/dist/routes/org.js +125 -119
- package/packages/server/dist/routes/org.js.map +1 -1
- package/packages/server/dist/routes/profile.d.ts.map +1 -1
- package/packages/server/dist/routes/profile.js +5 -6
- package/packages/server/dist/routes/profile.js.map +1 -1
- package/packages/server/dist/routes/providers.d.ts.map +1 -1
- package/packages/server/dist/routes/providers.js +1 -3
- package/packages/server/dist/routes/providers.js.map +1 -1
- package/packages/server/dist/routes/query.d.ts +10 -0
- package/packages/server/dist/routes/query.d.ts.map +1 -0
- package/packages/server/dist/routes/query.js +17 -0
- package/packages/server/dist/routes/query.js.map +1 -0
- package/packages/server/dist/routes/questions.d.ts.map +1 -1
- package/packages/server/dist/routes/questions.js +5 -11
- package/packages/server/dist/routes/questions.js.map +1 -1
- package/packages/server/dist/routes/sessions.d.ts.map +1 -1
- package/packages/server/dist/routes/sessions.js +20 -28
- package/packages/server/dist/routes/sessions.js.map +1 -1
- package/packages/server/dist/routes/sleep.d.ts.map +1 -1
- package/packages/server/dist/routes/sleep.js +21 -36
- package/packages/server/dist/routes/sleep.js.map +1 -1
- package/packages/server/dist/routes/stats.d.ts.map +1 -1
- package/packages/server/dist/routes/stats.js +2 -7
- package/packages/server/dist/routes/stats.js.map +1 -1
- package/packages/server/dist/routes/terminals.d.ts.map +1 -1
- package/packages/server/dist/routes/terminals.js +19 -14
- package/packages/server/dist/routes/terminals.js.map +1 -1
- package/packages/server/dist/routes/tools.d.ts.map +1 -1
- package/packages/server/dist/routes/tools.js +7 -5
- package/packages/server/dist/routes/tools.js.map +1 -1
- package/packages/server/dist/routes/ws.d.ts.map +1 -1
- package/packages/server/dist/routes/ws.js +235 -207
- package/packages/server/dist/routes/ws.js.map +1 -1
- package/packages/server/dist/schemas.d.ts +30 -21
- package/packages/server/dist/schemas.d.ts.map +1 -1
- package/packages/server/dist/schemas.js +3 -2
- package/packages/server/dist/schemas.js.map +1 -1
- package/packages/server/dist/server.d.ts.map +1 -1
- package/packages/server/dist/server.js +250 -230
- package/packages/server/dist/server.js.map +1 -1
- package/packages/server/dist/services/stream.d.ts.map +1 -1
- package/packages/server/dist/services/stream.js +6 -4
- package/packages/server/dist/services/stream.js.map +1 -1
- package/packages/server/dist/services/stt.d.ts +1 -1
- package/packages/server/dist/services/stt.d.ts.map +1 -1
- package/packages/server/dist/services/stt.js +175 -124
- package/packages/server/dist/services/stt.js.map +1 -1
- package/packages/server/dist/services/tts.d.ts.map +1 -1
- package/packages/server/dist/services/tts.js +82 -54
- package/packages/server/dist/services/tts.js.map +1 -1
- package/packages/server/dist/services/turns.d.ts +8 -6
- package/packages/server/dist/services/turns.d.ts.map +1 -1
- package/packages/server/dist/services/turns.js +36 -32
- package/packages/server/dist/services/turns.js.map +1 -1
- package/packages/server/dist/services/updates.d.ts +1 -0
- package/packages/server/dist/services/updates.d.ts.map +1 -1
- package/packages/server/dist/services/updates.js +150 -91
- package/packages/server/dist/services/updates.js.map +1 -1
- package/packages/server/dist/services/voice-keys.d.ts.map +1 -1
- package/packages/server/dist/services/voice-keys.js +4 -2
- package/packages/server/dist/services/voice-keys.js.map +1 -1
- package/packages/server/dist/static.d.ts +1 -1
- package/packages/server/dist/static.d.ts.map +1 -1
- package/packages/server/dist/static.js +7 -7
- package/packages/server/dist/static.js.map +1 -1
- package/packages/server/package.json +1 -1
- package/packages/web/dist/assets/{abnfDiagram-O67JEVCF-D7YyFndQ.js → abnfDiagram-O67JEVCF-c90Gs7pG.js} +1 -1
- package/packages/web/dist/assets/{arc-C_Zgk2dJ.js → arc-C28-SQX8.js} +1 -1
- package/packages/web/dist/assets/{architectureDiagram-NJMV4G6O-eI0adu1B.js → architectureDiagram-NJMV4G6O-CBPhVAKx.js} +1 -1
- package/packages/web/dist/assets/{blockDiagram-BEXU5L5S-WAoOFUA9.js → blockDiagram-BEXU5L5S-CwKMvCbh.js} +1 -1
- package/packages/web/dist/assets/{c4Diagram-YGBWAQC7-DE8Zyhng.js → c4Diagram-YGBWAQC7-CsL4YtmG.js} +1 -1
- package/packages/web/dist/assets/channel-gYp6Rt3b.js +1 -0
- package/packages/web/dist/assets/{chunk-2Q5K7J3B-bnqLP2XD.js → chunk-2Q5K7J3B-C9Bji_Nr.js} +1 -1
- package/packages/web/dist/assets/{chunk-3FUC2YCW-Ck1_SVe0.js → chunk-3FUC2YCW-BUnPWClf.js} +2 -2
- package/packages/web/dist/assets/{chunk-5VM5RSS4-hDmC41gD.js → chunk-5VM5RSS4-CdfpfDTC.js} +1 -1
- package/packages/web/dist/assets/{chunk-GTNCS2PH-PoWvfCrT.js → chunk-GTNCS2PH-BZrKT8Ne.js} +1 -1
- package/packages/web/dist/assets/{chunk-GWA4HPMP-D3V0IG43.js → chunk-GWA4HPMP-C0jEzDJu.js} +1 -1
- package/packages/web/dist/assets/{chunk-JWPE2WC7-BryfpHM5.js → chunk-JWPE2WC7-CkLRmEro.js} +1 -1
- package/packages/web/dist/assets/{chunk-NETBCI7D-8ic1iEdT.js → chunk-NETBCI7D-BBeWMDmk.js} +1 -1
- package/packages/web/dist/assets/{chunk-WEXAMYUT-nM8tmQT2.js → chunk-WEXAMYUT-B6IqsBxs.js} +1 -1
- package/packages/web/dist/assets/{chunk-XXDRQBXY-Do28F482.js → chunk-XXDRQBXY-BPXeDnB2.js} +1 -1
- package/packages/web/dist/assets/{classDiagram-v2-NBCMYWYE-Bop9oNNO.js → classDiagram-v2-NBCMYWYE-2kqq2mJ8.js} +1 -1
- package/packages/web/dist/assets/{cose-bilkent-JH36ORCC-a7f_bpnt.js → cose-bilkent-JH36ORCC-G49FKtk6.js} +1 -1
- package/packages/web/dist/assets/{cynefin-OW5HDTMX-DnArcis_.js → cynefin-OW5HDTMX-98M_mPg9.js} +1 -1
- package/packages/web/dist/assets/{cynefinDiagram-VND7K2PF-vEuTb1GD.js → cynefinDiagram-VND7K2PF-BYJTAxOT.js} +1 -1
- package/packages/web/dist/assets/{dagre-6A5THRUB-BgG4MynJ.js → dagre-6A5THRUB-Bxcb5kkl.js} +1 -1
- package/packages/web/dist/assets/{diagram-22UHCM2B-DRCQpafv.js → diagram-22UHCM2B-DK7wAztC.js} +1 -1
- package/packages/web/dist/assets/{diagram-3UASUU5V-BKgmAXde.js → diagram-3UASUU5V-BMRz0ele.js} +1 -1
- package/packages/web/dist/assets/{diagram-ATOU4E4O-B6Hsy36X.js → diagram-ATOU4E4O-O23sdVpm.js} +1 -1
- package/packages/web/dist/assets/{diagram-CDSNMT55-JflyfyoB.js → diagram-CDSNMT55-CGxai-zV.js} +1 -1
- package/packages/web/dist/assets/{diagram-MLGK6HIB-Dd2QPJjT.js → diagram-MLGK6HIB-B_29W-sW.js} +1 -1
- package/packages/web/dist/assets/{diagram-MPIPVDR6-DE5QU60x.js → diagram-MPIPVDR6-OSt1qPU_.js} +1 -1
- package/packages/web/dist/assets/{ebnfDiagram-ZINNZB2B-D7AQ741b.js → ebnfDiagram-ZINNZB2B-DnZcwiew.js} +1 -1
- package/packages/web/dist/assets/{elk-276RUBZZ-CeewBVLF.js → elk-276RUBZZ-BP6-xQAF.js} +1 -1
- package/packages/web/dist/assets/{erDiagram-OPXOYQCR-mLLYkZ5c.js → erDiagram-OPXOYQCR-DhG7UZtA.js} +1 -1
- package/packages/web/dist/assets/{flowDiagram-KWPJA3E3-DtpSpsQN.js → flowDiagram-KWPJA3E3-CNTS1YPA.js} +1 -1
- package/packages/web/dist/assets/{ganttDiagram-FUAMR5RP-1_lh-3ky.js → ganttDiagram-FUAMR5RP-_eKkbUxc.js} +1 -1
- package/packages/web/dist/assets/{gitGraphDiagram-X574FWY7-DoPXZuT5.js → gitGraphDiagram-X574FWY7-N_PXNE-o.js} +1 -1
- package/packages/web/dist/assets/index-DGq8BOVF.js +646 -0
- package/packages/web/dist/assets/index-DgMuFFt3.css +32 -0
- package/packages/web/dist/assets/{infoDiagram-VRGFBTTK-DQpRGGiD.js → infoDiagram-VRGFBTTK-vj_EDhft.js} +1 -1
- package/packages/web/dist/assets/{ishikawaDiagram-OU5B5YK6-gH5C9Q2e.js → ishikawaDiagram-OU5B5YK6-Dr0BodVq.js} +1 -1
- package/packages/web/dist/assets/{journeyDiagram-ZHPQQLJL-Bg-oeFjb.js → journeyDiagram-ZHPQQLJL-DykOPAu9.js} +1 -1
- package/packages/web/dist/assets/{kanban-definition-PNTS6WVX-BnpI4VH8.js → kanban-definition-PNTS6WVX-zslQcJnX.js} +1 -1
- package/packages/web/dist/assets/{mermaid.core-BwBKxlRA.js → mermaid.core-C888eQE1.js} +4 -4
- package/packages/web/dist/assets/{mindmap-definition-NLK3R4M7-NBnnxEoO.js → mindmap-definition-NLK3R4M7-CpdltDoL.js} +1 -1
- package/packages/web/dist/assets/{pegDiagram-GJSIUBJH-RrXXbIvO.js → pegDiagram-GJSIUBJH-Dsx3NmVN.js} +1 -1
- package/packages/web/dist/assets/{pieDiagram-5QR66LMP-B27q6Gso.js → pieDiagram-5QR66LMP-D_4DJLkr.js} +1 -1
- package/packages/web/dist/assets/{quadrantDiagram-O4NWA36T-DGDsdur2.js → quadrantDiagram-O4NWA36T-BXgGWrJ1.js} +1 -1
- package/packages/web/dist/assets/{railroadDiagram-XR7U4H2S-GdjkE3mI.js → railroadDiagram-XR7U4H2S-WMsrl4TR.js} +1 -1
- package/packages/web/dist/assets/{requirementDiagram-PLB6GJNP-DjK0GfgO.js → requirementDiagram-PLB6GJNP-m2PpXDpq.js} +1 -1
- package/packages/web/dist/assets/{sankeyDiagram-IPEJSGJF-BG_AIkwF.js → sankeyDiagram-IPEJSGJF-DfcxNy3C.js} +1 -1
- package/packages/web/dist/assets/scene-BA1PRRU7.js +4620 -0
- package/packages/web/dist/assets/{sequenceDiagram-PO4LG4MO-CIQwUb4y.js → sequenceDiagram-PO4LG4MO-B8yIKbJ8.js} +1 -1
- package/packages/web/dist/assets/{sizeCapture-INFHLROL-bpIoPxdJ.js → sizeCapture-INFHLROL-Cic9nV7h.js} +1 -1
- package/packages/web/dist/assets/{stateDiagram-v2-GCMORJYK-8hYXvPPv.js → stateDiagram-v2-GCMORJYK-oOFJPdg1.js} +1 -1
- package/packages/web/dist/assets/{swimlanes-2SLR337P-gfflUMF9.js → swimlanes-2SLR337P-UCvVVk9j.js} +1 -1
- package/packages/web/dist/assets/swimlanesDiagram-TC7HE7FX-B8q2Z_Nb.js +8 -0
- package/packages/web/dist/assets/{timeline-definition-EJHVYXUP-PHMNoGTZ.js → timeline-definition-EJHVYXUP-BLgviPCi.js} +1 -1
- package/packages/web/dist/assets/{usecaseDiagram-POWQR4AR-B2j5iteO.js → usecaseDiagram-POWQR4AR-CV7U5Y4h.js} +1 -1
- package/packages/web/dist/assets/{vennDiagram-UO4OBE2U-BzxtZ-_2.js → vennDiagram-UO4OBE2U-C8OA0JqM.js} +1 -1
- package/packages/web/dist/assets/{wardleyDiagram-VNRHLVJA-DL7YbMpY.js → wardleyDiagram-VNRHLVJA-F55WtNqt.js} +1 -1
- package/packages/web/dist/assets/{xychartDiagram-PMCCYNJV-CisgP1cT.js → xychartDiagram-PMCCYNJV-C93Bzul9.js} +1 -1
- package/packages/web/dist/index.html +2 -2
- package/packages/web/package.json +1 -1
- package/packages/web/dist/assets/channel-egZxcyUK.js +0 -1
- package/packages/web/dist/assets/index-Cw2Opmx7.js +0 -648
- package/packages/web/dist/assets/index-j0zBRCgT.css +0 -32
- package/packages/web/dist/assets/scene-D4LPicHk.js +0 -4620
- package/packages/web/dist/assets/swimlanesDiagram-TC7HE7FX-9wdzGXU-.js +0 -8
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The words the night says to its model, one prompt per phase. Kept apart from
|
|
3
|
+
* the phases that send them: they are long, they are prose, and none of them
|
|
4
|
+
* changes how a phase behaves except through what the reply is read as.
|
|
5
|
+
*/
|
|
6
|
+
export const CONDENSE_PROMPT = `You are tidying a personal assistant's long-term memory overnight.
|
|
7
|
+
|
|
8
|
+
The memories below concern the same topic. Decide whether they describe ONE fact
|
|
9
|
+
that can be condensed into one sentence.
|
|
10
|
+
|
|
11
|
+
Merge ONLY when:
|
|
12
|
+
- the sentences genuinely describe the same fact, or
|
|
13
|
+
- a newer sentence supersedes an older one (the newer one takes precedence).
|
|
14
|
+
|
|
15
|
+
Do NOT merge different facts that merely share a keyword.
|
|
16
|
+
When in doubt, keep them separate: separation costs nothing; a false merge loses knowledge.
|
|
17
|
+
|
|
18
|
+
Rules:
|
|
19
|
+
- The result is ONE complete sentence, understandable without any other context.
|
|
20
|
+
- Write in the same language as the source memories.
|
|
21
|
+
- Under "supersedes", list the numbers of memories the new sentence fully replaces.
|
|
22
|
+
- NEVER list memories marked [protected] under "supersedes". They are context only.
|
|
23
|
+
- Do not list a number whose content is not included in the new sentence.
|
|
24
|
+
|
|
25
|
+
Reply ONLY with JSON, no prose or code fence:
|
|
26
|
+
{"merge":true,"content":"...","kind":"fact","importance":0.7,"tags":["..."],"supersedes":[1,3]}
|
|
27
|
+
or
|
|
28
|
+
{"merge":false,"reason":"different facts"}`;
|
|
29
|
+
export const LINK_PROMPT = `You are connecting a personal assistant's memories overnight.
|
|
30
|
+
|
|
31
|
+
Find relationships between the numbered memories below.
|
|
32
|
+
|
|
33
|
+
Relationships:
|
|
34
|
+
- "refines": "from" adds detail to "to" (the same fact, more detail)
|
|
35
|
+
- "contradicts": "from" and "to" cannot both be true
|
|
36
|
+
- "caused_by": "from" is true BECAUSE "to" is true
|
|
37
|
+
|
|
38
|
+
Rules:
|
|
39
|
+
- Only relationships supported by the sentences themselves. Do not speculate.
|
|
40
|
+
- At most 12 relationships. None is a valid answer.
|
|
41
|
+
- "weight" is your confidence between 0 and 1.
|
|
42
|
+
- Also classify recognisable proper names as:
|
|
43
|
+
person, project, tool, place, org or topic.
|
|
44
|
+
- If two DIFFERENT names in the list clearly mean the same real thing
|
|
45
|
+
("Rookery" and "Rookery-Agent", "TS" and "TypeScript"), list them under
|
|
46
|
+
"aliases": "from" is the variant, "into" the canonical name. Only when you
|
|
47
|
+
are sure they are the same thing; a wrong merge loses structure.
|
|
48
|
+
|
|
49
|
+
Reply ONLY with JSON, no prose or code fence:
|
|
50
|
+
{"edges":[{"from":1,"to":4,"relation":"refines","weight":0.8}],
|
|
51
|
+
"entities":[{"name":"Rookery","kind":"project"}],
|
|
52
|
+
"aliases":[{"from":"Rookery-Agent","into":"Rookery"}]}
|
|
53
|
+
An empty result is {"edges":[],"entities":[],"aliases":[]}`;
|
|
54
|
+
export const RESOLVE_PROMPT = `You are resolving a contradiction in a personal assistant's memory overnight.
|
|
55
|
+
|
|
56
|
+
The two sentences below contradict each other. Decide which takes precedence. You must decide,
|
|
57
|
+
unless they do not actually contradict each other.
|
|
58
|
+
|
|
59
|
+
Rules:
|
|
60
|
+
- The newer sentence wins when both describe the same thing and circumstances have changed.
|
|
61
|
+
("has switched to" supersedes the older state.)
|
|
62
|
+
- The more specific sentence wins when both concern the same time and one is imprecise.
|
|
63
|
+
- Use "both" only when both can be true together and the contradiction label was incorrect.
|
|
64
|
+
- Use "merge" only when both together describe the fact correctly. Then "content" is
|
|
65
|
+
ONE complete sentence in the language of the source memories.
|
|
66
|
+
|
|
67
|
+
Reply ONLY with JSON, no prose or code fence:
|
|
68
|
+
{"decision":"first"}
|
|
69
|
+
{"decision":"second"}
|
|
70
|
+
{"decision":"both"}
|
|
71
|
+
{"decision":"merge","content":"..."}`;
|
|
72
|
+
export const INSIGHT_USER_PROMPT = `You are reflecting on a personal assistant's memory overnight.
|
|
73
|
+
|
|
74
|
+
The memories below come from recent days. What stands out BEYOND the individual sentences
|
|
75
|
+
ABOUT THE USER - the person this memory belongs to? Look for a pattern, habit, routine,
|
|
76
|
+
preference or common thread that no single sentence states.
|
|
77
|
+
|
|
78
|
+
Rules:
|
|
79
|
+
- At most {{MAX}} insights. None is the right answer when nothing stands out.
|
|
80
|
+
- Every insight needs at least TWO sources: the numbers supporting it.
|
|
81
|
+
- Never repeat an individual memory as an insight. An insight says something new.
|
|
82
|
+
- ALREADY ON RECORD lists insights stored earlier. Do not restate or reword any of them.
|
|
83
|
+
- One sentence, third person, in the same language as the source memories.
|
|
84
|
+
- Do not invent or speculate. Only state what the evidence actually supports.
|
|
85
|
+
|
|
86
|
+
Reply ONLY with JSON, no prose or code fence:
|
|
87
|
+
{"insights":[{"content":"...","importance":0.8,"evidence":[1,4,7],"tags":["..."]}]}
|
|
88
|
+
An empty result is {"insights":[]}`;
|
|
89
|
+
export const INSIGHT_WORK_PROMPT = `You are reflecting on a personal assistant's memory overnight.
|
|
90
|
+
|
|
91
|
+
The memories below come from recent days. What stands out BEYOND the individual sentences
|
|
92
|
+
ABOUT THE WORK - the projects, the tools, the way things get done? Look for what keeps
|
|
93
|
+
recurring, what keeps costing time, what several efforts share, or what keeps going wrong
|
|
94
|
+
the same way. The user has to be able to act on it.
|
|
95
|
+
|
|
96
|
+
Rules:
|
|
97
|
+
- At most {{MAX}} insights. None is the right answer when nothing stands out.
|
|
98
|
+
- Every insight needs at least TWO sources: the numbers supporting it.
|
|
99
|
+
- Never repeat an individual memory as an insight. An insight says something new.
|
|
100
|
+
- ALREADY ON RECORD lists insights stored earlier. Do not restate or reword any of them.
|
|
101
|
+
- One sentence, third person, in the same language as the source memories.
|
|
102
|
+
- Do not invent or speculate. Only state what the evidence actually supports.
|
|
103
|
+
|
|
104
|
+
Reply ONLY with JSON, no prose or code fence:
|
|
105
|
+
{"insights":[{"content":"...","importance":0.8,"evidence":[1,4,7],"tags":["..."]}]}
|
|
106
|
+
An empty result is {"insights":[]}`;
|
|
107
|
+
export const TRIAGE_PROMPT = `You decide whether one conversation is worth reading closely tonight.
|
|
108
|
+
|
|
109
|
+
Below are only the things the USER said in it, shortened. Answer one question: could a careful
|
|
110
|
+
reading of this conversation yield something durable - a stable fact about the user, a preference
|
|
111
|
+
about how they want things done, a project constraint, or a correction of something that was
|
|
112
|
+
done wrong?
|
|
113
|
+
|
|
114
|
+
Say false for small talk, one-off requests, pure question-and-answer where the user reveals
|
|
115
|
+
nothing about themselves, and anything that is only about the here and now. Most conversations
|
|
116
|
+
are false. That is fine and expected - being wrong the cheap way costs one more reading, being
|
|
117
|
+
wrong the expensive way costs nothing at all.
|
|
118
|
+
|
|
119
|
+
Reply ONLY with JSON, no prose or code fence:
|
|
120
|
+
{"worth":true} or {"worth":false}`;
|
|
121
|
+
export const REPLAY_PROMPT = `You are re-reading one conversation at night, after it has ended.
|
|
122
|
+
|
|
123
|
+
It was already skimmed once, right after each turn, by a small fast model that saw one exchange
|
|
124
|
+
at a time and never the whole. Your advantage is exactly that: you can see the arc. Look for what
|
|
125
|
+
only shows up across the conversation - a preference mentioned early in passing, a constraint the
|
|
126
|
+
user repeated in different words, a decision that emerged rather than being stated in one line.
|
|
127
|
+
|
|
128
|
+
TWO THINGS TO RETURN.
|
|
129
|
+
|
|
130
|
+
1. memories - durable facts the USER STATED THEMSELVES, worth remembering weeks from now.
|
|
131
|
+
Every one needs "evidence": a span copied VERBATIM, character for character, from a USER turn.
|
|
132
|
+
Not from the assistant's. Not reworded, not translated, not tidied. A memory whose evidence is
|
|
133
|
+
not found word for word in what the user wrote is thrown away before it is stored, so there is
|
|
134
|
+
nothing to gain by inventing one.
|
|
135
|
+
- one self-contained sentence each, third person about the user, in the user's own language
|
|
136
|
+
- kinds: fact, preference, project, event
|
|
137
|
+
- nothing already under ALREADY KNOWN, nothing the assistant worked out, nothing you inferred
|
|
138
|
+
- a question is not a fact. "How do I deploy this?" says nothing durable.
|
|
139
|
+
- importance: 0.9 identity and hard constraints, 0.7 preferences and active projects,
|
|
140
|
+
0.5 useful context, 0.3 minor detail
|
|
141
|
+
|
|
142
|
+
2. corrections - places where the user put the assistant right: rejected an approach, restated
|
|
143
|
+
something that had been misunderstood, or said a thing should be done differently in future.
|
|
144
|
+
This is the signal nothing else in the system captures. Each needs the user's own words as
|
|
145
|
+
"quote", under the same verbatim rule, and one sentence in "text" saying what should be done
|
|
146
|
+
differently from now on. Irritation alone is not a correction; there has to be a should.
|
|
147
|
+
|
|
148
|
+
Returning empty lists is the ordinary answer for most conversations.
|
|
149
|
+
|
|
150
|
+
Reply ONLY with JSON, no prose or code fence:
|
|
151
|
+
{"memories":[{"kind":"preference","content":"The user wants releases cut from main.","tags":["release"],"importance":0.7,"evidence":"cut releases from main"}],
|
|
152
|
+
"corrections":[{"text":"Do not open a PR without running the tests first.","quote":"du hast wieder keine Tests laufen lassen"}]}`;
|
|
153
|
+
export const REVISE_PROMPT = `You maintain one written procedure that an assistant follows unattended.
|
|
154
|
+
|
|
155
|
+
Below is a skill as it currently reads, and everything that has changed since it was written:
|
|
156
|
+
memories it was built on that have been replaced, retired or edited, and runs that had it open
|
|
157
|
+
and then failed, with the real error text.
|
|
158
|
+
|
|
159
|
+
Decide ONE thing: does the skill still hold, or does it now mislead whoever opens it next?
|
|
160
|
+
|
|
161
|
+
Revise it when:
|
|
162
|
+
- a step names something that has been replaced (a command, a path, a tool, a threshold)
|
|
163
|
+
- an error shows a step simply does not work the way the skill claims
|
|
164
|
+
- the skill is silent about a trap that has now caught a run
|
|
165
|
+
|
|
166
|
+
Do NOT revise when:
|
|
167
|
+
- the change is unrelated to what the skill actually says
|
|
168
|
+
- the run failed for a reason the skill never claimed to cover
|
|
169
|
+
- you would only be rewording it. Churn is worse than an old sentence that is still true.
|
|
170
|
+
|
|
171
|
+
When you revise:
|
|
172
|
+
- return the COMPLETE new body, not a diff and not only the changed part
|
|
173
|
+
- change what is wrong and leave the rest alone, word for word
|
|
174
|
+
- keep the same structure and the same language
|
|
175
|
+
- fix the cause, not the symptom: if a command was renamed, rename it, do not add a note
|
|
176
|
+
saying it might have been renamed
|
|
177
|
+
- never invent a step you have no evidence for. If the error shows a step is wrong but not
|
|
178
|
+
what the right one is, say so plainly in the skill rather than guessing a replacement.
|
|
179
|
+
|
|
180
|
+
Reply ONLY with JSON, no prose or code fence:
|
|
181
|
+
{"revise":true,"description":"when to open this skill","body":"## Steps\\n1. ..."}
|
|
182
|
+
Leaving it alone is {"revise":false}`;
|
|
183
|
+
export const SKILL_PROMPT = `You turn what an assistant has learned into something it can actually follow.
|
|
184
|
+
|
|
185
|
+
Below are the memories this assistant holds and the skills it already has. A memory says THAT
|
|
186
|
+
something is true. A skill says HOW a kind of work is done, so it does not have to be figured out
|
|
187
|
+
again. Your job is to notice where the memories have quietly documented a procedure, and to write
|
|
188
|
+
that procedure down.
|
|
189
|
+
|
|
190
|
+
Write a skill ONLY when all of these hold:
|
|
191
|
+
- the memories point at a RECURRING kind of task, not one thing that happened once
|
|
192
|
+
- there is an actual procedure in them: an order to do things in, a tool to reach for, a mistake
|
|
193
|
+
worth avoiding, a rule that keeps coming back
|
|
194
|
+
- no existing skill already covers it
|
|
195
|
+
- at least THREE of the numbered memories support it
|
|
196
|
+
|
|
197
|
+
Write at most {{MAX}}. Writing none is the ordinary answer - reply with an empty list and stop.
|
|
198
|
+
|
|
199
|
+
Revising a skill you wrote before (one marked "sleep" or "agent") counts towards the limit and is
|
|
200
|
+
usually better than adding another one: reuse its exact name and write the improved version in
|
|
201
|
+
full. NEVER reuse the name of a skill marked "user" - those belong to the person and are refused.
|
|
202
|
+
|
|
203
|
+
For the body: Markdown, written for somebody who has never seen these memories. Concrete names,
|
|
204
|
+
paths, commands, thresholds. Steps in the order they are done. State the traps explicitly. No
|
|
205
|
+
preamble, no restating of the memories, no "as an AI".
|
|
206
|
+
|
|
207
|
+
Write in the same language the memories are written in.
|
|
208
|
+
|
|
209
|
+
Reply ONLY with JSON, no prose or code fence:
|
|
210
|
+
{"skills":[{"name":"release-checklist","description":"When cutting a release of the web package","body":"## Steps\\n1. ...","evidence":[2,5,9]}]}
|
|
211
|
+
An empty result is {"skills":[]}`;
|
|
212
|
+
//# sourceMappingURL=sleep-prompts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sleep-prompts.js","sourceRoot":"","sources":["../../src/memory/sleep-prompts.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,CAAC,MAAM,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;;2CAsBY,CAAC;AAE5C,MAAM,CAAC,MAAM,WAAW,GAAG;;;;;;;;;;;;;;;;;;;;;;;;2DAwBgC,CAAC;AAE5D,MAAM,CAAC,MAAM,cAAc,GAAG;;;;;;;;;;;;;;;;;qCAiBO,CAAC;AAEtC,MAAM,CAAC,MAAM,mBAAmB,GAAG;;;;;;;;;;;;;;;;mCAgBA,CAAC;AAEpC,MAAM,CAAC,MAAM,mBAAmB,GAAG;;;;;;;;;;;;;;;;;mCAiBA,CAAC;AAEpC,MAAM,CAAC,MAAM,aAAa,GAAG;;;;;;;;;;;;;oCAaO,CAAC;AAErC,MAAM,CAAC,MAAM,aAAa,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kIA+BqG,CAAC;AAEnI,MAAM,CAAC,MAAM,aAAa,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCA6BQ,CAAC;AAEtC,MAAM,CAAC,MAAM,YAAY,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCA4BK,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { AbstainReason } from '../types.js';
|
|
2
|
+
/** Use explicit singular and plural forms. */
|
|
3
|
+
export declare function plural(count: number, one: string, many: string): string;
|
|
4
|
+
/** The night in one line, in the language the user reads. */
|
|
5
|
+
export declare function describeSleep(counters: {
|
|
6
|
+
readCount: number;
|
|
7
|
+
mergedCount: number;
|
|
8
|
+
dormantCount: number;
|
|
9
|
+
edgeCount: number;
|
|
10
|
+
insightCount: number;
|
|
11
|
+
conflictCount: number;
|
|
12
|
+
replayedCount?: number;
|
|
13
|
+
learnedCount?: number;
|
|
14
|
+
resolvedCount?: number;
|
|
15
|
+
skillCount?: number;
|
|
16
|
+
skillRevisedCount?: number;
|
|
17
|
+
/**
|
|
18
|
+
* The dream counters (sixth of the six places in step); optional so
|
|
19
|
+
* callers that predate them keep compiling.
|
|
20
|
+
*/
|
|
21
|
+
dreamTracesSeen?: number;
|
|
22
|
+
dreamFramesScored?: number;
|
|
23
|
+
dreamCandidates?: number;
|
|
24
|
+
/** Stage 2's two, optional for the same reason as the three above. */
|
|
25
|
+
dreamPromoted?: number;
|
|
26
|
+
dreamLabelsWritten?: number;
|
|
27
|
+
}): string;
|
|
28
|
+
/**
|
|
29
|
+
* What the wake test (5.5c) found, or why it could not look.
|
|
30
|
+
*
|
|
31
|
+
* `drift` and `observed` are null in exactly one case: fewer frames closed
|
|
32
|
+
* than `dream.calibrationTraces` asks for. The night then reports what it
|
|
33
|
+
* offered, what closed and what abstained, and freezes nothing - the numbers
|
|
34
|
+
* are the finding.
|
|
35
|
+
*/
|
|
36
|
+
export interface WakeTestReport {
|
|
37
|
+
/** Frames since the promotion the test was handed. */
|
|
38
|
+
offered: number;
|
|
39
|
+
/** Of those, the ones that scored - the only ones a verdict may be read off. */
|
|
40
|
+
closed: number;
|
|
41
|
+
/** Of those, the ones that abstained, counted rather than dropped. */
|
|
42
|
+
abstained: number;
|
|
43
|
+
/**
|
|
44
|
+
* The abstentions by name (5.4). Offered minus closed minus abstained is
|
|
45
|
+
* what the wall clock or an abort cut off before it was ever looked at.
|
|
46
|
+
*/
|
|
47
|
+
reasons: Partial<Record<AbstainReason, number>>;
|
|
48
|
+
/** `dream.calibrationTraces`, clamped: the floor `closed` has to clear. */
|
|
49
|
+
required: number;
|
|
50
|
+
/** Null when `closed` stayed under the floor. */
|
|
51
|
+
drift: number | null;
|
|
52
|
+
observed: number | null;
|
|
53
|
+
/** What the promotion promised - `policy_versions.replay_score`. */
|
|
54
|
+
promised: number;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* The wake test as the night report words it. The verdict is read off what
|
|
58
|
+
* CLOSED, so a pool that closed too little says so and freezes nothing:
|
|
59
|
+
* `calibration` is a freeze somebody has to undo by hand (10.3), and one
|
|
60
|
+
* trace of noise out of fifty offered must not be able to hand it out.
|
|
61
|
+
*/
|
|
62
|
+
export declare function describeWakeTest(wake: WakeTestReport): string;
|
|
63
|
+
//# sourceMappingURL=sleep-report.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sleep-report.d.ts","sourceRoot":"","sources":["../../src/memory/sleep-report.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,8CAA8C;AAC9C,wBAAgB,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAEvE;AAED,6DAA6D;AAC7D,wBAAgB,aAAa,CAAC,QAAQ,EAAE;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,sEAAsE;IACtE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B,GAAG,MAAM,CA+CT;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,cAAc;IAC7B,sDAAsD;IACtD,OAAO,EAAE,MAAM,CAAC;IAChB,gFAAgF;IAChF,MAAM,EAAE,MAAM,CAAC;IACf,sEAAsE;IACtE,SAAS,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC,CAAC;IAChD,2EAA2E;IAC3E,QAAQ,EAAE,MAAM,CAAC;IACjB,iDAAiD;IACjD,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,oEAAoE;IACpE,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,cAAc,GAAG,MAAM,CAgB7D"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/** Use explicit singular and plural forms. */
|
|
2
|
+
export function plural(count, one, many) {
|
|
3
|
+
return count + ' ' + (count === 1 ? one : many);
|
|
4
|
+
}
|
|
5
|
+
/** The night in one line, in the language the user reads. */
|
|
6
|
+
export function describeSleep(counters) {
|
|
7
|
+
const parts = [counters.readCount + ' memories read'];
|
|
8
|
+
if (counters.replayedCount) {
|
|
9
|
+
parts.push(plural(counters.replayedCount, 'conversation', 'conversations') + ' re-read');
|
|
10
|
+
}
|
|
11
|
+
if (counters.learnedCount) {
|
|
12
|
+
parts.push(plural(counters.learnedCount, 'memory', 'memories') + ' learned from them');
|
|
13
|
+
}
|
|
14
|
+
if (counters.mergedCount)
|
|
15
|
+
parts.push(counters.mergedCount + ' condensed');
|
|
16
|
+
if (counters.dormantCount)
|
|
17
|
+
parts.push(counters.dormantCount + ' tidied');
|
|
18
|
+
if (counters.edgeCount)
|
|
19
|
+
parts.push(counters.edgeCount + ' connections added');
|
|
20
|
+
if (counters.resolvedCount) {
|
|
21
|
+
parts.push(plural(counters.resolvedCount, 'contradiction', 'contradictions') + ' resolved');
|
|
22
|
+
}
|
|
23
|
+
const openConflicts = Math.max(0, counters.conflictCount - (counters.resolvedCount ?? 0));
|
|
24
|
+
if (openConflicts) {
|
|
25
|
+
parts.push(plural(openConflicts, 'contradiction', 'contradictions') + ' open');
|
|
26
|
+
}
|
|
27
|
+
if (counters.insightCount) {
|
|
28
|
+
parts.push(plural(counters.insightCount, 'insight', 'insights') + ' recorded');
|
|
29
|
+
}
|
|
30
|
+
if (counters.skillRevisedCount) {
|
|
31
|
+
parts.push(plural(counters.skillRevisedCount, 'skill', 'skills') + ' revised');
|
|
32
|
+
}
|
|
33
|
+
if (counters.skillCount) {
|
|
34
|
+
parts.push(plural(counters.skillCount, 'skill', 'skills') + ' written');
|
|
35
|
+
}
|
|
36
|
+
// The dream's own line: grid placements scored, the counter the probe
|
|
37
|
+
// owns in stage 1 (its writer is the paired measure call, and the frame
|
|
38
|
+
// rows it could not score appear in the log and the report suffix, not
|
|
39
|
+
// here - a night that abstained everything still did the work).
|
|
40
|
+
if (counters.dreamFramesScored) {
|
|
41
|
+
parts.push(plural(counters.dreamFramesScored, 'dream placement', 'dream placements') + ' scored');
|
|
42
|
+
}
|
|
43
|
+
// Stage 2's own two. The labels are the supply side of the whole
|
|
44
|
+
// apparatus - without them every delta is a delta over nothing - and a
|
|
45
|
+
// promotion is the only line in this sentence that changed how the
|
|
46
|
+
// assistant will behave tomorrow, so it goes last, where it is read.
|
|
47
|
+
if (counters.dreamLabelsWritten) {
|
|
48
|
+
parts.push(plural(counters.dreamLabelsWritten, 'dream label', 'dream labels') + ' written');
|
|
49
|
+
}
|
|
50
|
+
if (counters.dreamPromoted) {
|
|
51
|
+
parts.push(plural(counters.dreamPromoted, 'retrieval policy', 'retrieval policies') + ' promoted');
|
|
52
|
+
}
|
|
53
|
+
return parts.length === 1 ? parts[0] + ', nothing to do.' : parts.join(', ') + '.';
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* The wake test as the night report words it. The verdict is read off what
|
|
57
|
+
* CLOSED, so a pool that closed too little says so and freezes nothing:
|
|
58
|
+
* `calibration` is a freeze somebody has to undo by hand (10.3), and one
|
|
59
|
+
* trace of noise out of fifty offered must not be able to hand it out.
|
|
60
|
+
*/
|
|
61
|
+
export function describeWakeTest(wake) {
|
|
62
|
+
const abstentions = plural(wake.abstained, 'abstention', 'abstentions') + leadingReason(wake.reasons);
|
|
63
|
+
if (wake.drift === null) {
|
|
64
|
+
return (' The wake test could not run: ' + wake.closed + ' of ' + wake.offered +
|
|
65
|
+
' frames since the last promotion closed, under dream.calibrationTraces (' +
|
|
66
|
+
wake.required + '), with ' + abstentions + '. Nothing is frozen on a pool that could not be read.');
|
|
67
|
+
}
|
|
68
|
+
return (' The wake test (a regression alarm, not a calibration: the replay value and the live' +
|
|
69
|
+
' value come out of the same estimator and the same labels, so wrong labels leave both' +
|
|
70
|
+
' agreeing) measured a drift of ' + signedNumber(wake.drift) + ' over the ' +
|
|
71
|
+
plural(wake.closed, 'trace', 'traces') + ' that closed of ' + wake.offered +
|
|
72
|
+
' frames since the last promotion, ' + abstentions + '.');
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* The abstention that dominated a pool, as half a sentence. Which one it was
|
|
76
|
+
* is the whole point of counting them: `no-reachable-label` says the pool is
|
|
77
|
+
* unlabelled, `corpus-drifted` says the index moved, and the two call for
|
|
78
|
+
* entirely different answers.
|
|
79
|
+
*/
|
|
80
|
+
function leadingReason(reasons) {
|
|
81
|
+
let name = '';
|
|
82
|
+
let most = 0;
|
|
83
|
+
for (const [reason, count] of Object.entries(reasons)) {
|
|
84
|
+
if ((count ?? 0) <= most)
|
|
85
|
+
continue;
|
|
86
|
+
most = count ?? 0;
|
|
87
|
+
name = reason;
|
|
88
|
+
}
|
|
89
|
+
return name ? ', mostly ' + name : '';
|
|
90
|
+
}
|
|
91
|
+
/** A delta with its sign, the way the evidence digest prints one. */
|
|
92
|
+
function signedNumber(value) {
|
|
93
|
+
if (!Number.isFinite(value))
|
|
94
|
+
return 'an unreadable amount';
|
|
95
|
+
return (value >= 0 ? '+' : '') + value.toFixed(4);
|
|
96
|
+
}
|
|
97
|
+
//# sourceMappingURL=sleep-report.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sleep-report.js","sourceRoot":"","sources":["../../src/memory/sleep-report.ts"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CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;QACtD,IAAI,CAAC,KAAK,IAAI,CAAC,CAAC,IAAI,IAAI;YAAE,SAAS;QACnC,IAAI,GAAG,KAAK,IAAI,CAAC,CAAC;QAClB,IAAI,GAAG,MAAM,CAAC;IAChB,CAAC;IACD,OAAO,IAAI,CAAC,CAAC,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;AACxC,CAAC;AAED,qEAAqE;AACrE,SAAS,YAAY,CAAC,KAAa;IACjC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC;QAAE,OAAO,sBAAsB,CAAC;IAC3D,OAAO,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AACpD,CAAC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import type { EntityKind, MemoryKind, MemoryRecord, MemoryRelation } from '../types.js';
|
|
2
|
+
/** Shorter than this is a note, not a procedure worth opening. */
|
|
3
|
+
export declare const MIN_SKILL_BODY_CHARS = 120;
|
|
4
|
+
/** Tags a condensed or merged memory may carry. */
|
|
5
|
+
export declare const MAX_MERGED_TAGS = 8;
|
|
6
|
+
/** What the night may never touch. */
|
|
7
|
+
export declare function isProtected(memory: MemoryRecord): boolean;
|
|
8
|
+
/** Distinct tags, first occurrences first, cut to what a record may carry. */
|
|
9
|
+
export declare function unionTags(tags: readonly string[], limit: number): string[];
|
|
10
|
+
/**
|
|
11
|
+
* The 1-based numbers a reply named, as the distinct integers inside
|
|
12
|
+
* `1..max`, in the order they first appeared. Pure reading of a list of
|
|
13
|
+
* "which of the numbered items" answers.
|
|
14
|
+
*/
|
|
15
|
+
export declare function namedIndices(value: unknown, max: number): number[];
|
|
16
|
+
/** A condensed sentence of an acceptable length, or null. */
|
|
17
|
+
export declare function readCondensed(value: unknown): string | null;
|
|
18
|
+
/** One sentence that replaces several memories, and the memories it replaces. */
|
|
19
|
+
export interface MergeVerdict {
|
|
20
|
+
content: string;
|
|
21
|
+
kind: MemoryKind;
|
|
22
|
+
importance: number;
|
|
23
|
+
tags: string[];
|
|
24
|
+
victims: MemoryRecord[];
|
|
25
|
+
}
|
|
26
|
+
export declare function readMergeVerdict(parsed: Record<string, unknown> | null, members: readonly MemoryRecord[]): MergeVerdict | null;
|
|
27
|
+
export interface ProposedEdge {
|
|
28
|
+
from: MemoryRecord;
|
|
29
|
+
to: MemoryRecord;
|
|
30
|
+
relation: MemoryRelation;
|
|
31
|
+
weight: number;
|
|
32
|
+
}
|
|
33
|
+
/** The relations a reply drew between the numbered memories of one portion. */
|
|
34
|
+
export declare function readProposedEdges(parsed: Record<string, unknown>, portion: readonly MemoryRecord[]): ProposedEdge[];
|
|
35
|
+
/** Names the reply says are really a person or a tool, in a kind the graph knows. */
|
|
36
|
+
export declare function readEntityKinds(parsed: Record<string, unknown>): {
|
|
37
|
+
name: string;
|
|
38
|
+
kind: EntityKind;
|
|
39
|
+
}[];
|
|
40
|
+
/** Pairs of names the reply says mean one thing. */
|
|
41
|
+
export declare function readAliases(parsed: Record<string, unknown>): {
|
|
42
|
+
from: string;
|
|
43
|
+
into: string;
|
|
44
|
+
}[];
|
|
45
|
+
/** An insight with the memories it says it stands on. */
|
|
46
|
+
export interface InsightDraft {
|
|
47
|
+
content: string;
|
|
48
|
+
importance: number;
|
|
49
|
+
evidence: MemoryRecord[];
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* The first `limit` insights a reply offers that have the right length and
|
|
53
|
+
* stand on at least two of the numbered memories. The limit counts rows read,
|
|
54
|
+
* not rows kept: a reply may not talk its way past the night's cap.
|
|
55
|
+
*/
|
|
56
|
+
export declare function readInsightDrafts(parsed: Record<string, unknown> | null, recent: readonly MemoryRecord[], limit: number): InsightDraft[];
|
|
57
|
+
/** A procedure the reply proposes, with the 1-based numbers of the memories it stands on. */
|
|
58
|
+
export interface SkillDraft {
|
|
59
|
+
name: string;
|
|
60
|
+
description: string;
|
|
61
|
+
body: string;
|
|
62
|
+
evidence: number[];
|
|
63
|
+
}
|
|
64
|
+
export declare function readSkillDrafts(parsed: Record<string, unknown> | null, memoryCount: number, limit: number): SkillDraft[];
|
|
65
|
+
/** The rewrite a reply asks for, or null when the skill is to be left alone. */
|
|
66
|
+
export declare function readRevision(parsed: Record<string, unknown> | null, current: {
|
|
67
|
+
description: string;
|
|
68
|
+
}): {
|
|
69
|
+
description: string;
|
|
70
|
+
body: string;
|
|
71
|
+
} | null;
|
|
72
|
+
/** What the user said that was a correction, in the model's words and in theirs. */
|
|
73
|
+
export declare function readCorrectionClaims(parsed: Record<string, unknown> | null): {
|
|
74
|
+
text: string;
|
|
75
|
+
quote: string;
|
|
76
|
+
}[];
|
|
77
|
+
//# sourceMappingURL=sleep-verdicts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sleep-verdicts.d.ts","sourceRoot":"","sources":["../../src/memory/sleep-verdicts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAmBxF,kEAAkE;AAClE,eAAO,MAAM,oBAAoB,MAAM,CAAC;AAsBxC,mDAAmD;AACnD,eAAO,MAAM,eAAe,IAAI,CAAC;AAKjC,sCAAsC;AACtC,wBAAgB,WAAW,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAEzD;AAED,8EAA8E;AAC9E,wBAAgB,SAAS,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAE1E;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAKlE;AAED,6DAA6D;AAC7D,wBAAgB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