@xmoxmo/bncr 0.2.6 → 0.2.7

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.
@@ -0,0 +1,20 @@
1
+ import { readBooleanParam as sdkReadBooleanParam } from 'openclaw/plugin-sdk/boolean-param';
2
+ import {
3
+ applyAccountNameToChannelSection as sdkApplyAccountNameToChannelSection,
4
+ jsonResult as sdkJsonResult,
5
+ setAccountEnabledInConfigSection as sdkSetAccountEnabledInConfigSection,
6
+ } from 'openclaw/plugin-sdk/core';
7
+ import { readJsonFileWithFallback as sdkReadJsonFileWithFallback, writeJsonFileAtomically as sdkWriteJsonFileAtomically } from 'openclaw/plugin-sdk/json-store';
8
+ import { readStringParam as sdkReadStringParam } from 'openclaw/plugin-sdk/param-readers';
9
+ import { createDefaultChannelRuntimeState as sdkCreateDefaultChannelRuntimeState } from 'openclaw/plugin-sdk/status-helpers';
10
+ import { extractToolSend as sdkExtractToolSend } from 'openclaw/plugin-sdk/tool-send';
11
+
12
+ export const readOpenClawBooleanParam = sdkReadBooleanParam;
13
+ export const readOpenClawStringParam = sdkReadStringParam;
14
+ export const readOpenClawJsonFileWithFallback = sdkReadJsonFileWithFallback;
15
+ export const writeOpenClawJsonFileAtomically = sdkWriteJsonFileAtomically;
16
+ export const createOpenClawDefaultChannelRuntimeState = sdkCreateDefaultChannelRuntimeState;
17
+ export const extractOpenClawToolSend = sdkExtractToolSend;
18
+ export const openClawJsonResult = sdkJsonResult;
19
+ export const applyOpenClawAccountNameToChannelSection = sdkApplyAccountNameToChannelSection;
20
+ export const setOpenClawAccountEnabledInConfigSection = sdkSetAccountEnabledInConfigSection;
@@ -0,0 +1,15 @@
1
+ import { buildChannelOutboundSessionRoute } from 'openclaw/plugin-sdk/core';
2
+
3
+ export function buildOpenClawChannelOutboundSessionRoute(params: {
4
+ cfg: any;
5
+ agentId: string;
6
+ channel: string;
7
+ accountId?: string;
8
+ peer: unknown;
9
+ chatType: 'direct' | 'group';
10
+ from: string;
11
+ to: string;
12
+ threadId?: string;
13
+ }): Record<string, unknown> {
14
+ return buildChannelOutboundSessionRoute(params as any) as Record<string, unknown>;
15
+ }