@soimy/dingtalk 3.6.8 → 3.6.10
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/dist/index.d.ts +3 -12
- package/dist/index.js +1030 -318
- package/dist/src/access-control.d.ts +0 -1
- package/dist/src/ack-reaction/dynamic-ack-reaction-controller.d.ts +0 -1
- package/dist/src/ack-reaction/dynamic-ack-reaction-events.d.ts +0 -1
- package/dist/src/ack-reaction/dynamic-ack-reaction-progress.d.ts +0 -1
- package/dist/src/ack-reaction-classifier.d.ts +0 -1
- package/dist/src/ack-reaction-service.d.ts +0 -1
- package/dist/src/auth.d.ts +0 -1
- package/dist/src/card/ask-user-question-context.d.ts +0 -1
- package/dist/src/card/ask-user-question-store.d.ts +0 -1
- package/dist/src/card/ask-user-question.d.ts +0 -1
- package/dist/src/card/card-action-handler.d.ts +0 -1
- package/dist/src/card/card-markdown-image-reroute.d.ts +0 -1
- package/dist/src/card/card-run-registry.d.ts +0 -1
- package/dist/src/card/card-stop-handler.d.ts +0 -1
- package/dist/src/card/card-streaming-mode.d.ts +0 -1
- package/dist/src/card/card-template.d.ts +0 -1
- package/dist/src/card/reasoning-answer-split.d.ts +0 -1
- package/dist/src/card/reasoning-block-assembler.d.ts +0 -1
- package/dist/src/card/statusline-renderer.d.ts +0 -1
- package/dist/src/card/task-model-metadata.d.ts +0 -1
- package/dist/src/card-callback-service.d.ts +0 -1
- package/dist/src/card-draft-controller.d.ts +0 -1
- package/dist/src/card-service.d.ts +0 -1
- package/dist/src/channel.d.ts +0 -1
- package/dist/src/command/card-stop-command.d.ts +0 -1
- package/dist/src/command/inbound-command-dispatch-service.d.ts +0 -1
- package/dist/src/config-schema.d.ts +0 -1
- package/dist/src/config.d.ts +0 -1
- package/dist/src/connection-manager.d.ts +0 -1
- package/dist/src/dedup.d.ts +0 -1
- package/dist/src/device-registration.d.ts +0 -1
- package/dist/src/docs-service.d.ts +0 -1
- package/dist/src/draft-stream-loop.d.ts +0 -1
- package/dist/src/feedback-learning-service.d.ts +0 -1
- package/dist/src/feedback-learning-store.d.ts +0 -1
- package/dist/src/gateway/channel-gateway.d.ts +0 -1
- package/dist/src/gateway/inbound-session-queue-dispatcher.d.ts +0 -1
- package/dist/src/gateway/inbound-session-queue.d.ts +0 -1
- package/dist/src/gateway/reply-session-conflict.d.ts +0 -1
- package/dist/src/http-client.d.ts +0 -1
- package/dist/src/inbound-handler.d.ts +0 -1
- package/dist/src/learning-command-service.d.ts +0 -1
- package/dist/src/logger-context.d.ts +0 -1
- package/dist/src/media-utils.d.ts +0 -1
- package/dist/src/message-context-store.d.ts +0 -1
- package/dist/src/message-utils.d.ts +0 -1
- package/dist/src/messaging/attachment-text-extractor.d.ts +0 -1
- package/dist/src/messaging/btw-deliver.d.ts +0 -1
- package/dist/src/messaging/channel-actions.d.ts +0 -1
- package/dist/src/messaging/channel-outbound.d.ts +0 -1
- package/dist/src/messaging/quoted-context.d.ts +0 -1
- package/dist/src/messaging/quoted-file-service.d.ts +0 -1
- package/dist/src/messaging/quoted-ref.d.ts +0 -1
- package/dist/src/onboarding.d.ts +0 -1
- package/dist/src/path-utils.d.ts +0 -1
- package/dist/src/peer-id-registry.d.ts +0 -12
- package/dist/src/persistence-store.d.ts +0 -1
- package/dist/src/platform/channel-status.d.ts +0 -1
- package/dist/src/plugin-sdk-channel-actions-augment.d.ts +0 -1
- package/dist/src/proactive-risk-registry.d.ts +0 -1
- package/dist/src/reply-strategy-card.d.ts +0 -1
- package/dist/src/reply-strategy-markdown.d.ts +0 -1
- package/dist/src/reply-strategy-types.d.ts +0 -1
- package/dist/src/reply-strategy-with-reaction.d.ts +0 -1
- package/dist/src/reply-strategy.d.ts +0 -1
- package/dist/src/run-usage-store.d.ts +0 -1
- package/dist/src/runtime.d.ts +0 -1
- package/dist/src/secret-input.d.ts +3 -3
- package/dist/src/send-service.d.ts +0 -1
- package/dist/src/session-command-service.d.ts +0 -1
- package/dist/src/session-lock.d.ts +0 -1
- package/dist/src/session-peer-store.d.ts +0 -1
- package/dist/src/session-routing.d.ts +0 -1
- package/dist/src/session-state.d.ts +0 -1
- package/dist/src/signature.d.ts +0 -1
- package/dist/src/targeting/agent-name-matcher.d.ts +0 -1
- package/dist/src/targeting/agent-routing.d.ts +0 -1
- package/dist/src/targeting/group-members-store.d.ts +0 -1
- package/dist/src/targeting/target-directory-adapter.d.ts +0 -1
- package/dist/src/targeting/target-directory-store.d.ts +0 -1
- package/dist/src/targeting/target-input.d.ts +0 -1
- package/dist/src/types.d.ts +0 -1
- package/dist/src/utils.d.ts +0 -1
- package/index.ts +8 -2
- package/openclaw.plugin.json +4 -3
- package/package.json +10 -8
- package/src/channel.ts +4 -3
- package/src/gateway/channel-gateway.ts +67 -4
- package/src/messaging/channel-actions.ts +1 -4
- package/src/peer-id-registry.ts +0 -100
- package/src/secret-input.ts +33 -33
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -7
- package/dist/src/access-control.d.ts.map +0 -1
- package/dist/src/ack-reaction/dynamic-ack-reaction-controller.d.ts.map +0 -1
- package/dist/src/ack-reaction/dynamic-ack-reaction-events.d.ts.map +0 -1
- package/dist/src/ack-reaction/dynamic-ack-reaction-progress.d.ts.map +0 -1
- package/dist/src/ack-reaction-classifier.d.ts.map +0 -1
- package/dist/src/ack-reaction-service.d.ts.map +0 -1
- package/dist/src/auth.d.ts.map +0 -1
- package/dist/src/card/ask-user-question-context.d.ts.map +0 -1
- package/dist/src/card/ask-user-question-store.d.ts.map +0 -1
- package/dist/src/card/ask-user-question.d.ts.map +0 -1
- package/dist/src/card/card-action-handler.d.ts.map +0 -1
- package/dist/src/card/card-markdown-image-reroute.d.ts.map +0 -1
- package/dist/src/card/card-run-registry.d.ts.map +0 -1
- package/dist/src/card/card-stop-handler.d.ts.map +0 -1
- package/dist/src/card/card-streaming-mode.d.ts.map +0 -1
- package/dist/src/card/card-template.d.ts.map +0 -1
- package/dist/src/card/reasoning-answer-split.d.ts.map +0 -1
- package/dist/src/card/reasoning-block-assembler.d.ts.map +0 -1
- package/dist/src/card/statusline-renderer.d.ts.map +0 -1
- package/dist/src/card/task-model-metadata.d.ts.map +0 -1
- package/dist/src/card-callback-service.d.ts.map +0 -1
- package/dist/src/card-draft-controller.d.ts.map +0 -1
- package/dist/src/card-service.d.ts.map +0 -1
- package/dist/src/channel.d.ts.map +0 -1
- package/dist/src/command/card-stop-command.d.ts.map +0 -1
- package/dist/src/command/inbound-command-dispatch-service.d.ts.map +0 -1
- package/dist/src/config-schema.d.ts.map +0 -1
- package/dist/src/config.d.ts.map +0 -1
- package/dist/src/connection-manager.d.ts.map +0 -1
- package/dist/src/dedup.d.ts.map +0 -1
- package/dist/src/device-registration.d.ts.map +0 -1
- package/dist/src/docs-service.d.ts.map +0 -1
- package/dist/src/draft-stream-loop.d.ts.map +0 -1
- package/dist/src/feedback-learning-service.d.ts.map +0 -1
- package/dist/src/feedback-learning-store.d.ts.map +0 -1
- package/dist/src/gateway/channel-gateway.d.ts.map +0 -1
- package/dist/src/gateway/inbound-session-queue-dispatcher.d.ts.map +0 -1
- package/dist/src/gateway/inbound-session-queue.d.ts.map +0 -1
- package/dist/src/gateway/reply-session-conflict.d.ts.map +0 -1
- package/dist/src/http-client.d.ts.map +0 -1
- package/dist/src/inbound-handler.d.ts.map +0 -1
- package/dist/src/learning-command-service.d.ts.map +0 -1
- package/dist/src/logger-context.d.ts.map +0 -1
- package/dist/src/media-utils.d.ts.map +0 -1
- package/dist/src/message-context-store.d.ts.map +0 -1
- package/dist/src/message-utils.d.ts.map +0 -1
- package/dist/src/messaging/attachment-text-extractor.d.ts.map +0 -1
- package/dist/src/messaging/btw-deliver.d.ts.map +0 -1
- package/dist/src/messaging/channel-actions.d.ts.map +0 -1
- package/dist/src/messaging/channel-outbound.d.ts.map +0 -1
- package/dist/src/messaging/quoted-context.d.ts.map +0 -1
- package/dist/src/messaging/quoted-file-service.d.ts.map +0 -1
- package/dist/src/messaging/quoted-ref.d.ts.map +0 -1
- package/dist/src/onboarding.d.ts.map +0 -1
- package/dist/src/path-utils.d.ts.map +0 -1
- package/dist/src/peer-id-registry.d.ts.map +0 -1
- package/dist/src/persistence-store.d.ts.map +0 -1
- package/dist/src/platform/channel-status.d.ts.map +0 -1
- package/dist/src/plugin-sdk-channel-actions-augment.d.ts.map +0 -1
- package/dist/src/proactive-risk-registry.d.ts.map +0 -1
- package/dist/src/reply-strategy-card.d.ts.map +0 -1
- package/dist/src/reply-strategy-markdown.d.ts.map +0 -1
- package/dist/src/reply-strategy-types.d.ts.map +0 -1
- package/dist/src/reply-strategy-with-reaction.d.ts.map +0 -1
- package/dist/src/reply-strategy.d.ts.map +0 -1
- package/dist/src/run-usage-store.d.ts.map +0 -1
- package/dist/src/runtime.d.ts.map +0 -1
- package/dist/src/secret-input.d.ts.map +0 -1
- package/dist/src/send-service.d.ts.map +0 -1
- package/dist/src/session-command-service.d.ts.map +0 -1
- package/dist/src/session-lock.d.ts.map +0 -1
- package/dist/src/session-peer-store.d.ts.map +0 -1
- package/dist/src/session-routing.d.ts.map +0 -1
- package/dist/src/session-state.d.ts.map +0 -1
- package/dist/src/signature.d.ts.map +0 -1
- package/dist/src/targeting/agent-name-matcher.d.ts.map +0 -1
- package/dist/src/targeting/agent-routing.d.ts.map +0 -1
- package/dist/src/targeting/group-members-store.d.ts.map +0 -1
- package/dist/src/targeting/target-directory-adapter.d.ts.map +0 -1
- package/dist/src/targeting/target-directory-store.d.ts.map +0 -1
- package/dist/src/targeting/target-input.d.ts.map +0 -1
- package/dist/src/types.d.ts.map +0 -1
- package/dist/src/utils.d.ts.map +0 -1
|
@@ -12,4 +12,3 @@ type AckReactionTarget = {
|
|
|
12
12
|
export declare function attachNativeAckReaction(config: DingTalkConfig, data: AckReactionTarget, log?: AckReactionLogger): Promise<boolean>;
|
|
13
13
|
export declare function recallNativeAckReactionWithRetry(config: DingTalkConfig, data: AckReactionTarget, log?: AckReactionLogger): Promise<void>;
|
|
14
14
|
export {};
|
|
15
|
-
//# sourceMappingURL=ack-reaction-service.d.ts.map
|
package/dist/src/auth.d.ts
CHANGED
|
@@ -17,4 +17,3 @@ export type DingTalkQuestionContext = {
|
|
|
17
17
|
};
|
|
18
18
|
export declare function withDingTalkQuestionContext<T>(context: DingTalkQuestionContext, fn: () => Promise<T>): Promise<T>;
|
|
19
19
|
export declare function getDingTalkQuestionContext(): DingTalkQuestionContext | undefined;
|
|
20
|
-
//# sourceMappingURL=ask-user-question-context.d.ts.map
|
|
@@ -39,4 +39,3 @@ export declare function terminateAskUserQuestion(options: AskUserStoreOptions, q
|
|
|
39
39
|
export declare function invalidateAskUserQuestionsInScope(options: AskUserStoreOptions, questionScopeKey: string, reason: AskUserTerminalReason): AskUserLifecycleRecord[];
|
|
40
40
|
export declare function resolveAskUserQuestion(options: AskUserStoreOptions, identifier: AskUserQuestionIdentifier): AskUserLifecycleRecord | undefined;
|
|
41
41
|
export declare function recoverAskUserQuestionsAfterRestart(options: AskUserStoreOptions): AskUserLifecycleRecord[];
|
|
42
|
-
//# sourceMappingURL=ask-user-question-store.d.ts.map
|
|
@@ -258,4 +258,3 @@ export declare function registerPendingQuestionForTest(ctx: Omit<PendingQuestion
|
|
|
258
258
|
export declare function clearPendingQuestionsForTest(): void;
|
|
259
259
|
export declare function registerDingTalkAskUserQuestionTool(api: OpenClawPluginApi): void;
|
|
260
260
|
export {};
|
|
261
|
-
//# sourceMappingURL=ask-user-question.d.ts.map
|
|
@@ -57,4 +57,3 @@ export declare function markCardRunStopRequested(outTrackId: string): void;
|
|
|
57
57
|
export declare function isCardRunStopRequested(outTrackId: string): boolean;
|
|
58
58
|
export declare function removeCardRun(outTrackId: string): void;
|
|
59
59
|
export declare function clearCardRunRegistryForTest(): void;
|
|
60
|
-
//# sourceMappingURL=card-run-registry.d.ts.map
|
|
@@ -5,4 +5,3 @@ export declare function resolveCardStreamingMode(config: Pick<DingTalkConfig, "c
|
|
|
5
5
|
usedDeprecatedCardRealTimeStream: boolean;
|
|
6
6
|
};
|
|
7
7
|
export declare function shouldWarnDeprecatedCardRealTimeStreamOnce(configKey: string): boolean;
|
|
8
|
-
//# sourceMappingURL=card-streaming-mode.d.ts.map
|
|
@@ -23,4 +23,3 @@ export interface DingTalkAskUserCardTemplateContract {
|
|
|
23
23
|
/** Frozen singleton — no allocation on every call. */
|
|
24
24
|
export declare const DINGTALK_CARD_TEMPLATE: Readonly<DingTalkCardTemplateContract>;
|
|
25
25
|
export declare const DINGTALK_ASK_USER_CARD_TEMPLATE: Readonly<DingTalkAskUserCardTemplateContract>;
|
|
26
|
-
//# sourceMappingURL=card-template.d.ts.map
|
|
@@ -20,4 +20,3 @@ export declare function analyzeCardCallback(data: unknown): CardCallbackAnalysis
|
|
|
20
20
|
export declare function updateCardVariables(outTrackId: string, params: Record<string, unknown>, token: string, config?: {
|
|
21
21
|
bypassProxyForSend?: boolean;
|
|
22
22
|
}): Promise<number>;
|
|
23
|
-
//# sourceMappingURL=card-callback-service.d.ts.map
|
|
@@ -99,4 +99,3 @@ export declare function cacheCardContent(accountId: string, conversationId: stri
|
|
|
99
99
|
export declare function findCardContent(accountId: string, conversationId: string, repliedCreatedAt: number, storePath?: string): string | null;
|
|
100
100
|
export declare function clearCardContentCacheForTest(): void;
|
|
101
101
|
export {};
|
|
102
|
-
//# sourceMappingURL=card-service.d.ts.map
|
package/dist/src/channel.d.ts
CHANGED
|
@@ -7,4 +7,3 @@ export { createAICard, finishAICard, streamAICard } from "./card-service";
|
|
|
7
7
|
export { detectMediaTypeFromExtension } from "./media-utils";
|
|
8
8
|
export { getLogger } from "./logger-context";
|
|
9
9
|
export { sendBySession, sendMessage, sendProactiveMedia, uploadMedia, } from "./send-service";
|
|
10
|
-
//# sourceMappingURL=channel.d.ts.map
|
package/dist/src/config.d.ts
CHANGED
|
@@ -57,4 +57,3 @@ export interface ResolvedDingTalkAccount extends DingTalkConfig {
|
|
|
57
57
|
* Resolve a specific DingTalk account configuration
|
|
58
58
|
*/
|
|
59
59
|
export declare function resolveDingTalkAccount(cfg: OpenClawConfig, accountId?: string | null): ResolvedDingTalkAccount;
|
|
60
|
-
//# sourceMappingURL=config.d.ts.map
|
package/dist/src/dedup.d.ts
CHANGED
|
@@ -9,4 +9,3 @@ export declare function appendToDoc(config: DingTalkConfig, docId: string, conte
|
|
|
9
9
|
}>;
|
|
10
10
|
export declare function searchDocs(config: DingTalkConfig, keyword: string, spaceId?: string, log?: import("openclaw/plugin-sdk/channel-runtime").ChannelLogSink | undefined): Promise<DocInfo[]>;
|
|
11
11
|
export declare function listDocs(config: DingTalkConfig, spaceId: string, parentId?: string, log?: import("openclaw/plugin-sdk/channel-runtime").ChannelLogSink | undefined): Promise<DocInfo[]>;
|
|
12
|
-
//# sourceMappingURL=docs-service.d.ts.map
|
|
@@ -120,4 +120,3 @@ export declare function listScopedLearningRules(params: {
|
|
|
120
120
|
accountId: string;
|
|
121
121
|
}): ScopedLearnedRuleRecord[];
|
|
122
122
|
export declare function normalizeManualTriggerText(input: string | undefined): string;
|
|
123
|
-
//# sourceMappingURL=feedback-learning-service.d.ts.map
|
|
@@ -20,4 +20,3 @@ export interface InboundQueueDispatchInput {
|
|
|
20
20
|
* (`markMessageProcessed` only runs once the message truly completes).
|
|
21
21
|
*/
|
|
22
22
|
export declare function dispatchInboundViaSessionQueue<T>(input: InboundQueueDispatchInput, handler: (preCreatedCard?: AICardInstance) => Promise<T>): Promise<T>;
|
|
23
|
-
//# sourceMappingURL=inbound-session-queue-dispatcher.d.ts.map
|
|
@@ -43,4 +43,3 @@ export declare function pickQueueBusyAckPhrase(seed?: number): string;
|
|
|
43
43
|
export declare function inboundSessionQueueBusyKeysForTest(): string[];
|
|
44
44
|
/** @internal Reset all queue state. Tests must call this in afterEach. */
|
|
45
45
|
export declare function resetInboundSessionQueueForTest(): void;
|
|
46
|
-
//# sourceMappingURL=inbound-session-queue.d.ts.map
|
|
@@ -19,4 +19,3 @@ export interface ReplySessionConflictRetryOptions {
|
|
|
19
19
|
* own fallback (e.g. an immediate "processing" acknowledgement).
|
|
20
20
|
*/
|
|
21
21
|
export declare function withReplySessionConflictRetry<T>(fn: () => Promise<T>, options?: ReplySessionConflictRetryOptions): Promise<T>;
|
|
22
|
-
//# sourceMappingURL=reply-session-conflict.d.ts.map
|
|
@@ -6,4 +6,3 @@ export declare function resetProactivePermissionHintStateForTest(): void;
|
|
|
6
6
|
*/
|
|
7
7
|
export declare function downloadMedia(config: DingTalkConfig, downloadCode: string, log?: any, originalFilename?: string): Promise<MediaFile | null>;
|
|
8
8
|
export declare function handleDingTalkMessage(params: HandleDingTalkMessageParams): Promise<void>;
|
|
9
|
-
//# sourceMappingURL=inbound-handler.d.ts.map
|
|
@@ -60,4 +60,3 @@ export interface UploadMediaResult {
|
|
|
60
60
|
export declare function uploadMedia(config: DingTalkConfig, mediaPath: string, mediaType: DingTalkMediaType, getAccessToken: (config: DingTalkConfig, log?: Logger) => Promise<string>, log?: Logger, options?: {
|
|
61
61
|
mediaLocalRoots?: string[];
|
|
62
62
|
}): Promise<UploadMediaResult | null>;
|
|
63
|
-
//# sourceMappingURL=media-utils.d.ts.map
|
|
@@ -19,4 +19,3 @@ export declare function detectMarkdownAndExtractTitle(text: string, options: Sen
|
|
|
19
19
|
*/
|
|
20
20
|
export declare function convertMarkdownTablesToPlainText(text: string): string;
|
|
21
21
|
export declare function extractMessageContent(data: DingTalkInboundMessage): MessageContent;
|
|
22
|
-
//# sourceMappingURL=message-utils.d.ts.map
|
|
@@ -10,4 +10,3 @@ export interface AttachmentTextExtractionResult {
|
|
|
10
10
|
sourceType: AttachmentTextSource;
|
|
11
11
|
}
|
|
12
12
|
export declare function extractAttachmentText(input: AttachmentTextExtractionInput): Promise<AttachmentTextExtractionResult | null>;
|
|
13
|
-
//# sourceMappingURL=attachment-text-extractor.d.ts.map
|
|
@@ -22,4 +22,3 @@ export interface ResolveQuotedFileParams {
|
|
|
22
22
|
export declare function resolveQuotedFile(config: DingTalkConfig, params: ResolveQuotedFileParams, log?: Logger): Promise<ResolvedQuotedFile | null>;
|
|
23
23
|
export declare function clearQuotedFileServiceCachesForTest(): void;
|
|
24
24
|
export {};
|
|
25
|
-
//# sourceMappingURL=quoted-file-service.d.ts.map
|
package/dist/src/onboarding.d.ts
CHANGED
package/dist/src/path-utils.d.ts
CHANGED
|
@@ -14,9 +14,6 @@ export declare function registerPeerId(originalId: string): void;
|
|
|
14
14
|
/**
|
|
15
15
|
* Resolve a possibly-lowercased peer ID back to its original casing.
|
|
16
16
|
*
|
|
17
|
-
* If registry is empty at first outbound call (for example, cron/delivery queue
|
|
18
|
-
* fires before inbound callbacks), perform a one-time lazy preload from sessions.
|
|
19
|
-
*
|
|
20
17
|
* Returns the original if found, otherwise returns the input as-is.
|
|
21
18
|
*/
|
|
22
19
|
export declare function resolveOriginalPeerId(id: string): string;
|
|
@@ -24,12 +21,3 @@ export declare function resolveOriginalPeerId(id: string): string;
|
|
|
24
21
|
* Clear the registry (for testing or shutdown).
|
|
25
22
|
*/
|
|
26
23
|
export declare function clearPeerIdRegistry(): void;
|
|
27
|
-
/**
|
|
28
|
-
* Preload known peer IDs from all agents' sessions.json files.
|
|
29
|
-
*
|
|
30
|
-
* Safe to call repeatedly:
|
|
31
|
-
* - without explicit homeDir: runs once, then no-ops;
|
|
32
|
-
* - with explicit homeDir: always runs (useful for tests).
|
|
33
|
-
*/
|
|
34
|
-
export declare function preloadPeerIdsFromSessions(homeDir?: string): void;
|
|
35
|
-
//# sourceMappingURL=peer-id-registry.d.ts.map
|
|
@@ -24,4 +24,3 @@ export declare function resolveNamespacePath(namespace: string, options: Resolve
|
|
|
24
24
|
export declare function readNamespaceJson<T>(namespace: string, options: ReadNamespaceJsonOptions<T>): T;
|
|
25
25
|
export declare function writeNamespaceJsonAtomic<T>(namespace: string, options: WriteNamespaceJsonOptions<T>): void;
|
|
26
26
|
export {};
|
|
27
|
-
//# sourceMappingURL=persistence-store.d.ts.map
|
|
@@ -19,4 +19,3 @@ export declare function getProactiveRiskObservationForAny(accountId: string, tar
|
|
|
19
19
|
export declare function deleteProactiveRiskObservation(accountId: string, targetId: string): void;
|
|
20
20
|
export declare function clearProactiveRiskObservationsForTest(): void;
|
|
21
21
|
export {};
|
|
22
|
-
//# sourceMappingURL=proactive-risk-registry.d.ts.map
|
|
@@ -12,4 +12,3 @@ export declare function getAggregatedUsage(runIds: Set<string> | undefined): Usa
|
|
|
12
12
|
export declare function clearRun(runId: string | undefined): void;
|
|
13
13
|
export declare function clearRuns(runIds: Set<string> | undefined): void;
|
|
14
14
|
export declare function clearAllForTest(): void;
|
|
15
|
-
//# sourceMappingURL=run-usage-store.d.ts.map
|
package/dist/src/runtime.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { OpenClawConfig } from "openclaw/plugin-sdk/core";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
export type SecretInputRef = {
|
|
3
4
|
source: "env" | "file";
|
|
@@ -27,8 +28,8 @@ export declare function isSecretInputRef(value: unknown): value is SecretInputRe
|
|
|
27
28
|
export declare function hasConfiguredSecretInput(value: unknown): boolean;
|
|
28
29
|
export declare function normalizeSecretInputString(value: unknown): string | undefined;
|
|
29
30
|
export declare function parseSecretInputString(value: unknown): SecretInput | undefined;
|
|
30
|
-
export declare function resolveSecretInputString(value: unknown, log?: SecretInputLog): Promise<string | undefined>;
|
|
31
|
-
export declare function resolveSecretInputStringWithFailure(value: unknown, log?: SecretInputLog): Promise<{
|
|
31
|
+
export declare function resolveSecretInputString(value: unknown, log?: SecretInputLog, hostConfig?: OpenClawConfig): Promise<string | undefined>;
|
|
32
|
+
export declare function resolveSecretInputStringWithFailure(value: unknown, log?: SecretInputLog, hostConfig?: OpenClawConfig): Promise<{
|
|
32
33
|
value?: string;
|
|
33
34
|
failure?: SecretInputResolutionFailure;
|
|
34
35
|
}>;
|
|
@@ -39,4 +40,3 @@ export declare function resolveDingTalkSecretConfig<T extends {
|
|
|
39
40
|
clientSecretResolutionFailure?: SecretInputResolutionFailure;
|
|
40
41
|
}>;
|
|
41
42
|
export {};
|
|
42
|
-
//# sourceMappingURL=secret-input.d.ts.map
|
|
@@ -8,4 +8,3 @@ export declare const SESSION_LOCK_NAMESPACE_POLICY: "memory-only";
|
|
|
8
8
|
export declare function acquireSessionLock(sessionKey: string): Promise<() => void>;
|
|
9
9
|
/** Visible for testing only. */
|
|
10
10
|
export declare function _getLocksMapForTest(): Map<string, Promise<void>>;
|
|
11
|
-
//# sourceMappingURL=session-lock.d.ts.map
|
|
@@ -16,4 +16,3 @@ export declare function getTaskTimeSeconds(scope: SessionStateScope): number | u
|
|
|
16
16
|
export declare function clearSessionState(scope: SessionStateScope): void;
|
|
17
17
|
export declare function clearAllSessionStatesForTest(): void;
|
|
18
18
|
export {};
|
|
19
|
-
//# sourceMappingURL=session-state.d.ts.map
|
package/dist/src/signature.d.ts
CHANGED
|
@@ -10,4 +10,3 @@ export type DirectoryListParams = {
|
|
|
10
10
|
export declare function listDingTalkDirectoryGroups(params: DirectoryListParams): ChannelDirectoryEntry[];
|
|
11
11
|
export declare function listDingTalkDirectoryUsers(params: DirectoryListParams): ChannelDirectoryEntry[];
|
|
12
12
|
export declare function normalizeResolvedDingTalkTarget(raw: string): string;
|
|
13
|
-
//# sourceMappingURL=target-directory-adapter.d.ts.map
|
package/dist/src/types.d.ts
CHANGED
package/dist/src/utils.d.ts
CHANGED
package/index.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
defineChannelPluginEntry,
|
|
3
|
+
type OpenClawPluginApi,
|
|
4
|
+
type OpenClawPluginDefinition,
|
|
5
|
+
} from "openclaw/plugin-sdk/core";
|
|
2
6
|
import { readStringParam } from "openclaw/plugin-sdk/param-readers";
|
|
3
7
|
import { getAccessToken } from "./src/auth";
|
|
4
8
|
import { registerDingTalkAskUserQuestionTool } from "./src/card/ask-user-question";
|
|
@@ -311,7 +315,7 @@ const dingtalkEntry = defineChannelPluginEntry({
|
|
|
311
315
|
},
|
|
312
316
|
});
|
|
313
317
|
|
|
314
|
-
|
|
318
|
+
const pluginDefinition: OpenClawPluginDefinition = {
|
|
315
319
|
...dingtalkEntry,
|
|
316
320
|
register(api: OpenClawPluginApi) {
|
|
317
321
|
const registrationMode = api.registrationMode as string | undefined;
|
|
@@ -325,3 +329,5 @@ export default {
|
|
|
325
329
|
dingtalkEntry.register(api);
|
|
326
330
|
},
|
|
327
331
|
};
|
|
332
|
+
|
|
333
|
+
export default pluginDefinition;
|