@leemour/cli-core 0.3.0 → 0.4.0
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/README.md +10 -1
- package/dist/update/index.d.ts +51 -0
- package/dist/update/index.d.ts.map +1 -0
- package/dist/update/index.js +101 -0
- package/dist/update/index.js.map +1 -0
- package/package.json +5 -1
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ keyring behind a testable seam, and injectable clocks.
|
|
|
7
7
|
Extracted from [`brazecli`](https://github.com/leemour/brazecli), where each piece earned its
|
|
8
8
|
shape, and shared with [`max-cli`](https://github.com/leemour/max-cli).
|
|
9
9
|
|
|
10
|
-
**Status: 0.
|
|
10
|
+
**Status: 0.4.0.** Published on npm, used by `max-cli`. Both extraction steps have landed: the
|
|
11
11
|
files that move unchanged, and the ones that needed a parameter threaded through. 75 tests.
|
|
12
12
|
|
|
13
13
|
## The rule this package exists to keep
|
|
@@ -45,6 +45,7 @@ streams.stderr // []
|
|
|
45
45
|
| `/testing` | `captureStreams`, `memoryKeyring`, `brokenKeyring`, `fakeClock` |
|
|
46
46
|
| `/commands` | the command registry: `describeProgram`, `annotate`, `flatten` — see below |
|
|
47
47
|
| `/completion` | shell completion over the registry: `suggest`, `formatSuggestions` — see below |
|
|
48
|
+
| `/update` | keeping an install current: `installerOf`, `updateCommand`, `latestVersion`, `mayNotify` — see below |
|
|
48
49
|
|
|
49
50
|
**Nothing in the root export is HTTP.** Status classification, `Retry-After` parsing and the fetch
|
|
50
51
|
seam live in `@leemour/cli-core/http`, so a CLI that speaks a socket never depends on a stack it
|
|
@@ -98,6 +99,14 @@ second line of defence, not the first.
|
|
|
98
99
|
no ambient clock. That is what makes a timeout test finish instantly and a keyring test incapable
|
|
99
100
|
of reaching a real keychain.
|
|
100
101
|
|
|
102
|
+
**Keeping an install current is `@leemour/cli-core/update`.** `installerOf(realpath(script))` says
|
|
103
|
+
which package manager put the CLI there — pnpm, npm or bun, measured on real installs — and
|
|
104
|
+
`updateCommand` gives the argv that updates it; a checkout or `npx` gets none. `latestVersion` asks
|
|
105
|
+
npm with a timeout and answers `undefined` on any failure. `mayNotify` says whether a person is at a
|
|
106
|
+
terminal to be told: never in JSON, a pipe, `--quiet`, `CI` or with `NO_UPDATE_NOTIFIER`. Nothing
|
|
107
|
+
here updates or prints by itself — a CLI holding somebody's credentials must not change itself
|
|
108
|
+
unasked.
|
|
109
|
+
|
|
101
110
|
## Where secrets actually go, per platform
|
|
102
111
|
|
|
103
112
|
The keyring is real on every desktop and absent on most servers, so the fallback is not an edge
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Keeping an installed CLI current: which package manager put it here, what command updates it,
|
|
3
|
+
* whether npm has something newer, and whether a person should be told.
|
|
4
|
+
*
|
|
5
|
+
* Nothing here updates anything by itself, and nothing here decides to print: a CLI that holds
|
|
6
|
+
* somebody's credentials must not change itself unasked, and a line on the terminal is for a
|
|
7
|
+
* person, never for a script or an agent reading JSON. The CLI asks and decides.
|
|
8
|
+
*/
|
|
9
|
+
import * as v from "valibot";
|
|
10
|
+
import type { FetchLike } from "../http/index.js";
|
|
11
|
+
export type Installer = "pnpm" | "npm" | "bun" | "npx" | "checkout" | "unknown";
|
|
12
|
+
/**
|
|
13
|
+
* Read from where the running file really lives — `realpath` of the script, not `which`: the
|
|
14
|
+
* command on `PATH` is a shim or a link, and only its target says who installed it. Paths measured
|
|
15
|
+
* on 2026-09-24 by installing into throwaway prefixes.
|
|
16
|
+
*/
|
|
17
|
+
export declare const installerOf: (scriptPath: string) => Installer;
|
|
18
|
+
/** The argv that updates a global install, or `undefined` where there is nothing to run. */
|
|
19
|
+
export declare const updateCommand: (installer: Installer, packageName: string) => string[] | undefined;
|
|
20
|
+
/** Plain `x.y.z` only: a pre-release is never offered, so it never counts as newer. */
|
|
21
|
+
export declare const isNewer: (candidate: string, current: string) => boolean;
|
|
22
|
+
/** The `latest` version on npm, or `undefined` on any failure — a hint may never fail a command. */
|
|
23
|
+
export declare const latestVersion: (packageName: string, fetch: FetchLike, { timeoutMs }?: {
|
|
24
|
+
timeoutMs?: number;
|
|
25
|
+
}) => Promise<string | undefined>;
|
|
26
|
+
export declare const CHECK_EVERY_MS: number;
|
|
27
|
+
export interface NotifyContext {
|
|
28
|
+
/** `pretty`, `json` or `jsonl` — the line exists only for the first. */
|
|
29
|
+
format: string;
|
|
30
|
+
stderrIsTTY: boolean;
|
|
31
|
+
quiet: boolean;
|
|
32
|
+
/** The setting; `false` turns the check off. */
|
|
33
|
+
enabled: boolean;
|
|
34
|
+
installer: Installer;
|
|
35
|
+
env: Readonly<Record<string, string | undefined>>;
|
|
36
|
+
/** Extra variables that turn it off, for the CLI's own prefix: `MAX_NO_UPDATE_CHECK`. */
|
|
37
|
+
offVariables?: readonly string[];
|
|
38
|
+
}
|
|
39
|
+
/** Whether a person is at a terminal who could be told — the only case a check is worth making. */
|
|
40
|
+
export declare const mayNotify: ({ format, stderrIsTTY, quiet, enabled, installer, env, offVariables, }: NotifyContext) => boolean;
|
|
41
|
+
declare const updateState: v.ObjectSchema<{
|
|
42
|
+
readonly checkedAt: v.NumberSchema<undefined>;
|
|
43
|
+
readonly latest: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
44
|
+
}, undefined>;
|
|
45
|
+
export type UpdateState = v.InferOutput<typeof updateState>;
|
|
46
|
+
/** What the last check found. A missing or unreadable file is "never checked", not an error. */
|
|
47
|
+
export declare const readUpdateState: (path: string) => UpdateState | undefined;
|
|
48
|
+
export declare const writeUpdateState: (path: string, state: UpdateState) => void;
|
|
49
|
+
export declare const checkIsDue: (state: UpdateState | undefined, now: number) => boolean;
|
|
50
|
+
export {};
|
|
51
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/update/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,CAAC,M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A;AAE3D,gGAAgG;AAChG,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,KAAG,WAAW,GAAG,SAO5D,CAAA;AAED,eAAO,MAAM,gBAAgB,GAAI,MAAM,MAAM,EAAE,OAAO,WAAW,KAAG,IAMnE,CAAA;AAED,eAAO,MAAM,UAAU,GAAI,OAAO,WAAW,GAAG,SAAS,EAAE,KAAK,MAAM,KAAG,OACT,CAAA"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Keeping an installed CLI current: which package manager put it here, what command updates it,
|
|
3
|
+
* whether npm has something newer, and whether a person should be told.
|
|
4
|
+
*
|
|
5
|
+
* Nothing here updates anything by itself, and nothing here decides to print: a CLI that holds
|
|
6
|
+
* somebody's credentials must not change itself unasked, and a line on the terminal is for a
|
|
7
|
+
* person, never for a script or an agent reading JSON. The CLI asks and decides.
|
|
8
|
+
*/
|
|
9
|
+
import * as v from "valibot";
|
|
10
|
+
import { loadConfigFile, saveConfigFile } from "../config.js";
|
|
11
|
+
/**
|
|
12
|
+
* Read from where the running file really lives — `realpath` of the script, not `which`: the
|
|
13
|
+
* command on `PATH` is a shim or a link, and only its target says who installed it. Paths measured
|
|
14
|
+
* on 2026-09-24 by installing into throwaway prefixes.
|
|
15
|
+
*/
|
|
16
|
+
export const installerOf = (scriptPath) => {
|
|
17
|
+
const path = scriptPath.replaceAll("\\", "/");
|
|
18
|
+
if (path.includes("/_npx/"))
|
|
19
|
+
return "npx";
|
|
20
|
+
if (path.includes("/install/global/node_modules/"))
|
|
21
|
+
return "bun";
|
|
22
|
+
if (/\/\.?pnpm\//.test(path))
|
|
23
|
+
return "pnpm";
|
|
24
|
+
if (path.includes("/node_modules/"))
|
|
25
|
+
return "npm";
|
|
26
|
+
return path.includes("/dist/") ? "checkout" : "unknown";
|
|
27
|
+
};
|
|
28
|
+
/** The argv that updates a global install, or `undefined` where there is nothing to run. */
|
|
29
|
+
export const updateCommand = (installer, packageName) => {
|
|
30
|
+
const target = `${packageName}@latest`;
|
|
31
|
+
switch (installer) {
|
|
32
|
+
case "pnpm":
|
|
33
|
+
return ["pnpm", "add", "-g", target];
|
|
34
|
+
case "npm":
|
|
35
|
+
return ["npm", "install", "-g", target];
|
|
36
|
+
case "bun":
|
|
37
|
+
return ["bun", "add", "-g", target];
|
|
38
|
+
default:
|
|
39
|
+
return undefined;
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
/** Plain `x.y.z` only: a pre-release is never offered, so it never counts as newer. */
|
|
43
|
+
export const isNewer = (candidate, current) => {
|
|
44
|
+
const parse = (version) => (/^\d+\.\d+\.\d+$/.test(version) ? version.split(".").map(Number) : undefined);
|
|
45
|
+
const a = parse(candidate);
|
|
46
|
+
const b = parse(current);
|
|
47
|
+
if (!a || !b)
|
|
48
|
+
return false;
|
|
49
|
+
for (let i = 0; i < 3; i++) {
|
|
50
|
+
if (a[i] !== b[i])
|
|
51
|
+
return a[i] > b[i];
|
|
52
|
+
}
|
|
53
|
+
return false;
|
|
54
|
+
};
|
|
55
|
+
/** The `latest` version on npm, or `undefined` on any failure — a hint may never fail a command. */
|
|
56
|
+
export const latestVersion = async (packageName, fetch, { timeoutMs = 1000 } = {}) => {
|
|
57
|
+
try {
|
|
58
|
+
const response = await fetch(`https://registry.npmjs.org/${packageName}/latest`, {
|
|
59
|
+
signal: AbortSignal.timeout(timeoutMs),
|
|
60
|
+
headers: { accept: "application/json" },
|
|
61
|
+
});
|
|
62
|
+
if (!response.ok)
|
|
63
|
+
return undefined;
|
|
64
|
+
const { version } = (await response.json());
|
|
65
|
+
return typeof version === "string" ? version : undefined;
|
|
66
|
+
}
|
|
67
|
+
catch {
|
|
68
|
+
return undefined;
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
export const CHECK_EVERY_MS = 24 * 60 * 60 * 1000;
|
|
72
|
+
/** Whether a person is at a terminal who could be told — the only case a check is worth making. */
|
|
73
|
+
export const mayNotify = ({ format, stderrIsTTY, quiet, enabled, installer, env, offVariables = [], }) => enabled &&
|
|
74
|
+
format === "pretty" &&
|
|
75
|
+
stderrIsTTY &&
|
|
76
|
+
!quiet &&
|
|
77
|
+
updateCommand(installer, "any") !== undefined &&
|
|
78
|
+
!env.CI &&
|
|
79
|
+
!env.NO_UPDATE_NOTIFIER &&
|
|
80
|
+
offVariables.every((name) => !env[name]);
|
|
81
|
+
const updateState = v.object({ checkedAt: v.number(), latest: v.optional(v.string()) });
|
|
82
|
+
/** What the last check found. A missing or unreadable file is "never checked", not an error. */
|
|
83
|
+
export const readUpdateState = (path) => {
|
|
84
|
+
try {
|
|
85
|
+
const state = loadConfigFile(path, updateState, () => ({ checkedAt: 0 }));
|
|
86
|
+
return state.checkedAt > 0 ? state : undefined;
|
|
87
|
+
}
|
|
88
|
+
catch {
|
|
89
|
+
return undefined;
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
export const writeUpdateState = (path, state) => {
|
|
93
|
+
try {
|
|
94
|
+
saveConfigFile(path, state);
|
|
95
|
+
}
|
|
96
|
+
catch {
|
|
97
|
+
// A state file that cannot be written means asking npm again tomorrow, nothing worse.
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
export const checkIsDue = (state, now) => state === undefined || now - state.checkedAt >= CHECK_EVERY_MS;
|
|
101
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/update/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAK7D;;;;GAIG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,UAAkB,EAAa,EAAE;IAC3D,MAAM,IAAI,GAAG,UAAU,CAAC,UAAU,CAAC,IAAI,EAAE,GAAG,CAAC,CAAA;IAC7C,IAAI,IAAI,CAAC,QAAQ,CAAC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EAAE,GAAW,EAAW,EAAE,CACjF,KAAK,KAAK,SAAS,IAAI,GAAG,GAAG,KAAK,CAAC,SAAS,IAAI,cAAc,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leemour/cli-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "The parts every command line tool needs: output modes, terminal rendering, error model, exit codes, credentials, clocks",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Viacheslav Ptsarev",
|
|
@@ -38,6 +38,10 @@
|
|
|
38
38
|
"./completion": {
|
|
39
39
|
"types": "./dist/completion/index.d.ts",
|
|
40
40
|
"default": "./dist/completion/index.js"
|
|
41
|
+
},
|
|
42
|
+
"./update": {
|
|
43
|
+
"types": "./dist/update/index.d.ts",
|
|
44
|
+
"default": "./dist/update/index.js"
|
|
41
45
|
}
|
|
42
46
|
},
|
|
43
47
|
"scripts": {
|