better-dsh 0.3.0-e → 0.3.0-f
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/README.md +12 -11
- package/cordis.patch.yml +1 -29
- package/lib/BrowserWebSocketTransport-CgnU0Bka.js +4 -0
- package/lib/{BrowserWebSocketTransport-wm99h94r.js → BrowserWebSocketTransport-CokhVKFw.js} +2 -2
- package/lib/LaunchOptions-DljEj6Vd.js +4 -0
- package/lib/{LaunchOptions-DXdeJis3.js → LaunchOptions-NT3-rzpY.js} +2 -2
- package/lib/NodeWebSocketTransport-5Wqr0cTX.js +4 -0
- package/lib/{NodeWebSocketTransport-D9ysYGLM.js → NodeWebSocketTransport-DtNdogd8.js} +29 -29
- package/lib/{bidi-CwtLGgcA.js → bidi-CXUoxww0.js} +99 -99
- package/lib/client/index.js +25 -2
- package/lib/fs-aware/sandbox-plugin.js +1 -1
- package/lib/{index-browser-Bp3vxHC3.js → index-browser-DkpQrcIm.js} +104 -104
- package/lib/{main-CKFNYpqT.js → main-CspJGYxD.js} +14 -14
- package/lib/{main-BXwPLuYr.js → main-jPcGHA-q.js} +1 -1
- package/lib/mobile/plugin.d.ts +1 -1
- package/lib/{puppeteer-core-Bliv_vNf.js → puppeteer-core-D29koPVJ.js} +17 -17
- package/lib/url-schemes/index.d.ts +11 -11
- package/lib/url-schemes/index.js +16 -16
- package/lib/{util-BHL_dfV_.js → util-CdSJv4Yr.js} +9 -9
- package/lib/{wasm_bg-CNXhHjVg.js → wasm_bg-C8T5tUKB.js} +2 -2
- package/lib/web-password.d.ts +7 -7
- package/lib/{web-tree-sitter-CPrPD4J2.js → web-tree-sitter-BUIVjOZV.js} +1 -1
- package/lib/{web-trust-C_Y6o8Z2.d.ts → web-trust-Dej_RI2B.d.ts} +11 -11
- package/lib/web-trust.d.ts +2 -1
- package/lib/welcome-notice.d.ts +5 -7
- package/lib/welcome-notice.js +9 -48
- package/package.json +2 -14
- package/lib/BrowserWebSocketTransport-D1aFReu_.js +0 -4
- package/lib/LaunchOptions-3peHoOAx.js +0 -4
- package/lib/NodeWebSocketTransport-BRLjmu2R.js +0 -4
- package/lib/hmr.d.ts +0 -32
- package/lib/hmr.js +0 -49
- package/lib/webserver.d.ts +0 -10
- package/lib/webserver.js +0 -19
package/lib/client/index.js
CHANGED
|
@@ -64,7 +64,7 @@ const zh = {
|
|
|
64
64
|
};
|
|
65
65
|
|
|
66
66
|
//#endregion
|
|
67
|
-
//#region \0dsh-css:/home/u1/workspaces/superd/better-dsh/src/failover/client/FailoverRow.module.css.mjs
|
|
67
|
+
//#region \0dsh-css:/home/u1/workspaces/superd/.worktrees/native-companions/better-dsh/src/failover/client/FailoverRow.module.css.mjs
|
|
68
68
|
const css$1 = "\n._440e1d7b_row {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 12px 0;\n}\n\n._a4f2ceec_rowText {\n flex: 1;\n min-width: 0;\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n\n._9865b509_title {\n font-weight: 600;\n font-size: 14px;\n}\n\n\n._3cfec826_slots {\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n gap: 6px;\n}\n\n._11c2662d_select {\n width: 280px;\n max-width: 100%;\n min-width: 0;\n}\n\n._b7c358f9_alert {\n color: var(--dsw-alias-danger, #c0392b);\n font-size: 12px;\n}\n";
|
|
69
69
|
const tagId$1 = "better-dsh/FailoverRow.module.css";
|
|
70
70
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$1) + "]") === null) {
|
|
@@ -463,7 +463,7 @@ const zh$1 = {
|
|
|
463
463
|
};
|
|
464
464
|
|
|
465
465
|
//#endregion
|
|
466
|
-
//#region \0dsh-css:/home/u1/workspaces/superd/better-dsh/src/compaction/client/CompactionRow.module.css.mjs
|
|
466
|
+
//#region \0dsh-css:/home/u1/workspaces/superd/.worktrees/native-companions/better-dsh/src/compaction/client/CompactionRow.module.css.mjs
|
|
467
467
|
const css = "\n\n\n._13e3747c_thresholdRow {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 16px 0;\n border-bottom: 0.5px solid var(--dsw-alias-border-l2);\n}\n\n._8ad3ff3f_thresholdText {\n flex: 1;\n min-width: 0;\n display: flex;\n flex-direction: column;\n gap: 4px;\n padding-right: 48px;\n}\n\n._9ffb627e_thresholdTitle {\n font-size: 14px;\n font-weight: 400;\n line-height: 22px;\n color: var(--dsw-alias-label-primary);\n}\n\n._01bea389_thresholdDesc {\n font-size: 12px;\n font-weight: 400;\n line-height: 18px;\n color: var(--dsw-alias-label-tertiary);\n}\n\n._7f9578de_thresholdError {\n font-size: 12px;\n font-weight: 400;\n line-height: 18px;\n color: var(--dsw-alias-danger, #c0392b);\n}\n\n\n._cddd78cd_thresholdControl {\n display: inline-flex;\n align-items: center;\n gap: 8px;\n}\n\n._6058fea9_thresholdStepper {\n position: relative; \n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width: 72px;\n height: 36px;\n border-radius: 18px;\n background: var(--dsw-alias-bg-module-platform);\n}\n\n._39d30469_thresholdValue {\n min-width: 18px;\n text-align: center;\n font-size: 14px;\n line-height: 22px;\n font-variant-numeric: tabular-nums;\n color: var(--dsw-alias-label-primary);\n}\n\n._68bd35c6_thresholdUnit {\n font-size: 14px;\n line-height: 22px;\n color: var(--dsw-alias-label-secondary);\n}\n\n\n._904da366_thresholdArrows {\n position: absolute;\n right: 8px;\n display: flex;\n flex-direction: column;\n gap: 2px;\n opacity: 0;\n}\n\n._6058fea9_thresholdStepper:hover ._904da366_thresholdArrows,\n._6058fea9_thresholdStepper:focus-within ._904da366_thresholdArrows {\n opacity: 1;\n}\n\n\n._ae9106b1_thresholdArrow {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 17px;\n height: 12px;\n padding: 0;\n border: none;\n border-radius: 3px;\n background: color-mix(in srgb, var(--dsw-alias-bg-layer-1) 75%, transparent);\n color: var(--dsw-alias-label-primary);\n cursor: pointer;\n}\n\n._ae9106b1_thresholdArrow:hover:not(:disabled) {\n background: var(--dsw-alias-bg-layer-1);\n}\n\n._ae9106b1_thresholdArrow:disabled {\n color: var(--dsw-alias-label-caption);\n cursor: default;\n}\n";
|
|
468
468
|
const tagId = "better-dsh/CompactionRow.module.css";
|
|
469
469
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === null) {
|
|
@@ -650,6 +650,28 @@ function setupCompactionRow(ctx) {
|
|
|
650
650
|
})), "compaction-tuning: served settings row");
|
|
651
651
|
}
|
|
652
652
|
|
|
653
|
+
//#endregion
|
|
654
|
+
//#region src/welcome-notice/client/index.ts
|
|
655
|
+
/** Complete each newly selected notice without persisting native acknowledgement state. */
|
|
656
|
+
function SkipWelcomeNotice({ complete }) {
|
|
657
|
+
const completed = (0, react.useRef)(false);
|
|
658
|
+
(0, react.useEffect)(() => {
|
|
659
|
+
if (completed.current) return;
|
|
660
|
+
completed.current = true;
|
|
661
|
+
complete();
|
|
662
|
+
}, [complete]);
|
|
663
|
+
return null;
|
|
664
|
+
}
|
|
665
|
+
/** A package client can outlive this independently toggleable Host component. */
|
|
666
|
+
function setupWelcomeNotice(ctx) {
|
|
667
|
+
ctx.effect(() => ctx.configForms.whileServed(["dashr-welcome-notice"], () => ctx.slots.inject("settings.onboarding", () => ctx.slots.register({
|
|
668
|
+
name: "settings.onboarding",
|
|
669
|
+
id: "welcome-notice",
|
|
670
|
+
priority: -1,
|
|
671
|
+
order: -100
|
|
672
|
+
}, SkipWelcomeNotice))), "welcome notice: served skip policy");
|
|
673
|
+
}
|
|
674
|
+
|
|
653
675
|
//#endregion
|
|
654
676
|
//#region src/failover/client/index.ts
|
|
655
677
|
/** Required services (cordis fiber inject). */
|
|
@@ -672,6 +694,7 @@ function apply(ctx) {
|
|
|
672
694
|
}), "llm-failover: dictionaries");
|
|
673
695
|
setupMobileLayout(ctx);
|
|
674
696
|
setupCompactionRow(ctx);
|
|
697
|
+
setupWelcomeNotice(ctx);
|
|
675
698
|
ctx.effect(() => ctx.configForms.whileServed([FAILOVER_SETTINGS_ENTRY], () => ctx.slots.inject("settings.general.item", function* () {
|
|
676
699
|
yield ctx.slots.register({
|
|
677
700
|
name: "settings.general.item",
|
|
@@ -6,7 +6,7 @@ import { LocalFileSystem } from "@deepseek-ai/dsh-fs-local";
|
|
|
6
6
|
import { FsError } from "@deepseek-ai/dsh-fs";
|
|
7
7
|
import { writableRoots } from "@deepseek-ai/dsh-sandbox";
|
|
8
8
|
|
|
9
|
-
//#region
|
|
9
|
+
//#region ../../../upstream/deepseek-harness/packages/fs/fs-sandbox/lib/index.js
|
|
10
10
|
/**
|
|
11
11
|
* Path-containment mechanics for the filesystem sandbox. Canonical spellings
|
|
12
12
|
* take the fast lexical path; filesystem identity supplies the conservative
|