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(core): expose workspace adaptors to plugins (#21927) · githubhjs/opencode@bf50d1c

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages
    • opencode
      • migration/20260410174513_workspace-name
        • migration.sql
        • snapshot.json
      • src
        • cli/cmd/tui/component
          • dialog-workspace-create.tsx
        • control-plane
          • adaptors
            • index.ts
            • worktree.ts
          • types.ts
          • workspace.sql.ts
          • workspace.ts
        • plugin
          • index.ts
        • server/instance
          • middleware.ts
          • workspace.ts
      • test
        • control-plane
          • adaptors.test.ts
        • plugin
          • github-copilot-models.test.ts
          • workspace-adaptor.test.ts
    • plugin
      • src
        • example-workspace.ts
        • index.ts
      • tsconfig.json
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/opencode/migration/20260410174513_workspace-name/migration.sql‎

Copy file name to clipboard
+16Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
PRAGMA foreign_keys=OFF;--> statement-breakpoint
2+
CREATE TABLE `__new_workspace` (
3+
`id` text PRIMARY KEY,
4+
`type` text NOT NULL,
5+
`name` text DEFAULT '' NOT NULL,
6+
`branch` text,
7+
`directory` text,
8+
`extra` text,
9+
`project_id` text NOT NULL,
10+
CONSTRAINT `fk_workspace_project_id_project_id_fk` FOREIGN KEY (`project_id`) REFERENCES `project`(`id`) ON DELETE CASCADE
11+
);
12+
--> statement-breakpoint
13+
INSERT INTO `__new_workspace`(`id`, `type`, `branch`, `name`, `directory`, `extra`, `project_id`) SELECT `id`, `type`, `branch`, `name`, `directory`, `extra`, `project_id` FROM `workspace`;--> statement-breakpoint
14+
DROP TABLE `workspace`;--> statement-breakpoint
15+
ALTER TABLE `__new_workspace` RENAME TO `workspace`;--> statement-breakpoint
16+
PRAGMA foreign_keys=ON;

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.