@inline-openclaw/inline 0.0.21 → 0.0.22

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.
Files changed (37) hide show
  1. package/README.md +1 -1
  2. package/dist/index.d.ts +1 -1
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +696 -144
  5. package/dist/index.js.map +19 -17
  6. package/dist/inline/accounts.d.ts +1 -1
  7. package/dist/inline/accounts.d.ts.map +1 -1
  8. package/dist/inline/actions.d.ts +30 -3
  9. package/dist/inline/actions.d.ts.map +1 -1
  10. package/dist/inline/bot-commands-sync.d.ts +1 -1
  11. package/dist/inline/bot-commands-sync.d.ts.map +1 -1
  12. package/dist/inline/bot-commands-tool.d.ts +1 -1
  13. package/dist/inline/bot-commands-tool.d.ts.map +1 -1
  14. package/dist/inline/channel.d.ts +1 -1
  15. package/dist/inline/channel.d.ts.map +1 -1
  16. package/dist/inline/config-schema.d.ts +14 -14
  17. package/dist/inline/config-schema.d.ts.map +1 -1
  18. package/dist/inline/media.d.ts +1 -1
  19. package/dist/inline/media.d.ts.map +1 -1
  20. package/dist/inline/members-tool.d.ts +1 -1
  21. package/dist/inline/members-tool.d.ts.map +1 -1
  22. package/dist/inline/message-tools.d.ts +1 -1
  23. package/dist/inline/message-tools.d.ts.map +1 -1
  24. package/dist/inline/monitor.d.ts +2 -1
  25. package/dist/inline/monitor.d.ts.map +1 -1
  26. package/dist/inline/policy.d.ts +1 -1
  27. package/dist/inline/policy.d.ts.map +1 -1
  28. package/dist/inline/profile-tool.d.ts +1 -1
  29. package/dist/inline/profile-tool.d.ts.map +1 -1
  30. package/dist/openclaw-compat.d.ts +141 -0
  31. package/dist/openclaw-compat.d.ts.map +1 -0
  32. package/dist/runtime.d.ts +1 -1
  33. package/dist/runtime.d.ts.map +1 -1
  34. package/dist/sdk-runtime-compat.d.ts +83 -0
  35. package/dist/sdk-runtime-compat.d.ts.map +1 -0
  36. package/dist/tsconfig.tsbuildinfo +1 -1
  37. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import type { OpenClawConfig } from "openclaw/plugin-sdk";
1
+ import type { OpenClawConfig } from "openclaw/plugin-sdk/core";
2
2
  import type { InlineRuntimeConfig } from "./config-schema.js";
3
3
  export type ResolvedInlineAccount = {
4
4
  accountId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../../src/inline/accounts.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAEzD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAG7D,MAAM,MAAM,qBAAqB,GAAG;IAClC,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,OAAO,CAAA;IAChB,UAAU,EAAE,OAAO,CAAA;IACnB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,MAAM,EAAE,mBAAmB,CAAA;CAC5B,CAAA;AAiBD,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,cAAc,GAAG,MAAM,EAAE,CAelE;AAED,wBAAgB,6BAA6B,CAAC,GAAG,EAAE,cAAc,GAAG,MAAM,CAIzE;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE;IAC3C,GAAG,EAAE,cAAc,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC1B,GAAG,qBAAqB,CAqCxB;AAED,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,MAAM,CAAC,CAWxF"}
1
+ {"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../../src/inline/accounts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAE9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAI7D,MAAM,MAAM,qBAAqB,GAAG;IAClC,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,OAAO,CAAA;IAChB,UAAU,EAAE,OAAO,CAAA;IACnB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,MAAM,EAAE,mBAAmB,CAAA;CAC5B,CAAA;AAiBD,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,cAAc,GAAG,MAAM,EAAE,CAelE;AAED,wBAAgB,6BAA6B,CAAC,GAAG,EAAE,cAAc,GAAG,MAAM,CAIzE;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE;IAC3C,GAAG,EAAE,cAAc,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC1B,GAAG,qBAAqB,CAqCxB;AAED,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,MAAM,CAAC,CAWxF"}
@@ -1,4 +1,31 @@
1
- import { type ChannelMessageActionAdapter } from "openclaw/plugin-sdk";
2
- export declare const inlineMessageActions: ChannelMessageActionAdapter;
3
- export declare const inlineSupportedActions: ("send" | "reply" | "reactions" | "read" | "search" | "edit" | "delete" | "permissions" | "timeout" | "broadcast" | "poll" | "poll-vote" | "react" | "unsend" | "sendWithEffect" | "renameGroup" | "setGroupIcon" | "addParticipant" | "removeParticipant" | "leaveGroup" | "sendAttachment" | "pin" | "unpin" | "list-pins" | "thread-create" | "thread-list" | "thread-reply" | "sticker" | "sticker-search" | "member-info" | "role-info" | "emoji-list" | "emoji-upload" | "sticker-upload" | "role-add" | "role-remove" | "channel-info" | "channel-list" | "channel-create" | "channel-edit" | "channel-delete" | "channel-move" | "category-create" | "category-edit" | "category-delete" | "topic-create" | "voice-status" | "event-list" | "event-create" | "kick" | "ban" | "set-presence" | "download-file")[];
1
+ import type { ChannelMessageActionAdapter, ChannelMessageToolDiscovery } from "openclaw/plugin-sdk/channel-contract";
2
+ import type { OpenClawConfig } from "openclaw/plugin-sdk/core";
3
+ declare function describeInlineMessageTool({ cfg, }: Parameters<NonNullable<ChannelMessageActionAdapter["describeMessageTool"]>>[0]): ChannelMessageToolDiscovery;
4
+ export declare const inlineMessageActions: {
5
+ describeMessageTool: typeof describeInlineMessageTool;
6
+ listActions: ({ cfg }: {
7
+ cfg: OpenClawConfig;
8
+ }) => ("send" | "reply" | "reactions" | "read" | "search" | "edit" | "delete" | "permissions" | "timeout" | "broadcast" | "poll" | "poll-vote" | "react" | "unsend" | "sendWithEffect" | "renameGroup" | "setGroupIcon" | "addParticipant" | "removeParticipant" | "leaveGroup" | "sendAttachment" | "pin" | "unpin" | "list-pins" | "thread-create" | "thread-list" | "thread-reply" | "sticker" | "sticker-search" | "member-info" | "role-info" | "emoji-list" | "emoji-upload" | "sticker-upload" | "role-add" | "role-remove" | "channel-info" | "channel-list" | "channel-create" | "channel-edit" | "channel-delete" | "channel-move" | "category-create" | "category-edit" | "category-delete" | "topic-create" | "topic-edit" | "voice-status" | "event-list" | "event-create" | "kick" | "ban" | "set-profile" | "set-presence" | "download-file")[];
9
+ supportsButtons: ({ cfg }: {
10
+ cfg: OpenClawConfig;
11
+ }) => boolean;
12
+ supportsCards: () => false;
13
+ supportsAction: ({ action }: {
14
+ action: "send" | "reply" | "reactions" | "read" | "search" | "edit" | "delete" | "permissions" | "timeout" | "broadcast" | "poll" | "poll-vote" | "react" | "unsend" | "sendWithEffect" | "renameGroup" | "setGroupIcon" | "addParticipant" | "removeParticipant" | "leaveGroup" | "sendAttachment" | "pin" | "unpin" | "list-pins" | "thread-create" | "thread-list" | "thread-reply" | "sticker" | "sticker-search" | "member-info" | "role-info" | "emoji-list" | "emoji-upload" | "sticker-upload" | "role-add" | "role-remove" | "channel-info" | "channel-list" | "channel-create" | "channel-edit" | "channel-delete" | "channel-move" | "category-create" | "category-edit" | "category-delete" | "topic-create" | "topic-edit" | "voice-status" | "event-list" | "event-create" | "kick" | "ban" | "set-profile" | "set-presence" | "download-file";
15
+ }) => boolean;
16
+ extractToolSend: ({ args }: {
17
+ args: Record<string, unknown>;
18
+ }) => {
19
+ to: string;
20
+ } | null;
21
+ handleAction: ({ action, params, cfg, accountId }: import("openclaw/plugin-sdk").ChannelMessageActionContext) => Promise<{
22
+ content: {
23
+ type: "text";
24
+ text: string;
25
+ }[];
26
+ details: unknown;
27
+ }>;
28
+ };
29
+ export declare const inlineSupportedActions: ("send" | "reply" | "reactions" | "read" | "search" | "edit" | "delete" | "permissions" | "timeout" | "broadcast" | "poll" | "poll-vote" | "react" | "unsend" | "sendWithEffect" | "renameGroup" | "setGroupIcon" | "addParticipant" | "removeParticipant" | "leaveGroup" | "sendAttachment" | "pin" | "unpin" | "list-pins" | "thread-create" | "thread-list" | "thread-reply" | "sticker" | "sticker-search" | "member-info" | "role-info" | "emoji-list" | "emoji-upload" | "sticker-upload" | "role-add" | "role-remove" | "channel-info" | "channel-list" | "channel-create" | "channel-edit" | "channel-delete" | "channel-move" | "category-create" | "category-edit" | "category-delete" | "topic-create" | "topic-edit" | "voice-status" | "event-list" | "event-create" | "kick" | "ban" | "set-profile" | "set-presence" | "download-file")[];
30
+ export {};
4
31
  //# sourceMappingURL=actions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/inline/actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,2BAA2B,EAGjC,MAAM,qBAAqB,CAAA;AAkvB5B,eAAO,MAAM,oBAAoB,EAAE,2BAg7BlC,CAAA;AAED,eAAO,MAAM,sBAAsB,2xBAAmB,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;AA4vB9D,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;;;;;;;;;;;;;;;;;CAo6BsB,CAAA;AAE1E,eAAO,MAAM,sBAAsB,0zBAAmB,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { OpenClawConfig } from "openclaw/plugin-sdk";
1
+ import type { OpenClawConfig } from "openclaw/plugin-sdk/core";
2
2
  type InlineCommandsSyncLogger = {
3
3
  info?: (message: string) => void;
4
4
  warn?: (message: string) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"bot-commands-sync.d.ts","sourceRoot":"","sources":["../../src/inline/bot-commands-sync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAiCzD,KAAK,wBAAwB,GAAG;IAC9B,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;IAChC,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;CACjC,CAAA;AAyCD,wBAAgB,8BAA8B,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAM3E;AAwDD,wBAAsB,wBAAwB,CAAC,MAAM,EAAE;IACrD,GAAG,EAAE,cAAc,CAAA;IACnB,MAAM,CAAC,EAAE,wBAAwB,CAAA;CAClC,GAAG,OAAO,CAAC;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAkEjE"}
1
+ {"version":3,"file":"bot-commands-sync.d.ts","sourceRoot":"","sources":["../../src/inline/bot-commands-sync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAiC9D,KAAK,wBAAwB,GAAG;IAC9B,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;IAChC,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;CACjC,CAAA;AAuCD,wBAAgB,8BAA8B,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAM3E;AAgDD,wBAAsB,wBAAwB,CAAC,MAAM,EAAE;IACrD,GAAG,EAAE,cAAc,CAAA;IACnB,MAAM,CAAC,EAAE,wBAAwB,CAAA;CAClC,GAAG,OAAO,CAAC;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CA8EjE"}
@@ -1,4 +1,4 @@
1
- import { type AnyAgentTool, type OpenClawConfig } from "openclaw/plugin-sdk";
1
+ import type { AnyAgentTool, OpenClawConfig } from "openclaw/plugin-sdk/core";
2
2
  export declare function createInlineBotCommandsTool(ctx: {
3
3
  config?: OpenClawConfig;
4
4
  agentAccountId?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"bot-commands-tool.d.ts","sourceRoot":"","sources":["../../src/inline/bot-commands-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,YAAY,EAAE,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAkHxF,wBAAgB,2BAA2B,CAAC,GAAG,EAAE;IAC/C,MAAM,CAAC,EAAE,cAAc,CAAA;IACvB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,GAAG,YAAY,GAAG,IAAI,CA2EtB"}
1
+ {"version":3,"file":"bot-commands-tool.d.ts","sourceRoot":"","sources":["../../src/inline/bot-commands-tool.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAmH5E,wBAAgB,2BAA2B,CAAC,GAAG,EAAE;IAC/C,MAAM,CAAC,EAAE,cAAc,CAAA;IACvB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,GAAG,YAAY,GAAG,IAAI,CA2EtB"}
@@ -1,4 +1,4 @@
1
- import { type ChannelPlugin } from "openclaw/plugin-sdk";
1
+ import type { ChannelPlugin } from "openclaw/plugin-sdk/core";
2
2
  import { type ResolvedInlineAccount } from "./accounts.js";
3
3
  export declare const inlineChannelPlugin: ChannelPlugin<ResolvedInlineAccount>;
4
4
  //# sourceMappingURL=channel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../../src/inline/channel.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,aAAa,EAEnB,MAAM,qBAAqB,CAAA;AAG5B,OAAO,EAKL,KAAK,qBAAqB,EAC3B,MAAM,eAAe,CAAA;AA0iBtB,eAAO,MAAM,mBAAmB,EAAE,aAAa,CAAC,qBAAqB,CA8bpE,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;AAgjBtB,eAAO,MAAM,mBAAmB,EAAE,aAAa,CAAC,qBAAqB,CA8bpE,CAAA"}
@@ -6,18 +6,18 @@ export declare const InlineAccountSchemaBase: z.ZodObject<{
6
6
  token: z.ZodOptional<z.ZodString>;
7
7
  tokenFile: z.ZodOptional<z.ZodString>;
8
8
  dmPolicy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
9
- allowlist: "allowlist";
10
9
  open: "open";
11
10
  disabled: "disabled";
11
+ allowlist: "allowlist";
12
12
  pairing: "pairing";
13
13
  }>>>;
14
14
  allowFrom: z.ZodOptional<z.ZodArray<z.ZodString>>;
15
15
  systemPrompt: z.ZodOptional<z.ZodString>;
16
16
  groupAllowFrom: z.ZodOptional<z.ZodArray<z.ZodString>>;
17
17
  groupPolicy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
18
- allowlist: "allowlist";
19
18
  open: "open";
20
19
  disabled: "disabled";
20
+ allowlist: "allowlist";
21
21
  }>>>;
22
22
  groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodObject<{
23
23
  requireMention: z.ZodOptional<z.ZodBoolean>;
@@ -76,18 +76,18 @@ export declare const InlineRuntimeAccountSchema: z.ZodObject<{
76
76
  token: z.ZodOptional<z.ZodString>;
77
77
  tokenFile: z.ZodOptional<z.ZodString>;
78
78
  dmPolicy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
79
- allowlist: "allowlist";
80
79
  open: "open";
81
80
  disabled: "disabled";
81
+ allowlist: "allowlist";
82
82
  pairing: "pairing";
83
83
  }>>>;
84
84
  allowFrom: z.ZodOptional<z.ZodArray<z.ZodString>>;
85
85
  systemPrompt: z.ZodOptional<z.ZodString>;
86
86
  groupAllowFrom: z.ZodOptional<z.ZodArray<z.ZodString>>;
87
87
  groupPolicy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
88
- allowlist: "allowlist";
89
88
  open: "open";
90
89
  disabled: "disabled";
90
+ allowlist: "allowlist";
91
91
  }>>>;
92
92
  groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodObject<{
93
93
  requireMention: z.ZodOptional<z.ZodBoolean>;
@@ -146,18 +146,18 @@ export declare const InlineAccountSchema: z.ZodObject<{
146
146
  token: z.ZodOptional<z.ZodString>;
147
147
  tokenFile: z.ZodOptional<z.ZodString>;
148
148
  dmPolicy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
149
- allowlist: "allowlist";
150
149
  open: "open";
151
150
  disabled: "disabled";
151
+ allowlist: "allowlist";
152
152
  pairing: "pairing";
153
153
  }>>>;
154
154
  allowFrom: z.ZodOptional<z.ZodArray<z.ZodString>>;
155
155
  systemPrompt: z.ZodOptional<z.ZodString>;
156
156
  groupAllowFrom: z.ZodOptional<z.ZodArray<z.ZodString>>;
157
157
  groupPolicy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
158
- allowlist: "allowlist";
159
158
  open: "open";
160
159
  disabled: "disabled";
160
+ allowlist: "allowlist";
161
161
  }>>>;
162
162
  groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodObject<{
163
163
  requireMention: z.ZodOptional<z.ZodBoolean>;
@@ -216,18 +216,18 @@ export declare const InlineRuntimeConfigSchema: z.ZodObject<{
216
216
  token: z.ZodOptional<z.ZodString>;
217
217
  tokenFile: z.ZodOptional<z.ZodString>;
218
218
  dmPolicy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
219
- allowlist: "allowlist";
220
219
  open: "open";
221
220
  disabled: "disabled";
221
+ allowlist: "allowlist";
222
222
  pairing: "pairing";
223
223
  }>>>;
224
224
  allowFrom: z.ZodOptional<z.ZodArray<z.ZodString>>;
225
225
  systemPrompt: z.ZodOptional<z.ZodString>;
226
226
  groupAllowFrom: z.ZodOptional<z.ZodArray<z.ZodString>>;
227
227
  groupPolicy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
228
- allowlist: "allowlist";
229
228
  open: "open";
230
229
  disabled: "disabled";
230
+ allowlist: "allowlist";
231
231
  }>>>;
232
232
  groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodObject<{
233
233
  requireMention: z.ZodOptional<z.ZodBoolean>;
@@ -285,18 +285,18 @@ export declare const InlineRuntimeConfigSchema: z.ZodObject<{
285
285
  token: z.ZodOptional<z.ZodString>;
286
286
  tokenFile: z.ZodOptional<z.ZodString>;
287
287
  dmPolicy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
288
- allowlist: "allowlist";
289
288
  open: "open";
290
289
  disabled: "disabled";
290
+ allowlist: "allowlist";
291
291
  pairing: "pairing";
292
292
  }>>>;
293
293
  allowFrom: z.ZodOptional<z.ZodArray<z.ZodString>>;
294
294
  systemPrompt: z.ZodOptional<z.ZodString>;
295
295
  groupAllowFrom: z.ZodOptional<z.ZodArray<z.ZodString>>;
296
296
  groupPolicy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
297
- allowlist: "allowlist";
298
297
  open: "open";
299
298
  disabled: "disabled";
299
+ allowlist: "allowlist";
300
300
  }>>>;
301
301
  groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodObject<{
302
302
  requireMention: z.ZodOptional<z.ZodBoolean>;
@@ -356,18 +356,18 @@ export declare const InlineConfigSchema: z.ZodObject<{
356
356
  token: z.ZodOptional<z.ZodString>;
357
357
  tokenFile: z.ZodOptional<z.ZodString>;
358
358
  dmPolicy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
359
- allowlist: "allowlist";
360
359
  open: "open";
361
360
  disabled: "disabled";
361
+ allowlist: "allowlist";
362
362
  pairing: "pairing";
363
363
  }>>>;
364
364
  allowFrom: z.ZodOptional<z.ZodArray<z.ZodString>>;
365
365
  systemPrompt: z.ZodOptional<z.ZodString>;
366
366
  groupAllowFrom: z.ZodOptional<z.ZodArray<z.ZodString>>;
367
367
  groupPolicy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
368
- allowlist: "allowlist";
369
368
  open: "open";
370
369
  disabled: "disabled";
370
+ allowlist: "allowlist";
371
371
  }>>>;
372
372
  groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodObject<{
373
373
  requireMention: z.ZodOptional<z.ZodBoolean>;
@@ -425,18 +425,18 @@ export declare const InlineConfigSchema: z.ZodObject<{
425
425
  token: z.ZodOptional<z.ZodString>;
426
426
  tokenFile: z.ZodOptional<z.ZodString>;
427
427
  dmPolicy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
428
- allowlist: "allowlist";
429
428
  open: "open";
430
429
  disabled: "disabled";
430
+ allowlist: "allowlist";
431
431
  pairing: "pairing";
432
432
  }>>>;
433
433
  allowFrom: z.ZodOptional<z.ZodArray<z.ZodString>>;
434
434
  systemPrompt: z.ZodOptional<z.ZodString>;
435
435
  groupAllowFrom: z.ZodOptional<z.ZodArray<z.ZodString>>;
436
436
  groupPolicy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
437
- allowlist: "allowlist";
438
437
  open: "open";
439
438
  disabled: "disabled";
439
+ allowlist: "allowlist";
440
440
  }>>>;
441
441
  groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodObject<{
442
442
  requireMention: z.ZodOptional<z.ZodBoolean>;
@@ -1 +1 @@
1
- {"version":3,"file":"config-schema.d.ts","sourceRoot":"","sources":["../../src/inline/config-schema.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAkCvB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA2BzB,CAAA;AAEX,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAwC,CAAA;AAE/E,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAS9B,CAAA;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,5 +1,5 @@
1
1
  import type { InlineSdkClient, InlineSdkSendMessageMedia } from "@inline-chat/realtime-sdk";
2
- import { type OpenClawConfig } from "openclaw/plugin-sdk";
2
+ import type { OpenClawConfig } from "openclaw/plugin-sdk/core";
3
3
  export declare function uploadInlineMediaFromUrl(params: {
4
4
  client: InlineSdkClient;
5
5
  cfg: OpenClawConfig;
@@ -1 +1 @@
1
- {"version":3,"file":"media.d.ts","sourceRoot":"","sources":["../../src/inline/media.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAA;AAC3F,OAAO,EAKL,KAAK,cAAc,EACpB,MAAM,qBAAqB,CAAA;AAgL5B,wBAAsB,wBAAwB,CAAC,MAAM,EAAE;IACrD,MAAM,EAAE,eAAe,CAAA;IACvB,GAAG,EAAE,cAAc,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,QAAQ,EAAE,MAAM,CAAA;CACjB,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAkFrC"}
1
+ {"version":3,"file":"media.d.ts","sourceRoot":"","sources":["../../src/inline/media.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAA;AAC3F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAiL9D,wBAAsB,wBAAwB,CAAC,MAAM,EAAE;IACrD,MAAM,EAAE,eAAe,CAAA;IACvB,GAAG,EAAE,cAAc,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,QAAQ,EAAE,MAAM,CAAA;CACjB,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAoFrC"}
@@ -1,4 +1,4 @@
1
- import type { AnyAgentTool, OpenClawConfig } from "openclaw/plugin-sdk";
1
+ import type { AnyAgentTool, OpenClawConfig } from "openclaw/plugin-sdk/core";
2
2
  export declare function createInlineMembersTool(ctx: {
3
3
  config?: OpenClawConfig;
4
4
  agentAccountId?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"members-tool.d.ts","sourceRoot":"","sources":["../../src/inline/members-tool.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AA0HvE,wBAAgB,uBAAuB,CAAC,GAAG,EAAE;IAC3C,MAAM,CAAC,EAAE,cAAc,CAAA;IACvB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,GAAG,YAAY,GAAG,IAAI,CA6CtB"}
1
+ {"version":3,"file":"members-tool.d.ts","sourceRoot":"","sources":["../../src/inline/members-tool.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AA0H5E,wBAAgB,uBAAuB,CAAC,GAAG,EAAE;IAC3C,MAAM,CAAC,EAAE,cAAc,CAAA;IACvB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,GAAG,YAAY,GAAG,IAAI,CA6CtB"}
@@ -1,4 +1,4 @@
1
- import { type AnyAgentTool, type OpenClawConfig } from "openclaw/plugin-sdk";
1
+ import type { AnyAgentTool, OpenClawConfig } from "openclaw/plugin-sdk/core";
2
2
  type InlineMessageToolContext = {
3
3
  config?: OpenClawConfig;
4
4
  agentAccountId?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"message-tools.d.ts","sourceRoot":"","sources":["../../src/inline/message-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,cAAc,EACpB,MAAM,qBAAqB,CAAA;AAK5B,KAAK,wBAAwB,GAAG;IAC9B,MAAM,CAAC,EAAE,cAAc,CAAA;IACvB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,CAAA;AAycD,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,wBAAwB,GAAG,YAAY,EAAE,CAGtF"}
1
+ {"version":3,"file":"message-tools.d.ts","sourceRoot":"","sources":["../../src/inline/message-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAM5E,KAAK,wBAAwB,GAAG;IAC9B,MAAM,CAAC,EAAE,cAAc,CAAA;IACvB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,CAAA;AAycD,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,wBAAwB,GAAG,YAAY,EAAE,CAGtF"}
@@ -1,4 +1,5 @@
1
- import { type OpenClawConfig, type RuntimeEnv } from "openclaw/plugin-sdk";
1
+ import type { OpenClawConfig } from "openclaw/plugin-sdk/core";
2
+ import type { RuntimeEnv } from "openclaw/plugin-sdk/runtime-env";
2
3
  import { type ResolvedInlineAccount } from "./accounts.js";
3
4
  type InlineMonitorHandle = {
4
5
  stop: () => Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"monitor.d.ts","sourceRoot":"","sources":["../../src/inline/monitor.ts"],"names":[],"mappings":"AAEA,OAAO,EAUL,KAAK,cAAc,EACnB,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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;AA4yB1G,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,CAy7B/B"}
@@ -1,4 +1,4 @@
1
- import { type OpenClawConfig } from "openclaw/plugin-sdk";
1
+ import type { OpenClawConfig } from "openclaw/plugin-sdk/core";
2
2
  type InlineToolPolicy = Record<string, unknown>;
3
3
  export declare function resolveInlineGroupRequireMention(params: {
4
4
  cfg: OpenClawConfig;
@@ -1 +1 @@
1
- {"version":3,"file":"policy.d.ts","sourceRoot":"","sources":["../../src/inline/policy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkD,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAEzG,KAAK,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AA2F/C,wBA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C,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IAClC,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IACnC,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IACrC,cAAc,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IACzC,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;CACtC,GAAG,gBAAgB,GAAG,SAAS,CAwB/B"}
@@ -1,4 +1,4 @@
1
- import { type AnyAgentTool, type OpenClawConfig } from "openclaw/plugin-sdk";
1
+ import type { AnyAgentTool, OpenClawConfig } from "openclaw/plugin-sdk/core";
2
2
  export declare function createInlineProfileTool(ctx: {
3
3
  config?: OpenClawConfig;
4
4
  agentAccountId?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"profile-tool.d.ts","sourceRoot":"","sources":["../../src/inline/profile-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,YAAY,EACjB,KAAK,cAAc,EACpB,MAAM,qBAAqB,CAAA;AA8G5B,wBAAgB,uBAAuB,CAAC,GAAG,EAAE;IAC3C,MAAM,CAAC,EAAE,cAAc,CAAA;IACvB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,GAAG,YAAY,GAAG,IAAI,CAyDtB"}
1
+ {"version":3,"file":"profile-tool.d.ts","sourceRoot":"","sources":["../../src/inline/profile-tool.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAyI5E,wBAAgB,uBAAuB,CAAC,GAAG,EAAE;IAC3C,MAAM,CAAC,EAAE,cAAc,CAAA;IACvB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,GAAG,YAAY,GAAG,IAAI,CAyDtB"}
@@ -0,0 +1,141 @@
1
+ import { z, type ZodTypeAny } from "zod";
2
+ import type { OpenClawConfig } from "openclaw/plugin-sdk/core";
3
+ export declare const DEFAULT_ACCOUNT_ID = "default";
4
+ export declare const PAIRING_APPROVED_MESSAGE = "\u2705 OpenClaw access approved. Send a message to start chatting.";
5
+ export declare function normalizeAccountId(value?: string | null): string;
6
+ export declare function emptyPluginConfigSchema(): {
7
+ safeParse(value: unknown): {
8
+ success: false;
9
+ error: {
10
+ issues: {
11
+ path: never[];
12
+ message: string;
13
+ }[];
14
+ };
15
+ } | {
16
+ success: true;
17
+ data: undefined;
18
+ } | {
19
+ success: true;
20
+ data: object;
21
+ };
22
+ jsonSchema: {
23
+ type: string;
24
+ additionalProperties: boolean;
25
+ properties: {};
26
+ };
27
+ };
28
+ export declare function buildChannelConfigSchema(schema: ZodTypeAny): {
29
+ schema: Record<string, unknown>;
30
+ };
31
+ export declare function formatPairingApproveHint(channelId: string): string;
32
+ export declare const GroupPolicySchema: z.ZodEnum<{
33
+ open: "open";
34
+ disabled: "disabled";
35
+ allowlist: "allowlist";
36
+ }>;
37
+ export declare const DmPolicySchema: z.ZodEnum<{
38
+ open: "open";
39
+ disabled: "disabled";
40
+ allowlist: "allowlist";
41
+ pairing: "pairing";
42
+ }>;
43
+ export declare const BlockStreamingCoalesceSchema: z.ZodObject<{
44
+ minChars: z.ZodOptional<z.ZodNumber>;
45
+ maxChars: z.ZodOptional<z.ZodNumber>;
46
+ idleMs: z.ZodOptional<z.ZodNumber>;
47
+ }, z.core.$strict>;
48
+ export declare const ToolPolicySchema: z.ZodOptional<z.ZodObject<{
49
+ allow: z.ZodOptional<z.ZodArray<z.ZodString>>;
50
+ alsoAllow: z.ZodOptional<z.ZodArray<z.ZodString>>;
51
+ deny: z.ZodOptional<z.ZodArray<z.ZodString>>;
52
+ }, z.core.$strict>>;
53
+ export declare function requireOpenAllowFrom(params: {
54
+ policy?: string;
55
+ allowFrom?: Array<string | number>;
56
+ ctx: z.RefinementCtx;
57
+ path: Array<string | number>;
58
+ message: string;
59
+ }): void;
60
+ type CommandAuthorizer = {
61
+ configured: boolean;
62
+ allowed: boolean;
63
+ };
64
+ export declare function resolveControlCommandGate(params: {
65
+ useAccessGroups: boolean;
66
+ authorizers: CommandAuthorizer[];
67
+ allowTextCommands: boolean;
68
+ hasControlCommand: boolean;
69
+ modeWhenAccessGroupsOff?: "allow" | "deny" | "configured";
70
+ }): {
71
+ commandAuthorized: boolean;
72
+ shouldBlock: boolean;
73
+ };
74
+ export declare function resolveMentionGatingWithBypass(params: {
75
+ isGroup: boolean;
76
+ requireMention: boolean;
77
+ canDetectMention: boolean;
78
+ wasMentioned: boolean;
79
+ implicitMention?: boolean;
80
+ hasAnyMention?: boolean;
81
+ allowTextCommands: boolean;
82
+ hasControlCommand: boolean;
83
+ commandAuthorized: boolean;
84
+ }): {
85
+ effectiveWasMentioned: boolean;
86
+ shouldSkip: boolean;
87
+ shouldBypassMention: boolean;
88
+ };
89
+ export declare function logInboundDrop(params: {
90
+ log: (message: string) => void;
91
+ channel: string;
92
+ reason: string;
93
+ target?: string;
94
+ }): void;
95
+ export declare function resolveChannelMediaMaxBytes(params: {
96
+ cfg: OpenClawConfig;
97
+ resolveChannelLimitMb: (params: {
98
+ cfg: OpenClawConfig;
99
+ accountId: string;
100
+ }) => number | undefined;
101
+ accountId?: string | null;
102
+ }): number | undefined;
103
+ export declare function createActionGate<T extends Record<string, boolean | undefined>>(actions: T | undefined): (key: keyof T, defaultValue?: boolean) => boolean;
104
+ type StringParamOptions = {
105
+ required?: boolean;
106
+ trim?: boolean;
107
+ label?: string;
108
+ allowEmpty?: boolean;
109
+ };
110
+ export declare class ToolInputError extends Error {
111
+ readonly status = 400;
112
+ constructor(message: string);
113
+ }
114
+ export declare function readStringParam(params: Record<string, unknown>, key: string, options: StringParamOptions & {
115
+ required: true;
116
+ }): string;
117
+ export declare function readStringParam(params: Record<string, unknown>, key: string, options?: StringParamOptions): string | undefined;
118
+ export declare function readNumberParam(params: Record<string, unknown>, key: string, options?: {
119
+ required?: boolean;
120
+ label?: string;
121
+ integer?: boolean;
122
+ strict?: boolean;
123
+ }): number | undefined;
124
+ export declare function readReactionParams(params: Record<string, unknown>, options: {
125
+ emojiKey?: string;
126
+ removeKey?: string;
127
+ removeErrorMessage: string;
128
+ }): {
129
+ emoji: string;
130
+ remove: boolean;
131
+ isEmpty: boolean;
132
+ };
133
+ export declare function jsonResult(payload: unknown): {
134
+ content: {
135
+ type: "text";
136
+ text: string;
137
+ }[];
138
+ details: unknown;
139
+ };
140
+ export {};
141
+ //# sourceMappingURL=openclaw-compat.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"openclaw-compat.d.ts","sourceRoot":"","sources":["../src/openclaw-compat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,KAAK,UAAU,EAAE,MAAM,KAAK,CAAA;AACxC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAS9D,eAAO,MAAM,kBAAkB,YAAY,CAAA;AAC3C,eAAO,MAAM,wBAAwB,uEACiC,CAAA;AAMtE,wBAAgB,kBAAkB,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAkBhE;AAED,wBAAgB,uBAAuB;qBAMlB,OAAO;;;;;;;;;;;;;;;;;;;;EAkB3B;AAED,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,UAAU;YAO/C,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;EAUlC;AAED,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAElE;AAED,eAAO,MAAM,iBAAiB;;;;EAA4C,CAAA;AAC1E,eAAO,MAAM,cAAc;;;;;EAAuD,CAAA;AAClF,eAAO,MAAM,4BAA4B;;;;kBAM9B,CAAA;AAUX,eAAO,MAAM,gBAAgB;;;;mBAQhB,CAAA;AAEb,wBAAgB,oBAAoB,CAAC,MAAM,EAAE;IAC3C,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAA;IAClC,GA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EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,CAAA;CAAO,GACxF,MAAM,GAAG,SAAS,CAsBpB;AAED,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,OAAO,EAAE;IACP,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,kBAAkB,EAAE,MAAM,CAAA;CAC3B,GACA;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAYtD;AAED,wBAAgB,UAAU,CAAC,OAAO,EAAE,OAAO;;;;;;EAU1C"}
package/dist/runtime.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { PluginRuntime } from "openclaw/plugin-sdk";
1
+ import type { PluginRuntime } from "openclaw/plugin-sdk/core";
2
2
  export declare function setInlineRuntime(next: PluginRuntime): void;
3
3
  export declare function getInlineRuntime(): PluginRuntime;
4
4
  //# sourceMappingURL=runtime.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAIxD,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,aAAa,GAAG,IAAI,CAE1D;AAED,wBAAgB,gBAAgB,IAAI,aAAa,CAKhD"}
1
+ {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AAI7D,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,aAAa,GAAG,IAAI,CAE1D;AAED,wBAAgB,gBAAgB,IAAI,aAAa,CAKhD"}
@@ -0,0 +1,83 @@
1
+ export declare const DEFAULT_GROUP_HISTORY_LIMIT = 50;
2
+ export type HistoryEntry = {
3
+ sender: string;
4
+ body: string;
5
+ timestamp?: number;
6
+ messageId?: string;
7
+ };
8
+ export type InlineTypingCallbacks = {
9
+ onReplyStart: () => Promise<void>;
10
+ onIdle?: () => void;
11
+ onCleanup?: () => void;
12
+ };
13
+ export type CreateInlineTypingCallbacksParams = {
14
+ start: () => Promise<void>;
15
+ stop?: () => Promise<void>;
16
+ onStartError: (err: unknown) => void;
17
+ onStopError?: (err: unknown) => void;
18
+ keepaliveIntervalMs?: number;
19
+ maxConsecutiveFailures?: number;
20
+ maxDurationMs?: number;
21
+ };
22
+ export type InlineChannelReplyPipeline = {
23
+ onModelSelected?: (ctx: unknown) => void;
24
+ responsePrefix?: string;
25
+ enableSlackInteractiveReplies?: boolean;
26
+ responsePrefixContextProvider?: () => unknown;
27
+ typingCallbacks?: InlineTypingCallbacks;
28
+ };
29
+ export declare function buildPendingHistoryContextFromMap(params: {
30
+ historyMap: Map<string, HistoryEntry[]>;
31
+ historyKey: string;
32
+ limit: number;
33
+ currentMessage: string;
34
+ formatEntry: (entry: HistoryEntry) => string;
35
+ lineBreak?: string;
36
+ }): string;
37
+ export declare function clearHistoryEntriesIfEnabled(params: {
38
+ historyMap: Map<string, HistoryEntry[]>;
39
+ historyKey: string;
40
+ limit: number;
41
+ }): void;
42
+ export declare function recordPendingHistoryEntryIfEnabled<T extends HistoryEntry>(params: {
43
+ historyMap: Map<string, T[]>;
44
+ historyKey: string;
45
+ entry?: T | null;
46
+ limit: number;
47
+ }): T[];
48
+ export declare function createMessageToolButtonsSchemaCompat(): Record<string, unknown>;
49
+ export declare function extensionForMimeCompat(mime: string | undefined): string | undefined;
50
+ export declare function createChannelReplyPipelineCompat(params: {
51
+ cfg: unknown;
52
+ agentId: string;
53
+ channel?: string;
54
+ accountId?: string;
55
+ typing?: CreateInlineTypingCallbacksParams;
56
+ typingCallbacks?: InlineTypingCallbacks;
57
+ }): Promise<InlineChannelReplyPipeline>;
58
+ export declare function loadNativeCommandHelpersCompat(): Promise<{
59
+ available: boolean;
60
+ listNativeCommandSpecsForConfig: (cfg: unknown, params?: {
61
+ skillCommands?: Array<{
62
+ name: string;
63
+ description: string;
64
+ }>;
65
+ }) => Array<{
66
+ name: string;
67
+ description: string;
68
+ }>;
69
+ listSkillCommandsForAgents: (params: {
70
+ cfg: unknown;
71
+ }) => Array<{
72
+ name: string;
73
+ description: string;
74
+ }>;
75
+ }>;
76
+ export declare function loadPluginCommandSpecsCompat(provider: string): Promise<{
77
+ available: boolean;
78
+ specs: Array<{
79
+ name: string;
80
+ description: string;
81
+ }>;
82
+ }>;
83
+ //# sourceMappingURL=sdk-runtime-compat.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sdk-runtime-compat.d.ts","sourceRoot":"","sources":["../src/sdk-runtime-compat.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,2BAA2B,KAAK,CAAA;AAE7C,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG;IAClC,YAAY,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;IACjC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,iCAAiC,GAAG;IAC9C,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;IAC1B,IAAI,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;IAC1B,YAAY,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAA;IACpC,WAAW,CAAC,EAAE,CAAC,GAA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