getmosaic 0.1.0 → 0.1.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/bin/mosaic.sh CHANGED
@@ -18,6 +18,49 @@ case "$COMMAND" in
18
18
  setup)
19
19
  sh "$(dirname "$0")/../install.sh"
20
20
  ;;
21
+ configure)
22
+ ENV_FILE="$HOME/.openclaw/.env"
23
+ echo ""
24
+ echo " Welcome to Mosaic!"
25
+ echo ""
26
+ echo " Step 1 — Create a Hyperspell account and generate an API key."
27
+ echo " Opening https://app.hyperspell.ai/api-keys in your browser..."
28
+ echo ""
29
+ open "https://app.hyperspell.com/dashboard" 2>/dev/null || xdg-open "https://app.hyperspell.com/dashboard" 2>/dev/null || true
30
+ echo " Once you have your API key, paste it below."
31
+ echo ""
32
+ printf " Hyperspell API key: "
33
+ read -r HS_API_KEY
34
+ [ -z "$HS_API_KEY" ] && echo "API key cannot be empty." && exit 1
35
+
36
+ printf " Your email (used as your Hyperspell user ID): "
37
+ read -r HS_USER_ID
38
+ [ -z "$HS_USER_ID" ] && echo "Email cannot be empty." && exit 1
39
+
40
+ grep -v "^HYPERSPELL_API_KEY=" "$ENV_FILE" | grep -v "^HYPERSPELL_USER_ID=" > "$ENV_FILE.tmp" && mv "$ENV_FILE.tmp" "$ENV_FILE"
41
+ echo "HYPERSPELL_API_KEY=$HS_API_KEY" >> "$ENV_FILE"
42
+ echo "HYPERSPELL_USER_ID=$HS_USER_ID" >> "$ENV_FILE"
43
+
44
+ echo ""
45
+ echo " ✓ Hyperspell connected!"
46
+ echo ""
47
+ echo " Step 2 — Connect your Slack workspace."
48
+ echo " Opening https://connect-agg111s-projects.vercel.app in your browser..."
49
+ echo ""
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:"
52
+ echo ""
53
+ echo " mosaic start"
54
+ echo ""
55
+ ;;
56
+ set-slack-token)
57
+ BOT_TOKEN="${2:-}"
58
+ [ -z "$BOT_TOKEN" ] && echo "Usage: mosaic set-slack-token <xoxb-...>" && exit 1
59
+ ENV_FILE="$HOME/.openclaw/.env"
60
+ grep -v "^SLACK_BOT_TOKEN=" "$ENV_FILE" > "$ENV_FILE.tmp" && mv "$ENV_FILE.tmp" "$ENV_FILE"
61
+ echo "SLACK_BOT_TOKEN=$BOT_TOKEN" >> "$ENV_FILE"
62
+ echo "✓ Slack token saved. Run: mosaic stop && mosaic start"
63
+ ;;
21
64
  plugins)
22
65
  openclaw plugins list
23
66
  ;;
@@ -28,6 +71,7 @@ case "$COMMAND" in
28
71
  echo " Usage: mosaic <command>"
29
72
  echo ""
30
73
  echo " Commands:"
74
+ echo " configure Set up Hyperspell API key"
31
75
  echo " start Start Mosaic"
32
76
  echo " stop Stop Mosaic"
33
77
  echo " status Show connected channels and status"
@@ -3,6 +3,7 @@ export interface MosaicConfig {
3
3
  hyperspellUserId: string;
4
4
  tavilyApiKey?: string;
5
5
  anthropicApiKey?: string;
6
+ slackAppToken?: string;
6
7
  }
7
8
  export declare function setConfig(config: MosaicConfig): void;
8
9
  export declare function getConfig(): MosaicConfig;
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAID,wBAAgB,SAAS,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI,CAEpD;AAED,wBAAgB,SAAS,IAAI,YAAY,CAKxC"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAID,wBAAgB,SAAS,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI,CAEpD;AAED,wBAAgB,SAAS,IAAI,YAAY,CAKxC"}
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAOA,IAAI,OAAO,GAAwB,IAAI,CAAC;AAExC,MAAM,UAAU,SAAS,CAAC,MAAoB;IAC5C,OAAO,GAAG,MAAM,CAAC;AACnB,CAAC;AAED,MAAM,UAAU,SAAS;IACvB,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CAAC,uEAAuE,CAAC,CAAC;IAC3F,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC"}
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAQA,IAAI,OAAO,GAAwB,IAAI,CAAC;AAExC,MAAM,UAAU,SAAS,CAAC,MAAoB;IAC5C,OAAO,GAAG,MAAM,CAAC;AACnB,CAAC;AAED,MAAM,UAAU,SAAS;IACvB,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CAAC,uEAAuE,CAAC,CAAC;IAC3F,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC"}
package/install.sh CHANGED
@@ -52,8 +52,8 @@ if command -v mosaic >/dev/null 2>&1 && openclaw plugins list 2>/dev/null | grep
52
52
  skip "Mosaic"
53
53
  else
54
54
  print "\nInstalling Mosaic..."
55
- npm install -g mosaic --silent 2>/dev/null || npm install -g mosaic --ignore-scripts --silent
56
- PLUGIN_PATH="$(npm root -g)/mosaic"
55
+ npm install -g getmosaic --silent 2>/dev/null || npm install -g getmosaic --ignore-scripts --silent
56
+ PLUGIN_PATH="$(npm root -g)/getmosaic"
57
57
  openclaw plugins install "$PLUGIN_PATH" 2>/dev/null || true
58
58
  success "Mosaic installed"
59
59
  fi
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "getmosaic",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
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",
@@ -21,9 +21,17 @@
21
21
  "prepare": "tsc"
22
22
  },
23
23
  "openclaw": {
24
- "extensions": ["./dist/index.js"]
24
+ "extensions": [
25
+ "./dist/index.js"
26
+ ]
25
27
  },
26
- "keywords": ["openclaw", "plugin", "market-intelligence", "hyperspell", "ai-agent"],
28
+ "keywords": [
29
+ "openclaw",
30
+ "plugin",
31
+ "market-intelligence",
32
+ "hyperspell",
33
+ "ai-agent"
34
+ ],
27
35
  "dependencies": {
28
36
  "@anthropic-ai/sdk": "^0.80.0",
29
37
  "@sinclair/typebox": "^0.34.0",