immune-brain 3.0.1 → 3.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "immune-brain",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "description": "Immune-Brain agent skill system",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "immune-brain",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "description": "Immune-Brain Claude Code Host: native Enrollment, QA, Review, and Kernel settlement.",
5
5
  "author": {
6
6
  "name": "Immune-Brain Team"
@@ -313,7 +313,7 @@ function parseIssues(raw: string): GithubIssue[] {
313
313
  || !Number.isSafeInteger(item.number)
314
314
  || typeof item.html_url !== "string"
315
315
  || typeof item.title !== "string"
316
- || typeof item.body !== "string"
316
+ || (typeof item.body !== "string" && item.body !== null)
317
317
  || (item.state !== "open" && item.state !== "closed")
318
318
  ) throw new Error("gh returned a malformed Issue");
319
319
  return {
@@ -321,7 +321,7 @@ function parseIssues(raw: string): GithubIssue[] {
321
321
  number: item.number as number,
322
322
  url: item.html_url,
323
323
  title: item.title,
324
- body: item.body,
324
+ body: typeof item.body === "string" ? item.body : "",
325
325
  state: item.state,
326
326
  state_reason: typeof item.state_reason === "string" ? item.state_reason.toLowerCase() : null,
327
327
  };