Commit Graph

10 Commits

Author SHA1 Message Date
github-actions[bot] a7baeb3e68 chore: version packages 2026-03-19 07:36:10 +00:00
sen 445f00f42e [packages/openclaw-plugin]refactor: remove before_prompt_build prompt injection
Rely on bundled SKILL.md for agent guidance instead of unconditionally
injecting system context via prependSystemContext on every prompt build.
2026-03-19 13:56:42 +08:00
github-actions[bot] 87a895d644 chore: version packages 2026-03-18 02:26:16 +00:00
sen c6fa995421 fix: add repository URL for openclaw-plugin provenance 2026-03-18 09:16:15 +08:00
github-actions[bot] 0cae5f1914 chore: version packages 2026-03-17 18:28:41 +00:00
sen d3c6c265d9 chore: rename openclaw plugin package to @actionbookdev/openclaw-plugin 2026-03-18 02:08:38 +08:00
sen 754a268fe2 [packages/openclaw-plugin]refactor: improve SKILL.md to align with Anthropic skill design spec
- Enrich description with trigger keywords for better auto-activation
- Add user-invocable: false (background knowledge, not a user command)
- Add "When to Use" section with concrete trigger scenarios
- Add "Constructing an Effective Search Query" with good/bad query examples
- Add "Response Structure" documenting actual search/get API return formats
- Simplify Selector Priority to a concise ordered list (no CLI-specific code)
- Generalize Fallback Strategy to use agent's own browser tools
- Add Login Page Handling section
- Add end-to-end Example using plugin tool calls
- Update system guidance in plugin.ts to be self-contained
- Update tests to match new SKILL.md content
2026-03-17 17:39:55 +08:00
sen 4af929dc1d [packages/openclaw-plugin]fix: handle bracketed IPv6 in SSRF guard
URL.hostname wraps IPv6 addresses in brackets (e.g. [fd00::1]),
which bypassed the regex-based private IP check. Strip brackets
before matching.

Addresses: PR #213 Codex review comment
2026-03-17 16:18:50 +08:00
sen c30acf7f0e [packages/openclaw-plugin]fix: SSRF protection, consistent error handling, and test coverage
- Add private IP / localhost / non-http protocol validation in resolveApiUrl
- Unify error handling via formatToolError using isActionbookError from SDK
- Wrap register() in try-catch to prevent crashing the host on bad config
- Add 28 new tests covering tool execution, SSRF, proxy bypass, and error paths
2026-03-17 16:17:32 +08:00
sen c4d4a3ae69 feat(openclaw-plugin): add native OpenClaw plugin support 2026-03-17 16:17:32 +08:00