@anvia/core 1.3.0 → 1.3.2
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/agent/agent.js +1 -1
- package/dist/agent/index.js +1 -1
- package/dist/agent/resolved-agent.js +1 -1
- package/dist/agent/team/agent-team.js +1 -1
- package/dist/agent/team/index.js +1 -1
- package/dist/{chunk-OYHU4HNC.js → chunk-6E6ABRJ6.js} +2 -2
- package/dist/chunk-6E6ABRJ6.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/internal/agent-runtime/agent-run.js +1 -1
- package/dist/internal/agent-runtime/tool-execution.js +1 -1
- package/dist/internal/agent.js +1 -1
- package/dist/internal/team-runtime/run.js +1 -1
- package/dist/skills/index.js +1 -1
- package/dist/skills/load.js +1 -1
- package/dist/skills/tools.js +1 -1
- package/dist/tool/index.js +1 -1
- package/dist/tool/think-tool.js +1 -1
- package/package.json +6 -6
- package/dist/chunk-OYHU4HNC.js.map +0 -1
package/dist/agent/agent.js
CHANGED
|
@@ -15,7 +15,7 @@ import "../chunk-LAIATEUB.js";
|
|
|
15
15
|
import "../chunk-2NLINXRF.js";
|
|
16
16
|
import "../chunk-JMJFK3A4.js";
|
|
17
17
|
import "../chunk-T3ZOZEAB.js";
|
|
18
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-6E6ABRJ6.js";
|
|
19
19
|
import "../chunk-4AW2633B.js";
|
|
20
20
|
import "../chunk-YNA3UR42.js";
|
|
21
21
|
import "../chunk-H3H74RWJ.js";
|
package/dist/agent/index.js
CHANGED
|
@@ -30,7 +30,7 @@ import "../chunk-LAIATEUB.js";
|
|
|
30
30
|
import "../chunk-2NLINXRF.js";
|
|
31
31
|
import "../chunk-JMJFK3A4.js";
|
|
32
32
|
import "../chunk-T3ZOZEAB.js";
|
|
33
|
-
import "../chunk-
|
|
33
|
+
import "../chunk-6E6ABRJ6.js";
|
|
34
34
|
import "../chunk-4AW2633B.js";
|
|
35
35
|
import "../chunk-YNA3UR42.js";
|
|
36
36
|
import "../chunk-H3H74RWJ.js";
|
|
@@ -17,7 +17,7 @@ import "../chunk-LAIATEUB.js";
|
|
|
17
17
|
import "../chunk-2NLINXRF.js";
|
|
18
18
|
import "../chunk-JMJFK3A4.js";
|
|
19
19
|
import "../chunk-T3ZOZEAB.js";
|
|
20
|
-
import "../chunk-
|
|
20
|
+
import "../chunk-6E6ABRJ6.js";
|
|
21
21
|
import "../chunk-4AW2633B.js";
|
|
22
22
|
import "../chunk-YNA3UR42.js";
|
|
23
23
|
import "../chunk-H3H74RWJ.js";
|
|
@@ -24,7 +24,7 @@ import "../../chunk-LAIATEUB.js";
|
|
|
24
24
|
import "../../chunk-2NLINXRF.js";
|
|
25
25
|
import "../../chunk-JMJFK3A4.js";
|
|
26
26
|
import "../../chunk-T3ZOZEAB.js";
|
|
27
|
-
import "../../chunk-
|
|
27
|
+
import "../../chunk-6E6ABRJ6.js";
|
|
28
28
|
import "../../chunk-4AW2633B.js";
|
|
29
29
|
import "../../chunk-YNA3UR42.js";
|
|
30
30
|
import "../../chunk-H3H74RWJ.js";
|
package/dist/agent/team/index.js
CHANGED
|
@@ -28,7 +28,7 @@ import "../../chunk-LAIATEUB.js";
|
|
|
28
28
|
import "../../chunk-2NLINXRF.js";
|
|
29
29
|
import "../../chunk-JMJFK3A4.js";
|
|
30
30
|
import "../../chunk-T3ZOZEAB.js";
|
|
31
|
-
import "../../chunk-
|
|
31
|
+
import "../../chunk-6E6ABRJ6.js";
|
|
32
32
|
import "../../chunk-4AW2633B.js";
|
|
33
33
|
import "../../chunk-YNA3UR42.js";
|
|
34
34
|
import "../../chunk-H3H74RWJ.js";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
|
|
5
5
|
// src/tool/think-tool.ts
|
|
6
6
|
import { z } from "zod";
|
|
7
|
-
var defaultThinkToolDescription = "Use this tool
|
|
7
|
+
var defaultThinkToolDescription = "Use this tool as a scratchpad to think through complex tasks step by step. Break the task into smaller steps, assess available information, and decide what to do next. Revisit your plan as new information becomes available. It does not retrieve information, store memory, or change external state.";
|
|
8
8
|
var thinkToolInput = z.object({
|
|
9
9
|
thought: z.string().describe("A thought to record while reasoning through a task.")
|
|
10
10
|
});
|
|
@@ -21,4 +21,4 @@ function createThinkTool(options = {}) {
|
|
|
21
21
|
export {
|
|
22
22
|
createThinkTool
|
|
23
23
|
};
|
|
24
|
-
//# sourceMappingURL=chunk-
|
|
24
|
+
//# sourceMappingURL=chunk-6E6ABRJ6.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/tool/think-tool.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { createTool } from \"./create-tool\";\n\nconst defaultThinkToolDescription =\n \"Use this tool as a scratchpad to think through complex tasks step by step. Break the task into smaller steps, assess available information, and decide what to do next. Revisit your plan as new information becomes available. It does not retrieve information, store memory, or change external state.\";\n\nconst thinkToolInput = z.object({\n thought: z.string().describe(\"A thought to record while reasoning through a task.\"),\n});\n\nexport type CreateThinkToolOptions = {\n name?: string;\n description?: string;\n};\n\nexport function createThinkTool(options: CreateThinkToolOptions = {}) {\n return createTool({\n name: options.name ?? \"think\",\n description: options.description ?? defaultThinkToolDescription,\n inputSchema: thinkToolInput,\n outputSchema: z.string(),\n execute: (args) => args.thought,\n });\n}\n"],"mappings":";;;;;AAAA,SAAS,SAAS;AAGlB,IAAM,8BACJ;AAEF,IAAM,iBAAiB,EAAE,OAAO;AAAA,EAC9B,SAAS,EAAE,OAAO,EAAE,SAAS,qDAAqD;AACpF,CAAC;AAOM,SAAS,gBAAgB,UAAkC,CAAC,GAAG;AACpE,SAAO,WAAW;AAAA,IAChB,MAAM,QAAQ,QAAQ;AAAA,IACtB,aAAa,QAAQ,eAAe;AAAA,IACpC,aAAa;AAAA,IACb,cAAc,EAAE,OAAO;AAAA,IACvB,SAAS,CAAC,SAAS,KAAK;AAAA,EAC1B,CAAC;AACH;","names":[]}
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ import "../../chunk-LAIATEUB.js";
|
|
|
14
14
|
import "../../chunk-2NLINXRF.js";
|
|
15
15
|
import "../../chunk-JMJFK3A4.js";
|
|
16
16
|
import "../../chunk-T3ZOZEAB.js";
|
|
17
|
-
import "../../chunk-
|
|
17
|
+
import "../../chunk-6E6ABRJ6.js";
|
|
18
18
|
import "../../chunk-4AW2633B.js";
|
|
19
19
|
import "../../chunk-YNA3UR42.js";
|
|
20
20
|
import "../../chunk-H3H74RWJ.js";
|
|
@@ -5,7 +5,7 @@ import "../../chunk-5IURMWFN.js";
|
|
|
5
5
|
import "../../chunk-2NLINXRF.js";
|
|
6
6
|
import "../../chunk-JMJFK3A4.js";
|
|
7
7
|
import "../../chunk-T3ZOZEAB.js";
|
|
8
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-6E6ABRJ6.js";
|
|
9
9
|
import "../../chunk-4AW2633B.js";
|
|
10
10
|
import "../../chunk-OJF67RNM.js";
|
|
11
11
|
import "../../chunk-FAPIZJS2.js";
|
package/dist/internal/agent.js
CHANGED
|
@@ -21,7 +21,7 @@ import "../chunk-LAIATEUB.js";
|
|
|
21
21
|
import "../chunk-2NLINXRF.js";
|
|
22
22
|
import "../chunk-JMJFK3A4.js";
|
|
23
23
|
import "../chunk-T3ZOZEAB.js";
|
|
24
|
-
import "../chunk-
|
|
24
|
+
import "../chunk-6E6ABRJ6.js";
|
|
25
25
|
import "../chunk-4AW2633B.js";
|
|
26
26
|
import "../chunk-YNA3UR42.js";
|
|
27
27
|
import "../chunk-H3H74RWJ.js";
|
|
@@ -21,7 +21,7 @@ import "../../chunk-LAIATEUB.js";
|
|
|
21
21
|
import "../../chunk-2NLINXRF.js";
|
|
22
22
|
import "../../chunk-JMJFK3A4.js";
|
|
23
23
|
import "../../chunk-T3ZOZEAB.js";
|
|
24
|
-
import "../../chunk-
|
|
24
|
+
import "../../chunk-6E6ABRJ6.js";
|
|
25
25
|
import "../../chunk-4AW2633B.js";
|
|
26
26
|
import "../../chunk-YNA3UR42.js";
|
|
27
27
|
import "../../chunk-H3H74RWJ.js";
|
package/dist/skills/index.js
CHANGED
|
@@ -14,7 +14,7 @@ import "../chunk-V4OZ7ISA.js";
|
|
|
14
14
|
import "../chunk-2NLINXRF.js";
|
|
15
15
|
import "../chunk-JMJFK3A4.js";
|
|
16
16
|
import "../chunk-T3ZOZEAB.js";
|
|
17
|
-
import "../chunk-
|
|
17
|
+
import "../chunk-6E6ABRJ6.js";
|
|
18
18
|
import "../chunk-4AW2633B.js";
|
|
19
19
|
import "../chunk-4BDSO4PQ.js";
|
|
20
20
|
import "../chunk-JWD43K7W.js";
|
package/dist/skills/load.js
CHANGED
|
@@ -6,7 +6,7 @@ import "../chunk-LJGQ6VQB.js";
|
|
|
6
6
|
import "../chunk-2NLINXRF.js";
|
|
7
7
|
import "../chunk-JMJFK3A4.js";
|
|
8
8
|
import "../chunk-T3ZOZEAB.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-6E6ABRJ6.js";
|
|
10
10
|
import "../chunk-4AW2633B.js";
|
|
11
11
|
import "../chunk-4BDSO4PQ.js";
|
|
12
12
|
import "../chunk-JWD43K7W.js";
|
package/dist/skills/tools.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import "../chunk-2NLINXRF.js";
|
|
5
5
|
import "../chunk-JMJFK3A4.js";
|
|
6
6
|
import "../chunk-T3ZOZEAB.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-6E6ABRJ6.js";
|
|
8
8
|
import "../chunk-4AW2633B.js";
|
|
9
9
|
import "../chunk-4BDSO4PQ.js";
|
|
10
10
|
import "../chunk-JWD43K7W.js";
|
package/dist/tool/index.js
CHANGED
package/dist/tool/think-tool.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anvia/core",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.2",
|
|
4
4
|
"description": "Core runtime primitives for context-aware Anvia agents.",
|
|
5
5
|
"author": "anvia",
|
|
6
6
|
"license": "MIT",
|
|
@@ -110,11 +110,11 @@
|
|
|
110
110
|
}
|
|
111
111
|
},
|
|
112
112
|
"dependencies": {
|
|
113
|
-
"yaml": "^2.9.
|
|
113
|
+
"yaml": "^2.9.1"
|
|
114
114
|
},
|
|
115
115
|
"peerDependencies": {
|
|
116
|
-
"@valibot/to-json-schema": "^1.
|
|
117
|
-
"zod": "^4.
|
|
116
|
+
"@valibot/to-json-schema": "^1.8.0",
|
|
117
|
+
"zod": "^4.6.5"
|
|
118
118
|
},
|
|
119
119
|
"peerDependenciesMeta": {
|
|
120
120
|
"@valibot/to-json-schema": {
|
|
@@ -123,12 +123,12 @@
|
|
|
123
123
|
},
|
|
124
124
|
"devDependencies": {
|
|
125
125
|
"@types/node": "^24.9.1",
|
|
126
|
-
"@valibot/to-json-schema": "^1.
|
|
126
|
+
"@valibot/to-json-schema": "^1.8.0",
|
|
127
127
|
"tsup": "^8.5.0",
|
|
128
128
|
"typescript": "^5.9.3",
|
|
129
129
|
"valibot": "^1.5.0",
|
|
130
130
|
"vitest": "^4.0.8",
|
|
131
|
-
"zod": "^4.5
|
|
131
|
+
"zod": "^4.6.5"
|
|
132
132
|
},
|
|
133
133
|
"scripts": {
|
|
134
134
|
"build": "tsup",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/tool/think-tool.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { createTool } from \"./create-tool\";\n\nconst defaultThinkToolDescription =\n \"Use this tool to record a thought while reasoning through a complex task. It does not retrieve information, store memory, or change external state.\";\n\nconst thinkToolInput = z.object({\n thought: z.string().describe(\"A thought to record while reasoning through a task.\"),\n});\n\nexport type CreateThinkToolOptions = {\n name?: string;\n description?: string;\n};\n\nexport function createThinkTool(options: CreateThinkToolOptions = {}) {\n return createTool({\n name: options.name ?? \"think\",\n description: options.description ?? defaultThinkToolDescription,\n inputSchema: thinkToolInput,\n outputSchema: z.string(),\n execute: (args) => args.thought,\n });\n}\n"],"mappings":";;;;;AAAA,SAAS,SAAS;AAGlB,IAAM,8BACJ;AAEF,IAAM,iBAAiB,EAAE,OAAO;AAAA,EAC9B,SAAS,EAAE,OAAO,EAAE,SAAS,qDAAqD;AACpF,CAAC;AAOM,SAAS,gBAAgB,UAAkC,CAAC,GAAG;AACpE,SAAO,WAAW;AAAA,IAChB,MAAM,QAAQ,QAAQ;AAAA,IACtB,aAAa,QAAQ,eAAe;AAAA,IACpC,aAAa;AAAA,IACb,cAAc,EAAE,OAAO;AAAA,IACvB,SAAS,CAAC,SAAS,KAAK;AAAA,EAC1B,CAAC;AACH;","names":[]}
|