ngpt 4.0.0__tar.gz → 4.0.2__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 (67) hide show
  1. {ngpt-4.0.0 → ngpt-4.0.2}/PKG-INFO +1 -1
  2. {ngpt-4.0.0 → ngpt-4.0.2}/ngpt/cli/args.py +4 -0
  3. {ngpt-4.0.0 → ngpt-4.0.2}/ngpt/cli/main.py +1 -1
  4. {ngpt-4.0.0 → ngpt-4.0.2}/pyproject.toml +1 -1
  5. {ngpt-4.0.0 → ngpt-4.0.2}/uv.lock +1 -1
  6. {ngpt-4.0.0 → ngpt-4.0.2}/.github/banner.svg +0 -0
  7. {ngpt-4.0.0 → ngpt-4.0.2}/.github/workflows/aur-publish.yml +0 -0
  8. {ngpt-4.0.0 → ngpt-4.0.2}/.github/workflows/python-publish.yml +0 -0
  9. {ngpt-4.0.0 → ngpt-4.0.2}/.github/workflows/repo-mirror.yml +0 -0
  10. {ngpt-4.0.0 → ngpt-4.0.2}/.gitignore +0 -0
  11. {ngpt-4.0.0 → ngpt-4.0.2}/.python-version +0 -0
  12. {ngpt-4.0.0 → ngpt-4.0.2}/COMMIT_GUIDELINES.md +0 -0
  13. {ngpt-4.0.0 → ngpt-4.0.2}/CONTRIBUTING.md +0 -0
  14. {ngpt-4.0.0 → ngpt-4.0.2}/LICENSE +0 -0
  15. {ngpt-4.0.0 → ngpt-4.0.2}/PKGBUILD +0 -0
  16. {ngpt-4.0.0 → ngpt-4.0.2}/README.md +0 -0
  17. {ngpt-4.0.0 → ngpt-4.0.2}/docs/CONTRIBUTING.md +0 -0
  18. {ngpt-4.0.0 → ngpt-4.0.2}/docs/LICENSE.md +0 -0
  19. {ngpt-4.0.0 → ngpt-4.0.2}/docs/_config.yml +0 -0
  20. {ngpt-4.0.0 → ngpt-4.0.2}/docs/_sass/custom/custom.scss +0 -0
  21. {ngpt-4.0.0 → ngpt-4.0.2}/docs/configuration.md +0 -0
  22. {ngpt-4.0.0 → ngpt-4.0.2}/docs/examples/advanced.md +0 -0
  23. {ngpt-4.0.0 → ngpt-4.0.2}/docs/examples/basic.md +0 -0
  24. {ngpt-4.0.0 → ngpt-4.0.2}/docs/examples/role_gallery.md +0 -0
  25. {ngpt-4.0.0 → ngpt-4.0.2}/docs/examples/specialized_tools.md +0 -0
  26. {ngpt-4.0.0 → ngpt-4.0.2}/docs/examples.md +0 -0
  27. {ngpt-4.0.0 → ngpt-4.0.2}/docs/index.md +0 -0
  28. {ngpt-4.0.0 → ngpt-4.0.2}/docs/installation.md +0 -0
  29. {ngpt-4.0.0 → ngpt-4.0.2}/docs/overview.md +0 -0
  30. {ngpt-4.0.0 → ngpt-4.0.2}/docs/usage/cli_config.md +0 -0
  31. {ngpt-4.0.0 → ngpt-4.0.2}/docs/usage/cli_usage.md +0 -0
  32. {ngpt-4.0.0 → ngpt-4.0.2}/docs/usage/gitcommsg.md +0 -0
  33. {ngpt-4.0.0 → ngpt-4.0.2}/docs/usage/roles.md +0 -0
  34. {ngpt-4.0.0 → ngpt-4.0.2}/docs/usage/web_search.md +0 -0
  35. {ngpt-4.0.0 → ngpt-4.0.2}/docs/usage.md +0 -0
  36. {ngpt-4.0.0 → ngpt-4.0.2}/ngpt/__init__.py +0 -0
  37. {ngpt-4.0.0 → ngpt-4.0.2}/ngpt/__main__.py +0 -0
  38. {ngpt-4.0.0 → ngpt-4.0.2}/ngpt/cli/__init__.py +0 -0
  39. {ngpt-4.0.0 → ngpt-4.0.2}/ngpt/cli/config_manager.py +0 -0
  40. {ngpt-4.0.0 → ngpt-4.0.2}/ngpt/cli/formatters.py +0 -0
  41. {ngpt-4.0.0 → ngpt-4.0.2}/ngpt/cli/modes/__init__.py +0 -0
  42. {ngpt-4.0.0 → ngpt-4.0.2}/ngpt/cli/modes/chat.py +0 -0
  43. {ngpt-4.0.0 → ngpt-4.0.2}/ngpt/cli/modes/code.py +0 -0
  44. {ngpt-4.0.0 → ngpt-4.0.2}/ngpt/cli/modes/gitcommsg.py +0 -0
  45. {ngpt-4.0.0 → ngpt-4.0.2}/ngpt/cli/modes/interactive.py +0 -0
  46. {ngpt-4.0.0 → ngpt-4.0.2}/ngpt/cli/modes/rewrite.py +0 -0
  47. {ngpt-4.0.0 → ngpt-4.0.2}/ngpt/cli/modes/shell.py +0 -0
  48. {ngpt-4.0.0 → ngpt-4.0.2}/ngpt/cli/modes/text.py +0 -0
  49. {ngpt-4.0.0 → ngpt-4.0.2}/ngpt/cli/renderers.py +0 -0
  50. {ngpt-4.0.0 → ngpt-4.0.2}/ngpt/cli/roles.py +0 -0
  51. {ngpt-4.0.0 → ngpt-4.0.2}/ngpt/cli/ui.py +0 -0
  52. {ngpt-4.0.0 → ngpt-4.0.2}/ngpt/client.py +0 -0
  53. {ngpt-4.0.0 → ngpt-4.0.2}/ngpt/utils/__init__.py +0 -0
  54. {ngpt-4.0.0 → ngpt-4.0.2}/ngpt/utils/cli_config.py +0 -0
  55. {ngpt-4.0.0 → ngpt-4.0.2}/ngpt/utils/config.py +0 -0
  56. {ngpt-4.0.0 → ngpt-4.0.2}/ngpt/utils/log.py +0 -0
  57. {ngpt-4.0.0 → ngpt-4.0.2}/ngpt/utils/pipe.py +0 -0
  58. {ngpt-4.0.0 → ngpt-4.0.2}/ngpt/utils/web_search.py +0 -0
  59. {ngpt-4.0.0 → ngpt-4.0.2}/previews/icon.png +0 -0
  60. {ngpt-4.0.0 → ngpt-4.0.2}/previews/ngpt-g.png +0 -0
  61. {ngpt-4.0.0 → ngpt-4.0.2}/previews/ngpt-i.png +0 -0
  62. {ngpt-4.0.0 → ngpt-4.0.2}/previews/ngpt-s-c.png +0 -0
  63. {ngpt-4.0.0 → ngpt-4.0.2}/previews/ngpt-sh-c-a.png +0 -0
  64. {ngpt-4.0.0 → ngpt-4.0.2}/previews/ngpt-w-self.png +0 -0
  65. {ngpt-4.0.0 → ngpt-4.0.2}/previews/ngpt-w.png +0 -0
  66. {ngpt-4.0.0 → ngpt-4.0.2}/previews/social-preview.png +0 -0
  67. {ngpt-4.0.0 → ngpt-4.0.2}/wiki.md +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ngpt
3
- Version: 4.0.0
3
+ Version: 4.0.2
4
4
  Summary: A Swiss army knife for LLMs: A fast, lightweight CLI and interactive chat tool that brings the power of any OpenAI-compatible LLM (OpenAI, Ollama, Groq, Claude, Gemini, etc.) straight to your terminal. rewrite texts or refine code, craft git commit messages, generate and run OS-aware shell commands.
5
5
  Project-URL: Homepage, https://github.com/nazdridoy/ngpt
6
6
  Project-URL: Repository, https://github.com/nazdridoy/ngpt
@@ -144,6 +144,10 @@ def setup_argument_parser():
144
144
  mode_exclusive_group.add_argument('-g', '--gitcommsg', action='store_true',
145
145
  help='Generate AI-powered git commit messages from staged changes or diff file')
146
146
 
147
+ # Add positional argument for the prompt (optional)
148
+ parser.add_argument('prompt', nargs='?', default=None,
149
+ help='The prompt to send to the language model')
150
+
147
151
  return parser
148
152
 
149
153
  def parse_args():
@@ -510,7 +510,7 @@ def main():
510
510
  return
511
511
 
512
512
  # For interactive mode, we'll allow continuing without a specific prompt
513
- if not args.prompt and not (args.shell or args.code or args.text or args.interactive or args.show_config or args.list_models or args.rewrite or args.gitcommsg):
513
+ if not getattr(args, 'prompt', None) and not (args.shell or args.code or args.text or args.interactive or args.show_config or args.list_models or args.rewrite or args.gitcommsg):
514
514
  # Simply use the parser's help
515
515
  parser = setup_argument_parser()
516
516
  parser.print_help()
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "ngpt"
3
- version = "4.0.0"
3
+ version = "4.0.2"
4
4
  description = "A Swiss army knife for LLMs: A fast, lightweight CLI and interactive chat tool that brings the power of any OpenAI-compatible LLM (OpenAI, Ollama, Groq, Claude, Gemini, etc.) straight to your terminal. rewrite texts or refine code, craft git commit messages, generate and run OS-aware shell commands."
5
5
  authors = [
6
6
  {name = "nazDridoy", email = "nazdridoy399@gmail.com"},
@@ -148,7 +148,7 @@ wheels = [
148
148
 
149
149
  [[package]]
150
150
  name = "ngpt"
151
- version = "4.0.0"
151
+ version = "4.0.2"
152
152
  source = { editable = "." }
153
153
  dependencies = [
154
154
  { name = "beautifulsoup4" },
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
File without changes
File without changes