weacpx 0.7.0 → 0.8.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/README.md +10 -564
- package/package.json +10 -72
- package/plugin-api.d.ts +2 -0
- package/plugin-api.js +5 -0
- package/LICENSE +0 -21
- package/config.example.json +0 -44
- package/dist/bridge/bridge-main.js +0 -2126
- package/dist/channels/channel-scope.d.ts +0 -17
- package/dist/channels/cli/provider.d.ts +0 -73
- package/dist/channels/cli/registry.d.ts +0 -7
- package/dist/channels/cli/weixin-provider.d.ts +0 -2
- package/dist/channels/create-channel.d.ts +0 -16
- package/dist/channels/media-store.d.ts +0 -29
- package/dist/channels/media-types.d.ts +0 -28
- package/dist/channels/outbound-media-safety.d.ts +0 -7
- package/dist/channels/plugin.d.ts +0 -9
- package/dist/channels/types.d.ts +0 -124
- package/dist/channels/weixin-channel.d.ts +0 -25
- package/dist/cli.js +0 -47662
- package/dist/commands/command-hints.d.ts +0 -11
- package/dist/commands/command-list.d.ts +0 -3
- package/dist/commands/config-clone.d.ts +0 -2
- package/dist/commands/handlers/agent-handler.d.ts +0 -6
- package/dist/commands/handlers/config-handler.d.ts +0 -5
- package/dist/commands/handlers/later-handler.d.ts +0 -21
- package/dist/commands/handlers/orchestration-handler.d.ts +0 -16
- package/dist/commands/handlers/permission-handler.d.ts +0 -9
- package/dist/commands/handlers/session-handler.d.ts +0 -39
- package/dist/commands/handlers/session-list-marker.d.ts +0 -1
- package/dist/commands/handlers/workspace-handler.d.ts +0 -8
- package/dist/commands/help/help-registry.d.ts +0 -4
- package/dist/commands/help/help-types.d.ts +0 -12
- package/dist/commands/parse-command.d.ts +0 -178
- package/dist/commands/router-types.d.ts +0 -144
- package/dist/commands/workspace-name.d.ts +0 -4
- package/dist/commands/workspace-path.d.ts +0 -4
- package/dist/config/agent-templates.d.ts +0 -4
- package/dist/config/config-store.d.ts +0 -13
- package/dist/config/load-config.d.ts +0 -10
- package/dist/config/resolve-agent-command.d.ts +0 -2
- package/dist/config/types.d.ts +0 -85
- package/dist/formatting/render-text.d.ts +0 -23
- package/dist/logging/app-logger.d.ts +0 -23
- package/dist/logging/rotating-file-writer.d.ts +0 -2
- package/dist/orchestration/async-mutex.d.ts +0 -4
- package/dist/orchestration/build-coordinator-prompt.d.ts +0 -66
- package/dist/orchestration/orchestration-service.d.ts +0 -471
- package/dist/orchestration/orchestration-types.d.ts +0 -181
- package/dist/orchestration/progress-line-parser.d.ts +0 -19
- package/dist/orchestration/render-delegate-group-result.d.ts +0 -6
- package/dist/orchestration/render-delegate-question-package.d.ts +0 -21
- package/dist/orchestration/render-delegate-result.d.ts +0 -2
- package/dist/orchestration/task-watch-timeouts.d.ts +0 -5
- package/dist/perf/perf-log-writer.d.ts +0 -25
- package/dist/perf/perf-tracer.d.ts +0 -54
- package/dist/plugin-api.d.ts +0 -18
- package/dist/plugin-api.js +0 -337
- package/dist/plugins/compatibility.d.ts +0 -16
- package/dist/plugins/known-plugins.d.ts +0 -9
- package/dist/plugins/types.d.ts +0 -18
- package/dist/runtime/conversation-executor.d.ts +0 -7
- package/dist/runtime/core-home.d.ts +0 -26
- package/dist/runtime/turn-lane.d.ts +0 -2
- package/dist/scheduled/parse-later-time.d.ts +0 -11
- package/dist/scheduled/scheduled-render.d.ts +0 -7
- package/dist/scheduled/scheduled-service.d.ts +0 -41
- package/dist/scheduled/scheduled-types.d.ts +0 -29
- package/dist/sessions/active-turn-registry.d.ts +0 -6
- package/dist/sessions/session-service.d.ts +0 -118
- package/dist/state/state-store.d.ts +0 -8
- package/dist/state/types.d.ts +0 -51
- package/dist/transport/tool-event-mode.d.ts +0 -14
- package/dist/transport/types.d.ts +0 -129
- package/dist/util/path.d.ts +0 -4
- package/dist/util/private-file.d.ts +0 -26
- package/dist/util/sanitize.d.ts +0 -10
- package/dist/util/text.d.ts +0 -3
- package/dist/version.d.ts +0 -3
- package/dist/weixin/agent/interface.d.ts +0 -79
- package/dist/weixin/api/api.d.ts +0 -76
- package/dist/weixin/api/config-cache.d.ts +0 -35
- package/dist/weixin/api/session-guard.d.ts +0 -17
- package/dist/weixin/api/types.d.ts +0 -203
- package/dist/weixin/auth/accounts.d.ts +0 -69
- package/dist/weixin/auth/login-qr.d.ts +0 -37
- package/dist/weixin/bot.d.ts +0 -67
- package/dist/weixin/cdn/aes-ecb.d.ts +0 -6
- package/dist/weixin/cdn/cdn-upload.d.ts +0 -17
- package/dist/weixin/cdn/cdn-url.d.ts +0 -11
- package/dist/weixin/cdn/pic-decrypt.d.ts +0 -9
- package/dist/weixin/cdn/upload.d.ts +0 -42
- package/dist/weixin/index.d.ts +0 -6
- package/dist/weixin/media/media-download.d.ts +0 -18
- package/dist/weixin/media/mime.d.ts +0 -6
- package/dist/weixin/media/silk-transcode.d.ts +0 -8
- package/dist/weixin/messaging/completion-notice.d.ts +0 -2
- package/dist/weixin/messaging/debug-mode.d.ts +0 -9
- package/dist/weixin/messaging/deliver-coordinator-message.d.ts +0 -22
- package/dist/weixin/messaging/deliver-orchestration-task-notice.d.ts +0 -18
- package/dist/weixin/messaging/deliver-orchestration-task-progress.d.ts +0 -16
- package/dist/weixin/messaging/error-notice.d.ts +0 -13
- package/dist/weixin/messaging/execute-chat-turn.d.ts +0 -12
- package/dist/weixin/messaging/final-heads-up.d.ts +0 -5
- package/dist/weixin/messaging/foreground-gate.d.ts +0 -3
- package/dist/weixin/messaging/handle-weixin-message-turn.d.ts +0 -36
- package/dist/weixin/messaging/inbound.d.ts +0 -87
- package/dist/weixin/messaging/markdown-filter.d.ts +0 -45
- package/dist/weixin/messaging/orchestration-notice-accounts.d.ts +0 -2
- package/dist/weixin/messaging/quota-errors.d.ts +0 -8
- package/dist/weixin/messaging/quota-manager.d.ts +0 -58
- package/dist/weixin/messaging/scheduled-turn.d.ts +0 -22
- package/dist/weixin/messaging/send-errors.d.ts +0 -39
- package/dist/weixin/messaging/send-media.d.ts +0 -23
- package/dist/weixin/messaging/send-orchestration-notice.d.ts +0 -10
- package/dist/weixin/messaging/send.d.ts +0 -73
- package/dist/weixin/messaging/slash-commands.d.ts +0 -40
- package/dist/weixin/monitor/consumer-lock.d.ts +0 -24
- package/dist/weixin/monitor/monitor.d.ts +0 -38
- package/dist/weixin/storage/ensure-dir.d.ts +0 -1
- package/dist/weixin/storage/state-dir.d.ts +0 -2
- package/dist/weixin/storage/sync-buf.d.ts +0 -20
- package/dist/weixin/util/logger.d.ts +0 -14
- package/dist/weixin/util/random.d.ts +0 -10
- package/dist/weixin/util/redact.d.ts +0 -21
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/** Dynamically change the minimum log level at runtime. */
|
|
2
|
-
export declare function setLogLevel(level: string): void;
|
|
3
|
-
export type Logger = {
|
|
4
|
-
info(message: string): void;
|
|
5
|
-
debug(message: string): void;
|
|
6
|
-
warn(message: string): void;
|
|
7
|
-
error(message: string): void;
|
|
8
|
-
/** Returns a child logger whose messages are prefixed with `[accountId]`. */
|
|
9
|
-
withAccount(accountId: string): Logger;
|
|
10
|
-
/** Returns the current main log file path. */
|
|
11
|
-
getLogFilePath(): string;
|
|
12
|
-
close(): void;
|
|
13
|
-
};
|
|
14
|
-
export declare const logger: Logger;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generate a prefixed unique ID using timestamp + crypto random bytes.
|
|
3
|
-
* Format: `{prefix}:{timestamp}-{8-char hex}`
|
|
4
|
-
*/
|
|
5
|
-
export declare function generateId(prefix: string): string;
|
|
6
|
-
/**
|
|
7
|
-
* Generate a temporary file name with random suffix.
|
|
8
|
-
* Format: `{prefix}-{timestamp}-{8-char hex}{ext}`
|
|
9
|
-
*/
|
|
10
|
-
export declare function tempFileName(prefix: string, ext: string): string;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Truncate a string, appending a length indicator when trimmed.
|
|
3
|
-
* Returns `""` for empty/undefined input.
|
|
4
|
-
*/
|
|
5
|
-
export declare function truncate(s: string | undefined, max: number): string;
|
|
6
|
-
/**
|
|
7
|
-
* Redact a token/secret: show only the first few chars + total length.
|
|
8
|
-
* Returns `"(none)"` when absent.
|
|
9
|
-
*/
|
|
10
|
-
export declare function redactToken(token: string | undefined, prefixLen?: number): string;
|
|
11
|
-
/**
|
|
12
|
-
* Redact a JSON body string for safe logging. JSON objects are structurally
|
|
13
|
-
* sanitized so secrets and user-authored message bodies are not written to
|
|
14
|
-
* disk. Non-JSON payloads fall back to length-bounded truncation.
|
|
15
|
-
*/
|
|
16
|
-
export declare function redactBody(body: string | undefined, maxLen?: number): string;
|
|
17
|
-
/**
|
|
18
|
-
* Strip query string (which often contains signatures/tokens) from a URL,
|
|
19
|
-
* keeping only origin + pathname.
|
|
20
|
-
*/
|
|
21
|
-
export declare function redactUrl(rawUrl: string): string;
|