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 — feat: initial datalake and stats site (#28666) · huer0625/opencode@5b02ac4

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .dockerignore
  • .github/workflows
    • deploy.yml
  • bun.lock
  • infra
    • app.ts
    • console.ts
    • lake.ts
    • secret.ts
    • stage.ts
    • stats.ts
  • package.json
  • packages
    • console
      • app
        • src/routes/zen/util
          • logger.ts
        • vite.config.ts
      • core/script
        • create-api-key.ts
      • function/src
        • log-processor.ts
      • resource
        • resource.node.ts
    • enterprise
      • vite.config.ts
    • stats
      • README.md
      • app
        • .gitignore
        • app.config.ts
        • package.json
        • src
          • app.css
          • app.tsx
          • asset
            • logo-ornate-dark.svg
            • logo-ornate-light.svg
          • entry-client.tsx
          • entry-server.tsx
          • global.d.ts
          • routes
            • api
              • health.ts
            • index.css
            • index.tsx
        • sst-env.d.ts
        • tsconfig.json
        • vite.config.ts
      • core
        • drizzle.config.ts
        • migrations
          • 20260522121617_common_dust
            • migration.sql
            • snapshot.json
          • 20260523110335_cool_vin_gonzales
            • migration.sql
            • snapshot.json
        • package.json
        • src
          • athena.ts
          • config.ts
          • database.ts
          • database
            • schema.ts
          • domain
            • geo.ts
            • home.ts
            • inference.ts
            • model.ts
            • provider.ts
            • stat.ts
          • index.ts
          • migrate.ts
          • resource.d.ts
          • runtime.ts
          • stat-sync.ts
        • sst-env.d.ts
        • tsconfig.json
      • server
        • Dockerfile
        • package.json
        • src
          • ingest.ts
          • resource.d.ts
          • router.ts
          • server.ts
          • shutdown.ts
          • stat-sync.ts
        • sst-env.d.ts
        • tsconfig.json
  • sst-env.d.ts
  • sst.config.ts

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

‎.dockerignore‎

Copy file name to clipboard
+12Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.git
2+
.opencode
3+
.sst
4+
.turbo
5+
.wrangler
6+
node_modules
7+
**/node_modules
8+
**/.output
9+
**/dist
10+
**/.turbo
11+
**/.vite
12+
**/coverage
Collapse file

‎.github/workflows/deploy.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/deploy.yml
+12Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,15 @@ on:
99

1010
concurrency: ${{ github.workflow }}-${{ github.ref }}
1111

12+
permissions:
13+
contents: read
14+
id-token: write
15+
1216
jobs:
1317
deploy:
18+
if: github.repository == 'anomalyco/opencode' && (github.ref_name == 'dev' || github.ref_name == 'production')
1419
runs-on: ubuntu-latest
20+
environment: ${{ github.ref_name }}
1521
steps:
1622
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
1723

@@ -21,6 +27,12 @@ jobs:
2127
with:
2228
node-version: "24"
2329

30+
- uses: aws-actions/configure-aws-credentials@7474bc4690e29a8392af63c5b98e7449536d5c3a # v4.3.1
31+
with:
32+
role-to-assume: ${{ vars.AWS_DEPLOY_ROLE_ARN }}
33+
role-session-name: opencode-${{ github.run_id }}
34+
aws-region: us-east-1
35+
2436
- run: bun sst deploy --stage=${{ github.ref_name }}
2537
env:
2638
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
Collapse file

‎bun.lock‎

Copy file name to clipboardExpand all lines: bun.lock
+112-1Lines changed: 112 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file

‎infra/app.ts‎

Copy file name to clipboardExpand all lines: infra/app.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const api = new sst.cloudflare.Worker("Api", {
3030
transform: {
3131
worker: (args) => {
3232
args.logpush = true
33-
if ($app.stage === "vimtor") return
33+
if ($app.stage === "vimtor" || $app.stage === "adam") return
3434
args.bindings = $resolve(args.bindings).apply((bindings) => [
3535
...bindings,
3636
{
Collapse file

‎infra/console.ts‎

Copy file name to clipboardExpand all lines: infra/console.ts
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
import { domain } from "./stage"
1+
import { deployAws, domain } from "./stage"
22
import { EMAILOCTOPUS_API_KEY } from "./app"
33
import { SECRET } from "./secret"
44

5+
const lake = deployAws ? await import("./lake") : undefined
6+
57
////////////////
68
// DATABASE
79
////////////////
@@ -240,7 +242,7 @@ const SALESFORCE_INSTANCE_URL = new sst.Secret("SALESFORCE_INSTANCE_URL")
240242

241243
const logProcessor = new sst.cloudflare.Worker("LogProcessor", {
242244
handler: "packages/console/function/src/log-processor.ts",
243-
link: [new sst.Secret("HONEYCOMB_API_KEY")],
245+
link: [SECRET.HoneycombApiKey, ...(lake?.lakeIngest ? [lake.lakeIngest] : [])],
244246
})
245247

246248
new sst.cloudflare.x.SolidStart("Console", {

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.