@adhdev/daemon-core 0.8.27 → 0.8.29

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 (43) hide show
  1. package/dist/agent-stream/manager.d.ts +1 -1
  2. package/dist/agent-stream/provider-adapter.d.ts +5 -0
  3. package/dist/commands/handler.d.ts +1 -0
  4. package/dist/commands/router.d.ts +5 -0
  5. package/dist/commands/stream-commands.d.ts +1 -1
  6. package/dist/config/chat-history.d.ts +12 -0
  7. package/dist/detection/cli-detector.d.ts +6 -2
  8. package/dist/detection/ide-detector.d.ts +2 -1
  9. package/dist/index.js +987 -377
  10. package/dist/index.js.map +1 -1
  11. package/dist/index.mjs +985 -375
  12. package/dist/index.mjs.map +1 -1
  13. package/dist/providers/acp-provider-instance.d.ts +1 -1
  14. package/dist/providers/cli-provider-instance.d.ts +1 -0
  15. package/dist/providers/provider-loader.d.ts +26 -0
  16. package/dist/shared-types.d.ts +2 -0
  17. package/dist/status/snapshot.d.ts +8 -0
  18. package/node_modules/@adhdev/session-host-core/dist/index.d.mts +24 -1
  19. package/node_modules/@adhdev/session-host-core/dist/index.d.ts +24 -1
  20. package/node_modules/@adhdev/session-host-core/dist/index.js +6 -1
  21. package/node_modules/@adhdev/session-host-core/dist/index.js.map +1 -1
  22. package/node_modules/@adhdev/session-host-core/dist/index.mjs +6 -1
  23. package/node_modules/@adhdev/session-host-core/dist/index.mjs.map +1 -1
  24. package/node_modules/@adhdev/session-host-core/package.json +1 -1
  25. package/package.json +1 -1
  26. package/src/agent-stream/manager.ts +2 -2
  27. package/src/agent-stream/provider-adapter.ts +111 -4
  28. package/src/boot/daemon-lifecycle.ts +28 -1
  29. package/src/cli-adapters/provider-cli-adapter.ts +17 -3
  30. package/src/commands/chat-commands.ts +89 -10
  31. package/src/commands/cli-manager.ts +16 -2
  32. package/src/commands/handler.ts +1 -0
  33. package/src/commands/router.ts +23 -1
  34. package/src/commands/stream-commands.ts +6 -3
  35. package/src/config/chat-history.ts +269 -18
  36. package/src/detection/cli-detector.ts +72 -29
  37. package/src/detection/ide-detector.ts +24 -8
  38. package/src/launch.ts +1 -1
  39. package/src/providers/acp-provider-instance.ts +19 -10
  40. package/src/providers/cli-provider-instance.ts +17 -2
  41. package/src/providers/provider-loader.ts +144 -11
  42. package/src/shared-types.ts +2 -0
  43. package/src/status/snapshot.ts +19 -1
@@ -35,6 +35,14 @@ export interface StatusSnapshotOptions {
35
35
  displayName?: string;
36
36
  category: 'ide' | 'extension' | 'cli' | 'acp';
37
37
  }>;
38
+ getAvailableProviderInfos?: () => Array<{
39
+ type: string;
40
+ icon?: string;
41
+ displayName?: string;
42
+ category: 'ide' | 'extension' | 'cli' | 'acp';
43
+ installed?: boolean;
44
+ detectedPath?: string | null;
45
+ }>;
38
46
  };
39
47
  detectedIdes: Array<{
40
48
  id: string;
@@ -75,12 +83,22 @@ function buildDetectedIdeInfos(
75
83
  function buildAvailableProviders(
76
84
  providerLoader: StatusSnapshotOptions['providerLoader'],
77
85
  ): AvailableProviderInfo[] {
78
- return providerLoader.getAll().map((provider) => ({
86
+ const providers: Array<{
87
+ type: string;
88
+ icon?: string;
89
+ displayName?: string;
90
+ category: 'ide' | 'extension' | 'cli' | 'acp';
91
+ installed?: boolean;
92
+ detectedPath?: string | null;
93
+ }> = providerLoader.getAvailableProviderInfos?.() || providerLoader.getAll();
94
+ return providers.map((provider) => ({
79
95
  type: provider.type,
80
96
  name: provider.displayName || provider.type,
81
97
  displayName: provider.displayName || provider.type,
82
98
  icon: provider.icon || '💻',
83
99
  category: provider.category,
100
+ ...(provider.installed !== undefined ? { installed: provider.installed } : {}),
101
+ ...(provider.detectedPath !== undefined ? { detectedPath: provider.detectedPath } : {}),
84
102
  }));
85
103
  }
86
104