wake-agents 0.1.0 → 0.2.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 +1 -0
- package/lib/cli.mjs +19 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -47,6 +47,7 @@ Every report takes `--window 24h|7d|30d` (default `7d`) and `--json` (raw API re
|
|
|
47
47
|
| `wake listing plan` | ask the desk to (re)plan the listing steps | `wake listing plan` |
|
|
48
48
|
| `wake benchmarks` | your numbers against the cohort medians (withheld while the cohort is small) | `wake benchmarks` |
|
|
49
49
|
| `wake install` | collector status; `--kit --out <dir>` writes `cloudflare-worker.js`, `express.js`, `nextjs-middleware.js`, `README.md` | `wake install --kit --out ./wake-kit` |
|
|
50
|
+
| `wake playbook` | deep-scans the site and writes `wake-playbook.md`: every change for agents and the collector, with exact files and a curl per task, for Claude Code / Cursor / Codex; `--prompt` prints the one-line prompt | `wake playbook --out wake-playbook.md` |
|
|
50
51
|
| `wake export sessions.csv` | sessions as CSV (stdout, or `--out file`) | `wake export sessions --out sessions.csv` |
|
|
51
52
|
|
|
52
53
|
Exit code is `1` on any API error, with a one-line message on stderr (`Not signed in. Run: wake login`, `Site not verified yet…`, `Rate limited…`).
|
package/lib/cli.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import * as f from "./format.mjs";
|
|
|
8
8
|
|
|
9
9
|
export const VERSION = "0.1.0";
|
|
10
10
|
const WINDOWS = new Set(["24h", "7d", "30d"]);
|
|
11
|
-
const BOOL_FLAGS = new Set(["json", "kit", "write", "show-key", "help", "version", "plan"]);
|
|
11
|
+
const BOOL_FLAGS = new Set(["json", "kit", "write", "show-key", "help", "version", "plan", "prompt"]);
|
|
12
12
|
|
|
13
13
|
const out = (s = "") => process.stdout.write(s + "\n");
|
|
14
14
|
const err = (s = "") => process.stderr.write(s + "\n");
|
|
@@ -52,6 +52,7 @@ Reports (all accept --window 24h|7d|30d and --json)
|
|
|
52
52
|
listing AEO listing plan; "wake listing plan" asks the desk to plan it
|
|
53
53
|
benchmarks How your numbers compare to the cohort
|
|
54
54
|
install Collector status; --kit --out <dir> writes the install kit
|
|
55
|
+
playbook Deep-scan the site and write wake-playbook.md for your coding agent [--out file] [--prompt]
|
|
55
56
|
export sessions.csv [--out file] Download sessions as CSV
|
|
56
57
|
|
|
57
58
|
Agents / MCP
|
|
@@ -387,6 +388,22 @@ async function install({ flags }) {
|
|
|
387
388
|
return 0;
|
|
388
389
|
}
|
|
389
390
|
|
|
391
|
+
async function playbook({ flags }) {
|
|
392
|
+
const { api } = clientFor(flags);
|
|
393
|
+
const d = await api.get("/playbook", {});
|
|
394
|
+
if (flags.json) { out(JSON.stringify(d, null, 2)); return 0; }
|
|
395
|
+
if (flags.prompt) { out(d.prompt); return 0; }
|
|
396
|
+
const file = path.resolve(flags.out || "./wake-playbook.md");
|
|
397
|
+
fs.writeFileSync(file, d.markdown);
|
|
398
|
+
out(f.heading(`${d.host} — playbook written to ${file}`));
|
|
399
|
+
out(f.kv([["tasks", String(d.tasks?.length || 0)], ["secrets inside", d.has_secrets ? f.yellow("yes (ingest key): keep it out of public repos") : "no (placeholders until ownership is verified)"]]));
|
|
400
|
+
for (const t of d.tasks || []) out(` ${t.n}. ${t.title}`);
|
|
401
|
+
out("");
|
|
402
|
+
out("Next: open the repository with Claude Code / Cursor / Codex and paste:");
|
|
403
|
+
out(` ${d.prompt}`);
|
|
404
|
+
return 0;
|
|
405
|
+
}
|
|
406
|
+
|
|
390
407
|
async function exportCmd({ flags, args }) {
|
|
391
408
|
// Accepts "export sessions --out x.csv", "export sessions.csv", "export sessions.csv --out x.csv".
|
|
392
409
|
const what = (args[0] || "sessions").replace(/\.csv$/, "");
|
|
@@ -520,5 +537,5 @@ const yn = (v) => (v ? f.green("yes") : f.yellow("no"));
|
|
|
520
537
|
|
|
521
538
|
const COMMANDS = {
|
|
522
539
|
login, logout, status, overview, agents, sessions, funnel, friction, fixes, pages, alerts, series,
|
|
523
|
-
readiness, listing, benchmarks, install, export: exportCmd, mcp, connect,
|
|
540
|
+
readiness, listing, benchmarks, install, playbook, export: exportCmd, mcp, connect,
|
|
524
541
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wake-agents",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Wake CLI: see which AI agents reach your site, where they get stuck, and what to fix. Also a stdio MCP bridge for Claude Desktop and other MCP clients.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|