Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
180 lines (180 loc) · 7.84 KB
/
Copy pathpackage.json
File metadata and controls
180 lines (180 loc) · 7.84 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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
{
"name": "nz-legislation-tool",
"version": "1.2.0",
"description": "CLI tool for searching and retrieving New Zealand legislation data",
"type": "module",
"main": "dist/cli.js",
"bin": {
"nzlegislation": "./dist/cli.js",
"nzlegislation-mcp": "./dist/mcp-cli.js",
"anzlegislation": "./dist/cli.js",
"anzlegislation-mcp": "./dist/mcp-cli.js",
"legislation": "./dist/cli.js",
"legislation-mcp": "./dist/mcp-cli.js"
},
"scripts": {
"dev": "tsx src/cli.ts",
"dev:mcp": "tsx src/mcp-cli.ts",
"build": "tsc && tsc-alias",
"build:analyze": "tsx scripts/bundle-analyze.ts",
"start": "node dist/cli.js",
"start:mcp": "node dist/mcp-cli.js",
"test": "node ./node_modules/vitest/vitest.mjs --config vitest.config.ts",
"test:run": "node ./node_modules/vitest/vitest.mjs run --config vitest.config.ts",
"test:coverage": "node ./node_modules/vitest/vitest.mjs run --config vitest.config.ts --coverage",
"gate:coverage": "tsx scripts/check-coverage-threshold.ts",
"gate:no-placeholder-legal-data": "tsx scripts/check-no-placeholder-legal-data.ts",
"bench": "tsx benchmarks/performance.ts",
"bench:audit": "tsx benchmarks/performance-audit.ts",
"lint": "eslint src/",
"lint:fix": "eslint src/ --fix",
"typecheck": "tsc --noEmit",
"format": "prettier --write \"src/**/*.{ts,js,json,md}\" \"tests/**/*.{ts,js,json,md}\" \"scripts/**/*.{ts,js,json,md}\" \"docs/**/*.md\" \"*.{json,md}\"",
"format:check": "prettier --check \"src/**/*.{ts,js,json,md}\" \"tests/**/*.{ts,js,json,md}\" \"scripts/**/*.{ts,js,json,md}\" \"docs/**/*.md\" \"*.{json,md}\"",
"lint:biome": "biome check src/ tests/",
"lint:biome-fix": "biome check --write --unsafe src/ tests/",
"format:biome": "biome format --write src/ tests/",
"format:biome-check": "biome format src/ tests/",
"lint:oxlint": "oxlint src/ tests/",
"lint:oxlint-fix": "oxlint --fix src/ tests/",
"lint:docs": "vale README.md docs/",
"prepare": "husky",
"changeset": "changeset",
"changeset:version": "changeset version",
"changeset:publish": "changeset publish",
"audit": "pnpm audit",
"audit:fix": "pnpm audit --fix",
"docs": "typedoc",
"docs:serve": "npx http-server docs/api -p 8080 -o",
"gate:conductor-requirements": "tsx scripts/check-conductor-requirements.ts",
"gate:mirror-readiness": "tsx scripts/check-mirror-readiness.ts",
"gate:manifest-docs": "tsx scripts/check-manifest-docs-drift.ts",
"smoke:install-snippets": "tsx scripts/smoke-install-snippets.ts",
"gate:install-snippets": "tsx scripts/check-install-snippets.ts && pnpm smoke:install-snippets",
"gate:security-provenance": "tsx scripts/check-security-provenance.ts",
"gate:release-notes": "tsx scripts/check-release-notes.ts",
"gate:package-metadata": "tsx scripts/check-package-metadata.ts",
"gate:provider-capability-manifest": "node ./node_modules/vitest/vitest.mjs run tests/provider-capability-manifest.test.ts tests/provider-registry.test.ts tests/provider-source-cards.test.ts --config vitest.config.ts",
"gate:provider-aware-mcp-export": "node ./node_modules/vitest/vitest.mjs run tests/provider-runtime.test.ts tests/mcp-provider-capability.test.ts tests/e2e/cli.test.ts --config vitest.config.ts",
"gate:nz-stable-compatibility": "tsx scripts/check-nz-stable-compatibility.ts",
"gate:brand-migration": "node ./node_modules/vitest/vitest.mjs run tests/legislation-brand-migration.test.ts --config vitest.config.ts",
"gate:jurisdiction-mainstreaming": "node ./node_modules/vitest/vitest.mjs run tests/jurisdiction-mainstreaming.test.ts --config vitest.config.ts",
"gate:commonwealth-fixtures": "node ./node_modules/vitest/vitest.mjs run tests/commonwealth-provider-fixtures.test.ts --config vitest.config.ts",
"gate:act-provider-readiness": "node ./node_modules/vitest/vitest.mjs run tests/act-provider-readiness.test.ts --config vitest.config.ts",
"gate:openapi-adapter-contract": "node ./node_modules/vitest/vitest.mjs run tests/openapi-adapter-contract.test.ts --config vitest.config.ts",
"gate:website-docs": "tsx scripts/check-website-docs.ts",
"gate:release-submission": "pnpm gate:no-placeholder-legal-data && pnpm gate:provider-capability-manifest && pnpm gate:provider-aware-mcp-export && pnpm gate:package-metadata && pnpm gate:conductor-requirements && pnpm gate:manifest-docs && pnpm gate:website-docs && pnpm gate:install-snippets && pnpm gate:channel-readiness && pnpm gate:assistant-integrations && pnpm gate:ide-integrations && pnpm gate:security-provenance && pnpm gate:release-notes",
"gate:channel-readiness": "tsx scripts/check-channel-readiness.ts",
"gate:assistant-integrations": "tsx scripts/check-assistant-integrations.ts",
"gate:ide-integrations": "tsx scripts/check-ide-integrations.ts",
"docs:dev": "npm --prefix docs-site run dev",
"docs:build": "npm --prefix docs-site run build",
"docs:check": "npm --prefix docs-site run check"
},
"keywords": [
"nz",
"legislation",
"cli",
"legal-tech",
"research",
"new-zealand",
"api"
],
"author": "Dylan Mordaunt <dylan.mordaunt@vuw.ac.nz>",
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/edithatogo/nz-legislation.git"
},
"packageManager": "pnpm@10.29.3",
"legalNz": {
"versioning": "semver",
"logging": "winston"
},
"bugs": {
"url": "https://github.com/edithatogo/nz-legislation/issues"
},
"homepage": "https://github.com/edithatogo/nz-legislation#readme",
"pnpm": {
"overrides": {
"brace-expansion": "5.0.9",
"fast-uri": "3.1.5",
"js-yaml@>=3.0.0 <3.15.0": "3.15.1",
"js-yaml@>=4.0.0 <4.3.0": "4.3.1",
"js-yaml@4.3.0": "4.3.1",
"js-yaml": "4.3.1",
"read-yaml-file>js-yaml": "4.3.1",
"postcss": "8.5.18",
"vite": "7.3.5",
"vitest>vite": "7.3.5",
"esbuild@>=0.27.3 <0.28.1": ">=0.28.1",
"@babel/core@<=7.29.0": ">=7.29.6",
"@hono/node-server@<2.0.5": ">=2.0.5",
"postcss@<=8.5.22": ">=8.5.23",
"fast-uri@>=3.0.0 <3.1.5": ">=3.1.5",
"ip-address@<=10.3.0": ">=10.3.1",
"ip-address@>=10.1.1 <=10.2.1": ">=10.2.2",
"ip-address@>=10.1.1 <=10.2.0": ">=10.2.1",
"hono@<4.12.34": ">=4.12.34",
"brace-expansion@>=4.0.0 <5.0.9": ">=5.0.9",
"js-yaml@>=3.0.0 <3.15.1": ">=3.15.1",
"js-yaml@>=4.0.0 <4.3.1": ">=4.3.1",
"hono@>=3.8.0 <4.12.34": ">=4.12.34",
"hono@>=4.7.0 <4.12.34": ">=4.12.34",
"hono@>=4.12.0 <4.12.34": ">=4.12.34",
"nanoid@<3.3.16": ">=3.3.16",
"nanoid@<3.3.17": ">=3.3.17"
}
},
"engines": {
"node": ">=18.0.0"
},
"dependencies": {
"@modelcontextprotocol/sdk": "^1.29.0",
"chalk": "^5.3.0",
"cli-table3": "^0.6.5",
"commander": "^12.1.0",
"conf": "^13.0.1",
"dotenv": "^16.4.5",
"got": "^14.4.2",
"lru-cache": "^11.2.6",
"ora": "^8.1.0",
"winston": "^3.19.0",
"winston-daily-rotate-file": "^5.0.0",
"zod": "^3.23.8"
},
"devDependencies": {
"@biomejs/biome": "^2.5.0",
"@changesets/cli": "^2.29.7",
"@stryker-mutator/core": "^9.6.0",
"@types/benchmark": "^2.1.5",
"@types/node": "^20.14.11",
"@typescript-eslint/eslint-plugin": "^8.56.1",
"@typescript-eslint/parser": "^8.56.1",
"@vitest/coverage-v8": "^4.1.0",
"benchmark": "^2.1.4",
"eslint": "^8.57.1",
"eslint-import-resolver-typescript": "^4.4.4",
"eslint-plugin-import": "^2.32.0",
"execa": "^9.6.1",
"fast-check": "^4.6.0",
"husky": "^9.1.7",
"lint-staged": "^16.3.2",
"msw": "^2.12.10",
"oxlint": "^1.71.0",
"prettier": "^3.8.1",
"tsc-alias": "^1.8.16",
"tsx": "^4.16.2",
"typedoc": "^0.28.20",
"typescript": "^5.5.3",
"typescript-eslint": "^8.56.1",
"vite": "7.3.5",
"vitest": "^4.1.0"
},
"files": [
"dist",
"README.md",
"LICENSE"
],
"private": true
}