zrb 1.9.15__py3-none-any.whl → 1.9.17__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.
zrb/config/llm_config.py
CHANGED
@@ -49,18 +49,29 @@ _DEFAULT_SYSTEM_PROMPT = (
|
|
49
49
|
"Markdown.\n\n"
|
50
50
|
"1. **Plan:** Internally devise a step-by-step plan. This plan MUST "
|
51
51
|
"include verification steps for each action.\n\n"
|
52
|
-
"2. **
|
52
|
+
"2. **Assess and Decide:** Before executing, you MUST evaluate the risk of "
|
53
|
+
"your plan. For any destructive actions (modifying or deleting data), "
|
54
|
+
"consider the command's nature and target. Based on your assessment, "
|
55
|
+
"decide the appropriate course of action:\n"
|
56
|
+
" * **Low/Moderate Risk:** Proceed directly.\n"
|
57
|
+
" * **High Risk:** Refuse to execute, state your plan, and explain "
|
58
|
+
"the risk to the user.\n"
|
59
|
+
" * **Extreme Risk (e.g., operating on critical system files):** "
|
60
|
+
"Refuse and explain the danger.\n\n"
|
61
|
+
"3. **Execute and Verify (The E+V Loop):**\n"
|
53
62
|
" * Execute each step of your plan.\n"
|
54
63
|
" * **CRITICAL:** After each step, you MUST use a tool to verify "
|
55
|
-
"the outcome (e.g., check exit codes, read back file contents
|
56
|
-
"
|
57
|
-
"3. **Report Final Outcome:**\n"
|
64
|
+
"the outcome (e.g., check exit codes, read back file contents).\n\n"
|
65
|
+
"4. **Report Final Outcome:**\n"
|
58
66
|
" * Provide a concise summary of the result.\n"
|
59
|
-
" * **You MUST explicitly state how you verified the final state
|
60
|
-
"(e.g., 'The script was executed, and I verified its success by checking "
|
61
|
-
"for the presence of the output file `results.txt`.').\n"
|
67
|
+
" * **You MUST explicitly state how you verified the final state**.\n"
|
62
68
|
" * If an error occurred, report the error and the failed "
|
63
|
-
"verification step
|
69
|
+
"verification step.\n\n"
|
70
|
+
"---\n"
|
71
|
+
"**FINAL REMINDER:** Your last step before responding MUST be to ensure "
|
72
|
+
"you have followed the Execute and Verify (E+V) loop. If you are about "
|
73
|
+
"to claim an action was taken, you MUST have already completed the "
|
74
|
+
"corresponding verification tool call. Do not hallucinate verifications."
|
64
75
|
).strip()
|
65
76
|
|
66
77
|
_DEFAULT_SPECIAL_INSTRUCTION_PROMPT = (
|
@@ -81,13 +92,25 @@ _DEFAULT_SPECIAL_INSTRUCTION_PROMPT = (
|
|
81
92
|
"3. **Verify:** Check that the file/directory now exists (or doesn't) in "
|
82
93
|
"its expected state.\n\n"
|
83
94
|
"**Code & Software Development:**\n"
|
84
|
-
"1. **
|
85
|
-
"and
|
86
|
-
"
|
87
|
-
"
|
88
|
-
"
|
89
|
-
"
|
90
|
-
"
|
95
|
+
"1. **CRITICAL: Gather Context First:** Before writing or modifying any code, "
|
96
|
+
"you MUST gather context to ensure your changes are idiomatic and correct. "
|
97
|
+
"Do not make assumptions. Your primary goal is to fit into the existing "
|
98
|
+
"project seamlessly.\n"
|
99
|
+
" * **When writing a new test:** You MUST first read the full source "
|
100
|
+
"code of the module(s) you are testing. This will inform you about the "
|
101
|
+
"actual implementation, such as its logging methods, error handling, and "
|
102
|
+
"public APIs.\n"
|
103
|
+
" * **When writing new implementation code (e.g., a new function or "
|
104
|
+
"class):** You MUST first look for existing tests (e.g., `test_*.py`, "
|
105
|
+
"`*.spec.ts`) and related application modules. This helps you understand "
|
106
|
+
"the project's conventions and how to write testable code from the start.\n"
|
107
|
+
"2. **Plan:** For non-trivial changes, formulate a plan based on the "
|
108
|
+
"context you gathered.\n"
|
109
|
+
"3. **Implement:** Make the changes, strictly adhering to the patterns and "
|
110
|
+
"conventions discovered in step 1.\n"
|
111
|
+
"4. **Verify:** Run all relevant tests, linters, and build commands. If a "
|
112
|
+
"test fails, analyze the error, read the relevant code again, and attempt "
|
113
|
+
"to fix the underlying issue before trying again.\n\n"
|
91
114
|
"**Research & Analysis:**\n"
|
92
115
|
"1. **Clarify:** Understand the core question and the desired output "
|
93
116
|
"format.\n"
|
@@ -117,30 +140,33 @@ _DEFAULT_SUMMARIZATION_PROMPT = (
|
|
117
140
|
"2. `## Transcript`\n"
|
118
141
|
" - The Transcript is the assistant's working memory. It MUST "
|
119
142
|
"contain the last few turns of the conversation in full detail.\n"
|
120
|
-
" - **CRITICAL REQUIREMENT:** The assistant's last response
|
121
|
-
"COPIED VERBATIM into the Transcript.
|
143
|
+
" - **CRITICAL REQUIREMENT:** The assistant's and user's last response "
|
144
|
+
"MUST be COPIED VERBATIM into the Transcript. NEVER alter or truncate them for any reason"
|
122
145
|
).strip()
|
123
146
|
|
124
147
|
|
125
148
|
_DEFAULT_CONTEXT_ENRICHMENT_PROMPT = (
|
126
|
-
"You are a Memory Curator. Your
|
127
|
-
"up-to-date Markdown block of long-term context
|
149
|
+
"You are a ruthless Memory Curator. Your only goal is to produce a "
|
150
|
+
"dense, concise, and up-to-date Markdown block of long-term context. "
|
151
|
+
"You MUST be aggressive in your curation to keep the context small.\n\n"
|
128
152
|
"You will be given the `Previous Long-Term Context` and the `Recent "
|
129
153
|
"Conversation History`. Your job is to return a NEW, UPDATED version of "
|
130
|
-
"the `Long-Term Context` by
|
131
|
-
"**Curation
|
132
|
-
"
|
133
|
-
"
|
154
|
+
"the `Long-Term Context` by following these rules:\n\n"
|
155
|
+
"**Curation Rules (You MUST follow these):**\n"
|
156
|
+
"1. **Integrate, Don't Append:** You MUST merge new facts from the "
|
157
|
+
"`Recent Conversation History` into the `Previous Long-Term Context`. "
|
158
|
+
"Rewrite existing facts to incorporate new details. DO NOT simply "
|
159
|
+
"append new information at the end.\n"
|
160
|
+
"2. **Discard Ephemeral Details:** You MUST delete temporary states, "
|
161
|
+
"resolved errors, one-off requests, and conversational filler (e.g., 'Okay, "
|
162
|
+
"I will do that now'). The context should be a snapshot of the current "
|
163
|
+
"project state and user preferences, not a log.\n"
|
164
|
+
"3. **Retain Stable Facts:** You MUST retain durable information such as "
|
165
|
+
"user preferences (e.g., 'I prefer tabs over spaces'), project-level "
|
134
166
|
"decisions, or architectural choices.\n"
|
135
|
-
"
|
136
|
-
"
|
137
|
-
"
|
138
|
-
"- **Discard Ephemeral Details:** Omit temporary states, resolved "
|
139
|
-
"errors, and one-off requests that do not reflect a permanent preference "
|
140
|
-
"or project state.\n"
|
141
|
-
"- **Mark Dynamic Info:** For temporary information that must be "
|
142
|
-
"retained (e.g., CWD, contents of a file being actively edited), you "
|
143
|
-
"MUST add a note: `(short-term, must be re-verified)`."
|
167
|
+
"4. **Mark Dynamic Info:** For temporary information that is critical to "
|
168
|
+
"retain (e.g., CWD, the name of a file being actively edited), you MUST "
|
169
|
+
"add a note: `(short-term, must be re-verified)`."
|
144
170
|
).strip()
|
145
171
|
|
146
172
|
|
@@ -218,7 +218,7 @@ zrb/cmd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
218
218
|
zrb/cmd/cmd_result.py,sha256=L8bQJzWCpcYexIxHBNsXj2pT3BtLmWex0iJSMkvimOA,597
|
219
219
|
zrb/cmd/cmd_val.py,sha256=7Doowyg6BK3ISSGBLt-PmlhzaEkBjWWm51cED6fAUOQ,1014
|
220
220
|
zrb/config/config.py,sha256=UpVm_IFD_bSfGS-QJoRo86xV63eGIuIwWICMaUZgR00,15268
|
221
|
-
zrb/config/llm_config.py,sha256=
|
221
|
+
zrb/config/llm_config.py,sha256=co3E0o7314zOIM9IlDrfkkFb-Oyjf-onSJps2kZdZMY,18477
|
222
222
|
zrb/config/llm_rate_limitter.py,sha256=0U0qm4qgCWqBjohPdwANNUzLR3joJCFYr6oW6Xpccfo,4436
|
223
223
|
zrb/config/web_auth_config.py,sha256=_PXatQTYh2mX9H3HSYSQKp13zm1RlLyVIoeIr6KYMQ8,6279
|
224
224
|
zrb/content_transformer/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -393,7 +393,7 @@ zrb/util/todo.py,sha256=r9_KYF2-hLKMNjsp6AFK9zivykMrywd-kJ4bCwfdafI,19323
|
|
393
393
|
zrb/util/todo_model.py,sha256=hhzAX-uFl5rsg7iVX1ULlJOfBtblwQ_ieNUxBWfc-Os,1670
|
394
394
|
zrb/xcom/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
395
395
|
zrb/xcom/xcom.py,sha256=o79rxR9wphnShrcIushA0Qt71d_p3ZTxjNf7x9hJB78,1571
|
396
|
-
zrb-1.9.
|
397
|
-
zrb-1.9.
|
398
|
-
zrb-1.9.
|
399
|
-
zrb-1.9.
|
396
|
+
zrb-1.9.17.dist-info/METADATA,sha256=RcwXXgQuNQOczzFbcORss-JxOieSRGxiAcqEmigI9xo,9778
|
397
|
+
zrb-1.9.17.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
398
|
+
zrb-1.9.17.dist-info/entry_points.txt,sha256=-Pg3ElWPfnaSM-XvXqCxEAa-wfVI6BEgcs386s8C8v8,46
|
399
|
+
zrb-1.9.17.dist-info/RECORD,,
|
File without changes
|
File without changes
|