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

推荐订阅源

月光博客
月光博客
H
Hackread – Cybersecurity News, Data Breaches, AI and More
V
Vulnerabilities – Threatpost
L
LangChain Blog
Stack Overflow Blog
Stack Overflow Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
云风的 BLOG
云风的 BLOG
C
Cisco Blogs
V
Visual Studio Blog
L
Lohrmann on Cybersecurity
Latest news
Latest news
S
Securelist
The Last Watchdog
The Last Watchdog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
The Register - Security
The Register - Security
Webroot Blog
Webroot Blog
The Cloudflare Blog
S
Secure Thoughts
Y
Y Combinator Blog
aimingoo的专栏
aimingoo的专栏
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
N
News and Events Feed by Topic
S
Security Affairs
Attack and Defense Labs
Attack and Defense Labs
Microsoft Azure Blog
Microsoft Azure Blog
T
Tailwind CSS Blog
V2EX - 技术
V2EX - 技术
GbyAI
GbyAI
L
LINUX DO - 热门话题
PCI Perspectives
PCI Perspectives
Schneier on Security
Schneier on Security
V
V2EX
K
Kaspersky official blog
Hugging Face - Blog
Hugging Face - Blog
AWS News Blog
AWS News Blog
T
The Exploit Database - CXSecurity.com
C
CERT Recently Published Vulnerability Notes
C
Cyber Attacks, Cyber Crime and Cyber Security
P
Proofpoint News Feed
T
Threatpost
WordPress大学
WordPress大学
SecWiki News
SecWiki News
B
Blog RSS Feed
Blog — PlanetScale
Blog — PlanetScale
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
A
Arctic Wolf
酷 壳 – CoolShell
酷 壳 – CoolShell
W
WeLiveSecurity
Jina AI
Jina AI
D
Darknet – Hacking Tools, Hacker News & Cyber Security

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 test: trim doctor command hotspots · openclaw/openclaw@c66f16a test: isolate agent auth and spawn hotspots · openclaw/openclaw@9285935 test: stabilize MCP startup disposal race · openclaw/openclaw@dd9d2eb test: merge browser contract server suites · openclaw/openclaw@5817a76 test: narrow ollama provider discovery setup · openclaw/openclaw@a0d9598 build: declare qa-lab aimock runtime dependency · openclaw/openclaw@24431e5 test: speed up safe-bins exec harness · openclaw/openclaw@ee856ab test: preserve tool helpers in embedded runner mocks · openclaw/openclaw@acd86a0 refactor: move memory embeddings into provider plugins · openclaw/openclaw@77e6e4c test: reuse system-run temp fixtures · openclaw/openclaw@7e9ff0f test: trim hotspot wait overhead · openclaw/openclaw@12a59b0 Check: avoid duplicate boundary prep · openclaw/openclaw@baf11b8 test: reduce hotspot fixture overhead · openclaw/openclaw@3a59edd feat(ui): overhaul settings and slash command UX (#67819) thanks @Bun… · openclaw/openclaw@2cfb660 QA Matrix: exit cleanly on failure · openclaw/openclaw@42805d2 QA Matrix: isolate scenario coverage · openclaw/openclaw@7e659e1 Matrix: refresh crypto bootstrap state · openclaw/openclaw@94081d8 QA Lab: add provider registry · openclaw/openclaw@bb7e982 Matrix: add plugin changelog · openclaw/openclaw@4acab55 test: trim more hotspot overhead · openclaw/openclaw@f485311 test: trim remaining hotspot tests · openclaw/openclaw@6ba8626 test: narrow hotspot mocks · openclaw/openclaw@dbc8179 test: isolate gemini embedding request helpers · openclaw/openclaw@cd330f5 test: trim memory and mcp hotspots · openclaw/openclaw@fd48dfa test: slim provider registry mocks · openclaw/openclaw@2e08c77 test: harden Parallels update smoke · openclaw/openclaw@1a98090 feat: default Anthropic to Opus 4.7 · openclaw/openclaw@628b454 fix: harden node-host shell payload mutability checks · openclaw/openclaw@75c551e fix: land node-host approval binding for native binaries (#66731) (th… · openclaw/openclaw@29919bb CI: add daily schedule to CodeQL workflow (#67645) · openclaw/openclaw@69d25f5 fix(gateway): capture config hash after plugin auto-enable to prevent… · openclaw/openclaw@8c11210 fix: repair sanitized replay tool results before send (#67620) (thank… · openclaw/openclaw@c3c7a99 fix: restrict HTML timeout short-circuit to transient statuses · openclaw/openclaw@de129a6 fix: keep TUI watchdog bound to active run (#67401) (thanks @xantorres) · openclaw/openclaw@3525273 Gateway/skills: dedupe skills prefix-match + drop dead fallback on log · openclaw/openclaw@d7f489f Extensions/lmstudio: back off inference preload after consecutive fai… · openclaw/openclaw@b555214 TUI/streaming: add watchdog that resets the activity indicator after … · openclaw/openclaw@f44ab20 Agents/tool-loop: enable unknown-tool stream guard by default · openclaw/openclaw@36ed367 Gateway/skills: invalidate session skills snapshot on config write · openclaw/openclaw@b23d59a fix: classify HTML provider error pages correctly (#67642) (thanks @s… · openclaw/openclaw@e588e90 fix(skills): remove unused model-usage import (#67641) · openclaw/openclaw@55f05df docs(changelog): credit codex fix superseded PRs · openclaw/openclaw@e485f24 fix(openai-codex): normalize stale transport metadata in resolution a… · openclaw/openclaw@90801ba CI: pin Docker-related GitHub Actions (#67632) · openclaw/openclaw@f697b01 Android: modernize WebView and discovery API usage (#67627) · openclaw/openclaw@44a6e50 fix(deps): bump hono to 4.12.14 and @hono/node-server to 1.19.14 (GHS… · openclaw/openclaw@fbccc18 fix(deps): bump dompurify to 3.4.0 (#67614) · openclaw/openclaw@2c2dc00 CI: add explicit permissions to all workflow jobs (fixes code-scannin… · openclaw/openclaw@01b7516 fix: register bundled TTS providers and route overrides correctly (#6… · openclaw/openclaw@6ea3cdd fix: align host tilde paths with OS home (#62804) (thanks @stainlu) · openclaw/openclaw@ecfaf64 fix: flush creds queue before reconnect socket open (#67464) (thanks … · openclaw/openclaw@405c63f fix: strip standalone <function> tool call tags from visible text (#6… · openclaw/openclaw@78df859 fix(agents): preserve cli session metadata before transcript persist … · openclaw/openclaw@898fd04 docs(changelog): move cli transcript entry · openclaw/openclaw@c1817c6 fix(agents): normalize cli transcript api field · openclaw/openclaw@3a3fae0 docs(changelog): note cli transcript persistence · openclaw/openclaw@6c343f1 fix(agents): persist cli transcript turns · openclaw/openclaw@b8ef507 fix(msteams): harden security-sensitive flows (#65841) · openclaw/openclaw@c56b56e [Dashboard] Fix exec approval modal overflow for long command content… · openclaw/openclaw@053c5b0 Docs: remove QA changelog entry · openclaw/openclaw@7fd5771 QA: fix private runtime source loading (#67428) · openclaw/openclaw@d5933af docs(gateway): correct protocol.md schema path, hello-ok example, aut… · openclaw/openclaw@489404d CI: pin Node 22 runners to 22.18.0 · openclaw/openclaw@4ffa621 models.authStatus: normalize provider ids + tighten env-backed escape… · openclaw/openclaw@f2fdb9d Update CHANGELOG.md · openclaw/openclaw@7694a92 test(parallels): clean up npm update guard jobs · openclaw/openclaw@045ea7b Plugins: prefer scanDir override paths · openclaw/openclaw@b2974da fix(dreaming): default storage.mode to "separate" so phase blocks sto… · openclaw/openclaw@8c392f0 fix(memory-core): skip dreaming transcript ingestion via session stor… · openclaw/openclaw@a1b01f0 fix: dedupe replayed exec.finished node events (#67281) · openclaw/openclaw@5dcf526
fix: rebase clawhub install trust (#81364) · openclaw/openclaw@ec737ee
jesse-merhi · 2026-06-26 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -24,17 +24,31 @@ OpenClaw agent or Gateway.

2424

```bash

2525

openclaw skills search "calendar"

2626

openclaw skills install @owner/<slug>

27+

openclaw skills install @owner/<slug> --acknowledge-clawhub-risk

2728

openclaw skills update @owner/<slug>

29+

openclaw skills update @owner/<slug> --acknowledge-clawhub-risk

2830

openclaw skills verify @owner/<slug>

2931
3032

openclaw plugins search "calendar"

3133

openclaw plugins install clawhub:<package>

34+

openclaw plugins install clawhub:<package> --acknowledge-clawhub-risk

3235

openclaw plugins update <id-or-npm-spec>

3336

```

3437
3538

Skill installs target the active workspace `skills/` directory by default. Add

3639

`--global` to install into the shared managed skills directory.

3740
41+

OpenClaw checks the selected community ClawHub skill or plugin trust state

42+

before downloading it. Versioned community skill and plugin releases use

43+

exact-release trust metadata; resolver-backed GitHub skills rely on ClawHub's

44+

install resolver to enforce scan and force-install policy before it returns a

45+

pinned commit. Malicious or blocked community releases are refused. Risky

46+

community releases require review and `--acknowledge-clawhub-risk` when a

47+

non-interactive command should continue after that review.

48+
49+

Official ClawHub publishers/packages and bundled OpenClaw sources bypass this

50+

release-trust prompt and security-verdict fetch during install and update.

51+
3852

Plugin installs use the `clawhub:` prefix when you want ClawHub resolution

3953

instead of npm or another install source.

4054
Original file line numberDiff line numberDiff line change

@@ -111,6 +111,7 @@ openclaw plugins install git:github.com/<owner>/<repo> # git repo

111111

openclaw plugins install git:github.com/<owner>/<repo>@<ref>

112112

openclaw plugins install <package> --force # overwrite existing install

113113

openclaw plugins install <package> --pin # pin version

114+

openclaw plugins install clawhub:<package> --acknowledge-clawhub-risk

114115

openclaw plugins install <package> --dangerously-force-unsafe-install

115116

openclaw plugins install <path> # local path

116117

openclaw plugins install <plugin>@<marketplace> # marketplace

@@ -163,6 +164,12 @@ is available, then fall back to `latest`.

163164
164165

If a plugin you published on ClawHub is hidden or blocked by a registry scan, use the publisher steps in [ClawHub publishing](/clawhub/publishing). `--dangerously-force-unsafe-install` does not ask ClawHub to rescan the plugin or make a blocked release public.

165166
167+

</Accordion>

168+

<Accordion title="--acknowledge-clawhub-risk">

169+

Community ClawHub installs check the selected release trust record before downloading the package. If ClawHub disables download for the release, reports malicious scan findings, or puts the release in a blocking moderation state such as quarantine, OpenClaw refuses the release. For non-blocking risky scan statuses, risky moderation states, or registry reasons, OpenClaw shows the trust details and asks for confirmation before continuing.

170+
171+

Use `--acknowledge-clawhub-risk` only after reviewing the ClawHub warning and deciding to continue without an interactive prompt. Pending or stale clean trust records warn but do not require acknowledgement. Official ClawHub packages and bundled OpenClaw plugin sources bypass this release-trust prompt.

172+
166173

</Accordion>

167174

<Accordion title="Hook packs and npm specs">

168175

`plugins install` is also the install surface for hook packs that expose `openclaw.hooks` in `package.json`. Use `openclaw hooks` for filtered hook visibility and per-hook enablement, not package installation.

@@ -390,6 +397,7 @@ openclaw plugins update <id-or-npm-spec>

390397

openclaw plugins update --all

391398

openclaw plugins update <id-or-npm-spec> --dry-run

392399

openclaw plugins update @openclaw/voice-call

400+

openclaw plugins update openclaw-codex-app-server --acknowledge-clawhub-risk

393401

openclaw plugins update openclaw-codex-app-server --dangerously-force-unsafe-install

394402

```

395403

@@ -421,6 +429,9 @@ Updates apply to tracked plugin installs in the managed plugin index and tracked

421429

<Accordion title="--dangerously-force-unsafe-install on update">

422430

`--dangerously-force-unsafe-install` is also accepted on `plugins update` for compatibility, but it is deprecated and no longer changes plugin update behavior. Operator `security.installPolicy` can still block updates; plugin `before_install` hooks only apply in processes where plugin hooks are loaded.

423431

</Accordion>

432+

<Accordion title="--acknowledge-clawhub-risk on update">

433+

Community ClawHub-backed plugin updates run the same exact-release trust check as installs before downloading the replacement package. Use `--acknowledge-clawhub-risk` for reviewed automation that should continue when the selected ClawHub release has a risky trust warning. Official ClawHub packages and bundled OpenClaw plugin sources bypass this release-trust prompt.

434+

</Accordion>

424435

</AccordionGroup>

425436
426437

### Inspect

Original file line numberDiff line numberDiff line change

@@ -31,9 +31,11 @@ openclaw skills install git:owner/repo

3131

openclaw skills install git:owner/repo@main

3232

openclaw skills install ./path/to/skill --as custom-name

3333

openclaw skills install @owner/<slug> --force

34+

openclaw skills install @owner/<slug> --acknowledge-clawhub-risk

3435

openclaw skills install @owner/<slug> --agent <id>

3536

openclaw skills install @owner/<slug> --global

3637

openclaw skills update @owner/<slug>

38+

openclaw skills update @owner/<slug> --acknowledge-clawhub-risk

3739

openclaw skills update @owner/<slug> --global

3840

openclaw skills update --all

3941

openclaw skills update --all --agent <id>

@@ -97,6 +99,14 @@ Notes:

9799

- `install --version <version>` applies only to ClawHub skill refs.

98100

- `install --force` overwrites an existing workspace skill folder for the same

99101

slug.

102+

- Community ClawHub skill installs and updates check trust before downloading.

103+

Versioned community archive releases use exact-release trust metadata.

104+

Resolver-backed GitHub skills rely on ClawHub's install resolver to enforce

105+

scan and force-install policy before it returns a pinned commit. Malicious or

106+

blocked community releases are refused. Risky community releases require

107+

review and `--acknowledge-clawhub-risk` when a non-interactive command should

108+

continue after that review. Official ClawHub skill publishers and bundled

109+

OpenClaw skill sources bypass this release-trust prompt.

100110

- `--global` targets the shared managed skills directory and cannot be combined

101111

with `--agent <id>`.

102112

- `--agent <id>` targets one configured agent workspace and overrides current

Original file line numberDiff line numberDiff line change

@@ -28,6 +28,7 @@ openclaw update --tag main

2828

openclaw update --dry-run

2929

openclaw update --no-restart

3030

openclaw update --yes

31+

openclaw update --acknowledge-clawhub-risk

3132

openclaw update --json

3233

openclaw --update

3334

```

@@ -45,6 +46,11 @@ openclaw --update

4546

when npm plugin artifact drift is detected during post-update plugin sync.

4647

- `--timeout <seconds>`: per-step timeout (default is 1800s).

4748

- `--yes`: skip confirmation prompts (for example downgrade confirmation).

49+

- `--acknowledge-clawhub-risk`: after reviewing community ClawHub trust

50+

warnings, allow post-update plugin sync to continue without an interactive

51+

prompt. Without this, risky community ClawHub plugin releases are skipped and

52+

left unchanged when OpenClaw cannot prompt. Official ClawHub packages and

53+

bundled OpenClaw plugin sources bypass this release-trust prompt.

4854
4955

`openclaw update` does not have a `--verbose` flag. Use `--dry-run` to preview

5056

the planned channel/tag/install/restart actions, `--json` for machine-readable

@@ -88,6 +94,7 @@ converge.

8894

```bash

8995

openclaw update repair

9096

openclaw update repair --channel beta

97+

openclaw update repair --acknowledge-clawhub-risk

9198

openclaw update repair --json

9299

```

93100

@@ -98,6 +105,10 @@ Options:

98105

- `--json`: print machine-readable finalization JSON.

99106

- `--timeout <seconds>`: timeout for repair steps (default `1800`).

100107

- `--yes`: skip confirmation prompts.

108+

- `--acknowledge-clawhub-risk`: after reviewing community ClawHub trust

109+

warnings, allow repair-time plugin convergence to continue without an

110+

interactive prompt. Official ClawHub packages and bundled OpenClaw plugin

111+

sources bypass this release-trust prompt.

101112

- `--no-restart`: accepted for update command parity; repair never restarts the

102113

Gateway.

103114
Original file line numberDiff line numberDiff line change

@@ -0,0 +1,66 @@

1+

/** Structured ClawHub trust details carried in gateway error payloads. */

2+

export const ClawHubTrustErrorCodes = {

3+

SECURITY_UNAVAILABLE: "clawhub_security_unavailable",

4+

RISK_ACKNOWLEDGEMENT_REQUIRED: "clawhub_risk_acknowledgement_required",

5+

DOWNLOAD_BLOCKED: "clawhub_download_blocked",

6+

} as const;

7+
8+

export type ClawHubTrustErrorCode =

9+

(typeof ClawHubTrustErrorCodes)[keyof typeof ClawHubTrustErrorCodes];

10+
11+

export type ClawHubTrustErrorDetails = {

12+

clawhubTrustCode?: ClawHubTrustErrorCode;

13+

version?: string;

14+

warning?: string;

15+

};

16+
17+

function normalizeNonEmptyString(value: unknown): string | undefined {

18+

return typeof value === "string" && value.trim().length > 0 ? value : undefined;

19+

}

20+
21+

export function isClawHubTrustErrorCode(value: unknown): value is ClawHubTrustErrorCode {

22+

return (

23+

value === ClawHubTrustErrorCodes.SECURITY_UNAVAILABLE ||

24+

value === ClawHubTrustErrorCodes.RISK_ACKNOWLEDGEMENT_REQUIRED ||

25+

value === ClawHubTrustErrorCodes.DOWNLOAD_BLOCKED

26+

);

27+

}

28+
29+

export function buildClawHubTrustErrorDetails(params: {

30+

code?: ClawHubTrustErrorCode;

31+

version?: string;

32+

warning?: string;

33+

}): ClawHubTrustErrorDetails | undefined {

34+

if (!params.code && !params.version && !params.warning) {

35+

return undefined;

36+

}

37+

return {

38+

...(params.code ? { clawhubTrustCode: params.code } : {}),

39+

...(params.version ? { version: params.version } : {}),

40+

...(params.warning ? { warning: params.warning } : {}),

41+

};

42+

}

43+
44+

export function readClawHubTrustErrorDetails(

45+

details: unknown,

46+

): ClawHubTrustErrorDetails | undefined {

47+

if (!details || typeof details !== "object" || Array.isArray(details)) {

48+

return undefined;

49+

}

50+

const raw = details as {

51+

clawhubTrustCode?: unknown;

52+

version?: unknown;

53+

warning?: unknown;

54+

};

55+

const code = isClawHubTrustErrorCode(raw.clawhubTrustCode) ? raw.clawhubTrustCode : undefined;

56+

const version = normalizeNonEmptyString(raw.version);

57+

const warning = normalizeNonEmptyString(raw.warning);

58+

if (!code && !version && !warning) {

59+

return undefined;

60+

}

61+

return {

62+

...(code ? { clawhubTrustCode: code } : {}),

63+

...(version ? { version } : {}),

64+

...(warning ? { warning } : {}),

65+

};

66+

}

Original file line numberDiff line numberDiff line change

@@ -1,5 +1,13 @@

11

// Public gateway protocol entrypoint. Keep this barrel aligned with schema.ts

22

// so clients can import wire types, JSON schemas, and validators from one place.

3+

export {

4+

buildClawHubTrustErrorDetails,

5+

ClawHubTrustErrorCodes,

6+

isClawHubTrustErrorCode,

7+

readClawHubTrustErrorDetails,

8+

type ClawHubTrustErrorCode,

9+

type ClawHubTrustErrorDetails,

10+

} from "./clawhub-trust-error-details.js";

311

import { Compile, type Validator as TypeBoxValidator } from "typebox/compile";

412

import {

513

type AgentEvent,

Original file line numberDiff line numberDiff line change

@@ -3,6 +3,7 @@ import { Value } from "typebox/value";

33

import { describe, expect, it } from "vitest";

44

import {

55

AgentsListResultSchema,

6+

SkillsDetailResultSchema,

67

SkillsProposalInspectResultSchema,

78

SkillsProposalRequestRevisionResultSchema,

89

ToolsEffectiveResultSchema,

@@ -173,3 +174,34 @@ describe("SkillsProposalRequestRevisionResultSchema", () => {

173174

).toBe(false);

174175

});

175176

});

177+
178+

describe("SkillsDetailResultSchema", () => {

179+

it("accepts official ClawHub skill publisher metadata", () => {

180+

const result = {

181+

skill: {

182+

slug: "tao-setup-nvidia-gpu-host",

183+

displayName: "TAO Setup NVIDIA GPU Host",

184+

summary: "Prepare an NVIDIA GPU host for TAO workflows.",

185+

tags: { gpu: "GPU" },

186+

channel: "official",

187+

isOfficial: true,

188+

createdAt: 1_700_000_000,

189+

updatedAt: 1_700_010_000,

190+

},

191+

latestVersion: {

192+

version: "1.0.0",

193+

createdAt: 1_700_010_000,

194+

},

195+

owner: {

196+

handle: "nvidia",

197+

displayName: "NVIDIA",

198+

image: "https://example.test/nvidia.png",

199+

official: true,

200+

channel: "official",

201+

isOfficial: true,

202+

},

203+

};

204+
205+

expect(Value.Check(SkillsDetailResultSchema, result)).toBe(true);

206+

});

207+

});

Original file line numberDiff line numberDiff line change

@@ -344,6 +344,7 @@ export const SkillsInstallParamsSchema = Type.Union([

344344

slug: NonEmptyString,

345345

version: Type.Optional(NonEmptyString),

346346

force: Type.Optional(Type.Boolean()),

347+

acknowledgeClawHubRisk: Type.Optional(Type.Boolean()),

347348

timeoutMs: Type.Optional(Type.Integer({ minimum: 1000 })),

348349

},

349350

{ additionalProperties: false },

@@ -379,6 +380,7 @@ export const SkillsUpdateParamsSchema = Type.Union([

379380

source: Type.Literal("clawhub"),

380381

slug: Type.Optional(NonEmptyString),

381382

all: Type.Optional(Type.Boolean()),

383+

acknowledgeClawHubRisk: Type.Optional(Type.Boolean()),

382384

},

383385

{ additionalProperties: false },

384386

),

@@ -439,6 +441,8 @@ export const SkillsDetailResultSchema = Type.Object(

439441

displayName: NonEmptyString,

440442

summary: Type.Optional(Type.String()),

441443

tags: Type.Optional(Type.Record(NonEmptyString, Type.String())),

444+

channel: Type.Optional(Type.Union([Type.String(), Type.Null()])),

445+

isOfficial: Type.Optional(Type.Union([Type.Boolean(), Type.Null()])),

442446

createdAt: Type.Integer(),

443447

updatedAt: Type.Integer(),

444448

},

@@ -478,6 +482,9 @@ export const SkillsDetailResultSchema = Type.Object(

478482

handle: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),

479483

displayName: Type.Optional(Type.Union([NonEmptyString, Type.Null()])),

480484

image: Type.Optional(Type.Union([Type.String(), Type.Null()])),

485+

official: Type.Optional(Type.Union([Type.Boolean(), Type.Null()])),

486+

channel: Type.Optional(Type.Union([Type.String(), Type.Null()])),

487+

isOfficial: Type.Optional(Type.Union([Type.Boolean(), Type.Null()])),

481488

},

482489

{ additionalProperties: false },

483490

),

Original file line numberDiff line numberDiff line change

@@ -403,6 +403,20 @@ async function main() {

403403

npmShasum: clawpack.npmShasum,

404404

},

405405

};

406+

const securityDetail = {

407+

package: artifactResolverDetail.package,

408+

release: {

409+

version: fixture.version,

410+

},

411+

trust: {

412+

scanStatus: "clean",

413+

moderationState: null,

414+

blockedFromDownload: false,

415+

reasons: [],

416+

pending: false,

417+

stale: false,

418+

},

419+

};

406420
407421

const server = http.createServer((request, response) => {

408422

const url = new URL(request.url, "http://127.0.0.1");

@@ -429,6 +443,13 @@ async function main() {

429443

json(response, artifactResolverDetail);

430444

return;

431445

}

446+

if (

447+

url.pathname ===

448+

`/api/v1/packages/${encodeURIComponent(packageName)}/versions/${fixture.version}/security`

449+

) {

450+

json(response, securityDetail);

451+

return;

452+

}

432453

if (

433454

betaStatus !== undefined &&

434455

url.pathname === `/api/v1/packages/${encodeURIComponent(packageName)}/versions/beta`