Screenshots for anomalyco/opencode#52872
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "info": { | |
| "id": "ses_f31115cbaffeD0spjjBM6eGJb5", | |
| "projectID": "2dd8b7ad9348b9992d96803eed7fe6c99ddee575", | |
| "agent": "build", | |
| "model": { | |
| "id": "claude-opus-5-5", | |
| "providerID": "console-anthropic", | |
| "variant": "medium" | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
| { | |
| "$schema": "https://opencode.ai/config.json", | |
| "mcp": { | |
| "servers": { | |
| "browser-control": { | |
| "type": "local", | |
| "command": [ | |
| "ssh", | |
| "-T", | |
| "-o", "BatchMode=yes", |
Status: Planned for dev.
OpenCode V1 and OpenCode V2 read configuration from the same global and project paths. OpenCode V2 commands continue to
write native V2 fields. A user can therefore start with a valid V1 file, run a V2 command such as opencode2 mcp add, and
produce a mixed document that V2 accepts but V1 cannot load.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import "./env.js"; | |
| import { AbsolutePath, Model, Provider } from "@opencode-ai/sdk-next"; | |
| import { Cause, Deferred, Effect, Stream } from "effect"; | |
| import { startCli } from "./cli.js"; | |
| import { createInlineOpenCode } from "./inline-opencode.js"; | |
| const location = { directory: AbsolutePath.make(process.env.QBOT_LOCATION?.trim() || process.cwd()) }; | |
| const modelName = process.env.QBOT_MODEL?.trim() || "openai/gpt-5.6-terra"; | |
| const timeoutSeconds = Number(process.env.QBOT_TIMEOUT_SECONDS ?? "600"); | |
| const timeoutMs = (Number.isFinite(timeoutSeconds) && timeoutSeconds > 0 ? timeoutSeconds : 600) * 1000; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { useLoaderData, Link, useSearchParams } from 'remix'; | |
| import { parseISO, format } from 'date-fns'; | |
| import groupBy from 'lodash/groupBy'; | |
| let PAGE_SIZE = 5; | |
| function safeParseInt(str) { | |
| let parsed = parseInt(str); | |
| return isNaN(parsed) ? 0 : parsed; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Uses Buffer from https://github.com/feross/buffer | |
| function toArrayBuffer(buffer) { | |
| return buffer.buffer.slice( | |
| buffer.byteOffset, | |
| buffer.byteOffset + buffer.byteLength | |
| ); | |
| } | |
| async function run() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const async_hooks = require('async_hooks'); | |
| let store = new Map(); | |
| let promiseStorageHook = async_hooks.createHook({ | |
| init(id, type, triggerId, resource) { | |
| if (store.get(triggerId)) { | |
| if (type === 'PROMISE') { | |
| store.set(id, store.get(triggerId)); | |
| } |
NewerOlder