@puckeditor/cloud-client 0.8.0 → 0.8.1-canary.34ab5ce5
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.
|
@@ -22414,7 +22414,7 @@ var DEFAULT_V2_MODELS = {
|
|
|
22414
22414
|
assembly: "openai/gpt-5.4-mini",
|
|
22415
22415
|
design: "openai/gpt-5.6-luna"
|
|
22416
22416
|
};
|
|
22417
|
-
var CLOUD_CLIENT_VERSION = true ? "0.8.
|
|
22417
|
+
var CLOUD_CLIENT_VERSION = true ? "0.8.1-canary.34ab5ce5" : "unknown";
|
|
22418
22418
|
var cloudApi = async (path, body, options = {}, onChunk, forwardHeaders) => {
|
|
22419
22419
|
const {
|
|
22420
22420
|
ai = {},
|
|
@@ -22431,7 +22431,7 @@ var cloudApi = async (path, body, options = {}, onChunk, forwardHeaders) => {
|
|
|
22431
22431
|
const bodyMode = "mode" in body ? body.mode : void 0;
|
|
22432
22432
|
const mode = bodyMode === "design" || bodyMode === void 0 && ai.mode === "design" ? "design" : "assembly";
|
|
22433
22433
|
const model = ai.model ?? (apiVersion === DEFAULT_API_VERSION ? DEFAULT_V2_MODELS[mode] : void 0);
|
|
22434
|
-
const providerApiKey = ai.model || designMode?.model ? ai.providerApiKey
|
|
22434
|
+
const providerApiKey = ai.model || designMode?.model ? ai.providerApiKey : void 0;
|
|
22435
22435
|
const sealedProviderKey = providerApiKey ? await sealProviderKey(providerApiKey, apiKey) : void 0;
|
|
22436
22436
|
const res = await fetchWithRetry(`${host}/${path}`, {
|
|
22437
22437
|
headers: {
|
package/dist/experimental.js
CHANGED
|
@@ -22457,7 +22457,7 @@ var DEFAULT_V2_MODELS = {
|
|
|
22457
22457
|
assembly: "openai/gpt-5.4-mini",
|
|
22458
22458
|
design: "openai/gpt-5.6-luna"
|
|
22459
22459
|
};
|
|
22460
|
-
var CLOUD_CLIENT_VERSION = true ? "0.8.
|
|
22460
|
+
var CLOUD_CLIENT_VERSION = true ? "0.8.1-canary.34ab5ce5" : "unknown";
|
|
22461
22461
|
var cloudApi = async (path, body, options = {}, onChunk, forwardHeaders) => {
|
|
22462
22462
|
const {
|
|
22463
22463
|
ai = {},
|
|
@@ -22474,7 +22474,7 @@ var cloudApi = async (path, body, options = {}, onChunk, forwardHeaders) => {
|
|
|
22474
22474
|
const bodyMode = "mode" in body ? body.mode : void 0;
|
|
22475
22475
|
const mode = bodyMode === "design" || bodyMode === void 0 && ai.mode === "design" ? "design" : "assembly";
|
|
22476
22476
|
const model = ai.model ?? (apiVersion === DEFAULT_API_VERSION ? DEFAULT_V2_MODELS[mode] : void 0);
|
|
22477
|
-
const providerApiKey = ai.model || designMode?.model ? ai.providerApiKey
|
|
22477
|
+
const providerApiKey = ai.model || designMode?.model ? ai.providerApiKey : void 0;
|
|
22478
22478
|
const sealedProviderKey = providerApiKey ? await sealProviderKey(providerApiKey, apiKey) : void 0;
|
|
22479
22479
|
const res = await fetchWithRetry(`${host}/${path}`, {
|
|
22480
22480
|
headers: {
|
package/dist/experimental.mjs
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -675,8 +675,7 @@ type PuckAiOptions = {
|
|
|
675
675
|
*/
|
|
676
676
|
model?: PuckAiModel;
|
|
677
677
|
/**
|
|
678
|
-
* API key for the provider named in `model`. Providing one
|
|
679
|
-
* OPENAI_API_KEY) opts into BYOK.
|
|
678
|
+
* API key for the provider named in `model`. Providing one opts into BYOK.
|
|
680
679
|
*/
|
|
681
680
|
providerApiKey?: string;
|
|
682
681
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -675,8 +675,7 @@ type PuckAiOptions = {
|
|
|
675
675
|
*/
|
|
676
676
|
model?: PuckAiModel;
|
|
677
677
|
/**
|
|
678
|
-
* API key for the provider named in `model`. Providing one
|
|
679
|
-
* OPENAI_API_KEY) opts into BYOK.
|
|
678
|
+
* API key for the provider named in `model`. Providing one opts into BYOK.
|
|
680
679
|
*/
|
|
681
680
|
providerApiKey?: string;
|
|
682
681
|
/**
|
package/dist/index.js
CHANGED
|
@@ -22459,7 +22459,7 @@ var DEFAULT_V2_MODELS = {
|
|
|
22459
22459
|
assembly: "openai/gpt-5.4-mini",
|
|
22460
22460
|
design: "openai/gpt-5.6-luna"
|
|
22461
22461
|
};
|
|
22462
|
-
var CLOUD_CLIENT_VERSION = true ? "0.8.
|
|
22462
|
+
var CLOUD_CLIENT_VERSION = true ? "0.8.1-canary.34ab5ce5" : "unknown";
|
|
22463
22463
|
var cloudApi = async (path, body, options = {}, onChunk, forwardHeaders) => {
|
|
22464
22464
|
const {
|
|
22465
22465
|
ai = {},
|
|
@@ -22476,7 +22476,7 @@ var cloudApi = async (path, body, options = {}, onChunk, forwardHeaders) => {
|
|
|
22476
22476
|
const bodyMode = "mode" in body ? body.mode : void 0;
|
|
22477
22477
|
const mode = bodyMode === "design" || bodyMode === void 0 && ai.mode === "design" ? "design" : "assembly";
|
|
22478
22478
|
const model = ai.model ?? (apiVersion === DEFAULT_API_VERSION ? DEFAULT_V2_MODELS[mode] : void 0);
|
|
22479
|
-
const providerApiKey = ai.model || designMode?.model ? ai.providerApiKey
|
|
22479
|
+
const providerApiKey = ai.model || designMode?.model ? ai.providerApiKey : void 0;
|
|
22480
22480
|
const sealedProviderKey = providerApiKey ? await sealProviderKey(providerApiKey, apiKey) : void 0;
|
|
22481
22481
|
const res = await fetchWithRetry(`${host}/${path}`, {
|
|
22482
22482
|
headers: {
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@puckeditor/cloud-client",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1-canary.34ab5ce5",
|
|
4
4
|
"author": "Chris Villa <chris@puckeditor.com>",
|
|
5
5
|
"repository": "puckeditor/puck",
|
|
6
6
|
"bugs": "https://github.com/puckeditor/puck/issues",
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"vite-tsconfig-paths": "^5.1.4",
|
|
45
45
|
"vitest": "^4.1.0",
|
|
46
46
|
"zod": "^4.1.12",
|
|
47
|
-
"eslint-config-custom": "0.8.
|
|
48
|
-
"tsconfig": "0.8.
|
|
49
|
-
"tsup-config": "0.8.
|
|
47
|
+
"eslint-config-custom": "0.8.1-canary.34ab5ce5",
|
|
48
|
+
"tsconfig": "0.8.1-canary.34ab5ce5",
|
|
49
|
+
"tsup-config": "0.8.1-canary.34ab5ce5"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
52
|
"lint": "eslint \"**/*.ts*\"",
|