GeezerVison is showing github.com — ci: format · major/opencode@38e8c42
File treeExpand file treeCollapse file tree Open diff view settings tui/internal/theme/themes
Some content is hiddenLarge Commits have some content hidden by default. Use the searchbox below for content that may be hidden. Dismiss bannerExpand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: .github/workflows/notify-discord.yml +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -2,7 +2,7 @@ name: discord | 2 | 2 |
| 3 | 3 | on: | 4 | 4 | release: | 5 | | - types: [published] # fires only when a release is published | | 5 | + types: [published] # fires only when a release is published | 6 | 6 |
| 7 | 7 | jobs: | 8 | 8 | notify: | |
Collapse file Copy file name to clipboardExpand all lines: .github/workflows/opencode.yml +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 24 | 24 | env: | 25 | 25 | OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }} | 26 | 26 | with: | 27 | | - model: opencode/sonic | | 27 | + model: opencode/sonic |
Collapse file Copy file name to clipboard +8-8Lines changed: 8 additions & 8 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 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" | 7 | 7 |
| 8 | 8 | export default function App() { | 9 | 9 | return ( | 10 | 10 | <Router | 11 | 11 | explicitLinks={true} | 12 | | - root={props => ( | | 12 | + root={(props) => ( | 13 | 13 | <MetaProvider> | 14 | 14 | <Title>opencode</Title> | 15 | 15 | <Meta name="description" content="opencode - The AI coding agent built for the terminal." /> | @@ -19,5 +19,5 @@ export default function App() { | 19 | 19 | > | 20 | 20 | <FileRoutes /> | 21 | 21 | </Router> | 22 | | - ); | | 22 | + ) | 23 | 23 | } |
Collapse file Copy file name to clipboardExpand all lines: cloud/app/src/component/icon.tsx +45-13Lines changed: 45 additions & 13 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -6,34 +6,66 @@ export function IconLogo(props: JSX.SvgSVGAttributes<SVGSVGElement>) { | 6 | 6 | <path d="M264.5 0H288.5V8.5H272.5V16.5H288.5V25H272.5V33H288.5V41.5H264.5V0Z" fill="currentColor" /> | 7 | 7 | <path d="M248.5 0H224.5V41.5H248.5V33H232.5V8.5H248.5V0Z" fill="currentColor" /> | 8 | 8 | <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 | + /> | 10 | 15 | <path d="M144.5 8.5H136.5V41.5H144.5V8.5Z" fill="currentColor" /> | 11 | 16 | <path d="M136.5 0H112.5V41.5H120.5V8.5H136.5V0Z" fill="currentColor" /> | 12 | 17 | <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 | + /> | 15 | 30 | <path d="M152.5 0H176.5V8.5H160.5V33H176.5V41.5H152.5V0Z" fill="currentColor" /> | 16 | 31 | </svg> | 17 | | - ); | | 32 | + ) | 18 | 33 | } | 19 | 34 |
| 20 | 35 | export function IconCopy(props: JSX.SvgSVGAttributes<SVGSVGElement>) { | 21 | 36 | 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> | 27 | 58 | </svg> | 28 | 59 | ) | 29 | 60 | } | 30 | 61 |
| 31 | 62 | export function IconCheck(props: JSX.SvgSVGAttributes<SVGSVGElement>) { | 32 | 63 | 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> | 37 | 69 | </svg> | 38 | 70 | ) | 39 | 71 | } |
Collapse file Copy file name to clipboard +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | // @refresh reload | 2 | | -import { mount, StartClient } from "@solidjs/start/client"; | | 2 | +import { mount, StartClient } from "@solidjs/start/client" | 3 | 3 |
| 4 | | -mount(() => <StartClient />, document.getElementById("app")!); | | 4 | +mount(() => <StartClient />, document.getElementById("app")!) |
Collapse file Copy file name to clipboard +25-23Lines changed: 25 additions & 23 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | // @refresh reload | 2 | 2 | import { createHandler, StartServer } from "@solidjs/start/server" | 3 | 3 |
| 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 Copy file name to clipboardExpand all lines: cloud/app/src/routes/index.tsx +3-4Lines changed: 3 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -64,9 +64,7 @@ export default function Home() { | 64 | 64 |
| 65 | 65 | <section data-component="cta"> | 66 | 66 | <div data-slot="left"> | 67 | | - <a href="/docs"> | 68 | | - Get Started | 69 | | - </a> | | 67 | + <a href="/docs">Get Started</a> | 70 | 68 | </div> | 71 | 69 | <div data-slot="right"> | 72 | 70 | <button data-copy data-slot="command"> | @@ -90,7 +88,8 @@ export default function Home() { | 90 | 88 | <strong>LSP enabled</strong> Automatically loads the right LSPs for the LLM | 91 | 89 | </li> | 92 | 90 | <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> | 94 | 93 | </li> | 95 | 94 | <li> | 96 | 95 | <strong>Multi-session</strong> Start multiple agents in parallel on the same project | |
Collapse file Copy file name to clipboardExpand all lines: cloud/app/src/routes/workspace.tsx +11-1Lines changed: 11 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -2,7 +2,17 @@ import "./workspace.css" | 2 | 2 | import { useAuthSession } from "~/context/auth.session" | 3 | 3 | import { IconLogo } from "../component/icon" | 4 | 4 | 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" | 6 | 16 | import { User } from "@opencode/cloud-core/user.js" | 7 | 17 | import { Actor } from "@opencode/cloud-core/actor.js" | 8 | 18 | import { getRequestEvent } from "solid-js/web" | |
Collapse file Copy file name to clipboardExpand all lines: cloud/app/src/routes/workspace/[id].tsx +44-45Lines changed: 44 additions & 45 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | import "./[id].css" | 2 | 2 | import { Billing } from "@opencode/cloud-core/billing.js" | 3 | 3 | 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" | 13 | 5 | import { createMemo, createSignal, For, Show } from "solid-js" | 14 | 6 | import { withActor } from "~/context/auth.withActor" | 15 | 7 | import { IconCopy, IconCheck } from "~/component/icon" | @@ -432,50 +424,57 @@ function PaymentsSection() { | 432 | 424 | const payments = createAsync(() => getPaymentsInfo(params.id)) | 433 | 425 | // const payments = () => dummyPayments | 434 | 426 |
| 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 | + ) | 469 | 464 | ) | 470 | 465 | } | 471 | 466 |
| 472 | | -export default function() { | | 467 | +export default function () { | 473 | 468 | return ( | 474 | 469 | <div data-page="workspace-[id]"> | 475 | 470 | <section data-component="title-section"> | 476 | 471 | <h1>Zen</h1> | 477 | 472 | <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 | + . | 479 | 478 | </p> | 480 | 479 | </section> | 481 | 480 |
| |
Collapse file Copy file name to clipboardExpand all lines: cloud/app/src/style/token/font.css +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 14 | 14 | --font-size-8xl: 6rem; | 15 | 15 | --font-size-9xl: 8rem; | 16 | 16 |
| 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; | 18 | 19 | --font-sans: var(--font-mono); | 19 | 20 | } |
|