@h-rig/core 0.0.0-e2e-live6.20260630094923 → 0.0.0-e2e-live8.20260630100558
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.
|
@@ -540,6 +540,7 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
|
|
|
540
540
|
const configDir = dirname(configPath);
|
|
541
541
|
const configProjectRoot = basename(configDir) === ".rig" ? dirname(configDir) : configDir;
|
|
542
542
|
const UNRESOLVED_NAMESPACE = "rig-config-unresolved";
|
|
543
|
+
const ABSOLUTE_EXTERNAL_NAMESPACE = "rig-config-absolute-external";
|
|
543
544
|
const unresolvedLocalPlugin = {
|
|
544
545
|
name: "rig-config-unresolved-local",
|
|
545
546
|
setup(build) {
|
|
@@ -555,9 +556,10 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
|
|
|
555
556
|
if (args.path.startsWith("#"))
|
|
556
557
|
return;
|
|
557
558
|
const packageImport = packageNameAndSubpath(args.path);
|
|
558
|
-
const projectPackagePath = packageImport
|
|
559
|
-
if (projectPackagePath)
|
|
560
|
-
return { path: projectPackagePath };
|
|
559
|
+
const projectPackagePath = packageImport ? resolveProjectPackageImport(args.path, configProjectRoot) : null;
|
|
560
|
+
if (projectPackagePath) {
|
|
561
|
+
return packageImport?.packageName.startsWith("@rig/") ? { path: projectPackagePath } : { path: projectPackagePath, namespace: ABSOLUTE_EXTERNAL_NAMESPACE };
|
|
562
|
+
}
|
|
561
563
|
if (packageImport && (packageImport.packageName.startsWith("@rig/") || RUNTIME_ONLY_EXTERNAL_PACKAGES.has(packageImport.packageName))) {
|
|
562
564
|
return { path: args.path, external: true };
|
|
563
565
|
}
|
|
@@ -588,6 +590,16 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
|
|
|
588
590
|
} catch {}
|
|
589
591
|
return { path: args.path, namespace: UNRESOLVED_NAMESPACE };
|
|
590
592
|
});
|
|
593
|
+
build.onLoad({ filter: /.*/, namespace: ABSOLUTE_EXTERNAL_NAMESPACE }, (args) => {
|
|
594
|
+
const href = pathToFileURL(args.path).href;
|
|
595
|
+
return {
|
|
596
|
+
loader: "js",
|
|
597
|
+
contents: `export * from ${JSON.stringify(href)};
|
|
598
|
+
const mod = await import(${JSON.stringify(href)});
|
|
599
|
+
export default (mod && "default" in mod) ? mod.default : mod;
|
|
600
|
+
`
|
|
601
|
+
};
|
|
602
|
+
});
|
|
591
603
|
build.onLoad({ filter: /.*/, namespace: UNRESOLVED_NAMESPACE }, (args) => ({
|
|
592
604
|
loader: "js",
|
|
593
605
|
contents: `module.exports = {};
|
|
@@ -599,7 +611,6 @@ throw new Error(${JSON.stringify(`Failed to bundle ${configPath}: Could not reso
|
|
|
599
611
|
const result = await bun.build({
|
|
600
612
|
entrypoints: [configPath],
|
|
601
613
|
target: "bun",
|
|
602
|
-
external: ["effect", "mupdf", "fastembed", "onnxruntime-node", "markit-ai"],
|
|
603
614
|
format: "esm",
|
|
604
615
|
throw: false,
|
|
605
616
|
packages: "bundle",
|
package/dist/src/hook-runner.js
CHANGED
|
@@ -317,6 +317,7 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
|
|
|
317
317
|
const configDir = dirname(configPath);
|
|
318
318
|
const configProjectRoot = basename(configDir) === ".rig" ? dirname(configDir) : configDir;
|
|
319
319
|
const UNRESOLVED_NAMESPACE = "rig-config-unresolved";
|
|
320
|
+
const ABSOLUTE_EXTERNAL_NAMESPACE = "rig-config-absolute-external";
|
|
320
321
|
const unresolvedLocalPlugin = {
|
|
321
322
|
name: "rig-config-unresolved-local",
|
|
322
323
|
setup(build) {
|
|
@@ -332,9 +333,10 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
|
|
|
332
333
|
if (args.path.startsWith("#"))
|
|
333
334
|
return;
|
|
334
335
|
const packageImport = packageNameAndSubpath(args.path);
|
|
335
|
-
const projectPackagePath = packageImport
|
|
336
|
-
if (projectPackagePath)
|
|
337
|
-
return { path: projectPackagePath };
|
|
336
|
+
const projectPackagePath = packageImport ? resolveProjectPackageImport(args.path, configProjectRoot) : null;
|
|
337
|
+
if (projectPackagePath) {
|
|
338
|
+
return packageImport?.packageName.startsWith("@rig/") ? { path: projectPackagePath } : { path: projectPackagePath, namespace: ABSOLUTE_EXTERNAL_NAMESPACE };
|
|
339
|
+
}
|
|
338
340
|
if (packageImport && (packageImport.packageName.startsWith("@rig/") || RUNTIME_ONLY_EXTERNAL_PACKAGES.has(packageImport.packageName))) {
|
|
339
341
|
return { path: args.path, external: true };
|
|
340
342
|
}
|
|
@@ -365,6 +367,16 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
|
|
|
365
367
|
} catch {}
|
|
366
368
|
return { path: args.path, namespace: UNRESOLVED_NAMESPACE };
|
|
367
369
|
});
|
|
370
|
+
build.onLoad({ filter: /.*/, namespace: ABSOLUTE_EXTERNAL_NAMESPACE }, (args) => {
|
|
371
|
+
const href = pathToFileURL(args.path).href;
|
|
372
|
+
return {
|
|
373
|
+
loader: "js",
|
|
374
|
+
contents: `export * from ${JSON.stringify(href)};
|
|
375
|
+
const mod = await import(${JSON.stringify(href)});
|
|
376
|
+
export default (mod && "default" in mod) ? mod.default : mod;
|
|
377
|
+
`
|
|
378
|
+
};
|
|
379
|
+
});
|
|
368
380
|
build.onLoad({ filter: /.*/, namespace: UNRESOLVED_NAMESPACE }, (args) => ({
|
|
369
381
|
loader: "js",
|
|
370
382
|
contents: `module.exports = {};
|
|
@@ -376,7 +388,6 @@ throw new Error(${JSON.stringify(`Failed to bundle ${configPath}: Could not reso
|
|
|
376
388
|
const result = await bun.build({
|
|
377
389
|
entrypoints: [configPath],
|
|
378
390
|
target: "bun",
|
|
379
|
-
external: ["effect", "mupdf", "fastembed", "onnxruntime-node", "markit-ai"],
|
|
380
391
|
format: "esm",
|
|
381
392
|
throw: false,
|
|
382
393
|
packages: "bundle",
|
|
@@ -352,6 +352,7 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
|
|
|
352
352
|
const configDir = dirname(configPath);
|
|
353
353
|
const configProjectRoot = basename(configDir) === ".rig" ? dirname(configDir) : configDir;
|
|
354
354
|
const UNRESOLVED_NAMESPACE = "rig-config-unresolved";
|
|
355
|
+
const ABSOLUTE_EXTERNAL_NAMESPACE = "rig-config-absolute-external";
|
|
355
356
|
const unresolvedLocalPlugin = {
|
|
356
357
|
name: "rig-config-unresolved-local",
|
|
357
358
|
setup(build) {
|
|
@@ -367,9 +368,10 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
|
|
|
367
368
|
if (args.path.startsWith("#"))
|
|
368
369
|
return;
|
|
369
370
|
const packageImport = packageNameAndSubpath(args.path);
|
|
370
|
-
const projectPackagePath = packageImport
|
|
371
|
-
if (projectPackagePath)
|
|
372
|
-
return { path: projectPackagePath };
|
|
371
|
+
const projectPackagePath = packageImport ? resolveProjectPackageImport(args.path, configProjectRoot) : null;
|
|
372
|
+
if (projectPackagePath) {
|
|
373
|
+
return packageImport?.packageName.startsWith("@rig/") ? { path: projectPackagePath } : { path: projectPackagePath, namespace: ABSOLUTE_EXTERNAL_NAMESPACE };
|
|
374
|
+
}
|
|
373
375
|
if (packageImport && (packageImport.packageName.startsWith("@rig/") || RUNTIME_ONLY_EXTERNAL_PACKAGES.has(packageImport.packageName))) {
|
|
374
376
|
return { path: args.path, external: true };
|
|
375
377
|
}
|
|
@@ -400,6 +402,16 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
|
|
|
400
402
|
} catch {}
|
|
401
403
|
return { path: args.path, namespace: UNRESOLVED_NAMESPACE };
|
|
402
404
|
});
|
|
405
|
+
build.onLoad({ filter: /.*/, namespace: ABSOLUTE_EXTERNAL_NAMESPACE }, (args) => {
|
|
406
|
+
const href = pathToFileURL(args.path).href;
|
|
407
|
+
return {
|
|
408
|
+
loader: "js",
|
|
409
|
+
contents: `export * from ${JSON.stringify(href)};
|
|
410
|
+
const mod = await import(${JSON.stringify(href)});
|
|
411
|
+
export default (mod && "default" in mod) ? mod.default : mod;
|
|
412
|
+
`
|
|
413
|
+
};
|
|
414
|
+
});
|
|
403
415
|
build.onLoad({ filter: /.*/, namespace: UNRESOLVED_NAMESPACE }, (args) => ({
|
|
404
416
|
loader: "js",
|
|
405
417
|
contents: `module.exports = {};
|
|
@@ -411,7 +423,6 @@ throw new Error(${JSON.stringify(`Failed to bundle ${configPath}: Could not reso
|
|
|
411
423
|
const result = await bun.build({
|
|
412
424
|
entrypoints: [configPath],
|
|
413
425
|
target: "bun",
|
|
414
|
-
external: ["effect", "mupdf", "fastembed", "onnxruntime-node", "markit-ai"],
|
|
415
426
|
format: "esm",
|
|
416
427
|
throw: false,
|
|
417
428
|
packages: "bundle",
|
package/dist/src/load-config.js
CHANGED
|
@@ -317,6 +317,7 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
|
|
|
317
317
|
const configDir = dirname(configPath);
|
|
318
318
|
const configProjectRoot = basename(configDir) === ".rig" ? dirname(configDir) : configDir;
|
|
319
319
|
const UNRESOLVED_NAMESPACE = "rig-config-unresolved";
|
|
320
|
+
const ABSOLUTE_EXTERNAL_NAMESPACE = "rig-config-absolute-external";
|
|
320
321
|
const unresolvedLocalPlugin = {
|
|
321
322
|
name: "rig-config-unresolved-local",
|
|
322
323
|
setup(build) {
|
|
@@ -332,9 +333,10 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
|
|
|
332
333
|
if (args.path.startsWith("#"))
|
|
333
334
|
return;
|
|
334
335
|
const packageImport = packageNameAndSubpath(args.path);
|
|
335
|
-
const projectPackagePath = packageImport
|
|
336
|
-
if (projectPackagePath)
|
|
337
|
-
return { path: projectPackagePath };
|
|
336
|
+
const projectPackagePath = packageImport ? resolveProjectPackageImport(args.path, configProjectRoot) : null;
|
|
337
|
+
if (projectPackagePath) {
|
|
338
|
+
return packageImport?.packageName.startsWith("@rig/") ? { path: projectPackagePath } : { path: projectPackagePath, namespace: ABSOLUTE_EXTERNAL_NAMESPACE };
|
|
339
|
+
}
|
|
338
340
|
if (packageImport && (packageImport.packageName.startsWith("@rig/") || RUNTIME_ONLY_EXTERNAL_PACKAGES.has(packageImport.packageName))) {
|
|
339
341
|
return { path: args.path, external: true };
|
|
340
342
|
}
|
|
@@ -365,6 +367,16 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
|
|
|
365
367
|
} catch {}
|
|
366
368
|
return { path: args.path, namespace: UNRESOLVED_NAMESPACE };
|
|
367
369
|
});
|
|
370
|
+
build.onLoad({ filter: /.*/, namespace: ABSOLUTE_EXTERNAL_NAMESPACE }, (args) => {
|
|
371
|
+
const href = pathToFileURL(args.path).href;
|
|
372
|
+
return {
|
|
373
|
+
loader: "js",
|
|
374
|
+
contents: `export * from ${JSON.stringify(href)};
|
|
375
|
+
const mod = await import(${JSON.stringify(href)});
|
|
376
|
+
export default (mod && "default" in mod) ? mod.default : mod;
|
|
377
|
+
`
|
|
378
|
+
};
|
|
379
|
+
});
|
|
368
380
|
build.onLoad({ filter: /.*/, namespace: UNRESOLVED_NAMESPACE }, (args) => ({
|
|
369
381
|
loader: "js",
|
|
370
382
|
contents: `module.exports = {};
|
|
@@ -376,7 +388,6 @@ throw new Error(${JSON.stringify(`Failed to bundle ${configPath}: Could not reso
|
|
|
376
388
|
const result = await bun.build({
|
|
377
389
|
entrypoints: [configPath],
|
|
378
390
|
target: "bun",
|
|
379
|
-
external: ["effect", "mupdf", "fastembed", "onnxruntime-node", "markit-ai"],
|
|
380
391
|
format: "esm",
|
|
381
392
|
throw: false,
|
|
382
393
|
packages: "bundle",
|
|
@@ -540,6 +540,7 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
|
|
|
540
540
|
const configDir = dirname(configPath);
|
|
541
541
|
const configProjectRoot = basename(configDir) === ".rig" ? dirname(configDir) : configDir;
|
|
542
542
|
const UNRESOLVED_NAMESPACE = "rig-config-unresolved";
|
|
543
|
+
const ABSOLUTE_EXTERNAL_NAMESPACE = "rig-config-absolute-external";
|
|
543
544
|
const unresolvedLocalPlugin = {
|
|
544
545
|
name: "rig-config-unresolved-local",
|
|
545
546
|
setup(build) {
|
|
@@ -555,9 +556,10 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
|
|
|
555
556
|
if (args.path.startsWith("#"))
|
|
556
557
|
return;
|
|
557
558
|
const packageImport = packageNameAndSubpath(args.path);
|
|
558
|
-
const projectPackagePath = packageImport
|
|
559
|
-
if (projectPackagePath)
|
|
560
|
-
return { path: projectPackagePath };
|
|
559
|
+
const projectPackagePath = packageImport ? resolveProjectPackageImport(args.path, configProjectRoot) : null;
|
|
560
|
+
if (projectPackagePath) {
|
|
561
|
+
return packageImport?.packageName.startsWith("@rig/") ? { path: projectPackagePath } : { path: projectPackagePath, namespace: ABSOLUTE_EXTERNAL_NAMESPACE };
|
|
562
|
+
}
|
|
561
563
|
if (packageImport && (packageImport.packageName.startsWith("@rig/") || RUNTIME_ONLY_EXTERNAL_PACKAGES.has(packageImport.packageName))) {
|
|
562
564
|
return { path: args.path, external: true };
|
|
563
565
|
}
|
|
@@ -588,6 +590,16 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
|
|
|
588
590
|
} catch {}
|
|
589
591
|
return { path: args.path, namespace: UNRESOLVED_NAMESPACE };
|
|
590
592
|
});
|
|
593
|
+
build.onLoad({ filter: /.*/, namespace: ABSOLUTE_EXTERNAL_NAMESPACE }, (args) => {
|
|
594
|
+
const href = pathToFileURL(args.path).href;
|
|
595
|
+
return {
|
|
596
|
+
loader: "js",
|
|
597
|
+
contents: `export * from ${JSON.stringify(href)};
|
|
598
|
+
const mod = await import(${JSON.stringify(href)});
|
|
599
|
+
export default (mod && "default" in mod) ? mod.default : mod;
|
|
600
|
+
`
|
|
601
|
+
};
|
|
602
|
+
});
|
|
591
603
|
build.onLoad({ filter: /.*/, namespace: UNRESOLVED_NAMESPACE }, (args) => ({
|
|
592
604
|
loader: "js",
|
|
593
605
|
contents: `module.exports = {};
|
|
@@ -599,7 +611,6 @@ throw new Error(${JSON.stringify(`Failed to bundle ${configPath}: Could not reso
|
|
|
599
611
|
const result = await bun.build({
|
|
600
612
|
entrypoints: [configPath],
|
|
601
613
|
target: "bun",
|
|
602
|
-
external: ["effect", "mupdf", "fastembed", "onnxruntime-node", "markit-ai"],
|
|
603
614
|
format: "esm",
|
|
604
615
|
throw: false,
|
|
605
616
|
packages: "bundle",
|
|
@@ -540,6 +540,7 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
|
|
|
540
540
|
const configDir = dirname(configPath);
|
|
541
541
|
const configProjectRoot = basename(configDir) === ".rig" ? dirname(configDir) : configDir;
|
|
542
542
|
const UNRESOLVED_NAMESPACE = "rig-config-unresolved";
|
|
543
|
+
const ABSOLUTE_EXTERNAL_NAMESPACE = "rig-config-absolute-external";
|
|
543
544
|
const unresolvedLocalPlugin = {
|
|
544
545
|
name: "rig-config-unresolved-local",
|
|
545
546
|
setup(build) {
|
|
@@ -555,9 +556,10 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
|
|
|
555
556
|
if (args.path.startsWith("#"))
|
|
556
557
|
return;
|
|
557
558
|
const packageImport = packageNameAndSubpath(args.path);
|
|
558
|
-
const projectPackagePath = packageImport
|
|
559
|
-
if (projectPackagePath)
|
|
560
|
-
return { path: projectPackagePath };
|
|
559
|
+
const projectPackagePath = packageImport ? resolveProjectPackageImport(args.path, configProjectRoot) : null;
|
|
560
|
+
if (projectPackagePath) {
|
|
561
|
+
return packageImport?.packageName.startsWith("@rig/") ? { path: projectPackagePath } : { path: projectPackagePath, namespace: ABSOLUTE_EXTERNAL_NAMESPACE };
|
|
562
|
+
}
|
|
561
563
|
if (packageImport && (packageImport.packageName.startsWith("@rig/") || RUNTIME_ONLY_EXTERNAL_PACKAGES.has(packageImport.packageName))) {
|
|
562
564
|
return { path: args.path, external: true };
|
|
563
565
|
}
|
|
@@ -588,6 +590,16 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
|
|
|
588
590
|
} catch {}
|
|
589
591
|
return { path: args.path, namespace: UNRESOLVED_NAMESPACE };
|
|
590
592
|
});
|
|
593
|
+
build.onLoad({ filter: /.*/, namespace: ABSOLUTE_EXTERNAL_NAMESPACE }, (args) => {
|
|
594
|
+
const href = pathToFileURL(args.path).href;
|
|
595
|
+
return {
|
|
596
|
+
loader: "js",
|
|
597
|
+
contents: `export * from ${JSON.stringify(href)};
|
|
598
|
+
const mod = await import(${JSON.stringify(href)});
|
|
599
|
+
export default (mod && "default" in mod) ? mod.default : mod;
|
|
600
|
+
`
|
|
601
|
+
};
|
|
602
|
+
});
|
|
591
603
|
build.onLoad({ filter: /.*/, namespace: UNRESOLVED_NAMESPACE }, (args) => ({
|
|
592
604
|
loader: "js",
|
|
593
605
|
contents: `module.exports = {};
|
|
@@ -599,7 +611,6 @@ throw new Error(${JSON.stringify(`Failed to bundle ${configPath}: Could not reso
|
|
|
599
611
|
const result = await bun.build({
|
|
600
612
|
entrypoints: [configPath],
|
|
601
613
|
target: "bun",
|
|
602
|
-
external: ["effect", "mupdf", "fastembed", "onnxruntime-node", "markit-ai"],
|
|
603
614
|
format: "esm",
|
|
604
615
|
throw: false,
|
|
605
616
|
packages: "bundle",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@h-rig/core",
|
|
3
|
-
"version": "0.0.0-e2e-
|
|
3
|
+
"version": "0.0.0-e2e-live8.20260630100558",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Config and plugin composition library for Rig's OMP extension ecosystem; not a product host/runtime.",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -181,8 +181,8 @@
|
|
|
181
181
|
"module": "./dist/src/index.js",
|
|
182
182
|
"types": "./dist/src/index.d.ts",
|
|
183
183
|
"dependencies": {
|
|
184
|
-
"@rig/contracts": "npm:@h-rig/contracts@0.0.0-e2e-
|
|
185
|
-
"@rig/kernel-seed": "npm:@h-rig/kernel-seed@0.0.0-e2e-
|
|
184
|
+
"@rig/contracts": "npm:@h-rig/contracts@0.0.0-e2e-live8.20260630100558",
|
|
185
|
+
"@rig/kernel-seed": "npm:@h-rig/kernel-seed@0.0.0-e2e-live8.20260630100558",
|
|
186
186
|
"effect": "4.0.0-beta.90",
|
|
187
187
|
"smol-toml": "^1.6.0"
|
|
188
188
|
}
|