@dexto/orchestration 1.6.27 → 1.7.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/dist/index.d.cts CHANGED
@@ -452,36 +452,15 @@ declare class ConditionEngine {
452
452
  /**
453
453
  * Input schema for wait_for tool
454
454
  */
455
- declare const WaitForInputSchema: z.ZodEffects<z.ZodObject<{
456
- /** Wait for a single task */
455
+ declare const WaitForInputSchema: z.ZodObject<{
457
456
  taskId: z.ZodOptional<z.ZodString>;
458
- /** Wait for multiple tasks */
459
- taskIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
460
- /** Mode for multiple tasks: any = first to complete, all = wait for all */
461
- mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["any", "all"]>>>;
462
- /** Timeout in milliseconds */
457
+ taskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
458
+ mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
459
+ any: "any";
460
+ all: "all";
461
+ }>>>;
463
462
  timeout: z.ZodOptional<z.ZodNumber>;
464
- }, "strict", z.ZodTypeAny, {
465
- mode: "any" | "all";
466
- timeout?: number | undefined;
467
- taskId?: string | undefined;
468
- taskIds?: string[] | undefined;
469
- }, {
470
- timeout?: number | undefined;
471
- taskId?: string | undefined;
472
- taskIds?: string[] | undefined;
473
- mode?: "any" | "all" | undefined;
474
- }>, {
475
- mode: "any" | "all";
476
- timeout?: number | undefined;
477
- taskId?: string | undefined;
478
- taskIds?: string[] | undefined;
479
- }, {
480
- timeout?: number | undefined;
481
- taskId?: string | undefined;
482
- taskIds?: string[] | undefined;
483
- mode?: "any" | "all" | undefined;
484
- }>;
463
+ }, z.core.$strict>;
485
464
  type WaitForInput = z.output<typeof WaitForInputSchema>;
486
465
  /**
487
466
  * Output from wait_for tool
@@ -518,13 +497,8 @@ declare function createWaitForTool(conditionEngine: ConditionEngine): Tool<typeo
518
497
  * Input schema for check_task tool
519
498
  */
520
499
  declare const CheckTaskInputSchema: z.ZodObject<{
521
- /** Task ID to check */
522
500
  taskId: z.ZodString;
523
- }, "strict", z.ZodTypeAny, {
524
- taskId: string;
525
- }, {
526
- taskId: string;
527
- }>;
501
+ }, z.core.$strict>;
528
502
  type CheckTaskInput = z.output<typeof CheckTaskInputSchema>;
529
503
  /**
530
504
  * Output from check_task tool
@@ -566,17 +540,20 @@ declare function createCheckTaskTool(taskRegistry: TaskRegistry): Tool<typeof Ch
566
540
  * Input schema for list_tasks tool
567
541
  */
568
542
  declare const ListTasksInputSchema: z.ZodObject<{
569
- /** Filter by status */
570
- status: z.ZodDefault<z.ZodOptional<z.ZodEnum<["pending", "running", "completed", "failed", "cancelled", "all"]>>>;
571
- /** Filter by type */
572
- type: z.ZodOptional<z.ZodEnum<["agent", "process", "generic"]>>;
573
- }, "strict", z.ZodTypeAny, {
574
- status: "pending" | "running" | "completed" | "failed" | "cancelled" | "all";
575
- type?: "agent" | "process" | "generic" | undefined;
576
- }, {
577
- type?: "agent" | "process" | "generic" | undefined;
578
- status?: "pending" | "running" | "completed" | "failed" | "cancelled" | "all" | undefined;
579
- }>;
543
+ status: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
544
+ pending: "pending";
545
+ running: "running";
546
+ completed: "completed";
547
+ failed: "failed";
548
+ cancelled: "cancelled";
549
+ all: "all";
550
+ }>>>;
551
+ type: z.ZodOptional<z.ZodEnum<{
552
+ agent: "agent";
553
+ process: "process";
554
+ generic: "generic";
555
+ }>>;
556
+ }, z.core.$strict>;
580
557
  type ListTasksInput = z.output<typeof ListTasksInputSchema>;
581
558
  /**
582
559
  * Task info in list output
@@ -10,13 +10,8 @@ import type { TaskRegistry } from '../task-registry.js';
10
10
  * Input schema for check_task tool
11
11
  */
12
12
  export declare const CheckTaskInputSchema: z.ZodObject<{
13
- /** Task ID to check */
14
13
  taskId: z.ZodString;
15
- }, "strict", z.ZodTypeAny, {
16
- taskId: string;
17
- }, {
18
- taskId: string;
19
- }>;
14
+ }, z.core.$strict>;
20
15
  export type CheckTaskInput = z.output<typeof CheckTaskInputSchema>;
21
16
  /**
22
17
  * Output from check_task tool
@@ -1 +1 @@
1
- {"version":3,"file":"check-task.d.ts","sourceRoot":"","sources":["../../src/tools/check-task.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD;;GAEG;AACH,eAAO,MAAM,oBAAoB;IAEzB,uBAAuB;;;;;;EAGlB,CAAC;AAEd,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAEnE;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B,cAAc;IACd,MAAM,EAAE,MAAM,CAAC;IACf,6BAA6B;IAC7B,KAAK,EAAE,OAAO,CAAC;IACf,gBAAgB;IAChB,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,SAAS,CAAC;IACvC,qBAAqB;IACrB,MAAM,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,WAAW,CAAC;IACtE,4CAA4C;IAC5C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,4BAA4B;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wCAAwC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,yCAAyC;IACzC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,YAAY,EAAE,YAAY,GAAG,IAAI,CAAC,OAAO,oBAAoB,CAAC,CAyCjG"}
1
+ {"version":3,"file":"check-task.d.ts","sourceRoot":"","sources":["../../src/tools/check-task.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD;;GAEG;AACH,eAAO,MAAM,oBAAoB;;kBAKpB,CAAC;AAEd,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAEnE;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B,cAAc;IACd,MAAM,EAAE,MAAM,CAAC;IACf,6BAA6B;IAC7B,KAAK,EAAE,OAAO,CAAC;IACf,gBAAgB;IAChB,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,SAAS,CAAC;IACvC,qBAAqB;IACrB,MAAM,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,WAAW,CAAC;IACtE,4CAA4C;IAC5C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,4BAA4B;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wCAAwC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,yCAAyC;IACzC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,YAAY,EAAE,YAAY,GAAG,IAAI,CAAC,OAAO,oBAAoB,CAAC,CAyCjG"}
@@ -11,17 +11,20 @@ import type { TaskRegistry } from '../task-registry.js';
11
11
  * Input schema for list_tasks tool
12
12
  */
13
13
  export declare const ListTasksInputSchema: z.ZodObject<{
14
- /** Filter by status */
15
- status: z.ZodDefault<z.ZodOptional<z.ZodEnum<["pending", "running", "completed", "failed", "cancelled", "all"]>>>;
16
- /** Filter by type */
17
- type: z.ZodOptional<z.ZodEnum<["agent", "process", "generic"]>>;
18
- }, "strict", z.ZodTypeAny, {
19
- status: "pending" | "running" | "completed" | "failed" | "cancelled" | "all";
20
- type?: "agent" | "process" | "generic" | undefined;
21
- }, {
22
- type?: "agent" | "process" | "generic" | undefined;
23
- status?: "pending" | "running" | "completed" | "failed" | "cancelled" | "all" | undefined;
24
- }>;
14
+ status: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
15
+ pending: "pending";
16
+ running: "running";
17
+ completed: "completed";
18
+ failed: "failed";
19
+ cancelled: "cancelled";
20
+ all: "all";
21
+ }>>>;
22
+ type: z.ZodOptional<z.ZodEnum<{
23
+ agent: "agent";
24
+ process: "process";
25
+ generic: "generic";
26
+ }>>;
27
+ }, z.core.$strict>;
25
28
  export type ListTasksInput = z.output<typeof ListTasksInputSchema>;
26
29
  /**
27
30
  * Task info in list output
@@ -1 +1 @@
1
- {"version":3,"file":"list-tasks.d.ts","sourceRoot":"","sources":["../../src/tools/list-tasks.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD;;GAEG;AACH,eAAO,MAAM,oBAAoB;IAEzB,uBAAuB;;IAOvB,qBAAqB;;;;;;;;EAGhB,CAAC;AAEd,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAEnE;;GAEG;AACH,MAAM,WAAW,YAAY;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,OAAO,GAAG,SAAS,GAAG,SAAS,CAAC;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CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B,oCAAoC;IACpC,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,kBAAkB;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,uBAAuB;IACvB,MAAM,EAAE;QACJ,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,EAAE,MAAM,CAAC;QAClB,MAAM,EAAE,MAAM,CAAC;QACf,SAAS,EAAE,MAAM,CAAC;QAClB,OAAO,EAAE,MAAM,CAAC;KACnB,CAAC;CACL;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,YAAY,EAAE,YAAY,GAAG,IAAI,CAAC,OAAO,oBAAoB,CAAC,CAyEjG"}
@@ -10,36 +10,15 @@ import type { Tool } from '@dexto/core';
10
10
  /**
11
11
  * Input schema for wait_for tool
12
12
  */
13
- export declare const WaitForInputSchema: z.ZodEffects<z.ZodObject<{
14
- /** Wait for a single task */
13
+ export declare const WaitForInputSchema: z.ZodObject<{
15
14
  taskId: z.ZodOptional<z.ZodString>;
16
- /** Wait for multiple tasks */
17
- taskIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
18
- /** Mode for multiple tasks: any = first to complete, all = wait for all */
19
- mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["any", "all"]>>>;
20
- /** Timeout in milliseconds */
15
+ taskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
16
+ mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
17
+ any: "any";
18
+ all: "all";
19
+ }>>>;
21
20
  timeout: z.ZodOptional<z.ZodNumber>;
22
- }, "strict", z.ZodTypeAny, {
23
- mode: "any" | "all";
24
- timeout?: number | undefined;
25
- taskId?: string | undefined;
26
- taskIds?: string[] | undefined;
27
- }, {
28
- timeout?: number | undefined;
29
- taskId?: string | undefined;
30
- taskIds?: string[] | undefined;
31
- mode?: "any" | "all" | undefined;
32
- }>, {
33
- mode: "any" | "all";
34
- timeout?: number | undefined;
35
- taskId?: string | undefined;
36
- taskIds?: string[] | undefined;
37
- }, {
38
- timeout?: number | undefined;
39
- taskId?: string | undefined;
40
- taskIds?: string[] | undefined;
41
- mode?: "any" | "all" | undefined;
42
- }>;
21
+ }, z.core.$strict>;
43
22
  export type WaitForInput = z.output<typeof WaitForInputSchema>;
44
23
  /**
45
24
  * Output from wait_for tool
@@ -1 +1 @@
1
- {"version":3,"file":"wait-for.d.ts","sourceRoot":"","sources":["../../src/tools/wait-for.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAGzD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAExC;;GAEG;AACH,eAAO,MAAM,kBAAkB;IAEvB,6BAA6B;;IAG7B,8BAA8B;;IAG9B,2EAA2E;;IAO3E,8BAA8B;;;;;;;;;;;;;;;;;;;;;;EAQjC,CAAC;AAEN,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE/D;;GAEG;AACH,MAAM,WAAW,aAAa;IAC1B,yDAAyD;IACzD,MAAM,EAAE,MAAM,CAAC;IACf,mBAAmB;IACnB,MAAM,EAAE,WAAW,GAAG,QAAQ,GAAG,WAAW,GAAG,SAAS,CAAC;IACzD,0BAA0B;IAC1B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,sBAAsB;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iCAAiC;IACjC,UAAU,CAAC,EAAE,KAAK,CAAC;QACf,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,WAAW,GAAG,QAAQ,GAAG,WAAW,CAAC;QAC7C,M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  {
2
2
  "name": "@dexto/orchestration",
3
- "version": "1.6.27",
3
+ "version": "1.7.0",
4
4
  "description": "Agent orchestration layer for background task management, event-driven completion handling, and async workflows",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -20,8 +20,8 @@
20
20
  "workflow"
21
21
  ],
22
22
  "dependencies": {
23
- "zod": "^3.25.0",
24
- "@dexto/core": "1.6.27"
23
+ "zod": "^4.3.6",
24
+ "@dexto/core": "1.7.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "tsup": "^8.0.0",