raptor-aios 0.13.1 → 0.13.2

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/CHANGELOG.md CHANGED
@@ -5,7 +5,19 @@ Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
- ## [0.13.1] - 2026-06-19
8
+ ## [0.13.2] - 2026-06-19
9
+
10
+ ### Fixed
11
+
12
+ - **Specs semeadas do Jira não vêm mais com `\*\*lixo\*\*` de escape.** Servidores
13
+ MCP que retornam Markdown como string (notavelmente `mcp-atlassian`, via
14
+ markdownify) **escapam** a pontuação inline (`\*`, `\_`, `` \` ``, `\~`) ao
15
+ converter o wiki/ADF do Jira para Markdown, para mantê-la literal. O
16
+ `flattenAdf` repassava essa string sem desescapar, então o negrito do card
17
+ (`**Como**`) chegava na spec como `\*\*Como\*\*` visível — ruído em toda a spec
18
+ (127 linhas afetadas num card real). Agora `flattenAdf` desescapa a pontuação
19
+ markdown inline na sua branch de string (`unescapeInlineMarkdown`); o ADF
20
+ estruturado é texto cru e permanece intocado.
9
21
 
10
22
  ### Fixed
11
23
 
@@ -269,11 +269,15 @@ export function mapIssueToSpecContext(issue, opts = {}) {
269
269
  jiraCustomSections: sections,
270
270
  };
271
271
  }
272
+ const MD_INLINE_ESCAPE = /\\([*_`~])/g;
273
+ export function unescapeInlineMarkdown(s) {
274
+ return s.replace(MD_INLINE_ESCAPE, "$1");
275
+ }
272
276
  export function flattenAdf(node) {
273
277
  if (node == null)
274
278
  return "";
275
279
  if (typeof node === "string")
276
- return node.trim();
280
+ return unescapeInlineMarkdown(node.trim());
277
281
  if (Array.isArray(node))
278
282
  return node.map(flattenAdf).join("");
279
283
  if (!isRecord(node))
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raptor/core",
3
- "version": "0.13.1",
3
+ "version": "0.13.2",
4
4
  "type": "module",
5
5
  "main": "dist/index.js"
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "raptor-aios",
3
- "version": "0.13.1",
3
+ "version": "0.13.2",
4
4
  "description": "Raptor — Spec-Driven Development (SDD) CLI for modern mobile apps. Constitutional gates, audit trail, real verification (a11y/perf/stores/OS matrix), and AI-agent slash commands.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -29,7 +29,7 @@ const CLI = join(ROOT, "packages", "cli");
29
29
  const CORE = join(ROOT, "packages", "core");
30
30
  const OUT = join(ROOT, "build", "npm");
31
31
 
32
- const VERSION = "0.13.1";
32
+ const VERSION = "0.13.2";
33
33
 
34
34
  function log(msg) {
35
35
  process.stdout.write(` ${msg}\n`);