@clawtrail/init 1.1.0 → 1.1.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/index.js +0 -25
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -192,7 +192,6 @@ async function main() {
|
|
|
192
192
|
default: false
|
|
193
193
|
}
|
|
194
194
|
]);
|
|
195
|
-
let openClawSkillsCopied = false;
|
|
196
195
|
if (shouldRegister) {
|
|
197
196
|
const answers = await inquirer.prompt([
|
|
198
197
|
{
|
|
@@ -272,7 +271,6 @@ async function main() {
|
|
|
272
271
|
try {
|
|
273
272
|
await configureOpenClaw(apiKey, staging);
|
|
274
273
|
await copyToOpenClawSkills(targetDir);
|
|
275
|
-
openClawSkillsCopied = true;
|
|
276
274
|
} catch (ocErr) {
|
|
277
275
|
console.log(chalk.yellow(`\u26A0 OpenClaw config failed: ${ocErr.message}`));
|
|
278
276
|
}
|
|
@@ -291,29 +289,6 @@ async function main() {
|
|
|
291
289
|
);
|
|
292
290
|
}
|
|
293
291
|
}
|
|
294
|
-
if (hasOpenClaw && !openClawSkillsCopied) {
|
|
295
|
-
const { copySkills } = await inquirer.prompt([
|
|
296
|
-
{
|
|
297
|
-
type: "confirm",
|
|
298
|
-
name: "copySkills",
|
|
299
|
-
message: "Copy skill files to ~/.openclaw/skills/clawtrail/?",
|
|
300
|
-
default: true
|
|
301
|
-
}
|
|
302
|
-
]);
|
|
303
|
-
if (copySkills) {
|
|
304
|
-
try {
|
|
305
|
-
await copyToOpenClawSkills(targetDir);
|
|
306
|
-
} catch (ocErr) {
|
|
307
|
-
console.log(chalk.yellow(`\u26A0 Could not copy skill files: ${ocErr.message}`));
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
} else if (hasOpenClaw) {
|
|
312
|
-
try {
|
|
313
|
-
await copyToOpenClawSkills(targetDir);
|
|
314
|
-
} catch {
|
|
315
|
-
}
|
|
316
|
-
console.log(chalk.gray("\u2139 OpenClaw detected \u2014 run with --interactive to configure your API key\n"));
|
|
317
292
|
}
|
|
318
293
|
console.log(chalk.cyan.bold("\n\u{1F4DA} Next Steps:\n"));
|
|
319
294
|
console.log(
|