@rayu-dev/rayu-cli 1.6.13 → 1.7.23

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.
Files changed (3) hide show
  1. package/README.md +36 -10
  2. package/dist/rayu.js +12411 -8006
  3. package/package.json +27 -10
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@rayu-dev/rayu-cli",
3
- "version": "1.6.13",
3
+ "version": "1.7.23",
4
4
  "description": "Rayu-CLI — a multi-provider AI coding CLI",
5
+ "//": "There are deliberately NO runtime `dependencies`. scripts/build.ts bundles every import into the single published file dist/rayu.js, so nothing has to be resolvable from node_modules at runtime — the only unbundled specifiers are the optional native/OTEL modules in that script's EXTERNAL list, each guarded by a try/catch. Declaring them as dependencies anyway made `npm install -g` resolve, download and compile ~80 packages (including sharp's platform prebuilds) that the CLI never loads, which is what made a global install fail differently on every machine. Add build-time packages to devDependencies. If you ever add a module that must be require()d from node_modules at runtime, it belongs in dependencies AND in the installer's expectations (rayu-web/public/install.sh extracts only dist/rayu.js).",
5
6
  "type": "module",
6
7
  "bin": {
7
8
  "rayu": "dist/rayu.js"
@@ -17,28 +18,28 @@
17
18
  "postinstall": "node scripts/postinstall.cjs",
18
19
  "dev": "bun run src/entrypoints/cli.tsx",
19
20
  "dev:local": "RAYU_API_URL=http://localhost:4000/api RAYU_WEB_URL=http://localhost:3000 RAYU_GATEWAY_URL=http://localhost:8080 bun run src/entrypoints/cli.tsx",
20
- "build": "bun run scripts/build.ts",
21
+ "build": "bun run build:cli",
22
+ "build:cli": "bun run scripts/build.ts",
23
+ "build:vscode": "bun run scripts/build-vscode.ts",
21
24
  "start:local": "RAYU_API_URL=http://localhost:4000/api RAYU_WEB_URL=http://localhost:3000 RAYU_GATEWAY_URL=http://localhost:8080 node dist/rayu.js",
22
25
  "build:binaries": "bun run scripts/build-binaries.ts",
23
26
  "build-native": "bun run scripts/build-native.ts",
24
27
  "build:packages": "bun run scripts/build-packages.ts",
25
28
  "package": "bun run scripts/build-binaries.ts",
26
29
  "typecheck": "tsc --noEmit -p tsconfig.typecheck.json",
30
+ "check:installer": "sh scripts/check-installer-sync.sh",
27
31
  "typecheck:ci": "bun run scripts/typecheck-baseline.ts",
28
32
  "typecheck:update": "bun run scripts/typecheck-baseline.ts --update",
29
- "test": "bun test"
33
+ "boundary": "bun run scripts/analyze-boundary.ts",
34
+ "boundary:update": "bun run scripts/analyze-boundary.ts --update",
35
+ "codemod:features": "bun run scripts/codemod-features.ts",
36
+ "test": "bun test",
37
+ "test:vscode-ui": "bun build scripts/test-vscode-ui.ts --outfile dist/test-vscode-ui.mjs --target node --external playwright-core --external @vscode/test-electron && node dist/test-vscode-ui.mjs"
30
38
  },
31
39
  "engines": {
32
40
  "node": ">=18.0.0"
33
41
  },
34
42
  "devDependencies": {
35
- "@types/bun": "^1.3.14",
36
- "@types/lodash-es": "^4.17.12",
37
- "@types/node": "^20.19.0",
38
- "@types/react": "^18.3.0",
39
- "typescript": "^5.6.0"
40
- },
41
- "dependencies": {
42
43
  "@alcalzone/ansi-tokenize": "^0.3.0",
43
44
  "@anthropic-ai/claude-agent-sdk": "^0.3.158",
44
45
  "@anthropic-ai/mcpb": "^2.1.2",
@@ -61,6 +62,14 @@
61
62
  "@opentelemetry/sdk-metrics": "^2.7.1",
62
63
  "@opentelemetry/sdk-trace-base": "^2.7.1",
63
64
  "@opentelemetry/semantic-conventions": "^1.41.1",
65
+ "@types/bun": "^1.3.14",
66
+ "@types/lodash-es": "^4.17.12",
67
+ "@types/node": "^20.19.0",
68
+ "@types/react": "^18.3.0",
69
+ "@types/react-dom": "18.3.7",
70
+ "@types/vscode": "1.85.0",
71
+ "@vscode/test-electron": "^3.1.0",
72
+ "@vscode/vsce": "3.2.1",
64
73
  "ajv": "^8.20.0",
65
74
  "asciichart": "^1.5.25",
66
75
  "auto-bind": "^5.0.1",
@@ -94,20 +103,24 @@
94
103
  "openai": "^6.39.1",
95
104
  "p-map": "^7.0.4",
96
105
  "picomatch": "^4.0.4",
106
+ "playwright-core": "^1.63.0",
97
107
  "proper-lockfile": "^4.1.2",
98
108
  "qrcode": "^1.5.4",
99
109
  "react": "^19.2.6",
110
+ "react-dom": "19.2.6",
100
111
  "react-reconciler": "^0.33.0",
101
112
  "semver": "^7.8.1",
102
113
  "sharp": "0.35.3",
103
114
  "shell-quote": "^1.8.4",
104
115
  "signal-exit": "^4.1.0",
116
+ "socket.io-client": "4.8.3",
105
117
  "stack-utils": "^2.0.6",
106
118
  "strip-ansi": "^7.2.0",
107
119
  "supports-hyperlinks": "^4.4.0",
108
120
  "tree-kill": "^1.2.2",
109
121
  "turndown": "^7.2.4",
110
122
  "type-fest": "^5.6.0",
123
+ "typescript": "^5.6.0",
111
124
  "undici": "^6.21.0",
112
125
  "usehooks-ts": "^3.1.1",
113
126
  "vscode-jsonrpc": "^8.2.1",
@@ -118,5 +131,9 @@
118
131
  "xss": "^1.0.15",
119
132
  "yaml": "^2.9.0",
120
133
  "zod": "^4.4.3"
134
+ },
135
+ "//exports": "`.` is the CLI binary and the only published entry. The Rayucode VS Code extension does NOT import this package: `bun run build:vscode` compiles the extension host, the webview and the engine child DIRECTLY from rayu/src into a .vsix (scripts/build-vscode.ts), so there is no library surface to publish and no second copy of the engine to keep in step. The retired `./lib` export pointed at dist/rayu-lib.js, which no longer exists.",
136
+ "exports": {
137
+ ".": "./dist/rayu.js"
121
138
  }
122
139
  }