@pstdio/sdk 0.45.0-nightly.20261021143541 → 0.45.0
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/api.d.ts +3 -7
- package/dist/client/index.js +20 -7
- package/dist/client.d.ts +3 -2
- package/dist/data.d.ts +1 -7
- package/dist/extensions/index.js +196 -3
- package/dist/extensions-react.d.ts +1 -3
- package/dist/extensions.d.ts +2 -2
- package/dist/hooks.d.ts +3 -11
- package/dist/{index-BlEzv0uV.d.ts → index-DBkZvGh1.d.ts} +130 -81
- package/dist/{index-DTqJS-fZ.d.ts → index-j28tAAxd.d.ts} +528 -260
- package/dist/prompts.d.ts +0 -2
- package/dist/resources.d.ts +1 -1
- package/dist/sessions-BWTUYUnW.d.ts +2 -0
- package/dist/skills-BWTUYUnW.d.ts +2 -0
- package/dist/testing/index.js +14 -0
- package/dist/testing.d.ts +2 -14
- package/package.json +1 -1
- package/dist/sessions-DYS6U-5G.d.ts +0 -2
- package/dist/skills-DYS6U-5G.d.ts +0 -2
package/dist/prompts.d.ts
CHANGED
package/dist/resources.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Bf as SessionCreateRequest, Gf as SessionFollowUpResponse, Gt as WorkspaceListItem, Hf as SessionDetails, If as SessionAttachmentDetails, Js as Skill, Nc as Page, Pc as PageQuery, Pf as Session, Qs as SkillWithContentDetails, S as ProjectUpdateRequest, T as FileRecord, Uf as SessionFollowUpDecision, Vf as SessionCreateResponse, Wf as SessionFollowUpRequest, Wt as Workspace, Xs as SkillFile, Ys as SkillDetails, Zs as SkillWithContent, ac as NotificationActorType, ah as AgentDetails, b as ProjectCreateRequest, cc as NotificationOrigin, ch as AgentSkillsLayout, dc as SetNotificationStatusInput, dh as ActivityEntry, ec as CreateNotificationInput, fc as UpdateNotificationInput, fh as ActivityPage, ic as NotificationAction, ih as AgentAvailabilityType, lc as NotificationPriority, nc as ListNotificationsResponse, nh as AssetReference, oc as NotificationFinalStatus, oh as AgentInfo, p as Settings, qf as SessionStatus, rc as Notification, rh as AssetTransfer, s as WorkspaceEntryMoveInput, sc as NotificationKind, sh as AgentModel, tc as ListNotificationsQuery, uc as NotificationStatus, uh as harnessLocalId, v as InitialWorkspaceRequest, x as ProjectDetails, y as Project } from "./index-j28tAAxd.js";
|
|
2
2
|
export { type ActivityEntry, type ActivityPage, type AgentAvailabilityType, type AgentDetails, type AgentInfo, type AgentModel, type AgentSkillsLayout, type AssetReference, type AssetTransfer, type CreateNotificationInput, type FileRecord, type InitialWorkspaceRequest, type ListNotificationsQuery, type ListNotificationsResponse, type Notification, type NotificationAction, type NotificationActorType, type NotificationFinalStatus, type NotificationKind, type NotificationOrigin, type NotificationPriority, type NotificationStatus, type Page, type PageQuery, type Project, type ProjectCreateRequest, type ProjectDetails, type ProjectUpdateRequest, type Session, type SessionAttachmentDetails, type SessionCreateRequest, type SessionCreateResponse, type SessionDetails, type SessionFollowUpDecision, type SessionFollowUpRequest, type SessionFollowUpResponse, type SessionStatus, type SetNotificationStatusInput, type Settings, type Skill, type SkillDetails, type SkillFile, type SkillWithContent, type SkillWithContentDetails, type UpdateNotificationInput, type Workspace, type WorkspaceEntryMoveInput, type WorkspaceListItem, harnessLocalId };
|
|
3
3
|
export {};
|
package/dist/testing/index.js
CHANGED
|
@@ -954,6 +954,19 @@ var createCommandContextDefaults = (input) => {
|
|
|
954
954
|
automation: { enqueue: unavailable, get: async () => {
|
|
955
955
|
return;
|
|
956
956
|
}, list: async () => [], cancel: unavailable },
|
|
957
|
+
account: {
|
|
958
|
+
status: async () => ({ login: null, cloudProjects: [], cloudProjectsLoaded: true }),
|
|
959
|
+
login: unavailable,
|
|
960
|
+
loginStatus: unavailable,
|
|
961
|
+
cancelLogin: unavailable,
|
|
962
|
+
logout: unavailable,
|
|
963
|
+
devices: unavailable,
|
|
964
|
+
renameDevice: unavailable,
|
|
965
|
+
removeDevice: unavailable,
|
|
966
|
+
projectSyncStatus: async () => ({ state: "local", offlineReady: false }),
|
|
967
|
+
syncProject: unavailable,
|
|
968
|
+
stopProjectSync: unavailable
|
|
969
|
+
},
|
|
957
970
|
process: { run: unavailable, runOrThrow: unavailable, spawnDetached: unavailable },
|
|
958
971
|
net: { findFreePort: unavailable },
|
|
959
972
|
connections: { request: unavailable, stream: unavailable },
|
|
@@ -7839,6 +7852,7 @@ var makeCommandContext = (input) => {
|
|
|
7839
7852
|
connections: { ...base.connections, ...overrides?.connections },
|
|
7840
7853
|
logger: { ...base.logger, ...overrides?.logger },
|
|
7841
7854
|
settings: { ...base.settings, ...overrides?.settings },
|
|
7855
|
+
account: { ...base.account, ...overrides?.account },
|
|
7842
7856
|
stream: { ...base.stream, ...overrides?.stream },
|
|
7843
7857
|
invocation: { ...base.invocation, ...overrides?.invocation }
|
|
7844
7858
|
};
|
package/dist/testing.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
type ContextNamespace = "project" | "resources" | "views" | "navigation" | "artifacts" | "projectFiles" | "packageFiles" | "extensionFiles" | "files" | "skills" | "sessions" | "workspaces" | "commands" | "events" | "activity" | "notify" | "automation" | "process" | "net" | "connections" | "logger" | "settings" | "stream" | "invocation";
|
|
1
|
+
import { Dc as ResourceRef, Qp as JsonObject, Sc as ResourceAnchorQuery, _s as ExtensionStorageApi, em as JsonValue, pc as ExtensionResourcesApi, xa as CommandContext, ya as ArtifactFile, yc as ResourceAnchor } from "./index-j28tAAxd.js";
|
|
2
|
+
type ContextNamespace = "project" | "resources" | "views" | "navigation" | "artifacts" | "projectFiles" | "packageFiles" | "extensionFiles" | "files" | "skills" | "sessions" | "workspaces" | "commands" | "events" | "activity" | "notify" | "automation" | "process" | "net" | "connections" | "logger" | "settings" | "account" | "stream" | "invocation";
|
|
4
3
|
type CommandContextOverrides = Partial<Omit<CommandContext, ContextNamespace>> & { [K in ContextNamespace]?: Partial<CommandContext[K]>; };
|
|
5
4
|
interface CommandContextInput<TParams extends Record<string, unknown>> {
|
|
6
5
|
storage: ExtensionStorageApi;
|
|
@@ -12,8 +11,6 @@ interface CommandContextInput<TParams extends Record<string, unknown>> {
|
|
|
12
11
|
export declare const makeCommandContext: <TParams extends Record<string, unknown>>(input: CommandContextInput<TParams>) => CommandContext<Record<string, unknown>, JsonValue>;
|
|
13
12
|
export declare const commandParamsFor: <TParams extends Record<string, unknown>>(context: CommandContext) => TParams;
|
|
14
13
|
export declare const makeCommandArgs: <TParams extends Record<string, unknown>>(input: CommandContextInput<TParams>) => readonly [CommandContext<Record<string, unknown>, JsonValue>, TParams];
|
|
15
|
-
//#endregion
|
|
16
|
-
//#region src/testing/memory-repo-files.d.ts
|
|
17
14
|
export declare const createMemoryRepoFiles: () => {
|
|
18
15
|
exists(path: string): Promise<boolean>;
|
|
19
16
|
readText(path: string): Promise<string>;
|
|
@@ -39,8 +36,6 @@ export declare const createMemoryRepoFiles: () => {
|
|
|
39
36
|
readonly [Symbol.toStringTag]: string;
|
|
40
37
|
};
|
|
41
38
|
};
|
|
42
|
-
//#endregion
|
|
43
|
-
//#region src/testing/memory-resources.d.ts
|
|
44
39
|
export declare const createMemoryResources: (prefixes: Record<string, string>, sequences?: Map<string, number>, links?: {
|
|
45
40
|
addAnchors: (resource: ResourceRef, anchors: ResourceAnchor[]) => Promise<void>;
|
|
46
41
|
removeAnchors: (resource: ResourceRef, refs: ResourceRef[]) => Promise<void>;
|
|
@@ -69,14 +64,10 @@ export declare const createMemoryResources: (prefixes: Record<string, string>, s
|
|
|
69
64
|
projectId: string;
|
|
70
65
|
extensionId: string;
|
|
71
66
|
}) => ExtensionResourcesApi;
|
|
72
|
-
//#endregion
|
|
73
|
-
//#region src/testing/memory-record-owner.d.ts
|
|
74
67
|
interface MemoryStorageSeed {
|
|
75
68
|
kv?: Record<string, unknown>;
|
|
76
69
|
collections?: Record<string, Record<string, unknown>>;
|
|
77
70
|
}
|
|
78
|
-
//#endregion
|
|
79
|
-
//#region src/testing/memory-storage.d.ts
|
|
80
71
|
interface MemoryStorageOptions extends MemoryStorageSeed {
|
|
81
72
|
/** Reuse these owner IDs to simulate the same extension and workbench on two devices. */
|
|
82
73
|
workbenchId?: string;
|
|
@@ -88,8 +79,6 @@ interface MemoryStorageOptions extends MemoryStorageSeed {
|
|
|
88
79
|
}>;
|
|
89
80
|
}
|
|
90
81
|
export declare const createMemoryStorage: (options?: MemoryStorageOptions) => ExtensionStorageApi;
|
|
91
|
-
//#endregion
|
|
92
|
-
//#region src/testing/memory-storage-devices.d.ts
|
|
93
82
|
interface MemoryStorageReplacement {
|
|
94
83
|
recordId: string;
|
|
95
84
|
/** Starts with value, asset or shared. List positions follow the merged list, then removed items. */
|
|
@@ -104,6 +93,5 @@ export declare const createMemoryStorageDevices: (options?: MemoryStorageOptions
|
|
|
104
93
|
devices: [ExtensionStorageApi, ExtensionStorageApi];
|
|
105
94
|
merge(): Promise<MemoryStorageReplacement[]>;
|
|
106
95
|
}>;
|
|
107
|
-
//#endregion
|
|
108
96
|
export type { CommandContextInput, CommandContextOverrides, MemoryStorageOptions, MemoryStorageReplacement, MemoryStorageSeed };
|
|
109
97
|
export {};
|
package/package.json
CHANGED