Compare commits

..
Author SHA1 Message Date
George Zhang 79d17a91ed fix: ignore inactive personal publisher handles 2026-03-28 15:34:31 -07:00
George Zhang 2f15202a68 fix: unify personal publisher handle resolution 2026-03-28 15:14:17 -07:00
Nimrod Gutman 342a2b1ca4 fix(skill-detail): stop owner canonical redirect loop (#1357) 2026-03-28 20:49:41 +03:00
ImLukeF 75915cd2b5 fix: improve Safari compatibility and auth callbacks 2026-03-28 23:59:23 +11:00
ImLukeF d8db9b99a2 fix: resolve user profiles via personal publisher handles 2026-03-28 22:37:25 +11:00
Luke d8e1f0daa1 fix: align transferred skill publisher ownership (#1344) 2026-03-28 22:22:09 +11:00
ImLukeF 8a350d953c fix: preserve exact skill slug search matches
Fixes #1322.

Credit to @Yyang100 for the original report and repro.
2026-03-28 16:27:26 +11:00
Peter Steinberger 3fb3150ee2 fix: allow package downloads while VT scan is pending 2026-03-28 02:54:10 +00:00
Peter Steinberger 7dbc0fc3bb fix: unblock verified community package scans 2026-03-27 23:44:45 +00:00
Peter Steinberger fc4f8644eb refactor: centralize package scan state resolution 2026-03-27 02:10:01 +00:00
Peter Steinberger dda6d55fbf fix: unblock package vt scan fallback stalls 2026-03-27 02:06:03 +00:00
Vincent Koc e014759b40 Merge pull request #1191 from openclaw/vincentkoc-code/fix-plugin-compatibility 2026-03-24 22:55:12 -07:00
Peter Steinberger 2186c41c48 fix: prioritize recent package vt backfills 2026-03-24 10:19:28 -07:00
Peter Steinberger c30c182478 fix: harden package vt scan scheduling 2026-03-24 10:11:26 -07:00
Peter Steinberger 3080567964 perf: tighten package search candidate reads 2026-03-23 23:23:38 -07:00
Peter Steinberger f304541561 perf: collapse package readme fallback requests 2026-03-23 23:23:36 -07:00
Peter Steinberger 91224ada13 perf: parallelize plugin detail reads 2026-03-23 23:04:36 -07:00
Peter Steinberger d5fbaeef81 perf: unify plugin catalog reads 2026-03-23 23:03:01 -07:00
Peter Steinberger 3706018b72 docs: clarify abuse policy for leaked data and account farming 2026-03-23 19:42:20 -07:00
Peter Steinberger 62e616f635 fix: raise http api rate limits 2026-03-23 19:06:49 -07:00
Peter Steinberger 9013d324c8 fix: forward client ip headers for ssr package api 2026-03-23 19:03:12 -07:00
Peter Steinberger c1363ec8d0 feat: add acceptable usage about page 2026-03-23 17:37:17 -07:00
Peter Steinberger 7e09196f92 feat: backfill static plugin scans 2026-03-23 15:58:02 -07:00
Peter Steinberger 807043b4b0 feat: surface plugin security scans 2026-03-23 15:42:59 -07:00
Vincent Koc 972fe35935 fix(plugins): improve package upload detection UX 2026-03-23 15:04:30 -07:00
Vincent Koc 16ee540f5d fix(vt): recover plugin package scan retries 2026-03-23 14:57:39 -07:00
Vincent Koc f541882d55 feat(plugins): gate publish form behind upload 2026-03-23 14:49:42 -07:00
Vincent Koc 95bc156747 test(e2e): align header smoke nav labels 2026-03-23 14:46:06 -07:00
Vincent Koc bf7422022f fix(auth): unblock safari cli github login 2026-03-23 14:28:42 -07:00
Vincent Koc 230e5b91f8 fix(publishing): rename publish routes and clarify import scope 2026-03-23 13:54:47 -07:00
Vincent Koc 70dcf21e37 fix(shell): streamline publisher inventory navigation 2026-03-23 13:45:42 -07:00
Vincent Koc 932a1fb30c fix(dashboard): improve publisher plugin card layout 2026-03-23 13:34:28 -07:00
Vincent Koc 44fe60b701 fix(plugins): keep public package routes public 2026-03-23 13:28:26 -07:00
Vincent Koc 1c057ca9b9 fix(dashboard): streamline publisher plugin workflow 2026-03-23 13:24:46 -07:00
Vincent Koc 9f793d1336 feat(dashboard): add publisher plugin status panel 2026-03-23 13:16:30 -07:00
Vincent Koc aa9295bea9 fix(plugins): forward browser auth to package api 2026-03-23 13:05:41 -07:00
Vincent Koc 370eea4977 fix(plugins): recover owner package detail after auth 2026-03-23 12:53:35 -07:00
Vincent Koc 59e6819020 fix(publishers): remove leftover conflict marker 2026-03-23 12:37:53 -07:00
Vincent Koc 52b633f4e9 fix(publishers): skip digest scheduling without scheduler 2026-03-23 12:28:22 -07:00
Vincent Koc 6b1e6ca1c9 Merge pull request #1203 from openclaw/vincentkoc-code/fix-personal-publisher-pagination
fix: split publisher digest sync scheduling
2026-03-23 12:21:51 -07:00
Vincent Koc 6c112eccb7 chore: use typed internal digest refs 2026-03-23 12:20:59 -07:00
Vincent Koc f9e9effcdd fix(publishers): split owner digest sync scheduling 2026-03-23 12:14:35 -07:00
Peter Steinberger b5d2d0fefa fix: heal missing personal publishers during publish 2026-03-23 10:43:17 -07:00
Vincent Koc 48d0fc91f3 fix(packages): keep plugin api separate from gateway version 2026-03-23 09:08:49 -07:00
LukeandPeter Steinberger fefb2340a8 feat: redesign plugins page and skills list view (#1166)
* feat: redesign plugins page and skills list view

Redesigned the plugins page with a cleaner toolbar (pill search,
toggle filter buttons) and simplified card layout. Added a proper
table-style list view for skills with skill name, version, summary,
and author avatar columns. Also polished the sort dropdown with a
chevron indicator, added card shadows for better separation, and
tightened up the theme toggle and sign-in button.

* feat: add publisher org ownership

* feat: migrate legacy publisher handles to orgs

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-03-23 03:44:17 -07:00
Peter Steinberger 22287558b9 feat: migrate legacy publisher handles to orgs 2026-03-23 03:39:28 -07:00
Peter Steinberger f6ce8f9e1e feat: add publisher org ownership 2026-03-23 03:27:08 -07:00
Peter Steinberger b5cdee50a9 feat(packages): support shared publisher owners 2026-03-23 02:14:38 -07:00
Vincent Koc b5fdee1c13 feat(plugins): clarify pending verification and add backfill 2026-03-23 02:07:05 -07:00
Vincent Koc 2530beaf51 fix(plugins): hide pending and malicious packages 2026-03-23 02:04:00 -07:00
Vincent Koc c627b202f7 fix(plugins): add async malware scan parity 2026-03-23 02:01:04 -07:00
Vincent Koc 5cbeb54c8e fix(upload): cap published skill and plugin file sizes 2026-03-23 01:57:59 -07:00
Vincent Koc eb8136b7fb fix(ui): keep query when filtering plugins 2026-03-23 01:47:31 -07:00
Peter Steinberger a166c95eb0 fix: avoid skill scans on verified plugin browse 2026-03-23 01:14:40 -07:00
scoootscooob 86dc196e9b fix: tolerate stale auth on public package reads (#1157) 2026-03-23 01:06:32 -07:00
Peter Steinberger 649c14a43f feat: rename Packages to Plugins, filter out skills, add verified badge
- Rename /packages route to /plugins with /packages redirecting
- Nav links now say "Plugins" and point to /plugins
- Plugins page only shows code-plugin and bundle-plugin (no skills)
- "Official only" → "Verified only"; blue checkmark badge for verified publishers
- Compact card footer: "by author · v1.2.3" inline with verified badge
- Remove duplicate Skill/Skill tag bubbles
- Update tests to match new routes and behavior
2026-03-23 01:02:15 -07:00
Peter Steinberger 7cbf0434b0 ci: wait for vercel git deploy status 2026-03-23 00:58:21 -07:00
Peter Steinberger 76944f0e32 chore: prepare 0.9.0 release 2026-03-23 00:45:56 -07:00
Peter Steinberger 6ead1da08b fix: use read rate limits for package files 2026-03-23 00:44:31 -07:00
Val Alexander 22413f4ff8 Revert "chore: update .gitignore and enhance Convex documentation in AGENTS.md and CLAUDE.md"
This reverts commit 3326c235da.
2026-03-22 20:17:58 -05:00
Val Alexander 3326c235da chore: update .gitignore and enhance Convex documentation in AGENTS.md and CLAUDE.md 2026-03-22 20:03:04 -05:00
Peter Steinberger 2b97c13191 feat: reserve official handles and package archives 2026-03-22 12:48:47 -07:00
Peter Steinberger 17977c1248 fix: support nested package upload files 2026-03-22 11:14:58 -07:00
Peter Steinberger aea0127663 fix: add package cleanup mutation 2026-03-22 11:09:31 -07:00
Peter Steinberger 9ea750852f fix: stabilize package catalog search and contract verify 2026-03-22 11:04:20 -07:00
Peter Steinberger 801cc550ab fix: narrow skill package catalog search 2026-03-22 11:03:17 -07:00
Peter Steinberger 522512c9d2 fix: use paginator for skill package catalog queries 2026-03-22 11:00:18 -07:00
Peter Steinberger 1ceb5d2bad fix: tolerate prefixed convex function-spec output 2026-03-22 10:51:04 -07:00
Peter Steinberger c7b3b2a30e ci: restore bun in deploy web job 2026-03-22 10:49:21 -07:00
Peter Steinberger f1e3629a99 ci: deploy web via vercel direct build 2026-03-22 10:47:49 -07:00
Peter Steinberger 931843aeac ci: fail deploy preflight when secrets are missing 2026-03-22 10:43:36 -07:00
Peter Steinberger 1a56fc5427 test: isolate package api env fallback 2026-03-22 10:22:25 -07:00
Peter Steinberger 03a19f6497 fix: normalize skill and soul slugs 2026-03-22 10:20:48 -07:00
Peter Steinberger f9087fc6e0 Merge pull request #1093 from openclaw/plugin
feat: add native package and plugin registry flows
2026-03-22 10:18:11 -07:00
Peter Steinberger 5429c28667 Merge remote-tracking branch 'origin/main' into plugin
# Conflicts:
#	bun.lock
#	package.json
2026-03-22 10:15:03 -07:00
Peter Steinberger c234009b7c fix: expose private packages to owners 2026-03-22 10:13:16 -07:00
Peter Steinberger 962171a590 feat: unify skills into package catalog 2026-03-22 16:04:56 +00:00
Peter Steinberger 852b54a722 fix: preserve package publish outputs and site fallbacks 2026-03-22 15:33:23 +00:00
Peter Steinberger dff83a52bf fix: tighten package auth boundaries 2026-03-22 07:27:25 +00:00
Peter Steinberger ec8601c0eb fix: tighten package fallback and readme errors 2026-03-22 04:09:46 +00:00
Peter Steinberger ee6a5ab037 test: increase package API coverage 2026-03-22 03:56:42 +00:00
Peter Steinberger 4814ce39d6 fix: remove dead skill family from package catalog 2026-03-22 03:54:11 +00:00
Peter Steinberger ccace09242 fix: preserve package latest metadata and rename publish route 2026-03-22 03:34:42 +00:00
Peter Steinberger 8f9c9ffba2 fix: tighten package filter indexes and private UI states 2026-03-22 03:20:29 +00:00
Peter Steinberger 7460c084a5 test: cover package publish route plugin uploads 2026-03-22 02:53:30 +00:00
Peter Steinberger e7ef691013 fix: filter ignored package uploads and block skill publishes 2026-03-22 02:50:05 +00:00
Peter Steinberger da76bf7554 test: ignore generated vercel output in vitest 2026-03-21 19:35:46 -07:00
Peter Steinberger 3959a7ea85 fix: preserve package cursor tails and latest tags 2026-03-22 02:29:59 +00:00
Peter Steinberger 08da7eb477 fix: remove runtime devtools from app shell 2026-03-21 19:27:43 -07:00
Peter Steinberger 958a37fa6b fix: respect runtime env in prod SSR 2026-03-21 19:25:11 -07:00
Peter Steinberger 91d963cf13 fix: repoint packages to the right fallback release 2026-03-22 02:23:09 +00:00
Peter Steinberger 31191b7771 fix: lazy-load devtools on client 2026-03-21 19:21:01 -07:00
Peter Steinberger 371367f01d chore: update dependencies 2026-03-21 19:13:19 -07:00
Peter Steinberger 2ace8f9ab4 fix: freeze code plugin runtime ids 2026-03-22 02:11:59 +00:00
Peter Steinberger 914fa895c5 build: add China mirror redirect entrypoint 2026-03-21 19:08:17 -07:00
Peter Steinberger 93e398e7a5 fix: harden package catalog scans and downloads 2026-03-22 02:06:28 +00:00
Peter Steinberger 043f029f2c fix: resync package latest pointers on release hides 2026-03-22 01:56:54 +00:00
Peter Steinberger de90f80d72 fix: tighten package summary and digest sync 2026-03-22 01:29:34 +00:00
Peter Steinberger cc9de82034 fix: tighten package pagination and version indexing 2026-03-22 01:17:38 +00:00
Peter Steinberger 05924a36e1 fix: keep private package flows on app origin 2026-03-22 00:42:26 +00:00
Peter Steinberger ed9dcc39b7 fix: restore package auth and download metadata 2026-03-22 00:20:36 +00:00
Peter Steinberger 1511aa2082 fix: tighten package latest visibility and filter indexes 2026-03-21 23:09:06 +00:00
Peter Steinberger f88f3ef925 fix: tighten package release serving and uploads 2026-03-21 22:55:23 +00:00
Peter Steinberger adce8ac1b5 fix: preserve skill family filters across package listings 2026-03-21 22:40:39 +00:00
Peter Steinberger ddafee7e0e fix: address final package registry review issues 2026-03-21 17:38:07 +00:00
Peter Steinberger 877f37d052 fix: resolve package publish and search regressions 2026-03-21 17:28:30 +00:00
Peter Steinberger 5210966a19 test: add package registry regression coverage 2026-03-20 18:30:50 +00:00
Peter Steinberger 4ccfb9d3f5 fix: address package registry review regressions 2026-03-20 18:27:52 +00:00
Peter Steinberger fc7d4dadca feat: add native package and plugin registry flows 2026-03-20 18:00:15 +00:00
Peter Steinberger fb86e790b8 docs: add plugin hosting plan 2026-03-20 10:29:47 -07:00
Val Alexander deb592d4ce docs: update repository guidelines and improve formatting across multiple files
- Enhanced AGENTS.md with clearer project structure and development commands.
- Updated CHANGELOG.md to reflect recent fixes and additions.
- Improved formatting in CONTRIBUTING.md for better readability.
- Adjusted package.json and configuration files for consistent command structure.
- Refined README.md and VISION.md for clarity and organization.
- Standardized code formatting in various TypeScript files for consistency.

These changes aim to enhance documentation clarity and maintainability across the repository.
2026-03-18 21:56:01 -05:00
Peter Steinberger 8030c554e8 test: fix ci for download regression coverage 2026-03-17 09:59:58 -07:00
Peter Steinberger 472e1e875d test: harden download counter regression coverage 2026-03-17 09:56:49 -07:00
Peter Steinberger ba9cdde703 fix: internalize download counter mutations 2026-03-17 09:38:11 -07:00
magicseth 8d5a64b599 Merge pull request #965 from sethconvex/fix/github-backup-retry-on-conflict
fix: retry GitHub backup push on fast-forward conflict
2026-03-17 00:07:44 -07:00
Seth RaphaelandClaude Opus 4.6 351dfd48c3 fix: retry GitHub backup push on fast-forward conflict
When a publish-time backup and the cron backup push concurrently, the
second push fails with "not a fast forward" because the branch moved.

Split backupSkillToGitHub into two phases:
1. Create blobs (storage downloads) — done once
2. Fetch ref, build tree, commit, push — retried up to 3x on conflict

Same retry applied to deleteGitHubSkillBackup.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 23:16:22 -07:00
magicseth 0e2a7e1bba Merge pull request #956 from sethconvex/feat/listpublic-v4-staged-release
feat: switch /skills and homepage to listPublicPageV4
2026-03-16 18:11:10 -07:00
Seth RaphaelandClaude Opus 4.6 54c9d57a22 fix: add authTables to @convex-dev/auth/server mocks in all test files
The schema import in skills.ts (needed for getPage) transitively pulls
in authTables from @convex-dev/auth/server. All test files that import
from skills.ts need this export in their mock.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 18:07:34 -07:00
Seth RaphaelandClaude Opus 4.6 343836a026 fix: use skillBadges index for highlightedOnly filter in V4
Instead of scanning 500+ rows of the sort index and filtering for
highlighted skills in JS (which fails when highlighted skills are
sparse among 25K+ rows), query the skillBadges table via by_kind_at
index to find highlighted skill IDs directly, then look up their
digests. Also simplifies the non-highlighted path to a single getPage
call since the multi-round loop was only needed for highlighted.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 17:59:58 -07:00
Seth RaphaelandClaude Opus 4.6 ac86be7e14 chore: remove useV4 flag — V4 is now the only code path
Remove the V3 fallback branch and useV4 parameter from
useSkillsBrowseModel since V4 is verified and the only path used.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 17:38:07 -07:00
Seth RaphaelandClaude Opus 4.6 6ef8843f1c feat: switch /skills and homepage to V4, remove test routes
- /skills browse page now uses listPublicPageV4 via useV4 flag
- Homepage popular skills section uses listPublicPageV4
- Remove /skillsv4 and /test-v4 temporary test routes

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 17:33:24 -07:00
magicseth 33a7cec1af Merge pull request #955 from sethconvex/feat/listpublic-v4-staged-release
feat: V4 staged release — /skillsv4 test route
2026-03-16 17:30:54 -07:00
Seth RaphaelandClaude Opus 4.6 81e734b1fc fix: guard against hasMore=true with nextCursor=null in V4 path
When V4 returns hasMore=true but nextCursor=null, the next load-more
call would pass cursor=null, triggering the replace branch instead of
append. Treat this edge case as 'done' to prevent silent list reset.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 17:30:12 -07:00
Seth RaphaelandClaude Opus 4.6 b3dd6c1219 feat: V4 staged release — fix getPage schema, add /skillsv4 test route
Root cause of V4 returning empty in production: `getPage()` ignores the
`indexFields` property at runtime and always calls `getIndexFields(table,
index, schema)`. Without `schema`, it threw "schema is required" silently.

Fixes:
- Pass `schema` instead of `indexFields` to `getPage()`
- Use `absoluteMaxRows` instead of `targetMaxRows` (ignored when
  `endIndexKey` is provided)
- Remove unused `DIGEST_INDEX_FIELDS` constant

Staged release:
- Add `/skillsv4` route (same UI as `/skills` but using V4 backend)
- Add `/test-v4` debug page for raw V4 API testing
- Add `useV4` flag to `useSkillsBrowseModel` hook
- Keep `/skills` on V3 until V4 is verified in production

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 17:23:47 -07:00
magicseth ecf71e8664 Merge pull request #953 from sethconvex/feat/listpublic-v4-backend-only
feat: add listPublicPageV4 backend query (frontend stays on V3)
2026-03-16 16:58:45 -07:00
Seth RaphaelandClaude Opus 4.6 1d170cf634 fix: revert homepage to V3 — V4 failing in production
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 16:57:47 -07:00
magicseth c19917e9a4 Merge pull request #950 from sethconvex/feat/listpublic-v4-deterministic-cursors
feat: listPublicPageV4 with cacheable deterministic cursors
2026-03-16 16:55:55 -07:00
Seth RaphaelandClaude Opus 4.6 9922c22291 fix: use indexFields instead of schema import to avoid auth dep in tests
- Replace `import schema from './schema'` with inline DIGEST_INDEX_FIELDS
  lookup, avoiding @convex-dev/auth/server transitive dependency in tests
- Gut V1 test to match gutted handler (single stub verification)
- Fix load-more test to use V4 response shape

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 16:51:16 -07:00
Seth RaphaelandClaude Opus 4.6 f6c0735238 fix: update tests for V4 response shape and gutted V2
- Replace V2 test suite with single stub verification (no DB reads)
- Update skills-index tests: paginationOpts → cursor/numItems,
  isDone/continueCursor → hasMore/nextCursor
- Update default convexHttpMock to return V4 shape

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 16:47:57 -07:00
Seth RaphaelandClaude Opus 4.6 1d2a822f2a fix: lint — remove dead code and fix variable shadowing
- Remove sortToIndex and getTrendingEntries (only used by gutted V1)
- Remove unused leaderboard imports
- Rename shadowed 'v' parameter to 'val' in encode/decodeIndexKey

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 16:45:03 -07:00
Seth RaphaelandClaude Opus 4.6 92e640a46b fix: address codex review — cursor safety, pagination stall, stale doc
- Use tagged object encoding for undefined index key values instead of
  plain string sentinel to avoid collisions
- Add try/catch in decodeIndexKey, treat malformed cursors as first page
- When highlightedOnly filters out all fetched rows, advance nextCursor
  to last fetched position instead of returning null (prevents restart loop)
- Update V3 JSDoc to reflect its current role

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 16:39:57 -07:00
Seth RaphaelandClaude Opus 4.6 618cb3141c fix: bound getPage with equality prefix to exclude soft-deleted rows
getPage walks the entire index unless bounded. Without constraining
startIndexKey/endIndexKey to the equality prefix ([undefined] for base,
[undefined, false] for nonsuspicious), desc order returns soft-deleted
items first, producing empty pages.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 16:36:45 -07:00
Seth RaphaelandClaude Opus 4.6 49d0e0246a feat: add listPublicPageV4 with cacheable deterministic cursors
Use convex-helpers getPage() instead of .paginate() so that page cursors
are derived from actual index field values. Two users requesting the same
page now produce identical query args, enabling shared query caching.

- Add listPublicPageV4 with IndexKey-based cursor encoding
- Gut listPublicPage (V1) and listPublicPageV2 to return empty results
- Keep listPublicPageV3 intact for any remaining subscribers
- Switch frontend browse model and homepage to V4

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 16:24:01 -07:00
magicseth 0a4e542ba9 Merge pull request #949 from sethconvex/chore/listpublic-v3-stale-tab-check
chore: add listPublicPageV3 to identify stale-tab websocket traffic
2026-03-16 15:53:49 -07:00
Seth RaphaelandClaude Opus 4.6 0721c57fae chore: add listPublicPageV3 to distinguish new clients from stale tabs
Duplicate of listPublicPageV2 as a separate Convex function. Frontend
switched to V3 so any remaining V2 calls in the dashboard are from
stale browser tabs with old bundles.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 15:52:02 -07:00
magicseth 57cec34d53 Merge pull request #948 from sethconvex/fix/listpublic-v2-test-typecheck
fix: typecheck error in listPublicPageV2 test
2026-03-16 15:13:23 -07:00
Seth RaphaelandClaude Opus 4.6 c20f836d71 fix: typecheck error in listPublicPageV2 test
Cast page item to Record to access latestVersion property that isn't
on the narrow return type.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 15:12:20 -07:00
magicseth 390f52ade0 Merge pull request #947 from sethconvex/fix/listpublic-v2-test-update
test: update listPublicPageV2 tests for digest-only behavior
2026-03-16 15:07:12 -07:00
Seth RaphaelandClaude Opus 4.6 1f30223b54 test: update listPublicPageV2 tests to match digest-only behavior
Remove fallback expectations — pre-backfill rows without owner fields
are now skipped, and missing latestVersionSummary returns null instead
of fetching from skillVersions.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 15:06:33 -07:00
magicseth b7d273daea Merge pull request #945 from sethconvex/perf/listpublic-v2-digest-only
perf: listPublicPageV2 reads only from digest, no extra table joins
2026-03-16 14:37:06 -07:00
Seth RaphaelandClaude Opus 4.6 8226e418f4 refactor: use filteredMap to avoid redundant digestToHydratableSkill call
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 14:22:51 -07:00
Seth RaphaelandClaude Opus 4.6 48849dec89 perf: build listPublicPageV2 response directly from digest, no extra table reads
listPublicPageV2 was calling buildPublicSkillEntries which fell back to
ctx.db.get() for owners and versions, adding skills/users/skillVersions
to the query's read set. Now that digest rows have owner fields and
latestVersionSummary backfilled, we can construct the full response from
skillSearchDigest alone — writes to other tables no longer bust the cache.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 14:09:38 -07:00
Peter Steinberger 864b24fe03 test: add prod http smoke coverage 2026-03-15 22:22:22 -07:00
Peter Steinberger 26e6a435f2 test: add ssr and og regression coverage 2026-03-15 20:49:18 -07:00
Peter Steinberger f8104fd759 fix: package og assets for server rendering 2026-03-15 20:36:12 -07:00
Peter Steinberger ef2cd7a1f4 fix: restore ssr-compatible web stack 2026-03-15 20:30:29 -07:00
Peter Steinberger ee2d06e622 feat: server render public skill pages 2026-03-15 20:12:53 -07:00
Nimrod Gutmanandgeoffrey 69e68e696e fix(web): default compare diff to inline on narrow screens (#898)
* fix: isolate diff editor rendering and styling

* fix: scrollbar style

* fix(web): default compare diff to inline on narrow screens

---------

Co-authored-by: geoffrey <1377499035@qq.com>
2026-03-15 18:53:57 +02:00
magicseth 64b32d88c0 Merge pull request #872 from sethconvex/perf/search-skip-users-and-compound-indexes
perf: skip users table in search, use compound indexes in listPublicPageV2
2026-03-14 09:37:19 -07:00
Seth RaphaelandClaude Opus 4.6 a0d0ec0e1e test: update assertions for compound index and digest owner changes
- search.test: expect users lookup NOT called when digest has owner data
- listPublicPageV2.test: expect by_nonsuspicious_* indexes when nonSuspiciousOnly

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 09:34:13 -07:00
Seth RaphaelandClaude Opus 4.6 da578cfcad fix: handle null-owner digest fallback and safe compound index migration
- P2: When digestToOwnerInfo returns { owner: null } (deactivated/deleted
  user), fall back to live users table lookup instead of dropping the skill
  from results. Applies to hydrateResults, lexicalFallbackSkills, and
  buildPublicSkillEntries.

- P1: If compound index returns zero results on the first page (isSuspicious
  not yet backfilled), fall back to base index with JS filtering so the
  homepage isn't empty during migration.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 09:28:02 -07:00
Seth RaphaelandClaude Opus 4.6 14e4ab59cb docs: add CLAUDE.md with Convex performance rules
Encodes the patterns learned from bandwidth optimization so AI coding
assistants get them right from the start — digest owner fields over
users table reads, compound indexes over JS filtering, one-shot fetches
for public pages, change detection in triggers.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 09:14:29 -07:00
Seth RaphaelandClaude Opus 4.6 7c48828d69 perf: skip users table in search, use compound indexes in listPublicPageV2
Three bandwidth fixes:

1. search.hydrateResults / lexicalFallbackSkills: use digestToOwnerInfo()
   to resolve owner data from the digest instead of ctx.db.get(ownerUserId)
   on the users table. Eliminates users from the read set for ~99% of
   search calls (8+ GB in 72h).

2. skills.listPublicPageV2: use compound by_nonsuspicious_* indexes when
   nonSuspiciousOnly is true, filtering isSuspicious at the DB level
   instead of scanning and discarding in JS (30+ GB in 72h).

3. maintenance.backfillDigestIsSuspicious: targeted backfill that sets
   isSuspicious on digest rows where it's undefined, using the digest's
   own moderationFlags/moderationReason. Must run before compound indexes
   take effect.

Deploy sequence:
  1. Deploy functions
  2. npx convex run maintenance:backfillDigestIsSuspicious --prod
  3. Compound indexes work immediately for backfilled rows

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 09:13:40 -07:00
Nimrod GutmanandJonathan Deamer 674ca01a3b fix(cli): validate forced install version before rm (#864)
* test(cli): add tests for install --force rm ordering

Add three tests to verify that --force install does not delete the local
skill directory before pre-download checks have passed:

- rm not called when skill is malware-blocked
- rm not called when API fetch fails (skill not found)
- rm called before download when all checks pass (happy path)

* fix(cli): move rm after checks in install --force

Previously, install --force deleted the local skill directory before
fetching metadata or running moderation checks. If any check failed
(skill deleted, malware-blocked, not found), the local copy was lost.

This is inconsistent with cmdUpdate, which already checks before
deleting. Move rm to after all checks pass, just before download.

This does not alter the meaning of --force; it narrows the window in
which data is removed before the command has confirmed the replacement
is viable.

* fix(cli): validate forced install version before rm

---------

Co-authored-by: Jonathan Deamer <202770+jonathandeamer@users.noreply.github.com>
2026-03-14 13:33:33 +02:00
Wangnovandwangnov f0b6335966 fix: default skills search to relevance (#802)
* fix: default skills search to relevance

* test: cover explicit search sort guard

---------

Co-authored-by: wangnov <1694546283@qq.com>
2026-03-14 13:10:13 +02:00
Vincent KocandNimrod Gutman 165f132613 fix: guard direct version file reads (#797)
* fix: guard soul version file reads

* test: cover version file access guards

* fix(convex): tighten version file access guards

---------

Co-authored-by: Nimrod Gutman <nimrod.gutman@gmail.com>
2026-03-14 12:46:16 +02:00
Vincent KocandNimrod Gutman da0448923b fix: sanitize public soul version queries (#796)
* fix: sanitize public soul version queries

* test: cover public soul version sanitization

* fix(api): preserve soul file downloads after sanitization

---------

Co-authored-by: Nimrod Gutman <nimrod.gutman@gmail.com>
2026-03-14 12:14:27 +02:00
Vincent Koc cca8b4421b fix: sanitize public skill version queries 2026-03-14 11:42:56 +02:00
magicseth 07df1bcec3 Merge pull request #844 from sethconvex/perf/oneshot-browse-page
perf: replace reactive browse/home queries with one-shot fetches
2026-03-13 22:09:34 -07:00
Seth RaphaelandClaude Opus 4.6 0c5dc63bf5 fix: mock convexHttp in skills-route-default-sort test for CI
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 22:08:02 -07:00
Seth RaphaelandClaude Opus 4.6 a9699684ce merge: resolve conflict with origin/main in index.tsx
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 22:06:16 -07:00
Seth RaphaelandClaude Opus 4.6 1bc3ba98ed fix: allow retry on load-more fetch failure instead of hiding control
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 20:58:18 -07:00
Seth RaphaelandClaude Opus 4.6 08284d8f3d test: update tests for one-shot fetch and preResolved owner short-circuit
- Replace usePaginatedQuery mocks with convexHttp.query mocks in
  browse page tests
- Update load-more test to use convexHttp instead of loadMorePaginated
- Update backend tests to reflect new behavior: getOwnerInfo skips
  db.get when digest has pre-resolved owner data

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 20:53:30 -07:00
Seth RaphaelandClaude Opus 4.6 1848fcb819 fix: add error handling and unmount cleanup to home page fetches
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 20:48:21 -07:00
Seth RaphaelandClaude Opus 4.6 6224c05e82 perf: replace reactive browse/home queries with one-shot HTTP fetches
listPublicPageV2 is the #1 DB bandwidth consumer (31GB+ spikes) because
usePaginatedQuery creates reactive subscriptions. Any write to
skillSearchDigest invalidates all active subscribers simultaneously —
a thundering herd. This replaces reactive subscriptions with one-shot
ConvexHttpClient.query() calls on both the /skills browse page and the
home page, eliminating the reactive read set entirely.

Also short-circuits getOwnerInfo() to return pre-resolved owner data
from the digest before hitting ctx.db.get(ownerUserId), removing the
users table from the reactive read set for listPublicPageV2.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 20:28:23 -07:00
magicseth 68fc915444 Merge pull request #843 from sethconvex/perf/home-page-oneshot-queries
perf: replace reactive subscriptions with one-shot fetches on home page
2026-03-13 17:44:47 -07:00
Seth RaphaelandClaude Opus 4.6 7cd68cc3b5 fix: add .catch() handlers to one-shot home page queries
Prevents unhandled promise rejections on transient network/backend
failures. Empty state is an acceptable fallback for the home page.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 17:43:10 -07:00
Seth RaphaelandClaude Opus 4.6 e37ccd95d1 perf: replace reactive subscriptions with one-shot fetches on home page
The home page used useQuery for highlighted and popular skills, creating
live reactive subscriptions that re-executed on every skillSearchDigest
write (crons, triggers). Since the home page doesn't need live updates,
switch to one-shot convex.query() fetches on mount to eliminate unnecessary
reactive invalidation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 17:33:52 -07:00
magicseth 871e89e0b7 Merge pull request #841 from sethconvex/feat/backfill-digest-version-summary
feat: backfill latestVersionSummary into skillSearchDigest rows
2026-03-13 16:33:43 -07:00
Seth RaphaelandClaude Opus 4.6 78077028fe feat: add backfillDigestVersionSummary to patch latestVersionSummary into digest rows
Existing skillSearchDigest rows created before the latestVersionSummary
denormalization lack the field, causing listPublicPageV2 to fall back to
reading full skillVersions docs (~6KB each, 14MB per call).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 16:20:22 -07:00
magicseth 5d0f5155cf Merge pull request #840 from sethconvex/fix/stable-pagination-global-stats
fix: use stable _creationTime pagination in countPublicDigestPageInternal
2026-03-13 15:48:44 -07:00
Seth RaphaelandClaude Opus 4.6 946ca4febd fix: use stable _creationTime pagination in countPublicDigestPageInternal
The by_active_updated index orders by updatedAt which is mutable —
rows can shift during a paginated scan causing double-counting or
skipping. Default _creationTime ordering is immutable and stable.
isPublicSkillDoc already filters softDeletedAt in JS.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 15:48:07 -07:00
magicseth 593e05f72e Merge pull request #837 from sethconvex/perf/aggregate-global-stats
perf: split global stats recount into batched action
2026-03-13 15:39:17 -07:00
Seth RaphaelandClaude Opus 4.6 faaedb17ea perf: skip digest write when no fields changed to prevent reactive thundering herd
The skills trigger unconditionally wrote to skillSearchDigest on every skill
mutation, even when only stat fields were updated with identical values.
This caused every cron that patches skills (stat sync, backfill) to invalidate
all active listPublicPageV2 subscriptions, triggering massive re-execution
storms (55 GB bandwidth spikes).

Now upsertSkillSearchDigest compares new fields against the existing row and
skips the write when nothing changed. This prevents unnecessary reactive
invalidation while still keeping the digest current for real changes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 15:24:07 -07:00
Peter Steinberger 0ab23862a9 feat: harden skill moderation and canonicalization 2026-03-13 21:35:39 +00:00
Seth RaphaelandClaude Opus 4.6 7b03a44a9c docs: clarify deprecated mutation is a manual fallback only
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 13:37:59 -07:00
Seth RaphaelandClaude Opus 4.6 50715d6467 perf: split global stats recount into batched action to avoid bytes-read limit
The daily updateGlobalStatsInternal cron read all ~19K skillSearchDigest docs
(17.8 MB) in a single mutation, exceeding the Convex bytes-read limit.

Switch to an action-based approach that pages through the table in ~1000-doc
queries (each ~900 KB), then writes the result in a separate mutation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 13:37:59 -07:00
magicseth 0bb513c19a Merge pull request #836 from sethconvex/perf/denormalize-owner-into-digest
feat: add start/stop/status controls to digest owner backfill
2026-03-13 13:18:55 -07:00
Peter Steinberger 536c252310 fix: hide banned-owner skills from public surfaces 2026-03-13 20:07:06 +00:00
Seth RaphaelandClaude Opus 4.6 d1b2ca0a29 feat: add start/stop/status controls to digest owner backfill
Add delayMs param, stop flag via skillStatBackfillState, and status
query so backfill speed can be adjusted without redeploying.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 12:47:16 -07:00
magicseth 9730ba65bc Merge pull request #831 from sethconvex/perf/denormalize-owner-into-digest
perf: denormalize owner fields into skillSearchDigest
2026-03-13 12:25:20 -07:00
DangerouslyShipandClaude Opus 4.6 247580c456 fix: preserve owner profile data for handle-less visible users
digestToOwnerInfo now checks for profile data (name/displayName/image)
in addition to handle when deciding whether to return an owner object.
Handle-less visible users get their full profile; deactivated users
(no handle AND no profile data) correctly get owner: null.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 11:53:39 -07:00
DangerouslyShipandClaude Opus 4.6 114cca2049 fix: use empty string sentinel for handle-less owners in digest
Write ownerHandle: '' (not undefined) for visible users without a
handle and for deactivated users, so digestToOwnerInfo can distinguish
"not backfilled" (undefined → fallback to DB) from "backfilled but
no handle" ('' → use userId fallback, skip DB read).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 11:08:53 -07:00
DangerouslyShipandClaude Opus 4.6 928a65a29c fix: gate digest owner fields on deletedAt/deactivatedAt
Prevent baking deactivated/deleted user info into the digest.
The trigger and backfill now write undefined for owner fields
when the owner is not visible, matching the live query path.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 10:52:24 -07:00
DangerouslyShipandClaude Opus 4.6 1a88a06948 perf: denormalize owner fields into skillSearchDigest to eliminate users reads
listPublicPageV2 (419 GB) and search.hydrateResults (1.76 TB) both read
full users docs for every unique owner. Denormalize ownerHandle, ownerName,
ownerDisplayName, ownerImage into the digest so query paths skip ctx.db.get
entirely. One extra read per skill mutation (rare) vs eliminating reads on
every query (very frequent).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 10:41:38 -07:00
Peter Steinberger 44638b73d4 chore(release): 0.8.0 2026-03-13 13:33:03 +00:00
Peter Steinberger db15896a6b ci: pin setup-bun to Node 24 action commit 2026-03-13 13:22:20 +00:00
Peter Steinberger bf160445dd ci: opt GitHub actions into Node 24 2026-03-13 13:19:08 +00:00
Peter Steinberger d2956bc64b test: fix lint and coverage compatibility after upgrades 2026-03-13 13:11:05 +00:00
Peter Steinberger 2486159e96 build(deps): update workspace dependencies and workflows 2026-03-13 13:11:05 +00:00
Nimrod Gutman b461dcb2bd fix(convex): avoid trending leaderboard read limit (#821)
* fix(convex): avoid trending leaderboard read limit

* test(convex): exercise trending cold start path

* docs: update convex query guidance

* fix(convex): preserve shim return contract
2026-03-13 14:57:03 +02:00
Peter Steinberger 1f474b68ce docs(changelog): reconstruct 0.7.0 release notes 2026-03-13 12:39:20 +00:00
Peter Steinberger e6ec1ec060 fix(ci): harden release verification 2026-03-13 12:39:20 +00:00
Peter Steinberger 1b038d55a2 fix(clawhub): inline packaged license exports 2026-03-13 12:39:04 +00:00
Nimrod Gutman f4fd8fe6f1 fix(convex): fix leaderboard test typecheck 2026-03-13 14:25:51 +02:00
e9f731b57f feat(api): add scan security verification endpoint and non-suspicious filters (#820)
* feat(api): add scan verification endpoint and non-suspicious filters

* fix(api): dedupe bool query parsing and backfill trending non-suspicious

* fix(api): preserve llm dimension warnings in security snapshot

* fix(api): clarify scan result semantics

* fix(api): clarify scan version context

* docs(api): clarify filtered pagination behavior

* fix(api): restore safe non-suspicious behavior

---------

Co-authored-by: VAC <vac@vacs-mac-mini.localdomain>
Co-authored-by: VACInc <3279061+VACInc@users.noreply.github.com>
2026-03-13 14:17:35 +02:00
Nimrod Gutman e2fb0355df fix(convex): align public skills test typing 2026-03-13 10:47:15 +02:00
Nimrod Gutman 4057431f63 fix(api): allow legacy cli publish payloads (#815) 2026-03-13 10:41:29 +02:00
Vincent Koc 0dcfa0be81 Merge pull request #793 from neeravmakwana/fix/public-skill-owner-leak
fix: sanitize public skill owners
2026-03-12 20:36:54 -04:00
Neerav Makwana 3348e87cb7 fix: sanitize public skill owners
Use the public user serializer for `skills.getBySlug` so Convex query responses no longer expose private account metadata like email addresses from public endpoints.

Made-with: Cursor
2026-03-12 20:19:13 -04:00
DangerouslyShipandClaude Opus 4.6 b32a499774 test: add coverage for fallback when latestVersionSummary is absent
Verifies that old digest rows without latestVersionSummary correctly
fall back to ctx.db.get(latestVersionId) for version data.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 08:28:44 -07:00
DangerouslyShipandClaude Opus 4.6 576588b70d perf: denormalize latestVersionSummary into skillSearchDigest
Eliminates ~9MB of skillVersions reads per listPublicPageV2 call by
copying latestVersionSummary from skills into the digest via the
existing trigger. Old rows without the field fall back to fetching
the full version doc.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 08:14:35 -07:00
d725a381d7 fix: allow ownership healing when previous owner is deleted/banned (#689)
* fix: allow ownership healing when previous owner is deleted/banned

The GitHub identity check in `publishOrUpdateSkillInternal` and
`checkSlugAvailability` was unreachable when the skill owner's account
was deleted or deactivated. This created a permanent deadlock: the
original owner could not sign in, and no one (not even the same GitHub
user with a new Convex Auth record) could reclaim the slug.

Move the `canHealSkillOwnershipByGitHubProviderAccountId` check before
the deleted/deactivated early-exit so ownership healing still works for
duplicate Convex Auth user records where the old record was later banned.

When healing is not possible (different GitHub identity or missing
auth records), show a message directing the user to contact
security@openclaw.ai instead of a generic "Slug is already taken".

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* chore: drop unused skills sort index map

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: Nimrod Gutman <nimrod.gutman@gmail.com>
2026-03-12 11:53:52 +02:00
Nimrod Gutman 83f5e07f9d chore(convex): upgrade convex to 1.32.0 (#766) 2026-03-12 11:51:10 +02:00
a9556ee3f0 fix: surface auth errors from OAuth callback to the UI (#688)
* fix: surface auth errors from OAuth callback to the UI

When `afterUserCreatedOrUpdated` throws a `ConvexError` (e.g. banned or
deleted account), the error was silently discarded — the user was
redirected back to the sign-in page with no feedback.

Parse the error from the OAuth callback URL hash fragment in the
`ConvexAuthProvider` `replaceURL` callback and expose it via a
lightweight `useAuthError` hook (backed by `useSyncExternalStore`).
Display the error next to the sign-in button in both Header and the
CLI auth page, and add `.catch()` to `signIn()` calls to avoid
unhandled promise rejections.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix(auth): handle oauth callback sign-in errors

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: Nimrod Gutman <nimrod.gutman@gmail.com>
2026-03-12 11:33:47 +02:00
magicseth 041d8b4b92 Merge pull request #749 from sethconvex/fix/revert-nonsuspicious-index-query
fix: disable nonsuspicious index queries until backfill
2026-03-11 18:13:27 -07:00
DangerouslyShipandClaude Opus 4.6 2058a53c1d fix: disable nonsuspicious index queries until isSuspicious is backfilled
Most skillSearchDigest rows have isSuspicious: undefined (not false),
so eq('isSuspicious', false) returns zero results. Revert to regular
indexes with JS filtering until the field is backfilled.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 18:12:12 -07:00
magicseth 123fecf04a Merge pull request #748 from sethconvex/fix/digest-nonsuspicious-indexes
fix: add nonsuspicious indexes to skillSearchDigest
2026-03-11 18:04:19 -07:00
DangerouslyShipandClaude Opus 4.6 b321025921 fix: use nonsuspicious indexes on skillSearchDigest for filtered pagination
Add by_nonsuspicious_* indexes to skillSearchDigest (matching the
existing ones on the skills table) so nonSuspiciousOnly filtering
happens at the index level instead of in JS. This eliminates empty
filtered pages without needing a multi-paginate loop.

TODO: once deployed and stable, remove the duplicate by_nonsuspicious_*
indexes from the skills table (no longer queried by listPublicPageV2).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 18:01:27 -07:00
magicseth c1115b1491 Merge pull request #746 from sethconvex/fix/listpublicpagev2-multi-paginate
fix: remove multi-paginate loop in listPublicPageV2
2026-03-11 17:51:19 -07:00
DangerouslyShipandClaude Opus 4.6 cd6403fec8 fix: remove multi-paginate loop in listPublicPageV2
Convex only allows a single .paginate() call per query function.
The while loop that skipped empty filtered pages violated this
constraint, causing "ran multiple paginated queries" errors on prod.

Remove the loop — clients will handle empty filtered pages by
requesting the next page via continueCursor.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 17:46:09 -07:00
magicseth b7528760b5 Merge pull request #743 from sethconvex/fix/trending-leaderboard-doc-limit
fix: split trending leaderboard rebuild to avoid 32K doc read limit
2026-03-11 15:55:38 -07:00
DangerouslyShipandClaude Opus 4.6 d47c774f8c fix: use Id<'skills'> cast instead of unsafe as any
Addresses review feedback from Greptile.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 15:42:21 -07:00
DangerouslyShipandClaude Opus 4.6 8bf9414387 fix: split trending leaderboard rebuild to avoid 32K document read limit
The rebuildTrendingLeaderboardInternal mutation queries ~31,500
skillDailyStats docs (7 days × ~4,500/day) in a single transaction,
hitting Convex's 32K document read limit on prod (71 errors/72h).

Split into action → query → mutation pattern so each day's query runs
in its own transaction with its own 32K budget:
- getDailyStats (internalQuery): reads one day's stats
- writeTrendingLeaderboard (internalMutation): writes leaderboard + prunes
- rebuildTrendingLeaderboardAction (internalAction): orchestrates the above

The old single-mutation path is kept as a fallback.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 15:31:33 -07:00
magicseth 0c6c71d167 Merge pull request #741 from sethconvex/perf/lexical-fallback-digest
perf: switch listPublicPageV2 and countPublicSkills to skillSearchDigest
2026-03-11 14:33:21 -07:00
Shakker e3b80a848c fix: narrow moderation external override 2026-03-11 21:24:52 +00:00
Shakker 9b33abc0ea fix: harden moderation state reconciliation 2026-03-11 21:24:52 +00:00
Linfang Wang d68facae8e fix: reduce false-positive skill moderation flags and enable recovery
Problem:
Skills using legitimate API integrations (process.env + fetch) were
permanently flagged as malicious due to CREDENTIAL_HARVEST being
classified as a malicious-level reason code. Once flagged, skills could
not recover to normal status even after clean VT and OpenClaw scans,
because:
1. syncModerationReasons used a partial-update path that only patched
   moderationReason without reconciling moderationFlags, moderationStatus,
   or moderationVerdict.
2. Static scan "you are now a/an" regex over-matched common skill
   preambles, adding spurious INJECTION_INSTRUCTIONS flags.
3. No mechanism existed for external scanner results (VT/LLM) to
   override static suspicious findings when both independently
   confirmed the skill as safe.

Solution:
- Downgrade CREDENTIAL_HARVEST from malicious.env_harvesting to
  suspicious.env_credential_access — env+network is suspicious, not
  malicious, for API integration skills (moderationReasonCodes.ts).
- Remove "you are now a/an" regex from markdown scanning to stop
  false INJECTION_INSTRUCTIONS flags (moderationEngine.ts).
- Add external scanner override in buildModerationSnapshot: when both
  VT and LLM report clean/benign, demote suspicious.* static codes
  from verdict calculation while preserving malicious.* codes and
  keeping all findings in evidence for transparency (moderationEngine.ts).
- Route syncModerationReasons through approveSkillByHashInternal for
  rows with sha256hash, ensuring full moderation state reconciliation.
  For legacy no-hash rows: malicious → escalateSkillByIdInternal
  (immediate hide); clean/suspicious → updateSkillModerationReasonInternal
  (partial fix, matches pre-existing behavior) (vt.ts, skills.ts).
- Add escalateSkillByIdInternal mutation for atomic emergency
  escalation by skillId (sets moderationReason, moderationFlags,
  moderationStatus, hiddenAt, isSuspicious) (skills.ts).
- Ensure approveSkillByHashInternal explicitly hides malicious skills
  by setting moderationStatus to 'hidden' (skills.ts).
- Bump MODERATION_ENGINE_VERSION to v2.1.0.

Frontend:
- Add StaticAnalysisDetail component to display static scan findings
  with severity-aware styling (SkillSecurityScanResults.tsx).
- getStaticGuidance now accepts vtStatus/llmStatus and shows "Confirmed
  safe by external scanners" (benign/green) when both are clean, instead
  of always showing yellow "Patterns worth reviewing" for critical
  severity findings.
- Render SecurityScanResults and disclaimer when only static findings
  are present (SkillHeader.tsx).

Testing:
- 7 new unit tests in moderationEngine.test.ts covering:
  - CREDENTIAL_HARVEST downgrade (suspicious, not malicious)
  - "you are now" no longer flagged in markdown
  - "ignore previous instructions" still flagged
  - buildModerationSnapshot: VT+LLM clean demotes suspicious codes
  - buildModerationSnapshot: malicious codes preserved despite clean VT+LLM
  - Single-scanner-clean does not demote suspicious codes
  - VT suspicious + LLM clean does not demote suspicious codes
- All existing tests pass with engine version bump to v2.1.0.

Follow-up needed (not in this commit):
- One-time backfill for already-misflagged skills (cursor-based,
  re-run approveSkillByHashInternal on isSuspicious=true + clean VT).

Made-with: Cursor
2026-03-11 21:24:52 +00:00
DangerouslyShipandClaude Opus 4.6 73dfb7b2ba perf: switch listPublicPageV2 and countPublicSkills to skillSearchDigest
Both functions were hitting Bytes Read Limit errors scanning the full
skills table (~1.9KB/doc × 9K docs ≈ 17MB). Switch to the lightweight
skillSearchDigest table (~800 bytes/row) which carries all fields
needed by toPublicSkill/isPublicSkillDoc/isSkillSuspicious.

- Add 5 sort indexes to skillSearchDigest matching the ones used by
  SORT_INDEXES (by_active_created, by_active_name, by_active_stats_*)
- listPublicPageV2: query skillSearchDigest, map via digestToHydratableSkill
- countPublicSkillsForGlobalStats: query skillSearchDigest
- Widen buildPublicSkillEntries/filterPublicSkillPage to HydratableSkill[]
- Guard latestVersionSummary access (digest rows don't carry it)
- Update test mocks to expect skillSearchDigest table

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 13:46:36 -07:00
Nimrod Gutman e689a33a09 fix: resolve typescript errors blocking deploy 2026-03-11 21:21:39 +02:00
DangerouslyShipandClaude Opus 4.6 d68bcc43dd perf: use skillSearchDigest for lexical fallback scan
Switches the 500-row lexicalFallbackSkills scan from full skill docs
(~3-5KB each) to lightweight digest rows (~800 bytes each), reducing
DB read bandwidth by ~75%.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 12:15:04 -07:00
magicseth 9861da02d5 Merge pull request #735 from sethconvex/feat/skill-search-digest
perf: add skillSearchDigest table to reduce search hydration bandwidth
2026-03-11 12:12:57 -07:00
DangerouslyShip 94c805d0f5 Merge remote-tracking branch 'origin/main' into feat/skill-search-digest
# Conflicts:
#	convex/skills.ts
2026-03-11 12:02:39 -07:00
Nimrod Gutman 487ecb3890 Merge pull request #682 from openclaw/feat/moderation-override-audit-tools
feat(moderation): add manual override audit tools
2026-03-11 20:46:53 +02:00
DangerouslyShipandClaude Opus 4.6 869c45b5c0 perf: track all attempted embedding IDs to avoid redundant hydration
Build the seen-ID set from vector results rather than only successful
hydrations, so soft-deleted and suspicious embeddings aren't re-hydrated
on each candidate-limit expansion loop iteration.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 11:34:51 -07:00
DangerouslyShipandClaude Opus 4.6 5433c66200 refactor: adopt convex-helpers Triggers for automatic digest sync
Replace ~28 manual syncSkillSearchDigest/upsertSkillSearchDigest calls
across 4 files with a single Triggers handler in convex/functions.ts
that fires automatically on every skills table write. This eliminates
the risk of new mutations silently breaking digest consistency.

- Add convex-helpers as direct dependency
- Create convex/functions.ts wrapping mutation/internalMutation with triggers
- Update all 39 convex modules to import from ./functions
- Remove syncSkillSearchDigest from lib (no longer needed)
- Add normalizeId mock to test db objects for trigger wrapper compat

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 11:07:52 -07:00
DangerouslyShipandClaude Opus 4.6 c74419d834 fix: add missing maintenance.ts sync hooks, type-safe digest hydration
- Add syncSkillSearchDigest calls to 6 maintenance mutations that patch
  digest-relevant fields without syncing (applyEmptySkillCleanup,
  applySkillBadgeBackfillPatch, upsertSkillBadgeRecord,
  backfillDenormalizedBadges, backfillIsSuspicious, applySkillBackfillPatch)
- Replace unsafe `as unknown as Doc<'skills'>` cast with typed
  HydratableSkill interface and digestToHydratableSkill mapper — compiler
  now catches field drift between digest and skill doc
- DRY up extractDigestFields/digestToHydratableSkill with shared
  SHARED_KEYS array and pick() helper

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 10:16:43 -07:00
DangerouslyShipandClaude Opus 4.6 e2c48d893c fix: clean up orphaned digest rows on hard-delete and fix reclaim test mock
When a skill is hard-deleted, syncSkillSearchDigest now removes the
corresponding digest row instead of silently no-oping. Also adds
skillSearchDigest table handling to reclaim test mock.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 10:09:22 -07:00
DangerouslyShipandClaude Opus 4.6 b360de5291 refactor: extract shared validators between skills and skillSearchDigest tables
DRY up duplicated validator definitions (forkOf, badges, stats, moderationStatus)
into shared constants reused by both tables to prevent schema drift.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 10:02:53 -07:00
DangerouslyShipandClaude Opus 4.6 ed2ecab0a2 fix: add missing digest sync hooks and address PR review feedback
- Remove redundant digest write for new skills (Greptile review)
- Add sync to hardDeleteSkillStep init/canonical/forks phases (Codex review)
- Add sync to patchStructuredModerationFromVersion (LLM analysis path)
- Add sync to report mutation (auto-hide path)
- Add sync to applyBanToOwnedSkillsBatchInternal (bulk ban)
- Add sync to restoreOwnedSkillsForUnbanBatchInternal (bulk unban)
- Add sync to transferSkillOwnershipAndEmbeddings (slug reclaim)
- Add sync to setSkillSoftDeletedInternal (internal soft-delete)
- Make digest test fixture derive from makeSkillDoc to avoid fragility

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 09:58:44 -07:00
DangerouslyShipandClaude Opus 4.6 872045681b perf: add skillSearchDigest table to reduce search hydration bandwidth
hydrateResults reads full skill docs (~3-5KB each) but only needs ~800
bytes for toPublicSkill/isPublicSkillDoc/isSkillSuspicious. Add a
lightweight skillSearchDigest projection table that is kept in sync by
all skill mutation paths.

Also fix the searchSkills while loop to incrementally hydrate only new
embedding IDs on each expansion instead of re-hydrating all candidates
from scratch (475 → 250 reads per search).

Expected impact: ~7x bandwidth reduction for hydrateResults
(495 GB → ~70 GB at current traffic).

Post-deploy: npx convex run maintenance:backfillSkillSearchDigestInternal --prod

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 09:34:55 -07:00
Nimrod Gutman 2528c1c35a test(skills): align public list pagination assertions 2026-03-11 11:03:59 +02:00
Nimrod Gutman e93f9411f3 fix(moderation): tighten override safety guards 2026-03-11 10:49:09 +02:00
Nimrod Gutman 4049a3b58a feat(moderation): add manual override audit tools 2026-03-11 10:32:18 +02:00
magicseth 6318a74adf Merge pull request #709 from sethconvex/fix/pre-existing-type-errors
fix: resolve type errors and update OG image branding
2026-03-10 23:42:05 -07:00
DangerouslyShipandClaude Opus 4.6 e7101f155e fix: shrink OG subtitle to fit within card bounds
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 23:38:20 -07:00
DangerouslyShipandClaude Opus 4.6 0f1c7536ba fix: regenerate og.png with correct ClawHub branding
The static OG image still said "ClawdHub" and "clawdhub.com" — regenerated
from the already-correct og.svg source.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 23:36:25 -07:00
DangerouslyShipandClaude Opus 4.6 dc89ab643e fix: resolve pre-existing type errors in test files
- Add missing sha256 field to file mocks in moderation.test.ts
- Accept softDeletedAt param in makeSkillDoc in search.test.ts

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 23:24:16 -07:00
magicseth 0a400437ff Merge pull request #697 from sethconvex/fix/nonsuspicious-index-path
fix: use nonsuspicious indexes in listPublicPageV2

Should reduce bandwidth significantly
2026-03-10 23:20:50 -07:00
DangerouslyShipandClaude Opus 4.6 023a01f411 fix: use nonsuspicious index for combined highlightedOnly + nonSuspiciousOnly
When both filters are active, use the nonsuspicious index for isSuspicious
and apply highlightedOnly as a JS filter on top, instead of scanning the
full table with both filters in JS.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 21:32:46 -07:00
DangerouslyShipandClaude Opus 4.6 2c42bf9900 fix: remove backfill fallback — isSuspicious backfill is complete
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 12:26:35 -07:00
DangerouslyShipandClaude Opus 4.6 523b65e443 fix: use nonsuspicious indexes in listPublicPageV2 to avoid full table scans
Restore the NONSUSPICIOUS_SORT_INDEXES map and index branching logic that
was lost during the PR #572 merge. When nonSuspiciousOnly is set, queries
now use by_nonsuspicious_* indexes with isSuspicious=false in the predicate
instead of scanning the full table and filtering in JS — eliminating
bytesReadLimit errors under load.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 12:12:44 -07:00
Peter Steinberger e07198ad41 test: cover key site workflows in playwright 2026-03-09 05:18:18 +00:00
Peter Steinberger be6761526a test: strengthen playwright smoke error assertions 2026-03-09 05:18:15 +00:00
Peter Steinberger 72b6c5ede6 fix: fail deploy workflow clearly without secrets 2026-03-09 05:10:27 +00:00
Peter Steinberger 8dddcea5c4 fix: unblock deploy workflow smoke gate 2026-03-09 05:08:55 +00:00
Peter Steinberger 0e8c00a8eb fix: stabilize deployment drift query subscription 2026-03-09 04:27:25 +00:00
Peter Steinberger 0aa702fa70 fix: tolerate missing deployment info query 2026-03-09 04:23:38 +00:00
Ayaan Zaidi 4d72506b1c fix: isolate deployment drift banner failures 2026-03-09 09:52:04 +05:30
Peter Steinberger 2be9b67e74 ci: harden deploy pipeline against web/backend drift 2026-03-08 21:58:37 +00:00
Peter Steinberger c617ef124a test: fix timeout mock typing 2026-03-08 03:36:51 +00:00
Peter Steinberger 114e480388 fix: expose structured moderation API (#334) (thanks @ArthurzKV) 2026-03-08 03:18:57 +00:00
Peter Steinberger e31a8e9d32 fix: add structured moderation snapshots (#333) (thanks @ArthurzKV) 2026-03-08 03:13:13 +00:00
Peter Steinberger 460ad3c13d feat: add skill transfer API and CLI 2026-03-07 22:51:49 +00:00
Peter Steinberger 2687d671a0 feat: enforce MIT-0 skill licensing 2026-03-07 22:46:28 +00:00
Peter Steinberger deb216e3b4 docs: fix explore flag list formatting (#601) (thanks @gandli) 2026-03-07 21:15:53 +00:00
gandli e122569d2c docs(cli): fix indentation of --limit flag in explore command
The --limit flag under the 'explore' command's Flags section was
missing the proper two-space indentation, making it inconsistent
with other flag lists in the document.
2026-03-07 21:15:53 +00:00
Peter Steinberger 65649bc032 docs: clarify local dev setup workflow (#584) (thanks @jack-piplabs) 2026-03-07 21:14:45 +00:00
Jack Chan cf59b41790 docs: fix local dev setup instructions in CONTRIBUTING.md
- Add Node.js v18/20/22/24 prerequisite (Convex backend rejects v25+)
- Remove duplicate CONVEX_SITE_URL from .env.local example
- Reorder steps so Convex backend starts before auth/JWT setup
- Add "Set backend environment variables" section (bunx convex env set)
- Clarify that AUTH_GITHUB_ID/SECRET and SITE_URL must be set on the
  Convex backend, not just in .env.local
- Make frontend port explicit (bun run dev -- --port 3000)
- Add updateGlobalStatsInternal step after seeding
2026-03-07 21:14:45 +00:00
Peter Steinberger 09054bb053 fix: add soft-delete search regression coverage (#552) (thanks @MunemHashmi) 2026-03-07 21:12:55 +00:00
Munem Hashmi ea0b14dca5 test(search): add soft-delete filtering tests for vector and lexical paths (#29)
Verify that soft-deleted skills are excluded from both vector search
hydration and lexical fallback exact-slug matching.
2026-03-07 21:12:55 +00:00
Peter Steinberger 4a80758357 fix: update manifest branding changelog (#569) (thanks @Glucksberg) 2026-03-07 18:44:11 +00:00
Glucksberg efd0f50d56 fix: update manifest.json with correct app name
Updates manifest.json from TanStack defaults to ClawHub branding.
This fixes the app name shown when installing as PWA.
2026-03-07 18:44:11 +00:00
Peter Steinberger a45c5b91f3 fix: stabilize browse pagination during safety backfill (#572) (thanks @sethconvex) 2026-03-07 18:42:53 +00:00
Seth RaphaelandClaude Opus 4.6 fc22bfb2a1 fix: keep pagination cursor on same index path during backfill fallback
The nonsuspicious index fallback now fires on any page (not just the
first) and reuses the client's cursor via stale-cursor recovery. This
prevents pagination from breaking when a SORT_INDEXES cursor is sent
back to the NONSUSPICIOUS_SORT_INDEXES path on page 2+.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 18:42:53 +00:00
Seth RaphaelandClaude Opus 4.6 2152879cd7 fix: address PR review comments for bandwidth reduction
- Fix P1: remove !result.isDone guard from listPublicPageV2 backfill
  fallback so it fires when the nonsuspicious index is empty (isDone=true)
- Fix updateTags to update latestVersionSummary when repointing latest tag
- Parallelize leaderboard daily queries with Promise.all
- Over-fetch stale-reason candidates (2x limit) before VT filtering
- Reconcile existing latestVersionSummary in backfill instead of skipping
- Add _creationTime approximation comment
- Rebuild schema dist to include author field on ClawdisSkillMetadata

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 18:42:53 +00:00
Seth RaphaelandClaude Opus 4.6 f8d57f7c70 fix(schema): add compile-time guard for ClawdisSkillMetadata drift
The explicit ClawdisSkillMetadata interface (needed because ArkType's
[inferred] doesn't resolve all fields) now has a keyof-based type guard
that triggers a compile error if the interface keys drift from the schema.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 18:42:53 +00:00
Seth RaphaelandClaude Opus 4.6 a3fe5cbc43 fix: resolve all 26 pre-existing typecheck errors
- Replace ArkType `[inferred]` type alias for ClawdisSkillMetadata with
  an explicit interface so TS can see envVars/dependencies/author/links
- Extract listBySkillHandler from comments.ts so tests can call it
  directly without accessing private _handler property
- Rebuild packages/schema dist output

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 18:42:53 +00:00
Seth RaphaelandClaude Opus 4.6 a90608d240 docs: use convex CLI for insights instead of MCP
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 18:42:53 +00:00
Seth RaphaelandClaude Opus 4.6 8d938e3b44 docs: tell agents to check Convex insights before writing queries
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 18:42:53 +00:00
Seth RaphaelandClaude Opus 4.6 7b7e2b3dc4 perf: reduce DB bandwidth ~1.5 TB/day with indexes, denormalization, and query rewrites
Phase 1: Add `by_moderation` compound index and rewrite 8 cron query
functions to use `.withIndex()` instead of `.filter().collect()` full
table scans (~6 GB/day saved).

Phase 2: Denormalize `isSuspicious` onto skills table with 6 compound
indexes so `listPublicPageV2` can filter at the index level instead of
paginating the entire table (~1 TB/day saved). Includes backfill
mutation and write-path updates across all moderation mutations.

Phase 3: Add `latestVersionSummary` denormalization to avoid reading
full ~6.4 KB `skillVersions` docs on list pages (~500 GB/day saved).

Phase 4: Split trending leaderboard query to one day at a time to stay
under 32K doc limit. Reduce global stats recount from hourly to daily
since delta tracking handles real-time accuracy (~400 MB/day saved).

Phase 5: Add "Convex Query & Bandwidth Rules" section to AGENTS.md.

Backfill commands (run after deploy):
  bunx convex run maintenance:backfillIsSuspiciousInternal
  bunx convex run maintenance:backfillLatestVersionSummaryInternal

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 18:42:53 +00:00
Peter Steinberger 8f2c86a878 fix: relax moderation false positives for auth skills (#273) (thanks @superlowburn) 2026-03-07 18:37:44 +00:00
SteveandClaude Opus 4.6 06a528c5d9 fix: resolve biome lint errors in moderation test
- Fix import ordering (alphabetical: describe, expect, test)
- Add biome-ignore comments for test mock `as any` casts

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 18:37:44 +00:00
SteveandClaude Opus 4.6 bb1636f255 fix: reduce false positives in suspicious pattern detection for OAuth skills
Fixes #209 by removing overly broad regex patterns that flag legitimate
authentication and payment integration skills.

## Problem

Skills like openbotauth (OAuth identity verification) were being flagged
as suspicious because they mention "token", "api key", or "password" in
their description or metadata. The regex scanner was too aggressive,
catching legitimate auth flows alongside actual threats.

## Solution

Removed three overly broad patterns:
- `suspicious.secrets` - flagged ANY mention of token/api key/password
- `suspicious.crypto` - flagged ANY mention of wallet/seed phrase/crypto

These are common in legitimate skills:
- OAuth skills mention "token" for authentication flows
- API integrations mention "api key" for service credentials
- Database skills mention "password" for connections
- Crypto wallet skills mention "seed phrase" for key management

The LLM evaluator already handles credential proportionality analysis
(section 4 of security prompt). The regex scan should only catch
ACTUAL malicious patterns, not keywords that appear in legitimate contexts.

## What Still Gets Flagged

Kept patterns that catch real threats:
- `suspicious.keyword` - malware, stealer, phishing, keylogger
- `suspicious.webhook` - discord/slack webhooks (data exfiltration)
- `suspicious.script` - curl | bash (arbitrary code execution)
- `suspicious.url_shortener` - bit.ly etc (URL obfuscation)

## Testing

- Added 18 comprehensive tests for pattern detection
- Verified OAuth skills (openbotauth, trello) are NOT flagged
- Verified malicious patterns ARE still flagged
- All 418 existing tests pass

## Security Impact

This does NOT weaken security:
- LLM evaluator still analyzes credential proportionality
- Actual malicious patterns (webhooks, curl|bash, etc) still caught
- Only removes false positives on legitimate auth keywords

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 18:37:44 +00:00
Neerav Makwana 619489a93b fix: debounce URL navigation in skills search to reduce input lag
onQueryChange called navigate() on every keystroke to sync the query
to the URL. Each navigate triggers history.replaceState, TanStack
Router re-evaluation, and useSearch() invalidation, causing multiple
re-renders per keystroke.

Keep setQuery() immediate so the controlled input stays responsive,
but debounce the navigate() call at 220 ms (matching the existing
search-action debounce). Cancel the pending timer when search.q
changes externally (browser back/forward) to prevent the debounced
navigate from overwriting the external URL change.

Made-with: Cursor
2026-03-07 18:35:10 +00:00
Munem Hashmi 0f0086591c fix(ui): persist folder upload input across hydration and re-renders (#58)
Replace the useEffect + useRef approach for setting webkitdirectory/
directory attributes with a ref callback that sets the attributes
every time the input element is mounted. This ensures folder selection
mode persists after page refresh, where React hydration could strip
the non-standard attributes.

Also removes the @ts-expect-error JSX props since the attributes are
now set imperatively via the ref callback.
2026-03-07 18:33:03 +00:00
Peter Steinberger 531dcc8d26 fix: avoid auth crash in slug availability preflight 2026-03-07 18:29:01 +00:00
Tristan Manchester b1c710e1ea fix: add dedicated slug availability preflight 2026-03-07 15:38:01 +00:00
Tristan Manchester a4a9fc62bc fix: address review comments for slug-collision error handling 2026-03-07 15:38:01 +00:00
Tristan Manchester e58fbc8d1f fix: surface slug-collision publish errors and block conflicts preflight 2026-03-07 15:38:01 +00:00
Peter Steinberger b4b4f266a8 fix: align VT engine fallback verdict mapping (#591) (thanks @Shuai-DaiDai) 2026-03-07 15:33:30 +00:00
帅小呆1号 f9d35cc5e6 fix(vt): sync scan status from AV engines when Code Insight unavailable
When VirusTotal returns scan results with AV engine stats but no Code Insight
AI analysis, the skill status was stuck on 'Pending'. This fix adds fallback
logic to check last_analysis_stats (malicious/suspicious/harmless/undetected)
to determine scan status.

Functions updated:
- pollPendingScans: Check AV engines before requesting rescan
- backfillPendingScans: Check AV engines before marking as no results
- rescanActiveSkills: Check AV engines before keeping as pending
- backfillActiveSkillsVTCache: Check AV engines before skipping

Fixes #33435
2026-03-07 15:33:30 +00:00
Peter Steinberger 1892f72a13 test: lock multipart upload timeout behavior (#550) (thanks @MunemHashmi) 2026-03-07 15:31:20 +00:00
Munem Hashmi fdbc184e0a fix(cli): improve publish timeout handling and error messages (#533)
- Increase upload timeout from 15s to 120s for multipart form uploads
  (apiRequestForm and curl-based form upload). Regular API requests
  remain at 15s.
- Improve timeout error message from bare "Timeout" to
  "Request timed out after Ns" so users know what happened.
- Normalize non-Error throws (e.g. DOMException from AbortController
  across runtimes) into proper Error instances, preventing the
  misleading "Non-error was thrown" message from p-retry.
- Preserve the original error as `cause` on the wrapped Error.
2026-03-07 15:31:20 +00:00
Peter Steinberger 18cbfc6788 test: cover auth token forwarding for search/explore (#608) (thanks @artdaal) 2026-03-07 15:29:37 +00:00
Артемов Даниил Алексеевич c821b0ffc4 fix: pass auth token in search and explore commands
cmdSearch and cmdExplore were not calling getOptionalAuthToken()
and did not pass the token to apiRequest, unlike install/update/uninstall.
This caused 'missing API token' errors on registries that require auth
(e.g. private Hermit instances).
2026-03-07 15:29:37 +00:00
Peter Steinberger 9833a5038d docs: note top-level frontmatter metadata parsing fix (#548) (thanks @MunemHashmi) 2026-03-07 15:28:12 +00:00
Munem Hashmi 40a89e02d5 fix: extract requires.env and homepage from top-level frontmatter (#522)
parseFrontmatterLevelDeclarations did not handle the requires block
(env, bins, anyBins, config) or primaryEnv when declared at the
top level of SKILL.md frontmatter without a metadata.openclaw wrapper.
This caused the security scanner to always show "Required env vars: none"
for skills using that format, triggering false-positive suspicious flags.

Also extends the evalCtx.homepage fallback chain to check
clawdis.homepage and clawdis.links.homepage so skills declaring
homepage inside the metadata block are picked up by the scanner.
2026-03-07 15:28:12 +00:00
Timothy JordanandClaude Opus 4.6 bc06dbffd0 chore: add Vercel attribution in footer (#557)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-02 14:06:35 +00:00
Agent f5fa23e0c1 chore: add convex attribution in footer 2026-02-27 23:10:26 +01:00
Vincent Koc e8c3947b21 Merge pull request #547 from openclaw/fix/secret-scan-trufflehog-ref
fix(ci): restore secret scan action reference
2026-02-27 10:39:18 -08:00
Vincent Koc ef26ee0d1f fix(ci): pin trufflehog to published v3.93.6 tag 2026-02-27 10:38:31 -08:00
Vincent Koc 3d006ec663 fix(ci): use resolvable trufflehog action ref 2026-02-27 09:47:17 -08:00
Peter Steinberger 52590e84dd chore: commit local pending changes 2026-02-26 13:03:25 +01:00
Peter Steinberger e3a1c95851 docs(agents): reject skill-in-source PRs; require CLI publish 2026-02-26 13:03:25 +01:00
Mahsum AktaşandPeter Steinberger db4540743f feat(registry): support env vars, dependencies, author, and links in skill manifest (#360)
* feat(registry): support env vars, dependencies, author, and links in skill manifest

Closes #350

Add structured declarations for environment variables, package
dependencies, author identity, and project links to the skill
registry manifest. These fields can be declared in the clawdis
metadata block or as top-level frontmatter keys.

Changes:
- schema: add EnvVarDeclaration, DependencyDeclaration, SkillLinks
  types to ClawdisSkillMetadata
- parser: extract envVars, dependencies, author, links from both
  clawdis block and top-level frontmatter (fallback for skills
  without a clawdis block)
- UI: render env vars with required/optional badges and descriptions,
  dependencies with type/version/links, and project links in the
  skill detail page install card
- security: update evaluator prompt to recognize envVars alongside
  requires.env and primaryEnv
- tests: 7 new test cases covering all declaration formats

* fix(ui): handle unspecified env required state and stable keys

* docs(changelog): credit metadata manifest expansion (#360) (thanks @mahsumaktas)

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-02-26 12:02:25 +00:00
David Abutbulgreptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>Peter Steinberger
0cb0963c2b feat(api): expose security evaluation results (#362)
* feat(api): expose security evaluation results

- Add security field to skill version API responses
- Map llmAnalysis database field to public API format
- Display security info in CLI inspect command
- Enable security tools like clawsec-clawhub-checker to access internal security checks

Security field includes:
- status: clean|suspicious|malicious|pending|error
- hasWarnings: boolean
- checkedAt: timestamp
- model: evaluation model name

Backward compatible: optional field, no breaking changes.

* fix: ensure hasWarnings is always boolean

- Add ?? false to coerce undefined to false when dimensions is undefined
- Fixes Greptile comment: hasWarnings can be undefined instead of boolean
- Ensures SecurityStatusSchema validation passes on client side

* Update convex/httpApiV1/skillsV1.ts

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

* fix(api-cli): harden security inspect output + tests (#362) (thanks @abutbul)

---------

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-02-26 12:01:23 +00:00
David AronchickandPeter Steinberger beae065794 fix(cli): handle missing browser opener gracefully (#163)
* fix(cli): handle missing browser opener gracefully

On headless Linux servers without xdg-open, 'clawhub login' crashes with
ENOENT error. This change catches the error and prints the URL for manual
copy-paste instead of crashing.

Fixes crash on:
- VPS/cloud servers
- Docker containers
- CI environments
- WSL without browser integration

* fix(cli): test browser-opener fallback messaging (#163) (thanks @aronchick)

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-02-26 11:59:24 +00:00
46c5637dae Improve error handling in GitHub import (#512)
* Improve error handling in GitHub import

- Add detailed error messages for storage failures
- Wrap publishVersionForUser in try/catch with helpful context
- Include file size and path in storage error messages
- Guide users to check skill format and slug availability

* fix(github-import): improve failure messaging + coverage (#512) (thanks @vassiliylakhonin)

---------

Co-authored-by: Vassiliy Lakhonin <vassiliy.lakhonin@example.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-02-26 11:30:01 +00:00
Tristan Manchester 2217a327e7 fix(upload): ignore macOS junk files during publish (#526) 2026-02-26 11:28:27 +00:00
45d8f0d217 feat: surface platform/architecture labels on skill cards and API (#499)
* feat: surface platform/architecture labels on skill cards and API

Expose existing `os` and `nix.systems` metadata from skill frontmatter
through the HTTP API and render as compact tags on browse/search views.

- Widen `PublicSkillListVersion` and `SkillListEntry` types to include
  `os` and `nix.systems` fields (data already flows through, types were
  artificially narrow)
- Add `metadata: { os, systems }` to `/api/v1/skills/{slug}` and
  `/api/v1/skills` list responses
- Add `formatSystemsList` and `getPlatformLabels` helpers to map nix
  system strings to human-readable labels (e.g. aarch64-darwin → macOS ARM64)
- Add `platformLabels` prop to `SkillCard`, render as `.tag .tag-compact`
- Show platform labels in both card grid and list views
- Update HTTP API docs with new `metadata` field

Coded by Claude Opus 4.6 (Claude Code)
Reviewed and tested by Jason (@asyncjason)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: remove redundant optional chaining on clawdis

Address greptile-apps review comment — clawdis is already confirmed
truthy by the ternary condition, so `?.` is unnecessary.

Coded by Claude Opus 4.6 (Claude Code)
Reviewed and tested by Jason (@asyncjason)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: include version data in listPublicPageV2 for platform labels

The browse listing passed includeVersion: false, causing latestVersion
to always be null and platform/arch labels to never render.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Jason Separovic <jason@wilma.dog>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 11:27:20 +00:00
Nicolas GreniéandClaude Opus 4.6 add5d83014 docs: add CONTRIBUTING.md and refresh README header (#400)
* docs: add CONTRIBUTING.md and refresh README header

Add a comprehensive CONTRIBUTING.md covering local Convex setup,
env var configuration, GitHub OAuth, JWT keys, database seeding,
CLI development, PR guidelines, and AI-generated code policy.

Refresh the README with a centered logo, quick links row, and
clickable doc references. Condense the Local dev section to link
to CONTRIBUTING.md for full setup details.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: add #clawhub discord channel

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 11:25:51 +00:00
Abdul B.andCursor 9751199231 fix: prevent filtered skills pagination flicker (#372)
* fix: prevent filtered skills pagination flicker

Skip fully filtered-out pages in public skills pagination so highlighted/non-suspicious filtering doesn't return empty pages with more cursor state, which caused repeated loading-more flicker.

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix: rely on inferred Convex paginate result type

Remove the custom runPaginate annotation so TypeScript infers the exact Convex paginate result shape and preserves stronger type-safety.

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-26 11:25:15 +00:00
Luke 883221f8ec fix(cli): clarify owner delete permissions in command text (#417) 2026-02-26 11:23:53 +00:00
Peter Steinberger 3e45d67e0d fix: delete and hide comments from banned users 2026-02-26 05:52:09 +01:00
Peter Steinberger df346aeea9 feat: require 14-day GitHub age for publish and comments 2026-02-26 05:35:44 +01:00
Peter Steinberger 4317369480 fix: stabilize comment moderation tests without env keys 2026-02-26 02:18:00 +01:00
Peter Steinberger e04d16bdae feat: add ai comment scam backfill and auto-ban flow 2026-02-26 02:16:31 +01:00
Peter Steinberger cb66d8d6f3 feat: add abuse-resistant comment reporting 2026-02-26 01:28:22 +01:00
Peter Steinberger 14a2fa80f6 test: lock 5xx retry behavior in HTTP client (#457) (thanks @YonghaoZhao722) 2026-02-25 13:03:16 +00:00
Peter Steinberger ee788b7af3 test: pin Retry-After relative-delay behavior (#421) (thanks @apoorvdarshan) 2026-02-25 12:19:10 +00:00
Apoorv Darshan 3956ca7e55 fix: use relative delay for Retry-After header on 429 responses
Retry-After was set to an absolute Unix epoch timestamp (e.g. 1771404540),
which violates RFC 9110 §10.2.3. Clients treating it as delay-seconds
would wait ~56 years. Now emits the actual seconds until reset.

Closes #407
2026-02-25 12:19:10 +00:00
Peter Steinberger bc37ec7156 fix: complete registry-url migration with test coverage (#486) (thanks @Liknox) 2026-02-25 12:17:30 +00:00
Nazar Koval f07408eb81 test: url formatter 2026-02-25 12:17:30 +00:00
Nazar Koval cdf5baef7f ref: url entity utilization 2026-02-25 12:17:30 +00:00
Nazar Koval 65b154f36c feat: url formatter entity 2026-02-25 12:17:30 +00:00
Peter Steinberger 6ea7a0792d fix: finalize proxy env support + changelog credits (#363) (thanks @kerrypotter) 2026-02-25 12:14:00 +00:00
Jarvis ed961e459f fix: use EnvHttpProxyAgent for proper proxy support
Address review feedback:
- Use undici's EnvHttpProxyAgent instead of ProxyAgent. This properly
  handles HTTPS_PROXY vs HTTP_PROXY per-scheme, respects NO_PROXY,
  and uses connect.timeout instead of requestTls.
- Update docs to mention NO_PROXY support.
2026-02-25 12:14:00 +00:00
Jarvis 8b5f242f73 fix: respect HTTP_PROXY/HTTPS_PROXY environment variables
The CLI creates a custom undici Agent via setGlobalDispatcher() which
overrides any proxy configuration. Since Node.js native fetch (backed
by undici) does not automatically respect HTTP_PROXY/HTTPS_PROXY env
vars, the CLI fails with 'fetch failed' on systems that require a
proxy for outbound connections.

Import ProxyAgent from undici and use it when any of the standard proxy
environment variables (HTTPS_PROXY, HTTP_PROXY, https_proxy, http_proxy)
is set. When no proxy variable is present, behavior is unchanged.

Also adds proxy documentation to cli.md and a troubleshooting entry.
2026-02-25 12:14:00 +00:00
Phineas1500 311bf1a88a fix: guard de-escalation on clean status and fix alreadyFlagged blocking clean verdicts
Address review feedback:
- Guard rescan de-escalation with `status === 'clean'` so pending/unknown
  verdicts don't accidentally clear the suspicious flag
- Fix approveSkillByHashInternal where `alreadyFlagged` in the condition
  `(isSuspicious || alreadyFlagged) && !bypassSuspicious` prevented clean
  verdicts from reaching the isClean branch that properly checks whether
  a different scanner set the flag
2026-02-25 12:09:41 +00:00
Phineas1500 8343f0bb23 fix: clear stale suspicious flag when VT verdict improves to clean
The daily VT rescan updated vtAnalysis on the version but only called
escalateByVtInternal for suspicious/malicious verdicts. When a verdict
improved from suspicious to clean, the version's vtAnalysis was updated
(website shows "Benign") but the skill's moderationFlags kept the stale
"flagged.suspicious" entry (CLI warns "suspicious"). Now the rescan
calls approveSkillByHashInternal to clear the flag on de-escalation.
2026-02-25 12:09:41 +00:00
Peter Steinberger 3b73a09d36 fix: keep denormalized badge reads consistent (#441) (thanks @sethconvex) 2026-02-25 03:00:34 +00:00
Seth RaphaelandClaude Opus 4.6 412249d2d1 fix: use destructuring instead of undefined assignment in removeSkillBadge
Avoids leaving an explicit undefined key in the badges object which
could fail Convex validation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 03:00:34 +00:00
Seth RaphaelandClaude Opus 4.6 480125d859 feat: add backfill for denormalized skill badges, clean up fallback
- Add backfillDenormalizedBadgesInternal: syncs skillBadges table →
  skill.badges field so listing/search reads are correct
- Simplify hydrateResults fallback

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 03:00:34 +00:00
Seth RaphaelandClaude Opus 4.6 0ab1d1e051 fix: restore fallback in hydrateResults for un-backfilled embeddings
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 03:00:34 +00:00
Seth RaphaelandClaude Opus 4.6 85374fa44b perf: eliminate redundant badge reads and add embedding lookup table
- Remove badge table queries from listing and search paths (~200 queries
  per page load eliminated). Use denormalized skill.badges field instead.
- Sync skill.badges when badges are mutated (upsertSkillBadge/removeSkillBadge).
- Add embeddingSkillMap lookup table (~100 bytes/doc) so search hydration
  can skip reading full skillEmbeddings docs (~12KB each with vector).
- Remove dead badge query exports from search module.
- Reduce lexical fallback scan limit from 1200 to 500.
- Add backfill mutation for embeddingSkillMap with graceful fallback.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 03:00:34 +00:00
Seth RaphaelandClaude Opus 4.6 c319e46c8b perf: cap badge query to 10 records per skill
Skills should never have more than a handful of badge records.
Using .take(10) instead of .collect() avoids unbounded reads.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 03:00:34 +00:00
Seth RaphaelandClaude Opus 4.6 f17087d1f4 perf: reduce db bandwidth by splitting stat processing into two frequencies
The 5-minute stat event processor was patching skill documents on every run,
which invalidated listPublicPageV2 reactive queries for ALL subscribers —
causing a thundering herd responsible for ~17 TB (59%) of the 28.65 TB
monthly db bandwidth.

Split into two paths:
- Daily stats (15-min cron): writes to skillDailyStats only, no skill doc patches
- Skill doc sync (6-hour cron): patches skill documents with accumulated deltas

Also skip reading version docs in listPublicPageV2 and search hydration
(version data is only needed on detail pages, not listings).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 03:00:34 +00:00
LK da4469e1e0 fix(rate-limit): skip ip consumption for authenticated requests 2026-02-25 02:56:20 +00:00
LK 42a4648475 refactor(http): parse rate-limit headers once per error 2026-02-25 02:56:20 +00:00
Lukeandgreptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> edc8ec274b Update docs/http-api.md
fix header precedence in docs to match code

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2026-02-25 02:56:20 +00:00
LK 15b1a05fee fix(rate-limit): make limiter auth-aware for shared proxy ips 2026-02-25 02:56:20 +00:00
LK 1e216c03c6 fix(rate-limit): standardize retry-after and improve 429 ux 2026-02-25 02:56:20 +00:00
ɐʞsǝs 0a0b2e6cb1 pin the th version for better stability / security 2026-02-25 02:50:17 +00:00
ɐʞsǝsandgreptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> ac6770acff Update .github/workflows/secret-scan.yml
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2026-02-25 02:50:17 +00:00
ɐʞsǝs bfc87e5932 refined message to give better guidance 2026-02-25 02:50:17 +00:00
ɐʞsǝs 3e1bd19a45 Add secret scanning workflow using TruffleHog
This ensures that a given PR will immediately error on vulnerable, live credentials found by trufflehog
2026-02-25 02:50:17 +00:00
Peter Steinberger d71b747d1c fix: harden VT fallback activation rules (#300) (thanks @superlowburn) 2026-02-25 02:48:57 +00:00
Steve 4d211fcf73 fix: check moderation reason before activating skills
- Prevent activating skills with quality.low moderation reason
- Add skill lookup and moderationReason check in 3 locations where skills are activated
- This ensures quality gate quarantine is not bypassed when VT scan is unavailable or stale

Resolves review comments on #300
2026-02-25 02:48:57 +00:00
SteveandClaude Opus 4.6 bc5ab8f3e1 fix: activate skills when VT scan is unavailable or stales out
Published skills stay permanently hidden in search when VirusTotal
cannot produce a verdict. Three code paths leave moderationStatus as
'hidden' with no recovery:

1. VT_API_KEY not configured — scan skipped, skill stays hidden
2. VT hash not found after 10 poll attempts — marked stale, stays hidden
3. VT hash found but no Code Insight after 10 attempts — same

Fix: call setSkillModerationStatusActiveInternal in all three paths so
the skill becomes searchable. If VT later returns a malicious verdict,
approveSkillByHashInternal will correctly re-hide and flag it.

Closes #139

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 02:48:57 +00:00
Peter Steinberger bb528ea4b9 fix: dedupe OpenAI response parsing (#502) (thanks @ianalloway) 2026-02-25 02:46:35 +00:00
Nimrod Gutman 464a04c1e5 fix(vt): prevent pending scan starvation and retry unresolved results (#468)
* fix(vt): prevent pending scan starvation and retry unresolved results

* fix(vt): remove exhaustive pending-scan clamp
2026-02-23 21:26:47 -06:00
Peter Steinberger f4f8e7276f docs: clarify skill delete/undelete permissions 2026-02-18 17:24:09 +01:00
Peter Steinberger 3ccf2e05f5 fix: make users reclaim transfer root slug ownership in place 2026-02-18 17:10:08 +01:00
Shadow 0ee2872f5b fix: prune deleted skill backups 2026-02-17 11:02:57 -06:00
Peter Steinberger 5112d1b215 docs: cross-link README and vision 2026-02-17 17:35:28 +01:00
Peter Steinberger 275a170f15 docs: clarify MCP support policy in vision 2026-02-17 17:33:54 +01:00
Peter Steinberger 17aa24baf9 docs: refine vision priorities and security stance 2026-02-17 17:31:24 +01:00
Peter Steinberger f01476757a fix(ui): remove upvote-style metric and clarify installs icon 2026-02-17 15:08:47 +01:00
Peter Steinberger fe011d00fd test(e2e): update search menu route expectation 2026-02-17 15:08:42 +01:00
Peter Steinberger 30ae099825 fix: avoid paginated fallback in skills count query (#76) 2026-02-17 00:32:22 +01:00
Peter Steinberger 812641342d fix: harden /skills count when globalStats is missing (#76) 2026-02-17 00:25:46 +01:00
Peter Steinberger 88848c224c fix: keep public skill counts consistent after moderation/visibility changes (#76) (thanks @rknoche6) 2026-02-17 00:25:46 +01:00
c107adabac display total skills count on /skills page (#76)
Co-authored-by: rknoche <richard.knoche@holidaycheck.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-02-17 00:25:46 +01:00
Peter Steinberger 38c4a673da Revert "display total skills count on /skills page (#76)" (#359)
This reverts commit 89933951f5.
2026-02-16 17:47:19 +01:00
89933951f5 display total skills count on /skills page (#76)
Co-authored-by: rknoche <richard.knoche@holidaycheck.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-02-16 16:06:45 +01:00
Peter Steinberger e3523093b1 chore: bump clawhub to 0.7.0 2026-02-16 06:00:49 +01:00
Peter Steinberger 1faf3ee5ed test: boost cli http and user branch coverage 2026-02-16 05:58:20 +01:00
Peter Steinberger 286c76a05f test: add even more user auth and ranking regressions 2026-02-16 05:44:12 +01:00
Peter Steinberger 5745b5a096 test: add more users search and auth regressions 2026-02-16 05:40:30 +01:00
Peter Steinberger a060ae3b15 test: expand users list and search coverage 2026-02-16 05:33:44 +01:00
Peter Steinberger 77982c5d8e test: harden users search coverage for malformed data 2026-02-16 05:31:44 +01:00
Peter Steinberger 4cb84df36a fix: bound users list scans for management 2026-02-16 05:19:05 +01:00
Peter Steinberger d82c8f66c2 test: add regressions for pagination edge cases 2026-02-16 05:09:05 +01:00
Peter Steinberger 43fd834d23 refactor: simplify pagination + compact stat formatting 2026-02-16 05:07:18 +01:00
Peter Steinberger 9b2fc48a55 fix: harden listPublicPageV2 cursor recovery 2026-02-16 05:03:57 +01:00
Peter Steinberger a4dad5dc9d refactor: split skills page model and centralize stat rendering 2026-02-16 04:46:13 +01:00
Peter Steinberger 84830a268a feat: compact-format skill and soul stats 2026-02-16 04:35:01 +01:00
Peter Steinberger 37ef3eb7c5 test: add listPublicPageV2 regression coverage 2026-02-16 04:32:15 +01:00
Peter Steinberger 7f987fcc26 fix: prevent skills pagination dead-end and flicker (#339) (thanks @Marvae) 2026-02-16 04:24:24 +01:00
Hongwei Ma a0ea45c9a6 test: add coverage for search empty state 2026-02-16 04:24:24 +01:00
Hongwei Ma 1f5a782ecd fix: show empty state immediately for search results 2026-02-16 04:24:24 +01:00
Hongwei Ma c300d4b447 test: add edge case coverage for LoadingMore with empty results 2026-02-16 04:24:24 +01:00
Hongwei Ma c3a6cd7356 fix: keep load more visible during pagination
Prevents flicker when loading more pages by showing the load more
area during LoadingMore status instead of hiding it completely.
2026-02-16 04:24:24 +01:00
Hongwei Ma b75e25c4d6 fix: prevent loading state flicker on skills page
- Show 'Loading skills…' instead of 'No skills match' when pagination is not exhausted
- Hide 'Scroll to load more' when results are empty
- Add tests for both cases
2026-02-16 04:24:24 +01:00
Peter Steinberger 54383665d8 refactor: split skill detail page and optimize lazy loading 2026-02-16 03:52:24 +01:00
+22 697cc1a08f feat: add skill file viewer (#44)
* fix: return proper HTTP status codes for delete/undelete errors

The delete and undelete handlers for skills and souls were catching all
errors and returning 401 Unauthorized, even for errors like:
- 'Skill not found' (should be 404)
- 'Forbidden' (should be 403)
- Other validation errors (should be 400)

This change updates the error handling to return appropriate status codes:
- 401 Unauthorized: authentication failures
- 403 Forbidden: authorization failures (not owner/admin/moderator)
- 404 Not Found: skill/soul/user not found
- 400 Bad Request: other errors with descriptive message

Fixes #34

* fix(cli): use proper Error objects in abort timeouts

When AbortController.abort() receives a string instead of an Error,
the string itself is thrown. pRetry then wraps it in a confusing
message: 'Non-error was thrown: Timeout'

Changed all 3 occurrences in http.ts:
- apiRequest (line 57)
- apiRequestForm (line 106)
- downloadZip (line 141)

Now timeouts will surface as proper Error objects with clear messages.

* test: add e2e test for delete error handling

Verifies that deleting a non-existent skill returns a proper 'not found'
error instead of a generic 'Unauthorized' message.

* fix: use Error for timeout abort in e2e helper

* feat: add skill file viewer

* fix: prevent file viewer state updates after unmount

* feat: add ban reasons to moderation

* chore: release 0.6.0

* docs: reset changelog for next release

* feat: add LLM security evaluation at publish time

Add OpenClaw LLM-based security evaluator that runs alongside VirusTotal
when skills are published. Reads SKILL.md prose, metadata, install specs,
and file manifest, then assesses coherence across 5 dimensions to catch
social engineering vectors that VT/regex miss (e.g. instruction-only skills
with no code files).

- convex/lib/securityPrompt.ts: system prompt, message assembly, response
  parsing, injection pattern detection
- convex/llmEval.ts: evaluateWithLlm action, evaluateBySlug convenience
  action, backfillLlmEval for existing skills
- convex/schema.ts: llmAnalysis field on skillVersions
- convex/skills.ts: updateVersionLlmAnalysisInternal mutation,
  getActiveSkillBatchForLlmBackfillInternal query, defense-in-depth
  multi-scanner flag merging in approveSkillByHashInternal
- convex/lib/skillPublish.ts: schedule LLM eval alongside VT scan
- SkillDetailPage.tsx: OpenClaw row, LlmAnalysisDetail expandable
  component with 5 dimension rows, guidance panel, findings section
- styles.css: analysis detail styles from mockup

* fix: collapse OpenClaw analysis by default, fix row spacing, switch to gpt-5-mini

* fix: add retry with backoff for OpenAI rate limits, fix JSON mode requirement

* fix: increase max_output_tokens for reasoning model, fix backfill error retry

* feat: recognize metadata.openclaw as valid frontmatter namespace

* fix: eval assembler falls back to metadata.openclaw for requirements

* feat: evaluator reads all file contents, not just SKILL.md

Reads all files from storage and includes their full source in the eval
prompt so the LLM can detect malicious code hidden behind clean READMEs.
Injection detection now scans all content. Per-file cap 10K chars, total
cap 50K chars.

* feat: add skill metadata docs, suspicious appeal banner for owners

- Document full frontmatter metadata reference in docs/skill-format.md
- Add metadata section + quick example to README
- Show appeal message on suspicious skills (owner-only) linking to GitHub issues
- Accept metadata.openclaw alias in README docs
- Re-evaluate all skills with full file content reading (backfill in progress)

* fix: trailing comma tolerance in JSON metadata, tone down persistence flags

- Strip trailing commas in frontmatter JSON before parsing (silent failure fix)
- Stop flagging disable-model-invocation default as a concern (it's the normal default)
- Stop flagging skills configuring themselves as privilege escalation
- Add MITRE ATLAS AML.T0051 context for when autonomous invocation actually matters
- Show actual defaults in assembled eval message instead of "not set"

* chore: fix lint issues (#213)

* perf: lazy-load diff viewer (Monaco) (#212)

* chore: fix review comments

* fix: VT scan sync race condition + LLM-first moderation model

VT no longer overwrites LLM moderation verdicts. LLM is the primary
moderation authority; VT only escalates (hides + flags) for malicious/
suspicious content via new escalateByVtInternal mutation. Stale VT polls
write vtAnalysis marker instead of overwriting moderationReason. Query
pools expanded to include LLM-evaluated skills awaiting VT results.
Ban message now references malicious skills and security@openclaw.ai.

* fix: handle GitHub API rate limits in account age check (#246)

* fix: handle GitHub API rate limits in account age check

The GitHub account lookup uses unauthenticated requests (60 req/hr
per IP). Since this runs server-side in Convex, all users share the
same IP and quickly exhaust the rate limit, causing "GitHub account
lookup failed" errors during skill publish.

- Detect 403/429 responses and surface a clear rate-limit message
- Support optional GITHUB_TOKEN env var for authenticated requests
  (5,000 req/hr)

Fixes #155

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: stabilize GitHub account gate tests and docs

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>

* docs: thank @superlowburn for PR #246

* fix: prioritize relevant skills in search

* fix: add lexical fallback for skill search recall

* test: add search fallback coverage

* test: fix search test handler typing

* fix(http): remove allowH2 from undici Agent — causes fetch failed on Node.js 22+ (#245)

* Remove allowH2 option from global dispatcher

fix/remove-allowH2-undici-node22-compat

* fix(http): remove allowH2 from e2e dispatcher

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>

* docs: add 0.6.1 unreleased changelog from post-0.6.0 commits

* fix: allow soft-deleted users to re-authenticate

Fixes Issue #32 where users who soft-deleted their accounts were unable to sign back in because the re-auth logic was only triggering when an existingUserId was passed by the auth provider, which doesn't happen during a standard fresh login flow.

* test: update auth tests for direct deletedAt check

* fix: restore existingUserId check for type safety

* fix: update tests to include required existingUserId parameter

* fix: resolve final lint error in auth tests

* fix: ensure reactivation only matches soft-deleted user (prevents bypass)

* fix: allow re-auth when existingUserId is null

* fix: use valid crons.interval and set to 1 minute

* test: add missing coverage for fresh-login reactivation and identity mismatch guard

* fix: scope reauth fix; keep banned users blocked (#177) (thanks @tanujbhaud)

* fix: include comment deltas in action-based stat processing & add stats reconciliation (#194)

Bug 1: applyAggregatedStatsAndUpdateCursor was missing 'comments' in both
the guard condition and the applySkillStatDeltas call. This caused comment
count deltas to be silently dropped during cron-based event processing,
while stars/downloads/installs were processed correctly.

Bug 2: No reconciliation mechanism existed. If events were missed due to
cursor issues or processing errors, skill stats (stars, comments) would
remain stale with no way to recover. Added reconcileSkillStarCounts
maintenance mutation that counts actual records in the stars and comments
tables and patches any out-of-sync skill stats.

Fixes #193

Co-authored-by: Limitless2023 <limitless@users.noreply.github.com>

* fix: prevent horizontal overflow from long code blocks in skill pages (#183)

* Fix: Prevent horizontal overflow from long code blocks in skill pages

- Add max-width: 100% to .file-list-body and .file-row
- Prevents page-wide overflow when skills contain long code examples
- Markdown pre blocks already have overflow-x: auto, but parent containers were expanding infinitely
- Fixes issue where skills with 400+ char lines (e.g. browser automation commands) cause horizontal scrolling

Affected: Skills with long inline code in markdown (browser act commands, etc.)

* fix: add max-width to .file-list container to prevent overflow

- Also ensures .file-list-body constraint is inherited properly
- Prevents long code blocks from expanding file list container

* fix: add max-width to all markdown containers and pre tags

- Add max-width: 100% to .markdown, .tab-body, .markdown pre
- Ensures code blocks are constrained and show horizontal scrollbar
- Prevents content from expanding parent containers beyond viewport

* fix: add overflow-x to parent containers for horizontal scroll

Adds overflow-x: auto to .skill-detail-stack, .tab-card, and .tab-body
to ensure long code blocks are scrollable within the content area
instead of causing page-wide horizontal overflow.

Fixes horizontal overflow issue on skill pages with long code examples
(e.g., browser automation commands with 400+ character lines).

Tested on zepto skill page - page now stays within viewport (1200px)
and code blocks are accessible via horizontal scrollbar in tab area.

* docs: note code-block overflow fix in changelog (#183) (thanks @bewithgaurav)

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>

* chore(release): 0.6.1

* fix: prevent infinite loading loop on skills page  (#90)

* fix: prevent infinite loading loop on skills pageAdd isLoadingMore guard to IntersectionObserver useEffect to preventcontinuous WebSocket queries when user is idle at bottom of page.The observer now won't set up while a request is in progress, breakingthe infinite loop cycle.Fixes: Related to #89

* fix: prevent repeated skills auto-load requests (#90) (thanks @xcqtnr)

* fix: resolve PR merge conflicts and keep observer regression test (#90) (thanks @xcqtnr)

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>

* fix(cli): secure config file permissions (#164)

* fix(cli): secure config file permissions and reduce duplication

Security:
- Config files now created with 0600 permissions (owner read/write only)
- Config directories created with 0700 permissions
- Protects API tokens from other users on shared systems

Maintainability:
- Extract resolveConfigPath() helper to reduce code duplication
- Same legacy fallback logic (clawhub -> clawdhub) now in one place

* fix(cli): tolerate unsupported chmod errors for config

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>

* fix: make /search host-aware in SSR (#257)

* fix: make /search mode-aware

Notes:\n- Medium: /search now depends on getSiteMode() during beforeLoad. On server-side routing, if VITE_SITE_MODE isn’t set and VITE_SOULHUB_SITE_URL is set (as in .env.local), getSiteMode() will resolve to souls and redirect /search to / even on the ClawdHub deployment. This is a regression risk vs the old always-/skills redirect. Confirm deployment envs guarantee correct mode. src/routes/search.tsx:9-31

* fix: make /search host-aware in SSR

* chore: fix lint and route tree for /search route

---------

Co-authored-by: Sash Zats <sash@zats.io>

* fix(vt): explicit return types and missing undici dependency (#255)

* fix(vt): explicit return types and missing undici dependency

Refactor action handlers in convex/vt.ts to use explicit return types, resolving circular type inference (TS7022). Also add undici to devDependencies for E2E tests.

* fix: add root undici devDependency for e2e (#255) (thanks @tanujbhaud)

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>

* Fix initial skill sorting (#92)

* fix: initial skill sorting

* chore: update unit test

* fix: use correct indexes for skill sorting

* chore: cleanup

* fix: land skill sorting update (#92) (thanks @bpk9)

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>

* fix: harden download rate limiting and dedupe (#43) (thanks @regenrek)

- add download-specific rate limit tier\n- add per-IP/day dedupe + daily pruning\n- keep moderation gating + deterministic zips\n- add optional forwarded-IP trust via TRUST_FORWARDED_IPS

* fix: harden skill listing and rate limiting under load

* fix: replace skill report prompt with modal

* fix: add skill publish anti-spam caps and quarantine

* docs: add git local-branch cleanup fallback

* fix: enforce quality gate and trust-tier spam checks

* fix: prevent autobanned users from self-reactivating

* test: expand reauth ban regression coverage

* feat: add empty-skill cleanup backfill with ban nominations

* fix: make empty-skill cleanup resumable

* feat: add non-suspicious skills filter toggle

* style: polish selected states in skills toolbar

* feat: default skills sort to downloads

* fix: enforce downloads as canonical default skills sort

* fix: force canonical downloads sort in skills browse mode

* fix: bypass suspicious flags for privileged owners and polish comment delete UI

* fix: add privileged-owner suspicious flag reconciler

* fix: force auth redirects and registry to canonical clawhub host

* feat: auto-generate missing skill summaries

* fix: make skill summary backfill resumable

* feat: add self-scheduling skill summary backfill job

* perf: short-circuit empty skill summary generation

* style: polish upload page layout and actions

* feat: show popular non-suspicious skills on homepage

* fix: normalize legacy skill stats to prevent homepage crash

* fix: render homepage popular cards from nested skill entries

* style: refine global UI theme, borders, and spacing

* fix: resolve search timeout and improve skills page UI alignment (#53)

* fix: resolve search timeout and improve skills page UI alignment

- Added a 10s timeout to OpenAI embedding requests to prevent hanging searches.
- Fixed a TypeScript error in search.ts regarding entry hydration.
- Restructured skills page layout and CSS to ensure consistent alignment between the search toolbar and skill cards.

* fix: resolve search timeout and improve skills page UI alignment

- Added a 10s timeout to OpenAI embedding requests to prevent hanging searches.
- Fixed a TypeScript error in search.ts regarding entry hydration.
- Restructured skills page layout and CSS to ensure consistent alignment between the search toolbar and skill cards.

* style: format skills index layout block

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>

* docs: thank @GhadiSaab for #53

* style: shift UI palette to cool blue tones

* style: remove remaining warm accent literals

* style: darken hero primary CTA in dark mode

* fix: show stars in popular skill cards

* fix: simplify skills CTA label

* fix: dedupe download metrics hourly by user-or-ip identity (#278)

* style: restore brown palette and dark-mode CTA tone

* fix(comments): stop updating skills.updatedAt on comment add/remove (#55)

* fix(comments): stop updating skills.updatedAt on comment add/remove

Comments are not content changes, so they shouldn't invalidate skill
list queries that depend on updatedAt. This reduces query invalidation
when users add or remove comments.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* test(comments): add updatedAt invalidation regression coverage

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>

* refactor(comments): extract handlers and harden mutation tests

* feat: make account deletion irreversible and migrate lint to oxlint

* chore: add oxfmt config

* fix(cli): throw Error for all timeout aborts (#283)

* fix(cli): throw Error on timeout aborts

Users have seen an elevated number of:\n  clawdhub search image\n  ✖ Non-error was thrown: "Timeout". You should only throw errors.\n\nInvestigation shows we were aborting with a string instead of an Error. Switching to controller.abort(new Error('Timeout')) makes retries/formatting treat it as a real error and clears the message.\n\nExample after change:\n  clawdhub search image\n  table-image v1.0.0  Table Image  (0.332)\n  nano-banana-pro v1.0.1  Nano Banana Pro  (0.319)\n  vap-media v1.0.1  AI media generation API - Flux2pro, Veo3.1, Suno Ai  (0.281)\n  clawdbot-meshyai-skill v0.1.0  Meshy AI  (0.276)\n  venice-ai-media v1.0.0  Venice AI Media  (0.274)\n  daily-recap v1.0.2  Daily Recap  (0.260)\n  openai-image-gen v1.0.1  Openai Image Gen  (0.260)\n  bible-votd v1.0.1  Bible Verse of the Day  (0.248)\n  orf v1.0.1  ORF  (0.224)\n  smalltalk v1.0.1  Smalltalk  (0.161)

* fix(http): wrap fetch calls in try-finally to prevent timer leaks

Addresses Vercel review comment: clearTimeout was not called on error paths when fetch throws an exception.

* fix(cli): unify timeout abort handling

---------

Co-authored-by: Sash Zats <sash@zats.io>

* refactor(cli): centralize HTTP status errors and timeout tests (#286)

* fix: keep new skill versions pending until VT verdict

* style: remove residual blue accents and warm base palette

* fix: add retry logic for OpenAI embedding API failures (#272)

* fix: add retry logic for OpenAI embedding API failures

Fixes #149

When importing or uploading skills, the OpenAI embedding API call could
fail with transient errors (rate limits, timeouts, network issues),
causing the entire import to fail with a generic "Server Error".

This adds retry logic with exponential backoff (1s, 2s, 4s delays):
- Retries on 429 (rate limit) and 5xx server errors
- Retries on network/fetch errors
- Logs warnings for debugging
- Max 3 retries before failing with clear error message

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: correct retry count and broaden network error catch

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: address retry loop off-by-one, broaden error catch, preserve original error

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: harden embeddings retry semantics

* style: format embeddings retry changes

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>

* fix: sync handle on user ensure

* fix: sync handle on user ensure (#293) (thanks @christianhpoe)

* feat: improve moderation/admin UX + language-aware quality gate

- API: owner-visible responses for hidden/soft-deleted skills\n- Admin: add unban user mutations + docs\n- Quality: Intl.Segmenter tokenization + CJK signal to reduce false rejects\n- Jobs: skill-stat-events interval 15m -> 5m\n- Tests: add coverage for owner-visible states + non-Latin docs\n- Changelog: add Unreleased entry

* refactor: simplify user ensure updates

* fix(cors): complete CORS + tokenized CLI reads (#296)

* fix(cors): add Access-Control-Allow-Origin headers to API and downloads

* fix: add CORS to error/raw paths & add CLI install auth

* fix: add OPTIONS handler for CORS preflight

* fix(cors): complete CORS + tokenized CLI reads

* test(cli): fix config mock typing

---------

Co-authored-by: Grenghis-Khan <63885013+Grenghis-Khan@users.noreply.github.com>

* refactor: centralize CORS + CLI auth token (#297)

* refactor(convex): centralize CORS headers

* refactor(cli): centralize auth token lookup

* fix(skills): keep global sorting across pagination (#98)

* fix: initial skill sorting

* chore: update unit test

* fix: use correct indexes for skill sorting

* chore: cleanup

* fix(skills): preserve server order for paginated sorting

* chore(lint): apply biome formatting fixes

* chore(convex): bump tsconfig lib to ES2022

* fix(skills): add deterministic tie-breaker for search sorting

* fix(skills): stable sorting across pagination (#98) (thanks @CodeBBakGoSu)

---------

Co-authored-by: Brian Kasper <bkasperr@gmail.com>
Co-authored-by: knox-glorang <knox@glorang.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>

* chore: drop convex-helpers (#302)

* perf: batch tag resolution to reduce action→query round-trips

- Add getVersionsByIds batch query to skills.ts and souls.ts
- Replace per-item tag resolution with batch resolution in httpApiV1.ts
- Reduces N action→query round-trips to 1 for list endpoints

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: add null guard and short-circuit for empty tags

- Short-circuit when no version IDs to resolve
- Add null coalescing for runQuery response
- Fixes potential crash when tags are empty or query returns null

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* refactor: batch resolve tags in v1 API (#112) (thanks @mkrokosz)

* fix: handle duplicate Convex Auth user records in publish ownership check (#180)

* fix: handle duplicate user records in publish ownership check

* fix: heal publish ownership via GitHub auth identity

---------

Co-authored-by: Emmet Brown <emmet@Emmets-Mac-mini.local>
Co-authored-by: Peter Steinberger <steipete@gmail.com>

* fix: gate publish by immutable GitHub account ID

* refactor: simplify GitHub age gate cache

* fix(api): centralize v1 soft-delete error mapping

* chore(cli): align http client with main

* test(api): cover v1 soft-delete error mapping

* test(api): reposition soft-delete mapping test

* fix: default to CF-only client IP parsing

* docs: changelog credit + v1 delete status codes

* fix(cli): clarify logout only affects local config (#166)

* fix(cli): clarify logout only affects local config

Users may assume 'clawhub logout' revokes their token everywhere.
In reality, the token remains valid on the server until explicitly
revoked in the web UI. This could be a security concern on shared
machines.

Update the message to set correct expectations.

* fix(cli): clarify logout revocation scope (#166) (thanks @aronchick)

* chore: sync changelog for merge (#166) (thanks @aronchick)

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>

* feat: anti-squatting protection, backup restore, and ban flow improvements (#298)

* feat: anti-squatting protection, backup restore, and ban flow improvements

- Add `reservedSlugs` table with 90-day cooldown to prevent slug squatting
  after skill deletion. Hard-delete finalize phase reserves slugs for the
  original owner; `insertVersion` blocks non-owners during cooldown.

- Change ban flow from hard-delete to soft-delete: `banUserWithActor` now
  sets `moderationReason: 'user.banned'` and syncs embedding visibility.
  `unbanUserWithActor` restores all ban-hidden skills and releases slug
  reservations automatically.

- Align `autobanMalwareAuthorInternal` with the same soft-delete + embedding
  visibility pattern so unban recovery works uniformly.

- Add admin `reclaimSlug` / `reclaimSlugInternal` mutations for reclaiming
  squatted slugs, with audit logging.

- Add GitHub backup restore system (`githubRestore.ts`,
  `githubRestoreMutations.ts`, `githubRestoreHelpers.ts`) that reads from
  the `clawdbot/skills` backup repo and re-creates skill records. Squatter
  eviction runs synchronously in the same transaction as restore to avoid
  async race conditions.

- Add `POST /api/v1/users/restore` and `POST /api/v1/users/reclaim` admin
  HTTP endpoints for bulk operations.

- Add `trustedPublisher` flag on users; trusted publishers bypass the
  `pending.scan` auto-hide for new skill publishes.

- Add `setTrustedPublisher` / `setTrustedPublisherInternal` admin mutations.

Addresses: slug squatting prevention, skill backup/restore, ban recovery,
and trusted publisher workflow improvements.

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix: harden restore/reclaim + ban flow (#298) (thanks @autogame-17)

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>

* refactor: post-#298 cleanup (#313)

* refactor: consolidate slug + embedding helpers

* refactor: batch ban/unban skill updates

* refactor: report batched ban/unban scheduling

* fix: unblock package typecheck

* refactor: split httpApiV1 + consolidate moderation batches (#315)

* refactor: dedupe v1 file response + unify embedding patches (#316)

* Devin/1771112524 skill metadata update (#312)

* fix: sync GitHub profile on login to handle username renames (#303)

When a user renames their GitHub account, the stored username becomes stale
and causes 'GitHub account lookup failed' errors during skill publishing.

This fix:
- Adds syncGitHubProfile function that fetches current profile using the
  immutable GitHub numeric ID
- Adds syncGitHubProfileInternal mutation to update user's name, handle,
  displayName, and image when they change
- Schedules the sync as a background action on every login via
  afterUserCreatedOrUpdated callback

The sync is best-effort (silently fails if GitHub API unavailable) since
it's not on the critical path. It only updates fields if the username
has actually changed.

Fixes #303

Co-Authored-By: Ian Alloway <adapter_burners.1y@icloud.com>

* fix: allow updating skill summary/description on subsequent publishes (#301)

Previously, the skill summary was only extracted from metadata.description
in the SKILL.md frontmatter. This change also checks for a direct
'description' field in the frontmatter, ensuring that users can update
their skill description by modifying either location.

The fix prioritizes the new description from the current publish over
the existing skill summary, allowing updates to be reflected correctly.

Fixes #301

Co-Authored-By: Ian Alloway <adapter_burners.1y@icloud.com>

* fix: throttle GitHub profile sync

* feat: show skill owner avatars

* fix: avoid nested owner links

* refactor: centralize profile sync + owner lookup

* docs: changelog for #312 (thanks @ianalloway)

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>

* style: polish markdown code blocks

* feat: show skill owner avatars on home + lists

* feat: sync GitHub profile name

* feat: improve skill card meta layout

* fix: make ghost buttons look like buttons

* fix: match skill hero cta widths

* fix: prefer $HOME over os.homedir() for path resolution (#299)

* fix: prefer $HOME over os.homedir() for path resolution

os.homedir() reads from /etc/passwd which can return a stale path
after a Linux user rename (usermod -l). Prefer the $HOME environment
variable which reflects the current session.

Closes #82

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: normalize resolveHome output

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>

* UI: allow copying security scan summary text (#322)

* fix(ui): prevent analysis toggle when selecting summary (#324)

* feat: add uninstall command for skills (#241)

* feat: add uninstall command for skills

Implements `clawhub uninstall <slug>` to properly remove installed skills.

Changes:
- Added cmdUninstall function in skills.ts
- Validates skill is installed before removal
- Removes skill directory and lockfile entry
- Supports --yes flag to skip confirmation prompt
- Added comprehensive test coverage

Closes #221

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: require --yes in non-interactive mode and update lockfile before rm

Address review feedback:
- Fail with "Pass --yes (no input)" when running non-interactively
  without --yes flag, matching delete/star/unstar/moderation commands
- Update lockfile before removing directory to avoid inconsistent state
  if rm succeeds but writeLockfile fails

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: harden skill uninstall flow (#241) (thanks @superlowburn)

* docs: document uninstall CLI command (#241) (thanks @superlowburn)

* test: fix cmdUninstall mock typing (#241) (thanks @superlowburn)

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>

* feat: add skill file viewer

* fix: prevent file viewer state updates after unmount

* fix: lazy-load skill file viewer (#44) (thanks @regenrek)

---------

Co-authored-by: Sergiy Dybskiy <s@serg.tech>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
Co-authored-by: theonejvo <theonejvo@users.noreply.github.com>
Co-authored-by: Vignesh <vigneshnatarajan92@gmail.com>
Co-authored-by: Steve <superlowburn@gmail.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: DColl <david.coll.78@gmail.com>
Co-authored-by: Tanuj Bhaud <tanujbhaud@gmail.com>
Co-authored-by: Limitless <127183162+Limitless2023@users.noreply.github.com>
Co-authored-by: Limitless2023 <limitless@users.noreply.github.com>
Co-authored-by: Gaurav Sharma <sharmag@microsoft.com>
Co-authored-by: xcqtnr <xcqtnr0.0@gmail.com>
Co-authored-by: David Aronchick <aronchick@gmail.com>
Co-authored-by: Sash Zats <sash@zats.io>
Co-authored-by: Tanuj Bhaud <128238320+tanujbhaud@users.noreply.github.com>
Co-authored-by: Brian Kasper <brian@bkasper.com>
Co-authored-by: ghadi saab <ghadisaab21@gmail.com>
Co-authored-by: sethconvex <seth@convex.dev>
Co-authored-by: ChristianHPoe <chpoensgen@me.com>
Co-authored-by: Grenghis-Khan <63885013+Grenghis-Khan@users.noreply.github.com>
Co-authored-by: CodeBBakGoSu <127713112+CodeBBakGoSu@users.noreply.github.com>
Co-authored-by: Brian Kasper <bkasperr@gmail.com>
Co-authored-by: knox-glorang <knox@glorang.com>
Co-authored-by: Matthew Krokosz <mattkrokosz@gmail.com>
Co-authored-by: emmet-bot <emmet@universaleverything.io>
Co-authored-by: Emmet Brown <emmet@Emmets-Mac-mini.local>
Co-authored-by: autogame-17 <166480271+autogame-17@users.noreply.github.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Ian Alloway <adapter_burners.1y@icloud.com>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: CleanApp <165804662+borisolver@users.noreply.github.com>
2026-02-16 03:29:30 +01:00
652beef9c1 feat: add uninstall command for skills (#241)
* feat: add uninstall command for skills

Implements `clawhub uninstall <slug>` to properly remove installed skills.

Changes:
- Added cmdUninstall function in skills.ts
- Validates skill is installed before removal
- Removes skill directory and lockfile entry
- Supports --yes flag to skip confirmation prompt
- Added comprehensive test coverage

Closes #221

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: require --yes in non-interactive mode and update lockfile before rm

Address review feedback:
- Fail with "Pass --yes (no input)" when running non-interactively
  without --yes flag, matching delete/star/unstar/moderation commands
- Update lockfile before removing directory to avoid inconsistent state
  if rm succeeds but writeLockfile fails

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: harden skill uninstall flow (#241) (thanks @superlowburn)

* docs: document uninstall CLI command (#241) (thanks @superlowburn)

* test: fix cmdUninstall mock typing (#241) (thanks @superlowburn)

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-02-15 16:03:06 +01:00
Peter Steinberger 146df7b166 fix(ui): prevent analysis toggle when selecting summary (#324) 2026-02-15 14:42:03 +01:00
CleanApp 8f23eb5ee8 UI: allow copying security scan summary text (#322) 2026-02-15 14:39:13 +01:00
30b263c27c fix: prefer $HOME over os.homedir() for path resolution (#299)
* fix: prefer $HOME over os.homedir() for path resolution

os.homedir() reads from /etc/passwd which can return a stale path
after a Linux user rename (usermod -l). Prefer the $HOME environment
variable which reflects the current session.

Closes #82

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: normalize resolveHome output

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-02-15 14:26:00 +01:00
Peter Steinberger 10b704278a fix: match skill hero cta widths 2026-02-15 05:28:59 +01:00
Peter Steinberger a289f9cbd9 fix: make ghost buttons look like buttons 2026-02-15 05:27:55 +01:00
Peter Steinberger 97d68a1be5 feat: improve skill card meta layout 2026-02-15 05:26:08 +01:00
Peter Steinberger 57e0d39cdc feat: sync GitHub profile name 2026-02-15 05:26:03 +01:00
Peter Steinberger 1c033868e7 feat: show skill owner avatars on home + lists 2026-02-15 05:06:23 +01:00
Peter Steinberger 4532366009 style: polish markdown code blocks 2026-02-15 05:00:18 +01:00
Ian AllowayDevin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>Peter Steinberger
8e9fa44fc2 Devin/1771112524 skill metadata update (#312)
* fix: sync GitHub profile on login to handle username renames (#303)

When a user renames their GitHub account, the stored username becomes stale
and causes 'GitHub account lookup failed' errors during skill publishing.

This fix:
- Adds syncGitHubProfile function that fetches current profile using the
  immutable GitHub numeric ID
- Adds syncGitHubProfileInternal mutation to update user's name, handle,
  displayName, and image when they change
- Schedules the sync as a background action on every login via
  afterUserCreatedOrUpdated callback

The sync is best-effort (silently fails if GitHub API unavailable) since
it's not on the critical path. It only updates fields if the username
has actually changed.

Fixes #303

Co-Authored-By: Ian Alloway <adapter_burners.1y@icloud.com>

* fix: allow updating skill summary/description on subsequent publishes (#301)

Previously, the skill summary was only extracted from metadata.description
in the SKILL.md frontmatter. This change also checks for a direct
'description' field in the frontmatter, ensuring that users can update
their skill description by modifying either location.

The fix prioritizes the new description from the current publish over
the existing skill summary, allowing updates to be reflected correctly.

Fixes #301

Co-Authored-By: Ian Alloway <adapter_burners.1y@icloud.com>

* fix: throttle GitHub profile sync

* feat: show skill owner avatars

* fix: avoid nested owner links

* refactor: centralize profile sync + owner lookup

* docs: changelog for #312 (thanks @ianalloway)

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-02-15 04:55:49 +01:00
Peter Steinberger 11a66ea148 refactor: dedupe v1 file response + unify embedding patches (#316) 2026-02-15 03:43:30 +01:00
Peter Steinberger f94e20d4c3 refactor: split httpApiV1 + consolidate moderation batches (#315) 2026-02-15 03:29:53 +01:00
Peter Steinberger 71c74f61e2 refactor: post-#298 cleanup (#313)
* refactor: consolidate slug + embedding helpers

* refactor: batch ban/unban skill updates

* refactor: report batched ban/unban scheduling

* fix: unblock package typecheck
2026-02-15 02:18:54 +01:00
e2592684ed feat: anti-squatting protection, backup restore, and ban flow improvements (#298)
* feat: anti-squatting protection, backup restore, and ban flow improvements

- Add `reservedSlugs` table with 90-day cooldown to prevent slug squatting
  after skill deletion. Hard-delete finalize phase reserves slugs for the
  original owner; `insertVersion` blocks non-owners during cooldown.

- Change ban flow from hard-delete to soft-delete: `banUserWithActor` now
  sets `moderationReason: 'user.banned'` and syncs embedding visibility.
  `unbanUserWithActor` restores all ban-hidden skills and releases slug
  reservations automatically.

- Align `autobanMalwareAuthorInternal` with the same soft-delete + embedding
  visibility pattern so unban recovery works uniformly.

- Add admin `reclaimSlug` / `reclaimSlugInternal` mutations for reclaiming
  squatted slugs, with audit logging.

- Add GitHub backup restore system (`githubRestore.ts`,
  `githubRestoreMutations.ts`, `githubRestoreHelpers.ts`) that reads from
  the `clawdbot/skills` backup repo and re-creates skill records. Squatter
  eviction runs synchronously in the same transaction as restore to avoid
  async race conditions.

- Add `POST /api/v1/users/restore` and `POST /api/v1/users/reclaim` admin
  HTTP endpoints for bulk operations.

- Add `trustedPublisher` flag on users; trusted publishers bypass the
  `pending.scan` auto-hide for new skill publishes.

- Add `setTrustedPublisher` / `setTrustedPublisherInternal` admin mutations.

Addresses: slug squatting prevention, skill backup/restore, ban recovery,
and trusted publisher workflow improvements.

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix: harden restore/reclaim + ban flow (#298) (thanks @autogame-17)

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-02-15 01:16:46 +01:00
David AronchickandPeter Steinberger 79c9381201 fix(cli): clarify logout only affects local config (#166)
* fix(cli): clarify logout only affects local config

Users may assume 'clawhub logout' revokes their token everywhere.
In reality, the token remains valid on the server until explicitly
revoked in the web UI. This could be a security concern on shared
machines.

Update the message to set correct expectations.

* fix(cli): clarify logout revocation scope (#166) (thanks @aronchick)

* chore: sync changelog for merge (#166) (thanks @aronchick)

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-02-14 22:56:10 +01:00
Peter Steinberger 6a5712fdb6 Merge pull request #309 from openclaw/chore/merge-all
docs: changelog credit + v1 delete status codes
2026-02-14 22:21:56 +01:00
Peter Steinberger a85faf76ac docs: changelog credit + v1 delete status codes 2026-02-14 22:21:37 +01:00
Peter Steinberger c0a04210e9 fix: default to CF-only client IP parsing 2026-02-14 22:20:58 +01:00
Peter Steinberger 5adb334cb2 Merge pull request #35 from sergical/fix/delete-error-handling
fix: return proper HTTP status codes for delete/undelete errors
2026-02-14 22:11:04 +01:00
Peter Steinberger 182ec8741f test(api): reposition soft-delete mapping test 2026-02-14 22:08:05 +01:00
Peter Steinberger bafd17b00a test(api): cover v1 soft-delete error mapping 2026-02-14 22:06:02 +01:00
Peter Steinberger 802ee58054 chore(cli): align http client with main 2026-02-14 22:04:02 +01:00
Peter Steinberger 0e83ba00b9 fix(api): centralize v1 soft-delete error mapping 2026-02-14 21:59:14 +01:00
Peter Steinberger 3326a5c838 refactor: simplify GitHub age gate cache 2026-02-14 20:53:05 +01:00
Matt Krokosz f05dd556db fix: gate publish by immutable GitHub account ID 2026-02-14 20:25:15 +01:00
964893a622 fix: handle duplicate Convex Auth user records in publish ownership check (#180)
* fix: handle duplicate user records in publish ownership check

* fix: heal publish ownership via GitHub auth identity

---------

Co-authored-by: Emmet Brown <emmet@Emmets-Mac-mini.local>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-02-14 19:39:04 +01:00
Peter Steinberger 9a804b951f refactor: batch resolve tags in v1 API (#112) (thanks @mkrokosz) 2026-02-14 19:01:02 +01:00
Matthew KrokoszandClaude Opus 4.5 d699087786 fix: add null guard and short-circuit for empty tags
- Short-circuit when no version IDs to resolve
- Add null coalescing for runQuery response
- Fixes potential crash when tags are empty or query returns null

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-14 19:01:02 +01:00
Matthew KrokoszandClaude Opus 4.5 26b42727fe perf: batch tag resolution to reduce action→query round-trips
- Add getVersionsByIds batch query to skills.ts and souls.ts
- Replace per-item tag resolution with batch resolution in httpApiV1.ts
- Reduces N action→query round-trips to 1 for list endpoints

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-14 19:01:02 +01:00
Peter Steinberger 8756b78a4e chore: drop convex-helpers (#302) 2026-02-14 17:54:24 +01:00
e9c771d55d fix(skills): keep global sorting across pagination (#98)
* fix: initial skill sorting

* chore: update unit test

* fix: use correct indexes for skill sorting

* chore: cleanup

* fix(skills): preserve server order for paginated sorting

* chore(lint): apply biome formatting fixes

* chore(convex): bump tsconfig lib to ES2022

* fix(skills): add deterministic tie-breaker for search sorting

* fix(skills): stable sorting across pagination (#98) (thanks @CodeBBakGoSu)

---------

Co-authored-by: Brian Kasper <bkasperr@gmail.com>
Co-authored-by: knox-glorang <knox@glorang.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-02-14 17:44:07 +01:00
Peter Steinberger a58f0166fa refactor: centralize CORS + CLI auth token (#297)
* refactor(convex): centralize CORS headers

* refactor(cli): centralize auth token lookup
2026-02-14 15:31:03 +01:00
Peter SteinbergerandGrenghis-Khan 4328d4d700 fix(cors): complete CORS + tokenized CLI reads (#296)
* fix(cors): add Access-Control-Allow-Origin headers to API and downloads

* fix: add CORS to error/raw paths & add CLI install auth

* fix: add OPTIONS handler for CORS preflight

* fix(cors): complete CORS + tokenized CLI reads

* test(cli): fix config mock typing

---------

Co-authored-by: Grenghis-Khan <63885013+Grenghis-Khan@users.noreply.github.com>
2026-02-14 14:45:15 +01:00
Peter Steinberger 28ee2618c1 refactor: simplify user ensure updates 2026-02-14 13:56:15 +01:00
Peter Steinberger a4b850ec33 feat: improve moderation/admin UX + language-aware quality gate
- API: owner-visible responses for hidden/soft-deleted skills\n- Admin: add unban user mutations + docs\n- Quality: Intl.Segmenter tokenization + CJK signal to reduce false rejects\n- Jobs: skill-stat-events interval 15m -> 5m\n- Tests: add coverage for owner-visible states + non-Latin docs\n- Changelog: add Unreleased entry
2026-02-14 13:54:03 +01:00
Peter Steinberger 7e0b21f7c8 fix: sync handle on user ensure (#293) (thanks @christianhpoe) 2026-02-14 13:48:56 +01:00
ChristianHPoe 71c6705ab1 fix: sync handle on user ensure 2026-02-14 13:48:56 +01:00
a57769771f fix: add retry logic for OpenAI embedding API failures (#272)
* fix: add retry logic for OpenAI embedding API failures

Fixes #149

When importing or uploading skills, the OpenAI embedding API call could
fail with transient errors (rate limits, timeouts, network issues),
causing the entire import to fail with a generic "Server Error".

This adds retry logic with exponential backoff (1s, 2s, 4s delays):
- Retries on 429 (rate limit) and 5xx server errors
- Retries on network/fetch errors
- Logs warnings for debugging
- Max 3 retries before failing with clear error message

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: correct retry count and broaden network error catch

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: address retry loop off-by-one, broaden error catch, preserve original error

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: harden embeddings retry semantics

* style: format embeddings retry changes

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-02-14 04:54:18 +01:00
Peter Steinberger 6a2c131a8a style: remove residual blue accents and warm base palette 2026-02-14 04:40:50 +01:00
Peter Steinberger 67ac157545 fix: keep new skill versions pending until VT verdict 2026-02-14 02:53:02 +01:00
Peter Steinberger ef36cfd698 refactor(cli): centralize HTTP status errors and timeout tests (#286) 2026-02-14 02:39:42 +01:00
Peter SteinbergerandSash Zats e0637ad6aa fix(cli): throw Error for all timeout aborts (#283)
* fix(cli): throw Error on timeout aborts

Users have seen an elevated number of:\n  clawdhub search image\n  ✖ Non-error was thrown: "Timeout". You should only throw errors.\n\nInvestigation shows we were aborting with a string instead of an Error. Switching to controller.abort(new Error('Timeout')) makes retries/formatting treat it as a real error and clears the message.\n\nExample after change:\n  clawdhub search image\n  table-image v1.0.0  Table Image  (0.332)\n  nano-banana-pro v1.0.1  Nano Banana Pro  (0.319)\n  vap-media v1.0.1  AI media generation API - Flux2pro, Veo3.1, Suno Ai  (0.281)\n  clawdbot-meshyai-skill v0.1.0  Meshy AI  (0.276)\n  venice-ai-media v1.0.0  Venice AI Media  (0.274)\n  daily-recap v1.0.2  Daily Recap  (0.260)\n  openai-image-gen v1.0.1  Openai Image Gen  (0.260)\n  bible-votd v1.0.1  Bible Verse of the Day  (0.248)\n  orf v1.0.1  ORF  (0.224)\n  smalltalk v1.0.1  Smalltalk  (0.161)

* fix(http): wrap fetch calls in try-finally to prevent timer leaks

Addresses Vercel review comment: clearTimeout was not called on error paths when fetch throws an exception.

* fix(cli): unify timeout abort handling

---------

Co-authored-by: Sash Zats <sash@zats.io>
2026-02-14 02:27:34 +01:00
Peter Steinberger 09a21a07ff chore: add oxfmt config 2026-02-14 02:15:12 +01:00
Peter Steinberger 65a14dcef3 feat: make account deletion irreversible and migrate lint to oxlint 2026-02-14 02:15:01 +01:00
Peter Steinberger 97c12b2327 refactor(comments): extract handlers and harden mutation tests 2026-02-14 01:56:34 +01:00
a290c81a75 fix(comments): stop updating skills.updatedAt on comment add/remove (#55)
* fix(comments): stop updating skills.updatedAt on comment add/remove

Comments are not content changes, so they shouldn't invalidate skill
list queries that depend on updatedAt. This reduces query invalidation
when users add or remove comments.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* test(comments): add updatedAt invalidation regression coverage

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-02-14 01:53:40 +01:00
Peter Steinberger cc5d5cfee5 style: restore brown palette and dark-mode CTA tone 2026-02-14 01:18:29 +01:00
Peter Steinberger 03cd710abc fix: dedupe download metrics hourly by user-or-ip identity (#278) 2026-02-14 01:13:52 +01:00
Peter Steinberger 287f639fbc fix: simplify skills CTA label 2026-02-14 00:56:52 +01:00
Peter Steinberger aecf66981c fix: show stars in popular skill cards 2026-02-14 00:55:24 +01:00
Peter Steinberger db8090f287 style: darken hero primary CTA in dark mode 2026-02-14 00:50:52 +01:00
Peter Steinberger ae8614fa98 style: remove remaining warm accent literals 2026-02-14 00:38:21 +01:00
Peter Steinberger e7f78ea5a3 style: shift UI palette to cool blue tones 2026-02-14 00:31:55 +01:00
Peter Steinberger b9355f7a0c docs: thank @GhadiSaab for #53 2026-02-14 00:16:24 +01:00
ghadi saabandPeter Steinberger 9530676f8a fix: resolve search timeout and improve skills page UI alignment (#53)
* fix: resolve search timeout and improve skills page UI alignment

- Added a 10s timeout to OpenAI embedding requests to prevent hanging searches.
- Fixed a TypeScript error in search.ts regarding entry hydration.
- Restructured skills page layout and CSS to ensure consistent alignment between the search toolbar and skill cards.

* fix: resolve search timeout and improve skills page UI alignment

- Added a 10s timeout to OpenAI embedding requests to prevent hanging searches.
- Fixed a TypeScript error in search.ts regarding entry hydration.
- Restructured skills page layout and CSS to ensure consistent alignment between the search toolbar and skill cards.

* style: format skills index layout block

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-02-14 00:15:47 +01:00
Peter Steinberger ef23520d22 style: refine global UI theme, borders, and spacing 2026-02-13 23:50:24 +01:00
Peter Steinberger e67a6e6400 fix: render homepage popular cards from nested skill entries 2026-02-13 22:52:21 +01:00
Peter Steinberger e6871b86e1 fix: normalize legacy skill stats to prevent homepage crash 2026-02-13 22:45:34 +01:00
Peter Steinberger 75937e8b53 feat: show popular non-suspicious skills on homepage 2026-02-13 21:38:56 +01:00
Peter Steinberger d2919791d1 style: polish upload page layout and actions 2026-02-13 21:35:25 +01:00
Peter Steinberger 9019cd8462 perf: short-circuit empty skill summary generation 2026-02-13 21:21:09 +01:00
Peter Steinberger 5e58bd459e feat: add self-scheduling skill summary backfill job 2026-02-13 21:10:51 +01:00
Peter Steinberger 3badf0668f fix: make skill summary backfill resumable 2026-02-13 20:43:46 +01:00
Peter Steinberger c719297d70 feat: auto-generate missing skill summaries 2026-02-13 20:35:03 +01:00
Peter Steinberger e19cd23be2 fix: force auth redirects and registry to canonical clawhub host 2026-02-13 20:22:08 +01:00
Peter Steinberger 9266fb7c20 fix: add privileged-owner suspicious flag reconciler 2026-02-13 20:01:39 +01:00
Peter Steinberger 99645d2c27 fix: bypass suspicious flags for privileged owners and polish comment delete UI 2026-02-13 19:56:53 +01:00
Peter Steinberger a1ad7fac85 fix: force canonical downloads sort in skills browse mode 2026-02-13 19:33:26 +01:00
Peter Steinberger ebd2f12cc4 fix: enforce downloads as canonical default skills sort 2026-02-13 19:27:27 +01:00
Peter Steinberger e2ee7b164c feat: default skills sort to downloads 2026-02-13 19:15:19 +01:00
Peter Steinberger 36ed062739 style: polish selected states in skills toolbar 2026-02-13 19:12:48 +01:00
Peter Steinberger d12d6e3926 feat: add non-suspicious skills filter toggle 2026-02-13 19:05:46 +01:00
Peter Steinberger 1851a9c01f fix: make empty-skill cleanup resumable 2026-02-13 17:54:47 +01:00
Peter Steinberger bbeb0be343 feat: add empty-skill cleanup backfill with ban nominations 2026-02-13 17:48:58 +01:00
Peter Steinberger 9c22fb7e54 test: expand reauth ban regression coverage 2026-02-13 17:33:58 +01:00
Peter Steinberger ef2403179b fix: prevent autobanned users from self-reactivating 2026-02-13 17:28:00 +01:00
Peter Steinberger df178d4bfc fix: enforce quality gate and trust-tier spam checks 2026-02-13 17:16:53 +01:00
Peter Steinberger 318cdd33c5 docs: add git local-branch cleanup fallback 2026-02-13 17:03:38 +01:00
Peter Steinberger 9087b037dd fix: add skill publish anti-spam caps and quarantine 2026-02-13 16:58:18 +01:00
Peter Steinberger 6991569a1c fix: replace skill report prompt with modal 2026-02-13 16:47:16 +01:00
Peter Steinberger 32bc600be4 fix: harden skill listing and rate limiting under load 2026-02-13 16:39:57 +01:00
Kevin Kern a52a37d08c fix: harden download rate limiting and dedupe (#43) (thanks @regenrek)
- add download-specific rate limit tier\n- add per-IP/day dedupe + daily pruning\n- keep moderation gating + deterministic zips\n- add optional forwarded-IP trust via TRUST_FORWARDED_IPS
2026-02-13 16:22:05 +01:00
Brian KasperandPeter Steinberger dd58dd0815 Fix initial skill sorting (#92)
* fix: initial skill sorting

* chore: update unit test

* fix: use correct indexes for skill sorting

* chore: cleanup

* fix: land skill sorting update (#92) (thanks @bpk9)

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-02-13 16:01:37 +01:00
Tanuj BhaudandPeter Steinberger 37a35c955a fix(vt): explicit return types and missing undici dependency (#255)
* fix(vt): explicit return types and missing undici dependency

Refactor action handlers in convex/vt.ts to use explicit return types, resolving circular type inference (TS7022). Also add undici to devDependencies for E2E tests.

* fix: add root undici devDependency for e2e (#255) (thanks @tanujbhaud)

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-02-13 15:25:03 +01:00
Peter SteinbergerandSash Zats ddddb431c2 fix: make /search host-aware in SSR (#257)
* fix: make /search mode-aware

Notes:\n- Medium: /search now depends on getSiteMode() during beforeLoad. On server-side routing, if VITE_SITE_MODE isn’t set and VITE_SOULHUB_SITE_URL is set (as in .env.local), getSiteMode() will resolve to souls and redirect /search to / even on the ClawdHub deployment. This is a regression risk vs the old always-/skills redirect. Confirm deployment envs guarantee correct mode. src/routes/search.tsx:9-31

* fix: make /search host-aware in SSR

* chore: fix lint and route tree for /search route

---------

Co-authored-by: Sash Zats <sash@zats.io>
2026-02-13 14:26:31 +01:00
David AronchickandPeter Steinberger 78c27579a3 fix(cli): secure config file permissions (#164)
* fix(cli): secure config file permissions and reduce duplication

Security:
- Config files now created with 0600 permissions (owner read/write only)
- Config directories created with 0700 permissions
- Protects API tokens from other users on shared systems

Maintainability:
- Extract resolveConfigPath() helper to reduce code duplication
- Same legacy fallback logic (clawhub -> clawdhub) now in one place

* fix(cli): tolerate unsupported chmod errors for config

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-02-13 13:57:03 +01:00
xcqtnrandPeter Steinberger 9aebc35d86 fix: prevent infinite loading loop on skills page (#90)
* fix: prevent infinite loading loop on skills pageAdd isLoadingMore guard to IntersectionObserver useEffect to preventcontinuous WebSocket queries when user is idle at bottom of page.The observer now won't set up while a request is in progress, breakingthe infinite loop cycle.Fixes: Related to #89

* fix: prevent repeated skills auto-load requests (#90) (thanks @xcqtnr)

* fix: resolve PR merge conflicts and keep observer regression test (#90) (thanks @xcqtnr)

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-02-13 05:44:36 +01:00
Peter Steinberger fc63f47ffa chore(release): 0.6.1 2026-02-13 05:14:16 +01:00
Gaurav SharmaandPeter Steinberger 0b83ea6ff3 fix: prevent horizontal overflow from long code blocks in skill pages (#183)
* Fix: Prevent horizontal overflow from long code blocks in skill pages

- Add max-width: 100% to .file-list-body and .file-row
- Prevents page-wide overflow when skills contain long code examples
- Markdown pre blocks already have overflow-x: auto, but parent containers were expanding infinitely
- Fixes issue where skills with 400+ char lines (e.g. browser automation commands) cause horizontal scrolling

Affected: Skills with long inline code in markdown (browser act commands, etc.)

* fix: add max-width to .file-list container to prevent overflow

- Also ensures .file-list-body constraint is inherited properly
- Prevents long code blocks from expanding file list container

* fix: add max-width to all markdown containers and pre tags

- Add max-width: 100% to .markdown, .tab-body, .markdown pre
- Ensures code blocks are constrained and show horizontal scrollbar
- Prevents content from expanding parent containers beyond viewport

* fix: add overflow-x to parent containers for horizontal scroll

Adds overflow-x: auto to .skill-detail-stack, .tab-card, and .tab-body
to ensure long code blocks are scrollable within the content area
instead of causing page-wide horizontal overflow.

Fixes horizontal overflow issue on skill pages with long code examples
(e.g., browser automation commands with 400+ character lines).

Tested on zepto skill page - page now stays within viewport (1200px)
and code blocks are accessible via horizontal scrollbar in tab area.

* docs: note code-block overflow fix in changelog (#183) (thanks @bewithgaurav)

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-02-13 05:09:31 +01:00
LimitlessandLimitless2023 191b5763ec fix: include comment deltas in action-based stat processing & add stats reconciliation (#194)
Bug 1: applyAggregatedStatsAndUpdateCursor was missing 'comments' in both
the guard condition and the applySkillStatDeltas call. This caused comment
count deltas to be silently dropped during cron-based event processing,
while stars/downloads/installs were processed correctly.

Bug 2: No reconciliation mechanism existed. If events were missed due to
cursor issues or processing errors, skill stats (stars, comments) would
remain stale with no way to recover. Added reconcileSkillStarCounts
maintenance mutation that counts actual records in the stars and comments
tables and patches any out-of-sync skill stats.

Fixes #193

Co-authored-by: Limitless2023 <limitless@users.noreply.github.com>
2026-02-13 04:55:16 +01:00
Peter Steinberger 5397a8e5e0 fix: scope reauth fix; keep banned users blocked (#177) (thanks @tanujbhaud) 2026-02-13 04:34:46 +01:00
Tanuj Bhaud 7949402888 test: add missing coverage for fresh-login reactivation and identity mismatch guard 2026-02-13 04:34:46 +01:00
Tanuj Bhaud 2e3920d41a fix: use valid crons.interval and set to 1 minute 2026-02-13 04:34:46 +01:00
Tanuj Bhaud dd4fc823f6 fix: allow re-auth when existingUserId is null 2026-02-13 04:34:46 +01:00
Tanuj Bhaud 135b9ea9b0 fix: ensure reactivation only matches soft-deleted user (prevents bypass) 2026-02-13 04:34:46 +01:00
Tanuj Bhaud 17a106cefe fix: resolve final lint error in auth tests 2026-02-13 04:34:46 +01:00
Tanuj Bhaud 496da99392 fix: update tests to include required existingUserId parameter 2026-02-13 04:34:46 +01:00
Tanuj Bhaud 107486adfb fix: restore existingUserId check for type safety 2026-02-13 04:34:46 +01:00
Tanuj Bhaud ef9e7f0e57 test: update auth tests for direct deletedAt check 2026-02-13 04:34:46 +01:00
Tanuj Bhaud ecc8ad3833 fix: allow soft-deleted users to re-authenticate
Fixes Issue #32 where users who soft-deleted their accounts were unable to sign back in because the re-auth logic was only triggering when an existingUserId was passed by the auth provider, which doesn't happen during a standard fresh login flow.
2026-02-13 04:34:46 +01:00
Peter Steinberger 93c2b23b72 docs: add 0.6.1 unreleased changelog from post-0.6.0 commits 2026-02-13 04:14:16 +01:00
DCollandPeter Steinberger 2e492a5b87 fix(http): remove allowH2 from undici Agent — causes fetch failed on Node.js 22+ (#245)
* Remove allowH2 option from global dispatcher

fix/remove-allowH2-undici-node22-compat

* fix(http): remove allowH2 from e2e dispatcher

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-02-13 03:02:57 +01:00
Peter Steinberger 91c87d1322 test: fix search test handler typing 2026-02-13 02:48:16 +01:00
Peter Steinberger 91b8f160f8 test: add search fallback coverage 2026-02-13 02:44:53 +01:00
Peter Steinberger 32f3ce45e9 fix: add lexical fallback for skill search recall 2026-02-13 02:22:32 +01:00
Peter Steinberger 19bfe48a67 fix: prioritize relevant skills in search 2026-02-13 02:15:19 +01:00
Peter Steinberger 19951fccf7 docs: thank @superlowburn for PR #246 2026-02-13 01:22:38 +01:00
7dcada9122 fix: handle GitHub API rate limits in account age check (#246)
* fix: handle GitHub API rate limits in account age check

The GitHub account lookup uses unauthenticated requests (60 req/hr
per IP). Since this runs server-side in Convex, all users share the
same IP and quickly exhaust the rate limit, causing "GitHub account
lookup failed" errors during skill publish.

- Detect 403/429 responses and surface a clear rate-limit message
- Support optional GITHUB_TOKEN env var for authenticated requests
  (5,000 req/hr)

Fixes #155

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: stabilize GitHub account gate tests and docs

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-02-13 01:21:30 +01:00
theonejvo dab307cb6d fix: VT scan sync race condition + LLM-first moderation model
VT no longer overwrites LLM moderation verdicts. LLM is the primary
moderation authority; VT only escalates (hides + flags) for malicious/
suspicious content via new escalateByVtInternal mutation. Stale VT polls
write vtAnalysis marker instead of overwriting moderationReason. Query
pools expanded to include LLM-evaluated skills awaiting VT results.
Ban message now references malicious skills and security@openclaw.ai.
2026-02-13 01:05:52 +11:00
vignesh07 e96eb4781c chore: fix review comments 2026-02-11 10:38:26 -08:00
Vignesh f64b098fcc perf: lazy-load diff viewer (Monaco) (#212) 2026-02-11 12:31:07 -06:00
Vignesh 243432e04e chore: fix lint issues (#213) 2026-02-11 12:31:01 -06:00
theonejvo 9f7b9b92cd fix: trailing comma tolerance in JSON metadata, tone down persistence flags
- Strip trailing commas in frontmatter JSON before parsing (silent failure fix)
- Stop flagging disable-model-invocation default as a concern (it's the normal default)
- Stop flagging skills configuring themselves as privilege escalation
- Add MITRE ATLAS AML.T0051 context for when autonomous invocation actually matters
- Show actual defaults in assembled eval message instead of "not set"
2026-02-11 18:56:19 +11:00
theonejvo 3402f0e735 feat: add skill metadata docs, suspicious appeal banner for owners
- Document full frontmatter metadata reference in docs/skill-format.md
- Add metadata section + quick example to README
- Show appeal message on suspicious skills (owner-only) linking to GitHub issues
- Accept metadata.openclaw alias in README docs
- Re-evaluate all skills with full file content reading (backfill in progress)
2026-02-11 18:36:45 +11:00
theonejvo 3e39651074 feat: evaluator reads all file contents, not just SKILL.md
Reads all files from storage and includes their full source in the eval
prompt so the LLM can detect malicious code hidden behind clean READMEs.
Injection detection now scans all content. Per-file cap 10K chars, total
cap 50K chars.
2026-02-11 17:23:19 +11:00
theonejvo 741301848f fix: eval assembler falls back to metadata.openclaw for requirements 2026-02-11 14:39:02 +11:00
theonejvo b593dedba1 feat: recognize metadata.openclaw as valid frontmatter namespace 2026-02-11 14:29:11 +11:00
theonejvo e104b8030e fix: increase max_output_tokens for reasoning model, fix backfill error retry 2026-02-11 04:48:08 +11:00
theonejvo e74e879e12 fix: add retry with backoff for OpenAI rate limits, fix JSON mode requirement 2026-02-11 02:48:22 +11:00
theonejvo 1f1d93ded9 fix: collapse OpenClaw analysis by default, fix row spacing, switch to gpt-5-mini 2026-02-11 02:33:17 +11:00
theonejvo 9c31462f15 feat: add LLM security evaluation at publish time
Add OpenClaw LLM-based security evaluator that runs alongside VirusTotal
when skills are published. Reads SKILL.md prose, metadata, install specs,
and file manifest, then assesses coherence across 5 dimensions to catch
social engineering vectors that VT/regex miss (e.g. instruction-only skills
with no code files).

- convex/lib/securityPrompt.ts: system prompt, message assembly, response
  parsing, injection pattern detection
- convex/llmEval.ts: evaluateWithLlm action, evaluateBySlug convenience
  action, backfillLlmEval for existing skills
- convex/schema.ts: llmAnalysis field on skillVersions
- convex/skills.ts: updateVersionLlmAnalysisInternal mutation,
  getActiveSkillBatchForLlmBackfillInternal query, defense-in-depth
  multi-scanner flag merging in approveSkillByHashInternal
- convex/lib/skillPublish.ts: schedule LLM eval alongside VT scan
- SkillDetailPage.tsx: OpenClaw row, LlmAnalysisDetail expandable
  component with 5 dimension rows, guidance panel, findings section
- styles.css: analysis detail styles from mockup
2026-02-11 02:19:03 +11:00
Peter Steinberger f53be5c8d2 docs: reset changelog for next release 2026-02-10 13:22:09 +01:00
Peter Steinberger 03164fe8b1 chore: release 0.6.0 2026-02-10 13:20:16 +01:00
Peter Steinberger 81b53f0b20 feat: add ban reasons to moderation 2026-02-10 13:11:47 +01:00
theonejvo 75474075b1 fix(vt): self-sustaining VT scanning + working stats
- getStatsInternal: derive VT stats from moderationReason instead of
  N+1 version lookups that hit the 16MB byte limit
- UI: read cached vtAnalysis from version docs instead of hitting the
  live VT API on every page view
- Backfill: add vt-cache-backfill cron (30min) with self-scheduling to
  drain the backlog of skills missing cached vtAnalysis
- Daily rescan: cursor-based batching (100/batch) with self-scheduling
  instead of loading all skills in one shot
2026-02-10 20:39:27 +11:00
theonejvo 5946a08267 fix(convex): reduce write conflicts across hot paths
- downloads:increment: remove unnecessary db.get that added skill doc
  to read set, causing conflicts with the stat processing cron
- users:ensure: only patch when there are real field changes, skip
  unconditional updatedAt bump that forced a write on every call
- comments: route stats through event sourcing (insertStatEvent) instead
  of synchronous read-modify-write on the skill doc
- rateLimits: split into query-first check + conditional mutation so
  denied requests are conflict-free reads
- skillStatEvents: reduce MAX_SKILLS_PER_RUN from 500 to 50 to shrink
  the write set and lower conflict probability with concurrent mutations

Co-Authored-By: theonejvo <theonejvo@users.noreply.github.com>
2026-02-10 17:58:43 +11:00
theonejvo b997f5e749 fix(security): block downloads for unscanned/moderated skills
The download endpoint now checks moderation status before serving zips:

- Pending scan (423): "This skill is pending a security scan by VirusTotal. Please try again in a few minutes."
- Malicious (403): "Blocked: this skill has been flagged as malicious by VirusTotal and cannot be downloaded."
- Removed (410): "This skill has been removed by a moderator."
- Hidden (403): "This skill is currently unavailable."

Closes the supply chain gap where a newly published version could be
downloaded before VT scanning completed.
2026-02-08 23:49:23 +11:00
theonejvo 27f300bda5 chore: trigger CI 2026-02-08 16:55:41 +11:00
theonejvo 557f11985d chore: fix lint warnings (unused vars, formatting) 2026-02-08 16:49:43 +11:00
theonejvo 40f9ba5697 chore(clawhub): bump version to 0.5.1 2026-02-08 16:43:45 +11:00
theonejvo 26a353efc7 feat(cli): enforce VT Code Insight moderation on install/update
CLI now checks moderation status before installing skills:

**Suspicious skills** - Shows warning and requires confirmation:
```
⚠️  Warning: "skill-name" is flagged as suspicious by VirusTotal Code Insight.
   This skill may contain risky patterns (crypto keys, external APIs, eval, etc.)
   Review the skill code before use.

? Install anyway? (y/N)
```
Non-interactive mode requires --force flag.

**Malicious skills** - Blocked entirely:
```
✖ Blocked: skill-name is flagged as malicious
Error: This skill has been flagged as malware and cannot be installed.
```

Changes:
- API now returns `moderation` field with `isSuspicious` and `isMalwareBlocked`
- CLI schema updated to expect moderation field
- cmdInstall and cmdUpdate enforce moderation checks

Thanks to @zackkorman for raising this issue.
2026-02-08 16:36:55 +11:00
theonejvo 990d3d730d feat: VT backfill infrastructure and 99.7% scan coverage
- Add getQuickStatsInternal for fast dashboard stats
- Fix getStatsInternal to include null moderationStatus skills
- Add syncModerationReasons to sync vtAnalysis → moderationReason
- Add requestReanalysisForPending to push stuck skills to VT
- Add backfillActiveSkillsVTCache improvements for efficiency
- Add fixNullModerationStatus for legacy skill cleanup
- Add getPendingVTSkillsInternal for monitoring
- Fix getActiveSkillsMissingVTCacheInternal to avoid read limits

Backfilled 5,000+ skills to 99.7% VT Code Insight coverage:
- Clean: 3,537 (70.5%)
- Suspicious: 1,336 (26.6%)
- Malicious: 123 (2.5%)
- Pending: 17 (0.3%)
2026-02-08 15:37:11 +11:00
Peter Steinberger 75f7a93fe8 fix: restore soft-deleted users on reauth (#106) (thanks @mkrokosz) 2026-02-06 16:58:19 -08:00
Matthew KrokoszandClaude Opus 4.5 bc51ab4b5f fix: Convert userId to string for targetId comparison
The auditLogs.targetId field is v.string() in the schema, so explicitly
convert the Id<'users'> to string to ensure type-safe comparison.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-06 16:58:19 -08:00
Matthew KrokoszandClaude Opus 4.5 82fce7f34f fix: Restore soft-deleted users on re-authentication (with ban check)
Users who deleted their account were unable to sign in again with the
same GitHub account. The OAuth flow would complete but the user would
remain logged out due to the `deletedAt` field being set.

This fix adds a `createOrUpdateUser` callback that:
1. Detects soft-deleted users during OAuth
2. Checks audit logs to determine if user was BANNED vs SELF-DELETED
3. If banned → throws error "This account has been suspended"
4. If self-deleted → clears `deletedAt` to restore account

Security: Both `deleteAccount` and `banUser` set the same `deletedAt`
field. This fix ensures banned users cannot restore their accounts.

Performance: The callback runs on every sign-in, but the audit log
query ONLY executes for soft-deleted users (rare edge case). Normal
active users just hit a single `if` check - no extra queries. When
the audit log query does run, it uses the `by_target` index for
efficient lookup.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-06 16:58:19 -08:00
Peter Steinberger 5f4fa02b42 fix: update footer branding to OpenClaw (#122) (thanks @jontsai) 2026-02-06 16:52:01 -08:00
Jonathan Tsai cfef87059b fix: update footer branding from Clawdbot to OpenClaw
- Change 'A Clawdbot project' to 'An OpenClaw project'
- Update link from clawd.bot to openclaw.ai
2026-02-06 16:52:01 -08:00
Peter Steinberger b948b216c6 fix: backfill empty handles in ensure (#158) (thanks @adlai88) 2026-02-06 16:24:28 -08:00
adlai88 f156b909e7 fix: handle empty-string handle in ensure() fallback
`??` (nullish coalescing) treats `""` as a valid value, so users
with `handle=""` never get a fallback derived from name/email.
Change to `||` so empty strings fall through to the next candidate.

This affects any user whose handle field is an empty string rather
than null/undefined — e.g. early accounts or migration artifacts.
2026-02-06 16:24:28 -08:00
nikniknikbbb 0b46210f61 Update README.md (#140) 2026-02-06 16:12:04 -08:00
theonejvo 03eee4b6de fix: self-healing VT scan queue
- Batch size 100 (was 10) - process more per run
- Skip skills checked in last 60 min - avoid hammering same hashes
- After 10 failed checks, mark as pending.scan.stale - drops from queue
- Track scanLastCheckedAt and scanCheckCount on skills
- Add TODO for webhook/notification setup
2026-02-07 00:20:49 +11:00
theonejvo 09ffaba89b fix: randomize VT scan queue + add health monitoring
- Fetch 5x batch size and shuffle to avoid queue head-blocking
- Add getScanQueueHealthInternal to monitor queue status
- Log warnings when queue is unhealthy (>50 pending or >24h stale)
- Return health stats from pollPendingScans
2026-02-07 00:06:03 +11:00
theonejvo b39f203b12 fix: use yellow styling for suspicious code insight blocks
- Malicious verdicts keep red border/background
- Suspicious verdicts now use yellow/amber to match badge color
2026-02-06 20:40:41 +11:00
theonejvo 4002bb615d chore: fix lint errors 2026-02-06 16:39:27 +11:00
theonejvo 583e391d83 chore: add friendly wait message for pending scans 2026-02-06 16:37:24 +11:00
theonejvo 55ae6e1eb7 feat: add VT rescan trigger and backfill function
- Add requestRescan() to trigger Code Insight via /analyse endpoint
- Update pollPendingScans to request rescan when no Code Insight
- Add backfillPendingScans for one-time backlog clearing
2026-02-06 16:36:49 +11:00
theonejvo b4fe685a46 chore: fix lint formatting 2026-02-06 16:01:53 +11:00
theonejvo a93de9cf92 feat: add cron job to poll VT for pending scan results
- Add pollPendingScans action to vt.ts that checks VT for Code Insight verdicts
- Add getPendingScanSkillsInternal query to get skills awaiting scan
- Add vt-pending-scans cron job running every 5 minutes
- Updates skill moderation status when VT analysis is complete
2026-02-06 15:51:24 +11:00
theonejvo 74bf5946e1 chore: fix lint formatting 2026-02-06 15:11:43 +11:00
theonejvo 04c99aafc2 chore: remove debug console.log 2026-02-06 15:09:08 +11:00
theonejvo ee81325cb3 feat: VT Code Insight visibility matrix for malicious/suspicious skills
- Malicious skills: visible for transparency, downloads blocked via moderationFlags
- Suspicious skills: visible with warning banner, downloads allowed
- Neither appears in search/listings (not indexed)
- Add isSuspicious flag to moderation info
- Update approveSkillByHashInternal to set moderationFlags properly
- Add warning banner CSS variant for suspicious skills
2026-02-06 15:08:52 +11:00
theonejvo bdc6348b1a fix: show verdict labels (Benign/Suspicious/Malicious) instead of engine stats 2026-02-06 12:52:54 +11:00
theonejvo 68abaa3642 debug: add logging to getBySlug query 2026-02-05 20:36:43 +11:00
theonejvo 0c3acda26e fix: remove unused isModerated variable 2026-02-05 20:27:33 +11:00
theonejvo 650090d298 fix: allow owners to see all moderated skills, not just pending.scan 2026-02-05 20:26:29 +11:00
theonejvo 70220f9487 merge: resolve conflicts with main 2026-02-05 20:12:55 +11:00
theonejvo aad1fbe2c4 fix: use computed badges in pending skill response 2026-02-05 20:08:26 +11:00
theonejvo 2d7914859c feat: show Code Insight analysis for malicious skills
- Add `source` field to VT results to indicate code_insight vs engines
- Display Code Insight analysis text when AI detects malicious patterns
- Only show "X/Y engines" when traditional AV detection triggers
- Add styled analysis block with red accent for malicious verdicts
2026-02-05 19:58:31 +11:00
ba6a99a65f fix: show pending skill page to owners instead of "Skill not found" (#136)
* fix: show pending skill page to owners instead of "Skill not found"

When a skill owner uploads a skill that's pending VirusTotal scan,
they now see their skill page with a pending banner instead of
"Skill not found". The banner explains the scan is in progress.

Changes:
- Modified getBySlug query to return skill data for owners even when
  moderationStatus is 'hidden' with reason 'pending.scan'
- Added pendingReview flag to query response
- Added pending banner component to SkillDetailPage
- Added CSS for pending banner using existing ClawHub gold theme

* fix: show pending skills on owner's dashboard

Extended the list query to include pending skills when the requester
is viewing their own dashboard. Added "Scanning" badge with gold theme
to indicate skills pending VirusTotal review.

* fix: show all moderation states to owners with appropriate UI

- Owners see their blocked/removed skills with explanatory banners
- Red banner for malware-blocked and removed skills
- Gold banner for pending scan
- Download button hidden for blocked/removed skills
- Added security disclaimer: "Like a lobster shell, security has layers"
- Fixed badges bug (use computed badges, not stale skill.badges)

* feat: make malware-blocked skills publicly visible

Blocked skills are now visible to everyone via direct URL:
- Shows red banner with "security issue detected"
- Displays VT scan results
- No download button
- Still hidden from listings/search

Sends a strong transparency signal about security enforcement.

* fix: allow owners to view pending scan skills (#136)

* fix: make deterministic zip date timezone-safe

* chore: update convex api types

* fix: update changelog for pending scan visibility (#136) (thanks @orlyjamie)

---------

Co-authored-by: theonejvo <theonejvo@users.noreply.github.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-02-04 23:26:49 -08:00
Peter Steinberger 4ac63c2373 fix: update changelog for pending scan visibility (#136) (thanks @orlyjamie) 2026-02-04 23:25:41 -08:00
Peter Steinberger 8d0f32443a chore: update convex api types 2026-02-04 23:23:13 -08:00
Peter Steinberger 9e75090a39 fix: make deterministic zip date timezone-safe 2026-02-04 23:19:58 -08:00
Peter Steinberger 5cff71104c fix: allow owners to view pending scan skills (#136) 2026-02-04 23:19:53 -08:00
theonejvo 5ef8526874 feat: make malware-blocked skills publicly visible
Blocked skills are now visible to everyone via direct URL:
- Shows red banner with "security issue detected"
- Displays VT scan results
- No download button
- Still hidden from listings/search

Sends a strong transparency signal about security enforcement.
2026-02-05 17:55:29 +11:00
theonejvo 46faafc413 fix: show all moderation states to owners with appropriate UI
- Owners see their blocked/removed skills with explanatory banners
- Red banner for malware-blocked and removed skills
- Gold banner for pending scan
- Download button hidden for blocked/removed skills
- Added security disclaimer: "Like a lobster shell, security has layers"
- Fixed badges bug (use computed badges, not stale skill.badges)
2026-02-05 17:47:04 +11:00
theonejvo 0710b99ac4 fix: show pending skills on owner's dashboard
Extended the list query to include pending skills when the requester
is viewing their own dashboard. Added "Scanning" badge with gold theme
to indicate skills pending VirusTotal review.
2026-02-05 14:51:13 +11:00
theonejvo 9ebe1b6da8 fix: show pending skill page to owners instead of "Skill not found"
When a skill owner uploads a skill that's pending VirusTotal scan,
they now see their skill page with a pending banner instead of
"Skill not found". The banner explains the scan is in progress.

Changes:
- Modified getBySlug query to return skill data for owners even when
  moderationStatus is 'hidden' with reason 'pending.scan'
- Added pendingReview flag to query response
- Added pending banner component to SkillDetailPage
- Added CSS for pending banner using existing ClawHub gold theme
2026-02-05 14:41:00 +11:00
Shakker 98dd49c651 style: fix badges test import formatting
Format import statement to single line per Biome rules.
2026-02-05 03:04:26 +00:00
Shakker a115bb0d65 docs: update changelog for coverage improvements
Add entries for new tests and coverage configuration changes.
2026-02-05 03:04:26 +00:00
Shakker f1625cd5ff chore: add skillZip.ts to coverage tracking
Include convex/lib/skillZip.ts in coverage reports to track
the deterministic ZIP building utility added in PR #130.
2026-02-05 03:04:26 +00:00
Shakker 010ca1677f test: add 4+ errors truncation test for ark schema
Test the formatArkErrors truncation logic when there are more than
3 validation errors, ensuring the "+N more" message is displayed.
2026-02-05 03:04:26 +00:00
Shakker 62d62f976c test: add expandDroppedItems tests for uploadFiles
Add jsdom tests for the expandDroppedItems function:
- Handles null/empty DataTransferItemList
- Collects files via getAsFile fallback
- Collects files via webkitGetAsEntry for file entries
- Recursively collects files from directory entries
- Skips non-file/non-directory entries

Improves branch coverage for uploadFiles.ts.
2026-02-05 03:04:26 +00:00
Shakker 24ad575a4e test: add skillZip module tests
Add tests for the deterministic ZIP building utility from PR #130:
- buildSkillMeta function
- buildDeterministicZip with various scenarios
- Verifies deterministic output and _meta.json inclusion

Achieves 100% coverage for skillZip.ts.
2026-02-05 03:04:26 +00:00
Shakker 1cd6a22284 test: add badges module tests
Add comprehensive tests for the badges utility functions:
- isSkillHighlighted, isSkillOfficial, isSkillDeprecated
- getSkillBadges with all badge combinations

Improves branch coverage from 50% to 100% for badges.ts.
2026-02-05 03:04:26 +00:00
Peter Steinberger 343e065292 fix: stabilize VT scans and UI fetches (#130) (thanks @aleph8) 2026-02-04 17:34:35 -08:00
Alejandro García Peláez 2849a864e0 VirusTotal Integration on ClawHub (#130)
* feat: implementation of dynamic VirusTotal integration and deterministic ZIPs

* fix: do not show security scan results if hash is missing

* ui: show 'Loading...' instead of 'Pending' while fetching VT results

* security: restrict auto-approval to explicit benign verdicts only

* fix: prioritize AI verdict in results and refine stats fallback
2026-02-04 17:33:48 -08:00
Peter Steinberger ae0338e469 feat: add fuzzy user search for moderation CLI 2026-02-04 03:44:54 -08:00
Peter Steinberger ca1ef737cb fix: resolve typecheck errors in api and config 2026-02-04 03:32:09 -08:00
Peter Steinberger 589e46353b fix: management user search and totals 2026-02-04 03:30:07 -08:00
Peter Steinberger 7edbc03494 fix: skill list pagination and footer branding 2026-02-04 03:18:07 -08:00
Peter Steinberger f359071d96 feat(moderation): add set-role 2026-02-02 04:40:53 -08:00
Peter Steinberger 57bae9859e chore(release): 0.5.0 2026-02-02 04:25:11 -08:00
Peter Steinberger 96e9ffdcdc fix(convex): batch hard delete skills 2026-02-02 04:15:22 -08:00
Peter Steinberger eb4601141e fix(cli): honor registry from auth login 2026-02-02 03:25:14 -08:00
Peter Steinberger 39686b3b8d feat(management): add report and user filters 2026-02-02 03:02:52 -08:00
Peter Steinberger a24d3e9809 feat(cli): add inspect and moderation tools 2026-02-02 02:55:56 -08:00
Peter Steinberger 405c74a4ef feat: require report reasons 2026-02-02 00:57:45 -08:00
Peter Steinberger ee828046b8 chore: update dependencies 2026-02-02 00:31:54 -08:00
Peter Steinberger 789082bc00 chore: suppress empty chunk warnings 2026-02-02 00:27:01 -08:00
Peter Steinberger 3e4c2450cd chore: suppress nitro build warnings 2026-02-02 00:25:28 -08:00
Peter Steinberger ea2f51d2ba chore: quiet build warnings 2026-02-02 00:22:04 -08:00
Peter Steinberger 7b2bdbd08f feat: harden moderation and upload safety 2026-02-02 00:17:34 -08:00
Peter Steinberger f654dc9325 fix: allow legacy skill fields in schema 2026-01-31 12:45:35 +01:00
Peter Steinberger d78c105570 feat: add admin user ban 2026-01-31 11:44:31 +01:00
Peter Steinberger a32498ea7d fix: use ClawHub branding for registry 2026-01-31 11:31:46 +01:00
Shadow 5d6ee7adf3 trigger new deploy 2026-01-30 13:05:02 -06:00
Peter Steinberger ffa25f47da chore: rebrand user-facing to OpenClaw 2026-01-30 07:02:35 +01:00
Peter Steinberger f866dc05d1 style: format moderation flags 2026-01-30 05:27:19 +01:00
Peter Steinberger 69436fd79b fix: allow moltbot parsed data 2026-01-30 05:26:09 +01:00
Peter Steinberger f185ca6f55 feat: release 0.4.0 2026-01-30 05:23:12 +01:00
Peter Steinberger f3fc8d62b6 Revert "chore: rename molthub branding"
This reverts commit 8d68b55333.
2026-01-30 05:23:12 +01:00
Shakker 71f94a774f Merge pull request #70 from moltbot/remove-clawd-authenticator-tool
chore(moderation): block ClawdAuthenticatorTool (suspected malware)
2026-01-29 17:18:09 +00:00
vignesh07 07349e6107 chore(moderation): block ClawdAuthenticatorTool listing 2026-01-29 09:14:41 -08:00
Vignesh 5ef00e8c6a chore(security): harden file endpoints CSP + XFO + svg detection (#67) 2026-01-28 23:21:16 -06:00
Jamieson O'Reillyandtheonejvo c5e5e657dd fix: add CSP headers and Content-Disposition to prevent SVG XSS (#61)
Co-authored-by: theonejvo <theonejvo@users.noreply.github.com>
2026-01-28 22:21:39 -06:00
Jamie Turner 69e1e5c507 A few fixes for search. (#64) 2026-01-28 22:21:26 -06:00
Josh Palmer 481f1b9188 Merge pull request #66 from moltbot/fix/ci-lint
fix: restore lint compliance
2026-01-28 21:27:21 +01:00
Josh Palmer d4f5832554 🤖 chore: merge main into fix/ci-lint
- resolve conflicts in search/skill publish files
- apply Biome formatting updates from main

Tests: bun run lint:biome; bun run lint:oxlint
2026-01-28 21:23:50 +01:00
Josh Palmer ca3275ba92 🤖 fix: restore lint compliance
- apply Biome formatting and import ordering across linted files
- fix management useEffect dependencies flagged by Biome

Tests: bun run lint:biome; bun run lint:oxlint
2026-01-28 21:18:19 +01:00
Shadow d577add8a0 fix: unblock convex deploy typecheck 2026-01-28 13:15:18 -06:00
Shadow 90bd065f7e fix: correct public skill entries build 2026-01-28 13:12:41 -06:00
Shadow 219f05b160 fix: sanitize public skill and soul data 2026-01-28 13:03:19 -06:00
Shadow c8091ee8a8 chore: remove unauthenticated badge backfill 2026-01-28 08:33:14 -06:00
Shadow 63f367e1d6 chore: add unauthenticated badge backfill 2026-01-28 08:31:04 -06:00
Shadow e701d7b713 feat: add skill badges table 2026-01-28 01:11:46 -06:00
Shadow 79bd1f1d6c fix: query highlighted skills by batch index 2026-01-28 00:34:33 -06:00
Shadow ac51cc0236 fix: rely on highlighted badge 2026-01-27 23:27:36 -06:00
Shadow b9c23dc00e feat: add reports dashboard for moderation 2026-01-27 22:27:20 -06:00
Shadow f4e96995bc fix: allow clawdis parsed metadata 2026-01-27 21:39:23 -06:00
Shadow 33165db598 feat: unify skill routes with owner slugs 2026-01-27 21:28:46 -06:00
Shadow 4c10e4847b feat: add moderation management and backfill 2026-01-27 21:11:37 -06:00
Shadow 8d68b55333 chore: rename molthub branding 2026-01-27 18:25:02 -06:00
Jamie Turner 251de1f540 Performance optimizations for /skills page 2026-01-27 15:18:21 -06:00
Shadow 123f60fa93 Revert "Performance optimizations for /skills page" temporarily until we can deploy
This reverts commit 643faf71c8.
2026-01-27 12:20:15 -06:00
Jamie Turner 643faf71c8 Performance optimizations for /skills page 2026-01-27 12:09:57 -06:00
Sergiy Dybskiy eb9a67f2af fix: use Error for timeout abort in e2e helper 2026-01-26 12:41:29 +00:00
Sergiy Dybskiy 1ae0498595 test: add e2e test for delete error handling
Verifies that deleting a non-existent skill returns a proper 'not found'
error instead of a generic 'Unauthorized' message.
2026-01-26 12:40:39 +00:00
Sergiy Dybskiy f1a5254755 fix(cli): use proper Error objects in abort timeouts
When AbortController.abort() receives a string instead of an Error,
the string itself is thrown. pRetry then wraps it in a confusing
message: 'Non-error was thrown: Timeout'

Changed all 3 occurrences in http.ts:
- apiRequest (line 57)
- apiRequestForm (line 106)
- downloadZip (line 141)

Now timeouts will surface as proper Error objects with clear messages.
2026-01-25 21:39:54 +00:00
Sergiy Dybskiy de2542e391 fix: return proper HTTP status codes for delete/undelete errors
The delete and undelete handlers for skills and souls were catching all
errors and returning 401 Unauthorized, even for errors like:
- 'Skill not found' (should be 404)
- 'Forbidden' (should be 403)
- Other validation errors (should be 400)

This change updates the error handling to return appropriate status codes:
- 401 Unauthorized: authentication failures
- 403 Forbidden: authorization failures (not owner/admin/moderator)
- 404 Not Found: skill/soul/user not found
- 400 Bad Request: other errors with descriptive message

Fixes #34
2026-01-25 21:12:02 +00:00
Aaron NgandPeter Steinberger a2c46fbb5d Search Fixes (#30)
* more search fixes

* update tests

* comments

* fix: tune search filters and limits (#30) (thanks @aaronn)

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-01-25 00:08:29 +00:00
Peter Steinberger f51e0a087d test: fix lockfile mock version 2026-01-24 22:56:39 +00:00
emilianoandPeter Steinberger d9108b0948 feat: show published skills on user profile (#20)
* fix: resolve typecheck and lint errors

* fix: stabilize publish paths and token types

* feat: show published skills on user profile

* fix: document profile published skills (#20) (thanks @njoylab)

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-01-24 22:55:18 +00:00
Peter Steinberger d7a017e1c3 fix: add update lookup test (#22) (thanks @daveonkels) 2026-01-24 22:30:09 +00:00
Dave OnkelsandClaude Opus 4.5 fffdf82540 fix: use path instead of url for skill metadata API call (#22)
The `cmdUpdate` function was passing a relative path to `apiRequest`
using the `url` property, but `url` expects a full URL. When `url` is
provided, it's used as-is without combining with the registry base URL.

This caused "Failed to parse URL from /api/v1/skills/<slug>" errors
when updating skills that don't have a local fingerprint match.

Changed to use `path` property which correctly combines with the
registry base URL via `new URL(args.path, registry)`.

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 22:28:54 +00:00
Ahmed Fuad MireClaude Opus 4.5vercel[bot] <35613825+vercel[bot]@users.noreply.github.com>Ahmed
a16e624766 fix: relax search token matching to require at least one match (#27)
* fix: relax search token matching to require at least one match

The search was requiring ALL query tokens to exist in the skill's
displayName, slug, or summary. This was too strict and caused valid
results to be filtered out. For example, searching "HTTP API client"
would fail to match skills about "HTTP API" that didn't mention "client".

Changed from `.every()` to `.some()` so at least one token must match,
allowing the vector similarity to determine relevance for the rest.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: update matchesExactTokens to require prefix matching for query tokens

* more inclusive token check

* Update convex/lib/searchText.ts

Co-authored-by: vercel[bot] <35613825+vercel[bot]@users.noreply.github.com>

---------

Co-authored-by: Ahmed <ahmed.mire@kaluza.com>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: vercel[bot] <35613825+vercel[bot]@users.noreply.github.com>
2026-01-24 21:23:03 +00:00
Peter Steinberger decce1d35c fix: skip missing skills in search hydration (#28) (thanks @aaronn) 2026-01-24 21:11:46 +00:00
Aaron Ng 468832af3f fix search (#28) 2026-01-24 21:11:06 +00:00
Shadow 54c793a660 fix: handle search embedding errors 2026-01-23 15:48:53 -06:00
Shadow 5d9a89a885 fix search 2026-01-23 15:24:26 -06:00
Peter Steinberger 31e9a57678 feat: add installs/trending sorts 2026-01-19 07:06:46 +00:00
Peter Steinberger 7680cc4ce8 feat: add idempotent star endpoints 2026-01-19 03:09:27 +00:00
Peter Steinberger de56255b95 fix: normalize monaco surface color 2026-01-19 02:21:51 +00:00
Peter Steinberger eaaa5e4423 Merge pull request #12 from NACC96/fix/search-mode-navigation
fix: search mode navigation and state management
2026-01-18 23:54:17 +00:00
Peter Steinberger 49e9c3c071 fix: stabilize search mode routing (#12) (thanks @NACC96) 2026-01-18 23:53:42 +00:00
NACC96 ef96fbee84 fix: auto-focus search input when search mode activates 2026-01-18 23:51:49 +00:00
NACC96 9fc032216e fix: update Header search links to use URL params instead of /search redirect 2026-01-18 23:51:49 +00:00
NACC96 236058b1b5 fix: preserve search flag in OnlyCrabsHome URL sync 2026-01-18 23:51:49 +00:00
NACC96 595bd2cf05 fix: search mode navigation and state management
- Fix "Explore search" button causing page refresh by using URL params
- Enable /search URL deep linking via beforeLoad redirect
- Fix logo click not closing search mode by properly syncing state with URL
2026-01-18 23:51:49 +00:00
Peter Steinberger 918b5528df chore: format peer check script 2026-01-18 23:42:04 +00:00
Peter Steinberger 2f6f11af3f ci: add peer dependency check 2026-01-18 23:40:55 +00:00
Peter Steinberger c90f92dbc7 fix: align auth core with convex auth 2026-01-18 23:33:51 +00:00
Peter Steinberger 8db8c89206 chore: update deps and adjust vite convex resolution 2026-01-18 23:29:59 +00:00
Peter Steinberger 00c31dcdd4 fix: derive auth from user query 2026-01-18 23:13:29 +00:00
Peter Steinberger 47646937b6 fix: dedupe convex auth modules 2026-01-18 22:33:09 +00:00
Shadow 10d250ea32 fix: keep ConvexAuthProvider during SSR 2026-01-18 14:43:24 -06:00
Peter Steinberger e7fa7afdf7 chore: bump clawdhub to 0.2.1 2026-01-18 16:28:40 +00:00
Peter Steinberger aa97727be8 fix: harden explore limit + tests/docs (#14) (thanks @jdrhyne) 2026-01-18 16:26:28 +00:00
Peter Steinberger d375496c17 Merge pull request #14 from jdrhyne/feat/explore-command
feat(cli): add explore command to browse latest updated skills
2026-01-18 16:25:48 +00:00
Peter Steinberger 9a912ee5eb chore: update dependencies 2026-01-18 14:10:09 +00:00
Peter Steinberger 11b257a062 fix: harden search and cli http 2026-01-18 14:04:35 +00:00
Peter Steinberger 02e509404a chore: update convex api types 2026-01-18 09:12:52 +00:00
Peter Steinberger 2cf6182991 fix: tighten search matching 2026-01-18 09:11:16 +00:00
Jonathan Rhyne e108789ab1 feat(cli): add explore command to browse latest updated skills
Adds a new `clawdhub explore` command that fetches the most recently
updated skills from the registry, sorted by updatedAt descending.

Usage:
  clawdhub explore           # Show latest 25 skills
  clawdhub explore --limit 10

Output includes slug, version, relative time since update, and summary.

The API endpoint already exists and returns skills sorted by updatedAt,
this just exposes it via the CLI.
2026-01-17 23:07:54 -05:00
Peter Steinberger 18bfea5035 fix: enable explore search button 2026-01-17 21:54:29 +00:00
Peter Steinberger 5f93ddb390 fix: rename ClawdBot to Clawdbot 2026-01-16 01:14:24 +00:00
Peter Steinberger 2b552c4803 feat: default workdir from clawdbot config 2026-01-13 06:04:38 +00:00
Peter Steinberger ece0b830fb test: raise branch coverage 2026-01-13 01:25:06 +00:00
Peter Steinberger 57afea9de5 chore: ignore test-results in biome 2026-01-13 01:24:56 +00:00
Peter Steinberger 1e788b2e0c test: add playwright smoke suite 2026-01-13 00:46:13 +00:00
Peter Steinberger f025721261 fix: prevent skills index crash 2026-01-13 00:40:04 +00:00
Shadow c2cc61df24 feat: add skills lazy loading 2026-01-12 15:52:52 -06:00
Shadow 7a8a3f75ce fix: paginate skills index 2026-01-12 13:36:28 -06:00
Peter Steinberger ac0bdf0375 fix: hide onlycrabs branding 2026-01-11 05:20:20 +01:00
Peter Steinberger 6c7dd2ec6d fix: hide onlycrabs link and code pill 2026-01-11 05:15:43 +01:00
Peter Steinberger c72e3007a1 test: guard skills list query limit 2026-01-10 22:04:42 +01:00
Peter Steinberger b66d28a184 fix: lower skills list query limit 2026-01-10 22:01:06 +01:00
Shadow dddee828af Change ClawdBot link to new URL 2026-01-10 14:01:27 -06:00
Peter Steinberger 106cb1896a Merge pull request #1 from clawdbot/nix-plugin-metadata
Add nix-clawdbot plugin pointers to skill metadata
2026-01-10 19:33:11 +00:00
Peter Steinberger e29ec88afd fix: restore backups + fork lineage (#1) (thanks @joshp123) 2026-01-10 20:32:47 +01:00
Josh Palmer 0eb3047ca6 feat: add nix plugin bundles
- include nix plugin metadata, config requirements, and CLI help
- add config examples and format bundle code blocks
- refresh bundle UI styling and layout
2026-01-10 20:27:22 +01:00
Peter Steinberger b34c7261bd feat: add v1 public api 2026-01-10 20:25:50 +01:00
DB Hurley e0d553602a feat: refresh skill detail layout and dashboard
- add dashboard with skill management and upload prefill
- redesign skill detail layout with full-width panels
- refactor modules and format dashboard/upload routes
2026-01-10 20:23:01 +01:00
Peter Steinberger f80fa90e01 fix(seed): harden SoulHub auto-seed 2026-01-10 20:18:19 +01:00
Josh Palmer 0cc0bdcd50 feat: SoulHub registry + auto-seed
SoulHub SOUL.md registry (souls table, versions, search, OG) + first-run auto-seed; fixes seed concurrency and GitHub backup owner handle.
2026-01-10 18:25:11 +00:00
Peter Steinberger cc0027a094 test(og): update OG layout version 2026-01-09 19:16:39 +01:00
Peter Steinberger dddbd3a78e fix(og): prevent OG title clipping 2026-01-09 19:13:19 +01:00
Peter Steinberger f350442002 feat: import skills from public GitHub 2026-01-09 09:10:49 +01:00
Peter Steinberger 826c60f4da test(cli): expand clawdbot sync coverage 2026-01-09 02:34:09 +01:00
Peter Steinberger a679c3a999 docs: note clawdbot sync roots 2026-01-09 02:05:34 +01:00
Peter Steinberger d5d8e6ae5b feat(cli): auto-scan clawdbot skill roots 2026-01-09 01:57:56 +01:00
Peter Steinberger f0772e7215 test: cover OG text clamping 2026-01-08 23:07:10 +01:00
Peter Steinberger 770bb3aeb8 fix: clamp OG description width 2026-01-08 23:02:33 +01:00
Peter Steinberger 6811691055 fix: prevent OG text bleed 2026-01-08 22:58:53 +01:00
Peter Steinberger 26b46d9f6e docs: note OG image runtime fix 2026-01-08 06:15:09 +01:00
Peter Steinberger d145c186a7 fix: resolve OG api base on all runtimes 2026-01-08 06:12:01 +01:00
Peter Steinberger 57af81d054 refactor: modularize skill OG images 2026-01-08 06:07:36 +01:00
Peter Steinberger 0131229843 fix: embed fonts in OG images 2026-01-08 05:54:49 +01:00
Peter Steinberger d7650583dc feat: dynamic skill OG images 2026-01-08 05:47:27 +01:00
Peter Steinberger cf2ad58e86 chore: remove docs page link 2026-01-08 04:20:25 +01:00
Peter Steinberger 153c3f5b9e style: soften markdown block styling 2026-01-07 22:41:57 +01:00
Peter Steinberger 243ca9ca2b feat: link docs and clarify cli usage 2026-01-07 21:11:04 +01:00
Peter Steinberger 8216c73c9b test: stabilize upload route mocks 2026-01-07 20:18:32 +01:00
Peter Steinberger 860902a574 fix: harden upload utils 2026-01-07 20:14:18 +01:00
Peter Steinberger 18af63b630 fix: silence lint/build warnings 2026-01-07 20:08:13 +01:00
Peter Steinberger 96ac7567ba chore: prepare 0.1.0 release notes 2026-01-07 20:07:06 +01:00
Peter Steinberger b55e266457 fix: harden GitHub backups 2026-01-07 18:48:09 +00:00
Shadowandvercel[bot] <35613825+vercel[bot]@users.noreply.github.com> 2492a52ca3 Update skillPublish.ts
Co-authored-by: vercel[bot] <35613825+vercel[bot]@users.noreply.github.com>
2026-01-07 18:48:09 +00:00
Shadow 9b6a4c7b6f chore: format lint fixes 2026-01-07 18:48:09 +00:00
Shadow 232d06debd fix: preserve previous commit in github history 2026-01-07 18:48:09 +00:00
Shadow e6ba699b18 feat: back up skills to github 2026-01-07 18:48:09 +00:00
Peter Steinberger 7444c22d57 chore: bump cli version to 0.1.0 2026-01-07 19:13:00 +01:00
Peter Steinberger cf26cd143a fix: address deploy typecheck 2026-01-07 18:49:49 +01:00
Peter Steinberger 82b426cc8e fix: harden multipart publish parsing 2026-01-07 18:42:44 +01:00
Peter Steinberger ba7e82ba02 feat: add v1 public api 2026-01-07 18:28:51 +01:00
Peter Steinberger 9f83114dee chore: add docs:list helper 2026-01-07 17:58:00 +01:00
Peter Steinberger a98b51a2a1 test: fix upload route mocks 2026-01-07 17:53:01 +01:00
Peter Steinberger 4d6987097d style: format dashboard and upload routes 2026-01-07 17:52:57 +01:00
Peter Steinberger 1bf3bcf152 docs: add Mintlify-ready docs set 2026-01-07 17:52:55 +01:00
Peter Steinberger 974338fb97 docs: thank dbhurley for dashboard 2026-01-07 10:08:20 +01:00
Peter Steinberger 927cd4d425 Merge pull request #2 from dbhurley/feat/user-dashboard
feat: Add user dashboard with skill management
2026-01-07 09:07:42 +00:00
Peter Steinberger bfa59cabf5 merge main into feat/user-dashboard 2026-01-07 10:06:14 +01:00
Peter Steinberger 2a28f75fc6 docs: thank dbhurley in changelog 2026-01-07 09:50:31 +01:00
Peter Steinberger fff263ee68 Merge pull request #4 from dbhurley/fix/token-color-error
fix: handle shorthand hex colors in SkillDiffCard
2026-01-07 08:50:02 +00:00
Peter Steinberger af40c53bc1 style: pad diff file list 2026-01-07 07:52:37 +01:00
Peter Steinberger 74a0ca9bf6 style: remove diff hover lift 2026-01-07 07:42:10 +01:00
Peter Steinberger 3f85eccd1a refactor: make skill detail full width 2026-01-07 07:17:14 +01:00
Peter Steinberger 9513bd9f44 style: remove divider before versions 2026-01-07 07:04:55 +01:00
Peter Steinberger 27958bbb69 fix: type skill origin in tests 2026-01-07 06:18:41 +01:00
Peter Steinberger 7a62bec162 style: format skill tests 2026-01-07 06:16:21 +01:00
Peter Steinberger e895840411 test: cover skill utilities 2026-01-07 06:13:42 +01:00
Peter Steinberger 9c574a7709 feat: redesign skill detail layout 2026-01-07 05:56:12 +01:00
Peter Steinberger 6af5cf11ec docs: note Convex run --env-file auth gotcha 2026-01-07 05:50:42 +01:00
Peter Steinberger 237a965673 feat: dedupe skills via canonical forks 2026-01-07 05:20:19 +01:00
DB Hurley 219e3257ec fix: normalize hex colors in SkillDiffCard to prevent Monaco crash 2026-01-06 21:44:36 -05:00
Peter Steinberger 5e1598954f feat: add Vercel Analytics 2026-01-07 03:23:12 +01:00
Peter Steinberger 0a059e337f style: align version rows 2026-01-07 02:21:13 +01:00
Peter Steinberger 3d24969f1e style: refine comment form sizing 2026-01-07 02:20:00 +01:00
Peter Steinberger cc530d8a69 test: raise coverage for diffing 2026-01-07 01:46:03 +01:00
Peter Steinberger 6049863b8f feat: add skill diff viewer 2026-01-06 23:29:03 +01:00
Peter Steinberger 76ad34eb89 chore: release 0.0.5 2026-01-06 17:29:28 +01:00
Peter Steinberger 6be9f93eeb refactor: split large modules 2026-01-06 17:24:17 +01:00
Peter Steinberger 1f0d02019b fix: yaml frontmatter + summary backfill 2026-01-06 05:19:00 +01:00
Peter Steinberger 7ef25343ec docs: update changelog 2026-01-06 04:20:35 +01:00
Peter Steinberger 5365827416 fix: ignore plural skills.md markers 2026-01-06 04:03:54 +01:00
Peter Steinberger baee5aee2e fix: show wordmark on mobile 2026-01-06 03:07:36 +01:00
Peter Steinberger 1eebbd4c2d chore: log webhook sends 2026-01-06 02:53:08 +01:00
Peter Steinberger f9ea6ab355 feat: improve Open Graph preview 2026-01-06 02:46:47 +01:00
Peter Steinberger dfe6150474 feat: move theme picker into mobile menu 2026-01-06 02:03:43 +01:00
Peter Steinberger 860b3a369c feat: track installs via sync telemetry 2026-01-06 01:38:49 +01:00
Peter Steinberger 7eb8286f4c feat: add discord webhooks 2026-01-06 00:53:58 +01:00
Peter Steinberger 721dcea079 fix(web): improve mobile responsiveness 2026-01-06 00:26:32 +01:00
Peter Steinberger d067f8f5ed feat: auto-generate changelogs 2026-01-06 00:16:36 +01:00
Peter Steinberger 9a216acb4c fix: add skill og cards 2026-01-05 23:43:20 +01:00
DB Hurley d4b947af47 feat: Add user dashboard with skill management
- Add /dashboard route showing user's published skills
- Add 'Dashboard' link to user dropdown menu in header
- Skills display name, slug, description, stats (downloads, stars, versions)
- 'New Version' button links to upload with pre-populated slug
- Upload route accepts ?updateSlug param to pre-fill form for updates
- Auto-bumps version number when updating existing skill
- Responsive design for mobile
- Empty state with call-to-action for new users
2026-01-05 17:34:54 -05:00
Peter Steinberger bf1a2d6966 chore: release 0.0.4 2026-01-05 23:28:14 +01:00
Peter Steinberger 17ecc9d648 fix: reduce embedding payload size 2026-01-05 23:13:59 +01:00
Peter Steinberger 9f1e003401 fix: prefer discovered registry 2026-01-05 22:52:41 +01:00
Peter Steinberger 709f2f30de fix: cap embedding input size 2026-01-05 22:03:31 +01:00
Peter Steinberger 79c3baec13 docs(web): fix ClawdBot casing 2026-01-05 21:53:33 +01:00
Peter Steinberger ab1e3f0185 docs(web): adjust footer copy 2026-01-05 21:51:41 +01:00
Peter Steinberger 1d030b9c78 fix(cli): make bin executable 2026-01-05 21:50:30 +01:00
Peter Steinberger 9f4d111892 style(web): soften footer 2026-01-05 18:48:09 +01:00
Peter Steinberger bebee5e124 feat(web): add global footer + see-all 2026-01-05 18:42:08 +01:00
Peter Steinberger e8653dc793 fix(web): smooth hero search transition 2026-01-05 06:37:31 +01:00
Peter Steinberger d8dd6542ca docs: rewrite README 2026-01-05 05:51:16 +01:00
Peter Steinberger 2303457da6 test(web): cover skill detail loading 2026-01-05 04:47:05 +01:00
Peter Steinberger d7862a8d35 docs(changelog): note folder upload unwrap 2026-01-05 04:40:09 +01:00
Peter Steinberger c91b7069d8 fix(web): accept folder uploads with SKILL.md 2026-01-05 04:39:52 +01:00
Peter Steinberger 73ae10b023 feat(web): canonical skill urls 2026-01-05 04:22:37 +01:00
Peter Steinberger d32fb65207 feat(web): admin highlight toggle 2026-01-05 04:14:05 +01:00
Peter Steinberger d6efc003e1 fix(web): user profile avatar + loading 2026-01-05 04:10:59 +01:00
Peter Steinberger e767392fd6 fix(web): show loading state on skills list 2026-01-05 04:08:22 +01:00
Peter Steinberger 47603e4ff3 feat(web): add skills list + sorting 2026-01-05 04:06:52 +01:00
Peter Steinberger 8ece7713ed fix(web): avoid skill not found flash 2026-01-05 03:56:34 +01:00
Peter Steinberger 3c31b460ff fix(web): keep search request id simple 2026-01-05 03:42:46 +01:00
Peter Steinberger 554d5d4cd0 feat: unify homepage search 2026-01-05 03:37:16 +01:00
Peter Steinberger 236c670015 fix(cli): unbox sync output 2026-01-05 01:59:39 +01:00
Peter Steinberger e617345233 docs: update 0.0.3 changelog 2026-01-05 01:49:55 +01:00
Peter Steinberger e0528139b3 docs(changelog): add 0.0.4 entries 2026-01-05 01:49:15 +01:00
Peter Steinberger 99de234c1e feat: add install command switcher 2026-01-05 01:48:44 +01:00
Peter Steinberger 8f97dc08d9 test: fix sync test typing 2026-01-05 01:48:36 +01:00
Peter Steinberger ed0e15c572 perf(cli): default sync concurrency to 4 2026-01-05 01:44:25 +01:00
Peter Steinberger 2f0f1b6df7 chore: release 0.0.3 2026-01-04 19:32:49 +01:00
Peter Steinberger a096aaa026 feat: improve sync UX and bundle schema 2026-01-04 19:31:53 +01:00
Peter Steinberger 0514a9b57f feat: refine home skill cards 2026-01-04 19:31:19 +01:00
Peter Steinberger 541f96cbbf chore: release 0.0.2 2026-01-04 18:16:44 +01:00
Peter Steinberger 3af9cdfc0c fix: dedupe sync list and add tests 2026-01-04 17:57:40 +01:00
Peter Steinberger b974bc7c0b fix: add parsing progress for sync 2026-01-04 17:47:59 +01:00
Peter Steinberger 91233dfe57 fix: improve sync selection output 2026-01-04 17:30:03 +01:00
Peter Steinberger 2a2749f852 fix: improve zip upload handling 2026-01-04 16:45:56 +01:00
Peter Steinberger 56230aa329 test: expand cli coverage
- add e2e coverage for install/update + --cli-version
- add unit coverage for sync optional changelog
- add handler tests for delete/undelete
2026-01-04 15:55:49 +01:00
Peter Steinberger b93bb5830b feat(clawdhub): soft delete skills
- make changelog optional for publish/sync
- add CLI delete/undelete + API routes
- hide deleted skills from search/download
- add e2e + manual testing doc + changelog
2026-01-04 15:50:09 +01:00
Peter Steinberger 6d1a376515 fix(clawdhub): normalize bin path for npm 2026-01-04 14:54:15 +01:00
Peter Steinberger 62fe5954b0 chore: rename schema package for npm 2026-01-04 14:50:11 +01:00
Peter Steinberger 41dd6de0e1 fix(clawdhub): default to sync and robust resolve check 2026-01-04 13:07:22 +01:00
Peter Steinberger 2c04427f67 chore: remove jan4 refactor checklist 2026-01-04 07:55:25 +01:00
Peter Steinberger 64569284e9 docs: check off CI 2026-01-04 07:55:17 +01:00
Peter Steinberger 1ab9c35f15 docs: check off gate 2026-01-04 07:53:33 +01:00
Peter Steinberger 292c2ecbb9 chore: format sync test 2026-01-04 07:53:21 +01:00
Peter Steinberger cf70a8f961 docs(clawdhub): clarify auth + sync usage 2026-01-04 07:52:18 +01:00
Peter Steinberger 410d2e04f7 test(clawdhub): cover sync status classification 2026-01-04 07:51:08 +01:00
Peter Steinberger 4965ff6f1f docs: check off clawdbot roots 2026-01-04 07:48:08 +01:00
Peter Steinberger 11315a83c2 feat(clawdhub): detect clawdbot skill roots 2026-01-04 07:47:55 +01:00
Peter Steinberger 0f0e955479 docs: jan4 refactor checklist 2026-01-04 07:47:04 +01:00
Peter Steinberger 0103c00a72 feat(clawdhub): add local skills sync 2026-01-04 07:41:12 +01:00
Peter Steinberger de907c9dbe test: add opt-in e2e suite 2026-01-04 07:28:47 +01:00
Peter Steinberger 5d96853cff fix(schema): allow multiple search results 2026-01-04 07:22:41 +01:00
Peter Steinberger ceeb1162ca feat(clawdhub): colorized help with build label 2026-01-04 07:20:33 +01:00
Peter Steinberger 5e86028356 fix(test): make publish smoke test typecheck 2026-01-04 07:15:17 +01:00
Peter Steinberger 4867d3389d test(clawdhub): add publish smoke test 2026-01-04 07:13:35 +01:00
Peter Steinberger 5108072523 chore: remove jan4 refactor checklist 2026-01-04 07:08:09 +01:00
Peter Steinberger b61c0c240e docs: complete jan4 checklist 2026-01-04 07:06:58 +01:00
Peter Steinberger ff6f2f6b36 fix: restore @auth/core for Convex auth 2026-01-04 07:04:58 +01:00
Peter Steinberger c25bd0808d chore: update dependencies 2026-01-04 06:57:30 +01:00
Peter Steinberger 0460d03780 docs: note npm name availability 2026-01-04 06:53:24 +01:00
Peter Steinberger 3ddbac35f3 feat: proxy /api to Convex 2026-01-04 06:51:49 +01:00
Peter Steinberger 6b4e0f6c0f refactor(clawdhub): split CLI modules 2026-01-04 06:48:56 +01:00
Peter Steinberger e2e3e792b5 chore(schema): update dist 2026-01-04 06:35:08 +01:00
Peter Steinberger f671b886ce refactor(clawdhub): centralize registry resolution 2026-01-04 06:35:03 +01:00
Peter Steinberger 690413fb60 chore(schema): update dist 2026-01-04 06:31:48 +01:00
Peter Steinberger c9869901d0 feat: well-known v1 config 2026-01-04 06:31:41 +01:00
Peter Steinberger 827205a21e fix(auth): add state nonce 2026-01-04 06:29:33 +01:00
Peter Steinberger 51fe501601 fix: move route tests out of routes 2026-01-04 06:26:40 +01:00
Peter Steinberger 54d7fc0f2b docs: add jan4 refactor checklist 2026-01-04 06:22:58 +01:00
Peter Steinberger 21941b5a08 docs(clawdhub): describe registry discovery 2026-01-04 06:18:30 +01:00
Peter Steinberger e3de833359 fix(clawdhub): registry discovery + label b64 2026-01-04 06:16:09 +01:00
Peter Steinberger 7829eb13de chore(schema): update dist 2026-01-04 06:16:03 +01:00
Peter Steinberger c6cfc4feb5 feat(schema): add well-known registry config 2026-01-04 06:11:46 +01:00
Peter Steinberger 3a175f4d33 chore(docs): remove jan4 refactor checklist 2026-01-04 06:01:37 +01:00
Peter Steinberger a0133cd6c9 fix(clawdhub): stabilize browser login 2026-01-04 06:01:17 +01:00
Peter Steinberger fb60071c13 chore: dependency audit 2026-01-04 05:58:31 +01:00
Peter Steinberger 57ef9ace63 feat(clawdhub): browser auth login 2026-01-04 05:57:17 +01:00
Peter Steinberger b42573cd3e chore: improve bun clawdhub runner 2026-01-04 05:55:26 +01:00
Peter Steinberger 809119c99a docs: add jan4 refactor checklist 2026-01-04 05:55:01 +01:00
Peter Steinberger b85ba642a5 chore: add bun shortcut runner 2026-01-04 05:31:55 +01:00
Peter Steinberger a4f8e30b7d feat(clawdhub): add auth subcommands 2026-01-04 05:01:30 +01:00
Peter Steinberger 2e558271a2 fix(upload): stabilize file hashing 2026-01-04 04:26:33 +01:00
Peter Steinberger 4baf9d2554 chore(schema): track dist artifacts 2026-01-04 04:24:39 +01:00
Peter Steinberger 8bbecd15f8 chore(docs): remove jan4 refactor checklist 2026-01-04 04:21:49 +01:00
Peter Steinberger e6cb9467c6 fix(clawdhub): typecheck update meta lookup 2026-01-04 04:21:18 +01:00
Peter Steinberger cebf50a842 ci: add GitHub Actions 2026-01-04 04:19:02 +01:00
Peter Steinberger 0c7caf01bf test: cover theme transition 2026-01-04 04:18:40 +01:00
Peter Steinberger b3b558d700 chore: remove unused deps 2026-01-04 04:17:00 +01:00
Peter Steinberger 78bbed1d78 feat(clawdhub): improve publish file collection 2026-01-04 04:15:47 +01:00
Peter Steinberger e7ad1f2e94 refactor(schema): centralize API routes 2026-01-04 04:13:28 +01:00
Peter Steinberger ed8cc656ab refactor(schema): share text file helpers 2026-01-04 04:11:25 +01:00
Peter Steinberger 794ee23c03 chore: prep schema package for publishing
- switch schema deps to semver

- publishConfig + prepublishOnly

- update jan4 checklist
2026-01-04 04:05:43 +01:00
Peter Steinberger d227986dde docs: add jan4 refactor checklist 2026-01-04 04:04:03 +01:00
Peter Steinberger 1f47d000f8 feat(ui): icon theme toggle animation 2026-01-04 04:02:05 +01:00
Peter Steinberger 0cd1a73870 feat(clawdhub): add prompts and retries 2026-01-04 04:01:59 +01:00
Peter Steinberger 5c28a2a252 refactor: extract @clawdhub/schema package
- Move ArkType schemas into packages/schema

- Wire app/convex/cli imports to workspace dep

- Add workspaces + update lint/coverage

- Build schema dist (tracked)
2026-01-04 03:49:57 +01:00
Peter Steinberger 586a08ed4d feat: share runtime schemas with arktype
- Add shared ArkType schemas for CLI+HTTP

- Validate CLI requests/responses + lockfile/config

- Add /api/skill/resolve endpoint + tests

- Keep lint + coverage gates green
2026-01-04 03:38:33 +01:00
Peter Steinberger 2b78e7fe7c fix: harden CLI HTTP API handlers
- Fix /api/search param (approvedOnly)

- Add handler helpers for unit tests

- Add coverage gate (>=70%) + more tests

- Expand type-aware oxlint scope to CLI
2026-01-04 03:03:58 +01:00
Peter Steinberger 2be43c04aa style(markdown): wrap long code lines 2026-01-04 02:47:41 +01:00
Peter Steinberger fe759a574e style(skill): replace star button 2026-01-04 02:43:05 +01:00
Peter Steinberger c2a1ce7e8b feat(skills): add metadata sidebar 2026-01-04 02:41:25 +01:00
Peter Steinberger 0b8c0676d6 style(theme): deepen dark accents 2026-01-04 02:34:38 +01:00
Peter Steinberger c190aec76f chore(copy): swap approval for highlight 2026-01-04 02:33:30 +01:00
Peter Steinberger c745f45e45 feat(search): add highlight filter 2026-01-04 02:33:06 +01:00
Peter Steinberger 1cd4a02af6 chore(copy): simplify search title 2026-01-04 02:27:56 +01:00
Peter Steinberger 8728b6759b style(search): upgrade filter toggle 2026-01-04 02:27:15 +01:00
Peter Steinberger c891fc984b style(cli): wrap long lines 2026-01-04 02:25:04 +01:00
Peter Steinberger 6169c87cdc fix(upload): use dropzone button 2026-01-04 02:24:44 +01:00
Peter Steinberger 1020c5ae3a style: wrap api and cli lines 2026-01-04 02:21:50 +01:00
Peter Steinberger 0c2da9fdd2 style(ui): normalize imports 2026-01-04 02:21:40 +01:00
Peter Steinberger ab1cb6b48f feat(settings): add api token management 2026-01-04 02:21:27 +01:00
Peter Steinberger 6c4d62777e chore: update generated types 2026-01-04 02:18:21 +01:00
Peter Steinberger d104bed8fb feat(cli): add registry client 2026-01-04 02:17:45 +01:00
Peter Steinberger 7dcd243275 feat(api): add cli token auth 2026-01-04 02:17:33 +01:00
Peter Steinberger f4036351a8 chore(copy): streamline home stats 2026-01-04 02:17:21 +01:00
Peter Steinberger 5babca05f0 feat(settings): upgrade profile card 2026-01-04 02:17:13 +01:00
Peter Steinberger 660e59742b fix(convex): require changelog on updates 2026-01-04 02:08:24 +01:00
Peter Steinberger a89a46a1cc fix(upload): gate validation feedback 2026-01-04 02:08:14 +01:00
Peter Steinberger e1022fdef3 feat(brand): use clawd logo 2026-01-04 01:59:04 +01:00
Peter Steinberger e95ccacfa0 fix(upload): show convex error details 2026-01-03 23:32:20 +01:00
Peter Steinberger 1b5a5a8d35 chore(dev): add convex deploy shortcut 2026-01-03 22:53:55 +01:00
Peter Steinberger caa94f0ba6 fix(types): align file buffers for convex deploy 2026-01-03 22:53:44 +01:00
Peter Steinberger e638154f64 fix(convex): surface publish errors 2026-01-03 22:38:26 +01:00
Peter Steinberger 1151e92a47 chore(assets): update favicon 2026-01-03 22:35:24 +01:00
Peter Steinberger 303fce970e feat(ui): adopt shadcn primitives 2026-01-03 22:35:15 +01:00
Peter Steinberger aaab5d53bc chore(deps): add radix ui primitives 2026-01-03 22:34:58 +01:00
Peter Steinberger 84cae81864 chore(deps): update dependencies 2026-01-03 22:24:17 +01:00
Peter Steinberger 90d6b50662 fix(upload): clean errors and remove badge 2026-01-03 22:24:00 +01:00
Peter Steinberger 320f431f2d feat(theme): add mode toggle and user menu 2026-01-03 22:23:39 +01:00
Peter Steinberger da636b20d1 fix(upload): handle publish errors and redirect 2026-01-03 22:09:28 +01:00
Peter Steinberger 4abb5181bb feat(upload): add archive extraction and form polish 2026-01-03 22:02:39 +01:00
Peter Steinberger 63d94a06a7 docs: add repository guidelines 2026-01-03 19:38:18 +01:00
Peter Steinberger 2eeeb9a433 chore: commit convex generated api 2026-01-03 19:28:00 +01:00
Peter Steinberger 10634d1789 fix: resolve typecheck errors 2026-01-03 18:45:37 +01:00
Peter Steinberger 30640a10c8 fix: resolve type lint issues 2026-01-03 18:33:18 +01:00
Peter Steinberger 05a2604cb6 style: apply biome formatting 2026-01-03 18:23:30 +01:00
Peter Steinberger b78ed1e242 chore: fix lint and typings 2026-01-03 18:23:01 +01:00
Peter Steinberger c5a40d6d09 chore: clean repo leftovers 2026-01-03 18:17:42 +01:00
Peter Steinberger 746905d7b9 fix: align auth core version 2026-01-03 18:15:49 +01:00
Peter Steinberger 0533b780be fix: correct user profile route filename 2026-01-03 18:14:54 +01:00
Peter Steinberger 8df19780ea feat: bootstrap clawdhub 2026-01-03 18:14:33 +01:00
Peter Steinberger fa4859bc88 Initial commit 2026-01-03 14:49:41 +01:00
1123 changed files with 105904 additions and 6406 deletions
+19
View File
@@ -0,0 +1,19 @@
# Frontend
VITE_CONVEX_URL=
VITE_CONVEX_SITE_URL=
VITE_SOULHUB_SITE_URL=
VITE_SOULHUB_HOST=
VITE_SITE_MODE=
SITE_URL=http://localhost:3000
CONVEX_SITE_URL=
# Convex Auth (GitHub OAuth App)
AUTH_GITHUB_ID=
AUTH_GITHUB_SECRET=
# Convex Auth JWT keys (generated via @convex-dev/auth CLI)
JWT_PRIVATE_KEY=
JWKS=
# Embeddings
OPENAI_API_KEY=
+41
View File
@@ -0,0 +1,41 @@
name: CI
on:
push:
branches: [main]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v6
- uses: oven-sh/setup-bun@e3914758a49697077f7bcd190d36582a61667aad
with:
bun-version: 1.3.10
- name: Install
run: bun install --frozen-lockfile
- name: Peer deps
run: bun run check:peers
- name: Lint
run: bun run lint
- name: Test
run: bun run test
- name: Coverage
run: bun run coverage
- name: Typecheck
run: |
bunx tsc --noEmit
bunx tsc -p packages/schema/tsconfig.json --noEmit
bunx tsc -p packages/clawdhub/tsconfig.json --noEmit
- name: Build
run: bun run build
+138
View File
@@ -0,0 +1,138 @@
name: Deploy
on:
push:
branches: [main]
workflow_dispatch:
concurrency:
group: deploy-production
cancel-in-progress: true
jobs:
preflight-secrets:
runs-on: ubuntu-latest
timeout-minutes: 5
env:
CONVEX_DEPLOY_KEY: ${{ secrets.CONVEX_DEPLOY_KEY }}
PLAYWRIGHT_AUTH_STORAGE_STATE_JSON: ${{ secrets.PLAYWRIGHT_AUTH_STORAGE_STATE_JSON }}
steps:
- name: Check deploy secrets
run: |
missing=()
if [[ -z "$CONVEX_DEPLOY_KEY" ]]; then
missing+=("CONVEX_DEPLOY_KEY")
fi
if (( ${#missing[@]} > 0 )); then
echo "::error::Missing required GitHub Actions secrets: ${missing[*]}"
exit 1
fi
if [[ -z "$PLAYWRIGHT_AUTH_STORAGE_STATE_JSON" ]]; then
echo "PLAYWRIGHT_AUTH_STORAGE_STATE_JSON not set; authenticated smoke will be skipped."
fi
deploy-convex:
runs-on: ubuntu-latest
timeout-minutes: 20
needs: preflight-secrets
env:
CONVEX_DEPLOY_KEY: ${{ secrets.CONVEX_DEPLOY_KEY }}
steps:
- uses: actions/checkout@v6
- uses: oven-sh/setup-bun@e3914758a49697077f7bcd190d36582a61667aad
with:
bun-version: 1.3.10
- name: Install
run: bun install --frozen-lockfile
- name: Stamp Convex build SHA
run: bunx convex env set APP_BUILD_SHA "${GITHUB_SHA}" --prod
- name: Stamp Convex deploy time
run: bunx convex env set APP_DEPLOYED_AT "$(date -u +"%Y-%m-%dT%H:%M:%SZ")" --prod
- name: Deploy Convex
run: bun run convex:deploy
- name: Verify Convex contract
run: bun run verify:convex-contract -- --prod
wait-vercel-production:
runs-on: ubuntu-latest
timeout-minutes: 20
needs:
- preflight-secrets
- deploy-convex
steps:
- name: Wait for Vercel production deployment
env:
GH_TOKEN: ${{ github.token }}
GITHUB_REPOSITORY: ${{ github.repository }}
GITHUB_SHA: ${{ github.sha }}
VERCEL_STATUS_CONTEXT: Vercel clawhub
run: |
for attempt in {1..90}; do
state="$(gh api "repos/$GITHUB_REPOSITORY/commits/$GITHUB_SHA/status" \
--jq '.statuses[] | select(.context == env.VERCEL_STATUS_CONTEXT) | .state' \
2>/dev/null | head -n1)"
case "$state" in
success)
echo "Vercel production deployment ready for $GITHUB_SHA"
exit 0
;;
failure|error)
echo "::error::Vercel production deployment failed for $GITHUB_SHA"
exit 1
;;
pending)
echo "Vercel deployment pending for $GITHUB_SHA; waiting..."
;;
*)
echo "Vercel status for $GITHUB_SHA not published yet; waiting..."
;;
esac
sleep 10
done
echo "::error::Timed out waiting for Vercel production deployment for $GITHUB_SHA"
exit 1
smoke-production:
runs-on: ubuntu-latest
timeout-minutes: 20
needs:
- preflight-secrets
- deploy-convex
- wait-vercel-production
env:
PLAYWRIGHT_BASE_URL: https://clawhub.ai
steps:
- uses: actions/checkout@v6
- uses: oven-sh/setup-bun@e3914758a49697077f7bcd190d36582a61667aad
with:
bun-version: 1.3.10
- name: Install
run: bun install --frozen-lockfile
- name: Install Playwright browser
run: bunx playwright install --with-deps chromium
- name: Write authenticated storage state
if: env.PLAYWRIGHT_AUTH_STORAGE_STATE_JSON != ''
env:
PLAYWRIGHT_AUTH_STORAGE_STATE_JSON: ${{ secrets.PLAYWRIGHT_AUTH_STORAGE_STATE_JSON }}
run: |
echo "$PLAYWRIGHT_AUTH_STORAGE_STATE_JSON" > "$RUNNER_TEMP/playwright-auth.json"
echo "PLAYWRIGHT_AUTH_STORAGE_STATE=$RUNNER_TEMP/playwright-auth.json" >> "$GITHUB_ENV"
- name: Smoke test production
run: bunx playwright test e2e/menu-smoke.pw.test.ts e2e/upload-auth-smoke.pw.test.ts
+35
View File
@@ -0,0 +1,35 @@
name: "Security Gate: Secret Scanning"
on:
pull_request:
branches: [main, master]
jobs:
trufflehog:
name: Scan for Verified Secrets
runs-on: ubuntu-latest
permissions:
contents: read # Required to scan the code in the PR
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
fetch-depth: 0 # necessary to support the scoping requirements below
- name: TruffleHog OSS
id: trufflehog
# Use a concrete released ref that resolves in upstream action registry.
# v3 (major tag) is not published by trufflesecurity/trufflehog.
uses: trufflesecurity/trufflehog@v3.93.8
with:
path: ./
base: ${{ github.event.pull_request.base.sha }} # scope it to the committed files
head: ${{ github.event.pull_request.head.sha }}
extra_args: --only-verified --debug
- name: Notify on Failure
if: steps.trufflehog.outcome == 'failure'
run: |
echo "::error::Verified secrets found! This PR contains live credentials that must be rotated immediately."
echo "::notice::If these secrets are already in the commit history, they cannot be removed via a simple removal commit/push. A repository owner can contact GitHub Support to purge the cached data: https://support.github.com/contact/private-information"
exit 1
+26
View File
@@ -0,0 +1,26 @@
node_modules
.DS_Store
.bun-build
*.bun-build
bin/docs-list
dist
dist-ssr
!packages/schema/dist
!packages/schema/dist/**
*.local
.vercel
count.txt
.env
.nitro
.tanstack
.wrangler
.output
.vinxi
todos.json
.cta.json
.vscode
.env*.local
coverage
playwright-report
test-results
.playwright
+20
View File
@@ -0,0 +1,20 @@
{
"$schema": "./node_modules/oxfmt/configuration_schema.json",
"experimentalSortImports": {
"newlinesBetween": false,
},
"experimentalSortPackageJson": {
"sortScripts": true,
},
"ignorePatterns": [
".output/",
".tanstack/",
"convex/_generated/",
"coverage/",
"dist/",
"node_modules/",
"public/",
"src/routeTree.gen.ts",
"test-results/",
],
}
+37
View File
@@ -0,0 +1,37 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["unicorn", "typescript", "oxc"],
"categories": {
"correctness": "error",
"perf": "error",
"suspicious": "error"
},
"rules": {
"curly": "off",
"eslint-plugin-unicorn/prefer-array-find": "off",
"eslint-plugin-unicorn/no-array-sort": "off",
"eslint/no-await-in-loop": "off",
"eslint/no-new": "off",
"oxc/no-accumulating-spread": "off",
"oxc/no-async-endpoint-handlers": "off",
"oxc/no-map-spread": "off",
"typescript/no-explicit-any": "error",
"typescript/no-extraneous-class": "off",
"typescript/no-unnecessary-boolean-literal-compare": "off",
"typescript/no-unnecessary-type-assertion": "off",
"typescript/no-unsafe-type-assertion": "off",
"unicorn/consistent-function-scoping": "off",
"unicorn/require-post-message-target-origin": "off"
},
"ignorePatterns": [
".output/",
".tanstack/",
"convex/_generated/",
"coverage/",
"dist/",
"node_modules/",
"public/",
"src/routeTree.gen.ts",
"test-results/"
]
}
+77
View File
@@ -0,0 +1,77 @@
# Repository Guidelines
## Project Structure & Module Organization
- `src/` — TanStack Start app code (routes, components, styles).
- `convex/` — Convex backend (schema, queries/mutations/actions, HTTP routes).
- `convex/_generated/` — generated Convex API/types; committed for builds.
- `docs/` — product/spec docs (see `docs/spec.md`).
- `public/` — static assets.
## Build, Test, and Development Commands
- `bun run dev` — local app server at `http://localhost:3000`.
- `bun run build` — production build (Vite + Nitro).
- `bun run preview` — preview built app.
- `bunx convex dev` — Convex dev deployment + function watcher.
- `bunx convex codegen` — regenerate `convex/_generated`.
- `bun run lint` — Biome + oxlint (type-aware).
- `bun run test` — Vitest (unit tests).
- `bun run coverage` — coverage run; keep global >= 80%.
## Coding Style & Naming Conventions
- TypeScript strict; ESM.
- Indentation: 2 spaces, single quotes (Biome).
- Lint/format: Biome + oxlint (type-aware).
- Convex function names: verb-first (`getBySlug`, `publishVersion`).
## Testing Guidelines
- Framework: Vitest 4 + jsdom.
- Tests live in `src/**` and `convex/lib/**`.
- Coverage threshold: 80% global (lines/functions/branches/statements).
- Example: `convex/lib/skills.test.ts`.
## Commit & Pull Request Guidelines
- Commit messages: Conventional Commits (`feat:`, `fix:`, `chore:`, `docs:`…).
- Keep changes scoped; avoid repo-wide search/replace.
- PRs: include summary + test commands run. Add screenshots for UI changes.
- Before merging any PR, verify TypeScript cleanly with `bunx tsc -p packages/schema/tsconfig.json --noEmit` and `bunx tsc -p packages/clawdhub/tsconfig.json --noEmit`; if Convex code changed, also run the repo typecheck path used by deploy so `bunx convex deploy` will not fail on `tsc`.
- GitHub comments: for multiline `gh` comments/close messages, use `--body-file`, `--input`, or stdin/heredoc with real newlines; never pass literal `\\n` in shell strings.
- Reject PRs that add skills into source code/repo content directly (for example under `skills/` or seed-only additions intended as published skills). Skills must be uploaded/published via CLI.
## Git Notes
- If `git branch -d/-D <branch>` is policy-blocked, delete the local ref directly: `git update-ref -d refs/heads/<branch>`.
## URL Quick Reference
- Canonical site: `https://clawhub.ai` (prefer this over legacy domains).
- Skill page URL format: `https://clawhub.ai/<owner>/<slug>` (owner handle preferred; falls back to owner id).
- Skill API detail URL: `https://clawhub.ai/api/v1/skills/<slug>`.
- Skill file URL: `https://clawhub.ai/api/v1/skills/<slug>/file?path=SKILL.md`.
- For “full URL?” requests, return the canonical page URL first, then API URL if useful.
## Configuration & Security
- Local env: `.env.local` (never commit secrets).
- Convex env holds JWT keys; Vercel only needs `VITE_CONVEX_URL` + `VITE_CONVEX_SITE_URL`.
- OAuth: GitHub OAuth App credentials required for login.
## Convex Ops (Gotchas)
- New Convex functions must be pushed before `convex run`: use `bunx convex dev --once` (dev) or `bunx convex deploy` (prod).
- For non-interactive prod deploys, use `bunx convex deploy -y` to skip confirmation.
- If `bunx convex run --env-file .env.local ...` returns `401 MissingAccessToken` despite `bunx convex login`, workaround: omit `--env-file` and use `--deployment-name <name>` / `--prod`.
## Convex Query & Bandwidth Rules
- **Always use `.withIndex()` instead of `.filter()` for fields that can be indexed.** `.filter()` causes full table scans — every doc is read and billed. Even a single `.filter()` on a 16K-row table reads ~16 MB per call.
- **Convex reads entire documents** — no field projections. If you only need a few fields from large docs (~6 KB+), denormalize a lightweight summary onto the parent doc or use a lookup table (see `embeddingSkillMap`, `skill.latestVersionSummary`, `skill.badges` for examples).
- **Denormalization pattern**: persist computed fields so they can be indexed. Every mutation that updates source fields must also update the denormalized field. Always write a cursor-based backfill for new fields (see `backfillIsSuspiciousInternal`, `backfillLatestVersionSummaryInternal`, `backfillDenormalizedBadgesInternal` for examples).
- **Cron jobs must never scan entire tables.** Use indexed queries with equality filters. Use cursor-based pagination for large datasets. Prefer incremental/delta tracking over full recounts.
- **32K document limit per query.** Split `.collect()` calls by a partition field (e.g., one day at a time instead of a 7-day range). See `rebuildTrendingLeaderboardAction` in `convex/leaderboards.ts` for an example.
- **Common mistakes**: `.filter().collect()` without an index; `ctx.db.get()` on large docs in a loop for list views; while loops that paginate the whole table to find filtered results.
- **Before writing or reviewing Convex queries, check deployment health.** Run `bunx convex insights` to check for OCC conflicts, `bytesReadLimit`, and `documentsReadLimit` errors. Run `bunx convex logs --failure` to see individual error messages and stack traces. This helps identify which functions are causing bandwidth issues so you can prioritize fixes.
+366
View File
@@ -0,0 +1,366 @@
# Changelog
## 0.9.0 - 2026-03-23
### Added
- Packages/Plugins: add a first-class OpenClaw package registry across the web app, CLI, and HTTP API. ClawHub now supports package browse/search/detail/version/file/download flows plus `clawhub package explore`, `clawhub package inspect`, and `clawhub package publish` for `skill`, `code-plugin`, and `bundle-plugin` packages. (#1093)
- Packages/Install: package downloads now ship install-ready archives with a `package/` root, support nested files like `dist/index.js`, and work directly with OpenClaw plugin install flows.
- Skills/Web: server-render public skill pages and OG assets for faster first loads, cleaner sharing previews, and better cache behavior.
### Changed
- Browse/Search: rebuild public browse/search around denormalized digests, one-shot HTTP fetches, and deterministic cursors so the homepage and `/skills` are faster, more cacheable, and less likely to hit stale-tab or pagination dead ends.
- Search: default skill search to relevance, keep load-more retryable after fetch failures, and tighten package/skill catalog query paths to reduce inconsistent results under load.
### Fixed
- Packages/Auth: authenticated owners can now list, search, inspect, download, and read files from their own private packages instead of private packages being direct-URL-only. (#1093)
- Packages/API: stabilize package latest-version pointers, cursor pagination, publish outputs, fallback release resolution, and app-origin auth handling so package publish/search/install flows stay reliable.
- Visibility/API: prevent skills owned by deleted/banned users from showing up in public detail pages, browse/search results, or version API routes.
- Skills/API: sanitize public skill and soul version/file reads so hidden or invalid version data does not leak through direct API access.
- Skills/Web: keep Monaco compare layout toggles reliable while defaulting narrow screens to inline mode (#828) (thanks @geoffrey-xiao).
## 0.8.0 - 2026-03-13
### Added
- Skills/Web: show skill owner avatar + handle on skill cards, lists, and detail pages (#312) (thanks @ianalloway).
- Skills/Web: add file viewer for skill version files on detail page (#44) (thanks @regenrek).
- CLI: add `uninstall` command for skills (#241) (thanks @superlowburn).
- Skills/API/CLI: add ownership transfer workflow with request/list/accept/reject/cancel flows.
- Skills/Web/API: surface platform/architecture labels and security evaluation results in v1 + inspect views (#499, #362).
- API: add structured skill moderation responses plus `GET /api/v1/skills/{slug}/moderation` with redacted public evidence and full owner/staff detail (#334) (thanks @ArthurzKV).
- Moderation: persist structured moderation snapshots (static scan + VT/LLM merged verdict, reason codes, and evidence) on skills and versions (#333) (thanks @ArthurzKV).
- API: add scan security verification endpoint and non-suspicious filters (#820).
- Users: add `trustedPublisher` flag and admin mutations to bypass pending-scan auto-hide for trusted publishers (#298) (thanks @autogame-17).
- Moderation: add comment reporting with per-user active report caps, unique reporter/target enforcement, and auto-hide on the 4th unique report.
- Moderation: add AI-driven comment scam backfill (`commentModeration:*`) with persisted verdict/confidence/explainer metadata and strict auto-ban for `certain_scam` + `high` confidence.
- Admin: add manual unban for banned users (clears `deletedAt` + `banReason`, audit log entry). Revoked API tokens stay revoked.
- Admin: bulk restore skills from GitHub backup; reclaim squatted slugs via v1 endpoints + internal tooling (#298) (thanks @autogame-17).
- Moderation/Admin: add manual override audit tools for suspicious-skill review.
- CI/Security: add TruffleHog pull-request scanning for verified leaked credentials (#505) (thanks @akses0).
### Changed
- Skills: make published skill licensing explicit and fixed to MIT-0; require publish consent, surface no-attribution messaging in web/CLI/API, and remove per-skill license metadata.
- Skill metadata: support env vars, dependency declarations, author, and links in parsed manifest metadata + install UI (#360) (thanks @mahsumaktas).
- Rate limiting: apply authenticated quotas by user bucket (vs shared IP), emit delay-based reset headers, and improve CLI 429 guidance/retries (#412) (thanks @lc0rp).
- Skills: reserve deleted slugs for prior owners (90-day cooldown) to prevent squatting; add admin reclaim flow (#298) (thanks @autogame-17).
- Moderation: ban flow soft-deletes owned skills (reversible) and removes them from vector search (#298) (thanks @autogame-17).
- Security/docs: document comment reporting/auto-hide behavior alongside existing skill reporting rules.
- Security/moderation: add bounded explainable auto-ban reasons for scam comments and protect moderator/admin accounts from automated bans.
- Moderation: banning users now also soft-deletes their authored comments (skill + soul), including legacy cleanup on re-ban.
- Quality gate: language-aware word counting (`Intl.Segmenter`) and new `cjkChars` signal to reduce false rejects for non-Latin docs.
- Jobs: run skill stat event processing every 5 minutes (was 15).
- Deploy: add frontend/backend drift detection plus hardened production smoke/deploy checks.
- API performance: batch resolve skill/soul tags in v1 list/get endpoints (fewer action->query round-trips) (#112) (thanks @mkrokosz).
- LLM helpers: centralize OpenAI Responses text extraction for changelog/summary/eval flows (#502) (thanks @ianalloway).
- Search/listing performance: cut embedding hydration and badge read bandwidth via `embeddingSkillMap` + denormalized skill badges; shift stat-doc sync to low-frequency cron (#441) (thanks @sethconvex).
- Search/listing performance: move public browse/search hydration onto `skillSearchDigest`, add non-suspicious index paths, and split trending rebuilds to stay under Convex document limits.
### Fixed
- API: accept legacy CLI publish payloads during the v1 migration (#815).
- Auth/UI: surface OAuth callback failures in the web UI instead of swallowing them (#688).
- Skills: allow ownership healing when the previous owner was deleted/banned, and sanitize owner data in public payloads (#689, #793).
- CLI: validate explicit `install --force --version` targets before removing an existing local skill, preventing data loss when the requested version does not exist (#825) (thanks @jonathandeamer).
- Skills/Web: debounce search URL updates on `/skills` to keep typing responsive, and cancel stale pending navigations on external query changes (#587) (thanks @neeravmakwana).
- Upload: keep folder-picking enabled after page refresh by reapplying `webkitdirectory`/`directory` on the file input ref (#551) (thanks @MunemHashmi).
- CLI publish: use a longer multipart upload timeout and normalize abort rejections into proper Errors (#550) (thanks @MunemHashmi).
- CLI: forward optional auth tokens for `search` and `explore` against authenticated registries (#608) (thanks @artdaal).
- CLI: respect `HTTPS_PROXY`/`HTTP_PROXY`/`NO_PROXY` env vars for outbound registry requests, with troubleshooting docs (#363) (thanks @kerrypotter).
- CLI: preserve registry base paths when composing API URLs for search/inspect/moderation commands (#486) (thanks @Liknox).
- CLI: show manual URL guidance when automatic browser opening is unavailable; add regression tests for opener errors (#163) (thanks @aronchick).
- API/CLI: expose skill security status in version inspect output, with schema wiring and CLI regression coverage (#362) (thanks @abutbul).
- Moderation: remove over-broad keyword flags for common auth/payment/crypto terms so legitimate skills stop tripping regex prefilters (#273) (thanks @superlowburn).
- Skills hard-delete: delete `commentReports` rows during moderation cleanup to avoid orphaned report records.
- Comments: hide entries authored by deleted/deactivated users in `comments:listBySkill`.
- Admin API: `POST /api/v1/users/reclaim` now performs non-destructive root-slug owner transfer
(preserves existing skill versions/stats/metadata) and clears active slug reservations.
- VirusTotal: use shared AV-engine fallback verdict mapping for pending/backfill flows and keep undetected-only results pending (#591) (thanks @Shuai-DaiDai).
- Skills/listing: keep non-suspicious browse pagination on one cursor family during `isSuspicious` backfill, and re-sync stale `latestVersionSummary` metadata fields (#572) (thanks @sethconvex).
- PWA: update `manifest.json` branding so installed apps show the correct ClawHub name (#569) (thanks @Glucksberg).
- Search/tests: cover soft-deleted skill filtering in vector hydration and lexical exact-slug fallback (#552) (thanks @MunemHashmi).
- Docs/dev: fix local setup instructions for Node support, Convex env vars, frontend port, and post-seed stats refresh (#584) (thanks @jack-piplabs).
- Docs/CLI: fix `explore` flag list indentation so `--limit` renders correctly in the command reference (#601) (thanks @gandli).
- Skill metadata: parse top-level `requires.*`, `primaryEnv`, and homepage fallbacks for security review accuracy (#548) (thanks @MunemHashmi).
- Users: sync handle on ensure when GitHub login changes (#293) (thanks @christianhpoe).
- Users/Auth: throttle GitHub profile sync on login; also sync avatar when it changes (#312) (thanks @ianalloway).
- Upload gate: fetch GitHub account age by immutable account ID (prevents username swaps) (#116) (thanks @mkrokosz).
- VT fallback: activate only VT-pending hidden skills when scans are unavailable/stale; keep quality/scanner-blocked skills hidden (#300) (thanks @superlowburn).
- API: return proper status codes for delete/undelete errors (#35) (thanks @sergical).
- API: for owners, return clearer status/messages for hidden/soft-deleted skills instead of a generic 404.
- Web: allow copying OpenClaw scan summary text (thanks @borisolver, #322).
- HTTP/CORS: add preflight handler + include CORS headers on API/download errors; CLI: include auth token for owner-visible installs/updates (#146) (thanks @Grenghis-Khan).
- CLI: clarify `logout` only removes the local token; token remains valid until revoked in the web UI (#166) (thanks @aronchick).
- CLI: validate skill slugs used for filesystem operations (prevents path traversal) (#241) (thanks @superlowburn).
- Skills: keep global sorting across pagination on `/skills` (thanks @CodeBBakGoSu, #98).
- Skills: allow updating skill description/summary from frontmatter on subsequent publishes (#312) (thanks @ianalloway).
- Skills/Web: prevent filtered pagination dead-ends and loading-state flicker on `/skills`; move highlighted browse filtering into server list query (#339) (thanks @Marvae).
- Web: align `/skills` total count with public visibility and format header count (thanks @rknoche6, #76).
- Skills/Web: centralize public visibility checks and keep `globalStats` skill counts in sync incrementally; remove duplicate `/skills` default-sort fallback and share browse test mocks (thanks @rknoche6, #76).
- Moderation: clear stale `flagged.suspicious` flags when VirusTotal rescans improve to clean verdicts (#418) (thanks @Phineas1500).
- API tests: lock `Retry-After` behavior to relative-delay semantics for v1 search 429s (#421) (thanks @apoorvdarshan).
- CLI tests: assert 5xx HTTP responses still perform retry attempts before surfacing final error (#457) (thanks @YonghaoZhao722).
- GitHub import: improve storage/publish failure errors with actionable context; add regression tests for error formatting (#512) (thanks @vassiliylakhonin).
## 0.7.0 - 2026-02-16
Reconstructed from the `clawhub@0.7.0` npm publish timestamp (`2026-02-16T05:02:25Z`) and the repo version bump commit (`e352309`).
### Added
- Skills/Web: show owner avatars/handles across cards, lists, and detail pages (#312) (thanks @ianalloway).
- Skills/Web: add version file viewer on skill detail pages (#44) (thanks @regenrek).
- CLI: add `uninstall` for installed skills (#241) (thanks @superlowburn).
- Skills/Web: add non-suspicious browse filter, downloads-first browse defaults, and popular non-suspicious homepage sections.
- Web: compact-format skill and soul stats, plus split page models for skills/detail rendering.
- Skills: auto-generate missing summaries and add a resumable/self-scheduling summary backfill job.
- Moderation/Admin: add anti-spam publish caps, trust-tier quality checks, empty-skill cleanup tooling, and stronger moderator UX.
### Changed
- HTTP/CLI: centralize CORS handling and allow tokenized owner-visible reads through the CLI (#296, #297).
- API performance: batch resolve tags in v1 list/get flows to cut action-to-query round-trips (#112) (thanks @mkrokosz).
- Quality gate: add language-aware word counting and tighten spam/quarantine handling around publish flows.
### Fixed
- Skills/Web: fix initial sort wiring, keep global ordering across pagination, prevent pagination dead-ends/flicker, and harden cursor recovery (#92, #98, #339).
- CLI: normalize abort/timeout errors, secure config-file permissions, clarify logout semantics, and prefer `$HOME` for path resolution (#164, #166, #283, #286, #299).
- API: return correct delete/undelete status codes and clearer soft-delete/owner-visible error responses (#35) (thanks @sergical).
- Upload/Auth: gate publish ownership by immutable GitHub account ID and handle duplicate auth-user records safely.
- Downloads/Search: harden download dedupe/rate limiting, improve SSR host awareness, and fix homepage/search regressions under legacy data.
## 0.6.1 - 2026-02-13
### Added
- Security: add LLM-based security evaluation during skill publish.
- Parsing: recognize `metadata.openclaw` frontmatter and evaluate all skill files for requirements.
### Changed
- Performance: lazy-load Monaco diff viewer on demand (thanks @alexjcm, #212).
- Search: improve recall/ranking with lexical fallback and relevance prioritization.
- Moderation UX: collapse OpenClaw analysis by default; update spacing and default reasoning model.
### Fixed
- Skills: fix initial `/skills` sort wiring so first page respects selected sort/direction (thanks @bpk9, #92).
- Search/UI: add embedding request timeout and align `/skills` toolbar + list width (thanks @GhadiSaab, #53).
- Upload gate: handle GitHub API rate limits and optional authenticated lookup token (thanks @superlowburn, #246).
- HTTP: remove `allowH2` from Undici agent to prevent `fetch failed` on Node.js 22+ (#245).
- Tests: add root `undici` dev dependency for Node E2E imports (thanks @tanujbhaud, #255).
- Downloads: add download rate limiting + per-IP/day dedupe + scheduled dedupe pruning; preserve moderation gating and deterministic zips (thanks @regenrek, #43).
- VirusTotal: fix scan sync race conditions and retry behavior in scan/backfill paths.
- Metadata: tolerate trailing commas in JSON metadata.
- Auth: allow soft-deleted users to re-authenticate on fresh login, while keeping banned users blocked (thanks @tanujbhaud, #177).
- Web: prevent horizontal overflow from long code blocks in skill pages (thanks @bewithgaurav, #183).
## 0.6.0 - 2026-02-10
### Added
- CLI/API: add `set-role` to change user roles (admin only).
- Security: quarantine skill publishes with VirusTotal scans + UI (thanks @aleph8, #130).
- Testing: add tests for badges, skillZip, uploadFiles expandDroppedItems, and ark schema error truncation.
- Moderation: add ban reasons to API/CLI and show in management UI.
### Changed
- Coverage: track `convex/lib/skillZip.ts` in coverage reports.
### Fixed
- Web: show pending-scan skills to owners without 404 (thanks @orlyjamie, #136).
- Users: backfill empty handles from name/email in ensure (thanks @adlai88, #158).
- Web: update footer branding to OpenClaw (thanks @jontsai, #122).
- Auth: restore soft-deleted users on reauth, block banned users (thanks @mkrokosz, #106).
## 0.5.0 - 2026-02-02
### Added
- Admin: ban users and delete owned skills from management console.
- Moderation: auto-hide skills after 4 unique reports; per-user report cap; moderators can ban users.
- Uploads: require GitHub accounts to be at least 7 days old for skill + soul publish/import.
- CLI: add `inspect` to fetch skill metadata/files without installing.
- CLI: add moderation commands for hide/unhide/delete and ban users.
- Management: add filters for reported skills and users.
### Changed
- Deps: update dependencies to latest available versions.
- Reporting: require reasons, show them in management console, warn about abuse bans.
### Fixed
- Bans: batch hard-delete cleanup to avoid Convex read limits on large skills.
## 0.4.0 - 2026-01-30
### Added
- Web: show published skills on user profiles (thanks @njoylab, #20).
- CLI: include ClawHub + Moltbot fallback skill roots for sync scans.
- CLI: support OpenClaw configuration files (`OPENCLAW_CONFIG_PATH` / `OPENCLAW_STATE_DIR`).
### Changed
- Brand: rebrand to ClawHub and publish CLI as `clawhub` (legacy `clawdhub` supported).
- Domain: default site/registry now `https://clawhub.ai`; `.well-known/clawhub.json` preferred.
- Theme: persist theme under `clawhub-theme` (legacy key still read).
### Fixed
- Registry: drop missing skills during search hydration (thanks @aaronn, #28).
- CLI: use path-based skill metadata lookup for updates (thanks @daveonkels, #22).
- Search: keep highlighted-only filtering and clamp vector candidates to Convex limits (thanks @aaronn, #30).
## 0.3.0 - 2026-01-19
### Added
- CLI: add `explore` command for latest updates, with limit clamping + tests/docs (thanks @jdrhyne, #14).
- CLI: `explore --json` output + new sorts (`installs`, `installsAllTime`, `trending`) and limit up to 200.
- API: `/api/v1/skills` supports installs + trending sorts (7-day installs).
- API: idempotent `POST/DELETE /api/v1/stars/{slug}` endpoints.
- Registry: trending leaderboard + daily stats backfill for installs-based sorts.
### Fixed
- Web: keep search mode navigation and state in sync (thanks @NACC96, #12).
## 0.2.0 - 2026-01-13
### Added
- Web: dynamic OG image cards for skills (name, description, version).
- CLI: auto-scan Clawdbot skill roots (per-agent workspaces, shared skills, extraDirs).
- Web: import skills from public GitHub URLs (auto-detect `SKILL.md`, smart file selection, provenance).
- Web/API: SoulHub (SOUL.md registry) with v1 endpoints and first-run auto-seed.
### Fixed
- Web: stabilize skill OG image generation on server runtimes.
- Web: prevent skill OG text overflow outside the card.
- Registry: make SoulHub auto-seed idempotent and non-user-owned.
- Registry: keep GitHub backup state + publish backups intact (thanks @joshp123, #1).
- CLI/Registry: restore fork lineage on sync + clamp bulk list queries (thanks @joshp123, #1).
- CLI: default workdir falls back to Clawdbot workspace (override with `--workdir` / `CLAWHUB_WORKDIR`).
## 0.0.6 - 2026-01-07
### Added
- API: v1 public REST endpoints with rate limits, raw file fetch, and OpenAPI spec.
- Docs: `docs/api.md` and `DEPRECATIONS.md` for the v1 cutover plan.
### Changed
- CLI: publish now uses single multipart `POST /api/v1/skills`.
- Registry: legacy `/api/*` + `/api/cli/*` marked for deprecation (kept for now).
## 0.0.5 - 2026-01-06
### Added
- Telemetry: track installs via `clawhub sync` (logged-in only), per root, with 120-day staleness.
- Skills: show current + all-time installs; sort by installs.
- Profile: private "Installed" tab with JSON export + delete telemetry controls.
- Docs: add `docs/telemetry.md` (what we track + how to opt out).
- Web: custom Open Graph image (`/og.png`) + richer OG/Twitter tags.
- Web: dashboard for managing your published skills (thanks @dbhurley!).
### Changed
- CLI: telemetry opt-out via `CLAWHUB_DISABLE_TELEMETRY=1`.
- Web: move theme picker into mobile menu.
### Fixed
- Web: handle shorthand hex colors in diff theme (thanks @dbhurley!).
## 0.0.5 - 2026-01-06
### Added
- Maintenance: admin backfill to re-parse `SKILL.md` and repair stored summaries/parsed metadata.
### Fixed
- CLI sync: ignore plural `skills.md` docs files when scanning for skills.
- Registry: parse YAML frontmatter (incl multiline `description`) and accept YAML `metadata` objects.
## 0.0.4 - 2026-01-05
### Added
- Web: `/skills` list view with sorting (newest/downloads/stars/name) + quick filter.
- Web: admin/moderator highlight toggle on skill detail.
- Web: canonical skill URLs as `/<owner>/<slug>` (legacy `/skills/<slug>` redirects).
- Web: upload auto-generates a changelog via OpenAI when left blank (marked as auto-generated).
### Fixed
- Web: skill detail shows a loading state instead of flashing "Skill not found".
- Web: user profile shows avatar + loading state (no "User not found" flash).
- Web: improved mobile responsiveness (nav menu, skill detail layout, install command overflow).
- Web: upload now unwraps folder picks so `SKILL.md` can be at the bundle root.
- Registry: cap embedding payload size to avoid model context errors.
- CLI: ignore legacy `auth.clawdhub.com` registry and prefer site discovery.
### Changed
- Web: homepage search now expands into full search mode with live results + highlighted toggle.
- CLI: sync no longer prompts for changelog; registry auto-generates when blank.
## 0.0.3 - 2026-01-04
### Added
- CLI sync: concurrency flag to limit registry checks.
- Home: install command switcher (npm/pnpm/bun).
### Changed
- CLI sync: default `--concurrency` is now 4 (was 8).
- CLI sync: replace boxed notes with plain output for long lists.
### Fixed
- CLI sync: wrap note output to avoid terminal overflow; cap list lengths.
- CLI sync: label fallback scans as fallback locations.
- CLI package: bundle schema internally (no external `clawhub-schema` publish).
- Repo: mark `clawhub-schema` as private to prevent publishing.
## 0.0.2 - 2026-01-04
### Added
- CLI: delete/undelete commands for soft-deleted skills (owner/admin).
### Fixed
- CLI sync: dedupe duplicate slugs across scan roots; skip duplicates to avoid double-publish errors.
- CLI sync: show parsing progress while hashing local skills.
- CLI sync: prompt only actionable skills; preselect all by default; list synced separately; condensed synced summary when nothing to sync.
- CLI sync: cap long status lists to avoid massive terminal boxes.
- CLI publish/sync: allow empty changelog on updates; registry accepts empty changelog for updates.
- CLI: use `--cli-version` to avoid conflict with skill `--version` flags.
- Registry: hide soft-deleted skills from search/skill/download unless restored.
- Tests: add delete/undelete coverage (unit + e2e).
## 0.0.1 - 2026-01-04
### Features
- CLI auth: login/logout/whoami; browser loopback auth; token storage; site/registry discovery; config overrides.
- CLI workflow: search, install, update (single/all), list, publish, sync (scan workdir + legacy roots), dry-run, version bumping, tags.
- Registry/API: skills + versions with semver; tags (latest + custom); changelog per version; SKILL.md frontmatter parsing; text-only validation; zip download; hash resolve; stats (downloads/stars/versions/comments).
- Web app: home (highlighted + latest), search, skill detail (README, versions, tags, stats, files), upload UI, user profiles, stars, settings (profile + API tokens + delete account).
- Social: stars + comments with moderation hooks; admin console for roles + highlighted curation.
- Search: semantic/vector search over skill content with limit/approved filters.
- Security: GitHub OAuth; role-based access (admin/moderator/user); audit logging for admin actions.
+36
View File
@@ -0,0 +1,36 @@
# ClawHub — Project Rules
## Convex Performance Rules
- For public listing/browse pages, use `ConvexHttpClient.query()` (one-shot fetch),
not `useQuery`/`usePaginatedQuery` (reactive subscription). Reserve reactive
queries for data the user needs to see update in real time.
- Denormalize hot read paths into a single lightweight "digest" table. Every
`ctx.db.get()` join adds a table to the reactive invalidation scope.
- When a `skillSearchDigest` row is available, use `digestToOwnerInfo(digest)`
to resolve owner data. NEVER call `ctx.db.get(ownerUserId)` when digest
owner fields (`ownerHandle`, `ownerName`, `ownerDisplayName`, `ownerImage`)
are already present. Reading from `users` adds the entire table to the
reactive read set and wastes bandwidth.
- Use `convex-helpers` Triggers to sync denormalized tables automatically.
Always add change detection — skip the write if no fields actually changed.
- Use compound indexes instead of JS filtering. If you're filtering docs after
the query, you're scanning documents you'll throw away.
- For search results scored by computed values (vector + lexical + popularity),
fetch all results once and paginate client-side. Don't re-run the full search
pipeline on "load more."
- Backfills on reactively-subscribed tables need `delayMs` between batches.
- Mutations that read >8 MB should use the Action → Query → Mutation pattern
to split reads across transactions.
## Convex Conventions
- All mutations import from `convex/functions.ts` (not `convex/_generated/server`)
to get trigger wrapping. Type imports still come from `convex/_generated/server`.
- NEVER use `--typecheck=disable` on `npx convex deploy`.
- Use `npx convex dev --once` to push functions once (not long-running watcher).
## Testing
- Tests use `._handler` to call mutation handlers directly with mock `db` objects.
- Mock `db` objects MUST include `normalizeId: vi.fn()` for trigger wrapper compatibility.
+180
View File
@@ -0,0 +1,180 @@
# Contributing to ClawHub
Welcome! ClawHub is the public skill registry for [OpenClaw](https://github.com/openclaw/openclaw). We appreciate bug fixes, documentation improvements, and feature contributions.
- **Questions?** Ask in [#clawhub on Discord](https://discord.gg/clawd).
- **Bug fixes** — PRs are welcome.
- **New features or architectural changes** — please start with a Discord conversation in #clawhub first so we can align on scope.
## Local Development Setup
### Prerequisites
- [Bun](https://bun.sh/) (Convex CLI runs via `bunx`, no global install needed)
- [Node.js](https://nodejs.org/) v18, 20, 22, or 24 (required by the local Convex backend; v25+ is not yet supported)
### Install and configure
```bash
bun install
cp .env.local.example .env.local
```
Edit `.env.local` with the following values for **local Convex**:
```bash
# Frontend
VITE_CONVEX_URL=http://127.0.0.1:3210
VITE_CONVEX_SITE_URL=http://127.0.0.1:3210
SITE_URL=http://localhost:3000
# Deployment used by `bunx convex dev`
CONVEX_DEPLOYMENT=anonymous:anonymous-clawhub
```
### GitHub OAuth App (for login)
1. Go to [github.com/settings/developers](https://github.com/settings/developers) and create a new OAuth App.
2. Set **Homepage URL** to `http://localhost:3000`.
3. Set **Authorization callback URL** to `http://127.0.0.1:3210/api/auth/callback/github`.
4. Copy the Client ID and generate a Client Secret.
### Run the Convex backend
Start the local Convex backend first — other setup steps depend on it:
```bash
bunx convex dev --typecheck=disable
```
### Set backend environment variables
The Convex backend has its own env var store separate from `.env.local`. With the backend running, open a new terminal and set the required variables:
```bash
bunx convex env set AUTH_GITHUB_ID <your-client-id>
bunx convex env set AUTH_GITHUB_SECRET <your-client-secret>
bunx convex env set SITE_URL http://localhost:3000
```
### JWT keys (for Convex Auth)
With the backend still running, generate the signing keys:
```bash
bunx @convex-dev/auth
```
This sets `JWT_PRIVATE_KEY` and `JWKS` on the Convex backend and outputs values you can also save to `.env.local` for reference.
### Run the frontend
```bash
bun run dev -- --port 3000
```
Change the port if 3000 is already in use, and update `SITE_URL` in both `.env.local` and the Convex backend (`bunx convex env set SITE_URL ...`) to match.
### Seed the database
Populate sample data so the UI isn't empty:
```bash
# 3 sample skills (padel, gohome, xuezh)
bunx convex run --no-push devSeed:seedNixSkills
# 50 extra skills for pagination testing (optional)
bunx convex run --no-push devSeedExtra:seedExtraSkillsInternal
# Refresh the cached skills count (required after seeding)
bunx convex run --no-push statsMaintenance:updateGlobalStatsInternal
```
To reset and re-seed:
```bash
bunx convex run --no-push devSeed:seedNixSkills '{"reset": true}'
```
### Optional environment variables
These features degrade gracefully without their keys:
| Variable | Purpose |
| ------------------------------------------------------------------------- | --------------------------------------------------------- |
| `OPENAI_API_KEY` | Embeddings and vector search (falls back to zero vectors) |
| `VT_API_KEY` | VirusTotal malware scanning |
| `DISCORD_WEBHOOK_URL` | Discord notifications |
| `GITHUB_APP_ID` / `GITHUB_APP_PRIVATE_KEY` / `GITHUB_APP_INSTALLATION_ID` | GitHub backup sync |
## CLI Development
The CLI source lives in [`packages/clawdhub/`](packages/clawdhub/). Both `clawhub` and `clawdhub` are registered as bin aliases.
To test the CLI against your local instance:
```bash
CLAWHUB_REGISTRY=http://127.0.0.1:3210 CLAWHUB_SITE=http://localhost:3000 clawhub search "padel"
```
Manual smoke tests are documented in [`docs/manual-testing.md`](docs/manual-testing.md).
## Skill & Soul Publishing
- Skill format reference: [`docs/skill-format.md`](docs/skill-format.md)
- Soul format reference: [`docs/soul-format.md`](docs/soul-format.md)
- End-to-end walkthrough (search, install, publish, sync): [`docs/quickstart.md`](docs/quickstart.md)
Quick publish:
```bash
clawhub publish <path-to-skill-directory>
```
## Before Submitting a PR
```bash
bun run lint # oxlint
bun run test # Vitest (80% coverage threshold)
bun run build # Vite + Nitro
```
These are the same checks that run in CI (`.github/workflows/ci.yml`).
**PR guidelines:**
- Keep PRs focused — one concern per PR.
- Use [Conventional Commits](https://www.conventionalcommits.org/): `feat:`, `fix:`, `chore:`, `docs:`, etc.
- Include test commands and screenshots for UI changes.
- Write a clear description of what changed and why.
## AI-Generated Code
AI-assisted contributions are welcome. When submitting AI-generated or AI-assisted code:
- Note it in the PR description.
- Describe the level of testing you applied.
- Include prompts if useful for reviewers.
- Confirm that you understand and can maintain the code.
## Security Reporting
Report vulnerabilities to **security@openclaw.ai** with:
- Severity assessment
- Technical reproduction steps
- Suggested remediation
See [`docs/security.md`](docs/security.md) for moderation and upload gating details.
## Reading Order for New Contributors
1. This file (local setup)
2. [`docs/quickstart.md`](docs/quickstart.md) — end-to-end workflows
3. [`docs/architecture.md`](docs/architecture.md) — system design
4. [`docs/skill-format.md`](docs/skill-format.md) — skill structure
5. [`docs/cli.md`](docs/cli.md) — CLI reference
6. [`docs/http-api.md`](docs/http-api.md) — HTTP endpoints
7. [`docs/auth.md`](docs/auth.md) — authentication
8. [`docs/deploy.md`](docs/deploy.md) — deployment
9. [`docs/troubleshooting.md`](docs/troubleshooting.md) — common issues
+7
View File
@@ -0,0 +1,7 @@
# Deprecations
## Legacy /api routes (pre-v1)
- Deprecated: 2026-01-07
- TODO: remove legacy `/api/*` and `/api/cli/*` routes after clients migrate to `/api/v1`.
- Legacy handlers live in `convex/http.ts` and `convex/httpApi.ts`.
+21
View File
@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2026 Peter Steinberger
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
+230
View File
@@ -0,0 +1,230 @@
<p align="center">
<img src="public/clawd-logo.png" alt="ClawHub" width="120">
</p>
<h1 align="center">ClawHub</h1>
<p align="center">
<a href="https://github.com/openclaw/clawhub/actions/workflows/ci.yml?branch=main"><img src="https://img.shields.io/github/actions/workflow/status/openclaw/clawhub/ci.yml?branch=main&style=for-the-badge" alt="CI status"></a>
<a href="https://discord.gg/clawd"><img src="https://img.shields.io/discord/1456350064065904867?label=Discord&logo=discord&logoColor=white&color=5865F2&style=for-the-badge" alt="Discord"></a>
<a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-blue.svg?style=for-the-badge" alt="MIT License"></a>
</p>
ClawHub is the **public skill registry for Clawdbot**: publish, version, and search text-based agent skills (a `SKILL.md` plus supporting files).
It's designed for fast browsing + a CLI-friendly API, with moderation hooks and vector search.
It also now exposes a native **OpenClaw package catalog** for code plugins and bundle plugins.
onlycrabs.ai is the **SOUL.md registry**: publish and share system lore the same way you publish skills.
<p align="center">
<a href="https://clawhub.ai">ClawHub</a> ·
<a href="https://onlycrabs.ai">onlycrabs.ai</a> ·
<a href="VISION.md">Vision</a> ·
<a href="docs/README.md">Docs</a> ·
<a href="CONTRIBUTING.md">Contributing</a> ·
<a href="https://discord.gg/clawd">Discord</a>
</p>
## What you can do with it
- Browse skills + render their `SKILL.md`.
- Publish new skill versions with changelogs + tags (including `latest`).
- Rename an owned skill without breaking old links or installs.
- Merge duplicate owned skills into one canonical slug.
- Browse souls + render their `SOUL.md`.
- Publish new soul versions with changelogs + tags.
- Search via embeddings (vector index) instead of brittle keywords.
- Star + comment; admins/mods can curate and approve skills.
- Browse OpenClaw packages with family/trust/capability metadata.
- Publish native code plugins and bundle plugins through `/packages` APIs and CLI flows.
## onlycrabs.ai (SOUL.md registry)
- Entry point is host-based: `onlycrabs.ai`.
- On the onlycrabs.ai host, the home page and nav default to souls.
- On ClawHub, souls live under `/souls`.
- Soul bundles only accept `SOUL.md` for now (no extra files).
## How it works (high level)
- Web app: TanStack Start (React, Vite/Nitro).
- Backend: Convex (DB + file storage + HTTP actions) + Convex Auth (GitHub OAuth).
- Search: OpenAI embeddings (`text-embedding-3-small`) + Convex vector search.
- API schema + routes: `packages/schema` (`clawhub-schema`).
## CLI
Common CLI flows:
- Auth: `clawhub login`, `clawhub whoami`
- Discover: `clawhub search ...`, `clawhub explore`
- Browse unified catalog (skills + plugins): `clawhub package explore`, `clawhub package inspect <name>`
- Manage local installs: `clawhub install <slug>`, `clawhub uninstall <slug>`, `clawhub list`, `clawhub update --all`
- Inspect without installing: `clawhub inspect <slug>`
- Publish/sync: `clawhub publish <path>`, `clawhub sync`
- Publish plugins: `clawhub package publish <path> [--owner <handle>] --source-repo <owner/repo> --source-commit <sha>`
- Canonicalize owned skills: `clawhub skill rename <slug> <new-slug>`, `clawhub skill merge <source> <target>`
Docs: [`docs/quickstart.md`](docs/quickstart.md), [`docs/cli.md`](docs/cli.md).
### Removal permissions
- `clawhub uninstall <slug>` only removes a local install on your machine.
- Uploaded registry skills use soft-delete/restore (`clawhub delete <slug>` / `clawhub undelete <slug>` or API equivalents).
- Soft-delete/restore is allowed for the skill owner, moderators, and admins.
- Hard delete is admin-only (management tools / ban flows).
- Owner rename keeps the old slug as a redirect alias.
- Owner merge hides the source listing and redirects the old slug to the canonical target.
## Telemetry
ClawHub tracks minimal **install telemetry** (to compute install counts) when you run `clawhub sync` while logged in.
Disable via:
```bash
export CLAWHUB_DISABLE_TELEMETRY=1
```
Details: [`docs/telemetry.md`](docs/telemetry.md).
## Repo layout
- `src/` — TanStack Start app (routes, components, styles).
- `convex/` — schema + queries/mutations/actions + HTTP API routes.
- `packages/schema/` — shared API types/routes for the CLI and app.
- [`docs/`](docs/README.md) — project documentation (architecture, CLI, auth, deployment, and more).
- [`docs/spec.md`](docs/spec.md) — product + implementation spec (good first read).
## Local dev
Prereqs: [Bun](https://bun.sh/) (Convex runs via `bunx`, no global install needed).
```bash
bun install
cp .env.local.example .env.local
# edit .env.local — see CONTRIBUTING.md for local Convex values
# terminal A: local Convex backend
bunx convex dev
# terminal B: web app (port 3000)
bun run dev
# seed sample data
bunx convex run --no-push devSeed:seedNixSkills
```
For full setup instructions (env vars, GitHub OAuth, JWT keys, database seeding), see [CONTRIBUTING.md](CONTRIBUTING.md).
## Environment
- `VITE_CONVEX_URL`: Convex deployment URL (`https://<deployment>.convex.cloud`).
- `VITE_CONVEX_SITE_URL`: Convex site URL (`https://<deployment>.convex.site`).
- `VITE_SOULHUB_SITE_URL`: onlycrabs.ai site URL (`https://onlycrabs.ai`).
- `VITE_SOULHUB_HOST`: onlycrabs.ai host match (`onlycrabs.ai`).
- `VITE_SITE_MODE`: Optional override (`skills` or `souls`) for SSR builds.
- `CONVEX_SITE_URL`: same as `VITE_CONVEX_SITE_URL` (auth + cookies).
- `SITE_URL`: App URL (local: `http://localhost:3000`).
- `AUTH_GITHUB_ID` / `AUTH_GITHUB_SECRET`: GitHub OAuth App.
- `JWT_PRIVATE_KEY` / `JWKS`: Convex Auth keys.
- `OPENAI_API_KEY`: embeddings for search + indexing.
## Nix plugins (nixmode skills)
ClawHub can store a nix-clawdbot plugin pointer in SKILL frontmatter so the registry knows which
Nix package bundle to install. A nix plugin is different from a regular skill pack: it bundles the
skill pack, the CLI binary, and its config flags/requirements together.
Add this to `SKILL.md`:
```yaml
---
name: peekaboo
description: Capture and automate macOS UI with the Peekaboo CLI.
metadata:
{
"clawdbot":
{
"nix":
{
"plugin": "github:clawdbot/nix-steipete-tools?dir=tools/peekaboo",
"systems": ["aarch64-darwin"],
},
},
}
---
```
Install via nix-clawdbot:
```nix
programs.clawdbot.plugins = [
{ source = "github:clawdbot/nix-steipete-tools?dir=tools/peekaboo"; }
];
```
You can also declare config requirements + an example snippet:
```yaml
---
name: padel
description: Check padel court availability and manage bookings via Playtomic.
metadata:
{
"clawdbot":
{
"config":
{
"requiredEnv": ["PADEL_AUTH_FILE"],
"stateDirs": [".config/padel"],
"example": "config = { env = { PADEL_AUTH_FILE = \\\"/run/agenix/padel-auth\\\"; }; };",
},
},
}
---
```
To show CLI help (recommended for nix plugins), include the `cli --help` output:
```yaml
---
name: padel
description: Check padel court availability and manage bookings via Playtomic.
metadata: { "clawdbot": { "cliHelp": "padel --help\\nUsage: padel [command]\\n" } }
---
```
`metadata.clawdbot` is preferred, but `metadata.clawdis` and `metadata.openclaw` are accepted as aliases.
## Skill metadata
Skills declare their runtime requirements (env vars, binaries, install specs) in the `SKILL.md` frontmatter. ClawHub's security analysis checks these declarations against actual skill behavior.
Full reference: [`docs/skill-format.md`](docs/skill-format.md#frontmatter-metadata)
Quick example:
```yaml
---
name: my-skill
description: Does a thing with an API.
metadata:
openclaw:
requires:
env:
- MY_API_KEY
bins:
- curl
primaryEnv: MY_API_KEY
---
```
## Scripts
```bash
bun run dev
bun run build
bun run test
bun run coverage
bun run lint
```
+98
View File
@@ -0,0 +1,98 @@
## OpenClaw Vision
OpenClaw is the AI that actually does things.
It runs on your devices, in your channels, with your rules.
This document explains the current state and direction of the project.
We are still early, so iteration is fast.
Project overview and developer docs: [`README.md`](README.md)
OpenClaw started as my personal playground to learn AI and build something genuinely useful:
an assistant that can run real tasks on my computer.
It evolved through several names and shells: Warelay -> Clawdbot -> Moltbot -> OpenClaw.
The goal? A personal assistant that's easy to use, supports a wide range of platforms, and respects your privacy and security.
The current focus is:
Priority:
- Security and safe defaults
- Bug fixes and stability
- Setup reliability and first-run UX
Next priorities:
- Supporting all major model providers
- Improving support for major messaging channels (and adding a few high-demand ones)
- Performance and test infrastructure
- Better computer-use and agent harness capabilities
- Ergonomics across CLI and web frontend
- Companion apps on macOS, iOS, Android, Windows, and Linux
## Security
Security in OpenClaw is a deliberate tradeoff: strong defaults without killing capability.
The goal is to stay powerful for real work while making risky paths explicit and operator-controlled.
Canonical security policy and reporting:
- https://github.com/openclaw/openclaw/blob/main/SECURITY.md
We prioritize secure defaults, but we also expose clear knobs for trusted high-power workflows.
## Plugins & Memory
OpenClaw has an extensive plugin API.
Core stays lean; optional capability should usually ship as plugins.
Preferred plugin path is npm package distribution plus local extension loading for development.
If you build a plugin, please host and maintain it in your own repository.
The bar for adding optional plugins to core is intentionally high.
Memory is a special plugin slot where only one memory plugin can be active at a time.
Today we ship multiple memory options; over time we plan to converge on one recommended default path.
### Skills
We still ship some bundled skills for baseline UX.
New skills should be published to ClawHub first (`clawhub.ai`), not added to core by default.
Core skill additions should be rare and require a strong product or security reason.
### MCP Support
OpenClaw supports MCP through `mcporter`: https://github.com/steipete/mcporter
This keeps MCP integration flexible and decoupled from core runtime:
- add or change MCP servers without restarting the gateway
- keep core tool/context surface lean
- reduce MCP churn impact on core stability and security
For now, we prefer this bridge model over building first-class MCP runtime into core.
If there is an MCP server or feature `mcporter` does not support yet, please open an issue there.
### Setup
OpenClaw is currently terminal-first by design.
This keeps setup explicit: users see docs, auth, permissions, and security posture up front.
Long term, we want easier onboarding flows as hardening matures.
We do not want convenience wrappers that hide critical security decisions from users.
### Why TypeScript?
OpenClaw is primarily an orchestration system: prompts, tools, protocols, and integrations.
TypeScript was chosen to keep OpenClaw hackable by default.
It is widely known, fast to iterate in, and easy to read, modify, and extend.
## What We Will Not Merge (For Now)
- New core skills when they can live on ClawHub
- Commercial service integrations that do not clearly fit the model-provider category
- Wrapper channels around already supported channels without a clear capability or security gap
- First-class MCP runtime in core when `mcporter` already provides the integration path
- Heavy orchestration layers that duplicate existing agent and tool infrastructure
This list is a roadmap guardrail, not a law of physics.
Strong user demand and strong technical rationale can change it.
+1363
View File
File diff suppressed because it is too large Load Diff
Executable
+46
View File
@@ -0,0 +1,46 @@
#!/usr/bin/env bun
import { existsSync } from 'node:fs'
import { stat } from 'node:fs/promises'
import { fileURLToPath } from 'node:url'
const distCliUrl = new URL('./packages/clawdhub/dist/cli.js', import.meta.url)
const distCliPath = fileURLToPath(distCliUrl)
const srcRootPath = fileURLToPath(new URL('./packages/clawdhub/src/', import.meta.url))
const shouldBuild = await (async () => {
if (!existsSync(distCliPath)) return true
try {
const dist = await stat(distCliPath)
const latestSrcMtime = await getLatestMtime(srcRootPath)
return latestSrcMtime > dist.mtimeMs
} catch {
return true
}
})()
if (shouldBuild) {
const proc = Bun.spawn(['bunx', 'tsc', '-p', 'packages/clawdhub/tsconfig.json'], {
stdin: 'inherit',
stdout: 'inherit',
stderr: 'inherit',
})
const code = await proc.exited
if (code !== 0) process.exit(code)
}
await import(distCliUrl.href)
async function getLatestMtime(root: string) {
let latest = 0
const glob = new Bun.Glob('**/*.ts')
for await (const rel of glob.scan({ cwd: root, onlyFiles: true })) {
const path = `${root}${root.endsWith('/') ? '' : '/'}${rel}`
try {
const entry = await stat(path)
latest = Math.max(latest, entry.mtimeMs)
} catch {
// ignore
}
}
return latest
}
Executable
+46
View File
@@ -0,0 +1,46 @@
#!/usr/bin/env bun
import { existsSync } from 'node:fs'
import { stat } from 'node:fs/promises'
import { fileURLToPath } from 'node:url'
const distCliUrl = new URL('./packages/clawdhub/dist/cli.js', import.meta.url)
const distCliPath = fileURLToPath(distCliUrl)
const srcRootPath = fileURLToPath(new URL('./packages/clawdhub/src/', import.meta.url))
const shouldBuild = await (async () => {
if (!existsSync(distCliPath)) return true
try {
const dist = await stat(distCliPath)
const latestSrcMtime = await getLatestMtime(srcRootPath)
return latestSrcMtime > dist.mtimeMs
} catch {
return true
}
})()
if (shouldBuild) {
const proc = Bun.spawn(['bunx', 'tsc', '-p', 'packages/clawdhub/tsconfig.json'], {
stdin: 'inherit',
stdout: 'inherit',
stderr: 'inherit',
})
const code = await proc.exited
if (code !== 0) process.exit(code)
}
await import(distCliUrl.href)
async function getLatestMtime(root: string) {
let latest = 0
const glob = new Bun.Glob('**/*.ts')
for await (const rel of glob.scan({ cwd: root, onlyFiles: true })) {
const path = `${root}${root.endsWith('/') ? '' : '/'}${rel}`
try {
const entry = await stat(path)
latest = Math.max(latest, entry.mtimeMs)
} catch {
// ignore
}
}
return latest
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 832 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 112 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 214 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 835 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 210 KiB

@@ -1,23 +0,0 @@
# ClawHub UI Proof
Status: pass
Scenario: `/Users/patrickerichsen/.codex/worktrees/68a3/clawhub/.artifacts/proof-scenarios/sample-text-before-after.pw.ts`
Baseline: `origin/main`
Candidate: `worktree`
Provider: `hetzner`
## Artifacts
### baseline
- Output: `/Users/patrickerichsen/.codex/worktrees/68a3/clawhub/.artifacts/clawhub-ui-proof/2026-05-13T00-12-37-146Z/baseline`
- pass: baseline /skills - `baseline/screenshots/baseline-skills.png`
- pass: baseline /plugins - `baseline/screenshots/baseline-plugins.png`
- pass: baseline /souls - `baseline/screenshots/baseline-souls.png`
- Video: `baseline/full-run.mp4`
### candidate
- Output: `/Users/patrickerichsen/.codex/worktrees/68a3/clawhub/.artifacts/clawhub-ui-proof/2026-05-13T00-12-37-146Z/candidate`
- pass: candidate /skills - `candidate/screenshots/candidate-skills.png`
- pass: candidate /plugins - `candidate/screenshots/candidate-plugins.png`
- pass: candidate /souls - `candidate/screenshots/candidate-souls.png`
- Video: `candidate/full-run.mp4`
@@ -1,77 +0,0 @@
{
"baseline": "origin/main",
"candidate": "worktree",
"generatedAt": "2026-05-13T00:12:37.148Z",
"lanes": [
{
"localOutputDir": "/Users/patrickerichsen/.codex/worktrees/68a3/clawhub/.artifacts/clawhub-ui-proof/2026-05-13T00-12-37-146Z/baseline",
"name": "baseline",
"ref": "origin/main",
"remoteOutputDir": "/work/crabbox/cbx_2ac97d8c7cd2/clawhub/.artifacts/clawhub-ui-proof/remote-2026-05-13T00-12-37-146Z/baseline",
"status": "pass",
"steps": [
{
"lane": "baseline",
"name": "baseline /skills",
"screenshot": "screenshots/baseline-skills.png",
"slug": "baseline-skills",
"status": "pass"
},
{
"lane": "baseline",
"name": "baseline /plugins",
"screenshot": "screenshots/baseline-plugins.png",
"slug": "baseline-plugins",
"status": "pass"
},
{
"lane": "baseline",
"name": "baseline /souls",
"screenshot": "screenshots/baseline-souls.png",
"slug": "baseline-souls",
"status": "pass"
}
],
"videoPath": "/Users/patrickerichsen/.codex/worktrees/68a3/clawhub/.artifacts/clawhub-ui-proof/2026-05-13T00-12-37-146Z/baseline/full-run.mp4"
},
{
"localOutputDir": "/Users/patrickerichsen/.codex/worktrees/68a3/clawhub/.artifacts/clawhub-ui-proof/2026-05-13T00-12-37-146Z/candidate",
"name": "candidate",
"ref": "worktree",
"remoteOutputDir": "/work/crabbox/cbx_2ac97d8c7cd2/clawhub/.artifacts/clawhub-ui-proof/remote-2026-05-13T00-12-37-146Z/candidate",
"status": "pass",
"steps": [
{
"lane": "candidate",
"name": "candidate /skills",
"screenshot": "screenshots/candidate-skills.png",
"slug": "candidate-skills",
"status": "pass"
},
{
"lane": "candidate",
"name": "candidate /plugins",
"screenshot": "screenshots/candidate-plugins.png",
"slug": "candidate-plugins",
"status": "pass"
},
{
"lane": "candidate",
"name": "candidate /souls",
"screenshot": "screenshots/candidate-souls.png",
"slug": "candidate-souls",
"status": "pass"
}
],
"videoPath": "/Users/patrickerichsen/.codex/worktrees/68a3/clawhub/.artifacts/clawhub-ui-proof/2026-05-13T00-12-37-146Z/candidate/full-run.mp4"
}
],
"outputDir": "/Users/patrickerichsen/.codex/worktrees/68a3/clawhub/.artifacts/clawhub-ui-proof/2026-05-13T00-12-37-146Z",
"provider": "hetzner",
"scenario": "/Users/patrickerichsen/.codex/worktrees/68a3/clawhub/.artifacts/proof-scenarios/sample-text-before-after.pw.ts",
"status": "pass",
"crabbox": {
"createdLease": true,
"leaseId": "cbx_2ac97d8c7cd2"
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

@@ -1,11 +0,0 @@
# ClawHub UI Proof
Status: pass
Mode: `feature`
Scenario: `e2e/local-auth/security-scan-management-proof.pw.test.ts`
Provider: `local-auth`
## Artifacts
- pass: Desktop management security scans - `candidate/screenshots/desktop-security-scans.png`
- pass: Mobile management security scans - `candidate/screenshots/mobile-security-scans.png`
@@ -1,34 +0,0 @@
{
"baseline": "not run",
"candidate": "pe/security-scan-admin-tooling",
"generatedAt": "2026-05-18T21:32:12.809Z",
"lanes": [
{
"localOutputDir": "/Users/patrickerichsen/Git/openclaw/clawhub/.artifacts/clawhub-ui-proof/2026-05-18T21-29-29Z-security-scans/candidate",
"name": "candidate",
"ref": "pe/security-scan-admin-tooling",
"status": "pass",
"steps": [
{
"lane": "candidate",
"name": "Desktop management security scans",
"screenshot": "screenshots/desktop-security-scans.png",
"slug": "desktop-security-scans",
"status": "pass"
},
{
"lane": "candidate",
"name": "Mobile management security scans",
"screenshot": "screenshots/mobile-security-scans.png",
"slug": "mobile-security-scans",
"status": "pass"
}
]
}
],
"mode": "feature",
"outputDir": "/Users/patrickerichsen/Git/openclaw/clawhub/.artifacts/clawhub-ui-proof/2026-05-18T21-29-29Z-security-scans",
"provider": "local-auth",
"scenario": "e2e/local-auth/security-scan-management-proof.pw.test.ts",
"status": "pass"
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 100 KiB

@@ -1,5 +0,0 @@
# Owner-Scoped Skill Slugs UI Proof
- Scenario: owner-scoped skill slug UI surfaces.
- Skill detail page proof: owner-qualified route and install command render as `@local/padel`.
- Install command proof: copyable command uses `openclaw skills install @local/padel`.
@@ -1,26 +0,0 @@
{
"status": "passed",
"mode": "feature",
"scenario": "owner-scoped skill slug UI surfaces",
"provider": "Codex local browser proof",
"candidate": "pe/owner-scoped-skill-slugs",
"lanes": [
{
"name": "owner-scoped-skill-slugs",
"steps": [
{
"name": "Skill detail page shows owner-qualified route and install ref",
"slug": "skill-page-owner-ref",
"status": "passed",
"screenshot": "skill-page-owner-ref.png"
},
{
"name": "Install command uses @owner/slug",
"slug": "install-command-owner-ref",
"status": "passed",
"screenshot": "install-command-owner-ref.png"
}
]
}
]
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 593 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 611 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 512 KiB

@@ -1,7 +0,0 @@
# Management Security Scan Overview
Feature proof for PR #2403.
- Desktop overview shows ClawScan-first current verdict totals, pipeline status, recent scan window, category rollups, and failed scan samples.
- Desktop drilldown shows a selected artifact with ClawScan verdict/category/summary first, followed by pipeline status and supporting scanner evidence.
- Mobile view keeps the management security overview usable at narrow width without overlapping controls.
@@ -1,32 +0,0 @@
{
"status": "passed",
"mode": "feature",
"scenario": "management-security-scan-overview",
"provider": "local-playwright",
"candidate": "pe/clawscan-visibility",
"lanes": [
{
"name": "candidate",
"steps": [
{
"name": "Management security overview",
"slug": "management-security-overview-desktop",
"status": "passed",
"screenshot": "management-security-overview-desktop.png"
},
{
"name": "Artifact drilldown",
"slug": "management-security-drilldown-desktop",
"status": "passed",
"screenshot": "management-security-drilldown-desktop.png"
},
{
"name": "Mobile management security overview",
"slug": "management-security-mobile",
"status": "passed",
"screenshot": "management-security-mobile.png"
}
]
}
]
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 162 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 161 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 61 KiB

@@ -1,12 +0,0 @@
# ClawHub UI Proof
Status: pass
Scenario: Skill grid card metadata layout with nearby skills
Screenshots:
- baseline desktop: baseline/screenshots/desktop-grid-context.png
- candidate desktop: candidate/screenshots/desktop-grid-context.png
- baseline mobile: baseline/screenshots/mobile-grid-context.png
- candidate mobile: candidate/screenshots/mobile-grid-context.png
Observed target card: Self-Improving + Proactive Agent.
@@ -1,156 +0,0 @@
{
"baseline": "origin/main",
"candidate": "jesse/fix-skill-card-date-overlap",
"generatedAt": "2026-06-01T16:29:49.092Z",
"lanes": [
{
"name": "baseline",
"lane": "baseline",
"ref": "origin/main",
"baseURL": "http://127.0.0.1:3038",
"localOutputDir": "/Users/jmerhi/repos/claw-working-space/clawhub-fix-skill-card-date-overlap/.artifacts/clawhub-ui-proof/skill-card-grid-context-1780331337362/baseline",
"status": "pass",
"steps": [
{
"name": "Desktop skills grid context",
"slug": "desktop-grid-context",
"screenshot": "screenshots/desktop-grid-context.png",
"status": "pass"
},
{
"name": "Mobile skills grid context",
"slug": "mobile-grid-context",
"screenshot": "screenshots/mobile-grid-context.png",
"status": "pass"
}
],
"metrics": [
{
"step": "desktop grid context",
"viewport": "desktop",
"children": [
{
"className": "skill-card-tags",
"text": "LinuxmacOSWindows"
},
{
"className": "skill-card-header",
"text": "Self-Improving + Proactive Agent"
},
{
"className": "skill-card-summary",
"text": "Self-reflection + Self-criticism + Self-learning + Self-organizing memory. Agent evaluates its own work, catches mistakes, and improves permanently. Use when..."
},
{
"className": "skill-card-footer",
"text": "by@ivangdavilaUpdated 3w ago1.2k·195k"
}
],
"tagsBelowSummary": false,
"authorToUpdatedGap": 14
},
{
"step": "mobile grid context",
"viewport": "mobile",
"children": [
{
"className": "skill-card-tags",
"text": "LinuxmacOSWindows"
},
{
"className": "skill-card-header",
"text": "Self-Improving + Proactive Agent"
},
{
"className": "skill-card-summary",
"text": "Self-reflection + Self-criticism + Self-learning + Self-organizing memory. Agent evaluates its own work, catches mistakes, and improves permanently. Use when..."
},
{
"className": "skill-card-footer",
"text": "by@ivangdavilaUpdated 3w ago1.2k·195k"
}
],
"tagsBelowSummary": false,
"authorToUpdatedGap": 14
}
]
},
{
"name": "candidate",
"lane": "candidate",
"ref": "jesse/fix-skill-card-date-overlap",
"baseURL": "http://127.0.0.1:3037",
"localOutputDir": "/Users/jmerhi/repos/claw-working-space/clawhub-fix-skill-card-date-overlap/.artifacts/clawhub-ui-proof/skill-card-grid-context-1780331337362/candidate",
"status": "pass",
"steps": [
{
"name": "Desktop skills grid context",
"slug": "desktop-grid-context",
"screenshot": "screenshots/desktop-grid-context.png",
"status": "pass"
},
{
"name": "Mobile skills grid context",
"slug": "mobile-grid-context",
"screenshot": "screenshots/mobile-grid-context.png",
"status": "pass"
}
],
"metrics": [
{
"step": "desktop grid context",
"viewport": "desktop",
"children": [
{
"className": "skill-card-header",
"text": "Self-Improving + Proactive Agent"
},
{
"className": "skill-card-summary",
"text": "Self-reflection + Self-criticism + Self-learning + Self-organizing memory. Agent evaluates its own work, catches mistakes, and improves permanently. Use when..."
},
{
"className": "skill-card-tags",
"text": "LinuxmacOSWindows"
},
{
"className": "skill-card-footer",
"text": "by@ivangdavilaUpdated 3w ago1.2k·195k"
}
],
"tagsBelowSummary": true,
"authorToUpdatedGap": 8
},
{
"step": "mobile grid context",
"viewport": "mobile",
"children": [
{
"className": "skill-card-header",
"text": "Self-Improving + Proactive Agent"
},
{
"className": "skill-card-summary",
"text": "Self-reflection + Self-criticism + Self-learning + Self-organizing memory. Agent evaluates its own work, catches mistakes, and improves permanently. Use when..."
},
{
"className": "skill-card-tags",
"text": "LinuxmacOSWindows"
},
{
"className": "skill-card-footer",
"text": "by@ivangdavilaUpdated 3w ago1.2k·195k"
}
],
"tagsBelowSummary": true,
"authorToUpdatedGap": 8
}
]
}
],
"mode": "before-after",
"outputDir": "/Users/jmerhi/repos/claw-working-space/clawhub-fix-skill-card-date-overlap/.artifacts/clawhub-ui-proof/skill-card-grid-context-1780331337362",
"provider": "local",
"scenario": "Skill grid card metadata layout with nearby skills",
"status": "pass"
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

@@ -1,6 +0,0 @@
# ClawHub UI Proof
Status: pass
Mode: before-after
Scenario: Skill grid card metadata layout
@@ -1,55 +0,0 @@
{
"baseline": "origin/main",
"candidate": "jesse/fix-skill-card-date-overlap",
"lanes": [
{
"baseURL": "http://127.0.0.1:3038",
"lane": "baseline",
"name": "baseline",
"localOutputDir": "/Users/jmerhi/repos/claw-working-space/clawhub-fix-skill-card-date-overlap/.artifacts/clawhub-ui-proof/skill-card-metadata-1780328491887/baseline",
"ref": "origin/main",
"status": "pass",
"steps": [
{
"name": "Desktop skill card",
"slug": "desktop-skill-card",
"screenshot": "screenshots/desktop-skill-card.png",
"status": "pass"
},
{
"name": "Mobile skill card",
"slug": "mobile-skill-card",
"screenshot": "screenshots/mobile-skill-card.png",
"status": "pass"
}
]
},
{
"baseURL": "http://127.0.0.1:3037",
"lane": "candidate",
"name": "candidate",
"localOutputDir": "/Users/jmerhi/repos/claw-working-space/clawhub-fix-skill-card-date-overlap/.artifacts/clawhub-ui-proof/skill-card-metadata-1780328491887/candidate",
"ref": "jesse/fix-skill-card-date-overlap",
"status": "pass",
"steps": [
{
"name": "Desktop skill card",
"slug": "desktop-skill-card",
"screenshot": "screenshots/desktop-skill-card.png",
"status": "pass"
},
{
"name": "Mobile skill card",
"slug": "mobile-skill-card",
"screenshot": "screenshots/mobile-skill-card.png",
"status": "pass"
}
]
}
],
"mode": "before-after",
"outputDir": "/Users/jmerhi/repos/claw-working-space/clawhub-fix-skill-card-date-overlap/.artifacts/clawhub-ui-proof/skill-card-metadata-1780328491887",
"provider": "local",
"scenario": "Skill grid card metadata layout",
"status": "pass"
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 74 KiB

@@ -1,14 +0,0 @@
# ClawHub UI Proof
Status: `passed`
Mode: `feature`
Scenario: `manual-plugin-download-counts`
Provider: `local-playwright`
## Candidate
- `http://127.0.0.1:3001/plugins/clawbits-openclaw-plugin`
- Confirms plugin detail pages render `Downloads` as the first sidebar stat, above repository and owner metadata.
@@ -1,21 +0,0 @@
{
"status": "passed",
"mode": "feature",
"scenario": "manual-plugin-download-counts",
"provider": "local-playwright",
"baseline": "not-run",
"candidate": "pe/plugin-download-counts",
"lanes": [
{
"name": "candidate",
"steps": [
{
"name": "Plugin detail downloads top stat",
"slug": "plugin-downloads-top",
"status": "passed",
"screenshot": "plugin-downloads-top.png"
}
]
}
]
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

@@ -1,6 +0,0 @@
# ClawHub UI Proof
- Status: passed
- Mode: feature
- Scenario: plugin-list-downloads-sort
- Proof: plugin list shows the Most downloaded sort option selected and download counts in list rows.
@@ -1,20 +0,0 @@
{
"status": "passed",
"mode": "feature",
"scenario": "plugin-list-downloads-sort",
"provider": "codex-in-app-browser",
"candidate": "pe/plugin-download-counts",
"lanes": [
{
"name": "candidate",
"steps": [
{
"name": "Plugin list downloads and sort",
"slug": "plugin-list-downloads-sort",
"status": "passed",
"screenshot": "plugin-list-downloads-sort.png"
}
]
}
]
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

@@ -1,6 +0,0 @@
# ClawHub UI Proof
- Status: passed
- Mode: feature
- Scenario: plugin-list-no-family-badges
- Proof: plugin list still shows download counts while Code Plugin and Bundle Plugin family badges are absent.
@@ -1,20 +0,0 @@
{
"status": "passed",
"mode": "feature",
"scenario": "plugin-list-no-family-badges",
"provider": "codex-in-app-browser",
"candidate": "pe/plugin-download-counts",
"lanes": [
{
"name": "candidate",
"steps": [
{
"name": "Plugin list without family badges",
"slug": "plugin-list-no-family-badges",
"status": "passed",
"screenshot": "plugin-list-no-family-badges.png"
}
]
}
]
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 124 KiB

@@ -1,6 +0,0 @@
# PR #2520 proof
Status: pass
- Rendered the account-ban and artifact-level scanner rejection emails from the real email builders; the account-ban email no longer includes scan-results appeal guidance, while the artifact-level email still includes local scan guidance.
- Captured the dedicated banned-account appeal page from a running local ClawHub preview after `/dashboard?error_description=Account%20banned` redirected to `/account-banned`.
@@ -1,32 +0,0 @@
{
"generatedAt": "2026-06-05T23:54:26.000Z",
"mode": "feature",
"status": "pass",
"provider": "rendered email builder plus live in-app browser preview",
"scenario": "account-ban email without scan-results block plus dedicated banned-account route",
"candidate": "worktree 3b4cc2d9",
"outputDir": ".artifacts/pr-2520-proof",
"lanes": [
{
"name": "candidate",
"ref": "worktree 3b4cc2d9",
"status": "pass",
"steps": [
{
"lane": "candidate",
"name": "Rendered moderation emails",
"slug": "rendered-emails",
"status": "pass",
"screenshot": "screenshots/rendered-emails.png"
},
{
"lane": "candidate",
"name": "Dedicated banned-account appeal page",
"slug": "banned-sign-in",
"status": "pass",
"screenshot": "screenshots/banned-sign-in.png"
}
]
}
]
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 119 KiB

@@ -1,6 +0,0 @@
# PR #2520 proof
Status: pass
- Rendered the account-ban and artifact-level scanner rejection emails from the real email builders.
- Captured the banned-account sign-in copy from a full-stack local ClawHub preview with local Convex on `/dashboard?error_description=Account%20banned`.
@@ -1,32 +0,0 @@
{
"generatedAt": "2026-06-05T23:09:45.000Z",
"mode": "feature",
"status": "pass",
"provider": "rendered email builder plus full-stack local-auth Playwright",
"scenario": "email builder rendering plus live ClawHub dashboard auth-error route",
"candidate": "worktree 03bc802e",
"outputDir": ".artifacts/pr-2520-proof",
"lanes": [
{
"name": "candidate",
"ref": "worktree 03bc802e",
"status": "pass",
"steps": [
{
"lane": "candidate",
"name": "Rendered moderation emails",
"slug": "rendered-emails",
"status": "pass",
"screenshot": "screenshots/rendered-emails.png"
},
{
"lane": "candidate",
"name": "Live banned-account dashboard sign-in copy",
"slug": "banned-sign-in",
"status": "pass",
"screenshot": "screenshots/banned-sign-in.png"
}
]
}
]
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 119 KiB

@@ -1,6 +0,0 @@
# PR #2520 proof
Status: pass
- Rendered the account-ban and artifact-level scanner rejection emails from the real email builders.
- Captured the banned-account sign-in copy from a full-stack local ClawHub preview with local Convex on `/dashboard?error_description=Account%20banned`.
@@ -1,32 +0,0 @@
{
"generatedAt": "2026-06-05T23:09:45.000Z",
"mode": "feature",
"status": "pass",
"provider": "rendered email builder plus full-stack local-auth Playwright",
"scenario": "email builder rendering plus live ClawHub dashboard auth-error route",
"candidate": "worktree 03bc802e",
"outputDir": ".artifacts/pr-2520-proof",
"lanes": [
{
"name": "candidate",
"ref": "worktree 03bc802e",
"status": "pass",
"steps": [
{
"lane": "candidate",
"name": "Rendered moderation emails",
"slug": "rendered-emails",
"status": "pass",
"screenshot": "screenshots/rendered-emails.png"
},
{
"lane": "candidate",
"name": "Live banned-account dashboard sign-in copy",
"slug": "banned-sign-in",
"status": "pass",
"screenshot": "screenshots/banned-sign-in.png"
}
]
}
]
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 350 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 332 KiB

@@ -1,13 +0,0 @@
# PR 2520 live local proof
Status: pass
Captured from a live local ClawHub dev server started with `bun run dev` at `http://localhost:3000`.
Screenshots cover:
- dedicated account-banned page at desktop and mobile widths
- moderation email output generated from `convex/lib/emails.ts` and served through the same local ClawHub dev server
- account-ban email appeal-only copy
- skill rejection email with `clawhub scan download demo-skill --version 1.2.3`
- plugin rejection email with `clawhub scan download @scope/demo --version 2.0.0 --kind plugin`
@@ -1,46 +0,0 @@
{
"status": "pass",
"mode": "feature",
"provider": "local ClawHub dev server",
"localServer": "bun run dev -> http://localhost:3000",
"commit": "03bcca63",
"generatedAt": "2026-06-06T00:39:17.133Z",
"screenshots": [
{
"slug": "account-banned-desktop",
"url": "http://localhost:3000/account-banned",
"viewport": {
"width": 1440,
"height": 980
},
"screenshot": "candidate/screenshots/account-banned-desktop.png"
},
{
"slug": "account-banned-mobile",
"url": "http://localhost:3000/account-banned",
"viewport": {
"width": 390,
"height": 844
},
"screenshot": "candidate/screenshots/account-banned-mobile.png"
},
{
"slug": "moderation-emails-desktop",
"url": "http://localhost:3000/__pr-2520-email-proof.html",
"viewport": {
"width": 1440,
"height": 1200
},
"screenshot": "candidate/screenshots/moderation-emails-desktop.png"
},
{
"slug": "moderation-emails-mobile",
"url": "http://localhost:3000/__pr-2520-email-proof.html",
"viewport": {
"width": 390,
"height": 1200
},
"screenshot": "candidate/screenshots/moderation-emails-mobile.png"
}
]
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

@@ -1,6 +0,0 @@
# ClawHub UI Proof
- Status: passed
- Mode: feature
- Scenario: plugin-list-no-family-badges
- Proof: plugin list still shows download counts while Code Plugin and Bundle Plugin family badges are absent.
@@ -1,20 +0,0 @@
{
"status": "passed",
"mode": "feature",
"scenario": "plugin-list-no-family-badges",
"provider": "codex-in-app-browser",
"candidate": "pe/plugin-download-counts",
"lanes": [
{
"name": "candidate",
"steps": [
{
"name": "Plugin list without family badges",
"slug": "plugin-list-no-family-badges",
"status": "passed",
"screenshot": "plugin-list-no-family-badges.png"
}
]
}
]
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

@@ -1,6 +0,0 @@
# ClawHub UI Proof
Status: pass
- Account deletion confirmation renders one row per affected skill/plugin, with icon, name, publisher handle, and type badge.
- Post-cleanup navigation to the deleted plugin shows `Plugin not found`, confirming the resource was removed by the account deletion flow.
@@ -1,32 +0,0 @@
{
"status": "pass",
"mode": "feature",
"scenario": "e2e/local-auth/delete-account-resources.pw.test.ts",
"provider": "local-auth Playwright",
"baseline": null,
"candidate": "pe/account-deletion-hard-delete",
"generatedAt": "2026-06-06T00:37:39.268Z",
"lanes": [
{
"name": "candidate",
"ref": "pe/account-deletion-hard-delete",
"status": "pass",
"steps": [
{
"lane": "candidate",
"name": "Account deletion confirmation lists each resource row",
"screenshot": "screenshots/account-deletion-confirmation.png",
"slug": "account-deletion-confirmation",
"status": "pass"
},
{
"lane": "candidate",
"name": "Deleted plugin route shows resource removed",
"screenshot": "screenshots/account-deletion-post-cleanup.png",
"slug": "account-deletion-post-cleanup",
"status": "pass"
}
]
}
]
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 99 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 156 KiB

@@ -1,10 +0,0 @@
# Skill Settings Delete Action
Real-browser feature proof for the skill settings delete action.
- Route: local-auth seeded skill settings page
- Browser: Playwright chromium
- Candidate: pe/skill-settings-delete-action
- Screenshots:
- `local/delete-action.png`
- `local/delete-dialog.png`
@@ -1,26 +0,0 @@
{
"status": "passed",
"mode": "feature",
"scenario": "skill-settings-delete-action",
"provider": "local-auth Playwright chromium",
"candidate": "pe/skill-settings-delete-action",
"lanes": [
{
"name": "local",
"steps": [
{
"name": "Skill settings delete action",
"slug": "delete-action",
"status": "passed",
"screenshot": "delete-action.png"
},
{
"name": "Skill settings delete confirmation dialog",
"slug": "delete-dialog",
"status": "passed",
"screenshot": "delete-dialog.png"
}
]
}
]
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 505 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 439 KiB

@@ -1,11 +0,0 @@
# PR 2581 prod-backed UI proof
Status: passed
Mode: feature
Backend: production Convex read data (`wry-manatee-359`).
Pages captured:
- `/skills?sort=installs&dir=desc` showing prod skill rows and install sort.
- `/search?q=swarm` showing prod search results.
- `/chair4ce/swarm` showing a prod-backed skill detail page.
Note: default `/plugins` was not used because this PR head can request `sort=recommended`, which requires matching backend code that is not deployed to prod yet.
@@ -1,32 +0,0 @@
{
"status": "passed",
"mode": "feature",
"scenario": "manual prod-backed PR proof: skills browse, search, and detail",
"provider": "local Playwright against http://127.0.0.1:3007 with prod Convex",
"candidate": "PR #2581 rebased head f43b8ed3",
"lanes": [
{
"name": "candidate",
"steps": [
{
"name": "Skills browse sorted by installs",
"slug": "skills-installs",
"status": "passed",
"screenshot": "skills-installs.png"
},
{
"name": "Search results for swarm",
"slug": "search-swarm",
"status": "passed",
"screenshot": "search-swarm.png"
},
{
"name": "Skill detail for chair4ce/swarm",
"slug": "skill-detail-swarm",
"status": "passed",
"screenshot": "skill-detail-swarm.png"
}
]
}
]
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 691 KiB

Some files were not shown because too many files have changed in this diff Show More