weacpx 0.4.0-beta.2 → 0.4.0
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/bridge/bridge-main.js +144 -22
- package/dist/channels/types.d.ts +14 -0
- package/dist/cli.js +395 -145
- package/dist/plugin-api.d.ts +1 -1
- package/dist/weixin/agent/interface.d.ts +3 -0
- package/dist/weixin/storage/ensure-dir.d.ts +1 -0
- package/package.json +1 -1
package/dist/plugin-api.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type { ChannelPluginDefinition } from "./channels/plugin.js";
|
|
2
2
|
export type { ChannelFactory, CreateChannelDeps } from "./channels/create-channel.js";
|
|
3
|
-
export type { ChannelStartInput, ConsumerLock, ConsumerLockMetadata, ConsumerLockOptions, CoordinatorMessageInput, MessageChannelRuntime, OrchestrationDeliveryCallbacks, OutboundQuota, } from "./channels/types.js";
|
|
3
|
+
export type { ChannelStartInput, ConsumerLock, ConsumerLockMetadata, ConsumerLockOptions, CoordinatorMessageInput, MessageChannelRuntime, OrchestrationDeliveryCallbacks, OutboundQuota, ToolUseEvent, ToolUseKind, ToolUseStatus, } from "./channels/types.js";
|
|
4
4
|
export type { ChannelCliInput, ChannelCliIo, ChannelCliParseResult, ChannelCliProvider, ChannelCliValidationIssue, } from "./channels/cli/provider.js";
|
|
5
5
|
export type { ChannelRuntimeConfig } from "./config/types.js";
|
|
6
6
|
export type { AppLogger } from "./logging/app-logger.js";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ChannelMediaAttachment, OutboundChannelMedia } from "../../channels/media-types.js";
|
|
2
|
+
import type { ToolUseEvent } from "../../channels/types.js";
|
|
2
3
|
/**
|
|
3
4
|
* Agent interface — any AI backend that can handle a chat message.
|
|
4
5
|
*
|
|
@@ -42,6 +43,8 @@ export interface ChatRequest {
|
|
|
42
43
|
* output produced after abort.
|
|
43
44
|
*/
|
|
44
45
|
abortSignal?: AbortSignal;
|
|
46
|
+
/** Structured tool-use side-channel; see PromptOptions.onToolEvent. */
|
|
47
|
+
onToolEvent?: (event: ToolUseEvent) => void | Promise<void>;
|
|
45
48
|
}
|
|
46
49
|
export interface ChatRequestMetadata {
|
|
47
50
|
channel?: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ensureDirSync(dir: string): void;
|