@codyswann/lisa 2.36.0 → 2.37.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/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-cdk/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk/.codex-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-harper-fabric/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.codex-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-openclaw/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.codex-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-typescript/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.codex-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/scripts/generate-codex-plugin-artifacts.mjs +54 -0
package/package.json
CHANGED
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"lodash": ">=4.18.1"
|
|
83
83
|
},
|
|
84
84
|
"name": "@codyswann/lisa",
|
|
85
|
-
"version": "2.
|
|
85
|
+
"version": "2.37.0",
|
|
86
86
|
"description": "Claude Code governance framework that applies guardrails, guidance, and automated enforcement to projects",
|
|
87
87
|
"main": "dist/index.js",
|
|
88
88
|
"exports": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.37.0",
|
|
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.
|
|
3
|
+
"version": "2.37.0",
|
|
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"
|
|
@@ -69,6 +69,60 @@ export function parseSkillFrontmatter(skillMdPath) {
|
|
|
69
69
|
return frontmatter;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
+
/**
|
|
73
|
+
* Encode a single string as a YAML double-quoted scalar.
|
|
74
|
+
*
|
|
75
|
+
* Double-quoting unconditionally is the deterministic choice: it round-trips
|
|
76
|
+
* every possible string — colons, leading `#`/`-`, quotes, indicators — without
|
|
77
|
+
* the branchy "is this plain-safe?" logic that risks emitting ambiguous YAML.
|
|
78
|
+
* Only the five escapes YAML's double-quoted style requires are applied, in a
|
|
79
|
+
* fixed order, so output is a pure function of the input.
|
|
80
|
+
*
|
|
81
|
+
* @param {string} value Raw string to encode.
|
|
82
|
+
* @returns {string} The value wrapped in double quotes with `\`, `"`, and the
|
|
83
|
+
* C0 control characters (tab, newline, carriage return) escaped.
|
|
84
|
+
*/
|
|
85
|
+
function yamlQuote(value) {
|
|
86
|
+
const escaped = value
|
|
87
|
+
.replace(/\\/g, "\\\\")
|
|
88
|
+
.replace(/"/g, '\\"')
|
|
89
|
+
.replace(/\t/g, "\\t")
|
|
90
|
+
.replace(/\n/g, "\\n")
|
|
91
|
+
.replace(/\r/g, "\\r");
|
|
92
|
+
return `"${escaped}"`;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Serialize a Codex `interface` object to deterministic `openai.yaml` content.
|
|
97
|
+
*
|
|
98
|
+
* Emits exactly three keys in a fixed order — `display_name`,
|
|
99
|
+
* `short_description`, then `default_prompt` (a block sequence) — with every
|
|
100
|
+
* scalar double-quoted and a single trailing newline. The function is pure:
|
|
101
|
+
* given the same input it returns byte-identical output (no timestamps, no
|
|
102
|
+
* randomness, no filesystem), which is what keeps `bun run build:plugins`
|
|
103
|
+
* reproducible and the Plugins Sync CI gate stable.
|
|
104
|
+
*
|
|
105
|
+
* @param {{ display_name: string, short_description: string, default_prompt: readonly string[] }} iface
|
|
106
|
+
* The normalized interface object. `default_prompt` is always rendered as a
|
|
107
|
+
* block sequence (an empty array becomes `default_prompt: []`).
|
|
108
|
+
* @returns {string} Deterministic YAML, terminated by exactly one newline.
|
|
109
|
+
*/
|
|
110
|
+
export function serializeInterfaceToYaml(iface) {
|
|
111
|
+
const prompts = iface.default_prompt ?? [];
|
|
112
|
+
const promptBlock =
|
|
113
|
+
prompts.length === 0
|
|
114
|
+
? "default_prompt: []"
|
|
115
|
+
: ["default_prompt:", ...prompts.map(p => ` - ${yamlQuote(p)}`)].join(
|
|
116
|
+
"\n"
|
|
117
|
+
);
|
|
118
|
+
const lines = [
|
|
119
|
+
`display_name: ${yamlQuote(iface.display_name)}`,
|
|
120
|
+
`short_description: ${yamlQuote(iface.short_description)}`,
|
|
121
|
+
promptBlock,
|
|
122
|
+
];
|
|
123
|
+
return `${lines.join("\n")}\n`;
|
|
124
|
+
}
|
|
125
|
+
|
|
72
126
|
function main() {
|
|
73
127
|
const [pluginDirArg, versionArg] = process.argv.slice(2);
|
|
74
128
|
if (!pluginDirArg || !versionArg) {
|