Commit Graph

24 Commits

Author SHA1 Message Date
Dani f0e441fcdc chore: remove legacy Vercel api/ directory, CLAUDE_BACKUP.md, and dead Vercel scripts/deps
- api/ was the pre-migration Vercel serverless functions; all endpoints now
  live in dashboard/src/pages/api/ (Astro routes on Cloudflare Pages)
- CLAUDE_BACKUP.md was a stale copy of CLAUDE.md from the Vercel era
- package.json: drop 'vercel dev' scripts, broken discord:register (target
  file no longer exists), unused @vercel/postgres, discord-interactions and
  @vercel/node; package-lock.json regenerated
2026-07-17 13:12:11 -04:00
spartan bc4618b072 Merge commit from fork
* Fix unauthenticated command injection (RCE) in Studio server

The `--studio` server (cli-tool/src/sandbox-server.js) bound to 0.0.0.0
with wildcard CORS and no authentication, and passed request-body fields
into spawn(..., { shell: true }). Because shell:true makes Node join the
argv array into a single `sh -c` string, the fields were parsed by the
shell, allowing OS command injection (RCE) via POST /api/execute (prompt)
and POST /api/install-agent (agentName), reachable from the LAN or a
malicious web page (wildcard CORS).

- Remove shell:true from all three spawns so arguments stay discrete argv
  entries; shell metacharacters can no longer inject commands.
- Validate agentName against ^[A-Za-z0-9._/-]+$ before use.
- Bind the server to 127.0.0.1 only (removes the LAN vector).
- Restrict CORS to the local UI origin and reject cross-origin requests
  (removes the drive-by browser vector).

Fixes GHSA-79wm-x847-7cvg.

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

* security: Windows-safe spawns + release bump on top of GHSA-79wm-x847-7cvg fix

Builds on @spartan8806's fix (advisory-fix-1). Adds the two pieces that fix
lacked:

- Resolve npx/claude via their .cmd shims on Windows (NPX_CMD/CLAUDE_CMD).
  Without shell:true, bare spawn('npx'/'claude') fails with ENOENT on win32,
  which would break agent install/local execution. This keeps the security fix
  cross-platform.
- Bump version to 1.29.4 (root + cli-tool package.json) and add the 1.29.4
  Security entry to CHANGELOG for the patched release.

Refs GHSA-79wm-x847-7cvg.

---------

Co-authored-by: spartan8806 <spartan8806@users.noreply.github.com>
Co-authored-by: Claude Opus <noreply@anthropic.com>
Co-authored-by: Dani <dan.avila7@gmail.com>
2026-07-14 19:25:34 -04:00
Dani 7ca94b9d6f chore: Update components catalog and bump version to 1.29.3
Regenerates docs/components.json from cli-tool/components/ to pick up
the recently added HikerAPI, LamaTok, and DataLikers MCP servers.
2026-07-03 10:50:40 -04:00
daniel 2b19c0ab4b fix: include cli-tool/package.json in npm files field
cli-tool/src/analytics.js and others require('../package.json') which
resolves to cli-tool/package.json — must be bundled in the npm package.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-13 18:59:05 -04:00
daniel 2c86c0f128 fix: add missing @clack/prompts and gradient-string dependencies
CLI fails with MODULE_NOT_FOUND because root package.json was missing
these deps that cli-tool/src/index.js requires.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-13 18:49:08 -04:00
daniel 78834e06cf fix: add files field to exclude dashboard from npm package
Package was 413 too large due to dashboard/public/component-content/.
Only cli-tool/bin, cli-tool/src, cli-tool/components/sandbox, and README needed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-13 18:29:01 -04:00
daniel 75c9844626 chore: bump version to 1.29.0
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-13 17:15:08 -04:00
Dani d1f561f914 feat: Migrate API endpoints to Astro dashboard, unify under single Vercel project
- Migrate all API endpoints from api/ (Vercel serverless) to dashboard/src/pages/api/ (Astro routes)
  - track-download-supabase, track-command-usage, track-installation-outcome, track-website-events
  - collections (index, [id], items)
  - health-check, claude-code-check, discord/interactions
- Add shared API libs: cors.ts, neon.ts, auth.ts, changelog-parser.ts
- Add @supabase/supabase-js, @neondatabase/serverless, discord-interactions, @clerk/backend deps
- Remove catch-all API proxy ([...path].ts) - APIs are now native Astro routes
- Serve components.json and trending-data.json from dashboard/public/
- Switch to same-origin fetching (relative URLs) for data files
- Add dashboard/vercel.json with crons and CORS headers
- Simplify CI/CD to single deploy target (dashboard project)
- Update deploy script and package.json scripts

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 20:59:52 -05:00
daniel 40f631f000 feat: Add deploy scripts and CI/CD for dual Vercel projects
- Add scripts/deploy.sh with site/dashboard/all targets
- Add npm scripts: deploy:site, deploy:dashboard, deploy:all
- Add GitHub Actions workflow with path-based triggers:
  docs/api/vercel.json changes → deploy www.aitmpl.com
  dashboard/ changes → deploy app.aitmpl.com
- Update CLAUDE.md deployment docs, remove obsolete prebuild notes

Resolves CLA-22

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 23:13:17 -05:00
daniel 6d7e6be304 fix: Add missing js-yaml dependency to package.json
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 23:07:18 -05:00
daniel 40fd4c5565 fix: Add missing qrcode dependency to package.json
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 23:03:17 -05:00
daniel 5dc66af4ad chore: Bump version to 1.28.14 for npm publish
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 22:50:49 -05:00
daniel 9a3993fa3a 1.21.15 2026-02-08 22:45:10 -05:00
Dani b572cb14db feat: add Discord bot with Vercel Functions
- Add 5 slash commands: /search, /info, /install, /popular, /random
- Serverless implementation using Vercel Functions
- Component search and discovery functionality
- Smart caching for components.json
- Setup documentation
2025-10-28 07:39:10 -04:00
Dani 9fda1f8a98 fix(api): Add @supabase/supabase-js dependency to root package.json for Vercel functions 2025-10-21 14:42:40 -04:00
Dani 1aa6d8b324 1.21.14 2025-10-17 20:26:31 -04:00
Dani 5234cf7d9d chore: bump version to 1.21.13 2025-10-01 20:03:52 -04:00
Dani 8d87552aa2 1.21.4 2025-10-01 20:03:19 -04:00
Dani 0adbaa3593 1.21.3 2025-10-01 20:03:09 -04:00
Dani f2cdcba204 1.21.2 2025-10-01 20:02:50 -04:00
Dani 4a8f09faff agent.json api 2025-09-07 17:39:35 -04:00
Dani 7cc2d82df1 1.0.1 2025-09-07 17:25:28 -04:00
Dani e2e33e70ba Enhance AI Specialist Agents and Security Features
- Updated hackathon-ai-strategist agent description and added tools for improved functionality.
- Revised llms-maintainer agent for proactive updates and enhanced tools.
- Introduced new model-evaluator agent for comprehensive AI model assessment and benchmarking.
- Enhanced prompt-engineer agent description for clarity on usage.
- Updated task-decomposition-expert agent to emphasize complex goal breakdown and tool selection.
- Expanded graphql-architect agent with detailed schema design and resolver optimization strategies.
- Created graphql-performance-optimizer agent for performance analysis and optimization of GraphQL APIs.
- Developed graphql-security-specialist agent focusing on security audits, authorization, and protection against vulnerabilities.
- Added security-auditor script to package.json for automated security audits.
2025-08-22 13:32:39 -04:00
Dani b5f5c49ec8 feat: add anonymous download tracking system with Vercel database integration
Implements a comprehensive download tracking system inspired by npm analytics
to monitor component usage and improve popular components.

Key features:
• Anonymous download tracking for all component types (agents, commands, mcps, settings, hooks)
• Vercel + PostgreSQL backend with dual endpoint strategy
• Privacy-first design with complete opt-out support
• Fire-and-forget tracking that never blocks user experience
• Comprehensive test suite and documentation

Backend changes:
• Created API endpoint /api/track-download.js with PostgreSQL integration
• Implemented proper database schema with download_stats aggregation
• Added request validation, rate limiting, and security measures
• Configured Vercel deployment with database functions

CLI changes:
• Enhanced TrackingService to support database + telemetry endpoints
• Added automatic tracking for all installation types
• Implemented graceful fallback when database is unavailable
• Maintains existing privacy and opt-out mechanisms

Testing & Documentation:
• Added comprehensive test suite (test-download-tracking.js)
• Created detailed documentation (DOWNLOAD_TRACKING.md)
• Included deployment instructions and troubleshooting guide
• Added security and compliance information

The system respects user privacy by:
- Only collecting anonymous usage metrics
- Providing multiple opt-out mechanisms (CCT_NO_TRACKING, CCT_NO_ANALYTICS, CI=true)
- Never storing personally identifiable information
- Using fire-and-forget requests with timeout limits

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-19 14:17:34 -04:00