@agentpulselabs/agentforce-client
v0.1.0
Published
Typed AppBridge client for the agentforce app.
Readme
@agentpulselabs/agentforce-client
Typed AppBridge client for the agentforce app. Bridge-injected — no runtime dependency on agentforce or @agentpulse/platform.
Install
npm i @agentpulselabs/agentforce-clientUsage
import { createClient } from '@agentpulselabs/agentforce-client';
const agentforce = createClient(Platform.Bridge);
const result = await agentforce.agentDeactivate(payload);Operations (Agentforce)
| Method | Op | Summary |
| --- | --- | --- |
| agentDeactivate | agent:deactivate | Soft-delete an agent (active=false). Returns null if the id is not found. |
| agentFindByNames | agent:find-by-names | Resolve one agent by candidate dev/api/name values, newest updated first, or null. |
| agentListActive | agent:list-active | Active agents shaped for a cross-app registry listing (id/label/devName/environment/active/connectionId). |
| agentRegister | agent:register | Upsert an agent into the shared registry (conflict on team_id,name,host_org_id). |
| statsAgents | stats:agents | The acting team's agent stats (mirrors GET /agents/stats). |
| statsConversations | stats:conversations | The acting team's conversation stats over dateRange days (mirrors GET /conversations/stats). |
| statsLauncherCounts | stats:launcher-counts | Home launcher badge counts: active agent count + active scenario count. |
| statsScenarios | stats:scenarios | The acting team's scenario stats (mirrors GET /scenarios/stats). |
| widgetPass_rate | widget:pass_rate | 30-day average pass_rate across completed test_suite_runs (home widget). |
| widgetRecent_runs | widget:recent_runs | The 5 most recent test_suite_runs, newest first (home widget). |
| widgetTests_today | widget:tests_today | Count of test_suite_runs started today (home widget). |
