@pyric/cli 0.1.0-alpha.28 → 0.1.0-alpha.29
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/assurance/.generated/conformance-verdicts.d.ts +16 -0
- package/dist/assurance/.generated/conformance-verdicts.d.ts.map +1 -1
- package/dist/assurance/.generated/conformance-verdicts.js +16 -0
- package/dist/assurance/.generated/conformance-verdicts.js.map +1 -1
- package/dist/bridge/surface/methods/assurance/replaySession.d.ts.map +1 -1
- package/dist/bridge/surface/methods/assurance/replaySession.js +18 -6
- package/dist/bridge/surface/methods/assurance/replaySession.js.map +1 -1
- package/dist/conformance/.generated/can-i-use.d.ts.map +1 -1
- package/dist/conformance/.generated/can-i-use.js +1 -1
- package/dist/conformance/.generated/can-i-use.js.map +1 -1
- package/dist/conformance/.generated/conformance-docs.d.ts.map +1 -1
- package/dist/conformance/.generated/conformance-docs.js +1 -1
- package/dist/conformance/.generated/conformance-docs.js.map +1 -1
- package/dist/serve/site-ui/_astro/{RulesCodeEditor.kBYcclwV.js → RulesCodeEditor.Cp_-FK3b.js} +1 -1
- package/dist/serve/site-ui/_astro/app.C--T2qDK.js +151 -0
- package/dist/serve/site-ui/_astro/app.DqyhRyrU.js +1 -0
- package/dist/serve/site-ui/_astro/{chess-showcase.CZe_3fJZ.js → chess-showcase.CVhCNUi_.js} +1 -1
- package/dist/serve/site-ui/_astro/{example-runtime.CXSZXHZF.js → example-runtime.zC1l-Yka.js} +1 -1
- package/dist/serve/site-ui/_astro/{sandbox-controls.Bp5PoonS.js → sandbox-controls.Bv6lfpIe.js} +39 -39
- package/dist/serve/site-ui/_astro/{seed.BO5CXcqE.js → seed.B4vza_Bv.js} +1 -1
- package/dist/serve/site-ui/_astro/{writes.DHSW22XD.js → writes.Bg0YEEA7.js} +1 -1
- package/dist/serve/site-ui/auth/index.html +1 -1
- package/dist/serve/site-ui/docs/database-compat/index.html +17 -17
- package/dist/serve/site-ui/docs/database-compat.md +17 -17
- package/dist/serve/site-ui/docs/index.json +10 -10
- package/dist/serve/site-ui/docs/pyric-rules-reference-api/index.html +119 -119
- package/dist/serve/site-ui/docs/pyric-rules-reference-api.md +53 -53
- package/dist/serve/site-ui/docs/rules-compat/index.html +67 -3
- package/dist/serve/site-ui/docs/rules-compat.md +67 -3
- package/dist/serve/site-ui/docs/secure/rtdb-rules-standard-library/index.html +17 -4
- package/dist/serve/site-ui/docs/secure/rtdb-rules-standard-library.md +19 -4
- package/dist/serve/site-ui/docs/secure/simulate-and-lint/index.html +4 -4
- package/dist/serve/site-ui/docs/secure/simulate-and-lint.md +8 -8
- package/dist/serve/site-ui/examples/chess/index.html +1 -1
- package/dist/serve/site-ui/firestore/index.html +1 -1
- package/dist/serve/site-ui/rtdb/index.html +1 -1
- package/dist/serve/site-ui/settings/index.html +1 -1
- package/dist/serve/site-ui/storage/index.html +1 -1
- package/dist/serve/site-ui/studio/index.html +1 -1
- package/dist/serve/site-ui/traffic/index.html +1 -1
- package/dist/serve/worker/client/rtdb-info.d.ts +0 -2
- package/dist/serve/worker/client/rtdb-info.d.ts.map +1 -1
- package/dist/serve/worker/client/rtdb-info.js +4 -17
- package/dist/serve/worker/client/rtdb-info.js.map +1 -1
- package/dist/serve/worker/client/rtdb-reads.d.ts.map +1 -1
- package/dist/serve/worker/client/rtdb-reads.js +3 -5
- package/dist/serve/worker/client/rtdb-reads.js.map +1 -1
- package/package.json +4 -4
- package/src/assurance/.generated/conformance-verdicts.ts +16 -0
- package/src/bridge/surface/methods/assurance/replaySession.ts +19 -6
- package/src/conformance/.generated/can-i-use.ts +1 -1
- package/src/conformance/.generated/conformance-docs.ts +1 -1
- package/src/serve/worker/client/rtdb-info.ts +4 -17
- package/src/serve/worker/client/rtdb-reads.ts +3 -4
- package/dist/serve/site-ui/_astro/app.BCNb6gMq.js +0 -1
- package/dist/serve/site-ui/_astro/app.DhoRPDdN.js +0 -147
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The `.info` tree the web hosted client serves itself (ADR-0019, 2026-10-16
|
|
3
|
-
* amendment). Value, single-event and child listeners
|
|
4
|
-
*
|
|
5
|
-
*
|
|
3
|
+
* amendment). Value, single-event and child listeners on a path under `/.info`
|
|
4
|
+
* are answered here; they never reach the host and are not replayed on
|
|
5
|
+
* re-attach. A one-time `get()` there is refused as production refuses it
|
|
6
|
+
* (`assertGettablePath` in `pyric/database/internal`).
|
|
6
7
|
*
|
|
7
8
|
* | Path | Value |
|
|
8
9
|
* | ------------------------ | ---------------------------------- |
|
|
@@ -67,17 +68,3 @@ export function observeInfo(target: RtdbTarget, next: (snapshot: RtdbDataSnapsho
|
|
|
67
68
|
next(snapshot);
|
|
68
69
|
});
|
|
69
70
|
}
|
|
70
|
-
|
|
71
|
-
/** A one-time read of `target`'s `.info` path, answered from the client's own state. */
|
|
72
|
-
export function readInfo(target: RtdbTarget): Promise<RtdbDataSnapshot> {
|
|
73
|
-
return new Promise((resolve) => {
|
|
74
|
-
let answered = false;
|
|
75
|
-
const stop = observeInfo(target, (snapshot) => {
|
|
76
|
-
if (answered) return;
|
|
77
|
-
answered = true;
|
|
78
|
-
resolve(snapshot);
|
|
79
|
-
// A transport may report its state before `observeInfo` returns.
|
|
80
|
-
queueMicrotask(() => stop());
|
|
81
|
-
});
|
|
82
|
-
});
|
|
83
|
-
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { assertGettablePath } from 'pyric/database/internal';
|
|
1
2
|
import { finishSdkRead } from 'pyric/sandbox/internal';
|
|
2
3
|
import { beginWorkerDatabaseActivity } from './sdk-activity.js';
|
|
3
4
|
/** RTDB reads over the worker port. */
|
|
@@ -5,15 +6,13 @@ import { nextId } from './core.js';
|
|
|
5
6
|
import type { RtdbDataSnapshot } from './handles.js';
|
|
6
7
|
import { rtdbRpc, targetParts, type RtdbTarget } from './rtdb-references.js';
|
|
7
8
|
import { hydrateRtdbSnapshot } from './rtdb-snapshots.js';
|
|
8
|
-
import { readInfo, servesInfoLocally } from './rtdb-info.js';
|
|
9
9
|
|
|
10
10
|
export async function rtdbGet(target: RtdbTarget): Promise<RtdbDataSnapshot> {
|
|
11
11
|
const { ref, query } = targetParts(target);
|
|
12
12
|
const activity = beginWorkerDatabaseActivity(target, 'get', 'operation');
|
|
13
|
-
// The client answers `.info` itself; the read never reaches the host.
|
|
14
|
-
const readsInfo = servesInfoLocally(ref);
|
|
15
|
-
if (readsInfo) return finishSdkRead(activity, await readInfo(target));
|
|
16
13
|
try {
|
|
14
|
+
// Production refuses a one-shot read under `.info`; the read never reaches the host.
|
|
15
|
+
assertGettablePath(ref.path);
|
|
17
16
|
return finishSdkRead(activity, hydrateRtdbSnapshot(ref, await rtdbRpc(ref, {
|
|
18
17
|
t: 'op', id: nextId(), method: 'rtdb.get', path: ref.path, ...(query ? { query } : {}),
|
|
19
18
|
})));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{S}from"./app.DhoRPDdN.js";import"./sandbox-controls.Bp5PoonS.js";import"./index.DBy5LfQW.js";import"./writes.DHSW22XD.js";import"./index.DNyk7q8W.js";export{S as StudioApp};
|