mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-19 00:52:10 -06:00
d8ebe85c24
* refactor(line): replace nine-marker prompt DSL with typed rich messages Delete the LINE plugin's double-bracket marker language (quick_replies, location, confirm, buttons, media_player, event, agenda, device, appletv_remote) and its parser. Portable interactions now flow through the existing presentation-block seam (renderPresentation, matching Discord and Feishu); LINE-specific cards ride closed channelData.line schemas mapped to the existing Flex renderers. Prompt section shrinks to four capability lines and explicitly de-fangs marker text. Removes the stale assertion-safety baseline entry for the deleted parser. Production LOC net -69, tests net -433. Suite: 510/510 green. * fix(line): declare rich message schema dependency * fix(line): satisfy rich message type checks * docs(line): mark card fragments as partial
127 lines
3.1 KiB
JSON
127 lines
3.1 KiB
JSON
{
|
|
"name": "@openclaw/line",
|
|
"version": "2026.8.1",
|
|
"description": "OpenClaw LINE channel plugin for LINE Bot API chats.",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/openclaw/openclaw"
|
|
},
|
|
"type": "module",
|
|
"dependencies": {
|
|
"@line/bot-sdk": "11.2.0",
|
|
"typebox": "1.3.6",
|
|
"zod": "4.4.3"
|
|
},
|
|
"devDependencies": {
|
|
"@openclaw/plugin-sdk": "workspace:*",
|
|
"openclaw": "workspace:*"
|
|
},
|
|
"peerDependencies": {
|
|
"openclaw": ">=2026.8.1"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"openclaw": {
|
|
"optional": true
|
|
}
|
|
},
|
|
"openclaw": {
|
|
"extensions": [
|
|
"./index.ts"
|
|
],
|
|
"setupEntry": "./setup-entry.ts",
|
|
"channel": {
|
|
"id": "line",
|
|
"configuredState": {
|
|
"env": {
|
|
"anyOf": [
|
|
"LINE_CHANNEL_ACCESS_TOKEN",
|
|
"LINE_CHANNEL_SECRET"
|
|
]
|
|
}
|
|
},
|
|
"label": "LINE",
|
|
"selectionLabel": "LINE (Messaging API)",
|
|
"detailLabel": "LINE Bot",
|
|
"docsPath": "/channels/line",
|
|
"docsLabel": "line",
|
|
"blurb": "LINE Messaging API webhook bot.",
|
|
"systemImage": "message",
|
|
"order": 75,
|
|
"quickstartAllowFrom": true,
|
|
"setup": {
|
|
"fields": [
|
|
{
|
|
"key": "channelAccessToken",
|
|
"kind": "string",
|
|
"sensitive": true,
|
|
"cli": {
|
|
"flags": "--channel-access-token <token>",
|
|
"description": "LINE channel access token"
|
|
}
|
|
},
|
|
{
|
|
"key": "token",
|
|
"kind": "string",
|
|
"sensitive": true,
|
|
"cli": {
|
|
"flags": "--token <token>",
|
|
"description": "LINE channel access token (alias)"
|
|
}
|
|
},
|
|
{
|
|
"key": "channelSecret",
|
|
"kind": "string",
|
|
"sensitive": true,
|
|
"cli": {
|
|
"flags": "--channel-secret <secret>",
|
|
"description": "LINE channel secret"
|
|
}
|
|
},
|
|
{
|
|
"key": "tokenFile",
|
|
"kind": "string",
|
|
"sensitive": true,
|
|
"cli": {
|
|
"flags": "--token-file <path>",
|
|
"description": "LINE access token file"
|
|
}
|
|
},
|
|
{
|
|
"key": "secretFile",
|
|
"kind": "string",
|
|
"sensitive": true,
|
|
"cli": {
|
|
"flags": "--secret-file <path>",
|
|
"description": "LINE channel secret file"
|
|
}
|
|
},
|
|
{
|
|
"key": "useEnv",
|
|
"kind": "boolean",
|
|
"cli": {
|
|
"flags": "--use-env",
|
|
"description": "Use LINE environment credentials"
|
|
},
|
|
"envVars": ["LINE_CHANNEL_ACCESS_TOKEN", "LINE_CHANNEL_SECRET"]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"install": {
|
|
"npmSpec": "@openclaw/line",
|
|
"defaultChoice": "npm",
|
|
"minHostVersion": ">=2026.4.10"
|
|
},
|
|
"compat": {
|
|
"pluginApi": ">=2026.8.1"
|
|
},
|
|
"build": {
|
|
"openclawVersion": "2026.8.1"
|
|
},
|
|
"release": {
|
|
"publishToClawHub": true,
|
|
"publishToNpm": true
|
|
}
|
|
}
|
|
}
|