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.
Files changed (171) hide show
  1. package/index.js +1 -1
  2. package/package.json +7 -7
  3. package/.claude/settings.local.json +0 -32
  4. package/STRATEGIC_PLAN_2025-12-01.md +0 -934
  5. package/costcanary/.claude/settings.local.json +0 -9
  6. package/costcanary/.env.production.template +0 -38
  7. package/costcanary/.eslintrc.json +0 -22
  8. package/costcanary/.nvmrc +0 -1
  9. package/costcanary/.prettierignore +0 -11
  10. package/costcanary/.prettierrc.json +0 -12
  11. package/costcanary/ADMIN_SETUP.md +0 -68
  12. package/costcanary/CLAUDE.md +0 -228
  13. package/costcanary/CLERK_SETUP.md +0 -69
  14. package/costcanary/DATABASE_SETUP.md +0 -136
  15. package/costcanary/DEMO_CHECKLIST.md +0 -62
  16. package/costcanary/DEPLOYMENT.md +0 -31
  17. package/costcanary/PRODUCTION_RECOVERY.md +0 -109
  18. package/costcanary/README.md +0 -247
  19. package/costcanary/STRIPE_SECURITY_AUDIT.md +0 -123
  20. package/costcanary/TESTING_ADMIN.md +0 -92
  21. package/costcanary/app/(auth)/sign-in/[[...sign-in]]/page.tsx +0 -25
  22. package/costcanary/app/(auth)/sign-up/[[...sign-up]]/page.tsx +0 -25
  23. package/costcanary/app/(dashboard)/dashboard/admin/page.tsx +0 -260
  24. package/costcanary/app/(dashboard)/dashboard/alerts/page.tsx +0 -64
  25. package/costcanary/app/(dashboard)/dashboard/api-keys/page.tsx +0 -231
  26. package/costcanary/app/(dashboard)/dashboard/billing/page.tsx +0 -349
  27. package/costcanary/app/(dashboard)/dashboard/layout.tsx +0 -188
  28. package/costcanary/app/(dashboard)/dashboard/page.tsx +0 -13
  29. package/costcanary/app/(dashboard)/dashboard/playground/page.tsx +0 -605
  30. package/costcanary/app/(dashboard)/dashboard/settings/page.tsx +0 -86
  31. package/costcanary/app/(dashboard)/dashboard/usage/page.tsx +0 -354
  32. package/costcanary/app/(dashboard)/dashboard/wrapped-keys/page.tsx +0 -677
  33. package/costcanary/app/(marketing)/page.tsx +0 -90
  34. package/costcanary/app/(marketing)/pricing/page.tsx +0 -272
  35. package/costcanary/app/admin/pricing-status/page.tsx +0 -338
  36. package/costcanary/app/api/admin/check-pricing/route.ts +0 -127
  37. package/costcanary/app/api/admin/debug/route.ts +0 -44
  38. package/costcanary/app/api/admin/fix-pricing/route.ts +0 -216
  39. package/costcanary/app/api/admin/pricing-jobs/[jobId]/route.ts +0 -48
  40. package/costcanary/app/api/admin/pricing-jobs/route.ts +0 -45
  41. package/costcanary/app/api/admin/trigger-pricing/route.ts +0 -209
  42. package/costcanary/app/api/admin/whoami/route.ts +0 -44
  43. package/costcanary/app/api/auth/clerk/[...nextjs]/route.ts +0 -93
  44. package/costcanary/app/api/debug/wrapped-key/route.ts +0 -51
  45. package/costcanary/app/api/debug-status/route.ts +0 -9
  46. package/costcanary/app/api/debug-version/route.ts +0 -12
  47. package/costcanary/app/api/health/route.ts +0 -14
  48. package/costcanary/app/api/health-simple/route.ts +0 -18
  49. package/costcanary/app/api/keys/route.ts +0 -162
  50. package/costcanary/app/api/keys/wrapped/[id]/revoke/route.ts +0 -86
  51. package/costcanary/app/api/keys/wrapped/[id]/rotate/route.ts +0 -81
  52. package/costcanary/app/api/keys/wrapped/route.ts +0 -241
  53. package/costcanary/app/api/optimizer/preview/route.ts +0 -147
  54. package/costcanary/app/api/optimizer/route.ts +0 -118
  55. package/costcanary/app/api/pricing/models/route.ts +0 -102
  56. package/costcanary/app/api/proxy/[...path]/route.ts +0 -391
  57. package/costcanary/app/api/proxy/anthropic/route.ts +0 -539
  58. package/costcanary/app/api/proxy/google/route.ts +0 -395
  59. package/costcanary/app/api/proxy/openai/route.ts +0 -529
  60. package/costcanary/app/api/simple-test/route.ts +0 -7
  61. package/costcanary/app/api/stripe/checkout/route.ts +0 -201
  62. package/costcanary/app/api/stripe/webhook/route.ts +0 -392
  63. package/costcanary/app/api/test-connection/route.ts +0 -209
  64. package/costcanary/app/api/test-proxy/route.ts +0 -7
  65. package/costcanary/app/api/test-simple/route.ts +0 -20
  66. package/costcanary/app/api/usage/current/route.ts +0 -112
  67. package/costcanary/app/api/usage/stats/route.ts +0 -129
  68. package/costcanary/app/api/usage/stream/route.ts +0 -113
  69. package/costcanary/app/api/usage/summary/route.ts +0 -67
  70. package/costcanary/app/api/usage/trend/route.ts +0 -119
  71. package/costcanary/app/api/ws/route.ts +0 -23
  72. package/costcanary/app/globals.css +0 -280
  73. package/costcanary/app/layout.tsx +0 -87
  74. package/costcanary/components/Header.tsx +0 -85
  75. package/costcanary/components/dashboard/AddApiKeyModal.tsx +0 -264
  76. package/costcanary/components/dashboard/dashboard-content.tsx +0 -329
  77. package/costcanary/components/landing/DashboardPreview.tsx +0 -222
  78. package/costcanary/components/landing/Features.tsx +0 -238
  79. package/costcanary/components/landing/Footer.tsx +0 -83
  80. package/costcanary/components/landing/Hero.tsx +0 -193
  81. package/costcanary/components/landing/Pricing.tsx +0 -250
  82. package/costcanary/components/landing/Testimonials.tsx +0 -248
  83. package/costcanary/components/theme-provider.tsx +0 -8
  84. package/costcanary/components/ui/alert.tsx +0 -59
  85. package/costcanary/components/ui/badge.tsx +0 -36
  86. package/costcanary/components/ui/button.tsx +0 -56
  87. package/costcanary/components/ui/card.tsx +0 -79
  88. package/costcanary/components/ui/dialog.tsx +0 -122
  89. package/costcanary/components/ui/input.tsx +0 -22
  90. package/costcanary/components/ui/label.tsx +0 -26
  91. package/costcanary/components/ui/progress.tsx +0 -28
  92. package/costcanary/components/ui/select.tsx +0 -160
  93. package/costcanary/components/ui/separator.tsx +0 -31
  94. package/costcanary/components/ui/switch.tsx +0 -29
  95. package/costcanary/components/ui/tabs.tsx +0 -55
  96. package/costcanary/components/ui/toast.tsx +0 -127
  97. package/costcanary/components/ui/toaster.tsx +0 -35
  98. package/costcanary/components/ui/use-toast.ts +0 -189
  99. package/costcanary/components.json +0 -17
  100. package/costcanary/debug-wrapped-keys.md +0 -117
  101. package/costcanary/fix-console.sh +0 -30
  102. package/costcanary/lib/admin-auth.ts +0 -226
  103. package/costcanary/lib/admin-security.ts +0 -124
  104. package/costcanary/lib/audit-events.ts +0 -62
  105. package/costcanary/lib/audit.ts +0 -158
  106. package/costcanary/lib/chart-colors.ts +0 -152
  107. package/costcanary/lib/cost-calculator.ts +0 -212
  108. package/costcanary/lib/db-utils.ts +0 -325
  109. package/costcanary/lib/db.ts +0 -14
  110. package/costcanary/lib/encryption.ts +0 -120
  111. package/costcanary/lib/kms.ts +0 -358
  112. package/costcanary/lib/model-alias.ts +0 -180
  113. package/costcanary/lib/pricing.ts +0 -292
  114. package/costcanary/lib/prisma.ts +0 -52
  115. package/costcanary/lib/railway-db.ts +0 -157
  116. package/costcanary/lib/sse-parser.ts +0 -283
  117. package/costcanary/lib/stripe-client.ts +0 -81
  118. package/costcanary/lib/stripe-server.ts +0 -52
  119. package/costcanary/lib/tokens.ts +0 -396
  120. package/costcanary/lib/usage-limits.ts +0 -164
  121. package/costcanary/lib/utils.ts +0 -6
  122. package/costcanary/lib/websocket.ts +0 -153
  123. package/costcanary/lib/wrapped-keys.ts +0 -531
  124. package/costcanary/market-research.md +0 -443
  125. package/costcanary/middleware.ts +0 -48
  126. package/costcanary/next.config.js +0 -43
  127. package/costcanary/nia-sources.md +0 -151
  128. package/costcanary/package-lock.json +0 -12162
  129. package/costcanary/package.json +0 -92
  130. package/costcanary/package.json.backup +0 -89
  131. package/costcanary/postcss.config.js +0 -6
  132. package/costcanary/pricing-worker/.env.example +0 -8
  133. package/costcanary/pricing-worker/README.md +0 -81
  134. package/costcanary/pricing-worker/package-lock.json +0 -1109
  135. package/costcanary/pricing-worker/package.json +0 -26
  136. package/costcanary/pricing-worker/railway.json +0 -13
  137. package/costcanary/pricing-worker/schema.prisma +0 -326
  138. package/costcanary/pricing-worker/src/index.ts +0 -115
  139. package/costcanary/pricing-worker/src/services/pricing-updater.ts +0 -79
  140. package/costcanary/pricing-worker/src/services/tavily-client.ts +0 -474
  141. package/costcanary/pricing-worker/test-tavily.ts +0 -47
  142. package/costcanary/pricing-worker/tsconfig.json +0 -24
  143. package/costcanary/prisma/migrations/001_add_stripe_fields.sql +0 -26
  144. package/costcanary/prisma/schema.prisma +0 -326
  145. package/costcanary/prisma/seed-pricing.ts +0 -133
  146. package/costcanary/public/costhawk-logo.png +0 -0
  147. package/costcanary/railway.json +0 -30
  148. package/costcanary/railway.toml +0 -16
  149. package/costcanary/research-nia.md +0 -298
  150. package/costcanary/research.md +0 -411
  151. package/costcanary/scripts/build-production.js +0 -65
  152. package/costcanary/scripts/check-current-pricing.ts +0 -51
  153. package/costcanary/scripts/check-pricing-data.ts +0 -174
  154. package/costcanary/scripts/create-stripe-prices.js +0 -49
  155. package/costcanary/scripts/fix-pricing-data.ts +0 -135
  156. package/costcanary/scripts/fix-pricing-db.ts +0 -148
  157. package/costcanary/scripts/postinstall.js +0 -58
  158. package/costcanary/scripts/railway-deploy.sh +0 -52
  159. package/costcanary/scripts/run-migration.js +0 -61
  160. package/costcanary/scripts/start-production.js +0 -175
  161. package/costcanary/scripts/test-wrapped-key.ts +0 -85
  162. package/costcanary/scripts/validate-deployment.js +0 -176
  163. package/costcanary/scripts/validate-production.js +0 -119
  164. package/costcanary/server.js.backup +0 -38
  165. package/costcanary/tailwind.config.ts +0 -216
  166. package/costcanary/test-pricing-status.sh +0 -27
  167. package/costcanary/tsconfig.json +0 -42
  168. package/docs/sessions/session-2025-12-01.md +0 -570
  169. package/executive-summary.md +0 -302
  170. package/nia-sources.md +0 -163
  171. package/research.md +0 -750
package/index.js CHANGED
@@ -1 +1 @@
1
- // costhawk – coming soon
1
+ console.log("CostHawk – coming soon 🚀")
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "costhawk",
3
- "version": "1.0.0",
4
- "description": "LLM API cost tracking & alerts – watch your spend like a hawk",
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": "Chase Dillingham",
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
- }