@opendash-ai/cli 0.0.0-master-202607051413 → 0.1.0-beta.2
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/README.md +1 -1
- package/bin/opendash +3 -4
- package/package.json +3 -3
package/README.md
CHANGED
package/bin/opendash
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
const childProcess = require("child_process")
|
|
4
4
|
const fs = require("fs")
|
|
@@ -25,7 +25,6 @@ if (envPath) {
|
|
|
25
25
|
const scriptPath = fs.realpathSync(__filename)
|
|
26
26
|
const scriptDir = path.dirname(scriptPath)
|
|
27
27
|
|
|
28
|
-
//
|
|
29
28
|
const cached = path.join(scriptDir, ".opendash")
|
|
30
29
|
if (fs.existsSync(cached)) {
|
|
31
30
|
run(cached)
|
|
@@ -80,7 +79,7 @@ function supportsAvx2() {
|
|
|
80
79
|
|
|
81
80
|
if (platform === "windows") {
|
|
82
81
|
const cmd =
|
|
83
|
-
'(Add-Type -MemberDefinition "[DllImport("
|
|
82
|
+
'(Add-Type -MemberDefinition "[DllImport(\\"kernel32.dll\\")] public static extern bool IsProcessorFeaturePresent(int ProcessorFeature);" -Name Kernel32 -Namespace Win32 -PassThru)::IsProcessorFeaturePresent(40)'
|
|
84
83
|
|
|
85
84
|
for (const exe of ["powershell.exe", "pwsh.exe", "pwsh", "powershell"]) {
|
|
86
85
|
try {
|
|
@@ -171,7 +170,7 @@ const resolved = findBinary(scriptDir)
|
|
|
171
170
|
if (!resolved) {
|
|
172
171
|
console.error(
|
|
173
172
|
"It seems that your package manager failed to install the right version of the opendash CLI for your platform. You can try manually installing " +
|
|
174
|
-
names.map((n) =>
|
|
173
|
+
names.map((n) => `"${n}"`).join(" or ") +
|
|
175
174
|
" package",
|
|
176
175
|
)
|
|
177
176
|
process.exit(1)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opendash-ai/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.0-beta.2",
|
|
4
4
|
"description": "The open-source AI workspace for analysts.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Jagbir Yadav",
|
|
@@ -31,6 +31,6 @@
|
|
|
31
31
|
"postinstall": "node ./postinstall.mjs"
|
|
32
32
|
},
|
|
33
33
|
"optionalDependencies": {
|
|
34
|
-
"@opendash-ai/opendash-windows-x64": "0.
|
|
34
|
+
"@opendash-ai/opendash-windows-x64": "0.1.0-beta.2"
|
|
35
35
|
}
|
|
36
|
-
}
|
|
36
|
+
}
|