惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
Visual Studio Blog
Microsoft Azure Blog
Microsoft Azure Blog
WordPress大学
WordPress大学
小众软件
小众软件
Last Week in AI
Last Week in AI
月光博客
月光博客
博客园 - 聂微东
Recent Announcements
Recent Announcements
A
About on SuperTechFans
博客园 - 三生石上(FineUI控件)
V
V2EX
阮一峰的网络日志
阮一峰的网络日志
博客园 - Franky
云风的 BLOG
云风的 BLOG
量子位
N
Netflix TechBlog - Medium
Hugging Face - Blog
Hugging Face - Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
J
Java Code Geeks
博客园 - 司徒正美
S
SegmentFault 最新的问题
有赞技术团队
有赞技术团队
Google DeepMind News
Google DeepMind News
宝玉的分享
宝玉的分享

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
refactor: trim nostr helper exports · openclaw/openclaw@a...
steipete · 2026-05-02 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -204,5 +204,3 @@ export async function getNostrProfileState(accountId: string = DEFAULT_ACCOUNT_I

204204

}

205205

return bus.getProfileState();

206206

}

207-
208-

export { getActiveNostrBuses } from "./gateway.js";

Original file line numberDiff line numberDiff line change

@@ -7,7 +7,7 @@

77

// Metric Types

88

// ============================================================================

99
10-

export type EventMetricName =

10+

type EventMetricName =

1111

| "event.received"

1212

| "event.processed"

1313

| "event.duplicate"

@@ -22,7 +22,7 @@ export type EventMetricName =

2222

| "event.rejected.decrypt_failed"

2323

| "event.rejected.self_message";

2424
25-

export type RelayMetricName =

25+

type RelayMetricName =

2626

| "relay.connect"

2727

| "relay.disconnect"

2828

| "relay.reconnect"

@@ -37,11 +37,11 @@ export type RelayMetricName =

3737

| "relay.circuit_breaker.close"

3838

| "relay.circuit_breaker.half_open";

3939
40-

export type RateLimitMetricName = "rate_limit.per_sender" | "rate_limit.global";

40+

type RateLimitMetricName = "rate_limit.per_sender" | "rate_limit.global";

4141
42-

export type DecryptMetricName = "decrypt.success" | "decrypt.failure";

42+

type DecryptMetricName = "decrypt.success" | "decrypt.failure";

4343
44-

export type MemoryMetricName = "memory.seen_tracker_size" | "memory.rate_limiter_entries";

44+

type MemoryMetricName = "memory.seen_tracker_size" | "memory.rate_limiter_entries";

4545
4646

export type MetricName =

4747

| EventMetricName

@@ -83,7 +83,7 @@ export interface MetricEvent {

8383

labels?: Record<string, string | number>;

8484

}

8585
86-

export type OnMetricCallback = (event: MetricEvent) => void;

86+

type OnMetricCallback = (event: MetricEvent) => void;

8787
8888

// ============================================================================

8989

// Metrics Snapshot (for getMetrics())

Original file line numberDiff line numberDiff line change

@@ -44,7 +44,7 @@ const HEALTH_WINDOW_MS = 60000; // 1 minute window for health stats

4444

// Types

4545

// ============================================================================

4646
47-

export interface NostrBusOptions {

47+

interface NostrBusOptions {

4848

/** Private key in hex or nsec format */

4949

privateKey: string;

5050

/** WebSocket relay URLs (defaults to damus + nos.lol) */

Original file line numberDiff line numberDiff line change

@@ -115,9 +115,6 @@ async function withPublishLock<T>(accountId: string, fn: () => Promise<T>): Prom

115115

}

116116

}

117117
118-

// Export for use in import validation

119-

export { validateUrlSafety };

120-
121118

// ============================================================================

122119

// Validation Schemas

123120

// ============================================================================

Original file line numberDiff line numberDiff line change

@@ -14,7 +14,7 @@ import { contentToProfile, type ProfileContent } from "./nostr-profile.js";

1414

// Types

1515

// ============================================================================

1616
17-

export interface ProfileImportResult {

17+

interface ProfileImportResult {

1818

/** Whether the import was successful */

1919

ok: boolean;

2020

/** The imported profile (if found and valid) */

@@ -33,7 +33,7 @@ export interface ProfileImportResult {

3333

sourceRelay?: string;

3434

}

3535
36-

export interface ProfileImportOptions {

36+

interface ProfileImportOptions {

3737

/** The public key to fetch profile for */

3838

pubkey: string;

3939

/** Relay URLs to query */

Original file line numberDiff line numberDiff line change

@@ -88,7 +88,7 @@ const RELAY_PUBLISH_TIMEOUT_MS = 5000;

8888

* @param event - Signed profile event (kind:0)

8989

* @returns Publish results with successes and failures

9090

*/

91-

export async function publishProfileEvent(

91+

async function publishProfileEvent(

9292

pool: SimplePool,

9393

relays: string[],

9494

event: Event,

Original file line numberDiff line numberDiff line change

@@ -28,7 +28,7 @@ type NostrBusState = {

2828

};

2929
3030

/** Profile publish state (separate from bus state) */

31-

export type NostrProfileState = {

31+

type NostrProfileState = {

3232

version: 1;

3333

/** Unix timestamp (seconds) of last successful profile publish */

3434

lastPublishedAt: number | null;

Original file line numberDiff line numberDiff line change

@@ -3,7 +3,7 @@

33

* Prevents unbounded memory growth under high load or abuse.

44

*/

55
6-

export interface SeenTrackerOptions {

6+

interface SeenTrackerOptions {

77

/** Maximum number of entries to track (default: 100,000) */

88

maxEntries?: number;

99

/** TTL in milliseconds (default: 1 hour) */

Original file line numberDiff line numberDiff line change

@@ -14,7 +14,7 @@ import type { NostrProfile } from "./config-schema.js";

1414

import { DEFAULT_RELAYS } from "./default-relays.js";

1515

import { getPublicKeyFromPrivate } from "./nostr-key-utils.js";

1616
17-

export interface NostrAccountConfig {

17+

interface NostrAccountConfig {

1818

enabled?: boolean;

1919

name?: string;

2020

defaultAccount?: string;