@assemblyline-agents/margins 5.0.9 → 6.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/README.md +4 -15
- package/ai.assemblyline/connections/margins.json +74 -0
- package/ai.assemblyline/index.cjs +9 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +5 -3
- package/plugin.json +11 -0
package/README.md
CHANGED
|
@@ -20,8 +20,7 @@ returned rotating access and refresh credentials outside the model sandbox.
|
|
|
20
20
|
For self-hosted Margins, set `MARGINS_MCP_URL` and optionally
|
|
21
21
|
`MARGINS_ISSUER`. Configure stable collaborator identity with
|
|
22
22
|
`MARGINS_AGENT_ID`, `MARGINS_AGENT_NAME`, `MARGINS_AGENT_RUNTIME`, and
|
|
23
|
-
`MARGINS_AGENT_HARNESS
|
|
24
|
-
`defineMarginsConnection()`.
|
|
23
|
+
`MARGINS_AGENT_HARNESS`.
|
|
25
24
|
|
|
26
25
|
Margins confines every claimed agent id to its `agent_` namespace so a
|
|
27
26
|
binding can never claim a human `user_*` identity: a configured
|
|
@@ -30,19 +29,9 @@ and edits) as `agent_librarian`. The plugin validates the pairing response
|
|
|
30
29
|
against that namespaced form and stores the server-returned identity in the
|
|
31
30
|
credential.
|
|
32
31
|
|
|
33
|
-
The
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
Margins still enforces the packet's own scope and permission:
|
|
37
|
-
|
|
38
|
-
```ts
|
|
39
|
-
import { defineMarginsConnection } from "@assemblyline-agents/margins";
|
|
40
|
-
|
|
41
|
-
export default defineMarginsConnection({
|
|
42
|
-
agentId: "research-editor",
|
|
43
|
-
agentName: "Research Editor"
|
|
44
|
-
});
|
|
45
|
-
```
|
|
32
|
+
The selected plugin enables every reviewed Margins tool. Gate or remove named
|
|
33
|
+
actions through `plugins.margins.connections.margins.approval` or `disable`.
|
|
34
|
+
Margins still enforces the packet's own scope and permission.
|
|
46
35
|
|
|
47
36
|
Comments and suggestions are classified as writes because they mutate shared
|
|
48
37
|
workspace state. Margins applies its own permission check after Assembly Line's
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"kind": "margins",
|
|
3
|
+
"role": "connection",
|
|
4
|
+
"packageName": "@assemblyline-agents/margins",
|
|
5
|
+
"helper": "defineMarginsConnection",
|
|
6
|
+
"protocol": "mcp",
|
|
7
|
+
"transport": "http",
|
|
8
|
+
"provider": "margins",
|
|
9
|
+
"description": "Resource-scoped collaborative Markdown pages, folders, comments, suggestions, and conflict-safe edits through Margins.",
|
|
10
|
+
"defaultUrl": "https://margins.artificialillumination.co/mcp",
|
|
11
|
+
"urlEnv": "MARGINS_MCP_URL",
|
|
12
|
+
"capabilities": [
|
|
13
|
+
"mcp",
|
|
14
|
+
"host-side-pairing",
|
|
15
|
+
"rotating-bearer-grants",
|
|
16
|
+
"streamable-http",
|
|
17
|
+
"resource-scoped",
|
|
18
|
+
"collaborative-markdown",
|
|
19
|
+
"conflict-safe-writes"
|
|
20
|
+
],
|
|
21
|
+
"scopes": [
|
|
22
|
+
"margins"
|
|
23
|
+
],
|
|
24
|
+
"subject": "user",
|
|
25
|
+
"tools": {
|
|
26
|
+
"allow": [
|
|
27
|
+
"margins_status",
|
|
28
|
+
"margins_context",
|
|
29
|
+
"margins_review",
|
|
30
|
+
"margins_map",
|
|
31
|
+
"margins_graph",
|
|
32
|
+
"margins_create_file",
|
|
33
|
+
"margins_comment",
|
|
34
|
+
"margins_edit",
|
|
35
|
+
"margins_suggest",
|
|
36
|
+
"margins_history",
|
|
37
|
+
"margins_library"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"readToolPatterns": [
|
|
41
|
+
"margins_status",
|
|
42
|
+
"margins_context",
|
|
43
|
+
"margins_review",
|
|
44
|
+
"margins_map",
|
|
45
|
+
"margins_graph",
|
|
46
|
+
"margins_history",
|
|
47
|
+
"margins_library"
|
|
48
|
+
],
|
|
49
|
+
"writeToolPatterns": [
|
|
50
|
+
"margins_create_file",
|
|
51
|
+
"margins_comment",
|
|
52
|
+
"margins_edit",
|
|
53
|
+
"margins_suggest"
|
|
54
|
+
],
|
|
55
|
+
"setup": [
|
|
56
|
+
{
|
|
57
|
+
"kind": "connection",
|
|
58
|
+
"name": "margins-binding-packet",
|
|
59
|
+
"required": true,
|
|
60
|
+
"message": "In Margins, create an agent invite for the exact page, folder, or workspace and paste its short-lived one-time binding packet into the agent chat. No developer OAuth registration or long-lived token environment variable is required."
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"requiredConfig": [],
|
|
64
|
+
"optionalConfig": [
|
|
65
|
+
"MARGINS_MCP_URL",
|
|
66
|
+
"MARGINS_ISSUER",
|
|
67
|
+
"MARGINS_AGENT_ID",
|
|
68
|
+
"MARGINS_AGENT_NAME",
|
|
69
|
+
"MARGINS_AGENT_RUNTIME",
|
|
70
|
+
"MARGINS_AGENT_HARNESS"
|
|
71
|
+
],
|
|
72
|
+
"requiredCredentials": [],
|
|
73
|
+
"optionalCredentials": []
|
|
74
|
+
}
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAIL,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAChC,MAAM,2BAA2B,CAAC;AAKnC,MAAM,WAAW,wBAAyB,SAAQ,IAAI,CAAC,0BAA0B,EAAE,MAAM,CAAC;IACxF,wGAAwG;IACxG,IAAI,CAAC,EAAE,wBAAwB,GAAG,KAAK,CAAC;IACxC,wEAAwE;IACxE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sFAAsF;IACtF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gEAAgE;IAChE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0EAA0E;IAC1E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oEAAoE;IACpE,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,wBAAwB;sBAoB7C,wBAAwB;EAkBnD;AAED,eAAO,MAAM,kBAAkB,kDAA0C,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import connectionContract_margins from "../ai.assemblyline/connections/margins.json" with { type: "json" };
|
|
2
|
+
import { defineMcpPluginConnection, defineOAuthAuthorization, definePlugin } from "@assemblyline-agents/core";
|
|
2
3
|
import { createMarginsPairingRedeemer } from "./pairing.js";
|
|
3
|
-
const PLUGIN =
|
|
4
|
+
const PLUGIN = connectionContract_margins;
|
|
4
5
|
export function defineMarginsConnection(options) {
|
|
5
6
|
const { auth, issuer, agentId, agentName, agentRuntime, agentHarness, ...connection } = options;
|
|
6
7
|
const factory = defineMcpPluginConnection(PLUGIN, {
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,0BAA0B,MAAM,6CAA6C,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAC3G,OAAO,EACL,yBAAyB,EACzB,wBAAwB,EACxB,YAAY,EAIb,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,4BAA4B,EAAE,MAAM,cAAc,CAAC;AAE5D,MAAM,MAAM,GAAG,0BAAiE,CAAC;AAiBjF,MAAM,UAAU,uBAAuB,CAAC,OAAiC;IACvE,MAAM,EACJ,IAAI,EACJ,MAAM,EACN,OAAO,EACP,SAAS,EACT,YAAY,EACZ,YAAY,EACZ,GAAG,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
6
|
".": {
|
|
@@ -9,11 +9,13 @@
|
|
|
9
9
|
}
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@assemblyline-agents/core": "
|
|
12
|
+
"@assemblyline-agents/core": "6.0.0"
|
|
13
13
|
},
|
|
14
14
|
"description": "Official Assembly Line connection plugin for resource-scoped collaborative Markdown in Margins.",
|
|
15
15
|
"files": [
|
|
16
|
-
"dist"
|
|
16
|
+
"dist",
|
|
17
|
+
"plugin.json",
|
|
18
|
+
"ai.assemblyline"
|
|
17
19
|
],
|
|
18
20
|
"engines": {
|
|
19
21
|
"node": ">=22.19.0"
|
package/plugin.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
|
|
3
|
+
"name": "margins",
|
|
4
|
+
"version": "6.0.0",
|
|
5
|
+
"description": "Official Assembly Line connection plugin for resource-scoped collaborative Markdown in Margins.",
|
|
6
|
+
"extensions": {
|
|
7
|
+
"ai.assemblyline": {
|
|
8
|
+
"entry": "./ai.assemblyline/index.cjs"
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|