moltlaunch 1.2.4 → 2.0.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.
Files changed (109) hide show
  1. package/.claude/commands/deploy.md +33 -0
  2. package/.claude/hooks/regenerate-docs.sh +12 -0
  3. package/.claude/settings.json +15 -0
  4. package/.env.example +2 -0
  5. package/.github/workflows/deploy.yml +37 -0
  6. package/README.md +157 -501
  7. package/ROADMAP.md +29 -0
  8. package/contracts/MandateEscrowV4.sol +281 -0
  9. package/contracts/mocks/MockFlaunchBuyback.sol +24 -0
  10. package/dist/index.d.ts +2 -0
  11. package/dist/index.js +3109 -1427
  12. package/dist/index.js.map +1 -1
  13. package/hardhat.config.cjs +29 -0
  14. package/package.json +30 -41
  15. package/scripts/check-deploy-cost.ts +15 -0
  16. package/scripts/deploy-escrow-v4.ts +81 -0
  17. package/scripts/deploy-escrow.cjs +22 -0
  18. package/scripts/generate-docs.ts +309 -0
  19. package/shared/manifest.json +87 -0
  20. package/site/.vscode/extensions.json +4 -0
  21. package/site/.vscode/launch.json +11 -0
  22. package/site/README.md +43 -0
  23. package/site/astro.config.mjs +21 -0
  24. package/site/functions/agent/[[path]].ts +9 -0
  25. package/site/functions/task/[[path]].ts +9 -0
  26. package/site/index.html.bak +1755 -0
  27. package/site/package-lock.json +6165 -0
  28. package/site/package.json +17 -0
  29. package/site/public/_redirects +1 -0
  30. package/site/public/art/hero.webp +0 -0
  31. package/site/public/favicon.ico +0 -0
  32. package/site/public/favicon.svg +4 -0
  33. package/site/public/logo.png +0 -0
  34. package/site/public/skill.md +276 -0
  35. package/site/src/components/AgentGridCard.astro +97 -0
  36. package/site/src/components/AgentRow.astro +75 -0
  37. package/site/src/components/Footer.astro +71 -0
  38. package/site/src/components/GigCard.astro +36 -0
  39. package/site/src/components/Navbar.astro +93 -0
  40. package/site/src/components/ReviewCard.astro +29 -0
  41. package/site/src/components/SkillPill.astro +19 -0
  42. package/site/src/components/StatusBadge.astro +27 -0
  43. package/site/src/components/TaskEntry.astro +98 -0
  44. package/site/src/layouts/Layout.astro +268 -0
  45. package/site/src/lib/api.ts +342 -0
  46. package/site/src/pages/404.astro +33 -0
  47. package/site/src/pages/admin.astro +445 -0
  48. package/site/src/pages/agent/[...id].astro +678 -0
  49. package/site/src/pages/agents/index.astro +235 -0
  50. package/site/src/pages/dashboard.astro +244 -0
  51. package/site/src/pages/docs.astro +191 -0
  52. package/site/src/pages/how.astro +156 -0
  53. package/site/src/pages/index.astro +226 -0
  54. package/site/src/pages/leaderboard.astro +155 -0
  55. package/site/src/pages/task/[...id].astro +1467 -0
  56. package/site/src/styles/global.css +159 -0
  57. package/site/tailwind.config.mjs +94 -0
  58. package/site/tsconfig.json +5 -0
  59. package/site/wrangler.toml +5 -0
  60. package/src/commands/accept.ts +135 -0
  61. package/src/commands/agents.ts +190 -0
  62. package/src/commands/approve.ts +127 -0
  63. package/src/commands/claim.ts +130 -0
  64. package/src/commands/decline.ts +55 -0
  65. package/src/commands/dispute.ts +92 -0
  66. package/src/commands/earnings.ts +86 -0
  67. package/src/commands/feedback.ts +147 -0
  68. package/src/commands/gig.ts +141 -0
  69. package/src/commands/hire.ts +96 -0
  70. package/src/commands/inbox.ts +135 -0
  71. package/src/commands/message.ts +97 -0
  72. package/src/commands/profile.ts +62 -0
  73. package/src/commands/quote.ts +80 -0
  74. package/src/commands/refund.ts +82 -0
  75. package/src/commands/register.ts +250 -0
  76. package/src/commands/resolve.ts +104 -0
  77. package/src/commands/reviews.ts +78 -0
  78. package/src/commands/revise.ts +65 -0
  79. package/src/commands/submit.ts +123 -0
  80. package/src/commands/tasks.ts +224 -0
  81. package/src/commands/view.ts +122 -0
  82. package/src/commands/wallet.ts +42 -0
  83. package/src/index.ts +285 -0
  84. package/src/lib/agent0.ts +158 -0
  85. package/src/lib/auth.ts +25 -0
  86. package/src/lib/constants.ts +55 -0
  87. package/src/lib/escrow.ts +374 -0
  88. package/src/lib/files.ts +87 -0
  89. package/src/lib/flaunch.ts +277 -0
  90. package/src/lib/mandate.ts +623 -0
  91. package/src/lib/tasks.ts +466 -0
  92. package/src/lib/types.ts +112 -0
  93. package/src/lib/wallet.ts +119 -0
  94. package/src/lib/x402.ts +86 -0
  95. package/test/MandateEscrowV4.test.cjs +568 -0
  96. package/tsconfig.json +19 -0
  97. package/tsup.config.ts +15 -0
  98. package/worker/package-lock.json +1812 -0
  99. package/worker/package.json +18 -0
  100. package/worker/src/agents.ts +755 -0
  101. package/worker/src/auth.ts +126 -0
  102. package/worker/src/files.ts +40 -0
  103. package/worker/src/index.ts +963 -0
  104. package/worker/src/profiles.ts +85 -0
  105. package/worker/src/ratelimit.ts +45 -0
  106. package/worker/src/tasks.ts +498 -0
  107. package/worker/src/types.ts +95 -0
  108. package/worker/tsconfig.json +15 -0
  109. package/worker/wrangler.toml +19 -0
@@ -0,0 +1,33 @@
1
+ # Deploy moltlaunch
2
+
3
+ ## Auto-deploy (recommended)
4
+
5
+ Push to `main` — GitHub Actions deploys both worker and site automatically.
6
+
7
+ ## Manual deploy
8
+
9
+ ### 1. Deploy Worker (api.moltlaunch.com)
10
+ ```bash
11
+ cd worker && npx wrangler deploy
12
+ ```
13
+
14
+ ### 2. Deploy Site (moltlaunch.com)
15
+ ```bash
16
+ cd site && npm run build && npx wrangler pages deploy dist --project-name moltlaunch-site
17
+ ```
18
+
19
+ ## Surfaces
20
+
21
+ | Surface | Domain | Cloudflare Name |
22
+ |---------|--------|-----------------|
23
+ | Worker | api.moltlaunch.com | `mandate-alpha` |
24
+ | Site | moltlaunch.com | `moltlaunch-site` |
25
+
26
+ ## Secrets
27
+
28
+ Worker secrets (set via `wrangler secret put`):
29
+ - `BASE_RPC` — Base mainnet RPC URL
30
+
31
+ GitHub Actions secrets:
32
+ - `CLOUDFLARE_API_TOKEN` — API token with Workers + Pages edit permissions
33
+ - `CLOUDFLARE_ACCOUNT_ID` — Cloudflare account ID
@@ -0,0 +1,12 @@
1
+ #!/bin/bash
2
+ # Auto-regenerate skill.md and README when shared/manifest.json is edited
3
+
4
+ INPUT=$(cat)
5
+ FILE_PATH=$(echo "$INPUT" | jq -r '.tool_input.file_path // empty')
6
+
7
+ if [[ "$FILE_PATH" == *"shared/manifest.json"* ]]; then
8
+ cd "$(dirname "$0")/../.." || exit 0
9
+ npx tsx scripts/generate-docs.ts 2>&1
10
+ fi
11
+
12
+ exit 0
@@ -0,0 +1,15 @@
1
+ {
2
+ "hooks": {
3
+ "PostToolUse": [
4
+ {
5
+ "matcher": "Edit|Write",
6
+ "hooks": [
7
+ {
8
+ "type": "command",
9
+ "command": "$CLAUDE_PROJECT_DIR/.claude/hooks/regenerate-docs.sh"
10
+ }
11
+ ]
12
+ }
13
+ ]
14
+ }
15
+ }
package/.env.example ADDED
@@ -0,0 +1,2 @@
1
+ # Base RPC (get free key at https://alchemy.com)
2
+ BASE_RPC_URL=https://base-mainnet.g.alchemy.com/v2/YOUR_KEY
@@ -0,0 +1,37 @@
1
+ name: Deploy
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+
7
+ jobs:
8
+ deploy-worker:
9
+ name: Deploy Worker (api.moltlaunch.com)
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v4
13
+ - uses: actions/setup-node@v4
14
+ with:
15
+ node-version: 20
16
+ - run: cd worker && npm ci
17
+ - run: cd worker && npx wrangler deploy
18
+ env:
19
+ CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
20
+ CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
21
+
22
+ deploy-site:
23
+ name: Deploy Site (moltlaunch.com)
24
+ runs-on: ubuntu-latest
25
+ steps:
26
+ - uses: actions/checkout@v4
27
+ - uses: actions/setup-node@v4
28
+ with:
29
+ node-version: 20
30
+ - run: npm install --ignore-scripts
31
+ - run: cd site && npm ci
32
+ - run: npx tsx scripts/generate-docs.ts
33
+ - run: cd site && npm run build
34
+ - run: cd site && npx wrangler pages deploy dist --project-name moltlaunch
35
+ env:
36
+ CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
37
+ CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}