@hailer/mcp 1.1.17-beta.2 → 1.1.17-beta.3
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.
|
@@ -148,8 +148,36 @@ publish_hailer_app({
|
|
|
148
148
|
```
|
|
149
149
|
|
|
150
150
|
New version replaces old at same URL.
|
|
151
|
+
|
|
152
|
+
**Marketplace apps:** If `manifest.json` contains a `targetId`, the publish automatically updates the marketplace listing version too. No separate `publish_app` call needed for version updates.
|
|
151
153
|
</updating>
|
|
152
154
|
|
|
155
|
+
<marketplace>
|
|
156
|
+
## Marketplace Publishing
|
|
157
|
+
|
|
158
|
+
**Two different things:**
|
|
159
|
+
1. **App publish** (`publish_hailer_app`) — uploads files to CDN, updates app URL. If manifest has `targetId`, also updates the marketplace version.
|
|
160
|
+
2. **Marketplace metadata** (`publish_app`) — updates title, description, icon, images on the marketplace listing. Does NOT upload app files.
|
|
161
|
+
|
|
162
|
+
**First-time marketplace publish:**
|
|
163
|
+
1. Publish app with `publish_hailer_app` — server returns a `targetId`, auto-saved to manifest
|
|
164
|
+
2. Create marketplace listing with `publish_app` using `versionId` (= targetId from manifest)
|
|
165
|
+
3. Note the `productId` returned — that's the marketplace listing ID (different from targetId)
|
|
166
|
+
|
|
167
|
+
**Updating marketplace version:**
|
|
168
|
+
Just run `publish_hailer_app` — if manifest has `targetId`, the marketplace version updates automatically.
|
|
169
|
+
|
|
170
|
+
**Updating marketplace metadata (description, icon, images):**
|
|
171
|
+
Use `publish_app` with `productId` (the marketplace listing ID, NOT the targetId).
|
|
172
|
+
|
|
173
|
+
**Key IDs:**
|
|
174
|
+
| ID | What | Where |
|
|
175
|
+
|----|------|-------|
|
|
176
|
+
| `appId` | The app itself | manifest.json `appId` |
|
|
177
|
+
| `targetId` | Version entry for marketplace | manifest.json `targetId` |
|
|
178
|
+
| `productId` | Marketplace listing | Returned by first `publish_app` call, find via `list_templates` |
|
|
179
|
+
</marketplace>
|
|
180
|
+
|
|
153
181
|
<sharing>
|
|
154
182
|
## Sharing Apps
|
|
155
183
|
|
package/package.json
CHANGED
package/scripts/postinstall.cjs
CHANGED
|
@@ -62,12 +62,3 @@ if (!fs.existsSync(src)) {
|
|
|
62
62
|
|
|
63
63
|
copyDir(src, dest);
|
|
64
64
|
console.log(`@hailer/mcp: agents installed to ${dest}`);
|
|
65
|
-
|
|
66
|
-
// Copy .opencode/ config
|
|
67
|
-
const opencodeSrc = path.join(__dirname, '..', '.opencode');
|
|
68
|
-
const opencodeDest = path.join(projectRoot, '.opencode');
|
|
69
|
-
|
|
70
|
-
if (fs.existsSync(opencodeSrc)) {
|
|
71
|
-
copyDir(opencodeSrc, opencodeDest);
|
|
72
|
-
console.log(`@hailer/mcp: OpenCode config installed to ${opencodeDest}`);
|
|
73
|
-
}
|