mt-signals 1.0.0 → 1.1.0

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/README.md ADDED
@@ -0,0 +1,88 @@
1
+ # mt-signals
2
+
3
+ CLI for [MetalTorque Research Signals](https://signals.metaltorque.dev) — scored trend intelligence from HN, Reddit, ArXiv, and GitHub.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npx mt-signals signals # Run without installing
9
+ npm i -g mt-signals # Or install globally
10
+ ```
11
+
12
+ ## Quick Start
13
+
14
+ ```bash
15
+ # List all scored signals
16
+ mt-signals signals
17
+
18
+ # Top 5 hottest signals
19
+ mt-signals top 5
20
+
21
+ # Breakout trends + hot signals (score 6+)
22
+ mt-signals trending
23
+
24
+ # Deep dive on a topic
25
+ mt-signals lookup "MCP server"
26
+
27
+ # Filter by category
28
+ mt-signals signals --category=ai
29
+ ```
30
+
31
+ ## Commands
32
+
33
+ ### Discovery
34
+ | Command | Description |
35
+ |---------|-------------|
36
+ | `signals` | List all scored signals (filterable by category, sort, min score) |
37
+ | `top [N]` | Top N signals ranked by score (default: 10) |
38
+ | `trending` | Breakout signals (1.8x+ rolling avg) and hot signals (score 6+) |
39
+
40
+ ### Analysis
41
+ | Command | Description |
42
+ |---------|-------------|
43
+ | `lookup <topic>` | Deep dive — score breakdown, evidence, trend history, actionable-for audience |
44
+ | `category <name>` | All signals in a category (ai, infrastructure, security, devtools, data, business, career, market) |
45
+ | `stats` | Aggregate stats — total signals, category breakdown, top 10 |
46
+
47
+ ### Management
48
+ | Command | Description |
49
+ |---------|-------------|
50
+ | `recalculate` | Force score recalculation (applies time decay, detects new breakouts) |
51
+ | `config` | View current configuration |
52
+ | `config set <key> <value>` | Set config value (keys: `url`, `apiKey`) |
53
+
54
+ ## Agent / CI Usage
55
+
56
+ Every command supports `--json`:
57
+
58
+ ```bash
59
+ # JSON output for scripting
60
+ mt-signals top 10 --json | jq '.[0].topic'
61
+
62
+ # Pipe trending breakouts to another tool
63
+ mt-signals trending --json | jq '.breakouts'
64
+
65
+ # Filter high-score AI signals
66
+ mt-signals signals --category=ai --min=7 --json
67
+ ```
68
+
69
+ ## Options
70
+
71
+ | Flag | Description |
72
+ |------|-------------|
73
+ | `--json` | Output raw JSON (for piping/agents) |
74
+ | `--category=X` | Filter: ai, infrastructure, security, devtools, data, business, career, market |
75
+ | `--sort=X` | Sort: score, urgency, buyer_intent, durability |
76
+ | `--min=N` | Minimum score filter |
77
+ | `--limit=N` | Max results |
78
+ | `--version` | Print version |
79
+
80
+ ## Environment Variables
81
+
82
+ | Variable | Description |
83
+ |----------|-------------|
84
+ | `MT_SIGNALS_API_KEY` | Access key for the API (overrides saved config) |
85
+ | `MT_SIGNALS_URL` | Server URL (default: `https://signals.metaltorque.dev`) |
86
+ | `NO_COLOR` | Disable colored output |
87
+
88
+ Configuration is stored in `~/.mt-signals/config.json`.
package/bin/mt-signals.js CHANGED
@@ -18,6 +18,12 @@ for (const a of args) {
18
18
  const cmd = positional[0];
19
19
  const json = flags.json;
20
20
 
21
+ if (flags.version || flags.v) {
22
+ const { version } = require("../package.json");
23
+ console.log(version);
24
+ process.exit(0);
25
+ }
26
+
21
27
  function out(data) {
22
28
  if (json) return console.log(JSON.stringify(data, null, 2));
23
29
  return data;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mt-signals",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "CLI for MetalTorque Research Signals — scored trend intelligence from HN, Reddit, ArXiv, and GitHub.",
5
5
  "bin": {
6
6
  "mt-signals": "bin/mt-signals.js"