@h-rig/core 0.0.0-e2e-live3.20260630092056 → 0.0.0-e2e-live5.20260630094159

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.
@@ -552,6 +552,8 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
552
552
  const directFilePath = resolvedFilePath(args.path, configDir);
553
553
  if (directFilePath)
554
554
  return { path: directFilePath };
555
+ if (args.path.startsWith("#"))
556
+ return;
555
557
  const packageImport = packageNameAndSubpath(args.path);
556
558
  const projectPackagePath = resolveProjectPackageImport(args.path, configProjectRoot);
557
559
  if (projectPackagePath)
@@ -563,16 +565,24 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
563
565
  return;
564
566
  if (packageImport)
565
567
  return { path: args.path, external: true };
566
- const parentCandidates = args.path.startsWith(".") ? [args.importer && isAbsolute(args.importer) ? dirname(args.importer) : null, configDir].filter((value) => Boolean(value)) : [args.importer && isAbsolute(args.importer) ? dirname(args.importer) : configDir];
568
+ const importerDir = args.importer && isAbsolute(args.importer) ? dirname(args.importer) : null;
569
+ if (args.path.startsWith(".") && importerDir) {
570
+ const fromImporter = resolveModulePath(resolve(importerDir, args.path));
571
+ if (fromImporter)
572
+ return { path: fromImporter };
573
+ if (/[\\/]node_modules[\\/]/.test(args.importer ?? ""))
574
+ return;
575
+ }
576
+ const parentCandidates = args.path.startsWith(".") ? [importerDir, configDir].filter((value) => Boolean(value)) : [importerDir ?? configDir];
567
577
  for (const parent2 of parentCandidates) {
568
- const filePath = resolvedFilePath(resolve(parent2, args.path), configDir);
578
+ const filePath = resolvedFilePath(resolve(parent2, args.path), configProjectRoot);
569
579
  if (filePath)
570
580
  return { path: filePath };
571
581
  }
572
582
  const parent = parentCandidates[0] ?? configDir;
573
583
  try {
574
584
  const resolved = bun.resolveSync?.(args.path, parent) ?? resolve(parent, args.path);
575
- const filePath = resolvedFilePath(resolved, configDir);
585
+ const filePath = resolvedFilePath(resolved, configProjectRoot);
576
586
  if (filePath)
577
587
  return { path: filePath };
578
588
  } catch {}
@@ -329,6 +329,8 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
329
329
  const directFilePath = resolvedFilePath(args.path, configDir);
330
330
  if (directFilePath)
331
331
  return { path: directFilePath };
332
+ if (args.path.startsWith("#"))
333
+ return;
332
334
  const packageImport = packageNameAndSubpath(args.path);
333
335
  const projectPackagePath = resolveProjectPackageImport(args.path, configProjectRoot);
334
336
  if (projectPackagePath)
@@ -340,16 +342,24 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
340
342
  return;
341
343
  if (packageImport)
342
344
  return { path: args.path, external: true };
343
- const parentCandidates = args.path.startsWith(".") ? [args.importer && isAbsolute(args.importer) ? dirname(args.importer) : null, configDir].filter((value) => Boolean(value)) : [args.importer && isAbsolute(args.importer) ? dirname(args.importer) : configDir];
345
+ const importerDir = args.importer && isAbsolute(args.importer) ? dirname(args.importer) : null;
346
+ if (args.path.startsWith(".") && importerDir) {
347
+ const fromImporter = resolveModulePath(resolve(importerDir, args.path));
348
+ if (fromImporter)
349
+ return { path: fromImporter };
350
+ if (/[\\/]node_modules[\\/]/.test(args.importer ?? ""))
351
+ return;
352
+ }
353
+ const parentCandidates = args.path.startsWith(".") ? [importerDir, configDir].filter((value) => Boolean(value)) : [importerDir ?? configDir];
344
354
  for (const parent2 of parentCandidates) {
345
- const filePath = resolvedFilePath(resolve(parent2, args.path), configDir);
355
+ const filePath = resolvedFilePath(resolve(parent2, args.path), configProjectRoot);
346
356
  if (filePath)
347
357
  return { path: filePath };
348
358
  }
349
359
  const parent = parentCandidates[0] ?? configDir;
350
360
  try {
351
361
  const resolved = bun.resolveSync?.(args.path, parent) ?? resolve(parent, args.path);
352
- const filePath = resolvedFilePath(resolved, configDir);
362
+ const filePath = resolvedFilePath(resolved, configProjectRoot);
353
363
  if (filePath)
354
364
  return { path: filePath };
355
365
  } catch {}
@@ -364,6 +364,8 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
364
364
  const directFilePath = resolvedFilePath(args.path, configDir);
365
365
  if (directFilePath)
366
366
  return { path: directFilePath };
367
+ if (args.path.startsWith("#"))
368
+ return;
367
369
  const packageImport = packageNameAndSubpath(args.path);
368
370
  const projectPackagePath = resolveProjectPackageImport(args.path, configProjectRoot);
369
371
  if (projectPackagePath)
@@ -375,16 +377,24 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
375
377
  return;
376
378
  if (packageImport)
377
379
  return { path: args.path, external: true };
378
- const parentCandidates = args.path.startsWith(".") ? [args.importer && isAbsolute(args.importer) ? dirname(args.importer) : null, configDir].filter((value) => Boolean(value)) : [args.importer && isAbsolute(args.importer) ? dirname(args.importer) : configDir];
380
+ const importerDir = args.importer && isAbsolute(args.importer) ? dirname(args.importer) : null;
381
+ if (args.path.startsWith(".") && importerDir) {
382
+ const fromImporter = resolveModulePath(resolve(importerDir, args.path));
383
+ if (fromImporter)
384
+ return { path: fromImporter };
385
+ if (/[\\/]node_modules[\\/]/.test(args.importer ?? ""))
386
+ return;
387
+ }
388
+ const parentCandidates = args.path.startsWith(".") ? [importerDir, configDir].filter((value) => Boolean(value)) : [importerDir ?? configDir];
379
389
  for (const parent2 of parentCandidates) {
380
- const filePath = resolvedFilePath(resolve(parent2, args.path), configDir);
390
+ const filePath = resolvedFilePath(resolve(parent2, args.path), configProjectRoot);
381
391
  if (filePath)
382
392
  return { path: filePath };
383
393
  }
384
394
  const parent = parentCandidates[0] ?? configDir;
385
395
  try {
386
396
  const resolved = bun.resolveSync?.(args.path, parent) ?? resolve(parent, args.path);
387
- const filePath = resolvedFilePath(resolved, configDir);
397
+ const filePath = resolvedFilePath(resolved, configProjectRoot);
388
398
  if (filePath)
389
399
  return { path: filePath };
390
400
  } catch {}
@@ -329,6 +329,8 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
329
329
  const directFilePath = resolvedFilePath(args.path, configDir);
330
330
  if (directFilePath)
331
331
  return { path: directFilePath };
332
+ if (args.path.startsWith("#"))
333
+ return;
332
334
  const packageImport = packageNameAndSubpath(args.path);
333
335
  const projectPackagePath = resolveProjectPackageImport(args.path, configProjectRoot);
334
336
  if (projectPackagePath)
@@ -340,16 +342,24 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
340
342
  return;
341
343
  if (packageImport)
342
344
  return { path: args.path, external: true };
343
- const parentCandidates = args.path.startsWith(".") ? [args.importer && isAbsolute(args.importer) ? dirname(args.importer) : null, configDir].filter((value) => Boolean(value)) : [args.importer && isAbsolute(args.importer) ? dirname(args.importer) : configDir];
345
+ const importerDir = args.importer && isAbsolute(args.importer) ? dirname(args.importer) : null;
346
+ if (args.path.startsWith(".") && importerDir) {
347
+ const fromImporter = resolveModulePath(resolve(importerDir, args.path));
348
+ if (fromImporter)
349
+ return { path: fromImporter };
350
+ if (/[\\/]node_modules[\\/]/.test(args.importer ?? ""))
351
+ return;
352
+ }
353
+ const parentCandidates = args.path.startsWith(".") ? [importerDir, configDir].filter((value) => Boolean(value)) : [importerDir ?? configDir];
344
354
  for (const parent2 of parentCandidates) {
345
- const filePath = resolvedFilePath(resolve(parent2, args.path), configDir);
355
+ const filePath = resolvedFilePath(resolve(parent2, args.path), configProjectRoot);
346
356
  if (filePath)
347
357
  return { path: filePath };
348
358
  }
349
359
  const parent = parentCandidates[0] ?? configDir;
350
360
  try {
351
361
  const resolved = bun.resolveSync?.(args.path, parent) ?? resolve(parent, args.path);
352
- const filePath = resolvedFilePath(resolved, configDir);
362
+ const filePath = resolvedFilePath(resolved, configProjectRoot);
353
363
  if (filePath)
354
364
  return { path: filePath };
355
365
  } catch {}
@@ -552,6 +552,8 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
552
552
  const directFilePath = resolvedFilePath(args.path, configDir);
553
553
  if (directFilePath)
554
554
  return { path: directFilePath };
555
+ if (args.path.startsWith("#"))
556
+ return;
555
557
  const packageImport = packageNameAndSubpath(args.path);
556
558
  const projectPackagePath = resolveProjectPackageImport(args.path, configProjectRoot);
557
559
  if (projectPackagePath)
@@ -563,16 +565,24 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
563
565
  return;
564
566
  if (packageImport)
565
567
  return { path: args.path, external: true };
566
- const parentCandidates = args.path.startsWith(".") ? [args.importer && isAbsolute(args.importer) ? dirname(args.importer) : null, configDir].filter((value) => Boolean(value)) : [args.importer && isAbsolute(args.importer) ? dirname(args.importer) : configDir];
568
+ const importerDir = args.importer && isAbsolute(args.importer) ? dirname(args.importer) : null;
569
+ if (args.path.startsWith(".") && importerDir) {
570
+ const fromImporter = resolveModulePath(resolve(importerDir, args.path));
571
+ if (fromImporter)
572
+ return { path: fromImporter };
573
+ if (/[\\/]node_modules[\\/]/.test(args.importer ?? ""))
574
+ return;
575
+ }
576
+ const parentCandidates = args.path.startsWith(".") ? [importerDir, configDir].filter((value) => Boolean(value)) : [importerDir ?? configDir];
567
577
  for (const parent2 of parentCandidates) {
568
- const filePath = resolvedFilePath(resolve(parent2, args.path), configDir);
578
+ const filePath = resolvedFilePath(resolve(parent2, args.path), configProjectRoot);
569
579
  if (filePath)
570
580
  return { path: filePath };
571
581
  }
572
582
  const parent = parentCandidates[0] ?? configDir;
573
583
  try {
574
584
  const resolved = bun.resolveSync?.(args.path, parent) ?? resolve(parent, args.path);
575
- const filePath = resolvedFilePath(resolved, configDir);
585
+ const filePath = resolvedFilePath(resolved, configProjectRoot);
576
586
  if (filePath)
577
587
  return { path: filePath };
578
588
  } catch {}
@@ -552,6 +552,8 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
552
552
  const directFilePath = resolvedFilePath(args.path, configDir);
553
553
  if (directFilePath)
554
554
  return { path: directFilePath };
555
+ if (args.path.startsWith("#"))
556
+ return;
555
557
  const packageImport = packageNameAndSubpath(args.path);
556
558
  const projectPackagePath = resolveProjectPackageImport(args.path, configProjectRoot);
557
559
  if (projectPackagePath)
@@ -563,16 +565,24 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
563
565
  return;
564
566
  if (packageImport)
565
567
  return { path: args.path, external: true };
566
- const parentCandidates = args.path.startsWith(".") ? [args.importer && isAbsolute(args.importer) ? dirname(args.importer) : null, configDir].filter((value) => Boolean(value)) : [args.importer && isAbsolute(args.importer) ? dirname(args.importer) : configDir];
568
+ const importerDir = args.importer && isAbsolute(args.importer) ? dirname(args.importer) : null;
569
+ if (args.path.startsWith(".") && importerDir) {
570
+ const fromImporter = resolveModulePath(resolve(importerDir, args.path));
571
+ if (fromImporter)
572
+ return { path: fromImporter };
573
+ if (/[\\/]node_modules[\\/]/.test(args.importer ?? ""))
574
+ return;
575
+ }
576
+ const parentCandidates = args.path.startsWith(".") ? [importerDir, configDir].filter((value) => Boolean(value)) : [importerDir ?? configDir];
567
577
  for (const parent2 of parentCandidates) {
568
- const filePath = resolvedFilePath(resolve(parent2, args.path), configDir);
578
+ const filePath = resolvedFilePath(resolve(parent2, args.path), configProjectRoot);
569
579
  if (filePath)
570
580
  return { path: filePath };
571
581
  }
572
582
  const parent = parentCandidates[0] ?? configDir;
573
583
  try {
574
584
  const resolved = bun.resolveSync?.(args.path, parent) ?? resolve(parent, args.path);
575
- const filePath = resolvedFilePath(resolved, configDir);
585
+ const filePath = resolvedFilePath(resolved, configProjectRoot);
576
586
  if (filePath)
577
587
  return { path: filePath };
578
588
  } catch {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@h-rig/core",
3
- "version": "0.0.0-e2e-live3.20260630092056",
3
+ "version": "0.0.0-e2e-live5.20260630094159",
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-live3.20260630092056",
185
- "@rig/kernel-seed": "npm:@h-rig/kernel-seed@0.0.0-e2e-live3.20260630092056",
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",
186
186
  "effect": "4.0.0-beta.90",
187
187
  "smol-toml": "^1.6.0"
188
188
  }