wbxcallprov/docker/remote-agent/package.json
jmcqueen 8b32975eaf Harden agent bridge + command inputs
- Agent hello handshake: agent (v1.2.0) sends {type, version, capabilities}
  on connect; bot logs "Agent hello: v1.2.0 (capabilities: insecure, hello)"
  and exposes getAgentInfo(). Backward-compatible with older agents.
- proxyRequest tracks method + url per request; all error paths (agent
  errors, timeouts, disconnect rejects, send failures) now include
  "(for METHOD URL)" so the failing endpoint is unambiguous
- Add requireAgent(bot) preflight; buildStore/stageStore/migrateStore
  reject up front when the agent is disconnected instead of failing
  mid-flow after partial Webex mutations
- Add parseStoreNumber (^\d{1,5}$) and wire into store-number commands
  with proper usage messages; add loose email-shape check to /userInfo
- Fix pre-existing catch(_e) lint warning in remoteAgent.js (bare catch)

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 15:48:54 -04:00

19 lines
503 B
JSON

{
"name": "wbxprov-remote-agent",
"version": "1.2.0",
"private": true,
"description": "Standalone container for the wbxStoreProvision remote agent (WebSocket proxy for Store Info Web from an internal network).",
"main": "remoteAgent.js",
"type": "commonjs",
"scripts": {
"start": "node remoteAgent.js"
},
"engines": {
"node": ">=18"
},
"dependencies": {
"axios": "^1.16.1",
"dotenv": "^17.4.2",
"ws": "^8.20.1"
}
}