amalgm 0.1.256 → 0.1.257
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.
|
@@ -20,7 +20,7 @@ const REAUTHORIZE_MS = 30_000;
|
|
|
20
20
|
const REPO_OBJECT_REQUEST_TIMEOUT_MS = 15_000;
|
|
21
21
|
const COOKIE_PRIVATE_CONTRACT = 'browser-cookie-jar@1';
|
|
22
22
|
const USER_HOME_PRIVATE_CONTRACT = 'amalgm-user-home@1';
|
|
23
|
-
const ENTITY_REGISTRY_PRIVATE_CONTRACT = 'amalgm-entity-registry@
|
|
23
|
+
const ENTITY_REGISTRY_PRIVATE_CONTRACT = 'amalgm-entity-registry@2';
|
|
24
24
|
|
|
25
25
|
function createSharedRealtimeTunnel({
|
|
26
26
|
send,
|
package/package.json
CHANGED
|
@@ -11,7 +11,12 @@
|
|
|
11
11
|
|
|
12
12
|
const crypto = require('crypto');
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
// `@1` was an unreleased bootstrap experiment which could project arbitrary
|
|
15
|
+
// pre-cloud local registrations into the first private head. A resource
|
|
16
|
+
// contract names immutable authority semantics, so it is quarantined rather
|
|
17
|
+
// than interpreted or overwritten. `@2` begins with only the verified user
|
|
18
|
+
// home; later user ground enters exclusively through `amalgm register`.
|
|
19
|
+
const ENTITY_CLOUD_CONTRACT = 'amalgm-entity-registry@2';
|
|
15
20
|
const ENTITY_CLOUD_SCHEMA_VERSION = 1;
|
|
16
21
|
const BOOTSTRAP_RECONCILIATION_STATE = 'reconciling-bootstrap';
|
|
17
22
|
const SNAPSHOT_REPLACE_OPERATION = 'entity.snapshot.replace';
|
|
@@ -277,7 +277,7 @@ test('add accepts only a catalog installed by the active compacted snapshot, nev
|
|
|
277
277
|
envelope: {
|
|
278
278
|
resourceId,
|
|
279
279
|
mutationId: 'ent_remote_change',
|
|
280
|
-
contract: 'amalgm-entity-registry@
|
|
280
|
+
contract: 'amalgm-entity-registry@2',
|
|
281
281
|
schemaVersion: 1,
|
|
282
282
|
operationKind: 'entity.upsert',
|
|
283
283
|
operation: { kind: 'entity.upsert', record: changed },
|
|
@@ -189,7 +189,7 @@ test('an added ordinary workspace stays live: a later cloud file head replaces l
|
|
|
189
189
|
envelope: {
|
|
190
190
|
resourceId: sourceCloud.identity().resourceId,
|
|
191
191
|
mutationId: 'ent_remote_file_change',
|
|
192
|
-
contract: 'amalgm-entity-registry@
|
|
192
|
+
contract: 'amalgm-entity-registry@2',
|
|
193
193
|
schemaVersion: 1,
|
|
194
194
|
operationKind: 'entity.upsert',
|
|
195
195
|
operation: { kind: 'entity.upsert', record: remoteRecord },
|
|
@@ -296,7 +296,7 @@ test('add preserves a symlink UUID and later retargets the same literal link wit
|
|
|
296
296
|
const ingested = target.ingestCloudMutation({
|
|
297
297
|
envelope: {
|
|
298
298
|
resourceId: sourceCloud.identity().resourceId, mutationId: 'ent_remote_link_change',
|
|
299
|
-
contract: 'amalgm-entity-registry@
|
|
299
|
+
contract: 'amalgm-entity-registry@2', schemaVersion: 1,
|
|
300
300
|
operationKind: 'entity.upsert', operation: { kind: 'entity.upsert', record: sourceRegistry.syncRecord(changed.uuid) },
|
|
301
301
|
},
|
|
302
302
|
version: 42, committedAt: '2026-08-05T00:00:00.000Z',
|
|
@@ -420,7 +420,7 @@ test('add recreates an actual Git repository from verified Repocard cargo, then
|
|
|
420
420
|
const ingested = target.ingestCloudMutation({
|
|
421
421
|
envelope: {
|
|
422
422
|
resourceId: bootstrap.resourceId, mutationId: 'ent_remote_repo_change',
|
|
423
|
-
contract: 'amalgm-entity-registry@
|
|
423
|
+
contract: 'amalgm-entity-registry@2', schemaVersion: 1,
|
|
424
424
|
operationKind: 'entity.upsert', operation: { kind: 'entity.upsert', record: remoteRecord },
|
|
425
425
|
},
|
|
426
426
|
version: 2, committedAt: '2026-08-05T00:00:00.000Z',
|