intella-cli 0.0.8 → 0.0.9
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/intella.js +8 -1
- package/package.json +4 -4
package/bin/intella.js
CHANGED
|
@@ -60008,6 +60008,13 @@ async function checkCLIDaemonStatus(sandboxProvider) {
|
|
|
60008
60008
|
async function ensureCLIDaemonRunning(sandboxId, sandboxProvider, options) {
|
|
60009
60009
|
const startTimeout = options?.startTimeout ?? 3000;
|
|
60010
60010
|
const setSandboxId = options?.setSandboxId ?? true;
|
|
60011
|
+
const intellaIsInstalled = await sandboxProvider.executeCommand("where intella");
|
|
60012
|
+
if (intellaIsInstalled.stderr && intellaIsInstalled.stderr.match(/not found/)) {
|
|
60013
|
+
const installIntella = await sandboxProvider.executeCommand("mkdir -p /tmp/installer && cd /tmp/installer && npm init -y && npm i intella-cli@latest && cd node_modules/intella-cli && npm i -g . && npm link");
|
|
60014
|
+
if (installIntella.exitCode != 0) {
|
|
60015
|
+
console.error("Failed to install intella-cli:", installIntella.stderr);
|
|
60016
|
+
}
|
|
60017
|
+
}
|
|
60011
60018
|
const isRunning = await checkCLIDaemonStatus(sandboxProvider);
|
|
60012
60019
|
if (isRunning) {
|
|
60013
60020
|
return;
|
|
@@ -319680,4 +319687,4 @@ yargs_default(hideBin(process.argv)).scriptName("intella-cli").version(getCliVer
|
|
|
319680
319687
|
await disconnectRedisClient();
|
|
319681
319688
|
});
|
|
319682
319689
|
|
|
319683
|
-
//# debugId=
|
|
319690
|
+
//# debugId=6816A4A01127E80464756E2164756E21
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "intella-cli",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"bin": {
|
|
5
|
-
"intella": "bin/intella.js"
|
|
6
|
-
},
|
|
3
|
+
"version": "0.0.9",
|
|
7
4
|
"main": "bin/intella.js",
|
|
8
5
|
"type": "module",
|
|
9
6
|
"description": "Intella CLI",
|
|
7
|
+
"bin": {
|
|
8
|
+
"intella": "bin/intella.js"
|
|
9
|
+
},
|
|
10
10
|
"scripts": {
|
|
11
11
|
"clean": "rm -rf dist bin",
|
|
12
12
|
"build": "export NODE_ENV=production && bun run clean && bun run ./scripts/build.ts && cp dist/index.js bin/intella.js && chmod u+x bin/intella.js",
|