@weavetab/plugin-github 1.0.0 → 1.0.1
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 +4 -4
- package/dist/index.js +3 -3
- package/package.json +1 -1
- package/weavetab.json +3 -3
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
GitHub support ships as an official plugin rather than a built-in tool: the core server stays lean
|
|
16
16
|
at **41 built-in tools**, and GitHub is delivered as the **independently versioned**
|
|
17
17
|
`@weavetab/plugin-github` package that can be installed, updated and removed like any other plugin.
|
|
18
|
-
It registers a single `
|
|
18
|
+
It registers a single `plugin_github` tool (actions: `analyze`, `read`, `issues`, `pr`).
|
|
19
19
|
|
|
20
20
|
All GitHub data is fetched directly over HTTP (`api.github.com` / `raw.githubusercontent.com`),
|
|
21
21
|
so the active browser tab is **never navigated or mutated** and no browser turns are consumed.
|
|
@@ -33,7 +33,7 @@ Because the package name starts with `@weavetab/plugin-`, it is automatically tr
|
|
|
33
33
|
|
|
34
34
|
Restart the Weavetab MCP server to activate the tool.
|
|
35
35
|
|
|
36
|
-
## The `
|
|
36
|
+
## The `plugin_github` tool
|
|
37
37
|
|
|
38
38
|
A single, well-organized action-dispatch tool.
|
|
39
39
|
|
|
@@ -100,7 +100,7 @@ Written to `~/.weavetab/plugins/@weavetab_plugin-github/config.json` on first lo
|
|
|
100
100
|
| `config.read` / `config.write` | Read and persist isolated plugin settings. |
|
|
101
101
|
| `cdp.evaluate` | Read the active tab URL **only**, to infer the target repo when `repo` is omitted. |
|
|
102
102
|
| `network: api.github.com`, `raw.githubusercontent.com`, `github.com` | Fetch public repo data over HTTP. |
|
|
103
|
-
| `tools.add` | Register the single `
|
|
103
|
+
| `tools.add` | Register the single `plugin_github` tool. |
|
|
104
104
|
|
|
105
105
|
No filesystem access beyond the plugin's own sandbox, no HUD/overlay injection, no tab mutation.
|
|
106
106
|
|
|
@@ -117,7 +117,7 @@ npm run dev # tsc --watch
|
|
|
117
117
|
|
|
118
118
|
```text
|
|
119
119
|
plugin-github/
|
|
120
|
-
├── src/index.ts # definePlugin + registerTool("
|
|
120
|
+
├── src/index.ts # definePlugin + registerTool("plugin_github")
|
|
121
121
|
├── src/github.ts # action dispatcher
|
|
122
122
|
├── src/{analyze,read,issues,pr}.ts
|
|
123
123
|
├── src/{repoContext,cache,rateLimiter,types}.ts
|
package/dist/index.js
CHANGED
|
@@ -26,7 +26,7 @@ function positiveInt(value, fallback) {
|
|
|
26
26
|
}
|
|
27
27
|
export const githubPlugin = definePlugin({
|
|
28
28
|
name: "@weavetab/plugin-github",
|
|
29
|
-
version: "1.0.
|
|
29
|
+
version: "1.0.1",
|
|
30
30
|
description: "Official Weavetab GitHub plugin — analyze repositories, read raw source, inspect issues and pull requests over the GitHub API.",
|
|
31
31
|
defaultConfig: {
|
|
32
32
|
cacheTtlMs: DEFAULT_CACHE_TTL_MS,
|
|
@@ -38,7 +38,7 @@ export const githubPlugin = definePlugin({
|
|
|
38
38
|
const maxReadLines = positiveInt(ctx.config?.maxReadLines, DEFAULT_MAX_READ_LINES);
|
|
39
39
|
const defaultIssueLimit = positiveInt(ctx.config?.defaultIssueLimit, DEFAULT_ISSUE_LIMIT);
|
|
40
40
|
ctx.mcp.registerTool(defineTool({
|
|
41
|
-
name: "
|
|
41
|
+
name: "plugin_github",
|
|
42
42
|
description: TOOL_DESCRIPTION,
|
|
43
43
|
requiresSession: false,
|
|
44
44
|
schema: {
|
|
@@ -89,7 +89,7 @@ export const githubPlugin = definePlugin({
|
|
|
89
89
|
};
|
|
90
90
|
},
|
|
91
91
|
}));
|
|
92
|
-
ctx.logger?.info(`@weavetab/plugin-github ready — tool "
|
|
92
|
+
ctx.logger?.info(`@weavetab/plugin-github ready — tool "plugin_github" registered (cacheTtlMs=${cacheTtlMs}, maxReadLines=${maxReadLines}, defaultIssueLimit=${defaultIssueLimit}).`);
|
|
93
93
|
},
|
|
94
94
|
async onUnload(ctx) {
|
|
95
95
|
ctx.logger?.info("@weavetab/plugin-github unloaded.");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weavetab/plugin-github",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Official Weavetab GitHub plugin - analyze repository structure, read raw source files, search and inspect issues, and examine pull requests over the GitHub API without burning browser turns.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
package/weavetab.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://weavetab.dev/schema/plugin.json",
|
|
3
3
|
"name": "@weavetab/plugin-github",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.1",
|
|
5
5
|
"description": "Official Weavetab GitHub plugin. Analyze repository structure, read raw source files, search and inspect issues, and examine pull requests over the public GitHub REST API — fetched directly over HTTP, so no browser turns are consumed.",
|
|
6
6
|
"entry": "dist/index.js",
|
|
7
7
|
"engines": {
|
|
@@ -55,12 +55,12 @@
|
|
|
55
55
|
},
|
|
56
56
|
"tools": {
|
|
57
57
|
"add": true,
|
|
58
|
-
"reason": "Registers the single '
|
|
58
|
+
"reason": "Registers the single 'plugin_github' MCP tool."
|
|
59
59
|
}
|
|
60
60
|
},
|
|
61
61
|
"tools": [
|
|
62
62
|
{
|
|
63
|
-
"name": "
|
|
63
|
+
"name": "plugin_github",
|
|
64
64
|
"description": "Interact with GitHub repositories without burning browser turns. Analyze a repo's file tree and README, read raw source files, list/search/inspect issues, and examine pull request details, changed files and comments — all fetched over the GitHub REST API.",
|
|
65
65
|
"inputSchema": {
|
|
66
66
|
"type": "object",
|