@clawtrail/init 1.1.1 → 1.1.2

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