@nextclaw/openclaw-compat 0.3.20 → 0.3.21

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.
Files changed (2) hide show
  1. package/dist/index.js +0 -29
  2. package/package.json +11 -11
package/dist/index.js CHANGED
@@ -1374,31 +1374,6 @@ function resolvePluginSdkAliasFile(params) {
1374
1374
  function resolvePluginSdkAlias() {
1375
1375
  return resolvePluginSdkAliasFile({ srcFile: "index.ts", distFile: "index.js" });
1376
1376
  }
1377
- function resolvePluginShimFile(relativePath) {
1378
- try {
1379
- const modulePath = fileURLToPath(import.meta.url);
1380
- const isProduction = process.env.NODE_ENV === "production";
1381
- let cursor = path5.dirname(modulePath);
1382
- for (let i = 0; i < 6; i += 1) {
1383
- const srcCandidate = path5.join(cursor, "src", "plugins", "shims", relativePath);
1384
- const distCandidate = path5.join(cursor, "dist", "plugins", "shims", relativePath.replace(/\.ts$/, ".js"));
1385
- const candidates = isProduction ? [distCandidate, srcCandidate] : [srcCandidate, distCandidate];
1386
- for (const candidate of candidates) {
1387
- if (fs5.existsSync(candidate)) {
1388
- return candidate;
1389
- }
1390
- }
1391
- const parent = path5.dirname(cursor);
1392
- if (parent === cursor) {
1393
- break;
1394
- }
1395
- cursor = parent;
1396
- }
1397
- } catch {
1398
- return null;
1399
- }
1400
- return null;
1401
- }
1402
1377
  function collectExportStringValues(value, values) {
1403
1378
  if (typeof value === "string") {
1404
1379
  values.push(value);
@@ -1501,10 +1476,6 @@ function buildPluginLoaderAliases(pluginRoot) {
1501
1476
  if (pluginSdkAlias && shouldUseCompatPluginSdkAlias) {
1502
1477
  aliases["openclaw/plugin-sdk"] = pluginSdkAlias;
1503
1478
  }
1504
- const piCodingAgentShim = resolvePluginShimFile("pi-coding-agent.ts");
1505
- if (piCodingAgentShim) {
1506
- aliases["@mariozechner/pi-coding-agent"] = piCodingAgentShim;
1507
- }
1508
1479
  return aliases;
1509
1480
  }
1510
1481
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextclaw/openclaw-compat",
3
- "version": "0.3.20",
3
+ "version": "0.3.21",
4
4
  "private": false,
5
5
  "description": "OpenClaw plugin compatibility layer for NextClaw.",
6
6
  "type": "module",
@@ -20,20 +20,20 @@
20
20
  "jszip": "^3.10.1",
21
21
  "tar": "^7.4.3",
22
22
  "@nextclaw/channel-plugin-dingtalk": "0.2.13",
23
+ "@nextclaw/channel-plugin-feishu": "0.2.15",
23
24
  "@nextclaw/channel-plugin-email": "0.2.13",
24
- "@nextclaw/channel-plugin-mochat": "0.2.13",
25
- "@nextclaw/channel-plugin-feishu": "0.2.14",
26
- "@nextclaw/channel-plugin-qq": "0.2.13",
27
- "@nextclaw/channel-plugin-telegram": "0.2.13",
28
- "@nextclaw/channel-plugin-discord": "0.2.13",
29
25
  "@nextclaw/channel-plugin-slack": "0.2.13",
30
- "@nextclaw/channel-plugin-whatsapp": "0.2.13",
31
- "@nextclaw/ncp": "0.3.2",
32
- "@nextclaw/core": "0.10.0",
26
+ "@nextclaw/channel-plugin-discord": "0.2.13",
33
27
  "@nextclaw/channel-runtime": "0.3.0",
34
- "@nextclaw/ncp-toolkit": "0.4.2",
35
28
  "@nextclaw/channel-plugin-weixin": "0.1.7",
36
- "@nextclaw/channel-plugin-wecom": "0.2.13"
29
+ "@nextclaw/channel-plugin-mochat": "0.2.13",
30
+ "@nextclaw/ncp": "0.3.2",
31
+ "@nextclaw/channel-plugin-wecom": "0.2.13",
32
+ "@nextclaw/channel-plugin-qq": "0.2.13",
33
+ "@nextclaw/ncp-toolkit": "0.4.2",
34
+ "@nextclaw/core": "0.10.0",
35
+ "@nextclaw/channel-plugin-whatsapp": "0.2.13",
36
+ "@nextclaw/channel-plugin-telegram": "0.2.13"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/node": "^20.17.6",