rivetkit 2.3.2 → 2.3.3-rc.1
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/browser/client.js +1 -1
- package/dist/browser/client.js.map +1 -1
- package/dist/browser/inspector/client.js +1 -1
- package/dist/browser/inspector/client.js.map +1 -1
- package/dist/tsup/agent-os/index.cjs +1 -1
- package/dist/tsup/agent-os/index.cjs.map +1 -1
- package/dist/tsup/agent-os/index.js +1 -1
- package/dist/tsup/agent-os/index.js.map +1 -1
- package/dist/tsup/{chunk-VBEZ57VX.js → chunk-2ZBWR7HC.js} +2 -2
- package/dist/tsup/{chunk-2WOKGTL3.js → chunk-3UWWME7J.js} +2 -2
- package/dist/tsup/{chunk-VG6SAPWF.cjs → chunk-CFVNICL7.cjs} +7 -7
- package/dist/tsup/{chunk-VG6SAPWF.cjs.map → chunk-CFVNICL7.cjs.map} +1 -1
- package/dist/tsup/{chunk-S4ZHBMD7.cjs → chunk-CN4IAGVP.cjs} +141 -141
- package/dist/tsup/{chunk-S4ZHBMD7.cjs.map → chunk-CN4IAGVP.cjs.map} +1 -1
- package/dist/tsup/{chunk-TJVQGVTZ.js → chunk-D5KMS3WU.js} +2 -2
- package/dist/tsup/chunk-D5KMS3WU.js.map +1 -0
- package/dist/tsup/{chunk-BDXKVROD.js → chunk-EIB2XNTL.js} +4 -4
- package/dist/tsup/{chunk-4PQAFXDX.cjs → chunk-GMD47RV5.cjs} +5 -5
- package/dist/tsup/{chunk-4PQAFXDX.cjs.map → chunk-GMD47RV5.cjs.map} +1 -1
- package/dist/tsup/{chunk-2OIYUYNN.js → chunk-J7NGTEDW.js} +3 -3
- package/dist/tsup/{chunk-GFXUYXMK.cjs → chunk-KVSK67EL.cjs} +10 -10
- package/dist/tsup/{chunk-GFXUYXMK.cjs.map → chunk-KVSK67EL.cjs.map} +1 -1
- package/dist/tsup/{chunk-RUBJWXFW.cjs → chunk-MLFI5BLT.cjs} +2 -2
- package/dist/tsup/chunk-MLFI5BLT.cjs.map +1 -0
- package/dist/tsup/{chunk-MZJVAV3I.cjs → chunk-T5YE5THK.cjs} +4 -4
- package/dist/tsup/{chunk-MZJVAV3I.cjs.map → chunk-T5YE5THK.cjs.map} +1 -1
- package/dist/tsup/{chunk-HINDZOY3.js → chunk-TXO4XNNB.js} +2 -2
- package/dist/tsup/{chunk-FRVQ34UV.cjs → chunk-VEJGWALU.cjs} +3 -3
- package/dist/tsup/{chunk-FRVQ34UV.cjs.map → chunk-VEJGWALU.cjs.map} +1 -1
- package/dist/tsup/{chunk-ASKKONXG.js → chunk-VNWYKWBM.js} +7 -7
- package/dist/tsup/client/mod.cjs +7 -7
- package/dist/tsup/client/mod.cjs.map +1 -1
- package/dist/tsup/client/mod.js +6 -6
- package/dist/tsup/common/log.cjs +2 -2
- package/dist/tsup/common/log.js +1 -1
- package/dist/tsup/common/websocket.cjs +3 -3
- package/dist/tsup/common/websocket.js +2 -2
- package/dist/tsup/inspector/mod.cjs +5 -5
- package/dist/tsup/inspector/mod.js +4 -4
- package/dist/tsup/mod.cjs +61 -61
- package/dist/tsup/mod.cjs.map +1 -1
- package/dist/tsup/mod.js +6 -6
- package/dist/tsup/test/mod.cjs +10 -10
- package/dist/tsup/test/mod.js +6 -6
- package/dist/tsup/utils.cjs +2 -2
- package/dist/tsup/utils.js +1 -1
- package/dist/tsup/workflow/mod.cjs +7 -7
- package/dist/tsup/workflow/mod.js +4 -4
- package/package.json +8 -8
- package/dist/tsup/chunk-RUBJWXFW.cjs.map +0 -1
- package/dist/tsup/chunk-TJVQGVTZ.js.map +0 -1
- /package/dist/tsup/{chunk-VBEZ57VX.js.map → chunk-2ZBWR7HC.js.map} +0 -0
- /package/dist/tsup/{chunk-2WOKGTL3.js.map → chunk-3UWWME7J.js.map} +0 -0
- /package/dist/tsup/{chunk-BDXKVROD.js.map → chunk-EIB2XNTL.js.map} +0 -0
- /package/dist/tsup/{chunk-2OIYUYNN.js.map → chunk-J7NGTEDW.js.map} +0 -0
- /package/dist/tsup/{chunk-HINDZOY3.js.map → chunk-TXO4XNNB.js.map} +0 -0
- /package/dist/tsup/{chunk-ASKKONXG.js.map → chunk-VNWYKWBM.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
assertUnreachable
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-D5KMS3WU.js";
|
|
4
4
|
|
|
5
5
|
// src/serde.ts
|
|
6
6
|
import * as cbor from "cbor-x";
|
|
@@ -379,4 +379,4 @@ export {
|
|
|
379
379
|
inputDataToBuffer,
|
|
380
380
|
jsonStringifyCompat
|
|
381
381
|
};
|
|
382
|
-
//# sourceMappingURL=chunk-
|
|
382
|
+
//# sourceMappingURL=chunk-2ZBWR7HC.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
bufferToArrayBuffer,
|
|
3
3
|
toUint8Array
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-D5KMS3WU.js";
|
|
5
5
|
|
|
6
6
|
// src/common/bare/transport/v1.ts
|
|
7
7
|
import * as bare from "@rivetkit/bare-ts";
|
|
@@ -546,4 +546,4 @@ export {
|
|
|
546
546
|
encodeWorkflowHistoryTransport,
|
|
547
547
|
decodeWorkflowHistoryTransport
|
|
548
548
|
};
|
|
549
|
-
//# sourceMappingURL=chunk-
|
|
549
|
+
//# sourceMappingURL=chunk-3UWWME7J.js.map
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkCN4IAGVPcjs = require('./chunk-CN4IAGVP.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkMLFI5BLTcjs = require('./chunk-MLFI5BLT.cjs');
|
|
9
9
|
|
|
10
10
|
// src/devtools-loader/log.ts
|
|
11
11
|
function logger() {
|
|
12
|
-
return
|
|
12
|
+
return _chunkMLFI5BLTcjs.getLogger.call(void 0, "devtools");
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
// src/devtools-loader/index.ts
|
|
@@ -35,15 +35,15 @@ function injectDevtools(config) {
|
|
|
35
35
|
// src/client/mod.ts
|
|
36
36
|
function createClient(endpointOrConfig) {
|
|
37
37
|
const configInput = endpointOrConfig === void 0 ? {} : typeof endpointOrConfig === "string" ? { endpoint: endpointOrConfig } : endpointOrConfig;
|
|
38
|
-
const config =
|
|
39
|
-
const driver = new (0,
|
|
38
|
+
const config = _chunkCN4IAGVPcjs.ClientConfigSchema.parse(configInput);
|
|
39
|
+
const driver = new (0, _chunkCN4IAGVPcjs.RemoteEngineControlClient)(config);
|
|
40
40
|
if (config.devtools) {
|
|
41
41
|
injectDevtools(config);
|
|
42
42
|
}
|
|
43
|
-
return
|
|
43
|
+
return _chunkCN4IAGVPcjs.createClientWithDriver.call(void 0, driver, config);
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
exports.createClient = createClient;
|
|
49
|
-
//# sourceMappingURL=chunk-
|
|
49
|
+
//# sourceMappingURL=chunk-CFVNICL7.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/rivet/rivet/rivetkit-typescript/packages/rivetkit/dist/tsup/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/rivet/rivet/rivetkit-typescript/packages/rivetkit/dist/tsup/chunk-CFVNICL7.cjs","../../src/devtools-loader/log.ts","../../src/devtools-loader/index.ts","../../src/client/mod.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACA;ACPO,SAAS,MAAA,CAAA,EAAS;AACxB,EAAA,OAAO,yCAAA,UAAoB,CAAA;AAC5B;ADSA;AACA;AENA,IAAM,SAAA,EAAW,0BAAA;AAEV,SAAS,cAAA,CAAe,MAAA,EAA2B;AAV1D,EAAA,IAAA,EAAA;AAWC,EAAA,GAAA,CAAI,CAAC,MAAA,EAAQ;AACZ,IAAA,MAAA,CAAO,CAAA,CAAE,IAAA,CAAK,oDAAoD,CAAA;AAClE,IAAA,MAAA;AAAA,EACD;AAEA,EAAA,GAAA,CAAI,CAAC,QAAA,CAAS,cAAA,CAAe,QAAQ,CAAA,EAAG;AACvC,IAAA,MAAM,IAAA,EAEL,CAAA,EAAA;AACK,IAAA;AACM,IAAA;AACC,IAAA;AACN,IAAA;AACE,IAAA;AACV,EAAA;AAEO,EAAA;AACA,EAAA;AACR;AFIiB;AACA;AGqBD;AAIT,EAAA;AAMS,EAAA;AAGA,EAAA;AAEJ,EAAA;AACV,IAAA;AACD,EAAA;AAEO,EAAA;AACR;AH/BiB;AACA;AACA;AACA","file":"/home/runner/work/rivet/rivet/rivetkit-typescript/packages/rivetkit/dist/tsup/chunk-CFVNICL7.cjs","sourcesContent":[null,"import { getLogger } from \"@/common/log\";\n\nexport function logger() {\n\treturn getLogger(\"devtools\");\n}\n","import type { ClientConfigInput } from \"@/client/client\";\nimport { logger } from \"./log\";\n\ndeclare global {\n\t// Injected via tsup config\n\tvar CUSTOM_RIVETKIT_DEVTOOLS_URL: string | undefined;\n}\n\nconst scriptId = \"rivetkit-devtools-script\";\n\nexport function injectDevtools(config: ClientConfigInput) {\n\tif (!window) {\n\t\tlogger().warn(\"devtools not available outside browser environment\");\n\t\treturn;\n\t}\n\n\tif (!document.getElementById(scriptId)) {\n\t\tconst src =\n\t\t\tglobalThis.CUSTOM_RIVETKIT_DEVTOOLS_URL ||\n\t\t\t`${config.endpoint?.replace(/\\/$/, \"\")}/devtools/mod.js`;\n\t\tconst script = document.createElement(\"script\");\n\t\tscript.id = scriptId;\n\t\tscript.src = src;\n\t\tscript.async = true;\n\t\tdocument.head.appendChild(script);\n\t}\n\n\twindow.__rivetkit = window.__rivetkit || [];\n\twindow.__rivetkit.push(config);\n}\n","import { injectDevtools } from \"@/devtools-loader\";\nimport { RemoteEngineControlClient } from \"@/engine-client/mod\";\nimport type { Registry } from \"@/registry\";\nimport {\n\ttype Client,\n\ttype ClientConfigInput,\n\tcreateClientWithDriver,\n} from \"./client\";\nimport { ClientConfigSchema } from \"./config\";\n\nexport type { ActorDefinition, AnyActorDefinition } from \"@/actor/definition\";\nexport {\n\tActorClientError,\n\tActorConnDisposed,\n\tActorError,\n\tMalformedResponseMessage,\n\tManagerError,\n\tRivetError,\n\tUserError,\n} from \"@/client/errors\";\nexport type { CreateRequest } from \"@/client/query\";\nexport type { Encoding } from \"@/common/encoding\";\nexport type {\n\tActorActionFunction,\n\tActorActionOptions,\n\tActorConnectOptions,\n\tActorGatewayOptions,\n} from \"./actor-common\";\nexport type {\n\tActorConn,\n\tActorConnStatus,\n\tConnectionStateCallback,\n\tEventUnsubscribe,\n\tStatusChangeCallback,\n} from \"./actor-conn\";\nexport { ActorConnRaw } from \"./actor-conn\";\nexport type { ActorHandle } from \"./actor-handle\";\nexport { ActorHandleRaw } from \"./actor-handle\";\nexport type {\n\tActorAccessor,\n\tClient,\n\tClientConfigInput,\n\tClientRaw,\n\tCreateOptions,\n\tExtractActorsFromRegistry,\n\tExtractRegistryFromClient,\n\tGetOptions,\n\tGetWithIdOptions,\n\tQueryOptions,\n\tRegion,\n} from \"./client\";\n\n/**\n * Creates a client with the actor accessor proxy.\n */\nexport function createClient<A extends Registry<any>>(\n\tendpointOrConfig?: string | ClientConfigInput,\n): Client<A> {\n\t// Parse config\n\tconst configInput =\n\t\tendpointOrConfig === undefined\n\t\t\t? {}\n\t\t\t: typeof endpointOrConfig === \"string\"\n\t\t\t\t? { endpoint: endpointOrConfig }\n\t\t\t\t: endpointOrConfig;\n\tconst config = ClientConfigSchema.parse(configInput);\n\n\t// Create client\n\tconst driver = new RemoteEngineControlClient(config);\n\n\tif (config.devtools) {\n\t\tinjectDevtools(config);\n\t}\n\n\treturn createClientWithDriver<A>(driver, config);\n}\n"]}
|