better-dsh 0.3.1-b → 0.3.1-e

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 (60) hide show
  1. package/cordis.patch.yml +13 -8
  2. package/lib/BrowserWebSocketTransport.js +4 -0
  3. package/lib/{BrowserWebSocketTransport-wm99h94r.js → BrowserWebSocketTransport2.js} +1 -1
  4. package/lib/LaunchOptions.js +4 -0
  5. package/lib/{LaunchOptions-iE9M-STS.js → LaunchOptions2.js} +1 -1
  6. package/lib/{NodeWebSocketTransport-D9ysYGLM.js → NodeWebSocketTransport.js} +2 -2
  7. package/lib/NodeWebSocketTransport2.js +4 -0
  8. package/lib/{bidi-CaQeBZHY.js → bidi.js} +4 -4
  9. package/lib/compaction/index.d.ts +1 -1
  10. package/lib/compaction/index.js +1 -1
  11. package/lib/failover/index.d.ts +1 -1
  12. package/lib/failover/index.js +1 -1
  13. package/lib/fs-aware/sandbox-plugin.js +1 -1
  14. package/lib/{index-browser-CJzxT9Vi.js → index-browser.js} +6 -6
  15. package/lib/index.d.ts +1 -1
  16. package/lib/index.js +49 -20
  17. package/lib/kernel-env.js +1 -1
  18. package/lib/{lsp-server-registry-BcdkHROD.js → lsp-server-registry2.js} +1 -1
  19. package/lib/{main-uqGqYYnA.js → main.js} +1 -1
  20. package/lib/{main-taSMz1KX.js → main2.js} +1 -1
  21. package/lib/mobile/plugin.d.ts +2 -2
  22. package/lib/mobile/plugin.js +2 -2
  23. package/lib/{puppeteer-core-C-4NyOpY.js → puppeteer-core.js} +8 -8
  24. package/lib/py-sdk.js +1 -1
  25. package/lib/remote/helper-bin/MANIFEST.json +7 -7
  26. package/lib/remote/helper-bin/aarch64-apple-darwin/BUILT-VER +1 -1
  27. package/lib/remote/helper-bin/aarch64-apple-darwin/superd-run +0 -0
  28. package/lib/remote/helper-bin/aarch64-unknown-linux-musl/BUILT-VER +1 -1
  29. package/lib/remote/helper-bin/aarch64-unknown-linux-musl/superd-run +0 -0
  30. package/lib/remote/helper-bin/x86_64-pc-windows-gnu/BUILT-VER +1 -1
  31. package/lib/remote/helper-bin/x86_64-pc-windows-gnu/superd-run.exe +0 -0
  32. package/lib/remote/helper-bin/x86_64-unknown-linux-musl/BUILT-VER +1 -1
  33. package/lib/remote/helper-bin/x86_64-unknown-linux-musl/superd-run +0 -0
  34. package/lib/remote/plugin.d.ts +23 -4
  35. package/lib/remote/plugin.js +226 -88
  36. package/lib/url-schemes/index.d.ts +1 -1
  37. package/lib/url-schemes/index.js +11 -11
  38. package/lib/{wasm_bg-CNXhHjVg.js → wasm_bg.js} +1 -1
  39. package/lib/web-password.d.ts +1 -1
  40. package/lib/web-password.js +1 -1
  41. package/lib/web-trust.d.ts +2 -2
  42. package/lib/web-trust.js +2 -2
  43. package/lib/{web-trust-Dej_RI2B.d.ts → web-trust2.d.ts} +1 -1
  44. package/lib/{web-trust-D6gJpUMf.js → web-trust2.js} +20 -8
  45. package/lib/welcome-notice.d.ts +1 -1
  46. package/lib/welcome-notice.js +1 -1
  47. package/package.json +1 -1
  48. package/lib/BrowserWebSocketTransport-D1aFReu_.js +0 -4
  49. package/lib/LaunchOptions-0Mr6meJc.js +0 -4
  50. package/lib/NodeWebSocketTransport-BRLjmu2R.js +0 -4
  51. /package/lib/{chunk-DQxbwPpZ.js → chunk.js} +0 -0
  52. /package/lib/{index-DTDXUe6m.d.ts → index2.d.ts} +0 -0
  53. /package/lib/{kernel-env-x_WkG6Fr.js → kernel-env2.js} +0 -0
  54. /package/lib/{lib-C8_jXvwA.js → lib.js} +0 -0
  55. /package/lib/{lsp-server-registry-D4VLs1Sm.js → lsp-server-registry.js} +0 -0
  56. /package/lib/{native-capture-BEByDXYM.js → native-capture.js} +0 -0
  57. /package/lib/{py-sdk-D7klhpWb.js → py-sdk2.js} +0 -0
  58. /package/lib/{util-BHL_dfV_.js → util.js} +0 -0
  59. /package/lib/{web-tree-sitter-CPrPD4J2.js → web-tree-sitter.js} +0 -0
  60. /package/lib/{wrap-0VA0uFx8.js → wrap.js} +0 -0
package/lib/web-trust.js CHANGED
@@ -1,4 +1,4 @@
1
- import "./lib-C8_jXvwA.js";
2
- import { a as deriveDefaultPageAuthorities, c as web_trust_default, i as buildTrustScript, n as apply, o as inject, r as buildMobileScript, s as name, t as Config } from "./web-trust-D6gJpUMf.js";
1
+ import "./lib.js";
2
+ import { a as deriveDefaultPageAuthorities, c as web_trust_default, i as buildTrustScript, n as apply, o as inject, r as buildMobileScript, s as name, t as Config } from "./web-trust2.js";
3
3
 
4
4
  export { Config, apply, buildMobileScript, buildTrustScript, web_trust_default as default, deriveDefaultPageAuthorities, inject, name };
@@ -1,4 +1,4 @@
1
- import { t as Schema } from "./index-DTDXUe6m.js";
1
+ import { t as Schema } from "./index2.js";
2
2
  import { Context } from "@deepseek-ai/cordis";
3
3
 
4
4
  //#region src/web-trust.d.ts
@@ -1,4 +1,4 @@
1
- import { t as Schema } from "./lib-C8_jXvwA.js";
1
+ import { t as Schema } from "./lib.js";
2
2
  import { Context } from "@deepseek-ai/cordis";
3
3
 
4
4
  //#region src/mobile/zoom-guard.ts
@@ -252,20 +252,32 @@ function buildZoomGuardSection() {
252
252
  * A fixed, query-free index path prevents token exchange or redirects here;
253
253
  * original Host and Cookie headers preserve the native authority binding and
254
254
  * lifetime. No upstream private fields or cookie-format copies are needed.
255
+ *
256
+ * 0.2.1: the fence core is `admit()` — the HTTP bridge calls it directly and
257
+ * `requestRejection()` is a thin wrapper over it, so overriding the public
258
+ * `admit` is the one seam that still steers both paths. A fence rejection
259
+ * (403) is retried as cookie-only admission; every other verdict (a live
260
+ * peer, 401 from failed native authentication, disposed) passes through
261
+ * untouched. An accepted cookie admits as the shared browser peer — the same
262
+ * scope native browser authentication grants.
255
263
  */
256
264
  function installAuthenticationOnlyAdmission(connection) {
257
- const original = connection.requestRejection;
265
+ const original = connection.admit;
258
266
  const response = {
259
267
  writeHead() {},
260
268
  end() {}
261
269
  };
262
- connection.requestRejection = (request) => connection.authorizeIndex({
263
- headers: request.headers,
264
- method: "GET",
265
- url: "/index.html"
266
- }, response) ? void 0 : 401;
270
+ connection.admit = (request) => {
271
+ const admission = original.call(connection, request);
272
+ if (!("rejection" in admission) || admission.rejection !== 403) return admission;
273
+ return connection.authorizeIndex({
274
+ headers: request.headers,
275
+ method: "GET",
276
+ url: "/index.html"
277
+ }, response) ? { peer: connection.browserPeer } : { rejection: 401 };
278
+ };
267
279
  return () => {
268
- connection.requestRejection = original;
280
+ connection.admit = original;
269
281
  };
270
282
  }
271
283
 
@@ -1,4 +1,4 @@
1
- import { t as Schema } from "./index-DTDXUe6m.js";
1
+ import { t as Schema } from "./index2.js";
2
2
  import { Context } from "@deepseek-ai/cordis";
3
3
 
4
4
  //#region src/welcome-notice.d.ts
@@ -1,4 +1,4 @@
1
- import { t as Schema } from "./lib-C8_jXvwA.js";
1
+ import { t as Schema } from "./lib.js";
2
2
 
3
3
  //#region src/welcome-notice.ts
4
4
  const name = "dashr-welcome-notice";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "better-dsh",
3
- "version": "0.3.1-b",
3
+ "version": "0.3.1-e",
4
4
  "description": "Make your dsh ready for serious coding tasks. (Tools x Schemas)^REPL. `skill://`, `ctx://`, `agent://`, `dvc://`, `dsh://`, Python REPL, Context as Variables, cross compactions recallable, full context revive. `hash-edit`, `dvc://browser`, subagent as function, workflow as function.",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -1,4 +0,0 @@
1
- import "./util-BHL_dfV_.js";
2
- import { t as BrowserWebSocketTransport } from "./BrowserWebSocketTransport-wm99h94r.js";
3
-
4
- export { BrowserWebSocketTransport };
@@ -1,4 +0,0 @@
1
- import "./main-uqGqYYnA.js";
2
- import { t as convertPuppeteerChannelToBrowsersChannel } from "./LaunchOptions-iE9M-STS.js";
3
-
4
- export { convertPuppeteerChannelToBrowsersChannel };
@@ -1,4 +0,0 @@
1
- import "./util-BHL_dfV_.js";
2
- import { t as NodeWebSocketTransport } from "./NodeWebSocketTransport-D9ysYGLM.js";
3
-
4
- export { NodeWebSocketTransport };
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes