@pstdio/sdk 0.19.0 → 0.21.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/extensions.d.ts +1 -1
- package/dist/api/index.d.ts +2 -3
- package/dist/api/index.js +798 -470
- package/dist/client/automation.d.ts +12 -0
- package/dist/client/client.d.ts +2 -2
- package/dist/client/extensions.d.ts +5 -2
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.js +20 -14
- package/dist/extensions/define-command.d.ts +13 -11
- package/dist/extensions/define-contribution.d.ts +36 -0
- package/dist/extensions/define-extension-view.d.ts +2 -0
- package/dist/extensions/define-extension.d.ts +8 -38
- package/dist/extensions/index.d.ts +3 -1
- package/dist/extensions/index.js +185 -134
- package/dist/extensions/params.d.ts +1 -4
- package/dist/extensions/react/index.d.ts +16 -0
- package/dist/extensions/react/index.js +38 -0
- package/dist/extensions/webview-client.d.ts +41 -0
- package/dist/extensions/when.d.ts +3 -1
- package/dist/resources/index.d.ts +0 -1
- package/dist/resources/index.js +798 -470
- package/package.json +22 -3
- package/dist/api/templates.d.ts +0 -1
- package/dist/client/templates.d.ts +0 -11
- package/dist/resources/template.d.ts +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pstdio/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/pufflyai/prompt-studio"
|
|
@@ -29,6 +29,10 @@
|
|
|
29
29
|
"types": "./dist/extensions/index.d.ts",
|
|
30
30
|
"import": "./dist/extensions/index.js"
|
|
31
31
|
},
|
|
32
|
+
"./extensions/react": {
|
|
33
|
+
"types": "./dist/extensions/react/index.d.ts",
|
|
34
|
+
"import": "./dist/extensions/react/index.js"
|
|
35
|
+
},
|
|
32
36
|
"./prompts": {
|
|
33
37
|
"types": "./dist/prompts/index.d.ts",
|
|
34
38
|
"import": "./dist/prompts/index.js"
|
|
@@ -40,7 +44,7 @@
|
|
|
40
44
|
},
|
|
41
45
|
"scripts": {
|
|
42
46
|
"build": "rm -rf ./dist && bun run build:js && bun run build:types",
|
|
43
|
-
"build:js": "bun build ./src/api/index.ts ./src/client/index.ts ./src/extensions/index.ts ./src/prompts/index.ts ./src/hooks/index.ts ./src/resources/index.ts --outdir ./dist --root ./src --target node --format esm --external mustache",
|
|
47
|
+
"build:js": "bun build ./src/api/index.ts ./src/client/index.ts ./src/extensions/index.ts ./src/extensions/react/index.ts ./src/prompts/index.ts ./src/hooks/index.ts ./src/resources/index.ts --outdir ./dist --root ./src --target node --format esm --external mustache --external react --external @tanstack/react-query",
|
|
44
48
|
"build:types": "tsc --project ./tsconfig.build.json",
|
|
45
49
|
"prepack": "bun run build",
|
|
46
50
|
"typecheck": "tsc --noEmit",
|
|
@@ -52,10 +56,25 @@
|
|
|
52
56
|
"dependencies": {
|
|
53
57
|
"mustache": "^4.2.0"
|
|
54
58
|
},
|
|
59
|
+
"peerDependencies": {
|
|
60
|
+
"@tanstack/react-query": "^5.0.0",
|
|
61
|
+
"react": "^19.0.0"
|
|
62
|
+
},
|
|
63
|
+
"peerDependenciesMeta": {
|
|
64
|
+
"@tanstack/react-query": {
|
|
65
|
+
"optional": true
|
|
66
|
+
},
|
|
67
|
+
"react": {
|
|
68
|
+
"optional": true
|
|
69
|
+
}
|
|
70
|
+
},
|
|
55
71
|
"devDependencies": {
|
|
56
|
-
"@
|
|
72
|
+
"@tanstack/react-query": "^5.90.21",
|
|
73
|
+
"@types/bun": "1.3.14",
|
|
57
74
|
"@types/mustache": "^4.2.6",
|
|
75
|
+
"@types/react": "^19.2.0",
|
|
58
76
|
"pstdio-api-contracts": "workspace:*",
|
|
77
|
+
"react": "^19.0.0",
|
|
59
78
|
"typescript": "6.0.2"
|
|
60
79
|
}
|
|
61
80
|
}
|
package/dist/api/templates.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { CreateTemplateInput, UpdateTemplateInput } from "pstdio-api-contracts";
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { CreateTemplateInput, UpdateTemplateInput } from "../api/templates";
|
|
2
|
-
import type { Template, TemplateWithContent } from "../resources";
|
|
3
|
-
import type { RequestFn } from "./request";
|
|
4
|
-
export type TemplateClient = {
|
|
5
|
-
list(projectId: string): Promise<Template[]>;
|
|
6
|
-
get(projectId: string, templateId: string): Promise<TemplateWithContent>;
|
|
7
|
-
create(projectId: string, input: CreateTemplateInput): Promise<Template>;
|
|
8
|
-
update(projectId: string, templateId: string, input: UpdateTemplateInput): Promise<Template>;
|
|
9
|
-
delete(projectId: string, templateId: string): Promise<void>;
|
|
10
|
-
};
|
|
11
|
-
export declare const createTemplateClient: (request: RequestFn) => TemplateClient;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { Template, TemplateType, TemplateWithContent } from "pstdio-api-contracts";
|