@inline-openclaw/inline 0.0.45 → 0.0.47
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 +43 -9
- package/dist/account-inspect-api.js +4 -1
- package/dist/account-inspect-api.js.map +3 -3
- package/dist/approval-handler.runtime.js +5471 -880
- package/dist/approval-handler.runtime.js.map +15 -14
- package/dist/channel-plugin-api.js +6583 -1185
- package/dist/channel-plugin-api.js.map +19 -18
- package/dist/inline/actions.d.ts +7 -3
- package/dist/inline/actions.d.ts.map +1 -1
- package/dist/inline/approval-handler.runtime.d.ts +1 -0
- package/dist/inline/approval-handler.runtime.d.ts.map +1 -1
- package/dist/inline/bot-avatar-tool.d.ts +12 -0
- package/dist/inline/bot-avatar-tool.d.ts.map +1 -0
- package/dist/inline/bot-commands-sync.d.ts.map +1 -1
- package/dist/inline/channel.d.ts.map +1 -1
- package/dist/inline/config-schema.d.ts +21 -0
- package/dist/inline/config-schema.d.ts.map +1 -1
- package/dist/inline/media.d.ts +17 -0
- package/dist/inline/media.d.ts.map +1 -1
- package/dist/inline/members-tool.d.ts +2 -0
- package/dist/inline/members-tool.d.ts.map +1 -1
- package/dist/inline/message-content.d.ts +7 -1
- package/dist/inline/message-content.d.ts.map +1 -1
- package/dist/inline/message-formatting.d.ts +18 -0
- package/dist/inline/message-formatting.d.ts.map +1 -1
- package/dist/inline/message-tools.d.ts.map +1 -1
- package/dist/inline/monitor.d.ts.map +1 -1
- package/dist/inline/outbound-sanitize.d.ts +2 -0
- package/dist/inline/outbound-sanitize.d.ts.map +1 -1
- package/dist/inline/parent-context-tool.d.ts.map +1 -1
- package/dist/inline/thread-freshness.d.ts +24 -0
- package/dist/inline/thread-freshness.d.ts.map +1 -0
- package/dist/inline/thread-routes.d.ts +4 -0
- package/dist/inline/thread-routes.d.ts.map +1 -1
- package/dist/runtime-register-api.d.ts.map +1 -1
- package/dist/runtime-register-api.js +3314 -418
- package/dist/runtime-register-api.js.map +16 -15
- package/dist/setup-plugin-api.js +4 -1
- package/dist/setup-plugin-api.js.map +3 -3
- package/openclaw.plugin.json +26 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,15 +14,20 @@ Supports:
|
|
|
14
14
|
- Message replies: OpenClaw `replyToId` is mapped to Inline `replyToMsgId` (message id).
|
|
15
15
|
- Inline reply threads: tools can create and reply in real Inline reply-thread chats.
|
|
16
16
|
- Inline media upload/send for images, videos, and documents from `mediaUrl` payloads.
|
|
17
|
+
- Native-style file upload action via `upload-file`.
|
|
18
|
+
- Native-style file download action via `download-file`.
|
|
19
|
+
- Inline message forwarding via `forward`/`forwardMessages` message tool actions.
|
|
20
|
+
- Inline compose indicators via `typing`, `stop-typing`, upload-state actions, and `recording-voice`.
|
|
17
21
|
- Emoji reactions via message tool actions (`react`, `reactions`).
|
|
18
22
|
- Reaction events on bot-authored messages are surfaced back to the agent as inbound context.
|
|
19
23
|
|
|
20
24
|
Reply-thread behavior:
|
|
21
25
|
|
|
22
26
|
- Small/new parent-chat conversations stay in the parent chat by default.
|
|
27
|
+
- `replyThreadMode: "auto"` also creates a child reply thread when the triggering parent-chat message explicitly asks OpenClaw to reply in a thread.
|
|
23
28
|
- `replyThreadMode: "thread"` opts a parent chat into automatic reply-thread delivery once `replyThreadAutoCreateMinMessages` is reached; each triggering parent-chat message gets its own child reply thread.
|
|
24
29
|
- `replyThreadMode: "main"` keeps automatic replies in the parent chat, while explicit `thread-create` and `thread-reply` tools remain available.
|
|
25
|
-
- `thread-create` creates a real Inline reply thread. `thread-reply` sends into the child reply-thread chat id returned by
|
|
30
|
+
- `thread-create` creates a top-level Inline thread when called with participants or `spaceId`, and creates a real Inline reply thread when called with a parent chat target or anchor. `thread-reply` sends into the child reply-thread chat id returned by reply-thread creation.
|
|
26
31
|
- Inbound reply-thread messages use the parent chat as the base conversation target and the child reply-thread chat id as `MessageThreadId`.
|
|
27
32
|
- Bot-participated reply threads can continue without an explicit bot mention by default, matching Slack-style thread behavior.
|
|
28
33
|
|
|
@@ -146,6 +151,8 @@ channels:
|
|
|
146
151
|
|
|
147
152
|
# Streaming + chunking:
|
|
148
153
|
mediaMaxMb: 20
|
|
154
|
+
debounceMs: 1200 # optional: coalesce rapid same-sender Inline messages; global alternative: messages.inbound.byChannel.inline
|
|
155
|
+
voiceTranscriptWaitMs: 8000 # wait for Inline's voice auto-transcript edit before falling back to audio STT; set 0 to disable
|
|
149
156
|
blockStreaming: true
|
|
150
157
|
streamViaEditMessage: true # optional: paragraph-level text streaming via send+edit fallback; off by default
|
|
151
158
|
chunkMode: "newline" # length|newline
|
|
@@ -222,21 +229,35 @@ The plugin exposes Inline RPC-backed actions through OpenClaw's `message` tool.
|
|
|
222
229
|
Most Inline RPC-backed actions use a numeric chat id via `to`, `chatId`, or `channelId`.
|
|
223
230
|
Direct DM sends can also target `user:<id>`.
|
|
224
231
|
|
|
225
|
-
- Sending: `send`, `sendAttachment`
|
|
232
|
+
- Sending: `send`, `sendAttachment`, `upload-file`, `forward`, `forwardMessages`
|
|
226
233
|
- Replying: `reply`, `thread-reply`
|
|
227
234
|
- Reactions: `react`, `reactions`
|
|
228
|
-
- Reading/searching: `read`, `search`
|
|
235
|
+
- Reading/searching/translating: `read`, `get-messages`, `getMessages`, `download-file`, `bot-commands`, `botCommands`, `peer-bot-commands`, `peerBotCommands`, `search`, `translate`, `translateMessages`
|
|
229
236
|
- Editing: `edit`
|
|
230
237
|
- Channels/threads: `channel-info`, `channel-edit`, `renameGroup`, `channel-list`, `channel-create`, `channel-delete`, `channel-move`, `thread-list`, `thread-create`
|
|
231
|
-
- Participants: `addParticipant`, `removeParticipant`, `kick`, `leaveGroup`, `member-info`
|
|
232
|
-
- Message lifecycle: `delete`, `unsend`
|
|
233
|
-
-
|
|
238
|
+
- Participants: `addParticipant`, `removeParticipant`, `kick`, `leaveGroup`, `member-info`, `invite-to-space`, `inviteToSpace`
|
|
239
|
+
- Message lifecycle: `delete`, `unsend`, `delete-attachment`, `deleteMessageAttachment`
|
|
240
|
+
- Message pins: `pin`, `unpin`, `list-pins`
|
|
234
241
|
- Space permissions: `permissions`
|
|
235
242
|
|
|
236
243
|
Inline reply-thread semantics:
|
|
237
244
|
|
|
245
|
+
- `read` supports latest reads plus `before`/`offsetId` for older history, `after` for newer history, and `messageId`/`anchorId` for around-window reads. In reply-thread turns it defaults to the current reply-thread chat when `to`/`chatId`/`threadId` is omitted.
|
|
246
|
+
- `get-messages`/`getMessages` fetches exact message ids from a target chat/user/reply thread and returns the same media-aware payloads as `read`/`search`.
|
|
247
|
+
- `download-file` downloads Inline message media or URL-preview images to a local temp path. Pass `mediaUrl`/`url` directly, or pass `messageId` with optional `mediaId`/`attachmentId`; inside an Inline turn it defaults to the current chat/thread and current message.
|
|
248
|
+
- `peer-bot-commands`/`bot-commands` reads Inline bot commands available in a target chat/user/reply thread. In reply-thread turns it can inspect inherited parent-chat bot commands.
|
|
249
|
+
- `channel-edit` can rename (`title`/`name`/`threadName`), update `emoji`, and change space-thread visibility with `isPublic` or `visibility: "public"|"private"`. Private visibility changes require `participant`/`participants`.
|
|
250
|
+
- `upload-file` is the native OpenClaw alias for `sendAttachment`; use `filePath`, `path`, `media`, `mediaUrl`, or `url` for the file/media source.
|
|
251
|
+
- Inline `buttons` rows support `callback_data` for callbacks and `copy_text`/`copyText` for client-side copy buttons. JSON `callback_data` can include `callbackToast` or `toast` for an immediate short acknowledgement when pressed.
|
|
238
252
|
- `thread-reply` expects `threadId` to be the child reply-thread chat id, while `to` stays the parent chat id.
|
|
239
|
-
- `thread-
|
|
253
|
+
- If `threadId` is missing, `thread-reply` can use the current reply-thread context or a saved route from `thread-create` when called with the parent chat target plus `parentMessageId`.
|
|
254
|
+
- `thread-create` creates a top-level Inline thread when called without a parent target. Use `participant`/`participants` for a private thread, or `spaceId` with `isPublic: true` for a public space thread. If `spaceId` is present and no participants are supplied, Inline defaults `thread-create` to a public space thread.
|
|
255
|
+
- `thread-create` creates a real reply thread from a parent chat when `to`/`chatId`/`channelId` is supplied, or when an explicit `replyToId`/`messageId` anchor can be paired with the current channel context.
|
|
256
|
+
- `forward`/`forwardMessages` forwards one or more source `messageId`/`messageIds` to a destination `to`/`chatId`/`userId`. The source can be `from`/`source`/`fromChatId`/`fromUserId`; when omitted in an Inline conversation, it defaults to the current chat.
|
|
257
|
+
- `delete-attachment` removes a URL-preview attachment from a message authored by the current bot/user. Use `attachments[].id` from `read` or `search` as `attachmentId`.
|
|
258
|
+
- `pin`/`unpin` use `messageId` and default to the current Inline chat/thread when no target is passed; `list-pins` also defaults to the current chat/thread.
|
|
259
|
+
- `invite-to-space` invites one user per call into a space using `userId`/`user`/`participant`, `email`, or `phoneNumber`; pass `role: "admin"` for admin invites or omit it for a member invite.
|
|
260
|
+
- In `replyThreadMode: "auto"`, explicit user requests such as "reply in a thread" create and answer in a child reply thread automatically; the `thread-create` and `thread-reply` message-tool actions remain available for manual tool use.
|
|
240
261
|
- Automatic thread creation falls back to parent-chat delivery if the reply thread cannot be created.
|
|
241
262
|
- Existing route state is reused only for the same parent-message anchor. New parent-chat messages get separate reply threads; messages already inside a reply thread stay in that thread and do not create nested threads.
|
|
242
263
|
- Inline current-message media is attached like native channels. Reply-thread anchor media is summarized as context and is not promoted to current-message media on every child-thread turn.
|
|
@@ -255,6 +276,7 @@ channels:
|
|
|
255
276
|
reactions: true
|
|
256
277
|
read: true
|
|
257
278
|
search: true
|
|
279
|
+
translate: true
|
|
258
280
|
edit: true
|
|
259
281
|
channels: true
|
|
260
282
|
participants: true
|
|
@@ -272,15 +294,26 @@ The plugin also registers dedicated tools outside the `message` action surface.
|
|
|
272
294
|
`inline_parent_context` fetches more parent-chat history for the current Inline reply-thread session when the automatic context window is not enough.
|
|
273
295
|
|
|
274
296
|
- Defaults to the current reply thread when invoked from one
|
|
275
|
-
- Optional inputs: `threadId`, `parentChatId`, `parentMessageId`, `beforeMessageId`, `limit`, `includeAnchor`, `accountId`
|
|
297
|
+
- Optional inputs: `threadId`, `parentChatId`, `parentMessageId`, `beforeMessageId`, `afterMessageId`, `messageId`/`aroundMessageId`, `mode`, `limit`, `beforeLimit`, `afterLimit`, `includeAnchor`, `accountId`
|
|
298
|
+
- Supports `latest`, `older`, `newer`, and `around` history windows; the reply-thread default is an `around` window anchored to the parent/root message
|
|
276
299
|
- Returned messages are ordered oldest to newest and include media/entity summaries
|
|
277
300
|
|
|
278
301
|
`inline_members` handles space-member discovery:
|
|
279
302
|
|
|
280
|
-
-
|
|
303
|
+
- Optional input: `spaceId`/`space`; when omitted inside an Inline space chat or reply thread, the plugin infers the current space
|
|
281
304
|
- Optional filters: `query`, `userId`, `limit`, `accountId`
|
|
282
305
|
- Returned members include explicit DM targets like `user:123`
|
|
283
306
|
|
|
307
|
+
`inline_nudge` sends an Inline nudge to a chat or user target.
|
|
308
|
+
|
|
309
|
+
`inline_forward` forwards existing Inline message ids between chats or users.
|
|
310
|
+
|
|
311
|
+
`inline_bot_presence` updates the bot's on-screen body state in Inline without sending a chat message. Use `action: "get"` to inspect the current avatar/state for a chat or user target.
|
|
312
|
+
|
|
313
|
+
`inline_update_profile` updates the authenticated bot's Inline display name and/or profile photo. Use it only for explicit profile-setup requests.
|
|
314
|
+
|
|
315
|
+
`inline_bot_avatar` installs, replaces, or clears the bot's on-screen avatar. Set/install uses a local or remote `.zip` avatar package; clearing uses `action: "clear"` or `clear: true`. It is for avatar setup/removal, not mood or presence changes.
|
|
316
|
+
|
|
284
317
|
The plugin also registers `inline_bot_commands` for Inline bot command management (v1):
|
|
285
318
|
|
|
286
319
|
- `action: "get"` -> calls `getMyCommands`
|
|
@@ -294,6 +327,7 @@ Bot command sync:
|
|
|
294
327
|
- Default commands include the same user-facing command set as bundled chat providers (for example: `/status`, `/model`, `/exec`, `/usage`, etc.).
|
|
295
328
|
- Inline also registers `/threadreply` to manage this group's reply-thread mode from chat.
|
|
296
329
|
- The plugin uses OpenClaw's command, skill command, and plugin command registries when available.
|
|
330
|
+
- If Inline rejects the full 100-command menu as `BOT_COMMANDS_TOO_MUCH`, startup sync retries with a smaller command set and logs how many entries were omitted.
|
|
297
331
|
- Disable startup sync globally with `commands.native: false`, or per-channel with `channels.inline.commands.native: false`. Disabled startup sync clears existing Inline bot commands for the affected account.
|
|
298
332
|
- Disable skill command inclusion with `commands.nativeSkills: false`, or per-channel with `channels.inline.commands.nativeSkills: false`.
|
|
299
333
|
|
|
@@ -14540,6 +14540,7 @@ var InlineActionsSchema = exports_external.object({
|
|
|
14540
14540
|
reactions: exports_external.boolean().optional(),
|
|
14541
14541
|
read: exports_external.boolean().optional(),
|
|
14542
14542
|
search: exports_external.boolean().optional(),
|
|
14543
|
+
translate: exports_external.boolean().optional(),
|
|
14543
14544
|
edit: exports_external.boolean().optional(),
|
|
14544
14545
|
channels: exports_external.boolean().optional(),
|
|
14545
14546
|
participants: exports_external.boolean().optional(),
|
|
@@ -14663,6 +14664,8 @@ var InlineAccountSchemaBase = exports_external.object({
|
|
|
14663
14664
|
dmHistoryLimit: exports_external.number().int().min(0).optional(),
|
|
14664
14665
|
parseMarkdown: exports_external.boolean().optional(),
|
|
14665
14666
|
mediaMaxMb: exports_external.number().positive().optional(),
|
|
14667
|
+
debounceMs: exports_external.number().int().min(0).optional(),
|
|
14668
|
+
voiceTranscriptWaitMs: exports_external.number().int().min(0).max(60000).optional(),
|
|
14666
14669
|
actions: InlineActionsSchema.optional(),
|
|
14667
14670
|
reactionNotifications: InlineReactionNotificationsSchema.optional(),
|
|
14668
14671
|
reactionAllowlist: exports_external.array(InlineAllowEntrySchema).optional(),
|
|
@@ -15023,5 +15026,5 @@ export {
|
|
|
15023
15026
|
inspectInlineReadOnlyAccount
|
|
15024
15027
|
};
|
|
15025
15028
|
|
|
15026
|
-
//# debugId=
|
|
15029
|
+
//# debugId=40642E2CDF4CBDF164756E2164756E21
|
|
15027
15030
|
//# sourceMappingURL=account-inspect-api.js.map
|