blackops-onboard 0.1.0 → 0.3.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 +5 -5
- package/bin/onboard.mjs +6 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
Agent-first onboarding for [BlackOps Center](https://blackopscenter.com).
|
|
4
4
|
|
|
5
|
+
**The whole flow:**
|
|
6
|
+
|
|
5
7
|
```bash
|
|
6
8
|
npx blackops-onboard
|
|
7
9
|
```
|
|
8
10
|
|
|
9
|
-
|
|
11
|
+
Then open Claude Code and say:
|
|
10
12
|
|
|
11
|
-
|
|
12
|
-
2. Adds a `blackops` MCP server entry to your Claude Code settings (`~/.claude/settings.json`).
|
|
13
|
-
3. Prints a prompt to paste into Claude Code.
|
|
13
|
+
> Help me onboard to BlackOps Center and publish my first piece of content.
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
That's it. The agent walks you through account creation, brand voice, social OAuth (X / Threads / LinkedIn), publishing your first four pieces of content, and getting a magic link to your dashboard.
|
|
16
16
|
|
|
17
17
|
## Re-running
|
|
18
18
|
|
package/bin/onboard.mjs
CHANGED
|
@@ -15,7 +15,7 @@ import path from 'node:path'
|
|
|
15
15
|
import os from 'node:os'
|
|
16
16
|
import readline from 'node:readline/promises'
|
|
17
17
|
|
|
18
|
-
const VERSION = '0.
|
|
18
|
+
const VERSION = '0.3.0'
|
|
19
19
|
const INSTALL_URL = process.env.BLACKOPS_INSTALL_URL || 'https://blackopscenter.com/api/install'
|
|
20
20
|
const CONFIG_DIR = path.join(os.homedir(), '.blackops')
|
|
21
21
|
const CONFIG_PATH = path.join(CONFIG_DIR, 'config.json')
|
|
@@ -161,11 +161,13 @@ async function main() {
|
|
|
161
161
|
log(JSON.stringify({ [config.mcp_server_name]: { type: 'http', url: config.mcp_url, headers: { Authorization: `Bearer ${config.token}` } } }, null, 2))
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
-
// 4.
|
|
164
|
+
// 4. Tell the user the one thing to say next. Single line, copy-pasteable.
|
|
165
165
|
log()
|
|
166
|
-
log(`${
|
|
166
|
+
log(`${GREEN}✓${RESET} Installed.`)
|
|
167
167
|
log()
|
|
168
|
-
log(
|
|
168
|
+
log(`Open ${BOLD}Claude Code${RESET} and say:`)
|
|
169
|
+
log()
|
|
170
|
+
log(` ${CYAN}${config.prompt}${RESET}`)
|
|
169
171
|
log()
|
|
170
172
|
log(`${DIM}Token expires: ${config.expires_at}${RESET}`)
|
|
171
173
|
}
|
package/package.json
CHANGED