@agentpulselabs/agent-studio-client 0.1.0 → 0.2.0

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,6 +22,7 @@ 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). |
25
+ | `blueprintsRegister` | `blueprints:register` | Idempotently upsert a GLOBAL agent blueprint + its skill(s) from a self-describing |
25
26
  | `conversationsAppend` | `conversations:append` | Append a turn to an existing conversation, or create a new one when no id is given. |
26
27
  | `conversationsResume` | `conversations:resume` | The full transcript array for a conversation (RLS-scoped), or [] if none. |
27
28
  | `runtimeExecute` | `runtime:execute` | Run one agent turn (skill-aware tool loop). Streaming op — consume via bridge.stream(). |
package/index.d.ts CHANGED
@@ -16,6 +16,18 @@ export interface AgentsGetByKeyOutput {
16
16
  agent: Record<string, unknown> | null;
17
17
  }
18
18
 
19
+ export interface BlueprintsRegisterInput {
20
+ agent: Record<string, unknown>;
21
+ bindings?: unknown[];
22
+ skills: unknown[];
23
+ }
24
+
25
+ export interface BlueprintsRegisterOutput {
26
+ agent_key: string;
27
+ created: boolean;
28
+ skillKeys: string[];
29
+ }
30
+
19
31
  export interface ConversationsAppendOutput {
20
32
  conversationId: string;
21
33
  }
@@ -36,6 +48,8 @@ export interface WidgetRecent_chatsOutput {
36
48
  export interface AgentStudioClient {
37
49
  /** Resolve a team's agent by stable agent_key (team override wins, else the shipped blueprint). */
38
50
  agentsGetByKey(payload: AgentsGetByKeyInput): Promise<AgentsGetByKeyOutput>;
51
+ /** Idempotently upsert a GLOBAL agent blueprint + its skill(s) from a self-describing */
52
+ blueprintsRegister(payload: BlueprintsRegisterInput): Promise<BlueprintsRegisterOutput>;
39
53
  /** Append a turn to an existing conversation, or create a new one when no id is given. */
40
54
  conversationsAppend(payload: Record<string, unknown>): Promise<ConversationsAppendOutput>;
41
55
  /** The full transcript array for a conversation (RLS-scoped), or [] if none. */
package/index.js CHANGED
@@ -7,6 +7,7 @@ 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
+ blueprintsRegister: (payload) => bridge.call({ targetApp: 'agent-studio', operation: 'blueprints:register', payload }),
10
11
  conversationsAppend: (payload) => bridge.call({ targetApp: 'agent-studio', operation: 'conversations:append', payload }),
11
12
  conversationsResume: (payload) => bridge.call({ targetApp: 'agent-studio', operation: 'conversations:resume', payload }),
12
13
  runtimeExecute: (payload) => bridge.call({ targetApp: 'agent-studio', operation: 'runtime:execute', payload }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentpulselabs/agent-studio-client",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Typed AppBridge client for the agent-studio app.",
5
5
  "type": "module",
6
6
  "main": "index.js",