@stagewhisper/stagewhisper 0.49.0 → 0.52.0

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.
@@ -2,7 +2,7 @@
2
2
  "id": "stagewhisper",
3
3
  "name": "StageWhisper",
4
4
  "description": "Turn live call moments into assistant tasks via StageWhisper",
5
- "version": "0.49.0",
5
+ "version": "0.52.0",
6
6
  "channels": [
7
7
  "stagewhisper"
8
8
  ],
package/package.json CHANGED
@@ -1,26 +1,25 @@
1
1
  {
2
2
  "name": "@stagewhisper/stagewhisper",
3
- "version": "0.49.0",
3
+ "version": "0.52.0",
4
4
  "type": "module",
5
5
  "description": "OpenClaw channel plugin that connects StageWhisper live calls to your AI assistant",
6
6
  "license": "MIT",
7
7
  "files": [
8
- "index.ts",
9
- "plugin-main.ts",
10
- "api.ts",
11
- "openresponses.d.ts",
12
- "src",
8
+ "dist",
13
9
  "openclaw.plugin.json",
14
- "skills"
10
+ "skills",
11
+ "README.md"
15
12
  ],
16
13
  "scripts": {
14
+ "build": "node ./scripts/build.mjs",
15
+ "prepack": "pnpm build",
17
16
  "typecheck": "tsc --noEmit",
18
17
  "test": "vitest run",
19
18
  "test:watch": "vitest"
20
19
  },
21
20
  "openclaw": {
22
21
  "extensions": [
23
- "./index.ts"
22
+ "./dist/index.js"
24
23
  ],
25
24
  "channel": {
26
25
  "id": "stagewhisper",
@@ -29,11 +28,13 @@
29
28
  }
30
29
  },
31
30
  "devDependencies": {
31
+ "@noble/ciphers": "^1.3.0",
32
+ "@noble/curves": "^1.8.0",
33
+ "@noble/hashes": "^1.7.0",
34
+ "esbuild": "^0.27.2",
32
35
  "openclaw": "2026.3.23",
33
36
  "typescript": "^5.7.0",
34
37
  "vitest": "^3.0.0"
35
38
  },
36
- "peerDependencies": {
37
- "openclaw": ">=2026.3.0"
38
- }
39
+ "dependencies": {}
39
40
  }
package/api.ts DELETED
@@ -1,4 +0,0 @@
1
- export { stagewhisperPlugin, resolveAccount } from "./src/channel.js";
2
- export { StageWhisperClient } from "./src/client.js";
3
- export type { TaskPayload, PairCompleteResponse } from "./src/client.js";
4
- export type { StageWhisperAccount } from "./src/channel.js";
package/index.ts DELETED
@@ -1,54 +0,0 @@
1
- import fs from "node:fs";
2
- import path from "node:path";
3
-
4
- // OpenClaw loads external plugins via jiti from ~/.openclaw/extensions/.
5
- // jiti's alias map is built by walking up from the plugin file's directory
6
- // to find a package.json with name "openclaw" — but external plugins live
7
- // outside the openclaw package tree, so the walk never finds it and
8
- // 'openclaw/plugin-sdk/*' imports fail with "Cannot find module".
9
- //
10
- // This bootstrap creates a node_modules/openclaw symlink pointing to the
11
- // actual openclaw package (located via process.argv[1]), then loads the
12
- // real plugin entry where the openclaw imports live.
13
-
14
- function ensureOpenClawResolvable(): void {
15
- const pluginDir =
16
- typeof __dirname === "string"
17
- ? __dirname
18
- : path.dirname(new URL(import.meta.url).pathname);
19
-
20
- const link = path.join(pluginDir, "node_modules", "openclaw");
21
- if (fs.existsSync(link)) return;
22
-
23
- const binPath = process.argv[1];
24
- if (!binPath) return;
25
-
26
- try {
27
- const resolved = fs.realpathSync(binPath);
28
- let dir = path.dirname(resolved);
29
- for (let i = 0; i < 20; i++) {
30
- const pkgPath = path.join(dir, "package.json");
31
- if (fs.existsSync(pkgPath)) {
32
- try {
33
- const pkg = JSON.parse(fs.readFileSync(pkgPath, "utf-8"));
34
- if (pkg.name === "openclaw") {
35
- fs.mkdirSync(path.join(pluginDir, "node_modules"), {
36
- recursive: true,
37
- });
38
- fs.symlinkSync(dir, link, "dir");
39
- return;
40
- }
41
- } catch {}
42
- }
43
- const parent = path.dirname(dir);
44
- if (parent === dir) break;
45
- dir = parent;
46
- }
47
- } catch {}
48
- }
49
-
50
- ensureOpenClawResolvable();
51
-
52
- // eslint-disable-next-line @typescript-eslint/no-require-imports
53
- const pluginMain = require("./plugin-main");
54
- export default pluginMain.default ?? pluginMain;