@deepseek-ai/dsh-typert-loader 0.2.2-alpha.3 → 0.2.2-rc.2

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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAMH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,CAAC,MAAM,0BAA0B,CAAA;AAIxC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAA;AAEhF,iFAAiF;AACjF,eAAO,MAAM,kBAAkB,aAAa,CAAA;AAE5C,0BAA0B;AAC1B,eAAO,MAAM,IAAI,kBAAkB,CAAA;AACnC,wGAAwG;AACxG,eAAO,MAAM,MAAM,UAAuB,CAAA;AAE1C,gGAAgG;AAChG,MAAM,WAAW,MAAM;IACrB,uEAAuE;IACvE,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;CACpB;AAED,kFAAkF;AAClF,eAAO,MAAM,MAAM,EAAE,CAAC,CAAC,MAAM,CAE3B,CAAA;AAwBF;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,GAAG,kBAAkB,CA2D7F;AA+KD;;;;;GAKG;AACH,wBAAsB,KAAK,CAAC,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CA4KvE"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;;;;;;;;;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAC3C,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AC,KAAc;IAC7B,OAAO,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAA;AAClE,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-typert-loader",
3
3
  "description": "Loader integration for generated Typert package contributions",
4
- "version": "0.2.2-alpha.3",
4
+ "version": "0.2.2-rc.2",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -25,24 +25,27 @@
25
25
  "files": [
26
26
  "locale/*.json",
27
27
  "lib/index.js",
28
- "lib/types/**/*.d.ts"
28
+ "lib/types/**/*.d.ts",
29
+ "lib/types/**/*.d.ts.map",
30
+ "lib/**/*.js.map",
31
+ "src"
29
32
  ],
30
33
  "license": "MIT",
31
34
  "peerDependencies": {
32
- "@deepseek-ai/cordis-plugin-loader": "~1.0.7-alpha.2",
33
- "@deepseek-ai/dsh-typert-registry": "0.2.2-alpha.3",
34
- "@deepseek-ai/cordis": "~4.0.6-alpha.2"
35
+ "@deepseek-ai/cordis-plugin-loader": "~1.1.0",
36
+ "@deepseek-ai/dsh-typert-registry": "0.2.2-rc.2",
37
+ "@deepseek-ai/cordis": "~4.1.0"
35
38
  },
36
39
  "dependencies": {
37
- "@deepseek-ai/schemastery": "~3.18.6-alpha.2"
40
+ "@deepseek-ai/schemastery": "~3.19.0"
38
41
  },
39
42
  "devDependencies": {
40
- "@deepseek-ai/dsh-app-boot": "0.2.2-alpha.3",
41
- "@deepseek-ai/cordis-plugin-loader": "~1.0.7-alpha.2",
42
- "@deepseek-ai/dsh-typert-registry": "0.2.2-alpha.3",
43
- "@deepseek-ai/dsh-typert-protocol": "0.2.2-alpha.3",
44
- "@deepseek-ai/cordis": "~4.0.6-alpha.2",
43
+ "@deepseek-ai/dsh-app-boot": "0.2.2-rc.2",
44
+ "@deepseek-ai/cordis-plugin-loader": "~1.1.0",
45
+ "@deepseek-ai/dsh-typert-registry": "0.2.2-rc.2",
46
+ "@deepseek-ai/dsh-typert-protocol": "0.2.2-rc.2",
47
+ "@deepseek-ai/cordis": "~4.1.0",
45
48
  "typescript": "^6.0.3",
46
- "zod": "4.4.3"
49
+ "zod": "4.6.6"
47
50
  }
48
51
  }
package/src/index.ts ADDED
@@ -0,0 +1,507 @@
1
+ /**
2
+ * Typert Loader integration: automatic registration for mounted plugin packages.
3
+ *
4
+ * When a loader entry mounts, this plugin resolves the entry's package.json; a
5
+ * package exporting `./typert` has its host face imported and its
6
+ * `TYPERT` manifest registered into `ctx.typert`, and the registration is
7
+ * withdrawn when the entry unmounts. Explicit `packages` cover plugins nested
8
+ * behind another Loader entry, whose Cordis fibers carry no resolvable package
9
+ * specifier. Packages without the export are skipped silently when discovered
10
+ * from Loader entries; an explicit package or declared artifact that is broken
11
+ * fails loud — aggregated into this plugin's activation throw for existing
12
+ * entries, contained to a logged error per package in steady state.
13
+ *
14
+ * Scanning is incremental per entry name. Every cordis `internal/plugin`
15
+ * emission marks the fiber's entry name dirty, and a microtask flush
16
+ * reconciles each dirty name against the live
17
+ * loader entries; the activation pass seeds the same dirty set with all
18
+ * current entries. Package verdicts and imported manifests are cached per
19
+ * package name and never expire — plugin-set changes take effect on restart.
20
+ *
21
+ * Manual `ctx.typert.register()` remains available for contributions
22
+ * that do not use a `./typert` artifact (hand-written wire schemas,
23
+ * tests, non-loader compositions).
24
+ *
25
+ * @module @deepseek-ai/dsh-typert-loader
26
+ */
27
+
28
+ import { readFileSync } from 'node:fs'
29
+ import { createRequire } from 'node:module'
30
+ import { dirname, join } from 'node:path'
31
+ import { pathToFileURL } from 'node:url'
32
+ import type { Context } from '@deepseek-ai/cordis'
33
+ import z from '@deepseek-ai/schemastery'
34
+ import type {} from '@deepseek-ai/cordis-plugin-loader'
35
+ import type {} from '@deepseek-ai/dsh-app-boot'
36
+ import type {} from '@deepseek-ai/dsh-typert-registry'
37
+ import type { TypertContribution } from '@deepseek-ai/dsh-typert-registry/types'
38
+
39
+ /** The package.json exports key naming a package's host-face typert artifact. */
40
+ export const TYPERT_HOST_EXPORT = './typert'
41
+
42
+ /** Cordis plugin name. */
43
+ export const name = 'typert-loader'
44
+ /** Services required before registration: the registry this plugin feeds and the Loader it observes. */
45
+ export const inject = ['typert', 'loader']
46
+
47
+ /** Additional package artifacts whose owning plugins are nested behind another Loader entry. */
48
+ export interface Config {
49
+ /** Exact npm package names that must resolve and export `./typert`. */
50
+ packages?: string[]
51
+ }
52
+
53
+ /** Validate explicit package names and default to Loader-entry discovery only. */
54
+ export const Config: z<Config> = z.object({
55
+ packages: z.array(z.string().min(1)).default([]),
56
+ })
57
+
58
+ type ResolvedConfig = Required<Config>
59
+
60
+ interface TypertArtifact {
61
+ packageName: string
62
+ path: string
63
+ }
64
+
65
+ const MEMBER_KINDS = new Set(['property', 'method', 'getter', 'setter', 'call', 'construct', 'index'])
66
+
67
+ /** Resolve the `./typert` export to a relative path, accepting the string and one-level conditional forms. */
68
+ function typertExportOf(pkgName: string, exportsField: unknown): string | undefined {
69
+ if (typeof exportsField !== 'object' || exportsField === null) return undefined
70
+ const target = (exportsField as Record<string, unknown>)[TYPERT_HOST_EXPORT]
71
+ if (target === undefined) return undefined
72
+ if (typeof target === 'string') return target
73
+ if (typeof target === 'object' && target !== null) {
74
+ const fallback = (target as Record<string, unknown>).default
75
+ if (typeof fallback === 'string') return fallback
76
+ }
77
+ throw new Error(`typert-loader: ${pkgName} exports["${TYPERT_HOST_EXPORT}"] must be a string or an object with a string default`)
78
+ }
79
+
80
+ /**
81
+ * Narrow a dynamically imported typert module's `TYPERT` export to a
82
+ * contribution owned by `pkgName`. This is the module/file boundary: the
83
+ * manifest crosses from a build artifact into the typed registry. Dispatch
84
+ * facts and eager projection fields are checked; computed tool projections
85
+ * remain lazy until a consumer requests them. Failures name the package and defect.
86
+ * @param pkgName - the package whose typert face was imported.
87
+ * @param exported - the module's `TYPERT` export.
88
+ * @returns the validated contribution.
89
+ */
90
+ export function validateTypertManifest(pkgName: string, exported: unknown): TypertContribution {
91
+ if (typeof exported !== 'object' || exported === null) {
92
+ throw new Error(`typert-loader: ${pkgName} exports "${TYPERT_HOST_EXPORT}" but its module has no TYPERT manifest object`)
93
+ }
94
+ const manifest = exported as Record<string, unknown>
95
+ if (manifest.package !== pkgName) {
96
+ throw new Error(
97
+ `typert-loader: ${pkgName} TYPERT manifest names package ${JSON.stringify(manifest.package)} — the manifest must be owned by the package that exports it`,
98
+ )
99
+ }
100
+ if (manifest.face !== 'host') {
101
+ throw new Error(`typert-loader: ${pkgName} exports "${TYPERT_HOST_EXPORT}" but TYPERT.face is not "host"`)
102
+ }
103
+ if (!Array.isArray(manifest.schemas)) {
104
+ throw new Error(`typert-loader: ${pkgName} TYPERT.schemas must be an array`)
105
+ }
106
+ for (const value of manifest.schemas as unknown[]) {
107
+ if (typeof value !== 'object' || value === null) {
108
+ throw new Error(`typert-loader: ${pkgName} TYPERT.schemas contains a non-object schema`)
109
+ }
110
+ const schema = value as Record<string, unknown>
111
+ requireString(pkgName, schema, 'name', 'schema')
112
+ if (typeof schema.create !== 'function') {
113
+ throw new Error(`typert-loader: ${pkgName} TYPERT schema "${schema.name as string}" has no create() factory`)
114
+ }
115
+ }
116
+ const model = requireObject(pkgName, manifest.model, 'TYPERT.model')
117
+ const services = requireArray(pkgName, model.services, 'TYPERT.model.services')
118
+ const events = requireArray(pkgName, model.events, 'TYPERT.model.events')
119
+ const objects = requireArray(pkgName, model.objects, 'TYPERT.model.objects')
120
+ for (const value of services) {
121
+ const service = requireObject(pkgName, value, 'service')
122
+ requireDocumentation(pkgName, service, 'service')
123
+ requireString(pkgName, service, 'key', 'service')
124
+ requireString(pkgName, service, 'exportName', 'service')
125
+ requireMembers(pkgName, service.members, `service "${service.key as string}"`)
126
+ requireTypes(pkgName, service.types, `service "${service.key as string}"`)
127
+ }
128
+ for (const value of events) {
129
+ const event = requireObject(pkgName, value, 'event')
130
+ requireDocumentation(pkgName, event, 'event')
131
+ requireString(pkgName, event, 'name', 'event')
132
+ requireString(pkgName, event, 'signature', `event "${event.name as string}"`)
133
+ if (event.mode !== undefined && typeof event.mode !== 'string') {
134
+ throw new Error(`typert-loader: ${pkgName} event "${event.name as string}" mode must be a string`)
135
+ }
136
+ }
137
+ for (const value of objects) {
138
+ const object = requireObject(pkgName, value, 'object')
139
+ requireDocumentation(pkgName, object, 'object')
140
+ requireString(pkgName, object, 'name', 'object')
141
+ requireString(pkgName, object, 'exportName', 'object')
142
+ requireMembers(pkgName, object.members, `object "${object.name as string}"`)
143
+ requireTypes(pkgName, object.types, `object "${object.name as string}"`)
144
+ }
145
+ for (const value of requireArray(pkgName, manifest.invocations, 'TYPERT.invocations')) {
146
+ requireInvocation(pkgName, value)
147
+ }
148
+ return manifest as unknown as TypertContribution
149
+ }
150
+
151
+ function requireObject(pkgName: string, value: unknown, subject: string): Record<string, unknown> {
152
+ if (typeof value !== 'object' || value === null || Array.isArray(value)) {
153
+ throw new Error(`typert-loader: ${pkgName} ${subject} must be an object`)
154
+ }
155
+ return value as Record<string, unknown>
156
+ }
157
+
158
+ function requireArray(pkgName: string, value: unknown, subject: string): unknown[] {
159
+ if (!Array.isArray(value)) throw new Error(`typert-loader: ${pkgName} ${subject} must be an array`)
160
+ return value
161
+ }
162
+
163
+ function requireString(pkgName: string, value: Record<string, unknown>, key: string, subject: string): void {
164
+ if (typeof value[key] !== 'string' || value[key].length === 0) {
165
+ throw new Error(`typert-loader: ${pkgName} ${subject} has a missing or empty ${key}`)
166
+ }
167
+ }
168
+
169
+ function requireOptionalString(pkgName: string, value: Record<string, unknown>, key: string, subject: string): void {
170
+ if (value[key] !== undefined && typeof value[key] !== 'string') {
171
+ throw new Error(`typert-loader: ${pkgName} ${subject}.${key} must be a string`)
172
+ }
173
+ }
174
+
175
+ function requireDocumentation(pkgName: string, value: Record<string, unknown>, subject: string): void {
176
+ requireArray(pkgName, value.tags, `${subject}.tags`)
177
+ for (const key of ['description', 'summary', 'jsDoc'] as const) {
178
+ if (value[key] !== undefined && typeof value[key] !== 'string') {
179
+ throw new Error(`typert-loader: ${pkgName} ${subject}.${key} must be a string`)
180
+ }
181
+ }
182
+ }
183
+
184
+ function requireMembers(pkgName: string, value: unknown, subject: string): void {
185
+ for (const item of requireArray(pkgName, value, `${subject}.members`)) {
186
+ const member = requireObject(pkgName, item, `${subject} member`)
187
+ requireString(pkgName, member, 'name', `${subject} member`)
188
+ requireString(pkgName, member, 'signature', `${subject} member`)
189
+ if (typeof member.kind !== 'string' || !MEMBER_KINDS.has(member.kind)) {
190
+ throw new Error(`typert-loader: ${pkgName} ${subject} member "${member.name as string}" has invalid kind`)
191
+ }
192
+ }
193
+ }
194
+
195
+ function requireTypes(pkgName: string, value: unknown, subject: string): void {
196
+ for (const item of requireArray(pkgName, value, `${subject}.types`)) {
197
+ const type = requireObject(pkgName, item, `${subject} type`)
198
+ requireString(pkgName, type, 'name', `${subject} type`)
199
+ requireString(pkgName, type, 'declaration', `${subject} type`)
200
+ }
201
+ }
202
+
203
+ function requireInvocation(pkgName: string, value: unknown): void {
204
+ const invocation = requireObject(pkgName, value, 'invocation')
205
+ for (const key of ['id', 'service', 'namespace', 'method'] as const) {
206
+ requireString(pkgName, invocation, key, 'invocation')
207
+ }
208
+ const id = invocation.id as string
209
+ requireOptionalString(pkgName, invocation, 'description', `invocation "${id}"`)
210
+ if (invocation.mode !== undefined && invocation.mode !== 'stream') {
211
+ throw new Error(`typert-loader: ${pkgName} invocation "${id}" mode must be "stream" when present`)
212
+ }
213
+ const receiver = requireObject(pkgName, invocation.invocation, `invocation "${id}" receiver`)
214
+ if (receiver.kind === 'context') {
215
+ requireString(pkgName, receiver, 'context', `invocation "${id}" Context receiver`)
216
+ requireString(pkgName, receiver, 'wire', `invocation "${id}" Context receiver`)
217
+ requireStrictCodec(pkgName, receiver.codec, `invocation "${id}" Context codec`)
218
+ } else if (receiver.kind !== 'direct') {
219
+ throw new Error(`typert-loader: ${pkgName} invocation "${id}" receiver kind must be "direct" or "context"`)
220
+ }
221
+ const wires = new Set<string>()
222
+ const parameters = new Map<string, Record<string, unknown>>()
223
+ let lookupCount = 0
224
+ for (const valueParameter of requireArray(pkgName, invocation.parameters, `invocation "${id}" parameters`)) {
225
+ const parameter = requireObject(pkgName, valueParameter, `invocation "${id}" parameter`)
226
+ requireString(pkgName, parameter, 'name', `invocation "${id}" parameter`)
227
+ requireString(pkgName, parameter, 'wire', `invocation "${id}" parameter`)
228
+ requireOptionalString(pkgName, parameter, 'description', `invocation "${id}" parameter`)
229
+ const wire = parameter.wire as string
230
+ if (wires.has(wire)) {
231
+ throw new Error(`typert-loader: ${pkgName} invocation "${id}" repeats wire field "${wire}"`)
232
+ }
233
+ wires.add(wire)
234
+ if (parameter.source === 'lookup') {
235
+ lookupCount += 1
236
+ requireString(pkgName, parameter, 'lookup', `invocation "${id}" lookup parameter`)
237
+ } else if (parameter.source === 'json') {
238
+ if (parameter.lookup !== undefined) {
239
+ throw new Error(`typert-loader: ${pkgName} invocation "${id}" JSON parameter declares a lookup`)
240
+ }
241
+ } else {
242
+ throw new Error(`typert-loader: ${pkgName} invocation "${id}" parameter source must be "json" or "lookup"`)
243
+ }
244
+ parameters.set(wire, parameter)
245
+ requireStrictCodec(pkgName, parameter.codec, `invocation "${id}" parameter codec`)
246
+ if (parameter.strictCodec !== undefined) requireStrictCodec(pkgName, parameter.strictCodec, `invocation "${id}" strict input codec`)
247
+ }
248
+ if (invocation.cancellation !== undefined) {
249
+ const cancellation = requireObject(pkgName, invocation.cancellation, `invocation "${id}" cancellation`)
250
+ if (cancellation.parameter !== 'signal') {
251
+ throw new Error(`typert-loader: ${pkgName} invocation "${id}" cancellation parameter must be "signal"`)
252
+ }
253
+ }
254
+ if (invocation.scope !== undefined) {
255
+ if (receiver.kind !== 'direct') {
256
+ throw new Error(`typert-loader: ${pkgName} invocation "${id}" Context receiver cannot declare a direct scope projection`)
257
+ }
258
+ const scope = requireObject(pkgName, invocation.scope, `invocation "${id}" scope`)
259
+ requireString(pkgName, scope, 'context', `invocation "${id}" scope`)
260
+ requireString(pkgName, scope, 'wire', `invocation "${id}" scope`)
261
+ const parameter = parameters.get(scope.wire as string)
262
+ if (lookupCount !== 1 || parameter?.source !== 'lookup' || parameter.lookup !== scope.context) {
263
+ throw new Error(
264
+ `typert-loader: ${pkgName} invocation "${id}" scope wire "${scope.wire as string}" must select its only lookup parameter`,
265
+ )
266
+ }
267
+ }
268
+ if (receiver.kind === 'context' && wires.has(receiver.wire as string)) {
269
+ throw new Error(`typert-loader: ${pkgName} invocation "${id}" repeats Context wire field "${receiver.wire as string}"`)
270
+ }
271
+ requireStrictCodec(pkgName, invocation.result, `invocation "${id}" result codec`)
272
+ if (invocation.input !== undefined || invocation.invoke !== undefined) {
273
+ if (receiver.kind !== 'direct') {
274
+ throw new Error(`typert-loader: ${pkgName} invocation "${id}" input/invoke require a direct receiver`)
275
+ }
276
+ if (typeof invocation.input !== 'function') {
277
+ throw new Error(`typert-loader: ${pkgName} invocation "${id}" has no input() selector`)
278
+ }
279
+ if (typeof invocation.invoke !== 'function') {
280
+ throw new Error(`typert-loader: ${pkgName} invocation "${id}" has no invoke() function`)
281
+ }
282
+ }
283
+ if (invocation.sourceLocation !== undefined) {
284
+ const location = requireObject(pkgName, invocation.sourceLocation, `invocation "${id}" sourceLocation`)
285
+ requireString(pkgName, location, 'file', `invocation "${id}" sourceLocation`)
286
+ for (const key of ['line', 'column'] as const) {
287
+ if (!Number.isInteger(location[key]) || (location[key] as number) < 1) {
288
+ throw new Error(`typert-loader: ${pkgName} invocation "${id}" sourceLocation.${key} must be a positive integer`)
289
+ }
290
+ }
291
+ }
292
+ }
293
+
294
+ function requireSchemaProjection(pkgName: string, value: Record<string, unknown>, subject: string): void {
295
+ if (typeof value.create !== 'function') {
296
+ throw new Error(`typert-loader: ${pkgName} ${subject} has no create() factory`)
297
+ }
298
+ // Inspect supplied data without invoking the factory's cached projection getters.
299
+ const fields = Object.getOwnPropertyDescriptors(value)
300
+ for (const key of ['description', 'jsonSchemaError']) {
301
+ const field: unknown = fields[key]?.value
302
+ if (field !== undefined && typeof field !== 'string') {
303
+ throw new Error(`typert-loader: ${pkgName} ${subject}.${key} must be a string`)
304
+ }
305
+ }
306
+ const schema: unknown = fields.jsonSchema?.value
307
+ if (schema !== undefined) requireObject(pkgName, schema, `${subject}.jsonSchema`)
308
+ }
309
+
310
+ function requireStrictCodec(pkgName: string, value: unknown, subject: string): void {
311
+ const codec = requireObject(pkgName, value, subject)
312
+ if (codec.mode !== 'strict') {
313
+ throw new Error(`typert-loader: ${pkgName} ${subject} must use a strict codec`)
314
+ }
315
+ requireString(pkgName, codec, 'typeSymbol', subject)
316
+ for (const method of ['decode', 'encode']) {
317
+ if (codec[method] !== undefined && typeof codec[method] !== 'function') {
318
+ throw new Error(`typert-loader: ${pkgName} ${subject} ${method} must be a function`)
319
+ }
320
+ }
321
+ requireSchemaProjection(pkgName, codec, subject)
322
+ }
323
+
324
+ /**
325
+ * Scan current Loader entries during activation, then follow entry mounts and
326
+ * unmounts for this plugin's lifetime.
327
+ * @param ctx - plugin context carrying `typert` and `loader`.
328
+ * @param config - explicit package artifacts in addition to Loader entries.
329
+ */
330
+ export async function apply(ctx: Context, config: Config): Promise<void> {
331
+ // Resolution anchor: the config tree's baseUrl (the cordis.yml directory,
332
+ // whose package declares every composed plugin as a dependency). This
333
+ // package's own URL would miss sibling packages under pnpm's isolated
334
+ // node_modules.
335
+ if (ctx.baseUrl === undefined) {
336
+ throw new Error('typert-loader: ctx.baseUrl is unset — the loader needs the config-tree anchor to resolve plugin packages')
337
+ }
338
+ const baseUrl = ctx.baseUrl
339
+ const require = createRequire(baseUrl)
340
+ const configured = new Set((config as ResolvedConfig).packages)
341
+
342
+ // Registered contributions by entry name; the disposer withdraws the entry's registration.
343
+ const registered = new Map<string, () => Promise<void>>()
344
+ // In-flight import/register tasks by entry name.
345
+ const pending = new Map<string, Promise<void>>()
346
+ // Artifact paths by package name. Negative verdicts (unresolvable specifier —
347
+ // unconfigured loader builtins and subpath rows — or no typert export) are
348
+ // cached as null and never expire: plugin-set changes take effect on restart.
349
+ const artifactPath = new Map<string, TypertArtifact | null>()
350
+ // Imported+validated manifests by package name (one import per package per process).
351
+ const manifests = new Map<string, Promise<TypertContribution>>()
352
+ const dirty = new Set<string>()
353
+ let flushQueued = false
354
+ let active = true
355
+ ctx.effect(function* () {
356
+ yield () => {
357
+ active = false
358
+ dirty.clear()
359
+ }
360
+ }, 'typert loader lifetime')
361
+
362
+ const resolveArtifact = (pkgName: string): TypertArtifact | null => {
363
+ const cached = artifactPath.get(pkgName)
364
+ if (cached !== undefined) return cached
365
+ const firstSlash = pkgName.indexOf('/')
366
+ if (firstSlash >= 0 && (pkgName[0] !== '@' || pkgName.indexOf('/', firstSlash + 1) >= 0)) {
367
+ if (configured.has(pkgName)) {
368
+ throw new Error(
369
+ `typert-loader: configured package "${pkgName}" cannot be resolved from the config tree — add it to the composition package dependencies or remove it from packages`,
370
+ )
371
+ }
372
+ artifactPath.set(pkgName, null)
373
+ return null
374
+ }
375
+ let pkgPath: string
376
+ let pkg: Record<string, unknown> | undefined
377
+ try {
378
+ const packages = ctx.get('pluginPackages')
379
+ const resolvedPackage = packages?.packageOf(pkgName, baseUrl)
380
+ if (packages !== undefined && resolvedPackage === undefined) throw new Error('package is absent from the active resolver')
381
+ pkgPath = resolvedPackage === undefined
382
+ ? require.resolve(`${pkgName}/package.json`)
383
+ : resolvedPackage.manifestPath
384
+ pkg = resolvedPackage?.manifest
385
+ } catch (cause) {
386
+ if (configured.has(pkgName)) {
387
+ throw new Error(
388
+ `typert-loader: configured package "${pkgName}" cannot be resolved from the config tree — add it to the composition package dependencies or remove it from packages`,
389
+ { cause },
390
+ )
391
+ }
392
+ // Not a resolvable package root: loader builtins (cordis:include) and
393
+ // subpath entries land here — permanently not a typert contributor.
394
+ artifactPath.set(pkgName, null)
395
+ return null
396
+ }
397
+ pkg ??= JSON.parse(readFileSync(pkgPath, 'utf8')) as Record<string, unknown>
398
+ const manifestName = typeof pkg.name === 'string' ? pkg.name : pkgName
399
+ const rel = typertExportOf(manifestName, pkg.exports)
400
+ if (rel === undefined && configured.has(pkgName)) {
401
+ throw new Error(`typert-loader: configured package "${pkgName}" does not export "${TYPERT_HOST_EXPORT}"`)
402
+ }
403
+ const resolved = rel === undefined ? null : { packageName: manifestName, path: join(dirname(pkgPath), rel) }
404
+ artifactPath.set(pkgName, resolved)
405
+ return resolved
406
+ }
407
+
408
+ const loadManifest = (pkgName: string, path: string): Promise<TypertContribution> => {
409
+ let loading = manifests.get(pkgName)
410
+ if (loading === undefined) {
411
+ loading = import(pathToFileURL(path).href).then(
412
+ (mod: Record<string, unknown>) => validateTypertManifest(pkgName, mod.TYPERT),
413
+ (cause: unknown) => {
414
+ throw new Error(
415
+ `typert-loader: ${pkgName} exports "${TYPERT_HOST_EXPORT}" but importing ${path} failed: ${String(cause)}`,
416
+ )
417
+ },
418
+ )
419
+ manifests.set(pkgName, loading)
420
+ }
421
+ return loading
422
+ }
423
+
424
+ const qualifies = (entryName: string): boolean => {
425
+ if (configured.has(entryName)) return true
426
+ for (const entry of ctx.loader.entries()) {
427
+ if (entry.options.name === entryName && entry.fiber !== undefined && !entry.disabled) return true
428
+ }
429
+ return false
430
+ }
431
+
432
+ /** Reconcile one entry name against the live loader entries; a mount returns its async task. */
433
+ const processOne = (entryName: string): Promise<void> | undefined => {
434
+ if (!qualifies(entryName)) {
435
+ const dispose = registered.get(entryName)
436
+ if (dispose !== undefined) {
437
+ registered.delete(entryName)
438
+ return dispose()
439
+ }
440
+ return undefined
441
+ }
442
+ if (registered.has(entryName) || pending.has(entryName)) return undefined
443
+ const artifact = resolveArtifact(entryName)
444
+ if (artifact === null) return undefined
445
+ const task = loadManifest(artifact.packageName, artifact.path).then((manifest) => {
446
+ // The entry may have unmounted (or already re-registered) while the import was in flight.
447
+ if (!active || !qualifies(entryName) || registered.has(entryName)) return
448
+ registered.set(entryName, ctx.typert.register(manifest))
449
+ })
450
+ pending.set(entryName, task)
451
+ // Two-armed settle: a bare .finally() would mint a second, unhandled rejection.
452
+ const settle = (): void => { pending.delete(entryName) }
453
+ void task.then(settle, settle)
454
+ return task
455
+ }
456
+
457
+ const flush = (onError: (error: Error) => void): Promise<void>[] => {
458
+ const tasks: Promise<void>[] = []
459
+ for (const entryName of [...dirty]) {
460
+ dirty.delete(entryName)
461
+ try {
462
+ const task = processOne(entryName)
463
+ if (task !== undefined) tasks.push(task.catch((error: unknown) => { onError(toError(error)) }))
464
+ } catch (error) {
465
+ // Steady state: one broken package must not poison the others; the
466
+ // activation pass aggregates these into a loud throw instead.
467
+ onError(toError(error))
468
+ }
469
+ }
470
+ return tasks
471
+ }
472
+
473
+ // Subscribe before seeding so an entry arriving mid-activation lands in the
474
+ // same dirty set (Set idempotence makes the overlap harmless). An entry-less
475
+ // fiber is a child plugin or a manual mount — never a loader row; O(1) drop.
476
+ ctx.on('internal/plugin', (fiber) => {
477
+ const entryName = fiber.entry?.options.name
478
+ if (entryName === undefined) return
479
+ dirty.add(entryName)
480
+ if (flushQueued) return
481
+ flushQueued = true
482
+ queueMicrotask(() => {
483
+ flushQueued = false
484
+ if (!active) return
485
+ for (const task of flush((err) => { ctx.logger.error(err) })) void task
486
+ })
487
+ })
488
+
489
+ // Activation pass: the initial scan IS the incremental path over the current
490
+ // entries; a malformed typert contributor among the already-loaded entries
491
+ // aggregates into one loud throw (FAILED loader fiber; the boot sweep reports it).
492
+ for (const packageName of configured) dirty.add(packageName)
493
+ for (const entry of ctx.loader.entries()) dirty.add(entry.options.name)
494
+ const failures: Error[] = []
495
+ await Promise.all(flush((err) => { failures.push(err) }))
496
+ if (failures.length > 0) {
497
+ throw new AggregateError(
498
+ failures,
499
+ `typert-loader: ${String(failures.length)} typert contributor(s) failed to register:\n${failures.map(e => ` - ${e.message}`).join('\n')}`,
500
+ )
501
+ }
502
+ }
503
+
504
+ /** Normalize an arbitrary import or manifest failure to an Error. */
505
+ function toError(error: unknown): Error {
506
+ return error instanceof Error ? error : new Error(String(error))
507
+ }