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 — ci: format · major/opencode@38e8c42

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/workflows
    • notify-discord.yml
    • opencode.yml
  • cloud
    • app
      • src
        • app.tsx
        • component
          • icon.tsx
        • entry-client.tsx
        • entry-server.tsx
        • routes
          • index.tsx
          • workspace.tsx
          • workspace
            • [id].tsx
        • style/token
          • font.css
      • sst-env.d.ts
      • tsconfig.json
    • core
      • migrations/meta
        • 0000_snapshot.json
        • 0001_snapshot.json
        • _journal.json
      • src/util
        • fn.ts
      • sst-env.d.ts
    • function
      • sst-env.d.ts
    • resource
      • sst-env.d.ts
      • tsconfig.json
    • scripts
      • sst-env.d.ts
  • github
    • sst-env.d.ts
  • package.json
  • packages
    • function
      • sst-env.d.ts
    • opencode
      • src
        • file
          • fzf.ts
          • time.ts
        • plugin
          • index.ts
        • tool
          • edit.ts
          • registry.ts
          • todo.ts
      • sst-env.d.ts
      • test
        • bun.test.ts
      • tsconfig.json
    • plugin
      • src
        • index.ts
      • sst-env.d.ts
      • tsconfig.json
    • sdk
      • go
        • .github/workflows
          • ci.yml
        • .release-please-manifest.json
        • CHANGELOG.md
        • release-please-config.json
      • js
        • script
          • generate.ts
        • src
          • server.ts
        • sst-env.d.ts
        • tsconfig.json
    • tui/internal/theme/themes
      • vesper.json
    • web
      • config.mjs
      • src
        • components
          • Share.tsx
          • share
            • content-diff.module.css
            • content-error.module.css
            • content-error.tsx
            • copy-button.tsx
            • part.tsx
        • content/docs
          • cli.mdx
          • commands.mdx
          • config.mdx
          • formatters.mdx
          • gitlab.mdx
          • index.mdx
          • server.mdx
          • tui.mdx
          • zen.mdx
      • sst-env.d.ts
  • sdks/vscode
    • .vscode-test.mjs
    • esbuild.js
    • eslint.config.mjs
    • sst-env.d.ts
  • sst-env.d.ts
  • tsconfig.json

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

‎.github/workflows/notify-discord.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/notify-discord.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: discord
22

33
on:
44
release:
5-
types: [published] # fires only when a release is published
5+
types: [published] # fires only when a release is published
66

77
jobs:
88
notify:
Collapse file

‎.github/workflows/opencode.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/opencode.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ jobs:
2424
env:
2525
OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
2626
with:
27-
model: opencode/sonic
27+
model: opencode/sonic
Collapse file

‎cloud/app/src/app.tsx‎

Copy file name to clipboard
+8-8Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
import { MetaProvider, Title, Meta } from "@solidjs/meta";
2-
import { Router } from "@solidjs/router";
3-
import { FileRoutes } from "@solidjs/start/router";
4-
import { ErrorBoundary, Suspense } from "solid-js";
5-
import "@ibm/plex/css/ibm-plex.css";
6-
import "./app.css";
1+
import { MetaProvider, Title, Meta } from "@solidjs/meta"
2+
import { Router } from "@solidjs/router"
3+
import { FileRoutes } from "@solidjs/start/router"
4+
import { ErrorBoundary, Suspense } from "solid-js"
5+
import "@ibm/plex/css/ibm-plex.css"
6+
import "./app.css"
77

88
export default function App() {
99
return (
1010
<Router
1111
explicitLinks={true}
12-
root={props => (
12+
root={(props) => (
1313
<MetaProvider>
1414
<Title>opencode</Title>
1515
<Meta name="description" content="opencode - The AI coding agent built for the terminal." />
@@ -19,5 +19,5 @@ export default function App() {
1919
>
2020
<FileRoutes />
2121
</Router>
22-
);
22+
)
2323
}
Collapse file

‎cloud/app/src/component/icon.tsx‎

Copy file name to clipboardExpand all lines: cloud/app/src/component/icon.tsx
+45-13Lines changed: 45 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,34 +6,66 @@ export function IconLogo(props: JSX.SvgSVGAttributes<SVGSVGElement>) {
66
<path d="M264.5 0H288.5V8.5H272.5V16.5H288.5V25H272.5V33H288.5V41.5H264.5V0Z" fill="currentColor" />
77
<path d="M248.5 0H224.5V41.5H248.5V33H232.5V8.5H248.5V0Z" fill="currentColor" />
88
<path d="M256.5 8.5H248.5V33H256.5V8.5Z" fill="currentColor" />
9-
<path fill-rule="evenodd" clip-rule="evenodd" d="M184.5 0H216.5V41.5H184.5V0ZM208.5 8.5H192.5V33H208.5V8.5Z" fill="currentColor" />
9+
<path
10+
fill-rule="evenodd"
11+
clip-rule="evenodd"
12+
d="M184.5 0H216.5V41.5H184.5V0ZM208.5 8.5H192.5V33H208.5V8.5Z"
13+
fill="currentColor"
14+
/>
1015
<path d="M144.5 8.5H136.5V41.5H144.5V8.5Z" fill="currentColor" />
1116
<path d="M136.5 0H112.5V41.5H120.5V8.5H136.5V0Z" fill="currentColor" />
1217
<path d="M80.5 0H104.5V8.5H88.5V16.5H104.5V25H88.5V33H104.5V41.5H80.5V0Z" fill="currentColor" />
13-
<path fill-rule="evenodd" clip-rule="evenodd" d="M40.5 0H72.5V41.5H48.5V49.5H40.5V0ZM64.5 8.5H48.5V33H64.5V8.5Z" fill="currentColor" />
14-
<path fill-rule="evenodd" clip-rule="evenodd" d="M0.5 0H32.5V41.5955H0.5V0ZM24.5 8.5H8.5V33H24.5V8.5Z" fill="currentColor" />
18+
<path
19+
fill-rule="evenodd"
20+
clip-rule="evenodd"
21+
d="M40.5 0H72.5V41.5H48.5V49.5H40.5V0ZM64.5 8.5H48.5V33H64.5V8.5Z"
22+
fill="currentColor"
23+
/>
24+
<path
25+
fill-rule="evenodd"
26+
clip-rule="evenodd"
27+
d="M0.5 0H32.5V41.5955H0.5V0ZM24.5 8.5H8.5V33H24.5V8.5Z"
28+
fill="currentColor"
29+
/>
1530
<path d="M152.5 0H176.5V8.5H160.5V33H176.5V41.5H152.5V0Z" fill="currentColor" />
1631
</svg>
17-
);
32+
)
1833
}
1934

2035
export function IconCopy(props: JSX.SvgSVGAttributes<SVGSVGElement>) {
2136
return (
22-
<svg
23-
{...props}
24-
viewBox="0 0 512 512" >
25-
<rect width="336" height="336" x="128" y="128" fill="none" stroke="currentColor" stroke-linejoin="round" stroke-width="32" rx="57" ry="57"></rect>
26-
<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="m383.5 128l.5-24a56.16 56.16 0 0 0-56-56H112a64.19 64.19 0 0 0-64 64v216a56.16 56.16 0 0 0 56 56h24"></path>
37+
<svg {...props} viewBox="0 0 512 512">
38+
<rect
39+
width="336"
40+
height="336"
41+
x="128"
42+
y="128"
43+
fill="none"
44+
stroke="currentColor"
45+
stroke-linejoin="round"
46+
stroke-width="32"
47+
rx="57"
48+
ry="57"
49+
></rect>
50+
<path
51+
fill="none"
52+
stroke="currentColor"
53+
stroke-linecap="round"
54+
stroke-linejoin="round"
55+
stroke-width="32"
56+
d="m383.5 128l.5-24a56.16 56.16 0 0 0-56-56H112a64.19 64.19 0 0 0-64 64v216a56.16 56.16 0 0 0 56 56h24"
57+
></path>
2758
</svg>
2859
)
2960
}
3061

3162
export function IconCheck(props: JSX.SvgSVGAttributes<SVGSVGElement>) {
3263
return (
33-
<svg
34-
{...props}
35-
viewBox="0 0 24 24" >
36-
<path fill="currentColor" d="M9 16.17L5.53 12.7a.996.996 0 1 0-1.41 1.41l4.18 4.18c.39.39 1.02.39 1.41 0L20.29 7.71a.996.996 0 1 0-1.41-1.41z"></path>
64+
<svg {...props} viewBox="0 0 24 24">
65+
<path
66+
fill="currentColor"
67+
d="M9 16.17L5.53 12.7a.996.996 0 1 0-1.41 1.41l4.18 4.18c.39.39 1.02.39 1.41 0L20.29 7.71a.996.996 0 1 0-1.41-1.41z"
68+
></path>
3769
</svg>
3870
)
3971
}
Collapse file

‎cloud/app/src/entry-client.tsx‎

Copy file name to clipboard
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// @refresh reload
2-
import { mount, StartClient } from "@solidjs/start/client";
2+
import { mount, StartClient } from "@solidjs/start/client"
33

4-
mount(() => <StartClient />, document.getElementById("app")!);
4+
mount(() => <StartClient />, document.getElementById("app")!)
Collapse file

‎cloud/app/src/entry-server.tsx‎

Copy file name to clipboard
+25-23Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,28 @@
11
// @refresh reload
22
import { createHandler, StartServer } from "@solidjs/start/server"
33

4-
5-
export default createHandler(() => (
6-
<StartServer
7-
document={({ assets, children, scripts }) => (
8-
<html lang="en">
9-
<head>
10-
<meta charset="utf-8" />
11-
<meta name="viewport" content="width=device-width, initial-scale=1" />
12-
<link rel="icon" href="/favicon.svg" />
13-
<meta property="og:image" content="/social-share.png" />
14-
<meta property="twitter:image" content="/social-share.png" />
15-
{assets}
16-
</head>
17-
<body>
18-
<div id="app">{children}</div>
19-
{scripts}
20-
</body>
21-
</html>
22-
)}
23-
/>
24-
), {
25-
mode: "async",
26-
})
4+
export default createHandler(
5+
() => (
6+
<StartServer
7+
document={({ assets, children, scripts }) => (
8+
<html lang="en">
9+
<head>
10+
<meta charset="utf-8" />
11+
<meta name="viewport" content="width=device-width, initial-scale=1" />
12+
<link rel="icon" href="/favicon.svg" />
13+
<meta property="og:image" content="/social-share.png" />
14+
<meta property="twitter:image" content="/social-share.png" />
15+
{assets}
16+
</head>
17+
<body>
18+
<div id="app">{children}</div>
19+
{scripts}
20+
</body>
21+
</html>
22+
)}
23+
/>
24+
),
25+
{
26+
mode: "async",
27+
},
28+
)
Collapse file

‎cloud/app/src/routes/index.tsx‎

Copy file name to clipboardExpand all lines: cloud/app/src/routes/index.tsx
+3-4Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ export default function Home() {
6464

6565
<section data-component="cta">
6666
<div data-slot="left">
67-
<a href="/docs">
68-
Get Started
69-
</a>
67+
<a href="/docs">Get Started</a>
7068
</div>
7169
<div data-slot="right">
7270
<button data-copy data-slot="command">
@@ -90,7 +88,8 @@ export default function Home() {
9088
<strong>LSP enabled</strong> Automatically loads the right LSPs for the LLM
9189
</li>
9290
<li>
93-
<strong>opencode zen</strong> A <a href="/docs/zen">curated list of models</a> provided by opencode <label>New</label>
91+
<strong>opencode zen</strong> A <a href="/docs/zen">curated list of models</a> provided by opencode{" "}
92+
<label>New</label>
9493
</li>
9594
<li>
9695
<strong>Multi-session</strong> Start multiple agents in parallel on the same project
Collapse file

‎cloud/app/src/routes/workspace.tsx‎

Copy file name to clipboardExpand all lines: cloud/app/src/routes/workspace.tsx
+11-1Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,17 @@ import "./workspace.css"
22
import { useAuthSession } from "~/context/auth.session"
33
import { IconLogo } from "../component/icon"
44
import { withActor } from "~/context/auth.withActor"
5-
import { query, action, redirect, createAsync, RouteSectionProps, Navigate, useNavigate, useParams, A } from "@solidjs/router"
5+
import {
6+
query,
7+
action,
8+
redirect,
9+
createAsync,
10+
RouteSectionProps,
11+
Navigate,
12+
useNavigate,
13+
useParams,
14+
A,
15+
} from "@solidjs/router"
616
import { User } from "@opencode/cloud-core/user.js"
717
import { Actor } from "@opencode/cloud-core/actor.js"
818
import { getRequestEvent } from "solid-js/web"
Collapse file

‎cloud/app/src/routes/workspace/[id].tsx‎

Copy file name to clipboardExpand all lines: cloud/app/src/routes/workspace/[id].tsx
+44-45Lines changed: 44 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,7 @@
11
import "./[id].css"
22
import { Billing } from "@opencode/cloud-core/billing.js"
33
import { Key } from "@opencode/cloud-core/key.js"
4-
import {
5-
json,
6-
query,
7-
action,
8-
useParams,
9-
useAction,
10-
createAsync,
11-
useSubmission,
12-
} from "@solidjs/router"
4+
import { json, query, action, useParams, useAction, createAsync, useSubmission } from "@solidjs/router"
135
import { createMemo, createSignal, For, Show } from "solid-js"
146
import { withActor } from "~/context/auth.withActor"
157
import { IconCopy, IconCheck } from "~/component/icon"
@@ -432,50 +424,57 @@ function PaymentsSection() {
432424
const payments = createAsync(() => getPaymentsInfo(params.id))
433425
// const payments = () => dummyPayments
434426

435-
return payments() && payments()!.length > 0 && (
436-
<section data-component="payments-section">
437-
<div data-slot="section-title">
438-
<h2>Payments History</h2>
439-
<p>Recent payment transactions.</p>
440-
</div>
441-
<div data-slot="payments-table">
442-
<table data-slot="payments-table-element">
443-
<thead>
444-
<tr>
445-
<th>Date</th>
446-
<th>Payment ID</th>
447-
<th>Amount</th>
448-
</tr>
449-
</thead>
450-
<tbody>
451-
<For each={payments()!}>
452-
{(payment) => {
453-
const date = new Date(payment.timeCreated)
454-
return (
455-
<tr>
456-
<td data-slot="payment-date" title={formatDateUTC(date)}>
457-
{formatDateForTable(date)}
458-
</td>
459-
<td data-slot="payment-id">{payment.id}</td>
460-
<td data-slot="payment-amount">${((payment.amount ?? 0) / 100000000).toFixed(2)}</td>
461-
</tr>
462-
)
463-
}}
464-
</For>
465-
</tbody>
466-
</table>
467-
</div>
468-
</section>
427+
return (
428+
payments() &&
429+
payments()!.length > 0 && (
430+
<section data-component="payments-section">
431+
<div data-slot="section-title">
432+
<h2>Payments History</h2>
433+
<p>Recent payment transactions.</p>
434+
</div>
435+
<div data-slot="payments-table">
436+
<table data-slot="payments-table-element">
437+
<thead>
438+
<tr>
439+
<th>Date</th>
440+
<th>Payment ID</th>
441+
<th>Amount</th>
442+
</tr>
443+
</thead>
444+
<tbody>
445+
<For each={payments()!}>
446+
{(payment) => {
447+
const date = new Date(payment.timeCreated)
448+
return (
449+
<tr>
450+
<td data-slot="payment-date" title={formatDateUTC(date)}>
451+
{formatDateForTable(date)}
452+
</td>
453+
<td data-slot="payment-id">{payment.id}</td>
454+
<td data-slot="payment-amount">${((payment.amount ?? 0) / 100000000).toFixed(2)}</td>
455+
</tr>
456+
)
457+
}}
458+
</For>
459+
</tbody>
460+
</table>
461+
</div>
462+
</section>
463+
)
469464
)
470465
}
471466

472-
export default function() {
467+
export default function () {
473468
return (
474469
<div data-page="workspace-[id]">
475470
<section data-component="title-section">
476471
<h1>Zen</h1>
477472
<p>
478-
Curated list of models provided by opencode. <a target="_blank" href="/docs/zen">Learn more</a>.
473+
Curated list of models provided by opencode.{" "}
474+
<a target="_blank" href="/docs/zen">
475+
Learn more
476+
</a>
477+
.
479478
</p>
480479
</section>
481480

Collapse file

‎cloud/app/src/style/token/font.css‎

Copy file name to clipboardExpand all lines: cloud/app/src/style/token/font.css
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ body {
1414
--font-size-8xl: 6rem;
1515
--font-size-9xl: 8rem;
1616

17-
--font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
17+
--font-mono:
18+
"IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
1819
--font-sans: var(--font-mono);
1920
}

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.