@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 CHANGED
@@ -82,7 +82,7 @@
82
82
  "lodash": ">=4.18.1"
83
83
  },
84
84
  "name": "@codyswann/lisa",
85
- "version": "2.36.0",
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",
3
- "version": "2.36.0",
3
+ "version": "2.37.0",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "2.36.0",
3
+ "version": "2.37.0",
4
4
  "description": "Universal governance: agents, skills, commands, hooks, and rules for all projects.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "2.36.0",
3
+ "version": "2.37.0",
4
4
  "description": "AWS CDK-specific plugin",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "2.36.0",
3
+ "version": "2.37.0",
4
4
  "description": "AWS CDK-specific Lisa plugin.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-expo",
3
- "version": "2.36.0",
3
+ "version": "2.37.0",
4
4
  "description": "Expo/React Native-specific skills, agents, rules, and MCP servers",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-expo",
3
- "version": "2.36.0",
3
+ "version": "2.37.0",
4
4
  "description": "Expo and React Native-specific skills, agents, rules, and MCP servers.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-harper-fabric",
3
- "version": "2.36.0",
3
+ "version": "2.37.0",
4
4
  "description": "Harper/Fabric-specific rules for TypeScript component apps",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-harper-fabric",
3
- "version": "2.36.0",
3
+ "version": "2.37.0",
4
4
  "description": "Harper/Fabric-specific Lisa rules for TypeScript component apps.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-nestjs",
3
- "version": "2.36.0",
3
+ "version": "2.37.0",
4
4
  "description": "NestJS-specific skills (GraphQL, TypeORM) and hooks (migration write-protection)",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-nestjs",
3
- "version": "2.36.0",
3
+ "version": "2.37.0",
4
4
  "description": "NestJS-specific skills and migration write-protection hooks.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-openclaw",
3
- "version": "2.36.0",
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.36.0",
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"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-rails",
3
- "version": "2.36.0",
3
+ "version": "2.37.0",
4
4
  "description": "Ruby on Rails-specific hooks — RuboCop linting/formatting and ast-grep scanning on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-rails",
3
- "version": "2.36.0",
3
+ "version": "2.37.0",
4
4
  "description": "Ruby on Rails-specific skills and hooks for RuboCop and ast-grep scanning on edit.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "2.36.0",
3
+ "version": "2.37.0",
4
4
  "description": "TypeScript-specific hooks — Prettier formatting, ESLint linting, and ast-grep scanning on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "2.36.0",
3
+ "version": "2.37.0",
4
4
  "description": "TypeScript-specific hooks for formatting, linting, and ast-grep scanning on edit.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "2.36.0",
3
+ "version": "2.37.0",
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"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "2.36.0",
3
+ "version": "2.37.0",
4
4
  "description": "Distributable LLM Wiki kernel — ingest, query, lint, and maintain a git-native markdown knowledge base 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) {