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.
Files changed (57) hide show
  1. package/dist/browser/client.js +1 -1
  2. package/dist/browser/client.js.map +1 -1
  3. package/dist/browser/inspector/client.js +1 -1
  4. package/dist/browser/inspector/client.js.map +1 -1
  5. package/dist/tsup/agent-os/index.cjs +1 -1
  6. package/dist/tsup/agent-os/index.cjs.map +1 -1
  7. package/dist/tsup/agent-os/index.js +1 -1
  8. package/dist/tsup/agent-os/index.js.map +1 -1
  9. package/dist/tsup/{chunk-VBEZ57VX.js → chunk-2ZBWR7HC.js} +2 -2
  10. package/dist/tsup/{chunk-2WOKGTL3.js → chunk-3UWWME7J.js} +2 -2
  11. package/dist/tsup/{chunk-VG6SAPWF.cjs → chunk-CFVNICL7.cjs} +7 -7
  12. package/dist/tsup/{chunk-VG6SAPWF.cjs.map → chunk-CFVNICL7.cjs.map} +1 -1
  13. package/dist/tsup/{chunk-S4ZHBMD7.cjs → chunk-CN4IAGVP.cjs} +141 -141
  14. package/dist/tsup/{chunk-S4ZHBMD7.cjs.map → chunk-CN4IAGVP.cjs.map} +1 -1
  15. package/dist/tsup/{chunk-TJVQGVTZ.js → chunk-D5KMS3WU.js} +2 -2
  16. package/dist/tsup/chunk-D5KMS3WU.js.map +1 -0
  17. package/dist/tsup/{chunk-BDXKVROD.js → chunk-EIB2XNTL.js} +4 -4
  18. package/dist/tsup/{chunk-4PQAFXDX.cjs → chunk-GMD47RV5.cjs} +5 -5
  19. package/dist/tsup/{chunk-4PQAFXDX.cjs.map → chunk-GMD47RV5.cjs.map} +1 -1
  20. package/dist/tsup/{chunk-2OIYUYNN.js → chunk-J7NGTEDW.js} +3 -3
  21. package/dist/tsup/{chunk-GFXUYXMK.cjs → chunk-KVSK67EL.cjs} +10 -10
  22. package/dist/tsup/{chunk-GFXUYXMK.cjs.map → chunk-KVSK67EL.cjs.map} +1 -1
  23. package/dist/tsup/{chunk-RUBJWXFW.cjs → chunk-MLFI5BLT.cjs} +2 -2
  24. package/dist/tsup/chunk-MLFI5BLT.cjs.map +1 -0
  25. package/dist/tsup/{chunk-MZJVAV3I.cjs → chunk-T5YE5THK.cjs} +4 -4
  26. package/dist/tsup/{chunk-MZJVAV3I.cjs.map → chunk-T5YE5THK.cjs.map} +1 -1
  27. package/dist/tsup/{chunk-HINDZOY3.js → chunk-TXO4XNNB.js} +2 -2
  28. package/dist/tsup/{chunk-FRVQ34UV.cjs → chunk-VEJGWALU.cjs} +3 -3
  29. package/dist/tsup/{chunk-FRVQ34UV.cjs.map → chunk-VEJGWALU.cjs.map} +1 -1
  30. package/dist/tsup/{chunk-ASKKONXG.js → chunk-VNWYKWBM.js} +7 -7
  31. package/dist/tsup/client/mod.cjs +7 -7
  32. package/dist/tsup/client/mod.cjs.map +1 -1
  33. package/dist/tsup/client/mod.js +6 -6
  34. package/dist/tsup/common/log.cjs +2 -2
  35. package/dist/tsup/common/log.js +1 -1
  36. package/dist/tsup/common/websocket.cjs +3 -3
  37. package/dist/tsup/common/websocket.js +2 -2
  38. package/dist/tsup/inspector/mod.cjs +5 -5
  39. package/dist/tsup/inspector/mod.js +4 -4
  40. package/dist/tsup/mod.cjs +61 -61
  41. package/dist/tsup/mod.cjs.map +1 -1
  42. package/dist/tsup/mod.js +6 -6
  43. package/dist/tsup/test/mod.cjs +10 -10
  44. package/dist/tsup/test/mod.js +6 -6
  45. package/dist/tsup/utils.cjs +2 -2
  46. package/dist/tsup/utils.js +1 -1
  47. package/dist/tsup/workflow/mod.cjs +7 -7
  48. package/dist/tsup/workflow/mod.js +4 -4
  49. package/package.json +8 -8
  50. package/dist/tsup/chunk-RUBJWXFW.cjs.map +0 -1
  51. package/dist/tsup/chunk-TJVQGVTZ.js.map +0 -1
  52. /package/dist/tsup/{chunk-VBEZ57VX.js.map → chunk-2ZBWR7HC.js.map} +0 -0
  53. /package/dist/tsup/{chunk-2WOKGTL3.js.map → chunk-3UWWME7J.js.map} +0 -0
  54. /package/dist/tsup/{chunk-BDXKVROD.js.map → chunk-EIB2XNTL.js.map} +0 -0
  55. /package/dist/tsup/{chunk-2OIYUYNN.js.map → chunk-J7NGTEDW.js.map} +0 -0
  56. /package/dist/tsup/{chunk-HINDZOY3.js.map → chunk-TXO4XNNB.js.map} +0 -0
  57. /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-TJVQGVTZ.js";
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-VBEZ57VX.js.map
382
+ //# sourceMappingURL=chunk-2ZBWR7HC.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  bufferToArrayBuffer,
3
3
  toUint8Array
4
- } from "./chunk-TJVQGVTZ.js";
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-2WOKGTL3.js.map
549
+ //# sourceMappingURL=chunk-3UWWME7J.js.map
@@ -2,14 +2,14 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkS4ZHBMD7cjs = require('./chunk-S4ZHBMD7.cjs');
5
+ var _chunkCN4IAGVPcjs = require('./chunk-CN4IAGVP.cjs');
6
6
 
7
7
 
8
- var _chunkRUBJWXFWcjs = require('./chunk-RUBJWXFW.cjs');
8
+ var _chunkMLFI5BLTcjs = require('./chunk-MLFI5BLT.cjs');
9
9
 
10
10
  // src/devtools-loader/log.ts
11
11
  function logger() {
12
- return _chunkRUBJWXFWcjs.getLogger.call(void 0, "devtools");
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 = _chunkS4ZHBMD7cjs.ClientConfigSchema.parse(configInput);
39
- const driver = new (0, _chunkS4ZHBMD7cjs.RemoteEngineControlClient)(config);
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 _chunkS4ZHBMD7cjs.createClientWithDriver.call(void 0, driver, config);
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-VG6SAPWF.cjs.map
49
+ //# sourceMappingURL=chunk-CFVNICL7.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/rivet/rivet/rivetkit-typescript/packages/rivetkit/dist/tsup/chunk-VG6SAPWF.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-VG6SAPWF.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"]}
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"]}