@dench.com/cli 3.2.2-staging.305 → 3.2.4-staging.308

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
@@ -203,7 +203,13 @@ dench signin --host https://staging.dench.com
203
203
 
204
204
  ## Saved prospect lists
205
205
 
206
- People found with `dench leads find` stay in saved lists, not the CRM.
206
+ People found with `dench leads find` stay in draft lists, not the CRM.
207
+ Generated results, `--save-as` searches, and `dench lists save` remain unpublished
208
+ until you click **Save list** in chat or Find. This keeps the same artifact id,
209
+ rows and reviews, then adds the list to Find Leads and the saved-list directory.
210
+ Enriching contacts or explicitly importing people does not publish the draft.
211
+ Existing lists without draft metadata remain saved.
212
+
207
213
  For new prospect discovery, the lead-finding skill establishes a general
208
214
  `/workspace/ICP.md` on first use and reads it before later prospect searches.
209
215
  Campaign filters, dates, and counts stay with the search; the current request
@@ -222,6 +228,7 @@ Contact results persist in the list; other columns remain under View settings.
222
228
  ```bash
223
229
  dench leads find --titles "VP Sales" --save-as "Q3 targets" --json
224
230
  dench lists save --title "10 RevOps leaders" --people-file /tmp/shortlist.json --json
231
+ # Click Save list in chat or Find before looking it up in the saved directory.
225
232
  dench lists --search "Q3 targets" --limit 25 --json
226
233
  dench lists rows <artifactId> --enrichment enriched --limit 100 --json
227
234
  dench lists rows <artifactId> --enrichment enriched --limit 100 --cursor <continueCursor> --json
@@ -236,9 +243,10 @@ details instead of becoming competing result sets.
236
243
 
237
244
  Before presenting a prospect shortlist, the skill saves an ICP relevance score
238
245
  (0–100) and short reason for each profile against that search's resolved criteria,
239
- using the general brief as relevant guidance. These appear as
240
- **ICP fit** and **Why this lead** in Find and in CSV exports. Scores are not
241
- conversion probabilities or CRM statuses. To save assessments for canonical
246
+ using the general brief as relevant guidance. Saved assessments remain available
247
+ in list reads and CSV exports; the **ICP fit** and **Why this lead** columns are
248
+ temporarily hidden in Find. Scores are not conversion probabilities or CRM
249
+ statuses. To save assessments for canonical
242
250
  rows returned by `lists rows`, create a JSON array of
243
251
  `{row, suggestion: {fit, score, reason}}` (1–100 items per file):
244
252
 
@@ -249,9 +257,10 @@ dench lists assess <artifactId> --assessments-file /tmp/icp-assessments.json --j
249
257
  `fit` is `likely_fit`, `unlikely_fit`, or `unknown`; `score` is a whole number
250
258
  from 0 to 100. The CLI validates the file before writes and reports partial
251
259
  failures; retrying updates existing assessments. Re-read rows to verify every
252
- saved score and reason. Older unscored profiles remain **Not scored** until assessed.
260
+ saved score and reason. Older profiles have no saved score until assessed.
253
261
 
254
262
  Directory and row reads return `page`, `continueCursor`, and `isDone`.
263
+ Directory/search reads show only saved lists; row reads accept a draft's id too.
255
264
  Follow cursors even through empty filtered pages. Lists survive new chats;
256
265
  read fresh rows and contacts instead of an old transcript or CSV. Each row
257
266
  has its original zero-based `index`. Enriched means a contact was returned,
package/leads.ts CHANGED
@@ -914,8 +914,11 @@ export async function runLeadsCommand(opts: {
914
914
  subFunctions: flags.subFunctions,
915
915
  industries: flags.industries,
916
916
  companyDomain: flags.companyDomain,
917
- companyDomains: mergeUnique(flags.companyDomains, companyList?.domains),
918
- companyNames: mergeUnique(flags.companyNames, companyList?.names),
917
+ companyDomains: flags.companyDomains,
918
+ companyNames: flags.companyNames,
919
+ companyScope: companyList
920
+ ? { domains: companyList.domains, names: companyList.names }
921
+ : undefined,
919
922
  pastCompanyNames: flags.pastCompanyNames,
920
923
  companyHeadquarters: flags.companyHeadquarters,
921
924
  companyTypes: flags.companyTypes,
@@ -94,6 +94,7 @@ export type SearchPeopleBody = {
94
94
  companyNames?: SearchFilterItem[];
95
95
  pastCompanyNames?: SearchFilterItem[];
96
96
  companyDomains?: SearchFilterItem[];
97
+ companyScope?: { domains?: string[]; names?: string[] };
97
98
  companyHeadquarters?: SearchFilterItem[];
98
99
  companyTypes?: SearchFilterItem[];
99
100
  universities?: SearchFilterItem[];
@@ -241,6 +242,7 @@ function mapRequiredFieldsToEnrichFields(rf?: string[]): EnrichField[] {
241
242
 
242
243
  export type ApolloPersonEnvelope = {
243
244
  person: {
245
+ search_match?: { derivedFields: string[]; basis: "current_title" };
244
246
  name?: string;
245
247
  first_name?: string;
246
248
  last_name?: string;
@@ -267,6 +269,7 @@ export type ApolloPersonEnvelope = {
267
269
  };
268
270
 
269
271
  type EnrichedPersonUpsertLike = {
272
+ searchMatch?: { derivedFields: string[]; basis: "current_title" };
270
273
  fullName?: string;
271
274
  firstName?: string;
272
275
  lastName?: string;
@@ -296,6 +299,7 @@ function shapePersonToApolloEnvelope(
296
299
  const companyWebsite = u.currentCompanyWebsite;
297
300
  return {
298
301
  person: {
302
+ ...(u.searchMatch ? { search_match: u.searchMatch } : {}),
299
303
  name: u.fullName,
300
304
  first_name: u.firstName,
301
305
  last_name: u.lastName,
@@ -365,6 +369,8 @@ type EnrichedCompanyUpsertLike = {
365
369
  totalFunding?: number;
366
370
  description?: string;
367
371
  hqAddress?: {
372
+ line1?: string;
373
+ line2?: string;
368
374
  city?: string;
369
375
  region?: string;
370
376
  country?: string;
@@ -378,7 +384,7 @@ function shapeCompanyToApolloEnvelope(
378
384
  const hq = c.hqAddress;
379
385
  const city = hq?.city;
380
386
  const country = hq?.country ?? hq?.countryCode;
381
- const hqLocationParts = [city, country].filter(
387
+ const hqLocationParts = [city ?? hq?.line1, hq?.region, country].filter(
382
388
  (v): v is string => typeof v === "string" && v.length > 0,
383
389
  );
384
390
  return {
@@ -399,7 +405,10 @@ function shapeCompanyToApolloEnvelope(
399
405
  hq_country: hq?.country,
400
406
  hq_country_code: hq?.countryCode,
401
407
  hq_location:
402
- hqLocationParts.length > 0 ? hqLocationParts.join(", ") : undefined,
408
+ hq?.line2?.trim() ||
409
+ (hqLocationParts.length > 0
410
+ ? [...new Set(hqLocationParts)].join(", ")
411
+ : undefined),
403
412
  },
404
413
  };
405
414
  }
@@ -1443,6 +1452,7 @@ export function buildPeopleSearchRequest(
1443
1452
  }
1444
1453
 
1445
1454
  const keywords = body.keywords ?? body.qKeywords;
1455
+ if (body.companyScope) payload.companyScope = body.companyScope;
1446
1456
  if (keywords) payload.keywords = keywords;
1447
1457
  if (body.limit !== undefined) payload.limit = body.limit;
1448
1458
  else if (body.perPage !== undefined) payload.limit = body.perPage;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dench.com/cli",
3
- "version": "3.2.2-staging.305",
3
+ "version": "3.2.4-staging.308",
4
4
  "description": "Dench agent workspace CLI.",
5
5
  "type": "module",
6
6
  "bin": {