@band-ai/band-sdk-core 2.3.0 → 2.5.0
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/README.md +21 -1
- package/band_sdk_core.js +139 -67
- package/band_sdk_core_bg.wasm +0 -0
- package/index.d.ts +30 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -146,7 +146,27 @@ enum on this boundary, matching how `EventType` stays a plain string in
|
|
|
146
146
|
native `Error` with the same `.issues`/`.traceContext` contract as
|
|
147
147
|
`validateEventPayload` — an unrecognized `system` and an unrecognized
|
|
148
148
|
`type` are independent issues, both reported when both strings are
|
|
149
|
-
invalid.
|
|
149
|
+
invalid. See "Enumerating memory-taxonomy values" below for listing each
|
|
150
|
+
enum's members without introducing one.
|
|
151
|
+
|
|
152
|
+
### Enumerating memory-taxonomy values
|
|
153
|
+
|
|
154
|
+
`memorySystems()`, `memoryTypes()`, `memorySegments()`, `memoryStoreScopes()`,
|
|
155
|
+
`memoryListScopes()`, and `memoryStatuses()` each return that enum's wire
|
|
156
|
+
names as a `string[]`, in declaration order — runtime enumeration without
|
|
157
|
+
introducing a class, matching `MemorySegment`/`MemoryStoreScope`/
|
|
158
|
+
`MemoryListScope`/`MemoryStatus` as string-literal types in `index.d.ts`.
|
|
159
|
+
|
|
160
|
+
```ts
|
|
161
|
+
import { memorySystems, memoryStatuses } from "@band-ai/band-sdk-core";
|
|
162
|
+
|
|
163
|
+
if (!memorySystems().includes("sensory")) {
|
|
164
|
+
throw new Error("memorySystems() missing sensory");
|
|
165
|
+
}
|
|
166
|
+
if (!memoryStatuses().includes("active")) {
|
|
167
|
+
throw new Error("memoryStatuses() missing active");
|
|
168
|
+
}
|
|
169
|
+
```
|
|
150
170
|
|
|
151
171
|
### One-shot delivery lifecycle
|
|
152
172
|
|
package/band_sdk_core.js
CHANGED
|
@@ -1081,11 +1081,10 @@ class SubscriptionTracker {
|
|
|
1081
1081
|
/**
|
|
1082
1082
|
* @param {any} topic
|
|
1083
1083
|
* @param {bigint} ticket
|
|
1084
|
-
* @param {boolean} joined
|
|
1085
1084
|
* @returns {boolean}
|
|
1086
1085
|
*/
|
|
1087
|
-
|
|
1088
|
-
const ret = wasm.
|
|
1086
|
+
recordAgentTopicJoinAmbiguous(topic, ticket) {
|
|
1087
|
+
const ret = wasm.subscriptiontracker_recordAgentTopicJoinAmbiguous(this.__wbg_ptr, topic, ticket);
|
|
1089
1088
|
if (ret[2]) {
|
|
1090
1089
|
throw takeFromExternrefTable0(ret[1]);
|
|
1091
1090
|
}
|
|
@@ -1094,10 +1093,11 @@ class SubscriptionTracker {
|
|
|
1094
1093
|
/**
|
|
1095
1094
|
* @param {any} topic
|
|
1096
1095
|
* @param {bigint} ticket
|
|
1096
|
+
* @param {boolean} joined
|
|
1097
1097
|
* @returns {boolean}
|
|
1098
1098
|
*/
|
|
1099
|
-
|
|
1100
|
-
const ret = wasm.
|
|
1099
|
+
recordAgentTopicJoin(topic, ticket, joined) {
|
|
1100
|
+
const ret = wasm.subscriptiontracker_recordAgentTopicJoin(this.__wbg_ptr, topic, ticket, joined);
|
|
1101
1101
|
if (ret[2]) {
|
|
1102
1102
|
throw takeFromExternrefTable0(ret[1]);
|
|
1103
1103
|
}
|
|
@@ -1407,6 +1407,78 @@ function isSelfEcho(senderId, senderType, agentId) {
|
|
|
1407
1407
|
}
|
|
1408
1408
|
exports.isSelfEcho = isSelfEcho;
|
|
1409
1409
|
|
|
1410
|
+
/**
|
|
1411
|
+
* r" Every [`MemoryListScope`] wire name, in declaration order.
|
|
1412
|
+
* @returns {string[]}
|
|
1413
|
+
*/
|
|
1414
|
+
function memoryListScopes() {
|
|
1415
|
+
const ret = wasm.memoryListScopes();
|
|
1416
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]);
|
|
1417
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
1418
|
+
return v1;
|
|
1419
|
+
}
|
|
1420
|
+
exports.memoryListScopes = memoryListScopes;
|
|
1421
|
+
|
|
1422
|
+
/**
|
|
1423
|
+
* r" Every [`MemorySegment`] wire name, in declaration order.
|
|
1424
|
+
* @returns {string[]}
|
|
1425
|
+
*/
|
|
1426
|
+
function memorySegments() {
|
|
1427
|
+
const ret = wasm.memorySegments();
|
|
1428
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]);
|
|
1429
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
1430
|
+
return v1;
|
|
1431
|
+
}
|
|
1432
|
+
exports.memorySegments = memorySegments;
|
|
1433
|
+
|
|
1434
|
+
/**
|
|
1435
|
+
* r" Every [`MemoryStatus`] wire name, in declaration order.
|
|
1436
|
+
* @returns {string[]}
|
|
1437
|
+
*/
|
|
1438
|
+
function memoryStatuses() {
|
|
1439
|
+
const ret = wasm.memoryStatuses();
|
|
1440
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]);
|
|
1441
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
1442
|
+
return v1;
|
|
1443
|
+
}
|
|
1444
|
+
exports.memoryStatuses = memoryStatuses;
|
|
1445
|
+
|
|
1446
|
+
/**
|
|
1447
|
+
* r" Every [`MemoryStoreScope`] wire name, in declaration order.
|
|
1448
|
+
* @returns {string[]}
|
|
1449
|
+
*/
|
|
1450
|
+
function memoryStoreScopes() {
|
|
1451
|
+
const ret = wasm.memoryStoreScopes();
|
|
1452
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]);
|
|
1453
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
1454
|
+
return v1;
|
|
1455
|
+
}
|
|
1456
|
+
exports.memoryStoreScopes = memoryStoreScopes;
|
|
1457
|
+
|
|
1458
|
+
/**
|
|
1459
|
+
* r" Every [`MemorySystem`] wire name, in declaration order.
|
|
1460
|
+
* @returns {string[]}
|
|
1461
|
+
*/
|
|
1462
|
+
function memorySystems() {
|
|
1463
|
+
const ret = wasm.memorySystems();
|
|
1464
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]);
|
|
1465
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
1466
|
+
return v1;
|
|
1467
|
+
}
|
|
1468
|
+
exports.memorySystems = memorySystems;
|
|
1469
|
+
|
|
1470
|
+
/**
|
|
1471
|
+
* r" Every [`MemoryType`] wire name, in declaration order.
|
|
1472
|
+
* @returns {string[]}
|
|
1473
|
+
*/
|
|
1474
|
+
function memoryTypes() {
|
|
1475
|
+
const ret = wasm.memoryTypes();
|
|
1476
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]);
|
|
1477
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
1478
|
+
return v1;
|
|
1479
|
+
}
|
|
1480
|
+
exports.memoryTypes = memoryTypes;
|
|
1481
|
+
|
|
1410
1482
|
/**
|
|
1411
1483
|
* This platform's Phoenix Channels topic for a room's `room_participants`
|
|
1412
1484
|
* channel.
|
|
@@ -1476,7 +1548,7 @@ exports.validateMemoryTypeForSystem = validateMemoryTypeForSystem;
|
|
|
1476
1548
|
function __wbg_get_imports() {
|
|
1477
1549
|
const import0 = {
|
|
1478
1550
|
__proto__: null,
|
|
1479
|
-
|
|
1551
|
+
__wbg_Error_67e7344beaa85059: function(arg0, arg1) {
|
|
1480
1552
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
1481
1553
|
return ret;
|
|
1482
1554
|
},
|
|
@@ -1487,68 +1559,68 @@ function __wbg_get_imports() {
|
|
|
1487
1559
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1488
1560
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1489
1561
|
},
|
|
1490
|
-
|
|
1562
|
+
__wbg___wbindgen_bigint_get_as_i64_b482365c149396c8: function(arg0, arg1) {
|
|
1491
1563
|
const v = arg1;
|
|
1492
1564
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
1493
1565
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
1494
1566
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1495
1567
|
},
|
|
1496
|
-
|
|
1568
|
+
__wbg___wbindgen_boolean_get_7a12af2b3f899c5a: function(arg0) {
|
|
1497
1569
|
const v = arg0;
|
|
1498
1570
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
1499
1571
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
1500
1572
|
},
|
|
1501
|
-
|
|
1573
|
+
__wbg___wbindgen_debug_string_0e68cf47c9cbd9b0: function(arg0, arg1) {
|
|
1502
1574
|
const ret = debugString(arg1);
|
|
1503
1575
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1504
1576
|
const len1 = WASM_VECTOR_LEN;
|
|
1505
1577
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1506
1578
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1507
1579
|
},
|
|
1508
|
-
|
|
1580
|
+
__wbg___wbindgen_in_50072d4d6e45c193: function(arg0, arg1) {
|
|
1509
1581
|
const ret = arg0 in arg1;
|
|
1510
1582
|
return ret;
|
|
1511
1583
|
},
|
|
1512
|
-
|
|
1584
|
+
__wbg___wbindgen_is_bigint_60fc0336cb14f5d7: function(arg0) {
|
|
1513
1585
|
const ret = typeof(arg0) === 'bigint';
|
|
1514
1586
|
return ret;
|
|
1515
1587
|
},
|
|
1516
|
-
|
|
1588
|
+
__wbg___wbindgen_is_function_fcda5e3902d732fe: function(arg0) {
|
|
1517
1589
|
const ret = typeof(arg0) === 'function';
|
|
1518
1590
|
return ret;
|
|
1519
1591
|
},
|
|
1520
|
-
|
|
1592
|
+
__wbg___wbindgen_is_null_5160b3e381865372: function(arg0) {
|
|
1521
1593
|
const ret = arg0 === null;
|
|
1522
1594
|
return ret;
|
|
1523
1595
|
},
|
|
1524
|
-
|
|
1596
|
+
__wbg___wbindgen_is_object_edb6b15aa3afe12e: function(arg0) {
|
|
1525
1597
|
const val = arg0;
|
|
1526
1598
|
const ret = typeof(val) === 'object' && val !== null;
|
|
1527
1599
|
return ret;
|
|
1528
1600
|
},
|
|
1529
|
-
|
|
1601
|
+
__wbg___wbindgen_is_string_c4f7cb494a2a21f1: function(arg0) {
|
|
1530
1602
|
const ret = typeof(arg0) === 'string';
|
|
1531
1603
|
return ret;
|
|
1532
1604
|
},
|
|
1533
|
-
|
|
1605
|
+
__wbg___wbindgen_is_undefined_8c687d0b90d5b524: function(arg0) {
|
|
1534
1606
|
const ret = arg0 === undefined;
|
|
1535
1607
|
return ret;
|
|
1536
1608
|
},
|
|
1537
|
-
|
|
1609
|
+
__wbg___wbindgen_jsval_eq_9fdcd3c0a860dd3b: function(arg0, arg1) {
|
|
1538
1610
|
const ret = arg0 === arg1;
|
|
1539
1611
|
return ret;
|
|
1540
1612
|
},
|
|
1541
|
-
|
|
1613
|
+
__wbg___wbindgen_jsval_loose_eq_3c30021c243b64cd: function(arg0, arg1) {
|
|
1542
1614
|
const ret = arg0 == arg1;
|
|
1543
1615
|
return ret;
|
|
1544
1616
|
},
|
|
1545
|
-
|
|
1617
|
+
__wbg___wbindgen_number_get_1dc732b810cb937c: function(arg0, arg1) {
|
|
1546
1618
|
const obj = arg1;
|
|
1547
1619
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
1548
1620
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
1549
1621
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1550
1622
|
},
|
|
1551
|
-
|
|
1623
|
+
__wbg___wbindgen_string_get_92ab86bb19cbc12f: function(arg0, arg1) {
|
|
1552
1624
|
const obj = arg1;
|
|
1553
1625
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
1554
1626
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -1556,34 +1628,34 @@ function __wbg_get_imports() {
|
|
|
1556
1628
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1557
1629
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1558
1630
|
},
|
|
1559
|
-
|
|
1631
|
+
__wbg___wbindgen_throw_5d9e815e6fdf150f: function(arg0, arg1) {
|
|
1560
1632
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1561
1633
|
},
|
|
1562
|
-
|
|
1634
|
+
__wbg_call_269c5566fbede3eb: function() { return handleError(function (arg0, arg1) {
|
|
1563
1635
|
const ret = arg0.call(arg1);
|
|
1564
1636
|
return ret;
|
|
1565
1637
|
}, arguments); },
|
|
1566
|
-
|
|
1638
|
+
__wbg_done_cffed884d87aa22e: function(arg0) {
|
|
1567
1639
|
const ret = arg0.done;
|
|
1568
1640
|
return ret;
|
|
1569
1641
|
},
|
|
1570
|
-
|
|
1642
|
+
__wbg_entries_972a87586902cf87: function(arg0) {
|
|
1571
1643
|
const ret = Object.entries(arg0);
|
|
1572
1644
|
return ret;
|
|
1573
1645
|
},
|
|
1574
|
-
|
|
1646
|
+
__wbg_get_6cf5a4d4d8ad3c5a: function() { return handleError(function (arg0, arg1) {
|
|
1575
1647
|
const ret = Reflect.get(arg0, arg1);
|
|
1576
1648
|
return ret;
|
|
1577
1649
|
}, arguments); },
|
|
1578
|
-
|
|
1579
|
-
const ret = arg0[arg1 >>> 0];
|
|
1580
|
-
return ret;
|
|
1581
|
-
},
|
|
1582
|
-
__wbg_get_d173c0308df22d37: function() { return handleError(function (arg0, arg1) {
|
|
1650
|
+
__wbg_get_989d0a1309644f2b: function() { return handleError(function (arg0, arg1) {
|
|
1583
1651
|
const ret = Reflect.get(arg0, arg1);
|
|
1584
1652
|
return ret;
|
|
1585
1653
|
}, arguments); },
|
|
1586
|
-
|
|
1654
|
+
__wbg_get_b1f0ab13c737f856: function(arg0, arg1) {
|
|
1655
|
+
const ret = arg0[arg1 >>> 0];
|
|
1656
|
+
return ret;
|
|
1657
|
+
},
|
|
1658
|
+
__wbg_get_unchecked_363572bdd397d473: function(arg0, arg1) {
|
|
1587
1659
|
const ret = arg0[arg1 >>> 0];
|
|
1588
1660
|
return ret;
|
|
1589
1661
|
},
|
|
@@ -1591,7 +1663,7 @@ function __wbg_get_imports() {
|
|
|
1591
1663
|
const ret = arg0[arg1];
|
|
1592
1664
|
return ret;
|
|
1593
1665
|
},
|
|
1594
|
-
|
|
1666
|
+
__wbg_instanceof_ArrayBuffer_d4ff01f8247925ae: function(arg0) {
|
|
1595
1667
|
let result;
|
|
1596
1668
|
try {
|
|
1597
1669
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -1601,7 +1673,7 @@ function __wbg_get_imports() {
|
|
|
1601
1673
|
const ret = result;
|
|
1602
1674
|
return ret;
|
|
1603
1675
|
},
|
|
1604
|
-
|
|
1676
|
+
__wbg_instanceof_Map_1ff6a2b54c899f0d: function(arg0) {
|
|
1605
1677
|
let result;
|
|
1606
1678
|
try {
|
|
1607
1679
|
result = arg0 instanceof Map;
|
|
@@ -1611,7 +1683,7 @@ function __wbg_get_imports() {
|
|
|
1611
1683
|
const ret = result;
|
|
1612
1684
|
return ret;
|
|
1613
1685
|
},
|
|
1614
|
-
|
|
1686
|
+
__wbg_instanceof_Uint8Array_598adc0fef426aa8: function(arg0) {
|
|
1615
1687
|
let result;
|
|
1616
1688
|
try {
|
|
1617
1689
|
result = arg0 instanceof Uint8Array;
|
|
@@ -1621,99 +1693,99 @@ function __wbg_get_imports() {
|
|
|
1621
1693
|
const ret = result;
|
|
1622
1694
|
return ret;
|
|
1623
1695
|
},
|
|
1624
|
-
|
|
1696
|
+
__wbg_isArray_5674713bb7b79043: function(arg0) {
|
|
1625
1697
|
const ret = Array.isArray(arg0);
|
|
1626
1698
|
return ret;
|
|
1627
1699
|
},
|
|
1628
|
-
|
|
1700
|
+
__wbg_isSafeInteger_8f51c743827d1ec5: function(arg0) {
|
|
1629
1701
|
const ret = Number.isSafeInteger(arg0);
|
|
1630
1702
|
return ret;
|
|
1631
1703
|
},
|
|
1632
|
-
|
|
1704
|
+
__wbg_iterator_22ddeb808cf55a6f: function() {
|
|
1633
1705
|
const ret = Symbol.iterator;
|
|
1634
1706
|
return ret;
|
|
1635
1707
|
},
|
|
1636
|
-
|
|
1708
|
+
__wbg_length_31bdaf014f5fbde2: function(arg0) {
|
|
1637
1709
|
const ret = arg0.length;
|
|
1638
1710
|
return ret;
|
|
1639
1711
|
},
|
|
1640
|
-
|
|
1712
|
+
__wbg_length_4e1adc0d42e23620: function(arg0) {
|
|
1641
1713
|
const ret = arg0.length;
|
|
1642
1714
|
return ret;
|
|
1643
1715
|
},
|
|
1644
|
-
|
|
1645
|
-
const ret = new
|
|
1716
|
+
__wbg_new_1da3429bc3c4541c: function(arg0) {
|
|
1717
|
+
const ret = new Uint8Array(arg0);
|
|
1718
|
+
return ret;
|
|
1719
|
+
},
|
|
1720
|
+
__wbg_new_8d36e20aa758e411: function() {
|
|
1721
|
+
const ret = new Map();
|
|
1646
1722
|
return ret;
|
|
1647
1723
|
},
|
|
1648
|
-
|
|
1724
|
+
__wbg_new_a32a1ab6c6655abe: function(arg0, arg1) {
|
|
1649
1725
|
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
1650
1726
|
return ret;
|
|
1651
1727
|
},
|
|
1652
|
-
|
|
1653
|
-
const ret = new
|
|
1728
|
+
__wbg_new_bebc3f4757acf305: function() {
|
|
1729
|
+
const ret = new Object();
|
|
1654
1730
|
return ret;
|
|
1655
1731
|
},
|
|
1656
|
-
|
|
1657
|
-
const ret = new
|
|
1732
|
+
__wbg_new_ffa92086ea89f79c: function() {
|
|
1733
|
+
const ret = new Array();
|
|
1658
1734
|
return ret;
|
|
1659
1735
|
},
|
|
1660
|
-
|
|
1661
|
-
const ret =
|
|
1736
|
+
__wbg_next_95053e306b1c3aed: function(arg0) {
|
|
1737
|
+
const ret = arg0.next;
|
|
1662
1738
|
return ret;
|
|
1663
1739
|
},
|
|
1664
|
-
|
|
1740
|
+
__wbg_next_f31ecb8646d2c605: function() { return handleError(function (arg0) {
|
|
1665
1741
|
const ret = arg0.next();
|
|
1666
1742
|
return ret;
|
|
1667
1743
|
}, arguments); },
|
|
1668
|
-
|
|
1669
|
-
const ret = arg0.next;
|
|
1670
|
-
return ret;
|
|
1671
|
-
},
|
|
1672
|
-
__wbg_of_598c0ff0cd48a890: function(arg0, arg1) {
|
|
1744
|
+
__wbg_of_1c173c2ad96e2f7e: function(arg0, arg1) {
|
|
1673
1745
|
const ret = Array.of(arg0, arg1);
|
|
1674
1746
|
return ret;
|
|
1675
1747
|
},
|
|
1676
|
-
|
|
1748
|
+
__wbg_prototypesetcall_ae9f5e7459250748: function(arg0, arg1, arg2) {
|
|
1677
1749
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1678
1750
|
},
|
|
1679
|
-
|
|
1751
|
+
__wbg_push_bfdf956ba476f65b: function(arg0, arg1) {
|
|
1680
1752
|
const ret = arg0.push(arg1);
|
|
1681
1753
|
return ret;
|
|
1682
1754
|
},
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
return ret;
|
|
1755
|
+
__wbg_set_13d25b81ab403f5e: function(arg0, arg1, arg2) {
|
|
1756
|
+
arg0[arg1 >>> 0] = arg2;
|
|
1686
1757
|
},
|
|
1687
1758
|
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
1688
1759
|
arg0[arg1] = arg2;
|
|
1689
1760
|
},
|
|
1690
|
-
|
|
1761
|
+
__wbg_set_a377297433dfea63: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1691
1762
|
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1692
1763
|
return ret;
|
|
1693
1764
|
}, arguments); },
|
|
1694
|
-
|
|
1695
|
-
|
|
1765
|
+
__wbg_set_bf6dde4923b9b059: function(arg0, arg1, arg2) {
|
|
1766
|
+
const ret = arg0.set(arg1, arg2);
|
|
1767
|
+
return ret;
|
|
1696
1768
|
},
|
|
1697
|
-
|
|
1769
|
+
__wbg_value_c227f843d21da141: function(arg0) {
|
|
1698
1770
|
const ret = arg0.value;
|
|
1699
1771
|
return ret;
|
|
1700
1772
|
},
|
|
1701
|
-
|
|
1773
|
+
__wbindgen_generic_0000000000000001: function(arg0) {
|
|
1702
1774
|
// Cast intrinsic for `F64 -> Externref`.
|
|
1703
1775
|
const ret = arg0;
|
|
1704
1776
|
return ret;
|
|
1705
1777
|
},
|
|
1706
|
-
|
|
1778
|
+
__wbindgen_generic_0000000000000002: function(arg0) {
|
|
1707
1779
|
// Cast intrinsic for `I64 -> Externref`.
|
|
1708
1780
|
const ret = arg0;
|
|
1709
1781
|
return ret;
|
|
1710
1782
|
},
|
|
1711
|
-
|
|
1783
|
+
__wbindgen_generic_0000000000000003: function(arg0, arg1) {
|
|
1712
1784
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1713
1785
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
1714
1786
|
return ret;
|
|
1715
1787
|
},
|
|
1716
|
-
|
|
1788
|
+
__wbindgen_generic_0000000000000004: function(arg0) {
|
|
1717
1789
|
// Cast intrinsic for `U64 -> Externref`.
|
|
1718
1790
|
const ret = BigInt.asUintN(64, arg0);
|
|
1719
1791
|
return ret;
|
package/band_sdk_core_bg.wasm
CHANGED
|
Binary file
|
package/index.d.ts
CHANGED
|
@@ -85,6 +85,36 @@ export function validateMemoryTypeForSystem(
|
|
|
85
85
|
traceContext?: string | null,
|
|
86
86
|
): void;
|
|
87
87
|
|
|
88
|
+
/** Logical subject category for a stored memory -- not a store/list scope. */
|
|
89
|
+
export type MemorySegment = "user" | "agent" | "tool" | "guideline";
|
|
90
|
+
|
|
91
|
+
/** Visibility scope for storing a memory. */
|
|
92
|
+
export type MemoryStoreScope = "subject" | "organization";
|
|
93
|
+
|
|
94
|
+
/** Scope filter for listing memories. */
|
|
95
|
+
export type MemoryListScope = "subject" | "organization" | "all";
|
|
96
|
+
|
|
97
|
+
/** Lifecycle state; list filter and set by supersede/archive operations. */
|
|
98
|
+
export type MemoryStatus = "active" | "superseded" | "archived" | "all";
|
|
99
|
+
|
|
100
|
+
/** Every {@link MemorySystem} wire name, in declaration order. */
|
|
101
|
+
export function memorySystems(): MemorySystem[];
|
|
102
|
+
|
|
103
|
+
/** Every {@link MemoryType} wire name, in declaration order. */
|
|
104
|
+
export function memoryTypes(): MemoryType[];
|
|
105
|
+
|
|
106
|
+
/** Every {@link MemorySegment} wire name, in declaration order. */
|
|
107
|
+
export function memorySegments(): MemorySegment[];
|
|
108
|
+
|
|
109
|
+
/** Every {@link MemoryStoreScope} wire name, in declaration order. */
|
|
110
|
+
export function memoryStoreScopes(): MemoryStoreScope[];
|
|
111
|
+
|
|
112
|
+
/** Every {@link MemoryListScope} wire name, in declaration order. */
|
|
113
|
+
export function memoryListScopes(): MemoryListScope[];
|
|
114
|
+
|
|
115
|
+
/** Every {@link MemoryStatus} wire name, in declaration order. */
|
|
116
|
+
export function memoryStatuses(): MemoryStatus[];
|
|
117
|
+
|
|
88
118
|
/** A roster entry read by `ParticipantRoster`; every other key is ignored. */
|
|
89
119
|
export interface ParticipantFields {
|
|
90
120
|
id: string;
|