@deepagents/orchestrator 6.1.2 → 7.0.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.
Files changed (61) hide show
  1. package/dist/index.d.ts +1 -0
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/lib/arxiv/arxiv.js +153 -0
  4. package/dist/lib/arxiv/arxiv.js.map +7 -0
  5. package/dist/lib/citation.js +120 -0
  6. package/dist/lib/citation.js.map +7 -0
  7. package/dist/lib/deepplan/demo.js +518 -0
  8. package/dist/lib/deepplan/demo.js.map +7 -0
  9. package/dist/lib/deepplan/executors/generic-executor.js +196 -0
  10. package/dist/lib/deepplan/executors/generic-executor.js.map +7 -0
  11. package/dist/lib/deepplan/executors/hackernews-executor.js +210 -0
  12. package/dist/lib/deepplan/executors/hackernews-executor.js.map +7 -0
  13. package/dist/lib/deepplan/executors/product-manager-executor.js +226 -0
  14. package/dist/lib/deepplan/executors/product-manager-executor.js.map +7 -0
  15. package/dist/lib/deepplan/executors/repo-search-executor.js +76 -0
  16. package/dist/lib/deepplan/executors/repo-search-executor.js.map +7 -0
  17. package/dist/lib/deepplan/executors/research-executor.js +196 -0
  18. package/dist/lib/deepplan/executors/research-executor.js.map +7 -0
  19. package/dist/lib/deepplan/next/plan.js +1 -0
  20. package/dist/lib/deepplan/next/plan.js.map +7 -0
  21. package/dist/lib/deepplan/plan-and-solve.js +826 -0
  22. package/dist/lib/deepplan/plan-and-solve.js.map +7 -0
  23. package/dist/lib/deepplan/planner-agent.js +416 -0
  24. package/dist/lib/deepplan/planner-agent.js.map +7 -0
  25. package/dist/lib/deepplan/replanner-agent.js +418 -0
  26. package/dist/lib/deepplan/replanner-agent.js.map +7 -0
  27. package/dist/lib/deepplan/synthesizer.js +75 -0
  28. package/dist/lib/deepplan/synthesizer.js.map +7 -0
  29. package/dist/lib/deepresearch.v0.js +297 -0
  30. package/dist/lib/deepresearch.v0.js.map +7 -0
  31. package/dist/lib/deepresearch.v1.js +260 -0
  32. package/dist/lib/deepresearch.v1.js.map +7 -0
  33. package/dist/lib/deepwiki/complete-wiki.js +319 -0
  34. package/dist/lib/deepwiki/complete-wiki.js.map +7 -0
  35. package/dist/lib/deepwiki/deepwiki.js +370 -0
  36. package/dist/lib/deepwiki/deepwiki.js.map +7 -0
  37. package/dist/lib/deepwiki/gitignore-agent.js +40 -0
  38. package/dist/lib/deepwiki/gitignore-agent.js.map +7 -0
  39. package/dist/lib/deepwiki/outline-agent.js +186 -0
  40. package/dist/lib/deepwiki/outline-agent.js.map +7 -0
  41. package/dist/lib/deepwiki/wiki-writer.js +242 -0
  42. package/dist/lib/deepwiki/wiki-writer.js.map +7 -0
  43. package/dist/lib/deepwiki/writer.js +407 -0
  44. package/dist/lib/deepwiki/writer.js.map +7 -0
  45. package/dist/lib/evolving.js +204 -0
  46. package/dist/lib/evolving.js.map +7 -0
  47. package/dist/lib/graph.js +12 -0
  48. package/dist/lib/graph.js.map +7 -0
  49. package/dist/lib/openai-deepresearch/clarrify-agent.js +67 -0
  50. package/dist/lib/openai-deepresearch/clarrify-agent.js.map +7 -0
  51. package/dist/lib/openai-deepresearch/lead-research.js +168 -0
  52. package/dist/lib/openai-deepresearch/lead-research.js.map +7 -0
  53. package/dist/lib/openai-deepresearch/openai-deepresearch.js +179 -0
  54. package/dist/lib/openai-deepresearch/openai-deepresearch.js.map +7 -0
  55. package/dist/lib/openai-deepresearch/reasearcher.js +62 -0
  56. package/dist/lib/openai-deepresearch/reasearcher.js.map +7 -0
  57. package/dist/lib/openai-deepresearch/research-brief.js +59 -0
  58. package/dist/lib/openai-deepresearch/research-brief.js.map +7 -0
  59. package/dist/lib/repo-context.js +11 -0
  60. package/dist/lib/repo-context.js.map +7 -0
  61. package/package.json +8 -8
@@ -0,0 +1,59 @@
1
+ // packages/orchestrator/src/lib/openai-deepresearch/research-brief.ts
2
+ import { groq } from "@ai-sdk/groq";
3
+ import z from "zod";
4
+ import { agent, generate } from "@deepagents/agent";
5
+ var transform_messages_into_research_topic_prompt = `You will be given a set of messages that have been exchanged so far between yourself and the user.
6
+ Your job is to translate these messages into a more detailed and concrete research question that will be used to guide the research.
7
+
8
+ You will return a single research question that will be used to guide the research.
9
+
10
+ Guidelines:
11
+ 1. Maximize Specificity and Detail
12
+ - Include all known user preferences and explicitly list key attributes or dimensions to consider.
13
+ - It is important that all details from the user are included in the instructions.
14
+
15
+ 2. Fill in Unstated But Necessary Dimensions as Open-Ended
16
+ - If certain attributes are essential for a meaningful output but the user has not provided them, explicitly state that they are open-ended or default to no specific constraint.
17
+
18
+ 3. Avoid Unwarranted Assumptions
19
+ - If the user has not provided a particular detail, do not invent one.
20
+ - Instead, state the lack of specification and guide the researcher to treat it as flexible or accept all possible options.
21
+
22
+ 4. Use the First Person
23
+ - Phrase the request from the perspective of the user.
24
+
25
+ 5. Sources
26
+ - If specific sources should be prioritized, specify them in the research question.
27
+ - For product and travel research, prefer linking directly to official or primary websites (e.g., official brand sites, manufacturer pages, or reputable e-commerce platforms like Amazon for user reviews) rather than aggregator sites or SEO-heavy blogs.
28
+ - For academic or scientific queries, prefer linking directly to the original paper or official journal publication rather than survey papers or secondary summaries.
29
+ - For people, try linking directly to their LinkedIn profile, or their personal website if they have one.
30
+ - If the query is in a specific language, prioritize sources published in that language.
31
+ `;
32
+ var ResearchTopic = z.object({
33
+ research_brief: z.string().describe("A research question that will be used to guide the research.")
34
+ });
35
+ var researchTopicAgent = agent({
36
+ name: "transform_messages_into_research_topic",
37
+ model: groq("openai/gpt-oss-120b"),
38
+ prompt: transform_messages_into_research_topic_prompt,
39
+ output: ResearchTopic
40
+ });
41
+ async function transformMessagesIntoResearchTopic(userQuery) {
42
+ const { output } = await generate(
43
+ researchTopicAgent,
44
+ `
45
+ Today's date is ${(/* @__PURE__ */ new Date()).toISOString()}.
46
+
47
+ The messages that have been exchanged so far between yourself and the user are:
48
+ User Query: ${userQuery}
49
+ `,
50
+ {}
51
+ );
52
+ return output;
53
+ }
54
+ export {
55
+ ResearchTopic,
56
+ researchTopicAgent,
57
+ transformMessagesIntoResearchTopic
58
+ };
59
+ //# sourceMappingURL=research-brief.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/lib/openai-deepresearch/research-brief.ts"],
4
+ "sourcesContent": ["import { groq } from '@ai-sdk/groq';\nimport z from 'zod';\n\nimport { agent, generate } from '@deepagents/agent';\n\nconst transform_messages_into_research_topic_prompt = `You will be given a set of messages that have been exchanged so far between yourself and the user.\nYour job is to translate these messages into a more detailed and concrete research question that will be used to guide the research.\n\nYou will return a single research question that will be used to guide the research.\n\nGuidelines:\n1. Maximize Specificity and Detail\n- Include all known user preferences and explicitly list key attributes or dimensions to consider.\n- It is important that all details from the user are included in the instructions.\n\n2. Fill in Unstated But Necessary Dimensions as Open-Ended\n- If certain attributes are essential for a meaningful output but the user has not provided them, explicitly state that they are open-ended or default to no specific constraint.\n\n3. Avoid Unwarranted Assumptions\n- If the user has not provided a particular detail, do not invent one.\n- Instead, state the lack of specification and guide the researcher to treat it as flexible or accept all possible options.\n\n4. Use the First Person\n- Phrase the request from the perspective of the user.\n\n5. Sources\n- If specific sources should be prioritized, specify them in the research question.\n- For product and travel research, prefer linking directly to official or primary websites (e.g., official brand sites, manufacturer pages, or reputable e-commerce platforms like Amazon for user reviews) rather than aggregator sites or SEO-heavy blogs.\n- For academic or scientific queries, prefer linking directly to the original paper or official journal publication rather than survey papers or secondary summaries.\n- For people, try linking directly to their LinkedIn profile, or their personal website if they have one.\n- If the query is in a specific language, prioritize sources published in that language.\n`;\n\nexport const ResearchTopic = z.object({\n research_brief: z\n .string()\n .describe('A research question that will be used to guide the research.'),\n});\n\nexport const researchTopicAgent = agent({\n name: 'transform_messages_into_research_topic',\n model: groq('openai/gpt-oss-120b'),\n prompt: transform_messages_into_research_topic_prompt,\n output: ResearchTopic,\n});\n\nexport async function transformMessagesIntoResearchTopic(userQuery: string) {\n const { output: output } = await generate(\n researchTopicAgent,\n `\n\t\t\tToday's date is ${new Date().toISOString()}.\n\nThe messages that have been exchanged so far between yourself and the user are:\nUser Query: ${userQuery}\n\t\t\t`,\n {},\n );\n return output;\n}\n"],
5
+ "mappings": ";AAAA,SAAS,YAAY;AACrB,OAAO,OAAO;AAEd,SAAS,OAAO,gBAAgB;AAEhC,IAAM,gDAAgD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA4B/C,IAAM,gBAAgB,EAAE,OAAO;AAAA,EACpC,gBAAgB,EACb,OAAO,EACP,SAAS,8DAA8D;AAC5E,CAAC;AAEM,IAAM,qBAAqB,MAAM;AAAA,EACtC,MAAM;AAAA,EACN,OAAO,KAAK,qBAAqB;AAAA,EACjC,QAAQ;AAAA,EACR,QAAQ;AACV,CAAC;AAED,eAAsB,mCAAmC,WAAmB;AAC1E,QAAM,EAAE,OAAe,IAAI,MAAM;AAAA,IAC/B;AAAA,IACA;AAAA,sBACiB,oBAAI,KAAK,GAAE,YAAY,CAAC;AAAA;AAAA;AAAA,cAG/B,SAAS;AAAA;AAAA,IAEnB,CAAC;AAAA,EACH;AACA,SAAO;AACT;",
6
+ "names": []
7
+ }
@@ -0,0 +1,11 @@
1
+ // packages/orchestrator/src/lib/repo-context.ts
2
+ import limit from "p-limit";
3
+ import { repoTree } from "@deepagents/toolbox";
4
+ async function repoContext(repoPath) {
5
+ const tree = await repoTree(repoPath);
6
+ const limitConcurrency = limit(3);
7
+ }
8
+ export {
9
+ repoContext
10
+ };
11
+ //# sourceMappingURL=repo-context.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/lib/repo-context.ts"],
4
+ "sourcesContent": ["import limit from 'p-limit';\n\nimport { repoTree } from '@deepagents/toolbox';\n\nexport async function repoContext(repoPath: string) {\n const tree = await repoTree(repoPath);\n const limitConcurrency = limit(3);\n}\n"],
5
+ "mappings": ";AAAA,OAAO,WAAW;AAElB,SAAS,gBAAgB;AAEzB,eAAsB,YAAY,UAAkB;AAClD,QAAM,OAAO,MAAM,SAAS,QAAQ;AACpC,QAAM,mBAAmB,MAAM,CAAC;AAClC;",
6
+ "names": []
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepagents/orchestrator",
3
- "version": "6.1.2",
3
+ "version": "7.0.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -38,15 +38,15 @@
38
38
  "access": "public"
39
39
  },
40
40
  "dependencies": {
41
- "@deepagents/agent": "6.1.2",
42
- "@deepagents/context": "6.1.2",
43
- "@ai-sdk/groq": "^4.0.11",
44
- "@ai-sdk/openai": "^4.0.15",
45
- "ai": "^7.0.30",
41
+ "@deepagents/agent": "7.0.0",
42
+ "@deepagents/context": "7.0.0",
43
+ "@ai-sdk/groq": "^4.0.35",
44
+ "@ai-sdk/openai": "^4.0.52",
45
+ "ai": "^7.0.85",
46
46
  "zod": "^4.4.3",
47
47
  "lodash-es": "^4.18.1",
48
- "@deepagents/retrieval": "6.1.2",
49
- "@deepagents/toolbox": "6.1.2",
48
+ "@deepagents/retrieval": "7.0.0",
49
+ "@deepagents/toolbox": "7.0.0",
50
50
  "p-limit": "^7.3.0",
51
51
  "@tavily/core": "^0.7.6",
52
52
  "dedent": "^1.7.2"