getmosaic 0.1.2 → 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.
- package/bin/mosaic.sh +12 -2
- package/package.json +1 -1
package/bin/mosaic.sh
CHANGED
|
@@ -26,7 +26,7 @@ case "$COMMAND" in
|
|
|
26
26
|
echo " Step 1 — Create a Hyperspell account and generate an API key."
|
|
27
27
|
echo " Opening https://app.hyperspell.ai/api-keys in your browser..."
|
|
28
28
|
echo ""
|
|
29
|
-
open "https://app.hyperspell.com/
|
|
29
|
+
open "https://app.hyperspell.com/api-keys" 2>/dev/null || xdg-open "https://app.hyperspell.com/api-keys" 2>/dev/null || true
|
|
30
30
|
echo " Once you have your API key, paste it below."
|
|
31
31
|
echo ""
|
|
32
32
|
printf " Hyperspell API key: "
|
|
@@ -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 "
|
|
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