@alfe.ai/integrations 0.2.4 → 0.2.5
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/index.js +20 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1951,7 +1951,11 @@ var OpenClawApplier = class {
|
|
|
1951
1951
|
if (missing.length === 0) return;
|
|
1952
1952
|
const updated = [...currentAllow, ...missing];
|
|
1953
1953
|
try {
|
|
1954
|
-
await this.runConfigSet([
|
|
1954
|
+
await this.runConfigSet([
|
|
1955
|
+
"plugins.allow",
|
|
1956
|
+
JSON.stringify(updated),
|
|
1957
|
+
"--merge"
|
|
1958
|
+
]);
|
|
1955
1959
|
} catch (err) {
|
|
1956
1960
|
log$3.warn({
|
|
1957
1961
|
err: err instanceof Error ? err.message : String(err),
|
|
@@ -2101,7 +2105,11 @@ var OpenClawApplier = class {
|
|
|
2101
2105
|
const merged = { ...await readParentObject(parentPath) };
|
|
2102
2106
|
for (const [k, v] of dottedKvs) merged[k] = v;
|
|
2103
2107
|
try {
|
|
2104
|
-
await this.runConfigSet([
|
|
2108
|
+
await this.runConfigSet([
|
|
2109
|
+
parentPath,
|
|
2110
|
+
JSON.stringify(merged),
|
|
2111
|
+
"--merge"
|
|
2112
|
+
]);
|
|
2105
2113
|
} catch (err) {
|
|
2106
2114
|
if (await this.verifyApplied(async () => {
|
|
2107
2115
|
const after = await readParentObject(parentPath);
|
|
@@ -2118,7 +2126,11 @@ var OpenClawApplier = class {
|
|
|
2118
2126
|
}
|
|
2119
2127
|
}
|
|
2120
2128
|
if (leaves.length > 0) try {
|
|
2121
|
-
await this.runConfigSet([
|
|
2129
|
+
await this.runConfigSet([
|
|
2130
|
+
"--batch-json",
|
|
2131
|
+
JSON.stringify(leaves),
|
|
2132
|
+
"--replace"
|
|
2133
|
+
]);
|
|
2122
2134
|
} catch (err) {
|
|
2123
2135
|
if (await this.verifyApplied(async () => {
|
|
2124
2136
|
return (await Promise.all(leaves.map((l) => this.configValueMatches(l.path, l.value)))).every(Boolean);
|
|
@@ -2158,7 +2170,11 @@ var OpenClawApplier = class {
|
|
|
2158
2170
|
if (Object.keys(existing).length === 0) continue;
|
|
2159
2171
|
try {
|
|
2160
2172
|
if (Object.keys(remaining).length === 0) await this.runConfigCommand(["unset", parentPath]);
|
|
2161
|
-
else await this.runConfigSet([
|
|
2173
|
+
else await this.runConfigSet([
|
|
2174
|
+
parentPath,
|
|
2175
|
+
JSON.stringify(remaining),
|
|
2176
|
+
"--replace"
|
|
2177
|
+
]);
|
|
2162
2178
|
} catch (err) {
|
|
2163
2179
|
log$3.warn({
|
|
2164
2180
|
err: err instanceof Error ? err.message : String(err),
|
package/package.json
CHANGED