-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
161 lines (161 loc) · 5.59 KB
/
Copy pathpackage.json
File metadata and controls
161 lines (161 loc) · 5.59 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
{
"name": "@hasna/contracts",
"version": "0.10.6",
"description": "Shared schemas and validators for Hasna open-source agent infrastructure contracts.",
"type": "module",
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "git+https://github.com/hasna/contracts.git"
},
"homepage": "https://github.com/hasna/contracts",
"bugs": {
"url": "https://github.com/hasna/contracts/issues"
},
"publishConfig": {
"registry": "https://registry.npmjs.org",
"access": "public"
},
"bin": {
"contracts": "dist/cli/index.js",
"contracts-cli": "dist/cli/contracts-cli.js"
},
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"./schemas": {
"types": "./dist/schemas.d.ts",
"import": "./dist/schemas.js"
},
"./deployment": {
"types": "./dist/deployment/index.d.ts",
"import": "./dist/deployment/index.js"
},
"./deployment/artifacts": {
"types": "./dist/deployment-artifacts.d.ts",
"import": "./dist/deployment-artifacts.js"
},
"./deployment/artifacts/*": "./generated/deployment/v1/*",
"./validators": {
"types": "./dist/validators.d.ts",
"import": "./dist/validators.js"
},
"./safe-read": {
"types": "./dist/safe-read.d.ts",
"import": "./dist/safe-read.js"
},
"./safe-read/exec": {
"types": "./dist/safe-read-exec.d.ts",
"import": "./dist/safe-read-exec.js"
},
"./no-cloud": {
"types": "./dist/no-cloud.d.ts",
"import": "./dist/no-cloud.js"
},
"./server-backend": {
"types": "./dist/server-backend.d.ts",
"import": "./dist/server-backend.js"
},
"./service-contract": {
"types": "./dist/service-contract.d.ts",
"import": "./dist/service-contract.js"
},
"./secure-local-store": {
"types": "./dist/secure-local-store.d.ts",
"import": "./dist/secure-local-store.js"
},
"./conformance": {
"types": "./dist/conformance.d.ts",
"import": "./dist/conformance.js"
},
"./vendor-kit": {
"types": "./dist/kit/generate.d.ts",
"import": "./dist/kit/generate.js"
},
"./auth": {
"types": "./dist/auth/index.d.ts",
"import": "./dist/auth/index.js"
},
"./sdk": {
"types": "./dist/sdk/generate.d.ts",
"import": "./dist/sdk/generate.js"
},
"./client": {
"types": "./dist/client/transport.d.ts",
"import": "./dist/client/transport.js"
},
"./client/storage": {
"types": "./dist/client/storage.d.ts",
"import": "./dist/client/storage.js"
},
"./todos": {
"types": "./dist/todos/index.d.ts",
"import": "./dist/todos/index.js"
},
"./todos/artifacts/*": "./generated/todos/v1/*",
"./hasna.contract.schema.json": "./dist/hasna.contract.schema.json",
"./artifact-scan": {
"types": "./dist/artifact-scan.d.ts",
"import": "./dist/artifact-scan.js"
}
},
"files": [
"dist",
"src/kit",
"src/hasna.contract.schema.json",
"docs",
"examples",
"templates/adopter",
"generated/todos/v1",
"generated/deployment/v1",
"CONTRACT.md",
"docker-compose.yml",
"hasna.contract.json",
"README.md",
"LICENSE"
],
"scripts": {
"build": "bun run deployment:check && bun run todos:check && rm -rf dist && bun build src/index.ts src/schemas.ts src/validators.ts src/safe-read.ts src/safe-read-exec.ts src/deployment.ts src/deployment/index.ts src/deployment-artifacts.ts src/no-cloud.ts src/server-backend.ts src/service-contract.ts src/secure-local-store.ts src/conformance.ts src/artifact-scan.ts src/kit/generate.ts src/auth/index.ts src/sdk/generate.ts src/client/transport.ts src/client/storage.ts --root src --outdir dist --target bun && bun build src/todos/index.ts --root src --outdir dist --target bun --packages external && bun build src/cli/index.ts --outdir dist/cli --target bun && cp src/cli/contracts-cli.ts dist/cli/contracts-cli.js && cp src/hasna.contract.schema.json dist/hasna.contract.schema.json && tsc -p tsconfig.build.json --emitDeclarationOnly --outDir dist",
"typecheck": "tsc --noEmit",
"test": "bun test --timeout 120000",
"lint": "tsc --noEmit",
"conformance": "bun run src/cli/index.ts conformance examples",
"verify:release": "rm -rf dist && bun run todos:hygiene && bun run typecheck && bun run test && bun run conformance && bun run build && bun run src/cli/index.ts repo-conformance . && bun run smoke:dist && bun run smoke:todos-pack && bun run pack:check && bun run scan:artifact",
"smoke:dist": "bun scripts/smoke-dist.ts",
"smoke:todos-pack": "bun scripts/smoke-todos-pack.ts",
"pack:check": "bun pm pack --dry-run --ignore-scripts",
"todos:generate": "bun scripts/generate-todos-contract.ts",
"todos:check": "bun scripts/generate-todos-contract.ts --check",
"deployment:generate": "bun scripts/generate-deployment-contract.ts",
"deployment:check": "bun scripts/generate-deployment-contract.ts --check",
"todos:hygiene": "bun scripts/check-todos-text-hygiene.ts",
"dev:cli": "bun run src/cli/index.ts",
"prepack": "bun run verify:release",
"prepublishOnly": "bun run verify:release",
"scan:artifact": "bun scripts/scan-artifact.ts"
},
"keywords": [
"contracts",
"schemas",
"agents",
"zod",
"json-schema",
"hasna"
],
"engines": {
"bun": ">=1.0.0"
},
"dependencies": {
"commander": "^13.1.0",
"zod": "^3.25.76",
"zod-to-json-schema": "^3.24.6"
},
"devDependencies": {
"@types/bun": "^1.2.4",
"@types/pg": "^8.11.10",
"pg": "^8.13.1",
"typescript": "^5.7.3"
}
}