@sentry/junior-linear 0.306.0 → 0.307.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/dist/index.d.ts CHANGED
@@ -1,3 +1,13 @@
1
1
  import { PluginRegistration } from "@sentry/junior-plugin-api";
2
+ /** Install options for the Linear plugin. */
3
+ interface LinearPluginOptions {
4
+ /**
5
+ * Facts for action review about where Linear writes go. For example, say
6
+ * which teams sync issues to public GitHub repositories. Only Guardian reads
7
+ * it.
8
+ */
9
+ reviewContext?: string;
10
+ }
2
11
  /** Register Linear's hosted MCP provider and conversation-link side effects. */
3
- export declare function linearPlugin(): PluginRegistration;
12
+ export declare function linearPlugin(options?: LinearPluginOptions): PluginRegistration;
13
+ export type { LinearPluginOptions };
package/dist/index.js CHANGED
@@ -289,7 +289,7 @@ async function annotateSavedIssue(ctx) {
289
289
  }] };
290
290
  }
291
291
  /** Register Linear's hosted MCP provider and conversation-link side effects. */
292
- function linearPlugin() {
292
+ function linearPlugin(options = {}) {
293
293
  return defineJuniorPlugin({
294
294
  packageName: "@sentry/junior-linear",
295
295
  events: {
@@ -318,7 +318,8 @@ function linearPlugin() {
318
318
  transport: "http",
319
319
  url: "https://mcp.linear.app/mcp"
320
320
  },
321
- name: "linear"
321
+ name: "linear",
322
+ ...options.reviewContext ? { reviewContext: options.reviewContext } : void 0
322
323
  },
323
324
  hooks: {
324
325
  afterMcpTool: annotateSavedIssue,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior-linear",
3
- "version": "0.306.0",
3
+ "version": "0.307.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -22,7 +22,7 @@
22
22
  "skills"
23
23
  ],
24
24
  "dependencies": {
25
- "@sentry/junior-plugin-api": "0.306.0",
25
+ "@sentry/junior-plugin-api": "0.307.0",
26
26
  "zod": "^4.6.7"
27
27
  },
28
28
  "devDependencies": {
@@ -47,9 +47,9 @@ Classify the work as `bug`, `feature`, or `task`. Shape the title and body per [
47
47
  - Compress source material. Research notes, hypotheses, or transcripts become a short summary + scoped bullets — never paste raw investigation into the body.
48
48
  - Do not add desired outcome, expected behavior, acceptance criteria, fixes, implementation steps, approaches, or options unless the user explicitly asks to preserve a specific proposal.
49
49
  - Never infer a solution from research. If a user-provided proposal must be preserved, attribute it as a proposal and keep it separate from verified diagnosis.
50
- - When the request originated from a Slack thread or any on-behalf-of context, append a final line `Action taken on behalf of <name>.` using the action actor's real name. The action actor is the current `<actor>` or the person who explicitly asked you to create/update the issue, not necessarily the original reporter.
50
+ - End the body with the line `Action taken by Junior.` Linear records the person who asked as the creator, so do not name them in this line.
51
51
 
52
- Attribute the reporter by name when clear from the thread (e.g. "Raised by Alice during incident triage"). If the reporter differs from the action actor, keep them separate with durable body text such as `Reported by Alice.` — do not reference Slack channels, threads, or conversation internals. Attach screenshots from the thread as image links when present. Preserve relevant URLs (Sentry, GitHub, docs, repro links) inline — do not dump a link list.
52
+ Name the reporter only when the person who reported or observed the problem differs from the person who asked. Use durable body text such as `Reported by Alice.` or `Raised by Alice during incident triage.` Do not name the person who asked: Linear shows them as the creator. Do not reference Slack channels, threads, or conversation internals. Attach screenshots from the thread as image links when present. Preserve relevant URLs (Sentry, GitHub, docs, repro links) inline — do not dump a link list.
53
53
 
54
54
  4. Set optional Linear fields literally:
55
55
 
@@ -60,7 +60,7 @@ Attribute the reporter by name when clear from the thread (e.g. "Raised by Alice
60
60
  5. Verify draft before mutating:
61
61
 
62
62
  - Title length ≤ 60 characters.
63
- - Delegated-action footer is the last line when applicable, using the action actor's real name, not the reporter's name unless they are the same person.
63
+ - `Action taken by Junior.` is the last line.
64
64
  - No session framing remains (channel refs, slash commands, @mentions, Slack thread IDs).
65
65
  - Body structure matches complexity — no empty sections, no restated title, no raw research dump.
66
66
  - No invented or unattributed solution, implementation step, approach, or option appears in the title or body.
@@ -14,7 +14,7 @@ Good body (flat bullets, no headings):
14
14
  > - Proxy logs show `payload_too_large` but no alert fires
15
15
  > - Reported by the oncall engineer during weekend incident
16
16
  >
17
- > Action taken on behalf of Alice.
17
+ > Action taken by Junior.
18
18
 
19
19
  Bad body (over-structured for a simple bug):
20
20
 
@@ -44,7 +44,7 @@ Good body:
44
44
  >
45
45
  > - Flagged by Bob during PR #312 review
46
46
  >
47
- > Action taken on behalf of Bob.
47
+ > Action taken by Junior.
48
48
 
49
49
  Bad title: "Clean up some auth code"
50
50
 
@@ -60,9 +60,9 @@ Good body:
60
60
  >
61
61
  > Requested by the platform team after repeated incident delays.
62
62
  >
63
- > Action taken on behalf of Carol.
63
+ > Action taken by Junior.
64
64
 
65
- ## Distinct reporter/actor
65
+ ## Distinct reporter/requester
66
66
 
67
67
  Good body:
68
68
 
@@ -74,7 +74,7 @@ Good body:
74
74
  > - The related PR remained blocked
75
75
  > - No evidence in the thread showed that the underlying condition had cleared
76
76
  >
77
- > Action taken on behalf of David Cramer.
77
+ > Action taken by Junior.
78
78
 
79
79
  ## Anti-patterns
80
80
 
@@ -84,4 +84,4 @@ Good body:
84
84
  - Inventing fixes, implementation steps, approaches, or options, even when diagnosis is strong
85
85
  - Mixing user-provided proposals into verified diagnosis without attribution
86
86
  - Dumping a list of URLs without inline context
87
- - Conflating the reporter with the action actor when they differ
87
+ - Conflating the reporter with the person who asked when they differ
@@ -1,6 +1,6 @@
1
1
  # Issue Writing
2
2
 
3
- Load when creating a new Linear issue or substantially rewriting one. Cross-type rules (title length, delegated footer, generalization, compression) live in `SKILL.md` § Draft issue content — this file covers classification, title phrasing, and Linear-specific fields only.
3
+ Load when creating a new Linear issue or substantially rewriting one. Cross-type rules (title length, Junior footer, generalization, compression) live in `SKILL.md` § Draft issue content — this file covers classification, title phrasing, and Linear-specific fields only.
4
4
 
5
5
  ## Classify the work item
6
6