create-skybridge 0.0.0-dev.91671da → 0.0.0-dev.916ff75
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/index.js +18 -21
- package/package.json +2 -2
- package/template/node_modules/.bin/alpic +2 -2
- package/template/node_modules/.bin/sb +2 -2
- package/template/node_modules/.bin/skybridge +2 -2
- package/template/node_modules/.bin/tsc +2 -2
- package/template/node_modules/.bin/tsserver +2 -2
- package/template/package.json +4 -4
- package/template/tsconfig.json +5 -1
package/dist/index.js
CHANGED
|
@@ -153,8 +153,7 @@ export async function init(args = process.argv.slice(2)) {
|
|
|
153
153
|
}
|
|
154
154
|
const userAgent = process.env.npm_config_user_agent;
|
|
155
155
|
const pkgManager = userAgent?.split(" ")[0]?.split("/")[0] || "npm";
|
|
156
|
-
// 4. Ask about skills installation
|
|
157
|
-
let skill = true;
|
|
156
|
+
// 4. Ask about skills installation
|
|
158
157
|
if (interactive) {
|
|
159
158
|
const skillsResult = await prompts.confirm({
|
|
160
159
|
message: "Install the coding agents skills? (recommended)",
|
|
@@ -163,20 +162,18 @@ export async function init(args = process.argv.slice(2)) {
|
|
|
163
162
|
if (prompts.isCancel(skillsResult)) {
|
|
164
163
|
return cancel();
|
|
165
164
|
}
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
cwd: targetDir,
|
|
179
|
-
});
|
|
165
|
+
if (skillsResult) {
|
|
166
|
+
run([
|
|
167
|
+
...getPkgExecCmd(pkgManager, "skills"),
|
|
168
|
+
"add",
|
|
169
|
+
"alpic-ai/skybridge",
|
|
170
|
+
"-s",
|
|
171
|
+
"chatgpt-app-builder",
|
|
172
|
+
], {
|
|
173
|
+
stdio: "inherit",
|
|
174
|
+
cwd: targetDir,
|
|
175
|
+
});
|
|
176
|
+
}
|
|
180
177
|
}
|
|
181
178
|
// 5. Ask about immediate installation
|
|
182
179
|
let immediate = argImmediate;
|
|
@@ -270,17 +267,17 @@ function emptyDir(dir) {
|
|
|
270
267
|
fs.rmSync(path.join(dir, entry.name), { recursive: true, force: true });
|
|
271
268
|
}
|
|
272
269
|
}
|
|
273
|
-
function getPkgExecCmd(pkgManager,
|
|
270
|
+
function getPkgExecCmd(pkgManager, cmd) {
|
|
274
271
|
switch (pkgManager) {
|
|
275
272
|
case "yarn":
|
|
276
|
-
return ["yarn", "dlx",
|
|
273
|
+
return ["yarn", "dlx", cmd];
|
|
277
274
|
case "pnpm":
|
|
278
|
-
return ["pnpm", "dlx",
|
|
275
|
+
return ["pnpm", "dlx", cmd];
|
|
279
276
|
case "bun":
|
|
280
|
-
return ["bunx",
|
|
277
|
+
return ["bunx", cmd];
|
|
281
278
|
case "deno":
|
|
282
279
|
return ["deno", "run", "-A", `npm:${cmd}`];
|
|
283
280
|
default:
|
|
284
|
-
return ["npx",
|
|
281
|
+
return ["npx", cmd];
|
|
285
282
|
}
|
|
286
283
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-skybridge",
|
|
3
|
-
"version": "0.0.0-dev.
|
|
3
|
+
"version": "0.0.0-dev.916ff75",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Alpic",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"mri": "^1.2.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"typescript": "^
|
|
25
|
+
"typescript": "^6.0.2",
|
|
26
26
|
"vitest": "^4.1.1"
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
@@ -10,9 +10,9 @@ case `uname` in
|
|
|
10
10
|
esac
|
|
11
11
|
|
|
12
12
|
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/home/runner/work/skybridge/skybridge/node_modules/.pnpm/alpic@1.
|
|
13
|
+
export NODE_PATH="/home/runner/work/skybridge/skybridge/node_modules/.pnpm/alpic@1.101.0_@opentelemetry+api@1.9.0_arktype@2.1.27_rxjs@7.8.2_typescript@6.0.2/node_modules/alpic/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/alpic@1.101.0_@opentelemetry+api@1.9.0_arktype@2.1.27_rxjs@7.8.2_typescript@6.0.2/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/node_modules"
|
|
14
14
|
else
|
|
15
|
-
export NODE_PATH="/home/runner/work/skybridge/skybridge/node_modules/.pnpm/alpic@1.
|
|
15
|
+
export NODE_PATH="/home/runner/work/skybridge/skybridge/node_modules/.pnpm/alpic@1.101.0_@opentelemetry+api@1.9.0_arktype@2.1.27_rxjs@7.8.2_typescript@6.0.2/node_modules/alpic/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/alpic@1.101.0_@opentelemetry+api@1.9.0_arktype@2.1.27_rxjs@7.8.2_typescript@6.0.2/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
16
|
fi
|
|
17
17
|
if [ -x "$basedir/node" ]; then
|
|
18
18
|
exec "$basedir/node" "$basedir/../alpic/bin/run.js" "$@"
|
|
@@ -10,9 +10,9 @@ case `uname` in
|
|
|
10
10
|
esac
|
|
11
11
|
|
|
12
12
|
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/home/runner/work/skybridge/skybridge/node_modules/.pnpm/skybridge@0.35.
|
|
13
|
+
export NODE_PATH="/home/runner/work/skybridge/skybridge/node_modules/.pnpm/skybridge@0.35.10_@modelcontextprotocol+sdk@1.27.1_zod@4.3.6__@skybridge+devtools@0.35._5fbc6036c16ec6e170268da7cfa46741/node_modules/skybridge/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/skybridge@0.35.10_@modelcontextprotocol+sdk@1.27.1_zod@4.3.6__@skybridge+devtools@0.35._5fbc6036c16ec6e170268da7cfa46741/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/node_modules"
|
|
14
14
|
else
|
|
15
|
-
export NODE_PATH="/home/runner/work/skybridge/skybridge/node_modules/.pnpm/skybridge@0.35.
|
|
15
|
+
export NODE_PATH="/home/runner/work/skybridge/skybridge/node_modules/.pnpm/skybridge@0.35.10_@modelcontextprotocol+sdk@1.27.1_zod@4.3.6__@skybridge+devtools@0.35._5fbc6036c16ec6e170268da7cfa46741/node_modules/skybridge/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/skybridge@0.35.10_@modelcontextprotocol+sdk@1.27.1_zod@4.3.6__@skybridge+devtools@0.35._5fbc6036c16ec6e170268da7cfa46741/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
16
|
fi
|
|
17
17
|
if [ -x "$basedir/node" ]; then
|
|
18
18
|
exec "$basedir/node" "$basedir/../skybridge/bin/run.js" "$@"
|
|
@@ -10,9 +10,9 @@ case `uname` in
|
|
|
10
10
|
esac
|
|
11
11
|
|
|
12
12
|
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/home/runner/work/skybridge/skybridge/node_modules/.pnpm/skybridge@0.35.
|
|
13
|
+
export NODE_PATH="/home/runner/work/skybridge/skybridge/node_modules/.pnpm/skybridge@0.35.10_@modelcontextprotocol+sdk@1.27.1_zod@4.3.6__@skybridge+devtools@0.35._5fbc6036c16ec6e170268da7cfa46741/node_modules/skybridge/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/skybridge@0.35.10_@modelcontextprotocol+sdk@1.27.1_zod@4.3.6__@skybridge+devtools@0.35._5fbc6036c16ec6e170268da7cfa46741/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/node_modules"
|
|
14
14
|
else
|
|
15
|
-
export NODE_PATH="/home/runner/work/skybridge/skybridge/node_modules/.pnpm/skybridge@0.35.
|
|
15
|
+
export NODE_PATH="/home/runner/work/skybridge/skybridge/node_modules/.pnpm/skybridge@0.35.10_@modelcontextprotocol+sdk@1.27.1_zod@4.3.6__@skybridge+devtools@0.35._5fbc6036c16ec6e170268da7cfa46741/node_modules/skybridge/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/skybridge@0.35.10_@modelcontextprotocol+sdk@1.27.1_zod@4.3.6__@skybridge+devtools@0.35._5fbc6036c16ec6e170268da7cfa46741/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
16
|
fi
|
|
17
17
|
if [ -x "$basedir/node" ]; then
|
|
18
18
|
exec "$basedir/node" "$basedir/../skybridge/bin/run.js" "$@"
|
|
@@ -10,9 +10,9 @@ case `uname` in
|
|
|
10
10
|
esac
|
|
11
11
|
|
|
12
12
|
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/home/runner/work/skybridge/skybridge/node_modules/.pnpm/typescript@
|
|
13
|
+
export NODE_PATH="/home/runner/work/skybridge/skybridge/node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/typescript@6.0.2/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/node_modules"
|
|
14
14
|
else
|
|
15
|
-
export NODE_PATH="/home/runner/work/skybridge/skybridge/node_modules/.pnpm/typescript@
|
|
15
|
+
export NODE_PATH="/home/runner/work/skybridge/skybridge/node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/typescript@6.0.2/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
16
|
fi
|
|
17
17
|
if [ -x "$basedir/node" ]; then
|
|
18
18
|
exec "$basedir/node" "$basedir/../typescript/bin/tsc" "$@"
|
|
@@ -10,9 +10,9 @@ case `uname` in
|
|
|
10
10
|
esac
|
|
11
11
|
|
|
12
12
|
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/home/runner/work/skybridge/skybridge/node_modules/.pnpm/typescript@
|
|
13
|
+
export NODE_PATH="/home/runner/work/skybridge/skybridge/node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/typescript@6.0.2/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/node_modules"
|
|
14
14
|
else
|
|
15
|
-
export NODE_PATH="/home/runner/work/skybridge/skybridge/node_modules/.pnpm/typescript@
|
|
15
|
+
export NODE_PATH="/home/runner/work/skybridge/skybridge/node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/typescript@6.0.2/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
16
|
fi
|
|
17
17
|
if [ -x "$basedir/node" ]; then
|
|
18
18
|
exec "$basedir/node" "$basedir/../typescript/bin/tsserver" "$@"
|
package/template/package.json
CHANGED
|
@@ -14,18 +14,18 @@
|
|
|
14
14
|
"@modelcontextprotocol/sdk": "^1.27.1",
|
|
15
15
|
"react": "^19.2.4",
|
|
16
16
|
"react-dom": "^19.2.4",
|
|
17
|
-
"skybridge": ">=0.35.
|
|
17
|
+
"skybridge": ">=0.35.10 <1.0.0",
|
|
18
18
|
"vite": "^8.0.2",
|
|
19
19
|
"zod": "^4.3.6"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@skybridge/devtools": ">=0.35.
|
|
22
|
+
"@skybridge/devtools": ">=0.35.10 <1.0.0",
|
|
23
23
|
"@types/react": "^19.2.14",
|
|
24
24
|
"@types/react-dom": "^19.2.3",
|
|
25
25
|
"@vitejs/plugin-react": "^6.0.1",
|
|
26
|
-
"alpic": "^1.
|
|
26
|
+
"alpic": "^1.101.0",
|
|
27
27
|
"tsx": "^4.21.0",
|
|
28
|
-
"typescript": "^
|
|
28
|
+
"typescript": "^6.0.2"
|
|
29
29
|
},
|
|
30
30
|
"engines": {
|
|
31
31
|
"node": ">=24.14.0"
|
package/template/tsconfig.json
CHANGED