@immediately-run/sandbox-protocol 0.10.5 → 0.10.7
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/sandbox.js +1 -1
- package/dist/sdk.d.ts +18 -1
- package/dist/sdk.js +2 -2
- package/package.json +2 -2
- package/snapshots/sdk.json +56 -1
package/dist/sandbox.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// GENERATED by scripts/generate.mjs — DO NOT EDIT.
|
|
3
3
|
// Source of truth: src/descriptors.protocol.mjs (@immediately-run/sandbox-protocol)
|
|
4
|
-
// descriptorsHash:
|
|
4
|
+
// descriptorsHash: 72be4ea435f3b318
|
|
5
5
|
//
|
|
6
6
|
// The sandbox↔SDK wire vocabulary (PLATFORM_LAYERING_SPEC §2 / S1). Import the
|
|
7
7
|
// constants instead of writing the string: a rename then has ONE edit site and
|
package/dist/sdk.d.ts
CHANGED
|
@@ -85,7 +85,7 @@ export interface LaunchEndedPayload {
|
|
|
85
85
|
}
|
|
86
86
|
/** `llm-provider` — push · host->app. polled with `request-llm-provider`. */
|
|
87
87
|
export declare const LLM_PROVIDER = "llm-provider";
|
|
88
|
-
/** Read off this message today: `provider`. */
|
|
88
|
+
/** Read off this message today: `provider`, `ungranted`. */
|
|
89
89
|
/** `metadata-update` — message · host->app. */
|
|
90
90
|
export declare const METADATA_UPDATE = "metadata-update";
|
|
91
91
|
/** `mount-add` — message · host->app. */
|
|
@@ -250,6 +250,14 @@ export declare const PROTOCOL_SECRETS = "protocol-secrets";
|
|
|
250
250
|
export declare const PROTOCOL_SETTINGS = "protocol-settings";
|
|
251
251
|
/** `protocol-spaces` — request · app->host. */
|
|
252
252
|
export declare const PROTOCOL_SPACES = "protocol-spaces";
|
|
253
|
+
/** Params of `protocol-spaces` method `acceptInvite`. */
|
|
254
|
+
export interface ProtocolSpacesAcceptInviteParams {
|
|
255
|
+
spaceId: string;
|
|
256
|
+
}
|
|
257
|
+
/** Params of `protocol-spaces` method `declineInvite`. */
|
|
258
|
+
export interface ProtocolSpacesDeclineInviteParams {
|
|
259
|
+
spaceId: string;
|
|
260
|
+
}
|
|
253
261
|
/** Params of `protocol-spaces` method `invite`. */
|
|
254
262
|
export interface ProtocolSpacesInviteParams {
|
|
255
263
|
login: string;
|
|
@@ -268,11 +276,20 @@ export interface ProtocolSpacesLookupUserParams {
|
|
|
268
276
|
export interface ProtocolSpacesMembersParams {
|
|
269
277
|
spaceId: string;
|
|
270
278
|
}
|
|
279
|
+
/** Params of `protocol-spaces` method `pendingInvites`. */
|
|
280
|
+
export interface ProtocolSpacesPendingInvitesParams {
|
|
281
|
+
spaceId: string;
|
|
282
|
+
}
|
|
271
283
|
/** Params of `protocol-spaces` method `revokeGrant`. */
|
|
272
284
|
export interface ProtocolSpacesRevokeGrantParams {
|
|
273
285
|
appKey: string;
|
|
274
286
|
spaceId: string;
|
|
275
287
|
}
|
|
288
|
+
/** Params of `protocol-spaces` method `revokeInvite`. */
|
|
289
|
+
export interface ProtocolSpacesRevokeInviteParams {
|
|
290
|
+
spaceId: string;
|
|
291
|
+
uid: string;
|
|
292
|
+
}
|
|
276
293
|
/** Params of `protocol-spaces` method `setRole`. */
|
|
277
294
|
export interface ProtocolSpacesSetRoleParams {
|
|
278
295
|
role: "owner" | "reader" | "writer";
|
package/dist/sdk.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// GENERATED by scripts/generate.mjs — DO NOT EDIT.
|
|
3
3
|
// Source of truth: src/descriptors.protocol.mjs (@immediately-run/sandbox-protocol)
|
|
4
|
-
// descriptorsHash:
|
|
4
|
+
// descriptorsHash: 72be4ea435f3b318
|
|
5
5
|
//
|
|
6
6
|
// The sandbox↔SDK wire vocabulary (PLATFORM_LAYERING_SPEC §2 / S1). Import the
|
|
7
7
|
// constants instead of writing the string: a rename then has ONE edit site and
|
|
@@ -59,7 +59,7 @@ exports.LAUNCH_DISMISS = 'launch-dismiss';
|
|
|
59
59
|
exports.LAUNCH_ENDED = 'launch-ended';
|
|
60
60
|
/** `llm-provider` — push · host->app. polled with `request-llm-provider`. */
|
|
61
61
|
exports.LLM_PROVIDER = 'llm-provider';
|
|
62
|
-
/** Read off this message today: `provider`. */
|
|
62
|
+
/** Read off this message today: `provider`, `ungranted`. */
|
|
63
63
|
/** `metadata-update` — message · host->app. */
|
|
64
64
|
exports.METADATA_UPDATE = 'metadata-update';
|
|
65
65
|
/** `mount-add` — message · host->app. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@immediately-run/sandbox-protocol",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.7",
|
|
4
4
|
"description": "The sandbox<->SDK wire protocol: ONE descriptor set, projected into the wire-name constants, the payload types, and the per-side snapshots both repos gate against (PLATFORM_LAYERING_SPEC S1). Consumed by sandbox and immediately-run-sdk so a wire change is a version bump, not a hand-copied file.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"repository": {
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"generate": "node scripts/generate.mjs",
|
|
53
53
|
"build": "npm run generate && tsc -p tsconfig.build.json",
|
|
54
54
|
"test": "jest",
|
|
55
|
-
"lint": "eslint src test",
|
|
55
|
+
"lint": "eslint src test --max-warnings 0",
|
|
56
56
|
"check:drift": "node scripts/verify-drift.mjs --self-test && node scripts/verify-drift.mjs",
|
|
57
57
|
"check:dependency-free": "node scripts/check-dependency-free.mjs --self-test && node scripts/check-dependency-free.mjs",
|
|
58
58
|
"check:publish-version": "node scripts/check-publish-version.mjs --self-test && node scripts/check-publish-version.mjs",
|
package/snapshots/sdk.json
CHANGED
|
@@ -735,7 +735,8 @@
|
|
|
735
735
|
"poll": "request-llm-provider",
|
|
736
736
|
"payload": {
|
|
737
737
|
"reads": [
|
|
738
|
-
"provider"
|
|
738
|
+
"provider",
|
|
739
|
+
"ungranted"
|
|
739
740
|
]
|
|
740
741
|
},
|
|
741
742
|
"value": {
|
|
@@ -1635,6 +1636,28 @@
|
|
|
1635
1636
|
"type": "Record<string, unknown>"
|
|
1636
1637
|
}
|
|
1637
1638
|
},
|
|
1639
|
+
"acceptInvite": {
|
|
1640
|
+
"payload": {
|
|
1641
|
+
"fields": [
|
|
1642
|
+
{
|
|
1643
|
+
"name": "spaceId",
|
|
1644
|
+
"optional": false,
|
|
1645
|
+
"type": "string"
|
|
1646
|
+
}
|
|
1647
|
+
]
|
|
1648
|
+
}
|
|
1649
|
+
},
|
|
1650
|
+
"declineInvite": {
|
|
1651
|
+
"payload": {
|
|
1652
|
+
"fields": [
|
|
1653
|
+
{
|
|
1654
|
+
"name": "spaceId",
|
|
1655
|
+
"optional": false,
|
|
1656
|
+
"type": "string"
|
|
1657
|
+
}
|
|
1658
|
+
]
|
|
1659
|
+
}
|
|
1660
|
+
},
|
|
1638
1661
|
"grants": {
|
|
1639
1662
|
"payload": {
|
|
1640
1663
|
"type": "{}"
|
|
@@ -1697,6 +1720,11 @@
|
|
|
1697
1720
|
"type": "{}"
|
|
1698
1721
|
}
|
|
1699
1722
|
},
|
|
1723
|
+
"listInvites": {
|
|
1724
|
+
"payload": {
|
|
1725
|
+
"type": "{}"
|
|
1726
|
+
}
|
|
1727
|
+
},
|
|
1700
1728
|
"lookupUser": {
|
|
1701
1729
|
"payload": {
|
|
1702
1730
|
"fields": [
|
|
@@ -1719,6 +1747,17 @@
|
|
|
1719
1747
|
]
|
|
1720
1748
|
}
|
|
1721
1749
|
},
|
|
1750
|
+
"pendingInvites": {
|
|
1751
|
+
"payload": {
|
|
1752
|
+
"fields": [
|
|
1753
|
+
{
|
|
1754
|
+
"name": "spaceId",
|
|
1755
|
+
"optional": false,
|
|
1756
|
+
"type": "string"
|
|
1757
|
+
}
|
|
1758
|
+
]
|
|
1759
|
+
}
|
|
1760
|
+
},
|
|
1722
1761
|
"revokeGrant": {
|
|
1723
1762
|
"payload": {
|
|
1724
1763
|
"fields": [
|
|
@@ -1735,6 +1774,22 @@
|
|
|
1735
1774
|
]
|
|
1736
1775
|
}
|
|
1737
1776
|
},
|
|
1777
|
+
"revokeInvite": {
|
|
1778
|
+
"payload": {
|
|
1779
|
+
"fields": [
|
|
1780
|
+
{
|
|
1781
|
+
"name": "spaceId",
|
|
1782
|
+
"optional": false,
|
|
1783
|
+
"type": "string"
|
|
1784
|
+
},
|
|
1785
|
+
{
|
|
1786
|
+
"name": "uid",
|
|
1787
|
+
"optional": false,
|
|
1788
|
+
"type": "string"
|
|
1789
|
+
}
|
|
1790
|
+
]
|
|
1791
|
+
}
|
|
1792
|
+
},
|
|
1738
1793
|
"setRole": {
|
|
1739
1794
|
"payload": {
|
|
1740
1795
|
"fields": [
|