@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.
- package/README.md +40 -121
- package/TARGET.bound +51 -23
- package/dist/cli/standing-result.js +4 -3
- package/dist/cli/verb.js +36 -3
- package/dist/engine/encoding.js +2 -0
- package/dist/engine/index.d.ts +2 -0
- package/dist/engine/index.js +2 -0
- package/dist/engine/ports.d.ts +32 -0
- package/dist/engine/ports.js +103 -0
- package/dist/host/admitted-place.js +6 -0
- package/dist/host/contextual-place.js +2 -2
- package/dist/host/io.js +2 -2
- package/dist/host/reference-authenticated.d.ts +12 -0
- package/dist/host/reference-authenticated.js +47 -31
- package/dist/host/reference-contracts.js +6 -0
- package/dist/host/reference-export.d.ts +33 -0
- package/dist/host/reference-export.js +81 -0
- package/dist/host/reference-native-api.d.ts +3 -0
- package/dist/host/reference-native-api.js +3 -0
- package/dist/host/reference-native.d.ts +21 -1
- package/dist/host/reference-native.js +34 -10
- package/dist/host/reference-profile.js +2 -1
- package/dist/host/reference-standing.js +18 -0
- package/dist/host/refusals.d.ts +14 -0
- package/dist/host/refusals.js +43 -0
- package/dist/host/signing.js +7 -1
- package/dist/observe/files.js +11 -1
- package/dist/wasm/object.js +2 -2
- package/docs/contracts/authenticated-reference.publication.json +2 -2
- package/docs/contracts/host-ports.md +23 -0
- package/docs/contracts/host-ports.publication.json +25 -0
- package/docs/contracts/native-publication.inventory.json +7 -1
- package/docs/contracts/optional-wasm-adapter.publication.json +1 -1
- package/docs/contracts/readme.publication.json +25 -0
- package/docs/contracts/reference-backend.md +24 -0
- package/docs/contracts/reference-backend.publication.json +25 -0
- package/docs/contracts/reference-export.md +31 -0
- package/docs/contracts/reference-export.publication.json +25 -0
- package/docs/contracts/reference-port.md +8 -1
- package/docs/contracts/reference-port.publication.json +1 -1
- package/docs/contracts/refusals.bound +94 -0
- package/docs/contracts/refusals.md +47 -0
- package/docs/contracts/refusals.publication.json +25 -0
- package/docs/contracts/standing.bound +9 -0
- package/docs/contracts/standing.md +24 -0
- package/docs/contracts/standing.publication.json +25 -0
- package/package.json +49 -4
- package/receipts.bound +9550 -7668
- package/samples/authenticated-reference/compatibility.json +306 -0
- package/samples/authenticated-reference/yes.json +2 -2
- package/samples/host-ports/no.json +16 -0
- package/samples/host-ports/yes.json +9 -0
- package/samples/readme/no.json +1 -0
- package/samples/readme/yes.json +1 -0
- package/samples/reference-backend/no.json +1 -0
- package/samples/reference-backend/world-fixture.json +8 -0
- package/samples/reference-backend/yes.json +1 -0
- package/samples/reference-export/no.json +5 -0
- package/samples/reference-export/yes.json +15 -0
- package/samples/reference-port/no/catalog/TARGET.bound +33 -0
- package/samples/reference-port/no/route-notes/TARGET.bound +33 -0
- package/samples/refusals/no.json +4 -0
- package/samples/refusals/yes.json +9 -0
- package/samples/standing/no.json +4 -0
- package/samples/standing/yes.json +21 -0
- package/vectors/native/authenticated-reference-formation.vector.json +55 -1
- package/vectors/native/authenticated-reference.vector.json +32 -396
- package/vectors/native/host-ports.vector.json +107 -0
- package/vectors/native/readme.vector.json +76 -0
- package/vectors/native/reference-backend.vector.json +84 -0
- package/vectors/native/reference-export.vector.json +78 -0
- package/vectors/native/refusals.vector.json +95 -0
- package/vectors/native/standing.vector.json +116 -0
- package/vectors/wasm-object.cli.json +16 -61
- package/dist/cli/accept.d.ts +0 -28
- package/dist/cli/act-result.d.ts +0 -12
- package/dist/cli/args.d.ts +0 -11
- package/dist/cli/custodian.d.ts +0 -1
- package/dist/cli/host.d.ts +0 -1
- package/dist/cli/names.d.ts +0 -25
- package/dist/cli/native-descendant.d.ts +0 -1
- package/dist/cli/native.d.ts +0 -1
- package/dist/cli/observe.d.ts +0 -1
- package/dist/cli/owner.d.ts +0 -37
- package/dist/cli/pass.d.ts +0 -6
- package/dist/cli/place.d.ts +0 -76
- package/dist/cli/release-result.d.ts +0 -5
- package/dist/cli/standing-result.d.ts +0 -5
- package/dist/cli/takes.d.ts +0 -30
- package/dist/fold/admission-history.d.ts +0 -6
- package/dist/fold/ceilings.d.ts +0 -24
- package/dist/fold/claims.d.ts +0 -29
- package/dist/fold/closed.d.ts +0 -15
- package/dist/fold/configures.d.ts +0 -4
- package/dist/fold/digests.d.ts +0 -29
- package/dist/fold/evidence.d.ts +0 -32
- package/dist/fold/fold-worker.d.ts +0 -1
- package/dist/fold/kept.d.ts +0 -29
- package/dist/fold/keys.d.ts +0 -17
- package/dist/fold/laid.d.ts +0 -17
- package/dist/fold/nos.d.ts +0 -8
- package/dist/fold/object.d.ts +0 -3
- package/dist/fold/observed.d.ts +0 -35
- package/dist/fold/opened.d.ts +0 -5
- package/dist/fold/own.d.ts +0 -24
- package/dist/fold/paid.d.ts +0 -11
- package/dist/fold/place-inputs.d.ts +0 -17
- package/dist/fold/places.d.ts +0 -24
- package/dist/fold/rank.d.ts +0 -3
- package/dist/fold/reach.d.ts +0 -18
- package/dist/fold/readers.d.ts +0 -47
- package/dist/fold/receipts.d.ts +0 -8
- package/dist/fold/region-declarations.d.ts +0 -2
- package/dist/fold/region.d.ts +0 -72
- package/dist/fold/release-policy.d.ts +0 -67
- package/dist/fold/resolved.d.ts +0 -18
- package/dist/fold/roles.d.ts +0 -17
- package/dist/fold/second.d.ts +0 -18
- package/dist/fold/shards.d.ts +0 -29
- package/dist/fold/signed.d.ts +0 -23
- package/dist/fold/signers.d.ts +0 -24
- package/dist/fold/stranger.d.ts +0 -3
- package/dist/fold/views.d.ts +0 -27
- package/dist/fold/wire.d.ts +0 -19
- package/dist/fold/zoom.d.ts +0 -16
- package/dist/host/act-cost.d.ts +0 -13
- package/dist/host/adapters/keys/ed25519.d.ts +0 -7
- package/dist/host/adapters/modules/javascript.d.ts +0 -3
- package/dist/host/adapters/transport/http.d.ts +0 -5
- package/dist/host/admitted-place.d.ts +0 -5
- package/dist/host/archive.d.ts +0 -11
- package/dist/host/capsule-process.d.ts +0 -21
- package/dist/host/capsule.d.ts +0 -19
- package/dist/host/cell-receipts.d.ts +0 -2
- package/dist/host/content-needed.d.ts +0 -5
- package/dist/host/content-store.d.ts +0 -8
- package/dist/host/contextual-place.d.ts +0 -59
- package/dist/host/digest.d.ts +0 -3
- package/dist/host/hash.d.ts +0 -9
- package/dist/host/io.d.ts +0 -11
- package/dist/host/lifetime.d.ts +0 -1
- package/dist/host/located.d.ts +0 -4
- package/dist/host/native/bounded-file.d.ts +0 -8
- package/dist/host/native/command.d.ts +0 -36
- package/dist/host/native/control-bridge-worker.d.ts +0 -1
- package/dist/host/native/control-bridge.d.ts +0 -30
- package/dist/host/native/control-selection.d.ts +0 -29
- package/dist/host/native/custody.d.ts +0 -5
- package/dist/host/native/deadline.d.ts +0 -12
- package/dist/host/native/descendants.d.ts +0 -1
- package/dist/host/native/generated-custodian.d.ts +0 -122
- package/dist/host/native/generated.d.ts +0 -217
- package/dist/host/native/image.d.ts +0 -36
- package/dist/host/native/jobs.d.ts +0 -75
- package/dist/host/native/loader.d.ts +0 -80
- package/dist/host/native/materialize.d.ts +0 -22
- package/dist/host/native/module-closure.d.ts +0 -27
- package/dist/host/native/module-syntax.d.ts +0 -8
- package/dist/host/native/native-binary.d.ts +0 -54
- package/dist/host/native/native-program.d.ts +0 -56
- package/dist/host/native/node-jobs.d.ts +0 -84
- package/dist/host/native/node-launch.d.ts +0 -72
- package/dist/host/native/preload.d.ts +0 -1
- package/dist/host/native/reading.d.ts +0 -91
- package/dist/host/native/receipt-environment.d.ts +0 -3
- package/dist/host/native/references.d.ts +0 -5
- package/dist/host/native/root.d.ts +0 -17
- package/dist/host/native/route.d.ts +0 -66
- package/dist/host/native/runtime.d.ts +0 -4
- package/dist/host/native-reader-context.d.ts +0 -3
- package/dist/host/objects.d.ts +0 -6
- package/dist/host/place-clock-selection.d.ts +0 -55
- package/dist/host/ports/ingress.d.ts +0 -24
- package/dist/host/ports/local-act.d.ts +0 -44
- package/dist/host/ports/place-act.d.ts +0 -46
- package/dist/host/ports/publication.d.ts +0 -10
- package/dist/host/ports/signing.d.ts +0 -31
- package/dist/host/ports/store.d.ts +0 -2
- package/dist/host/ports/transport.d.ts +0 -1
- package/dist/host/process-lifetime.d.ts +0 -11
- package/dist/host/provide.d.ts +0 -48
- package/dist/host/read-only.d.ts +0 -3
- package/dist/host/reading-closures.d.ts +0 -47
- package/dist/host/reading-context.d.ts +0 -29
- package/dist/host/reference.d.ts +0 -6
- package/dist/host/release.d.ts +0 -14
- package/dist/host/root-clock-source.d.ts +0 -85
- package/dist/host/selected-capsules.d.ts +0 -8
- package/dist/host/selected-topos.d.ts +0 -24
- package/dist/host/signing.d.ts +0 -3
- package/dist/host/source-content.d.ts +0 -12
- package/dist/host/timing.d.ts +0 -2
- package/dist/host/walk.d.ts +0 -6
- package/dist/judge/late.d.ts +0 -7
- package/dist/judge/take.d.ts +0 -59
- package/dist/judge/widening.d.ts +0 -1
- package/dist/land/act.d.ts +0 -30
- package/dist/land/alias.d.ts +0 -10
- package/dist/land/held.d.ts +0 -7
- package/dist/land/inert.d.ts +0 -26
- package/dist/land/leaving.d.ts +0 -14
- package/dist/land/ledger.d.ts +0 -33
- package/dist/land/owned.d.ts +0 -23
- package/dist/land/sign.d.ts +0 -15
- package/dist/land/standing-pin.d.ts +0 -3
- package/dist/land/vouched.d.ts +0 -21
- package/dist/land/withdraw.d.ts +0 -14
- package/dist/observe/files.d.ts +0 -14
- package/dist/observe/identity.d.ts +0 -21
- package/dist/observe/match.d.ts +0 -1
- package/dist/observe/regions.d.ts +0 -33
- package/dist/observe/run.d.ts +0 -31
- package/dist/observe/runner.d.ts +0 -20
- package/dist/render/capsule.d.ts +0 -24
- package/dist/render/field.d.ts +0 -3
- package/dist/render/names.d.ts +0 -3
- package/dist/render/open.d.ts +0 -27
- package/dist/render/page.d.ts +0 -3
- package/dist/render/receipts.d.ts +0 -3
- package/dist/render/shape.d.ts +0 -16
- package/dist/render/target.d.ts +0 -18
- package/dist/render/view.d.ts +0 -22
- package/dist/wasm/node-worker.d.ts +0 -1
- package/dist/wasm/object.d.ts +0 -8
- package/dist/wasm/worker.d.ts +0 -1
package/dist/fold/region.d.ts
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import type { Interval } from '@lapxo/obligations/forms';
|
|
2
|
-
/**
|
|
3
|
-
* A region is a prefix of the place, read at a resolution: the prefixes a lock already names — the steps a role, a
|
|
4
|
-
* directory or a need is given at — are its regions, a cell belongs to the longest of them that holds it, and a region
|
|
5
|
-
* rests on the region its prefix extends. A signature or a requirement is a line at the region its scope names, never a
|
|
6
|
-
* value copied into the cells there; a cell's poles are the meet of the live bounds on its chain of rest, met in the
|
|
7
|
-
* lattice of their form. Each region carries a summary of what lies in it, summed over the regions that rest on it —
|
|
8
|
-
* cells, the sums and the values they read at the lattice's own resolution, the bounds signed at it — so what a bound
|
|
9
|
-
* would bite is read off a summary without visiting a cell, and two readings of one place differ exactly in the regions
|
|
10
|
-
* whose summaries differ. Nothing here is kept between folds; a region is read from the lines that stand and the cells seen.
|
|
11
|
-
*/
|
|
12
|
-
export interface Bound {
|
|
13
|
-
readonly line: string;
|
|
14
|
-
readonly question: string;
|
|
15
|
-
readonly region: string;
|
|
16
|
-
readonly measure: string;
|
|
17
|
-
readonly form: string;
|
|
18
|
-
readonly value: string;
|
|
19
|
-
}
|
|
20
|
-
export interface Regions {
|
|
21
|
-
readonly named: readonly string[];
|
|
22
|
-
readonly bounds: readonly Bound[];
|
|
23
|
-
readonly summaries: ReadonlyMap<string, {
|
|
24
|
-
readonly region: string;
|
|
25
|
-
readonly cells: number;
|
|
26
|
-
readonly sums: ReadonlyMap<string, number>;
|
|
27
|
-
readonly values: ReadonlyMap<string, ReadonlyMap<string, number>>;
|
|
28
|
-
readonly bounds: readonly Bound[];
|
|
29
|
-
}>;
|
|
30
|
-
}
|
|
31
|
-
export declare function regionsNamed(standing: readonly string[]): readonly string[];
|
|
32
|
-
export declare function boundOf(named: readonly string[], line: string): Bound;
|
|
33
|
-
/**
|
|
34
|
-
* The poles of a region, question by question: each live bound is signed at the region it names and travels by rest, as
|
|
35
|
-
* the object signs, so the ceiling is what the region reads up its chain of rest, the meet in the lattice of their form, and beside it what the region's cells hold under that question,
|
|
36
|
-
* value by count. Read off the summaries alone; no cell is visited.
|
|
37
|
-
*/
|
|
38
|
-
export declare function polesOf(regions: Regions, region: string): ReadonlyMap<string, {
|
|
39
|
-
readonly ceiling: Interval | readonly string[] | undefined;
|
|
40
|
-
readonly held: ReadonlyMap<string, number> | undefined;
|
|
41
|
-
}>;
|
|
42
|
-
export declare function regionsOf(standing: readonly string[], ceilings: readonly string[], cells: readonly {
|
|
43
|
-
readonly question: string;
|
|
44
|
-
readonly measure: string;
|
|
45
|
-
readonly value: string;
|
|
46
|
-
readonly place: string;
|
|
47
|
-
}[]): Regions;
|
|
48
|
-
/**
|
|
49
|
-
* What a bound bites, read off the summary of its region and never off a cell: the values its region's cells read that
|
|
50
|
-
* lie outside it, and of those the ones every bound above it still admits. A question finer than a summary is not asked.
|
|
51
|
-
*/
|
|
52
|
-
export declare function rankOf(regions: Regions, bound: Bound, own?: Readonly<Record<string, number>>): {
|
|
53
|
-
readonly bars: number;
|
|
54
|
-
readonly cells: number;
|
|
55
|
-
readonly fresh: number;
|
|
56
|
-
readonly met: number;
|
|
57
|
-
readonly sums: number;
|
|
58
|
-
};
|
|
59
|
-
export declare function finerOf(regions: Regions): ReadonlyMap<string, readonly string[]>;
|
|
60
|
-
export declare function digestsOf(regions: Regions): ReadonlyMap<string, string>;
|
|
61
|
-
export declare function differing(a: Regions, b: Regions): {
|
|
62
|
-
readonly regions: readonly string[];
|
|
63
|
-
readonly compared: number;
|
|
64
|
-
};
|
|
65
|
-
export interface Packed {
|
|
66
|
-
readonly named: readonly string[];
|
|
67
|
-
readonly bounds: readonly string[];
|
|
68
|
-
readonly summaries: readonly (readonly [string, number, readonly (readonly [string, number])[], readonly (readonly [string, readonly (readonly [string, number])[]])[]])[];
|
|
69
|
-
}
|
|
70
|
-
export declare const packRegions: (regions: Regions) => Packed;
|
|
71
|
-
export declare function unpackRegions(packed: Packed): Regions;
|
|
72
|
-
export declare function unlikeReplay(regions: Regions, red: ReadonlySet<string>, own: Readonly<Record<string, number>>): number;
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import type { VerdictDemand, VerdictObservation } from '@lapxo/topos/authority';
|
|
2
|
-
type CeilingReading = {
|
|
3
|
-
readonly read: readonly string[];
|
|
4
|
-
readonly unread: readonly string[];
|
|
5
|
-
readonly vacuous: readonly string[];
|
|
6
|
-
readonly over: readonly {
|
|
7
|
-
readonly ceiling: string;
|
|
8
|
-
readonly question: string;
|
|
9
|
-
readonly got: string;
|
|
10
|
-
readonly side: 'short' | 'over';
|
|
11
|
-
}[];
|
|
12
|
-
};
|
|
13
|
-
export interface ReleasePolicyInput {
|
|
14
|
-
/** Standing already admitted by the same fold. This function does not admit lines. */
|
|
15
|
-
readonly verdicts?: readonly VerdictObservation[];
|
|
16
|
-
readonly standing: readonly string[];
|
|
17
|
-
readonly demands: readonly string[];
|
|
18
|
-
readonly paid: readonly string[];
|
|
19
|
-
readonly ceilings: readonly string[];
|
|
20
|
-
readonly readings: CeilingReading;
|
|
21
|
-
readonly snapshot: {
|
|
22
|
-
readonly fold: string;
|
|
23
|
-
readonly instrument: string;
|
|
24
|
-
};
|
|
25
|
-
readonly faults?: readonly {
|
|
26
|
-
readonly kind: string;
|
|
27
|
-
readonly evidence: readonly string[];
|
|
28
|
-
readonly obligation?: string;
|
|
29
|
-
}[];
|
|
30
|
-
}
|
|
31
|
-
export interface ReleasePolicyResult {
|
|
32
|
-
readonly gates?: readonly VerdictDemand[];
|
|
33
|
-
readonly status: 'absent' | 'incomplete' | 'blocked' | 'ready';
|
|
34
|
-
readonly snapshot: ReleasePolicyInput['snapshot'];
|
|
35
|
-
readonly policy: readonly string[];
|
|
36
|
-
readonly categories: readonly {
|
|
37
|
-
readonly name: string;
|
|
38
|
-
readonly links: readonly string[];
|
|
39
|
-
readonly selected: readonly string[];
|
|
40
|
-
readonly failures: readonly {
|
|
41
|
-
readonly line: string;
|
|
42
|
-
readonly reason: string;
|
|
43
|
-
readonly evidence: readonly string[];
|
|
44
|
-
}[];
|
|
45
|
-
}[];
|
|
46
|
-
readonly unresolved: readonly string[];
|
|
47
|
-
/** All obligations, including those not selected; the normal fold keeps their verdicts. */
|
|
48
|
-
readonly debt: readonly string[];
|
|
49
|
-
}
|
|
50
|
-
/** Preserve actual fold faults; none gets a release category from its spelling. */
|
|
51
|
-
export declare function releaseFaults(fold: {
|
|
52
|
-
readonly forks: readonly {
|
|
53
|
-
readonly key: string;
|
|
54
|
-
readonly lines: readonly string[];
|
|
55
|
-
}[];
|
|
56
|
-
readonly refused: readonly string[];
|
|
57
|
-
readonly grey: readonly string[];
|
|
58
|
-
readonly orphans: readonly string[];
|
|
59
|
-
readonly second: {
|
|
60
|
-
readonly verdict: string;
|
|
61
|
-
};
|
|
62
|
-
}): NonNullable<ReleasePolicyInput['faults']>;
|
|
63
|
-
/** Select declared obligations, never categories inferred from their names or paths. */
|
|
64
|
-
export declare function releasePolicy(input: ReleasePolicyInput): ReleasePolicyResult;
|
|
65
|
-
/** Existing fold output can show the policy without a new view or a release action. */
|
|
66
|
-
export declare function releasePolicyLines(result: ReleasePolicyResult | undefined): readonly string[];
|
|
67
|
-
export {};
|
package/dist/fold/resolved.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { PlaceFold } from '../cli/place.ts';
|
|
2
|
-
export declare const bytesOnly: (line: string) => string;
|
|
3
|
-
/**
|
|
4
|
-
* Every receipt of a place, @8: the bytes of what it observed that a reading ran over, those readings, the verdicts its
|
|
5
|
-
* paid demands were taken with, and at the root the digest of each place's own receipts. The attest is none of them:
|
|
6
|
-
* it stands in the root lock and the release, naming the root these lines resolve to. The fold keeps the set in the
|
|
7
|
-
* root's store under the digest of its bytes, which every line that resolves it names, and what a place with no reader
|
|
8
|
-
* carries is read back from there, never from a file the place ships.
|
|
9
|
-
*/
|
|
10
|
-
export declare function receiptsOf(fold: PlaceFold): readonly string[];
|
|
11
|
-
export declare function keepCarried(store: string, lines: readonly string[], from?: string): string;
|
|
12
|
-
/**
|
|
13
|
-
* What a copy of a place reads back of its receipts: the lines it shipped when they are the whole set, or, when they
|
|
14
|
-
* name a root at the digest of its bytes, the set the store keeps there; a root the store does not keep is no set, and
|
|
15
|
-
* the caller refuses rather than read the lines that only name it.
|
|
16
|
-
*/
|
|
17
|
-
export declare function carriedFrom(store: string, shipped: readonly string[]): readonly string[] | undefined;
|
|
18
|
-
export declare const carriedIn: (store: string) => readonly string[];
|
package/dist/fold/roles.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { RoleClaim } from '@lapxo/topos/wire';
|
|
2
|
-
import type { CoordinateRole } from './wire.ts';
|
|
3
|
-
/** A lock line that gives a coordinate its role: every walk of the tree reads it. */
|
|
4
|
-
export declare function isRoleLock(line: string): boolean;
|
|
5
|
-
/** A lock the owner signs by digest and a capsule writes: its lines stand while the bytes are the ones that were signed. */
|
|
6
|
-
export declare function inheritedRoles(store: string): {
|
|
7
|
-
readonly claims: readonly RoleClaim[];
|
|
8
|
-
readonly stale: readonly string[];
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* What each coordinate of the tree is: the capsule that knows a world writes the roles of that world, the owner signs the
|
|
12
|
-
* capsule's lock by digest, and this fold reads both. The instrument reads claims and never a name, and a coordinate no
|
|
13
|
-
* standing claim names is source. The steps a walk must not enter are read the same way: the claims that name a whole
|
|
14
|
-
* folder foreign or derived, as a set the walk can ask in one step instead of matching every claim at every step.
|
|
15
|
-
*/
|
|
16
|
-
export declare function stepsOutside(store: string): ReadonlySet<string>;
|
|
17
|
-
export declare function rolesOf(store: string): (coordinate: string) => CoordinateRole;
|
package/dist/fold/second.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export interface SecondHead {
|
|
2
|
-
/** What its latest word says of this fold: the same lines stand, other lines stand, it read another ledger, its key is not admitted, or it never spoke. */
|
|
3
|
-
readonly verdict: 'agrees' | 'forks' | 'stale' | 'grey' | 'none';
|
|
4
|
-
/**
|
|
5
|
-
* A head counts as an origin of its own only once it has disagreed: until then it may be this one again (L16); and
|
|
6
|
-
* the epoch of its latest word, wherever it said it, which a clone reads as history and not as its own.
|
|
7
|
-
*/
|
|
8
|
-
readonly external: boolean;
|
|
9
|
-
readonly epoch: number;
|
|
10
|
-
readonly apart?: readonly string[];
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* The second head's word, read against this fold. It attests the digest of the lines it found standing and the digest
|
|
14
|
-
* of the lines of the ledger it folded, in whatever order a store landed them, so a clone that lands the same lines
|
|
15
|
-
* agrees; agreement is an encounter, disagreement a fork. A word about another lock is not read as this one's: the head
|
|
16
|
-
* bound's own lock names is asked now over the ledger as it stands, with no key, and what it says is read, never kept.
|
|
17
|
-
*/
|
|
18
|
-
export declare function secondHead(store: string, standing: readonly string[], admitted: (line: string) => boolean, owned?: readonly string[]): SecondHead;
|
package/dist/fold/shards.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export declare const OBSERVED: RegExp;
|
|
2
|
-
export declare const LEVEL: RegExp;
|
|
3
|
-
export declare const readerOf: (line: string) => string | undefined;
|
|
4
|
-
type Latest = {
|
|
5
|
-
readonly at: string;
|
|
6
|
-
readonly line: string;
|
|
7
|
-
};
|
|
8
|
-
export declare const trimmed: (where: string) => string;
|
|
9
|
-
export { sha } from '../host/hash.ts';
|
|
10
|
-
/**
|
|
11
|
-
* What a reader said is kept by region: the region a place lies in is the longest a reader's lock names that holds it,
|
|
12
|
-
* the stamps and digests it was observed at are lines of that region's shard, and what the reader answered for the
|
|
13
|
-
* region is one observation, stored under its reader's extension, the region, the digest of the region's places and
|
|
14
|
-
* the resolution it was read at. A fold opens the shards of the regions it reaches and reads each observation by its
|
|
15
|
-
* key: nothing is scanned, the same bytes are never read twice, and an observation found under its key is the reading.
|
|
16
|
-
*/
|
|
17
|
-
export declare function regionIn(regions: readonly string[], place: string): string;
|
|
18
|
-
export declare const keyOf: (by: string, region: string, pairs: readonly string[], resolution?: string) => string;
|
|
19
|
-
export declare const observed: (store: string, key: string) => boolean;
|
|
20
|
-
export declare function observation(store: string, key: string): readonly string[] | undefined;
|
|
21
|
-
export declare function keepObservation(store: string, key: string, lines: readonly string[]): void;
|
|
22
|
-
export declare function opened(store: string, speaker: string, region: string, alive: ReadonlySet<string>): {
|
|
23
|
-
readonly region: string;
|
|
24
|
-
readonly places: ReadonlyMap<string, Latest>;
|
|
25
|
-
readonly keys: Map<string, string>;
|
|
26
|
-
};
|
|
27
|
-
export declare const pointer: (speaker: string, by: string, region: string, key: string, pairs: readonly string[]) => string;
|
|
28
|
-
export declare function legacyOf(store: string, speaker: string, regions: readonly string[]): ReadonlyMap<string, readonly string[]> | undefined;
|
|
29
|
-
export declare function setAside(store: string, speaker: string): void;
|
package/dist/fold/signed.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { authorityFor } from './signers.ts';
|
|
2
|
-
/** Lines told to a place's own lock for a preview: folded as if the file held them, and standing only as its signed lines do. */
|
|
3
|
-
export declare const tellOwn: (place: string, lines: readonly string[]) => void;
|
|
4
|
-
/**
|
|
5
|
-
* A place's own lock, folded as the tree folds its own: a line that carries a signature stands only when a key the
|
|
6
|
-
* tree's lock admits signed it, inside the window that key held at the epoch it signed and inside its coverage of the
|
|
7
|
-
* place, the line's scope read as a region of the place; a line that carries none is the place's target text until the
|
|
8
|
-
* place signs its lock, and never stands where only signed lines are asked for.
|
|
9
|
-
*/
|
|
10
|
-
export declare function ownLockOf(root: string, place: string, signedOnly?: boolean): readonly string[];
|
|
11
|
-
/**
|
|
12
|
-
* What a place's own lock holds by signature — a key the tree admits signed the line, inside its window and its coverage
|
|
13
|
-
* of the place — withdrawal or not: whether one line stands there so, the lines that do, and how many were written into
|
|
14
|
-
* the lock rather than applied to it.
|
|
15
|
-
*/
|
|
16
|
-
export declare const admittedIn: (root: string, place: string, line: string) => boolean;
|
|
17
|
-
export declare const appliedIn: (root: string, place: string) => readonly string[];
|
|
18
|
-
export declare const forksIn: (root: string, place: string) => readonly string[];
|
|
19
|
-
export declare const writtenIn: (root: string, place: string) => number;
|
|
20
|
-
/** Authenticated history excludes prospective lines told only for admission. */
|
|
21
|
-
export declare const appliedHistoryIn: (root: string, place: string) => readonly string[];
|
|
22
|
-
/** Shared signature/window/coordinate coverage boundary for own history. */
|
|
23
|
-
export declare function ownRecordAdmitted(line: string, place: string, family: string, signers: ReturnType<typeof authorityFor>['admitted'], algorithms: readonly string[]): boolean;
|
package/dist/fold/signers.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { Published, Signer, SignerVerdict } from '@lapxo/topos/wire';
|
|
2
|
-
/** A lock line about the signers: the authority fold reads it. */
|
|
3
|
-
export declare function isSignerLock(line: string): boolean;
|
|
4
|
-
/** The authority view of a ledger: which signers the lock admits from its root, and what each line carries. */
|
|
5
|
-
export declare function authorityFor(lines: readonly string[], root: Signer, admitted: readonly string[], published?: Published): {
|
|
6
|
-
readonly admitted: readonly Signer[];
|
|
7
|
-
readonly potential: readonly string[];
|
|
8
|
-
readonly of: (line: string) => SignerVerdict;
|
|
9
|
-
};
|
|
10
|
-
/** The key this lock admits for a class of writing: the fold is kept by whoever runs it, and the lock says who that is. */
|
|
11
|
-
export declare function writerFor(standing: readonly string[], kind: string): string | undefined;
|
|
12
|
-
export declare function publicKeyOf(root: string, keyId: string): string | undefined;
|
|
13
|
-
export declare function releaseSigner(lines: readonly string[]): Signer;
|
|
14
|
-
export declare function rootSigner(root: string): {
|
|
15
|
-
id: string;
|
|
16
|
-
keyClass: 'authorize';
|
|
17
|
-
publicKey: string;
|
|
18
|
-
coverage: string[];
|
|
19
|
-
depth: {
|
|
20
|
-
lo: number;
|
|
21
|
-
hi: number;
|
|
22
|
-
};
|
|
23
|
-
admittedBy: string[];
|
|
24
|
-
};
|
package/dist/fold/stranger.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/** A clone that holds a lock and no ledger: receipts none, one place opened, the needs the lock names, each uses/ pin still open, and README.md to render. Nothing is folded and nothing is written. */
|
|
2
|
-
export declare function emptyLedger(store: string): boolean;
|
|
3
|
-
export declare function sayStranger(root: string): void;
|
package/dist/fold/views.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
interface Asked {
|
|
2
|
-
readonly name: string;
|
|
3
|
-
readonly at: number;
|
|
4
|
-
readonly called?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export interface View {
|
|
7
|
-
readonly name: string;
|
|
8
|
-
readonly regions: readonly Asked[];
|
|
9
|
-
readonly shape: string;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* A view is a signed line `view/<name>` whose value lists regions in the order they are written, each at the resolution
|
|
13
|
-
* it asks for (`region@n`, the steps of each line it keeps, three when it asks for none, and the one the view is called
|
|
14
|
-
* at for `region@*`), and whose shape, when it has one, names the coordinate the view renders into. What renders a region is
|
|
15
|
-
* read where the fold is known, and a view asking one nothing renders is refused there, by name.
|
|
16
|
-
*/
|
|
17
|
-
export declare function viewsOf(standing: readonly string[]): ReadonlyMap<string, View>;
|
|
18
|
-
/**
|
|
19
|
-
* A view the wire's views/world list names writes at a world that holds no view of that name of its own: the tree's line
|
|
20
|
-
* of the name, at the shape it names. A place's own view of a shape shadows the list at that shape: own over root, one
|
|
21
|
-
* writer. Two views naming the same shape in one place is a refuse at rank, before any render.
|
|
22
|
-
*/
|
|
23
|
-
export declare const defaulted: (standing: readonly string[], view: View, own: readonly string[], tree: ReadonlyMap<string, View>) => boolean;
|
|
24
|
-
/** Shapes two standing views of one place both name: rank refuses before a render, one path, one writer. */
|
|
25
|
-
export declare function sharedShapes(standing: readonly string[]): readonly string[];
|
|
26
|
-
export declare function placesOf(standing: readonly string[], view: View): readonly string[];
|
|
27
|
-
export {};
|
package/dist/fold/wire.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { RoleClaim } from '@lapxo/topos/wire';
|
|
2
|
-
export type CoordinateRole = 'source' | 'derived' | 'observed' | 'foreign';
|
|
3
|
-
export declare const namesAt: (at: string, name: string) => boolean;
|
|
4
|
-
export declare const roleAt: (at: string, claims: readonly RoleClaim[]) => CoordinateRole;
|
|
5
|
-
/** The standing line that names a wire list, under `wire/`, else the older `audit/wire/` for one era. A word the wire names is read from the lock by the list it belongs to: the instrument asks for one and refuses if the lock no longer lists it, so an alphabet is never frozen here and a family that moves is a refusal, not a silence. */
|
|
6
|
-
export declare const wireLine: (standing: readonly string[], list: string) => string | undefined;
|
|
7
|
-
export declare function wordsOf(standing: readonly string[], list: string): readonly string[];
|
|
8
|
-
/**
|
|
9
|
-
* A word asked in its eras, newest first, is read in the lock it is asked of: the first era that lock's own wire lists
|
|
10
|
-
* is the word there, so a place published under an older wire is read in the word it was written in, and none is a
|
|
11
|
-
* refusal. A list that names exactly one word is read as that word; a list that names none, or more than one, is a
|
|
12
|
-
* refusal. The older `audit/wire/` prefix is one era of `wire/`, not a fall-back to another lock.
|
|
13
|
-
*/
|
|
14
|
-
export declare function wordOf(standing: readonly string[], list: string, name: string | readonly string[]): string;
|
|
15
|
-
export declare function theWord(standing: readonly string[], list: string): string;
|
|
16
|
-
export declare const wordOn: (standing: readonly string[], list: string, fallback: readonly string[]) => string;
|
|
17
|
-
/** A named word, read from the standing that lists it, else from the fallback lock. */
|
|
18
|
-
export declare function wordFrom(standing: readonly string[], list: string, name: string | readonly string[], fallback: readonly string[]): string;
|
|
19
|
-
export declare const said: (lines: readonly string[], scope: string) => readonly string[];
|
package/dist/fold/zoom.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A line of the tree seen from inside a place: every path it names under the place is read from the place's root, and
|
|
3
|
-
* a path outside it is dropped, since the place alone cannot read it. The place's name drops out of the scope, the condition
|
|
4
|
-
* and the policy a line is held at, and a cone names the coordinates it covers the same way; the place itself is `./`. In a
|
|
5
|
-
* scope the name drops out of the step after the family, or after the one word that qualifies it (prose/en, hazard/<kind>,
|
|
6
|
-
* source/<measure>); a deeper step that spells it is inside a name, such as a package a module imports, and stays.
|
|
7
|
-
*/
|
|
8
|
-
export declare function zoomed(line: string, place: string): string;
|
|
9
|
-
/** The lines of each place's own lock that still name the place: seen from inside a place, no scope carries its name. */
|
|
10
|
-
export declare function namingTheirPlace(root: string): number;
|
|
11
|
-
/**
|
|
12
|
-
* What a zoom rewrote that is not the place: over each place the lock publishes, every scope and condition of the tree
|
|
13
|
-
* and of the place's receipts that spells the place as a step, zoomed from inside it. Losing the place's step after the
|
|
14
|
-
* family, or after the one word qualifying it, is the zoom; any other rewrite took a value for the place.
|
|
15
|
-
*/
|
|
16
|
-
export declare function zoomedOutsideThePlace(root: string, standing: readonly string[]): number;
|
package/dist/host/act-cost.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/** A sequence of declared acts is not one act. Unpartitioned host work still has a cost. */
|
|
2
|
-
export declare class ActCosts {
|
|
3
|
-
private readonly began;
|
|
4
|
-
private occupied;
|
|
5
|
-
private largest;
|
|
6
|
-
private depth;
|
|
7
|
-
private readonly clock;
|
|
8
|
-
constructor(clock?: () => number);
|
|
9
|
-
begin(): () => void;
|
|
10
|
-
measure<T>(work: () => T): T;
|
|
11
|
-
seconds(): number;
|
|
12
|
-
}
|
|
13
|
-
export declare const actCosts: ActCosts;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The act of signing: canonical bytes, a private key and the algorithm the wire names for this era in; a signature
|
|
3
|
-
* value out, whose form is the algebra's. The host runs the act and knows no name: which algorithms a signature may
|
|
4
|
-
* carry, this era's and the ones the lines before it were signed under, is told by whoever read the lock.
|
|
5
|
-
*/
|
|
6
|
-
export declare const signBytes: (bytes: string, privateKeyPem: string, algorithm: string) => string;
|
|
7
|
-
export declare function verifyBytes(bytes: string, publicKeyPem: string, signature: string, admitted: readonly string[]): boolean;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/** Existing admission-snapshot authentication and folded live projection.
|
|
2
|
-
* Consumer configuration evidence only; never a new authority lock. */
|
|
3
|
-
export declare function authenticatedRootStanding(root: string): readonly string[];
|
|
4
|
-
/** Legacy Root lines remain unchanged; contextual public output has its own carrier. */
|
|
5
|
-
export declare const authenticatedStanding: typeof authenticatedRootStanding;
|
package/dist/host/archive.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export interface Member {
|
|
2
|
-
readonly name: string;
|
|
3
|
-
readonly bytes: Uint8Array;
|
|
4
|
-
}
|
|
5
|
-
/** POSIX archive coordinates; normalization cannot make two members share one destination. */
|
|
6
|
-
export declare function archiveCoordinate(name: string): string;
|
|
7
|
-
/** The gzip/POSIX tar adapter reads regular files, directories and PAX attributes, or rejects the whole archive. */
|
|
8
|
-
export declare function members(archive: Uint8Array): readonly Member[];
|
|
9
|
-
/** Existing links or files are never followed or overwritten by extraction. */
|
|
10
|
-
export declare function archiveDestination(into: string, name: string): string;
|
|
11
|
-
export declare function unpack(archive: Uint8Array, into: string): readonly string[];
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { ReaderLifetime } from '@lapxo/topos/wire';
|
|
2
|
-
import type { SpawnSyncOptionsWithStringEncoding } from 'node:child_process';
|
|
3
|
-
import type { Request, Response } from '@lapxo/topos/contract';
|
|
4
|
-
/** Operational process failure, distinct from a valid contract refusal or abstention. */
|
|
5
|
-
export declare class CapsuleProcessError extends Error {
|
|
6
|
-
readonly stdout: string;
|
|
7
|
-
readonly stderr: string;
|
|
8
|
-
readonly status: number | null;
|
|
9
|
-
readonly signal: NodeJS.Signals | null;
|
|
10
|
-
readonly cause: unknown;
|
|
11
|
-
constructor(reason: string, result: {
|
|
12
|
-
stdout?: string;
|
|
13
|
-
stderr?: string;
|
|
14
|
-
status: number | null;
|
|
15
|
-
signal: NodeJS.Signals | null;
|
|
16
|
-
error?: unknown;
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
export declare function validResponse(value: unknown, request: Request): value is Response;
|
|
20
|
-
/** Last-line JSON is the wire framing. No partial batch, failed exit or synthetic missing response is accepted. */
|
|
21
|
-
export declare function executeCapsule(command: string, args: readonly string[], requests: readonly Request[], limits?: Pick<SpawnSyncOptionsWithStringEncoding, 'timeout' | 'maxBuffer' | 'env' | 'cwd'>, lifetime?: ReaderLifetime): readonly Response[];
|
package/dist/host/capsule.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { ReaderReference } from '@lapxo/topos/wire';
|
|
2
|
-
import type { Declaration } from '@lapxo/topos/capsule';
|
|
3
|
-
import type { Request, Response } from '@lapxo/topos/contract';
|
|
4
|
-
export interface Capsule {
|
|
5
|
-
readonly selectedWorld?: {
|
|
6
|
-
readonly standing: import("@lapxo/topos/standing").StandingTopos;
|
|
7
|
-
readonly offer: string;
|
|
8
|
-
};
|
|
9
|
-
readonly selection?: string;
|
|
10
|
-
readonly digest: string;
|
|
11
|
-
readonly declaration: Declaration;
|
|
12
|
-
readonly lines: readonly string[];
|
|
13
|
-
readonly ask: (requests: readonly Request[], reader?: ReaderReference) => readonly (Response | undefined)[];
|
|
14
|
-
}
|
|
15
|
-
/** A blob is loaded once in an act. A later ask for the same digest reads that capsule, and does not hash or unpack it again. */
|
|
16
|
-
export declare function capsuleAt(digest: string, entry: string, store?: string): Capsule | undefined;
|
|
17
|
-
export declare const childFlags: (argv?: readonly string[]) => readonly string[];
|
|
18
|
-
/** The host may supply its cache store independently of the located executable. */
|
|
19
|
-
export declare function locatedAt(tree: string, place: string, cacheStore?: string): Capsule | undefined;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const withContentStore: <T>(store: string, run: () => T, policy?: () => readonly string[]) => T;
|
|
2
|
-
export declare const contentPolicy: () => readonly string[];
|
|
3
|
-
export declare const contentStore: () => string;
|
|
4
|
-
/** Only immutable verified bytes may be shared with the instrument. Local corruption is never hidden by fallback. */
|
|
5
|
-
export declare function verifiedContent(digest: string, store?: string, instrument?: string): {
|
|
6
|
-
readonly bytes: Uint8Array;
|
|
7
|
-
readonly path: string;
|
|
8
|
-
};
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { type PlaceReceipt } from '@lapxo/topos/core';
|
|
2
|
-
export declare function hasContextualPlace(root: string): boolean;
|
|
3
|
-
/** Exact selected SDK frame plus complete pre-signed receiver statements. No
|
|
4
|
-
* executable/verifier/epoch selection can be supplied by this envelope. */
|
|
5
|
-
export declare function landContextualPlace(root: string, file: string): Promise<import("./ports/place-act.ts").PlaceActBundle & {
|
|
6
|
-
readonly kind: "landed" | "once";
|
|
7
|
-
readonly identity: string;
|
|
8
|
-
}>;
|
|
9
|
-
export declare function contextualAct(root: string, identity: string): {
|
|
10
|
-
profile: string;
|
|
11
|
-
identity: string;
|
|
12
|
-
context: string;
|
|
13
|
-
receipts: readonly PlaceReceipt[];
|
|
14
|
-
contexts: {
|
|
15
|
-
identity: string;
|
|
16
|
-
context: string;
|
|
17
|
-
receipts: readonly PlaceReceipt[];
|
|
18
|
-
authority: ReturnType<(encoded: string) => {
|
|
19
|
-
anchor: import("@lapxo/topos/wire").Signer;
|
|
20
|
-
history: readonly string[];
|
|
21
|
-
checkpoint: string;
|
|
22
|
-
}>;
|
|
23
|
-
}[];
|
|
24
|
-
} | undefined;
|
|
25
|
-
/** Carriers retain exact originals and authenticated context/receipts. Each
|
|
26
|
-
* namespace folds independently; labels assert no statistical independence. */
|
|
27
|
-
export declare function contextualStanding(root: string): {
|
|
28
|
-
profile: string;
|
|
29
|
-
root: readonly string[];
|
|
30
|
-
legacyPlaces: {
|
|
31
|
-
namespace: string;
|
|
32
|
-
place: string;
|
|
33
|
-
standing: string[];
|
|
34
|
-
history: readonly string[];
|
|
35
|
-
}[];
|
|
36
|
-
contexts: {
|
|
37
|
-
identity: string;
|
|
38
|
-
context: string;
|
|
39
|
-
receipts: readonly PlaceReceipt[];
|
|
40
|
-
authority: {
|
|
41
|
-
anchor: import("@lapxo/topos/wire").Signer;
|
|
42
|
-
history: readonly string[];
|
|
43
|
-
checkpoint: string;
|
|
44
|
-
};
|
|
45
|
-
}[];
|
|
46
|
-
places: {
|
|
47
|
-
namespace: string;
|
|
48
|
-
place: string;
|
|
49
|
-
standing: string[];
|
|
50
|
-
retracted: readonly string[];
|
|
51
|
-
superseded: readonly string[];
|
|
52
|
-
forks: readonly import("../fold/claims.ts").Fork[];
|
|
53
|
-
contexts: {
|
|
54
|
-
identity: string;
|
|
55
|
-
context: string;
|
|
56
|
-
receipts: readonly PlaceReceipt[];
|
|
57
|
-
}[];
|
|
58
|
-
}[];
|
|
59
|
-
};
|
package/dist/host/digest.d.ts
DELETED
package/dist/host/hash.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type Hash } from 'node:crypto';
|
|
2
|
-
/** SHA-256 byte hashing for host formats that explicitly name this algorithm. */
|
|
3
|
-
export declare const sha: (bytes: string | Uint8Array) => string;
|
|
4
|
-
/** Typed digest spelling shared by fixed host boundaries; hashes identical bytes. */
|
|
5
|
-
export declare const sha256: (bytes: string | Uint8Array) => string;
|
|
6
|
-
/** Length-delimited UTF-8 fields for existing host history identities. */
|
|
7
|
-
export declare function hashText(hash: Hash, value: string): void;
|
|
8
|
-
/** Exact typed SHA-256 spelling used by fixed host declarations. */
|
|
9
|
-
export declare const isSha256: (value: unknown) => value is string;
|
package/dist/host/io.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/** The host's node surface: kernel folders import here, never `node:`. World reads still go through observeFile. */
|
|
2
|
-
export { spawn, spawnSync } from 'node:child_process';
|
|
3
|
-
export { createHash } from 'node:crypto';
|
|
4
|
-
export { appendFileSync, closeSync, existsSync, linkSync, lstatSync, mkdirSync, mkdtempSync, openSync, readFileSync, readSync, readdirSync, realpathSync, renameSync, rmSync, statSync, writeFileSync, } from 'node:fs';
|
|
5
|
-
export { tmpdir } from 'node:os';
|
|
6
|
-
export { basename, dirname, join, relative, resolve } from 'node:path';
|
|
7
|
-
export { fileURLToPath } from 'node:url';
|
|
8
|
-
export { parentPort, workerData } from 'node:worker_threads';
|
|
9
|
-
export { gzipSync } from 'node:zlib';
|
|
10
|
-
/** UTF-8 encoding for host byte formats. */
|
|
11
|
-
export declare const encodeUTF8: (text: string) => Uint8Array;
|
package/dist/host/lifetime.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/host/located.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/** The opened descriptor is bounded before allocation/read. Growth after fstat
|
|
2
|
-
* is detected with one sentinel byte; no oversized buffer reaches decode/hash.
|
|
3
|
-
*/
|
|
4
|
-
export declare function readBoundedFile(path: string, remaining: number, coordinate: string): Buffer;
|
|
5
|
-
export declare function readBoundedBatch(paths: readonly {
|
|
6
|
-
path: string;
|
|
7
|
-
coordinate: string;
|
|
8
|
-
}[], budget: number): readonly Buffer[];
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { CommandPort, CommandLot } from '@lapxo/topos/contract';
|
|
2
|
-
type Phase = 'selection' | 'help' | 'check' | 'preview' | 'sign' | 'act';
|
|
3
|
-
export interface Invocation {
|
|
4
|
-
readonly command: string;
|
|
5
|
-
readonly args: readonly string[];
|
|
6
|
-
readonly cwd: string;
|
|
7
|
-
readonly hostEnvelope?: Uint8Array;
|
|
8
|
-
readonly envelopeBytes?: number;
|
|
9
|
-
}
|
|
10
|
-
export interface HostBoundary {
|
|
11
|
-
readonly admitsDeclaration: (port: CommandPort) => boolean;
|
|
12
|
-
readonly covers: (coordinate: string) => boolean;
|
|
13
|
-
readonly verifies: (digest: string) => boolean;
|
|
14
|
-
/** Host chooses a verified invocation. A capsule cannot supply a program. */
|
|
15
|
-
readonly resolve: (port: CommandPort) => Invocation;
|
|
16
|
-
/** Independent loader-closure proof, not a digest-list membership test. */
|
|
17
|
-
readonly loaderClosure: (port: CommandPort, invocation: Invocation) => 'verified' | 'unmeasured';
|
|
18
|
-
}
|
|
19
|
-
/** macOS prototype: bounded async invocation with POSIX child-group cancellation.
|
|
20
|
-
* No acquisition or persistence on prospective paths; no partial success frames.
|
|
21
|
-
* Host callbacks are trusted admission/verification operations, never signatures
|
|
22
|
-
* or authority assertions supplied by the command's own output. */
|
|
23
|
-
export declare function executeLot(options: {
|
|
24
|
-
port: CommandPort;
|
|
25
|
-
lot: CommandLot;
|
|
26
|
-
host: HostBoundary;
|
|
27
|
-
phase: Phase;
|
|
28
|
-
environment: Readonly<Record<string, string>>;
|
|
29
|
-
signal?: AbortSignal;
|
|
30
|
-
accepts: (member: unknown, index: number) => boolean;
|
|
31
|
-
}): Promise<{
|
|
32
|
-
readonly members: readonly unknown[];
|
|
33
|
-
readonly stderr: string;
|
|
34
|
-
readonly invocations: 1;
|
|
35
|
-
}>;
|
|
36
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|