moltlaunch 2.0.0 → 2.0.1

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 (105) hide show
  1. package/package.json +5 -1
  2. package/.claude/commands/deploy.md +0 -33
  3. package/.claude/hooks/regenerate-docs.sh +0 -12
  4. package/.claude/settings.json +0 -15
  5. package/.env.example +0 -2
  6. package/.github/workflows/deploy.yml +0 -37
  7. package/ROADMAP.md +0 -29
  8. package/contracts/MandateEscrowV4.sol +0 -281
  9. package/contracts/mocks/MockFlaunchBuyback.sol +0 -24
  10. package/hardhat.config.cjs +0 -29
  11. package/scripts/check-deploy-cost.ts +0 -15
  12. package/scripts/deploy-escrow-v4.ts +0 -81
  13. package/scripts/deploy-escrow.cjs +0 -22
  14. package/scripts/generate-docs.ts +0 -309
  15. package/shared/manifest.json +0 -87
  16. package/site/.vscode/extensions.json +0 -4
  17. package/site/.vscode/launch.json +0 -11
  18. package/site/README.md +0 -43
  19. package/site/astro.config.mjs +0 -21
  20. package/site/functions/agent/[[path]].ts +0 -9
  21. package/site/functions/task/[[path]].ts +0 -9
  22. package/site/index.html.bak +0 -1755
  23. package/site/package-lock.json +0 -6165
  24. package/site/package.json +0 -17
  25. package/site/public/_redirects +0 -1
  26. package/site/public/art/hero.webp +0 -0
  27. package/site/public/favicon.ico +0 -0
  28. package/site/public/favicon.svg +0 -4
  29. package/site/public/logo.png +0 -0
  30. package/site/public/skill.md +0 -276
  31. package/site/src/components/AgentGridCard.astro +0 -97
  32. package/site/src/components/AgentRow.astro +0 -75
  33. package/site/src/components/Footer.astro +0 -71
  34. package/site/src/components/GigCard.astro +0 -36
  35. package/site/src/components/Navbar.astro +0 -93
  36. package/site/src/components/ReviewCard.astro +0 -29
  37. package/site/src/components/SkillPill.astro +0 -19
  38. package/site/src/components/StatusBadge.astro +0 -27
  39. package/site/src/components/TaskEntry.astro +0 -98
  40. package/site/src/layouts/Layout.astro +0 -268
  41. package/site/src/lib/api.ts +0 -342
  42. package/site/src/pages/404.astro +0 -33
  43. package/site/src/pages/admin.astro +0 -445
  44. package/site/src/pages/agent/[...id].astro +0 -678
  45. package/site/src/pages/agents/index.astro +0 -235
  46. package/site/src/pages/dashboard.astro +0 -244
  47. package/site/src/pages/docs.astro +0 -191
  48. package/site/src/pages/how.astro +0 -156
  49. package/site/src/pages/index.astro +0 -226
  50. package/site/src/pages/leaderboard.astro +0 -155
  51. package/site/src/pages/task/[...id].astro +0 -1467
  52. package/site/src/styles/global.css +0 -159
  53. package/site/tailwind.config.mjs +0 -94
  54. package/site/tsconfig.json +0 -5
  55. package/site/wrangler.toml +0 -5
  56. package/src/commands/accept.ts +0 -135
  57. package/src/commands/agents.ts +0 -190
  58. package/src/commands/approve.ts +0 -127
  59. package/src/commands/claim.ts +0 -130
  60. package/src/commands/decline.ts +0 -55
  61. package/src/commands/dispute.ts +0 -92
  62. package/src/commands/earnings.ts +0 -86
  63. package/src/commands/feedback.ts +0 -147
  64. package/src/commands/gig.ts +0 -141
  65. package/src/commands/hire.ts +0 -96
  66. package/src/commands/inbox.ts +0 -135
  67. package/src/commands/message.ts +0 -97
  68. package/src/commands/profile.ts +0 -62
  69. package/src/commands/quote.ts +0 -80
  70. package/src/commands/refund.ts +0 -82
  71. package/src/commands/register.ts +0 -250
  72. package/src/commands/resolve.ts +0 -104
  73. package/src/commands/reviews.ts +0 -78
  74. package/src/commands/revise.ts +0 -65
  75. package/src/commands/submit.ts +0 -123
  76. package/src/commands/tasks.ts +0 -224
  77. package/src/commands/view.ts +0 -122
  78. package/src/commands/wallet.ts +0 -42
  79. package/src/index.ts +0 -285
  80. package/src/lib/agent0.ts +0 -158
  81. package/src/lib/auth.ts +0 -25
  82. package/src/lib/constants.ts +0 -55
  83. package/src/lib/escrow.ts +0 -374
  84. package/src/lib/files.ts +0 -87
  85. package/src/lib/flaunch.ts +0 -277
  86. package/src/lib/mandate.ts +0 -623
  87. package/src/lib/tasks.ts +0 -466
  88. package/src/lib/types.ts +0 -112
  89. package/src/lib/wallet.ts +0 -119
  90. package/src/lib/x402.ts +0 -86
  91. package/test/MandateEscrowV4.test.cjs +0 -568
  92. package/tsconfig.json +0 -19
  93. package/tsup.config.ts +0 -15
  94. package/worker/package-lock.json +0 -1812
  95. package/worker/package.json +0 -18
  96. package/worker/src/agents.ts +0 -755
  97. package/worker/src/auth.ts +0 -126
  98. package/worker/src/files.ts +0 -40
  99. package/worker/src/index.ts +0 -963
  100. package/worker/src/profiles.ts +0 -85
  101. package/worker/src/ratelimit.ts +0 -45
  102. package/worker/src/tasks.ts +0 -498
  103. package/worker/src/types.ts +0 -95
  104. package/worker/tsconfig.json +0 -15
  105. package/worker/wrangler.toml +0 -19
@@ -1,95 +0,0 @@
1
- // MANDATE Alpha Worker Types
2
-
3
- export interface Env {
4
- TASKS_KV: KVNamespace;
5
- TASK_FILES: R2Bucket;
6
- BASE_RPC: string;
7
- ALCHEMY_RPC?: string;
8
- }
9
-
10
- // Re-export Agent type from agents module
11
- export type { Agent } from './agents';
12
-
13
- export interface TaskFile {
14
- key: string;
15
- name: string;
16
- size: number;
17
- uploadedAt: number;
18
- }
19
-
20
- export interface TaskMessage {
21
- sender: string; // address (lowercase)
22
- role: 'client' | 'agent';
23
- content: string;
24
- timestamp: number;
25
- }
26
-
27
- export interface Task {
28
- id: string;
29
- agentId: string;
30
- clientAddress: string;
31
- task: string;
32
- status: 'requested' | 'quoted' | 'accepted' | 'submitted' | 'revision' | 'completed' | 'declined' | 'expired' | 'disputed' | 'resolved';
33
- createdAt: number;
34
- // Quote phase
35
- quotedPriceWei?: string;
36
- quotedAt?: number;
37
- quotedMessage?: string;
38
- // Work phase
39
- acceptedAt?: number;
40
- submittedAt?: number;
41
- completedAt?: number;
42
- result?: string;
43
- files?: TaskFile[];
44
- txHash?: string;
45
- // Messages + revisions
46
- messages?: TaskMessage[];
47
- revisionCount?: number;
48
- // Feedback
49
- ratedAt?: number;
50
- ratedTxHash?: string;
51
- ratedScore?: number;
52
- ratedComment?: string;
53
- // Dispute phase
54
- disputedAt?: number;
55
- resolvedAt?: number;
56
- disputeTxHash?: string;
57
- resolveTxHash?: string;
58
- disputeResolution?: 'client' | 'agent';
59
- }
60
-
61
- export interface AgentStats {
62
- completedTasks: number;
63
- totalEarningsWei: string;
64
- declinedTasks: number;
65
- totalResponseMs: number;
66
- taskCount: number;
67
- // Verified reputation (only from completed tasks rated by the actual client)
68
- ratingSum: number;
69
- ratingCount: number;
70
- }
71
-
72
- export interface AgentProfile {
73
- agentId: string;
74
- tagline?: string;
75
- longDescription?: string;
76
- languages?: string[];
77
- responseTime?: string;
78
- website?: string;
79
- twitter?: string;
80
- github?: string;
81
- updatedAt: number;
82
- }
83
-
84
- export interface Gig {
85
- id: string;
86
- agentId: string;
87
- title: string;
88
- description: string;
89
- priceWei: string;
90
- deliveryTime: string;
91
- category: string;
92
- active: boolean;
93
- createdAt: number;
94
- updatedAt: number;
95
- }
@@ -1,15 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ES2022",
4
- "module": "ESNext",
5
- "moduleResolution": "bundler",
6
- "lib": ["ES2022"],
7
- "types": ["@cloudflare/workers-types"],
8
- "strict": true,
9
- "noEmit": true,
10
- "skipLibCheck": true,
11
- "esModuleInterop": true,
12
- "resolveJsonModule": true
13
- },
14
- "include": ["src/**/*"]
15
- }
@@ -1,19 +0,0 @@
1
- name = "mandate-alpha"
2
- main = "src/index.ts"
3
- compatibility_date = "2024-01-01"
4
-
5
- # Custom domain: api.moltlaunch.com
6
- routes = [
7
- { pattern = "api.moltlaunch.com", custom_domain = true }
8
- ]
9
-
10
- # BASE_RPC is set via `wrangler secret put BASE_RPC`
11
- # For local dev, use worker/.dev.vars
12
-
13
- [[kv_namespaces]]
14
- binding = "TASKS_KV"
15
- id = "07e7dedbd4504abb8a7854bada255c74"
16
-
17
- [[r2_buckets]]
18
- binding = "TASK_FILES"
19
- bucket_name = "mandate-task-files"