@stagewhisper/stagewhisper 0.51.0 → 0.53.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.
- package/dist/index.js +5246 -0
- package/openclaw.plugin.json +1 -1
- package/package.json +12 -16
- package/api.ts +0 -4
- package/index.ts +0 -54
- package/openresponses.d.ts +0 -1361
- package/plugin-main.ts +0 -356
- package/src/channel.test.ts +0 -201
- package/src/channel.ts +0 -182
- package/src/client.ts +0 -191
- package/src/crypto.test.ts +0 -181
- package/src/crypto.ts +0 -203
- package/src/health.test.ts +0 -101
- package/src/health.ts +0 -94
- package/src/openresponses.ts +0 -107
- package/src/reasoning.test.ts +0 -116
- package/src/reasoning.ts +0 -210
- package/src/runtime.ts +0 -6
- package/src/service.ts +0 -952
package/openclaw.plugin.json
CHANGED
package/package.json
CHANGED
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stagewhisper/stagewhisper",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.53.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
|
-
"
|
|
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.
|
|
22
|
+
"./dist/index.js"
|
|
24
23
|
],
|
|
25
24
|
"channel": {
|
|
26
25
|
"id": "stagewhisper",
|
|
@@ -29,16 +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
|
-
"
|
|
37
|
-
"openclaw": ">=2026.3.0"
|
|
38
|
-
},
|
|
39
|
-
"dependencies": {
|
|
40
|
-
"@noble/ciphers": "^1.3.0",
|
|
41
|
-
"@noble/curves": "^1.8.0",
|
|
42
|
-
"@noble/hashes": "^1.7.0"
|
|
43
|
-
}
|
|
39
|
+
"dependencies": {}
|
|
44
40
|
}
|
package/api.ts
DELETED
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;
|