@kadi.build/core 0.0.1-alpha.6 → 0.0.1-alpha.8

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
@@ -100,8 +100,8 @@ const agent = new KadiClient({
100
100
  role: 'agent',
101
101
  protocol: 'broker',
102
102
  brokers: {
103
- 'prod': 'ws://localhost:8080',
104
- 'dev': 'ws://localhost:8081'
103
+ prod: 'ws://localhost:8080',
104
+ dev: 'ws://localhost:8081'
105
105
  },
106
106
  defaultBroker: 'prod',
107
107
  networks: ['global']
@@ -233,8 +233,8 @@ const ability = new KadiClient({
233
233
  role: 'ability', // 'agent', 'ability',
234
234
  protocol: 'stdio', // 'native', 'stdio', or 'broker'
235
235
  brokers: {
236
- 'local': 'ws://localhost:8080',
237
- 'prod': 'ws://api.example.com:8080'
236
+ local: 'ws://localhost:8080',
237
+ prod: 'ws://api.example.com:8080'
238
238
  },
239
239
  defaultBroker: 'local'
240
240
  });
@@ -440,9 +440,9 @@ const client = new KadiClient({
440
440
  role: 'ability', // Provider role
441
441
  protocol: 'broker',
442
442
  brokers: {
443
- 'dev': 'ws://localhost:8080',
444
- 'staging': 'ws://staging.example.com:8080',
445
- 'prod': 'ws://prod.example.com:8080'
443
+ dev: 'ws://localhost:8080',
444
+ staging: 'ws://staging.example.com:8080',
445
+ prod: 'ws://prod.example.com:8080'
446
446
  },
447
447
  defaultBroker: 'dev',
448
448
  networks: ['global']
@@ -806,6 +806,70 @@ ability.events.on('custom:event', (data) => {
806
806
  // Subscribe before calling methods that emit events
807
807
  ```
808
808
 
809
+ ### KadiClient transport vs loadAbility transport
810
+
811
+ KADI uses “transport” in two places and they serve different purposes:
812
+
813
+ - KadiClient transport — how this client exposes its own tools after `registerTool(...)` and `serve()`.
814
+ - `transport: 'native'` — in‑process only. There is no network or stdio listener. Code that loads you natively (via `loadAbility('you','native')`) can call your tools directly. `serve()` simply keeps the process alive if you want a long‑running ability.
815
+ - `transport: 'stdio'` — the client runs a stdio server (JSON‑RPC over stdin/stdout) and answers requests with your registered handlers. `serve()` wires up the stdio loop.
816
+ - `transport: 'broker'` — the client connects to the broker, registers your tools, and receives remote invocations over WebSocket. `serve()` (or `connectToBrokers()`) handles connection and registration.
817
+
818
+ - loadAbility transport — how this client connects to a specific ability it wants to use.
819
+ - `'native'` loads a module in‑process
820
+ - `'stdio'` talks to a spawned child process (uses the ability’s `agent.json` `scripts.start`)
821
+ - `'broker'` talks to a remote ability over the broker
822
+
823
+ These two choices are independent: setting the client’s `transport` does not change how you load another ability, and the transport you choose in `loadAbility(...)` does not change how your client serves its own tools.
824
+
825
+ Examples
826
+
827
+ Provide tools over broker
828
+
829
+ ```ts
830
+ import { KadiClient } from '@kadi.build/core';
831
+
832
+ const svc = new KadiClient({
833
+ name: 'math',
834
+ role: 'ability',
835
+ transport: 'broker',
836
+ brokers: { local: 'ws://localhost:8080' },
837
+ defaultBroker: 'local'
838
+ });
839
+
840
+ svc.registerTool('add', async ({ a, b }) => ({ result: a + b }));
841
+ await svc.serve(); // registers with the broker so others can call math.add
842
+ ```
843
+
844
+ Consume a stdio ability
845
+
846
+ ```ts
847
+ const agent = new KadiClient({
848
+ name: 'client',
849
+ role: 'agent',
850
+ transport: 'native'
851
+ });
852
+ const math = await agent.loadAbility('simple-math', 'stdio');
853
+ const res = await math.add({ a: 2, b: 3 });
854
+ ```
855
+
856
+ Consume a broker ability
857
+
858
+ ```ts
859
+ const agent = new KadiClient({
860
+ name: 'client',
861
+ role: 'agent',
862
+ transport: 'broker',
863
+ brokers: { local: 'ws://localhost:8080' },
864
+ defaultBroker: 'local'
865
+ });
866
+
867
+ const echo = await agent.loadAbility('echo-js', 'broker', {
868
+ networks: ['global']
869
+ });
870
+ const r = await echo.say_message({ message: 'hi' });
871
+ ```
872
+
809
873
  ### Loading Context
810
874
 
811
875
  The loader automatically resolves ability versions from:
@@ -968,9 +1032,9 @@ const client = new KadiClient({
968
1032
  role: 'ability',
969
1033
  protocol: 'broker',
970
1034
  brokers: {
971
- 'primary': 'ws://broker1.example.com:8080',
972
- 'secondary': 'ws://broker2.example.com:8080',
973
- 'backup': 'ws://broker3.example.com:8080'
1035
+ primary: 'ws://broker1.example.com:8080',
1036
+ secondary: 'ws://broker2.example.com:8080',
1037
+ backup: 'ws://broker3.example.com:8080'
974
1038
  },
975
1039
  defaultBroker: 'primary', // Used for sending if no specific broker targeted
976
1040
  networks: ['production']
@@ -1075,8 +1139,8 @@ const client = new KadiClient({
1075
1139
  role: 'ability', // 'agent' or 'ability'
1076
1140
  protocol: 'broker', // 'native', 'stdio', or 'broker'
1077
1141
  brokers: {
1078
- 'dev': 'ws://localhost:8080',
1079
- 'prod': 'ws://prod.example.com:8080'
1142
+ dev: 'ws://localhost:8080',
1143
+ prod: 'ws://prod.example.com:8080'
1080
1144
  },
1081
1145
  defaultBroker: 'dev',
1082
1146
  network: 'global', // Primary network
@@ -1146,8 +1210,8 @@ const ability = new KadiClient({
1146
1210
  role: 'ability',
1147
1211
  protocol: 'broker',
1148
1212
  brokers: {
1149
- 'local': 'ws://localhost:8080',
1150
- 'cloud': 'wss://api.example.com'
1213
+ local: 'ws://localhost:8080',
1214
+ cloud: 'wss://api.example.com'
1151
1215
  },
1152
1216
  defaultBroker: 'local',
1153
1217
  networks: ['global']
@@ -1261,6 +1325,7 @@ Check ability logs:
1261
1325
  ```bash
1262
1326
  tail -f abilities/my-ability/1.0.0/my-ability.log
1263
1327
  ```
1328
+
1264
1329
  ## 💡 Additional Examples
1265
1330
 
1266
1331
  ### Error Handling Pattern
@@ -1301,7 +1366,7 @@ client.registerTool('health', async () => {
1301
1366
  brokers: client.isConnected ? 'connected' : 'disconnected',
1302
1367
  timestamp: Date.now()
1303
1368
  };
1304
-
1369
+
1305
1370
  return {
1306
1371
  status: 'healthy',
1307
1372
  checks
@@ -1318,6 +1383,7 @@ client.registerTool('health', async () => {
1318
1383
  **Problem**: "Failed to connect to any brokers"
1319
1384
 
1320
1385
  **Solutions**:
1386
+
1321
1387
  - Verify broker URLs are correct
1322
1388
  - Check network connectivity
1323
1389
  - Ensure broker is running
@@ -1328,6 +1394,7 @@ client.registerTool('health', async () => {
1328
1394
  **Problem**: Subscribed to events but callbacks not triggered
1329
1395
 
1330
1396
  **Solutions**:
1397
+
1331
1398
  - Subscribe BEFORE triggering events
1332
1399
  - Check pattern matching (use exact match first)
1333
1400
  - Verify publisher and subscriber are on same network
@@ -1338,6 +1405,7 @@ client.registerTool('health', async () => {
1338
1405
  **Problem**: "Cannot find module 'ability.js'" when loading Go/Python abilities
1339
1406
 
1340
1407
  **Solutions**:
1408
+
1341
1409
  - Ensure `scripts.start` field exists in agent.json
1342
1410
  - Verify the binary/script is executable
1343
1411
  - Check that setup script has been run
@@ -1348,6 +1416,7 @@ client.registerTool('health', async () => {
1348
1416
  **Problem**: Memory usage grows over time
1349
1417
 
1350
1418
  **Solutions**:
1419
+
1351
1420
  - Always call unsubscribe functions
1352
1421
  - Use `onceEvent` for single-use subscriptions
1353
1422
  - Disconnect abilities when done
@@ -1374,10 +1443,37 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
1374
1443
 
1375
1444
  ## 📚 Resources
1376
1445
 
1446
+ ## ⚠️ Error Codes
1447
+
1448
+ KADI core exposes a unified, typed error catalog to keep errors consistent across core and the broker.
1449
+
1450
+ - CoreErrorCodes: CORE\_\* errors for library/transport concerns
1451
+ - BrokerErrorCodes: BROKER\_\* errors mirrored for broker interactions
1452
+ - ErrorCodes: merged view of both
1453
+
1454
+ Usage:
1455
+
1456
+ ```ts
1457
+ import { KadiError, CoreErrorCodes } from '@kadi.build/core';
1458
+
1459
+ throw new KadiError(
1460
+ CoreErrorCodes.CORE_CONFIG_MISSING.code,
1461
+ 'scripts.start is required for stdio',
1462
+ { transport: 'stdio', abilityName: 'echo' }
1463
+ );
1464
+ ```
1465
+
1466
+ Guidelines:
1467
+
1468
+ - Do not use raw string codes like 'CONFIG_MISSING'; always use the exported constants.
1469
+ - Prefer KadiError helper factories where available (e.g., KadiError.abilityNotFound()).
1470
+ - KadiError automatically tags domain from the code prefix (core/broker) and preserves the original stack.
1471
+ - Broker-side codes are fully prefixed: BROKER*SESSION*_, BROKER*AUTH*_, BROKER*AGENT*_, BROKER*NETWORK*_, etc.
1472
+
1377
1473
  - [Event System Deep Dive](docs/event-system.md) - Complete guide to the event architecture
1378
1474
  - [API Documentation](https://docs.kadi.build) - Full API reference
1379
1475
  - [Examples Repository](https://github.com/kadi-examples) - More examples and patterns
1380
1476
 
1381
1477
  ---
1382
1478
 
1383
- Built with ❤️ by the KADI team
1479
+ Built with ❤️ by the KADI team
@@ -1,5 +1,6 @@
1
1
  import { EventEmitter } from 'events';
2
2
  import { JSONSchema, BrokerConnection } from './types/core.js';
3
+ import type { TransportKind } from './types/core.js';
3
4
  import { LoadedAbility } from './loadAbility.js';
4
5
  export interface KadiClientConfig {
5
6
  /** Agent display name for identification */
@@ -10,8 +11,8 @@ export interface KadiClientConfig {
10
11
  description?: string;
11
12
  /** Role when connecting to broker - determines available operations */
12
13
  role?: 'agent' | 'ability';
13
- /** Communication protocol - determines how the client serves requests */
14
- protocol?: 'native' | 'stdio' | 'broker';
14
+ /** Transport used when serving requests */
15
+ transport?: TransportKind;
15
16
  /** Primary network segment for message routing - defines which network this client operates in. Used for isolation and access control between different environments. */
16
17
  network?: string;
17
18
  /** Additional network identifiers this client belongs to - enables participation in multiple network segments simultaneously */
@@ -26,7 +27,6 @@ export interface KadiClientConfig {
26
27
  maxBufferSize?: number;
27
28
  /** Path to ability agent.json configuration file */
28
29
  abilityAgentJSON?: string;
29
- [key: string]: any;
30
30
  }
31
31
  export interface ToolSchema {
32
32
  name?: string;
@@ -75,7 +75,7 @@ export declare class KadiClient extends EventEmitter {
75
75
  readonly version: string;
76
76
  readonly description: string;
77
77
  readonly role: 'agent' | 'ability';
78
- protocol: 'native' | 'stdio' | 'broker';
78
+ transport: TransportKind;
79
79
  readonly network: string;
80
80
  readonly networks: string[];
81
81
  readonly brokers: {
@@ -84,7 +84,7 @@ export declare class KadiClient extends EventEmitter {
84
84
  readonly defaultBroker?: string;
85
85
  readonly abilityAgentJSON?: string;
86
86
  private readonly logger;
87
- private protocolHandler?;
87
+ private transportHandler?;
88
88
  readonly toolHandlers: Map<string, RegisteredTool>;
89
89
  private readonly _abilities;
90
90
  private readonly _brokerConnections;
@@ -221,9 +221,7 @@ export declare class KadiClient extends EventEmitter {
221
221
  *
222
222
  * @param options - Optional serve options
223
223
  */
224
- serve(options?: {
225
- mode?: 'native' | 'stdio' | 'broker';
226
- }): Promise<void>;
224
+ serve(): Promise<void>;
227
225
  /**
228
226
  * Start the client (alias for serve for agent compatibility)
229
227
  */
@@ -290,11 +288,6 @@ export declare class KadiClient extends EventEmitter {
290
288
  * Example: 'ws://localhost:8080', 'wss://broker.company.com'
291
289
  * Overrides the 'broker' option if provided.
292
290
  *
293
- * spawnAbility: Whether to start the ability first. Only for 'broker' protocol.
294
- * - true: Start the ability process AND connect to it (useful for development)
295
- * - false (default): Just connect to an already-running ability
296
- * Most production setups use false since abilities run independently.
297
- *
298
291
  * networks: Which KADI networks to search for the ability. Only for 'broker' protocol.
299
292
  * Example: ['global', 'team-alpha', 'dev-environment']
300
293
  * search specific networks to find them. Defaults to ['global'] if not specified.
@@ -320,10 +313,9 @@ export declare class KadiClient extends EventEmitter {
320
313
  * });
321
314
  * const analysis = await aiService.analyze({text: "Hello world"});
322
315
  */
323
- loadAbility(nameOrPath: string, protocol?: 'native' | 'stdio' | 'broker', options?: {
316
+ loadAbility(nameOrPath: string, transport?: TransportKind, options?: {
324
317
  broker?: string;
325
318
  brokerUrl?: string;
326
- spawnAbility?: boolean;
327
319
  networks?: string[];
328
320
  }): Promise<LoadedAbility>;
329
321
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"KadiClient.d.ts","sourceRoot":"","sources":["../src/KadiClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAOtC,OA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