@linxin666/dsh-remote-web-ui 0.2.3 → 0.2.4

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/lib/index.js CHANGED
@@ -12,7 +12,7 @@ import { RpcId } from "@deepseek-ai/dsh-host-apiproxy/api/rpc";
12
12
  import { networkInterfaces } from "node:os";
13
13
  import { Tunnel, bin, install } from "cloudflared";
14
14
  import { spawn } from "node:child_process";
15
- //#region ../../node_modules/.pnpm/@deepseek-ai+dsh-settings@0.1.0-rc.7_@deepseek-ai+cordis@4.0.1_@deepseek-ai+dsh-brand@0_6b0eb868fb92d854799855c05c5fa43c/node_modules/@deepseek-ai/dsh-settings/lib/index.js
15
+ //#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
16
16
  /**
17
17
  * Structural secret redaction for settings values. `role('secret')` fields are
18
18
  * removed from a value before it crosses a wire boundary; a sidecar records
@@ -1918,6 +1918,12 @@ function isLinkedSpec(spec) {
1918
1918
  if (typeof spec !== "string") return false;
1919
1919
  return /^(?:link|file):|^\.{1,2}(?:[/\\]|$)/.test(spec);
1920
1920
  }
1921
+ /** Whether a direct local dependency overrides one of the aggregate's children. */
1922
+ function hasLinkedFamilyOverride(anchorManifest, profileManifest) {
1923
+ const dependencies = profileManifest?.dependencies;
1924
+ if (typeof dependencies !== "object" || dependencies === null) return false;
1925
+ return familyChildren(anchorManifest).some((name) => isLinkedSpec(dependencies[name]));
1926
+ }
1921
1927
  /**
1922
1928
  * Resolve the anchor package's manifest path. The aggregate package is the
1923
1929
  * canonical entry point; this plugin's own package is the fallback. Both a
@@ -1950,7 +1956,7 @@ function resolveUpdateTarget(deps) {
1950
1956
  if (profile === void 0) return { error: "link" };
1951
1957
  const profileManifest = readManifest(join(profile.dir, "package.json"));
1952
1958
  const spec = (profileManifest?.dependencies)?.[anchor];
1953
- if (isLinkedSpec(spec)) return { error: "link" };
1959
+ if (isLinkedSpec(spec) || hasLinkedFamilyOverride(manifest, profileManifest)) return { error: "link" };
1954
1960
  return {
1955
1961
  profileName: profile.name,
1956
1962
  profileDir: profile.dir,
@@ -2045,7 +2051,7 @@ async function checkUpdates(deps) {
2045
2051
  };
2046
2052
  const profile = findProfile(manifestPath);
2047
2053
  const profileManifest = profile === void 0 ? void 0 : readManifest(join(profile.dir, "package.json"));
2048
- const linked = profile === void 0 || isLinkedSpec((profileManifest?.dependencies)?.[anchor]);
2054
+ const linked = profile === void 0 || isLinkedSpec((profileManifest?.dependencies)?.[anchor]) || hasLinkedFamilyOverride(manifest, profileManifest);
2049
2055
  if (profile === void 0) return {
2050
2056
  mode: "link",
2051
2057
  packages: [],
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.7_36988429fa7c61ceeac966dddad3597f/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.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.7_36988429fa7c61ceeac966dddad3597f/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.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.7_36988429fa7c61ceeac966dddad3597f/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.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.7_36988429fa7c61ceeac966dddad3597f/node_modules/@deepseek-ai/dsh-host-apiproxy/lib/types/api/approvals.schema.js
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.7_36988429fa7c61ceeac966dddad3597f/node_modules/@deepseek-ai/dsh-host-apiproxy/lib/types/api/workspace.schema.js
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.7_36988429fa7c61ceeac966dddad3597f/node_modules/@deepseek-ai/dsh-host-apiproxy/lib/types/api/events.schema.js
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