@web42/w42 0.1.4 → 0.1.8
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/README.md +75 -47
- package/dist/commands/send.js +107 -33
- package/dist/commands/serve.js +54 -117
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +5 -6
- package/dist/generated/embedded-skills.d.ts +0 -9
- package/dist/generated/embedded-skills.js +0 -40
- package/skills/web42-publish-prep/SKILL.md +0 -181
- package/skills/web42-publish-prep/_meta.json +0 -17
- package/skills/web42-publish-prep/assets/readme-template.md +0 -61
- package/skills/web42-publish-prep/references/file-hygiene.md +0 -109
- package/skills/web42-publish-prep/references/manifest-fields.md +0 -142
- package/skills/web42-publish-prep/references/marketplace-config.md +0 -99
- package/skills/web42-publish-prep/references/resources-guide.md +0 -136
- package/skills/web42-publish-prep/references/web42-folder.md +0 -120
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
# Marketplace Configuration Reference
|
|
2
|
-
|
|
3
|
-
The file `.web42/marketplace.json` controls how your agent appears and is sold on the Web42 marketplace. It is created automatically by `web42 init` with sensible defaults.
|
|
4
|
-
|
|
5
|
-
## File Location
|
|
6
|
-
|
|
7
|
-
```
|
|
8
|
-
.web42/marketplace.json
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Fields
|
|
12
|
-
|
|
13
|
-
### `price_cents` (number)
|
|
14
|
-
|
|
15
|
-
The price in cents. `0` means free.
|
|
16
|
-
|
|
17
|
-
- **Default:** `0`
|
|
18
|
-
- **Examples:** `0` (free), `500` ($5.00), `2999` ($29.99), `10000` ($100.00)
|
|
19
|
-
- **Guidance:**
|
|
20
|
-
- Free agents get more installs but less revenue. Consider free for simple utilities, paid for specialized workflows.
|
|
21
|
-
- Look at comparable agents on the marketplace for pricing cues.
|
|
22
|
-
- $5–$15 is a sweet spot for productivity agents. $20–$50 for specialized professional tools.
|
|
23
|
-
- You can always start free and add pricing later.
|
|
24
|
-
|
|
25
|
-
### `currency` (string)
|
|
26
|
-
|
|
27
|
-
ISO 4217 currency code.
|
|
28
|
-
|
|
29
|
-
- **Default:** `"usd"`
|
|
30
|
-
- **Values:** Currently only `"usd"` is supported.
|
|
31
|
-
|
|
32
|
-
### `license` (string | null)
|
|
33
|
-
|
|
34
|
-
The license under which the agent is distributed. `null` means no license specified.
|
|
35
|
-
|
|
36
|
-
- **Default:** `null`
|
|
37
|
-
- **Supported values:**
|
|
38
|
-
|
|
39
|
-
| License | Summary | Best For |
|
|
40
|
-
|---------|---------|----------|
|
|
41
|
-
| `"MIT"` | Permissive. Buyers can do almost anything. | Open tools, community agents |
|
|
42
|
-
| `"Apache-2.0"` | Permissive + patent grant. | Enterprise-friendly tools |
|
|
43
|
-
| `"GPL-3.0"` | Copyleft. Derivatives must also be GPL. | Agents you want to stay open |
|
|
44
|
-
| `"BSD-3-Clause"` | Permissive, similar to MIT. | Academic or research agents |
|
|
45
|
-
| `"Proprietary"` | All rights reserved. No redistribution. | Commercial/paid agents |
|
|
46
|
-
| `"Custom"` | Custom terms defined elsewhere. | Unique licensing needs |
|
|
47
|
-
|
|
48
|
-
- **Guidance:**
|
|
49
|
-
- For **free agents** intended as community contributions: `MIT` or `Apache-2.0`.
|
|
50
|
-
- For **paid agents**: `Proprietary` is the standard choice — buyers get usage rights but cannot redistribute.
|
|
51
|
-
- If unsure, `MIT` for free and `Proprietary` for paid is a safe default.
|
|
52
|
-
|
|
53
|
-
### `tags` (string array)
|
|
54
|
-
|
|
55
|
-
Searchable labels for marketplace discoverability. These are the canonical tags shown on the marketplace listing.
|
|
56
|
-
|
|
57
|
-
- **Default:** `[]`
|
|
58
|
-
- **Constraints:** Each tag should be lowercase, hyphenated for multi-word.
|
|
59
|
-
- **Good:** `["crm", "slack-integration", "weekly-reports", "productivity"]`
|
|
60
|
-
- **Bad:** `["ai", "agent", "good", "cool"]` (too generic)
|
|
61
|
-
- **Guidance:**
|
|
62
|
-
- Use 3–6 tags.
|
|
63
|
-
- Mix **category terms** ("finance", "devops", "support") with **capability terms** ("pdf-generation", "slack-integration", "email-monitoring").
|
|
64
|
-
- Think about what a buyer would search for to find your agent.
|
|
65
|
-
- Tags also appear in the manifest — the marketplace.json tags are the canonical source that gets synced to the remote.
|
|
66
|
-
|
|
67
|
-
## Visibility (Dashboard Only)
|
|
68
|
-
|
|
69
|
-
Agent visibility is **not** controlled through local files. It is managed exclusively through the Web42 dashboard at `web42.ai`.
|
|
70
|
-
|
|
71
|
-
The visibility lifecycle:
|
|
72
|
-
|
|
73
|
-
1. **`private`** (default) — Only you can see it. Use this while developing and preparing.
|
|
74
|
-
2. **`unlisted`** — Accessible via direct link but not in search/browse. Good for beta testers or early feedback.
|
|
75
|
-
3. **`public`** — Visible to everyone on the marketplace. Set this when you're ready to launch.
|
|
76
|
-
|
|
77
|
-
Remind the user to visit the dashboard to toggle visibility when the agent is ready.
|
|
78
|
-
|
|
79
|
-
## Example File
|
|
80
|
-
|
|
81
|
-
```json
|
|
82
|
-
{
|
|
83
|
-
"price_cents": 999,
|
|
84
|
-
"currency": "usd",
|
|
85
|
-
"license": "Proprietary",
|
|
86
|
-
"tags": [
|
|
87
|
-
"crm",
|
|
88
|
-
"slack-integration",
|
|
89
|
-
"weekly-reports",
|
|
90
|
-
"productivity"
|
|
91
|
-
]
|
|
92
|
-
}
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
## Sync Behavior
|
|
96
|
-
|
|
97
|
-
When you run `web42 push`, the contents of `.web42/marketplace.json` are included in the sync snapshot and written to the remote database. When you run `web42 pull`, remote marketplace settings (except visibility) are written back to this file.
|
|
98
|
-
|
|
99
|
-
Changes made on the dashboard (e.g., editing tags or price via the web UI) will be reflected locally on the next `web42 pull`.
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
# Resources Guide
|
|
2
|
-
|
|
3
|
-
Resources are the visual media and documents that accompany your agent's marketplace listing: screenshots, demo videos, architecture diagrams, PDF guides, etc. They make listings dramatically more compelling.
|
|
4
|
-
|
|
5
|
-
## File Locations
|
|
6
|
-
|
|
7
|
-
```
|
|
8
|
-
.web42/resources.json # Metadata describing each resource
|
|
9
|
-
.web42/resources/ # The actual resource files
|
|
10
|
-
screenshot-dashboard.png
|
|
11
|
-
demo-recording.mp4
|
|
12
|
-
setup-guide.pdf
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## `resources.json` Schema
|
|
16
|
-
|
|
17
|
-
The file is a JSON array of `ResourceMeta` objects:
|
|
18
|
-
|
|
19
|
-
```json
|
|
20
|
-
[
|
|
21
|
-
{
|
|
22
|
-
"file": "screenshot-dashboard.png",
|
|
23
|
-
"title": "Dashboard Overview",
|
|
24
|
-
"description": "The main dashboard showing weekly report generation",
|
|
25
|
-
"type": "image",
|
|
26
|
-
"sort_order": 0
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"file": "demo-recording.mp4",
|
|
30
|
-
"title": "3-Minute Demo",
|
|
31
|
-
"description": "Watch the agent draft a report from CRM data in real time",
|
|
32
|
-
"type": "video",
|
|
33
|
-
"sort_order": 1
|
|
34
|
-
}
|
|
35
|
-
]
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
### Fields
|
|
39
|
-
|
|
40
|
-
| Field | Type | Required | Description |
|
|
41
|
-
|-------|------|----------|-------------|
|
|
42
|
-
| `file` | string | Yes | Filename in `.web42/resources/` |
|
|
43
|
-
| `title` | string | Yes | Display title on the marketplace listing |
|
|
44
|
-
| `description` | string | No | Optional caption or context |
|
|
45
|
-
| `type` | `"image"` \| `"video"` \| `"document"` | Yes | Determines how the marketplace renders it |
|
|
46
|
-
| `sort_order` | number | Yes | Display order (0 = first) |
|
|
47
|
-
|
|
48
|
-
## Resource Types
|
|
49
|
-
|
|
50
|
-
### Images
|
|
51
|
-
|
|
52
|
-
Screenshots, diagrams, architecture overviews, result samples.
|
|
53
|
-
|
|
54
|
-
- **Recommended:** 1200x800 or 1600x900 (16:9 landscape)
|
|
55
|
-
- **Formats:** PNG, JPEG, WebP
|
|
56
|
-
- **Max size:** 5 MB per file
|
|
57
|
-
- **Tips:**
|
|
58
|
-
- Lead with your best screenshot — it appears first in the gallery.
|
|
59
|
-
- Show the agent *in action*, not just a static interface.
|
|
60
|
-
- Annotate screenshots with callouts if key features are not obvious.
|
|
61
|
-
- Dark-mode and light-mode variants both work well.
|
|
62
|
-
|
|
63
|
-
### Videos
|
|
64
|
-
|
|
65
|
-
Demo recordings, walkthroughs, setup tutorials.
|
|
66
|
-
|
|
67
|
-
- **Recommended:** 1–3 minutes for demos, under 60 seconds for teasers
|
|
68
|
-
- **Formats:** MP4, WebM
|
|
69
|
-
- **Max size:** 50 MB per file (for local storage; consider hosting large videos externally)
|
|
70
|
-
- **Tips:**
|
|
71
|
-
- Start with the outcome, not the setup. Show the result in the first 10 seconds.
|
|
72
|
-
- Screen recordings with voiceover convert better than silent ones.
|
|
73
|
-
- For large video files, consider hosting on YouTube/Loom and linking via `demoVideoUrl` in the manifest instead.
|
|
74
|
-
|
|
75
|
-
### Documents
|
|
76
|
-
|
|
77
|
-
PDF guides, setup instructions, architecture docs.
|
|
78
|
-
|
|
79
|
-
- **Formats:** PDF
|
|
80
|
-
- **Max size:** 10 MB per file
|
|
81
|
-
- **Tips:**
|
|
82
|
-
- Use for detailed setup guides that are too long for the README.
|
|
83
|
-
- A 1-page "quick start" PDF is a nice touch for complex agents.
|
|
84
|
-
|
|
85
|
-
## How Resources Appear on the Marketplace
|
|
86
|
-
|
|
87
|
-
Resources are displayed on the agent's detail page:
|
|
88
|
-
|
|
89
|
-
- **Images** show as a scrollable gallery below the agent header.
|
|
90
|
-
- **Videos** embed with a play button.
|
|
91
|
-
- **Documents** appear as downloadable links.
|
|
92
|
-
|
|
93
|
-
The `sort_order` controls the display sequence across all types.
|
|
94
|
-
|
|
95
|
-
## Sync Behavior
|
|
96
|
-
|
|
97
|
-
When you run `web42 push`, the CLI:
|
|
98
|
-
|
|
99
|
-
1. Reads `.web42/resources.json` for metadata.
|
|
100
|
-
2. Uploads each file from `.web42/resources/` to the server.
|
|
101
|
-
3. Creates the corresponding `agent_resources` rows in the database.
|
|
102
|
-
|
|
103
|
-
When you run `web42 pull`, the CLI writes `.web42/resources.json` with metadata from the remote. Resource files themselves are not downloaded back (they are referenced by URL in the snapshot).
|
|
104
|
-
|
|
105
|
-
## Example Workflow
|
|
106
|
-
|
|
107
|
-
1. Take screenshots of your agent in action.
|
|
108
|
-
2. Save them to `.web42/resources/`.
|
|
109
|
-
3. Create or update `.web42/resources.json` with metadata for each file.
|
|
110
|
-
4. Run `web42 push` — the resources upload alongside everything else.
|
|
111
|
-
|
|
112
|
-
```json
|
|
113
|
-
[
|
|
114
|
-
{
|
|
115
|
-
"file": "slack-report.png",
|
|
116
|
-
"title": "Weekly Report in Slack",
|
|
117
|
-
"description": "Automated report posted to #team-updates every Monday",
|
|
118
|
-
"type": "image",
|
|
119
|
-
"sort_order": 0
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
"file": "crm-dashboard.png",
|
|
123
|
-
"title": "CRM Data View",
|
|
124
|
-
"description": "The agent reads from your CRM and extracts key metrics",
|
|
125
|
-
"type": "image",
|
|
126
|
-
"sort_order": 1
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
"file": "setup-guide.pdf",
|
|
130
|
-
"title": "Setup Guide",
|
|
131
|
-
"description": "Step-by-step guide for connecting your CRM and Slack",
|
|
132
|
-
"type": "document",
|
|
133
|
-
"sort_order": 2
|
|
134
|
-
}
|
|
135
|
-
]
|
|
136
|
-
```
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
# The `.web42/` Folder
|
|
2
|
-
|
|
3
|
-
The `.web42/` directory in your agent workspace is the metadata and sync hub for the Web42 marketplace. It is created automatically by `web42 init`.
|
|
4
|
-
|
|
5
|
-
## Structure
|
|
6
|
-
|
|
7
|
-
```
|
|
8
|
-
.web42/
|
|
9
|
-
├── marketplace.json # Pricing, license, tags
|
|
10
|
-
├── resources.json # Metadata for resource files
|
|
11
|
-
├── sync.json # Sync state (auto-managed, do not edit)
|
|
12
|
-
├── avatar.png # Agent profile image (optional)
|
|
13
|
-
├── resources/ # Screenshots, videos, documents
|
|
14
|
-
│ ├── screenshot-1.png
|
|
15
|
-
│ └── demo.mp4
|
|
16
|
-
└── dist/ # Pack output (auto-generated by web42 pack)
|
|
17
|
-
├── AGENTS.md
|
|
18
|
-
├── IDENTITY.md
|
|
19
|
-
├── manifest.json
|
|
20
|
-
└── ...
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
## Files You Edit
|
|
24
|
-
|
|
25
|
-
### `marketplace.json`
|
|
26
|
-
|
|
27
|
-
Controls pricing, licensing, and discoverability on the marketplace.
|
|
28
|
-
|
|
29
|
-
- Created by `web42 init` with defaults.
|
|
30
|
-
- Edit manually or with agent assistance.
|
|
31
|
-
- Synced to/from the remote on push/pull.
|
|
32
|
-
- See `references/marketplace-config.md` for the full field reference.
|
|
33
|
-
|
|
34
|
-
### `resources.json`
|
|
35
|
-
|
|
36
|
-
Describes the resource files (screenshots, videos, documents) in the `resources/` subdirectory.
|
|
37
|
-
|
|
38
|
-
- JSON array of `ResourceMeta` objects.
|
|
39
|
-
- Each entry maps a file in `resources/` to a title, description, type, and display order.
|
|
40
|
-
- See `references/resources-guide.md` for the schema and guidance.
|
|
41
|
-
|
|
42
|
-
### `avatar.{png,jpg,jpeg,webp,svg}`
|
|
43
|
-
|
|
44
|
-
The agent's profile image, shown on the marketplace listing and search results.
|
|
45
|
-
|
|
46
|
-
- Only one avatar file should exist (the CLI picks the first match by extension priority: png, jpg, jpeg, webp, svg).
|
|
47
|
-
- Recommended: 400x400 or larger, square aspect ratio.
|
|
48
|
-
- Uploaded to the server on `web42 push`.
|
|
49
|
-
|
|
50
|
-
### `resources/`
|
|
51
|
-
|
|
52
|
-
Directory containing the actual resource files referenced by `resources.json`.
|
|
53
|
-
|
|
54
|
-
- Drop images, videos, or PDFs here.
|
|
55
|
-
- Filenames must match the `file` field in `resources.json`.
|
|
56
|
-
|
|
57
|
-
## Files You Should NOT Edit
|
|
58
|
-
|
|
59
|
-
### `sync.json`
|
|
60
|
-
|
|
61
|
-
Tracks the sync state between your local workspace and the remote database.
|
|
62
|
-
|
|
63
|
-
```json
|
|
64
|
-
{
|
|
65
|
-
"agent_id": "0c4cc49e-...",
|
|
66
|
-
"last_remote_hash": "7b1d3ecf...",
|
|
67
|
-
"last_local_hash": "d9a10b8a...",
|
|
68
|
-
"synced_at": "2026-03-17T03:54:46.124Z"
|
|
69
|
-
}
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
- **Auto-managed** by `web42 push`, `web42 pull`, and `web42 sync`.
|
|
73
|
-
- Editing this file manually will break change detection.
|
|
74
|
-
- Safe to delete if you want to force a full re-sync (next push/pull will recreate it).
|
|
75
|
-
|
|
76
|
-
### `dist/`
|
|
77
|
-
|
|
78
|
-
The pack output directory, generated by `web42 pack` or automatically during `web42 push`.
|
|
79
|
-
|
|
80
|
-
- Contains the processed, distributable version of your agent files.
|
|
81
|
-
- **Auto-generated** — do not edit files here directly.
|
|
82
|
-
- Excluded from the pack itself (no recursion).
|
|
83
|
-
|
|
84
|
-
## Git Integration
|
|
85
|
-
|
|
86
|
-
Add `.web42/sync.json` and `.web42/dist/` to `.gitignore` since they are auto-generated:
|
|
87
|
-
|
|
88
|
-
```gitignore
|
|
89
|
-
.web42/sync.json
|
|
90
|
-
.web42/dist/
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
Keep these in version control:
|
|
94
|
-
|
|
95
|
-
- `.web42/marketplace.json`
|
|
96
|
-
- `.web42/resources.json`
|
|
97
|
-
- `.web42/avatar.*`
|
|
98
|
-
- `.web42/resources/`
|
|
99
|
-
|
|
100
|
-
## `.web42ignore` (Workspace Root)
|
|
101
|
-
|
|
102
|
-
Not inside `.web42/` — lives at the workspace root alongside `manifest.json`.
|
|
103
|
-
|
|
104
|
-
- Created by `web42 init` with sensible defaults (IDE dirs, env files, test folders, drafts).
|
|
105
|
-
- Glob patterns, one per line. Lines starting with `#` are comments.
|
|
106
|
-
- Controls which files are excluded when running `web42 pack` or `web42 push`.
|
|
107
|
-
- Use `web42 pack --dry-run` to verify what gets included/excluded.
|
|
108
|
-
- See `references/file-hygiene.md` for full details.
|
|
109
|
-
|
|
110
|
-
Keep `.web42ignore` in version control so the ignore rules travel with the project.
|
|
111
|
-
|
|
112
|
-
## Sync Lifecycle
|
|
113
|
-
|
|
114
|
-
```
|
|
115
|
-
web42 init → Creates .web42/, marketplace.json, resources.json, .web42ignore
|
|
116
|
-
web42 pack → Generates .web42/dist/ from workspace files (respects .web42ignore)
|
|
117
|
-
web42 push → Sends snapshot (manifest + README + marketplace + files + avatar + resources) to remote
|
|
118
|
-
web42 pull → Fetches remote snapshot, writes to local files
|
|
119
|
-
web42 sync → Shows local vs remote hash comparison without changing anything
|
|
120
|
-
```
|