@avantf/dsh-plugin-base 0.5.3 → 0.6.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/lib/lint.js CHANGED
@@ -8,7 +8,7 @@ import { ProvisionError } from './errors.js';
8
8
  import { assertPackageName } from './package-name.js';
9
9
  import { assertRange } from './semver.js';
10
10
  /** The built-in kinds whose names are reserved. */
11
- export const BUILTIN_KINDS = ['npm-package', 'binary-archive', 'model-cache'];
11
+ export const BUILTIN_KINDS = ['npm-package', 'binary-archive', 'model-cache', 'runtime-deps'];
12
12
  /** Item policy keys the core reads. */
13
13
  export const IMPLEMENTED_POLICY_KEYS = ['mirrors', 'timeoutMs'];
14
14
  /** Item policy keys the surface declares but this build does not read. */
@@ -110,6 +110,44 @@ function checkSpec(kind, spec, itemId, findings) {
110
110
  if (!isRecord(spec) || str(spec['repo']) === undefined) {
111
111
  findings.push({ rule: 'lint/spec-shape', itemId, message: 'model-cache 的 spec 必须是 {repo, revision?}' });
112
112
  }
113
+ return;
114
+ }
115
+ if (kind === 'runtime-deps') {
116
+ // Base names no package: the lint checks the GENERIC shape only. The dependency specs themselves
117
+ // are manager-native package.json specs (ranges, file:, aliases, …), so no semver-subset rule here.
118
+ if (!isRecord(spec)) {
119
+ findings.push({ rule: 'lint/spec-shape', itemId, message: 'runtime-deps 的 spec 必须是 {packages, sources, attempts, verify}' });
120
+ return;
121
+ }
122
+ const packages = spec['packages'];
123
+ if (!isRecord(packages) || Object.keys(packages).length === 0) {
124
+ findings.push({ rule: 'lint/spec-shape', itemId, message: 'runtime-deps 缺少非空的 spec.packages' });
125
+ }
126
+ else {
127
+ for (const [name, dependency] of Object.entries(packages)) {
128
+ try {
129
+ assertPackageName(name);
130
+ }
131
+ catch (error) {
132
+ findings.push({ rule: 'lint/spec-shape', itemId, message: error instanceof ProvisionError ? error.message : `非法的包名:${name}` });
133
+ }
134
+ if (typeof dependency !== 'string' || dependency.trim() === '') {
135
+ findings.push({ rule: 'lint/spec-shape', itemId, message: `runtime-deps 的 spec.packages["${name}"] 必须是非空字符串` });
136
+ }
137
+ }
138
+ }
139
+ const sources = spec['sources'];
140
+ if (!Array.isArray(sources) || sources.length === 0 || sources.some(source => !isRecord(source) || str(source['id']) === undefined)) {
141
+ findings.push({ rule: 'lint/spec-shape', itemId, message: 'runtime-deps 的 spec.sources 必须是非空数组且每项带 id' });
142
+ }
143
+ const attempts = spec['attempts'];
144
+ if (!Array.isArray(attempts) || attempts.length === 0 || attempts.some(attempt => !isRecord(attempt) || str(attempt['source']) === undefined)) {
145
+ findings.push({ rule: 'lint/spec-shape', itemId, message: 'runtime-deps 的 spec.attempts 必须是非空数组且每项带 source' });
146
+ }
147
+ const verify = spec['verify'];
148
+ if (!Array.isArray(verify) || verify.some(entry => typeof entry !== 'string' || entry.trim() === '')) {
149
+ findings.push({ rule: 'lint/spec-shape', itemId, message: 'runtime-deps 的 spec.verify 必须是字符串数组' });
150
+ }
113
151
  }
114
152
  }
115
153
  /** Lint a manifest value (already parsed JSON, or a typed object). */
@@ -1,4 +1,4 @@
1
- import type { Provider } from '../types.js';
1
+ import type { Provider, ProviderContext } from '../types.js';
2
2
  export declare const NPM_PACKAGE_KIND = "npm-package";
3
3
  /** The `spec` of an `npm-package` item. */
4
4
  export interface NpmPackageSpec {
@@ -14,11 +14,20 @@ export interface NpmPackageSpec {
14
14
  readonly dir?: string;
15
15
  }[];
16
16
  }
17
+ export declare function packageVersionOf(ctx: ProviderContext, dir: string): Promise<string | undefined>;
17
18
  /** Walk up from a resolved entry to the owning package directory.
18
19
  *
19
20
  * The candidate is checked BEFORE stepping up (the entry usually sits directly in the package), and
20
21
  * `dirnameImpl` is the platform `dirname` so the win32 separator path is covered from Linux. */
21
22
  export declare function packageDirOf(entry: string, name: string, dirnameImpl?: (path: string) => string): string | undefined;
23
+ /** Resolve a peer directory from this module's tree, falling back to the host CWD with a warning.
24
+ *
25
+ * The order matters: `import.meta.url` is the tree that actually loaded this provider, while the CWD
26
+ * is wherever the host happened to start. A peer resolved from the CWD becomes an ABSOLUTE symlink
27
+ * inside the published version directory (see {@link linkPeers}); it dangles the moment the host
28
+ * starts elsewhere or that tree is removed, and it made "one zod" depend on the launch directory.
29
+ * The CWD stays as a last resort, but never silently. */
30
+ export declare function resolvePeerDir(peer: string, ctx: ProviderContext): string | undefined;
22
31
  /** Build the built-in npm provider. */
23
32
  export declare function npmPackageProvider(options?: {
24
33
  readonly id?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"npm.d.ts","sourceRoot":"","sources":["../../src/providers/npm.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAA+B,QAAQ,EAAuE,MAAM,aAAa,CAAA;AAE7I,eAAO,MAAM,gBAAgB,gBAAgB,CAAA;AAM7C,2CAA2C;AAC3C,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;IAC1B,0EAA0E;IAC1E,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAA;IACnC,gGAAgG;IAChG,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS;QAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;QAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CAC1G;AA+KD;;;iGAGiG;AACjG,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,GAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAgB,GAAG,MAAM,GAAG,SAAS,CAS7H;AAgID,uCAAuC;AACvC,wBAAgB,kBAAkB,CAAC,OAAO,GAAE;IAAE,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAA;CA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F"}
@@ -163,7 +163,7 @@ async function findNativeModule(ctx, dir, depth = 0) {
163
163
  }
164
164
  return undefined;
165
165
  }
166
- async function packageVersionOf(ctx, dir) {
166
+ export async function packageVersionOf(ctx, dir) {
167
167
  try {
168
168
  const raw = decodeJson(await ctx.fs.readFile(join(dir, 'package.json')));
169
169
  if (typeof raw !== 'object' || raw === null)
@@ -211,7 +211,7 @@ export function packageDirOf(entry, name, dirnameImpl = dirname) {
211
211
  * inside the published version directory (see {@link linkPeers}); it dangles the moment the host
212
212
  * starts elsewhere or that tree is removed, and it made "one zod" depend on the launch directory.
213
213
  * The CWD stays as a last resort, but never silently. */
214
- function resolvePeerDir(peer, ctx) {
214
+ export function resolvePeerDir(peer, ctx) {
215
215
  const from = (root) => {
216
216
  try {
217
217
  return dirname(createRequire(root).resolve(`${peer}/package.json`));
@@ -0,0 +1,184 @@
1
+ import type { ProvisionFs, ProvisionLock, ProvisionLogger } from '../types.js';
2
+ import type { Provider } from '../types.js';
3
+ /** The kind the runtime-dependency provider claims. */
4
+ export declare const RUNTIME_DEPS_KIND = "runtime-deps";
5
+ /**
6
+ * The canonical `item.target.root` for the shared store. A caller may put the store elsewhere, but
7
+ * then it is a different shared root: the store is shared through the HOME + target.root pair.
8
+ */
9
+ export declare const RUNTIME_DEPS_DIR = "deps/runtime";
10
+ /** One registry/cache endpoint the attempts can name. */
11
+ export interface DependencySource {
12
+ /** Stable id referenced by an {@link InstallAttempt}. */
13
+ readonly id: string;
14
+ /** Registry URL (`https://registry.example/`); omitted means "no registry". */
15
+ readonly registry?: string;
16
+ /** Manager cache/store directory; with no registry the attempt runs offline. */
17
+ readonly cache?: string;
18
+ }
19
+ /** One install attempt: a source plus the manager/script/env policy for that try. */
20
+ export interface InstallAttempt {
21
+ /** An id from {@link RuntimeDepsSpec.sources}. */
22
+ readonly source: string;
23
+ /** `pnpm` when omitted (this family's package manager). */
24
+ readonly manager?: 'npm' | 'pnpm';
25
+ /** Extra environment for the manager process. */
26
+ readonly env?: Readonly<Record<string, string>>;
27
+ /**
28
+ * Whether lifecycle scripts may run. Default `false`: a self-heal install that runs arbitrary
29
+ * registry lifecycle scripts is an explicit decision, so a caller that needs a native build says so.
30
+ */
31
+ readonly allowScripts?: boolean;
32
+ }
33
+ /** What a plugin declares for one `runtime-deps` item. Base names no package. */
34
+ export interface RuntimeDepsSpec {
35
+ /** Package name → package.json dependency spec (a range, `file:` path, alias, …). */
36
+ readonly packages: Readonly<Record<string, string>>;
37
+ /** The registry/cache endpoints the attempts reference. */
38
+ readonly sources: readonly DependencySource[];
39
+ /** Tried in order; the first one whose install AND verify succeeds wins. */
40
+ readonly attempts: readonly InstallAttempt[];
41
+ /**
42
+ * Package specifiers every successful root must resolve (`createRequire(...).resolve()`). Must be
43
+ * non-empty (a root that verified nothing is not a verified root), and the set is part of the key:
44
+ * two specs that verify different things never share a root.
45
+ */
46
+ readonly verify: readonly string[];
47
+ /**
48
+ * Host-provided singletons: name → peer range. They are LINKED from the caller's tree, never
49
+ * installed. The key commits to the name, the range AND the host copy that gets linked (directory +
50
+ * version), so two specs that ask for different ranges — or resolve the same range from different
51
+ * physical copies — never share a root. Every reuse re-reads the version actually linked into the
52
+ * root against the range declared here.
53
+ */
54
+ readonly peers?: Readonly<Record<string, string>>;
55
+ /** A lockfile whose bytes seed/audit the install and are part of the content key. */
56
+ readonly lockfile?: string;
57
+ }
58
+ /** What one call to the manager runner returns. */
59
+ export interface RuntimeDepsRunResult {
60
+ readonly code: number;
61
+ readonly stdout: string;
62
+ readonly stderr: string;
63
+ }
64
+ /** One manager invocation; injectable so the orchestration is testable without a registry. */
65
+ export interface RuntimeDepsRunInput {
66
+ readonly manager: 'npm' | 'pnpm';
67
+ readonly args: readonly string[];
68
+ readonly cwd: string;
69
+ readonly env: Readonly<Record<string, string | undefined>>;
70
+ readonly timeoutMs?: number;
71
+ readonly signal?: AbortSignal;
72
+ }
73
+ /**
74
+ * Provider options. None of them is a package name: the options only seam the host tree, the
75
+ * process facts the key is built from, and the manager runner (tests).
76
+ */
77
+ export interface RuntimeDepsProviderOptions {
78
+ /** Provider id; defaults to `@avantf/dsh-plugin-base/runtime-deps`. */
79
+ readonly id?: string;
80
+ /** The manager used by an attempt that does not name one. Default `pnpm`. */
81
+ readonly manager?: 'npm' | 'pnpm';
82
+ /** Explicit peer directories, overriding resolution from the tree that loaded the base. */
83
+ readonly peerDirs?: Readonly<Record<string, string>>;
84
+ /** Per-key lock budget. Default 300 000 ms. */
85
+ readonly lockTimeoutMs?: number;
86
+ /** A lock whose holder is gone is reclaimed after this age. Default 10 000 ms. */
87
+ readonly staleLockMs?: number;
88
+ /** Manager version probe; defaults to `<manager> --version` (cached per process). */
89
+ readonly managerVersion?: (manager: 'npm' | 'pnpm') => string | undefined;
90
+ /** The manager runner; defaults to spawning the manager with `stdio: pipe`. */
91
+ readonly run?: (input: RuntimeDepsRunInput) => Promise<RuntimeDepsRunResult>;
92
+ /** Process facts the content key includes; defaults to `process.platform/arch/versions.modules`. */
93
+ readonly target?: {
94
+ readonly platform?: string;
95
+ readonly arch?: string;
96
+ readonly abi?: string;
97
+ };
98
+ readonly clock?: () => number;
99
+ }
100
+ /** One attempt as recorded in `.runtime.json`. */
101
+ export interface RuntimeDepsAttemptRecord {
102
+ readonly source: string;
103
+ /** The source's registry, REDACTED: a private registry may carry userinfo or a `_authToken`, and this
104
+ * record sits in a store every plugin can read. The host survives (the diagnostic value), the
105
+ * credential does not; the key still commits to the declared value. */
106
+ readonly registry?: string;
107
+ readonly cache?: string;
108
+ readonly manager: 'npm' | 'pnpm';
109
+ /** The env KEYS the attempt set. Values are deliberately not persisted: they can carry tokens. */
110
+ readonly envKeys: readonly string[];
111
+ readonly allowScripts: boolean;
112
+ readonly result: 'ok' | 'failed';
113
+ readonly code?: string;
114
+ readonly detail?: string;
115
+ readonly ms: number;
116
+ }
117
+ /** The `.runtime.json` record: the handle a plugin can read back from the root. */
118
+ export interface RuntimeDepsRecord {
119
+ readonly schemaVersion: number;
120
+ readonly kind: typeof RUNTIME_DEPS_KIND;
121
+ readonly state: 'ready';
122
+ readonly key: string;
123
+ readonly packages: Readonly<Record<string, string>>;
124
+ readonly lockHash: string;
125
+ readonly platform: string;
126
+ readonly arch: string;
127
+ readonly nodeAbi: string;
128
+ readonly attempts: readonly RuntimeDepsAttemptRecord[];
129
+ readonly peers: readonly string[];
130
+ /**
131
+ * Peers whose link fell back to a COPY (`linkOrCopy`: no symlink support on this filesystem).
132
+ * A linked peer's identity is the resolved host directory AND version; a copied peer only records
133
+ * the version it was cloned from, so the root states that boundary here instead of implying a
134
+ * physical link it does not have. Absent in records written before this field existed.
135
+ */
136
+ readonly copiedPeers?: readonly string[];
137
+ readonly integrity: string;
138
+ readonly installedAt: string;
139
+ }
140
+ /** The shared store root for one item. */
141
+ export declare function runtimeDepsStore(home: string, targetRoot?: string): string;
142
+ /** The per-key lock path; the lock files sit beside the roots, never inside one. */
143
+ export declare function runtimeDepsLockPath(store: string, key: string): string;
144
+ /** Build the built-in shared runtime-dependency provider.
145
+ * @stable */
146
+ export declare function runtimeDepsProvider(options?: RuntimeDepsProviderOptions): Provider;
147
+ /** What one explicit GC pass did. */
148
+ export interface RuntimeDepsGcReport {
149
+ /** Root keys actually removed. */
150
+ readonly removed: readonly string[];
151
+ /** Root keys kept because a recorded plugin references them or the caller listed them. */
152
+ readonly kept: readonly string[];
153
+ /** Root keys not removed (dry-run candidates, a held lock, an unreadable status plane, a failed rm). */
154
+ readonly skipped: readonly string[];
155
+ /** Stale staging trees and dead lock files cleaned up. */
156
+ readonly cleaned: readonly string[];
157
+ }
158
+ export interface RuntimeDepsGcOptions {
159
+ /** The provisioner home (the `<home>` in `<home>/<root>/<key>`). */
160
+ readonly home: string;
161
+ /** The store root below `home`; defaults to {@link RUNTIME_DEPS_DIR}. */
162
+ readonly root?: string;
163
+ /** Extra keys to keep (a caller's own record of the keys it uses). */
164
+ readonly keep?: readonly string[];
165
+ /** Report but do not remove anything. */
166
+ readonly dryRun?: boolean;
167
+ readonly fs?: ProvisionFs;
168
+ readonly lock?: ProvisionLock;
169
+ readonly logger?: ProvisionLogger;
170
+ readonly clock?: () => number;
171
+ /** A lock whose holder pid is gone is removed after this age. Default 10 000 ms. */
172
+ readonly staleMs?: number;
173
+ /** Staging trees older than this are removed. Default 1 hour. */
174
+ readonly stagingGraceMs?: number;
175
+ }
176
+ /**
177
+ * Remove roots no recorded plugin references. EXPLICIT: this is an operator action, never a startup
178
+ * step, because a running plugin may hold a key that has not reached `status.json` yet.
179
+ *
180
+ * A root is kept when its key is in `keep` or in a `runtime-deps` status row's `version` (the
181
+ * content key this provider reports). Roots in use by a live per-key lock are skipped, never stolen.
182
+ */
183
+ export declare function gcRuntimeDeps(options: RuntimeDepsGcOptions): Promise<RuntimeDepsGcReport>;
184
+ //# sourceMappingURL=runtime_deps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime_deps.d.ts","sourceRoot":"","sources":["../../src/providers/runtime_deps.ts"],"names":[],"mappings":"AAsDA,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAC9E,OAAO,KAAK,EAA+B,QAAQ,EAA0D,MAAM,aAAa,CAAA;AAEhI,uDAAuD;AACvD,eAAO,MAAM,iBAAiB,iBAAiB,CAAA;AAE/C;;;GAGG;AACH,eAAO,MAAM,gBAAgB,iBAAiB,CAAA;AAwB9C,yDAAyD;AACzD,MAAM,WAAW,gBAAgB;IAC/B,yDAAyD;IACzD,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,+EAA+E;IAC/E,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;IAC1B,gFAAgF;IAChF,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CACxB;AAED,qFAAqF;AACrF,MAAM,WAAW,cAAc;IAC7B,kDAAkD;IAClD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,2DAA2D;IAC3D,QAAQ,C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