@spader/dotllm 1.2.6 → 1.3.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spader/dotllm",
3
- "version": "1.2.6",
3
+ "version": "1.3.0",
4
4
  "description": "A simple CLI to clone, manage, and link repositories for LLM reference",
5
5
  "type": "module",
6
6
  "repository": {
@@ -1,13 +1,18 @@
1
1
  // @bun
2
2
  // src/core/config.ts
3
3
  import fs from "fs";
4
+ import os from "os";
4
5
  import path from "path";
5
6
  import { z } from "zod";
6
7
  var LOCAL_DIR = ".llm";
7
8
  var LOCAL_FILE = path.join(LOCAL_DIR, "dotllm.json");
8
9
  var REF_DIR = path.join(LOCAL_DIR, "reference");
9
10
  function home() {
10
- return path.join(process.env.HOME ?? "", ".local", "share", "dotllm");
11
+ if (process.platform === "win32") {
12
+ const appData = process.env.LOCALAPPDATA ?? path.join(os.homedir(), "AppData", "Local");
13
+ return path.join(appData, "dotllm");
14
+ }
15
+ return path.join(process.env.HOME ?? os.homedir(), ".local", "share", "dotllm");
11
16
  }
12
17
  var RepoEntry = z.object({
13
18
  kind: z.enum(["url", "file"]),