owenloop 0.5.17 → 0.5.18

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/CHANGELOG.md CHANGED
@@ -4,6 +4,13 @@ All notable changes to this project are documented here. The format is based on
4
4
  [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project
5
5
  adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [0.5.18](https://github.com/typicalday/owenloop/compare/v0.5.17...v0.5.18) (2026-08-22)
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * **work:** show the call a parked approval is asking about ([#281](https://github.com/typicalday/owenloop/issues/281)) ([86ab4b0](https://github.com/typicalday/owenloop/commit/86ab4b0878b71a25e9d1f31290657a063030ea90))
13
+
7
14
  ## [0.5.17](https://github.com/typicalday/owenloop/compare/v0.5.16...v0.5.17) (2026-08-21)
8
15
 
9
16
 
@@ -315,6 +315,46 @@ function decisionMessage(reason, note) {
315
315
  'If the work has an equivalent inside your own working directory, do that instead. If it does not, call the `ask` tool on the mounted `owenloop` MCP server and state what you need and why. Do not guess, and do not submit work that pretends this succeeded.',
316
316
  ].join(' ');
317
317
  }
318
+ /** The only model-authored arguments safe to summarize for an approval prompt. */
319
+ const APPROVAL_FILE_PATH_ARGS = new Map([
320
+ ['Read', ['file_path']],
321
+ ['Write', ['file_path']],
322
+ ['Edit', ['file_path']],
323
+ ['NotebookRead', ['notebook_path']],
324
+ ['NotebookEdit', ['notebook_path']],
325
+ ['Glob', ['path']],
326
+ ['Grep', ['path']],
327
+ ]);
328
+ function nonEmptyString(value) {
329
+ return typeof value === 'string' && value !== '' ? value : undefined;
330
+ }
331
+ /** A hostile model-authored input must not turn an approval into a hung callback. */
332
+ function inputString(input, key) {
333
+ try {
334
+ return nonEmptyString(input[key]);
335
+ }
336
+ catch {
337
+ return undefined;
338
+ }
339
+ }
340
+ /**
341
+ * Return the bounded one-line call detail an operator needs to approve Claude
342
+ * tool use, without serializing the arbitrary model-authored input bag.
343
+ */
344
+ function approvalTitle(toolName, input, suppliedTitle) {
345
+ let title = nonEmptyString(suppliedTitle);
346
+ if (title === undefined && toolName === 'Bash')
347
+ title = inputString(input, 'command');
348
+ if (title === undefined) {
349
+ const paths = (APPROVAL_FILE_PATH_ARGS.get(toolName) ?? [])
350
+ .map((key) => inputString(input, key))
351
+ .filter((path) => path !== undefined);
352
+ if (paths.length > 0)
353
+ title = `${toolName} ${paths.join(', ')}`;
354
+ }
355
+ const selected = title ?? nonEmptyString(toolName);
356
+ return selected === undefined ? undefined : cap(selected);
357
+ }
318
358
  /**
319
359
  * The `canUseTool` callback, wired on every start.
320
360
  *
@@ -355,6 +395,7 @@ function buildCanUseTool(cwd, policy, filesystem, onEvent, approvals) {
355
395
  if (verdict.decision === 'allow')
356
396
  return { behavior: 'allow' };
357
397
  if (approvals !== undefined) {
398
+ const title = approvalTitle(toolName, input, options.title);
358
399
  onEvent({
359
400
  kind: 'progress',
360
401
  text: `permission escalation: ${toolName} raised for approval — ${verdict.reason}`,
@@ -366,7 +407,7 @@ function buildCanUseTool(cwd, policy, filesystem, onEvent, approvals) {
366
407
  toolName,
367
408
  toolInput: input,
368
409
  reason: verdict.reason,
369
- ...(options.title !== undefined ? { title: options.title } : {}),
410
+ ...(title !== undefined ? { title } : {}),
370
411
  ...(options.signal !== undefined ? { signal: options.signal } : {}),
371
412
  });
372
413
  }
package/docs/cli.md CHANGED
@@ -688,6 +688,13 @@ The execution settings file is `<config>/settings.json` (see
688
688
 
689
689
  `work approvals` distinguishes a worker that is still running and waiting on a
690
690
  tool decision from a pending input gate or an `ask` that ends the current run.
691
+ Each human-readable pending approval includes a bounded `call:` title when the
692
+ harness can provide one. Claude preserves a non-empty SDK title; otherwise it
693
+ shows the Bash command, a known file-tool path, or the tool name as a fallback.
694
+ Titles use the adapters' shared 2,000-character cap. The separate `why:` text
695
+ continues to explain the gatekeeper decision. `--json` returns the hub's
696
+ approval rows unchanged and therefore exposes the title, not the full
697
+ model-authored tool-input bag.
691
698
  Listing uses the agent credential selected by `OWENLOOP_ACCOUNT` (default
692
699
  `default`). `approve` and `deny` always use the stored `human` credential,
693
700
  ignore `OWENLOOP_ACCOUNT` and `OWENLOOP_TOKEN`, and require
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "owenloop",
3
- "version": "0.5.17",
3
+ "version": "0.5.18",
4
4
  "description": "Deterministic rails for agentic workflows. Declare steps and dependencies; the engine guarantees order, redoes what changes invalidate, and stops what keeps failing — instead of hoping the agent follows through.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "typicalday",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "owenloop",
3
- "version": "0.5.17",
3
+ "version": "0.5.18",
4
4
  "description": "Claude Code driver for owenloop — cross-harness shift and conduct skills driven by the owenloop CLI, plus one hub control-plane MCP server backing an author skill and a fallback worker, for conducting and authoring workflows against your hosted owenloop server.",
5
5
  "author": {
6
6
  "name": "Typical Day"
@@ -7,7 +7,7 @@
7
7
  "mcp"
8
8
  ],
9
9
  "env": {
10
- "OWENLOOP_PLUGIN_VERSION": "0.5.17"
10
+ "OWENLOOP_PLUGIN_VERSION": "0.5.18"
11
11
  }
12
12
  }
13
13
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "owenloop",
3
- "version": "0.5.17",
3
+ "version": "0.5.18",
4
4
  "description": "Codex plugin for the owenloop workflow engine.",
5
5
  "skills": "./skills/",
6
6
  "mcpServers": "./.mcp.json"
@@ -6,7 +6,7 @@
6
6
  "mcp"
7
7
  ],
8
8
  "env": {
9
- "OWENLOOP_PLUGIN_VERSION": "0.5.17"
9
+ "OWENLOOP_PLUGIN_VERSION": "0.5.18"
10
10
  },
11
11
  "env_vars": [
12
12
  "HOME",