loclaude 0.0.1-alpha.3 → 0.0.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 (39) hide show
  1. package/CHANGELOG.md +21 -2
  2. package/README.md +152 -64
  3. package/package.json +25 -14
  4. package/libs/cli/CHANGELOG.md +0 -59
  5. package/libs/cli/LICENSE +0 -31
  6. package/libs/cli/README.md +0 -5
  7. package/libs/cli/dist/cac.d.ts +0 -6
  8. package/libs/cli/dist/cac.d.ts.map +0 -1
  9. package/libs/cli/dist/commands/config.d.ts +0 -6
  10. package/libs/cli/dist/commands/config.d.ts.map +0 -1
  11. package/libs/cli/dist/commands/docker.d.ts +0 -17
  12. package/libs/cli/dist/commands/docker.d.ts.map +0 -1
  13. package/libs/cli/dist/commands/doctor.d.ts +0 -9
  14. package/libs/cli/dist/commands/doctor.d.ts.map +0 -1
  15. package/libs/cli/dist/commands/index.d.ts +0 -6
  16. package/libs/cli/dist/commands/index.d.ts.map +0 -1
  17. package/libs/cli/dist/commands/init.d.ts +0 -11
  18. package/libs/cli/dist/commands/init.d.ts.map +0 -1
  19. package/libs/cli/dist/commands/models.d.ts +0 -9
  20. package/libs/cli/dist/commands/models.d.ts.map +0 -1
  21. package/libs/cli/dist/config.d.ts +0 -74
  22. package/libs/cli/dist/config.d.ts.map +0 -1
  23. package/libs/cli/dist/constants.d.ts +0 -12
  24. package/libs/cli/dist/constants.d.ts.map +0 -1
  25. package/libs/cli/dist/index.bun.js +0 -4268
  26. package/libs/cli/dist/index.bun.js.map +0 -55
  27. package/libs/cli/dist/index.d.ts +0 -2
  28. package/libs/cli/dist/index.d.ts.map +0 -1
  29. package/libs/cli/dist/index.js +0 -4271
  30. package/libs/cli/dist/index.js.map +0 -55
  31. package/libs/cli/dist/output.d.ts +0 -107
  32. package/libs/cli/dist/output.d.ts.map +0 -1
  33. package/libs/cli/dist/spawn.d.ts +0 -35
  34. package/libs/cli/dist/spawn.d.ts.map +0 -1
  35. package/libs/cli/dist/types.d.ts +0 -50
  36. package/libs/cli/dist/types.d.ts.map +0 -1
  37. package/libs/cli/dist/utils.d.ts +0 -32
  38. package/libs/cli/dist/utils.d.ts.map +0 -1
  39. package/libs/cli/package.json +0 -90
@@ -1,74 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,12 +0,0 @@
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
@@ -1 +0,0 @@
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"}