@camstack/system 1.2.458 → 1.2.459
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/dist/{agent-https-DOELEug8.js → agent-https-Dnr_nIVx.js} +3 -723
- package/dist/{agent-https-CQA3W-3e.mjs → agent-https-Iw3RSQup.mjs} +4 -616
- package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
- package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/dist/builtins/alerts/alerts.addon.js +5 -7
- package/dist/builtins/alerts/alerts.addon.mjs +5 -7
- package/dist/builtins/alerts/record-kinds.d.ts +1 -1
- package/dist/builtins/autotrack/index.js +1 -1
- package/dist/builtins/autotrack/index.mjs +1 -1
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +242 -4
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +240 -2
- package/dist/builtins/calendars/calendars.addon.js +2 -10
- package/dist/builtins/calendars/calendars.addon.mjs +2 -3
- package/dist/builtins/calendars/record-kinds.d.ts +1 -1
- package/dist/builtins/camera-grid/index.js +1 -1
- package/dist/builtins/camera-grid/index.mjs +1 -1
- package/dist/builtins/composer/composer.addon.js +2 -2
- package/dist/builtins/composer/composer.addon.mjs +2 -2
- package/dist/builtins/console-logging/index.js +1 -1
- package/dist/builtins/console-logging/index.mjs +1 -1
- package/dist/builtins/core-blocks/core-blocks.addon.js +4 -6
- package/dist/builtins/core-blocks/core-blocks.addon.mjs +4 -6
- package/dist/builtins/device-history/device-history.addon.js +1 -1
- package/dist/builtins/device-history/device-history.addon.mjs +1 -1
- package/dist/builtins/device-manager/device-manager.addon.js +2 -4
- package/dist/builtins/device-manager/device-manager.addon.mjs +2 -4
- package/dist/builtins/hub-forwarder/index.js +1 -1
- package/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/dist/builtins/keychain/index.js +41 -43
- package/dist/builtins/keychain/index.mjs +41 -43
- package/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/dist/builtins/local-auth/local-auth.addon.js +24 -40
- package/dist/builtins/local-auth/local-auth.addon.mjs +24 -40
- package/dist/builtins/local-network/local-network.addon.js +2 -2
- package/dist/builtins/local-network/local-network.addon.mjs +2 -2
- package/dist/builtins/loki-logging/index.js +1 -1
- package/dist/builtins/loki-logging/index.mjs +1 -1
- package/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
- package/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
- package/dist/builtins/native-metrics/node-metrics-history-recorder.d.ts +1 -2
- package/dist/builtins/platform-probe/index.js +1 -1
- package/dist/builtins/platform-probe/index.mjs +1 -1
- package/dist/builtins/record-entries/index.js +1 -1
- package/dist/builtins/record-entries/index.mjs +1 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/dist/builtins/snapshot/index.js +1 -1
- package/dist/builtins/snapshot/index.mjs +1 -1
- package/dist/builtins/sqlite-storage/file-host-protocol.d.ts +0 -15
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
- package/dist/builtins/sqlite-storage/index.js +1 -1
- package/dist/builtins/sqlite-storage/index.mjs +1 -1
- package/dist/builtins/sqlite-storage/owned-sqlite-file.d.ts +0 -44
- package/dist/builtins/sqlite-storage/records/records-catalog.d.ts +0 -2
- package/dist/builtins/sqlite-storage/records/records-engine-types.d.ts +0 -21
- package/dist/builtins/sqlite-storage/records/records-engine.d.ts +3 -20
- package/dist/builtins/sqlite-storage/records/records-provider.d.ts +4 -18
- package/dist/builtins/sqlite-storage/records/records-sql.d.ts +1 -1
- package/dist/builtins/sqlite-storage/sqlite-settings-backend.d.ts +0 -17
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.js +21 -196
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +21 -196
- package/dist/builtins/sqlite-storage/storage-admin-provider.d.ts +6 -14
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.d.ts +2 -2
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +7 -9
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +7 -9
- package/dist/builtins/system-config/system-config.addon.js +667 -40
- package/dist/builtins/system-config/system-config.addon.mjs +625 -15
- package/dist/builtins/winston-logging/index.js +1 -1
- package/dist/builtins/winston-logging/index.mjs +1 -1
- package/dist/{composition-sources-BVguN7VV.mjs → composition-sources-DNRZWR1j.mjs} +1 -1
- package/dist/{composition-sources-DURQNDJ4.js → composition-sources-b0e_2I-D.js} +1 -1
- package/dist/{constants-Njka8Cv6.js → constants-6OeJiZgi.js} +1 -1
- package/dist/{constants-FGjnsE2x.mjs → constants-BnkOdj9Q.mjs} +1 -1
- package/dist/{device-ca-lEaAQ9Xi.mjs → device-ca-Bnkw8GyU.mjs} +1 -1
- package/dist/{device-ca-BrVK_5s3.js → device-ca-CPTDs--d.js} +1 -1
- package/dist/{dist-BZQjLPiz.js → dist-Bn-RNanh.js} +29 -130
- package/dist/{dist-B_GRPhnY.mjs → dist-Wy8cTxg6.mjs} +30 -113
- package/dist/file-host-worker.js +1 -1
- package/dist/file-host-worker.mjs +1 -1
- package/dist/{hub-mdns-ciao-Bg2HfTwP.mjs → hub-mdns-ciao-CJu0nhla.mjs} +2 -2
- package/dist/{hub-mdns-ciao-nce3TXs_.js → hub-mdns-ciao-CTBTlia4.js} +2 -2
- package/dist/index.js +27 -30
- package/dist/index.mjs +11 -14
- package/dist/{restore-archive-C7kLDI_0.mjs → restore-archive-CmP-iiG9.mjs} +84 -331
- package/dist/{restore-archive-FyfZ8YMC.js → restore-archive-DM1OBYq4.js} +89 -342
- package/dist/{wal-maintenance-DfSIOj24.js → wal-maintenance-DUHEp_09.js} +0 -0
- package/dist/{wal-maintenance-Duejh7Lx.mjs → wal-maintenance-NKbwWovZ.mjs} +0 -0
- package/package.json +1 -1
- package/dist/builtins/records/legacy-table-row-count.d.ts +0 -5
- package/dist/builtins/records/phase6-declare-gate.d.ts +0 -28
- package/dist/builtins/sqlite-storage/records/count-settings-array-legacy.d.ts +0 -5
- package/dist/builtins/sqlite-storage/records/count-settings-brokers-legacy.d.ts +0 -6
- package/dist/phase6-declare-gate-Dag1_WR2.js +0 -98
- package/dist/phase6-declare-gate-Lb-mrVvz.mjs +0 -93
|
@@ -3,12 +3,11 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-Bn-RNanh.js");
|
|
7
7
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
8
8
|
const require_safe_buffer$1 = require("../../safe-buffer-D3aoa-7X.js");
|
|
9
9
|
const require_ms$1 = require("../../ms-LB3giGoU.js");
|
|
10
|
-
const require_device_ca = require("../../device-ca-
|
|
11
|
-
const require_phase6_declare_gate = require("../../phase6-declare-gate-Dag1_WR2.js");
|
|
10
|
+
const require_device_ca = require("../../device-ca-CPTDs--d.js");
|
|
12
11
|
let zod = require("zod");
|
|
13
12
|
let node_crypto = require("node:crypto");
|
|
14
13
|
node_crypto = require_chunk.__toESM(node_crypto);
|
|
@@ -7694,8 +7693,7 @@ var _localAuthRecordKinds = require_dist.defineRecordKinds({
|
|
|
7694
7693
|
fields: ["username"],
|
|
7695
7694
|
unique: true
|
|
7696
7695
|
}],
|
|
7697
|
-
retention: { none: "row goes only when an operator deletes the user; destructive declareCollection rebuild wipes all accounts" }
|
|
7698
|
-
adoptsFrom: USERS_COLLECTION$1
|
|
7696
|
+
retention: { none: "row goes only when an operator deletes the user; destructive declareCollection rebuild wipes all accounts" }
|
|
7699
7697
|
},
|
|
7700
7698
|
"api-keys": {
|
|
7701
7699
|
schema: ApiKeyBodySchema,
|
|
@@ -7707,8 +7705,7 @@ var _localAuthRecordKinds = require_dist.defineRecordKinds({
|
|
|
7707
7705
|
name: "prefix",
|
|
7708
7706
|
fields: ["tokenPrefix"]
|
|
7709
7707
|
}],
|
|
7710
|
-
retention: { none: "explicit revoke only" }
|
|
7711
|
-
adoptsFrom: API_KEYS_COLLECTION
|
|
7708
|
+
retention: { none: "explicit revoke only" }
|
|
7712
7709
|
},
|
|
7713
7710
|
"scoped-tokens": {
|
|
7714
7711
|
schema: ScopedTokenBodySchema,
|
|
@@ -7724,8 +7721,7 @@ var _localAuthRecordKinds = require_dist.defineRecordKinds({
|
|
|
7724
7721
|
name: "user",
|
|
7725
7722
|
fields: ["userId"]
|
|
7726
7723
|
}],
|
|
7727
|
-
retention: { none: "the operator drops the legacy rows by hand (D895)" }
|
|
7728
|
-
adoptsFrom: SCOPED_TOKENS_COLLECTION
|
|
7724
|
+
retention: { none: "the operator drops the legacy rows by hand (D895)" }
|
|
7729
7725
|
},
|
|
7730
7726
|
"admin-tokens": {
|
|
7731
7727
|
schema: AdminTokenBodySchema,
|
|
@@ -7741,8 +7737,7 @@ var _localAuthRecordKinds = require_dist.defineRecordKinds({
|
|
|
7741
7737
|
name: "created_by",
|
|
7742
7738
|
fields: ["createdBy"]
|
|
7743
7739
|
}],
|
|
7744
|
-
retention: { none: "the operator drops the legacy rows by hand (D895)" }
|
|
7745
|
-
adoptsFrom: ADMIN_TOKENS_COLLECTION
|
|
7740
|
+
retention: { none: "the operator drops the legacy rows by hand (D895)" }
|
|
7746
7741
|
},
|
|
7747
7742
|
"login-sessions": {
|
|
7748
7743
|
schema: LoginSessionBodySchema,
|
|
@@ -7760,8 +7755,7 @@ var _localAuthRecordKinds = require_dist.defineRecordKinds({
|
|
|
7760
7755
|
retention: {
|
|
7761
7756
|
owner: "local-auth",
|
|
7762
7757
|
reason: "daily reap: expired >7d and revoked >30d"
|
|
7763
|
-
}
|
|
7764
|
-
adoptsFrom: LOGIN_SESSIONS_COLLECTION
|
|
7758
|
+
}
|
|
7765
7759
|
},
|
|
7766
7760
|
"login-session-cutoffs": {
|
|
7767
7761
|
schema: LoginSessionCutoffBodySchema,
|
|
@@ -7769,8 +7763,7 @@ var _localAuthRecordKinds = require_dist.defineRecordKinds({
|
|
|
7769
7763
|
writeTrigger: "revoke-all-sessions for a user (password change, delete, logout everywhere)",
|
|
7770
7764
|
device: "none",
|
|
7771
7765
|
at: "none",
|
|
7772
|
-
retention: { none: "one row per user who ever had all sessions revoked" }
|
|
7773
|
-
adoptsFrom: LOGIN_SESSION_CUTOFFS_COLLECTION
|
|
7766
|
+
retention: { none: "one row per user who ever had all sessions revoked" }
|
|
7774
7767
|
},
|
|
7775
7768
|
"oauth-sessions": {
|
|
7776
7769
|
schema: OauthSessionBodySchema,
|
|
@@ -7785,8 +7778,7 @@ var _localAuthRecordKinds = require_dist.defineRecordKinds({
|
|
|
7785
7778
|
retention: {
|
|
7786
7779
|
owner: "local-auth",
|
|
7787
7780
|
reason: "daily reap deletes revoked sessions older than 30 days; active rows never expire"
|
|
7788
|
-
}
|
|
7789
|
-
adoptsFrom: OAUTH_SESSIONS_COLLECTION
|
|
7781
|
+
}
|
|
7790
7782
|
},
|
|
7791
7783
|
"user-totp": {
|
|
7792
7784
|
schema: UserTotpBodySchema,
|
|
@@ -7794,8 +7786,7 @@ var _localAuthRecordKinds = require_dist.defineRecordKinds({
|
|
|
7794
7786
|
writeTrigger: "setup inserts seed (keychain); confirm sets confirmedAt; disable deletes row",
|
|
7795
7787
|
device: "none",
|
|
7796
7788
|
at: "none",
|
|
7797
|
-
retention: { none: "disable or replace on re-setup; user delete does not cascade" }
|
|
7798
|
-
adoptsFrom: USER_TOTP_COLLECTION
|
|
7789
|
+
retention: { none: "disable or replace on re-setup; user delete does not cascade" }
|
|
7799
7790
|
},
|
|
7800
7791
|
"user-external-identities": {
|
|
7801
7792
|
schema: ExternalIdentityBodySchema,
|
|
@@ -7811,8 +7802,7 @@ var _localAuthRecordKinds = require_dist.defineRecordKinds({
|
|
|
7811
7802
|
fields: ["provider", "subject"],
|
|
7812
7803
|
unique: true
|
|
7813
7804
|
}],
|
|
7814
|
-
retention: { none: "unlink or deleteUser removes rows" }
|
|
7815
|
-
adoptsFrom: USER_EXTERNAL_IDENTITIES_COLLECTION
|
|
7805
|
+
retention: { none: "unlink or deleteUser removes rows" }
|
|
7816
7806
|
},
|
|
7817
7807
|
"device-credentials": {
|
|
7818
7808
|
schema: DeviceCredentialBodySchema,
|
|
@@ -7830,8 +7820,7 @@ var _localAuthRecordKinds = require_dist.defineRecordKinds({
|
|
|
7830
7820
|
retention: {
|
|
7831
7821
|
owner: "local-auth",
|
|
7832
7822
|
reason: "daily reap removes revoked/expired rows older than 90 days"
|
|
7833
|
-
}
|
|
7834
|
-
adoptsFrom: DEVICE_CREDENTIALS_COLLECTION
|
|
7823
|
+
}
|
|
7835
7824
|
},
|
|
7836
7825
|
"auth-audit": {
|
|
7837
7826
|
schema: AuthAuditBodySchema,
|
|
@@ -7846,8 +7835,7 @@ var _localAuthRecordKinds = require_dist.defineRecordKinds({
|
|
|
7846
7835
|
retention: {
|
|
7847
7836
|
ttlMs: 90 * DAY_MS,
|
|
7848
7837
|
from: "at"
|
|
7849
|
-
}
|
|
7850
|
-
adoptsFrom: AUTH_AUDIT_COLLECTION
|
|
7838
|
+
}
|
|
7851
7839
|
}
|
|
7852
7840
|
});
|
|
7853
7841
|
var localAuthRecordKinds = _localAuthRecordKinds;
|
|
@@ -12307,45 +12295,41 @@ var LocalAuthAddon = class extends require_dist.BaseAddon {
|
|
|
12307
12295
|
const store = this.ctx.api?.settingsStore;
|
|
12308
12296
|
const records = this.ctx.records;
|
|
12309
12297
|
if (store && records) {
|
|
12310
|
-
|
|
12311
|
-
const authStores =
|
|
12298
|
+
await records.declare(localAuthRecordKinds);
|
|
12299
|
+
const authStores = localAuthRecordStoresOf(records);
|
|
12312
12300
|
await records.declare(localAuthPreferencesRecordKinds);
|
|
12313
12301
|
this.preferences = new UserPreferencesStore(records.kind(localAuthPreferencesRecordKinds["user-preferences"]));
|
|
12314
|
-
|
|
12315
|
-
|
|
12316
|
-
this.userManager = authStores === null ? new UserManager(legacyStoreAccess, this.authManager) : new UserManager({
|
|
12302
|
+
await declareAuthSchema(store, { skipCollections: LOCAL_AUTH_RECORDS_LEGACY_COLLECTIONS });
|
|
12303
|
+
this.userManager = new UserManager({
|
|
12317
12304
|
usersKind: authStores.users,
|
|
12318
12305
|
legacyStore: store
|
|
12319
12306
|
}, this.authManager);
|
|
12320
|
-
this.apiKeyManager =
|
|
12307
|
+
this.apiKeyManager = new ApiKeyManager({
|
|
12321
12308
|
apiKeysKind: authStores.apiKeys,
|
|
12322
12309
|
legacyStore: store
|
|
12323
12310
|
});
|
|
12324
|
-
this.oauthSessionManager =
|
|
12311
|
+
this.oauthSessionManager = new OauthSessionManager({
|
|
12325
12312
|
oauthSessionsKind: authStores.oauthSessions,
|
|
12326
12313
|
legacyStore: store
|
|
12327
12314
|
});
|
|
12328
|
-
this.totpManager =
|
|
12329
|
-
secrets: forOwner === null ? null : forOwner("system"),
|
|
12330
|
-
logger: this.ctx.logger
|
|
12331
|
-
}) : new TotpManager({
|
|
12315
|
+
this.totpManager = new TotpManager({
|
|
12332
12316
|
userTotpKind: authStores.userTotp,
|
|
12333
12317
|
legacyStore: store
|
|
12334
12318
|
}, {
|
|
12335
12319
|
secrets: forOwner === null ? null : forOwner("system"),
|
|
12336
12320
|
logger: this.ctx.logger
|
|
12337
12321
|
});
|
|
12338
|
-
this.externalIdentities =
|
|
12322
|
+
this.externalIdentities = new ExternalIdentityManager({
|
|
12339
12323
|
identitiesKind: authStores.userExternalIdentities,
|
|
12340
12324
|
legacyStore: store
|
|
12341
12325
|
});
|
|
12342
|
-
this.loginSessions =
|
|
12326
|
+
this.loginSessions = new LoginSessionManager({
|
|
12343
12327
|
sessionsKind: authStores.loginSessions,
|
|
12344
12328
|
cutoffsKind: authStores.loginSessionCutoffs,
|
|
12345
12329
|
legacyStore: store
|
|
12346
12330
|
}, { logger: this.ctx.logger });
|
|
12347
12331
|
await this.loginSessions.load();
|
|
12348
|
-
this.auditLog =
|
|
12332
|
+
this.auditLog = new AuthAuditLog({
|
|
12349
12333
|
authAuditKind: authStores.authAudit,
|
|
12350
12334
|
legacyStore: store
|
|
12351
12335
|
}, this.ctx.logger);
|
|
@@ -12365,7 +12349,7 @@ var LocalAuthAddon = class extends require_dist.BaseAddon {
|
|
|
12365
12349
|
return user === null ? null : { username: user.username };
|
|
12366
12350
|
},
|
|
12367
12351
|
selfEnrollmentAllowed: async () => (await this.readDeviceCertificateSettings()).selfEnrollment === "allowed",
|
|
12368
|
-
deviceCredentialsKind: authStores
|
|
12352
|
+
deviceCredentialsKind: authStores.deviceCredentials,
|
|
12369
12353
|
logger: this.ctx.logger
|
|
12370
12354
|
});
|
|
12371
12355
|
await this.deviceCredentials.load();
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { i as __require, o as __toESM, t as __commonJSMin } from "../../chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import { $ as PreferenceDeviceIdSchema,
|
|
2
|
+
import { $ as PreferenceDeviceIdSchema, Ca as userError, D as DEVICE_ENROLLMENT_TTL_MS, En as isCredentialTokenPayload, Et as authProviderCapability, Gi as defineRecordKinds, Mt as buildDeviceSignatureMessage, Nr as userManagementCapability, Q as PREFERENCES_MAX_VALUE_BYTES, _n as formatDeviceRevoker, a as ApiKeyRecordSchema, b as CredentialTokenClaimsSchema, dt as SsoBridgeClaimsSchema, en as deviceCredentialsCapability, et as PreferenceNamespaceSchema, g as CREDENTIAL_TOKEN_AUDIENCE, gt as TokenScopeSchema, ia as makeSecretMarker, jt as buildDeviceEnrollmentLink, k as DEVICE_NONCE_TTL_MS, lt as ScopedTokenSchema, ni as BaseAddon, ta as isSecretMarker, tt as PreferenceValueSchema, vt as UserRecordSchema } from "../../dist-Wy8cTxg6.mjs";
|
|
3
3
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
4
4
|
import { t as require_safe_buffer } from "../../safe-buffer-B1OjL1I9.mjs";
|
|
5
5
|
import { t as require_ms } from "../../ms-CgH2OFlD.mjs";
|
|
6
|
-
import { _ as setProcessJwtSigningKey, a as importDevicePublicKey, c as rebuildDeviceCaCertificate, d as JWT_SIGNING_KEY_REF, g as processJwtSigningKey, h as loadJwtSigningKey, i as generateDeviceCa, l as verifyDeviceLeaf, m as getProcessJwtSigningKeyState, n as DEVICE_CA_KEY_REF, o as issueDeviceLeaf, r as DEVICE_CA_SETTINGS_SECTION, s as loadDeviceCa, t as DEVICE_CA_FIELD, u as verifyDeviceSignature } from "../../device-ca-
|
|
7
|
-
import { t as resolvePhase6UseRecordsPathForHub } from "../../phase6-declare-gate-Lb-mrVvz.mjs";
|
|
6
|
+
import { _ as setProcessJwtSigningKey, a as importDevicePublicKey, c as rebuildDeviceCaCertificate, d as JWT_SIGNING_KEY_REF, g as processJwtSigningKey, h as loadJwtSigningKey, i as generateDeviceCa, l as verifyDeviceLeaf, m as getProcessJwtSigningKeyState, n as DEVICE_CA_KEY_REF, o as issueDeviceLeaf, r as DEVICE_CA_SETTINGS_SECTION, s as loadDeviceCa, t as DEVICE_CA_FIELD, u as verifyDeviceSignature } from "../../device-ca-Bnkw8GyU.mjs";
|
|
8
7
|
import { z } from "zod";
|
|
9
8
|
import * as crypto$1 from "node:crypto";
|
|
10
9
|
import { X509Certificate, createHash, randomUUID, timingSafeEqual } from "node:crypto";
|
|
@@ -7684,8 +7683,7 @@ var _localAuthRecordKinds = defineRecordKinds({
|
|
|
7684
7683
|
fields: ["username"],
|
|
7685
7684
|
unique: true
|
|
7686
7685
|
}],
|
|
7687
|
-
retention: { none: "row goes only when an operator deletes the user; destructive declareCollection rebuild wipes all accounts" }
|
|
7688
|
-
adoptsFrom: USERS_COLLECTION$1
|
|
7686
|
+
retention: { none: "row goes only when an operator deletes the user; destructive declareCollection rebuild wipes all accounts" }
|
|
7689
7687
|
},
|
|
7690
7688
|
"api-keys": {
|
|
7691
7689
|
schema: ApiKeyBodySchema,
|
|
@@ -7697,8 +7695,7 @@ var _localAuthRecordKinds = defineRecordKinds({
|
|
|
7697
7695
|
name: "prefix",
|
|
7698
7696
|
fields: ["tokenPrefix"]
|
|
7699
7697
|
}],
|
|
7700
|
-
retention: { none: "explicit revoke only" }
|
|
7701
|
-
adoptsFrom: API_KEYS_COLLECTION
|
|
7698
|
+
retention: { none: "explicit revoke only" }
|
|
7702
7699
|
},
|
|
7703
7700
|
"scoped-tokens": {
|
|
7704
7701
|
schema: ScopedTokenBodySchema,
|
|
@@ -7714,8 +7711,7 @@ var _localAuthRecordKinds = defineRecordKinds({
|
|
|
7714
7711
|
name: "user",
|
|
7715
7712
|
fields: ["userId"]
|
|
7716
7713
|
}],
|
|
7717
|
-
retention: { none: "the operator drops the legacy rows by hand (D895)" }
|
|
7718
|
-
adoptsFrom: SCOPED_TOKENS_COLLECTION
|
|
7714
|
+
retention: { none: "the operator drops the legacy rows by hand (D895)" }
|
|
7719
7715
|
},
|
|
7720
7716
|
"admin-tokens": {
|
|
7721
7717
|
schema: AdminTokenBodySchema,
|
|
@@ -7731,8 +7727,7 @@ var _localAuthRecordKinds = defineRecordKinds({
|
|
|
7731
7727
|
name: "created_by",
|
|
7732
7728
|
fields: ["createdBy"]
|
|
7733
7729
|
}],
|
|
7734
|
-
retention: { none: "the operator drops the legacy rows by hand (D895)" }
|
|
7735
|
-
adoptsFrom: ADMIN_TOKENS_COLLECTION
|
|
7730
|
+
retention: { none: "the operator drops the legacy rows by hand (D895)" }
|
|
7736
7731
|
},
|
|
7737
7732
|
"login-sessions": {
|
|
7738
7733
|
schema: LoginSessionBodySchema,
|
|
@@ -7750,8 +7745,7 @@ var _localAuthRecordKinds = defineRecordKinds({
|
|
|
7750
7745
|
retention: {
|
|
7751
7746
|
owner: "local-auth",
|
|
7752
7747
|
reason: "daily reap: expired >7d and revoked >30d"
|
|
7753
|
-
}
|
|
7754
|
-
adoptsFrom: LOGIN_SESSIONS_COLLECTION
|
|
7748
|
+
}
|
|
7755
7749
|
},
|
|
7756
7750
|
"login-session-cutoffs": {
|
|
7757
7751
|
schema: LoginSessionCutoffBodySchema,
|
|
@@ -7759,8 +7753,7 @@ var _localAuthRecordKinds = defineRecordKinds({
|
|
|
7759
7753
|
writeTrigger: "revoke-all-sessions for a user (password change, delete, logout everywhere)",
|
|
7760
7754
|
device: "none",
|
|
7761
7755
|
at: "none",
|
|
7762
|
-
retention: { none: "one row per user who ever had all sessions revoked" }
|
|
7763
|
-
adoptsFrom: LOGIN_SESSION_CUTOFFS_COLLECTION
|
|
7756
|
+
retention: { none: "one row per user who ever had all sessions revoked" }
|
|
7764
7757
|
},
|
|
7765
7758
|
"oauth-sessions": {
|
|
7766
7759
|
schema: OauthSessionBodySchema,
|
|
@@ -7775,8 +7768,7 @@ var _localAuthRecordKinds = defineRecordKinds({
|
|
|
7775
7768
|
retention: {
|
|
7776
7769
|
owner: "local-auth",
|
|
7777
7770
|
reason: "daily reap deletes revoked sessions older than 30 days; active rows never expire"
|
|
7778
|
-
}
|
|
7779
|
-
adoptsFrom: OAUTH_SESSIONS_COLLECTION
|
|
7771
|
+
}
|
|
7780
7772
|
},
|
|
7781
7773
|
"user-totp": {
|
|
7782
7774
|
schema: UserTotpBodySchema,
|
|
@@ -7784,8 +7776,7 @@ var _localAuthRecordKinds = defineRecordKinds({
|
|
|
7784
7776
|
writeTrigger: "setup inserts seed (keychain); confirm sets confirmedAt; disable deletes row",
|
|
7785
7777
|
device: "none",
|
|
7786
7778
|
at: "none",
|
|
7787
|
-
retention: { none: "disable or replace on re-setup; user delete does not cascade" }
|
|
7788
|
-
adoptsFrom: USER_TOTP_COLLECTION
|
|
7779
|
+
retention: { none: "disable or replace on re-setup; user delete does not cascade" }
|
|
7789
7780
|
},
|
|
7790
7781
|
"user-external-identities": {
|
|
7791
7782
|
schema: ExternalIdentityBodySchema,
|
|
@@ -7801,8 +7792,7 @@ var _localAuthRecordKinds = defineRecordKinds({
|
|
|
7801
7792
|
fields: ["provider", "subject"],
|
|
7802
7793
|
unique: true
|
|
7803
7794
|
}],
|
|
7804
|
-
retention: { none: "unlink or deleteUser removes rows" }
|
|
7805
|
-
adoptsFrom: USER_EXTERNAL_IDENTITIES_COLLECTION
|
|
7795
|
+
retention: { none: "unlink or deleteUser removes rows" }
|
|
7806
7796
|
},
|
|
7807
7797
|
"device-credentials": {
|
|
7808
7798
|
schema: DeviceCredentialBodySchema,
|
|
@@ -7820,8 +7810,7 @@ var _localAuthRecordKinds = defineRecordKinds({
|
|
|
7820
7810
|
retention: {
|
|
7821
7811
|
owner: "local-auth",
|
|
7822
7812
|
reason: "daily reap removes revoked/expired rows older than 90 days"
|
|
7823
|
-
}
|
|
7824
|
-
adoptsFrom: DEVICE_CREDENTIALS_COLLECTION
|
|
7813
|
+
}
|
|
7825
7814
|
},
|
|
7826
7815
|
"auth-audit": {
|
|
7827
7816
|
schema: AuthAuditBodySchema,
|
|
@@ -7836,8 +7825,7 @@ var _localAuthRecordKinds = defineRecordKinds({
|
|
|
7836
7825
|
retention: {
|
|
7837
7826
|
ttlMs: 90 * DAY_MS,
|
|
7838
7827
|
from: "at"
|
|
7839
|
-
}
|
|
7840
|
-
adoptsFrom: AUTH_AUDIT_COLLECTION
|
|
7828
|
+
}
|
|
7841
7829
|
}
|
|
7842
7830
|
});
|
|
7843
7831
|
var localAuthRecordKinds = _localAuthRecordKinds;
|
|
@@ -12296,45 +12284,41 @@ var LocalAuthAddon = class extends BaseAddon {
|
|
|
12296
12284
|
const store = this.ctx.api?.settingsStore;
|
|
12297
12285
|
const records = this.ctx.records;
|
|
12298
12286
|
if (store && records) {
|
|
12299
|
-
|
|
12300
|
-
const authStores =
|
|
12287
|
+
await records.declare(localAuthRecordKinds);
|
|
12288
|
+
const authStores = localAuthRecordStoresOf(records);
|
|
12301
12289
|
await records.declare(localAuthPreferencesRecordKinds);
|
|
12302
12290
|
this.preferences = new UserPreferencesStore(records.kind(localAuthPreferencesRecordKinds["user-preferences"]));
|
|
12303
|
-
|
|
12304
|
-
|
|
12305
|
-
this.userManager = authStores === null ? new UserManager(legacyStoreAccess, this.authManager) : new UserManager({
|
|
12291
|
+
await declareAuthSchema(store, { skipCollections: LOCAL_AUTH_RECORDS_LEGACY_COLLECTIONS });
|
|
12292
|
+
this.userManager = new UserManager({
|
|
12306
12293
|
usersKind: authStores.users,
|
|
12307
12294
|
legacyStore: store
|
|
12308
12295
|
}, this.authManager);
|
|
12309
|
-
this.apiKeyManager =
|
|
12296
|
+
this.apiKeyManager = new ApiKeyManager({
|
|
12310
12297
|
apiKeysKind: authStores.apiKeys,
|
|
12311
12298
|
legacyStore: store
|
|
12312
12299
|
});
|
|
12313
|
-
this.oauthSessionManager =
|
|
12300
|
+
this.oauthSessionManager = new OauthSessionManager({
|
|
12314
12301
|
oauthSessionsKind: authStores.oauthSessions,
|
|
12315
12302
|
legacyStore: store
|
|
12316
12303
|
});
|
|
12317
|
-
this.totpManager =
|
|
12318
|
-
secrets: forOwner === null ? null : forOwner("system"),
|
|
12319
|
-
logger: this.ctx.logger
|
|
12320
|
-
}) : new TotpManager({
|
|
12304
|
+
this.totpManager = new TotpManager({
|
|
12321
12305
|
userTotpKind: authStores.userTotp,
|
|
12322
12306
|
legacyStore: store
|
|
12323
12307
|
}, {
|
|
12324
12308
|
secrets: forOwner === null ? null : forOwner("system"),
|
|
12325
12309
|
logger: this.ctx.logger
|
|
12326
12310
|
});
|
|
12327
|
-
this.externalIdentities =
|
|
12311
|
+
this.externalIdentities = new ExternalIdentityManager({
|
|
12328
12312
|
identitiesKind: authStores.userExternalIdentities,
|
|
12329
12313
|
legacyStore: store
|
|
12330
12314
|
});
|
|
12331
|
-
this.loginSessions =
|
|
12315
|
+
this.loginSessions = new LoginSessionManager({
|
|
12332
12316
|
sessionsKind: authStores.loginSessions,
|
|
12333
12317
|
cutoffsKind: authStores.loginSessionCutoffs,
|
|
12334
12318
|
legacyStore: store
|
|
12335
12319
|
}, { logger: this.ctx.logger });
|
|
12336
12320
|
await this.loginSessions.load();
|
|
12337
|
-
this.auditLog =
|
|
12321
|
+
this.auditLog = new AuthAuditLog({
|
|
12338
12322
|
authAuditKind: authStores.authAudit,
|
|
12339
12323
|
legacyStore: store
|
|
12340
12324
|
}, this.ctx.logger);
|
|
@@ -12354,7 +12338,7 @@ var LocalAuthAddon = class extends BaseAddon {
|
|
|
12354
12338
|
return user === null ? null : { username: user.username };
|
|
12355
12339
|
},
|
|
12356
12340
|
selfEnrollmentAllowed: async () => (await this.readDeviceCertificateSettings()).selfEnrollment === "allowed",
|
|
12357
|
-
deviceCredentialsKind: authStores
|
|
12341
|
+
deviceCredentialsKind: authStores.deviceCredentials,
|
|
12358
12342
|
logger: this.ctx.logger
|
|
12359
12343
|
});
|
|
12360
12344
|
await this.deviceCredentials.load();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_dist = require("../../dist-
|
|
4
|
-
const require_hub_mdns_ciao = require("../../hub-mdns-ciao-
|
|
3
|
+
const require_dist = require("../../dist-Bn-RNanh.js");
|
|
4
|
+
const require_hub_mdns_ciao = require("../../hub-mdns-ciao-CTBTlia4.js");
|
|
5
5
|
let zod = require("zod");
|
|
6
6
|
let node_net = require("node:net");
|
|
7
7
|
let node_os = require("node:os");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $n as pickAppLinkHub, Cn as isAppLinkBase, Dn as isDefaultAppConnectionEndpoint, Fr as validateCustomAddress, H as HUB_MDNS_TXT_KEYS, Ln as localNetworkCapability, Lt as checkRoleAddress,
|
|
2
|
-
import { P as readLanHttpState, a as storeUploadedCertificate, d as servedHttpsLeafFingerprint, g as readTlsMode, h as readTlsAccessStatus, i as revertToGeneratedCertificate, j as applyLanHttp, k as DEFAULT_LAN_HTTP_PORT, m as readExtraSans, n as applyCertificateToListener, o as useStoredUploadedCertificate, r as regenerateCertificate, t as createCiaoPublisher, v as writeExtraSans, w as ensureTlsCert } from "../../hub-mdns-ciao-
|
|
1
|
+
import { $n as pickAppLinkHub, Cn as isAppLinkBase, Dn as isDefaultAppConnectionEndpoint, Fr as validateCustomAddress, H as HUB_MDNS_TXT_KEYS, Ln as localNetworkCapability, Lt as checkRoleAddress, Ta as EventCategory, V as HUB_MDNS_SERVICE_TYPE, Z as NetworkTunnelStartedDataSchema, cr as resolveAppConnections, fr as resolveHubAddressRoles, hr as resolveNotificationTapAddress, l as CAMSTACK_APP_LINK_ORIGIN, ni as BaseAddon, ti as errMsg, xr as shortHostname } from "../../dist-Wy8cTxg6.mjs";
|
|
2
|
+
import { P as readLanHttpState, a as storeUploadedCertificate, d as servedHttpsLeafFingerprint, g as readTlsMode, h as readTlsAccessStatus, i as revertToGeneratedCertificate, j as applyLanHttp, k as DEFAULT_LAN_HTTP_PORT, m as readExtraSans, n as applyCertificateToListener, o as useStoredUploadedCertificate, r as regenerateCertificate, t as createCiaoPublisher, v as writeExtraSans, w as ensureTlsCert } from "../../hub-mdns-ciao-CJu0nhla.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { isIP } from "node:net";
|
|
5
5
|
import * as os$1 from "node:os";
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-Bn-RNanh.js");
|
|
7
7
|
const require_log_read_filter = require("../../log-read-filter-Bi066jwU.js");
|
|
8
8
|
let zod = require("zod");
|
|
9
9
|
//#region src/builtins/loki-logging/loki-payload.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ni as BaseAddon, zn as logDestinationCapability } from "../../dist-
|
|
1
|
+
import { ni as BaseAddon, zn as logDestinationCapability } from "../../dist-Wy8cTxg6.mjs";
|
|
2
2
|
import { n as compileLogFilter, o as lineMatches } from "../../log-read-filter-D7Ev3zm-.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region src/builtins/loki-logging/loki-payload.ts
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-Bn-RNanh.js");
|
|
7
7
|
let node_fs_promises = require("node:fs/promises");
|
|
8
8
|
let node_util = require("node:util");
|
|
9
9
|
let node_os = require("node:os");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Gn as metricsProviderCapability, Hi as createEvent,
|
|
1
|
+
import { Gn as metricsProviderCapability, Hi as createEvent, Ta as EventCategory, _t as UNATTRIBUTED_BUCKET_KEY, gn as foldSnapshotByFunction, lr as resolveBucketMs, ni as BaseAddon, or as reducePoints, rt as ROOT_BUCKET_KEY, ti as errMsg } from "../../dist-Wy8cTxg6.mjs";
|
|
2
2
|
import { access, readFile, readdir } from "node:fs/promises";
|
|
3
3
|
import { promisify } from "node:util";
|
|
4
4
|
import * as os$1 from "node:os";
|
|
@@ -35,8 +35,7 @@ export declare const NODE_GPU_TEMPERATURE_KEY: MetricsKey<"node-gpu-temperature"
|
|
|
35
35
|
export declare const NODE_CONTAINER_CURRENT_KEY: MetricsKey<"container-current-mib">;
|
|
36
36
|
/**
|
|
37
37
|
* The PID-scoped keys of the earlier build. NOT written any more; kept only so
|
|
38
|
-
*
|
|
39
|
-
* names what it once wrote.
|
|
38
|
+
* a spec can pin that nothing writes them again.
|
|
40
39
|
*/
|
|
41
40
|
export declare const NODE_PROCESS_CPU_KEY: MetricsKey<"process-cpu-percent">;
|
|
42
41
|
export declare const NODE_PROCESS_RSS_KEY: MetricsKey<"process-rss-mib">;
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-Bn-RNanh.js");
|
|
7
7
|
const require_coral_accelerators = require("../../coral-accelerators-Bi_c3Rft.js");
|
|
8
8
|
let node_util = require("node:util");
|
|
9
9
|
let node_os = require("node:os");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { o as __toESM, r as __exportAll } from "../../chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { Ta as EventCategory, ni as BaseAddon, qi as emitReadiness, sn as enumerateInferenceDevices, ti as errMsg, tr as platformProbeCapability, yr as scoreRuntimes } from "../../dist-Wy8cTxg6.mjs";
|
|
3
3
|
import { n as nodeCoralFs, t as classifyCoralAccelerator } from "../../coral-accelerators-DcnZvctM.mjs";
|
|
4
4
|
import { promisify } from "node:util";
|
|
5
5
|
import * as os$1 from "node:os";
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-Bn-RNanh.js");
|
|
7
7
|
let zod = require("zod");
|
|
8
8
|
let node_crypto = require("node:crypto");
|
|
9
9
|
//#region src/builtins/record-entries/entries-service.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aa as mapSecretLeaves, fi as InvalidRecordError, ir as recordEntriesCapability, ji as UnknownRecordKindError, ni as BaseAddon, pa as recordSecretRef } from "../../dist-Wy8cTxg6.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { randomUUID } from "node:crypto";
|
|
4
4
|
//#region src/builtins/record-entries/entries-service.ts
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-Bn-RNanh.js");
|
|
7
7
|
//#region src/builtins/remote-access-orchestrator/enabled-providers-reconcile.ts
|
|
8
8
|
/**
|
|
9
9
|
* Reconcile the durable `enabledProviders` set against authoritative
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ta as EventCategory, ni as BaseAddon } from "../../dist-Wy8cTxg6.mjs";
|
|
2
2
|
//#region src/builtins/remote-access-orchestrator/enabled-providers-reconcile.ts
|
|
3
3
|
/**
|
|
4
4
|
* Reconcile the durable `enabledProviders` set against authoritative
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-Bn-RNanh.js");
|
|
7
7
|
const require_snapshot_courtesy = require("../../snapshot-courtesy-D_C5-nC0.js");
|
|
8
8
|
let zod = require("zod");
|
|
9
9
|
let node_crypto = require("node:crypto");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Cr as snapshotCapability,
|
|
1
|
+
import { Cr as snapshotCapability, Ot as bareAddonId, Qr as DeviceFeature, Qt as deriveBatteryPresence, Ta as EventCategory, Wn as memoizePinnedFfmpeg, ei as DeviceType, jr as streamQualityLabel, kt as batteryCapability, ni as BaseAddon, oa as nodePin, s as BatteryStatusSchema, ti as errMsg } from "../../dist-Wy8cTxg6.mjs";
|
|
2
2
|
import { i as renderCourtesyOverlayJpeg, n as courtesyCacheKey, r as renderCourtesyJpeg } from "../../snapshot-courtesy-CyFs1M3I.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
@@ -67,21 +67,6 @@ export interface ControlOps {
|
|
|
67
67
|
readonly declaredThisBoot: boolean;
|
|
68
68
|
}[];
|
|
69
69
|
};
|
|
70
|
-
/** Paginated `(id, data)` read of a legacy table in this file. */
|
|
71
|
-
readonly readLegacyCollection: {
|
|
72
|
-
readonly input: {
|
|
73
|
-
readonly collection: string;
|
|
74
|
-
readonly cursor?: string | undefined;
|
|
75
|
-
readonly limit?: number | undefined;
|
|
76
|
-
};
|
|
77
|
-
readonly output: {
|
|
78
|
-
readonly rows: readonly {
|
|
79
|
-
readonly id: string;
|
|
80
|
-
readonly data: Record<string, unknown>;
|
|
81
|
-
}[];
|
|
82
|
-
readonly nextCursor: string | null;
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
70
|
}
|
|
86
71
|
export type ControlOp = keyof ControlOps;
|
|
87
72
|
/** At most this many calls in flight per worker; beyond it a call is refused, never queued. */
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-Bn-RNanh.js");
|
|
7
7
|
let node_crypto = require("node:crypto");
|
|
8
8
|
let node_fs_promises = require("node:fs/promises");
|
|
9
9
|
let node_path = require("node:path");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { hn as filesystemBrowseCapability, kr as storageProviderCapability, ni as BaseAddon } from "../../dist-
|
|
1
|
+
import { hn as filesystemBrowseCapability, kr as storageProviderCapability, ni as BaseAddon } from "../../dist-Wy8cTxg6.mjs";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
import { mkdir, readdir, realpath, statfs } from "node:fs/promises";
|
|
4
4
|
import * as path$1 from "node:path";
|
|
@@ -4,7 +4,7 @@ Object.defineProperties(exports, {
|
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
6
|
const require_builtins_sqlite_storage_filesystem_storage_addon = require("./filesystem-storage.addon.js");
|
|
7
|
-
const require_wal_maintenance = require("../../wal-maintenance-
|
|
7
|
+
const require_wal_maintenance = require("../../wal-maintenance-DUHEp_09.js");
|
|
8
8
|
const require_builtins_sqlite_storage_sqlite_settings_addon = require("./sqlite-settings.addon.js");
|
|
9
9
|
//#region src/builtins/sqlite-storage/config-store.ts
|
|
10
10
|
var ConfigStore = class {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FilesystemStorageAddon, t as FilesystemStorageProvider } from "./filesystem-storage.addon.mjs";
|
|
2
|
-
import { A as SQLITE_MMAP_CEILING_BYTES, B as SQLITE_SLOW_CALL_MS, F as sqlitePageCacheKibFor, H as sqliteEngineStorm, I as SQLITE_ENGINE_STORM_WALL_SHARE, L as SQLITE_PROFILE_REPORT_FLOOR_MS, M as SQLITE_PAGE_CACHE_CEILING_KIB, N as SQLITE_PAGE_CACHE_FLOOR_KIB, P as sqliteMmapSizeFor, R as SQLITE_PROFILE_REPORT_INTERVAL_MS, V as SqliteOpProfiler, a as WalMaintenance, i as WAL_MAINTENANCE_INTERVAL_MS, j as SQLITE_MMAP_FLOOR_BYTES, k as SQLITE_JOURNAL_SIZE_LIMIT_BYTES, l as SqliteSettingsBackend, n as WAL_HIGH_WATER_BYTES, r as WAL_IDLE_QUIET_MS, t as WAL_CHECKPOINT_BUSY_TIMEOUT_MS, z as SQLITE_PROFILE_TOP_N } from "../../wal-maintenance-
|
|
2
|
+
import { A as SQLITE_MMAP_CEILING_BYTES, B as SQLITE_SLOW_CALL_MS, F as sqlitePageCacheKibFor, H as sqliteEngineStorm, I as SQLITE_ENGINE_STORM_WALL_SHARE, L as SQLITE_PROFILE_REPORT_FLOOR_MS, M as SQLITE_PAGE_CACHE_CEILING_KIB, N as SQLITE_PAGE_CACHE_FLOOR_KIB, P as sqliteMmapSizeFor, R as SQLITE_PROFILE_REPORT_INTERVAL_MS, V as SqliteOpProfiler, a as WalMaintenance, i as WAL_MAINTENANCE_INTERVAL_MS, j as SQLITE_MMAP_FLOOR_BYTES, k as SQLITE_JOURNAL_SIZE_LIMIT_BYTES, l as SqliteSettingsBackend, n as WAL_HIGH_WATER_BYTES, r as WAL_IDLE_QUIET_MS, t as WAL_CHECKPOINT_BUSY_TIMEOUT_MS, z as SQLITE_PROFILE_TOP_N } from "../../wal-maintenance-NKbwWovZ.mjs";
|
|
3
3
|
import { SqliteSettingsAddon } from "./sqlite-settings.addon.mjs";
|
|
4
4
|
//#region src/builtins/sqlite-storage/config-store.ts
|
|
5
5
|
var ConfigStore = class {
|