@skylence-ai/skyline 1.0.32 → 1.0.33

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.
Files changed (2) hide show
  1. package/package.json +10 -7
  2. package/postinstall.js +26 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skylence-ai/skyline",
3
- "version": "1.0.32",
3
+ "version": "1.0.33",
4
4
  "description": "Content-hash line editor — CLI and MCP server",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -21,15 +21,18 @@
21
21
  "node": ">=16"
22
22
  },
23
23
  "preferUnplugged": true,
24
+ "scripts": {
25
+ "postinstall": "node postinstall.js"
26
+ },
24
27
  "bin": {
25
28
  "skyline": "bin.js"
26
29
  },
27
30
  "optionalDependencies": {
28
- "@skylence-ai/skyline-darwin-arm64": "1.0.32",
29
- "@skylence-ai/skyline-darwin-x64": "1.0.32",
30
- "@skylence-ai/skyline-linux-arm64": "1.0.32",
31
- "@skylence-ai/skyline-linux-x64": "1.0.32",
32
- "@skylence-ai/skyline-win32-x64": "1.0.32",
33
- "@skylence-ai/skyline-win32-arm64": "1.0.32"
31
+ "@skylence-ai/skyline-darwin-arm64": "1.0.33",
32
+ "@skylence-ai/skyline-darwin-x64": "1.0.33",
33
+ "@skylence-ai/skyline-linux-arm64": "1.0.33",
34
+ "@skylence-ai/skyline-linux-x64": "1.0.33",
35
+ "@skylence-ai/skyline-win32-x64": "1.0.33",
36
+ "@skylence-ai/skyline-win32-arm64": "1.0.33"
34
37
  }
35
38
  }
package/postinstall.js ADDED
@@ -0,0 +1,26 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+
4
+ // Only run during a global install and outside CI.
5
+ if (!process.env.npm_config_global || process.env.CI) process.exit(0);
6
+
7
+ const { spawnSync } = require("child_process");
8
+ const path = require("path");
9
+ const bin = path.join(__dirname, "bin.js");
10
+ const node = process.execPath;
11
+
12
+ function run(args) {
13
+ const r = spawnSync(node, [bin, ...args], { stdio: "inherit" });
14
+ const code = r.status ?? 1;
15
+ if (code !== 0) {
16
+ console.error(`skyline required postinstall step failed: skyline ${args.join(" ")}`);
17
+ process.exit(code);
18
+ }
19
+ }
20
+
21
+ // Install the HTTP daemon as a persistent background service.
22
+ run(["daemon", "install", "--port", "7333"]);
23
+
24
+ // Required npm bootstrap: immediately wire MCP config, instructions, and the
25
+ // strongest available hooks for AI clients already detected on this machine.
26
+ run(["agent", "install", "--target=detected", "--yes"]);