availsync 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.adal/skills/stripe-best-practices/SKILL.md +42 -0
- package/.adal/skills/stripe-best-practices/references/billing.md +36 -0
- package/.adal/skills/stripe-best-practices/references/connect.md +48 -0
- package/.adal/skills/stripe-best-practices/references/payments.md +79 -0
- package/.adal/skills/stripe-best-practices/references/security.md +109 -0
- package/.adal/skills/stripe-best-practices/references/treasury.md +16 -0
- package/.adal/skills/stripe-projects/SKILL.md +139 -0
- package/.adal/skills/upgrade-stripe/SKILL.md +185 -0
- package/.agents/skills/stripe-best-practices/SKILL.md +42 -0
- package/.agents/skills/stripe-best-practices/references/billing.md +36 -0
- package/.agents/skills/stripe-best-practices/references/connect.md +48 -0
- package/.agents/skills/stripe-best-practices/references/payments.md +79 -0
- package/.agents/skills/stripe-best-practices/references/security.md +109 -0
- package/.agents/skills/stripe-best-practices/references/treasury.md +16 -0
- package/.agents/skills/stripe-projects/SKILL.md +139 -0
- package/.agents/skills/upgrade-stripe/SKILL.md +185 -0
- package/.augment/skills/stripe-best-practices/SKILL.md +42 -0
- package/.augment/skills/stripe-best-practices/references/billing.md +36 -0
- package/.augment/skills/stripe-best-practices/references/connect.md +48 -0
- package/.augment/skills/stripe-best-practices/references/payments.md +79 -0
- package/.augment/skills/stripe-best-practices/references/security.md +109 -0
- package/.augment/skills/stripe-best-practices/references/treasury.md +16 -0
- package/.augment/skills/stripe-projects/SKILL.md +139 -0
- package/.augment/skills/upgrade-stripe/SKILL.md +185 -0
- package/.bob/skills/stripe-best-practices/SKILL.md +42 -0
- package/.bob/skills/stripe-best-practices/references/billing.md +36 -0
- package/.bob/skills/stripe-best-practices/references/connect.md +48 -0
- package/.bob/skills/stripe-best-practices/references/payments.md +79 -0
- package/.bob/skills/stripe-best-practices/references/security.md +109 -0
- package/.bob/skills/stripe-best-practices/references/treasury.md +16 -0
- package/.bob/skills/stripe-projects/SKILL.md +139 -0
- package/.bob/skills/upgrade-stripe/SKILL.md +185 -0
- package/.claude/settings.local.json +7 -0
- package/.claude/skills/stripe-best-practices/SKILL.md +42 -0
- package/.claude/skills/stripe-best-practices/references/billing.md +36 -0
- package/.claude/skills/stripe-best-practices/references/connect.md +48 -0
- package/.claude/skills/stripe-best-practices/references/payments.md +79 -0
- package/.claude/skills/stripe-best-practices/references/security.md +109 -0
- package/.claude/skills/stripe-best-practices/references/treasury.md +16 -0
- package/.claude/skills/stripe-projects/SKILL.md +139 -0
- package/.claude/skills/upgrade-stripe/SKILL.md +185 -0
- package/.codebuddy/skills/stripe-best-practices/SKILL.md +42 -0
- package/.codebuddy/skills/stripe-best-practices/references/billing.md +36 -0
- package/.codebuddy/skills/stripe-best-practices/references/connect.md +48 -0
- package/.codebuddy/skills/stripe-best-practices/references/payments.md +79 -0
- package/.codebuddy/skills/stripe-best-practices/references/security.md +109 -0
- package/.codebuddy/skills/stripe-best-practices/references/treasury.md +16 -0
- package/.codebuddy/skills/stripe-projects/SKILL.md +139 -0
- package/.codebuddy/skills/upgrade-stripe/SKILL.md +185 -0
- package/.commandcode/skills/stripe-best-practices/SKILL.md +42 -0
- package/.commandcode/skills/stripe-best-practices/references/billing.md +36 -0
- package/.commandcode/skills/stripe-best-practices/references/connect.md +48 -0
- package/.commandcode/skills/stripe-best-practices/references/payments.md +79 -0
- package/.commandcode/skills/stripe-best-practices/references/security.md +109 -0
- package/.commandcode/skills/stripe-best-practices/references/treasury.md +16 -0
- package/.commandcode/skills/stripe-projects/SKILL.md +139 -0
- package/.commandcode/skills/upgrade-stripe/SKILL.md +185 -0
- package/.continue/skills/stripe-best-practices/SKILL.md +42 -0
- package/.continue/skills/stripe-best-practices/references/billing.md +36 -0
- package/.continue/skills/stripe-best-practices/references/connect.md +48 -0
- package/.continue/skills/stripe-best-practices/references/payments.md +79 -0
- package/.continue/skills/stripe-best-practices/references/security.md +109 -0
- package/.continue/skills/stripe-best-practices/references/treasury.md +16 -0
- package/.continue/skills/stripe-projects/SKILL.md +139 -0
- package/.continue/skills/upgrade-stripe/SKILL.md +185 -0
- package/.cortex/skills/stripe-best-practices/SKILL.md +42 -0
- package/.cortex/skills/stripe-best-practices/references/billing.md +36 -0
- package/.cortex/skills/stripe-best-practices/references/connect.md +48 -0
- package/.cortex/skills/stripe-best-practices/references/payments.md +79 -0
- package/.cortex/skills/stripe-best-practices/references/security.md +109 -0
- package/.cortex/skills/stripe-best-practices/references/treasury.md +16 -0
- package/.cortex/skills/stripe-projects/SKILL.md +139 -0
- package/.cortex/skills/upgrade-stripe/SKILL.md +185 -0
- package/.crush/skills/stripe-best-practices/SKILL.md +42 -0
- package/.crush/skills/stripe-best-practices/references/billing.md +36 -0
- package/.crush/skills/stripe-best-practices/references/connect.md +48 -0
- package/.crush/skills/stripe-best-practices/references/payments.md +79 -0
- package/.crush/skills/stripe-best-practices/references/security.md +109 -0
- package/.crush/skills/stripe-best-practices/references/treasury.md +16 -0
- package/.crush/skills/stripe-projects/SKILL.md +139 -0
- package/.crush/skills/upgrade-stripe/SKILL.md +185 -0
- package/.env.example +20 -0
- package/.factory/skills/stripe-best-practices/SKILL.md +42 -0
- package/.factory/skills/stripe-best-practices/references/billing.md +36 -0
- package/.factory/skills/stripe-best-practices/references/connect.md +48 -0
- package/.factory/skills/stripe-best-practices/references/payments.md +79 -0
- package/.factory/skills/stripe-best-practices/references/security.md +109 -0
- package/.factory/skills/stripe-best-practices/references/treasury.md +16 -0
- package/.factory/skills/stripe-projects/SKILL.md +139 -0
- package/.factory/skills/upgrade-stripe/SKILL.md +185 -0
- package/.goose/skills/stripe-best-practices/SKILL.md +42 -0
- package/.goose/skills/stripe-best-practices/references/billing.md +36 -0
- package/.goose/skills/stripe-best-practices/references/connect.md +48 -0
- package/.goose/skills/stripe-best-practices/references/payments.md +79 -0
- package/.goose/skills/stripe-best-practices/references/security.md +109 -0
- package/.goose/skills/stripe-best-practices/references/treasury.md +16 -0
- package/.goose/skills/stripe-projects/SKILL.md +139 -0
- package/.goose/skills/upgrade-stripe/SKILL.md +185 -0
- package/.iflow/skills/stripe-best-practices/SKILL.md +42 -0
- package/.iflow/skills/stripe-best-practices/references/billing.md +36 -0
- package/.iflow/skills/stripe-best-practices/references/connect.md +48 -0
- package/.iflow/skills/stripe-best-practices/references/payments.md +79 -0
- package/.iflow/skills/stripe-best-practices/references/security.md +109 -0
- package/.iflow/skills/stripe-best-practices/references/treasury.md +16 -0
- package/.iflow/skills/stripe-projects/SKILL.md +139 -0
- package/.iflow/skills/upgrade-stripe/SKILL.md +185 -0
- package/.junie/skills/stripe-best-practices/SKILL.md +42 -0
- package/.junie/skills/stripe-best-practices/references/billing.md +36 -0
- package/.junie/skills/stripe-best-practices/references/connect.md +48 -0
- package/.junie/skills/stripe-best-practices/references/payments.md +79 -0
- package/.junie/skills/stripe-best-practices/references/security.md +109 -0
- package/.junie/skills/stripe-best-practices/references/treasury.md +16 -0
- package/.junie/skills/stripe-projects/SKILL.md +139 -0
- package/.junie/skills/upgrade-stripe/SKILL.md +185 -0
- package/.kilocode/skills/stripe-best-practices/SKILL.md +42 -0
- package/.kilocode/skills/stripe-best-practices/references/billing.md +36 -0
- package/.kilocode/skills/stripe-best-practices/references/connect.md +48 -0
- package/.kilocode/skills/stripe-best-practices/references/payments.md +79 -0
- package/.kilocode/skills/stripe-best-practices/references/security.md +109 -0
- package/.kilocode/skills/stripe-best-practices/references/treasury.md +16 -0
- package/.kilocode/skills/stripe-projects/SKILL.md +139 -0
- package/.kilocode/skills/upgrade-stripe/SKILL.md +185 -0
- package/.kiro/skills/stripe-best-practices/SKILL.md +42 -0
- package/.kiro/skills/stripe-best-practices/references/billing.md +36 -0
- package/.kiro/skills/stripe-best-practices/references/connect.md +48 -0
- package/.kiro/skills/stripe-best-practices/references/payments.md +79 -0
- package/.kiro/skills/stripe-best-practices/references/security.md +109 -0
- package/.kiro/skills/stripe-best-practices/references/treasury.md +16 -0
- package/.kiro/skills/stripe-projects/SKILL.md +139 -0
- package/.kiro/skills/upgrade-stripe/SKILL.md +185 -0
- package/.kode/skills/stripe-best-practices/SKILL.md +42 -0
- package/.kode/skills/stripe-best-practices/references/billing.md +36 -0
- package/.kode/skills/stripe-best-practices/references/connect.md +48 -0
- package/.kode/skills/stripe-best-practices/references/payments.md +79 -0
- package/.kode/skills/stripe-best-practices/references/security.md +109 -0
- package/.kode/skills/stripe-best-practices/references/treasury.md +16 -0
- package/.kode/skills/stripe-projects/SKILL.md +139 -0
- package/.kode/skills/upgrade-stripe/SKILL.md +185 -0
- package/.mcpjam/skills/stripe-best-practices/SKILL.md +42 -0
- package/.mcpjam/skills/stripe-best-practices/references/billing.md +36 -0
- package/.mcpjam/skills/stripe-best-practices/references/connect.md +48 -0
- package/.mcpjam/skills/stripe-best-practices/references/payments.md +79 -0
- package/.mcpjam/skills/stripe-best-practices/references/security.md +109 -0
- package/.mcpjam/skills/stripe-best-practices/references/treasury.md +16 -0
- package/.mcpjam/skills/stripe-projects/SKILL.md +139 -0
- package/.mcpjam/skills/upgrade-stripe/SKILL.md +185 -0
- package/.mux/skills/stripe-best-practices/SKILL.md +42 -0
- package/.mux/skills/stripe-best-practices/references/billing.md +36 -0
- package/.mux/skills/stripe-best-practices/references/connect.md +48 -0
- package/.mux/skills/stripe-best-practices/references/payments.md +79 -0
- package/.mux/skills/stripe-best-practices/references/security.md +109 -0
- package/.mux/skills/stripe-best-practices/references/treasury.md +16 -0
- package/.mux/skills/stripe-projects/SKILL.md +139 -0
- package/.mux/skills/upgrade-stripe/SKILL.md +185 -0
- package/.neovate/skills/stripe-best-practices/SKILL.md +42 -0
- package/.neovate/skills/stripe-best-practices/references/billing.md +36 -0
- package/.neovate/skills/stripe-best-practices/references/connect.md +48 -0
- package/.neovate/skills/stripe-best-practices/references/payments.md +79 -0
- package/.neovate/skills/stripe-best-practices/references/security.md +109 -0
- package/.neovate/skills/stripe-best-practices/references/treasury.md +16 -0
- package/.neovate/skills/stripe-projects/SKILL.md +139 -0
- package/.neovate/skills/upgrade-stripe/SKILL.md +185 -0
- package/.nixpacksignore +14 -0
- package/.openhands/skills/stripe-best-practices/SKILL.md +42 -0
- package/.openhands/skills/stripe-best-practices/references/billing.md +36 -0
- package/.openhands/skills/stripe-best-practices/references/connect.md +48 -0
- package/.openhands/skills/stripe-best-practices/references/payments.md +79 -0
- package/.openhands/skills/stripe-best-practices/references/security.md +109 -0
- package/.openhands/skills/stripe-best-practices/references/treasury.md +16 -0
- package/.openhands/skills/stripe-projects/SKILL.md +139 -0
- package/.openhands/skills/upgrade-stripe/SKILL.md +185 -0
- package/.pi/skills/stripe-best-practices/SKILL.md +42 -0
- package/.pi/skills/stripe-best-practices/references/billing.md +36 -0
- package/.pi/skills/stripe-best-practices/references/connect.md +48 -0
- package/.pi/skills/stripe-best-practices/references/payments.md +79 -0
- package/.pi/skills/stripe-best-practices/references/security.md +109 -0
- package/.pi/skills/stripe-best-practices/references/treasury.md +16 -0
- package/.pi/skills/stripe-projects/SKILL.md +139 -0
- package/.pi/skills/upgrade-stripe/SKILL.md +185 -0
- package/.pochi/skills/stripe-best-practices/SKILL.md +42 -0
- package/.pochi/skills/stripe-best-practices/references/billing.md +36 -0
- package/.pochi/skills/stripe-best-practices/references/connect.md +48 -0
- package/.pochi/skills/stripe-best-practices/references/payments.md +79 -0
- package/.pochi/skills/stripe-best-practices/references/security.md +109 -0
- package/.pochi/skills/stripe-best-practices/references/treasury.md +16 -0
- package/.pochi/skills/stripe-projects/SKILL.md +139 -0
- package/.pochi/skills/upgrade-stripe/SKILL.md +185 -0
- package/.qoder/skills/stripe-best-practices/SKILL.md +42 -0
- package/.qoder/skills/stripe-best-practices/references/billing.md +36 -0
- package/.qoder/skills/stripe-best-practices/references/connect.md +48 -0
- package/.qoder/skills/stripe-best-practices/references/payments.md +79 -0
- package/.qoder/skills/stripe-best-practices/references/security.md +109 -0
- package/.qoder/skills/stripe-best-practices/references/treasury.md +16 -0
- package/.qoder/skills/stripe-projects/SKILL.md +139 -0
- package/.qoder/skills/upgrade-stripe/SKILL.md +185 -0
- package/.qwen/skills/stripe-best-practices/SKILL.md +42 -0
- package/.qwen/skills/stripe-best-practices/references/billing.md +36 -0
- package/.qwen/skills/stripe-best-practices/references/connect.md +48 -0
- package/.qwen/skills/stripe-best-practices/references/payments.md +79 -0
- package/.qwen/skills/stripe-best-practices/references/security.md +109 -0
- package/.qwen/skills/stripe-best-practices/references/treasury.md +16 -0
- package/.qwen/skills/stripe-projects/SKILL.md +139 -0
- package/.qwen/skills/upgrade-stripe/SKILL.md +185 -0
- package/.roo/skills/stripe-best-practices/SKILL.md +42 -0
- package/.roo/skills/stripe-best-practices/references/billing.md +36 -0
- package/.roo/skills/stripe-best-practices/references/connect.md +48 -0
- package/.roo/skills/stripe-best-practices/references/payments.md +79 -0
- package/.roo/skills/stripe-best-practices/references/security.md +109 -0
- package/.roo/skills/stripe-best-practices/references/treasury.md +16 -0
- package/.roo/skills/stripe-projects/SKILL.md +139 -0
- package/.roo/skills/upgrade-stripe/SKILL.md +185 -0
- package/.trae/skills/stripe-best-practices/SKILL.md +42 -0
- package/.trae/skills/stripe-best-practices/references/billing.md +36 -0
- package/.trae/skills/stripe-best-practices/references/connect.md +48 -0
- package/.trae/skills/stripe-best-practices/references/payments.md +79 -0
- package/.trae/skills/stripe-best-practices/references/security.md +109 -0
- package/.trae/skills/stripe-best-practices/references/treasury.md +16 -0
- package/.trae/skills/stripe-projects/SKILL.md +139 -0
- package/.trae/skills/upgrade-stripe/SKILL.md +185 -0
- package/.vibe/skills/stripe-best-practices/SKILL.md +42 -0
- package/.vibe/skills/stripe-best-practices/references/billing.md +36 -0
- package/.vibe/skills/stripe-best-practices/references/connect.md +48 -0
- package/.vibe/skills/stripe-best-practices/references/payments.md +79 -0
- package/.vibe/skills/stripe-best-practices/references/security.md +109 -0
- package/.vibe/skills/stripe-best-practices/references/treasury.md +16 -0
- package/.vibe/skills/stripe-projects/SKILL.md +139 -0
- package/.vibe/skills/upgrade-stripe/SKILL.md +185 -0
- package/.windsurf/skills/stripe-best-practices/SKILL.md +42 -0
- package/.windsurf/skills/stripe-best-practices/references/billing.md +36 -0
- package/.windsurf/skills/stripe-best-practices/references/connect.md +48 -0
- package/.windsurf/skills/stripe-best-practices/references/payments.md +79 -0
- package/.windsurf/skills/stripe-best-practices/references/security.md +109 -0
- package/.windsurf/skills/stripe-best-practices/references/treasury.md +16 -0
- package/.windsurf/skills/stripe-projects/SKILL.md +139 -0
- package/.windsurf/skills/upgrade-stripe/SKILL.md +185 -0
- package/.zencoder/skills/stripe-best-practices/SKILL.md +42 -0
- package/.zencoder/skills/stripe-best-practices/references/billing.md +36 -0
- package/.zencoder/skills/stripe-best-practices/references/connect.md +48 -0
- package/.zencoder/skills/stripe-best-practices/references/payments.md +79 -0
- package/.zencoder/skills/stripe-best-practices/references/security.md +109 -0
- package/.zencoder/skills/stripe-best-practices/references/treasury.md +16 -0
- package/.zencoder/skills/stripe-projects/SKILL.md +139 -0
- package/.zencoder/skills/upgrade-stripe/SKILL.md +185 -0
- package/AUDIT.md +95 -0
- package/BLOCKERS.md +0 -0
- package/COOLIFY.md +51 -0
- package/MCP_SETUP.md +23 -0
- package/PRODUCTION_CHECKLIST.md +246 -0
- package/README.md +47 -0
- package/ROADMAP.md +91 -0
- package/docs/superpowers/plans/2026-05-11-availsync-frontend-sales-flow.md +2445 -0
- package/frontend/.env.example +2 -0
- package/frontend/app/admin/layout.tsx +13 -0
- package/frontend/app/admin/page.tsx +747 -0
- package/frontend/app/app/activity/page.tsx +257 -0
- package/frontend/app/app/agents/[agentId]/page.tsx +21 -0
- package/frontend/app/app/agents/page.tsx +1155 -0
- package/frontend/app/app/audit/page.tsx +225 -0
- package/frontend/app/app/availability/page.tsx +840 -0
- package/frontend/app/app/holds/page.tsx +262 -0
- package/frontend/app/app/layout.tsx +19 -0
- package/frontend/app/app/onboarding/page.tsx +10 -0
- package/frontend/app/app/onboarding/verify/page.tsx +309 -0
- package/frontend/app/app/page.tsx +508 -0
- package/frontend/app/app/settings/page.tsx +399 -0
- package/frontend/app/app/work/page.tsx +426 -0
- package/frontend/app/changelog/page.tsx +93 -0
- package/frontend/app/checkout/page.tsx +25 -0
- package/frontend/app/docs/api/page.tsx +157 -0
- package/frontend/app/docs/page.tsx +296 -0
- package/frontend/app/docs/pilot/page.tsx +127 -0
- package/frontend/app/docs/quickstart/page.tsx +318 -0
- package/frontend/app/docs/reliability/page.tsx +78 -0
- package/frontend/app/docs/sdk/node/page.tsx +166 -0
- package/frontend/app/globals.css +57 -0
- package/frontend/app/icon.png +0 -0
- package/frontend/app/layout.tsx +87 -0
- package/frontend/app/login/page.tsx +14 -0
- package/frontend/app/page.tsx +47 -0
- package/frontend/app/pricing/page.tsx +66 -0
- package/frontend/app/privacy/page.tsx +52 -0
- package/frontend/app/robots.ts +26 -0
- package/frontend/app/security/page.tsx +74 -0
- package/frontend/app/signup/page.tsx +14 -0
- package/frontend/app/sitemap.ts +14 -0
- package/frontend/app/terms/page.tsx +51 -0
- package/frontend/components/brand/AvailsyncLogo.tsx +56 -0
- package/frontend/components/checkout/CheckoutClient.tsx +100 -0
- package/frontend/components/dashboard/AgentForm.tsx +59 -0
- package/frontend/components/dashboard/AppShell.tsx +291 -0
- package/frontend/components/dashboard/AvailabilityChecker.tsx +117 -0
- package/frontend/components/dashboard/AvailabilityWindowForm.tsx +40 -0
- package/frontend/components/dashboard/HoldForm.tsx +133 -0
- package/frontend/components/dashboard/MetricCard.tsx +10 -0
- package/frontend/components/login/LoginForm.tsx +95 -0
- package/frontend/components/marketing/AgentCoordinationStory.tsx +1530 -0
- package/frontend/components/marketing/Faq.tsx +41 -0
- package/frontend/components/marketing/Hero.tsx +73 -0
- package/frontend/components/marketing/HowItWorks.tsx +28 -0
- package/frontend/components/marketing/ObserveModeTeaser.tsx +41 -0
- package/frontend/components/marketing/PricingTeaser.tsx +23 -0
- package/frontend/components/marketing/ProblemSolution.tsx +36 -0
- package/frontend/components/marketing/SiteFooter.tsx +59 -0
- package/frontend/components/marketing/SiteHeader.tsx +45 -0
- package/frontend/components/marketing/UseCases.tsx +27 -0
- package/frontend/components/onboarding/OnboardingClient.tsx +278 -0
- package/frontend/components/pricing/PricingCards.tsx +65 -0
- package/frontend/components/privacy/CookieConsent.tsx +230 -0
- package/frontend/components/privacy/CookieSettingsButton.tsx +15 -0
- package/frontend/components/seo/JsonLd.tsx +10 -0
- package/frontend/components/signup/SignupForm.tsx +55 -0
- package/frontend/components/ui/Badge.tsx +23 -0
- package/frontend/components/ui/Button.tsx +37 -0
- package/frontend/components/ui/Card.tsx +11 -0
- package/frontend/components/ui/ConfirmDialog.tsx +77 -0
- package/frontend/components/ui/EmptyState.tsx +24 -0
- package/frontend/components/ui/Input.tsx +14 -0
- package/frontend/components/ui/KeyDisplay.tsx +49 -0
- package/frontend/components/ui/Select.tsx +14 -0
- package/frontend/components/ui/Skeleton.tsx +24 -0
- package/frontend/components/ui/Tabs.tsx +19 -0
- package/frontend/components/ui/Textarea.tsx +14 -0
- package/frontend/components/ui/Toast.tsx +78 -0
- package/frontend/components/waitlist/WaitlistDialog.tsx +128 -0
- package/frontend/lib/api.ts +1282 -0
- package/frontend/lib/billing.ts +6 -0
- package/frontend/lib/cookieConsent.ts +113 -0
- package/frontend/lib/format.ts +16 -0
- package/frontend/lib/plans.ts +62 -0
- package/frontend/lib/schemas.ts +108 -0
- package/frontend/lib/seo.ts +376 -0
- package/frontend/lib/setupGuides.ts +630 -0
- package/frontend/lib/storage.ts +30 -0
- package/frontend/next-env.d.ts +6 -0
- package/frontend/next.config.mjs +13 -0
- package/frontend/package-lock.json +14409 -0
- package/frontend/package.json +41 -0
- package/frontend/playwright.config.ts +20 -0
- package/frontend/postcss.config.mjs +8 -0
- package/frontend/public/.gitkeep +0 -0
- package/frontend/public/brand/availsync-logo-board.png +0 -0
- package/frontend/public/brand/availsync-logo-dark.png +0 -0
- package/frontend/public/brand/availsync-mark-dark.png +0 -0
- package/frontend/public/brand/availsync-wordmark-dark.png +0 -0
- package/frontend/public/marketing/hero-agent-coordination.png +0 -0
- package/frontend/tailwind.config.ts +53 -0
- package/frontend/tests/smoke.spec.ts +89 -0
- package/frontend/tsconfig.json +23 -0
- package/jest.config.js +7 -0
- package/nixpacks.toml +11 -0
- package/package.json +53 -0
- package/packages/mcp/LICENSE +21 -0
- package/packages/mcp/README.md +60 -0
- package/packages/mcp/jest.config.cjs +8 -0
- package/packages/mcp/package.json +54 -0
- package/packages/mcp/src/helpers.ts +38 -0
- package/packages/mcp/src/index.test.ts +60 -0
- package/packages/mcp/src/index.ts +387 -0
- package/packages/mcp/tsconfig.json +20 -0
- package/packages/mcp/tsconfig.test.json +12 -0
- package/packages/node/LICENSE +21 -0
- package/packages/node/README.md +120 -0
- package/packages/node/jest.config.cjs +8 -0
- package/packages/node/package.json +46 -0
- package/packages/node/src/index.test.ts +360 -0
- package/packages/node/src/index.ts +402 -0
- package/packages/node/tsconfig.json +20 -0
- package/packages/node/tsconfig.test.json +12 -0
- package/plan.md +923 -0
- package/skills/stripe-best-practices/SKILL.md +42 -0
- package/skills/stripe-best-practices/references/billing.md +36 -0
- package/skills/stripe-best-practices/references/connect.md +48 -0
- package/skills/stripe-best-practices/references/payments.md +79 -0
- package/skills/stripe-best-practices/references/security.md +109 -0
- package/skills/stripe-best-practices/references/treasury.md +16 -0
- package/skills/stripe-projects/SKILL.md +139 -0
- package/skills/upgrade-stripe/SKILL.md +185 -0
- package/skills-lock.json +20 -0
- package/src/core/availability.ts +178 -0
- package/src/core/conflict.ts +209 -0
- package/src/core/work.ts +490 -0
- package/src/db/client.ts +17 -0
- package/src/db/migrations/001_init.sql +88 -0
- package/src/db/migrations/002_stripe.sql +2 -0
- package/src/db/migrations/003_workspace_auth.sql +19 -0
- package/src/db/migrations/004_agent_mcp_status.sql +2 -0
- package/src/db/migrations/005_hold_event_actor.sql +4 -0
- package/src/db/migrations/006_agent_activity.sql +35 -0
- package/src/db/migrations/007_work_coordination.sql +60 -0
- package/src/db/migrations/008_work_claim_leases.sql +20 -0
- package/src/db/migrations/009_billing_subscription_state.sql +23 -0
- package/src/db/migrations/010_agent_api_key_prefix.sql +10 -0
- package/src/db/migrations/011_org_verified_and_work_event_retention.sql +11 -0
- package/src/db/migrations/012_agent_enforcement_mode.sql +12 -0
- package/src/db/migrations/013_support_tickets.sql +21 -0
- package/src/db/migrations/014_paid_plan_waitlist.sql +23 -0
- package/src/db/migrations/015_agent_last_seen.sql +2 -0
- package/src/db/migrations.ts +164 -0
- package/src/db/run-migrations.ts +13 -0
- package/src/index.ts +183 -0
- package/src/lib/activity.ts +137 -0
- package/src/lib/apiKeys.ts +32 -0
- package/src/lib/appInfo.ts +26 -0
- package/src/lib/billingConfig.ts +3 -0
- package/src/lib/env.ts +75 -0
- package/src/lib/logger.ts +8 -0
- package/src/lib/plans.ts +204 -0
- package/src/mcp/server.js +5 -0
- package/src/mcp/server.ts +350 -0
- package/src/middleware/auth.ts +342 -0
- package/src/middleware/requestId.ts +16 -0
- package/src/routes/account.ts +168 -0
- package/src/routes/activity.ts +126 -0
- package/src/routes/admin.ts +514 -0
- package/src/routes/audit.ts +68 -0
- package/src/routes/auth.ts +203 -0
- package/src/routes/availability.ts +325 -0
- package/src/routes/billing.ts +406 -0
- package/src/routes/conflicts.ts +131 -0
- package/src/routes/holds.ts +437 -0
- package/src/routes/mcp.ts +57 -0
- package/src/routes/metrics.ts +39 -0
- package/src/routes/onboarding.ts +273 -0
- package/src/routes/orgs.ts +981 -0
- package/src/routes/preferences.ts +132 -0
- package/src/routes/session.ts +16 -0
- package/src/routes/support.ts +77 -0
- package/src/routes/value.ts +186 -0
- package/src/routes/waitlist.ts +63 -0
- package/src/routes/work.ts +1578 -0
- package/src/server.ts +36 -0
- package/src/types/index.ts +109 -0
- package/tests/integration/activity.route.test.ts +103 -0
- package/tests/integration/admin.route.test.ts +143 -0
- package/tests/integration/agent-keys.route.test.ts +237 -0
- package/tests/integration/availability.route.test.ts +125 -0
- package/tests/integration/billing.route.test.ts +393 -0
- package/tests/integration/conflicts.route.test.ts +131 -0
- package/tests/integration/flows.test.ts +154 -0
- package/tests/integration/helpers.ts +134 -0
- package/tests/integration/holds.route.test.ts +185 -0
- package/tests/integration/metrics.route.test.ts +100 -0
- package/tests/integration/onboarding.verify.route.test.ts +163 -0
- package/tests/integration/preferences.route.test.ts +53 -0
- package/tests/integration/session.route.test.ts +97 -0
- package/tests/integration/system.route.test.ts +92 -0
- package/tests/integration/value.route.test.ts +235 -0
- package/tests/integration/work.route.test.ts +745 -0
- package/tests/setup.ts +4 -0
- package/tests/smoke.sh +62 -0
- package/tests/unit/auth.test.ts +114 -0
- package/tests/unit/availability.test.ts +149 -0
- package/tests/unit/conflict.test.ts +118 -0
- package/tests/unit/env.test.ts +69 -0
- package/tests/unit/migrations.test.ts +135 -0
- package/tests/unit/request-id.test.ts +37 -0
- package/tmp-mobile-agents.png +0 -0
- package/tmp-next-mobile.err.log +10 -0
- package/tmp-next-mobile.log +5 -0
- package/tsconfig.json +16 -0
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { useCallback, useEffect, useState } from 'react';
|
|
4
|
+
import { getActivityLog, listAgents } from '@/lib/api';
|
|
5
|
+
import { loadSession, type StoredSession } from '@/lib/storage';
|
|
6
|
+
import { Badge } from '@/components/ui/Badge';
|
|
7
|
+
import { EmptyState } from '@/components/ui/EmptyState';
|
|
8
|
+
import { SkeletonRow } from '@/components/ui/Skeleton';
|
|
9
|
+
import { Activity } from 'lucide-react';
|
|
10
|
+
import type { Agent } from '@/lib/schemas';
|
|
11
|
+
|
|
12
|
+
type ActivityEvent = Awaited<ReturnType<typeof getActivityLog>>['events'][number];
|
|
13
|
+
|
|
14
|
+
const activityTypes = [
|
|
15
|
+
'mcp_heartbeat',
|
|
16
|
+
'availability_check',
|
|
17
|
+
'conflict_preview',
|
|
18
|
+
'hold_create',
|
|
19
|
+
'hold_release',
|
|
20
|
+
'agent_run',
|
|
21
|
+
'key_rotated',
|
|
22
|
+
'connection_test',
|
|
23
|
+
'work_check',
|
|
24
|
+
'work_claim',
|
|
25
|
+
'work_extend',
|
|
26
|
+
'work_release',
|
|
27
|
+
'work_blocked',
|
|
28
|
+
'automation_start',
|
|
29
|
+
'automation_skip',
|
|
30
|
+
'automation_shadow_allowed',
|
|
31
|
+
'automation_shadow_blocked',
|
|
32
|
+
'automation_extend',
|
|
33
|
+
'automation_finish',
|
|
34
|
+
'automation_error',
|
|
35
|
+
'verification_run',
|
|
36
|
+
'setup_test',
|
|
37
|
+
'setup_test_availability',
|
|
38
|
+
'setup_test_conflict_preview',
|
|
39
|
+
'setup_test_work_check',
|
|
40
|
+
'setup_test_work_claim',
|
|
41
|
+
'setup_test_work_extend',
|
|
42
|
+
'setup_test_work_release',
|
|
43
|
+
'setup_test_work_blocked',
|
|
44
|
+
];
|
|
45
|
+
|
|
46
|
+
function activityLabel(event: ActivityEvent) {
|
|
47
|
+
if (event.activity_type === 'automation_shadow_blocked') {
|
|
48
|
+
return 'Observe-only · would have blocked';
|
|
49
|
+
}
|
|
50
|
+
if (event.activity_type === 'automation_shadow_allowed') {
|
|
51
|
+
return 'Observe-only · allowed';
|
|
52
|
+
}
|
|
53
|
+
if (event.activity_type.startsWith('automation_')) {
|
|
54
|
+
return `Automation · ${event.activity_type.replace(/^automation_/, '').replaceAll('_', ' ')}`;
|
|
55
|
+
}
|
|
56
|
+
if (event.activity_type.startsWith('setup_test')) {
|
|
57
|
+
return `Setup test · ${event.activity_type.replace(/^setup_test_?/, '').replaceAll('_', ' ') || 'summary'}`;
|
|
58
|
+
}
|
|
59
|
+
if (event.activity_type === 'verification_run') {
|
|
60
|
+
return 'Onboarding verification';
|
|
61
|
+
}
|
|
62
|
+
if ((event.metadata as { source?: string } | null)?.source === 'setup_test') {
|
|
63
|
+
return `Setup test · ${event.activity_type.replaceAll('_', ' ')}`;
|
|
64
|
+
}
|
|
65
|
+
return event.activity_type.replaceAll('_', ' ');
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export default function ActivityPage() {
|
|
69
|
+
const [session, setSession] = useState<StoredSession | null>(null);
|
|
70
|
+
const [agents, setAgents] = useState<Agent[]>([]);
|
|
71
|
+
const [events, setEvents] = useState<ActivityEvent[]>([]);
|
|
72
|
+
const [loading, setLoading] = useState(true);
|
|
73
|
+
const [filterAgent, setFilterAgent] = useState('');
|
|
74
|
+
const [filterType, setFilterType] = useState('');
|
|
75
|
+
const [filterStatus, setFilterStatus] = useState('');
|
|
76
|
+
|
|
77
|
+
useEffect(() => {
|
|
78
|
+
if (typeof window === 'undefined') return;
|
|
79
|
+
const params = new URLSearchParams(window.location.search);
|
|
80
|
+
setFilterAgent(params.get('agent') || '');
|
|
81
|
+
setFilterType(params.get('activity_type') || '');
|
|
82
|
+
setFilterStatus(params.get('status') || '');
|
|
83
|
+
}, []);
|
|
84
|
+
|
|
85
|
+
const load = useCallback(async () => {
|
|
86
|
+
const current = loadSession();
|
|
87
|
+
setSession(current);
|
|
88
|
+
if (!current) {
|
|
89
|
+
setLoading(false);
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
setLoading(true);
|
|
94
|
+
const [agentRows, activity] = await Promise.all([
|
|
95
|
+
listAgents(current.orgId).catch(() => []),
|
|
96
|
+
getActivityLog({
|
|
97
|
+
limit: 100,
|
|
98
|
+
agent_id: filterAgent || undefined,
|
|
99
|
+
activity_type: filterType || undefined,
|
|
100
|
+
status: filterStatus ? (filterStatus as 'success' | 'error') : undefined,
|
|
101
|
+
}).catch(() => ({ events: [], count: 0, limit: 100, offset: 0 })),
|
|
102
|
+
]);
|
|
103
|
+
setAgents(agentRows);
|
|
104
|
+
setEvents(activity.events);
|
|
105
|
+
setLoading(false);
|
|
106
|
+
}, [filterAgent, filterStatus, filterType]);
|
|
107
|
+
|
|
108
|
+
useEffect(() => {
|
|
109
|
+
load();
|
|
110
|
+
}, [load]);
|
|
111
|
+
|
|
112
|
+
return (
|
|
113
|
+
<div className="w-full max-w-none p-4 sm:p-6">
|
|
114
|
+
<div className="mb-6">
|
|
115
|
+
<h1 className="text-title font-semibold text-text-primary">Activity</h1>
|
|
116
|
+
<p className="mt-1 text-body text-text-secondary">
|
|
117
|
+
Operational traffic from agents, MCP, API calls, key rotation, and reported token usage.
|
|
118
|
+
</p>
|
|
119
|
+
</div>
|
|
120
|
+
|
|
121
|
+
<div className="mb-4 flex flex-wrap items-center gap-3">
|
|
122
|
+
<select
|
|
123
|
+
value={filterAgent}
|
|
124
|
+
onChange={(event) => setFilterAgent(event.target.value)}
|
|
125
|
+
className="rounded bg-surface border border-border px-3 py-1.5 text-body text-text-primary outline-none focus:border-border-focus"
|
|
126
|
+
>
|
|
127
|
+
<option value="">All agents</option>
|
|
128
|
+
{agents.map((agent) => (
|
|
129
|
+
<option key={agent.id} value={agent.id}>{agent.name}</option>
|
|
130
|
+
))}
|
|
131
|
+
</select>
|
|
132
|
+
<select
|
|
133
|
+
value={filterType}
|
|
134
|
+
onChange={(event) => setFilterType(event.target.value)}
|
|
135
|
+
className="rounded bg-surface border border-border px-3 py-1.5 text-body text-text-primary outline-none focus:border-border-focus"
|
|
136
|
+
>
|
|
137
|
+
<option value="">All activity</option>
|
|
138
|
+
{activityTypes.map((type) => (
|
|
139
|
+
<option key={type} value={type}>{type.replaceAll('_', ' ')}</option>
|
|
140
|
+
))}
|
|
141
|
+
</select>
|
|
142
|
+
<select
|
|
143
|
+
value={filterStatus}
|
|
144
|
+
onChange={(event) => setFilterStatus(event.target.value)}
|
|
145
|
+
className="rounded bg-surface border border-border px-3 py-1.5 text-body text-text-primary outline-none focus:border-border-focus"
|
|
146
|
+
>
|
|
147
|
+
<option value="">All status</option>
|
|
148
|
+
<option value="success">Success</option>
|
|
149
|
+
<option value="error">Error</option>
|
|
150
|
+
</select>
|
|
151
|
+
</div>
|
|
152
|
+
|
|
153
|
+
{loading ? (
|
|
154
|
+
<div className="overflow-hidden rounded border border-border">
|
|
155
|
+
{Array.from({ length: 6 }).map((_, index) => <SkeletonRow key={index} />)}
|
|
156
|
+
</div>
|
|
157
|
+
) : events.length === 0 ? (
|
|
158
|
+
<EmptyState
|
|
159
|
+
icon={Activity}
|
|
160
|
+
title="No activity yet"
|
|
161
|
+
description="Run the dashboard test first, then connect a real SDK, MCP, or REST client. Activity shows runtime traffic; setup tests and verification are not production value."
|
|
162
|
+
action={
|
|
163
|
+
<div className="flex flex-wrap justify-center gap-2">
|
|
164
|
+
<a
|
|
165
|
+
href="/docs/sdk/node"
|
|
166
|
+
className="rounded bg-accent px-3 py-1.5 text-body font-medium text-white hover:bg-accent-hover"
|
|
167
|
+
>
|
|
168
|
+
Read SDK docs
|
|
169
|
+
</a>
|
|
170
|
+
<a
|
|
171
|
+
href="/app/agents"
|
|
172
|
+
className="rounded border border-border px-3 py-1.5 text-body font-medium text-text-secondary hover:text-text-primary"
|
|
173
|
+
>
|
|
174
|
+
Open agent setup
|
|
175
|
+
</a>
|
|
176
|
+
</div>
|
|
177
|
+
}
|
|
178
|
+
/>
|
|
179
|
+
) : (
|
|
180
|
+
<div className="overflow-x-auto rounded border border-border dark-scroll">
|
|
181
|
+
<table className="w-full min-w-[1180px] table-fixed">
|
|
182
|
+
<colgroup>
|
|
183
|
+
<col className="w-[170px]" />
|
|
184
|
+
<col className="w-[170px]" />
|
|
185
|
+
<col className="w-[170px]" />
|
|
186
|
+
<col className="w-[120px]" />
|
|
187
|
+
<col className="w-[120px]" />
|
|
188
|
+
<col className="w-[110px]" />
|
|
189
|
+
<col className="w-[120px]" />
|
|
190
|
+
<col />
|
|
191
|
+
</colgroup>
|
|
192
|
+
<thead>
|
|
193
|
+
<tr className="border-b border-border bg-surface text-label uppercase text-text-tertiary">
|
|
194
|
+
<th className="px-4 py-2 text-left font-medium">Time</th>
|
|
195
|
+
<th className="px-4 py-2 text-left font-medium">Agent</th>
|
|
196
|
+
<th className="px-4 py-2 text-left font-medium">Action</th>
|
|
197
|
+
<th className="px-4 py-2 text-left font-medium">Status</th>
|
|
198
|
+
<th className="px-4 py-2 text-left font-medium">Latency</th>
|
|
199
|
+
<th className="px-4 py-2 text-left font-medium">Tokens</th>
|
|
200
|
+
<th className="px-4 py-2 text-left font-medium">Client</th>
|
|
201
|
+
<th className="px-4 py-2 text-left font-medium">Error</th>
|
|
202
|
+
</tr>
|
|
203
|
+
</thead>
|
|
204
|
+
<tbody>
|
|
205
|
+
{events.map((event) => (
|
|
206
|
+
<tr key={event.id} className="border-b border-border align-top hover:bg-surface-raised">
|
|
207
|
+
<td className="px-4 py-2 font-mono text-body text-text-tertiary whitespace-nowrap">
|
|
208
|
+
{new Date(event.created_at).toLocaleString()}
|
|
209
|
+
</td>
|
|
210
|
+
<td className="px-4 py-2 text-body text-text-secondary">
|
|
211
|
+
<span className="block truncate">{event.agent_name || event.agent_id || '-'}</span>
|
|
212
|
+
</td>
|
|
213
|
+
<td className="px-4 py-2">
|
|
214
|
+
<div className="flex items-center gap-2 text-body text-text-primary">
|
|
215
|
+
<span>{activityLabel(event)}</span>
|
|
216
|
+
{event.activity_type.startsWith('automation_') && (
|
|
217
|
+
<Badge variant="accent">Automation</Badge>
|
|
218
|
+
)}
|
|
219
|
+
{(event.activity_type === 'automation_shadow_blocked' || event.activity_type === 'automation_shadow_allowed') && (
|
|
220
|
+
<Badge variant="neutral">Observe-only</Badge>
|
|
221
|
+
)}
|
|
222
|
+
{(event.activity_type.startsWith('setup_test') || (event.metadata as { source?: string } | null)?.source === 'setup_test') && (
|
|
223
|
+
<Badge variant="accent">Setup test</Badge>
|
|
224
|
+
)}
|
|
225
|
+
</div>
|
|
226
|
+
<div className="truncate font-mono text-label text-text-tertiary">
|
|
227
|
+
{[event.method, event.endpoint].filter(Boolean).join(' ')}
|
|
228
|
+
</div>
|
|
229
|
+
</td>
|
|
230
|
+
<td className="px-4 py-2">
|
|
231
|
+
<Badge variant={event.status === 'success' ? 'success' : 'error'}>
|
|
232
|
+
{event.status_code || event.status}
|
|
233
|
+
</Badge>
|
|
234
|
+
</td>
|
|
235
|
+
<td className="px-4 py-2 font-mono text-body text-text-tertiary">
|
|
236
|
+
{event.latency_ms != null ? `${event.latency_ms}ms` : '-'}
|
|
237
|
+
</td>
|
|
238
|
+
<td className="px-4 py-2 font-mono text-body text-text-tertiary">
|
|
239
|
+
{event.total_tokens ?? '-'}
|
|
240
|
+
</td>
|
|
241
|
+
<td className="px-4 py-2 text-body text-text-secondary">
|
|
242
|
+
<span className="block truncate">
|
|
243
|
+
{event.client_name === 'openclaw' ? 'OpenClaw' : event.client_name || event.actor_label || '-'}
|
|
244
|
+
</span>
|
|
245
|
+
</td>
|
|
246
|
+
<td className="px-4 py-2 text-body text-text-tertiary">
|
|
247
|
+
<span className="block truncate">{event.error_code || event.error_message || '-'}</span>
|
|
248
|
+
</td>
|
|
249
|
+
</tr>
|
|
250
|
+
))}
|
|
251
|
+
</tbody>
|
|
252
|
+
</table>
|
|
253
|
+
</div>
|
|
254
|
+
)}
|
|
255
|
+
</div>
|
|
256
|
+
);
|
|
257
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export default async function AgentDetailPage({
|
|
2
|
+
params,
|
|
3
|
+
}: {
|
|
4
|
+
params: Promise<{ agentId: string }>;
|
|
5
|
+
}) {
|
|
6
|
+
const { agentId } = await params;
|
|
7
|
+
|
|
8
|
+
return (
|
|
9
|
+
<section className="w-full max-w-none p-4 sm:p-6">
|
|
10
|
+
<h1 className="text-4xl font-semibold text-text-primary">Agent</h1>
|
|
11
|
+
<p className="mt-3 break-all font-mono text-body text-text-secondary">Agent ID: {agentId}</p>
|
|
12
|
+
<div className="mt-8 rounded border border-border bg-surface p-5">
|
|
13
|
+
<h2 className="text-title font-semibold text-text-primary">Next controls</h2>
|
|
14
|
+
<p className="mt-2 text-body leading-6 text-text-secondary">
|
|
15
|
+
Preferences, API key rotation, and audit event views belong here once backend endpoints
|
|
16
|
+
expose them fully for the dashboard.
|
|
17
|
+
</p>
|
|
18
|
+
</div>
|
|
19
|
+
</section>
|
|
20
|
+
);
|
|
21
|
+
}
|