@tomsun28/pizza 0.1.0 → 0.1.1
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 +20 -143
- package/README.zh-CN.md +36 -0
- package/dist/bun/cli.d.ts +2 -0
- package/dist/bun/cli.js +6 -0
- package/dist/bun/register-bedrock.d.ts +1 -0
- package/dist/bun/register-bedrock.js +3 -0
- package/dist/cli/args.d.ts +48 -0
- package/dist/cli/args.js +330 -0
- package/dist/cli/config-selector.d.ts +13 -0
- package/dist/cli/config-selector.js +30 -0
- package/dist/cli/file-processor.d.ts +14 -0
- package/dist/cli/file-processor.js +82 -0
- package/dist/cli/initial-message.d.ts +17 -0
- package/dist/cli/initial-message.js +21 -0
- package/dist/cli/list-models.d.ts +8 -0
- package/dist/cli/list-models.js +96 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +68 -0
- package/dist/config.d.ts +79 -0
- package/dist/config.js +223 -0
- package/dist/core/agent/index.d.ts +6 -0
- package/dist/core/agent/index.js +6 -0
- package/dist/core/agent/types.d.ts +202 -0
- package/dist/core/agent/types.js +51 -0
- package/dist/core/auth-storage.d.ts +135 -0
- package/dist/core/auth-storage.js +417 -0
- package/dist/core/bash-executor.d.ts +31 -0
- package/dist/core/bash-executor.js +107 -0
- package/dist/core/compaction/branch-summarization.d.ts +87 -0
- package/dist/core/compaction/branch-summarization.js +242 -0
- package/dist/core/compaction/compaction-engine.d.ts +40 -0
- package/dist/core/compaction/compaction-engine.js +292 -0
- package/dist/core/compaction/compaction.d.ts +106 -0
- package/dist/core/compaction/compaction.js +295 -0
- package/dist/core/compaction/index.d.ts +7 -0
- package/dist/core/compaction/index.js +7 -0
- package/dist/core/compaction/utils.d.ts +37 -0
- package/dist/core/compaction/utils.js +152 -0
- package/dist/core/defaults.d.ts +2 -0
- package/dist/core/defaults.js +1 -0
- package/dist/core/diagnostics.d.ts +14 -0
- package/dist/core/diagnostics.js +1 -0
- package/dist/core/event-bus.d.ts +8 -0
- package/dist/core/event-bus.js +24 -0
- package/dist/core/event-store/events.d.ts +465 -0
- package/dist/core/event-store/events.js +6 -0
- package/dist/core/event-store/index.d.ts +10 -0
- package/dist/core/event-store/index.js +10 -0
- package/dist/core/event-store/sqlite-store.d.ts +27 -0
- package/dist/core/event-store/sqlite-store.js +275 -0
- package/dist/core/event-store/store.d.ts +91 -0
- package/dist/core/event-store/store.js +7 -0
- package/dist/core/event-store/thread-scoped-store.d.ts +29 -0
- package/dist/core/event-store/thread-scoped-store.js +50 -0
- package/dist/core/event-store/types.d.ts +70 -0
- package/dist/core/event-store/types.js +7 -0
- package/dist/core/event-store/workspace.d.ts +37 -0
- package/dist/core/event-store/workspace.js +71 -0
- package/dist/core/exec.d.ts +28 -0
- package/dist/core/exec.js +74 -0
- package/dist/core/export-html/ansi-to-html.d.ts +21 -0
- package/dist/core/export-html/ansi-to-html.js +248 -0
- package/dist/core/export-html/index.d.ts +29 -0
- package/dist/core/export-html/index.js +186 -0
- package/dist/core/export-html/template.css +1017 -0
- package/dist/core/export-html/template.html +55 -0
- package/dist/core/export-html/template.js +1742 -0
- package/dist/core/export-html/tool-renderer.d.ts +39 -0
- package/dist/core/export-html/tool-renderer.js +94 -0
- package/dist/core/export-html/vendor/highlight.min.js +1213 -0
- package/dist/core/export-html/vendor/marked.min.js +6 -0
- package/dist/core/extensions/index.d.ts +12 -0
- package/dist/core/extensions/index.js +9 -0
- package/dist/core/extensions/loader.d.ts +24 -0
- package/dist/core/extensions/loader.js +492 -0
- package/dist/core/extensions/runner.d.ts +167 -0
- package/dist/core/extensions/runner.js +898 -0
- package/dist/core/extensions/session-context.d.ts +67 -0
- package/dist/core/extensions/session-context.js +272 -0
- package/dist/core/extensions/types.d.ts +1147 -0
- package/dist/core/extensions/types.js +44 -0
- package/dist/core/extensions/wrapper.d.ts +19 -0
- package/dist/core/extensions/wrapper.js +21 -0
- package/dist/core/footer-data-provider.d.ts +47 -0
- package/dist/core/footer-data-provider.js +321 -0
- package/dist/core/goal/index.d.ts +3 -0
- package/dist/core/goal/index.js +1 -0
- package/dist/core/goal/scheduler.d.ts +83 -0
- package/dist/core/goal/scheduler.js +154 -0
- package/dist/core/goal/types.d.ts +182 -0
- package/dist/core/goal/types.js +11 -0
- package/dist/core/index.d.ts +8 -0
- package/dist/core/index.js +8 -0
- package/dist/core/intent/classifier.d.ts +53 -0
- package/dist/core/intent/classifier.js +353 -0
- package/dist/core/intent/index.d.ts +8 -0
- package/dist/core/intent/index.js +8 -0
- package/dist/core/intent/tool-adapter.d.ts +31 -0
- package/dist/core/intent/tool-adapter.js +168 -0
- package/dist/core/intent/types.d.ts +71 -0
- package/dist/core/intent/types.js +6 -0
- package/dist/core/keybindings.d.ts +297 -0
- package/dist/core/keybindings.js +250 -0
- package/dist/core/messages.d.ts +30 -0
- package/dist/core/messages.js +134 -0
- package/dist/core/model-registry.d.ts +131 -0
- package/dist/core/model-registry.js +634 -0
- package/dist/core/model-resolver.d.ts +109 -0
- package/dist/core/model-resolver.js +486 -0
- package/dist/core/output-guard.d.ts +5 -0
- package/dist/core/output-guard.js +58 -0
- package/dist/core/package-manager.d.ts +196 -0
- package/dist/core/package-manager.js +1873 -0
- package/dist/core/projection/boundary-inferrer.d.ts +58 -0
- package/dist/core/projection/boundary-inferrer.js +122 -0
- package/dist/core/projection/event-to-message.d.ts +35 -0
- package/dist/core/projection/event-to-message.js +253 -0
- package/dist/core/projection/goal-projection.d.ts +67 -0
- package/dist/core/projection/goal-projection.js +339 -0
- package/dist/core/projection/index.d.ts +13 -0
- package/dist/core/projection/index.js +13 -0
- package/dist/core/projection/session-manager.d.ts +100 -0
- package/dist/core/projection/session-manager.js +331 -0
- package/dist/core/projection/session-projection.d.ts +58 -0
- package/dist/core/projection/session-projection.js +257 -0
- package/dist/core/projection/task-history.d.ts +13 -0
- package/dist/core/projection/task-history.js +61 -0
- package/dist/core/projection/timeline-projection.d.ts +82 -0
- package/dist/core/projection/timeline-projection.js +276 -0
- package/dist/core/projection/types.d.ts +69 -0
- package/dist/core/projection/types.js +6 -0
- package/dist/core/prompt-templates.d.ts +51 -0
- package/dist/core/prompt-templates.js +249 -0
- package/dist/core/resolve-config-value.d.ts +22 -0
- package/dist/core/resolve-config-value.js +125 -0
- package/dist/core/resource-loader.d.ts +193 -0
- package/dist/core/resource-loader.js +685 -0
- package/dist/core/runtime/ai-client.d.ts +12 -0
- package/dist/core/runtime/ai-client.js +153 -0
- package/dist/core/runtime/checkpoint.d.ts +12 -0
- package/dist/core/runtime/checkpoint.js +78 -0
- package/dist/core/runtime/index.d.ts +12 -0
- package/dist/core/runtime/index.js +12 -0
- package/dist/core/runtime/llm-types.d.ts +99 -0
- package/dist/core/runtime/llm-types.js +6 -0
- package/dist/core/runtime/local-runtime.d.ts +23 -0
- package/dist/core/runtime/local-runtime.js +59 -0
- package/dist/core/runtime/policies.d.ts +72 -0
- package/dist/core/runtime/policies.js +37 -0
- package/dist/core/runtime/reactor.d.ts +213 -0
- package/dist/core/runtime/reactor.js +992 -0
- package/dist/core/runtime/runtime.d.ts +191 -0
- package/dist/core/runtime/runtime.js +449 -0
- package/dist/core/runtime/types.d.ts +42 -0
- package/dist/core/runtime/types.js +1 -0
- package/dist/core/sdk.d.ts +12 -0
- package/dist/core/sdk.js +10 -0
- package/dist/core/session-context-builder.d.ts +9 -0
- package/dist/core/session-context-builder.js +87 -0
- package/dist/core/session-cwd.d.ts +18 -0
- package/dist/core/session-cwd.js +36 -0
- package/dist/core/session-facade-factory.d.ts +79 -0
- package/dist/core/session-facade-factory.js +460 -0
- package/dist/core/session-facade.d.ts +57 -0
- package/dist/core/session-facade.js +91 -0
- package/dist/core/session-listing.d.ts +30 -0
- package/dist/core/session-listing.js +168 -0
- package/dist/core/session-reader.d.ts +19 -0
- package/dist/core/session-reader.js +101 -0
- package/dist/core/session-ref.d.ts +7 -0
- package/dist/core/session-ref.js +25 -0
- package/dist/core/session-services.d.ts +51 -0
- package/dist/core/session-services.js +90 -0
- package/dist/core/session-stats.d.ts +43 -0
- package/dist/core/session-stats.js +41 -0
- package/dist/core/settings-manager.d.ts +236 -0
- package/dist/core/settings-manager.js +706 -0
- package/dist/core/skill-block-parser.d.ts +12 -0
- package/dist/core/skill-block-parser.js +15 -0
- package/dist/core/skills.d.ts +59 -0
- package/dist/core/skills.js +408 -0
- package/dist/core/slash-commands.d.ts +13 -0
- package/dist/core/slash-commands.js +17 -0
- package/dist/core/source-info.d.ts +17 -0
- package/dist/core/source-info.js +18 -0
- package/dist/core/system-prompt.d.ts +27 -0
- package/dist/core/system-prompt.js +179 -0
- package/dist/core/timings.d.ts +7 -0
- package/dist/core/timings.js +30 -0
- package/dist/core/tools/bash.d.ts +95 -0
- package/dist/core/tools/bash.js +513 -0
- package/dist/core/tools/builtin-commands.d.ts +75 -0
- package/dist/core/tools/builtin-commands.js +503 -0
- package/dist/core/tools/compat-commands.d.ts +12 -0
- package/dist/core/tools/compat-commands.js +1280 -0
- package/dist/core/tools/edit-diff.d.ts +59 -0
- package/dist/core/tools/edit-diff.js +263 -0
- package/dist/core/tools/edit.d.ts +49 -0
- package/dist/core/tools/edit.js +340 -0
- package/dist/core/tools/file-mutation-queue.d.ts +5 -0
- package/dist/core/tools/file-mutation-queue.js +36 -0
- package/dist/core/tools/find.d.ts +34 -0
- package/dist/core/tools/find.js +459 -0
- package/dist/core/tools/grep.d.ts +36 -0
- package/dist/core/tools/grep.js +422 -0
- package/dist/core/tools/index.d.ts +70 -0
- package/dist/core/tools/index.js +129 -0
- package/dist/core/tools/line-anchors.d.ts +33 -0
- package/dist/core/tools/line-anchors.js +151 -0
- package/dist/core/tools/ls.d.ts +36 -0
- package/dist/core/tools/ls.js +268 -0
- package/dist/core/tools/path-utils.d.ts +7 -0
- package/dist/core/tools/path-utils.js +80 -0
- package/dist/core/tools/read.d.ts +35 -0
- package/dist/core/tools/read.js +244 -0
- package/dist/core/tools/render-utils.d.ts +20 -0
- package/dist/core/tools/render-utils.js +48 -0
- package/dist/core/tools/session-split.d.ts +9 -0
- package/dist/core/tools/session-split.js +77 -0
- package/dist/core/tools/tool-definition-wrapper.d.ts +13 -0
- package/dist/core/tools/tool-definition-wrapper.js +32 -0
- package/dist/core/tools/truncate.d.ts +69 -0
- package/dist/core/tools/truncate.js +204 -0
- package/dist/core/tools/write.d.ts +25 -0
- package/dist/core/tools/write.js +211 -0
- package/dist/core/types/session-types.d.ts +123 -0
- package/dist/core/types/session-types.js +8 -0
- package/dist/index.d.ts +27 -0
- package/dist/index.js +38 -0
- package/dist/main.d.ts +11 -2
- package/dist/main.js +577 -149
- package/dist/modes/event-mapper.d.ts +115 -0
- package/dist/modes/event-mapper.js +200 -0
- package/dist/modes/gui/server.d.ts +14 -0
- package/dist/modes/gui/server.js +1032 -0
- package/dist/modes/index.d.ts +10 -0
- package/dist/modes/index.js +9 -0
- package/dist/modes/interactive/assets/clankolas.png +0 -0
- package/dist/modes/interactive/components/armin.d.ts +33 -0
- package/dist/modes/interactive/components/armin.js +328 -0
- package/dist/modes/interactive/components/assistant-message.d.ts +19 -0
- package/dist/modes/interactive/components/assistant-message.js +115 -0
- package/dist/modes/interactive/components/bash-execution.d.ts +33 -0
- package/dist/modes/interactive/components/bash-execution.js +169 -0
- package/dist/modes/interactive/components/bordered-loader.d.ts +15 -0
- package/dist/modes/interactive/components/bordered-loader.js +50 -0
- package/dist/modes/interactive/components/branch-summary-message.d.ts +15 -0
- package/dist/modes/interactive/components/branch-summary-message.js +41 -0
- package/dist/modes/interactive/components/brand-header.d.ts +33 -0
- package/dist/modes/interactive/components/brand-header.js +235 -0
- package/dist/modes/interactive/components/compaction-summary-message.d.ts +15 -0
- package/dist/modes/interactive/components/compaction-summary-message.js +42 -0
- package/dist/modes/interactive/components/config-selector.d.ts +70 -0
- package/dist/modes/interactive/components/config-selector.js +469 -0
- package/dist/modes/interactive/components/countdown-timer.d.ts +13 -0
- package/dist/modes/interactive/components/countdown-timer.js +27 -0
- package/dist/modes/interactive/components/custom-editor.d.ts +27 -0
- package/dist/modes/interactive/components/custom-editor.js +94 -0
- package/dist/modes/interactive/components/custom-message.d.ts +19 -0
- package/dist/modes/interactive/components/custom-message.js +73 -0
- package/dist/modes/interactive/components/daxnuts.d.ts +22 -0
- package/dist/modes/interactive/components/daxnuts.js +137 -0
- package/dist/modes/interactive/components/diff.d.ts +11 -0
- package/dist/modes/interactive/components/diff.js +132 -0
- package/dist/modes/interactive/components/dynamic-border.d.ts +14 -0
- package/dist/modes/interactive/components/dynamic-border.js +19 -0
- package/dist/modes/interactive/components/earendil-announcement.d.ts +4 -0
- package/dist/modes/interactive/components/earendil-announcement.js +39 -0
- package/dist/modes/interactive/components/extension-editor.d.ts +19 -0
- package/dist/modes/interactive/components/extension-editor.js +105 -0
- package/dist/modes/interactive/components/extension-input.d.ts +22 -0
- package/dist/modes/interactive/components/extension-input.js +54 -0
- package/dist/modes/interactive/components/extension-selector.d.ts +23 -0
- package/dist/modes/interactive/components/extension-selector.js +70 -0
- package/dist/modes/interactive/components/footer.d.ts +55 -0
- package/dist/modes/interactive/components/footer.js +207 -0
- package/dist/modes/interactive/components/index.d.ts +31 -0
- package/dist/modes/interactive/components/index.js +32 -0
- package/dist/modes/interactive/components/keybinding-hints.d.ts +7 -0
- package/dist/modes/interactive/components/keybinding-hints.js +21 -0
- package/dist/modes/interactive/components/login-dialog.d.ts +41 -0
- package/dist/modes/interactive/components/login-dialog.js +138 -0
- package/dist/modes/interactive/components/model-selector.d.ts +32 -0
- package/dist/modes/interactive/components/model-selector.js +209 -0
- package/dist/modes/interactive/components/oauth-selector.d.ts +18 -0
- package/dist/modes/interactive/components/oauth-selector.js +91 -0
- package/dist/modes/interactive/components/settings-selector.d.ts +57 -0
- package/dist/modes/interactive/components/settings-selector.js +299 -0
- package/dist/modes/interactive/components/show-images-selector.d.ts +9 -0
- package/dist/modes/interactive/components/show-images-selector.js +37 -0
- package/dist/modes/interactive/components/skill-invocation-message.d.ts +16 -0
- package/dist/modes/interactive/components/skill-invocation-message.js +44 -0
- package/dist/modes/interactive/components/theme-selector.d.ts +10 -0
- package/dist/modes/interactive/components/theme-selector.js +47 -0
- package/dist/modes/interactive/components/thinking-selector.d.ts +10 -0
- package/dist/modes/interactive/components/thinking-selector.js +50 -0
- package/dist/modes/interactive/components/timeline-view.d.ts +31 -0
- package/dist/modes/interactive/components/timeline-view.js +81 -0
- package/dist/modes/interactive/components/tool-execution.d.ts +64 -0
- package/dist/modes/interactive/components/tool-execution.js +305 -0
- package/dist/modes/interactive/components/tree-selector.d.ts +88 -0
- package/dist/modes/interactive/components/tree-selector.js +1072 -0
- package/dist/modes/interactive/components/user-message-selector.d.ts +29 -0
- package/dist/modes/interactive/components/user-message-selector.js +110 -0
- package/dist/modes/interactive/components/user-message.d.ts +9 -0
- package/dist/modes/interactive/components/user-message.js +27 -0
- package/dist/modes/interactive/components/visual-truncate.d.ts +23 -0
- package/dist/modes/interactive/components/visual-truncate.js +32 -0
- package/dist/modes/interactive/interactive-mode.d.ts +394 -0
- package/dist/modes/interactive/interactive-mode.js +4116 -0
- package/dist/modes/interactive/theme/dark.json +85 -0
- package/dist/modes/interactive/theme/light.json +84 -0
- package/dist/modes/interactive/theme/theme-schema.json +335 -0
- package/dist/modes/interactive/theme/theme.d.ts +80 -0
- package/dist/modes/interactive/theme/theme.js +973 -0
- package/dist/modes/print-mode.d.ts +27 -0
- package/dist/modes/print-mode.js +102 -0
- package/dist/modes/rpc/jsonl.d.ts +16 -0
- package/dist/modes/rpc/jsonl.js +48 -0
- package/dist/modes/rpc/rpc-client.d.ts +219 -0
- package/dist/modes/rpc/rpc-client.js +405 -0
- package/dist/modes/rpc/rpc-mode.d.ts +19 -0
- package/dist/modes/rpc/rpc-mode.js +381 -0
- package/dist/modes/rpc/rpc-types.d.ts +406 -0
- package/dist/modes/rpc/rpc-types.js +7 -0
- package/dist/package-manager-cli.d.ts +3 -0
- package/dist/package-manager-cli.js +233 -0
- package/dist/utils/changelog.d.ts +20 -0
- package/dist/utils/changelog.js +86 -0
- package/dist/utils/child-process.d.ts +10 -0
- package/dist/utils/child-process.js +77 -0
- package/dist/utils/clipboard-image.d.ts +10 -0
- package/dist/utils/clipboard-image.js +244 -0
- package/dist/utils/clipboard-native.d.ts +7 -0
- package/dist/utils/clipboard-native.js +13 -0
- package/dist/utils/clipboard.d.ts +1 -0
- package/dist/utils/clipboard.js +77 -0
- package/dist/utils/exif-orientation.d.ts +4 -0
- package/dist/utils/exif-orientation.js +157 -0
- package/dist/utils/frontmatter.d.ts +7 -0
- package/dist/utils/frontmatter.js +25 -0
- package/dist/utils/git.d.ts +25 -0
- package/dist/utils/git.js +162 -0
- package/dist/utils/image-convert.d.ts +8 -0
- package/dist/utils/image-convert.js +38 -0
- package/dist/utils/image-resize.d.ts +35 -0
- package/dist/utils/image-resize.js +136 -0
- package/dist/utils/mime.d.ts +1 -0
- package/dist/utils/mime.js +25 -0
- package/dist/utils/path-shims.d.ts +1 -0
- package/dist/utils/path-shims.js +90 -0
- package/dist/utils/paths.d.ts +6 -0
- package/dist/utils/paths.js +18 -0
- package/dist/utils/photon.d.ts +20 -0
- package/dist/utils/photon.js +120 -0
- package/dist/utils/shell.d.ts +29 -0
- package/dist/utils/shell.js +189 -0
- package/dist/utils/sleep.d.ts +4 -0
- package/dist/utils/sleep.js +16 -0
- package/dist/utils/tools-manager.d.ts +3 -0
- package/dist/utils/tools-manager.js +101 -0
- package/dist/vendor/bin/darwin-arm64/fd +0 -0
- package/dist/vendor/bin/darwin-arm64/rg +0 -0
- package/dist/vendor/bin/darwin-x64/fd +0 -0
- package/dist/vendor/bin/darwin-x64/rg +0 -0
- package/dist/vendor/bin/linux-arm64/fd +0 -0
- package/dist/vendor/bin/linux-arm64/rg +0 -0
- package/dist/vendor/bin/linux-x64/fd +0 -0
- package/dist/vendor/bin/linux-x64/rg +0 -0
- package/dist/vendor/bin/win32-arm64/fd.exe +0 -0
- package/dist/vendor/bin/win32-arm64/rg.exe +0 -0
- package/dist/vendor/bin/win32-x64/fd.exe +0 -0
- package/dist/vendor/bin/win32-x64/rg.exe +0 -0
- package/package.json +90 -26
- package/dist/extension/core.d.ts +0 -69
- package/dist/extension/core.js +0 -270
- package/dist/extension/core.js.map +0 -1
- package/dist/extension/index.d.ts +0 -14
- package/dist/extension/index.js +0 -374
- package/dist/extension/index.js.map +0 -1
- package/dist/main.js.map +0 -1
- package/themes/pizza.json +0 -87
|
@@ -0,0 +1,465 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Concrete Event Payload Types
|
|
3
|
+
*
|
|
4
|
+
* Typed payloads for each EventType defined in types.ts.
|
|
5
|
+
*/
|
|
6
|
+
import type { EventBase } from "./types.js";
|
|
7
|
+
/** User sends a message */
|
|
8
|
+
export interface UserMessageEvent extends EventBase {
|
|
9
|
+
type: "USER_MESSAGE";
|
|
10
|
+
payload: {
|
|
11
|
+
content: string | import("./types.js").ContentBlock[];
|
|
12
|
+
images?: import("./types.js").ImageContent[];
|
|
13
|
+
/** Raw input before expansion */
|
|
14
|
+
raw_input?: string;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
/** User approves a pending intent */
|
|
18
|
+
export interface UserApprovalEvent extends EventBase {
|
|
19
|
+
type: "USER_APPROVAL";
|
|
20
|
+
payload: {
|
|
21
|
+
/** Approved intent event_id */
|
|
22
|
+
intent_event_id: string;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
/** User rejects a pending intent */
|
|
26
|
+
export interface UserRejectionEvent extends EventBase {
|
|
27
|
+
type: "USER_REJECTION";
|
|
28
|
+
payload: {
|
|
29
|
+
/** Rejected intent event_id */
|
|
30
|
+
intent_event_id: string;
|
|
31
|
+
reason?: string;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
/** User interrupts current execution */
|
|
35
|
+
export interface UserInterruptEvent extends EventBase {
|
|
36
|
+
type: "USER_INTERRUPT";
|
|
37
|
+
payload: {
|
|
38
|
+
content?: string | import("./types.js").ContentBlock[];
|
|
39
|
+
images?: import("./types.js").ImageContent[];
|
|
40
|
+
reason?: string;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
/** User queues a follow-up message: delivered after the current turn completes (no interrupt). */
|
|
44
|
+
export interface UserFollowupQueuedEvent extends EventBase {
|
|
45
|
+
type: "USER_FOLLOWUP_QUEUED";
|
|
46
|
+
payload: {
|
|
47
|
+
content: string | import("./types.js").ContentBlock[];
|
|
48
|
+
images?: import("./types.js").ImageContent[];
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
/** User changes configuration */
|
|
52
|
+
export interface UserConfigChangeEvent extends EventBase {
|
|
53
|
+
type: "USER_CONFIG_CHANGE";
|
|
54
|
+
payload: {
|
|
55
|
+
key: string;
|
|
56
|
+
old_value: unknown;
|
|
57
|
+
new_value: unknown;
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
/** LLM thinking starts */
|
|
61
|
+
export interface AgentThinkingStartEvent extends EventBase {
|
|
62
|
+
type: "AGENT_THINKING_START";
|
|
63
|
+
payload: {
|
|
64
|
+
model?: string;
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
/** LLM thinking ends */
|
|
68
|
+
export interface AgentThinkingEndEvent extends EventBase {
|
|
69
|
+
type: "AGENT_THINKING_END";
|
|
70
|
+
payload: {
|
|
71
|
+
duration_ms?: number;
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
/** LLM message starts streaming */
|
|
75
|
+
export interface AgentMessageStartEvent extends EventBase {
|
|
76
|
+
type: "AGENT_MESSAGE_START";
|
|
77
|
+
payload: {
|
|
78
|
+
model: {
|
|
79
|
+
provider: string;
|
|
80
|
+
model_id: string;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
/** LLM message chunk (streaming) */
|
|
85
|
+
export interface AgentMessageChunkEvent extends EventBase {
|
|
86
|
+
type: "AGENT_MESSAGE_CHUNK";
|
|
87
|
+
payload: {
|
|
88
|
+
/**
|
|
89
|
+
* A single streaming chunk. Shape matches `LLMChunk` from `runtime/llm-types.ts`.
|
|
90
|
+
* Kept as `unknown` here to avoid a cross-package type dependency; consumers
|
|
91
|
+
* should narrow on `chunk.kind`.
|
|
92
|
+
*/
|
|
93
|
+
chunk: unknown;
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
/** LLM produces assistant message (final, after streaming completes) */
|
|
97
|
+
export interface AgentMessageEndEvent extends EventBase {
|
|
98
|
+
type: "AGENT_MESSAGE_END";
|
|
99
|
+
payload: {
|
|
100
|
+
content: import("./types.js").ContentBlock[];
|
|
101
|
+
model: {
|
|
102
|
+
provider: string;
|
|
103
|
+
model_id: string;
|
|
104
|
+
};
|
|
105
|
+
usage: import("./types.js").TokenUsage;
|
|
106
|
+
stop_reason: "stop" | "tool_use" | "length" | "error" | "aborted";
|
|
107
|
+
error_message?: string;
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
/** Runtime-level agent error. Distinct from RUNTIME_ERROR, which is reserved for system/reactor failures. */
|
|
111
|
+
export interface AgentErrorEvent extends EventBase {
|
|
112
|
+
type: "AGENT_ERROR";
|
|
113
|
+
payload: {
|
|
114
|
+
error: string;
|
|
115
|
+
stack?: string;
|
|
116
|
+
retryable?: boolean;
|
|
117
|
+
/** Event that caused the agent error */
|
|
118
|
+
causing_event_id?: string;
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
/** Agent turn starts */
|
|
122
|
+
export interface AgentTurnStartEvent extends EventBase {
|
|
123
|
+
type: "AGENT_TURN_START";
|
|
124
|
+
payload: {
|
|
125
|
+
message_count: number;
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
/** Agent turn ends */
|
|
129
|
+
export interface AgentTurnEndEvent extends EventBase {
|
|
130
|
+
type: "AGENT_TURN_END";
|
|
131
|
+
payload: {
|
|
132
|
+
tool_calls_count: number;
|
|
133
|
+
duration_ms?: number;
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
/** LLM proposes a tool call (intent, not yet executed) */
|
|
137
|
+
export interface IntentToolCallEvent extends EventBase {
|
|
138
|
+
type: "INTENT_TOOL_CALL";
|
|
139
|
+
payload: {
|
|
140
|
+
tool_call_id: string;
|
|
141
|
+
tool_name: string;
|
|
142
|
+
arguments: Record<string, unknown>;
|
|
143
|
+
/** Whether user approval is required */
|
|
144
|
+
requires_approval: boolean;
|
|
145
|
+
/** Classification result */
|
|
146
|
+
classification?: import("../intent/types.js").IntentClassification;
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
/** LLM proposes a file edit (intent, not yet executed) */
|
|
150
|
+
export interface IntentFileEditEvent extends EventBase {
|
|
151
|
+
type: "INTENT_FILE_EDIT";
|
|
152
|
+
payload: {
|
|
153
|
+
path: string;
|
|
154
|
+
old_text: string;
|
|
155
|
+
new_text: string;
|
|
156
|
+
requires_approval: boolean;
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
/** LLM proposes a command execution (intent, not yet executed) */
|
|
160
|
+
export interface IntentCommandExecEvent extends EventBase {
|
|
161
|
+
type: "INTENT_COMMAND_EXEC";
|
|
162
|
+
payload: {
|
|
163
|
+
command: string;
|
|
164
|
+
requires_approval: boolean;
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
/** Runtime starts tool execution */
|
|
168
|
+
export interface ToolExecutionStartEvent extends EventBase {
|
|
169
|
+
type: "TOOL_EXECUTION_START";
|
|
170
|
+
payload: {
|
|
171
|
+
tool_call_id: string;
|
|
172
|
+
tool_name: string;
|
|
173
|
+
arguments: Record<string, unknown>;
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
/** Runtime tool execution update */
|
|
177
|
+
export interface ToolExecutionUpdateEvent extends EventBase {
|
|
178
|
+
type: "TOOL_EXECUTION_UPDATE";
|
|
179
|
+
payload: {
|
|
180
|
+
tool_call_id: string;
|
|
181
|
+
update: string;
|
|
182
|
+
progress?: number;
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
/** Runtime completes tool execution */
|
|
186
|
+
export interface ToolExecutionEndEvent extends EventBase {
|
|
187
|
+
type: "TOOL_EXECUTION_END";
|
|
188
|
+
payload: {
|
|
189
|
+
tool_call_id: string;
|
|
190
|
+
tool_name: string;
|
|
191
|
+
result: import("./types.js").ContentBlock[];
|
|
192
|
+
/** Optional structured payload for logs/UI. */
|
|
193
|
+
details?: unknown;
|
|
194
|
+
is_error: boolean;
|
|
195
|
+
duration_ms: number;
|
|
196
|
+
/** File mutations produced by this execution */
|
|
197
|
+
file_mutations?: import("./types.js").FileMutation[];
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
/** File mutation applied */
|
|
201
|
+
export interface FileMutationAppliedEvent extends EventBase {
|
|
202
|
+
type: "FILE_MUTATION_APPLIED";
|
|
203
|
+
payload: {
|
|
204
|
+
/** Current flat payload shape emitted by the reactor. */
|
|
205
|
+
path?: string;
|
|
206
|
+
operation?: import("./types.js").FileMutation["operation"];
|
|
207
|
+
diff?: string;
|
|
208
|
+
/** Legacy nested payload shape accepted by projections. */
|
|
209
|
+
mutation?: import("./types.js").FileMutation;
|
|
210
|
+
tool_call_id?: string;
|
|
211
|
+
tool_name?: string;
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
/** Command executed */
|
|
215
|
+
export interface CommandExecutedEvent extends EventBase {
|
|
216
|
+
type: "COMMAND_EXECUTED";
|
|
217
|
+
payload: {
|
|
218
|
+
command: string;
|
|
219
|
+
exit_code: number;
|
|
220
|
+
output: string;
|
|
221
|
+
duration_ms: number;
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* Bash execution event - records a bash command run by the runtime/UI
|
|
226
|
+
* (not a tool call from the LLM). Used for `!cmd` user shell-escapes
|
|
227
|
+
* and other side-channel runs that still need to appear in the timeline.
|
|
228
|
+
*/
|
|
229
|
+
export interface BashExecutionEvent extends EventBase {
|
|
230
|
+
type: "BASH_EXECUTION";
|
|
231
|
+
payload: {
|
|
232
|
+
command: string;
|
|
233
|
+
output: string;
|
|
234
|
+
stdout?: string;
|
|
235
|
+
stderr?: string;
|
|
236
|
+
exit_code?: number;
|
|
237
|
+
duration_ms?: number;
|
|
238
|
+
cwd?: string;
|
|
239
|
+
cancelled?: boolean;
|
|
240
|
+
truncated?: boolean;
|
|
241
|
+
full_output_path?: string;
|
|
242
|
+
exclude_from_context?: boolean;
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* Custom message event - extension-provided opaque payload that should
|
|
247
|
+
* appear as a `CustomMessage` in the session timeline.
|
|
248
|
+
*/
|
|
249
|
+
export interface CustomMessageEvent extends EventBase {
|
|
250
|
+
type: "CUSTOM_MESSAGE";
|
|
251
|
+
payload: {
|
|
252
|
+
extension_id: string;
|
|
253
|
+
kind: string;
|
|
254
|
+
data: unknown;
|
|
255
|
+
display?: boolean | string;
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* Branch summary event - injected when switching branches; records
|
|
260
|
+
* a textual summary of the branch that was left behind so the LLM
|
|
261
|
+
* can stay oriented.
|
|
262
|
+
*/
|
|
263
|
+
export interface BranchSummaryEvent extends EventBase {
|
|
264
|
+
type: "BRANCH_SUMMARY";
|
|
265
|
+
payload: {
|
|
266
|
+
summary: string;
|
|
267
|
+
from_branch?: string;
|
|
268
|
+
from_id?: string;
|
|
269
|
+
to_branch?: string;
|
|
270
|
+
};
|
|
271
|
+
}
|
|
272
|
+
/** Session created */
|
|
273
|
+
export interface SessionCreatedEvent extends EventBase {
|
|
274
|
+
type: "SESSION_CREATED";
|
|
275
|
+
payload: {
|
|
276
|
+
session_id: string;
|
|
277
|
+
name?: string;
|
|
278
|
+
created_by: "user_explicit" | "auto_inferred" | "fork";
|
|
279
|
+
};
|
|
280
|
+
}
|
|
281
|
+
/** Session boundary inferred */
|
|
282
|
+
export interface SessionBoundaryInferredEvent extends EventBase {
|
|
283
|
+
type: "SESSION_BOUNDARY_INFERRED";
|
|
284
|
+
payload: {
|
|
285
|
+
reason: "intent_shift" | "file_drift" | "time_gap" | "user_explicit";
|
|
286
|
+
new_session_id: string;
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
/** Session forked */
|
|
290
|
+
export interface SessionForkedEvent extends EventBase {
|
|
291
|
+
type: "SESSION_FORKED";
|
|
292
|
+
payload: {
|
|
293
|
+
new_session_id: string;
|
|
294
|
+
parent_session_id?: string;
|
|
295
|
+
fork_at_event_id: string;
|
|
296
|
+
};
|
|
297
|
+
}
|
|
298
|
+
/** Legacy-compatible session tree entry stored in the event log. */
|
|
299
|
+
export interface SessionEntryAppendedEvent extends EventBase {
|
|
300
|
+
type: "SESSION_ENTRY_APPENDED";
|
|
301
|
+
payload: {
|
|
302
|
+
session_id: string;
|
|
303
|
+
entry: unknown;
|
|
304
|
+
leaf_id?: string | null;
|
|
305
|
+
};
|
|
306
|
+
}
|
|
307
|
+
/** Compaction starts */
|
|
308
|
+
export interface CompactionStartEvent extends EventBase {
|
|
309
|
+
type: "COMPACTION_START";
|
|
310
|
+
payload: {
|
|
311
|
+
token_count: number;
|
|
312
|
+
target_tokens?: number;
|
|
313
|
+
};
|
|
314
|
+
}
|
|
315
|
+
/** Compaction completed */
|
|
316
|
+
export interface CompactionEndEvent extends EventBase {
|
|
317
|
+
type: "COMPACTION_END";
|
|
318
|
+
payload: {
|
|
319
|
+
summary: string;
|
|
320
|
+
first_kept_event_id: string;
|
|
321
|
+
tokens_before: number;
|
|
322
|
+
tokens_after?: number;
|
|
323
|
+
/** Structured memory nodes extracted */
|
|
324
|
+
memory_nodes?: import("./types.js").MemoryNodeRef[];
|
|
325
|
+
};
|
|
326
|
+
}
|
|
327
|
+
/** Compaction was cancelled before producing a summary. */
|
|
328
|
+
export interface CompactionAbortedEvent extends EventBase {
|
|
329
|
+
type: "COMPACTION_ABORTED";
|
|
330
|
+
payload: {
|
|
331
|
+
reason?: "user_cancelled" | "runtime_shutdown" | "error" | string;
|
|
332
|
+
message?: string;
|
|
333
|
+
/** COMPACTION_START event_id when known */
|
|
334
|
+
started_event_id?: string;
|
|
335
|
+
token_count?: number;
|
|
336
|
+
};
|
|
337
|
+
}
|
|
338
|
+
/** Checkpoint created */
|
|
339
|
+
export interface CheckpointCreatedEvent extends EventBase {
|
|
340
|
+
type: "CHECKPOINT_CREATED";
|
|
341
|
+
payload: {
|
|
342
|
+
checkpoint_id: string;
|
|
343
|
+
event_count: number;
|
|
344
|
+
};
|
|
345
|
+
}
|
|
346
|
+
/** Model changed */
|
|
347
|
+
export interface ModelChangedEvent extends EventBase {
|
|
348
|
+
type: "MODEL_CHANGED";
|
|
349
|
+
payload: {
|
|
350
|
+
provider: string;
|
|
351
|
+
model_id: string;
|
|
352
|
+
previous_provider?: string;
|
|
353
|
+
previous_model_id?: string;
|
|
354
|
+
};
|
|
355
|
+
}
|
|
356
|
+
/** Thinking level changed */
|
|
357
|
+
export interface ThinkingLevelChangedEvent extends EventBase {
|
|
358
|
+
type: "THINKING_LEVEL_CHANGED";
|
|
359
|
+
payload: {
|
|
360
|
+
level: string;
|
|
361
|
+
previous_level?: string;
|
|
362
|
+
};
|
|
363
|
+
}
|
|
364
|
+
/** Runtime error */
|
|
365
|
+
export interface RuntimeErrorEvent extends EventBase {
|
|
366
|
+
type: "RUNTIME_ERROR";
|
|
367
|
+
payload: {
|
|
368
|
+
error: string;
|
|
369
|
+
stack?: string;
|
|
370
|
+
/** Event that caused the error */
|
|
371
|
+
causing_event_id?: string;
|
|
372
|
+
};
|
|
373
|
+
}
|
|
374
|
+
/**
|
|
375
|
+
* Reactor decided this turn requires a new LLM call.
|
|
376
|
+
*
|
|
377
|
+
* Emitted by:
|
|
378
|
+
* - reactor entry after USER_MESSAGE
|
|
379
|
+
* - tool-aggregation handler after all TOOL_EXECUTION_END for a turn arrive
|
|
380
|
+
* - retry handler when a scheduled retry fires
|
|
381
|
+
*/
|
|
382
|
+
export interface AgentTurnRequestedEvent extends EventBase {
|
|
383
|
+
type: "AGENT_TURN_REQUESTED";
|
|
384
|
+
payload: {
|
|
385
|
+
/** Why this turn was requested */
|
|
386
|
+
reason: "user_message" | "tool_results" | "retry" | "steer" | "follow_up";
|
|
387
|
+
/** Retry attempt counter (0 on first attempt) */
|
|
388
|
+
retry_attempt?: number;
|
|
389
|
+
};
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* A complete agent turn (one or more LLM calls + tools) has settled. Terminal
|
|
393
|
+
* for one user interaction unless a follow-up is queued.
|
|
394
|
+
*/
|
|
395
|
+
export interface AgentTurnCompletedEvent extends EventBase {
|
|
396
|
+
type: "AGENT_TURN_COMPLETED";
|
|
397
|
+
payload: {
|
|
398
|
+
reason: "stop" | "length" | "aborted" | "error";
|
|
399
|
+
error_message?: string;
|
|
400
|
+
};
|
|
401
|
+
}
|
|
402
|
+
/**
|
|
403
|
+
* Reactor wants the LLM client to make a call. Decoupled from AGENT_TURN_REQUESTED
|
|
404
|
+
* so context-building, system prompt assembly, and compaction can intercede.
|
|
405
|
+
*/
|
|
406
|
+
export interface LlmCallRequestedEvent extends EventBase {
|
|
407
|
+
type: "LLM_CALL_REQUESTED";
|
|
408
|
+
payload: {
|
|
409
|
+
message_count: number;
|
|
410
|
+
};
|
|
411
|
+
}
|
|
412
|
+
/** LLM call failed (network/provider/transient). Distinct from a stop_reason="error" assistant message. */
|
|
413
|
+
export interface LlmCallFailedEvent extends EventBase {
|
|
414
|
+
type: "LLM_CALL_FAILED";
|
|
415
|
+
payload: {
|
|
416
|
+
error: string;
|
|
417
|
+
retryable: boolean;
|
|
418
|
+
status_code?: number;
|
|
419
|
+
};
|
|
420
|
+
}
|
|
421
|
+
/**
|
|
422
|
+
* All tool executions for the originating assistant message have completed.
|
|
423
|
+
* Emitted by the tool-aggregation handler when the expected count matches
|
|
424
|
+
* received TOOL_EXECUTION_END events sharing the same caused_by.
|
|
425
|
+
*/
|
|
426
|
+
export interface ToolResultsAggregatedEvent extends EventBase {
|
|
427
|
+
type: "TOOL_RESULTS_AGGREGATED";
|
|
428
|
+
payload: {
|
|
429
|
+
/** event_id of the AGENT_MESSAGE_END that produced these tool calls */
|
|
430
|
+
assistant_message_event_id: string;
|
|
431
|
+
tool_call_count: number;
|
|
432
|
+
any_error: boolean;
|
|
433
|
+
};
|
|
434
|
+
}
|
|
435
|
+
/** A retry has been scheduled. The retry handler will emit AGENT_TURN_REQUESTED after delay_ms. */
|
|
436
|
+
export interface RetryScheduledEvent extends EventBase {
|
|
437
|
+
type: "RETRY_SCHEDULED";
|
|
438
|
+
payload: {
|
|
439
|
+
attempt: number;
|
|
440
|
+
max_attempts: number;
|
|
441
|
+
delay_ms: number;
|
|
442
|
+
error_message: string;
|
|
443
|
+
};
|
|
444
|
+
}
|
|
445
|
+
/** A scheduled or pending retry was cancelled. */
|
|
446
|
+
export interface RetryAbortedEvent extends EventBase {
|
|
447
|
+
type: "RETRY_ABORTED";
|
|
448
|
+
payload: {
|
|
449
|
+
attempt?: number;
|
|
450
|
+
reason?: "user_interrupt" | "non_retryable" | "runtime_shutdown" | string;
|
|
451
|
+
error_message?: string;
|
|
452
|
+
/** RETRY_SCHEDULED event_id when known */
|
|
453
|
+
scheduled_event_id?: string;
|
|
454
|
+
};
|
|
455
|
+
}
|
|
456
|
+
/** Compaction handler decided context is too large. Distinct from COMPACTION_START which records the actual run. */
|
|
457
|
+
export interface CompactionRequestedEvent extends EventBase {
|
|
458
|
+
type: "COMPACTION_REQUESTED";
|
|
459
|
+
payload: {
|
|
460
|
+
reason: "manual" | "threshold" | "overflow";
|
|
461
|
+
token_count: number;
|
|
462
|
+
};
|
|
463
|
+
}
|
|
464
|
+
/** All event types with their payloads */
|
|
465
|
+
export type TypedEvent = UserMessageEvent | UserApprovalEvent | UserRejectionEvent | UserInterruptEvent | UserFollowupQueuedEvent | UserConfigChangeEvent | AgentTurnRequestedEvent | AgentTurnCompletedEvent | LlmCallRequestedEvent | LlmCallFailedEvent | ToolResultsAggregatedEvent | RetryScheduledEvent | RetryAbortedEvent | CompactionRequestedEvent | AgentThinkingStartEvent | AgentThinkingEndEvent | AgentMessageStartEvent | AgentMessageChunkEvent | AgentMessageEndEvent | AgentErrorEvent | AgentTurnStartEvent | AgentTurnEndEvent | IntentToolCallEvent | IntentFileEditEvent | IntentCommandExecEvent | ToolExecutionStartEvent | ToolExecutionUpdateEvent | ToolExecutionEndEvent | FileMutationAppliedEvent | CommandExecutedEvent | BashExecutionEvent | CustomMessageEvent | BranchSummaryEvent | SessionCreatedEvent | SessionBoundaryInferredEvent | SessionForkedEvent | SessionEntryAppendedEvent | CompactionStartEvent | CompactionEndEvent | CompactionAbortedEvent | CheckpointCreatedEvent | ModelChangedEvent | ThinkingLevelChangedEvent | RuntimeErrorEvent;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { EventBase } from "./types.js";
|
|
2
|
+
import type { EventAppendInput, EventQuery, EventStore, SubscribeOptions } from "./store.js";
|
|
3
|
+
export declare class SqliteEventStore implements EventStore {
|
|
4
|
+
private runtimeId;
|
|
5
|
+
private db;
|
|
6
|
+
private subscribers;
|
|
7
|
+
private nextSubId;
|
|
8
|
+
readonly workspace_id: string;
|
|
9
|
+
constructor(workspaceId: string, dbPath: string, runtimeId?: string);
|
|
10
|
+
append(partial: EventAppendInput): EventBase;
|
|
11
|
+
appendBatch(partials: EventAppendInput[]): EventBase[];
|
|
12
|
+
query(filter: EventQuery): EventBase[];
|
|
13
|
+
get(event_id: string): EventBase | undefined;
|
|
14
|
+
latest(count: number): EventBase[];
|
|
15
|
+
getCausalChain(event_id: string): EventBase[];
|
|
16
|
+
subscribe(handler: (event: EventBase) => void, options?: SubscribeOptions): () => void;
|
|
17
|
+
get size(): number;
|
|
18
|
+
get head(): string | undefined;
|
|
19
|
+
get head_sequence(): number;
|
|
20
|
+
close(): void;
|
|
21
|
+
private _initSchema;
|
|
22
|
+
private _normalizeEvent;
|
|
23
|
+
private _insert;
|
|
24
|
+
private _getByIdempotencyKey;
|
|
25
|
+
private _notify;
|
|
26
|
+
}
|
|
27
|
+
export declare function createEventStore(cwd: string, agentDir?: string, runtimeId?: string): SqliteEventStore;
|