simplicio-installer 1.0.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/install.js +28 -0
- package/package.json +24 -0
package/install.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
const { execSync } = require('child_process');
|
|
3
|
+
const os = require('os');
|
|
4
|
+
|
|
5
|
+
const platform = os.platform();
|
|
6
|
+
const isWin = platform === 'win32';
|
|
7
|
+
|
|
8
|
+
try {
|
|
9
|
+
if (isWin) {
|
|
10
|
+
console.log('Downloading and running Simplicio installer for Windows...');
|
|
11
|
+
execSync(
|
|
12
|
+
'powershell -c "irm https://simpleti.com.br/simplicio/install.ps1 | iex"',
|
|
13
|
+
{ stdio: 'inherit' }
|
|
14
|
+
);
|
|
15
|
+
} else {
|
|
16
|
+
console.log('Downloading and running Simplicio installer for macOS/Linux...');
|
|
17
|
+
execSync(
|
|
18
|
+
'curl -fsSL https://simpleti.com.br/simplicio/install.sh | sh',
|
|
19
|
+
{ stdio: 'inherit' }
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
console.log('\n✅ Simplicio installed successfully!');
|
|
23
|
+
console.log(' Run: simplicio chat');
|
|
24
|
+
console.log(' Docs: https://simpleti.com.br/simplicio/#start');
|
|
25
|
+
} catch (err) {
|
|
26
|
+
console.error('\n❌ Installation failed:', err.message);
|
|
27
|
+
process.exit(1);
|
|
28
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "simplicio-installer",
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"description": "Simplicio installer wrapper for npm.",
|
|
5
|
+
"bin": {
|
|
6
|
+
"simplicio-installer": "./install.js"
|
|
7
|
+
},
|
|
8
|
+
"files": [
|
|
9
|
+
"install.js"
|
|
10
|
+
],
|
|
11
|
+
"keywords": [
|
|
12
|
+
"simplicio",
|
|
13
|
+
"installer",
|
|
14
|
+
"cli",
|
|
15
|
+
"llm",
|
|
16
|
+
"ai"
|
|
17
|
+
],
|
|
18
|
+
"license": "MIT",
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "git+https://github.com/wesleysimplicio/simplicio.git"
|
|
22
|
+
},
|
|
23
|
+
"homepage": "https://simpleti.com.br/simplicio/#start"
|
|
24
|
+
}
|