@openclaw-channel/socket-chat 1.0.5 → 1.0.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.
package/vitest.config.ts CHANGED
@@ -4,17 +4,23 @@ import { defineConfig } from "vitest/config";
4
4
 
5
5
  const dir = path.dirname(fileURLToPath(import.meta.url));
6
6
  const openclawSrc = path.join(dir, "..", "openclaw", "src");
7
+ const sdkSrc = path.join(openclawSrc, "plugin-sdk");
7
8
 
8
9
  export default defineConfig({
9
10
  resolve: {
10
11
  alias: [
11
- // Point directly to the allowlist-match module to avoid pulling in the
12
- // entire plugin-sdk dependency tree (which includes json5 and other
13
- // modules that fail to load outside the openclaw workspace).
14
- {
15
- find: "openclaw/plugin-sdk",
16
- replacement: path.join(dir, "src", "__sdk-stub__.ts"),
17
- },
12
+ // Per-subpath aliases must come BEFORE the broad "openclaw/plugin-sdk" fallback.
13
+ { find: "openclaw/plugin-sdk/runtime-store", replacement: path.join(sdkSrc, "runtime-store.ts") },
14
+ { find: "openclaw/plugin-sdk/channel-pairing", replacement: path.join(sdkSrc, "channel-pairing.ts") },
15
+ { find: "openclaw/plugin-sdk/channel-lifecycle", replacement: path.join(sdkSrc, "channel-lifecycle.ts") },
16
+ { find: "openclaw/plugin-sdk/inbound-reply-dispatch", replacement: path.join(sdkSrc, "inbound-reply-dispatch.ts") },
17
+ { find: "openclaw/plugin-sdk/reply-payload", replacement: path.join(sdkSrc, "reply-payload.ts") },
18
+ { find: "openclaw/plugin-sdk/media-runtime", replacement: path.join(sdkSrc, "media-runtime.ts") },
19
+ { find: "openclaw/plugin-sdk/allow-from", replacement: path.join(sdkSrc, "allow-from.ts") },
20
+ { find: "openclaw/plugin-sdk/status-helpers", replacement: path.join(sdkSrc, "status-helpers.ts") },
21
+ { find: "openclaw/plugin-sdk/channel-core", replacement: path.join(sdkSrc, "channel-core.ts") },
22
+ // Broad fallback for any remaining "openclaw/plugin-sdk" (main barrel) imports.
23
+ { find: "openclaw/plugin-sdk", replacement: path.join(dir, "src", "__sdk-stub__.ts") },
18
24
  ],
19
25
  },
20
26
  test: {