linkshell-cli 0.2.126 → 0.3.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.
File without changes
@@ -23,7 +23,7 @@ export declare class AgentWorkspaceProxy {
23
23
  private itemConversationIds;
24
24
  private toolConversationIds;
25
25
  constructor(input: {
26
- sessionId: string;
26
+ hostDeviceId: string;
27
27
  cwd: string;
28
28
  availableProviders: AgentProvider[];
29
29
  command?: string;
@@ -1001,7 +1001,7 @@ export class AgentWorkspaceProxy {
1001
1001
  const conversations = [...this.conversations.values()].filter((conversation) => payload.includeArchived ? true : !conversation.archived);
1002
1002
  this.input.send(createEnvelope({
1003
1003
  type: "agent.v2.conversation.list.result",
1004
- sessionId: this.input.sessionId,
1004
+ hostDeviceId: this.input.hostDeviceId,
1005
1005
  payload: { conversations },
1006
1006
  }));
1007
1007
  break;
@@ -1263,7 +1263,7 @@ export class AgentWorkspaceProxy {
1263
1263
  const anyPermission = providers.some((p) => p.supportsPermission);
1264
1264
  this.input.send(createEnvelope({
1265
1265
  type: "agent.v2.capabilities",
1266
- sessionId: this.input.sessionId,
1266
+ hostDeviceId: this.input.hostDeviceId,
1267
1267
  payload: {
1268
1268
  enabled: anyEnabled,
1269
1269
  provider: this.input.availableProviders[0] ?? "codex",
@@ -1304,7 +1304,7 @@ export class AgentWorkspaceProxy {
1304
1304
  this.activeConversationId = existingConversation.id;
1305
1305
  this.input.send(createEnvelope({
1306
1306
  type: "agent.v2.conversation.opened",
1307
- sessionId: this.input.sessionId,
1307
+ hostDeviceId: this.input.hostDeviceId,
1308
1308
  payload: {
1309
1309
  conversation: existingConversation,
1310
1310
  snapshot: this.timelines.get(existingConversation.id) ?? [],
@@ -1342,7 +1342,7 @@ export class AgentWorkspaceProxy {
1342
1342
  this.timelines.set(conversation.id, this.timelines.get(conversation.id) ?? []);
1343
1343
  this.input.send(createEnvelope({
1344
1344
  type: "agent.v2.conversation.opened",
1345
- sessionId: this.input.sessionId,
1345
+ hostDeviceId: this.input.hostDeviceId,
1346
1346
  payload: { conversation, snapshot: this.timelines.get(conversation.id) ?? [] },
1347
1347
  }));
1348
1348
  return conversation;
@@ -1381,7 +1381,7 @@ export class AgentWorkspaceProxy {
1381
1381
  });
1382
1382
  this.input.send(createEnvelope({
1383
1383
  type: "agent.v2.conversation.opened",
1384
- sessionId: this.input.sessionId,
1384
+ hostDeviceId: this.input.hostDeviceId,
1385
1385
  payload: { conversation, snapshot: this.timelines.get(conversation.id) ?? [] },
1386
1386
  }));
1387
1387
  return conversation;
@@ -2291,7 +2291,7 @@ export class AgentWorkspaceProxy {
2291
2291
  this.upsertItem(conversationId, item);
2292
2292
  this.input.send(createEnvelope({
2293
2293
  type: "agent.v2.permission.request",
2294
- sessionId: this.input.sessionId,
2294
+ hostDeviceId: this.input.hostDeviceId,
2295
2295
  payload: { conversationId, ...permission, item },
2296
2296
  }));
2297
2297
  if (!waitForResponse)
@@ -2529,14 +2529,14 @@ export class AgentWorkspaceProxy {
2529
2529
  const conversation = this.conversations.get(conversationId);
2530
2530
  this.input.send(createEnvelope({
2531
2531
  type: "agent.v2.event",
2532
- sessionId: this.input.sessionId,
2532
+ hostDeviceId: this.input.hostDeviceId,
2533
2533
  payload: { conversationId, conversation, item },
2534
2534
  }));
2535
2535
  }
2536
2536
  emitConversation(conversation) {
2537
2537
  this.input.send(createEnvelope({
2538
2538
  type: "agent.v2.event",
2539
- sessionId: this.input.sessionId,
2539
+ hostDeviceId: this.input.hostDeviceId,
2540
2540
  payload: { conversationId: conversation.id, conversation },
2541
2541
  }));
2542
2542
  }
@@ -2577,7 +2577,7 @@ export class AgentWorkspaceProxy {
2577
2577
  : [...this.timelines.values()].flat();
2578
2578
  this.input.send(createEnvelope({
2579
2579
  type: "agent.v2.snapshot",
2580
- sessionId: this.input.sessionId,
2580
+ hostDeviceId: this.input.hostDeviceId,
2581
2581
  payload: {
2582
2582
  conversations,
2583
2583
  activeConversationId: this.activeConversationId,