@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
|
@@ -12629,7 +12629,8 @@ class UpdateDialogOpenResult$Type extends import_runtime4.MessageType {
|
|
|
12629
12629
|
super("UpdateDialogOpenResult", [
|
|
12630
12630
|
{ no: 1, name: "chat", kind: "message", T: () => Chat },
|
|
12631
12631
|
{ no: 2, name: "dialog", kind: "message", T: () => Dialog },
|
|
12632
|
-
{ no: 3, name: "user", kind: "message", T: () => User }
|
|
12632
|
+
{ no: 3, name: "user", kind: "message", T: () => User },
|
|
12633
|
+
{ no: 4, name: "deleted_chat", kind: "scalar", opt: true, T: 8 }
|
|
12633
12634
|
]);
|
|
12634
12635
|
}
|
|
12635
12636
|
create(value) {
|
|
@@ -12652,6 +12653,9 @@ class UpdateDialogOpenResult$Type extends import_runtime4.MessageType {
|
|
|
12652
12653
|
case 3:
|
|
12653
12654
|
message.user = User.internalBinaryRead(reader, reader.uint32(), options, message.user);
|
|
12654
12655
|
break;
|
|
12656
|
+
case 4:
|
|
12657
|
+
message.deletedChat = reader.bool();
|
|
12658
|
+
break;
|
|
12655
12659
|
default:
|
|
12656
12660
|
let u = options.readUnknownField;
|
|
12657
12661
|
if (u === "throw")
|
|
@@ -12670,6 +12674,8 @@ class UpdateDialogOpenResult$Type extends import_runtime4.MessageType {
|
|
|
12670
12674
|
Dialog.internalBinaryWrite(message.dialog, writer.tag(2, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
12671
12675
|
if (message.user)
|
|
12672
12676
|
User.internalBinaryWrite(message.user, writer.tag(3, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
12677
|
+
if (message.deletedChat !== undefined)
|
|
12678
|
+
writer.tag(4, import_runtime.WireType.Varint).bool(message.deletedChat);
|
|
12673
12679
|
let u = options.writeUnknownFields;
|
|
12674
12680
|
if (u !== false)
|
|
12675
12681
|
(u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -22133,9 +22139,12 @@ function summarizeError(error) {
|
|
|
22133
22139
|
}
|
|
22134
22140
|
function describeConnectionError(error) {
|
|
22135
22141
|
const value = typeof error === "object" && error !== null ? error : null;
|
|
22142
|
+
const reason = typeof value?.reason === "number" ? value.reason : null;
|
|
22143
|
+
const reasonName = reason == null ? null : ConnectionError_Reason[reason] ?? `UNKNOWN_REASON_${reason}`;
|
|
22136
22144
|
const code = typeof value?.code === "number" ? value.code : null;
|
|
22137
|
-
const message = typeof value?.message === "string" && value.message.trim() ? value.message.trim() : "unknown";
|
|
22138
|
-
|
|
22145
|
+
const message = typeof value?.message === "string" && value.message.trim() ? value.message.trim() : reasonName ?? "unknown";
|
|
22146
|
+
const suffix = reasonName != null ? ` (${reasonName})` : code != null ? ` (code=${code})` : "";
|
|
22147
|
+
return `server connection error${suffix}: ${message}`;
|
|
22139
22148
|
}
|
|
22140
22149
|
|
|
22141
22150
|
// ../../node_modules/.bun/ws@8.21.0/node_modules/ws/wrapper.mjs
|
|
@@ -22696,7 +22705,17 @@ class InlineSdkClient {
|
|
|
22696
22705
|
const chat = result.getChat.chat;
|
|
22697
22706
|
if (!chat)
|
|
22698
22707
|
throw new Error("getChat: missing chat");
|
|
22699
|
-
return {
|
|
22708
|
+
return {
|
|
22709
|
+
chatId: chat.id,
|
|
22710
|
+
title: chat.title,
|
|
22711
|
+
...chat.peerId != null ? { peer: chat.peerId } : {},
|
|
22712
|
+
...chat.spaceId != null ? { spaceId: chat.spaceId } : {},
|
|
22713
|
+
...chat.parentChatId != null ? { parentChatId: chat.parentChatId } : {},
|
|
22714
|
+
...chat.parentMessageId != null ? { parentMessageId: chat.parentMessageId } : {},
|
|
22715
|
+
...chat.isPublic != null ? { isPublic: chat.isPublic } : {},
|
|
22716
|
+
...chat.untitled != null ? { untitled: chat.untitled } : {},
|
|
22717
|
+
...chat.number != null ? { number: chat.number } : {}
|
|
22718
|
+
};
|
|
22700
22719
|
}
|
|
22701
22720
|
async getMessages(params) {
|
|
22702
22721
|
const peerId = this.inputPeerFromTarget(params, "getMessages");
|
|
@@ -39187,12 +39206,12 @@ import {
|
|
|
39187
39206
|
resolveThinkingDefault
|
|
39188
39207
|
} from "openclaw/plugin-sdk/agent-runtime";
|
|
39189
39208
|
import {
|
|
39190
|
-
applyModelOverrideToSessionEntry,
|
|
39191
39209
|
loadSessionStore,
|
|
39192
39210
|
resolveSessionStoreEntry,
|
|
39193
39211
|
resolveStorePath,
|
|
39194
39212
|
updateSessionStore
|
|
39195
|
-
} from "openclaw/plugin-sdk/
|
|
39213
|
+
} from "openclaw/plugin-sdk/session-store-runtime";
|
|
39214
|
+
import { applyModelOverrideToSessionEntry } from "openclaw/plugin-sdk/model-session-runtime";
|
|
39196
39215
|
import { buildModelsProviderData } from "openclaw/plugin-sdk/models-provider-runtime";
|
|
39197
39216
|
import { listSkillCommandsForAgents as listSkillCommandsForAgents2 } from "openclaw/plugin-sdk/skill-commands-runtime";
|
|
39198
39217
|
import { getPluginCommandSpecs as getPluginCommandSpecs2 } from "openclaw/plugin-sdk/plugin-runtime";
|
|
@@ -39210,9 +39229,9 @@ import {
|
|
|
39210
39229
|
import {
|
|
39211
39230
|
findCodeRegions,
|
|
39212
39231
|
isInsideCode,
|
|
39213
|
-
normalizeLowercaseStringOrEmpty as normalizeLowercaseStringOrEmpty2,
|
|
39214
39232
|
stripReasoningTagsFromText
|
|
39215
|
-
} from "openclaw/plugin-sdk/text-
|
|
39233
|
+
} from "openclaw/plugin-sdk/text-chunking";
|
|
39234
|
+
import { normalizeLowercaseStringOrEmpty as normalizeLowercaseStringOrEmpty2 } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
39216
39235
|
|
|
39217
39236
|
// src/sdk-runtime-compat.ts
|
|
39218
39237
|
var MAX_HISTORY_KEYS = 1000;
|
|
@@ -41597,7 +41616,10 @@ function resolveInlineInteractiveButtonsParam(params) {
|
|
|
41597
41616
|
return state;
|
|
41598
41617
|
}
|
|
41599
41618
|
if (block.type === "select") {
|
|
41600
|
-
chunkInteractiveButtons(block.options.map((option) => ({
|
|
41619
|
+
chunkInteractiveButtons(block.options.map((option) => ({
|
|
41620
|
+
label: option.label,
|
|
41621
|
+
...option.value !== undefined ? { value: option.value } : {}
|
|
41622
|
+
})), state);
|
|
41601
41623
|
}
|
|
41602
41624
|
return state;
|
|
41603
41625
|
});
|
|
@@ -48289,9 +48311,7 @@ async function monitorInlineProvider(params) {
|
|
|
48289
48311
|
});
|
|
48290
48312
|
const eventOptions = {
|
|
48291
48313
|
sessionKey: ingress.sessionKey,
|
|
48292
|
-
contextKey: buildInlineReactionContextKey(params2)
|
|
48293
|
-
forceSenderIsOwnerFalse: true,
|
|
48294
|
-
trusted: false
|
|
48314
|
+
contextKey: buildInlineReactionContextKey(params2)
|
|
48295
48315
|
};
|
|
48296
48316
|
core3.system.enqueueSystemEvent(describeInlineReactionSystemEvent({
|
|
48297
48317
|
action: params2.action,
|
|
@@ -48359,9 +48379,7 @@ async function monitorInlineProvider(params) {
|
|
|
48359
48379
|
priorMentionLines
|
|
48360
48380
|
}), {
|
|
48361
48381
|
sessionKey: ingress.sessionKey,
|
|
48362
|
-
contextKey
|
|
48363
|
-
forceSenderIsOwnerFalse: true,
|
|
48364
|
-
trusted: false
|
|
48382
|
+
contextKey
|
|
48365
48383
|
});
|
|
48366
48384
|
};
|
|
48367
48385
|
const shouldQueueInlineReactionSystemEvent = async (params2) => {
|
|
@@ -51199,7 +51217,7 @@ function collectInlineStatusIssues(accounts) {
|
|
|
51199
51217
|
}
|
|
51200
51218
|
|
|
51201
51219
|
// src/inline/security.ts
|
|
51202
|
-
import { resolveNativeSkillsEnabled } from "openclaw/plugin-sdk/config-runtime";
|
|
51220
|
+
import { resolveNativeSkillsEnabled } from "openclaw/plugin-sdk/native-command-config-runtime";
|
|
51203
51221
|
import { parseAccessGroupAllowFromEntry } from "openclaw/plugin-sdk/security-runtime";
|
|
51204
51222
|
function hasEntries2(value) {
|
|
51205
51223
|
return Array.isArray(value) && value.some((entry) => String(entry).trim());
|
|
@@ -53131,5 +53149,5 @@ export {
|
|
|
53131
53149
|
inlineChannelPlugin
|
|
53132
53150
|
};
|
|
53133
53151
|
|
|
53134
|
-
//# debugId=
|
|
53152
|
+
//# debugId=CDF7C9400CDE436B64756E2164756E21
|
|
53135
53153
|
//# sourceMappingURL=channel-plugin-api.js.map
|