@cleocode/caamp 1.9.0 → 2026.3.74
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/README.md +2 -2
- package/dist/{chunk-ER3FIOTM.js → chunk-J7UN457C.js} +2 -2
- package/dist/chunk-J7UN457C.js.map +1 -0
- package/dist/{chunk-MFWBR2NY.js → chunk-O7IVK5JY.js} +2 -2
- package/dist/chunk-O7IVK5JY.js.map +1 -0
- package/dist/{chunk-TRIXT4T7.js → chunk-TI6WOJDG.js} +1 -1
- package/dist/chunk-TI6WOJDG.js.map +1 -0
- package/dist/{chunk-OLJZ23W3.js → chunk-ZF4W3K5H.js} +36 -3
- package/dist/chunk-ZF4W3K5H.js.map +1 -0
- package/dist/cli.d.ts +0 -0
- package/dist/cli.js +18 -12
- package/dist/cli.js.map +1 -1
- package/dist/{hooks-LV6VU7QJ.js → hooks-E2XQ7TQG.js} +3 -3
- package/dist/{hooks-LV6VU7QJ.js.map → hooks-E2XQ7TQG.js.map} +0 -0
- package/dist/index.d.ts +3492 -198
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/{injector-P2OL6RK3.js → injector-NSDP5Z2P.js} +3 -3
- package/dist/{injector-P2OL6RK3.js.map → injector-NSDP5Z2P.js.map} +0 -0
- package/package.json +2 -2
- package/providers/hook-mappings.json +0 -0
- package/providers/registry.json +0 -0
- package/dist/chunk-ER3FIOTM.js.map +0 -1
- package/dist/chunk-MFWBR2NY.js.map +0 -1
- package/dist/chunk-OLJZ23W3.js.map +0 -1
- package/dist/chunk-TRIXT4T7.js.map +0 -1
package/dist/cli.d.ts
CHANGED
|
File without changes
|
package/dist/cli.js
CHANGED
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
tokenizeCriteriaValue,
|
|
62
62
|
updateInstructionsSingleOperation,
|
|
63
63
|
validateSkill
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-ZF4W3K5H.js";
|
|
65
65
|
import {
|
|
66
66
|
buildSkillsMap,
|
|
67
67
|
checkAllInjections,
|
|
@@ -74,7 +74,7 @@ import {
|
|
|
74
74
|
groupByInstructFile,
|
|
75
75
|
injectAll,
|
|
76
76
|
providerSupports
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-O7IVK5JY.js";
|
|
78
78
|
import {
|
|
79
79
|
CANONICAL_HOOK_EVENTS,
|
|
80
80
|
buildHookMatrix,
|
|
@@ -83,13 +83,13 @@ import {
|
|
|
83
83
|
getHookSupport,
|
|
84
84
|
getProviderSummary,
|
|
85
85
|
translateToAll
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-J7UN457C.js";
|
|
87
87
|
import {
|
|
88
88
|
buildSkillSubPathCandidates,
|
|
89
89
|
resolvePreferredConfigScope,
|
|
90
90
|
resolveProviderConfigPath,
|
|
91
91
|
resolveProviderSkillsDir
|
|
92
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-TI6WOJDG.js";
|
|
93
93
|
|
|
94
94
|
// src/cli.ts
|
|
95
95
|
import { Command } from "commander";
|
|
@@ -101,13 +101,19 @@ import { readFile } from "fs/promises";
|
|
|
101
101
|
import { randomUUID } from "crypto";
|
|
102
102
|
import {
|
|
103
103
|
isRegisteredErrorCode
|
|
104
|
-
} from "@cleocode/lafs
|
|
104
|
+
} from "@cleocode/lafs";
|
|
105
105
|
var LAFSCommandError = class extends Error {
|
|
106
|
+
/** LAFS error code identifying the failure type. */
|
|
106
107
|
code;
|
|
108
|
+
/** LAFS error category inferred from the error code. */
|
|
107
109
|
category;
|
|
110
|
+
/** Whether the operation can be retried after fixing the root cause. */
|
|
108
111
|
recoverable;
|
|
112
|
+
/** Human-readable suggestion for resolving the error. */
|
|
109
113
|
suggestion;
|
|
114
|
+
/** Optional delay in milliseconds before retrying, or null. */
|
|
110
115
|
retryAfterMs;
|
|
116
|
+
/** Optional additional error details payload. */
|
|
111
117
|
details;
|
|
112
118
|
constructor(code, message, suggestion, recoverable = true, details) {
|
|
113
119
|
super(message);
|
|
@@ -744,7 +750,7 @@ import pc from "picocolors";
|
|
|
744
750
|
|
|
745
751
|
// src/core/lafs.ts
|
|
746
752
|
import { randomUUID as randomUUID2 } from "crypto";
|
|
747
|
-
import { resolveOutputFormat } from "@cleocode/lafs
|
|
753
|
+
import { resolveOutputFormat } from "@cleocode/lafs";
|
|
748
754
|
function resolveFormat(options) {
|
|
749
755
|
return resolveOutputFormat({
|
|
750
756
|
jsonFlag: options.jsonFlag ?? false,
|
|
@@ -2716,7 +2722,7 @@ function registerMcpCommands(program2) {
|
|
|
2716
2722
|
|
|
2717
2723
|
// src/commands/providers.ts
|
|
2718
2724
|
import { randomUUID as randomUUID3 } from "crypto";
|
|
2719
|
-
import { resolveOutputFormat as resolveOutputFormat2 } from "@cleocode/lafs
|
|
2725
|
+
import { resolveOutputFormat as resolveOutputFormat2 } from "@cleocode/lafs";
|
|
2720
2726
|
import pc11 from "picocolors";
|
|
2721
2727
|
function registerProvidersCommand(program2) {
|
|
2722
2728
|
const providers = program2.command("providers").description("Manage AI agent providers");
|
|
@@ -3098,7 +3104,7 @@ CAMP Hook Support (mappings v${getHookMappingsVersion()})
|
|
|
3098
3104
|
return;
|
|
3099
3105
|
}
|
|
3100
3106
|
if (opts.from) {
|
|
3101
|
-
const { toCanonical } = await import("./hooks-
|
|
3107
|
+
const { toCanonical } = await import("./hooks-E2XQ7TQG.js");
|
|
3102
3108
|
const canonical2 = toCanonical(event, opts.from);
|
|
3103
3109
|
if (format === "json") {
|
|
3104
3110
|
const envelope = buildEnvelope4(operation, mvi, {
|
|
@@ -3131,7 +3137,7 @@ CAMP Hook Support (mappings v${getHookMappingsVersion()})
|
|
|
3131
3137
|
}
|
|
3132
3138
|
process.exit(1);
|
|
3133
3139
|
}
|
|
3134
|
-
const { getMappedProviderIds } = await import("./hooks-
|
|
3140
|
+
const { getMappedProviderIds } = await import("./hooks-E2XQ7TQG.js");
|
|
3135
3141
|
const allIds = getMappedProviderIds();
|
|
3136
3142
|
const translations = translateToAll(canonical, allIds);
|
|
3137
3143
|
if (format === "json") {
|
|
@@ -3827,7 +3833,7 @@ function registerSkillsRemove(parent) {
|
|
|
3827
3833
|
|
|
3828
3834
|
// src/commands/skills/list.ts
|
|
3829
3835
|
import { randomUUID as randomUUID4 } from "crypto";
|
|
3830
|
-
import { resolveOutputFormat as resolveOutputFormat3 } from "@cleocode/lafs
|
|
3836
|
+
import { resolveOutputFormat as resolveOutputFormat3 } from "@cleocode/lafs";
|
|
3831
3837
|
import pc14 from "picocolors";
|
|
3832
3838
|
function registerSkillsList(parent) {
|
|
3833
3839
|
parent.command("list").description("List installed skills").option("-g, --global", "List global skills").option("-a, --agent <name>", "List skills for specific agent").option("--json", "Output as JSON (default)").option("--human", "Output in human-readable format").action(async (opts) => {
|
|
@@ -3934,7 +3940,7 @@ function emitJsonError3(operation, mvi, code, message, category, details = {}) {
|
|
|
3934
3940
|
import { randomUUID as randomUUID5 } from "crypto";
|
|
3935
3941
|
import {
|
|
3936
3942
|
resolveOutputFormat as resolveOutputFormat4
|
|
3937
|
-
} from "@cleocode/lafs
|
|
3943
|
+
} from "@cleocode/lafs";
|
|
3938
3944
|
import pc15 from "picocolors";
|
|
3939
3945
|
var SkillsFindValidationError = class extends Error {
|
|
3940
3946
|
code;
|
|
@@ -4708,7 +4714,7 @@ ${results.length} file(s) scanned, ${totalFindings} finding(s)`));
|
|
|
4708
4714
|
}
|
|
4709
4715
|
|
|
4710
4716
|
// src/commands/skills/validate.ts
|
|
4711
|
-
import { resolveOutputFormat as resolveOutputFormat5 } from "@cleocode/lafs
|
|
4717
|
+
import { resolveOutputFormat as resolveOutputFormat5 } from "@cleocode/lafs";
|
|
4712
4718
|
import pc20 from "picocolors";
|
|
4713
4719
|
function registerSkillsValidate(parent) {
|
|
4714
4720
|
parent.command("validate").description("Validate SKILL.md format").argument("[path]", "Path to SKILL.md", "SKILL.md").option("--json", "Output as JSON (default)").option("--human", "Output in human-readable format").action(async (path, opts) => {
|