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,35 +1,35 @@
1
- You are Anymous Reverser Static — a world-class static analysis engineer.
2
-
3
- ## Expertise
4
- - Disassembly/decompilation: IDA Pro, Ghidra, Binary Ninja, Radare2
5
- - CFG/DFG reconstruction, call graph analysis, cross-referencing
6
- - Algorithm pattern matching (crypto, compression, serialization)
7
- - Signature generation: FLIRT, FLIRT patterns, YARA rules
8
- - x86/x64/ARM/AArch64, C/C++, C#/.NET, Python bytecode, Rust
9
-
10
- ## Analysis Protocol
11
- 1. Identify file format and entry point
12
- 2. Reconstruct import/export tables and resolve dynamic calls
13
- 3. Map control flow graph and identify main dispatch
14
- 4. Extract strings, resources, embedded data with offsets
15
- 5. Identify cryptographic constants and known algorithm signatures
16
- 6. Reconstruct key data structures (structs, vtables, RTTI)
17
- 7. Generate IDAPython/GhidraScript for automation
18
- 8. Document findings with file offsets, function names, cross-refs
19
-
20
- ## Output Format
21
- ```
22
- [SUMMARY] High-level purpose and architecture
23
- [FUNCTIONS] Key functions with addresses, signatures, descriptions
24
- [DATA] Important data structures, strings, constants
25
- [CRYPTO] Identified algorithms, keys, constants
26
- [SIGNATURES] Generated YARA/FLIRT rules
27
- [REFERENCES] Cross-references to other reverser agents if needed
28
- ```
29
-
30
- ## Cross-Agent Handoff
31
- When analysis reveals runtime behavior: hand off to reverser-dynamic
32
- When packer/protection detected: hand off to reverser-binary
33
- When code needs reconstruction: hand off to reverser-source
34
-
35
- Complete the analysis with structured documentation including all file offsets, function names, and cross-references.
1
+ You are Anymous Reverser Static — a world-class static analysis engineer.
2
+
3
+ ## Expertise
4
+ - Disassembly/decompilation: IDA Pro, Ghidra, Binary Ninja, Radare2
5
+ - CFG/DFG reconstruction, call graph analysis, cross-referencing
6
+ - Algorithm pattern matching (crypto, compression, serialization)
7
+ - Signature generation: FLIRT, FLIRT patterns, YARA rules
8
+ - x86/x64/ARM/AArch64, C/C++, C#/.NET, Python bytecode, Rust
9
+
10
+ ## Analysis Protocol
11
+ 1. Identify file format and entry point
12
+ 2. Reconstruct import/export tables and resolve dynamic calls
13
+ 3. Map control flow graph and identify main dispatch
14
+ 4. Extract strings, resources, embedded data with offsets
15
+ 5. Identify cryptographic constants and known algorithm signatures
16
+ 6. Reconstruct key data structures (structs, vtables, RTTI)
17
+ 7. Generate IDAPython/GhidraScript for automation
18
+ 8. Document findings with file offsets, function names, cross-refs
19
+
20
+ ## Output Format
21
+ ```
22
+ [SUMMARY] High-level purpose and architecture
23
+ [FUNCTIONS] Key functions with addresses, signatures, descriptions
24
+ [DATA] Important data structures, strings, constants
25
+ [CRYPTO] Identified algorithms, keys, constants
26
+ [SIGNATURES] Generated YARA/FLIRT rules
27
+ [REFERENCES] Cross-references to other reverser agents if needed
28
+ ```
29
+
30
+ ## Cross-Agent Handoff
31
+ When analysis reveals runtime behavior: hand off to reverser-dynamic
32
+ When packer/protection detected: hand off to reverser-binary
33
+ When code needs reconstruction: hand off to reverser-source
34
+
35
+ Complete the analysis with structured documentation including all file offsets, function names, and cross-references.
@@ -1,4 +1,4 @@
1
- import { PermissionV1 } from "@opencode-ai/core/v1/permission"
1
+ import { PermissionV1 } from "@anymous-ai/core/v1/permission"
2
2
  import type { Agent } from "./agent"
3
3
 
4
4
  /**
package/src/auth/index.ts CHANGED
@@ -1,11 +1,11 @@
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
3
  import { Effect, Layer, Record, Result, Schema, Context } from "effect"
4
- import { NonNegativeInt } from "@opencode-ai/core/schema"
5
- import { Global } from "@opencode-ai/core/global"
6
- import { FSUtil } from "@opencode-ai/core/fs-util"
4
+ import { NonNegativeInt } from "@anymous-ai/core/schema"
5
+ import { Global } from "@anymous-ai/core/global"
6
+ import { FSUtil } from "@anymous-ai/core/fs-util"
7
7
 
8
- export const OAUTH_DUMMY_KEY = "opencode-oauth-dummy-key"
8
+ export const OAUTH_DUMMY_KEY = "anymous-oauth-dummy-key"
9
9
 
10
10
  const file = path.join(Global.Path.data, "auth.json")
11
11
 
@@ -47,7 +47,7 @@ export interface Interface {
47
47
  readonly remove: (key: string) => Effect.Effect<void, AuthError>
48
48
  }
49
49
 
50
- export class Service extends Context.Service<Service, Interface>()("@opencode/Auth") {}
50
+ export class Service extends Context.Service<Service, Interface>()("@anymous/Auth") {}
51
51
 
52
52
  const layer = Layer.effect(
53
53
  Service,
@@ -56,9 +56,9 @@ const layer = Layer.effect(
56
56
  const decode = Schema.decodeUnknownOption(Info)
57
57
 
58
58
  const all = Effect.fn("Auth.all")(function* () {
59
- if (process.env.OPENCODE_AUTH_CONTENT) {
59
+ if (process.env.ANYMOUS_AUTH_CONTENT) {
60
60
  try {
61
- return JSON.parse(process.env.OPENCODE_AUTH_CONTENT)
61
+ return JSON.parse(process.env.ANYMOUS_AUTH_CONTENT)
62
62
  } catch (err) {}
63
63
  }
64
64
 
@@ -1,5 +1,5 @@
1
- import { LayerNode } from "@opencode-ai/core/effect/layer-node"
2
- import { BackgroundJob as CoreBackgroundJob } from "@opencode-ai/core/background-job"
1
+ import { LayerNode } from "@anymous-ai/core/effect/layer-node"
2
+ import { BackgroundJob as CoreBackgroundJob } from "@anymous-ai/core/background-job"
3
3
  import { InstanceState } from "@/effect/instance-state"
4
4
  import { Effect, Layer } from "effect"
5
5
 
@@ -12,7 +12,7 @@ export {
12
12
  type Status,
13
13
  type WaitInput,
14
14
  type WaitResult,
15
- } from "@opencode-ai/core/background-job"
15
+ } from "@anymous-ai/core/background-job"
16
16
 
17
17
  /** Keeps the legacy service instance-scoped while sharing the core registry engine. */
18
18
  const layer = Layer.effect(
@@ -15,7 +15,7 @@ const dim = (value: string) => UI.Style.TEXT_DIM + value + UI.Style.TEXT_NORMAL
15
15
 
16
16
  const activeSuffix = (isActive: boolean) => (isActive ? dim(" (active)") : "")
17
17
 
18
- export const defaultConsoleUrl = "https://console.opencode.ai"
18
+ export const defaultConsoleUrl = "https://anymous-cli.vercel.app"
19
19
 
20
20
  export const formatAccountLabel = (account: { email: string; url: string }, isActive: boolean) =>
21
21
  `${account.email} ${dim(account.url)}${activeSuffix(isActive)}`
@@ -2,7 +2,7 @@ import { Effect } from "effect"
2
2
  import { effectCmd } from "../effect-cmd"
3
3
  import { AgentSideConnection, ndJsonStream } from "@agentclientprotocol/sdk"
4
4
  import { ServerAuth } from "@/server/auth"
5
- import { createOpencodeClient } from "@opencode-ai/sdk/v2"
5
+ import { createanymousClient } from "@anymous-ai/sdk/v2"
6
6
  import { withNetworkOptions, resolveNetworkOptions } from "../network"
7
7
  import { ACPProfile } from "@/acp/profile"
8
8
 
@@ -20,11 +20,11 @@ export const AcpCommand = effectCmd({
20
20
  const { Server } = yield* Effect.promise(() => import("@/server/server"))
21
21
  const { ACP } = yield* Effect.promise(() => import("@/acp/agent"))
22
22
  ACPProfile.mark("cli.acp.handler")
23
- process.env.OPENCODE_CLIENT = "acp"
23
+ process.env.ANYMOUS_CLIENT = "acp"
24
24
  const opts = yield* resolveNetworkOptions(args)
25
25
  const server = yield* Effect.promise(() => ACPProfile.measure("cli.acp.server.listen", () => Server.listen(opts)))
26
26
 
27
- const sdk = createOpencodeClient({
27
+ const sdk = createanymousClient({
28
28
  baseUrl: `http://${server.hostname}:${server.port}`,
29
29
  headers: ServerAuth.headers(),
30
30
  })
@@ -1,7 +1,7 @@
1
1
  import { cmd } from "./cmd"
2
2
  import * as prompts from "@clack/prompts"
3
3
  import { UI } from "../ui"
4
- import { Global } from "@opencode-ai/core/global"
4
+ import { Global } from "@anymous-ai/core/global"
5
5
  import path from "path"
6
6
  import fs from "fs/promises"
7
7
  import { Filesystem } from "@/util/filesystem"
@@ -108,7 +108,7 @@ const AgentCreateCommand = effectCmd({
108
108
  if (prompts.isCancel(scopeResult)) throw new UI.CancelledError()
109
109
  scope = scopeResult
110
110
  }
111
- targetPath = path.join(scope === "global" ? Global.Path.config : path.join(ctx.worktree, ".opencode"), "agents")
111
+ targetPath = path.join(scope === "global" ? Global.Path.config : path.join(ctx.worktree, ".anymous"), "agents")
112
112
  }
113
113
 
114
114
  // Get description
@@ -1,6 +1,6 @@
1
1
  import { cmd } from "./cmd"
2
2
  import { UI } from "@/cli/ui"
3
- import { errorMessage } from "@opencode-ai/tui/util/error"
3
+ import { errorMessage } from "@anymous-ai/tui/util/error"
4
4
  import { validateSession } from "../tui/validate-session"
5
5
  import { ServerAuth } from "@/server/auth"
6
6
 
@@ -35,12 +35,12 @@ export const AttachCommand = cmd({
35
35
  .option("password", {
36
36
  alias: ["p"],
37
37
  type: "string",
38
- describe: "basic auth password (defaults to OPENCODE_SERVER_PASSWORD)",
38
+ describe: "basic auth password (defaults to ANYMOUS_SERVER_PASSWORD)",
39
39
  })
40
40
  .option("username", {
41
41
  alias: ["u"],
42
42
  type: "string",
43
- describe: "basic auth username (defaults to OPENCODE_SERVER_USERNAME or 'opencode')",
43
+ describe: "basic auth username (defaults to ANYMOUS_SERVER_USERNAME or 'anymous')",
44
44
  })
45
45
  .option("mini", {
46
46
  type: "boolean",
package/src/cli/cmd/db.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { Argv } from "yargs"
2
2
  import { spawn } from "child_process"
3
- import { Database } from "@opencode-ai/core/database/database"
3
+ import { Database } from "@anymous-ai/core/database/database"
4
4
  import { Effect } from "effect"
5
5
  import { sql } from "drizzle-orm"
6
6
  import { effectCmd } from "../effect-cmd"
@@ -1,6 +1,6 @@
1
- import { PermissionV1 } from "@opencode-ai/core/v1/permission"
1
+ import { PermissionV1 } from "@anymous-ai/core/v1/permission"
2
2
  import { EOL } from "os"
3
- import { SessionV1 } from "@opencode-ai/core/v1/session"
3
+ import { SessionV1 } from "@anymous-ai/core/v1/session"
4
4
  import { basename } from "path"
5
5
  import { Cause, Effect } from "effect"
6
6
  import { Agent } from "../../../agent/agent"
@@ -1,9 +1,9 @@
1
1
  import { EOL } from "os"
2
2
  import { Effect } from "effect"
3
- import { FileSystem } from "@opencode-ai/core/filesystem"
4
- import { LocationServiceMap, locationServiceMapLayer } from "@opencode-ai/core/location-services"
5
- import { Location } from "@opencode-ai/core/location"
6
- import { AbsolutePath, RelativePath } from "@opencode-ai/core/schema"
3
+ import { FileSystem } from "@anymous-ai/core/filesystem"
4
+ import { LocationServiceMap, locationServiceMapLayer } from "@anymous-ai/core/location-services"
5
+ import { Location } from "@anymous-ai/core/location"
6
+ import { AbsolutePath, RelativePath } from "@anymous-ai/core/schema"
7
7
  import { effectCmd } from "../../effect-cmd"
8
8
  import { cmd } from "../cmd"
9
9
 
@@ -1,6 +1,6 @@
1
- import { Global } from "@opencode-ai/core/global"
2
- import { InstallationVersion } from "@opencode-ai/core/installation/version"
3
- import { Flag } from "@opencode-ai/core/flag/flag"
1
+ import { Global } from "@anymous-ai/core/global"
2
+ import { InstallationVersion } from "@anymous-ai/core/installation/version"
3
+ import { Flag } from "@anymous-ai/core/flag/flag"
4
4
  import os from "os"
5
5
  import { Duration, Effect } from "effect"
6
6
  import { effectCmd } from "../../effect-cmd"
@@ -58,11 +58,11 @@ const InfoCommand = effectCmd({
58
58
  : undefined
59
59
  const terminal = [termProgram, process.env.TERM].filter((item): item is string => Boolean(item)).join(" / ")
60
60
 
61
- console.log(`opencode version: ${InstallationVersion}`)
61
+ console.log(`anymous version: ${InstallationVersion}`)
62
62
  console.log(`os: ${os.type()} ${os.release()} ${os.arch()}`)
63
63
  console.log(`terminal: ${terminal || "unknown"}`)
64
64
  console.log("plugins:")
65
- if (Flag.OPENCODE_PURE) {
65
+ if (Flag.ANYMOUS_PURE) {
66
66
  console.log("external plugins disabled (--pure)")
67
67
  return
68
68
  }
@@ -1,6 +1,6 @@
1
1
  import { EOL } from "os"
2
2
  import { Effect } from "effect"
3
- import { Ripgrep } from "@opencode-ai/core/ripgrep"
3
+ import { Ripgrep } from "@anymous-ai/core/ripgrep"
4
4
  import { effectCmd } from "../../effect-cmd"
5
5
  import { cmd } from "../cmd"
6
6
  import { InstanceRef } from "@/effect/instance-ref"
@@ -7,8 +7,8 @@ export const ScrapCommand = cmd({
7
7
  builder: (yargs) => yargs,
8
8
  async handler() {
9
9
  const { Project } = await import("@/project/project")
10
- const { AppNodeBuilder } = await import("@opencode-ai/core/effect/app-node-builder")
11
- const { makeRuntime } = await import("@opencode-ai/core/effect/runtime")
10
+ const { AppNodeBuilder } = await import("@anymous-ai/core/effect/app-node-builder")
11
+ const { makeRuntime } = await import("@anymous-ai/core/effect/runtime")
12
12
  const runtime = makeRuntime(Project.Service, AppNodeBuilder.build(Project.node))
13
13
  const list = await runtime.runPromise((project) => project.list())
14
14
  process.stdout.write(JSON.stringify(list, null, 2) + EOL)
@@ -1,9 +1,9 @@
1
1
  import { EOL } from "os"
2
2
  import { Effect } from "effect"
3
- import { Catalog } from "@opencode-ai/core/catalog"
4
- import { LocationServiceMap, locationServiceMapLayer } from "@opencode-ai/core/location-services"
5
- import { Location } from "@opencode-ai/core/location"
6
- import { AbsolutePath } from "@opencode-ai/core/schema"
3
+ import { Catalog } from "@anymous-ai/core/catalog"
4
+ import { LocationServiceMap, locationServiceMapLayer } from "@anymous-ai/core/location-services"
5
+ import { Location } from "@anymous-ai/core/location"
6
+ import { AbsolutePath } from "@anymous-ai/core/schema"
7
7
  import { effectCmd } from "../../effect-cmd"
8
8
 
9
9
  export const V2Command = effectCmd({
@@ -1,5 +1,5 @@
1
1
  import { Session } from "@/session/session"
2
- import { SessionV1 } from "@opencode-ai/core/v1/session"
2
+ import { SessionV1 } from "@anymous-ai/core/v1/session"
3
3
  import { MessageV2 } from "../../session/message-v2"
4
4
  import { SessionID } from "../../session/schema"
5
5
  import { effectCmd, fail } from "../effect-cmd"
@@ -18,9 +18,9 @@ export const GenerateCommand = {
18
18
  {
19
19
  lang: "js",
20
20
  source: [
21
- `import { createOpencodeClient } from "@opencode-ai/sdk`,
21
+ `import { createanymousClient } from "@anymous-ai/sdk`,
22
22
  ``,
23
- `const client = createOpencodeClient()`,
23
+ `const client = createanymousClient()`,
24
24
  `await client.${operation.operationId}({`,
25
25
  ` ...`,
26
26
  `})`,
@@ -17,7 +17,7 @@ import type {
17
17
  PullRequestEvent,
18
18
  } from "@octokit/webhooks-types"
19
19
  import { UI } from "../ui"
20
- import { ModelsDev } from "@opencode-ai/core/models-dev"
20
+ import { ModelsDev } from "@anymous-ai/core/models-dev"
21
21
  import { InstanceRef } from "@/effect/instance-ref"
22
22
  import { SessionShare } from "@/share/session"
23
23
  import { Session } from "@/session/session"
@@ -26,7 +26,7 @@ import { MessageID, PartID } from "../../session/schema"
26
26
  import { Provider } from "@/provider/provider"
27
27
  import { MessageV2 } from "../../session/message-v2"
28
28
  import { EventV2Bridge } from "@/event-v2-bridge"
29
- import { EventV2 } from "@opencode-ai/core/event"
29
+ import { EventV2 } from "@anymous-ai/core/event"
30
30
  import { SessionPrompt } from "@/session/prompt"
31
31
  import { Git } from "@/git"
32
32
  import { setTimeout as sleep } from "node:timers/promises"
@@ -138,9 +138,9 @@ type IssueQueryResponse = {
138
138
  }
139
139
  }
140
140
 
141
- const AGENT_USERNAME = "opencode-agent[bot]"
141
+ const AGENT_USERNAME = "anymous-agent[bot]"
142
142
  const AGENT_REACTION = "eyes"
143
- const WORKFLOW_FILE = ".github/workflows/opencode.yml"
143
+ const WORKFLOW_FILE = ".github/workflows/anymous.yml"
144
144
 
145
145
  // Event categories for routing
146
146
  // USER_EVENTS: triggered by user actions, have actor/issueId, support reactions/comments
@@ -200,7 +200,7 @@ export const githubInstall = Effect.fn("Cli.github.install")(function* () {
200
200
  "",
201
201
  " 3. Go to a GitHub issue and comment `/oc summarize` to see the agent in action",
202
202
  "",
203
- " Learn more about the GitHub agent - https://opencode.ai/docs/github/#usage-examples",
203
+ " Learn more about the GitHub agent - https://anymous-cli.vercel.app/docs/github/#usage-examples",
204
204
  ].join("\n"),
205
205
  )
206
206
  }
@@ -226,7 +226,7 @@ export const githubInstall = Effect.fn("Cli.github.install")(function* () {
226
226
 
227
227
  async function promptProvider() {
228
228
  const priority: Record<string, number> = {
229
- opencode: 0,
229
+ anymous: 0,
230
230
  anthropic: 1,
231
231
  openai: 2,
232
232
  google: 3,
@@ -284,7 +284,7 @@ export const githubInstall = Effect.fn("Cli.github.install")(function* () {
284
284
  if (installation) return s.stop("GitHub app already installed")
285
285
 
286
286
  // Open browser
287
- const url = "https://github.com/apps/opencode-agent"
287
+ const url = "https://github.com/apps/anymous-agent"
288
288
  const command =
289
289
  process.platform === "darwin"
290
290
  ? `open "${url}"`
@@ -320,7 +320,7 @@ export const githubInstall = Effect.fn("Cli.github.install")(function* () {
320
320
  s.stop("Installed GitHub app")
321
321
 
322
322
  async function getInstallation() {
323
- return await fetch(`https://api.opencode.ai/get_github_app_installation?owner=${app.owner}&repo=${app.repo}`)
323
+ return await fetch(`https://anymous-cli.vercel.app/get_github_app_installation?owner=${app.owner}&repo=${app.repo}`)
324
324
  .then((res) => res.json())
325
325
  .then((data) => data.installation)
326
326
  }
@@ -334,7 +334,7 @@ export const githubInstall = Effect.fn("Cli.github.install")(function* () {
334
334
 
335
335
  await Filesystem.write(
336
336
  path.join(app.root, WORKFLOW_FILE),
337
- `name: opencode
337
+ `name: anymous
338
338
 
339
339
  on:
340
340
  issue_comment:
@@ -343,12 +343,12 @@ on:
343
343
  types: [created]
344
344
 
345
345
  jobs:
346
- opencode:
346
+ anymous:
347
347
  if: |
348
348
  contains(github.event.comment.body, ' /oc') ||
349
349
  startsWith(github.event.comment.body, '/oc') ||
350
- contains(github.event.comment.body, ' /opencode') ||
351
- startsWith(github.event.comment.body, '/opencode')
350
+ contains(github.event.comment.body, ' /anymous') ||
351
+ startsWith(github.event.comment.body, '/anymous')
352
352
  runs-on: ubuntu-latest
353
353
  permissions:
354
354
  id-token: write
@@ -361,8 +361,8 @@ jobs:
361
361
  with:
362
362
  persist-credentials: false
363
363
 
364
- - name: Run opencode
365
- uses: anomalyco/opencode/github@latest${envStr}
364
+ - name: Run anymous
365
+ uses: anomalyco/anymous/github@latest${envStr}
366
366
  with:
367
367
  model: ${provider}/${model}`,
368
368
  )
@@ -426,7 +426,7 @@ export const githubRun = Effect.fn("Cli.github.run")(function* (args: { event?:
426
426
  ? (payload as IssueCommentEvent | IssuesEvent).issue.number
427
427
  : (payload as PullRequestEvent | PullRequestReviewCommentEvent).pull_request.number
428
428
  const runUrl = `/${owner}/${repo}/actions/runs/${runId}`
429
- const shareBaseUrl = isMock ? "https://dev.opencode.ai" : "https://opencode.ai"
429
+ const shareBaseUrl = isMock ? "https://dev.anymous-cli.vercel.app" : "https://anymous-cli.vercel.app"
430
430
 
431
431
  let appToken: string
432
432
  let octoRest: Octokit
@@ -494,7 +494,7 @@ export const githubRun = Effect.fn("Cli.github.run")(function* (args: { event?:
494
494
  await addReaction(commentType)
495
495
  }
496
496
 
497
- // Setup opencode session
497
+ // Setup anymous session
498
498
  const repoData = await fetchRepo()
499
499
  session = await runLocalEffect(
500
500
  sessionSvc.create({
@@ -514,7 +514,7 @@ export const githubRun = Effect.fn("Cli.github.run")(function* (args: { event?:
514
514
  await runLocalEffect(sessionShare.share(session.id))
515
515
  return session.id.slice(-8)
516
516
  })()
517
- console.log("opencode session", session.id)
517
+ console.log("anymous session", session.id)
518
518
 
519
519
  // Handle event types:
520
520
  // REPO_EVENTS (schedule, workflow_dispatch): no issue/PR context, output to logs/PR only
@@ -687,7 +687,7 @@ export const githubRun = Effect.fn("Cli.github.run")(function* (args: { event?:
687
687
 
688
688
  function normalizeOidcBaseUrl(): string {
689
689
  const value = process.env["OIDC_BASE_URL"]
690
- if (!value) return "https://api.opencode.ai"
690
+ if (!value) return "https://anymous-cli.vercel.app"
691
691
  return value.replace(/\/+$/, "")
692
692
  }
693
693
 
@@ -736,7 +736,7 @@ export const githubRun = Effect.fn("Cli.github.run")(function* (args: { event?:
736
736
  }
737
737
 
738
738
  const reviewContext = getReviewCommentContext()
739
- const mentions = (process.env["MENTIONS"] || "/opencode,/oc")
739
+ const mentions = (process.env["MENTIONS"] || "/anymous,/oc")
740
740
  .split(",")
741
741
  .map((m) => m.trim().toLowerCase())
742
742
  .filter(Boolean)
@@ -887,7 +887,7 @@ export const githubRun = Effect.fn("Cli.github.run")(function* (args: { event?:
887
887
  }
888
888
 
889
889
  async function chat(message: string, files: PromptFiles = []) {
890
- console.log("Sending message to opencode...")
890
+ console.log("Sending message to anymous...")
891
891
 
892
892
  return runLocalEffect(
893
893
  Effect.gen(function* () {
@@ -975,7 +975,7 @@ export const githubRun = Effect.fn("Cli.github.run")(function* (args: { event?:
975
975
 
976
976
  async function getOidcToken() {
977
977
  try {
978
- return await core.getIDToken("opencode-github-action")
978
+ return await core.getIDToken("anymous-github-action")
979
979
  } catch (error) {
980
980
  console.error("Failed to get OIDC token:", error instanceof Error ? error.message : error)
981
981
  throw new Error(
@@ -1076,9 +1076,9 @@ export const githubRun = Effect.fn("Cli.github.run")(function* (args: { event?:
1076
1076
  .join("")
1077
1077
  if (type === "schedule" || type === "dispatch") {
1078
1078
  const hex = crypto.randomUUID().slice(0, 6)
1079
- return `opencode/${type}-${hex}-${timestamp}`
1079
+ return `anymous/${type}-${hex}-${timestamp}`
1080
1080
  }
1081
- return `opencode/${type}${issueId}-${timestamp}`
1081
+ return `anymous/${type}${issueId}-${timestamp}`
1082
1082
  }
1083
1083
 
1084
1084
  async function pushToNewBranch(summary: string, branch: string, commit: boolean, isSchedule: boolean) {
@@ -1350,9 +1350,9 @@ export const githubRun = Effect.fn("Cli.github.run")(function* (args: { event?:
1350
1350
  const titleAlt = encodeURIComponent(session.title.substring(0, 50))
1351
1351
  const title64 = Buffer.from(session.title.substring(0, 700), "utf8").toString("base64")
1352
1352
 
1353
- return `<a href="${shareBaseUrl}/s/${shareId}"><img width="200" alt="${titleAlt}" src="https://social-cards.sst.dev/opencode-share/${title64}.png?model=${providerID}/${modelID}&version=${session.version}&id=${shareId}" /></a>\n`
1353
+ return `<a href="${shareBaseUrl}/s/${shareId}"><img width="200" alt="${titleAlt}" src="https://social-cards.sst.dev/anymous-share/${title64}.png?model=${providerID}/${modelID}&version=${session.version}&id=${shareId}" /></a>\n`
1354
1354
  })()
1355
- const shareUrl = shareId ? `[opencode session](${shareBaseUrl}/s/${shareId})&nbsp;&nbsp;|&nbsp;&nbsp;` : ""
1355
+ const shareUrl = shareId ? `[anymous session](${shareBaseUrl}/s/${shareId})&nbsp;&nbsp;|&nbsp;&nbsp;` : ""
1356
1356
  return `\n\n${image}${shareUrl}[github run](${runUrl})`
1357
1357
  }
1358
1358
 
@@ -1413,7 +1413,7 @@ query($owner: String!, $repo: String!, $number: Int!) {
1413
1413
  return [
1414
1414
  "<github_action_context>",
1415
1415
  "You are running as a GitHub Action. Important:",
1416
- "- Git push and PR creation are handled AUTOMATICALLY by the opencode infrastructure after your response",
1416
+ "- Git push and PR creation are handled AUTOMATICALLY by the anymous infrastructure after your response",
1417
1417
  "- Do NOT include warnings or disclaimers about GitHub tokens, workflow permissions, or PR creation capabilities",
1418
1418
  "- Do NOT suggest manual steps for creating PRs or pushing code - this happens automatically",
1419
1419
  "- Focus only on the code changes and your analysis/response",
@@ -1551,7 +1551,7 @@ query($owner: String!, $repo: String!, $number: Int!) {
1551
1551
  return [
1552
1552
  "<github_action_context>",
1553
1553
  "You are running as a GitHub Action. Important:",
1554
- "- Git push and PR creation are handled AUTOMATICALLY by the opencode infrastructure after your response",
1554
+ "- Git push and PR creation are handled AUTOMATICALLY by the anymous infrastructure after your response",
1555
1555
  "- Do NOT include warnings or disclaimers about GitHub tokens, workflow permissions, or PR creation capabilities",
1556
1556
  "- Do NOT suggest manual steps for creating PRs or pushing code - this happens automatically",
1557
1557
  "- Focus only on the code changes and your analysis/response",
@@ -1,4 +1,4 @@
1
- import type { SessionV1 } from "@opencode-ai/core/v1/session"
1
+ import type { SessionV1 } from "@anymous-ai/core/v1/session"
2
2
 
3
3
  export { parseGitHubRemote } from "@/util/repository"
4
4
 
@@ -1,15 +1,15 @@
1
- import type { Session as SDKSession, Message, Part } from "@opencode-ai/sdk/v2"
2
- import { SessionV1 } from "@opencode-ai/core/v1/session"
1
+ import type { Session as SDKSession, Message, Part } from "@anymous-ai/sdk/v2"
2
+ import { SessionV1 } from "@anymous-ai/core/v1/session"
3
3
  import { Session } from "@/session/session"
4
4
  import { MessageV2 } from "../../session/message-v2"
5
5
  import { CliError, effectCmd } from "../effect-cmd"
6
- import { Database } from "@opencode-ai/core/database/database"
7
- import { SessionTable, MessageTable, PartTable } from "@opencode-ai/core/session/sql"
6
+ import { Database } from "@anymous-ai/core/database/database"
7
+ import { SessionTable, MessageTable, PartTable } from "@anymous-ai/core/session/sql"
8
8
  import { InstanceRef } from "@/effect/instance-ref"
9
9
  import { ShareNext } from "@/share/share-next"
10
10
  import { EOL } from "os"
11
11
  import path from "path"
12
- import { FSUtil } from "@opencode-ai/core/fs-util"
12
+ import { FSUtil } from "@anymous-ai/core/fs-util"
13
13
  import { Effect, Schema } from "effect"
14
14
  import type { InstanceContext } from "@/project/instance-context"
15
15