@lorehq/cli 0.1.20 → 0.1.22
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/package.json +7 -7
- package/scripts/postinstall.js +16 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lorehq/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.22",
|
|
4
4
|
"description": "Lore CLI — agentic coding, unified",
|
|
5
5
|
"bin": {
|
|
6
6
|
"lore": "bin/lore.js"
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
"postinstall": "node scripts/postinstall.js"
|
|
10
10
|
},
|
|
11
11
|
"optionalDependencies": {
|
|
12
|
-
"@lorehq/cli-linux-x64": "0.1.
|
|
13
|
-
"@lorehq/cli-linux-arm64": "0.1.
|
|
14
|
-
"@lorehq/cli-darwin-x64": "0.1.
|
|
15
|
-
"@lorehq/cli-darwin-arm64": "0.1.
|
|
16
|
-
"@lorehq/cli-win32-x64": "0.1.
|
|
17
|
-
"@lorehq/cli-win32-arm64": "0.1.
|
|
12
|
+
"@lorehq/cli-linux-x64": "0.1.22",
|
|
13
|
+
"@lorehq/cli-linux-arm64": "0.1.22",
|
|
14
|
+
"@lorehq/cli-darwin-x64": "0.1.22",
|
|
15
|
+
"@lorehq/cli-darwin-arm64": "0.1.22",
|
|
16
|
+
"@lorehq/cli-win32-x64": "0.1.22",
|
|
17
|
+
"@lorehq/cli-win32-arm64": "0.1.22"
|
|
18
18
|
},
|
|
19
19
|
"keywords": ["lore", "cli", "agent", "ai", "harness", "coding-agent"],
|
|
20
20
|
"license": "Apache-2.0",
|
package/scripts/postinstall.js
CHANGED
|
@@ -8,6 +8,15 @@ const { execSync } = require("child_process");
|
|
|
8
8
|
const sudoUser = process.env.SUDO_USER;
|
|
9
9
|
const isRoot = process.getuid && process.getuid() === 0;
|
|
10
10
|
|
|
11
|
+
const logo = `
|
|
12
|
+
_
|
|
13
|
+
| |
|
|
14
|
+
| | ___ _ __ ___
|
|
15
|
+
| |/ _ \\| '__/ _ \\
|
|
16
|
+
| | (_) | | | __/
|
|
17
|
+
|_|\\___/|_| \\___|
|
|
18
|
+
`;
|
|
19
|
+
|
|
11
20
|
function run(cmd) {
|
|
12
21
|
if (isRoot && sudoUser) {
|
|
13
22
|
execSync(`su - ${sudoUser} -c "${cmd}"`, { stdio: "pipe", timeout: 30000 });
|
|
@@ -17,11 +26,18 @@ function run(cmd) {
|
|
|
17
26
|
}
|
|
18
27
|
|
|
19
28
|
try {
|
|
29
|
+
process.stderr.write(logo);
|
|
30
|
+
|
|
20
31
|
// Bootstrap ~/.config/lore/ — dirs, harness seeds, examples
|
|
32
|
+
process.stderr.write(" Setting up...");
|
|
21
33
|
run("lore version");
|
|
34
|
+
process.stderr.write(" done.\n");
|
|
22
35
|
|
|
23
36
|
// Install default bundle (lore-os)
|
|
37
|
+
process.stderr.write(" Installing lore-os...");
|
|
24
38
|
run("lore bundle install lore-os --url https://github.com/lorehq/lore-os.git");
|
|
39
|
+
process.stderr.write(" done.\n\n");
|
|
25
40
|
} catch (e) {
|
|
26
41
|
// Binary not yet in PATH during install — will bootstrap on first user command
|
|
42
|
+
process.stderr.write("\n");
|
|
27
43
|
}
|