codexspec 0.5.2__tar.gz → 0.5.3__tar.gz
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.
- {codexspec-0.5.2 → codexspec-0.5.3}/PKG-INFO +1 -1
- {codexspec-0.5.2 → codexspec-0.5.3}/pyproject.toml +1 -1
- {codexspec-0.5.2 → codexspec-0.5.3}/templates/commands/pr.md +73 -4
- {codexspec-0.5.2 → codexspec-0.5.3}/.gitignore +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/LICENSE +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/README.md +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/codexspec-icon.svg +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/codexspec-logo-dark.svg +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/codexspec-logo-light.svg +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/scripts/bash/check-i18n-completeness.sh +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/scripts/bash/check-i18n-structure.sh +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/scripts/bash/check-prerequisites.sh +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/scripts/bash/common.sh +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/scripts/bash/create-new-feature.sh +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/scripts/powershell/check-prerequisites.ps1 +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/scripts/powershell/common.ps1 +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/scripts/powershell/create-new-feature.ps1 +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/scripts/python/README.md +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/scripts/python/claude_ctl.py +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/scripts/python/claude_monitor.py +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/scripts/python/notify_telegram.py +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/src/codexspec/__init__.py +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/src/codexspec/commands/__init__.py +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/src/codexspec/commands/installer.py +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/src/codexspec/i18n.py +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/src/codexspec/idea.md +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/src/codexspec/translator.py +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/templates/commands/analyze.md +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/templates/commands/check-i18n-semantics.md +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/templates/commands/checklist.md +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/templates/commands/clarify.md +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/templates/commands/commit-staged.md +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/templates/commands/constitution.md +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/templates/commands/generate-spec.md +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/templates/commands/implement-tasks.md +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/templates/commands/plan-to-tasks.md +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/templates/commands/review-plan.md +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/templates/commands/review-spec.md +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/templates/commands/review-tasks.md +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/templates/commands/spec-to-plan.md +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/templates/commands/specify.md +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/templates/commands/tasks-to-issues.md +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/templates/commands/translate-docs.md +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/templates/docs/checklist-template.md +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/templates/docs/constitution-template.md +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/templates/docs/plan-template-detailed.md +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/templates/docs/plan-template-simple.md +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/templates/docs/spec-template-detailed.md +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/templates/docs/spec-template-simple.md +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/templates/docs/tasks-template-detailed.md +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/templates/docs/tasks-template-simple.md +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/templates/translations/de.json +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/templates/translations/en.json +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/templates/translations/es.json +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/templates/translations/fr.json +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/templates/translations/ja.json +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/templates/translations/ko.json +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/templates/translations/pt-BR.json +0 -0
- {codexspec-0.5.2 → codexspec-0.5.3}/templates/translations/zh-CN.json +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: codexspec
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.3
|
|
4
4
|
Summary: CodexSpec - A Spec-Driven Development (SDD) toolkit for Claude Code
|
|
5
5
|
Project-URL: Homepage, https://github.com/Zts0hg/codexspec
|
|
6
6
|
Project-URL: Repository, https://github.com/Zts0hg/codexspec
|
|
@@ -341,9 +341,65 @@ Example: `--sections summary,changes,testing`
|
|
|
341
341
|
8. **Links**: Use `[text](url)` format for references
|
|
342
342
|
9. **Task Lists**: Use `- [ ]` and `- [x]` for verification checklists
|
|
343
343
|
|
|
344
|
-
###
|
|
344
|
+
### Code Block Nesting Rules (CRITICAL)
|
|
345
|
+
|
|
346
|
+
When the PR content itself contains code blocks (e.g., showing command examples, code snippets, or diff output), you **MUST** handle nesting correctly to prevent unclosed code blocks:
|
|
347
|
+
|
|
348
|
+
**Rule 1: Use more backticks for outer blocks**
|
|
349
|
+
When nesting code blocks, the outer block must use more backticks than the inner block:
|
|
350
|
+
|
|
351
|
+
- Outer: 4+ backticks (````)
|
|
352
|
+
- Inner: 3 backticks (```)
|
|
345
353
|
|
|
354
|
+
**Rule 2: Never mix same-level backticks**
|
|
355
|
+
Using 3 backticks for both outer and inner blocks will cause premature closing and broken formatting.
|
|
356
|
+
|
|
357
|
+
**Example - Correct Nesting:**
|
|
358
|
+
|
|
359
|
+
````markdown
|
|
360
|
+
### How to Verify
|
|
361
|
+
|
|
362
|
+
Run the following command:
|
|
363
|
+
```bash
|
|
364
|
+
pytest tests/auth/
|
|
365
|
+
```
|
|
366
|
+
|
|
367
|
+
Expected output:
|
|
368
|
+
```
|
|
369
|
+
=== test session starts ===
|
|
370
|
+
collected 5 items
|
|
371
|
+
```
|
|
372
|
+
````
|
|
373
|
+
|
|
374
|
+
**Example - Incorrect (will break):**
|
|
375
|
+
|
|
376
|
+
```markdown
|
|
377
|
+
### How to Verify
|
|
378
|
+
```bash
|
|
379
|
+
pytest tests/auth/
|
|
380
|
+
```
|
|
381
|
+
|
|
382
|
+
``` ← This closes the first block, leaving rest orphaned
|
|
383
|
+
```
|
|
384
|
+
|
|
385
|
+
**Rule 3: For terminal output mode**
|
|
386
|
+
When outputting to terminal, wrap the entire PR in a code block with 4+ backticks:
|
|
387
|
+
|
|
388
|
+
````text
|
|
346
389
|
```markdown
|
|
390
|
+
[PR content with internal ``` code blocks ```]
|
|
391
|
+
```
|
|
392
|
+
````
|
|
393
|
+
|
|
394
|
+
**Rule 4: Backtick escaping in content**
|
|
395
|
+
If you need to display literal backticks (`` ` ``) in PR content without starting a code block:
|
|
396
|
+
|
|
397
|
+
- For single backtick: Use inline code syntax `` ` `` (wrap in single backticks)
|
|
398
|
+
- For multiple backticks: Use HTML entity ``` or wrap in more backticks than displayed
|
|
399
|
+
|
|
400
|
+
### GitHub PR Format
|
|
401
|
+
|
|
402
|
+
````markdown
|
|
347
403
|
## type(scope): description
|
|
348
404
|
|
|
349
405
|
> Brief summary of what this PR accomplishes (1-2 sentences)
|
|
@@ -397,11 +453,11 @@ Example: `--sections summary,changes,testing`
|
|
|
397
453
|
---
|
|
398
454
|
*Related: #[issue-number]* (if applicable)
|
|
399
455
|
|
|
400
|
-
|
|
456
|
+
````
|
|
401
457
|
|
|
402
458
|
### GitLab MR Format
|
|
403
459
|
|
|
404
|
-
|
|
460
|
+
````markdown
|
|
405
461
|
## type(scope): description
|
|
406
462
|
|
|
407
463
|
> Brief summary of what this MR accomplishes (1-2 sentences)
|
|
@@ -448,37 +504,43 @@ Example: `--sections summary,changes,testing`
|
|
|
448
504
|
|
|
449
505
|
/label ~"[label]" @reviewer (if applicable)
|
|
450
506
|
|
|
451
|
-
|
|
507
|
+
````
|
|
452
508
|
|
|
453
509
|
### Section Content Guidelines
|
|
454
510
|
|
|
455
511
|
#### Summary Section
|
|
512
|
+
|
|
456
513
|
- Keep to 2-3 sentences maximum
|
|
457
514
|
- Answer "What" and "Why" (not "How")
|
|
458
515
|
- Use plain language accessible to all reviewers
|
|
459
516
|
|
|
460
517
|
#### Changes Section
|
|
518
|
+
|
|
461
519
|
- Use tables for file changes (improves readability)
|
|
462
520
|
- Group related changes logically
|
|
463
521
|
- Include change type: Added, Modified, Deleted, Renamed
|
|
464
522
|
|
|
465
523
|
#### Testing Section
|
|
524
|
+
|
|
466
525
|
- Use task lists for test coverage status
|
|
467
526
|
- Include exact commands to run tests
|
|
468
527
|
- Note any special test requirements
|
|
469
528
|
|
|
470
529
|
#### How to Verify Section
|
|
530
|
+
|
|
471
531
|
- Use numbered list for step-by-step verification
|
|
472
532
|
- Include specific commands to run
|
|
473
533
|
- Be precise and actionable (e.g., "Run `pytest tests/auth/`")
|
|
474
534
|
- Include expected outcomes where helpful
|
|
475
535
|
|
|
476
536
|
#### Checklist Section
|
|
537
|
+
|
|
477
538
|
- Use GitHub/GitLab task list syntax `- [ ]`
|
|
478
539
|
- Include project-specific checklist items
|
|
479
540
|
- Focus on author self-confirmation before merge
|
|
480
541
|
|
|
481
542
|
#### Notes Section
|
|
543
|
+
|
|
482
544
|
- Highlight breaking changes with `**Breaking Change:**` prefix
|
|
483
545
|
- Include migration instructions if needed
|
|
484
546
|
- Link to related issues/PRs
|
|
@@ -497,26 +559,32 @@ Example: `--sections summary,changes,testing`
|
|
|
497
559
|
## Edge Cases
|
|
498
560
|
|
|
499
561
|
### EC-001: Branch Up to Date with Target
|
|
562
|
+
|
|
500
563
|
**Scenario**: No commits ahead of target branch
|
|
501
564
|
**Response**: "No changes detected between current branch and [target]. Nothing to generate."
|
|
502
565
|
|
|
503
566
|
### EC-002: Invalid Target Branch
|
|
567
|
+
|
|
504
568
|
**Scenario**: Target branch doesn't exist
|
|
505
569
|
**Response**: "Target branch '[branch]' not found. Please verify the branch name."
|
|
506
570
|
|
|
507
571
|
### EC-003: Not a Git Repository
|
|
572
|
+
|
|
508
573
|
**Scenario**: Command run outside git repo
|
|
509
574
|
**Response**: "Not a git repository. Please run this command from within a git repository."
|
|
510
575
|
|
|
511
576
|
### EC-004b: Invalid Spec Path
|
|
577
|
+
|
|
512
578
|
**Scenario**: `--spec` path doesn't exist
|
|
513
579
|
**Response**: "Spec '[path]' not found. Available specs: [list specs in .codexspec/specs/]"
|
|
514
580
|
|
|
515
581
|
### EC-005: Detached HEAD State
|
|
582
|
+
|
|
516
583
|
**Scenario**: Repository in detached HEAD
|
|
517
584
|
**Response**: "Cannot determine current branch. Please checkout a branch before generating PR description."
|
|
518
585
|
|
|
519
586
|
### EC-006: No Remote Configured
|
|
587
|
+
|
|
520
588
|
**Scenario**: No git remote configured
|
|
521
589
|
**Handling**: Use GitHub terminology with warning: "No remote configured. Defaulting to GitHub terminology."
|
|
522
590
|
|
|
@@ -546,6 +614,7 @@ Example: `--sections summary,changes,testing`
|
|
|
546
614
|
This ensures users see the raw markdown source code, not the rendered output. Users can then copy the content inside the code block and paste it directly into GitHub/GitLab.
|
|
547
615
|
|
|
548
616
|
### File Output (`--output`)
|
|
617
|
+
|
|
549
618
|
When saving to a file, output the raw markdown content directly (without code block wrapper). The file will contain the actual PR description ready for use.
|
|
550
619
|
|
|
551
620
|
## Important Notes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|