-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
109 lines (109 loc) · 4.76 KB
/
Copy pathpackage.json
File metadata and controls
109 lines (109 loc) · 4.76 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
{
"name": "@hasna/knowledge",
"version": "0.2.93",
"description": "Agent-friendly local knowledge CLI with JSON output, pagination, and safe destructive actions",
"type": "module",
"exports": {
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./storage": {
"import": "./dist/storage.js",
"types": "./dist/storage.d.ts"
},
"./serve": {
"import": "./dist/serve.js",
"types": "./dist/serve.d.ts"
}
},
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"bin": {
"knowledge": "bin/knowledge.js",
"knowledge-mcp": "bin/knowledge-mcp.js",
"knowledge-serve": "bin/knowledge-serve.js"
},
"files": [
"bin",
"dist",
"scripts/apply-cloud-migrations.mjs",
"scripts/lib/remote-temp-dir.mjs",
"scripts/smoke-machine-sync-release.mjs",
"scripts/smoke-machines-adapter.mjs",
"scripts/smoke-open-files-installed-boundary.mjs",
"scripts/strip-generated-trailing-whitespace.mjs",
"scripts/verify-generated-artifacts.mjs",
"docs/architecture/ai-native-knowledge-base.md",
"docs/architecture/hosted-wrapper-responsibilities.md",
"docs/architecture/hybrid-semantic-search.md",
"docs/architecture/machine-sync-schema.md",
"docs/examples/app-project-wiki-standard.md",
"docs/examples/company-wiki-workflow.md",
"docs/migration/global-rules-provenance-import.md",
"docs/migration/json-to-sqlite.md",
"LICENSE",
"README.md"
],
"scripts": {
"test": "bun test",
"test:cli": "bun test tests/cli.test.ts",
"test:package": "bun test tests/package-release.test.ts",
"release:pack:check": "node scripts/validate-public-package.mjs",
"smoke:machines-adapter": "bun scripts/smoke-machines-adapter.mjs",
"smoke:machine-sync-release": "bun scripts/smoke-machine-sync-release.mjs",
"smoke:open-files-installed-boundary": "bun scripts/smoke-open-files-installed-boundary.mjs",
"migrate:cloud": "bun scripts/apply-cloud-migrations.mjs",
"serve": "bun src/serve-entry.ts",
"verify:generated": "bun scripts/verify-generated-artifacts.mjs",
"contracts:conformance": "contracts conformance fixtures",
"build": "rm -rf dist && bun build --target=bun --outfile=bin/knowledge.js --minify --external pg --external @hasna/machines --external @hasna/machines/consumer --external @aws-sdk/client-s3 --external @aws-sdk/credential-providers --external ai --external @ai-sdk/openai --external @ai-sdk/anthropic --external @ai-sdk/deepseek src/cli.ts && bun build --target=bun --outfile=bin/knowledge-mcp.js --external pg --external @hasna/machines --external @hasna/machines/consumer --external @modelcontextprotocol/sdk --external @aws-sdk/client-s3 --external @aws-sdk/credential-providers --external ai --external @ai-sdk/openai --external @ai-sdk/anthropic --external @ai-sdk/deepseek src/mcp.js && bun build --target=bun --outfile=bin/knowledge-serve.js --external pg --external @hasna/machines --external @hasna/machines/consumer --external @aws-sdk/client-s3 --external @aws-sdk/credential-providers --external ai --external @ai-sdk/openai --external @ai-sdk/anthropic --external @ai-sdk/deepseek src/serve-entry.ts && bun build ./src/index.ts ./src/storage.ts ./src/serve.ts --outdir ./dist --target bun --external pg --external @hasna/machines --external @hasna/machines/consumer --external @aws-sdk/client-s3 --external @aws-sdk/credential-providers --external ai --external @ai-sdk/openai --external @ai-sdk/anthropic --external @ai-sdk/deepseek && bun scripts/strip-generated-trailing-whitespace.mjs && bunx tsc -p tsconfig.build.json",
"prepublishOnly": "bun run contracts:conformance && contracts no-cloud-scan . && bun run build && node scripts/validate-public-package.mjs"
},
"keywords": [
"knowledge",
"cli",
"agents",
"json",
"notes",
"local",
"store"
],
"license": "Apache-2.0",
"publishConfig": {
"registry": "https://registry.npmjs.org",
"access": "public"
},
"repository": {
"type": "git",
"url": "git+https://github.com/hasna/knowledge.git"
},
"bugs": {
"url": "https://github.com/hasna/knowledge/issues"
},
"author": "Hasna Inc. <hasna@example.com>",
"engines": {
"bun": ">=1.0",
"node": ">=18"
},
"dependencies": {
"@ai-sdk/anthropic": "^3.0.81",
"@ai-sdk/deepseek": "^2.0.35",
"@ai-sdk/openai": "^3.0.68",
"@aws-sdk/client-s3": "^3.1063.0",
"@aws-sdk/credential-providers": "^3.1063.0",
"@hasna/events": "^0.1.3",
"@modelcontextprotocol/sdk": "^1.29.0",
"@types/json-schema": "^7.0.15",
"ai": "^6.0.197",
"commander": "^13.1.0",
"pg": "^8.16.3",
"zod": "^4.3.6"
},
"devDependencies": {
"@electric-sql/pglite": "^0.5.4",
"@hasna/contracts": "0.8.5",
"@types/bun": "^1.3.14",
"@types/pg": "^8.15.6"
}
}