@neuro.corp/dash 1.0.1 → 1.0.3

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/bin/dash.js CHANGED
@@ -1,9 +1,55 @@
1
1
  #!/usr/bin/env node
2
2
  import { spawn } from "node:child_process";
3
3
  import { fileURLToPath } from "node:url";
4
+ import fs from "node:fs";
5
+ import path from "node:path";
6
+
7
+ const __dirname = path.dirname(fileURLToPath(import.meta.url));
8
+ const pkgPath = path.resolve(__dirname, "..", "package.json");
9
+ let version = "0.0.0";
10
+ try {
11
+ const pkg = JSON.parse(fs.readFileSync(pkgPath, "utf8"));
12
+ if (pkg.version) version = pkg.version;
13
+ } catch {}
14
+
15
+ const args = process.argv.slice(2);
16
+ const hasVersion = args.includes("--version") || args.includes("-v");
17
+ const hasHelp = args.includes("--help") || args.includes("-h");
18
+
19
+ if (hasVersion) {
20
+ console.log(`dash version ${version}`);
21
+ process.exit(0);
22
+ }
23
+
24
+ if (hasHelp) {
25
+ console.log(`dash - AI-powered coding agent for your terminal
26
+
27
+ Usage:
28
+ dash [options] [prompt]
29
+
30
+ Options:
31
+ -v, --version Show version number
32
+ -h, --help Show help
33
+
34
+ Commands:
35
+ /new Start new chat
36
+ /sessions View past sessions
37
+ /models Manage AI models
38
+ /providers Manage API providers
39
+ /updates Check for updates
40
+ /exit Exit terminal
41
+ /help Show help
42
+ /donate Donate to support development
43
+
44
+ Examples:
45
+ dash "create a todo app"
46
+ dash --version
47
+ `);
48
+ process.exit(0);
49
+ }
4
50
 
5
51
  const executable = fileURLToPath(new URL("../dist/dash.exe", import.meta.url));
6
- const child = spawn(executable, process.argv.slice(2), { stdio: "inherit" });
52
+ const child = spawn(executable, args, { stdio: "inherit" });
7
53
 
8
54
  child.on("error", (error) => {
9
55
  console.error(`Could not start Dash: ${error.message}`);
package/dist/dash.exe CHANGED
@@ -1,4 +1,4 @@
1
1
  [diffend] Oversized file quarantined before diffing.
2
2
  name: package/dist/dash.exe
3
- size: 102758400 bytes
4
- sha256: d7a7e3b9a3b0170ebf027e3dd7a0126b6b66d8de59cc3fd1bfb24e24173a24c4
3
+ size: 104695296 bytes
4
+ sha256: 64f6bc3d180f001feb0cdf157ca4a6ac72fa6332944be0df7fded04f9f9580ab
package/package.json CHANGED
@@ -1,43 +1,31 @@
1
- {
2
- "name": "@neuro.corp/dash",
3
- "version": "1.0.1",
4
- "description": "AI-powered coding agent for your terminal",
5
- "license": "SEE LICENSE IN LICENSE",
6
- "type": "module",
7
- "bin": {
8
- "dash": "bin/dash.js"
9
- },
10
- "files": [
11
- "bin/",
12
- "dist/dash.exe",
13
- "LICENSE",
14
- "README.md"
15
- ],
16
- "devDependencies": {
17
- "@types/bun": "latest"
18
- },
19
- "dependencies": {
20
- "@opentui/core": "^0.6.8",
21
- "@opentui/react": "^0.6.8",
22
- "@types/react": "^19.3.0",
23
- "chalk": "^6.0.1",
24
- "cli-highlight": "^2.1.11",
25
- "figures": "^6.1.0",
26
- "ink": "^8.0.0",
27
- "ink-spinner": "^5.0.0",
28
- "ink-text-input": "^6.0.0",
29
- "marked": "^15.0.12",
30
- "marked-terminal": "^7.3.0",
31
- "react": "^19.3.1",
32
- "react-dom": "^19.3.1",
33
- "string-width": "^8.3.0",
34
- "wrap-ansi": "^10.0.2"
35
- },
36
- "scripts": {
37
- "dev": "bun run src/index.tsx",
38
- "start": "bun run src/index.tsx"
39
- },
40
- "engines": {
41
- "node": ">=20"
42
- }
43
- }
1
+ {
2
+ "name": "@neuro.corp/dash",
3
+ "version": "1.0.3",
4
+ "description": "AI-powered terminal coding agent for developers",
5
+ "license": "PROPRIETARY",
6
+ "type": "module",
7
+ "bin": {
8
+ "dash": "bin/dash.js"
9
+ },
10
+ "files": [
11
+ "bin/",
12
+ "dist/dash.exe",
13
+ "LICENSE",
14
+ "README.md"
15
+ ],
16
+ "homepage": "https://github.com/neuro-corp/DASH",
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "https://github.com/neuro-corp/DASH"
20
+ },
21
+ "bugs": {
22
+ "url": "https://github.com/neuro-corp/DASH/issues"
23
+ },
24
+ "scripts": {
25
+ "dev": "bun run src/index.tsx",
26
+ "start": "bun run src/index.tsx"
27
+ },
28
+ "engines": {
29
+ "node": ">=20"
30
+ }
31
+ }