soraacode 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +12 -26
- package/parsers-config.ts +1 -1
- package/script/bench-search.ts +3 -3
- package/script/build.ts +1 -1
- package/script/publish.ts +1 -1
- package/script/schema.ts +2 -2
- package/specs/tui-plugins.md +7 -7
- package/specs/v2/api.ts +2 -2
- package/src/account/account.ts +3 -3
- package/src/account/repo.ts +4 -4
- package/src/acp/agent.ts +1 -1
- package/src/acp/content.ts +1 -1
- package/src/acp/directory.ts +3 -3
- package/src/acp/event.ts +1 -1
- package/src/acp/permission.ts +1 -1
- package/src/acp/service.ts +5 -5
- package/src/acp/session.ts +4 -4
- package/src/acp/usage.ts +5 -5
- package/src/agent/agent.ts +11 -11
- package/src/agent/subagent-permissions.ts +1 -1
- package/src/auth/index.ts +4 -4
- package/src/background/job.ts +3 -3
- package/src/cli/cmd/serve.ts +1 -1
- package/src/cli/error.ts +1 -1
- package/src/cli/heap.ts +2 -2
- package/src/cli/network.ts +1 -1
- package/src/command/index.ts +2 -2
- package/src/config/agent.ts +2 -2
- package/src/config/command.ts +3 -3
- package/src/config/config.ts +15 -15
- package/src/config/markdown.ts +2 -2
- package/src/config/parse.ts +2 -2
- package/src/config/paths.ts +3 -3
- package/src/config/plugin.ts +2 -2
- package/src/config/v2-compat.ts +4 -4
- package/src/config/variable.ts +1 -1
- package/src/control-plane/adapters/index.ts +1 -1
- package/src/control-plane/dev/debug-workspace-plugin.ts +1 -1
- package/src/control-plane/types.ts +3 -3
- package/src/control-plane/workspace-context.ts +1 -1
- package/src/control-plane/workspace.ts +13 -13
- package/src/effect/app-node-builder-v1.ts +2 -2
- package/src/effect/app-runtime.ts +9 -9
- package/src/effect/bootstrap-runtime.ts +4 -4
- package/src/effect/bridge.ts +1 -1
- package/src/effect/instance-ref.ts +1 -1
- package/src/effect/run-service.ts +2 -2
- package/src/effect/runtime-flags.ts +1 -1
- package/src/env/index.ts +2 -2
- package/src/event-manifest.ts +1 -1
- package/src/event-v2-bridge.ts +5 -5
- package/src/format/formatter.ts +2 -2
- package/src/format/index.ts +3 -3
- package/src/git/index.ts +2 -2
- package/src/ide/index.ts +2 -2
- package/src/image/image.ts +2 -2
- package/src/index-headless.ts +1 -1
- package/src/index.ts +1 -1
- package/src/installation/index.ts +9 -9
- package/src/lsp/lsp.ts +4 -4
- package/src/lsp/server.ts +4 -4
- package/src/mcp/auth.ts +5 -5
- package/src/mcp/browser.ts +1 -1
- package/src/mcp/index.ts +9 -9
- package/src/mcp/oauth-callback.ts +1 -1
- package/src/node.ts +1 -1
- package/src/patch/index.ts +1 -1
- package/src/permission/index.ts +4 -4
- package/src/plugin/github-copilot/copilot.ts +3 -3
- package/src/plugin/github-copilot/models.ts +1 -1
- package/src/plugin/index.ts +5 -5
- package/src/plugin/install.ts +2 -2
- package/src/plugin/loader.ts +2 -2
- package/src/plugin/meta.ts +3 -3
- package/src/plugin/openai/codex.ts +3 -3
- package/src/plugin/pty-environment.ts +1 -1
- package/src/plugin/shared.ts +1 -1
- package/src/project/bootstrap.ts +1 -1
- package/src/project/instance-context.ts +1 -1
- package/src/project/instance-store.ts +4 -4
- package/src/project/project.ts +16 -16
- package/src/project/vcs.ts +4 -4
- package/src/provider/auth.ts +5 -5
- package/src/provider/error.ts +2 -2
- package/src/provider/model-status.ts +1 -1
- package/src/provider/provider.ts +13 -13
- package/src/provider/transform.ts +1 -1
- package/src/question/index.ts +2 -2
- package/src/question/schema.ts +1 -1
- package/src/server/auth.ts +1 -1
- package/src/server/event.ts +1 -1
- package/src/server/routes/instance/httpapi/api.ts +7 -7
- package/src/server/routes/instance/httpapi/groups/config.ts +1 -1
- package/src/server/routes/instance/httpapi/groups/control-plane.ts +1 -1
- package/src/server/routes/instance/httpapi/groups/control.ts +1 -1
- package/src/server/routes/instance/httpapi/groups/experimental.ts +3 -3
- package/src/server/routes/instance/httpapi/groups/file.ts +2 -2
- package/src/server/routes/instance/httpapi/groups/global.ts +3 -3
- package/src/server/routes/instance/httpapi/groups/mcp.ts +1 -1
- package/src/server/routes/instance/httpapi/groups/permission.ts +1 -1
- package/src/server/routes/instance/httpapi/groups/project-copy.ts +1 -1
- package/src/server/routes/instance/httpapi/groups/project.ts +1 -1
- package/src/server/routes/instance/httpapi/groups/provider.ts +1 -1
- package/src/server/routes/instance/httpapi/groups/pty.ts +3 -3
- package/src/server/routes/instance/httpapi/groups/session.ts +4 -4
- package/src/server/routes/instance/httpapi/groups/sync.ts +2 -2
- package/src/server/routes/instance/httpapi/handlers/control-plane.ts +2 -2
- package/src/server/routes/instance/httpapi/handlers/control.ts +1 -1
- package/src/server/routes/instance/httpapi/handlers/event.ts +1 -1
- package/src/server/routes/instance/httpapi/handlers/file.ts +6 -6
- package/src/server/routes/instance/httpapi/handlers/global.ts +2 -2
- package/src/server/routes/instance/httpapi/handlers/instance.ts +1 -1
- package/src/server/routes/instance/httpapi/handlers/permission.ts +1 -1
- package/src/server/routes/instance/httpapi/handlers/project-copy.ts +2 -2
- package/src/server/routes/instance/httpapi/handlers/project.ts +1 -1
- package/src/server/routes/instance/httpapi/handlers/provider.ts +2 -2
- package/src/server/routes/instance/httpapi/handlers/pty.ts +9 -9
- package/src/server/routes/instance/httpapi/handlers/session.ts +3 -3
- package/src/server/routes/instance/httpapi/handlers/sync.ts +3 -3
- package/src/server/routes/instance/httpapi/middleware/authorization.ts +1 -1
- package/src/server/routes/instance/httpapi/middleware/error.ts +2 -2
- package/src/server/routes/instance/httpapi/middleware/fence.ts +2 -2
- package/src/server/routes/instance/httpapi/middleware/workspace-routing.ts +2 -2
- package/src/server/routes/instance/httpapi/server.ts +27 -27
- package/src/server/routes/instance/httpapi/websocket-tracker.ts +1 -1
- package/src/server/server.ts +2 -2
- package/src/server/shared/fence.ts +3 -3
- package/src/server/shared/ui.ts +1 -1
- package/src/server/tui-event.ts +1 -1
- package/src/session/compaction.ts +8 -8
- package/src/session/instruction.ts +6 -6
- package/src/session/llm/AGENTS.md +8 -8
- package/src/session/llm/ai-sdk.ts +2 -2
- package/src/session/llm/native-request.ts +4 -4
- package/src/session/llm/native-runtime.ts +4 -4
- package/src/session/llm/request.ts +3 -3
- package/src/session/llm.ts +10 -10
- package/src/session/message-error.ts +1 -1
- package/src/session/message-v2.ts +7 -7
- package/src/session/message.ts +3 -3
- package/src/session/overflow.ts +2 -2
- package/src/session/processor.ts +5 -5
- package/src/session/prompt.ts +13 -13
- package/src/session/reminders.ts +2 -2
- package/src/session/retry.ts +2 -2
- package/src/session/revert.ts +2 -2
- package/src/session/run-state.ts +2 -2
- package/src/session/schema.ts +2 -2
- package/src/session/session.ts +20 -20
- package/src/session/status.ts +2 -2
- package/src/session/summary.ts +2 -2
- package/src/session/system.ts +6 -6
- package/src/session/todo.ts +4 -4
- package/src/session/tools.ts +3 -3
- package/src/share/session.ts +1 -1
- package/src/share/share-next.ts +9 -9
- package/src/skill/discovery.ts +4 -4
- package/src/skill/index.ts +7 -7
- package/src/snapshot/index.ts +6 -6
- package/src/storage/schema.ts +5 -5
- package/src/storage/storage.ts +4 -4
- package/src/sync/schema.ts +1 -1
- package/src/temporary.ts +1 -1
- package/src/tool/apply_patch.ts +3 -3
- package/src/tool/code-mode.ts +1 -1
- package/src/tool/edit.ts +3 -3
- package/src/tool/external-directory.ts +1 -1
- package/src/tool/glob.ts +2 -2
- package/src/tool/grep.ts +2 -2
- package/src/tool/lsp.ts +1 -1
- package/src/tool/plan.ts +1 -1
- package/src/tool/read.ts +2 -2
- package/src/tool/registry.ts +11 -11
- package/src/tool/schema.ts +1 -1
- package/src/tool/shell/prompt.ts +2 -2
- package/src/tool/shell.ts +2 -2
- package/src/tool/skill.ts +1 -1
- package/src/tool/task.ts +2 -2
- package/src/tool/tool.ts +2 -2
- package/src/tool/truncate.ts +2 -2
- package/src/tool/truncation-dir.ts +1 -1
- package/src/tool/websearch.ts +2 -2
- package/src/tool/write.ts +3 -3
- package/src/util/bom.ts +1 -1
- package/src/util/filesystem.ts +2 -2
- package/src/util/repository.ts +1 -1
- package/src/util/token.ts +1 -1
- package/src/worktree/index.ts +10 -10
package/src/tool/truncate.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { LayerNode } from "@
|
|
1
|
+
import { LayerNode } from "@soraacode/core/effect/layer-node"
|
|
2
2
|
import { NodePath } from "@effect/platform-node"
|
|
3
3
|
import { Cause, Duration, Effect, Layer, Option, Schedule, Context } from "effect"
|
|
4
4
|
import path from "path"
|
|
5
5
|
import type { Agent } from "../agent/agent"
|
|
6
|
-
import { FSUtil } from "@
|
|
6
|
+
import { FSUtil } from "@soraacode/core/fs-util"
|
|
7
7
|
import { evaluate } from "@/permission/evaluate"
|
|
8
8
|
import { Config } from "@/config/config"
|
|
9
9
|
import { ToolID } from "./schema"
|
package/src/tool/websearch.ts
CHANGED
|
@@ -3,8 +3,8 @@ import { HttpClient } from "effect/unstable/http"
|
|
|
3
3
|
import * as Tool from "./tool"
|
|
4
4
|
import * as McpWebSearch from "./mcp-websearch"
|
|
5
5
|
import DESCRIPTION from "./websearch.txt"
|
|
6
|
-
import { checksum } from "@
|
|
7
|
-
import { InstallationVersion } from "@
|
|
6
|
+
import { checksum } from "@soraacode/core/util/encode"
|
|
7
|
+
import { InstallationVersion } from "@soraacode/core/installation/version"
|
|
8
8
|
import { RuntimeFlags } from "@/effect/runtime-flags"
|
|
9
9
|
|
|
10
10
|
export const Parameters = Schema.Struct({
|
package/src/tool/write.ts
CHANGED
|
@@ -6,10 +6,10 @@ import { LSP } from "@/lsp/lsp"
|
|
|
6
6
|
import { createTwoFilesPatch } from "diff"
|
|
7
7
|
import DESCRIPTION from "./write.txt"
|
|
8
8
|
import { EventV2Bridge } from "@/event-v2-bridge"
|
|
9
|
-
import { FileSystem } from "@
|
|
10
|
-
import { Watcher } from "@
|
|
9
|
+
import { FileSystem } from "@soraacode/core/filesystem"
|
|
10
|
+
import { Watcher } from "@soraacode/core/filesystem/watcher"
|
|
11
11
|
import { Format } from "../format"
|
|
12
|
-
import { FSUtil } from "@
|
|
12
|
+
import { FSUtil } from "@soraacode/core/fs-util"
|
|
13
13
|
import { InstanceState } from "@/effect/instance-state"
|
|
14
14
|
import { trimDiff } from "./edit"
|
|
15
15
|
import { assertExternalDirectoryEffect } from "./external-directory"
|
package/src/util/bom.ts
CHANGED
package/src/util/filesystem.ts
CHANGED
|
@@ -4,8 +4,8 @@ import { realpathSync } from "fs"
|
|
|
4
4
|
import { dirname, isAbsolute, join, resolve as pathResolve, win32 } from "path"
|
|
5
5
|
import { Readable } from "stream"
|
|
6
6
|
import { pipeline } from "stream/promises"
|
|
7
|
-
import { Glob } from "@
|
|
8
|
-
import { FSUtil } from "@
|
|
7
|
+
import { Glob } from "@soraacode/core/util/glob"
|
|
8
|
+
import { FSUtil } from "@soraacode/core/fs-util"
|
|
9
9
|
import { fileURLToPath } from "url"
|
|
10
10
|
|
|
11
11
|
// Fast sync version for metadata checks
|
package/src/util/repository.ts
CHANGED
package/src/util/token.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Token, estimate } from "@
|
|
1
|
+
export { Token, estimate } from "@soraacode/core/util/token"
|
package/src/worktree/index.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { LayerNode } from "@
|
|
2
|
-
import { path } from "@
|
|
3
|
-
import { Global } from "@
|
|
1
|
+
import { LayerNode } from "@soraacode/core/effect/layer-node"
|
|
2
|
+
import { path } from "@soraacode/core/effect/app-node-platform"
|
|
3
|
+
import { Global } from "@soraacode/core/global"
|
|
4
4
|
import { InstanceStore } from "@/project/instance-store"
|
|
5
5
|
import { Project } from "@/project/project"
|
|
6
|
-
import { Database } from "@
|
|
6
|
+
import { Database } from "@soraacode/core/database/database"
|
|
7
7
|
import { eq } from "drizzle-orm"
|
|
8
|
-
import { ProjectTable } from "@
|
|
9
|
-
import type { ProjectV2 } from "@
|
|
10
|
-
import { Slug } from "@
|
|
8
|
+
import { ProjectTable } from "@soraacode/core/project/sql"
|
|
9
|
+
import type { ProjectV2 } from "@soraacode/core/project"
|
|
10
|
+
import { Slug } from "@soraacode/core/util/slug"
|
|
11
11
|
import { errorMessage } from "../util/error"
|
|
12
12
|
import { GlobalBus } from "@/bus/global"
|
|
13
13
|
import { Git } from "@/git"
|
|
14
14
|
import { Effect, Layer, Path, Schema, Scope, Context } from "effect"
|
|
15
15
|
import { ChildProcess } from "effect/unstable/process"
|
|
16
|
-
import { FSUtil } from "@
|
|
17
|
-
import { AppProcess } from "@
|
|
16
|
+
import { FSUtil } from "@soraacode/core/fs-util"
|
|
17
|
+
import { AppProcess } from "@soraacode/core/process"
|
|
18
18
|
import { InstanceState } from "@/effect/instance-state"
|
|
19
|
-
import { WorktreeEvent } from "@
|
|
19
|
+
import { WorktreeEvent } from "@soraacode/schema/worktree-event"
|
|
20
20
|
|
|
21
21
|
export const Event = WorktreeEvent
|
|
22
22
|
|