getmosaic 0.1.3 → 0.1.4

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 (2) hide show
  1. package/bin/mosaic.sh +11 -1
  2. package/package.json +1 -1
package/bin/mosaic.sh CHANGED
@@ -48,7 +48,17 @@ case "$COMMAND" in
48
48
  echo " Opening https://connect-agg111s-projects.vercel.app in your browser..."
49
49
  echo ""
50
50
  open "https://connect-agg111s-projects.vercel.app" 2>/dev/null || xdg-open "https://connect-agg111s-projects.vercel.app" 2>/dev/null || true
51
- echo " After authorizing, run the command shown on the success page, then:"
51
+ echo " Authorize Mosaic in your Slack workspace, then paste the token below."
52
+ echo ""
53
+ printf " Slack bot token (xoxb-...): "
54
+ read -r SLACK_TOKEN
55
+ [ -z "$SLACK_TOKEN" ] && echo "Slack token cannot be empty." && exit 1
56
+
57
+ grep -v "^SLACK_BOT_TOKEN=" "$ENV_FILE" > "$ENV_FILE.tmp" && mv "$ENV_FILE.tmp" "$ENV_FILE"
58
+ echo "SLACK_BOT_TOKEN=$SLACK_TOKEN" >> "$ENV_FILE"
59
+
60
+ echo ""
61
+ echo " ✓ All set! Run:"
52
62
  echo ""
53
63
  echo " mosaic start"
54
64
  echo ""
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "getmosaic",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Market intelligence agent — distills signals from your team and the market into strategic clarity",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",