@roj-ai/sdk 0.0.2 → 0.1.3

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.
@@ -60,41 +60,41 @@ export declare const agentEvents: import("../../core/events/types").EventsFactor
60
60
  agent_state_changed: z4.ZodObject<{
61
61
  agentId: z4.core.$ZodBranded<z4.ZodString, "AgentId", "out">;
62
62
  fromState: z4.ZodEnum<{
63
+ errored: "errored";
63
64
  pending: "pending";
64
65
  inferring: "inferring";
65
66
  tool_exec: "tool_exec";
66
- errored: "errored";
67
67
  paused: "paused";
68
68
  }>;
69
69
  toState: z4.ZodEnum<{
70
+ errored: "errored";
70
71
  pending: "pending";
71
72
  inferring: "inferring";
72
73
  tool_exec: "tool_exec";
73
- errored: "errored";
74
74
  paused: "paused";
75
75
  }>;
76
76
  }, z4.core.$strip>;
77
77
  handler_started: z4.ZodObject<{
78
78
  agentId: z4.core.$ZodBranded<z4.ZodString, "AgentId", "out">;
79
79
  handlerName: z4.ZodEnum<{
80
- onComplete: "onComplete";
81
80
  onStart: "onStart";
82
81
  beforeInference: "beforeInference";
83
82
  afterInference: "afterInference";
84
83
  beforeToolCall: "beforeToolCall";
85
84
  afterToolCall: "afterToolCall";
85
+ onComplete: "onComplete";
86
86
  onError: "onError";
87
87
  }>;
88
88
  }, z4.core.$strip>;
89
89
  handler_completed: z4.ZodObject<{
90
90
  agentId: z4.core.$ZodBranded<z4.ZodString, "AgentId", "out">;
91
91
  handlerName: z4.ZodEnum<{
92
- onComplete: "onComplete";
93
92
  onStart: "onStart";
94
93
  beforeInference: "beforeInference";
95
94
  afterInference: "afterInference";
96
95
  beforeToolCall: "beforeToolCall";
97
96
  afterToolCall: "afterToolCall";
97
+ onComplete: "onComplete";
98
98
  onError: "onError";
99
99
  }>;
100
100
  result: z4.ZodUnknown;
@@ -6,11 +6,11 @@ export declare const serviceEvents: import("../../core/events/types.js").EventsF
6
6
  serviceType: z.ZodString;
7
7
  toStatus: z.ZodEnum<{
8
8
  paused: "paused";
9
+ ready: "ready";
10
+ failed: "failed";
9
11
  stopped: "stopped";
10
12
  starting: "starting";
11
- ready: "ready";
12
13
  stopping: "stopping";
13
- failed: "failed";
14
14
  }>;
15
15
  port: z.ZodOptional<z.ZodNumber>;
16
16
  error: z.ZodOptional<z.ZodString>;
@@ -14,9 +14,9 @@ export declare const todoEvents: import("../../core/events/types.js").EventsFact
14
14
  description: z.ZodOptional<z.ZodString>;
15
15
  status: z.ZodOptional<z.ZodEnum<{
16
16
  pending: "pending";
17
- in_progress: "in_progress";
18
17
  completed: "completed";
19
18
  cancelled: "cancelled";
19
+ in_progress: "in_progress";
20
20
  }>>;
21
21
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
22
22
  }, z.core.$strip>;
@@ -64,7 +64,7 @@ export declare const todoPlugin: import("../../core/plugins/plugin-builder.js").
64
64
  todoId: string & z.core.$brand<"TodoId">;
65
65
  title?: string | undefined;
66
66
  description?: string | undefined;
67
- status?: "pending" | "in_progress" | "completed" | "cancelled" | undefined;
67
+ status?: "pending" | "completed" | "cancelled" | "in_progress" | undefined;
68
68
  metadata?: Record<string, unknown> | undefined;
69
69
  };
70
70
  output: {};
@@ -77,7 +77,7 @@ export declare const todoPlugin: import("../../core/plugins/plugin-builder.js").
77
77
  }> & Record<"list", {
78
78
  input: {
79
79
  agentId: string & z.core.$brand<"AgentId">;
80
- status?: "pending" | "in_progress" | "completed" | "cancelled" | undefined;
80
+ status?: "pending" | "completed" | "cancelled" | "in_progress" | undefined;
81
81
  };
82
82
  output: {
83
83
  todos: {
@@ -18,16 +18,16 @@ export declare const workerEvents: import("../../core/events/types.js").EventsFa
18
18
  worker_status_changed: z.ZodObject<{
19
19
  workerId: z.core.$ZodBranded<z.ZodString, "WorkerId", "out">;
20
20
  fromStatus: z.ZodEnum<{
21
- running: "running";
22
21
  paused: "paused";
23
22
  failed: "failed";
23
+ running: "running";
24
24
  completed: "completed";
25
25
  cancelled: "cancelled";
26
26
  }>;
27
27
  toStatus: z.ZodEnum<{
28
- running: "running";
29
28
  paused: "paused";
30
29
  failed: "failed";
30
+ running: "running";
31
31
  completed: "completed";
32
32
  cancelled: "cancelled";
33
33
  }>;
@@ -17,5 +17,5 @@ export declare const errorHandler: (error: Error, c: Context<AppEnv>) => Respons
17
17
  type: string;
18
18
  message: string;
19
19
  };
20
- }, 400 | 100 | 500 | 404 | 409 | -1 | 429 | 401 | 200 | 501 | 201 | 102 | 103 | 202 | 203 | 206 | 207 | 208 | 226 | 300 | 301 | 302 | 303 | 305 | 306 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 431 | 451 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511, "json">;
20
+ }, 100 | 500 | 404 | 409 | 400 | -1 | 429 | 401 | 200 | 501 | 201 | 102 | 103 | 202 | 203 | 206 | 207 | 208 | 226 | 300 | 301 | 302 | 303 | 305 | 306 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 431 | 451 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511, "json">;
21
21
  //# sourceMappingURL=error-handler.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@roj-ai/sdk",
3
- "version": "0.0.2",
3
+ "version": "0.1.3",
4
4
  "type": "module",
5
5
  "main": "./src/index.ts",
6
6
  "exports": {
@@ -132,11 +132,20 @@
132
132
  "publishConfig": {
133
133
  "access": "public"
134
134
  },
135
+ "repository": {
136
+ "type": "git",
137
+ "url": "git+https://github.com/contember/roj.git",
138
+ "directory": "packages/sdk"
139
+ },
140
+ "homepage": "https://github.com/contember/roj/tree/main/packages/sdk#readme",
141
+ "bugs": {
142
+ "url": "https://github.com/contember/roj/issues"
143
+ },
135
144
  "scripts": {
136
145
  "type-check": "tsc --noEmit"
137
146
  },
138
147
  "dependencies": {
139
- "@roj-ai/transport": "^0.0.2",
148
+ "@roj-ai/transport": "^0.1.3",
140
149
  "@hono/zod-validator": "0.7.6",
141
150
  "hono": "4.12.5",
142
151
  "ignore": "7.0.5",