ngpt 3.9.0__tar.gz → 3.9.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 (65) hide show
  1. ngpt-3.9.2/.github/workflows/repo-mirror.yml +75 -0
  2. {ngpt-3.9.0 → ngpt-3.9.2}/PKG-INFO +9 -2
  3. {ngpt-3.9.0 → ngpt-3.9.2}/README.md +8 -1
  4. ngpt-3.9.2/docs/examples/role_gallery.md +1255 -0
  5. ngpt-3.9.2/docs/examples.md +11 -0
  6. {ngpt-3.9.0 → ngpt-3.9.2}/docs/usage/roles.md +4 -0
  7. ngpt-3.9.2/docs/usage.md +11 -0
  8. {ngpt-3.9.0 → ngpt-3.9.2}/ngpt/cli/args.py +4 -0
  9. {ngpt-3.9.0 → ngpt-3.9.2}/ngpt/cli/roles.py +13 -4
  10. {ngpt-3.9.0 → ngpt-3.9.2}/pyproject.toml +1 -1
  11. {ngpt-3.9.0 → ngpt-3.9.2}/uv.lock +1 -1
  12. ngpt-3.9.0/docs/examples.md +0 -14
  13. ngpt-3.9.0/docs/usage.md +0 -17
  14. {ngpt-3.9.0 → ngpt-3.9.2}/.github/workflows/aur-publish.yml +0 -0
  15. {ngpt-3.9.0 → ngpt-3.9.2}/.github/workflows/python-publish.yml +0 -0
  16. {ngpt-3.9.0 → ngpt-3.9.2}/.gitignore +0 -0
  17. {ngpt-3.9.0 → ngpt-3.9.2}/.python-version +0 -0
  18. {ngpt-3.9.0 → ngpt-3.9.2}/COMMIT_GUIDELINES.md +0 -0
  19. {ngpt-3.9.0 → ngpt-3.9.2}/CONTRIBUTING.md +0 -0
  20. {ngpt-3.9.0 → ngpt-3.9.2}/LICENSE +0 -0
  21. {ngpt-3.9.0 → ngpt-3.9.2}/PKGBUILD +0 -0
  22. {ngpt-3.9.0 → ngpt-3.9.2}/docs/CONTRIBUTING.md +0 -0
  23. {ngpt-3.9.0 → ngpt-3.9.2}/docs/LICENSE.md +0 -0
  24. {ngpt-3.9.0 → ngpt-3.9.2}/docs/_config.yml +0 -0
  25. {ngpt-3.9.0 → ngpt-3.9.2}/docs/_sass/custom/custom.scss +0 -0
  26. {ngpt-3.9.0 → ngpt-3.9.2}/docs/configuration.md +0 -0
  27. {ngpt-3.9.0 → ngpt-3.9.2}/docs/examples/advanced.md +0 -0
  28. {ngpt-3.9.0 → ngpt-3.9.2}/docs/examples/basic.md +0 -0
  29. {ngpt-3.9.0 → ngpt-3.9.2}/docs/index.md +0 -0
  30. {ngpt-3.9.0 → ngpt-3.9.2}/docs/installation.md +0 -0
  31. {ngpt-3.9.0 → ngpt-3.9.2}/docs/overview.md +0 -0
  32. {ngpt-3.9.0 → ngpt-3.9.2}/docs/usage/cli_config.md +0 -0
  33. {ngpt-3.9.0 → ngpt-3.9.2}/docs/usage/cli_usage.md +0 -0
  34. {ngpt-3.9.0 → ngpt-3.9.2}/docs/usage/gitcommsg.md +0 -0
  35. {ngpt-3.9.0 → ngpt-3.9.2}/docs/usage/web_search.md +0 -0
  36. {ngpt-3.9.0 → ngpt-3.9.2}/ngpt/__init__.py +0 -0
  37. {ngpt-3.9.0 → ngpt-3.9.2}/ngpt/__main__.py +0 -0
  38. {ngpt-3.9.0 → ngpt-3.9.2}/ngpt/cli/__init__.py +0 -0
  39. {ngpt-3.9.0 → ngpt-3.9.2}/ngpt/cli/config_manager.py +0 -0
  40. {ngpt-3.9.0 → ngpt-3.9.2}/ngpt/cli/formatters.py +0 -0
  41. {ngpt-3.9.0 → ngpt-3.9.2}/ngpt/cli/main.py +0 -0
  42. {ngpt-3.9.0 → ngpt-3.9.2}/ngpt/cli/modes/__init__.py +0 -0
  43. {ngpt-3.9.0 → ngpt-3.9.2}/ngpt/cli/modes/chat.py +0 -0
  44. {ngpt-3.9.0 → ngpt-3.9.2}/ngpt/cli/modes/code.py +0 -0
  45. {ngpt-3.9.0 → ngpt-3.9.2}/ngpt/cli/modes/gitcommsg.py +0 -0
  46. {ngpt-3.9.0 → ngpt-3.9.2}/ngpt/cli/modes/interactive.py +0 -0
  47. {ngpt-3.9.0 → ngpt-3.9.2}/ngpt/cli/modes/rewrite.py +0 -0
  48. {ngpt-3.9.0 → ngpt-3.9.2}/ngpt/cli/modes/shell.py +0 -0
  49. {ngpt-3.9.0 → ngpt-3.9.2}/ngpt/cli/modes/text.py +0 -0
  50. {ngpt-3.9.0 → ngpt-3.9.2}/ngpt/cli/renderers.py +0 -0
  51. {ngpt-3.9.0 → ngpt-3.9.2}/ngpt/cli/ui.py +0 -0
  52. {ngpt-3.9.0 → ngpt-3.9.2}/ngpt/client.py +0 -0
  53. {ngpt-3.9.0 → ngpt-3.9.2}/ngpt/utils/__init__.py +0 -0
  54. {ngpt-3.9.0 → ngpt-3.9.2}/ngpt/utils/cli_config.py +0 -0
  55. {ngpt-3.9.0 → ngpt-3.9.2}/ngpt/utils/config.py +0 -0
  56. {ngpt-3.9.0 → ngpt-3.9.2}/ngpt/utils/log.py +0 -0
  57. {ngpt-3.9.0 → ngpt-3.9.2}/ngpt/utils/pipe.py +0 -0
  58. {ngpt-3.9.0 → ngpt-3.9.2}/ngpt/utils/web_search.py +0 -0
  59. {ngpt-3.9.0 → ngpt-3.9.2}/previews/ngpt-g.png +0 -0
  60. {ngpt-3.9.0 → ngpt-3.9.2}/previews/ngpt-i.png +0 -0
  61. {ngpt-3.9.0 → ngpt-3.9.2}/previews/ngpt-s-c.png +0 -0
  62. {ngpt-3.9.0 → ngpt-3.9.2}/previews/ngpt-sh-c-a.png +0 -0
  63. {ngpt-3.9.0 → ngpt-3.9.2}/previews/ngpt-w-self.png +0 -0
  64. {ngpt-3.9.0 → ngpt-3.9.2}/previews/ngpt-w.png +0 -0
  65. {ngpt-3.9.0 → ngpt-3.9.2}/wiki.md +0 -0
@@ -0,0 +1,75 @@
1
+ name: Repository Mirroring
2
+
3
+ on:
4
+ push:
5
+ branches: [ "main" ]
6
+ delete:
7
+ branches: [ "main" ]
8
+ workflow_dispatch: # Allows manual triggering
9
+
10
+ jobs:
11
+ mirror_to_gitlab:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v3
15
+ with:
16
+ fetch-depth: 0
17
+ - name: Configure Git
18
+ run: |
19
+ git config --global user.name "GitHub Actions"
20
+ git config --global user.email "actions@github.com"
21
+ - name: Mirror to GitLab
22
+ env:
23
+ SSH_PRIVATE_KEY: ${{ secrets.GITLAB_SSH_PRIVATE_KEY }}
24
+ TARGET_URL: ${{ secrets.GITLAB_REPO_URL }}
25
+ run: |
26
+ mkdir -p ~/.ssh
27
+ echo "${SSH_PRIVATE_KEY}" > ~/.ssh/id_rsa
28
+ chmod 600 ~/.ssh/id_rsa
29
+ ssh-keyscan gitlab.com >> ~/.ssh/known_hosts
30
+ # Push local branches and tags, excluding remote refs
31
+ git push --force ${TARGET_URL} 'refs/heads/*:refs/heads/*' 'refs/tags/*:refs/tags/*'
32
+
33
+ mirror_to_gitea:
34
+ runs-on: ubuntu-latest
35
+ steps:
36
+ - uses: actions/checkout@v3
37
+ with:
38
+ fetch-depth: 0
39
+ - name: Configure Git
40
+ run: |
41
+ git config --global user.name "GitHub Actions"
42
+ git config --global user.email "actions@github.com"
43
+ - name: Mirror to Gitea
44
+ env:
45
+ SSH_PRIVATE_KEY: ${{ secrets.GITEA_SSH_PRIVATE_KEY }}
46
+ TARGET_URL: ${{ secrets.GITEA_REPO_URL }}
47
+ run: |
48
+ mkdir -p ~/.ssh
49
+ echo "${SSH_PRIVATE_KEY}" > ~/.ssh/id_rsa
50
+ chmod 600 ~/.ssh/id_rsa
51
+ ssh-keyscan -t rsa $(echo ${TARGET_URL} | cut -d '@' -f 2 | cut -d ':' -f 1) >> ~/.ssh/known_hosts
52
+ # Push local branches and tags, excluding remote refs
53
+ git push --force ${TARGET_URL} 'refs/heads/*:refs/heads/*' 'refs/tags/*:refs/tags/*'
54
+
55
+ mirror_to_codeberg:
56
+ runs-on: ubuntu-latest
57
+ steps:
58
+ - uses: actions/checkout@v3
59
+ with:
60
+ fetch-depth: 0
61
+ - name: Configure Git
62
+ run: |
63
+ git config --global user.name "GitHub Actions"
64
+ git config --global user.email "actions@github.com"
65
+ - name: Mirror to Codeberg
66
+ env:
67
+ SSH_PRIVATE_KEY: ${{ secrets.CODEBERG_SSH_PRIVATE_KEY }}
68
+ TARGET_URL: ${{ secrets.CODEBERG_REPO_URL }}
69
+ run: |
70
+ mkdir -p ~/.ssh
71
+ echo "${SSH_PRIVATE_KEY}" > ~/.ssh/id_rsa
72
+ chmod 600 ~/.ssh/id_rsa
73
+ ssh-keyscan -t rsa codeberg.org >> ~/.ssh/known_hosts
74
+ # Push local branches and tags, excluding remote refs
75
+ git push --force ${TARGET_URL} 'refs/heads/*:refs/heads/*' 'refs/tags/*:refs/tags/*'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ngpt
3
- Version: 3.9.0
3
+ Version: 3.9.2
4
4
  Summary: Swiss army knife for LLMs: powerful CLI and interactive chatbot in one package. Seamlessly work with OpenAI, Ollama, Groq, Claude, Gemini, or any OpenAI-compatible API to generate code, craft git commits, rewrite text, and execute shell commands.
5
5
  Project-URL: Homepage, https://github.com/nazdridoy/ngpt
6
6
  Project-URL: Repository, https://github.com/nazdridoy/ngpt
@@ -171,6 +171,11 @@ ngpt --role-config create json_generator
171
171
  # Use a custom role for specific tasks
172
172
  ngpt --role json_generator "Generate user data with name, email, and address"
173
173
 
174
+ # Use a role from the Role Gallery (first create it, then use it)
175
+ ngpt --role-config create sql_expert
176
+ # Paste the SQL Expert role from https://nazdridoy.github.io/ngpt/examples/role-gallery/
177
+ ngpt --role sql_expert "Write a query to find all users who made a purchase in the last 30 days"
178
+
174
179
  # Rewrite text to improve quality while preserving tone and meaning
175
180
  echo "your text" | ngpt -r
176
181
 
@@ -363,6 +368,8 @@ Key documentation sections:
363
368
  - [Installation Guide](https://nazdridoy.github.io/ngpt/installation/)
364
369
  - [CLI Usage Guide](https://nazdridoy.github.io/ngpt/usage/cli_usage/)
365
370
  - [Configuration Guide](https://nazdridoy.github.io/ngpt/configuration/)
371
+ - [Custom Roles Guide](https://nazdridoy.github.io/ngpt/usage/roles/)
372
+ - [Role Gallery](https://nazdridoy.github.io/ngpt/examples/role-gallery/)
366
373
  - [Examples & Tutorials](https://nazdridoy.github.io/ngpt/examples/basic/)
367
374
  - [Git Commit Message Guide](https://nazdridoy.github.io/ngpt/usage/gitcommsg/)
368
375
 
@@ -643,7 +650,7 @@ ngpt --role json_generator "Generate random user profile data"
643
650
  }
644
651
  ```
645
652
 
646
- Custom roles let you define specialized AI personas that you can reuse across different prompts, making it easy to get consistent responses for specific tasks.
653
+ Custom roles allow you to create reusable AI personas for consistent responses across various prompts. For more details, see the [Custom Roles Guide](https://nazdridoy.github.io/ngpt/usage/roles/) and check out the [Role Gallery](https://nazdridoy.github.io/ngpt/examples/role-gallery/) for ready-to-use roles.
647
654
 
648
655
  #### Web Search Integration
649
656
 
@@ -134,6 +134,11 @@ ngpt --role-config create json_generator
134
134
  # Use a custom role for specific tasks
135
135
  ngpt --role json_generator "Generate user data with name, email, and address"
136
136
 
137
+ # Use a role from the Role Gallery (first create it, then use it)
138
+ ngpt --role-config create sql_expert
139
+ # Paste the SQL Expert role from https://nazdridoy.github.io/ngpt/examples/role-gallery/
140
+ ngpt --role sql_expert "Write a query to find all users who made a purchase in the last 30 days"
141
+
137
142
  # Rewrite text to improve quality while preserving tone and meaning
138
143
  echo "your text" | ngpt -r
139
144
 
@@ -326,6 +331,8 @@ Key documentation sections:
326
331
  - [Installation Guide](https://nazdridoy.github.io/ngpt/installation/)
327
332
  - [CLI Usage Guide](https://nazdridoy.github.io/ngpt/usage/cli_usage/)
328
333
  - [Configuration Guide](https://nazdridoy.github.io/ngpt/configuration/)
334
+ - [Custom Roles Guide](https://nazdridoy.github.io/ngpt/usage/roles/)
335
+ - [Role Gallery](https://nazdridoy.github.io/ngpt/examples/role-gallery/)
329
336
  - [Examples & Tutorials](https://nazdridoy.github.io/ngpt/examples/basic/)
330
337
  - [Git Commit Message Guide](https://nazdridoy.github.io/ngpt/usage/gitcommsg/)
331
338
 
@@ -606,7 +613,7 @@ ngpt --role json_generator "Generate random user profile data"
606
613
  }
607
614
  ```
608
615
 
609
- Custom roles let you define specialized AI personas that you can reuse across different prompts, making it easy to get consistent responses for specific tasks.
616
+ Custom roles allow you to create reusable AI personas for consistent responses across various prompts. For more details, see the [Custom Roles Guide](https://nazdridoy.github.io/ngpt/usage/roles/) and check out the [Role Gallery](https://nazdridoy.github.io/ngpt/examples/role-gallery/) for ready-to-use roles.
610
617
 
611
618
  #### Web Search Integration
612
619