GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — chore: generate · mathstuf/opencode@4194d55

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .opencode/skills/opencode-drive
    • SKILL.md
  • packages
    • ai
      • src
        • cache-policy.ts
        • protocols
          • openai-chat.ts
        • route
          • client.ts
        • tool.ts
      • test
        • fixtures/recordings
          • anthropic-messages-cache
            • keeps-a-long-tool-turn-inside-the-cache-lookback.json
          • bedrock-converse-cache
            • writes-then-reads-cachepoint-on-identical-second-call.json
          • google-images
            • generates-an-image.json
          • openai-images
            • generates-an-image.json
          • openai-responses-images
            • generates-and-edits-an-image-with-the-hosted-tool.json
          • openrouter-reasoning.json
          • pdf
            • anthropic-tool-result.json
            • anthropic-user-input.json
            • bedrock-tool-result.json
            • bedrock-user-input.json
            • gemini-tool-result.json
            • gemini-user-input.json
            • openai-tool-result.json
            • openai-user-input.json
            • xai-tool-result.json
            • xai-user-input.json
          • vercel-ai-gateway-reasoning.json
          • xai-images
            • generates-an-image.json
        • provider
          • bedrock-converse.test.ts
          • openai-compatible-chat.test.ts
    • app
      • e2e
        • performance/timeline-stability
          • interaction.spec.ts
        • regression
          • cross-server-tab-close.spec.ts
          • remote-session-settings.spec.ts
          • remote-tab-busy.spec.ts
          • review-terminal-stacked.spec.ts
          • session-timeline-projection.spec.ts
          • tab-navigate-mousedown.spec.ts
        • smoke
          • session-timeline.fixture.ts
        • utils
          • mock-server.ts
          • sse-transport.ts
      • index.html
      • src
        • app.tsx
        • components
          • settings-v2
            • providers.tsx
          • status-popover-body.tsx
          • titlebar.tsx
        • context
          • directory-sync.ts
          • global-sync
            • bootstrap.ts
            • event-reducer.ts
            • home-session-index.test.ts
            • types.ts
          • server-session.test.ts
          • server-session.ts
          • server-sync.tsx
          • terminal.tsx
        • pages/session
          • timeline
            • message-timeline.tsx
          • v2
            • review-diff-kinds.test.ts
        • types.ts
    • client
      • script
        • build.ts
      • src
        • contract.ts
        • effect
          • api
            • .httpapi-codegen.json
          • generated
            • .httpapi-codegen.json
        • promise
          • generated
            • .httpapi-codegen.json
          • service.ts
      • test/fixture
        • service.ts
    • cli
      • script
        • postinstall.mjs
        • service-smoke.ts
      • src
        • commands/handlers
          • import.ts
          • pair.ts
        • config
          • migrate.ts
        • run
          • noninteractive.ts
        • services
          • server-connection.ts
          • update-preflight.tsx
          • updater.ts
        • ui
          • timeline.tsx
      • test
        • config.test.ts
        • drive
          • mini-interactive.drive.mjs
        • import-export.test.ts
      • vite.node.config.ts
    • codemode/test
      • fixtures
        • openapi-happy-path.json
        • opencode-v2-openapi.json
      • string-core-test262.test.ts
      • string-regexp-test262.test.ts
      • string-search-test262.test.ts
    • httpapi-codegen/src
      • index.ts
    • merman/src
      • flowchart
        • flowchart.test.ts
        • layout.ts
      • palette.test.ts
    • plugin/src
      • README.md
      • effect
        • tool.ts
      • promise
        • tool.ts
      • v1
        • tui.ts
    • protocol
      • openapi.json
      • src/groups
        • question.ts
        • session.ts
    • schema/test
      • contract-hygiene.test.ts
      • v1-isolation.test.ts
    • sdk-next/test
      • embedded.test.ts
    • server
      • src
        • handlers
          • shell.ts
        • options.ts
        • request-tracing.ts
        • service-status.ts
      • test
        • options.test.ts
    • simulation
      • src
        • backend
          • index.ts
          • simulated-provider.ts
        • frontend
          • simulation.ts
      • test
        • frontend-server.test.ts
        • simulated-provider.test.ts
    • theme/src/tui
      • resolve.ts
    • tui
      • src
        • component
          • dialog-move-session.tsx
        • context
          • data.tsx
        • feature-plugins/system/storybook
          • session-tabs.tsx
        • mini
          • footer.command.tsx
          • runtime.queue.ts
          • runtime.ts
          • stream-v2.fragment.ts
          • stream-v2.transport.ts
        • plugin
          • discovery.ts
          • render.tsx
        • prompt
          • mention.ts
        • routes/session
          • index.tsx
          • rows.ts
          • thinking-syntax.ts
        • ui
          • dialog-export-options.tsx
        • util
          • diff.ts
      • test
        • cli/tui
          • data.test.tsx
          • dialog-select.test.tsx
          • use-event.test.tsx
        • feature-plugins
          • prompt-footer.test.tsx
        • fixture
          • tui-client.ts
        • mini
          • fixture
            • catalog.ts
          • stream-v2.transport.test.ts
          • stream.test.ts
        • plugin-discovery.test.ts
        • plugin-hot-reload.test.tsx
        • prompt
          • history.test.ts
        • theme/v2
          • component.test.ts
          • resolve.test.ts
        • util
          • form.test.ts
          • path-format.test.ts
          • permission.test.ts
    • updates
      • src
        • index.test.ts
        • index.ts
      • wrangler.jsonc
    • www
      • content/docs
        • (Configure)
          • agents.mdx
          • attachments.mdx
          • commands.mdx
          • compaction.mdx
          • formatters.mdx
          • instructions.mdx
          • lsp.mdx
          • mcp-servers.mdx
          • models.mdx
          • permissions.mdx
          • providers.mdx
          • references.mdx
          • sharing.mdx
          • skills.mdx
          • snapshots.mdx
          • warming.mdx
        • build
          • client.mdx
          • index.mdx
          • plugins.mdx
          • sdk.mdx
        • config.mdx
        • index.mdx
        • migrate-v1.mdx
      • openapi.json
      • public
        • openapi.json
      • wrangler.jsonc
  • plans
    • config-normalization.md
  • script
    • ast-grep/rule-tests/__snapshots__
      • no-drizzle-column-name-snapshot.yml
      • no-effect-die-string-snapshot.yml
      • no-import-alias-snapshot.yml
      • no-json-parse-cast-snapshot.yml
      • no-nested-effect-service-yield-snapshot.yml
      • no-star-import-snapshot.yml
    • update-artifact.ts
  • specs/v2
    • catalog-config-plugin-lifecycle.md

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.opencode/skills/opencode-drive/SKILL.md‎

Copy file name to clipboardExpand all lines: .opencode/skills/opencode-drive/SKILL.md
-1Lines changed: 0 additions & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -251,4 +251,3 @@ opencode-drive stop --name demo
251251
```bash
252252
opencode-drive dir --name demo
253253
```
254-
Collapse file

‎packages/ai/src/cache-policy.ts‎

Copy file name to clipboardExpand all lines: packages/ai/src/cache-policy.ts
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ const countHints = (request: LLMRequest) =>
133133

134134
export const applyCachePolicy = (request: LLMRequest): LLMRequest => {
135135
if (!RESPECTS_INLINE_HINTS.has(request.model.route.id)) return request
136-
if (request.model.route.id === "openrouter" && (request.cache === undefined || request.cache === "auto")) return request
136+
if (request.model.route.id === "openrouter" && (request.cache === undefined || request.cache === "auto"))
137+
return request
137138
const policy = resolve(request.cache)
138139
if (!policy.tools && !policy.system && !policy.messages) return request
139140

Collapse file

‎packages/ai/src/protocols/openai-chat.ts‎

Copy file name to clipboardExpand all lines: packages/ai/src/protocols/openai-chat.ts
+2-5Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -709,9 +709,7 @@ const step = (state: ParserState, event: OpenAIChatEvent) =>
709709
Boolean(delta?.content) ||
710710
reasoning !== undefined ||
711711
(Array.isArray(delta?.reasoning_details) && delta.reasoning_details.length > 0) ||
712-
toolDeltas.some(
713-
(tool) => Boolean(tool.id) || Boolean(tool.function?.name) || Boolean(tool.function?.arguments),
714-
)
712+
toolDeltas.some((tool) => Boolean(tool.id) || Boolean(tool.function?.name) || Boolean(tool.function?.arguments))
715713
if (state.finishReason !== undefined) {
716714
if (hasLateContent)
717715
return yield* ProviderShared.eventError(ADAPTER, "OpenAI Chat received content after the finish reason")
@@ -751,8 +749,7 @@ const step = (state: ParserState, event: OpenAIChatEvent) =>
751749
const fallback = toolDeltas.length > 1 ? position : (latestToolIndex ?? position)
752750
const fallbackTool = tools[fallback] ?? pendingTools[fallback]
753751
const index =
754-
tool.index ?? matched ??
755-
(tool.id && fallbackTool?.id && fallbackTool.id !== tool.id ? nextToolIndex : fallback)
752+
tool.index ?? matched ?? (tool.id && fallbackTool?.id && fallbackTool.id !== tool.id ? nextToolIndex : fallback)
756753
const current = tools[index]
757754
const pending = pendingTools[index]
758755
const id = current?.id ?? pending?.id ?? (tool.id || undefined)
Collapse file

‎packages/ai/src/route/client.ts‎

Copy file name to clipboardExpand all lines: packages/ai/src/route/client.ts
+1-7Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -255,13 +255,7 @@ const requireTerminalEvent = (route: string) => (events: Stream.Stream<LLMEvent,
255255
if (LLMEvent.is.finish(event) || LLMEvent.is.providerError(event)) terminal = true
256256
return Effect.succeed(event)
257257
}),
258-
Stream.onEnd(
259-
Effect.suspend(() =>
260-
terminal
261-
? Effect.void
262-
: Effect.fail(incompleteStreamError(route)),
263-
),
264-
),
258+
Stream.onEnd(Effect.suspend(() => (terminal ? Effect.void : Effect.fail(incompleteStreamError(route))))),
265259
)
266260
})
267261

Collapse file

‎packages/ai/src/tool.ts‎

Copy file name to clipboardExpand all lines: packages/ai/src/tool.ts
+2-7Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
import { Effect, JsonSchema, Schema } from "effect"
22
import { Tool } from "@opencode-ai/schema/tool"
3-
import type {
4-
ToolCallPart,
5-
ToolDefinition as ToolDefinitionClass,
6-
ToolOutput as ToolOutputType,
7-
} from "./schema"
3+
import type { ToolCallPart, ToolDefinition as ToolDefinitionClass, ToolOutput as ToolOutputType } from "./schema"
84
import { ToolDefinition, ToolFailure, ToolOutput } from "./schema"
95

106
/**
@@ -244,8 +240,7 @@ const project = (
244240
): ToolOutputType =>
245241
ToolOutput.make(
246242
toStructuredOutput?.(output) ?? output,
247-
toModelOutput?.({ id, parameters, output }) ??
248-
(typeof output === "string" ? [{ type: "text", text: output }] : []),
243+
toModelOutput?.({ id, parameters, output }) ?? (typeof output === "string" ? [{ type: "text", text: output }] : []),
249244
)
250245

251246
export { ToolFailure }
Collapse file

‎packages/ai/test/fixtures/recordings/anthropic-messages-cache/keeps-a-long-tool-turn-inside-the-cache-lookback.json‎

Copy file name to clipboardExpand all lines: packages/ai/test/fixtures/recordings/anthropic-messages-cache/keeps-a-long-tool-turn-inside-the-cache-lookback.json
+1-7Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
{
22
"version": 1,
33
"metadata": {
4-
"tags": [
5-
"prefix:anthropic-messages-cache",
6-
"provider:anthropic",
7-
"protocol:anthropic-messages",
8-
"cache",
9-
"tool"
10-
],
4+
"tags": ["prefix:anthropic-messages-cache", "provider:anthropic", "protocol:anthropic-messages", "cache", "tool"],
115
"name": "anthropic-messages-cache/keeps-a-long-tool-turn-inside-the-cache-lookback",
126
"recordedAt": "2026-07-24T16:22:29.494Z"
137
},
Collapse file

‎packages/ai/test/fixtures/recordings/bedrock-converse-cache/writes-then-reads-cachepoint-on-identical-second-call.json‎

Copy file name to clipboardExpand all lines: packages/ai/test/fixtures/recordings/bedrock-converse-cache/writes-then-reads-cachepoint-on-identical-second-call.json
+1-6Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
{
22
"version": 1,
33
"metadata": {
4-
"tags": [
5-
"prefix:bedrock-converse-cache",
6-
"provider:amazon-bedrock",
7-
"protocol:bedrock-converse",
8-
"cache"
9-
],
4+
"tags": ["prefix:bedrock-converse-cache", "provider:amazon-bedrock", "protocol:bedrock-converse", "cache"],
105
"name": "bedrock-converse-cache/writes-then-reads-cachepoint-on-identical-second-call",
116
"recordedAt": "2026-07-23T02:29:10.955Z"
127
},
Collapse file

‎packages/ai/test/fixtures/recordings/google-images/generates-an-image.json‎

Copy file name to clipboardExpand all lines: packages/ai/test/fixtures/recordings/google-images/generates-an-image.json
+1-5Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
{
22
"version": 1,
33
"metadata": {
4-
"tags": [
5-
"prefix:google-images",
6-
"provider:google",
7-
"protocol:google-images"
8-
],
4+
"tags": ["prefix:google-images", "provider:google", "protocol:google-images"],
95
"name": "google-images/generates-an-image",
106
"recordedAt": "2026-07-19T16:05:51.868Z"
117
},
Collapse file

‎packages/ai/test/fixtures/recordings/openai-images/generates-an-image.json‎

Copy file name to clipboardExpand all lines: packages/ai/test/fixtures/recordings/openai-images/generates-an-image.json
+1-5Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
{
22
"version": 1,
33
"metadata": {
4-
"tags": [
5-
"prefix:openai-images",
6-
"provider:openai",
7-
"protocol:openai-images"
8-
],
4+
"tags": ["prefix:openai-images", "provider:openai", "protocol:openai-images"],
95
"name": "openai-images/generates-an-image",
106
"recordedAt": "2026-07-19T14:41:43.188Z"
117
},
Collapse file

‎packages/ai/test/fixtures/recordings/openai-responses-images/generates-and-edits-an-image-with-the-hosted-tool.json‎

Copy file name to clipboardExpand all lines: packages/ai/test/fixtures/recordings/openai-responses-images/generates-and-edits-an-image-with-the-hosted-tool.json
+1-5Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
{
22
"version": 1,
33
"metadata": {
4-
"tags": [
5-
"prefix:openai-responses-images",
6-
"provider:openai",
7-
"protocol:openai-responses"
8-
],
4+
"tags": ["prefix:openai-responses-images", "provider:openai", "protocol:openai-responses"],
95
"name": "openai-responses-images/generates-and-edits-an-image-with-the-hosted-tool",
106
"recordedAt": "2026-07-19T14:57:16.284Z"
117
},

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.