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
@@ -1,5 +1,5 @@
1
1
  import { cmd } from "./cmd"
2
- import { ConfigV1 } from "@opencode-ai/core/v1/config/config"
2
+ import { ConfigV1 } from "@anymous-ai/core/v1/config/config"
3
3
  import { effectCmd } from "../effect-cmd"
4
4
  import { Cause } from "effect"
5
5
  import { Client } from "@modelcontextprotocol/sdk/client/index.js"
@@ -12,11 +12,11 @@ import { MCP } from "../../mcp"
12
12
  import { McpAuth } from "../../mcp/auth"
13
13
  import { McpOAuthProvider } from "../../mcp/oauth-provider"
14
14
  import { Config } from "@/config/config"
15
- import { ConfigMCPV1 } from "@opencode-ai/core/v1/config/mcp"
15
+ import { ConfigMCPV1 } from "@anymous-ai/core/v1/config/mcp"
16
16
  import { InstanceRef } from "@/effect/instance-ref"
17
- import { InstallationVersion } from "@opencode-ai/core/installation/version"
17
+ import { InstallationVersion } from "@anymous-ai/core/installation/version"
18
18
  import path from "path"
19
- import { Global } from "@opencode-ai/core/global"
19
+ import { Global } from "@anymous-ai/core/global"
20
20
  import { modify, applyEdits } from "jsonc-parser"
21
21
  import { Filesystem } from "@/util/filesystem"
22
22
  import { Effect } from "effect"
@@ -119,7 +119,7 @@ export const McpListCommand = effectCmd({
119
119
 
120
120
  if (servers.length === 0) {
121
121
  prompts.log.warn("No MCP servers configured")
122
- prompts.outro("Add servers with: opencode mcp add")
122
+ prompts.outro("Add servers with: anymous mcp add")
123
123
  return
124
124
  }
125
125
 
@@ -187,7 +187,7 @@ export const McpAuthCommand = effectCmd({
187
187
 
188
188
  if (servers.length === 0) {
189
189
  prompts.log.warn("No OAuth-capable MCP servers configured")
190
- prompts.log.info("Remote MCP servers support OAuth by default. Add a remote server in opencode.json:")
190
+ prompts.log.info("Remote MCP servers support OAuth by default. Add a remote server in anymous.json:")
191
191
  prompts.log.info(`
192
192
  "mcp": {
193
193
  "my-server": {
@@ -392,11 +392,11 @@ export const McpLogoutCommand = effectCmd({
392
392
  })
393
393
 
394
394
  async function resolveConfigPath(baseDir: string, global = false) {
395
- // Check for existing config files (prefer .jsonc over .json, check .opencode/ subdirectory too)
396
- const candidates = [path.join(baseDir, "opencode.json"), path.join(baseDir, "opencode.jsonc")]
395
+ // Check for existing config files (prefer .jsonc over .json, check .anymous/ subdirectory too)
396
+ const candidates = [path.join(baseDir, "anymous.json"), path.join(baseDir, "anymous.jsonc")]
397
397
 
398
398
  if (!global) {
399
- candidates.push(path.join(baseDir, ".opencode", "opencode.json"), path.join(baseDir, ".opencode", "opencode.jsonc"))
399
+ candidates.push(path.join(baseDir, ".anymous", "anymous.json"), path.join(baseDir, ".anymous", "anymous.jsonc"))
400
400
  }
401
401
 
402
402
  for (const candidate of candidates) {
@@ -405,7 +405,7 @@ async function resolveConfigPath(baseDir: string, global = false) {
405
405
  }
406
406
  }
407
407
 
408
- // Default to opencode.json if none exist
408
+ // Default to anymous.json if none exist
409
409
  return candidates[0]
410
410
  }
411
411
 
@@ -559,7 +559,7 @@ export const McpAddCommand = effectCmd({
559
559
  if (type === "local") {
560
560
  const command = await prompts.text({
561
561
  message: "Enter command to run",
562
- placeholder: "e.g., opencode x @modelcontextprotocol/server-filesystem",
562
+ placeholder: "e.g., anymous x @modelcontextprotocol/server-filesystem",
563
563
  validate: (x) => (x && x.length > 0 ? undefined : "Required"),
564
564
  })
565
565
  if (prompts.isCancel(command)) throw new UI.CancelledError()
@@ -746,7 +746,7 @@ export const McpDebugCommand = effectCmd({
746
746
  params: {
747
747
  protocolVersion: LATEST_PROTOCOL_VERSION,
748
748
  capabilities: {},
749
- clientInfo: { name: "opencode-debug", version: InstallationVersion },
749
+ clientInfo: { name: "anymous-debug", version: InstallationVersion },
750
750
  },
751
751
  id: 1,
752
752
  }),
@@ -790,7 +790,7 @@ export const McpDebugCommand = effectCmd({
790
790
 
791
791
  try {
792
792
  const client = new Client({
793
- name: "opencode-debug",
793
+ name: "anymous-debug",
794
794
  version: InstallationVersion,
795
795
  })
796
796
  await client.connect(transport)
@@ -1,9 +1,9 @@
1
1
  import { EOL } from "os"
2
2
  import { Effect } from "effect"
3
- import { ModelsDev } from "@opencode-ai/core/models-dev"
3
+ import { ModelsDev } from "@anymous-ai/core/models-dev"
4
4
  import { effectCmd, fail } from "../effect-cmd"
5
5
  import { UI } from "../ui"
6
- import { ProviderV2 } from "@opencode-ai/core/provider"
6
+ import { ProviderV2 } from "@anymous-ai/core/provider"
7
7
 
8
8
  export const ModelsCommand = effectCmd({
9
9
  command: "models [provider]",
@@ -54,10 +54,10 @@ export const ModelsCommand = effectCmd({
54
54
  }
55
55
 
56
56
  const ids = Object.keys(providers).sort((a, b) => {
57
- const aIsOpencode = a.startsWith("opencode")
58
- const bIsOpencode = b.startsWith("opencode")
59
- if (aIsOpencode && !bIsOpencode) return -1
60
- if (!aIsOpencode && bIsOpencode) return 1
57
+ const aIsanymous = a.startsWith("anymous")
58
+ const bIsanymous = b.startsWith("anymous")
59
+ if (aIsanymous && !bIsanymous) return -1
60
+ if (!aIsanymous && bIsanymous) return 1
61
61
  return a.localeCompare(b)
62
62
  })
63
63
 
@@ -2,7 +2,7 @@ import { intro, log, outro, spinner } from "@clack/prompts"
2
2
  import { Effect } from "effect"
3
3
 
4
4
  import { ConfigPaths } from "@/config/paths"
5
- import { Global } from "@opencode-ai/core/global"
5
+ import { Global } from "@anymous-ai/core/global"
6
6
  import { installPlugin, patchPluginConfig, readPluginManifest } from "../../plugin/install"
7
7
  import { resolvePluginTarget } from "../../plugin/shared"
8
8
  import { errorMessage } from "../../util/error"
@@ -28,7 +28,7 @@ export type PlugDeps = {
28
28
  readText: (file: string) => Promise<string>
29
29
  write: (file: string, text: string) => Promise<void>
30
30
  exists: (file: string) => Promise<boolean>
31
- files: (dir: string, name: "opencode" | "tui") => string[]
31
+ files: (dir: string, name: "anymous" | "tui") => string[]
32
32
  global: string
33
33
  }
34
34
 
package/src/cli/cmd/pr.ts CHANGED
@@ -76,11 +76,11 @@ export const PrCommand = effectCmd({
76
76
  const sessionMatch = prInfo.body.match(/https:\/\/opncd\.ai\/s\/([a-zA-Z0-9_-]+)/)
77
77
  if (sessionMatch) {
78
78
  const sessionUrl = sessionMatch[0]
79
- UI.println(`Found opencode session: ${sessionUrl}`)
79
+ UI.println(`Found anymous session: ${sessionUrl}`)
80
80
  UI.println(`Importing session...`)
81
81
 
82
82
  const importResult = yield* Effect.promise(() =>
83
- Process.text(["opencode", "import", sessionUrl], { nothrow: true }),
83
+ Process.text(["anymous", "import", sessionUrl], { nothrow: true }),
84
84
  )
85
85
  if (importResult.code === 0) {
86
86
  const sessionIdMatch = importResult.text.trim().match(/Imported session: ([a-zA-Z0-9_-]+)/)
@@ -95,13 +95,13 @@ export const PrCommand = effectCmd({
95
95
 
96
96
  UI.println(`Successfully checked out PR #${prNumber} as branch '${localBranchName}'`)
97
97
  UI.println()
98
- UI.println("Starting opencode...")
98
+ UI.println("Starting anymous...")
99
99
  UI.println()
100
100
 
101
- const opencodeArgs = sessionId ? ["-s", sessionId] : []
101
+ const anymousArgs = sessionId ? ["-s", sessionId] : []
102
102
  const code = yield* Effect.promise(
103
103
  () =>
104
- Process.spawn(["opencode", ...opencodeArgs], {
104
+ Process.spawn(["anymous", ...anymousArgs], {
105
105
  stdin: "inherit",
106
106
  stdout: "inherit",
107
107
  stderr: "inherit",
@@ -110,6 +110,6 @@ export const PrCommand = effectCmd({
110
110
  )
111
111
  // Match legacy throw semantics — propagate as a defect so the top-level
112
112
  // index.ts catch handles it identically (exit 1, "Unexpected error" banner).
113
- if (code !== 0) return yield* Effect.die(new Error(`opencode exited with code ${code}`))
113
+ if (code !== 0) return yield* Effect.die(new Error(`anymous exited with code ${code}`))
114
114
  }),
115
115
  })
@@ -1 +1 @@
1
- export * from "@opencode-ai/tui/prompt/display"
1
+ export * from "@anymous-ai/tui/prompt/display"
@@ -4,15 +4,15 @@ import { cmd } from "./cmd"
4
4
  import { CliError, effectCmd, fail } from "../effect-cmd"
5
5
  import { UI } from "../ui"
6
6
  import * as Prompt from "../effect/prompt"
7
- import { ModelsDev } from "@opencode-ai/core/models-dev"
7
+ import { ModelsDev } from "@anymous-ai/core/models-dev"
8
8
 
9
9
  import { map, pipe, sortBy, values } from "remeda"
10
10
  import path from "path"
11
11
  import os from "os"
12
12
  import { Config } from "@/config/config"
13
- import { Global } from "@opencode-ai/core/global"
13
+ import { Global } from "@anymous-ai/core/global"
14
14
  import { Plugin } from "../../plugin"
15
- import type { Hooks } from "@opencode-ai/plugin"
15
+ import type { Hooks } from "@anymous-ai/plugin"
16
16
  import { Process } from "@/util/process"
17
17
  import { errorMessage } from "@/util/error"
18
18
  import { text } from "node:stream/consumers"
@@ -304,7 +304,7 @@ export const ProvidersLoginCommand = effectCmd({
304
304
  builder: (yargs: Argv) =>
305
305
  yargs
306
306
  .positional("url", {
307
- describe: "opencode auth provider",
307
+ describe: "anymous auth provider",
308
308
  type: "string",
309
309
  })
310
310
  .option("provider", {
@@ -325,7 +325,7 @@ export const ProvidersLoginCommand = effectCmd({
325
325
  if (args.url) {
326
326
  const url = args.url.replace(/\/+$/, "")
327
327
  const wellknown = (yield* cliTry(`Failed to load auth provider metadata from ${url}: `, () =>
328
- fetch(`${url}/.well-known/opencode`).then((x) => x.json()),
328
+ fetch(`${url}/.well-known/anymous`).then((x) => x.json()),
329
329
  )) as {
330
330
  auth: { command: string[]; env: string }
331
331
  }
@@ -369,7 +369,7 @@ export const ProvidersLoginCommand = effectCmd({
369
369
  const hooks = yield* pluginSvc.list()
370
370
 
371
371
  const priority: Record<string, number> = {
372
- opencode: 0,
372
+ anymous: 0,
373
373
  openai: 1,
374
374
  "github-copilot": 2,
375
375
  google: 3,
@@ -396,7 +396,7 @@ export const ProvidersLoginCommand = effectCmd({
396
396
  label: x.name,
397
397
  value: x.id,
398
398
  hint: {
399
- opencode: "recommended",
399
+ anymous: "recommended",
400
400
  openai: "ChatGPT Plus/Pro or API key",
401
401
  }[x.id],
402
402
  })),
@@ -449,7 +449,7 @@ export const ProvidersLoginCommand = effectCmd({
449
449
  }
450
450
 
451
451
  yield* Prompt.log.warn(
452
- `This only stores a credential for ${provider} - you will need configure it in opencode.json, check the docs for examples.`,
452
+ `This only stores a credential for ${provider} - you will need configure it in anymous.json, check the docs for examples.`,
453
453
  )
454
454
  }
455
455
 
@@ -458,13 +458,13 @@ export const ProvidersLoginCommand = effectCmd({
458
458
  "Amazon Bedrock authentication priority:\n" +
459
459
  " 1. Bearer token (AWS_BEARER_TOKEN_BEDROCK or /connect)\n" +
460
460
  " 2. AWS credential chain (profile, access keys, IAM roles, EKS IRSA)\n\n" +
461
- "Configure via opencode.json options (profile, region, endpoint) or\n" +
461
+ "Configure via anymous.json options (profile, region, endpoint) or\n" +
462
462
  "AWS environment variables (AWS_PROFILE, AWS_REGION, AWS_ACCESS_KEY_ID, AWS_WEB_IDENTITY_TOKEN_FILE).",
463
463
  )
464
464
  }
465
465
 
466
- if (provider === "opencode") {
467
- yield* Prompt.log.info("Create an api key at https://opencode.ai/auth")
466
+ if (provider === "anymous") {
467
+ yield* Prompt.log.info("Create an api key at https://anymous-cli.vercel.app/auth")
468
468
  }
469
469
 
470
470
  if (provider === "vercel") {
@@ -473,7 +473,7 @@ export const ProvidersLoginCommand = effectCmd({
473
473
 
474
474
  if (["cloudflare", "cloudflare-ai-gateway"].includes(provider)) {
475
475
  yield* Prompt.log.info(
476
- "Cloudflare AI Gateway can be configured with CLOUDFLARE_GATEWAY_ID, CLOUDFLARE_ACCOUNT_ID, and CLOUDFLARE_API_TOKEN environment variables. Read more: https://opencode.ai/docs/providers/#cloudflare-ai-gateway",
476
+ "Cloudflare AI Gateway can be configured with CLOUDFLARE_GATEWAY_ID, CLOUDFLARE_ACCOUNT_ID, and CLOUDFLARE_API_TOKEN environment variables. Read more: https://anymous-cli.vercel.app/docs/providers/#cloudflare-ai-gateway",
477
477
  )
478
478
  }
479
479
 
@@ -15,7 +15,7 @@
15
15
  // Demo mode also handles permission and question replies locally, completing
16
16
  // or failing the synthetic tool parts as appropriate.
17
17
  import path from "path"
18
- import type { Event, ToolPart } from "@opencode-ai/sdk/v2"
18
+ import type { Event, ToolPart } from "@anymous-ai/sdk/v2"
19
19
  import { createSessionData, reduceSessionData, type SessionData } from "./session-data"
20
20
  import { writeSessionOutput } from "./stream"
21
21
  import type { FooterApi, PermissionReply, QuestionReject, QuestionReply, RunPrompt, StreamCommit } from "./types"
@@ -678,7 +678,7 @@ function emitTask(state: State): void {
678
678
  state: {
679
679
  status: "running",
680
680
  input: {
681
- filePath: "packages/opencode/src/cli/cmd/run/stream.ts",
681
+ filePath: "packages/anymous/src/cli/cmd/run/stream.ts",
682
682
  offset: 1,
683
683
  limit: 200,
684
684
  },
@@ -831,7 +831,7 @@ function emitPermission(state: State, kind: PermissionKind = "edit"): void {
831
831
  always: [target],
832
832
  done: {
833
833
  title: "read",
834
- output: ["1: {", '2: "name": "opencode",', '3: "private": true', "4: }"].join("\n"),
834
+ output: ["1: {", '2: "name": "anymous",', '3: "private": true', "4: }"].join("\n"),
835
835
  metadata: {},
836
836
  },
837
837
  })
@@ -966,7 +966,7 @@ export function RunModelSelectBody(props: {
966
966
  const current = props.current()?.providerID === provider.id && props.current()?.modelID === modelID
967
967
  const footer = current
968
968
  ? "current"
969
- : model.cost?.input === 0 && provider.id === "opencode"
969
+ : model.cost?.input === 0 && provider.id === "anymous"
970
970
  ? "Free"
971
971
  : title !== modelID
972
972
  ? modelID
@@ -984,7 +984,7 @@ export function RunModelSelectBody(props: {
984
984
  }),
985
985
  )
986
986
  .sort((a, b) => {
987
- const provider = Number(a.providerID !== "opencode") - Number(b.providerID !== "opencode")
987
+ const provider = Number(a.providerID !== "anymous") - Number(b.providerID !== "anymous")
988
988
  if (provider !== 0) {
989
989
  return provider
990
990
  }
@@ -14,7 +14,7 @@
14
14
  import type { TextareaRenderable } from "@opentui/core"
15
15
  import { useKeyboard, useTerminalDimensions } from "@opentui/solid"
16
16
  import { For, Match, Show, Switch, createEffect, createMemo, createSignal } from "solid-js"
17
- import type { PermissionRequest } from "@opencode-ai/sdk/v2"
17
+ import type { PermissionRequest } from "@anymous-ai/sdk/v2"
18
18
  import {
19
19
  createPermissionBodyState,
20
20
  permissionAlwaysLines,
@@ -8,7 +8,7 @@
8
8
  import { pathToFileURL } from "bun"
9
9
  import { StyledText, fg, type ColorInput, type KeyEvent, type TextareaRenderable } from "@opentui/core"
10
10
  import { useRenderer } from "@opentui/solid"
11
- import { normalizePromptContent } from "@opencode-ai/tui/editor"
11
+ import { normalizePromptContent } from "@anymous-ai/tui/editor"
12
12
  import fuzzysort from "fuzzysort"
13
13
  import path from "path"
14
14
  import { createEffect, createMemo, createResource, createSignal, onCleanup, onMount, type Accessor } from "solid-js"
@@ -23,7 +23,7 @@ import {
23
23
  movePromptHistory,
24
24
  pushPromptHistory,
25
25
  } from "./prompt.shared"
26
- import { OPENCODE_BASE_MODE, useBindings } from "@opencode-ai/tui/keymap"
26
+ import { ANYMOUS_BASE_MODE, useBindings } from "@anymous-ai/tui/keymap"
27
27
  import { unlock, lock, unrestricted } from "@/permission"
28
28
  import { realignEditorPromptParts, resolveEditorSlashValue } from "./prompt.editor"
29
29
  import { FOOTER_MENU_ROWS, createFooterMenuState, type RunFooterMenuItem } from "./footer.menu"
@@ -985,7 +985,7 @@ export function createPromptState(input: PromptInput): PromptState {
985
985
  }
986
986
 
987
987
  useBindings(() => ({
988
- mode: OPENCODE_BASE_MODE,
988
+ mode: ANYMOUS_BASE_MODE,
989
989
  enabled: baseBindingsEnabled(),
990
990
  commands: [
991
991
  {
@@ -1002,7 +1002,7 @@ export function createPromptState(input: PromptInput): PromptState {
1002
1002
  }))
1003
1003
 
1004
1004
  useBindings(() => ({
1005
- mode: OPENCODE_BASE_MODE,
1005
+ mode: ANYMOUS_BASE_MODE,
1006
1006
  enabled: input.prompt(),
1007
1007
  commands: [
1008
1008
  {
@@ -1019,7 +1019,7 @@ export function createPromptState(input: PromptInput): PromptState {
1019
1019
  }))
1020
1020
 
1021
1021
  useBindings(() => ({
1022
- mode: OPENCODE_BASE_MODE,
1022
+ mode: ANYMOUS_BASE_MODE,
1023
1023
  enabled: input.prompt() && !visible(),
1024
1024
  commands: [
1025
1025
  {
@@ -1035,7 +1035,7 @@ export function createPromptState(input: PromptInput): PromptState {
1035
1035
  }))
1036
1036
 
1037
1037
  useBindings(() => ({
1038
- mode: OPENCODE_BASE_MODE,
1038
+ mode: ANYMOUS_BASE_MODE,
1039
1039
  enabled: input.prompt() && !visible(),
1040
1040
  commands: [
1041
1041
  {
@@ -1062,7 +1062,7 @@ export function createPromptState(input: PromptInput): PromptState {
1062
1062
  }))
1063
1063
 
1064
1064
  useBindings(() => ({
1065
- mode: OPENCODE_BASE_MODE,
1065
+ mode: ANYMOUS_BASE_MODE,
1066
1066
  enabled: input.prompt() && !visible(),
1067
1067
  bindings: [
1068
1068
  {
@@ -1080,7 +1080,7 @@ export function createPromptState(input: PromptInput): PromptState {
1080
1080
  }))
1081
1081
 
1082
1082
  useBindings(() => ({
1083
- mode: OPENCODE_BASE_MODE,
1083
+ mode: ANYMOUS_BASE_MODE,
1084
1084
  enabled: input.prompt() && shell() && !visible(),
1085
1085
  bindings: [
1086
1086
  {
@@ -1103,7 +1103,7 @@ export function createPromptState(input: PromptInput): PromptState {
1103
1103
  }))
1104
1104
 
1105
1105
  useBindings(() => ({
1106
- mode: OPENCODE_BASE_MODE,
1106
+ mode: ANYMOUS_BASE_MODE,
1107
1107
  enabled: input.prompt() && visible(),
1108
1108
  commands: [
1109
1109
  {
@@ -16,7 +16,7 @@
16
16
  import type { TextareaRenderable } from "@opentui/core"
17
17
  import { useKeyboard, useTerminalDimensions } from "@opentui/solid"
18
18
  import { For, Show, createEffect, createMemo, createSignal } from "solid-js"
19
- import type { QuestionRequest } from "@opencode-ai/sdk/v2"
19
+ import type { QuestionRequest } from "@anymous-ai/sdk/v2"
20
20
  import {
21
21
  createQuestionBodyState,
22
22
  questionConfirm,
@@ -1,14 +1,14 @@
1
1
  /** @jsxImportSource @opentui/solid */
2
2
  import type { ScrollBoxRenderable } from "@opentui/core"
3
3
  import { useKeyboard } from "@opentui/solid"
4
- import { registerOpencodeSpinner } from "@opencode-ai/tui/component/register-spinner"
4
+ import { registeranymousSpinner } from "@anymous-ai/tui/component/register-spinner"
5
5
  import { Show, createMemo, indexArray } from "solid-js"
6
- import { SPINNER_FRAMES } from "@opencode-ai/tui/component/spinner"
6
+ import { SPINNER_FRAMES } from "@anymous-ai/tui/component/spinner"
7
7
  import { RunEntryContent, separatorRows } from "./scrollback.writer"
8
8
  import type { FooterSubagentDetail, FooterSubagentTab, RunDiffStyle } from "./types"
9
9
  import type { RunFooterTheme, RunTheme } from "./theme"
10
10
 
11
- registerOpencodeSpinner()
11
+ registeranymousSpinner()
12
12
 
13
13
  export const SUBAGENT_INSPECTOR_ROWS = 14
14
14
 
@@ -29,7 +29,7 @@ import type { Keymap } from "@opentui/keymap"
29
29
  import { render } from "@opentui/solid"
30
30
  import { createComponent, createSignal, type Accessor, type Setter } from "solid-js"
31
31
  import { createStore, reconcile } from "solid-js/store"
32
- import { OpencodeKeymapProvider } from "@opencode-ai/tui/keymap"
32
+ import { anymousKeymapProvider } from "@anymous-ai/tui/keymap"
33
33
  import { RUN_COMMAND_PANEL_ROWS, RUN_SUBAGENT_PANEL_ROWS } from "./footer.command"
34
34
  import { SUBAGENT_INSPECTOR_ROWS } from "./footer.subagent"
35
35
  import { PROMPT_MAX_ROWS, TEXTAREA_MIN_ROWS } from "./footer.prompt"
@@ -300,7 +300,7 @@ export class RunFooter implements FooterApi {
300
300
  const footer = this
301
301
  void render(
302
302
  () =>
303
- createComponent(OpencodeKeymapProvider, {
303
+ createComponent(anymousKeymapProvider, {
304
304
  keymap: options.keymap,
305
305
  get children() {
306
306
  return createComponent(RunFooterView, {
@@ -10,8 +10,8 @@
10
10
  /** @jsxImportSource @opentui/solid */
11
11
  import { useTerminalDimensions } from "@opentui/solid"
12
12
  import { For, Match, Show, Switch, createEffect, createMemo, createSignal, onCleanup } from "solid-js"
13
- import { registerOpencodeSpinner } from "@opencode-ai/tui/component/register-spinner"
14
- import { createColors, createFrames } from "@opencode-ai/tui/ui/spinner"
13
+ import { registeranymousSpinner } from "@anymous-ai/tui/component/register-spinner"
14
+ import { createColors, createFrames } from "@anymous-ai/tui/ui/spinner"
15
15
  import {
16
16
  RUN_SUBAGENT_PANEL_ROWS,
17
17
  RunCommandMenuBody,
@@ -28,13 +28,13 @@ import { RunPermissionBody } from "./footer.permission"
28
28
  import { RunQuestionBody } from "./footer.question"
29
29
  import { footerWidthPolicy } from "./footer.width"
30
30
  import {
31
- OPENCODE_BASE_MODE,
31
+ ANYMOUS_BASE_MODE,
32
32
  formatKeyBindings,
33
33
  formatKeySequence,
34
34
  useBindings,
35
35
  useKeymapSelector,
36
36
  type OpenTuiKeymap,
37
- } from "@opencode-ai/tui/keymap"
37
+ } from "@anymous-ai/tui/keymap"
38
38
  import type {
39
39
  FooterPromptRoute,
40
40
  FooterQueuedPrompt,
@@ -56,7 +56,7 @@ import type {
56
56
  import type { RunTheme } from "./theme"
57
57
  import { modelInfo } from "./variant.shared"
58
58
 
59
- registerOpencodeSpinner()
59
+ registeranymousSpinner()
60
60
 
61
61
  const EMPTY_BORDER = {
62
62
  topLeft: "",
@@ -498,7 +498,7 @@ export function RunFooterView(props: RunFooterViewProps) {
498
498
  })
499
499
 
500
500
  useBindings(() => ({
501
- mode: OPENCODE_BASE_MODE,
501
+ mode: ANYMOUS_BASE_MODE,
502
502
  enabled: active().type === "prompt" && route().type === "composer" && !composer.visible(),
503
503
  commands: [
504
504
  {
@@ -521,7 +521,7 @@ export function RunFooterView(props: RunFooterViewProps) {
521
521
  }))
522
522
 
523
523
  useBindings(() => ({
524
- mode: OPENCODE_BASE_MODE,
524
+ mode: ANYMOUS_BASE_MODE,
525
525
  enabled: active().type === "prompt" && route().type === "composer" && foregroundSubagents(),
526
526
  priority: 1,
527
527
  commands: [
@@ -536,7 +536,7 @@ export function RunFooterView(props: RunFooterViewProps) {
536
536
  }))
537
537
 
538
538
  useBindings(() => ({
539
- mode: OPENCODE_BASE_MODE,
539
+ mode: ANYMOUS_BASE_MODE,
540
540
  enabled: active().type === "prompt" && route().type === "composer" && tabs().length > 0,
541
541
  commands: [
542
542
  {
@@ -550,7 +550,7 @@ export function RunFooterView(props: RunFooterViewProps) {
550
550
  }))
551
551
 
552
552
  useBindings(() => ({
553
- mode: OPENCODE_BASE_MODE,
553
+ mode: ANYMOUS_BASE_MODE,
554
554
  enabled: active().type === "prompt" && route().type === "composer" && queuedPrompts().length > 0,
555
555
  commands: [
556
556
  {
@@ -13,7 +13,7 @@
13
13
  //
14
14
  // permissionInfo() extracts display info (icon, title, lines, diff) from
15
15
  // the request, delegating to tool.ts for tool-specific formatting.
16
- import type { PermissionRequest } from "@opencode-ai/sdk/v2"
16
+ import type { PermissionRequest } from "@anymous-ai/sdk/v2"
17
17
  import type { PermissionReply } from "./types"
18
18
  import { toolPath, toolPermissionInfo } from "./tool"
19
19
 
@@ -13,7 +13,7 @@
13
13
  //
14
14
  // Custom answers: if a question has custom=true, an extra "Type your own
15
15
  // answer" option appears. Selecting it enters editing mode with a text field.
16
- import type { QuestionInfo, QuestionRequest } from "@opencode-ai/sdk/v2"
16
+ import type { QuestionInfo, QuestionRequest } from "@anymous-ai/sdk/v2"
17
17
  import type { QuestionReject, QuestionReply } from "./types"
18
18
 
19
19
  export type QuestionBodyState = {
@@ -6,7 +6,7 @@
6
6
  // history ring. All are async because they read config or hit the SDK, but
7
7
  // none block each other.
8
8
  import { Context, Effect, Layer } from "effect"
9
- import { resolve } from "@opencode-ai/tui/config"
9
+ import { resolve } from "@anymous-ai/tui/config"
10
10
  import { TuiConfig } from "@/config/tui"
11
11
  import { makeRuntime } from "@/effect/run-service"
12
12
  import { reusePendingTask } from "./runtime.shared"
@@ -44,7 +44,7 @@ type BootService = {
44
44
 
45
45
  const configTask: { current?: Promise<Config> } = {}
46
46
 
47
- class Service extends Context.Service<Service, BootService>()("@opencode/RunBoot") {}
47
+ class Service extends Context.Service<Service, BootService>()("@anymous/RunBoot") {}
48
48
 
49
49
  function loadConfig() {
50
50
  return reusePendingTask(configTask, () => TuiConfig.get())
@@ -11,9 +11,9 @@
11
11
  import path from "path"
12
12
  import { CliRenderEvents, createCliRenderer, type CliRenderer, type ScrollbackWriter } from "@opentui/core"
13
13
  import { createDefaultOpenTuiKeymap } from "@opentui/keymap/opentui"
14
- import { Global } from "@opencode-ai/core/global"
15
- import { openEditor } from "@opencode-ai/tui/editor"
16
- import { registerOpencodeKeymap } from "@opencode-ai/tui/keymap"
14
+ import { Global } from "@anymous-ai/core/global"
15
+ import { openEditor } from "@anymous-ai/tui/editor"
16
+ import { registeranymousKeymap } from "@anymous-ai/tui/keymap"
17
17
  import { Session as SessionApi } from "@/session/session"
18
18
  import * as Locale from "@/util/locale"
19
19
  import { resolveInteractiveStdin } from "./runtime.stdin"
@@ -196,7 +196,7 @@ export async function createRuntimeLifecycle(input: LifecycleInput): Promise<Lif
196
196
  const theme = await resolveRunTheme(renderer)
197
197
  renderer.setBackgroundColor(theme.background)
198
198
  const keymap = createDefaultOpenTuiKeymap(renderer)
199
- unregisterKeymap = registerOpencodeKeymap(keymap, renderer, input.tuiConfig)
199
+ unregisterKeymap = registeranymousKeymap(keymap, renderer, input.tuiConfig)
200
200
  const state: SplashState = {
201
201
  entry: false,
202
202
  exit: false,
@@ -1,4 +1,4 @@
1
- // Top-level orchestrator for `opencode --mini`.
1
+ // Top-level orchestrator for `anymous --mini`.
2
2
  //
3
3
  // Wires the boot sequence, lifecycle (renderer + footer), stream transport,
4
4
  // and prompt queue together into a single session loop. Two entry points:
@@ -12,8 +12,8 @@
12
12
  // 3. starts the stream transport (SDK event subscription), lazily for fresh
13
13
  // local sessions,
14
14
  // 4. runs the prompt queue until the footer closes.
15
- import { createOpencodeClient } from "@opencode-ai/sdk/v2"
16
- import { Flag } from "@opencode-ai/core/flag/flag"
15
+ import { createanymousClient } from "@anymous-ai/sdk/v2"
16
+ import { Flag } from "@anymous-ai/core/flag/flag"
17
17
  import { MessageID } from "@/session/schema"
18
18
  import { createRunDemo } from "./demo"
19
19
  import { resolveModelInfo, resolveRunTuiConfig, resolveSessionInfo } from "./runtime.boot"
@@ -404,7 +404,7 @@ async function runInteractiveRuntime(input: RunRuntimeInput, deps: RunRuntimeDep
404
404
  .then(loadCatalog)
405
405
  .catch(() => {})
406
406
 
407
- if (Flag.OPENCODE_SHOW_TTFD) {
407
+ if (Flag.ANYMOUS_SHOW_TTFD) {
408
408
  footer.append({
409
409
  kind: "system",
410
410
  text: `startup ${Math.max(0, Math.round(performance.now() - start))}ms`,
@@ -733,8 +733,8 @@ async function runInteractiveRuntime(input: RunRuntimeInput, deps: RunRuntimeDep
733
733
  // Local in-process mode. Creates an SDK client backed by a direct fetch to
734
734
  // the in-process server, so no external HTTP server is needed.
735
735
  export async function runInteractiveLocalMode(input: RunLocalInput): Promise<void> {
736
- const sdk = createOpencodeClient({
737
- baseUrl: "http://opencode.internal",
736
+ const sdk = createanymousClient({
737
+ baseUrl: "http://anymous.internal",
738
738
  fetch: input.fetch,
739
739
  directory: input.directory,
740
740
  })
@@ -24,7 +24,7 @@
24
24
  // `data.questions`. The footer shows whichever is first. When a reply
25
25
  // event arrives, the queue entry is removed and the footer falls back
26
26
  // to the next pending request or to the prompt view.
27
- import type { Event, Part, PermissionRequest, QuestionRequest, ToolPart } from "@opencode-ai/sdk/v2"
27
+ import type { Event, Part, PermissionRequest, QuestionRequest, ToolPart } from "@anymous-ai/sdk/v2"
28
28
  import * as Locale from "@/util/locale"
29
29
  import { toolView } from "./tool"
30
30
  import type { FooterOutput, FooterPatch, FooterView, StreamCommit } from "./types"
@@ -1,4 +1,4 @@
1
- import type { Event, PermissionRequest, QuestionRequest } from "@opencode-ai/sdk/v2"
1
+ import type { Event, PermissionRequest, QuestionRequest } from "@anymous-ai/sdk/v2"
2
2
  import { bootstrapSessionData, createSessionData, reduceSessionData, type SessionData } from "./session-data"
3
3
  import { messagePrompt, type SessionMessages } from "./session.shared"
4
4
  import { messageTurnSummaryCommit } from "./turn-summary"