@lapxo/bound 0.2.0 → 0.2.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.
Files changed (225) hide show
  1. package/README.md +40 -121
  2. package/TARGET.bound +51 -23
  3. package/dist/cli/standing-result.js +4 -3
  4. package/dist/cli/verb.js +36 -3
  5. package/dist/engine/encoding.js +2 -0
  6. package/dist/engine/index.d.ts +2 -0
  7. package/dist/engine/index.js +2 -0
  8. package/dist/engine/ports.d.ts +32 -0
  9. package/dist/engine/ports.js +103 -0
  10. package/dist/host/admitted-place.js +6 -0
  11. package/dist/host/contextual-place.js +2 -2
  12. package/dist/host/io.js +2 -2
  13. package/dist/host/reference-authenticated.d.ts +12 -0
  14. package/dist/host/reference-authenticated.js +47 -31
  15. package/dist/host/reference-contracts.js +6 -0
  16. package/dist/host/reference-export.d.ts +33 -0
  17. package/dist/host/reference-export.js +81 -0
  18. package/dist/host/reference-native-api.d.ts +3 -0
  19. package/dist/host/reference-native-api.js +3 -0
  20. package/dist/host/reference-native.d.ts +21 -1
  21. package/dist/host/reference-native.js +34 -10
  22. package/dist/host/reference-profile.js +2 -1
  23. package/dist/host/reference-standing.js +18 -0
  24. package/dist/host/refusals.d.ts +14 -0
  25. package/dist/host/refusals.js +43 -0
  26. package/dist/host/signing.js +7 -1
  27. package/dist/observe/files.js +11 -1
  28. package/dist/wasm/object.js +2 -2
  29. package/docs/contracts/authenticated-reference.publication.json +2 -2
  30. package/docs/contracts/host-ports.md +23 -0
  31. package/docs/contracts/host-ports.publication.json +25 -0
  32. package/docs/contracts/native-publication.inventory.json +7 -1
  33. package/docs/contracts/optional-wasm-adapter.publication.json +1 -1
  34. package/docs/contracts/readme.publication.json +25 -0
  35. package/docs/contracts/reference-backend.md +24 -0
  36. package/docs/contracts/reference-backend.publication.json +25 -0
  37. package/docs/contracts/reference-export.md +31 -0
  38. package/docs/contracts/reference-export.publication.json +25 -0
  39. package/docs/contracts/reference-port.md +8 -1
  40. package/docs/contracts/reference-port.publication.json +1 -1
  41. package/docs/contracts/refusals.bound +94 -0
  42. package/docs/contracts/refusals.md +47 -0
  43. package/docs/contracts/refusals.publication.json +25 -0
  44. package/docs/contracts/standing.bound +9 -0
  45. package/docs/contracts/standing.md +24 -0
  46. package/docs/contracts/standing.publication.json +25 -0
  47. package/package.json +49 -4
  48. package/receipts.bound +9550 -7668
  49. package/samples/authenticated-reference/compatibility.json +306 -0
  50. package/samples/authenticated-reference/yes.json +2 -2
  51. package/samples/host-ports/no.json +16 -0
  52. package/samples/host-ports/yes.json +9 -0
  53. package/samples/readme/no.json +1 -0
  54. package/samples/readme/yes.json +1 -0
  55. package/samples/reference-backend/no.json +1 -0
  56. package/samples/reference-backend/world-fixture.json +8 -0
  57. package/samples/reference-backend/yes.json +1 -0
  58. package/samples/reference-export/no.json +5 -0
  59. package/samples/reference-export/yes.json +15 -0
  60. package/samples/reference-port/no/catalog/TARGET.bound +33 -0
  61. package/samples/reference-port/no/route-notes/TARGET.bound +33 -0
  62. package/samples/refusals/no.json +4 -0
  63. package/samples/refusals/yes.json +9 -0
  64. package/samples/standing/no.json +4 -0
  65. package/samples/standing/yes.json +21 -0
  66. package/vectors/native/authenticated-reference-formation.vector.json +55 -1
  67. package/vectors/native/authenticated-reference.vector.json +32 -396
  68. package/vectors/native/host-ports.vector.json +107 -0
  69. package/vectors/native/readme.vector.json +76 -0
  70. package/vectors/native/reference-backend.vector.json +84 -0
  71. package/vectors/native/reference-export.vector.json +78 -0
  72. package/vectors/native/refusals.vector.json +95 -0
  73. package/vectors/native/standing.vector.json +116 -0
  74. package/vectors/wasm-object.cli.json +16 -61
  75. package/dist/cli/accept.d.ts +0 -28
  76. package/dist/cli/act-result.d.ts +0 -12
  77. package/dist/cli/args.d.ts +0 -11
  78. package/dist/cli/custodian.d.ts +0 -1
  79. package/dist/cli/host.d.ts +0 -1
  80. package/dist/cli/names.d.ts +0 -25
  81. package/dist/cli/native-descendant.d.ts +0 -1
  82. package/dist/cli/native.d.ts +0 -1
  83. package/dist/cli/observe.d.ts +0 -1
  84. package/dist/cli/owner.d.ts +0 -37
  85. package/dist/cli/pass.d.ts +0 -6
  86. package/dist/cli/place.d.ts +0 -76
  87. package/dist/cli/release-result.d.ts +0 -5
  88. package/dist/cli/standing-result.d.ts +0 -5
  89. package/dist/cli/takes.d.ts +0 -30
  90. package/dist/fold/admission-history.d.ts +0 -6
  91. package/dist/fold/ceilings.d.ts +0 -24
  92. package/dist/fold/claims.d.ts +0 -29
  93. package/dist/fold/closed.d.ts +0 -15
  94. package/dist/fold/configures.d.ts +0 -4
  95. package/dist/fold/digests.d.ts +0 -29
  96. package/dist/fold/evidence.d.ts +0 -32
  97. package/dist/fold/fold-worker.d.ts +0 -1
  98. package/dist/fold/kept.d.ts +0 -29
  99. package/dist/fold/keys.d.ts +0 -17
  100. package/dist/fold/laid.d.ts +0 -17
  101. package/dist/fold/nos.d.ts +0 -8
  102. package/dist/fold/object.d.ts +0 -3
  103. package/dist/fold/observed.d.ts +0 -35
  104. package/dist/fold/opened.d.ts +0 -5
  105. package/dist/fold/own.d.ts +0 -24
  106. package/dist/fold/paid.d.ts +0 -11
  107. package/dist/fold/place-inputs.d.ts +0 -17
  108. package/dist/fold/places.d.ts +0 -24
  109. package/dist/fold/rank.d.ts +0 -3
  110. package/dist/fold/reach.d.ts +0 -18
  111. package/dist/fold/readers.d.ts +0 -47
  112. package/dist/fold/receipts.d.ts +0 -8
  113. package/dist/fold/region-declarations.d.ts +0 -2
  114. package/dist/fold/region.d.ts +0 -72
  115. package/dist/fold/release-policy.d.ts +0 -67
  116. package/dist/fold/resolved.d.ts +0 -18
  117. package/dist/fold/roles.d.ts +0 -17
  118. package/dist/fold/second.d.ts +0 -18
  119. package/dist/fold/shards.d.ts +0 -29
  120. package/dist/fold/signed.d.ts +0 -23
  121. package/dist/fold/signers.d.ts +0 -24
  122. package/dist/fold/stranger.d.ts +0 -3
  123. package/dist/fold/views.d.ts +0 -27
  124. package/dist/fold/wire.d.ts +0 -19
  125. package/dist/fold/zoom.d.ts +0 -16
  126. package/dist/host/act-cost.d.ts +0 -13
  127. package/dist/host/adapters/keys/ed25519.d.ts +0 -7
  128. package/dist/host/adapters/modules/javascript.d.ts +0 -3
  129. package/dist/host/adapters/transport/http.d.ts +0 -5
  130. package/dist/host/admitted-place.d.ts +0 -5
  131. package/dist/host/archive.d.ts +0 -11
  132. package/dist/host/capsule-process.d.ts +0 -21
  133. package/dist/host/capsule.d.ts +0 -19
  134. package/dist/host/cell-receipts.d.ts +0 -2
  135. package/dist/host/content-needed.d.ts +0 -5
  136. package/dist/host/content-store.d.ts +0 -8
  137. package/dist/host/contextual-place.d.ts +0 -59
  138. package/dist/host/digest.d.ts +0 -3
  139. package/dist/host/hash.d.ts +0 -9
  140. package/dist/host/io.d.ts +0 -11
  141. package/dist/host/lifetime.d.ts +0 -1
  142. package/dist/host/located.d.ts +0 -4
  143. package/dist/host/native/bounded-file.d.ts +0 -8
  144. package/dist/host/native/command.d.ts +0 -36
  145. package/dist/host/native/control-bridge-worker.d.ts +0 -1
  146. package/dist/host/native/control-bridge.d.ts +0 -30
  147. package/dist/host/native/control-selection.d.ts +0 -29
  148. package/dist/host/native/custody.d.ts +0 -5
  149. package/dist/host/native/deadline.d.ts +0 -12
  150. package/dist/host/native/descendants.d.ts +0 -1
  151. package/dist/host/native/generated-custodian.d.ts +0 -122
  152. package/dist/host/native/generated.d.ts +0 -217
  153. package/dist/host/native/image.d.ts +0 -36
  154. package/dist/host/native/jobs.d.ts +0 -75
  155. package/dist/host/native/loader.d.ts +0 -80
  156. package/dist/host/native/materialize.d.ts +0 -22
  157. package/dist/host/native/module-closure.d.ts +0 -27
  158. package/dist/host/native/module-syntax.d.ts +0 -8
  159. package/dist/host/native/native-binary.d.ts +0 -54
  160. package/dist/host/native/native-program.d.ts +0 -56
  161. package/dist/host/native/node-jobs.d.ts +0 -84
  162. package/dist/host/native/node-launch.d.ts +0 -72
  163. package/dist/host/native/preload.d.ts +0 -1
  164. package/dist/host/native/reading.d.ts +0 -91
  165. package/dist/host/native/receipt-environment.d.ts +0 -3
  166. package/dist/host/native/references.d.ts +0 -5
  167. package/dist/host/native/root.d.ts +0 -17
  168. package/dist/host/native/route.d.ts +0 -66
  169. package/dist/host/native/runtime.d.ts +0 -4
  170. package/dist/host/native-reader-context.d.ts +0 -3
  171. package/dist/host/objects.d.ts +0 -6
  172. package/dist/host/place-clock-selection.d.ts +0 -55
  173. package/dist/host/ports/ingress.d.ts +0 -24
  174. package/dist/host/ports/local-act.d.ts +0 -44
  175. package/dist/host/ports/place-act.d.ts +0 -46
  176. package/dist/host/ports/publication.d.ts +0 -10
  177. package/dist/host/ports/signing.d.ts +0 -31
  178. package/dist/host/ports/store.d.ts +0 -2
  179. package/dist/host/ports/transport.d.ts +0 -1
  180. package/dist/host/process-lifetime.d.ts +0 -11
  181. package/dist/host/provide.d.ts +0 -48
  182. package/dist/host/read-only.d.ts +0 -3
  183. package/dist/host/reading-closures.d.ts +0 -47
  184. package/dist/host/reading-context.d.ts +0 -29
  185. package/dist/host/reference.d.ts +0 -6
  186. package/dist/host/release.d.ts +0 -14
  187. package/dist/host/root-clock-source.d.ts +0 -85
  188. package/dist/host/selected-capsules.d.ts +0 -8
  189. package/dist/host/selected-topos.d.ts +0 -24
  190. package/dist/host/signing.d.ts +0 -3
  191. package/dist/host/source-content.d.ts +0 -12
  192. package/dist/host/timing.d.ts +0 -2
  193. package/dist/host/walk.d.ts +0 -6
  194. package/dist/judge/late.d.ts +0 -7
  195. package/dist/judge/take.d.ts +0 -59
  196. package/dist/judge/widening.d.ts +0 -1
  197. package/dist/land/act.d.ts +0 -30
  198. package/dist/land/alias.d.ts +0 -10
  199. package/dist/land/held.d.ts +0 -7
  200. package/dist/land/inert.d.ts +0 -26
  201. package/dist/land/leaving.d.ts +0 -14
  202. package/dist/land/ledger.d.ts +0 -33
  203. package/dist/land/owned.d.ts +0 -23
  204. package/dist/land/sign.d.ts +0 -15
  205. package/dist/land/standing-pin.d.ts +0 -3
  206. package/dist/land/vouched.d.ts +0 -21
  207. package/dist/land/withdraw.d.ts +0 -14
  208. package/dist/observe/files.d.ts +0 -14
  209. package/dist/observe/identity.d.ts +0 -21
  210. package/dist/observe/match.d.ts +0 -1
  211. package/dist/observe/regions.d.ts +0 -33
  212. package/dist/observe/run.d.ts +0 -31
  213. package/dist/observe/runner.d.ts +0 -20
  214. package/dist/render/capsule.d.ts +0 -24
  215. package/dist/render/field.d.ts +0 -3
  216. package/dist/render/names.d.ts +0 -3
  217. package/dist/render/open.d.ts +0 -27
  218. package/dist/render/page.d.ts +0 -3
  219. package/dist/render/receipts.d.ts +0 -3
  220. package/dist/render/shape.d.ts +0 -16
  221. package/dist/render/target.d.ts +0 -18
  222. package/dist/render/view.d.ts +0 -22
  223. package/dist/wasm/node-worker.d.ts +0 -1
  224. package/dist/wasm/object.d.ts +0 -8
  225. package/dist/wasm/worker.d.ts +0 -1
@@ -1,14 +0,0 @@
1
- interface Withdrawal {
2
- /** The held lines the withdrawals take. */
3
- readonly taken: readonly string[];
4
- /** Taken lines whose scale is distributive: withdrawing them loses nothing and keeps nothing. */
5
- readonly exact: readonly string[];
6
- readonly inexact: readonly string[];
7
- readonly open: readonly string[];
8
- }
9
- export declare function retractedTogether(signed: readonly string[]): readonly {
10
- readonly withdraw: string;
11
- readonly line: string;
12
- }[];
13
- export declare function withdrawal(withdraws: readonly string[], held: readonly string[]): Withdrawal;
14
- export {};
@@ -1,14 +0,0 @@
1
- export declare const observeFile: (at: string) => Uint8Array | undefined;
2
- export declare const observeText: (at: string) => string | undefined;
3
- export declare const exists: (at: string) => boolean;
4
- export type Kind = 'file' | 'dir' | 'link' | 'other';
5
- export declare function stampOf(at: string): {
6
- readonly kind: Kind;
7
- readonly stamp: string;
8
- } | undefined;
9
- export declare const linkOf: (at: string) => string;
10
- export declare function entriesIn(at: string): readonly {
11
- readonly name: string;
12
- readonly dir: boolean;
13
- }[];
14
- export declare function coordinatesUnder(dir: string, root: string, into?: (step: string) => boolean): string[];
@@ -1,21 +0,0 @@
1
- import type { ReaderLifetime } from '@lapxo/topos/wire';
2
- import type { Kind } from './run.ts';
3
- /** Where a reader's vectors lie: in its package, beside its source, under the name of its module, the folder the wire's vector family names. */
4
- export declare const vectorsOf: (module: string, standing: readonly string[]) => string;
5
- export declare const withoutVectors: (root: string, modules: readonly string[], standing: readonly string[]) => number;
6
- export declare function resetsOnEqualEmits(lines: readonly string[]): number;
7
- /** The executable keys the reader; its vector results describe only the cases measured. */
8
- export declare function identityOf(input: {
9
- readonly store: string;
10
- readonly root: string;
11
- readonly speaker: string;
12
- readonly module: string;
13
- readonly kind: Kind;
14
- readonly code: string;
15
- readonly lineage: readonly string[];
16
- readonly kept: readonly string[];
17
- readonly lifetime?: ReaderLifetime;
18
- }): {
19
- readonly by: string;
20
- readonly lines: readonly string[];
21
- };
@@ -1 +0,0 @@
1
- export declare const fits: (read: string, coordinate: string) => boolean;
@@ -1,33 +0,0 @@
1
- export { selectionLines } from '../fold/reach.ts';
2
- import type { Declaration } from '@lapxo/topos/capsule';
3
- import type { Request } from '@lapxo/topos/contract';
4
- import type { Capsule } from '../host/capsule.ts';
5
- import type { PlaceFold } from '../cli/place.ts';
6
- type Asking = {
7
- readonly name: string;
8
- readonly at: number;
9
- };
10
- type Placed = Pick<PlaceFold, 'root' | 'store' | 'standing' | 'observed'> & {
11
- readonly under?: string;
12
- readonly second?: PlaceFold['second'];
13
- };
14
- /** A declared selector keeps its contract token while the host binds only offered, concretely named regions. */
15
- export declare function regionNames(reads: readonly string[], descriptions: readonly string[]): readonly string[];
16
- export declare const describedReceipts: () => readonly string[];
17
- /** Execution is supplied only by explicit capsule offers of the selected standing. */
18
- export declare function capsulesOf(fold: Placed): readonly Capsule[];
19
- export declare const declaredBy: (fold: Placed) => readonly string[];
20
- type Ask = (declaration: Declaration, one: Asking, verb: 'render' | 'read', shape: string) => Request | undefined;
21
- /**
22
- * What a region of a capsule is handed: of the reads its line declares, every read of the place's lines, and each region
23
- * a line of the instrument's lock describes, with its lines and its receipts; a region no line describes is not handed,
24
- * and a region handed less than it declares is refused by its capsule, which is every capsule's no. Nothing is handed
25
- * as a file: the lines are the place as its published lock holds them, and each region is read once for the fold,
26
- * however many views ask it.
27
- */
28
- export declare const askingOf: (fold: Placed) => Ask;
29
- export declare function capsuleReadingsOver(fold: Placed): readonly string[];
30
- /** Current judgement excludes authenticated outcomes of the selected producer batches; retained evidence stays in its carrier. */
31
- export declare const currentReceiptObservations: (fold: Parameters<typeof capsulesOf>[0]) => readonly string[];
32
- /** Preserve prior producer outcomes in the owning place's public carrier, independently of current judgement. */
33
- export declare const retiredReceiptHistory: (fold: Parameters<typeof capsulesOf>[0]) => readonly string[];
@@ -1,31 +0,0 @@
1
- import type { ReaderLifetime } from '@lapxo/topos/wire';
2
- export type Kind = 'js' | 'process';
3
- /** The kinds this host starts. A reader of any other kind is signed and stays potential: nothing here runs it. */
4
- export declare const runs: (kind: string) => kind is Kind;
5
- interface Row {
6
- readonly scope: string;
7
- readonly measure: string;
8
- readonly role: string;
9
- readonly bound: {
10
- readonly kind: string;
11
- readonly values?: readonly string[];
12
- readonly lo?: number;
13
- readonly hi?: number;
14
- };
15
- }
16
- interface Input {
17
- readonly place: string;
18
- readonly text?: string;
19
- readonly held?: readonly (readonly [string, string])[];
20
- readonly region?: string;
21
- }
22
- /** The host end of the contract, beside the command that started this process: a module runs in a process of its own. */
23
- export declare const hostOf: () => string;
24
- /**
25
- * A reader runs as a process of its own, started by the runtime from the module its lock names, in the root its places
26
- * are named from: the instrument loads no capsule into itself. It is asked through the one contract, each place with
27
- * the file it is handed or alone when it reads the place by running it, as the region it was matched for when its
28
- * capsule reads with several, and answers one list of claims per place.
29
- */
30
- export declare function runReader(module: string, root: string, inputs: readonly Input[], limits?: ReaderLifetime): readonly (readonly Row[])[];
31
- export {};
@@ -1,20 +0,0 @@
1
- export declare const ownRoot: () => string;
2
- /** A published instrument carries its own content store even before any ledger
3
- * exists. Public-lock recognition grants no authority; legacy signed delivery
4
- * trees retain their historical colocated-ledger or sibling-store layout. */
5
- export declare function instrumentStoreAt(root: string): string;
6
- export declare const ownStore: () => string;
7
- export declare const ownLock: () => readonly string[];
8
- export declare const sourceOf: () => string;
9
- export declare function processOf(name: string, folder?: string): string;
10
- /**
11
- * A reader's code is what the bundler takes of it: its module and every file that module imports, wherever it lies, as
12
- * one blob of the tree's store named by the digest of its bytes. The files the bundler read, at the stamps they had, key
13
- * the blob, so it is built again only when one of them moved, and a helper a step above the module is one of them.
14
- */
15
- export declare function bundleOf(module: string): string | undefined;
16
- /** A reader run by a blob is a blob itself: its bundle, with everything it imports but the compiler. */
17
- export declare function readerOf(module: string): {
18
- readonly path: string;
19
- readonly flags: readonly string[];
20
- };
@@ -1,24 +0,0 @@
1
- import type { PlaceFold } from '../cli/place.ts';
2
- type Asking = {
3
- readonly name: string;
4
- readonly at: number;
5
- };
6
- type Viewed = {
7
- readonly asking: readonly Asking[];
8
- readonly shape: string;
9
- };
10
- export declare const capsuleRegions: (fold: PlaceFold, asking: readonly Asking[], shape?: string) => ReadonlyMap<string, readonly string[]>;
11
- /**
12
- * A region this instrument does not render is rendered by a capsule: one the place uses by the digest of its lock and
13
- * its bytes, or else one the instrument carries. What the views of one fold ask of each capsule is asked at once; a
14
- * region one capsule answered is not asked of another, and one it refused or never answered is named and asked of the
15
- * next only when no region was offered. A refusal from an offered region stops the request; it never selects another implementation.
16
- */
17
- export declare const capsuleViews: (fold: PlaceFold, views: readonly Viewed[]) => readonly ReadonlyMap<string, readonly string[]>[];
18
- type Answer = {
19
- readonly lines: readonly string[];
20
- readonly by: string;
21
- };
22
- /** What each capsule answered a view's regions with, the capsule by its digest, and whether the place's pin chose it. */
23
- export declare function capsuleAnswers(fold: PlaceFold, views: readonly Viewed[]): readonly ReadonlyMap<string, Answer>[];
24
- export {};
@@ -1,3 +0,0 @@
1
- import type { PlaceFold } from '../cli/place.ts';
2
- /** Host file-region readings, grouped by coordinate prefix. These statuses do not compute object encounters. */
3
- export declare function field(fold: PlaceFold, at: number): readonly string[];
@@ -1,3 +0,0 @@
1
- /** The regions bound renders itself, by name: a view that asks any other is answered by a capsule that declares it, or refused whole. */
2
- export declare const REGION_NAMES: readonly ["receipts", "help", "lines", "red", "forks", "programs", "why", "sign", "take", "history", "field", "evidence"];
3
- export type RegionName = (typeof REGION_NAMES)[number];
@@ -1,27 +0,0 @@
1
- export interface OpenCell {
2
- readonly scope: string;
3
- readonly ceiling: string;
4
- readonly bits: number | null;
5
- readonly freedom: string;
6
- readonly states: readonly string[];
7
- readonly origins: readonly string[];
8
- readonly rank: number;
9
- readonly cone: string;
10
- }
11
- /**
12
- * What is open, as cells, taken once when the tree is folded and read by the view rather than taken again at every
13
- * render. A line of the lock with more than one bit still free is a question this tree has not answered; a cell with
14
- * one legal state is applied and not open; a cell a reading has already answered is applied whatever its width; a
15
- * cell standing on one origin with a closer already named is asked and not open. A cell says of itself that it is a
16
- * decision: a ceiling in force is not a question because it is wide, and a lock with no decision in it is a lock with
17
- * nothing open, which the render says by saying nothing. What each state would be worth is rendered beside it, and a quantity this instrument cannot yet take is
18
- * rendered grey with the name of what would take it, never as a number it invented.
19
- */
20
- export declare function openCells(input: {
21
- readonly store: string;
22
- readonly standing: readonly string[];
23
- readonly observed: readonly string[];
24
- readonly grey: readonly string[];
25
- readonly epoch: number;
26
- }): readonly OpenCell[];
27
- export declare const openCards: (open: readonly OpenCell[]) => readonly string[];
@@ -1,3 +0,0 @@
1
- import type { PlaceFold } from '../cli/place.ts';
2
- export declare const secondName: () => string;
3
- export declare const nameOf: (fold: Pick<PlaceFold, "standing" | "under">) => string;
@@ -1,3 +0,0 @@
1
- import type { PlaceFold } from '../cli/place.ts';
2
- /** Native receipts are a protocol projection of actual fold observations, not a domain renderer or an acceptance verdict. */
3
- export declare function receiptRegion(fold: PlaceFold, at: number): readonly string[];
@@ -1,16 +0,0 @@
1
- import type { PlaceFold } from '../cli/place.ts';
2
- export declare function shapeLines(fold: PlaceFold): readonly string[];
3
- /**
4
- * What moved a verdict: the world under it, or a head that signed. A demand whose judgement came out differently than
5
- * the time before moved by observation unless its own line was re-signed, in which case the lock moved and not the
6
- * world; a verdict moved by a signature is not the world moving.
7
- */
8
- export declare function moved(fold: PlaceFold): {
9
- readonly observation: number;
10
- readonly signature: number;
11
- };
12
- /** The source coordinates of the tree no reader has reached: the number that falls when knowing advances. The walk never enters the store or a foreign directory, whose coordinates are never sources. */
13
- export declare function horizonOf(fold: PlaceFold): {
14
- readonly unread: number;
15
- readonly sources: number;
16
- };
@@ -1,18 +0,0 @@
1
- import type { Fork } from '../fold/claims.ts';
2
- /** TARGET is a render of the fold of the owner's ledger: a fork shows every signed line that stands, under a note. */
3
- export declare function renderTarget(ownerLines: readonly string[], today?: string, authority?: (line: string) => {
4
- readonly kind: string;
5
- readonly why?: string;
6
- }, receipts?: readonly {
7
- readonly scope: string;
8
- readonly moved: readonly string[];
9
- }[]): {
10
- readonly text: string;
11
- readonly standing: number;
12
- readonly superseded: readonly string[];
13
- readonly retracted: readonly string[];
14
- readonly forks: readonly Fork[];
15
- readonly grey: readonly string[];
16
- readonly refused: readonly string[];
17
- readonly vacuous: readonly string[];
18
- };
@@ -1,22 +0,0 @@
1
- import type { PlaceFold } from '../cli/place.ts';
2
- import type { View } from '../fold/views.ts';
3
- export declare const askWhy: (fold: PlaceFold, coord: string) => void;
4
- export declare const unrendered: (fold: PlaceFold, view: {
5
- readonly regions: readonly {
6
- readonly name: string;
7
- }[];
8
- }) => readonly string[];
9
- export declare function render(fold: PlaceFold, regions: readonly {
10
- readonly name: string;
11
- readonly at: number;
12
- }[], shape?: string): string;
13
- export declare function prerender(fold: PlaceFold, views: readonly View[]): void;
14
- export declare function viewOf(fold: PlaceFold, view: View): string;
15
- export declare function renderedOf(fold: PlaceFold, view: {
16
- readonly name: string;
17
- readonly shape: string;
18
- readonly regions: readonly {
19
- readonly name: string;
20
- readonly at: number;
21
- }[];
22
- }): readonly string[];
@@ -1 +0,0 @@
1
- export {};
@@ -1,8 +0,0 @@
1
- import type { ObjectRecord, ObjectContext } from '@lapxo/topos/wire';
2
- import type { ObjectReading } from '../engine/index.ts';
3
- type Fields = Readonly<Record<string, string>>;
4
- /** Configuration is the caller's already authenticated, live standing; selection grants no authority. */
5
- export declare function usesWasmObject(configuration: readonly Fields[]): boolean;
6
- /** The installed instrument owns the asset/form closure; place input cannot choose executable bytes. */
7
- export declare function foldObjectsWithWasm(root: string, records: readonly ObjectRecord[], context: ObjectContext, configuration: readonly Fields[], signal?: AbortSignal): Promise<readonly ObjectReading[]>;
8
- export {};
@@ -1 +0,0 @@
1
- export {};