cc-workspace 4.5.0 → 4.5.1

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.
Files changed (2) hide show
  1. package/README.md +38 -6
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -74,7 +74,8 @@ Updates all components if the package version is newer:
74
74
  ### Diagnostic
75
75
 
76
76
  ```bash
77
- npx cc-workspace doctor
77
+ npx cc-workspace doctor # from terminal
78
+ /doctor # from inside a Claude Code session
78
79
  ```
79
80
 
80
81
  Checks: installed version, skills, rules, agents, hooks, jq, orchestrator/ structure.
@@ -157,14 +158,22 @@ In `workspace.md`, add the `Source Branch` column to the service map:
157
158
  3. Teammates receive the session branch in their spawn prompt — they do NOT create their own branches
158
159
  4. PRs go from `session/{name}` → `source_branch` (never to main directly)
159
160
 
160
- ### Session CLI commands
161
+ ### Session commands
161
162
 
163
+ From terminal (CLI):
162
164
  ```bash
163
165
  cc-workspace session list # show active sessions + branches
164
166
  cc-workspace session status feature-auth # commits per repo on session branch
165
167
  cc-workspace session close feature-auth # interactive: create PRs, delete branches, clean up
166
168
  ```
167
169
 
170
+ From inside a Claude Code session (slash commands):
171
+ ```
172
+ /session # list active sessions
173
+ /session status feature-auth # commits per repo
174
+ /session close feature-auth # interactive close
175
+ ```
176
+
168
177
  `session close` asks for confirmation before every action (PR creation, branch deletion, JSON cleanup).
169
178
 
170
179
  ### Parallel workflow
@@ -299,6 +308,23 @@ All hooks in settings.json are **non-blocking** (exit 0 + warning). No hook bloc
299
308
 
300
309
  ---
301
310
 
311
+ ## Slash commands (in-session)
312
+
313
+ These skills can be invoked directly from a Claude Code session, replacing the CLI for common operations.
314
+
315
+ | Command | CLI equivalent | What it does |
316
+ |---------|---------------|--------------|
317
+ | `/session` | `cc-workspace session list` | List active sessions with branches and commit counts |
318
+ | `/session status X` | `cc-workspace session status X` | Detailed session view: commits, files changed |
319
+ | `/session close X` | `cc-workspace session close X` | Interactive: create PRs, delete branches, cleanup |
320
+ | `/doctor` | `cc-workspace doctor` | Full diagnostic of workspace installation |
321
+ | `/cleanup` | _(no CLI equivalent)_ | Remove orphan worktrees, stale sessions, dangling containers |
322
+
323
+ > These slash commands use `context: fork` — they don't pollute the orchestrator's context.
324
+ > The CLI commands (`npx cc-workspace ...`) remain available for terminal use outside sessions.
325
+
326
+ ---
327
+
302
328
  ## The 3 templates
303
329
 
304
330
  | Template | Usage |
@@ -345,6 +371,8 @@ in every teammate spawn prompt (teammates don't receive it automatically).
345
371
 
346
372
  - `claude --resume` resumes the session with the team-lead agent
347
373
  - The SessionStart hook automatically injects active plans
374
+ - Orphan worktrees in `/tmp/` are cleaned up automatically at session start
375
+ - Run `/cleanup` to manually purge stale worktrees, sessions, and containers
348
376
  - The markdown plan on disk is the source of truth
349
377
 
350
378
  | Emoji | Status |
@@ -353,6 +381,7 @@ in every teammate spawn prompt (teammates don't receive it automatically).
353
381
  | 🔄 | IN PROGRESS |
354
382
  | ✅ | DONE |
355
383
  | ❌ | BLOCKED/FAILED |
384
+ | ❌ ESCALATED | Failed 2+ times, wave stopped, waiting for user |
356
385
 
357
386
  ---
358
387
 
@@ -363,7 +392,7 @@ The package uses semver. The installed version is tracked in `~/.claude/.orchest
363
392
  ```bash
364
393
  npx cc-workspace version # shows package and installed versions
365
394
  npx cc-workspace update # updates if newer version
366
- npx cc-workspace doctor # full diagnostic
395
+ npx cc-workspace doctor # full diagnostic (or /doctor in-session)
367
396
  ```
368
397
 
369
398
  On each `init` or `update`, the CLI compares versions:
@@ -406,8 +435,11 @@ cc-workspace/
406
435
  │ ├── container-strategies.md
407
436
  │ ├── test-frameworks.md
408
437
  │ └── scenario-extraction.md
409
- ├── hooks/ <- 11 scripts (warning-only)
410
- ├── rules/ <- 3 rules
438
+ ├── session/SKILL.md <- /session slash command
439
+ ├── doctor/SKILL.md <- /doctor slash command
440
+ ├── cleanup/SKILL.md <- /cleanup slash command
441
+ ├── hooks/ <- 9 scripts (warning-only)
442
+ ├── rules/ <- 2 rules
411
443
  └── agents/ <- 4 agents (team-lead, implementer, workspace-init, e2e-validator)
412
444
  ```
413
445
 
@@ -417,7 +449,7 @@ cc-workspace/
417
449
 
418
450
  Both `init` and `update` are safe to re-run:
419
451
  - **Never overwritten**: `workspace.md`, `constitution.md`, `plans/*.md`, `e2e/` (user content)
420
- - **Always regenerated**: `settings.json`, `block-orchestrator-writes.sh` (security), `CLAUDE.md`, `_TEMPLATE.md`
452
+ - **Always regenerated**: `settings.json`, `CLAUDE.md`, `_TEMPLATE.md`
421
453
  - **Always copied**: hooks, templates
422
454
  - **Always regenerated on init**: `service-profiles.md` (fresh scan)
423
455
  - **Global components**: only updated if the version is newer (or `--force`)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-workspace",
3
- "version": "4.5.0",
3
+ "version": "4.5.1",
4
4
  "description": "Claude Code multi-workspace orchestrator — skills, hooks, agents, and templates for multi-service projects",
5
5
  "bin": {
6
6
  "cc-workspace": "./bin/cli.js"