@ai-matrx/desktop-protocol 0.1.0

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 ADDED
@@ -0,0 +1,124 @@
1
+ {
2
+ "name": "@ai-matrx/desktop-protocol",
3
+ "version": "0.1.0",
4
+ "description": "The one wire contract between Matrx 2 (the desktop app) and every client that drives it — phone, web app, extension, server: zod schemas for the envelope and every cap.op, the 16-byte binary frame codec, a reconnecting request/stream/credit/reattach client, React hooks, and a generated JSON Schema + Pydantic twin that CI keeps byte-identical.",
5
+ "type": "module",
6
+ "main": "./dist/index.cjs",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "license": "MIT",
10
+ "keywords": [
11
+ "ai-matrx",
12
+ "desktop",
13
+ "protocol",
14
+ "websocket",
15
+ "zod",
16
+ "relay",
17
+ "pty",
18
+ "react"
19
+ ],
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "git+https://github.com/AI-Matrix-Engine/aidream.git",
23
+ "directory": "apps/shared/desktop-protocol"
24
+ },
25
+ "homepage": "https://github.com/AI-Matrix-Engine/aidream/tree/main/apps/shared/desktop-protocol#readme",
26
+ "bugs": {
27
+ "url": "https://github.com/AI-Matrix-Engine/aidream/issues"
28
+ },
29
+ "files": [
30
+ "dist",
31
+ "README.md",
32
+ "LICENSE",
33
+ "CHANGELOG.md"
34
+ ],
35
+ "exports": {
36
+ ".": {
37
+ "import": {
38
+ "types": "./dist/index.d.ts",
39
+ "default": "./dist/index.js"
40
+ },
41
+ "require": {
42
+ "types": "./dist/index.d.cts",
43
+ "default": "./dist/index.cjs"
44
+ }
45
+ },
46
+ "./frame": {
47
+ "import": {
48
+ "types": "./dist/frame.d.ts",
49
+ "default": "./dist/frame.js"
50
+ },
51
+ "require": {
52
+ "types": "./dist/frame.d.cts",
53
+ "default": "./dist/frame.cjs"
54
+ }
55
+ },
56
+ "./client": {
57
+ "import": {
58
+ "types": "./dist/client.d.ts",
59
+ "default": "./dist/client.js"
60
+ },
61
+ "require": {
62
+ "types": "./dist/client.d.cts",
63
+ "default": "./dist/client.cjs"
64
+ }
65
+ },
66
+ "./react": {
67
+ "import": {
68
+ "types": "./dist/react.d.ts",
69
+ "default": "./dist/react.js"
70
+ },
71
+ "require": {
72
+ "types": "./dist/react.d.cts",
73
+ "default": "./dist/react.cjs"
74
+ }
75
+ },
76
+ "./package.json": "./package.json"
77
+ },
78
+ "dependencies": {
79
+ "zod": "^4.6.5",
80
+ "@ai-matrx/realtime": "latest"
81
+ },
82
+ "devDependencies": {
83
+ "@arethetypeswrong/cli": "^0.18.5",
84
+ "@testing-library/react": "^16.3.3",
85
+ "@types/node": "^26.6.2",
86
+ "@types/react": "19.3.0",
87
+ "@types/react-dom": "19.3.0",
88
+ "jsdom": "^30.1.1",
89
+ "publint": "^0.3.24",
90
+ "react": "^19.3.0",
91
+ "react-dom": "^19.3.0",
92
+ "tsup": "^8.5.1",
93
+ "tsx": "^4.23.15",
94
+ "typescript": "^6.0.3",
95
+ "vitest": "^5.0.1"
96
+ },
97
+ "peerDependencies": {
98
+ "react": ">=18.0.0"
99
+ },
100
+ "peerDependenciesMeta": {
101
+ "react": {
102
+ "optional": true
103
+ }
104
+ },
105
+ "publishConfig": {
106
+ "access": "public",
107
+ "registry": "https://registry.npmjs.org/"
108
+ },
109
+ "engines": {
110
+ "node": ">=20"
111
+ },
112
+ "sideEffects": false,
113
+ "scripts": {
114
+ "build": "pnpm clean && tsup",
115
+ "clean": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\"",
116
+ "generate": "tsx scripts/generate.ts",
117
+ "lint": "node scripts/check-schema-source.mjs --self-test && node scripts/check-schema-source.mjs",
118
+ "check:package": "pnpm lint && pnpm generate --check && pnpm build && node ../scripts/check-exports-agreement.mjs && publint && pnpm verify:tarball",
119
+ "typecheck": "tsc -p tsconfig.json --noEmit",
120
+ "test": "vitest run",
121
+ "test:watch": "vitest",
122
+ "verify:tarball": "node ./scripts/verify-tarball.mjs"
123
+ }
124
+ }