mirror of https://github.com/openclaw/openclaw.git
fix(zalo): use plugin-sdk export for webhook client IP resolution (openclaw#46549)
Verified: - pnpm build - pnpm check - pnpm test:macmini Co-authored-by: Tomáš Dinh <82420070+No898@users.noreply.github.com> Co-authored-by: Tak Hoffman <781889+Takhoffman@users.noreply.github.com>
This commit is contained in:
parent
c1a0196826
commit
b5b589d99d
|
|
@ -13,6 +13,7 @@ Docs: https://docs.openclaw.ai
|
|||
### Fixes
|
||||
|
||||
- Z.AI/onboarding: detect a working default model even for explicit `zai-coding-*` endpoint choices, so Coding Plan setup can keep the selected endpoint while defaulting to `glm-5` when available or `glm-4.7` as fallback. (#45969)
|
||||
- Zalo/plugin runtime: export `resolveClientIp` from `openclaw/plugin-sdk/zalo` so installed builds no longer crash on startup when the webhook monitor loads from the packaged extension instead of the monorepo source tree. (#46549) Thanks @No898.
|
||||
- Control UI/chat sessions: show human-readable labels in the grouped session dropdown again, keep unique scoped fallbacks when metadata is missing, and disambiguate duplicate labels only when needed. (#45130) thanks @luzhidong.
|
||||
- Configure/startup: move outbound send-deps resolution into a lightweight helper so `openclaw configure` no longer stalls after the banner while eagerly loading channel plugins. (#46301) thanks @scoootscooob.
|
||||
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@ import {
|
|||
withResolvedWebhookRequestPipeline,
|
||||
WEBHOOK_ANOMALY_COUNTER_DEFAULTS,
|
||||
WEBHOOK_RATE_LIMIT_DEFAULTS,
|
||||
resolveClientIp,
|
||||
} from "openclaw/plugin-sdk/zalo";
|
||||
import { resolveClientIp } from "../../../src/gateway/net.js";
|
||||
import type { ResolvedZaloAccount } from "./accounts.js";
|
||||
import type { ZaloFetch, ZaloUpdate } from "./api.js";
|
||||
import type { ZaloRuntimeEnv } from "./monitor.js";
|
||||
|
|
|
|||
|
|
@ -126,5 +126,8 @@ describe("plugin-sdk subpath exports", () => {
|
|||
const twitch = await import("openclaw/plugin-sdk/twitch");
|
||||
expect(typeof twitch.DEFAULT_ACCOUNT_ID).toBe("string");
|
||||
expect(typeof twitch.normalizeAccountId).toBe("function");
|
||||
|
||||
const zalo = await import("openclaw/plugin-sdk/zalo");
|
||||
expect(typeof zalo.resolveClientIp).toBe("function");
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -61,6 +61,7 @@ export { buildSecretInputSchema } from "./secret-input-schema.js";
|
|||
export { MarkdownConfigSchema } from "../config/zod-schema.core.js";
|
||||
export { waitForAbortSignal } from "../infra/abort-signal.js";
|
||||
export { createDedupeCache } from "../infra/dedupe.js";
|
||||
export { resolveClientIp } from "../gateway/net.js";
|
||||
export { emptyPluginConfigSchema } from "../plugins/config-schema.js";
|
||||
export type { PluginRuntime } from "../plugins/runtime/types.js";
|
||||
export type { OpenClawPluginApi } from "../plugins/types.js";
|
||||
|
|
|
|||
Loading…
Reference in New Issue