@aikirun/client 0.11.2 → 0.13.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
@@ -14,8 +14,8 @@ npm install @aikirun/client
14
14
  import { client } from "@aikirun/client";
15
15
  import { orderWorkflowV1 } from "./workflows.ts";
16
16
 
17
- const aikiClient = await client({
18
- url: "http://localhost:9876",
17
+ const aikiClient = client({
18
+ url: "http://localhost:9850",
19
19
  redis: { host: "localhost", port: 6379 },
20
20
  });
21
21
 
package/dist/index.d.ts CHANGED
@@ -9,7 +9,7 @@ export { AdaptivePollingSubscriberStrategy, ApiClient, Client, ClientParams, Log
9
9
  *
10
10
  * @template AppContext - Type of application context passed to workflows (default: null)
11
11
  * @param params - Client configuration parameters
12
- * @param params.url - HTTP URL of the Aiki server (e.g., "http://localhost:9876")
12
+ * @param params.url - HTTP URL of the Aiki server (e.g., "http://localhost:9850")
13
13
  * @param params.redis - Redis connection configuration
14
14
  * @param params.redis.host - Redis server hostname
15
15
  * @param params.redis.port - Redis server port
@@ -20,8 +20,8 @@ export { AdaptivePollingSubscriberStrategy, ApiClient, Client, ClientParams, Log
20
20
  *
21
21
  * @example
22
22
  * ```typescript
23
- * const aikiClient = await client({
24
- * url: "http://localhost:9876",
23
+ * const aikiClient = client({
24
+ * url: "http://localhost:9850",
25
25
  * redis: { host: "localhost", port: 6379 },
26
26
  * createContext: (run) => ({
27
27
  * traceId: generateTraceId(),
@@ -42,7 +42,7 @@ export { AdaptivePollingSubscriberStrategy, ApiClient, Client, ClientParams, Log
42
42
  * await aikiClient.close();
43
43
  * ```
44
44
  */
45
- declare function client<AppContext = null>(params: ClientParams<AppContext>): Promise<Client<AppContext>>;
45
+ declare function client<AppContext = null>(params: ClientParams<AppContext>): Client<AppContext>;
46
46
 
47
47
  type LogLevel = "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR";
48
48
  interface ConsoleLoggerOptions {
package/dist/index.js CHANGED
@@ -552,7 +552,7 @@ function resolveSubscriberStrategy(client2, strategy, workflows, workerShards) {
552
552
 
553
553
  // client.ts
554
554
  function client(params) {
555
- return Promise.resolve(new ClientImpl(params));
555
+ return new ClientImpl(params);
556
556
  }
557
557
  var ClientImpl = class {
558
558
  constructor(params) {
@@ -593,7 +593,7 @@ var ClientImpl = class {
593
593
  }
594
594
  async closeRedisConnection() {
595
595
  if (this.redisConnection) {
596
- await this.redisConnection.disconnect();
596
+ this.redisConnection.disconnect();
597
597
  this.redisConnection = void 0;
598
598
  }
599
599
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aikirun/client",
3
- "version": "0.11.2",
3
+ "version": "0.13.0",
4
4
  "description": "Client SDK for Aiki - connect to the server, start workflows, and manage execution",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -18,7 +18,7 @@
18
18
  "build": "tsup"
19
19
  },
20
20
  "dependencies": {
21
- "@aikirun/types": "0.11.2",
21
+ "@aikirun/types": "0.13.0",
22
22
  "@orpc/client": "^1.9.3",
23
23
  "ioredis": "^5.4.1",
24
24
  "arktype": "^2.1.29"