@rzx/ohs 1.1.13 → 1.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/frontend/index.js +12 -2
- package/dist/frontend/index.js.map +5 -5
- package/dist/index.js +19043 -18734
- package/dist/index.js.map +68 -65
- package/package.json +9 -9
package/dist/frontend/index.js
CHANGED
|
@@ -743,13 +743,23 @@ function parseServerCapabilities(value) {
|
|
|
743
743
|
features[name] = positiveInteger2(version, `features.${name}`);
|
|
744
744
|
}
|
|
745
745
|
const attachments = parseAttachmentTransferCapabilities(value.attachments);
|
|
746
|
+
const agentEnvironments = parseAgentEnvironmentCapabilities(value.agentEnvironments);
|
|
746
747
|
return {
|
|
747
748
|
serverVersion: value.serverVersion,
|
|
748
749
|
protocol: { version },
|
|
749
750
|
features,
|
|
750
|
-
...attachments ? { attachments } : {}
|
|
751
|
+
...attachments ? { attachments } : {},
|
|
752
|
+
...agentEnvironments ? { agentEnvironments } : {}
|
|
751
753
|
};
|
|
752
754
|
}
|
|
755
|
+
function parseAgentEnvironmentCapabilities(value) {
|
|
756
|
+
if (value === undefined)
|
|
757
|
+
return;
|
|
758
|
+
if (!isRecord2(value) || value.native !== true || typeof value.wsl !== "boolean") {
|
|
759
|
+
throw new Error("agentEnvironments must contain native=true and a boolean wsl value");
|
|
760
|
+
}
|
|
761
|
+
return { native: true, wsl: value.wsl };
|
|
762
|
+
}
|
|
753
763
|
function checkProtocolCompatibility(server, client) {
|
|
754
764
|
if (client.version !== server.protocol.version) {
|
|
755
765
|
return {
|
|
@@ -8134,4 +8144,4 @@ try {
|
|
|
8134
8144
|
process.exit(1);
|
|
8135
8145
|
}
|
|
8136
8146
|
|
|
8137
|
-
//# debugId=
|
|
8147
|
+
//# debugId=F04BF25428D7317964756E2164756E21
|