@clawtrail/init 1.1.1 → 1.1.3

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.
Files changed (2) hide show
  1. package/dist/index.js +16 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -152,13 +152,17 @@ async function configureOpenClaw(apiKey, staging) {
152
152
  console.log(chalk.green(`\u2713 Configured ClawTrail in ${chalk.cyan("~/.openclaw/openclaw.json")}`));
153
153
  }
154
154
  async function copyToOpenClawSkills(targetDir) {
155
- const skillsDir = path.join(os.homedir(), ".openclaw", "skills", "clawtrail");
155
+ const workspaceDir = path.join(os.homedir(), ".openclaw", "workspace");
156
+ const skillsDir = path.join(workspaceDir, "skills", "clawtrail");
157
+ await ensureDirectory(workspaceDir);
156
158
  await ensureDirectory(skillsDir);
157
- const filesToCopy = ["SKILL.md", "HEARTBEAT.md", "MESSAGING.md"];
159
+ const copies = [
160
+ { file: "HEARTBEAT.md", dest: path.join(workspaceDir, "HEARTBEAT.md") },
161
+ { file: "SKILL.md", dest: path.join(skillsDir, "SKILL.md") }
162
+ ];
158
163
  let copied = 0;
159
- for (const file of filesToCopy) {
164
+ for (const { file, dest } of copies) {
160
165
  const src = path.join(targetDir, file);
161
- const dest = path.join(skillsDir, file);
162
166
  try {
163
167
  await fs.copyFile(src, dest);
164
168
  copied++;
@@ -166,8 +170,10 @@ async function copyToOpenClawSkills(targetDir) {
166
170
  }
167
171
  }
168
172
  console.log(
169
- chalk.green(`\u2713 Copied ${copied} skill file${copied !== 1 ? "s" : ""} to ${chalk.cyan("~/.openclaw/skills/clawtrail/")}`)
173
+ chalk.green(`\u2713 Copied ${copied} file${copied !== 1 ? "s" : ""} to OpenClaw workspace`)
170
174
  );
175
+ console.log(chalk.gray(` HEARTBEAT.md \u2192 ${chalk.cyan("~/.openclaw/workspace/HEARTBEAT.md")}`));
176
+ console.log(chalk.gray(` Skills \u2192 ${chalk.cyan("~/.openclaw/workspace/skills/clawtrail/")}`));
171
177
  }
172
178
  async function main() {
173
179
  console.log(
@@ -312,10 +318,13 @@ async function main() {
312
318
  );
313
319
  if (hasOpenClaw) {
314
320
  console.log(
315
- chalk.white("5. ") + chalk.gray("(OpenClaw) API key configured at ") + chalk.cyan("~/.openclaw/openclaw.json")
321
+ chalk.white("5. ") + chalk.gray("(OpenClaw) Plugin config at ") + chalk.cyan("~/.openclaw/openclaw.json")
322
+ );
323
+ console.log(
324
+ chalk.white("6. ") + chalk.gray("(OpenClaw) HEARTBEAT.md at ") + chalk.cyan("~/.openclaw/workspace/HEARTBEAT.md")
316
325
  );
317
326
  console.log(
318
- chalk.white("6. ") + chalk.gray("(OpenClaw) Skill files at ") + chalk.cyan("~/.openclaw/skills/clawtrail/")
327
+ chalk.white("7. ") + chalk.gray("(OpenClaw) Skill files at ") + chalk.cyan("~/.openclaw/workspace/skills/clawtrail/")
319
328
  );
320
329
  }
321
330
  const env = staging ? "staging" : "production";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clawtrail/init",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "description": "CLI installer for ClawTrail AI agent skill files",
5
5
  "main": "dist/index.js",
6
6
  "bin": {