@pstdio/sdk 0.44.0 → 0.45.0-nightly.20261020145025

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.
@@ -1,5 +1,5 @@
1
- import { Au as ApprovalInput, Bs as ListNotificationsQuery, C as UpdateProjectInput, Cm as AssetTransfer$1, Cs as BoardViewCreate, Ct as IssueAutomationTokenInput, Df as WebviewPreferencesSetParams, Dm as AgentModel, E as ExtensionSettingValueRecord, Ef as WebviewPreferencesGetParams, Em as AgentInfo, Eo as HarnessOperation, Et as ListAutomationTokensResponse, F as InstallExtensionResponse, Fu as ResolveSessionIdInput, G as CommandExecuteBody, Gu as SessionDetails, Hs as Notification, Hu as SessionConversationSources, Is as SkillWithContent, Iu as ResolveSessionIdResponse, J as CommandExecutionResult, Ju as SessionFollowUpResponse, K as CommandExecuteRequest, La as ExtensionWorkspace, Ls as SkillWithContentDetails, Lu as Session, Mm as ActivityPage, Mu as FollowUpInput, N as ExtensionDiagnosticsResponse, Ns as Skill, Nu as ListSessionActivityInput, P as InstallExtensionRequest, Ps as SkillDetails, Pu as ListSessionActivityResponse, Q as ListExtensionConnectionsResponse, Qu as PendingQueuedFollowUpsResponse, R as EnableInstalledExtensionRequest, Ra as ExtensionWorkspaceCreateInput, Rs as UpdateSkillInput, Ru as SessionAttachment, S as ProjectUpdateRequest, Sm as AssetReference$1, So as DraftHarnessCommandInput, St as CreateAutomationRunInput, Su as ExtensionSessionQuery, Tm as AgentDetails, To as HarnessCommandState, Tt as ListAutomationRunEventsResponse, Ut as Workspace, Uu as SessionCreateRequest, V as ListProjectExtensionsResponse, Vs as ListNotificationsResponse, Vu as SessionConversationResponse, W as UpgradeProjectExtensionResponse, Wt as WorkspaceListItem, Wu as SessionCreateResponse, X as ConfigureExtensionConnectionInput, Xs as SetNotificationStatusInput, Y as DispatchExtensionEventInput, Ys as NotificationStatus, Yu as SessionQueuedMessagesResponse, Z as ExtensionConnectionRecord, Zs as UpdateNotificationInput, Zu as CombineQueuedFollowUpsInput, _ as CreateProjectInput, _c as PageQuery, _t as AutomationRun, a as RemoveWorktreeResponse, b as ProjectCreateRequest, bp as JsonValue, bu as ExtensionSession, c as WorkspaceFileContent, ct as ListExtensionAppearanceResponse, d as WorkspaceProviderDescriptor, dc as ResourceRef, dn as CommandStream, ed as QueuedFollowUpUpdateResponse, f as WriteWorkspaceFileInput, g as RuntimeReadyResponse, gc as Page, gt as EnvironmentBinding, ht as BindEnvironmentInput, i as ListWorkspaceFilesInput, ic as ResourceAnchor, ju as CreateSessionInput, km as HarnessParamsInfo, l as WorkspaceFileEntry, ls as EnvironmentIdentity, lt as ListExtensionCommandsResponse, m as UpdateSettingsInput, mf as WebviewFilesUploadParams, mt as MetadataPageTarget, n as ListWorkspaceActivityInput, nd as SteerQueuedFollowUpInput, nf as WebviewArtifactFile, o as RenameWorkspaceInput, oc as ResourceAnchorPage, p as Settings, pf as WebviewFilesListParams, q as CommandExecuteResponse, qu as SessionFollowUpRequest, r as ListWorkspaceActivityResponse, rd as UpdateQueuedFollowUpInput, rs as ExtensionBlobRef, sc as ResourceAnchorQuery, t as CreateWorkspaceInput, td as QueuedSteeringResult, u as WorkspaceFilesResponse, us as EnvironmentTarget, v as InitialWorkspaceRequest, vp as JsonObject, ws as BoardViewUpdate, wt as IssueAutomationTokenResponse, wu as ExtensionSessionSummary, x as ProjectDetails, xu as ExtensionSessionPage, y as Project, z as EnableInstalledExtensionResponse, zo as HarnessParams, zs as CreateNotificationInput, zu as SessionAttachmentDetails } from "./index-BooGkjrP.js";
2
- import "./skills-uM8AN3_e.js";
1
+ import { $ as ListExtensionConnectionsResponse, $s as SetNotificationStatusInput, Af as QueuedFollowUpUpdateResponse, Am as AgentDetails, B as EnableInstalledExtensionResponse, Ba as ExtensionWorkspaceCreateInput, Bs as SkillWithContentDetails, C as UpdateProjectInput, Cf as SessionFollowUpRequest, Cp as JsonObject, Ct as CreateAutomationRunInput, D as ExtensionSettingValueRecord, Df as CombineQueuedFollowUpsInput, Dm as AssetReference$1, Do as HarnessCommandState, Ds as BoardViewUpdate, Dt as ListAutomationTokensResponse, Es as BoardViewCreate, Et as ListAutomationRunEventsResponse, F as InstallExtensionRequest, G as UpgradeProjectExtensionResponse, Gd as WebviewPreferencesGetParams, Gs as Notification, Gt as WorkspaceListItem, H as ListProjectExtensionsResponse, Hs as CreateNotificationInput, I as InstallExtensionResponse, Is as Skill, J as CommandExecuteResponse, K as CommandExecuteBody, Kd as WebviewPreferencesSetParams, Lm as ActivityPage, Ls as SkillDetails, Md as WebviewFilesListParams, Mf as SteerQueuedFollowUpInput, Mm as AgentModel, Nd as WebviewFilesUploadParams, Nf as UpdateQueuedFollowUpInput, Of as PendingQueuedFollowUpsResponse, Om as AssetTransfer$1, Oo as HarnessOperation, P as ExtensionDiagnosticsResponse, Pm as HarnessParamsInfo, Q as ExtensionConnectionRecord, Qd as ExtensionSessionQuery, Qs as NotificationStatus, S as ProjectUpdateRequest, Tf as SessionQueuedMessagesResponse, Tp as JsonValue, Tt as IssueAutomationTokenResponse, Us as ListNotificationsQuery, Vo as HarnessParams, Vs as UpdateSkillInput, Ws as ListNotificationsResponse, Wt as Workspace, X as DispatchExtensionEventInput, Xd as ExtensionSession, Y as CommandExecutionResult, Z as ConfigureExtensionConnectionInput, Zd as ExtensionSessionPage, _ as CreateProjectInput, _f as SessionConversationResponse, _t as EnvironmentBinding, a as RemoveWorktreeResponse, as as ExtensionBlobRef, b as ProjectCreateRequest, bc as PageQuery, bf as SessionCreateResponse, c as WorkspaceFileContent, cf as FollowUpInput, d as WorkspaceProviderDescriptor, df as ResolveSessionIdInput, ds as EnvironmentIdentity, ec as UpdateNotificationInput, ef as ExtensionSessionSummary, f as WriteWorkspaceFileInput, ff as ResolveSessionIdResponse, fn as CommandStream, fs as EnvironmentTarget, g as RuntimeReadyResponse, gt as BindEnvironmentInput, hf as SessionAttachmentDetails, ht as MetadataPageTarget, i as ListWorkspaceFilesInput, jf as QueuedSteeringResult, jm as AgentInfo, l as WorkspaceFileEntry, lc as ResourceAnchorPage, lf as ListSessionActivityInput, lt as ListExtensionAppearanceResponse, m as UpdateSettingsInput, mc as ResourceRef, mf as SessionAttachment, n as ListWorkspaceActivityInput, o as RenameWorkspaceInput, of as ApprovalInput, p as Settings, pf as Session, q as CommandExecuteRequest, r as ListWorkspaceActivityResponse, sc as ResourceAnchor, sf as CreateSessionInput, t as CreateWorkspaceInput, u as WorkspaceFilesResponse, uc as ResourceAnchorQuery, uf as ListSessionActivityResponse, ut as ListExtensionCommandsResponse, v as InitialWorkspaceRequest, vf as SessionConversationSources, vt as AutomationRun, w as LinkIcon, wf as SessionFollowUpResponse, wo as DraftHarnessCommandInput, wt as IssueAutomationTokenInput, x as ProjectDetails, xd as WebviewArtifactFile, xf as SessionDetails, y as Project, yc as Page, yf as SessionCreateRequest, z as EnableInstalledExtensionRequest, za as ExtensionWorkspace, zs as SkillWithContent } from "./index-2xyvngQL.js";
2
+ import "./skills-CiG7jg2r.js";
3
3
  //#region src/client/request.d.ts
4
4
  type ClientOptions = {
5
5
  baseUrl?: string;
@@ -25,6 +25,54 @@ type RequestOptions = {
25
25
  type RequestFn = <T>(path: string, options?: RequestOptions) => Promise<T>;
26
26
  declare const createRequest: (options: ClientOptions) => RequestFn;
27
27
  //#endregion
28
+ //#region src/client/account.d.ts
29
+ /** This device's cloud login. The device credential stays in the native host. */
30
+ interface DeviceLogin {
31
+ managerOrigin: string;
32
+ relayOrigin: string;
33
+ accountId: string;
34
+ deviceId: string;
35
+ }
36
+ interface AccountStatus {
37
+ login: DeviceLogin | null;
38
+ /** Cloud projects of the account. This device syncs the ones that exist on it. */
39
+ cloudProjects: string[];
40
+ }
41
+ interface AccountDevice {
42
+ id: string;
43
+ name: string;
44
+ platform: string;
45
+ createdAt: string;
46
+ lastSeenAt: string;
47
+ /** True for the device that answered the request. */
48
+ current: boolean;
49
+ }
50
+ type Ok = {
51
+ ok: boolean;
52
+ };
53
+ declare const createAccountClient: (request: RequestFn) => {
54
+ login: (managerOrigin: string) => Promise<{
55
+ id: string;
56
+ url: string;
57
+ }>;
58
+ loginStatus: (id: string) => Promise<{
59
+ status: "pending" | "complete" | "failed";
60
+ }>;
61
+ status: () => Promise<AccountStatus>;
62
+ /** `removed` is false when the account service could not be reached; remove the device from another one. */
63
+ logout: () => Promise<Ok & {
64
+ removed: boolean;
65
+ }>;
66
+ devices: () => Promise<AccountDevice[]>;
67
+ renameDevice: (id: string, name: string) => Promise<Ok>;
68
+ removeDevice: (id: string) => Promise<Ok>;
69
+ /** Makes a local project a cloud project of the logged-in account. */
70
+ syncProject: (projectId: string) => Promise<Ok>;
71
+ /** Stops syncing a cloud project. Every device keeps its local copy. */
72
+ stopProjectSync: (projectId: string) => Promise<Ok>;
73
+ };
74
+ type AccountClient = ReturnType<typeof createAccountClient>;
75
+ //#endregion
28
76
  //#region src/client/agents.d.ts
29
77
  type AgentClient = {
30
78
  getParamDefaults(projectId: string, agentId: string, model?: string): Promise<{
@@ -856,6 +904,11 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
856
904
  floatingPanels?: "hidden" | "visible" | undefined;
857
905
  regionSettings?: Partial<Record<"main" | "secondary" | "side" | "sidenav", {
858
906
  showHeader?: boolean | undefined;
907
+ canOpen?: boolean | undefined;
908
+ canClose?: boolean | undefined;
909
+ acceptsTabs?: boolean | undefined;
910
+ resizable?: boolean | undefined;
911
+ floatable?: boolean | undefined;
859
912
  size?: {
860
913
  defaultPx?: number | undefined;
861
914
  minPx?: number | undefined;
@@ -1086,6 +1139,20 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
1086
1139
  $l10n: string;
1087
1140
  default?: string | undefined;
1088
1141
  } | undefined;
1142
+ structure?: {
1143
+ id: string;
1144
+ label?: string | {
1145
+ $l10n: string;
1146
+ default?: string | undefined;
1147
+ } | undefined;
1148
+ collapsible?: boolean | undefined;
1149
+ hiddenByDefault?: boolean | undefined;
1150
+ canHide?: boolean | undefined;
1151
+ resourceNode?: {
1152
+ id: string;
1153
+ icon?: string | undefined;
1154
+ } | undefined;
1155
+ }[] | undefined;
1089
1156
  searchable?: boolean | undefined;
1090
1157
  searchPlaceholder?: string | {
1091
1158
  $l10n: string;
@@ -2270,6 +2337,11 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
2270
2337
  floatingPanels?: "hidden" | "visible" | undefined;
2271
2338
  regionSettings?: Partial<Record<"main" | "secondary" | "side" | "sidenav", {
2272
2339
  showHeader?: boolean | undefined;
2340
+ canOpen?: boolean | undefined;
2341
+ canClose?: boolean | undefined;
2342
+ acceptsTabs?: boolean | undefined;
2343
+ resizable?: boolean | undefined;
2344
+ floatable?: boolean | undefined;
2273
2345
  size?: {
2274
2346
  defaultPx?: number | undefined;
2275
2347
  minPx?: number | undefined;
@@ -2500,6 +2572,20 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
2500
2572
  $l10n: string;
2501
2573
  default?: string | undefined;
2502
2574
  } | undefined;
2575
+ structure?: {
2576
+ id: string;
2577
+ label?: string | {
2578
+ $l10n: string;
2579
+ default?: string | undefined;
2580
+ } | undefined;
2581
+ collapsible?: boolean | undefined;
2582
+ hiddenByDefault?: boolean | undefined;
2583
+ canHide?: boolean | undefined;
2584
+ resourceNode?: {
2585
+ id: string;
2586
+ icon?: string | undefined;
2587
+ } | undefined;
2588
+ }[] | undefined;
2503
2589
  searchable?: boolean | undefined;
2504
2590
  searchPlaceholder?: string | {
2505
2591
  $l10n: string;
@@ -3684,6 +3770,11 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
3684
3770
  floatingPanels?: "hidden" | "visible" | undefined;
3685
3771
  regionSettings?: Partial<Record<"main" | "secondary" | "side" | "sidenav", {
3686
3772
  showHeader?: boolean | undefined;
3773
+ canOpen?: boolean | undefined;
3774
+ canClose?: boolean | undefined;
3775
+ acceptsTabs?: boolean | undefined;
3776
+ resizable?: boolean | undefined;
3777
+ floatable?: boolean | undefined;
3687
3778
  size?: {
3688
3779
  defaultPx?: number | undefined;
3689
3780
  minPx?: number | undefined;
@@ -3914,6 +4005,20 @@ declare const createExtensionManagementClient: (request: RequestFn) => {
3914
4005
  $l10n: string;
3915
4006
  default?: string | undefined;
3916
4007
  } | undefined;
4008
+ structure?: {
4009
+ id: string;
4010
+ label?: string | {
4011
+ $l10n: string;
4012
+ default?: string | undefined;
4013
+ } | undefined;
4014
+ collapsible?: boolean | undefined;
4015
+ hiddenByDefault?: boolean | undefined;
4016
+ canHide?: boolean | undefined;
4017
+ resourceNode?: {
4018
+ id: string;
4019
+ icon?: string | undefined;
4020
+ } | undefined;
4021
+ }[] | undefined;
3917
4022
  searchable?: boolean | undefined;
3918
4023
  searchPlaceholder?: string | {
3919
4024
  $l10n: string;
@@ -5104,7 +5209,14 @@ interface DirectoryEntry {
5104
5209
  path: string;
5105
5210
  isDirectory: boolean;
5106
5211
  }
5212
+ interface FilesystemDrive {
5213
+ name: string;
5214
+ path: string;
5215
+ }
5107
5216
  declare const createFilesystemClient: (request: RequestFn) => {
5217
+ drives: () => Promise<{
5218
+ drives: FilesystemDrive[];
5219
+ }>;
5108
5220
  list: (path?: string) => Promise<{
5109
5221
  currentPath: string;
5110
5222
  entries: DirectoryEntry[];
@@ -5121,6 +5233,14 @@ declare const createFilesystemClient: (request: RequestFn) => {
5121
5233
  };
5122
5234
  type FilesystemClient = ReturnType<typeof createFilesystemClient>;
5123
5235
  //#endregion
5236
+ //#region src/client/link-icons.d.ts
5237
+ type LinkIconsClient = {
5238
+ /** Returns the site icon of an http or https page. Throws a 404 `PstdioApiError` when the page has none. */
5239
+ get(url: string, options?: {
5240
+ signal?: AbortSignal;
5241
+ }): Promise<LinkIcon>;
5242
+ };
5243
+ //#endregion
5124
5244
  //#region src/client/notifications.d.ts
5125
5245
  type NotificationsClient = {
5126
5246
  query(projectId: string, input?: ListNotificationsQuery): Promise<Page<Notification>>;
@@ -5423,6 +5543,7 @@ type WorkspaceClient = ReturnType<typeof createWorkspaceDiffClient> & {
5423
5543
  //#endregion
5424
5544
  //#region src/client/client.d.ts
5425
5545
  type PstdioClient = {
5546
+ account: AccountClient;
5426
5547
  assets: AssetsClient;
5427
5548
  resources: ResourceAnchorsClient;
5428
5549
  views: BoardViewsClient;
@@ -5436,6 +5557,7 @@ type PstdioClient = {
5436
5557
  notifications: NotificationsClient;
5437
5558
  extensions: ExtensionClient;
5438
5559
  settings: SettingsClient;
5560
+ linkIcons: LinkIconsClient;
5439
5561
  sync: SyncClient;
5440
5562
  runtime: RuntimeClient;
5441
5563
  };
@@ -5447,5 +5569,5 @@ type AssetReference = AssetReference$1;
5447
5569
  /** @deprecated Import `AssetTransfer` from `@pstdio/sdk/resources`. */
5448
5570
  type AssetTransfer = AssetTransfer$1;
5449
5571
  //#endregion
5450
- export { BoardViewsClient as A, RequestOptions as B, ResourceAnchorsClient as C, FilesystemClient as D, DirectoryEntry as E, AgentClient as F, ClientOptions as I, PstdioApiError as L, AssetClientOwner as M, AssetUploadInput as N, ExtensionClient as O, AssetsClient as P, PstdioConnectionError as R, createRuntimeClient as S, NotificationsClient as T, createRequest as V, SessionClient as _, WorkspaceClient as a, SseEvent as b, SyncConnection as c, SyncWriterProvider as d, applySyncEvent as f, ListSessionsInput as g, SettingsClient as h, createClient as i, AutomationClient as j, CommandStreamClientEvent as k, SyncRow as l, SkillClient as m, AssetTransfer as n, StartSyncInput as o, parseSyncDeleteEvent as p, PstdioClient as r, SyncClient as s, AssetReference as t, SyncWriter as u, SessionStreamConnection as v, ProjectClient as w, RuntimeClient as x, SessionStreamHandlers as y, RequestFn as z };
5572
+ export { ExtensionClient as A, AccountStatus as B, ResourceAnchorsClient as C, DirectoryEntry as D, LinkIconsClient as E, AssetUploadInput as F, RequestFn as G, ClientOptions as H, AssetsClient as I, RequestOptions as K, AgentClient as L, BoardViewsClient as M, AutomationClient as N, FilesystemClient as O, AssetClientOwner as P, AccountClient as R, createRuntimeClient as S, NotificationsClient as T, PstdioApiError as U, DeviceLogin as V, PstdioConnectionError as W, SessionClient as _, WorkspaceClient as a, SseEvent as b, SyncConnection as c, SyncWriterProvider as d, applySyncEvent as f, ListSessionsInput as g, SettingsClient as h, createClient as i, CommandStreamClientEvent as j, FilesystemDrive as k, SyncRow as l, SkillClient as m, AssetTransfer as n, StartSyncInput as o, parseSyncDeleteEvent as p, createRequest as q, PstdioClient as r, SyncClient as s, AssetReference as t, SyncWriter as u, SessionStreamConnection as v, ProjectClient as w, RuntimeClient as x, SessionStreamHandlers as y, AccountDevice as z };
5451
5573
  export {};