soraacode 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (188) hide show
  1. package/package.json +12 -20
  2. package/parsers-config.ts +1 -1
  3. package/script/bench-search.ts +3 -3
  4. package/script/build.ts +1 -1
  5. package/script/publish.ts +1 -1
  6. package/script/schema.ts +2 -2
  7. package/specs/tui-plugins.md +7 -7
  8. package/specs/v2/api.ts +2 -2
  9. package/src/account/account.ts +3 -3
  10. package/src/account/repo.ts +4 -4
  11. package/src/acp/agent.ts +1 -1
  12. package/src/acp/content.ts +1 -1
  13. package/src/acp/directory.ts +3 -3
  14. package/src/acp/event.ts +1 -1
  15. package/src/acp/permission.ts +1 -1
  16. package/src/acp/service.ts +5 -5
  17. package/src/acp/session.ts +4 -4
  18. package/src/acp/usage.ts +5 -5
  19. package/src/agent/agent.ts +11 -11
  20. package/src/agent/subagent-permissions.ts +1 -1
  21. package/src/auth/index.ts +4 -4
  22. package/src/background/job.ts +3 -3
  23. package/src/cli/cmd/serve.ts +1 -1
  24. package/src/cli/error.ts +1 -1
  25. package/src/cli/heap.ts +2 -2
  26. package/src/cli/network.ts +1 -1
  27. package/src/command/index.ts +2 -2
  28. package/src/config/agent.ts +2 -2
  29. package/src/config/command.ts +3 -3
  30. package/src/config/config.ts +15 -15
  31. package/src/config/markdown.ts +2 -2
  32. package/src/config/parse.ts +2 -2
  33. package/src/config/paths.ts +3 -3
  34. package/src/config/plugin.ts +2 -2
  35. package/src/config/v2-compat.ts +4 -4
  36. package/src/config/variable.ts +1 -1
  37. package/src/control-plane/adapters/index.ts +1 -1
  38. package/src/control-plane/dev/debug-workspace-plugin.ts +1 -1
  39. package/src/control-plane/types.ts +3 -3
  40. package/src/control-plane/workspace-context.ts +1 -1
  41. package/src/control-plane/workspace.ts +13 -13
  42. package/src/effect/app-node-builder-v1.ts +2 -2
  43. package/src/effect/app-runtime.ts +9 -9
  44. package/src/effect/bootstrap-runtime.ts +4 -4
  45. package/src/effect/bridge.ts +1 -1
  46. package/src/effect/instance-ref.ts +1 -1
  47. package/src/effect/run-service.ts +2 -2
  48. package/src/effect/runtime-flags.ts +1 -1
  49. package/src/env/index.ts +2 -2
  50. package/src/event-manifest.ts +1 -1
  51. package/src/event-v2-bridge.ts +5 -5
  52. package/src/format/formatter.ts +2 -2
  53. package/src/format/index.ts +3 -3
  54. package/src/git/index.ts +2 -2
  55. package/src/ide/index.ts +2 -2
  56. package/src/image/image.ts +2 -2
  57. package/src/index-headless.ts +1 -1
  58. package/src/index.ts +1 -1
  59. package/src/installation/index.ts +9 -9
  60. package/src/lsp/lsp.ts +4 -4
  61. package/src/lsp/server.ts +4 -4
  62. package/src/mcp/auth.ts +5 -5
  63. package/src/mcp/browser.ts +1 -1
  64. package/src/mcp/index.ts +9 -9
  65. package/src/mcp/oauth-callback.ts +1 -1
  66. package/src/node.ts +1 -1
  67. package/src/patch/index.ts +1 -1
  68. package/src/permission/index.ts +4 -4
  69. package/src/plugin/github-copilot/copilot.ts +3 -3
  70. package/src/plugin/github-copilot/models.ts +1 -1
  71. package/src/plugin/index.ts +5 -5
  72. package/src/plugin/install.ts +2 -2
  73. package/src/plugin/loader.ts +2 -2
  74. package/src/plugin/meta.ts +3 -3
  75. package/src/plugin/openai/codex.ts +3 -3
  76. package/src/plugin/pty-environment.ts +1 -1
  77. package/src/plugin/shared.ts +1 -1
  78. package/src/project/bootstrap.ts +1 -1
  79. package/src/project/instance-context.ts +1 -1
  80. package/src/project/instance-store.ts +4 -4
  81. package/src/project/project.ts +16 -16
  82. package/src/project/vcs.ts +4 -4
  83. package/src/provider/auth.ts +5 -5
  84. package/src/provider/error.ts +2 -2
  85. package/src/provider/model-status.ts +1 -1
  86. package/src/provider/provider.ts +13 -13
  87. package/src/provider/transform.ts +1 -1
  88. package/src/question/index.ts +2 -2
  89. package/src/question/schema.ts +1 -1
  90. package/src/server/auth.ts +1 -1
  91. package/src/server/event.ts +1 -1
  92. package/src/server/routes/instance/httpapi/api.ts +7 -7
  93. package/src/server/routes/instance/httpapi/groups/config.ts +1 -1
  94. package/src/server/routes/instance/httpapi/groups/control-plane.ts +1 -1
  95. package/src/server/routes/instance/httpapi/groups/control.ts +1 -1
  96. package/src/server/routes/instance/httpapi/groups/experimental.ts +3 -3
  97. package/src/server/routes/instance/httpapi/groups/file.ts +2 -2
  98. package/src/server/routes/instance/httpapi/groups/global.ts +3 -3
  99. package/src/server/routes/instance/httpapi/groups/mcp.ts +1 -1
  100. package/src/server/routes/instance/httpapi/groups/permission.ts +1 -1
  101. package/src/server/routes/instance/httpapi/groups/project-copy.ts +1 -1
  102. package/src/server/routes/instance/httpapi/groups/project.ts +1 -1
  103. package/src/server/routes/instance/httpapi/groups/provider.ts +1 -1
  104. package/src/server/routes/instance/httpapi/groups/pty.ts +3 -3
  105. package/src/server/routes/instance/httpapi/groups/session.ts +4 -4
  106. package/src/server/routes/instance/httpapi/groups/sync.ts +2 -2
  107. package/src/server/routes/instance/httpapi/handlers/control-plane.ts +2 -2
  108. package/src/server/routes/instance/httpapi/handlers/control.ts +1 -1
  109. package/src/server/routes/instance/httpapi/handlers/event.ts +1 -1
  110. package/src/server/routes/instance/httpapi/handlers/file.ts +6 -6
  111. package/src/server/routes/instance/httpapi/handlers/global.ts +2 -2
  112. package/src/server/routes/instance/httpapi/handlers/instance.ts +1 -1
  113. package/src/server/routes/instance/httpapi/handlers/permission.ts +1 -1
  114. package/src/server/routes/instance/httpapi/handlers/project-copy.ts +2 -2
  115. package/src/server/routes/instance/httpapi/handlers/project.ts +1 -1
  116. package/src/server/routes/instance/httpapi/handlers/provider.ts +2 -2
  117. package/src/server/routes/instance/httpapi/handlers/pty.ts +9 -9
  118. package/src/server/routes/instance/httpapi/handlers/session.ts +3 -3
  119. package/src/server/routes/instance/httpapi/handlers/sync.ts +3 -3
  120. package/src/server/routes/instance/httpapi/middleware/authorization.ts +1 -1
  121. package/src/server/routes/instance/httpapi/middleware/error.ts +2 -2
  122. package/src/server/routes/instance/httpapi/middleware/fence.ts +2 -2
  123. package/src/server/routes/instance/httpapi/middleware/workspace-routing.ts +2 -2
  124. package/src/server/routes/instance/httpapi/server.ts +27 -27
  125. package/src/server/routes/instance/httpapi/websocket-tracker.ts +1 -1
  126. package/src/server/server.ts +2 -2
  127. package/src/server/shared/fence.ts +3 -3
  128. package/src/server/shared/ui.ts +1 -1
  129. package/src/server/tui-event.ts +1 -1
  130. package/src/session/compaction.ts +8 -8
  131. package/src/session/instruction.ts +6 -6
  132. package/src/session/llm/AGENTS.md +8 -8
  133. package/src/session/llm/ai-sdk.ts +2 -2
  134. package/src/session/llm/native-request.ts +4 -4
  135. package/src/session/llm/native-runtime.ts +4 -4
  136. package/src/session/llm/request.ts +3 -3
  137. package/src/session/llm.ts +10 -10
  138. package/src/session/message-error.ts +1 -1
  139. package/src/session/message-v2.ts +7 -7
  140. package/src/session/message.ts +3 -3
  141. package/src/session/overflow.ts +2 -2
  142. package/src/session/processor.ts +5 -5
  143. package/src/session/prompt.ts +13 -13
  144. package/src/session/reminders.ts +2 -2
  145. package/src/session/retry.ts +2 -2
  146. package/src/session/revert.ts +2 -2
  147. package/src/session/run-state.ts +2 -2
  148. package/src/session/schema.ts +2 -2
  149. package/src/session/session.ts +20 -20
  150. package/src/session/status.ts +2 -2
  151. package/src/session/summary.ts +2 -2
  152. package/src/session/system.ts +6 -6
  153. package/src/session/todo.ts +4 -4
  154. package/src/session/tools.ts +3 -3
  155. package/src/share/session.ts +1 -1
  156. package/src/share/share-next.ts +9 -9
  157. package/src/skill/discovery.ts +4 -4
  158. package/src/skill/index.ts +7 -7
  159. package/src/snapshot/index.ts +6 -6
  160. package/src/storage/schema.ts +5 -5
  161. package/src/storage/storage.ts +4 -4
  162. package/src/sync/schema.ts +1 -1
  163. package/src/temporary.ts +1 -1
  164. package/src/tool/apply_patch.ts +3 -3
  165. package/src/tool/code-mode.ts +1 -1
  166. package/src/tool/edit.ts +3 -3
  167. package/src/tool/external-directory.ts +1 -1
  168. package/src/tool/glob.ts +2 -2
  169. package/src/tool/grep.ts +2 -2
  170. package/src/tool/lsp.ts +1 -1
  171. package/src/tool/plan.ts +1 -1
  172. package/src/tool/read.ts +2 -2
  173. package/src/tool/registry.ts +11 -11
  174. package/src/tool/schema.ts +1 -1
  175. package/src/tool/shell/prompt.ts +2 -2
  176. package/src/tool/shell.ts +2 -2
  177. package/src/tool/skill.ts +1 -1
  178. package/src/tool/task.ts +2 -2
  179. package/src/tool/tool.ts +2 -2
  180. package/src/tool/truncate.ts +2 -2
  181. package/src/tool/truncation-dir.ts +1 -1
  182. package/src/tool/websearch.ts +2 -2
  183. package/src/tool/write.ts +3 -3
  184. package/src/util/bom.ts +1 -1
  185. package/src/util/filesystem.ts +2 -2
  186. package/src/util/repository.ts +1 -1
  187. package/src/util/token.ts +1 -1
  188. package/src/worktree/index.ts +10 -10
@@ -1,6 +1,6 @@
1
- import { LayerNode } from "@opencode-ai/core/effect/layer-node"
1
+ import { LayerNode } from "@soraacode/core/effect/layer-node"
2
2
  import { Effect, Layer, Context, Schema } from "effect"
3
- import { SessionV1 } from "@opencode-ai/core/v1/session"
3
+ import { SessionV1 } from "@soraacode/core/v1/session"
4
4
  import { EventV2Bridge } from "@/event-v2-bridge"
5
5
  import { Snapshot } from "../snapshot"
6
6
  import { Storage } from "@/storage/storage"
@@ -1,6 +1,6 @@
1
- import { LayerNode } from "@opencode-ai/core/effect/layer-node"
1
+ import { LayerNode } from "@soraacode/core/effect/layer-node"
2
2
  import { InstanceState } from "@/effect/instance-state"
3
- import { SessionV1 } from "@opencode-ai/core/v1/session"
3
+ import { SessionV1 } from "@soraacode/core/v1/session"
4
4
  import { Runner } from "@/effect/runner"
5
5
  import { BackgroundJob } from "@/background/job"
6
6
  import { Effect, Latch, Layer, Scope, Context } from "effect"
@@ -1,8 +1,8 @@
1
1
  import { Schema } from "effect"
2
2
 
3
3
  import { Identifier } from "@/id/id"
4
- import { SessionV2 } from "@opencode-ai/core/session"
5
- import { statics } from "@opencode-ai/core/schema"
4
+ import { SessionV2 } from "@soraacode/core/session"
5
+ import { statics } from "@soraacode/core/schema"
6
6
 
7
7
  export const SessionID = SessionV2.ID
8
8
  export type SessionID = Schema.Schema.Type<typeof SessionID>
@@ -1,18 +1,18 @@
1
- import { LayerNode } from "@opencode-ai/core/effect/layer-node"
2
- import { PermissionV1 } from "@opencode-ai/core/v1/permission"
3
- import { Slug } from "@opencode-ai/core/util/slug"
4
- import { SessionV1 } from "@opencode-ai/core/v1/session"
5
- import { serviceUse } from "@opencode-ai/core/effect/service-use"
1
+ import { LayerNode } from "@soraacode/core/effect/layer-node"
2
+ import { PermissionV1 } from "@soraacode/core/v1/permission"
3
+ import { Slug } from "@soraacode/core/util/slug"
4
+ import { SessionV1 } from "@soraacode/core/v1/session"
5
+ import { serviceUse } from "@soraacode/core/effect/service-use"
6
6
  import path from "path"
7
7
  import { BackgroundJob } from "@/background/job"
8
8
  import { Decimal } from "decimal.js"
9
- import type { ProviderMetadata, Usage } from "@opencode-ai/llm"
10
- import { InstallationVersion } from "@opencode-ai/core/installation/version"
11
- import { Database } from "@opencode-ai/core/database/database"
9
+ import type { ProviderMetadata, Usage } from "@soraacode/llm"
10
+ import { InstallationVersion } from "@soraacode/core/installation/version"
11
+ import { Database } from "@soraacode/core/database/database"
12
12
  import { EventV2Bridge } from "@/event-v2-bridge"
13
- import { SessionV2 } from "@opencode-ai/core/session"
14
- import * as SessionExecutionLocal from "@opencode-ai/core/session/execution/local"
15
- import { locationServiceMapLayer } from "@opencode-ai/core/location-services"
13
+ import { SessionV2 } from "@soraacode/core/session"
14
+ import * as SessionExecutionLocal from "@soraacode/core/session/execution/local"
15
+ import { locationServiceMapLayer } from "@soraacode/core/location-services"
16
16
 
17
17
  import { NotFoundError } from "@/storage/storage"
18
18
  import { eq } from "drizzle-orm"
@@ -26,24 +26,24 @@ import { inArray } from "drizzle-orm"
26
26
  import { lt } from "drizzle-orm"
27
27
  import { or } from "drizzle-orm"
28
28
  import type { SQL } from "drizzle-orm"
29
- import { PartTable, SessionTable } from "@opencode-ai/core/session/sql"
30
- import { ProjectTable } from "@opencode-ai/core/project/sql"
29
+ import { PartTable, SessionTable } from "@soraacode/core/session/sql"
30
+ import { ProjectTable } from "@soraacode/core/project/sql"
31
31
  import { MessageV2 } from "./message-v2"
32
32
  import type { InstanceContext } from "../project/instance-context"
33
33
  import { InstanceState } from "@/effect/instance-state"
34
34
  import { Snapshot } from "@/snapshot"
35
- import { ProjectV2 } from "@opencode-ai/core/project"
36
- import { WorkspaceV2 } from "@opencode-ai/core/workspace"
35
+ import { ProjectV2 } from "@soraacode/core/project"
36
+ import { WorkspaceV2 } from "@soraacode/core/workspace"
37
37
  import { SessionID, MessageID, PartID } from "./schema"
38
38
 
39
39
  import type { Provider } from "@/provider/provider"
40
- import { Global } from "@opencode-ai/core/global"
40
+ import { Global } from "@soraacode/core/global"
41
41
  import { Effect, Layer, Option, Context, Schema, Types } from "effect"
42
- import { NonNegativeInt, optional } from "@opencode-ai/core/schema"
42
+ import { NonNegativeInt, optional } from "@soraacode/core/schema"
43
43
  import { RuntimeFlags } from "@/effect/runtime-flags"
44
- import { ProviderV2 } from "@opencode-ai/core/provider"
45
- import { ModelV2 } from "@opencode-ai/core/model"
46
- import { SessionMessage } from "@opencode-ai/schema/session-message"
44
+ import { ProviderV2 } from "@soraacode/core/provider"
45
+ import { ModelV2 } from "@soraacode/core/model"
46
+ import { SessionMessage } from "@soraacode/schema/session-message"
47
47
 
48
48
  const parentTitlePrefix = "New session - "
49
49
  const childTitlePrefix = "Child session - "
@@ -1,9 +1,9 @@
1
- import { LayerNode } from "@opencode-ai/core/effect/layer-node"
1
+ import { LayerNode } from "@soraacode/core/effect/layer-node"
2
2
  import { InstanceState } from "@/effect/instance-state"
3
3
  import { SessionID } from "./schema"
4
4
  import { Effect, Layer, Context } from "effect"
5
5
  import { EventV2Bridge } from "@/event-v2-bridge"
6
- import { SessionStatusEvent } from "@opencode-ai/schema/session-status-event"
6
+ import { SessionStatusEvent } from "@soraacode/schema/session-status-event"
7
7
 
8
8
  export const Info = SessionStatusEvent.Info
9
9
  export type Info = SessionStatusEvent.Info
@@ -1,6 +1,6 @@
1
- import { LayerNode } from "@opencode-ai/core/effect/layer-node"
1
+ import { LayerNode } from "@soraacode/core/effect/layer-node"
2
2
  import { Effect, Layer, Context, Schema } from "effect"
3
- import { SessionV1 } from "@opencode-ai/core/v1/session"
3
+ import { SessionV1 } from "@soraacode/core/v1/session"
4
4
  import { EventV2Bridge } from "@/event-v2-bridge"
5
5
  import { Snapshot } from "@/snapshot"
6
6
  import { Session } from "./session"
@@ -1,4 +1,4 @@
1
- import { LayerNode } from "@opencode-ai/core/effect/layer-node"
1
+ import { LayerNode } from "@soraacode/core/effect/layer-node"
2
2
  import { Context, Effect, Layer } from "effect"
3
3
 
4
4
  import { InstanceState } from "@/effect/instance-state"
@@ -8,12 +8,12 @@ import type { Provider } from "@/provider/provider"
8
8
  import type { Agent } from "@/agent/agent"
9
9
  import { Permission } from "@/permission"
10
10
  import { Skill } from "@/skill"
11
- import { AbsolutePath } from "@opencode-ai/core/schema"
12
- import { Location } from "@opencode-ai/core/location"
13
- import { LocationServiceMap, locationServiceMapLayer } from "@opencode-ai/core/location-services"
14
- import { Reference } from "@opencode-ai/core/reference"
11
+ import { AbsolutePath } from "@soraacode/core/schema"
12
+ import { Location } from "@soraacode/core/location"
13
+ import { LocationServiceMap, locationServiceMapLayer } from "@soraacode/core/location-services"
14
+ import { Reference } from "@soraacode/core/reference"
15
15
  import { MCP } from "@/mcp"
16
- import { PermissionV1 } from "@opencode-ai/core/v1/permission"
16
+ import { PermissionV1 } from "@soraacode/core/v1/permission"
17
17
 
18
18
  export function provider(model: Provider.Model) {
19
19
  return [PROMPT_DEFAULT]
@@ -1,12 +1,12 @@
1
- import { LayerNode } from "@opencode-ai/core/effect/layer-node"
1
+ import { LayerNode } from "@soraacode/core/effect/layer-node"
2
2
  import { SessionID } from "./schema"
3
3
  import { Effect, Layer, Context } from "effect"
4
- import { Database } from "@opencode-ai/core/database/database"
4
+ import { Database } from "@soraacode/core/database/database"
5
5
  import { eq } from "drizzle-orm"
6
6
  import { asc } from "drizzle-orm"
7
- import { TodoTable } from "@opencode-ai/core/session/sql"
7
+ import { TodoTable } from "@soraacode/core/session/sql"
8
8
  import { EventV2Bridge } from "@/event-v2-bridge"
9
- import { SessionTodo } from "@opencode-ai/schema/session-todo"
9
+ import { SessionTodo } from "@soraacode/schema/session-todo"
10
10
 
11
11
  export const Info = SessionTodo.Info
12
12
  export type Info = SessionTodo.Info
@@ -1,5 +1,5 @@
1
1
  import { Agent } from "@/agent/agent"
2
- import { SessionV1 } from "@opencode-ai/core/v1/session"
2
+ import { SessionV1 } from "@soraacode/core/v1/session"
3
3
  import { Provider } from "@/provider/provider"
4
4
  import { ProviderTransform } from "@/provider/transform"
5
5
  import { MCP } from "@/mcp"
@@ -19,8 +19,8 @@ import { Session } from "./session"
19
19
  import { SessionProcessor } from "./processor"
20
20
  import { PartID } from "./schema"
21
21
  import { EffectBridge } from "@/effect/bridge"
22
- import { ProviderV2 } from "@opencode-ai/core/provider"
23
- import { ModelV2 } from "@opencode-ai/core/model"
22
+ import { ProviderV2 } from "@soraacode/core/provider"
23
+ import { ModelV2 } from "@soraacode/core/model"
24
24
  import { isRecord } from "@/util/record"
25
25
  import { RuntimeFlags } from "@/effect/runtime-flags"
26
26
 
@@ -1,4 +1,4 @@
1
- import { LayerNode } from "@opencode-ai/core/effect/layer-node"
1
+ import { LayerNode } from "@soraacode/core/effect/layer-node"
2
2
  import { Session } from "@/session/session"
3
3
  import { SessionID } from "@/session/schema"
4
4
  import { Effect, Layer, Scope, Context } from "effect"
@@ -1,7 +1,7 @@
1
- import { LayerNode } from "@opencode-ai/core/effect/layer-node"
2
- import { httpClient } from "@opencode-ai/core/effect/app-node-platform"
3
- import type * as SDK from "@opencode-ai/sdk/v2"
4
- import { serviceUse } from "@opencode-ai/core/effect/service-use"
1
+ import { LayerNode } from "@soraacode/core/effect/layer-node"
2
+ import { httpClient } from "@soraacode/core/effect/app-node-platform"
3
+ import type * as SDK from "@soraacode/sdk/v2"
4
+ import { serviceUse } from "@soraacode/core/effect/service-use"
5
5
  import { Effect, Exit, Layer, Option, Schema, Scope, Context, Stream } from "effect"
6
6
  import { FetchHttpClient, HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http"
7
7
  import { Account } from "@/account/account"
@@ -12,13 +12,13 @@ import { Provider } from "@/provider/provider"
12
12
  import { Session } from "@/session/session"
13
13
  import { MessageV2 } from "@/session/message-v2"
14
14
  import type { SessionID } from "@/session/schema"
15
- import { Database } from "@opencode-ai/core/database/database"
15
+ import { Database } from "@soraacode/core/database/database"
16
16
  import { eq } from "drizzle-orm"
17
17
  import { Config } from "@/config/config"
18
- import { SessionShareTable } from "@opencode-ai/core/share/sql"
19
- import { ProviderV2 } from "@opencode-ai/core/provider"
20
- import { ModelV2 } from "@opencode-ai/core/model"
21
- import { EventV2 } from "@opencode-ai/core/event"
18
+ import { SessionShareTable } from "@soraacode/core/share/sql"
19
+ import { ProviderV2 } from "@soraacode/core/provider"
20
+ import { ModelV2 } from "@soraacode/core/model"
21
+ import { EventV2 } from "@soraacode/core/event"
22
22
 
23
23
  const disabled = process.env["OPENCODE_DISABLE_SHARE"] === "true" || process.env["OPENCODE_DISABLE_SHARE"] === "1"
24
24
 
@@ -1,11 +1,11 @@
1
- import { LayerNode } from "@opencode-ai/core/effect/layer-node"
2
- import { httpClient, path } from "@opencode-ai/core/effect/app-node-platform"
1
+ import { LayerNode } from "@soraacode/core/effect/layer-node"
2
+ import { httpClient, path } from "@soraacode/core/effect/app-node-platform"
3
3
  import { NodePath } from "@effect/platform-node"
4
4
  import { Effect, Layer, Path, Schema, Context } from "effect"
5
5
  import { FetchHttpClient, HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http"
6
6
  import { withTransientReadRetry } from "@/util/effect-http-client"
7
- import { FSUtil } from "@opencode-ai/core/fs-util"
8
- import { Global } from "@opencode-ai/core/global"
7
+ import { FSUtil } from "@soraacode/core/fs-util"
8
+ import { Global } from "@soraacode/core/global"
9
9
 
10
10
  const skillConcurrency = 4
11
11
  const fileConcurrency = 8
@@ -1,19 +1,19 @@
1
- import { LayerNode } from "@opencode-ai/core/effect/layer-node"
1
+ import { LayerNode } from "@soraacode/core/effect/layer-node"
2
2
  import path from "path"
3
3
  import { Effect, Layer, Context, Schema } from "effect"
4
- import { NamedError } from "@opencode-ai/core/util/error"
4
+ import { NamedError } from "@soraacode/core/util/error"
5
5
  import type { Agent } from "@/agent/agent"
6
6
  import { EventV2Bridge } from "@/event-v2-bridge"
7
7
  import { InstanceState } from "@/effect/instance-state"
8
- import { Global } from "@opencode-ai/core/global"
9
- import { SkillPlugin } from "@opencode-ai/core/plugin/skill"
8
+ import { Global } from "@soraacode/core/global"
9
+ import { SkillPlugin } from "@soraacode/core/plugin/skill"
10
10
  import { Permission } from "@/permission"
11
- import { FSUtil } from "@opencode-ai/core/fs-util"
11
+ import { FSUtil } from "@soraacode/core/fs-util"
12
12
  import { Config } from "@/config/config"
13
- import { FrontmatterError } from "@opencode-ai/core/v1/config/error"
13
+ import { FrontmatterError } from "@soraacode/core/v1/config/error"
14
14
  import { ConfigMarkdown } from "@/config/markdown"
15
15
  import { RuntimeFlags } from "@/effect/runtime-flags"
16
- import { Glob } from "@opencode-ai/core/util/glob"
16
+ import { Glob } from "@soraacode/core/util/glob"
17
17
  import { Discovery } from "./discovery"
18
18
  import { isRecord } from "@/util/record"
19
19
  import { escapeHtml } from "@/util/html"
@@ -1,15 +1,15 @@
1
- import { LayerNode } from "@opencode-ai/core/effect/layer-node"
1
+ import { LayerNode } from "@soraacode/core/effect/layer-node"
2
2
  import { Cause, Duration, Effect, Layer, Schedule, Schema, Semaphore, Context } from "effect"
3
3
  import { ChildProcess, ChildProcessSpawner } from "effect/unstable/process"
4
4
  import { formatPatch, structuredPatch } from "diff"
5
5
  import path from "path"
6
- import { AppProcess } from "@opencode-ai/core/process"
6
+ import { AppProcess } from "@soraacode/core/process"
7
7
  import { InstanceState } from "@/effect/instance-state"
8
- import { FSUtil } from "@opencode-ai/core/fs-util"
9
- import { Hash } from "@opencode-ai/core/util/hash"
8
+ import { FSUtil } from "@soraacode/core/fs-util"
9
+ import { Hash } from "@soraacode/core/util/hash"
10
10
  import { Config } from "@/config/config"
11
- import { Global } from "@opencode-ai/core/global"
12
- import { Info } from "@opencode-ai/schema/file-diff"
11
+ import { Global } from "@soraacode/core/global"
12
+ import { Info } from "@soraacode/schema/file-diff"
13
13
 
14
14
  export const Patch = Schema.Struct({
15
15
  hash: Schema.String,
@@ -1,5 +1,5 @@
1
- export { AccountTable, AccountStateTable, ControlAccountTable } from "@opencode-ai/core/account/sql"
2
- export { ProjectTable } from "@opencode-ai/core/project/sql"
3
- export { SessionTable, MessageTable, PartTable, TodoTable } from "@opencode-ai/core/session/sql"
4
- export { SessionShareTable } from "@opencode-ai/core/share/sql"
5
- export { WorkspaceTable } from "@opencode-ai/core/control-plane/workspace.sql"
1
+ export { AccountTable, AccountStateTable, ControlAccountTable } from "@soraacode/core/account/sql"
2
+ export { ProjectTable } from "@soraacode/core/project/sql"
3
+ export { SessionTable, MessageTable, PartTable, TodoTable } from "@soraacode/core/session/sql"
4
+ export { SessionShareTable } from "@soraacode/core/share/sql"
5
+ export { WorkspaceTable } from "@soraacode/core/control-plane/workspace.sql"
@@ -1,9 +1,9 @@
1
- import { LayerNode } from "@opencode-ai/core/effect/layer-node"
1
+ import { LayerNode } from "@soraacode/core/effect/layer-node"
2
2
  import path from "path"
3
- import { Global } from "@opencode-ai/core/global"
4
- import { FSUtil } from "@opencode-ai/core/fs-util"
3
+ import { Global } from "@soraacode/core/global"
4
+ import { FSUtil } from "@soraacode/core/fs-util"
5
5
  import { Effect, Exit, Layer, Option, RcMap, Schema, Context, TxReentrantLock } from "effect"
6
- import { NonNegativeInt } from "@opencode-ai/core/schema"
6
+ import { NonNegativeInt } from "@soraacode/core/schema"
7
7
  import { Git } from "@/git"
8
8
 
9
9
  type Migration = (dir: string, fs: FSUtil.Interface, git: Git.Interface) => Effect.Effect<void, FSUtil.Error>
@@ -1,7 +1,7 @@
1
1
  import { Schema } from "effect"
2
2
 
3
3
  import { Identifier } from "@/id/id"
4
- import { statics } from "@opencode-ai/core/schema"
4
+ import { statics } from "@soraacode/core/schema"
5
5
 
6
6
  export const EventID = Schema.String.check(Schema.isStartsWith("evt")).pipe(
7
7
  Schema.brand("EventID"),
package/src/temporary.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import yargs from "yargs"
2
2
  import { TuiThreadCommand } from "./cli/cmd/tui"
3
- import { InstallationVersion } from "@opencode-ai/core/installation/version"
3
+ import { InstallationVersion } from "@soraacode/core/installation/version"
4
4
  import { hideBin } from "yargs/helpers"
5
5
  const cli = yargs(hideBin(process.argv))
6
6
  .parserConfiguration({ "populate--": true })
@@ -2,16 +2,16 @@ import * as path from "path"
2
2
  import { Effect, Schema } from "effect"
3
3
  import * as Tool from "./tool"
4
4
  import { EventV2Bridge } from "@/event-v2-bridge"
5
- import { Watcher } from "@opencode-ai/core/filesystem/watcher"
5
+ import { Watcher } from "@soraacode/core/filesystem/watcher"
6
6
  import { InstanceState } from "@/effect/instance-state"
7
7
  import { Patch } from "../patch"
8
8
  import { createTwoFilesPatch, diffLines } from "diff"
9
9
  import { assertExternalDirectoryEffect } from "./external-directory"
10
10
  import { trimDiff } from "./edit"
11
11
  import { LSP } from "@/lsp/lsp"
12
- import { FSUtil } from "@opencode-ai/core/fs-util"
12
+ import { FSUtil } from "@soraacode/core/fs-util"
13
13
  import DESCRIPTION from "./apply_patch.txt"
14
- import { FileSystem } from "@opencode-ai/core/filesystem"
14
+ import { FileSystem } from "@soraacode/core/filesystem"
15
15
  import { Format } from "../format"
16
16
  import * as Bom from "@/util/bom"
17
17
 
@@ -1,7 +1,7 @@
1
1
  import * as Tool from "./tool"
2
2
  import { CallToolResultSchema, type CallToolResult } from "@modelcontextprotocol/sdk/types.js"
3
3
  import { Cause, Effect, Schema } from "effect"
4
- import { CodeMode, Tool as SandboxTool, toolError } from "@opencode-ai/codemode"
4
+ import { CodeMode, Tool as SandboxTool, toolError } from "@soraacode/codemode"
5
5
  import { MCP } from "@/mcp"
6
6
  import { McpCatalog } from "@/mcp/catalog"
7
7
  import { Agent } from "@/agent/agent"
package/src/tool/edit.ts CHANGED
@@ -9,14 +9,14 @@ import * as Tool from "./tool"
9
9
  import { LSP } from "@/lsp/lsp"
10
10
  import { createTwoFilesPatch, diffLines } from "diff"
11
11
  import DESCRIPTION from "./edit.txt"
12
- import { FileSystem } from "@opencode-ai/core/filesystem"
13
- import { Watcher } from "@opencode-ai/core/filesystem/watcher"
12
+ import { FileSystem } from "@soraacode/core/filesystem"
13
+ import { Watcher } from "@soraacode/core/filesystem/watcher"
14
14
  import { EventV2Bridge } from "@/event-v2-bridge"
15
15
  import { Format } from "../format"
16
16
  import { InstanceState } from "@/effect/instance-state"
17
17
  import { Snapshot } from "@/snapshot"
18
18
  import { assertExternalDirectoryEffect } from "./external-directory"
19
- import { FSUtil } from "@opencode-ai/core/fs-util"
19
+ import { FSUtil } from "@soraacode/core/fs-util"
20
20
  import * as Bom from "@/util/bom"
21
21
 
22
22
  function normalizeLineEndings(text: string): string {
@@ -3,7 +3,7 @@ import { Effect } from "effect"
3
3
  import { InstanceState } from "@/effect/instance-state"
4
4
  import type * as Tool from "./tool"
5
5
  import { containsPath } from "../project/instance-context"
6
- import { FSUtil } from "@opencode-ai/core/fs-util"
6
+ import { FSUtil } from "@soraacode/core/fs-util"
7
7
 
8
8
  type Kind = "file" | "directory"
9
9
 
package/src/tool/glob.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import path from "path"
2
2
  import { Effect, Schema } from "effect"
3
3
  import { InstanceState } from "@/effect/instance-state"
4
- import { FSUtil } from "@opencode-ai/core/fs-util"
5
- import { Ripgrep } from "@opencode-ai/core/ripgrep"
4
+ import { FSUtil } from "@soraacode/core/fs-util"
5
+ import { Ripgrep } from "@soraacode/core/ripgrep"
6
6
  import { assertExternalDirectoryEffect } from "./external-directory"
7
7
  import DESCRIPTION from "./glob.txt"
8
8
  import * as Tool from "./tool"
package/src/tool/grep.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import path from "path"
2
2
  import { Effect, Schema } from "effect"
3
3
  import { InstanceState } from "@/effect/instance-state"
4
- import { FSUtil } from "@opencode-ai/core/fs-util"
5
- import { Ripgrep } from "@opencode-ai/core/ripgrep"
4
+ import { FSUtil } from "@soraacode/core/fs-util"
5
+ import { Ripgrep } from "@soraacode/core/ripgrep"
6
6
  import { assertExternalDirectoryEffect } from "./external-directory"
7
7
  import DESCRIPTION from "./grep.txt"
8
8
  import * as Tool from "./tool"
package/src/tool/lsp.ts CHANGED
@@ -6,7 +6,7 @@ import DESCRIPTION from "./lsp.txt"
6
6
  import { InstanceState } from "@/effect/instance-state"
7
7
  import { pathToFileURL } from "url"
8
8
  import { assertExternalDirectoryEffect } from "./external-directory"
9
- import { FSUtil } from "@opencode-ai/core/fs-util"
9
+ import { FSUtil } from "@soraacode/core/fs-util"
10
10
 
11
11
  const operations = [
12
12
  "goToDefinition",
package/src/tool/plan.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import path from "path"
2
- import { SessionV1 } from "@opencode-ai/core/v1/session"
2
+ import { SessionV1 } from "@soraacode/core/v1/session"
3
3
  import { Effect, Schema } from "effect"
4
4
  import * as Tool from "./tool"
5
5
  import { Question } from "../question"
package/src/tool/read.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { Effect, Option, Schema, Scope, Stream } from "effect"
2
- import { NonNegativeInt } from "@opencode-ai/core/schema"
2
+ import { NonNegativeInt } from "@soraacode/core/schema"
3
3
  import * as path from "path"
4
4
  import * as Tool from "./tool"
5
- import { FSUtil } from "@opencode-ai/core/fs-util"
5
+ import { FSUtil } from "@soraacode/core/fs-util"
6
6
  import { LSP } from "@/lsp/lsp"
7
7
  import DESCRIPTION from "./read.txt"
8
8
  import { InstanceState } from "@/effect/instance-state"
@@ -1,6 +1,6 @@
1
- import { LayerNode } from "@opencode-ai/core/effect/layer-node"
2
- import { httpClient } from "@opencode-ai/core/effect/app-node-platform"
3
- import { Ripgrep } from "@opencode-ai/core/ripgrep"
1
+ import { LayerNode } from "@soraacode/core/effect/layer-node"
2
+ import { httpClient } from "@soraacode/core/effect/app-node-platform"
3
+ import { Ripgrep } from "@soraacode/core/ripgrep"
4
4
  import { PlanExitTool } from "./plan"
5
5
  import { Session } from "@/session/session"
6
6
  import { QuestionTool } from "./question"
@@ -10,7 +10,7 @@ import { GlobTool } from "./glob"
10
10
  import { GrepTool } from "./grep"
11
11
  import { ReadTool } from "./read"
12
12
  import { TaskTool } from "./task"
13
- import { Database } from "@opencode-ai/core/database/database"
13
+ import { Database } from "@soraacode/core/database/database"
14
14
  import { TodoWriteTool } from "./todo"
15
15
  import { WebFetchTool } from "./webfetch"
16
16
  import { WriteTool } from "./write"
@@ -18,7 +18,7 @@ import { InvalidTool } from "./invalid"
18
18
  import { SkillTool } from "./skill"
19
19
  import * as Tool from "./tool"
20
20
  import { Config } from "@/config/config"
21
- import { type ToolContext as PluginToolContext, type ToolDefinition } from "@opencode-ai/plugin"
21
+ import { type ToolContext as PluginToolContext, type ToolDefinition } from "@soraacode/plugin"
22
22
  import type { JSONSchema7, JSONSchema7Definition } from "@ai-sdk/provider"
23
23
  import { Schema } from "effect"
24
24
  import z from "zod"
@@ -29,12 +29,12 @@ import { WebSearchTool } from "./websearch"
29
29
  import { LspTool } from "./lsp"
30
30
  import * as Truncate from "./truncate"
31
31
  import { ApplyPatchTool } from "./apply_patch"
32
- import { Glob } from "@opencode-ai/core/util/glob"
32
+ import { Glob } from "@soraacode/core/util/glob"
33
33
  import path from "path"
34
34
  import { pathToFileURL } from "url"
35
35
  import { Effect, Layer, Context } from "effect"
36
36
  import { ChildProcessSpawner } from "effect/unstable/process/ChildProcessSpawner"
37
- import { CrossSpawnSpawner } from "@opencode-ai/core/cross-spawn-spawner"
37
+ import { CrossSpawnSpawner } from "@soraacode/core/cross-spawn-spawner"
38
38
  import { Format } from "../format"
39
39
  import { InstanceState } from "@/effect/instance-state"
40
40
  import { EffectBridge } from "@/effect/bridge"
@@ -42,17 +42,17 @@ import { Question } from "../question"
42
42
  import { Todo } from "../session/todo"
43
43
  import { LSP } from "@/lsp/lsp"
44
44
  import { Instruction } from "../session/instruction"
45
- import { FSUtil } from "@opencode-ai/core/fs-util"
45
+ import { FSUtil } from "@soraacode/core/fs-util"
46
46
  import { EventV2Bridge } from "@/event-v2-bridge"
47
47
  import { Agent } from "../agent/agent"
48
48
  import { Skill } from "../skill"
49
49
  import { Permission } from "@/permission"
50
50
  import { BackgroundJob } from "@/background/job"
51
51
  import { RuntimeFlags } from "@/effect/runtime-flags"
52
- import { ProviderV2 } from "@opencode-ai/core/provider"
53
- import { ModelV2 } from "@opencode-ai/core/model"
52
+ import { ProviderV2 } from "@soraacode/core/provider"
53
+ import { ModelV2 } from "@soraacode/core/model"
54
54
  import { MCP } from "@/mcp"
55
- import { PermissionV1 } from "@opencode-ai/core/v1/permission"
55
+ import { PermissionV1 } from "@soraacode/core/v1/permission"
56
56
  import { McpCatalog } from "@/mcp/catalog"
57
57
 
58
58
  export function webSearchEnabled(providerID: ProviderV2.ID, flags = { exa: false, parallel: false }) {
@@ -1,7 +1,7 @@
1
1
  import { Schema } from "effect"
2
2
 
3
3
  import { Identifier } from "@/id/id"
4
- import { statics } from "@opencode-ai/core/schema"
4
+ import { statics } from "@soraacode/core/schema"
5
5
 
6
6
  const toolIdSchema = Schema.String.check(Schema.isStartsWith("tool")).pipe(Schema.brand("ToolID"))
7
7
 
@@ -1,7 +1,7 @@
1
1
  import { Schema } from "effect"
2
2
  import DESCRIPTION from "./shell.txt"
3
- import { PositiveInt } from "@opencode-ai/core/schema"
4
- import { Global } from "@opencode-ai/core/global"
3
+ import { PositiveInt } from "@soraacode/core/schema"
4
+ import { Global } from "@soraacode/core/global"
5
5
  import { ShellID } from "./id"
6
6
 
7
7
  const PS = new Set(["powershell", "pwsh"])
package/src/tool/shell.ts CHANGED
@@ -8,11 +8,11 @@ import { InstanceState } from "@/effect/instance-state"
8
8
  import { lazy } from "@/util/lazy"
9
9
  import { Language, type Node } from "web-tree-sitter"
10
10
 
11
- import { FSUtil } from "@opencode-ai/core/fs-util"
11
+ import { FSUtil } from "@soraacode/core/fs-util"
12
12
  import { fileURLToPath } from "url"
13
13
  import { Config } from "@/config/config"
14
14
  import { RuntimeFlags } from "@/effect/runtime-flags"
15
- import { Shell } from "@opencode-ai/core/shell"
15
+ import { Shell } from "@soraacode/core/shell"
16
16
  import { ShellID } from "./shell/id"
17
17
 
18
18
  import * as Truncate from "./truncate"
package/src/tool/skill.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import path from "path"
2
2
  import { Effect, Schema } from "effect"
3
- import { Ripgrep } from "@opencode-ai/core/ripgrep"
3
+ import { Ripgrep } from "@soraacode/core/ripgrep"
4
4
  import { Skill } from "../skill"
5
5
  import * as Tool from "./tool"
6
6
  import DESCRIPTION from "./skill.txt"
package/src/tool/task.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as Tool from "./tool"
2
2
  import DESCRIPTION from "./task.txt"
3
3
  import { ToolJsonSchema } from "./json-schema"
4
- import { SessionV1 } from "@opencode-ai/core/v1/session"
4
+ import { SessionV1 } from "@soraacode/core/v1/session"
5
5
  import { BackgroundJob } from "@/background/job"
6
6
  import { Session } from "@/session/session"
7
7
  import { SessionID, MessageID } from "../session/schema"
@@ -13,7 +13,7 @@ import { Config } from "@/config/config"
13
13
  import { Effect, Exit, Schema, Scope } from "effect"
14
14
  import { EffectBridge } from "@/effect/bridge"
15
15
  import { RuntimeFlags } from "@/effect/runtime-flags"
16
- import { Database } from "@opencode-ai/core/database/database"
16
+ import { Database } from "@soraacode/core/database/database"
17
17
 
18
18
  export interface TaskPromptOps {
19
19
  cancel(sessionID: SessionID): Effect.Effect<void>
package/src/tool/tool.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { PermissionV1 } from "@opencode-ai/core/v1/permission"
1
+ import { PermissionV1 } from "@soraacode/core/v1/permission"
2
2
  import { Effect, Schema } from "effect"
3
- import { SessionV1 } from "@opencode-ai/core/v1/session"
3
+ import { SessionV1 } from "@soraacode/core/v1/session"
4
4
  import type { JSONSchema7 } from "@ai-sdk/provider"
5
5
  import type { MessageV2 } from "../session/message-v2"
6
6
  import type { Permission } from "../permission"
@@ -1,9 +1,9 @@
1
- import { LayerNode } from "@opencode-ai/core/effect/layer-node"
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 "@opencode-ai/core/fs-util"
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"
@@ -1,4 +1,4 @@
1
1
  import path from "path"
2
- import { Global } from "@opencode-ai/core/global"
2
+ import { Global } from "@soraacode/core/global"
3
3
 
4
4
  export const TRUNCATION_DIR = path.join(Global.Path.data, "tool-output")