@aggrega-ai/aggrega-abi 0.0.0-stage → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +23 -2
  3. package/dist/abi_version_enums_gen.d.ts +1 -0
  4. package/dist/abi_version_enums_gen.js +33 -0
  5. package/dist/annotationtransform_gen.d.ts +56 -0
  6. package/dist/annotationtransform_gen.js +385 -0
  7. package/dist/cbor_gen.d.ts +28 -0
  8. package/dist/cbor_gen.js +413 -0
  9. package/dist/cli_gen.d.ts +11 -0
  10. package/dist/cli_gen.js +75 -0
  11. package/dist/describe_gen.d.ts +165 -0
  12. package/dist/describe_gen.js +1154 -0
  13. package/dist/diagnostic_enums_gen.d.ts +3 -0
  14. package/dist/diagnostic_enums_gen.js +27 -0
  15. package/dist/diagnostic_gen.d.ts +45 -0
  16. package/dist/diagnostic_gen.js +309 -0
  17. package/dist/frp_gen.d.ts +97 -0
  18. package/dist/frp_gen.js +731 -0
  19. package/dist/hostfunc_error_enums_gen.d.ts +13 -0
  20. package/dist/hostfunc_error_enums_gen.js +35 -0
  21. package/dist/import_gen.d.ts +159 -0
  22. package/dist/import_gen.js +1050 -0
  23. package/dist/index.d.ts +33 -0
  24. package/dist/index.js +51 -0
  25. package/dist/ir_gen.d.ts +180 -0
  26. package/dist/ir_gen.js +1640 -0
  27. package/dist/linter_gen.d.ts +45 -0
  28. package/dist/linter_gen.js +374 -0
  29. package/dist/mutator_gen.d.ts +64 -0
  30. package/dist/mutator_gen.js +448 -0
  31. package/dist/orderedmap_gen.d.ts +5 -0
  32. package/dist/orderedmap_gen.js +186 -0
  33. package/dist/parse_gen.d.ts +60 -0
  34. package/dist/parse_gen.js +364 -0
  35. package/dist/policy_gen.d.ts +69 -0
  36. package/dist/policy_gen.js +461 -0
  37. package/dist/providerrender_gen.d.ts +495 -0
  38. package/dist/providerrender_gen.js +3756 -0
  39. package/dist/servewire_gen.d.ts +1643 -0
  40. package/dist/servewire_gen.js +3035 -0
  41. package/package.json +30 -4
@@ -0,0 +1,3035 @@
1
+ "use strict";
2
+ // SPDX-License-Identifier: Apache-2.0
3
+ // Copyright 2026 Cognitio s.r.l.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.encodeProtocolVersion = encodeProtocolVersion;
6
+ exports.decodeProtocolVersion = decodeProtocolVersion;
7
+ exports.encodeRequestId = encodeRequestId;
8
+ exports.decodeRequestId = decodeRequestId;
9
+ exports.encodeProgressToken = encodeProgressToken;
10
+ exports.decodeProgressToken = decodeProgressToken;
11
+ exports.encodeWorkspaceRootSubject = encodeWorkspaceRootSubject;
12
+ exports.decodeWorkspaceRootSubject = decodeWorkspaceRootSubject;
13
+ exports.encodeWorkspaceRootAccepted = encodeWorkspaceRootAccepted;
14
+ exports.decodeWorkspaceRootAccepted = decodeWorkspaceRootAccepted;
15
+ exports.encodeRequestMethod = encodeRequestMethod;
16
+ exports.decodeRequestMethod = decodeRequestMethod;
17
+ exports.encodeClientNotificationMethod = encodeClientNotificationMethod;
18
+ exports.decodeClientNotificationMethod = decodeClientNotificationMethod;
19
+ exports.encodeDaemonNotificationMethod = encodeDaemonNotificationMethod;
20
+ exports.decodeDaemonNotificationMethod = decodeDaemonNotificationMethod;
21
+ exports.encodeRequest = encodeRequest;
22
+ exports.decodeRequest = decodeRequest;
23
+ exports.encodeClientNotification = encodeClientNotification;
24
+ exports.decodeClientNotification = decodeClientNotification;
25
+ exports.encodeDaemonNotification = encodeDaemonNotification;
26
+ exports.decodeDaemonNotification = decodeDaemonNotification;
27
+ exports.encodeCancelRequestParams = encodeCancelRequestParams;
28
+ exports.decodeCancelRequestParams = decodeCancelRequestParams;
29
+ exports.encodeShutdownParams = encodeShutdownParams;
30
+ exports.decodeShutdownParams = decodeShutdownParams;
31
+ exports.encodeProgressParams = encodeProgressParams;
32
+ exports.decodeProgressParams = decodeProgressParams;
33
+ exports.encodeProgressBegin = encodeProgressBegin;
34
+ exports.decodeProgressBegin = decodeProgressBegin;
35
+ exports.encodeProgressReport = encodeProgressReport;
36
+ exports.decodeProgressReport = decodeProgressReport;
37
+ exports.encodeProgressEnd = encodeProgressEnd;
38
+ exports.decodeProgressEnd = decodeProgressEnd;
39
+ exports.encodePublishDiagnosticsParams = encodePublishDiagnosticsParams;
40
+ exports.decodePublishDiagnosticsParams = decodePublishDiagnosticsParams;
41
+ exports.encodeSuccessResponse = encodeSuccessResponse;
42
+ exports.decodeSuccessResponse = decodeSuccessResponse;
43
+ exports.encodeErrorResponse = encodeErrorResponse;
44
+ exports.decodeErrorResponse = decodeErrorResponse;
45
+ exports.encodeErrorObject = encodeErrorObject;
46
+ exports.decodeErrorObject = decodeErrorObject;
47
+ exports.encodeErrorCode = encodeErrorCode;
48
+ exports.decodeErrorCode = decodeErrorCode;
49
+ exports.encodeErrorData = encodeErrorData;
50
+ exports.decodeErrorData = decodeErrorData;
51
+ exports.encodeDiagnostic = encodeDiagnostic;
52
+ exports.decodeDiagnostic = decodeDiagnostic;
53
+ exports.encodeCodeDescription = encodeCodeDescription;
54
+ exports.decodeCodeDescription = decodeCodeDescription;
55
+ exports.encodePosition = encodePosition;
56
+ exports.decodePosition = decodePosition;
57
+ exports.encodeRange = encodeRange;
58
+ exports.decodeRange = decodeRange;
59
+ exports.encodeLocation = encodeLocation;
60
+ exports.decodeLocation = decodeLocation;
61
+ exports.encodeWorkspaceAndProgressParams = encodeWorkspaceAndProgressParams;
62
+ exports.decodeWorkspaceAndProgressParams = decodeWorkspaceAndProgressParams;
63
+ exports.encodeInitializeParams = encodeInitializeParams;
64
+ exports.decodeInitializeParams = decodeInitializeParams;
65
+ exports.encodeClientCapabilities = encodeClientCapabilities;
66
+ exports.decodeClientCapabilities = decodeClientCapabilities;
67
+ exports.encodeClientCapabilitiesGeneral = encodeClientCapabilitiesGeneral;
68
+ exports.decodeClientCapabilitiesGeneral = decodeClientCapabilitiesGeneral;
69
+ exports.encodeClientCapabilitiesWindow = encodeClientCapabilitiesWindow;
70
+ exports.decodeClientCapabilitiesWindow = decodeClientCapabilitiesWindow;
71
+ exports.encodeValidateParams = encodeValidateParams;
72
+ exports.decodeValidateParams = decodeValidateParams;
73
+ exports.encodeInvalidateParams = encodeInvalidateParams;
74
+ exports.decodeInvalidateParams = decodeInvalidateParams;
75
+ exports.encodeDiagnosticsParams = encodeDiagnosticsParams;
76
+ exports.decodeDiagnosticsParams = decodeDiagnosticsParams;
77
+ exports.encodeIrGraphParams = encodeIrGraphParams;
78
+ exports.decodeIrGraphParams = decodeIrGraphParams;
79
+ exports.encodeBuildParams = encodeBuildParams;
80
+ exports.decodeBuildParams = decodeBuildParams;
81
+ exports.encodeBuildPreviewParams = encodeBuildPreviewParams;
82
+ exports.decodeBuildPreviewParams = decodeBuildPreviewParams;
83
+ exports.encodeEntityDefinitionParams = encodeEntityDefinitionParams;
84
+ exports.decodeEntityDefinitionParams = decodeEntityDefinitionParams;
85
+ exports.encodeCatalogIndexParams = encodeCatalogIndexParams;
86
+ exports.decodeCatalogIndexParams = decodeCatalogIndexParams;
87
+ exports.encodeReleaseClosureParams = encodeReleaseClosureParams;
88
+ exports.decodeReleaseClosureParams = decodeReleaseClosureParams;
89
+ exports.encodeResolveDependenciesParams = encodeResolveDependenciesParams;
90
+ exports.decodeResolveDependenciesParams = decodeResolveDependenciesParams;
91
+ exports.encodePinParams = encodePinParams;
92
+ exports.decodePinParams = decodePinParams;
93
+ exports.encodeCacheEvictParams = encodeCacheEvictParams;
94
+ exports.decodeCacheEvictParams = decodeCacheEvictParams;
95
+ exports.encodeSearchParams = encodeSearchParams;
96
+ exports.decodeSearchParams = decodeSearchParams;
97
+ exports.encodeRegistryAddParams = encodeRegistryAddParams;
98
+ exports.decodeRegistryAddParams = decodeRegistryAddParams;
99
+ exports.encodeRegistryRemoveParams = encodeRegistryRemoveParams;
100
+ exports.decodeRegistryRemoveParams = decodeRegistryRemoveParams;
101
+ exports.encodeRegistryUpdateParams = encodeRegistryUpdateParams;
102
+ exports.decodeRegistryUpdateParams = decodeRegistryUpdateParams;
103
+ exports.encodeLogoutParams = encodeLogoutParams;
104
+ exports.decodeLogoutParams = decodeLogoutParams;
105
+ exports.encodePublishEntityParams = encodePublishEntityParams;
106
+ exports.decodePublishEntityParams = decodePublishEntityParams;
107
+ exports.encodePublishArtifactParams = encodePublishArtifactParams;
108
+ exports.decodePublishArtifactParams = decodePublishArtifactParams;
109
+ exports.encodeSignArtifactsParams = encodeSignArtifactsParams;
110
+ exports.decodeSignArtifactsParams = decodeSignArtifactsParams;
111
+ exports.encodeDeprecateArtifactParams = encodeDeprecateArtifactParams;
112
+ exports.decodeDeprecateArtifactParams = decodeDeprecateArtifactParams;
113
+ exports.encodeResolveParams = encodeResolveParams;
114
+ exports.decodeResolveParams = decodeResolveParams;
115
+ exports.encodeFindReferencesParams = encodeFindReferencesParams;
116
+ exports.decodeFindReferencesParams = decodeFindReferencesParams;
117
+ exports.encodeFindImplementationsParams = encodeFindImplementationsParams;
118
+ exports.decodeFindImplementationsParams = decodeFindImplementationsParams;
119
+ exports.encodeHoverParams = encodeHoverParams;
120
+ exports.decodeHoverParams = decodeHoverParams;
121
+ exports.encodeCompletionParams = encodeCompletionParams;
122
+ exports.decodeCompletionParams = decodeCompletionParams;
123
+ exports.encodeCompletionContext = encodeCompletionContext;
124
+ exports.decodeCompletionContext = decodeCompletionContext;
125
+ exports.encodeAttachCandidatesParams = encodeAttachCandidatesParams;
126
+ exports.decodeAttachCandidatesParams = decodeAttachCandidatesParams;
127
+ exports.encodeConnectionCandidatesParams = encodeConnectionCandidatesParams;
128
+ exports.decodeConnectionCandidatesParams = decodeConnectionCandidatesParams;
129
+ exports.encodeInsertionPointParams = encodeInsertionPointParams;
130
+ exports.decodeInsertionPointParams = decodeInsertionPointParams;
131
+ exports.encodeAttachmentContainerParams = encodeAttachmentContainerParams;
132
+ exports.decodeAttachmentContainerParams = decodeAttachmentContainerParams;
133
+ exports.encodeConnectionAtPositionParams = encodeConnectionAtPositionParams;
134
+ exports.decodeConnectionAtPositionParams = decodeConnectionAtPositionParams;
135
+ exports.encodeConnectionCoordinate = encodeConnectionCoordinate;
136
+ exports.decodeConnectionCoordinate = decodeConnectionCoordinate;
137
+ exports.encodeSetActiveReleaseParams = encodeSetActiveReleaseParams;
138
+ exports.decodeSetActiveReleaseParams = decodeSetActiveReleaseParams;
139
+ exports.encodeEditDocumentParams = encodeEditDocumentParams;
140
+ exports.decodeEditDocumentParams = decodeEditDocumentParams;
141
+ exports.encodeConfigInitParams = encodeConfigInitParams;
142
+ exports.decodeConfigInitParams = decodeConfigInitParams;
143
+ exports.encodeConfigCaptureParams = encodeConfigCaptureParams;
144
+ exports.decodeConfigCaptureParams = decodeConfigCaptureParams;
145
+ exports.encodeImportParams = encodeImportParams;
146
+ exports.decodeImportParams = decodeImportParams;
147
+ exports.encodeScaffoldEntityParams = encodeScaffoldEntityParams;
148
+ exports.decodeScaffoldEntityParams = decodeScaffoldEntityParams;
149
+ exports.encodeLintParams = encodeLintParams;
150
+ exports.decodeLintParams = decodeLintParams;
151
+ exports.encodePluginAddParams = encodePluginAddParams;
152
+ exports.decodePluginAddParams = decodePluginAddParams;
153
+ exports.encodePluginRemoveParams = encodePluginRemoveParams;
154
+ exports.decodePluginRemoveParams = decodePluginRemoveParams;
155
+ exports.encodePluginSyncParams = encodePluginSyncParams;
156
+ exports.decodePluginSyncParams = decodePluginSyncParams;
157
+ exports.encodePluginGenCatalogParams = encodePluginGenCatalogParams;
158
+ exports.decodePluginGenCatalogParams = decodePluginGenCatalogParams;
159
+ exports.encodeExplainErrorParams = encodeExplainErrorParams;
160
+ exports.decodeExplainErrorParams = decodeExplainErrorParams;
161
+ exports.encodeGetSchemaParams = encodeGetSchemaParams;
162
+ exports.decodeGetSchemaParams = decodeGetSchemaParams;
163
+ exports.encodeSkillsInstallParams = encodeSkillsInstallParams;
164
+ exports.decodeSkillsInstallParams = decodeSkillsInstallParams;
165
+ exports.encodeServerCapabilities = encodeServerCapabilities;
166
+ exports.decodeServerCapabilities = decodeServerCapabilities;
167
+ exports.encodeClosureEntity = encodeClosureEntity;
168
+ exports.decodeClosureEntity = decodeClosureEntity;
169
+ exports.encodeToolchainCorePlugin = encodeToolchainCorePlugin;
170
+ exports.decodeToolchainCorePlugin = decodeToolchainCorePlugin;
171
+ exports.encodeToolchainReport = encodeToolchainReport;
172
+ exports.decodeToolchainReport = decodeToolchainReport;
173
+ exports.encodeDependencyResolutionReport = encodeDependencyResolutionReport;
174
+ exports.decodeDependencyResolutionReport = decodeDependencyResolutionReport;
175
+ exports.encodeBuildNotice = encodeBuildNotice;
176
+ exports.decodeBuildNotice = decodeBuildNotice;
177
+ exports.encodeCacheScope = encodeCacheScope;
178
+ exports.decodeCacheScope = decodeCacheScope;
179
+ exports.encodeCacheElement = encodeCacheElement;
180
+ exports.decodeCacheElement = decodeCacheElement;
181
+ exports.encodeCacheClass = encodeCacheClass;
182
+ exports.decodeCacheClass = decodeCacheClass;
183
+ exports.encodeCacheProvenance = encodeCacheProvenance;
184
+ exports.decodeCacheProvenance = decodeCacheProvenance;
185
+ exports.encodeCacheRemoval = encodeCacheRemoval;
186
+ exports.decodeCacheRemoval = decodeCacheRemoval;
187
+ exports.encodeCacheShortfall = encodeCacheShortfall;
188
+ exports.decodeCacheShortfall = decodeCacheShortfall;
189
+ exports.encodeCacheCleared = encodeCacheCleared;
190
+ exports.decodeCacheCleared = decodeCacheCleared;
191
+ exports.encodeConfigWriteScope = encodeConfigWriteScope;
192
+ exports.decodeConfigWriteScope = decodeConfigWriteScope;
193
+ exports.encodePluginWriteScope = encodePluginWriteScope;
194
+ exports.decodePluginWriteScope = decodePluginWriteScope;
195
+ exports.encodeCredentialStoreScope = encodeCredentialStoreScope;
196
+ exports.decodeCredentialStoreScope = decodeCredentialStoreScope;
197
+ exports.encodeSkillFolderScope = encodeSkillFolderScope;
198
+ exports.decodeSkillFolderScope = decodeSkillFolderScope;
199
+ exports.encodePublicationReach = encodePublicationReach;
200
+ exports.decodePublicationReach = decodePublicationReach;
201
+ exports.encodeWorkspaceEntityRef = encodeWorkspaceEntityRef;
202
+ exports.decodeWorkspaceEntityRef = decodeWorkspaceEntityRef;
203
+ exports.encodeSourcedEntityRef = encodeSourcedEntityRef;
204
+ exports.decodeSourcedEntityRef = decodeSourcedEntityRef;
205
+ exports.encodeSocketCandidacy = encodeSocketCandidacy;
206
+ exports.decodeSocketCandidacy = decodeSocketCandidacy;
207
+ exports.encodeSlotCandidacy = encodeSlotCandidacy;
208
+ exports.decodeSlotCandidacy = decodeSlotCandidacy;
209
+ exports.encodeCatalogEntity = encodeCatalogEntity;
210
+ exports.decodeCatalogEntity = decodeCatalogEntity;
211
+ exports.encodeCompletionItem = encodeCompletionItem;
212
+ exports.decodeCompletionItem = decodeCompletionItem;
213
+ exports.encodeMarkupContent = encodeMarkupContent;
214
+ exports.decodeMarkupContent = decodeMarkupContent;
215
+ exports.encodeEntityKindDescriptor = encodeEntityKindDescriptor;
216
+ exports.decodeEntityKindDescriptor = decodeEntityKindDescriptor;
217
+ exports.encodeEntityKindAcceptance = encodeEntityKindAcceptance;
218
+ exports.decodeEntityKindAcceptance = decodeEntityKindAcceptance;
219
+ exports.encodeRegistryTrust = encodeRegistryTrust;
220
+ exports.decodeRegistryTrust = decodeRegistryTrust;
221
+ exports.encodeRegistry = encodeRegistry;
222
+ exports.decodeRegistry = decodeRegistry;
223
+ exports.encodeTrustFetchOutcome = encodeTrustFetchOutcome;
224
+ exports.decodeTrustFetchOutcome = decodeTrustFetchOutcome;
225
+ exports.encodeSkippedRepo = encodeSkippedRepo;
226
+ exports.decodeSkippedRepo = decodeSkippedRepo;
227
+ exports.encodeDeprecationNote = encodeDeprecationNote;
228
+ exports.decodeDeprecationNote = decodeDeprecationNote;
229
+ exports.encodeHostUpdate = encodeHostUpdate;
230
+ exports.decodeHostUpdate = decodeHostUpdate;
231
+ exports.encodePublishedVersion = encodePublishedVersion;
232
+ exports.decodePublishedVersion = decodePublishedVersion;
233
+ exports.encodeVerifiedSignature = encodeVerifiedSignature;
234
+ exports.decodeVerifiedSignature = decodeVerifiedSignature;
235
+ exports.encodeRegistrySearchRecord = encodeRegistrySearchRecord;
236
+ exports.decodeRegistrySearchRecord = decodeRegistrySearchRecord;
237
+ exports.encodeRegistrySearchIndex = encodeRegistrySearchIndex;
238
+ exports.decodeRegistrySearchIndex = decodeRegistrySearchIndex;
239
+ exports.encodeEffectiveConfigurationSetting = encodeEffectiveConfigurationSetting;
240
+ exports.decodeEffectiveConfigurationSetting = decodeEffectiveConfigurationSetting;
241
+ exports.encodeImportedFile = encodeImportedFile;
242
+ exports.decodeImportedFile = decodeImportedFile;
243
+ exports.encodeImportDrift = encodeImportDrift;
244
+ exports.decodeImportDrift = decodeImportDrift;
245
+ exports.encodeImportOwed = encodeImportOwed;
246
+ exports.decodeImportOwed = decodeImportOwed;
247
+ exports.encodeImportAnswered = encodeImportAnswered;
248
+ exports.decodeImportAnswered = decodeImportAnswered;
249
+ exports.encodeImportDiagnostic = encodeImportDiagnostic;
250
+ exports.decodeImportDiagnostic = decodeImportDiagnostic;
251
+ exports.encodeImportDecision = encodeImportDecision;
252
+ exports.decodeImportDecision = decodeImportDecision;
253
+ exports.encodeDecisionSourceNode = encodeDecisionSourceNode;
254
+ exports.decodeDecisionSourceNode = decodeDecisionSourceNode;
255
+ exports.encodeImportCandidate = encodeImportCandidate;
256
+ exports.decodeImportCandidate = decodeImportCandidate;
257
+ exports.encodeCandidateSignals = encodeCandidateSignals;
258
+ exports.decodeCandidateSignals = decodeCandidateSignals;
259
+ exports.encodeDecisionChoice = encodeDecisionChoice;
260
+ exports.decodeDecisionChoice = decodeDecisionChoice;
261
+ exports.encodeLintFileFindings = encodeLintFileFindings;
262
+ exports.decodeLintFileFindings = decodeLintFileFindings;
263
+ exports.encodePluginRetractionExclusion = encodePluginRetractionExclusion;
264
+ exports.decodePluginRetractionExclusion = decodePluginRetractionExclusion;
265
+ exports.encodePluginRetractionProvenance = encodePluginRetractionProvenance;
266
+ exports.decodePluginRetractionProvenance = decodePluginRetractionProvenance;
267
+ exports.encodePluginRetraction = encodePluginRetraction;
268
+ exports.decodePluginRetraction = decodePluginRetraction;
269
+ exports.encodePluginGeneratedDocument = encodePluginGeneratedDocument;
270
+ exports.decodePluginGeneratedDocument = decodePluginGeneratedDocument;
271
+ exports.encodePluginCommandFlag = encodePluginCommandFlag;
272
+ exports.decodePluginCommandFlag = decodePluginCommandFlag;
273
+ exports.encodePluginCLICommand = encodePluginCLICommand;
274
+ exports.decodePluginCLICommand = decodePluginCLICommand;
275
+ exports.encodeConfigCapturedAttachment = encodeConfigCapturedAttachment;
276
+ exports.decodeConfigCapturedAttachment = decodeConfigCapturedAttachment;
277
+ exports.encodeConfigCapturedSocket = encodeConfigCapturedSocket;
278
+ exports.decodeConfigCapturedSocket = decodeConfigCapturedSocket;
279
+ exports.encodeExplainErrorEntry = encodeExplainErrorEntry;
280
+ exports.decodeExplainErrorEntry = decodeExplainErrorEntry;
281
+ exports.encodeSignedArtifact = encodeSignedArtifact;
282
+ exports.decodeSignedArtifact = decodeSignedArtifact;
283
+ exports.encodeDeprecationMarked = encodeDeprecationMarked;
284
+ exports.decodeDeprecationMarked = decodeDeprecationMarked;
285
+ exports.encodeInitializeResult = encodeInitializeResult;
286
+ exports.decodeInitializeResult = decodeInitializeResult;
287
+ exports.encodeValidateResult = encodeValidateResult;
288
+ exports.decodeValidateResult = decodeValidateResult;
289
+ exports.encodeInvalidateResult = encodeInvalidateResult;
290
+ exports.decodeInvalidateResult = decodeInvalidateResult;
291
+ exports.encodeDiagnosticsResult = encodeDiagnosticsResult;
292
+ exports.decodeDiagnosticsResult = decodeDiagnosticsResult;
293
+ exports.encodeIrGraphResult = encodeIrGraphResult;
294
+ exports.decodeIrGraphResult = decodeIrGraphResult;
295
+ exports.encodeBuildResult = encodeBuildResult;
296
+ exports.decodeBuildResult = decodeBuildResult;
297
+ exports.encodeBuildPreviewResult = encodeBuildPreviewResult;
298
+ exports.decodeBuildPreviewResult = decodeBuildPreviewResult;
299
+ exports.encodeEntityDefinitionResult = encodeEntityDefinitionResult;
300
+ exports.decodeEntityDefinitionResult = decodeEntityDefinitionResult;
301
+ exports.encodePublishedArtifact = encodePublishedArtifact;
302
+ exports.decodePublishedArtifact = decodePublishedArtifact;
303
+ exports.encodeReleaseClosureResult = encodeReleaseClosureResult;
304
+ exports.decodeReleaseClosureResult = decodeReleaseClosureResult;
305
+ exports.encodeResolveDependenciesResult = encodeResolveDependenciesResult;
306
+ exports.decodeResolveDependenciesResult = decodeResolveDependenciesResult;
307
+ exports.encodePinResult = encodePinResult;
308
+ exports.decodePinResult = decodePinResult;
309
+ exports.encodePinClassCount = encodePinClassCount;
310
+ exports.decodePinClassCount = decodePinClassCount;
311
+ exports.encodeCacheStatusResult = encodeCacheStatusResult;
312
+ exports.decodeCacheStatusResult = decodeCacheStatusResult;
313
+ exports.encodeCachePruneResult = encodeCachePruneResult;
314
+ exports.decodeCachePruneResult = decodeCachePruneResult;
315
+ exports.encodeCacheEvictResult = encodeCacheEvictResult;
316
+ exports.decodeCacheEvictResult = decodeCacheEvictResult;
317
+ exports.encodeCacheClearResult = encodeCacheClearResult;
318
+ exports.decodeCacheClearResult = decodeCacheClearResult;
319
+ exports.encodeRegistryListResult = encodeRegistryListResult;
320
+ exports.decodeRegistryListResult = decodeRegistryListResult;
321
+ exports.encodeSearchResult = encodeSearchResult;
322
+ exports.decodeSearchResult = decodeSearchResult;
323
+ exports.encodeRegistryAddResult = encodeRegistryAddResult;
324
+ exports.decodeRegistryAddResult = decodeRegistryAddResult;
325
+ exports.encodeRegistryRemoveResult = encodeRegistryRemoveResult;
326
+ exports.decodeRegistryRemoveResult = decodeRegistryRemoveResult;
327
+ exports.encodeRegistryUpdateResult = encodeRegistryUpdateResult;
328
+ exports.decodeRegistryUpdateResult = decodeRegistryUpdateResult;
329
+ exports.encodeLogoutResult = encodeLogoutResult;
330
+ exports.decodeLogoutResult = decodeLogoutResult;
331
+ exports.encodePublishEntityResult = encodePublishEntityResult;
332
+ exports.decodePublishEntityResult = decodePublishEntityResult;
333
+ exports.encodePublishArtifactResult = encodePublishArtifactResult;
334
+ exports.decodePublishArtifactResult = decodePublishArtifactResult;
335
+ exports.encodeSignArtifactsResult = encodeSignArtifactsResult;
336
+ exports.decodeSignArtifactsResult = decodeSignArtifactsResult;
337
+ exports.encodeDeprecateArtifactResult = encodeDeprecateArtifactResult;
338
+ exports.decodeDeprecateArtifactResult = decodeDeprecateArtifactResult;
339
+ exports.encodeResolveResult = encodeResolveResult;
340
+ exports.decodeResolveResult = decodeResolveResult;
341
+ exports.encodeFindReferencesResult = encodeFindReferencesResult;
342
+ exports.decodeFindReferencesResult = decodeFindReferencesResult;
343
+ exports.encodeFindImplementationsResult = encodeFindImplementationsResult;
344
+ exports.decodeFindImplementationsResult = decodeFindImplementationsResult;
345
+ exports.encodeHoverResult = encodeHoverResult;
346
+ exports.decodeHoverResult = decodeHoverResult;
347
+ exports.encodeCompletionResult = encodeCompletionResult;
348
+ exports.decodeCompletionResult = decodeCompletionResult;
349
+ exports.encodeCatalogIndexResult = encodeCatalogIndexResult;
350
+ exports.decodeCatalogIndexResult = decodeCatalogIndexResult;
351
+ exports.encodeAttachCandidatesResult = encodeAttachCandidatesResult;
352
+ exports.decodeAttachCandidatesResult = decodeAttachCandidatesResult;
353
+ exports.encodeConnectionCandidatesResult = encodeConnectionCandidatesResult;
354
+ exports.decodeConnectionCandidatesResult = decodeConnectionCandidatesResult;
355
+ exports.encodeInsertionPointResult = encodeInsertionPointResult;
356
+ exports.decodeInsertionPointResult = decodeInsertionPointResult;
357
+ exports.encodeAttachmentContainerResult = encodeAttachmentContainerResult;
358
+ exports.decodeAttachmentContainerResult = decodeAttachmentContainerResult;
359
+ exports.encodeConnectionAtPositionResult = encodeConnectionAtPositionResult;
360
+ exports.decodeConnectionAtPositionResult = decodeConnectionAtPositionResult;
361
+ exports.encodeReleaseCandidatesResult = encodeReleaseCandidatesResult;
362
+ exports.decodeReleaseCandidatesResult = decodeReleaseCandidatesResult;
363
+ exports.encodeActiveReleaseResult = encodeActiveReleaseResult;
364
+ exports.decodeActiveReleaseResult = decodeActiveReleaseResult;
365
+ exports.encodeEditDocumentResult = encodeEditDocumentResult;
366
+ exports.decodeEditDocumentResult = decodeEditDocumentResult;
367
+ exports.encodeEffectiveConfigurationResult = encodeEffectiveConfigurationResult;
368
+ exports.decodeEffectiveConfigurationResult = decodeEffectiveConfigurationResult;
369
+ exports.encodeConfigInitResult = encodeConfigInitResult;
370
+ exports.decodeConfigInitResult = decodeConfigInitResult;
371
+ exports.encodeConfigCaptureResult = encodeConfigCaptureResult;
372
+ exports.decodeConfigCaptureResult = decodeConfigCaptureResult;
373
+ exports.encodeImportResult = encodeImportResult;
374
+ exports.decodeImportResult = decodeImportResult;
375
+ exports.encodeScaffoldEntityResult = encodeScaffoldEntityResult;
376
+ exports.decodeScaffoldEntityResult = decodeScaffoldEntityResult;
377
+ exports.encodeScaffoldExample = encodeScaffoldExample;
378
+ exports.decodeScaffoldExample = decodeScaffoldExample;
379
+ exports.encodeLintResult = encodeLintResult;
380
+ exports.decodeLintResult = decodeLintResult;
381
+ exports.encodeLintPass = encodeLintPass;
382
+ exports.decodeLintPass = decodeLintPass;
383
+ exports.encodePluginAddResult = encodePluginAddResult;
384
+ exports.decodePluginAddResult = decodePluginAddResult;
385
+ exports.encodePluginRemoveResult = encodePluginRemoveResult;
386
+ exports.decodePluginRemoveResult = decodePluginRemoveResult;
387
+ exports.encodePluginSyncResult = encodePluginSyncResult;
388
+ exports.decodePluginSyncResult = decodePluginSyncResult;
389
+ exports.encodePluginGenCatalogResult = encodePluginGenCatalogResult;
390
+ exports.decodePluginGenCatalogResult = decodePluginGenCatalogResult;
391
+ exports.encodeExplainErrorResult = encodeExplainErrorResult;
392
+ exports.decodeExplainErrorResult = decodeExplainErrorResult;
393
+ exports.encodeGetSchemaResult = encodeGetSchemaResult;
394
+ exports.decodeGetSchemaResult = decodeGetSchemaResult;
395
+ exports.encodeSkillsInstallResult = encodeSkillsInstallResult;
396
+ exports.decodeSkillsInstallResult = decodeSkillsInstallResult;
397
+ exports.encodeSkillsInstalledFolder = encodeSkillsInstalledFolder;
398
+ exports.decodeSkillsInstalledFolder = decodeSkillsInstalledFolder;
399
+ exports.encodeSkillsListResult = encodeSkillsListResult;
400
+ exports.decodeSkillsListResult = decodeSkillsListResult;
401
+ exports.encodeSkillsListedSkill = encodeSkillsListedSkill;
402
+ exports.decodeSkillsListedSkill = decodeSkillsListedSkill;
403
+ exports.encodeSkillsListedAgent = encodeSkillsListedAgent;
404
+ exports.decodeSkillsListedAgent = decodeSkillsListedAgent;
405
+ // Code generated by internal/tools/typegen from
406
+ // aggrega-schemas/json/serve-wire-v1beta1.schema.json. DO NOT EDIT.
407
+ // Regenerate with `go generate ./internal/tools/typegen` from the
408
+ // aggrega-cli checkout.
409
+ function jstr(s) {
410
+ return JSON.stringify(s);
411
+ }
412
+ // encodeOpaque carries an opaque (`any` / RawMessage) value VERBATIM: the
413
+ // key order from JSON.parse is preserved, matching the Go and Rust codecs'
414
+ // byte-carry of opaque values. Opaque values are never sorted.
415
+ function encodeOpaque(v) {
416
+ return JSON.stringify(v);
417
+ }
418
+ function encodeProtocolVersion(v) {
419
+ return jstr(v);
420
+ }
421
+ function decodeProtocolVersion(data) {
422
+ return JSON.parse(data);
423
+ }
424
+ function encodeRequestId(v) {
425
+ return encodeOpaque(v);
426
+ }
427
+ function decodeRequestId(data) {
428
+ return JSON.parse(data);
429
+ }
430
+ function encodeProgressToken(v) {
431
+ return encodeOpaque(v);
432
+ }
433
+ function decodeProgressToken(data) {
434
+ return JSON.parse(data);
435
+ }
436
+ function encodeWorkspaceRootSubject(v) {
437
+ return jstr(v);
438
+ }
439
+ function decodeWorkspaceRootSubject(data) {
440
+ return JSON.parse(data);
441
+ }
442
+ function encodeWorkspaceRootAccepted(v) {
443
+ return jstr(v);
444
+ }
445
+ function decodeWorkspaceRootAccepted(data) {
446
+ return JSON.parse(data);
447
+ }
448
+ function encodeRequestMethod(v) {
449
+ return jstr(v);
450
+ }
451
+ function decodeRequestMethod(data) {
452
+ return JSON.parse(data);
453
+ }
454
+ function encodeClientNotificationMethod(v) {
455
+ return jstr(v);
456
+ }
457
+ function decodeClientNotificationMethod(data) {
458
+ return JSON.parse(data);
459
+ }
460
+ function encodeDaemonNotificationMethod(v) {
461
+ return jstr(v);
462
+ }
463
+ function decodeDaemonNotificationMethod(data) {
464
+ return JSON.parse(data);
465
+ }
466
+ function encodeRequest(v) {
467
+ const parts = [];
468
+ parts.push(`${jstr("jsonrpc")}:${encodeProtocolVersion(v.jsonrpc)}`);
469
+ parts.push(`${jstr("id")}:${encodeRequestId(v.id)}`);
470
+ parts.push(`${jstr("method")}:${encodeRequestMethod(v.method)}`);
471
+ if (v.params !== undefined && v.params !== null)
472
+ parts.push(`${jstr("params")}:${encodeOpaque(v.params)}`);
473
+ return `{${parts.join(",")}}`;
474
+ }
475
+ function decodeRequest(data) {
476
+ return JSON.parse(data);
477
+ }
478
+ function encodeClientNotification(v) {
479
+ const parts = [];
480
+ parts.push(`${jstr("jsonrpc")}:${encodeProtocolVersion(v.jsonrpc)}`);
481
+ parts.push(`${jstr("method")}:${encodeClientNotificationMethod(v.method)}`);
482
+ if (v.params !== undefined && v.params !== null)
483
+ parts.push(`${jstr("params")}:${encodeOpaque(v.params)}`);
484
+ return `{${parts.join(",")}}`;
485
+ }
486
+ function decodeClientNotification(data) {
487
+ return JSON.parse(data);
488
+ }
489
+ function encodeDaemonNotification(v) {
490
+ const parts = [];
491
+ parts.push(`${jstr("jsonrpc")}:${encodeProtocolVersion(v.jsonrpc)}`);
492
+ parts.push(`${jstr("method")}:${encodeDaemonNotificationMethod(v.method)}`);
493
+ parts.push(`${jstr("params")}:${encodeOpaque(v.params)}`);
494
+ return `{${parts.join(",")}}`;
495
+ }
496
+ function decodeDaemonNotification(data) {
497
+ return JSON.parse(data);
498
+ }
499
+ function encodeCancelRequestParams(v) {
500
+ const parts = [];
501
+ parts.push(`${jstr("id")}:${encodeRequestId(v.id)}`);
502
+ return `{${parts.join(",")}}`;
503
+ }
504
+ function decodeCancelRequestParams(data) {
505
+ return JSON.parse(data);
506
+ }
507
+ function encodeShutdownParams(v) {
508
+ const parts = [];
509
+ return `{${parts.join(",")}}`;
510
+ }
511
+ function decodeShutdownParams(data) {
512
+ return JSON.parse(data);
513
+ }
514
+ function encodeProgressParams(v) {
515
+ const parts = [];
516
+ parts.push(`${jstr("token")}:${encodeProgressToken(v.token)}`);
517
+ parts.push(`${jstr("value")}:${encodeOpaque(v.value)}`);
518
+ return `{${parts.join(",")}}`;
519
+ }
520
+ function decodeProgressParams(data) {
521
+ return JSON.parse(data);
522
+ }
523
+ function encodeProgressBegin(v) {
524
+ const parts = [];
525
+ parts.push(`${jstr("kind")}:${jstr(v.kind)}`);
526
+ parts.push(`${jstr("title")}:${jstr(v.title)}`);
527
+ return `{${parts.join(",")}}`;
528
+ }
529
+ function decodeProgressBegin(data) {
530
+ return JSON.parse(data);
531
+ }
532
+ function encodeProgressReport(v) {
533
+ const parts = [];
534
+ parts.push(`${jstr("kind")}:${jstr(v.kind)}`);
535
+ parts.push(`${jstr("message")}:${jstr(v.message)}`);
536
+ return `{${parts.join(",")}}`;
537
+ }
538
+ function decodeProgressReport(data) {
539
+ return JSON.parse(data);
540
+ }
541
+ function encodeProgressEnd(v) {
542
+ const parts = [];
543
+ parts.push(`${jstr("kind")}:${jstr(v.kind)}`);
544
+ return `{${parts.join(",")}}`;
545
+ }
546
+ function decodeProgressEnd(data) {
547
+ return JSON.parse(data);
548
+ }
549
+ function encodePublishDiagnosticsParams(v) {
550
+ const parts = [];
551
+ parts.push(`${jstr("file")}:${jstr(v.file)}`);
552
+ parts.push(`${jstr("diagnostics")}:${v.diagnostics === null ? "null" : `[${v.diagnostics.map((e0) => encodeDiagnostic(e0)).join(",")}]`}`);
553
+ return `{${parts.join(",")}}`;
554
+ }
555
+ function decodePublishDiagnosticsParams(data) {
556
+ return JSON.parse(data);
557
+ }
558
+ function encodeSuccessResponse(v) {
559
+ const parts = [];
560
+ parts.push(`${jstr("jsonrpc")}:${encodeProtocolVersion(v.jsonrpc)}`);
561
+ parts.push(`${jstr("id")}:${encodeRequestId(v.id)}`);
562
+ parts.push(`${jstr("result")}:${encodeOpaque(v.result)}`);
563
+ return `{${parts.join(",")}}`;
564
+ }
565
+ function decodeSuccessResponse(data) {
566
+ return JSON.parse(data);
567
+ }
568
+ function encodeErrorResponse(v) {
569
+ const parts = [];
570
+ parts.push(`${jstr("jsonrpc")}:${encodeProtocolVersion(v.jsonrpc)}`);
571
+ parts.push(`${jstr("id")}:${encodeRequestId(v.id)}`);
572
+ parts.push(`${jstr("error")}:${encodeErrorObject(v.error)}`);
573
+ return `{${parts.join(",")}}`;
574
+ }
575
+ function decodeErrorResponse(data) {
576
+ return JSON.parse(data);
577
+ }
578
+ function encodeErrorObject(v) {
579
+ const parts = [];
580
+ parts.push(`${jstr("code")}:${encodeErrorCode(v.code)}`);
581
+ parts.push(`${jstr("message")}:${jstr(v.message)}`);
582
+ if (v.data !== undefined)
583
+ parts.push(`${jstr("data")}:${encodeErrorData(v.data)}`);
584
+ return `{${parts.join(",")}}`;
585
+ }
586
+ function decodeErrorObject(data) {
587
+ return JSON.parse(data);
588
+ }
589
+ function encodeErrorCode(v) {
590
+ return String(v);
591
+ }
592
+ function decodeErrorCode(data) {
593
+ return JSON.parse(data);
594
+ }
595
+ function encodeErrorData(v) {
596
+ const parts = [];
597
+ if (v.file !== undefined && v.file !== "")
598
+ parts.push(`${jstr("file")}:${jstr(v.file)}`);
599
+ if (v.line !== undefined && v.line !== 0)
600
+ parts.push(`${jstr("line")}:${String(v.line)}`);
601
+ if (v.column !== undefined && v.column !== 0)
602
+ parts.push(`${jstr("column")}:${String(v.column)}`);
603
+ if (v.end_line !== undefined && v.end_line !== 0)
604
+ parts.push(`${jstr("end_line")}:${String(v.end_line)}`);
605
+ if (v.end_column !== undefined && v.end_column !== 0)
606
+ parts.push(`${jstr("end_column")}:${String(v.end_column)}`);
607
+ if (v.release !== undefined && v.release !== "")
608
+ parts.push(`${jstr("release")}:${jstr(v.release)}`);
609
+ if (v.lockfile !== undefined && v.lockfile !== "")
610
+ parts.push(`${jstr("lockfile")}:${jstr(v.lockfile)}`);
611
+ if (v.unreachable !== undefined && v.unreachable !== false)
612
+ parts.push(`${jstr("unreachable")}:${String(v.unreachable)}`);
613
+ if (v.code !== undefined && v.code !== "")
614
+ parts.push(`${jstr("code")}:${jstr(v.code)}`);
615
+ if (v.shortCode !== undefined && v.shortCode !== "")
616
+ parts.push(`${jstr("shortCode")}:${jstr(v.shortCode)}`);
617
+ return `{${parts.join(",")}}`;
618
+ }
619
+ function decodeErrorData(data) {
620
+ return JSON.parse(data);
621
+ }
622
+ function encodeDiagnostic(v) {
623
+ const parts = [];
624
+ parts.push(`${jstr("line")}:${String(v.line)}`);
625
+ parts.push(`${jstr("column")}:${String(v.column)}`);
626
+ parts.push(`${jstr("severity")}:${jstr(v.severity)}`);
627
+ parts.push(`${jstr("message")}:${jstr(v.message)}`);
628
+ if (v.code !== undefined && v.code !== "")
629
+ parts.push(`${jstr("code")}:${jstr(v.code)}`);
630
+ if (v.shortCode !== undefined && v.shortCode !== "")
631
+ parts.push(`${jstr("shortCode")}:${jstr(v.shortCode)}`);
632
+ if (v.codeDescription !== undefined)
633
+ parts.push(`${jstr("codeDescription")}:${encodeCodeDescription(v.codeDescription)}`);
634
+ if (v.classification !== undefined && v.classification !== "")
635
+ parts.push(`${jstr("classification")}:${jstr(v.classification)}`);
636
+ if (v.suggest !== undefined && v.suggest !== "")
637
+ parts.push(`${jstr("suggest")}:${jstr(v.suggest)}`);
638
+ if (v.keyPath !== undefined && v.keyPath !== "")
639
+ parts.push(`${jstr("keyPath")}:${jstr(v.keyPath)}`);
640
+ parts.push(`${jstr("source")}:${jstr(v.source)}`);
641
+ if (v.end_line !== undefined && v.end_line !== 0)
642
+ parts.push(`${jstr("end_line")}:${String(v.end_line)}`);
643
+ if (v.end_column !== undefined && v.end_column !== 0)
644
+ parts.push(`${jstr("end_column")}:${String(v.end_column)}`);
645
+ return `{${parts.join(",")}}`;
646
+ }
647
+ function decodeDiagnostic(data) {
648
+ return JSON.parse(data);
649
+ }
650
+ function encodeCodeDescription(v) {
651
+ const parts = [];
652
+ parts.push(`${jstr("href")}:${jstr(v.href)}`);
653
+ return `{${parts.join(",")}}`;
654
+ }
655
+ function decodeCodeDescription(data) {
656
+ return JSON.parse(data);
657
+ }
658
+ function encodePosition(v) {
659
+ const parts = [];
660
+ parts.push(`${jstr("line")}:${String(v.line)}`);
661
+ parts.push(`${jstr("character")}:${String(v.character)}`);
662
+ return `{${parts.join(",")}}`;
663
+ }
664
+ function decodePosition(data) {
665
+ return JSON.parse(data);
666
+ }
667
+ function encodeRange(v) {
668
+ const parts = [];
669
+ parts.push(`${jstr("start")}:${encodePosition(v.start)}`);
670
+ parts.push(`${jstr("end")}:${encodePosition(v.end)}`);
671
+ return `{${parts.join(",")}}`;
672
+ }
673
+ function decodeRange(data) {
674
+ return JSON.parse(data);
675
+ }
676
+ function encodeLocation(v) {
677
+ const parts = [];
678
+ parts.push(`${jstr("uri")}:${jstr(v.uri)}`);
679
+ parts.push(`${jstr("range")}:${encodeRange(v.range)}`);
680
+ return `{${parts.join(",")}}`;
681
+ }
682
+ function decodeLocation(data) {
683
+ return JSON.parse(data);
684
+ }
685
+ function encodeWorkspaceAndProgressParams(v) {
686
+ const parts = [];
687
+ parts.push(`${jstr("workspaceRoot")}:${encodeWorkspaceRootSubject(v.workspaceRoot)}`);
688
+ if (v.workDoneToken !== undefined)
689
+ parts.push(`${jstr("workDoneToken")}:${encodeProgressToken(v.workDoneToken)}`);
690
+ return `{${parts.join(",")}}`;
691
+ }
692
+ function decodeWorkspaceAndProgressParams(data) {
693
+ return JSON.parse(data);
694
+ }
695
+ function encodeInitializeParams(v) {
696
+ const parts = [];
697
+ if (v.capabilities !== undefined)
698
+ parts.push(`${jstr("capabilities")}:${encodeClientCapabilities(v.capabilities)}`);
699
+ if (v.workspaceRoot !== undefined && v.workspaceRoot !== "")
700
+ parts.push(`${jstr("workspaceRoot")}:${jstr(v.workspaceRoot)}`);
701
+ if (v.workDoneToken !== undefined)
702
+ parts.push(`${jstr("workDoneToken")}:${encodeProgressToken(v.workDoneToken)}`);
703
+ return `{${parts.join(",")}}`;
704
+ }
705
+ function decodeInitializeParams(data) {
706
+ return JSON.parse(data);
707
+ }
708
+ function encodeClientCapabilities(v) {
709
+ const parts = [];
710
+ if (v.general !== undefined)
711
+ parts.push(`${jstr("general")}:${encodeClientCapabilitiesGeneral(v.general)}`);
712
+ if (v.window !== undefined)
713
+ parts.push(`${jstr("window")}:${encodeClientCapabilitiesWindow(v.window)}`);
714
+ return `{${parts.join(",")}}`;
715
+ }
716
+ function decodeClientCapabilities(data) {
717
+ return JSON.parse(data);
718
+ }
719
+ function encodeClientCapabilitiesGeneral(v) {
720
+ const parts = [];
721
+ if (v.positionEncodings !== undefined && v.positionEncodings.length > 0)
722
+ parts.push(`${jstr("positionEncodings")}:${`[${v.positionEncodings.map((e0) => jstr(e0)).join(",")}]`}`);
723
+ return `{${parts.join(",")}}`;
724
+ }
725
+ function decodeClientCapabilitiesGeneral(data) {
726
+ return JSON.parse(data);
727
+ }
728
+ function encodeClientCapabilitiesWindow(v) {
729
+ const parts = [];
730
+ if (v.workDoneProgress !== undefined && v.workDoneProgress !== false)
731
+ parts.push(`${jstr("workDoneProgress")}:${String(v.workDoneProgress)}`);
732
+ return `{${parts.join(",")}}`;
733
+ }
734
+ function decodeClientCapabilitiesWindow(data) {
735
+ return JSON.parse(data);
736
+ }
737
+ function encodeValidateParams(v) {
738
+ const parts = [];
739
+ parts.push(`${jstr("workspaceRoot")}:${encodeWorkspaceRootSubject(v.workspaceRoot)}`);
740
+ if (v.workDoneToken !== undefined)
741
+ parts.push(`${jstr("workDoneToken")}:${encodeProgressToken(v.workDoneToken)}`);
742
+ if (v.file !== undefined && v.file !== "")
743
+ parts.push(`${jstr("file")}:${jstr(v.file)}`);
744
+ if (v.content !== undefined && v.content !== "")
745
+ parts.push(`${jstr("content")}:${jstr(v.content)}`);
746
+ if (v.release !== undefined && v.release !== "")
747
+ parts.push(`${jstr("release")}:${jstr(v.release)}`);
748
+ return `{${parts.join(",")}}`;
749
+ }
750
+ function decodeValidateParams(data) {
751
+ return JSON.parse(data);
752
+ }
753
+ function encodeInvalidateParams(v) {
754
+ const parts = [];
755
+ parts.push(`${jstr("workspaceRoot")}:${encodeWorkspaceRootSubject(v.workspaceRoot)}`);
756
+ if (v.workDoneToken !== undefined)
757
+ parts.push(`${jstr("workDoneToken")}:${encodeProgressToken(v.workDoneToken)}`);
758
+ if (v.file !== undefined && v.file !== "")
759
+ parts.push(`${jstr("file")}:${jstr(v.file)}`);
760
+ if (v.granularity !== undefined && v.granularity !== "")
761
+ parts.push(`${jstr("granularity")}:${jstr(v.granularity)}`);
762
+ return `{${parts.join(",")}}`;
763
+ }
764
+ function decodeInvalidateParams(data) {
765
+ return JSON.parse(data);
766
+ }
767
+ function encodeDiagnosticsParams(v) {
768
+ const parts = [];
769
+ parts.push(`${jstr("workspaceRoot")}:${encodeWorkspaceRootSubject(v.workspaceRoot)}`);
770
+ if (v.workDoneToken !== undefined)
771
+ parts.push(`${jstr("workDoneToken")}:${encodeProgressToken(v.workDoneToken)}`);
772
+ if (v.file !== undefined && v.file !== "")
773
+ parts.push(`${jstr("file")}:${jstr(v.file)}`);
774
+ return `{${parts.join(",")}}`;
775
+ }
776
+ function decodeDiagnosticsParams(data) {
777
+ return JSON.parse(data);
778
+ }
779
+ function encodeIrGraphParams(v) {
780
+ const parts = [];
781
+ parts.push(`${jstr("workspaceRoot")}:${encodeWorkspaceRootSubject(v.workspaceRoot)}`);
782
+ if (v.workDoneToken !== undefined)
783
+ parts.push(`${jstr("workDoneToken")}:${encodeProgressToken(v.workDoneToken)}`);
784
+ if (v.release !== undefined && v.release !== "")
785
+ parts.push(`${jstr("release")}:${jstr(v.release)}`);
786
+ if (v.unredacted !== undefined && v.unredacted !== false)
787
+ parts.push(`${jstr("unredacted")}:${String(v.unredacted)}`);
788
+ return `{${parts.join(",")}}`;
789
+ }
790
+ function decodeIrGraphParams(data) {
791
+ return JSON.parse(data);
792
+ }
793
+ function encodeBuildParams(v) {
794
+ const parts = [];
795
+ parts.push(`${jstr("workspaceRoot")}:${encodeWorkspaceRootSubject(v.workspaceRoot)}`);
796
+ if (v.workDoneToken !== undefined)
797
+ parts.push(`${jstr("workDoneToken")}:${encodeProgressToken(v.workDoneToken)}`);
798
+ if (v.release !== undefined && v.release !== "")
799
+ parts.push(`${jstr("release")}:${jstr(v.release)}`);
800
+ if (v.outputParent !== undefined && v.outputParent !== "")
801
+ parts.push(`${jstr("outputParent")}:${jstr(v.outputParent)}`);
802
+ if (v.autoPull !== undefined && v.autoPull !== false)
803
+ parts.push(`${jstr("autoPull")}:${String(v.autoPull)}`);
804
+ if (v.policyInput !== undefined && v.policyInput !== "")
805
+ parts.push(`${jstr("policyInput")}:${jstr(v.policyInput)}`);
806
+ return `{${parts.join(",")}}`;
807
+ }
808
+ function decodeBuildParams(data) {
809
+ return JSON.parse(data);
810
+ }
811
+ function encodeBuildPreviewParams(v) {
812
+ const parts = [];
813
+ parts.push(`${jstr("workspaceRoot")}:${encodeWorkspaceRootSubject(v.workspaceRoot)}`);
814
+ if (v.workDoneToken !== undefined)
815
+ parts.push(`${jstr("workDoneToken")}:${encodeProgressToken(v.workDoneToken)}`);
816
+ if (v.release !== undefined && v.release !== "")
817
+ parts.push(`${jstr("release")}:${jstr(v.release)}`);
818
+ if (v.autoPull !== undefined && v.autoPull !== false)
819
+ parts.push(`${jstr("autoPull")}:${String(v.autoPull)}`);
820
+ if (v.policyInput !== undefined && v.policyInput !== "")
821
+ parts.push(`${jstr("policyInput")}:${jstr(v.policyInput)}`);
822
+ return `{${parts.join(",")}}`;
823
+ }
824
+ function decodeBuildPreviewParams(data) {
825
+ return JSON.parse(data);
826
+ }
827
+ function encodeEntityDefinitionParams(v) {
828
+ const parts = [];
829
+ parts.push(`${jstr("workspaceRoot")}:${encodeWorkspaceRootSubject(v.workspaceRoot)}`);
830
+ if (v.workDoneToken !== undefined)
831
+ parts.push(`${jstr("workDoneToken")}:${encodeProgressToken(v.workDoneToken)}`);
832
+ if (v.name !== undefined && v.name !== "")
833
+ parts.push(`${jstr("name")}:${jstr(v.name)}`);
834
+ if (v.release !== undefined && v.release !== "")
835
+ parts.push(`${jstr("release")}:${jstr(v.release)}`);
836
+ return `{${parts.join(",")}}`;
837
+ }
838
+ function decodeEntityDefinitionParams(data) {
839
+ return JSON.parse(data);
840
+ }
841
+ function encodeCatalogIndexParams(v) {
842
+ const parts = [];
843
+ parts.push(`${jstr("workspaceRoot")}:${encodeWorkspaceRootSubject(v.workspaceRoot)}`);
844
+ if (v.workDoneToken !== undefined)
845
+ parts.push(`${jstr("workDoneToken")}:${encodeProgressToken(v.workDoneToken)}`);
846
+ if (v.release !== undefined && v.release !== "")
847
+ parts.push(`${jstr("release")}:${jstr(v.release)}`);
848
+ return `{${parts.join(",")}}`;
849
+ }
850
+ function decodeCatalogIndexParams(data) {
851
+ return JSON.parse(data);
852
+ }
853
+ function encodeReleaseClosureParams(v) {
854
+ const parts = [];
855
+ parts.push(`${jstr("workspaceRoot")}:${encodeWorkspaceRootSubject(v.workspaceRoot)}`);
856
+ if (v.workDoneToken !== undefined)
857
+ parts.push(`${jstr("workDoneToken")}:${encodeProgressToken(v.workDoneToken)}`);
858
+ if (v.release !== undefined && v.release !== "")
859
+ parts.push(`${jstr("release")}:${jstr(v.release)}`);
860
+ return `{${parts.join(",")}}`;
861
+ }
862
+ function decodeReleaseClosureParams(data) {
863
+ return JSON.parse(data);
864
+ }
865
+ function encodeResolveDependenciesParams(v) {
866
+ const parts = [];
867
+ parts.push(`${jstr("workspaceRoot")}:${encodeWorkspaceRootSubject(v.workspaceRoot)}`);
868
+ if (v.workDoneToken !== undefined)
869
+ parts.push(`${jstr("workDoneToken")}:${encodeProgressToken(v.workDoneToken)}`);
870
+ if (v.release !== undefined && v.release !== "")
871
+ parts.push(`${jstr("release")}:${jstr(v.release)}`);
872
+ if (v.upgrade !== undefined && v.upgrade !== false)
873
+ parts.push(`${jstr("upgrade")}:${String(v.upgrade)}`);
874
+ if (v.targets !== undefined && v.targets.length > 0)
875
+ parts.push(`${jstr("targets")}:${`[${v.targets.map((e0) => jstr(e0)).join(",")}]`}`);
876
+ if (v.verify !== undefined && v.verify !== false)
877
+ parts.push(`${jstr("verify")}:${String(v.verify)}`);
878
+ if (v.pinSources !== undefined && v.pinSources !== null)
879
+ parts.push(`${jstr("pinSources")}:${String(v.pinSources)}`);
880
+ return `{${parts.join(",")}}`;
881
+ }
882
+ function decodeResolveDependenciesParams(data) {
883
+ return JSON.parse(data);
884
+ }
885
+ function encodePinParams(v) {
886
+ const parts = [];
887
+ parts.push(`${jstr("workspaceRoot")}:${encodeWorkspaceRootSubject(v.workspaceRoot)}`);
888
+ if (v.workDoneToken !== undefined)
889
+ parts.push(`${jstr("workDoneToken")}:${encodeProgressToken(v.workDoneToken)}`);
890
+ if (v.entity !== undefined && v.entity !== "")
891
+ parts.push(`${jstr("entity")}:${jstr(v.entity)}`);
892
+ if (v.dryRun !== undefined && v.dryRun !== false)
893
+ parts.push(`${jstr("dryRun")}:${String(v.dryRun)}`);
894
+ return `{${parts.join(",")}}`;
895
+ }
896
+ function decodePinParams(data) {
897
+ return JSON.parse(data);
898
+ }
899
+ function encodeCacheEvictParams(v) {
900
+ const parts = [];
901
+ parts.push(`${jstr("workspaceRoot")}:${encodeWorkspaceRootSubject(v.workspaceRoot)}`);
902
+ if (v.workDoneToken !== undefined)
903
+ parts.push(`${jstr("workDoneToken")}:${encodeProgressToken(v.workDoneToken)}`);
904
+ if (v.maxSize !== undefined && v.maxSize !== "")
905
+ parts.push(`${jstr("maxSize")}:${jstr(v.maxSize)}`);
906
+ return `{${parts.join(",")}}`;
907
+ }
908
+ function decodeCacheEvictParams(data) {
909
+ return JSON.parse(data);
910
+ }
911
+ function encodeSearchParams(v) {
912
+ const parts = [];
913
+ parts.push(`${jstr("workspaceRoot")}:${encodeWorkspaceRootSubject(v.workspaceRoot)}`);
914
+ if (v.workDoneToken !== undefined)
915
+ parts.push(`${jstr("workDoneToken")}:${encodeProgressToken(v.workDoneToken)}`);
916
+ if (v.query !== undefined && v.query !== "")
917
+ parts.push(`${jstr("query")}:${jstr(v.query)}`);
918
+ if (v.kinds !== undefined && v.kinds.length > 0)
919
+ parts.push(`${jstr("kinds")}:${`[${v.kinds.map((e0) => jstr(e0)).join(",")}]`}`);
920
+ if (v.selector !== undefined && v.selector !== "")
921
+ parts.push(`${jstr("selector")}:${jstr(v.selector)}`);
922
+ if (v.capabilities !== undefined && v.capabilities.length > 0)
923
+ parts.push(`${jstr("capabilities")}:${`[${v.capabilities.map((e0) => jstr(e0)).join(",")}]`}`);
924
+ if (v.pluginType !== undefined && v.pluginType !== "")
925
+ parts.push(`${jstr("pluginType")}:${jstr(v.pluginType)}`);
926
+ if (v.registry !== undefined && v.registry !== "")
927
+ parts.push(`${jstr("registry")}:${jstr(v.registry)}`);
928
+ if (v.limit !== undefined && v.limit !== 0)
929
+ parts.push(`${jstr("limit")}:${String(v.limit)}`);
930
+ if (v.includeRetracted !== undefined && v.includeRetracted !== false)
931
+ parts.push(`${jstr("includeRetracted")}:${String(v.includeRetracted)}`);
932
+ return `{${parts.join(",")}}`;
933
+ }
934
+ function decodeSearchParams(data) {
935
+ return JSON.parse(data);
936
+ }
937
+ function encodeRegistryAddParams(v) {
938
+ const parts = [];
939
+ parts.push(`${jstr("workspaceRoot")}:${encodeWorkspaceRootSubject(v.workspaceRoot)}`);
940
+ if (v.workDoneToken !== undefined)
941
+ parts.push(`${jstr("workDoneToken")}:${encodeProgressToken(v.workDoneToken)}`);
942
+ if (v.host !== undefined && v.host !== "")
943
+ parts.push(`${jstr("host")}:${jstr(v.host)}`);
944
+ if (v.name !== undefined && v.name !== "")
945
+ parts.push(`${jstr("name")}:${jstr(v.name)}`);
946
+ if (v.identities !== undefined && v.identities.length > 0)
947
+ parts.push(`${jstr("identities")}:${`[${v.identities.map((e0) => jstr(e0)).join(",")}]`}`);
948
+ if (v.keyPath !== undefined && v.keyPath !== "")
949
+ parts.push(`${jstr("keyPath")}:${jstr(v.keyPath)}`);
950
+ if (v.trustedRoot !== undefined && v.trustedRoot !== "")
951
+ parts.push(`${jstr("trustedRoot")}:${jstr(v.trustedRoot)}`);
952
+ if (v.requireSignatures !== undefined && v.requireSignatures !== false)
953
+ parts.push(`${jstr("requireSignatures")}:${String(v.requireSignatures)}`);
954
+ if (v.advisory !== undefined && v.advisory !== false)
955
+ parts.push(`${jstr("advisory")}:${String(v.advisory)}`);
956
+ if (v.fetchTrust !== undefined && v.fetchTrust !== false)
957
+ parts.push(`${jstr("fetchTrust")}:${String(v.fetchTrust)}`);
958
+ if (v.global !== undefined && v.global !== false)
959
+ parts.push(`${jstr("global")}:${String(v.global)}`);
960
+ if (v.workspace !== undefined && v.workspace !== false)
961
+ parts.push(`${jstr("workspace")}:${String(v.workspace)}`);
962
+ return `{${parts.join(",")}}`;
963
+ }
964
+ function decodeRegistryAddParams(data) {
965
+ return JSON.parse(data);
966
+ }
967
+ function encodeRegistryRemoveParams(v) {
968
+ const parts = [];
969
+ parts.push(`${jstr("workspaceRoot")}:${encodeWorkspaceRootSubject(v.workspaceRoot)}`);
970
+ if (v.workDoneToken !== undefined)
971
+ parts.push(`${jstr("workDoneToken")}:${encodeProgressToken(v.workDoneToken)}`);
972
+ if (v.registry !== undefined && v.registry !== "")
973
+ parts.push(`${jstr("registry")}:${jstr(v.registry)}`);
974
+ if (v.global !== undefined && v.global !== false)
975
+ parts.push(`${jstr("global")}:${String(v.global)}`);
976
+ if (v.workspace !== undefined && v.workspace !== false)
977
+ parts.push(`${jstr("workspace")}:${String(v.workspace)}`);
978
+ return `{${parts.join(",")}}`;
979
+ }
980
+ function decodeRegistryRemoveParams(data) {
981
+ return JSON.parse(data);
982
+ }
983
+ function encodeRegistryUpdateParams(v) {
984
+ const parts = [];
985
+ parts.push(`${jstr("workspaceRoot")}:${encodeWorkspaceRootSubject(v.workspaceRoot)}`);
986
+ if (v.workDoneToken !== undefined)
987
+ parts.push(`${jstr("workDoneToken")}:${encodeProgressToken(v.workDoneToken)}`);
988
+ if (v.registry !== undefined && v.registry !== "")
989
+ parts.push(`${jstr("registry")}:${jstr(v.registry)}`);
990
+ if (v.upgrade !== undefined && v.upgrade !== false)
991
+ parts.push(`${jstr("upgrade")}:${String(v.upgrade)}`);
992
+ return `{${parts.join(",")}}`;
993
+ }
994
+ function decodeRegistryUpdateParams(data) {
995
+ return JSON.parse(data);
996
+ }
997
+ function encodeLogoutParams(v) {
998
+ const parts = [];
999
+ parts.push(`${jstr("workspaceRoot")}:${encodeWorkspaceRootSubject(v.workspaceRoot)}`);
1000
+ if (v.workDoneToken !== undefined)
1001
+ parts.push(`${jstr("workDoneToken")}:${encodeProgressToken(v.workDoneToken)}`);
1002
+ if (v.registry !== undefined && v.registry !== "")
1003
+ parts.push(`${jstr("registry")}:${jstr(v.registry)}`);
1004
+ return `{${parts.join(",")}}`;
1005
+ }
1006
+ function decodeLogoutParams(data) {
1007
+ return JSON.parse(data);
1008
+ }
1009
+ function encodePublishEntityParams(v) {
1010
+ const parts = [];
1011
+ parts.push(`${jstr("workspaceRoot")}:${encodeWorkspaceRootSubject(v.workspaceRoot)}`);
1012
+ if (v.workDoneToken !== undefined)
1013
+ parts.push(`${jstr("workDoneToken")}:${encodeProgressToken(v.workDoneToken)}`);
1014
+ if (v.entity !== undefined && v.entity !== "")
1015
+ parts.push(`${jstr("entity")}:${jstr(v.entity)}`);
1016
+ if (v.registry !== undefined && v.registry !== "")
1017
+ parts.push(`${jstr("registry")}:${jstr(v.registry)}`);
1018
+ if (v.dryRun !== undefined && v.dryRun !== false)
1019
+ parts.push(`${jstr("dryRun")}:${String(v.dryRun)}`);
1020
+ if (v.sign !== undefined && v.sign !== false)
1021
+ parts.push(`${jstr("sign")}:${String(v.sign)}`);
1022
+ if (v.plugin !== undefined && v.plugin !== "")
1023
+ parts.push(`${jstr("plugin")}:${jstr(v.plugin)}`);
1024
+ if (v.fulcioUrl !== undefined && v.fulcioUrl !== "")
1025
+ parts.push(`${jstr("fulcioUrl")}:${jstr(v.fulcioUrl)}`);
1026
+ if (v.rekorUrl !== undefined && v.rekorUrl !== "")
1027
+ parts.push(`${jstr("rekorUrl")}:${jstr(v.rekorUrl)}`);
1028
+ if (v.timestampUrl !== undefined && v.timestampUrl !== "")
1029
+ parts.push(`${jstr("timestampUrl")}:${jstr(v.timestampUrl)}`);
1030
+ if (v.identityToken !== undefined && v.identityToken !== "")
1031
+ parts.push(`${jstr("identityToken")}:${jstr(v.identityToken)}`);
1032
+ if (v.pinSources !== undefined && v.pinSources !== null)
1033
+ parts.push(`${jstr("pinSources")}:${String(v.pinSources)}`);
1034
+ return `{${parts.join(",")}}`;
1035
+ }
1036
+ function decodePublishEntityParams(data) {
1037
+ return JSON.parse(data);
1038
+ }
1039
+ function encodePublishArtifactParams(v) {
1040
+ const parts = [];
1041
+ parts.push(`${jstr("workspaceRoot")}:${encodeWorkspaceRootSubject(v.workspaceRoot)}`);
1042
+ if (v.workDoneToken !== undefined)
1043
+ parts.push(`${jstr("workDoneToken")}:${encodeProgressToken(v.workDoneToken)}`);
1044
+ if (v.file !== undefined && v.file !== "")
1045
+ parts.push(`${jstr("file")}:${jstr(v.file)}`);
1046
+ if (v.name !== undefined && v.name !== "")
1047
+ parts.push(`${jstr("name")}:${jstr(v.name)}`);
1048
+ if (v.tag !== undefined && v.tag !== "")
1049
+ parts.push(`${jstr("tag")}:${jstr(v.tag)}`);
1050
+ if (v.mediaType !== undefined && v.mediaType !== "")
1051
+ parts.push(`${jstr("mediaType")}:${jstr(v.mediaType)}`);
1052
+ if (v.registry !== undefined && v.registry !== "")
1053
+ parts.push(`${jstr("registry")}:${jstr(v.registry)}`);
1054
+ if (v.dryRun !== undefined && v.dryRun !== false)
1055
+ parts.push(`${jstr("dryRun")}:${String(v.dryRun)}`);
1056
+ return `{${parts.join(",")}}`;
1057
+ }
1058
+ function decodePublishArtifactParams(data) {
1059
+ return JSON.parse(data);
1060
+ }
1061
+ function encodeSignArtifactsParams(v) {
1062
+ const parts = [];
1063
+ parts.push(`${jstr("workspaceRoot")}:${encodeWorkspaceRootSubject(v.workspaceRoot)}`);
1064
+ if (v.workDoneToken !== undefined)
1065
+ parts.push(`${jstr("workDoneToken")}:${encodeProgressToken(v.workDoneToken)}`);
1066
+ if (v.references !== undefined && v.references.length > 0)
1067
+ parts.push(`${jstr("references")}:${`[${v.references.map((e0) => jstr(e0)).join(",")}]`}`);
1068
+ if (v.fulcioUrl !== undefined && v.fulcioUrl !== "")
1069
+ parts.push(`${jstr("fulcioUrl")}:${jstr(v.fulcioUrl)}`);
1070
+ if (v.rekorUrl !== undefined && v.rekorUrl !== "")
1071
+ parts.push(`${jstr("rekorUrl")}:${jstr(v.rekorUrl)}`);
1072
+ if (v.timestampUrl !== undefined && v.timestampUrl !== "")
1073
+ parts.push(`${jstr("timestampUrl")}:${jstr(v.timestampUrl)}`);
1074
+ if (v.identityToken !== undefined && v.identityToken !== "")
1075
+ parts.push(`${jstr("identityToken")}:${jstr(v.identityToken)}`);
1076
+ if (v.jobs !== undefined && v.jobs !== 0)
1077
+ parts.push(`${jstr("jobs")}:${String(v.jobs)}`);
1078
+ return `{${parts.join(",")}}`;
1079
+ }
1080
+ function decodeSignArtifactsParams(data) {
1081
+ return JSON.parse(data);
1082
+ }
1083
+ function encodeDeprecateArtifactParams(v) {
1084
+ const parts = [];
1085
+ parts.push(`${jstr("workspaceRoot")}:${encodeWorkspaceRootSubject(v.workspaceRoot)}`);
1086
+ if (v.workDoneToken !== undefined)
1087
+ parts.push(`${jstr("workDoneToken")}:${encodeProgressToken(v.workDoneToken)}`);
1088
+ if (v.reference !== undefined && v.reference !== "")
1089
+ parts.push(`${jstr("reference")}:${jstr(v.reference)}`);
1090
+ if (v.severity !== undefined && v.severity !== "")
1091
+ parts.push(`${jstr("severity")}:${jstr(v.severity)}`);
1092
+ if (v.reason !== undefined && v.reason !== "")
1093
+ parts.push(`${jstr("reason")}:${jstr(v.reason)}`);
1094
+ if (v.replacement !== undefined && v.replacement !== "")
1095
+ parts.push(`${jstr("replacement")}:${jstr(v.replacement)}`);
1096
+ if (v.message !== undefined && v.message !== "")
1097
+ parts.push(`${jstr("message")}:${jstr(v.message)}`);
1098
+ if (v.from !== undefined && v.from !== "")
1099
+ parts.push(`${jstr("from")}:${jstr(v.from)}`);
1100
+ if (v.fulcioUrl !== undefined && v.fulcioUrl !== "")
1101
+ parts.push(`${jstr("fulcioUrl")}:${jstr(v.fulcioUrl)}`);
1102
+ if (v.rekorUrl !== undefined && v.rekorUrl !== "")
1103
+ parts.push(`${jstr("rekorUrl")}:${jstr(v.rekorUrl)}`);
1104
+ if (v.timestampUrl !== undefined && v.timestampUrl !== "")
1105
+ parts.push(`${jstr("timestampUrl")}:${jstr(v.timestampUrl)}`);
1106
+ if (v.identityToken !== undefined && v.identityToken !== "")
1107
+ parts.push(`${jstr("identityToken")}:${jstr(v.identityToken)}`);
1108
+ return `{${parts.join(",")}}`;
1109
+ }
1110
+ function decodeDeprecateArtifactParams(data) {
1111
+ return JSON.parse(data);
1112
+ }
1113
+ function encodeResolveParams(v) {
1114
+ const parts = [];
1115
+ parts.push(`${jstr("workspaceRoot")}:${encodeWorkspaceRootSubject(v.workspaceRoot)}`);
1116
+ if (v.workDoneToken !== undefined)
1117
+ parts.push(`${jstr("workDoneToken")}:${encodeProgressToken(v.workDoneToken)}`);
1118
+ if (v.uri !== undefined && v.uri !== "")
1119
+ parts.push(`${jstr("uri")}:${jstr(v.uri)}`);
1120
+ if (v.position !== undefined)
1121
+ parts.push(`${jstr("position")}:${encodePosition(v.position)}`);
1122
+ if (v.release !== undefined && v.release !== "")
1123
+ parts.push(`${jstr("release")}:${jstr(v.release)}`);
1124
+ return `{${parts.join(",")}}`;
1125
+ }
1126
+ function decodeResolveParams(data) {
1127
+ return JSON.parse(data);
1128
+ }
1129
+ function encodeFindReferencesParams(v) {
1130
+ const parts = [];
1131
+ parts.push(`${jstr("workspaceRoot")}:${encodeWorkspaceRootSubject(v.workspaceRoot)}`);
1132
+ if (v.workDoneToken !== undefined)
1133
+ parts.push(`${jstr("workDoneToken")}:${encodeProgressToken(v.workDoneToken)}`);
1134
+ if (v.uri !== undefined && v.uri !== "")
1135
+ parts.push(`${jstr("uri")}:${jstr(v.uri)}`);
1136
+ if (v.position !== undefined)
1137
+ parts.push(`${jstr("position")}:${encodePosition(v.position)}`);
1138
+ if (v.release !== undefined && v.release !== "")
1139
+ parts.push(`${jstr("release")}:${jstr(v.release)}`);
1140
+ return `{${parts.join(",")}}`;
1141
+ }
1142
+ function decodeFindReferencesParams(data) {
1143
+ return JSON.parse(data);
1144
+ }
1145
+ function encodeFindImplementationsParams(v) {
1146
+ const parts = [];
1147
+ parts.push(`${jstr("workspaceRoot")}:${encodeWorkspaceRootSubject(v.workspaceRoot)}`);
1148
+ if (v.workDoneToken !== undefined)
1149
+ parts.push(`${jstr("workDoneToken")}:${encodeProgressToken(v.workDoneToken)}`);
1150
+ if (v.uri !== undefined && v.uri !== "")
1151
+ parts.push(`${jstr("uri")}:${jstr(v.uri)}`);
1152
+ if (v.position !== undefined)
1153
+ parts.push(`${jstr("position")}:${encodePosition(v.position)}`);
1154
+ if (v.release !== undefined && v.release !== "")
1155
+ parts.push(`${jstr("release")}:${jstr(v.release)}`);
1156
+ return `{${parts.join(",")}}`;
1157
+ }
1158
+ function decodeFindImplementationsParams(data) {
1159
+ return JSON.parse(data);
1160
+ }
1161
+ function encodeHoverParams(v) {
1162
+ const parts = [];
1163
+ parts.push(`${jstr("workspaceRoot")}:${encodeWorkspaceRootSubject(v.workspaceRoot)}`);
1164
+ if (v.workDoneToken !== undefined)
1165
+ parts.push(`${jstr("workDoneToken")}:${encodeProgressToken(v.workDoneToken)}`);
1166
+ if (v.uri !== undefined && v.uri !== "")
1167
+ parts.push(`${jstr("uri")}:${jstr(v.uri)}`);
1168
+ if (v.position !== undefined)
1169
+ parts.push(`${jstr("position")}:${encodePosition(v.position)}`);
1170
+ if (v.release !== undefined && v.release !== "")
1171
+ parts.push(`${jstr("release")}:${jstr(v.release)}`);
1172
+ return `{${parts.join(",")}}`;
1173
+ }
1174
+ function decodeHoverParams(data) {
1175
+ return JSON.parse(data);
1176
+ }
1177
+ function encodeCompletionParams(v) {
1178
+ const parts = [];
1179
+ parts.push(`${jstr("workspaceRoot")}:${encodeWorkspaceRootSubject(v.workspaceRoot)}`);
1180
+ if (v.workDoneToken !== undefined)
1181
+ parts.push(`${jstr("workDoneToken")}:${encodeProgressToken(v.workDoneToken)}`);
1182
+ if (v.uri !== undefined && v.uri !== "")
1183
+ parts.push(`${jstr("uri")}:${jstr(v.uri)}`);
1184
+ if (v.position !== undefined)
1185
+ parts.push(`${jstr("position")}:${encodePosition(v.position)}`);
1186
+ if (v.context !== undefined)
1187
+ parts.push(`${jstr("context")}:${encodeCompletionContext(v.context)}`);
1188
+ if (v.release !== undefined && v.release !== "")
1189
+ parts.push(`${jstr("release")}:${jstr(v.release)}`);
1190
+ return `{${parts.join(",")}}`;
1191
+ }
1192
+ function decodeCompletionParams(data) {
1193
+ return JSON.parse(data);
1194
+ }
1195
+ function encodeCompletionContext(v) {
1196
+ const parts = [];
1197
+ if (v.triggerKind !== undefined && v.triggerKind !== 0)
1198
+ parts.push(`${jstr("triggerKind")}:${String(v.triggerKind)}`);
1199
+ if (v.triggerCharacter !== undefined && v.triggerCharacter !== "")
1200
+ parts.push(`${jstr("triggerCharacter")}:${jstr(v.triggerCharacter)}`);
1201
+ return `{${parts.join(",")}}`;
1202
+ }
1203
+ function decodeCompletionContext(data) {
1204
+ return JSON.parse(data);
1205
+ }
1206
+ function encodeAttachCandidatesParams(v) {
1207
+ const parts = [];
1208
+ parts.push(`${jstr("workspaceRoot")}:${encodeWorkspaceRootSubject(v.workspaceRoot)}`);
1209
+ if (v.workDoneToken !== undefined)
1210
+ parts.push(`${jstr("workDoneToken")}:${encodeProgressToken(v.workDoneToken)}`);
1211
+ if (v.node !== undefined && v.node !== "")
1212
+ parts.push(`${jstr("node")}:${jstr(v.node)}`);
1213
+ if (v.graphNode !== undefined && v.graphNode !== "")
1214
+ parts.push(`${jstr("graphNode")}:${jstr(v.graphNode)}`);
1215
+ if (v.release !== undefined && v.release !== "")
1216
+ parts.push(`${jstr("release")}:${jstr(v.release)}`);
1217
+ if (v.labels !== undefined && Object.keys(v.labels).length > 0)
1218
+ parts.push(`${jstr("labels")}:${`{${Object.keys(v.labels).sort().map((k0) => `${jstr(k0)}:${jstr(v.labels[k0])}`).join(",")}}`}`);
1219
+ if (v.connection !== undefined)
1220
+ parts.push(`${jstr("connection")}:${encodeConnectionCoordinate(v.connection)}`);
1221
+ return `{${parts.join(",")}}`;
1222
+ }
1223
+ function decodeAttachCandidatesParams(data) {
1224
+ return JSON.parse(data);
1225
+ }
1226
+ function encodeConnectionCandidatesParams(v) {
1227
+ const parts = [];
1228
+ parts.push(`${jstr("workspaceRoot")}:${encodeWorkspaceRootSubject(v.workspaceRoot)}`);
1229
+ if (v.workDoneToken !== undefined)
1230
+ parts.push(`${jstr("workDoneToken")}:${encodeProgressToken(v.workDoneToken)}`);
1231
+ if (v.node !== undefined && v.node !== "")
1232
+ parts.push(`${jstr("node")}:${jstr(v.node)}`);
1233
+ if (v.socket !== undefined && v.socket !== "")
1234
+ parts.push(`${jstr("socket")}:${jstr(v.socket)}`);
1235
+ return `{${parts.join(",")}}`;
1236
+ }
1237
+ function decodeConnectionCandidatesParams(data) {
1238
+ return JSON.parse(data);
1239
+ }
1240
+ function encodeInsertionPointParams(v) {
1241
+ const parts = [];
1242
+ parts.push(`${jstr("workspaceRoot")}:${encodeWorkspaceRootSubject(v.workspaceRoot)}`);
1243
+ if (v.workDoneToken !== undefined)
1244
+ parts.push(`${jstr("workDoneToken")}:${encodeProgressToken(v.workDoneToken)}`);
1245
+ if (v.file !== undefined && v.file !== "")
1246
+ parts.push(`${jstr("file")}:${jstr(v.file)}`);
1247
+ if (v.container !== undefined && v.container.length > 0)
1248
+ parts.push(`${jstr("container")}:${`[${v.container.map((e0) => jstr(e0)).join(",")}]`}`);
1249
+ return `{${parts.join(",")}}`;
1250
+ }
1251
+ function decodeInsertionPointParams(data) {
1252
+ return JSON.parse(data);
1253
+ }
1254
+ function encodeAttachmentContainerParams(v) {
1255
+ const parts = [];
1256
+ parts.push(`${jstr("workspaceRoot")}:${encodeWorkspaceRootSubject(v.workspaceRoot)}`);
1257
+ if (v.workDoneToken !== undefined)
1258
+ parts.push(`${jstr("workDoneToken")}:${encodeProgressToken(v.workDoneToken)}`);
1259
+ if (v.graphNode !== undefined && v.graphNode !== "")
1260
+ parts.push(`${jstr("graphNode")}:${jstr(v.graphNode)}`);
1261
+ if (v.release !== undefined && v.release !== "")
1262
+ parts.push(`${jstr("release")}:${jstr(v.release)}`);
1263
+ if (v.connection !== undefined)
1264
+ parts.push(`${jstr("connection")}:${encodeConnectionCoordinate(v.connection)}`);
1265
+ return `{${parts.join(",")}}`;
1266
+ }
1267
+ function decodeAttachmentContainerParams(data) {
1268
+ return JSON.parse(data);
1269
+ }
1270
+ function encodeConnectionAtPositionParams(v) {
1271
+ const parts = [];
1272
+ parts.push(`${jstr("workspaceRoot")}:${encodeWorkspaceRootSubject(v.workspaceRoot)}`);
1273
+ if (v.workDoneToken !== undefined)
1274
+ parts.push(`${jstr("workDoneToken")}:${encodeProgressToken(v.workDoneToken)}`);
1275
+ if (v.file !== undefined && v.file !== "")
1276
+ parts.push(`${jstr("file")}:${jstr(v.file)}`);
1277
+ if (v.position !== undefined)
1278
+ parts.push(`${jstr("position")}:${encodePosition(v.position)}`);
1279
+ if (v.release !== undefined && v.release !== "")
1280
+ parts.push(`${jstr("release")}:${jstr(v.release)}`);
1281
+ return `{${parts.join(",")}}`;
1282
+ }
1283
+ function decodeConnectionAtPositionParams(data) {
1284
+ return JSON.parse(data);
1285
+ }
1286
+ function encodeConnectionCoordinate(v) {
1287
+ const parts = [];
1288
+ parts.push(`${jstr("socket")}:${jstr(v.socket)}`);
1289
+ parts.push(`${jstr("alias")}:${jstr(v.alias)}`);
1290
+ if (v.document !== undefined && v.document !== "")
1291
+ parts.push(`${jstr("document")}:${jstr(v.document)}`);
1292
+ return `{${parts.join(",")}}`;
1293
+ }
1294
+ function decodeConnectionCoordinate(data) {
1295
+ return JSON.parse(data);
1296
+ }
1297
+ function encodeSetActiveReleaseParams(v) {
1298
+ const parts = [];
1299
+ parts.push(`${jstr("workspaceRoot")}:${encodeWorkspaceRootSubject(v.workspaceRoot)}`);
1300
+ if (v.workDoneToken !== undefined)
1301
+ parts.push(`${jstr("workDoneToken")}:${encodeProgressToken(v.workDoneToken)}`);
1302
+ if (v.release !== undefined && v.release !== "")
1303
+ parts.push(`${jstr("release")}:${jstr(v.release)}`);
1304
+ return `{${parts.join(",")}}`;
1305
+ }
1306
+ function decodeSetActiveReleaseParams(data) {
1307
+ return JSON.parse(data);
1308
+ }
1309
+ function encodeEditDocumentParams(v) {
1310
+ const parts = [];
1311
+ parts.push(`${jstr("workspaceRoot")}:${encodeWorkspaceRootSubject(v.workspaceRoot)}`);
1312
+ if (v.workDoneToken !== undefined)
1313
+ parts.push(`${jstr("workDoneToken")}:${encodeProgressToken(v.workDoneToken)}`);
1314
+ if (v.file !== undefined && v.file !== "")
1315
+ parts.push(`${jstr("file")}:${jstr(v.file)}`);
1316
+ if (v.edit !== undefined && v.edit !== "")
1317
+ parts.push(`${jstr("edit")}:${jstr(v.edit)}`);
1318
+ if (v.node !== undefined && v.node.length > 0)
1319
+ parts.push(`${jstr("node")}:${`[${v.node.map((e0) => jstr(e0)).join(",")}]`}`);
1320
+ if (v.socket !== undefined && v.socket !== "")
1321
+ parts.push(`${jstr("socket")}:${jstr(v.socket)}`);
1322
+ if (v.name !== undefined && v.name !== "")
1323
+ parts.push(`${jstr("name")}:${jstr(v.name)}`);
1324
+ if (v.value !== undefined && v.value !== null)
1325
+ parts.push(`${jstr("value")}:${encodeOpaque(v.value)}`);
1326
+ if (v.dryRun !== undefined && v.dryRun !== false)
1327
+ parts.push(`${jstr("dryRun")}:${String(v.dryRun)}`);
1328
+ return `{${parts.join(",")}}`;
1329
+ }
1330
+ function decodeEditDocumentParams(data) {
1331
+ return JSON.parse(data);
1332
+ }
1333
+ function encodeConfigInitParams(v) {
1334
+ const parts = [];
1335
+ parts.push(`${jstr("workspaceRoot")}:${encodeWorkspaceRootSubject(v.workspaceRoot)}`);
1336
+ if (v.workDoneToken !== undefined)
1337
+ parts.push(`${jstr("workDoneToken")}:${encodeProgressToken(v.workDoneToken)}`);
1338
+ if (v.registry !== undefined && v.registry !== "")
1339
+ parts.push(`${jstr("registry")}:${jstr(v.registry)}`);
1340
+ if (v.force !== undefined && v.force !== false)
1341
+ parts.push(`${jstr("force")}:${String(v.force)}`);
1342
+ if (v.global !== undefined && v.global !== false)
1343
+ parts.push(`${jstr("global")}:${String(v.global)}`);
1344
+ if (v.workspace !== undefined && v.workspace !== false)
1345
+ parts.push(`${jstr("workspace")}:${String(v.workspace)}`);
1346
+ if (v.dryRun !== undefined && v.dryRun !== false)
1347
+ parts.push(`${jstr("dryRun")}:${String(v.dryRun)}`);
1348
+ return `{${parts.join(",")}}`;
1349
+ }
1350
+ function decodeConfigInitParams(data) {
1351
+ return JSON.parse(data);
1352
+ }
1353
+ function encodeConfigCaptureParams(v) {
1354
+ const parts = [];
1355
+ parts.push(`${jstr("workspaceRoot")}:${encodeWorkspaceRootSubject(v.workspaceRoot)}`);
1356
+ if (v.workDoneToken !== undefined)
1357
+ parts.push(`${jstr("workDoneToken")}:${encodeProgressToken(v.workDoneToken)}`);
1358
+ if (v.allPlugins !== undefined && v.allPlugins !== false)
1359
+ parts.push(`${jstr("allPlugins")}:${String(v.allPlugins)}`);
1360
+ return `{${parts.join(",")}}`;
1361
+ }
1362
+ function decodeConfigCaptureParams(data) {
1363
+ return JSON.parse(data);
1364
+ }
1365
+ function encodeImportParams(v) {
1366
+ const parts = [];
1367
+ parts.push(`${jstr("workspaceRoot")}:${encodeWorkspaceRootSubject(v.workspaceRoot)}`);
1368
+ if (v.workDoneToken !== undefined)
1369
+ parts.push(`${jstr("workDoneToken")}:${encodeProgressToken(v.workDoneToken)}`);
1370
+ if (v.source !== undefined && v.source !== "")
1371
+ parts.push(`${jstr("source")}:${jstr(v.source)}`);
1372
+ if (v.outputDir !== undefined && v.outputDir !== "")
1373
+ parts.push(`${jstr("outputDir")}:${jstr(v.outputDir)}`);
1374
+ if (v.format !== undefined && v.format !== "")
1375
+ parts.push(`${jstr("format")}:${jstr(v.format)}`);
1376
+ if (v.target !== undefined && v.target !== "")
1377
+ parts.push(`${jstr("target")}:${jstr(v.target)}`);
1378
+ if (v.dryRun !== undefined && v.dryRun !== false)
1379
+ parts.push(`${jstr("dryRun")}:${String(v.dryRun)}`);
1380
+ if (v.sync !== undefined && v.sync !== false)
1381
+ parts.push(`${jstr("sync")}:${String(v.sync)}`);
1382
+ if (v.upgrade !== undefined && v.upgrade !== false)
1383
+ parts.push(`${jstr("upgrade")}:${String(v.upgrade)}`);
1384
+ if (v.answers !== undefined && v.answers !== "")
1385
+ parts.push(`${jstr("answers")}:${jstr(v.answers)}`);
1386
+ if (v.answered !== undefined && v.answered.length > 0)
1387
+ parts.push(`${jstr("answered")}:${`[${v.answered.map((e0) => encodeImportAnswered(e0)).join(",")}]`}`);
1388
+ return `{${parts.join(",")}}`;
1389
+ }
1390
+ function decodeImportParams(data) {
1391
+ return JSON.parse(data);
1392
+ }
1393
+ function encodeScaffoldEntityParams(v) {
1394
+ const parts = [];
1395
+ if (v.workspaceRoot !== undefined && v.workspaceRoot !== "")
1396
+ parts.push(`${jstr("workspaceRoot")}:${jstr(v.workspaceRoot)}`);
1397
+ if (v.workDoneToken !== undefined)
1398
+ parts.push(`${jstr("workDoneToken")}:${encodeProgressToken(v.workDoneToken)}`);
1399
+ if (v.kind !== undefined && v.kind !== "")
1400
+ parts.push(`${jstr("kind")}:${jstr(v.kind)}`);
1401
+ if (v.name !== undefined && v.name !== "")
1402
+ parts.push(`${jstr("name")}:${jstr(v.name)}`);
1403
+ if (v.example !== undefined && v.example !== "")
1404
+ parts.push(`${jstr("example")}:${jstr(v.example)}`);
1405
+ if (v.list !== undefined && v.list !== false)
1406
+ parts.push(`${jstr("list")}:${String(v.list)}`);
1407
+ if (v.dir !== undefined && v.dir !== "")
1408
+ parts.push(`${jstr("dir")}:${jstr(v.dir)}`);
1409
+ return `{${parts.join(",")}}`;
1410
+ }
1411
+ function decodeScaffoldEntityParams(data) {
1412
+ return JSON.parse(data);
1413
+ }
1414
+ function encodeLintParams(v) {
1415
+ const parts = [];
1416
+ parts.push(`${jstr("workspaceRoot")}:${encodeWorkspaceRootSubject(v.workspaceRoot)}`);
1417
+ if (v.workDoneToken !== undefined)
1418
+ parts.push(`${jstr("workDoneToken")}:${encodeProgressToken(v.workDoneToken)}`);
1419
+ if (v.entity !== undefined && v.entity !== "")
1420
+ parts.push(`${jstr("entity")}:${jstr(v.entity)}`);
1421
+ if (v.release !== undefined && v.release !== "")
1422
+ parts.push(`${jstr("release")}:${jstr(v.release)}`);
1423
+ if (v.prePublish !== undefined && v.prePublish !== false)
1424
+ parts.push(`${jstr("prePublish")}:${String(v.prePublish)}`);
1425
+ return `{${parts.join(",")}}`;
1426
+ }
1427
+ function decodeLintParams(data) {
1428
+ return JSON.parse(data);
1429
+ }
1430
+ function encodePluginAddParams(v) {
1431
+ const parts = [];
1432
+ parts.push(`${jstr("workspaceRoot")}:${encodeWorkspaceRootSubject(v.workspaceRoot)}`);
1433
+ if (v.workDoneToken !== undefined)
1434
+ parts.push(`${jstr("workDoneToken")}:${encodeProgressToken(v.workDoneToken)}`);
1435
+ if (v.type !== undefined && v.type !== "")
1436
+ parts.push(`${jstr("type")}:${jstr(v.type)}`);
1437
+ if (v.query !== undefined && v.query !== "")
1438
+ parts.push(`${jstr("query")}:${jstr(v.query)}`);
1439
+ if (v.capability !== undefined && v.capability !== "")
1440
+ parts.push(`${jstr("capability")}:${jstr(v.capability)}`);
1441
+ if (v.role !== undefined && v.role !== "")
1442
+ parts.push(`${jstr("role")}:${jstr(v.role)}`);
1443
+ if (v.global !== undefined && v.global !== false)
1444
+ parts.push(`${jstr("global")}:${String(v.global)}`);
1445
+ if (v.workspace !== undefined && v.workspace !== false)
1446
+ parts.push(`${jstr("workspace")}:${String(v.workspace)}`);
1447
+ if (v.acceptCapabilities !== undefined && v.acceptCapabilities !== false)
1448
+ parts.push(`${jstr("acceptCapabilities")}:${String(v.acceptCapabilities)}`);
1449
+ if (v.dryRun !== undefined && v.dryRun !== false)
1450
+ parts.push(`${jstr("dryRun")}:${String(v.dryRun)}`);
1451
+ return `{${parts.join(",")}}`;
1452
+ }
1453
+ function decodePluginAddParams(data) {
1454
+ return JSON.parse(data);
1455
+ }
1456
+ function encodePluginRemoveParams(v) {
1457
+ const parts = [];
1458
+ parts.push(`${jstr("workspaceRoot")}:${encodeWorkspaceRootSubject(v.workspaceRoot)}`);
1459
+ if (v.workDoneToken !== undefined)
1460
+ parts.push(`${jstr("workDoneToken")}:${encodeProgressToken(v.workDoneToken)}`);
1461
+ if (v.type !== undefined && v.type !== "")
1462
+ parts.push(`${jstr("type")}:${jstr(v.type)}`);
1463
+ if (v.query !== undefined && v.query !== "")
1464
+ parts.push(`${jstr("query")}:${jstr(v.query)}`);
1465
+ if (v.global !== undefined && v.global !== false)
1466
+ parts.push(`${jstr("global")}:${String(v.global)}`);
1467
+ if (v.workspace !== undefined && v.workspace !== false)
1468
+ parts.push(`${jstr("workspace")}:${String(v.workspace)}`);
1469
+ return `{${parts.join(",")}}`;
1470
+ }
1471
+ function decodePluginRemoveParams(data) {
1472
+ return JSON.parse(data);
1473
+ }
1474
+ function encodePluginSyncParams(v) {
1475
+ const parts = [];
1476
+ parts.push(`${jstr("workspaceRoot")}:${encodeWorkspaceRootSubject(v.workspaceRoot)}`);
1477
+ if (v.workDoneToken !== undefined)
1478
+ parts.push(`${jstr("workDoneToken")}:${encodeProgressToken(v.workDoneToken)}`);
1479
+ if (v.entity !== undefined && v.entity !== "")
1480
+ parts.push(`${jstr("entity")}:${jstr(v.entity)}`);
1481
+ if (v.plugin !== undefined && v.plugin !== "")
1482
+ parts.push(`${jstr("plugin")}:${jstr(v.plugin)}`);
1483
+ return `{${parts.join(",")}}`;
1484
+ }
1485
+ function decodePluginSyncParams(data) {
1486
+ return JSON.parse(data);
1487
+ }
1488
+ function encodePluginGenCatalogParams(v) {
1489
+ const parts = [];
1490
+ parts.push(`${jstr("workspaceRoot")}:${encodeWorkspaceRootSubject(v.workspaceRoot)}`);
1491
+ if (v.workDoneToken !== undefined)
1492
+ parts.push(`${jstr("workDoneToken")}:${encodeProgressToken(v.workDoneToken)}`);
1493
+ if (v.fromEmbedded !== undefined && v.fromEmbedded !== false)
1494
+ parts.push(`${jstr("fromEmbedded")}:${String(v.fromEmbedded)}`);
1495
+ if (v.plugin !== undefined && v.plugin !== "")
1496
+ parts.push(`${jstr("plugin")}:${jstr(v.plugin)}`);
1497
+ if (v.outputDir !== undefined && v.outputDir !== "")
1498
+ parts.push(`${jstr("outputDir")}:${jstr(v.outputDir)}`);
1499
+ if (v.overlay !== undefined && v.overlay !== "")
1500
+ parts.push(`${jstr("overlay")}:${jstr(v.overlay)}`);
1501
+ if (v.dryRun !== undefined && v.dryRun !== false)
1502
+ parts.push(`${jstr("dryRun")}:${String(v.dryRun)}`);
1503
+ return `{${parts.join(",")}}`;
1504
+ }
1505
+ function decodePluginGenCatalogParams(data) {
1506
+ return JSON.parse(data);
1507
+ }
1508
+ function encodeExplainErrorParams(v) {
1509
+ const parts = [];
1510
+ parts.push(`${jstr("workspaceRoot")}:${encodeWorkspaceRootSubject(v.workspaceRoot)}`);
1511
+ if (v.workDoneToken !== undefined)
1512
+ parts.push(`${jstr("workDoneToken")}:${encodeProgressToken(v.workDoneToken)}`);
1513
+ if (v.code !== undefined && v.code !== "")
1514
+ parts.push(`${jstr("code")}:${jstr(v.code)}`);
1515
+ return `{${parts.join(",")}}`;
1516
+ }
1517
+ function decodeExplainErrorParams(data) {
1518
+ return JSON.parse(data);
1519
+ }
1520
+ function encodeGetSchemaParams(v) {
1521
+ const parts = [];
1522
+ if (v.workspaceRoot !== undefined)
1523
+ parts.push(`${jstr("workspaceRoot")}:${encodeWorkspaceRootAccepted(v.workspaceRoot)}`);
1524
+ if (v.workDoneToken !== undefined)
1525
+ parts.push(`${jstr("workDoneToken")}:${encodeProgressToken(v.workDoneToken)}`);
1526
+ if (v.kind !== undefined && v.kind !== "")
1527
+ parts.push(`${jstr("kind")}:${jstr(v.kind)}`);
1528
+ return `{${parts.join(",")}}`;
1529
+ }
1530
+ function decodeGetSchemaParams(data) {
1531
+ return JSON.parse(data);
1532
+ }
1533
+ function encodeSkillsInstallParams(v) {
1534
+ const parts = [];
1535
+ parts.push(`${jstr("workspaceRoot")}:${encodeWorkspaceRootSubject(v.workspaceRoot)}`);
1536
+ if (v.workDoneToken !== undefined)
1537
+ parts.push(`${jstr("workDoneToken")}:${encodeProgressToken(v.workDoneToken)}`);
1538
+ if (v.agents !== undefined && v.agents.length > 0)
1539
+ parts.push(`${jstr("agents")}:${`[${v.agents.map((e0) => jstr(e0)).join(",")}]`}`);
1540
+ if (v.global !== undefined && v.global !== false)
1541
+ parts.push(`${jstr("global")}:${String(v.global)}`);
1542
+ return `{${parts.join(",")}}`;
1543
+ }
1544
+ function decodeSkillsInstallParams(data) {
1545
+ return JSON.parse(data);
1546
+ }
1547
+ function encodeServerCapabilities(v) {
1548
+ const parts = [];
1549
+ parts.push(`${jstr("positionEncoding")}:${jstr(v.positionEncoding)}`);
1550
+ if (v.workDoneProgress !== undefined && v.workDoneProgress !== false)
1551
+ parts.push(`${jstr("workDoneProgress")}:${String(v.workDoneProgress)}`);
1552
+ return `{${parts.join(",")}}`;
1553
+ }
1554
+ function decodeServerCapabilities(data) {
1555
+ return JSON.parse(data);
1556
+ }
1557
+ function encodeClosureEntity(v) {
1558
+ const parts = [];
1559
+ parts.push(`${jstr("uri")}:${jstr(v.uri)}`);
1560
+ parts.push(`${jstr("version")}:${jstr(v.version)}`);
1561
+ if (v.kind !== undefined && v.kind !== "")
1562
+ parts.push(`${jstr("kind")}:${jstr(v.kind)}`);
1563
+ if (v.source !== undefined && v.source !== "")
1564
+ parts.push(`${jstr("source")}:${jstr(v.source)}`);
1565
+ return `{${parts.join(",")}}`;
1566
+ }
1567
+ function decodeClosureEntity(data) {
1568
+ return JSON.parse(data);
1569
+ }
1570
+ function encodeToolchainCorePlugin(v) {
1571
+ const parts = [];
1572
+ parts.push(`${jstr("plugin")}:${jstr(v.plugin)}`);
1573
+ parts.push(`${jstr("version")}:${jstr(v.version)}`);
1574
+ return `{${parts.join(",")}}`;
1575
+ }
1576
+ function decodeToolchainCorePlugin(data) {
1577
+ return JSON.parse(data);
1578
+ }
1579
+ function encodeToolchainReport(v) {
1580
+ const parts = [];
1581
+ parts.push(`${jstr("compilerVersion")}:${jstr(v.compilerVersion)}`);
1582
+ if (v.corePlugins !== undefined && v.corePlugins.length > 0)
1583
+ parts.push(`${jstr("corePlugins")}:${`[${v.corePlugins.map((e0) => encodeToolchainCorePlugin(e0)).join(",")}]`}`);
1584
+ return `{${parts.join(",")}}`;
1585
+ }
1586
+ function decodeToolchainReport(data) {
1587
+ return JSON.parse(data);
1588
+ }
1589
+ function encodeDependencyResolutionReport(v) {
1590
+ const parts = [];
1591
+ parts.push(`${jstr("lockfile")}:${jstr(v.lockfile)}`);
1592
+ if (v.verified !== undefined && v.verified !== false)
1593
+ parts.push(`${jstr("verified")}:${String(v.verified)}`);
1594
+ parts.push(`${jstr("entities")}:${v.entities === null ? "null" : `[${v.entities.map((e0) => encodeClosureEntity(e0)).join(",")}]`}`);
1595
+ parts.push(`${jstr("libraries")}:${v.libraries === null ? "null" : `[${v.libraries.map((e0) => encodeClosureEntity(e0)).join(",")}]`}`);
1596
+ parts.push(`${jstr("plugins")}:${v.plugins === null ? "null" : `[${v.plugins.map((e0) => encodeClosureEntity(e0)).join(",")}]`}`);
1597
+ parts.push(`${jstr("sourceArtifacts")}:${String(v.sourceArtifacts)}`);
1598
+ parts.push(`${jstr("trustedPlugins")}:${String(v.trustedPlugins)}`);
1599
+ if (v.toolchain !== undefined)
1600
+ parts.push(`${jstr("toolchain")}:${encodeToolchainReport(v.toolchain)}`);
1601
+ parts.push(`${jstr("externalInputs")}:${String(v.externalInputs)}`);
1602
+ if (v.incompleteExternalInputs !== undefined && v.incompleteExternalInputs !== "")
1603
+ parts.push(`${jstr("incompleteExternalInputs")}:${jstr(v.incompleteExternalInputs)}`);
1604
+ return `{${parts.join(",")}}`;
1605
+ }
1606
+ function decodeDependencyResolutionReport(data) {
1607
+ return JSON.parse(data);
1608
+ }
1609
+ function encodeBuildNotice(v) {
1610
+ const parts = [];
1611
+ parts.push(`${jstr("class")}:${jstr(v.class)}`);
1612
+ parts.push(`${jstr("text")}:${jstr(v.text)}`);
1613
+ return `{${parts.join(",")}}`;
1614
+ }
1615
+ function decodeBuildNotice(data) {
1616
+ return JSON.parse(data);
1617
+ }
1618
+ function encodeCacheScope(v) {
1619
+ const parts = [];
1620
+ parts.push(`${jstr("machineWideClasses")}:${v.machineWideClasses === null ? "null" : `[${v.machineWideClasses.map((e0) => jstr(e0)).join(",")}]`}`);
1621
+ parts.push(`${jstr("workspaceRoot")}:${jstr(v.workspaceRoot)}`);
1622
+ return `{${parts.join(",")}}`;
1623
+ }
1624
+ function decodeCacheScope(data) {
1625
+ return JSON.parse(data);
1626
+ }
1627
+ function encodeCacheElement(v) {
1628
+ const parts = [];
1629
+ parts.push(`${jstr("label")}:${jstr(v.label)}`);
1630
+ parts.push(`${jstr("size")}:${String(v.size)}`);
1631
+ parts.push(`${jstr("sizeText")}:${jstr(v.sizeText)}`);
1632
+ if (v.digest !== undefined && v.digest !== "")
1633
+ parts.push(`${jstr("digest")}:${jstr(v.digest)}`);
1634
+ if (v.note !== undefined && v.note !== "")
1635
+ parts.push(`${jstr("note")}:${jstr(v.note)}`);
1636
+ return `{${parts.join(",")}}`;
1637
+ }
1638
+ function decodeCacheElement(data) {
1639
+ return JSON.parse(data);
1640
+ }
1641
+ function encodeCacheClass(v) {
1642
+ const parts = [];
1643
+ parts.push(`${jstr("name")}:${jstr(v.name)}`);
1644
+ parts.push(`${jstr("reach")}:${jstr(v.reach)}`);
1645
+ parts.push(`${jstr("prunable")}:${String(v.prunable)}`);
1646
+ parts.push(`${jstr("elements")}:${v.elements === null ? "null" : `[${v.elements.map((e0) => encodeCacheElement(e0)).join(",")}]`}`);
1647
+ return `{${parts.join(",")}}`;
1648
+ }
1649
+ function decodeCacheClass(data) {
1650
+ return JSON.parse(data);
1651
+ }
1652
+ function encodeCacheProvenance(v) {
1653
+ const parts = [];
1654
+ parts.push(`${jstr("identities")}:${v.identities === null ? "null" : `[${v.identities.map((e0) => jstr(e0)).join(",")}]`}`);
1655
+ if (v.sharedBy !== undefined && v.sharedBy !== 0)
1656
+ parts.push(`${jstr("sharedBy")}:${String(v.sharedBy)}`);
1657
+ return `{${parts.join(",")}}`;
1658
+ }
1659
+ function decodeCacheProvenance(data) {
1660
+ return JSON.parse(data);
1661
+ }
1662
+ function encodeCacheRemoval(v) {
1663
+ const parts = [];
1664
+ parts.push(`${jstr("class")}:${jstr(v.class)}`);
1665
+ parts.push(`${jstr("label")}:${jstr(v.label)}`);
1666
+ parts.push(`${jstr("reach")}:${jstr(v.reach)}`);
1667
+ parts.push(`${jstr("size")}:${String(v.size)}`);
1668
+ parts.push(`${jstr("sizeText")}:${jstr(v.sizeText)}`);
1669
+ return `{${parts.join(",")}}`;
1670
+ }
1671
+ function decodeCacheRemoval(data) {
1672
+ return JSON.parse(data);
1673
+ }
1674
+ function encodeCacheShortfall(v) {
1675
+ const parts = [];
1676
+ parts.push(`${jstr("class")}:${jstr(v.class)}`);
1677
+ parts.push(`${jstr("count")}:${String(v.count)}`);
1678
+ parts.push(`${jstr("size")}:${String(v.size)}`);
1679
+ parts.push(`${jstr("sizeText")}:${jstr(v.sizeText)}`);
1680
+ parts.push(`${jstr("reach")}:${jstr(v.reach)}`);
1681
+ parts.push(`${jstr("reclaimedBy")}:${v.reclaimedBy === null ? "null" : `[${v.reclaimedBy.map((e0) => jstr(e0)).join(",")}]`}`);
1682
+ return `{${parts.join(",")}}`;
1683
+ }
1684
+ function decodeCacheShortfall(data) {
1685
+ return JSON.parse(data);
1686
+ }
1687
+ function encodeCacheCleared(v) {
1688
+ const parts = [];
1689
+ parts.push(`${jstr("class")}:${jstr(v.class)}`);
1690
+ parts.push(`${jstr("reach")}:${jstr(v.reach)}`);
1691
+ parts.push(`${jstr("size")}:${String(v.size)}`);
1692
+ parts.push(`${jstr("sizeText")}:${jstr(v.sizeText)}`);
1693
+ parts.push(`${jstr("heldOpenFiles")}:${String(v.heldOpenFiles)}`);
1694
+ parts.push(`${jstr("heldOpenBytes")}:${String(v.heldOpenBytes)}`);
1695
+ parts.push(`${jstr("heldOpenBytesText")}:${jstr(v.heldOpenBytesText)}`);
1696
+ return `{${parts.join(",")}}`;
1697
+ }
1698
+ function decodeCacheCleared(data) {
1699
+ return JSON.parse(data);
1700
+ }
1701
+ function encodeConfigWriteScope(v) {
1702
+ const parts = [];
1703
+ parts.push(`${jstr("configFile")}:${jstr(v.configFile)}`);
1704
+ parts.push(`${jstr("machineWide")}:${String(v.machineWide)}`);
1705
+ parts.push(`${jstr("workspaceRoot")}:${jstr(v.workspaceRoot)}`);
1706
+ return `{${parts.join(",")}}`;
1707
+ }
1708
+ function decodeConfigWriteScope(data) {
1709
+ return JSON.parse(data);
1710
+ }
1711
+ function encodePluginWriteScope(v) {
1712
+ const parts = [];
1713
+ parts.push(`${jstr("configFile")}:${jstr(v.configFile)}`);
1714
+ parts.push(`${jstr("machineWide")}:${String(v.machineWide)}`);
1715
+ parts.push(`${jstr("workspaceRoot")}:${jstr(v.workspaceRoot)}`);
1716
+ return `{${parts.join(",")}}`;
1717
+ }
1718
+ function decodePluginWriteScope(data) {
1719
+ return JSON.parse(data);
1720
+ }
1721
+ function encodeCredentialStoreScope(v) {
1722
+ const parts = [];
1723
+ parts.push(`${jstr("machineWide")}:${String(v.machineWide)}`);
1724
+ parts.push(`${jstr("workspaceRoot")}:${jstr(v.workspaceRoot)}`);
1725
+ return `{${parts.join(",")}}`;
1726
+ }
1727
+ function decodeCredentialStoreScope(data) {
1728
+ return JSON.parse(data);
1729
+ }
1730
+ function encodeSkillFolderScope(v) {
1731
+ const parts = [];
1732
+ parts.push(`${jstr("machineWide")}:${String(v.machineWide)}`);
1733
+ parts.push(`${jstr("workspaceRoot")}:${jstr(v.workspaceRoot)}`);
1734
+ return `{${parts.join(",")}}`;
1735
+ }
1736
+ function decodeSkillFolderScope(data) {
1737
+ return JSON.parse(data);
1738
+ }
1739
+ function encodePublicationReach(v) {
1740
+ const parts = [];
1741
+ parts.push(`${jstr("registries")}:${`[${v.registries.map((e0) => jstr(e0)).join(",")}]`}`);
1742
+ parts.push(`${jstr("beyondThisMachine")}:${String(v.beyondThisMachine)}`);
1743
+ return `{${parts.join(",")}}`;
1744
+ }
1745
+ function decodePublicationReach(data) {
1746
+ return JSON.parse(data);
1747
+ }
1748
+ function encodeWorkspaceEntityRef(v) {
1749
+ const parts = [];
1750
+ parts.push(`${jstr("kind")}:${jstr(v.kind)}`);
1751
+ parts.push(`${jstr("name")}:${jstr(v.name)}`);
1752
+ parts.push(`${jstr("file")}:${jstr(v.file)}`);
1753
+ return `{${parts.join(",")}}`;
1754
+ }
1755
+ function decodeWorkspaceEntityRef(data) {
1756
+ return JSON.parse(data);
1757
+ }
1758
+ function encodeSourcedEntityRef(v) {
1759
+ const parts = [];
1760
+ parts.push(`${jstr("kind")}:${jstr(v.kind)}`);
1761
+ parts.push(`${jstr("name")}:${jstr(v.name)}`);
1762
+ parts.push(`${jstr("file")}:${jstr(v.file)}`);
1763
+ parts.push(`${jstr("origin")}:${jstr(v.origin)}`);
1764
+ return `{${parts.join(",")}}`;
1765
+ }
1766
+ function decodeSourcedEntityRef(data) {
1767
+ return JSON.parse(data);
1768
+ }
1769
+ function encodeSocketCandidacy(v) {
1770
+ const parts = [];
1771
+ parts.push(`${jstr("socket")}:${jstr(v.socket)}`);
1772
+ parts.push(`${jstr("declaration")}:${jstr(v.declaration)}`);
1773
+ parts.push(`${jstr("selector")}:${jstr(v.selector)}`);
1774
+ parts.push(`${jstr("required")}:${String(v.required)}`);
1775
+ parts.push(`${jstr("targets")}:${v.targets === null ? "null" : `[${v.targets.map((e0) => encodeWorkspaceEntityRef(e0)).join(",")}]`}`);
1776
+ return `{${parts.join(",")}}`;
1777
+ }
1778
+ function decodeSocketCandidacy(data) {
1779
+ return JSON.parse(data);
1780
+ }
1781
+ function encodeSlotCandidacy(v) {
1782
+ const parts = [];
1783
+ parts.push(`${jstr("slot")}:${jstr(v.slot)}`);
1784
+ parts.push(`${jstr("selector")}:${jstr(v.selector)}`);
1785
+ parts.push(`${jstr("required")}:${String(v.required)}`);
1786
+ parts.push(`${jstr("inject")}:${`[${v.inject.map((e0) => jstr(e0)).join(",")}]`}`);
1787
+ parts.push(`${jstr("sensitive")}:${String(v.sensitive)}`);
1788
+ parts.push(`${jstr("description")}:${jstr(v.description)}`);
1789
+ parts.push(`${jstr("candidates")}:${`[${v.candidates.map((e0) => encodeSourcedEntityRef(e0)).join(",")}]`}`);
1790
+ return `{${parts.join(",")}}`;
1791
+ }
1792
+ function decodeSlotCandidacy(data) {
1793
+ return JSON.parse(data);
1794
+ }
1795
+ function encodeCatalogEntity(v) {
1796
+ const parts = [];
1797
+ parts.push(`${jstr("kind")}:${jstr(v.kind)}`);
1798
+ parts.push(`${jstr("name")}:${jstr(v.name)}`);
1799
+ parts.push(`${jstr("apiVersion")}:${jstr(v.apiVersion)}`);
1800
+ parts.push(`${jstr("description")}:${jstr(v.description)}`);
1801
+ parts.push(`${jstr("labels")}:${v.labels === null ? "null" : `{${Object.keys(v.labels).sort().map((k0) => `${jstr(k0)}:${jstr(v.labels[k0])}`).join(",")}}`}`);
1802
+ parts.push(`${jstr("file")}:${jstr(v.file)}`);
1803
+ parts.push(`${jstr("origin")}:${jstr(v.origin)}`);
1804
+ return `{${parts.join(",")}}`;
1805
+ }
1806
+ function decodeCatalogEntity(data) {
1807
+ return JSON.parse(data);
1808
+ }
1809
+ function encodeCompletionItem(v) {
1810
+ const parts = [];
1811
+ parts.push(`${jstr("label")}:${jstr(v.label)}`);
1812
+ if (v.kind !== undefined && v.kind !== 0)
1813
+ parts.push(`${jstr("kind")}:${String(v.kind)}`);
1814
+ if (v.detail !== undefined && v.detail !== "")
1815
+ parts.push(`${jstr("detail")}:${jstr(v.detail)}`);
1816
+ if (v.documentation !== undefined && v.documentation !== "")
1817
+ parts.push(`${jstr("documentation")}:${jstr(v.documentation)}`);
1818
+ if (v.sortText !== undefined && v.sortText !== "")
1819
+ parts.push(`${jstr("sortText")}:${jstr(v.sortText)}`);
1820
+ return `{${parts.join(",")}}`;
1821
+ }
1822
+ function decodeCompletionItem(data) {
1823
+ return JSON.parse(data);
1824
+ }
1825
+ function encodeMarkupContent(v) {
1826
+ const parts = [];
1827
+ parts.push(`${jstr("kind")}:${jstr(v.kind)}`);
1828
+ parts.push(`${jstr("value")}:${jstr(v.value)}`);
1829
+ return `{${parts.join(",")}}`;
1830
+ }
1831
+ function decodeMarkupContent(data) {
1832
+ return JSON.parse(data);
1833
+ }
1834
+ function encodeEntityKindDescriptor(v) {
1835
+ const parts = [];
1836
+ parts.push(`${jstr("kind")}:${jstr(v.kind)}`);
1837
+ parts.push(`${jstr("documentKind")}:${jstr(v.documentKind)}`);
1838
+ parts.push(`${jstr("acceptedBy")}:${encodeEntityKindAcceptance(v.acceptedBy)}`);
1839
+ return `{${parts.join(",")}}`;
1840
+ }
1841
+ function decodeEntityKindDescriptor(data) {
1842
+ return JSON.parse(data);
1843
+ }
1844
+ function encodeEntityKindAcceptance(v) {
1845
+ const parts = [];
1846
+ parts.push(`${jstr("singleEntityValidation")}:${String(v.singleEntityValidation)}`);
1847
+ parts.push(`${jstr("publication")}:${String(v.publication)}`);
1848
+ parts.push(`${jstr("inspectionByName")}:${String(v.inspectionByName)}`);
1849
+ return `{${parts.join(",")}}`;
1850
+ }
1851
+ function decodeEntityKindAcceptance(data) {
1852
+ return JSON.parse(data);
1853
+ }
1854
+ function encodeRegistryTrust(v) {
1855
+ const parts = [];
1856
+ parts.push(`${jstr("signaturesRequired")}:${String(v.signaturesRequired)}`);
1857
+ if (v.verificationSkipped !== undefined && v.verificationSkipped !== false)
1858
+ parts.push(`${jstr("verificationSkipped")}:${String(v.verificationSkipped)}`);
1859
+ if (v.advisory !== undefined && v.advisory !== false)
1860
+ parts.push(`${jstr("advisory")}:${String(v.advisory)}`);
1861
+ if (v.anchor !== undefined && v.anchor !== "")
1862
+ parts.push(`${jstr("anchor")}:${jstr(v.anchor)}`);
1863
+ if (v.keylessIdentities !== undefined && v.keylessIdentities !== 0)
1864
+ parts.push(`${jstr("keylessIdentities")}:${String(v.keylessIdentities)}`);
1865
+ return `{${parts.join(",")}}`;
1866
+ }
1867
+ function decodeRegistryTrust(data) {
1868
+ return JSON.parse(data);
1869
+ }
1870
+ function encodeRegistry(v) {
1871
+ const parts = [];
1872
+ parts.push(`${jstr("host")}:${jstr(v.host)}`);
1873
+ if (v.name !== undefined && v.name !== "")
1874
+ parts.push(`${jstr("name")}:${jstr(v.name)}`);
1875
+ parts.push(`${jstr("default")}:${String(v.default)}`);
1876
+ parts.push(`${jstr("authState")}:${jstr(v.authState)}`);
1877
+ parts.push(`${jstr("trust")}:${encodeRegistryTrust(v.trust)}`);
1878
+ return `{${parts.join(",")}}`;
1879
+ }
1880
+ function decodeRegistry(data) {
1881
+ return JSON.parse(data);
1882
+ }
1883
+ function encodeTrustFetchOutcome(v) {
1884
+ const parts = [];
1885
+ parts.push(`${jstr("pinned")}:${String(v.pinned)}`);
1886
+ if (v.notAdvertised !== undefined && v.notAdvertised !== false)
1887
+ parts.push(`${jstr("notAdvertised")}:${String(v.notAdvertised)}`);
1888
+ if (v.unreachable !== undefined && v.unreachable !== false)
1889
+ parts.push(`${jstr("unreachable")}:${String(v.unreachable)}`);
1890
+ if (v.baseline !== undefined && v.baseline !== false)
1891
+ parts.push(`${jstr("baseline")}:${String(v.baseline)}`);
1892
+ if (v.skipped !== undefined && v.skipped !== false)
1893
+ parts.push(`${jstr("skipped")}:${String(v.skipped)}`);
1894
+ if (v.identities !== undefined && v.identities !== 0)
1895
+ parts.push(`${jstr("identities")}:${String(v.identities)}`);
1896
+ if (v.reason !== undefined && v.reason !== "")
1897
+ parts.push(`${jstr("reason")}:${jstr(v.reason)}`);
1898
+ return `{${parts.join(",")}}`;
1899
+ }
1900
+ function decodeTrustFetchOutcome(data) {
1901
+ return JSON.parse(data);
1902
+ }
1903
+ function encodeSkippedRepo(v) {
1904
+ const parts = [];
1905
+ parts.push(`${jstr("repo")}:${jstr(v.repo)}`);
1906
+ parts.push(`${jstr("reason")}:${jstr(v.reason)}`);
1907
+ return `{${parts.join(",")}}`;
1908
+ }
1909
+ function decodeSkippedRepo(data) {
1910
+ return JSON.parse(data);
1911
+ }
1912
+ function encodeDeprecationNote(v) {
1913
+ const parts = [];
1914
+ parts.push(`${jstr("repo")}:${jstr(v.repo)}`);
1915
+ parts.push(`${jstr("version")}:${jstr(v.version)}`);
1916
+ parts.push(`${jstr("recorded")}:${String(v.recorded)}`);
1917
+ if (v.severity !== undefined && v.severity !== "")
1918
+ parts.push(`${jstr("severity")}:${jstr(v.severity)}`);
1919
+ if (v.reason !== undefined && v.reason !== "")
1920
+ parts.push(`${jstr("reason")}:${jstr(v.reason)}`);
1921
+ return `{${parts.join(",")}}`;
1922
+ }
1923
+ function decodeDeprecationNote(data) {
1924
+ return JSON.parse(data);
1925
+ }
1926
+ function encodeHostUpdate(v) {
1927
+ const parts = [];
1928
+ parts.push(`${jstr("host")}:${jstr(v.host)}`);
1929
+ parts.push(`${jstr("indexed")}:${String(v.indexed)}`);
1930
+ parts.push(`${jstr("deprecationsExamined")}:${String(v.deprecationsExamined)}`);
1931
+ parts.push(`${jstr("deprecationsRecorded")}:${String(v.deprecationsRecorded)}`);
1932
+ parts.push(`${jstr("skipped")}:${v.skipped === null ? "null" : `[${v.skipped.map((e0) => encodeSkippedRepo(e0)).join(",")}]`}`);
1933
+ parts.push(`${jstr("deprecations")}:${v.deprecations === null ? "null" : `[${v.deprecations.map((e0) => encodeDeprecationNote(e0)).join(",")}]`}`);
1934
+ parts.push(`${jstr("readsRetried")}:${String(v.readsRetried)}`);
1935
+ if (v.error !== undefined && v.error !== "")
1936
+ parts.push(`${jstr("error")}:${jstr(v.error)}`);
1937
+ if (v.unreachable !== undefined && v.unreachable !== false)
1938
+ parts.push(`${jstr("unreachable")}:${String(v.unreachable)}`);
1939
+ return `{${parts.join(",")}}`;
1940
+ }
1941
+ function decodeHostUpdate(data) {
1942
+ return JSON.parse(data);
1943
+ }
1944
+ function encodePublishedVersion(v) {
1945
+ const parts = [];
1946
+ parts.push(`${jstr("version")}:${jstr(v.version)}`);
1947
+ parts.push(`${jstr("manifestDigest")}:${jstr(v.manifestDigest)}`);
1948
+ if (v.signer !== undefined)
1949
+ parts.push(`${jstr("signer")}:${encodeVerifiedSignature(v.signer)}`);
1950
+ if (v.publishedAt !== undefined && v.publishedAt !== "")
1951
+ parts.push(`${jstr("publishedAt")}:${jstr(v.publishedAt)}`);
1952
+ if (v.publishedAtSource !== undefined && v.publishedAtSource !== "")
1953
+ parts.push(`${jstr("publishedAtSource")}:${jstr(v.publishedAtSource)}`);
1954
+ return `{${parts.join(",")}}`;
1955
+ }
1956
+ function decodePublishedVersion(data) {
1957
+ return JSON.parse(data);
1958
+ }
1959
+ function encodeVerifiedSignature(v) {
1960
+ const parts = [];
1961
+ parts.push(`${jstr("bundleDigest")}:${jstr(v.bundleDigest)}`);
1962
+ if (v.identity !== undefined && v.identity !== "")
1963
+ parts.push(`${jstr("identity")}:${jstr(v.identity)}`);
1964
+ if (v.issuer !== undefined && v.issuer !== "")
1965
+ parts.push(`${jstr("issuer")}:${jstr(v.issuer)}`);
1966
+ parts.push(`${jstr("mode")}:${jstr(v.mode)}`);
1967
+ return `{${parts.join(",")}}`;
1968
+ }
1969
+ function decodeVerifiedSignature(data) {
1970
+ return JSON.parse(data);
1971
+ }
1972
+ function encodeRegistrySearchRecord(v) {
1973
+ const parts = [];
1974
+ parts.push(`${jstr("uri")}:${jstr(v.uri)}`);
1975
+ parts.push(`${jstr("name")}:${jstr(v.name)}`);
1976
+ parts.push(`${jstr("version")}:${jstr(v.version)}`);
1977
+ if (v.versions !== undefined && v.versions.length > 0)
1978
+ parts.push(`${jstr("versions")}:${`[${v.versions.map((e0) => jstr(e0)).join(",")}]`}`);
1979
+ if (v.kind !== undefined && v.kind !== "")
1980
+ parts.push(`${jstr("kind")}:${jstr(v.kind)}`);
1981
+ if (v.description !== undefined && v.description !== "")
1982
+ parts.push(`${jstr("description")}:${jstr(v.description)}`);
1983
+ if (v.category !== undefined && v.category !== "")
1984
+ parts.push(`${jstr("category")}:${jstr(v.category)}`);
1985
+ if (v.labels !== undefined && Object.keys(v.labels).length > 0)
1986
+ parts.push(`${jstr("labels")}:${`{${Object.keys(v.labels).sort().map((k0) => `${jstr(k0)}:${jstr(v.labels[k0])}`).join(",")}}`}`);
1987
+ if (v.pluginType !== undefined && v.pluginType !== "")
1988
+ parts.push(`${jstr("pluginType")}:${jstr(v.pluginType)}`);
1989
+ if (v.capabilities !== undefined && v.capabilities.length > 0)
1990
+ parts.push(`${jstr("capabilities")}:${`[${v.capabilities.map((e0) => jstr(e0)).join(",")}]`}`);
1991
+ if (v.manifestDigest !== undefined && v.manifestDigest !== "")
1992
+ parts.push(`${jstr("manifestDigest")}:${jstr(v.manifestDigest)}`);
1993
+ if (v.listingDigest !== undefined && v.listingDigest !== "")
1994
+ parts.push(`${jstr("listingDigest")}:${jstr(v.listingDigest)}`);
1995
+ if (v.deprecations !== undefined && v.deprecations.length > 0)
1996
+ parts.push(`${jstr("deprecations")}:${`[${v.deprecations.map((e0) => encodeOpaque(e0)).join(",")}]`}`);
1997
+ if (v.published !== undefined && v.published.length > 0)
1998
+ parts.push(`${jstr("published")}:${`[${v.published.map((e0) => encodePublishedVersion(e0)).join(",")}]`}`);
1999
+ if (v.retracted !== undefined && v.retracted.length > 0)
2000
+ parts.push(`${jstr("retracted")}:${`[${v.retracted.map((e0) => jstr(e0)).join(",")}]`}`);
2001
+ return `{${parts.join(",")}}`;
2002
+ }
2003
+ function decodeRegistrySearchRecord(data) {
2004
+ return JSON.parse(data);
2005
+ }
2006
+ function encodeRegistrySearchIndex(v) {
2007
+ const parts = [];
2008
+ parts.push(`${jstr("host")}:${jstr(v.host)}`);
2009
+ if (v.lastUpdated !== undefined && v.lastUpdated !== "")
2010
+ parts.push(`${jstr("lastUpdated")}:${jstr(v.lastUpdated)}`);
2011
+ return `{${parts.join(",")}}`;
2012
+ }
2013
+ function decodeRegistrySearchIndex(data) {
2014
+ return JSON.parse(data);
2015
+ }
2016
+ function encodeEffectiveConfigurationSetting(v) {
2017
+ const parts = [];
2018
+ parts.push(`${jstr("field")}:${jstr(v.field)}`);
2019
+ parts.push(`${jstr("value")}:${jstr(v.value)}`);
2020
+ parts.push(`${jstr("source")}:${jstr(v.source)}`);
2021
+ return `{${parts.join(",")}}`;
2022
+ }
2023
+ function decodeEffectiveConfigurationSetting(data) {
2024
+ return JSON.parse(data);
2025
+ }
2026
+ function encodeImportedFile(v) {
2027
+ const parts = [];
2028
+ parts.push(`${jstr("path")}:${jstr(v.path)}`);
2029
+ parts.push(`${jstr("content")}:${jstr(v.content)}`);
2030
+ return `{${parts.join(",")}}`;
2031
+ }
2032
+ function decodeImportedFile(data) {
2033
+ return JSON.parse(data);
2034
+ }
2035
+ function encodeImportDrift(v) {
2036
+ const parts = [];
2037
+ parts.push(`${jstr("change")}:${jstr(v.change)}`);
2038
+ parts.push(`${jstr("file")}:${jstr(v.file)}`);
2039
+ parts.push(`${jstr("key")}:${`[${v.key.map((e0) => jstr(e0)).join(",")}]`}`);
2040
+ return `{${parts.join(",")}}`;
2041
+ }
2042
+ function decodeImportDrift(data) {
2043
+ return JSON.parse(data);
2044
+ }
2045
+ function encodeImportOwed(v) {
2046
+ const parts = [];
2047
+ parts.push(`${jstr("file")}:${jstr(v.file)}`);
2048
+ parts.push(`${jstr("key")}:${`[${v.key.map((e0) => jstr(e0)).join(",")}]`}`);
2049
+ parts.push(`${jstr("question")}:${jstr(v.question)}`);
2050
+ parts.push(`${jstr("sensitive")}:${String(v.sensitive)}`);
2051
+ if (v.secretAdvice !== undefined && v.secretAdvice !== "")
2052
+ parts.push(`${jstr("secretAdvice")}:${jstr(v.secretAdvice)}`);
2053
+ return `{${parts.join(",")}}`;
2054
+ }
2055
+ function decodeImportOwed(data) {
2056
+ return JSON.parse(data);
2057
+ }
2058
+ function encodeImportAnswered(v) {
2059
+ const parts = [];
2060
+ parts.push(`${jstr("file")}:${jstr(v.file)}`);
2061
+ parts.push(`${jstr("key")}:${`[${v.key.map((e0) => jstr(e0)).join(",")}]`}`);
2062
+ parts.push(`${jstr("answer")}:${jstr(v.answer)}`);
2063
+ return `{${parts.join(",")}}`;
2064
+ }
2065
+ function decodeImportAnswered(data) {
2066
+ return JSON.parse(data);
2067
+ }
2068
+ function encodeImportDiagnostic(v) {
2069
+ const parts = [];
2070
+ parts.push(`${jstr("severity")}:${jstr(v.severity)}`);
2071
+ parts.push(`${jstr("message")}:${jstr(v.message)}`);
2072
+ if (v.code !== undefined && v.code !== "")
2073
+ parts.push(`${jstr("code")}:${jstr(v.code)}`);
2074
+ return `{${parts.join(",")}}`;
2075
+ }
2076
+ function decodeImportDiagnostic(data) {
2077
+ return JSON.parse(data);
2078
+ }
2079
+ function encodeImportDecision(v) {
2080
+ const parts = [];
2081
+ parts.push(`${jstr("sourceNode")}:${encodeDecisionSourceNode(v.sourceNode)}`);
2082
+ if (v.candidates !== undefined && v.candidates.length > 0)
2083
+ parts.push(`${jstr("candidates")}:${`[${v.candidates.map((e0) => encodeImportCandidate(e0)).join(",")}]`}`);
2084
+ if (v.chosen !== undefined)
2085
+ parts.push(`${jstr("chosen")}:${encodeDecisionChoice(v.chosen)}`);
2086
+ if (v.rationale !== undefined && v.rationale !== "")
2087
+ parts.push(`${jstr("rationale")}:${jstr(v.rationale)}`);
2088
+ if (v.swapHint !== undefined && v.swapHint !== "")
2089
+ parts.push(`${jstr("swapHint")}:${jstr(v.swapHint)}`);
2090
+ return `{${parts.join(",")}}`;
2091
+ }
2092
+ function decodeImportDecision(data) {
2093
+ return JSON.parse(data);
2094
+ }
2095
+ function encodeDecisionSourceNode(v) {
2096
+ const parts = [];
2097
+ parts.push(`${jstr("id")}:${jstr(v.id)}`);
2098
+ parts.push(`${jstr("type")}:${jstr(v.type)}`);
2099
+ parts.push(`${jstr("paramsSummary")}:${jstr(v.paramsSummary)}`);
2100
+ return `{${parts.join(",")}}`;
2101
+ }
2102
+ function decodeDecisionSourceNode(data) {
2103
+ return JSON.parse(data);
2104
+ }
2105
+ function encodeImportCandidate(v) {
2106
+ const parts = [];
2107
+ parts.push(`${jstr("componentName")}:${jstr(v.componentName)}`);
2108
+ parts.push(`${jstr("score")}:${String(v.score)}`);
2109
+ parts.push(`${jstr("tier")}:${jstr(v.tier)}`);
2110
+ parts.push(`${jstr("signals")}:${encodeCandidateSignals(v.signals)}`);
2111
+ return `{${parts.join(",")}}`;
2112
+ }
2113
+ function decodeImportCandidate(data) {
2114
+ return JSON.parse(data);
2115
+ }
2116
+ function encodeCandidateSignals(v) {
2117
+ const parts = [];
2118
+ parts.push(`${jstr("table")}:${String(v.table)}`);
2119
+ parts.push(`${jstr("category")}:${String(v.category)}`);
2120
+ parts.push(`${jstr("domainLabels")}:${String(v.domainLabels)}`);
2121
+ parts.push(`${jstr("shape")}:${String(v.shape)}`);
2122
+ parts.push(`${jstr("name")}:${String(v.name)}`);
2123
+ return `{${parts.join(",")}}`;
2124
+ }
2125
+ function decodeCandidateSignals(data) {
2126
+ return JSON.parse(data);
2127
+ }
2128
+ function encodeDecisionChoice(v) {
2129
+ const parts = [];
2130
+ parts.push(`${jstr("target")}:${jstr(v.target)}`);
2131
+ parts.push(`${jstr("mode")}:${jstr(v.mode)}`);
2132
+ parts.push(`${jstr("tier")}:${jstr(v.tier)}`);
2133
+ return `{${parts.join(",")}}`;
2134
+ }
2135
+ function decodeDecisionChoice(data) {
2136
+ return JSON.parse(data);
2137
+ }
2138
+ function encodeLintFileFindings(v) {
2139
+ const parts = [];
2140
+ parts.push(`${jstr("file")}:${jstr(v.file)}`);
2141
+ parts.push(`${jstr("diagnostics")}:${v.diagnostics === null ? "null" : `[${v.diagnostics.map((e0) => encodeDiagnostic(e0)).join(",")}]`}`);
2142
+ return `{${parts.join(",")}}`;
2143
+ }
2144
+ function decodeLintFileFindings(data) {
2145
+ return JSON.parse(data);
2146
+ }
2147
+ function encodePluginRetractionExclusion(v) {
2148
+ const parts = [];
2149
+ parts.push(`${jstr("version")}:${jstr(v.version)}`);
2150
+ if (v.reason !== undefined && v.reason !== "")
2151
+ parts.push(`${jstr("reason")}:${jstr(v.reason)}`);
2152
+ return `{${parts.join(",")}}`;
2153
+ }
2154
+ function decodePluginRetractionExclusion(data) {
2155
+ return JSON.parse(data);
2156
+ }
2157
+ function encodePluginRetractionProvenance(v) {
2158
+ const parts = [];
2159
+ parts.push(`${jstr("source")}:${jstr(v.source)}`);
2160
+ if (v.lastUpdated !== undefined && v.lastUpdated !== "")
2161
+ parts.push(`${jstr("lastUpdated")}:${jstr(v.lastUpdated)}`);
2162
+ return `{${parts.join(",")}}`;
2163
+ }
2164
+ function decodePluginRetractionProvenance(data) {
2165
+ return JSON.parse(data);
2166
+ }
2167
+ function encodePluginRetraction(v) {
2168
+ const parts = [];
2169
+ parts.push(`${jstr("reference")}:${jstr(v.reference)}`);
2170
+ if (v.selected !== undefined && v.selected !== "")
2171
+ parts.push(`${jstr("selected")}:${jstr(v.selected)}`);
2172
+ if (v.excluded !== undefined && v.excluded.length > 0)
2173
+ parts.push(`${jstr("excluded")}:${`[${v.excluded.map((e0) => encodePluginRetractionExclusion(e0)).join(",")}]`}`);
2174
+ if (v.unscreened !== undefined && v.unscreened !== "")
2175
+ parts.push(`${jstr("unscreened")}:${jstr(v.unscreened)}`);
2176
+ if (v.provenance !== undefined)
2177
+ parts.push(`${jstr("provenance")}:${encodePluginRetractionProvenance(v.provenance)}`);
2178
+ return `{${parts.join(",")}}`;
2179
+ }
2180
+ function decodePluginRetraction(data) {
2181
+ return JSON.parse(data);
2182
+ }
2183
+ function encodePluginGeneratedDocument(v) {
2184
+ const parts = [];
2185
+ parts.push(`${jstr("path")}:${jstr(v.path)}`);
2186
+ parts.push(`${jstr("content")}:${jstr(v.content)}`);
2187
+ return `{${parts.join(",")}}`;
2188
+ }
2189
+ function decodePluginGeneratedDocument(data) {
2190
+ return JSON.parse(data);
2191
+ }
2192
+ function encodePluginCommandFlag(v) {
2193
+ const parts = [];
2194
+ parts.push(`${jstr("name")}:${jstr(v.name)}`);
2195
+ if (v.shorthand !== undefined && v.shorthand !== "")
2196
+ parts.push(`${jstr("shorthand")}:${jstr(v.shorthand)}`);
2197
+ if (v.description !== undefined && v.description !== "")
2198
+ parts.push(`${jstr("description")}:${jstr(v.description)}`);
2199
+ if (v.type !== undefined && v.type !== "")
2200
+ parts.push(`${jstr("type")}:${jstr(v.type)}`);
2201
+ if (v.default !== undefined && v.default !== "")
2202
+ parts.push(`${jstr("default")}:${jstr(v.default)}`);
2203
+ return `{${parts.join(",")}}`;
2204
+ }
2205
+ function decodePluginCommandFlag(data) {
2206
+ return JSON.parse(data);
2207
+ }
2208
+ function encodePluginCLICommand(v) {
2209
+ const parts = [];
2210
+ parts.push(`${jstr("name")}:${jstr(v.name)}`);
2211
+ if (v.description !== undefined && v.description !== "")
2212
+ parts.push(`${jstr("description")}:${jstr(v.description)}`);
2213
+ if (v.flags !== undefined && v.flags.length > 0)
2214
+ parts.push(`${jstr("flags")}:${`[${v.flags.map((e0) => encodePluginCommandFlag(e0)).join(",")}]`}`);
2215
+ return `{${parts.join(",")}}`;
2216
+ }
2217
+ function decodePluginCLICommand(data) {
2218
+ return JSON.parse(data);
2219
+ }
2220
+ function encodeConfigCapturedAttachment(v) {
2221
+ const parts = [];
2222
+ if (v.uri !== undefined && v.uri !== "")
2223
+ parts.push(`${jstr("uri")}:${jstr(v.uri)}`);
2224
+ if (v.capability !== undefined && v.capability !== "")
2225
+ parts.push(`${jstr("capability")}:${jstr(v.capability)}`);
2226
+ if (v.function !== undefined && v.function !== "")
2227
+ parts.push(`${jstr("function")}:${jstr(v.function)}`);
2228
+ if (v.role !== undefined && v.role !== "")
2229
+ parts.push(`${jstr("role")}:${jstr(v.role)}`);
2230
+ return `{${parts.join(",")}}`;
2231
+ }
2232
+ function decodeConfigCapturedAttachment(data) {
2233
+ return JSON.parse(data);
2234
+ }
2235
+ function encodeConfigCapturedSocket(v) {
2236
+ const parts = [];
2237
+ parts.push(`${jstr("socket")}:${jstr(v.socket)}`);
2238
+ parts.push(`${jstr("field")}:${jstr(v.field)}`);
2239
+ parts.push(`${jstr("attachments")}:${v.attachments === null ? "null" : `[${v.attachments.map((e0) => encodeConfigCapturedAttachment(e0)).join(",")}]`}`);
2240
+ return `{${parts.join(",")}}`;
2241
+ }
2242
+ function decodeConfigCapturedSocket(data) {
2243
+ return JSON.parse(data);
2244
+ }
2245
+ function encodeExplainErrorEntry(v) {
2246
+ const parts = [];
2247
+ parts.push(`${jstr("heading")}:${jstr(v.heading)}`);
2248
+ parts.push(`${jstr("body")}:${jstr(v.body)}`);
2249
+ return `{${parts.join(",")}}`;
2250
+ }
2251
+ function decodeExplainErrorEntry(data) {
2252
+ return JSON.parse(data);
2253
+ }
2254
+ function encodeSignedArtifact(v) {
2255
+ const parts = [];
2256
+ parts.push(`${jstr("reference")}:${jstr(v.reference)}`);
2257
+ parts.push(`${jstr("digest")}:${jstr(v.digest)}`);
2258
+ return `{${parts.join(",")}}`;
2259
+ }
2260
+ function decodeSignedArtifact(data) {
2261
+ return JSON.parse(data);
2262
+ }
2263
+ function encodeDeprecationMarked(v) {
2264
+ const parts = [];
2265
+ parts.push(`${jstr("reference")}:${jstr(v.reference)}`);
2266
+ parts.push(`${jstr("severity")}:${jstr(v.severity)}`);
2267
+ parts.push(`${jstr("issuedOn")}:${jstr(v.issuedOn)}`);
2268
+ parts.push(`${jstr("digest")}:${jstr(v.digest)}`);
2269
+ return `{${parts.join(",")}}`;
2270
+ }
2271
+ function decodeDeprecationMarked(data) {
2272
+ return JSON.parse(data);
2273
+ }
2274
+ function encodeInitializeResult(v) {
2275
+ const parts = [];
2276
+ parts.push(`${jstr("capabilities")}:${encodeServerCapabilities(v.capabilities)}`);
2277
+ parts.push(`${jstr("workspaceRoot")}:${jstr(v.workspaceRoot)}`);
2278
+ parts.push(`${jstr("configSource")}:${jstr(v.configSource)}`);
2279
+ if (v.workspaceMarker !== undefined && v.workspaceMarker !== "")
2280
+ parts.push(`${jstr("workspaceMarker")}:${jstr(v.workspaceMarker)}`);
2281
+ parts.push(`${jstr("version")}:${jstr(v.version)}`);
2282
+ return `{${parts.join(",")}}`;
2283
+ }
2284
+ function decodeInitializeResult(data) {
2285
+ return JSON.parse(data);
2286
+ }
2287
+ function encodeValidateResult(v) {
2288
+ const parts = [];
2289
+ parts.push(`${jstr("diagnostics")}:${v.diagnostics === null ? "null" : `[${v.diagnostics.map((e0) => encodeDiagnostic(e0)).join(",")}]`}`);
2290
+ if (v.checked !== undefined && v.checked !== "")
2291
+ parts.push(`${jstr("checked")}:${jstr(v.checked)}`);
2292
+ return `{${parts.join(",")}}`;
2293
+ }
2294
+ function decodeValidateResult(data) {
2295
+ return JSON.parse(data);
2296
+ }
2297
+ function encodeInvalidateResult(v) {
2298
+ const parts = [];
2299
+ parts.push(`${jstr("invalidated")}:${String(v.invalidated)}`);
2300
+ return `{${parts.join(",")}}`;
2301
+ }
2302
+ function decodeInvalidateResult(data) {
2303
+ return JSON.parse(data);
2304
+ }
2305
+ function encodeDiagnosticsResult(v) {
2306
+ const parts = [];
2307
+ parts.push(`${jstr("diagnostics")}:${v.diagnostics === null ? "null" : `[${v.diagnostics.map((e0) => encodeDiagnostic(e0)).join(",")}]`}`);
2308
+ return `{${parts.join(",")}}`;
2309
+ }
2310
+ function decodeDiagnosticsResult(data) {
2311
+ return JSON.parse(data);
2312
+ }
2313
+ function encodeIrGraphResult(v) {
2314
+ const parts = [];
2315
+ parts.push(`${jstr("graph")}:${encodeOpaque(v.graph)}`);
2316
+ return `{${parts.join(",")}}`;
2317
+ }
2318
+ function decodeIrGraphResult(data) {
2319
+ return JSON.parse(data);
2320
+ }
2321
+ function encodeBuildResult(v) {
2322
+ const parts = [];
2323
+ parts.push(`${jstr("outputDirectory")}:${jstr(v.outputDirectory)}`);
2324
+ parts.push(`${jstr("files")}:${v.files === null ? "null" : `[${v.files.map((e0) => jstr(e0)).join(",")}]`}`);
2325
+ if (v.notices !== undefined && v.notices.length > 0)
2326
+ parts.push(`${jstr("notices")}:${`[${v.notices.map((e0) => encodeBuildNotice(e0)).join(",")}]`}`);
2327
+ if (v.dependencyResolution !== undefined)
2328
+ parts.push(`${jstr("dependencyResolution")}:${encodeDependencyResolutionReport(v.dependencyResolution)}`);
2329
+ return `{${parts.join(",")}}`;
2330
+ }
2331
+ function decodeBuildResult(data) {
2332
+ return JSON.parse(data);
2333
+ }
2334
+ function encodeBuildPreviewResult(v) {
2335
+ const parts = [];
2336
+ parts.push(`${jstr("files")}:${v.files === null ? "null" : `[${v.files.map((e0) => jstr(e0)).join(",")}]`}`);
2337
+ if (v.notices !== undefined && v.notices.length > 0)
2338
+ parts.push(`${jstr("notices")}:${`[${v.notices.map((e0) => encodeBuildNotice(e0)).join(",")}]`}`);
2339
+ return `{${parts.join(",")}}`;
2340
+ }
2341
+ function decodeBuildPreviewResult(data) {
2342
+ return JSON.parse(data);
2343
+ }
2344
+ function encodeEntityDefinitionResult(v) {
2345
+ const parts = [];
2346
+ parts.push(`${jstr("kind")}:${jstr(v.kind)}`);
2347
+ parts.push(`${jstr("name")}:${jstr(v.name)}`);
2348
+ parts.push(`${jstr("version")}:${jstr(v.version)}`);
2349
+ if (v.description !== undefined && v.description !== "")
2350
+ parts.push(`${jstr("description")}:${jstr(v.description)}`);
2351
+ if (v.publishScope !== undefined && v.publishScope !== "")
2352
+ parts.push(`${jstr("publishScope")}:${jstr(v.publishScope)}`);
2353
+ parts.push(`${jstr("file")}:${jstr(v.file)}`);
2354
+ parts.push(`${jstr("authoredLength")}:${String(v.authoredLength)}`);
2355
+ parts.push(`${jstr("definition")}:${jstr(v.definition)}`);
2356
+ if (v.published !== undefined)
2357
+ parts.push(`${jstr("published")}:${encodePublishedArtifact(v.published)}`);
2358
+ return `{${parts.join(",")}}`;
2359
+ }
2360
+ function decodeEntityDefinitionResult(data) {
2361
+ return JSON.parse(data);
2362
+ }
2363
+ function encodePublishedArtifact(v) {
2364
+ const parts = [];
2365
+ parts.push(`${jstr("reference")}:${jstr(v.reference)}`);
2366
+ parts.push(`${jstr("archive")}:${String(v.archive)}`);
2367
+ parts.push(`${jstr("mediaType")}:${jstr(v.mediaType)}`);
2368
+ parts.push(`${jstr("manifestDigest")}:${jstr(v.manifestDigest)}`);
2369
+ return `{${parts.join(",")}}`;
2370
+ }
2371
+ function decodePublishedArtifact(data) {
2372
+ return JSON.parse(data);
2373
+ }
2374
+ function encodeReleaseClosureResult(v) {
2375
+ const parts = [];
2376
+ parts.push(`${jstr("release")}:${jstr(v.release)}`);
2377
+ parts.push(`${jstr("aggregate")}:${jstr(v.aggregate)}`);
2378
+ parts.push(`${jstr("manifest")}:${jstr(v.manifest)}`);
2379
+ parts.push(`${jstr("environment")}:${jstr(v.environment)}`);
2380
+ parts.push(`${jstr("entities")}:${v.entities === null ? "null" : `[${v.entities.map((e0) => encodeClosureEntity(e0)).join(",")}]`}`);
2381
+ parts.push(`${jstr("libraries")}:${v.libraries === null ? "null" : `[${v.libraries.map((e0) => encodeClosureEntity(e0)).join(",")}]`}`);
2382
+ parts.push(`${jstr("plugins")}:${v.plugins === null ? "null" : `[${v.plugins.map((e0) => encodeClosureEntity(e0)).join(",")}]`}`);
2383
+ parts.push(`${jstr("mappingDiagnostics")}:${v.mappingDiagnostics === null ? "null" : `[${v.mappingDiagnostics.map((e0) => jstr(e0)).join(",")}]`}`);
2384
+ parts.push(`${jstr("deprecations")}:${v.deprecations === null ? "null" : `[${v.deprecations.map((e0) => jstr(e0)).join(",")}]`}`);
2385
+ return `{${parts.join(",")}}`;
2386
+ }
2387
+ function decodeReleaseClosureResult(data) {
2388
+ return JSON.parse(data);
2389
+ }
2390
+ function encodeResolveDependenciesResult(v) {
2391
+ const parts = [];
2392
+ parts.push(`${jstr("lockfile")}:${jstr(v.lockfile)}`);
2393
+ if (v.verified !== undefined && v.verified !== false)
2394
+ parts.push(`${jstr("verified")}:${String(v.verified)}`);
2395
+ parts.push(`${jstr("entities")}:${v.entities === null ? "null" : `[${v.entities.map((e0) => encodeClosureEntity(e0)).join(",")}]`}`);
2396
+ parts.push(`${jstr("libraries")}:${v.libraries === null ? "null" : `[${v.libraries.map((e0) => encodeClosureEntity(e0)).join(",")}]`}`);
2397
+ parts.push(`${jstr("plugins")}:${v.plugins === null ? "null" : `[${v.plugins.map((e0) => encodeClosureEntity(e0)).join(",")}]`}`);
2398
+ parts.push(`${jstr("sourceArtifacts")}:${String(v.sourceArtifacts)}`);
2399
+ parts.push(`${jstr("trustedPlugins")}:${String(v.trustedPlugins)}`);
2400
+ if (v.toolchain !== undefined)
2401
+ parts.push(`${jstr("toolchain")}:${encodeToolchainReport(v.toolchain)}`);
2402
+ parts.push(`${jstr("externalInputs")}:${String(v.externalInputs)}`);
2403
+ if (v.incompleteExternalInputs !== undefined && v.incompleteExternalInputs !== "")
2404
+ parts.push(`${jstr("incompleteExternalInputs")}:${jstr(v.incompleteExternalInputs)}`);
2405
+ if (v.notices !== undefined && v.notices.length > 0)
2406
+ parts.push(`${jstr("notices")}:${`[${v.notices.map((e0) => jstr(e0)).join(",")}]`}`);
2407
+ return `{${parts.join(",")}}`;
2408
+ }
2409
+ function decodeResolveDependenciesResult(data) {
2410
+ return JSON.parse(data);
2411
+ }
2412
+ function encodePinResult(v) {
2413
+ const parts = [];
2414
+ parts.push(`${jstr("entity")}:${jstr(v.entity)}`);
2415
+ parts.push(`${jstr("kind")}:${jstr(v.kind)}`);
2416
+ parts.push(`${jstr("name")}:${jstr(v.name)}`);
2417
+ parts.push(`${jstr("pinnable")}:${String(v.pinnable)}`);
2418
+ if (v.lock !== undefined && v.lock !== "")
2419
+ parts.push(`${jstr("lock")}:${jstr(v.lock)}`);
2420
+ parts.push(`${jstr("changed")}:${String(v.changed)}`);
2421
+ if (v.removed !== undefined && v.removed !== false)
2422
+ parts.push(`${jstr("removed")}:${String(v.removed)}`);
2423
+ if (v.dryRun !== undefined && v.dryRun !== false)
2424
+ parts.push(`${jstr("dryRun")}:${String(v.dryRun)}`);
2425
+ if (v.pins !== undefined && v.pins.length > 0)
2426
+ parts.push(`${jstr("pins")}:${`[${v.pins.map((e0) => encodePinClassCount(e0)).join(",")}]`}`);
2427
+ if (v.content !== undefined && v.content !== "")
2428
+ parts.push(`${jstr("content")}:${jstr(v.content)}`);
2429
+ return `{${parts.join(",")}}`;
2430
+ }
2431
+ function decodePinResult(data) {
2432
+ return JSON.parse(data);
2433
+ }
2434
+ function encodePinClassCount(v) {
2435
+ const parts = [];
2436
+ parts.push(`${jstr("class")}:${jstr(v.class)}`);
2437
+ parts.push(`${jstr("pins")}:${String(v.pins)}`);
2438
+ return `{${parts.join(",")}}`;
2439
+ }
2440
+ function decodePinClassCount(data) {
2441
+ return JSON.parse(data);
2442
+ }
2443
+ function encodeCacheStatusResult(v) {
2444
+ const parts = [];
2445
+ parts.push(`${jstr("classes")}:${v.classes === null ? "null" : `[${v.classes.map((e0) => encodeCacheClass(e0)).join(",")}]`}`);
2446
+ parts.push(`${jstr("provenance")}:${v.provenance === null ? "null" : `[${v.provenance.map((e0) => encodeCacheProvenance(e0)).join(",")}]`}`);
2447
+ parts.push(`${jstr("totalCount")}:${String(v.totalCount)}`);
2448
+ parts.push(`${jstr("totalSize")}:${String(v.totalSize)}`);
2449
+ parts.push(`${jstr("totalSizeText")}:${jstr(v.totalSizeText)}`);
2450
+ parts.push(`${jstr("scope")}:${encodeCacheScope(v.scope)}`);
2451
+ return `{${parts.join(",")}}`;
2452
+ }
2453
+ function decodeCacheStatusResult(data) {
2454
+ return JSON.parse(data);
2455
+ }
2456
+ function encodeCachePruneResult(v) {
2457
+ const parts = [];
2458
+ parts.push(`${jstr("removed")}:${v.removed === null ? "null" : `[${v.removed.map((e0) => encodeCacheRemoval(e0)).join(",")}]`}`);
2459
+ parts.push(`${jstr("heldOpen")}:${v.heldOpen === null ? "null" : `[${v.heldOpen.map((e0) => encodeCacheRemoval(e0)).join(",")}]`}`);
2460
+ parts.push(`${jstr("retainedCount")}:${String(v.retainedCount)}`);
2461
+ parts.push(`${jstr("reclaimedBytes")}:${String(v.reclaimedBytes)}`);
2462
+ parts.push(`${jstr("reclaimedBytesText")}:${jstr(v.reclaimedBytesText)}`);
2463
+ parts.push(`${jstr("unattributedCount")}:${String(v.unattributedCount)}`);
2464
+ parts.push(`${jstr("unattributedSize")}:${String(v.unattributedSize)}`);
2465
+ parts.push(`${jstr("unattributedSizeText")}:${jstr(v.unattributedSizeText)}`);
2466
+ parts.push(`${jstr("notPruneEligible")}:${v.notPruneEligible === null ? "null" : `[${v.notPruneEligible.map((e0) => encodeCacheShortfall(e0)).join(",")}]`}`);
2467
+ parts.push(`${jstr("scope")}:${encodeCacheScope(v.scope)}`);
2468
+ return `{${parts.join(",")}}`;
2469
+ }
2470
+ function decodeCachePruneResult(data) {
2471
+ return JSON.parse(data);
2472
+ }
2473
+ function encodeCacheEvictResult(v) {
2474
+ const parts = [];
2475
+ parts.push(`${jstr("withinCapBefore")}:${String(v.withinCapBefore)}`);
2476
+ parts.push(`${jstr("removed")}:${v.removed === null ? "null" : `[${v.removed.map((e0) => encodeCacheRemoval(e0)).join(",")}]`}`);
2477
+ parts.push(`${jstr("heldOpen")}:${v.heldOpen === null ? "null" : `[${v.heldOpen.map((e0) => encodeCacheRemoval(e0)).join(",")}]`}`);
2478
+ parts.push(`${jstr("totalBefore")}:${String(v.totalBefore)}`);
2479
+ parts.push(`${jstr("totalBeforeText")}:${jstr(v.totalBeforeText)}`);
2480
+ parts.push(`${jstr("reclaimedBytes")}:${String(v.reclaimedBytes)}`);
2481
+ parts.push(`${jstr("reclaimedBytesText")}:${jstr(v.reclaimedBytesText)}`);
2482
+ parts.push(`${jstr("remainingBytes")}:${String(v.remainingBytes)}`);
2483
+ parts.push(`${jstr("remainingBytesText")}:${jstr(v.remainingBytesText)}`);
2484
+ parts.push(`${jstr("capBytes")}:${String(v.capBytes)}`);
2485
+ parts.push(`${jstr("capBytesText")}:${jstr(v.capBytesText)}`);
2486
+ parts.push(`${jstr("scope")}:${encodeCacheScope(v.scope)}`);
2487
+ return `{${parts.join(",")}}`;
2488
+ }
2489
+ function decodeCacheEvictResult(data) {
2490
+ return JSON.parse(data);
2491
+ }
2492
+ function encodeCacheClearResult(v) {
2493
+ const parts = [];
2494
+ parts.push(`${jstr("cleared")}:${v.cleared === null ? "null" : `[${v.cleared.map((e0) => encodeCacheCleared(e0)).join(",")}]`}`);
2495
+ parts.push(`${jstr("reclaimedBytes")}:${String(v.reclaimedBytes)}`);
2496
+ parts.push(`${jstr("reclaimedBytesText")}:${jstr(v.reclaimedBytesText)}`);
2497
+ parts.push(`${jstr("scope")}:${encodeCacheScope(v.scope)}`);
2498
+ return `{${parts.join(",")}}`;
2499
+ }
2500
+ function decodeCacheClearResult(data) {
2501
+ return JSON.parse(data);
2502
+ }
2503
+ function encodeRegistryListResult(v) {
2504
+ const parts = [];
2505
+ parts.push(`${jstr("registries")}:${v.registries === null ? "null" : `[${v.registries.map((e0) => encodeRegistry(e0)).join(",")}]`}`);
2506
+ parts.push(`${jstr("credentialStateIsMachineWide")}:${String(v.credentialStateIsMachineWide)}`);
2507
+ return `{${parts.join(",")}}`;
2508
+ }
2509
+ function decodeRegistryListResult(data) {
2510
+ return JSON.parse(data);
2511
+ }
2512
+ function encodeSearchResult(v) {
2513
+ const parts = [];
2514
+ parts.push(`${jstr("records")}:${v.records === null ? "null" : `[${v.records.map((e0) => encodeRegistrySearchRecord(e0)).join(",")}]`}`);
2515
+ parts.push(`${jstr("indexes")}:${v.indexes === null ? "null" : `[${v.indexes.map((e0) => encodeRegistrySearchIndex(e0)).join(",")}]`}`);
2516
+ parts.push(`${jstr("missingIndexHosts")}:${v.missingIndexHosts === null ? "null" : `[${v.missingIndexHosts.map((e0) => jstr(e0)).join(",")}]`}`);
2517
+ parts.push(`${jstr("stale")}:${String(v.stale)}`);
2518
+ parts.push(`${jstr("registriesConfigured")}:${String(v.registriesConfigured)}`);
2519
+ return `{${parts.join(",")}}`;
2520
+ }
2521
+ function decodeSearchResult(data) {
2522
+ return JSON.parse(data);
2523
+ }
2524
+ function encodeRegistryAddResult(v) {
2525
+ const parts = [];
2526
+ parts.push(`${jstr("host")}:${jstr(v.host)}`);
2527
+ parts.push(`${jstr("scope")}:${encodeConfigWriteScope(v.scope)}`);
2528
+ parts.push(`${jstr("trust")}:${encodeTrustFetchOutcome(v.trust)}`);
2529
+ return `{${parts.join(",")}}`;
2530
+ }
2531
+ function decodeRegistryAddResult(data) {
2532
+ return JSON.parse(data);
2533
+ }
2534
+ function encodeRegistryRemoveResult(v) {
2535
+ const parts = [];
2536
+ parts.push(`${jstr("host")}:${jstr(v.host)}`);
2537
+ parts.push(`${jstr("scope")}:${encodeConfigWriteScope(v.scope)}`);
2538
+ return `{${parts.join(",")}}`;
2539
+ }
2540
+ function decodeRegistryRemoveResult(data) {
2541
+ return JSON.parse(data);
2542
+ }
2543
+ function encodeRegistryUpdateResult(v) {
2544
+ const parts = [];
2545
+ parts.push(`${jstr("hosts")}:${v.hosts === null ? "null" : `[${v.hosts.map((e0) => encodeHostUpdate(e0)).join(",")}]`}`);
2546
+ parts.push(`${jstr("failed")}:${v.failed === null ? "null" : `[${v.failed.map((e0) => jstr(e0)).join(",")}]`}`);
2547
+ parts.push(`${jstr("indexRoot")}:${jstr(v.indexRoot)}`);
2548
+ parts.push(`${jstr("registriesConfigured")}:${String(v.registriesConfigured)}`);
2549
+ parts.push(`${jstr("reachedRegistries")}:${String(v.reachedRegistries)}`);
2550
+ return `{${parts.join(",")}}`;
2551
+ }
2552
+ function decodeRegistryUpdateResult(data) {
2553
+ return JSON.parse(data);
2554
+ }
2555
+ function encodeLogoutResult(v) {
2556
+ const parts = [];
2557
+ parts.push(`${jstr("registry")}:${jstr(v.registry)}`);
2558
+ parts.push(`${jstr("scope")}:${encodeCredentialStoreScope(v.scope)}`);
2559
+ return `{${parts.join(",")}}`;
2560
+ }
2561
+ function decodeLogoutResult(data) {
2562
+ return JSON.parse(data);
2563
+ }
2564
+ function encodePublishEntityResult(v) {
2565
+ const parts = [];
2566
+ parts.push(`${jstr("reference")}:${jstr(v.reference)}`);
2567
+ parts.push(`${jstr("tag")}:${jstr(v.tag)}`);
2568
+ parts.push(`${jstr("kind")}:${jstr(v.kind)}`);
2569
+ parts.push(`${jstr("mediaType")}:${jstr(v.mediaType)}`);
2570
+ parts.push(`${jstr("size")}:${String(v.size)}`);
2571
+ parts.push(`${jstr("sizeText")}:${jstr(v.sizeText)}`);
2572
+ if (v.pluginSize !== undefined && v.pluginSize !== 0)
2573
+ parts.push(`${jstr("pluginSize")}:${String(v.pluginSize)}`);
2574
+ if (v.pluginSizeText !== undefined && v.pluginSizeText !== "")
2575
+ parts.push(`${jstr("pluginSizeText")}:${jstr(v.pluginSizeText)}`);
2576
+ parts.push(`${jstr("digest")}:${jstr(v.digest)}`);
2577
+ parts.push(`${jstr("signed")}:${String(v.signed)}`);
2578
+ parts.push(`${jstr("alreadyPublished")}:${String(v.alreadyPublished)}`);
2579
+ parts.push(`${jstr("dryRun")}:${String(v.dryRun)}`);
2580
+ parts.push(`${jstr("reach")}:${encodePublicationReach(v.reach)}`);
2581
+ if (v.pin !== undefined)
2582
+ parts.push(`${jstr("pin")}:${encodePinResult(v.pin)}`);
2583
+ if (v.wholeDirectorySource !== undefined && v.wholeDirectorySource !== "")
2584
+ parts.push(`${jstr("wholeDirectorySource")}:${jstr(v.wholeDirectorySource)}`);
2585
+ if (v.windowsUnusableEntries !== undefined && v.windowsUnusableEntries.length > 0)
2586
+ parts.push(`${jstr("windowsUnusableEntries")}:${`[${v.windowsUnusableEntries.map((e0) => jstr(e0)).join(",")}]`}`);
2587
+ return `{${parts.join(",")}}`;
2588
+ }
2589
+ function decodePublishEntityResult(data) {
2590
+ return JSON.parse(data);
2591
+ }
2592
+ function encodePublishArtifactResult(v) {
2593
+ const parts = [];
2594
+ parts.push(`${jstr("reference")}:${jstr(v.reference)}`);
2595
+ parts.push(`${jstr("tag")}:${jstr(v.tag)}`);
2596
+ parts.push(`${jstr("mediaType")}:${jstr(v.mediaType)}`);
2597
+ parts.push(`${jstr("size")}:${String(v.size)}`);
2598
+ parts.push(`${jstr("sizeText")}:${jstr(v.sizeText)}`);
2599
+ parts.push(`${jstr("digest")}:${jstr(v.digest)}`);
2600
+ parts.push(`${jstr("alreadyPublished")}:${String(v.alreadyPublished)}`);
2601
+ parts.push(`${jstr("dryRun")}:${String(v.dryRun)}`);
2602
+ parts.push(`${jstr("reach")}:${encodePublicationReach(v.reach)}`);
2603
+ return `{${parts.join(",")}}`;
2604
+ }
2605
+ function decodePublishArtifactResult(data) {
2606
+ return JSON.parse(data);
2607
+ }
2608
+ function encodeSignArtifactsResult(v) {
2609
+ const parts = [];
2610
+ parts.push(`${jstr("signed")}:${v.signed === null ? "null" : `[${v.signed.map((e0) => encodeSignedArtifact(e0)).join(",")}]`}`);
2611
+ parts.push(`${jstr("reach")}:${encodePublicationReach(v.reach)}`);
2612
+ return `{${parts.join(",")}}`;
2613
+ }
2614
+ function decodeSignArtifactsResult(data) {
2615
+ return JSON.parse(data);
2616
+ }
2617
+ function encodeDeprecateArtifactResult(v) {
2618
+ const parts = [];
2619
+ parts.push(`${jstr("marked")}:${v.marked === null ? "null" : `[${v.marked.map((e0) => encodeDeprecationMarked(e0)).join(",")}]`}`);
2620
+ parts.push(`${jstr("reach")}:${encodePublicationReach(v.reach)}`);
2621
+ return `{${parts.join(",")}}`;
2622
+ }
2623
+ function decodeDeprecateArtifactResult(data) {
2624
+ return JSON.parse(data);
2625
+ }
2626
+ function encodeResolveResult(v) {
2627
+ const parts = [];
2628
+ parts.push(`${jstr("location")}:${encodeOpaque(v.location)}`);
2629
+ return `{${parts.join(",")}}`;
2630
+ }
2631
+ function decodeResolveResult(data) {
2632
+ return JSON.parse(data);
2633
+ }
2634
+ function encodeFindReferencesResult(v) {
2635
+ const parts = [];
2636
+ parts.push(`${jstr("locations")}:${v.locations === null ? "null" : `[${v.locations.map((e0) => encodeLocation(e0)).join(",")}]`}`);
2637
+ return `{${parts.join(",")}}`;
2638
+ }
2639
+ function decodeFindReferencesResult(data) {
2640
+ return JSON.parse(data);
2641
+ }
2642
+ function encodeFindImplementationsResult(v) {
2643
+ const parts = [];
2644
+ parts.push(`${jstr("locations")}:${v.locations === null ? "null" : `[${v.locations.map((e0) => encodeLocation(e0)).join(",")}]`}`);
2645
+ return `{${parts.join(",")}}`;
2646
+ }
2647
+ function decodeFindImplementationsResult(data) {
2648
+ return JSON.parse(data);
2649
+ }
2650
+ function encodeHoverResult(v) {
2651
+ const parts = [];
2652
+ parts.push(`${jstr("contents")}:${encodeOpaque(v.contents)}`);
2653
+ return `{${parts.join(",")}}`;
2654
+ }
2655
+ function decodeHoverResult(data) {
2656
+ return JSON.parse(data);
2657
+ }
2658
+ function encodeCompletionResult(v) {
2659
+ const parts = [];
2660
+ parts.push(`${jstr("items")}:${v.items === null ? "null" : `[${v.items.map((e0) => encodeCompletionItem(e0)).join(",")}]`}`);
2661
+ return `{${parts.join(",")}}`;
2662
+ }
2663
+ function decodeCompletionResult(data) {
2664
+ return JSON.parse(data);
2665
+ }
2666
+ function encodeCatalogIndexResult(v) {
2667
+ const parts = [];
2668
+ parts.push(`${jstr("entities")}:${v.entities === null ? "null" : `[${v.entities.map((e0) => encodeCatalogEntity(e0)).join(",")}]`}`);
2669
+ parts.push(`${jstr("unreadLinkedDirs")}:${`[${v.unreadLinkedDirs.map((e0) => jstr(e0)).join(",")}]`}`);
2670
+ parts.push(`${jstr("unreadLinkedFiles")}:${`[${v.unreadLinkedFiles.map((e0) => jstr(e0)).join(",")}]`}`);
2671
+ return `{${parts.join(",")}}`;
2672
+ }
2673
+ function decodeCatalogIndexResult(data) {
2674
+ return JSON.parse(data);
2675
+ }
2676
+ function encodeAttachCandidatesResult(v) {
2677
+ const parts = [];
2678
+ parts.push(`${jstr("node")}:${jstr(v.node)}`);
2679
+ parts.push(`${jstr("nodeLabels")}:${v.nodeLabels === null ? "null" : `{${Object.keys(v.nodeLabels).sort().map((k0) => `${jstr(k0)}:${jstr(v.nodeLabels[k0])}`).join(",")}}`}`);
2680
+ parts.push(`${jstr("labelSource")}:${jstr(v.labelSource)}`);
2681
+ parts.push(`${jstr("candidates")}:${v.candidates === null ? "null" : `[${v.candidates.map((e0) => encodeSourcedEntityRef(e0)).join(",")}]`}`);
2682
+ if (v.slots !== undefined && v.slots.length > 0)
2683
+ parts.push(`${jstr("slots")}:${`[${v.slots.map((e0) => encodeSlotCandidacy(e0)).join(",")}]`}`);
2684
+ if (v.noSlotReason !== undefined && v.noSlotReason !== "")
2685
+ parts.push(`${jstr("noSlotReason")}:${jstr(v.noSlotReason)}`);
2686
+ return `{${parts.join(",")}}`;
2687
+ }
2688
+ function decodeAttachCandidatesResult(data) {
2689
+ return JSON.parse(data);
2690
+ }
2691
+ function encodeConnectionCandidatesResult(v) {
2692
+ const parts = [];
2693
+ parts.push(`${jstr("node")}:${jstr(v.node)}`);
2694
+ parts.push(`${jstr("adHocSocketsAccepted")}:${String(v.adHocSocketsAccepted)}`);
2695
+ parts.push(`${jstr("sockets")}:${v.sockets === null ? "null" : `[${v.sockets.map((e0) => encodeSocketCandidacy(e0)).join(",")}]`}`);
2696
+ return `{${parts.join(",")}}`;
2697
+ }
2698
+ function decodeConnectionCandidatesResult(data) {
2699
+ return JSON.parse(data);
2700
+ }
2701
+ function encodeInsertionPointResult(v) {
2702
+ const parts = [];
2703
+ parts.push(`${jstr("file")}:${jstr(v.file)}`);
2704
+ parts.push(`${jstr("container")}:${v.container === null ? "null" : `[${v.container.map((e0) => jstr(e0)).join(",")}]`}`);
2705
+ parts.push(`${jstr("positionEncoding")}:${jstr(v.positionEncoding)}`);
2706
+ parts.push(`${jstr("position")}:${encodePosition(v.position)}`);
2707
+ parts.push(`${jstr("precededByLineBreak")}:${String(v.precededByLineBreak)}`);
2708
+ parts.push(`${jstr("missingContainerKeys")}:${v.missingContainerKeys === null ? "null" : `[${v.missingContainerKeys.map((e0) => jstr(e0)).join(",")}]`}`);
2709
+ parts.push(`${jstr("entryIndent")}:${String(v.entryIndent)}`);
2710
+ parts.push(`${jstr("indentStep")}:${String(v.indentStep)}`);
2711
+ parts.push(`${jstr("indentStepMeasured")}:${String(v.indentStepMeasured)}`);
2712
+ parts.push(`${jstr("entryShape")}:${jstr(v.entryShape)}`);
2713
+ return `{${parts.join(",")}}`;
2714
+ }
2715
+ function decodeInsertionPointResult(data) {
2716
+ return JSON.parse(data);
2717
+ }
2718
+ function encodeAttachmentContainerResult(v) {
2719
+ const parts = [];
2720
+ parts.push(`${jstr("node")}:${jstr(v.node)}`);
2721
+ parts.push(`${jstr("file")}:${jstr(v.file)}`);
2722
+ parts.push(`${jstr("container")}:${v.container === null ? "null" : `[${v.container.map((e0) => jstr(e0)).join(",")}]`}`);
2723
+ return `{${parts.join(",")}}`;
2724
+ }
2725
+ function decodeAttachmentContainerResult(data) {
2726
+ return JSON.parse(data);
2727
+ }
2728
+ function encodeConnectionAtPositionResult(v) {
2729
+ const parts = [];
2730
+ if (v.graphNode !== undefined && v.graphNode !== "")
2731
+ parts.push(`${jstr("graphNode")}:${jstr(v.graphNode)}`);
2732
+ if (v.connection !== undefined)
2733
+ parts.push(`${jstr("connection")}:${encodeConnectionCoordinate(v.connection)}`);
2734
+ if (v.noConnectionReason !== undefined && v.noConnectionReason !== "")
2735
+ parts.push(`${jstr("noConnectionReason")}:${jstr(v.noConnectionReason)}`);
2736
+ return `{${parts.join(",")}}`;
2737
+ }
2738
+ function decodeConnectionAtPositionResult(data) {
2739
+ return JSON.parse(data);
2740
+ }
2741
+ function encodeReleaseCandidatesResult(v) {
2742
+ const parts = [];
2743
+ parts.push(`${jstr("releases")}:${v.releases === null ? "null" : `[${v.releases.map((e0) => jstr(e0)).join(",")}]`}`);
2744
+ parts.push(`${jstr("lockfiles")}:${`{${Object.keys(v.lockfiles).sort().map((k0) => `${jstr(k0)}:${jstr(v.lockfiles[k0])}`).join(",")}}`}`);
2745
+ parts.push(`${jstr("unreadLinkedDirs")}:${`[${v.unreadLinkedDirs.map((e0) => jstr(e0)).join(",")}]`}`);
2746
+ parts.push(`${jstr("unreadLinkedFiles")}:${`[${v.unreadLinkedFiles.map((e0) => jstr(e0)).join(",")}]`}`);
2747
+ return `{${parts.join(",")}}`;
2748
+ }
2749
+ function decodeReleaseCandidatesResult(data) {
2750
+ return JSON.parse(data);
2751
+ }
2752
+ function encodeActiveReleaseResult(v) {
2753
+ const parts = [];
2754
+ parts.push(`${jstr("release")}:${jstr(v.release)}`);
2755
+ if (v.lockfile !== undefined && v.lockfile !== "")
2756
+ parts.push(`${jstr("lockfile")}:${jstr(v.lockfile)}`);
2757
+ if (v.reason !== undefined && v.reason !== "")
2758
+ parts.push(`${jstr("reason")}:${jstr(v.reason)}`);
2759
+ if (v.trace !== undefined && v.trace !== "")
2760
+ parts.push(`${jstr("trace")}:${jstr(v.trace)}`);
2761
+ return `{${parts.join(",")}}`;
2762
+ }
2763
+ function decodeActiveReleaseResult(data) {
2764
+ return JSON.parse(data);
2765
+ }
2766
+ function encodeEditDocumentResult(v) {
2767
+ const parts = [];
2768
+ parts.push(`${jstr("file")}:${jstr(v.file)}`);
2769
+ parts.push(`${jstr("edit")}:${jstr(v.edit)}`);
2770
+ parts.push(`${jstr("container")}:${v.container === null ? "null" : `[${v.container.map((e0) => jstr(e0)).join(",")}]`}`);
2771
+ parts.push(`${jstr("createdContainers")}:${v.createdContainers === null ? "null" : `[${v.createdContainers.map((e0) => jstr(e0)).join(",")}]`}`);
2772
+ parts.push(`${jstr("written")}:${v.written === null ? "null" : `[${v.written.map((e0) => jstr(e0)).join(",")}]`}`);
2773
+ parts.push(`${jstr("content")}:${jstr(v.content)}`);
2774
+ return `{${parts.join(",")}}`;
2775
+ }
2776
+ function decodeEditDocumentResult(data) {
2777
+ return JSON.parse(data);
2778
+ }
2779
+ function encodeEffectiveConfigurationResult(v) {
2780
+ const parts = [];
2781
+ parts.push(`${jstr("layers")}:${v.layers === null ? "null" : `[${v.layers.map((e0) => jstr(e0)).join(",")}]`}`);
2782
+ parts.push(`${jstr("settings")}:${v.settings === null ? "null" : `[${v.settings.map((e0) => encodeEffectiveConfigurationSetting(e0)).join(",")}]`}`);
2783
+ return `{${parts.join(",")}}`;
2784
+ }
2785
+ function decodeEffectiveConfigurationResult(data) {
2786
+ return JSON.parse(data);
2787
+ }
2788
+ function encodeConfigInitResult(v) {
2789
+ const parts = [];
2790
+ parts.push(`${jstr("host")}:${jstr(v.host)}`);
2791
+ parts.push(`${jstr("scope")}:${encodeConfigWriteScope(v.scope)}`);
2792
+ parts.push(`${jstr("trust")}:${encodeTrustFetchOutcome(v.trust)}`);
2793
+ parts.push(`${jstr("written")}:${String(v.written)}`);
2794
+ if (v.existed !== undefined && v.existed !== false)
2795
+ parts.push(`${jstr("existed")}:${String(v.existed)}`);
2796
+ if (v.content !== undefined && v.content !== "")
2797
+ parts.push(`${jstr("content")}:${jstr(v.content)}`);
2798
+ return `{${parts.join(",")}}`;
2799
+ }
2800
+ function decodeConfigInitResult(data) {
2801
+ return JSON.parse(data);
2802
+ }
2803
+ function encodeConfigCaptureResult(v) {
2804
+ const parts = [];
2805
+ parts.push(`${jstr("configFile")}:${jstr(v.configFile)}`);
2806
+ parts.push(`${jstr("workspaceRoot")}:${jstr(v.workspaceRoot)}`);
2807
+ parts.push(`${jstr("captured")}:${String(v.captured)}`);
2808
+ parts.push(`${jstr("sockets")}:${v.sockets === null ? "null" : `[${v.sockets.map((e0) => encodeConfigCapturedSocket(e0)).join(",")}]`}`);
2809
+ parts.push(`${jstr("catalogDirs")}:${v.catalogDirs === null ? "null" : `[${v.catalogDirs.map((e0) => jstr(e0)).join(",")}]`}`);
2810
+ return `{${parts.join(",")}}`;
2811
+ }
2812
+ function decodeConfigCaptureResult(data) {
2813
+ return JSON.parse(data);
2814
+ }
2815
+ function encodeImportResult(v) {
2816
+ const parts = [];
2817
+ parts.push(`${jstr("format")}:${jstr(v.format)}`);
2818
+ parts.push(`${jstr("outputDir")}:${jstr(v.outputDir)}`);
2819
+ parts.push(`${jstr("written")}:${v.written === null ? "null" : `[${v.written.map((e0) => jstr(e0)).join(",")}]`}`);
2820
+ parts.push(`${jstr("files")}:${v.files === null ? "null" : `[${v.files.map((e0) => encodeImportedFile(e0)).join(",")}]`}`);
2821
+ parts.push(`${jstr("drift")}:${`[${v.drift.map((e0) => encodeImportDrift(e0)).join(",")}]`}`);
2822
+ parts.push(`${jstr("diagnostics")}:${v.diagnostics === null ? "null" : `[${v.diagnostics.map((e0) => encodeImportDiagnostic(e0)).join(",")}]`}`);
2823
+ parts.push(`${jstr("decisions")}:${`[${v.decisions.map((e0) => encodeImportDecision(e0)).join(",")}]`}`);
2824
+ if (v.owed !== undefined && v.owed.length > 0)
2825
+ parts.push(`${jstr("owed")}:${`[${v.owed.map((e0) => encodeImportOwed(e0)).join(",")}]`}`);
2826
+ parts.push(`${jstr("halted")}:${String(v.halted)}`);
2827
+ return `{${parts.join(",")}}`;
2828
+ }
2829
+ function decodeImportResult(data) {
2830
+ return JSON.parse(data);
2831
+ }
2832
+ function encodeScaffoldEntityResult(v) {
2833
+ const parts = [];
2834
+ if (v.kind !== undefined && v.kind !== "")
2835
+ parts.push(`${jstr("kind")}:${jstr(v.kind)}`);
2836
+ if (v.skeleton !== undefined && v.skeleton !== "")
2837
+ parts.push(`${jstr("skeleton")}:${jstr(v.skeleton)}`);
2838
+ if (v.examples !== undefined && v.examples.length > 0)
2839
+ parts.push(`${jstr("examples")}:${`[${v.examples.map((e0) => encodeScaffoldExample(e0)).join(",")}]`}`);
2840
+ if (v.example !== undefined && v.example !== "")
2841
+ parts.push(`${jstr("example")}:${jstr(v.example)}`);
2842
+ if (v.dir !== undefined && v.dir !== "")
2843
+ parts.push(`${jstr("dir")}:${jstr(v.dir)}`);
2844
+ if (v.files !== undefined && v.files.length > 0)
2845
+ parts.push(`${jstr("files")}:${`[${v.files.map((e0) => jstr(e0)).join(",")}]`}`);
2846
+ if (v.next !== undefined && v.next.length > 0)
2847
+ parts.push(`${jstr("next")}:${`[${v.next.map((e0) => jstr(e0)).join(",")}]`}`);
2848
+ if (v.version !== undefined && v.version !== "")
2849
+ parts.push(`${jstr("version")}:${jstr(v.version)}`);
2850
+ return `{${parts.join(",")}}`;
2851
+ }
2852
+ function decodeScaffoldEntityResult(data) {
2853
+ return JSON.parse(data);
2854
+ }
2855
+ function encodeScaffoldExample(v) {
2856
+ const parts = [];
2857
+ parts.push(`${jstr("name")}:${jstr(v.name)}`);
2858
+ parts.push(`${jstr("level")}:${jstr(v.level)}`);
2859
+ parts.push(`${jstr("summary")}:${jstr(v.summary)}`);
2860
+ return `{${parts.join(",")}}`;
2861
+ }
2862
+ function decodeScaffoldExample(data) {
2863
+ return JSON.parse(data);
2864
+ }
2865
+ function encodeLintResult(v) {
2866
+ const parts = [];
2867
+ if (v.entity !== undefined && v.entity !== "")
2868
+ parts.push(`${jstr("entity")}:${jstr(v.entity)}`);
2869
+ if (v.release !== undefined && v.release !== "")
2870
+ parts.push(`${jstr("release")}:${jstr(v.release)}`);
2871
+ parts.push(`${jstr("checked")}:${String(v.checked)}`);
2872
+ parts.push(`${jstr("findings")}:${String(v.findings)}`);
2873
+ parts.push(`${jstr("errors")}:${String(v.errors)}`);
2874
+ parts.push(`${jstr("warnings")}:${String(v.warnings)}`);
2875
+ parts.push(`${jstr("infos")}:${String(v.infos)}`);
2876
+ parts.push(`${jstr("files")}:${v.files === null ? "null" : `[${v.files.map((e0) => encodeLintFileFindings(e0)).join(",")}]`}`);
2877
+ parts.push(`${jstr("halted")}:${String(v.halted)}`);
2878
+ if (v.passes !== undefined && v.passes !== null && v.passes.length > 0)
2879
+ parts.push(`${jstr("passes")}:${`[${v.passes.map((e0) => encodeLintPass(e0)).join(",")}]`}`);
2880
+ return `{${parts.join(",")}}`;
2881
+ }
2882
+ function decodeLintResult(data) {
2883
+ return JSON.parse(data);
2884
+ }
2885
+ function encodeLintPass(v) {
2886
+ const parts = [];
2887
+ parts.push(`${jstr("releases")}:${v.releases === null ? "null" : `[${v.releases.map((e0) => jstr(e0)).join(",")}]`}`);
2888
+ parts.push(`${jstr("catalogDirs")}:${v.catalogDirs === null ? "null" : `[${v.catalogDirs.map((e0) => jstr(e0)).join(",")}]`}`);
2889
+ parts.push(`${jstr("checked")}:${String(v.checked)}`);
2890
+ parts.push(`${jstr("findings")}:${String(v.findings)}`);
2891
+ parts.push(`${jstr("errors")}:${String(v.errors)}`);
2892
+ parts.push(`${jstr("warnings")}:${String(v.warnings)}`);
2893
+ parts.push(`${jstr("infos")}:${String(v.infos)}`);
2894
+ parts.push(`${jstr("files")}:${v.files === null ? "null" : `[${v.files.map((e0) => encodeLintFileFindings(e0)).join(",")}]`}`);
2895
+ return `{${parts.join(",")}}`;
2896
+ }
2897
+ function decodeLintPass(data) {
2898
+ return JSON.parse(data);
2899
+ }
2900
+ function encodePluginAddResult(v) {
2901
+ const parts = [];
2902
+ parts.push(`${jstr("type")}:${jstr(v.type)}`);
2903
+ if (v.identity !== undefined && v.identity !== "")
2904
+ parts.push(`${jstr("identity")}:${jstr(v.identity)}`);
2905
+ if (v.uri !== undefined && v.uri !== "")
2906
+ parts.push(`${jstr("uri")}:${jstr(v.uri)}`);
2907
+ if (v.capability !== undefined && v.capability !== "")
2908
+ parts.push(`${jstr("capability")}:${jstr(v.capability)}`);
2909
+ if (v.reference !== undefined && v.reference !== "")
2910
+ parts.push(`${jstr("reference")}:${jstr(v.reference)}`);
2911
+ parts.push(`${jstr("scope")}:${encodePluginWriteScope(v.scope)}`);
2912
+ parts.push(`${jstr("written")}:${String(v.written)}`);
2913
+ if (v.content !== undefined && v.content !== "")
2914
+ parts.push(`${jstr("content")}:${jstr(v.content)}`);
2915
+ if (v.retraction !== undefined)
2916
+ parts.push(`${jstr("retraction")}:${encodePluginRetraction(v.retraction)}`);
2917
+ if (v.withdrawn !== undefined && v.withdrawn !== false)
2918
+ parts.push(`${jstr("withdrawn")}:${String(v.withdrawn)}`);
2919
+ return `{${parts.join(",")}}`;
2920
+ }
2921
+ function decodePluginAddResult(data) {
2922
+ return JSON.parse(data);
2923
+ }
2924
+ function encodePluginRemoveResult(v) {
2925
+ const parts = [];
2926
+ parts.push(`${jstr("type")}:${jstr(v.type)}`);
2927
+ parts.push(`${jstr("query")}:${jstr(v.query)}`);
2928
+ parts.push(`${jstr("scope")}:${encodePluginWriteScope(v.scope)}`);
2929
+ return `{${parts.join(",")}}`;
2930
+ }
2931
+ function decodePluginRemoveResult(data) {
2932
+ return JSON.parse(data);
2933
+ }
2934
+ function encodePluginSyncResult(v) {
2935
+ const parts = [];
2936
+ parts.push(`${jstr("entity")}:${jstr(v.entity)}`);
2937
+ parts.push(`${jstr("hostFunctions")}:${v.hostFunctions === null ? "null" : `[${v.hostFunctions.map((e0) => jstr(e0)).join(",")}]`}`);
2938
+ parts.push(`${jstr("commands")}:${v.commands === null ? "null" : `[${v.commands.map((e0) => encodePluginCLICommand(e0)).join(",")}]`}`);
2939
+ parts.push(`${jstr("changed")}:${String(v.changed)}`);
2940
+ return `{${parts.join(",")}}`;
2941
+ }
2942
+ function decodePluginSyncResult(data) {
2943
+ return JSON.parse(data);
2944
+ }
2945
+ function encodePluginGenCatalogResult(v) {
2946
+ const parts = [];
2947
+ if (v.documents !== undefined && v.documents.length > 0)
2948
+ parts.push(`${jstr("documents")}:${`[${v.documents.map((e0) => encodePluginGeneratedDocument(e0)).join(",")}]`}`);
2949
+ if (v.notices !== undefined && v.notices !== "")
2950
+ parts.push(`${jstr("notices")}:${jstr(v.notices)}`);
2951
+ parts.push(`${jstr("dryRun")}:${String(v.dryRun)}`);
2952
+ return `{${parts.join(",")}}`;
2953
+ }
2954
+ function decodePluginGenCatalogResult(data) {
2955
+ return JSON.parse(data);
2956
+ }
2957
+ function encodeExplainErrorResult(v) {
2958
+ const parts = [];
2959
+ parts.push(`${jstr("shortCode")}:${jstr(v.shortCode)}`);
2960
+ parts.push(`${jstr("code")}:${jstr(v.code)}`);
2961
+ parts.push(`${jstr("message")}:${jstr(v.message)}`);
2962
+ if (v.entries !== undefined && v.entries.length > 0)
2963
+ parts.push(`${jstr("entries")}:${`[${v.entries.map((e0) => encodeExplainErrorEntry(e0)).join(",")}]`}`);
2964
+ parts.push(`${jstr("reference")}:${jstr(v.reference)}`);
2965
+ if (v.note !== undefined && v.note !== "")
2966
+ parts.push(`${jstr("note")}:${jstr(v.note)}`);
2967
+ return `{${parts.join(",")}}`;
2968
+ }
2969
+ function decodeExplainErrorResult(data) {
2970
+ return JSON.parse(data);
2971
+ }
2972
+ function encodeGetSchemaResult(v) {
2973
+ const parts = [];
2974
+ if (v.kind !== undefined && v.kind !== "")
2975
+ parts.push(`${jstr("kind")}:${jstr(v.kind)}`);
2976
+ if (v.schema !== undefined && v.schema !== null)
2977
+ parts.push(`${jstr("schema")}:${encodeOpaque(v.schema)}`);
2978
+ if (v.kinds !== undefined && v.kinds.length > 0)
2979
+ parts.push(`${jstr("kinds")}:${`[${v.kinds.map((e0) => jstr(e0)).join(",")}]`}`);
2980
+ if (v.entityKinds !== undefined && v.entityKinds.length > 0)
2981
+ parts.push(`${jstr("entityKinds")}:${`[${v.entityKinds.map((e0) => encodeEntityKindDescriptor(e0)).join(",")}]`}`);
2982
+ return `{${parts.join(",")}}`;
2983
+ }
2984
+ function decodeGetSchemaResult(data) {
2985
+ return JSON.parse(data);
2986
+ }
2987
+ function encodeSkillsInstallResult(v) {
2988
+ const parts = [];
2989
+ parts.push(`${jstr("skill")}:${jstr(v.skill)}`);
2990
+ parts.push(`${jstr("installed")}:${`[${v.installed.map((e0) => encodeSkillsInstalledFolder(e0)).join(",")}]`}`);
2991
+ parts.push(`${jstr("scope")}:${encodeSkillFolderScope(v.scope)}`);
2992
+ return `{${parts.join(",")}}`;
2993
+ }
2994
+ function decodeSkillsInstallResult(data) {
2995
+ return JSON.parse(data);
2996
+ }
2997
+ function encodeSkillsInstalledFolder(v) {
2998
+ const parts = [];
2999
+ parts.push(`${jstr("agents")}:${`[${v.agents.map((e0) => jstr(e0)).join(",")}]`}`);
3000
+ parts.push(`${jstr("folder")}:${jstr(v.folder)}`);
3001
+ parts.push(`${jstr("replaced")}:${String(v.replaced)}`);
3002
+ return `{${parts.join(",")}}`;
3003
+ }
3004
+ function decodeSkillsInstalledFolder(data) {
3005
+ return JSON.parse(data);
3006
+ }
3007
+ function encodeSkillsListResult(v) {
3008
+ const parts = [];
3009
+ parts.push(`${jstr("skills")}:${`[${v.skills.map((e0) => encodeSkillsListedSkill(e0)).join(",")}]`}`);
3010
+ parts.push(`${jstr("agents")}:${`[${v.agents.map((e0) => encodeSkillsListedAgent(e0)).join(",")}]`}`);
3011
+ return `{${parts.join(",")}}`;
3012
+ }
3013
+ function decodeSkillsListResult(data) {
3014
+ return JSON.parse(data);
3015
+ }
3016
+ function encodeSkillsListedSkill(v) {
3017
+ const parts = [];
3018
+ parts.push(`${jstr("name")}:${jstr(v.name)}`);
3019
+ parts.push(`${jstr("description")}:${jstr(v.description)}`);
3020
+ return `{${parts.join(",")}}`;
3021
+ }
3022
+ function decodeSkillsListedSkill(data) {
3023
+ return JSON.parse(data);
3024
+ }
3025
+ function encodeSkillsListedAgent(v) {
3026
+ const parts = [];
3027
+ parts.push(`${jstr("id")}:${jstr(v.id)}`);
3028
+ parts.push(`${jstr("name")}:${jstr(v.name)}`);
3029
+ parts.push(`${jstr("projectFolder")}:${jstr(v.projectFolder)}`);
3030
+ parts.push(`${jstr("userFolder")}:${jstr(v.userFolder)}`);
3031
+ return `{${parts.join(",")}}`;
3032
+ }
3033
+ function decodeSkillsListedAgent(data) {
3034
+ return JSON.parse(data);
3035
+ }