vibedgames 0.8.0 → 0.8.1
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/dist/{chunk-CZPKN32Z.js → chunk-4BGCA3W7.js} +3 -3
- package/dist/{chunk-XK5RZQMX.js → chunk-7MKUR7Y3.js} +6 -6
- package/dist/chunk-AYJQVZXY.js +39 -0
- package/dist/{chunk-H4NBRFBY.js → chunk-C2IRIRAA.js} +29 -4
- package/dist/{chunk-SAANBZ25.js → chunk-GCX5KQ6A.js} +2 -2
- package/dist/{chunk-AZGENOOR.js → chunk-MGIASPED.js} +3 -2
- package/dist/{chunk-FL6IFBUF.js → chunk-NC5XCGYU.js} +1 -1
- package/dist/{chunk-HASKWB6B.js → chunk-PM5UOIKR.js} +44 -18
- package/dist/chunk-QJZ72MSY.js +26 -0
- package/dist/{chunk-IO6OM6WM.js → chunk-RAUJA3OY.js} +6 -32
- package/dist/{chunk-Y552BNFZ.js → chunk-TLRL6FHW.js} +4 -4
- package/dist/index.js +17 -17
- package/package.json +1 -1
- package/dist/{chunk-K5SC6SXO.js → chunk-2GL2WJZX.js} +1 -1
- package/dist/{chunk-TYVYWBY6.js → chunk-HCMTSR7E.js} +1 -1
- package/dist/{chunk-W5XP4ZVU.js → chunk-HKA5LBYW.js} +3 -3
- package/dist/{chunk-X4ZABSCN.js → chunk-MJQSHP3Y.js} +3 -3
- package/dist/{chunk-RNBUX5VF.js → chunk-MYFLYNPO.js} +1 -1
- package/dist/{chunk-RIGKOLNN.js → chunk-N3XAUFKH.js} +6 -6
- package/dist/{chunk-XDC7QGOF.js → chunk-PHEDW6C7.js} +1 -1
- package/dist/{chunk-TMK6V5FV.js → chunk-QGEITHUP.js} +3 -3
- package/dist/{chunk-GUF6ADBF.js → chunk-QIVCBUYD.js} +1 -1
|
@@ -4,12 +4,12 @@ import { fileURLToPath as __fileURLToPath } from "node:url";
|
|
|
4
4
|
const require = __createRequire(import.meta.url);
|
|
5
5
|
var __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __pathDirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
isNewerVersion
|
|
9
|
+
} from "./chunk-GCX5KQ6A.js";
|
|
7
10
|
import {
|
|
8
11
|
require_cross_spawn
|
|
9
12
|
} from "./chunk-2QBYTIMH.js";
|
|
10
|
-
import {
|
|
11
|
-
isNewerVersion
|
|
12
|
-
} from "./chunk-SAANBZ25.js";
|
|
13
13
|
import {
|
|
14
14
|
SLUG_RE,
|
|
15
15
|
findProjectRoot,
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
ensureAgentBrowser,
|
|
9
9
|
projectSessionId,
|
|
10
10
|
resolveGameUrl
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-SAANBZ25.js";
|
|
11
|
+
} from "./chunk-4BGCA3W7.js";
|
|
12
|
+
import "./chunk-GCX5KQ6A.js";
|
|
14
13
|
import "./chunk-6FZPPUQH.js";
|
|
14
|
+
import "./chunk-2QBYTIMH.js";
|
|
15
15
|
import "./chunk-ZI6PKVXG.js";
|
|
16
16
|
import {
|
|
17
17
|
authErrorCode,
|
|
@@ -30,13 +30,13 @@ import {
|
|
|
30
30
|
getBaseUrl,
|
|
31
31
|
getToken
|
|
32
32
|
} from "./chunk-RYFO3ZPO.js";
|
|
33
|
+
import {
|
|
34
|
+
consola
|
|
35
|
+
} from "./chunk-CU7UY5YJ.js";
|
|
33
36
|
import {
|
|
34
37
|
isJsonObject,
|
|
35
38
|
isJsonString
|
|
36
39
|
} from "./chunk-J6PKNPI2.js";
|
|
37
|
-
import {
|
|
38
|
-
consola
|
|
39
|
-
} from "./chunk-CU7UY5YJ.js";
|
|
40
40
|
import {
|
|
41
41
|
defineCommand
|
|
42
42
|
} from "./chunk-MBXCVCC4.js";
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from "node:module";
|
|
2
|
+
import { dirname as __pathDirname } from "node:path";
|
|
3
|
+
import { fileURLToPath as __fileURLToPath } from "node:url";
|
|
4
|
+
const require = __createRequire(import.meta.url);
|
|
5
|
+
var __filename = __fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = __pathDirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
require_cross_spawn
|
|
9
|
+
} from "./chunk-2QBYTIMH.js";
|
|
10
|
+
import {
|
|
11
|
+
__toESM
|
|
12
|
+
} from "./chunk-CAKBGDCY.js";
|
|
13
|
+
|
|
14
|
+
// src/lib/run.ts
|
|
15
|
+
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
16
|
+
var isMissingCommand = (result) => result.code !== 0 && /ENOENT|not found|not recognized/iu.test(result.output);
|
|
17
|
+
var run = (cmd, args) => (
|
|
18
|
+
// oxlint-disable-next-line promise/avoid-new -- child_process.spawn is event-based
|
|
19
|
+
new Promise((resolve) => {
|
|
20
|
+
const chunks = [];
|
|
21
|
+
const child = (0, import_cross_spawn.default)(cmd, args, { stdio: ["ignore", "pipe", "pipe"] });
|
|
22
|
+
const collect = (c) => {
|
|
23
|
+
chunks.push(c);
|
|
24
|
+
};
|
|
25
|
+
child.stdout?.on("data", collect);
|
|
26
|
+
child.stderr?.on("data", collect);
|
|
27
|
+
child.on("error", (err) => resolve({ code: 1, output: `${err.message}
|
|
28
|
+
` }));
|
|
29
|
+
child.on(
|
|
30
|
+
"close",
|
|
31
|
+
(code) => resolve({ code: code ?? 1, output: Buffer.concat(chunks).toString("utf-8") })
|
|
32
|
+
);
|
|
33
|
+
})
|
|
34
|
+
);
|
|
35
|
+
|
|
36
|
+
export {
|
|
37
|
+
isMissingCommand,
|
|
38
|
+
run
|
|
39
|
+
};
|
|
@@ -4,17 +4,23 @@ import { fileURLToPath as __fileURLToPath } from "node:url";
|
|
|
4
4
|
const require = __createRequire(import.meta.url);
|
|
5
5
|
var __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __pathDirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
run
|
|
9
|
+
} from "./chunk-AYJQVZXY.js";
|
|
7
10
|
import {
|
|
8
11
|
consola
|
|
9
12
|
} from "./chunk-CU7UY5YJ.js";
|
|
13
|
+
import {
|
|
14
|
+
isJsonObject,
|
|
15
|
+
isJsonString
|
|
16
|
+
} from "./chunk-J6PKNPI2.js";
|
|
10
17
|
import {
|
|
11
18
|
defineCommand
|
|
12
19
|
} from "./chunk-MBXCVCC4.js";
|
|
13
|
-
import "./chunk-CAKBGDCY.js";
|
|
14
20
|
|
|
15
21
|
// src/commands/factory.ts
|
|
16
22
|
import { spawnSync } from "node:child_process";
|
|
17
|
-
import { existsSync } from "node:fs";
|
|
23
|
+
import { existsSync, readFileSync } from "node:fs";
|
|
18
24
|
import path from "node:path";
|
|
19
25
|
var FACTORY_PACKAGE = "@vibedgames/factory";
|
|
20
26
|
var npmGlobalRoot = () => {
|
|
@@ -41,6 +47,21 @@ var findEntry = () => {
|
|
|
41
47
|
const entry = path.join(root, FACTORY_PACKAGE, "bin", "vg-factory.js");
|
|
42
48
|
return existsSync(entry) ? entry : null;
|
|
43
49
|
};
|
|
50
|
+
var installedFactoryVersion = () => {
|
|
51
|
+
const root = npmGlobalRoot();
|
|
52
|
+
if (!root) {
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
try {
|
|
56
|
+
const manifest = JSON.parse(
|
|
57
|
+
readFileSync(path.join(root, FACTORY_PACKAGE, "package.json"), "utf-8")
|
|
58
|
+
);
|
|
59
|
+
return isJsonObject(manifest) && isJsonString(manifest.version) ? manifest.version : null;
|
|
60
|
+
} catch {
|
|
61
|
+
return null;
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
var updateFactory = () => run("npm", ["install", "-g", `${FACTORY_PACKAGE}@latest`]);
|
|
44
65
|
var runFactory = (args) => {
|
|
45
66
|
let entry = findEntry();
|
|
46
67
|
if (!entry) {
|
|
@@ -73,7 +94,11 @@ var factoryCommand = defineCommand({
|
|
|
73
94
|
runFactory(rawArgs);
|
|
74
95
|
}
|
|
75
96
|
});
|
|
97
|
+
|
|
76
98
|
export {
|
|
77
|
-
|
|
78
|
-
|
|
99
|
+
FACTORY_PACKAGE,
|
|
100
|
+
installedFactoryVersion,
|
|
101
|
+
updateFactory,
|
|
102
|
+
runFactory,
|
|
103
|
+
factoryCommand
|
|
79
104
|
};
|
|
@@ -68,10 +68,10 @@ var isNewerVersion = (latest, current) => {
|
|
|
68
68
|
}
|
|
69
69
|
return false;
|
|
70
70
|
};
|
|
71
|
-
var fetchLatestVersion = async () => {
|
|
71
|
+
var fetchLatestVersion = async (packageName) => {
|
|
72
72
|
const registry = process.env.VG_REGISTRY_URL ?? "https://registry.npmjs.org";
|
|
73
73
|
try {
|
|
74
|
-
const res = await fetch(`${registry}/
|
|
74
|
+
const res = await fetch(`${registry}/${packageName}/latest`, {
|
|
75
75
|
signal: AbortSignal.timeout(5e3)
|
|
76
76
|
});
|
|
77
77
|
if (!res.ok) {
|
|
@@ -7,13 +7,14 @@ var __dirname = __pathDirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
initCommand,
|
|
9
9
|
reportSkills
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RAUJA3OY.js";
|
|
11
|
+
import "./chunk-AYJQVZXY.js";
|
|
11
12
|
import "./chunk-2QBYTIMH.js";
|
|
12
13
|
import "./chunk-VFFOT7KD.js";
|
|
13
14
|
import "./chunk-PEUP4MZR.js";
|
|
14
15
|
import "./chunk-RZ4DIJQW.js";
|
|
15
|
-
import "./chunk-J6PKNPI2.js";
|
|
16
16
|
import "./chunk-CU7UY5YJ.js";
|
|
17
|
+
import "./chunk-J6PKNPI2.js";
|
|
17
18
|
import "./chunk-MBXCVCC4.js";
|
|
18
19
|
import "./chunk-CAKBGDCY.js";
|
|
19
20
|
export {
|
|
@@ -6,18 +6,25 @@ var __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __pathDirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
findInstall,
|
|
9
|
-
isMissingCommand,
|
|
10
9
|
reportSkills,
|
|
11
|
-
run,
|
|
12
10
|
settleSync,
|
|
13
11
|
syncSkills
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-2QBYTIMH.js";
|
|
12
|
+
} from "./chunk-RAUJA3OY.js";
|
|
16
13
|
import {
|
|
17
14
|
fetchLatestVersion,
|
|
18
15
|
isNewerVersion
|
|
19
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-GCX5KQ6A.js";
|
|
20
17
|
import "./chunk-6FZPPUQH.js";
|
|
18
|
+
import {
|
|
19
|
+
FACTORY_PACKAGE,
|
|
20
|
+
installedFactoryVersion,
|
|
21
|
+
updateFactory
|
|
22
|
+
} from "./chunk-C2IRIRAA.js";
|
|
23
|
+
import {
|
|
24
|
+
isMissingCommand,
|
|
25
|
+
run
|
|
26
|
+
} from "./chunk-AYJQVZXY.js";
|
|
27
|
+
import "./chunk-2QBYTIMH.js";
|
|
21
28
|
import "./chunk-VFFOT7KD.js";
|
|
22
29
|
import {
|
|
23
30
|
PACKAGE_VERSION
|
|
@@ -31,10 +38,10 @@ import {
|
|
|
31
38
|
assertKnownFlags
|
|
32
39
|
} from "./chunk-RZ4DIJQW.js";
|
|
33
40
|
import "./chunk-RYFO3ZPO.js";
|
|
34
|
-
import "./chunk-J6PKNPI2.js";
|
|
35
41
|
import {
|
|
36
42
|
consola
|
|
37
43
|
} from "./chunk-CU7UY5YJ.js";
|
|
44
|
+
import "./chunk-J6PKNPI2.js";
|
|
38
45
|
import {
|
|
39
46
|
defineCommand
|
|
40
47
|
} from "./chunk-MBXCVCC4.js";
|
|
@@ -45,6 +52,28 @@ var updateInstalledSkills = async (global) => {
|
|
|
45
52
|
const found = findInstall(global ? ["global"] : ["project", "global"]);
|
|
46
53
|
return found ? await syncSkills(found.target, found.agents) : null;
|
|
47
54
|
};
|
|
55
|
+
var autoUpdate = async (manager, global, factoryVersion) => {
|
|
56
|
+
const [latest, latestFactory] = await Promise.all([
|
|
57
|
+
fetchLatestVersion("vibedgames"),
|
|
58
|
+
factoryVersion === null ? null : fetchLatestVersion(FACTORY_PACKAGE)
|
|
59
|
+
]);
|
|
60
|
+
const cliNewer = latest !== null && isNewerVersion(latest, PACKAGE_VERSION);
|
|
61
|
+
const factoryNewer = factoryVersion !== null && latestFactory !== null && isNewerVersion(latestFactory, factoryVersion);
|
|
62
|
+
await Promise.all([
|
|
63
|
+
cliNewer && run(manager, globalInstallArgs(manager)),
|
|
64
|
+
cliNewer && settleSync(updateInstalledSkills(global)),
|
|
65
|
+
factoryNewer && updateFactory()
|
|
66
|
+
]);
|
|
67
|
+
};
|
|
68
|
+
var reportFactory = (result) => {
|
|
69
|
+
if (result.code === 0) {
|
|
70
|
+
consola.success(`${FACTORY_PACKAGE} updated to latest`);
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
consola.warn(
|
|
74
|
+
`Couldn't update the factory (npm exit ${result.code}). Update manually: npm install -g ${FACTORY_PACKAGE}@latest`
|
|
75
|
+
);
|
|
76
|
+
};
|
|
48
77
|
var updateArgs = {
|
|
49
78
|
auto: {
|
|
50
79
|
default: false,
|
|
@@ -61,28 +90,22 @@ var updateArgs = {
|
|
|
61
90
|
var updateCommand = defineCommand({
|
|
62
91
|
args: updateArgs,
|
|
63
92
|
meta: {
|
|
64
|
-
description: "Update the vg CLI
|
|
93
|
+
description: "Update the vg CLI, vibedgames skills and, if installed, the factory to latest (runs automatically once a day; turn that off with `vg config set update.auto false`)",
|
|
65
94
|
name: "update"
|
|
66
95
|
},
|
|
67
96
|
run: async ({ args, rawArgs }) => {
|
|
68
97
|
assertKnownFlags(rawArgs, updateArgs);
|
|
69
98
|
const manager = detectPackageManager(import.meta.filename);
|
|
99
|
+
const factoryVersion = installedFactoryVersion();
|
|
70
100
|
if (args.auto) {
|
|
71
|
-
|
|
72
|
-
if (!latest || !isNewerVersion(latest, PACKAGE_VERSION)) {
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
await Promise.all([
|
|
76
|
-
run(manager, globalInstallArgs(manager)),
|
|
77
|
-
// Silent background mode: a failed skills sync waits for the next run.
|
|
78
|
-
settleSync(updateInstalledSkills(args.global))
|
|
79
|
-
]);
|
|
101
|
+
await autoUpdate(manager, args.global, factoryVersion);
|
|
80
102
|
return;
|
|
81
103
|
}
|
|
82
104
|
consola.start("Updating the vg CLI and vibedgames skills...");
|
|
83
|
-
const [cli, skills] = await Promise.all([
|
|
105
|
+
const [cli, skills, factory] = await Promise.all([
|
|
84
106
|
run(manager, globalInstallArgs(manager)),
|
|
85
|
-
settleSync(updateInstalledSkills(args.global))
|
|
107
|
+
settleSync(updateInstalledSkills(args.global)),
|
|
108
|
+
factoryVersion === null ? null : updateFactory()
|
|
86
109
|
]);
|
|
87
110
|
if (cli.code === 0) {
|
|
88
111
|
consola.success(`vg CLI updated to latest with ${manager}`);
|
|
@@ -101,6 +124,9 @@ var updateCommand = defineCommand({
|
|
|
101
124
|
} else {
|
|
102
125
|
consola.info("No vibedgames skills installed here or in your home directory: run vg init");
|
|
103
126
|
}
|
|
127
|
+
if (factory) {
|
|
128
|
+
reportFactory(factory);
|
|
129
|
+
}
|
|
104
130
|
if (cli.code !== 0 && !skills.ok) {
|
|
105
131
|
throw new Error("update failed for both the CLI and skills");
|
|
106
132
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from "node:module";
|
|
2
|
+
import { dirname as __pathDirname } from "node:path";
|
|
3
|
+
import { fileURLToPath as __fileURLToPath } from "node:url";
|
|
4
|
+
const require = __createRequire(import.meta.url);
|
|
5
|
+
var __filename = __fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = __pathDirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
FACTORY_PACKAGE,
|
|
9
|
+
factoryCommand,
|
|
10
|
+
installedFactoryVersion,
|
|
11
|
+
runFactory,
|
|
12
|
+
updateFactory
|
|
13
|
+
} from "./chunk-C2IRIRAA.js";
|
|
14
|
+
import "./chunk-AYJQVZXY.js";
|
|
15
|
+
import "./chunk-2QBYTIMH.js";
|
|
16
|
+
import "./chunk-CU7UY5YJ.js";
|
|
17
|
+
import "./chunk-J6PKNPI2.js";
|
|
18
|
+
import "./chunk-MBXCVCC4.js";
|
|
19
|
+
import "./chunk-CAKBGDCY.js";
|
|
20
|
+
export {
|
|
21
|
+
FACTORY_PACKAGE,
|
|
22
|
+
factoryCommand,
|
|
23
|
+
installedFactoryVersion,
|
|
24
|
+
runFactory,
|
|
25
|
+
updateFactory
|
|
26
|
+
};
|
|
@@ -5,8 +5,9 @@ const require = __createRequire(import.meta.url);
|
|
|
5
5
|
var __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __pathDirname(__filename);
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
isMissingCommand,
|
|
9
|
+
run
|
|
10
|
+
} from "./chunk-AYJQVZXY.js";
|
|
10
11
|
import {
|
|
11
12
|
So
|
|
12
13
|
} from "./chunk-VFFOT7KD.js";
|
|
@@ -19,45 +20,20 @@ import {
|
|
|
19
20
|
import {
|
|
20
21
|
assertKnownFlags
|
|
21
22
|
} from "./chunk-RZ4DIJQW.js";
|
|
23
|
+
import {
|
|
24
|
+
consola
|
|
25
|
+
} from "./chunk-CU7UY5YJ.js";
|
|
22
26
|
import {
|
|
23
27
|
isJsonObject,
|
|
24
28
|
isJsonString
|
|
25
29
|
} from "./chunk-J6PKNPI2.js";
|
|
26
|
-
import {
|
|
27
|
-
consola
|
|
28
|
-
} from "./chunk-CU7UY5YJ.js";
|
|
29
30
|
import {
|
|
30
31
|
defineCommand
|
|
31
32
|
} from "./chunk-MBXCVCC4.js";
|
|
32
|
-
import {
|
|
33
|
-
__toESM
|
|
34
|
-
} from "./chunk-CAKBGDCY.js";
|
|
35
33
|
|
|
36
34
|
// src/commands/init.ts
|
|
37
35
|
import path2 from "node:path";
|
|
38
36
|
|
|
39
|
-
// src/lib/run.ts
|
|
40
|
-
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
41
|
-
var isMissingCommand = (result) => result.code !== 0 && /ENOENT|not found|not recognized/iu.test(result.output);
|
|
42
|
-
var run = (cmd, args) => (
|
|
43
|
-
// oxlint-disable-next-line promise/avoid-new -- child_process.spawn is event-based
|
|
44
|
-
new Promise((resolve) => {
|
|
45
|
-
const chunks = [];
|
|
46
|
-
const child = (0, import_cross_spawn.default)(cmd, args, { stdio: ["ignore", "pipe", "pipe"] });
|
|
47
|
-
const collect = (c) => {
|
|
48
|
-
chunks.push(c);
|
|
49
|
-
};
|
|
50
|
-
child.stdout?.on("data", collect);
|
|
51
|
-
child.stderr?.on("data", collect);
|
|
52
|
-
child.on("error", (err) => resolve({ code: 1, output: `${err.message}
|
|
53
|
-
` }));
|
|
54
|
-
child.on(
|
|
55
|
-
"close",
|
|
56
|
-
(code) => resolve({ code: code ?? 1, output: Buffer.concat(chunks).toString("utf-8") })
|
|
57
|
-
);
|
|
58
|
-
})
|
|
59
|
-
);
|
|
60
|
-
|
|
61
37
|
// src/lib/skills-install.ts
|
|
62
38
|
import {
|
|
63
39
|
cpSync,
|
|
@@ -456,8 +432,6 @@ var initCommand = defineCommand({
|
|
|
456
432
|
});
|
|
457
433
|
|
|
458
434
|
export {
|
|
459
|
-
isMissingCommand,
|
|
460
|
-
run,
|
|
461
435
|
syncSkills,
|
|
462
436
|
settleSync,
|
|
463
437
|
findInstall,
|
|
@@ -16,14 +16,14 @@ import {
|
|
|
16
16
|
resolveGameUrl,
|
|
17
17
|
runPlaytest,
|
|
18
18
|
withScopedSession
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-SAANBZ25.js";
|
|
19
|
+
} from "./chunk-4BGCA3W7.js";
|
|
20
|
+
import "./chunk-GCX5KQ6A.js";
|
|
22
21
|
import "./chunk-6FZPPUQH.js";
|
|
22
|
+
import "./chunk-2QBYTIMH.js";
|
|
23
23
|
import "./chunk-ZI6PKVXG.js";
|
|
24
24
|
import "./chunk-RYFO3ZPO.js";
|
|
25
|
-
import "./chunk-J6PKNPI2.js";
|
|
26
25
|
import "./chunk-CU7UY5YJ.js";
|
|
26
|
+
import "./chunk-J6PKNPI2.js";
|
|
27
27
|
import "./chunk-MBXCVCC4.js";
|
|
28
28
|
import "./chunk-CAKBGDCY.js";
|
|
29
29
|
export {
|
package/dist/index.js
CHANGED
|
@@ -31,16 +31,16 @@ var main = defineCommand({
|
|
|
31
31
|
// and dependencies alone. `vg --help` loads them all, for their descriptions.
|
|
32
32
|
subCommands: {
|
|
33
33
|
completions: lazy(() => import("./chunk-FNYBZNW2.js"), "completionsCommand"),
|
|
34
|
-
config: lazy(() => import("./chunk-
|
|
35
|
-
credits: lazy(() => import("./chunk-
|
|
36
|
-
deploy: lazy(() => import("./chunk-
|
|
37
|
-
factory: lazy(() => import("./chunk-
|
|
38
|
-
fork: lazy(() => import("./chunk-
|
|
39
|
-
generate: lazy(() => import("./chunk-
|
|
40
|
-
init: lazy(() => import("./chunk-
|
|
41
|
-
login: lazy(() => import("./chunk-
|
|
42
|
-
logout: lazy(() => import("./chunk-
|
|
43
|
-
new: lazy(() => import("./chunk-
|
|
34
|
+
config: lazy(() => import("./chunk-2GL2WJZX.js"), "configCommand"),
|
|
35
|
+
credits: lazy(() => import("./chunk-QIVCBUYD.js"), "creditsCommand"),
|
|
36
|
+
deploy: lazy(() => import("./chunk-MJQSHP3Y.js"), "deployCommand"),
|
|
37
|
+
factory: lazy(() => import("./chunk-QJZ72MSY.js"), "factoryCommand"),
|
|
38
|
+
fork: lazy(() => import("./chunk-HKA5LBYW.js"), "forkCommand"),
|
|
39
|
+
generate: lazy(() => import("./chunk-N3XAUFKH.js"), "generateCommand"),
|
|
40
|
+
init: lazy(() => import("./chunk-MGIASPED.js"), "initCommand"),
|
|
41
|
+
login: lazy(() => import("./chunk-MYFLYNPO.js"), "loginCommand"),
|
|
42
|
+
logout: lazy(() => import("./chunk-PHEDW6C7.js"), "logoutCommand"),
|
|
43
|
+
new: lazy(() => import("./chunk-QGEITHUP.js"), "newCommand"),
|
|
44
44
|
// `run` is the one `vg playtest` verb that is ours rather than
|
|
45
45
|
// agent-browser's: the model-driven playtest. index.ts routes every other
|
|
46
46
|
// `vg playtest …` straight to the binary below. Only the meta is reused:
|
|
@@ -48,29 +48,29 @@ var main = defineCommand({
|
|
|
48
48
|
// passthrough here would forward `run …` to agent-browser once the
|
|
49
49
|
// playtest had finished and turn every passing run into an exit 1.
|
|
50
50
|
playtest: async () => {
|
|
51
|
-
const { playtestCommand } = await import("./chunk-
|
|
51
|
+
const { playtestCommand } = await import("./chunk-TLRL6FHW.js");
|
|
52
52
|
return defineCommand({
|
|
53
53
|
meta: playtestCommand.meta,
|
|
54
54
|
subCommands: {
|
|
55
|
-
run: lazy(() => import("./chunk-
|
|
55
|
+
run: lazy(() => import("./chunk-7MKUR7Y3.js"), "playtestRunCommand")
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
58
|
},
|
|
59
|
-
update: lazy(() => import("./chunk-
|
|
60
|
-
whoami: lazy(() => import("./chunk-
|
|
59
|
+
update: lazy(() => import("./chunk-PM5UOIKR.js"), "updateCommand"),
|
|
60
|
+
whoami: lazy(() => import("./chunk-HCMTSR7E.js"), "whoamiCommand")
|
|
61
61
|
}
|
|
62
62
|
});
|
|
63
63
|
var subcommand = process.argv.at(2);
|
|
64
64
|
if (subcommand && !["update", "init", "completions"].includes(subcommand)) {
|
|
65
|
-
const { maybeScheduleAutoUpdate } = await import("./chunk-
|
|
65
|
+
const { maybeScheduleAutoUpdate } = await import("./chunk-NC5XCGYU.js");
|
|
66
66
|
maybeScheduleAutoUpdate();
|
|
67
67
|
}
|
|
68
68
|
if (subcommand === "factory") {
|
|
69
|
-
const { runFactory } = await import("./chunk-
|
|
69
|
+
const { runFactory } = await import("./chunk-QJZ72MSY.js");
|
|
70
70
|
runFactory(process.argv.slice(3));
|
|
71
71
|
}
|
|
72
72
|
if (subcommand === "playtest" && process.argv.at(3) !== "run") {
|
|
73
|
-
const { runPlaytest } = await import("./chunk-
|
|
73
|
+
const { runPlaytest } = await import("./chunk-TLRL6FHW.js");
|
|
74
74
|
runPlaytest(process.argv.slice(3));
|
|
75
75
|
}
|
|
76
76
|
await runMain(main);
|
package/package.json
CHANGED
|
@@ -22,10 +22,10 @@ import {
|
|
|
22
22
|
assertKnownFlags
|
|
23
23
|
} from "./chunk-RZ4DIJQW.js";
|
|
24
24
|
import "./chunk-RYFO3ZPO.js";
|
|
25
|
-
import "./chunk-J6PKNPI2.js";
|
|
26
25
|
import {
|
|
27
26
|
consola
|
|
28
27
|
} from "./chunk-CU7UY5YJ.js";
|
|
28
|
+
import "./chunk-J6PKNPI2.js";
|
|
29
29
|
import {
|
|
30
30
|
defineCommand
|
|
31
31
|
} from "./chunk-MBXCVCC4.js";
|
|
@@ -20,10 +20,10 @@ import {
|
|
|
20
20
|
import {
|
|
21
21
|
getToken
|
|
22
22
|
} from "./chunk-RYFO3ZPO.js";
|
|
23
|
-
import "./chunk-J6PKNPI2.js";
|
|
24
23
|
import {
|
|
25
24
|
consola
|
|
26
25
|
} from "./chunk-CU7UY5YJ.js";
|
|
26
|
+
import "./chunk-J6PKNPI2.js";
|
|
27
27
|
import {
|
|
28
28
|
defineCommand
|
|
29
29
|
} from "./chunk-MBXCVCC4.js";
|
|
@@ -25,12 +25,12 @@ import {
|
|
|
25
25
|
assertKnownFlags
|
|
26
26
|
} from "./chunk-RZ4DIJQW.js";
|
|
27
27
|
import "./chunk-RYFO3ZPO.js";
|
|
28
|
-
import {
|
|
29
|
-
isJsonObject
|
|
30
|
-
} from "./chunk-J6PKNPI2.js";
|
|
31
28
|
import {
|
|
32
29
|
consola
|
|
33
30
|
} from "./chunk-CU7UY5YJ.js";
|
|
31
|
+
import {
|
|
32
|
+
isJsonObject
|
|
33
|
+
} from "./chunk-J6PKNPI2.js";
|
|
34
34
|
import {
|
|
35
35
|
defineCommand
|
|
36
36
|
} from "./chunk-MBXCVCC4.js";
|
|
@@ -29,12 +29,12 @@ import {
|
|
|
29
29
|
assertKnownFlags
|
|
30
30
|
} from "./chunk-RZ4DIJQW.js";
|
|
31
31
|
import "./chunk-RYFO3ZPO.js";
|
|
32
|
-
import {
|
|
33
|
-
isJsonString
|
|
34
|
-
} from "./chunk-J6PKNPI2.js";
|
|
35
32
|
import {
|
|
36
33
|
consola
|
|
37
34
|
} from "./chunk-CU7UY5YJ.js";
|
|
35
|
+
import {
|
|
36
|
+
isJsonString
|
|
37
|
+
} from "./chunk-J6PKNPI2.js";
|
|
38
38
|
import {
|
|
39
39
|
defineCommand
|
|
40
40
|
} from "./chunk-MBXCVCC4.js";
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
getBaseUrl,
|
|
14
14
|
saveConfig
|
|
15
15
|
} from "./chunk-RYFO3ZPO.js";
|
|
16
|
-
import "./chunk-J6PKNPI2.js";
|
|
17
16
|
import {
|
|
18
17
|
consola
|
|
19
18
|
} from "./chunk-CU7UY5YJ.js";
|
|
19
|
+
import "./chunk-J6PKNPI2.js";
|
|
20
20
|
import {
|
|
21
21
|
defineCommand
|
|
22
22
|
} from "./chunk-MBXCVCC4.js";
|
|
@@ -4,12 +4,12 @@ import { fileURLToPath as __fileURLToPath } from "node:url";
|
|
|
4
4
|
const require = __createRequire(import.meta.url);
|
|
5
5
|
var __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __pathDirname(__filename);
|
|
7
|
-
import {
|
|
8
|
-
require_cross_spawn
|
|
9
|
-
} from "./chunk-2QBYTIMH.js";
|
|
10
7
|
import {
|
|
11
8
|
resolveSetting
|
|
12
9
|
} from "./chunk-6FZPPUQH.js";
|
|
10
|
+
import {
|
|
11
|
+
require_cross_spawn
|
|
12
|
+
} from "./chunk-2QBYTIMH.js";
|
|
13
13
|
import {
|
|
14
14
|
createClient,
|
|
15
15
|
forwardJson
|
|
@@ -23,14 +23,14 @@ import {
|
|
|
23
23
|
writeStructured
|
|
24
24
|
} from "./chunk-ZYCSYJWX.js";
|
|
25
25
|
import "./chunk-RYFO3ZPO.js";
|
|
26
|
+
import {
|
|
27
|
+
consola
|
|
28
|
+
} from "./chunk-CU7UY5YJ.js";
|
|
26
29
|
import {
|
|
27
30
|
isJsonNumber,
|
|
28
31
|
isJsonObject,
|
|
29
32
|
isJsonString
|
|
30
33
|
} from "./chunk-J6PKNPI2.js";
|
|
31
|
-
import {
|
|
32
|
-
consola
|
|
33
|
-
} from "./chunk-CU7UY5YJ.js";
|
|
34
34
|
import {
|
|
35
35
|
defineCommand
|
|
36
36
|
} from "./chunk-MBXCVCC4.js";
|
|
@@ -7,10 +7,10 @@ var __dirname = __pathDirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
clearConfig
|
|
9
9
|
} from "./chunk-RYFO3ZPO.js";
|
|
10
|
-
import "./chunk-J6PKNPI2.js";
|
|
11
10
|
import {
|
|
12
11
|
consola
|
|
13
12
|
} from "./chunk-CU7UY5YJ.js";
|
|
13
|
+
import "./chunk-J6PKNPI2.js";
|
|
14
14
|
import {
|
|
15
15
|
defineCommand
|
|
16
16
|
} from "./chunk-MBXCVCC4.js";
|
|
@@ -17,13 +17,13 @@ import "./chunk-PEUP4MZR.js";
|
|
|
17
17
|
import {
|
|
18
18
|
assertKnownFlags
|
|
19
19
|
} from "./chunk-RZ4DIJQW.js";
|
|
20
|
+
import {
|
|
21
|
+
consola
|
|
22
|
+
} from "./chunk-CU7UY5YJ.js";
|
|
20
23
|
import {
|
|
21
24
|
isJsonObject,
|
|
22
25
|
isJsonString
|
|
23
26
|
} from "./chunk-J6PKNPI2.js";
|
|
24
|
-
import {
|
|
25
|
-
consola
|
|
26
|
-
} from "./chunk-CU7UY5YJ.js";
|
|
27
27
|
import {
|
|
28
28
|
defineCommand
|
|
29
29
|
} from "./chunk-MBXCVCC4.js";
|
|
@@ -20,10 +20,10 @@ import {
|
|
|
20
20
|
import {
|
|
21
21
|
getToken
|
|
22
22
|
} from "./chunk-RYFO3ZPO.js";
|
|
23
|
-
import "./chunk-J6PKNPI2.js";
|
|
24
23
|
import {
|
|
25
24
|
consola
|
|
26
25
|
} from "./chunk-CU7UY5YJ.js";
|
|
26
|
+
import "./chunk-J6PKNPI2.js";
|
|
27
27
|
import {
|
|
28
28
|
defineCommand
|
|
29
29
|
} from "./chunk-MBXCVCC4.js";
|