saeeol 1.1.1 → 1.2.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/package.json +14 -14
- package/script/build.ts +1 -1
- package/src/addons/addon-analytics.ts +1 -1
- package/src/cli/cmd/tui/routes/session/suggest.tsx +1 -1
- package/src/cli/logo.ts +1 -1
- package/src/cli/ui.ts +1 -1
- package/src/config/config-loader.ts +1 -1
- package/src/config/config-schema.ts +1 -1
- package/src/config/config.ts +1 -1
- package/src/config/markdown.ts +1 -1
- package/src/index.ts +2 -2
- package/src/lsp/lsp.ts +1 -1
- package/src/lsp/server-web.ts +1 -1
- package/src/mcp/oauth-callback.ts +1 -1
- package/src/{saeeol → overlay}/encoding.ts +1 -1
- package/src/{saeeol → overlay}/text-stream.ts +1 -1
- package/src/{saeeol → overlay}/tool/encoded-io.ts +1 -1
- package/src/patch/patch-apply.ts +1 -1
- package/src/patch/patch-parse.ts +1 -1
- package/src/session/compaction-helpers.ts +1 -169
- package/src/session/compaction.ts +1 -712
- package/src/session/core/compaction/compaction-helpers.ts +169 -0
- package/src/session/core/compaction/compaction.ts +712 -0
- package/src/session/core/compaction/overflow.ts +28 -0
- package/src/session/core/instruction.ts +234 -0
- package/src/session/core/llm.ts +504 -0
- package/src/session/core/network.ts +392 -0
- package/src/session/core/processor.ts +731 -0
- package/src/session/core/projectors.ts +139 -0
- package/src/session/core/resolve-tools.ts +241 -0
- package/src/session/core/retry.ts +149 -0
- package/src/session/core/revert.ts +173 -0
- package/src/session/core/run-state.ts +110 -0
- package/src/session/core/schema.ts +35 -0
- package/src/session/core/session-types.ts +160 -0
- package/src/session/core/session.sql.ts +124 -0
- package/src/session/core/session.ts +948 -0
- package/src/session/core/shell-exec.ts +205 -0
- package/src/session/core/status.ts +100 -0
- package/src/session/core/subtask.ts +268 -0
- package/src/session/core/summary.ts +173 -0
- package/src/session/core/system.ts +114 -0
- package/src/session/core/todo.ts +86 -0
- package/src/session/core/user-part.ts +293 -0
- package/src/session/instruction.ts +1 -234
- package/src/session/llm.ts +1 -504
- package/src/session/message/message-errors.ts +83 -0
- package/src/session/message/message-parts.ts +89 -0
- package/src/session/message/message-query.ts +107 -0
- package/src/session/message/message-transform.ts +156 -0
- package/src/session/message/message-types.ts +68 -0
- package/src/session/message/message-v2.ts +73 -0
- package/src/session/message/message.ts +192 -0
- package/src/session/message-errors.ts +1 -83
- package/src/session/message-parts.ts +1 -89
- package/src/session/message-query.ts +1 -107
- package/src/session/message-transform.ts +1 -156
- package/src/session/message-types.ts +1 -68
- package/src/session/message-v2.ts +1 -73
- package/src/session/message.ts +1 -192
- package/src/session/network.ts +1 -392
- package/src/session/overflow.ts +1 -28
- package/src/session/processor.ts +1 -731
- package/src/session/projectors.ts +2 -139
- package/src/session/prompt/prompt-command.ts +93 -0
- package/src/session/prompt/prompt-loop.ts +299 -0
- package/src/session/prompt/prompt-model.ts +44 -0
- package/src/session/prompt/prompt-reminders.ts +120 -0
- package/src/session/prompt/prompt-resolve.ts +42 -0
- package/src/session/prompt/prompt-schemas.ts +128 -0
- package/src/session/prompt/prompt-title.ts +55 -0
- package/src/session/prompt/prompt-types.ts +47 -0
- package/src/session/prompt/prompt-user-msg.ts +80 -0
- package/src/session/prompt/prompt.ts +211 -0
- package/src/session/prompt-command.ts +1 -93
- package/src/session/prompt-loop.ts +1 -299
- package/src/session/prompt-model.ts +1 -44
- package/src/session/prompt-reminders.ts +1 -120
- package/src/session/prompt-resolve.ts +1 -42
- package/src/session/prompt-schemas.ts +1 -128
- package/src/session/prompt-title.ts +1 -55
- package/src/session/prompt-types.ts +1 -47
- package/src/session/prompt-user-msg.ts +1 -80
- package/src/session/prompt.ts +1 -211
- package/src/session/resolve-tools.ts +1 -241
- package/src/session/retry.ts +1 -149
- package/src/session/revert.ts +1 -173
- package/src/session/run-state.ts +1 -110
- package/src/session/schema.ts +1 -35
- package/src/session/session-types.ts +1 -160
- package/src/session/session.sql.ts +1 -124
- package/src/session/session.ts +1 -948
- package/src/session/shell-exec.ts +1 -205
- package/src/session/status.ts +1 -100
- package/src/session/subtask.ts +1 -268
- package/src/session/summary.ts +1 -173
- package/src/session/system.ts +1 -114
- package/src/session/todo.ts +1 -86
- package/src/session/user-part.ts +1 -293
- package/src/skill/index.ts +1 -1
- package/src/suggestion/index.ts +1 -1
- package/src/tool/apply_patch.ts +2 -2
- package/src/tool/edit.ts +2 -2
- package/src/tool/read.ts +2 -2
- package/src/tool/recall.ts +1 -1
- package/src/tool/registry.ts +2 -2
- package/src/tool/suggest.ts +1 -1
- package/src/tool/task.ts +3 -3
- package/src/tool/todo.ts +1 -1
- package/src/tool/write.ts +2 -2
- package/test/lsp/index.test.ts +1 -1
- package/test/saeeol/agent-manager-tool.test.ts +1 -1
- package/test/saeeol/ask-agent-permissions.test.ts +1 -1
- package/test/saeeol/bash-hierarchy.test.ts +1 -1
- package/test/saeeol/builtin-skills.test.ts +1 -1
- package/test/saeeol/cli/dev-setup.test.ts +1 -1
- package/test/saeeol/cli/roll-call.test.ts +1 -1
- package/test/saeeol/cli-run-auto-helper.test.ts +1 -1
- package/test/saeeol/codex-auth-refresh.test.ts +1 -1
- package/test/saeeol/commit-message/generate.test.ts +1 -1
- package/test/saeeol/commit-message/git-context.test.ts +1 -1
- package/test/saeeol/commit-message-windows.test.ts +1 -1
- package/test/saeeol/compaction-payload-recovery.test.ts +1 -1
- package/test/saeeol/config/config.test.ts +1 -1
- package/test/saeeol/config-injector.test.ts +1 -1
- package/test/saeeol/config-validation.test.ts +1 -1
- package/test/saeeol/cost-propagation.test.ts +1 -1
- package/test/saeeol/custom-provider-delete.test.ts +1 -1
- package/test/saeeol/diff-full.test.ts +1 -1
- package/test/saeeol/encoding.test.ts +1 -1
- package/test/saeeol/enhance-prompt.test.ts +1 -1
- package/test/saeeol/ensure-plan-dir.test.ts +1 -1
- package/test/saeeol/errors.test.ts +1 -1
- package/test/saeeol/help.test.ts +3 -3
- package/test/saeeol/ignore-migrator.test.ts +1 -1
- package/test/saeeol/indexing-auth.test.ts +1 -1
- package/test/saeeol/indexing-feature.test.ts +1 -1
- package/test/saeeol/indexing-label.test.ts +1 -1
- package/test/saeeol/indexing-startup.test.ts +1 -1
- package/test/saeeol/indexing-worktree.test.ts +1 -1
- package/test/saeeol/lancedb-runtime.test.ts +9 -9
- package/test/saeeol/logo.test.ts +1 -1
- package/test/saeeol/lsp-typescript-lightweight.test.ts +2 -2
- package/test/saeeol/mcp-migrator.test.ts +1 -1
- package/test/saeeol/model-info-panel-utils.test.ts +1 -1
- package/test/saeeol/modes-migrator.test.ts +1 -1
- package/test/saeeol/paths.test.ts +1 -1
- package/test/saeeol/permission/config-paths.test.ts +2 -2
- package/test/saeeol/permission/external-directory-allow.test.ts +1 -1
- package/test/saeeol/plan-exit-detection.test.ts +1 -1
- package/test/saeeol/plan-followup.test.ts +2 -2
- package/test/saeeol/project-id.test.ts +1 -1
- package/test/saeeol/question-dismiss-all.test.ts +1 -1
- package/test/saeeol/rules-migrator.test.ts +1 -1
- package/test/saeeol/semantic-search.test.ts +2 -2
- package/test/saeeol/session/platform-attribution.test.ts +1 -1
- package/test/saeeol/session-compaction-cap.test.ts +2 -2
- package/test/saeeol/session-compaction-chunks.test.ts +1 -1
- package/test/saeeol/session-compaction-safety.test.ts +1 -1
- package/test/saeeol/session-import-service.test.ts +1 -1
- package/test/saeeol/session-processor-empty-tool-calls.test.ts +1 -1
- package/test/saeeol/session-processor-review-telemetry.test.ts +1 -1
- package/test/saeeol/session-prompt-queue.test.ts +1 -1
- package/test/saeeol/sessions/remote-sender.test.ts +1 -1
- package/test/saeeol/snapshot-track-timeout.test.ts +1 -1
- package/test/saeeol/suggestion/auto-dismiss.test.ts +2 -2
- package/test/saeeol/suggestion/suggestion.test.ts +1 -1
- package/test/saeeol/suggestion/tool.test.ts +2 -2
- package/test/saeeol/system-prompt.test.ts +1 -1
- package/test/saeeol/todo-view.test.ts +1 -1
- package/test/saeeol/tool-registry-indexing.test.ts +3 -3
- package/test/saeeol/tui-diff.test.ts +1 -1
- package/test/saeeol/tui-sync.test.ts +1 -1
- package/test/saeeol/util/url.test.ts +1 -1
- package/test/saeeol/workflows-migrator.test.ts +1 -1
- package/test/saeeol/worktree-diff-summary.test.ts +1 -1
- package/tsconfig.json +1 -1
- /package/src/{saeeol → overlay}/agent/agent-remove.ts +0 -0
- /package/src/{saeeol → overlay}/agent/index.ts +0 -0
- /package/src/{saeeol → overlay}/agent/patch-agents.ts +0 -0
- /package/src/{saeeol → overlay}/agent/permissions.ts +0 -0
- /package/src/{saeeol → overlay}/agent-manager/event.ts +0 -0
- /package/src/{saeeol → overlay}/bash-hierarchy.ts +0 -0
- /package/src/{saeeol → overlay}/bell.ts +0 -0
- /package/src/{saeeol → overlay}/bootstrap.ts +0 -0
- /package/src/{saeeol → overlay}/claw/autocomplete-popup.tsx +0 -0
- /package/src/{saeeol → overlay}/claw/autocomplete-ref.ts +0 -0
- /package/src/{saeeol → overlay}/claw/autocomplete-types.ts +0 -0
- /package/src/{saeeol → overlay}/claw/autocomplete.tsx +0 -0
- /package/src/{saeeol → overlay}/claw/chat-client.ts +0 -0
- /package/src/{saeeol → overlay}/claw/chat.tsx +0 -0
- /package/src/{saeeol → overlay}/claw/client-events.ts +0 -0
- /package/src/{saeeol → overlay}/claw/client-helpers.ts +0 -0
- /package/src/{saeeol → overlay}/claw/client.ts +0 -0
- /package/src/{saeeol → overlay}/claw/dialog-conversation-list.tsx +0 -0
- /package/src/{saeeol → overlay}/claw/event-service-client-core.ts +0 -0
- /package/src/{saeeol → overlay}/claw/event-service-client-impl.ts +0 -0
- /package/src/{saeeol → overlay}/claw/event-service-client.ts +0 -0
- /package/src/{saeeol → overlay}/claw/hooks.ts +0 -0
- /package/src/{saeeol → overlay}/claw/sidebar.tsx +0 -0
- /package/src/{saeeol → overlay}/claw/types.ts +0 -0
- /package/src/{saeeol → overlay}/claw/view.tsx +0 -0
- /package/src/{saeeol → overlay}/cli/cmd/roll-call-call.ts +0 -0
- /package/src/{saeeol → overlay}/cli/cmd/roll-call-format.ts +0 -0
- /package/src/{saeeol → overlay}/cli/cmd/roll-call.ts +0 -0
- /package/src/{saeeol → overlay}/cli/cmd/tui/app.tsx +0 -0
- /package/src/{saeeol → overlay}/cli/cmd/tui/component/dialog-provider.tsx +0 -0
- /package/src/{saeeol → overlay}/cli/cmd/tui/feedback.ts +0 -0
- /package/src/{saeeol → overlay}/cli/cmd/tui/util/terminal.ts +0 -0
- /package/src/{saeeol → overlay}/cli/dev-setup-utils.ts +0 -0
- /package/src/{saeeol → overlay}/cli/dev-setup.ts +0 -0
- /package/src/{saeeol → overlay}/cli/heap-snapshot.ts +0 -0
- /package/src/{saeeol → overlay}/cli/logo.ts +0 -0
- /package/src/{saeeol → overlay}/cli/run-auto.ts +0 -0
- /package/src/{saeeol → overlay}/cli/saeeol-logo.ts +0 -0
- /package/src/{saeeol → overlay}/cloud-session.ts +0 -0
- /package/src/{saeeol → overlay}/commands-index.ts +0 -0
- /package/src/{saeeol → overlay}/commands.ts +0 -0
- /package/src/{saeeol → overlay}/commands.tsx +0 -0
- /package/src/{saeeol → overlay}/commit-message/generate.ts +0 -0
- /package/src/{saeeol → overlay}/commit-message/git-context.ts +0 -0
- /package/src/{saeeol → overlay}/commit-message/index.ts +0 -0
- /package/src/{saeeol → overlay}/commit-message/types.ts +0 -0
- /package/src/{saeeol → overlay}/components/dialog-auto-method.tsx +0 -0
- /package/src/{saeeol → overlay}/components/dialog-claw-setup.tsx +0 -0
- /package/src/{saeeol → overlay}/components/dialog-claw-upgrade.tsx +0 -0
- /package/src/{saeeol → overlay}/components/dialog-indexing-helpers.ts +0 -0
- /package/src/{saeeol → overlay}/components/dialog-indexing.tsx +0 -0
- /package/src/{saeeol → overlay}/components/dialog-notifications.tsx +0 -0
- /package/src/{saeeol → overlay}/components/dialog-organization.tsx +0 -0
- /package/src/{saeeol → overlay}/components/dialog-profile.tsx +0 -0
- /package/src/{saeeol → overlay}/components/dialog-provider-settings.tsx +0 -0
- /package/src/{saeeol → overlay}/components/dialog-team-select.tsx +0 -0
- /package/src/{saeeol → overlay}/components/dialog-tuning.tsx +0 -0
- /package/src/{saeeol → overlay}/components/dialog-vector-store.tsx +0 -0
- /package/src/{saeeol → overlay}/components/error-display.tsx +0 -0
- /package/src/{saeeol → overlay}/components/model-info-panel-utils.ts +0 -0
- /package/src/{saeeol → overlay}/components/model-info-panel.tsx +0 -0
- /package/src/{saeeol → overlay}/components/news.tsx +0 -0
- /package/src/{saeeol → overlay}/components/notification-banner.tsx +0 -0
- /package/src/{saeeol → overlay}/components/session-indexing.tsx +0 -0
- /package/src/{saeeol → overlay}/components/tips.tsx +0 -0
- /package/src/{saeeol → overlay}/config/config-core.ts +0 -0
- /package/src/{saeeol → overlay}/config/config-helpers.ts +0 -0
- /package/src/{saeeol → overlay}/config/config-legacy.ts +0 -0
- /package/src/{saeeol → overlay}/config/config.ts +0 -0
- /package/src/{saeeol → overlay}/config/default-plugins.ts +0 -0
- /package/src/{saeeol → overlay}/config/markdown.ts +0 -0
- /package/src/{saeeol → overlay}/config-injector.ts +0 -0
- /package/src/{saeeol → overlay}/config-validation.ts +0 -0
- /package/src/{saeeol → overlay}/const.ts +0 -0
- /package/src/{saeeol → overlay}/cost-tracker/format.ts +0 -0
- /package/src/{saeeol → overlay}/cost-tracker/index.ts +0 -0
- /package/src/{saeeol → overlay}/cost-tracker/state.ts +0 -0
- /package/src/{saeeol → overlay}/cost-tracker/types.ts +0 -0
- /package/src/{saeeol → overlay}/docs/migration.md +0 -0
- /package/src/{saeeol → overlay}/docs/rules-migration.md +0 -0
- /package/src/{saeeol → overlay}/editor-context.ts +0 -0
- /package/src/{saeeol → overlay}/enhance-prompt.ts +0 -0
- /package/src/{saeeol → overlay}/errors.ts +0 -0
- /package/src/{saeeol → overlay}/generate-cli-docs.ts +0 -0
- /package/src/{saeeol → overlay}/help-command.ts +0 -0
- /package/src/{saeeol → overlay}/help.ts +0 -0
- /package/src/{saeeol → overlay}/i18n/index.ts +0 -0
- /package/src/{saeeol → overlay}/ignore-migrator.ts +0 -0
- /package/src/{saeeol → overlay}/index.ts +0 -0
- /package/src/{saeeol → overlay}/indexing-auth.ts +0 -0
- /package/src/{saeeol → overlay}/indexing-feature.ts +0 -0
- /package/src/{saeeol → overlay}/indexing-helpers.ts +0 -0
- /package/src/{saeeol → overlay}/indexing-label.ts +0 -0
- /package/src/{saeeol → overlay}/indexing-state.ts +0 -0
- /package/src/{saeeol → overlay}/indexing-types.ts +0 -0
- /package/src/{saeeol → overlay}/indexing.ts +0 -0
- /package/src/{saeeol → overlay}/lancedb.ts +0 -0
- /package/src/{saeeol → overlay}/mcp-migrator.ts +0 -0
- /package/src/{saeeol → overlay}/mcp-oauth-callback.ts +0 -0
- /package/src/{saeeol → overlay}/memory/age.ts +0 -0
- /package/src/{saeeol → overlay}/memory/index.ts +0 -0
- /package/src/{saeeol → overlay}/memory/paths.ts +0 -0
- /package/src/{saeeol → overlay}/memory/scan.ts +0 -0
- /package/src/{saeeol → overlay}/memory/types.ts +0 -0
- /package/src/{saeeol → overlay}/model-match.ts +0 -0
- /package/src/{saeeol → overlay}/modes-migrator.ts +0 -0
- /package/src/{saeeol → overlay}/paths.ts +0 -0
- /package/src/{saeeol → overlay}/permission/config-paths.ts +0 -0
- /package/src/{saeeol → overlay}/permission/drain.ts +0 -0
- /package/src/{saeeol → overlay}/permission/external-directory.ts +0 -0
- /package/src/{saeeol → overlay}/permission/read.ts +0 -0
- /package/src/{saeeol → overlay}/permission/routes.ts +0 -0
- /package/src/{saeeol → overlay}/permission/rule.ts +0 -0
- /package/src/{saeeol → overlay}/plan-followup-handover.ts +0 -0
- /package/src/{saeeol → overlay}/plan-followup-runtime.ts +0 -0
- /package/src/{saeeol → overlay}/plan-followup-session.ts +0 -0
- /package/src/{saeeol → overlay}/plan-followup.ts +0 -0
- /package/src/{saeeol → overlay}/plugins/home-footer.tsx +0 -0
- /package/src/{saeeol → overlay}/plugins/home-news.tsx +0 -0
- /package/src/{saeeol → overlay}/plugins/home-onboarding.tsx +0 -0
- /package/src/{saeeol → overlay}/plugins/sidebar-footer.tsx +0 -0
- /package/src/{saeeol → overlay}/plugins/sidebar-pr.tsx +0 -0
- /package/src/{saeeol → overlay}/plugins/sidebar-usage.tsx +0 -0
- /package/src/{saeeol → overlay}/project-id.ts +0 -0
- /package/src/{saeeol → overlay}/provider/codex-refresh.ts +0 -0
- /package/src/{saeeol → overlay}/provider/provider.ts +0 -0
- /package/src/{saeeol → overlay}/provider-options.ts +0 -0
- /package/src/{saeeol → overlay}/question/index.ts +0 -0
- /package/src/{saeeol → overlay}/remote-tui.tsx +0 -0
- /package/src/{saeeol → overlay}/review/command.ts +0 -0
- /package/src/{saeeol → overlay}/review/diff.ts +0 -0
- /package/src/{saeeol → overlay}/review/prompt.ts +0 -0
- /package/src/{saeeol → overlay}/review/review.ts +0 -0
- /package/src/{saeeol → overlay}/review/types.ts +0 -0
- /package/src/{saeeol → overlay}/review/worktree-diff.ts +0 -0
- /package/src/{saeeol → overlay}/rules-migrator.ts +0 -0
- /package/src/{saeeol → overlay}/server/instance.ts +0 -0
- /package/src/{saeeol → overlay}/server/router.ts +0 -0
- /package/src/{saeeol → overlay}/server/routes/commit-message.ts +0 -0
- /package/src/{saeeol → overlay}/server/routes/indexing.ts +0 -0
- /package/src/{saeeol → overlay}/server/server.ts +0 -0
- /package/src/{saeeol → overlay}/session/compaction-chunks-core.ts +0 -0
- /package/src/{saeeol → overlay}/session/compaction-chunks-utils.ts +0 -0
- /package/src/{saeeol → overlay}/session/compaction-chunks.ts +0 -0
- /package/src/{saeeol → overlay}/session/compaction-payload-recovery.ts +0 -0
- /package/src/{saeeol → overlay}/session/cost-propagation.ts +0 -0
- /package/src/{saeeol → overlay}/session/digest-storage.ts +0 -0
- /package/src/{saeeol → overlay}/session/fork.ts +0 -0
- /package/src/{saeeol → overlay}/session/index.ts +0 -0
- /package/src/{saeeol → overlay}/session/instruction.ts +0 -0
- /package/src/{saeeol → overlay}/session/kg-compaction.ts +0 -0
- /package/src/{saeeol → overlay}/session/llm.ts +0 -0
- /package/src/{saeeol → overlay}/session/overflow.ts +0 -0
- /package/src/{saeeol → overlay}/session/platform.ts +0 -0
- /package/src/{saeeol → overlay}/session/processor.ts +0 -0
- /package/src/{saeeol → overlay}/session/prompt-context.ts +0 -0
- /package/src/{saeeol → overlay}/session/prompt-plan.ts +0 -0
- /package/src/{saeeol → overlay}/session/prompt-queue.ts +0 -0
- /package/src/{saeeol → overlay}/session/prompt.ts +0 -0
- /package/src/{saeeol → overlay}/session/queries.ts +0 -0
- /package/src/{saeeol → overlay}/session/tui-sync.ts +0 -0
- /package/src/{saeeol → overlay}/session-import/routes.ts +0 -0
- /package/src/{saeeol → overlay}/session-import/service.ts +0 -0
- /package/src/{saeeol → overlay}/session-import/types.ts +0 -0
- /package/src/{saeeol → overlay}/skills/builtin.ts +0 -0
- /package/src/{saeeol → overlay}/skills/config.md +0 -0
- /package/src/{saeeol → overlay}/snapshot/diff-full.ts +0 -0
- /package/src/{saeeol → overlay}/snapshot/index.ts +0 -0
- /package/src/{saeeol → overlay}/snapshot/track-hooks.ts +0 -0
- /package/src/{saeeol → overlay}/snapshot/track-types.ts +0 -0
- /package/src/{saeeol → overlay}/snapshot/track.ts +0 -0
- /package/src/{saeeol → overlay}/soul.txt +0 -0
- /package/src/{saeeol → overlay}/suggestion/index.ts +0 -0
- /package/src/{saeeol → overlay}/suggestion/routes.ts +0 -0
- /package/src/{saeeol → overlay}/suggestion/tool.ts +0 -0
- /package/src/{saeeol → overlay}/suggestion/tool.txt +0 -0
- /package/src/{saeeol → overlay}/suggestion/tui/bar.tsx +0 -0
- /package/src/{saeeol → overlay}/suggestion/tui/prompt.tsx +0 -0
- /package/src/{saeeol → overlay}/suggestion/tui/render.tsx +0 -0
- /package/src/{saeeol → overlay}/suggestion/tui/sync.ts +0 -0
- /package/src/{saeeol → overlay}/system-prompt.ts +0 -0
- /package/src/{saeeol → overlay}/todo-view.ts +0 -0
- /package/src/{saeeol → overlay}/tool/agent-manager.ts +0 -0
- /package/src/{saeeol → overlay}/tool/agent-manager.txt +0 -0
- /package/src/{saeeol → overlay}/tool/bash-security-patterns.ts +0 -0
- /package/src/{saeeol → overlay}/tool/bash-security.ts +0 -0
- /package/src/{saeeol → overlay}/tool/question.ts +0 -0
- /package/src/{saeeol → overlay}/tool/registry.ts +0 -0
- /package/src/{saeeol → overlay}/tool/semantic-search.ts +0 -0
- /package/src/{saeeol → overlay}/tool/semantic-search.txt +0 -0
- /package/src/{saeeol → overlay}/tool/task.ts +0 -0
- /package/src/{saeeol → overlay}/ts-check.ts +0 -0
- /package/src/{saeeol → overlay}/ts-client.ts +0 -0
- /package/src/{saeeol → overlay}/tui/diff.ts +0 -0
- /package/src/{saeeol → overlay}/util/url.ts +0 -0
- /package/src/{saeeol → overlay}/worker/index.ts +0 -0
- /package/src/{saeeol → overlay}/worker/pool.ts +0 -0
- /package/src/{saeeol → overlay}/worker/store.ts +0 -0
- /package/src/{saeeol → overlay}/worker/types.ts +0 -0
- /package/src/{saeeol → overlay}/workflows-migrator.ts +0 -0
- /package/src/{saeeol → overlay}/worktree-cleanup.ts +0 -0
- /package/src/{saeeol → overlay}/worktree-family.ts +0 -0
package/src/tool/apply_patch.ts
CHANGED
|
@@ -13,8 +13,8 @@ import { AppFileSystem } from "@saeeol/core/filesystem"
|
|
|
13
13
|
import DESCRIPTION from "./apply_patch.txt"
|
|
14
14
|
import { File } from "../file"
|
|
15
15
|
import { filterDiagnostics } from "./diagnostics"
|
|
16
|
-
import { ConfigValidation } from "../
|
|
17
|
-
import * as EncodedIO from "../
|
|
16
|
+
import { ConfigValidation } from "../overlay/config-validation"
|
|
17
|
+
import * as EncodedIO from "../overlay/tool/encoded-io"
|
|
18
18
|
import { Format } from "../format"
|
|
19
19
|
import * as Bom from "@/util/bom"
|
|
20
20
|
|
package/src/tool/edit.ts
CHANGED
|
@@ -19,8 +19,8 @@ import { assertExternalDirectoryEffect } from "./external-directory"
|
|
|
19
19
|
import { AppFileSystem } from "@saeeol/core/filesystem"
|
|
20
20
|
import * as Bom from "@/util/bom"
|
|
21
21
|
import { filterDiagnostics } from "./diagnostics"
|
|
22
|
-
import { ConfigValidation } from "../
|
|
23
|
-
import * as EncodedIO from "../
|
|
22
|
+
import { ConfigValidation } from "../overlay/config-validation"
|
|
23
|
+
import * as EncodedIO from "../overlay/tool/encoded-io"
|
|
24
24
|
import { buildFileDiff, normalizeLineEndings, detectLineEnding, convertToLineEnding, trimDiff } from "./edit-utils"
|
|
25
25
|
import {
|
|
26
26
|
SimpleReplacer,
|
package/src/tool/read.ts
CHANGED
|
@@ -12,8 +12,8 @@ import { InstanceState } from "@/effect/instance-state"
|
|
|
12
12
|
import { assertExternalDirectoryEffect } from "./external-directory"
|
|
13
13
|
import { Instruction } from "../session/instruction"
|
|
14
14
|
import { isPdfAttachment, sniffAttachmentMime } from "@/util/media"
|
|
15
|
-
import * as Encoding from "../
|
|
16
|
-
import * as TextStream from "../
|
|
15
|
+
import * as Encoding from "../overlay/encoding"
|
|
16
|
+
import * as TextStream from "../overlay/text-stream"
|
|
17
17
|
|
|
18
18
|
const DEFAULT_READ_LIMIT = 2000
|
|
19
19
|
const MAX_LINE_LENGTH = 2000
|
package/src/tool/recall.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as Tool from "./tool"
|
|
|
3
3
|
import { Instance } from "../project/instance"
|
|
4
4
|
import { Locale } from "../util/locale"
|
|
5
5
|
import { Filesystem } from "../util/filesystem"
|
|
6
|
-
import { WorktreeFamily } from "../
|
|
6
|
+
import { WorktreeFamily } from "../overlay/worktree-family"
|
|
7
7
|
import DESCRIPTION from "./recall.txt"
|
|
8
8
|
|
|
9
9
|
const Parameters = Schema.Struct({
|
package/src/tool/registry.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PlanExitTool } from "./plan"
|
|
2
2
|
import { Session } from "@/session/session"
|
|
3
3
|
import { QuestionTool } from "./question"
|
|
4
|
-
import { SuggestTool } from "../
|
|
4
|
+
import { SuggestTool } from "../overlay/suggestion/tool"
|
|
5
5
|
import { BashTool } from "./bash"
|
|
6
6
|
import { EditTool } from "./edit"
|
|
7
7
|
import { GlobTool } from "./glob"
|
|
@@ -24,7 +24,7 @@ import { Plugin } from "../plugin"
|
|
|
24
24
|
import { Provider } from "@/provider/provider"
|
|
25
25
|
import { ProviderID, type ModelID } from "../provider/schema"
|
|
26
26
|
import { WebSearchTool } from "./websearch"
|
|
27
|
-
import { SaeeolToolRegistry } from "../
|
|
27
|
+
import { SaeeolToolRegistry } from "../overlay/tool/registry"
|
|
28
28
|
import { makeRuntime } from "@/effect/run-service"
|
|
29
29
|
import { Flag } from "@saeeol/core/flag/flag"
|
|
30
30
|
import * as Log from "@saeeol/core/util/log"
|
package/src/tool/suggest.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { SuggestTool } from "../
|
|
1
|
+
export { SuggestTool } from "../overlay/suggestion/tool"
|
package/src/tool/task.ts
CHANGED
|
@@ -6,9 +6,9 @@ import { MessageV2 } from "../session/message-v2"
|
|
|
6
6
|
import { Agent } from "../agent/agent"
|
|
7
7
|
import type { SessionPrompt } from "../session/prompt"
|
|
8
8
|
import { Config } from "@/config/config"
|
|
9
|
-
import { SaeeolTask } from "../
|
|
10
|
-
import { SaeeolCostPropagation } from "../
|
|
11
|
-
import { SaeeolSessionProcessor } from "../
|
|
9
|
+
import { SaeeolTask } from "../overlay/tool/task"
|
|
10
|
+
import { SaeeolCostPropagation } from "../overlay/session/cost-propagation"
|
|
11
|
+
import { SaeeolSessionProcessor } from "../overlay/session/processor"
|
|
12
12
|
import { Effect, Schema } from "effect"
|
|
13
13
|
|
|
14
14
|
export interface TaskPromptOps {
|
package/src/tool/todo.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { Effect, Schema } from "effect"
|
|
|
2
2
|
import * as Tool from "./tool"
|
|
3
3
|
import DESCRIPTION_WRITE from "./todowrite.txt"
|
|
4
4
|
import { Todo } from "../session/todo"
|
|
5
|
-
import { TodoView } from "../
|
|
5
|
+
import { TodoView } from "../overlay/todo-view"
|
|
6
6
|
|
|
7
7
|
// Todo.Info is still a zod schema (session/todo.ts). Inline the field shape
|
|
8
8
|
// here rather than referencing its `.shape` — the LLM-visible JSON Schema is
|
package/src/tool/write.ts
CHANGED
|
@@ -14,8 +14,8 @@ import { InstanceState } from "@/effect/instance-state"
|
|
|
14
14
|
import { trimDiff, buildFileDiff } from "./edit"
|
|
15
15
|
import { assertExternalDirectoryEffect } from "./external-directory"
|
|
16
16
|
import { filterDiagnostics } from "./diagnostics"
|
|
17
|
-
import { ConfigValidation } from "../
|
|
18
|
-
import * as EncodedIO from "../
|
|
17
|
+
import { ConfigValidation } from "../overlay/config-validation"
|
|
18
|
+
import * as EncodedIO from "../overlay/tool/encoded-io"
|
|
19
19
|
import * as Bom from "@/util/bom"
|
|
20
20
|
|
|
21
21
|
const MAX_PROJECT_DIAGNOSTICS_FILES = 5
|
package/test/lsp/index.test.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { provideTmpdirInstance, tmpdir } from "../fixture/fixture"
|
|
|
10
10
|
import { testEffect } from "../lib/effect"
|
|
11
11
|
import { Instance, type InstanceContext } from "../../src/project/instance"
|
|
12
12
|
import { Flag } from "@saeeol/core/flag/flag"
|
|
13
|
-
import { TsCheck } from "../../src/
|
|
13
|
+
import { TsCheck } from "../../src/overlay/ts-check"
|
|
14
14
|
const fakeCtx = {} as InstanceContext
|
|
15
15
|
|
|
16
16
|
const it = testEffect(Layer.mergeAll(LSP.defaultLayer, CrossSpawnSpawner.defaultLayer))
|
|
@@ -3,7 +3,7 @@ import { Effect, Layer, ManagedRuntime } from "effect"
|
|
|
3
3
|
import { MessageID, SessionID } from "../../src/session/schema"
|
|
4
4
|
import { provideTmpdirInstance } from "../fixture/fixture"
|
|
5
5
|
import { CrossSpawnSpawner } from "@saeeol/core/cross-spawn-spawner"
|
|
6
|
-
import { AgentManagerTool } from "../../src/
|
|
6
|
+
import { AgentManagerTool } from "../../src/overlay/tool/agent-manager"
|
|
7
7
|
import { Bus } from "../../src/bus"
|
|
8
8
|
import { Tool } from "../../src/tool/tool"
|
|
9
9
|
import { Truncate } from "../../src/tool/truncate"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { test, expect, describe } from "bun:test"
|
|
2
2
|
import { Permission } from "../../src/permission"
|
|
3
|
-
import { readOnlyBash } from "../../src/
|
|
3
|
+
import { readOnlyBash } from "../../src/overlay/agent"
|
|
4
4
|
|
|
5
5
|
/** Build the Ask agent ruleset without MCP servers */
|
|
6
6
|
function askRuleset() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { test, expect, describe } from "bun:test"
|
|
2
|
-
import { BashHierarchy } from "../../src/
|
|
2
|
+
import { BashHierarchy } from "../../src/overlay/bash-hierarchy"
|
|
3
3
|
|
|
4
4
|
function collect(command: string[], text: string): string[] {
|
|
5
5
|
const set = new Set<string>()
|
|
@@ -2,7 +2,7 @@ import { afterEach, test, expect } from "bun:test"
|
|
|
2
2
|
import path from "path"
|
|
3
3
|
import { Skill } from "../../src/skill"
|
|
4
4
|
import { Instance } from "../../src/project/instance"
|
|
5
|
-
import { BUILTIN_SKILLS } from "../../src/
|
|
5
|
+
import { BUILTIN_SKILLS } from "../../src/overlay/skills/builtin"
|
|
6
6
|
import { disposeAllInstances, tmpdir } from "../fixture/fixture"
|
|
7
7
|
|
|
8
8
|
afterEach(async () => {
|
|
@@ -2,7 +2,7 @@ import { describe, test, expect } from "bun:test"
|
|
|
2
2
|
import path from "path"
|
|
3
3
|
import fs from "fs/promises"
|
|
4
4
|
import { tmpdir } from "../../fixture/fixture"
|
|
5
|
-
import { detectRepo, findRepoFrom } from "../../../src/
|
|
5
|
+
import { detectRepo, findRepoFrom } from "../../../src/overlay/cli/dev-setup"
|
|
6
6
|
|
|
7
7
|
// Simulate a repo root by writing the sentinel file detectRepo looks for.
|
|
8
8
|
async function makeSynthRepo(dir: string) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { test, expect, describe } from "bun:test"
|
|
2
2
|
import { Provider } from "../../../src/provider/provider"
|
|
3
|
-
import { formatTable, formatMarkdown, handle, isTextModel } from "../../../src/
|
|
3
|
+
import { formatTable, formatMarkdown, handle, isTextModel } from "../../../src/overlay/cli/cmd/roll-call"
|
|
4
4
|
|
|
5
5
|
const base = {
|
|
6
6
|
input: { text: false, audio: false, image: false, video: false, pdf: false },
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { describe, expect, test } from "bun:test"
|
|
2
|
-
import { SaeeolRunAuto } from "../../src/
|
|
2
|
+
import { SaeeolRunAuto } from "../../src/overlay/cli/run-auto"
|
|
3
3
|
|
|
4
4
|
describe("SaeeolRunAuto", () => {
|
|
5
5
|
test("tracks task child sessions without allowing unrelated sessions", () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { describe, expect, test } from "bun:test"
|
|
2
|
-
import { CodexAuthExpiredError, refreshCodexAuth } from "../../src/
|
|
2
|
+
import { CodexAuthExpiredError, refreshCodexAuth } from "../../src/overlay/provider/codex-refresh"
|
|
3
3
|
import type { PluginInput } from "@saeeol/plugin"
|
|
4
4
|
import { MessageV2 } from "../../src/session/message-v2"
|
|
5
5
|
import { ProviderID } from "../../src/provider/schema"
|
|
@@ -78,7 +78,7 @@ mock.module("@saeeol/core/util/log", () => ({
|
|
|
78
78
|
}),
|
|
79
79
|
}))
|
|
80
80
|
|
|
81
|
-
import { generateCommitMessage } from "../../../src/
|
|
81
|
+
import { generateCommitMessage } from "../../../src/overlay/commit-message/generate"
|
|
82
82
|
|
|
83
83
|
describe("commit-message.generate", () => {
|
|
84
84
|
beforeEach(() => {
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
mapStatus,
|
|
12
12
|
isUntracked,
|
|
13
13
|
MAX_DIFF_LENGTH,
|
|
14
|
-
} from "../../../src/
|
|
14
|
+
} from "../../../src/overlay/commit-message/git-context"
|
|
15
15
|
|
|
16
16
|
// ── Helper: stage files in a temp git repo ──────────────────────────
|
|
17
17
|
async function stage(dir: string, files: Record<string, string>) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { describe, expect, spyOn, test } from "bun:test"
|
|
2
|
-
import { getGitContext } from "../../src/
|
|
2
|
+
import { getGitContext } from "../../src/overlay/commit-message/git-context"
|
|
3
3
|
|
|
4
4
|
describe("commit-message git context", () => {
|
|
5
5
|
test("hides Windows console windows for git subprocesses", async () => {
|
|
@@ -5,7 +5,7 @@ import * as Stream from "effect/Stream"
|
|
|
5
5
|
import { Agent } from "../../src/agent/agent"
|
|
6
6
|
import { Bus } from "../../src/bus"
|
|
7
7
|
import { Config } from "../../src/config/config"
|
|
8
|
-
import { SaeeolCompactionPayloadRecovery } from "../../src/
|
|
8
|
+
import { SaeeolCompactionPayloadRecovery } from "../../src/overlay/session/compaction-payload-recovery"
|
|
9
9
|
import { Permission } from "../../src/permission"
|
|
10
10
|
import { Plugin } from "../../src/plugin"
|
|
11
11
|
import { Instance } from "../../src/project/instance"
|
|
@@ -12,7 +12,7 @@ import { Auth } from "../../../src/auth"
|
|
|
12
12
|
import { Config } from "../../../src/config/config"
|
|
13
13
|
import { ConfigMarkdown } from "../../../src/config/markdown"
|
|
14
14
|
import { Env } from "../../../src/env"
|
|
15
|
-
import { SaeeolIndexing } from "../../../src/
|
|
15
|
+
import { SaeeolIndexing } from "../../../src/overlay/indexing"
|
|
16
16
|
import { Instance } from "../../../src/project/instance"
|
|
17
17
|
import { Filesystem } from "../../../src/util/filesystem"
|
|
18
18
|
import { disposeAllInstances, tmpdir } from "../../fixture/fixture"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { test, expect, describe } from "bun:test"
|
|
2
|
-
import { SaeeolConfigInjector } from "../../src/
|
|
2
|
+
import { SaeeolConfigInjector } from "../../src/overlay/config-injector"
|
|
3
3
|
import { tmpdir } from "../fixture/fixture"
|
|
4
4
|
import path from "path"
|
|
5
5
|
import fs from "fs/promises"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { afterEach, describe, expect, test } from "bun:test"
|
|
2
2
|
import path from "path"
|
|
3
|
-
import { ConfigValidation } from "../../src/
|
|
3
|
+
import { ConfigValidation } from "../../src/overlay/config-validation"
|
|
4
4
|
import { Instance } from "../../src/project/instance"
|
|
5
5
|
import { Config } from "../../src/config/config"
|
|
6
6
|
import { Filesystem } from "../../src/util/filesystem"
|
|
@@ -6,7 +6,7 @@ import { afterEach, describe, expect } from "bun:test"
|
|
|
6
6
|
import { Effect, Layer } from "effect"
|
|
7
7
|
import { Bus } from "../../src/bus"
|
|
8
8
|
import * as CrossSpawnSpawner from "@saeeol/core/cross-spawn-spawner"
|
|
9
|
-
import { SaeeolCostPropagation } from "../../src/
|
|
9
|
+
import { SaeeolCostPropagation } from "../../src/overlay/session/cost-propagation"
|
|
10
10
|
import { Instance } from "../../src/project/instance"
|
|
11
11
|
import { ProviderID, ModelID } from "../../src/provider/schema"
|
|
12
12
|
import { Session } from "../../src/session/session"
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
import { describe, expect, it } from "bun:test"
|
|
11
11
|
import * as Config from "../../src/config/config"
|
|
12
|
-
import { SaeeolConfig } from "../../src/
|
|
12
|
+
import { SaeeolConfig } from "../../src/overlay/config/config"
|
|
13
13
|
|
|
14
14
|
describe("Config.Info — null sentinels for custom provider deletes", () => {
|
|
15
15
|
it("accepts a null model value inside a provider", () => {
|
|
@@ -6,7 +6,7 @@ import { describe, expect } from "bun:test"
|
|
|
6
6
|
import { Effect, Layer } from "effect"
|
|
7
7
|
import path from "path"
|
|
8
8
|
import * as CrossSpawnSpawner from "@saeeol/core/cross-spawn-spawner"
|
|
9
|
-
import { DiffFull } from "../../src/
|
|
9
|
+
import { DiffFull } from "../../src/overlay/snapshot/diff-full"
|
|
10
10
|
import { Filesystem } from "../../src/util/filesystem"
|
|
11
11
|
import * as Log from "@saeeol/core/util/log"
|
|
12
12
|
import { tmpdirScoped } from "../fixture/fixture"
|
|
@@ -10,7 +10,7 @@ import fs from "fs/promises"
|
|
|
10
10
|
import os from "os"
|
|
11
11
|
import path from "path"
|
|
12
12
|
import iconv from "iconv-lite"
|
|
13
|
-
import * as Encoding from "../../src/
|
|
13
|
+
import * as Encoding from "../../src/overlay/encoding"
|
|
14
14
|
|
|
15
15
|
const BOM = {
|
|
16
16
|
utf8: Buffer.from([0xef, 0xbb, 0xbf]),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { describe, expect, test } from "bun:test"
|
|
2
2
|
import fs from "fs/promises"
|
|
3
3
|
import path from "path"
|
|
4
|
-
import { SaeeolSessionPrompt } from "../../src/
|
|
4
|
+
import { SaeeolSessionPrompt } from "../../src/overlay/session/prompt"
|
|
5
5
|
import { tmpdir } from "../fixture/fixture"
|
|
6
6
|
|
|
7
7
|
describe("SaeeolSessionPrompt.ensurePlanDir", () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { describe, it, expect } from "bun:test"
|
|
2
2
|
import { MessageV2 } from "../../src/session/message-v2"
|
|
3
|
-
import { SAEEOL_ERROR_CODES, isSaeeolError, parseSaeeolErrorCode } from "../../src/
|
|
3
|
+
import { SAEEOL_ERROR_CODES, isSaeeolError, parseSaeeolErrorCode } from "../../src/overlay/errors"
|
|
4
4
|
import { SessionRetry } from "../../src/session/retry"
|
|
5
5
|
import { NamedError } from "@saeeol/core/util/error"
|
|
6
6
|
|
package/test/saeeol/help.test.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { describe, test, expect } from "bun:test"
|
|
2
2
|
import path from "path"
|
|
3
|
-
import { generateHelp, generateCommandTable } from "../../src/
|
|
3
|
+
import { generateHelp, generateCommandTable } from "../../src/overlay/help"
|
|
4
4
|
import { AcpCommand } from "../../src/cli/cmd/acp"
|
|
5
5
|
import { McpCommand } from "../../src/cli/cmd/mcp"
|
|
6
6
|
import { RunCommand } from "../../src/cli/cmd/run"
|
|
@@ -22,7 +22,7 @@ import { RemoteCommand } from "../../src/cli/cmd/remote"
|
|
|
22
22
|
import { ConfigCommand as ConfigCLICommand } from "../../src/cli/cmd/config"
|
|
23
23
|
import { PluginCommand } from "../../src/cli/cmd/plug"
|
|
24
24
|
import { DbCommand } from "../../src/cli/cmd/db"
|
|
25
|
-
import { HelpCommand } from "../../src/
|
|
25
|
+
import { HelpCommand } from "../../src/overlay/help-command"
|
|
26
26
|
|
|
27
27
|
// Stand-in for TuiThreadCommand — the real one imports @opentui/solid which
|
|
28
28
|
// doesn't resolve in the test environment. Only command/describe matter here.
|
|
@@ -174,7 +174,7 @@ describe("generateCommandTable", () => {
|
|
|
174
174
|
describe("commands.ts stays in sync with index.ts", () => {
|
|
175
175
|
test("every .command() in index.ts has an entry in the commands array", async () => {
|
|
176
176
|
const index = await Bun.file(path.resolve(import.meta.dir, "../../src/index.ts")).text()
|
|
177
|
-
const barrel = await Bun.file(path.resolve(import.meta.dir, "../../src/
|
|
177
|
+
const barrel = await Bun.file(path.resolve(import.meta.dir, "../../src/overlay/commands.ts")).text()
|
|
178
178
|
|
|
179
179
|
// Match uncommented .command(XxxCommand) calls in index.ts
|
|
180
180
|
const registered = [...index.matchAll(/^\s*\.command\((\w+)\)/gm)].map((m) => m[1]!)
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
hasSaeeolIndexingAuth,
|
|
4
4
|
resolveSaeeolIndexingAuth,
|
|
5
5
|
shouldDefaultIndexingToSaeeol,
|
|
6
|
-
} from "../../src/
|
|
6
|
+
} from "../../src/overlay/indexing-auth"
|
|
7
7
|
|
|
8
8
|
describe("Saeeol indexing auth resolution", () => {
|
|
9
9
|
test("detects auth from explicit indexing Saeeol config", () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { describe, expect, test } from "bun:test"
|
|
2
|
-
import { formatIndexingLabel } from "../../src/
|
|
2
|
+
import { formatIndexingLabel } from "../../src/overlay/indexing-label"
|
|
3
3
|
|
|
4
4
|
describe("indexing label", () => {
|
|
5
5
|
test("formats in-progress status with counts", () => {
|
|
@@ -3,7 +3,7 @@ import { CodeIndexManager } from "@saeeol/indexing/engine"
|
|
|
3
3
|
import type { Config } from "../../src/config/config"
|
|
4
4
|
import { GlobalBus } from "../../src/bus/global"
|
|
5
5
|
import { getBootstrapRunEffect } from "../../src/effect/app-runtime"
|
|
6
|
-
import { SaeeolIndexing } from "../../src/
|
|
6
|
+
import { SaeeolIndexing } from "../../src/overlay/indexing"
|
|
7
7
|
import { Instance } from "../../src/project/instance"
|
|
8
8
|
import { Server } from "../../src/server/server"
|
|
9
9
|
import * as Log from "@saeeol/core/util/log"
|
|
@@ -2,7 +2,7 @@ import { afterEach, describe, expect, test } from "bun:test"
|
|
|
2
2
|
import { mkdir } from "node:fs/promises"
|
|
3
3
|
import type { Config } from "../../src/config/config"
|
|
4
4
|
import { getBootstrapRunEffect } from "../../src/effect/app-runtime"
|
|
5
|
-
import { SaeeolIndexing } from "../../src/
|
|
5
|
+
import { SaeeolIndexing } from "../../src/overlay/indexing"
|
|
6
6
|
import { Instance } from "../../src/project/instance"
|
|
7
7
|
import { disposeAllInstances, tmpdir } from "../fixture/fixture"
|
|
8
8
|
|
|
@@ -17,21 +17,21 @@ const prev = process.env[env]
|
|
|
17
17
|
|
|
18
18
|
describe("LanceDBRuntime", () => {
|
|
19
19
|
beforeEach(async () => {
|
|
20
|
-
const { LanceDBRuntime } = await import("../../src/
|
|
20
|
+
const { LanceDBRuntime } = await import("../../src/overlay/lancedb")
|
|
21
21
|
LanceDBRuntime.clear()
|
|
22
22
|
add.mockClear()
|
|
23
23
|
add.mockImplementation(async () => ({ directory: "/tmp/saeeol-cache", entrypoint: entry }))
|
|
24
24
|
})
|
|
25
25
|
|
|
26
26
|
afterEach(async () => {
|
|
27
|
-
const { LanceDBRuntime } = await import("../../src/
|
|
27
|
+
const { LanceDBRuntime } = await import("../../src/overlay/lancedb")
|
|
28
28
|
LanceDBRuntime.clear()
|
|
29
29
|
if (prev === undefined) delete process.env[env]
|
|
30
30
|
if (prev !== undefined) process.env[env] = prev
|
|
31
31
|
})
|
|
32
32
|
|
|
33
33
|
test("skips installation for non-lancedb backends", async () => {
|
|
34
|
-
const { LanceDBRuntime } = await import("../../src/
|
|
34
|
+
const { LanceDBRuntime } = await import("../../src/overlay/lancedb")
|
|
35
35
|
|
|
36
36
|
await LanceDBRuntime.ensure("qdrant")
|
|
37
37
|
|
|
@@ -40,7 +40,7 @@ describe("LanceDBRuntime", () => {
|
|
|
40
40
|
})
|
|
41
41
|
|
|
42
42
|
test("installs the pinned package and exports a file URL for lancedb", async () => {
|
|
43
|
-
const { LanceDBRuntime } = await import("../../src/
|
|
43
|
+
const { LanceDBRuntime } = await import("../../src/overlay/lancedb")
|
|
44
44
|
|
|
45
45
|
await LanceDBRuntime.ensure("lancedb")
|
|
46
46
|
|
|
@@ -49,7 +49,7 @@ describe("LanceDBRuntime", () => {
|
|
|
49
49
|
})
|
|
50
50
|
|
|
51
51
|
test("exposes every LanceDB package that must stay external to bun compile", async () => {
|
|
52
|
-
const { LanceDBRuntime } = await import("../../src/
|
|
52
|
+
const { LanceDBRuntime } = await import("../../src/overlay/lancedb")
|
|
53
53
|
|
|
54
54
|
expect(LanceDBRuntime.external).toEqual([
|
|
55
55
|
"@lancedb/lancedb",
|
|
@@ -64,7 +64,7 @@ describe("LanceDBRuntime", () => {
|
|
|
64
64
|
})
|
|
65
65
|
|
|
66
66
|
test("skips install when runtime path is already set", async () => {
|
|
67
|
-
const { LanceDBRuntime } = await import("../../src/
|
|
67
|
+
const { LanceDBRuntime } = await import("../../src/overlay/lancedb")
|
|
68
68
|
process.env[env] = "file:///already/set.js"
|
|
69
69
|
|
|
70
70
|
await LanceDBRuntime.ensure("lancedb")
|
|
@@ -74,7 +74,7 @@ describe("LanceDBRuntime", () => {
|
|
|
74
74
|
})
|
|
75
75
|
|
|
76
76
|
test("dedupes concurrent ensure calls", async () => {
|
|
77
|
-
const { LanceDBRuntime } = await import("../../src/
|
|
77
|
+
const { LanceDBRuntime } = await import("../../src/overlay/lancedb")
|
|
78
78
|
|
|
79
79
|
await Promise.all([
|
|
80
80
|
LanceDBRuntime.ensure("lancedb"),
|
|
@@ -87,7 +87,7 @@ describe("LanceDBRuntime", () => {
|
|
|
87
87
|
})
|
|
88
88
|
|
|
89
89
|
test("surfaces install failures without swallowing them", async () => {
|
|
90
|
-
const { LanceDBRuntime } = await import("../../src/
|
|
90
|
+
const { LanceDBRuntime } = await import("../../src/overlay/lancedb")
|
|
91
91
|
add.mockImplementationOnce(async () => {
|
|
92
92
|
throw new Error("registry unavailable")
|
|
93
93
|
})
|
|
@@ -97,7 +97,7 @@ describe("LanceDBRuntime", () => {
|
|
|
97
97
|
})
|
|
98
98
|
|
|
99
99
|
test("retries after a failed install", async () => {
|
|
100
|
-
const { LanceDBRuntime } = await import("../../src/
|
|
100
|
+
const { LanceDBRuntime } = await import("../../src/overlay/lancedb")
|
|
101
101
|
add
|
|
102
102
|
.mockImplementationOnce(async () => {
|
|
103
103
|
throw new Error("install failed")
|
package/test/saeeol/logo.test.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { describe, expect, test } from "bun:test"
|
|
2
|
-
import { plain, session, supports, tui } from "../../src/
|
|
2
|
+
import { plain, session, supports, tui } from "../../src/overlay/cli/logo"
|
|
3
3
|
|
|
4
4
|
describe("saeeol logo", () => {
|
|
5
5
|
test("falls back on remote terminals", () => {
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
import { describe, test, expect, spyOn, afterEach } from "bun:test"
|
|
6
6
|
import path from "path"
|
|
7
7
|
import * as LSPServer from "../../src/lsp/server"
|
|
8
|
-
import { TsClient } from "../../src/
|
|
9
|
-
import { TsCheck } from "../../src/
|
|
8
|
+
import { TsClient } from "../../src/overlay/ts-client"
|
|
9
|
+
import { TsCheck } from "../../src/overlay/ts-check"
|
|
10
10
|
import { Flag } from "@saeeol/core/flag/flag"
|
|
11
11
|
import { Instance, type InstanceContext } from "../../src/project/instance"
|
|
12
12
|
import { disposeAllInstances } from "../fixture/fixture"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { describe, expect, test } from "bun:test"
|
|
2
|
-
import { avgPrice, fmtCachedPrice, fmtContext, fmtPrice } from "../../src/
|
|
2
|
+
import { avgPrice, fmtCachedPrice, fmtContext, fmtPrice } from "../../src/overlay/components/model-info-panel-utils"
|
|
3
3
|
|
|
4
4
|
describe("model info panel price formatting", () => {
|
|
5
5
|
test("fmtPrice returns Free for zero", () => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import path from "path"
|
|
2
2
|
import { describe, expect, test } from "bun:test"
|
|
3
|
-
import { ConfigProtection } from "../../../src/
|
|
3
|
+
import { ConfigProtection } from "../../../src/overlay/permission/config-paths"
|
|
4
4
|
import { Global } from "@saeeol/core/global"
|
|
5
|
-
import { SaeeolPaths } from "../../../src/
|
|
5
|
+
import { SaeeolPaths } from "../../../src/overlay/paths"
|
|
6
6
|
|
|
7
7
|
describe("ConfigProtection.isRequest", () => {
|
|
8
8
|
const config = path.resolve(Global.Path.config)
|
|
@@ -15,7 +15,7 @@ import { Truncate } from "../../../src/tool/truncate"
|
|
|
15
15
|
import { BashTool } from "../../../src/tool/bash"
|
|
16
16
|
import { Plugin } from "../../../src/plugin"
|
|
17
17
|
import { disposeAllInstances, tmpdir } from "../../fixture/fixture"
|
|
18
|
-
import { ConfigProtection } from "../../../src/
|
|
18
|
+
import { ConfigProtection } from "../../../src/overlay/permission/config-paths"
|
|
19
19
|
|
|
20
20
|
const runtime = ManagedRuntime.make(
|
|
21
21
|
Layer.mergeAll(
|
|
@@ -5,7 +5,7 @@ import { Identifier } from "../../src/id/id"
|
|
|
5
5
|
import { SessionID, MessageID, PartID } from "../../src/session/schema"
|
|
6
6
|
import { ModelID, ProviderID } from "../../src/provider/schema"
|
|
7
7
|
import { Instance } from "../../src/project/instance"
|
|
8
|
-
import { PlanFollowup } from "../../src/
|
|
8
|
+
import { PlanFollowup } from "../../src/overlay/plan-followup"
|
|
9
9
|
import { Question } from "../../src/question"
|
|
10
10
|
import { Session } from "../../src/session/session"
|
|
11
11
|
import { MessageV2 } from "../../src/session/message-v2"
|
|
@@ -5,7 +5,7 @@ import { TuiEvent } from "../../src/cli/cmd/tui/event"
|
|
|
5
5
|
import { Identifier } from "../../src/id/id"
|
|
6
6
|
import { SessionID, MessageID, PartID } from "../../src/session/schema"
|
|
7
7
|
import { ModelID, ProviderID } from "../../src/provider/schema"
|
|
8
|
-
import { formatTodos, generateHandover, PlanFollowup, PlanFollowupRuntime } from "../../src/
|
|
8
|
+
import { formatTodos, generateHandover, PlanFollowup, PlanFollowupRuntime } from "../../src/overlay/plan-followup"
|
|
9
9
|
import { Instance } from "../../src/project/instance"
|
|
10
10
|
import { Provider } from "../../src/provider/provider"
|
|
11
11
|
import { Question } from "../../src/question"
|
|
@@ -477,7 +477,7 @@ describe("plan follow-up", () => {
|
|
|
477
477
|
|
|
478
478
|
test("ask - retargets prompt queue so injected message is visible in scope", () =>
|
|
479
479
|
withInstance(async () => {
|
|
480
|
-
const { SaeeolSessionPromptQueue } = await import("../../src/
|
|
480
|
+
const { SaeeolSessionPromptQueue } = await import("../../src/overlay/session/prompt-queue")
|
|
481
481
|
const seeded = await seed({ text: "1. Refactor\n2. Ship" })
|
|
482
482
|
|
|
483
483
|
// Simulate the prompt queue having a target set (like during a running loop)
|
|
@@ -3,7 +3,7 @@ import { tmpdir } from "../fixture/fixture"
|
|
|
3
3
|
import path from "path"
|
|
4
4
|
import fs from "fs/promises"
|
|
5
5
|
import { Instance } from "../../src/project/instance"
|
|
6
|
-
import { getSaeeolProjectId } from "../../src/
|
|
6
|
+
import { getSaeeolProjectId } from "../../src/overlay/project-id"
|
|
7
7
|
|
|
8
8
|
describe("project-id", () => {
|
|
9
9
|
describe("normalization", () => {
|