@mk-co/neox-cli 2.0.7

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.
@@ -0,0 +1,36 @@
1
+ // @ts-nocheck
2
+ import {type ReactNode, type Key, type LegacyRef} from 'react';
3
+ import {type Except} from 'type-fest';
4
+ import {type DOMElement} from './dom.js';
5
+ import {type Styles} from './styles.js';
6
+
7
+ declare module 'react' {
8
+ namespace JSX {
9
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions
10
+ interface IntrinsicElements {
11
+ 'ink-box': Ink.Box;
12
+ 'ink-text': Ink.Text;
13
+ }
14
+ }
15
+ }
16
+
17
+ declare namespace Ink {
18
+ type Box = {
19
+ internal_static?: boolean;
20
+ children?: ReactNode;
21
+ key?: Key;
22
+ ref?: LegacyRef<DOMElement>;
23
+ style?: Except<Styles, 'textWrap'>;
24
+ internal_accessibility?: DOMElement['internal_accessibility'];
25
+ };
26
+
27
+ type Text = {
28
+ children?: ReactNode;
29
+ key?: Key;
30
+ style?: Styles;
31
+
32
+ // eslint-disable-next-line @typescript-eslint/naming-convention
33
+ internal_transform?: (children: string, index: number) => string;
34
+ internal_accessibility?: DOMElement['internal_accessibility'];
35
+ };
36
+ }
package/package.json ADDED
@@ -0,0 +1,103 @@
1
+ {
2
+ "name": "@mk-co/neox-cli",
3
+ "version": "2.0.7",
4
+ "description": "Professional AI code assistant CLI powered by Node.js",
5
+ "type": "module",
6
+ "main": "dist/cli/main.js",
7
+ "bin": {
8
+ "neox": "./dist/cli/main.js",
9
+ "mkcd": "./dist/cli/main.js"
10
+ },
11
+ "files": [
12
+ "dist/**/*.js",
13
+ "dist/**/*.d.ts",
14
+ "!dist/**/*.map",
15
+ "README.md",
16
+ "LICENSE"
17
+ ],
18
+ "scripts": {
19
+ "build": "tsup",
20
+ "build:legacy": "tsc && chmod +x dist/cli/main.js",
21
+ "dev": "tsx src/cli/main.ts",
22
+ "electron:rebuild": "electron-rebuild -f -w node-pty",
23
+ "postinstall": "node scripts/postinstall.js",
24
+ "ui:build-electron": "tsc --project tsconfig.electron.json && node scripts/build-electron.js && cp src/ui/electron/preload.js dist/ui-electron/electron/",
25
+ "ui:dev": "npm run ui:build-electron && concurrently -k -s first \"cross-env NODE_ENV=development VITE_DEV_SERVER_URL=http://127.0.0.1:5180 vite --config vite.config.ui.ts\" \"wait-on tcp:127.0.0.1:5180 && cross-env NODE_ENV=development VITE_DEV_SERVER_URL=http://127.0.0.1:5180 electron ./dist/ui-electron/electron/main.js\"",
26
+ "ui:build": "npm run ui:build-electron && cross-env NODE_ENV=production vite build --config vite.config.ui.ts",
27
+ "ui:preview": "vite preview --config vite.config.ui.ts",
28
+ "ui:type-check": "tsc --project tsconfig.ui.json --noEmit",
29
+ "start": "node dist/cli/main.js",
30
+ "clean": "rm -rf dist",
31
+ "type-check": "tsc --project tsconfig.typecheck.json --noEmit",
32
+ "prepublishOnly": "npm run clean && npm run build && npm run type-check",
33
+ "link": "npm run build && npm link",
34
+ "unlink": "npm unlink -g neox-cli",
35
+ "setup-java-debug": "bash scripts/download-java-debug.sh",
36
+ "demo:code-interpreter": "tsx examples/code-interpreter-demo.ts",
37
+ "demo:code-agent": "tsx examples/code-interpreter-agent.ts"
38
+ },
39
+ "keywords": [
40
+ "cli",
41
+ "ai",
42
+ "agent",
43
+ "code-assistant",
44
+ "openai"
45
+ ],
46
+ "author": "Your Name",
47
+ "license": "MIT",
48
+ "dependencies": {
49
+ "@vscode/ripgrep": "^1.17.0",
50
+ "ajv": "^8.17.1",
51
+ "axios": "^1.6.7",
52
+ "chalk": "^4.1.2",
53
+ "duck-duck-scrape": "^2.2.7",
54
+ "execa": "^8.0.1",
55
+ "fast-glob": "^3.3.2",
56
+ "ink": "^6.6.0",
57
+ "ink-box": "^1.0.0",
58
+ "ink-select-input": "^6.2.0",
59
+ "ink-spinner": "^5.0.0",
60
+ "ink-text-input": "^6.0.0",
61
+ "openai": "^4.28.0",
62
+ "ora": "^8.0.1",
63
+ "prompts": "^2.4.2",
64
+ "puppeteer-core": "^24.32.0",
65
+ "react": "^19.2.3",
66
+ "react-devtools-core": "^6.1.5",
67
+ "simple-git": "^3.30.0",
68
+ "zod": "^3.22.4"
69
+ },
70
+ "devDependencies": {
71
+ "@electron/rebuild": "^4.0.1",
72
+ "@types/node": "^20.11.19",
73
+ "@types/prompts": "^2.4.9",
74
+ "@types/react": "^19.2.7",
75
+ "@types/react-dom": "^19.2.3",
76
+ "@vitejs/plugin-react": "^4.3.4",
77
+ "concurrently": "^9.1.2",
78
+ "cross-env": "^7.0.3",
79
+ "electron": "^32.1.2",
80
+ "icon-gen": "^5.0.0",
81
+ "tsup": "^8.5.1",
82
+ "tsx": "^4.7.1",
83
+ "typescript": "^5.3.3",
84
+ "wait-on": "^8.0.2"
85
+ },
86
+ "optionalDependencies": {
87
+ "@monaco-editor/react": "^4.7.0",
88
+ "@xterm/addon-fit": "^0.10.0",
89
+ "@xterm/addon-web-links": "^0.11.0",
90
+ "@xterm/xterm": "^5.5.0",
91
+ "chokidar": "^5.0.0",
92
+ "monaco-editor": "^0.55.1",
93
+ "node-pty": "^1.0.0",
94
+ "react-dom": "^19.0.0",
95
+ "react-markdown": "^10.1.0",
96
+ "rehype-highlight": "^7.0.2",
97
+ "remark-gfm": "^4.0.1",
98
+ "xterm": "^5.3.0"
99
+ },
100
+ "engines": {
101
+ "node": ">=20.0.0"
102
+ }
103
+ }