create-skybridge 0.35.12 → 0.35.13
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 +17 -14
- package/package.json +1 -1
- package/template/AGENTS.md +1 -1
package/dist/index.js
CHANGED
|
@@ -153,7 +153,8 @@ 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
|
|
156
|
+
// 4. Ask about skills installation (installed by default)
|
|
157
|
+
let skill = true;
|
|
157
158
|
if (interactive) {
|
|
158
159
|
const skillsResult = await prompts.confirm({
|
|
159
160
|
message: "Install the coding agents skills? (recommended)",
|
|
@@ -162,18 +163,20 @@ export async function init(args = process.argv.slice(2)) {
|
|
|
162
163
|
if (prompts.isCancel(skillsResult)) {
|
|
163
164
|
return cancel();
|
|
164
165
|
}
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
166
|
+
skill = skillsResult;
|
|
167
|
+
}
|
|
168
|
+
if (skill) {
|
|
169
|
+
run([
|
|
170
|
+
...getPkgExecCmd(pkgManager, "skills"),
|
|
171
|
+
"add",
|
|
172
|
+
"alpic-ai/skybridge",
|
|
173
|
+
"-s",
|
|
174
|
+
"chatgpt-app-builder",
|
|
175
|
+
...(interactive ? [] : ["--yes"]),
|
|
176
|
+
], {
|
|
177
|
+
stdio: "inherit",
|
|
178
|
+
cwd: targetDir,
|
|
179
|
+
});
|
|
177
180
|
}
|
|
178
181
|
// 5. Ask about immediate installation
|
|
179
182
|
let immediate = argImmediate;
|
|
@@ -278,6 +281,6 @@ function getPkgExecCmd(pkgManager, cmd) {
|
|
|
278
281
|
case "deno":
|
|
279
282
|
return ["deno", "run", "-A", `npm:${cmd}`];
|
|
280
283
|
default:
|
|
281
|
-
return ["npx", cmd];
|
|
284
|
+
return ["npx", "--yes", cmd];
|
|
282
285
|
}
|
|
283
286
|
}
|
package/package.json
CHANGED
package/template/AGENTS.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
This is a ChatGPT/MCP app built with Skybridge. ALWAYS use the `chatgpt-app-builder` skill when planning or updating the codebase.
|