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.
- package/cordis.patch.yml +13 -8
- package/lib/BrowserWebSocketTransport.js +4 -0
- package/lib/{BrowserWebSocketTransport-wm99h94r.js → BrowserWebSocketTransport2.js} +1 -1
- package/lib/LaunchOptions.js +4 -0
- package/lib/{LaunchOptions-iE9M-STS.js → LaunchOptions2.js} +1 -1
- package/lib/{NodeWebSocketTransport-D9ysYGLM.js → NodeWebSocketTransport.js} +2 -2
- package/lib/NodeWebSocketTransport2.js +4 -0
- package/lib/{bidi-CaQeBZHY.js → bidi.js} +4 -4
- package/lib/compaction/index.d.ts +1 -1
- package/lib/compaction/index.js +1 -1
- package/lib/failover/index.d.ts +1 -1
- package/lib/failover/index.js +1 -1
- package/lib/fs-aware/sandbox-plugin.js +1 -1
- package/lib/{index-browser-CJzxT9Vi.js → index-browser.js} +6 -6
- package/lib/index.d.ts +1 -1
- package/lib/index.js +49 -20
- package/lib/kernel-env.js +1 -1
- package/lib/{lsp-server-registry-BcdkHROD.js → lsp-server-registry2.js} +1 -1
- package/lib/{main-uqGqYYnA.js → main.js} +1 -1
- package/lib/{main-taSMz1KX.js → main2.js} +1 -1
- package/lib/mobile/plugin.d.ts +2 -2
- package/lib/mobile/plugin.js +2 -2
- package/lib/{puppeteer-core-C-4NyOpY.js → puppeteer-core.js} +8 -8
- package/lib/py-sdk.js +1 -1
- package/lib/remote/helper-bin/MANIFEST.json +7 -7
- package/lib/remote/helper-bin/aarch64-apple-darwin/BUILT-VER +1 -1
- package/lib/remote/helper-bin/aarch64-apple-darwin/superd-run +0 -0
- package/lib/remote/helper-bin/aarch64-unknown-linux-musl/BUILT-VER +1 -1
- package/lib/remote/helper-bin/aarch64-unknown-linux-musl/superd-run +0 -0
- package/lib/remote/helper-bin/x86_64-pc-windows-gnu/BUILT-VER +1 -1
- package/lib/remote/helper-bin/x86_64-pc-windows-gnu/superd-run.exe +0 -0
- package/lib/remote/helper-bin/x86_64-unknown-linux-musl/BUILT-VER +1 -1
- package/lib/remote/helper-bin/x86_64-unknown-linux-musl/superd-run +0 -0
- package/lib/remote/plugin.d.ts +23 -4
- package/lib/remote/plugin.js +226 -88
- package/lib/url-schemes/index.d.ts +1 -1
- package/lib/url-schemes/index.js +11 -11
- package/lib/{wasm_bg-CNXhHjVg.js → wasm_bg.js} +1 -1
- package/lib/web-password.d.ts +1 -1
- package/lib/web-password.js +1 -1
- package/lib/web-trust.d.ts +2 -2
- package/lib/web-trust.js +2 -2
- package/lib/{web-trust-Dej_RI2B.d.ts → web-trust2.d.ts} +1 -1
- package/lib/{web-trust-D6gJpUMf.js → web-trust2.js} +20 -8
- package/lib/welcome-notice.d.ts +1 -1
- package/lib/welcome-notice.js +1 -1
- package/package.json +1 -1
- package/lib/BrowserWebSocketTransport-D1aFReu_.js +0 -4
- package/lib/LaunchOptions-0Mr6meJc.js +0 -4
- package/lib/NodeWebSocketTransport-BRLjmu2R.js +0 -4
- /package/lib/{chunk-DQxbwPpZ.js → chunk.js} +0 -0
- /package/lib/{index-DTDXUe6m.d.ts → index2.d.ts} +0 -0
- /package/lib/{kernel-env-x_WkG6Fr.js → kernel-env2.js} +0 -0
- /package/lib/{lib-C8_jXvwA.js → lib.js} +0 -0
- /package/lib/{lsp-server-registry-D4VLs1Sm.js → lsp-server-registry.js} +0 -0
- /package/lib/{native-capture-BEByDXYM.js → native-capture.js} +0 -0
- /package/lib/{py-sdk-D7klhpWb.js → py-sdk2.js} +0 -0
- /package/lib/{util-BHL_dfV_.js → util.js} +0 -0
- /package/lib/{web-tree-sitter-CPrPD4J2.js → web-tree-sitter.js} +0 -0
- /package/lib/{wrap-0VA0uFx8.js → wrap.js} +0 -0
package/lib/web-trust.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./lib
|
|
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-
|
|
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 "./lib
|
|
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.
|
|
265
|
+
const original = connection.admit;
|
|
258
266
|
const response = {
|
|
259
267
|
writeHead() {},
|
|
260
268
|
end() {}
|
|
261
269
|
};
|
|
262
|
-
connection.
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
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.
|
|
280
|
+
connection.admit = original;
|
|
269
281
|
};
|
|
270
282
|
}
|
|
271
283
|
|
package/lib/welcome-notice.d.ts
CHANGED
package/lib/welcome-notice.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "better-dsh",
|
|
3
|
-
"version": "0.3.1-
|
|
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",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|