salesprompter-cli 0.1.22 → 0.1.24

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 CHANGED
@@ -30,14 +30,17 @@ salesprompter auth:whoami
30
30
  ## Common commands
31
31
 
32
32
  ```bash
33
- # Product/category to leads workflow
34
- salesprompter salesnav:from-product-category --input "https://www.linkedin.com/company/example/"
33
+ # Start the guided workflow
34
+ salesprompter
35
+
36
+ # Show machine-readable output
37
+ salesprompter --json auth:whoami
35
38
 
36
- # Run a Sales Navigator crawl from a query URL
37
- salesprompter salesnav:crawl --query-url "https://www.linkedin.com/sales/search/people?query=..."
39
+ # Resolve profile URLs for a pasted contact list
40
+ salesprompter contacts:find-linkedin-urls --in ./contacts.tsv --out ./contacts.enriched.json
38
41
 
39
- # Check crawl status
40
- salesprompter salesnav:crawl:status --job-id "<job-id>"
42
+ # Explore the full command surface
43
+ salesprompter --help
41
44
  ```
42
45
 
43
46
  ## Output modes
@@ -47,8 +50,8 @@ salesprompter salesnav:crawl:status --job-id "<job-id>"
47
50
 
48
51
  ## Notes
49
52
 
50
- - Use your own authorized LinkedIn / Sales Navigator access.
51
- - Respect LinkedIn and provider terms.
53
+ - Use your own authorized data access and workspace credentials.
54
+ - Respect provider terms and customer data boundaries.
52
55
  - The CLI is designed for interactive users and agent-assisted workflows.
53
56
 
54
57
  ## Links
package/dist/auth.js CHANGED
@@ -198,10 +198,10 @@ export async function clearAuthSession() {
198
198
  export async function requireAuthSession() {
199
199
  const session = await readAuthSession();
200
200
  if (session === null) {
201
- throw new Error("not logged in. Run `salesprompter auth:login`.");
201
+ throw new Error("not logged in. Run `salesprompter auth:login` or set SALESPROMPTER_TOKEN for non-interactive runs.");
202
202
  }
203
203
  if (hasExpired(session.expiresAt)) {
204
- throw new Error("session expired. Run `salesprompter auth:login`.");
204
+ throw new Error("session expired. Run `salesprompter auth:login` or refresh SALESPROMPTER_TOKEN for non-interactive runs.");
205
205
  }
206
206
  return session;
207
207
  }