@anvia/core 0.1.2 → 0.1.3

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Indra Zulfi
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -17,8 +17,8 @@ import "../chunk-YK4WAAS4.js";
17
17
  import "../chunk-XUUY2L2D.js";
18
18
  import "../chunk-GNWMOSNR.js";
19
19
  import "../chunk-B4QHQN5K.js";
20
- import "../chunk-CP47FBJV.js";
21
20
  import "../chunk-A7VDIZQN.js";
21
+ import "../chunk-CP47FBJV.js";
22
22
  export {
23
23
  EvalOutcome,
24
24
  agentEvalTarget,
@@ -11,8 +11,8 @@ import "../chunk-YK4WAAS4.js";
11
11
  import "../chunk-XUUY2L2D.js";
12
12
  import "../chunk-GNWMOSNR.js";
13
13
  import "../chunk-B4QHQN5K.js";
14
- import "../chunk-CP47FBJV.js";
15
14
  import "../chunk-A7VDIZQN.js";
15
+ import "../chunk-CP47FBJV.js";
16
16
  export {
17
17
  ExtractionError,
18
18
  Extractor,
package/dist/index.js CHANGED
@@ -22,6 +22,10 @@ import {
22
22
  AudioGenerationRequestBuilder,
23
23
  audioGenerationRequest
24
24
  } from "./chunk-I77SDTFE.js";
25
+ import {
26
+ ImageGenerationRequestBuilder,
27
+ imageGenerationRequest
28
+ } from "./chunk-B24Q2ZYM.js";
25
29
  import {
26
30
  EvalOutcome,
27
31
  agentEvalTarget,
@@ -82,6 +86,17 @@ import {
82
86
  import {
83
87
  createTool
84
88
  } from "./chunk-B4QHQN5K.js";
89
+ import {
90
+ angularDistance,
91
+ chebyshevDistance,
92
+ cosineSimilarity,
93
+ dotProduct,
94
+ embedDocuments,
95
+ embedText,
96
+ embedTexts,
97
+ euclideanDistance,
98
+ manhattanDistance
99
+ } from "./chunk-A7VDIZQN.js";
85
100
  import {
86
101
  AssistantContent,
87
102
  CompletionCapabilityError,
@@ -96,21 +111,6 @@ import {
96
111
  reasoningDisplayText,
97
112
  textFromAssistantContent
98
113
  } from "./chunk-CP47FBJV.js";
99
- import {
100
- angularDistance,
101
- chebyshevDistance,
102
- cosineSimilarity,
103
- dotProduct,
104
- embedDocuments,
105
- embedText,
106
- embedTexts,
107
- euclideanDistance,
108
- manhattanDistance
109
- } from "./chunk-A7VDIZQN.js";
110
- import {
111
- ImageGenerationRequestBuilder,
112
- imageGenerationRequest
113
- } from "./chunk-B24Q2ZYM.js";
114
114
  export {
115
115
  Agent,
116
116
  AgentBuilder,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anvia/core",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Core runtime primitives for context-aware Anvia agents.",
5
5
  "author": "anvia",
6
6
  "maintainer": "Indra Zulfi",
@@ -85,22 +85,22 @@
85
85
  "import": "./dist/vector-store/index.js"
86
86
  }
87
87
  },
88
- "scripts": {
89
- "build": "tsup src/index.ts src/agent/index.ts src/audio-generation/index.ts src/completion/index.ts src/embeddings/index.ts src/evals/index.ts src/image-generation/index.ts src/loaders/index.ts src/extractor/index.ts src/mcp/index.ts src/memory/index.ts src/observability/index.ts src/pipeline/index.ts src/skills/index.ts src/streaming/index.ts src/tool/index.ts src/transcription/index.ts src/vector-store/index.ts --format esm --dts --sourcemap --clean",
90
- "test": "vitest run",
91
- "typecheck": "tsc --noEmit"
92
- },
93
88
  "dependencies": {
94
89
  "@modelcontextprotocol/sdk": "^1.29.0",
95
90
  "pdfjs-dist": "^5.7.284",
96
91
  "tinyglobby": "^0.2.16",
97
92
  "yaml": "^2.8.4",
98
- "zod": "^4.4.2"
93
+ "zod": "^4.4.3"
99
94
  },
100
95
  "devDependencies": {
101
96
  "@types/node": "^24.9.1",
102
97
  "tsup": "^8.5.0",
103
98
  "typescript": "^5.9.3",
104
99
  "vitest": "^4.0.8"
100
+ },
101
+ "scripts": {
102
+ "build": "tsup src/index.ts src/agent/index.ts src/audio-generation/index.ts src/completion/index.ts src/embeddings/index.ts src/evals/index.ts src/image-generation/index.ts src/loaders/index.ts src/extractor/index.ts src/mcp/index.ts src/memory/index.ts src/observability/index.ts src/pipeline/index.ts src/skills/index.ts src/streaming/index.ts src/tool/index.ts src/transcription/index.ts src/vector-store/index.ts --format esm --dts --sourcemap --clean",
103
+ "test": "vitest run",
104
+ "typecheck": "tsc --noEmit"
105
105
  }
106
- }
106
+ }