@tiens.nguyen/gonext-local-worker 1.0.229 → 1.0.230
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.
- package/gonext_agent_chat.py +15 -8
- package/package.json +1 -1
package/gonext_agent_chat.py
CHANGED
|
@@ -3140,16 +3140,23 @@ def run_agent_chat(cfg):
|
|
|
3140
3140
|
_dh = str(_deploy_server.get("host")).strip()
|
|
3141
3141
|
_du = str(_deploy_server.get("user")).strip()
|
|
3142
3142
|
_dn = str(_deploy_server.get("name") or _dh).strip()
|
|
3143
|
+
# Diagnostic: prove the picked server reached python (visible in the worker log).
|
|
3144
|
+
_log(f"deploy target: {_du}@{_dh} (server '{_dn}') — injecting into the prompt")
|
|
3143
3145
|
_deploy_block = (
|
|
3144
|
-
f"\
|
|
3145
|
-
f"
|
|
3146
|
-
f"
|
|
3147
|
-
"
|
|
3148
|
-
f"
|
|
3149
|
-
f"
|
|
3146
|
+
f"\n*** DEPLOY TARGET — the user already chose a server: '{_dn}' → host={_dh}, "
|
|
3147
|
+
f"user={_du}. Do NOT search the project for host/user/credentials and do NOT ask "
|
|
3148
|
+
f"for them; you already have them. When the task is to DEPLOY, go straight to "
|
|
3149
|
+
f"deploy_web(local_dir, host='{_dh}', user='{_du}', remote_path='/var/www/<domain>', "
|
|
3150
|
+
f"domain='<domain>') — or ssh/scp/rsync to {_du}@{_dh}. KEY auth ONLY "
|
|
3151
|
+
f"(-o BatchMode=yes); NEVER ask for or type a password. If key auth isn't set up "
|
|
3152
|
+
f"(Permission denied publickey,password), STOP and tell the user to run "
|
|
3153
|
+
f"'ssh-copy-id {_du}@{_dh}' once, then retry. ***\n"
|
|
3150
3154
|
)
|
|
3151
3155
|
tool_hint = (
|
|
3152
|
-
|
|
3156
|
+
# Deploy target FIRST (when a server is picked) — a small model buries context deep
|
|
3157
|
+
# in a 20k-char hint, so the chosen server must lead, not trail (task #69 retest fix).
|
|
3158
|
+
_deploy_block
|
|
3159
|
+
+ f"Solve the TASK step by step (up to {max_steps} steps). At EACH step write a "
|
|
3153
3160
|
"brief Thought, then ONE code block that calls a SINGLE tool. You will SEE that "
|
|
3154
3161
|
"tool's result (Observation) before the next step — use it to decide what to do "
|
|
3155
3162
|
"next (e.g. web_search to find a URL, THEN fetch_url to read it). When you have "
|
|
@@ -3158,7 +3165,7 @@ def run_agent_chat(cfg):
|
|
|
3158
3165
|
"{{TOOL_LIST}}\n" # filled in below, once from the REAL registered tool objects
|
|
3159
3166
|
f"(Current date/time: {now_str} — pass a timezone to get_current_datetime() only "
|
|
3160
3167
|
"if the task needs a DIFFERENT one.)\n"
|
|
3161
|
-
+ _rag_tool_block + _ws_tool_block + _auto_test_block +
|
|
3168
|
+
+ _rag_tool_block + _ws_tool_block + _auto_test_block +
|
|
3162
3169
|
"\n"
|
|
3163
3170
|
"http_request RETURN FORMAT: 'HTTP 200\\n{body}' — first line is 'HTTP <code>', body follows.\n"
|
|
3164
3171
|
"\n"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tiens.nguyen/gonext-local-worker",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.230",
|
|
4
4
|
"description": "Polls GoNext cloud API for async local LLM jobs and runs them against Ollama/OpenAI-compatible servers on this Mac",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|