Tools

Repository Author Commit message Committed SHA  
 
phpstan-rules by dg nette/database row type narrowing (table/related/ref/insert)

Narrows return types by the entity mapping of nette/database 3.3. The
parameter nette.database.mapping takes the same options as the mapping
section of the database configuration (tables, camelCase, except), so it
can be copied over as is.

- Explorer::table() -> Selection<EntityRow>
- ActiveRow::related() -> GroupedSelection<EntityRow>
- ActiveRow::ref() -> ?EntityRow, non-nullable when the property of
the through column is
- Selection::insert() -> EntityRow instead of T|null for a single row

phpstan-rules by dg tests follow nette/schema 1.4 and PHPStan 2.3

The dev dependency on nette/schema is raised to 1.4, so the Expect::type()
and Expect::array() tests check the kind-specific elements (StringType,
NumberType, ArrayType) the extensions are for, instead of the plain Type
of 1.3.

PHPStan 2.3 takes the base type of a narrowing by removal (!== null,
truthiness) from the property reflection and skips expression type resolver
extensions, so a property declared by an interface @property tag ends up as
*ERROR*. The test records that behaviour; narrowing by intersection still
works.

656ceab7-cb09-4139-bf47-3de7710c630b

command-line by dg Runner: added, which runs the program in the process: help, version, usage errors and the exit code

It adds --help with -h and, given a version, --version with -V, placed with the
options of the program. A flag of that name the program has is answered as it
is, provided it answers the same way; a name taken as an alias, as a negation
or by a command is refused, since the flag is read from the result of any
command, and so is a standalone flag the runner does not answer. A usage error
is printed with the help of its command and returns 2 by default. On request it
prints the help for an empty line (helpWhenEmpty, before the required arguments
are demanded), adds --no-color, read before parsing so that a mistake of the
line is plain too (colorFlag), and reports an exception the handler throws by
its message as it is, without control characters (errorExitCode); a mistake of
the program, such as a command without a handler, always passes. The title,
the name of the program unless given, is printed with the version by --version
and above the help; it may be a closure writing it for the console it goes to.

command-line by dg Prompt: the default choice stands out in white where the console has colors

A capital marked the default, which a digit does not have, so in [1/2] the
default could not be told.

b65ee535-a726-4a86-868b-c52fc150b75b

command-line by dg cs
mcp-inspector by dg fixed session expiring after an hour without input

The SDK runs its loop also on an idle stdio connection and only reads the session there, so the first read
past its TTL of an hour deletes it and every later request gets "Session not found or has expired" without
an id. A stdio session lasts as long as the process, so the server gives it no TTL.

See modelcontextprotocol/php-sdk#672.

mcp-inspector by dg uses the Runner of nette/command-line
mcp-inspector by dg added AGENTS.md
mcp-inspector by dg added Tracy toolkit: log files by level and exception report summaries
mcp-inspector by dg added DI container toolkit: services, autowiring, tags, aliases and masked parameters over Container::getServiceDescriptors()
mcp-inspector by dg added database toolkit: schema introspection and db_query with read-only policy enforced by validation and a read-only transaction
mcp-inspector by dg added router toolkit: routes, URL matching and link generation
mcp-inspector by dg added presenters toolkit: the mapping, presenters found on disk with their actions, and presenter details
mcp-inspector by dg added application toolkit: app_get_info with versions, packages, directories and database driver
mcp-inspector by dg added installer command

The command line is built on nette/command-line 2.0: init and call are real
commands, call has its tool and JSON as arguments, an extra word or an unknown
command is refused by the parser, --php belongs to init, and the help of each
command lists its own options apart from the global ones.

What a person reads goes through a Console of the library, one over stdout and
one over stderr, so a redirected stdout does not decide the colors of stderr and
an error is red where the terminal takes it. Nothing echoes, which is what keeps
stdout clean while the MCP protocol runs over it, and the help draws into the
same console instead of building one of its own.

mcp-inspector by dg added inspector core: own DI container, live-reloading AppContainer, Server

Server::call() passes stdClass when a tool has no arguments, as SchemaValidator of mcp/sdk validates an
empty array as a JSON array, which an input schema of type object rejects.

mcp-inspector by dg added project skeleton
phpstan-rules by dg added HookMethodExtension: compiler extension methods marked with #[Hook] are not reported as unused
claude-code by dg php-fixer: added the dresscode skill on running and configuring DressCode

The skill covers DressCode run on purpose, beyond the edited file the hook
fixes: the commands and exit codes, reading the report, risky fixes and
what decides them, suppressions, the baseline, CI and Git hooks, and what
needs the user's consent. It leans on the tool's own explain, config and
catalogue instead of bundling the manual; the configuration and the
upgrades to newer PHP and library versions are in its references.

php-auto-fixer points to it.

claude-code by dg Released version 2.1.0
claude-code by dg nette-schema: updated for nette/schema 1.4 (enum, tuple, merge modes, JSON Schema export)

2d6f04e6-3436-49c9-95c8-b4439fba4be3

claude-code by dg nette-caching: updated for nette/caching 4.0 (Dependencies, clean() with named arguments, storages that refuse unsupported dependencies)

2d6f04e6-3436-49c9-95c8-b4439fba4be3

claude-code by dg neon-format: updated for nette/neon 4.0, editing files through Neon::parse()

2d6f04e6-3436-49c9-95c8-b4439fba4be3

claude-code by dg nette-tester: weak tests that cannot fail, accepting an expected file from .actual

fdcde01e-1d21-4071-97f6-21e7aaaf74a2

claude-code by dg nette: skills link the pages split off in nette/docs (schema, caching, ACL, NEON for PHP)

2d6f04e6-3436-49c9-95c8-b4439fba4be3

claude-code by dg docs: updated from nette/docs

2d6f04e6-3436-49c9-95c8-b4439fba4be3

latte-tools by dg twiggy: bitwise OR reports its own error

a7f2428c-40c0-4549-a5ad-16b698f306be

latte-tools by jcheron twiggy: array access converted as array, not property (#2)
latte-tools by jcheron twiggy: filter raw is converted to |noescape (#2)
latte-tools by NoNoNo tests: fixture no longer depends on line endings (#3)
latte-tools by dg upgraded PHPStan to 2.1, Twiggy left out of the analysis
latte-tools by dg uses dresscode

Last synchronization: 2026-12-05 03:02:24