@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.
Files changed (40) hide show
  1. package/LICENSE +211 -0
  2. package/dist/client/client-state.d.ts +74 -6
  3. package/dist/client/client-state.js +48 -16
  4. package/dist/client/composer.d.ts +104 -0
  5. package/dist/client/composer.js +37 -0
  6. package/dist/client/contracts.d.ts +36 -4
  7. package/dist/client/host.d.ts +9 -3
  8. package/dist/client/host.js +7 -3
  9. package/dist/client/index.d.ts +11 -3
  10. package/dist/client/index.js +4 -2
  11. package/dist/client/new-workspace.d.ts +69 -0
  12. package/dist/client/new-workspace.js +17 -0
  13. package/dist/client/paseo-context.d.ts +5 -5
  14. package/dist/client/paseo-context.js +1 -1
  15. package/dist/client/query.d.ts +26 -0
  16. package/dist/client/query.js +84 -0
  17. package/dist/client/reference-api.d.ts +38 -0
  18. package/dist/client/reference-api.js +44 -0
  19. package/dist/client/refs.d.ts +28 -0
  20. package/dist/client/refs.js +22 -0
  21. package/dist/client/rpc-context.d.ts +23 -3
  22. package/dist/client/rpc-context.js +60 -4
  23. package/dist/client/runtime-context-bridge.js +11 -3
  24. package/dist/client/ui.d.ts +65 -0
  25. package/dist/contracts.d.ts +45 -0
  26. package/dist/index.d.ts +2 -2
  27. package/dist/index.js +1 -1
  28. package/dist/refs.d.ts +16 -0
  29. package/dist/refs.js +2 -0
  30. package/dist/rpc.d.ts +40 -1
  31. package/dist/rpc.js +37 -2
  32. package/dist/server/acp-internal/connection.js +66 -24
  33. package/dist/server/contracts.d.ts +19 -2
  34. package/dist/server/index.d.ts +1 -1
  35. package/dist/server/lifecycle.d.ts +24 -3
  36. package/dist/server/provider.d.ts +44 -1
  37. package/dist/server/provider.js +29 -1
  38. package/dist/settings.d.ts +2 -2
  39. package/dist/settings.js +2 -2
  40. 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("Only host-scoped settings are supported");
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.15.4",
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.15.4",
81
- "@getpaseo/protocol": "0.15.4",
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.15.4",
92
- "@getpaseo/protocol": "0.15.4",
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"