@h-rig/core 0.0.0-e2e-live5.20260630094159 → 0.0.0-e2e-live7.20260630095657

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.
@@ -555,9 +555,10 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
555
555
  if (args.path.startsWith("#"))
556
556
  return;
557
557
  const packageImport = packageNameAndSubpath(args.path);
558
- const projectPackagePath = resolveProjectPackageImport(args.path, configProjectRoot);
559
- if (projectPackagePath)
560
- return { path: projectPackagePath };
558
+ const projectPackagePath = packageImport ? resolveProjectPackageImport(args.path, configProjectRoot) : null;
559
+ if (projectPackagePath) {
560
+ return { path: projectPackagePath, ...packageImport?.packageName.startsWith("@rig/") ? {} : { external: true } };
561
+ }
561
562
  if (packageImport && (packageImport.packageName.startsWith("@rig/") || RUNTIME_ONLY_EXTERNAL_PACKAGES.has(packageImport.packageName))) {
562
563
  return { path: args.path, external: true };
563
564
  }
@@ -599,7 +600,6 @@ throw new Error(${JSON.stringify(`Failed to bundle ${configPath}: Could not reso
599
600
  const result = await bun.build({
600
601
  entrypoints: [configPath],
601
602
  target: "bun",
602
- external: ["effect", "mupdf", "fastembed", "onnxruntime-node", "markit-ai"],
603
603
  format: "esm",
604
604
  throw: false,
605
605
  packages: "bundle",
@@ -332,9 +332,10 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
332
332
  if (args.path.startsWith("#"))
333
333
  return;
334
334
  const packageImport = packageNameAndSubpath(args.path);
335
- const projectPackagePath = resolveProjectPackageImport(args.path, configProjectRoot);
336
- if (projectPackagePath)
337
- return { path: projectPackagePath };
335
+ const projectPackagePath = packageImport ? resolveProjectPackageImport(args.path, configProjectRoot) : null;
336
+ if (projectPackagePath) {
337
+ return { path: projectPackagePath, ...packageImport?.packageName.startsWith("@rig/") ? {} : { external: true } };
338
+ }
338
339
  if (packageImport && (packageImport.packageName.startsWith("@rig/") || RUNTIME_ONLY_EXTERNAL_PACKAGES.has(packageImport.packageName))) {
339
340
  return { path: args.path, external: true };
340
341
  }
@@ -376,7 +377,6 @@ throw new Error(${JSON.stringify(`Failed to bundle ${configPath}: Could not reso
376
377
  const result = await bun.build({
377
378
  entrypoints: [configPath],
378
379
  target: "bun",
379
- external: ["effect", "mupdf", "fastembed", "onnxruntime-node", "markit-ai"],
380
380
  format: "esm",
381
381
  throw: false,
382
382
  packages: "bundle",
@@ -367,9 +367,10 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
367
367
  if (args.path.startsWith("#"))
368
368
  return;
369
369
  const packageImport = packageNameAndSubpath(args.path);
370
- const projectPackagePath = resolveProjectPackageImport(args.path, configProjectRoot);
371
- if (projectPackagePath)
372
- return { path: projectPackagePath };
370
+ const projectPackagePath = packageImport ? resolveProjectPackageImport(args.path, configProjectRoot) : null;
371
+ if (projectPackagePath) {
372
+ return { path: projectPackagePath, ...packageImport?.packageName.startsWith("@rig/") ? {} : { external: true } };
373
+ }
373
374
  if (packageImport && (packageImport.packageName.startsWith("@rig/") || RUNTIME_ONLY_EXTERNAL_PACKAGES.has(packageImport.packageName))) {
374
375
  return { path: args.path, external: true };
375
376
  }
@@ -411,7 +412,6 @@ throw new Error(${JSON.stringify(`Failed to bundle ${configPath}: Could not reso
411
412
  const result = await bun.build({
412
413
  entrypoints: [configPath],
413
414
  target: "bun",
414
- external: ["effect", "mupdf", "fastembed", "onnxruntime-node", "markit-ai"],
415
415
  format: "esm",
416
416
  throw: false,
417
417
  packages: "bundle",
@@ -332,9 +332,10 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
332
332
  if (args.path.startsWith("#"))
333
333
  return;
334
334
  const packageImport = packageNameAndSubpath(args.path);
335
- const projectPackagePath = resolveProjectPackageImport(args.path, configProjectRoot);
336
- if (projectPackagePath)
337
- return { path: projectPackagePath };
335
+ const projectPackagePath = packageImport ? resolveProjectPackageImport(args.path, configProjectRoot) : null;
336
+ if (projectPackagePath) {
337
+ return { path: projectPackagePath, ...packageImport?.packageName.startsWith("@rig/") ? {} : { external: true } };
338
+ }
338
339
  if (packageImport && (packageImport.packageName.startsWith("@rig/") || RUNTIME_ONLY_EXTERNAL_PACKAGES.has(packageImport.packageName))) {
339
340
  return { path: args.path, external: true };
340
341
  }
@@ -376,7 +377,6 @@ throw new Error(${JSON.stringify(`Failed to bundle ${configPath}: Could not reso
376
377
  const result = await bun.build({
377
378
  entrypoints: [configPath],
378
379
  target: "bun",
379
- external: ["effect", "mupdf", "fastembed", "onnxruntime-node", "markit-ai"],
380
380
  format: "esm",
381
381
  throw: false,
382
382
  packages: "bundle",
@@ -555,9 +555,10 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
555
555
  if (args.path.startsWith("#"))
556
556
  return;
557
557
  const packageImport = packageNameAndSubpath(args.path);
558
- const projectPackagePath = resolveProjectPackageImport(args.path, configProjectRoot);
559
- if (projectPackagePath)
560
- return { path: projectPackagePath };
558
+ const projectPackagePath = packageImport ? resolveProjectPackageImport(args.path, configProjectRoot) : null;
559
+ if (projectPackagePath) {
560
+ return { path: projectPackagePath, ...packageImport?.packageName.startsWith("@rig/") ? {} : { external: true } };
561
+ }
561
562
  if (packageImport && (packageImport.packageName.startsWith("@rig/") || RUNTIME_ONLY_EXTERNAL_PACKAGES.has(packageImport.packageName))) {
562
563
  return { path: args.path, external: true };
563
564
  }
@@ -599,7 +600,6 @@ throw new Error(${JSON.stringify(`Failed to bundle ${configPath}: Could not reso
599
600
  const result = await bun.build({
600
601
  entrypoints: [configPath],
601
602
  target: "bun",
602
- external: ["effect", "mupdf", "fastembed", "onnxruntime-node", "markit-ai"],
603
603
  format: "esm",
604
604
  throw: false,
605
605
  packages: "bundle",
@@ -555,9 +555,10 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
555
555
  if (args.path.startsWith("#"))
556
556
  return;
557
557
  const packageImport = packageNameAndSubpath(args.path);
558
- const projectPackagePath = resolveProjectPackageImport(args.path, configProjectRoot);
559
- if (projectPackagePath)
560
- return { path: projectPackagePath };
558
+ const projectPackagePath = packageImport ? resolveProjectPackageImport(args.path, configProjectRoot) : null;
559
+ if (projectPackagePath) {
560
+ return { path: projectPackagePath, ...packageImport?.packageName.startsWith("@rig/") ? {} : { external: true } };
561
+ }
561
562
  if (packageImport && (packageImport.packageName.startsWith("@rig/") || RUNTIME_ONLY_EXTERNAL_PACKAGES.has(packageImport.packageName))) {
562
563
  return { path: args.path, external: true };
563
564
  }
@@ -599,7 +600,6 @@ throw new Error(${JSON.stringify(`Failed to bundle ${configPath}: Could not reso
599
600
  const result = await bun.build({
600
601
  entrypoints: [configPath],
601
602
  target: "bun",
602
- external: ["effect", "mupdf", "fastembed", "onnxruntime-node", "markit-ai"],
603
603
  format: "esm",
604
604
  throw: false,
605
605
  packages: "bundle",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@h-rig/core",
3
- "version": "0.0.0-e2e-live5.20260630094159",
3
+ "version": "0.0.0-e2e-live7.20260630095657",
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-live5.20260630094159",
185
- "@rig/kernel-seed": "npm:@h-rig/kernel-seed@0.0.0-e2e-live5.20260630094159",
184
+ "@rig/contracts": "npm:@h-rig/contracts@0.0.0-e2e-live7.20260630095657",
185
+ "@rig/kernel-seed": "npm:@h-rig/kernel-seed@0.0.0-e2e-live7.20260630095657",
186
186
  "effect": "4.0.0-beta.90",
187
187
  "smol-toml": "^1.6.0"
188
188
  }