Add smart ACK provider for WeChat MP replies
Replace fixed ackText with a rule-based AckProvider that picks response templates by message type and intent (translate, summary, rewrite, poster, ppt, mindmap, code, search, schedule). Pure sync, zero I/O, auto-falls back to config.ackText on any error. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+10
-3
@@ -4,7 +4,8 @@
|
||||
"version": "0.1.0",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "node scripts/dev.mjs",
|
||||
"dev": "node scripts/dev-core.mjs",
|
||||
"dev:all": "node scripts/dev.mjs",
|
||||
"dev:plaza": "node scripts/dev-plaza.mjs",
|
||||
"start:plaza": "node scripts/start-plaza-prod.mjs",
|
||||
"dev:plaza-proxy": "node scripts/plaza-local-proxy.mjs",
|
||||
@@ -22,12 +23,18 @@
|
||||
"dev:adm": "node admin-server.mjs",
|
||||
"dev:plaza-express": "node plaza-server.mjs",
|
||||
"dev:ops": "cd ops && npm run dev",
|
||||
"launch:executor": "node scripts/launch-executor.mjs",
|
||||
"launch:aider": "node scripts/launch-executor.mjs aider",
|
||||
"launch:openhands": "node scripts/launch-executor.mjs openhands",
|
||||
"ops:grant": "node scripts/grant-ops-role.mjs",
|
||||
"seed:plaza": "node scripts/seed-plaza-demo.mjs",
|
||||
"seed:plaza-covers": "node scripts/seed-plaza-covers.mjs",
|
||||
"backfill:plaza-cover-urls": "node scripts/backfill-plaza-cover-urls.mjs",
|
||||
"backfill:plaza-public-urls": "node scripts/backfill-plaza-public-urls.mjs",
|
||||
"enrich:plaza": "node scripts/enrich-plaza-posts.mjs",
|
||||
"build": "vite build",
|
||||
"test": "node --test auth.test.mjs asr-proxy.test.mjs billing.test.mjs billing-recharge.test.mjs wechat-pay.test.mjs wechat-oauth.test.mjs wechat-mp.test.mjs schedule-intent.test.mjs schedule-reminder-worker.test.mjs capabilities.test.mjs policies.test.mjs chat-skills.test.mjs user-publish.test.mjs user-memory-profile.test.mjs skills-registry.test.mjs mindspace.test.mjs mindspace-scan.test.mjs mindspace-assets.test.mjs mindspace-pages.test.mjs mindspace-publications.test.mjs mindspace-chat-save.test.mjs mindspace-chat-context.test.mjs mindspace-content-scan.test.mjs mindspace-html-localize.test.mjs mindspace-visual-editor.test.mjs mindspace-cleanup.test.mjs mindspace-thumbnails.test.mjs mindspace-workspace-thumbnails.test.mjs mindspace-workspace-sync.test.mjs mindspace-asset-preview.test.mjs mindspace-agent-jobs.test.mjs mindspace-agent-runner.test.mjs message-stream.test.mjs plaza-posts.test.mjs plaza-interactions.test.mjs plaza-algorithm.test.mjs plaza-seo.test.mjs plaza-ops.test.mjs user-auth.test.mjs llm-providers.test.mjs admin-guard.test.mjs",
|
||||
"build:portal-runtime": "node scripts/build-portal-runtime.mjs",
|
||||
"test": "node --test auth.test.mjs asr-proxy.test.mjs billing.test.mjs billing-recharge.test.mjs wechat-pay.test.mjs wechat-oauth.test.mjs wechat-mp.test.mjs schedule-intent.test.mjs schedule-reminder-worker.test.mjs capabilities.test.mjs policies.test.mjs chat-skills.test.mjs user-publish.test.mjs user-memory-profile.test.mjs skills-registry.test.mjs mindspace.test.mjs mindspace-scan.test.mjs mindspace-assets.test.mjs mindspace-pages.test.mjs mindspace-publications.test.mjs mindspace-chat-save.test.mjs mindspace-chat-context.test.mjs mindspace-content-scan.test.mjs mindspace-html-localize.test.mjs mindspace-visual-editor.test.mjs mindspace-cleanup.test.mjs mindspace-thumbnails.test.mjs mindspace-workspace-thumbnails.test.mjs mindspace-workspace-sync.test.mjs mindspace-asset-preview.test.mjs mindspace-agent-jobs.test.mjs mindspace-agent-runner.test.mjs mindspace-sandbox-mcp.test.mjs message-stream.test.mjs plaza-posts.test.mjs plaza-interactions.test.mjs plaza-algorithm.test.mjs plaza-seo.test.mjs plaza-ops.test.mjs user-auth.test.mjs llm-providers.test.mjs admin-guard.test.mjs",
|
||||
"test:mindspace-e2e": "node scripts/mindspace-e2e.mjs",
|
||||
"test:mindspace-pages-e2e": "node scripts/mindspace-pages-e2e.mjs",
|
||||
"test:mindspace-publications-e2e": "node scripts/mindspace-publications-e2e.mjs",
|
||||
@@ -38,7 +45,7 @@
|
||||
"test:local": "vite build && node server.mjs",
|
||||
"preview": "node server.mjs",
|
||||
"start": "pnpm run build && node server.mjs",
|
||||
"deploy:prod": "bash ../../deploy/deploy-h5-prod.sh",
|
||||
"deploy:prod": "bash scripts/release-prod.sh",
|
||||
"deploy:105": "bash scripts/sync-to-105.sh",
|
||||
"deploy:plaza-105": "bash scripts/deploy-plaza-105.sh"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user