@linxin666/dsh-remote-web-ui 0.2.3 → 0.2.5
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.i18n.yaml +2 -2
- package/README.md +148 -77
- package/README.zh.md +32 -26
- package/lib/client.js +610 -74
- package/lib/client.js.map +1 -1
- package/lib/index.js +676 -35
- package/lib/mobile.js +10 -7
- package/lib/mobile.js.map +1 -1
- package/lib/types/client/FenceNotice.d.ts +21 -0
- package/lib/types/client/FenceNotice.d.ts.map +1 -0
- package/lib/types/client/FenceNotice.js +10 -0
- package/lib/types/client/RemoteEntry.d.ts.map +1 -1
- package/lib/types/client/RemoteEntry.js +18 -11
- package/lib/types/client/RemotePanel.d.ts +10 -4
- package/lib/types/client/RemotePanel.d.ts.map +1 -1
- package/lib/types/client/RemotePanel.js +7 -6
- package/lib/types/client/RemoteSettingsCard.d.ts +4 -0
- package/lib/types/client/RemoteSettingsCard.d.ts.map +1 -1
- package/lib/types/client/RemoteSettingsCard.js +3 -1
- package/lib/types/client/device-name.d.ts +3 -0
- package/lib/types/client/device-name.d.ts.map +1 -0
- package/lib/types/client/device-name.js +30 -0
- package/lib/types/client/index.d.ts.map +1 -1
- package/lib/types/client/index.js +48 -0
- package/lib/types/client/locales.d.ts +51 -1
- package/lib/types/client/locales.d.ts.map +1 -1
- package/lib/types/client/locales.js +83 -33
- package/lib/types/client/pair-api.d.ts +35 -0
- package/lib/types/client/pair-api.d.ts.map +1 -1
- package/lib/types/client/pair-api.js +39 -0
- package/lib/types/client/remote-channel.d.ts +93 -0
- package/lib/types/client/remote-channel.d.ts.map +1 -0
- package/lib/types/client/remote-channel.js +246 -0
- package/lib/types/client/settings-form.d.ts.map +1 -1
- package/lib/types/client/settings-form.js +9 -6
- package/lib/types/dsh-home.d.ts +17 -0
- package/lib/types/dsh-home.d.ts.map +1 -0
- package/lib/types/dsh-home.js +34 -0
- package/lib/types/gate.d.ts.map +1 -1
- package/lib/types/gate.js +5 -2
- package/lib/types/index.d.ts +19 -12
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/index.js +73 -5
- package/lib/types/loopback-proxy.d.ts +28 -0
- package/lib/types/loopback-proxy.d.ts.map +1 -0
- package/lib/types/loopback-proxy.js +112 -0
- package/lib/types/mobile/views/SessionListView.d.ts.map +1 -1
- package/lib/types/mobile/views/SessionListView.js +6 -1
- package/lib/types/mobile-api.d.ts.map +1 -1
- package/lib/types/mobile-api.js +6 -2
- package/lib/types/mobile-routes.js +1 -1
- package/lib/types/pairing.d.ts +63 -11
- package/lib/types/pairing.d.ts.map +1 -1
- package/lib/types/pairing.js +137 -20
- package/lib/types/pairing.persist.test.js +60 -5
- package/lib/types/posture.d.ts +75 -0
- package/lib/types/posture.d.ts.map +1 -0
- package/lib/types/posture.js +116 -0
- package/lib/types/remote-api.d.ts +60 -0
- package/lib/types/remote-api.d.ts.map +1 -0
- package/lib/types/remote-api.js +181 -0
- package/lib/types/remote-methods.d.ts +33 -0
- package/lib/types/remote-methods.d.ts.map +1 -0
- package/lib/types/remote-methods.js +54 -0
- package/lib/types/routes.d.ts +4 -0
- package/lib/types/routes.d.ts.map +1 -1
- package/lib/types/routes.js +33 -4
- package/lib/types/update.d.ts.map +1 -1
- package/lib/types/update.js +10 -2
- package/package.json +13 -13
- package/src/client/FenceNotice.tsx +43 -0
- package/src/client/RemoteEntry.tsx +19 -9
- package/src/client/RemotePanel.tsx +83 -10
- package/src/client/RemoteSettingsCard.tsx +16 -0
- package/src/client/device-name.ts +31 -0
- package/src/client/index.ts +46 -0
- package/src/client/locales.ts +83 -33
- package/src/client/pair-api.ts +60 -0
- package/src/client/remote-channel.ts +269 -0
- package/src/client/remote.module.css +240 -16
- package/src/client/settings-form.ts +8 -6
- package/src/dsh-home.ts +36 -0
- package/src/gate.ts +5 -2
- package/src/index.ts +89 -17
- package/src/loopback-proxy.ts +126 -0
- package/src/mobile/views/SessionListView.tsx +6 -1
- package/src/mobile-api.ts +6 -2
- package/src/mobile-routes.ts +1 -1
- package/src/pairing.persist.test.ts +64 -5
- package/src/pairing.ts +167 -20
- package/src/posture.ts +154 -0
- package/src/remote-api.ts +217 -0
- package/src/remote-methods.ts +62 -0
- package/src/routes.ts +33 -4
- package/src/update.ts +14 -1
package/lib/mobile.js
CHANGED
|
@@ -11962,7 +11962,7 @@ function superRefine(fn, params) {
|
|
|
11962
11962
|
return /* @__PURE__ */ _superRefine(fn, params);
|
|
11963
11963
|
}
|
|
11964
11964
|
//#endregion
|
|
11965
|
-
//#region ../../node_modules/.pnpm/@deepseek-ai+dsh-host-apiproxy@0.1.0-rc.
|
|
11965
|
+
//#region ../../node_modules/.pnpm/@deepseek-ai+dsh-host-apiproxy@0.1.0-rc.8_87e50522ee3e6c004ae77f9049f48ed1/node_modules/@deepseek-ai/dsh-host-apiproxy/lib/types/api/rpc.schema.js
|
|
11966
11966
|
/**
|
|
11967
11967
|
* Message-layer zod schemas: the four wire full forms + error body +
|
|
11968
11968
|
* carrier receipt. The payload slot is unknown in the full-form schemas — business payloads
|
|
@@ -12271,7 +12271,7 @@ union([object({ accepted: literal(true) }), object({
|
|
|
12271
12271
|
reason: union([literal("not-pending"), literal("bad-response")])
|
|
12272
12272
|
})]);
|
|
12273
12273
|
//#endregion
|
|
12274
|
-
//#region ../../node_modules/.pnpm/@deepseek-ai+dsh-host-apiproxy@0.1.0-rc.
|
|
12274
|
+
//#region ../../node_modules/.pnpm/@deepseek-ai+dsh-host-apiproxy@0.1.0-rc.8_87e50522ee3e6c004ae77f9049f48ed1/node_modules/@deepseek-ai/dsh-host-apiproxy/lib/types/api/session-search.js
|
|
12275
12275
|
/**
|
|
12276
12276
|
* Return the longest prefix containing at most `maximum` Unicode code points.
|
|
12277
12277
|
* @param value - text to bound.
|
|
@@ -12289,7 +12289,7 @@ function truncateUnicodeCodePoints(value, maximum) {
|
|
|
12289
12289
|
return value;
|
|
12290
12290
|
}
|
|
12291
12291
|
//#endregion
|
|
12292
|
-
//#region ../../node_modules/.pnpm/@deepseek-ai+dsh-host-apiproxy@0.1.0-rc.
|
|
12292
|
+
//#region ../../node_modules/.pnpm/@deepseek-ai+dsh-host-apiproxy@0.1.0-rc.8_87e50522ee3e6c004ae77f9049f48ed1/node_modules/@deepseek-ai/dsh-host-apiproxy/lib/types/api/sessions.schema.js
|
|
12293
12293
|
/**
|
|
12294
12294
|
* sessions domain zod schemas (names derived from map keys: sessionListRequestSchema /
|
|
12295
12295
|
* sessionListValueSchema). SessionEvent passthrough = strict envelope (type/seq/time) + wide
|
|
@@ -12437,6 +12437,7 @@ object({
|
|
|
12437
12437
|
maxImagesPerMessage: number().int().positive(),
|
|
12438
12438
|
maxMessageImageBytes: number().int().positive(),
|
|
12439
12439
|
maxImagePixels: number().int().positive(),
|
|
12440
|
+
maxImageDimension: number().int().positive(),
|
|
12440
12441
|
mediaTypes: array(string())
|
|
12441
12442
|
});
|
|
12442
12443
|
object({
|
|
@@ -12525,7 +12526,7 @@ object({ accepted: literal(true) });
|
|
|
12525
12526
|
object({ sessionId: sessionIdSchema });
|
|
12526
12527
|
object({ accepted: literal(true) });
|
|
12527
12528
|
//#endregion
|
|
12528
|
-
//#region ../../node_modules/.pnpm/@deepseek-ai+dsh-host-apiproxy@0.1.0-rc.
|
|
12529
|
+
//#region ../../node_modules/.pnpm/@deepseek-ai+dsh-host-apiproxy@0.1.0-rc.8_87e50522ee3e6c004ae77f9049f48ed1/node_modules/@deepseek-ai/dsh-host-apiproxy/lib/types/api/approvals.schema.js
|
|
12529
12530
|
/**
|
|
12530
12531
|
* approvals domain zod schemas (respond is a client-response; the payload schema serves
|
|
12531
12532
|
* the /api/respond endpoint's second parse after routing via the pending table).
|
|
@@ -12559,7 +12560,7 @@ const taskViewSchema = object({
|
|
|
12559
12560
|
finishedAt: number().int().nonnegative().optional()
|
|
12560
12561
|
});
|
|
12561
12562
|
//#endregion
|
|
12562
|
-
//#region ../../node_modules/.pnpm/@deepseek-ai+dsh-host-apiproxy@0.1.0-rc.
|
|
12563
|
+
//#region ../../node_modules/.pnpm/@deepseek-ai+dsh-host-apiproxy@0.1.0-rc.8_87e50522ee3e6c004ae77f9049f48ed1/node_modules/@deepseek-ai/dsh-host-apiproxy/lib/types/api/workspace.schema.js
|
|
12563
12564
|
/**
|
|
12564
12565
|
* workspace domain zod schemas (names derived from map keys). The
|
|
12565
12566
|
* WorkspaceId brand cast lives in sessions.schema (see the note there) and
|
|
@@ -12605,7 +12606,7 @@ object({ workspace: workspaceViewSchema });
|
|
|
12605
12606
|
object({ sessionId: sessionIdSchema });
|
|
12606
12607
|
object({ archivedSessionIds: array(sessionIdSchema) });
|
|
12607
12608
|
//#endregion
|
|
12608
|
-
//#region ../../node_modules/.pnpm/@deepseek-ai+dsh-host-apiproxy@0.1.0-rc.
|
|
12609
|
+
//#region ../../node_modules/.pnpm/@deepseek-ai+dsh-host-apiproxy@0.1.0-rc.8_87e50522ee3e6c004ae77f9049f48ed1/node_modules/@deepseek-ai/dsh-host-apiproxy/lib/types/api/events.schema.js
|
|
12609
12610
|
/**
|
|
12610
12611
|
* events domain zod schemas: MuxFrame / HostFrame unions (discriminatedUnion('type')).
|
|
12611
12612
|
* A frame is the payload slot of the ServerRequest full form; the SessionEvent inside
|
|
@@ -14919,6 +14920,7 @@ function SessionListView({ workspace, onBack, onPick }) {
|
|
|
14919
14920
|
const [presetsLoading, setPresetsLoading] = (0, import_react.useState)(true);
|
|
14920
14921
|
const cursorRef = (0, import_react.useRef)(void 0);
|
|
14921
14922
|
const busyRef = (0, import_react.useRef)(false);
|
|
14923
|
+
const workspaceRef = (0, import_react.useRef)(workspace);
|
|
14922
14924
|
(0, import_react.useEffect)(() => {
|
|
14923
14925
|
let cancelled = false;
|
|
14924
14926
|
setLoading(true);
|
|
@@ -14926,6 +14928,7 @@ function SessionListView({ workspace, onBack, onPick }) {
|
|
|
14926
14928
|
Promise.all([listSessions(), listWorkspaces()]).then(([page, workspaces]) => {
|
|
14927
14929
|
if (cancelled) return;
|
|
14928
14930
|
const current = workspaces.find((candidate) => candidate.workspaceId === workspace.workspaceId) ?? workspace;
|
|
14931
|
+
workspaceRef.current = current;
|
|
14929
14932
|
setRows(ownedItems(page.items, current));
|
|
14930
14933
|
cursorRef.current = page.nextCursor;
|
|
14931
14934
|
setHasMore(page.hasMore);
|
|
@@ -14970,7 +14973,7 @@ function SessionListView({ workspace, onBack, onPick }) {
|
|
|
14970
14973
|
setLoading(false);
|
|
14971
14974
|
cursorRef.current = page.nextCursor;
|
|
14972
14975
|
setHasMore(page.hasMore);
|
|
14973
|
-
setRows((previous) => [...previous, ...ownedItems(page.items,
|
|
14976
|
+
setRows((previous) => [...previous, ...ownedItems(page.items, workspaceRef.current)]);
|
|
14974
14977
|
}, (reason) => {
|
|
14975
14978
|
busyRef.current = false;
|
|
14976
14979
|
setLoading(false);
|