ngpt 3.11.1__py3-none-any.whl → 3.11.3__py3-none-any.whl

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.
ngpt/cli/args.py CHANGED
@@ -119,6 +119,11 @@ def setup_argument_parser():
119
119
  gitcommsg_group.add_argument('--max-recursion-depth', type=int, default=3,
120
120
  help='Maximum recursion depth for commit message condensing (default: 3)')
121
121
 
122
+ # Rewrite mode options
123
+ rewrite_group = parser.add_argument_group('Rewrite Mode Options')
124
+ rewrite_group.add_argument('--humanize', action='store_true',
125
+ help='Transform AI-generated text into human-like content that passes AI detection tools')
126
+
122
127
  # Mode flags (mutually exclusive)
123
128
  mode_group = parser.add_argument_group('Modes (mutually exclusive)')
124
129
  mode_exclusive_group = mode_group.add_mutually_exclusive_group()
@@ -135,11 +140,6 @@ def setup_argument_parser():
135
140
  mode_exclusive_group.add_argument('-g', '--gitcommsg', action='store_true',
136
141
  help='Generate AI-powered git commit messages from staged changes or diff file')
137
142
 
138
- # Rewrite mode options
139
- rewrite_group = parser.add_argument_group('Rewrite Mode Options')
140
- rewrite_group.add_argument('--humanize', action='store_true',
141
- help='Transform AI-generated text into human-like content that passes AI detection tools')
142
-
143
143
  return parser
144
144
 
145
145
  def parse_args():
ngpt/cli/modes/rewrite.py CHANGED
@@ -71,10 +71,18 @@ BETTER: "The React/Redux user interface needs redesigning to accommodate our pla
71
71
  """
72
72
 
73
73
  # System prompt for humanizing AI-generated text
74
- HUMANIZE_SYSTEM_PROMPT = """You are an advanced TextHumanizer specialist with expertise in transforming AI-generated content into authentic, undetectable human writing. Your primary mission is to identify AI patterns, eliminate detection markers, and create naturally human text while preserving the original meaning.
74
+ HUMANIZE_SYSTEM_PROMPT = """You are an advanced TextHumanizer specialist with expertise in transforming AI-generated content into authentic, undetectable human writing. Your primary mission is to identify AI patterns, eliminate detection markers, and create naturally human text while preserving the original meaning and tone.
75
75
 
76
76
  PRIMARY GOAL:
77
- Transform AI-generated text to make it indistinguishable from human writing while preserving the core meaning and information.
77
+ Transform AI-generated text to make it indistinguishable from human writing while preserving the core meaning, information, and tone of the original content.
78
+
79
+ TONE PRESERVATION (HIGHEST PRIORITY):
80
+ 1. Carefully analyze and maintain the original tone (academic, formal, casual, technical, etc.)
81
+ 2. For academic text: Preserve scholarly language and structure while making it sound like a human academic wrote it
82
+ 3. For casual text: Keep the conversational style while removing AI patterns
83
+ 4. For technical content: Maintain precise terminology and clarity while adding natural human expert voice
84
+ 5. For business content: Keep professionalism while reducing corporate jargon patterns
85
+ 6. For creative writing: Preserve stylistic elements while making them feel more authentically human
78
86
 
79
87
  IDENTIFICATION AND ANALYSIS:
80
88
  1. Identify common AI writing patterns, including:
@@ -99,26 +107,26 @@ HUMANIZATION TECHNIQUES:
99
107
  6. Add strategic redundancies where natural in human speech
100
108
  7. Insert occasional asides, parentheticals, or digressions that feel authentic
101
109
  8. Use distinctive punctuation patterns (like dashes, ellipses, or parentheses) strategically
102
- 9. Incorporate idioms, colloquialisms, and culturally relevant references
103
- 10. Add subtle opinion markers or perspective indicators
110
+ 9. Incorporate idioms, colloquialisms, and culturally relevant references when appropriate to the original tone
111
+ 10. Add subtle opinion markers or perspective indicators when appropriate to the content type
104
112
  11. Include personal anecdotes or first-person perspective ONLY when specific personal context is provided by the user - NEVER invent or hallucinate personal experiences or relationships
105
113
 
106
114
  CONTENT TYPE CUSTOMIZATION:
107
- 1. Academic papers: Maintain scholarly tone while adding natural voice variations, citation preferences, and subtle perspective markers
108
- 2. Blog posts: Incorporate conversational tone, personal anecdotes (only if provided), and reader engagement elements
115
+ 1. Academic papers: Maintain scholarly tone and rigor while adding natural voice variations, citation preferences, and subtle perspective markers
116
+ 2. Blog posts: Incorporate appropriate tone based on the original content, personal anecdotes (only if provided), and reader engagement elements
109
117
  3. Business content: Balance professionalism with authentic voice, avoiding corporate jargon while maintaining expertise
110
118
  4. Creative writing: Enhance style variations, unique metaphors, and distinctive voice elements
111
- 5. Technical content: Preserve accuracy while adding natural explanations and occasional simplifications
112
- 6. Social media: Include informal language, cultural references, and authentic engagement hooks
119
+ 5. Technical content: Preserve accuracy and terminology while adding natural explanations and occasional simplifications
120
+ 6. Social media: Match the original tone while adding authentic engagement elements
113
121
 
114
122
  AI DETECTION EVASION STRATEGIES:
115
123
  1. Avoid perfect coherence between paragraphs, mimicking natural thought progression
116
124
  2. Introduce strategic tense variations where naturally occurring
117
125
  3. Simulate human thinking patterns with occasional backtracking or clarification
118
126
  4. Vary vocabulary sophistication throughout the text
119
- 5. Include subjective judgments and personal opinions where appropriate
127
+ 5. Include subjective judgments and personal opinions where appropriate to the content type
120
128
  6. Add culturally or temporally relevant references that AIs might miss
121
- 7. Incorporate casual phrasings, contractions, and verbal quirks
129
+ 7. Incorporate casual phrasings, contractions, and verbal quirks when appropriate to the original tone
122
130
  8. Use nonlinear information organization that follows human association patterns
123
131
 
124
132
  READABILITY AND PURPOSE ADJUSTMENT:
@@ -135,13 +143,15 @@ Provide ONLY the humanized text with no explanations, comments, or meta-text.
135
143
 
136
144
  EXAMPLES:
137
145
 
138
- AI VERSION: "Artificial intelligence is revolutionizing the healthcare industry by enhancing diagnostic accuracy, streamlining administrative processes, and improving patient outcomes. With machine learning algorithms analyzing vast datasets, medical professionals can identify patterns and make predictions that were previously impossible. This technological advancement is not just changing healthcare delivery — it's fundamentally transforming the patient experience."
146
+ ACADEMIC AI VERSION: "The implementation of machine learning algorithms in healthcare diagnostics has demonstrated significant improvements in accuracy rates across multiple studies. These improvements are attributable to the neural network's capacity to identify subtle patterns in imaging data that may elude human observation."
147
+
148
+ ACADEMIC HUMANIZED VERSION: "Machine learning algorithms have shown remarkable improvements in healthcare diagnostic accuracy across several key studies. What's particularly interesting is how neural networks can catch subtle imaging patterns that even experienced clinicians might miss. This capability represents a significant advancement, though questions remain about implementation costs and training requirements in clinical settings."
139
149
 
140
- HUMANIZED VERSION: "AI is shaking things up in healthcare, and honestly, it's about time. Doctors can now catch things they might've missed before, thanks to these smart systems that plow through mountains of patient data. No more drowning in paperwork either—a huge relief for medical staff who'd rather focus on patients than pushing papers around.
150
+ CASUAL AI VERSION: "Artificial intelligence is revolutionizing the healthcare industry by enhancing diagnostic accuracy, streamlining administrative processes, and improving patient outcomes. With machine learning algorithms analyzing vast datasets, medical professionals can identify patterns and make predictions that were previously impossible."
141
151
 
142
- The real winners? Patients. They're getting faster, more accurate care without the typical hospital runaround. Plus, early detection rates for several conditions have improved dramatically where these systems are in place.
152
+ CASUAL HUMANIZED VERSION: "AI is shaking things up in healthcare, and honestly, it's about time. Doctors can now catch things they might've missed before, thanks to these smart systems that plow through mountains of patient data. No more drowning in paperwork either—a huge relief for medical staff who'd rather focus on patients than pushing papers around.
143
153
 
144
- But let's not pretend it's all perfect. These systems cost a fortune to implement, and plenty of doctors still view them with skepticism. Can't really blame them-medicine has always been as much art as science. The trick will be finding that sweet spot where technology enhances the human touch rather than replacing it."
154
+ The real winners? Patients. They're getting faster, more accurate care without the typical hospital runaround. Plus, early detection rates for several conditions have improved dramatically where these systems are in place."
145
155
  """
146
156
 
147
157
  # Template for adding preprompt to system prompts
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ngpt
3
- Version: 3.11.1
3
+ Version: 3.11.3
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
@@ -2,7 +2,7 @@ ngpt/__init__.py,sha256=kpKhViLakwMdHZkuLht2vWcjt0uD_5gR33gvMhfXr6w,664
2
2
  ngpt/__main__.py,sha256=j3eFYPOtCCFBOGh7NK5IWEnADnTMMSEB9GLyIDoW724,66
3
3
  ngpt/client.py,sha256=XjpA2UnvrRvzk6_DzVEddUTzoPlF8koQ-cZURpHoT7c,9041
4
4
  ngpt/cli/__init__.py,sha256=hebbDSMGiOd43YNnQP67uzr67Ue6rZPwm2czynr5iZY,43
5
- ngpt/cli/args.py,sha256=Vih8fBectyHHr2G8q3Kl2lflo_yFbB0ory55MZv1dEI,15048
5
+ ngpt/cli/args.py,sha256=tHx5CwSzmynbdPV5D-ly3Hs7OInZXjrvnNodtW_Eypk,15048
6
6
  ngpt/cli/config_manager.py,sha256=NQQcWnjUppAAd0s0p9YAf8EyKS1ex5-0EB4DvKdB4dk,3662
7
7
  ngpt/cli/formatters.py,sha256=HBYGlx_7eoAKyzfy0Vq5L0yn8yVKjngqYBukMmXCcz0,9401
8
8
  ngpt/cli/main.py,sha256=36mi8uYDcl56IhTkt-TJTRRhwHeF157xMAYgufLRAMo,29256
@@ -14,7 +14,7 @@ ngpt/cli/modes/chat.py,sha256=x1leClKq7UupA_CdW4tym0AivY2o_II123-I5IcAkxQ,7091
14
14
  ngpt/cli/modes/code.py,sha256=Qj59xq6fZqgUDw7SbvmPKX_gdpc7DHJhNkn1sB5qgUU,12932
15
15
  ngpt/cli/modes/gitcommsg.py,sha256=qFOrll333ebFOkzLP_WD1Qw0VfpphYqeiuHumkP6OB4,54833
16
16
  ngpt/cli/modes/interactive.py,sha256=E0c38NA8xnuRKAce40F35uFYcohFDvaqSB8nf1ywS-4,17958
17
- ngpt/cli/modes/rewrite.py,sha256=CHobPxwyU4QnxhfsUtFWYPeC0EaEUTPb-OpQlp-Bm84,19117
17
+ ngpt/cli/modes/rewrite.py,sha256=RaN4NOItKrGy5ilRrTa2amK4zmNo59j6K7plUf5SJPM,20290
18
18
  ngpt/cli/modes/shell.py,sha256=it1Brq1-LGeNfPKYBeVAwF-a78g9UP-KscofBZQkbr4,41589
19
19
  ngpt/cli/modes/text.py,sha256=NOikaU9YVCBgyaCl6pwy9EVt-YY5Q4jBx0l47izpVTA,6986
20
20
  ngpt/utils/__init__.py,sha256=_92f8eGMMOtQQA3uwgSRVwUEl1EIRFjWPUjcfGgI-eI,1244
@@ -23,8 +23,8 @@ ngpt/utils/config.py,sha256=wsArA4osnh8fKqOvtsPqqBxAz3DpdjtaWUFaRtnUdyc,10452
23
23
  ngpt/utils/log.py,sha256=f1jg2iFo35PAmsarH8FVL_62plq4VXH0Mu2QiP6RJGw,15934
24
24
  ngpt/utils/pipe.py,sha256=qRHF-Ma7bbU0cOcb1Yhe4S-kBavivtnnvLA3EYS4FY4,2162
25
25
  ngpt/utils/web_search.py,sha256=w5ke4KJMRxq7r5jtbUXvspja6XhjoPZloVkZ0IvBXIE,30731
26
- ngpt-3.11.1.dist-info/METADATA,sha256=LDJew065dCzioJ-141wxHZmLQFQ9WNNAZ4NYlLabbjc,31332
27
- ngpt-3.11.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
28
- ngpt-3.11.1.dist-info/entry_points.txt,sha256=SqAAvLhMrsEpkIr4YFRdUeyuXQ9o0IBCeYgE6AVojoI,44
29
- ngpt-3.11.1.dist-info/licenses/LICENSE,sha256=mQkpWoADxbHqE0HRefYLJdm7OpdrXBr3vNv5bZ8w72M,1065
30
- ngpt-3.11.1.dist-info/RECORD,,
26
+ ngpt-3.11.3.dist-info/METADATA,sha256=V8jJuKwIMdwPM3PMxTuPhPldJJH-4IegwcIgx-NqBeU,31332
27
+ ngpt-3.11.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
28
+ ngpt-3.11.3.dist-info/entry_points.txt,sha256=SqAAvLhMrsEpkIr4YFRdUeyuXQ9o0IBCeYgE6AVojoI,44
29
+ ngpt-3.11.3.dist-info/licenses/LICENSE,sha256=mQkpWoADxbHqE0HRefYLJdm7OpdrXBr3vNv5bZ8w72M,1065
30
+ ngpt-3.11.3.dist-info/RECORD,,
File without changes