@assemblyline-agents/polar 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 +2 -2
- package/ai.assemblyline/connections/polar.json +62 -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
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Official Assembly Line Polar connection plugin.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
The selected plugin exposes reviewed billing and monetization tools through Polar's MCP server.
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
9
9
|
```sh
|
|
10
|
-
|
|
10
|
+
assembly-line add polar agent
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
## Part of Assembly Line
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"kind": "polar",
|
|
3
|
+
"role": "connection",
|
|
4
|
+
"packageName": "@assemblyline-agents/polar",
|
|
5
|
+
"helper": "definePolarConnection",
|
|
6
|
+
"protocol": "mcp",
|
|
7
|
+
"transport": "http",
|
|
8
|
+
"provider": "polar",
|
|
9
|
+
"description": "Polar workout and heart-rate tools through a developer-configured MCP server.",
|
|
10
|
+
"urlEnv": "POLAR_MCP_URL",
|
|
11
|
+
"tokenEnv": "POLAR_MCP_TOKEN",
|
|
12
|
+
"tokenRequired": true,
|
|
13
|
+
"capabilities": [
|
|
14
|
+
"mcp",
|
|
15
|
+
"live-tools",
|
|
16
|
+
"streamable-http"
|
|
17
|
+
],
|
|
18
|
+
"scopes": [],
|
|
19
|
+
"subject": "workspace",
|
|
20
|
+
"readToolPatterns": [
|
|
21
|
+
"regex:(^|[-_])(search|read|list|fetch|get|retrieve|query|lookup|find|describe|details?|discover)([-_]|$)"
|
|
22
|
+
],
|
|
23
|
+
"writeToolPatterns": [],
|
|
24
|
+
"eventCatalog": [
|
|
25
|
+
"EXERCISE",
|
|
26
|
+
"SLEEP",
|
|
27
|
+
"CONTINUOUS_HEART_RATE",
|
|
28
|
+
"SLEEP_WISE_CIRCADIAN_BEDTIME",
|
|
29
|
+
"SLEEP_WISE_ALERTNESS",
|
|
30
|
+
"ACTIVITY_SUMMARY",
|
|
31
|
+
"PHYSICAL_INFORMATION"
|
|
32
|
+
],
|
|
33
|
+
"defaultEvents": [
|
|
34
|
+
"EXERCISE",
|
|
35
|
+
"SLEEP",
|
|
36
|
+
"CONTINUOUS_HEART_RATE"
|
|
37
|
+
],
|
|
38
|
+
"eventMode": "api",
|
|
39
|
+
"eventScope": "connection",
|
|
40
|
+
"setup": [
|
|
41
|
+
{
|
|
42
|
+
"kind": "connection",
|
|
43
|
+
"name": "polar-developer-configuration",
|
|
44
|
+
"required": true,
|
|
45
|
+
"message": "Configure Polar credentials, OAuth application, or MCP bridge for this deployment."
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"requiredConfig": [
|
|
49
|
+
"POLAR_MCP_URL"
|
|
50
|
+
],
|
|
51
|
+
"optionalConfig": [],
|
|
52
|
+
"requiredCredentials": [
|
|
53
|
+
"POLAR_MCP_TOKEN"
|
|
54
|
+
],
|
|
55
|
+
"optionalCredentials": [],
|
|
56
|
+
"eventRequiredConfig": [
|
|
57
|
+
"POLAR_CLIENT_ID"
|
|
58
|
+
],
|
|
59
|
+
"eventRequiredCredentials": [
|
|
60
|
+
"POLAR_CLIENT_SECRET"
|
|
61
|
+
]
|
|
62
|
+
}
|
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,EAAyE,KAAK,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AAGnJ,MAAM,MAAM,sBAAsB,GAAG,0BAA0B,CAAC;AAChE,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,sBAAsB,0IAAiN;AACtR,eAAO,MAAM,kBAAkB,kDAA0C,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import connectionContract_polar from "../ai.assemblyline/connections/polar.json" with { type: "json" };
|
|
2
|
+
import { defineConnectionPluginEvents, defineMcpPluginConnection, definePlugin } from "@assemblyline-agents/core";
|
|
2
3
|
import { polarEvents } from "./events.js";
|
|
3
|
-
const PLUGIN =
|
|
4
|
+
const PLUGIN = connectionContract_polar;
|
|
4
5
|
export function definePolarConnection(options) { const definition = defineMcpPluginConnection(PLUGIN, options); const events = defineConnectionPluginEvents(PLUGIN, options.events, polarEvents); if (events)
|
|
5
6
|
definition.events = events; return definition; }
|
|
6
7
|
export const assemblyLinePlugin = definePlugin({ connections: [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,wBAAwB,MAAM,2CAA2C,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACvG,OAAO,EAAE,4BAA4B,EAAE,yBAAyB,EAAE,YAAY,EAAmC,MAAM,2BAA2B,CAAC;AACnJ,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,MAAM,MAAM,GAAG,wBAA+D,CAAC;AAE/E,MAAM,UAAU,qBAAqB,CAAC,OAA+B,IAAI,MAAM,UAAU,GAAG,yBAAyB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,MAAM,MAAM,GAAG,4BAA4B,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,IAAI,MAAM;IAAE,UAAU,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC;AACtR,MAAM,CAAC,MAAM,kBAAkB,GAAG,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@assemblyline-agents/polar",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
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 Polar connection plugin.",
|
|
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": "polar",
|
|
4
|
+
"version": "6.0.0",
|
|
5
|
+
"description": "Official Assembly Line Polar connection plugin.",
|
|
6
|
+
"extensions": {
|
|
7
|
+
"ai.assemblyline": {
|
|
8
|
+
"entry": "./ai.assemblyline/index.cjs"
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|