claude-code-workflow 6.3.13 → 6.3.15
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/.claude/agents/issue-plan-agent.md +57 -103
- package/.claude/agents/issue-queue-agent.md +69 -120
- package/.claude/commands/issue/new.md +217 -473
- package/.claude/commands/issue/plan.md +76 -154
- package/.claude/commands/issue/queue.md +208 -259
- package/.claude/skills/issue-manage/SKILL.md +63 -22
- package/.claude/workflows/cli-templates/schemas/discovery-finding-schema.json +3 -3
- package/.claude/workflows/cli-templates/schemas/issues-jsonl-schema.json +3 -3
- package/.claude/workflows/cli-templates/schemas/queue-schema.json +0 -5
- package/.codex/prompts/issue-plan.md +16 -19
- package/.codex/prompts/issue-queue.md +0 -1
- package/README.md +1 -0
- package/ccw/dist/cli.d.ts.map +1 -1
- package/ccw/dist/cli.js +3 -1
- package/ccw/dist/cli.js.map +1 -1
- package/ccw/dist/commands/cli.d.ts.map +1 -1
- package/ccw/dist/commands/cli.js +45 -3
- package/ccw/dist/commands/cli.js.map +1 -1
- package/ccw/dist/commands/issue.d.ts +3 -1
- package/ccw/dist/commands/issue.d.ts.map +1 -1
- package/ccw/dist/commands/issue.js +383 -30
- package/ccw/dist/commands/issue.js.map +1 -1
- package/ccw/dist/core/routes/issue-routes.d.ts.map +1 -1
- package/ccw/dist/core/routes/issue-routes.js +77 -16
- package/ccw/dist/core/routes/issue-routes.js.map +1 -1
- package/ccw/dist/tools/cli-executor.d.ts.map +1 -1
- package/ccw/dist/tools/cli-executor.js +117 -4
- package/ccw/dist/tools/cli-executor.js.map +1 -1
- package/ccw/dist/tools/litellm-executor.d.ts +4 -0
- package/ccw/dist/tools/litellm-executor.d.ts.map +1 -1
- package/ccw/dist/tools/litellm-executor.js +54 -1
- package/ccw/dist/tools/litellm-executor.js.map +1 -1
- package/ccw/dist/tools/ui-generate-preview.d.ts +18 -0
- package/ccw/dist/tools/ui-generate-preview.d.ts.map +1 -1
- package/ccw/dist/tools/ui-generate-preview.js +26 -10
- package/ccw/dist/tools/ui-generate-preview.js.map +1 -1
- package/ccw/src/cli.ts +3 -1
- package/ccw/src/commands/cli.ts +47 -3
- package/ccw/src/commands/issue.ts +442 -34
- package/ccw/src/core/routes/issue-routes.ts +82 -16
- package/ccw/src/tools/cli-executor.ts +125 -4
- package/ccw/src/tools/litellm-executor.ts +107 -24
- package/ccw/src/tools/ui-generate-preview.js +60 -37
- package/codex-lens/src/codexlens/__pycache__/config.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/__pycache__/entities.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/config.py +25 -2
- package/codex-lens/src/codexlens/entities.py +5 -1
- package/codex-lens/src/codexlens/indexing/__pycache__/symbol_extractor.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/indexing/symbol_extractor.py +243 -243
- package/codex-lens/src/codexlens/parsers/__pycache__/factory.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/parsers/__pycache__/treesitter_parser.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/parsers/factory.py +256 -256
- package/codex-lens/src/codexlens/parsers/treesitter_parser.py +335 -335
- package/codex-lens/src/codexlens/search/__pycache__/chain_search.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/search/__pycache__/hybrid_search.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/search/__pycache__/ranking.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/search/chain_search.py +30 -1
- package/codex-lens/src/codexlens/semantic/__pycache__/__init__.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/semantic/__pycache__/embedder.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/semantic/__pycache__/reranker.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/semantic/__pycache__/vector_store.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/semantic/embedder.py +6 -9
- package/codex-lens/src/codexlens/semantic/vector_store.py +271 -200
- package/codex-lens/src/codexlens/storage/__pycache__/dir_index.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/storage/__pycache__/index_tree.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/storage/__pycache__/sqlite_store.cpython-313.pyc +0 -0
- package/codex-lens/src/codexlens/storage/sqlite_store.py +184 -108
- package/package.json +6 -1
- package/.claude/commands/issue/manage.md +0 -113
|
@@ -246,8 +246,14 @@ function generatePreviewMd(metadata) {
|
|
|
246
246
|
/**
|
|
247
247
|
* Main execute function
|
|
248
248
|
*/
|
|
249
|
-
async function execute(params) {
|
|
250
|
-
const {
|
|
249
|
+
async function execute(params) {
|
|
250
|
+
const {
|
|
251
|
+
prototypesDir = '.',
|
|
252
|
+
template: templatePath,
|
|
253
|
+
runId: runIdParam,
|
|
254
|
+
sessionId: sessionIdParam,
|
|
255
|
+
timestamp: timestampParam,
|
|
256
|
+
} = params;
|
|
251
257
|
|
|
252
258
|
const targetPath = resolve(process.cwd(), prototypesDir);
|
|
253
259
|
|
|
@@ -262,15 +268,20 @@ async function execute(params) {
|
|
|
262
268
|
throw new Error('No prototype files found matching pattern {target}-style-{s}-layout-{l}.html');
|
|
263
269
|
}
|
|
264
270
|
|
|
265
|
-
|
|
266
|
-
const
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
271
|
+
const now = new Date();
|
|
272
|
+
const runId = runIdParam || `run-${now.toISOString().replace(/[:.]/g, '-').slice(0, -5)}`;
|
|
273
|
+
const sessionId = sessionIdParam || 'standalone';
|
|
274
|
+
const timestamp = timestampParam || now.toISOString();
|
|
275
|
+
|
|
276
|
+
// Generate metadata
|
|
277
|
+
const metadata = {
|
|
278
|
+
runId,
|
|
279
|
+
sessionId,
|
|
280
|
+
timestamp,
|
|
281
|
+
styles,
|
|
282
|
+
layouts,
|
|
283
|
+
targets
|
|
284
|
+
};
|
|
274
285
|
|
|
275
286
|
// Load template
|
|
276
287
|
const template = loadTemplate(templatePath);
|
|
@@ -299,29 +310,41 @@ async function execute(params) {
|
|
|
299
310
|
/**
|
|
300
311
|
* Tool Definition
|
|
301
312
|
*/
|
|
302
|
-
export const uiGeneratePreviewTool = {
|
|
303
|
-
name: 'ui_generate_preview',
|
|
304
|
-
description: `Generate interactive preview files for UI prototypes.
|
|
305
|
-
Generates:
|
|
306
|
-
- compare.html: Interactive matrix view with synchronized scrolling
|
|
307
|
-
- index.html: Navigation and statistics
|
|
308
|
-
- PREVIEW.md: Usage guide
|
|
309
|
-
|
|
310
|
-
Auto-detects matrix dimensions from file pattern: {target}-style-{s}-layout-{l}.html`,
|
|
311
|
-
parameters: {
|
|
312
|
-
type: 'object',
|
|
313
|
-
properties: {
|
|
314
|
-
prototypesDir: {
|
|
315
|
-
type: 'string',
|
|
316
|
-
description: 'Prototypes directory path (default: current directory)',
|
|
317
|
-
default: '.'
|
|
318
|
-
},
|
|
319
|
-
template: {
|
|
320
|
-
type: 'string',
|
|
321
|
-
description: 'Optional path to compare.html template'
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
313
|
+
export const uiGeneratePreviewTool = {
|
|
314
|
+
name: 'ui_generate_preview',
|
|
315
|
+
description: `Generate interactive preview files for UI prototypes.
|
|
316
|
+
Generates:
|
|
317
|
+
- compare.html: Interactive matrix view with synchronized scrolling
|
|
318
|
+
- index.html: Navigation and statistics
|
|
319
|
+
- PREVIEW.md: Usage guide
|
|
320
|
+
|
|
321
|
+
Auto-detects matrix dimensions from file pattern: {target}-style-{s}-layout-{l}.html`,
|
|
322
|
+
parameters: {
|
|
323
|
+
type: 'object',
|
|
324
|
+
properties: {
|
|
325
|
+
prototypesDir: {
|
|
326
|
+
type: 'string',
|
|
327
|
+
description: 'Prototypes directory path (default: current directory)',
|
|
328
|
+
default: '.'
|
|
329
|
+
},
|
|
330
|
+
template: {
|
|
331
|
+
type: 'string',
|
|
332
|
+
description: 'Optional path to compare.html template'
|
|
333
|
+
},
|
|
334
|
+
runId: {
|
|
335
|
+
type: 'string',
|
|
336
|
+
description: 'Optional run identifier to inject into compare.html (defaults to generated timestamp-based run id)'
|
|
337
|
+
},
|
|
338
|
+
sessionId: {
|
|
339
|
+
type: 'string',
|
|
340
|
+
description: 'Optional session identifier to inject into compare.html (default: standalone)'
|
|
341
|
+
},
|
|
342
|
+
timestamp: {
|
|
343
|
+
type: 'string',
|
|
344
|
+
description: 'Optional ISO timestamp to inject into compare.html (defaults to current time)'
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
required: []
|
|
348
|
+
},
|
|
349
|
+
execute
|
|
350
|
+
};
|
|
Binary file
|
|
Binary file
|
|
@@ -122,8 +122,21 @@ class Config:
|
|
|
122
122
|
self.data_dir = self.data_dir.expanduser().resolve()
|
|
123
123
|
self.venv_path = self.venv_path.expanduser().resolve()
|
|
124
124
|
self.data_dir.mkdir(parents=True, exist_ok=True)
|
|
125
|
+
except PermissionError as exc:
|
|
126
|
+
raise ConfigError(
|
|
127
|
+
f"Permission denied initializing paths (data_dir={self.data_dir}, venv_path={self.venv_path}) "
|
|
128
|
+
f"[{type(exc).__name__}]: {exc}"
|
|
129
|
+
) from exc
|
|
130
|
+
except OSError as exc:
|
|
131
|
+
raise ConfigError(
|
|
132
|
+
f"Filesystem error initializing paths (data_dir={self.data_dir}, venv_path={self.venv_path}) "
|
|
133
|
+
f"[{type(exc).__name__}]: {exc}"
|
|
134
|
+
) from exc
|
|
125
135
|
except Exception as exc:
|
|
126
|
-
raise ConfigError(
|
|
136
|
+
raise ConfigError(
|
|
137
|
+
f"Unexpected error initializing paths (data_dir={self.data_dir}, venv_path={self.venv_path}) "
|
|
138
|
+
f"[{type(exc).__name__}]: {exc}"
|
|
139
|
+
) from exc
|
|
127
140
|
|
|
128
141
|
@cached_property
|
|
129
142
|
def cache_dir(self) -> Path:
|
|
@@ -145,8 +158,18 @@ class Config:
|
|
|
145
158
|
for directory in (self.cache_dir, self.index_dir):
|
|
146
159
|
try:
|
|
147
160
|
directory.mkdir(parents=True, exist_ok=True)
|
|
161
|
+
except PermissionError as exc:
|
|
162
|
+
raise ConfigError(
|
|
163
|
+
f"Permission denied creating directory {directory} [{type(exc).__name__}]: {exc}"
|
|
164
|
+
) from exc
|
|
165
|
+
except OSError as exc:
|
|
166
|
+
raise ConfigError(
|
|
167
|
+
f"Filesystem error creating directory {directory} [{type(exc).__name__}]: {exc}"
|
|
168
|
+
) from exc
|
|
148
169
|
except Exception as exc:
|
|
149
|
-
raise ConfigError(
|
|
170
|
+
raise ConfigError(
|
|
171
|
+
f"Unexpected error creating directory {directory} [{type(exc).__name__}]: {exc}"
|
|
172
|
+
) from exc
|
|
150
173
|
|
|
151
174
|
def language_for_path(self, path: str | Path) -> str | None:
|
|
152
175
|
"""Infer a supported language ID from a file path."""
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
+
import math
|
|
5
6
|
from enum import Enum
|
|
6
7
|
from typing import Any, Dict, List, Optional, Tuple
|
|
7
8
|
|
|
@@ -43,6 +44,10 @@ class SemanticChunk(BaseModel):
|
|
|
43
44
|
return value
|
|
44
45
|
if not value:
|
|
45
46
|
raise ValueError("embedding cannot be empty when provided")
|
|
47
|
+
norm = math.sqrt(sum(x * x for x in value))
|
|
48
|
+
epsilon = 1e-10
|
|
49
|
+
if norm < epsilon:
|
|
50
|
+
raise ValueError("embedding cannot be a zero vector")
|
|
46
51
|
return value
|
|
47
52
|
|
|
48
53
|
|
|
@@ -118,4 +123,3 @@ class SearchResult(BaseModel):
|
|
|
118
123
|
default_factory=list,
|
|
119
124
|
description="Other locations for grouped results with similar scores and content."
|
|
120
125
|
)
|
|
121
|
-
|