Skip to content

Commit 5a53f8b

Browse files
authored
Merge branch 'anomalyco:dev' into dev
2 parents cc6a944 + 22d33c5 commit 5a53f8b

87 files changed

Lines changed: 14001 additions & 458 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/app/src/context/global-sync.tsx

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import type {
1010
import { showToast } from "@opencode-ai/ui/toast"
1111
import { getFilename } from "@opencode-ai/shared/util/path"
1212
import { batch, createContext, getOwner, onCleanup, onMount, type ParentProps, untrack, useContext } from "solid-js"
13-
import { createStore, produce, reconcile } from "solid-js/store"
13+
import { createStore, produce, reconcile, unwrap } from "solid-js/store"
1414
import { useLanguage } from "@/context/language"
1515
import { Persist, persisted } from "@/utils/persist"
1616
import type { InitError } from "../pages/error"
@@ -95,13 +95,8 @@ function createGlobalSync() {
9595
)
9696
}
9797

98-
const setProjects = (next: Project[] | ((draft: Project[]) => void)) => {
98+
const setProjects = (next: Project[] | ((draft: Project[]) => Project[])) => {
9999
projectWritten = true
100-
if (typeof next === "function") {
101-
setGlobalStore("project", produce(next))
102-
cacheProjects()
103-
return
104-
}
105100
setGlobalStore("project", next)
106101
cacheProjects()
107102
}
@@ -116,7 +111,7 @@ function createGlobalSync() {
116111

117112
const set = ((...input: unknown[]) => {
118113
if (input[0] === "project" && (Array.isArray(input[1]) || typeof input[1] === "function")) {
119-
setProjects(input[1] as Project[] | ((draft: Project[]) => void))
114+
setProjects(input[1] as Project[] | ((draft: Project[]) => Project[]))
120115
return input[1]
121116
}
122117
return (setGlobalStore as (...args: unknown[]) => unknown)(...input)

packages/app/src/context/global-sync/event-reducer.ts

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const SKIP_PARTS = new Set(["patch", "step-start", "step-finish"])
2121
export function applyGlobalEvent(input: {
2222
event: { type: string; properties?: unknown }
2323
project: Project[]
24-
setGlobalProject: (next: Project[] | ((draft: Project[]) => void)) => void
24+
setGlobalProject: (next: Project[] | ((draft: Project[]) => Project[])) => void
2525
refresh: () => void
2626
}) {
2727
if (input.event.type === "global.disposed" || input.event.type === "server.connected") {
@@ -33,14 +33,18 @@ export function applyGlobalEvent(input: {
3333
const properties = input.event.properties as Project
3434
const result = Binary.search(input.project, properties.id, (s) => s.id)
3535
if (result.found) {
36-
input.setGlobalProject((draft) => {
37-
draft[result.index] = { ...draft[result.index], ...properties }
38-
})
36+
input.setGlobalProject(
37+
produce((draft) => {
38+
draft[result.index] = { ...draft[result.index], ...properties }
39+
}),
40+
)
3941
return
4042
}
41-
input.setGlobalProject((draft) => {
42-
draft.splice(result.index, 0, properties)
43-
})
43+
input.setGlobalProject(
44+
produce((draft) => {
45+
draft.splice(result.index, 0, properties)
46+
}),
47+
)
4448
}
4549

4650
function cleanupSessionCaches(

packages/console/app/src/i18n/ar.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ export const dict = {
249249

250250
"go.title": "OpenCode Go | نماذج برمجة منخفضة التكلفة للجميع",
251251
"go.meta.description":
252-
"يبدأ Go من $5 للشهر الأول، ثم $10/شهر، مع حدود طلب سخية لمدة 5 ساعات لـ GLM-5.1 وGLM-5 و Kimi K2.5 وMiMo-V2-Pro وMiMo-V2-Omni و Qwen3.5 Plus و Qwen3.6 Plus و MiniMax M2.5 وMiniMax M2.7.",
252+
"يبدأ Go من $5 للشهر الأول، ثم $10/شهر، مع حدود طلب سخية لمدة 5 ساعات لـ GLM-5.1 وGLM-5 وKimi K2.5 وKimi K2.6 وMiMo-V2-Pro وMiMo-V2-Omni وQwen3.5 Plus وQwen3.6 Plus وMiniMax M2.5 وMiniMax M2.7.",
253253
"go.hero.title": "نماذج برمجة منخفضة التكلفة للجميع",
254254
"go.hero.body":
255255
"يجلب Go البرمجة الوكيلة للمبرمجين حول العالم. يوفر حدودًا سخية ووصولًا موثوقًا إلى أقوى النماذج مفتوحة المصدر، حتى تتمكن من البناء باستخدام وكلاء أقوياء دون القلق بشأن التكلفة أو التوفر.",
@@ -261,6 +261,8 @@ export const dict = {
261261
"go.cta.promo": "$5 للشهر الأول",
262262
"go.pricing.body":
263263
"استخدمه مع أي وكيل. $5 للشهر الأول، ثم $10/شهر. قم بزيادة الرصيد إذا لزم الأمر. الإلغاء في أي وقت.",
264+
"go.banner.badge": "3x",
265+
"go.banner.text": "Kimi K2.6: حد الاستخدام 3 أضعاف حتى 27 أبريل",
264266
"go.graph.free": "مجاني",
265267
"go.graph.freePill": "Big Pickle ونماذج مجانية",
266268
"go.graph.go": "Go",
@@ -298,7 +300,7 @@ export const dict = {
298300
"go.problem.item2": "حدود سخية ووصول موثوق",
299301
"go.problem.item3": "مصمم لأكبر عدد ممكن من المبرمجين",
300302
"go.problem.item4":
301-
"يتضمن GLM-5.1 وGLM-5 وKimi K2.5 وMiMo-V2-Pro وMiMo-V2-Omni وQwen3.5 Plus وQwen3.6 Plus وMiniMax M2.5 وMiniMax M2.7",
303+
"يتضمن GLM-5.1 وGLM-5 وKimi K2.5 وKimi K2.6 وMiMo-V2-Pro وMiMo-V2-Omni وQwen3.5 Plus وQwen3.6 Plus وMiniMax M2.5 وMiniMax M2.7",
302304
"go.how.title": "كيف يعمل Go",
303305
"go.how.body": "يبدأ Go من $5 للشهر الأول، ثم $10/شهر. يمكنك استخدامه مع OpenCode أو أي وكيل.",
304306
"go.how.step1.title": "أنشئ حسابًا",
@@ -322,7 +324,7 @@ export const dict = {
322324
"go.faq.a2": "يتضمن Go النماذج المدرجة أدناه، مع حدود سخية وإتاحة موثوقة.",
323325
"go.faq.q3": "هل Go هو نفسه Zen؟",
324326
"go.faq.a3":
325-
"لا. Zen هو الدفع حسب الاستخدام، بينما يبدأ Go من $5 للشهر الأول، ثم $10/شهر، مع حدود سخية ووصول موثوق إلى نماذج المصدر المفتوح GLM-5.1 وGLM-5 و Kimi K2.5 وMiMo-V2-Pro وMiMo-V2-Omni و Qwen3.5 Plus و Qwen3.6 Plus و MiniMax M2.5 وMiniMax M2.7.",
327+
"لا. Zen هو الدفع حسب الاستخدام، بينما يبدأ Go من $5 للشهر الأول، ثم $10/شهر، مع حدود سخية ووصول موثوق إلى نماذج المصدر المفتوح GLM-5.1 وGLM-5 وKimi K2.5 وKimi K2.6 وMiMo-V2-Pro وMiMo-V2-Omni وQwen3.5 Plus وQwen3.6 Plus وMiniMax M2.5 وMiniMax M2.7.",
326328
"go.faq.q4": "كم تكلفة Go؟",
327329
"go.faq.a4.p1.beforePricing": "تكلفة Go",
328330
"go.faq.a4.p1.pricingLink": "$5 للشهر الأول",
@@ -345,7 +347,7 @@ export const dict = {
345347

346348
"go.faq.q9": "ما الفرق بين النماذج المجانية وGo؟",
347349
"go.faq.a9":
348-
"تشمل النماذج المجانية Big Pickle بالإضافة إلى النماذج الترويجية المتاحة في ذلك الوقت، مع حصة 200 طلب/يوم. يتضمن Go نماذج GLM-5.1 وGLM-5 وKimi K2.5 وMiMo-V2-Pro وMiMo-V2-Omni وQwen3.5 Plus وQwen3.6 Plus وMiniMax M2.5 وMiniMax M2.7 مع حصص طلبات أعلى مطبقة عبر نوافذ متجددة (5 ساعات، أسبوعيًا، وشهريًا)، تعادل تقريبًا 12 دولارًا كل 5 ساعات، و30 دولارًا في الأسبوع، و60 دولارًا في الشهر (تختلف أعداد الطلبات الفعلية حسب النموذج والاستخدام).",
350+
"تشمل النماذج المجانية Big Pickle بالإضافة إلى النماذج الترويجية المتاحة في ذلك الوقت، مع حصة 200 طلب/يوم. يتضمن Go نماذج GLM-5.1 وGLM-5 وKimi K2.5 وKimi K2.6 وMiMo-V2-Pro وMiMo-V2-Omni وQwen3.5 Plus وQwen3.6 Plus وMiniMax M2.5 وMiniMax M2.7 مع حصص طلبات أعلى مطبقة عبر نوافذ متجددة (5 ساعات، أسبوعيًا، وشهريًا)، تعادل تقريبًا 12 دولارًا كل 5 ساعات، و30 دولارًا في الأسبوع، و60 دولارًا في الشهر (تختلف أعداد الطلبات الفعلية حسب النموذج والاستخدام).",
349351

350352
"zen.api.error.rateLimitExceeded": "تم تجاوز حد الطلبات. يرجى المحاولة مرة أخرى لاحقًا.",
351353
"zen.api.error.modelNotSupported": "النموذج {{model}} غير مدعوم",

packages/console/app/src/i18n/br.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ export const dict = {
253253

254254
"go.title": "OpenCode Go | Modelos de codificação de baixo custo para todos",
255255
"go.meta.description":
256-
"O Go começa em $5 no primeiro mês, depois $10/mês, com limites generosos de solicitação de 5 horas para GLM-5.1, GLM-5, Kimi K2.5, MiMo-V2-Pro, MiMo-V2-Omni, Qwen3.5 Plus, Qwen3.6 Plus, MiniMax M2.5 e MiniMax M2.7.",
256+
"O Go começa em $5 no primeiro mês, depois $10/mês, com limites generosos de solicitação de 5 horas para GLM-5.1, GLM-5, Kimi K2.5, Kimi K2.6, MiMo-V2-Pro, MiMo-V2-Omni, Qwen3.5 Plus, Qwen3.6 Plus, MiniMax M2.5 e MiniMax M2.7.",
257257
"go.hero.title": "Modelos de codificação de baixo custo para todos",
258258
"go.hero.body":
259259
"O Go traz a codificação com agentes para programadores em todo o mundo. Oferecendo limites generosos e acesso confiável aos modelos de código aberto mais capazes, para que você possa construir com agentes poderosos sem se preocupar com custos ou disponibilidade.",
@@ -265,6 +265,8 @@ export const dict = {
265265
"go.cta.promo": "$5 no primeiro mês",
266266
"go.pricing.body":
267267
"Use com qualquer agente. $5 no primeiro mês, depois $10/mês. Recarregue o crédito se necessário. Cancele a qualquer momento.",
268+
"go.banner.badge": "3x",
269+
"go.banner.text": "Kimi K2.6: limite de uso 3x maior até 27 de abril",
268270
"go.graph.free": "Grátis",
269271
"go.graph.freePill": "Big Pickle e modelos gratuitos",
270272
"go.graph.go": "Go",
@@ -303,7 +305,7 @@ export const dict = {
303305
"go.problem.item2": "Limites generosos e acesso confiável",
304306
"go.problem.item3": "Feito para o maior número possível de programadores",
305307
"go.problem.item4":
306-
"Inclui GLM-5.1, GLM-5, Kimi K2.5, MiMo-V2-Pro, MiMo-V2-Omni, Qwen3.5 Plus, Qwen3.6 Plus, MiniMax M2.5 e MiniMax M2.7",
308+
"Inclui GLM-5.1, GLM-5, Kimi K2.5, Kimi K2.6, MiMo-V2-Pro, MiMo-V2-Omni, Qwen3.5 Plus, Qwen3.6 Plus, MiniMax M2.5 e MiniMax M2.7",
307309
"go.how.title": "Como o Go funciona",
308310
"go.how.body":
309311
"O Go começa em $5 no primeiro mês, depois $10/mês. Você pode usá-lo com o OpenCode ou qualquer agente.",
@@ -329,7 +331,7 @@ export const dict = {
329331
"go.faq.a2": "O Go inclui os modelos listados abaixo, com limites generosos e acesso confiável.",
330332
"go.faq.q3": "O Go é o mesmo que o Zen?",
331333
"go.faq.a3":
332-
"Não. Zen é pay-as-you-go, enquanto o Go começa em $5 no primeiro mês, depois $10/mês, com limites generosos e acesso confiável aos modelos open source GLM-5.1, GLM-5, Kimi K2.5, MiMo-V2-Pro, MiMo-V2-Omni, Qwen3.5 Plus, Qwen3.6 Plus, MiniMax M2.5 e MiniMax M2.7.",
334+
"Não. Zen é pay-as-you-go, enquanto o Go começa em $5 no primeiro mês, depois $10/mês, com limites generosos e acesso confiável aos modelos open source GLM-5.1, GLM-5, Kimi K2.5, Kimi K2.6, MiMo-V2-Pro, MiMo-V2-Omni, Qwen3.5 Plus, Qwen3.6 Plus, MiniMax M2.5 e MiniMax M2.7.",
333335
"go.faq.q4": "Quanto custa o Go?",
334336
"go.faq.a4.p1.beforePricing": "O Go custa",
335337
"go.faq.a4.p1.pricingLink": "$5 no primeiro mês",
@@ -353,7 +355,7 @@ export const dict = {
353355

354356
"go.faq.q9": "Qual a diferença entre os modelos gratuitos e o Go?",
355357
"go.faq.a9":
356-
"Os modelos gratuitos incluem Big Pickle e modelos promocionais disponíveis no momento, com uma cota de 200 requisições/dia. O Go inclui GLM-5.1, GLM-5, Kimi K2.5, MiMo-V2-Pro, MiMo-V2-Omni, Qwen3.5 Plus, Qwen3.6 Plus, MiniMax M2.5 e MiniMax M2.7 com cotas de requisição mais altas aplicadas em janelas móveis (5 horas, semanal e mensal), aproximadamente equivalentes a $12 por 5 horas, $30 por semana e $60 por mês (as contagens reais de requisições variam de acordo com o modelo e o uso).",
358+
"Os modelos gratuitos incluem Big Pickle e modelos promocionais disponíveis no momento, com uma cota de 200 requisições/dia. O Go inclui GLM-5.1, GLM-5, Kimi K2.5, Kimi K2.6, MiMo-V2-Pro, MiMo-V2-Omni, Qwen3.5 Plus, Qwen3.6 Plus, MiniMax M2.5 e MiniMax M2.7 com cotas de requisição mais altas aplicadas em janelas móveis (5 horas, semanal e mensal), aproximadamente equivalentes a $12 por 5 horas, $30 por semana e $60 por mês (as contagens reais de requisições variam de acordo com o modelo e o uso).",
357359

358360
"zen.api.error.rateLimitExceeded": "Limite de taxa excedido. Por favor, tente novamente mais tarde.",
359361
"zen.api.error.modelNotSupported": "Modelo {{model}} não suportado",

packages/console/app/src/i18n/da.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ export const dict = {
251251

252252
"go.title": "OpenCode Go | Kodningsmodeller til lav pris for alle",
253253
"go.meta.description":
254-
"Go starter ved $5 for den første måned, derefter $10/måned, med generøse 5-timers anmodningsgrænser for GLM-5.1, GLM-5, Kimi K2.5, MiMo-V2-Pro, MiMo-V2-Omni, Qwen3.5 Plus, Qwen3.6 Plus, MiniMax M2.5 og MiniMax M2.7.",
254+
"Go starter ved $5 for den første måned, derefter $10/måned, med generøse 5-timers anmodningsgrænser for GLM-5.1, GLM-5, Kimi K2.5, Kimi K2.6, MiMo-V2-Pro, MiMo-V2-Omni, Qwen3.5 Plus, Qwen3.6 Plus, MiniMax M2.5 og MiniMax M2.7.",
255255
"go.hero.title": "Kodningsmodeller til lav pris for alle",
256256
"go.hero.body":
257257
"Go bringer agentisk kodning til programmører over hele verden. Med generøse grænser og pålidelig adgang til de mest kapable open source-modeller, så du kan bygge med kraftfulde agenter uden at bekymre dig om omkostninger eller tilgængelighed.",
@@ -263,6 +263,8 @@ export const dict = {
263263
"go.cta.promo": "$5 første måned",
264264
"go.pricing.body":
265265
"Brug med enhver agent. $5 første måned, derefter $10/måned. Tank op med kredit efter behov. Afmeld når som helst.",
266+
"go.banner.badge": "3x",
267+
"go.banner.text": "Kimi K2.6: brugsgrænsen tredoblet til 27. april",
266268
"go.graph.free": "Gratis",
267269
"go.graph.freePill": "Big Pickle og gratis modeller",
268270
"go.graph.go": "Go",
@@ -300,7 +302,7 @@ export const dict = {
300302
"go.problem.item2": "Generøse grænser og pålidelig adgang",
301303
"go.problem.item3": "Bygget til så mange programmører som muligt",
302304
"go.problem.item4":
303-
"Inkluderer GLM-5.1, GLM-5, Kimi K2.5, MiMo-V2-Pro, MiMo-V2-Omni, Qwen3.5 Plus, Qwen3.6 Plus, MiniMax M2.5 og MiniMax M2.7",
305+
"Inkluderer GLM-5.1, GLM-5, Kimi K2.5, Kimi K2.6, MiMo-V2-Pro, MiMo-V2-Omni, Qwen3.5 Plus, Qwen3.6 Plus, MiniMax M2.5 og MiniMax M2.7",
304306
"go.how.title": "Hvordan Go virker",
305307
"go.how.body":
306308
"Go starter ved $5 for den første måned, derefter $10/måned. Du kan bruge det med OpenCode eller enhver agent.",
@@ -326,7 +328,7 @@ export const dict = {
326328
"go.faq.a2": "Go inkluderer modellerne nedenfor med generøse grænser og pålidelig adgang.",
327329
"go.faq.q3": "Er Go det samme som Zen?",
328330
"go.faq.a3":
329-
"Nej. Zen er pay-as-you-go, mens Go starter ved $5 for den første måned, derefter $10/måned, med generøse grænser og pålidelig adgang til open source-modellerne GLM-5.1, GLM-5, Kimi K2.5, MiMo-V2-Pro, MiMo-V2-Omni, Qwen3.5 Plus, Qwen3.6 Plus, MiniMax M2.5 og MiniMax M2.7.",
331+
"Nej. Zen er pay-as-you-go, mens Go starter ved $5 for den første måned, derefter $10/måned, med generøse grænser og pålidelig adgang til open source-modellerne GLM-5.1, GLM-5, Kimi K2.5, Kimi K2.6, MiMo-V2-Pro, MiMo-V2-Omni, Qwen3.5 Plus, Qwen3.6 Plus, MiniMax M2.5 og MiniMax M2.7.",
330332
"go.faq.q4": "Hvad koster Go?",
331333
"go.faq.a4.p1.beforePricing": "Go koster",
332334
"go.faq.a4.p1.pricingLink": "$5 første måned",
@@ -349,7 +351,7 @@ export const dict = {
349351

350352
"go.faq.q9": "Hvad er forskellen på gratis modeller og Go?",
351353
"go.faq.a9":
352-
"Gratis modeller inkluderer Big Pickle plus salgsfremmende modeller tilgængelige på det tidspunkt, med en kvote på 200 forespørgsler/dag. Go inkluderer GLM-5.1, GLM-5, Kimi K2.5, MiMo-V2-Pro, MiMo-V2-Omni, Qwen3.5 Plus, Qwen3.6 Plus, MiniMax M2.5 og MiniMax M2.7 med højere anmodningskvoter håndhævet over rullende vinduer (5-timers, ugentlig og månedlig), nogenlunde svarende til $12 pr. 5 timer, $30 pr. uge og $60 pr. måned (faktiske anmodningstal varierer efter model og brug).",
354+
"Gratis modeller inkluderer Big Pickle plus salgsfremmende modeller tilgængelige på det tidspunkt, med en kvote på 200 forespørgsler/dag. Go inkluderer GLM-5.1, GLM-5, Kimi K2.5, Kimi K2.6, MiMo-V2-Pro, MiMo-V2-Omni, Qwen3.5 Plus, Qwen3.6 Plus, MiniMax M2.5 og MiniMax M2.7 med højere anmodningskvoter håndhævet over rullende vinduer (5-timers, ugentlig og månedlig), nogenlunde svarende til $12 pr. 5 timer, $30 pr. uge og $60 pr. måned (faktiske anmodningstal varierer efter model og brug).",
353355

354356
"zen.api.error.rateLimitExceeded": "Hastighedsgrænse overskredet. Prøv venligst igen senere.",
355357
"zen.api.error.modelNotSupported": "Model {{model}} understøttes ikke",

0 commit comments

Comments
 (0)