From 71d94b281634cd45b856d047223f43f29c9390d6 Mon Sep 17 00:00:00 2001 From: Sylvain Duchesne Date: Thu, 24 Sep 2026 18:42:21 +0200 Subject: [PATCH] style: ASCII dans les lignes ecrites pour cette tache --- docs/api-contract.md | 2 +- packages/polyfill/e2e/polyfill-entry.ts | 4 ++-- packages/polyfill/e2e/run.ts | 2 +- packages/polyfill/src/emulated-verifier/read-filter.ts | 6 +++--- packages/polyfill/src/model/types.ts | 2 +- packages/polyfill/src/surface/use-shape.ts | 2 +- packages/polyfill/test/use-shape.test.ts | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/api-contract.md b/docs/api-contract.md index c4b09d4..c5a61bc 100644 --- a/docs/api-contract.md +++ b/docs/api-contract.md @@ -218,7 +218,7 @@ const useShape = ( scope: Scope | string | undefined ) => DeepSignalSet; -// …and as the BUILD ships it (`dist/frontendAdapters/react/useShape.d.ts`), which is the +// and as the BUILD ships it (`dist/frontendAdapters/react/useShape.d.ts`), which is the // shape the wrapper mirrors: the collection moved inside a result object, and the second // parameter widened from a bare `Scope` to the config. The gap between the two columns is // the one the provenance anchor records. diff --git a/packages/polyfill/e2e/polyfill-entry.ts b/packages/polyfill/e2e/polyfill-entry.ts index af4e222..de6b9c3 100644 --- a/packages/polyfill/e2e/polyfill-entry.ts +++ b/packages/polyfill/e2e/polyfill-entry.ts @@ -192,7 +192,7 @@ let sessionResolve!: (s: BrokerSession) => void; const sessionReady = new Promise((r) => (sessionResolve = r)); // The injected `useShape`, so the lib's read-filtered view can be exercised WITHOUT a -// React tree. It is `test/use-shape-fake.ts` — the ONE fake in this repository that +// React tree. It is `test/use-shape-fake.ts` - the ONE fake in this repository that // returns the shape `@ng-org/orm`'s hook really ships, read off the installed package's // own `.d.ts`. This page used to carry a hand-written Set-like of its own, which is // exactly why the capability filter could hand three members of that envelope back raw @@ -1102,7 +1102,7 @@ const identity = new IdentityStore( // the cap is proven on the read paths, not here. setCurrentUser("stranger"); const strangerView = read(); - // …and the SDK's own handle is refused outright, whoever asks: it reads and writes + // and the SDK's own handle is refused outright, whoever asks: it reads and writes // with no capability filter at all. let subscriptionRefused: string | null = null; try { diff --git a/packages/polyfill/e2e/run.ts b/packages/polyfill/e2e/run.ts index f9aab60..d671328 100644 --- a/packages/polyfill/e2e/run.ts +++ b/packages/polyfill/e2e/run.ts @@ -550,7 +550,7 @@ async function main(): Promise { ); // The three views above are read off `data`, one of the three members of the SDK's // result envelope that carry the items. The fourth way in is the ORM's own handle, - // which reads and writes with no capability filter at all — so it is refused rather + // which reads and writes with no capability filter at all, so it is refused rather // than handed on, and that refusal is checked here rather than assumed. check( "the read-filtered view refuses the ORM's own subscription handle", diff --git a/packages/polyfill/src/emulated-verifier/read-filter.ts b/packages/polyfill/src/emulated-verifier/read-filter.ts index 8155007..7b80fb3 100644 --- a/packages/polyfill/src/emulated-verifier/read-filter.ts +++ b/packages/polyfill/src/emulated-verifier/read-filter.ts @@ -188,13 +188,13 @@ function filteredDescriptor( * Until 2026-09-24 that reasoning was applied to FUNCTION members alone: everything else * was forwarded raw, on the recorded ground that "a plain property carries no items". That * ground was never a property of the model, only of the object that happened to be wrapped - * — and the moment the wrapped object changed, three plain properties of it each carried + * and the moment the wrapped object changed, three plain properties of it each carried * every identity's items ({@link makeReadFilteredShapeResult}). A boundary that is safe for * the shape in front of it and unsafe for the next one is not a boundary either. * * So the default is {@link cannotReachAnItem}, which asks of the VALUE what no version * number can change: a primitive cannot hold a reference to anything, so it cannot reach an - * item and passes untouched — `size`, `isLoading`, a count, a flag, a name. An object or a + * item and passes untouched - `size`, `isLoading`, a count, a flag, a name. An object or a * function can, so it refuses unless this file has a filtered form of it. That is why * nothing below names `isLoading`, and why a member nobody has seen yet is already decided: * if it carries items it is an object or a function, and both refuse. @@ -403,7 +403,7 @@ function filteredPromise(value: PromiseLike, caps: CapRegistry): Promis * and a wrapper of it would be a second published surface to keep honest. Refusing is * loud, and what it refuses is the one member the contract already says is not published. */ -// @provenance makeReadFilteredShapeResult kind=aligned level=3 ref=sdk/js/orm/src/frontendAdapters/react/useShape.ts:useShape — the same capability filter, over the result envelope that hook returns rather than over the collection inside it; removed at migration +// @provenance makeReadFilteredShapeResult kind=aligned level=3 ref=sdk/js/orm/src/frontendAdapters/react/useShape.ts:useShape - the same capability filter, over the result envelope that hook returns rather than over the collection inside it; removed at migration export function makeReadFilteredShapeResult(result: R, caps: CapRegistry): R { /** What the view answers for one member. The `get` trap and the descriptor trap BOTH * call this, so neither can answer what the other refuses - `data` used to come back diff --git a/packages/polyfill/src/model/types.ts b/packages/polyfill/src/model/types.ts index 6c2140a..6859cac 100644 --- a/packages/polyfill/src/model/types.ts +++ b/packages/polyfill/src/model/types.ts @@ -128,7 +128,7 @@ export interface ShapeResult { * says it, and the real `reactUseShape` is assignable to it with no wrapper and no cast * (pinned by `test/use-shape.test.ts`). */ -// @provenance UseShapeLike kind=invention level=none ref=none — nothing upstream is injected; the type exists only to describe what `configure` receives, here for the ORM's React hook +// @provenance UseShapeLike kind=invention level=none ref=none - nothing upstream is injected; the type exists only to describe what `configure` receives, here for the ORM's React hook export type UseShapeLike = ( shapeType: ShapeType, conf: RdfOrmConfig | string | undefined, diff --git a/packages/polyfill/src/surface/use-shape.ts b/packages/polyfill/src/surface/use-shape.ts index 7d9af73..1c2da73 100644 --- a/packages/polyfill/src/surface/use-shape.ts +++ b/packages/polyfill/src/surface/use-shape.ts @@ -25,7 +25,7 @@ import { getConfig, getCaps } from "../shared-wallet/bootstrap"; import { makeReadFilteredShapeResult } from "../emulated-verifier/read-filter"; import type { ShapeResult } from "../model/types"; -// @provenance useShape kind=passthrough level=3 ref=sdk/js/orm/src/frontendAdapters/react/useShape.ts:useShape — forwards to the injected real hook, with its two arguments; the read-filtered view over the result envelope emulates cryptographic isolation +// @provenance useShape kind=passthrough level=3 ref=sdk/js/orm/src/frontendAdapters/react/useShape.ts:useShape - forwards to the injected real hook, with its two arguments; the read-filtered view over the result envelope emulates cryptographic isolation export function useShape( shapeType: ShapeType, conf: RdfOrmConfig | string | undefined, diff --git a/packages/polyfill/test/use-shape.test.ts b/packages/polyfill/test/use-shape.test.ts index a58123e..5545d69 100644 --- a/packages/polyfill/test/use-shape.test.ts +++ b/packages/polyfill/test/use-shape.test.ts @@ -113,7 +113,7 @@ test("useShape: no member of the result reaches a document this identity holds n // `subscription` - the SDK's own handle, which reads and writes with no filter at all. expect(() => result.subscription).toThrow(/RdfOrmSubscription/); - // …and the collection underneath really does hold both, so it is the filter that + // and the collection underneath really does hold both, so it is the filter that // removed one rather than the fake never having offered it. expect([...(hook.raw() as Iterable)]).toHaveLength(2); });