@amalgm/live 0.2.81-main.41784750721 → 0.2.81-main.41794545655
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/PURPOSE.md +1 -2
- package/dist/apply/showing.d.ts +6 -6
- package/dist/apply/showing.js +6 -6
- package/dist/contracts/index.d.ts +2 -4
- package/dist/contracts/index.d.ts.map +1 -1
- package/dist/contracts/index.js +2 -4
- package/dist/contracts/index.js.map +1 -1
- package/dist/detection/adapter-contract.d.ts.map +1 -1
- package/dist/detection/adapter-contract.js +1 -1
- package/dist/detection/adapter-contract.js.map +1 -1
- package/dist/detection/content.d.ts +0 -15
- package/dist/detection/content.d.ts.map +1 -1
- package/dist/detection/content.js +0 -22
- package/dist/detection/content.js.map +1 -1
- package/dist/drive/contracts.d.ts +5 -0
- package/dist/drive/contracts.d.ts.map +1 -1
- package/dist/drive/contracts.js.map +1 -1
- package/dist/drive/drive.d.ts +12 -1
- package/dist/drive/drive.d.ts.map +1 -1
- package/dist/drive/drive.js +14 -1
- package/dist/drive/drive.js.map +1 -1
- package/dist/drive/listing.d.ts +3 -1
- package/dist/drive/listing.d.ts.map +1 -1
- package/dist/drive/listing.js +17 -6
- package/dist/drive/listing.js.map +1 -1
- package/dist/drive/where.d.ts +9 -0
- package/dist/drive/where.d.ts.map +1 -1
- package/dist/drive/where.js +26 -0
- package/dist/drive/where.js.map +1 -1
- package/dist/entities/graph-head.d.ts.map +1 -1
- package/dist/entities/graph-head.js +1 -19
- package/dist/entities/graph-head.js.map +1 -1
- package/dist/files/commands.d.ts +16 -7
- package/dist/files/commands.d.ts.map +1 -1
- package/dist/files/commands.js +10 -5
- package/dist/files/commands.js.map +1 -1
- package/dist/files/computer-address.d.ts +11 -0
- package/dist/files/computer-address.d.ts.map +1 -0
- package/dist/files/computer-address.js +45 -0
- package/dist/files/computer-address.js.map +1 -0
- package/dist/files/index.d.ts +1 -0
- package/dist/files/index.d.ts.map +1 -1
- package/dist/files/index.js +1 -0
- package/dist/files/index.js.map +1 -1
- package/dist/registration/home-layout.d.ts +9 -4
- package/dist/registration/home-layout.d.ts.map +1 -1
- package/dist/registration/home-layout.js +10 -5
- package/dist/registration/home-layout.js.map +1 -1
- package/dist-cjs/apply/showing.js +6 -6
- package/dist-cjs/contracts/index.js +2 -4
- package/dist-cjs/contracts/index.js.map +1 -1
- package/dist-cjs/detection/adapter-contract.js +6 -6
- package/dist-cjs/detection/adapter-contract.js.map +1 -1
- package/dist-cjs/detection/content.js +0 -23
- package/dist-cjs/detection/content.js.map +1 -1
- package/dist-cjs/drive/contracts.js.map +1 -1
- package/dist-cjs/drive/drive.js +13 -0
- package/dist-cjs/drive/drive.js.map +1 -1
- package/dist-cjs/drive/listing.js +17 -6
- package/dist-cjs/drive/listing.js.map +1 -1
- package/dist-cjs/drive/where.js +27 -0
- package/dist-cjs/drive/where.js.map +1 -1
- package/dist-cjs/entities/graph-head.js +1 -19
- package/dist-cjs/entities/graph-head.js.map +1 -1
- package/dist-cjs/files/commands.js +9 -4
- package/dist-cjs/files/commands.js.map +1 -1
- package/dist-cjs/files/computer-address.js +49 -0
- package/dist-cjs/files/computer-address.js.map +1 -0
- package/dist-cjs/files/index.js +4 -1
- package/dist-cjs/files/index.js.map +1 -1
- package/dist-cjs/registration/home-layout.js +11 -5
- package/dist-cjs/registration/home-layout.js.map +1 -1
- package/package.json +4 -4
- package/dist/contracts/frames/tunnel.d.ts +0 -77
- package/dist/contracts/frames/tunnel.d.ts.map +0 -1
- package/dist/contracts/frames/tunnel.js +0 -54
- package/dist/contracts/frames/tunnel.js.map +0 -1
- package/dist-cjs/contracts/frames/tunnel.js +0 -59
- package/dist-cjs/contracts/frames/tunnel.js.map +0 -1
package/PURPOSE.md
CHANGED
|
@@ -624,8 +624,7 @@ to the SDK is a bug (axiom 3).
|
|
|
624
624
|
|
|
625
625
|
```
|
|
626
626
|
src/contracts/ value types + validators: non-throwing checks, content
|
|
627
|
-
manifests, the sealed-content envelope
|
|
628
|
-
runtime-gateway tunnel frames.
|
|
627
|
+
manifests, and the sealed-content envelope.
|
|
629
628
|
src/records/ entity record contracts, the event-driven Send/Receive rail,
|
|
630
629
|
and the local-outbox, authority, and per-entity inbox laws.
|
|
631
630
|
src/entities/ the entity model's rule surface: the six-field record,
|
package/dist/apply/showing.d.ts
CHANGED
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
*
|
|
38
38
|
* A root places some of its entries whatever their unit. A home places
|
|
39
39
|
* what login places (registration/home-layout.ts placedAtHome): the
|
|
40
|
-
* runtime's own entries whole, and the projects
|
|
41
|
-
* result at or beneath one of the runtime's own entries
|
|
42
|
-
* folder that arrives enters without
|
|
43
|
-
* listed. Any other root, such as a workspace a
|
|
44
|
-
* places only its sharing policy at its top,
|
|
45
|
-
* there. `placedInRoot` asks this of each member of an Enter too.
|
|
40
|
+
* runtime's own entries whole, and the projects and computers folders bare.
|
|
41
|
+
* So in a home a result at or beneath one of the runtime's own entries
|
|
42
|
+
* enters, a projects or computers folder that arrives enters without what it
|
|
43
|
+
* holds, and anything else is listed. Any other root, such as a workspace a
|
|
44
|
+
* home's reference leads to, places only its sharing policy at its top,
|
|
45
|
+
* which Detect reads from disk there. `placedInRoot` asks this of each member of an Enter too.
|
|
46
46
|
*
|
|
47
47
|
* A construct is its own root and its own authority, and has no ground.
|
|
48
48
|
* Holding its line is this computer's selection of it, so every active
|
package/dist/apply/showing.js
CHANGED
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
*
|
|
38
38
|
* A root places some of its entries whatever their unit. A home places
|
|
39
39
|
* what login places (registration/home-layout.ts placedAtHome): the
|
|
40
|
-
* runtime's own entries whole, and the projects
|
|
41
|
-
* result at or beneath one of the runtime's own entries
|
|
42
|
-
* folder that arrives enters without
|
|
43
|
-
* listed. Any other root, such as a workspace a
|
|
44
|
-
* places only its sharing policy at its top,
|
|
45
|
-
* there. `placedInRoot` asks this of each member of an Enter too.
|
|
40
|
+
* runtime's own entries whole, and the projects and computers folders bare.
|
|
41
|
+
* So in a home a result at or beneath one of the runtime's own entries
|
|
42
|
+
* enters, a projects or computers folder that arrives enters without what it
|
|
43
|
+
* holds, and anything else is listed. Any other root, such as a workspace a
|
|
44
|
+
* home's reference leads to, places only its sharing policy at its top,
|
|
45
|
+
* which Detect reads from disk there. `placedInRoot` asks this of each member of an Enter too.
|
|
46
46
|
*
|
|
47
47
|
* A construct is its own root and its own authority, and has no ground.
|
|
48
48
|
* Holding its line is this computer's selection of it, so every active
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The contracts layer: the wire shapes and validators a host still speaks —
|
|
3
|
-
* non-throwing validation, immutable chunked content, the sealed-content
|
|
4
|
-
* protection envelope
|
|
5
|
-
* performs I/O or holds state.
|
|
3
|
+
* non-throwing validation, immutable chunked content, and the sealed-content
|
|
4
|
+
* protection envelope. Nothing in here performs I/O or holds state.
|
|
6
5
|
*/
|
|
7
6
|
export * from './validate.js';
|
|
8
7
|
export * from './content.js';
|
|
9
8
|
export * from './protection.js';
|
|
10
|
-
export * from './frames/tunnel.js';
|
|
11
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/contracts/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/contracts/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC"}
|
package/dist/contracts/index.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The contracts layer: the wire shapes and validators a host still speaks —
|
|
3
|
-
* non-throwing validation, immutable chunked content, the sealed-content
|
|
4
|
-
* protection envelope
|
|
5
|
-
* performs I/O or holds state.
|
|
3
|
+
* non-throwing validation, immutable chunked content, and the sealed-content
|
|
4
|
+
* protection envelope. Nothing in here performs I/O or holds state.
|
|
6
5
|
*/
|
|
7
6
|
export * from './validate.js';
|
|
8
7
|
export * from './content.js';
|
|
9
8
|
export * from './protection.js';
|
|
10
|
-
export * from './frames/tunnel.js';
|
|
11
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/contracts/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/contracts/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter-contract.d.ts","sourceRoot":"","sources":["../../src/detection/adapter-contract.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"adapter-contract.d.ts","sourceRoot":"","sources":["../../src/detection/adapter-contract.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAGnF,MAAM,MAAM,IAAI,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAC;AAE3F,gEAAgE;AAChE,eAAO,MAAM,KAAK,EAAE,SAAS,IAAI,EAE/B,CAAC;AAEH;;;;;;;;;;GAUG;AACH,MAAM,MAAM,YAAY,GACpB;IACA,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC;IAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,C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,6 +32,7 @@
|
|
|
32
32
|
* rail earns a socket only when a real consumer proves that
|
|
33
33
|
* behavior differs by type — never for symmetry.
|
|
34
34
|
*/
|
|
35
|
+
import { isRecord } from '../contracts/validate.js';
|
|
35
36
|
/** The seven rails, declared once, frozen, in journey order. */
|
|
36
37
|
export const RAILS = Object.freeze([
|
|
37
38
|
'watch', 'detect', 'record', 'send', 'receive', 'apply', 'verify',
|
|
@@ -54,7 +55,6 @@ export const SOCKETS = Object.freeze({
|
|
|
54
55
|
* unchanged when lawful.
|
|
55
56
|
*/
|
|
56
57
|
export function assertAdapter(adapter) {
|
|
57
|
-
const isRecord = (value) => typeof value === 'object' && value !== null;
|
|
58
58
|
const where = isRecord(adapter) && typeof adapter['name'] === 'string' && adapter['name']
|
|
59
59
|
? `adapter ${JSON.stringify(adapter['name'])}` : 'adapter';
|
|
60
60
|
if (!isRecord(adapter) || !Object.isFrozen(adapter)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter-contract.js","sourceRoot":"","sources":["../../src/detection/adapter-contract.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;
|
|
1
|
+
{"version":3,"file":"adapter-contract.js","sourceRoot":"","sources":["../../src/detection/adapter-contract.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAGH,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAIpD,gEAAgE;AAChE,MAAM,CAAC,MAAM,KAAK,GAAoB,MAAM,CAAC,MAAM,CAAC;IAClD,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ;CAClE,CAAC,CAAC;AA8BH;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,OAAO,GAAuD,MAAM,CAAC,MAAM,CAAC;IACvF,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,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AChC,IAAI,MAAM,EAAE,CAAC;gBACX,MAAM,IAAI,KAAK,CAAC,eAAe,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,uBAAuB,MAAM,CAAC,IAAI,QAAQ,OAAO,CAAC,IAAI,yBAAyB,CAAC,CAAC;YACtI,CAAC;YACD,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAC5B,CAAC;IACH,CAAC;IACD,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;YACtB,MAAM,IAAI,KAAK,CAAC,eAAe,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,0CAA0C,CAAC,CAAC;QACjG,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -1,19 +1,7 @@
|
|
|
1
1
|
/** Text replay: the one rule choosing a byte splice or the whole-result
|
|
2
2
|
* snapshot, and the one splice every host runs on an exact base. */
|
|
3
|
-
import type { ContentManifest } from '../contracts/content.js';
|
|
4
3
|
import type { Sha256Hex } from '../entities/types.js';
|
|
5
|
-
import type { TransferArtifact } from '../transfer/artifacts.js';
|
|
6
4
|
import { type TextReplay, type TextSplice } from './record-proposal.js';
|
|
7
|
-
export interface CapturedArtifact {
|
|
8
|
-
readonly artifact: TransferArtifact;
|
|
9
|
-
/** The exact settled bytes Detection already read; the cache seals these. */
|
|
10
|
-
readonly bytes: Uint8Array;
|
|
11
|
-
readonly manifest: ContentManifest;
|
|
12
|
-
}
|
|
13
|
-
export interface CapturedContent<Replay> {
|
|
14
|
-
readonly replay: Replay;
|
|
15
|
-
readonly cargo: CapturedArtifact;
|
|
16
|
-
}
|
|
17
5
|
/** The smallest single replacement span that transforms base bytes to result. */
|
|
18
6
|
export declare function textSplice(base: Uint8Array, result: Uint8Array): TextSplice;
|
|
19
7
|
export interface TextReplayInput {
|
|
@@ -34,9 +22,6 @@ export declare function textReplay(input: TextReplayInput, sha256Hex: Sha256Hex)
|
|
|
34
22
|
/** A whole-result text replay. It carries no bytes: Send moves the result by
|
|
35
23
|
* its content head, so a snapshot needs no read of it. */
|
|
36
24
|
export declare function textSnapshot(basePayloadVersion: string | null, resultPayloadVersion: string): TextReplay;
|
|
37
|
-
/** Text capture with its sealed snapshot cargo: null when the bytes did not
|
|
38
|
-
* change. */
|
|
39
|
-
export declare function captureTextChange(entityId: string, base: Uint8Array | null, result: Uint8Array, sha256Hex: Sha256Hex): CapturedContent<TextReplay> | null;
|
|
40
25
|
/** Replay one text splice on its exact base: the result bytes, or null when
|
|
41
26
|
* the base or the result is not the one the record names. Null sends the
|
|
42
27
|
* caller to the record's snapshot; a splice is a shortcut, never truth. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../src/detection/content.ts"],"names":[],"mappings":"AAAA;oEACoE;AAEpE,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../src/detection/content.ts"],"names":[],"mappings":"AAAA;oEACoE;AAEpE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAkB,KAAK,UAAU,EAAE,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAExF,iFAAiF;AACjF,wBAAgB,UAAU,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,GAAG,UAAU,CAgB3E;AAED,MAAM,WAAW,eAAe;IAC9B,2EAA2E;IAC3E,QAAQ,CAAC,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3C,4EAA4E;IAC5E,QAAQ,CAAC,SAAS,EAAE,UAAU,GAAG,IAAI,CAAC;IACtC,QAAQ,CAAC,oBAAoB,EAAE,MAAM,CAAC;IACtC,QAAQ,CAAC,WAAW,EAAE,UAAU,CAAC;CAClC;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,SAAS,GAAG,UAAU,CAkBnF;AAED;0DAC0D;AAC1D,wBAAgB,YAAY,CAAC,kBAAkB,EAAE,MAAM,GAAG,IAAI,EAAE,oBAAoB,EAAE,MAAM,GAAG,UAAU,CAQxG;AAED;;2EAE2E;AAC3E,wBAAgB,UAAU,CACxB,IAAI,EAAE,UAAU,EAChB,QAAQ,EAAE;IAAE,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAA;CAAE,EAC7E,oBAAoB,EAAE,MAAM,EAC5B,SAAS,EAAE,SAAS,GACnB,UAAU,GAAG,IAAI,CAYnB"}
|
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
/** Text replay: the one rule choosing a byte splice or the whole-result
|
|
2
2
|
* snapshot, and the one splice every host runs on an exact base. */
|
|
3
|
-
import { deriveUploadManifest } from '../transfer/upload.js';
|
|
4
3
|
import { textReplayBase } from './record-proposal.js';
|
|
5
|
-
const capturedText = (entityId, input, sha256Hex) => {
|
|
6
|
-
const bytes = input.slice();
|
|
7
|
-
const artifact = { entityId, entityType: 'file.text', kind: 'file', contentHash: sha256Hex(bytes) };
|
|
8
|
-
return Object.freeze({
|
|
9
|
-
artifact: Object.freeze(artifact),
|
|
10
|
-
bytes,
|
|
11
|
-
manifest: deriveUploadManifest(artifact, bytes, sha256Hex),
|
|
12
|
-
});
|
|
13
|
-
};
|
|
14
4
|
/** The smallest single replacement span that transforms base bytes to result. */
|
|
15
5
|
export function textSplice(base, result) {
|
|
16
6
|
let prefix = 0;
|
|
@@ -66,18 +56,6 @@ export function textSnapshot(basePayloadVersion, resultPayloadVersion) {
|
|
|
66
56
|
delta: null,
|
|
67
57
|
});
|
|
68
58
|
}
|
|
69
|
-
/** Text capture with its sealed snapshot cargo: null when the bytes did not
|
|
70
|
-
* change. */
|
|
71
|
-
export function captureTextChange(entityId, base, result, sha256Hex) {
|
|
72
|
-
const cargo = capturedText(entityId, result, sha256Hex);
|
|
73
|
-
const basePayloadVersion = base === null ? null : sha256Hex(base);
|
|
74
|
-
if (basePayloadVersion === cargo.artifact.contentHash)
|
|
75
|
-
return null;
|
|
76
|
-
const replay = textReplay({
|
|
77
|
-
basePayloadVersion, baseBytes: base, resultPayloadVersion: cargo.artifact.contentHash, resultBytes: result,
|
|
78
|
-
}, sha256Hex);
|
|
79
|
-
return Object.freeze({ replay, cargo });
|
|
80
|
-
}
|
|
81
59
|
/** Replay one text splice on its exact base: the result bytes, or null when
|
|
82
60
|
* the base or the result is not the one the record names. Null sends the
|
|
83
61
|
* caller to the record's snapshot; a splice is a shortcut, never truth. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.js","sourceRoot":"","sources":["../../src/detection/content.ts"],"names":[],"mappings":"AAAA;oEACoE;
|
|
1
|
+
{"version":3,"file":"content.js","sourceRoot":"","sources":["../../src/detection/content.ts"],"names":[],"mappings":"AAAA;oEACoE;AAGpE,OAAO,EAAE,cAAc,EAAoC,MAAM,sBAAsB,CAAC;AAExF,iFAAiF;AACjF,MAAM,UAAU,UAAU,CAAC,IAAgB,EAAE,MAAkB;IAC7D,IAAI,MAAM,GAAG,CAAC,CAAC;IACf,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC;IAC5D,OAAO,MAAM,GAAG,MAAM,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,MAAM,CAAC,MAAM,CAAC;QAAE,MAAM,IAAI,CAAC,CAAC;IACvE,IAAI,MAAM,GAAG,CAAC,CAAC;IACf,OAAO,MAAM,GAAG,MAAM,GAAG,MAAM;WAC1B,IAAI,CAAC,IAAI,CAAC,UAAU,GAAG,MAAM,GAAG,CAAC,CAAC,KAAK,MAAM,CAAC,MAAM,CAAC,UAAU,GAAG,MAAM,GAAG,CAAC,CAAC,EAAE,CAAC;QAC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O,SAAS,CAAC,MAAM,CAAC,KAAK,oBAAoB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;AACpE,CAAC"}
|
|
@@ -63,6 +63,11 @@ export interface Root {
|
|
|
63
63
|
export interface RootsPort {
|
|
64
64
|
/** The root the drive stands over: the person's home, their core root. */
|
|
65
65
|
readonly home: Root;
|
|
66
|
+
/** This computer's own folder in the home's computers folder
|
|
67
|
+
* (`files/<computer>`), or null before it has one. Its ground already
|
|
68
|
+
* stands where it lives on this computer, so the drive never shows it a
|
|
69
|
+
* second time. */
|
|
70
|
+
readonly computer: string | null;
|
|
66
71
|
/** The root a reference leads to, or null when this person's accepted
|
|
67
72
|
* graph holds no such root. Asked on every walk that reaches the
|
|
68
73
|
* reference, so a host answers repeat asks from what it already holds. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../../src/drive/contracts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAEvF;;2DAE2D;AAC3D,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC;IAC9B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAC3C,qFAAqF;IACrF,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC;AAED;;2CAE2C;AAC3C,MAAM,WAAW,OAAO;IACtB,qCAAqC;IACrC,IAAI,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IAClD,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,GAAG,UAAU;CAQpD;AAMD;;wEAEwE;AACxE,MAAM,MAAM,YAAY,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;AAEnD,wEAAwE;AACxE,MAAM,WAAW,KAAK;IACpB,GAAG,IAAI,MAAM,CAAC;CACf;AAED,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC;IAC1B,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;IACtB,QAAQ,CAAC,QAAQ,CAAC,EAAE,YAAY,CAAC;CAClC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../src/drive/contracts.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../src/drive/contracts.ts"],"names":[],"mappings":"AAyHA;iEACiE;AACjE,MAAM,OAAO,UAAW,SAAQ,KAAK;IAC1B,IAAI,CAAuB;IACpC,oCAAoC;IAC3B,IAAI,CAAO;IACpB;sEACkE;IACzD,MAAM,CAAS;IAExB,YAAY,IAA0B,EAAE,OAAe,EAAE,IAAU,EAAE,SAAiB,IAAI,CAAC,IAAI;QAC7F,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;QACzB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;sDACkD;IAClD,MAAM,CAAC,IAAI,CAAC,KAAc,EAAE,IAAU;QACpC,IAAI,KAAK,YAAY,UAAU;YAAE,OAAO,KAAK,CAAC;QAC9C,MAAM,OAAO,GAAG,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,KAAkC,CAAC,CAAC,CAAC,IAAI,CAAC;QACxG,MAAM,KAAK,GAAG,OAAO,KAAK,IAAI,IAAI,OAAO,OAAO,CAAC,IAAI,KAAK,QAAQ,IAAI,aAAa,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACtG,MAAM,OAAO,GAAG,OAAO,KAAK,IAAI,IAAI,OAAO,OAAO,CAAC,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC1G,MAAM,MAAM,GAAG,KAAK,IAAI,OAAO,OAAO,CAAC,MAAM,KAAK,QAAQ,IAAI,OAAO,CAAC,MAAM,KAAK,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;QACjH,OAAO,IAAI,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,IAA4B,CAAC,CAAC,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;IACvG,CAAC;CACF;AAED,MAAM,aAAa,GAAwB,IAAI,GAAG,CAChD,CAAC,aAAa,EAAE,SAAS,EAAE,OAAO,CAAkC,CACrE,CAAC"}
|
package/dist/drive/drive.d.ts
CHANGED
|
@@ -8,7 +8,9 @@
|
|
|
8
8
|
* writes, renames, removes, changes or follows an address touches it first,
|
|
9
9
|
* and a creation touches the address it creates at, so its ancestors stand.
|
|
10
10
|
* After a touch the shelf speaks, and the host does what it would do on any
|
|
11
|
-
* folder, on the shelf of the root the judgment names.
|
|
11
|
+
* folder, on the shelf of the root the judgment names. An operation that
|
|
12
|
+
* creates, renames, removes or changes an address asks `change` instead,
|
|
13
|
+
* which refuses an address that names no ground (`addressOnly`).
|
|
12
14
|
*/
|
|
13
15
|
import type { DrivePorts } from './contracts.js';
|
|
14
16
|
import { type Listing } from './listing.js';
|
|
@@ -30,6 +32,15 @@ export declare class Drive {
|
|
|
30
32
|
* places nothing. Rejects with a `DriveError` when a unit could not be
|
|
31
33
|
* placed; the shelf is then as it was. */
|
|
32
34
|
touch(path: readonly string[]): Promise<Touched>;
|
|
35
|
+
/** A touch for an operation that changes the address itself: a creation,
|
|
36
|
+
* rename, removal, truncation or change of its mode, owner or times. Null,
|
|
37
|
+
* placing nothing, when the address names no ground: the computers folder,
|
|
38
|
+
* the folders of an added folder's path, its reference, and the top of the
|
|
39
|
+
* root it leads into say where a folder lives on its computer, and only
|
|
40
|
+
* that computer moves it. Beneath this computer's own folder there is
|
|
41
|
+
* nothing to change: the drive never shows it. */
|
|
42
|
+
change(path: readonly string[]): Promise<Touched | null>;
|
|
43
|
+
private settle;
|
|
33
44
|
/** Placements in flight now; the activity hook hears the same count. */
|
|
34
45
|
placing(): number;
|
|
35
46
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drive.d.ts","sourceRoot":"","sources":["../../src/drive/drive.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"drive.d.ts","sourceRoot":"","sources":["../../src/drive/drive.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAW,KAAK,OAAO,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAc,KAAK,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAsB,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAE5D,MAAM,WAAW,OAAO;IACtB,8EAA8E;IAC9E,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,SAAS,OAAO,EAAE,CAAC;CACrC;AAED,qBAAa,KAAK;IAGJ,OAAO,CAAC,QAAQ,CAAC,KAAK;IAFlC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAa;gBAEX,KAAK,EAAE,UAAU;IAI9C,KAAK,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAC;IAI9C,IAAI,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC;IAI/C;;;8CAG0C;IACpC,KAAK,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC;IAItD;;;;;;sDAMkD;IAC5C,MAAM,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;YAKhD,MAAM;IAMpB,wEAAwE;IACxE,OAAO,IAAI,MAAM;CAGlB"}
|
package/dist/drive/drive.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { listing } from './listing.js';
|
|
2
2
|
import { Placements } from './placements.js';
|
|
3
|
-
import { where } from './where.js';
|
|
3
|
+
import { addressOnly, where } from './where.js';
|
|
4
4
|
export class Drive {
|
|
5
5
|
ports;
|
|
6
6
|
placements;
|
|
@@ -19,7 +19,20 @@ export class Drive {
|
|
|
19
19
|
* places nothing. Rejects with a `DriveError` when a unit could not be
|
|
20
20
|
* placed; the shelf is then as it was. */
|
|
21
21
|
async touch(path) {
|
|
22
|
+
return this.settle(path, await this.where(path));
|
|
23
|
+
}
|
|
24
|
+
/** A touch for an operation that changes the address itself: a creation,
|
|
25
|
+
* rename, removal, truncation or change of its mode, owner or times. Null,
|
|
26
|
+
* placing nothing, when the address names no ground: the computers folder,
|
|
27
|
+
* the folders of an added folder's path, its reference, and the top of the
|
|
28
|
+
* root it leads into say where a folder lives on its computer, and only
|
|
29
|
+
* that computer moves it. Beneath this computer's own folder there is
|
|
30
|
+
* nothing to change: the drive never shows it. */
|
|
31
|
+
async change(path) {
|
|
22
32
|
const before = await this.where(path);
|
|
33
|
+
return addressOnly(this.ports.roots, path, before) ? null : this.settle(path, before);
|
|
34
|
+
}
|
|
35
|
+
async settle(path, before) {
|
|
23
36
|
const placing = 'placing' in before ? before.placing : [];
|
|
24
37
|
const placed = placing.length === 0 ? [] : await this.placements.place(placing);
|
|
25
38
|
return { where: placed.length === 0 ? before : await this.where(path), placed };
|
package/dist/drive/drive.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drive.js","sourceRoot":"","sources":["../../src/drive/drive.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"drive.js","sourceRoot":"","sources":["../../src/drive/drive.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,OAAO,EAAgB,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,UAAU,EAAgB,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,KAAK,EAAc,MAAM,YAAY,CAAC;AAQ5D,MAAM,OAAO,KAAK;IAGa;IAFZ,UAAU,CAAa;IAExC,YAA6B,KAAiB;QAAjB,UAAK,GAAL,KAAK,CAAY;QAC5C,IAAI,CAAC,UAAU,GAAG,IAAI,UAAU,CAAC,KAAK,CAAC,CAAC;IAC1C,CAAC;IAED,KAAK,CAAC,IAAuB;QAC3B,OAAO,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IACvC,CAAC;IAED,IAAI,CAAC,IAAuB;QAC1B,OAAO,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IACzC,CAAC;IAED;;;8CAG0C;IAC1C,KAAK,CAAC,KAAK,CAAC,IAAuB;QACjC,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;IACnD,CAAC;IAED;;;;;;sDAMkD;IAClD,KAAK,CAAC,MAAM,CAAC,IAAuB;QAClC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACtC,OAAO,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IACxF,CAAC;IAEO,KAAK,CAAC,MAAM,CAAC,IAAuB,EAAE,MAAa;QACzD,MAAM,OAAO,GAAG,SAAS,IAAI,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;QAC1D,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAChF,OAAO,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAClF,CAAC;IAED,wEAAwE;IACxE,OAAO;QACL,OAAO,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;IACjC,CAAC;CACF"}
|
package/dist/drive/listing.d.ts
CHANGED
|
@@ -5,13 +5,15 @@ export type Listing =
|
|
|
5
5
|
* `complete` when nothing stands on the shelf, so these are the whole
|
|
6
6
|
* listing; otherwise the host lists that shelf's directory and shows these
|
|
7
7
|
* beside it. `doors` are names the map cannot describe, an unplaced
|
|
8
|
-
* repository's `.git`: listed by name, and a look at one places it.
|
|
8
|
+
* repository's `.git`: listed by name, and a look at one places it.
|
|
9
|
+
* `hidden` are shelf names the host leaves out of its listing. */
|
|
9
10
|
{
|
|
10
11
|
readonly kind: 'entries';
|
|
11
12
|
readonly root: string;
|
|
12
13
|
readonly address: readonly string[];
|
|
13
14
|
readonly entries: readonly Entry[];
|
|
14
15
|
readonly doors: readonly string[];
|
|
16
|
+
readonly hidden: readonly string[];
|
|
15
17
|
readonly complete: boolean;
|
|
16
18
|
}
|
|
17
19
|
/** Inside an unplaced repository's door: place `placing`, then list the shelf. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listing.d.ts","sourceRoot":"","sources":["../../src/drive/listing.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"listing.d.ts","sourceRoot":"","sources":["../../src/drive/listing.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAa,SAAS,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAuC,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAE7E,MAAM,MAAM,OAAO;AACjB;;;;;kEAKkE;AAChE;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,SAAS,KAAK,EAAE,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAA;CAAE;AACjO,kFAAkF;GAChF;IAAE,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,SAAS,IAAI,EAAE,CAAA;CAAE,GACnE;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAA;CAAE,GAC5B;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAC;AAEhC,wBAAsB,OAAO,CAAC,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC,CA0BzF"}
|
package/dist/drive/listing.js
CHANGED
|
@@ -6,28 +6,33 @@
|
|
|
6
6
|
* person's graph holds is listed as a directory, since the walk shows that
|
|
7
7
|
* root inline where the reference stands. An unplaced repository lists its
|
|
8
8
|
* files from the map and its `.git` as a door, so finding a repository needs
|
|
9
|
-
* no bytes; only listing inside the door places it first.
|
|
9
|
+
* no bytes; only listing inside the door places it first. The computers
|
|
10
|
+
* folder never lists this computer's own folder: the walk finds it nowhere.
|
|
10
11
|
*/
|
|
11
12
|
import { REPOSITORY_METADATA } from '../detection/classify.js';
|
|
12
13
|
import { CONTAINERS } from '../entities/types.js';
|
|
14
|
+
import { FILES_FOLDER } from '../registration/home-layout.js';
|
|
13
15
|
import { active, derivedNames, entryOf, walk } from './where.js';
|
|
14
16
|
export async function listing(roots, path) {
|
|
15
17
|
const { where: at, root } = await walk(roots, path);
|
|
16
18
|
switch (at.kind) {
|
|
17
19
|
case 'shelf': {
|
|
20
|
+
const hidden = hiddenAt(roots, at.root, at.address);
|
|
18
21
|
if (at.entity === null || !CONTAINERS.has(at.entity.type))
|
|
19
|
-
return { kind: 'entries', root: at.root, address: at.address, entries: [], doors: [], complete: false };
|
|
22
|
+
return { kind: 'entries', root: at.root, address: at.address, entries: [], doors: [], hidden, complete: false };
|
|
20
23
|
const shelf = new Set(root.shelf.names(at.address) ?? []);
|
|
21
24
|
const unplaced = derivedNames(active(root.map.children(at.entity.uuid)))
|
|
22
|
-
.filter(([child, name]) => !root.map.placed(child.uuid) && !shelf.has(name));
|
|
23
|
-
return { kind: 'entries', root: at.root, address: at.address, entries: await entries(roots, unplaced), doors: [], complete: false };
|
|
25
|
+
.filter(([child, name]) => !root.map.placed(child.uuid) && !shelf.has(name) && !hidden.includes(name));
|
|
26
|
+
return { kind: 'entries', root: at.root, address: at.address, entries: await entries(roots, unplaced), doors: [], hidden, complete: false };
|
|
24
27
|
}
|
|
25
28
|
case 'listed': {
|
|
26
29
|
if (at.entry.kind !== 'directory')
|
|
27
30
|
return { kind: 'notdir' };
|
|
28
|
-
const
|
|
31
|
+
const hidden = hiddenAt(roots, at.root, at.address);
|
|
32
|
+
const children = derivedNames(active(root.map.children(at.entry.uuid)))
|
|
33
|
+
.filter(([, name]) => !hidden.includes(name));
|
|
29
34
|
const doors = at.entry.type === 'repo.git' ? [REPOSITORY_METADATA] : [];
|
|
30
|
-
return { kind: 'entries', root: at.root, address: at.address, entries: await entries(roots, children), doors, complete: true };
|
|
35
|
+
return { kind: 'entries', root: at.root, address: at.address, entries: await entries(roots, children), doors, hidden, complete: true };
|
|
31
36
|
}
|
|
32
37
|
case 'door':
|
|
33
38
|
return { kind: 'place-first', placing: at.placing };
|
|
@@ -37,6 +42,12 @@ export async function listing(roots, path) {
|
|
|
37
42
|
return at;
|
|
38
43
|
}
|
|
39
44
|
}
|
|
45
|
+
/** The names a listing leaves out at an address: this computer's own folder,
|
|
46
|
+
* in the home's computers folder. */
|
|
47
|
+
function hiddenAt(roots, root, address) {
|
|
48
|
+
const computers = root === roots.home.uuid && address.length === 1 && address[0] === FILES_FOLDER;
|
|
49
|
+
return computers && roots.computer !== null ? [roots.computer] : [];
|
|
50
|
+
}
|
|
40
51
|
/** Each child's entry at its name; a reference leading into a root this
|
|
41
52
|
* person holds is a directory. */
|
|
42
53
|
async function entries(roots, children) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listing.js","sourceRoot":"","sources":["../../src/drive/listing.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"listing.js","sourceRoot":"","sources":["../../src/drive/listing.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAE9D,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,OAAO,EAAE,IAAI,EAAc,MAAM,YAAY,CA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AAI,EAAE,SAAS,EAAE,CAAC;QAC7B;YACE,OAAO,EAAE,CAAC;IACd,CAAC;AACH,CAAC;AAED;qCACqC;AACrC,SAAS,QAAQ,CAAC,KAAgB,EAAE,IAAY,EAAE,OAA0B;IAC1E,MAAM,SAAS,GAAG,IAAI,KAAK,KAAK,CAAC,IAAI,CAAC,IAAI,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,IAAI,OAAO,CAAC,CAAC,CAAC,KAAK,YAAY,CAAC;IAClG,OAAO,SAAS,IAAI,KAAK,CAAC,QAAQ,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AACtE,CAAC;AAED;kCACkC;AAClC,KAAK,UAAU,OAAO,CAAC,KAAgB,EAAE,QAAwC;IAC/E,MAAM,MAAM,GAAY,EAAE,CAAC;IAC3B,KAAK,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,QAAQ,EAAE,CAAC;QACrC,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,KAAK,WAAW,IAAI,KAAK,CAAC,MAAM,KAAK,IAAI,IAAI,MAAM,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;QAC9G,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC;IAChF,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
package/dist/drive/where.d.ts
CHANGED
|
@@ -67,6 +67,15 @@ export interface Walked {
|
|
|
67
67
|
}
|
|
68
68
|
export declare function where(roots: RootsPort, path: readonly string[]): Promise<Where>;
|
|
69
69
|
export declare function walk(roots: RootsPort, path: readonly string[]): Promise<Walked>;
|
|
70
|
+
/** Whether a path's judgment names an address, not ground: the computers
|
|
71
|
+
* folder and everything the home holds beneath it (each computer's folder,
|
|
72
|
+
* the folders of an added folder's path, its reference), and the top of a
|
|
73
|
+
* root a reference leads into. They say where a folder lives on its
|
|
74
|
+
* computer; only that computer moves it, so no computer creates, renames or
|
|
75
|
+
* removes them through its drive. Inside an entered root everything is
|
|
76
|
+
* ground, except beneath this computer's own folder, whose ground the drive
|
|
77
|
+
* never shows. */
|
|
78
|
+
export declare function addressOnly(roots: RootsPort, path: readonly string[], at: Where): boolean;
|
|
70
79
|
/** The active child standing at a name: a sole owner keeps its bare name
|
|
71
80
|
* whatever its siblings do, so one holder answers at once. A name nobody
|
|
72
81
|
* holds that no shared slot can derive is nobody's. Only a shared slot, held
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"where.d.ts","sourceRoot":"","sources":["../../src/drive/where.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"where.d.ts","sourceRoot":"","sources":["../../src/drive/where.ts"],"names":[],"mappings":"AA0CA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,OAAO,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAEhF,wEAAwE;AACxE,MAAM,WAAW,KAAK;IACpB,wFAAwF;IACxF,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;IACjC,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACvC,6DAA6D;IAC7D,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,MAAM,SAAS,GAA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CAAC,KAAK,EAAE,KAAK,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC;CACrB;AAED,wBAAsB,KAAK,CAAC,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAC,CAErF;AAED,wBAAsB,IAAI,CAAC,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CA6DrF;AAYD;;;;;;;kBAOkB;AAClB,wBAAgB,WAAW,CAAC,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,MAAM,EAAE,EAAE,EAAE,EAAE,KAAK,GAAG,OAAO,CAIzF;AAED;;;yEAGyE;AACzE,wBAAgB,OAAO,CAAC,GAAG,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAQxF;AAED,oDAAoD;AACpD,wBAAgB,YAAY,CAAC,QAAQ,EAAE,SAAS,SAAS,EAAE,GAAG,CAAC,SAAS,EAAE,MAAM,CAAC,EAAE,CAGlF;AAED;;qCAEqC;AACrC,wBAAgB,OAAO,CAAC,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,GAAE,SAA+B,GAAG,KAAK,CAUrG;AAED;;uBAEuB;AACvB,wBAAgB,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC,MAAM,CAAC,GAAG,SAAS,CAKzD;AAED,wBAAgB,MAAM,CAAC,QAAQ,EAAE,SAAS,SAAS,EAAE,GAAG,SAAS,EAAE,CAElE"}
|
package/dist/drive/where.js
CHANGED
|
@@ -33,14 +33,20 @@
|
|
|
33
33
|
* stands, so each root's shelf is read once past its last standing
|
|
34
34
|
* ancestor; entering another root reads that root's shelf anew. A walk's
|
|
35
35
|
* judgment is as fresh as that one read, as any walk of a tree is.
|
|
36
|
+
* - This computer's own folder in the computers folder is nowhere. What it
|
|
37
|
+
* holds already stands where it lives on this computer, so the drive never
|
|
38
|
+
* shows it a second time.
|
|
36
39
|
*/
|
|
37
40
|
import { isRepositoryMetadataEntry } from '../detection/classify.js';
|
|
38
41
|
import { collisionBases, materializedSlotNames } from '../entities/rules.js';
|
|
39
42
|
import { CONTAINERS } from '../entities/types.js';
|
|
43
|
+
import { FILES_FOLDER } from '../registration/home-layout.js';
|
|
40
44
|
export async function where(roots, path) {
|
|
41
45
|
return (await walk(roots, path)).where;
|
|
42
46
|
}
|
|
43
47
|
export async function walk(roots, path) {
|
|
48
|
+
if (ownComputer(roots, path))
|
|
49
|
+
return { root: roots.home, where: { kind: 'nowhere' } };
|
|
44
50
|
const placing = [];
|
|
45
51
|
let covered = false;
|
|
46
52
|
let root = roots.home;
|
|
@@ -117,6 +123,26 @@ export async function walk(roots, path) {
|
|
|
117
123
|
function unitOf(root, entity, address) {
|
|
118
124
|
return { root: root.uuid, uuid: entity.uuid, type: entity.type, address };
|
|
119
125
|
}
|
|
126
|
+
/** Whether a path is this computer's own folder in the computers folder, or
|
|
127
|
+
* beneath it. */
|
|
128
|
+
function ownComputer(roots, path) {
|
|
129
|
+
return roots.computer !== null && path.length >= 2 && path[0] === FILES_FOLDER && path[1] === roots.computer;
|
|
130
|
+
}
|
|
131
|
+
/** Whether a path's judgment names an address, not ground: the computers
|
|
132
|
+
* folder and everything the home holds beneath it (each computer's folder,
|
|
133
|
+
* the folders of an added folder's path, its reference), and the top of a
|
|
134
|
+
* root a reference leads into. They say where a folder lives on its
|
|
135
|
+
* computer; only that computer moves it, so no computer creates, renames or
|
|
136
|
+
* removes them through its drive. Inside an entered root everything is
|
|
137
|
+
* ground, except beneath this computer's own folder, whose ground the drive
|
|
138
|
+
* never shows. */
|
|
139
|
+
export function addressOnly(roots, path, at) {
|
|
140
|
+
if (ownComputer(roots, path))
|
|
141
|
+
return true;
|
|
142
|
+
if (!('root' in at))
|
|
143
|
+
return false;
|
|
144
|
+
return at.root === roots.home.uuid ? at.address[0] === FILES_FOLDER : at.address.length === 0;
|
|
145
|
+
}
|
|
120
146
|
/** The active child standing at a name: a sole owner keeps its bare name
|
|
121
147
|
* whatever its siblings do, so one holder answers at once. A name nobody
|
|
122
148
|
* holds that no shared slot can derive is nobody's. Only a shared slot, held
|
package/dist/drive/where.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"where.js","sourceRoot":"","sources":["../../src/drive/where.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"where.js","sourceRoot":"","sources":["../../src/drive/where.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,OAAO,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7E,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AA+C9D,MAAM,CAAC,KAAK,UAAU,KAAK,CAAC,KAAgB,EAAE,IAAuB;IACnE,OAAO,CAAC,MAAM,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;AACzC,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,IAAI,CAAC,KAAgB,EAAE,IAAuB;IAClE,IAAI,WAAW,CAAC,KAAK,EAAE,IAAI,CAAC;QAAE,OAAO,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,CAAC;IACtF,MAAM,OAAO,GAAW,EAAE,CAAC;IAC3B,IAAI,OAAO,GAAG,KAAK,CAAC;IACpB,IAAI,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;IACtB,IAAI,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;IAC7B,IAA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