@h-rig/core 0.0.0-e2e-live2.20260630090740 → 0.0.0-e2e-live3.20260630092056
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.
|
@@ -225,7 +225,7 @@ function createPluginHost(plugins) {
|
|
|
225
225
|
// packages/core/src/load-config.ts
|
|
226
226
|
import { existsSync as existsSync2, mkdirSync, mkdtempSync, readFileSync as readFileSync2, readdirSync, rmSync, statSync } from "fs";
|
|
227
227
|
import { isBuiltin } from "module";
|
|
228
|
-
import { dirname, isAbsolute, join as join2, relative, resolve } from "path";
|
|
228
|
+
import { basename, dirname, isAbsolute, join as join2, relative, resolve } from "path";
|
|
229
229
|
import { pathToFileURL } from "url";
|
|
230
230
|
import { Schema as Schema3 } from "effect";
|
|
231
231
|
import { RigConfig as RigConfig3 } from "@rig/contracts";
|
|
@@ -538,6 +538,7 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
|
|
|
538
538
|
}
|
|
539
539
|
const RUNTIME_ONLY_EXTERNAL_PACKAGES = new Set(["effect", "mupdf", "fastembed", "onnxruntime-node", "markit-ai"]);
|
|
540
540
|
const configDir = dirname(configPath);
|
|
541
|
+
const configProjectRoot = basename(configDir) === ".rig" ? dirname(configDir) : configDir;
|
|
541
542
|
const UNRESOLVED_NAMESPACE = "rig-config-unresolved";
|
|
542
543
|
const unresolvedLocalPlugin = {
|
|
543
544
|
name: "rig-config-unresolved-local",
|
|
@@ -552,12 +553,12 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
|
|
|
552
553
|
if (directFilePath)
|
|
553
554
|
return { path: directFilePath };
|
|
554
555
|
const packageImport = packageNameAndSubpath(args.path);
|
|
556
|
+
const projectPackagePath = resolveProjectPackageImport(args.path, configProjectRoot);
|
|
557
|
+
if (projectPackagePath)
|
|
558
|
+
return { path: projectPackagePath };
|
|
555
559
|
if (packageImport && (packageImport.packageName.startsWith("@rig/") || RUNTIME_ONLY_EXTERNAL_PACKAGES.has(packageImport.packageName))) {
|
|
556
560
|
return { path: args.path, external: true };
|
|
557
561
|
}
|
|
558
|
-
const projectPackagePath = resolveProjectPackageImport(args.path, configDir);
|
|
559
|
-
if (projectPackagePath)
|
|
560
|
-
return { path: projectPackagePath };
|
|
561
562
|
if (/^(?:node|bun):/.test(args.path) || isBuiltin(args.path))
|
|
562
563
|
return;
|
|
563
564
|
if (packageImport)
|
|
@@ -599,7 +600,7 @@ throw new Error(${JSON.stringify(`Failed to bundle ${configPath}: Could not reso
|
|
|
599
600
|
`);
|
|
600
601
|
throw new Error(`Failed to bundle ${configPath}: ${detail || "unknown bundler error"}`);
|
|
601
602
|
}
|
|
602
|
-
const bundleParentDir = join2(
|
|
603
|
+
const bundleParentDir = join2(configProjectRoot, ".rig", "tmp");
|
|
603
604
|
mkdirSync(bundleParentDir, { recursive: true });
|
|
604
605
|
const dir = mkdtempSync(join2(bundleParentDir, "rig-config-bundle-"));
|
|
605
606
|
try {
|
package/dist/src/hook-runner.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// packages/core/src/load-config.ts
|
|
3
3
|
import { existsSync as existsSync2, mkdirSync, mkdtempSync, readFileSync as readFileSync2, readdirSync, rmSync, statSync } from "fs";
|
|
4
4
|
import { isBuiltin } from "module";
|
|
5
|
-
import { dirname, isAbsolute, join as join2, relative, resolve } from "path";
|
|
5
|
+
import { basename, dirname, isAbsolute, join as join2, relative, resolve } from "path";
|
|
6
6
|
import { pathToFileURL } from "url";
|
|
7
7
|
import { Schema as Schema3 } from "effect";
|
|
8
8
|
import { RigConfig as RigConfig3 } from "@rig/contracts";
|
|
@@ -315,6 +315,7 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
|
|
|
315
315
|
}
|
|
316
316
|
const RUNTIME_ONLY_EXTERNAL_PACKAGES = new Set(["effect", "mupdf", "fastembed", "onnxruntime-node", "markit-ai"]);
|
|
317
317
|
const configDir = dirname(configPath);
|
|
318
|
+
const configProjectRoot = basename(configDir) === ".rig" ? dirname(configDir) : configDir;
|
|
318
319
|
const UNRESOLVED_NAMESPACE = "rig-config-unresolved";
|
|
319
320
|
const unresolvedLocalPlugin = {
|
|
320
321
|
name: "rig-config-unresolved-local",
|
|
@@ -329,12 +330,12 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
|
|
|
329
330
|
if (directFilePath)
|
|
330
331
|
return { path: directFilePath };
|
|
331
332
|
const packageImport = packageNameAndSubpath(args.path);
|
|
333
|
+
const projectPackagePath = resolveProjectPackageImport(args.path, configProjectRoot);
|
|
334
|
+
if (projectPackagePath)
|
|
335
|
+
return { path: projectPackagePath };
|
|
332
336
|
if (packageImport && (packageImport.packageName.startsWith("@rig/") || RUNTIME_ONLY_EXTERNAL_PACKAGES.has(packageImport.packageName))) {
|
|
333
337
|
return { path: args.path, external: true };
|
|
334
338
|
}
|
|
335
|
-
const projectPackagePath = resolveProjectPackageImport(args.path, configDir);
|
|
336
|
-
if (projectPackagePath)
|
|
337
|
-
return { path: projectPackagePath };
|
|
338
339
|
if (/^(?:node|bun):/.test(args.path) || isBuiltin(args.path))
|
|
339
340
|
return;
|
|
340
341
|
if (packageImport)
|
|
@@ -376,7 +377,7 @@ throw new Error(${JSON.stringify(`Failed to bundle ${configPath}: Could not reso
|
|
|
376
377
|
`);
|
|
377
378
|
throw new Error(`Failed to bundle ${configPath}: ${detail || "unknown bundler error"}`);
|
|
378
379
|
}
|
|
379
|
-
const bundleParentDir = join2(
|
|
380
|
+
const bundleParentDir = join2(configProjectRoot, ".rig", "tmp");
|
|
380
381
|
mkdirSync(bundleParentDir, { recursive: true });
|
|
381
382
|
const dir = mkdtempSync(join2(bundleParentDir, "rig-config-bundle-"));
|
|
382
383
|
try {
|
|
@@ -37,7 +37,7 @@ function applyConfigEnv(config, env = process.env) {
|
|
|
37
37
|
// packages/core/src/load-config.ts
|
|
38
38
|
import { existsSync as existsSync2, mkdirSync, mkdtempSync, readFileSync as readFileSync2, readdirSync, rmSync, statSync } from "fs";
|
|
39
39
|
import { isBuiltin } from "module";
|
|
40
|
-
import { dirname, isAbsolute, join as join2, relative, resolve } from "path";
|
|
40
|
+
import { basename, dirname, isAbsolute, join as join2, relative, resolve } from "path";
|
|
41
41
|
import { pathToFileURL } from "url";
|
|
42
42
|
import { Schema as Schema3 } from "effect";
|
|
43
43
|
import { RigConfig as RigConfig3 } from "@rig/contracts";
|
|
@@ -350,6 +350,7 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
|
|
|
350
350
|
}
|
|
351
351
|
const RUNTIME_ONLY_EXTERNAL_PACKAGES = new Set(["effect", "mupdf", "fastembed", "onnxruntime-node", "markit-ai"]);
|
|
352
352
|
const configDir = dirname(configPath);
|
|
353
|
+
const configProjectRoot = basename(configDir) === ".rig" ? dirname(configDir) : configDir;
|
|
353
354
|
const UNRESOLVED_NAMESPACE = "rig-config-unresolved";
|
|
354
355
|
const unresolvedLocalPlugin = {
|
|
355
356
|
name: "rig-config-unresolved-local",
|
|
@@ -364,12 +365,12 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
|
|
|
364
365
|
if (directFilePath)
|
|
365
366
|
return { path: directFilePath };
|
|
366
367
|
const packageImport = packageNameAndSubpath(args.path);
|
|
368
|
+
const projectPackagePath = resolveProjectPackageImport(args.path, configProjectRoot);
|
|
369
|
+
if (projectPackagePath)
|
|
370
|
+
return { path: projectPackagePath };
|
|
367
371
|
if (packageImport && (packageImport.packageName.startsWith("@rig/") || RUNTIME_ONLY_EXTERNAL_PACKAGES.has(packageImport.packageName))) {
|
|
368
372
|
return { path: args.path, external: true };
|
|
369
373
|
}
|
|
370
|
-
const projectPackagePath = resolveProjectPackageImport(args.path, configDir);
|
|
371
|
-
if (projectPackagePath)
|
|
372
|
-
return { path: projectPackagePath };
|
|
373
374
|
if (/^(?:node|bun):/.test(args.path) || isBuiltin(args.path))
|
|
374
375
|
return;
|
|
375
376
|
if (packageImport)
|
|
@@ -411,7 +412,7 @@ throw new Error(${JSON.stringify(`Failed to bundle ${configPath}: Could not reso
|
|
|
411
412
|
`);
|
|
412
413
|
throw new Error(`Failed to bundle ${configPath}: ${detail || "unknown bundler error"}`);
|
|
413
414
|
}
|
|
414
|
-
const bundleParentDir = join2(
|
|
415
|
+
const bundleParentDir = join2(configProjectRoot, ".rig", "tmp");
|
|
415
416
|
mkdirSync(bundleParentDir, { recursive: true });
|
|
416
417
|
const dir = mkdtempSync(join2(bundleParentDir, "rig-config-bundle-"));
|
|
417
418
|
try {
|
package/dist/src/load-config.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// packages/core/src/load-config.ts
|
|
3
3
|
import { existsSync as existsSync2, mkdirSync, mkdtempSync, readFileSync as readFileSync2, readdirSync, rmSync, statSync } from "fs";
|
|
4
4
|
import { isBuiltin } from "module";
|
|
5
|
-
import { dirname, isAbsolute, join as join2, relative, resolve } from "path";
|
|
5
|
+
import { basename, dirname, isAbsolute, join as join2, relative, resolve } from "path";
|
|
6
6
|
import { pathToFileURL } from "url";
|
|
7
7
|
import { Schema as Schema3 } from "effect";
|
|
8
8
|
import { RigConfig as RigConfig3 } from "@rig/contracts";
|
|
@@ -315,6 +315,7 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
|
|
|
315
315
|
}
|
|
316
316
|
const RUNTIME_ONLY_EXTERNAL_PACKAGES = new Set(["effect", "mupdf", "fastembed", "onnxruntime-node", "markit-ai"]);
|
|
317
317
|
const configDir = dirname(configPath);
|
|
318
|
+
const configProjectRoot = basename(configDir) === ".rig" ? dirname(configDir) : configDir;
|
|
318
319
|
const UNRESOLVED_NAMESPACE = "rig-config-unresolved";
|
|
319
320
|
const unresolvedLocalPlugin = {
|
|
320
321
|
name: "rig-config-unresolved-local",
|
|
@@ -329,12 +330,12 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
|
|
|
329
330
|
if (directFilePath)
|
|
330
331
|
return { path: directFilePath };
|
|
331
332
|
const packageImport = packageNameAndSubpath(args.path);
|
|
333
|
+
const projectPackagePath = resolveProjectPackageImport(args.path, configProjectRoot);
|
|
334
|
+
if (projectPackagePath)
|
|
335
|
+
return { path: projectPackagePath };
|
|
332
336
|
if (packageImport && (packageImport.packageName.startsWith("@rig/") || RUNTIME_ONLY_EXTERNAL_PACKAGES.has(packageImport.packageName))) {
|
|
333
337
|
return { path: args.path, external: true };
|
|
334
338
|
}
|
|
335
|
-
const projectPackagePath = resolveProjectPackageImport(args.path, configDir);
|
|
336
|
-
if (projectPackagePath)
|
|
337
|
-
return { path: projectPackagePath };
|
|
338
339
|
if (/^(?:node|bun):/.test(args.path) || isBuiltin(args.path))
|
|
339
340
|
return;
|
|
340
341
|
if (packageImport)
|
|
@@ -376,7 +377,7 @@ throw new Error(${JSON.stringify(`Failed to bundle ${configPath}: Could not reso
|
|
|
376
377
|
`);
|
|
377
378
|
throw new Error(`Failed to bundle ${configPath}: ${detail || "unknown bundler error"}`);
|
|
378
379
|
}
|
|
379
|
-
const bundleParentDir = join2(
|
|
380
|
+
const bundleParentDir = join2(configProjectRoot, ".rig", "tmp");
|
|
380
381
|
mkdirSync(bundleParentDir, { recursive: true });
|
|
381
382
|
const dir = mkdtempSync(join2(bundleParentDir, "rig-config-bundle-"));
|
|
382
383
|
try {
|
|
@@ -225,7 +225,7 @@ function createPluginHost(plugins) {
|
|
|
225
225
|
// packages/core/src/load-config.ts
|
|
226
226
|
import { existsSync as existsSync2, mkdirSync, mkdtempSync, readFileSync as readFileSync2, readdirSync, rmSync, statSync } from "fs";
|
|
227
227
|
import { isBuiltin } from "module";
|
|
228
|
-
import { dirname, isAbsolute, join as join2, relative, resolve } from "path";
|
|
228
|
+
import { basename, dirname, isAbsolute, join as join2, relative, resolve } from "path";
|
|
229
229
|
import { pathToFileURL } from "url";
|
|
230
230
|
import { Schema as Schema3 } from "effect";
|
|
231
231
|
import { RigConfig as RigConfig3 } from "@rig/contracts";
|
|
@@ -538,6 +538,7 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
|
|
|
538
538
|
}
|
|
539
539
|
const RUNTIME_ONLY_EXTERNAL_PACKAGES = new Set(["effect", "mupdf", "fastembed", "onnxruntime-node", "markit-ai"]);
|
|
540
540
|
const configDir = dirname(configPath);
|
|
541
|
+
const configProjectRoot = basename(configDir) === ".rig" ? dirname(configDir) : configDir;
|
|
541
542
|
const UNRESOLVED_NAMESPACE = "rig-config-unresolved";
|
|
542
543
|
const unresolvedLocalPlugin = {
|
|
543
544
|
name: "rig-config-unresolved-local",
|
|
@@ -552,12 +553,12 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
|
|
|
552
553
|
if (directFilePath)
|
|
553
554
|
return { path: directFilePath };
|
|
554
555
|
const packageImport = packageNameAndSubpath(args.path);
|
|
556
|
+
const projectPackagePath = resolveProjectPackageImport(args.path, configProjectRoot);
|
|
557
|
+
if (projectPackagePath)
|
|
558
|
+
return { path: projectPackagePath };
|
|
555
559
|
if (packageImport && (packageImport.packageName.startsWith("@rig/") || RUNTIME_ONLY_EXTERNAL_PACKAGES.has(packageImport.packageName))) {
|
|
556
560
|
return { path: args.path, external: true };
|
|
557
561
|
}
|
|
558
|
-
const projectPackagePath = resolveProjectPackageImport(args.path, configDir);
|
|
559
|
-
if (projectPackagePath)
|
|
560
|
-
return { path: projectPackagePath };
|
|
561
562
|
if (/^(?:node|bun):/.test(args.path) || isBuiltin(args.path))
|
|
562
563
|
return;
|
|
563
564
|
if (packageImport)
|
|
@@ -599,7 +600,7 @@ throw new Error(${JSON.stringify(`Failed to bundle ${configPath}: Could not reso
|
|
|
599
600
|
`);
|
|
600
601
|
throw new Error(`Failed to bundle ${configPath}: ${detail || "unknown bundler error"}`);
|
|
601
602
|
}
|
|
602
|
-
const bundleParentDir = join2(
|
|
603
|
+
const bundleParentDir = join2(configProjectRoot, ".rig", "tmp");
|
|
603
604
|
mkdirSync(bundleParentDir, { recursive: true });
|
|
604
605
|
const dir = mkdtempSync(join2(bundleParentDir, "rig-config-bundle-"));
|
|
605
606
|
try {
|
|
@@ -225,7 +225,7 @@ function createPluginHost(plugins) {
|
|
|
225
225
|
// packages/core/src/load-config.ts
|
|
226
226
|
import { existsSync as existsSync2, mkdirSync, mkdtempSync, readFileSync as readFileSync2, readdirSync, rmSync, statSync } from "fs";
|
|
227
227
|
import { isBuiltin } from "module";
|
|
228
|
-
import { dirname, isAbsolute, join as join2, relative, resolve } from "path";
|
|
228
|
+
import { basename, dirname, isAbsolute, join as join2, relative, resolve } from "path";
|
|
229
229
|
import { pathToFileURL } from "url";
|
|
230
230
|
import { Schema as Schema3 } from "effect";
|
|
231
231
|
import { RigConfig as RigConfig3 } from "@rig/contracts";
|
|
@@ -538,6 +538,7 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
|
|
|
538
538
|
}
|
|
539
539
|
const RUNTIME_ONLY_EXTERNAL_PACKAGES = new Set(["effect", "mupdf", "fastembed", "onnxruntime-node", "markit-ai"]);
|
|
540
540
|
const configDir = dirname(configPath);
|
|
541
|
+
const configProjectRoot = basename(configDir) === ".rig" ? dirname(configDir) : configDir;
|
|
541
542
|
const UNRESOLVED_NAMESPACE = "rig-config-unresolved";
|
|
542
543
|
const unresolvedLocalPlugin = {
|
|
543
544
|
name: "rig-config-unresolved-local",
|
|
@@ -552,12 +553,12 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
|
|
|
552
553
|
if (directFilePath)
|
|
553
554
|
return { path: directFilePath };
|
|
554
555
|
const packageImport = packageNameAndSubpath(args.path);
|
|
556
|
+
const projectPackagePath = resolveProjectPackageImport(args.path, configProjectRoot);
|
|
557
|
+
if (projectPackagePath)
|
|
558
|
+
return { path: projectPackagePath };
|
|
555
559
|
if (packageImport && (packageImport.packageName.startsWith("@rig/") || RUNTIME_ONLY_EXTERNAL_PACKAGES.has(packageImport.packageName))) {
|
|
556
560
|
return { path: args.path, external: true };
|
|
557
561
|
}
|
|
558
|
-
const projectPackagePath = resolveProjectPackageImport(args.path, configDir);
|
|
559
|
-
if (projectPackagePath)
|
|
560
|
-
return { path: projectPackagePath };
|
|
561
562
|
if (/^(?:node|bun):/.test(args.path) || isBuiltin(args.path))
|
|
562
563
|
return;
|
|
563
564
|
if (packageImport)
|
|
@@ -599,7 +600,7 @@ throw new Error(${JSON.stringify(`Failed to bundle ${configPath}: Could not reso
|
|
|
599
600
|
`);
|
|
600
601
|
throw new Error(`Failed to bundle ${configPath}: ${detail || "unknown bundler error"}`);
|
|
601
602
|
}
|
|
602
|
-
const bundleParentDir = join2(
|
|
603
|
+
const bundleParentDir = join2(configProjectRoot, ".rig", "tmp");
|
|
603
604
|
mkdirSync(bundleParentDir, { recursive: true });
|
|
604
605
|
const dir = mkdtempSync(join2(bundleParentDir, "rig-config-bundle-"));
|
|
605
606
|
try {
|
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-live3.20260630092056",
|
|
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-live3.20260630092056",
|
|
185
|
+
"@rig/kernel-seed": "npm:@h-rig/kernel-seed@0.0.0-e2e-live3.20260630092056",
|
|
186
186
|
"effect": "4.0.0-beta.90",
|
|
187
187
|
"smol-toml": "^1.6.0"
|
|
188
188
|
}
|