@adhdev/daemon-core 0.5.23 → 0.5.24
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 +4 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/commands/handler.ts +5 -0
package/package.json
CHANGED
package/src/commands/handler.ts
CHANGED
|
@@ -188,6 +188,11 @@ export class DaemonCommandHandler implements CommandHelpers {
|
|
|
188
188
|
private extractIdeType(args: any): string | undefined {
|
|
189
189
|
// Also accept explicit ideType from args (P2P input, agentType for extensions)
|
|
190
190
|
if (args?.ideType) {
|
|
191
|
+
// UUID → managerKey via instanceIdMap (P2P sends UUID instance IDs)
|
|
192
|
+
const mappedKey = this._ctx.instanceIdMap?.get(args.ideType);
|
|
193
|
+
if (mappedKey) {
|
|
194
|
+
return mappedKey;
|
|
195
|
+
}
|
|
191
196
|
// Exact match first
|
|
192
197
|
if (this._ctx.cdpManagers.has(args.ideType)) {
|
|
193
198
|
return args.ideType;
|