autotouch-cli 0.2.119__tar.gz → 0.2.120__tar.gz

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.
Files changed (66) hide show
  1. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/PKG-INFO +4 -4
  2. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/README.md +3 -3
  3. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_cli/cli.py +15 -12
  4. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_cli/commands/list_build.py +6 -0
  5. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_cli/commands/sequences.py +49 -0
  6. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_cli/data/CLI_REFERENCE.md +463 -418
  7. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_cli/data/cli-manifest.json +453 -163
  8. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_cli/parser.py +1 -0
  9. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_cli.egg-info/PKG-INFO +4 -4
  10. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_cli.egg-info/SOURCES.txt +1 -0
  11. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_shared/list_build_contract.py +6 -2
  12. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_shared/pipeline_patterns.py +149 -0
  13. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_shared/product_use_cases.py +249 -1
  14. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_shared/provider_registry.py +337 -18
  15. autotouch_cli-0.2.120/autotouch_shared/realtime_events.py +113 -0
  16. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_shared/workflow_plans.py +249 -14
  17. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/pyproject.toml +1 -1
  18. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/MANIFEST.in +0 -0
  19. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_cli/__init__.py +0 -0
  20. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_cli/cli_contracts.py +0 -0
  21. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_cli/commands/__init__.py +0 -0
  22. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_cli/commands/agents.py +0 -0
  23. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_cli/commands/auth.py +0 -0
  24. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_cli/commands/capacity.py +0 -0
  25. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_cli/commands/cells.py +0 -0
  26. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_cli/commands/columns.py +0 -0
  27. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_cli/commands/companies.py +0 -0
  28. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_cli/commands/crm.py +0 -0
  29. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_cli/commands/integrations.py +0 -0
  30. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_cli/commands/jobs.py +0 -0
  31. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_cli/commands/leads.py +0 -0
  32. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_cli/commands/linkedin.py +0 -0
  33. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_cli/commands/outreach.py +0 -0
  34. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_cli/commands/prompts.py +0 -0
  35. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_cli/commands/rows.py +0 -0
  36. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_cli/commands/search.py +0 -0
  37. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_cli/commands/sender_accounts.py +0 -0
  38. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_cli/commands/tables.py +0 -0
  39. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_cli/commands/tasks.py +0 -0
  40. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_cli/commands/webhooks.py +0 -0
  41. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_cli/commands/workspace_secrets.py +0 -0
  42. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_cli/core/__init__.py +0 -0
  43. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_cli/core/auth.py +0 -0
  44. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_cli/core/config.py +0 -0
  45. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_cli/core/csv_import.py +0 -0
  46. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_cli/core/http.py +0 -0
  47. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_cli/core/io.py +0 -0
  48. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_cli/core/output.py +0 -0
  49. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_cli/core/polling.py +0 -0
  50. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_cli/core/run.py +0 -0
  51. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_cli/core/validation.py +0 -0
  52. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_cli/exceptions.py +0 -0
  53. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_cli/mongo_status.py +0 -0
  54. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_cli/parser_groups.py +0 -0
  55. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_cli/sequence_support.py +0 -0
  56. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_cli/templates.py +0 -0
  57. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_cli.egg-info/dependency_links.txt +0 -0
  58. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_cli.egg-info/entry_points.txt +0 -0
  59. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_cli.egg-info/requires.txt +0 -0
  60. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_cli.egg-info/top_level.txt +0 -0
  61. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_shared/__init__.py +0 -0
  62. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_shared/linkedin_contract.py +0 -0
  63. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_shared/linkedin_filters.py +0 -0
  64. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_shared/product_lifecycle.py +0 -0
  65. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/autotouch_shared/search_contract.py +0 -0
  66. {autotouch_cli-0.2.119 → autotouch_cli-0.2.120}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: autotouch-cli
3
- Version: 0.2.119
3
+ Version: 0.2.120
4
4
  Summary: Autotouch Smart Table CLI
5
5
  Project-URL: Homepage, https://app.autotouch.ai
6
6
  Project-URL: Documentation, https://github.com/nicolonic/autotouch_main/tree/main/docs/research-table/reference
@@ -67,7 +67,7 @@ Discovery is a phase, not a separate top-level command. Use the existing inspect
67
67
  | Need | Command |
68
68
  | --- | --- |
69
69
  | Product operations and whether CLI can run them | `autotouch capabilities operations search "<goal>" --cli-available` |
70
- | Exact operation detail and CLI bindings | `autotouch capabilities operations get <operation_id>` |
70
+ | Exact operation detail and CLI lifecycle steps | `autotouch capabilities operations get <operation_id>` |
71
71
  | Goal-level workflow choices | `autotouch workflows list --output json` and `autotouch workflows plan --type <TYPE>` |
72
72
  | Current command grammar | `autotouch cli-manifest --output json` or `autotouch cli-reference` |
73
73
  | Connected sources and destinations | `autotouch integrations list` and `autotouch integrations status --provider <provider>` |
@@ -223,7 +223,7 @@ Keep `requiredVariables` limited to variables that the sequence actually needs.
223
223
 
224
224
  Version guard:
225
225
 
226
- - Use `autotouch --version` before relying on recipe defaults. This repo expects `autotouch-cli` `0.2.119` or newer.
226
+ - Use `autotouch --version` before relying on recipe defaults. This repo expects `autotouch-cli` `0.2.120` or newer.
227
227
  - If `python3 -m pip install -U autotouch-cli` upgrades the package but `which autotouch` still points at an older shim, run the upgraded binary directly or fix PATH before creating production sequences.
228
228
  - Before authoring a LinkedIn sequence, inspect the live recipe:
229
229
 
@@ -353,7 +353,7 @@ For automation or agent-driven setup, use:
353
353
  - `autotouch cli-reference` for the shipped parser-generated reference
354
354
  - `autotouch capabilities --output json` for provider/workflow contracts
355
355
  - `autotouch capabilities operations search "find work emails"` and `autotouch capabilities operations get research_table.email_finder` to map product operations to the current CLI command path
356
- - `autotouch --version` should be `0.2.119` or newer for product-operation discovery via `capabilities operations list/search/get`, CRM custom-field catalog/create/update commands, lead/company custom-field value writes, structured company list builds without user-supplied keywords, stored list-build input lookup, research-workspace list-build guidance, durable job-posting list builds with `--lookback 1h|24h|7d`, the cleaned single LinkedIn-sourced list-build path, Exa Company Search up to 100 results, scheduled agent `--target ACCOUNTS|LEADS`, `agents signals --target`, the `agent_to_sequence` and `agent_to_leads` workflow scaffolds, paced HTTP Request column contracts, branch-aware LinkedIn sequence recipes, `LINKEDIN_MESSAGE` best-available delivery versus `LINKEDIN_CHAT_MESSAGE` chat-only guidance, sequence campaign intake guards before mutating objects, real agent soft-delete with associated-table handling, research-table sequence handoff assignee and active-sequence-conflict guard config, backend-owned directional source/destination helpers, goal-level workflow plans, website visitor/external intent webhook workflow guidance, create-time agent assignment defaults, company-page signal configuration guidance, sequence authoring warnings when AI draft is mixed with fixed templates, sender-account discovery/management for explicit sequence routing, mixed parent-row/child-list Sync to Table and Sync to Leads recipe configs, and company variable guidance for `company_name_clean` versus internal match keys
356
+ - `autotouch --version` should be `0.2.120` or newer for product-operation discovery via `capabilities operations list/search/get`, `cli.lifecycle[]` command-step projections, CRM custom-field catalog/create/update commands, lead/company custom-field value writes, structured company list builds without user-supplied keywords, stored list-build input lookup, research-workspace list-build guidance, durable job-posting list builds with `--lookback 1h|24h|7d`, the cleaned single LinkedIn-sourced list-build path, Exa Company Search up to 100 results, scheduled agent `--target ACCOUNTS|LEADS`, `agents signals --target`, the `agent_to_sequence` and `agent_to_leads` workflow scaffolds, paced HTTP Request column contracts, branch-aware LinkedIn sequence recipes, `LINKEDIN_MESSAGE` best-available delivery versus `LINKEDIN_CHAT_MESSAGE` chat-only guidance, sequence campaign intake guards before mutating objects, real agent soft-delete with associated-table handling, research-table sequence handoff assignee and active-sequence-conflict guard config, backend-owned directional source/destination helpers, goal-level workflow plans, website visitor/external intent webhook workflow guidance, create-time agent assignment defaults, company-page signal configuration guidance, sequence authoring warnings when AI draft is mixed with fixed templates, sender-account discovery/management for explicit sequence routing, mixed parent-row/child-list Sync to Table and Sync to Leads recipe configs, and company variable guidance for `company_name_clean` versus internal match keys
357
357
  - `autotouch capabilities --output json --select list_builds` for documented list-build inputs such as geography IDs, company size buckets, profile language, and company IDs
358
358
  - `autotouch integrations list` and `autotouch integrations status --provider <provider>` before choosing source/destination workflows
359
359
  - `autotouch workflows plan --type bulk_outreach` and `autotouch workflows scaffold --type bulk_outreach --out-dir workflow` for goal-level workflow planning
@@ -42,7 +42,7 @@ Discovery is a phase, not a separate top-level command. Use the existing inspect
42
42
  | Need | Command |
43
43
  | --- | --- |
44
44
  | Product operations and whether CLI can run them | `autotouch capabilities operations search "<goal>" --cli-available` |
45
- | Exact operation detail and CLI bindings | `autotouch capabilities operations get <operation_id>` |
45
+ | Exact operation detail and CLI lifecycle steps | `autotouch capabilities operations get <operation_id>` |
46
46
  | Goal-level workflow choices | `autotouch workflows list --output json` and `autotouch workflows plan --type <TYPE>` |
47
47
  | Current command grammar | `autotouch cli-manifest --output json` or `autotouch cli-reference` |
48
48
  | Connected sources and destinations | `autotouch integrations list` and `autotouch integrations status --provider <provider>` |
@@ -198,7 +198,7 @@ Keep `requiredVariables` limited to variables that the sequence actually needs.
198
198
 
199
199
  Version guard:
200
200
 
201
- - Use `autotouch --version` before relying on recipe defaults. This repo expects `autotouch-cli` `0.2.119` or newer.
201
+ - Use `autotouch --version` before relying on recipe defaults. This repo expects `autotouch-cli` `0.2.120` or newer.
202
202
  - If `python3 -m pip install -U autotouch-cli` upgrades the package but `which autotouch` still points at an older shim, run the upgraded binary directly or fix PATH before creating production sequences.
203
203
  - Before authoring a LinkedIn sequence, inspect the live recipe:
204
204
 
@@ -328,7 +328,7 @@ For automation or agent-driven setup, use:
328
328
  - `autotouch cli-reference` for the shipped parser-generated reference
329
329
  - `autotouch capabilities --output json` for provider/workflow contracts
330
330
  - `autotouch capabilities operations search "find work emails"` and `autotouch capabilities operations get research_table.email_finder` to map product operations to the current CLI command path
331
- - `autotouch --version` should be `0.2.119` or newer for product-operation discovery via `capabilities operations list/search/get`, CRM custom-field catalog/create/update commands, lead/company custom-field value writes, structured company list builds without user-supplied keywords, stored list-build input lookup, research-workspace list-build guidance, durable job-posting list builds with `--lookback 1h|24h|7d`, the cleaned single LinkedIn-sourced list-build path, Exa Company Search up to 100 results, scheduled agent `--target ACCOUNTS|LEADS`, `agents signals --target`, the `agent_to_sequence` and `agent_to_leads` workflow scaffolds, paced HTTP Request column contracts, branch-aware LinkedIn sequence recipes, `LINKEDIN_MESSAGE` best-available delivery versus `LINKEDIN_CHAT_MESSAGE` chat-only guidance, sequence campaign intake guards before mutating objects, real agent soft-delete with associated-table handling, research-table sequence handoff assignee and active-sequence-conflict guard config, backend-owned directional source/destination helpers, goal-level workflow plans, website visitor/external intent webhook workflow guidance, create-time agent assignment defaults, company-page signal configuration guidance, sequence authoring warnings when AI draft is mixed with fixed templates, sender-account discovery/management for explicit sequence routing, mixed parent-row/child-list Sync to Table and Sync to Leads recipe configs, and company variable guidance for `company_name_clean` versus internal match keys
331
+ - `autotouch --version` should be `0.2.120` or newer for product-operation discovery via `capabilities operations list/search/get`, `cli.lifecycle[]` command-step projections, CRM custom-field catalog/create/update commands, lead/company custom-field value writes, structured company list builds without user-supplied keywords, stored list-build input lookup, research-workspace list-build guidance, durable job-posting list builds with `--lookback 1h|24h|7d`, the cleaned single LinkedIn-sourced list-build path, Exa Company Search up to 100 results, scheduled agent `--target ACCOUNTS|LEADS`, `agents signals --target`, the `agent_to_sequence` and `agent_to_leads` workflow scaffolds, paced HTTP Request column contracts, branch-aware LinkedIn sequence recipes, `LINKEDIN_MESSAGE` best-available delivery versus `LINKEDIN_CHAT_MESSAGE` chat-only guidance, sequence campaign intake guards before mutating objects, real agent soft-delete with associated-table handling, research-table sequence handoff assignee and active-sequence-conflict guard config, backend-owned directional source/destination helpers, goal-level workflow plans, website visitor/external intent webhook workflow guidance, create-time agent assignment defaults, company-page signal configuration guidance, sequence authoring warnings when AI draft is mixed with fixed templates, sender-account discovery/management for explicit sequence routing, mixed parent-row/child-list Sync to Table and Sync to Leads recipe configs, and company variable guidance for `company_name_clean` versus internal match keys
332
332
  - `autotouch capabilities --output json --select list_builds` for documented list-build inputs such as geography IDs, company size buckets, profile language, and company IDs
333
333
  - `autotouch integrations list` and `autotouch integrations status --provider <provider>` before choosing source/destination workflows
334
334
  - `autotouch workflows plan --type bulk_outreach` and `autotouch workflows scaffold --type bulk_outreach --out-dir workflow` for goal-level workflow planning
@@ -207,6 +207,7 @@ from autotouch_cli.commands.sequences import (
207
207
  cmd_sequences_status as cmd_sequences_status_impl,
208
208
  cmd_sequences_sync_accounts as cmd_sequences_sync_accounts_impl,
209
209
  cmd_sequences_update as cmd_sequences_update_impl,
210
+ cmd_sequences_variable_catalog as cmd_sequences_variable_catalog_impl,
210
211
  )
211
212
  from autotouch_cli.commands.sender_accounts import (
212
213
  SenderAccountCommandRuntime as SenderAccountCommandHandlerRuntime,
@@ -1610,6 +1611,7 @@ _register("sequences_list", cmd_sequences_list_impl, _sequence_command_runtime)
1610
1611
  _register("sequences_get", cmd_sequences_get_impl, _sequence_command_runtime)
1611
1612
  _register("sequences_stats", cmd_sequences_stats_impl, _sequence_command_runtime)
1612
1613
  _register("sequences_delivery_status", cmd_sequences_delivery_status_impl, _sequence_command_runtime)
1614
+ _register("sequences_variable_catalog", cmd_sequences_variable_catalog_impl, _sequence_command_runtime)
1613
1615
  _register("sequences_create", cmd_sequences_create_impl, _sequence_command_runtime)
1614
1616
  _register("sequences_update", cmd_sequences_update_impl, _sequence_command_runtime)
1615
1617
  _register("sequences_delete", cmd_sequences_delete_impl, _sequence_command_runtime)
@@ -2364,21 +2366,23 @@ def _search_operation_index(args: argparse.Namespace, *, query: str) -> Tuple[An
2364
2366
 
2365
2367
 
2366
2368
  def _operation_command_path(operation: Dict[str, Any]) -> str:
2367
- bindings = operation.get("cli_bindings")
2368
- if not isinstance(bindings, list):
2369
- cli = operation.get("cli")
2370
- if isinstance(cli, dict):
2371
- bindings = cli.get("bindings")
2372
- if not isinstance(bindings, list):
2369
+ cli = operation.get("cli")
2370
+ if not isinstance(cli, dict):
2371
+ return "-"
2372
+ lifecycle = cli.get("lifecycle")
2373
+ if not isinstance(lifecycle, list):
2373
2374
  return "-"
2374
2375
  paths: List[str] = []
2375
- for binding in bindings:
2376
- if not isinstance(binding, dict):
2376
+ for entry in lifecycle:
2377
+ if not isinstance(entry, dict):
2377
2378
  continue
2378
- command_keys = binding.get("command_keys")
2379
- if not isinstance(command_keys, list):
2379
+ steps = entry.get("steps")
2380
+ if not isinstance(steps, list):
2380
2381
  continue
2381
- for command_key in command_keys:
2382
+ for step in steps:
2383
+ if not isinstance(step, dict):
2384
+ continue
2385
+ command_key = step.get("command_key")
2382
2386
  command_text = " ".join(str(command_key).split(".")).strip()
2383
2387
  if command_text:
2384
2388
  paths.append(f"autotouch {command_text}")
@@ -2395,7 +2399,6 @@ def _enrich_operations_for_human(args: argparse.Namespace, entries: List[Dict[st
2395
2399
  detail = _fetch_operation_detail(args, operation_id)
2396
2400
  if isinstance(detail, dict):
2397
2401
  merged = dict(entry)
2398
- merged["cli_bindings"] = detail.get("cli_bindings", [])
2399
2402
  merged["cli"] = detail.get("cli", entry.get("cli"))
2400
2403
  enriched.append(merged)
2401
2404
  else:
@@ -82,6 +82,9 @@ def _payload(args: argparse.Namespace, *, runtime: ListBuildCommandRuntime, kind
82
82
  for attr, key in (
83
83
  ("job_title", "job_titles"),
84
84
  ("location", "locations"),
85
+ ("company_location", "company_locations"),
86
+ ("company", "company_names"),
87
+ ("exclude_company", "company_exclusions"),
85
88
  ("industry", "industries"),
86
89
  ):
87
90
  values = getattr(args, attr, None) or []
@@ -324,6 +327,9 @@ def register_list_build_subcommands(
324
327
  p.add_argument("--job-title", action="append", help="Job title to find; repeat for multiple titles")
325
328
  p.add_argument("--keywords", help="Optional job description/company keyword filter")
326
329
  p.add_argument("--location", action="append", help="Hiring location, e.g. United States or New York")
330
+ p.add_argument("--company-location", action="append", help="Company HQ/base location, e.g. New York or United States")
331
+ p.add_argument("--company", action="append", help="Company/employer name to include; repeat for multiple")
332
+ p.add_argument("--exclude-company", action="append", help="Company/employer name to exclude; repeat for multiple")
327
333
  p.add_argument("--industry", action="append", help="Optional industry label for jobs provider filtering")
328
334
  p.add_argument("--company-size", action="append", help="Company size bucket, e.g. 1-10 or 11-50")
329
335
  p.add_argument("--company-domain", action="append", help="Restrict results to company domains; repeat for multiple")
@@ -437,6 +437,37 @@ def cmd_sequences_delivery_status(args: argparse.Namespace, *, runtime: Sequence
437
437
  runtime.print_json(data, args.compact)
438
438
 
439
439
 
440
+ def cmd_sequences_variable_catalog(args: argparse.Namespace, *, runtime: SequenceCommandRuntime) -> None:
441
+ token = runtime.resolve_token(args.token, required=True)
442
+ params: Dict[str, Any] = {}
443
+ for attr, key in (
444
+ ("sequence_id", "sequenceId"),
445
+ ("source_table_id", "sourceTableId"),
446
+ ("route_sample_limit", "routeSampleLimit"),
447
+ ):
448
+ value = getattr(args, attr, None)
449
+ if value not in (None, ""):
450
+ params[key] = value
451
+ if bool(getattr(args, "no_custom_fields", False)):
452
+ params["includeCustomFields"] = False
453
+ if bool(getattr(args, "no_research_fields", False)):
454
+ params["includeResearchFields"] = False
455
+ if bool(getattr(args, "no_route_suggestions", False)):
456
+ params["includeRouteSuggestions"] = False
457
+
458
+ data = runtime.request_api(
459
+ "GET",
460
+ "/api/sequences/variable-catalog",
461
+ base_url=args.base_url,
462
+ token=token,
463
+ use_x_api_key=args.use_x_api_key,
464
+ params=params,
465
+ timeout=args.timeout,
466
+ verbose=args.verbose,
467
+ )
468
+ runtime.print_json(data, args.compact)
469
+
470
+
440
471
  def cmd_sequences_create(args: argparse.Namespace, *, runtime: SequenceCommandRuntime) -> None:
441
472
  token = runtime.resolve_token(args.token, required=True)
442
473
  payload = runtime.load_json_input(
@@ -757,6 +788,24 @@ def register_sequences_subcommands(
757
788
  add_api_common_arguments(psqd)
758
789
  psqd.set_defaults(func=handlers["delivery_status"])
759
790
 
791
+ psqvc = sequences_sub.add_parser(
792
+ "variable-catalog",
793
+ help="Inspect legal sequence variables and source-table route candidates",
794
+ description=(
795
+ "Returns executable lead/company/user/custom/research variables for sequence templates, plus "
796
+ "candidate source_field_route fields when a source table is provided. Use this before writing "
797
+ "SequenceIn templates or variableMap payloads."
798
+ ),
799
+ )
800
+ psqvc.add_argument("--sequence-id", help="Optional existing sequence id to inspect")
801
+ psqvc.add_argument("--source-table-id", help="Optional source table id for research variables and route suggestions")
802
+ psqvc.add_argument("--no-custom-fields", action="store_true", help="Exclude CRM custom fields")
803
+ psqvc.add_argument("--no-research-fields", action="store_true", help="Exclude source-table research fields")
804
+ psqvc.add_argument("--no-route-suggestions", action="store_true", help="Exclude route candidate sampling")
805
+ psqvc.add_argument("--route-sample-limit", type=int, default=100, help="Rows to sample for route suggestions (1-250)")
806
+ add_api_common_arguments(psqvc)
807
+ psqvc.set_defaults(func=handlers["variable_catalog"])
808
+
760
809
  psqr = sequences_sub.add_parser("recipe", help="Print copy-ready sequence payload templates")
761
810
  psqr.add_argument("--type", choices=["all", *sequence_recipe_types], default="all")
762
811
  psqr.add_argument("--out-file", help="Write template JSON to file (single type writes payload only)")