@cleocode/caamp 2026.5.90 → 2026.5.92
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/cli.js +25 -10
- package/dist/cli.js.map +1 -1
- package/package.json +14 -6
package/dist/cli.js
CHANGED
|
@@ -4202,18 +4202,30 @@ Show example inputs and expected outputs.
|
|
|
4202
4202
|
|
|
4203
4203
|
// src/commands/skills/install.ts
|
|
4204
4204
|
import { existsSync as existsSync11 } from "fs";
|
|
4205
|
+
import { createRequire } from "module";
|
|
4206
|
+
import { pushWarning } from "@cleocode/lafs";
|
|
4205
4207
|
import pc11 from "picocolors";
|
|
4206
4208
|
var cachedCore;
|
|
4209
|
+
var defaultCoreResolver = async () => {
|
|
4210
|
+
const require2 = createRequire(import.meta.url);
|
|
4211
|
+
require2.resolve("@cleocode/core");
|
|
4212
|
+
return await import("@cleocode/core");
|
|
4213
|
+
};
|
|
4214
|
+
var coreResolver = defaultCoreResolver;
|
|
4207
4215
|
async function resolveCore() {
|
|
4208
4216
|
if (cachedCore !== void 0) return cachedCore;
|
|
4209
4217
|
try {
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
} catch {
|
|
4218
|
+
cachedCore = await coreResolver();
|
|
4219
|
+
} catch (err) {
|
|
4213
4220
|
cachedCore = null;
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4221
|
+
pushWarning({
|
|
4222
|
+
code: "W_CORE_UNAVAILABLE",
|
|
4223
|
+
severity: "warn",
|
|
4224
|
+
message: "caamp running without @cleocode/core \u2014 trust gate skipped (skill installs not security-checked)",
|
|
4225
|
+
context: {
|
|
4226
|
+
error: err instanceof Error ? err.message : String(err)
|
|
4227
|
+
}
|
|
4228
|
+
});
|
|
4217
4229
|
}
|
|
4218
4230
|
return cachedCore;
|
|
4219
4231
|
}
|
|
@@ -4263,10 +4275,13 @@ async function recordSkillTrustBypass(scan, reason = null) {
|
|
|
4263
4275
|
try {
|
|
4264
4276
|
core.recordTrustBypass(scan, reason);
|
|
4265
4277
|
} catch (err) {
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4278
|
+
const msg = err instanceof Error ? err.message : String(err);
|
|
4279
|
+
pushWarning({
|
|
4280
|
+
code: "W_AUDIT_LOG_FAILED",
|
|
4281
|
+
severity: "warn",
|
|
4282
|
+
message: "trust-bypass audit record failed",
|
|
4283
|
+
context: { error: msg }
|
|
4284
|
+
});
|
|
4270
4285
|
}
|
|
4271
4286
|
}
|
|
4272
4287
|
function registerSkillsInstall(parent) {
|