@dench.com/cli 3.5.2-staging.332 → 3.5.3-staging.333

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
@@ -217,6 +217,27 @@ dench signin --host https://staging.dench.com
217
217
 
218
218
  ## Saved prospect lists
219
219
 
220
+ Find supports separate past seniority and profile/work-description filters.
221
+ Past seniority can match a different job from the past employer: a former
222
+ Microsoft engineer who founded a separate startup can match both. Founder
223
+ includes Co-Founder; Founding Team and C-level are separate choices. Company
224
+ business focus is distinct from legal company type.
225
+
226
+ ```bash
227
+ dench leads find --titles "CTO,VP of Engineering,Director of Engineering" \
228
+ --headcount "51-200,201-500,501-1000" --company-keywords "SaaS,B2B,Cloud" \
229
+ --past-company-names "Apple,Microsoft,Google,Alphabet,Amazon,Nvidia,Meta,Facebook,Tesla" \
230
+ --profile-keywords "AI infrastructure,Cloud migration,DevOps" \
231
+ --locations "California,Washington,Oregon,British Columbia" \
232
+ --past-seniorities "Founder" --limit 25 --json
233
+ ```
234
+
235
+ These fields are also available in Find's editable filters, `search_people`,
236
+ and the API. `dench leads filters --filter past-seniorities` lists choices.
237
+ Descriptions use word matching; missing evidence does not match. Candidate
238
+ qualification is bounded, so keep paging when a continuation token is returned,
239
+ including after an empty page. Company focus needs another candidate filter.
240
+
220
241
  People found with `dench leads find` stay in draft lists, not the CRM.
221
242
  Generated results, `--save-as` searches, and `dench lists save` remain unpublished
222
243
  until you click **Save list** in chat or Find. This keeps the same artifact id,
package/app-sdk.d.ts CHANGED
@@ -1324,7 +1324,7 @@ export interface ApiRequests {
1324
1324
  fullName?: string;
1325
1325
  firstName?: string;
1326
1326
  lastName?: string;
1327
- /** Free-text query, e.g. "fintech, AI". Accepted values: see `dench leads filters` or https://dench.com/references/find-filter-options.json. */
1327
+ /** Current-title text only. For profile or work descriptions, use profileKeywords. Accepted values: see `dench leads filters` or https://dench.com/references/find-filter-options.json. */
1328
1328
  keywords?: string;
1329
1329
  companyDomain?: string;
1330
1330
  companyName?: string;
@@ -1345,6 +1345,24 @@ export interface ApiRequests {
1345
1345
  exclude?: boolean;
1346
1346
  exactMatch?: boolean;
1347
1347
  }>;
1348
+ /** Seniority in any past role, independent of pastCompanyNames/pastTitles. Current seniority vocabulary plus Founding Team. Founder includes Co-Founder; C-level and Founding Team do not imply founder. Accepted values: see `dench leads filters` or https://dench.com/references/find-filter-options.json. */
1349
+ pastSeniorities?: Array<string | {
1350
+ value: string;
1351
+ exclude?: boolean;
1352
+ exactMatch?: boolean;
1353
+ }>;
1354
+ /** Text in headline/about or any current/past work description. OR includes, global exclusions. Always loose text matching; missing evidence does not match. */
1355
+ profileKeywords?: Array<string | {
1356
+ value: string;
1357
+ exclude?: boolean;
1358
+ exactMatch?: boolean;
1359
+ }>;
1360
+ /** Current employer business focus/model (e.g. SaaS, B2B, Cloud), from description/tagline/business tags; distinct from legal companyTypes. Same employer as other current-job filters. Always loose text matching. May need another filter to retrieve candidates. */
1361
+ companyKeywords?: Array<string | {
1362
+ value: string;
1363
+ exclude?: boolean;
1364
+ exactMatch?: boolean;
1365
+ }>;
1348
1366
  /** Exact enum: Owner, Founder, C-level, Partner, VP, Head, Director, Manager, Senior. */
1349
1367
  seniorities?: Array<string | {
1350
1368
  value: string;
package/leads.ts CHANGED
@@ -115,6 +115,9 @@ type LeadsFindFlags = {
115
115
  personNames?: string[];
116
116
  locations?: string[];
117
117
  seniorities?: string[];
118
+ pastSeniorities?: string[];
119
+ profileKeywords?: string[];
120
+ companyKeywords?: string[];
118
121
  industries?: string[];
119
122
  functions?: string[];
120
123
  subFunctions?: string[];
@@ -171,6 +174,9 @@ function parseLeadsFindFlags(args: string[]): LeadsFindFlags {
171
174
  personNames: csvFlag(args, "--person-names"),
172
175
  locations: csvFlag(args, "--locations", "locations"),
173
176
  seniorities: csvFlag(args, "--seniorities", "seniorities"),
177
+ pastSeniorities: csvFlag(args, "--past-seniorities", "pastSeniorities"),
178
+ profileKeywords: csvFlag(args, "--profile-keywords", "profileKeywords"),
179
+ companyKeywords: csvFlag(args, "--company-keywords", "companyKeywords"),
174
180
  industries: csvFlag(args, "--industries", "industries"),
175
181
  functions: csvFlag(args, "--functions", "functions"),
176
182
  subFunctions: csvFlag(args, "--sub-functions", "subFunctions"),
@@ -473,9 +479,11 @@ Usage:
473
479
 
474
480
  Filter flags (all comma-separated lists unless noted):
475
481
  People: --titles --past-titles --person-names --seniorities --functions
482
+ --past-seniorities --profile-keywords
476
483
  --sub-functions --languages --universities --skills --locations
477
484
  Company: --company-names --past-company-names --company-domain (single)
478
485
  --company-domains --company-hq --company-types --industries
486
+ --company-keywords (business focus: SaaS, B2B, Cloud)
479
487
  --headcount (buckets like 11-50,51-200)
480
488
  List: --company-list <artifactId|view name> — filter by a saved
481
489
  company list (a \`dench companies find\` artifact or a Company
@@ -483,7 +491,7 @@ Filter flags (all comma-separated lists unless noted):
483
491
  run; lists up to ~1000 companies are searched in one go.
484
492
  Ranges: --years-in-role --years-at-company --days-since-job-change
485
493
  --founded-years (min:max, e.g. 2:10, 2: or :10)
486
- Query: --keywords "fintech, AI"
494
+ Query: --keywords "Engineer" (current-title text only)
487
495
  Match: --exact match free-text filters as WHOLE strings
488
496
 
489
497
  Free-text filters (titles, locations, company names, universities, skills)
@@ -492,6 +500,12 @@ and "Founder & CEO". Pass --exact for whole-string matching when you want the
492
500
  narrow list. Identifiers (domains, LinkedIn URLs) and enum filters are always
493
501
  matched exactly either way.
494
502
 
503
+ --past-seniorities matches any past role, independently of --past-company-names.
504
+ --profile-keywords searches headline/about and current/past work descriptions.
505
+ --company-keywords searches the current employer's description/business focus,
506
+ not legal company type. Description terms always use loose word matching.
507
+ These filters qualify returned profiles; missing evidence does not match.
508
+
495
509
  A value that itself contains a comma is kept whole when it matches a known
496
510
  vocabulary entry, so --industries "Technology, Information and Internet" is
497
511
  one industry, not two. Quote it, or repeat the flag, to be explicit.
@@ -513,6 +527,9 @@ dench leads find --company-list <artifactId> --titles "VP Sales".
513
527
  /** kebab-case flag spellings accepted by `--filter` alongside catalog keys. */
514
528
  const FILTER_KEY_ALIASES: Record<string, string> = {
515
529
  "past-titles": "pastTitles",
530
+ "past-seniorities": "pastSeniorities",
531
+ "profile-keywords": "profileKeywords",
532
+ "company-keywords": "companyKeywords",
516
533
  "company-hq": "companyHeadquarters",
517
534
  "company-types": "companyTypes",
518
535
  "sub-functions": "subFunctions",
@@ -1016,6 +1033,9 @@ export async function runLeadsCommand(opts: {
1016
1033
  personNames: flags.personNames,
1017
1034
  locations: flags.locations,
1018
1035
  seniorities: flags.seniorities,
1036
+ pastSeniorities: flags.pastSeniorities,
1037
+ profileKeywords: flags.profileKeywords,
1038
+ companyKeywords: flags.companyKeywords,
1019
1039
  jobFunctions: flags.functions,
1020
1040
  subFunctions: flags.subFunctions,
1021
1041
  industries: flags.industries,
@@ -1772,7 +1772,9 @@ const peopleSearch = z.object({
1772
1772
  keywords: z
1773
1773
  .string()
1774
1774
  .optional()
1775
- .describe(`Free-text query, e.g. "fintech, AI". ${FILTER_OPTIONS_NOTE}`),
1775
+ .describe(
1776
+ `Current-title text only. For profile or work descriptions, use profileKeywords. ${FILTER_OPTIONS_NOTE}`,
1777
+ ),
1776
1778
  companyDomain: z.string().optional(),
1777
1779
  companyName: z.string().optional(),
1778
1780
  titles: z
@@ -1786,6 +1788,27 @@ const peopleSearch = z.object({
1786
1788
  .optional()
1787
1789
  .describe("Past job titles (free text)."),
1788
1790
  personNames: z.array(searchFilterItem).max(20).optional(),
1791
+ pastSeniorities: z
1792
+ .array(searchFilterItem)
1793
+ .max(20)
1794
+ .optional()
1795
+ .describe(
1796
+ `Seniority in any past role, independent of pastCompanyNames/pastTitles. Current seniority vocabulary plus Founding Team. Founder includes Co-Founder; C-level and Founding Team do not imply founder. ${FILTER_OPTIONS_NOTE}`,
1797
+ ),
1798
+ profileKeywords: z
1799
+ .array(searchFilterItem)
1800
+ .max(50)
1801
+ .optional()
1802
+ .describe(
1803
+ "Text in headline/about or any current/past work description. OR includes, global exclusions. Always loose text matching; missing evidence does not match.",
1804
+ ),
1805
+ companyKeywords: z
1806
+ .array(searchFilterItem)
1807
+ .max(50)
1808
+ .optional()
1809
+ .describe(
1810
+ "Current employer business focus/model (e.g. SaaS, B2B, Cloud), from description/tagline/business tags; distinct from legal companyTypes. Same employer as other current-job filters. Always loose text matching. May need another filter to retrieve candidates.",
1811
+ ),
1789
1812
  seniorities: z
1790
1813
  .array(searchFilterItem)
1791
1814
  .max(20)
@@ -86,6 +86,9 @@ export type SearchPeopleBody = {
86
86
  pastTitles?: SearchFilterItem[];
87
87
  personNames?: SearchFilterItem[];
88
88
  seniorities?: SearchFilterItem[];
89
+ pastSeniorities?: SearchFilterItem[];
90
+ profileKeywords?: SearchFilterItem[];
91
+ companyKeywords?: SearchFilterItem[];
89
92
  jobFunctions?: SearchFilterItem[];
90
93
  subFunctions?: SearchFilterItem[];
91
94
  industries?: SearchFilterItem[];
@@ -243,7 +246,10 @@ function mapRequiredFieldsToEnrichFields(rf?: string[]): EnrichField[] {
243
246
 
244
247
  export type ApolloPersonEnvelope = {
245
248
  person: {
246
- search_match?: { derivedFields: string[]; basis: "current_title" };
249
+ search_match?: {
250
+ derivedFields: string[];
251
+ basis: "current_title" | "employment_title";
252
+ };
247
253
  name?: string;
248
254
  first_name?: string;
249
255
  last_name?: string;
@@ -270,7 +276,10 @@ export type ApolloPersonEnvelope = {
270
276
  };
271
277
 
272
278
  type EnrichedPersonUpsertLike = {
273
- searchMatch?: { derivedFields: string[]; basis: "current_title" };
279
+ searchMatch?: {
280
+ derivedFields: string[];
281
+ basis: "current_title" | "employment_title";
282
+ };
274
283
  fullName?: string;
275
284
  firstName?: string;
276
285
  lastName?: string;
@@ -1425,6 +1434,9 @@ export function buildPeopleSearchRequest(
1425
1434
 
1426
1435
  // Rich list filters with no legacy alias — pass straight through.
1427
1436
  const listPassthrough = [
1437
+ "pastSeniorities",
1438
+ "profileKeywords",
1439
+ "companyKeywords",
1428
1440
  "pastTitles",
1429
1441
  "personNames",
1430
1442
  "subFunctions",
@@ -132,6 +132,31 @@ export const FIND_FILTER_OPTION_CATALOG: Record<string, FindFilterOptionCatalogE
132
132
  { group: "Seniority", values: ["Owner","Founder","C-level","Partner","VP","Head","Director","Manager","Senior"] },
133
133
  ],
134
134
  },
135
+ "pastSeniorities": {
136
+ label: "Past seniority",
137
+ kind: "enum",
138
+ groups: [
139
+ { group: "Past seniority", values: ["Owner","Founder","C-level","Partner","VP","Head","Director","Manager","Senior","Founding Team"] },
140
+ ],
141
+ },
142
+ "profileKeywords": {
143
+ label: "Profile / work description",
144
+ kind: "suggestion",
145
+ groups: [
146
+ { group: "Technology themes", values: ["AI","artificial intelligence","machine learning","generative AI","LLM","computer vision","robotics","automation","blockchain","crypto","web3","AR/VR","IoT","edge computing","quantum computing","cybersecurity","cloud computing","big data","API","open source","developer tools","low-code","no-code","SaaS","mobile apps"] },
147
+ { group: "Industry niches", values: ["fintech","payments","insurtech","healthtech","digital health","telemedicine","biotech","medtech","edtech","proptech","legaltech","HRtech","martech","adtech","regtech","agtech","foodtech","climate tech","clean energy","e-commerce","marketplace","logistics tech","supply chain tech","gaming","esports","creator economy","streaming","travel tech","mobility","autonomous vehicles","space tech","defense tech","govtech"] },
148
+ { group: "Business models", values: ["B2B","B2C","B2B2C","D2C","enterprise","SMB","mid-market","subscription","freemium","usage-based pricing","product-led growth","sales-led growth","self-serve","managed services","white label","platform","two-sided marketplace","vertical SaaS","horizontal SaaS","API-first","open core","on-premise"] },
149
+ { group: "Growth & funding signals", values: ["seed stage","Series A","Series B","Series C","growth stage","pre-IPO","recently funded","venture-backed","bootstrapped","profitable","hypergrowth","hiring","expanding internationally","new product launch","digital transformation","recently acquired","unicorn","Y Combinator"] },
150
+ { group: "Go-to-market", values: ["outbound","inbound","cold email","account-based marketing","demand generation","growth hacking","content strategy","community-led growth","partner-led growth","channel sales","field sales","inside sales","customer retention","net revenue retention","lifecycle marketing"] },
151
+ ],
152
+ },
153
+ "companyKeywords": {
154
+ label: "Company business focus",
155
+ kind: "suggestion",
156
+ groups: [
157
+ { group: "Business focus", values: ["SaaS","B2B","B2C","Cloud","Artificial Intelligence","Developer Tools"] },
158
+ ],
159
+ },
135
160
  "functions": {
136
161
  label: "Function",
137
162
  kind: "enum",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dench.com/cli",
3
- "version": "3.5.2-staging.332",
3
+ "version": "3.5.3-staging.333",
4
4
  "description": "Dench agent workspace CLI.",
5
5
  "type": "module",
6
6
  "bin": {