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
+9 -3
View File
@@ -67,9 +67,9 @@ importers:
'@modelcontextprotocol/sdk':
specifier: ^1.25.2
version: 1.25.2(@cfworker/json-schema@4.1.1)(hono@4.10.6)(zod@4.3.5)
cac:
specifier: ^6.7.14
version: 6.7.14
'@xmorse/cac':
specifier: ^6.0.7
version: 6.0.7
diff:
specifier: ^8.0.2
version: 8.0.2
@@ -2443,6 +2443,10 @@ packages:
'@vitest/utils@4.0.8':
resolution: {integrity: sha512-pdk2phO5NDvEFfUTxcTP8RFYjVj/kfLSPIN5ebP2Mu9kcIMeAQTbknqcFEyBcC4z2pJlJI9aS5UQjcYfhmKAow==}
'@xmorse/cac@6.0.7':
resolution: {integrity: sha512-eCKgJIn0Yswt4JreHNXUslyuOe8amDK6gE+wVgG8/Tu1HmCxuxAUOGPQRoma4mFO77759/YYE5opAbmaU6+Gxg==}
engines: {node: '>=8'}
'@xmorse/deployment-utils@0.7.2':
resolution: {integrity: sha512-iRnHKcuPHK1dGHH+HqWJrPbodeR0mlnmS6yhC0nS5rLkxlgoqq6UK0Xv2/6fL0uLZGoUhopXimaFs1GbYrLH2g==}
@@ -7691,6 +7695,8 @@ snapshots:
'@vitest/pretty-format': 4.0.8
tinyrainbow: 3.0.3
'@xmorse/cac@6.0.7': {}
'@xmorse/deployment-utils@0.7.2(@types/node@25.0.3)(jiti@2.6.1)(lightningcss@1.30.2)(tsx@4.20.6)':
dependencies:
'@actions/cache': 3.3.0