@rosthq/cli 0.7.68 → 0.7.70

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.
@@ -1,6 +1,16 @@
1
1
  type UpdateCheckIo = {
2
2
  stderr: Pick<NodeJS.WriteStream, "write">;
3
3
  };
4
- export declare function maybePrintUpgradeNudge(io: UpdateCheckIo): Promise<void>;
4
+ export type MaybePrintUpgradeNudgeOptions = {
5
+ /** Path to the throttle-state file. Defaults to `~/.config/<bin>/update-check.json`. */
6
+ statePath?: string;
7
+ /** Clock used to compute "today" (UTC date-only). Defaults to `new Date()`. */
8
+ now?: Date;
9
+ /** Fetches the latest published version for `packageName`. Defaults to the npm registry. */
10
+ fetchLatest?: (packageName: string) => Promise<string | null>;
11
+ /** Bypasses the CI/VITEST/CLI_SKIP_UPDATE_CHECK env guard. Tests only. */
12
+ skipEnvGuard?: boolean;
13
+ };
14
+ export declare function maybePrintUpgradeNudge(io: UpdateCheckIo, options?: MaybePrintUpgradeNudgeOptions): Promise<void>;
5
15
  export {};
6
16
  //# sourceMappingURL=update-check.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-check.d.ts","sourceRoot":"","sources":["../src/update-check.ts"],"names":[],"mappings":"AAKA,KAAK,aAAa,GAAG;IACnB,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;CAC3C,CAAC;AAMF,wBAAsB,sBAAsB,CAAC,EAAE,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAmB7E"}
1
+ {"version":3,"file":"update-check.d.ts","sourceRoot":"","sources":["../src/update-check.ts"],"names":[],"mappings":"AASA,KAAK,aAAa,GAAG;IACnB,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;CAC3C,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IAC1C,wFAAwF;IACxF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+EAA+E;IAC/E,GAAG,CAAC,EAAE,IAAI,CAAC;IACX,4FAA4F;IAC5F,WAAW,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC9D,0EAA0E;IAC1E,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAUF,wBAAsB,sBAAsB,CAC1C,EAAE,EAAE,aAAa,EACjB,OAAO,GAAE,6BAAkC,GAC1C,OAAO,CAAC,IAAI,CAAC,CAiCf"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rosthq/cli",
3
- "version": "0.7.68",
3
+ "version": "0.7.70",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Command-line adapter for the server-side command surface.",