@linxin666/dsh-remote-web-ui 0.2.6 → 0.2.7

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 (71) hide show
  1. package/README.i18n.yaml +2 -2
  2. package/README.md +4 -1
  3. package/README.zh.md +1 -1
  4. package/lib/client.js +15 -2
  5. package/lib/client.js.map +1 -1
  6. package/lib/index.js +1 -1
  7. package/lib/mobile.js +9 -8
  8. package/lib/mobile.js.map +1 -1
  9. package/lib/types/client/FenceNotice.d.ts +3 -2
  10. package/lib/types/client/FenceNotice.d.ts.map +1 -1
  11. package/lib/types/client/FooterRemoteEntry.js +1 -1
  12. package/lib/types/client/PluginSettingsCard.d.ts +1 -1
  13. package/lib/types/client/PluginSettingsCard.d.ts.map +1 -1
  14. package/lib/types/client/RemoteEntry.js +5 -5
  15. package/lib/types/client/RemotePanel.js +3 -3
  16. package/lib/types/client/RemoteSettingsCard.d.ts.map +1 -1
  17. package/lib/types/client/RemoteSettingsCard.js +2 -2
  18. package/lib/types/client/UpdateEntry.js +1 -1
  19. package/lib/types/client/UpdatePanel.js +1 -1
  20. package/lib/types/client/deep-link.js +1 -1
  21. package/lib/types/client/index.d.ts.map +1 -1
  22. package/lib/types/client/index.js +19 -11
  23. package/lib/types/client/remote-channel.d.ts +15 -0
  24. package/lib/types/client/remote-channel.d.ts.map +1 -1
  25. package/lib/types/client/remote-channel.js +13 -0
  26. package/lib/types/client/settings-form.d.ts.map +1 -1
  27. package/lib/types/client/update-api.d.ts.map +1 -1
  28. package/lib/types/gate.js +1 -1
  29. package/lib/types/index.js +14 -14
  30. package/lib/types/invariant.d.ts.map +1 -1
  31. package/lib/types/loopback-proxy.js +1 -1
  32. package/lib/types/mobile/PairRequiredView.js +1 -1
  33. package/lib/types/mobile/PairRequiredView.test.js +1 -1
  34. package/lib/types/mobile/api.js +1 -1
  35. package/lib/types/mobile/index.js +5 -5
  36. package/lib/types/mobile/markdown.test.js +1 -1
  37. package/lib/types/mobile/messages.d.ts.map +1 -1
  38. package/lib/types/mobile/messages.test.js +1 -1
  39. package/lib/types/mobile/mobile-theme.test.js +2 -2
  40. package/lib/types/mobile/mux.d.ts.map +1 -1
  41. package/lib/types/mobile/mux.js +1 -1
  42. package/lib/types/mobile/mux.test.js +1 -1
  43. package/lib/types/mobile/rpc.d.ts.map +1 -1
  44. package/lib/types/mobile/theme-toggle.js +1 -1
  45. package/lib/types/mobile/views/App.js +7 -7
  46. package/lib/types/mobile/views/App.test.js +2 -2
  47. package/lib/types/mobile/views/ChatView.js +6 -6
  48. package/lib/types/mobile/views/ChatView.test.js +3 -3
  49. package/lib/types/mobile/views/SessionListView.js +3 -3
  50. package/lib/types/mobile/views/SessionListView.test.js +2 -2
  51. package/lib/types/mobile/views/WorkspaceView.js +3 -3
  52. package/lib/types/mobile/views/WorkspaceView.test.js +3 -3
  53. package/lib/types/mobile-api.d.ts +1 -1
  54. package/lib/types/mobile-api.d.ts.map +1 -1
  55. package/lib/types/mobile-api.js +2 -2
  56. package/lib/types/pairing-access.d.ts.map +1 -1
  57. package/lib/types/pairing.d.ts.map +1 -1
  58. package/lib/types/pairing.persist.test.js +2 -2
  59. package/lib/types/remote-api.js +6 -6
  60. package/lib/types/remote-methods.d.ts.map +1 -1
  61. package/lib/types/routes.d.ts +7 -7
  62. package/lib/types/routes.d.ts.map +1 -1
  63. package/lib/types/routes.js +3 -3
  64. package/lib/types/tunnel.d.ts.map +1 -1
  65. package/lib/types/update-routes.d.ts +2 -2
  66. package/lib/types/update-routes.d.ts.map +1 -1
  67. package/lib/types/update-routes.js +1 -1
  68. package/package.json +12 -12
  69. package/src/client/FenceNotice.tsx +3 -2
  70. package/src/client/index.ts +11 -3
  71. package/src/client/remote-channel.ts +21 -0
package/lib/index.js CHANGED
@@ -14,7 +14,7 @@ import http, { request } from "node:http";
14
14
  import { connect } from "node:net";
15
15
  import { Tunnel, bin, install } from "cloudflared";
16
16
  import { spawn } from "node:child_process";
17
- //#region ../../node_modules/.pnpm/@deepseek-ai+dsh-settings@0.1.0-rc.8_@deepseek-ai+cordis@4.0.1_@deepseek-ai+dsh-brand@0_7616943ecf171cb97db9e2088de3356f/node_modules/@deepseek-ai/dsh-settings/lib/index.js
17
+ //#region ../../node_modules/.pnpm/@deepseek-ai+dsh-settings@0.1.1-rc.1_@deepseek-ai+cordis@4.0.1_@deepseek-ai+dsh-brand@0_8fb97b2935e1a5982886bc1738874e4d/node_modules/@deepseek-ai/dsh-settings/lib/index.js
18
18
  /**
19
19
  * Structural secret redaction for settings values. `role('secret')` fields are
20
20
  * removed from a value before it crosses a wire boundary; a sidecar records
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.8_87e50522ee3e6c004ae77f9049f48ed1/node_modules/@deepseek-ai/dsh-host-apiproxy/lib/types/api/rpc.schema.js
11965
+ //#region ../../node_modules/.pnpm/@deepseek-ai+dsh-host-apiproxy@0.1.1-rc.1_220c5e0fb3d45fbbe711d0f1a490a443/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.8_87e50522ee3e6c004ae77f9049f48ed1/node_modules/@deepseek-ai/dsh-host-apiproxy/lib/types/api/session-search.js
12274
+ //#region ../../node_modules/.pnpm/@deepseek-ai+dsh-host-apiproxy@0.1.1-rc.1_220c5e0fb3d45fbbe711d0f1a490a443/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.8_87e50522ee3e6c004ae77f9049f48ed1/node_modules/@deepseek-ai/dsh-host-apiproxy/lib/types/api/sessions.schema.js
12292
+ //#region ../../node_modules/.pnpm/@deepseek-ai+dsh-host-apiproxy@0.1.1-rc.1_220c5e0fb3d45fbbe711d0f1a490a443/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
@@ -12343,8 +12343,9 @@ object({
12343
12343
  workspaceId: workspaceIdSchema.optional(),
12344
12344
  cwd: string().optional(),
12345
12345
  sessionId: sessionIdSchema.optional(),
12346
- agentPreset: string().optional()
12347
- }).refine((payload) => payload.workspaceId === void 0 || payload.cwd === void 0, { message: "session.create accepts workspaceId or cwd, not both" });
12346
+ agentPreset: string().optional(),
12347
+ reuseWorkspaceBlank: literal(true).optional()
12348
+ }).refine((payload) => payload.workspaceId === void 0 || payload.cwd === void 0, { message: "session.create accepts workspaceId or cwd, not both" }).refine((payload) => payload.reuseWorkspaceBlank !== true || payload.workspaceId !== void 0 && payload.sessionId !== void 0, { message: "session.create reuseWorkspaceBlank requires workspaceId and sessionId" });
12348
12349
  object({
12349
12350
  sessionId: sessionIdSchema,
12350
12351
  agentPreset: string().optional()
@@ -12526,7 +12527,7 @@ object({ accepted: literal(true) });
12526
12527
  object({ sessionId: sessionIdSchema });
12527
12528
  object({ accepted: literal(true) });
12528
12529
  //#endregion
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
12530
+ //#region ../../node_modules/.pnpm/@deepseek-ai+dsh-host-apiproxy@0.1.1-rc.1_220c5e0fb3d45fbbe711d0f1a490a443/node_modules/@deepseek-ai/dsh-host-apiproxy/lib/types/api/approvals.schema.js
12530
12531
  /**
12531
12532
  * approvals domain zod schemas (respond is a client-response; the payload schema serves
12532
12533
  * the /api/respond endpoint's second parse after routing via the pending table).
@@ -12560,7 +12561,7 @@ const taskViewSchema = object({
12560
12561
  finishedAt: number().int().nonnegative().optional()
12561
12562
  });
12562
12563
  //#endregion
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
12564
+ //#region ../../node_modules/.pnpm/@deepseek-ai+dsh-host-apiproxy@0.1.1-rc.1_220c5e0fb3d45fbbe711d0f1a490a443/node_modules/@deepseek-ai/dsh-host-apiproxy/lib/types/api/workspace.schema.js
12564
12565
  /**
12565
12566
  * workspace domain zod schemas (names derived from map keys). The
12566
12567
  * WorkspaceId brand cast lives in sessions.schema (see the note there) and
@@ -12606,7 +12607,7 @@ object({ workspace: workspaceViewSchema });
12606
12607
  object({ sessionId: sessionIdSchema });
12607
12608
  object({ archivedSessionIds: array(sessionIdSchema) });
12608
12609
  //#endregion
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
12610
+ //#region ../../node_modules/.pnpm/@deepseek-ai+dsh-host-apiproxy@0.1.1-rc.1_220c5e0fb3d45fbbe711d0f1a490a443/node_modules/@deepseek-ai/dsh-host-apiproxy/lib/types/api/events.schema.js
12610
12611
  /**
12611
12612
  * events domain zod schemas: MuxFrame / HostFrame unions (discriminatedUnion('type')).
12612
12613
  * A frame is the payload slot of the ServerRequest full form; the SessionEvent inside