@inline-openclaw/inline 0.0.35 → 0.0.37
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 +73 -19
- package/dist/account-inspect-api.d.ts +3 -0
- package/dist/account-inspect-api.d.ts.map +1 -0
- package/dist/account-inspect-api.js +14998 -0
- package/dist/account-inspect-api.js.map +87 -0
- package/dist/approval-handler.runtime.js +38942 -0
- package/dist/approval-handler.runtime.js.map +154 -0
- package/dist/channel-plugin-api.d.ts +2 -0
- package/dist/channel-plugin-api.d.ts.map +1 -0
- package/dist/channel-plugin-api.js +44825 -0
- package/dist/channel-plugin-api.js.map +169 -0
- package/dist/configured-state.d.ts +4 -0
- package/dist/configured-state.d.ts.map +1 -0
- package/dist/configured-state.js +43 -0
- package/dist/configured-state.js.map +10 -0
- package/dist/index.d.ts +2 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +28 -42082
- package/dist/index.js.map +4 -156
- package/dist/inline/accounts.d.ts +35 -1
- package/dist/inline/accounts.d.ts.map +1 -1
- package/dist/inline/actions.d.ts +10 -5
- package/dist/inline/actions.d.ts.map +1 -1
- package/dist/inline/approval-handler.runtime.d.ts +28 -0
- package/dist/inline/approval-handler.runtime.d.ts.map +1 -0
- package/dist/inline/approval-native.d.ts +22 -0
- package/dist/inline/approval-native.d.ts.map +1 -0
- package/dist/inline/bot-commands-sync.d.ts +5 -0
- package/dist/inline/bot-commands-sync.d.ts.map +1 -1
- package/dist/inline/channel.d.ts +1 -1
- package/dist/inline/channel.d.ts.map +1 -1
- package/dist/inline/command-ui.d.ts +43 -0
- package/dist/inline/command-ui.d.ts.map +1 -0
- package/dist/inline/config-schema.d.ts +231 -35
- package/dist/inline/config-schema.d.ts.map +1 -1
- package/dist/inline/doctor.d.ts +5 -0
- package/dist/inline/doctor.d.ts.map +1 -0
- package/dist/inline/exec-approvals.d.ts +54 -0
- package/dist/inline/exec-approvals.d.ts.map +1 -0
- package/dist/inline/interactive-fallback.d.ts +6 -0
- package/dist/inline/interactive-fallback.d.ts.map +1 -0
- package/dist/inline/media.d.ts +10 -0
- package/dist/inline/media.d.ts.map +1 -1
- package/dist/inline/message-formatting.d.ts +5 -1
- package/dist/inline/message-formatting.d.ts.map +1 -1
- package/dist/inline/message-tools.d.ts.map +1 -1
- package/dist/inline/monitor.d.ts +7 -1
- package/dist/inline/monitor.d.ts.map +1 -1
- package/dist/inline/outbound-sanitize.d.ts +4 -0
- package/dist/inline/outbound-sanitize.d.ts.map +1 -1
- package/dist/inline/policy.d.ts +30 -0
- package/dist/inline/policy.d.ts.map +1 -1
- package/dist/inline/profile-tool.d.ts.map +1 -1
- package/dist/inline/secret-contract.d.ts +18 -0
- package/dist/inline/secret-contract.d.ts.map +1 -0
- package/dist/inline/security.d.ts +6 -0
- package/dist/inline/security.d.ts.map +1 -0
- package/dist/inline/setup-core.d.ts +1 -0
- package/dist/inline/setup-core.d.ts.map +1 -1
- package/dist/inline/setup-plugin.d.ts +3 -0
- package/dist/inline/setup-plugin.d.ts.map +1 -0
- package/dist/inline/setup-surface.d.ts.map +1 -1
- package/dist/inline/shared.d.ts +61 -0
- package/dist/inline/shared.d.ts.map +1 -0
- package/dist/inline/status-issues.d.ts.map +1 -1
- package/dist/runtime-register-api.d.ts +3 -0
- package/dist/runtime-register-api.d.ts.map +1 -0
- package/dist/runtime-register-api.js +37086 -0
- package/dist/runtime-register-api.js.map +153 -0
- package/dist/runtime-setter-api.d.ts +2 -0
- package/dist/runtime-setter-api.d.ts.map +1 -0
- package/dist/runtime-setter-api.js +50 -0
- package/dist/runtime-setter-api.js.map +10 -0
- package/dist/runtime.d.ts.map +1 -1
- package/dist/sdk-runtime-compat.d.ts +1 -1
- package/dist/sdk-runtime-compat.d.ts.map +1 -1
- package/dist/secret-contract-api.d.ts +2 -0
- package/dist/secret-contract-api.d.ts.map +1 -0
- package/dist/secret-contract-api.js +87 -0
- package/dist/secret-contract-api.js.map +10 -0
- package/dist/setup-entry.d.ts +3 -0
- package/dist/setup-entry.d.ts.map +1 -0
- package/dist/setup-entry.js +48 -0
- package/dist/setup-entry.js.map +10 -0
- package/dist/setup-plugin-api.d.ts +2 -0
- package/dist/setup-plugin-api.d.ts.map +1 -0
- package/dist/setup-plugin-api.js +15732 -0
- package/dist/setup-plugin-api.js.map +94 -0
- package/openclaw.plugin.json +135 -18
- package/package.json +53 -18
|
@@ -8,13 +8,47 @@ export type ResolvedInlineAccount = {
|
|
|
8
8
|
baseUrl: string | null;
|
|
9
9
|
token: string | null;
|
|
10
10
|
tokenFile: string | null;
|
|
11
|
+
tokenSource: "config" | "env" | "file" | "none";
|
|
12
|
+
tokenConfigured: boolean;
|
|
13
|
+
reactionNotifications: InlineRuntimeConfig["reactionNotifications"];
|
|
14
|
+
reactionAllowlist: InlineRuntimeConfig["reactionAllowlist"];
|
|
11
15
|
config: InlineRuntimeConfig;
|
|
12
16
|
};
|
|
13
|
-
export
|
|
17
|
+
export type InlineCredentialStatus = "available" | "configured_unavailable" | "missing";
|
|
18
|
+
export type InspectedInlineAccount = {
|
|
19
|
+
accountId: string;
|
|
20
|
+
name: string;
|
|
21
|
+
enabled: boolean;
|
|
22
|
+
configured: boolean;
|
|
23
|
+
baseUrl: string | null;
|
|
24
|
+
token: string | null;
|
|
25
|
+
tokenFile: string | null;
|
|
26
|
+
tokenSource: "config" | "env" | "file" | "none";
|
|
27
|
+
tokenStatus: InlineCredentialStatus;
|
|
28
|
+
tokenConfigured: boolean;
|
|
29
|
+
config: InlineRuntimeConfig;
|
|
30
|
+
};
|
|
31
|
+
export declare function resolveInlineEnvToken(env?: NodeJS.ProcessEnv): string | null;
|
|
32
|
+
export declare function listInlineAccountIds(cfg: OpenClawConfig, env?: NodeJS.ProcessEnv): string[];
|
|
14
33
|
export declare function resolveDefaultInlineAccountId(cfg: OpenClawConfig): string;
|
|
15
34
|
export declare function resolveInlineAccount(params: {
|
|
16
35
|
cfg: OpenClawConfig;
|
|
17
36
|
accountId?: string | null;
|
|
37
|
+
env?: NodeJS.ProcessEnv;
|
|
18
38
|
}): ResolvedInlineAccount;
|
|
39
|
+
export declare function inspectInlineAccount(params: {
|
|
40
|
+
cfg: OpenClawConfig;
|
|
41
|
+
accountId?: string | null;
|
|
42
|
+
env?: NodeJS.ProcessEnv;
|
|
43
|
+
}): InspectedInlineAccount;
|
|
44
|
+
export declare function findInlineTokenOwnerAccountId(params: {
|
|
45
|
+
cfg: OpenClawConfig;
|
|
46
|
+
accountId: string;
|
|
47
|
+
env?: NodeJS.ProcessEnv;
|
|
48
|
+
}): string | null;
|
|
49
|
+
export declare function formatDuplicateInlineTokenReason(params: {
|
|
50
|
+
accountId: string;
|
|
51
|
+
ownerAccountId: string;
|
|
52
|
+
}): string;
|
|
19
53
|
export declare function resolveInlineToken(account: ResolvedInlineAccount): Promise<string>;
|
|
20
54
|
//# sourceMappingURL=accounts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../../src/inline/accounts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../../src/inline/accounts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAO9D,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,WAAW,EAAE,QAAQ,GAAG,KAAK,GA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AAC,MAAM,EAAE;IAC3C,GAAG,EAAE,cAAc,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAA;CACxB,GAAG,sBAAsB,CA+BzB;AAUD,wBAAgB,6BAA6B,CAAC,MAAM,EAAE;IACpD,GAAG,EAAE,cAAc,CAAA;IACnB,SAAS,EAAE,MAAM,CAAA;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAA;CACxB,GAAG,MAAM,GAAG,IAAI,CAuBhB;AAED,wBAAgB,gCAAgC,CAAC,MAAM,EAAE;IACvD,SAAS,EAAE,MAAM,CAAA;IACjB,cAAc,EAAE,MAAM,CAAA;CACvB,GAAG,MAAM,CAKT;AAED,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,MAAM,CAAC,CAqBxF"}
|
package/dist/inline/actions.d.ts
CHANGED
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
import type { ChannelMessageActionAdapter, ChannelMessageToolDiscovery } from "openclaw/plugin-sdk/channel-contract";
|
|
1
|
+
import type { ChannelMessageActionAdapter, ChannelMessageActionName, ChannelMessageToolDiscovery } from "openclaw/plugin-sdk/channel-contract";
|
|
2
2
|
import type { OpenClawConfig } from "openclaw/plugin-sdk/core";
|
|
3
3
|
import { type MessageActions } from "@inline-chat/realtime-sdk";
|
|
4
4
|
export declare function resolveInlineMessageActionsParam(params: Record<string, unknown>): MessageActions | undefined;
|
|
5
|
-
declare function
|
|
5
|
+
export declare function supportsInlineMessageButtons(actions: readonly ChannelMessageActionName[]): boolean;
|
|
6
|
+
export declare function supportsInlineMessageButtonsForConfig(cfg: OpenClawConfig, accountId?: string | null): boolean;
|
|
7
|
+
export declare function supportsInlineReactionsForConfig(cfg: OpenClawConfig, accountId?: string | null): boolean;
|
|
8
|
+
declare function describeInlineMessageTool({ cfg, accountId, }: Parameters<NonNullable<ChannelMessageActionAdapter["describeMessageTool"]>>[0]): ChannelMessageToolDiscovery;
|
|
6
9
|
export declare const inlineMessageActions: {
|
|
7
10
|
describeMessageTool: typeof describeInlineMessageTool;
|
|
8
|
-
listActions: ({ cfg }: {
|
|
11
|
+
listActions: ({ cfg, accountId }: {
|
|
9
12
|
cfg: OpenClawConfig;
|
|
13
|
+
accountId?: string | null;
|
|
10
14
|
}) => ("send" | "reply" | "reactions" | "read" | "search" | "edit" | "delete" | "permissions" | "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" | "timeout" | "kick" | "ban" | "set-profile" | "set-presence" | "download-file" | "upload-file")[];
|
|
11
|
-
supportsButtons: ({ cfg }: {
|
|
15
|
+
supportsButtons: ({ cfg, accountId }: {
|
|
12
16
|
cfg: OpenClawConfig;
|
|
17
|
+
accountId?: string | null;
|
|
13
18
|
}) => boolean;
|
|
14
19
|
supportsCards: () => false;
|
|
15
20
|
supportsAction: ({ action }: {
|
|
@@ -20,7 +25,7 @@ export declare const inlineMessageActions: {
|
|
|
20
25
|
}) => {
|
|
21
26
|
to: string;
|
|
22
27
|
} | null;
|
|
23
|
-
handleAction: ({ action, params, cfg, accountId, toolContext }: import("openclaw/plugin-sdk").ChannelMessageActionContext) => Promise<{
|
|
28
|
+
handleAction: ({ action, params, cfg, accountId, mediaAccess, mediaLocalRoots, mediaReadFile, toolContext, }: import("openclaw/plugin-sdk").ChannelMessageActionContext) => Promise<{
|
|
24
29
|
content: {
|
|
25
30
|
type: "text";
|
|
26
31
|
text: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/inline/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,2BAA2B,
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/inline/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,2BAA2B,EAC3B,wBAAwB,EACxB,2BAA2B,EAE5B,MAAM,sCAAsC,CAAA;AAO7C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAC9D,OAAO,EAML,KAAK,cAAc,EAEpB,MAAM,2BAA2B,CAAA;AA6PlC,wBAAgB,gCAAgC,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,cAAc,GAAG,SAAS,CA4B5G;AA6qBD,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,SAAS,wBAAwB,EAAE,GAAG,OAAO,CAElG;AAyBD,wBAAgB,qCAAqC,CACnD,GAAG,EAAE,cAAc,EACnB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GACxB,OAAO,CAET;AAED,wBAAgB,gCAAgC,CAC9C,GAAG,EAAE,cAAc,EACnB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GACxB,OAAO,CAET;AAED,iBAAS,yBAAyB,CAAC,EACjC,GAAG,EACH,SAAS,GACV,EAAE,UAAU,CAAC,WAAW,CAAC,2BAA2B,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,2BAA2B,CA2B9G;AAyBD,eAAO,MAAM,oBAAoB;;sCAEG;QAAE,GAAG,EAAE,cAAc,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE;0CAE9C;QAAE,GAAG,EAAE,cAAc,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE;;;;;;;;;;;;;;;;;CA6mChB,CAAA;AAE1E,eAAO,MAAM,sBAAsB,00BAAmB,CAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { InlineSdkClient, type InputPeer, type MessageActions } from "@inline-chat/realtime-sdk";
|
|
2
|
+
type InlinePendingDelivery = {
|
|
3
|
+
text: string;
|
|
4
|
+
actions?: MessageActions;
|
|
5
|
+
};
|
|
6
|
+
type InlineApprovalSendTarget = {
|
|
7
|
+
chatId: bigint;
|
|
8
|
+
} | {
|
|
9
|
+
userId: bigint;
|
|
10
|
+
};
|
|
11
|
+
type InlinePreparedTarget = {
|
|
12
|
+
sendTarget: InlineApprovalSendTarget;
|
|
13
|
+
peerId: InputPeer;
|
|
14
|
+
typingChatId?: bigint;
|
|
15
|
+
};
|
|
16
|
+
type InlinePendingApproval = {
|
|
17
|
+
messageId: bigint;
|
|
18
|
+
peerId: InputPeer;
|
|
19
|
+
text: string;
|
|
20
|
+
parseMarkdown: boolean;
|
|
21
|
+
};
|
|
22
|
+
export type InlineApprovalHandlerContext = {
|
|
23
|
+
client: InlineSdkClient;
|
|
24
|
+
parseMarkdown?: boolean;
|
|
25
|
+
};
|
|
26
|
+
export declare const inlineApprovalNativeRuntime: import("openclaw/plugin-sdk/approval-handler-runtime").ChannelApprovalNativeRuntimeAdapter<InlinePendingDelivery, InlinePreparedTarget, InlinePendingApproval, never, unknown>;
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=approval-handler.runtime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"approval-handler.runtime.d.ts","sourceRoot":"","sources":["../../src/inline/approval-handler.runtime.ts"],"names":[],"mappings":"AAgBA,OAAO,EACL,eAAe,EAEf,KAAK,SAAS,EACd,KAAK,cAAc,EACpB,MAAM,2BAA2B,CAAA;AAYlC,KAAK,qBAAqB,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,cAAc,CAAA;CACzB,CAAA;AACD,KAAK,wBAAwB,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAA;AACvE,KAAK,oBAAoB,GAAG;IAC1B,UAAU,EAAE,wBAAwB,CAAA;IACpC,MAAM,EAAE,SAAS,CAAA;IACjB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,CAAA;AACD,KAAK,qBAAqB,GAAG;IAC3B,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,SAAS,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,aAAa,EAAE,OAAO,CAAA;CACvB,CAAA;AAOD,MAAM,MAAM,4BAA4B,GAAG;IACzC,MAAM,EAAE,eAAe,CAAA;IACvB,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB,CAAA;AA6HD,eAAO,MAAM,2BAA2B,gLAkItC,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ExecApprovalRequest } from "openclaw/plugin-sdk/approval-runtime";
|
|
2
|
+
import type { ChannelApprovalCapability } from "openclaw/plugin-sdk/channel-contract";
|
|
3
|
+
import type { ReplyPayload } from "openclaw/plugin-sdk/reply-runtime";
|
|
4
|
+
export declare function buildInlineExecApprovalPendingPayload(params: {
|
|
5
|
+
request: ExecApprovalRequest;
|
|
6
|
+
nowMs: number;
|
|
7
|
+
}): ReplyPayload;
|
|
8
|
+
export declare const inlineApprovalCapability: ChannelApprovalCapability;
|
|
9
|
+
export declare const inlineNativeApprovalAdapter: {
|
|
10
|
+
auth: {
|
|
11
|
+
authorizeActorAction?: ChannelApprovalCapability["authorizeActorAction"];
|
|
12
|
+
getActionAvailabilityState?: ChannelApprovalCapability["getActionAvailabilityState"];
|
|
13
|
+
getExecInitiatingSurfaceState?: ChannelApprovalCapability["getExecInitiatingSurfaceState"];
|
|
14
|
+
resolveApproveCommandBehavior?: ChannelApprovalCapability["resolveApproveCommandBehavior"];
|
|
15
|
+
};
|
|
16
|
+
delivery: ChannelApprovalCapability["delivery"];
|
|
17
|
+
nativeRuntime: ChannelApprovalCapability["nativeRuntime"];
|
|
18
|
+
render: ChannelApprovalCapability["render"];
|
|
19
|
+
native: ChannelApprovalCapability["native"];
|
|
20
|
+
describeExecApprovalSetup: ChannelApprovalCapability["describeExecApprovalSetup"];
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=approval-native.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"approval-native.d.ts","sourceRoot":"","sources":["../../src/inline/approval-native.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EACV,mBAAmB,EAEpB,MAAM,sCAAsC,CAAA;AAC7C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAA;AAGrF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAA;AAmPrE,wBAAgB,qCAAqC,CAAC,MAAM,EAAE;IAC5D,OAAO,EAAE,mBAAmB,CAAA;IAC5B,KAAK,EAAE,MAAM,CAAA;CACd,GAAG,YAAY,CAiBf;AAED,eAAO,MAAM,wBAAwB,EAAE,yBAGtC,CAAA;AAED,eAAO,MAAM,2BAA2B;;4BApKrC,CAAC;kCAGF,CAAC;qCAGkC,CAAC;qCAO1B,CAAC;;;;;;;CAyJZ,CAAA"}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import type { OpenClawConfig } from "openclaw/plugin-sdk/core";
|
|
2
|
+
import { type ResolvedInlineAccount } from "./accounts.js";
|
|
2
3
|
type InlineCommandsSyncLogger = {
|
|
3
4
|
info?: (message: string) => void;
|
|
4
5
|
warn?: (message: string) => void;
|
|
5
6
|
};
|
|
6
7
|
export declare function shouldSyncInlineNativeCommands(cfg: OpenClawConfig): boolean;
|
|
8
|
+
export declare function shouldSyncInlineNativeCommandsForAccount(params: {
|
|
9
|
+
cfg: OpenClawConfig;
|
|
10
|
+
account: ResolvedInlineAccount;
|
|
11
|
+
}): boolean;
|
|
7
12
|
export declare function syncInlineNativeCommands(params: {
|
|
8
13
|
cfg: OpenClawConfig;
|
|
9
14
|
logger?: InlineCommandsSyncLogger;
|
|
@@ -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,0BAA0B,CAAA;
|
|
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;AAK9D,OAAO,EAML,KAAK,qBAAqB,EAC3B,MAAM,eAAe,CAAA;AAItB,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;AAqCD,wBAAgB,8BAA8B,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAM3E;AAED,wBAAgB,wCAAwC,CAAC,MAAM,EAAE;IAC/D,GAAG,EAAE,cAAc,CAAA;IACnB,OAAO,EAAE,qBAAqB,CAAA;CAC/B,GAAG,OAAO,CAGV;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,CA0GjE"}
|
package/dist/inline/channel.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
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":"
|
|
1
|
+
{"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../../src/inline/channel.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,KAAK,aAAa,EAEnB,MAAM,0BAA0B,CAAA;AAmBjC,OAAO,EAQL,KAAK,qBAAqB,EAC3B,MAAM,eAAe,CAAA;AAuuCtB,eAAO,MAAM,mBAAmB,EAAE,aAAa,CAAC,qBAAqB,CAylBpE,CAAA"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { ReplyPayload } from "openclaw/plugin-sdk/reply-payload";
|
|
2
|
+
export type InlineReplyMarkupButton = {
|
|
3
|
+
text: string;
|
|
4
|
+
callback_data: string;
|
|
5
|
+
};
|
|
6
|
+
type InlineChannelData = ReplyPayload["channelData"];
|
|
7
|
+
type ProviderInfo = {
|
|
8
|
+
id: string;
|
|
9
|
+
count: number;
|
|
10
|
+
};
|
|
11
|
+
export declare function parseInlineCommandsPageCallback(raw: string | undefined): {
|
|
12
|
+
page: number | "noop";
|
|
13
|
+
agentId?: string;
|
|
14
|
+
} | null;
|
|
15
|
+
export declare function buildInlineCommandsListChannelData(params: {
|
|
16
|
+
currentPage: number;
|
|
17
|
+
totalPages: number;
|
|
18
|
+
agentId?: string;
|
|
19
|
+
}): InlineChannelData | null;
|
|
20
|
+
export declare function buildInlineModelProviderButtons(providers: ProviderInfo[]): InlineReplyMarkupButton[][];
|
|
21
|
+
export declare function buildInlineModelsMenuChannelData(params: {
|
|
22
|
+
providers: ProviderInfo[];
|
|
23
|
+
}): InlineChannelData | null;
|
|
24
|
+
export declare function buildInlineModelsProviderChannelData(params: {
|
|
25
|
+
providers: ProviderInfo[];
|
|
26
|
+
}): InlineChannelData | null;
|
|
27
|
+
export declare function buildInlineModelsAddProviderChannelData(params: {
|
|
28
|
+
providers: Array<{
|
|
29
|
+
id: string;
|
|
30
|
+
}>;
|
|
31
|
+
}): InlineChannelData | null;
|
|
32
|
+
export declare function buildInlineModelsListChannelData(params: {
|
|
33
|
+
provider: string;
|
|
34
|
+
models: readonly string[];
|
|
35
|
+
currentModel?: string;
|
|
36
|
+
currentPage: number;
|
|
37
|
+
totalPages: number;
|
|
38
|
+
pageSize?: number;
|
|
39
|
+
modelNames?: ReadonlyMap<string, string>;
|
|
40
|
+
}): InlineChannelData | null;
|
|
41
|
+
export declare function buildInlineModelBrowseChannelData(): InlineChannelData;
|
|
42
|
+
export {};
|
|
43
|
+
//# sourceMappingURL=command-ui.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-ui.d.ts","sourceRoot":"","sources":["../../src/inline/command-ui.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAA;AAGrE,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,EAAE,MAAM,CAAA;IACZ,aAAa,EAAE,MAAM,CAAA;CACtB,CAAA;AAED,KAAK,iBAAiB,GAAG,YAAY,CAAC,aAAa,CAAC,CAAA;AAEpD,KAAK,YAAY,GAAG;IAClB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAuDD,wBAAgB,+BAA+B,CAC7C,GAAG,EAAE,MAAM,GAAG,SAAS,GACtB;IAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAgBpD;AAED,wBAAgB,kCAAkC,CAAC,MAAM,EAAE;IACzD,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,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