Skip to content

End-to-end audit: version drift, CLI hardening, npm packaging, CI, dependency security - #5

Merged
MrSpacemann merged 2 commits into
mainfrom
kanban/2322c1d5-b93e-4831-b5fd-3e54d2cf57db-take-a-look-at-the-entire-pollys
Jul 2, 2026
Merged

End-to-end audit: version drift, CLI hardening, npm packaging, CI, dependency security#5
MrSpacemann merged 2 commits into
mainfrom
kanban/2322c1d5-b93e-4831-b5fd-3e54d2cf57db-take-a-look-at-the-entire-pollys

Conversation

@MrSpacemann

Copy link
Copy Markdown
Owner

Full repo audit with fixes. Two commits:

Audit fixes (ef16fde) — reviewed clean by the code-review gate:

  • CLI reads its version from package.json at runtime — the hardcoded string had drifted (published 0.1.13 reports 0.1.12); CONTRIBUTING double-bump step removed; parse → parseAsync
  • openai/grok/kimi adapters deduplicated into an exported openaiCompatibleAdapter(platform) factory (they were byte-identical)
  • install validates skill-name format on the typed argument (fails fast before network) and on the response name before it shapes filesystem paths (blocks traversal from a hostile/misbehaving registry)
  • search errors include the numeric HTTP status (statusText is empty over HTTP/2) and handle invalid-JSON responses cleanly
  • publish warns on unknown adapters (parity with build)
  • init template no longer references a ./src/index.ts it never scaffolds
  • getting-started skill bumped 1.0.7 → 1.0.9: the published 1.0.8 is stale (teaches --sort downloads, which the API rejects) and blocked republishing; needs an authenticated polyskill publish after merge
  • npm packaging: license/repository/homepage/bugs/keywords/engines + per-package README and LICENSE (both npm pages currently render bare)
  • GitHub Actions CI added (pnpm build + test, Node 20/22); packageManager pinned
  • Wiki landmines recorded for both drift classes

Dependency security (3bd1889) — resolves all 15 open Dependabot alerts (1 critical, 7 high) via in-range updates; build + 127 tests green on the updated tree. Supersedes Dependabot PRs #1 and #3.

🤖 Generated with Claude Code

MrSpacemann and others added 2 commits July 2, 2026 23:42
- CLI reads its version from package.json at runtime (createRequire) —
  the hardcoded string had drifted (npm 0.1.13 reports 0.1.12); drop the
  double-bump step from CONTRIBUTING and switch to parseAsync
- Deduplicate openai/grok/kimi adapters into an exported
  openaiCompatibleAdapter(platform) factory (they were byte-identical)
- install: validate skill-name format on the typed arg (fail fast,
  before network) and on the response name before it shapes fs paths
  (blocks traversal from a malicious registry, e.g. backslash names on
  Windows); state-machine header updated
- search: include numeric HTTP status in errors (statusText is empty
  over HTTP/2) and handle invalid-JSON responses cleanly
- publish: warn on unknown adapters (parity with build)
- init template: drop "main": "./src/index.ts" — init never scaffolds it
- getting-started: bump 1.0.7 -> 1.0.9; published 1.0.8 is stale and
  teaches --sort downloads which the API rejects, and 1.0.7 < 1.0.8
  blocked republishing the corrected content (needs a publish to go live)
- npm packaging: license/repository/homepage/bugs/keywords/engines +
  per-package README and LICENSE (both npm pages currently render bare)
- Add GitHub Actions CI (pnpm build + test on Node 20/22) and pin
  packageManager
- Wiki: landmines for version source-of-truth and skill publish drift

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
pnpm -r update within existing majors. Covers the shipped runtime deps
(tar 7.5.19 file-smuggling fix for the CLI; ajv 8.20.0 ReDoS +
fast-uri 3.1.3 traversal fixes for core) and the dev-only chain
(vitest 3.2.6 critical UI-server RCE, vite 7.3.6, esbuild 0.28.1,
rollup 4.62.2, postcss 8.5.16, picomatch 4.0.4). Build + full test
suite green on the updated tree.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@MrSpacemann
MrSpacemann merged commit b4c276e into main Jul 2, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant