@heidi-dang/oh-my-opencode 3.11.0 → 3.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -41,6 +41,7 @@ export * from "./session-utils";
41
41
  export * from "./tmux";
42
42
  export * from "./model-suggestion-retry";
43
43
  export * from "./opencode-server-auth";
44
+ export * from "./ygka-interceptor";
44
45
  export * from "./opencode-http-api";
45
46
  export * from "./port-utils";
46
47
  export * from "./git-worktree";
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Injects the YGKA interceptor into the OpenCode SDK client.
3
+ */
4
+ export declare function injectYGKAInterceptor(client: unknown): void;
@@ -0,0 +1,19 @@
1
+ export interface YGKAConfig {
2
+ access_token?: string;
3
+ session_token?: string;
4
+ browser_name?: string;
5
+ }
6
+ /**
7
+ * YGKATransport handles communication with ChatGPT using the reverse-engineered
8
+ * session-based approach (unofficial API), similar to YGKA.
9
+ */
10
+ export declare class YGKATransport {
11
+ private config;
12
+ private readonly configPath;
13
+ constructor();
14
+ private loadConfig;
15
+ isConfigured(): boolean;
16
+ queryStream(prompt: string): Promise<Response>;
17
+ query(prompt: string): Promise<string>;
18
+ private refreshAccessToken;
19
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heidi-dang/oh-my-opencode",
3
- "version": "3.11.0",
3
+ "version": "3.12.0",
4
4
  "description": "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -21,7 +21,7 @@
21
21
  "./schema.json": "./dist/oh-my-opencode.schema.json"
22
22
  },
23
23
  "scripts": {
24
- "build": "bun build src/index.ts --outdir dist --target bun --format esm --external @ast-grep/napi && tsc --emitDeclarationOnly && bun build src/cli/index.ts --outdir dist/cli --target bun --format esm --external @ast-grep/napi && bun run build:schema",
24
+ "build": "bun build src/index.ts --outdir dist --target bun --format esm --external @ast-grep/napi --external playwright && tsc --emitDeclarationOnly && bun build src/cli/index.ts --outdir dist/cli --target bun --format esm --external @ast-grep/napi --external playwright && bun run build:schema",
25
25
  "build:all": "bun run build && bun run build:binaries",
26
26
  "build:binaries": "bun run script/build-binaries.ts",
27
27
  "build:schema": "bun run script/build-schema.ts",
@@ -72,20 +72,21 @@
72
72
  "@types/js-yaml": "^4.0.9",
73
73
  "@types/picomatch": "^3.0.2",
74
74
  "bun-types": "1.3.6",
75
+ "playwright": "^1.58.2",
75
76
  "typescript": "^5.7.3"
76
77
  },
77
78
  "optionalDependencies": {
78
- "@heidi-dang/oh-my-opencode-darwin-arm64": "3.11.0",
79
- "@heidi-dang/oh-my-opencode-darwin-x64": "3.11.0",
80
- "@heidi-dang/oh-my-opencode-darwin-x64-baseline": "3.11.0",
81
- "@heidi-dang/oh-my-opencode-linux-arm64": "3.11.0",
82
- "@heidi-dang/oh-my-opencode-linux-arm64-musl": "3.11.0",
83
- "@heidi-dang/oh-my-opencode-linux-x64": "3.11.0",
84
- "@heidi-dang/oh-my-opencode-linux-x64-baseline": "3.11.0",
85
- "@heidi-dang/oh-my-opencode-linux-x64-musl": "3.11.0",
86
- "@heidi-dang/oh-my-opencode-linux-x64-musl-baseline": "3.11.0",
87
- "@heidi-dang/oh-my-opencode-windows-x64": "3.11.0",
88
- "@heidi-dang/oh-my-opencode-windows-x64-baseline": "3.11.0"
79
+ "@heidi-dang/oh-my-opencode-darwin-arm64": "3.10.0",
80
+ "@heidi-dang/oh-my-opencode-darwin-x64": "3.10.0",
81
+ "@heidi-dang/oh-my-opencode-darwin-x64-baseline": "3.10.0",
82
+ "@heidi-dang/oh-my-opencode-linux-arm64": "3.10.0",
83
+ "@heidi-dang/oh-my-opencode-linux-arm64-musl": "3.10.0",
84
+ "@heidi-dang/oh-my-opencode-linux-x64": "3.10.0",
85
+ "@heidi-dang/oh-my-opencode-linux-x64-baseline": "3.10.0",
86
+ "@heidi-dang/oh-my-opencode-linux-x64-musl": "3.10.0",
87
+ "@heidi-dang/oh-my-opencode-linux-x64-musl-baseline": "3.10.0",
88
+ "@heidi-dang/oh-my-opencode-windows-x64": "3.10.0",
89
+ "@heidi-dang/oh-my-opencode-windows-x64-baseline": "3.10.0"
89
90
  },
90
91
  "overrides": {
91
92
  "@opencode-ai/sdk": "^1.2.17"
@@ -94,6 +95,5 @@
94
95
  "@ast-grep/cli",
95
96
  "@ast-grep/napi",
96
97
  "@code-yeongyu/comment-checker"
97
- ],
98
- "_commit": "04ec7f79655072d3b6127195966daf0b36bd042e"
99
- }
98
+ ]
99
+ }