@civitai/sdk 0.11.0 → 0.12.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/BREAKING.md +1 -1
- package/README.md +269 -5
- package/dist/app/index.d.ts +15 -1
- package/dist/app/index.js +44 -10
- package/dist/core/transports/iframe-transport.js +4 -1
- package/dist/http/retry.d.ts +3 -0
- package/dist/http/retry.js +14 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1 -0
- package/dist/orchestration/index.d.ts +1 -1
- package/dist/orchestration/index.js +1 -14
- package/dist/version.generated.d.ts +2 -0
- package/dist/version.generated.js +3 -0
- package/dist/workflows/index.d.ts +181 -0
- package/dist/workflows/index.js +149 -0
- package/dist/workflows/types.generated.d.ts +1703 -0
- package/dist/workflows/types.generated.js +7 -0
- package/package.json +4 -2
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// Generated by scripts/gen-workflow-types.mjs from packages/civitai-app-sdk/src/blocks/types.ts. Do not edit.
|
|
2
|
+
//
|
|
3
|
+
// A copy of the block workflow contract types `@civitai/app-sdk/blocks` defines,
|
|
4
|
+
// so a workflow body can be written against `@civitai/sdk` alone. The doc
|
|
5
|
+
// comments are the source's own: where one names a React hook or a constant,
|
|
6
|
+
// that lives in `@civitai/blocks-react` / `@civitai/app-sdk/blocks`.
|
|
7
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@civitai/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "The Civitai SDK: an app holds a token and calls the Civitai API and the orchestrator; a block asks its host only to show host UI.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -60,13 +60,15 @@
|
|
|
60
60
|
"@civitai/orchestration-client": "0.2.0-beta.101"
|
|
61
61
|
},
|
|
62
62
|
"scripts": {
|
|
63
|
-
"
|
|
63
|
+
"generate": "node ../../scripts/gen-version.mjs",
|
|
64
|
+
"build": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\" && node ../../scripts/gen-version.mjs && tsc -p tsconfig.json",
|
|
64
65
|
"api": "node scripts/api-report.mjs",
|
|
65
66
|
"api:check": "node scripts/api-report.mjs --check",
|
|
66
67
|
"check:layering": "node scripts/check-layering.mjs",
|
|
67
68
|
"check:parity": "node scripts/check-host-parity.mjs",
|
|
68
69
|
"gen:steps": "node scripts/gen-step-types.mjs",
|
|
69
70
|
"check:steps": "node scripts/gen-step-types.mjs --check",
|
|
71
|
+
"gen:workflow-types": "node scripts/gen-workflow-types.mjs",
|
|
70
72
|
"snapshot:host": "node scripts/snapshot-host-messages.mjs",
|
|
71
73
|
"typecheck": "tsc -p tsconfig.json --noEmit && tsc -p tsconfig.test.json && tsc -p tsconfig.examples.json",
|
|
72
74
|
"test": "vitest run",
|