@skylence-ai/skyline 1.4.0 → 1.4.1

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 (3) hide show
  1. package/README.md +21 -3
  2. package/package.json +7 -10
  3. package/postinstall.js +0 -20
package/README.md CHANGED
@@ -146,8 +146,26 @@ the shared HTTP daemon as a supervised autostart service on port 7333 and
146
146
  best-effort installs the Skyline marketplace plugins for agent CLIs already on
147
147
  PATH. Re-run with `skyline setup --force` after changing agent installs or PATH.
148
148
 
149
- npm may run this for you as a best-effort postinstall hook, but modern package
150
- managers can block lifecycle scripts. If in doubt, run `skyline setup` once.
149
+ Setup also runs automatically (never at install time) when all of these hold:
150
+
151
+ - the command is `read`, `edit`, `preview`, `grep`, `sgrep` or `srewrite`, or a
152
+ `skyline <verb>` whose `skyline-<verb>` executable is on PATH (an unknown
153
+ verb or a typo never runs setup);
154
+ - stdin and stdout are both an interactive terminal (no pipe or redirect), and
155
+ neither `CI` nor `SKYLINE_NO_AUTO_SETUP` is set;
156
+ - setup has never run for this user, or last ran for an older skyline version.
157
+
158
+ So it runs on first use and once more after each upgrade (never for a caller
159
+ whose stdout is always piped, who still gets the status/doctor pointer). That re-run may
160
+ restart the shared daemon, which ends its running background jobs. A failed
161
+ automatic run is retried by the next such command; a marketplace plugin that
162
+ fails to install is reported during that setup run only. `skyline status`,
163
+ `skyline doctor` and `skyline daemon status` never run setup; when it is due
164
+ they print one line on stderr pointing at `skyline setup`. On builds with
165
+ accounts, `login` and `logout` never trigger it. **Agents, CI and plugin-only
166
+ installs must run `skyline setup` explicitly**: none of them runs the binary
167
+ from an interactive terminal. `SKYLINE_NO_AUTO_SETUP=1` turns off both the
168
+ automatic run and the pointer.
151
169
 
152
170
  Check it is up with `skyline daemon status` (the port should read `running`).
153
171
  To remove the setup-installed daemon, optional plugins, package-manager install,
@@ -338,4 +356,4 @@ Proprietary. Free to use during the invited beta; activating the software means
338
356
  accepting the terms. Full text:
339
357
  https://github.com/skylence-org/skyline/blob/main/LICENSE
340
358
 
341
- <!-- synced from README blob 6e66172d868c73d7b6cb937bef6afa57b96594c6 -->
359
+ <!-- synced from README blob 96ae49c69c1af90d5f822da7b79bc2ee370248bf -->
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skylence-ai/skyline",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "Content-hash line editor — CLI and MCP server",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "repository": {
@@ -21,20 +21,17 @@
21
21
  "node": ">=16"
22
22
  },
23
23
  "preferUnplugged": true,
24
- "scripts": {
25
- "postinstall": "node postinstall.js"
26
- },
27
24
  "bin": {
28
25
  "skyline": "bin.js",
29
26
  "skyrift": "skyrift.js",
30
27
  "skylore": "skylore.js"
31
28
  },
32
29
  "optionalDependencies": {
33
- "@skylence-ai/skyline-darwin-arm64": "1.4.0",
34
- "@skylence-ai/skyline-darwin-x64": "1.4.0",
35
- "@skylence-ai/skyline-linux-arm64": "1.4.0",
36
- "@skylence-ai/skyline-linux-x64": "1.4.0",
37
- "@skylence-ai/skyline-win32-x64": "1.4.0",
38
- "@skylence-ai/skyline-win32-arm64": "1.4.0"
30
+ "@skylence-ai/skyline-darwin-arm64": "1.4.1",
31
+ "@skylence-ai/skyline-darwin-x64": "1.4.1",
32
+ "@skylence-ai/skyline-linux-arm64": "1.4.1",
33
+ "@skylence-ai/skyline-linux-x64": "1.4.1",
34
+ "@skylence-ai/skyline-win32-x64": "1.4.1",
35
+ "@skylence-ai/skyline-win32-arm64": "1.4.1"
39
36
  }
40
37
  }
package/postinstall.js DELETED
@@ -1,20 +0,0 @@
1
- #!/usr/bin/env node
2
- "use strict";
3
-
4
- // Package-manager lifecycle scripts are increasingly blocked by default. When
5
- // this hook does run, treat it as a best-effort convenience; the real,
6
- // idempotent bootstrap is `skyline setup`.
7
- if (process.env.CI || process.env.SKYLINE_NO_AUTO_SETUP) process.exit(0);
8
-
9
- const { spawnSync } = require("child_process");
10
- const path = require("path");
11
- const bin = path.join(__dirname, "bin.js");
12
- const node = process.execPath;
13
-
14
- const r = spawnSync(node, [bin, "setup"], { stdio: "inherit", windowsHide: true });
15
- const code = r.status ?? 1;
16
- if (r.error || code !== 0) {
17
- console.warn(
18
- "skyline: postinstall setup skipped or failed; run `skyline setup` once after install."
19
- );
20
- }