@intentius/chant-lexicon-forgejo 0.54.3 → 0.56.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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "algorithm": "sha256",
3
3
  "artifacts": {
4
- "manifest.json": "880444cb755d36c21132e6de0c4cbf7165c508131c5644076752bf6b711b99cb",
4
+ "manifest.json": "41422a1279c60fe920c3cdcc8752b261195129987cc90aaad7533025cc518ce9",
5
5
  "meta.json": "44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a",
6
6
  "types/index.d.ts": "66204549b2a864ab5489e3f02c1878e73ab4b3c9d938cfb480b66f71543a43de",
7
7
  "rules/delegate-to-github.ts": "1060cda40f4b73d6cca3ba3fa13b80b4886147d4034c88584c2d80c5510dbe5e",
@@ -9,5 +9,5 @@
9
9
  "rules/wfj011.ts": "fcb8bf6685d744af20ad804ce929488257995c74b9a3353b2eacae3768d1c83e",
10
10
  "skills/chant-forgejo.md": "a1a560429db736c187e0b34cf8dd9efc6ad771afefcbf6f802d160d3d5274257"
11
11
  },
12
- "composite": "305f801d240521872d4b877bf60eceb3e2d20794830c4ab6e1a12a3ba158c447"
12
+ "composite": "6d2553e4556e777c5615f3644dfa6b0efa68638650c814d6e2da620ef8e1e1e2"
13
13
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "forgejo",
3
- "version": "0.54.3",
3
+ "version": "0.56.0",
4
4
  "chantVersion": ">=0.1.0",
5
5
  "namespace": "Forgejo",
6
6
  "intrinsics": [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intentius/chant-lexicon-forgejo",
3
- "version": "0.54.3",
3
+ "version": "0.56.0",
4
4
  "description": "Forgejo / Codeberg / Gitea Actions lexicon for chant — a thin GitHub Actions dialect",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://intentius.io/chant",
@@ -54,8 +54,8 @@
54
54
  },
55
55
  "peerDependencies": {
56
56
  "zod": "^4.3.6",
57
- "@intentius/chant": "^0.54.3",
58
- "@intentius/chant-lexicon-github": "^0.54.3"
57
+ "@intentius/chant": "^0.56.0",
58
+ "@intentius/chant-lexicon-github": "^0.56.0"
59
59
  },
60
60
  "scripts": {
61
61
  "generate": "tsx src/codegen/generate-cli.ts",
@@ -82,6 +82,24 @@ describe("forgejo plugin", () => {
82
82
  expect(forgejoPlugin.migrationSource?.("gitlab")).toBeUndefined();
83
83
  });
84
84
 
85
+ // #2066 regression (the gitlab wrapper dropped both fields; lock the
86
+ // forgejo seam too): security passes through, securityPosture comes back.
87
+ it("migrationSource transform with security: true carries securityPosture", async () => {
88
+ const src = forgejoPlugin.migrationSource!("github")!;
89
+ const workflow = `on: push
90
+ permissions:
91
+ contents: read
92
+ jobs:
93
+ build:
94
+ runs-on: ubuntu-latest
95
+ steps:
96
+ - run: echo hello
97
+ `;
98
+ const result = await src.transform(workflow, { emit: "yaml", security: true });
99
+ expect(result.securityPosture).toContain("## Security posture");
100
+ expect(result.securityPosture).toContain("Least-privilege permissions");
101
+ });
102
+
85
103
  it("mcpTools() includes the diff tool and context tools", () => {
86
104
  const tools = forgejoPlugin.mcpTools?.();
87
105
  expect(Array.isArray(tools)).toBe(true);