fix(plugin-path): align packaged dir with plugin id to remove mismatch warning

This commit is contained in:
2026-02-25 23:27:16 +00:00
parent f5ec6f9b15
commit 7f1d6bb3f7
3 changed files with 8 additions and 8 deletions

View File

@@ -8,17 +8,17 @@ node scripts/package-plugin.mjs
Output: Output:
- `dist/plugin/index.ts` - `dist/whispergate/index.ts`
- `dist/plugin/rules.ts` - `dist/whispergate/rules.ts`
- `dist/plugin/openclaw.plugin.json` - `dist/whispergate/openclaw.plugin.json`
- `dist/plugin/README.md` - `dist/whispergate/README.md`
- `dist/plugin/package.json` - `dist/whispergate/package.json`
## Use packaged plugin path ## Use packaged plugin path
Point OpenClaw `plugins.load.paths` to: Point OpenClaw `plugins.load.paths` to:
`/absolute/path/to/WhisperGate/dist/plugin` `/absolute/path/to/WhisperGate/dist/whispergate`
## Verify package completeness ## Verify package completeness

View File

@@ -9,7 +9,7 @@ set -Eeuo pipefail
# - every install writes a change record # - every install writes a change record
OPENCLAW_CONFIG_PATH="${OPENCLAW_CONFIG_PATH:-$HOME/.openclaw/openclaw.json}" OPENCLAW_CONFIG_PATH="${OPENCLAW_CONFIG_PATH:-$HOME/.openclaw/openclaw.json}"
PLUGIN_PATH="${PLUGIN_PATH:-/root/.openclaw/workspace-operator/WhisperGate/dist/plugin}" PLUGIN_PATH="${PLUGIN_PATH:-/root/.openclaw/workspace-operator/WhisperGate/dist/whispergate}"
NO_REPLY_PROVIDER_ID="${NO_REPLY_PROVIDER_ID:-whisper-gateway}" NO_REPLY_PROVIDER_ID="${NO_REPLY_PROVIDER_ID:-whisper-gateway}"
NO_REPLY_MODEL_ID="${NO_REPLY_MODEL_ID:-no-reply}" NO_REPLY_MODEL_ID="${NO_REPLY_MODEL_ID:-no-reply}"
NO_REPLY_BASE_URL="${NO_REPLY_BASE_URL:-http://127.0.0.1:8787/v1}" NO_REPLY_BASE_URL="${NO_REPLY_BASE_URL:-http://127.0.0.1:8787/v1}"

View File

@@ -3,7 +3,7 @@ import path from "node:path";
const root = process.cwd(); const root = process.cwd();
const pluginDir = path.join(root, "plugin"); const pluginDir = path.join(root, "plugin");
const outDir = path.join(root, "dist", "plugin"); const outDir = path.join(root, "dist", "whispergate");
fs.rmSync(outDir, { recursive: true, force: true }); fs.rmSync(outDir, { recursive: true, force: true });
fs.mkdirSync(outDir, { recursive: true }); fs.mkdirSync(outDir, { recursive: true });