@ordewell/cli 0.8.1 → 0.9.0

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 (2) hide show
  1. package/dist/main.js +10 -1
  2. package/package.json +3 -3
package/dist/main.js CHANGED
@@ -220,6 +220,13 @@ Environment:
220
220
  ORCHESTRATOR_MODEL Default: deepseek/deepseek-v4-flash
221
221
  OPENROUTER_BASE_URL Default: https://openrouter.ai/api/v1
222
222
  ORDEWELL_AUTONOMOUS_MODE true: Full, false: Guarded, for new sessions (see "ordewell auto")
223
+ ORDEWELL_APPROVAL_MODE What the planner may run beyond read-only commands: auto (default:
224
+ Guarded asks, Full runs only the allowlist), ask, allowlist or allow.
225
+ File writes are always refused
226
+ ORDEWELL_APPROVAL_ALLOW Extra allowlist entries, comma-separated: "gh issue list",
227
+ "gcloud * * list", "mcp:find-*", "https://docs.example.com/*";
228
+ a leading ! excludes
229
+ ORDEWELL_APPROVAL_DEFAULTS false: drop the built-in read-only allowlist
223
230
  ORDEWELL_PORT Daemon port CLI commands target (default: 3742)
224
231
  ORDEWELL_DIRENV false: agents skip the project's direnv .envrc
225
232
  ORDEWELL_RESEARCH_ENABLED true (default) or false
@@ -978,6 +985,7 @@ function describeApproval(event) {
978
985
  const detail = event.detail ? String(event.detail) : "";
979
986
  const headline = event.kind === "shell_command" ? `The planner wants to run a command:
980
987
  ${subject}` : event.kind === "url_fetch" ? `The planner wants to fetch a URL:
988
+ ${subject}` : event.kind === "mcp_tool" ? `The planner wants to use an MCP tool:
981
989
  ${subject}` : `The planner wants to read a path outside the workspace:
982
990
  ${subject}`;
983
991
  const detailLine = detail ? `
@@ -4009,6 +4017,7 @@ var APPROVAL_KIND = {
4009
4017
  shell_command: "Run a command",
4010
4018
  url_fetch: "Fetch a URL",
4011
4019
  external_path: "Read outside the workspace",
4020
+ mcp_tool: "Use an MCP tool",
4012
4021
  runner_tool: "Use a tool"
4013
4022
  };
4014
4023
  var DECIDED_BY = {
@@ -4919,7 +4928,7 @@ function renderOverlay(state, rows, cols) {
4919
4928
  if (overlay.kind === "help") return renderHelp(overlay.scroll ?? 0, rows, cols);
4920
4929
  if (overlay.kind === "approval") {
4921
4930
  const { request } = overlay;
4922
- const headline = request.kind === "shell_command" ? "The planner wants to run a command" : request.kind === "url_fetch" ? "The planner wants to fetch a URL" : "The planner wants to read a path outside the workspace";
4931
+ const headline = request.kind === "shell_command" ? "The planner wants to run a command" : request.kind === "url_fetch" ? "The planner wants to fetch a URL" : request.kind === "mcp_tool" ? "The planner wants to use an MCP tool" : "The planner wants to read a path outside the workspace";
4923
4932
  const queued = state.pendingApprovals.length;
4924
4933
  return frame(
4925
4934
  "Approval needed",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ordewell/cli",
3
- "version": "0.8.1",
3
+ "version": "0.9.0",
4
4
  "description": "Ordewell CLI and TUI — plan, run and verify coding-agent tasks from the terminal.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Alessandro Costanzo Ciano",
@@ -49,8 +49,8 @@
49
49
  "typecheck": "tsc --noEmit"
50
50
  },
51
51
  "dependencies": {
52
- "@ordewell/core": "^0.8.1",
53
- "@ordewell/web": "^0.8.1",
52
+ "@ordewell/core": "^0.9.0",
53
+ "@ordewell/web": "^0.9.0",
54
54
  "string-width": "^7.2.0",
55
55
  "ws": "^8.18.0"
56
56
  },