anymous 1.0.5 → 1.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 (285) hide show
  1. package/bin/anymous.cjs +45 -45
  2. package/package.json +28 -28
  3. package/src/account/account.ts +5 -5
  4. package/src/account/repo.ts +5 -5
  5. package/src/acp/agent.ts +2 -2
  6. package/src/acp/content.ts +1 -1
  7. package/src/acp/directory.ts +5 -5
  8. package/src/acp/event.ts +4 -4
  9. package/src/acp/permission.ts +2 -2
  10. package/src/acp/profile.ts +1 -1
  11. package/src/acp/service.ts +24 -24
  12. package/src/acp/session.ts +5 -5
  13. package/src/acp/usage.ts +11 -11
  14. package/src/agent/agent.ts +13 -13
  15. package/src/agent/prompt/debug-tools.txt +40 -40
  16. package/src/agent/prompt/exe-extractor.txt +39 -39
  17. package/src/agent/prompt/memory-dump.txt +37 -37
  18. package/src/agent/prompt/reverser-automator.txt +38 -38
  19. package/src/agent/prompt/reverser-binary.txt +39 -39
  20. package/src/agent/prompt/reverser-dynamic.txt +36 -36
  21. package/src/agent/prompt/reverser-source.txt +38 -38
  22. package/src/agent/prompt/reverser-static.txt +35 -35
  23. package/src/agent/subagent-permissions.ts +1 -1
  24. package/src/auth/index.ts +8 -8
  25. package/src/background/job.ts +3 -3
  26. package/src/cli/cmd/account.ts +1 -1
  27. package/src/cli/cmd/acp.ts +3 -3
  28. package/src/cli/cmd/agent.ts +2 -2
  29. package/src/cli/cmd/attach.ts +3 -3
  30. package/src/cli/cmd/db.ts +1 -1
  31. package/src/cli/cmd/debug/agent.handler.ts +2 -2
  32. package/src/cli/cmd/debug/file.ts +4 -4
  33. package/src/cli/cmd/debug/index.ts +5 -5
  34. package/src/cli/cmd/debug/ripgrep.ts +1 -1
  35. package/src/cli/cmd/debug/scrap.ts +2 -2
  36. package/src/cli/cmd/debug/v2.ts +4 -4
  37. package/src/cli/cmd/export.ts +1 -1
  38. package/src/cli/cmd/generate.ts +2 -2
  39. package/src/cli/cmd/github.handler.ts +27 -27
  40. package/src/cli/cmd/github.shared.ts +1 -1
  41. package/src/cli/cmd/import.ts +5 -5
  42. package/src/cli/cmd/mcp.ts +13 -13
  43. package/src/cli/cmd/models.ts +6 -6
  44. package/src/cli/cmd/plug.ts +2 -2
  45. package/src/cli/cmd/pr.ts +6 -6
  46. package/src/cli/cmd/prompt-display.ts +1 -1
  47. package/src/cli/cmd/providers.ts +12 -12
  48. package/src/cli/cmd/run/demo.ts +3 -3
  49. package/src/cli/cmd/run/footer.command.tsx +2 -2
  50. package/src/cli/cmd/run/footer.permission.tsx +1 -1
  51. package/src/cli/cmd/run/footer.prompt.tsx +9 -9
  52. package/src/cli/cmd/run/footer.question.tsx +1 -1
  53. package/src/cli/cmd/run/footer.subagent.tsx +3 -3
  54. package/src/cli/cmd/run/footer.ts +2 -2
  55. package/src/cli/cmd/run/footer.view.tsx +9 -9
  56. package/src/cli/cmd/run/permission.shared.ts +1 -1
  57. package/src/cli/cmd/run/question.shared.ts +1 -1
  58. package/src/cli/cmd/run/runtime.boot.ts +2 -2
  59. package/src/cli/cmd/run/runtime.lifecycle.ts +4 -4
  60. package/src/cli/cmd/run/runtime.ts +6 -6
  61. package/src/cli/cmd/run/session-data.ts +1 -1
  62. package/src/cli/cmd/run/session-replay.ts +1 -1
  63. package/src/cli/cmd/run/splash.ts +13 -5
  64. package/src/cli/cmd/run/stream.transport.ts +3 -3
  65. package/src/cli/cmd/run/subagent-data.ts +1 -1
  66. package/src/cli/cmd/run/theme.ts +2 -2
  67. package/src/cli/cmd/run/tool.ts +2 -2
  68. package/src/cli/cmd/run/trace.ts +4 -4
  69. package/src/cli/cmd/run/types.ts +13 -13
  70. package/src/cli/cmd/run/variant.shared.ts +5 -5
  71. package/src/cli/cmd/run.ts +22 -22
  72. package/src/cli/cmd/serve.ts +4 -4
  73. package/src/cli/cmd/session.ts +4 -4
  74. package/src/cli/cmd/stats.ts +2 -2
  75. package/src/cli/cmd/tui.ts +7 -7
  76. package/src/cli/cmd/uninstall.ts +19 -19
  77. package/src/cli/cmd/upgrade.ts +14 -14
  78. package/src/cli/cmd/web.ts +4 -4
  79. package/src/cli/error.ts +1 -1
  80. package/src/cli/heap.ts +3 -3
  81. package/src/cli/logo.ts +1 -1
  82. package/src/cli/network.ts +1 -1
  83. package/src/cli/tui/layer.ts +3 -3
  84. package/src/cli/tui/validate-session.ts +2 -2
  85. package/src/cli/ui.ts +12 -9
  86. package/src/cli/upgrade.ts +11 -11
  87. package/src/command/index.ts +3 -3
  88. package/src/command/template/initialize.txt +3 -3
  89. package/src/config/agent.ts +2 -2
  90. package/src/config/command.ts +3 -3
  91. package/src/config/config.ts +49 -49
  92. package/src/config/managed.ts +6 -6
  93. package/src/config/markdown.ts +2 -2
  94. package/src/config/parse.ts +2 -2
  95. package/src/config/paths.ts +7 -7
  96. package/src/config/plugin.ts +2 -2
  97. package/src/config/tui-host-attention.ts +2 -2
  98. package/src/config/tui-migrate.ts +12 -12
  99. package/src/config/tui.ts +23 -23
  100. package/src/config/variable.ts +1 -1
  101. package/src/control-plane/adapters/index.ts +1 -1
  102. package/src/control-plane/dev/README.md +5 -5
  103. package/src/control-plane/dev/debug-workspace-plugin.ts +2 -2
  104. package/src/control-plane/types.ts +3 -3
  105. package/src/control-plane/workspace-context.ts +1 -1
  106. package/src/control-plane/workspace.ts +17 -17
  107. package/src/effect/app-node-builder-v1.ts +2 -2
  108. package/src/effect/app-runtime.ts +9 -9
  109. package/src/effect/bootstrap-runtime.ts +4 -4
  110. package/src/effect/bridge.ts +1 -1
  111. package/src/effect/config-service.ts +3 -3
  112. package/src/effect/instance-ref.ts +3 -3
  113. package/src/effect/instance-state.ts +1 -1
  114. package/src/effect/run-service.ts +2 -2
  115. package/src/effect/runtime-flags.ts +34 -34
  116. package/src/env/index.ts +3 -3
  117. package/src/event-manifest.ts +1 -1
  118. package/src/event-v2-bridge.ts +7 -7
  119. package/src/format/formatter.ts +2 -2
  120. package/src/format/index.ts +4 -4
  121. package/src/git/index.ts +3 -3
  122. package/src/ide/index.ts +4 -4
  123. package/src/image/image.ts +4 -4
  124. package/src/index.ts +1 -1
  125. package/src/installation/index.ts +32 -32
  126. package/src/lsp/lsp.ts +5 -5
  127. package/src/lsp/server.ts +5 -5
  128. package/src/mcp/auth.ts +6 -6
  129. package/src/mcp/browser.ts +2 -2
  130. package/src/mcp/index.ts +17 -17
  131. package/src/mcp/oauth-callback.ts +1 -1
  132. package/src/mcp/oauth-provider.ts +2 -2
  133. package/src/node.ts +1 -1
  134. package/src/patch/index.ts +1 -1
  135. package/src/permission/index.ts +5 -5
  136. package/src/plugin/azure.ts +1 -1
  137. package/src/plugin/cloudflare.ts +1 -1
  138. package/src/plugin/digitalocean.ts +6 -6
  139. package/src/plugin/github-copilot/copilot.ts +7 -7
  140. package/src/plugin/github-copilot/models.ts +2 -2
  141. package/src/plugin/index.ts +7 -7
  142. package/src/plugin/install.ts +6 -6
  143. package/src/plugin/loader.ts +3 -3
  144. package/src/plugin/meta.ts +4 -4
  145. package/src/plugin/openai/README.md +1 -1
  146. package/src/plugin/openai/codex.ts +8 -8
  147. package/src/plugin/openai/ws-pool.ts +1 -1
  148. package/src/plugin/pty-environment.ts +1 -1
  149. package/src/plugin/shared.ts +7 -7
  150. package/src/plugin/snowflake-cortex.ts +6 -6
  151. package/src/plugin/tui/internal.ts +1 -1
  152. package/src/plugin/tui/runtime.ts +17 -17
  153. package/src/plugin/xai.ts +8 -8
  154. package/src/project/bootstrap-service.ts +1 -1
  155. package/src/project/bootstrap.ts +1 -1
  156. package/src/project/instance-context.ts +1 -1
  157. package/src/project/instance-store.ts +5 -5
  158. package/src/project/project.ts +18 -18
  159. package/src/project/vcs.ts +5 -5
  160. package/src/provider/auth.ts +6 -6
  161. package/src/provider/error.ts +3 -3
  162. package/src/provider/model-status.ts +1 -1
  163. package/src/provider/provider.ts +38 -38
  164. package/src/provider/transform.ts +4 -4
  165. package/src/question/index.ts +3 -3
  166. package/src/question/schema.ts +1 -1
  167. package/src/server/auth.ts +6 -6
  168. package/src/server/event.ts +1 -1
  169. package/src/server/mdns.ts +2 -2
  170. package/src/server/proxy-util.ts +2 -2
  171. package/src/server/routes/instance/httpapi/api.ts +10 -10
  172. package/src/server/routes/instance/httpapi/groups/config.ts +4 -4
  173. package/src/server/routes/instance/httpapi/groups/control-plane.ts +1 -1
  174. package/src/server/routes/instance/httpapi/groups/control.ts +1 -1
  175. package/src/server/routes/instance/httpapi/groups/experimental.ts +7 -7
  176. package/src/server/routes/instance/httpapi/groups/file.ts +3 -3
  177. package/src/server/routes/instance/httpapi/groups/global.ts +10 -10
  178. package/src/server/routes/instance/httpapi/groups/instance.ts +6 -6
  179. package/src/server/routes/instance/httpapi/groups/mcp.ts +2 -2
  180. package/src/server/routes/instance/httpapi/groups/permission.ts +2 -2
  181. package/src/server/routes/instance/httpapi/groups/project-copy.ts +1 -1
  182. package/src/server/routes/instance/httpapi/groups/project.ts +4 -4
  183. package/src/server/routes/instance/httpapi/groups/provider.ts +2 -2
  184. package/src/server/routes/instance/httpapi/groups/pty.ts +5 -5
  185. package/src/server/routes/instance/httpapi/groups/question.ts +1 -1
  186. package/src/server/routes/instance/httpapi/groups/session.ts +8 -8
  187. package/src/server/routes/instance/httpapi/groups/sync.ts +3 -3
  188. package/src/server/routes/instance/httpapi/groups/tui.ts +1 -1
  189. package/src/server/routes/instance/httpapi/groups/workspace.ts +1 -1
  190. package/src/server/routes/instance/httpapi/handlers/control-plane.ts +2 -2
  191. package/src/server/routes/instance/httpapi/handlers/control.ts +1 -1
  192. package/src/server/routes/instance/httpapi/handlers/event.ts +1 -1
  193. package/src/server/routes/instance/httpapi/handlers/file.ts +6 -6
  194. package/src/server/routes/instance/httpapi/handlers/global.ts +2 -2
  195. package/src/server/routes/instance/httpapi/handlers/instance.ts +1 -1
  196. package/src/server/routes/instance/httpapi/handlers/permission.ts +1 -1
  197. package/src/server/routes/instance/httpapi/handlers/project-copy.ts +2 -2
  198. package/src/server/routes/instance/httpapi/handlers/project.ts +1 -1
  199. package/src/server/routes/instance/httpapi/handlers/provider.ts +2 -2
  200. package/src/server/routes/instance/httpapi/handlers/pty.ts +9 -9
  201. package/src/server/routes/instance/httpapi/handlers/session.ts +3 -3
  202. package/src/server/routes/instance/httpapi/handlers/sync.ts +3 -3
  203. package/src/server/routes/instance/httpapi/middleware/authorization.ts +3 -3
  204. package/src/server/routes/instance/httpapi/middleware/error.ts +2 -2
  205. package/src/server/routes/instance/httpapi/middleware/fence.ts +3 -3
  206. package/src/server/routes/instance/httpapi/middleware/instance-context.ts +1 -1
  207. package/src/server/routes/instance/httpapi/middleware/schema-error.ts +1 -1
  208. package/src/server/routes/instance/httpapi/middleware/workspace-routing.ts +6 -6
  209. package/src/server/routes/instance/httpapi/public.ts +6 -6
  210. package/src/server/routes/instance/httpapi/server.ts +27 -27
  211. package/src/server/routes/instance/httpapi/websocket-tracker.ts +2 -2
  212. package/src/server/server.ts +3 -3
  213. package/src/server/shared/fence.ts +4 -4
  214. package/src/server/shared/pty-ticket.ts +1 -1
  215. package/src/server/shared/ui.ts +3 -3
  216. package/src/server/tui-event.ts +1 -1
  217. package/src/session/compaction.ts +9 -9
  218. package/src/session/instruction.ts +9 -9
  219. package/src/session/llm/AGENTS.md +12 -12
  220. package/src/session/llm/ai-sdk.ts +2 -2
  221. package/src/session/llm/native-request.ts +4 -4
  222. package/src/session/llm/native-runtime.ts +7 -7
  223. package/src/session/llm/request.ts +10 -10
  224. package/src/session/llm.ts +12 -12
  225. package/src/session/message-error.ts +1 -1
  226. package/src/session/message-v2.ts +7 -7
  227. package/src/session/message.ts +3 -3
  228. package/src/session/overflow.ts +2 -2
  229. package/src/session/processor.ts +6 -6
  230. package/src/session/prompt/meta.txt +1 -1
  231. package/src/session/prompt.ts +14 -14
  232. package/src/session/reminders.ts +2 -2
  233. package/src/session/retry.ts +5 -5
  234. package/src/session/revert.ts +3 -3
  235. package/src/session/run-state.ts +3 -3
  236. package/src/session/schema.ts +2 -2
  237. package/src/session/session.ts +22 -22
  238. package/src/session/status.ts +3 -3
  239. package/src/session/summary.ts +3 -3
  240. package/src/session/system.ts +7 -7
  241. package/src/session/todo.ts +5 -5
  242. package/src/session/tools.ts +3 -3
  243. package/src/share/session.ts +2 -2
  244. package/src/share/share-next.ts +11 -11
  245. package/src/skill/discovery.ts +7 -7
  246. package/src/skill/index.ts +21 -21
  247. package/src/snapshot/index.ts +7 -7
  248. package/src/storage/schema.ts +5 -5
  249. package/src/storage/storage.ts +5 -5
  250. package/src/sync/schema.ts +1 -1
  251. package/src/temporary.ts +4 -4
  252. package/src/tool/apply_patch.ts +3 -3
  253. package/src/tool/code-mode.ts +1 -1
  254. package/src/tool/edit.ts +3 -3
  255. package/src/tool/external-directory.ts +1 -1
  256. package/src/tool/glob.ts +2 -2
  257. package/src/tool/grep.ts +2 -2
  258. package/src/tool/lsp.ts +1 -1
  259. package/src/tool/lsp.txt +1 -1
  260. package/src/tool/plan.ts +1 -1
  261. package/src/tool/read.ts +2 -2
  262. package/src/tool/registry.ts +13 -13
  263. package/src/tool/schema.ts +1 -1
  264. package/src/tool/shell/id.ts +1 -1
  265. package/src/tool/shell/prompt.ts +2 -2
  266. package/src/tool/shell.ts +2 -2
  267. package/src/tool/skill.ts +1 -1
  268. package/src/tool/task.ts +3 -3
  269. package/src/tool/tool.ts +2 -2
  270. package/src/tool/truncate.ts +4 -4
  271. package/src/tool/truncation-dir.ts +1 -1
  272. package/src/tool/webfetch.ts +1 -1
  273. package/src/tool/websearch.ts +4 -4
  274. package/src/tool/write.ts +3 -3
  275. package/src/util/bom.ts +1 -1
  276. package/src/util/error.ts +1 -1
  277. package/src/util/filesystem.ts +2 -2
  278. package/src/util/locale.ts +2 -2
  279. package/src/util/process.ts +1 -1
  280. package/src/util/record.ts +1 -1
  281. package/src/util/repository.ts +2 -2
  282. package/src/util/token.ts +1 -1
  283. package/src/worktree/index.ts +12 -12
  284. package/tsconfig.json +1 -1
  285. package/script/postinstall.mjs +0 -189
package/src/env/index.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { LayerNode } from "@opencode-ai/core/effect/layer-node"
1
+ import { LayerNode } from "@anymous-ai/core/effect/layer-node"
2
2
  import { Context, Effect, Layer } from "effect"
3
- import { serviceUse } from "@opencode-ai/core/effect/service-use"
3
+ import { serviceUse } from "@anymous-ai/core/effect/service-use"
4
4
  import { InstanceState } from "@/effect/instance-state"
5
5
 
6
6
  type State = Record<string, string | undefined>
@@ -12,7 +12,7 @@ export interface Interface {
12
12
  readonly remove: (key: string) => Effect.Effect<void>
13
13
  }
14
14
 
15
- export class Service extends Context.Service<Service, Interface>()("@opencode/Env") {}
15
+ export class Service extends Context.Service<Service, Interface>()("@anymous/Env") {}
16
16
 
17
17
  export const use = serviceUse(Service)
18
18
 
@@ -1,3 +1,3 @@
1
1
  export * as EventManifest from "./event-manifest"
2
2
 
3
- export { Definitions, Durable, Latest } from "@opencode-ai/schema/event-manifest"
3
+ export { Definitions, Durable, Latest } from "@anymous-ai/schema/event-manifest"
@@ -1,15 +1,15 @@
1
- // Opencode publish boundary for core events. Attach routed instance location
1
+ // anymous publish boundary for core events. Attach routed instance location
2
2
  // so direct EventV2 consumers can isolate directory/workspace streams.
3
- import { LayerNode } from "@opencode-ai/core/effect/layer-node"
3
+ import { LayerNode } from "@anymous-ai/core/effect/layer-node"
4
4
  import { InstanceRef, WorkspaceRef } from "@/effect/instance-ref"
5
5
  import { GlobalBus } from "@/bus/global"
6
- import { EventV2 } from "@opencode-ai/core/event"
7
- import { Location } from "@opencode-ai/core/location"
8
- import { Project } from "@opencode-ai/core/project"
9
- import { AbsolutePath } from "@opencode-ai/core/schema"
6
+ import { EventV2 } from "@anymous-ai/core/event"
7
+ import { Location } from "@anymous-ai/core/location"
8
+ import { Project } from "@anymous-ai/core/project"
9
+ import { AbsolutePath } from "@anymous-ai/core/schema"
10
10
  import { Context, Effect, Layer } from "effect"
11
11
 
12
- export class Service extends Context.Service<Service, EventV2.Interface>()("@opencode/EventV2Bridge") {}
12
+ export class Service extends Context.Service<Service, EventV2.Interface>()("@anymous/EventV2Bridge") {}
13
13
 
14
14
  const layer = Layer.effect(
15
15
  Service,
@@ -1,8 +1,8 @@
1
- import { Npm } from "@opencode-ai/core/npm"
1
+ import { Npm } from "@anymous-ai/core/npm"
2
2
  import type { InstanceContext } from "../project/instance-context"
3
3
  import { Filesystem } from "@/util/filesystem"
4
4
  import { Process } from "@/util/process"
5
- import { which } from "@opencode-ai/core/util/which"
5
+ import { which } from "@anymous-ai/core/util/which"
6
6
 
7
7
  export interface Context extends Pick<InstanceContext, "directory" | "worktree"> {
8
8
  experimentalOxfmt: boolean
@@ -1,8 +1,8 @@
1
- import { LayerNode } from "@opencode-ai/core/effect/layer-node"
1
+ import { LayerNode } from "@anymous-ai/core/effect/layer-node"
2
2
  import { Effect, Layer, Context, Schema } from "effect"
3
- import { serviceUse } from "@opencode-ai/core/effect/service-use"
3
+ import { serviceUse } from "@anymous-ai/core/effect/service-use"
4
4
  import { ChildProcess } from "effect/unstable/process"
5
- import { AppProcess } from "@opencode-ai/core/process"
5
+ import { AppProcess } from "@anymous-ai/core/process"
6
6
  import { InstanceState } from "@/effect/instance-state"
7
7
  import path from "path"
8
8
  import { mergeDeep } from "remeda"
@@ -24,7 +24,7 @@ export interface Interface {
24
24
  readonly file: (filepath: string) => Effect.Effect<boolean>
25
25
  }
26
26
 
27
- export class Service extends Context.Service<Service, Interface>()("@opencode/Format") {}
27
+ export class Service extends Context.Service<Service, Interface>()("@anymous/Format") {}
28
28
 
29
29
  export const use = serviceUse(Service)
30
30
 
package/src/git/index.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { LayerNode } from "@opencode-ai/core/effect/layer-node"
2
- import { AppProcess } from "@opencode-ai/core/process"
1
+ import { LayerNode } from "@anymous-ai/core/effect/layer-node"
2
+ import { AppProcess } from "@anymous-ai/core/process"
3
3
  import { Effect, Layer, Context, Stream } from "effect"
4
4
  import { ChildProcess } from "effect/unstable/process"
5
5
 
@@ -98,7 +98,7 @@ const kind = (code: string): Kind => {
98
98
  return "modified"
99
99
  }
100
100
 
101
- export class Service extends Context.Service<Service, Interface>()("@opencode/Git") {}
101
+ export class Service extends Context.Service<Service, Interface>()("@anymous/Git") {}
102
102
 
103
103
  const layer = Layer.effect(
104
104
  Service,
package/src/ide/index.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Schema } from "effect"
2
- import { NamedError } from "@opencode-ai/core/util/error"
2
+ import { NamedError } from "@anymous-ai/core/util/error"
3
3
  import { Process } from "@/util/process"
4
- import { IdeEvent } from "@opencode-ai/schema/ide-event"
4
+ import { IdeEvent } from "@anymous-ai/schema/ide-event"
5
5
 
6
6
  const SUPPORTED_IDES = [
7
7
  { name: "Windsurf" as const, cmd: "windsurf" },
@@ -30,14 +30,14 @@ export function ide() {
30
30
  }
31
31
 
32
32
  export function alreadyInstalled() {
33
- return process.env["OPENCODE_CALLER"] === "vscode" || process.env["OPENCODE_CALLER"] === "vscode-insiders"
33
+ return process.env["ANYMOUS_CALLER"] === "vscode" || process.env["ANYMOUS_CALLER"] === "vscode-insiders"
34
34
  }
35
35
 
36
36
  export async function install(ide: (typeof SUPPORTED_IDES)[number]["name"]) {
37
37
  const cmd = SUPPORTED_IDES.find((i) => i.name === ide)?.cmd
38
38
  if (!cmd) throw new Error(`Unknown IDE: ${ide}`)
39
39
 
40
- const p = await Process.run([cmd, "--install-extension", "sst-dev.opencode"], {
40
+ const p = await Process.run([cmd, "--install-extension", "sst-dev.anymous"], {
41
41
  nothrow: true,
42
42
  })
43
43
  const stdout = p.stdout.toString()
@@ -1,6 +1,6 @@
1
- import { LayerNode } from "@opencode-ai/core/effect/layer-node"
1
+ import { LayerNode } from "@anymous-ai/core/effect/layer-node"
2
2
  import { Config } from "@/config/config"
3
- import { SessionV1 } from "@opencode-ai/core/v1/session"
3
+ import { SessionV1 } from "@anymous-ai/core/v1/session"
4
4
  import type { MessageV2 } from "@/session/message-v2"
5
5
  import photonWasm from "@silvia-odwyer/photon-node/photon_rs_bg.wasm" with { type: "file" }
6
6
  import { Context, Effect, Layer, Schema } from "effect"
@@ -54,7 +54,7 @@ export interface Interface {
54
54
  readonly normalize: (input: SessionV1.FilePart) => Effect.Effect<SessionV1.FilePart, Error>
55
55
  }
56
56
 
57
- export class Service extends Context.Service<Service, Interface>()("@opencode/Image") {}
57
+ export class Service extends Context.Service<Service, Interface>()("@anymous/Image") {}
58
58
 
59
59
  const layer = Layer.effect(
60
60
  Service,
@@ -63,7 +63,7 @@ const layer = Layer.effect(
63
63
  const loadPhoton = yield* Effect.cached(
64
64
  Effect.sync(() => {
65
65
  // Patched photon-node reads this during module init so Bun compiled binaries use the embedded wasm path.
66
- ;(globalThis as typeof globalThis & { __OPENCODE_PHOTON_WASM_PATH?: string }).__OPENCODE_PHOTON_WASM_PATH =
66
+ ;(globalThis as typeof globalThis & { __ANYMOUS_PHOTON_WASM_PATH?: string }).__ANYMOUS_PHOTON_WASM_PATH =
67
67
  path.isAbsolute(photonWasm) ? photonWasm : fileURLToPath(new URL(photonWasm, import.meta.url))
68
68
  }).pipe(
69
69
  Effect.andThen(() => Effect.tryPromise(() => import("@silvia-odwyer/photon-node"))),
package/src/index.ts CHANGED
@@ -9,7 +9,7 @@ import { UpgradeCommand } from "./cli/cmd/upgrade"
9
9
  import { UninstallCommand } from "./cli/cmd/uninstall"
10
10
  import { ModelsCommand } from "./cli/cmd/models"
11
11
  import { UI } from "./cli/ui"
12
- import { InstallationVersion } from "@opencode-ai/core/installation/version"
12
+ import { InstallationVersion } from "@anymous-ai/core/installation/version"
13
13
  import { FormatError } from "./cli/error"
14
14
  import { ServeCommand } from "./cli/cmd/serve"
15
15
  import { DebugCommand } from "./cli/cmd/debug"
@@ -1,19 +1,19 @@
1
- import { LayerNode } from "@opencode-ai/core/effect/layer-node"
2
- import { AppNodeBuilder } from "@opencode-ai/core/effect/app-node-builder"
3
- import { httpClient } from "@opencode-ai/core/effect/app-node-platform"
1
+ import { LayerNode } from "@anymous-ai/core/effect/layer-node"
2
+ import { AppNodeBuilder } from "@anymous-ai/core/effect/app-node-builder"
3
+ import { httpClient } from "@anymous-ai/core/effect/app-node-platform"
4
4
  import { Effect, Layer, Schema, Context, Stream } from "effect"
5
- import { serviceUse } from "@opencode-ai/core/effect/service-use"
5
+ import { serviceUse } from "@anymous-ai/core/effect/service-use"
6
6
  import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http"
7
7
  import { withTransientReadRetry } from "@/util/effect-http-client"
8
8
  import { errorMessage } from "@/util/error"
9
9
  import { ChildProcess } from "effect/unstable/process"
10
- import { AppProcess } from "@opencode-ai/core/process"
10
+ import { AppProcess } from "@anymous-ai/core/process"
11
11
  import path from "path"
12
- import { makeRuntime } from "@opencode-ai/core/effect/runtime"
12
+ import { makeRuntime } from "@anymous-ai/core/effect/runtime"
13
13
  import semver from "semver"
14
- import { InstallationChannel, InstallationVersion } from "@opencode-ai/core/installation/version"
15
- import { NpmConfig } from "@opencode-ai/core/npm-config"
16
- import { InstallationEvent } from "@opencode-ai/schema/installation-event"
14
+ import { InstallationChannel, InstallationVersion } from "@anymous-ai/core/installation/version"
15
+ import { NpmConfig } from "@anymous-ai/core/npm-config"
16
+ import { InstallationEvent } from "@anymous-ai/schema/installation-event"
17
17
 
18
18
  export type Method = "curl" | "npm" | "yarn" | "pnpm" | "bun" | "brew" | "scoop" | "choco" | "unknown"
19
19
 
@@ -39,7 +39,7 @@ export const Info = Schema.Struct({
39
39
  export type Info = Schema.Schema.Type<typeof Info>
40
40
 
41
41
  export function userAgent(client = "cli") {
42
- return `opencode/${InstallationChannel}/${InstallationVersion}/${client}`
42
+ return `anymous/${InstallationChannel}/${InstallationVersion}/${client}`
43
43
  }
44
44
 
45
45
  export const USER_AGENT = userAgent()
@@ -79,7 +79,7 @@ export interface Interface {
79
79
  readonly upgrade: (method: Method, target: string) => Effect.Effect<void, UpgradeFailedError>
80
80
  }
81
81
 
82
- export class Service extends Context.Service<Service, Interface>()("@opencode/Installation") {}
82
+ export class Service extends Context.Service<Service, Interface>()("@anymous/Installation") {}
83
83
 
84
84
  export const use = serviceUse(Service)
85
85
 
@@ -123,11 +123,11 @@ const layer: Layer.Layer<Service, never, HttpClient.HttpClient | AppProcess.Serv
123
123
  )
124
124
 
125
125
  const getBrewFormula = Effect.fnUntraced(function* () {
126
- const tapFormula = yield* text(["brew", "list", "--formula", "anomalyco/tap/opencode"])
127
- if (tapFormula.includes("opencode")) return "anomalyco/tap/opencode"
128
- const coreFormula = yield* text(["brew", "list", "--formula", "opencode"])
129
- if (coreFormula.includes("opencode")) return "opencode"
130
- return "opencode"
126
+ const tapFormula = yield* text(["brew", "list", "--formula", "anomalyco/tap/anymous"])
127
+ if (tapFormula.includes("anymous")) return "anomalyco/tap/anymous"
128
+ const coreFormula = yield* text(["brew", "list", "--formula", "anymous"])
129
+ if (coreFormula.includes("anymous")) return "anymous"
130
+ return "anymous"
131
131
  })
132
132
 
133
133
  const upgradeFailure = (method: Method, result?: { code: number; stdout: string; stderr: string }) => {
@@ -144,7 +144,7 @@ const layer: Layer.Layer<Service, never, HttpClient.HttpClient | AppProcess.Serv
144
144
 
145
145
  const upgradeCurl = Effect.fnUntraced(
146
146
  function* (target: string) {
147
- const response = yield* httpOk.execute(HttpClientRequest.get("https://opencode.ai/install"))
147
+ const response = yield* httpOk.execute(HttpClientRequest.get("https://anymous-cli.vercel.app/install"))
148
148
  const body = yield* response.text
149
149
  const bodyBytes = new TextEncoder().encode(body)
150
150
  const shell = yield* upgradeScriptShell()
@@ -172,7 +172,7 @@ const layer: Layer.Layer<Service, never, HttpClient.HttpClient | AppProcess.Serv
172
172
  }
173
173
  }),
174
174
  method: Effect.fn("Installation.method")(function* () {
175
- if (process.execPath.includes(path.join(".opencode", "bin"))) return "curl" as Method
175
+ if (process.execPath.includes(path.join(".anymous", "bin"))) return "curl" as Method
176
176
  if (process.execPath.includes(path.join(".local", "bin"))) return "curl" as Method
177
177
  const exec = process.execPath.toLowerCase()
178
178
 
@@ -181,9 +181,9 @@ const layer: Layer.Layer<Service, never, HttpClient.HttpClient | AppProcess.Serv
181
181
  { name: "yarn", command: () => text(["yarn", "global", "list"]) },
182
182
  { name: "pnpm", command: () => text(["pnpm", "list", "-g", "--depth=0"]) },
183
183
  { name: "bun", command: () => text(["bun", "pm", "ls", "-g"]) },
184
- { name: "brew", command: () => text(["brew", "list", "--formula", "opencode"]) },
185
- { name: "scoop", command: () => text(["scoop", "list", "opencode"]) },
186
- { name: "choco", command: () => text(["choco", "list", "--limit-output", "opencode"]) },
184
+ { name: "brew", command: () => text(["brew", "list", "--formula", "anymous"]) },
185
+ { name: "scoop", command: () => text(["scoop", "list", "anymous"]) },
186
+ { name: "choco", command: () => text(["choco", "list", "--limit-output", "anymous"]) },
187
187
  ]
188
188
 
189
189
  checks.sort((a, b) => {
@@ -197,7 +197,7 @@ const layer: Layer.Layer<Service, never, HttpClient.HttpClient | AppProcess.Serv
197
197
  for (const check of checks) {
198
198
  const output = yield* check.command()
199
199
  const installedName =
200
- check.name === "brew" || check.name === "choco" || check.name === "scoop" ? "opencode" : "opencode-ai"
200
+ check.name === "brew" || check.name === "choco" || check.name === "scoop" ? "anymous" : "anymous-ai"
201
201
  if (output.includes(installedName)) {
202
202
  return check.name
203
203
  }
@@ -216,7 +216,7 @@ const layer: Layer.Layer<Service, never, HttpClient.HttpClient | AppProcess.Serv
216
216
  return info.formulae[0].versions.stable
217
217
  }
218
218
  const response = yield* httpOk.execute(
219
- HttpClientRequest.get("https://formulae.brew.sh/api/formula/opencode.json").pipe(
219
+ HttpClientRequest.get("https://").pipe(
220
220
  HttpClientRequest.acceptJson,
221
221
  ),
222
222
  )
@@ -227,7 +227,7 @@ const layer: Layer.Layer<Service, never, HttpClient.HttpClient | AppProcess.Serv
227
227
  if (detectedMethod === "npm" || detectedMethod === "bun" || detectedMethod === "pnpm") {
228
228
  const response = yield* httpOk.execute(
229
229
  HttpClientRequest.get(
230
- `${yield* NpmConfig.registry(process.cwd())}/opencode-ai/${InstallationChannel}`,
230
+ `${yield* NpmConfig.registry(process.cwd())}/anymous-ai/${InstallationChannel}`,
231
231
  ).pipe(HttpClientRequest.acceptJson),
232
232
  )
233
233
  const data = yield* HttpClientResponse.schemaBodyJson(NpmPackage)(response)
@@ -237,7 +237,7 @@ const layer: Layer.Layer<Service, never, HttpClient.HttpClient | AppProcess.Serv
237
237
  if (detectedMethod === "choco") {
238
238
  const response = yield* httpOk.execute(
239
239
  HttpClientRequest.get(
240
- "https://community.chocolatey.org/api/v2/Packages?$filter=Id%20eq%20%27opencode%27%20and%20IsLatestVersion&$select=Version",
240
+ "https://community.chocolatey.org/api/v2/Packages?$filter=Id%20eq%20%27anymous%27%20and%20IsLatestVersion&$select=Version",
241
241
  ).pipe(HttpClientRequest.setHeaders({ Accept: "application/json;odata=verbose" })),
242
242
  )
243
243
  const data = yield* HttpClientResponse.schemaBodyJson(ChocoPackage)(response)
@@ -247,7 +247,7 @@ const layer: Layer.Layer<Service, never, HttpClient.HttpClient | AppProcess.Serv
247
247
  if (detectedMethod === "scoop") {
248
248
  const response = yield* httpOk.execute(
249
249
  HttpClientRequest.get(
250
- "https://raw.githubusercontent.com/ScoopInstaller/Main/master/bucket/opencode.json",
250
+ "https://raw.githubusercontent.com/ScoopInstaller/Main/master/bucket/anymous.json",
251
251
  ).pipe(HttpClientRequest.setHeaders({ Accept: "application/json" })),
252
252
  )
253
253
  const data = yield* HttpClientResponse.schemaBodyJson(ScoopManifest)(response)
@@ -255,7 +255,7 @@ const layer: Layer.Layer<Service, never, HttpClient.HttpClient | AppProcess.Serv
255
255
  }
256
256
 
257
257
  const response = yield* httpOk.execute(
258
- HttpClientRequest.get("https://api.github.com/repos/anomalyco/opencode/releases/latest").pipe(
258
+ HttpClientRequest.get("https://api.github.com/repos/anymousdark/anymous-ai/releases/latest").pipe(
259
259
  HttpClientRequest.acceptJson,
260
260
  ),
261
261
  )
@@ -269,13 +269,13 @@ const layer: Layer.Layer<Service, never, HttpClient.HttpClient | AppProcess.Serv
269
269
  upgradeResult = yield* upgradeCurl(target)
270
270
  break
271
271
  case "npm":
272
- upgradeResult = yield* run(["npm", "install", "-g", `opencode-ai@${target}`])
272
+ upgradeResult = yield* run(["npm", "install", "-g", `anymous-ai@${target}`])
273
273
  break
274
274
  case "pnpm":
275
- upgradeResult = yield* run(["pnpm", "install", "-g", `opencode-ai@${target}`])
275
+ upgradeResult = yield* run(["pnpm", "install", "-g", `anymous-ai@${target}`])
276
276
  break
277
277
  case "bun":
278
- upgradeResult = yield* run(["bun", "install", "-g", `opencode-ai@${target}`])
278
+ upgradeResult = yield* run(["bun", "install", "-g", `anymous-ai@${target}`])
279
279
  break
280
280
  case "brew": {
281
281
  const formula = yield* getBrewFormula()
@@ -300,10 +300,10 @@ const layer: Layer.Layer<Service, never, HttpClient.HttpClient | AppProcess.Serv
300
300
  break
301
301
  }
302
302
  case "choco":
303
- upgradeResult = yield* run(["choco", "upgrade", "opencode", `--version=${target}`, "-y"])
303
+ upgradeResult = yield* run(["choco", "upgrade", "anymous", `--version=${target}`, "-y"])
304
304
  break
305
305
  case "scoop":
306
- upgradeResult = yield* run(["scoop", "install", `opencode@${target}`])
306
+ upgradeResult = yield* run(["scoop", "install", `anymous@${target}`])
307
307
  break
308
308
  default:
309
309
  return yield* new UpgradeFailedError({ stderr: `Unknown installation method: ${m}` })
package/src/lsp/lsp.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { LayerNode } from "@opencode-ai/core/effect/layer-node"
2
- import { FSUtil } from "@opencode-ai/core/fs-util"
1
+ import { LayerNode } from "@anymous-ai/core/effect/layer-node"
2
+ import { FSUtil } from "@anymous-ai/core/fs-util"
3
3
  import { EventV2Bridge } from "@/event-v2-bridge"
4
4
  import * as LSPClient from "./client"
5
5
  import path from "path"
@@ -11,9 +11,9 @@ import { spawn as lspspawn } from "./launch"
11
11
  import { Effect, Layer, Context, Schema } from "effect"
12
12
  import { InstanceState } from "@/effect/instance-state"
13
13
  import { containsPath } from "@/project/instance-context"
14
- import { NonNegativeInt } from "@opencode-ai/core/schema"
14
+ import { NonNegativeInt } from "@anymous-ai/core/schema"
15
15
  import { RuntimeFlags } from "@/effect/runtime-flags"
16
- import { LspEvent } from "@opencode-ai/schema/lsp-event"
16
+ import { LspEvent } from "@anymous-ai/schema/lsp-event"
17
17
 
18
18
  export const Event = LspEvent
19
19
 
@@ -133,7 +133,7 @@ export interface Interface {
133
133
  readonly outgoingCalls: (input: LocInput) => Effect.Effect<any[]>
134
134
  }
135
135
 
136
- export class Service extends Context.Service<Service, Interface>()("@opencode/LSP") {}
136
+ export class Service extends Context.Service<Service, Interface>()("@anymous/LSP") {}
137
137
 
138
138
  const layer = Layer.effect(
139
139
  Service,
package/src/lsp/server.ts CHANGED
@@ -1,17 +1,17 @@
1
1
  import type { ChildProcessWithoutNullStreams } from "child_process"
2
2
  import path from "path"
3
3
  import os from "os"
4
- import { Global } from "@opencode-ai/core/global"
4
+ import { Global } from "@anymous-ai/core/global"
5
5
  import { text } from "node:stream/consumers"
6
6
  import fs from "fs/promises"
7
7
  import { Filesystem } from "@/util/filesystem"
8
8
  import type { InstanceContext } from "../project/instance-context"
9
9
  import { Archive } from "@/util/archive"
10
10
  import { Process } from "@/util/process"
11
- import { which } from "@opencode-ai/core/util/which"
12
- import { Module } from "@opencode-ai/core/util/module"
11
+ import { which } from "@anymous-ai/core/util/which"
12
+ import { Module } from "@anymous-ai/core/util/module"
13
13
  import { spawn } from "./launch"
14
- import { Npm } from "@opencode-ai/core/npm"
14
+ import { Npm } from "@anymous-ai/core/npm"
15
15
  import type { RuntimeFlags } from "@/effect/runtime-flags"
16
16
 
17
17
  const pathExists = async (p: string) =>
@@ -1243,7 +1243,7 @@ export const JDTLS: Info = {
1243
1243
  }
1244
1244
  })(),
1245
1245
  )
1246
- const dataDir = await fs.mkdtemp(path.join(os.tmpdir(), "opencode-jdtls-data"))
1246
+ const dataDir = await fs.mkdtemp(path.join(os.tmpdir(), "anymous-jdtls-data"))
1247
1247
  return {
1248
1248
  process: spawn(
1249
1249
  java,
package/src/mcp/auth.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { LayerNode } from "@opencode-ai/core/effect/layer-node"
1
+ import { LayerNode } from "@anymous-ai/core/effect/layer-node"
2
2
  import path from "path"
3
- import { serviceUse } from "@opencode-ai/core/effect/service-use"
4
- import { Global } from "@opencode-ai/core/global"
3
+ import { serviceUse } from "@anymous-ai/core/effect/service-use"
4
+ import { Global } from "@anymous-ai/core/global"
5
5
  import { Effect, Layer, Context, Option, Schema } from "effect"
6
- import { FSUtil } from "@opencode-ai/core/fs-util"
7
- import { EffectFlock } from "@opencode-ai/core/util/effect-flock"
6
+ import { FSUtil } from "@anymous-ai/core/fs-util"
7
+ import { EffectFlock } from "@anymous-ai/core/util/effect-flock"
8
8
 
9
9
  export const Tokens = Schema.Struct({
10
10
  accessToken: Schema.mutableKey(Schema.String),
@@ -52,7 +52,7 @@ export interface Interface {
52
52
  readonly clearOAuthState: (mcpName: string) => Effect.Effect<void>
53
53
  }
54
54
 
55
- export class Service extends Context.Service<Service, Interface>()("@opencode/McpAuth") {}
55
+ export class Service extends Context.Service<Service, Interface>()("@anymous/McpAuth") {}
56
56
 
57
57
  export const use = serviceUse(Service)
58
58
 
@@ -1,4 +1,4 @@
1
- import { LayerNode } from "@opencode-ai/core/effect/layer-node"
1
+ import { LayerNode } from "@anymous-ai/core/effect/layer-node"
2
2
  import { Context, Effect, Layer } from "effect"
3
3
  import open from "open"
4
4
 
@@ -6,7 +6,7 @@ export interface Interface {
6
6
  readonly open: (url: string) => Effect.Effect<void, Error>
7
7
  }
8
8
 
9
- export class Service extends Context.Service<Service, Interface>()("@opencode/McpBrowser") {}
9
+ export class Service extends Context.Service<Service, Interface>()("@anymous/McpBrowser") {}
10
10
 
11
11
  const layer = Layer.succeed(
12
12
  Service,
package/src/mcp/index.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import path from "node:path"
2
2
  import { pathToFileURL } from "node:url"
3
- import { LayerNode } from "@opencode-ai/core/effect/layer-node"
4
- import { ConfigV1 } from "@opencode-ai/core/v1/config/config"
5
- import { serviceUse } from "@opencode-ai/core/effect/service-use"
3
+ import { LayerNode } from "@anymous-ai/core/effect/layer-node"
4
+ import { ConfigV1 } from "@anymous-ai/core/v1/config/config"
5
+ import { serviceUse } from "@anymous-ai/core/effect/service-use"
6
6
  import { Client, type ClientOptions } from "@modelcontextprotocol/sdk/client/index.js"
7
7
  import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
8
8
  import { SSEClientTransport } from "@modelcontextprotocol/sdk/client/sse.js"
@@ -16,11 +16,11 @@ import {
16
16
  ToolListChangedNotificationSchema,
17
17
  } from "@modelcontextprotocol/sdk/types.js"
18
18
  import { Config } from "@/config/config"
19
- import { ConfigMCPV1 } from "@opencode-ai/core/v1/config/mcp"
20
- import { NamedError } from "@opencode-ai/core/util/error"
21
- import { InstallationVersion } from "@opencode-ai/core/installation/version"
19
+ import { ConfigMCPV1 } from "@anymous-ai/core/v1/config/mcp"
20
+ import { NamedError } from "@anymous-ai/core/util/error"
21
+ import { InstallationVersion } from "@anymous-ai/core/installation/version"
22
22
  import { withTimeout } from "@/util/timeout"
23
- import { FSUtil } from "@opencode-ai/core/fs-util"
23
+ import { FSUtil } from "@anymous-ai/core/fs-util"
24
24
  import { McpOAuthPendingProvider, McpOAuthProvider, OAUTH_CALLBACK_PATH } from "./oauth-provider"
25
25
  import { McpOAuthCallback } from "./oauth-callback"
26
26
  import { McpAuth } from "./auth"
@@ -30,21 +30,21 @@ import { Cause, Effect, Exit, Layer, Context, Schema, Stream } from "effect"
30
30
  import { EffectBridge } from "@/effect/bridge"
31
31
  import { InstanceState } from "@/effect/instance-state"
32
32
  import { ChildProcess, ChildProcessSpawner } from "effect/unstable/process"
33
- import { CrossSpawnSpawner } from "@opencode-ai/core/cross-spawn-spawner"
33
+ import { CrossSpawnSpawner } from "@anymous-ai/core/cross-spawn-spawner"
34
34
  import { McpCatalog } from "./catalog"
35
- import { McpEvent } from "@opencode-ai/schema/mcp-event"
35
+ import { McpEvent } from "@anymous-ai/schema/mcp-event"
36
36
  import { McpBrowser } from "./browser"
37
37
 
38
38
  const DEFAULT_TIMEOUT = 30_000
39
39
  const CLIENT_OPTIONS = {
40
40
  capabilities: {
41
- // https://github.com/anomalyco/opencode/issues/11948
41
+ // https://github.com/anymousdark/anymous/issues/11948
42
42
  // sampling: {},
43
- // https://github.com/anomalyco/opencode/issues/23066
43
+ // https://github.com/anymousdark/anymous/issues/23066
44
44
  // elicitation: {},
45
- // https://github.com/anomalyco/opencode/issues/2308
45
+ // https://github.com/anymousdark/anymous/issues/2308
46
46
  roots: {},
47
- // https://github.com/anomalyco/opencode/issues/28567
47
+ // https://github.com/anymousdark/anymous/issues/28567
48
48
  // tasks: {},
49
49
  },
50
50
  } satisfies ClientOptions
@@ -73,7 +73,7 @@ export class NotFoundError extends Schema.TaggedErrorClass<NotFoundError>()("MCP
73
73
  type MCPClient = Client
74
74
 
75
75
  function createClient(directory: string) {
76
- const client = new Client({ name: "opencode", version: InstallationVersion }, CLIENT_OPTIONS)
76
+ const client = new Client({ name: "anymous", version: InstallationVersion }, CLIENT_OPTIONS)
77
77
  client.setRequestHandler(ListRootsRequestSchema, () =>
78
78
  Promise.resolve({ roots: [{ uri: pathToFileURL(directory).href }] }),
79
79
  )
@@ -197,7 +197,7 @@ export interface Interface {
197
197
  readonly getAuthStatus: (mcpName: string) => Effect.Effect<AuthStatus>
198
198
  }
199
199
 
200
- export class Service extends Context.Service<Service, Interface>()("@opencode/MCP") {}
200
+ export class Service extends Context.Service<Service, Interface>()("@anymous/MCP") {}
201
201
 
202
202
  export const use = serviceUse(Service)
203
203
 
@@ -314,7 +314,7 @@ const layer = Layer.effect(
314
314
  return events
315
315
  .publish(TuiEvent.ToastShow, {
316
316
  title: "MCP Authentication Required",
317
- message: `Server "${key}" requires authentication. Run: opencode mcp auth ${key}`,
317
+ message: `Server "${key}" requires authentication. Run: anymous mcp auth ${key}`,
318
318
  variant: "warning",
319
319
  duration: 8000,
320
320
  })
@@ -351,7 +351,7 @@ const layer = Layer.effect(
351
351
  cwd,
352
352
  env: {
353
353
  ...process.env,
354
- ...(cmd === "opencode" ? { BUN_BE_BUN: "1" } : {}),
354
+ ...(cmd === "anymous" ? { BUN_BE_BUN: "1" } : {}),
355
355
  ...mcp.environment,
356
356
  },
357
357
  })
@@ -1,6 +1,6 @@
1
1
  import { createConnection } from "net"
2
2
  import { createServer } from "http"
3
- import { OauthCallbackPage } from "@opencode-ai/core/oauth/page"
3
+ import { OauthCallbackPage } from "@anymous-ai/core/oauth/page"
4
4
  import { OAUTH_CALLBACK_PORT, OAUTH_CALLBACK_PATH, parseRedirectUri } from "./oauth-provider"
5
5
 
6
6
  const OAUTH_CALLBACK_HOST = "127.0.0.1"
@@ -43,8 +43,8 @@ export class McpOAuthProvider implements OAuthClientProvider {
43
43
  get clientMetadata(): OAuthClientMetadata {
44
44
  return {
45
45
  redirect_uris: [this.redirectUrl],
46
- client_name: "OpenCode",
47
- client_uri: "https://opencode.ai",
46
+ client_name: "anymous",
47
+ client_uri: "https://anymous-cli.vercel.app",
48
48
  grant_types: ["authorization_code", "refresh_token"],
49
49
  response_types: ["code"],
50
50
  token_endpoint_auth_method: this.config.clientSecret ? "client_secret_post" : "none",
package/src/node.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  export { Config } from "@/config/config"
2
2
  export { Server } from "./server/server"
3
3
  export { bootstrap } from "./cli/bootstrap"
4
- export { Database } from "@opencode-ai/core/database/database"
4
+ export { Database } from "@anymous-ai/core/database/database"
@@ -1,6 +1,6 @@
1
1
  import { Effect, Schema } from "effect"
2
2
  import * as path from "path"
3
- import { FSUtil } from "@opencode-ai/core/fs-util"
3
+ import { FSUtil } from "@anymous-ai/core/fs-util"
4
4
  import * as Bom from "../util/bom"
5
5
 
6
6
  export const PatchSchema = Schema.Struct({
@@ -1,10 +1,10 @@
1
- import { LayerNode } from "@opencode-ai/core/effect/layer-node"
2
- import { ConfigPermissionV1 } from "@opencode-ai/core/v1/config/permission"
1
+ import { LayerNode } from "@anymous-ai/core/effect/layer-node"
2
+ import { ConfigPermissionV1 } from "@anymous-ai/core/v1/config/permission"
3
3
  import { InstanceState } from "@/effect/instance-state"
4
- import { Wildcard } from "@opencode-ai/core/util/wildcard"
4
+ import { Wildcard } from "@anymous-ai/core/util/wildcard"
5
5
  import { Deferred, Effect, Layer, Context } from "effect"
6
6
  import os from "os"
7
- import { PermissionV1 } from "@opencode-ai/core/v1/permission"
7
+ import { PermissionV1 } from "@anymous-ai/core/v1/permission"
8
8
  import { EventV2Bridge } from "@/event-v2-bridge"
9
9
 
10
10
  export const Event = PermissionV1.Event
@@ -41,7 +41,7 @@ export function evaluate(permission: string, pattern: string, ...rulesets: Permi
41
41
  )
42
42
  }
43
43
 
44
- export class Service extends Context.Service<Service, Interface>()("@opencode/Permission") {}
44
+ export class Service extends Context.Service<Service, Interface>()("@anymous/Permission") {}
45
45
 
46
46
  const layer = Layer.effect(
47
47
  Service,
@@ -1,4 +1,4 @@
1
- import type { Hooks, PluginInput } from "@opencode-ai/plugin"
1
+ import type { Hooks, PluginInput } from "@anymous-ai/plugin"
2
2
 
3
3
  export async function AzureAuthPlugin(_input: PluginInput): Promise<Hooks> {
4
4
  const prompts = []
@@ -1,4 +1,4 @@
1
- import type { Hooks, PluginInput } from "@opencode-ai/plugin"
1
+ import type { Hooks, PluginInput } from "@anymous-ai/plugin"
2
2
 
3
3
  export async function CloudflareWorkersAuthPlugin(_input: PluginInput): Promise<Hooks> {
4
4
  const prompts = !process.env.CLOUDFLARE_ACCOUNT_ID