@duct-sdk/sdk 0.4.2 → 0.4.3

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/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  Public release notes for the Duct SDK. Versioning follows [semver](https://semver.org).
4
4
 
5
+ ## [0.4.3] — 2026-07-03
6
+
7
+ ### Fixed
8
+ - **`DuctShell` launcher icon when the shell host is unreachable** — bubble icon tries the host app's `/duct-text-no-bg.png` before the shell host URL; removed the nonexistent `duct-logo.png` candidate; final fallback is the `duↄt` wordmark instead of a broken orange SVG.
9
+
5
10
  ## [0.4.2] — 2026-07-03
6
11
 
7
12
  ### Fixed
@@ -97,7 +97,7 @@ export interface DuctShellProps {
97
97
  className?: string;
98
98
  /**
99
99
  * Optional launcher icon source.
100
- * When omitted, the SDK tries cloud-hosted icon first, then local /assets/logo.png.
100
+ * When omitted, the SDK tries the host app's /duct-text-no-bg.png, then the shell host URL, then /assets/logo.png.
101
101
  */
102
102
  launcherIconSrc?: string;
103
103
  /**
@@ -270,7 +270,11 @@ export function DuctShell({ shellId, userContext, onTokenRequest, onNavigate, on
270
270
  })();
271
271
  const iconCandidates = launcherIconSrc
272
272
  ? [launcherIconSrc]
273
- : [`${shellOrigin}/duct-text-no-bg.png`, `${shellOrigin}/duct-logo.png`, DUCT_LAUNCHER_ICON_LOCAL_FALLBACK];
273
+ : [
274
+ "/duct-text-no-bg.png",
275
+ `${shellOrigin}/duct-text-no-bg.png`,
276
+ DUCT_LAUNCHER_ICON_LOCAL_FALLBACK,
277
+ ];
274
278
  const currentIconSrc = iconCandidates[Math.min(iconCandidateIndex, iconCandidates.length - 1)];
275
279
  // Send a message to the iframe
276
280
  const postToShell = useCallback((message) => {
@@ -662,7 +666,15 @@ export function DuctShell({ shellId, userContext, onTokenRequest, onNavigate, on
662
666
  padding: 0,
663
667
  transition: isDragging ? "none" : "transform 150ms ease, box-shadow 150ms ease",
664
668
  };
665
- const bubbleIcon = !iconLoadFailed ? (_jsx("img", { src: currentIconSrc, alt: "Duct", width: 30, height: 30, draggable: false, onError: handleIconError, style: { width: "30px", height: "30px", objectFit: "contain", pointerEvents: "none" } })) : (_jsx("svg", { width: "28", height: "28", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: _jsx("path", { d: "M18 12c0-3.3-2.2-5.5-5.5-5.5C9 6.5 7 8.7 7 12s2 5.5 5.5 5.5c2 0 3.6-.8 4.6-2.2l-2.2-1.6c-.6.8-1.4 1.3-2.4 1.3-1.6 0-2.8-1.2-2.8-3s1.2-3 2.8-3c1 0 1.8.5 2.3 1.3L18 12z", fill: "#E8622A" }) }));
669
+ const bubbleIcon = !iconLoadFailed ? (_jsx("img", { src: currentIconSrc, alt: "Duct", width: 30, height: 30, draggable: false, onError: handleIconError, style: { width: "30px", height: "30px", objectFit: "contain", pointerEvents: "none" } })) : (_jsx("span", { "aria-hidden": "true", style: {
670
+ color: "#E8622A",
671
+ fontSize: 11,
672
+ fontWeight: 600,
673
+ letterSpacing: "-0.02em",
674
+ lineHeight: 1,
675
+ pointerEvents: "none",
676
+ userSelect: "none",
677
+ }, children: "du\u2184t" }));
666
678
  return (_jsxs(_Fragment, { children: [!panelOpen && (_jsx("button", { type: "button", style: {
667
679
  ...bubbleStyle,
668
680
  ...bubbleLauncherStyle,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duct-sdk/sdk",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "type": "module",
5
5
  "description": "Duct SDK — A shell (like terminal) that knows when to talk, when to show, and when to hand off.",
6
6
  "main": "dist/index.js",