@ai-matrx/records 0.99.18 → 0.99.20
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/CHANGELOG.md +14 -0
- package/dist/core/index.cjs +10 -0
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.js +10 -0
- package/dist/core/index.js.map +1 -1
- package/dist/data/index.cjs +10 -0
- package/dist/data/index.cjs.map +1 -1
- package/dist/data/index.js +10 -0
- package/dist/data/index.js.map +1 -1
- package/dist/react/index.cjs +10 -0
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.js +10 -0
- package/dist/react/index.js.map +1 -1
- package/dist/setup/index.cjs +10 -0
- package/dist/setup/index.cjs.map +1 -1
- package/dist/setup/index.js +10 -0
- package/dist/setup/index.js.map +1 -1
- package/dist/typed-table/index.cjs +10 -0
- package/dist/typed-table/index.cjs.map +1 -1
- package/dist/typed-table/index.js +10 -0
- package/dist/typed-table/index.js.map +1 -1
- package/package.json +4 -4
package/dist/data/index.js
CHANGED
|
@@ -199,6 +199,10 @@ function takePrimedTablePageBundle(organizationId, tableId, viewId) {
|
|
|
199
199
|
primed.delete(key);
|
|
200
200
|
return Date.now() - held.at < PRIMED_TTL_MS ? held.answer : null;
|
|
201
201
|
}
|
|
202
|
+
function forgetPrimedTablePageBundlesOf(tableId) {
|
|
203
|
+
const primed = registry();
|
|
204
|
+
for (const key of [...primed.keys()]) if (tableId === null || key.split("|")[1] === tableId) primed.delete(key);
|
|
205
|
+
}
|
|
202
206
|
var DOOR_REGISTRY = /* @__PURE__ */ Symbol.for("@ai-matrx/records/primed-door-answers");
|
|
203
207
|
function doorRegistry() {
|
|
204
208
|
const g = globalThis;
|
|
@@ -3631,6 +3635,12 @@ function createRecordsClient(given) {
|
|
|
3631
3635
|
else scream({ code: refusal2.code, message: refusal2.message, ...refusal2.hint ? { hint: refusal2.hint } : {}, where });
|
|
3632
3636
|
return err(refusal2);
|
|
3633
3637
|
}
|
|
3638
|
+
if (isWritingDoor(door) || LOOK_WRITES[door]) {
|
|
3639
|
+
const tableId = args["p_table_id"];
|
|
3640
|
+
bundleDrop(typeof tableId === "string" ? tableId : null);
|
|
3641
|
+
forgetPrimedTablePageBundlesOf(typeof tableId === "string" ? tableId : null);
|
|
3642
|
+
dropPrimedDoorAnswers(LOOK_WRITES[door]);
|
|
3643
|
+
}
|
|
3634
3644
|
return ok(response.data);
|
|
3635
3645
|
}
|
|
3636
3646
|
function structureMoved(tableId, result) {
|