claude-code-workflow 6.3.11 → 6.3.13

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 (33) hide show
  1. package/.claude/CLAUDE.md +33 -33
  2. package/.claude/agents/issue-plan-agent.md +77 -5
  3. package/.claude/agents/issue-queue-agent.md +122 -18
  4. package/.claude/commands/issue/execute.md +53 -40
  5. package/.claude/commands/issue/new.md +113 -11
  6. package/.claude/commands/issue/plan.md +112 -37
  7. package/.claude/commands/issue/queue.md +28 -18
  8. package/.claude/skills/software-manual/scripts/assemble_docsify.py +584 -0
  9. package/.claude/skills/software-manual/templates/css/docsify-base.css +984 -0
  10. package/.claude/skills/software-manual/templates/docsify-shell.html +466 -0
  11. package/.claude/workflows/cli-templates/schemas/issues-jsonl-schema.json +141 -168
  12. package/.claude/workflows/cli-templates/schemas/solution-schema.json +3 -2
  13. package/.codex/prompts/issue-execute.md +3 -3
  14. package/.codex/prompts/issue-queue.md +3 -3
  15. package/ccw/dist/commands/issue.d.ts.map +1 -1
  16. package/ccw/dist/commands/issue.js +2 -1
  17. package/ccw/dist/commands/issue.js.map +1 -1
  18. package/ccw/src/commands/issue.ts +2 -1
  19. package/ccw/src/templates/dashboard-css/33-cli-stream-viewer.css +580 -467
  20. package/ccw/src/templates/dashboard-js/components/cli-stream-viewer.js +532 -461
  21. package/ccw/src/templates/dashboard-js/components/notifications.js +774 -774
  22. package/ccw/src/templates/dashboard-js/i18n.js +4 -0
  23. package/ccw/src/templates/dashboard.html +10 -0
  24. package/ccw/src/tools/claude-cli-tools.ts +388 -388
  25. package/codex-lens/src/codexlens/__pycache__/config.cpython-313.pyc +0 -0
  26. package/codex-lens/src/codexlens/config.py +19 -3
  27. package/codex-lens/src/codexlens/search/__pycache__/ranking.cpython-313.pyc +0 -0
  28. package/codex-lens/src/codexlens/search/ranking.py +15 -4
  29. package/codex-lens/src/codexlens/semantic/__pycache__/vector_store.cpython-313.pyc +0 -0
  30. package/codex-lens/src/codexlens/semantic/vector_store.py +57 -47
  31. package/codex-lens/src/codexlens/storage/__pycache__/registry.cpython-313.pyc +0 -0
  32. package/codex-lens/src/codexlens/storage/registry.py +114 -101
  33. package/package.json +83 -83
@@ -1,168 +1,141 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "title": "Issues JSONL Schema",
4
- "description": "Schema for each line in issues.jsonl (flat storage)",
5
- "type": "object",
6
- "required": ["id", "title", "status", "created_at"],
7
- "properties": {
8
- "id": {
9
- "type": "string",
10
- "description": "Issue ID (GH-123, ISS-xxx, DSC-001)"
11
- },
12
- "title": {
13
- "type": "string"
14
- },
15
- "status": {
16
- "type": "string",
17
- "enum": ["registered", "planning", "planned", "queued", "executing", "completed", "failed", "paused"],
18
- "default": "registered"
19
- },
20
- "priority": {
21
- "type": "integer",
22
- "minimum": 1,
23
- "maximum": 5,
24
- "default": 3,
25
- "description": "1=critical, 2=high, 3=medium, 4=low, 5=trivial"
26
- },
27
- "context": {
28
- "type": "string",
29
- "description": "Issue context/description (markdown)"
30
- },
31
- "source": {
32
- "type": "string",
33
- "enum": ["github", "text", "discovery"],
34
- "description": "Source of the issue"
35
- },
36
- "source_url": {
37
- "type": "string",
38
- "description": "Original source URL (for GitHub issues)"
39
- },
40
- "labels": {
41
- "type": "array",
42
- "items": { "type": "string" },
43
- "description": "Issue labels/tags"
44
- },
45
- "discovery_context": {
46
- "type": "object",
47
- "description": "Enriched context from issue:discover (only when source=discovery)",
48
- "properties": {
49
- "discovery_id": {
50
- "type": "string",
51
- "description": "Source discovery session ID"
52
- },
53
- "perspective": {
54
- "type": "string",
55
- "enum": ["bug", "ux", "test", "quality", "security", "performance", "maintainability", "best-practices"]
56
- },
57
- "category": {
58
- "type": "string",
59
- "description": "Finding category (e.g., edge-case, race-condition)"
60
- },
61
- "file": {
62
- "type": "string",
63
- "description": "Primary affected file"
64
- },
65
- "line": {
66
- "type": "integer",
67
- "description": "Line number in primary file"
68
- },
69
- "snippet": {
70
- "type": "string",
71
- "description": "Code snippet showing the issue"
72
- },
73
- "confidence": {
74
- "type": "number",
75
- "minimum": 0,
76
- "maximum": 1,
77
- "description": "Agent confidence score"
78
- },
79
- "suggested_fix": {
80
- "type": "string",
81
- "description": "Suggested remediation from discovery"
82
- }
83
- }
84
- },
85
- "affected_components": {
86
- "type": "array",
87
- "items": { "type": "string" },
88
- "description": "Files/modules affected"
89
- },
90
- "lifecycle_requirements": {
91
- "type": "object",
92
- "properties": {
93
- "test_strategy": {
94
- "type": "string",
95
- "enum": ["unit", "integration", "e2e", "manual", "auto"]
96
- },
97
- "regression_scope": {
98
- "type": "string",
99
- "enum": ["affected", "related", "full"]
100
- },
101
- "acceptance_type": {
102
- "type": "string",
103
- "enum": ["automated", "manual", "both"]
104
- },
105
- "commit_strategy": {
106
- "type": "string",
107
- "enum": ["per-task", "squash", "atomic"]
108
- }
109
- }
110
- },
111
- "bound_solution_id": {
112
- "type": "string",
113
- "description": "ID of the bound solution (null if none bound)"
114
- },
115
- "solution_count": {
116
- "type": "integer",
117
- "default": 0,
118
- "description": "Number of candidate solutions"
119
- },
120
- "created_at": {
121
- "type": "string",
122
- "format": "date-time"
123
- },
124
- "updated_at": {
125
- "type": "string",
126
- "format": "date-time"
127
- },
128
- "planned_at": {
129
- "type": "string",
130
- "format": "date-time"
131
- },
132
- "completed_at": {
133
- "type": "string",
134
- "format": "date-time"
135
- }
136
- },
137
- "examples": [
138
- {
139
- "id": "DSC-001",
140
- "title": "Fix: SQLite connection pool memory leak",
141
- "status": "registered",
142
- "priority": 1,
143
- "context": "Connection pool cleanup only happens when MAX_POOL_SIZE is reached...",
144
- "source": "discovery",
145
- "labels": ["bug", "resource-leak", "critical"],
146
- "discovery_context": {
147
- "discovery_id": "DSC-20251228-182237",
148
- "perspective": "bug",
149
- "category": "resource-leak",
150
- "file": "storage/sqlite_store.py",
151
- "line": 59,
152
- "snippet": "if len(self._pool) >= self.MAX_POOL_SIZE:\n self._cleanup_stale_connections()",
153
- "confidence": 0.85,
154
- "suggested_fix": "Implement periodic cleanup or weak references"
155
- },
156
- "affected_components": ["storage/sqlite_store.py"],
157
- "lifecycle_requirements": {
158
- "test_strategy": "unit",
159
- "regression_scope": "affected",
160
- "acceptance_type": "automated",
161
- "commit_strategy": "per-task"
162
- },
163
- "bound_solution_id": null,
164
- "solution_count": 0,
165
- "created_at": "2025-12-28T18:22:37Z"
166
- }
167
- ]
168
- }
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "Issues JSONL Schema",
4
+ "description": "Schema for each line in issues.jsonl (flat storage)",
5
+ "type": "object",
6
+ "required": ["id", "title", "status", "created_at"],
7
+ "properties": {
8
+ "id": {
9
+ "type": "string",
10
+ "description": "Issue ID (GH-123, ISS-xxx, DSC-001)"
11
+ },
12
+ "title": {
13
+ "type": "string"
14
+ },
15
+ "status": {
16
+ "type": "string",
17
+ "enum": ["registered", "planning", "planned", "queued", "executing", "completed", "failed", "paused"],
18
+ "default": "registered"
19
+ },
20
+ "priority": {
21
+ "type": "integer",
22
+ "minimum": 1,
23
+ "maximum": 5,
24
+ "default": 3,
25
+ "description": "1=critical, 2=high, 3=medium, 4=low, 5=trivial"
26
+ },
27
+ "context": {
28
+ "type": "string",
29
+ "description": "Issue context/description (markdown)"
30
+ },
31
+ "source": {
32
+ "type": "string",
33
+ "enum": ["github", "text", "discovery"],
34
+ "description": "Source of the issue"
35
+ },
36
+ "source_url": {
37
+ "type": "string",
38
+ "description": "Original source URL (for GitHub issues)"
39
+ },
40
+ "labels": {
41
+ "type": "array",
42
+ "items": { "type": "string" },
43
+ "description": "Issue labels/tags"
44
+ },
45
+ "extended_context": {
46
+ "type": "object",
47
+ "description": "Minimal extended context for planning hints",
48
+ "properties": {
49
+ "location": {
50
+ "type": "string",
51
+ "description": "file:line format (e.g., 'src/auth.ts:42')"
52
+ },
53
+ "suggested_fix": {
54
+ "type": "string",
55
+ "description": "Suggested remediation"
56
+ },
57
+ "notes": {
58
+ "type": "string",
59
+ "description": "Additional notes (user clarifications or discovery hints)"
60
+ }
61
+ }
62
+ },
63
+ "affected_components": {
64
+ "type": "array",
65
+ "items": { "type": "string" },
66
+ "description": "Files/modules affected"
67
+ },
68
+ "lifecycle_requirements": {
69
+ "type": "object",
70
+ "properties": {
71
+ "test_strategy": {
72
+ "type": "string",
73
+ "enum": ["unit", "integration", "e2e", "manual", "auto"]
74
+ },
75
+ "regression_scope": {
76
+ "type": "string",
77
+ "enum": ["affected", "related", "full"]
78
+ },
79
+ "acceptance_type": {
80
+ "type": "string",
81
+ "enum": ["automated", "manual", "both"]
82
+ },
83
+ "commit_strategy": {
84
+ "type": "string",
85
+ "enum": ["per-task", "squash", "atomic"]
86
+ }
87
+ }
88
+ },
89
+ "bound_solution_id": {
90
+ "type": "string",
91
+ "description": "ID of the bound solution (null if none bound)"
92
+ },
93
+ "solution_count": {
94
+ "type": "integer",
95
+ "default": 0,
96
+ "description": "Number of candidate solutions"
97
+ },
98
+ "created_at": {
99
+ "type": "string",
100
+ "format": "date-time"
101
+ },
102
+ "updated_at": {
103
+ "type": "string",
104
+ "format": "date-time"
105
+ },
106
+ "planned_at": {
107
+ "type": "string",
108
+ "format": "date-time"
109
+ },
110
+ "completed_at": {
111
+ "type": "string",
112
+ "format": "date-time"
113
+ }
114
+ },
115
+ "examples": [
116
+ {
117
+ "id": "DSC-001",
118
+ "title": "Fix: SQLite connection pool memory leak",
119
+ "status": "registered",
120
+ "priority": 1,
121
+ "context": "Connection pool cleanup only happens when MAX_POOL_SIZE is reached...",
122
+ "source": "discovery",
123
+ "labels": ["bug", "resource-leak", "critical"],
124
+ "extended_context": {
125
+ "location": "storage/sqlite_store.py:59",
126
+ "suggested_fix": "Implement periodic cleanup or weak references",
127
+ "notes": null
128
+ },
129
+ "affected_components": ["storage/sqlite_store.py"],
130
+ "lifecycle_requirements": {
131
+ "test_strategy": "unit",
132
+ "regression_scope": "affected",
133
+ "acceptance_type": "automated",
134
+ "commit_strategy": "per-task"
135
+ },
136
+ "bound_solution_id": null,
137
+ "solution_count": 0,
138
+ "created_at": "2025-12-28T18:22:37Z"
139
+ }
140
+ ]
141
+ }
@@ -7,8 +7,9 @@
7
7
  "properties": {
8
8
  "id": {
9
9
  "type": "string",
10
- "description": "Unique solution identifier",
11
- "pattern": "^SOL-[0-9]+$"
10
+ "description": "Unique solution identifier: SOL-{issue-id}-{seq}",
11
+ "pattern": "^SOL-.+-[0-9]+$",
12
+ "examples": ["SOL-GH-123-1", "SOL-ISS-20251229-1"]
12
13
  },
13
14
  "description": {
14
15
  "type": "string",
@@ -40,7 +40,7 @@ ccw issue next
40
40
  This returns JSON with the full solution definition:
41
41
  - `item_id`: Solution identifier in queue (e.g., "S-1")
42
42
  - `issue_id`: Parent issue ID (e.g., "ISS-20251227-001")
43
- - `solution_id`: Solution ID (e.g., "SOL-20251227-001")
43
+ - `solution_id`: Solution ID (e.g., "SOL-ISS-20251227-001-1")
44
44
  - `solution`: Full solution with all tasks
45
45
  - `execution_hints`: Timing and executor hints
46
46
 
@@ -54,10 +54,10 @@ Expected solution structure:
54
54
  {
55
55
  "item_id": "S-1",
56
56
  "issue_id": "ISS-20251227-001",
57
- "solution_id": "SOL-20251227-001",
57
+ "solution_id": "SOL-ISS-20251227-001-1",
58
58
  "status": "pending",
59
59
  "solution": {
60
- "id": "SOL-20251227-001",
60
+ "id": "SOL-ISS-20251227-001-1",
61
61
  "description": "Description of solution approach",
62
62
  "tasks": [
63
63
  {
@@ -78,8 +78,8 @@ Build a file → solutions mapping:
78
78
 
79
79
  ```javascript
80
80
  fileModifications = {
81
- "src/auth.ts": ["SOL-001", "SOL-003"],
82
- "src/api.ts": ["SOL-002"]
81
+ "src/auth.ts": ["SOL-ISS-001-1", "SOL-ISS-003-1"],
82
+ "src/api.ts": ["SOL-ISS-002-1"]
83
83
  }
84
84
  ```
85
85
 
@@ -129,7 +129,7 @@ Group assignment:
129
129
  {
130
130
  "item_id": "S-1",
131
131
  "issue_id": "ISS-001",
132
- "solution_id": "SOL-001",
132
+ "solution_id": "SOL-ISS-001-1",
133
133
  "status": "pending",
134
134
  "execution_order": 1,
135
135
  "execution_group": "P1",
@@ -1 +1 @@
1
- {"version":3,"file":"issue.d.ts","sourceRoot":"","sources":["../../src/commands/issue.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAiKH,UAAU,YAAY;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,GAAG,CAAC,EAAE,OAAO,CAAC;CACf;AAm0CD,wBAAsB,YAAY,CAChC,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,EACvB,OAAO,EAAE,YAAY,GACpB,OAAO,CAAC,IAAI,CAAC,CA0Ff"}
1
+ {"version":3,"file":"issue.d.ts","sourceRoot":"","sources":["../../src/commands/issue.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAiKH,UAAU,YAAY;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,GAAG,CAAC,EAAE,OAAO,CAAC;CACf;AAo0CD,wBAAsB,YAAY,CAChC,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,EACvB,OAAO,EAAE,YAAY,GACpB,OAAO,CAAC,IAAI,CAAC,CA0Ff"}
@@ -775,7 +775,8 @@ async function queueAction(subAction, issueId, options) {
775
775
  // Archive current queue
776
776
  if (subAction === 'archive') {
777
777
  const queue = readActiveQueue();
778
- if (!queue.id || queue.tasks.length === 0) {
778
+ const items = queue.solutions || queue.tasks || [];
779
+ if (!queue.id || items.length === 0) {
779
780
  console.log(chalk.yellow('No active queue to archive'));
780
781
  return;
781
782
  }