cli-usereq 0.75.10__tar.gz → 0.75.11__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.
Files changed (47) hide show
  1. {cli_usereq-0.75.10 → cli_usereq-0.75.11}/PKG-INFO +2 -2
  2. {cli_usereq-0.75.10 → cli_usereq-0.75.11}/README.md +1 -1
  3. {cli_usereq-0.75.10 → cli_usereq-0.75.11}/pyproject.toml +1 -1
  4. {cli_usereq-0.75.10 → cli_usereq-0.75.11}/src/usereq/__init__.py +1 -1
  5. {cli_usereq-0.75.10 → cli_usereq-0.75.11}/src/usereq/cli.py +25 -4
  6. {cli_usereq-0.75.10 → cli_usereq-0.75.11}/uv.lock +1 -1
  7. {cli_usereq-0.75.10 → cli_usereq-0.75.11}/LICENSE +0 -0
  8. {cli_usereq-0.75.10 → cli_usereq-0.75.11}/MANIFEST.in +0 -0
  9. {cli_usereq-0.75.10 → cli_usereq-0.75.11}/setup.cfg +0 -0
  10. {cli_usereq-0.75.10 → cli_usereq-0.75.11}/setup.py +0 -0
  11. {cli_usereq-0.75.10 → cli_usereq-0.75.11}/src/usereq/__main__.py +0 -0
  12. {cli_usereq-0.75.10 → cli_usereq-0.75.11}/src/usereq/compress.py +0 -0
  13. {cli_usereq-0.75.10 → cli_usereq-0.75.11}/src/usereq/compress_files.py +0 -0
  14. {cli_usereq-0.75.10 → cli_usereq-0.75.11}/src/usereq/config_cli.py +0 -0
  15. {cli_usereq-0.75.10 → cli_usereq-0.75.11}/src/usereq/config_schema.py +0 -0
  16. {cli_usereq-0.75.10 → cli_usereq-0.75.11}/src/usereq/doxygen_parser.py +0 -0
  17. {cli_usereq-0.75.10 → cli_usereq-0.75.11}/src/usereq/find_constructs.py +0 -0
  18. {cli_usereq-0.75.10 → cli_usereq-0.75.11}/src/usereq/generate_markdown.py +0 -0
  19. {cli_usereq-0.75.10 → cli_usereq-0.75.11}/src/usereq/resources/guidelines/Google_C++_Style_Guide.md +0 -0
  20. {cli_usereq-0.75.10 → cli_usereq-0.75.11}/src/usereq/resources/guidelines/Google_Python_Style_Guide.md +0 -0
  21. {cli_usereq-0.75.10 → cli_usereq-0.75.11}/src/usereq/resources/guidelines/Google_TypeScript_Style_Guide.md +0 -0
  22. {cli_usereq-0.75.10 → cli_usereq-0.75.11}/src/usereq/resources/guidelines/RFC2119.md +0 -0
  23. {cli_usereq-0.75.10 → cli_usereq-0.75.11}/src/usereq/resources/prompts/analyze.md +0 -0
  24. {cli_usereq-0.75.10 → cli_usereq-0.75.11}/src/usereq/resources/prompts/change.md +0 -0
  25. {cli_usereq-0.75.10 → cli_usereq-0.75.11}/src/usereq/resources/prompts/check.md +0 -0
  26. {cli_usereq-0.75.10 → cli_usereq-0.75.11}/src/usereq/resources/prompts/cover.md +0 -0
  27. {cli_usereq-0.75.10 → cli_usereq-0.75.11}/src/usereq/resources/prompts/create.md +0 -0
  28. {cli_usereq-0.75.10 → cli_usereq-0.75.11}/src/usereq/resources/prompts/fix.md +0 -0
  29. {cli_usereq-0.75.10 → cli_usereq-0.75.11}/src/usereq/resources/prompts/flowchart.md +0 -0
  30. {cli_usereq-0.75.10 → cli_usereq-0.75.11}/src/usereq/resources/prompts/implement.md +0 -0
  31. {cli_usereq-0.75.10 → cli_usereq-0.75.11}/src/usereq/resources/prompts/new.md +0 -0
  32. {cli_usereq-0.75.10 → cli_usereq-0.75.11}/src/usereq/resources/prompts/orchestrate.md +0 -0
  33. {cli_usereq-0.75.10 → cli_usereq-0.75.11}/src/usereq/resources/prompts/readme.md +0 -0
  34. {cli_usereq-0.75.10 → cli_usereq-0.75.11}/src/usereq/resources/prompts/recreate.md +0 -0
  35. {cli_usereq-0.75.10 → cli_usereq-0.75.11}/src/usereq/resources/prompts/refactor.md +0 -0
  36. {cli_usereq-0.75.10 → cli_usereq-0.75.11}/src/usereq/resources/prompts/references.md +0 -0
  37. {cli_usereq-0.75.10 → cli_usereq-0.75.11}/src/usereq/resources/prompts/renumber.md +0 -0
  38. {cli_usereq-0.75.10 → cli_usereq-0.75.11}/src/usereq/resources/prompts/workflow.md +0 -0
  39. {cli_usereq-0.75.10 → cli_usereq-0.75.11}/src/usereq/resources/prompts/write.md +0 -0
  40. {cli_usereq-0.75.10 → cli_usereq-0.75.11}/src/usereq/resources/prompts-version.txt +0 -0
  41. {cli_usereq-0.75.10 → cli_usereq-0.75.11}/src/usereq/resources/templates/Agentic_Text_Authoring_Guidance.md +0 -0
  42. {cli_usereq-0.75.10 → cli_usereq-0.75.11}/src/usereq/resources/templates/Document_Source_Code_in_Doxygen_Style.md +0 -0
  43. {cli_usereq-0.75.10 → cli_usereq-0.75.11}/src/usereq/resources/templates/HDT_Test_Authoring_Guide.md +0 -0
  44. {cli_usereq-0.75.10 → cli_usereq-0.75.11}/src/usereq/resources/templates/Requirements_Template.md +0 -0
  45. {cli_usereq-0.75.10 → cli_usereq-0.75.11}/src/usereq/source_analyzer.py +0 -0
  46. {cli_usereq-0.75.10 → cli_usereq-0.75.11}/src/usereq/static_check.py +0 -0
  47. {cli_usereq-0.75.10 → cli_usereq-0.75.11}/src/usereq/token_counter.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cli-usereq
3
- Version: 0.75.10
3
+ Version: 0.75.11
4
4
  Summary: Initialize a project with prompts, agents, and templates from the useReq repository.
5
5
  Author: Ogekuri
6
6
  License-Expression: GPL-3.0-only
@@ -34,7 +34,7 @@ Dynamic: license-file
34
34
  > * **No Support or Feature Requests:** Please **do not** open issues, bug reports, or feature requests. They will not be addressed or accepted at this stage of development.
35
35
  > * **No Warranty:** This software is provided **"AS IS"**, without warranty of any kind, express or implied. You may use it strictly for **testing and evaluation purposes** at your own sole risk.
36
36
 
37
- # useReq / req (0.75.10)
37
+ # useReq / req (0.75.11)
38
38
 
39
39
  <p align="center">
40
40
  <img src="https://img.shields.io/badge/python-3.11%2B-3776AB?style=flat-square&logo=python&logoColor=white" alt="Python 3.11+">
@@ -10,7 +10,7 @@
10
10
  > * **No Support or Feature Requests:** Please **do not** open issues, bug reports, or feature requests. They will not be addressed or accepted at this stage of development.
11
11
  > * **No Warranty:** This software is provided **"AS IS"**, without warranty of any kind, express or implied. You may use it strictly for **testing and evaluation purposes** at your own sole risk.
12
12
 
13
- # useReq / req (0.75.10)
13
+ # useReq / req (0.75.11)
14
14
 
15
15
  <p align="center">
16
16
  <img src="https://img.shields.io/badge/python-3.11%2B-3776AB?style=flat-square&logo=python&logoColor=white" alt="Python 3.11+">
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "cli-usereq"
7
- version = "0.75.10"
7
+ version = "0.75.11"
8
8
  description = "Initialize a project with prompts, agents, and templates from the useReq repository."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.11"
@@ -18,7 +18,7 @@ from . import source_analyzer # usereq.source_analyzer submodule
18
18
  from . import token_counter # usereq.token_counter submodule
19
19
  from typing import Any
20
20
 
21
- __version__ = "0.75.10"
21
+ __version__ = "0.75.11"
22
22
  """! @brief Semantic version string of the package."""
23
23
 
24
24
 
@@ -3506,6 +3506,20 @@ SUPPORTED_EXTENSIONS = frozenset(
3506
3506
  )
3507
3507
  """File extensions considered during source directory scanning."""
3508
3508
 
3509
+ EMPTY_REFERENCES_DIRECTIVE = """<system_directive>
3510
+ [STATUS]: NO_SOURCE_CODE_DETECTED
3511
+ [FILE_CONTENT]: EMPTY_REFERENCES
3512
+
3513
+ [CONTEXT_UPDATE]
3514
+ This repository is structured exclusively for documentation or otherwise lacks analyzable source code. Consequently, this `REFERENCES.md` file contains no source code mappings or references.
3515
+
3516
+ [AGENT_INSTRUCTIONS]
3517
+ 1. Do not attempt to search, extract, or index source code references within this project.
3518
+ 2. Update current context to reflect that the `req-references` skill and the `/req-references` command are **UNNECESSARY** and **DEPRECATED** for this specific repository.
3519
+ 3. Do not invoke or prompt the user to execute the `/req-references` command during any future interactions within this workspace.
3520
+ </system_directive>"""
3521
+ """Canonical empty-references system-directive payload emitted when no supported source file is selected (SRS-581, SRS-582)."""
3522
+
3509
3523
 
3510
3524
  def _collect_source_files(src_dirs: list[str], project_base: Path) -> list[str]:
3511
3525
  """!
@@ -4094,17 +4108,24 @@ def run_files_find(args_list: list[str], enable_line_numbers: bool = False) -> N
4094
4108
  def run_references(args: Namespace) -> None:
4095
4109
  """!
4096
4110
  @brief Execute references: generate markdown for project source files.
4097
- @details Implements the run_references function behavior with deterministic control flow.
4098
- @param args Input parameter `args`.
4111
+ @details Resolves the mandatory ``--prj-base`` project base and the configured ``src-dir``
4112
+ entries, selects supported source files from the git index, and prints the files-structure
4113
+ section followed by generated references markdown. When the selection is empty, prints the
4114
+ canonical :data:`EMPTY_REFERENCES_DIRECTIVE` payload instead and returns successfully so
4115
+ documentation-only repositories produce a deterministic empty-references marker (SRS-581,
4116
+ SRS-582). Complexity: O(F) file analysis over F selected files. Side effects: stdout writes.
4117
+ @param args {Namespace} Parsed CLI namespace carrying the mandatory ``--prj-base`` value.
4099
4118
  @return {None} Function return value.
4100
- @satisfies SRS-177, SRS-180, SRS-181, SRS-235, SRS-396, SRS-408
4119
+ @throws {ReqError} Raised when ``--prj-base`` is absent or a configured directory value is invalid.
4120
+ @satisfies SRS-177, SRS-180, SRS-181, SRS-235, SRS-396, SRS-408, SRS-581, SRS-582
4101
4121
  """
4102
4122
  from .generate_markdown import generate_markdown
4103
4123
 
4104
4124
  project_base, src_dirs = _resolve_project_src_dirs(args)
4105
4125
  files = _collect_source_files(src_dirs, project_base)
4106
4126
  if not files:
4107
- raise ReqError("Error: no source files found in configured directories.", 1)
4127
+ print(EMPTY_REFERENCES_DIRECTIVE)
4128
+ return
4108
4129
  md = generate_markdown(files, verbose=VERBOSE, output_base=project_base)
4109
4130
  files_structure = _format_files_structure_markdown(files, project_base)
4110
4131
  print(f"{files_structure}\n\n{md}")
@@ -86,7 +86,7 @@ wheels = [
86
86
 
87
87
  [[package]]
88
88
  name = "cli-usereq"
89
- version = "0.75.10"
89
+ version = "0.75.11"
90
90
  source = { editable = "." }
91
91
  dependencies = [
92
92
  { name = "pyright" },
File without changes
File without changes
File without changes
File without changes