@meetopenbot/linear 0.0.5 → 0.0.7

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.
@@ -0,0 +1,4 @@
1
+ import type { Plugin } from '@meetopenbot/plugin-sdk';
2
+ declare const plugin: Plugin;
3
+ export { plugin };
4
+ export default plugin;
package/dist/index.js CHANGED
@@ -25,7 +25,7 @@ const linearPluginConfigSchema = {
25
25
  },
26
26
  apiKey: {
27
27
  type: "string",
28
- description: "Linear personal API key (Settings → Account → Security & Access → Personal API keys)",
28
+ description: "Linear personal API key — create one at [Settings → Account → Security & Access](https://linear.app/settings/account/security)",
29
29
  format: "password",
30
30
  },
31
31
  },
@@ -1,3 +1,4 @@
1
+ import { toolTraceWidget } from "@meetopenbot/plugin-sdk";
1
2
  import { generateText, stepCountIs } from "ai";
2
3
  import { createLinearMcpClient } from "./linear-mcp.js";
3
4
  import { throwMcpError } from "./mcp-errors.js";
@@ -22,14 +23,12 @@ function truncate(text) {
22
23
  return `${text.slice(0, TOOL_OUTPUT_MAX_LENGTH)}…`;
23
24
  }
24
25
  function toolCallWidget(args) {
25
- return {
26
- kind: "message",
27
- variant: "basic",
28
- display: "collapsed",
26
+ return toolTraceWidget({
29
27
  widgetId: args.widgetId,
28
+ groupId: "linear:tools",
30
29
  title: args.title,
31
- ...(args.body ? { body: args.body } : {}),
32
- };
30
+ body: args.body,
31
+ });
33
32
  }
34
33
  const SYSTEM_PROMPT = `You are the OpenBot Linear specialist agent. Help users search, read, create, and update Linear issues, projects, teams, comments, and documents.
35
34
 
package/package.json CHANGED
@@ -1,12 +1,16 @@
1
1
  {
2
2
  "name": "@meetopenbot/linear",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "description": "Linear MCP-backed specialist agent for OpenBot",
5
5
  "type": "module",
6
- "main": "dist/index.js",
7
- "types": "dist/index.d.ts",
6
+ "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
8
  "exports": {
9
- ".": "./dist/index.js"
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js",
12
+ "default": "./dist/index.js"
13
+ }
10
14
  },
11
15
  "publishConfig": {
12
16
  "access": "public"
@@ -14,17 +18,19 @@
14
18
  "files": [
15
19
  "dist"
16
20
  ],
17
- "scripts": {
18
- "build": "tsc"
19
- },
20
21
  "dependencies": {
21
22
  "@ai-sdk/mcp": "^2.0.14",
22
23
  "@ai-sdk/openai": "^4.0.15",
23
- "@meetopenbot/plugin-sdk": "^0.1.8",
24
- "ai": "^7.0.29"
24
+ "ai": "^7.0.29",
25
+ "@meetopenbot/plugin-sdk": "^0.2.0"
25
26
  },
26
27
  "devDependencies": {
27
28
  "@types/node": "^20.10.1",
28
29
  "typescript": "^5.9.3"
30
+ },
31
+ "scripts": {
32
+ "build": "tsc && node ../../scripts/write-plugin-declaration.mjs",
33
+ "dev": "tsc --watch --preserveWatchOutput",
34
+ "typecheck": "tsc --noEmit"
29
35
  }
30
- }
36
+ }