@rivetkit/supabase 0.0.0-sqlite-uds.ea644f1 → 0.0.0-sqlite-uds.37f9e48
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/mod.js +42 -39
- package/dist/mod.mjs +42 -39
- package/package.json +3 -3
package/dist/mod.js
CHANGED
|
@@ -508,7 +508,7 @@ function unsupportedFeature(feature) {
|
|
|
508
508
|
);
|
|
509
509
|
}
|
|
510
510
|
|
|
511
|
-
// ../rivetkit/dist/tsup/chunk-
|
|
511
|
+
// ../rivetkit/dist/tsup/chunk-FFJXFXEW.js
|
|
512
512
|
var import_pino = require("pino");
|
|
513
513
|
|
|
514
514
|
// ../../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/external.js
|
|
@@ -13181,7 +13181,7 @@ var classic_default = external_exports;
|
|
|
13181
13181
|
// ../../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/index.js
|
|
13182
13182
|
var v4_default = classic_default;
|
|
13183
13183
|
|
|
13184
|
-
// ../rivetkit/dist/tsup/chunk-
|
|
13184
|
+
// ../rivetkit/dist/tsup/chunk-FFJXFXEW.js
|
|
13185
13185
|
var getRivetEngine = () => getEnvUniversal("RIVET_ENGINE");
|
|
13186
13186
|
var getRivetEndpoint = () => getEnvUniversal("RIVET_ENDPOINT");
|
|
13187
13187
|
var getRivetToken = () => getEnvUniversal("RIVET_TOKEN");
|
|
@@ -13344,7 +13344,7 @@ function noopNext() {
|
|
|
13344
13344
|
}
|
|
13345
13345
|
var package_default = {
|
|
13346
13346
|
name: "rivetkit",
|
|
13347
|
-
version: "0.0.0-sqlite-uds.
|
|
13347
|
+
version: "0.0.0-sqlite-uds.37f9e48",
|
|
13348
13348
|
description: "Lightweight libraries for building stateful actors on edge platforms",
|
|
13349
13349
|
license: "Apache-2.0",
|
|
13350
13350
|
keywords: [
|
|
@@ -14264,7 +14264,7 @@ function Config({ initialBufferLength = 1024, maxBufferLength = 1024 * 1024 * 32
|
|
|
14264
14264
|
};
|
|
14265
14265
|
}
|
|
14266
14266
|
|
|
14267
|
-
// ../rivetkit/dist/tsup/chunk-
|
|
14267
|
+
// ../rivetkit/dist/tsup/chunk-Q3ODMSBE.js
|
|
14268
14268
|
var config2 = /* @__PURE__ */ Config({});
|
|
14269
14269
|
function readWorkflowCbor(bc) {
|
|
14270
14270
|
return readData(bc);
|
|
@@ -14562,7 +14562,7 @@ function decodeWorkflowHistoryTransport(data) {
|
|
|
14562
14562
|
return decodeWorkflowHistory(toUint8Array(data));
|
|
14563
14563
|
}
|
|
14564
14564
|
|
|
14565
|
-
// ../rivetkit/dist/tsup/chunk-
|
|
14565
|
+
// ../rivetkit/dist/tsup/chunk-ARD7UMSN.js
|
|
14566
14566
|
var DEFAULT_SLEEP_GRACE_PERIOD = 15e3;
|
|
14567
14567
|
var ACTOR_CONTEXT_INTERNAL_SYMBOL = /* @__PURE__ */ Symbol(
|
|
14568
14568
|
"rivetkit.actor_context_internal"
|
|
@@ -14679,6 +14679,8 @@ var GlobalActorOptionsBaseSchema = external_exports.object({
|
|
|
14679
14679
|
name: external_exports.string().optional(),
|
|
14680
14680
|
/** Icon for the actor in the Inspector UI. Can be an emoji or FontAwesome icon name. */
|
|
14681
14681
|
icon: external_exports.string().optional(),
|
|
14682
|
+
/** Enables the experimental local SQLite Unix socket endpoint for this actor. */
|
|
14683
|
+
enableSqliteUds: external_exports.boolean().default(false),
|
|
14682
14684
|
/**
|
|
14683
14685
|
* Can hibernate WebSockets for onWebSocket.
|
|
14684
14686
|
*
|
|
@@ -14772,6 +14774,9 @@ var DocActorOptionsSchema = external_exports.object({
|
|
|
14772
14774
|
icon: external_exports.string().optional().describe(
|
|
14773
14775
|
"Icon for the actor in the Inspector UI. Can be an emoji (e.g., '\u{1F680}') or FontAwesome icon name (e.g., 'rocket')."
|
|
14774
14776
|
),
|
|
14777
|
+
enableSqliteUds: external_exports.boolean().optional().describe(
|
|
14778
|
+
"Enables the experimental local SQLite Unix socket endpoint for this actor. Default: false"
|
|
14779
|
+
),
|
|
14775
14780
|
createVarsTimeout: external_exports.number().optional().describe("Timeout in ms for createVars handler. Default: 5000"),
|
|
14776
14781
|
createConnStateTimeout: external_exports.number().optional().describe(
|
|
14777
14782
|
"Timeout in ms for createConnState handler. Default: 5000"
|
|
@@ -15017,7 +15022,7 @@ function queueMessagesPrefix() {
|
|
|
15017
15022
|
return Uint8Array.from(QUEUE_MESSAGES_PREFIX);
|
|
15018
15023
|
}
|
|
15019
15024
|
|
|
15020
|
-
// ../rivetkit/dist/tsup/chunk-
|
|
15025
|
+
// ../rivetkit/dist/tsup/chunk-D2JJWLWM.js
|
|
15021
15026
|
var cbor = __toESM(require("cbor-x"), 1);
|
|
15022
15027
|
var import_invariant = __toESM(require_invariant(), 1);
|
|
15023
15028
|
var JSON_COMPAT_BIGINT = "$BigInt";
|
|
@@ -15377,34 +15382,7 @@ function deserializeWithEncoding(encoding, buffer, versionedDataHandler, zodSche
|
|
|
15377
15382
|
}
|
|
15378
15383
|
}
|
|
15379
15384
|
|
|
15380
|
-
// ../rivetkit/dist/tsup/chunk-
|
|
15381
|
-
var AsyncMutex = class {
|
|
15382
|
-
#locked = false;
|
|
15383
|
-
#waiting = [];
|
|
15384
|
-
async acquire() {
|
|
15385
|
-
while (this.#locked) {
|
|
15386
|
-
await new Promise((resolve) => this.#waiting.push(resolve));
|
|
15387
|
-
}
|
|
15388
|
-
this.#locked = true;
|
|
15389
|
-
}
|
|
15390
|
-
release() {
|
|
15391
|
-
this.#locked = false;
|
|
15392
|
-
const next = this.#waiting.shift();
|
|
15393
|
-
if (next) {
|
|
15394
|
-
next();
|
|
15395
|
-
}
|
|
15396
|
-
}
|
|
15397
|
-
async run(fn) {
|
|
15398
|
-
await this.acquire();
|
|
15399
|
-
try {
|
|
15400
|
-
return await fn();
|
|
15401
|
-
} finally {
|
|
15402
|
-
this.release();
|
|
15403
|
-
}
|
|
15404
|
-
}
|
|
15405
|
-
};
|
|
15406
|
-
|
|
15407
|
-
// ../rivetkit/dist/tsup/chunk-VYQASICJ.js
|
|
15385
|
+
// ../rivetkit/dist/tsup/chunk-UEYBIN52.js
|
|
15408
15386
|
function logger() {
|
|
15409
15387
|
return getLogger("actor-client");
|
|
15410
15388
|
}
|
|
@@ -15442,7 +15420,34 @@ async function importWebSocket() {
|
|
|
15442
15420
|
return webSocketPromise;
|
|
15443
15421
|
}
|
|
15444
15422
|
|
|
15445
|
-
// ../rivetkit/dist/tsup/chunk-
|
|
15423
|
+
// ../rivetkit/dist/tsup/chunk-JZ7TWV65.js
|
|
15424
|
+
var AsyncMutex = class {
|
|
15425
|
+
#locked = false;
|
|
15426
|
+
#waiting = [];
|
|
15427
|
+
async acquire() {
|
|
15428
|
+
while (this.#locked) {
|
|
15429
|
+
await new Promise((resolve) => this.#waiting.push(resolve));
|
|
15430
|
+
}
|
|
15431
|
+
this.#locked = true;
|
|
15432
|
+
}
|
|
15433
|
+
release() {
|
|
15434
|
+
this.#locked = false;
|
|
15435
|
+
const next = this.#waiting.shift();
|
|
15436
|
+
if (next) {
|
|
15437
|
+
next();
|
|
15438
|
+
}
|
|
15439
|
+
}
|
|
15440
|
+
async run(fn) {
|
|
15441
|
+
await this.acquire();
|
|
15442
|
+
try {
|
|
15443
|
+
return await fn();
|
|
15444
|
+
} finally {
|
|
15445
|
+
this.release();
|
|
15446
|
+
}
|
|
15447
|
+
}
|
|
15448
|
+
};
|
|
15449
|
+
|
|
15450
|
+
// ../rivetkit/dist/tsup/chunk-2EYF7KY7.js
|
|
15446
15451
|
var import_invariant2 = __toESM(require_invariant(), 1);
|
|
15447
15452
|
|
|
15448
15453
|
// ../../../node_modules/.pnpm/p-retry@6.2.1/node_modules/p-retry/index.js
|
|
@@ -15620,7 +15625,7 @@ function createVersionedDataHandler(config3) {
|
|
|
15620
15625
|
return new VersionedDataHandler(config3);
|
|
15621
15626
|
}
|
|
15622
15627
|
|
|
15623
|
-
// ../rivetkit/dist/tsup/chunk-
|
|
15628
|
+
// ../rivetkit/dist/tsup/chunk-2EYF7KY7.js
|
|
15624
15629
|
var import_invariant3 = __toESM(require_invariant(), 1);
|
|
15625
15630
|
var import_invariant4 = __toESM(require_invariant(), 1);
|
|
15626
15631
|
var PATH_CONNECT = "/connect";
|
|
@@ -23053,8 +23058,6 @@ var RegistryConfigSchema = external_exports.object({
|
|
|
23053
23058
|
maxIncomingMessageSize: external_exports.number().optional().default(65536),
|
|
23054
23059
|
/** @experimental */
|
|
23055
23060
|
maxOutgoingMessageSize: external_exports.number().optional().default(1048576),
|
|
23056
|
-
/** Enables the experimental per-actor Unix socket API. */
|
|
23057
|
-
experimentalActorUds: external_exports.boolean().optional().default(false),
|
|
23058
23061
|
// MARK: Runtime
|
|
23059
23062
|
/**
|
|
23060
23063
|
* @experimental
|
|
@@ -27168,7 +27171,7 @@ function buildActorConfig(definition, registryConfig, runtimeKind) {
|
|
|
27168
27171
|
icon: options.icon,
|
|
27169
27172
|
hasDatabase: config3.db !== void 0,
|
|
27170
27173
|
remoteSqlite: config3.db !== void 0 && sqliteBackendForConfig(registryConfig) === "remote",
|
|
27171
|
-
|
|
27174
|
+
enableSqliteUds: options.enableSqliteUds === true,
|
|
27172
27175
|
hasState: config3.state !== void 0 || typeof config3.createState === "function",
|
|
27173
27176
|
canHibernateWebsocket: typeof canHibernate === "boolean" ? canHibernate : void 0,
|
|
27174
27177
|
stateSaveIntervalMs: options.stateSaveInterval,
|
package/dist/mod.mjs
CHANGED
|
@@ -471,7 +471,7 @@ function unsupportedFeature(feature) {
|
|
|
471
471
|
);
|
|
472
472
|
}
|
|
473
473
|
|
|
474
|
-
// ../rivetkit/dist/tsup/chunk-
|
|
474
|
+
// ../rivetkit/dist/tsup/chunk-FFJXFXEW.js
|
|
475
475
|
import {
|
|
476
476
|
pino,
|
|
477
477
|
stdTimeFunctions
|
|
@@ -13147,7 +13147,7 @@ var classic_default = external_exports;
|
|
|
13147
13147
|
// ../../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/index.js
|
|
13148
13148
|
var v4_default = classic_default;
|
|
13149
13149
|
|
|
13150
|
-
// ../rivetkit/dist/tsup/chunk-
|
|
13150
|
+
// ../rivetkit/dist/tsup/chunk-FFJXFXEW.js
|
|
13151
13151
|
var getRivetEngine = () => getEnvUniversal("RIVET_ENGINE");
|
|
13152
13152
|
var getRivetEndpoint = () => getEnvUniversal("RIVET_ENDPOINT");
|
|
13153
13153
|
var getRivetToken = () => getEnvUniversal("RIVET_TOKEN");
|
|
@@ -13310,7 +13310,7 @@ function noopNext() {
|
|
|
13310
13310
|
}
|
|
13311
13311
|
var package_default = {
|
|
13312
13312
|
name: "rivetkit",
|
|
13313
|
-
version: "0.0.0-sqlite-uds.
|
|
13313
|
+
version: "0.0.0-sqlite-uds.37f9e48",
|
|
13314
13314
|
description: "Lightweight libraries for building stateful actors on edge platforms",
|
|
13315
13315
|
license: "Apache-2.0",
|
|
13316
13316
|
keywords: [
|
|
@@ -14230,7 +14230,7 @@ function Config({ initialBufferLength = 1024, maxBufferLength = 1024 * 1024 * 32
|
|
|
14230
14230
|
};
|
|
14231
14231
|
}
|
|
14232
14232
|
|
|
14233
|
-
// ../rivetkit/dist/tsup/chunk-
|
|
14233
|
+
// ../rivetkit/dist/tsup/chunk-Q3ODMSBE.js
|
|
14234
14234
|
var config2 = /* @__PURE__ */ Config({});
|
|
14235
14235
|
function readWorkflowCbor(bc) {
|
|
14236
14236
|
return readData(bc);
|
|
@@ -14528,7 +14528,7 @@ function decodeWorkflowHistoryTransport(data) {
|
|
|
14528
14528
|
return decodeWorkflowHistory(toUint8Array(data));
|
|
14529
14529
|
}
|
|
14530
14530
|
|
|
14531
|
-
// ../rivetkit/dist/tsup/chunk-
|
|
14531
|
+
// ../rivetkit/dist/tsup/chunk-ARD7UMSN.js
|
|
14532
14532
|
var DEFAULT_SLEEP_GRACE_PERIOD = 15e3;
|
|
14533
14533
|
var ACTOR_CONTEXT_INTERNAL_SYMBOL = /* @__PURE__ */ Symbol(
|
|
14534
14534
|
"rivetkit.actor_context_internal"
|
|
@@ -14645,6 +14645,8 @@ var GlobalActorOptionsBaseSchema = external_exports.object({
|
|
|
14645
14645
|
name: external_exports.string().optional(),
|
|
14646
14646
|
/** Icon for the actor in the Inspector UI. Can be an emoji or FontAwesome icon name. */
|
|
14647
14647
|
icon: external_exports.string().optional(),
|
|
14648
|
+
/** Enables the experimental local SQLite Unix socket endpoint for this actor. */
|
|
14649
|
+
enableSqliteUds: external_exports.boolean().default(false),
|
|
14648
14650
|
/**
|
|
14649
14651
|
* Can hibernate WebSockets for onWebSocket.
|
|
14650
14652
|
*
|
|
@@ -14738,6 +14740,9 @@ var DocActorOptionsSchema = external_exports.object({
|
|
|
14738
14740
|
icon: external_exports.string().optional().describe(
|
|
14739
14741
|
"Icon for the actor in the Inspector UI. Can be an emoji (e.g., '\u{1F680}') or FontAwesome icon name (e.g., 'rocket')."
|
|
14740
14742
|
),
|
|
14743
|
+
enableSqliteUds: external_exports.boolean().optional().describe(
|
|
14744
|
+
"Enables the experimental local SQLite Unix socket endpoint for this actor. Default: false"
|
|
14745
|
+
),
|
|
14741
14746
|
createVarsTimeout: external_exports.number().optional().describe("Timeout in ms for createVars handler. Default: 5000"),
|
|
14742
14747
|
createConnStateTimeout: external_exports.number().optional().describe(
|
|
14743
14748
|
"Timeout in ms for createConnState handler. Default: 5000"
|
|
@@ -14983,7 +14988,7 @@ function queueMessagesPrefix() {
|
|
|
14983
14988
|
return Uint8Array.from(QUEUE_MESSAGES_PREFIX);
|
|
14984
14989
|
}
|
|
14985
14990
|
|
|
14986
|
-
// ../rivetkit/dist/tsup/chunk-
|
|
14991
|
+
// ../rivetkit/dist/tsup/chunk-D2JJWLWM.js
|
|
14987
14992
|
var import_invariant = __toESM(require_invariant(), 1);
|
|
14988
14993
|
import * as cbor from "cbor-x";
|
|
14989
14994
|
var JSON_COMPAT_BIGINT = "$BigInt";
|
|
@@ -15343,34 +15348,7 @@ function deserializeWithEncoding(encoding, buffer, versionedDataHandler, zodSche
|
|
|
15343
15348
|
}
|
|
15344
15349
|
}
|
|
15345
15350
|
|
|
15346
|
-
// ../rivetkit/dist/tsup/chunk-
|
|
15347
|
-
var AsyncMutex = class {
|
|
15348
|
-
#locked = false;
|
|
15349
|
-
#waiting = [];
|
|
15350
|
-
async acquire() {
|
|
15351
|
-
while (this.#locked) {
|
|
15352
|
-
await new Promise((resolve) => this.#waiting.push(resolve));
|
|
15353
|
-
}
|
|
15354
|
-
this.#locked = true;
|
|
15355
|
-
}
|
|
15356
|
-
release() {
|
|
15357
|
-
this.#locked = false;
|
|
15358
|
-
const next = this.#waiting.shift();
|
|
15359
|
-
if (next) {
|
|
15360
|
-
next();
|
|
15361
|
-
}
|
|
15362
|
-
}
|
|
15363
|
-
async run(fn) {
|
|
15364
|
-
await this.acquire();
|
|
15365
|
-
try {
|
|
15366
|
-
return await fn();
|
|
15367
|
-
} finally {
|
|
15368
|
-
this.release();
|
|
15369
|
-
}
|
|
15370
|
-
}
|
|
15371
|
-
};
|
|
15372
|
-
|
|
15373
|
-
// ../rivetkit/dist/tsup/chunk-VYQASICJ.js
|
|
15351
|
+
// ../rivetkit/dist/tsup/chunk-UEYBIN52.js
|
|
15374
15352
|
function logger() {
|
|
15375
15353
|
return getLogger("actor-client");
|
|
15376
15354
|
}
|
|
@@ -15408,7 +15386,34 @@ async function importWebSocket() {
|
|
|
15408
15386
|
return webSocketPromise;
|
|
15409
15387
|
}
|
|
15410
15388
|
|
|
15411
|
-
// ../rivetkit/dist/tsup/chunk-
|
|
15389
|
+
// ../rivetkit/dist/tsup/chunk-JZ7TWV65.js
|
|
15390
|
+
var AsyncMutex = class {
|
|
15391
|
+
#locked = false;
|
|
15392
|
+
#waiting = [];
|
|
15393
|
+
async acquire() {
|
|
15394
|
+
while (this.#locked) {
|
|
15395
|
+
await new Promise((resolve) => this.#waiting.push(resolve));
|
|
15396
|
+
}
|
|
15397
|
+
this.#locked = true;
|
|
15398
|
+
}
|
|
15399
|
+
release() {
|
|
15400
|
+
this.#locked = false;
|
|
15401
|
+
const next = this.#waiting.shift();
|
|
15402
|
+
if (next) {
|
|
15403
|
+
next();
|
|
15404
|
+
}
|
|
15405
|
+
}
|
|
15406
|
+
async run(fn) {
|
|
15407
|
+
await this.acquire();
|
|
15408
|
+
try {
|
|
15409
|
+
return await fn();
|
|
15410
|
+
} finally {
|
|
15411
|
+
this.release();
|
|
15412
|
+
}
|
|
15413
|
+
}
|
|
15414
|
+
};
|
|
15415
|
+
|
|
15416
|
+
// ../rivetkit/dist/tsup/chunk-2EYF7KY7.js
|
|
15412
15417
|
var import_invariant2 = __toESM(require_invariant(), 1);
|
|
15413
15418
|
|
|
15414
15419
|
// ../../../node_modules/.pnpm/p-retry@6.2.1/node_modules/p-retry/index.js
|
|
@@ -15586,7 +15591,7 @@ function createVersionedDataHandler(config3) {
|
|
|
15586
15591
|
return new VersionedDataHandler(config3);
|
|
15587
15592
|
}
|
|
15588
15593
|
|
|
15589
|
-
// ../rivetkit/dist/tsup/chunk-
|
|
15594
|
+
// ../rivetkit/dist/tsup/chunk-2EYF7KY7.js
|
|
15590
15595
|
var import_invariant3 = __toESM(require_invariant(), 1);
|
|
15591
15596
|
var import_invariant4 = __toESM(require_invariant(), 1);
|
|
15592
15597
|
var PATH_CONNECT = "/connect";
|
|
@@ -23018,8 +23023,6 @@ var RegistryConfigSchema = external_exports.object({
|
|
|
23018
23023
|
maxIncomingMessageSize: external_exports.number().optional().default(65536),
|
|
23019
23024
|
/** @experimental */
|
|
23020
23025
|
maxOutgoingMessageSize: external_exports.number().optional().default(1048576),
|
|
23021
|
-
/** Enables the experimental per-actor Unix socket API. */
|
|
23022
|
-
experimentalActorUds: external_exports.boolean().optional().default(false),
|
|
23023
23026
|
// MARK: Runtime
|
|
23024
23027
|
/**
|
|
23025
23028
|
* @experimental
|
|
@@ -27133,7 +27136,7 @@ function buildActorConfig(definition, registryConfig, runtimeKind) {
|
|
|
27133
27136
|
icon: options.icon,
|
|
27134
27137
|
hasDatabase: config3.db !== void 0,
|
|
27135
27138
|
remoteSqlite: config3.db !== void 0 && sqliteBackendForConfig(registryConfig) === "remote",
|
|
27136
|
-
|
|
27139
|
+
enableSqliteUds: options.enableSqliteUds === true,
|
|
27137
27140
|
hasState: config3.state !== void 0 || typeof config3.createState === "function",
|
|
27138
27141
|
canHibernateWebsocket: typeof canHibernate === "boolean" ? canHibernate : void 0,
|
|
27139
27142
|
stateSaveIntervalMs: options.stateSaveInterval,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rivetkit/supabase",
|
|
3
|
-
"version": "0.0.0-sqlite-uds.
|
|
3
|
+
"version": "0.0.0-sqlite-uds.37f9e48",
|
|
4
4
|
"description": "Supabase Edge Functions integration for RivetKit actors",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"keywords": [
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
"check-edge-closure": "node ../../../scripts/ci/check-edge-native-closure.mjs"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@rivetkit/rivetkit-wasm": "0.0.0-sqlite-uds.
|
|
42
|
+
"@rivetkit/rivetkit-wasm": "0.0.0-sqlite-uds.37f9e48",
|
|
43
43
|
"cbor-x": "^1.6.0",
|
|
44
44
|
"pino": "^9.5.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@size-limit/file": "^11.1.6",
|
|
48
48
|
"@types/node": "^22.0.0",
|
|
49
|
-
"rivetkit": "0.0.0-sqlite-uds.
|
|
49
|
+
"rivetkit": "0.0.0-sqlite-uds.37f9e48",
|
|
50
50
|
"size-limit": "^11.1.6",
|
|
51
51
|
"tsup": "^8.4.0",
|
|
52
52
|
"typescript": "^5.5.2"
|