costhawk 1.0.0 → 1.0.2
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/index.js +1 -1
- package/package.json +7 -7
- package/.claude/settings.local.json +0 -32
- package/STRATEGIC_PLAN_2025-12-01.md +0 -934
- package/costcanary/.claude/settings.local.json +0 -9
- package/costcanary/.env.production.template +0 -38
- package/costcanary/.eslintrc.json +0 -22
- package/costcanary/.nvmrc +0 -1
- package/costcanary/.prettierignore +0 -11
- package/costcanary/.prettierrc.json +0 -12
- package/costcanary/ADMIN_SETUP.md +0 -68
- package/costcanary/CLAUDE.md +0 -228
- package/costcanary/CLERK_SETUP.md +0 -69
- package/costcanary/DATABASE_SETUP.md +0 -136
- package/costcanary/DEMO_CHECKLIST.md +0 -62
- package/costcanary/DEPLOYMENT.md +0 -31
- package/costcanary/PRODUCTION_RECOVERY.md +0 -109
- package/costcanary/README.md +0 -247
- package/costcanary/STRIPE_SECURITY_AUDIT.md +0 -123
- package/costcanary/TESTING_ADMIN.md +0 -92
- package/costcanary/app/(auth)/sign-in/[[...sign-in]]/page.tsx +0 -25
- package/costcanary/app/(auth)/sign-up/[[...sign-up]]/page.tsx +0 -25
- package/costcanary/app/(dashboard)/dashboard/admin/page.tsx +0 -260
- package/costcanary/app/(dashboard)/dashboard/alerts/page.tsx +0 -64
- package/costcanary/app/(dashboard)/dashboard/api-keys/page.tsx +0 -231
- package/costcanary/app/(dashboard)/dashboard/billing/page.tsx +0 -349
- package/costcanary/app/(dashboard)/dashboard/layout.tsx +0 -188
- package/costcanary/app/(dashboard)/dashboard/page.tsx +0 -13
- package/costcanary/app/(dashboard)/dashboard/playground/page.tsx +0 -605
- package/costcanary/app/(dashboard)/dashboard/settings/page.tsx +0 -86
- package/costcanary/app/(dashboard)/dashboard/usage/page.tsx +0 -354
- package/costcanary/app/(dashboard)/dashboard/wrapped-keys/page.tsx +0 -677
- package/costcanary/app/(marketing)/page.tsx +0 -90
- package/costcanary/app/(marketing)/pricing/page.tsx +0 -272
- package/costcanary/app/admin/pricing-status/page.tsx +0 -338
- package/costcanary/app/api/admin/check-pricing/route.ts +0 -127
- package/costcanary/app/api/admin/debug/route.ts +0 -44
- package/costcanary/app/api/admin/fix-pricing/route.ts +0 -216
- package/costcanary/app/api/admin/pricing-jobs/[jobId]/route.ts +0 -48
- package/costcanary/app/api/admin/pricing-jobs/route.ts +0 -45
- package/costcanary/app/api/admin/trigger-pricing/route.ts +0 -209
- package/costcanary/app/api/admin/whoami/route.ts +0 -44
- package/costcanary/app/api/auth/clerk/[...nextjs]/route.ts +0 -93
- package/costcanary/app/api/debug/wrapped-key/route.ts +0 -51
- package/costcanary/app/api/debug-status/route.ts +0 -9
- package/costcanary/app/api/debug-version/route.ts +0 -12
- package/costcanary/app/api/health/route.ts +0 -14
- package/costcanary/app/api/health-simple/route.ts +0 -18
- package/costcanary/app/api/keys/route.ts +0 -162
- package/costcanary/app/api/keys/wrapped/[id]/revoke/route.ts +0 -86
- package/costcanary/app/api/keys/wrapped/[id]/rotate/route.ts +0 -81
- package/costcanary/app/api/keys/wrapped/route.ts +0 -241
- package/costcanary/app/api/optimizer/preview/route.ts +0 -147
- package/costcanary/app/api/optimizer/route.ts +0 -118
- package/costcanary/app/api/pricing/models/route.ts +0 -102
- package/costcanary/app/api/proxy/[...path]/route.ts +0 -391
- package/costcanary/app/api/proxy/anthropic/route.ts +0 -539
- package/costcanary/app/api/proxy/google/route.ts +0 -395
- package/costcanary/app/api/proxy/openai/route.ts +0 -529
- package/costcanary/app/api/simple-test/route.ts +0 -7
- package/costcanary/app/api/stripe/checkout/route.ts +0 -201
- package/costcanary/app/api/stripe/webhook/route.ts +0 -392
- package/costcanary/app/api/test-connection/route.ts +0 -209
- package/costcanary/app/api/test-proxy/route.ts +0 -7
- package/costcanary/app/api/test-simple/route.ts +0 -20
- package/costcanary/app/api/usage/current/route.ts +0 -112
- package/costcanary/app/api/usage/stats/route.ts +0 -129
- package/costcanary/app/api/usage/stream/route.ts +0 -113
- package/costcanary/app/api/usage/summary/route.ts +0 -67
- package/costcanary/app/api/usage/trend/route.ts +0 -119
- package/costcanary/app/api/ws/route.ts +0 -23
- package/costcanary/app/globals.css +0 -280
- package/costcanary/app/layout.tsx +0 -87
- package/costcanary/components/Header.tsx +0 -85
- package/costcanary/components/dashboard/AddApiKeyModal.tsx +0 -264
- package/costcanary/components/dashboard/dashboard-content.tsx +0 -329
- package/costcanary/components/landing/DashboardPreview.tsx +0 -222
- package/costcanary/components/landing/Features.tsx +0 -238
- package/costcanary/components/landing/Footer.tsx +0 -83
- package/costcanary/components/landing/Hero.tsx +0 -193
- package/costcanary/components/landing/Pricing.tsx +0 -250
- package/costcanary/components/landing/Testimonials.tsx +0 -248
- package/costcanary/components/theme-provider.tsx +0 -8
- package/costcanary/components/ui/alert.tsx +0 -59
- package/costcanary/components/ui/badge.tsx +0 -36
- package/costcanary/components/ui/button.tsx +0 -56
- package/costcanary/components/ui/card.tsx +0 -79
- package/costcanary/components/ui/dialog.tsx +0 -122
- package/costcanary/components/ui/input.tsx +0 -22
- package/costcanary/components/ui/label.tsx +0 -26
- package/costcanary/components/ui/progress.tsx +0 -28
- package/costcanary/components/ui/select.tsx +0 -160
- package/costcanary/components/ui/separator.tsx +0 -31
- package/costcanary/components/ui/switch.tsx +0 -29
- package/costcanary/components/ui/tabs.tsx +0 -55
- package/costcanary/components/ui/toast.tsx +0 -127
- package/costcanary/components/ui/toaster.tsx +0 -35
- package/costcanary/components/ui/use-toast.ts +0 -189
- package/costcanary/components.json +0 -17
- package/costcanary/debug-wrapped-keys.md +0 -117
- package/costcanary/fix-console.sh +0 -30
- package/costcanary/lib/admin-auth.ts +0 -226
- package/costcanary/lib/admin-security.ts +0 -124
- package/costcanary/lib/audit-events.ts +0 -62
- package/costcanary/lib/audit.ts +0 -158
- package/costcanary/lib/chart-colors.ts +0 -152
- package/costcanary/lib/cost-calculator.ts +0 -212
- package/costcanary/lib/db-utils.ts +0 -325
- package/costcanary/lib/db.ts +0 -14
- package/costcanary/lib/encryption.ts +0 -120
- package/costcanary/lib/kms.ts +0 -358
- package/costcanary/lib/model-alias.ts +0 -180
- package/costcanary/lib/pricing.ts +0 -292
- package/costcanary/lib/prisma.ts +0 -52
- package/costcanary/lib/railway-db.ts +0 -157
- package/costcanary/lib/sse-parser.ts +0 -283
- package/costcanary/lib/stripe-client.ts +0 -81
- package/costcanary/lib/stripe-server.ts +0 -52
- package/costcanary/lib/tokens.ts +0 -396
- package/costcanary/lib/usage-limits.ts +0 -164
- package/costcanary/lib/utils.ts +0 -6
- package/costcanary/lib/websocket.ts +0 -153
- package/costcanary/lib/wrapped-keys.ts +0 -531
- package/costcanary/market-research.md +0 -443
- package/costcanary/middleware.ts +0 -48
- package/costcanary/next.config.js +0 -43
- package/costcanary/nia-sources.md +0 -151
- package/costcanary/package-lock.json +0 -12162
- package/costcanary/package.json +0 -92
- package/costcanary/package.json.backup +0 -89
- package/costcanary/postcss.config.js +0 -6
- package/costcanary/pricing-worker/.env.example +0 -8
- package/costcanary/pricing-worker/README.md +0 -81
- package/costcanary/pricing-worker/package-lock.json +0 -1109
- package/costcanary/pricing-worker/package.json +0 -26
- package/costcanary/pricing-worker/railway.json +0 -13
- package/costcanary/pricing-worker/schema.prisma +0 -326
- package/costcanary/pricing-worker/src/index.ts +0 -115
- package/costcanary/pricing-worker/src/services/pricing-updater.ts +0 -79
- package/costcanary/pricing-worker/src/services/tavily-client.ts +0 -474
- package/costcanary/pricing-worker/test-tavily.ts +0 -47
- package/costcanary/pricing-worker/tsconfig.json +0 -24
- package/costcanary/prisma/migrations/001_add_stripe_fields.sql +0 -26
- package/costcanary/prisma/schema.prisma +0 -326
- package/costcanary/prisma/seed-pricing.ts +0 -133
- package/costcanary/public/costhawk-logo.png +0 -0
- package/costcanary/railway.json +0 -30
- package/costcanary/railway.toml +0 -16
- package/costcanary/research-nia.md +0 -298
- package/costcanary/research.md +0 -411
- package/costcanary/scripts/build-production.js +0 -65
- package/costcanary/scripts/check-current-pricing.ts +0 -51
- package/costcanary/scripts/check-pricing-data.ts +0 -174
- package/costcanary/scripts/create-stripe-prices.js +0 -49
- package/costcanary/scripts/fix-pricing-data.ts +0 -135
- package/costcanary/scripts/fix-pricing-db.ts +0 -148
- package/costcanary/scripts/postinstall.js +0 -58
- package/costcanary/scripts/railway-deploy.sh +0 -52
- package/costcanary/scripts/run-migration.js +0 -61
- package/costcanary/scripts/start-production.js +0 -175
- package/costcanary/scripts/test-wrapped-key.ts +0 -85
- package/costcanary/scripts/validate-deployment.js +0 -176
- package/costcanary/scripts/validate-production.js +0 -119
- package/costcanary/server.js.backup +0 -38
- package/costcanary/tailwind.config.ts +0 -216
- package/costcanary/test-pricing-status.sh +0 -27
- package/costcanary/tsconfig.json +0 -42
- package/docs/sessions/session-2025-12-01.md +0 -570
- package/executive-summary.md +0 -302
- package/nia-sources.md +0 -163
- package/research.md +0 -750
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
console.log("CostHawk – coming soon 🚀")
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "costhawk",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "LLM API cost tracking
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"description": "LLM API cost tracking – watch your spend like a hawk",
|
|
5
5
|
"main": "index.js",
|
|
6
|
-
"directories": {
|
|
7
|
-
"doc": "docs"
|
|
8
|
-
},
|
|
9
6
|
"scripts": {
|
|
10
7
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
11
8
|
},
|
|
12
9
|
"keywords": "llm,openai,anthropic,cost,monitoring,api,tokens,billing",
|
|
13
|
-
"author": "
|
|
10
|
+
"author": "",
|
|
14
11
|
"license": "MIT",
|
|
15
|
-
"type": "commonjs"
|
|
12
|
+
"type": "commonjs",
|
|
13
|
+
"repository": {
|
|
14
|
+
"url": "git+https://github.com/yourusername/costhawk.git"
|
|
15
|
+
}
|
|
16
16
|
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"permissions": {
|
|
3
|
-
"allow": [
|
|
4
|
-
"mcp__filesystem__directory_tree",
|
|
5
|
-
"mcp__nia__manage_resource",
|
|
6
|
-
"mcp__nia__nia_deep_research_agent",
|
|
7
|
-
"mcp__nia__nia_web_search",
|
|
8
|
-
"mcp__nia__index",
|
|
9
|
-
"Bash(lsof:*)",
|
|
10
|
-
"Bash(test:*)",
|
|
11
|
-
"Bash(cp:*)",
|
|
12
|
-
"Bash(npx tsc:*)",
|
|
13
|
-
"Bash(PORT=3003 npm run dev:*)",
|
|
14
|
-
"Bash(PORT=3004 npm run dev:*)",
|
|
15
|
-
"mcp__filesystem__list_directory",
|
|
16
|
-
"Bash(xargs ls:*)",
|
|
17
|
-
"mcp__firecrawl-mcp__firecrawl_scrape",
|
|
18
|
-
"mcp__firecrawl-mcp__firecrawl_search",
|
|
19
|
-
"mcp__nia__search_codebase",
|
|
20
|
-
"WebFetch(domain:platform.openai.com)",
|
|
21
|
-
"WebFetch(domain:platform.claude.com)",
|
|
22
|
-
"Bash(npx tsx:*)",
|
|
23
|
-
"Bash(curl:*)",
|
|
24
|
-
"WebSearch",
|
|
25
|
-
"Bash(for i in 1 2 3)",
|
|
26
|
-
"Bash(do echo \"=== Request $i ===\")",
|
|
27
|
-
"Bash(done)"
|
|
28
|
-
],
|
|
29
|
-
"deny": [],
|
|
30
|
-
"ask": []
|
|
31
|
-
}
|
|
32
|
-
}
|