vybekiit 0.7.8 → 0.7.9
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/bin.js +36 -13
- package/package.json +8 -8
package/dist/bin.js
CHANGED
|
@@ -10213,18 +10213,19 @@ var execFileAsync3 = promisify3(execFile3);
|
|
|
10213
10213
|
var HERE2 = dirname3(fileURLToPath2(import.meta.url));
|
|
10214
10214
|
var MIRROR_ORG2 = "VybeKiit";
|
|
10215
10215
|
var KIT_MIRROR_REPO = "kit";
|
|
10216
|
+
var kitMirrorCloneArgs = (repoName, targetDir) => [
|
|
10217
|
+
"repo",
|
|
10218
|
+
"clone",
|
|
10219
|
+
`https://github.com/${MIRROR_ORG2}/${repoName}`,
|
|
10220
|
+
targetDir,
|
|
10221
|
+
"--",
|
|
10222
|
+
"--depth",
|
|
10223
|
+
"1",
|
|
10224
|
+
"--no-tags"
|
|
10225
|
+
];
|
|
10216
10226
|
var cloneKitMirror = async (repoName, targetDir) => {
|
|
10217
10227
|
try {
|
|
10218
|
-
await execFileAsync3("gh",
|
|
10219
|
-
"repo",
|
|
10220
|
-
"clone",
|
|
10221
|
-
`${MIRROR_ORG2}/${repoName}`,
|
|
10222
|
-
targetDir,
|
|
10223
|
-
"--",
|
|
10224
|
-
"--depth",
|
|
10225
|
-
"1",
|
|
10226
|
-
"--no-tags"
|
|
10227
|
-
]);
|
|
10228
|
+
await execFileAsync3("gh", kitMirrorCloneArgs(repoName, targetDir));
|
|
10228
10229
|
} catch (error) {
|
|
10229
10230
|
throw new ScaffoldError(
|
|
10230
10231
|
"Couldn't download the kit workspace. Make sure your assistant is signed in to GitHub: run gh auth login --web",
|
|
@@ -10534,7 +10535,7 @@ var kitWorkspacePackageJson = (kitRootPkg, template) => {
|
|
|
10534
10535
|
)}
|
|
10535
10536
|
`;
|
|
10536
10537
|
};
|
|
10537
|
-
var
|
|
10538
|
+
var repairKitBuildRoots = async (kitRoot, dest) => {
|
|
10538
10539
|
for (const rel of KIT_BUILD_ROOT_FILES) {
|
|
10539
10540
|
const src = join11(kitRoot, rel);
|
|
10540
10541
|
if (await pathExists3(src)) {
|
|
@@ -10631,7 +10632,7 @@ var scaffoldKitWorkspace = async (options) => {
|
|
|
10631
10632
|
join11(options.dest, "pnpm-workspace.yaml"),
|
|
10632
10633
|
kitWorkspacePnpmYaml(options.template, sourceWorkspaceYaml)
|
|
10633
10634
|
);
|
|
10634
|
-
await
|
|
10635
|
+
await repairKitBuildRoots(options.kitRoot, options.dest);
|
|
10635
10636
|
await ensureAgentSkillSymlinks(surfaceDest);
|
|
10636
10637
|
await shipFirstPartyMcpConfigs({ dest: options.dest, template: options.template });
|
|
10637
10638
|
return { dest: options.dest };
|
|
@@ -11013,6 +11014,27 @@ var defaultPathExists = async (path) => {
|
|
|
11013
11014
|
return false;
|
|
11014
11015
|
}
|
|
11015
11016
|
};
|
|
11017
|
+
var BUYER_BUILD_HELPER = join14("scripts", "lib", "tsupWorkspaceAliases.mjs");
|
|
11018
|
+
var repairProjectBuildRoots = async (appPath, deps = {
|
|
11019
|
+
pathExists: pathExists3,
|
|
11020
|
+
locateKit: locateKitWorkspace,
|
|
11021
|
+
repairFromKit: repairKitBuildRoots
|
|
11022
|
+
}) => {
|
|
11023
|
+
const helperPath = join14(appPath, BUYER_BUILD_HELPER);
|
|
11024
|
+
if (await deps.pathExists(helperPath)) {
|
|
11025
|
+
return true;
|
|
11026
|
+
}
|
|
11027
|
+
let source;
|
|
11028
|
+
try {
|
|
11029
|
+
source = await deps.locateKit();
|
|
11030
|
+
await deps.repairFromKit(source.kitRoot, appPath);
|
|
11031
|
+
return await deps.pathExists(helperPath);
|
|
11032
|
+
} catch {
|
|
11033
|
+
return false;
|
|
11034
|
+
} finally {
|
|
11035
|
+
await source?.cleanup?.();
|
|
11036
|
+
}
|
|
11037
|
+
};
|
|
11016
11038
|
var defaultIsEmptyDir = async (path) => {
|
|
11017
11039
|
try {
|
|
11018
11040
|
const entries = await readdir6(path);
|
|
@@ -11154,8 +11176,9 @@ var defaultDeps = () => ({
|
|
|
11154
11176
|
openBrowser: defaultOpenBrowser,
|
|
11155
11177
|
prepareProjectTools: async (appPath) => {
|
|
11156
11178
|
try {
|
|
11179
|
+
const buildRootsReady = await repairProjectBuildRoots(appPath);
|
|
11157
11180
|
const writtenConfigs = await shipFirstPartyMcpConfigs({ dest: appPath, template: "web" });
|
|
11158
|
-
return writtenConfigs.length === 2;
|
|
11181
|
+
return buildRootsReady && writtenConfigs.length === 2;
|
|
11159
11182
|
} catch {
|
|
11160
11183
|
return false;
|
|
11161
11184
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vybekiit",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.9",
|
|
4
4
|
"description": "Choose your services, sign in, create a VybeKiit app, and open its verified local welcome page.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
"tsup": "8.5.1",
|
|
33
33
|
"typescript": "5.7.2",
|
|
34
34
|
"vitest": "3.2.6",
|
|
35
|
-
"@vybekiit/agent-kit": "0.7.
|
|
36
|
-
"@vybekiit/
|
|
37
|
-
"@vybekiit/
|
|
38
|
-
"@vybekiit/
|
|
39
|
-
"@vybekiit/
|
|
40
|
-
"@vybekiit/
|
|
41
|
-
"@vybekiit/
|
|
35
|
+
"@vybekiit/agent-kit": "0.7.9",
|
|
36
|
+
"@vybekiit/core": "0.7.9",
|
|
37
|
+
"@vybekiit/db": "0.7.9",
|
|
38
|
+
"@vybekiit/agent-mcp": "0.7.9",
|
|
39
|
+
"@vybekiit/report-mode": "0.7.9",
|
|
40
|
+
"@vybekiit/deploy": "0.7.9",
|
|
41
|
+
"@vybekiit/payments": "0.7.9"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"build": "tsup && node scripts/bundleGlobalSkills.mjs",
|