@crowdedkingdoms/crowdyjs 17.7.0-test.1 → 17.8.0-dev.1

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.
@@ -12,7 +12,7 @@
12
12
  },
13
13
  {
14
14
  "name": "browser-authoring-index.json",
15
- "bytes": 144927,
15
+ "bytes": 146847,
16
16
  "provenance": "cks-game-api generated browser authoring index"
17
17
  }
18
18
  ]
@@ -1 +1 @@
1
- {"version":3,"file":"browser-authoring-index.generated.d.ts","sourceRoot":"","sources":["../../src/live-coding/browser-authoring-index.generated.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,iCAAiC,EAAE,OAqnK/C,CAAC"}
1
+ {"version":3,"file":"browser-authoring-index.generated.d.ts","sourceRoot":"","sources":["../../src/live-coding/browser-authoring-index.generated.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,iCAAiC,EAAE,OAsqK/C,CAAC"}
@@ -2,9 +2,9 @@
2
2
  export const GENERATED_BROWSER_AUTHORING_INDEX = {
3
3
  "schemaVersion": 2,
4
4
  "rustVersion": "1.97.1",
5
- "sdkVersion": "0.1.6",
5
+ "sdkVersion": "0.1.8",
6
6
  "abiVersion": 0,
7
- "contentHash": "403558606363e0ed9227513fb31aacacad18d4215843321f7d7874370ff8702e",
7
+ "contentHash": "5540301f69ad5ee2566e142227c2cc9730b45e6b3710189a7e1900d0877af114",
8
8
  "crates": [
9
9
  {
10
10
  "name": "alloc",
@@ -18,8 +18,8 @@ export const GENERATED_BROWSER_AUTHORING_INDEX = {
18
18
  },
19
19
  {
20
20
  "name": "crowdy-compute-sdk",
21
- "version": "0.1.6",
22
- "sourceHash": "33e063cbb758695b01ea2cce6f9d1b7b12878d939b231f3b9cb4905bb8b879b0"
21
+ "version": "0.1.8",
22
+ "sourceHash": "bbd0a38014a0b390750f78f9797b4dff34387122301a1bed207c997126a688c8"
23
23
  },
24
24
  {
25
25
  "name": "crowdy-game-kit-ai",
@@ -29,7 +29,7 @@ export const GENERATED_BROWSER_AUTHORING_INDEX = {
29
29
  {
30
30
  "name": "crowdy-game-kit-core",
31
31
  "version": "0.1.0",
32
- "sourceHash": "25e6bd39c2fe668915f58af556e5346fac46a4bff4c512cab76f6f54176ae988"
32
+ "sourceHash": "b6b4f7ee86c33898f87792668b9201f807d11dc19c2b6bbd579c8d22fe41e4b1"
33
33
  },
34
34
  {
35
35
  "name": "crowdy-game-kit-econ",
@@ -220,8 +220,15 @@ export const GENERATED_BROWSER_AUTHORING_INDEX = {
220
220
  "module": "crowdy_compute_sdk",
221
221
  "name": "HostError",
222
222
  "kind": "struct",
223
- "signature": "pub struct HostError { pub kind: String, #[serde(default)] pub message: Option<String>, }",
224
- "docs": "A structured error from the host API."
223
+ "signature": "pub struct HostError { pub kind: String, #[serde(default)] pub message: Option<String>, #[serde(default)] pub blame: Option<String>, #[serde(default)] pub retryable: Option<bool>, #[serde(default, rename = \"retryAfterMs\")] pub retry_after_ms: Option<u64>, }",
224
+ "docs": "A structured error from the host API. `blame` and `retryable` match the GraphQL fault extensions (`PLATFORM` / `AUTHOR` / `BUDGET`). Older hosts omit them; a module treats a missing `retryable` as \"not told\", and branches on `kind` (`platform_busy` means retry)."
225
+ },
226
+ {
227
+ "module": "crowdy_compute_sdk",
228
+ "name": "HostError::blame",
229
+ "kind": "field",
230
+ "signature": "pub blame: Option<String>",
231
+ "docs": ""
225
232
  },
226
233
  {
227
234
  "module": "crowdy_compute_sdk",
@@ -244,6 +251,20 @@ export const GENERATED_BROWSER_AUTHORING_INDEX = {
244
251
  "signature": "pub message: Option<String>",
245
252
  "docs": ""
246
253
  },
254
+ {
255
+ "module": "crowdy_compute_sdk",
256
+ "name": "HostError::retry_after_ms",
257
+ "kind": "field",
258
+ "signature": "pub retry_after_ms: Option<u64>",
259
+ "docs": ""
260
+ },
261
+ {
262
+ "module": "crowdy_compute_sdk",
263
+ "name": "HostError::retryable",
264
+ "kind": "field",
265
+ "signature": "pub retryable: Option<bool>",
266
+ "docs": ""
267
+ },
247
268
  {
248
269
  "module": "crowdy_compute_sdk",
249
270
  "name": "api",
@@ -466,7 +487,14 @@ export const GENERATED_BROWSER_AUTHORING_INDEX = {
466
487
  "name": "container_get_batch",
467
488
  "kind": "function",
468
489
  "signature": "pub fn container_get_batch(container_ids: &[&str]) -> Result<Value, HostError>",
469
- "docs": "Batched container_get: up to 32 ids -> [{container, properties}] in one db-op. Requires SDK 0.1.2+ on the host."
490
+ "docs": "Batched container_get: up to 32 ids -> [{container, properties}] in one db-op. Requires SDK 0.1.2+ on the host. Each container includes `bindingKey` and `sessionId` (SDK 0.1.8+; older hosts omit the key)."
491
+ },
492
+ {
493
+ "module": "crowdy_compute_sdk::api",
494
+ "name": "container_get_by_key",
495
+ "kind": "function",
496
+ "signature": "pub fn container_get_by_key( type_name: &str, session_id: Option<&str>, binding_key: &str, ) -> Result<Value, HostError>",
497
+ "docs": "One container by `(type_name, session_id, binding_key)`, plus its property map. `session_id` null matches an app-scoped row. Requires SDK 0.1.8+ on the host. Server only."
470
498
  },
471
499
  {
472
500
  "module": "crowdy_compute_sdk::api",
@@ -1683,9 +1711,16 @@ export const GENERATED_BROWSER_AUTHORING_INDEX = {
1683
1711
  "module": "crowdy_game_kit_core::model",
1684
1712
  "name": "Container",
1685
1713
  "kind": "struct",
1686
- "signature": "pub struct Container { pub id: String, pub type_name: String, pub display_name: String, pub owner_user_id: Option<String>, pub properties: Value, }",
1714
+ "signature": "pub struct Container { pub id: String, pub type_name: String, pub display_name: String, pub owner_user_id: Option<String>, pub session_id: Option<String>, pub binding_key: Option<String>, pub properties: Value, }",
1687
1715
  "docs": "A container with its property map (the `container_get_batch` shape)."
1688
1716
  },
1717
+ {
1718
+ "module": "crowdy_game_kit_core::model",
1719
+ "name": "Container::binding_key",
1720
+ "kind": "field",
1721
+ "signature": "pub binding_key: Option<String>",
1722
+ "docs": ""
1723
+ },
1689
1724
  {
1690
1725
  "module": "crowdy_game_kit_core::model",
1691
1726
  "name": "Container::display_name",
@@ -1714,6 +1749,13 @@ export const GENERATED_BROWSER_AUTHORING_INDEX = {
1714
1749
  "signature": "pub properties: Value",
1715
1750
  "docs": ""
1716
1751
  },
1752
+ {
1753
+ "module": "crowdy_game_kit_core::model",
1754
+ "name": "Container::session_id",
1755
+ "kind": "field",
1756
+ "signature": "pub session_id: Option<String>",
1757
+ "docs": ""
1758
+ },
1717
1759
  {
1718
1760
  "module": "crowdy_game_kit_core::model",
1719
1761
  "name": "Container::type_name",
@@ -1721,6 +1763,13 @@ export const GENERATED_BROWSER_AUTHORING_INDEX = {
1721
1763
  "signature": "pub type_name: String",
1722
1764
  "docs": ""
1723
1765
  },
1766
+ {
1767
+ "module": "crowdy_game_kit_core::model",
1768
+ "name": "load_by_key",
1769
+ "kind": "function",
1770
+ "signature": "pub fn load_by_key( type_name: &str, session_id: Option<&str>, binding_key: &str, ) -> Result<Container, HostError>",
1771
+ "docs": "One container by binding key, the `container_get` shape. Server only."
1772
+ },
1724
1773
  {
1725
1774
  "module": "crowdy_game_kit_core::model",
1726
1775
  "name": "load_with_props",
@@ -1 +1 @@
1
- {"version":3,"file":"host-catalog.generated.d.ts","sourceRoot":"","sources":["../../src/player-runtime/host-catalog.generated.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,aAAa,CAAC,QAAQ,GAAG,QAAQ,CAAC,CAAC;IAC5C,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,WAAW;IAC1B,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACzC,SAAS,EAAE,aAAa,CAAC,mBAAmB,CAAC,CAAC;CAC/C;AAED,eAAO,MAAM,sBAAsB,EAAE,WAuSpC,CAAC"}
1
+ {"version":3,"file":"host-catalog.generated.d.ts","sourceRoot":"","sources":["../../src/player-runtime/host-catalog.generated.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,aAAa,CAAC,QAAQ,GAAG,QAAQ,CAAC,CAAC;IAC5C,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,WAAW;IAC1B,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACzC,SAAS,EAAE,aAAa,CAAC,mBAAmB,CAAC,CAAC;CAC/C;AAED,eAAO,MAAM,sBAAsB,EAAE,WAgTpC,CAAC"}
@@ -43,6 +43,15 @@ export const GENERATED_HOST_CATALOG = {
43
43
  "app": "Up to 32 containers in the app",
44
44
  "grid": "Up to 32 owned containers on this grid; foreign ids are silently absent"
45
45
  },
46
+ {
47
+ "name": "container_get_by_key",
48
+ "group": "model",
49
+ "targets": [
50
+ "server"
51
+ ],
52
+ "app": "One container by type, session and binding key",
53
+ "grid": "Not offered; player grids have no binding keys"
54
+ },
46
55
  {
47
56
  "name": "containers_list",
48
57
  "group": "model",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crowdedkingdoms/crowdyjs",
3
- "version": "17.7.0-test.1",
3
+ "version": "17.8.0-dev.1",
4
4
  "description": "Browser-first Crowded Kingdoms SDK with GraphQL, realtime, and local Rust authoring support",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",