@inline-openclaw/inline 0.0.20 → 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 (43) hide show
  1. package/README.md +16 -1
  2. package/dist/index.d.ts +1 -1
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +3145 -620
  5. package/dist/index.js.map +26 -19
  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-api.d.ts +16 -0
  11. package/dist/inline/bot-commands-api.d.ts.map +1 -0
  12. package/dist/inline/bot-commands-sync.d.ts +16 -0
  13. package/dist/inline/bot-commands-sync.d.ts.map +1 -0
  14. package/dist/inline/bot-commands-tool.d.ts +6 -0
  15. package/dist/inline/bot-commands-tool.d.ts.map +1 -0
  16. package/dist/inline/channel.d.ts +1 -1
  17. package/dist/inline/channel.d.ts.map +1 -1
  18. package/dist/inline/command-menu-compat.d.ts +24 -0
  19. package/dist/inline/command-menu-compat.d.ts.map +1 -0
  20. package/dist/inline/config-schema.d.ts +42 -0
  21. package/dist/inline/config-schema.d.ts.map +1 -1
  22. package/dist/inline/media.d.ts +1 -1
  23. package/dist/inline/media.d.ts.map +1 -1
  24. package/dist/inline/members-tool.d.ts +1 -1
  25. package/dist/inline/members-tool.d.ts.map +1 -1
  26. package/dist/inline/message-formatting.d.ts +4 -0
  27. package/dist/inline/message-formatting.d.ts.map +1 -0
  28. package/dist/inline/message-tools.d.ts +1 -1
  29. package/dist/inline/message-tools.d.ts.map +1 -1
  30. package/dist/inline/monitor.d.ts +2 -1
  31. package/dist/inline/monitor.d.ts.map +1 -1
  32. package/dist/inline/policy.d.ts +1 -1
  33. package/dist/inline/policy.d.ts.map +1 -1
  34. package/dist/inline/profile-tool.d.ts +1 -1
  35. package/dist/inline/profile-tool.d.ts.map +1 -1
  36. package/dist/openclaw-compat.d.ts +141 -0
  37. package/dist/openclaw-compat.d.ts.map +1 -0
  38. package/dist/runtime.d.ts +1 -1
  39. package/dist/runtime.d.ts.map +1 -1
  40. package/dist/sdk-runtime-compat.d.ts +83 -0
  41. package/dist/sdk-runtime-compat.d.ts.map +1 -0
  42. package/dist/tsconfig.tsbuildinfo +1 -1
  43. package/package.json +3 -3
@@ -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" | "broadcast" | "poll" | "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" | "voice-status" | "event-list" | "event-create" | "timeout" | "kick" | "ban" | "set-presence")[];
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;AAqqB5B,eAAO,MAAM,oBAAoB,EAAE,2BAy6BlC,CAAA;AAED,eAAO,MAAM,sBAAsB,0uBAAmB,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"}
@@ -0,0 +1,16 @@
1
+ export type InlineBotCommand = {
2
+ command: string;
3
+ description: string;
4
+ sort_order?: number;
5
+ sortOrder?: number;
6
+ };
7
+ export declare function normalizeInlineBotBaseUrl(baseUrl: string): string;
8
+ export declare function normalizeInlineBotCommandName(raw: string): string;
9
+ export declare function callInlineBotApi<T>(params: {
10
+ baseUrl: string;
11
+ token: string;
12
+ methodName: string;
13
+ method: "GET" | "POST";
14
+ body?: unknown;
15
+ }): Promise<T>;
16
+ //# sourceMappingURL=bot-commands-api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bot-commands-api.d.ts","sourceRoot":"","sources":["../../src/inline/bot-commands-api.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AASD,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEjE;AAED,wBAAgB,6BAA6B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEjE;AAED,wBAAsB,gBAAgB,CAAC,CAAC,EAAE,MAAM,EAAE;IAChD,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,KAAK,GAAG,MAAM,CAAA;IACtB,IAAI,CAAC,EAAE,OAAO,CAAA;CACf,GAAG,OAAO,CAAC,CAAC,CAAC,CAqDb"}
@@ -0,0 +1,16 @@
1
+ import type { OpenClawConfig } from "openclaw/plugin-sdk/core";
2
+ type InlineCommandsSyncLogger = {
3
+ info?: (message: string) => void;
4
+ warn?: (message: string) => void;
5
+ };
6
+ export declare function shouldSyncInlineNativeCommands(cfg: OpenClawConfig): boolean;
7
+ export declare function syncInlineNativeCommands(params: {
8
+ cfg: OpenClawConfig;
9
+ logger?: InlineCommandsSyncLogger;
10
+ }): Promise<{
11
+ attempted: number;
12
+ synced: number;
13
+ failed: number;
14
+ }>;
15
+ export {};
16
+ //# sourceMappingURL=bot-commands-sync.d.ts.map
@@ -0,0 +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,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"}
@@ -0,0 +1,6 @@
1
+ import type { AnyAgentTool, OpenClawConfig } from "openclaw/plugin-sdk/core";
2
+ export declare function createInlineBotCommandsTool(ctx: {
3
+ config?: OpenClawConfig;
4
+ agentAccountId?: string;
5
+ }): AnyAgentTool | null;
6
+ //# sourceMappingURL=bot-commands-tool.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Temporary compatibility layer for native command arg menus.
3
+ *
4
+ * Why this exists:
5
+ * - The published `openclaw/plugin-sdk` currently does not expose command-registry
6
+ * helpers (`findCommandByNativeName`, `parseCommandArgs`, `resolveCommandArgMenu`,
7
+ * `buildCommandTextFromArgs`) that Telegram uses for native command buttons.
8
+ * - Inline needs equivalent behavior for command option pickers.
9
+ *
10
+ * Source inspiration:
11
+ * - openclaw/src/auto-reply/commands-registry.ts
12
+ * - openclaw/src/auto-reply/commands-registry.data.ts
13
+ *
14
+ * Remove this file once upstream exposes the command menu helpers.
15
+ */
16
+ export type InlineCompatReplyMarkupButton = {
17
+ text: string;
18
+ callback_data: string;
19
+ };
20
+ export declare function resolveInlineCompatNativeCommandMenu(commandBody: string): {
21
+ title: string;
22
+ buttons: InlineCompatReplyMarkupButton[][];
23
+ } | null;
24
+ //# sourceMappingURL=command-menu-compat.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command-menu-compat.d.ts","sourceRoot":"","sources":["../../src/inline/command-menu-compat.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,MAAM,6BAA6B,GAAG;IAC1C,IAAI,EAAE,MAAM,CAAA;IACZ,aAAa,EAAE,MAAM,CAAA;CACtB,CAAA;AAuPD,wBAAgB,oCAAoC,CAAC,WAAW,EAAE,MAAM,GAAG;IACzE,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,6BAA6B,EAAE,EAAE,CAAA;CAC3C,GAAG,IAAI,CA8BP"}
@@ -12,6 +12,7 @@ export declare const InlineAccountSchemaBase: z.ZodObject<{
12
12
  pairing: "pairing";
13
13
  }>>>;
14
14
  allowFrom: z.ZodOptional<z.ZodArray<z.ZodString>>;
15
+ systemPrompt: z.ZodOptional<z.ZodString>;
15
16
  groupAllowFrom: z.ZodOptional<z.ZodArray<z.ZodString>>;
16
17
  groupPolicy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
17
18
  open: "open";
@@ -20,6 +21,7 @@ export declare const InlineAccountSchemaBase: z.ZodObject<{
20
21
  }>>>;
21
22
  groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodObject<{
22
23
  requireMention: z.ZodOptional<z.ZodBoolean>;
24
+ systemPrompt: z.ZodOptional<z.ZodString>;
23
25
  tools: z.ZodOptional<z.ZodObject<{
24
26
  allow: z.ZodOptional<z.ZodArray<z.ZodString>>;
25
27
  alsoAllow: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -62,6 +64,10 @@ export declare const InlineAccountSchemaBase: z.ZodObject<{
62
64
  maxChars: z.ZodOptional<z.ZodNumber>;
63
65
  idleMs: z.ZodOptional<z.ZodNumber>;
64
66
  }, z.core.$strict>>;
67
+ commands: z.ZodOptional<z.ZodObject<{
68
+ native: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>>;
69
+ nativeSkills: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>>;
70
+ }, z.core.$strict>>;
65
71
  }, z.core.$strict>;
66
72
  export declare const InlineRuntimeAccountSchema: z.ZodObject<{
67
73
  name: z.ZodOptional<z.ZodString>;
@@ -76,6 +82,7 @@ export declare const InlineRuntimeAccountSchema: z.ZodObject<{
76
82
  pairing: "pairing";
77
83
  }>>>;
78
84
  allowFrom: z.ZodOptional<z.ZodArray<z.ZodString>>;
85
+ systemPrompt: z.ZodOptional<z.ZodString>;
79
86
  groupAllowFrom: z.ZodOptional<z.ZodArray<z.ZodString>>;
80
87
  groupPolicy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
81
88
  open: "open";
@@ -84,6 +91,7 @@ export declare const InlineRuntimeAccountSchema: z.ZodObject<{
84
91
  }>>>;
85
92
  groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodObject<{
86
93
  requireMention: z.ZodOptional<z.ZodBoolean>;
94
+ systemPrompt: z.ZodOptional<z.ZodString>;
87
95
  tools: z.ZodOptional<z.ZodObject<{
88
96
  allow: z.ZodOptional<z.ZodArray<z.ZodString>>;
89
97
  alsoAllow: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -126,6 +134,10 @@ export declare const InlineRuntimeAccountSchema: z.ZodObject<{
126
134
  maxChars: z.ZodOptional<z.ZodNumber>;
127
135
  idleMs: z.ZodOptional<z.ZodNumber>;
128
136
  }, z.core.$strict>>;
137
+ commands: z.ZodOptional<z.ZodObject<{
138
+ native: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>>;
139
+ nativeSkills: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>>;
140
+ }, z.core.$strict>>;
129
141
  }, z.core.$loose>;
130
142
  export declare const InlineAccountSchema: z.ZodObject<{
131
143
  name: z.ZodOptional<z.ZodString>;
@@ -140,6 +152,7 @@ export declare const InlineAccountSchema: z.ZodObject<{
140
152
  pairing: "pairing";
141
153
  }>>>;
142
154
  allowFrom: z.ZodOptional<z.ZodArray<z.ZodString>>;
155
+ systemPrompt: z.ZodOptional<z.ZodString>;
143
156
  groupAllowFrom: z.ZodOptional<z.ZodArray<z.ZodString>>;
144
157
  groupPolicy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
145
158
  open: "open";
@@ -148,6 +161,7 @@ export declare const InlineAccountSchema: z.ZodObject<{
148
161
  }>>>;
149
162
  groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodObject<{
150
163
  requireMention: z.ZodOptional<z.ZodBoolean>;
164
+ systemPrompt: z.ZodOptional<z.ZodString>;
151
165
  tools: z.ZodOptional<z.ZodObject<{
152
166
  allow: z.ZodOptional<z.ZodArray<z.ZodString>>;
153
167
  alsoAllow: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -190,6 +204,10 @@ export declare const InlineAccountSchema: z.ZodObject<{
190
204
  maxChars: z.ZodOptional<z.ZodNumber>;
191
205
  idleMs: z.ZodOptional<z.ZodNumber>;
192
206
  }, z.core.$strict>>;
207
+ commands: z.ZodOptional<z.ZodObject<{
208
+ native: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>>;
209
+ nativeSkills: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>>;
210
+ }, z.core.$strict>>;
193
211
  }, z.core.$strict>;
194
212
  export declare const InlineRuntimeConfigSchema: z.ZodObject<{
195
213
  name: z.ZodOptional<z.ZodString>;
@@ -204,6 +222,7 @@ export declare const InlineRuntimeConfigSchema: z.ZodObject<{
204
222
  pairing: "pairing";
205
223
  }>>>;
206
224
  allowFrom: z.ZodOptional<z.ZodArray<z.ZodString>>;
225
+ systemPrompt: z.ZodOptional<z.ZodString>;
207
226
  groupAllowFrom: z.ZodOptional<z.ZodArray<z.ZodString>>;
208
227
  groupPolicy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
209
228
  open: "open";
@@ -212,6 +231,7 @@ export declare const InlineRuntimeConfigSchema: z.ZodObject<{
212
231
  }>>>;
213
232
  groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodObject<{
214
233
  requireMention: z.ZodOptional<z.ZodBoolean>;
234
+ systemPrompt: z.ZodOptional<z.ZodString>;
215
235
  tools: z.ZodOptional<z.ZodObject<{
216
236
  allow: z.ZodOptional<z.ZodArray<z.ZodString>>;
217
237
  alsoAllow: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -254,6 +274,10 @@ export declare const InlineRuntimeConfigSchema: z.ZodObject<{
254
274
  maxChars: z.ZodOptional<z.ZodNumber>;
255
275
  idleMs: z.ZodOptional<z.ZodNumber>;
256
276
  }, z.core.$strict>>;
277
+ commands: z.ZodOptional<z.ZodObject<{
278
+ native: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>>;
279
+ nativeSkills: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>>;
280
+ }, z.core.$strict>>;
257
281
  accounts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodObject<{
258
282
  name: z.ZodOptional<z.ZodString>;
259
283
  enabled: z.ZodOptional<z.ZodBoolean>;
@@ -267,6 +291,7 @@ export declare const InlineRuntimeConfigSchema: z.ZodObject<{
267
291
  pairing: "pairing";
268
292
  }>>>;
269
293
  allowFrom: z.ZodOptional<z.ZodArray<z.ZodString>>;
294
+ systemPrompt: z.ZodOptional<z.ZodString>;
270
295
  groupAllowFrom: z.ZodOptional<z.ZodArray<z.ZodString>>;
271
296
  groupPolicy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
272
297
  open: "open";
@@ -275,6 +300,7 @@ export declare const InlineRuntimeConfigSchema: z.ZodObject<{
275
300
  }>>>;
276
301
  groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodObject<{
277
302
  requireMention: z.ZodOptional<z.ZodBoolean>;
303
+ systemPrompt: z.ZodOptional<z.ZodString>;
278
304
  tools: z.ZodOptional<z.ZodObject<{
279
305
  allow: z.ZodOptional<z.ZodArray<z.ZodString>>;
280
306
  alsoAllow: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -317,6 +343,10 @@ export declare const InlineRuntimeConfigSchema: z.ZodObject<{
317
343
  maxChars: z.ZodOptional<z.ZodNumber>;
318
344
  idleMs: z.ZodOptional<z.ZodNumber>;
319
345
  }, z.core.$strict>>;
346
+ commands: z.ZodOptional<z.ZodObject<{
347
+ native: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>>;
348
+ nativeSkills: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>>;
349
+ }, z.core.$strict>>;
320
350
  }, z.core.$loose>>>>;
321
351
  }, z.core.$loose>;
322
352
  export declare const InlineConfigSchema: z.ZodObject<{
@@ -332,6 +362,7 @@ export declare const InlineConfigSchema: z.ZodObject<{
332
362
  pairing: "pairing";
333
363
  }>>>;
334
364
  allowFrom: z.ZodOptional<z.ZodArray<z.ZodString>>;
365
+ systemPrompt: z.ZodOptional<z.ZodString>;
335
366
  groupAllowFrom: z.ZodOptional<z.ZodArray<z.ZodString>>;
336
367
  groupPolicy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
337
368
  open: "open";
@@ -340,6 +371,7 @@ export declare const InlineConfigSchema: z.ZodObject<{
340
371
  }>>>;
341
372
  groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodObject<{
342
373
  requireMention: z.ZodOptional<z.ZodBoolean>;
374
+ systemPrompt: z.ZodOptional<z.ZodString>;
343
375
  tools: z.ZodOptional<z.ZodObject<{
344
376
  allow: z.ZodOptional<z.ZodArray<z.ZodString>>;
345
377
  alsoAllow: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -382,6 +414,10 @@ export declare const InlineConfigSchema: z.ZodObject<{
382
414
  maxChars: z.ZodOptional<z.ZodNumber>;
383
415
  idleMs: z.ZodOptional<z.ZodNumber>;
384
416
  }, z.core.$strict>>;
417
+ commands: z.ZodOptional<z.ZodObject<{
418
+ native: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>>;
419
+ nativeSkills: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>>;
420
+ }, z.core.$strict>>;
385
421
  accounts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodObject<{
386
422
  name: z.ZodOptional<z.ZodString>;
387
423
  enabled: z.ZodOptional<z.ZodBoolean>;
@@ -395,6 +431,7 @@ export declare const InlineConfigSchema: z.ZodObject<{
395
431
  pairing: "pairing";
396
432
  }>>>;
397
433
  allowFrom: z.ZodOptional<z.ZodArray<z.ZodString>>;
434
+ systemPrompt: z.ZodOptional<z.ZodString>;
398
435
  groupAllowFrom: z.ZodOptional<z.ZodArray<z.ZodString>>;
399
436
  groupPolicy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
400
437
  open: "open";
@@ -403,6 +440,7 @@ export declare const InlineConfigSchema: z.ZodObject<{
403
440
  }>>>;
404
441
  groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodObject<{
405
442
  requireMention: z.ZodOptional<z.ZodBoolean>;
443
+ systemPrompt: z.ZodOptional<z.ZodString>;
406
444
  tools: z.ZodOptional<z.ZodObject<{
407
445
  allow: z.ZodOptional<z.ZodArray<z.ZodString>>;
408
446
  alsoAllow: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -445,6 +483,10 @@ export declare const InlineConfigSchema: z.ZodObject<{
445
483
  maxChars: z.ZodOptional<z.ZodNumber>;
446
484
  idleMs: z.ZodOptional<z.ZodNumber>;
447
485
  }, z.core.$strict>>;
486
+ commands: z.ZodOptional<z.ZodObject<{
487
+ native: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>>;
488
+ nativeSkills: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>>;
489
+ }, z.core.$strict>>;
448
490
  }, z.core.$strict>>>>;
449
491
  }, z.core.$strict>;
450
492
  export type InlineConfig = z.infer<typeof InlineConfigSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"config-schema.d.ts","sourceRoot":"","sources":["../../src/inline/config-schema.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,CAAC,EAAE,MAA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;;;;;kBA2BzB,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,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"}
@@ -0,0 +1,4 @@
1
+ export declare const INLINE_FORMATTING_NOTE = "Inline formatting note: prefer bullet lists over markdown tables. If a table is necessary, render it inside a fenced code block. Do not wrap bare URLs in inline code or backticks. Use plain URLs or markdown links. Use inline code only for actual code, commands, file paths, env vars, or identifiers.";
2
+ export declare function buildInlineSystemPrompt(extraPrompt?: string): string;
3
+ export declare function sanitizeInlineOutgoingText(text: string): string;
4
+ //# sourceMappingURL=message-formatting.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message-formatting.d.ts","sourceRoot":"","sources":["../../src/inline/message-formatting.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,gTAC4Q,CAAA;AAe/S,wBAAgB,uBAAuB,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAIpE;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAI/D"}
@@ -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,KAAK,UAAU,EAChB,MAAM,qBAAqB,CAAA;AAE5B,OAAO,EAAsB,KAAK,qBAAqB,EAAE,MAAM,eAAe,CAAA;AAQ9E,KAAK,mBAAmB,GAAG;IACzB,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,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,wBAAgB,gCAAgC,CAAC,MAAM,EAAE;IACvD,GAAG,EAAE,cAAc,CAAA;IACnB,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IACpC,OAAO,EA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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,GAAG,EAAE,CAAC,CAAC,aAAa,CAAA;IACpB,IAAI,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAA;IAC5B,OAAO,EAAE,MAAM,CAAA;CAChB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O,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"}