@getpaseo/plugin 0.15.4 → 0.16.0-beta.2
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/LICENSE +211 -0
- package/dist/client/client-state.d.ts +74 -6
- package/dist/client/client-state.js +48 -16
- package/dist/client/composer.d.ts +104 -0
- package/dist/client/composer.js +37 -0
- package/dist/client/contracts.d.ts +36 -4
- package/dist/client/host.d.ts +9 -3
- package/dist/client/host.js +7 -3
- package/dist/client/index.d.ts +11 -3
- package/dist/client/index.js +4 -2
- package/dist/client/new-workspace.d.ts +69 -0
- package/dist/client/new-workspace.js +17 -0
- package/dist/client/paseo-context.d.ts +5 -5
- package/dist/client/paseo-context.js +1 -1
- package/dist/client/query.d.ts +26 -0
- package/dist/client/query.js +84 -0
- package/dist/client/reference-api.d.ts +38 -0
- package/dist/client/reference-api.js +44 -0
- package/dist/client/refs.d.ts +28 -0
- package/dist/client/refs.js +22 -0
- package/dist/client/rpc-context.d.ts +23 -3
- package/dist/client/rpc-context.js +60 -4
- package/dist/client/runtime-context-bridge.js +11 -3
- package/dist/client/ui.d.ts +65 -0
- package/dist/contracts.d.ts +45 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/refs.d.ts +16 -0
- package/dist/refs.js +2 -0
- package/dist/rpc.d.ts +40 -1
- package/dist/rpc.js +37 -2
- package/dist/server/acp-internal/connection.js +66 -24
- package/dist/server/contracts.d.ts +19 -2
- package/dist/server/index.d.ts +1 -1
- package/dist/server/lifecycle.d.ts +24 -3
- package/dist/server/provider.d.ts +44 -1
- package/dist/server/provider.js +29 -1
- package/dist/settings.d.ts +2 -2
- package/dist/settings.js +2 -2
- package/package.json +6 -5
package/dist/settings.js
CHANGED
|
@@ -3,8 +3,8 @@ import { defineRpc } from "./rpc.js";
|
|
|
3
3
|
export function defineSettings(definition) {
|
|
4
4
|
if (!/^[a-z][a-z0-9_-]*$/.test(definition.id))
|
|
5
5
|
throw new Error("Invalid settings ID");
|
|
6
|
-
if (definition.scope !== "host")
|
|
7
|
-
throw new Error("
|
|
6
|
+
if (definition.scope !== "host" && definition.scope !== "device")
|
|
7
|
+
throw new Error("Invalid settings scope");
|
|
8
8
|
if (!Number.isSafeInteger(definition.version) || definition.version < 1)
|
|
9
9
|
throw new Error("Invalid settings version");
|
|
10
10
|
return definition;
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpaseo/plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0-beta.2",
|
|
4
4
|
"description": "Paseo plugin SDK package",
|
|
5
|
+
"license": "Apache-2.0",
|
|
5
6
|
"files": [
|
|
6
7
|
"dist",
|
|
7
8
|
"!dist/**/*.map"
|
|
@@ -77,8 +78,8 @@
|
|
|
77
78
|
"use-sync-external-store": "^1.6.0"
|
|
78
79
|
},
|
|
79
80
|
"devDependencies": {
|
|
80
|
-
"@getpaseo/client": "0.
|
|
81
|
-
"@getpaseo/protocol": "0.
|
|
81
|
+
"@getpaseo/client": "0.16.0-beta.2",
|
|
82
|
+
"@getpaseo/protocol": "0.16.0-beta.2",
|
|
82
83
|
"@types/node": "^20.9.0",
|
|
83
84
|
"@types/react": "~19.2.0",
|
|
84
85
|
"react": "19.2.3",
|
|
@@ -88,8 +89,8 @@
|
|
|
88
89
|
"zod": "^4.4.3"
|
|
89
90
|
},
|
|
90
91
|
"peerDependencies": {
|
|
91
|
-
"@getpaseo/client": "0.
|
|
92
|
-
"@getpaseo/protocol": "0.
|
|
92
|
+
"@getpaseo/client": "0.16.0-beta.2",
|
|
93
|
+
"@getpaseo/protocol": "0.16.0-beta.2",
|
|
93
94
|
"react": ">=19.1.0 <20",
|
|
94
95
|
"react-native": ">=0.81.5",
|
|
95
96
|
"zod": "^4.4.3"
|