@inline-openclaw/inline 0.0.44 → 0.0.45
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/dist/account-inspect-api.js +4 -2
- package/dist/account-inspect-api.js.map +3 -3
- package/dist/approval-handler.runtime.js +47 -10
- package/dist/approval-handler.runtime.js.map +5 -5
- package/dist/channel-plugin-api.js +656 -58
- package/dist/channel-plugin-api.js.map +13 -12
- 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 +2 -0
- package/dist/inline/config-schema.d.ts.map +1 -1
- package/dist/inline/doctor.d.ts.map +1 -1
- package/dist/inline/monitor.d.ts.map +1 -1
- package/dist/inline/security.d.ts.map +1 -1
- package/dist/inline/setup-surface.d.ts.map +1 -1
- package/dist/inline/threadreply-command.d.ts +31 -0
- package/dist/inline/threadreply-command.d.ts.map +1 -1
- package/dist/runtime-register-api.js +225 -160
- package/dist/runtime-register-api.js.map +7 -7
- package/dist/setup-plugin-api.js +23 -13
- package/dist/setup-plugin-api.js.map +6 -6
- package/openclaw.plugin.json +3 -3
- package/package.json +1 -1
|
@@ -11175,7 +11175,8 @@ class UpdateSidecars$Type extends import_runtime4.MessageType {
|
|
|
11175
11175
|
super("UpdateSidecars", [
|
|
11176
11176
|
{ no: 1, name: "users", kind: "message", repeat: 1, T: () => User },
|
|
11177
11177
|
{ no: 2, name: "chats", kind: "message", repeat: 1, T: () => Chat },
|
|
11178
|
-
{ no: 3, name: "dialogs", kind: "message", repeat: 1, T: () => Dialog }
|
|
11178
|
+
{ no: 3, name: "dialogs", kind: "message", repeat: 1, T: () => Dialog },
|
|
11179
|
+
{ no: 4, name: "spaces", kind: "message", repeat: 1, T: () => Space }
|
|
11179
11180
|
]);
|
|
11180
11181
|
}
|
|
11181
11182
|
create(value) {
|
|
@@ -11183,6 +11184,7 @@ class UpdateSidecars$Type extends import_runtime4.MessageType {
|
|
|
11183
11184
|
message.users = [];
|
|
11184
11185
|
message.chats = [];
|
|
11185
11186
|
message.dialogs = [];
|
|
11187
|
+
message.spaces = [];
|
|
11186
11188
|
if (value !== undefined)
|
|
11187
11189
|
import_runtime3.reflectionMergePartial(this, message, value);
|
|
11188
11190
|
return message;
|
|
@@ -11201,6 +11203,9 @@ class UpdateSidecars$Type extends import_runtime4.MessageType {
|
|
|
11201
11203
|
case 3:
|
|
11202
11204
|
message.dialogs.push(Dialog.internalBinaryRead(reader, reader.uint32(), options));
|
|
11203
11205
|
break;
|
|
11206
|
+
case 4:
|
|
11207
|
+
message.spaces.push(Space.internalBinaryRead(reader, reader.uint32(), options));
|
|
11208
|
+
break;
|
|
11204
11209
|
default:
|
|
11205
11210
|
let u = options.readUnknownField;
|
|
11206
11211
|
if (u === "throw")
|
|
@@ -11219,6 +11224,8 @@ class UpdateSidecars$Type extends import_runtime4.MessageType {
|
|
|
11219
11224
|
Chat.internalBinaryWrite(message.chats[i], writer.tag(2, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
11220
11225
|
for (let i = 0;i < message.dialogs.length; i++)
|
|
11221
11226
|
Dialog.internalBinaryWrite(message.dialogs[i], writer.tag(3, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
11227
|
+
for (let i = 0;i < message.spaces.length; i++)
|
|
11228
|
+
Space.internalBinaryWrite(message.spaces[i], writer.tag(4, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
11222
11229
|
let u = options.writeUnknownFields;
|
|
11223
11230
|
if (u !== false)
|
|
11224
11231
|
(u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -21039,7 +21046,7 @@ class InlineSdkClient {
|
|
|
21039
21046
|
await this.handleUpdate(update);
|
|
21040
21047
|
}
|
|
21041
21048
|
}
|
|
21042
|
-
async handleUpdate(update) {
|
|
21049
|
+
async handleUpdate(update, options) {
|
|
21043
21050
|
const seq = update.seq ?? 0;
|
|
21044
21051
|
const date = update.date ?? 0n;
|
|
21045
21052
|
switch (update.update.oneofKind) {
|
|
@@ -21171,6 +21178,34 @@ class InlineSdkClient {
|
|
|
21171
21178
|
});
|
|
21172
21179
|
return;
|
|
21173
21180
|
}
|
|
21181
|
+
case "participantAdd": {
|
|
21182
|
+
const payload = update.update.participantAdd;
|
|
21183
|
+
if (options?.source !== "user" && options?.source !== "space") {
|
|
21184
|
+
this.bumpChatSeq(payload.chatId, seq);
|
|
21185
|
+
}
|
|
21186
|
+
await this.eventStream.send({
|
|
21187
|
+
kind: "chat.participant.add",
|
|
21188
|
+
chatId: payload.chatId,
|
|
21189
|
+
...payload.participant ? { participant: payload.participant } : {},
|
|
21190
|
+
seq,
|
|
21191
|
+
date
|
|
21192
|
+
});
|
|
21193
|
+
return;
|
|
21194
|
+
}
|
|
21195
|
+
case "participantDelete": {
|
|
21196
|
+
const payload = update.update.participantDelete;
|
|
21197
|
+
if (options?.source !== "user" && options?.source !== "space") {
|
|
21198
|
+
this.bumpChatSeq(payload.chatId, seq);
|
|
21199
|
+
}
|
|
21200
|
+
await this.eventStream.send({
|
|
21201
|
+
kind: "chat.participant.delete",
|
|
21202
|
+
chatId: payload.chatId,
|
|
21203
|
+
userId: payload.userId,
|
|
21204
|
+
seq,
|
|
21205
|
+
date
|
|
21206
|
+
});
|
|
21207
|
+
return;
|
|
21208
|
+
}
|
|
21174
21209
|
case "messageActionInvoked": {
|
|
21175
21210
|
const payload = update.update.messageActionInvoked;
|
|
21176
21211
|
if (this.shouldSkipUserSeq(seq)) {
|
|
@@ -21271,14 +21306,14 @@ class InlineSdkClient {
|
|
|
21271
21306
|
}
|
|
21272
21307
|
}
|
|
21273
21308
|
requestCatchUpUser() {
|
|
21274
|
-
const lastUserSeq = this.state.lastUserSeq
|
|
21275
|
-
if (lastUserSeq
|
|
21309
|
+
const lastUserSeq = this.state.lastUserSeq;
|
|
21310
|
+
if (lastUserSeq == null && !this.options.catchUpUserFromStart) {
|
|
21276
21311
|
return;
|
|
21277
21312
|
}
|
|
21278
21313
|
if (this.userCatchUpInFlight) {
|
|
21279
21314
|
return;
|
|
21280
21315
|
}
|
|
21281
|
-
this.userCatchUpInFlight = this.doCatchUpUser(lastUserSeq).catch((error) => {
|
|
21316
|
+
this.userCatchUpInFlight = this.doCatchUpUser(lastUserSeq ?? 0).catch((error) => {
|
|
21282
21317
|
this.log.warn?.("GET_UPDATES user catch-up failed; continuing live delivery", {
|
|
21283
21318
|
error: extractErrorMessage(error)
|
|
21284
21319
|
});
|
|
@@ -21319,7 +21354,7 @@ class InlineSdkClient {
|
|
|
21319
21354
|
return;
|
|
21320
21355
|
}
|
|
21321
21356
|
for (const update of payload.updates) {
|
|
21322
|
-
await this.handleUpdate(update);
|
|
21357
|
+
await this.handleUpdate(update, { source: "user" });
|
|
21323
21358
|
}
|
|
21324
21359
|
this.bumpUserSeq(deliveredSeq);
|
|
21325
21360
|
if (payload.date !== 0n) {
|
|
@@ -21418,7 +21453,7 @@ class InlineSdkClient {
|
|
|
21418
21453
|
}
|
|
21419
21454
|
this.bumpChatSeq(chatId, deliveredSeq);
|
|
21420
21455
|
for (const update of payload.updates) {
|
|
21421
|
-
await this.handleUpdate(update);
|
|
21456
|
+
await this.handleUpdate(update, { source: "chat" });
|
|
21422
21457
|
}
|
|
21423
21458
|
if (payload.date !== 0n) {
|
|
21424
21459
|
this.state.dateCursor = payload.date;
|
|
@@ -21520,7 +21555,7 @@ class InlineSdkClient {
|
|
|
21520
21555
|
}
|
|
21521
21556
|
this.bumpSpaceSeq(spaceId, deliveredSeq);
|
|
21522
21557
|
for (const update of payload.updates) {
|
|
21523
|
-
await this.handleUpdate(update);
|
|
21558
|
+
await this.handleUpdate(update, { source: "space" });
|
|
21524
21559
|
}
|
|
21525
21560
|
if (payload.date !== 0n) {
|
|
21526
21561
|
this.state.dateCursor = payload.date;
|
|
@@ -36462,6 +36497,8 @@ var InlineExecApprovalsSchema = exports_external.object({
|
|
|
36462
36497
|
var InlineReactionNotificationsSchema = exports_external.enum(["off", "own", "all", "allowlist"]);
|
|
36463
36498
|
var InlineStreamingModeSchema = exports_external.enum(["off", "partial", "block", "progress"]);
|
|
36464
36499
|
var InlineStreamingCommandTextSchema = exports_external.enum(["raw", "status"]);
|
|
36500
|
+
var INLINE_DEFAULT_GROUP_POLICY = "open";
|
|
36501
|
+
var INLINE_DEFAULT_REQUIRE_MENTION = true;
|
|
36465
36502
|
var InlineStreamingChunkSchema = exports_external.object({
|
|
36466
36503
|
minChars: exports_external.number().int().positive().optional(),
|
|
36467
36504
|
maxChars: exports_external.number().int().positive().optional(),
|
|
@@ -36533,7 +36570,7 @@ var InlineAccountSchemaBase = exports_external.object({
|
|
|
36533
36570
|
defaultTo: InlineTargetSchema.optional(),
|
|
36534
36571
|
systemPrompt: exports_external.string().optional(),
|
|
36535
36572
|
groupAllowFrom: exports_external.array(InlineAllowEntrySchema).optional(),
|
|
36536
|
-
groupPolicy: GroupPolicySchema.optional().default(
|
|
36573
|
+
groupPolicy: GroupPolicySchema.optional().default(INLINE_DEFAULT_GROUP_POLICY),
|
|
36537
36574
|
groups: exports_external.record(exports_external.string(), InlineGroupSchema.optional()).optional(),
|
|
36538
36575
|
requireMention: exports_external.boolean().optional(),
|
|
36539
36576
|
replyThreadMode: InlineReplyThreadModeSchema.optional(),
|
|
@@ -40517,5 +40554,5 @@ export {
|
|
|
40517
40554
|
inlineApprovalNativeRuntime
|
|
40518
40555
|
};
|
|
40519
40556
|
|
|
40520
|
-
//# debugId=
|
|
40557
|
+
//# debugId=A870EC753942A49D64756E2164756E21
|
|
40521
40558
|
//# sourceMappingURL=approval-handler.runtime.js.map
|