@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/prompts.d.ts CHANGED
@@ -1,4 +1,2 @@
1
- //#region src/prompts/render-prompt.d.ts
2
1
  export declare const renderPrompt: (template: string, data: Record<string, unknown>) => string;
3
- //#endregion
4
2
  export {};
@@ -1,3 +1,3 @@
1
- import { $s as NotificationOrigin, Bm as harnessLocalId, Bs as SkillDetails, Df as SessionFollowUpDecision, Ef as SessionDetails, Fm as AgentDetails, Gs as CreateNotificationInput, Gt as WorkspaceListItem, Hm as ActivityPage, Hs as SkillWithContent, Im as AgentInfo, Js as Notification, Ks as ListNotificationsQuery, Lm as AgentModel, Mm as AssetReference, Nm as AssetTransfer, Of as SessionFollowUpRequest, Pm as AgentAvailabilityType, Qs as NotificationKind, Rm as AgentSkillsLayout, S as ProjectUpdateRequest, T as FileRecord, Tc as PageQuery, Tf as SessionCreateResponse, Us as SkillWithContentDetails, Vm as ActivityEntry, Vs as SkillFile, Wt as Workspace, Xs as NotificationActorType, Ys as NotificationAction, Zs as NotificationFinalStatus, b as ProjectCreateRequest, bf as SessionAttachmentDetails, ec as NotificationPriority, jf as SessionStatus, kf as SessionFollowUpResponse, nc as SetNotificationStatusInput, p as Settings, qs as ListNotificationsResponse, rc as UpdateNotificationInput, s as WorkspaceEntryMoveInput, tc as NotificationStatus, v as InitialWorkspaceRequest, vf as Session, wc as Page, wf as SessionCreateRequest, x as ProjectDetails, y as Project, zs as Skill } from "./index-DTqJS-fZ.js";
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 {};
@@ -0,0 +1,2 @@
1
+ import "./index-j28tAAxd.js";
2
+ export {};
@@ -0,0 +1,2 @@
1
+ import "./index-j28tAAxd.js";
2
+ export {};
@@ -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 { Ap as JsonValue, Op as JsonObject, cs as ExtensionStorageApi, fa as CommandContext, ic as ExtensionResourcesApi, pc as ResourceAnchorQuery, ua as ArtifactFile, uc as ResourceAnchor, vc as ResourceRef } from "./index-DTqJS-fZ.js";
2
- //#region src/testing/command-context.d.ts
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pstdio/sdk",
3
- "version": "0.45.0-nightly.20261021143541",
3
+ "version": "0.45.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/pufflyai/prompt-studio"
@@ -1,2 +0,0 @@
1
- import "./index-DTqJS-fZ.js";
2
- export {};
@@ -1,2 +0,0 @@
1
- import "./index-DTqJS-fZ.js";
2
- export {};