@geekbeer/minion 1.0.1 → 1.0.2

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/.env.example CHANGED
@@ -5,7 +5,7 @@
5
5
  # (no heartbeat, no HQ communication).
6
6
 
7
7
  # HQ URL (optional) - The URL of the HQ server
8
- # For managed service: https://minion.geekbeer.co.jp
8
+ # For managed service: https://minion-agent.com
9
9
  # For local Docker development: http://host.docker.internal:3000
10
10
  HQ_URL=
11
11
 
package/README.md CHANGED
@@ -14,7 +14,7 @@ npm install -g @geekbeer/minion
14
14
 
15
15
  ```bash
16
16
  minion-cli setup \
17
- --hq-url https://minion.geekbeer.co.jp \
17
+ --hq-url https://minion-agent.com \
18
18
  --minion-id <MINION_ID> \
19
19
  --api-token <API_TOKEN> \
20
20
  --setup-tunnel \
package/config.js CHANGED
@@ -2,7 +2,7 @@
2
2
  * Minion Agent Configuration
3
3
  *
4
4
  * Optional environment variables (for HQ connection):
5
- * - HQ_URL: The URL of the HQ server (e.g., https://minion.geekbeer.co.jp)
5
+ * - HQ_URL: The URL of the HQ server (e.g., https://minion-agent.com)
6
6
  * - API_TOKEN: The API token for this minion (obtained from dashboard)
7
7
  * - MINION_ID: The minion's UUID (assigned by HQ)
8
8
  *
package/minion-cli.sh CHANGED
@@ -257,23 +257,6 @@ SUPEOF
257
257
  fi
258
258
  fi
259
259
 
260
- # Notify HQ if configured
261
- if [ -n "$HQ_URL" ] && [ -n "$API_TOKEN" ]; then
262
- echo ""
263
- echo "Notifying HQ of setup completion..."
264
- local NOTIFY_RESPONSE
265
- NOTIFY_RESPONSE=$(curl -sf -X POST "${HQ_URL}/api/minion/setup-complete" \
266
- -H "Content-Type: application/json" \
267
- -H "Authorization: Bearer ${API_TOKEN}" \
268
- -d "{}" 2>&1) || true
269
-
270
- if echo "$NOTIFY_RESPONSE" | grep -q '"success":true' 2>/dev/null; then
271
- echo " -> HQ notified successfully"
272
- else
273
- echo " -> HQ notification skipped (HQ may not be reachable)"
274
- fi
275
- fi
276
-
277
260
  # Step 6 (optional): Cloudflare Tunnel setup
278
261
  if [ "$SETUP_TUNNEL" = true ]; then
279
262
  echo ""
@@ -331,6 +314,23 @@ SUPEOF
331
314
  fi
332
315
  fi
333
316
 
317
+ # Notify HQ if configured (after all steps including tunnel setup)
318
+ if [ -n "$HQ_URL" ] && [ -n "$API_TOKEN" ]; then
319
+ echo ""
320
+ echo "Notifying HQ of setup completion..."
321
+ local NOTIFY_RESPONSE
322
+ NOTIFY_RESPONSE=$(curl -sf -X POST "${HQ_URL}/api/minion/setup-complete" \
323
+ -H "Content-Type: application/json" \
324
+ -H "Authorization: Bearer ${API_TOKEN}" \
325
+ -d "{}" 2>&1) || true
326
+
327
+ if echo "$NOTIFY_RESPONSE" | grep -q '"success":true' 2>/dev/null; then
328
+ echo " -> HQ notified successfully"
329
+ else
330
+ echo " -> HQ notification skipped (HQ may not be reachable)"
331
+ fi
332
+ fi
333
+
334
334
  echo ""
335
335
  echo "========================================="
336
336
  echo " Setup Complete!"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geekbeer/minion",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "AI Agent runtime for Minion - manages heartbeat, status, and skill deployment on VPS",
5
5
  "main": "server.js",
6
6
  "bin": {