@codyswann/lisa 2.269.0 → 2.269.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.
Files changed (76) hide show
  1. package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
  2. package/dist/core/upstream-evidence-manifest.js +7 -4
  3. package/dist/core/upstream-evidence-manifest.js.map +1 -1
  4. package/package.json +3 -2
  5. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  6. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  7. package/plugins/lisa/agents/learner.md +1 -1
  8. package/plugins/lisa-agy/agents/learner.md +1 -1
  9. package/plugins/lisa-agy/plugin.json +1 -1
  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-copilot/.claude-plugin/plugin.json +1 -1
  16. package/plugins/lisa-copilot/agents/learner.agent.md +1 -1
  17. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  18. package/plugins/lisa-cursor/agents/learner.md +1 -1
  19. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  20. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  21. package/plugins/lisa-expo-agy/plugin.json +1 -1
  22. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  23. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  24. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  25. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  26. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  27. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  28. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  29. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  30. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  31. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  32. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  33. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  34. package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
  35. package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
  36. package/plugins/lisa-openclaw-agy/plugin.json +1 -1
  37. package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
  38. package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
  39. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  40. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  41. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  42. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  43. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  44. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  45. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  46. package/plugins/lisa-rails-agy/plugin.json +1 -1
  47. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  48. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  49. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  50. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  51. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  52. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  53. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  54. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  55. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  56. package/plugins/lisa-wiki/.codex-plugin/skills/lisa-wiki-add-role/SKILL.md +5 -0
  57. package/plugins/lisa-wiki/skills/lisa-wiki-add-role/SKILL.md +5 -0
  58. package/plugins/lisa-wiki/templates/agents/role-agent.claude.md +1 -1
  59. package/plugins/lisa-wiki/templates/agents/role-agent.codex.toml +1 -1
  60. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  61. package/plugins/lisa-wiki-agy/skills/lisa-wiki-add-role/SKILL.md +5 -0
  62. package/plugins/lisa-wiki-agy/templates/agents/role-agent.claude.md +1 -1
  63. package/plugins/lisa-wiki-agy/templates/agents/role-agent.codex.toml +1 -1
  64. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  65. package/plugins/lisa-wiki-copilot/skills/lisa-wiki-add-role/SKILL.md +5 -0
  66. package/plugins/lisa-wiki-copilot/templates/agents/role-agent.claude.md +1 -1
  67. package/plugins/lisa-wiki-copilot/templates/agents/role-agent.codex.toml +1 -1
  68. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  69. package/plugins/lisa-wiki-cursor/skills/lisa-wiki-add-role/SKILL.md +5 -0
  70. package/plugins/lisa-wiki-cursor/templates/agents/role-agent.claude.md +1 -1
  71. package/plugins/lisa-wiki-cursor/templates/agents/role-agent.codex.toml +1 -1
  72. package/plugins/src/base/agents/learner.md +1 -1
  73. package/plugins/src/wiki/skills/lisa-wiki-add-role/SKILL.md +5 -0
  74. package/plugins/src/wiki/templates/agents/role-agent.claude.md +1 -1
  75. package/plugins/src/wiki/templates/agents/role-agent.codex.toml +1 -1
  76. package/scripts/verify-learner-frontmatter-built.mjs +65 -0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "2.269.0",
3
+ "version": "2.269.1",
4
4
  "description": "LLM Wiki — a distributable, git-native markdown knowledge base for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -21,6 +21,11 @@ agent-team routing, private notebooks) is out of scope** — this skill only cre
21
21
  4. **Brain-pointed, not baked:** the subagent's instructions say *"your domain is `wiki/<owned>/`;
22
22
  `/query` it first, contribute via `/ingest`; stay in your lane."* It points at the live wiki so it
23
23
  never goes stale. Only its one-line `description` is synthesized from the wiki at generation time.
24
+ 5. **Serialize the description before rendering:** derive `roleDescriptionSerialized` with
25
+ `JSON.stringify(roleDescription)` or an exact equivalent that emits one JSON string literal on one
26
+ physical line. Substitute that serialized literal, including its surrounding quotes, directly for
27
+ `{{roleDescriptionSerialized}}` in both templates. Do not add another layer of quotes. This keeps
28
+ colon-space sequences, quotes, backslashes, and runtime newlines exact in both YAML and TOML.
24
29
 
25
30
  ## Rules
26
31
  - v1 instructs lane-keeping but does not *enforce* per-role write isolation (deferred).
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: {{id}}
3
- description: {{roleDescription}}
3
+ description: {{roleDescriptionSerialized}}
4
4
  ---
5
5
 
6
6
  You are **{{role}}** for {{org}} — the domain expert for {{expertise}}.
@@ -1,5 +1,5 @@
1
1
  name = "{{id}}"
2
- description = "{{roleDescription}}"
2
+ description = {{roleDescriptionSerialized}}
3
3
  developer_instructions = """
4
4
  You are {{role}} for {{org}} — the domain expert for {{expertise}}.
5
5
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: learner
3
- description: Post-implementation learning agent. Capture-only — collects task learnings, builds seven-field entries, and persists them to the machine-managed ledger through the executable contract with provenance. Never promotes: it creates no skills, appends no rules, files no upstream issues; promotion is exclusively the gardener's ticket-gated job.
3
+ description: "Post-implementation learning agent. Capture-only — collects task learnings, builds seven-field entries, and persists them to the machine-managed ledger through the executable contract with provenance. Never promotes: it creates no skills, appends no rules, files no upstream issues; promotion is exclusively the gardener's ticket-gated job."
4
4
  ---
5
5
 
6
6
  # Learner Agent
@@ -21,6 +21,11 @@ agent-team routing, private notebooks) is out of scope** — this skill only cre
21
21
  4. **Brain-pointed, not baked:** the subagent's instructions say *"your domain is `wiki/<owned>/`;
22
22
  `/query` it first, contribute via `/ingest`; stay in your lane."* It points at the live wiki so it
23
23
  never goes stale. Only its one-line `description` is synthesized from the wiki at generation time.
24
+ 5. **Serialize the description before rendering:** derive `roleDescriptionSerialized` with
25
+ `JSON.stringify(roleDescription)` or an exact equivalent that emits one JSON string literal on one
26
+ physical line. Substitute that serialized literal, including its surrounding quotes, directly for
27
+ `{{roleDescriptionSerialized}}` in both templates. Do not add another layer of quotes. This keeps
28
+ colon-space sequences, quotes, backslashes, and runtime newlines exact in both YAML and TOML.
24
29
 
25
30
  ## Rules
26
31
  - v1 instructs lane-keeping but does not *enforce* per-role write isolation (deferred).
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: {{id}}
3
- description: {{roleDescription}}
3
+ description: {{roleDescriptionSerialized}}
4
4
  ---
5
5
 
6
6
  You are **{{role}}** for {{org}} — the domain expert for {{expertise}}.
@@ -1,5 +1,5 @@
1
1
  name = "{{id}}"
2
- description = "{{roleDescription}}"
2
+ description = {{roleDescriptionSerialized}}
3
3
  developer_instructions = """
4
4
  You are {{role}} for {{org}} — the domain expert for {{expertise}}.
5
5
 
@@ -0,0 +1,65 @@
1
+ #!/usr/bin/env node
2
+ /** Empirical proof that built Codex and OpenCode installers preserve learner metadata. */
3
+ import assert from "node:assert/strict";
4
+ import { execFile } from "node:child_process";
5
+ import { mkdtemp, readFile, rm } from "node:fs/promises";
6
+ import { tmpdir } from "node:os";
7
+ import path from "node:path";
8
+ import { fileURLToPath } from "node:url";
9
+ import { promisify } from "node:util";
10
+ import { load as loadYaml } from "js-yaml";
11
+ import { parse as parseToml } from "smol-toml";
12
+ import { discoverAndInstallAgents as installOpencodeAgents } from "../dist/opencode/agent-installer.js";
13
+
14
+ const EXPECTED_DESCRIPTION =
15
+ "Post-implementation learning agent. Capture-only — collects task learnings, builds seven-field entries, and persists them to the machine-managed ledger through the executable contract with provenance. Never promotes: it creates no skills, appends no rules, files no upstream issues; promotion is exclusively the gardener's ticket-gated job.";
16
+ const executeFile = promisify(execFile);
17
+ const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");
18
+ const destination = await mkdtemp(
19
+ path.join(tmpdir(), "lisa-learner-frontmatter-built-")
20
+ );
21
+
22
+ try {
23
+ const codexOverlay = await executeFile(
24
+ process.execPath,
25
+ [path.join(root, "dist", "codex", "project-overlay.js"), destination],
26
+ { cwd: root }
27
+ );
28
+ const opencodeResult = await installOpencodeAgents(root, destination, []);
29
+
30
+ assert.match(
31
+ codexOverlay.stderr,
32
+ /Lisa Codex overlay: \d+ native skills from \d+ project plugins\./
33
+ );
34
+ assert.equal(
35
+ opencodeResult.installed.some(agent => agent.id === "learner"),
36
+ true
37
+ );
38
+
39
+ const codexAgent = parseToml(
40
+ await readFile(
41
+ path.join(destination, ".codex", "agents", "lisa", "learner.toml"),
42
+ "utf8"
43
+ )
44
+ );
45
+ assert.equal(codexAgent.name, "lisa-learner");
46
+ assert.equal(codexAgent.description, EXPECTED_DESCRIPTION);
47
+
48
+ const opencodeMarkdown = await readFile(
49
+ path.join(destination, ".opencode", "agents", "lisa-learner.md"),
50
+ "utf8"
51
+ );
52
+ const frontmatter = /^---\r?\n([\s\S]*?)\r?\n---/.exec(opencodeMarkdown);
53
+ assert.notEqual(frontmatter, null);
54
+ const opencodeAgent = loadYaml(frontmatter?.[1] ?? "");
55
+ assert.equal(typeof opencodeAgent, "object");
56
+ assert.notEqual(opencodeAgent, null);
57
+ assert.equal(opencodeAgent.description, EXPECTED_DESCRIPTION);
58
+ assert.equal(opencodeAgent.mode, "subagent");
59
+
60
+ console.log(
61
+ "[EVIDENCE: learner-frontmatter-built] codex=preserved opencode=preserved"
62
+ );
63
+ } finally {
64
+ await rm(destination, { recursive: true, force: true });
65
+ }