visual-remote 0.1.2 → 0.1.3
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.
- package/apps/cli/dist/index.js +10 -2
- package/package.json +6 -5
package/apps/cli/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
// src/index.ts
|
|
4
|
+
import { realpathSync } from "node:fs";
|
|
4
5
|
import { resolve as resolve8 } from "node:path";
|
|
5
6
|
import { pathToFileURL } from "node:url";
|
|
6
7
|
import { Command, InvalidArgumentError } from "commander";
|
|
@@ -5352,7 +5353,7 @@ function setExitCode(dependencies, code) {
|
|
|
5352
5353
|
}
|
|
5353
5354
|
}
|
|
5354
5355
|
function createCli(dependencies = {}) {
|
|
5355
|
-
const program = new Command().name("visual").description("Visual Remote Dev Bridge").version("0.1.
|
|
5356
|
+
const program = new Command().name("visual").description("Visual Remote Dev Bridge").version("0.1.3");
|
|
5356
5357
|
program.command("init").description("Create .visualdev/config.yaml for the current project").action(async () => {
|
|
5357
5358
|
const result = await initializeVisualDev(dependencies);
|
|
5358
5359
|
output(dependencies, formatInitResult(result));
|
|
@@ -5402,8 +5403,15 @@ function createCli(dependencies = {}) {
|
|
|
5402
5403
|
async function main(argv = process.argv, dependencies = {}) {
|
|
5403
5404
|
await createCli(dependencies).parseAsync(argv);
|
|
5404
5405
|
}
|
|
5406
|
+
function isDirectEntry(entryPath2) {
|
|
5407
|
+
try {
|
|
5408
|
+
return pathToFileURL(realpathSync(resolve8(entryPath2))).href === import.meta.url;
|
|
5409
|
+
} catch {
|
|
5410
|
+
return false;
|
|
5411
|
+
}
|
|
5412
|
+
}
|
|
5405
5413
|
var entryPath = process.argv[1];
|
|
5406
|
-
if (entryPath !== void 0 &&
|
|
5414
|
+
if (entryPath !== void 0 && isDirectEntry(entryPath)) {
|
|
5407
5415
|
void main().catch((error) => {
|
|
5408
5416
|
process.stderr.write(
|
|
5409
5417
|
`${error instanceof Error ? error.message : "Unknown Visual Bridge error"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "visual-remote",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Visual bridge from a running web UI to Codex in its Git worktree",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
"packages/overlay/dist/viewer.js"
|
|
18
18
|
],
|
|
19
19
|
"bin": {
|
|
20
|
-
"visual": "./apps/cli/dist/index.js"
|
|
20
|
+
"visual": "./apps/cli/dist/index.js",
|
|
21
|
+
"visual-remote": "./apps/cli/dist/index.js"
|
|
21
22
|
},
|
|
22
23
|
"publishConfig": {
|
|
23
24
|
"access": "public",
|
|
@@ -42,11 +43,11 @@
|
|
|
42
43
|
"tsx": "^4.23.1",
|
|
43
44
|
"typescript": "^7.0.2",
|
|
44
45
|
"vitest": "^4.1.10",
|
|
46
|
+
"@visual-remote/cli": "0.1.0",
|
|
45
47
|
"@visual-remote/bridge-core": "0.1.0",
|
|
48
|
+
"@visual-remote/gateway": "0.1.0",
|
|
46
49
|
"@visual-remote/protocol": "0.1.0",
|
|
47
|
-
"@visual-remote/overlay": "0.1.0"
|
|
48
|
-
"@visual-remote/cli": "0.1.0",
|
|
49
|
-
"@visual-remote/gateway": "0.1.0"
|
|
50
|
+
"@visual-remote/overlay": "0.1.0"
|
|
50
51
|
},
|
|
51
52
|
"scripts": {
|
|
52
53
|
"build": "corepack pnpm run build:overlay && corepack pnpm run build:server",
|