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

推荐订阅源

D
DataBreaches.Net
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Google DeepMind News
Google DeepMind News
博客园 - 聂微东
Microsoft Azure Blog
Microsoft Azure Blog
V
Visual Studio Blog
IT之家
IT之家
博客园 - 【当耐特】
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
B
Blog
爱范儿
爱范儿
阮一峰的网络日志
阮一峰的网络日志
云风的 BLOG
云风的 BLOG
Vercel News
Vercel News
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
H
Hackread – Cybersecurity News, Data Breaches, AI and More
H
Help Net Security
J
Java Code Geeks
aimingoo的专栏
aimingoo的专栏
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
B
Blog RSS Feed
Blog — PlanetScale
Blog — PlanetScale
S
SegmentFault 最新的问题
Apple Machine Learning Research
Apple Machine Learning Research

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
feat(workboard): persist orchestration metadata in sqlite...
steipete · 2026-05-30 · via Recent Commits to openclaw:main
11

import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";

22

import type { OpenClawPluginApi } from "../api.js";

3-

import { WorkboardStore, type PersistedWorkboardCard } from "./store.js";

3+

import { WorkboardStore } from "./store.js";

44

import { WORKBOARD_STATUSES, type WorkboardCard } from "./types.js";

5566

const READ_SCOPE = "operator.read" as const;

@@ -64,10 +64,7 @@ export function registerWorkboardGatewayMethods(params: {

6464

}) {

6565

const { api } = params;

6666

const store =

67-

params.store ??

68-

WorkboardStore.open((options) =>

69-

api.runtime.state.openKeyedStore<PersistedWorkboardCard>(options),

70-

);

67+

params.store ?? WorkboardStore.open((options) => api.runtime.state.openKeyedStore(options));

71687269

api.registerGatewayMethod(

7370

"workboard.cards.list",

@@ -407,6 +404,44 @@ export function registerWorkboardGatewayMethods(params: {

407404

{ scope: READ_SCOPE },

408405

);

409406407+

api.registerGatewayMethod(

408+

"workboard.boards.upsert",

409+

async ({ params: requestParams, respond }) => {

410+

try {

411+

respond(true, { board: await store.upsertBoard(requestParams) });

412+

} catch (error) {

413+

respondError(respond, error);

414+

}

415+

},

416+

{ scope: WRITE_SCOPE },

417+

);

418+419+

api.registerGatewayMethod(

420+

"workboard.boards.archive",

421+

async ({ params: requestParams, respond }) => {

422+

try {

423+

respond(true, {

424+

board: await store.archiveBoard(requestParams.id, requestParams.archived),

425+

});

426+

} catch (error) {

427+

respondError(respond, error);

428+

}

429+

},

430+

{ scope: WRITE_SCOPE },

431+

);

432+433+

api.registerGatewayMethod(

434+

"workboard.boards.delete",

435+

async ({ params: requestParams, respond }) => {

436+

try {

437+

respond(true, await store.deleteBoard(requestParams.id));

438+

} catch (error) {

439+

respondError(respond, error);

440+

}

441+

},

442+

{ scope: WRITE_SCOPE },

443+

);

444+410445

api.registerGatewayMethod(

411446

"workboard.cards.stats",

412447

async ({ params: requestParams, respond }) => {

@@ -419,6 +454,85 @@ export function registerWorkboardGatewayMethods(params: {

419454

{ scope: READ_SCOPE },

420455

);

421456457+

api.registerGatewayMethod(

458+

"workboard.cards.runs",

459+

async ({ params: requestParams, respond }) => {

460+

try {

461+

const result = await store.runs(readId(requestParams));

462+

respond(true, { ...result, card: redactClaimToken(result.card) });

463+

} catch (error) {

464+

respondError(respond, error);

465+

}

466+

},

467+

{ scope: READ_SCOPE },

468+

);

469+470+

api.registerGatewayMethod(

471+

"workboard.cards.specify",

472+

async ({ params: requestParams, respond }) => {

473+

try {

474+

respond(true, {

475+

card: redactClaimToken(await store.specify(readId(requestParams), requestParams, null)),

476+

});

477+

} catch (error) {

478+

respondError(respond, error);

479+

}

480+

},

481+

{ scope: WRITE_SCOPE },

482+

);

483+484+

api.registerGatewayMethod(

485+

"workboard.cards.decompose",

486+

async ({ params: requestParams, respond }) => {

487+

try {

488+

const result = await store.decompose(readId(requestParams), requestParams, null);

489+

respond(true, {

490+

parent: redactClaimToken(result.parent),

491+

children: result.children.map(redactClaimToken),

492+

});

493+

} catch (error) {

494+

respondError(respond, error);

495+

}

496+

},

497+

{ scope: WRITE_SCOPE },

498+

);

499+500+

api.registerGatewayMethod(

501+

"workboard.notifications.subscribe",

502+

async ({ params: requestParams, respond }) => {

503+

try {

504+

respond(true, { subscription: await store.subscribeNotifications(requestParams) });

505+

} catch (error) {

506+

respondError(respond, error);

507+

}

508+

},

509+

{ scope: WRITE_SCOPE },

510+

);

511+512+

api.registerGatewayMethod(

513+

"workboard.notifications.list",

514+

async ({ params: requestParams, respond }) => {

515+

try {

516+

respond(true, await store.listNotificationSubscriptions(requestParams));

517+

} catch (error) {

518+

respondError(respond, error);

519+

}

520+

},

521+

{ scope: READ_SCOPE },

522+

);

523+524+

api.registerGatewayMethod(

525+

"workboard.notifications.delete",

526+

async ({ params: requestParams, respond }) => {

527+

try {

528+

respond(true, await store.deleteNotificationSubscription(readId(requestParams)));

529+

} catch (error) {

530+

respondError(respond, error);

531+

}

532+

},

533+

{ scope: WRITE_SCOPE },

534+

);

535+422536

api.registerGatewayMethod(

423537

"workboard.cards.archive",

424538

async ({ params: requestParams, respond }) => {