@inline-openclaw/inline 0.0.42 → 0.0.44
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 +1 -1
- package/dist/approval-handler.runtime.js +82 -7
- package/dist/approval-handler.runtime.js.map +4 -4
- package/dist/channel-plugin-api.js +165 -37
- package/dist/channel-plugin-api.js.map +6 -6
- package/dist/inline/message-formatting.d.ts.map +1 -1
- package/dist/inline/monitor.d.ts.map +1 -1
- package/dist/inline/threadreply-command.d.ts.map +1 -1
- package/dist/runtime-register-api.js +178 -12
- package/dist/runtime-register-api.js.map +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -239,7 +239,7 @@ Inline reply-thread semantics:
|
|
|
239
239
|
- `thread-create` creates a real reply thread from a parent chat and optional `replyToId` anchor.
|
|
240
240
|
- Automatic thread creation falls back to parent-chat delivery if the reply thread cannot be created.
|
|
241
241
|
- 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
|
-
-
|
|
242
|
+
- 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.
|
|
243
243
|
|
|
244
244
|
You can gate action groups from config:
|
|
245
245
|
|
|
@@ -6967,7 +6967,8 @@ class Chat$Type extends import_runtime4.MessageType {
|
|
|
6967
6967
|
{ no: 9, name: "date", kind: "scalar", opt: true, T: 3, L: 0 },
|
|
6968
6968
|
{ no: 10, name: "created_by", kind: "scalar", opt: true, T: 3, L: 0 },
|
|
6969
6969
|
{ no: 11, name: "parent_chat_id", kind: "scalar", opt: true, T: 3, L: 0 },
|
|
6970
|
-
{ no: 12, name: "parent_message_id", kind: "scalar", opt: true, T: 3, L: 0 }
|
|
6970
|
+
{ no: 12, name: "parent_message_id", kind: "scalar", opt: true, T: 3, L: 0 },
|
|
6971
|
+
{ no: 13, name: "untitled", kind: "scalar", opt: true, T: 8 }
|
|
6971
6972
|
]);
|
|
6972
6973
|
}
|
|
6973
6974
|
create(value) {
|
|
@@ -7019,6 +7020,9 @@ class Chat$Type extends import_runtime4.MessageType {
|
|
|
7019
7020
|
case 12:
|
|
7020
7021
|
message.parentMessageId = reader.int64().toBigInt();
|
|
7021
7022
|
break;
|
|
7023
|
+
case 13:
|
|
7024
|
+
message.untitled = reader.bool();
|
|
7025
|
+
break;
|
|
7022
7026
|
default:
|
|
7023
7027
|
let u = options.readUnknownField;
|
|
7024
7028
|
if (u === "throw")
|
|
@@ -7055,6 +7059,8 @@ class Chat$Type extends import_runtime4.MessageType {
|
|
|
7055
7059
|
writer.tag(11, import_runtime.WireType.Varint).int64(message.parentChatId);
|
|
7056
7060
|
if (message.parentMessageId !== undefined)
|
|
7057
7061
|
writer.tag(12, import_runtime.WireType.Varint).int64(message.parentMessageId);
|
|
7062
|
+
if (message.untitled !== undefined)
|
|
7063
|
+
writer.tag(13, import_runtime.WireType.Varint).bool(message.untitled);
|
|
7058
7064
|
let u = options.writeUnknownFields;
|
|
7059
7065
|
if (u !== false)
|
|
7060
7066
|
(u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -11164,6 +11170,63 @@ class GetUpdatesInput$Type extends import_runtime4.MessageType {
|
|
|
11164
11170
|
}
|
|
11165
11171
|
var GetUpdatesInput = new GetUpdatesInput$Type;
|
|
11166
11172
|
|
|
11173
|
+
class UpdateSidecars$Type extends import_runtime4.MessageType {
|
|
11174
|
+
constructor() {
|
|
11175
|
+
super("UpdateSidecars", [
|
|
11176
|
+
{ no: 1, name: "users", kind: "message", repeat: 1, T: () => User },
|
|
11177
|
+
{ no: 2, name: "chats", kind: "message", repeat: 1, T: () => Chat },
|
|
11178
|
+
{ no: 3, name: "dialogs", kind: "message", repeat: 1, T: () => Dialog }
|
|
11179
|
+
]);
|
|
11180
|
+
}
|
|
11181
|
+
create(value) {
|
|
11182
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
11183
|
+
message.users = [];
|
|
11184
|
+
message.chats = [];
|
|
11185
|
+
message.dialogs = [];
|
|
11186
|
+
if (value !== undefined)
|
|
11187
|
+
import_runtime3.reflectionMergePartial(this, message, value);
|
|
11188
|
+
return message;
|
|
11189
|
+
}
|
|
11190
|
+
internalBinaryRead(reader, length, options, target) {
|
|
11191
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
11192
|
+
while (reader.pos < end) {
|
|
11193
|
+
let [fieldNo, wireType] = reader.tag();
|
|
11194
|
+
switch (fieldNo) {
|
|
11195
|
+
case 1:
|
|
11196
|
+
message.users.push(User.internalBinaryRead(reader, reader.uint32(), options));
|
|
11197
|
+
break;
|
|
11198
|
+
case 2:
|
|
11199
|
+
message.chats.push(Chat.internalBinaryRead(reader, reader.uint32(), options));
|
|
11200
|
+
break;
|
|
11201
|
+
case 3:
|
|
11202
|
+
message.dialogs.push(Dialog.internalBinaryRead(reader, reader.uint32(), options));
|
|
11203
|
+
break;
|
|
11204
|
+
default:
|
|
11205
|
+
let u = options.readUnknownField;
|
|
11206
|
+
if (u === "throw")
|
|
11207
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
11208
|
+
let d = reader.skip(wireType);
|
|
11209
|
+
if (u !== false)
|
|
11210
|
+
(u === true ? import_runtime2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
11211
|
+
}
|
|
11212
|
+
}
|
|
11213
|
+
return message;
|
|
11214
|
+
}
|
|
11215
|
+
internalBinaryWrite(message, writer, options) {
|
|
11216
|
+
for (let i = 0;i < message.users.length; i++)
|
|
11217
|
+
User.internalBinaryWrite(message.users[i], writer.tag(1, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
11218
|
+
for (let i = 0;i < message.chats.length; i++)
|
|
11219
|
+
Chat.internalBinaryWrite(message.chats[i], writer.tag(2, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
11220
|
+
for (let i = 0;i < message.dialogs.length; i++)
|
|
11221
|
+
Dialog.internalBinaryWrite(message.dialogs[i], writer.tag(3, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
11222
|
+
let u = options.writeUnknownFields;
|
|
11223
|
+
if (u !== false)
|
|
11224
|
+
(u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
11225
|
+
return writer;
|
|
11226
|
+
}
|
|
11227
|
+
}
|
|
11228
|
+
var UpdateSidecars = new UpdateSidecars$Type;
|
|
11229
|
+
|
|
11167
11230
|
class GetUpdatesResult$Type extends import_runtime4.MessageType {
|
|
11168
11231
|
constructor() {
|
|
11169
11232
|
super("GetUpdatesResult", [
|
|
@@ -11171,7 +11234,8 @@ class GetUpdatesResult$Type extends import_runtime4.MessageType {
|
|
|
11171
11234
|
{ no: 2, name: "seq", kind: "scalar", T: 3, L: 0 },
|
|
11172
11235
|
{ no: 3, name: "date", kind: "scalar", T: 3, L: 0 },
|
|
11173
11236
|
{ no: 4, name: "final", kind: "scalar", opt: true, T: 8 },
|
|
11174
|
-
{ no: 5, name: "result_type", kind: "enum", T: () => ["GetUpdatesResult.ResultType", GetUpdatesResult_ResultType, "RESULT_TYPE_"] }
|
|
11237
|
+
{ no: 5, name: "result_type", kind: "enum", T: () => ["GetUpdatesResult.ResultType", GetUpdatesResult_ResultType, "RESULT_TYPE_"] },
|
|
11238
|
+
{ no: 6, name: "sidecars", kind: "message", T: () => UpdateSidecars }
|
|
11175
11239
|
]);
|
|
11176
11240
|
}
|
|
11177
11241
|
create(value) {
|
|
@@ -11204,6 +11268,9 @@ class GetUpdatesResult$Type extends import_runtime4.MessageType {
|
|
|
11204
11268
|
case 5:
|
|
11205
11269
|
message.resultType = reader.int32();
|
|
11206
11270
|
break;
|
|
11271
|
+
case 6:
|
|
11272
|
+
message.sidecars = UpdateSidecars.internalBinaryRead(reader, reader.uint32(), options, message.sidecars);
|
|
11273
|
+
break;
|
|
11207
11274
|
default:
|
|
11208
11275
|
let u = options.readUnknownField;
|
|
11209
11276
|
if (u === "throw")
|
|
@@ -11226,6 +11293,8 @@ class GetUpdatesResult$Type extends import_runtime4.MessageType {
|
|
|
11226
11293
|
writer.tag(4, import_runtime.WireType.Varint).bool(message.final);
|
|
11227
11294
|
if (message.resultType !== 0)
|
|
11228
11295
|
writer.tag(5, import_runtime.WireType.Varint).int32(message.resultType);
|
|
11296
|
+
if (message.sidecars)
|
|
11297
|
+
UpdateSidecars.internalBinaryWrite(message.sidecars, writer.tag(6, import_runtime.WireType.LengthDelimited).fork(), options).join();
|
|
11229
11298
|
let u = options.writeUnknownFields;
|
|
11230
11299
|
if (u !== false)
|
|
11231
11300
|
(u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -15952,7 +16021,7 @@ var ReserveChatIdsResult = new ReserveChatIdsResult$Type;
|
|
|
15952
16021
|
class CreateChatInput$Type extends import_runtime4.MessageType {
|
|
15953
16022
|
constructor() {
|
|
15954
16023
|
super("CreateChatInput", [
|
|
15955
|
-
{ no: 1, name: "title", kind: "scalar", T: 9 },
|
|
16024
|
+
{ no: 1, name: "title", kind: "scalar", opt: true, T: 9 },
|
|
15956
16025
|
{ no: 2, name: "space_id", kind: "scalar", opt: true, T: 3, L: 0 },
|
|
15957
16026
|
{ no: 3, name: "description", kind: "scalar", opt: true, T: 9 },
|
|
15958
16027
|
{ no: 4, name: "emoji", kind: "scalar", opt: true, T: 9 },
|
|
@@ -15963,7 +16032,6 @@ class CreateChatInput$Type extends import_runtime4.MessageType {
|
|
|
15963
16032
|
}
|
|
15964
16033
|
create(value) {
|
|
15965
16034
|
const message = globalThis.Object.create(this.messagePrototype);
|
|
15966
|
-
message.title = "";
|
|
15967
16035
|
message.isPublic = false;
|
|
15968
16036
|
message.participants = [];
|
|
15969
16037
|
if (value !== undefined)
|
|
@@ -16008,7 +16076,7 @@ class CreateChatInput$Type extends import_runtime4.MessageType {
|
|
|
16008
16076
|
return message;
|
|
16009
16077
|
}
|
|
16010
16078
|
internalBinaryWrite(message, writer, options) {
|
|
16011
|
-
if (message.title !==
|
|
16079
|
+
if (message.title !== undefined)
|
|
16012
16080
|
writer.tag(1, import_runtime.WireType.LengthDelimited).string(message.title);
|
|
16013
16081
|
if (message.spaceId !== undefined)
|
|
16014
16082
|
writer.tag(2, import_runtime.WireType.Varint).int64(message.spaceId);
|
|
@@ -16858,7 +16926,8 @@ class UpdateChatInfo$Type extends import_runtime4.MessageType {
|
|
|
16858
16926
|
super("UpdateChatInfo", [
|
|
16859
16927
|
{ no: 1, name: "chat_id", kind: "scalar", T: 3, L: 0 },
|
|
16860
16928
|
{ no: 2, name: "title", kind: "scalar", opt: true, T: 9 },
|
|
16861
|
-
{ no: 3, name: "emoji", kind: "scalar", opt: true, T: 9 }
|
|
16929
|
+
{ no: 3, name: "emoji", kind: "scalar", opt: true, T: 9 },
|
|
16930
|
+
{ no: 4, name: "untitled", kind: "scalar", opt: true, T: 8 }
|
|
16862
16931
|
]);
|
|
16863
16932
|
}
|
|
16864
16933
|
create(value) {
|
|
@@ -16882,6 +16951,9 @@ class UpdateChatInfo$Type extends import_runtime4.MessageType {
|
|
|
16882
16951
|
case 3:
|
|
16883
16952
|
message.emoji = reader.string();
|
|
16884
16953
|
break;
|
|
16954
|
+
case 4:
|
|
16955
|
+
message.untitled = reader.bool();
|
|
16956
|
+
break;
|
|
16885
16957
|
default:
|
|
16886
16958
|
let u = options.readUnknownField;
|
|
16887
16959
|
if (u === "throw")
|
|
@@ -16900,6 +16972,8 @@ class UpdateChatInfo$Type extends import_runtime4.MessageType {
|
|
|
16900
16972
|
writer.tag(2, import_runtime.WireType.LengthDelimited).string(message.title);
|
|
16901
16973
|
if (message.emoji !== undefined)
|
|
16902
16974
|
writer.tag(3, import_runtime.WireType.LengthDelimited).string(message.emoji);
|
|
16975
|
+
if (message.untitled !== undefined)
|
|
16976
|
+
writer.tag(4, import_runtime.WireType.Varint).bool(message.untitled);
|
|
16903
16977
|
let u = options.writeUnknownFields;
|
|
16904
16978
|
if (u !== false)
|
|
16905
16979
|
(u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -37514,6 +37588,7 @@ var INLINE_FORMATTING_RULES = [
|
|
|
37514
37588
|
"Prefer bullet lists over markdown tables.",
|
|
37515
37589
|
"If a table is necessary, render it inside a fenced code block.",
|
|
37516
37590
|
"Use plain URLs or markdown links; do not wrap bare URLs in inline code or backticks.",
|
|
37591
|
+
"Mention Inline users with markdown links like [@FirstName](inline://user?id=123); use inline://user?username=username only when the user id is unavailable.",
|
|
37517
37592
|
"Use inline code only for actual code, commands, file paths, env vars, or identifiers."
|
|
37518
37593
|
];
|
|
37519
37594
|
var INLINE_COPY_REPLACEMENTS = [
|
|
@@ -40442,5 +40517,5 @@ export {
|
|
|
40442
40517
|
inlineApprovalNativeRuntime
|
|
40443
40518
|
};
|
|
40444
40519
|
|
|
40445
|
-
//# debugId=
|
|
40520
|
+
//# debugId=8AACB7C51F8324B864756E2164756E21
|
|
40446
40521
|
//# sourceMappingURL=approval-handler.runtime.js.map
|