@stryke/capnp 0.10.0 → 0.10.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/types.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Node, CodeGeneratorRequest_RequestedFile_Import, Field } from 'capnp-es/capnp/schema';
2
- import { CompilerOptions } from 'typescript';
2
+ import { ParsedCommandLine } from 'typescript';
3
3
 
4
4
  interface CodeGeneratorFileContext {
5
5
  readonly nodes: Node[];
@@ -31,13 +31,22 @@ interface CapnpcCLIOptions {
31
31
  workspaceRoot: string;
32
32
  tty?: boolean;
33
33
  }
34
- type CapnpcOptions = Omit<CapnpcCLIOptions, "noTs" | "noDts" | "tsconfig" | "schema"> & {
35
- tsconfig: CompilerOptions;
34
+ type CapnpcOptions = Omit<CapnpcCLIOptions, "tsconfig" | "schema"> & {
35
+ schemas: string | string[];
36
+ } & ({
37
+ tsconfig: ParsedCommandLine;
38
+ tsconfigPath?: string;
39
+ } | {
40
+ tsconfig?: ParsedCommandLine;
41
+ tsconfigPath: string;
42
+ });
43
+ type CapnpcResolvedOptions = Omit<CapnpcOptions, "noTs" | "noDts"> & {
36
44
  schemas: string[];
45
+ tsconfig: ParsedCommandLine;
37
46
  };
38
47
  interface CapnpcResult {
39
48
  ctx: CodeGeneratorContext;
40
49
  files: Map<string, string>;
41
50
  }
42
51
 
43
- export { type CapnpcCLIOptions, type CapnpcOptions, type CapnpcResult, CodeGeneratorContext, type CodeGeneratorFileContext };
52
+ export { type CapnpcCLIOptions, type CapnpcOptions, type CapnpcResolvedOptions, type CapnpcResult, CodeGeneratorContext, type CodeGeneratorFileContext };
package/dist/types.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Node, CodeGeneratorRequest_RequestedFile_Import, Field } from 'capnp-es/capnp/schema';
2
- import { CompilerOptions } from 'typescript';
2
+ import { ParsedCommandLine } from 'typescript';
3
3
 
4
4
  interface CodeGeneratorFileContext {
5
5
  readonly nodes: Node[];
@@ -31,13 +31,22 @@ interface CapnpcCLIOptions {
31
31
  workspaceRoot: string;
32
32
  tty?: boolean;
33
33
  }
34
- type CapnpcOptions = Omit<CapnpcCLIOptions, "noTs" | "noDts" | "tsconfig" | "schema"> & {
35
- tsconfig: CompilerOptions;
34
+ type CapnpcOptions = Omit<CapnpcCLIOptions, "tsconfig" | "schema"> & {
35
+ schemas: string | string[];
36
+ } & ({
37
+ tsconfig: ParsedCommandLine;
38
+ tsconfigPath?: string;
39
+ } | {
40
+ tsconfig?: ParsedCommandLine;
41
+ tsconfigPath: string;
42
+ });
43
+ type CapnpcResolvedOptions = Omit<CapnpcOptions, "noTs" | "noDts"> & {
36
44
  schemas: string[];
45
+ tsconfig: ParsedCommandLine;
37
46
  };
38
47
  interface CapnpcResult {
39
48
  ctx: CodeGeneratorContext;
40
49
  files: Map<string, string>;
41
50
  }
42
51
 
43
- export { type CapnpcCLIOptions, type CapnpcOptions, type CapnpcResult, CodeGeneratorContext, type CodeGeneratorFileContext };
52
+ export { type CapnpcCLIOptions, type CapnpcOptions, type CapnpcResolvedOptions, type CapnpcResult, CodeGeneratorContext, type CodeGeneratorFileContext };
package/dts/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  /// <reference types="node" />
2
2
 
3
3
  import { MessagePort as MessagePort$1 } from 'node:worker_threads';
4
- import { CompilerOptions } from 'typescript';
4
+ import { ParsedCommandLine } from 'typescript';
5
5
 
6
6
  export declare enum ListElementSize {
7
7
  VOID = 0,
@@ -4109,9 +4109,18 @@ export interface CapnpcCLIOptions {
4109
4109
  workspaceRoot: string;
4110
4110
  tty?: boolean;
4111
4111
  }
4112
- export type CapnpcOptions = Omit<CapnpcCLIOptions, "noTs" | "noDts" | "tsconfig" | "schema"> & {
4113
- tsconfig: CompilerOptions;
4112
+ export type CapnpcOptions = Omit<CapnpcCLIOptions, "tsconfig" | "schema"> & {
4113
+ schemas: string | string[];
4114
+ } & ({
4115
+ tsconfig: ParsedCommandLine;
4116
+ tsconfigPath?: string;
4117
+ } | {
4118
+ tsconfig?: ParsedCommandLine;
4119
+ tsconfigPath: string;
4120
+ });
4121
+ export type CapnpcResolvedOptions = Omit<CapnpcOptions, "noTs" | "noDts"> & {
4114
4122
  schemas: string[];
4123
+ tsconfig: ParsedCommandLine;
4115
4124
  };
4116
4125
  export interface CapnpcResult {
4117
4126
  ctx: CodeGeneratorContext;
@@ -4123,7 +4132,7 @@ export interface CapnpcResult {
4123
4132
  * @param options - The options for the compilation process.
4124
4133
  * @returns A promise that resolves to the compilation result.
4125
4134
  */
4126
- export declare function capnpc(options: CapnpcOptions): Promise<CapnpcResult>;
4135
+ export declare function capnpc(options: CapnpcResolvedOptions): Promise<CapnpcResult>;
4127
4136
  /**
4128
4137
  * Compiles Cap'n Proto schemas into TypeScript files.
4129
4138
  *
@@ -4131,7 +4140,7 @@ export declare function capnpc(options: CapnpcOptions): Promise<CapnpcResult>;
4131
4140
  * @param options - The options for the compilation process.
4132
4141
  * @returns A promise that resolves to the compilation result.
4133
4142
  */
4134
- export declare function compile(dataBuf: Buffer, options: CapnpcCLIOptions): Promise<{
4143
+ export declare function compile(dataBuf: Buffer, options: CapnpcOptions): Promise<{
4135
4144
  ctx: {
4136
4145
  files: {
4137
4146
  readonly req: CodeGeneratorRequest;
package/dts/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /// <reference types="node" />
2
2
 
3
3
  import { MessagePort as MessagePort$1 } from 'node:worker_threads';
4
- import { CompilerOptions } from 'typescript';
4
+ import { ParsedCommandLine } from 'typescript';
5
5
 
6
6
  export declare enum ListElementSize {
7
7
  VOID = 0,
@@ -4109,9 +4109,18 @@ export interface CapnpcCLIOptions {
4109
4109
  workspaceRoot: string;
4110
4110
  tty?: boolean;
4111
4111
  }
4112
- export type CapnpcOptions = Omit<CapnpcCLIOptions, "noTs" | "noDts" | "tsconfig" | "schema"> & {
4113
- tsconfig: CompilerOptions;
4112
+ export type CapnpcOptions = Omit<CapnpcCLIOptions, "tsconfig" | "schema"> & {
4113
+ schemas: string | string[];
4114
+ } & ({
4115
+ tsconfig: ParsedCommandLine;
4116
+ tsconfigPath?: string;
4117
+ } | {
4118
+ tsconfig?: ParsedCommandLine;
4119
+ tsconfigPath: string;
4120
+ });
4121
+ export type CapnpcResolvedOptions = Omit<CapnpcOptions, "noTs" | "noDts"> & {
4114
4122
  schemas: string[];
4123
+ tsconfig: ParsedCommandLine;
4115
4124
  };
4116
4125
  export interface CapnpcResult {
4117
4126
  ctx: CodeGeneratorContext;
@@ -4123,7 +4132,7 @@ export interface CapnpcResult {
4123
4132
  * @param options - The options for the compilation process.
4124
4133
  * @returns A promise that resolves to the compilation result.
4125
4134
  */
4126
- export declare function capnpc(options: CapnpcOptions): Promise<CapnpcResult>;
4135
+ export declare function capnpc(options: CapnpcResolvedOptions): Promise<CapnpcResult>;
4127
4136
  /**
4128
4137
  * Compiles Cap'n Proto schemas into TypeScript files.
4129
4138
  *
@@ -4131,7 +4140,7 @@ export declare function capnpc(options: CapnpcOptions): Promise<CapnpcResult>;
4131
4140
  * @param options - The options for the compilation process.
4132
4141
  * @returns A promise that resolves to the compilation result.
4133
4142
  */
4134
- export declare function compile(dataBuf: Buffer, options: CapnpcCLIOptions): Promise<{
4143
+ export declare function compile(dataBuf: Buffer, options: CapnpcOptions): Promise<{
4135
4144
  ctx: {
4136
4145
  files: {
4137
4146
  readonly req: CodeGeneratorRequest;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stryke/capnp",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
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": {
@@ -129,8 +129,8 @@
129
129
  "peerDependencies": { "typescript": ">=4.0.0" },
130
130
  "peerDependenciesMeta": { "typescript": { "optional": false } },
131
131
  "dependencies": {
132
- "@stryke/fs": "^0.23.1",
133
- "@stryke/path": "^0.12.2",
132
+ "@stryke/fs": "^0.23.2",
133
+ "@stryke/path": "^0.12.3",
134
134
  "defu": "^6.1.4",
135
135
  "hex2dec": "^1.1.2",
136
136
  "nanotar": "^0.2.0"
@@ -148,5 +148,5 @@
148
148
  "tsx": "^4.20.1"
149
149
  },
150
150
  "publishConfig": { "access": "public" },
151
- "gitHead": "9ad3e3608ebc05bf2f02848ad83d50f5476c9f6f"
151
+ "gitHead": "407bacee3e398d8a0a7025421a82d3700aaceda0"
152
152
  }
@@ -6,27 +6,27 @@
6
6
 
7
7
 
8
8
 
9
- var _chunkZGPCLBI4cjs = require('./chunk-ZGPCLBI4.cjs');
9
+ var _chunkBM2HWFSDcjs = require('./chunk-BM2HWFSD.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 _chunkZGPCLBI4cjs.Struct {
16
+ var Persistent_SaveParams = (_class = class extends _chunkBM2HWFSDcjs.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, _chunkZGPCLBI4cjs.ObjectSize)(0, 1)
23
+ size: new (0, _chunkBM2HWFSDcjs.ObjectSize)(0, 1)
24
24
  }}
25
25
  _adoptSealFor(value) {
26
- _chunkZGPCLBI4cjs.utils.adopt(value, _chunkZGPCLBI4cjs.utils.getPointer(0, this));
26
+ _chunkBM2HWFSDcjs.utils.adopt(value, _chunkBM2HWFSDcjs.utils.getPointer(0, this));
27
27
  }
28
28
  _disownSealFor() {
29
- return _chunkZGPCLBI4cjs.utils.disown(this.sealFor);
29
+ return _chunkBM2HWFSDcjs.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 _chunkZGPCLBI4cjs.Struct {
38
38
  *
39
39
  */
40
40
  get sealFor() {
41
- return _chunkZGPCLBI4cjs.utils.getPointer(0, this);
41
+ return _chunkBM2HWFSDcjs.utils.getPointer(0, this);
42
42
  }
43
43
  _hasSealFor() {
44
- return !_chunkZGPCLBI4cjs.utils.isNull(_chunkZGPCLBI4cjs.utils.getPointer(0, this));
44
+ return !_chunkBM2HWFSDcjs.utils.isNull(_chunkBM2HWFSDcjs.utils.getPointer(0, this));
45
45
  }
46
46
  set sealFor(value) {
47
- _chunkZGPCLBI4cjs.utils.copyFrom(value, _chunkZGPCLBI4cjs.utils.getPointer(0, this));
47
+ _chunkBM2HWFSDcjs.utils.copyFrom(value, _chunkBM2HWFSDcjs.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 _chunkZGPCLBI4cjs.Struct {
53
+ var Persistent_SaveResults = (_class2 = class extends _chunkBM2HWFSDcjs.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, _chunkZGPCLBI4cjs.ObjectSize)(0, 1)
60
+ size: new (0, _chunkBM2HWFSDcjs.ObjectSize)(0, 1)
61
61
  }}
62
62
  _adoptSturdyRef(value) {
63
- _chunkZGPCLBI4cjs.utils.adopt(value, _chunkZGPCLBI4cjs.utils.getPointer(0, this));
63
+ _chunkBM2HWFSDcjs.utils.adopt(value, _chunkBM2HWFSDcjs.utils.getPointer(0, this));
64
64
  }
65
65
  _disownSturdyRef() {
66
- return _chunkZGPCLBI4cjs.utils.disown(this.sturdyRef);
66
+ return _chunkBM2HWFSDcjs.utils.disown(this.sturdyRef);
67
67
  }
68
68
  get sturdyRef() {
69
- return _chunkZGPCLBI4cjs.utils.getPointer(0, this);
69
+ return _chunkBM2HWFSDcjs.utils.getPointer(0, this);
70
70
  }
71
71
  _hasSturdyRef() {
72
- return !_chunkZGPCLBI4cjs.utils.isNull(_chunkZGPCLBI4cjs.utils.getPointer(0, this));
72
+ return !_chunkBM2HWFSDcjs.utils.isNull(_chunkBM2HWFSDcjs.utils.getPointer(0, this));
73
73
  }
74
74
  set sturdyRef(value) {
75
- _chunkZGPCLBI4cjs.utils.copyFrom(value, _chunkZGPCLBI4cjs.utils.getPointer(0, this));
75
+ _chunkBM2HWFSDcjs.utils.copyFrom(value, _chunkBM2HWFSDcjs.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, _chunkZGPCLBI4cjs.Pipeline)(Persistent_SaveResults, answer);
123
+ const pipeline = new (0, _chunkBM2HWFSDcjs.Pipeline)(Persistent_SaveResults, answer);
124
124
  return new Persistent_SaveResults$Promise(pipeline);
125
125
  }
126
126
  }, _class3.__initStatic3(), _class3.__initStatic4(), _class3);
127
- _chunkZGPCLBI4cjs.Registry.register(Persistent$Client.interfaceId, Persistent$Client);
128
- var Persistent$Server = class extends _chunkZGPCLBI4cjs.Server {
127
+ _chunkBM2HWFSDcjs.Registry.register(Persistent$Client.interfaceId, Persistent$Client);
128
+ var Persistent$Server = class extends _chunkBM2HWFSDcjs.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 _chunkZGPCLBI4cjs.Server {
143
143
  return new Persistent$Client(this);
144
144
  }
145
145
  };
146
- var Persistent = (_class4 = class extends _chunkZGPCLBI4cjs.Interface {
146
+ var Persistent = (_class4 = class extends _chunkBM2HWFSDcjs.Interface {
147
147
  static {
148
148
  _chunkUSNT2KNTcjs.__name.call(void 0, this, "Persistent");
149
149
  }
@@ -154,7 +154,7 @@ var Persistent = (_class4 = class extends _chunkZGPCLBI4cjs.Interface {
154
154
  static __initStatic9() {this._capnp = {
155
155
  displayName: "Persistent",
156
156
  id: "c8cb212fcd9f5691",
157
- size: new (0, _chunkZGPCLBI4cjs.ObjectSize)(0, 0)
157
+ size: new (0, _chunkBM2HWFSDcjs.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-3CJYH45H.js";
9
+ } from "./chunk-TAKPBFYZ.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 _chunkZGPCLBI4cjs = require('./chunk-ZGPCLBI4.cjs');
5
+ var _chunkBM2HWFSDcjs = require('./chunk-BM2HWFSD.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 _chunkZGPCLBI4cjs.Struct {
34
+ var VatId = (_class = class extends _chunkBM2HWFSDcjs.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, _chunkZGPCLBI4cjs.ObjectSize)(8, 0)
41
+ size: new (0, _chunkBM2HWFSDcjs.ObjectSize)(8, 0)
42
42
  }}
43
43
  get side() {
44
- return _chunkZGPCLBI4cjs.utils.getUint16(0, this);
44
+ return _chunkBM2HWFSDcjs.utils.getUint16(0, this);
45
45
  }
46
46
  set side(value) {
47
- _chunkZGPCLBI4cjs.utils.setUint16(0, value, this);
47
+ _chunkBM2HWFSDcjs.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 _chunkZGPCLBI4cjs.Struct {
53
+ var ProvisionId = (_class2 = class extends _chunkBM2HWFSDcjs.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, _chunkZGPCLBI4cjs.ObjectSize)(8, 0)
60
+ size: new (0, _chunkBM2HWFSDcjs.ObjectSize)(8, 0)
61
61
  }}
62
62
  /**
63
63
  * The ID from `JoinKeyPart`.
64
64
  *
65
65
  */
66
66
  get joinId() {
67
- return _chunkZGPCLBI4cjs.utils.getUint32(0, this);
67
+ return _chunkBM2HWFSDcjs.utils.getUint32(0, this);
68
68
  }
69
69
  set joinId(value) {
70
- _chunkZGPCLBI4cjs.utils.setUint32(0, value, this);
70
+ _chunkBM2HWFSDcjs.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 _chunkZGPCLBI4cjs.Struct {
76
+ var RecipientId = (_class3 = class extends _chunkBM2HWFSDcjs.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, _chunkZGPCLBI4cjs.ObjectSize)(0, 0)
83
+ size: new (0, _chunkBM2HWFSDcjs.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 _chunkZGPCLBI4cjs.Struct {
89
+ var ThirdPartyCapId = (_class4 = class extends _chunkBM2HWFSDcjs.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, _chunkZGPCLBI4cjs.ObjectSize)(0, 0)
96
+ size: new (0, _chunkBM2HWFSDcjs.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 _chunkZGPCLBI4cjs.Struct {
102
+ var JoinKeyPart = (_class5 = class extends _chunkBM2HWFSDcjs.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, _chunkZGPCLBI4cjs.ObjectSize)(8, 0)
109
+ size: new (0, _chunkBM2HWFSDcjs.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 _chunkZGPCLBI4cjs.Struct {
114
114
  *
115
115
  */
116
116
  get joinId() {
117
- return _chunkZGPCLBI4cjs.utils.getUint32(0, this);
117
+ return _chunkBM2HWFSDcjs.utils.getUint32(0, this);
118
118
  }
119
119
  set joinId(value) {
120
- _chunkZGPCLBI4cjs.utils.setUint32(0, value, this);
120
+ _chunkBM2HWFSDcjs.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 _chunkZGPCLBI4cjs.utils.getUint16(4, this);
127
+ return _chunkBM2HWFSDcjs.utils.getUint16(4, this);
128
128
  }
129
129
  set partCount(value) {
130
- _chunkZGPCLBI4cjs.utils.setUint16(4, value, this);
130
+ _chunkBM2HWFSDcjs.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 _chunkZGPCLBI4cjs.utils.getUint16(6, this);
137
+ return _chunkBM2HWFSDcjs.utils.getUint16(6, this);
138
138
  }
139
139
  set partNum(value) {
140
- _chunkZGPCLBI4cjs.utils.setUint16(6, value, this);
140
+ _chunkBM2HWFSDcjs.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 _chunkZGPCLBI4cjs.Struct {
146
+ var JoinResult = (_class6 = class extends _chunkBM2HWFSDcjs.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, _chunkZGPCLBI4cjs.ObjectSize)(8, 1)
153
+ size: new (0, _chunkBM2HWFSDcjs.ObjectSize)(8, 1)
154
154
  }}
155
155
  /**
156
156
  * Matches `JoinKeyPart`.
157
157
  *
158
158
  */
159
159
  get joinId() {
160
- return _chunkZGPCLBI4cjs.utils.getUint32(0, this);
160
+ return _chunkBM2HWFSDcjs.utils.getUint32(0, this);
161
161
  }
162
162
  set joinId(value) {
163
- _chunkZGPCLBI4cjs.utils.setUint32(0, value, this);
163
+ _chunkBM2HWFSDcjs.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 _chunkZGPCLBI4cjs.Struct {
169
169
  *
170
170
  */
171
171
  get succeeded() {
172
- return _chunkZGPCLBI4cjs.utils.getBit(32, this);
172
+ return _chunkBM2HWFSDcjs.utils.getBit(32, this);
173
173
  }
174
174
  set succeeded(value) {
175
- _chunkZGPCLBI4cjs.utils.setBit(32, value, this);
175
+ _chunkBM2HWFSDcjs.utils.setBit(32, value, this);
176
176
  }
177
177
  _adoptCap(value) {
178
- _chunkZGPCLBI4cjs.utils.adopt(value, _chunkZGPCLBI4cjs.utils.getPointer(0, this));
178
+ _chunkBM2HWFSDcjs.utils.adopt(value, _chunkBM2HWFSDcjs.utils.getPointer(0, this));
179
179
  }
180
180
  _disownCap() {
181
- return _chunkZGPCLBI4cjs.utils.disown(this.cap);
181
+ return _chunkBM2HWFSDcjs.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 _chunkZGPCLBI4cjs.utils.getPointer(0, this);
188
+ return _chunkBM2HWFSDcjs.utils.getPointer(0, this);
189
189
  }
190
190
  _hasCap() {
191
- return !_chunkZGPCLBI4cjs.utils.isNull(_chunkZGPCLBI4cjs.utils.getPointer(0, this));
191
+ return !_chunkBM2HWFSDcjs.utils.isNull(_chunkBM2HWFSDcjs.utils.getPointer(0, this));
192
192
  }
193
193
  set cap(value) {
194
- _chunkZGPCLBI4cjs.utils.copyFrom(value, _chunkZGPCLBI4cjs.utils.getPointer(0, this));
194
+ _chunkBM2HWFSDcjs.utils.copyFrom(value, _chunkBM2HWFSDcjs.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-3CJYH45H.js";
5
+ } from "./chunk-TAKPBFYZ.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-SHUYVCID.js";