agentsmesh 0.28.0 → 0.30.0
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/CHANGELOG.md +42 -0
- package/README.md +64 -11
- package/dist/canonical.d.ts +2 -2
- package/dist/canonical.js +91 -13
- package/dist/canonical.js.map +1 -1
- package/dist/cli.js +223 -199
- package/dist/engine.d.ts +2 -2
- package/dist/engine.js +113 -17
- package/dist/engine.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +235 -49
- package/dist/index.js.map +1 -1
- package/dist/{init-B0aI-g8W.d.ts → init-PvpXanVd.d.ts} +17 -3
- package/dist/lessons.d.ts +2 -2
- package/dist/lessons.js +195 -40
- package/dist/lessons.js.map +1 -1
- package/dist/{schema-CzaoYJlG.d.ts → schema-CH_JJep8.d.ts} +5 -0
- package/dist/{target-descriptor-ItDY3NR0.d.ts → target-descriptor-CaLUz7SR.d.ts} +1 -1
- package/dist/targets.d.ts +3 -3
- package/dist/targets.js +28 -9
- package/dist/targets.js.map +1 -1
- package/package.json +1 -1
- package/schemas/agentsmesh.json +11 -0
|
@@ -267,6 +267,11 @@ declare const configSchema: z.ZodObject<{
|
|
|
267
267
|
rules: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
268
268
|
agents: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
269
269
|
}, z.core.$strict>>;
|
|
270
|
+
accept: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
271
|
+
mcp: "mcp";
|
|
272
|
+
hooks: "hooks";
|
|
273
|
+
permissions: "permissions";
|
|
274
|
+
}>>>;
|
|
270
275
|
}, z.core.$strip>>>;
|
|
271
276
|
overrides: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
272
277
|
collaboration: z.ZodDefault<z.ZodObject<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as CanonicalFiles, c as CanonicalRule, V as ValidatedConfig, E as ExtendPick } from './schema-
|
|
1
|
+
import { b as CanonicalFiles, c as CanonicalRule, V as ValidatedConfig, E as ExtendPick } from './schema-CH_JJep8.js';
|
|
2
2
|
|
|
3
3
|
/** Result of generating files for a target */
|
|
4
4
|
interface GenerateResult {
|
package/dist/targets.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { e as TargetDescriptor, h as TargetLayoutScope, C as ContentNormalizer, d as ImportResult } from './target-descriptor-
|
|
2
|
-
export { E as ExtraRuleOutputContext, a as ExtraRuleOutputResolver, F as FeatureLinter, b as GeneratedOutputMerger, c as GlobalTargetSupport, I as ImportPathBuilder, R as RuleLinter, S as ScopeExtrasFn, T as TargetCapabilities, f as TargetGenerators, g as TargetLayout, i as TargetLintHooks, j as TargetManagedOutputs, k as TargetOutputFamily, l as TargetPathResolvers } from './target-descriptor-
|
|
3
|
-
import './schema-
|
|
1
|
+
import { e as TargetDescriptor, h as TargetLayoutScope, C as ContentNormalizer, d as ImportResult } from './target-descriptor-CaLUz7SR.js';
|
|
2
|
+
export { E as ExtraRuleOutputContext, a as ExtraRuleOutputResolver, F as FeatureLinter, b as GeneratedOutputMerger, c as GlobalTargetSupport, I as ImportPathBuilder, R as RuleLinter, S as ScopeExtrasFn, T as TargetCapabilities, f as TargetGenerators, g as TargetLayout, i as TargetLintHooks, j as TargetManagedOutputs, k as TargetOutputFamily, l as TargetPathResolvers } from './target-descriptor-CaLUz7SR.js';
|
|
3
|
+
import './schema-CH_JJep8.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|
|
6
6
|
/** Register a full target descriptor (for plugins). */
|
package/dist/targets.js
CHANGED
|
@@ -2768,6 +2768,18 @@ var init_linter = __esm({
|
|
|
2768
2768
|
}
|
|
2769
2769
|
});
|
|
2770
2770
|
|
|
2771
|
+
// src/core/hook-types.ts
|
|
2772
|
+
var BEST_EFFORT_HOOK_EVENTS;
|
|
2773
|
+
var init_hook_types = __esm({
|
|
2774
|
+
"src/core/hook-types.ts"() {
|
|
2775
|
+
BEST_EFFORT_HOOK_EVENTS = /* @__PURE__ */ new Set([
|
|
2776
|
+
"UserPromptSubmit",
|
|
2777
|
+
"PostToolUseFailure",
|
|
2778
|
+
"SessionStart"
|
|
2779
|
+
]);
|
|
2780
|
+
}
|
|
2781
|
+
});
|
|
2782
|
+
|
|
2771
2783
|
// src/core/lint/shared/helpers.ts
|
|
2772
2784
|
function createWarning(file, target31, message) {
|
|
2773
2785
|
return {
|
|
@@ -2783,6 +2795,13 @@ function formatOxfordComma(items) {
|
|
|
2783
2795
|
if (items.length === 2) return `${items[0]} and ${items[1]}`;
|
|
2784
2796
|
return `${items.slice(0, -1).join(", ")}, and ${items[items.length - 1]}`;
|
|
2785
2797
|
}
|
|
2798
|
+
function unsupportedHookEventNames(hooks, supportedEvents) {
|
|
2799
|
+
if (!hooks) return [];
|
|
2800
|
+
const supported = new Set(supportedEvents);
|
|
2801
|
+
return Object.keys(hooks).filter(
|
|
2802
|
+
(event) => !supported.has(event) && !BEST_EFFORT_HOOK_EVENTS.has(event)
|
|
2803
|
+
);
|
|
2804
|
+
}
|
|
2786
2805
|
function createUnsupportedHookWarning(event, target31, supportedEvents, options) {
|
|
2787
2806
|
const by = options?.unsupportedBy ?? target31;
|
|
2788
2807
|
const supported = formatOxfordComma(supportedEvents);
|
|
@@ -2794,6 +2813,7 @@ function createUnsupportedHookWarning(event, target31, supportedEvents, options)
|
|
|
2794
2813
|
}
|
|
2795
2814
|
var init_helpers = __esm({
|
|
2796
2815
|
"src/core/lint/shared/helpers.ts"() {
|
|
2816
|
+
init_hook_types();
|
|
2797
2817
|
}
|
|
2798
2818
|
});
|
|
2799
2819
|
|
|
@@ -6137,8 +6157,7 @@ var init_linter5 = __esm({
|
|
|
6137
6157
|
// src/targets/augment-code/lint.ts
|
|
6138
6158
|
function lintHooks3(canonical) {
|
|
6139
6159
|
if (!canonical.hooks || Object.keys(canonical.hooks).length === 0) return [];
|
|
6140
|
-
|
|
6141
|
-
return Object.keys(canonical.hooks).filter((event) => !supportedSet.has(event)).map(
|
|
6160
|
+
return unsupportedHookEventNames(canonical.hooks, SUPPORTED_HOOK_EVENTS).map(
|
|
6142
6161
|
(event) => createUnsupportedHookWarning(event, "augment-code", SUPPORTED_HOOK_EVENTS, {
|
|
6143
6162
|
unsupportedBy: "AugmentCode hooks"
|
|
6144
6163
|
})
|
|
@@ -10143,8 +10162,7 @@ function lintCommands3(canonical) {
|
|
|
10143
10162
|
function lintHooks5(canonical) {
|
|
10144
10163
|
if (!canonical.hooks || Object.keys(canonical.hooks).length === 0) return [];
|
|
10145
10164
|
const supported = ["PreToolUse", "PostToolUse", "Notification", "UserPromptSubmit"];
|
|
10146
|
-
const
|
|
10147
|
-
const diagnostics = Object.keys(canonical.hooks).filter((event) => !supportedSet.has(event)).map(
|
|
10165
|
+
const diagnostics = unsupportedHookEventNames(canonical.hooks, supported).map(
|
|
10148
10166
|
(event) => createUnsupportedHookWarning(event, "copilot", supported, {
|
|
10149
10167
|
unsupportedBy: "Copilot hooks"
|
|
10150
10168
|
})
|
|
@@ -11261,7 +11279,7 @@ var init_permissions2 = __esm({
|
|
|
11261
11279
|
// src/targets/cursor/hook-format.ts
|
|
11262
11280
|
function unmappedCursorHookEvents(hooks) {
|
|
11263
11281
|
return Object.keys(hooks).filter(
|
|
11264
|
-
(event) => Array.isArray(hooks[event]) && hooks[event].length > 0 && !(event in CANONICAL_TO_CURSOR)
|
|
11282
|
+
(event) => Array.isArray(hooks[event]) && hooks[event].length > 0 && !(event in CANONICAL_TO_CURSOR) && !BEST_EFFORT_HOOK_EVENTS.has(event)
|
|
11265
11283
|
);
|
|
11266
11284
|
}
|
|
11267
11285
|
function toCursorHooks(hooks) {
|
|
@@ -11309,6 +11327,7 @@ function cursorHooksToCanonical(hooks) {
|
|
|
11309
11327
|
var CANONICAL_TO_CURSOR, CURSOR_TO_CANONICAL;
|
|
11310
11328
|
var init_hook_format = __esm({
|
|
11311
11329
|
"src/targets/cursor/hook-format.ts"() {
|
|
11330
|
+
init_hook_types();
|
|
11312
11331
|
init_hook_command();
|
|
11313
11332
|
CANONICAL_TO_CURSOR = {
|
|
11314
11333
|
PreToolUse: "preToolUse",
|
|
@@ -13759,8 +13778,9 @@ function lintCommands6(canonical) {
|
|
|
13759
13778
|
function lintHooks7(canonical) {
|
|
13760
13779
|
if (!canonical.hooks || Object.keys(canonical.hooks).length === 0) return [];
|
|
13761
13780
|
const supported = ["PreToolUse", "PostToolUse", "Notification"];
|
|
13762
|
-
|
|
13763
|
-
|
|
13781
|
+
return unsupportedHookEventNames(canonical.hooks, supported).map(
|
|
13782
|
+
(event) => createUnsupportedHookWarning(event, "gemini-cli", supported)
|
|
13783
|
+
);
|
|
13764
13784
|
}
|
|
13765
13785
|
var init_lint14 = __esm({
|
|
13766
13786
|
"src/targets/gemini-cli/lint.ts"() {
|
|
@@ -16012,8 +16032,7 @@ var init_linter20 = __esm({
|
|
|
16012
16032
|
function lintHooks10(canonical) {
|
|
16013
16033
|
if (!canonical.hooks || Object.keys(canonical.hooks).length === 0) return [];
|
|
16014
16034
|
const supported = ["PreToolUse", "PostToolUse", "UserPromptSubmit", "SubagentStop"];
|
|
16015
|
-
|
|
16016
|
-
return Object.keys(canonical.hooks).filter((event) => !supportedSet.has(event)).map(
|
|
16035
|
+
return unsupportedHookEventNames(canonical.hooks, supported).map(
|
|
16017
16036
|
(event) => createUnsupportedHookWarning(event, "kiro", supported, { unsupportedBy: "Kiro hooks" })
|
|
16018
16037
|
);
|
|
16019
16038
|
}
|