@stryke/capnp 0.10.3 → 0.10.5

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.
@@ -735,6 +735,20 @@ function slash(path) {
735
735
  }
736
736
  _chunkUSNT2KNTcjs.__name.call(void 0, slash, "slash");
737
737
 
738
+ // ../path/src/is-file.ts
739
+ function isFile(path, additionalPath) {
740
+ return Boolean(_optionalChain([_fs.statSync.call(void 0, additionalPath ? joinPaths(additionalPath, path) : path, {
741
+ throwIfNoEntry: false
742
+ }), 'optionalAccess', _13 => _13.isFile, 'call', _14 => _14()]));
743
+ }
744
+ _chunkUSNT2KNTcjs.__name.call(void 0, isFile, "isFile");
745
+ function isDirectory(path, additionalPath) {
746
+ return Boolean(_optionalChain([_fs.statSync.call(void 0, additionalPath ? joinPaths(additionalPath, path) : path, {
747
+ throwIfNoEntry: false
748
+ }), 'optionalAccess', _15 => _15.isDirectory, 'call', _16 => _16()]));
749
+ }
750
+ _chunkUSNT2KNTcjs.__name.call(void 0, isDirectory, "isDirectory");
751
+
738
752
  // ../path/src/correct-path.ts
739
753
  function normalizeWindowsPath2(input = "") {
740
754
  if (!input) {
@@ -760,10 +774,103 @@ var _path = require('path');
760
774
  // ../path/src/get-workspace-root.ts
761
775
  var _configtools = require('@storm-software/config-tools');
762
776
 
777
+ // ../path/src/get-parent-path.ts
778
+ var resolveParentPath = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (path, count = 1) => {
779
+ let parentPath = path.replaceAll(/\/+$/g, "");
780
+ for (let i = 0; i < count; i++) {
781
+ parentPath = joinPaths(parentPath, "..");
782
+ }
783
+ return parentPath;
784
+ }, "resolveParentPath");
785
+ var getParentPath = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (name, cwd, options) => {
786
+ const ignoreCase = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _17 => _17.ignoreCase]), () => ( true));
787
+ const skipCwd = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _18 => _18.skipCwd]), () => ( false));
788
+ const targetType = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _19 => _19.targetType]), () => ( "both"));
789
+ let dir = cwd;
790
+ if (skipCwd) {
791
+ dir = resolveParentPath(cwd);
792
+ }
793
+ let names = Array.isArray(name) ? name : [
794
+ name
795
+ ];
796
+ if (ignoreCase) {
797
+ names = names.map((name2) => name2.toLowerCase());
798
+ }
799
+ while (true) {
800
+ const target = names.find((name2) => isFile(joinPaths(dir, name2)) && (targetType === "file" || targetType === "both") || isDirectory(joinPaths(dir, name2)) && (targetType === "directory" || targetType === "both"));
801
+ if (target) {
802
+ return joinPaths(dir, target);
803
+ }
804
+ const parentDir = resolveParentPath(dir);
805
+ if (parentDir === dir) {
806
+ return void 0;
807
+ }
808
+ dir = parentDir;
809
+ }
810
+ }, "getParentPath");
811
+
812
+ // ../path/src/is-root-dir.ts
813
+ var isSystemRoot = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (dir) => {
814
+ return Boolean(dir === "/" || dir === "c:\\" || dir === "C:\\");
815
+ }, "isSystemRoot");
816
+
817
+ // ../path/src/get-workspace-root.ts
818
+ var WORKSPACE_ROOT_CONTENT = [
819
+ "package-lock.json",
820
+ "yarn.lock",
821
+ "pnpm-lock.yaml",
822
+ "bun.lock",
823
+ "nx.json",
824
+ "knip.json",
825
+ "pnpm-workspace.yaml",
826
+ "LICENSE",
827
+ ".all-contributorsrc",
828
+ ".whitesource",
829
+ "syncpack.config.js",
830
+ "syncpack.json",
831
+ "socket.yaml",
832
+ "lefthook.yaml",
833
+ ".npmrc",
834
+ ".log4brains.yml",
835
+ ".huskyrc",
836
+ ".husky",
837
+ ".lintstagedrc",
838
+ ".commitlintrc",
839
+ "lefthook.yml",
840
+ ".github",
841
+ ".nx",
842
+ ".vscode",
843
+ "patches"
844
+ ];
845
+ function getWorkspaceRoot(dir = process.cwd()) {
846
+ if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
847
+ return process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH;
848
+ }
849
+ const root = _configtools.findWorkspaceRootSafe.call(void 0, dir);
850
+ if (root) {
851
+ return root;
852
+ }
853
+ let result = getParentPath(WORKSPACE_ROOT_CONTENT, dir);
854
+ if (result) {
855
+ return result;
856
+ }
857
+ result = dir;
858
+ while (result && !isSystemRoot(result)) {
859
+ result = getParentPath("storm-workspace.json", result, {
860
+ skipCwd: true
861
+ });
862
+ if (result) {
863
+ return result;
864
+ }
865
+ }
866
+ return dir;
867
+ }
868
+ _chunkUSNT2KNTcjs.__name.call(void 0, getWorkspaceRoot, "getWorkspaceRoot");
869
+
763
870
  // ../path/src/file-path-fns.ts
764
871
  function findFileName(filePath, options = {}) {
765
872
  const { requireExtension = false, withExtension = true } = options;
766
- const result = _nullishCoalesce(_optionalChain([normalizeWindowsPath2, 'call', _13 => _13(filePath), 'optionalAccess', _14 => _14.split, 'call', _15 => _15(_optionalChain([filePath, 'optionalAccess', _16 => _16.includes, 'call', _17 => _17("\\")]) ? "\\" : "/"), 'optionalAccess', _18 => _18.pop, 'call', _19 => _19()]), () => ( ""));
873
+ const result = _nullishCoalesce(_optionalChain([normalizeWindowsPath2, 'call', _20 => _20(filePath), 'optionalAccess', _21 => _21.split, 'call', _22 => _22(_optionalChain([filePath, 'optionalAccess', _23 => _23.includes, 'call', _24 => _24("\\")]) ? "\\" : "/"), 'optionalAccess', _25 => _25.pop, 'call', _26 => _26()]), () => ( ""));
767
874
  if (requireExtension === true && !result.includes(".")) {
768
875
  return EMPTY_STRING;
769
876
  }
@@ -836,7 +943,7 @@ async function listFiles(filesGlob, options) {
836
943
  const result = (await list(filesGlob, _defu2.default.call(void 0, {
837
944
  withFileTypes: true
838
945
  }, _nullishCoalesce(options, () => ( {}))))).filter((ret) => ret.isFile());
839
- if (!_optionalChain([options, 'optionalAccess', _20 => _20.withFileTypes])) {
946
+ if (!_optionalChain([options, 'optionalAccess', _27 => _27.withFileTypes])) {
840
947
  return result.map((file) => file.fullpath());
841
948
  }
842
949
  return result;
@@ -847,7 +954,7 @@ _chunkUSNT2KNTcjs.__name.call(void 0, listFiles, "listFiles");
847
954
  var _typescript = require('typescript');
848
955
  async function resolveOptions(options) {
849
956
  const tsconfigPath = options.tsconfigPath ? options.tsconfigPath.replace("{projectRoot}", options.projectRoot).replace("{workspaceRoot}", options.workspaceRoot) : void 0;
850
- const schemas = toArray(options.schemas ? Array.isArray(options.schemas) ? options.schemas.map((schema) => schema.replace("{projectRoot}", options.projectRoot).replace("{workspaceRoot}", options.workspaceRoot)) : options.schemas : joinPaths(options.projectRoot, "schemas/**/*.capnp"));
957
+ const schemas = toArray(options.schemas ? options.schemas : joinPaths(options.projectRoot, "schemas/**/*.capnp")).filter(Boolean).map((schema) => schema.replace("{projectRoot}", options.projectRoot).replace("{workspaceRoot}", options.workspaceRoot));
851
958
  let resolvedTsconfig;
852
959
  if (options.tsconfig) {
853
960
  resolvedTsconfig = options.tsconfig;
@@ -875,13 +982,11 @@ async function resolveOptions(options) {
875
982
  }
876
983
  const resolvedSchemas = [];
877
984
  for (const schema of schemas) {
878
- if (!schema || !schema.includes("*") && !existsSync2(schema)) {
879
- if (schemas.length <= 1) {
880
- throw new Error(`\u2716 The schema path "${schema}" is invalid. Please provide a valid path.`);
881
- }
882
- } else {
883
- resolvedSchemas.push(...await listFiles(schema.includes("*") ? schema.endsWith(".capnp") ? schema : `${schema}.capnp` : joinPaths(schema, "**/*.capnp")));
985
+ let formattedSchema = schema;
986
+ if (!schema.endsWith(".capnp") && !schema.includes("*")) {
987
+ formattedSchema = `${schema.replace(/\/$/g, "")}/*.capnp`;
884
988
  }
989
+ resolvedSchemas.push(...await listFiles(formattedSchema));
885
990
  }
886
991
  if (resolvedSchemas.length === 0 || !resolvedSchemas[0]) {
887
992
  _console.writeWarning.call(void 0, `\u2716 No Cap'n Proto schema files found in the specified source paths: ${schemas.join(", ")}. As a result, the Cap'n Proto compiler will not be able to generate any output files. Please ensure that the paths are correct and contain .capnp files.`, {
@@ -908,4 +1013,6 @@ _chunkUSNT2KNTcjs.__name.call(void 0, resolveOptions, "resolveOptions");
908
1013
 
909
1014
 
910
1015
 
911
- exports.existsSync = existsSync2; exports.createDirectory = createDirectory; exports.resolveOptions = resolveOptions;
1016
+
1017
+
1018
+ exports.existsSync = existsSync2; exports.createDirectory = createDirectory; exports.slash = slash; exports.getWorkspaceRoot = getWorkspaceRoot; exports.resolveOptions = resolveOptions;
package/dist/compile.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkI7MRPN6Icjs = require('./chunk-I7MRPN6I.cjs');
5
- require('./chunk-L3LVFSZK.cjs');
4
+ var _chunkGTDJDX77cjs = require('./chunk-GTDJDX77.cjs');
5
+ require('./chunk-SH2ISQVR.cjs');
6
6
  require('./chunk-KXWOF6H4.cjs');
7
7
  require('./chunk-USNT2KNT.cjs');
8
8
 
9
9
 
10
10
 
11
- exports.capnpc = _chunkI7MRPN6Icjs.capnpc; exports.compile = _chunkI7MRPN6Icjs.compile;
11
+ exports.capnpc = _chunkGTDJDX77cjs.capnpc; exports.compile = _chunkGTDJDX77cjs.compile;
package/dist/compile.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  capnpc,
3
3
  compile
4
- } from "./chunk-SW7GJVYC.js";
5
- import "./chunk-XU7T5EQG.js";
4
+ } from "./chunk-FP42YKAZ.js";
5
+ import "./chunk-NKATTHKT.js";
6
6
  import "./chunk-5VHN3KGS.js";
7
7
  import "./chunk-SHUYVCID.js";
8
8
  export {
package/dist/helpers.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkL3LVFSZKcjs = require('./chunk-L3LVFSZK.cjs');
3
+ var _chunkSH2ISQVRcjs = require('./chunk-SH2ISQVR.cjs');
4
4
  require('./chunk-USNT2KNT.cjs');
5
5
 
6
6
 
7
- exports.resolveOptions = _chunkL3LVFSZKcjs.resolveOptions;
7
+ exports.resolveOptions = _chunkSH2ISQVRcjs.resolveOptions;
package/dist/helpers.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveOptions
3
- } from "./chunk-XU7T5EQG.js";
3
+ } from "./chunk-NKATTHKT.js";
4
4
  import "./chunk-SHUYVCID.js";
5
5
  export {
6
6
  resolveOptions
package/dist/index.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkI7MRPN6Icjs = require('./chunk-I7MRPN6I.cjs');
5
- require('./chunk-L3LVFSZK.cjs');
4
+ var _chunkGTDJDX77cjs = require('./chunk-GTDJDX77.cjs');
5
+ require('./chunk-SH2ISQVR.cjs');
6
6
 
7
7
 
8
8
 
@@ -135,4 +135,4 @@ require('./chunk-USNT2KNT.cjs');
135
135
 
136
136
 
137
137
 
138
- exports.AnyPointerList = _chunkIBMXNAOTcjs.AnyPointerList; exports.BoolList = _chunkIBMXNAOTcjs.BoolList; exports.CapnpRPC = _chunkIBMXNAOTcjs.CapnpRPC; exports.CodeGeneratorContext = _chunkR2JXWA7Qcjs.CodeGeneratorContext; exports.CompositeList = _chunkKXWOF6H4cjs.CompositeList; exports.Conn = _chunkIBMXNAOTcjs.Conn; exports.Data = _chunkKXWOF6H4cjs.Data; exports.DataList = _chunkIBMXNAOTcjs.DataList; exports.Deferred = _chunkIBMXNAOTcjs.Deferred; exports.DeferredTransport = _chunkIBMXNAOTcjs.DeferredTransport; exports.ErrorClient = _chunkKXWOF6H4cjs.ErrorClient; exports.Float32List = _chunkIBMXNAOTcjs.Float32List; exports.Float64List = _chunkIBMXNAOTcjs.Float64List; exports.Int16List = _chunkIBMXNAOTcjs.Int16List; exports.Int32List = _chunkIBMXNAOTcjs.Int32List; exports.Int64List = _chunkIBMXNAOTcjs.Int64List; exports.Int8List = _chunkIBMXNAOTcjs.Int8List; exports.Interface = _chunkIBMXNAOTcjs.Interface; exports.InterfaceList = _chunkIBMXNAOTcjs.InterfaceList; exports.List = _chunkKXWOF6H4cjs.List; exports.ListElementSize = _chunkKXWOF6H4cjs.ListElementSize; exports.Message = _chunkKXWOF6H4cjs.Message; exports.MessageChannelTransport = _chunkIBMXNAOTcjs.MessageChannelTransport; exports.ObjectSize = _chunkKXWOF6H4cjs.ObjectSize; exports.Orphan = _chunkKXWOF6H4cjs.Orphan; exports.Pipeline = _chunkIBMXNAOTcjs.Pipeline; exports.Pointer = _chunkKXWOF6H4cjs.Pointer; exports.PointerList = _chunkIBMXNAOTcjs.PointerList; exports.PointerType = _chunkKXWOF6H4cjs.PointerType; exports.Registry = _chunkIBMXNAOTcjs.Registry; exports.Server = _chunkIBMXNAOTcjs.Server; exports.Struct = _chunkKXWOF6H4cjs.Struct; exports.Text = _chunkKXWOF6H4cjs.Text; exports.TextList = _chunkIBMXNAOTcjs.TextList; exports.Uint16List = _chunkIBMXNAOTcjs.Uint16List; exports.Uint32List = _chunkIBMXNAOTcjs.Uint32List; exports.Uint64List = _chunkIBMXNAOTcjs.Uint64List; exports.Uint8List = _chunkIBMXNAOTcjs.Uint8List; exports.Void = _chunkIBMXNAOTcjs.Void; exports.VoidList = _chunkIBMXNAOTcjs.VoidList; exports.answerPipelineClient = _chunkIBMXNAOTcjs.answerPipelineClient; exports.capnpc = _chunkI7MRPN6Icjs.capnpc; exports.clientFromResolution = _chunkIBMXNAOTcjs.clientFromResolution; exports.clientOrNull = _chunkKXWOF6H4cjs.clientOrNull; exports.compile = _chunkI7MRPN6Icjs.compile; exports.copyCall = _chunkIBMXNAOTcjs.copyCall; exports.getBitMask = _chunkKXWOF6H4cjs.getBitMask; exports.getFloat32Mask = _chunkKXWOF6H4cjs.getFloat32Mask; exports.getFloat64Mask = _chunkKXWOF6H4cjs.getFloat64Mask; exports.getInt16Mask = _chunkKXWOF6H4cjs.getInt16Mask; exports.getInt32Mask = _chunkKXWOF6H4cjs.getInt32Mask; exports.getInt64Mask = _chunkKXWOF6H4cjs.getInt64Mask; exports.getInt8Mask = _chunkKXWOF6H4cjs.getInt8Mask; exports.getUint16Mask = _chunkKXWOF6H4cjs.getUint16Mask; exports.getUint32Mask = _chunkKXWOF6H4cjs.getUint32Mask; exports.getUint64Mask = _chunkKXWOF6H4cjs.getUint64Mask; exports.getUint8Mask = _chunkKXWOF6H4cjs.getUint8Mask; exports.isDataCall = _chunkIBMXNAOTcjs.isDataCall; exports.isFuncCall = _chunkIBMXNAOTcjs.isFuncCall; exports.isSameClient = _chunkIBMXNAOTcjs.isSameClient; exports.placeParams = _chunkIBMXNAOTcjs.placeParams; exports.readRawPointer = _chunkKXWOF6H4cjs.readRawPointer; exports.utils = _chunkIBMXNAOTcjs.utils;
138
+ exports.AnyPointerList = _chunkIBMXNAOTcjs.AnyPointerList; exports.BoolList = _chunkIBMXNAOTcjs.BoolList; exports.CapnpRPC = _chunkIBMXNAOTcjs.CapnpRPC; exports.CodeGeneratorContext = _chunkR2JXWA7Qcjs.CodeGeneratorContext; exports.CompositeList = _chunkKXWOF6H4cjs.CompositeList; exports.Conn = _chunkIBMXNAOTcjs.Conn; exports.Data = _chunkKXWOF6H4cjs.Data; exports.DataList = _chunkIBMXNAOTcjs.DataList; exports.Deferred = _chunkIBMXNAOTcjs.Deferred; exports.DeferredTransport = _chunkIBMXNAOTcjs.DeferredTransport; exports.ErrorClient = _chunkKXWOF6H4cjs.ErrorClient; exports.Float32List = _chunkIBMXNAOTcjs.Float32List; exports.Float64List = _chunkIBMXNAOTcjs.Float64List; exports.Int16List = _chunkIBMXNAOTcjs.Int16List; exports.Int32List = _chunkIBMXNAOTcjs.Int32List; exports.Int64List = _chunkIBMXNAOTcjs.Int64List; exports.Int8List = _chunkIBMXNAOTcjs.Int8List; exports.Interface = _chunkIBMXNAOTcjs.Interface; exports.InterfaceList = _chunkIBMXNAOTcjs.InterfaceList; exports.List = _chunkKXWOF6H4cjs.List; exports.ListElementSize = _chunkKXWOF6H4cjs.ListElementSize; exports.Message = _chunkKXWOF6H4cjs.Message; exports.MessageChannelTransport = _chunkIBMXNAOTcjs.MessageChannelTransport; exports.ObjectSize = _chunkKXWOF6H4cjs.ObjectSize; exports.Orphan = _chunkKXWOF6H4cjs.Orphan; exports.Pipeline = _chunkIBMXNAOTcjs.Pipeline; exports.Pointer = _chunkKXWOF6H4cjs.Pointer; exports.PointerList = _chunkIBMXNAOTcjs.PointerList; exports.PointerType = _chunkKXWOF6H4cjs.PointerType; exports.Registry = _chunkIBMXNAOTcjs.Registry; exports.Server = _chunkIBMXNAOTcjs.Server; exports.Struct = _chunkKXWOF6H4cjs.Struct; exports.Text = _chunkKXWOF6H4cjs.Text; exports.TextList = _chunkIBMXNAOTcjs.TextList; exports.Uint16List = _chunkIBMXNAOTcjs.Uint16List; exports.Uint32List = _chunkIBMXNAOTcjs.Uint32List; exports.Uint64List = _chunkIBMXNAOTcjs.Uint64List; exports.Uint8List = _chunkIBMXNAOTcjs.Uint8List; exports.Void = _chunkIBMXNAOTcjs.Void; exports.VoidList = _chunkIBMXNAOTcjs.VoidList; exports.answerPipelineClient = _chunkIBMXNAOTcjs.answerPipelineClient; exports.capnpc = _chunkGTDJDX77cjs.capnpc; exports.clientFromResolution = _chunkIBMXNAOTcjs.clientFromResolution; exports.clientOrNull = _chunkKXWOF6H4cjs.clientOrNull; exports.compile = _chunkGTDJDX77cjs.compile; exports.copyCall = _chunkIBMXNAOTcjs.copyCall; exports.getBitMask = _chunkKXWOF6H4cjs.getBitMask; exports.getFloat32Mask = _chunkKXWOF6H4cjs.getFloat32Mask; exports.getFloat64Mask = _chunkKXWOF6H4cjs.getFloat64Mask; exports.getInt16Mask = _chunkKXWOF6H4cjs.getInt16Mask; exports.getInt32Mask = _chunkKXWOF6H4cjs.getInt32Mask; exports.getInt64Mask = _chunkKXWOF6H4cjs.getInt64Mask; exports.getInt8Mask = _chunkKXWOF6H4cjs.getInt8Mask; exports.getUint16Mask = _chunkKXWOF6H4cjs.getUint16Mask; exports.getUint32Mask = _chunkKXWOF6H4cjs.getUint32Mask; exports.getUint64Mask = _chunkKXWOF6H4cjs.getUint64Mask; exports.getUint8Mask = _chunkKXWOF6H4cjs.getUint8Mask; exports.isDataCall = _chunkIBMXNAOTcjs.isDataCall; exports.isFuncCall = _chunkIBMXNAOTcjs.isFuncCall; exports.isSameClient = _chunkIBMXNAOTcjs.isSameClient; exports.placeParams = _chunkIBMXNAOTcjs.placeParams; exports.readRawPointer = _chunkKXWOF6H4cjs.readRawPointer; exports.utils = _chunkIBMXNAOTcjs.utils;
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  capnpc,
3
3
  compile
4
- } from "./chunk-SW7GJVYC.js";
5
- import "./chunk-XU7T5EQG.js";
4
+ } from "./chunk-FP42YKAZ.js";
5
+ import "./chunk-NKATTHKT.js";
6
6
  import {
7
7
  AnyPointerList,
8
8
  BoolList,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stryke/capnp",
3
- "version": "0.10.3",
3
+ "version": "0.10.5",
4
4
  "type": "module",
5
5
  "description": "A package to assist in running the Cap'n Proto compiler and creating Cap'n Proto serialization protocol schemas.",
6
6
  "repository": {
@@ -148,5 +148,5 @@
148
148
  "tsx": "^4.20.1"
149
149
  },
150
150
  "publishConfig": { "access": "public" },
151
- "gitHead": "f54ef4923dcd93cc234959b706369f90f0f6dc24"
151
+ "gitHead": "3a6d5cb2d3de967d8f492cbab01e828c575a95e3"
152
152
  }
@@ -6,27 +6,27 @@
6
6
 
7
7
 
8
8
 
9
- var _chunkERVRKJ2Scjs = require('./chunk-ERVRKJ2S.cjs');
9
+ var _chunkZ7HGBQR4cjs = require('./chunk-Z7HGBQR4.cjs');
10
10
 
11
11
 
12
12
  var _chunkUSNT2KNTcjs = require('./chunk-USNT2KNT.cjs');
13
13
 
14
14
  // schemas/persistent.ts
15
15
  var _capnpFileId = BigInt("0xb8630836983feed7");
16
- var Persistent_SaveParams = (_class = class extends _chunkERVRKJ2Scjs.Struct {
16
+ var Persistent_SaveParams = (_class = class extends _chunkZ7HGBQR4cjs.Struct {
17
17
  static {
18
18
  _chunkUSNT2KNTcjs.__name.call(void 0, this, "Persistent_SaveParams");
19
19
  }
20
20
  static __initStatic() {this._capnp = {
21
21
  displayName: "SaveParams",
22
22
  id: "f76fba59183073a5",
23
- size: new (0, _chunkERVRKJ2Scjs.ObjectSize)(0, 1)
23
+ size: new (0, _chunkZ7HGBQR4cjs.ObjectSize)(0, 1)
24
24
  }}
25
25
  _adoptSealFor(value) {
26
- _chunkERVRKJ2Scjs.utils.adopt(value, _chunkERVRKJ2Scjs.utils.getPointer(0, this));
26
+ _chunkZ7HGBQR4cjs.utils.adopt(value, _chunkZ7HGBQR4cjs.utils.getPointer(0, this));
27
27
  }
28
28
  _disownSealFor() {
29
- return _chunkERVRKJ2Scjs.utils.disown(this.sealFor);
29
+ return _chunkZ7HGBQR4cjs.utils.disown(this.sealFor);
30
30
  }
31
31
  /**
32
32
  * Seal the SturdyRef so that it can only be restored by the specified Owner. This is meant
@@ -38,41 +38,41 @@ var Persistent_SaveParams = (_class = class extends _chunkERVRKJ2Scjs.Struct {
38
38
  *
39
39
  */
40
40
  get sealFor() {
41
- return _chunkERVRKJ2Scjs.utils.getPointer(0, this);
41
+ return _chunkZ7HGBQR4cjs.utils.getPointer(0, this);
42
42
  }
43
43
  _hasSealFor() {
44
- return !_chunkERVRKJ2Scjs.utils.isNull(_chunkERVRKJ2Scjs.utils.getPointer(0, this));
44
+ return !_chunkZ7HGBQR4cjs.utils.isNull(_chunkZ7HGBQR4cjs.utils.getPointer(0, this));
45
45
  }
46
46
  set sealFor(value) {
47
- _chunkERVRKJ2Scjs.utils.copyFrom(value, _chunkERVRKJ2Scjs.utils.getPointer(0, this));
47
+ _chunkZ7HGBQR4cjs.utils.copyFrom(value, _chunkZ7HGBQR4cjs.utils.getPointer(0, this));
48
48
  }
49
49
  toString() {
50
50
  return "Persistent_SaveParams_" + super.toString();
51
51
  }
52
52
  }, _class.__initStatic(), _class);
53
- var Persistent_SaveResults = (_class2 = class extends _chunkERVRKJ2Scjs.Struct {
53
+ var Persistent_SaveResults = (_class2 = class extends _chunkZ7HGBQR4cjs.Struct {
54
54
  static {
55
55
  _chunkUSNT2KNTcjs.__name.call(void 0, this, "Persistent_SaveResults");
56
56
  }
57
57
  static __initStatic2() {this._capnp = {
58
58
  displayName: "SaveResults",
59
59
  id: "b76848c18c40efbf",
60
- size: new (0, _chunkERVRKJ2Scjs.ObjectSize)(0, 1)
60
+ size: new (0, _chunkZ7HGBQR4cjs.ObjectSize)(0, 1)
61
61
  }}
62
62
  _adoptSturdyRef(value) {
63
- _chunkERVRKJ2Scjs.utils.adopt(value, _chunkERVRKJ2Scjs.utils.getPointer(0, this));
63
+ _chunkZ7HGBQR4cjs.utils.adopt(value, _chunkZ7HGBQR4cjs.utils.getPointer(0, this));
64
64
  }
65
65
  _disownSturdyRef() {
66
- return _chunkERVRKJ2Scjs.utils.disown(this.sturdyRef);
66
+ return _chunkZ7HGBQR4cjs.utils.disown(this.sturdyRef);
67
67
  }
68
68
  get sturdyRef() {
69
- return _chunkERVRKJ2Scjs.utils.getPointer(0, this);
69
+ return _chunkZ7HGBQR4cjs.utils.getPointer(0, this);
70
70
  }
71
71
  _hasSturdyRef() {
72
- return !_chunkERVRKJ2Scjs.utils.isNull(_chunkERVRKJ2Scjs.utils.getPointer(0, this));
72
+ return !_chunkZ7HGBQR4cjs.utils.isNull(_chunkZ7HGBQR4cjs.utils.getPointer(0, this));
73
73
  }
74
74
  set sturdyRef(value) {
75
- _chunkERVRKJ2Scjs.utils.copyFrom(value, _chunkERVRKJ2Scjs.utils.getPointer(0, this));
75
+ _chunkZ7HGBQR4cjs.utils.copyFrom(value, _chunkZ7HGBQR4cjs.utils.getPointer(0, this));
76
76
  }
77
77
  toString() {
78
78
  return "Persistent_SaveResults_" + super.toString();
@@ -120,12 +120,12 @@ var Persistent$Client = (_class3 = class _Persistent$Client {
120
120
  method: _Persistent$Client.methods[0],
121
121
  paramsFunc
122
122
  });
123
- const pipeline = new (0, _chunkERVRKJ2Scjs.Pipeline)(Persistent_SaveResults, answer);
123
+ const pipeline = new (0, _chunkZ7HGBQR4cjs.Pipeline)(Persistent_SaveResults, answer);
124
124
  return new Persistent_SaveResults$Promise(pipeline);
125
125
  }
126
126
  }, _class3.__initStatic3(), _class3.__initStatic4(), _class3);
127
- _chunkERVRKJ2Scjs.Registry.register(Persistent$Client.interfaceId, Persistent$Client);
128
- var Persistent$Server = class extends _chunkERVRKJ2Scjs.Server {
127
+ _chunkZ7HGBQR4cjs.Registry.register(Persistent$Client.interfaceId, Persistent$Client);
128
+ var Persistent$Server = class extends _chunkZ7HGBQR4cjs.Server {
129
129
  static {
130
130
  _chunkUSNT2KNTcjs.__name.call(void 0, this, "Persistent$Server");
131
131
  }
@@ -143,7 +143,7 @@ var Persistent$Server = class extends _chunkERVRKJ2Scjs.Server {
143
143
  return new Persistent$Client(this);
144
144
  }
145
145
  };
146
- var Persistent = (_class4 = class extends _chunkERVRKJ2Scjs.Interface {
146
+ var Persistent = (_class4 = class extends _chunkZ7HGBQR4cjs.Interface {
147
147
  static {
148
148
  _chunkUSNT2KNTcjs.__name.call(void 0, this, "Persistent");
149
149
  }
@@ -154,7 +154,7 @@ var Persistent = (_class4 = class extends _chunkERVRKJ2Scjs.Interface {
154
154
  static __initStatic9() {this._capnp = {
155
155
  displayName: "Persistent",
156
156
  id: "c8cb212fcd9f5691",
157
- size: new (0, _chunkERVRKJ2Scjs.ObjectSize)(0, 0)
157
+ size: new (0, _chunkZ7HGBQR4cjs.ObjectSize)(0, 0)
158
158
  }}
159
159
  toString() {
160
160
  return "Persistent_" + super.toString();
@@ -6,7 +6,7 @@ import {
6
6
  Server,
7
7
  Struct,
8
8
  utils
9
- } from "./chunk-OKQBZPI3.js";
9
+ } from "./chunk-YDIMDO2B.js";
10
10
  import {
11
11
  __name
12
12
  } from "./chunk-SHUYVCID.js";
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkERVRKJ2Scjs = require('./chunk-ERVRKJ2S.cjs');
5
+ var _chunkZ7HGBQR4cjs = require('./chunk-Z7HGBQR4.cjs');
6
6
 
7
7
 
8
8
  var _chunkUSNT2KNTcjs = require('./chunk-USNT2KNT.cjs');
@@ -31,82 +31,82 @@ var Side = {
31
31
  */
32
32
  CLIENT: 1
33
33
  };
34
- var VatId = (_class = class extends _chunkERVRKJ2Scjs.Struct {
34
+ var VatId = (_class = class extends _chunkZ7HGBQR4cjs.Struct {
35
35
  static {
36
36
  _chunkUSNT2KNTcjs.__name.call(void 0, this, "VatId");
37
37
  }
38
38
  static __initStatic() {this._capnp = {
39
39
  displayName: "VatId",
40
40
  id: "d20b909fee733a8e",
41
- size: new (0, _chunkERVRKJ2Scjs.ObjectSize)(8, 0)
41
+ size: new (0, _chunkZ7HGBQR4cjs.ObjectSize)(8, 0)
42
42
  }}
43
43
  get side() {
44
- return _chunkERVRKJ2Scjs.utils.getUint16(0, this);
44
+ return _chunkZ7HGBQR4cjs.utils.getUint16(0, this);
45
45
  }
46
46
  set side(value) {
47
- _chunkERVRKJ2Scjs.utils.setUint16(0, value, this);
47
+ _chunkZ7HGBQR4cjs.utils.setUint16(0, value, this);
48
48
  }
49
49
  toString() {
50
50
  return "VatId_" + super.toString();
51
51
  }
52
52
  }, _class.__initStatic(), _class);
53
- var ProvisionId = (_class2 = class extends _chunkERVRKJ2Scjs.Struct {
53
+ var ProvisionId = (_class2 = class extends _chunkZ7HGBQR4cjs.Struct {
54
54
  static {
55
55
  _chunkUSNT2KNTcjs.__name.call(void 0, this, "ProvisionId");
56
56
  }
57
57
  static __initStatic2() {this._capnp = {
58
58
  displayName: "ProvisionId",
59
59
  id: "b88d09a9c5f39817",
60
- size: new (0, _chunkERVRKJ2Scjs.ObjectSize)(8, 0)
60
+ size: new (0, _chunkZ7HGBQR4cjs.ObjectSize)(8, 0)
61
61
  }}
62
62
  /**
63
63
  * The ID from `JoinKeyPart`.
64
64
  *
65
65
  */
66
66
  get joinId() {
67
- return _chunkERVRKJ2Scjs.utils.getUint32(0, this);
67
+ return _chunkZ7HGBQR4cjs.utils.getUint32(0, this);
68
68
  }
69
69
  set joinId(value) {
70
- _chunkERVRKJ2Scjs.utils.setUint32(0, value, this);
70
+ _chunkZ7HGBQR4cjs.utils.setUint32(0, value, this);
71
71
  }
72
72
  toString() {
73
73
  return "ProvisionId_" + super.toString();
74
74
  }
75
75
  }, _class2.__initStatic2(), _class2);
76
- var RecipientId = (_class3 = class extends _chunkERVRKJ2Scjs.Struct {
76
+ var RecipientId = (_class3 = class extends _chunkZ7HGBQR4cjs.Struct {
77
77
  static {
78
78
  _chunkUSNT2KNTcjs.__name.call(void 0, this, "RecipientId");
79
79
  }
80
80
  static __initStatic3() {this._capnp = {
81
81
  displayName: "RecipientId",
82
82
  id: "89f389b6fd4082c1",
83
- size: new (0, _chunkERVRKJ2Scjs.ObjectSize)(0, 0)
83
+ size: new (0, _chunkZ7HGBQR4cjs.ObjectSize)(0, 0)
84
84
  }}
85
85
  toString() {
86
86
  return "RecipientId_" + super.toString();
87
87
  }
88
88
  }, _class3.__initStatic3(), _class3);
89
- var ThirdPartyCapId = (_class4 = class extends _chunkERVRKJ2Scjs.Struct {
89
+ var ThirdPartyCapId = (_class4 = class extends _chunkZ7HGBQR4cjs.Struct {
90
90
  static {
91
91
  _chunkUSNT2KNTcjs.__name.call(void 0, this, "ThirdPartyCapId");
92
92
  }
93
93
  static __initStatic4() {this._capnp = {
94
94
  displayName: "ThirdPartyCapId",
95
95
  id: "b47f4979672cb59d",
96
- size: new (0, _chunkERVRKJ2Scjs.ObjectSize)(0, 0)
96
+ size: new (0, _chunkZ7HGBQR4cjs.ObjectSize)(0, 0)
97
97
  }}
98
98
  toString() {
99
99
  return "ThirdPartyCapId_" + super.toString();
100
100
  }
101
101
  }, _class4.__initStatic4(), _class4);
102
- var JoinKeyPart = (_class5 = class extends _chunkERVRKJ2Scjs.Struct {
102
+ var JoinKeyPart = (_class5 = class extends _chunkZ7HGBQR4cjs.Struct {
103
103
  static {
104
104
  _chunkUSNT2KNTcjs.__name.call(void 0, this, "JoinKeyPart");
105
105
  }
106
106
  static __initStatic5() {this._capnp = {
107
107
  displayName: "JoinKeyPart",
108
108
  id: "95b29059097fca83",
109
- size: new (0, _chunkERVRKJ2Scjs.ObjectSize)(8, 0)
109
+ size: new (0, _chunkZ7HGBQR4cjs.ObjectSize)(8, 0)
110
110
  }}
111
111
  /**
112
112
  * A number identifying this join, chosen by the sender. May be reused once `Finish` messages are
@@ -114,53 +114,53 @@ var JoinKeyPart = (_class5 = class extends _chunkERVRKJ2Scjs.Struct {
114
114
  *
115
115
  */
116
116
  get joinId() {
117
- return _chunkERVRKJ2Scjs.utils.getUint32(0, this);
117
+ return _chunkZ7HGBQR4cjs.utils.getUint32(0, this);
118
118
  }
119
119
  set joinId(value) {
120
- _chunkERVRKJ2Scjs.utils.setUint32(0, value, this);
120
+ _chunkZ7HGBQR4cjs.utils.setUint32(0, value, this);
121
121
  }
122
122
  /**
123
123
  * The number of capabilities to be joined.
124
124
  *
125
125
  */
126
126
  get partCount() {
127
- return _chunkERVRKJ2Scjs.utils.getUint16(4, this);
127
+ return _chunkZ7HGBQR4cjs.utils.getUint16(4, this);
128
128
  }
129
129
  set partCount(value) {
130
- _chunkERVRKJ2Scjs.utils.setUint16(4, value, this);
130
+ _chunkZ7HGBQR4cjs.utils.setUint16(4, value, this);
131
131
  }
132
132
  /**
133
133
  * Which part this request targets -- a number in the range [0, partCount).
134
134
  *
135
135
  */
136
136
  get partNum() {
137
- return _chunkERVRKJ2Scjs.utils.getUint16(6, this);
137
+ return _chunkZ7HGBQR4cjs.utils.getUint16(6, this);
138
138
  }
139
139
  set partNum(value) {
140
- _chunkERVRKJ2Scjs.utils.setUint16(6, value, this);
140
+ _chunkZ7HGBQR4cjs.utils.setUint16(6, value, this);
141
141
  }
142
142
  toString() {
143
143
  return "JoinKeyPart_" + super.toString();
144
144
  }
145
145
  }, _class5.__initStatic5(), _class5);
146
- var JoinResult = (_class6 = class extends _chunkERVRKJ2Scjs.Struct {
146
+ var JoinResult = (_class6 = class extends _chunkZ7HGBQR4cjs.Struct {
147
147
  static {
148
148
  _chunkUSNT2KNTcjs.__name.call(void 0, this, "JoinResult");
149
149
  }
150
150
  static __initStatic6() {this._capnp = {
151
151
  displayName: "JoinResult",
152
152
  id: "9d263a3630b7ebee",
153
- size: new (0, _chunkERVRKJ2Scjs.ObjectSize)(8, 1)
153
+ size: new (0, _chunkZ7HGBQR4cjs.ObjectSize)(8, 1)
154
154
  }}
155
155
  /**
156
156
  * Matches `JoinKeyPart`.
157
157
  *
158
158
  */
159
159
  get joinId() {
160
- return _chunkERVRKJ2Scjs.utils.getUint32(0, this);
160
+ return _chunkZ7HGBQR4cjs.utils.getUint32(0, this);
161
161
  }
162
162
  set joinId(value) {
163
- _chunkERVRKJ2Scjs.utils.setUint32(0, value, this);
163
+ _chunkZ7HGBQR4cjs.utils.setUint32(0, value, this);
164
164
  }
165
165
  /**
166
166
  * All JoinResults in the set will have the same value for `succeeded`. The receiver actually
@@ -169,29 +169,29 @@ var JoinResult = (_class6 = class extends _chunkERVRKJ2Scjs.Struct {
169
169
  *
170
170
  */
171
171
  get succeeded() {
172
- return _chunkERVRKJ2Scjs.utils.getBit(32, this);
172
+ return _chunkZ7HGBQR4cjs.utils.getBit(32, this);
173
173
  }
174
174
  set succeeded(value) {
175
- _chunkERVRKJ2Scjs.utils.setBit(32, value, this);
175
+ _chunkZ7HGBQR4cjs.utils.setBit(32, value, this);
176
176
  }
177
177
  _adoptCap(value) {
178
- _chunkERVRKJ2Scjs.utils.adopt(value, _chunkERVRKJ2Scjs.utils.getPointer(0, this));
178
+ _chunkZ7HGBQR4cjs.utils.adopt(value, _chunkZ7HGBQR4cjs.utils.getPointer(0, this));
179
179
  }
180
180
  _disownCap() {
181
- return _chunkERVRKJ2Scjs.utils.disown(this.cap);
181
+ return _chunkZ7HGBQR4cjs.utils.disown(this.cap);
182
182
  }
183
183
  /**
184
184
  * One of the JoinResults will have a non-null `cap` which is the joined capability.
185
185
  *
186
186
  */
187
187
  get cap() {
188
- return _chunkERVRKJ2Scjs.utils.getPointer(0, this);
188
+ return _chunkZ7HGBQR4cjs.utils.getPointer(0, this);
189
189
  }
190
190
  _hasCap() {
191
- return !_chunkERVRKJ2Scjs.utils.isNull(_chunkERVRKJ2Scjs.utils.getPointer(0, this));
191
+ return !_chunkZ7HGBQR4cjs.utils.isNull(_chunkZ7HGBQR4cjs.utils.getPointer(0, this));
192
192
  }
193
193
  set cap(value) {
194
- _chunkERVRKJ2Scjs.utils.copyFrom(value, _chunkERVRKJ2Scjs.utils.getPointer(0, this));
194
+ _chunkZ7HGBQR4cjs.utils.copyFrom(value, _chunkZ7HGBQR4cjs.utils.getPointer(0, this));
195
195
  }
196
196
  toString() {
197
197
  return "JoinResult_" + super.toString();
@@ -2,7 +2,7 @@ import {
2
2
  ObjectSize,
3
3
  Struct,
4
4
  utils
5
- } from "./chunk-OKQBZPI3.js";
5
+ } from "./chunk-YDIMDO2B.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-SHUYVCID.js";