haystack-contracts 1.0.0 → 1.0.1

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.
package/package.json CHANGED
@@ -1,36 +1,53 @@
1
1
  {
2
- "name": "haystack-contracts",
3
- "version": "1.0.0",
4
- "description": "TypeScript API contracts (request payloads + response shapes) for the Haystack Robotics platform",
5
- "author": "Haystack Robotics",
6
- "license": "MIT",
7
- "keywords": [
8
- "haystack",
9
- "robotics",
10
- "api-contracts",
11
- "typescript",
12
- "types"
13
- ],
14
- "main": "./dist/index.cjs",
15
- "module": "./dist/index.js",
16
- "types": "./dist/index.d.ts",
17
- "exports": {
18
- ".": {
19
- "types": "./dist/index.d.ts",
20
- "import": "./dist/index.js",
21
- "require": "./dist/index.cjs"
22
- }
2
+ "name": "haystack-contracts",
3
+ "version": "1.0.1",
4
+ "description": "Haystack public API TypeScript types, path constants, and OpenAPI spec for frontend integrations",
5
+ "author": "Haystack Robotics",
6
+ "license": "MIT",
7
+ "sideEffects": false,
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/haystackrobotics/haystack-backend",
11
+ "directory": "packages_published/contracts"
12
+ },
13
+ "keywords": [
14
+ "haystack",
15
+ "robotics",
16
+ "api-contracts",
17
+ "openapi",
18
+ "typescript"
19
+ ],
20
+ "main": "./dist/index.js",
21
+ "module": "./dist/index.mjs",
22
+ "types": "./dist/index.d.ts",
23
+ "exports": {
24
+ ".": {
25
+ "types": "./dist/index.d.ts",
26
+ "import": "./dist/index.mjs",
27
+ "require": "./dist/index.js"
23
28
  },
24
- "files": [
25
- "dist"
26
- ],
27
- "scripts": {
28
- "build": "tsup",
29
- "prepublishOnly": "pnpm run build",
30
- "typecheck": "tsc --noEmit"
31
- },
32
- "devDependencies": {
33
- "tsup": "^8.5.1",
34
- "typescript": "^5.9.3"
35
- }
36
- }
29
+ "./openapi.json": "./openapi.json"
30
+ },
31
+ "files": [
32
+ "dist",
33
+ "openapi.json",
34
+ "README.md"
35
+ ],
36
+ "scripts": {
37
+ "clean": "rm -rf dist build .turbo tsconfig.tsbuildinfo src/generated",
38
+ "export:openapi": "pnpm --filter @haystack/api export:openapi",
39
+ "generate": "ts-node --transpile-only scripts/generate-from-openapi.ts",
40
+ "build": "pnpm run generate && pnpm run clean:dist && tsup",
41
+ "check": "pnpm run export:openapi && pnpm run generate && node scripts/assert-contracts-sync.js",
42
+ "clean:dist": "rm -rf dist",
43
+ "prepublishOnly": "pnpm run build",
44
+ "typecheck": "tsc --noEmit"
45
+ },
46
+ "devDependencies": {
47
+ "@haystack/typescript-config": "workspace:*",
48
+ "openapi-typescript": "^7.8.0",
49
+ "ts-node": "catalog:",
50
+ "tsup": "catalog:",
51
+ "typescript": "catalog:"
52
+ }
53
+ }