@h-rig/core 0.0.0-e2e-live2.20260630090740 → 0.0.0-e2e-live4.20260630092940
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",
|
|
@@ -551,13 +552,15 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
|
|
|
551
552
|
const directFilePath = resolvedFilePath(args.path, configDir);
|
|
552
553
|
if (directFilePath)
|
|
553
554
|
return { path: directFilePath };
|
|
555
|
+
if (args.path.startsWith("#"))
|
|
556
|
+
return;
|
|
554
557
|
const packageImport = packageNameAndSubpath(args.path);
|
|
558
|
+
const projectPackagePath = resolveProjectPackageImport(args.path, configProjectRoot);
|
|
559
|
+
if (projectPackagePath)
|
|
560
|
+
return { path: projectPackagePath };
|
|
555
561
|
if (packageImport && (packageImport.packageName.startsWith("@rig/") || RUNTIME_ONLY_EXTERNAL_PACKAGES.has(packageImport.packageName))) {
|
|
556
562
|
return { path: args.path, external: true };
|
|
557
563
|
}
|
|
558
|
-
const projectPackagePath = resolveProjectPackageImport(args.path, configDir);
|
|
559
|
-
if (projectPackagePath)
|
|
560
|
-
return { path: projectPackagePath };
|
|
561
564
|
if (/^(?:node|bun):/.test(args.path) || isBuiltin(args.path))
|
|
562
565
|
return;
|
|
563
566
|
if (packageImport)
|
|
@@ -599,7 +602,7 @@ throw new Error(${JSON.stringify(`Failed to bundle ${configPath}: Could not reso
|
|
|
599
602
|
`);
|
|
600
603
|
throw new Error(`Failed to bundle ${configPath}: ${detail || "unknown bundler error"}`);
|
|
601
604
|
}
|
|
602
|
-
const bundleParentDir = join2(
|
|
605
|
+
const bundleParentDir = join2(configProjectRoot, ".rig", "tmp");
|
|
603
606
|
mkdirSync(bundleParentDir, { recursive: true });
|
|
604
607
|
const dir = mkdtempSync(join2(bundleParentDir, "rig-config-bundle-"));
|
|
605
608
|
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",
|
|
@@ -328,13 +329,15 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
|
|
|
328
329
|
const directFilePath = resolvedFilePath(args.path, configDir);
|
|
329
330
|
if (directFilePath)
|
|
330
331
|
return { path: directFilePath };
|
|
332
|
+
if (args.path.startsWith("#"))
|
|
333
|
+
return;
|
|
331
334
|
const packageImport = packageNameAndSubpath(args.path);
|
|
335
|
+
const projectPackagePath = resolveProjectPackageImport(args.path, configProjectRoot);
|
|
336
|
+
if (projectPackagePath)
|
|
337
|
+
return { path: projectPackagePath };
|
|
332
338
|
if (packageImport && (packageImport.packageName.startsWith("@rig/") || RUNTIME_ONLY_EXTERNAL_PACKAGES.has(packageImport.packageName))) {
|
|
333
339
|
return { path: args.path, external: true };
|
|
334
340
|
}
|
|
335
|
-
const projectPackagePath = resolveProjectPackageImport(args.path, configDir);
|
|
336
|
-
if (projectPackagePath)
|
|
337
|
-
return { path: projectPackagePath };
|
|
338
341
|
if (/^(?:node|bun):/.test(args.path) || isBuiltin(args.path))
|
|
339
342
|
return;
|
|
340
343
|
if (packageImport)
|
|
@@ -376,7 +379,7 @@ throw new Error(${JSON.stringify(`Failed to bundle ${configPath}: Could not reso
|
|
|
376
379
|
`);
|
|
377
380
|
throw new Error(`Failed to bundle ${configPath}: ${detail || "unknown bundler error"}`);
|
|
378
381
|
}
|
|
379
|
-
const bundleParentDir = join2(
|
|
382
|
+
const bundleParentDir = join2(configProjectRoot, ".rig", "tmp");
|
|
380
383
|
mkdirSync(bundleParentDir, { recursive: true });
|
|
381
384
|
const dir = mkdtempSync(join2(bundleParentDir, "rig-config-bundle-"));
|
|
382
385
|
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",
|
|
@@ -363,13 +364,15 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
|
|
|
363
364
|
const directFilePath = resolvedFilePath(args.path, configDir);
|
|
364
365
|
if (directFilePath)
|
|
365
366
|
return { path: directFilePath };
|
|
367
|
+
if (args.path.startsWith("#"))
|
|
368
|
+
return;
|
|
366
369
|
const packageImport = packageNameAndSubpath(args.path);
|
|
370
|
+
const projectPackagePath = resolveProjectPackageImport(args.path, configProjectRoot);
|
|
371
|
+
if (projectPackagePath)
|
|
372
|
+
return { path: projectPackagePath };
|
|
367
373
|
if (packageImport && (packageImport.packageName.startsWith("@rig/") || RUNTIME_ONLY_EXTERNAL_PACKAGES.has(packageImport.packageName))) {
|
|
368
374
|
return { path: args.path, external: true };
|
|
369
375
|
}
|
|
370
|
-
const projectPackagePath = resolveProjectPackageImport(args.path, configDir);
|
|
371
|
-
if (projectPackagePath)
|
|
372
|
-
return { path: projectPackagePath };
|
|
373
376
|
if (/^(?:node|bun):/.test(args.path) || isBuiltin(args.path))
|
|
374
377
|
return;
|
|
375
378
|
if (packageImport)
|
|
@@ -411,7 +414,7 @@ throw new Error(${JSON.stringify(`Failed to bundle ${configPath}: Could not reso
|
|
|
411
414
|
`);
|
|
412
415
|
throw new Error(`Failed to bundle ${configPath}: ${detail || "unknown bundler error"}`);
|
|
413
416
|
}
|
|
414
|
-
const bundleParentDir = join2(
|
|
417
|
+
const bundleParentDir = join2(configProjectRoot, ".rig", "tmp");
|
|
415
418
|
mkdirSync(bundleParentDir, { recursive: true });
|
|
416
419
|
const dir = mkdtempSync(join2(bundleParentDir, "rig-config-bundle-"));
|
|
417
420
|
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",
|
|
@@ -328,13 +329,15 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
|
|
|
328
329
|
const directFilePath = resolvedFilePath(args.path, configDir);
|
|
329
330
|
if (directFilePath)
|
|
330
331
|
return { path: directFilePath };
|
|
332
|
+
if (args.path.startsWith("#"))
|
|
333
|
+
return;
|
|
331
334
|
const packageImport = packageNameAndSubpath(args.path);
|
|
335
|
+
const projectPackagePath = resolveProjectPackageImport(args.path, configProjectRoot);
|
|
336
|
+
if (projectPackagePath)
|
|
337
|
+
return { path: projectPackagePath };
|
|
332
338
|
if (packageImport && (packageImport.packageName.startsWith("@rig/") || RUNTIME_ONLY_EXTERNAL_PACKAGES.has(packageImport.packageName))) {
|
|
333
339
|
return { path: args.path, external: true };
|
|
334
340
|
}
|
|
335
|
-
const projectPackagePath = resolveProjectPackageImport(args.path, configDir);
|
|
336
|
-
if (projectPackagePath)
|
|
337
|
-
return { path: projectPackagePath };
|
|
338
341
|
if (/^(?:node|bun):/.test(args.path) || isBuiltin(args.path))
|
|
339
342
|
return;
|
|
340
343
|
if (packageImport)
|
|
@@ -376,7 +379,7 @@ throw new Error(${JSON.stringify(`Failed to bundle ${configPath}: Could not reso
|
|
|
376
379
|
`);
|
|
377
380
|
throw new Error(`Failed to bundle ${configPath}: ${detail || "unknown bundler error"}`);
|
|
378
381
|
}
|
|
379
|
-
const bundleParentDir = join2(
|
|
382
|
+
const bundleParentDir = join2(configProjectRoot, ".rig", "tmp");
|
|
380
383
|
mkdirSync(bundleParentDir, { recursive: true });
|
|
381
384
|
const dir = mkdtempSync(join2(bundleParentDir, "rig-config-bundle-"));
|
|
382
385
|
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",
|
|
@@ -551,13 +552,15 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
|
|
|
551
552
|
const directFilePath = resolvedFilePath(args.path, configDir);
|
|
552
553
|
if (directFilePath)
|
|
553
554
|
return { path: directFilePath };
|
|
555
|
+
if (args.path.startsWith("#"))
|
|
556
|
+
return;
|
|
554
557
|
const packageImport = packageNameAndSubpath(args.path);
|
|
558
|
+
const projectPackagePath = resolveProjectPackageImport(args.path, configProjectRoot);
|
|
559
|
+
if (projectPackagePath)
|
|
560
|
+
return { path: projectPackagePath };
|
|
555
561
|
if (packageImport && (packageImport.packageName.startsWith("@rig/") || RUNTIME_ONLY_EXTERNAL_PACKAGES.has(packageImport.packageName))) {
|
|
556
562
|
return { path: args.path, external: true };
|
|
557
563
|
}
|
|
558
|
-
const projectPackagePath = resolveProjectPackageImport(args.path, configDir);
|
|
559
|
-
if (projectPackagePath)
|
|
560
|
-
return { path: projectPackagePath };
|
|
561
564
|
if (/^(?:node|bun):/.test(args.path) || isBuiltin(args.path))
|
|
562
565
|
return;
|
|
563
566
|
if (packageImport)
|
|
@@ -599,7 +602,7 @@ throw new Error(${JSON.stringify(`Failed to bundle ${configPath}: Could not reso
|
|
|
599
602
|
`);
|
|
600
603
|
throw new Error(`Failed to bundle ${configPath}: ${detail || "unknown bundler error"}`);
|
|
601
604
|
}
|
|
602
|
-
const bundleParentDir = join2(
|
|
605
|
+
const bundleParentDir = join2(configProjectRoot, ".rig", "tmp");
|
|
603
606
|
mkdirSync(bundleParentDir, { recursive: true });
|
|
604
607
|
const dir = mkdtempSync(join2(bundleParentDir, "rig-config-bundle-"));
|
|
605
608
|
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",
|
|
@@ -551,13 +552,15 @@ async function importConfigViaRuntimeBundleUnserialized(configPath) {
|
|
|
551
552
|
const directFilePath = resolvedFilePath(args.path, configDir);
|
|
552
553
|
if (directFilePath)
|
|
553
554
|
return { path: directFilePath };
|
|
555
|
+
if (args.path.startsWith("#"))
|
|
556
|
+
return;
|
|
554
557
|
const packageImport = packageNameAndSubpath(args.path);
|
|
558
|
+
const projectPackagePath = resolveProjectPackageImport(args.path, configProjectRoot);
|
|
559
|
+
if (projectPackagePath)
|
|
560
|
+
return { path: projectPackagePath };
|
|
555
561
|
if (packageImport && (packageImport.packageName.startsWith("@rig/") || RUNTIME_ONLY_EXTERNAL_PACKAGES.has(packageImport.packageName))) {
|
|
556
562
|
return { path: args.path, external: true };
|
|
557
563
|
}
|
|
558
|
-
const projectPackagePath = resolveProjectPackageImport(args.path, configDir);
|
|
559
|
-
if (projectPackagePath)
|
|
560
|
-
return { path: projectPackagePath };
|
|
561
564
|
if (/^(?:node|bun):/.test(args.path) || isBuiltin(args.path))
|
|
562
565
|
return;
|
|
563
566
|
if (packageImport)
|
|
@@ -599,7 +602,7 @@ throw new Error(${JSON.stringify(`Failed to bundle ${configPath}: Could not reso
|
|
|
599
602
|
`);
|
|
600
603
|
throw new Error(`Failed to bundle ${configPath}: ${detail || "unknown bundler error"}`);
|
|
601
604
|
}
|
|
602
|
-
const bundleParentDir = join2(
|
|
605
|
+
const bundleParentDir = join2(configProjectRoot, ".rig", "tmp");
|
|
603
606
|
mkdirSync(bundleParentDir, { recursive: true });
|
|
604
607
|
const dir = mkdtempSync(join2(bundleParentDir, "rig-config-bundle-"));
|
|
605
608
|
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-live4.20260630092940",
|
|
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-live4.20260630092940",
|
|
185
|
+
"@rig/kernel-seed": "npm:@h-rig/kernel-seed@0.0.0-e2e-live4.20260630092940",
|
|
186
186
|
"effect": "4.0.0-beta.90",
|
|
187
187
|
"smol-toml": "^1.6.0"
|
|
188
188
|
}
|