deepseek-harness-background 0.4.2 → 0.5.1

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
@@ -1,4 +1,3 @@
1
- import { settingsNamespace } from "@deepseek-ai/dsh-settings";
2
1
  import z from "@deepseek-ai/schemastery";
3
2
  import { randomBytes } from "node:crypto";
4
3
  import { existsSync, mkdirSync, statSync, unlinkSync, writeFileSync } from "node:fs";
@@ -48,7 +47,7 @@ const DEFAULT_PANEL_OPACITY = .15;
48
47
  /**
49
48
  * Session-projection key this plugin owns in the client-visible value map —
50
49
  * the host fold registers it (src/projection.ts) and the rail reads it
51
- * (src/client/timeline.tsx); one shared constant so the two can never drift.
50
+ * (src/client/timeline/source.ts); one shared constant so the two can never drift.
52
51
  */
53
52
  const TIMELINE_PROJECTION_KEY = "bgTimeline";
54
53
  /** Default background rendering mode. */
@@ -683,7 +682,6 @@ function registerTimelineProjection(ctx) {
683
682
  }
684
683
  //#endregion
685
684
  //#region src/index.ts
686
- const BACKGROUND_NAMESPACE = settingsNamespace(BACKGROUND_SETTINGS_NAMESPACE);
687
685
  /**
688
686
  * Register the durable background section and its API routes when the Host
689
687
  * settings/webServer services are composed. Effect timing is `live`: the
@@ -693,7 +691,7 @@ const BACKGROUND_NAMESPACE = settingsNamespace(BACKGROUND_SETTINGS_NAMESPACE);
693
691
  function apply(ctx) {
694
692
  registerTimelineProjection(ctx);
695
693
  ctx.inject(["settings", "webServer"], (hostCtx) => {
696
- if (!hostCtx.settings.describe().some((descriptor) => descriptor.ns === "ui-background")) hostCtx.settings.register(BACKGROUND_NAMESPACE, BackgroundSettingsSchema, { applies: "live" });
694
+ if (!hostCtx.settings.describe().some((descriptor) => descriptor.ns === "ui-background")) hostCtx.settings.register(BACKGROUND_SETTINGS_NAMESPACE, BackgroundSettingsSchema, { applies: "live" });
697
695
  try {
698
696
  for (const route of makeBackgroundRoutes(hostCtx.settings)) hostCtx.effect(() => hostCtx.webServer.register(route), "deepseek-harness-background: settings route");
699
697
  } catch (error) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "deepseek-harness-background",
3
3
  "description": "Custom background image plugin for the DeepSeek Harness web GUI: upload a local picture or paste an image URL, and render it behind the whole app surface with adjustable opacity, scrim, panel transparency and frosted-glass blur.",
4
- "version": "0.4.2",
4
+ "version": "0.5.1",
5
5
  "keywords": [
6
6
  "deepseek-harness",
7
7
  "dsh",
@@ -33,7 +33,6 @@
33
33
  },
34
34
  "client": {
35
35
  "inject": [
36
- "@deepseek-ai/dsh-client-runtime",
37
36
  "@deepseek-ai/dsh-client-locale"
38
37
  ],
39
38
  "platform": "web"
@@ -54,20 +53,20 @@
54
53
  ],
55
54
  "peerDependencies": {
56
55
  "@deepseek-ai/cordis": "^4.0.1",
57
- "@deepseek-ai/dsh-client-locale": "^0.1.1-rc.2",
58
- "@deepseek-ai/dsh-client-ui-slots": "^0.1.1-rc.2",
56
+ "@deepseek-ai/dsh-client-locale": "^0.1.1-rc.2 || ^0.1.2-alpha.1 || ^0.1.2-alpha.2",
57
+ "@deepseek-ai/dsh-client-ui-slots": "^0.1.1-rc.2 || ^0.1.2-alpha.1 || ^0.1.2-alpha.2",
59
58
  "react": "^18.2.0"
60
59
  },
61
60
  "dependencies": {
62
- "@deepseek-ai/dsh-settings": "^0.1.1-rc.2",
61
+ "@deepseek-ai/dsh-settings": "^0.1.1-rc.2 || ^0.1.2-alpha.1 || ^0.1.2-alpha.2",
63
62
  "@deepseek-ai/schemastery": "^3.18.1"
64
63
  },
65
64
  "devDependencies": {
66
65
  "@deepseek-ai/cordis": "^4.0.1",
67
- "@deepseek-ai/dsh-client-locale": "^0.1.1-rc.2",
68
- "@deepseek-ai/dsh-client-ui-slots": "^0.1.1-rc.2",
69
- "@deepseek-ai/dsh-host-webserver": "^0.1.1-rc.2",
70
- "@deepseek-ai/dsh-settings": "^0.1.1-rc.2",
66
+ "@deepseek-ai/dsh-client-locale": "^0.1.1-rc.2 || ^0.1.2-alpha.1 || ^0.1.2-alpha.2",
67
+ "@deepseek-ai/dsh-client-ui-slots": "^0.1.1-rc.2 || ^0.1.2-alpha.1 || ^0.1.2-alpha.2",
68
+ "@deepseek-ai/dsh-host-webserver": "^0.1.1-rc.2 || ^0.1.2-alpha.1 || ^0.1.2-alpha.2",
69
+ "@deepseek-ai/dsh-settings": "^0.1.1-rc.2 || ^0.1.2-alpha.1 || ^0.1.2-alpha.2",
71
70
  "@deepseek-ai/schemastery": "^3.18.1",
72
71
  "@testing-library/dom": "^10.4.1",
73
72
  "@testing-library/react": "^16.3.0",