@nervekit/desktop 0.40.0 → 0.40.2
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/THIRD-PARTY-LICENSES.txt +5087 -485
- package/dist/{chunk-KSZJ3HGD.js → chunk-2BKMOJYJ.js} +1 -1
- package/dist/{chunk-5UT23MT6.js → chunk-3JJN36GV.js} +70 -71
- package/dist/{chunk-2Z5FLMLE.js → chunk-3SSNDIQT.js} +1 -1
- package/dist/{chunk-PUM6UCBT.js → chunk-3VZR3ZUY.js} +55 -8
- package/dist/{chunk-BXVRC3HF.js → chunk-4H3WR7IT.js} +1 -1
- package/dist/{chunk-QVHYARC2.js → chunk-4VPX67B7.js} +3 -1
- package/dist/chunk-5NN7JAJ2.js +258 -0
- package/dist/{chunk-BPOIFVQO.js → chunk-6FSDDGFZ.js} +731 -605
- package/dist/chunk-6PACEIUY.js +183 -0
- package/dist/{chunk-XNYZEQ3U.js → chunk-6TAN6WG6.js} +1 -1
- package/dist/{chunk-RWLLVZ7I.js → chunk-7FLZA2BD.js} +31 -15
- package/dist/{chunk-WTHP3VH6.js → chunk-7JQBECUL.js} +1 -1
- package/dist/{chunk-5Y3NEEOK.js → chunk-AAEIGAGD.js} +9 -9
- package/dist/{chunk-UN3GLM4U.js → chunk-ANI6J75M.js} +68 -65
- package/dist/chunk-B4IE2GAM.js +14 -0
- package/dist/chunk-BNVMNV4O.js +69 -0
- package/dist/{chunk-L3YB2QLN.js → chunk-C6RO4LP3.js} +2 -2
- package/dist/chunk-DTGL5P2V.js +250 -0
- package/dist/{chunk-U4DBQKHO.js → chunk-E4JNHQGT.js} +11 -9
- package/dist/chunk-EJM4HMEL.js +45 -0
- package/dist/chunk-ER2ES2RH.js +64 -0
- package/dist/{chunk-SQ7CWNIT.js → chunk-EX63VKXY.js} +1 -1
- package/dist/{chunk-JDI4D5EM.js → chunk-F3MHINI6.js} +19 -23
- package/dist/chunk-FGZX4Q7W.js +22828 -0
- package/dist/{chunk-LPCHTKEK.js → chunk-FZ5N6WXF.js} +31 -160
- package/dist/chunk-H2G55ZPG.js +783 -0
- package/dist/chunk-HDBDYGJQ.js +40 -0
- package/dist/{chunk-RU6S57LK.js → chunk-HOCODVKL.js} +22 -24
- package/dist/chunk-JCF3ZRP4.js +481 -0
- package/dist/chunk-K2J2VZXO.js +142 -0
- package/dist/chunk-KBNEZR7T.js +135 -0
- package/dist/chunk-KSSM6LUI.js +340 -0
- package/dist/{chunk-HHUSIAK3.js → chunk-KTGSBL6T.js} +14 -17
- package/dist/chunk-L2DHKP5C.js +42 -0
- package/dist/{chunk-DBXMYYPJ.js → chunk-M3ELKCNA.js} +1 -1
- package/dist/chunk-M7WTH5K5.js +822 -0
- package/dist/{chunk-LZRPWVVJ.js → chunk-MWIKZIAI.js} +9 -8
- package/dist/{chunk-AON37AL2.js → chunk-O2652RWY.js} +29 -4
- package/dist/chunk-O6U226AI.js +249 -0
- package/dist/{chunk-5R3UAHXF.js → chunk-OAEV22IW.js} +48 -26
- package/dist/chunk-OANTMDXI.js +29 -0
- package/dist/{chunk-UGDIHDAR.js → chunk-ODS5QROC.js} +1 -1
- package/dist/{chunk-Q7LPOIKN.js → chunk-OQC3F6JA.js} +3 -471
- package/dist/{chunk-YA2WJRUO.js → chunk-PST63OUS.js} +5 -5
- package/dist/{chunk-S2PITDVA.js → chunk-QBAIDKF6.js} +1 -1
- package/dist/chunk-RPLBWENJ.js +224 -0
- package/dist/{chunk-GCSWN326.js → chunk-S62LLS4I.js} +33 -55
- package/dist/chunk-SHEU5KLD.js +32 -0
- package/dist/{chunk-FESN7DND.js → chunk-SU2USXTD.js} +1 -1
- package/dist/chunk-T6NRMNLQ.js +22 -0
- package/dist/{chunk-NSA42OOT.js → chunk-TGKIV3F4.js} +53 -65
- package/dist/{chunk-MN7PZ2PH.js → chunk-TSV3PFU2.js} +2 -2
- package/dist/{chunk-D5WJKB4R.js → chunk-UDC7NPQJ.js} +4 -3
- package/dist/{chunk-CEX2GWGZ.js → chunk-VBM7TD3X.js} +1 -1
- package/dist/chunk-VC6TX2Y2.js +359 -0
- package/dist/{chunk-7FI3LC3O.js → chunk-VTDI5KP7.js} +241 -104
- package/dist/{chunk-P2GSKP6N.js → chunk-WIN7KHMV.js} +15 -18
- package/dist/chunk-WJULIJOU.js +168 -0
- package/dist/{chunk-HKLAYK2Z.js → chunk-WRTA5G57.js} +23 -0
- package/dist/{chunk-4ZNLXHTH.js → chunk-WYPVD3HW.js} +10 -9
- package/dist/{chunk-V7EAFXAX.js → chunk-XE2E2KBP.js} +10 -9
- package/dist/chunk-XY53EFK3.js +39 -0
- package/dist/chunk-XZYFB566.js +153 -0
- package/dist/{chunk-H4CDZRIE.js → chunk-YJT4NXMV.js} +5 -5
- package/dist/{chunk-ET5RYBGZ.js → chunk-YQFENES6.js} +3 -3
- package/dist/chunk-YUO5V75X.js +128 -0
- package/dist/chunk-YYLKI74V.js +8778 -0
- package/dist/daemon.js +15 -10
- package/dist/git-isolated-reader-helper.js +1 -1
- package/dist/main.js +14 -9
- package/dist/web/assets/{AsyncBashCenterHost-HGsdxUJ3.js → AsyncBashCenterHost-BvXKoCVr.js} +1 -1
- package/dist/web/assets/{ConversationsWorkbenchPanel-B6dzWkG1.js → ConversationsWorkbenchPanel-CIfK_e3I.js} +1 -1
- package/dist/web/assets/{DiscoverCenterHost-B186WBRA.js → DiscoverCenterHost-Ep8EN9iJ.js} +1 -1
- package/dist/web/assets/{FileCenterHost-DigJOU5M.js → FileCenterHost-C_7XZAFZ.js} +1 -1
- package/dist/web/assets/{FilesWorkbenchPanel-VPvx3Bmi.js → FilesWorkbenchPanel-CtXo7ywG.js} +1 -1
- package/dist/web/assets/{GitDiffCenterHost-IuZfF3hG.js → GitDiffCenterHost-Cr7lqGI_.js} +1 -1
- package/dist/web/assets/{GitWorkbenchPanel-CScC0CfH.js → GitWorkbenchPanel-BFbwUgIN.js} +1 -1
- package/dist/web/assets/{LaunchConfigurationNotice-5yb4cH27.js → LaunchConfigurationNotice-CJjWkMhv.js} +1 -1
- package/dist/web/assets/{LaunchesWorkbenchPanel-Vy0Gm7gg.js → LaunchesWorkbenchPanel-BqzJvsrj.js} +1 -1
- package/dist/web/assets/{LogsCenterHost-BXBozCYw.js → LogsCenterHost-BI1fSxFW.js} +1 -1
- package/dist/web/assets/{MermaidCenterHost-DDh4ArdK.js → MermaidCenterHost-DVsZB8nB.js} +1 -1
- package/dist/web/assets/{MobileFilesBody-Cda_7gDp.js → MobileFilesBody-BJMoaP9I.js} +1 -1
- package/dist/web/assets/{MobileFilesHost-C1jev2Un.js → MobileFilesHost-D843vkDF.js} +1 -1
- package/dist/web/assets/{MobileLaunchOutputHost-Bsv12o2H.js → MobileLaunchOutputHost-vpltMcar.js} +1 -1
- package/dist/web/assets/{MobileLaunchesHost-C9VH-2bn.js → MobileLaunchesHost-CdDrKASg.js} +1 -1
- package/dist/web/assets/{MobileLogsHost-BMDXc-WC.js → MobileLogsHost-qK7N-C1y.js} +1 -1
- package/dist/web/assets/{MobileNoteEditorHost-BA6WIY1Y.js → MobileNoteEditorHost-Bg1N8o54.js} +1 -1
- package/dist/web/assets/{MobileNotesHost-BZeYpK9H.js → MobileNotesHost-meLV39Yw.js} +1 -1
- package/dist/web/assets/{MobileProjectSettingsHost-U3Mx3EN8.js → MobileProjectSettingsHost-A49Fdn54.js} +1 -1
- package/dist/web/assets/{MobileProjectSettingsPageHost-CMvxbjfs.js → MobileProjectSettingsPageHost-BXpUqS_N.js} +1 -1
- package/dist/web/assets/{MobileSettingsHost-CP8Z_-gH.js → MobileSettingsHost-DPKPajzI.js} +1 -1
- package/dist/web/assets/{MobileSettingsPageHost-BPjXKTMV.js → MobileSettingsPageHost-izNWGN0i.js} +1 -1
- package/dist/web/assets/{MobileSettingsPageScreen-C5rHdrUU.js → MobileSettingsPageScreen-DWMg4fDo.js} +1 -1
- package/dist/web/assets/{ProjectSettingsCenterHost-BVXpBixy.js → ProjectSettingsCenterHost-DHeb274m.js} +1 -1
- package/dist/web/assets/{PullRequestCenterHost-CZhXfCX2.js → PullRequestCenterHost-BYkWxXQe.js} +1 -1
- package/dist/web/assets/{PullRequestsWorkbenchPanel-BBnZJVnI.js → PullRequestsWorkbenchPanel-ZvGbi1Cr.js} +1 -1
- package/dist/web/assets/{SearchWorkbenchPanel-qLgszneN.js → SearchWorkbenchPanel-DaC0smfe.js} +1 -1
- package/dist/web/assets/{SettingsCenter-7BfrBfiy.js → SettingsCenter-C_NLBsi6.js} +1 -1
- package/dist/web/assets/{SettingsCenterHost-Ck5uHILP.js → SettingsCenterHost-jP8MULEj.js} +1 -1
- package/dist/web/assets/{SystemPromptCenterHost-ya5AvXsd.js → SystemPromptCenterHost-B1hfsfAn.js} +1 -1
- package/dist/web/assets/{discover-B3I5g1_G.js → discover-B-aZ504j.js} +1 -1
- package/dist/web/assets/{index-FJEmK_L5.js → index-TZ1KAAsX.js} +34 -34
- package/dist/web/assets/{settings-page-controllers.svelte-CU0i08wo.js → settings-page-controllers.svelte-D_ydJF8u.js} +1 -1
- package/dist/web/assets/{shell-layout.svelte-BT2508sa.js → shell-layout.svelte-OoLFwzzJ.js} +2 -2
- package/dist/web/assets/{views-Z-n-GTYY.js → views-ByPCKDiZ.js} +1 -1
- package/dist/web/index.html +3 -3
- package/dist/web/sw.js +1 -1
- package/dist/worker.js +14 -9
- package/package.json +8 -9
- package/dist/chunk-RUZ2UAYH.js +0 -365
- package/dist/resize-worker.js +0 -168
- /package/dist/{chunk-PUM6UCBT.js.LEGAL.txt → chunk-3VZR3ZUY.js.LEGAL.txt} +0 -0
- /package/dist/{chunk-YA2WJRUO.js.LEGAL.txt → chunk-PST63OUS.js.LEGAL.txt} +0 -0
|
@@ -768,474 +768,6 @@ var require_src = __commonJS({
|
|
|
768
768
|
}
|
|
769
769
|
});
|
|
770
770
|
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
"use strict";
|
|
775
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
776
|
-
if (k2 === void 0) k2 = k;
|
|
777
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
778
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
779
|
-
desc = { enumerable: true, get: function() {
|
|
780
|
-
return m[k];
|
|
781
|
-
} };
|
|
782
|
-
}
|
|
783
|
-
Object.defineProperty(o, k2, desc);
|
|
784
|
-
}) : (function(o, m, k, k2) {
|
|
785
|
-
if (k2 === void 0) k2 = k;
|
|
786
|
-
o[k2] = m[k];
|
|
787
|
-
}));
|
|
788
|
-
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
|
|
789
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
790
|
-
}) : function(o, v) {
|
|
791
|
-
o["default"] = v;
|
|
792
|
-
});
|
|
793
|
-
var __importStar = exports && exports.__importStar || function(mod) {
|
|
794
|
-
if (mod && mod.__esModule) return mod;
|
|
795
|
-
var result = {};
|
|
796
|
-
if (mod != null) {
|
|
797
|
-
for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
798
|
-
}
|
|
799
|
-
__setModuleDefault(result, mod);
|
|
800
|
-
return result;
|
|
801
|
-
};
|
|
802
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
803
|
-
exports.req = exports.json = exports.toBuffer = void 0;
|
|
804
|
-
var http = __importStar(__require("http"));
|
|
805
|
-
var https = __importStar(__require("https"));
|
|
806
|
-
async function toBuffer(stream) {
|
|
807
|
-
let length = 0;
|
|
808
|
-
const chunks = [];
|
|
809
|
-
for await (const chunk of stream) {
|
|
810
|
-
length += chunk.length;
|
|
811
|
-
chunks.push(chunk);
|
|
812
|
-
}
|
|
813
|
-
return Buffer.concat(chunks, length);
|
|
814
|
-
}
|
|
815
|
-
exports.toBuffer = toBuffer;
|
|
816
|
-
async function json(stream) {
|
|
817
|
-
const buf = await toBuffer(stream);
|
|
818
|
-
const str = buf.toString("utf8");
|
|
819
|
-
try {
|
|
820
|
-
return JSON.parse(str);
|
|
821
|
-
} catch (_err) {
|
|
822
|
-
const err = _err;
|
|
823
|
-
err.message += ` (input: ${str})`;
|
|
824
|
-
throw err;
|
|
825
|
-
}
|
|
826
|
-
}
|
|
827
|
-
exports.json = json;
|
|
828
|
-
function req(url, opts = {}) {
|
|
829
|
-
const href = typeof url === "string" ? url : url.href;
|
|
830
|
-
const req2 = (href.startsWith("https:") ? https : http).request(url, opts);
|
|
831
|
-
const promise = new Promise((resolve, reject) => {
|
|
832
|
-
req2.once("response", resolve).once("error", reject).end();
|
|
833
|
-
});
|
|
834
|
-
req2.then = promise.then.bind(promise);
|
|
835
|
-
return req2;
|
|
836
|
-
}
|
|
837
|
-
exports.req = req;
|
|
838
|
-
}
|
|
839
|
-
});
|
|
840
|
-
|
|
841
|
-
// node_modules/.pnpm/agent-base@7.1.4/node_modules/agent-base/dist/index.js
|
|
842
|
-
var require_dist = __commonJS({
|
|
843
|
-
"node_modules/.pnpm/agent-base@7.1.4/node_modules/agent-base/dist/index.js"(exports) {
|
|
844
|
-
"use strict";
|
|
845
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
846
|
-
if (k2 === void 0) k2 = k;
|
|
847
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
848
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
849
|
-
desc = { enumerable: true, get: function() {
|
|
850
|
-
return m[k];
|
|
851
|
-
} };
|
|
852
|
-
}
|
|
853
|
-
Object.defineProperty(o, k2, desc);
|
|
854
|
-
}) : (function(o, m, k, k2) {
|
|
855
|
-
if (k2 === void 0) k2 = k;
|
|
856
|
-
o[k2] = m[k];
|
|
857
|
-
}));
|
|
858
|
-
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
|
|
859
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
860
|
-
}) : function(o, v) {
|
|
861
|
-
o["default"] = v;
|
|
862
|
-
});
|
|
863
|
-
var __importStar = exports && exports.__importStar || function(mod) {
|
|
864
|
-
if (mod && mod.__esModule) return mod;
|
|
865
|
-
var result = {};
|
|
866
|
-
if (mod != null) {
|
|
867
|
-
for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
868
|
-
}
|
|
869
|
-
__setModuleDefault(result, mod);
|
|
870
|
-
return result;
|
|
871
|
-
};
|
|
872
|
-
var __exportStar = exports && exports.__exportStar || function(m, exports2) {
|
|
873
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) __createBinding(exports2, m, p);
|
|
874
|
-
};
|
|
875
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
876
|
-
exports.Agent = void 0;
|
|
877
|
-
var net = __importStar(__require("net"));
|
|
878
|
-
var http = __importStar(__require("http"));
|
|
879
|
-
var https_1 = __require("https");
|
|
880
|
-
__exportStar(require_helpers(), exports);
|
|
881
|
-
var INTERNAL = /* @__PURE__ */ Symbol("AgentBaseInternalState");
|
|
882
|
-
var Agent = class extends http.Agent {
|
|
883
|
-
constructor(opts) {
|
|
884
|
-
super(opts);
|
|
885
|
-
this[INTERNAL] = {};
|
|
886
|
-
}
|
|
887
|
-
/**
|
|
888
|
-
* Determine whether this is an `http` or `https` request.
|
|
889
|
-
*/
|
|
890
|
-
isSecureEndpoint(options) {
|
|
891
|
-
if (options) {
|
|
892
|
-
if (typeof options.secureEndpoint === "boolean") {
|
|
893
|
-
return options.secureEndpoint;
|
|
894
|
-
}
|
|
895
|
-
if (typeof options.protocol === "string") {
|
|
896
|
-
return options.protocol === "https:";
|
|
897
|
-
}
|
|
898
|
-
}
|
|
899
|
-
const { stack } = new Error();
|
|
900
|
-
if (typeof stack !== "string")
|
|
901
|
-
return false;
|
|
902
|
-
return stack.split("\n").some((l) => l.indexOf("(https.js:") !== -1 || l.indexOf("node:https:") !== -1);
|
|
903
|
-
}
|
|
904
|
-
// In order to support async signatures in `connect()` and Node's native
|
|
905
|
-
// connection pooling in `http.Agent`, the array of sockets for each origin
|
|
906
|
-
// has to be updated synchronously. This is so the length of the array is
|
|
907
|
-
// accurate when `addRequest()` is next called. We achieve this by creating a
|
|
908
|
-
// fake socket and adding it to `sockets[origin]` and incrementing
|
|
909
|
-
// `totalSocketCount`.
|
|
910
|
-
incrementSockets(name) {
|
|
911
|
-
if (this.maxSockets === Infinity && this.maxTotalSockets === Infinity) {
|
|
912
|
-
return null;
|
|
913
|
-
}
|
|
914
|
-
if (!this.sockets[name]) {
|
|
915
|
-
this.sockets[name] = [];
|
|
916
|
-
}
|
|
917
|
-
const fakeSocket = new net.Socket({ writable: false });
|
|
918
|
-
this.sockets[name].push(fakeSocket);
|
|
919
|
-
this.totalSocketCount++;
|
|
920
|
-
return fakeSocket;
|
|
921
|
-
}
|
|
922
|
-
decrementSockets(name, socket) {
|
|
923
|
-
if (!this.sockets[name] || socket === null) {
|
|
924
|
-
return;
|
|
925
|
-
}
|
|
926
|
-
const sockets = this.sockets[name];
|
|
927
|
-
const index = sockets.indexOf(socket);
|
|
928
|
-
if (index !== -1) {
|
|
929
|
-
sockets.splice(index, 1);
|
|
930
|
-
this.totalSocketCount--;
|
|
931
|
-
if (sockets.length === 0) {
|
|
932
|
-
delete this.sockets[name];
|
|
933
|
-
}
|
|
934
|
-
}
|
|
935
|
-
}
|
|
936
|
-
// In order to properly update the socket pool, we need to call `getName()` on
|
|
937
|
-
// the core `https.Agent` if it is a secureEndpoint.
|
|
938
|
-
getName(options) {
|
|
939
|
-
const secureEndpoint = this.isSecureEndpoint(options);
|
|
940
|
-
if (secureEndpoint) {
|
|
941
|
-
return https_1.Agent.prototype.getName.call(this, options);
|
|
942
|
-
}
|
|
943
|
-
return super.getName(options);
|
|
944
|
-
}
|
|
945
|
-
createSocket(req, options, cb) {
|
|
946
|
-
const connectOpts = {
|
|
947
|
-
...options,
|
|
948
|
-
secureEndpoint: this.isSecureEndpoint(options)
|
|
949
|
-
};
|
|
950
|
-
const name = this.getName(connectOpts);
|
|
951
|
-
const fakeSocket = this.incrementSockets(name);
|
|
952
|
-
Promise.resolve().then(() => this.connect(req, connectOpts)).then((socket) => {
|
|
953
|
-
this.decrementSockets(name, fakeSocket);
|
|
954
|
-
if (socket instanceof http.Agent) {
|
|
955
|
-
try {
|
|
956
|
-
return socket.addRequest(req, connectOpts);
|
|
957
|
-
} catch (err) {
|
|
958
|
-
return cb(err);
|
|
959
|
-
}
|
|
960
|
-
}
|
|
961
|
-
this[INTERNAL].currentSocket = socket;
|
|
962
|
-
super.createSocket(req, options, cb);
|
|
963
|
-
}, (err) => {
|
|
964
|
-
this.decrementSockets(name, fakeSocket);
|
|
965
|
-
cb(err);
|
|
966
|
-
});
|
|
967
|
-
}
|
|
968
|
-
createConnection() {
|
|
969
|
-
const socket = this[INTERNAL].currentSocket;
|
|
970
|
-
this[INTERNAL].currentSocket = void 0;
|
|
971
|
-
if (!socket) {
|
|
972
|
-
throw new Error("No socket was returned in the `connect()` function");
|
|
973
|
-
}
|
|
974
|
-
return socket;
|
|
975
|
-
}
|
|
976
|
-
get defaultPort() {
|
|
977
|
-
return this[INTERNAL].defaultPort ?? (this.protocol === "https:" ? 443 : 80);
|
|
978
|
-
}
|
|
979
|
-
set defaultPort(v) {
|
|
980
|
-
if (this[INTERNAL]) {
|
|
981
|
-
this[INTERNAL].defaultPort = v;
|
|
982
|
-
}
|
|
983
|
-
}
|
|
984
|
-
get protocol() {
|
|
985
|
-
return this[INTERNAL].protocol ?? (this.isSecureEndpoint() ? "https:" : "http:");
|
|
986
|
-
}
|
|
987
|
-
set protocol(v) {
|
|
988
|
-
if (this[INTERNAL]) {
|
|
989
|
-
this[INTERNAL].protocol = v;
|
|
990
|
-
}
|
|
991
|
-
}
|
|
992
|
-
};
|
|
993
|
-
exports.Agent = Agent;
|
|
994
|
-
}
|
|
995
|
-
});
|
|
996
|
-
|
|
997
|
-
// node_modules/.pnpm/https-proxy-agent@7.0.6_supports-color@7.2.0/node_modules/https-proxy-agent/dist/parse-proxy-response.js
|
|
998
|
-
var require_parse_proxy_response = __commonJS({
|
|
999
|
-
"node_modules/.pnpm/https-proxy-agent@7.0.6_supports-color@7.2.0/node_modules/https-proxy-agent/dist/parse-proxy-response.js"(exports) {
|
|
1000
|
-
"use strict";
|
|
1001
|
-
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
1002
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
1003
|
-
};
|
|
1004
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1005
|
-
exports.parseProxyResponse = void 0;
|
|
1006
|
-
var debug_1 = __importDefault(require_src());
|
|
1007
|
-
var debug = (0, debug_1.default)("https-proxy-agent:parse-proxy-response");
|
|
1008
|
-
function parseProxyResponse(socket) {
|
|
1009
|
-
return new Promise((resolve, reject) => {
|
|
1010
|
-
let buffersLength = 0;
|
|
1011
|
-
const buffers = [];
|
|
1012
|
-
function read() {
|
|
1013
|
-
const b = socket.read();
|
|
1014
|
-
if (b)
|
|
1015
|
-
ondata(b);
|
|
1016
|
-
else
|
|
1017
|
-
socket.once("readable", read);
|
|
1018
|
-
}
|
|
1019
|
-
function cleanup() {
|
|
1020
|
-
socket.removeListener("end", onend);
|
|
1021
|
-
socket.removeListener("error", onerror);
|
|
1022
|
-
socket.removeListener("readable", read);
|
|
1023
|
-
}
|
|
1024
|
-
function onend() {
|
|
1025
|
-
cleanup();
|
|
1026
|
-
debug("onend");
|
|
1027
|
-
reject(new Error("Proxy connection ended before receiving CONNECT response"));
|
|
1028
|
-
}
|
|
1029
|
-
function onerror(err) {
|
|
1030
|
-
cleanup();
|
|
1031
|
-
debug("onerror %o", err);
|
|
1032
|
-
reject(err);
|
|
1033
|
-
}
|
|
1034
|
-
function ondata(b) {
|
|
1035
|
-
buffers.push(b);
|
|
1036
|
-
buffersLength += b.length;
|
|
1037
|
-
const buffered = Buffer.concat(buffers, buffersLength);
|
|
1038
|
-
const endOfHeaders = buffered.indexOf("\r\n\r\n");
|
|
1039
|
-
if (endOfHeaders === -1) {
|
|
1040
|
-
debug("have not received end of HTTP headers yet...");
|
|
1041
|
-
read();
|
|
1042
|
-
return;
|
|
1043
|
-
}
|
|
1044
|
-
const headerParts = buffered.slice(0, endOfHeaders).toString("ascii").split("\r\n");
|
|
1045
|
-
const firstLine = headerParts.shift();
|
|
1046
|
-
if (!firstLine) {
|
|
1047
|
-
socket.destroy();
|
|
1048
|
-
return reject(new Error("No header received from proxy CONNECT response"));
|
|
1049
|
-
}
|
|
1050
|
-
const firstLineParts = firstLine.split(" ");
|
|
1051
|
-
const statusCode = +firstLineParts[1];
|
|
1052
|
-
const statusText = firstLineParts.slice(2).join(" ");
|
|
1053
|
-
const headers = {};
|
|
1054
|
-
for (const header of headerParts) {
|
|
1055
|
-
if (!header)
|
|
1056
|
-
continue;
|
|
1057
|
-
const firstColon = header.indexOf(":");
|
|
1058
|
-
if (firstColon === -1) {
|
|
1059
|
-
socket.destroy();
|
|
1060
|
-
return reject(new Error(`Invalid header from proxy CONNECT response: "${header}"`));
|
|
1061
|
-
}
|
|
1062
|
-
const key = header.slice(0, firstColon).toLowerCase();
|
|
1063
|
-
const value = header.slice(firstColon + 1).trimStart();
|
|
1064
|
-
const current = headers[key];
|
|
1065
|
-
if (typeof current === "string") {
|
|
1066
|
-
headers[key] = [current, value];
|
|
1067
|
-
} else if (Array.isArray(current)) {
|
|
1068
|
-
current.push(value);
|
|
1069
|
-
} else {
|
|
1070
|
-
headers[key] = value;
|
|
1071
|
-
}
|
|
1072
|
-
}
|
|
1073
|
-
debug("got proxy server response: %o %o", firstLine, headers);
|
|
1074
|
-
cleanup();
|
|
1075
|
-
resolve({
|
|
1076
|
-
connect: {
|
|
1077
|
-
statusCode,
|
|
1078
|
-
statusText,
|
|
1079
|
-
headers
|
|
1080
|
-
},
|
|
1081
|
-
buffered
|
|
1082
|
-
});
|
|
1083
|
-
}
|
|
1084
|
-
socket.on("error", onerror);
|
|
1085
|
-
socket.on("end", onend);
|
|
1086
|
-
read();
|
|
1087
|
-
});
|
|
1088
|
-
}
|
|
1089
|
-
exports.parseProxyResponse = parseProxyResponse;
|
|
1090
|
-
}
|
|
1091
|
-
});
|
|
1092
|
-
|
|
1093
|
-
// node_modules/.pnpm/https-proxy-agent@7.0.6_supports-color@7.2.0/node_modules/https-proxy-agent/dist/index.js
|
|
1094
|
-
var require_dist2 = __commonJS({
|
|
1095
|
-
"node_modules/.pnpm/https-proxy-agent@7.0.6_supports-color@7.2.0/node_modules/https-proxy-agent/dist/index.js"(exports) {
|
|
1096
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
1097
|
-
if (k2 === void 0) k2 = k;
|
|
1098
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
1099
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
1100
|
-
desc = { enumerable: true, get: function() {
|
|
1101
|
-
return m[k];
|
|
1102
|
-
} };
|
|
1103
|
-
}
|
|
1104
|
-
Object.defineProperty(o, k2, desc);
|
|
1105
|
-
}) : (function(o, m, k, k2) {
|
|
1106
|
-
if (k2 === void 0) k2 = k;
|
|
1107
|
-
o[k2] = m[k];
|
|
1108
|
-
}));
|
|
1109
|
-
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
|
|
1110
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
1111
|
-
}) : function(o, v) {
|
|
1112
|
-
o["default"] = v;
|
|
1113
|
-
});
|
|
1114
|
-
var __importStar = exports && exports.__importStar || function(mod) {
|
|
1115
|
-
if (mod && mod.__esModule) return mod;
|
|
1116
|
-
var result = {};
|
|
1117
|
-
if (mod != null) {
|
|
1118
|
-
for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
1119
|
-
}
|
|
1120
|
-
__setModuleDefault(result, mod);
|
|
1121
|
-
return result;
|
|
1122
|
-
};
|
|
1123
|
-
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
1124
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
1125
|
-
};
|
|
1126
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1127
|
-
exports.HttpsProxyAgent = void 0;
|
|
1128
|
-
var net = __importStar(__require("net"));
|
|
1129
|
-
var tls = __importStar(__require("tls"));
|
|
1130
|
-
var assert_1 = __importDefault(__require("assert"));
|
|
1131
|
-
var debug_1 = __importDefault(require_src());
|
|
1132
|
-
var agent_base_1 = require_dist();
|
|
1133
|
-
var url_1 = __require("url");
|
|
1134
|
-
var parse_proxy_response_1 = require_parse_proxy_response();
|
|
1135
|
-
var debug = (0, debug_1.default)("https-proxy-agent");
|
|
1136
|
-
var setServernameFromNonIpHost = (options) => {
|
|
1137
|
-
if (options.servername === void 0 && options.host && !net.isIP(options.host)) {
|
|
1138
|
-
return {
|
|
1139
|
-
...options,
|
|
1140
|
-
servername: options.host
|
|
1141
|
-
};
|
|
1142
|
-
}
|
|
1143
|
-
return options;
|
|
1144
|
-
};
|
|
1145
|
-
var HttpsProxyAgent = class extends agent_base_1.Agent {
|
|
1146
|
-
constructor(proxy, opts) {
|
|
1147
|
-
super(opts);
|
|
1148
|
-
this.options = { path: void 0 };
|
|
1149
|
-
this.proxy = typeof proxy === "string" ? new url_1.URL(proxy) : proxy;
|
|
1150
|
-
this.proxyHeaders = opts?.headers ?? {};
|
|
1151
|
-
debug("Creating new HttpsProxyAgent instance: %o", this.proxy.href);
|
|
1152
|
-
const host = (this.proxy.hostname || this.proxy.host).replace(/^\[|\]$/g, "");
|
|
1153
|
-
const port = this.proxy.port ? parseInt(this.proxy.port, 10) : this.proxy.protocol === "https:" ? 443 : 80;
|
|
1154
|
-
this.connectOpts = {
|
|
1155
|
-
// Attempt to negotiate http/1.1 for proxy servers that support http/2
|
|
1156
|
-
ALPNProtocols: ["http/1.1"],
|
|
1157
|
-
...opts ? omit(opts, "headers") : null,
|
|
1158
|
-
host,
|
|
1159
|
-
port
|
|
1160
|
-
};
|
|
1161
|
-
}
|
|
1162
|
-
/**
|
|
1163
|
-
* Called when the node-core HTTP client library is creating a
|
|
1164
|
-
* new HTTP request.
|
|
1165
|
-
*/
|
|
1166
|
-
async connect(req, opts) {
|
|
1167
|
-
const { proxy } = this;
|
|
1168
|
-
if (!opts.host) {
|
|
1169
|
-
throw new TypeError('No "host" provided');
|
|
1170
|
-
}
|
|
1171
|
-
let socket;
|
|
1172
|
-
if (proxy.protocol === "https:") {
|
|
1173
|
-
debug("Creating `tls.Socket`: %o", this.connectOpts);
|
|
1174
|
-
socket = tls.connect(setServernameFromNonIpHost(this.connectOpts));
|
|
1175
|
-
} else {
|
|
1176
|
-
debug("Creating `net.Socket`: %o", this.connectOpts);
|
|
1177
|
-
socket = net.connect(this.connectOpts);
|
|
1178
|
-
}
|
|
1179
|
-
const headers = typeof this.proxyHeaders === "function" ? this.proxyHeaders() : { ...this.proxyHeaders };
|
|
1180
|
-
const host = net.isIPv6(opts.host) ? `[${opts.host}]` : opts.host;
|
|
1181
|
-
let payload = `CONNECT ${host}:${opts.port} HTTP/1.1\r
|
|
1182
|
-
`;
|
|
1183
|
-
if (proxy.username || proxy.password) {
|
|
1184
|
-
const auth = `${decodeURIComponent(proxy.username)}:${decodeURIComponent(proxy.password)}`;
|
|
1185
|
-
headers["Proxy-Authorization"] = `Basic ${Buffer.from(auth).toString("base64")}`;
|
|
1186
|
-
}
|
|
1187
|
-
headers.Host = `${host}:${opts.port}`;
|
|
1188
|
-
if (!headers["Proxy-Connection"]) {
|
|
1189
|
-
headers["Proxy-Connection"] = this.keepAlive ? "Keep-Alive" : "close";
|
|
1190
|
-
}
|
|
1191
|
-
for (const name of Object.keys(headers)) {
|
|
1192
|
-
payload += `${name}: ${headers[name]}\r
|
|
1193
|
-
`;
|
|
1194
|
-
}
|
|
1195
|
-
const proxyResponsePromise = (0, parse_proxy_response_1.parseProxyResponse)(socket);
|
|
1196
|
-
socket.write(`${payload}\r
|
|
1197
|
-
`);
|
|
1198
|
-
const { connect, buffered } = await proxyResponsePromise;
|
|
1199
|
-
req.emit("proxyConnect", connect);
|
|
1200
|
-
this.emit("proxyConnect", connect, req);
|
|
1201
|
-
if (connect.statusCode === 200) {
|
|
1202
|
-
req.once("socket", resume);
|
|
1203
|
-
if (opts.secureEndpoint) {
|
|
1204
|
-
debug("Upgrading socket connection to TLS");
|
|
1205
|
-
return tls.connect({
|
|
1206
|
-
...omit(setServernameFromNonIpHost(opts), "host", "path", "port"),
|
|
1207
|
-
socket
|
|
1208
|
-
});
|
|
1209
|
-
}
|
|
1210
|
-
return socket;
|
|
1211
|
-
}
|
|
1212
|
-
socket.destroy();
|
|
1213
|
-
const fakeSocket = new net.Socket({ writable: false });
|
|
1214
|
-
fakeSocket.readable = true;
|
|
1215
|
-
req.once("socket", (s) => {
|
|
1216
|
-
debug("Replaying proxy buffer for failed request");
|
|
1217
|
-
(0, assert_1.default)(s.listenerCount("data") > 0);
|
|
1218
|
-
s.push(buffered);
|
|
1219
|
-
s.push(null);
|
|
1220
|
-
});
|
|
1221
|
-
return fakeSocket;
|
|
1222
|
-
}
|
|
1223
|
-
};
|
|
1224
|
-
HttpsProxyAgent.protocols = ["http", "https"];
|
|
1225
|
-
exports.HttpsProxyAgent = HttpsProxyAgent;
|
|
1226
|
-
function resume(socket) {
|
|
1227
|
-
socket.resume();
|
|
1228
|
-
}
|
|
1229
|
-
function omit(obj, ...keys) {
|
|
1230
|
-
const ret = {};
|
|
1231
|
-
let key;
|
|
1232
|
-
for (key in obj) {
|
|
1233
|
-
if (!keys.includes(key)) {
|
|
1234
|
-
ret[key] = obj[key];
|
|
1235
|
-
}
|
|
1236
|
-
}
|
|
1237
|
-
return ret;
|
|
1238
|
-
}
|
|
1239
|
-
}
|
|
1240
|
-
});
|
|
1241
|
-
export default require_dist2();
|
|
771
|
+
export {
|
|
772
|
+
require_src
|
|
773
|
+
};
|
|
@@ -179,7 +179,7 @@ import {
|
|
|
179
179
|
validateRegistry,
|
|
180
180
|
withFileMutation,
|
|
181
181
|
writeTextFileIfMissing
|
|
182
|
-
} from "./chunk-
|
|
182
|
+
} from "./chunk-6FSDDGFZ.js";
|
|
183
183
|
import {
|
|
184
184
|
ChangeMonitor,
|
|
185
185
|
NativeGitReadError,
|
|
@@ -201,7 +201,7 @@ import {
|
|
|
201
201
|
terminateManagedTarget,
|
|
202
202
|
terminateTcpListener,
|
|
203
203
|
validateGitBranchName
|
|
204
|
-
} from "./chunk-
|
|
204
|
+
} from "./chunk-WRTA5G57.js";
|
|
205
205
|
import {
|
|
206
206
|
__commonJS,
|
|
207
207
|
__esm,
|
|
@@ -45861,7 +45861,7 @@ var UnifiedCompletionService = class {
|
|
|
45861
45861
|
throw new Error("Completion project capacity reached");
|
|
45862
45862
|
void this.retire(idle).catch(() => void 0);
|
|
45863
45863
|
}
|
|
45864
|
-
const create3 = this.deps.createIndex ?? (async () => (await import("./chunk-
|
|
45864
|
+
const create3 = this.deps.createIndex ?? (async () => (await import("./chunk-4VPX67B7.js")).createSearchIndex());
|
|
45865
45865
|
const index = Promise.resolve().then(create3);
|
|
45866
45866
|
void index.catch(() => {
|
|
45867
45867
|
const failed = this.projects.get(scope2.projectId);
|
|
@@ -46888,7 +46888,7 @@ function isFilesApi(value) {
|
|
|
46888
46888
|
return typeof api?.listDirectory === "function" && typeof api.createPathIndex === "function" && typeof api.searchContent === "function";
|
|
46889
46889
|
}
|
|
46890
46890
|
function loadNativeFiles() {
|
|
46891
|
-
loaded ??= import("./chunk-
|
|
46891
|
+
loaded ??= import("./chunk-4VPX67B7.js").then((module) => {
|
|
46892
46892
|
const files = module.files;
|
|
46893
46893
|
return isFilesApi(files) ? files : void 0;
|
|
46894
46894
|
}).catch(() => void 0);
|
|
@@ -72751,4 +72751,4 @@ export {
|
|
|
72751
72751
|
legacyTokenRedirect,
|
|
72752
72752
|
createApp
|
|
72753
72753
|
};
|
|
72754
|
-
/*! For license information please see chunk-
|
|
72754
|
+
/*! For license information please see chunk-PST63OUS.js.LEGAL.txt */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __nerveCreateRequire } from "node:module";
|
|
2
2
|
const require = __nerveCreateRequire(import.meta.url);
|
|
3
3
|
|
|
4
|
-
// node_modules/.pnpm/@earendil-works+pi-ai@1.
|
|
4
|
+
// node_modules/.pnpm/@earendil-works+pi-ai@1.5.1_@aws-sdk+credential-provider-node@3.972.83_@smithy+signatur_e7d72008f907c45a36788e380ed24019/node_modules/@earendil-works/pi-ai/dist/api/github-copilot-headers.js
|
|
5
5
|
function inferCopilotInitiator(messages) {
|
|
6
6
|
const last = messages[messages.length - 1];
|
|
7
7
|
return last && last.role !== "user" ? "agent" : "user";
|