@codyswann/lisa 2.126.0 → 2.126.1
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/package.json +1 -1
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-agy/plugin.json +1 -1
- package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-agy/plugin.json +1 -1
- package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-agy/plugin.json +1 -1
- package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-agy/plugin.json +1 -1
- package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-agy/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-agy/plugin.json +1 -1
- package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
- package/scripts/plugin-routing-validate.mjs +68 -0
package/package.json
CHANGED
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"lodash": ">=4.18.1"
|
|
84
84
|
},
|
|
85
85
|
"name": "@codyswann/lisa",
|
|
86
|
-
"version": "2.126.
|
|
86
|
+
"version": "2.126.1",
|
|
87
87
|
"description": "Claude Code governance framework that applies guardrails, guidance, and automated enforcement to projects",
|
|
88
88
|
"main": "dist/index.js",
|
|
89
89
|
"exports": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "2.126.
|
|
3
|
+
"version": "2.126.1",
|
|
4
4
|
"description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cody Swann"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "2.126.
|
|
3
|
+
"version": "2.126.1",
|
|
4
4
|
"description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, across Claude and Codex.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cody Swann"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "2.126.
|
|
3
|
+
"version": "2.126.1",
|
|
4
4
|
"description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cody Swann"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "2.126.
|
|
3
|
+
"version": "2.126.1",
|
|
4
4
|
"description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cody Swann"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "2.126.
|
|
3
|
+
"version": "2.126.1",
|
|
4
4
|
"description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cody Swann"
|
|
@@ -292,6 +292,73 @@ function validateRouting(routing, plugin, upstreamVersion) {
|
|
|
292
292
|
return errors;
|
|
293
293
|
}
|
|
294
294
|
|
|
295
|
+
/**
|
|
296
|
+
* True iff at least one of `lowerActions` references `kind` — either by the kind
|
|
297
|
+
* keyword itself (case-insensitive) or by the id of any component of that kind.
|
|
298
|
+
*
|
|
299
|
+
* @param {string} kind - the component kind (e.g. "mcp", "agent").
|
|
300
|
+
* @param {ReadonlyArray<Record<string, unknown>>} typedComponents - components with a string kind.
|
|
301
|
+
* @param {readonly string[]} lowerActions - the agent's actions, lowercased.
|
|
302
|
+
* @returns {boolean} whether the kind group is referenced.
|
|
303
|
+
*/
|
|
304
|
+
function isKindCovered(kind, typedComponents, lowerActions) {
|
|
305
|
+
const kindLower = kind.toLowerCase();
|
|
306
|
+
const ids = typedComponents
|
|
307
|
+
.filter(c => c.kind === kind)
|
|
308
|
+
.map(c => c.id)
|
|
309
|
+
.filter(id => typeof id === "string" && id !== "")
|
|
310
|
+
.map(id => id.toLowerCase());
|
|
311
|
+
return lowerActions.some(
|
|
312
|
+
action => action.includes(kindLower) || ids.some(id => action.includes(id))
|
|
313
|
+
);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* Positively enforce the "drop nothing" rule: every distinct component kind must
|
|
318
|
+
* be covered by each agent that actually has to act on it. Agents whose outcome
|
|
319
|
+
* is `already-native` (covered by the existing fan-out) or `claude-only`
|
|
320
|
+
* (intentionally nothing) are exempt; every other outcome must reference every
|
|
321
|
+
* component group in its actions.
|
|
322
|
+
*
|
|
323
|
+
* @param {unknown} components - the artifact's `components` array.
|
|
324
|
+
* @param {unknown} routing - the artifact's `routing` object.
|
|
325
|
+
* @returns {string[]} validation error messages (empty when valid).
|
|
326
|
+
*/
|
|
327
|
+
function validateCoverage(components, routing) {
|
|
328
|
+
if (
|
|
329
|
+
!Array.isArray(components) ||
|
|
330
|
+
routing === null ||
|
|
331
|
+
typeof routing !== "object"
|
|
332
|
+
) {
|
|
333
|
+
return [];
|
|
334
|
+
}
|
|
335
|
+
const typed = components.filter(
|
|
336
|
+
c => c !== null && typeof c === "object" && typeof c.kind === "string"
|
|
337
|
+
);
|
|
338
|
+
const distinctKinds = [...new Set(typed.map(c => c.kind))];
|
|
339
|
+
const errors = [];
|
|
340
|
+
for (const agent of AGENTS) {
|
|
341
|
+
const entry = routing[agent];
|
|
342
|
+
if (entry === null || entry === undefined || typeof entry !== "object") {
|
|
343
|
+
continue;
|
|
344
|
+
}
|
|
345
|
+
if (entry.outcome === "already-native" || entry.outcome === "claude-only") {
|
|
346
|
+
continue;
|
|
347
|
+
}
|
|
348
|
+
const lowerActions = (
|
|
349
|
+
Array.isArray(entry.actions) ? entry.actions : []
|
|
350
|
+
).map(action => String(action).toLowerCase());
|
|
351
|
+
for (const kind of distinctKinds) {
|
|
352
|
+
if (!isKindCovered(kind, typed, lowerActions)) {
|
|
353
|
+
errors.push(
|
|
354
|
+
`routing.${agent}: no action covers component group ${kind}`
|
|
355
|
+
);
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
return errors;
|
|
360
|
+
}
|
|
361
|
+
|
|
295
362
|
/**
|
|
296
363
|
* Validate a parsed routing artifact against the analyze-plugin schema + the
|
|
297
364
|
* version contract + anti-pattern gates. Pure — all filesystem facts are passed
|
|
@@ -339,6 +406,7 @@ export function validateArtifact(artifact, context) {
|
|
|
339
406
|
artifact.upstreamVersion
|
|
340
407
|
)
|
|
341
408
|
);
|
|
409
|
+
errors.push(...validateCoverage(artifact.components, artifact.routing));
|
|
342
410
|
if (mdExists === false) {
|
|
343
411
|
errors.push("paired .md companion file is missing");
|
|
344
412
|
}
|