@anvia/core 1.2.2 → 1.3.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 (121) hide show
  1. package/README.md +16 -0
  2. package/dist/agent/agent-tool.js +6 -4
  3. package/dist/agent/agent.js +23 -21
  4. package/dist/agent/index.d.ts +4 -4
  5. package/dist/agent/index.js +28 -26
  6. package/dist/agent/resolve-options.js +10 -10
  7. package/dist/agent/resolved-agent.js +24 -22
  8. package/dist/agent/team/agent-team.js +28 -26
  9. package/dist/agent/team/index.js +28 -26
  10. package/dist/agent/tool-catalog.js +10 -10
  11. package/dist/{chunk-VCMBQTR4.js → chunk-4BDSO4PQ.js} +2 -2
  12. package/dist/{chunk-LMZ54UNC.js → chunk-4VDDYI6P.js} +4 -4
  13. package/dist/{chunk-63DUKYEG.js → chunk-5SJBSCG2.js} +2 -2
  14. package/dist/chunk-6OO5C5GW.js +32 -0
  15. package/dist/chunk-6OO5C5GW.js.map +1 -0
  16. package/dist/{chunk-3P65RSBB.js → chunk-7TUAAGVR.js} +2 -2
  17. package/dist/{chunk-4PGI5HYY.js → chunk-A3DGCDGF.js} +7 -7
  18. package/dist/{chunk-P6IEZWI3.js → chunk-B57NNDEF.js} +8 -8
  19. package/dist/{chunk-5TMN4MYN.js → chunk-CJKGTEN4.js} +2 -2
  20. package/dist/{chunk-AS7A2LU5.js → chunk-E44DRLUL.js} +2 -2
  21. package/dist/{chunk-KSXA7YK7.js → chunk-GE46NHN4.js} +2 -2
  22. package/dist/{chunk-VQTSZ4ZW.js → chunk-IYDGPF3C.js} +3 -3
  23. package/dist/{chunk-RGYVR4FE.js → chunk-JMNIWUFV.js} +3 -3
  24. package/dist/{chunk-5REZFNZ3.js → chunk-JWD43K7W.js} +2 -2
  25. package/dist/{chunk-KSVFGXS6.js → chunk-KNZNSNP4.js} +2 -2
  26. package/dist/{chunk-BVAQJOZX.js → chunk-KRUDSNFN.js} +9 -9
  27. package/dist/{chunk-5HFXHKDD.js → chunk-LJGQ6VQB.js} +2 -2
  28. package/dist/chunk-NMPDZTBM.js +1 -0
  29. package/dist/chunk-NMPDZTBM.js.map +1 -0
  30. package/dist/{chunk-VU6YTPPH.js → chunk-OYHU4HNC.js} +2 -2
  31. package/dist/{chunk-5KS4SG2U.js → chunk-QHGYCYV6.js} +4 -4
  32. package/dist/{chunk-N2AQUFGO.js → chunk-RFFOL6ON.js} +2 -2
  33. package/dist/{chunk-ICDPUAKN.js → chunk-T3ZOZEAB.js} +2 -2
  34. package/dist/{chunk-NSWBPKWH.js → chunk-T4UW4SUK.js} +3 -3
  35. package/dist/{chunk-VPTAGK7G.js → chunk-V5DWNXVH.js} +2 -2
  36. package/dist/{chunk-3EX524LK.js → chunk-VKRGWGA4.js} +8 -8
  37. package/dist/{chunk-NA44V5OE.js → chunk-WCWSPU74.js} +2 -2
  38. package/dist/{chunk-WUZG6B3Q.js → chunk-Y365ABZY.js} +4 -4
  39. package/dist/{chunk-BD2USPK5.js → chunk-YMTBHHLQ.js} +61 -12
  40. package/dist/chunk-YMTBHHLQ.js.map +1 -0
  41. package/dist/chunk-YOLOFTAY.js +144 -0
  42. package/dist/chunk-YOLOFTAY.js.map +1 -0
  43. package/dist/{chunk-HAVSSHOW.js → chunk-ZGDUEOSH.js} +2 -2
  44. package/dist/completion/generate-completion.js +3 -1
  45. package/dist/completion/index.d.ts +1 -2
  46. package/dist/completion/index.js +3 -1
  47. package/dist/embeddings/index.js +1 -1
  48. package/dist/evals/advanced-metrics.js +6 -4
  49. package/dist/evals/cli.js +3 -1
  50. package/dist/evals/index.js +8 -6
  51. package/dist/evals/judge.js +5 -3
  52. package/dist/evals/metrics.js +6 -4
  53. package/dist/evals/runner.js +3 -1
  54. package/dist/extractor/extractor.js +4 -2
  55. package/dist/extractor/index.js +4 -2
  56. package/dist/index.d.ts +2 -2
  57. package/dist/index.js +42 -36
  58. package/dist/internal/agent-runtime/agent-run.js +19 -17
  59. package/dist/internal/agent-runtime/continuation-state.js +3 -1
  60. package/dist/internal/agent-runtime/interaction-suspension.js +3 -1
  61. package/dist/internal/agent-runtime/memory.js +5 -3
  62. package/dist/internal/agent-runtime/retrieval.js +8 -8
  63. package/dist/internal/agent-runtime/tool-execution.js +16 -14
  64. package/dist/internal/agent.d.ts +3 -3
  65. package/dist/internal/agent.js +24 -22
  66. package/dist/internal/team-runtime/member.js +3 -1
  67. package/dist/internal/team-runtime/run.js +26 -24
  68. package/dist/internal/team-runtime/tools.js +3 -3
  69. package/dist/memory/compaction.js +4 -2
  70. package/dist/memory/index.js +4 -2
  71. package/dist/observability/group.js +3 -1
  72. package/dist/observability/index.js +3 -1
  73. package/dist/pipeline/index.d.ts +2 -2
  74. package/dist/pipeline/index.js +5 -3
  75. package/dist/pipeline/pipeline.js +5 -3
  76. package/dist/provider-output-error-CQD0MWey.d.ts +221 -0
  77. package/dist/schema/index.js +7 -0
  78. package/dist/schema/standard-json-schema.js +10 -0
  79. package/dist/schema/standard-json-schema.js.map +1 -0
  80. package/dist/schema/standard-schema.js +11 -0
  81. package/dist/schema/standard-schema.js.map +1 -0
  82. package/dist/skills/index.js +15 -15
  83. package/dist/skills/load.js +14 -14
  84. package/dist/skills/tools.js +13 -13
  85. package/dist/tool/create-tool.js +2 -2
  86. package/dist/tool/dynamic-tools.js +9 -9
  87. package/dist/tool/index.js +14 -14
  88. package/dist/tool/question-tool.js +3 -3
  89. package/dist/tool/think-tool.js +3 -3
  90. package/dist/vector-store/index.js +11 -11
  91. package/dist/vector-store/ingest.js +5 -5
  92. package/dist/vector-store/retrieve.js +1 -1
  93. package/package.json +9 -1
  94. package/dist/chunk-BD2USPK5.js.map +0 -1
  95. package/dist/provider-output-error-CMVoe1xT.d.ts +0 -107
  96. package/dist/{agent-CUZdf9G0.d.ts → agent-D3iyrJQb.d.ts} +1 -1
  97. /package/dist/{chunk-VCMBQTR4.js.map → chunk-4BDSO4PQ.js.map} +0 -0
  98. /package/dist/{chunk-LMZ54UNC.js.map → chunk-4VDDYI6P.js.map} +0 -0
  99. /package/dist/{chunk-63DUKYEG.js.map → chunk-5SJBSCG2.js.map} +0 -0
  100. /package/dist/{chunk-3P65RSBB.js.map → chunk-7TUAAGVR.js.map} +0 -0
  101. /package/dist/{chunk-4PGI5HYY.js.map → chunk-A3DGCDGF.js.map} +0 -0
  102. /package/dist/{chunk-P6IEZWI3.js.map → chunk-B57NNDEF.js.map} +0 -0
  103. /package/dist/{chunk-5TMN4MYN.js.map → chunk-CJKGTEN4.js.map} +0 -0
  104. /package/dist/{chunk-AS7A2LU5.js.map → chunk-E44DRLUL.js.map} +0 -0
  105. /package/dist/{chunk-KSXA7YK7.js.map → chunk-GE46NHN4.js.map} +0 -0
  106. /package/dist/{chunk-VQTSZ4ZW.js.map → chunk-IYDGPF3C.js.map} +0 -0
  107. /package/dist/{chunk-RGYVR4FE.js.map → chunk-JMNIWUFV.js.map} +0 -0
  108. /package/dist/{chunk-5REZFNZ3.js.map → chunk-JWD43K7W.js.map} +0 -0
  109. /package/dist/{chunk-KSVFGXS6.js.map → chunk-KNZNSNP4.js.map} +0 -0
  110. /package/dist/{chunk-BVAQJOZX.js.map → chunk-KRUDSNFN.js.map} +0 -0
  111. /package/dist/{chunk-5HFXHKDD.js.map → chunk-LJGQ6VQB.js.map} +0 -0
  112. /package/dist/{chunk-VU6YTPPH.js.map → chunk-OYHU4HNC.js.map} +0 -0
  113. /package/dist/{chunk-5KS4SG2U.js.map → chunk-QHGYCYV6.js.map} +0 -0
  114. /package/dist/{chunk-N2AQUFGO.js.map → chunk-RFFOL6ON.js.map} +0 -0
  115. /package/dist/{chunk-ICDPUAKN.js.map → chunk-T3ZOZEAB.js.map} +0 -0
  116. /package/dist/{chunk-NSWBPKWH.js.map → chunk-T4UW4SUK.js.map} +0 -0
  117. /package/dist/{chunk-VPTAGK7G.js.map → chunk-V5DWNXVH.js.map} +0 -0
  118. /package/dist/{chunk-3EX524LK.js.map → chunk-VKRGWGA4.js.map} +0 -0
  119. /package/dist/{chunk-NA44V5OE.js.map → chunk-WCWSPU74.js.map} +0 -0
  120. /package/dist/{chunk-WUZG6B3Q.js.map → chunk-Y365ABZY.js.map} +0 -0
  121. /package/dist/{chunk-HAVSSHOW.js.map → chunk-ZGDUEOSH.js.map} +0 -0
@@ -1,45 +1,45 @@
1
1
  import "../../chunk-53TPAXYR.js";
2
2
  import {
3
3
  AgentTeam
4
- } from "../../chunk-NSWBPKWH.js";
4
+ } from "../../chunk-T4UW4SUK.js";
5
5
  import "../../chunk-X6WS3XWL.js";
6
- import "../../chunk-3EX524LK.js";
7
- import "../../chunk-3TAQXJBC.js";
8
- import "../../chunk-5TMN4MYN.js";
6
+ import "../../chunk-VKRGWGA4.js";
9
7
  import "../../chunk-PIMD4DYG.js";
10
8
  import "../../chunk-FSBDE6RF.js";
9
+ import "../../chunk-3TAQXJBC.js";
10
+ import "../../chunk-CJKGTEN4.js";
11
11
  import {
12
12
  AgentTeamInteractionError,
13
13
  AgentTeamLimitError
14
14
  } from "../../chunk-ENZ2XX27.js";
15
- import "../../chunk-VQTSZ4ZW.js";
16
- import "../../chunk-BVAQJOZX.js";
17
- import "../../chunk-4PGI5HYY.js";
15
+ import "../../chunk-IYDGPF3C.js";
16
+ import "../../chunk-KRUDSNFN.js";
17
+ import "../../chunk-A3DGCDGF.js";
18
+ import "../../chunk-GE46NHN4.js";
18
19
  import "../../chunk-GDY2Z2SZ.js";
19
20
  import "../../chunk-KITX3HDN.js";
20
21
  import "../../chunk-NPJ2T3L5.js";
21
22
  import "../../chunk-YWRXOPHC.js";
22
23
  import "../../chunk-SXE4J43E.js";
23
- import "../../chunk-P6IEZWI3.js";
24
+ import "../../chunk-B57NNDEF.js";
24
25
  import "../../chunk-5I2NVRHC.js";
25
26
  import "../../chunk-5IURMWFN.js";
26
27
  import "../../chunk-LAIATEUB.js";
27
- import "../../chunk-KSXA7YK7.js";
28
+ import "../../chunk-2NLINXRF.js";
28
29
  import "../../chunk-JMJFK3A4.js";
29
- import "../../chunk-VU6YTPPH.js";
30
+ import "../../chunk-T3ZOZEAB.js";
31
+ import "../../chunk-OYHU4HNC.js";
30
32
  import "../../chunk-4AW2633B.js";
31
- import "../../chunk-ICDPUAKN.js";
32
- import "../../chunk-2NLINXRF.js";
33
33
  import "../../chunk-YNA3UR42.js";
34
34
  import "../../chunk-H3H74RWJ.js";
35
- import "../../chunk-AS7A2LU5.js";
35
+ import "../../chunk-E44DRLUL.js";
36
36
  import "../../chunk-LQJ4KHMY.js";
37
37
  import "../../chunk-MJCMKZFP.js";
38
38
  import "../../chunk-EZR5AV3J.js";
39
39
  import "../../chunk-OJF67RNM.js";
40
40
  import "../../chunk-FAPIZJS2.js";
41
41
  import "../../chunk-7LBPRXZP.js";
42
- import "../../chunk-KSVFGXS6.js";
42
+ import "../../chunk-KNZNSNP4.js";
43
43
  import "../../chunk-A7BXVZXZ.js";
44
44
  import "../../chunk-TP3MCUXS.js";
45
45
  import "../../chunk-6RQYWZI3.js";
@@ -47,7 +47,7 @@ import "../../chunk-NF6WBPFG.js";
47
47
  import "../../chunk-LBYJPMHC.js";
48
48
  import "../../chunk-KFAVEL5F.js";
49
49
  import "../../chunk-GLMYZ6OA.js";
50
- import "../../chunk-NA44V5OE.js";
50
+ import "../../chunk-WCWSPU74.js";
51
51
  import "../../chunk-K4IBS7VB.js";
52
52
  import "../../chunk-ZPJFXRQZ.js";
53
53
  import "../../chunk-MEN4AFDZ.js";
@@ -56,36 +56,38 @@ import "../../chunk-6TAWRKFK.js";
56
56
  import "../../chunk-6BTJC3ES.js";
57
57
  import "../../chunk-MT3BLVYN.js";
58
58
  import "../../chunk-ZXLCTQUX.js";
59
- import "../../chunk-VCMBQTR4.js";
60
- import "../../chunk-5REZFNZ3.js";
59
+ import "../../chunk-4BDSO4PQ.js";
60
+ import "../../chunk-JWD43K7W.js";
61
+ import "../../chunk-QHGYCYV6.js";
61
62
  import "../../chunk-ESOFEAYK.js";
62
63
  import "../../chunk-HAAGSIZH.js";
63
64
  import "../../chunk-5WLIHNNJ.js";
64
- import "../../chunk-5KS4SG2U.js";
65
65
  import "../../chunk-PJNE75WC.js";
66
66
  import "../../chunk-PLDJCCVL.js";
67
67
  import "../../chunk-3J2CSVPR.js";
68
- import "../../chunk-KO5NMTAM.js";
69
- import "../../chunk-TFIOU6UR.js";
70
- import "../../chunk-GPVXCY5I.js";
71
68
  import "../../chunk-ERN7P6Q4.js";
72
- import "../../chunk-DU4WA6LQ.js";
73
69
  import "../../chunk-7F53DOML.js";
74
70
  import "../../chunk-HHMLE3TZ.js";
71
+ import "../../chunk-DU4WA6LQ.js";
75
72
  import "../../chunk-4FIVU53H.js";
73
+ import "../../chunk-KO5NMTAM.js";
74
+ import "../../chunk-TFIOU6UR.js";
75
+ import "../../chunk-GPVXCY5I.js";
76
76
  import "../../chunk-NVALGVQG.js";
77
77
  import "../../chunk-ZHC5CD6J.js";
78
78
  import "../../chunk-5V533R7F.js";
79
79
  import "../../chunk-KY4VXIN2.js";
80
- import "../../chunk-RGYVR4FE.js";
81
- import "../../chunk-BD2USPK5.js";
80
+ import "../../chunk-JMNIWUFV.js";
81
+ import "../../chunk-YMTBHHLQ.js";
82
+ import "../../chunk-YOLOFTAY.js";
83
+ import "../../chunk-6OO5C5GW.js";
82
84
  import "../../chunk-GSVOMQEE.js";
83
85
  import "../../chunk-4ONUNWGC.js";
84
86
  import "../../chunk-2JZV4LUS.js";
85
87
  import "../../chunk-XQV3XNVT.js";
86
- import "../../chunk-WUZG6B3Q.js";
87
- import "../../chunk-YZVFIW5D.js";
88
+ import "../../chunk-Y365ABZY.js";
88
89
  import "../../chunk-647TQE3E.js";
90
+ import "../../chunk-YZVFIW5D.js";
89
91
  import "../../chunk-SCFWN3T2.js";
90
92
  import "../../chunk-J6S6MT7O.js";
91
93
  import "../../chunk-HJ6KTQTZ.js";
@@ -1,29 +1,29 @@
1
1
  import {
2
2
  prepareAgentTools
3
- } from "../chunk-KSVFGXS6.js";
4
- import "../chunk-VCMBQTR4.js";
5
- import "../chunk-5REZFNZ3.js";
3
+ } from "../chunk-KNZNSNP4.js";
4
+ import "../chunk-4BDSO4PQ.js";
5
+ import "../chunk-JWD43K7W.js";
6
+ import "../chunk-QHGYCYV6.js";
6
7
  import "../chunk-ESOFEAYK.js";
7
8
  import "../chunk-HAAGSIZH.js";
8
9
  import "../chunk-5WLIHNNJ.js";
9
- import "../chunk-5KS4SG2U.js";
10
10
  import "../chunk-PJNE75WC.js";
11
11
  import "../chunk-PLDJCCVL.js";
12
12
  import "../chunk-3J2CSVPR.js";
13
- import "../chunk-KO5NMTAM.js";
14
- import "../chunk-TFIOU6UR.js";
15
- import "../chunk-GPVXCY5I.js";
16
13
  import "../chunk-ERN7P6Q4.js";
17
- import "../chunk-DU4WA6LQ.js";
18
14
  import "../chunk-7F53DOML.js";
19
15
  import "../chunk-HHMLE3TZ.js";
16
+ import "../chunk-DU4WA6LQ.js";
20
17
  import "../chunk-4FIVU53H.js";
18
+ import "../chunk-KO5NMTAM.js";
19
+ import "../chunk-TFIOU6UR.js";
20
+ import "../chunk-GPVXCY5I.js";
21
21
  import "../chunk-NVALGVQG.js";
22
22
  import "../chunk-ZHC5CD6J.js";
23
23
  import "../chunk-5V533R7F.js";
24
- import "../chunk-WUZG6B3Q.js";
25
- import "../chunk-YZVFIW5D.js";
24
+ import "../chunk-Y365ABZY.js";
26
25
  import "../chunk-647TQE3E.js";
26
+ import "../chunk-YZVFIW5D.js";
27
27
  import "../chunk-SCFWN3T2.js";
28
28
  import "../chunk-J6S6MT7O.js";
29
29
  import "../chunk-BONQTXRQ.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  InMemoryVectorStore
3
- } from "./chunk-5REZFNZ3.js";
3
+ } from "./chunk-JWD43K7W.js";
4
4
  import {
5
5
  retrieveDocuments
6
6
  } from "./chunk-HAAGSIZH.js";
@@ -108,4 +108,4 @@ export {
108
108
  createToolIndex,
109
109
  isToolIndex
110
110
  };
111
- //# sourceMappingURL=chunk-VCMBQTR4.js.map
111
+ //# sourceMappingURL=chunk-4BDSO4PQ.js.map
@@ -1,9 +1,9 @@
1
- import {
2
- createSkillTools
3
- } from "./chunk-5HFXHKDD.js";
4
1
  import {
5
2
  skillInstructions
6
3
  } from "./chunk-JBQNCUXA.js";
4
+ import {
5
+ createSkillTools
6
+ } from "./chunk-LJGQ6VQB.js";
7
7
 
8
8
  // src/skills/load.ts
9
9
  async function loadSkills(loaders) {
@@ -26,4 +26,4 @@ async function loadSkills(loaders) {
26
26
  export {
27
27
  loadSkills
28
28
  };
29
- //# sourceMappingURL=chunk-LMZ54UNC.js.map
29
+ //# sourceMappingURL=chunk-4VDDYI6P.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  extract
3
- } from "./chunk-3P65RSBB.js";
3
+ } from "./chunk-7TUAAGVR.js";
4
4
  import {
5
5
  Usage
6
6
  } from "./chunk-HJ6KTQTZ.js";
@@ -46,4 +46,4 @@ export {
46
46
  addUsage,
47
47
  evaluationMetadata
48
48
  };
49
- //# sourceMappingURL=chunk-63DUKYEG.js.map
49
+ //# sourceMappingURL=chunk-5SJBSCG2.js.map
@@ -0,0 +1,32 @@
1
+ // src/schema/standard-schema.ts
2
+ function isStandardSchema(value) {
3
+ return typeof value === "object" && value !== null && "~standard" in value && typeof value["~standard"] === "object" && value["~standard"] !== null && typeof value["~standard"].validate === "function";
4
+ }
5
+ function validateStandardSchema(schema, value) {
6
+ const result = schema["~standard"].validate(value);
7
+ if (typeof result.then === "function") {
8
+ throw new TypeError(
9
+ "The structured output schema validated asynchronously. Asynchronous schemas are not supported for structured completion output."
10
+ );
11
+ }
12
+ const settled = result;
13
+ if (settled.issues === void 0) {
14
+ return { success: true, value: settled.value };
15
+ }
16
+ return { success: false, issues: settled.issues };
17
+ }
18
+ function formatStandardSchemaIssues(issues) {
19
+ return issues.map((issue) => {
20
+ const path = (issue.path ?? []).map(
21
+ (segment) => typeof segment === "object" && segment !== null && "key" in segment ? segment.key : segment
22
+ ).map((key) => typeof key === "symbol" ? key.toString() : String(key)).join(".");
23
+ return path.length > 0 ? `${path}: ${issue.message}` : issue.message;
24
+ }).join("; ");
25
+ }
26
+
27
+ export {
28
+ isStandardSchema,
29
+ validateStandardSchema,
30
+ formatStandardSchemaIssues
31
+ };
32
+ //# sourceMappingURL=chunk-6OO5C5GW.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/schema/standard-schema.ts"],"sourcesContent":["// Vendor of the Standard Schema v1 specification interfaces\n// (https://standardschema.dev, MIT license). The spec recommends that\n// consumers copy the interfaces instead of taking a runtime dependency, so\n// only the type surface and small validation helpers live here.\n\n/** The Standard Typed interface. This is a base type extended by other specs. */\nexport interface StandardTypedV1<Input = unknown, Output = Input> {\n /** The Standard properties. */\n readonly \"~standard\": StandardTypedV1.Props<Input, Output>;\n}\n\nexport declare namespace StandardTypedV1 {\n /** The Standard Typed properties interface. */\n export interface Props<Input = unknown, Output = Input> {\n /** The version number of the standard. */\n readonly version: 1;\n /** The vendor name of the schema library. */\n readonly vendor: string;\n /** Inferred types associated with the schema. */\n readonly types?: Types<Input, Output> | undefined;\n }\n\n /** The Standard Typed types interface. */\n export interface Types<Input = unknown, Output = Input> {\n /** The input type of the schema. */\n readonly input: Input;\n /** The output type of the schema. */\n readonly output: Output;\n }\n\n /** Infers the input type of a Standard Typed. */\n export type InferInput<Schema extends StandardTypedV1> = NonNullable<\n Schema[\"~standard\"][\"types\"]\n >[\"input\"];\n\n /** Infers the output type of a Standard Typed. */\n export type InferOutput<Schema extends StandardTypedV1> = NonNullable<\n Schema[\"~standard\"][\"types\"]\n >[\"output\"];\n}\n\n/** The Standard Schema interface for schemas that validate data. */\nexport interface StandardSchemaV1<Input = unknown, Output = Input> extends StandardTypedV1<\n Input,\n Output\n> {\n /** The Standard Schema properties. */\n readonly \"~standard\": StandardSchemaV1.Props<Input, Output>;\n}\n\nexport declare namespace StandardSchemaV1 {\n /** The Standard Schema properties interface. */\n export interface Props<Input = unknown, Output = Input> extends StandardTypedV1.Props<\n Input,\n Output\n > {\n /** Validates unknown input values. */\n readonly validate: (\n value: unknown,\n options?: StandardSchemaV1.Options | undefined,\n ) => StandardSchemaV1.Result<Output> | Promise<StandardSchemaV1.Result<Output>>;\n }\n\n /** The result interface of the validate function. */\n export type Result<Output> =\n | StandardSchemaV1.SuccessResult<Output>\n | StandardSchemaV1.FailureResult;\n\n /** The result interface if validation succeeds. */\n export interface SuccessResult<Output> {\n /** The typed output value. */\n readonly value: Output;\n /** A falsy value for `issues` indicates success. */\n readonly issues?: undefined;\n }\n\n /** The options interface of the validate function. */\n export interface Options {\n /** Explicit support for additional vendor-specific parameters, if needed. */\n readonly libraryOptions?: Record<string, unknown> | undefined;\n }\n\n /** The result interface if validation fails. */\n export interface FailureResult {\n /** The issues of failed validation. */\n readonly issues: ReadonlyArray<StandardSchemaV1.Issue>;\n }\n\n /** The issue interface of the failure output. */\n export interface Issue {\n /** The error message of the issue. */\n readonly message: string;\n /** The path of the issue, if any. */\n readonly path?: ReadonlyArray<PropertyKey | StandardSchemaV1.PathSegment> | undefined;\n }\n\n /** The path segment interface of the issue path. */\n export interface PathSegment {\n /** The key representing a path segment. */\n readonly key: PropertyKey;\n }\n\n /** The Standard types interface. */\n export interface Types<Input = unknown, Output = Input> extends StandardTypedV1.Types<\n Input,\n Output\n > {}\n\n /** Infers the input type of a Standard Schema. */\n export type InferInput<Schema extends StandardTypedV1> = StandardTypedV1.InferInput<Schema>;\n\n /** Infers the output type of a Standard Schema. */\n export type InferOutput<Schema extends StandardTypedV1> = StandardTypedV1.InferOutput<Schema>;\n}\n\n/**\n * The Standard JSON Schema interface for entities that can convert themselves\n * to JSON Schema. Schema libraries may expose it alongside\n * {@link StandardSchemaV1} on the same `\"~standard\"` property bag.\n */\nexport interface StandardJSONSchemaV1<Input = unknown, Output = Input> extends StandardTypedV1<\n Input,\n Output\n> {\n /** The Standard JSON Schema properties. */\n readonly \"~standard\": StandardJSONSchemaV1.Props<Input, Output>;\n}\n\nexport declare namespace StandardJSONSchemaV1 {\n /** The Standard JSON Schema properties interface. */\n export interface Props<Input = unknown, Output = Input> extends StandardTypedV1.Props<\n Input,\n Output\n > {\n /** Methods for generating the input/output JSON Schema. */\n readonly jsonSchema: StandardJSONSchemaV1.Converter;\n }\n\n /** The Standard JSON Schema converter interface. */\n export interface Converter {\n /** Converts the input type to JSON Schema. May throw if conversion is not supported. */\n readonly input: (options: StandardJSONSchemaV1.Options) => Record<string, unknown>;\n /** Converts the output type to JSON Schema. May throw if conversion is not supported. */\n readonly output: (options: StandardJSONSchemaV1.Options) => Record<string, unknown>;\n }\n\n /** The options for the input/output methods. */\n export interface Options {\n /** The target version of the generated JSON Schema. */\n readonly target: StandardJSONSchemaV1.Target;\n\n /** Explicit support for additional vendor-specific parameters, if needed. */\n readonly libraryOptions?: Record<string, unknown> | undefined;\n }\n\n /** The target version of the generated JSON Schema. */\n export type Target =\n | \"draft-2020-12\"\n | \"draft-07\"\n | \"openapi-3.0\"\n // Accepts any string for future targets while preserving autocomplete.\n | ({} & string);\n\n /** The Standard types interface. */\n export interface Types<Input = unknown, Output = Input> extends StandardTypedV1.Types<\n Input,\n Output\n > {}\n}\n\n/** The result of a synchronous Standard Schema validation. */\nexport type StandardSchemaValidation<Output> =\n | { readonly success: true; readonly value: Output }\n | { readonly success: false; readonly issues: ReadonlyArray<StandardSchemaV1.Issue> };\n\n/** Checks whether a value looks like a Standard Schema. */\nexport function isStandardSchema(value: unknown): value is StandardSchemaV1 {\n return (\n typeof value === \"object\" &&\n value !== null &&\n \"~standard\" in value &&\n typeof (value as StandardSchemaV1)[\"~standard\"] === \"object\" &&\n (value as StandardSchemaV1)[\"~standard\"] !== null &&\n typeof (value as StandardSchemaV1)[\"~standard\"].validate === \"function\"\n );\n}\n\n/**\n * Validates a value with a Standard Schema synchronously. Schema libraries\n * whose `validate` returns a promise (asynchronous schemas) are rejected;\n * structured completion output must be validated synchronously.\n */\nexport function validateStandardSchema<Output>(\n schema: StandardSchemaV1<unknown, Output>,\n value: unknown,\n): StandardSchemaValidation<Output> {\n const result = schema[\"~standard\"].validate(value);\n if (typeof (result as { then?: unknown }).then === \"function\") {\n throw new TypeError(\n \"The structured output schema validated asynchronously. Asynchronous schemas are not supported for structured completion output.\",\n );\n }\n const settled = result as StandardSchemaV1.Result<Output>;\n if (settled.issues === undefined) {\n return { success: true, value: settled.value };\n }\n return { success: false, issues: settled.issues };\n}\n\n/** Joins Standard Schema issues into a single human-readable message. */\nexport function formatStandardSchemaIssues(issues: ReadonlyArray<StandardSchemaV1.Issue>): string {\n return issues\n .map((issue) => {\n const path = (issue.path ?? [])\n .map((segment) =>\n typeof segment === \"object\" && segment !== null && \"key\" in segment\n ? segment.key\n : segment,\n )\n .map((key) => (typeof key === \"symbol\" ? key.toString() : String(key)))\n .join(\".\");\n return path.length > 0 ? `${path}: ${issue.message}` : issue.message;\n })\n .join(\"; \");\n}\n"],"mappings":";AAgLO,SAAS,iBAAiB,OAA2C;AAC1E,SACE,OAAO,UAAU,YACjB,UAAU,QACV,eAAe,SACf,OAAQ,MAA2B,WAAW,MAAM,YACnD,MAA2B,WAAW,MAAM,QAC7C,OAAQ,MAA2B,WAAW,EAAE,aAAa;AAEjE;AAOO,SAAS,uBACd,QACA,OACkC;AAClC,QAAM,SAAS,OAAO,WAAW,EAAE,SAAS,KAAK;AACjD,MAAI,OAAQ,OAA8B,SAAS,YAAY;AAC7D,UAAM,IAAI;AAAA,MACR;AAAA,IACF;AAAA,EACF;AACA,QAAM,UAAU;AAChB,MAAI,QAAQ,WAAW,QAAW;AAChC,WAAO,EAAE,SAAS,MAAM,OAAO,QAAQ,MAAM;AAAA,EAC/C;AACA,SAAO,EAAE,SAAS,OAAO,QAAQ,QAAQ,OAAO;AAClD;AAGO,SAAS,2BAA2B,QAAuD;AAChG,SAAO,OACJ,IAAI,CAAC,UAAU;AACd,UAAM,QAAQ,MAAM,QAAQ,CAAC,GAC1B;AAAA,MAAI,CAAC,YACJ,OAAO,YAAY,YAAY,YAAY,QAAQ,SAAS,UACxD,QAAQ,MACR;AAAA,IACN,EACC,IAAI,CAAC,QAAS,OAAO,QAAQ,WAAW,IAAI,SAAS,IAAI,OAAO,GAAG,CAAE,EACrE,KAAK,GAAG;AACX,WAAO,KAAK,SAAS,IAAI,GAAG,IAAI,KAAK,MAAM,OAAO,KAAK,MAAM;AAAA,EAC/D,CAAC,EACA,KAAK,IAAI;AACd;","names":[]}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  generateCompletion
3
- } from "./chunk-BD2USPK5.js";
3
+ } from "./chunk-YMTBHHLQ.js";
4
4
  import {
5
5
  CompletionCapabilityError,
6
6
  Usage
@@ -128,4 +128,4 @@ export {
128
128
  ExtractionError,
129
129
  extract
130
130
  };
131
- //# sourceMappingURL=chunk-3P65RSBB.js.map
131
+ //# sourceMappingURL=chunk-7TUAAGVR.js.map
@@ -1,3 +1,6 @@
1
+ import {
2
+ AgentRunMemory
3
+ } from "./chunk-GE46NHN4.js";
1
4
  import {
2
5
  fetchContextDocuments,
3
6
  fetchToolDefinitions
@@ -22,7 +25,7 @@ import {
22
25
  } from "./chunk-SXE4J43E.js";
23
26
  import {
24
27
  ToolCallExecutor
25
- } from "./chunk-P6IEZWI3.js";
28
+ } from "./chunk-B57NNDEF.js";
26
29
  import {
27
30
  parseContinuationState,
28
31
  questionResult,
@@ -36,12 +39,9 @@ import {
36
39
  import {
37
40
  normalizeMemoryScope
38
41
  } from "./chunk-LAIATEUB.js";
39
- import {
40
- AgentRunMemory
41
- } from "./chunk-KSXA7YK7.js";
42
42
  import {
43
43
  isQuestionTool
44
- } from "./chunk-ICDPUAKN.js";
44
+ } from "./chunk-T3ZOZEAB.js";
45
45
  import {
46
46
  startAgentRunObservers
47
47
  } from "./chunk-YNA3UR42.js";
@@ -85,7 +85,7 @@ import {
85
85
  } from "./chunk-6BTJC3ES.js";
86
86
  import {
87
87
  isStreamingCompletionModel
88
- } from "./chunk-BD2USPK5.js";
88
+ } from "./chunk-YMTBHHLQ.js";
89
89
  import {
90
90
  createCompletionRequest
91
91
  } from "./chunk-GSVOMQEE.js";
@@ -2336,4 +2336,4 @@ function observerRunEnd(outcome) {
2336
2336
  export {
2337
2337
  AgentRun
2338
2338
  };
2339
- //# sourceMappingURL=chunk-4PGI5HYY.js.map
2339
+ //# sourceMappingURL=chunk-A3DGCDGF.js.map
@@ -2,12 +2,12 @@ import {
2
2
  AgentInteractionSignal,
3
3
  ToolExecutionSuspension
4
4
  } from "./chunk-5IURMWFN.js";
5
- import {
6
- isQuestionTool
7
- } from "./chunk-ICDPUAKN.js";
8
5
  import {
9
6
  isSkillTool
10
7
  } from "./chunk-2NLINXRF.js";
8
+ import {
9
+ isQuestionTool
10
+ } from "./chunk-T3ZOZEAB.js";
11
11
  import {
12
12
  runControl,
13
13
  toolCallControl
@@ -27,14 +27,14 @@ import {
27
27
  import {
28
28
  assertCompletionResponseIntegrity
29
29
  } from "./chunk-XQV3XNVT.js";
30
- import {
31
- assertToolApprovalRequirement,
32
- toolMayRequireApproval
33
- } from "./chunk-YZVFIW5D.js";
34
30
  import {
35
31
  prepareToolCall,
36
32
  prepareToolCallFromInput
37
33
  } from "./chunk-647TQE3E.js";
34
+ import {
35
+ assertToolApprovalRequirement,
36
+ toolMayRequireApproval
37
+ } from "./chunk-YZVFIW5D.js";
38
38
  import {
39
39
  ToolOutput,
40
40
  normalizeToolResultOutput,
@@ -948,4 +948,4 @@ function agentToolEventPayload(toolCall, internalCallId, event) {
948
948
  export {
949
949
  ToolCallExecutor
950
950
  };
951
- //# sourceMappingURL=chunk-P6IEZWI3.js.map
951
+ //# sourceMappingURL=chunk-B57NNDEF.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createTool
3
- } from "./chunk-WUZG6B3Q.js";
3
+ } from "./chunk-Y365ABZY.js";
4
4
 
5
5
  // src/internal/team-runtime/tools.ts
6
6
  import { z } from "zod";
@@ -64,4 +64,4 @@ export {
64
64
  teamTools,
65
65
  TEAM_INSTRUCTIONS
66
66
  };
67
- //# sourceMappingURL=chunk-5TMN4MYN.js.map
67
+ //# sourceMappingURL=chunk-CJKGTEN4.js.map
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-ZPJFXRQZ.js";
8
8
  import {
9
9
  generateCompletion
10
- } from "./chunk-BD2USPK5.js";
10
+ } from "./chunk-YMTBHHLQ.js";
11
11
 
12
12
  // src/memory/compaction.ts
13
13
  var defaultSummaryInstructions = `Summarize the conversation transcript for use as future agent memory.
@@ -209,4 +209,4 @@ export {
209
209
  createMemoryCompactionSummary,
210
210
  cumulativeCompactedMessageCount
211
211
  };
212
- //# sourceMappingURL=chunk-AS7A2LU5.js.map
212
+ //# sourceMappingURL=chunk-E44DRLUL.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createMemoryCompactionSummary,
3
3
  cumulativeCompactedMessageCount
4
- } from "./chunk-AS7A2LU5.js";
4
+ } from "./chunk-E44DRLUL.js";
5
5
  import {
6
6
  MemoryCompactionConflictError,
7
7
  MemoryCompactionError
@@ -339,4 +339,4 @@ function isEmptyUsage(usage) {
339
339
  export {
340
340
  AgentRunMemory
341
341
  };
342
- //# sourceMappingURL=chunk-KSXA7YK7.js.map
342
+ //# sourceMappingURL=chunk-GE46NHN4.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  Agent
3
- } from "./chunk-BVAQJOZX.js";
3
+ } from "./chunk-KRUDSNFN.js";
4
4
  import {
5
5
  getAgentToolState
6
6
  } from "./chunk-A7BXVZXZ.js";
7
7
  import {
8
8
  markResolvedAgentOptions
9
- } from "./chunk-NA44V5OE.js";
9
+ } from "./chunk-WCWSPU74.js";
10
10
 
11
11
  // src/agent/resolved-agent.ts
12
12
  function createResolvedAgent(options) {
@@ -45,4 +45,4 @@ export {
45
45
  createResolvedAgent,
46
46
  getResolvedAgentOptions
47
47
  };
48
- //# sourceMappingURL=chunk-VQTSZ4ZW.js.map
48
+ //# sourceMappingURL=chunk-IYDGPF3C.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  isStreamingCompletionModel
3
- } from "./chunk-BD2USPK5.js";
3
+ } from "./chunk-YMTBHHLQ.js";
4
4
  import {
5
5
  createTool
6
- } from "./chunk-WUZG6B3Q.js";
6
+ } from "./chunk-Y365ABZY.js";
7
7
  import {
8
8
  AgentRunBlockedError,
9
9
  AgentToolSuspensionError
@@ -78,4 +78,4 @@ function createAgentTool(agent, options) {
78
78
  export {
79
79
  createAgentTool
80
80
  };
81
- //# sourceMappingURL=chunk-RGYVR4FE.js.map
81
+ //# sourceMappingURL=chunk-JMNIWUFV.js.map
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk-5V533R7F.js";
17
17
  import {
18
18
  createTool
19
- } from "./chunk-WUZG6B3Q.js";
19
+ } from "./chunk-Y365ABZY.js";
20
20
 
21
21
  // src/vector-store/index.ts
22
22
  import { z } from "zod";
@@ -233,4 +233,4 @@ export {
233
233
  InMemoryVectorStore,
234
234
  createVectorSearchTool
235
235
  };
236
- //# sourceMappingURL=chunk-5REZFNZ3.js.map
236
+ //# sourceMappingURL=chunk-JWD43K7W.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isToolIndex
3
- } from "./chunk-VCMBQTR4.js";
3
+ } from "./chunk-4BDSO4PQ.js";
4
4
  import {
5
5
  isMcpTool
6
6
  } from "./chunk-PLDJCCVL.js";
@@ -165,4 +165,4 @@ function snapshotToolIndex(index) {
165
165
  export {
166
166
  prepareAgentTools
167
167
  };
168
- //# sourceMappingURL=chunk-KSVFGXS6.js.map
168
+ //# sourceMappingURL=chunk-KNZNSNP4.js.map
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  AgentRun
3
- } from "./chunk-4PGI5HYY.js";
3
+ } from "./chunk-A3DGCDGF.js";
4
+ import {
5
+ AgentRunMemory
6
+ } from "./chunk-GE46NHN4.js";
4
7
  import {
5
8
  assertNonnegativeSafeInteger
6
9
  } from "./chunk-NPJ2T3L5.js";
7
10
  import {
8
11
  normalizeMemoryScope
9
12
  } from "./chunk-LAIATEUB.js";
10
- import {
11
- AgentRunMemory
12
- } from "./chunk-KSXA7YK7.js";
13
13
  import {
14
14
  prepareAgentTools
15
- } from "./chunk-KSVFGXS6.js";
15
+ } from "./chunk-KNZNSNP4.js";
16
16
  import {
17
17
  getRegisteredAgentTool,
18
18
  registerAgentToolState
@@ -22,7 +22,7 @@ import {
22
22
  } from "./chunk-GLMYZ6OA.js";
23
23
  import {
24
24
  resolveAgentOptions
25
- } from "./chunk-NA44V5OE.js";
25
+ } from "./chunk-WCWSPU74.js";
26
26
  import {
27
27
  cloneFrozenPlainData,
28
28
  snapshotAgentContext,
@@ -35,10 +35,10 @@ import {
35
35
  } from "./chunk-KY4VXIN2.js";
36
36
  import {
37
37
  createAgentTool
38
- } from "./chunk-RGYVR4FE.js";
38
+ } from "./chunk-JMNIWUFV.js";
39
39
  import {
40
40
  isStreamingCompletionModel
41
- } from "./chunk-BD2USPK5.js";
41
+ } from "./chunk-YMTBHHLQ.js";
42
42
  import {
43
43
  assertJsonObject
44
44
  } from "./chunk-4ONUNWGC.js";
@@ -155,4 +155,4 @@ var Agent = class {
155
155
  export {
156
156
  Agent
157
157
  };
158
- //# sourceMappingURL=chunk-BVAQJOZX.js.map
158
+ //# sourceMappingURL=chunk-KRUDSNFN.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-2NLINXRF.js";
4
4
  import {
5
5
  createTool
6
- } from "./chunk-WUZG6B3Q.js";
6
+ } from "./chunk-Y365ABZY.js";
7
7
 
8
8
  // src/skills/tools.ts
9
9
  import { spawn } from "child_process";
@@ -186,4 +186,4 @@ function appendLimited(current, chunk) {
186
186
  export {
187
187
  createSkillTools
188
188
  };
189
- //# sourceMappingURL=chunk-5HFXHKDD.js.map
189
+ //# sourceMappingURL=chunk-LJGQ6VQB.js.map
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=chunk-NMPDZTBM.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createTool
3
- } from "./chunk-WUZG6B3Q.js";
3
+ } from "./chunk-Y365ABZY.js";
4
4
 
5
5
  // src/tool/think-tool.ts
6
6
  import { z } from "zod";
@@ -21,4 +21,4 @@ function createThinkTool(options = {}) {
21
21
  export {
22
22
  createThinkTool
23
23
  };
24
- //# sourceMappingURL=chunk-VU6YTPPH.js.map
24
+ //# sourceMappingURL=chunk-OYHU4HNC.js.map
@@ -1,9 +1,9 @@
1
- import {
2
- chunkTextDocuments
3
- } from "./chunk-TFIOU6UR.js";
4
1
  import {
5
2
  embedDocuments
6
3
  } from "./chunk-HHMLE3TZ.js";
4
+ import {
5
+ chunkTextDocuments
6
+ } from "./chunk-TFIOU6UR.js";
7
7
 
8
8
  // src/vector-store/ingest.ts
9
9
  async function ingestVectorText(options) {
@@ -88,4 +88,4 @@ export {
88
88
  ingestVectorText,
89
89
  ingestVectorDocuments
90
90
  };
91
- //# sourceMappingURL=chunk-5KS4SG2U.js.map
91
+ //# sourceMappingURL=chunk-QHGYCYV6.js.map
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-ZPXOBQDS.js";
7
7
  import {
8
8
  extract
9
- } from "./chunk-3P65RSBB.js";
9
+ } from "./chunk-7TUAAGVR.js";
10
10
  import {
11
11
  evalValuesEqual,
12
12
  formatValue
@@ -315,4 +315,4 @@ export {
315
315
  llmJudge,
316
316
  llmScore
317
317
  };
318
- //# sourceMappingURL=chunk-N2AQUFGO.js.map
318
+ //# sourceMappingURL=chunk-RFFOL6ON.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createTool
3
- } from "./chunk-WUZG6B3Q.js";
3
+ } from "./chunk-Y365ABZY.js";
4
4
 
5
5
  // src/tool/question-tool.ts
6
6
  import { z } from "zod";
@@ -44,4 +44,4 @@ export {
44
44
  createQuestionTool,
45
45
  isQuestionTool
46
46
  };
47
- //# sourceMappingURL=chunk-ICDPUAKN.js.map
47
+ //# sourceMappingURL=chunk-T3ZOZEAB.js.map
@@ -3,13 +3,13 @@ import {
3
3
  } from "./chunk-X6WS3XWL.js";
4
4
  import {
5
5
  TeamRun
6
- } from "./chunk-3EX524LK.js";
6
+ } from "./chunk-VKRGWGA4.js";
7
7
  import {
8
8
  TeamStream
9
9
  } from "./chunk-3TAQXJBC.js";
10
10
  import {
11
11
  Agent
12
- } from "./chunk-BVAQJOZX.js";
12
+ } from "./chunk-KRUDSNFN.js";
13
13
  import {
14
14
  assertPositiveSafeInteger
15
15
  } from "./chunk-NPJ2T3L5.js";
@@ -104,4 +104,4 @@ var AgentTeam = class {
104
104
  export {
105
105
  AgentTeam
106
106
  };
107
- //# sourceMappingURL=chunk-NSWBPKWH.js.map
107
+ //# sourceMappingURL=chunk-T4UW4SUK.js.map
@@ -2,7 +2,7 @@ import {
2
2
  addUsage,
3
3
  evaluationMetadata,
4
4
  runJudge
5
- } from "./chunk-63DUKYEG.js";
5
+ } from "./chunk-5SJBSCG2.js";
6
6
  import {
7
7
  resolveActualText,
8
8
  resolveExpected
@@ -1004,4 +1004,4 @@ export {
1004
1004
  turnRelevancy,
1005
1005
  knowledgeRetention
1006
1006
  };
1007
- //# sourceMappingURL=chunk-VPTAGK7G.js.map
1007
+ //# sourceMappingURL=chunk-V5DWNXVH.js.map