Extensions: migrate nostr plugin-sdk imports

This commit is contained in:
Gustavo Madeira Santana
2026-03-04 01:20:14 -05:00
parent ed29472af6
commit 612ca670da
6 changed files with 6 additions and 6 deletions

View File

@@ -5,7 +5,7 @@ import {
DEFAULT_ACCOUNT_ID,
formatPairingApproveHint,
type ChannelPlugin,
} from "openclaw/plugin-sdk";
} from "openclaw/plugin-sdk/compat";
import type { NostrProfile } from "./config-schema.js";
import { NostrConfigSchema } from "./config-schema.js";
import type { MetricEvent, MetricsSnapshot } from "./metrics.js";

View File

@@ -1,4 +1,4 @@
import { MarkdownConfigSchema, buildChannelConfigSchema } from "openclaw/plugin-sdk";
import { MarkdownConfigSchema, buildChannelConfigSchema } from "openclaw/plugin-sdk/compat";
import { z } from "zod";
const allowFromEntry = z.union([z.string(), z.number()]);

View File

@@ -13,7 +13,7 @@ import {
isBlockedHostnameOrIp,
readJsonBodyWithLimit,
requestBodyErrorToText,
} from "openclaw/plugin-sdk";
} from "openclaw/plugin-sdk/compat";
import { z } from "zod";
import { publishNostrProfile, getNostrProfileState } from "./channel.js";
import { NostrProfileSchema, type NostrProfile } from "./config-schema.js";

View File

@@ -1,7 +1,7 @@
import fs from "node:fs/promises";
import os from "node:os";
import path from "node:path";
import type { PluginRuntime } from "openclaw/plugin-sdk";
import type { PluginRuntime } from "openclaw/plugin-sdk/compat";
import { describe, expect, it } from "vitest";
import {
readNostrBusState,

View File

@@ -1,4 +1,4 @@
import type { PluginRuntime } from "openclaw/plugin-sdk";
import type { PluginRuntime } from "openclaw/plugin-sdk/compat";
let runtime: PluginRuntime | null = null;

View File

@@ -1,9 +1,9 @@
import type { OpenClawConfig } from "openclaw/plugin-sdk";
import {
DEFAULT_ACCOUNT_ID,
normalizeAccountId,
normalizeOptionalAccountId,
} from "openclaw/plugin-sdk/account-id";
import type { OpenClawConfig } from "openclaw/plugin-sdk/compat";
import type { NostrProfile } from "./config-schema.js";
import { getPublicKeyFromPrivate } from "./nostr-bus.js";
import { DEFAULT_RELAYS } from "./nostr-bus.js";