@hop-top/kit 0.5.0-alpha.11 → 0.5.0-alpha.13

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 (102) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/README.md +5 -5
  3. package/dist/bus-D2bAOPYz.d.ts +55 -0
  4. package/dist/bus.d.ts +1 -0
  5. package/dist/bus.js +13 -0
  6. package/dist/chunk-74E6RNOI.js +82 -0
  7. package/dist/chunk-B7XTFDBB.js +17 -0
  8. package/dist/chunk-CAONBSPO.js +497 -0
  9. package/dist/chunk-F7RSL4N4.js +88 -0
  10. package/dist/chunk-I6XDPSXQ.js +75 -0
  11. package/dist/chunk-IDM6YZXN.js +204 -0
  12. package/dist/chunk-P3Y46PYF.js +138 -0
  13. package/dist/chunk-VKQCOVKI.js +880 -0
  14. package/dist/cli.js +3 -3
  15. package/dist/id/index.d.ts +1 -1
  16. package/dist/id/index.js +4 -2
  17. package/dist/index-BqZ7WGQf.d.ts +731 -0
  18. package/dist/{index-VLDcI5NF.d.ts → index-D9zpUrpE.d.ts} +18 -6
  19. package/dist/index.d.ts +5 -2
  20. package/dist/index.js +27 -13
  21. package/dist/upgrade/drivers/configfile.d.ts +45 -0
  22. package/dist/upgrade/drivers/configfile.js +78 -0
  23. package/dist/upgrade/drivers/fsdir.d.ts +61 -0
  24. package/dist/upgrade/drivers/fsdir.js +170 -0
  25. package/dist/upgrade/drivers/postgres.d.ts +121 -0
  26. package/dist/upgrade/drivers/postgres.js +195 -0
  27. package/dist/upgrade/drivers/sqlite.d.ts +101 -0
  28. package/dist/upgrade/drivers/sqlite.js +241 -0
  29. package/dist/upgrade/index.d.ts +2 -0
  30. package/dist/upgrade/index.js +73 -0
  31. package/dist/uri-IJ_AoY3d.d.ts +144 -0
  32. package/dist/uri.d.ts +1 -0
  33. package/dist/uri.js +37 -0
  34. package/dist/version-DEJ3pbiO.d.ts +10 -0
  35. package/dist/wizard-Bf_qHc31.d.ts +159 -0
  36. package/dist/wizard.d.ts +1 -0
  37. package/dist/wizard.js +39 -0
  38. package/package.json +78 -19
  39. package/skills/hop-top-kit-ts/.claude-plugin/plugin.json +19 -0
  40. package/skills/hop-top-kit-ts/SKILL.md +117 -0
  41. package/skills/hop-top-kit-ts/assets/snippets/mcp/mcp.expected +2 -0
  42. package/skills/hop-top-kit-ts/assets/snippets/mcp/mcp.ts +20 -0
  43. package/skills/hop-top-kit-ts/assets/snippets/quickstart/quickstart.expected +13 -0
  44. package/skills/hop-top-kit-ts/assets/snippets/quickstart/quickstart.ts +26 -0
  45. package/skills/hop-top-kit-ts/gym.json +5 -0
  46. package/skills/hop-top-kit-ts/references/ai-and-agents.md +45 -0
  47. package/skills/hop-top-kit-ts/references/cli-and-console.md +63 -0
  48. package/skills/hop-top-kit-ts/references/coverage.md +56 -0
  49. package/skills/hop-top-kit-ts/references/guardrails-and-trust.md +60 -0
  50. package/skills/hop-top-kit-ts/references/other-ports.md +31 -0
  51. package/skills/hop-top-kit-ts/references/serving-and-transports.md +49 -0
  52. package/skills/hop-top-kit-ts/scripts/detect-port.sh +168 -0
  53. package/src/id/README.md +2 -2
  54. package/src/id/contract.test.ts +11 -8
  55. package/src/id/differential.test.ts +54 -0
  56. package/src/id/index.ts +123 -17
  57. package/src/index.test.ts +48 -2
  58. package/src/index.ts +6 -1
  59. package/src/published-types.test.ts +8 -0
  60. package/src/serve.stopped-order.test.ts +156 -0
  61. package/src/upgrade/README.md +42 -0
  62. package/src/upgrade/backup.ts +174 -0
  63. package/src/upgrade/conformance.test.ts +310 -0
  64. package/src/upgrade/document.ts +229 -0
  65. package/src/upgrade/driver.ts +66 -0
  66. package/src/upgrade/drivers/README.md +47 -0
  67. package/src/upgrade/drivers/configfile.test.ts +112 -0
  68. package/src/upgrade/drivers/configfile.ts +107 -0
  69. package/src/upgrade/drivers/fsdir.test.ts +188 -0
  70. package/src/upgrade/drivers/fsdir.ts +216 -0
  71. package/src/upgrade/drivers/isolation.test.ts +18 -0
  72. package/src/upgrade/drivers/postgres.integration.test.ts +395 -0
  73. package/src/upgrade/drivers/postgres.test.ts +272 -0
  74. package/src/upgrade/drivers/postgres.ts +284 -0
  75. package/src/upgrade/drivers/sqlite.integration.test.ts +492 -0
  76. package/src/upgrade/drivers/sqlite.ts +300 -0
  77. package/src/upgrade/drivers/version.ts +21 -0
  78. package/src/upgrade/errors.ts +117 -0
  79. package/src/upgrade/events.ts +117 -0
  80. package/src/{upgrade.test.ts → upgrade/index.test.ts} +102 -1
  81. package/src/{upgrade.ts → upgrade/index.ts} +96 -27
  82. package/src/upgrade/migration.ts +89 -0
  83. package/src/upgrade/migrator.test.ts +391 -0
  84. package/src/upgrade/migrator.ts +527 -0
  85. package/src/upgrade/options.ts +59 -0
  86. package/src/upgrade/semver.ts +90 -0
  87. package/test/skill-snippets.test.ts +60 -0
  88. package/test/upgrade/conformance-migrator.ts +439 -0
  89. package/test/upgrade/conformance-support.ts +44 -0
  90. package/test/upgrade/driver-support.ts +44 -0
  91. package/test/upgrade/pg-container.ts +64 -0
  92. package/test/upgrade/pg-race-worker.ts +48 -0
  93. package/test/upgrade/race-helper.ts +36 -0
  94. package/test/upgrade/sqlite-support.ts +41 -0
  95. package/test/upgrade/testdata/go-fsdir-mydata.tar.gz +0 -0
  96. package/vitest.config.ts +26 -0
  97. package/dist/chunk-4GPCWBBA.js +0 -143
  98. package/dist/chunk-L23O2FFE.js +0 -51
  99. package/dist/upgrade-C3RWGwRi.d.ts +0 -125
  100. package/dist/upgrade.d.ts +0 -1
  101. package/dist/upgrade.js +0 -7
  102. package/dist/{chunk-MFVUENZR.js → chunk-KV7FYEAF.js} +2 -2
@@ -0,0 +1,36 @@
1
+ // The second process of the sqlite two-process test, bundled by the test
2
+ // with esbuild and run with node. Migrates `<RACE_DIR>/app.db` from 1.0.0
3
+ // to 1.2.0, each migration recording its version and pid in `applied`.
4
+
5
+ import Database from 'better-sqlite3';
6
+
7
+ import { Migrator, Registry } from '../../src/upgrade';
8
+ import { SqliteDriver } from '../../src/upgrade/drivers/sqlite';
9
+
10
+ const dir = process.env['RACE_DIR'] as string;
11
+ const dbPath = `${dir}/app.db`;
12
+ const data = `${dir}/data`;
13
+ const db = new Database(dbPath);
14
+
15
+ const reg = new Registry();
16
+ for (const v of ['1.1.0', '1.2.0']) {
17
+ reg.register({
18
+ version: v,
19
+ schema: 'appdb',
20
+ up: async () => {
21
+ await new Promise((r) => setTimeout(r, 200)); // a window for the other process
22
+ db.prepare('INSERT INTO applied (version, pid) VALUES (?, ?)').run(v, process.pid);
23
+ },
24
+ });
25
+ }
26
+ const m = new Migrator('tool', '1.2.0', { registry: reg, dataDir: data });
27
+ m.addDriver(new SqliteDriver(dbPath, { name: 'appdb', dataDir: data }));
28
+ m.run().then(
29
+ () => {
30
+ db.close();
31
+ },
32
+ (e: unknown) => {
33
+ console.error(e);
34
+ process.exit(1);
35
+ },
36
+ );
@@ -0,0 +1,41 @@
1
+ // Helpers of the sqlite driver tests. Loads better-sqlite3: import only
2
+ // from `*.integration.test.ts`.
3
+
4
+ import Database from 'better-sqlite3';
5
+
6
+ /**
7
+ * Opens (creating) a WAL-mode database with table t(x). Auto-checkpoint is
8
+ * off and the handle stays open, so committed rows stay in the -wal file:
9
+ * a plain copy of the database file does not hold them.
10
+ */
11
+ export function openWAL(path: string): Database.Database {
12
+ const db = new Database(path);
13
+ db.pragma('journal_mode = WAL');
14
+ db.pragma('wal_autocheckpoint = 0');
15
+ db.exec('CREATE TABLE IF NOT EXISTS t (x INTEGER)');
16
+ return db;
17
+ }
18
+
19
+ export function insert(db: Database.Database, ...xs: number[]): void {
20
+ const stmt = db.prepare('INSERT INTO t (x) VALUES (?)');
21
+ for (const x of xs) stmt.run(x);
22
+ }
23
+
24
+ /** Reads t(x) in order on a connection of its own, closed after. */
25
+ export function rows(path: string): number[] {
26
+ const db = new Database(path, { readonly: true, fileMustExist: true });
27
+ try {
28
+ return (db.prepare('SELECT x FROM t ORDER BY x').all() as { x: number }[]).map((r) => r.x);
29
+ } finally {
30
+ db.close();
31
+ }
32
+ }
33
+
34
+ export function integrity(path: string): string {
35
+ const db = new Database(path, { readonly: true, fileMustExist: true });
36
+ try {
37
+ return db.pragma('integrity_check', { simple: true }) as string;
38
+ } finally {
39
+ db.close();
40
+ }
41
+ }
package/vitest.config.ts CHANGED
@@ -1,6 +1,32 @@
1
+ import { readFileSync } from "node:fs";
2
+ import { fileURLToPath } from "node:url";
1
3
  import { defineConfig } from "vitest/config";
2
4
 
5
+ // Resolve the published package name to src/ so code written the way an
6
+ // adopter writes it (`import ... from "@hop-top/kit/output"`, as the agent
7
+ // skill snippets do) runs without a build. Aliases come from the exports map
8
+ // of package.json: "./dist/<x>.js" maps to "./src/<x>.ts". Exact matches
9
+ // only, so "@hop-top/kit/upgrade" does not swallow its drivers.
10
+ const here = (p: string): string => fileURLToPath(new URL(p, import.meta.url));
11
+ const exportsMap: Record<string, { default?: string }> = JSON.parse(
12
+ readFileSync(here("./package.json"), "utf8"),
13
+ ).exports;
14
+
15
+ const escape = (s: string): string => s.replace(/[.*+?^${}()|[\]\\/]/g, "\\$&");
16
+
17
+ const kitAliases = Object.entries(exportsMap).flatMap(([sub, target]) => {
18
+ const dist = target.default;
19
+ if (!dist?.startsWith("./dist/") || !dist.endsWith(".js")) return [];
20
+ return [
21
+ {
22
+ find: new RegExp(`^${escape("@hop-top/kit" + sub.slice(1))}$`),
23
+ replacement: here(dist.replace("./dist/", "./src/").replace(/\.js$/, ".ts")),
24
+ },
25
+ ];
26
+ });
27
+
3
28
  export default defineConfig({
29
+ resolve: { alias: kitAliases },
4
30
  test: {
5
31
  // Every test file starts with an empty XDG config home, so no
6
32
  // developer's llm.yaml (or other config) reaches a test.
@@ -1,143 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2
-
3
- var _chunkR5U7XKVJjs = require('./chunk-R5U7XKVJ.js');
4
-
5
- // src/upgrade.ts
6
- var upgrade_exports = {};
7
- _chunkR5U7XKVJjs.__export.call(void 0, upgrade_exports, {
8
- createChecker: () => createChecker
9
- });
10
- var _fs = require('fs'); var fs = _interopRequireWildcard(_fs);
11
- var _os = require('os'); var os = _interopRequireWildcard(_os);
12
- var _path = require('path'); var path = _interopRequireWildcard(_path);
13
- var _semver = require('semver'); var _semver2 = _interopRequireDefault(_semver);
14
- var PAGE_SIZE = 100;
15
- var MAX_PAGES = 3;
16
- function createChecker(opts) {
17
- const {
18
- name,
19
- currentVersion,
20
- owner,
21
- repo,
22
- cacheTTL = 24 * 60 * 60 * 1e3,
23
- stateDir = os.tmpdir(),
24
- timeout = 1e4,
25
- tagPrefix = "",
26
- includePrereleases = false
27
- } = opts;
28
- const listMode = tagPrefix !== "" || includePrereleases;
29
- const cacheFile = path.join(stateDir, `.upgrade-${name}-cache.json`);
30
- const releaseURL = `https://api.github.com/repos/${owner}/${repo}/releases/latest`;
31
- const listURL = `https://api.github.com/repos/${owner}/${repo}/releases`;
32
- const releasesPageURL = `https://github.com/${owner}/${repo}/releases/latest`;
33
- function noticeURL(tag) {
34
- if (!listMode) return releasesPageURL;
35
- const base = `https://github.com/${owner}/${repo}/releases`;
36
- if (tag === void 0) return base;
37
- return `${base}/tag/${tag.split("/").map(encodeURIComponent).join("/")}`;
38
- }
39
- function tagNamesVersion(tag, version) {
40
- return typeof tag === "string" && tag.startsWith(tagPrefix) && _semver2.default.valid(tag.slice(tagPrefix.length).replace(/^v/, "")) === version;
41
- }
42
- function readCache() {
43
- try {
44
- const raw = fs.readFileSync(cacheFile, "utf8");
45
- const parsed = JSON.parse(raw);
46
- if (typeof parsed.version === "string" && typeof parsed.checkedAt === "number") {
47
- if (listMode && !tagNamesVersion(parsed.tag, parsed.version)) {
48
- return null;
49
- }
50
- return parsed;
51
- }
52
- } catch (e) {
53
- }
54
- return null;
55
- }
56
- function writeCache(version, tag) {
57
- try {
58
- const entry = { version, checkedAt: Date.now() };
59
- if (tag !== void 0) entry.tag = tag;
60
- fs.writeFileSync(cacheFile, JSON.stringify(entry), "utf8");
61
- } catch (e2) {
62
- }
63
- }
64
- async function fetchLatestVersion() {
65
- const controller = new AbortController();
66
- const timer = setTimeout(() => controller.abort(), timeout);
67
- try {
68
- if (listMode) return await fetchHighestRelease(controller.signal);
69
- const res = await fetch(releaseURL, {
70
- signal: controller.signal,
71
- headers: { Accept: "application/vnd.github+json" }
72
- });
73
- if (!res.ok) return null;
74
- const body = await res.json();
75
- const tag = body.tag_name;
76
- if (typeof tag !== "string") return null;
77
- return { version: tag.replace(/^v/, "") };
78
- } finally {
79
- clearTimeout(timer);
80
- }
81
- }
82
- async function fetchHighestRelease(signal) {
83
- let best = null;
84
- for (let page = 1; page <= MAX_PAGES; page++) {
85
- const res = await fetch(`${listURL}?per_page=${PAGE_SIZE}&page=${page}`, {
86
- signal,
87
- headers: { Accept: "application/vnd.github+json" }
88
- });
89
- if (!res.ok) {
90
- if (page === 1) return null;
91
- break;
92
- }
93
- const body = await res.json();
94
- if (!Array.isArray(body)) return page === 1 ? null : best;
95
- for (const rel of body) {
96
- if (rel === null || typeof rel !== "object") continue;
97
- if (rel.draft === true || typeof rel.tag_name !== "string") continue;
98
- const tag = rel.tag_name;
99
- if (!tag.startsWith(tagPrefix)) continue;
100
- const version = _semver2.default.valid(tag.slice(tagPrefix.length).replace(/^v/, ""));
101
- if (version === null) continue;
102
- if (!includePrereleases && (rel.prerelease === true || _semver2.default.prerelease(version) !== null)) {
103
- continue;
104
- }
105
- if (best === null || _semver2.default.gt(version, best.version)) best = { version, tag };
106
- }
107
- if (body.length < PAGE_SIZE) break;
108
- }
109
- return best;
110
- }
111
- async function notifyIfAvailable(out) {
112
- try {
113
- let latestVersion = null;
114
- let latestTag;
115
- const cached = readCache();
116
- if (cached !== null && Date.now() - cached.checkedAt < cacheTTL) {
117
- latestVersion = cached.version;
118
- latestTag = cached.tag;
119
- } else {
120
- const latest = await fetchLatestVersion();
121
- if (latest !== null) {
122
- latestVersion = latest.version;
123
- latestTag = latest.tag;
124
- writeCache(latest.version, latest.tag);
125
- }
126
- }
127
- if (latestVersion === null) return;
128
- if (!_semver2.default.gt(latestVersion, currentVersion)) return;
129
- const notice = `
130
- A new release of ${name} is available: v${currentVersion} \u2192 v${latestVersion}
131
- ${noticeURL(latestTag)}
132
- `;
133
- out.write(notice);
134
- } catch (e3) {
135
- }
136
- }
137
- return { notifyIfAvailable };
138
- }
139
-
140
-
141
-
142
-
143
- exports.createChecker = createChecker; exports.upgrade_exports = upgrade_exports;
@@ -1,51 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunkR5U7XKVJjs = require('./chunk-R5U7XKVJ.js');
4
-
5
- // src/id/index.ts
6
- var id_exports = {};
7
- _chunkR5U7XKVJjs.__export.call(void 0, id_exports, {
8
- newId: () => newId,
9
- newTyped: () => newTyped,
10
- parse: () => parse,
11
- parseTyped: () => parseTyped,
12
- typeIdSchema: () => typeIdSchema
13
- });
14
- var _typeidjs = require('typeid-js');
15
- var _zod = require('zod');
16
- function newId(prefix) {
17
- return _typeidjs.typeid.call(void 0, prefix).toString();
18
- }
19
- function parse(s) {
20
- const tid = _typeidjs.TypeID.fromString(s);
21
- return {
22
- prefix: tid.getType(),
23
- uuid: tid.toUUID()
24
- };
25
- }
26
- function newTyped(prefix) {
27
- return _typeidjs.typeid.call(void 0, prefix).toString();
28
- }
29
- function parseTyped(prefix, s) {
30
- const tid = _typeidjs.TypeID.fromString(s, prefix);
31
- return tid.toString();
32
- }
33
- var SUFFIX_RE = /^[0-7][0-9a-hjkmnp-tv-z]{25}$/;
34
- function typeIdSchema(prefix) {
35
- const pattern = new RegExp(
36
- `^${escapeRegExp(prefix)}_${SUFFIX_RE.source.slice(1, -1)}$`
37
- );
38
- return _zod.z.string().regex(pattern, `invalid typeid for prefix '${prefix}'`);
39
- }
40
- function escapeRegExp(s) {
41
- return s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
42
- }
43
-
44
-
45
-
46
-
47
-
48
-
49
-
50
-
51
- exports.newId = newId; exports.parse = parse; exports.newTyped = newTyped; exports.parseTyped = parseTyped; exports.typeIdSchema = typeIdSchema; exports.id_exports = id_exports;
@@ -1,125 +0,0 @@
1
- /**
2
- * @packageDocumentation
3
- *
4
- * Version check and notify — compares the running tool version against the
5
- * latest GitHub release and writes a human-readable upgrade notice to any
6
- * {@link https://nodejs.org/api/stream.html#class-streamwritable | Writable}
7
- * stream when a newer release is available.
8
- *
9
- * ### Cache behaviour
10
- * Results are persisted to `{stateDir}/.upgrade-{name}-cache.json`.
11
- * The cache stores `{ version, checkedAt }`. On the next call within `cacheTTL`
12
- * milliseconds the remote API is not contacted; the cached version is used
13
- * directly. After the TTL expires the cache is refreshed on the next call.
14
- * Cache I/O errors are swallowed — a stale or missing cache simply causes a
15
- * fresh fetch.
16
- *
17
- * ### Error handling philosophy
18
- * Version checking is a best-effort, non-critical operation. Any failure —
19
- * network error, bad JSON, HTTP error, filesystem error, invalid semver — is
20
- * silently discarded. The function always resolves without throwing. If
21
- * something goes wrong the user sees neither a notice nor an error.
22
- *
23
- * ### Notice format
24
- * ```
25
- * \nA new release of {name} is available: v{current} → v{latest}\nhttps://github.com/{owner}/{repo}/releases/latest\n
26
- * ```
27
- *
28
- * ### Component tags and prereleases
29
- * By default the check reads `releases/latest` and strips a leading `v`.
30
- * Set `tagPrefix` (e.g. `xray/v`) for a monorepo whose tags carry a
31
- * component: releases are listed, tags without the prefix are ignored, and
32
- * the notice links to the matching release. Set `includePrereleases` to
33
- * consider prereleases; without it, prereleases are never offered. Both
34
- * options list at most 3 pages of 100 releases, newest first, drafts
35
- * skipped; the highest semver wins.
36
- *
37
- * ### Usage example
38
- * ```ts
39
- * import { createChecker } from '@hop-top/kit/upgrade';
40
- *
41
- * const checker = createChecker({
42
- * name: 'my-cli',
43
- * currentVersion: '1.2.3',
44
- * owner: 'myorg',
45
- * repo: 'my-cli',
46
- * });
47
- *
48
- * // At the end of your CLI command:
49
- * await checker.notifyIfAvailable(process.stderr);
50
- * ```
51
- */
52
- /**
53
- * Static configuration for a version {@link Checker}.
54
- */
55
- interface CheckerOptions {
56
- /** Human-readable tool name shown in the upgrade notice. */
57
- name: string;
58
- /** Currently running version string (semver, without leading `v`). */
59
- currentVersion: string;
60
- /** GitHub organisation or username that owns the repository. */
61
- owner: string;
62
- /** GitHub repository name. */
63
- repo: string;
64
- /**
65
- * How long (ms) a cached result stays valid before a fresh fetch is made.
66
- * @defaultValue 86_400_000 (24 hours)
67
- */
68
- cacheTTL?: number;
69
- /**
70
- * Directory used to store the cache file.
71
- * @defaultValue `os.tmpdir()`
72
- */
73
- stateDir?: string;
74
- /**
75
- * HTTP request timeout in milliseconds.
76
- * @defaultValue 10_000
77
- */
78
- timeout?: number;
79
- /**
80
- * Tag prefix identifying this tool's releases, stripped before the semver
81
- * comparison (e.g. `'xray/v'` for tags like `xray/v0.2.0`). Tags without
82
- * the prefix are not candidates. Setting it lists releases instead of
83
- * reading `releases/latest`, which may belong to another component.
84
- * @defaultValue `''` (no prefix; `releases/latest`)
85
- */
86
- tagPrefix?: string;
87
- /**
88
- * Offer prereleases (e.g. `0.1.0-rc.1`) as upgrades. Setting it lists
89
- * releases instead of reading `releases/latest`, which skips prereleases.
90
- * @defaultValue false
91
- */
92
- includePrereleases?: boolean;
93
- }
94
- /**
95
- * Returned by {@link createChecker}. Call {@link Checker.notifyIfAvailable}
96
- * at the end of a CLI command to surface upgrade notices non-intrusively.
97
- */
98
- interface Checker {
99
- /**
100
- * Checks for a newer GitHub release and writes a one-line notice to `out`
101
- * if one is available. Silently swallows all errors.
102
- *
103
- * @param out - Any Node.js writable stream (e.g. `process.stderr`).
104
- */
105
- notifyIfAvailable(out: NodeJS.WritableStream): Promise<void>;
106
- }
107
- /**
108
- * Creates a {@link Checker} configured with the provided options.
109
- *
110
- * The checker is stateless beyond what is persisted in the cache file; it is
111
- * safe to create multiple instances with the same options.
112
- *
113
- * @param opts - Configuration options; see {@link CheckerOptions}.
114
- * @returns A {@link Checker} ready to call.
115
- */
116
- declare function createChecker(opts: CheckerOptions): Checker;
117
-
118
- type upgrade_Checker = Checker;
119
- type upgrade_CheckerOptions = CheckerOptions;
120
- declare const upgrade_createChecker: typeof createChecker;
121
- declare namespace upgrade {
122
- export { type upgrade_Checker as Checker, type upgrade_CheckerOptions as CheckerOptions, upgrade_createChecker as createChecker };
123
- }
124
-
125
- export { type Checker as C, type CheckerOptions as a, createChecker as c, upgrade as u };
package/dist/upgrade.d.ts DELETED
@@ -1 +0,0 @@
1
- export { C as Checker, a as CheckerOptions, c as createChecker } from './upgrade-C3RWGwRi.js';
package/dist/upgrade.js DELETED
@@ -1,7 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunk4GPCWBBAjs = require('./chunk-4GPCWBBA.js');
4
- require('./chunk-R5U7XKVJ.js');
5
-
6
-
7
- exports.createChecker = _chunk4GPCWBBAjs.createChecker;
@@ -26,7 +26,6 @@ var _chunkGFRAYYRDjs = require('./chunk-GFRAYYRD.js');
26
26
  var _chunkPOR5L2DGjs = require('./chunk-POR5L2DG.js');
27
27
 
28
28
 
29
- var _chunkT6OZMPPVjs = require('./chunk-T6OZMPPV.js');
30
29
 
31
30
 
32
31
 
@@ -34,9 +33,10 @@ var _chunkT6OZMPPVjs = require('./chunk-T6OZMPPV.js');
34
33
 
35
34
 
36
35
 
36
+ var _chunkKVG7YCTSjs = require('./chunk-KVG7YCTS.js');
37
37
 
38
38
 
39
- var _chunkKVG7YCTSjs = require('./chunk-KVG7YCTS.js');
39
+ var _chunkT6OZMPPVjs = require('./chunk-T6OZMPPV.js');
40
40
 
41
41
 
42
42
  var _chunk4UE5TCMQjs = require('./chunk-4UE5TCMQ.js');