@trim21/personal-pi-extensions 0.1.688 → 0.1.689

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": "@trim21/personal-pi-extensions",
3
- "version": "0.1.688",
3
+ "version": "0.1.689",
4
4
  "type": "module",
5
5
  "description": "Custom pi coding-agent extensions: bwrap sandbox, workspace guard, opencode edit, and more",
6
6
  "keywords": [
package/src/gh/schemas.ts CHANGED
@@ -16,14 +16,16 @@ import { Type } from "typebox";
16
16
  /** GitHub 的 actor(author / assignee / mergedBy / review 作者)。 */
17
17
  export const ghActorSchema = Type.Object({
18
18
  login: Type.Optional(Type.String()),
19
- name: Type.Optional(Type.String()),
19
+ // `user.name` 是 `string | null`:没有显示名的账号返回 null
20
+ name: Type.Optional(Type.Union([Type.String(), Type.Null()])),
20
21
  is_bot: Type.Optional(Type.Boolean()),
21
22
  });
22
23
 
23
24
  export const ghLabelSchema = Type.Object({
24
25
  name: Type.String(),
25
26
  color: Type.Optional(Type.String()),
26
- description: Type.Optional(Type.String()),
27
+ // 没有描述的 label 是 `"description": null`(不是缺字段),所以既要 optional 也要 nullable
28
+ description: Type.Optional(Type.Union([Type.String(), Type.Null()])),
27
29
  });
28
30
 
29
31
  export const ghMilestoneSchema = Type.Object({