@soimy/dingtalk 3.6.9 → 3.6.11

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 (182) hide show
  1. package/dist/index.d.ts +3 -12
  2. package/dist/index.js +1262 -320
  3. package/dist/src/access-control.d.ts +0 -1
  4. package/dist/src/ack-reaction/dynamic-ack-reaction-controller.d.ts +0 -1
  5. package/dist/src/ack-reaction/dynamic-ack-reaction-events.d.ts +0 -1
  6. package/dist/src/ack-reaction/dynamic-ack-reaction-progress.d.ts +0 -1
  7. package/dist/src/ack-reaction-classifier.d.ts +0 -1
  8. package/dist/src/ack-reaction-service.d.ts +0 -1
  9. package/dist/src/auth.d.ts +0 -1
  10. package/dist/src/card/ask-user-question-context.d.ts +0 -1
  11. package/dist/src/card/ask-user-question-store.d.ts +0 -1
  12. package/dist/src/card/ask-user-question.d.ts +0 -1
  13. package/dist/src/card/card-action-handler.d.ts +0 -1
  14. package/dist/src/card/card-markdown-image-reroute.d.ts +0 -1
  15. package/dist/src/card/card-run-registry.d.ts +0 -1
  16. package/dist/src/card/card-stop-handler.d.ts +0 -1
  17. package/dist/src/card/card-streaming-mode.d.ts +0 -1
  18. package/dist/src/card/card-template.d.ts +0 -1
  19. package/dist/src/card/reasoning-answer-split.d.ts +0 -1
  20. package/dist/src/card/reasoning-block-assembler.d.ts +0 -1
  21. package/dist/src/card/statusline-renderer.d.ts +0 -1
  22. package/dist/src/card/task-model-metadata.d.ts +0 -1
  23. package/dist/src/card-callback-service.d.ts +0 -1
  24. package/dist/src/card-draft-controller.d.ts +0 -1
  25. package/dist/src/card-service.d.ts +0 -1
  26. package/dist/src/channel.d.ts +0 -1
  27. package/dist/src/command/card-stop-command.d.ts +0 -1
  28. package/dist/src/command/inbound-command-dispatch-service.d.ts +0 -1
  29. package/dist/src/config-schema.d.ts +0 -1
  30. package/dist/src/config.d.ts +0 -1
  31. package/dist/src/connection-manager.d.ts +0 -1
  32. package/dist/src/dedup.d.ts +0 -1
  33. package/dist/src/device-registration.d.ts +0 -1
  34. package/dist/src/docs-service.d.ts +4 -5
  35. package/dist/src/draft-stream-loop.d.ts +0 -1
  36. package/dist/src/feedback-learning-service.d.ts +0 -1
  37. package/dist/src/feedback-learning-store.d.ts +0 -1
  38. package/dist/src/gateway/channel-gateway.d.ts +0 -1
  39. package/dist/src/gateway/inbound-session-queue-dispatcher.d.ts +0 -1
  40. package/dist/src/gateway/inbound-session-queue.d.ts +0 -1
  41. package/dist/src/gateway/reply-session-conflict.d.ts +0 -1
  42. package/dist/src/http-client.d.ts +0 -1
  43. package/dist/src/inbound-handler.d.ts +0 -1
  44. package/dist/src/learning-command-service.d.ts +0 -1
  45. package/dist/src/logger-context.d.ts +0 -1
  46. package/dist/src/media-utils.d.ts +0 -1
  47. package/dist/src/message-context-store.d.ts +0 -1
  48. package/dist/src/message-utils.d.ts +0 -1
  49. package/dist/src/messaging/attachment-text-extractor.d.ts +0 -1
  50. package/dist/src/messaging/btw-deliver.d.ts +0 -1
  51. package/dist/src/messaging/channel-actions.d.ts +0 -1
  52. package/dist/src/messaging/channel-outbound.d.ts +0 -1
  53. package/dist/src/messaging/inline-directives.d.ts +42 -0
  54. package/dist/src/messaging/quoted-context.d.ts +0 -1
  55. package/dist/src/messaging/quoted-file-service.d.ts +0 -1
  56. package/dist/src/messaging/quoted-ref.d.ts +0 -1
  57. package/dist/src/onboarding.d.ts +0 -1
  58. package/dist/src/path-utils.d.ts +0 -1
  59. package/dist/src/peer-id-registry.d.ts +0 -12
  60. package/dist/src/persistence-store.d.ts +0 -1
  61. package/dist/src/platform/channel-status.d.ts +0 -1
  62. package/dist/src/plugin-sdk-channel-actions-augment.d.ts +0 -1
  63. package/dist/src/proactive-risk-registry.d.ts +0 -1
  64. package/dist/src/reply-strategy-card.d.ts +0 -1
  65. package/dist/src/reply-strategy-markdown.d.ts +0 -1
  66. package/dist/src/reply-strategy-types.d.ts +0 -1
  67. package/dist/src/reply-strategy-with-reaction.d.ts +0 -1
  68. package/dist/src/reply-strategy.d.ts +0 -1
  69. package/dist/src/run-usage-store.d.ts +0 -1
  70. package/dist/src/runtime.d.ts +0 -1
  71. package/dist/src/secret-input.d.ts +3 -3
  72. package/dist/src/send-service.d.ts +0 -1
  73. package/dist/src/session-command-service.d.ts +0 -1
  74. package/dist/src/session-lock.d.ts +0 -1
  75. package/dist/src/session-peer-store.d.ts +0 -1
  76. package/dist/src/session-routing.d.ts +0 -1
  77. package/dist/src/session-state.d.ts +0 -1
  78. package/dist/src/signature.d.ts +0 -1
  79. package/dist/src/targeting/agent-name-matcher.d.ts +0 -1
  80. package/dist/src/targeting/agent-routing.d.ts +0 -1
  81. package/dist/src/targeting/group-members-store.d.ts +0 -1
  82. package/dist/src/targeting/target-directory-adapter.d.ts +0 -1
  83. package/dist/src/targeting/target-directory-store.d.ts +0 -1
  84. package/dist/src/targeting/target-input.d.ts +0 -1
  85. package/dist/src/types.d.ts +1 -2
  86. package/dist/src/utils.d.ts +0 -1
  87. package/index.ts +8 -2
  88. package/openclaw.plugin.json +4 -3
  89. package/package.json +10 -8
  90. package/src/channel.ts +4 -3
  91. package/src/gateway/channel-gateway.ts +67 -4
  92. package/src/inbound-handler.ts +6 -2
  93. package/src/messaging/channel-actions.ts +1 -4
  94. package/src/messaging/inline-directives.ts +342 -0
  95. package/src/peer-id-registry.ts +0 -100
  96. package/src/secret-input.ts +33 -33
  97. package/src/types.ts +1 -1
  98. package/dist/index.d.ts.map +0 -1
  99. package/dist/index.js.map +0 -7
  100. package/dist/src/access-control.d.ts.map +0 -1
  101. package/dist/src/ack-reaction/dynamic-ack-reaction-controller.d.ts.map +0 -1
  102. package/dist/src/ack-reaction/dynamic-ack-reaction-events.d.ts.map +0 -1
  103. package/dist/src/ack-reaction/dynamic-ack-reaction-progress.d.ts.map +0 -1
  104. package/dist/src/ack-reaction-classifier.d.ts.map +0 -1
  105. package/dist/src/ack-reaction-service.d.ts.map +0 -1
  106. package/dist/src/auth.d.ts.map +0 -1
  107. package/dist/src/card/ask-user-question-context.d.ts.map +0 -1
  108. package/dist/src/card/ask-user-question-store.d.ts.map +0 -1
  109. package/dist/src/card/ask-user-question.d.ts.map +0 -1
  110. package/dist/src/card/card-action-handler.d.ts.map +0 -1
  111. package/dist/src/card/card-markdown-image-reroute.d.ts.map +0 -1
  112. package/dist/src/card/card-run-registry.d.ts.map +0 -1
  113. package/dist/src/card/card-stop-handler.d.ts.map +0 -1
  114. package/dist/src/card/card-streaming-mode.d.ts.map +0 -1
  115. package/dist/src/card/card-template.d.ts.map +0 -1
  116. package/dist/src/card/reasoning-answer-split.d.ts.map +0 -1
  117. package/dist/src/card/reasoning-block-assembler.d.ts.map +0 -1
  118. package/dist/src/card/statusline-renderer.d.ts.map +0 -1
  119. package/dist/src/card/task-model-metadata.d.ts.map +0 -1
  120. package/dist/src/card-callback-service.d.ts.map +0 -1
  121. package/dist/src/card-draft-controller.d.ts.map +0 -1
  122. package/dist/src/card-service.d.ts.map +0 -1
  123. package/dist/src/channel.d.ts.map +0 -1
  124. package/dist/src/command/card-stop-command.d.ts.map +0 -1
  125. package/dist/src/command/inbound-command-dispatch-service.d.ts.map +0 -1
  126. package/dist/src/config-schema.d.ts.map +0 -1
  127. package/dist/src/config.d.ts.map +0 -1
  128. package/dist/src/connection-manager.d.ts.map +0 -1
  129. package/dist/src/dedup.d.ts.map +0 -1
  130. package/dist/src/device-registration.d.ts.map +0 -1
  131. package/dist/src/docs-service.d.ts.map +0 -1
  132. package/dist/src/draft-stream-loop.d.ts.map +0 -1
  133. package/dist/src/feedback-learning-service.d.ts.map +0 -1
  134. package/dist/src/feedback-learning-store.d.ts.map +0 -1
  135. package/dist/src/gateway/channel-gateway.d.ts.map +0 -1
  136. package/dist/src/gateway/inbound-session-queue-dispatcher.d.ts.map +0 -1
  137. package/dist/src/gateway/inbound-session-queue.d.ts.map +0 -1
  138. package/dist/src/gateway/reply-session-conflict.d.ts.map +0 -1
  139. package/dist/src/http-client.d.ts.map +0 -1
  140. package/dist/src/inbound-handler.d.ts.map +0 -1
  141. package/dist/src/learning-command-service.d.ts.map +0 -1
  142. package/dist/src/logger-context.d.ts.map +0 -1
  143. package/dist/src/media-utils.d.ts.map +0 -1
  144. package/dist/src/message-context-store.d.ts.map +0 -1
  145. package/dist/src/message-utils.d.ts.map +0 -1
  146. package/dist/src/messaging/attachment-text-extractor.d.ts.map +0 -1
  147. package/dist/src/messaging/btw-deliver.d.ts.map +0 -1
  148. package/dist/src/messaging/channel-actions.d.ts.map +0 -1
  149. package/dist/src/messaging/channel-outbound.d.ts.map +0 -1
  150. package/dist/src/messaging/quoted-context.d.ts.map +0 -1
  151. package/dist/src/messaging/quoted-file-service.d.ts.map +0 -1
  152. package/dist/src/messaging/quoted-ref.d.ts.map +0 -1
  153. package/dist/src/onboarding.d.ts.map +0 -1
  154. package/dist/src/path-utils.d.ts.map +0 -1
  155. package/dist/src/peer-id-registry.d.ts.map +0 -1
  156. package/dist/src/persistence-store.d.ts.map +0 -1
  157. package/dist/src/platform/channel-status.d.ts.map +0 -1
  158. package/dist/src/plugin-sdk-channel-actions-augment.d.ts.map +0 -1
  159. package/dist/src/proactive-risk-registry.d.ts.map +0 -1
  160. package/dist/src/reply-strategy-card.d.ts.map +0 -1
  161. package/dist/src/reply-strategy-markdown.d.ts.map +0 -1
  162. package/dist/src/reply-strategy-types.d.ts.map +0 -1
  163. package/dist/src/reply-strategy-with-reaction.d.ts.map +0 -1
  164. package/dist/src/reply-strategy.d.ts.map +0 -1
  165. package/dist/src/run-usage-store.d.ts.map +0 -1
  166. package/dist/src/runtime.d.ts.map +0 -1
  167. package/dist/src/secret-input.d.ts.map +0 -1
  168. package/dist/src/send-service.d.ts.map +0 -1
  169. package/dist/src/session-command-service.d.ts.map +0 -1
  170. package/dist/src/session-lock.d.ts.map +0 -1
  171. package/dist/src/session-peer-store.d.ts.map +0 -1
  172. package/dist/src/session-routing.d.ts.map +0 -1
  173. package/dist/src/session-state.d.ts.map +0 -1
  174. package/dist/src/signature.d.ts.map +0 -1
  175. package/dist/src/targeting/agent-name-matcher.d.ts.map +0 -1
  176. package/dist/src/targeting/agent-routing.d.ts.map +0 -1
  177. package/dist/src/targeting/group-members-store.d.ts.map +0 -1
  178. package/dist/src/targeting/target-directory-adapter.d.ts.map +0 -1
  179. package/dist/src/targeting/target-directory-store.d.ts.map +0 -1
  180. package/dist/src/targeting/target-input.d.ts.map +0 -1
  181. package/dist/src/types.d.ts.map +0 -1
  182. package/dist/src/utils.d.ts.map +0 -1
@@ -40,4 +40,3 @@ export declare function isSenderOwner(params: {
40
40
  senderId?: string;
41
41
  rawSenderId?: string;
42
42
  }): boolean;
43
- //# sourceMappingURL=access-control.d.ts.map
@@ -19,4 +19,3 @@ export declare function createDynamicAckReactionController(params: DynamicAckRea
19
19
  stop: () => void;
20
20
  };
21
21
  export {};
22
- //# sourceMappingURL=dynamic-ack-reaction-controller.d.ts.map
@@ -33,4 +33,3 @@ export declare function createDynamicAckReactionCorrelator(params: {
33
33
  optimisticCaptureWindowMs: number;
34
34
  log?: DynamicAckReactionLogger;
35
35
  }): (event: RuntimeAgentEvent | undefined) => boolean;
36
- //# sourceMappingURL=dynamic-ack-reaction-events.d.ts.map
@@ -4,4 +4,3 @@
4
4
  * so this mapping is intentionally best-effort and keeps a safe default.
5
5
  */
6
6
  export declare function resolveToolProgressReaction(toolName: unknown, args: unknown): string;
7
- //# sourceMappingURL=dynamic-ack-reaction-progress.d.ts.map
@@ -5,4 +5,3 @@ type AckReactionClassifyResult = {
5
5
  };
6
6
  export declare function classifyAckReactionEmoji(sentence: unknown): AckReactionClassifyResult;
7
7
  export {};
8
- //# sourceMappingURL=ack-reaction-classifier.d.ts.map
@@ -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
@@ -4,4 +4,3 @@ import type { DingTalkConfig, Logger } from "./types";
4
4
  * Refreshes token one minute before expiry to avoid near-expiry failures.
5
5
  */
6
6
  export declare function getAccessToken(config: DingTalkConfig, log?: Logger): Promise<string>;
7
- //# sourceMappingURL=auth.d.ts.map
@@ -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
@@ -13,4 +13,3 @@ export declare function handleCardAction(params: {
13
13
  config: DingTalkConfig;
14
14
  log?: Logger;
15
15
  }): Promise<CardActionResult>;
16
- //# sourceMappingURL=card-action-handler.d.ts.map
@@ -13,4 +13,3 @@ export declare function buildImagePlaceholderText(input: {
13
13
  url: string;
14
14
  }): string;
15
15
  export declare function extractMarkdownImageCandidates(text: string): MarkdownImageCandidate[];
16
- //# sourceMappingURL=card-markdown-image-reroute.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
@@ -15,4 +15,3 @@ export declare function stopCardRun(params: {
15
15
  clickerUserId?: string;
16
16
  log?: Logger;
17
17
  }): Promise<StopCardRunResult>;
18
- //# sourceMappingURL=card-stop-handler.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
@@ -3,4 +3,3 @@ export interface CardReasoningAnswerSplit {
3
3
  answerText?: string;
4
4
  }
5
5
  export declare function splitCardReasoningAnswerText(text?: string): CardReasoningAnswerSplit;
6
- //# sourceMappingURL=reasoning-answer-split.d.ts.map
@@ -4,4 +4,3 @@ export interface ReasoningBlockAssembler {
4
4
  reset: () => void;
5
5
  }
6
6
  export declare function createReasoningBlockAssembler(): ReasoningBlockAssembler;
7
- //# sourceMappingURL=reasoning-block-assembler.d.ts.map
@@ -21,4 +21,3 @@ export interface StatusLineConfig {
21
21
  };
22
22
  }
23
23
  export declare function renderStatusLine(data: StatusLineData, config: StatusLineConfig): string;
24
- //# sourceMappingURL=statusline-renderer.d.ts.map
@@ -8,4 +8,3 @@ export declare function resolveConfiguredTaskModelMetadata(params: {
8
8
  cfg: OpenClawConfig;
9
9
  agentId?: string | null;
10
10
  }): InitialTaskModelMetadata;
11
- //# sourceMappingURL=task-model-metadata.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
@@ -72,4 +72,3 @@ export declare function createCardDraftController(params: {
72
72
  getStatusLine?: () => string | undefined;
73
73
  log?: Logger;
74
74
  }): CardDraftController;
75
- //# sourceMappingURL=card-draft-controller.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
@@ -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
@@ -27,4 +27,3 @@ export declare function dispatchDingTalkCardStopCommand(params: {
27
27
  }): Promise<{
28
28
  ok: boolean;
29
29
  }>;
30
- //# sourceMappingURL=card-stop-command.d.ts.map
@@ -37,4 +37,3 @@ type InboundCommandDispatchParams = {
37
37
  };
38
38
  export declare function handleInboundCommandDispatch(params: InboundCommandDispatchParams): Promise<boolean>;
39
39
  export {};
40
- //# sourceMappingURL=inbound-command-dispatch-service.d.ts.map
@@ -5,4 +5,3 @@ import { z } from "zod";
5
5
  */
6
6
  export declare const DingTalkConfigSchema: z.ZodTypeAny;
7
7
  export type DingTalkConfig = z.infer<typeof DingTalkConfigSchema>;
8
- //# sourceMappingURL=config-schema.d.ts.map
@@ -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
@@ -145,4 +145,3 @@ export declare class ConnectionManager {
145
145
  */
146
146
  isStopped(): boolean;
147
147
  }
148
- //# sourceMappingURL=connection-manager.d.ts.map
@@ -1,4 +1,3 @@
1
1
  export declare const DEDUP_NAMESPACE_POLICY: "memory-only";
2
2
  export declare function isMessageProcessed(dedupKey: string): boolean;
3
3
  export declare function markMessageProcessed(dedupKey: string): void;
4
- //# sourceMappingURL=dedup.d.ts.map
@@ -13,4 +13,3 @@ export interface DeviceRegistrationSession {
13
13
  }) => Promise<RegistrationResult>;
14
14
  }
15
15
  export declare function beginDeviceRegistration(): Promise<DeviceRegistrationSession>;
16
- //# sourceMappingURL=device-registration.d.ts.map
@@ -3,10 +3,9 @@ export declare class DocCreateAppendError extends Error {
3
3
  readonly doc: DocInfo;
4
4
  constructor(doc: DocInfo, cause?: unknown);
5
5
  }
6
- export declare function createDoc(config: DingTalkConfig, spaceId: string, title: string, content?: string, log?: import("openclaw/plugin-sdk/channel-runtime").ChannelLogSink | undefined, parentId?: string): Promise<DocInfo>;
7
- export declare function appendToDoc(config: DingTalkConfig, docId: string, content: string, log?: import("openclaw/plugin-sdk/channel-runtime").ChannelLogSink | undefined, index?: number): Promise<{
6
+ export declare function createDoc(config: DingTalkConfig, spaceId: string, title: string, content?: string, log?: import("openclaw/plugin-sdk/channel-contract").ChannelLogSink | undefined, parentId?: string): Promise<DocInfo>;
7
+ export declare function appendToDoc(config: DingTalkConfig, docId: string, content: string, log?: import("openclaw/plugin-sdk/channel-contract").ChannelLogSink | undefined, index?: number): Promise<{
8
8
  success: true;
9
9
  }>;
10
- export declare function searchDocs(config: DingTalkConfig, keyword: string, spaceId?: string, log?: import("openclaw/plugin-sdk/channel-runtime").ChannelLogSink | undefined): Promise<DocInfo[]>;
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
10
+ export declare function searchDocs(config: DingTalkConfig, keyword: string, spaceId?: string, log?: import("openclaw/plugin-sdk/channel-contract").ChannelLogSink | undefined): Promise<DocInfo[]>;
11
+ export declare function listDocs(config: DingTalkConfig, spaceId: string, parentId?: string, log?: import("openclaw/plugin-sdk/channel-contract").ChannelLogSink | undefined): Promise<DocInfo[]>;
@@ -25,4 +25,3 @@ export declare function createDraftStreamLoop(params: {
25
25
  isStopped: () => boolean;
26
26
  sendOrEditStreamMessage: (text: string) => Promise<void | boolean>;
27
27
  }): DraftStreamLoop;
28
- //# sourceMappingURL=draft-stream-loop.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
@@ -178,4 +178,3 @@ export declare function listTargetSets(params: {
178
178
  storePath?: string;
179
179
  accountId: string;
180
180
  }): TargetSetRecord[];
181
- //# sourceMappingURL=feedback-learning-store.d.ts.map
@@ -1,4 +1,3 @@
1
1
  import type { DingTalkChannelPlugin } from "../types";
2
2
  export declare const CHANNEL_INFLIGHT_NAMESPACE_POLICY: "memory-only";
3
3
  export declare function createDingTalkGateway(): NonNullable<DingTalkChannelPlugin["gateway"]>;
4
- //# sourceMappingURL=channel-gateway.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 @@ type AxiosInstanceWithGuards = AxiosInstance & {
6
6
  };
7
7
  declare const httpClient: AxiosInstanceWithGuards;
8
8
  export default httpClient;
9
- //# sourceMappingURL=http-client.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
@@ -61,4 +61,3 @@ export declare function formatTargetSetSavedReply(params: {
61
61
  setName: string;
62
62
  targetIds: string[];
63
63
  }): string;
64
- //# sourceMappingURL=learning-command-service.d.ts.map
@@ -7,4 +7,3 @@ export declare function setCurrentLogger(log?: Logger, accountId?: string | null
7
7
  * Read current logger bound by inbound handler.
8
8
  */
9
9
  export declare function getLogger(accountId?: string | null): Logger | undefined;
10
- //# sourceMappingURL=logger-context.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
@@ -123,4 +123,3 @@ export declare function listMessageContexts(params: ScopeParams & {
123
123
  nowMs?: number;
124
124
  }): MessageRecord[];
125
125
  export {};
126
- //# sourceMappingURL=message-context-store.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
@@ -39,4 +39,3 @@ export declare function deliverBtwReply(args: DeliverBtwReplyArgs): Promise<{
39
39
  ok: boolean;
40
40
  error?: string;
41
41
  }>;
42
- //# sourceMappingURL=btw-deliver.d.ts.map
@@ -1,3 +1,2 @@
1
1
  import type { ChannelMessageActionAdapter } from "openclaw/plugin-sdk/channel-contract";
2
2
  export declare function createDingTalkMessageActions(): ChannelMessageActionAdapter;
3
- //# sourceMappingURL=channel-actions.d.ts.map
@@ -1,3 +1,2 @@
1
1
  import type { DingTalkChannelPlugin } from "../types";
2
2
  export declare function createDingTalkOutbound(): NonNullable<DingTalkChannelPlugin["outbound"]>;
3
- //# sourceMappingURL=channel-outbound.d.ts.map
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Inline directive parsing (local implementation).
3
+ *
4
+ * OpenClaw retired the `openclaw/plugin-sdk/text-runtime` subpath in
5
+ * 2026.8.x (docs/plugins/sdk-migration.md: "The August 15 compatibility
6
+ * subpaths ... `text-runtime` ... were retired early"). Its replacement
7
+ * `openclaw/plugin-sdk/text-chunking` only re-exports the directive-tag
8
+ * *stripping* helpers and the `InlineDirectiveParseResult` type - not
9
+ * `parseInlineDirectives` itself.
10
+ *
11
+ * This module reproduces the previous host behaviour inside the plugin so no
12
+ * removed SDK internals are imported. Code-region awareness (fenced,
13
+ * indented, and inline code) is sourced from the public SDK helpers
14
+ * `findCodeRegions` / `isInsideCode` (available since 2026.7.1-2), plus a
15
+ * lenient indented-block fallback matching the host whitespace normalizer so
16
+ * directives inside code are never treated as real voice/reply commands.
17
+ *
18
+ * The shipped 2026.7.1-2 SDK `findCodeRegions` is a simplified heuristic: it
19
+ * pairs backtick runs of different lengths, lets shorter fences close longer
20
+ * ones, treats escaped backticks as real delimiters, and pairs backticks
21
+ * inside indented code with prose. `findDelimiterCodeRegions` therefore layers
22
+ * a CommonMark-style fence/inline-code supplement over the SDK regions (union,
23
+ * conservative: in doubt the text stays literal) so protection holds on every
24
+ * supported host. Ponytail: remove the supplement once the minimum host is
25
+ * 2026.8+ and its SDK regions are verified to cover these cases.
26
+ */
27
+ export type ParseInlineDirectivesOptions = {
28
+ currentMessageId?: string;
29
+ stripAudioTag?: boolean;
30
+ stripReplyTags?: boolean;
31
+ };
32
+ export type InlineDirectiveParseResult = {
33
+ text: string;
34
+ audioAsVoice: boolean;
35
+ replyToId?: string;
36
+ replyToExplicitId?: string;
37
+ replyToCurrent: boolean;
38
+ hasAudioTag: boolean;
39
+ hasReplyTag: boolean;
40
+ };
41
+ export declare function sanitizeReplyDirectiveId(rawReplyToId: string | undefined): string | undefined;
42
+ export declare function parseInlineDirectives(text: string | undefined, options?: ParseInlineDirectivesOptions): InlineDirectiveParseResult;
@@ -33,4 +33,3 @@ export declare function resolveQuotedRuntimeContext(params: {
33
33
  perHopBodyLimit?: number;
34
34
  totalBodyLimit?: number;
35
35
  }): ResolvedQuotedRuntimeContext | null;
36
- //# sourceMappingURL=quoted-context.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
@@ -9,4 +9,3 @@ export declare function resolveQuotedRecord(params: {
9
9
  quotedRef?: QuotedRef;
10
10
  log?: Logger;
11
11
  }): MessageRecord | null;
12
- //# sourceMappingURL=quoted-ref.d.ts.map
@@ -1,4 +1,3 @@
1
1
  import type { ChannelSetupAdapter, ChannelSetupWizard } from "openclaw/plugin-sdk/setup";
2
2
  export declare const dingtalkSetupAdapter: ChannelSetupAdapter;
3
3
  export declare const dingtalkSetupWizard: ChannelSetupWizard;
4
- //# sourceMappingURL=onboarding.d.ts.map
@@ -1,3 +1,2 @@
1
1
  export declare function resolveRelativePath(input: string): string;
2
2
  export declare const resolveUserPath: typeof resolveRelativePath;
3
- //# sourceMappingURL=path-utils.d.ts.map
@@ -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
@@ -1,3 +1,2 @@
1
1
  import type { DingTalkChannelPlugin } from "../types";
2
2
  export declare function createDingTalkStatus(): NonNullable<DingTalkChannelPlugin["status"]>;
3
- //# sourceMappingURL=channel-status.d.ts.map
@@ -4,4 +4,3 @@ declare module "openclaw/plugin-sdk/channel-actions" {
4
4
  function jsonResult(payload: unknown): JsonResultReturn;
5
5
  }
6
6
  export {};
7
- //# sourceMappingURL=plugin-sdk-channel-actions-augment.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
@@ -11,4 +11,3 @@ export declare function createCardReplyStrategy(ctx: ReplyStrategyContext & {
11
11
  card: AICardInstance;
12
12
  isStopRequested?: () => boolean;
13
13
  }): ReplyStrategy;
14
- //# sourceMappingURL=reply-strategy-card.d.ts.map
@@ -7,4 +7,3 @@
7
7
  */
8
8
  import type { ReplyStrategy, ReplyStrategyContext } from "./reply-strategy-types";
9
9
  export declare function createMarkdownReplyStrategy(ctx: ReplyStrategyContext): ReplyStrategy;
10
- //# sourceMappingURL=reply-strategy-markdown.d.ts.map
@@ -85,4 +85,3 @@ export interface ReplyStrategyContext {
85
85
  inboundText?: string;
86
86
  taskMeta?: TaskMeta;
87
87
  }
88
- //# sourceMappingURL=reply-strategy-types.d.ts.map
@@ -44,4 +44,3 @@ export interface DynamicReactionParams {
44
44
  log?: Logger;
45
45
  }
46
46
  export declare function withDynamicReaction(inner: ReplyStrategy, params: DynamicReactionParams): ReplyStrategy;
47
- //# sourceMappingURL=reply-strategy-with-reaction.d.ts.map
@@ -11,4 +11,3 @@ export declare function createReplyStrategy(params: ReplyStrategyContext & {
11
11
  card: AICardInstance | undefined;
12
12
  useCardMode: boolean;
13
13
  }): ReplyStrategy;
14
- //# sourceMappingURL=reply-strategy.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
@@ -1,4 +1,3 @@
1
1
  import type { PluginRuntime } from "openclaw/plugin-sdk/core";
2
2
  export declare function setDingTalkRuntime(next: PluginRuntime): void;
3
3
  export declare function getDingTalkRuntime(): PluginRuntime;
4
- //# sourceMappingURL=runtime.d.ts.map
@@ -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
@@ -43,4 +43,3 @@ export declare function sendMessage(config: DingTalkConfig, conversationId: stri
43
43
  messageId?: string;
44
44
  tracking?: DingTalkTrackingMetadata;
45
45
  }>;
46
- //# sourceMappingURL=send-service.d.ts.map
@@ -32,4 +32,3 @@ export declare function formatSessionAliasUnboundReply(params: {
32
32
  sourceId: string;
33
33
  existed: boolean;
34
34
  }): string;
35
- //# sourceMappingURL=session-command-service.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
@@ -18,4 +18,3 @@ export declare function clearSessionPeerOverride(params: {
18
18
  sourceKind: SessionPeerSourceKind;
19
19
  sourceId: string;
20
20
  }): boolean;
21
- //# sourceMappingURL=session-peer-store.d.ts.map
@@ -11,4 +11,3 @@ export interface ResolvedDingTalkSessionPeer {
11
11
  peerId: string;
12
12
  }
13
13
  export declare function resolveDingTalkSessionPeer(params: ResolveDingTalkSessionPeerParams): ResolvedDingTalkSessionPeer;
14
- //# sourceMappingURL=session-routing.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
@@ -3,4 +3,3 @@
3
3
  * Sign payload format: `${timestamp}\n${secret}`
4
4
  */
5
5
  export declare function generateDingTalkSignature(timestamp: string | number, secret: string): string;
6
- //# sourceMappingURL=signature.d.ts.map
@@ -60,4 +60,3 @@ export declare function getAgentDisplayName(params: {
60
60
  }>;
61
61
  }): string;
62
62
  export {};
63
- //# sourceMappingURL=agent-name-matcher.d.ts.map
@@ -124,4 +124,3 @@ export declare function dispatchSubAgents(params: {
124
124
  */
125
125
  inboundQueueEligible?: boolean;
126
126
  }): Promise<void>;
127
- //# sourceMappingURL=agent-routing.d.ts.map
@@ -1,3 +1,2 @@
1
1
  export declare function noteGroupMember(storePath: string, groupId: string, userId: string, name: string): void;
2
2
  export declare function formatGroupMembers(storePath: string, groupId: string): string | undefined;
3
- //# sourceMappingURL=group-members-store.d.ts.map
@@ -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
@@ -42,4 +42,3 @@ export declare function listKnownUserTargets(params: {
42
42
  query?: string;
43
43
  limit?: number;
44
44
  }): UserTargetEntry[];
45
- //# sourceMappingURL=target-directory-store.d.ts.map
@@ -1,3 +1,2 @@
1
1
  export declare function normalizeDingTalkTarget(raw: string): string | undefined;
2
2
  export declare function looksLikeDingTalkTargetId(raw: string, normalized?: string): boolean;
3
- //# sourceMappingURL=target-input.d.ts.map