Skip to content

[EPIC-D][LOU-D34] AgentType is optional and deprecated - #76

Merged
LinuxDevil merged 2 commits into
mainfrom
lou-d34-agent-type-optional
Oct 1, 2026
Merged

LinuxDevil merged 2 commits into
mainfrom
lou-d34-agent-type-optional

Conversation

@LinuxDevil

Copy link
Copy Markdown
Owner

What

  • AgentBuilder.build() no longer requires setType(); AgentConfig.agentType is optional (key omitted when unset).
  • AgentType, AgentTypeDescriptor, setType() and the src/agent-types registry/validators are marked @deprecated (no runtime effect, removal in the next minor). All stay exported.
  • createAgent() and specToAgent() (src/deploy/specExecution.ts) drop their setType(AgentType.SmartAssistant) call.
  • validateAgentConfig only checks agentType when present (invalid values are still rejected).
  • src/agent-types/registry.ts: Arabic/English prose reduced to plain English one-liners (Agent Forge does not use the registry).
  • README and docs/quick-start.md snippets no longer show setType; api-overview marks AgentType deprecated; llms-full.txt regenerated.
  • CHANGELOG entry under [Unreleased] -> Changed (deprecation, not breaking).

Why

Every builder user had to pick a meaningless donor-project type (AUDIT.md section 4). Epic D removes donor-project residue; this takes the type off the user path without breaking anyone.

Acceptance criteria

  • build() no longer requires setType(); agentType optional; callers that only set it to satisfy validation stop doing so
  • AgentType, setType(), registry/validators marked @deprecated and still exported; registry text reduced to English one-liners
  • Tests: build-without-type, invalid type still rejected, existing typed tests pass
  • docs/README no longer show setType as required; llms files regenerated
  • CHANGELOG entry under [Unreleased] -> Changed
  • Scope respected (no changes to src/execution/, src/session/, defineTool.ts, types/tool.ts)

How verified

  • npx tsc --noEmit: pass
  • npm run lint: 0 errors, 433 warnings (warning counts of touched files unchanged vs main)
  • npm run test:types: 19 passed, no type errors
  • npm run build && npm run build --workspace=packages/create-loushy-agent: pass
  • npx vitest run: 137 files passed, 2022 tests passed, 3 skipped
  • npm run docs:verify-snippets -- --skip-build: all 91 snippets type-check
  • npm run docs:llms:check: pass
  • npm run test:coverage: exit 0; npm run fallow: exit 0, 0 above threshold

🤖 Generated with Claude Code

https://claude.ai/code/session_016bY29ibQgv3MDdjAbUT4YR


Generated by Claude Code

claude added 2 commits October 1, 2026 12:37
AgentBuilder.build() no longer requires setType(); AgentConfig.agentType is
optional. AgentType, setType() and the agent-types registry/validators are
marked @deprecated (no runtime effect, removal in the next minor) and stay
exported. createAgent() and specToAgent() no longer set a type. Registry text
reduced to English one-liners. Docs snippets drop setType.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016bY29ibQgv3MDdjAbUT4YR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants