@inline-openclaw/inline 0.0.22 → 0.0.23
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 -6
- package/dist/index.js +395 -79
- package/dist/index.js.map +8 -7
- package/dist/inline/actions.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/monitor.d.ts.map +1 -1
- package/dist/inline/reply-threads.d.ts +34 -0
- package/dist/inline/reply-threads.d.ts.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/inline/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,2BAA2B,EAE3B,2BAA2B,EAE5B,MAAM,sCAAsC,CAAA;AAC7C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/inline/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,2BAA2B,EAE3B,2BAA2B,EAE5B,MAAM,sCAAsC,CAAA;AAC7C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAmwB9D,iBAAS,yBAAyB,CAAC,EACjC,GAAG,GACJ,EAAE,UAAU,CAAC,WAAW,CAAC,2BAA2B,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,2BAA2B,CA2B9G;AAyBD,eAAO,MAAM,oBAAoB;;2BAER;QAAE,GAAG,EAAE,cAAc,CAAA;KAAE;+BACnB;QAAE,GAAG,EAAE,cAAc,CAAA;KAAE;;;;;;;;;;;;;;;;;CA0/BsB,CAAA;AAE1E,eAAO,MAAM,sBAAsB,0zBAAmB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../../src/inline/channel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAkB,MAAM,0BAA0B,CAAA;AAG7E,OAAO,EAKL,KAAK,qBAAqB,EAC3B,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../../src/inline/channel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAkB,MAAM,0BAA0B,CAAA;AAG7E,OAAO,EAKL,KAAK,qBAAqB,EAC3B,MAAM,eAAe,CAAA;AAukBtB,eAAO,MAAM,mBAAmB,EAAE,aAAa,CAAC,qBAAqB,CAwepE,CAAA"}
|
|
@@ -5,6 +5,9 @@ export declare const InlineAccountSchemaBase: z.ZodObject<{
|
|
|
5
5
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
6
6
|
token: z.ZodOptional<z.ZodString>;
|
|
7
7
|
tokenFile: z.ZodOptional<z.ZodString>;
|
|
8
|
+
capabilities: z.ZodOptional<z.ZodObject<{
|
|
9
|
+
replyThreads: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
+
}, z.core.$strict>>;
|
|
8
11
|
dmPolicy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
9
12
|
open: "open";
|
|
10
13
|
disabled: "disabled";
|
|
@@ -75,6 +78,9 @@ export declare const InlineRuntimeAccountSchema: z.ZodObject<{
|
|
|
75
78
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
76
79
|
token: z.ZodOptional<z.ZodString>;
|
|
77
80
|
tokenFile: z.ZodOptional<z.ZodString>;
|
|
81
|
+
capabilities: z.ZodOptional<z.ZodObject<{
|
|
82
|
+
replyThreads: z.ZodOptional<z.ZodBoolean>;
|
|
83
|
+
}, z.core.$strict>>;
|
|
78
84
|
dmPolicy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
79
85
|
open: "open";
|
|
80
86
|
disabled: "disabled";
|
|
@@ -145,6 +151,9 @@ export declare const InlineAccountSchema: z.ZodObject<{
|
|
|
145
151
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
146
152
|
token: z.ZodOptional<z.ZodString>;
|
|
147
153
|
tokenFile: z.ZodOptional<z.ZodString>;
|
|
154
|
+
capabilities: z.ZodOptional<z.ZodObject<{
|
|
155
|
+
replyThreads: z.ZodOptional<z.ZodBoolean>;
|
|
156
|
+
}, z.core.$strict>>;
|
|
148
157
|
dmPolicy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
149
158
|
open: "open";
|
|
150
159
|
disabled: "disabled";
|
|
@@ -215,6 +224,9 @@ export declare const InlineRuntimeConfigSchema: z.ZodObject<{
|
|
|
215
224
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
216
225
|
token: z.ZodOptional<z.ZodString>;
|
|
217
226
|
tokenFile: z.ZodOptional<z.ZodString>;
|
|
227
|
+
capabilities: z.ZodOptional<z.ZodObject<{
|
|
228
|
+
replyThreads: z.ZodOptional<z.ZodBoolean>;
|
|
229
|
+
}, z.core.$strict>>;
|
|
218
230
|
dmPolicy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
219
231
|
open: "open";
|
|
220
232
|
disabled: "disabled";
|
|
@@ -284,6 +296,9 @@ export declare const InlineRuntimeConfigSchema: z.ZodObject<{
|
|
|
284
296
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
285
297
|
token: z.ZodOptional<z.ZodString>;
|
|
286
298
|
tokenFile: z.ZodOptional<z.ZodString>;
|
|
299
|
+
capabilities: z.ZodOptional<z.ZodObject<{
|
|
300
|
+
replyThreads: z.ZodOptional<z.ZodBoolean>;
|
|
301
|
+
}, z.core.$strict>>;
|
|
287
302
|
dmPolicy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
288
303
|
open: "open";
|
|
289
304
|
disabled: "disabled";
|
|
@@ -355,6 +370,9 @@ export declare const InlineConfigSchema: z.ZodObject<{
|
|
|
355
370
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
356
371
|
token: z.ZodOptional<z.ZodString>;
|
|
357
372
|
tokenFile: z.ZodOptional<z.ZodString>;
|
|
373
|
+
capabilities: z.ZodOptional<z.ZodObject<{
|
|
374
|
+
replyThreads: z.ZodOptional<z.ZodBoolean>;
|
|
375
|
+
}, z.core.$strict>>;
|
|
358
376
|
dmPolicy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
359
377
|
open: "open";
|
|
360
378
|
disabled: "disabled";
|
|
@@ -424,6 +442,9 @@ export declare const InlineConfigSchema: z.ZodObject<{
|
|
|
424
442
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
425
443
|
token: z.ZodOptional<z.ZodString>;
|
|
426
444
|
tokenFile: z.ZodOptional<z.ZodString>;
|
|
445
|
+
capabilities: z.ZodOptional<z.ZodObject<{
|
|
446
|
+
replyThreads: z.ZodOptional<z.ZodBoolean>;
|
|
447
|
+
}, z.core.$strict>>;
|
|
427
448
|
dmPolicy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
428
449
|
open: "open";
|
|
429
450
|
disabled: "disabled";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-schema.d.ts","sourceRoot":"","sources":["../../src/inline/config-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"config-schema.d.ts","sourceRoot":"","sources":["../../src/inline/config-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AA+CvB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA4BzB,CAAA;AAEX,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAwC,CAAA;AAE/E,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAS9B,CAAA;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAEtB,CAAA;AAEhB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAW7B,CAAA;AAEF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAC7D,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AACrE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"monitor.d.ts","sourceRoot":"","sources":["../../src/inline/monitor.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAC9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAEjE,OAAO,EAAsB,KAAK,qBAAqB,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"monitor.d.ts","sourceRoot":"","sources":["../../src/inline/monitor.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAC9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAEjE,OAAO,EAAsB,KAAK,qBAAqB,EAAE,MAAM,eAAe,CAAA;AAqB9E,KAAK,mBAAmB,GAAG;IACzB,IAAI,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;IACzB,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,CAAA;CACpB,CAAA;AAED,KAAK,UAAU,GAAG,CAAC,KAAK,EAAE;IAAE,aAAa,CAAC,EAAE,MAAM,CAAC;IAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,KAAK,IAAI,CAAA;AAw8B1G,wBAAsB,qBAAqB,CAAC,MAAM,EAAE;IAClD,GAAG,EAAE,cAAc,CAAA;IACnB,OAAO,EAAE,qBAAqB,CAAA;IAC9B,OAAO,EAAE,UAAU,CAAA;IACnB,WAAW,EAAE,WAAW,CAAA;IACxB,GAAG,CAAC,EAAE;QAAE,IAAI,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;QAAC,IAAI,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;QAAC,KAAK,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;QAAC,KAAK,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;KAAE,CAAA;IAC/H,UAAU,CAAC,EAAE,UAAU,CAAA;CACxB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAy9B/B"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { OpenClawConfig } from "openclaw/plugin-sdk/core";
|
|
2
|
+
import { InlineSdkClient, type Message } from "@inline-chat/realtime-sdk";
|
|
3
|
+
export type InlineReplyThreadMetadata = {
|
|
4
|
+
childChatId: bigint;
|
|
5
|
+
parentChatId: bigint;
|
|
6
|
+
parentMessageId: bigint | null;
|
|
7
|
+
title: string | null;
|
|
8
|
+
};
|
|
9
|
+
export declare function getInlineReplyThreadsCapabilityConfig(params: {
|
|
10
|
+
cfg: OpenClawConfig;
|
|
11
|
+
accountId?: string | null;
|
|
12
|
+
}): {
|
|
13
|
+
replyThreads: boolean;
|
|
14
|
+
};
|
|
15
|
+
export declare function isInlineReplyThreadsEnabled(params: {
|
|
16
|
+
cfg: OpenClawConfig;
|
|
17
|
+
accountId?: string | null;
|
|
18
|
+
}): boolean;
|
|
19
|
+
export declare function resolveInlineReplyThreadChatId(params: {
|
|
20
|
+
cfg: OpenClawConfig;
|
|
21
|
+
accountId?: string | null;
|
|
22
|
+
parentChatId: bigint | null;
|
|
23
|
+
threadId?: string | number | null;
|
|
24
|
+
}): bigint | null;
|
|
25
|
+
export declare function loadInlineReplyThreadMetadata(params: {
|
|
26
|
+
client: InlineSdkClient;
|
|
27
|
+
chatId: bigint;
|
|
28
|
+
}): Promise<InlineReplyThreadMetadata | null>;
|
|
29
|
+
export declare function loadInlineReplyThreadAnchorMessage(params: {
|
|
30
|
+
client: InlineSdkClient;
|
|
31
|
+
parentChatId: bigint;
|
|
32
|
+
parentMessageId: bigint;
|
|
33
|
+
}): Promise<Message | null>;
|
|
34
|
+
//# sourceMappingURL=reply-threads.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reply-threads.d.ts","sourceRoot":"","sources":["../../src/inline/reply-threads.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAC9D,OAAO,EAAE,eAAe,EAAU,KAAK,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAwBjF,MAAM,MAAM,yBAAyB,GAAG;IACtC,WAAW,EAAE,MAAM,CAAA;IACnB,YAAY,EAAE,MAAM,CAAA;IACpB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CACrB,CAAA;AAgBD,wBAAgB,qCAAqC,CAAC,MAAM,EAAE;IAC5D,GAAG,EAAE,cAAc,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC1B,GAAG;IAAE,YAAY,EAAE,OAAO,CAAA;CAAE,CAS5B;AAED,wBAAgB,2BAA2B,CAAC,MAAM,EAAE;IAClD,GAAG,EAAE,cAAc,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC1B,GAAG,OAAO,CAEV;AAED,wBAAgB,8BAA8B,CAAC,MAAM,EAAE;IACrD,GAAG,EAAE,cAAc,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAA;CAClC,GAAG,MAAM,GAAG,IAAI,CA6BhB;AAED,wBAAsB,6BAA6B,CAAC,MAAM,EAAE;IAC1D,MAAM,EAAE,eAAe,CAAA;IACvB,MAAM,EAAE,MAAM,CAAA;CACf,GAAG,OAAO,CAAC,yBAAyB,GAAG,IAAI,CAAC,CAwB5C;AAED,wBAAsB,kCAAkC,CAAC,MAAM,EAAE;IAC/D,MAAM,EAAE,eAAe,CAAA;IACvB,YAAY,EAAE,MAAM,CAAA;IACpB,eAAe,EAAE,MAAM,CAAA;CACxB,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,CAmC1B"}
|