@sentry/junior-plugin-api 0.226.0 → 0.227.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/README.md +3 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -158,6 +158,9 @@ a verified HTTP(S) `url` (or null), and an `objectType`: `task`, `code_change`,
|
|
|
158
158
|
use `trigger` and `warning`. Do not send Slack layout JSON or infer facts that
|
|
159
159
|
the provider did not return.
|
|
160
160
|
|
|
161
|
+
Show at most four fact attributes plus status. Hide code-change size counts
|
|
162
|
+
and source update times without removing them from saved annotations.
|
|
163
|
+
|
|
161
164
|
The `afterMcpTool` hook can return `{ objectAnnotations }` after a successful
|
|
162
165
|
hosted tool call. Use `ctx.annotations.upsert` instead when facts must change
|
|
163
166
|
without selecting a reply card, such as a background webhook update. Only return
|
package/dist/index.d.ts
CHANGED
|
@@ -169,7 +169,7 @@ type ObjectField = {
|
|
|
169
169
|
label: string;
|
|
170
170
|
value: string;
|
|
171
171
|
};
|
|
172
|
-
/**
|
|
172
|
+
/** Show at most four card attributes, in priority order, on every surface. */
|
|
173
173
|
declare function objectFactFields(facts: ObjectFacts | undefined): ObjectField[];
|
|
174
174
|
|
|
175
175
|
/** Exact non-blank actor user id that rejects the sentinel "unknown". */
|
package/dist/index.js
CHANGED
|
@@ -70,9 +70,6 @@ function objectFactFields(facts) {
|
|
|
70
70
|
);
|
|
71
71
|
add("sourceBranch", "From", facts.sourceBranch);
|
|
72
72
|
add("targetBranch", "Into", facts.targetBranch);
|
|
73
|
-
add("changedFiles", "Files changed", facts.changedFiles);
|
|
74
|
-
add("additions", "Lines added", facts.additions);
|
|
75
|
-
add("deletions", "Lines removed", facts.deletions);
|
|
76
73
|
break;
|
|
77
74
|
}
|
|
78
75
|
case "task":
|
|
@@ -94,7 +91,7 @@ function objectFactFields(facts) {
|
|
|
94
91
|
add("branch", "Branch", facts.branch);
|
|
95
92
|
break;
|
|
96
93
|
}
|
|
97
|
-
return fields;
|
|
94
|
+
return fields.slice(0, 4);
|
|
98
95
|
}
|
|
99
96
|
|
|
100
97
|
// src/object-annotations.ts
|