@snap-agent/core 0.1.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.
@@ -0,0 +1,10 @@
1
+ import {
2
+ MemoryStorage,
3
+ MongoDBStorage,
4
+ UpstashStorage
5
+ } from "../chunk-Y5TTFQWC.mjs";
6
+ export {
7
+ MemoryStorage,
8
+ MongoDBStorage,
9
+ UpstashStorage
10
+ };
package/package.json ADDED
@@ -0,0 +1,114 @@
1
+ {
2
+ "name": "@snap-agent/core",
3
+ "version": "0.1.0",
4
+ "description": "SnapAgent - The lightweight, snap-in AI agent SDK. Multi-provider support (OpenAI, Anthropic, Google). Edge-runtime compatible.",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.mjs",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "edge-light": "./dist/index.mjs",
11
+ "worker": "./dist/index.mjs",
12
+ "types": "./dist/index.d.ts",
13
+ "import": "./dist/index.mjs",
14
+ "require": "./dist/index.js"
15
+ },
16
+ "./edge": {
17
+ "edge-light": "./dist/index.mjs",
18
+ "worker": "./dist/index.mjs",
19
+ "types": "./dist/index.d.ts",
20
+ "import": "./dist/index.mjs"
21
+ },
22
+ "./storage": {
23
+ "types": "./dist/storage/index.d.ts",
24
+ "import": "./dist/storage/index.mjs",
25
+ "require": "./dist/storage/index.js"
26
+ }
27
+ },
28
+ "files": [
29
+ "dist",
30
+ "README.md",
31
+ "LICENSE"
32
+ ],
33
+ "scripts": {
34
+ "build": "tsup src/index.ts src/storage/index.ts --format cjs,esm --dts --clean",
35
+ "dev": "tsup src/index.ts src/storage/index.ts --format cjs,esm --dts --watch",
36
+ "test": "vitest run --exclude tests/integration/**",
37
+ "test:watch": "vitest --exclude tests/integration/**",
38
+ "test:integration": "vitest run tests/integration/",
39
+ "test:all": "vitest run",
40
+ "lint": "eslint src/",
41
+ "prepublishOnly": "npm run build"
42
+ },
43
+ "keywords": [
44
+ "ai",
45
+ "agents",
46
+ "llm",
47
+ "openai",
48
+ "anthropic",
49
+ "gemini",
50
+ "claude",
51
+ "gpt",
52
+ "chatgpt",
53
+ "multi-provider",
54
+ "typescript",
55
+ "conversational-ai",
56
+ "chatbot",
57
+ "assistant",
58
+ "edge",
59
+ "cloudflare-workers",
60
+ "vercel-edge",
61
+ "serverless"
62
+ ],
63
+ "author": "ViloTech",
64
+ "license": "MIT",
65
+ "peerDependencies": {
66
+ "@ai-sdk/openai": "^2.0.0",
67
+ "ai": "^5.0.0",
68
+ "mongodb": "^6.0.0 || ^7.0.0"
69
+ },
70
+ "peerDependenciesMeta": {
71
+ "@ai-sdk/anthropic": {
72
+ "optional": true
73
+ },
74
+ "@ai-sdk/google": {
75
+ "optional": true
76
+ },
77
+ "mongodb": {
78
+ "optional": true
79
+ },
80
+ "@upstash/redis": {
81
+ "optional": true
82
+ }
83
+ },
84
+ "devDependencies": {
85
+ "@ai-sdk/anthropic": "^2.0.0",
86
+ "@ai-sdk/google": "^2.0.0",
87
+ "@types/node": "^24.0.0",
88
+ "dotenv": "^17.2.3",
89
+ "eslint": "^8.0.0",
90
+ "mongodb": "^7.0.0",
91
+ "tsup": "^8.0.0",
92
+ "typescript": "^5.8.0",
93
+ "vitest": "^1.0.0"
94
+ },
95
+ "dependencies": {
96
+ "zod": "^3.22.4"
97
+ },
98
+ "publishConfig": {
99
+ "access": "public"
100
+ },
101
+ "repository": {
102
+ "type": "git",
103
+ "url": "git+https://github.com/vilo-hq/snap-agent.git"
104
+ },
105
+ "bugs": {
106
+ "url": "https://github.com/vilo-hq/snap-agent/issues"
107
+ },
108
+ "homepage": "https://vilotech.co",
109
+ "directories": {
110
+ "doc": "docs",
111
+ "example": "examples",
112
+ "test": "tests"
113
+ }
114
+ }