@inline-openclaw/inline 0.0.54 → 0.0.55
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/LICENSE +201 -0
- package/README.md +20 -10
- package/dist/approval-handler.runtime.js +9260 -3248
- package/dist/approval-handler.runtime.js.map +11 -11
- package/dist/channel-plugin-api.js +10567 -3600
- package/dist/channel-plugin-api.js.map +20 -16
- package/dist/runtime-register-api.js +9490 -3294
- package/dist/runtime-register-api.js.map +18 -16
- package/openclaw.plugin.json +4 -4
- package/package.json +17 -9
- package/dist/account-inspect-api.d.ts +0 -3
- package/dist/account-inspect-api.d.ts.map +0 -1
- package/dist/channel-plugin-api.d.ts +0 -2
- package/dist/channel-plugin-api.d.ts.map +0 -1
- package/dist/configured-state.d.ts +0 -4
- package/dist/configured-state.d.ts.map +0 -1
- package/dist/inline/accounts.d.ts +0 -54
- package/dist/inline/accounts.d.ts.map +0 -1
- package/dist/inline/actions.d.ts +0 -43
- package/dist/inline/actions.d.ts.map +0 -1
- package/dist/inline/approval-handler.runtime.d.ts +0 -29
- package/dist/inline/approval-handler.runtime.d.ts.map +0 -1
- package/dist/inline/approval-native.d.ts +0 -22
- package/dist/inline/approval-native.d.ts.map +0 -1
- package/dist/inline/bot-avatar-tool.d.ts +0 -12
- package/dist/inline/bot-avatar-tool.d.ts.map +0 -1
- package/dist/inline/bot-commands-api.d.ts +0 -16
- package/dist/inline/bot-commands-api.d.ts.map +0 -1
- package/dist/inline/bot-commands-sync.d.ts +0 -25
- package/dist/inline/bot-commands-sync.d.ts.map +0 -1
- package/dist/inline/bot-commands-tool.d.ts +0 -6
- package/dist/inline/bot-commands-tool.d.ts.map +0 -1
- package/dist/inline/channel.d.ts +0 -4
- package/dist/inline/channel.d.ts.map +0 -1
- package/dist/inline/command-ui.d.ts +0 -43
- package/dist/inline/command-ui.d.ts.map +0 -1
- package/dist/inline/config-schema.d.ts +0 -1350
- package/dist/inline/config-schema.d.ts.map +0 -1
- package/dist/inline/doctor.d.ts +0 -5
- package/dist/inline/doctor.d.ts.map +0 -1
- package/dist/inline/exec-approvals.d.ts +0 -54
- package/dist/inline/exec-approvals.d.ts.map +0 -1
- package/dist/inline/interactive-fallback.d.ts +0 -6
- package/dist/inline/interactive-fallback.d.ts.map +0 -1
- package/dist/inline/media.d.ts +0 -36
- package/dist/inline/media.d.ts.map +0 -1
- package/dist/inline/members-tool.d.ts +0 -8
- package/dist/inline/members-tool.d.ts.map +0 -1
- package/dist/inline/message-content.d.ts +0 -57
- package/dist/inline/message-content.d.ts.map +0 -1
- package/dist/inline/message-formatting.d.ts +0 -26
- package/dist/inline/message-formatting.d.ts.map +0 -1
- package/dist/inline/message-tools.d.ts +0 -10
- package/dist/inline/message-tools.d.ts.map +0 -1
- package/dist/inline/monitor.d.ts +0 -34
- package/dist/inline/monitor.d.ts.map +0 -1
- package/dist/inline/normalize.d.ts +0 -3
- package/dist/inline/normalize.d.ts.map +0 -1
- package/dist/inline/outbound-sanitize.d.ts +0 -14
- package/dist/inline/outbound-sanitize.d.ts.map +0 -1
- package/dist/inline/parent-context-tool.d.ts +0 -10
- package/dist/inline/parent-context-tool.d.ts.map +0 -1
- package/dist/inline/policy.d.ts +0 -78
- package/dist/inline/policy.d.ts.map +0 -1
- package/dist/inline/probe.d.ts +0 -15
- package/dist/inline/probe.d.ts.map +0 -1
- package/dist/inline/profile-tool.d.ts +0 -6
- package/dist/inline/profile-tool.d.ts.map +0 -1
- package/dist/inline/reply-threads.d.ts +0 -46
- package/dist/inline/reply-threads.d.ts.map +0 -1
- package/dist/inline/secret-contract.d.ts +0 -18
- package/dist/inline/secret-contract.d.ts.map +0 -1
- package/dist/inline/security.d.ts +0 -6
- package/dist/inline/security.d.ts.map +0 -1
- package/dist/inline/setup-core.d.ts +0 -5
- package/dist/inline/setup-core.d.ts.map +0 -1
- package/dist/inline/setup-plugin.d.ts +0 -3
- package/dist/inline/setup-plugin.d.ts.map +0 -1
- package/dist/inline/setup-surface.d.ts +0 -5
- package/dist/inline/setup-surface.d.ts.map +0 -1
- package/dist/inline/shared.d.ts +0 -61
- package/dist/inline/shared.d.ts.map +0 -1
- package/dist/inline/space-members.d.ts +0 -22
- package/dist/inline/space-members.d.ts.map +0 -1
- package/dist/inline/status-issues.d.ts +0 -3
- package/dist/inline/status-issues.d.ts.map +0 -1
- package/dist/inline/thread-freshness.d.ts +0 -24
- package/dist/inline/thread-freshness.d.ts.map +0 -1
- package/dist/inline/thread-participation.d.ts +0 -10
- package/dist/inline/thread-participation.d.ts.map +0 -1
- package/dist/inline/thread-routes.d.ts +0 -32
- package/dist/inline/thread-routes.d.ts.map +0 -1
- package/dist/inline/threadreply-command.d.ts +0 -48
- package/dist/inline/threadreply-command.d.ts.map +0 -1
- package/dist/inline/tool-targets.d.ts +0 -36
- package/dist/inline/tool-targets.d.ts.map +0 -1
- package/dist/openclaw-compat.d.ts +0 -141
- package/dist/openclaw-compat.d.ts.map +0 -1
- package/dist/runtime-register-api.d.ts +0 -3
- package/dist/runtime-register-api.d.ts.map +0 -1
- package/dist/runtime-setter-api.d.ts +0 -2
- package/dist/runtime-setter-api.d.ts.map +0 -1
- package/dist/runtime.d.ts +0 -4
- package/dist/runtime.d.ts.map +0 -1
- package/dist/sdk-runtime-compat.d.ts +0 -57
- package/dist/sdk-runtime-compat.d.ts.map +0 -1
- package/dist/secret-contract-api.d.ts +0 -2
- package/dist/secret-contract-api.d.ts.map +0 -1
- package/dist/setup-entry.d.ts +0 -3
- package/dist/setup-entry.d.ts.map +0 -1
- package/dist/setup-plugin-api.d.ts +0 -2
- package/dist/setup-plugin-api.d.ts.map +0 -1
package/dist/inline/shared.d.ts
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import type { OpenClawConfig } from "openclaw/plugin-sdk/core";
|
|
2
|
-
import { type ResolvedInlineAccount } from "./accounts.js";
|
|
3
|
-
import { hasInlineConfiguredState } from "../configured-state.js";
|
|
4
|
-
export declare const INLINE_CHANNEL: "inline";
|
|
5
|
-
export declare const inlineMeta: {
|
|
6
|
-
id: "inline";
|
|
7
|
-
label: string;
|
|
8
|
-
selectionLabel: string;
|
|
9
|
-
detailLabel: string;
|
|
10
|
-
docsPath: string;
|
|
11
|
-
docsLabel: string;
|
|
12
|
-
blurb: string;
|
|
13
|
-
systemImage: string;
|
|
14
|
-
markdownCapable: boolean;
|
|
15
|
-
aliases: string[];
|
|
16
|
-
order: number;
|
|
17
|
-
quickstartAllowFrom: boolean;
|
|
18
|
-
};
|
|
19
|
-
export declare const inlineConfigSchema: {
|
|
20
|
-
schema: Record<string, unknown>;
|
|
21
|
-
};
|
|
22
|
-
export declare function normalizeInlineAllowEntry(raw: string): string;
|
|
23
|
-
export declare function describeInlineAccount(account: ResolvedInlineAccount): {
|
|
24
|
-
accountId: string;
|
|
25
|
-
name: string;
|
|
26
|
-
enabled: boolean;
|
|
27
|
-
configured: boolean;
|
|
28
|
-
baseUrl: string;
|
|
29
|
-
tokenSource: "config" | "env" | "file" | "none";
|
|
30
|
-
};
|
|
31
|
-
export declare const inlineConfigAdapter: {
|
|
32
|
-
listAccountIds: (cfg: OpenClawConfig) => string[];
|
|
33
|
-
resolveAccount: (cfg: OpenClawConfig, accountId?: string | null) => ResolvedInlineAccount;
|
|
34
|
-
inspectAccount: (cfg: OpenClawConfig, accountId?: string | null) => import("./accounts.js").InspectedInlineAccount;
|
|
35
|
-
defaultAccountId: (cfg: OpenClawConfig) => string;
|
|
36
|
-
setAccountEnabled: ({ cfg, accountId, enabled }: {
|
|
37
|
-
cfg: OpenClawConfig;
|
|
38
|
-
accountId: string;
|
|
39
|
-
enabled: boolean;
|
|
40
|
-
}) => OpenClawConfig;
|
|
41
|
-
deleteAccount: ({ cfg, accountId }: {
|
|
42
|
-
cfg: OpenClawConfig;
|
|
43
|
-
accountId: string;
|
|
44
|
-
}) => OpenClawConfig;
|
|
45
|
-
isConfigured: (account: ResolvedInlineAccount, cfg: OpenClawConfig) => boolean;
|
|
46
|
-
unconfiguredReason: (account: ResolvedInlineAccount, cfg: OpenClawConfig) => string;
|
|
47
|
-
describeAccount: (account: ResolvedInlineAccount, cfg: OpenClawConfig) => import("openclaw/plugin-sdk/core").ChannelAccountSnapshot;
|
|
48
|
-
resolveAllowFrom: ({ cfg, accountId }: {
|
|
49
|
-
cfg: OpenClawConfig;
|
|
50
|
-
accountId?: string | null;
|
|
51
|
-
}) => string[];
|
|
52
|
-
resolveDefaultTo: ({ cfg, accountId }: {
|
|
53
|
-
cfg: OpenClawConfig;
|
|
54
|
-
accountId?: string | null;
|
|
55
|
-
}) => string | undefined;
|
|
56
|
-
formatAllowFrom: ({ allowFrom }: {
|
|
57
|
-
allowFrom: Array<string | number>;
|
|
58
|
-
}) => string[];
|
|
59
|
-
hasConfiguredState: typeof hasInlineConfiguredState;
|
|
60
|
-
};
|
|
61
|
-
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/inline/shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAO9D,OAAO,EAOL,KAAK,qBAAqB,EAC3B,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAA;AAEjE,eAAO,MAAM,cAAc,EAAG,QAAiB,CAAA;AAE/C,eAAO,MAAM,UAAU;;;;;;;;;;;;;CAatB,CAAA;AAED,eAAO,MAAM,kBAAkB;;CAA+C,CAAA;AAE9E,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAM7D;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,qBAAqB;;;;;;;EASnE;AAED,eAAO,MAAM,mBAAmB;0BACR,cAAc;0BACd,cAAc,cAAc,MAAM,GAAG,IAAI;0BAEzC,cAAc,cAAc,MAAM,GAAG,IAAI;4BAEvC,cAAc;qDACW;QAC/C,GAAG,EAAE,cAAc,CAAA;QACnB,SAAS,EAAE,MAAM,CAAA;QACjB,OAAO,EAAE,OAAO,CAAA;KACjB;wCAQmC;QAAE,GAAG,EAAE,cAAc,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE;4BAOtD,qBAAqB,OAAO,cAAc;kCAGpC,qBAAqB,OAAO,cAAc;+BAc7C,qBAAqB,OAAO,cAAc;2CAgB9B;QAAE,GAAG,EAAE,cAAc,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE;2CAIlD;QAAE,GAAG,EAAE,cAAc,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE;qCAMxD;QAAE,SAAS,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAA;KAAE;;CAMvE,CAAA"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { InlineSdkClient } from "@inline-chat/realtime-sdk";
|
|
2
|
-
export type InlineSpaceMemberRecord = {
|
|
3
|
-
userId: string;
|
|
4
|
-
role: "owner" | "admin" | "member" | null;
|
|
5
|
-
canAccessPublicChats: boolean | undefined;
|
|
6
|
-
date: number;
|
|
7
|
-
user: {
|
|
8
|
-
id: string;
|
|
9
|
-
name: string;
|
|
10
|
-
username: string | null;
|
|
11
|
-
} | null;
|
|
12
|
-
};
|
|
13
|
-
export declare function buildInlineUserDisplayName(user: {
|
|
14
|
-
firstName?: string;
|
|
15
|
-
lastName?: string;
|
|
16
|
-
username?: string;
|
|
17
|
-
}): string;
|
|
18
|
-
export declare function getSpaceMembersWithUsers(params: {
|
|
19
|
-
client: InlineSdkClient;
|
|
20
|
-
spaceId: bigint;
|
|
21
|
-
}): Promise<InlineSpaceMemberRecord[]>;
|
|
22
|
-
//# sourceMappingURL=space-members.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"space-members.d.ts","sourceRoot":"","sources":["../../src/inline/space-members.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EAIhB,MAAM,2BAA2B,CAAA;AAElC,MAAM,MAAM,uBAAuB,GAAG;IACpC,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,OAAO,GAAG,OAAO,GAAG,QAAQ,GAAG,IAAI,CAAA;IACzC,oBAAoB,EAAE,OAAO,GAAG,SAAS,CAAA;IACzC,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAA;QACV,IAAI,EAAE,MAAM,CAAA;QACZ,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;KACxB,GAAG,IAAI,CAAA;CACT,CAAA;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,GAAG,MAAM,CAMT;AAkBD,wBAAsB,wBAAwB,CAAC,MAAM,EAAE;IACrD,MAAM,EAAE,eAAe,CAAA;IACvB,OAAO,EAAE,MAAM,CAAA;CAChB,GAAG,OAAO,CAAC,uBAAuB,EAAE,CAAC,CA4BrC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"status-issues.d.ts","sourceRoot":"","sources":["../../src/inline/status-issues.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,sBAAsB,EACtB,kBAAkB,EACnB,MAAM,sCAAsC,CAAA;AAmG7C,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,sBAAsB,EAAE,GAAG,kBAAkB,EAAE,CAqHlG"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export type InlineThreadFreshnessMessage = {
|
|
2
|
-
id: bigint;
|
|
3
|
-
date?: bigint;
|
|
4
|
-
fromId?: bigint;
|
|
5
|
-
message?: string;
|
|
6
|
-
out?: boolean;
|
|
7
|
-
mentioned?: boolean;
|
|
8
|
-
entities?: unknown;
|
|
9
|
-
media?: unknown;
|
|
10
|
-
};
|
|
11
|
-
export type InlineThreadFreshnessKind = "fresh" | "existing" | "unknown";
|
|
12
|
-
export type InlineThreadFreshness<T extends InlineThreadFreshnessMessage = InlineThreadFreshnessMessage> = {
|
|
13
|
-
kind: InlineThreadFreshnessKind;
|
|
14
|
-
preJoinMessages: T[];
|
|
15
|
-
priorMentionMessages: T[];
|
|
16
|
-
reason: "history_unavailable" | "no_pre_join_messages" | "has_pre_join_messages";
|
|
17
|
-
};
|
|
18
|
-
export declare function resolveInlineThreadFreshness<T extends InlineThreadFreshnessMessage>(params: {
|
|
19
|
-
messages: readonly T[] | null | undefined;
|
|
20
|
-
botUserId: bigint;
|
|
21
|
-
botUsername?: string | null | undefined;
|
|
22
|
-
participantDate?: bigint | null | undefined;
|
|
23
|
-
}): InlineThreadFreshness<T>;
|
|
24
|
-
//# sourceMappingURL=thread-freshness.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"thread-freshness.d.ts","sourceRoot":"","sources":["../../src/inline/thread-freshness.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,4BAA4B,GAAG;IACzC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,GAAG,CAAC,EAAE,OAAO,CAAA;IACb,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,yBAAyB,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,CAAA;AAExE,MAAM,MAAM,qBAAqB,CAAC,CAAC,SAAS,4BAA4B,GAAG,4BAA4B,IAAI;IACzG,IAAI,EAAE,yBAAyB,CAAA;IAC/B,eAAe,EAAE,CAAC,EAAE,CAAA;IACpB,oBAAoB,EAAE,CAAC,EAAE,CAAA;IACzB,MAAM,EAAE,qBAAqB,GAAG,sBAAsB,GAAG,uBAAuB,CAAA;CACjF,CAAA;AAED,wBAAgB,4BAA4B,CAAC,CAAC,SAAS,4BAA4B,EAAE,MAAM,EAAE;IAC3F,QAAQ,EAAE,SAAS,CAAC,EAAE,GAAG,IAAI,GAAG,SAAS,CAAA;IACzC,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IACvC,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;CAC5C,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAsC3B"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare function recordInlineThreadParticipation(accountId: string, parentChatId: bigint, threadId: bigint, opts?: {
|
|
2
|
-
agentId?: string;
|
|
3
|
-
}): void;
|
|
4
|
-
export declare function hasInlineThreadParticipationWithPersistence(params: {
|
|
5
|
-
accountId: string;
|
|
6
|
-
parentChatId: bigint;
|
|
7
|
-
threadId: bigint;
|
|
8
|
-
}): Promise<boolean>;
|
|
9
|
-
export declare function clearInlineThreadParticipationCacheForTest(): void;
|
|
10
|
-
//# sourceMappingURL=thread-participation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"thread-participation.d.ts","sourceRoot":"","sources":["../../src/inline/thread-participation.ts"],"names":[],"mappings":"AA4JA,wBAAgB,+BAA+B,CAC7C,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,MAAM,EACpB,QAAQ,EAAE,MAAM,EAChB,IAAI,CAAC,EAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,GAC1B,IAAI,CASN;AAED,wBAAsB,2CAA2C,CAAC,MAAM,EAAE;IACxE,SAAS,EAAE,MAAM,CAAA;IACjB,YAAY,EAAE,MAAM,CAAA;IACpB,QAAQ,EAAE,MAAM,CAAA;CACjB,GAAG,OAAO,CAAC,OAAO,CAAC,CASnB;AAED,wBAAgB,0CAA0C,IAAI,IAAI,CAKjE"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export type InlineReplyThreadRouteRecord = {
|
|
2
|
-
accountId: string;
|
|
3
|
-
parentChatId: string;
|
|
4
|
-
threadId: string;
|
|
5
|
-
createdAt: number;
|
|
6
|
-
updatedAt: number;
|
|
7
|
-
parentMessageId?: string;
|
|
8
|
-
title?: string;
|
|
9
|
-
threadLabel?: string;
|
|
10
|
-
agentId?: string;
|
|
11
|
-
};
|
|
12
|
-
export declare function rememberInlineReplyThreadRoute(params: {
|
|
13
|
-
accountId: string;
|
|
14
|
-
parentChatId: bigint | string;
|
|
15
|
-
threadId: bigint | string;
|
|
16
|
-
parentMessageId?: bigint | string | null;
|
|
17
|
-
title?: string | null;
|
|
18
|
-
threadLabel?: string | null;
|
|
19
|
-
agentId?: string | null;
|
|
20
|
-
}): InlineReplyThreadRouteRecord | null;
|
|
21
|
-
export declare function lookupInlineReplyThreadRoute(params: {
|
|
22
|
-
accountId: string;
|
|
23
|
-
parentChatId: bigint | string;
|
|
24
|
-
parentMessageId?: bigint | string | null;
|
|
25
|
-
agentId?: string | null;
|
|
26
|
-
}): Promise<InlineReplyThreadRouteRecord | null>;
|
|
27
|
-
export declare function lookupInlineReplyThreadRouteByThreadId(params: {
|
|
28
|
-
accountId: string;
|
|
29
|
-
threadId: bigint | string | null;
|
|
30
|
-
}): Promise<InlineReplyThreadRouteRecord | null>;
|
|
31
|
-
export declare function clearInlineReplyThreadRouteCacheForTest(): void;
|
|
32
|
-
//# sourceMappingURL=thread-routes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"thread-routes.d.ts","sourceRoot":"","sources":["../../src/inline/thread-routes.ts"],"names":[],"mappings":"AAaA,MAAM,MAAM,4BAA4B,GAAG;IACzC,SAAS,EAAE,MAAM,CAAA;IACjB,YAAY,EAAE,MAAM,CAAA;IACpB,QA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ext } from "openclaw/plugin-sdk/channel-entry-contract";
|
|
2
|
-
type InlineThreadReplyCommandConfigRuntime = Pick<OpenClawPluginApi["runtime"]["config"], "current" | "mutateConfigFile">;
|
|
3
|
-
type InlineBuiltinCommandSpec = {
|
|
4
|
-
name: string;
|
|
5
|
-
description: string;
|
|
6
|
-
acceptsArgs: boolean;
|
|
7
|
-
};
|
|
8
|
-
export declare const INLINE_THREADREPLY_COMMAND_SPEC: {
|
|
9
|
-
name: string;
|
|
10
|
-
nativeNames: {
|
|
11
|
-
inline: string;
|
|
12
|
-
};
|
|
13
|
-
description: string;
|
|
14
|
-
channels: string[];
|
|
15
|
-
acceptsArgs: true;
|
|
16
|
-
};
|
|
17
|
-
export declare function listInlineBuiltinCommandSpecs(): InlineBuiltinCommandSpec[];
|
|
18
|
-
export declare function handleInlineThreadReplyCommand(api: OpenClawPluginApi, ctx: PluginCommandContext): Promise<{
|
|
19
|
-
text: string;
|
|
20
|
-
channelData?: never;
|
|
21
|
-
} | {
|
|
22
|
-
text: string;
|
|
23
|
-
channelData: {
|
|
24
|
-
inline: {
|
|
25
|
-
buttons: {
|
|
26
|
-
text: string;
|
|
27
|
-
callback_data: string;
|
|
28
|
-
}[][];
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
}>;
|
|
32
|
-
export declare function handleInlineThreadReplyCommandWithConfigRuntime(configRuntime: InlineThreadReplyCommandConfigRuntime, ctx: PluginCommandContext): Promise<{
|
|
33
|
-
text: string;
|
|
34
|
-
channelData?: never;
|
|
35
|
-
} | {
|
|
36
|
-
text: string;
|
|
37
|
-
channelData: {
|
|
38
|
-
inline: {
|
|
39
|
-
buttons: {
|
|
40
|
-
text: string;
|
|
41
|
-
callback_data: string;
|
|
42
|
-
}[][];
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
}>;
|
|
46
|
-
export declare function createInlineThreadReplyCommand(api: OpenClawPluginApi): OpenClawPluginCommandDefinition;
|
|
47
|
-
export {};
|
|
48
|
-
//# sourceMappingURL=threadreply-command.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"threadreply-command.d.ts","sourceRoot":"","sources":["../../src/inline/threadreply-command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,+BAA+B,EAC/B,oBAAoB,EACrB,MAAM,4CAA4C,CAAA;AAmCnD,KAAK,qCAAqC,GAAG,IAAI,CAC/C,iBAAiB,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,EACtC,SAAS,GAAG,kBAAkB,CAC/B,CAAA;AAED,KAAK,wBAAwB,GAAG;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,OAAO,CAAA;CACrB,CAAA;AAED,eAAO,MAAM,+BAA+B;;;;;;;;CAS3C,CAAA;AAED,wBAAgB,6BAA6B,IAAI,wBAAwB,EAAE,CAQ1E;AAgRD,wBAAsB,8BAA8B,CAClD,GAAG,EAAE,iBAAiB,EACtB,GAAG,EAAE,oBAAoB;;;;;;;;;;;;;GAG1B;AAED,wBAAsB,+CAA+C,CACnE,aAAa,EAAE,qCAAqC,EACpD,GAAG,EAAE,oBAAoB;;;;;;;;;;;;;GA8F1B;AAED,wBAAgB,8BAA8B,CAC5C,GAAG,EAAE,iBAAiB,GACrB,+BAA+B,CAKjC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export type InlinePeerTarget = {
|
|
2
|
-
peerId: {
|
|
3
|
-
type: {
|
|
4
|
-
oneofKind: "chat";
|
|
5
|
-
chat: {
|
|
6
|
-
chatId: bigint;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
} | {
|
|
10
|
-
type: {
|
|
11
|
-
oneofKind: "user";
|
|
12
|
-
user: {
|
|
13
|
-
userId: bigint;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
normalized: string;
|
|
18
|
-
};
|
|
19
|
-
export type InlineCurrentSession = {
|
|
20
|
-
target: InlinePeerTarget;
|
|
21
|
-
parentChatId: bigint | null;
|
|
22
|
-
threadId: bigint | null;
|
|
23
|
-
};
|
|
24
|
-
export declare function parseInlineId(raw: unknown, label: string): bigint;
|
|
25
|
-
export declare function parseOptionalInlineId(raw: unknown, label: string): bigint | null;
|
|
26
|
-
export declare function parseInlineTarget(raw: string, label: string): InlinePeerTarget;
|
|
27
|
-
export declare function parseCurrentInlineSession(ctx: {
|
|
28
|
-
messageChannel?: string;
|
|
29
|
-
sessionKey?: string;
|
|
30
|
-
}): InlineCurrentSession | null;
|
|
31
|
-
export declare function parseCurrentInlineTarget(ctx: {
|
|
32
|
-
messageChannel?: string;
|
|
33
|
-
sessionKey?: string;
|
|
34
|
-
}): InlinePeerTarget | null;
|
|
35
|
-
export declare function readStringCandidate(...values: unknown[]): string | undefined;
|
|
36
|
-
//# sourceMappingURL=tool-targets.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tool-targets.d.ts","sourceRoot":"","sources":["../../src/inline/tool-targets.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EACF;QAAE,IAAI,EAAE;YAAE,SAAS,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE;gBAAE,MAAM,EAAE,MAAM,CAAA;aAAE,CAAA;SAAE,CAAA;KAAE,GACzD;QAAE,IAAI,EAAE;YAAE,SAAS,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE;gBAAE,MAAM,EAAE,MAAM,CAAA;aAAE,CAAA;SAAE,CAAA;KAAE,CAAA;IAC7D,UAAU,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,EAAE,gBAAgB,CAAA;IACxB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;CACxB,CAAA;AAED,wBAAgB,aAAa,CAAC,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAkBjE;AAED,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAIhF;AAED,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,gBAAgB,CA0B9E;AAED,wBAAgB,yBAAyB,CAAC,GAAG,EAAE;IAC7C,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,GAAG,oBAAoB,GAAG,IAAI,CAoC9B;AAED,wBAAgB,wBAAwB,CAAC,GAAG,EAAE;IAC5C,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,GAAG,gBAAgB,GAAG,IAAI,CAE1B;AAED,wBAAgB,mBAAmB,CAAC,GAAG,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,GAAG,SAAS,CAO5E"}
|
|
@@ -1,141 +0,0 @@
|
|
|
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
|
-
allowlist: "allowlist";
|
|
34
|
-
open: "open";
|
|
35
|
-
disabled: "disabled";
|
|
36
|
-
}>;
|
|
37
|
-
export declare const DmPolicySchema: z.ZodEnum<{
|
|
38
|
-
pairing: "pairing";
|
|
39
|
-
allowlist: "allowlist";
|
|
40
|
-
open: "open";
|
|
41
|
-
disabled: "disabled";
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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,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AgB,iBAAiB,EAAE,MAAM,4CAA4C,CAAA;AAYjG,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,iBAAiB,GAAG,IAAI,CA4CrE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-setter-api.d.ts","sourceRoot":"","sources":["../src/runtime-setter-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA"}
|
package/dist/runtime.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { PluginRuntime } from "openclaw/plugin-sdk/core";
|
|
2
|
-
declare const setInlineRuntime: (next: PluginRuntime) => void, clearInlineRuntime: () => void, getOptionalInlineRuntime: () => PluginRuntime | null, getInlineRuntime: () => PluginRuntime;
|
|
3
|
-
export { clearInlineRuntime, getInlineRuntime, getOptionalInlineRuntime, setInlineRuntime, };
|
|
4
|
-
//# sourceMappingURL=runtime.d.ts.map
|
package/dist/runtime.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AAG7D,QAAA,MACc,gBAAgB,iCACd,kBAAkB,cACjB,wBAAwB,8BAC3B,gBAAgB,qBAI5B,CAAA;AAEF,OAAO,EACL,kBAAkB,EAClB,gBAAgB,EAChB,wBAAwB,EACxB,gBAAgB,GACjB,CAAA"}
|
|
@@ -1,57 +0,0 @@
|
|
|
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
|
-
responsePrefixContextProvider?: () => unknown;
|
|
26
|
-
transformReplyPayload?: (payload: Record<string, unknown>) => Record<string, unknown> | null;
|
|
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 extensionForMimeCompat(mime: string | undefined): string | undefined;
|
|
49
|
-
export declare function createChannelReplyPipelineCompat(params: {
|
|
50
|
-
cfg: unknown;
|
|
51
|
-
agentId: string;
|
|
52
|
-
channel?: string;
|
|
53
|
-
accountId?: string;
|
|
54
|
-
typing?: CreateInlineTypingCallbacksParams;
|
|
55
|
-
typingCallbacks?: InlineTypingCallbacks;
|
|
56
|
-
}): Promise<InlineChannelReplyPipeline>;
|
|
57
|
-
//# sourceMappingURL=sdk-runtime-compat.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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,GAAG,EAAE,OAAO,KAAK,IAAI,CAAA;IACpC,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,sBAAsB,CAAC,EAAE,MAAM,CAAA;IAC/B,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,0BAA0B,GAAG;IACvC,eAAe,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAA;IACxC,cAAc,CAAC,EAAE,MAAM,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AE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,iCAAiC,CAAA;IAC1C,eAAe,CAAC,EAAE,qBAAqB,CAAA;CACxC,GAAG,OAAO,CAAC,0BAA0B,CAAC,CActC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"secret-contract-api.d.ts","sourceRoot":"","sources":["../src/secret-contract-api.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,+BAA+B,EAC/B,2BAA2B,GAC5B,MAAM,6BAA6B,CAAA"}
|
package/dist/setup-entry.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setup-entry.d.ts","sourceRoot":"","sources":["../src/setup-entry.ts"],"names":[],"mappings":";AAEA,wBAUE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setup-plugin-api.d.ts","sourceRoot":"","sources":["../src/setup-plugin-api.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA"}
|