weacpx 0.4.5 → 0.4.8
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/README.md +5 -12
- package/dist/bridge/bridge-main.js +84 -6
- package/dist/channels/types.d.ts +4 -0
- package/dist/cli.js +323 -553
- package/dist/config/types.d.ts +1 -0
- package/dist/weixin/agent/interface.d.ts +2 -0
- package/dist/weixin/auth/accounts.d.ts +1 -1
- package/package.json +2 -2
package/dist/config/types.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export interface TransportConfig {
|
|
|
18
18
|
sessionInitTimeoutMs?: number;
|
|
19
19
|
permissionMode: PermissionMode;
|
|
20
20
|
nonInteractivePermissions: NonInteractivePermissions;
|
|
21
|
+
permissionPolicy?: string;
|
|
21
22
|
}
|
|
22
23
|
export type LoggingLevel = "error" | "info" | "debug";
|
|
23
24
|
export interface PerfLogConfig {
|
|
@@ -46,6 +46,8 @@ export interface ChatRequest {
|
|
|
46
46
|
abortSignal?: AbortSignal;
|
|
47
47
|
/** Structured tool-use side-channel; see PromptOptions.onToolEvent. */
|
|
48
48
|
onToolEvent?: (event: ToolUseEvent) => void | Promise<void>;
|
|
49
|
+
/** Structured thinking side-channel; see PromptOptions.onThought. */
|
|
50
|
+
onThought?: (chunk: string) => void | Promise<void>;
|
|
49
51
|
/**
|
|
50
52
|
* Optional per-turn performance tracing span. When `logging.perf.enabled` is
|
|
51
53
|
* true, the channel handler attaches a `PerfSpan` so downstream layers can
|
|
@@ -57,7 +57,7 @@ export type ResolvedWeixinAccount = {
|
|
|
57
57
|
/** true when a token has been obtained via QR login. */
|
|
58
58
|
configured: boolean;
|
|
59
59
|
};
|
|
60
|
-
/** List accountIds from the index file (written at QR login). */
|
|
60
|
+
/** List accountIds from the index file (written at QR login), with a credential-file fallback for legacy/broken indexes. */
|
|
61
61
|
export declare function listWeixinAccountIds(): string[];
|
|
62
62
|
/** Resolve a weixin account by ID, reading stored credentials. */
|
|
63
63
|
export declare function resolveWeixinAccount(accountId?: string | null): ResolvedWeixinAccount;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weacpx",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.8",
|
|
4
4
|
"description": "使用微信 ClawBot 随时随地通过 `acpx` 控制 Claude Code、Codex 等 Agents。",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"acpx",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
67
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
68
|
-
"acpx": "^0.
|
|
68
|
+
"acpx": "^0.8.0",
|
|
69
69
|
"node-pty": "^1.1.0",
|
|
70
70
|
"proper-lockfile": "^4.1.2",
|
|
71
71
|
"protobufjs": "^7.5.6",
|