@agentpulselabs/agent-studio-client 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -22,7 +22,6 @@ const result = await agent_studio.agentsGetByKey(payload);
22
22
  | Method | Op | Summary |
23
23
  | --- | --- | --- |
24
24
  | `agentsGetByKey` | `agents:get-by-key` | Resolve a team's agent by stable agent_key (team override wins, else the shipped blueprint); null when the key is unknown. avatar: 'pulse' \| 'voice' \| null (null = the platform default face). |
25
- | `agentsList` | `agents:list` | The team's enabled agents (team rows shadow the shipped blueprints by agent_key), by name: id, agent_key, name, kind, provider_id, avatar. agent_key is what agents:get-by-key resolves. |
26
25
  | `blueprintsRegister` | `blueprints:register` | Idempotently upsert a GLOBAL agent blueprint + its skill(s) from a self-describing |
27
26
  | `conversationsAppend` | `conversations:append` | Append a turn to the caller's own conversation (else CONVERSATION_NOT_OWNED), or create a new one owned by the caller when no id is given. createdBy is accepted and ignored. |
28
27
  | `conversationsResume` | `conversations:resume` | The transcript array of the caller's own conversation, or [] for any other id (unknown, a teammate's, no owner). |
@@ -30,9 +29,5 @@ const result = await agent_studio.agentsGetByKey(payload);
30
29
  | `runtimeExecute` | `runtime:execute` | Run one agent turn (skill-aware tool loop). Streaming op — consume via bridge.stream(). |
31
30
  | `widgetActive_agents` | `widget:active_agents` | Home-widget stat: the team's enabled purpose agents (team rows + un-overridden blueprints) of the pool total. |
32
31
  | `widgetActive_skills` | `widget:active_skills` | Home-widget stat: the team's enabled skills (team rows + un-overridden blueprints) of the pool total. |
33
- | `widgetChat_hours` | `widget:chat_hours` | When chats start over 30 days: weekday by 2-hour band, UTC (home widget). |
34
- | `widgetChats` | `widget:chats` | Chats per day over 14 days, and by agent and by surface over 30 days (home widget). |
35
32
  | `widgetRecent_chats` | `widget:recent_chats` | Home-widget list: the caller's own 5 most recently updated conversations. |
36
33
  | `widgetRegistry_tools` | `widget:registry_tools` | Home-widget stat: count of the platform's non-deprecated operation catalog (tools available to agents). |
37
- | `widgetSkills_approval` | `widget:skills_approval` | The team's skills (team rows + un-overridden blueprints) by approval policy (home widget). |
38
- | `widgetTool_calls` | `widget:tool_calls` | Average tool calls per agent turn in the chats of the last 30 days, with a weekly spark (home widget). |
package/index.d.ts CHANGED
@@ -28,10 +28,6 @@ export interface AgentsGetByKeyOutput {
28
28
  provider_id: string | null;
29
29
  }
30
30
 
31
- export interface AgentsListOutput {
32
- agents: unknown[];
33
- }
34
-
35
31
  export interface BlueprintsRegisterInput {
36
32
  agent: Record<string, unknown>;
37
33
  bindings?: unknown[];
@@ -65,53 +61,14 @@ export interface ConversationsResumeOwnOutput {
65
61
  transcript?: unknown[];
66
62
  }
67
63
 
68
- export interface WidgetChat_hoursOutput {
69
- cols: string[];
70
- empty: string;
71
- kind: string;
72
- rows: unknown[];
73
- unit: string;
74
- }
75
-
76
- export interface WidgetChatsOutput {
77
- defaultType: string;
78
- empty: string;
79
- id: string;
80
- kind: string;
81
- views: unknown[];
82
- }
83
-
84
64
  export interface WidgetRecent_chatsOutput {
85
65
  empty: string;
86
66
  items: unknown[];
87
67
  }
88
68
 
89
- export interface WidgetSkills_approvalOutput {
90
- defaultType: string;
91
- empty: string;
92
- id: string;
93
- kind: string;
94
- views: unknown[];
95
- }
96
-
97
- export interface WidgetTool_callsOutput {
98
- chip: string;
99
- context: string;
100
- detail: string;
101
- empty: string;
102
- href: string;
103
- kind: string;
104
- spark: number[];
105
- tone: string;
106
- unit: string;
107
- value: string;
108
- }
109
-
110
69
  export interface AgentStudioClient {
111
70
  /** Resolve a team's agent by stable agent_key (team override wins, else the shipped blueprint); null when the key is unknown. avatar: 'pulse' | 'voice' | null (null = the platform default face). */
112
71
  agentsGetByKey(payload: AgentsGetByKeyInput): Promise<AgentsGetByKeyOutput>;
113
- /** The team's enabled agents (team rows shadow the shipped blueprints by agent_key), by name: id, agent_key, name, kind, provider_id, avatar. agent_key is what agents:get-by-key resolves. */
114
- agentsList(payload: Record<string, unknown>): Promise<AgentsListOutput>;
115
72
  /** Idempotently upsert a GLOBAL agent blueprint + its skill(s) from a self-describing */
116
73
  blueprintsRegister(payload: BlueprintsRegisterInput): Promise<BlueprintsRegisterOutput>;
117
74
  /** Append a turn to the caller's own conversation (else CONVERSATION_NOT_OWNED), or create a new one owned by the caller when no id is given. createdBy is accepted and ignored. */
@@ -126,18 +83,10 @@ export interface AgentStudioClient {
126
83
  widgetActive_agents(payload: Record<string, unknown>): Promise<unknown>;
127
84
  /** Home-widget stat: the team's enabled skills (team rows + un-overridden blueprints) of the pool total. */
128
85
  widgetActive_skills(payload: Record<string, unknown>): Promise<unknown>;
129
- /** When chats start over 30 days: weekday by 2-hour band, UTC (home widget). */
130
- widgetChat_hours(payload: Record<string, unknown>): Promise<WidgetChat_hoursOutput>;
131
- /** Chats per day over 14 days, and by agent and by surface over 30 days (home widget). */
132
- widgetChats(payload: Record<string, unknown>): Promise<WidgetChatsOutput>;
133
86
  /** Home-widget list: the caller's own 5 most recently updated conversations. */
134
87
  widgetRecent_chats(payload: Record<string, unknown>): Promise<WidgetRecent_chatsOutput>;
135
88
  /** Home-widget stat: count of the platform's non-deprecated operation catalog (tools available to agents). */
136
89
  widgetRegistry_tools(payload: Record<string, unknown>): Promise<unknown>;
137
- /** The team's skills (team rows + un-overridden blueprints) by approval policy (home widget). */
138
- widgetSkills_approval(payload: Record<string, unknown>): Promise<WidgetSkills_approvalOutput>;
139
- /** Average tool calls per agent turn in the chats of the last 30 days, with a weekly spark (home widget). */
140
- widgetTool_calls(payload: Record<string, unknown>): Promise<WidgetTool_callsOutput>;
141
90
  }
142
91
 
143
92
  export declare function createClient(bridge: Bridge): AgentStudioClient;
package/index.js CHANGED
@@ -7,7 +7,6 @@ export function createClient(bridge) {
7
7
  if (!bridge) throw new Error('[agent-studio-client] bridge is required');
8
8
  return {
9
9
  agentsGetByKey: (payload) => bridge.call({ targetApp: 'agent-studio', operation: 'agents:get-by-key', payload }),
10
- agentsList: (payload) => bridge.call({ targetApp: 'agent-studio', operation: 'agents:list', payload }),
11
10
  blueprintsRegister: (payload) => bridge.call({ targetApp: 'agent-studio', operation: 'blueprints:register', payload }),
12
11
  conversationsAppend: (payload) => bridge.call({ targetApp: 'agent-studio', operation: 'conversations:append', payload }),
13
12
  conversationsResume: (payload) => bridge.call({ targetApp: 'agent-studio', operation: 'conversations:resume', payload }),
@@ -15,11 +14,7 @@ export function createClient(bridge) {
15
14
  runtimeExecute: (payload) => bridge.call({ targetApp: 'agent-studio', operation: 'runtime:execute', payload }),
16
15
  widgetActive_agents: (payload) => bridge.call({ targetApp: 'agent-studio', operation: 'widget:active_agents', payload }),
17
16
  widgetActive_skills: (payload) => bridge.call({ targetApp: 'agent-studio', operation: 'widget:active_skills', payload }),
18
- widgetChat_hours: (payload) => bridge.call({ targetApp: 'agent-studio', operation: 'widget:chat_hours', payload }),
19
- widgetChats: (payload) => bridge.call({ targetApp: 'agent-studio', operation: 'widget:chats', payload }),
20
17
  widgetRecent_chats: (payload) => bridge.call({ targetApp: 'agent-studio', operation: 'widget:recent_chats', payload }),
21
18
  widgetRegistry_tools: (payload) => bridge.call({ targetApp: 'agent-studio', operation: 'widget:registry_tools', payload }),
22
- widgetSkills_approval: (payload) => bridge.call({ targetApp: 'agent-studio', operation: 'widget:skills_approval', payload }),
23
- widgetTool_calls: (payload) => bridge.call({ targetApp: 'agent-studio', operation: 'widget:tool_calls', payload }),
24
19
  };
25
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentpulselabs/agent-studio-client",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Typed AppBridge client for the agent-studio app.",
5
5
  "type": "module",
6
6
  "main": "index.js",