@securecoms/agent-bridge 0.25.1 → 0.25.2
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.
- package/dist/bin.js +7 -0
- package/dist/index.js +7 -0
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -28583,6 +28583,13 @@ function assertManagedName(name) {
|
|
|
28583
28583
|
if (!name || name.includes("/") || name.includes("\\") || name === "." || name === ".." || name !== basename2(name)) {
|
|
28584
28584
|
throw new Error(`refusing managed config file name ${JSON.stringify(name)}: not a plain filename`);
|
|
28585
28585
|
}
|
|
28586
|
+
if (isLocalOnlyName(name)) {
|
|
28587
|
+
throw new Error(`refusing managed config file name ${JSON.stringify(name)}: reserved for a local writer`);
|
|
28588
|
+
}
|
|
28589
|
+
}
|
|
28590
|
+
function isLocalOnlyName(name) {
|
|
28591
|
+
const n = name.toLowerCase().replace(/[. ]+$/, "");
|
|
28592
|
+
return n === "llm.key" || n.startsWith("llm.key.") || n === "local-config.json";
|
|
28586
28593
|
}
|
|
28587
28594
|
function atomicWrite(path, body, deps) {
|
|
28588
28595
|
const tmp = `${path}.${process.pid}.${randomUUID()}.tmp`;
|
package/dist/index.js
CHANGED
|
@@ -28432,6 +28432,13 @@ function assertManagedName(name) {
|
|
|
28432
28432
|
if (!name || name.includes("/") || name.includes("\\") || name === "." || name === ".." || name !== basename2(name)) {
|
|
28433
28433
|
throw new Error(`refusing managed config file name ${JSON.stringify(name)}: not a plain filename`);
|
|
28434
28434
|
}
|
|
28435
|
+
if (isLocalOnlyName(name)) {
|
|
28436
|
+
throw new Error(`refusing managed config file name ${JSON.stringify(name)}: reserved for a local writer`);
|
|
28437
|
+
}
|
|
28438
|
+
}
|
|
28439
|
+
function isLocalOnlyName(name) {
|
|
28440
|
+
const n = name.toLowerCase().replace(/[. ]+$/, "");
|
|
28441
|
+
return n === "llm.key" || n.startsWith("llm.key.") || n === "local-config.json";
|
|
28435
28442
|
}
|
|
28436
28443
|
function atomicWrite(path, body, deps) {
|
|
28437
28444
|
const tmp = `${path}.${process.pid}.${randomUUID()}.tmp`;
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const BRIDGE_VERSION = "0.25.
|
|
1
|
+
export declare const BRIDGE_VERSION = "0.25.2";
|