visual-remote 0.2.0 → 0.3.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.
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,22 @@
1
+ import type { NextConfig } from "next";
2
+
3
+ export interface VisualRemoteNextOptions {
4
+ cwd?: string;
5
+ bridgeHost?: string;
6
+ bridgePort?: number;
7
+ appPort?: number;
8
+ }
9
+
10
+ export type NextConfigFactory = (
11
+ phase: string,
12
+ context: { defaultConfig: NextConfig },
13
+ ) => NextConfig | Promise<NextConfig>;
14
+
15
+ export declare function withVisualRemote(
16
+ nextConfig?: NextConfig | NextConfigFactory,
17
+ options?: VisualRemoteNextOptions,
18
+ ): NextConfigFactory;
19
+
20
+ export declare function closeVisualRemoteNext(cwd?: string): Promise<void>;
21
+
22
+ export default withVisualRemote;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "visual-remote",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Visual bridge from a running web UI to Codex in its Git worktree",
5
5
  "type": "module",
6
6
  "repository": {
@@ -14,7 +14,11 @@
14
14
  "files": [
15
15
  "apps/cli/dist/index.js",
16
16
  "apps/cli/dist/vite.js",
17
+ "apps/cli/dist/next.js",
18
+ "apps/cli/dist/next-client.js",
17
19
  "apps/cli/vite.d.ts",
20
+ "apps/cli/next.d.ts",
21
+ "apps/cli/next-client.d.ts",
18
22
  "packages/overlay/dist/client.js",
19
23
  "packages/overlay/dist/viewer.js"
20
24
  ],
@@ -26,6 +30,16 @@
26
30
  "./vite": {
27
31
  "types": "./apps/cli/vite.d.ts",
28
32
  "import": "./apps/cli/dist/vite.js"
33
+ },
34
+ "./next": {
35
+ "types": "./apps/cli/next.d.ts",
36
+ "import": "./apps/cli/dist/next.js",
37
+ "default": "./apps/cli/dist/next.js"
38
+ },
39
+ "./next/client": {
40
+ "types": "./apps/cli/next-client.d.ts",
41
+ "import": "./apps/cli/dist/next-client.js",
42
+ "default": "./apps/cli/dist/next-client.js"
29
43
  }
30
44
  },
31
45
  "publishConfig": {
@@ -61,10 +75,10 @@
61
75
  "vite": "^8.1.5",
62
76
  "vitest": "^4.1.10",
63
77
  "@visual-remote/bridge-core": "0.1.0",
64
- "@visual-remote/gateway": "0.1.0",
65
- "@visual-remote/protocol": "0.1.0",
66
78
  "@visual-remote/cli": "0.1.0",
67
- "@visual-remote/overlay": "0.1.0"
79
+ "@visual-remote/overlay": "0.1.0",
80
+ "@visual-remote/gateway": "0.1.0",
81
+ "@visual-remote/protocol": "0.1.0"
68
82
  },
69
83
  "scripts": {
70
84
  "build": "corepack pnpm run build:overlay && corepack pnpm run build:server",