coding-friend-cli 1.9.0 → 1.9.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 CHANGED
@@ -57,11 +57,11 @@ session.command("save").description("Save current Claude Code session to sync fo
57
57
  "-s, --session-id <id>",
58
58
  "session UUID to save (default: auto-detect newest)"
59
59
  ).option("-l, --label <label>", "label for this session").action(async (opts) => {
60
- const { sessionSaveCommand } = await import("./session-NCQQJRSH.js");
60
+ const { sessionSaveCommand } = await import("./session-74F7L5LV.js");
61
61
  await sessionSaveCommand(opts);
62
62
  });
63
63
  session.command("load").description("Load a saved session from sync folder").action(async () => {
64
- const { sessionLoadCommand } = await import("./session-NCQQJRSH.js");
64
+ const { sessionLoadCommand } = await import("./session-74F7L5LV.js");
65
65
  await sessionLoadCommand();
66
66
  });
67
67
  var dev = program.command("dev").description("Development mode commands");
@@ -24,7 +24,8 @@ import {
24
24
  statSync,
25
25
  copyFileSync,
26
26
  existsSync,
27
- readFileSync
27
+ readFileSync,
28
+ mkdirSync
28
29
  } from "fs";
29
30
  import { join } from "path";
30
31
  import { hostname as osHostname } from "os";
@@ -81,6 +82,7 @@ function saveSession(opts) {
81
82
  const destDir = join(syncDir, "sessions", sessionId);
82
83
  const destJsonl = join(destDir, "session.jsonl");
83
84
  const destMeta = join(destDir, "meta.json");
85
+ mkdirSync(destDir, { recursive: true });
84
86
  copyFileSync(jsonlPath, destJsonl);
85
87
  const meta = {
86
88
  sessionId,
@@ -97,6 +99,7 @@ function loadSession(meta, localProjectPath, syncDir) {
97
99
  const destDir = claudeSessionDir(encodedPath);
98
100
  const destPath = join(destDir, `${meta.sessionId}.jsonl`);
99
101
  const srcPath = join(syncDir, "sessions", meta.sessionId, "session.jsonl");
102
+ mkdirSync(destDir, { recursive: true });
100
103
  copyFileSync(srcPath, destPath);
101
104
  }
102
105
  function hostname() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coding-friend-cli",
3
- "version": "1.9.0",
3
+ "version": "1.9.1",
4
4
  "description": "CLI for coding-friend — host learning docs, setup MCP server, initialize projects",
5
5
  "type": "module",
6
6
  "bin": {