vibedgames 0.7.0 → 0.8.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.
- package/dist/{chunk-G5FRIFA3.js → chunk-AZGENOOR.js} +2 -2
- package/dist/{chunk-BVVYDSFJ.js → chunk-H4NBRFBY.js} +15 -35
- package/dist/{chunk-DHEXGWJY.js → chunk-HASKWB6B.js} +2 -2
- package/dist/chunk-Y552BNFZ.js +1 -1
- package/dist/index.js +14 -14
- package/package.json +1 -1
- package/dist/{chunk-QIVCBUYD.js → chunk-GUF6ADBF.js} +1 -1
- package/dist/{chunk-34AHIMX7.js → chunk-IO6OM6WM.js} +3 -3
- package/dist/{chunk-2GL2WJZX.js → chunk-K5SC6SXO.js} +1 -1
- package/dist/{chunk-FLUXEHMU.js → chunk-RIGKOLNN.js} +3 -3
- package/dist/{chunk-MYFLYNPO.js → chunk-RNBUX5VF.js} +1 -1
- package/dist/{chunk-QGEITHUP.js → chunk-TMK6V5FV.js} +3 -3
- package/dist/{chunk-HCMTSR7E.js → chunk-TYVYWBY6.js} +1 -1
- package/dist/{chunk-HKA5LBYW.js → chunk-W5XP4ZVU.js} +3 -3
- package/dist/{chunk-MJQSHP3Y.js → chunk-X4ZABSCN.js} +3 -3
- package/dist/{chunk-PHEDW6C7.js → chunk-XDC7QGOF.js} +1 -1
- package/dist/{chunk-CBKOPVU6.js → chunk-XK5RZQMX.js} +3 -3
|
@@ -7,13 +7,13 @@ var __dirname = __pathDirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
initCommand,
|
|
9
9
|
reportSkills
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-IO6OM6WM.js";
|
|
11
11
|
import "./chunk-2QBYTIMH.js";
|
|
12
12
|
import "./chunk-VFFOT7KD.js";
|
|
13
13
|
import "./chunk-PEUP4MZR.js";
|
|
14
14
|
import "./chunk-RZ4DIJQW.js";
|
|
15
|
-
import "./chunk-CU7UY5YJ.js";
|
|
16
15
|
import "./chunk-J6PKNPI2.js";
|
|
16
|
+
import "./chunk-CU7UY5YJ.js";
|
|
17
17
|
import "./chunk-MBXCVCC4.js";
|
|
18
18
|
import "./chunk-CAKBGDCY.js";
|
|
19
19
|
export {
|
|
@@ -7,10 +7,6 @@ var __dirname = __pathDirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
consola
|
|
9
9
|
} from "./chunk-CU7UY5YJ.js";
|
|
10
|
-
import {
|
|
11
|
-
isJsonObject,
|
|
12
|
-
isJsonString
|
|
13
|
-
} from "./chunk-J6PKNPI2.js";
|
|
14
10
|
import {
|
|
15
11
|
defineCommand
|
|
16
12
|
} from "./chunk-MBXCVCC4.js";
|
|
@@ -20,23 +16,7 @@ import "./chunk-CAKBGDCY.js";
|
|
|
20
16
|
import { spawnSync } from "node:child_process";
|
|
21
17
|
import { existsSync } from "node:fs";
|
|
22
18
|
import path from "node:path";
|
|
23
|
-
var
|
|
24
|
-
const name = `@vibedgames/factory-${platform}-${arch}`;
|
|
25
|
-
if (platform !== "linux") {
|
|
26
|
-
return name;
|
|
27
|
-
}
|
|
28
|
-
const header = isJsonObject(report) ? report.header : void 0;
|
|
29
|
-
return isJsonObject(header) && isJsonString(header.glibcVersionRuntime) ? name : `${name}-musl`;
|
|
30
|
-
};
|
|
31
|
-
var factoryPackage = () => {
|
|
32
|
-
if (process.platform !== "linux") {
|
|
33
|
-
return factoryPackageFor(process.platform, process.arch, null);
|
|
34
|
-
}
|
|
35
|
-
const reportText = JSON.stringify(process.report.getReport());
|
|
36
|
-
const report = JSON.parse(reportText);
|
|
37
|
-
return factoryPackageFor(process.platform, process.arch, report);
|
|
38
|
-
};
|
|
39
|
-
var BIN = process.platform === "win32" ? "vg-factory.exe" : "vg-factory";
|
|
19
|
+
var FACTORY_PACKAGE = "@vibedgames/factory";
|
|
40
20
|
var npmGlobalRoot = () => {
|
|
41
21
|
try {
|
|
42
22
|
const res = spawnSync("npm", ["root", "-g"], { encoding: "utf-8", timeout: 3e4 });
|
|
@@ -49,7 +29,7 @@ var npmGlobalRoot = () => {
|
|
|
49
29
|
return null;
|
|
50
30
|
}
|
|
51
31
|
};
|
|
52
|
-
var
|
|
32
|
+
var findEntry = () => {
|
|
53
33
|
const override = process.env.VG_FACTORY_BIN;
|
|
54
34
|
if (override) {
|
|
55
35
|
return existsSync(override) ? override : null;
|
|
@@ -58,29 +38,30 @@ var findBinary = (pkg) => {
|
|
|
58
38
|
if (!root) {
|
|
59
39
|
return null;
|
|
60
40
|
}
|
|
61
|
-
const
|
|
62
|
-
return existsSync(
|
|
41
|
+
const entry = path.join(root, FACTORY_PACKAGE, "bin", "vg-factory.js");
|
|
42
|
+
return existsSync(entry) ? entry : null;
|
|
63
43
|
};
|
|
64
44
|
var runFactory = (args) => {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
const install = spawnSync("npm", ["install", "-g", pkg], { stdio: "inherit" });
|
|
45
|
+
let entry = findEntry();
|
|
46
|
+
if (!entry) {
|
|
47
|
+
consola.start(`Installing the factory (${FACTORY_PACKAGE})\u2026`);
|
|
48
|
+
const install = spawnSync("npm", ["install", "-g", FACTORY_PACKAGE], { stdio: "inherit" });
|
|
70
49
|
if (install.status !== 0 || install.error !== void 0) {
|
|
71
|
-
consola.error(
|
|
50
|
+
consola.error(
|
|
51
|
+
`Couldn't install the factory. Try manually: npm install -g ${FACTORY_PACKAGE}`
|
|
52
|
+
);
|
|
72
53
|
process.exit(1);
|
|
73
54
|
}
|
|
74
|
-
|
|
75
|
-
if (!
|
|
55
|
+
entry = findEntry();
|
|
56
|
+
if (!entry) {
|
|
76
57
|
consola.error(
|
|
77
|
-
`Installed ${
|
|
58
|
+
`Installed ${FACTORY_PACKAGE} but couldn't find its entry under npm's global root. Check \`npm root -g\`.`
|
|
78
59
|
);
|
|
79
60
|
process.exit(1);
|
|
80
61
|
}
|
|
81
62
|
consola.success("Factory installed.");
|
|
82
63
|
}
|
|
83
|
-
const result = spawnSync(
|
|
64
|
+
const result = spawnSync(process.execPath, [entry, ...args], { stdio: "inherit" });
|
|
84
65
|
process.exit(result.status ?? 1);
|
|
85
66
|
};
|
|
86
67
|
var factoryCommand = defineCommand({
|
|
@@ -94,6 +75,5 @@ var factoryCommand = defineCommand({
|
|
|
94
75
|
});
|
|
95
76
|
export {
|
|
96
77
|
factoryCommand,
|
|
97
|
-
factoryPackageFor,
|
|
98
78
|
runFactory
|
|
99
79
|
};
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
run,
|
|
12
12
|
settleSync,
|
|
13
13
|
syncSkills
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-IO6OM6WM.js";
|
|
15
15
|
import "./chunk-2QBYTIMH.js";
|
|
16
16
|
import {
|
|
17
17
|
fetchLatestVersion,
|
|
@@ -31,10 +31,10 @@ import {
|
|
|
31
31
|
assertKnownFlags
|
|
32
32
|
} from "./chunk-RZ4DIJQW.js";
|
|
33
33
|
import "./chunk-RYFO3ZPO.js";
|
|
34
|
+
import "./chunk-J6PKNPI2.js";
|
|
34
35
|
import {
|
|
35
36
|
consola
|
|
36
37
|
} from "./chunk-CU7UY5YJ.js";
|
|
37
|
-
import "./chunk-J6PKNPI2.js";
|
|
38
38
|
import {
|
|
39
39
|
defineCommand
|
|
40
40
|
} from "./chunk-MBXCVCC4.js";
|
package/dist/chunk-Y552BNFZ.js
CHANGED
|
@@ -22,8 +22,8 @@ import "./chunk-SAANBZ25.js";
|
|
|
22
22
|
import "./chunk-6FZPPUQH.js";
|
|
23
23
|
import "./chunk-ZI6PKVXG.js";
|
|
24
24
|
import "./chunk-RYFO3ZPO.js";
|
|
25
|
-
import "./chunk-CU7UY5YJ.js";
|
|
26
25
|
import "./chunk-J6PKNPI2.js";
|
|
26
|
+
import "./chunk-CU7UY5YJ.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-K5SC6SXO.js"), "configCommand"),
|
|
35
|
+
credits: lazy(() => import("./chunk-GUF6ADBF.js"), "creditsCommand"),
|
|
36
|
+
deploy: lazy(() => import("./chunk-X4ZABSCN.js"), "deployCommand"),
|
|
37
|
+
factory: lazy(() => import("./chunk-H4NBRFBY.js"), "factoryCommand"),
|
|
38
|
+
fork: lazy(() => import("./chunk-W5XP4ZVU.js"), "forkCommand"),
|
|
39
|
+
generate: lazy(() => import("./chunk-RIGKOLNN.js"), "generateCommand"),
|
|
40
|
+
init: lazy(() => import("./chunk-AZGENOOR.js"), "initCommand"),
|
|
41
|
+
login: lazy(() => import("./chunk-RNBUX5VF.js"), "loginCommand"),
|
|
42
|
+
logout: lazy(() => import("./chunk-XDC7QGOF.js"), "logoutCommand"),
|
|
43
|
+
new: lazy(() => import("./chunk-TMK6V5FV.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:
|
|
@@ -52,12 +52,12 @@ var main = defineCommand({
|
|
|
52
52
|
return defineCommand({
|
|
53
53
|
meta: playtestCommand.meta,
|
|
54
54
|
subCommands: {
|
|
55
|
-
run: lazy(() => import("./chunk-
|
|
55
|
+
run: lazy(() => import("./chunk-XK5RZQMX.js"), "playtestRunCommand")
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
58
|
},
|
|
59
|
-
update: lazy(() => import("./chunk-
|
|
60
|
-
whoami: lazy(() => import("./chunk-
|
|
59
|
+
update: lazy(() => import("./chunk-HASKWB6B.js"), "updateCommand"),
|
|
60
|
+
whoami: lazy(() => import("./chunk-TYVYWBY6.js"), "whoamiCommand")
|
|
61
61
|
}
|
|
62
62
|
});
|
|
63
63
|
var subcommand = process.argv.at(2);
|
|
@@ -66,7 +66,7 @@ if (subcommand && !["update", "init", "completions"].includes(subcommand)) {
|
|
|
66
66
|
maybeScheduleAutoUpdate();
|
|
67
67
|
}
|
|
68
68
|
if (subcommand === "factory") {
|
|
69
|
-
const { runFactory } = await import("./chunk-
|
|
69
|
+
const { runFactory } = await import("./chunk-H4NBRFBY.js");
|
|
70
70
|
runFactory(process.argv.slice(3));
|
|
71
71
|
}
|
|
72
72
|
if (subcommand === "playtest" && process.argv.at(3) !== "run") {
|
package/package.json
CHANGED
|
@@ -20,10 +20,10 @@ import {
|
|
|
20
20
|
import {
|
|
21
21
|
getToken
|
|
22
22
|
} from "./chunk-RYFO3ZPO.js";
|
|
23
|
+
import "./chunk-J6PKNPI2.js";
|
|
23
24
|
import {
|
|
24
25
|
consola
|
|
25
26
|
} from "./chunk-CU7UY5YJ.js";
|
|
26
|
-
import "./chunk-J6PKNPI2.js";
|
|
27
27
|
import {
|
|
28
28
|
defineCommand
|
|
29
29
|
} from "./chunk-MBXCVCC4.js";
|
|
@@ -19,13 +19,13 @@ import {
|
|
|
19
19
|
import {
|
|
20
20
|
assertKnownFlags
|
|
21
21
|
} from "./chunk-RZ4DIJQW.js";
|
|
22
|
-
import {
|
|
23
|
-
consola
|
|
24
|
-
} from "./chunk-CU7UY5YJ.js";
|
|
25
22
|
import {
|
|
26
23
|
isJsonObject,
|
|
27
24
|
isJsonString
|
|
28
25
|
} from "./chunk-J6PKNPI2.js";
|
|
26
|
+
import {
|
|
27
|
+
consola
|
|
28
|
+
} from "./chunk-CU7UY5YJ.js";
|
|
29
29
|
import {
|
|
30
30
|
defineCommand
|
|
31
31
|
} from "./chunk-MBXCVCC4.js";
|
|
@@ -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";
|
|
25
26
|
import {
|
|
26
27
|
consola
|
|
27
28
|
} from "./chunk-CU7UY5YJ.js";
|
|
28
|
-
import "./chunk-J6PKNPI2.js";
|
|
29
29
|
import {
|
|
30
30
|
defineCommand
|
|
31
31
|
} from "./chunk-MBXCVCC4.js";
|
|
@@ -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";
|
|
29
26
|
import {
|
|
30
27
|
isJsonNumber,
|
|
31
28
|
isJsonObject,
|
|
32
29
|
isJsonString
|
|
33
30
|
} 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";
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
getBaseUrl,
|
|
14
14
|
saveConfig
|
|
15
15
|
} from "./chunk-RYFO3ZPO.js";
|
|
16
|
+
import "./chunk-J6PKNPI2.js";
|
|
16
17
|
import {
|
|
17
18
|
consola
|
|
18
19
|
} from "./chunk-CU7UY5YJ.js";
|
|
19
|
-
import "./chunk-J6PKNPI2.js";
|
|
20
20
|
import {
|
|
21
21
|
defineCommand
|
|
22
22
|
} 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";
|
|
23
20
|
import {
|
|
24
21
|
isJsonObject,
|
|
25
22
|
isJsonString
|
|
26
23
|
} 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";
|
|
23
24
|
import {
|
|
24
25
|
consola
|
|
25
26
|
} 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
|
-
consola
|
|
30
|
-
} from "./chunk-CU7UY5YJ.js";
|
|
31
28
|
import {
|
|
32
29
|
isJsonObject
|
|
33
30
|
} 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";
|
|
@@ -29,12 +29,12 @@ import {
|
|
|
29
29
|
assertKnownFlags
|
|
30
30
|
} from "./chunk-RZ4DIJQW.js";
|
|
31
31
|
import "./chunk-RYFO3ZPO.js";
|
|
32
|
-
import {
|
|
33
|
-
consola
|
|
34
|
-
} from "./chunk-CU7UY5YJ.js";
|
|
35
32
|
import {
|
|
36
33
|
isJsonString
|
|
37
34
|
} from "./chunk-J6PKNPI2.js";
|
|
35
|
+
import {
|
|
36
|
+
consola
|
|
37
|
+
} from "./chunk-CU7UY5YJ.js";
|
|
38
38
|
import {
|
|
39
39
|
defineCommand
|
|
40
40
|
} 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";
|
|
10
11
|
import {
|
|
11
12
|
consola
|
|
12
13
|
} from "./chunk-CU7UY5YJ.js";
|
|
13
|
-
import "./chunk-J6PKNPI2.js";
|
|
14
14
|
import {
|
|
15
15
|
defineCommand
|
|
16
16
|
} from "./chunk-MBXCVCC4.js";
|
|
@@ -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";
|
|
36
33
|
import {
|
|
37
34
|
isJsonObject,
|
|
38
35
|
isJsonString
|
|
39
36
|
} 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";
|