@h-rig/core 0.0.0-e2e-live7.20260630095657 → 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) {
|
|
@@ -557,7 +558,7 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
|
|
|
557
558
|
const packageImport = packageNameAndSubpath(args.path);
|
|
558
559
|
const projectPackagePath = packageImport ? resolveProjectPackageImport(args.path, configProjectRoot) : null;
|
|
559
560
|
if (projectPackagePath) {
|
|
560
|
-
return
|
|
561
|
+
return packageImport?.packageName.startsWith("@rig/") ? { path: projectPackagePath } : { path: projectPackagePath, namespace: ABSOLUTE_EXTERNAL_NAMESPACE };
|
|
561
562
|
}
|
|
562
563
|
if (packageImport && (packageImport.packageName.startsWith("@rig/") || RUNTIME_ONLY_EXTERNAL_PACKAGES.has(packageImport.packageName))) {
|
|
563
564
|
return { path: args.path, external: true };
|
|
@@ -589,6 +590,16 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
|
|
|
589
590
|
} catch {}
|
|
590
591
|
return { path: args.path, namespace: UNRESOLVED_NAMESPACE };
|
|
591
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
|
+
});
|
|
592
603
|
build.onLoad({ filter: /.*/, namespace: UNRESOLVED_NAMESPACE }, (args) => ({
|
|
593
604
|
loader: "js",
|
|
594
605
|
contents: `module.exports = {};
|
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) {
|
|
@@ -334,7 +335,7 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
|
|
|
334
335
|
const packageImport = packageNameAndSubpath(args.path);
|
|
335
336
|
const projectPackagePath = packageImport ? resolveProjectPackageImport(args.path, configProjectRoot) : null;
|
|
336
337
|
if (projectPackagePath) {
|
|
337
|
-
return
|
|
338
|
+
return packageImport?.packageName.startsWith("@rig/") ? { path: projectPackagePath } : { path: projectPackagePath, namespace: ABSOLUTE_EXTERNAL_NAMESPACE };
|
|
338
339
|
}
|
|
339
340
|
if (packageImport && (packageImport.packageName.startsWith("@rig/") || RUNTIME_ONLY_EXTERNAL_PACKAGES.has(packageImport.packageName))) {
|
|
340
341
|
return { path: args.path, external: true };
|
|
@@ -366,6 +367,16 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
|
|
|
366
367
|
} catch {}
|
|
367
368
|
return { path: args.path, namespace: UNRESOLVED_NAMESPACE };
|
|
368
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
|
+
});
|
|
369
380
|
build.onLoad({ filter: /.*/, namespace: UNRESOLVED_NAMESPACE }, (args) => ({
|
|
370
381
|
loader: "js",
|
|
371
382
|
contents: `module.exports = {};
|
|
@@ -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) {
|
|
@@ -369,7 +370,7 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
|
|
|
369
370
|
const packageImport = packageNameAndSubpath(args.path);
|
|
370
371
|
const projectPackagePath = packageImport ? resolveProjectPackageImport(args.path, configProjectRoot) : null;
|
|
371
372
|
if (projectPackagePath) {
|
|
372
|
-
return
|
|
373
|
+
return packageImport?.packageName.startsWith("@rig/") ? { path: projectPackagePath } : { path: projectPackagePath, namespace: ABSOLUTE_EXTERNAL_NAMESPACE };
|
|
373
374
|
}
|
|
374
375
|
if (packageImport && (packageImport.packageName.startsWith("@rig/") || RUNTIME_ONLY_EXTERNAL_PACKAGES.has(packageImport.packageName))) {
|
|
375
376
|
return { path: args.path, external: true };
|
|
@@ -401,6 +402,16 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
|
|
|
401
402
|
} catch {}
|
|
402
403
|
return { path: args.path, namespace: UNRESOLVED_NAMESPACE };
|
|
403
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
|
+
});
|
|
404
415
|
build.onLoad({ filter: /.*/, namespace: UNRESOLVED_NAMESPACE }, (args) => ({
|
|
405
416
|
loader: "js",
|
|
406
417
|
contents: `module.exports = {};
|
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) {
|
|
@@ -334,7 +335,7 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
|
|
|
334
335
|
const packageImport = packageNameAndSubpath(args.path);
|
|
335
336
|
const projectPackagePath = packageImport ? resolveProjectPackageImport(args.path, configProjectRoot) : null;
|
|
336
337
|
if (projectPackagePath) {
|
|
337
|
-
return
|
|
338
|
+
return packageImport?.packageName.startsWith("@rig/") ? { path: projectPackagePath } : { path: projectPackagePath, namespace: ABSOLUTE_EXTERNAL_NAMESPACE };
|
|
338
339
|
}
|
|
339
340
|
if (packageImport && (packageImport.packageName.startsWith("@rig/") || RUNTIME_ONLY_EXTERNAL_PACKAGES.has(packageImport.packageName))) {
|
|
340
341
|
return { path: args.path, external: true };
|
|
@@ -366,6 +367,16 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
|
|
|
366
367
|
} catch {}
|
|
367
368
|
return { path: args.path, namespace: UNRESOLVED_NAMESPACE };
|
|
368
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
|
+
});
|
|
369
380
|
build.onLoad({ filter: /.*/, namespace: UNRESOLVED_NAMESPACE }, (args) => ({
|
|
370
381
|
loader: "js",
|
|
371
382
|
contents: `module.exports = {};
|
|
@@ -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) {
|
|
@@ -557,7 +558,7 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
|
|
|
557
558
|
const packageImport = packageNameAndSubpath(args.path);
|
|
558
559
|
const projectPackagePath = packageImport ? resolveProjectPackageImport(args.path, configProjectRoot) : null;
|
|
559
560
|
if (projectPackagePath) {
|
|
560
|
-
return
|
|
561
|
+
return packageImport?.packageName.startsWith("@rig/") ? { path: projectPackagePath } : { path: projectPackagePath, namespace: ABSOLUTE_EXTERNAL_NAMESPACE };
|
|
561
562
|
}
|
|
562
563
|
if (packageImport && (packageImport.packageName.startsWith("@rig/") || RUNTIME_ONLY_EXTERNAL_PACKAGES.has(packageImport.packageName))) {
|
|
563
564
|
return { path: args.path, external: true };
|
|
@@ -589,6 +590,16 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
|
|
|
589
590
|
} catch {}
|
|
590
591
|
return { path: args.path, namespace: UNRESOLVED_NAMESPACE };
|
|
591
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
|
+
});
|
|
592
603
|
build.onLoad({ filter: /.*/, namespace: UNRESOLVED_NAMESPACE }, (args) => ({
|
|
593
604
|
loader: "js",
|
|
594
605
|
contents: `module.exports = {};
|
|
@@ -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) {
|
|
@@ -557,7 +558,7 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
|
|
|
557
558
|
const packageImport = packageNameAndSubpath(args.path);
|
|
558
559
|
const projectPackagePath = packageImport ? resolveProjectPackageImport(args.path, configProjectRoot) : null;
|
|
559
560
|
if (projectPackagePath) {
|
|
560
|
-
return
|
|
561
|
+
return packageImport?.packageName.startsWith("@rig/") ? { path: projectPackagePath } : { path: projectPackagePath, namespace: ABSOLUTE_EXTERNAL_NAMESPACE };
|
|
561
562
|
}
|
|
562
563
|
if (packageImport && (packageImport.packageName.startsWith("@rig/") || RUNTIME_ONLY_EXTERNAL_PACKAGES.has(packageImport.packageName))) {
|
|
563
564
|
return { path: args.path, external: true };
|
|
@@ -589,6 +590,16 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
|
|
|
589
590
|
} catch {}
|
|
590
591
|
return { path: args.path, namespace: UNRESOLVED_NAMESPACE };
|
|
591
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
|
+
});
|
|
592
603
|
build.onLoad({ filter: /.*/, namespace: UNRESOLVED_NAMESPACE }, (args) => ({
|
|
593
604
|
loader: "js",
|
|
594
605
|
contents: `module.exports = {};
|
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
|
}
|