Jump to content

Recommended Posts

Posted

This week in the core, dev branch updates were largely focused on API documentation, with several minor core bug fixes (via WireTests) resolved during the at the same time. We also have new versions of the AgentTools and WireTests modules released this week as well. 

Core

New: API.md documentation files (for agents and us): 

  • $classLoader / WireClassLoader — covers namespace registration, class maps, prefix/suffix path fallbacks, and findClassFile() for debugging (view)
  • $datetime / WireDateTime — covers all public methods including date formatting, string-to-timestamp conversion, and relative/elapsed time output, with live-tested examples (view)
  • $log / WireLog — covers save(), message(), warning(), error(), reading with getEntries()/getLines(), pruning, deleting, and built-in log names (view)
  • $notices / Notices — covers adding notices, Notice flags (including string names), iterating, filtering with viewable(), hasErrors(), hasWarnings(), rendering, and Notice properties (view)
  • $fields / Fields and Field — covers getting, creating, saving, cloning, tagging, flag constants, and field methods; (view)
  • $fieldgroups / Fieldgroups and Fieldgroup — covers field membership, template relationships, and field context (view)
  • $templates / Templates, Template, and TemplateFile — three separate API.md files covering the templates manager, the Template object in full, and the TemplateFile rendering class (View: Templates, Template, and TemplateFile). 

AgentTools module

In AgentTools admin, you'll find a new "Tasks" feature. This lets you create your own custom tasks, which are essentially saved prompts that you can reuse and configure. The system also comes with several built-in tasks, including:

  • WCAG accessibility review: Review templates and representative content for common accessibility issues.
  • Recent log review: Scan ProcessWire logs for recent errors, suspicious activity, and operational issues.
  • Migration review: Review pending AgentTools migrations before they are applied.
  • SEO and content hygiene review: Review site structure and representative content for SEO/content quality issues.
  • Template file security scan: Scan template files for common security risks in output, selectors, and request handling.

A shared animated processing overlay UI was also added, used by both AgentTools and Page Engineer. (Try it!). 

Probably only of interest to agents, but more tools were made available via the CLI, which helps out with Engineer requests, as well as AI agents that you may have available on your localhost dev environment. 

WireTests module

New comprehensive tests added to WireTests for the following API variables:

  • WireClassLoader ($classLoader)
  • User and Users ($user and $users)
  • Role and Roles ($roles)
  • Permission and Permissions ($permissions)
  • WireDateTime ($datetime)
  • See the full list of included tests (so far)

Thanks for reading and have a great weekend!

 

  • Like 2
  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...