@sentry/junior-plugin-api 0.229.0 → 0.231.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 -2
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -23
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -164,5 +164,6 @@ and source update times without removing them from saved annotations.
|
|
|
164
164
|
The `afterMcpTool` hook can return `{ objectAnnotations }` after a successful
|
|
165
165
|
hosted tool call. Use `ctx.annotations.upsert` instead when facts must change
|
|
166
166
|
without selecting a reply card, such as a background webhook update. Only return
|
|
167
|
-
facts that can be shared with the current Conversation. Message
|
|
168
|
-
|
|
167
|
+
facts that can be shared with the current Conversation. Message cards reference
|
|
168
|
+
the latest saved annotation. Tool results remain immutable for agent history.
|
|
169
|
+
Neither cards nor annotations grant access to the provider.
|
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,8 @@ import { Command } from 'commander';
|
|
|
6
6
|
* Plugins select small facts from responses they already have. Each surface owns
|
|
7
7
|
* its layout. Omit unknown facts; do not infer approval or passing checks.
|
|
8
8
|
*
|
|
9
|
-
* Code changes show
|
|
9
|
+
* Code changes show branch, status, and a description preview.
|
|
10
|
+
* Tasks show ownership and planning context.
|
|
10
11
|
* Deployments show the target and revision. Automations show the trigger, state,
|
|
11
12
|
* and warning; their existing detail view owns instructions and run history.
|
|
12
13
|
* Other Items keep a title, source link, and optional status.
|
package/dist/index.js
CHANGED
|
@@ -48,30 +48,9 @@ function objectFactFields(facts) {
|
|
|
48
48
|
fields.push({ key, label, value: String(value) });
|
|
49
49
|
}
|
|
50
50
|
switch (facts.type) {
|
|
51
|
-
case "code_change":
|
|
52
|
-
|
|
53
|
-
required: "Review required",
|
|
54
|
-
approved: "Approved",
|
|
55
|
-
changes_requested: "Changes requested"
|
|
56
|
-
};
|
|
57
|
-
add("review", "Review", facts.review && review[facts.review]);
|
|
58
|
-
const checks = facts.checks;
|
|
59
|
-
add(
|
|
60
|
-
"checks",
|
|
61
|
-
"Checks",
|
|
62
|
-
checks && `${checks.failed} failed \xB7 ${checks.pending} pending \xB7 ${checks.passed} passed`
|
|
63
|
-
);
|
|
64
|
-
add("author", "Author", facts.author);
|
|
65
|
-
add("reviewers", "Requested reviewers", list(facts.reviewers));
|
|
66
|
-
add(
|
|
67
|
-
"mergeable",
|
|
68
|
-
"Conflicts",
|
|
69
|
-
facts.mergeable === void 0 ? void 0 : facts.mergeable ? "No conflicts" : "Has conflicts"
|
|
70
|
-
);
|
|
71
|
-
add("sourceBranch", "From", facts.sourceBranch);
|
|
72
|
-
add("targetBranch", "Into", facts.targetBranch);
|
|
51
|
+
case "code_change":
|
|
52
|
+
add("sourceBranch", "Branch", facts.sourceBranch);
|
|
73
53
|
break;
|
|
74
|
-
}
|
|
75
54
|
case "task":
|
|
76
55
|
add(
|
|
77
56
|
"assignees",
|