loclaude 0.0.1-alpha.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.
Files changed (39) hide show
  1. package/.claude/CLAUDE.md +175 -0
  2. package/CHANGELOG.md +49 -0
  3. package/LICENSE +31 -0
  4. package/README.md +249 -0
  5. package/bin/index.mjs +5 -0
  6. package/bin/index.ts +5 -0
  7. package/docker/docker-compose.yml +85 -0
  8. package/libs/cli/dist/cac.d.ts +6 -0
  9. package/libs/cli/dist/cac.d.ts.map +1 -0
  10. package/libs/cli/dist/commands/config.d.ts +6 -0
  11. package/libs/cli/dist/commands/config.d.ts.map +1 -0
  12. package/libs/cli/dist/commands/docker.d.ts +17 -0
  13. package/libs/cli/dist/commands/docker.d.ts.map +1 -0
  14. package/libs/cli/dist/commands/doctor.d.ts +5 -0
  15. package/libs/cli/dist/commands/doctor.d.ts.map +1 -0
  16. package/libs/cli/dist/commands/index.d.ts +6 -0
  17. package/libs/cli/dist/commands/index.d.ts.map +1 -0
  18. package/libs/cli/dist/commands/init.d.ts +9 -0
  19. package/libs/cli/dist/commands/init.d.ts.map +1 -0
  20. package/libs/cli/dist/commands/models.d.ts +9 -0
  21. package/libs/cli/dist/commands/models.d.ts.map +1 -0
  22. package/libs/cli/dist/config.d.ts +74 -0
  23. package/libs/cli/dist/config.d.ts.map +1 -0
  24. package/libs/cli/dist/constants.d.ts +12 -0
  25. package/libs/cli/dist/constants.d.ts.map +1 -0
  26. package/libs/cli/dist/index.bun.js +3742 -0
  27. package/libs/cli/dist/index.bun.js.map +55 -0
  28. package/libs/cli/dist/index.d.ts +2 -0
  29. package/libs/cli/dist/index.d.ts.map +1 -0
  30. package/libs/cli/dist/index.js +3745 -0
  31. package/libs/cli/dist/index.js.map +55 -0
  32. package/libs/cli/dist/spawn.d.ts +35 -0
  33. package/libs/cli/dist/spawn.d.ts.map +1 -0
  34. package/libs/cli/dist/types.d.ts +10 -0
  35. package/libs/cli/dist/types.d.ts.map +1 -0
  36. package/libs/cli/dist/utils.d.ts +14 -0
  37. package/libs/cli/dist/utils.d.ts.map +1 -0
  38. package/libs/cli/package.json +53 -0
  39. package/package.json +80 -0
@@ -0,0 +1,9 @@
1
+ /**
2
+ * models command - Manage Ollama models
3
+ */
4
+ export declare function modelsList(): Promise<void>;
5
+ export declare function modelsPull(modelName: string): Promise<void>;
6
+ export declare function modelsRm(modelName: string): Promise<void>;
7
+ export declare function modelsShow(modelName: string): Promise<void>;
8
+ export declare function modelsRun(modelName: string): Promise<void>;
9
+ //# sourceMappingURL=models.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../lib/commands/models.ts"],"names":[],"mappings":"AAAA;;GAEG;AAoDH,wBAAsB,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,CAoChD;AAED,wBAAsB,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAgBjE;AAED,wBAAsB,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAe/D;AAED,wBAAsB,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CASjE;AAED,wBAAsB,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAShE"}
@@ -0,0 +1,74 @@
1
+ /**
2
+ * Configuration system for loclaude
3
+ *
4
+ * Priority (highest to lowest):
5
+ * 1. CLI arguments
6
+ * 2. Environment variables
7
+ * 3. Project config (./.loclaude/config.json)
8
+ * 4. User config (~/.config/loclaude/config.json)
9
+ * 5. Default values
10
+ */
11
+ export interface OllamaConfig {
12
+ url: string;
13
+ defaultModel: string;
14
+ }
15
+ export interface DockerConfig {
16
+ composeFile: string;
17
+ gpu: boolean;
18
+ }
19
+ export interface ClaudeConfig {
20
+ extraArgs: string[];
21
+ }
22
+ export interface LoclaudeConfig {
23
+ ollama: OllamaConfig;
24
+ docker: DockerConfig;
25
+ claude: ClaudeConfig;
26
+ }
27
+ export interface LoclaudeConfigPartial {
28
+ ollama?: Partial<OllamaConfig>;
29
+ docker?: Partial<DockerConfig>;
30
+ claude?: Partial<ClaudeConfig>;
31
+ }
32
+ /**
33
+ * Load the full configuration
34
+ *
35
+ * Merges (in order of priority):
36
+ * 1. Environment variables
37
+ * 2. Project config file
38
+ * 3. User config file
39
+ * 4. Defaults
40
+ */
41
+ export declare function loadConfig(): LoclaudeConfig;
42
+ /**
43
+ * Clear the config cache (useful for testing)
44
+ */
45
+ export declare function clearConfigCache(): void;
46
+ /**
47
+ * Get the path to the active config file (if any)
48
+ */
49
+ export declare function getActiveConfigPath(): string | null;
50
+ /**
51
+ * Get all config paths that are checked
52
+ */
53
+ export declare function getConfigSearchPaths(): string[];
54
+ /**
55
+ * Get Ollama URL from config
56
+ */
57
+ export declare function getOllamaUrl(): string;
58
+ /**
59
+ * Get default model from config
60
+ */
61
+ export declare function getDefaultModel(): string;
62
+ /**
63
+ * Get docker compose file path from config
64
+ */
65
+ export declare function getComposeFile(): string;
66
+ /**
67
+ * Check if GPU is enabled in config
68
+ */
69
+ export declare function isGpuEnabled(): boolean;
70
+ /**
71
+ * Get extra Claude args from config
72
+ */
73
+ export declare function getClaudeExtraArgs(): string[];
74
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../lib/config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAUH,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,YAAY;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,EAAE,OAAO,CAAC;CACd;AAED,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB;AAED,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,YAAY,CAAC;IACrB,MAAM,EAAE,YAAY,CAAC;IACrB,MAAM,EAAE,YAAY,CAAC;CACtB;AAGD,MAAM,WAAW,qBAAqB;IACpC,MAAM,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;IAC/B,MAAM,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;IAC/B,MAAM,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;CAChC;AAkLD;;;;;;;;GAQG;AACH,wBAAgB,UAAU,IAAI,cAAc,CAgB3C;AAED;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,IAAI,CAEvC;AAED;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,MAAM,GAAG,IAAI,CAEnD;AAED;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,EAAE,CAE/C;AAMD;;GAEG;AACH,wBAAgB,YAAY,IAAI,MAAM,CAErC;AAED;;GAEG;AACH,wBAAgB,eAAe,IAAI,MAAM,CAExC;AAED;;GAEG;AACH,wBAAgB,cAAc,IAAI,MAAM,CAEvC;AAED;;GAEG;AACH,wBAAgB,YAAY,IAAI,OAAO,CAEtC;AAED;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,EAAE,CAE7C"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Constants - Loaded from configuration system
3
+ *
4
+ * Values come from (in priority order):
5
+ * 1. Environment variables (OLLAMA_URL, OLLAMA_MODEL)
6
+ * 2. Project config (.loclaude/config.json)
7
+ * 3. User config (~/.config/loclaude/config.json)
8
+ * 4. Default values
9
+ */
10
+ export declare const OLLAMA_URL: string;
11
+ export declare const DEFAULT_MODEL: string;
12
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../lib/constants.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,eAAO,MAAM,UAAU,QAAiB,CAAC;AACzC,eAAO,MAAM,aAAa,QAAoB,CAAC"}