@pstdio/sdk 0.39.0 → 0.41.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/testing.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Ei as CommandContext, Ti as ArtifactMount, Yi as ExtensionStorageApi, ad as ExtensionResourcesApi } from "./index-Dd4tqVV7.js";
1
+ import { Ad as ResourceAnchor, Di as ArtifactMount, Ed as ExtensionResourcesApi, Id as ResourceRef, Nd as ResourceAnchorQuery, Oi as CommandContext, Zi as ExtensionStorageApi } from "./index-BvsVU-eX.js";
2
2
  //#region src/testing/command-context.d.ts
3
3
  type CommandContextOverrides = { [K in keyof CommandContext]?: Partial<CommandContext[K]>; };
4
4
  interface CommandContextInput<TParams extends Record<string, unknown>> {
@@ -18,7 +18,18 @@ export declare const createMemoryRepoFiles: () => ArtifactMount & {
18
18
  };
19
19
  //#endregion
20
20
  //#region src/testing/memory-resources.d.ts
21
- export declare const createMemoryResources: (prefixes: Record<string, string>, sequences?: Map<string, number>) => ExtensionResourcesApi;
21
+ export declare const createMemoryResources: (prefixes: Record<string, string>, sequences?: Map<string, number>, links?: {
22
+ addAnchors: (resource: ResourceRef, anchors: ResourceAnchor[]) => Promise<void>;
23
+ removeAnchors: (resource: ResourceRef, refs: ResourceRef[]) => Promise<void>;
24
+ listAnchors: (query: ResourceAnchorQuery) => Promise<{
25
+ nextCursor?: string | undefined;
26
+ items: {
27
+ source: ResourceRef;
28
+ target: ResourceAnchor;
29
+ }[];
30
+ }>;
31
+ removed: (resource: ResourceRef) => Promise<void>;
32
+ }) => ExtensionResourcesApi;
22
33
  //#endregion
23
34
  //#region src/testing/memory-storage.d.ts
24
35
  export declare const createMemoryStorage: () => ExtensionStorageApi;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pstdio/sdk",
3
- "version": "0.39.0",
3
+ "version": "0.41.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/pufflyai/prompt-studio"
@@ -1,2 +0,0 @@
1
- import "./index-Dd4tqVV7.js";
2
- export {};
@@ -1,2 +0,0 @@
1
- import "./index-Dd4tqVV7.js";
2
- export {};