moltlaunch 1.2.5 → 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.
- package/.claude/commands/deploy.md +33 -0
- package/.claude/hooks/regenerate-docs.sh +12 -0
- package/.claude/settings.json +15 -0
- package/.env.example +2 -0
- package/.github/workflows/deploy.yml +37 -0
- package/README.md +157 -501
- package/ROADMAP.md +29 -0
- package/contracts/MandateEscrowV4.sol +281 -0
- package/contracts/mocks/MockFlaunchBuyback.sol +24 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3109 -1427
- package/dist/index.js.map +1 -1
- package/hardhat.config.cjs +29 -0
- package/package.json +29 -40
- package/scripts/check-deploy-cost.ts +15 -0
- package/scripts/deploy-escrow-v4.ts +81 -0
- package/scripts/deploy-escrow.cjs +22 -0
- package/scripts/generate-docs.ts +309 -0
- package/shared/manifest.json +87 -0
- package/site/.vscode/extensions.json +4 -0
- package/site/.vscode/launch.json +11 -0
- package/site/README.md +43 -0
- package/site/astro.config.mjs +21 -0
- package/site/functions/agent/[[path]].ts +9 -0
- package/site/functions/task/[[path]].ts +9 -0
- package/site/index.html.bak +1755 -0
- package/site/package-lock.json +6165 -0
- package/site/package.json +17 -0
- package/site/public/_redirects +1 -0
- package/site/public/art/hero.webp +0 -0
- package/site/public/favicon.ico +0 -0
- package/site/public/favicon.svg +4 -0
- package/site/public/logo.png +0 -0
- package/site/public/skill.md +276 -0
- package/site/src/components/AgentGridCard.astro +97 -0
- package/site/src/components/AgentRow.astro +75 -0
- package/site/src/components/Footer.astro +71 -0
- package/site/src/components/GigCard.astro +36 -0
- package/site/src/components/Navbar.astro +93 -0
- package/site/src/components/ReviewCard.astro +29 -0
- package/site/src/components/SkillPill.astro +19 -0
- package/site/src/components/StatusBadge.astro +27 -0
- package/site/src/components/TaskEntry.astro +98 -0
- package/site/src/layouts/Layout.astro +268 -0
- package/site/src/lib/api.ts +342 -0
- package/site/src/pages/404.astro +33 -0
- package/site/src/pages/admin.astro +445 -0
- package/site/src/pages/agent/[...id].astro +678 -0
- package/site/src/pages/agents/index.astro +235 -0
- package/site/src/pages/dashboard.astro +244 -0
- package/site/src/pages/docs.astro +191 -0
- package/site/src/pages/how.astro +156 -0
- package/site/src/pages/index.astro +226 -0
- package/site/src/pages/leaderboard.astro +155 -0
- package/site/src/pages/task/[...id].astro +1467 -0
- package/site/src/styles/global.css +159 -0
- package/site/tailwind.config.mjs +94 -0
- package/site/tsconfig.json +5 -0
- package/site/wrangler.toml +5 -0
- package/src/commands/accept.ts +135 -0
- package/src/commands/agents.ts +190 -0
- package/src/commands/approve.ts +127 -0
- package/src/commands/claim.ts +130 -0
- package/src/commands/decline.ts +55 -0
- package/src/commands/dispute.ts +92 -0
- package/src/commands/earnings.ts +86 -0
- package/src/commands/feedback.ts +147 -0
- package/src/commands/gig.ts +141 -0
- package/src/commands/hire.ts +96 -0
- package/src/commands/inbox.ts +135 -0
- package/src/commands/message.ts +97 -0
- package/src/commands/profile.ts +62 -0
- package/src/commands/quote.ts +80 -0
- package/src/commands/refund.ts +82 -0
- package/src/commands/register.ts +250 -0
- package/src/commands/resolve.ts +104 -0
- package/src/commands/reviews.ts +78 -0
- package/src/commands/revise.ts +65 -0
- package/src/commands/submit.ts +123 -0
- package/src/commands/tasks.ts +224 -0
- package/src/commands/view.ts +122 -0
- package/src/commands/wallet.ts +42 -0
- package/src/index.ts +285 -0
- package/src/lib/agent0.ts +158 -0
- package/src/lib/auth.ts +25 -0
- package/src/lib/constants.ts +55 -0
- package/src/lib/escrow.ts +374 -0
- package/src/lib/files.ts +87 -0
- package/src/lib/flaunch.ts +277 -0
- package/src/lib/mandate.ts +623 -0
- package/src/lib/tasks.ts +466 -0
- package/src/lib/types.ts +112 -0
- package/src/lib/wallet.ts +119 -0
- package/src/lib/x402.ts +86 -0
- package/test/MandateEscrowV4.test.cjs +568 -0
- package/tsconfig.json +19 -0
- package/tsup.config.ts +15 -0
- package/worker/package-lock.json +1812 -0
- package/worker/package.json +18 -0
- package/worker/src/agents.ts +755 -0
- package/worker/src/auth.ts +126 -0
- package/worker/src/files.ts +40 -0
- package/worker/src/index.ts +963 -0
- package/worker/src/profiles.ts +85 -0
- package/worker/src/ratelimit.ts +45 -0
- package/worker/src/tasks.ts +498 -0
- package/worker/src/types.ts +95 -0
- package/worker/tsconfig.json +15 -0
- 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
|
package/.env.example
ADDED
|
@@ -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 }}
|