# .start-cipc-service.ps1 — launches the long-lived CIPC BizPortal wrapper # service in its own process. Run this in a separate terminal/tab from the # Next.js dev server. The wrapper owns the BizPortal Chrome session, runs # the .py on demand, and keeps login warm via a 30s watchdog. # # Usage: # pwsh -NoProfile .\.start-cipc-service.ps1 # # Or just: .\.start-cipc-service.ps1 # # Once started, the dev server's /api/cipc/search routes through it # automatically. If the wrapper is offline the route falls back to the # legacy `spawnSync` path. $ErrorActionPreference = 'Stop' Set-Location 'C:\Users\SJ\.minimax-agent\projects\Workflow' & 'C:\Program Files\nodejs\node.exe' '.\scripts\_cipc_service.js'