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
@@ -0,0 +1,13 @@
1
+ You are connected to SuperMemory.
2
+
3
+ Use the SuperMemory tools when the user wants to configure local memory, connect to the hosted memory service, inspect status, or work with their memory layer.
4
+
5
+ Be direct about setup:
6
+ - Check whether the local service or remote connection is available.
7
+ - Tell the user the exact install or login step if something is missing.
8
+ - Prefer the memory tool or configured endpoint over manual workarounds.
9
+
10
+ When useful, summarize:
11
+ - the current connection mode
12
+ - the API key or local server requirement
13
+ - any next step needed to make memory available
@@ -8,7 +8,7 @@ import { isRecord } from "@/util/record"
8
8
  export type Err = ReturnType<NamedError["toObject"]>
9
9
 
10
10
  export const GO_UPSELL_MESSAGE = "Free usage exceeded, subscribe to Go"
11
- export const GO_UPSELL_URL = "https://opencode.ai/go"
11
+ export const GO_UPSELL_URL = "https://openfork.dev/go"
12
12
  export type RetryReason = "free_tier_limit" | "account_rate_limit" | (string & {})
13
13
 
14
14
  export type Retryable = {
@@ -80,7 +80,7 @@ export function retryable(error: Err, provider: string) {
80
80
  reason: "free_tier_limit",
81
81
  provider,
82
82
  title: "Free limit reached",
83
- message: "Subscribe to OpenCode Go for reliable access to the best open-source models, starting at $5/month.",
83
+ message: "Subscribe to OpenFork Go for reliable access to the best open-source models, starting at $5/month.",
84
84
  label: "subscribe",
85
85
  link: GO_UPSELL_URL,
86
86
  },
@@ -106,7 +106,7 @@ export function retryable(error: Err, provider: string) {
106
106
 
107
107
  const message = `${limitName ? `${limitName} usage limit` : "Usage limit"} reached. It will reset in ${resetIn}. To continue using this model now, enable usage from your available balance`
108
108
 
109
- const link = `https://opencode.ai/workspace/${workspace}/go`
109
+ const link = `https://openfork.dev/workspace/${workspace}/go`
110
110
  return {
111
111
  message: `${message} - ${link}`,
112
112
  action: {
@@ -12,6 +12,11 @@ import PROMPT_KIMI from "./prompt/kimi.txt"
12
12
 
13
13
  import PROMPT_CODEX from "./prompt/codex.txt"
14
14
  import PROMPT_TRINITY from "./prompt/trinity.txt"
15
+ import PROMPT_OPENSEARCH from "./prompt/opensearch.txt"
16
+ import PROMPT_COMPOSIO from "./prompt/composio.txt"
17
+ import PROMPT_SUPERMEMORY from "./prompt/supermemory.txt"
18
+ import PROMPT_MEM0 from "./prompt/mem0.txt"
19
+ import PROMPT_REMOTE_TOOLS from "./prompt/remote_tools.txt"
15
20
  import type { Provider } from "@/provider/provider"
16
21
  import type { Agent } from "@/agent/agent"
17
22
  import { Permission } from "@/permission"
@@ -36,6 +41,13 @@ export function provider(model: Provider.Model) {
36
41
  if (model.api.id.includes("claude")) return [PROMPT_ANTHROPIC]
37
42
  if (model.api.id.toLowerCase().includes("trinity")) return [PROMPT_TRINITY]
38
43
  if (model.api.id.toLowerCase().includes("kimi")) return [PROMPT_KIMI]
44
+
45
+ if (model.api.id.toLowerCase().includes("search") || model.providerID.toLowerCase().includes("opensearch")) return [PROMPT_OPENSEARCH]
46
+ if (model.api.id.toLowerCase().includes("composio")) return [PROMPT_COMPOSIO]
47
+ if (model.api.id.toLowerCase().includes("supermemory") || model.api.id.toLowerCase().includes("super memory")) return [PROMPT_SUPERMEMORY]
48
+ if (model.api.id.toLowerCase().includes("mem0") || model.api.id.toLowerCase().includes("memory")) return [PROMPT_MEM0]
49
+ if (model.api.id.toLowerCase().includes("remote") || model.api.id.toLowerCase().includes("tool")) return [PROMPT_REMOTE_TOOLS]
50
+
39
51
  return [PROMPT_DEFAULT]
40
52
  }
41
53