-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
85 lines (85 loc) · 2.58 KB
/
Copy pathpackage.json
File metadata and controls
85 lines (85 loc) · 2.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
{
"name": "@hasna/attachments",
"version": "1.1.5",
"description": "Open-source attachment transfer with local or private S3 storage, app-hosted share links, CLI, MCP, and REST API",
"repository": {
"type": "git",
"url": "git+https://github.com/hasna/attachments.git"
},
"bugs": {
"url": "https://github.com/hasna/attachments/issues"
},
"homepage": "https://github.com/hasna/attachments#readme",
"bin": {
"attachments": "dist/cli/index.js",
"attachments-mcp": "dist/mcp/server.js",
"attachments-serve": "dist/serve/index.js"
},
"files": [
"dist",
"docs",
"README.md",
"LICENSE",
"SECURITY.md",
"CHANGELOG.md",
"AGENTS.md"
],
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": "./dist/index.js"
},
"scripts": {
"clean": "rm -rf dist",
"build": "bun run clean && bun build src/index.ts src/cli/index.ts src/mcp/server.ts src/serve/index.ts --root src --outdir dist --target bun && bun run scripts/write-types.ts",
"sdk:generate": "bun run scripts/generate-sdk.ts",
"build:cli": "bun run clean && bun build src/cli/index.ts --outdir dist/cli --target bun",
"prepare": "bun run build",
"typecheck": "bunx tsc --noEmit",
"test": "bash scripts/test.sh",
"test:coverage": "bash scripts/test.sh --coverage",
"verify:release": "bun run typecheck && bun run test && bun run build && bun run scan:artifact",
"prepack": "bun run verify:release",
"prepublishOnly": "bun run verify:release",
"scan:artifact": "bun scripts/scan-artifact.ts",
"dev": "bun run src/cli/index.ts",
"dashboard": "cd dashboard && bun run dev",
"dashboard:build": "cd dashboard && bun run build",
"postinstall": "mkdir -p $HOME/.hasna/attachments 2>/dev/null || true"
},
"publishConfig": {
"registry": "https://registry.npmjs.org",
"access": "public"
},
"keywords": [
"attachments",
"s3",
"local-storage",
"file-transfer",
"share-links",
"ai-agents",
"mcp",
"cli"
],
"license": "Apache-2.0",
"dependencies": {
"@aws-sdk/client-s3": "^3.1007.0",
"@aws-sdk/lib-storage": "3.1007.0",
"@aws-sdk/s3-request-presigner": "^3.1007.0",
"@hasna/contracts": "^0.8.2",
"@hasna/events": "^0.1.6",
"@modelcontextprotocol/sdk": "^1.27.1",
"@types/mime-types": "^3.0.1",
"commander": "^14.0.3",
"date-fns": "^4.1.0",
"hono": "^4.12.7",
"mime-types": "^3.0.2",
"nanoid": "^5.1.6",
"pg": "^8.20.0"
},
"devDependencies": {
"@types/bun": "^1.3.10",
"@types/pg": "^8.15.6",
"typescript": "^5.9.3"
}
}