@flyingrobots/graft 0.9.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/CHANGELOG.md +73 -0
- package/README.md +23 -15
- package/dist/adapters/colorful-cli-prose-projector.d.ts +13 -0
- package/dist/adapters/colorful-cli-prose-projector.d.ts.map +1 -0
- package/dist/adapters/colorful-cli-prose-projector.js +89 -0
- package/dist/adapters/colorful-cli-prose-projector.js.map +1 -0
- package/dist/adapters/fake-echo-kernel-transport.d.ts.map +1 -1
- package/dist/adapters/fake-echo-kernel-transport.js +7 -29
- package/dist/adapters/fake-echo-kernel-transport.js.map +1 -1
- package/dist/adapters/node-process-runner.d.ts.map +1 -1
- package/dist/adapters/node-process-runner.js +1 -0
- package/dist/adapters/node-process-runner.js.map +1 -1
- package/dist/api/index.d.ts +7 -2
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +14 -3
- package/dist/api/index.js.map +1 -1
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/main.js +10 -1
- package/dist/cli/main.js.map +1 -1
- package/dist/contracts/output-schema-fragments.d.ts +21 -0
- package/dist/contracts/output-schema-fragments.d.ts.map +1 -1
- package/dist/contracts/output-schema-fragments.js +11 -0
- package/dist/contracts/output-schema-fragments.js.map +1 -1
- package/dist/contracts/output-schema-mcp.d.ts +7 -0
- package/dist/contracts/output-schema-mcp.d.ts.map +1 -1
- package/dist/contracts/output-schemas.d.ts.map +1 -1
- package/dist/contracts/output-schemas.js +11 -0
- package/dist/contracts/output-schemas.js.map +1 -1
- package/dist/echo/codec-runtime.d.ts +2 -7
- package/dist/echo/codec-runtime.d.ts.map +1 -1
- package/dist/echo/codec-runtime.js +2 -7
- package/dist/echo/codec-runtime.js.map +1 -1
- package/dist/echo/structural-history-client.d.ts.map +1 -1
- package/dist/echo/structural-history-client.js +3 -3
- package/dist/echo/structural-history-client.js.map +1 -1
- package/dist/echo/structural-history-envelope-codec.d.ts +7 -0
- package/dist/echo/structural-history-envelope-codec.d.ts.map +1 -1
- package/dist/echo/structural-history-envelope-codec.js +7 -0
- package/dist/echo/structural-history-envelope-codec.js.map +1 -1
- package/dist/echo/structural-reading-generated-model.d.ts +18 -0
- package/dist/echo/structural-reading-generated-model.d.ts.map +1 -0
- package/dist/echo/structural-reading-generated-model.js +324 -0
- package/dist/echo/structural-reading-generated-model.js.map +1 -0
- package/dist/generated/graft-structural-history.codec.generated.d.ts +193 -39
- package/dist/generated/graft-structural-history.codec.generated.d.ts.map +1 -1
- package/dist/generated/graft-structural-history.codec.generated.js +416 -113
- package/dist/generated/graft-structural-history.codec.generated.js.map +1 -1
- package/dist/generated/graft-structural-history.d.ts +1 -1
- package/dist/generated/graft-structural-history.d.ts.map +1 -1
- package/dist/mcp/control-plane/types.d.ts +8 -0
- package/dist/mcp/control-plane/types.d.ts.map +1 -1
- package/dist/mcp/daemon-control-plane.d.ts +2 -1
- package/dist/mcp/daemon-control-plane.d.ts.map +1 -1
- package/dist/mcp/daemon-control-plane.js +49 -0
- package/dist/mcp/daemon-control-plane.js.map +1 -1
- package/dist/mcp/repo-workspace.d.ts +1 -1
- package/dist/mcp/repo-workspace.d.ts.map +1 -1
- package/dist/mcp/repo-workspace.js +5 -0
- package/dist/mcp/repo-workspace.js.map +1 -1
- package/dist/mcp/tools/changed-since.d.ts.map +1 -1
- package/dist/mcp/tools/changed-since.js +24 -10
- package/dist/mcp/tools/changed-since.js.map +1 -1
- package/dist/mcp/tools/file-outline.d.ts.map +1 -1
- package/dist/mcp/tools/file-outline.js +10 -5
- package/dist/mcp/tools/file-outline.js.map +1 -1
- package/dist/mcp/workspace-registry.d.ts +83 -0
- package/dist/mcp/workspace-registry.d.ts.map +1 -0
- package/dist/mcp/workspace-registry.js +542 -0
- package/dist/mcp/workspace-registry.js.map +1 -0
- package/dist/operations/colorful-prose-projection.d.ts +32 -0
- package/dist/operations/colorful-prose-projection.d.ts.map +1 -0
- package/dist/operations/colorful-prose-projection.js +351 -0
- package/dist/operations/colorful-prose-projection.js.map +1 -0
- package/dist/operations/file-outline.d.ts +10 -0
- package/dist/operations/file-outline.d.ts.map +1 -1
- package/dist/operations/file-outline.js +29 -3
- package/dist/operations/file-outline.js.map +1 -1
- package/dist/operations/repo-workspace.d.ts +4 -0
- package/dist/operations/repo-workspace.d.ts.map +1 -1
- package/dist/operations/repo-workspace.js +57 -21
- package/dist/operations/repo-workspace.js.map +1 -1
- package/dist/operations/safe-read.d.ts +2 -0
- package/dist/operations/safe-read.d.ts.map +1 -1
- package/dist/operations/safe-read.js +20 -0
- package/dist/operations/safe-read.js.map +1 -1
- package/dist/operations/structured-buffer-model.d.ts +19 -15
- package/dist/operations/structured-buffer-model.d.ts.map +1 -1
- package/dist/operations/structured-buffer-model.js +6 -4
- package/dist/operations/structured-buffer-model.js.map +1 -1
- package/dist/operations/structured-buffer-query.d.ts.map +1 -1
- package/dist/operations/structured-buffer-query.js +64 -1
- package/dist/operations/structured-buffer-query.js.map +1 -1
- package/dist/operations/structured-buffer.d.ts +3 -1
- package/dist/operations/structured-buffer.d.ts.map +1 -1
- package/dist/operations/structured-buffer.js.map +1 -1
- package/dist/parser/types.d.ts +1 -1
- package/dist/parser/types.d.ts.map +1 -1
- package/dist/parser/types.js.map +1 -1
- package/dist/ports/process-runner.d.ts +1 -0
- package/dist/ports/process-runner.d.ts.map +1 -1
- package/dist/ports/structural-history.d.ts +23 -0
- package/dist/ports/structural-history.d.ts.map +1 -0
- package/dist/ports/structural-history.js +22 -0
- package/dist/ports/structural-history.js.map +1 -0
- package/dist/warp/structural-reading-adapter.d.ts.map +1 -1
- package/dist/warp/structural-reading-adapter.js +5 -1
- package/dist/warp/structural-reading-adapter.js.map +1 -1
- package/package.json +5 -4
|
@@ -3,7 +3,90 @@
|
|
|
3
3
|
//
|
|
4
4
|
// Wire layout is Wesley little-endian variable codec v0. Field order is SDL
|
|
5
5
|
// declaration order. Enums encode their zero-based variant index as u32 LE.
|
|
6
|
-
import { Writer, Reader, CodecError } from '../echo/codec-runtime.js';
|
|
6
|
+
import { Writer as RuntimeWriter, Reader as RuntimeReader, CodecError as RuntimeCodecError } from '../echo/codec-runtime.js';
|
|
7
|
+
function ok(value) {
|
|
8
|
+
return { ok: true, value };
|
|
9
|
+
}
|
|
10
|
+
function err(error) {
|
|
11
|
+
return { ok: false, error };
|
|
12
|
+
}
|
|
13
|
+
function codecErrorFromUnknown(error) {
|
|
14
|
+
if (error instanceof RuntimeCodecError) {
|
|
15
|
+
return error;
|
|
16
|
+
}
|
|
17
|
+
if (error instanceof Error) {
|
|
18
|
+
return new RuntimeCodecError(error.message);
|
|
19
|
+
}
|
|
20
|
+
return new RuntimeCodecError(String(error));
|
|
21
|
+
}
|
|
22
|
+
function decodeWithBoundary(b, read) {
|
|
23
|
+
try {
|
|
24
|
+
const r = new RuntimeReader(b);
|
|
25
|
+
const value = read(r);
|
|
26
|
+
if (r.remaining() > 0) {
|
|
27
|
+
return err(new RuntimeCodecError('trailing bytes after decode'));
|
|
28
|
+
}
|
|
29
|
+
return ok(value);
|
|
30
|
+
}
|
|
31
|
+
catch (error) {
|
|
32
|
+
return err(codecErrorFromUnknown(error));
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
// Graft's structural-history schema uses custom scalars before Wesley
|
|
36
|
+
// exposes TypeScript scalar codec ports. Keep these shims deterministic and
|
|
37
|
+
// local to the generated structural-history codec artifact.
|
|
38
|
+
function _encHash(w, v) {
|
|
39
|
+
if (typeof v !== 'string') {
|
|
40
|
+
throw new RuntimeCodecError('Hash scalar must encode from a string');
|
|
41
|
+
}
|
|
42
|
+
w.writeString(v);
|
|
43
|
+
}
|
|
44
|
+
function _decHash(r) {
|
|
45
|
+
return r.readString();
|
|
46
|
+
}
|
|
47
|
+
function _encJson(w, v) {
|
|
48
|
+
const encoded = JSON.stringify(v);
|
|
49
|
+
if (encoded === undefined) {
|
|
50
|
+
throw new RuntimeCodecError('Json scalar must be JSON-serializable');
|
|
51
|
+
}
|
|
52
|
+
w.writeString(encoded);
|
|
53
|
+
}
|
|
54
|
+
function _decJson(r) {
|
|
55
|
+
try {
|
|
56
|
+
return JSON.parse(r.readString());
|
|
57
|
+
}
|
|
58
|
+
catch (error) {
|
|
59
|
+
throw codecErrorFromUnknown(error);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
export function _encGitWarpImportBatch(w, v) {
|
|
63
|
+
w.writeString(v.importBatchId);
|
|
64
|
+
w.writeString(v.repositoryId);
|
|
65
|
+
w.writeString(v.sourceRef);
|
|
66
|
+
w.writeString(v.importedBasisId);
|
|
67
|
+
_encMigrationParityStatus(w, v.parity);
|
|
68
|
+
w.writeI32Le(v.importedReadingCount);
|
|
69
|
+
w.writeString(v.summary);
|
|
70
|
+
}
|
|
71
|
+
export function _decGitWarpImportBatch(r) {
|
|
72
|
+
return {
|
|
73
|
+
importBatchId: r.readString(),
|
|
74
|
+
repositoryId: r.readString(),
|
|
75
|
+
sourceRef: r.readString(),
|
|
76
|
+
importedBasisId: r.readString(),
|
|
77
|
+
parity: _decMigrationParityStatus(r),
|
|
78
|
+
importedReadingCount: r.readI32Le(),
|
|
79
|
+
summary: r.readString(),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
export function _encGraftStructuralHistoryInvariants(w, v) {
|
|
83
|
+
w.writeOption(v._placeholder, (w, x) => w.writeBool(x));
|
|
84
|
+
}
|
|
85
|
+
export function _decGraftStructuralHistoryInvariants(r) {
|
|
86
|
+
return {
|
|
87
|
+
_placeholder: r.readOption((r) => r.readBool()),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
7
90
|
export function _encMigrationParityStatus(w, v) {
|
|
8
91
|
switch (v) {
|
|
9
92
|
case 'NOT_CHECKED':
|
|
@@ -18,7 +101,7 @@ export function _encMigrationParityStatus(w, v) {
|
|
|
18
101
|
case 'PARTIAL':
|
|
19
102
|
w.writeU32Le(3);
|
|
20
103
|
return;
|
|
21
|
-
default: throw new
|
|
104
|
+
default: throw new RuntimeCodecError('invalid MigrationParityStatus variant: ' + String(v));
|
|
22
105
|
}
|
|
23
106
|
}
|
|
24
107
|
export function _decMigrationParityStatus(r) {
|
|
@@ -28,16 +111,16 @@ export function _decMigrationParityStatus(r) {
|
|
|
28
111
|
case 1: return 'MATCHED';
|
|
29
112
|
case 2: return 'MISMATCHED';
|
|
30
113
|
case 3: return 'PARTIAL';
|
|
31
|
-
default: throw new
|
|
114
|
+
default: throw new RuntimeCodecError('invalid MigrationParityStatus discriminant: ' + String(d));
|
|
32
115
|
}
|
|
33
116
|
}
|
|
34
117
|
export function encodeMigrationParityStatus(v) {
|
|
35
|
-
const w = new
|
|
118
|
+
const w = new RuntimeWriter();
|
|
36
119
|
_encMigrationParityStatus(w, v);
|
|
37
120
|
return w.finish();
|
|
38
121
|
}
|
|
39
122
|
export function decodeMigrationParityStatus(b) {
|
|
40
|
-
return
|
|
123
|
+
return decodeWithBoundary(b, (r) => _decMigrationParityStatus(r));
|
|
41
124
|
}
|
|
42
125
|
export function _encRecordGitWarpImportBatchInput(w, v) {
|
|
43
126
|
w.writeString(v.importBatchId);
|
|
@@ -70,7 +153,7 @@ export function _encSourceSpanEncoding(w, v) {
|
|
|
70
153
|
case 'LINE_COLUMN':
|
|
71
154
|
w.writeU32Le(2);
|
|
72
155
|
return;
|
|
73
|
-
default: throw new
|
|
156
|
+
default: throw new RuntimeCodecError('invalid SourceSpanEncoding variant: ' + String(v));
|
|
74
157
|
}
|
|
75
158
|
}
|
|
76
159
|
export function _decSourceSpanEncoding(r) {
|
|
@@ -79,16 +162,38 @@ export function _decSourceSpanEncoding(r) {
|
|
|
79
162
|
case 0: return 'UTF8_BYTE_RANGE';
|
|
80
163
|
case 1: return 'UTF16_CODE_UNIT_RANGE';
|
|
81
164
|
case 2: return 'LINE_COLUMN';
|
|
82
|
-
default: throw new
|
|
165
|
+
default: throw new RuntimeCodecError('invalid SourceSpanEncoding discriminant: ' + String(d));
|
|
83
166
|
}
|
|
84
167
|
}
|
|
85
168
|
export function encodeSourceSpanEncoding(v) {
|
|
86
|
-
const w = new
|
|
169
|
+
const w = new RuntimeWriter();
|
|
87
170
|
_encSourceSpanEncoding(w, v);
|
|
88
171
|
return w.finish();
|
|
89
172
|
}
|
|
90
173
|
export function decodeSourceSpanEncoding(b) {
|
|
91
|
-
return
|
|
174
|
+
return decodeWithBoundary(b, (r) => _decSourceSpanEncoding(r));
|
|
175
|
+
}
|
|
176
|
+
export function _encStructuralBasis(w, v) {
|
|
177
|
+
w.writeString(v.basisId);
|
|
178
|
+
w.writeString(v.repositoryId);
|
|
179
|
+
_encStructuralBasisKind(w, v.basisKind);
|
|
180
|
+
w.writeOption(v.commitId, (w, x) => w.writeString(x));
|
|
181
|
+
w.writeOption(v.refName, (w, x) => w.writeString(x));
|
|
182
|
+
w.writeOption(v.echoHeadId, (w, x) => w.writeString(x));
|
|
183
|
+
w.writeOption(v.importBatchId, (w, x) => w.writeString(x));
|
|
184
|
+
w.writeString(v.summary);
|
|
185
|
+
}
|
|
186
|
+
export function _decStructuralBasis(r) {
|
|
187
|
+
return {
|
|
188
|
+
basisId: r.readString(),
|
|
189
|
+
repositoryId: r.readString(),
|
|
190
|
+
basisKind: _decStructuralBasisKind(r),
|
|
191
|
+
commitId: r.readOption((r) => r.readString()),
|
|
192
|
+
refName: r.readOption((r) => r.readString()),
|
|
193
|
+
echoHeadId: r.readOption((r) => r.readString()),
|
|
194
|
+
importBatchId: r.readOption((r) => r.readString()),
|
|
195
|
+
summary: r.readString(),
|
|
196
|
+
};
|
|
92
197
|
}
|
|
93
198
|
export function _encStructuralBasisKind(w, v) {
|
|
94
199
|
switch (v) {
|
|
@@ -107,7 +212,10 @@ export function _encStructuralBasisKind(w, v) {
|
|
|
107
212
|
case 'IMPORT_BATCH':
|
|
108
213
|
w.writeU32Le(4);
|
|
109
214
|
return;
|
|
110
|
-
|
|
215
|
+
case 'UNPINNED_COMMITTED':
|
|
216
|
+
w.writeU32Le(5);
|
|
217
|
+
return;
|
|
218
|
+
default: throw new RuntimeCodecError('invalid StructuralBasisKind variant: ' + String(v));
|
|
111
219
|
}
|
|
112
220
|
}
|
|
113
221
|
export function _decStructuralBasisKind(r) {
|
|
@@ -118,16 +226,17 @@ export function _decStructuralBasisKind(r) {
|
|
|
118
226
|
case 2: return 'ECHO_HEAD';
|
|
119
227
|
case 3: return 'LIVE_FRONTIER';
|
|
120
228
|
case 4: return 'IMPORT_BATCH';
|
|
121
|
-
|
|
229
|
+
case 5: return 'UNPINNED_COMMITTED';
|
|
230
|
+
default: throw new RuntimeCodecError('invalid StructuralBasisKind discriminant: ' + String(d));
|
|
122
231
|
}
|
|
123
232
|
}
|
|
124
233
|
export function encodeStructuralBasisKind(v) {
|
|
125
|
-
const w = new
|
|
234
|
+
const w = new RuntimeWriter();
|
|
126
235
|
_encStructuralBasisKind(w, v);
|
|
127
236
|
return w.finish();
|
|
128
237
|
}
|
|
129
238
|
export function decodeStructuralBasisKind(b) {
|
|
130
|
-
return
|
|
239
|
+
return decodeWithBoundary(b, (r) => _decStructuralBasisKind(r));
|
|
131
240
|
}
|
|
132
241
|
export function _encStructuralEvidenceKind(w, v) {
|
|
133
242
|
switch (v) {
|
|
@@ -140,7 +249,7 @@ export function _encStructuralEvidenceKind(w, v) {
|
|
|
140
249
|
case 'FALLBACK_TRANSLATED':
|
|
141
250
|
w.writeU32Le(2);
|
|
142
251
|
return;
|
|
143
|
-
default: throw new
|
|
252
|
+
default: throw new RuntimeCodecError('invalid StructuralEvidenceKind variant: ' + String(v));
|
|
144
253
|
}
|
|
145
254
|
}
|
|
146
255
|
export function _decStructuralEvidenceKind(r) {
|
|
@@ -149,16 +258,104 @@ export function _decStructuralEvidenceKind(r) {
|
|
|
149
258
|
case 0: return 'ECHO_NATIVE';
|
|
150
259
|
case 1: return 'GIT_WARP_IMPORTED';
|
|
151
260
|
case 2: return 'FALLBACK_TRANSLATED';
|
|
152
|
-
default: throw new
|
|
261
|
+
default: throw new RuntimeCodecError('invalid StructuralEvidenceKind discriminant: ' + String(d));
|
|
153
262
|
}
|
|
154
263
|
}
|
|
155
264
|
export function encodeStructuralEvidenceKind(v) {
|
|
156
|
-
const w = new
|
|
265
|
+
const w = new RuntimeWriter();
|
|
157
266
|
_encStructuralEvidenceKind(w, v);
|
|
158
267
|
return w.finish();
|
|
159
268
|
}
|
|
160
269
|
export function decodeStructuralEvidenceKind(b) {
|
|
161
|
-
return
|
|
270
|
+
return decodeWithBoundary(b, (r) => _decStructuralEvidenceKind(r));
|
|
271
|
+
}
|
|
272
|
+
export function _encStructuralFileVersion(w, v) {
|
|
273
|
+
w.writeString(v.fileVersionId);
|
|
274
|
+
w.writeString(v.repositoryId);
|
|
275
|
+
w.writeString(v.basisId);
|
|
276
|
+
w.writeString(v.path);
|
|
277
|
+
_encHash(w, v.contentDigest);
|
|
278
|
+
w.writeOption(v.language, (w, x) => w.writeString(x));
|
|
279
|
+
w.writeString(v.summary);
|
|
280
|
+
}
|
|
281
|
+
export function _decStructuralFileVersion(r) {
|
|
282
|
+
return {
|
|
283
|
+
fileVersionId: r.readString(),
|
|
284
|
+
repositoryId: r.readString(),
|
|
285
|
+
basisId: r.readString(),
|
|
286
|
+
path: r.readString(),
|
|
287
|
+
contentDigest: _decHash(r),
|
|
288
|
+
language: r.readOption((r) => r.readString()),
|
|
289
|
+
summary: r.readString(),
|
|
290
|
+
};
|
|
291
|
+
}
|
|
292
|
+
export function _encStructuralParserRun(w, v) {
|
|
293
|
+
w.writeString(v.parserRunId);
|
|
294
|
+
w.writeString(v.fileVersionId);
|
|
295
|
+
w.writeString(v.parserName);
|
|
296
|
+
w.writeOption(v.parserVersion, (w, x) => w.writeString(x));
|
|
297
|
+
w.writeI32Le(v.diagnosticCount);
|
|
298
|
+
w.writeString(v.summary);
|
|
299
|
+
}
|
|
300
|
+
export function _decStructuralParserRun(r) {
|
|
301
|
+
return {
|
|
302
|
+
parserRunId: r.readString(),
|
|
303
|
+
fileVersionId: r.readString(),
|
|
304
|
+
parserName: r.readString(),
|
|
305
|
+
parserVersion: r.readOption((r) => r.readString()),
|
|
306
|
+
diagnosticCount: r.readI32Le(),
|
|
307
|
+
summary: r.readString(),
|
|
308
|
+
};
|
|
309
|
+
}
|
|
310
|
+
export function _encStructuralReading(w, v) {
|
|
311
|
+
w.writeString(v.readingId);
|
|
312
|
+
w.writeString(v.repositoryId);
|
|
313
|
+
w.writeString(v.basisId);
|
|
314
|
+
w.writeString(v.evidenceId);
|
|
315
|
+
_encStructuralReadingKind(w, v.readingKind);
|
|
316
|
+
_encStructuralReadingFreshness(w, v.freshness);
|
|
317
|
+
_encStructuralReadingResidualPosture(w, v.residualPosture);
|
|
318
|
+
_encHash(w, v.payloadDigest);
|
|
319
|
+
w.writeOption(v.payloadJson, (w, x) => _encJson(w, x));
|
|
320
|
+
w.writeString(v.summary);
|
|
321
|
+
}
|
|
322
|
+
export function _decStructuralReading(r) {
|
|
323
|
+
return {
|
|
324
|
+
readingId: r.readString(),
|
|
325
|
+
repositoryId: r.readString(),
|
|
326
|
+
basisId: r.readString(),
|
|
327
|
+
evidenceId: r.readString(),
|
|
328
|
+
readingKind: _decStructuralReadingKind(r),
|
|
329
|
+
freshness: _decStructuralReadingFreshness(r),
|
|
330
|
+
residualPosture: _decStructuralReadingResidualPosture(r),
|
|
331
|
+
payloadDigest: _decHash(r),
|
|
332
|
+
payloadJson: r.readOption((r) => _decJson(r)),
|
|
333
|
+
summary: r.readString(),
|
|
334
|
+
};
|
|
335
|
+
}
|
|
336
|
+
export function _encStructuralReadingEvidence(w, v) {
|
|
337
|
+
w.writeString(v.evidenceId);
|
|
338
|
+
_encStructuralEvidenceKind(w, v.evidenceKind);
|
|
339
|
+
_encStructuralSubstrateKind(w, v.substrate);
|
|
340
|
+
w.writeString(v.basisId);
|
|
341
|
+
w.writeOption(v.sourceRef, (w, x) => w.writeString(x));
|
|
342
|
+
w.writeOption(v.migrationBatchId, (w, x) => w.writeString(x));
|
|
343
|
+
w.writeBool(v.nativeContinuumWitness);
|
|
344
|
+
_encMigrationParityStatus(w, v.parity);
|
|
345
|
+
w.writeString(v.summary);
|
|
346
|
+
}
|
|
347
|
+
export function _decStructuralReadingEvidence(r) {
|
|
348
|
+
return {
|
|
349
|
+
evidenceId: r.readString(),
|
|
350
|
+
evidenceKind: _decStructuralEvidenceKind(r),
|
|
351
|
+
substrate: _decStructuralSubstrateKind(r),
|
|
352
|
+
basisId: r.readString(),
|
|
353
|
+
sourceRef: r.readOption((r) => r.readString()),
|
|
354
|
+
migrationBatchId: r.readOption((r) => r.readString()),
|
|
355
|
+
nativeContinuumWitness: r.readBool(),
|
|
356
|
+
parity: _decMigrationParityStatus(r),
|
|
357
|
+
summary: r.readString(),
|
|
358
|
+
};
|
|
162
359
|
}
|
|
163
360
|
export function _encStructuralReadingFreshness(w, v) {
|
|
164
361
|
switch (v) {
|
|
@@ -177,7 +374,7 @@ export function _encStructuralReadingFreshness(w, v) {
|
|
|
177
374
|
case 'LIVE_FRONTIER':
|
|
178
375
|
w.writeU32Le(4);
|
|
179
376
|
return;
|
|
180
|
-
default: throw new
|
|
377
|
+
default: throw new RuntimeCodecError('invalid StructuralReadingFreshness variant: ' + String(v));
|
|
181
378
|
}
|
|
182
379
|
}
|
|
183
380
|
export function _decStructuralReadingFreshness(r) {
|
|
@@ -188,16 +385,16 @@ export function _decStructuralReadingFreshness(r) {
|
|
|
188
385
|
case 2: return 'INCOMPARABLE';
|
|
189
386
|
case 3: return 'UNKNOWN';
|
|
190
387
|
case 4: return 'LIVE_FRONTIER';
|
|
191
|
-
default: throw new
|
|
388
|
+
default: throw new RuntimeCodecError('invalid StructuralReadingFreshness discriminant: ' + String(d));
|
|
192
389
|
}
|
|
193
390
|
}
|
|
194
391
|
export function encodeStructuralReadingFreshness(v) {
|
|
195
|
-
const w = new
|
|
392
|
+
const w = new RuntimeWriter();
|
|
196
393
|
_encStructuralReadingFreshness(w, v);
|
|
197
394
|
return w.finish();
|
|
198
395
|
}
|
|
199
396
|
export function decodeStructuralReadingFreshness(b) {
|
|
200
|
-
return
|
|
397
|
+
return decodeWithBoundary(b, (r) => _decStructuralReadingFreshness(r));
|
|
201
398
|
}
|
|
202
399
|
export function _encStructuralReadingKind(w, v) {
|
|
203
400
|
switch (v) {
|
|
@@ -222,7 +419,7 @@ export function _encStructuralReadingKind(w, v) {
|
|
|
222
419
|
case 'PRECISION_CODE_LOOKUP':
|
|
223
420
|
w.writeU32Le(6);
|
|
224
421
|
return;
|
|
225
|
-
default: throw new
|
|
422
|
+
default: throw new RuntimeCodecError('invalid StructuralReadingKind variant: ' + String(v));
|
|
226
423
|
}
|
|
227
424
|
}
|
|
228
425
|
export function _decStructuralReadingKind(r) {
|
|
@@ -235,16 +432,16 @@ export function _decStructuralReadingKind(r) {
|
|
|
235
432
|
case 4: return 'STRUCTURAL_LOG';
|
|
236
433
|
case 5: return 'STRUCTURAL_CHURN';
|
|
237
434
|
case 6: return 'PRECISION_CODE_LOOKUP';
|
|
238
|
-
default: throw new
|
|
435
|
+
default: throw new RuntimeCodecError('invalid StructuralReadingKind discriminant: ' + String(d));
|
|
239
436
|
}
|
|
240
437
|
}
|
|
241
438
|
export function encodeStructuralReadingKind(v) {
|
|
242
|
-
const w = new
|
|
439
|
+
const w = new RuntimeWriter();
|
|
243
440
|
_encStructuralReadingKind(w, v);
|
|
244
441
|
return w.finish();
|
|
245
442
|
}
|
|
246
443
|
export function decodeStructuralReadingKind(b) {
|
|
247
|
-
return
|
|
444
|
+
return decodeWithBoundary(b, (r) => _decStructuralReadingKind(r));
|
|
248
445
|
}
|
|
249
446
|
export function _encStructuralReadingResidualPosture(w, v) {
|
|
250
447
|
switch (v) {
|
|
@@ -272,7 +469,7 @@ export function _encStructuralReadingResidualPosture(w, v) {
|
|
|
272
469
|
case 'DEGRADED':
|
|
273
470
|
w.writeU32Le(7);
|
|
274
471
|
return;
|
|
275
|
-
default: throw new
|
|
472
|
+
default: throw new RuntimeCodecError('invalid StructuralReadingResidualPosture variant: ' + String(v));
|
|
276
473
|
}
|
|
277
474
|
}
|
|
278
475
|
export function _decStructuralReadingResidualPosture(r) {
|
|
@@ -286,16 +483,52 @@ export function _decStructuralReadingResidualPosture(r) {
|
|
|
286
483
|
case 5: return 'UNAVAILABLE';
|
|
287
484
|
case 6: return 'OBSTRUCTED';
|
|
288
485
|
case 7: return 'DEGRADED';
|
|
289
|
-
default: throw new
|
|
486
|
+
default: throw new RuntimeCodecError('invalid StructuralReadingResidualPosture discriminant: ' + String(d));
|
|
290
487
|
}
|
|
291
488
|
}
|
|
292
489
|
export function encodeStructuralReadingResidualPosture(v) {
|
|
293
|
-
const w = new
|
|
490
|
+
const w = new RuntimeWriter();
|
|
294
491
|
_encStructuralReadingResidualPosture(w, v);
|
|
295
492
|
return w.finish();
|
|
296
493
|
}
|
|
297
494
|
export function decodeStructuralReadingResidualPosture(b) {
|
|
298
|
-
return
|
|
495
|
+
return decodeWithBoundary(b, (r) => _decStructuralReadingResidualPosture(r));
|
|
496
|
+
}
|
|
497
|
+
export function _encStructuralRepository(w, v) {
|
|
498
|
+
w.writeString(v.repositoryId);
|
|
499
|
+
w.writeString(v.rootKey);
|
|
500
|
+
w.writeOption(v.defaultBranch, (w, x) => w.writeString(x));
|
|
501
|
+
w.writeString(v.summary);
|
|
502
|
+
}
|
|
503
|
+
export function _decStructuralRepository(r) {
|
|
504
|
+
return {
|
|
505
|
+
repositoryId: r.readString(),
|
|
506
|
+
rootKey: r.readString(),
|
|
507
|
+
defaultBranch: r.readOption((r) => r.readString()),
|
|
508
|
+
summary: r.readString(),
|
|
509
|
+
};
|
|
510
|
+
}
|
|
511
|
+
export function _encStructuralSourceSpan(w, v) {
|
|
512
|
+
w.writeString(v.spanId);
|
|
513
|
+
w.writeString(v.fileVersionId);
|
|
514
|
+
_encSourceSpanEncoding(w, v.encoding);
|
|
515
|
+
w.writeI32Le(v.startOffset);
|
|
516
|
+
w.writeI32Le(v.endOffset);
|
|
517
|
+
w.writeOption(v.startLine, (w, x) => w.writeI32Le(x));
|
|
518
|
+
w.writeOption(v.endLine, (w, x) => w.writeI32Le(x));
|
|
519
|
+
w.writeString(v.summary);
|
|
520
|
+
}
|
|
521
|
+
export function _decStructuralSourceSpan(r) {
|
|
522
|
+
return {
|
|
523
|
+
spanId: r.readString(),
|
|
524
|
+
fileVersionId: r.readString(),
|
|
525
|
+
encoding: _decSourceSpanEncoding(r),
|
|
526
|
+
startOffset: r.readI32Le(),
|
|
527
|
+
endOffset: r.readI32Le(),
|
|
528
|
+
startLine: r.readOption((r) => r.readI32Le()),
|
|
529
|
+
endLine: r.readOption((r) => r.readI32Le()),
|
|
530
|
+
summary: r.readString(),
|
|
531
|
+
};
|
|
299
532
|
}
|
|
300
533
|
export function _encStructuralSubstrateKind(w, v) {
|
|
301
534
|
switch (v) {
|
|
@@ -305,7 +538,7 @@ export function _encStructuralSubstrateKind(w, v) {
|
|
|
305
538
|
case 'GIT_WARP':
|
|
306
539
|
w.writeU32Le(1);
|
|
307
540
|
return;
|
|
308
|
-
default: throw new
|
|
541
|
+
default: throw new RuntimeCodecError('invalid StructuralSubstrateKind variant: ' + String(v));
|
|
309
542
|
}
|
|
310
543
|
}
|
|
311
544
|
export function _decStructuralSubstrateKind(r) {
|
|
@@ -313,16 +546,68 @@ export function _decStructuralSubstrateKind(r) {
|
|
|
313
546
|
switch (d) {
|
|
314
547
|
case 0: return 'ECHO';
|
|
315
548
|
case 1: return 'GIT_WARP';
|
|
316
|
-
default: throw new
|
|
549
|
+
default: throw new RuntimeCodecError('invalid StructuralSubstrateKind discriminant: ' + String(d));
|
|
317
550
|
}
|
|
318
551
|
}
|
|
319
552
|
export function encodeStructuralSubstrateKind(v) {
|
|
320
|
-
const w = new
|
|
553
|
+
const w = new RuntimeWriter();
|
|
321
554
|
_encStructuralSubstrateKind(w, v);
|
|
322
555
|
return w.finish();
|
|
323
556
|
}
|
|
324
557
|
export function decodeStructuralSubstrateKind(b) {
|
|
325
|
-
return
|
|
558
|
+
return decodeWithBoundary(b, (r) => _decStructuralSubstrateKind(r));
|
|
559
|
+
}
|
|
560
|
+
export function _encStructuralSymbol(w, v) {
|
|
561
|
+
w.writeString(v.symbolId);
|
|
562
|
+
w.writeString(v.repositoryId);
|
|
563
|
+
w.writeString(v.basisId);
|
|
564
|
+
w.writeString(v.fileVersionId);
|
|
565
|
+
w.writeOption(v.parserRunId, (w, x) => w.writeString(x));
|
|
566
|
+
w.writeString(v.name);
|
|
567
|
+
w.writeString(v.kind);
|
|
568
|
+
_encSymbolVisibility(w, v.visibility);
|
|
569
|
+
w.writeOption(v.declarationSpanId, (w, x) => w.writeString(x));
|
|
570
|
+
w.writeBool(v.exported);
|
|
571
|
+
w.writeString(v.summary);
|
|
572
|
+
}
|
|
573
|
+
export function _decStructuralSymbol(r) {
|
|
574
|
+
return {
|
|
575
|
+
symbolId: r.readString(),
|
|
576
|
+
repositoryId: r.readString(),
|
|
577
|
+
basisId: r.readString(),
|
|
578
|
+
fileVersionId: r.readString(),
|
|
579
|
+
parserRunId: r.readOption((r) => r.readString()),
|
|
580
|
+
name: r.readString(),
|
|
581
|
+
kind: r.readString(),
|
|
582
|
+
visibility: _decSymbolVisibility(r),
|
|
583
|
+
declarationSpanId: r.readOption((r) => r.readString()),
|
|
584
|
+
exported: r.readBool(),
|
|
585
|
+
summary: r.readString(),
|
|
586
|
+
};
|
|
587
|
+
}
|
|
588
|
+
export function _encStructuralSymbolRelation(w, v) {
|
|
589
|
+
w.writeString(v.relationId);
|
|
590
|
+
w.writeString(v.repositoryId);
|
|
591
|
+
w.writeString(v.basisId);
|
|
592
|
+
_encSymbolRelationKind(w, v.relationKind);
|
|
593
|
+
w.writeOption(v.fromSymbolId, (w, x) => w.writeString(x));
|
|
594
|
+
w.writeOption(v.toSymbolId, (w, x) => w.writeString(x));
|
|
595
|
+
w.writeOption(v.fileVersionId, (w, x) => w.writeString(x));
|
|
596
|
+
w.writeOption(v.spanId, (w, x) => w.writeString(x));
|
|
597
|
+
w.writeString(v.summary);
|
|
598
|
+
}
|
|
599
|
+
export function _decStructuralSymbolRelation(r) {
|
|
600
|
+
return {
|
|
601
|
+
relationId: r.readString(),
|
|
602
|
+
repositoryId: r.readString(),
|
|
603
|
+
basisId: r.readString(),
|
|
604
|
+
relationKind: _decSymbolRelationKind(r),
|
|
605
|
+
fromSymbolId: r.readOption((r) => r.readString()),
|
|
606
|
+
toSymbolId: r.readOption((r) => r.readString()),
|
|
607
|
+
fileVersionId: r.readOption((r) => r.readString()),
|
|
608
|
+
spanId: r.readOption((r) => r.readString()),
|
|
609
|
+
summary: r.readString(),
|
|
610
|
+
};
|
|
326
611
|
}
|
|
327
612
|
export function _encSymbolRelationKind(w, v) {
|
|
328
613
|
switch (v) {
|
|
@@ -344,7 +629,7 @@ export function _encSymbolRelationKind(w, v) {
|
|
|
344
629
|
case 'REMOVES':
|
|
345
630
|
w.writeU32Le(5);
|
|
346
631
|
return;
|
|
347
|
-
default: throw new
|
|
632
|
+
default: throw new RuntimeCodecError('invalid SymbolRelationKind variant: ' + String(v));
|
|
348
633
|
}
|
|
349
634
|
}
|
|
350
635
|
export function _decSymbolRelationKind(r) {
|
|
@@ -356,16 +641,16 @@ export function _decSymbolRelationKind(r) {
|
|
|
356
641
|
case 3: return 'CALLS';
|
|
357
642
|
case 4: return 'DEFINES';
|
|
358
643
|
case 5: return 'REMOVES';
|
|
359
|
-
default: throw new
|
|
644
|
+
default: throw new RuntimeCodecError('invalid SymbolRelationKind discriminant: ' + String(d));
|
|
360
645
|
}
|
|
361
646
|
}
|
|
362
647
|
export function encodeSymbolRelationKind(v) {
|
|
363
|
-
const w = new
|
|
648
|
+
const w = new RuntimeWriter();
|
|
364
649
|
_encSymbolRelationKind(w, v);
|
|
365
650
|
return w.finish();
|
|
366
651
|
}
|
|
367
652
|
export function decodeSymbolRelationKind(b) {
|
|
368
|
-
return
|
|
653
|
+
return decodeWithBoundary(b, (r) => _decSymbolRelationKind(r));
|
|
369
654
|
}
|
|
370
655
|
export function _encSymbolVisibility(w, v) {
|
|
371
656
|
switch (v) {
|
|
@@ -378,7 +663,7 @@ export function _encSymbolVisibility(w, v) {
|
|
|
378
663
|
case 'UNKNOWN':
|
|
379
664
|
w.writeU32Le(2);
|
|
380
665
|
return;
|
|
381
|
-
default: throw new
|
|
666
|
+
default: throw new RuntimeCodecError('invalid SymbolVisibility variant: ' + String(v));
|
|
382
667
|
}
|
|
383
668
|
}
|
|
384
669
|
export function _decSymbolVisibility(r) {
|
|
@@ -387,159 +672,177 @@ export function _decSymbolVisibility(r) {
|
|
|
387
672
|
case 0: return 'LOCAL';
|
|
388
673
|
case 1: return 'EXPORTED';
|
|
389
674
|
case 2: return 'UNKNOWN';
|
|
390
|
-
default: throw new
|
|
675
|
+
default: throw new RuntimeCodecError('invalid SymbolVisibility discriminant: ' + String(d));
|
|
391
676
|
}
|
|
392
677
|
}
|
|
393
678
|
export function encodeSymbolVisibility(v) {
|
|
394
|
-
const w = new
|
|
679
|
+
const w = new RuntimeWriter();
|
|
395
680
|
_encSymbolVisibility(w, v);
|
|
396
681
|
return w.finish();
|
|
397
682
|
}
|
|
398
683
|
export function decodeSymbolVisibility(b) {
|
|
399
|
-
return
|
|
684
|
+
return decodeWithBoundary(b, (r) => _decSymbolVisibility(r));
|
|
400
685
|
}
|
|
401
|
-
|
|
402
|
-
/** EINT op id for query `structuralRepositories`. Stable across Rust and TypeScript emitters. */
|
|
403
|
-
export const OP_STRUCTURAL_REPOSITORIES = 2032910390;
|
|
404
|
-
export function encodeStructuralRepositoriesVars(v) {
|
|
405
|
-
const w = new Writer();
|
|
686
|
+
export function _encStructuralRepositoriesVars(w, v) {
|
|
406
687
|
w.writeOption(v.repositoryId, (w, x) => w.writeString(x));
|
|
407
|
-
return w.finish();
|
|
408
688
|
}
|
|
409
|
-
export function
|
|
410
|
-
const r = new Reader(b);
|
|
689
|
+
export function _decStructuralRepositoriesVars(r) {
|
|
411
690
|
return {
|
|
412
691
|
repositoryId: r.readOption((r) => r.readString()),
|
|
413
692
|
};
|
|
414
693
|
}
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
694
|
+
export function encodeStructuralRepositoriesVars(v) {
|
|
695
|
+
const w = new RuntimeWriter();
|
|
696
|
+
_encStructuralRepositoriesVars(w, v);
|
|
697
|
+
return w.finish();
|
|
698
|
+
}
|
|
699
|
+
export function decodeStructuralRepositoriesVars(b) {
|
|
700
|
+
return decodeWithBoundary(b, (r) => _decStructuralRepositoriesVars(r));
|
|
701
|
+
}
|
|
702
|
+
export function _encStructuralBasesVars(w, v) {
|
|
420
703
|
w.writeString(v.repositoryId);
|
|
421
704
|
w.writeOption(v.basisKind, (w, x) => _encStructuralBasisKind(w, x));
|
|
422
|
-
return w.finish();
|
|
423
705
|
}
|
|
424
|
-
export function
|
|
425
|
-
const r = new Reader(b);
|
|
706
|
+
export function _decStructuralBasesVars(r) {
|
|
426
707
|
return {
|
|
427
708
|
repositoryId: r.readString(),
|
|
428
709
|
basisKind: r.readOption((r) => _decStructuralBasisKind(r)),
|
|
429
710
|
};
|
|
430
711
|
}
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
712
|
+
export function encodeStructuralBasesVars(v) {
|
|
713
|
+
const w = new RuntimeWriter();
|
|
714
|
+
_encStructuralBasesVars(w, v);
|
|
715
|
+
return w.finish();
|
|
716
|
+
}
|
|
717
|
+
export function decodeStructuralBasesVars(b) {
|
|
718
|
+
return decodeWithBoundary(b, (r) => _decStructuralBasesVars(r));
|
|
719
|
+
}
|
|
720
|
+
export function _encStructuralFileVersionsVars(w, v) {
|
|
436
721
|
w.writeString(v.basisId);
|
|
437
722
|
w.writeOption(v.path, (w, x) => w.writeString(x));
|
|
438
|
-
return w.finish();
|
|
439
723
|
}
|
|
440
|
-
export function
|
|
441
|
-
const r = new Reader(b);
|
|
724
|
+
export function _decStructuralFileVersionsVars(r) {
|
|
442
725
|
return {
|
|
443
726
|
basisId: r.readString(),
|
|
444
727
|
path: r.readOption((r) => r.readString()),
|
|
445
728
|
};
|
|
446
729
|
}
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
730
|
+
export function encodeStructuralFileVersionsVars(v) {
|
|
731
|
+
const w = new RuntimeWriter();
|
|
732
|
+
_encStructuralFileVersionsVars(w, v);
|
|
733
|
+
return w.finish();
|
|
734
|
+
}
|
|
735
|
+
export function decodeStructuralFileVersionsVars(b) {
|
|
736
|
+
return decodeWithBoundary(b, (r) => _decStructuralFileVersionsVars(r));
|
|
737
|
+
}
|
|
738
|
+
export function _encStructuralSymbolsVars(w, v) {
|
|
452
739
|
w.writeString(v.basisId);
|
|
453
740
|
w.writeOption(v.fileVersionId, (w, x) => w.writeString(x));
|
|
454
741
|
w.writeOption(v.name, (w, x) => w.writeString(x));
|
|
455
|
-
return w.finish();
|
|
456
742
|
}
|
|
457
|
-
export function
|
|
458
|
-
const r = new Reader(b);
|
|
743
|
+
export function _decStructuralSymbolsVars(r) {
|
|
459
744
|
return {
|
|
460
745
|
basisId: r.readString(),
|
|
461
746
|
fileVersionId: r.readOption((r) => r.readString()),
|
|
462
747
|
name: r.readOption((r) => r.readString()),
|
|
463
748
|
};
|
|
464
749
|
}
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
750
|
+
export function encodeStructuralSymbolsVars(v) {
|
|
751
|
+
const w = new RuntimeWriter();
|
|
752
|
+
_encStructuralSymbolsVars(w, v);
|
|
753
|
+
return w.finish();
|
|
754
|
+
}
|
|
755
|
+
export function decodeStructuralSymbolsVars(b) {
|
|
756
|
+
return decodeWithBoundary(b, (r) => _decStructuralSymbolsVars(r));
|
|
757
|
+
}
|
|
758
|
+
export function _encStructuralSymbolRelationsVars(w, v) {
|
|
470
759
|
w.writeString(v.basisId);
|
|
471
760
|
w.writeOption(v.symbolId, (w, x) => w.writeString(x));
|
|
472
761
|
w.writeOption(v.relationKind, (w, x) => _encSymbolRelationKind(w, x));
|
|
473
|
-
return w.finish();
|
|
474
762
|
}
|
|
475
|
-
export function
|
|
476
|
-
const r = new Reader(b);
|
|
763
|
+
export function _decStructuralSymbolRelationsVars(r) {
|
|
477
764
|
return {
|
|
478
765
|
basisId: r.readString(),
|
|
479
766
|
symbolId: r.readOption((r) => r.readString()),
|
|
480
767
|
relationKind: r.readOption((r) => _decSymbolRelationKind(r)),
|
|
481
768
|
};
|
|
482
769
|
}
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
770
|
+
export function encodeStructuralSymbolRelationsVars(v) {
|
|
771
|
+
const w = new RuntimeWriter();
|
|
772
|
+
_encStructuralSymbolRelationsVars(w, v);
|
|
773
|
+
return w.finish();
|
|
774
|
+
}
|
|
775
|
+
export function decodeStructuralSymbolRelationsVars(b) {
|
|
776
|
+
return decodeWithBoundary(b, (r) => _decStructuralSymbolRelationsVars(r));
|
|
777
|
+
}
|
|
778
|
+
export function _encStructuralReadingsVars(w, v) {
|
|
488
779
|
w.writeString(v.basisId);
|
|
489
780
|
w.writeOption(v.readingKind, (w, x) => _encStructuralReadingKind(w, x));
|
|
490
|
-
return w.finish();
|
|
491
781
|
}
|
|
492
|
-
export function
|
|
493
|
-
const r = new Reader(b);
|
|
782
|
+
export function _decStructuralReadingsVars(r) {
|
|
494
783
|
return {
|
|
495
784
|
basisId: r.readString(),
|
|
496
785
|
readingKind: r.readOption((r) => _decStructuralReadingKind(r)),
|
|
497
786
|
};
|
|
498
787
|
}
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
788
|
+
export function encodeStructuralReadingsVars(v) {
|
|
789
|
+
const w = new RuntimeWriter();
|
|
790
|
+
_encStructuralReadingsVars(w, v);
|
|
791
|
+
return w.finish();
|
|
792
|
+
}
|
|
793
|
+
export function decodeStructuralReadingsVars(b) {
|
|
794
|
+
return decodeWithBoundary(b, (r) => _decStructuralReadingsVars(r));
|
|
795
|
+
}
|
|
796
|
+
export function _encStructuralReadingEvidenceVars(w, v) {
|
|
504
797
|
w.writeOption(v.evidenceId, (w, x) => w.writeString(x));
|
|
505
798
|
w.writeOption(v.basisId, (w, x) => w.writeString(x));
|
|
506
|
-
return w.finish();
|
|
507
799
|
}
|
|
508
|
-
export function
|
|
509
|
-
const r = new Reader(b);
|
|
800
|
+
export function _decStructuralReadingEvidenceVars(r) {
|
|
510
801
|
return {
|
|
511
802
|
evidenceId: r.readOption((r) => r.readString()),
|
|
512
803
|
basisId: r.readOption((r) => r.readString()),
|
|
513
804
|
};
|
|
514
805
|
}
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
806
|
+
export function encodeStructuralReadingEvidenceVars(v) {
|
|
807
|
+
const w = new RuntimeWriter();
|
|
808
|
+
_encStructuralReadingEvidenceVars(w, v);
|
|
809
|
+
return w.finish();
|
|
810
|
+
}
|
|
811
|
+
export function decodeStructuralReadingEvidenceVars(b) {
|
|
812
|
+
return decodeWithBoundary(b, (r) => _decStructuralReadingEvidenceVars(r));
|
|
813
|
+
}
|
|
814
|
+
export function _encGitWarpImportBatchesVars(w, v) {
|
|
520
815
|
w.writeString(v.repositoryId);
|
|
521
816
|
w.writeOption(v.parity, (w, x) => _encMigrationParityStatus(w, x));
|
|
522
|
-
return w.finish();
|
|
523
817
|
}
|
|
524
|
-
export function
|
|
525
|
-
const r = new Reader(b);
|
|
818
|
+
export function _decGitWarpImportBatchesVars(r) {
|
|
526
819
|
return {
|
|
527
820
|
repositoryId: r.readString(),
|
|
528
821
|
parity: r.readOption((r) => _decMigrationParityStatus(r)),
|
|
529
822
|
};
|
|
530
823
|
}
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
export function encodeRecordGitWarpImportBatchVars(v) {
|
|
535
|
-
const w = new Writer();
|
|
536
|
-
_encRecordGitWarpImportBatchInput(w, v.input);
|
|
824
|
+
export function encodeGitWarpImportBatchesVars(v) {
|
|
825
|
+
const w = new RuntimeWriter();
|
|
826
|
+
_encGitWarpImportBatchesVars(w, v);
|
|
537
827
|
return w.finish();
|
|
538
828
|
}
|
|
539
|
-
export function
|
|
540
|
-
|
|
829
|
+
export function decodeGitWarpImportBatchesVars(b) {
|
|
830
|
+
return decodeWithBoundary(b, (r) => _decGitWarpImportBatchesVars(r));
|
|
831
|
+
}
|
|
832
|
+
export function _encRecordGitWarpImportBatchVars(w, v) {
|
|
833
|
+
_encRecordGitWarpImportBatchInput(w, v.input);
|
|
834
|
+
}
|
|
835
|
+
export function _decRecordGitWarpImportBatchVars(r) {
|
|
541
836
|
return {
|
|
542
837
|
input: _decRecordGitWarpImportBatchInput(r),
|
|
543
838
|
};
|
|
544
839
|
}
|
|
840
|
+
export function encodeRecordGitWarpImportBatchVars(v) {
|
|
841
|
+
const w = new RuntimeWriter();
|
|
842
|
+
_encRecordGitWarpImportBatchVars(w, v);
|
|
843
|
+
return w.finish();
|
|
844
|
+
}
|
|
845
|
+
export function decodeRecordGitWarpImportBatchVars(b) {
|
|
846
|
+
return decodeWithBoundary(b, (r) => _decRecordGitWarpImportBatchVars(r));
|
|
847
|
+
}
|
|
545
848
|
//# sourceMappingURL=graft-structural-history.codec.generated.js.map
|