Explorar o código

fix(cli): use hosted updater API (#38223)

Co-authored-by: Dax Raad <d@ironbay.co>
opencode-agent[bot] hai 3 semanas
pai
achega
80dc21d8f7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/cli/src/services/updater.ts

+ 1 - 1
packages/cli/src/services/updater.ts

@@ -95,7 +95,7 @@ export const layer = Layer.effect(
       const response = yield* Effect.tryPromise({
         try: () =>
           fetch(
-            `https://registry.npmjs.org/${encodeURIComponent(packageName)}/${encodeURIComponent(OPENCODE_CHANNEL)}`,
+            `https://update.opencode.ai/api/${encodeURIComponent(channel)}/cli/npm`,
             { headers: { "User-Agent": `opencode/${OPENCODE_VERSION}` }, signal: AbortSignal.timeout(10_000) },
           ),
         catch: (cause) => new Error("Failed to check for updates", { cause }),