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.
Files changed (124) hide show
  1. package/README.md +10 -564
  2. package/package.json +10 -72
  3. package/plugin-api.d.ts +2 -0
  4. package/plugin-api.js +5 -0
  5. package/LICENSE +0 -21
  6. package/config.example.json +0 -44
  7. package/dist/bridge/bridge-main.js +0 -2126
  8. package/dist/channels/channel-scope.d.ts +0 -17
  9. package/dist/channels/cli/provider.d.ts +0 -73
  10. package/dist/channels/cli/registry.d.ts +0 -7
  11. package/dist/channels/cli/weixin-provider.d.ts +0 -2
  12. package/dist/channels/create-channel.d.ts +0 -16
  13. package/dist/channels/media-store.d.ts +0 -29
  14. package/dist/channels/media-types.d.ts +0 -28
  15. package/dist/channels/outbound-media-safety.d.ts +0 -7
  16. package/dist/channels/plugin.d.ts +0 -9
  17. package/dist/channels/types.d.ts +0 -124
  18. package/dist/channels/weixin-channel.d.ts +0 -25
  19. package/dist/cli.js +0 -47662
  20. package/dist/commands/command-hints.d.ts +0 -11
  21. package/dist/commands/command-list.d.ts +0 -3
  22. package/dist/commands/config-clone.d.ts +0 -2
  23. package/dist/commands/handlers/agent-handler.d.ts +0 -6
  24. package/dist/commands/handlers/config-handler.d.ts +0 -5
  25. package/dist/commands/handlers/later-handler.d.ts +0 -21
  26. package/dist/commands/handlers/orchestration-handler.d.ts +0 -16
  27. package/dist/commands/handlers/permission-handler.d.ts +0 -9
  28. package/dist/commands/handlers/session-handler.d.ts +0 -39
  29. package/dist/commands/handlers/session-list-marker.d.ts +0 -1
  30. package/dist/commands/handlers/workspace-handler.d.ts +0 -8
  31. package/dist/commands/help/help-registry.d.ts +0 -4
  32. package/dist/commands/help/help-types.d.ts +0 -12
  33. package/dist/commands/parse-command.d.ts +0 -178
  34. package/dist/commands/router-types.d.ts +0 -144
  35. package/dist/commands/workspace-name.d.ts +0 -4
  36. package/dist/commands/workspace-path.d.ts +0 -4
  37. package/dist/config/agent-templates.d.ts +0 -4
  38. package/dist/config/config-store.d.ts +0 -13
  39. package/dist/config/load-config.d.ts +0 -10
  40. package/dist/config/resolve-agent-command.d.ts +0 -2
  41. package/dist/config/types.d.ts +0 -85
  42. package/dist/formatting/render-text.d.ts +0 -23
  43. package/dist/logging/app-logger.d.ts +0 -23
  44. package/dist/logging/rotating-file-writer.d.ts +0 -2
  45. package/dist/orchestration/async-mutex.d.ts +0 -4
  46. package/dist/orchestration/build-coordinator-prompt.d.ts +0 -66
  47. package/dist/orchestration/orchestration-service.d.ts +0 -471
  48. package/dist/orchestration/orchestration-types.d.ts +0 -181
  49. package/dist/orchestration/progress-line-parser.d.ts +0 -19
  50. package/dist/orchestration/render-delegate-group-result.d.ts +0 -6
  51. package/dist/orchestration/render-delegate-question-package.d.ts +0 -21
  52. package/dist/orchestration/render-delegate-result.d.ts +0 -2
  53. package/dist/orchestration/task-watch-timeouts.d.ts +0 -5
  54. package/dist/perf/perf-log-writer.d.ts +0 -25
  55. package/dist/perf/perf-tracer.d.ts +0 -54
  56. package/dist/plugin-api.d.ts +0 -18
  57. package/dist/plugin-api.js +0 -337
  58. package/dist/plugins/compatibility.d.ts +0 -16
  59. package/dist/plugins/known-plugins.d.ts +0 -9
  60. package/dist/plugins/types.d.ts +0 -18
  61. package/dist/runtime/conversation-executor.d.ts +0 -7
  62. package/dist/runtime/core-home.d.ts +0 -26
  63. package/dist/runtime/turn-lane.d.ts +0 -2
  64. package/dist/scheduled/parse-later-time.d.ts +0 -11
  65. package/dist/scheduled/scheduled-render.d.ts +0 -7
  66. package/dist/scheduled/scheduled-service.d.ts +0 -41
  67. package/dist/scheduled/scheduled-types.d.ts +0 -29
  68. package/dist/sessions/active-turn-registry.d.ts +0 -6
  69. package/dist/sessions/session-service.d.ts +0 -118
  70. package/dist/state/state-store.d.ts +0 -8
  71. package/dist/state/types.d.ts +0 -51
  72. package/dist/transport/tool-event-mode.d.ts +0 -14
  73. package/dist/transport/types.d.ts +0 -129
  74. package/dist/util/path.d.ts +0 -4
  75. package/dist/util/private-file.d.ts +0 -26
  76. package/dist/util/sanitize.d.ts +0 -10
  77. package/dist/util/text.d.ts +0 -3
  78. package/dist/version.d.ts +0 -3
  79. package/dist/weixin/agent/interface.d.ts +0 -79
  80. package/dist/weixin/api/api.d.ts +0 -76
  81. package/dist/weixin/api/config-cache.d.ts +0 -35
  82. package/dist/weixin/api/session-guard.d.ts +0 -17
  83. package/dist/weixin/api/types.d.ts +0 -203
  84. package/dist/weixin/auth/accounts.d.ts +0 -69
  85. package/dist/weixin/auth/login-qr.d.ts +0 -37
  86. package/dist/weixin/bot.d.ts +0 -67
  87. package/dist/weixin/cdn/aes-ecb.d.ts +0 -6
  88. package/dist/weixin/cdn/cdn-upload.d.ts +0 -17
  89. package/dist/weixin/cdn/cdn-url.d.ts +0 -11
  90. package/dist/weixin/cdn/pic-decrypt.d.ts +0 -9
  91. package/dist/weixin/cdn/upload.d.ts +0 -42
  92. package/dist/weixin/index.d.ts +0 -6
  93. package/dist/weixin/media/media-download.d.ts +0 -18
  94. package/dist/weixin/media/mime.d.ts +0 -6
  95. package/dist/weixin/media/silk-transcode.d.ts +0 -8
  96. package/dist/weixin/messaging/completion-notice.d.ts +0 -2
  97. package/dist/weixin/messaging/debug-mode.d.ts +0 -9
  98. package/dist/weixin/messaging/deliver-coordinator-message.d.ts +0 -22
  99. package/dist/weixin/messaging/deliver-orchestration-task-notice.d.ts +0 -18
  100. package/dist/weixin/messaging/deliver-orchestration-task-progress.d.ts +0 -16
  101. package/dist/weixin/messaging/error-notice.d.ts +0 -13
  102. package/dist/weixin/messaging/execute-chat-turn.d.ts +0 -12
  103. package/dist/weixin/messaging/final-heads-up.d.ts +0 -5
  104. package/dist/weixin/messaging/foreground-gate.d.ts +0 -3
  105. package/dist/weixin/messaging/handle-weixin-message-turn.d.ts +0 -36
  106. package/dist/weixin/messaging/inbound.d.ts +0 -87
  107. package/dist/weixin/messaging/markdown-filter.d.ts +0 -45
  108. package/dist/weixin/messaging/orchestration-notice-accounts.d.ts +0 -2
  109. package/dist/weixin/messaging/quota-errors.d.ts +0 -8
  110. package/dist/weixin/messaging/quota-manager.d.ts +0 -58
  111. package/dist/weixin/messaging/scheduled-turn.d.ts +0 -22
  112. package/dist/weixin/messaging/send-errors.d.ts +0 -39
  113. package/dist/weixin/messaging/send-media.d.ts +0 -23
  114. package/dist/weixin/messaging/send-orchestration-notice.d.ts +0 -10
  115. package/dist/weixin/messaging/send.d.ts +0 -73
  116. package/dist/weixin/messaging/slash-commands.d.ts +0 -40
  117. package/dist/weixin/monitor/consumer-lock.d.ts +0 -24
  118. package/dist/weixin/monitor/monitor.d.ts +0 -38
  119. package/dist/weixin/storage/ensure-dir.d.ts +0 -1
  120. package/dist/weixin/storage/state-dir.d.ts +0 -2
  121. package/dist/weixin/storage/sync-buf.d.ts +0 -20
  122. package/dist/weixin/util/logger.d.ts +0 -14
  123. package/dist/weixin/util/random.d.ts +0 -10
  124. 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;