@getpaseo/client 0.1.106-beta.1 → 0.1.107

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.
@@ -327,6 +327,19 @@ export interface FetchAgentTimelineOptions {
327
327
  requestId?: string;
328
328
  timeout?: number;
329
329
  }
330
+ export type ProviderSubagentListPayload = Extract<SessionOutboundMessage, {
331
+ type: "agent.provider_subagents.list.response";
332
+ }>["payload"];
333
+ export type ProviderSubagentTimelinePayload = Extract<SessionOutboundMessage, {
334
+ type: "agent.provider_subagents.timeline.get.response";
335
+ }>["payload"];
336
+ export interface FetchProviderSubagentTimelineOptions {
337
+ direction?: ProviderSubagentTimelinePayload["direction"];
338
+ cursor?: FetchAgentTimelineCursor;
339
+ limit?: number;
340
+ requestId?: string;
341
+ timeout?: number;
342
+ }
330
343
  export interface AgentForkContextOptions {
331
344
  boundaryMessageId?: string;
332
345
  requestId?: string;
@@ -704,6 +717,11 @@ export declare class DaemonClient {
704
717
  importAgent(input: ImportAgentInput): Promise<AgentSnapshotPayload>;
705
718
  refreshAgent(agentId: string, requestId?: string): Promise<AgentRefreshedStatusPayload>;
706
719
  fetchAgentTimeline(agentId: string, options?: FetchAgentTimelineOptions): Promise<FetchAgentTimelinePayload>;
720
+ listProviderSubagents(parentAgentId: string, options?: {
721
+ requestId?: string;
722
+ timeout?: number;
723
+ }): Promise<ProviderSubagentListPayload>;
724
+ fetchProviderSubagentTimeline(parentAgentId: string, subagentId: string, options?: FetchProviderSubagentTimelineOptions): Promise<ProviderSubagentTimelinePayload>;
707
725
  buildAgentForkContext(agentId: string, options?: AgentForkContextOptions): Promise<AgentForkContextPayload>;
708
726
  sendAgentMessage(agentId: string, text: string, options?: SendMessageOptions): Promise<void>;
709
727
  sendMessage(agentId: string, text: string, options?: SendMessageOptions): Promise<void>;
@@ -910,6 +928,10 @@ export declare class DaemonClient {
910
928
  command?: string;
911
929
  args?: string[];
912
930
  workspaceId?: string;
931
+ size?: {
932
+ rows: number;
933
+ cols: number;
934
+ };
913
935
  }): Promise<CreateTerminalPayload>;
914
936
  renameTerminal(input: RenameTerminalInput): Promise<RenameTerminalResult>;
915
937
  subscribeTerminal(terminalId: string, optionsOrRequestId?: {
@@ -1404,6 +1404,54 @@ export class DaemonClient {
1404
1404
  }
1405
1405
  return payload;
1406
1406
  }
1407
+ async listProviderSubagents(parentAgentId, options = {}) {
1408
+ const requestId = this.createRequestId(options.requestId);
1409
+ const message = SessionInboundMessageSchema.parse({
1410
+ type: "agent.provider_subagents.list.request",
1411
+ parentAgentId,
1412
+ requestId,
1413
+ });
1414
+ const payload = await this.sendRequest({
1415
+ requestId,
1416
+ message,
1417
+ timeout: options.timeout,
1418
+ options: { skipQueue: true },
1419
+ select: (response) => response.type === "agent.provider_subagents.list.response" &&
1420
+ response.payload.requestId === requestId
1421
+ ? response.payload
1422
+ : null,
1423
+ });
1424
+ if (payload.error) {
1425
+ throw new Error(payload.error);
1426
+ }
1427
+ return payload;
1428
+ }
1429
+ async fetchProviderSubagentTimeline(parentAgentId, subagentId, options = {}) {
1430
+ const requestId = this.createRequestId(options.requestId);
1431
+ const message = SessionInboundMessageSchema.parse({
1432
+ type: "agent.provider_subagents.timeline.get.request",
1433
+ parentAgentId,
1434
+ subagentId,
1435
+ requestId,
1436
+ ...(options.direction ? { direction: options.direction } : {}),
1437
+ ...(options.cursor ? { cursor: options.cursor } : {}),
1438
+ ...(typeof options.limit === "number" ? { limit: options.limit } : {}),
1439
+ });
1440
+ const payload = await this.sendRequest({
1441
+ requestId,
1442
+ message,
1443
+ timeout: options.timeout,
1444
+ options: { skipQueue: true },
1445
+ select: (response) => response.type === "agent.provider_subagents.timeline.get.response" &&
1446
+ response.payload.requestId === requestId
1447
+ ? response.payload
1448
+ : null,
1449
+ });
1450
+ if (payload.error) {
1451
+ throw new Error(payload.error);
1452
+ }
1453
+ return payload;
1454
+ }
1407
1455
  async buildAgentForkContext(agentId, options = {}) {
1408
1456
  const resolvedRequestId = this.createRequestId(options.requestId);
1409
1457
  const message = SessionInboundMessageSchema.parse({
@@ -2828,6 +2876,7 @@ export class DaemonClient {
2828
2876
  command: options?.command,
2829
2877
  args: options?.args,
2830
2878
  ...(options?.workspaceId !== undefined ? { workspaceId: options.workspaceId } : {}),
2879
+ ...(options?.size !== undefined ? { size: options.size } : {}),
2831
2880
  requestId: resolvedRequestId,
2832
2881
  });
2833
2882
  return this.sendCorrelatedRequest({
@@ -3235,6 +3284,7 @@ export class DaemonClient {
3235
3284
  [CLIENT_CAPS.customModeIcons]: true,
3236
3285
  [CLIENT_CAPS.reasoningMergeEnum]: true,
3237
3286
  [CLIENT_CAPS.terminalReflowableSnapshot]: true,
3287
+ [CLIENT_CAPS.providerSubagents]: true,
3238
3288
  ...this.config.capabilities,
3239
3289
  },
3240
3290
  ...(this.config.appVersion ? { appVersion: this.config.appVersion } : {}),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpaseo/client",
3
- "version": "0.1.106-beta.1",
3
+ "version": "0.1.107",
4
4
  "description": "Paseo client SDK package",
5
5
  "files": [
6
6
  "dist",
@@ -35,8 +35,8 @@
35
35
  "test": "vitest run"
36
36
  },
37
37
  "dependencies": {
38
- "@getpaseo/protocol": "0.1.106-beta.1",
39
- "@getpaseo/relay": "0.1.106-beta.1",
38
+ "@getpaseo/protocol": "0.1.107",
39
+ "@getpaseo/relay": "0.1.107",
40
40
  "zod": "^4.4.3"
41
41
  },
42
42
  "devDependencies": {