koro-ai 1.0.5 → 1.1.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/bin/koro.mjs +35 -0
- package/package.json +25 -155
- package/README.md +0 -15
- package/bin/koro +0 -16
- package/bin/opencode +0 -179
- package/migration/20260127222353_familiar_lady_ursula/migration.sql +0 -90
- package/migration/20260127222353_familiar_lady_ursula/snapshot.json +0 -796
- package/migration/20260211171708_add_project_commands/migration.sql +0 -1
- package/migration/20260211171708_add_project_commands/snapshot.json +0 -806
- package/migration/20260213144116_wakeful_the_professor/migration.sql +0 -11
- package/migration/20260213144116_wakeful_the_professor/snapshot.json +0 -897
- package/migration/20260225215848_workspace/migration.sql +0 -7
- package/migration/20260225215848_workspace/snapshot.json +0 -959
- package/migration/20260227213759_add_session_workspace_id/migration.sql +0 -2
- package/migration/20260227213759_add_session_workspace_id/snapshot.json +0 -983
- package/migration/20260228203230_blue_harpoon/migration.sql +0 -17
- package/migration/20260228203230_blue_harpoon/snapshot.json +0 -1102
- package/migration/20260303231226_add_workspace_fields/migration.sql +0 -5
- package/migration/20260303231226_add_workspace_fields/snapshot.json +0 -1013
- package/migration/20260309230000_move_org_to_state/migration.sql +0 -3
- package/migration/20260309230000_move_org_to_state/snapshot.json +0 -1156
- package/migration/20260312043431_session_message_cursor/migration.sql +0 -4
- package/migration/20260312043431_session_message_cursor/snapshot.json +0 -1168
- package/migration/20260323234822_events/migration.sql +0 -13
- package/migration/20260323234822_events/snapshot.json +0 -1271
- package/script/build-node.ts +0 -56
- package/script/build.ts +0 -276
- package/script/check-migrations.ts +0 -16
- package/script/postinstall.mjs +0 -131
- package/script/publish.ts +0 -181
- package/script/schema.ts +0 -63
- package/script/seed-e2e.ts +0 -60
- package/script/upgrade-opentui.ts +0 -64
- package/src/account/account.sql.ts +0 -39
- package/src/account/index.ts +0 -424
- package/src/account/repo.ts +0 -163
- package/src/account/schema.ts +0 -91
- package/src/acp/README.md +0 -174
- package/src/acp/agent.ts +0 -1763
- package/src/acp/session.ts +0 -116
- package/src/acp/types.ts +0 -24
- package/src/agent/agent.ts +0 -476
- package/src/agent/generate.txt +0 -75
- package/src/agent/prompt/compaction.txt +0 -15
- package/src/agent/prompt/explore.txt +0 -18
- package/src/agent/prompt/summary.txt +0 -11
- package/src/agent/prompt/title.txt +0 -44
- package/src/auth/index.ts +0 -109
- package/src/bus/bus-event.ts +0 -40
- package/src/bus/global.ts +0 -10
- package/src/bus/index.ts +0 -185
- package/src/cli/bootstrap.ts +0 -17
- package/src/cli/cmd/account.ts +0 -257
- package/src/cli/cmd/acp.ts +0 -70
- package/src/cli/cmd/agent.ts +0 -245
- package/src/cli/cmd/cmd.ts +0 -7
- package/src/cli/cmd/db.ts +0 -119
- package/src/cli/cmd/debug/agent.ts +0 -167
- package/src/cli/cmd/debug/config.ts +0 -16
- package/src/cli/cmd/debug/file.ts +0 -97
- package/src/cli/cmd/debug/index.ts +0 -48
- package/src/cli/cmd/debug/lsp.ts +0 -53
- package/src/cli/cmd/debug/ripgrep.ts +0 -87
- package/src/cli/cmd/debug/scrap.ts +0 -16
- package/src/cli/cmd/debug/skill.ts +0 -16
- package/src/cli/cmd/debug/snapshot.ts +0 -52
- package/src/cli/cmd/export.ts +0 -89
- package/src/cli/cmd/generate.ts +0 -38
- package/src/cli/cmd/github.ts +0 -1646
- package/src/cli/cmd/import.ts +0 -207
- package/src/cli/cmd/mcp.ts +0 -754
- package/src/cli/cmd/models.ts +0 -78
- package/src/cli/cmd/plug.ts +0 -233
- package/src/cli/cmd/pr.ts +0 -127
- package/src/cli/cmd/providers.ts +0 -478
- package/src/cli/cmd/run.ts +0 -676
- package/src/cli/cmd/serve.ts +0 -24
- package/src/cli/cmd/session.ts +0 -159
- package/src/cli/cmd/stats.ts +0 -410
- package/src/cli/cmd/tui/app.tsx +0 -919
- package/src/cli/cmd/tui/attach.ts +0 -88
- package/src/cli/cmd/tui/component/border.tsx +0 -21
- package/src/cli/cmd/tui/component/dialog-agent.tsx +0 -31
- package/src/cli/cmd/tui/component/dialog-command.tsx +0 -171
- package/src/cli/cmd/tui/component/dialog-import-share.tsx +0 -118
- package/src/cli/cmd/tui/component/dialog-mcp.tsx +0 -86
- package/src/cli/cmd/tui/component/dialog-model.tsx +0 -179
- package/src/cli/cmd/tui/component/dialog-provider.tsx +0 -329
- package/src/cli/cmd/tui/component/dialog-session-list.tsx +0 -108
- package/src/cli/cmd/tui/component/dialog-session-rename.tsx +0 -31
- package/src/cli/cmd/tui/component/dialog-skill.tsx +0 -36
- package/src/cli/cmd/tui/component/dialog-stash.tsx +0 -87
- package/src/cli/cmd/tui/component/dialog-status.tsx +0 -168
- package/src/cli/cmd/tui/component/dialog-tag.tsx +0 -44
- package/src/cli/cmd/tui/component/dialog-theme-list.tsx +0 -50
- package/src/cli/cmd/tui/component/dialog-variant.tsx +0 -39
- package/src/cli/cmd/tui/component/dialog-workspace-list.tsx +0 -320
- package/src/cli/cmd/tui/component/error-component.tsx +0 -92
- package/src/cli/cmd/tui/component/logo.tsx +0 -85
- package/src/cli/cmd/tui/component/plugin-route-missing.tsx +0 -14
- package/src/cli/cmd/tui/component/prompt/autocomplete.tsx +0 -672
- package/src/cli/cmd/tui/component/prompt/frecency.tsx +0 -90
- package/src/cli/cmd/tui/component/prompt/history.tsx +0 -108
- package/src/cli/cmd/tui/component/prompt/index.tsx +0 -1310
- package/src/cli/cmd/tui/component/prompt/part.ts +0 -16
- package/src/cli/cmd/tui/component/prompt/stash.tsx +0 -101
- package/src/cli/cmd/tui/component/spinner.tsx +0 -24
- package/src/cli/cmd/tui/component/startup-loading.tsx +0 -63
- package/src/cli/cmd/tui/component/task-panel.tsx +0 -44
- package/src/cli/cmd/tui/component/textarea-keybindings.ts +0 -73
- package/src/cli/cmd/tui/component/todo-item.tsx +0 -32
- package/src/cli/cmd/tui/component/token-bar.tsx +0 -60
- package/src/cli/cmd/tui/component/workspace/dialog-session-list.tsx +0 -151
- package/src/cli/cmd/tui/context/args.tsx +0 -15
- package/src/cli/cmd/tui/context/directory.ts +0 -13
- package/src/cli/cmd/tui/context/exit.tsx +0 -60
- package/src/cli/cmd/tui/context/helper.tsx +0 -25
- package/src/cli/cmd/tui/context/keybind.tsx +0 -105
- package/src/cli/cmd/tui/context/kv.tsx +0 -52
- package/src/cli/cmd/tui/context/local.tsx +0 -412
- package/src/cli/cmd/tui/context/plugin-keybinds.ts +0 -41
- package/src/cli/cmd/tui/context/prompt.tsx +0 -18
- package/src/cli/cmd/tui/context/route.tsx +0 -52
- package/src/cli/cmd/tui/context/sdk.tsx +0 -128
- package/src/cli/cmd/tui/context/sync.tsx +0 -504
- package/src/cli/cmd/tui/context/theme/aura.json +0 -69
- package/src/cli/cmd/tui/context/theme/ayu.json +0 -80
- package/src/cli/cmd/tui/context/theme/carbonfox.json +0 -248
- package/src/cli/cmd/tui/context/theme/catppuccin-frappe.json +0 -233
- package/src/cli/cmd/tui/context/theme/catppuccin-macchiato.json +0 -233
- package/src/cli/cmd/tui/context/theme/catppuccin.json +0 -112
- package/src/cli/cmd/tui/context/theme/cobalt2.json +0 -228
- package/src/cli/cmd/tui/context/theme/cursor.json +0 -249
- package/src/cli/cmd/tui/context/theme/dracula.json +0 -219
- package/src/cli/cmd/tui/context/theme/everforest.json +0 -241
- package/src/cli/cmd/tui/context/theme/flexoki.json +0 -237
- package/src/cli/cmd/tui/context/theme/github.json +0 -233
- package/src/cli/cmd/tui/context/theme/gruvbox.json +0 -242
- package/src/cli/cmd/tui/context/theme/gtr.json +0 -245
- package/src/cli/cmd/tui/context/theme/kanagawa.json +0 -77
- package/src/cli/cmd/tui/context/theme/koro.json +0 -241
- package/src/cli/cmd/tui/context/theme/lucent-orng.json +0 -237
- package/src/cli/cmd/tui/context/theme/material.json +0 -235
- package/src/cli/cmd/tui/context/theme/matrix.json +0 -77
- package/src/cli/cmd/tui/context/theme/mercury.json +0 -252
- package/src/cli/cmd/tui/context/theme/monokai.json +0 -221
- package/src/cli/cmd/tui/context/theme/nightowl.json +0 -221
- package/src/cli/cmd/tui/context/theme/nord.json +0 -223
- package/src/cli/cmd/tui/context/theme/one-dark.json +0 -84
- package/src/cli/cmd/tui/context/theme/opencode.json +0 -245
- package/src/cli/cmd/tui/context/theme/orng.json +0 -249
- package/src/cli/cmd/tui/context/theme/osaka-jade.json +0 -93
- package/src/cli/cmd/tui/context/theme/palenight.json +0 -222
- package/src/cli/cmd/tui/context/theme/rosepine.json +0 -234
- package/src/cli/cmd/tui/context/theme/solarized.json +0 -223
- package/src/cli/cmd/tui/context/theme/synthwave84.json +0 -226
- package/src/cli/cmd/tui/context/theme/tokyonight.json +0 -243
- package/src/cli/cmd/tui/context/theme/vercel.json +0 -245
- package/src/cli/cmd/tui/context/theme/vesper.json +0 -218
- package/src/cli/cmd/tui/context/theme/zenburn.json +0 -223
- package/src/cli/cmd/tui/context/theme.tsx +0 -1240
- package/src/cli/cmd/tui/context/tui-config.tsx +0 -9
- package/src/cli/cmd/tui/event.ts +0 -49
- package/src/cli/cmd/tui/feature-plugins/home/footer.tsx +0 -93
- package/src/cli/cmd/tui/feature-plugins/home/tips-view.tsx +0 -152
- package/src/cli/cmd/tui/feature-plugins/home/tips.tsx +0 -50
- package/src/cli/cmd/tui/feature-plugins/sidebar/context.tsx +0 -63
- package/src/cli/cmd/tui/feature-plugins/sidebar/files.tsx +0 -62
- package/src/cli/cmd/tui/feature-plugins/sidebar/footer.tsx +0 -93
- package/src/cli/cmd/tui/feature-plugins/sidebar/lsp.tsx +0 -66
- package/src/cli/cmd/tui/feature-plugins/sidebar/mcp.tsx +0 -96
- package/src/cli/cmd/tui/feature-plugins/sidebar/todo.tsx +0 -48
- package/src/cli/cmd/tui/feature-plugins/system/plugins.tsx +0 -270
- package/src/cli/cmd/tui/plugin/api.tsx +0 -430
- package/src/cli/cmd/tui/plugin/index.ts +0 -3
- package/src/cli/cmd/tui/plugin/internal.ts +0 -27
- package/src/cli/cmd/tui/plugin/runtime.ts +0 -1033
- package/src/cli/cmd/tui/plugin/slots.tsx +0 -60
- package/src/cli/cmd/tui/routes/home.tsx +0 -84
- package/src/cli/cmd/tui/routes/session/dialog-fork-from-timeline.tsx +0 -65
- package/src/cli/cmd/tui/routes/session/dialog-message.tsx +0 -110
- package/src/cli/cmd/tui/routes/session/dialog-subagent.tsx +0 -26
- package/src/cli/cmd/tui/routes/session/dialog-timeline.tsx +0 -47
- package/src/cli/cmd/tui/routes/session/footer.tsx +0 -93
- package/src/cli/cmd/tui/routes/session/index.tsx +0 -2270
- package/src/cli/cmd/tui/routes/session/permission.tsx +0 -691
- package/src/cli/cmd/tui/routes/session/question.tsx +0 -468
- package/src/cli/cmd/tui/routes/session/sidebar.tsx +0 -74
- package/src/cli/cmd/tui/routes/session/subagent-footer.tsx +0 -131
- package/src/cli/cmd/tui/thread.ts +0 -232
- package/src/cli/cmd/tui/ui/dialog-alert.tsx +0 -59
- package/src/cli/cmd/tui/ui/dialog-confirm.tsx +0 -89
- package/src/cli/cmd/tui/ui/dialog-export-options.tsx +0 -211
- package/src/cli/cmd/tui/ui/dialog-help.tsx +0 -40
- package/src/cli/cmd/tui/ui/dialog-prompt.tsx +0 -130
- package/src/cli/cmd/tui/ui/dialog-select.tsx +0 -409
- package/src/cli/cmd/tui/ui/dialog.tsx +0 -192
- package/src/cli/cmd/tui/ui/link.tsx +0 -28
- package/src/cli/cmd/tui/ui/spinner.ts +0 -368
- package/src/cli/cmd/tui/ui/toast.tsx +0 -100
- package/src/cli/cmd/tui/util/clipboard.ts +0 -192
- package/src/cli/cmd/tui/util/editor.ts +0 -37
- package/src/cli/cmd/tui/util/model.ts +0 -23
- package/src/cli/cmd/tui/util/scroll.ts +0 -23
- package/src/cli/cmd/tui/util/selection.ts +0 -25
- package/src/cli/cmd/tui/util/signal.ts +0 -7
- package/src/cli/cmd/tui/util/terminal.ts +0 -114
- package/src/cli/cmd/tui/util/transcript.ts +0 -112
- package/src/cli/cmd/tui/win32.ts +0 -129
- package/src/cli/cmd/tui/worker.ts +0 -175
- package/src/cli/cmd/uninstall.ts +0 -353
- package/src/cli/cmd/upgrade.ts +0 -73
- package/src/cli/cmd/web.ts +0 -81
- package/src/cli/effect/prompt.ts +0 -25
- package/src/cli/error.ts +0 -46
- package/src/cli/heap.ts +0 -59
- package/src/cli/logo.ts +0 -14
- package/src/cli/network.ts +0 -60
- package/src/cli/ui.ts +0 -133
- package/src/cli/upgrade.ts +0 -31
- package/src/command/index.ts +0 -195
- package/src/command/template/initialize.txt +0 -66
- package/src/command/template/review.txt +0 -101
- package/src/config/config.ts +0 -1591
- package/src/config/markdown.ts +0 -99
- package/src/config/paths.ts +0 -181
- package/src/config/tui-migrate.ts +0 -155
- package/src/config/tui-schema.ts +0 -36
- package/src/config/tui.ts +0 -171
- package/src/control-plane/adaptors/index.ts +0 -20
- package/src/control-plane/adaptors/worktree.ts +0 -38
- package/src/control-plane/schema.ts +0 -17
- package/src/control-plane/sse.ts +0 -66
- package/src/control-plane/types.ts +0 -21
- package/src/control-plane/workspace.sql.ts +0 -17
- package/src/control-plane/workspace.ts +0 -154
- package/src/effect/cross-spawn-spawner.ts +0 -502
- package/src/effect/instance-ref.ts +0 -6
- package/src/effect/instance-registry.ts +0 -12
- package/src/effect/instance-state.ts +0 -82
- package/src/effect/run-service.ts +0 -33
- package/src/effect/runner.ts +0 -216
- package/src/env/index.ts +0 -28
- package/src/file/ignore.ts +0 -82
- package/src/file/index.ts +0 -686
- package/src/file/protected.ts +0 -59
- package/src/file/ripgrep.ts +0 -376
- package/src/file/time.ts +0 -133
- package/src/file/watcher.ts +0 -171
- package/src/filesystem/index.ts +0 -226
- package/src/flag/flag.ts +0 -155
- package/src/format/formatter.ts +0 -413
- package/src/format/index.ts +0 -203
- package/src/git/index.ts +0 -303
- package/src/global/index.ts +0 -161
- package/src/id/id.ts +0 -85
- package/src/ide/index.ts +0 -74
- package/src/index.ts +0 -240
- package/src/installation/index.ts +0 -355
- package/src/installation/meta.ts +0 -7
- package/src/lsp/client.ts +0 -252
- package/src/lsp/index.ts +0 -558
- package/src/lsp/language.ts +0 -120
- package/src/lsp/launch.ts +0 -21
- package/src/lsp/server.ts +0 -1958
- package/src/mcp/auth.ts +0 -173
- package/src/mcp/index.ts +0 -921
- package/src/mcp/oauth-callback.ts +0 -215
- package/src/mcp/oauth-provider.ts +0 -185
- package/src/memory/index.ts +0 -117
- package/src/node.ts +0 -1
- package/src/npm/index.ts +0 -180
- package/src/orchestrator/agent-registry.ts +0 -38
- package/src/orchestrator/conflict.ts +0 -25
- package/src/orchestrator/context-manager.ts +0 -22
- package/src/orchestrator/index.ts +0 -9
- package/src/orchestrator/scheduler.ts +0 -30
- package/src/orchestrator/state-tracker.ts +0 -71
- package/src/orchestrator/task-manager.ts +0 -69
- package/src/patch/index.ts +0 -680
- package/src/permission/arity.ts +0 -163
- package/src/permission/evaluate.ts +0 -15
- package/src/permission/index.ts +0 -325
- package/src/permission/schema.ts +0 -17
- package/src/plugin/codex.ts +0 -596
- package/src/plugin/example.ts +0 -18
- package/src/plugin/github-copilot/copilot.ts +0 -353
- package/src/plugin/github-copilot/models.ts +0 -144
- package/src/plugin/index.ts +0 -276
- package/src/plugin/install.ts +0 -439
- package/src/plugin/loader.ts +0 -174
- package/src/plugin/meta.ts +0 -188
- package/src/plugin/package.json +0 -44
- package/src/plugin/shared.ts +0 -307
- package/src/plugin/shell.ts +0 -136
- package/src/plugin/tool.ts +0 -38
- package/src/plugin/tui.ts +0 -508
- package/src/project/bootstrap.ts +0 -31
- package/src/project/instance.ts +0 -175
- package/src/project/project.sql.ts +0 -16
- package/src/project/project.ts +0 -519
- package/src/project/schema.ts +0 -16
- package/src/project/state.ts +0 -70
- package/src/project/vcs.ts +0 -240
- package/src/provider/auth.ts +0 -253
- package/src/provider/error.ts +0 -197
- package/src/provider/models-snapshot.d.ts +0 -2
- package/src/provider/models-snapshot.js +0 -3
- package/src/provider/models-snapshot.ts +0 -60410
- package/src/provider/models.ts +0 -162
- package/src/provider/provider.ts +0 -1677
- package/src/provider/schema.ts +0 -38
- package/src/provider/sdk/copilot/README.md +0 -5
- package/src/provider/sdk/copilot/chat/convert-to-openai-compatible-chat-messages.ts +0 -170
- package/src/provider/sdk/copilot/chat/get-response-metadata.ts +0 -15
- package/src/provider/sdk/copilot/chat/map-openai-compatible-finish-reason.ts +0 -19
- package/src/provider/sdk/copilot/chat/openai-compatible-api-types.ts +0 -64
- package/src/provider/sdk/copilot/chat/openai-compatible-chat-language-model.ts +0 -815
- package/src/provider/sdk/copilot/chat/openai-compatible-chat-options.ts +0 -28
- package/src/provider/sdk/copilot/chat/openai-compatible-metadata-extractor.ts +0 -44
- package/src/provider/sdk/copilot/chat/openai-compatible-prepare-tools.ts +0 -83
- package/src/provider/sdk/copilot/copilot-provider.ts +0 -100
- package/src/provider/sdk/copilot/index.ts +0 -2
- package/src/provider/sdk/copilot/openai-compatible-error.ts +0 -27
- package/src/provider/sdk/copilot/responses/convert-to-openai-responses-input.ts +0 -335
- package/src/provider/sdk/copilot/responses/map-openai-responses-finish-reason.ts +0 -22
- package/src/provider/sdk/copilot/responses/openai-config.ts +0 -18
- package/src/provider/sdk/copilot/responses/openai-error.ts +0 -22
- package/src/provider/sdk/copilot/responses/openai-responses-api-types.ts +0 -214
- package/src/provider/sdk/copilot/responses/openai-responses-language-model.ts +0 -1769
- package/src/provider/sdk/copilot/responses/openai-responses-prepare-tools.ts +0 -173
- package/src/provider/sdk/copilot/responses/openai-responses-settings.ts +0 -1
- package/src/provider/sdk/copilot/responses/tool/code-interpreter.ts +0 -87
- package/src/provider/sdk/copilot/responses/tool/file-search.ts +0 -127
- package/src/provider/sdk/copilot/responses/tool/image-generation.ts +0 -114
- package/src/provider/sdk/copilot/responses/tool/local-shell.ts +0 -64
- package/src/provider/sdk/copilot/responses/tool/web-search-preview.ts +0 -103
- package/src/provider/sdk/copilot/responses/tool/web-search.ts +0 -102
- package/src/provider/transform.ts +0 -1046
- package/src/pty/index.ts +0 -401
- package/src/pty/schema.ts +0 -17
- package/src/question/index.ts +0 -224
- package/src/question/schema.ts +0 -17
- package/src/script/index.ts +0 -77
- package/src/script/package.json +0 -17
- package/src/sdk/client.ts +0 -55
- package/src/sdk/gen/client/client.gen.ts +0 -212
- package/src/sdk/gen/client/index.ts +0 -25
- package/src/sdk/gen/client/types.gen.ts +0 -222
- package/src/sdk/gen/client/utils.gen.ts +0 -287
- package/src/sdk/gen/client.gen.ts +0 -22
- package/src/sdk/gen/core/auth.gen.ts +0 -41
- package/src/sdk/gen/core/bodySerializer.gen.ts +0 -74
- package/src/sdk/gen/core/params.gen.ts +0 -144
- package/src/sdk/gen/core/pathSerializer.gen.ts +0 -167
- package/src/sdk/gen/core/queryKeySerializer.gen.ts +0 -111
- package/src/sdk/gen/core/serverSentEvents.gen.ts +0 -210
- package/src/sdk/gen/core/types.gen.ts +0 -91
- package/src/sdk/gen/core/utils.gen.ts +0 -109
- package/src/sdk/gen/sdk.gen.ts +0 -1197
- package/src/sdk/gen/types.gen.ts +0 -3904
- package/src/sdk/index.ts +0 -21
- package/src/sdk/package.json +0 -35
- package/src/sdk/process.ts +0 -31
- package/src/sdk/server.ts +0 -134
- package/src/sdk/v2/client.ts +0 -81
- package/src/sdk/v2/gen/client/client.gen.ts +0 -285
- package/src/sdk/v2/gen/client/index.ts +0 -25
- package/src/sdk/v2/gen/client/types.gen.ts +0 -202
- package/src/sdk/v2/gen/client/utils.gen.ts +0 -289
- package/src/sdk/v2/gen/client.gen.ts +0 -18
- package/src/sdk/v2/gen/core/auth.gen.ts +0 -41
- package/src/sdk/v2/gen/core/bodySerializer.gen.ts +0 -82
- package/src/sdk/v2/gen/core/params.gen.ts +0 -169
- package/src/sdk/v2/gen/core/pathSerializer.gen.ts +0 -167
- package/src/sdk/v2/gen/core/queryKeySerializer.gen.ts +0 -111
- package/src/sdk/v2/gen/core/serverSentEvents.gen.ts +0 -239
- package/src/sdk/v2/gen/core/types.gen.ts +0 -86
- package/src/sdk/v2/gen/core/utils.gen.ts +0 -137
- package/src/sdk/v2/gen/sdk.gen.ts +0 -4114
- package/src/sdk/v2/gen/types.gen.ts +0 -5187
- package/src/sdk/v2/index.ts +0 -21
- package/src/sdk/v2/server.ts +0 -134
- package/src/server/error.ts +0 -36
- package/src/server/event.ts +0 -7
- package/src/server/instance.ts +0 -314
- package/src/server/mdns.ts +0 -60
- package/src/server/middleware.ts +0 -33
- package/src/server/projectors.ts +0 -28
- package/src/server/router.ts +0 -99
- package/src/server/routes/config.ts +0 -92
- package/src/server/routes/event.ts +0 -83
- package/src/server/routes/experimental.ts +0 -271
- package/src/server/routes/file.ts +0 -197
- package/src/server/routes/global.ts +0 -312
- package/src/server/routes/mcp.ts +0 -225
- package/src/server/routes/permission.ts +0 -69
- package/src/server/routes/project.ts +0 -118
- package/src/server/routes/provider.ts +0 -171
- package/src/server/routes/pty.ts +0 -211
- package/src/server/routes/question.ts +0 -99
- package/src/server/routes/session.ts +0 -1031
- package/src/server/routes/tui.ts +0 -379
- package/src/server/routes/workspace.ts +0 -94
- package/src/server/server.ts +0 -312
- package/src/session/compaction.ts +0 -428
- package/src/session/index.ts +0 -887
- package/src/session/instruction.ts +0 -258
- package/src/session/llm.ts +0 -370
- package/src/session/message-v2.ts +0 -1031
- package/src/session/message.ts +0 -191
- package/src/session/overflow.ts +0 -22
- package/src/session/processor.ts +0 -523
- package/src/session/projectors.ts +0 -135
- package/src/session/prompt/anthropic.txt +0 -105
- package/src/session/prompt/beast.txt +0 -147
- package/src/session/prompt/build-switch.txt +0 -5
- package/src/session/prompt/codex.txt +0 -79
- package/src/session/prompt/copilot-gpt-5.txt +0 -143
- package/src/session/prompt/default.txt +0 -105
- package/src/session/prompt/gemini.txt +0 -155
- package/src/session/prompt/gpt.txt +0 -107
- package/src/session/prompt/kimi.txt +0 -114
- package/src/session/prompt/max-steps.txt +0 -16
- package/src/session/prompt/plan-reminder-anthropic.txt +0 -67
- package/src/session/prompt/plan.txt +0 -26
- package/src/session/prompt/trinity.txt +0 -97
- package/src/session/prompt.ts +0 -1908
- package/src/session/retry.ts +0 -106
- package/src/session/revert.ts +0 -176
- package/src/session/schema.ts +0 -38
- package/src/session/session.sql.ts +0 -103
- package/src/session/status.ts +0 -102
- package/src/session/summary.ts +0 -177
- package/src/session/system.ts +0 -76
- package/src/session/todo.ts +0 -95
- package/src/share/share-next.ts +0 -369
- package/src/share/share.sql.ts +0 -13
- package/src/shell/shell.ts +0 -110
- package/src/skill/discovery.ts +0 -116
- package/src/skill/index.ts +0 -277
- package/src/snapshot/index.ts +0 -571
- package/src/sql.d.ts +0 -4
- package/src/storage/db.bun.ts +0 -8
- package/src/storage/db.node.ts +0 -8
- package/src/storage/db.ts +0 -174
- package/src/storage/json-migration.ts +0 -425
- package/src/storage/schema.sql.ts +0 -10
- package/src/storage/schema.ts +0 -5
- package/src/storage/storage.ts +0 -353
- package/src/sync/README.md +0 -179
- package/src/sync/event.sql.ts +0 -16
- package/src/sync/index.ts +0 -263
- package/src/sync/schema.ts +0 -14
- package/src/token/index.ts +0 -77
- package/src/tool/apply_patch.ts +0 -281
- package/src/tool/apply_patch.txt +0 -33
- package/src/tool/bash.ts +0 -496
- package/src/tool/bash.txt +0 -117
- package/src/tool/batch.ts +0 -183
- package/src/tool/batch.txt +0 -24
- package/src/tool/codesearch.ts +0 -132
- package/src/tool/codesearch.txt +0 -12
- package/src/tool/edit.ts +0 -667
- package/src/tool/edit.txt +0 -10
- package/src/tool/external-directory.ts +0 -37
- package/src/tool/glob.ts +0 -78
- package/src/tool/glob.txt +0 -6
- package/src/tool/grep.ts +0 -156
- package/src/tool/grep.txt +0 -8
- package/src/tool/invalid.ts +0 -17
- package/src/tool/ls.ts +0 -121
- package/src/tool/ls.txt +0 -1
- package/src/tool/lsp.ts +0 -97
- package/src/tool/lsp.txt +0 -19
- package/src/tool/multiedit.ts +0 -46
- package/src/tool/multiedit.txt +0 -41
- package/src/tool/plan-enter.txt +0 -14
- package/src/tool/plan-exit.txt +0 -13
- package/src/tool/plan.ts +0 -131
- package/src/tool/question.ts +0 -46
- package/src/tool/question.txt +0 -10
- package/src/tool/read.ts +0 -296
- package/src/tool/read.txt +0 -14
- package/src/tool/registry.ts +0 -248
- package/src/tool/schema.ts +0 -17
- package/src/tool/skill.ts +0 -105
- package/src/tool/task.ts +0 -166
- package/src/tool/task.txt +0 -60
- package/src/tool/todo.ts +0 -48
- package/src/tool/todowrite.txt +0 -167
- package/src/tool/tool.ts +0 -112
- package/src/tool/truncate.ts +0 -144
- package/src/tool/truncation-dir.ts +0 -4
- package/src/tool/webfetch.ts +0 -206
- package/src/tool/webfetch.txt +0 -13
- package/src/tool/websearch.ts +0 -150
- package/src/tool/websearch.txt +0 -14
- package/src/tool/write.ts +0 -84
- package/src/tool/write.txt +0 -8
- package/src/util/abort.ts +0 -35
- package/src/util/archive.ts +0 -17
- package/src/util/color.ts +0 -19
- package/src/util/context.ts +0 -25
- package/src/util/data-url.ts +0 -9
- package/src/util/defer.ts +0 -12
- package/src/util/effect-http-client.ts +0 -11
- package/src/util/effect-zod.ts +0 -98
- package/src/util/error.ts +0 -77
- package/src/util/filesystem.ts +0 -245
- package/src/util/flock.ts +0 -333
- package/src/util/fn.ts +0 -21
- package/src/util/format.ts +0 -20
- package/src/util/glob.ts +0 -34
- package/src/util/hash.ts +0 -7
- package/src/util/iife.ts +0 -3
- package/src/util/keybind.ts +0 -103
- package/src/util/lazy.ts +0 -23
- package/src/util/locale.ts +0 -81
- package/src/util/lock.ts +0 -98
- package/src/util/log.ts +0 -182
- package/src/util/network.ts +0 -9
- package/src/util/process.ts +0 -176
- package/src/util/queue.ts +0 -32
- package/src/util/record.ts +0 -3
- package/src/util/rpc.ts +0 -66
- package/src/util/schema.ts +0 -53
- package/src/util/scrap.ts +0 -10
- package/src/util/signal.ts +0 -12
- package/src/util/timeout.ts +0 -14
- package/src/util/token.ts +0 -7
- package/src/util/update-schema.ts +0 -13
- package/src/util/which.ts +0 -14
- package/src/util/wildcard.ts +0 -59
- package/src/util-koro/array.ts +0 -10
- package/src/util-koro/binary.ts +0 -41
- package/src/util-koro/encode.ts +0 -51
- package/src/util-koro/error.ts +0 -54
- package/src/util-koro/fn.ts +0 -11
- package/src/util-koro/identifier.ts +0 -48
- package/src/util-koro/iife.ts +0 -3
- package/src/util-koro/lazy.ts +0 -11
- package/src/util-koro/module.ts +0 -10
- package/src/util-koro/package.json +0 -20
- package/src/util-koro/path.ts +0 -37
- package/src/util-koro/retry.ts +0 -41
- package/src/util-koro/slug.ts +0 -74
- package/src/worktree/index.ts +0 -612
- package/test/AGENTS.md +0 -81
- package/test/account/repo.test.ts +0 -326
- package/test/account/service.test.ts +0 -393
- package/test/acp/agent-interface.test.ts +0 -51
- package/test/acp/event-subscription.test.ts +0 -685
- package/test/agent/agent.test.ts +0 -717
- package/test/auth/auth.test.ts +0 -58
- package/test/bus/bus-effect.test.ts +0 -164
- package/test/bus/bus-integration.test.ts +0 -87
- package/test/bus/bus.test.ts +0 -219
- package/test/cli/account.test.ts +0 -26
- package/test/cli/cmd/tui/prompt-part.test.ts +0 -47
- package/test/cli/github-action.test.ts +0 -198
- package/test/cli/github-remote.test.ts +0 -80
- package/test/cli/import.test.ts +0 -54
- package/test/cli/plugin-auth-picker.test.ts +0 -120
- package/test/cli/tui/keybind-plugin.test.ts +0 -90
- package/test/cli/tui/plugin-add.test.ts +0 -107
- package/test/cli/tui/plugin-install.test.ts +0 -89
- package/test/cli/tui/plugin-lifecycle.test.ts +0 -225
- package/test/cli/tui/plugin-loader-entrypoint.test.ts +0 -492
- package/test/cli/tui/plugin-loader-pure.test.ts +0 -72
- package/test/cli/tui/plugin-loader.test.ts +0 -752
- package/test/cli/tui/plugin-toggle.test.ts +0 -159
- package/test/cli/tui/slot-replace.test.tsx +0 -47
- package/test/cli/tui/theme-store.test.ts +0 -51
- package/test/cli/tui/thread.test.ts +0 -128
- package/test/cli/tui/transcript.test.ts +0 -426
- package/test/config/agent-color.test.ts +0 -71
- package/test/config/config.test.ts +0 -2348
- package/test/config/fixtures/empty-frontmatter.md +0 -4
- package/test/config/fixtures/frontmatter.md +0 -28
- package/test/config/fixtures/markdown-header.md +0 -11
- package/test/config/fixtures/no-frontmatter.md +0 -1
- package/test/config/fixtures/weird-model-id.md +0 -13
- package/test/config/markdown.test.ts +0 -228
- package/test/config/tui.test.ts +0 -752
- package/test/control-plane/sse.test.ts +0 -56
- package/test/effect/cross-spawn-spawner.test.ts +0 -412
- package/test/effect/instance-state.test.ts +0 -482
- package/test/effect/run-service.test.ts +0 -46
- package/test/effect/runner.test.ts +0 -523
- package/test/fake/provider.ts +0 -81
- package/test/file/fsmonitor.test.ts +0 -62
- package/test/file/ignore.test.ts +0 -10
- package/test/file/index.test.ts +0 -946
- package/test/file/path-traversal.test.ts +0 -198
- package/test/file/ripgrep.test.ts +0 -54
- package/test/file/time.test.ts +0 -445
- package/test/file/watcher.test.ts +0 -247
- package/test/filesystem/filesystem.test.ts +0 -319
- package/test/fixture/db.ts +0 -11
- package/test/fixture/fixture.test.ts +0 -26
- package/test/fixture/fixture.ts +0 -172
- package/test/fixture/flock-worker.ts +0 -72
- package/test/fixture/lsp/fake-lsp-server.js +0 -77
- package/test/fixture/plug-worker.ts +0 -93
- package/test/fixture/plugin-meta-worker.ts +0 -26
- package/test/fixture/skills/agents-sdk/SKILL.md +0 -152
- package/test/fixture/skills/agents-sdk/references/callable.md +0 -92
- package/test/fixture/skills/cloudflare/SKILL.md +0 -211
- package/test/fixture/skills/index.json +0 -6
- package/test/fixture/tui-plugin.ts +0 -337
- package/test/fixture/tui-runtime.ts +0 -27
- package/test/format/format.test.ts +0 -171
- package/test/git/git.test.ts +0 -128
- package/test/ide/ide.test.ts +0 -82
- package/test/installation/installation.test.ts +0 -151
- package/test/keybind.test.ts +0 -421
- package/test/lib/effect.ts +0 -53
- package/test/lib/filesystem.ts +0 -10
- package/test/lib/llm-server.ts +0 -795
- package/test/lsp/client.test.ts +0 -95
- package/test/lsp/index.test.ts +0 -55
- package/test/lsp/launch.test.ts +0 -22
- package/test/lsp/lifecycle.test.ts +0 -147
- package/test/mcp/headers.test.ts +0 -153
- package/test/mcp/lifecycle.test.ts +0 -750
- package/test/mcp/oauth-auto-connect.test.ts +0 -199
- package/test/mcp/oauth-browser.test.ts +0 -249
- package/test/memory/abort-leak.test.ts +0 -137
- package/test/patch/patch.test.ts +0 -348
- package/test/permission/arity.test.ts +0 -33
- package/test/permission/next.test.ts +0 -1148
- package/test/permission-task.test.ts +0 -323
- package/test/plugin/auth-override.test.ts +0 -74
- package/test/plugin/codex.test.ts +0 -123
- package/test/plugin/github-copilot-models.test.ts +0 -117
- package/test/plugin/install-concurrency.test.ts +0 -140
- package/test/plugin/install.test.ts +0 -570
- package/test/plugin/loader-shared.test.ts +0 -1136
- package/test/plugin/meta.test.ts +0 -137
- package/test/plugin/trigger.test.ts +0 -111
- package/test/preload.ts +0 -90
- package/test/project/migrate-global.test.ts +0 -140
- package/test/project/project.test.ts +0 -459
- package/test/project/state.test.ts +0 -115
- package/test/project/vcs.test.ts +0 -228
- package/test/project/worktree-remove.test.ts +0 -96
- package/test/project/worktree.test.ts +0 -173
- package/test/provider/amazon-bedrock.test.ts +0 -447
- package/test/provider/copilot/convert-to-copilot-messages.test.ts +0 -523
- package/test/provider/copilot/copilot-chat-model.test.ts +0 -592
- package/test/provider/gitlab-duo.test.ts +0 -412
- package/test/provider/provider.test.ts +0 -2284
- package/test/provider/transform.test.ts +0 -2839
- package/test/pty/pty-output-isolation.test.ts +0 -141
- package/test/pty/pty-session.test.ts +0 -92
- package/test/pty/pty-shell.test.ts +0 -59
- package/test/question/question.test.ts +0 -453
- package/test/server/global-session-list.test.ts +0 -89
- package/test/server/project-init-git.test.ts +0 -121
- package/test/server/session-actions.test.ts +0 -83
- package/test/server/session-list.test.ts +0 -98
- package/test/server/session-messages.test.ts +0 -159
- package/test/server/session-select.test.ts +0 -84
- package/test/session/compaction.test.ts +0 -1212
- package/test/session/instruction.test.ts +0 -286
- package/test/session/llm.test.ts +0 -1098
- package/test/session/message-v2.test.ts +0 -957
- package/test/session/messages-pagination.test.ts +0 -885
- package/test/session/processor-effect.test.ts +0 -747
- package/test/session/prompt-effect.test.ts +0 -1241
- package/test/session/prompt.test.ts +0 -518
- package/test/session/retry.test.ts +0 -232
- package/test/session/revert-compact.test.ts +0 -621
- package/test/session/session.test.ts +0 -142
- package/test/session/snapshot-tool-race.test.ts +0 -242
- package/test/session/structured-output-integration.test.ts +0 -233
- package/test/session/structured-output.test.ts +0 -391
- package/test/session/system.test.ts +0 -59
- package/test/share/share-next.test.ts +0 -333
- package/test/shell/shell.test.ts +0 -73
- package/test/skill/discovery.test.ts +0 -116
- package/test/skill/skill.test.ts +0 -392
- package/test/snapshot/snapshot.test.ts +0 -1312
- package/test/storage/db.test.ts +0 -14
- package/test/storage/json-migration.test.ts +0 -849
- package/test/storage/storage.test.ts +0 -295
- package/test/sync/index.test.ts +0 -191
- package/test/tool/__snapshots__/tool.test.ts.snap +0 -9
- package/test/tool/apply_patch.test.ts +0 -567
- package/test/tool/bash.test.ts +0 -1099
- package/test/tool/edit.test.ts +0 -681
- package/test/tool/external-directory.test.ts +0 -198
- package/test/tool/fixtures/large-image.png +0 -0
- package/test/tool/fixtures/models-api.json +0 -65179
- package/test/tool/grep.test.ts +0 -111
- package/test/tool/question.test.ts +0 -126
- package/test/tool/read.test.ts +0 -546
- package/test/tool/registry.test.ts +0 -126
- package/test/tool/skill.test.ts +0 -167
- package/test/tool/task.test.ts +0 -49
- package/test/tool/tool-define.test.ts +0 -101
- package/test/tool/truncation.test.ts +0 -161
- package/test/tool/webfetch.test.ts +0 -101
- package/test/tool/write.test.ts +0 -353
- package/test/util/data-url.test.ts +0 -14
- package/test/util/effect-zod.test.ts +0 -61
- package/test/util/error.test.ts +0 -38
- package/test/util/filesystem.test.ts +0 -656
- package/test/util/flock.test.ts +0 -383
- package/test/util/format.test.ts +0 -59
- package/test/util/glob.test.ts +0 -164
- package/test/util/iife.test.ts +0 -36
- package/test/util/lazy.test.ts +0 -50
- package/test/util/lock.test.ts +0 -72
- package/test/util/module.test.ts +0 -59
- package/test/util/process.test.ts +0 -128
- package/test/util/timeout.test.ts +0 -21
- package/test/util/which.test.ts +0 -100
- package/test/util/wildcard.test.ts +0 -90
- package/tsconfig.json +0 -23
package/bin/koro.mjs
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { spawn } from "child_process"
|
|
3
|
+
import { fileURLToPath } from "url"
|
|
4
|
+
import path from "path"
|
|
5
|
+
|
|
6
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
|
7
|
+
const koroDir = path.resolve(__dirname, "..", "koro-source")
|
|
8
|
+
const srcIndex = path.join(koroDir, "packages", "opencode", "src", "index.ts")
|
|
9
|
+
|
|
10
|
+
// Check if source exists, if not clone it
|
|
11
|
+
import { existsSync } from "fs"
|
|
12
|
+
import { mkdirSync } from "fs"
|
|
13
|
+
|
|
14
|
+
if (!existsSync(srcIndex)) {
|
|
15
|
+
console.log("Setting up Koro for first use...")
|
|
16
|
+
const { execSync } = await import("child_process")
|
|
17
|
+
mkdirSync(koroDir, { recursive: true })
|
|
18
|
+
try {
|
|
19
|
+
execSync("git clone https://github.com/iluminatibro/koro.git .", { cwd: koroDir, stdio: "inherit" })
|
|
20
|
+
execSync("bun install", { cwd: koroDir, stdio: "inherit" })
|
|
21
|
+
} catch (e) {
|
|
22
|
+
console.error("Failed to set up Koro. Please install bun: npm i -g bun")
|
|
23
|
+
process.exit(1)
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const child = spawn("bun", ["run", "--conditions=browser", srcIndex, ...process.argv.slice(2)], {
|
|
28
|
+
stdio: "inherit",
|
|
29
|
+
env: process.env,
|
|
30
|
+
cwd: koroDir,
|
|
31
|
+
})
|
|
32
|
+
|
|
33
|
+
child.on("exit", (code) => {
|
|
34
|
+
process.exit(code ?? 1)
|
|
35
|
+
})
|
package/package.json
CHANGED
|
@@ -1,156 +1,26 @@
|
|
|
1
|
-
{
|
|
2
|
-
"description":
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"@ai-sdk/google": "3.0.53",
|
|
27
|
-
"mime-types": "3.0.2",
|
|
28
|
-
"@modelcontextprotocol/sdk": "1.27.1",
|
|
29
|
-
"@pierre/diffs": "1.1.0-beta.18",
|
|
30
|
-
"@ai-sdk/togetherai": "2.0.41",
|
|
31
|
-
"@actions/github": "6.0.1",
|
|
32
|
-
"@openrouter/ai-sdk-provider": "2.3.3",
|
|
33
|
-
"open": "10.1.2",
|
|
34
|
-
"gray-matter": "4.0.3",
|
|
35
|
-
"@effect/platform-node": "4.0.0-beta.43",
|
|
36
|
-
"ulid": "3.0.1",
|
|
37
|
-
"google-auth-library": "10.5.0",
|
|
38
|
-
"@agentclientprotocol/sdk": "0.16.1",
|
|
39
|
-
"strip-ansi": "7.1.2",
|
|
40
|
-
"opentui-spinner": "0.0.6",
|
|
41
|
-
"@koro-ai/sdk": "1.0.0",
|
|
42
|
-
"@aws-sdk/credential-providers": "3.993.0",
|
|
43
|
-
"hono": "4.10.7",
|
|
44
|
-
"clipboardy": "4.0.0",
|
|
45
|
-
"@openauthjs/openauth": "0.4.3",
|
|
46
|
-
"@ai-sdk/vercel": "2.0.39",
|
|
47
|
-
"@koro-ai/util": "1.0.0",
|
|
48
|
-
"@opentui/solid": "0.1.96",
|
|
49
|
-
"@ai-sdk/provider": "3.0.8",
|
|
50
|
-
"decimal.js": "10.5.0",
|
|
51
|
-
"zod-to-json-schema": "3.24.5",
|
|
52
|
-
"@octokit/rest": "22.0.0",
|
|
53
|
-
"@solid-primitives/scheduled": "1.5.2",
|
|
54
|
-
"@octokit/graphql": "9.0.2",
|
|
55
|
-
"@ai-sdk/amazon-bedrock": "4.0.83",
|
|
56
|
-
"@ai-sdk/openai": "3.0.48",
|
|
57
|
-
"@ai-sdk/openai-compatible": "2.0.37",
|
|
58
|
-
"ai": "6.0.138",
|
|
59
|
-
"@ai-sdk/provider-utils": "4.0.21",
|
|
60
|
-
"@ai-sdk/mistral": "3.0.27",
|
|
61
|
-
"@ai-sdk/deepinfra": "2.0.41",
|
|
62
|
-
"@actions/core": "1.11.1",
|
|
63
|
-
"fuzzysort": "3.1.0",
|
|
64
|
-
"@npmcli/arborist": "9.4.0",
|
|
65
|
-
"@ai-sdk/azure": "3.0.49",
|
|
66
|
-
"@clack/prompts": "1.0.0-alpha.1",
|
|
67
|
-
"gitlab-ai-provider": "6.0.0",
|
|
68
|
-
"@ai-sdk/cohere": "3.0.27",
|
|
69
|
-
"opencode-poe-auth": "0.0.1",
|
|
70
|
-
"@standard-schema/spec": "1.0.0",
|
|
71
|
-
"cross-spawn": "7.0.6",
|
|
72
|
-
"solid-js": "1.9.10",
|
|
73
|
-
"opencode-gitlab-auth": "2.0.1",
|
|
74
|
-
"@zip.js/zip.js": "2.7.62",
|
|
75
|
-
"jsonc-parser": "3.3.1",
|
|
76
|
-
"ignore": "7.0.5",
|
|
77
|
-
"@solid-primitives/event-bus": "1.1.2",
|
|
78
|
-
"@ai-sdk/groq": "3.0.31",
|
|
79
|
-
"@ai-sdk/cerebras": "2.0.41",
|
|
80
|
-
"@hono/standard-validator": "0.1.5",
|
|
81
|
-
"@ai-sdk/perplexity": "3.0.26",
|
|
82
|
-
"hono-openapi": "1.1.2",
|
|
83
|
-
"bonjour-service": "1.3.0",
|
|
84
|
-
"xdg-basedir": "5.1.0",
|
|
85
|
-
"diff": "8.0.2",
|
|
86
|
-
"@ai-sdk/anthropic": "3.0.64",
|
|
87
|
-
"@ai-sdk/gateway": "3.0.80",
|
|
88
|
-
"partial-json": "0.1.7",
|
|
89
|
-
"vscode-jsonrpc": "8.2.1",
|
|
90
|
-
"@opentui/core": "0.1.96",
|
|
91
|
-
"ai-gateway-provider": "3.1.2",
|
|
92
|
-
"remeda": "2.26.0",
|
|
93
|
-
"chokidar": "4.0.3",
|
|
94
|
-
"@koro-ai/plugin": "1.0.0",
|
|
95
|
-
"drizzle-orm": "1.0.0-beta.19-d95b7a4",
|
|
96
|
-
"@ai-sdk/xai": "3.0.75",
|
|
97
|
-
"which": "6.0.1",
|
|
98
|
-
"@ai-sdk/google-vertex": "4.0.95"
|
|
99
|
-
},
|
|
100
|
-
"engines": {
|
|
101
|
-
"node": ">=18",
|
|
102
|
-
"bun": ">=1.0"
|
|
103
|
-
},
|
|
104
|
-
"name": "koro-ai",
|
|
105
|
-
"bin": {
|
|
106
|
-
"koro": "./bin/koro"
|
|
107
|
-
},
|
|
108
|
-
"$schema": "https://json.schemastore.org/package.json",
|
|
109
|
-
"devDependencies": {
|
|
110
|
-
"drizzle-orm": "1.0.0-beta.19-d95b7a4",
|
|
111
|
-
"@parcel/watcher-darwin-arm64": "2.5.1",
|
|
112
|
-
"@parcel/watcher-linux-arm64-musl": "2.5.1",
|
|
113
|
-
"@parcel/watcher-linux-arm64-glibc": "2.5.1",
|
|
114
|
-
"typescript": "5.8.2",
|
|
115
|
-
"@effect/language-service": "0.79.0",
|
|
116
|
-
"@parcel/watcher-win32-x64": "2.5.1",
|
|
117
|
-
"@octokit/webhooks-types": "7.6.1",
|
|
118
|
-
"@parcel/watcher-darwin-x64": "2.5.1",
|
|
119
|
-
"why-is-node-running": "3.2.2",
|
|
120
|
-
"@parcel/watcher-linux-x64-glibc": "2.5.1",
|
|
121
|
-
"@parcel/watcher-win32-arm64": "2.5.1",
|
|
122
|
-
"@types/babel__core": "7.20.5",
|
|
123
|
-
"@tsconfig/bun": "1.0.9",
|
|
124
|
-
"@parcel/watcher-linux-x64-musl": "2.5.1",
|
|
125
|
-
"@types/yargs": "17.0.33",
|
|
126
|
-
"@types/cross-spawn": "6.0.6",
|
|
127
|
-
"@types/which": "3.0.4",
|
|
128
|
-
"@babel/core": "7.28.4",
|
|
129
|
-
"@typescript/native-preview": "7.0.0-dev.20251207.1",
|
|
130
|
-
"@types/turndown": "5.0.5",
|
|
131
|
-
"@koro-ai/script": "1.0.0",
|
|
132
|
-
"zod-to-json-schema": "3.24.5",
|
|
133
|
-
"@standard-schema/spec": "1.0.0",
|
|
134
|
-
"drizzle-kit": "1.0.0-beta.19-d95b7a4",
|
|
135
|
-
"@types/npmcli__arborist": "6.3.3",
|
|
136
|
-
"@types/semver": "^7.5.8",
|
|
137
|
-
"@types/bun": "1.3.11",
|
|
138
|
-
"vscode-languageserver-types": "3.17.5",
|
|
139
|
-
"@types/mime-types": "3.0.1"
|
|
140
|
-
},
|
|
141
|
-
"license": "MIT",
|
|
142
|
-
"keywords": [
|
|
143
|
-
"ai",
|
|
144
|
-
"coding-agent",
|
|
145
|
-
"cli",
|
|
146
|
-
"llm",
|
|
147
|
-
"koro"
|
|
148
|
-
],
|
|
149
|
-
"optionalDependencies": {
|
|
150
|
-
"bun-pty": "0.4.8",
|
|
151
|
-
"@parcel/watcher": "2.5.1",
|
|
152
|
-
"tree-sitter-bash": "0.25.0",
|
|
153
|
-
"web-tree-sitter": "0.25.10",
|
|
154
|
-
"tree-sitter-powershell": "0.25.10"
|
|
155
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"description": "Koro � open-source AI coding agent",
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"files": [
|
|
5
|
+
"bin/"
|
|
6
|
+
],
|
|
7
|
+
"engines": {
|
|
8
|
+
"bun": "\u003e=1.0"
|
|
9
|
+
},
|
|
10
|
+
"name": "koro-ai",
|
|
11
|
+
"bin": {
|
|
12
|
+
"koro": "./bin/koro.mjs"
|
|
13
|
+
},
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "https://github.com/iluminatibro/koro"
|
|
17
|
+
},
|
|
18
|
+
"license": "MIT",
|
|
19
|
+
"keywords": [
|
|
20
|
+
"ai",
|
|
21
|
+
"coding-agent",
|
|
22
|
+
"cli",
|
|
23
|
+
"llm",
|
|
24
|
+
"koro"
|
|
25
|
+
]
|
|
156
26
|
}
|
package/README.md
DELETED
package/bin/koro
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bun
|
|
2
|
-
import { spawn } from "child_process"
|
|
3
|
-
import path from "path"
|
|
4
|
-
import { fileURLToPath } from "url"
|
|
5
|
-
|
|
6
|
-
const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
|
7
|
-
const srcDir = path.resolve(__dirname, "..", "src")
|
|
8
|
-
|
|
9
|
-
const child = spawn("bun", ["run", "--conditions=browser", path.join(srcDir, "index.ts"), ...process.argv.slice(2)], {
|
|
10
|
-
stdio: "inherit",
|
|
11
|
-
env: process.env,
|
|
12
|
-
})
|
|
13
|
-
|
|
14
|
-
child.on("exit", (code) => {
|
|
15
|
-
process.exit(code ?? 1)
|
|
16
|
-
})
|
package/bin/opencode
DELETED
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
const childProcess = require("child_process")
|
|
4
|
-
const fs = require("fs")
|
|
5
|
-
const path = require("path")
|
|
6
|
-
const os = require("os")
|
|
7
|
-
|
|
8
|
-
function run(target) {
|
|
9
|
-
const result = childProcess.spawnSync(target, process.argv.slice(2), {
|
|
10
|
-
stdio: "inherit",
|
|
11
|
-
})
|
|
12
|
-
if (result.error) {
|
|
13
|
-
console.error(result.error.message)
|
|
14
|
-
process.exit(1)
|
|
15
|
-
}
|
|
16
|
-
const code = typeof result.status === "number" ? result.status : 0
|
|
17
|
-
process.exit(code)
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
const envPath = process.env.OPENCODE_BIN_PATH
|
|
21
|
-
if (envPath) {
|
|
22
|
-
run(envPath)
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
const scriptPath = fs.realpathSync(__filename)
|
|
26
|
-
const scriptDir = path.dirname(scriptPath)
|
|
27
|
-
|
|
28
|
-
//
|
|
29
|
-
const cached = path.join(scriptDir, ".opencode")
|
|
30
|
-
if (fs.existsSync(cached)) {
|
|
31
|
-
run(cached)
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
const platformMap = {
|
|
35
|
-
darwin: "darwin",
|
|
36
|
-
linux: "linux",
|
|
37
|
-
win32: "windows",
|
|
38
|
-
}
|
|
39
|
-
const archMap = {
|
|
40
|
-
x64: "x64",
|
|
41
|
-
arm64: "arm64",
|
|
42
|
-
arm: "arm",
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
let platform = platformMap[os.platform()]
|
|
46
|
-
if (!platform) {
|
|
47
|
-
platform = os.platform()
|
|
48
|
-
}
|
|
49
|
-
let arch = archMap[os.arch()]
|
|
50
|
-
if (!arch) {
|
|
51
|
-
arch = os.arch()
|
|
52
|
-
}
|
|
53
|
-
const base = "opencode-" + platform + "-" + arch
|
|
54
|
-
const binary = platform === "windows" ? "opencode.exe" : "opencode"
|
|
55
|
-
|
|
56
|
-
function supportsAvx2() {
|
|
57
|
-
if (arch !== "x64") return false
|
|
58
|
-
|
|
59
|
-
if (platform === "linux") {
|
|
60
|
-
try {
|
|
61
|
-
return /(^|\s)avx2(\s|$)/i.test(fs.readFileSync("/proc/cpuinfo", "utf8"))
|
|
62
|
-
} catch {
|
|
63
|
-
return false
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
if (platform === "darwin") {
|
|
68
|
-
try {
|
|
69
|
-
const result = childProcess.spawnSync("sysctl", ["-n", "hw.optional.avx2_0"], {
|
|
70
|
-
encoding: "utf8",
|
|
71
|
-
timeout: 1500,
|
|
72
|
-
})
|
|
73
|
-
if (result.status !== 0) return false
|
|
74
|
-
return (result.stdout || "").trim() === "1"
|
|
75
|
-
} catch {
|
|
76
|
-
return false
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
if (platform === "windows") {
|
|
81
|
-
const cmd =
|
|
82
|
-
'(Add-Type -MemberDefinition "[DllImport(""kernel32.dll"")] public static extern bool IsProcessorFeaturePresent(int ProcessorFeature);" -Name Kernel32 -Namespace Win32 -PassThru)::IsProcessorFeaturePresent(40)'
|
|
83
|
-
|
|
84
|
-
for (const exe of ["powershell.exe", "pwsh.exe", "pwsh", "powershell"]) {
|
|
85
|
-
try {
|
|
86
|
-
const result = childProcess.spawnSync(exe, ["-NoProfile", "-NonInteractive", "-Command", cmd], {
|
|
87
|
-
encoding: "utf8",
|
|
88
|
-
timeout: 3000,
|
|
89
|
-
windowsHide: true,
|
|
90
|
-
})
|
|
91
|
-
if (result.status !== 0) continue
|
|
92
|
-
const out = (result.stdout || "").trim().toLowerCase()
|
|
93
|
-
if (out === "true" || out === "1") return true
|
|
94
|
-
if (out === "false" || out === "0") return false
|
|
95
|
-
} catch {
|
|
96
|
-
continue
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
return false
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
return false
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
const names = (() => {
|
|
107
|
-
const avx2 = supportsAvx2()
|
|
108
|
-
const baseline = arch === "x64" && !avx2
|
|
109
|
-
|
|
110
|
-
if (platform === "linux") {
|
|
111
|
-
const musl = (() => {
|
|
112
|
-
try {
|
|
113
|
-
if (fs.existsSync("/etc/alpine-release")) return true
|
|
114
|
-
} catch {
|
|
115
|
-
// ignore
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
try {
|
|
119
|
-
const result = childProcess.spawnSync("ldd", ["--version"], { encoding: "utf8" })
|
|
120
|
-
const text = ((result.stdout || "") + (result.stderr || "")).toLowerCase()
|
|
121
|
-
if (text.includes("musl")) return true
|
|
122
|
-
} catch {
|
|
123
|
-
// ignore
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
return false
|
|
127
|
-
})()
|
|
128
|
-
|
|
129
|
-
if (musl) {
|
|
130
|
-
if (arch === "x64") {
|
|
131
|
-
if (baseline) return [`${base}-baseline-musl`, `${base}-musl`, `${base}-baseline`, base]
|
|
132
|
-
return [`${base}-musl`, `${base}-baseline-musl`, base, `${base}-baseline`]
|
|
133
|
-
}
|
|
134
|
-
return [`${base}-musl`, base]
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
if (arch === "x64") {
|
|
138
|
-
if (baseline) return [`${base}-baseline`, base, `${base}-baseline-musl`, `${base}-musl`]
|
|
139
|
-
return [base, `${base}-baseline`, `${base}-musl`, `${base}-baseline-musl`]
|
|
140
|
-
}
|
|
141
|
-
return [base, `${base}-musl`]
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
if (arch === "x64") {
|
|
145
|
-
if (baseline) return [`${base}-baseline`, base]
|
|
146
|
-
return [base, `${base}-baseline`]
|
|
147
|
-
}
|
|
148
|
-
return [base]
|
|
149
|
-
})()
|
|
150
|
-
|
|
151
|
-
function findBinary(startDir) {
|
|
152
|
-
let current = startDir
|
|
153
|
-
for (;;) {
|
|
154
|
-
const modules = path.join(current, "node_modules")
|
|
155
|
-
if (fs.existsSync(modules)) {
|
|
156
|
-
for (const name of names) {
|
|
157
|
-
const candidate = path.join(modules, name, "bin", binary)
|
|
158
|
-
if (fs.existsSync(candidate)) return candidate
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
const parent = path.dirname(current)
|
|
162
|
-
if (parent === current) {
|
|
163
|
-
return
|
|
164
|
-
}
|
|
165
|
-
current = parent
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
const resolved = findBinary(scriptDir)
|
|
170
|
-
if (!resolved) {
|
|
171
|
-
console.error(
|
|
172
|
-
"It seems that your package manager failed to install the right version of the opencode CLI for your platform. You can try manually installing " +
|
|
173
|
-
names.map((n) => `\"${n}\"`).join(" or ") +
|
|
174
|
-
" package",
|
|
175
|
-
)
|
|
176
|
-
process.exit(1)
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
run(resolved)
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
CREATE TABLE `project` (
|
|
2
|
-
`id` text PRIMARY KEY,
|
|
3
|
-
`worktree` text NOT NULL,
|
|
4
|
-
`vcs` text,
|
|
5
|
-
`name` text,
|
|
6
|
-
`icon_url` text,
|
|
7
|
-
`icon_color` text,
|
|
8
|
-
`time_created` integer NOT NULL,
|
|
9
|
-
`time_updated` integer NOT NULL,
|
|
10
|
-
`time_initialized` integer,
|
|
11
|
-
`sandboxes` text NOT NULL
|
|
12
|
-
);
|
|
13
|
-
--> statement-breakpoint
|
|
14
|
-
CREATE TABLE `message` (
|
|
15
|
-
`id` text PRIMARY KEY,
|
|
16
|
-
`session_id` text NOT NULL,
|
|
17
|
-
`time_created` integer NOT NULL,
|
|
18
|
-
`time_updated` integer NOT NULL,
|
|
19
|
-
`data` text NOT NULL,
|
|
20
|
-
CONSTRAINT `fk_message_session_id_session_id_fk` FOREIGN KEY (`session_id`) REFERENCES `session`(`id`) ON DELETE CASCADE
|
|
21
|
-
);
|
|
22
|
-
--> statement-breakpoint
|
|
23
|
-
CREATE TABLE `part` (
|
|
24
|
-
`id` text PRIMARY KEY,
|
|
25
|
-
`message_id` text NOT NULL,
|
|
26
|
-
`session_id` text NOT NULL,
|
|
27
|
-
`time_created` integer NOT NULL,
|
|
28
|
-
`time_updated` integer NOT NULL,
|
|
29
|
-
`data` text NOT NULL,
|
|
30
|
-
CONSTRAINT `fk_part_message_id_message_id_fk` FOREIGN KEY (`message_id`) REFERENCES `message`(`id`) ON DELETE CASCADE
|
|
31
|
-
);
|
|
32
|
-
--> statement-breakpoint
|
|
33
|
-
CREATE TABLE `permission` (
|
|
34
|
-
`project_id` text PRIMARY KEY,
|
|
35
|
-
`time_created` integer NOT NULL,
|
|
36
|
-
`time_updated` integer NOT NULL,
|
|
37
|
-
`data` text NOT NULL,
|
|
38
|
-
CONSTRAINT `fk_permission_project_id_project_id_fk` FOREIGN KEY (`project_id`) REFERENCES `project`(`id`) ON DELETE CASCADE
|
|
39
|
-
);
|
|
40
|
-
--> statement-breakpoint
|
|
41
|
-
CREATE TABLE `session` (
|
|
42
|
-
`id` text PRIMARY KEY,
|
|
43
|
-
`project_id` text NOT NULL,
|
|
44
|
-
`parent_id` text,
|
|
45
|
-
`slug` text NOT NULL,
|
|
46
|
-
`directory` text NOT NULL,
|
|
47
|
-
`title` text NOT NULL,
|
|
48
|
-
`version` text NOT NULL,
|
|
49
|
-
`share_url` text,
|
|
50
|
-
`summary_additions` integer,
|
|
51
|
-
`summary_deletions` integer,
|
|
52
|
-
`summary_files` integer,
|
|
53
|
-
`summary_diffs` text,
|
|
54
|
-
`revert` text,
|
|
55
|
-
`permission` text,
|
|
56
|
-
`time_created` integer NOT NULL,
|
|
57
|
-
`time_updated` integer NOT NULL,
|
|
58
|
-
`time_compacting` integer,
|
|
59
|
-
`time_archived` integer,
|
|
60
|
-
CONSTRAINT `fk_session_project_id_project_id_fk` FOREIGN KEY (`project_id`) REFERENCES `project`(`id`) ON DELETE CASCADE
|
|
61
|
-
);
|
|
62
|
-
--> statement-breakpoint
|
|
63
|
-
CREATE TABLE `todo` (
|
|
64
|
-
`session_id` text NOT NULL,
|
|
65
|
-
`content` text NOT NULL,
|
|
66
|
-
`status` text NOT NULL,
|
|
67
|
-
`priority` text NOT NULL,
|
|
68
|
-
`position` integer NOT NULL,
|
|
69
|
-
`time_created` integer NOT NULL,
|
|
70
|
-
`time_updated` integer NOT NULL,
|
|
71
|
-
CONSTRAINT `todo_pk` PRIMARY KEY(`session_id`, `position`),
|
|
72
|
-
CONSTRAINT `fk_todo_session_id_session_id_fk` FOREIGN KEY (`session_id`) REFERENCES `session`(`id`) ON DELETE CASCADE
|
|
73
|
-
);
|
|
74
|
-
--> statement-breakpoint
|
|
75
|
-
CREATE TABLE `session_share` (
|
|
76
|
-
`session_id` text PRIMARY KEY,
|
|
77
|
-
`id` text NOT NULL,
|
|
78
|
-
`secret` text NOT NULL,
|
|
79
|
-
`url` text NOT NULL,
|
|
80
|
-
`time_created` integer NOT NULL,
|
|
81
|
-
`time_updated` integer NOT NULL,
|
|
82
|
-
CONSTRAINT `fk_session_share_session_id_session_id_fk` FOREIGN KEY (`session_id`) REFERENCES `session`(`id`) ON DELETE CASCADE
|
|
83
|
-
);
|
|
84
|
-
--> statement-breakpoint
|
|
85
|
-
CREATE INDEX `message_session_idx` ON `message` (`session_id`);--> statement-breakpoint
|
|
86
|
-
CREATE INDEX `part_message_idx` ON `part` (`message_id`);--> statement-breakpoint
|
|
87
|
-
CREATE INDEX `part_session_idx` ON `part` (`session_id`);--> statement-breakpoint
|
|
88
|
-
CREATE INDEX `session_project_idx` ON `session` (`project_id`);--> statement-breakpoint
|
|
89
|
-
CREATE INDEX `session_parent_idx` ON `session` (`parent_id`);--> statement-breakpoint
|
|
90
|
-
CREATE INDEX `todo_session_idx` ON `todo` (`session_id`);
|