php-agentic/tests/Feature
darbs-claude b9da812f7e
Some checks failed
CI / PHP 8.3 (pull_request) Failing after 1m35s
CI / PHP 8.4 (pull_request) Failing after 1m38s
refactor: consolidate duplicate state models into WorkspaceState (#18)
- Delete Models/AgentWorkspaceState.php (legacy port, no backing table)
- Rewrite Models/WorkspaceState.php as the single canonical state model
  backed by agent_workspace_states table with array value cast,
  type helpers, scopeForPlan/scopeOfType, static getValue/setValue,
  and toMcpContext() for MCP tool output
- Update AgentPlan::states() relation and setState() return type
- Update StateSet MCP tool import
- Update SecurityTest to use WorkspaceState
- Add WorkspaceStateTest covering table, casts, type helpers, scopes,
  static helpers, toMcpContext, and AgentPlan integration
- Mark CQ-001 done in TODO.md

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-23 05:56:45 +00:00
..
.gitkeep Initial commit 2026-01-26 23:20:30 +00:00
AgentApiKeyServiceTest.php refactor(tests): convert IpRestrictionServiceTest to Pest functional syntax 2026-01-29 18:50:41 +00:00
AgentApiKeyTest.php refactor(tests): convert AgentApiKey tests to Pest functional syntax 2026-01-29 18:42:56 +00:00
AgentPhaseTest.php chore: fix pint code style and add test config 2026-02-23 03:50:09 +00:00
AgentPlanTest.php chore: fix pint code style and add test config 2026-02-23 03:50:09 +00:00
AgentSessionTest.php chore: fix pint code style and add test config 2026-02-23 03:50:09 +00:00
ContentServiceTest.php refactor: rename namespace Core\Agentic to Core\Mod\Agentic 2026-01-27 16:12:58 +00:00
IpRestrictionServiceTest.php refactor(tests): convert IpRestrictionServiceTest to Pest functional syntax 2026-01-29 18:50:41 +00:00
PlanTemplateServiceTest.php chore: fix pint code style and add test config 2026-02-23 03:50:09 +00:00
SecurityTest.php refactor: consolidate duplicate state models into WorkspaceState (#18) 2026-02-23 05:56:45 +00:00
WorkspaceStateTest.php refactor: consolidate duplicate state models into WorkspaceState (#18) 2026-02-23 05:56:45 +00:00