@deepagents/orchestrator 0.23.0 → 0.24.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.
@@ -2,17 +2,47 @@ import z from 'zod';
2
2
  declare const PlanStepSchema: z.ZodObject<{
3
3
  description: z.ZodString;
4
4
  expected_outcome: z.ZodString;
5
- }, z.core.$strip>;
5
+ }, "strip", z.ZodTypeAny, {
6
+ description: string;
7
+ expected_outcome: string;
8
+ }, {
9
+ description: string;
10
+ expected_outcome: string;
11
+ }>;
6
12
  export declare const PlannerOutputSchema: z.ZodObject<{
7
13
  understanding: z.ZodString;
8
14
  variables: z.ZodRecord<z.ZodString, z.ZodAny>;
9
- constraints: z.ZodDefault<z.ZodArray<z.ZodString>>;
15
+ constraints: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
10
16
  success_criteria: z.ZodString;
11
17
  steps: z.ZodArray<z.ZodObject<{
12
18
  description: z.ZodString;
13
19
  expected_outcome: z.ZodString;
14
- }, z.core.$strip>>;
15
- }, z.core.$strip>;
20
+ }, "strip", z.ZodTypeAny, {
21
+ description: string;
22
+ expected_outcome: string;
23
+ }, {
24
+ description: string;
25
+ expected_outcome: string;
26
+ }>, "many">;
27
+ }, "strip", z.ZodTypeAny, {
28
+ understanding: string;
29
+ variables: Record<string, any>;
30
+ constraints: string[];
31
+ success_criteria: string;
32
+ steps: {
33
+ description: string;
34
+ expected_outcome: string;
35
+ }[];
36
+ }, {
37
+ understanding: string;
38
+ variables: Record<string, any>;
39
+ success_criteria: string;
40
+ steps: {
41
+ description: string;
42
+ expected_outcome: string;
43
+ }[];
44
+ constraints?: string[] | undefined;
45
+ }>;
16
46
  export type PlanStep = z.infer<typeof PlanStepSchema>;
17
47
  export type PlannerOutput = z.infer<typeof PlannerOutputSchema>;
18
48
  /**
@@ -41,29 +71,6 @@ export interface PlanEnvironment {
41
71
  */
42
72
  capabilities?: string[];
43
73
  }
44
- /**
45
- * Planner agent that creates structured execution plans:
46
- * 1. Understanding Phase: Deeply understand the user's request
47
- * 2. Variable Extraction: Extract relevant variables and their corresponding numerical values
48
- * 3. Plan Devising: Break down into specific, actionable steps
49
- * 4. Success Criteria: Define how to know when the task is complete
50
- *
51
- * Enhanced with adaptive replanning for dynamic task execution.
52
- */
53
- export declare const plannerAgent: import("@deepagents/agent").Agent<{
54
- understanding: string;
55
- variables: Record<string, any>;
56
- constraints: string[];
57
- success_criteria: string;
58
- steps: {
59
- description: string;
60
- expected_outcome: string;
61
- }[];
62
- }, {
63
- environment?: PlanEnvironment;
64
- }, {
65
- environment?: PlanEnvironment;
66
- }>;
67
74
  /**
68
75
  * Create an execution plan for the given user request
69
76
  *
@@ -1 +1 @@
1
- {"version":3,"file":"planner-agent.d.ts","sourceRoot":"","sources":["../../../src/lib/deepplan/planner-agent.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,KAAK,CAAC;AAMpB,QAAA,MAAM,cAAc;;;iBAOlB,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;iBAqB9B,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AACtD,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,eAAe,EAAE,MAAM,EAAE,CAAC;IAE1B;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;kBAEP,eAAe;;kBAAf,eAAe;EAkL/B,CAAC;AAqBH;;;;;GAKG;AACH,wBAAsB,IAAI,CACxB,WAAW,EAAE,MAAM,EACnB,KAAK,GAAE;IAAE,WAAW,CAAC,EAAE,eAAe,CAAA;CAAO,uEAa9C"}
1
+ {"version":3,"file":"planner-agent.d.ts","sourceRoot":"","sources":["../../../src/lib/deepplan/planner-agent.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,KAAK,CAAC;AAcpB,QAAA,MAAM,cAAc;;;;;;;;;EAOlB,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqB9B,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AACtD,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,eAAe,EAAE,MAAM,EAAE,CAAC;IAE1B;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB;AAkND;;;;;GAKG;AACH,wBAAsB,IAAI,CACxB,WAAW,EAAE,MAAM,EACnB,KAAK,GAAE;IAAE,WAAW,CAAC,EAAE,eAAe,CAAA;CAAO,uEAoC9C"}
@@ -7,22 +7,23 @@ export declare const ReplanDecisionSchema: z.ZodObject<{
7
7
  remaining_steps: z.ZodArray<z.ZodObject<{
8
8
  description: z.ZodString;
9
9
  expected_outcome: z.ZodString;
10
- }, z.core.$strip>>;
10
+ }, "strip", z.ZodTypeAny, {
11
+ description: string;
12
+ expected_outcome: string;
13
+ }, {
14
+ description: string;
15
+ expected_outcome: string;
16
+ }>, "many">;
11
17
  new_insights: z.ZodString;
12
- }, z.core.$strip>;
13
- export type ReplanDecision = z.infer<typeof ReplanDecisionSchema>;
14
- /**
15
- * Replanner Agent
16
- *
17
- * After each step execution, the replanner:
18
- * 1. Reviews what was accomplished vs what was expected
19
- * 2. Analyzes how this affects the remaining plan
20
- * 3. Decides if the plan needs adjustment
21
- * 4. Updates remaining steps based on new information
22
- *
23
- * This creates an adaptive planning system that learns as it executes.
24
- */
25
- export declare const replannerAgent: import("@deepagents/agent").Agent<{
18
+ }, "strip", z.ZodTypeAny, {
19
+ reasoning: string;
20
+ should_continue: boolean;
21
+ remaining_steps: {
22
+ description: string;
23
+ expected_outcome: string;
24
+ }[];
25
+ new_insights: string;
26
+ }, {
26
27
  reasoning: string;
27
28
  should_continue: boolean;
28
29
  remaining_steps: {
@@ -30,7 +31,8 @@ export declare const replannerAgent: import("@deepagents/agent").Agent<{
30
31
  expected_outcome: string;
31
32
  }[];
32
33
  new_insights: string;
33
- }, import("@deepagents/agent").ContextVariables, import("@deepagents/agent").ContextVariables>;
34
+ }>;
35
+ export type ReplanDecision = z.infer<typeof ReplanDecisionSchema>;
34
36
  export declare function replan(context: ExecutionContext): Promise<{
35
37
  current_plan: {
36
38
  description: string;
@@ -1 +1 @@
1
- {"version":3,"file":"replanner-agent.d.ts","sourceRoot":"","sources":["../../../src/lib/deepplan/replanner-agent.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,KAAK,CAAC;AAIpB,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAUnD,eAAO,MAAM,oBAAoB;;;;;;;;iBAU/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE;;;;;;;;;;GAUG;AACH,eAAO,MAAM,cAAc;;;;;;;;8FAkKzB,CAAC;AAkDH,wBAAsB,MAAM,CAAC,OAAO,EAAE,gBAAgB;;;;;;;;;;;;GAgBrD"}
1
+ {"version":3,"file":"replanner-agent.d.ts","sourceRoot":"","sources":["../../../src/lib/deepplan/replanner-agent.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,KAAK,CAAC;AAYpB,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAUnD,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAU/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAgOlE,wBAAsB,MAAM,CAAC,OAAO,EAAE,gBAAgB;;;;;;;;;;;;GAmCrD"}
@@ -1,12 +1,16 @@
1
1
  import z from 'zod';
2
2
  declare const BaseOutlineItem: z.ZodObject<{
3
3
  title: z.ZodString;
4
- }, z.core.$strip>;
4
+ }, "strip", z.ZodTypeAny, {
5
+ title: string;
6
+ }, {
7
+ title: string;
8
+ }>;
5
9
  type OutlineItem = z.output<typeof BaseOutlineItem> & {
6
10
  sections?: z.output<typeof OutlineItemSchema>[];
7
11
  };
8
12
  declare const OutlineItemSchema: z.ZodType<OutlineItem>;
9
- declare const OutlineSchema: z.ZodArray<z.ZodType<OutlineItem, unknown, z.core.$ZodTypeInternals<OutlineItem, unknown>>>;
13
+ declare const OutlineSchema: z.ZodArray<z.ZodType<OutlineItem, z.ZodTypeDef, OutlineItem>, "many">;
10
14
  export type Outline = z.output<typeof OutlineSchema>;
11
15
  export type OutlineAgentContext = {
12
16
  repo_path: string;
@@ -1 +1 @@
1
- {"version":3,"file":"outline-agent.d.ts","sourceRoot":"","sources":["../../../src/lib/deepwiki/outline-agent.ts"],"names":[],"mappings":"AAEA,OAAO,CAAC,MAAM,KAAK,CAAC;AAWpB,QAAA,MAAM,eAAe;;iBAEnB,CAAC;AACH,KAAK,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,eAAe,CAAC,GAAG;IACpD,QAAQ,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,iBAAiB,CAAC,EA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AAM,CAAC;IAClB,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,aAAa,CAAC,CAAC;IACxC,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,eAAO,MAAM,YAAY,sFAsEvB,CAAC;AAEH,eAAO,MAAM,qBAAqB,sFAyBhC,CAAC;AAEH,wBAAsB,eAAe,CAAC,KAAK,EAAE,mBAAmB,oBA4C/D;AAWD,wBAAgB,QAAQ,CACtB,KAAK,EAAE,WAAW,EAAE,EACpB,SAAS,SAAI,EACb,MAAM,GAAE,MAAM,EAAO,YAatB"}
@@ -3,7 +3,15 @@ export declare const ClarrifyQuestion: z.ZodObject<{
3
3
  need_clarification: z.ZodBoolean;
4
4
  question: z.ZodString;
5
5
  verification: z.ZodString;
6
- }, z.core.$strip>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ need_clarification: boolean;
8
+ question: string;
9
+ verification: string;
10
+ }, {
11
+ need_clarification: boolean;
12
+ question: string;
13
+ verification: string;
14
+ }>;
7
15
  export declare const clarrifyAgent: import("@deepagents/agent").Agent<{
8
16
  need_clarification: boolean;
9
17
  question: string;
@@ -1 +1 @@
1
- {"version":3,"file":"clarrify-agent.d.ts","sourceRoot":"","sources":["../../../src/lib/openai-deepresearch/clarrify-agent.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,KAAK,CAAC;AAuCpB,eAAO,MAAM,gBAAgB;;;;iBAY3B,CAAC;AAEH,eAAO,MAAM,aAAa;;;;8FAMxB,CAAC;AAEH,wBAAsB,iBAAiB,CAAC,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,oBAQhE"}
1
+ {"version":3,"file":"clarrify-agent.d.ts","sourceRoot":"","sources":["../../../src/lib/openai-deepresearch/clarrify-agent.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,KAAK,CAAC;AAuCpB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;EAY3B,CAAC;AAEH,eAAO,MAAM,aAAa;;;;8FAMxB,CAAC;AAEH,wBAAsB,iBAAiB,CAAC,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,oBAQhE"}
@@ -1,7 +1,11 @@
1
1
  import z from 'zod';
2
2
  export declare const ResearchTopic: z.ZodObject<{
3
3
  research_brief: z.ZodString;
4
- }, z.core.$strip>;
4
+ }, "strip", z.ZodTypeAny, {
5
+ research_brief: string;
6
+ }, {
7
+ research_brief: string;
8
+ }>;
5
9
  export declare const researchTopicAgent: import("@deepagents/agent").Agent<{
6
10
  research_brief: string;
7
11
  }, import("@deepagents/agent").ContextVariables, import("@deepagents/agent").ContextVariables>;
@@ -1 +1 @@
1
- {"version":3,"file":"research-brief.d.ts","sourceRoot":"","sources":["../../../src/lib/openai-deepresearch/research-brief.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,KAAK,CAAC;AAgCpB,eAAO,MAAM,aAAa;;iBAIxB,CAAC;AAEH,eAAO,MAAM,kBAAkB;;8FAK7B,CAAC;AAEH,wBAAsB,kCAAkC,CAAC,SAAS,EAAE,MAAM,oBAYzE"}
1
+ {"version":3,"file":"research-brief.d.ts","sourceRoot":"","sources":["../../../src/lib/openai-deepresearch/research-brief.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,KAAK,CAAC;AAgCpB,eAAO,MAAM,aAAa;;;;;;EAIxB,CAAC;AAEH,eAAO,MAAM,kBAAkB;;8FAK7B,CAAC;AAEH,wBAAsB,kCAAkC,CAAC,SAAS,EAAE,MAAM,oBAYzE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepagents/orchestrator",
3
- "version": "0.23.0",
3
+ "version": "0.24.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -37,18 +37,17 @@
37
37
  "access": "public"
38
38
  },
39
39
  "dependencies": {
40
- "@deepagents/agent": "0.23.0",
40
+ "@deepagents/agent": "0.24.0",
41
+ "@deepagents/context": "0.24.0",
41
42
  "@ai-sdk/groq": "^3.0.24",
42
43
  "zod": "^3.25.76 || ^4.0.0",
43
44
  "ai": "^6.0.90",
44
45
  "lodash-es": "^4.17.21",
45
- "@deepagents/retrieval": "0.23.0",
46
- "@deepagents/toolbox": "0.23.0",
46
+ "@deepagents/retrieval": "0.24.0",
47
+ "@deepagents/toolbox": "0.24.0",
47
48
  "p-limit": "^7.2.0",
48
49
  "@ai-sdk/openai": "^3.0.29",
49
50
  "@tavily/core": "^0.5.12",
50
- "fast-glob": "^3.3.3",
51
- "nano-spawn": "^2.0.0",
52
51
  "dedent": "^1.7.0"
53
52
  },
54
53
  "peerDependencies": {},