@inline-openclaw/inline 0.0.47 → 0.0.48
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 +8 -1
- package/dist/approval-handler.runtime.js +28 -6
- package/dist/approval-handler.runtime.js.map +6 -6
- package/dist/channel-plugin-api.js +35 -17
- package/dist/channel-plugin-api.js.map +8 -8
- package/dist/index.d.ts +1 -1
- package/dist/inline/actions.d.ts +2 -1
- package/dist/inline/actions.d.ts.map +1 -1
- package/dist/inline/approval-native.d.ts.map +1 -1
- package/dist/inline/exec-approvals.d.ts.map +1 -1
- package/dist/inline/monitor.d.ts.map +1 -1
- package/dist/inline/shared.d.ts +1 -1
- package/dist/runtime-register-api.js +24 -5
- package/dist/runtime-register-api.js.map +5 -5
- package/dist/setup-entry.d.ts +1 -1
- package/dist/setup-plugin-api.js +2 -2
- package/dist/setup-plugin-api.js.map +2 -2
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -33,7 +33,14 @@ Reply-thread behavior:
|
|
|
33
33
|
|
|
34
34
|
## Install
|
|
35
35
|
|
|
36
|
-
Requires OpenClaw `2026.
|
|
36
|
+
Requires OpenClaw `2026.6.11` or newer.
|
|
37
|
+
|
|
38
|
+
## Compatibility
|
|
39
|
+
|
|
40
|
+
| Plugin version | OpenClaw host | Inline realtime SDK | Status | Notes |
|
|
41
|
+
| --- | --- | --- | --- | --- |
|
|
42
|
+
| `0.0.48` | `>=2026.6.11` | `0.0.11` | Current | Uses the latest focused OpenClaw plugin SDK entrypoints and is the supported line for current stable OpenClaw. |
|
|
43
|
+
| `0.0.47` and earlier | `>=2026.5.18`, tested before the `2026.6.11` floor | `0.0.11` | Legacy | Use this line only when an older OpenClaw host cannot be upgraded yet. It keeps the previous broad SDK compatibility path. |
|
|
37
44
|
|
|
38
45
|
From npm (once published):
|
|
39
46
|
|
|
@@ -12612,7 +12612,8 @@ class UpdateDialogOpenResult$Type extends import_runtime4.MessageType {
|
|
|
12612
12612
|
super("UpdateDialogOpenResult", [
|
|
12613
12613
|
{ no: 1, name: "chat", kind: "message", T: () => Chat },
|
|
12614
12614
|
{ no: 2, name: "dialog", kind: "message", T: () => Dialog },
|
|
12615
|
-
{ no: 3, name: "user", kind: "message", T: () => User }
|
|
12615
|
+
{ no: 3, name: "user", kind: "message", T: () => User },
|
|
12616
|
+
{ no: 4, name: "deleted_chat", kind: "scalar", opt: true, T: 8 }
|
|
12616
12617
|
]);
|
|
12617
12618
|
}
|
|
12618
12619
|
create(value) {
|
|
@@ -12635,6 +12636,9 @@ class UpdateDialogOpenResult$Type extends import_runtime4.MessageType {
|
|
|
12635
12636
|
case 3:
|
|
12636
12637
|
message.user = User.internalBinaryRead(reader, reader.uint32(), options, message.user);
|
|
12637
12638
|
break;
|
|
12639
|
+
case 4:
|
|
12640
|
+
message.deletedChat = reader.bool();
|
|
12641
|
+
break;
|
|
12638
12642
|
default:
|
|
12639
12643
|
let u = options.readUnknownField;
|
|
12640
12644
|
if (u === "throw")
|
|
@@ -12653,6 +12657,8 @@ class UpdateDialogOpenResult$Type extends import_runtime4.MessageType {
|
|
|
12653
12657
|
Dialog.internalBinaryWrite(message.dialog, writer.tag(2, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
12654
12658
|
if (message.user)
|
|
12655
12659
|
User.internalBinaryWrite(message.user, writer.tag(3, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
12660
|
+
if (message.deletedChat !== undefined)
|
|
12661
|
+
writer.tag(4, import_runtime.WireType.Varint).bool(message.deletedChat);
|
|
12656
12662
|
let u = options.writeUnknownFields;
|
|
12657
12663
|
if (u !== false)
|
|
12658
12664
|
(u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -22116,9 +22122,12 @@ function summarizeError(error) {
|
|
|
22116
22122
|
}
|
|
22117
22123
|
function describeConnectionError(error) {
|
|
22118
22124
|
const value = typeof error === "object" && error !== null ? error : null;
|
|
22125
|
+
const reason = typeof value?.reason === "number" ? value.reason : null;
|
|
22126
|
+
const reasonName = reason == null ? null : ConnectionError_Reason[reason] ?? `UNKNOWN_REASON_${reason}`;
|
|
22119
22127
|
const code = typeof value?.code === "number" ? value.code : null;
|
|
22120
|
-
const message = typeof value?.message === "string" && value.message.trim() ? value.message.trim() : "unknown";
|
|
22121
|
-
|
|
22128
|
+
const message = typeof value?.message === "string" && value.message.trim() ? value.message.trim() : reasonName ?? "unknown";
|
|
22129
|
+
const suffix = reasonName != null ? ` (${reasonName})` : code != null ? ` (code=${code})` : "";
|
|
22130
|
+
return `server connection error${suffix}: ${message}`;
|
|
22122
22131
|
}
|
|
22123
22132
|
|
|
22124
22133
|
// ../../node_modules/.bun/ws@8.21.0/node_modules/ws/wrapper.mjs
|
|
@@ -22679,7 +22688,17 @@ class InlineSdkClient {
|
|
|
22679
22688
|
const chat = result.getChat.chat;
|
|
22680
22689
|
if (!chat)
|
|
22681
22690
|
throw new Error("getChat: missing chat");
|
|
22682
|
-
return {
|
|
22691
|
+
return {
|
|
22692
|
+
chatId: chat.id,
|
|
22693
|
+
title: chat.title,
|
|
22694
|
+
...chat.peerId != null ? { peer: chat.peerId } : {},
|
|
22695
|
+
...chat.spaceId != null ? { spaceId: chat.spaceId } : {},
|
|
22696
|
+
...chat.parentChatId != null ? { parentChatId: chat.parentChatId } : {},
|
|
22697
|
+
...chat.parentMessageId != null ? { parentMessageId: chat.parentMessageId } : {},
|
|
22698
|
+
...chat.isPublic != null ? { isPublic: chat.isPublic } : {},
|
|
22699
|
+
...chat.untitled != null ? { untitled: chat.untitled } : {},
|
|
22700
|
+
...chat.number != null ? { number: chat.number } : {}
|
|
22701
|
+
};
|
|
22683
22702
|
}
|
|
22684
22703
|
async getMessages(params) {
|
|
22685
22704
|
const peerId = this.inputPeerFromTarget(params, "getMessages");
|
|
@@ -41407,7 +41426,10 @@ function resolveInlineInteractiveButtonsParam(params) {
|
|
|
41407
41426
|
return state;
|
|
41408
41427
|
}
|
|
41409
41428
|
if (block.type === "select") {
|
|
41410
|
-
chunkInteractiveButtons(block.options.map((option) => ({
|
|
41429
|
+
chunkInteractiveButtons(block.options.map((option) => ({
|
|
41430
|
+
label: option.label,
|
|
41431
|
+
...option.value !== undefined ? { value: option.value } : {}
|
|
41432
|
+
})), state);
|
|
41411
41433
|
}
|
|
41412
41434
|
return state;
|
|
41413
41435
|
});
|
|
@@ -45145,5 +45167,5 @@ export {
|
|
|
45145
45167
|
inlineApprovalNativeRuntime
|
|
45146
45168
|
};
|
|
45147
45169
|
|
|
45148
|
-
//# debugId=
|
|
45170
|
+
//# debugId=D1AFD74164D5709D64756E2164756E21
|
|
45149
45171
|
//# sourceMappingURL=approval-handler.runtime.js.map
|