Skip to content

feat: add unified agents API and remove salesAgents#6

Merged
nastassiafulconis merged 4 commits into
mainfrom
unified-agents-api
Nov 6, 2025
Merged

feat: add unified agents API and remove salesAgents#6
nastassiafulconis merged 4 commits into
mainfrom
unified-agents-api

Conversation

@nastassiafulconis
Copy link
Copy Markdown
Collaborator

Summary

  • Add unified agents resource supporting both SALES and OUTCOME agent types
  • Remove deprecated salesAgents resource
  • Add JWT authentication support
  • Update simple-media-agent to use new agents API
  • Update documentation to use 'Agent' instead of 'Sales Agent'
  • Add publishConfig for npm publishing
  • Update schemas from merged outcomes-agent-registration branch

Changes

New Features

  • ✅ Created src/resources/agents.ts with support for:
    • AgentType: SALES, OUTCOME
    • AgentStatus: PENDING, ACTIVE, DISABLED
    • AgentRelationship: SELF, SCOPE3, MARKETPLACE
    • JWT authentication alongside API_KEY, OAUTH, NO_AUTH
    • Methods: list(), get(), register(), update(), unregister()

Removals

  • ✅ Removed src/resources/sales-agents.ts
  • ✅ Removed salesAgents from SDK exports

Updates

  • ✅ Updated simple-media-agent to use agents.list({ type: 'SALES' })
  • ✅ Updated all documentation (README.md, TESTING.md, SIMPLE_MEDIA_AGENT.md)
  • ✅ Updated OpenAPI schemas from agentic-api
  • ✅ Added publishConfig: { "access": "public" } to fix npm publishing

Testing

  • ✅ All tests passing (9/9)
  • ✅ Build succeeds
  • ✅ Type-check passes
  • ✅ Format check passes
  • ✅ npm publish dry-run succeeds

Breaking Changes

⚠️ This removes the salesAgents resource. Users should migrate to agents.list({ type: 'SALES' }).

🤖 Generated with Claude Code

- Add unified agents resource supporting SALES and OUTCOME types
- Remove deprecated salesAgents resource
- Add JWT authentication support
- Update simple-media-agent to use agents API
- Update documentation to use 'Agent' instead of 'Sales Agent'
- Add publishConfig for npm publishing
- Update schemas from merged outcomes-agent-registration branch
@nastassiafulconis nastassiafulconis requested a review from a team November 5, 2025 18:19
Comment thread SIMPLE_MEDIA_AGENT.md
Comment thread SIMPLE_MEDIA_AGENT.md Outdated
Comment thread TESTING.md Outdated
Comment thread SIMPLE_MEDIA_AGENT.md
Copy link
Copy Markdown

@youbek youbek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@nastassiafulconis nastassiafulconis merged commit 36e4d4c into main Nov 6, 2025
6 checks passed
@nastassiafulconis nastassiafulconis deleted the unified-agents-api branch November 6, 2025 15:17
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.

4 participants