coderaft 0.0.26 → 0.0.28

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.
@@ -375,6 +375,214 @@ DEALINGS IN THE SOFTWARE.
375
375
 
376
376
  ---------------------------------------------------------
377
377
 
378
+ codex
379
+ https://github.com/openai/codex
380
+
381
+ Apache License
382
+ Version 2.0, January 2004
383
+ http://www.apache.org/licenses/
384
+
385
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
386
+
387
+ 1. Definitions.
388
+
389
+ "License" shall mean the terms and conditions for use, reproduction,
390
+ and distribution as defined by Sections 1 through 9 of this document.
391
+
392
+ "Licensor" shall mean the copyright owner or entity authorized by
393
+ the copyright owner that is granting the License.
394
+
395
+ "Legal Entity" shall mean the union of the acting entity and all
396
+ other entities that control, are controlled by, or are under common
397
+ control with that entity. For the purposes of this definition,
398
+ "control" means (i) the power, direct or indirect, to cause the
399
+ direction or management of such entity, whether by contract or
400
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
401
+ outstanding shares, or (iii) beneficial ownership of such entity.
402
+
403
+ "You" (or "Your") shall mean an individual or Legal Entity
404
+ exercising permissions granted by this License.
405
+
406
+ "Source" form shall mean the preferred form for making modifications,
407
+ including but not limited to software source code, documentation
408
+ source, and configuration files.
409
+
410
+ "Object" form shall mean any form resulting from mechanical
411
+ transformation or translation of a Source form, including but
412
+ not limited to compiled object code, generated documentation,
413
+ and conversions to other media types.
414
+
415
+ "Work" shall mean the work of authorship, whether in Source or
416
+ Object form, made available under the License, as indicated by a
417
+ copyright notice that is included in or attached to the work
418
+ (an example is provided in the Appendix below).
419
+
420
+ "Derivative Works" shall mean any work, whether in Source or Object
421
+ form, that is based on (or derived from) the Work and for which the
422
+ editorial revisions, annotations, elaborations, or other modifications
423
+ represent, as a whole, an original work of authorship. For the purposes
424
+ of this License, Derivative Works shall not include works that remain
425
+ separable from, or merely link (or bind by name) to the interfaces of,
426
+ the Work and Derivative Works thereof.
427
+
428
+ "Contribution" shall mean any work of authorship, including
429
+ the original version of the Work and any modifications or additions
430
+ to that Work or Derivative Works thereof, that is intentionally
431
+ submitted to Licensor for inclusion in the Work by the copyright owner
432
+ or by an individual or Legal Entity authorized to submit on behalf of
433
+ the copyright owner. For the purposes of this definition, "submitted"
434
+ means any form of electronic, verbal, or written communication sent
435
+ to the Licensor or its representatives, including but not limited to
436
+ communication on electronic mailing lists, source code control systems,
437
+ and issue tracking systems that are managed by, or on behalf of, the
438
+ Licensor for the purpose of discussing and improving the Work, but
439
+ excluding communication that is conspicuously marked or otherwise
440
+ designated in writing by the copyright owner as "Not a Contribution."
441
+
442
+ "Contributor" shall mean Licensor and any individual or Legal Entity
443
+ on behalf of whom a Contribution has been received by Licensor and
444
+ subsequently incorporated within the Work.
445
+
446
+ 2. Grant of Copyright License. Subject to the terms and conditions of
447
+ this License, each Contributor hereby grants to You a perpetual,
448
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
449
+ copyright license to reproduce, prepare Derivative Works of,
450
+ publicly display, publicly perform, sublicense, and distribute the
451
+ Work and such Derivative Works in Source or Object form.
452
+
453
+ 3. Grant of Patent License. Subject to the terms and conditions of
454
+ this License, each Contributor hereby grants to You a perpetual,
455
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
456
+ (except as stated in this section) patent license to make, have made,
457
+ use, offer to sell, sell, import, and otherwise transfer the Work,
458
+ where such license applies only to those patent claims licensable
459
+ by such Contributor that are necessarily infringed by their
460
+ Contribution(s) alone or by combination of their Contribution(s)
461
+ with the Work to which such Contribution(s) was submitted. If You
462
+ institute patent litigation against any entity (including a
463
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
464
+ or a Contribution incorporated within the Work constitutes direct
465
+ or contributory patent infringement, then any patent licenses
466
+ granted to You under this License for that Work shall terminate
467
+ as of the date such litigation is filed.
468
+
469
+ 4. Redistribution. You may reproduce and distribute copies of the
470
+ Work or Derivative Works thereof in any medium, with or without
471
+ modifications, and in Source or Object form, provided that You
472
+ meet the following conditions:
473
+
474
+ (a) You must give any other recipients of the Work or
475
+ Derivative Works a copy of this License; and
476
+
477
+ (b) You must cause any modified files to carry prominent notices
478
+ stating that You changed the files; and
479
+
480
+ (c) You must retain, in the Source form of any Derivative Works
481
+ that You distribute, all copyright, patent, trademark, and
482
+ attribution notices from the Source form of the Work,
483
+ excluding those notices that do not pertain to any part of
484
+ the Derivative Works; and
485
+
486
+ (d) If the Work includes a "NOTICE" text file as part of its
487
+ distribution, then any Derivative Works that You distribute must
488
+ include a readable copy of the attribution notices contained
489
+ within such NOTICE file, excluding those notices that do not
490
+ pertain to any part of the Derivative Works, in at least one
491
+ of the following places: within a NOTICE text file distributed
492
+ as part of the Derivative Works; within the Source form or
493
+ documentation, if provided along with the Derivative Works; or,
494
+ within a display generated by the Derivative Works, if and
495
+ wherever such third-party notices normally appear. The contents
496
+ of the NOTICE file are for informational purposes only and
497
+ do not modify the License. You may add Your own attribution
498
+ notices within Derivative Works that You distribute, alongside
499
+ or as an addendum to the NOTICE text from the Work, provided
500
+ that such additional attribution notices cannot be construed
501
+ as modifying the License.
502
+
503
+ You may add Your own copyright statement to Your modifications and
504
+ may provide additional or different license terms and conditions
505
+ for use, reproduction, or distribution of Your modifications, or
506
+ for any such Derivative Works as a whole, provided Your use,
507
+ reproduction, and distribution of the Work otherwise complies with
508
+ the conditions stated in this License.
509
+
510
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
511
+ any Contribution intentionally submitted for inclusion in the Work
512
+ by You to the Licensor shall be under the terms and conditions of
513
+ this License, without any additional terms or conditions.
514
+ Notwithstanding the above, nothing herein shall supersede or modify
515
+ the terms of any separate license agreement you may have executed
516
+ with Licensor regarding such Contributions.
517
+
518
+ 6. Trademarks. This License does not grant permission to use the trade
519
+ names, trademarks, service marks, or product names of the Licensor,
520
+ except as required for reasonable and customary use in describing the
521
+ origin of the Work and reproducing the content of the NOTICE file.
522
+
523
+ 7. Disclaimer of Warranty. Unless required by applicable law or
524
+ agreed to in writing, Licensor provides the Work (and each
525
+ Contributor provides its Contributions) on an "AS IS" BASIS,
526
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
527
+ implied, including, without limitation, any warranties or conditions
528
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
529
+ PARTICULAR PURPOSE. You are solely responsible for determining the
530
+ appropriateness of using or redistributing the Work and assume any
531
+ risks associated with Your exercise of permissions under this License.
532
+
533
+ 8. Limitation of Liability. In no event and under no legal theory,
534
+ whether in tort (including negligence), contract, or otherwise,
535
+ unless required by applicable law (such as deliberate and grossly
536
+ negligent acts) or agreed to in writing, shall any Contributor be
537
+ liable to You for damages, including any direct, indirect, special,
538
+ incidental, or consequential damages of any character arising as a
539
+ result of this License or out of the use or inability to use the
540
+ Work (including but not limited to damages for loss of goodwill,
541
+ work stoppage, computer failure or malfunction, or any and all
542
+ other commercial damages or losses), even if such Contributor
543
+ has been advised of the possibility of such damages.
544
+
545
+ 9. Accepting Warranty or Additional Liability. While redistributing
546
+ the Work or Derivative Works thereof, You may choose to offer,
547
+ and charge a fee for, acceptance of support, warranty, indemnity,
548
+ or other liability obligations and/or rights consistent with this
549
+ License. However, in accepting such obligations, You may act only
550
+ on Your own behalf and on Your sole responsibility, not on behalf
551
+ of any other Contributor, and only if You agree to indemnify,
552
+ defend, and hold each Contributor harmless for any liability
553
+ incurred by, or claims asserted against, such Contributor by reason
554
+ of your accepting any such warranty or additional liability.
555
+
556
+ END OF TERMS AND CONDITIONS
557
+
558
+ APPENDIX: How to apply the Apache License to your work.
559
+
560
+ To apply the Apache License to your work, attach the following
561
+ boilerplate notice, with the fields enclosed by brackets "[]"
562
+ replaced with your own identifying information. (Don't include
563
+ the brackets!) The text should be enclosed in the appropriate
564
+ comment syntax for the file format. We also recommend that a
565
+ file or class name and description of purpose be included on the
566
+ same "printed page" as the copyright notice for easier
567
+ identification within third-party archives.
568
+
569
+ Copyright 2025 OpenAI
570
+
571
+ Licensed under the Apache License, Version 2.0 (the "License");
572
+ you may not use this file except in compliance with the License.
573
+ You may obtain a copy of the License at
574
+
575
+ http://www.apache.org/licenses/LICENSE-2.0
576
+
577
+ Unless required by applicable law or agreed to in writing, software
578
+ distributed under the License is distributed on an "AS IS" BASIS,
579
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
580
+ See the License for the specific language governing permissions and
581
+ limitations under the License.
582
+ ---------------------------------------------------------
583
+
584
+ ---------------------------------------------------------
585
+
378
586
  Colorsublime-Themes 0.1.0
379
587
  https://github.com/Colorsublime/Colorsublime-Themes
380
588
 
@@ -528,7 +736,7 @@ dompurify 3.2.7 - Apache 2.0
528
736
  https://github.com/cure53/DOMPurify
529
737
 
530
738
  DOMPurify
531
- Copyright 2025 Dr.-Ing. Mario Heiderich, Cure53
739
+ Copyright 2025-2026 Dr.-Ing. Mario Heiderich, Cure53
532
740
 
533
741
  DOMPurify is free software; you can redistribute it and/or modify it under the
534
742
  terms of either:
@@ -726,7 +934,7 @@ b) the Mozilla Public License Version 2.0
726
934
  same "printed page" as the copyright notice for easier
727
935
  identification within third-party archives.
728
936
 
729
- Copyright [yyyy] [name of copyright owner]
937
+ Copyright 2025-2026 Dr.-Ing. Mario Heiderich, Cure53
730
938
 
731
939
  Licensed under the Apache License, Version 2.0 (the "License");
732
940
  you may not use this file except in compliance with the License.
@@ -1985,7 +2193,7 @@ THE SOFTWARE.
1985
2193
  marked 14.0.0 - MIT
1986
2194
  https://github.com/markedjs/marked
1987
2195
 
1988
- information
2196
+ # License information
1989
2197
 
1990
2198
  ## Contribution License Agreement
1991
2199
 
package/code.mjs CHANGED
@@ -4,7 +4,7 @@ import { tmpdir } from "node:os";
4
4
  import { fileURLToPath } from "node:url";
5
5
 
6
6
  // Auto-updated by scripts/pack.ts
7
- const codeArchiveHash = "096c26773369f84b";
7
+ const codeArchiveHash = "8ee2b1466bb48c82";
8
8
 
9
9
  const archivePath = fileURLToPath(new URL("./code.tar.zst", import.meta.url));
10
10
 
package/code.tar.zst CHANGED
Binary file
@@ -39,6 +39,10 @@ function setupOutgoing(outgoing, options, req, forward) {
39
39
  const value = options[forward || "target"][e];
40
40
  if (value !== void 0) outgoing[e] = value;
41
41
  }
42
+ if (outgoing.host === void 0 && typeof outgoing.hostname === "string") {
43
+ const bracketedHost = outgoing.hostname.includes(":") && !outgoing.hostname.startsWith("[") ? `[${outgoing.hostname}]` : outgoing.hostname;
44
+ outgoing.host = outgoing.port ? `${bracketedHost}:${outgoing.port}` : bracketedHost;
45
+ }
42
46
  outgoing.method = options.method || req.method;
43
47
  outgoing.headers = { ...req.headers };
44
48
  if (req.headers?.[":authority"]) outgoing.headers.host = req.headers[":authority"];
@@ -48,7 +52,7 @@ function setupOutgoing(outgoing, options, req, forward) {
48
52
  if (options.ca) outgoing.ca = options.ca;
49
53
  if (isSSL.test(options[forward || "target"].protocol ?? "http")) outgoing.rejectUnauthorized = options.secure === void 0 ? true : options.secure;
50
54
  if (options.agent !== void 0) outgoing.agent = options.agent || false;
51
- else if (req.httpVersionMajor > 1) outgoing.agent = false;
55
+ else if (req.httpVersionMajor > 1 || upgradeHeader.test(req.headers.connection || "")) outgoing.agent = false;
52
56
  else {
53
57
  const targetProto = options[forward || "target"].protocol ?? "http";
54
58
  outgoing.agent = isSSL.test(targetProto) ? defaultAgents.https : defaultAgents.http;
@@ -76,7 +80,7 @@ function setupOutgoing(outgoing, options, req, forward) {
76
80
  }
77
81
  function joinURL(base, path) {
78
82
  if (!base || base === "/") return path || "/";
79
- if (!path || path === "/") return base || "/";
83
+ if (!path) return base;
80
84
  const baseHasTrailing = base[base.length - 1] === "/";
81
85
  const pathHasLeading = path[0] === "/";
82
86
  if (baseHasTrailing && pathHasLeading) return base + path.slice(1);
@@ -235,7 +239,7 @@ const webIncomingMiddleware = [
235
239
  "proto"
236
240
  ]) {
237
241
  const key = "x-forwarded-" + header;
238
- if (!req.headers[key]) req.headers[key] = values[header];
242
+ if (!req.headers[key] && values[header] !== void 0) req.headers[key] = values[header];
239
243
  }
240
244
  req.headers["x-forwarded-host"] = req.headers["x-forwarded-host"] || req.headers[":authority"] || req.headers.host || "";
241
245
  }),
@@ -393,7 +397,7 @@ const websocketIncomingMiddleware = [
393
397
  "proto"
394
398
  ]) {
395
399
  const key = "x-forwarded-" + header;
396
- if (!req.headers[key]) req.headers[key] = values[header];
400
+ if (!req.headers[key] && values[header] !== void 0) req.headers[key] = values[header];
397
401
  }
398
402
  }),
399
403
  defineProxyMiddleware((req, socket, options, server, head, callback) => {
@@ -464,7 +468,7 @@ var ProxyServer = class extends EventEmitter {
464
468
  this.web = _createProxyFn("web", this);
465
469
  this.ws = _createProxyFn("ws", this);
466
470
  }
467
- listen(port, hostname) {
471
+ listen(port, hostname, listeningListener) {
468
472
  const closure = (req, res) => {
469
473
  return this.web(req, res);
470
474
  };
@@ -479,7 +483,7 @@ var ProxyServer = class extends EventEmitter {
479
483
  if (this.options.ws) this._server.on("upgrade", (req, socket, head) => {
480
484
  this.ws(req, socket, this.options, head).catch(() => {});
481
485
  });
482
- this._server.listen(port, hostname);
486
+ this._server.listen(port, hostname, listeningListener);
483
487
  return this;
484
488
  }
485
489
  close(callback) {
@@ -537,15 +541,15 @@ function _createProxyFn(type, server) {
537
541
  for (const pass of server._getPasses(type)) {
538
542
  let stop;
539
543
  try {
540
- stop = pass(req, res, requestOptions, server, head, (error) => {
544
+ stop = pass(req, res, requestOptions, server, head, (error, _req, _res, url) => {
541
545
  if (server.listenerCount("error") > 0) {
542
- server.emit("error", error, req, res);
546
+ server.emit("error", error, req, res, url);
543
547
  _resolve();
544
548
  } else _reject(error);
545
549
  });
546
550
  } catch (error) {
547
551
  if (server.listenerCount("error") > 0) {
548
- server.emit("error", error, req, res);
552
+ server.emit("error", error, req, res, requestOptions.target || requestOptions.forward);
549
553
  _resolve();
550
554
  } else _reject(error);
551
555
  break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coderaft",
3
- "version": "0.0.26",
3
+ "version": "0.0.28",
4
4
  "repository": "pithings/coderaft",
5
5
  "bin": {
6
6
  "coderaft": "./dist/cli.mjs"
@@ -29,6 +29,7 @@
29
29
  "build": "obuild"
30
30
  },
31
31
  "devDependencies": {
32
+ "code-server": "^4.117.0",
32
33
  "@github/copilot": "workspace:*",
33
34
  "@github/copilot-sdk": "workspace:*",
34
35
  "@microsoft/1ds-core-js": "workspace:*",
@@ -41,21 +42,21 @@
41
42
  "@vscode/proxy-agent": "workspace:*",
42
43
  "@vscode/ripgrep": "workspace:*",
43
44
  "@vscode/spdlog": "workspace:*",
44
- "@vscode/tree-sitter-wasm": "^0.3.0",
45
+ "@vscode/sqlite3": "workspace:*",
46
+ "@vscode/tree-sitter-wasm": "^0.3.1",
45
47
  "@vscode/vscode-languagedetection": "1.0.23",
46
48
  "@vscode/windows-process-tree": "workspace:*",
47
49
  "@vscode/windows-registry": "workspace:*",
48
- "@xterm/addon-clipboard": "^0.3.0-beta.191",
49
- "@xterm/addon-image": "^0.10.0-beta.191",
50
- "@xterm/addon-ligatures": "^0.11.0-beta.191",
51
- "@xterm/addon-progress": "^0.3.0-beta.191",
52
- "@xterm/addon-search": "^0.17.0-beta.191",
53
- "@xterm/addon-serialize": "^0.15.0-beta.191",
54
- "@xterm/addon-unicode11": "^0.10.0-beta.191",
55
- "@xterm/addon-webgl": "^0.20.0-beta.190",
56
- "@xterm/headless": "^6.1.0-beta.191",
57
- "@xterm/xterm": "^6.1.0-beta.191",
58
- "code-server": "^4.114.1",
50
+ "@xterm/addon-clipboard": "^0.3.0-beta.197",
51
+ "@xterm/addon-image": "^0.10.0-beta.197",
52
+ "@xterm/addon-ligatures": "^0.11.0-beta.197",
53
+ "@xterm/addon-progress": "^0.3.0-beta.197",
54
+ "@xterm/addon-search": "^0.17.0-beta.197",
55
+ "@xterm/addon-serialize": "^0.15.0-beta.197",
56
+ "@xterm/addon-unicode11": "^0.10.0-beta.197",
57
+ "@xterm/addon-webgl": "^0.20.0-beta.196",
58
+ "@xterm/headless": "^6.1.0-beta.197",
59
+ "@xterm/xterm": "^6.1.0-beta.197",
59
60
  "cookie": "^0.7.0",
60
61
  "http-proxy-agent": "^7.0.0",
61
62
  "https-proxy-agent": "^7.0.2",
@@ -65,8 +66,9 @@
65
66
  "kerberos": "workspace:*",
66
67
  "minimist": "^1.2.8",
67
68
  "node-pty": "workspace:*",
69
+ "ssh2": "workspace:*",
68
70
  "tas-client": "0.3.1",
69
- "typescript": "^6.0.2",
71
+ "typescript": "^6.0.3",
70
72
  "vscode-oniguruma": "1.7.0",
71
73
  "vscode-regexpp": "^3.1.0",
72
74
  "vscode-textmate": "^9.3.2",