Skip to content

v0.4.36

Choose a tag to compare

@hachej hachej released this 30 Oct 11:55
ef38972
  • File tree folders (@hachej/boring-ui-kit/file-tree; D-557). Folder rows get the actions menu (Rename, Move to…, Delete), F2 and Delete. controller.rename, move and remove accept a listed folder and work file by file: not atomic, so a refusal leaves the rest in place and says how many changed; trying again finishes. Labels add deleteFolderDescription. No New folder.

  • Workspace rename and delete (@hachej/boring-files; D-557). A rename now creates the folder it lands in, as a publication does. With the new optional pruneEmptied: true (folder operations of the tree only), a rename or delete also removes a folder it leaves empty, up to the first that still holds something. Single-file changes prune nothing. Best effort: Pi's Node file system cannot remove a directory non-recursively, so on disk hosts an emptied folder stays listed.

  • Audit extension (@hachej/boring-agent/audit; D-555). New opt-in createAuditExtension({ sink, user, redact }): each finished tool call goes to your sink with who acted. Without redact, no argument or output value is recorded. Nothing changes unless you select it.

  • Agents report their own failures (@hachej/boring-agent; D-553, fleet standard S6). On by default, no app code: every defineAgent agent gets a report_bug tool and emits content-free agent.struggle events (tool_error, tool_retry, rephrase, correction, abandoned, report_bug). The agent's tool list and its model's tool definitions gain report_bug. Events go to the sink of setStruggleSink (@hachej/boring-agent/struggle, set once by the host), else one log line. Opt out with struggle: false; an agent with its own report_bug keeps it, and a self-evolving agent gets the events without the tool. report_bug sends a category and a real tool name; the agent's own text only with struggle: { agentText: true }. A sink gets 2 s (sinkTimeoutMs). Delegated children get report_bug too. childTools lists and unlisted: 'deny' approval policies keep blocking it until you list it; the automatic events still fire. A host extension already named agent.<id>.struggle now clashes: rename it or opt out. Conversations created before this keep their agent until reconfigured.

  • Delegate metering (@hachej/boring-agent; D-556). onChild and meter get a new last argument { callId, taskId, requestId }. New meterFromSink({ sink, scope, … }) in @hachej/boring-agent/metering is a ready DelegateOptions.meter: a child's spend goes to the same ledger. Additive.

  • Skills (@hachej/boring-agent/agents; D-564). skillInFolder(skill, folder) is now exported. New loadUnlisted(conversationId, name) option on staticSkills and liveSkills: load_skill asks it for a name the conversation does not see, so a host can serve skills kept out of the listing. It wins over visible, so check permission in it. Additive.

What's Changed

  • feat(agent): export skillInFolder; loadUnlisted hook on load_skill by @hachej in #1925
  • feat(agent): delegate onChild and meter name the call; meterFromSink by @hachej in #1923
  • feat(agent): agents report their own failures by default (S6) by @hachej in #1924
  • feat(agent): createAuditExtension(sink, user, redact) by @hachej in #1922
  • feat(file-tree): rename, move and delete folders by @hachej in #1926
  • Release 0.4.36 by @hachej in #1927

Full Changelog: v0.4.35...v0.4.36