@codyswann/lisa 4.101.7 → 4.101.8

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.
Files changed (80) hide show
  1. package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
  2. package/dist/core/upstream-evidence-manifest.js +1 -1
  3. package/package.json +4 -4
  4. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  5. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  6. package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/validate-config.mjs +28 -15
  7. package/plugins/lisa/skills/lisa-secrets-access/scripts/validate-config.mjs +28 -15
  8. package/plugins/lisa-agy/plugin.json +1 -1
  9. package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/validate-config.mjs +28 -15
  10. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  11. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  12. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  13. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  14. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  15. package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
  16. package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
  17. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  18. package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/validate-config.mjs +28 -15
  19. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  20. package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/validate-config.mjs +28 -15
  21. package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
  22. package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
  23. package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/validate-config.mjs +28 -15
  24. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  25. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  26. package/plugins/lisa-expo-agy/plugin.json +1 -1
  27. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  28. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  29. package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
  30. package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
  31. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  32. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  33. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  34. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  35. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  36. package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
  37. package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
  38. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  39. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  40. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  41. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  42. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  43. package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
  44. package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
  45. package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
  46. package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
  47. package/plugins/lisa-openclaw-agy/plugin.json +1 -1
  48. package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
  49. package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
  50. package/plugins/lisa-openclaw-devin/.claude-plugin/plugin.json +1 -1
  51. package/plugins/lisa-openclaw-devin/.devin-plugin/plugin.json +1 -1
  52. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  53. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  54. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  55. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  56. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  57. package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
  58. package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
  59. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  60. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  61. package/plugins/lisa-rails-agy/plugin.json +1 -1
  62. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  63. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  64. package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
  65. package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
  66. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  67. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  68. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  69. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  70. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  71. package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
  72. package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
  73. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  74. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  75. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  76. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  77. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  78. package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
  79. package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
  80. package/plugins/src/base/skills/lisa-secrets-access/scripts/validate-config.mjs +28 -15
@@ -843,44 +843,58 @@ function botTokenProblem(path) {
843
843
  ];
844
844
  }
845
845
 
846
+ /**
847
+ * Strip every leading `login:` / `id:` prefix from an entry, so a value
848
+ * stacked behind several (`login:id:<v>`) is reached (CodySwannGT/lisa#4754).
849
+ * @param {string} entry One entry, already trimmed.
850
+ * @returns {string} The value after the last known prefix, trimmed.
851
+ */
852
+ function stripIdEntryPrefixes(entry) {
853
+ const prefix = ID_ENTRY_PREFIX.exec(entry)?.[1];
854
+ return prefix !== undefined && ID_ENTRY_KINDS.has(prefix)
855
+ ? stripIdEntryPrefixes(entry.slice(prefix.length + 1).trim())
856
+ : entry;
857
+ }
858
+
846
859
  /**
847
860
  * Scan one `operatorIds` / `trustedAuthorIds` entry for a bot token
848
861
  * (CodySwannGT/lisa#4719).
849
862
  *
850
- * The value after a `login:` / `id:` prefix is what gets tested, since a
851
- * token pasted behind a prefix is as leaked as a bare one. A legacy Jira
852
- * accountId (`557058:<uuid>`) is token-shaped but is a real id, so it passes.
863
+ * The value after one or more `login:` / `id:` prefixes is what gets tested,
864
+ * since a token pasted behind a prefix (or a stack of them, such as
865
+ * `login:id:<token>`; CodySwannGT/lisa#4754) is as leaked as a bare one. A
866
+ * legacy Jira accountId (`557058:<uuid>`) is token-shaped but is a real id,
867
+ * so it passes.
853
868
  * @param {string} entry One entry.
854
869
  * @param {string} path Where the entry sits.
855
870
  * @returns {string[]} Problems found.
856
871
  */
857
872
  function idEntryCredentials(entry, path) {
858
- const trimmed = entry.trim();
859
- const prefix = ID_ENTRY_PREFIX.exec(trimmed)?.[1];
860
- const value =
861
- prefix !== undefined && ID_ENTRY_KINDS.has(prefix)
862
- ? trimmed.slice(prefix.length + 1).trim()
863
- : trimmed;
873
+ const value = stripIdEntryPrefixes(entry.trim());
864
874
  return TOKEN_VALUE.test(value) && !JIRA_LEGACY_ACCOUNT_ID.test(value)
865
875
  ? botTokenProblem(path)
866
876
  : [];
867
877
  }
868
878
 
869
879
  /**
870
- * Refuse each malformed kind-keyed entry, naming it. A reader matches such an
871
- * entry against nobody, so accepting it would silently drop a person.
880
+ * Refuse each malformed kind-keyed entry, naming its location and prefix. A
881
+ * reader matches such an entry against nobody, so accepting it would silently
882
+ * drop a person. The refusal never repeats the entry's value: a token pasted
883
+ * behind an unknown prefix (`ID:<token>`) would otherwise land in terminals,
884
+ * CI logs and transcripts (CodySwannGT/lisa#4754).
872
885
  * @param {string} key `operatorIds` or `trustedAuthorIds`.
873
886
  * @param {readonly string[]} ids Entries, already known to be strings.
874
887
  * @returns {string[]} Problems found.
875
888
  */
876
889
  function idEntryProblems(key, ids) {
877
890
  const prefixOf = entry => `${ID_ENTRY_PREFIX.exec(entry)[1]}:`;
878
- return ids.flatMap(entry => {
891
+ return ids.flatMap((entry, i) => {
879
892
  const kind = classifyIdEntry(entry);
893
+ const path = `sessionManager.${key}[${i}]`;
880
894
  if (kind === "unknown-prefix") {
881
895
  const prefix = prefixOf(entry);
882
896
  return [
883
- `sessionManager.${key} entry ${JSON.stringify(entry)} has an ` +
897
+ `${path} has an ` +
884
898
  `unknown prefix ${JSON.stringify(prefix)}. Use login:<GitHub ` +
885
899
  `login>, id:<numeric or tracker account id>, or a plain id; write ` +
886
900
  `a tracker id that itself starts with letters and a colon as ` +
@@ -889,8 +903,7 @@ function idEntryProblems(key, ids) {
889
903
  }
890
904
  return kind === "empty-value"
891
905
  ? [
892
- `sessionManager.${key} entry ${JSON.stringify(entry)} has an ` +
893
- `empty value after ${JSON.stringify(prefixOf(entry))}: name the ` +
906
+ `${path} has an empty value after ${JSON.stringify(prefixOf(entry))}: name the ` +
894
907
  `login or id after the prefix.`,
895
908
  ]
896
909
  : [];