hikoutei 0.2.0
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/LICENSE +21 -0
- package/README.ja.md +135 -0
- package/README.ko.md +138 -0
- package/README.md +143 -0
- package/apps-script/gateway/Code.gs +412 -0
- package/dist/adapter/persistence/contracts/index.d.ts +3 -0
- package/dist/adapter/persistence/contracts/index.d.ts.map +1 -0
- package/dist/adapter/persistence/contracts/index.js +3 -0
- package/dist/adapter/persistence/contracts/index.js.map +1 -0
- package/dist/adapter/persistence/contracts/sql.d.ts +50 -0
- package/dist/adapter/persistence/contracts/sql.d.ts.map +1 -0
- package/dist/adapter/persistence/contracts/sql.js +9 -0
- package/dist/adapter/persistence/contracts/sql.js.map +1 -0
- package/dist/adapter/persistence/index.d.ts +2 -0
- package/dist/adapter/persistence/index.d.ts.map +1 -0
- package/dist/adapter/persistence/index.js +2 -0
- package/dist/adapter/persistence/index.js.map +1 -0
- package/dist/adapter/persistence/providers/mikro-orm/api/MikroOrmTypedSheetsEntityManager.d.ts +53 -0
- package/dist/adapter/persistence/providers/mikro-orm/api/MikroOrmTypedSheetsEntityManager.d.ts.map +1 -0
- package/dist/adapter/persistence/providers/mikro-orm/api/MikroOrmTypedSheetsEntityManager.js +105 -0
- package/dist/adapter/persistence/providers/mikro-orm/api/MikroOrmTypedSheetsEntityManager.js.map +1 -0
- package/dist/adapter/persistence/providers/mikro-orm/engine/MikroOrmMappedTypedSheets.d.ts +39 -0
- package/dist/adapter/persistence/providers/mikro-orm/engine/MikroOrmMappedTypedSheets.d.ts.map +1 -0
- package/dist/adapter/persistence/providers/mikro-orm/engine/MikroOrmMappedTypedSheets.js +54 -0
- package/dist/adapter/persistence/providers/mikro-orm/engine/MikroOrmMappedTypedSheets.js.map +1 -0
- package/dist/adapter/persistence/providers/mikro-orm/engine/MikroOrmTypedSheetsEngine.d.ts +38 -0
- package/dist/adapter/persistence/providers/mikro-orm/engine/MikroOrmTypedSheetsEngine.d.ts.map +1 -0
- package/dist/adapter/persistence/providers/mikro-orm/engine/MikroOrmTypedSheetsEngine.js +55 -0
- package/dist/adapter/persistence/providers/mikro-orm/engine/MikroOrmTypedSheetsEngine.js.map +1 -0
- package/dist/adapter/persistence/providers/mikro-orm/index.d.ts +16 -0
- package/dist/adapter/persistence/providers/mikro-orm/index.d.ts.map +1 -0
- package/dist/adapter/persistence/providers/mikro-orm/index.js +9 -0
- package/dist/adapter/persistence/providers/mikro-orm/index.js.map +1 -0
- package/dist/adapter/persistence/providers/mikro-orm/observation/MikroOrmMappedObservation.d.ts +27 -0
- package/dist/adapter/persistence/providers/mikro-orm/observation/MikroOrmMappedObservation.d.ts.map +1 -0
- package/dist/adapter/persistence/providers/mikro-orm/observation/MikroOrmMappedObservation.js +67 -0
- package/dist/adapter/persistence/providers/mikro-orm/observation/MikroOrmMappedObservation.js.map +1 -0
- package/dist/adapter/persistence/providers/mikro-orm/storage/MikroOrmFlushChanges.d.ts +19 -0
- package/dist/adapter/persistence/providers/mikro-orm/storage/MikroOrmFlushChanges.d.ts.map +1 -0
- package/dist/adapter/persistence/providers/mikro-orm/storage/MikroOrmFlushChanges.js +67 -0
- package/dist/adapter/persistence/providers/mikro-orm/storage/MikroOrmFlushChanges.js.map +1 -0
- package/dist/adapter/persistence/providers/mikro-orm/storage/MikroOrmSqliteAdapter.d.ts +78 -0
- package/dist/adapter/persistence/providers/mikro-orm/storage/MikroOrmSqliteAdapter.d.ts.map +1 -0
- package/dist/adapter/persistence/providers/mikro-orm/storage/MikroOrmSqliteAdapter.js +121 -0
- package/dist/adapter/persistence/providers/mikro-orm/storage/MikroOrmSqliteAdapter.js.map +1 -0
- package/dist/adapter/persistence/providers/mikro-orm/storage/MikroOrmSqliteSchema.d.ts +20 -0
- package/dist/adapter/persistence/providers/mikro-orm/storage/MikroOrmSqliteSchema.d.ts.map +1 -0
- package/dist/adapter/persistence/providers/mikro-orm/storage/MikroOrmSqliteSchema.js +125 -0
- package/dist/adapter/persistence/providers/mikro-orm/storage/MikroOrmSqliteSchema.js.map +1 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/errors.d.ts +42 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/errors.d.ts.map +1 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/errors.js +51 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/errors.js.map +1 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/index.d.ts +22 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/index.d.ts.map +1 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/index.js +12 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/index.js.map +1 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/operations/effect/effectOperation.d.ts +42 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/operations/effect/effectOperation.d.ts.map +1 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/operations/effect/effectOperation.js +161 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/operations/effect/effectOperation.js.map +1 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/operations/effect/effectOperationScript.d.ts +3 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/operations/effect/effectOperationScript.d.ts.map +1 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/operations/effect/effectOperationScript.js +692 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/operations/effect/effectOperationScript.js.map +1 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/operations/observation/observationOperation.d.ts +29 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/operations/observation/observationOperation.d.ts.map +1 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/operations/observation/observationOperation.js +538 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/operations/observation/observationOperation.js.map +1 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/operations/read/tableReadOperation.d.ts +12 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/operations/read/tableReadOperation.d.ts.map +1 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/operations/read/tableReadOperation.js +190 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/operations/read/tableReadOperation.js.map +1 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/operations/write/fastAppendOperation.d.ts +23 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/operations/write/fastAppendOperation.d.ts.map +1 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/operations/write/fastAppendOperation.js +166 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/operations/write/fastAppendOperation.js.map +1 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/protocol/codeGsProtocol.d.ts +50 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/protocol/codeGsProtocol.d.ts.map +1 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/protocol/codeGsProtocol.js +60 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/protocol/codeGsProtocol.js.map +1 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/protocol/constants.d.ts +44 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/protocol/constants.d.ts.map +1 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/protocol/constants.js +40 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/protocol/constants.js.map +1 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/protocol/syncProtocol.d.ts +7 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/protocol/syncProtocol.d.ts.map +1 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/protocol/syncProtocol.js +47 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/protocol/syncProtocol.js.map +1 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/protocol/timing.d.ts +5 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/protocol/timing.d.ts.map +1 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/protocol/timing.js +54 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/protocol/timing.js.map +1 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/protocol/types.d.ts +5 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/protocol/types.d.ts.map +1 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/protocol/types.js +2 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/protocol/types.js.map +1 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/protocol/validation.d.ts +10 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/protocol/validation.d.ts.map +1 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/protocol/validation.js +35 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/protocol/validation.js.map +1 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/transport/operationClient.d.ts +67 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/transport/operationClient.d.ts.map +1 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/transport/operationClient.js +204 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/transport/operationClient.js.map +1 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/transport/operationSyncGateway.d.ts +78 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/transport/operationSyncGateway.d.ts.map +1 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/transport/operationSyncGateway.js +343 -0
- package/dist/adapter/sheets/providers/apps-script-gateway/transport/operationSyncGateway.js.map +1 -0
- package/dist/application/index.d.ts +4 -0
- package/dist/application/index.d.ts.map +1 -0
- package/dist/application/index.js +4 -0
- package/dist/application/index.js.map +1 -0
- package/dist/application/orm/api/TypedSheetsOrm.d.ts +71 -0
- package/dist/application/orm/api/TypedSheetsOrm.d.ts.map +1 -0
- package/dist/application/orm/api/TypedSheetsOrm.js +116 -0
- package/dist/application/orm/api/TypedSheetsOrm.js.map +1 -0
- package/dist/application/orm/api/contracts.d.ts +118 -0
- package/dist/application/orm/api/contracts.d.ts.map +1 -0
- package/dist/application/orm/api/contracts.js +21 -0
- package/dist/application/orm/api/contracts.js.map +1 -0
- package/dist/application/orm/errors.d.ts +35 -0
- package/dist/application/orm/errors.d.ts.map +1 -0
- package/dist/application/orm/errors.js +35 -0
- package/dist/application/orm/errors.js.map +1 -0
- package/dist/application/orm/index.d.ts +13 -0
- package/dist/application/orm/index.d.ts.map +1 -0
- package/dist/application/orm/index.js +7 -0
- package/dist/application/orm/index.js.map +1 -0
- package/dist/application/orm/mapping/contracts.d.ts +113 -0
- package/dist/application/orm/mapping/contracts.d.ts.map +1 -0
- package/dist/application/orm/mapping/contracts.js +8 -0
- package/dist/application/orm/mapping/contracts.js.map +1 -0
- package/dist/application/orm/mapping/definition.d.ts +16 -0
- package/dist/application/orm/mapping/definition.d.ts.map +1 -0
- package/dist/application/orm/mapping/definition.js +145 -0
- package/dist/application/orm/mapping/definition.js.map +1 -0
- package/dist/application/orm/mapping/entityMapping.d.ts +13 -0
- package/dist/application/orm/mapping/entityMapping.d.ts.map +1 -0
- package/dist/application/orm/mapping/entityMapping.js +13 -0
- package/dist/application/orm/mapping/entityMapping.js.map +1 -0
- package/dist/application/orm/mapping/identity.d.ts +14 -0
- package/dist/application/orm/mapping/identity.d.ts.map +1 -0
- package/dist/application/orm/mapping/identity.js +37 -0
- package/dist/application/orm/mapping/identity.js.map +1 -0
- package/dist/application/orm/mapping/observationMapping.d.ts +42 -0
- package/dist/application/orm/mapping/observationMapping.d.ts.map +1 -0
- package/dist/application/orm/mapping/observationMapping.js +65 -0
- package/dist/application/orm/mapping/observationMapping.js.map +1 -0
- package/dist/application/orm/mapping/projection.d.ts +22 -0
- package/dist/application/orm/mapping/projection.d.ts.map +1 -0
- package/dist/application/orm/mapping/projection.js +74 -0
- package/dist/application/orm/mapping/projection.js.map +1 -0
- package/dist/application/orm/mapping/registry.d.ts +15 -0
- package/dist/application/orm/mapping/registry.d.ts.map +1 -0
- package/dist/application/orm/mapping/registry.js +38 -0
- package/dist/application/orm/mapping/registry.js.map +1 -0
- package/dist/application/orm/mapping/values.d.ts +17 -0
- package/dist/application/orm/mapping/values.d.ts.map +1 -0
- package/dist/application/orm/mapping/values.js +141 -0
- package/dist/application/orm/mapping/values.js.map +1 -0
- package/dist/application/orm/persistence/flush/flushCoordinator.d.ts +28 -0
- package/dist/application/orm/persistence/flush/flushCoordinator.d.ts.map +1 -0
- package/dist/application/orm/persistence/flush/flushCoordinator.js +170 -0
- package/dist/application/orm/persistence/flush/flushCoordinator.js.map +1 -0
- package/dist/application/orm/persistence/flush/mappedFlushCoordinator.d.ts +9 -0
- package/dist/application/orm/persistence/flush/mappedFlushCoordinator.d.ts.map +1 -0
- package/dist/application/orm/persistence/flush/mappedFlushCoordinator.js +8 -0
- package/dist/application/orm/persistence/flush/mappedFlushCoordinator.js.map +1 -0
- package/dist/application/orm/persistence/lifecycle/entityLifecycle.d.ts +12 -0
- package/dist/application/orm/persistence/lifecycle/entityLifecycle.d.ts.map +1 -0
- package/dist/application/orm/persistence/lifecycle/entityLifecycle.js +134 -0
- package/dist/application/orm/persistence/lifecycle/entityLifecycle.js.map +1 -0
- package/dist/application/orm/persistence/projection/projectionEffects.d.ts +21 -0
- package/dist/application/orm/persistence/projection/projectionEffects.d.ts.map +1 -0
- package/dist/application/orm/persistence/projection/projectionEffects.js +203 -0
- package/dist/application/orm/persistence/projection/projectionEffects.js.map +1 -0
- package/dist/application/orm/persistence/support/businessKeys.d.ts +17 -0
- package/dist/application/orm/persistence/support/businessKeys.d.ts.map +1 -0
- package/dist/application/orm/persistence/support/businessKeys.js +72 -0
- package/dist/application/orm/persistence/support/businessKeys.js.map +1 -0
- package/dist/application/orm/persistence/support/canonicalState.d.ts +22 -0
- package/dist/application/orm/persistence/support/canonicalState.d.ts.map +1 -0
- package/dist/application/orm/persistence/support/canonicalState.js +88 -0
- package/dist/application/orm/persistence/support/canonicalState.js.map +1 -0
- package/dist/application/orm/persistence/support/contracts.d.ts +139 -0
- package/dist/application/orm/persistence/support/contracts.d.ts.map +1 -0
- package/dist/application/orm/persistence/support/contracts.js +93 -0
- package/dist/application/orm/persistence/support/contracts.js.map +1 -0
- package/dist/application/orm/persistence/support/helpers.d.ts +32 -0
- package/dist/application/orm/persistence/support/helpers.d.ts.map +1 -0
- package/dist/application/orm/persistence/support/helpers.js +66 -0
- package/dist/application/orm/persistence/support/helpers.js.map +1 -0
- package/dist/application/orm/persistence/support/timing.d.ts +20 -0
- package/dist/application/orm/persistence/support/timing.d.ts.map +1 -0
- package/dist/application/orm/persistence/support/timing.js +55 -0
- package/dist/application/orm/persistence/support/timing.js.map +1 -0
- package/dist/application/sync/gateway/SyncGatewayBootstrap.d.ts +46 -0
- package/dist/application/sync/gateway/SyncGatewayBootstrap.d.ts.map +1 -0
- package/dist/application/sync/gateway/SyncGatewayBootstrap.js +93 -0
- package/dist/application/sync/gateway/SyncGatewayBootstrap.js.map +1 -0
- package/dist/application/sync/gateway/constants.d.ts +65 -0
- package/dist/application/sync/gateway/constants.d.ts.map +1 -0
- package/dist/application/sync/gateway/constants.js +57 -0
- package/dist/application/sync/gateway/constants.js.map +1 -0
- package/dist/application/sync/gateway/errors.d.ts +15 -0
- package/dist/application/sync/gateway/errors.d.ts.map +1 -0
- package/dist/application/sync/gateway/errors.js +16 -0
- package/dist/application/sync/gateway/errors.js.map +1 -0
- package/dist/application/sync/gateway/syncGateway.d.ts +313 -0
- package/dist/application/sync/gateway/syncGateway.d.ts.map +1 -0
- package/dist/application/sync/gateway/syncGateway.js +202 -0
- package/dist/application/sync/gateway/syncGateway.js.map +1 -0
- package/dist/application/sync/gateway/validation.d.ts +17 -0
- package/dist/application/sync/gateway/validation.d.ts.map +1 -0
- package/dist/application/sync/gateway/validation.js +60 -0
- package/dist/application/sync/gateway/validation.js.map +1 -0
- package/dist/application/sync/inbound/polling/SimpleSheetPolling.d.ts +72 -0
- package/dist/application/sync/inbound/polling/SimpleSheetPolling.d.ts.map +1 -0
- package/dist/application/sync/inbound/polling/SimpleSheetPolling.js +272 -0
- package/dist/application/sync/inbound/polling/SimpleSheetPolling.js.map +1 -0
- package/dist/application/sync/index.d.ts +16 -0
- package/dist/application/sync/index.d.ts.map +1 -0
- package/dist/application/sync/index.js +9 -0
- package/dist/application/sync/index.js.map +1 -0
- package/dist/application/sync/outbound/effects/SyncEffectSupervisor.d.ts +106 -0
- package/dist/application/sync/outbound/effects/SyncEffectSupervisor.d.ts.map +1 -0
- package/dist/application/sync/outbound/effects/SyncEffectSupervisor.js +297 -0
- package/dist/application/sync/outbound/effects/SyncEffectSupervisor.js.map +1 -0
- package/dist/application/sync/outbound/effects/SyncEffectWorker.d.ts +100 -0
- package/dist/application/sync/outbound/effects/SyncEffectWorker.d.ts.map +1 -0
- package/dist/application/sync/outbound/effects/SyncEffectWorker.js +345 -0
- package/dist/application/sync/outbound/effects/SyncEffectWorker.js.map +1 -0
- package/dist/application/sync/outbound/effects/SyncEffectWorkerConstants.d.ts +46 -0
- package/dist/application/sync/outbound/effects/SyncEffectWorkerConstants.d.ts.map +1 -0
- package/dist/application/sync/outbound/effects/SyncEffectWorkerConstants.js +63 -0
- package/dist/application/sync/outbound/effects/SyncEffectWorkerConstants.js.map +1 -0
- package/dist/application/sync/outbound/effects/SyncEffectWorkerDispatch.d.ts +20 -0
- package/dist/application/sync/outbound/effects/SyncEffectWorkerDispatch.d.ts.map +1 -0
- package/dist/application/sync/outbound/effects/SyncEffectWorkerDispatch.js +102 -0
- package/dist/application/sync/outbound/effects/SyncEffectWorkerDispatch.js.map +1 -0
- package/dist/application/sync/outbound/effects/SyncEffectWorkerHelpers.d.ts +19 -0
- package/dist/application/sync/outbound/effects/SyncEffectWorkerHelpers.d.ts.map +1 -0
- package/dist/application/sync/outbound/effects/SyncEffectWorkerHelpers.js +32 -0
- package/dist/application/sync/outbound/effects/SyncEffectWorkerHelpers.js.map +1 -0
- package/dist/application/sync/outbound/effects/SyncEffectWorkerRouting.d.ts +30 -0
- package/dist/application/sync/outbound/effects/SyncEffectWorkerRouting.d.ts.map +1 -0
- package/dist/application/sync/outbound/effects/SyncEffectWorkerRouting.js +202 -0
- package/dist/application/sync/outbound/effects/SyncEffectWorkerRouting.js.map +1 -0
- package/dist/application/sync/outbound/effects/SyncEffectWorkerTiming.d.ts +17 -0
- package/dist/application/sync/outbound/effects/SyncEffectWorkerTiming.d.ts.map +1 -0
- package/dist/application/sync/outbound/effects/SyncEffectWorkerTiming.js +80 -0
- package/dist/application/sync/outbound/effects/SyncEffectWorkerTiming.js.map +1 -0
- package/dist/application/sync/outbound/effects/SyncEffectWorkerTransitions.d.ts +13 -0
- package/dist/application/sync/outbound/effects/SyncEffectWorkerTransitions.d.ts.map +1 -0
- package/dist/application/sync/outbound/effects/SyncEffectWorkerTransitions.js +205 -0
- package/dist/application/sync/outbound/effects/SyncEffectWorkerTransitions.js.map +1 -0
- package/dist/application/sync/outbound/projection/ProjectionEffectFactory.d.ts +81 -0
- package/dist/application/sync/outbound/projection/ProjectionEffectFactory.d.ts.map +1 -0
- package/dist/application/sync/outbound/projection/ProjectionEffectFactory.js +245 -0
- package/dist/application/sync/outbound/projection/ProjectionEffectFactory.js.map +1 -0
- package/dist/application/sync/outbound/reconciliation/ReconciliationScanner.d.ts +77 -0
- package/dist/application/sync/outbound/reconciliation/ReconciliationScanner.d.ts.map +1 -0
- package/dist/application/sync/outbound/reconciliation/ReconciliationScanner.js +518 -0
- package/dist/application/sync/outbound/reconciliation/ReconciliationScanner.js.map +1 -0
- package/dist/application/sync/telemetry/syncTiming.d.ts +50 -0
- package/dist/application/sync/telemetry/syncTiming.d.ts.map +1 -0
- package/dist/application/sync/telemetry/syncTiming.js +22 -0
- package/dist/application/sync/telemetry/syncTiming.js.map +1 -0
- package/dist/domain/conflict/errors.d.ts +42 -0
- package/dist/domain/conflict/errors.d.ts.map +1 -0
- package/dist/domain/conflict/errors.js +36 -0
- package/dist/domain/conflict/errors.js.map +1 -0
- package/dist/domain/conflict/index.d.ts +5 -0
- package/dist/domain/conflict/index.d.ts.map +1 -0
- package/dist/domain/conflict/index.js +3 -0
- package/dist/domain/conflict/index.js.map +1 -0
- package/dist/domain/conflict/transitions.d.ts +52 -0
- package/dist/domain/conflict/transitions.d.ts.map +1 -0
- package/dist/domain/conflict/transitions.js +115 -0
- package/dist/domain/conflict/transitions.js.map +1 -0
- package/dist/domain/errors/evaluation.d.ts +13 -0
- package/dist/domain/errors/evaluation.d.ts.map +1 -0
- package/dist/domain/errors/evaluation.js +14 -0
- package/dist/domain/errors/evaluation.js.map +1 -0
- package/dist/domain/errors/identity.d.ts +12 -0
- package/dist/domain/errors/identity.d.ts.map +1 -0
- package/dist/domain/errors/identity.js +15 -0
- package/dist/domain/errors/identity.js.map +1 -0
- package/dist/domain/errors/index.d.ts +7 -0
- package/dist/domain/errors/index.d.ts.map +1 -0
- package/dist/domain/errors/index.js +5 -0
- package/dist/domain/errors/index.js.map +1 -0
- package/dist/domain/errors/stableEncoding.d.ts +7 -0
- package/dist/domain/errors/stableEncoding.d.ts.map +1 -0
- package/dist/domain/errors/stableEncoding.js +8 -0
- package/dist/domain/errors/stableEncoding.js.map +1 -0
- package/dist/domain/errors/types.d.ts +20 -0
- package/dist/domain/errors/types.d.ts.map +1 -0
- package/dist/domain/errors/types.js +18 -0
- package/dist/domain/errors/types.js.map +1 -0
- package/dist/domain/evaluate/constants.d.ts +55 -0
- package/dist/domain/evaluate/constants.d.ts.map +1 -0
- package/dist/domain/evaluate/constants.js +41 -0
- package/dist/domain/evaluate/constants.js.map +1 -0
- package/dist/domain/evaluate/contracts.d.ts +125 -0
- package/dist/domain/evaluate/contracts.d.ts.map +1 -0
- package/dist/domain/evaluate/contracts.js +8 -0
- package/dist/domain/evaluate/contracts.js.map +1 -0
- package/dist/domain/evaluate/evaluateBatch.d.ts +11 -0
- package/dist/domain/evaluate/evaluateBatch.d.ts.map +1 -0
- package/dist/domain/evaluate/evaluateBatch.js +91 -0
- package/dist/domain/evaluate/evaluateBatch.js.map +1 -0
- package/dist/domain/evaluate/fieldEvaluation.d.ts +14 -0
- package/dist/domain/evaluate/fieldEvaluation.d.ts.map +1 -0
- package/dist/domain/evaluate/fieldEvaluation.js +133 -0
- package/dist/domain/evaluate/fieldEvaluation.js.map +1 -0
- package/dist/domain/evaluate/identity.d.ts +21 -0
- package/dist/domain/evaluate/identity.d.ts.map +1 -0
- package/dist/domain/evaluate/identity.js +72 -0
- package/dist/domain/evaluate/identity.js.map +1 -0
- package/dist/domain/evaluate/index.d.ts +4 -0
- package/dist/domain/evaluate/index.d.ts.map +1 -0
- package/dist/domain/evaluate/index.js +3 -0
- package/dist/domain/evaluate/index.js.map +1 -0
- package/dist/domain/evaluate/preconditions.d.ts +30 -0
- package/dist/domain/evaluate/preconditions.d.ts.map +1 -0
- package/dist/domain/evaluate/preconditions.js +389 -0
- package/dist/domain/evaluate/preconditions.js.map +1 -0
- package/dist/domain/evaluate/quarantine.d.ts +15 -0
- package/dist/domain/evaluate/quarantine.d.ts.map +1 -0
- package/dist/domain/evaluate/quarantine.js +185 -0
- package/dist/domain/evaluate/quarantine.js.map +1 -0
- package/dist/domain/index.d.ts +7 -0
- package/dist/domain/index.d.ts.map +1 -0
- package/dist/domain/index.js +7 -0
- package/dist/domain/index.js.map +1 -0
- package/dist/domain/model/constants.d.ts +73 -0
- package/dist/domain/model/constants.d.ts.map +1 -0
- package/dist/domain/model/constants.js +59 -0
- package/dist/domain/model/constants.js.map +1 -0
- package/dist/domain/model/index.d.ts +3 -0
- package/dist/domain/model/index.d.ts.map +1 -0
- package/dist/domain/model/index.js +2 -0
- package/dist/domain/model/index.js.map +1 -0
- package/dist/domain/model/types.d.ts +330 -0
- package/dist/domain/model/types.d.ts.map +1 -0
- package/dist/domain/model/types.js +8 -0
- package/dist/domain/model/types.js.map +1 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -0
- package/dist/infrastructure/index.d.ts +3 -0
- package/dist/infrastructure/index.d.ts.map +1 -0
- package/dist/infrastructure/index.js +3 -0
- package/dist/infrastructure/index.js.map +1 -0
- package/dist/infrastructure/storage/constants.d.ts +4 -0
- package/dist/infrastructure/storage/constants.d.ts.map +1 -0
- package/dist/infrastructure/storage/constants.js +4 -0
- package/dist/infrastructure/storage/constants.js.map +1 -0
- package/dist/infrastructure/storage/errors.d.ts +55 -0
- package/dist/infrastructure/storage/errors.d.ts.map +1 -0
- package/dist/infrastructure/storage/errors.js +58 -0
- package/dist/infrastructure/storage/errors.js.map +1 -0
- package/dist/infrastructure/storage/index.d.ts +23 -0
- package/dist/infrastructure/storage/index.d.ts.map +1 -0
- package/dist/infrastructure/storage/index.js +13 -0
- package/dist/infrastructure/storage/index.js.map +1 -0
- package/dist/infrastructure/storage/recovery/restoreRecovery.d.ts +64 -0
- package/dist/infrastructure/storage/recovery/restoreRecovery.d.ts.map +1 -0
- package/dist/infrastructure/storage/recovery/restoreRecovery.js +148 -0
- package/dist/infrastructure/storage/recovery/restoreRecovery.js.map +1 -0
- package/dist/infrastructure/storage/sqlite/schema.d.ts +49 -0
- package/dist/infrastructure/storage/sqlite/schema.d.ts.map +1 -0
- package/dist/infrastructure/storage/sqlite/schema.js +529 -0
- package/dist/infrastructure/storage/sqlite/schema.js.map +1 -0
- package/dist/infrastructure/storage/sqlite/schemaTypes.d.ts +5 -0
- package/dist/infrastructure/storage/sqlite/schemaTypes.d.ts.map +1 -0
- package/dist/infrastructure/storage/sqlite/schemaTypes.js +2 -0
- package/dist/infrastructure/storage/sqlite/schemaTypes.js.map +1 -0
- package/dist/infrastructure/storage/sqlite/sqlScript.d.ts +9 -0
- package/dist/infrastructure/storage/sqlite/sqlScript.d.ts.map +1 -0
- package/dist/infrastructure/storage/sqlite/sqlScript.js +122 -0
- package/dist/infrastructure/storage/sqlite/sqlScript.js.map +1 -0
- package/dist/infrastructure/storage/sqlite/sqlState.d.ts +6 -0
- package/dist/infrastructure/storage/sqlite/sqlState.d.ts.map +1 -0
- package/dist/infrastructure/storage/sqlite/sqlState.js +14 -0
- package/dist/infrastructure/storage/sqlite/sqlState.js.map +1 -0
- package/dist/infrastructure/storage/sqlite/sqlTransaction.d.ts +6 -0
- package/dist/infrastructure/storage/sqlite/sqlTransaction.d.ts.map +1 -0
- package/dist/infrastructure/storage/sqlite/sqlTransaction.js +24 -0
- package/dist/infrastructure/storage/sqlite/sqlTransaction.js.map +1 -0
- package/dist/infrastructure/storage/sqlite/sqliteBridge.d.ts +44 -0
- package/dist/infrastructure/storage/sqlite/sqliteBridge.d.ts.map +1 -0
- package/dist/infrastructure/storage/sqlite/sqliteBridge.js +66 -0
- package/dist/infrastructure/storage/sqlite/sqliteBridge.js.map +1 -0
- package/dist/infrastructure/storage/state/canonical/canonicalCommit.d.ts +101 -0
- package/dist/infrastructure/storage/state/canonical/canonicalCommit.d.ts.map +1 -0
- package/dist/infrastructure/storage/state/canonical/canonicalCommit.js +417 -0
- package/dist/infrastructure/storage/state/canonical/canonicalCommit.js.map +1 -0
- package/dist/infrastructure/storage/state/observation/observationAudit.d.ts +16 -0
- package/dist/infrastructure/storage/state/observation/observationAudit.d.ts.map +1 -0
- package/dist/infrastructure/storage/state/observation/observationAudit.js +85 -0
- package/dist/infrastructure/storage/state/observation/observationAudit.js.map +1 -0
- package/dist/infrastructure/storage/state/observation/observationCanonical.d.ts +31 -0
- package/dist/infrastructure/storage/state/observation/observationCanonical.d.ts.map +1 -0
- package/dist/infrastructure/storage/state/observation/observationCanonical.js +439 -0
- package/dist/infrastructure/storage/state/observation/observationCanonical.js.map +1 -0
- package/dist/infrastructure/storage/state/observation/observationConstants.d.ts +53 -0
- package/dist/infrastructure/storage/state/observation/observationConstants.d.ts.map +1 -0
- package/dist/infrastructure/storage/state/observation/observationConstants.js +41 -0
- package/dist/infrastructure/storage/state/observation/observationConstants.js.map +1 -0
- package/dist/infrastructure/storage/state/observation/observationLedger.d.ts +49 -0
- package/dist/infrastructure/storage/state/observation/observationLedger.d.ts.map +1 -0
- package/dist/infrastructure/storage/state/observation/observationLedger.js +537 -0
- package/dist/infrastructure/storage/state/observation/observationLedger.js.map +1 -0
- package/dist/infrastructure/storage/state/observation/observationQuarantine.d.ts +15 -0
- package/dist/infrastructure/storage/state/observation/observationQuarantine.d.ts.map +1 -0
- package/dist/infrastructure/storage/state/observation/observationQuarantine.js +100 -0
- package/dist/infrastructure/storage/state/observation/observationQuarantine.js.map +1 -0
- package/dist/infrastructure/storage/state/observation/observationTypes.d.ts +124 -0
- package/dist/infrastructure/storage/state/observation/observationTypes.d.ts.map +1 -0
- package/dist/infrastructure/storage/state/observation/observationTypes.js +13 -0
- package/dist/infrastructure/storage/state/observation/observationTypes.js.map +1 -0
- package/dist/infrastructure/storage/state/observation/observationValidation.d.ts +28 -0
- package/dist/infrastructure/storage/state/observation/observationValidation.d.ts.map +1 -0
- package/dist/infrastructure/storage/state/observation/observationValidation.js +223 -0
- package/dist/infrastructure/storage/state/observation/observationValidation.js.map +1 -0
- package/dist/infrastructure/storage/state/observation/observationWriter.d.ts +28 -0
- package/dist/infrastructure/storage/state/observation/observationWriter.d.ts.map +1 -0
- package/dist/infrastructure/storage/state/observation/observationWriter.js +293 -0
- package/dist/infrastructure/storage/state/observation/observationWriter.js.map +1 -0
- package/dist/infrastructure/storage/state/readonly/readOnlyObservation.d.ts +58 -0
- package/dist/infrastructure/storage/state/readonly/readOnlyObservation.d.ts.map +1 -0
- package/dist/infrastructure/storage/state/readonly/readOnlyObservation.js +195 -0
- package/dist/infrastructure/storage/state/readonly/readOnlyObservation.js.map +1 -0
- package/dist/infrastructure/storage/state/resolution/resolutionWriter.d.ts +31 -0
- package/dist/infrastructure/storage/state/resolution/resolutionWriter.d.ts.map +1 -0
- package/dist/infrastructure/storage/state/resolution/resolutionWriter.js +563 -0
- package/dist/infrastructure/storage/state/resolution/resolutionWriter.js.map +1 -0
- package/dist/infrastructure/storage/state/resolution/resolutionWriterContracts.d.ts +118 -0
- package/dist/infrastructure/storage/state/resolution/resolutionWriterContracts.d.ts.map +1 -0
- package/dist/infrastructure/storage/state/resolution/resolutionWriterContracts.js +18 -0
- package/dist/infrastructure/storage/state/resolution/resolutionWriterContracts.js.map +1 -0
- package/dist/infrastructure/storage/state/resolution/resolutionWriterHelpers.d.ts +23 -0
- package/dist/infrastructure/storage/state/resolution/resolutionWriterHelpers.d.ts.map +1 -0
- package/dist/infrastructure/storage/state/resolution/resolutionWriterHelpers.js +84 -0
- package/dist/infrastructure/storage/state/resolution/resolutionWriterHelpers.js.map +1 -0
- package/dist/infrastructure/storage/state/resolution/resolutionWriterSql.d.ts +16 -0
- package/dist/infrastructure/storage/state/resolution/resolutionWriterSql.d.ts.map +1 -0
- package/dist/infrastructure/storage/state/resolution/resolutionWriterSql.js +97 -0
- package/dist/infrastructure/storage/state/resolution/resolutionWriterSql.js.map +1 -0
- package/dist/infrastructure/storage/sync/outbound/effectOutbox.d.ts +137 -0
- package/dist/infrastructure/storage/sync/outbound/effectOutbox.d.ts.map +1 -0
- package/dist/infrastructure/storage/sync/outbound/effectOutbox.js +396 -0
- package/dist/infrastructure/storage/sync/outbound/effectOutbox.js.map +1 -0
- package/dist/infrastructure/storage/sync/outbound/effectOutboxContracts.d.ts +101 -0
- package/dist/infrastructure/storage/sync/outbound/effectOutboxContracts.d.ts.map +1 -0
- package/dist/infrastructure/storage/sync/outbound/effectOutboxContracts.js +9 -0
- package/dist/infrastructure/storage/sync/outbound/effectOutboxContracts.js.map +1 -0
- package/dist/infrastructure/storage/sync/outbound/effectOutboxSql.d.ts +21 -0
- package/dist/infrastructure/storage/sync/outbound/effectOutboxSql.d.ts.map +1 -0
- package/dist/infrastructure/storage/sync/outbound/effectOutboxSql.js +184 -0
- package/dist/infrastructure/storage/sync/outbound/effectOutboxSql.js.map +1 -0
- package/dist/infrastructure/storage/sync/outbound/effectOutboxSupport.d.ts +25 -0
- package/dist/infrastructure/storage/sync/outbound/effectOutboxSupport.d.ts.map +1 -0
- package/dist/infrastructure/storage/sync/outbound/effectOutboxSupport.js +158 -0
- package/dist/infrastructure/storage/sync/outbound/effectOutboxSupport.js.map +1 -0
- package/dist/infrastructure/storage/sync/shared/syncRegistry.d.ts +69 -0
- package/dist/infrastructure/storage/sync/shared/syncRegistry.d.ts.map +1 -0
- package/dist/infrastructure/storage/sync/shared/syncRegistry.js +272 -0
- package/dist/infrastructure/storage/sync/shared/syncRegistry.js.map +1 -0
- package/dist/infrastructure/storage/sync/shared/writerLease.d.ts +90 -0
- package/dist/infrastructure/storage/sync/shared/writerLease.d.ts.map +1 -0
- package/dist/infrastructure/storage/sync/shared/writerLease.js +282 -0
- package/dist/infrastructure/storage/sync/shared/writerLease.js.map +1 -0
- package/dist/shared/constants.d.ts +8 -0
- package/dist/shared/constants.d.ts.map +1 -0
- package/dist/shared/constants.js +8 -0
- package/dist/shared/constants.js.map +1 -0
- package/dist/shared/encoding/constants.d.ts +45 -0
- package/dist/shared/encoding/constants.d.ts.map +1 -0
- package/dist/shared/encoding/constants.js +37 -0
- package/dist/shared/encoding/constants.js.map +1 -0
- package/dist/shared/encoding/index.d.ts +6 -0
- package/dist/shared/encoding/index.d.ts.map +1 -0
- package/dist/shared/encoding/index.js +4 -0
- package/dist/shared/encoding/index.js.map +1 -0
- package/dist/shared/encoding/stableEncode.d.ts +34 -0
- package/dist/shared/encoding/stableEncode.d.ts.map +1 -0
- package/dist/shared/encoding/stableEncode.js +210 -0
- package/dist/shared/encoding/stableEncode.js.map +1 -0
- package/dist/shared/encoding/typeGuards.d.ts +15 -0
- package/dist/shared/encoding/typeGuards.d.ts.map +1 -0
- package/dist/shared/encoding/typeGuards.js +11 -0
- package/dist/shared/encoding/typeGuards.js.map +1 -0
- package/dist/shared/encoding/types.d.ts +52 -0
- package/dist/shared/encoding/types.d.ts.map +1 -0
- package/dist/shared/encoding/types.js +8 -0
- package/dist/shared/encoding/types.js.map +1 -0
- package/dist/shared/index.d.ts +6 -0
- package/dist/shared/index.d.ts.map +1 -0
- package/dist/shared/index.js +6 -0
- package/dist/shared/index.js.map +1 -0
- package/dist/shared/state/constants.d.ts +16 -0
- package/dist/shared/state/constants.d.ts.map +1 -0
- package/dist/shared/state/constants.js +16 -0
- package/dist/shared/state/constants.js.map +1 -0
- package/dist/shared/state/index.d.ts +3 -0
- package/dist/shared/state/index.d.ts.map +1 -0
- package/dist/shared/state/index.js +2 -0
- package/dist/shared/state/index.js.map +1 -0
- package/dist/shared/state/types.d.ts +23 -0
- package/dist/shared/state/types.d.ts.map +1 -0
- package/dist/shared/state/types.js +2 -0
- package/dist/shared/state/types.js.map +1 -0
- package/dist/shared/validation.d.ts +9 -0
- package/dist/shared/validation.d.ts.map +1 -0
- package/dist/shared/validation.js +25 -0
- package/dist/shared/validation.js.map +1 -0
- package/docs/architecture.md +72 -0
- package/docs/code-guidelines.md +256 -0
- package/docs/development.md +48 -0
- package/docs/git-workflow.md +224 -0
- package/docs/mikro-orm-adapter-spike.md +248 -0
- package/docs/quick-start.md +102 -0
- package/docs/sql-layer-plan.md +59 -0
- package/docs/sync-bulk-write-benchmark.md +1036 -0
- package/docs/sync-observability.md +71 -0
- package/docs/task-queue-write-model.md +640 -0
- package/docs/typed-sheets-mvp-scope-2026-06-29.md +490 -0
- package/docs/typed-sheets-plan.md +417 -0
- package/docs/write-and-synchronization-flow.md +71 -0
- package/package.json +68 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"writerLease.js","sourceRoot":"","sources":["../../../../../src/infrastructure/storage/sync/shared/writerLease.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAG5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAElE,MAAM,qBAAqB,GACzB,mGAAmG,CAAC;AAEtG,MAAM,uBAAuB,GAAG;;;CAG/B,CAAC;AAEF,MAAM,sBAAsB,GAAG;;;;;CAK9B,CAAC;AAEF,MAAM,yBAAyB,GAAG;;;;CAIjC,CAAC;AAUF,yEAAyE;AACzE,MAAM,CAAC,MAAM,+BAA+B,GAA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3
|
+
export declare const EMPTY_ARRAY_LENGTH_ZERO: 0;
|
|
4
|
+
/** Smallest value accepted by positive-safe-integer contracts. */
|
|
5
|
+
export declare const POSITIVE_SAFE_INTEGER_MINIMUM: 1;
|
|
6
|
+
/** Smallest value accepted by non-negative-safe-integer contracts. */
|
|
7
|
+
export declare const NON_NEGATIVE_SAFE_INTEGER_MINIMUM: 0;
|
|
8
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/shared/constants.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,eAAO,MAAM,wBAAwB,EAAG,CAAU,CAAC;AACnD,eAAO,MAAM,uBAAuB,EAAG,CAAU,CAAC;AAElD,kEAAkE;AAClE,eAAO,MAAM,6BAA6B,EAAG,CAAU,CAAC;AAExD,sEAAsE;AACtE,eAAO,MAAM,iCAAiC,EAAG,CAAU,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Shared numeric sentinels used when a zero value carries a specific meaning. */
|
|
2
|
+
export const EMPTY_STRING_LENGTH_ZERO = 0;
|
|
3
|
+
export const EMPTY_ARRAY_LENGTH_ZERO = 0;
|
|
4
|
+
/** Smallest value accepted by positive-safe-integer contracts. */
|
|
5
|
+
export const POSITIVE_SAFE_INTEGER_MINIMUM = 1;
|
|
6
|
+
/** Smallest value accepted by non-negative-safe-integer contracts. */
|
|
7
|
+
export const NON_NEGATIVE_SAFE_INTEGER_MINIMUM = 0;
|
|
8
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/shared/constants.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAU,CAAC;AACnD,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAU,CAAC;AAElD,kEAAkE;AAClE,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAU,CAAC;AAExD,sEAAsE;AACtE,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAU,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/** Runtime names returned by JavaScript's typeof operator. */
|
|
2
|
+
export declare const JAVASCRIPT_TYPE_NAMES: {
|
|
3
|
+
readonly UNDEFINED: "undefined";
|
|
4
|
+
readonly OBJECT: "object";
|
|
5
|
+
readonly BOOLEAN: "boolean";
|
|
6
|
+
readonly NUMBER: "number";
|
|
7
|
+
readonly BIGINT: "bigint";
|
|
8
|
+
readonly STRING: "string";
|
|
9
|
+
readonly SYMBOL: "symbol";
|
|
10
|
+
readonly FUNCTION: "function";
|
|
11
|
+
};
|
|
12
|
+
/** Closed set of JavaScript typeof result names. */
|
|
13
|
+
export type JavaScriptTypeName = (typeof JAVASCRIPT_TYPE_NAMES)[keyof typeof JAVASCRIPT_TYPE_NAMES];
|
|
14
|
+
/** Stable machine-readable error codes emitted by the encoder. */
|
|
15
|
+
export declare const STABLE_ENCODING_ERROR_CODES: {
|
|
16
|
+
readonly UNSUPPORTED_VALUE_TYPE: "unsupported_value_type";
|
|
17
|
+
readonly NON_FINITE_NUMBER: "non_finite_number";
|
|
18
|
+
readonly INVALID_DATE_FORMAT: "invalid_date_format";
|
|
19
|
+
readonly INVALID_DATE_BYTE_LENGTH: "invalid_date_byte_length";
|
|
20
|
+
readonly DUPLICATE_OBJECT_KEY: "duplicate_object_key";
|
|
21
|
+
readonly UNPAIRED_HIGH_SURROGATE: "unpaired_high_surrogate";
|
|
22
|
+
readonly UNPAIRED_LOW_SURROGATE: "unpaired_low_surrogate";
|
|
23
|
+
};
|
|
24
|
+
/** Closed set of stable encoder error codes. */
|
|
25
|
+
export type StableEncodingErrorCode = (typeof STABLE_ENCODING_ERROR_CODES)[keyof typeof STABLE_ENCODING_ERROR_CODES];
|
|
26
|
+
/** Runtime values for normalized cell value kinds. */
|
|
27
|
+
export declare const NORMALIZED_CELL_KINDS: {
|
|
28
|
+
readonly STRING: "string";
|
|
29
|
+
readonly NUMBER: "number";
|
|
30
|
+
readonly BOOLEAN: "boolean";
|
|
31
|
+
readonly DATE: "date";
|
|
32
|
+
};
|
|
33
|
+
/** Closed set of normalized cell value kinds. */
|
|
34
|
+
export type NormalizedCellKind = (typeof NORMALIZED_CELL_KINDS)[keyof typeof NORMALIZED_CELL_KINDS];
|
|
35
|
+
/** Runtime values for physical Sheet cell observation kinds. */
|
|
36
|
+
export declare const CELL_OBSERVATION_KINDS: {
|
|
37
|
+
readonly BLANK: "blank";
|
|
38
|
+
readonly LITERAL: "literal";
|
|
39
|
+
readonly FORMULA: "formula";
|
|
40
|
+
readonly MERGED: "merged";
|
|
41
|
+
readonly ERROR: "error";
|
|
42
|
+
};
|
|
43
|
+
/** Closed set of physical Sheet cell observation kinds. */
|
|
44
|
+
export type CellObservationKind = (typeof CELL_OBSERVATION_KINDS)[keyof typeof CELL_OBSERVATION_KINDS];
|
|
45
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/shared/encoding/constants.ts"],"names":[],"mappings":"AAAA,8DAA8D;AAC9D,eAAO,MAAM,qBAAqB;;;;;;;;;CASxB,CAAC;AAEX,oDAAoD;AACpD,MAAM,MAAM,kBAAkB,GAC5B,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,OAAO,qBAAqB,CAAC,CAAC;AAErE,kEAAkE;AAClE,eAAO,MAAM,2BAA2B;;;;;;;;CAQ9B,CAAC;AAEX,gDAAgD;AAChD,MAAM,MAAM,uBAAuB,GACjC,CAAC,OAAO,2BAA2B,CAAC,CAAC,MAAM,OAAO,2BAA2B,CAAC,CAAC;AAEjF,sDAAsD;AACtD,eAAO,MAAM,qBAAqB;;;;;CAKxB,CAAC;AAEX,iDAAiD;AACjD,MAAM,MAAM,kBAAkB,GAC5B,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,OAAO,qBAAqB,CAAC,CAAC;AAErE,gEAAgE;AAChE,eAAO,MAAM,sBAAsB;;;;;;CAMzB,CAAC;AAEX,2DAA2D;AAC3D,MAAM,MAAM,mBAAmB,GAC7B,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/** Runtime names returned by JavaScript's typeof operator. */
|
|
2
|
+
export const JAVASCRIPT_TYPE_NAMES = {
|
|
3
|
+
UNDEFINED: "undefined",
|
|
4
|
+
OBJECT: "object",
|
|
5
|
+
BOOLEAN: "boolean",
|
|
6
|
+
NUMBER: "number",
|
|
7
|
+
BIGINT: "bigint",
|
|
8
|
+
STRING: "string",
|
|
9
|
+
SYMBOL: "symbol",
|
|
10
|
+
FUNCTION: "function",
|
|
11
|
+
};
|
|
12
|
+
/** Stable machine-readable error codes emitted by the encoder. */
|
|
13
|
+
export const STABLE_ENCODING_ERROR_CODES = {
|
|
14
|
+
UNSUPPORTED_VALUE_TYPE: "unsupported_value_type",
|
|
15
|
+
NON_FINITE_NUMBER: "non_finite_number",
|
|
16
|
+
INVALID_DATE_FORMAT: "invalid_date_format",
|
|
17
|
+
INVALID_DATE_BYTE_LENGTH: "invalid_date_byte_length",
|
|
18
|
+
DUPLICATE_OBJECT_KEY: "duplicate_object_key",
|
|
19
|
+
UNPAIRED_HIGH_SURROGATE: "unpaired_high_surrogate",
|
|
20
|
+
UNPAIRED_LOW_SURROGATE: "unpaired_low_surrogate",
|
|
21
|
+
};
|
|
22
|
+
/** Runtime values for normalized cell value kinds. */
|
|
23
|
+
export const NORMALIZED_CELL_KINDS = {
|
|
24
|
+
STRING: "string",
|
|
25
|
+
NUMBER: "number",
|
|
26
|
+
BOOLEAN: "boolean",
|
|
27
|
+
DATE: "date",
|
|
28
|
+
};
|
|
29
|
+
/** Runtime values for physical Sheet cell observation kinds. */
|
|
30
|
+
export const CELL_OBSERVATION_KINDS = {
|
|
31
|
+
BLANK: "blank",
|
|
32
|
+
LITERAL: "literal",
|
|
33
|
+
FORMULA: "formula",
|
|
34
|
+
MERGED: "merged",
|
|
35
|
+
ERROR: "error",
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/shared/encoding/constants.ts"],"names":[],"mappings":"AAAA,8DAA8D;AAC9D,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;CACZ,CAAC;AAMX,kEAAkE;AAClE,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,sBAAsB,EAAE,wBAAwB;IAChD,iBAAiB,EAAE,mBAAmB;IACtC,mBAAmB,EAAE,qBAAqB;IAC1C,wBAAwB,EAAE,0BAA0B;IACpD,oBAAoB,EAAE,sBAAsB;IAC5C,uBAAuB,EAAE,yBAAyB;IAClD,sBAAsB,EAAE,wBAAwB;CACxC,CAAC;AAMX,sDAAsD;AACtD,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;CACJ,CAAC;AAMX,gEAAgE;AAChE,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;CACN,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { stableEncode, stableHash } from "./stableEncode.js";
|
|
2
|
+
export { isJavaScriptType, isRecord } from "./typeGuards.js";
|
|
3
|
+
export { CELL_OBSERVATION_KINDS, JAVASCRIPT_TYPE_NAMES, NORMALIZED_CELL_KINDS, STABLE_ENCODING_ERROR_CODES, } from "./constants.js";
|
|
4
|
+
export type { CellObservationKind, NormalizedCell, NormalizedCellKind, DateValue, CellObservation, StableValue, } from "./types.js";
|
|
5
|
+
export type { JavaScriptTypeName, StableEncodingErrorCode, } from "./constants.js";
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shared/encoding/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EACL,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,2BAA2B,GAC5B,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACV,mBAAmB,EACnB,cAAc,EACd,kBAAkB,EAClB,SAAS,EACT,eAAe,EACf,WAAW,GACZ,MAAM,YAAY,CAAC;AACpB,YAAY,EACV,kBAAkB,EAClB,uBAAuB,GACxB,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { stableEncode, stableHash } from "./stableEncode.js";
|
|
2
|
+
export { isJavaScriptType, isRecord } from "./typeGuards.js";
|
|
3
|
+
export { CELL_OBSERVATION_KINDS, JAVASCRIPT_TYPE_NAMES, NORMALIZED_CELL_KINDS, STABLE_ENCODING_ERROR_CODES, } from "./constants.js";
|
|
4
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/shared/encoding/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EACL,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,2BAA2B,GAC5B,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `stable_encode_v1` — deterministic cross-runtime byte encoding.
|
|
3
|
+
*
|
|
4
|
+
* Grammar (no whitespace between tokens):
|
|
5
|
+
*
|
|
6
|
+
* ```
|
|
7
|
+
* null := "n"
|
|
8
|
+
* boolean := "b0" | "b1"
|
|
9
|
+
* string := "s" <utf8ByteLength> ":" <NFC UTF-8 bytes>
|
|
10
|
+
* number := "f" <asciiByteLength> ":" <canonical finite decimal>
|
|
11
|
+
* date := "d" "24" ":" <UTC YYYY-MM-DDTHH:mm:ss.SSSZ>
|
|
12
|
+
* array := "a" <count> "[" <value>* "]"
|
|
13
|
+
* object := "o" <count> "{" (<encoded string key> <value>)* "}"
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* Rules:
|
|
17
|
+
* - string and object key bytes are NFC-normalized then UTF-8 byte-length prefixed
|
|
18
|
+
* - object keys are sorted by UTF-8 byte lexicographic order
|
|
19
|
+
* - array order is preserved
|
|
20
|
+
* - number is the shortest round-trip decimal of its IEEE-754 binary64 value
|
|
21
|
+
* - -0 is unified to 0; NaN/Infinity are rejected
|
|
22
|
+
* - date payload is always 24 bytes: YYYY-MM-DDTHH:mm:ss.SSSZ
|
|
23
|
+
*
|
|
24
|
+
* The SHA-256 hex of the encoded bytes is the canonical fingerprint.
|
|
25
|
+
*/
|
|
26
|
+
import type { StableValue } from "./types.js";
|
|
27
|
+
/**
|
|
28
|
+
* Encodes a stable value to its canonical byte sequence.
|
|
29
|
+
* Throws on unsupported values (NaN, Infinity, non-finite numbers).
|
|
30
|
+
*/
|
|
31
|
+
export declare function stableEncode(value: StableValue): Uint8Array;
|
|
32
|
+
/** SHA-256 hex of the stable encoding. This is the canonical fingerprint. */
|
|
33
|
+
export declare function stableHash(value: StableValue): string;
|
|
34
|
+
//# sourceMappingURL=stableEncode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stableEncode.d.ts","sourceRoot":"","sources":["../../../src/shared/encoding/stableEncode.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AASH,OAAO,KAAK,EAAa,WAAW,EAAE,MAAM,YAAY,CAAC;AAGzD;;;GAGG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,WAAW,GAAG,UAAU,CAI3D;AAED,6EAA6E;AAC7E,wBAAgB,UAAU,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM,CAErD"}
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `stable_encode_v1` — deterministic cross-runtime byte encoding.
|
|
3
|
+
*
|
|
4
|
+
* Grammar (no whitespace between tokens):
|
|
5
|
+
*
|
|
6
|
+
* ```
|
|
7
|
+
* null := "n"
|
|
8
|
+
* boolean := "b0" | "b1"
|
|
9
|
+
* string := "s" <utf8ByteLength> ":" <NFC UTF-8 bytes>
|
|
10
|
+
* number := "f" <asciiByteLength> ":" <canonical finite decimal>
|
|
11
|
+
* date := "d" "24" ":" <UTC YYYY-MM-DDTHH:mm:ss.SSSZ>
|
|
12
|
+
* array := "a" <count> "[" <value>* "]"
|
|
13
|
+
* object := "o" <count> "{" (<encoded string key> <value>)* "}"
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* Rules:
|
|
17
|
+
* - string and object key bytes are NFC-normalized then UTF-8 byte-length prefixed
|
|
18
|
+
* - object keys are sorted by UTF-8 byte lexicographic order
|
|
19
|
+
* - array order is preserved
|
|
20
|
+
* - number is the shortest round-trip decimal of its IEEE-754 binary64 value
|
|
21
|
+
* - -0 is unified to 0; NaN/Infinity are rejected
|
|
22
|
+
* - date payload is always 24 bytes: YYYY-MM-DDTHH:mm:ss.SSSZ
|
|
23
|
+
*
|
|
24
|
+
* The SHA-256 hex of the encoded bytes is the canonical fingerprint.
|
|
25
|
+
*/
|
|
26
|
+
import { createHash } from "node:crypto";
|
|
27
|
+
import { JAVASCRIPT_TYPE_NAMES, NORMALIZED_CELL_KINDS, STABLE_ENCODING_ERROR_CODES, } from "./constants.js";
|
|
28
|
+
import { isJavaScriptType } from "./typeGuards.js";
|
|
29
|
+
import { StableEncodingError } from "../../domain/errors/stableEncoding.js";
|
|
30
|
+
/**
|
|
31
|
+
* Encodes a stable value to its canonical byte sequence.
|
|
32
|
+
* Throws on unsupported values (NaN, Infinity, non-finite numbers).
|
|
33
|
+
*/
|
|
34
|
+
export function stableEncode(value) {
|
|
35
|
+
const chunks = [];
|
|
36
|
+
encodeValue(value, chunks);
|
|
37
|
+
return concat(chunks);
|
|
38
|
+
}
|
|
39
|
+
/** SHA-256 hex of the stable encoding. This is the canonical fingerprint. */
|
|
40
|
+
export function stableHash(value) {
|
|
41
|
+
return createHash("sha256").update(stableEncode(value)).digest("hex");
|
|
42
|
+
}
|
|
43
|
+
function encodeValue(value, chunks) {
|
|
44
|
+
if (value === null) {
|
|
45
|
+
chunks.push(ascii("n"));
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
if (value === true) {
|
|
49
|
+
chunks.push(ascii("b1"));
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
if (value === false) {
|
|
53
|
+
chunks.push(ascii("b0"));
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
if (isJavaScriptType(value, JAVASCRIPT_TYPE_NAMES.NUMBER)) {
|
|
57
|
+
encodeNumber(value, chunks);
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
if (isJavaScriptType(value, JAVASCRIPT_TYPE_NAMES.STRING)) {
|
|
61
|
+
encodeString(value, chunks);
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
if (isDateValue(value)) {
|
|
65
|
+
encodeDate(value.value, chunks);
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
if (Array.isArray(value)) {
|
|
69
|
+
encodeArray(value, chunks);
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
if (isJavaScriptType(value, JAVASCRIPT_TYPE_NAMES.OBJECT)) {
|
|
73
|
+
encodeObject(value, chunks);
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
throw new StableEncodingError(STABLE_ENCODING_ERROR_CODES.UNSUPPORTED_VALUE_TYPE, `stable_encode: unsupported value type: ${typeof value}`);
|
|
77
|
+
}
|
|
78
|
+
function encodeNumber(value, chunks) {
|
|
79
|
+
if (!Number.isFinite(value)) {
|
|
80
|
+
throw new StableEncodingError(STABLE_ENCODING_ERROR_CODES.NON_FINITE_NUMBER, `stable_encode: non-finite number: ${value}`);
|
|
81
|
+
}
|
|
82
|
+
const unified = value === 0 ? 0 : value; // unify -0 to 0
|
|
83
|
+
const decimal = shortestRoundTripDecimal(unified);
|
|
84
|
+
const encoded = ascii(decimal);
|
|
85
|
+
const lengthPrefix = ascii(`f${encoded.length}:`);
|
|
86
|
+
chunks.push(lengthPrefix, encoded);
|
|
87
|
+
}
|
|
88
|
+
function encodeString(value, chunks) {
|
|
89
|
+
const nfc = normalizeScalarString(value);
|
|
90
|
+
const bytes = textEncode(nfc);
|
|
91
|
+
const lengthPrefix = ascii(`s${bytes.length}:`);
|
|
92
|
+
chunks.push(lengthPrefix, bytes);
|
|
93
|
+
}
|
|
94
|
+
function encodeDate(iso, chunks) {
|
|
95
|
+
if (!DATE_REGEX.test(iso) || !isCanonicalDate(iso)) {
|
|
96
|
+
throw new StableEncodingError(STABLE_ENCODING_ERROR_CODES.INVALID_DATE_FORMAT, `stable_encode: invalid date format: ${iso}`);
|
|
97
|
+
}
|
|
98
|
+
const bytes = textEncode(iso);
|
|
99
|
+
if (bytes.length !== 24) {
|
|
100
|
+
throw new StableEncodingError(STABLE_ENCODING_ERROR_CODES.INVALID_DATE_BYTE_LENGTH, `stable_encode: date must be exactly 24 bytes, got ${bytes.length}`);
|
|
101
|
+
}
|
|
102
|
+
chunks.push(ascii("d24:"), bytes);
|
|
103
|
+
}
|
|
104
|
+
function encodeArray(values, chunks) {
|
|
105
|
+
chunks.push(ascii(`a${values.length}[`));
|
|
106
|
+
for (const v of values) {
|
|
107
|
+
encodeValue(v, chunks);
|
|
108
|
+
}
|
|
109
|
+
chunks.push(ascii("]"));
|
|
110
|
+
}
|
|
111
|
+
function encodeObject(obj, chunks) {
|
|
112
|
+
const keys = Object.keys(obj);
|
|
113
|
+
const entries = [];
|
|
114
|
+
const normalizedKeys = new Set();
|
|
115
|
+
for (const key of keys) {
|
|
116
|
+
const nfcKey = normalizeScalarString(key);
|
|
117
|
+
if (normalizedKeys.has(nfcKey)) {
|
|
118
|
+
throw new StableEncodingError(STABLE_ENCODING_ERROR_CODES.DUPLICATE_OBJECT_KEY, `stable_encode: duplicate object key after NFC normalization: ${nfcKey}`);
|
|
119
|
+
}
|
|
120
|
+
normalizedKeys.add(nfcKey);
|
|
121
|
+
const encodedKey = textEncode(nfcKey);
|
|
122
|
+
entries.push([encodedKey, nfcKey, obj[key]]);
|
|
123
|
+
}
|
|
124
|
+
entries.sort((a, b) => compareBytes(a[0], b[0]));
|
|
125
|
+
chunks.push(ascii(`o${entries.length}{`));
|
|
126
|
+
for (const [encodedKey, , val] of entries) {
|
|
127
|
+
const lengthPrefix = ascii(`s${encodedKey.length}:`);
|
|
128
|
+
chunks.push(lengthPrefix, encodedKey);
|
|
129
|
+
encodeValue(val, chunks);
|
|
130
|
+
}
|
|
131
|
+
chunks.push(ascii("}"));
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Produces the shortest decimal representation that round-trips to the same
|
|
135
|
+
* IEEE-754 binary64 value.
|
|
136
|
+
*
|
|
137
|
+
* - Uses the V8 `toString` which already gives shortest round-trip for most
|
|
138
|
+
* numbers. We normalize exponent format to use lowercase `e` with no leading
|
|
139
|
+
* zero in the exponent.
|
|
140
|
+
* - Integers are emitted without a decimal point.
|
|
141
|
+
*/
|
|
142
|
+
function shortestRoundTripDecimal(value) {
|
|
143
|
+
const str = value.toString();
|
|
144
|
+
// Normalize exponent: V8 uses "e+21" or "e-7", we want "e21" and "e-7"
|
|
145
|
+
return str.replace(/e([+-])0*(\d)/, (_, sign, digit) => {
|
|
146
|
+
const expSign = sign === "-" ? "-" : "";
|
|
147
|
+
return `e${expSign}${digit}`;
|
|
148
|
+
}).replace(/e\+/, "e");
|
|
149
|
+
}
|
|
150
|
+
const DATE_REGEX = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;
|
|
151
|
+
function isDateValue(value) {
|
|
152
|
+
return (isJavaScriptType(value, JAVASCRIPT_TYPE_NAMES.OBJECT) &&
|
|
153
|
+
value !== null &&
|
|
154
|
+
!Array.isArray(value) &&
|
|
155
|
+
Object.keys(value).length === 2 &&
|
|
156
|
+
value.kind === NORMALIZED_CELL_KINDS.DATE &&
|
|
157
|
+
isJavaScriptType(value.value, JAVASCRIPT_TYPE_NAMES.STRING));
|
|
158
|
+
}
|
|
159
|
+
/** Rejects unpaired UTF-16 surrogates instead of letting TextEncoder replace them. */
|
|
160
|
+
function normalizeScalarString(value) {
|
|
161
|
+
for (let index = 0; index < value.length; index += 1) {
|
|
162
|
+
const codeUnit = value.charCodeAt(index);
|
|
163
|
+
if (codeUnit >= 0xd800 && codeUnit <= 0xdbff) {
|
|
164
|
+
const next = value.charCodeAt(index + 1);
|
|
165
|
+
if (!Number.isInteger(next) || next < 0xdc00 || next > 0xdfff) {
|
|
166
|
+
throw new StableEncodingError(STABLE_ENCODING_ERROR_CODES.UNPAIRED_HIGH_SURROGATE, "stable_encode: string contains an unpaired high surrogate");
|
|
167
|
+
}
|
|
168
|
+
index += 1;
|
|
169
|
+
continue;
|
|
170
|
+
}
|
|
171
|
+
if (codeUnit >= 0xdc00 && codeUnit <= 0xdfff) {
|
|
172
|
+
throw new StableEncodingError(STABLE_ENCODING_ERROR_CODES.UNPAIRED_LOW_SURROGATE, "stable_encode: string contains an unpaired low surrogate");
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
return value.normalize("NFC");
|
|
176
|
+
}
|
|
177
|
+
function isCanonicalDate(value) {
|
|
178
|
+
const timestamp = Date.parse(value);
|
|
179
|
+
return Number.isFinite(timestamp) && new Date(timestamp).toISOString() === value;
|
|
180
|
+
}
|
|
181
|
+
function ascii(s) {
|
|
182
|
+
return textEncode(s);
|
|
183
|
+
}
|
|
184
|
+
function textEncode(s) {
|
|
185
|
+
return new TextEncoder().encode(s);
|
|
186
|
+
}
|
|
187
|
+
function concat(chunks) {
|
|
188
|
+
let total = 0;
|
|
189
|
+
for (const c of chunks) {
|
|
190
|
+
total += c.length;
|
|
191
|
+
}
|
|
192
|
+
const result = new Uint8Array(total);
|
|
193
|
+
let offset = 0;
|
|
194
|
+
for (const c of chunks) {
|
|
195
|
+
result.set(c, offset);
|
|
196
|
+
offset += c.length;
|
|
197
|
+
}
|
|
198
|
+
return result;
|
|
199
|
+
}
|
|
200
|
+
function compareBytes(a, b) {
|
|
201
|
+
const min = Math.min(a.length, b.length);
|
|
202
|
+
for (let i = 0; i < min; i++) {
|
|
203
|
+
if (a[i] < b[i])
|
|
204
|
+
return -1;
|
|
205
|
+
if (a[i] > b[i])
|
|
206
|
+
return 1;
|
|
207
|
+
}
|
|
208
|
+
return a.length - b.length;
|
|
209
|
+
}
|
|
210
|
+
//# sourceMappingURL=stableEncode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stableEncode.js","sourceRoot":"","sources":["../../../src/shared/encoding/stableEncode.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OA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GAAG,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;QACtB,MAAM,IAAI,CAAC,CAAC,MAAM,CAAC;IACrB,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,SAAS,YAAY,CAAC,CAAa,EAAE,CAAa;IAChD,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC;IACzC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC;QAC7B,IAAI,CAAC,CAAC,CAAC,CAAE,GAAG,CAAC,CAAC,CAAC,CAAE;YAAE,OAAO,CAAC,CAAC,CAAC;QAC7B,IAAI,CAAC,CAAC,CAAC,CAAE,GAAG,CAAC,CAAC,CAAC,CAAE;YAAE,OAAO,CAAC,CAAC;IAC9B,CAAC;IACD,OAAO,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;AAC7B,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { JAVASCRIPT_TYPE_NAMES } from "./constants.js";
|
|
2
|
+
/** Checks a JavaScript value against a shared typeof name and narrows it. */
|
|
3
|
+
export declare function isJavaScriptType(value: unknown, type: typeof JAVASCRIPT_TYPE_NAMES.STRING): value is string;
|
|
4
|
+
export declare function isJavaScriptType(value: unknown, type: typeof JAVASCRIPT_TYPE_NAMES.NUMBER): value is number;
|
|
5
|
+
export declare function isJavaScriptType(value: unknown, type: typeof JAVASCRIPT_TYPE_NAMES.BOOLEAN): value is boolean;
|
|
6
|
+
export declare function isJavaScriptType(value: unknown, type: typeof JAVASCRIPT_TYPE_NAMES.BIGINT): value is bigint;
|
|
7
|
+
export declare function isJavaScriptType(value: unknown, type: typeof JAVASCRIPT_TYPE_NAMES.SYMBOL): value is symbol;
|
|
8
|
+
export declare function isJavaScriptType(value: unknown, type: typeof JAVASCRIPT_TYPE_NAMES.UNDEFINED): value is undefined;
|
|
9
|
+
export declare function isJavaScriptType(value: unknown, type: typeof JAVASCRIPT_TYPE_NAMES.OBJECT): value is object | null;
|
|
10
|
+
export declare function isJavaScriptType(value: unknown, type: typeof JAVASCRIPT_TYPE_NAMES.FUNCTION): value is {
|
|
11
|
+
readonly name?: string;
|
|
12
|
+
};
|
|
13
|
+
/** Checks whether a value is a non-null, non-array object record. */
|
|
14
|
+
export declare function isRecord(value: unknown): value is Record<string, unknown>;
|
|
15
|
+
//# sourceMappingURL=typeGuards.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typeGuards.d.ts","sourceRoot":"","sources":["../../../src/shared/encoding/typeGuards.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAGvD,6EAA6E;AAC7E,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,OAAO,EACd,IAAI,EAAE,OAAO,qBAAqB,CAAC,MAAM,GACxC,KAAK,IAAI,MAAM,CAAC;AACnB,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,OAAO,EACd,IAAI,EAAE,OAAO,qBAAqB,CAAC,MAAM,GACxC,KAAK,IAAI,MAAM,CAAC;AACnB,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,OAAO,EACd,IAAI,EAAE,OAAO,qBAAqB,CAAC,OAAO,GACzC,KAAK,IAAI,OAAO,CAAC;AACpB,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,OAAO,EACd,IAAI,EAAE,OAAO,qBAAqB,CAAC,MAAM,GACxC,KAAK,IAAI,MAAM,CAAC;AACnB,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,OAAO,EACd,IAAI,EAAE,OAAO,qBAAqB,CAAC,MAAM,GACxC,KAAK,IAAI,MAAM,CAAC;AACnB,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,OAAO,EACd,IAAI,EAAE,OAAO,qBAAqB,CAAC,SAAS,GAC3C,KAAK,IAAI,SAAS,CAAC;AACtB,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,OAAO,EACd,IAAI,EAAE,OAAO,qBAAqB,CAAC,MAAM,GACxC,KAAK,IAAI,MAAM,GAAG,IAAI,CAAC;AAC1B,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,OAAO,EACd,IAAI,EAAE,OAAO,qBAAqB,CAAC,QAAQ,GAC1C,KAAK,IAAI;IAAE,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAKvC,qEAAqE;AACrE,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAMzE"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { JAVASCRIPT_TYPE_NAMES } from "./constants.js";
|
|
2
|
+
export function isJavaScriptType(value, type) {
|
|
3
|
+
return typeof value === type;
|
|
4
|
+
}
|
|
5
|
+
/** Checks whether a value is a non-null, non-array object record. */
|
|
6
|
+
export function isRecord(value) {
|
|
7
|
+
return (isJavaScriptType(value, JAVASCRIPT_TYPE_NAMES.OBJECT) &&
|
|
8
|
+
value !== null &&
|
|
9
|
+
!Array.isArray(value));
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=typeGuards.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typeGuards.js","sourceRoot":"","sources":["../../../src/shared/encoding/typeGuards.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAoCvD,MAAM,UAAU,gBAAgB,CAAC,KAAc,EAAE,IAAwB;IACvE,OAAO,OAAO,KAAK,KAAK,IAAI,CAAC;AAC/B,CAAC;AAED,qEAAqE;AACrE,MAAM,UAAU,QAAQ,CAAC,KAAc;IACrC,OAAO,CACL,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,CAAC,MAAM,CAAC;QACrD,KAAK,KAAK,IAAI;QACd,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CACtB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Normalized cell and stable encoding types.
|
|
3
|
+
*
|
|
4
|
+
* These types are the foundation for cross-runtime fingerprinting and event
|
|
5
|
+
* identity. They contain no Google SDK, SQLite, or platform-specific types.
|
|
6
|
+
*/
|
|
7
|
+
import { NORMALIZED_CELL_KINDS } from "./constants.js";
|
|
8
|
+
import type { CellObservationKind } from "./constants.js";
|
|
9
|
+
import type { Presence } from "../state/types.js";
|
|
10
|
+
export type { CellObservationKind, NormalizedCellKind } from "./constants.js";
|
|
11
|
+
/** A date encoded as a fixed-width UTC ISO-8601 string. */
|
|
12
|
+
export interface DateValue {
|
|
13
|
+
readonly kind: typeof NORMALIZED_CELL_KINDS.DATE;
|
|
14
|
+
readonly value: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* A normalized scalar value that can be deterministically encoded.
|
|
18
|
+
*
|
|
19
|
+
* `null` represents an empty cell. An explicit empty string is
|
|
20
|
+
* `{ kind: "string", value: "" }`.
|
|
21
|
+
*/
|
|
22
|
+
export type NormalizedCell = null | {
|
|
23
|
+
readonly kind: typeof NORMALIZED_CELL_KINDS.STRING;
|
|
24
|
+
readonly value: string;
|
|
25
|
+
} | {
|
|
26
|
+
readonly kind: typeof NORMALIZED_CELL_KINDS.NUMBER;
|
|
27
|
+
readonly value: number;
|
|
28
|
+
} | {
|
|
29
|
+
readonly kind: typeof NORMALIZED_CELL_KINDS.BOOLEAN;
|
|
30
|
+
readonly value: boolean;
|
|
31
|
+
} | DateValue;
|
|
32
|
+
/**
|
|
33
|
+
* Metadata describing the physical state of a Sheet cell, separate from its
|
|
34
|
+
* normalized value. Used by observation to decide whether a cell can be
|
|
35
|
+
* processed or must be quarantined.
|
|
36
|
+
*/
|
|
37
|
+
export interface CellObservation {
|
|
38
|
+
readonly cellKind: CellObservationKind;
|
|
39
|
+
readonly normalizedCell: NormalizedCell;
|
|
40
|
+
readonly formulaHash: Presence<string>;
|
|
41
|
+
readonly mergeRange: Presence<string>;
|
|
42
|
+
readonly errorCode: Presence<string>;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Any value that stable_encode_v1 can encode: scalars, arrays, dates, and
|
|
46
|
+
* objects with string keys. Objects with `kind: "date"` are encoded as dates,
|
|
47
|
+
* not as plain objects.
|
|
48
|
+
*/
|
|
49
|
+
export type StableValue = null | boolean | number | string | DateValue | readonly StableValue[] | {
|
|
50
|
+
readonly [key: string]: StableValue;
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/shared/encoding/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,qBAAqB,EACtB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,mBAAmB,EAAsB,MAAM,gBAAgB,CAAC;AAC9E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD,YAAY,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAE9E,2DAA2D;AAC3D,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,IAAI,EAAE,OAAO,qBAAqB,CAAC,IAAI,CAAC;IACjD,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GACtB,IAAI,GACJ;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,qBAAqB,CAAC,MAAM,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAC9E;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,qBAAqB,CAAC,MAAM,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAC9E;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,qBAAqB,CAAC,OAAO,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAA;CAAE,GAChF,SAAS,CAAC;AAEd;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,QAAQ,EAAE,mBAAmB,CAAC;IACvC,QAAQ,CAAC,cAAc,EAAE,cAAc,CAAC;IACxC,QAAQ,CAAC,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IACvC,QAAQ,CAAC,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IACtC,QAAQ,CAAC,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;CACtC;AAED;;;;GAIG;AACH,MAAM,MAAM,WAAW,GACnB,IAAI,GACJ,OAAO,GACP,MAAM,GACN,MAAM,GACN,SAAS,GACT,SAAS,WAAW,EAAE,GACtB;IAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,WAAW,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/shared/encoding/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/shared/index.ts"],"names":[],"mappings":"AAAA,yEAAyE;AAEzE,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/shared/index.ts"],"names":[],"mappings":"AAAA,yEAAyE;AAEzE,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** Runtime tags for values that may be present or absent. */
|
|
2
|
+
export declare const PRESENCE_KINDS: {
|
|
3
|
+
readonly PRESENT: "present";
|
|
4
|
+
readonly ABSENT: "absent";
|
|
5
|
+
};
|
|
6
|
+
/** Runtime tags for lookup results. */
|
|
7
|
+
export declare const LOOKUP_RESULT_KINDS: {
|
|
8
|
+
readonly FOUND: "found";
|
|
9
|
+
readonly NOT_FOUND: "not_found";
|
|
10
|
+
};
|
|
11
|
+
/** Runtime tags for values that may apply to an operation. */
|
|
12
|
+
export declare const APPLICABILITY_KINDS: {
|
|
13
|
+
readonly APPLICABLE: "applicable";
|
|
14
|
+
readonly NOT_APPLICABLE: "not_applicable";
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/shared/state/constants.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,eAAO,MAAM,cAAc;;;CAGjB,CAAC;AAEX,uCAAuC;AACvC,eAAO,MAAM,mBAAmB;;;CAGtB,CAAC;AAEX,8DAA8D;AAC9D,eAAO,MAAM,mBAAmB;;;CAGtB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** Runtime tags for values that may be present or absent. */
|
|
2
|
+
export const PRESENCE_KINDS = {
|
|
3
|
+
PRESENT: "present",
|
|
4
|
+
ABSENT: "absent",
|
|
5
|
+
};
|
|
6
|
+
/** Runtime tags for lookup results. */
|
|
7
|
+
export const LOOKUP_RESULT_KINDS = {
|
|
8
|
+
FOUND: "found",
|
|
9
|
+
NOT_FOUND: "not_found",
|
|
10
|
+
};
|
|
11
|
+
/** Runtime tags for values that may apply to an operation. */
|
|
12
|
+
export const APPLICABILITY_KINDS = {
|
|
13
|
+
APPLICABLE: "applicable",
|
|
14
|
+
NOT_APPLICABLE: "not_applicable",
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/shared/state/constants.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;CACR,CAAC;AAEX,uCAAuC;AACvC,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,KAAK,EAAE,OAAO;IACd,SAAS,EAAE,WAAW;CACd,CAAC;AAEX,8DAA8D;AAC9D,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,UAAU,EAAE,YAAY;IACxB,cAAc,EAAE,gBAAgB;CACxB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shared/state/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,GACf,MAAM,gBAAgB,CAAC;AACxB,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/shared/state/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,GACf,MAAM,gBAAgB,CAAC"}
|