openfork 1.17.17 → 1.17.19

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 (46) hide show
  1. package/package.json +1 -1
  2. package/script/publish.ts +2 -2
  3. package/script/trace-imports.ts +1 -1
  4. package/specs/v2/api.ts +2 -2
  5. package/src/acp/service.ts +7 -7
  6. package/src/acp/usage.ts +4 -4
  7. package/src/cli/cmd/account.ts +1 -1
  8. package/src/cli/cmd/github.handler.ts +5 -5
  9. package/src/cli/cmd/integrations.ts +391 -0
  10. package/src/cli/cmd/pr.ts +2 -2
  11. package/src/cli/cmd/providers.ts +2 -2
  12. package/src/cli/cmd/run/footer.permission.tsx +2 -2
  13. package/src/cli/cmd/run/footer.prompt.tsx +1 -1
  14. package/src/cli/cmd/run/permission.shared.ts +2 -2
  15. package/src/cli/cmd/run/splash.ts +1 -1
  16. package/src/cli/cmd/uninstall.ts +2 -2
  17. package/src/config/config.ts +5 -5
  18. package/src/config/managed.ts +1 -1
  19. package/src/config/tui-migrate.ts +3 -3
  20. package/src/index.ts +2 -0
  21. package/src/installation/index.ts +3 -3
  22. package/src/mcp/index.ts +4 -4
  23. package/src/mcp/oauth-provider.ts +1 -1
  24. package/src/plugin/digitalocean.ts +1 -1
  25. package/src/plugin/github-copilot/models.ts +1 -1
  26. package/src/plugin/shared.ts +4 -4
  27. package/src/plugin/snowflake-cortex.ts +1 -1
  28. package/src/provider/provider.ts +7 -7
  29. package/src/provider/transform.ts +1 -1
  30. package/src/server/routes/instance/httpapi/api.ts +1 -1
  31. package/src/server/routes/instance/httpapi/groups/config.ts +2 -2
  32. package/src/server/routes/instance/httpapi/groups/experimental.ts +3 -3
  33. package/src/server/routes/instance/httpapi/groups/global.ts +5 -5
  34. package/src/server/routes/instance/httpapi/groups/instance.ts +5 -5
  35. package/src/server/routes/instance/httpapi/groups/project.ts +2 -2
  36. package/src/server/routes/instance/httpapi/groups/pty.ts +1 -1
  37. package/src/server/routes/instance/httpapi/groups/session.ts +3 -3
  38. package/src/server/routes/instance/httpapi/public.ts +3 -3
  39. package/src/session/llm/request.ts +2 -2
  40. package/src/session/prompt/composio.txt +15 -0
  41. package/src/session/prompt/mem0.txt +32 -0
  42. package/src/session/prompt/opensearch.txt +30 -0
  43. package/src/session/prompt/remote_tools.txt +39 -0
  44. package/src/session/prompt/supermemory.txt +13 -0
  45. package/src/session/retry.ts +3 -3
  46. package/src/session/system.ts +12 -0
@@ -229,8 +229,8 @@ const layer = Layer.effect(
229
229
 
230
230
  yield* Effect.promise(() => resolveLoadedPlugins(data, options.path))
231
231
  if (!data.$schema) {
232
- data.$schema = "https://opencode.ai/config.json"
233
- const updated = text.replace(/^\s*\{/, '{\n "$schema": "https://opencode.ai/config.json",')
232
+ data.$schema = "https://openfork.dev/config.json"
233
+ const updated = text.replace(/^\s*\{/, '{\n "$schema": "https://openfork.dev/config.json",')
234
234
  yield* fs.writeFileString(options.path, updated).pipe(Effect.catch(() => Effect.void))
235
235
  }
236
236
  return data
@@ -251,7 +251,7 @@ const layer = Layer.effect(
251
251
  const file = globalConfigFile()
252
252
  if (!existsSync(file)) {
253
253
  yield* fs
254
- .writeWithDirs(file, JSON.stringify({ $schema: "https://opencode.ai/config.json" }, null, 2))
254
+ .writeWithDirs(file, JSON.stringify({ $schema: "https://openfork.dev/config.json" }, null, 2))
255
255
  .pipe(Effect.catch(() => Effect.void))
256
256
  }
257
257
  }
@@ -266,7 +266,7 @@ const layer = Layer.effect(
266
266
  .then(async (mod) => {
267
267
  const { provider, model, ...rest } = mod.default
268
268
  if (provider && model) result.model = `${provider}/${model}`
269
- result["$schema"] = "https://opencode.ai/config.json"
269
+ result["$schema"] = "https://openfork.dev/config.json"
270
270
  result = mergeConfig(result, rest)
271
271
  await fsNode.writeFile(path.join(Global.Path.config, "config.json"), JSON.stringify(result, null, 2))
272
272
  await fsNode.unlink(legacy)
@@ -379,7 +379,7 @@ const layer = Layer.effect(
379
379
  })
380
380
  : {}
381
381
  const remoteConfig = mergeConfig(isRecord(wellknown.config) ? wellknown.config : {}, fetchedConfig)
382
- if (!remoteConfig.$schema) remoteConfig.$schema = "https://opencode.ai/config.json"
382
+ if (!remoteConfig.$schema) remoteConfig.$schema = "https://openfork.dev/config.json"
383
383
  const source = wellknownURL
384
384
  const next = yield* loadConfig(
385
385
  JSON.stringify(remoteConfig),
@@ -7,7 +7,7 @@ import { Process } from "@/util/process"
7
7
 
8
8
  const MANAGED_PLIST_DOMAIN = "ai.openfork.managed"
9
9
 
10
- // Keys injected by macOS/MDM into the managed plist that are not OpenCode config
10
+ // Keys injected by macOS/MDM into the managed plist that are not OpenFork config
11
11
  const PLIST_META = new Set([
12
12
  "PayloadDisplayName",
13
13
  "PayloadIdentifier",
@@ -8,7 +8,7 @@ import { Global } from "@openfork-ai/core/global"
8
8
  import { Filesystem } from "@/util/filesystem"
9
9
  import * as ConfigPaths from "@/config/paths"
10
10
 
11
- const TUI_SCHEMA_URL = "https://opencode.ai/tui.json"
11
+ const TUI_SCHEMA_URL = "https://openfork.dev/tui.json"
12
12
 
13
13
  const decodeTheme = Schema.decodeUnknownOption(Schema.String)
14
14
  const decodeRecord = Schema.decodeUnknownOption(Schema.Record(Schema.String, Schema.Unknown))
@@ -27,7 +27,7 @@ interface MigrateInput {
27
27
  * skips only locations where a tui.json already exists.
28
28
  */
29
29
  export async function migrateTuiConfig(input: MigrateInput) {
30
- const openfork = await opencodeFiles(input)
30
+ const openfork = await openforkFiles(input)
31
31
  for (const file of openfork) {
32
32
  const source = await Filesystem.readText(file).catch(() => undefined)
33
33
  if (!source) continue
@@ -112,7 +112,7 @@ async function backupAndStripLegacy(file: string, source: string) {
112
112
  .catch(() => false)
113
113
  }
114
114
 
115
- async function opencodeFiles(input: { directories: string[]; cwd: string }) {
115
+ async function openforkFiles(input: { directories: string[]; cwd: string }) {
116
116
  const files = [
117
117
  ...ConfigPaths.fileInDirectory(Global.Path.config, "openfork"),
118
118
  ...(await Filesystem.findUp(["openfork.json", "openfork.jsonc"], input.cwd, undefined, { rootFirst: true })),
package/src/index.ts CHANGED
@@ -29,6 +29,7 @@ import { DbCommand } from "./cli/cmd/db"
29
29
  import { errorMessage } from "./util/error"
30
30
  import { PluginCommand } from "./cli/cmd/plug"
31
31
  import { Heap } from "./cli/heap"
32
+ import { IntegrationsCommand } from "./cli/cmd/integrations"
32
33
 
33
34
  const args = hideBin(process.argv)
34
35
 
@@ -81,6 +82,7 @@ const cli = yargs(args)
81
82
  .command(AcpCommand)
82
83
  .command(McpCommand)
83
84
  .command(TuiThreadCommand)
85
+ .command(IntegrationsCommand)
84
86
  .command(AttachCommand)
85
87
  .command(RunCommand)
86
88
  .command(GenerateCommand)
@@ -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://openfork.dev/install"))
148
148
  const body = yield* response.text
149
149
  const bodyBytes = new TextEncoder().encode(body)
150
150
  const shell = yield* upgradeScriptShell()
@@ -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%27openfork%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)
@@ -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/anomalyco/openfork/releases/latest").pipe(
259
259
  HttpClientRequest.acceptJson,
260
260
  ),
261
261
  )
package/src/mcp/index.ts CHANGED
@@ -38,13 +38,13 @@ import { McpEvent } from "@openfork-ai/schema/mcp-event"
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/anomalyco/openfork/issues/11948
42
42
  // sampling: {},
43
- // https://github.com/anomalyco/opencode/issues/23066
43
+ // https://github.com/anomalyco/openfork/issues/23066
44
44
  // elicitation: {},
45
- // https://github.com/anomalyco/opencode/issues/2308
45
+ // https://github.com/anomalyco/openfork/issues/2308
46
46
  roots: {},
47
- // https://github.com/anomalyco/opencode/issues/28567
47
+ // https://github.com/anomalyco/openfork/issues/28567
48
48
  // tasks: {},
49
49
  },
50
50
  } satisfies ClientOptions
@@ -43,7 +43,7 @@ export class McpOAuthProvider implements OAuthClientProvider {
43
43
  get clientMetadata(): OAuthClientMetadata {
44
44
  return {
45
45
  redirect_uris: [this.redirectUrl],
46
- client_name: "OpenCode",
46
+ client_name: "OpenFork",
47
47
  client_uri: "https://openfork.ai",
48
48
  grant_types: ["authorization_code", "refresh_token"],
49
49
  response_types: ["code"],
@@ -283,7 +283,7 @@ export async function DigitalOceanAuthPlugin(input: PluginInput): Promise<Hooks>
283
283
  return {
284
284
  url,
285
285
  instructions:
286
- "Sign in to DigitalOcean in your browser. OpenCode will use your DigitalOcean API token directly for inference and load your Inference Routers. Re-run /connect to refresh routers later.",
286
+ "Sign in to DigitalOcean in your browser. OpenFork will use your DigitalOcean API token directly for inference and load your Inference Routers. Re-run /connect to refresh routers later.",
287
287
  method: "auto" as const,
288
288
  async callback() {
289
289
  try {
@@ -98,7 +98,7 @@ function build(key: string, remote: SelectableItem, url: string, prev?: Model):
98
98
  ? "chat"
99
99
  : undefined
100
100
  const prices = remote.billing?.token_prices
101
- // Copilot prices are AIC per billing batch; OpenCode stores USD per million tokens.
101
+ // Copilot prices are AIC per billing batch; OpenFork stores USD per million tokens.
102
102
  const usdPerMillion = prices ? 10_000 / prices.batch_size : 0
103
103
 
104
104
  const model: CopilotModel = {
@@ -191,16 +191,16 @@ export async function resolvePathPluginTarget(spec: string) {
191
191
  throw new Error(`Plugin directory ${file} is missing package.json or index file`)
192
192
  }
193
193
 
194
- export async function checkPluginCompatibility(target: string, opencodeVersion: string, pkg?: PluginPackage) {
195
- if (!semver.valid(opencodeVersion) || semver.major(opencodeVersion) === 0) return
194
+ export async function checkPluginCompatibility(target: string, openforkVersion: string, pkg?: PluginPackage) {
195
+ if (!semver.valid(openforkVersion) || semver.major(openforkVersion) === 0) return
196
196
  const hit = pkg ?? (await readPluginPackage(target).catch(() => undefined))
197
197
  if (!hit) return
198
198
  const engines = hit.json.engines
199
199
  if (!isRecord(engines)) return
200
200
  const range = engines.openfork
201
201
  if (typeof range !== "string") return
202
- if (!semver.satisfies(opencodeVersion, range)) {
203
- throw new Error(`Plugin requires openfork ${range} but running ${opencodeVersion}`)
202
+ if (!semver.satisfies(openforkVersion, range)) {
203
+ throw new Error(`Plugin requires openfork ${range} but running ${openforkVersion}`)
204
204
  }
205
205
  }
206
206
 
@@ -475,7 +475,7 @@ export async function SnowflakeCortexAuthPlugin(_input: PluginInput): Promise<Ho
475
475
  return {
476
476
  url,
477
477
  instructions:
478
- "Complete Snowflake sign-in in your browser. OpenCode will capture the OAuth callback and store the bearer token automatically.",
478
+ "Complete Snowflake sign-in in your browser. OpenFork will capture the OAuth callback and store the bearer token automatically.",
479
479
  method: "auto" as const,
480
480
  async callback() {
481
481
  try {
@@ -449,7 +449,7 @@ function custom(dep: CustomDep): Record<string, CustomLoader> {
449
449
  autoload: false,
450
450
  options: {
451
451
  headers: {
452
- "HTTP-Referer": "https://opencode.ai/",
452
+ "HTTP-Referer": "https://openfork.dev/",
453
453
  "X-Title": "openfork",
454
454
  "X-Source": "openfork",
455
455
  },
@@ -460,7 +460,7 @@ function custom(dep: CustomDep): Record<string, CustomLoader> {
460
460
  autoload: false,
461
461
  options: {
462
462
  headers: {
463
- "HTTP-Referer": "https://opencode.ai/",
463
+ "HTTP-Referer": "https://openfork.dev/",
464
464
  "X-Title": "openfork",
465
465
  },
466
466
  },
@@ -470,9 +470,9 @@ function custom(dep: CustomDep): Record<string, CustomLoader> {
470
470
  autoload: provider.source === "config",
471
471
  options: {
472
472
  headers: {
473
- "HTTP-Referer": "https://opencode.ai/",
473
+ "HTTP-Referer": "https://openfork.dev/",
474
474
  "X-Title": "openfork",
475
- "X-BILLING-INVOKE-ORIGIN": "OpenCode",
475
+ "X-BILLING-INVOKE-ORIGIN": "OpenFork",
476
476
  },
477
477
  },
478
478
  }),
@@ -481,7 +481,7 @@ function custom(dep: CustomDep): Record<string, CustomLoader> {
481
481
  autoload: false,
482
482
  options: {
483
483
  headers: {
484
- "http-referer": "https://opencode.ai/",
484
+ "http-referer": "https://openfork.dev/",
485
485
  "x-title": "openfork",
486
486
  },
487
487
  },
@@ -587,7 +587,7 @@ function custom(dep: CustomDep): Record<string, CustomLoader> {
587
587
  autoload: false,
588
588
  options: {
589
589
  headers: {
590
- "HTTP-Referer": "https://opencode.ai/",
590
+ "HTTP-Referer": "https://openfork.dev/",
591
591
  "X-Title": "openfork",
592
592
  },
593
593
  },
@@ -845,7 +845,7 @@ function custom(dep: CustomDep): Record<string, CustomLoader> {
845
845
  autoload: false,
846
846
  options: {
847
847
  headers: {
848
- "HTTP-Referer": "https://opencode.ai/",
848
+ "HTTP-Referer": "https://openfork.dev/",
849
849
  "X-Title": "openfork",
850
850
  },
851
851
  },
@@ -1437,7 +1437,7 @@ export function schema(model: Provider.Model, schema: JSONSchema7): JSONSchema7
1437
1437
 
1438
1438
  if (model.api.npm === "@ai-sdk/openai" || model.api.npm === "@ai-sdk/azure") {
1439
1439
  schema = sanitizeOpenAISchema(schema) as JSONSchema7
1440
- // Codex also applies lossy compaction above 4 KB; defer that until OpenCode needs the same schema budget.
1440
+ // Codex also applies lossy compaction above 4 KB; defer that until OpenFork needs the same schema budget.
1441
1441
  }
1442
1442
 
1443
1443
  if (model.providerID === "moonshotai" || model.api.id.toLowerCase().includes("kimi")) {
@@ -76,7 +76,7 @@ export const InstanceHttpApi = HttpApi.make("openfork-instance")
76
76
  .addHttpApi(WorkspaceApi)
77
77
  .middleware(SchemaErrorMiddleware)
78
78
 
79
- export const OpenCodeHttpApi = HttpApi.make("openfork")
79
+ export const OpenForkHttpApi = HttpApi.make("openfork")
80
80
  .addHttpApi(RootHttpApi)
81
81
  .addHttpApi(EventApi)
82
82
  .addHttpApi(InstanceHttpApi)
@@ -20,7 +20,7 @@ export const ConfigApi = HttpApi.make("config")
20
20
  OpenApi.annotations({
21
21
  identifier: "config.get",
22
22
  summary: "Get configuration",
23
- description: "Retrieve the current OpenCode configuration settings and preferences.",
23
+ description: "Retrieve the current OpenFork configuration settings and preferences.",
24
24
  }),
25
25
  ),
26
26
  HttpApiEndpoint.patch("update", root, {
@@ -32,7 +32,7 @@ export const ConfigApi = HttpApi.make("config")
32
32
  OpenApi.annotations({
33
33
  identifier: "config.update",
34
34
  summary: "Update configuration",
35
- description: "Update OpenCode configuration settings and preferences.",
35
+ description: "Update OpenFork configuration settings and preferences.",
36
36
  }),
37
37
  ),
38
38
  HttpApiEndpoint.get("providers", `${root}/providers`, {
@@ -112,7 +112,7 @@ export const ExperimentalApi = HttpApi.make("experimental")
112
112
  OpenApi.annotations({
113
113
  identifier: "experimental.capabilities.get",
114
114
  summary: "Get experimental capabilities",
115
- description: "Get experimental features enabled on the OpenCode server.",
115
+ description: "Get experimental features enabled on the OpenFork server.",
116
116
  }),
117
117
  ),
118
118
  HttpApiEndpoint.get("console", ExperimentalPaths.console, {
@@ -146,7 +146,7 @@ export const ExperimentalApi = HttpApi.make("experimental")
146
146
  OpenApi.annotations({
147
147
  identifier: "experimental.console.switchOrg",
148
148
  summary: "Switch active Console org",
149
- description: "Persist a new active Console account/org selection for the current local OpenCode state.",
149
+ description: "Persist a new active Console account/org selection for the current local OpenFork state.",
150
150
  }),
151
151
  ),
152
152
  HttpApiEndpoint.get("tool", ExperimentalPaths.tool, {
@@ -229,7 +229,7 @@ export const ExperimentalApi = HttpApi.make("experimental")
229
229
  identifier: "experimental.session.list",
230
230
  summary: "List sessions",
231
231
  description:
232
- "Get a list of all OpenCode sessions across projects, sorted by most recently updated. Archived sessions are excluded by default.",
232
+ "Get a list of all OpenFork sessions across projects, sorted by most recently updated. Archived sessions are excluded by default.",
233
233
  }),
234
234
  ),
235
235
  HttpApiEndpoint.post("sessionBackground", ExperimentalPaths.sessionBackground, {
@@ -79,7 +79,7 @@ export const GlobalApi = HttpApi.make("global").add(
79
79
  OpenApi.annotations({
80
80
  identifier: "global.health",
81
81
  summary: "Get health",
82
- description: "Get health information about the OpenCode server.",
82
+ description: "Get health information about the OpenFork server.",
83
83
  }),
84
84
  ),
85
85
  HttpApiEndpoint.get("event", GlobalPaths.event, {
@@ -88,7 +88,7 @@ export const GlobalApi = HttpApi.make("global").add(
88
88
  OpenApi.annotations({
89
89
  identifier: "global.event",
90
90
  summary: "Get global events",
91
- description: "Subscribe to global events from the OpenCode system using server-sent events.",
91
+ description: "Subscribe to global events from the OpenFork system using server-sent events.",
92
92
  }),
93
93
  ),
94
94
  HttpApiEndpoint.get("configGet", GlobalPaths.config, {
@@ -97,7 +97,7 @@ export const GlobalApi = HttpApi.make("global").add(
97
97
  OpenApi.annotations({
98
98
  identifier: "global.config.get",
99
99
  summary: "Get global configuration",
100
- description: "Retrieve the current global OpenCode configuration settings and preferences.",
100
+ description: "Retrieve the current global OpenFork configuration settings and preferences.",
101
101
  }),
102
102
  ),
103
103
  HttpApiEndpoint.patch("configUpdate", GlobalPaths.config, {
@@ -108,7 +108,7 @@ export const GlobalApi = HttpApi.make("global").add(
108
108
  OpenApi.annotations({
109
109
  identifier: "global.config.update",
110
110
  summary: "Update global configuration",
111
- description: "Update global OpenCode configuration settings and preferences.",
111
+ description: "Update global OpenFork configuration settings and preferences.",
112
112
  }),
113
113
  ),
114
114
  HttpApiEndpoint.post("dispose", GlobalPaths.dispose, {
@@ -117,7 +117,7 @@ export const GlobalApi = HttpApi.make("global").add(
117
117
  OpenApi.annotations({
118
118
  identifier: "global.dispose",
119
119
  summary: "Dispose instance",
120
- description: "Clean up and dispose all OpenCode instances, releasing all resources.",
120
+ description: "Clean up and dispose all OpenFork instances, releasing all resources.",
121
121
  }),
122
122
  ),
123
123
  HttpApiEndpoint.post("upgrade", GlobalPaths.upgrade, {
@@ -66,7 +66,7 @@ export const InstanceApi = HttpApi.make("instance")
66
66
  OpenApi.annotations({
67
67
  identifier: "instance.dispose",
68
68
  summary: "Dispose instance",
69
- description: "Clean up and dispose the current OpenCode instance, releasing all resources.",
69
+ description: "Clean up and dispose the current OpenFork instance, releasing all resources.",
70
70
  }),
71
71
  ),
72
72
  HttpApiEndpoint.get("path", InstancePaths.path, {
@@ -77,7 +77,7 @@ export const InstanceApi = HttpApi.make("instance")
77
77
  identifier: "path.get",
78
78
  summary: "Get paths",
79
79
  description:
80
- "Retrieve the current working directory and related path information for the OpenCode instance.",
80
+ "Retrieve the current working directory and related path information for the OpenFork instance.",
81
81
  }),
82
82
  ),
83
83
  HttpApiEndpoint.get("vcs", InstancePaths.vcs, {
@@ -143,7 +143,7 @@ export const InstanceApi = HttpApi.make("instance")
143
143
  OpenApi.annotations({
144
144
  identifier: "command.list",
145
145
  summary: "List commands",
146
- description: "Get a list of all available commands in the OpenCode system.",
146
+ description: "Get a list of all available commands in the OpenFork system.",
147
147
  }),
148
148
  ),
149
149
  HttpApiEndpoint.get("agent", InstancePaths.agent, {
@@ -153,7 +153,7 @@ export const InstanceApi = HttpApi.make("instance")
153
153
  OpenApi.annotations({
154
154
  identifier: "app.agents",
155
155
  summary: "List agents",
156
- description: "Get a list of all available AI agents in the OpenCode system.",
156
+ description: "Get a list of all available AI agents in the OpenFork system.",
157
157
  }),
158
158
  ),
159
159
  HttpApiEndpoint.get("skill", InstancePaths.skill, {
@@ -163,7 +163,7 @@ export const InstanceApi = HttpApi.make("instance")
163
163
  OpenApi.annotations({
164
164
  identifier: "app.skills",
165
165
  summary: "List skills",
166
- description: "Get a list of all available skills in the OpenCode system.",
166
+ description: "Get a list of all available skills in the OpenFork system.",
167
167
  }),
168
168
  ),
169
169
  HttpApiEndpoint.get("lsp", InstancePaths.lsp, {
@@ -26,7 +26,7 @@ export const ProjectApi = HttpApi.make("project")
26
26
  OpenApi.annotations({
27
27
  identifier: "project.list",
28
28
  summary: "List all projects",
29
- description: "Get a list of projects that have been opened with OpenCode.",
29
+ description: "Get a list of projects that have been opened with OpenFork.",
30
30
  }),
31
31
  ),
32
32
  HttpApiEndpoint.get("current", `${root}/current`, {
@@ -36,7 +36,7 @@ export const ProjectApi = HttpApi.make("project")
36
36
  OpenApi.annotations({
37
37
  identifier: "project.current",
38
38
  summary: "Get current project",
39
- description: "Retrieve the currently active project that OpenCode is working with.",
39
+ description: "Retrieve the currently active project that OpenFork is working with.",
40
40
  }),
41
41
  ),
42
42
  HttpApiEndpoint.post("initGit", `${root}/git/init`, {
@@ -58,7 +58,7 @@ export const PtyApi = HttpApi.make("pty")
58
58
  OpenApi.annotations({
59
59
  identifier: "pty.list",
60
60
  summary: "List PTY sessions",
61
- description: "Get a list of all active pseudo-terminal (PTY) sessions managed by OpenCode.",
61
+ description: "Get a list of all active pseudo-terminal (PTY) sessions managed by OpenFork.",
62
62
  }),
63
63
  ),
64
64
  HttpApiEndpoint.post("create", PtyPaths.create, {
@@ -115,7 +115,7 @@ export const SessionApi = HttpApi.make("session")
115
115
  OpenApi.annotations({
116
116
  identifier: "session.list",
117
117
  summary: "List sessions",
118
- description: "Get a list of all OpenCode sessions, sorted by most recently updated.",
118
+ description: "Get a list of all OpenFork sessions, sorted by most recently updated.",
119
119
  }),
120
120
  ),
121
121
  HttpApiEndpoint.get("status", SessionPaths.status, {
@@ -138,7 +138,7 @@ export const SessionApi = HttpApi.make("session")
138
138
  OpenApi.annotations({
139
139
  identifier: "session.get",
140
140
  summary: "Get session",
141
- description: "Retrieve detailed information about a specific OpenCode session.",
141
+ description: "Retrieve detailed information about a specific OpenFork session.",
142
142
  }),
143
143
  ),
144
144
  HttpApiEndpoint.get("children", SessionPaths.children, {
@@ -209,7 +209,7 @@ export const SessionApi = HttpApi.make("session")
209
209
  OpenApi.annotations({
210
210
  identifier: "session.create",
211
211
  summary: "Create session",
212
- description: "Create a new OpenCode session for interacting with AI assistants and managing conversations.",
212
+ description: "Create a new OpenFork session for interacting with AI assistants and managing conversations.",
213
213
  }),
214
214
  ),
215
215
  HttpApiEndpoint.delete("remove", SessionPaths.remove, {
@@ -1,5 +1,5 @@
1
1
  import { OpenApi } from "effect/unstable/httpapi"
2
- import { OpenCodeHttpApi } from "./api"
2
+ import { OpenForkHttpApi } from "./api"
3
3
  import { QueryBooleanOpenApi } from "./groups/query"
4
4
 
5
5
  type OpenApiParameter = {
@@ -449,7 +449,7 @@ function fixSelfReferencingComponents(spec: OpenApiSpec) {
449
449
  }
450
450
  }
451
451
  // Simplest fix: generate the raw spec (without transform) to get correct schemas
452
- const raw: OpenApiSpec = OpenApi.fromApi(OpenCodeHttpApi)
452
+ const raw: OpenApiSpec = OpenApi.fromApi(OpenForkHttpApi)
453
453
  const rawSchemas = raw.components?.schemas
454
454
  if (!rawSchemas) return
455
455
  for (const name of selfRefs) {
@@ -527,7 +527,7 @@ function normalizeParameter(param: OpenApiParameter, route: string) {
527
527
  param.schema = stripOptionalNull(param.schema)
528
528
  }
529
529
 
530
- export const PublicApi = OpenCodeHttpApi.annotateMerge(
530
+ export const PublicApi = OpenForkHttpApi.annotateMerge(
531
531
  OpenApi.annotations({
532
532
  title: "openfork",
533
533
  version: "1.0.0",
@@ -174,7 +174,7 @@ export const prepare = Effect.fn("LLMRequestPrep.prepare")(function* (input: Pre
174
174
  })
175
175
  }
176
176
 
177
- const opencodeProjectID = input.model.providerID.startsWith("openfork")
177
+ const openforkProjectID = input.model.providerID.startsWith("openfork")
178
178
  ? (yield* InstanceState.context).project.id
179
179
  : undefined
180
180
 
@@ -187,7 +187,7 @@ export const prepare = Effect.fn("LLMRequestPrep.prepare")(function* (input: Pre
187
187
  headers: {
188
188
  ...(input.model.providerID.startsWith("openfork")
189
189
  ? {
190
- ...(opencodeProjectID ? { "x-openfork-project": opencodeProjectID } : {}),
190
+ ...(openforkProjectID ? { "x-openfork-project": openforkProjectID } : {}),
191
191
  "x-openfork-session": input.sessionID,
192
192
  "x-openfork-request": input.user.id,
193
193
  "x-openfork-client": input.flags.client,
@@ -0,0 +1,15 @@
1
+ You are connected to Composio.
2
+
3
+ Use the Composio tools when the user wants to manage external app integrations, list available toolkits, inspect connections, search tools, or execute a connected tool.
4
+
5
+ Be direct about setup:
6
+ - Check whether Composio is installed and configured.
7
+ - Help the user connect the requested toolkit if needed.
8
+ - Use the tool schema and connection state before attempting execution.
9
+
10
+ When useful, summarize:
11
+ - available toolkits
12
+ - active connections
13
+ - any missing authorization or install step
14
+
15
+ Prefer tool-driven actions over manual instructions.
@@ -0,0 +1,32 @@
1
+ You are running Mem0, a memory management system that stores and retrieves contextual information for AI agents.
2
+
3
+ Key capabilities:
4
+ - Store conversation history and context
5
+ - Retrieve relevant information across sessions
6
+ - Manage memory clusters and threads
7
+ - Handle short-term and long-term memory
8
+ - Integrate with existing agent workflows
9
+
10
+ You should provide structured help for Mem0 operations:
11
+ - Memory storage and retrieval
12
+ - Memory session management
13
+ - Memory graph operations
14
+ - Memory lifecycle management
15
+ - Memory sharing and collaboration
16
+
17
+ For Mem0 operations, ask clarifying questions:
18
+ - What memories should be stored?
19
+ - How should memories be retrieved? (by session, thread, graph)
20
+ - Are there specific memory types or categories?
21
+ - What are the retention and expiration requirements?
22
+
23
+ Remember to handle memory operations and provide context from previous conversations through Mem0.
24
+
25
+ ### Mem0 Integration Commands
26
+ You can use the following commands:
27
+ - `/mem0` - Access Mem0 operations
28
+ - `/memories` - Alias for Mem0 memory operations
29
+ - `/context` - Access contextual memories
30
+
31
+ ### Quick Start
32
+ To access Mem0, use `/mem0 retrieve --query "your query" --session-id <session_id>` for easy setup.
@@ -0,0 +1,30 @@
1
+ You are running OpenSearch, a powerful search engine that provides distributed search and analytics capabilities.
2
+
3
+ Key capabilities:
4
+ - Full-text search with advanced query syntax
5
+ - Multi-field search with boosting
6
+ - Faceted navigation and aggregations
7
+ - High performance and scalability
8
+ - REST API for easy integration
9
+
10
+ You should provide structured help for search operations:
11
+ - Query syntax and operators
12
+ - Search strategies and optimization tips
13
+ - Indexing best practices
14
+ - API usage examples
15
+
16
+ For search operations, ask clarifying questions:
17
+ - What are the target documents or data?
18
+ - What fields need to be searched?
19
+ - What search operators or special syntax are needed?
20
+ - Are there performance constraints or optimization requirements?
21
+
22
+ Remember to handle search result analysis and provide insights based on the query results.
23
+
24
+ ### OpenSearch Integration Commands
25
+ You can use the following commands:
26
+ - `/search` - Perform structured searches
27
+ - `/opensearch` - Access OpenSearch operations
28
+
29
+ ### Quick Start
30
+ To connect to OpenSearch, use `/integration opensearch --connect` for easy setup.
@@ -0,0 +1,39 @@
1
+ You are running Remote Tools, a system for executing commands and tools remotely from your AI agent.
2
+
3
+ Key capabilities:
4
+ - Execute shell commands and scripts
5
+ - Run Git operations (commit, push, merge)
6
+ - Manage file operations (read, write, edit, create)
7
+ - Access remote Git repositories
8
+ - Coordinate deployment operations
9
+ - Handle CI/CD pipeline operations
10
+ - Manage environment configuration
11
+
12
+ You should provide structured help for Remote Tools operations:
13
+ - Shell command execution with proper permissions
14
+ - Git workflow management
15
+ - File system operations
16
+ - Repository management
17
+ - Deployment and release operations
18
+ - Configuration management
19
+ - Error handling and recovery
20
+
21
+ For Remote Tools operations, ask clarifying questions:
22
+ - What shell commands should be executed?
23
+ - Which Git repositories need to be accessed?
24
+ - Are there specific file operations required?
25
+ - What are the permission and access requirements?
26
+
27
+ Remember to handle command execution errors and provide recovery options.
28
+
29
+ ### Remote Tools Integration Commands
30
+ You can use the following commands:
31
+ - `/remote` - Access remote operations
32
+ - `/shell` - Execute shell commands
33
+ - `/git` - Manage Git operations
34
+ - `/file` - Perform file operations
35
+
36
+ ### Quick Start
37
+ To execute shell commands, use `/shell --command "your command"`.
38
+ To access Git operations, use `/git --branch <branch> --command "git operation"`.
39
+ To manage files, use `/file --command "read" --path "path/to/file"`.