@tiens.nguyen/gonext-local-worker 1.0.272 → 1.0.274

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.
@@ -5667,8 +5667,15 @@ def run_agent_chat(cfg):
5667
5667
  wd = _rag_read_allowed(_wd_in or _default_ws_root())
5668
5668
  w = _ws_for_path(wd)
5669
5669
  if w is None or not w.get("allowRun"):
5670
+ # Contextual nudge (task #102): the #1 reason the model shells out here is
5671
+ # to zip/deliver a file — point it at create_download, which needs NO shell
5672
+ # and works even in a run-disabled (e.g. web) workspace. Then the re-register
5673
+ # hint for cases that genuinely need a command.
5670
5674
  msg = ("Error: running commands is not enabled for this workspace. "
5671
- "Re-register it with: gonext-local-worker workspace add <path> --allow-run")
5675
+ "To give the user a FILE or a ZIP of a folder, use the create_download "
5676
+ "tool instead — it needs no shell and works here. "
5677
+ "(To enable real commands, re-register with: "
5678
+ "gonext-local-worker workspace add <path> --allow-run)")
5672
5679
  _last_obs["text"] = msg
5673
5680
  return msg
5674
5681
  argv = shlex.split(command or "")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiens.nguyen/gonext-local-worker",
3
- "version": "1.0.272",
3
+ "version": "1.0.274",
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",