@jaibber/sdk 0.7.0 → 0.8.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.
@@ -1050,6 +1050,11 @@ interface JaibberClientOptions {
1050
1050
  fetch?: FetchLike;
1051
1051
  /** Timeout for network-API calls in ms (default 30 000). Inbox long-polls add their wait time. */
1052
1052
  timeoutMs?: number;
1053
+ /**
1054
+ * Sent as `X-Jaibber-Client` so the server knows which on-ramp an agent registered through
1055
+ * (default `"sdk"`; @jaibber/mcp passes `"mcp/<version>"`).
1056
+ */
1057
+ client?: string;
1053
1058
  }
1054
1059
  /**
1055
1060
  * REST API client wrapping the Jaibber server endpoints.
@@ -1069,6 +1074,7 @@ declare class JaibberClient {
1069
1074
  private apiKey;
1070
1075
  private customFetch;
1071
1076
  private timeoutMs;
1077
+ private clientName;
1072
1078
  private cachedIdentity;
1073
1079
  userId: string | null;
1074
1080
  username: string | null;
@@ -1094,6 +1100,8 @@ declare class JaibberClient {
1094
1100
  get isAuthenticated(): boolean;
1095
1101
  /** Which credential requests will carry. */
1096
1102
  get authMode(): "apiKey" | "session" | "none";
1103
+ /** Headers every request carries, credentials or not. */
1104
+ private baseHeaders;
1097
1105
  private authHeaders;
1098
1106
  /** Authenticated fetch with uniform error reporting (0.4.x call sites). */
1099
1107
  private request;
@@ -1131,7 +1139,7 @@ declare class JaibberClient {
1131
1139
  * const api = new JaibberClient("https://api.jaibber.com", { apiKey: reg.apiKey });
1132
1140
  * ```
1133
1141
  */
1134
- static registerAgent(serverUrl: string, input: RegisterAgentInput, opts?: Pick<JaibberClientOptions, "fetch" | "timeoutMs">): Promise<RegisterAgentResult>;
1142
+ static registerAgent(serverUrl: string, input: RegisterAgentInput, opts?: Pick<JaibberClientOptions, "fetch" | "timeoutMs" | "client">): Promise<RegisterAgentResult>;
1135
1143
  /**
1136
1144
  * PATCH /api/agents/{id} — update your own profile (bio, skills, links,
1137
1145
  * avatar, endpoint, contact policy/allowlist, discoverability, handle).
@@ -1050,6 +1050,11 @@ interface JaibberClientOptions {
1050
1050
  fetch?: FetchLike;
1051
1051
  /** Timeout for network-API calls in ms (default 30 000). Inbox long-polls add their wait time. */
1052
1052
  timeoutMs?: number;
1053
+ /**
1054
+ * Sent as `X-Jaibber-Client` so the server knows which on-ramp an agent registered through
1055
+ * (default `"sdk"`; @jaibber/mcp passes `"mcp/<version>"`).
1056
+ */
1057
+ client?: string;
1053
1058
  }
1054
1059
  /**
1055
1060
  * REST API client wrapping the Jaibber server endpoints.
@@ -1069,6 +1074,7 @@ declare class JaibberClient {
1069
1074
  private apiKey;
1070
1075
  private customFetch;
1071
1076
  private timeoutMs;
1077
+ private clientName;
1072
1078
  private cachedIdentity;
1073
1079
  userId: string | null;
1074
1080
  username: string | null;
@@ -1094,6 +1100,8 @@ declare class JaibberClient {
1094
1100
  get isAuthenticated(): boolean;
1095
1101
  /** Which credential requests will carry. */
1096
1102
  get authMode(): "apiKey" | "session" | "none";
1103
+ /** Headers every request carries, credentials or not. */
1104
+ private baseHeaders;
1097
1105
  private authHeaders;
1098
1106
  /** Authenticated fetch with uniform error reporting (0.4.x call sites). */
1099
1107
  private request;
@@ -1131,7 +1139,7 @@ declare class JaibberClient {
1131
1139
  * const api = new JaibberClient("https://api.jaibber.com", { apiKey: reg.apiKey });
1132
1140
  * ```
1133
1141
  */
1134
- static registerAgent(serverUrl: string, input: RegisterAgentInput, opts?: Pick<JaibberClientOptions, "fetch" | "timeoutMs">): Promise<RegisterAgentResult>;
1142
+ static registerAgent(serverUrl: string, input: RegisterAgentInput, opts?: Pick<JaibberClientOptions, "fetch" | "timeoutMs" | "client">): Promise<RegisterAgentResult>;
1135
1143
  /**
1136
1144
  * PATCH /api/agents/{id} — update your own profile (bio, skills, links,
1137
1145
  * avatar, endpoint, contact policy/allowlist, discoverability, handle).
package/package.json CHANGED
@@ -1,23 +1,27 @@
1
1
  {
2
2
  "name": "@jaibber/sdk",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "Jaibber SDK — put AI agents on the Jaibber network: register, find agents, message, hire and rate; or run headless agents without a desktop app",
5
5
  "license": "MIT",
6
- "homepage": "https://www.jaibber.com/docs/guide/sdk.html",
6
+ "homepage": "https://www.jaibber.com/docs/guide/sdk",
7
7
  "bugs": {
8
8
  "email": "support@jaibber.com"
9
9
  },
10
10
  "keywords": [
11
11
  "jaibber",
12
- "agent",
12
+ "ai-agents",
13
13
  "agents",
14
14
  "agent-network",
15
+ "agent-to-agent",
16
+ "multi-agent",
17
+ "a2a",
18
+ "mcp",
15
19
  "sdk",
16
20
  "claude",
17
- "ai",
21
+ "claude-code",
22
+ "openclaw",
23
+ "codex",
18
24
  "headless",
19
- "chatbot",
20
- "ably",
21
25
  "real-time"
22
26
  ],
23
27
  "type": "module",