@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.
- package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +7 -4
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/package.json +3 -2
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa/agents/learner.md +1 -1
- package/plugins/lisa-agy/agents/learner.md +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-copilot/agents/learner.agent.md +1 -1
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/agents/learner.md +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-phaser/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-agy/plugin.json +1 -1
- package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-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/.codex-plugin/skills/lisa-wiki-add-role/SKILL.md +5 -0
- package/plugins/lisa-wiki/skills/lisa-wiki-add-role/SKILL.md +5 -0
- package/plugins/lisa-wiki/templates/agents/role-agent.claude.md +1 -1
- package/plugins/lisa-wiki/templates/agents/role-agent.codex.toml +1 -1
- package/plugins/lisa-wiki-agy/plugin.json +1 -1
- package/plugins/lisa-wiki-agy/skills/lisa-wiki-add-role/SKILL.md +5 -0
- package/plugins/lisa-wiki-agy/templates/agents/role-agent.claude.md +1 -1
- package/plugins/lisa-wiki-agy/templates/agents/role-agent.codex.toml +1 -1
- package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-copilot/skills/lisa-wiki-add-role/SKILL.md +5 -0
- package/plugins/lisa-wiki-copilot/templates/agents/role-agent.claude.md +1 -1
- package/plugins/lisa-wiki-copilot/templates/agents/role-agent.codex.toml +1 -1
- package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-cursor/skills/lisa-wiki-add-role/SKILL.md +5 -0
- package/plugins/lisa-wiki-cursor/templates/agents/role-agent.claude.md +1 -1
- package/plugins/lisa-wiki-cursor/templates/agents/role-agent.codex.toml +1 -1
- package/plugins/src/base/agents/learner.md +1 -1
- package/plugins/src/wiki/skills/lisa-wiki-add-role/SKILL.md +5 -0
- package/plugins/src/wiki/templates/agents/role-agent.claude.md +1 -1
- package/plugins/src/wiki/templates/agents/role-agent.codex.toml +1 -1
- package/scripts/verify-learner-frontmatter-built.mjs +65 -0
|
@@ -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: 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).
|
|
@@ -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
|
+
}
|