@assemblyline-agents/treg 3.0.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/LICENSE +21 -0
- package/README.md +62 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -0
- package/package.json +49 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Assembly Line contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# @assemblyline-agents/treg
|
|
2
|
+
|
|
3
|
+
Official Assembly Line connection plugin for Treg's hosted tool-catalog MCP
|
|
4
|
+
server. The connection exposes a small reviewed discovery and calling surface;
|
|
5
|
+
Treg's provider catalog remains remote data rather than thousands of static
|
|
6
|
+
tool schemas in the agent prompt.
|
|
7
|
+
|
|
8
|
+
## Install and configure
|
|
9
|
+
|
|
10
|
+
```sh
|
|
11
|
+
assembly-line add treg agent
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
This creates `connections/treg.ts`:
|
|
15
|
+
|
|
16
|
+
```ts
|
|
17
|
+
import { defineTregConnection } from "@assemblyline-agents/treg";
|
|
18
|
+
|
|
19
|
+
export default defineTregConnection({
|
|
20
|
+
// Reviewed tools are enabled by default.
|
|
21
|
+
});
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Create an organization-scoped or agent token in Treg, then set it on the
|
|
25
|
+
Assembly Line runtime:
|
|
26
|
+
|
|
27
|
+
```sh
|
|
28
|
+
TREG_TOKEN=your_treg_token
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
The connection uses `https://treg.to/mcp/` by default. Set `TREG_MCP_URL` to
|
|
32
|
+
the MCP endpoint of a self-hosted registry.
|
|
33
|
+
|
|
34
|
+
## Reviewed tools
|
|
35
|
+
|
|
36
|
+
The plugin allows these Treg MCP tools:
|
|
37
|
+
|
|
38
|
+
- `catalog_search`, `catalog_get`, `balance`, and `my_tools` are reads.
|
|
39
|
+
- `catalog_request` is a write because it files a request in Treg.
|
|
40
|
+
- `call` is a write because it can spend prepaid balance or relay a mutating
|
|
41
|
+
request to an upstream service.
|
|
42
|
+
|
|
43
|
+
New upstream tools remain hidden until the plugin reviews and classifies them.
|
|
44
|
+
|
|
45
|
+
Require approval for both reviewed writes when the agent should not spend or
|
|
46
|
+
invoke upstream actions autonomously:
|
|
47
|
+
|
|
48
|
+
```ts
|
|
49
|
+
export default defineTregConnection({ access: "approval-required" });
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Use `access: "read-only"` to permit catalog and inventory inspection without
|
|
53
|
+
calls or tool requests.
|
|
54
|
+
|
|
55
|
+
Official references:
|
|
56
|
+
|
|
57
|
+
- [Treg agent reference](https://treg.to/llms.txt)
|
|
58
|
+
- [Treg source repository](https://github.com/superdesigndev/treg)
|
|
59
|
+
|
|
60
|
+
## License
|
|
61
|
+
|
|
62
|
+
MIT
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type McpPluginConnectionOptions } from "@assemblyline-agents/core";
|
|
2
|
+
export type TregConnectionOptions = McpPluginConnectionOptions;
|
|
3
|
+
export declare function defineTregConnection(options: TregConnectionOptions): import("@assemblyline-agents/core").McpHttpClientConnectionDefinition;
|
|
4
|
+
export declare const assemblyLinePlugin: import("@assemblyline-agents/core").PluginModule;
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,0BAA0B,EAChC,MAAM,2BAA2B,CAAC;AAInC,MAAM,MAAM,qBAAqB,GAAG,0BAA0B,CAAC;AAE/D,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,qBAAqB,yEAElE;AAED,eAAO,MAAM,kBAAkB,kDAA0C,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { connectionPluginMetadata, defineMcpPluginConnection, definePlugin } from "@assemblyline-agents/core";
|
|
2
|
+
const PLUGIN = connectionPluginMetadata("treg");
|
|
3
|
+
export function defineTregConnection(options) {
|
|
4
|
+
return defineMcpPluginConnection(PLUGIN, options);
|
|
5
|
+
}
|
|
6
|
+
export const assemblyLinePlugin = definePlugin({ connections: [PLUGIN] });
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,yBAAyB,EACzB,YAAY,EAEb,MAAM,2BAA2B,CAAC;AAEnC,MAAM,MAAM,GAAG,wBAAwB,CAAC,MAAM,CAAE,CAAC;AAIjD,MAAM,UAAU,oBAAoB,CAAC,OAA8B;IACjE,OAAO,yBAAyB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACpD,CAAC;AAED,MAAM,CAAC,MAAM,kBAAkB,GAAG,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@assemblyline-agents/treg",
|
|
3
|
+
"version": "3.0.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"exports": {
|
|
6
|
+
".": {
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"default": "./dist/index.js"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"@assemblyline-agents/core": "3.0.0"
|
|
13
|
+
},
|
|
14
|
+
"description": "Official Assembly Line connection plugin for Treg's hosted tool-catalog MCP server.",
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"engines": {
|
|
19
|
+
"node": ">=22.19.0"
|
|
20
|
+
},
|
|
21
|
+
"license": "MIT",
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "git+https://github.com/jasonbadeaux/assembly-line.git",
|
|
25
|
+
"directory": "packages/treg"
|
|
26
|
+
},
|
|
27
|
+
"bugs": {
|
|
28
|
+
"url": "https://github.com/jasonbadeaux/assembly-line/issues"
|
|
29
|
+
},
|
|
30
|
+
"homepage": "https://github.com/jasonbadeaux/assembly-line#readme",
|
|
31
|
+
"author": "Assembly Line contributors",
|
|
32
|
+
"keywords": [
|
|
33
|
+
"assembly-line",
|
|
34
|
+
"ai",
|
|
35
|
+
"agents",
|
|
36
|
+
"treg",
|
|
37
|
+
"tool-catalog",
|
|
38
|
+
"mcp",
|
|
39
|
+
"connection",
|
|
40
|
+
"plugin"
|
|
41
|
+
],
|
|
42
|
+
"publishConfig": {
|
|
43
|
+
"access": "public"
|
|
44
|
+
},
|
|
45
|
+
"scripts": {
|
|
46
|
+
"build": "tsc -p tsconfig.json",
|
|
47
|
+
"check": "tsc -p tsconfig.json --noEmit"
|
|
48
|
+
}
|
|
49
|
+
}
|