feat: add session management CLI commands with @xmorse/cac

- Replace cac with @xmorse/cac for space-separated commands
- Add 'playwriter session new' to get new session ID
- Add 'playwriter session list' to show sessions and state keys
- Add 'playwriter session reset <id>' to reset a session
- Update SKILL.md with new CLI docs and multiline examples
- Put -s flag before -e in all examples
This commit is contained in:
Tommy D. Rossi
2026-01-24 12:57:21 +01:00
parent b7edfb52b1
commit 1af5aac0cc
5 changed files with 147 additions and 48 deletions
+2 -1
View File
@@ -10,6 +10,7 @@
"build": "rm -rf dist *.tsbuildinfo && mkdir dist && bun scripts/build-selector-generator.ts && bun scripts/build-bippy.ts && tsc && bun scripts/build-resources.ts",
"prepublishOnly": "pnpm build",
"watch": "tsc -w",
"cli": "vite-node src/cli.ts",
"typecheck": "tsc --noEmit",
"mcp": "vite-node src/mcp.ts",
"test": "vitest run -u",
@@ -43,7 +44,7 @@
"@hono/node-server": "^1.19.6",
"@hono/node-ws": "^1.2.0",
"@modelcontextprotocol/sdk": "^1.25.2",
"cac": "^6.7.14",
"@xmorse/cac": "^6.0.7",
"diff": "^8.0.2",
"hono": "^4.10.6",
"kill-port-process": "^3.2.1",