@lhremote/cli 0.8.0 → 0.10.0

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 (230) hide show
  1. package/dist/handlers/add-people-to-collection.d.ts.map +1 -1
  2. package/dist/handlers/add-people-to-collection.js +2 -2
  3. package/dist/handlers/add-people-to-collection.js.map +1 -1
  4. package/dist/handlers/build-url.test.d.ts +2 -0
  5. package/dist/handlers/build-url.test.d.ts.map +1 -0
  6. package/dist/handlers/build-url.test.js +119 -0
  7. package/dist/handlers/build-url.test.js.map +1 -0
  8. package/dist/handlers/campaign-add-action.d.ts.map +1 -1
  9. package/dist/handlers/campaign-add-action.js +2 -2
  10. package/dist/handlers/campaign-add-action.js.map +1 -1
  11. package/dist/handlers/campaign-create.d.ts.map +1 -1
  12. package/dist/handlers/campaign-create.js +2 -2
  13. package/dist/handlers/campaign-create.js.map +1 -1
  14. package/dist/handlers/campaign-delete.d.ts.map +1 -1
  15. package/dist/handlers/campaign-delete.js +2 -2
  16. package/dist/handlers/campaign-delete.js.map +1 -1
  17. package/dist/handlers/campaign-erase.d.ts.map +1 -1
  18. package/dist/handlers/campaign-erase.js +2 -2
  19. package/dist/handlers/campaign-erase.js.map +1 -1
  20. package/dist/handlers/campaign-exclude-add.d.ts.map +1 -1
  21. package/dist/handlers/campaign-exclude-add.js +2 -2
  22. package/dist/handlers/campaign-exclude-add.js.map +1 -1
  23. package/dist/handlers/campaign-exclude-list.d.ts.map +1 -1
  24. package/dist/handlers/campaign-exclude-list.js +2 -2
  25. package/dist/handlers/campaign-exclude-list.js.map +1 -1
  26. package/dist/handlers/campaign-exclude-remove.d.ts.map +1 -1
  27. package/dist/handlers/campaign-exclude-remove.js +2 -2
  28. package/dist/handlers/campaign-exclude-remove.js.map +1 -1
  29. package/dist/handlers/campaign-export.d.ts.map +1 -1
  30. package/dist/handlers/campaign-export.js +2 -2
  31. package/dist/handlers/campaign-export.js.map +1 -1
  32. package/dist/handlers/campaign-get.d.ts.map +1 -1
  33. package/dist/handlers/campaign-get.js +2 -2
  34. package/dist/handlers/campaign-get.js.map +1 -1
  35. package/dist/handlers/campaign-list-people.d.ts.map +1 -1
  36. package/dist/handlers/campaign-list-people.js +2 -2
  37. package/dist/handlers/campaign-list-people.js.map +1 -1
  38. package/dist/handlers/campaign-move-next.d.ts.map +1 -1
  39. package/dist/handlers/campaign-move-next.js +2 -2
  40. package/dist/handlers/campaign-move-next.js.map +1 -1
  41. package/dist/handlers/campaign-remove-action.d.ts.map +1 -1
  42. package/dist/handlers/campaign-remove-action.js +2 -2
  43. package/dist/handlers/campaign-remove-action.js.map +1 -1
  44. package/dist/handlers/campaign-remove-people.d.ts.map +1 -1
  45. package/dist/handlers/campaign-remove-people.js +2 -2
  46. package/dist/handlers/campaign-remove-people.js.map +1 -1
  47. package/dist/handlers/campaign-reorder-actions.d.ts.map +1 -1
  48. package/dist/handlers/campaign-reorder-actions.js +2 -2
  49. package/dist/handlers/campaign-reorder-actions.js.map +1 -1
  50. package/dist/handlers/campaign-retry.d.ts.map +1 -1
  51. package/dist/handlers/campaign-retry.js +2 -2
  52. package/dist/handlers/campaign-retry.js.map +1 -1
  53. package/dist/handlers/campaign-start.d.ts.map +1 -1
  54. package/dist/handlers/campaign-start.js +2 -2
  55. package/dist/handlers/campaign-start.js.map +1 -1
  56. package/dist/handlers/campaign-statistics.d.ts.map +1 -1
  57. package/dist/handlers/campaign-statistics.js +2 -2
  58. package/dist/handlers/campaign-statistics.js.map +1 -1
  59. package/dist/handlers/campaign-status.d.ts.map +1 -1
  60. package/dist/handlers/campaign-status.js +2 -2
  61. package/dist/handlers/campaign-status.js.map +1 -1
  62. package/dist/handlers/campaign-stop.d.ts.map +1 -1
  63. package/dist/handlers/campaign-stop.js +2 -2
  64. package/dist/handlers/campaign-stop.js.map +1 -1
  65. package/dist/handlers/campaign-update-action.d.ts.map +1 -1
  66. package/dist/handlers/campaign-update-action.js +2 -2
  67. package/dist/handlers/campaign-update-action.js.map +1 -1
  68. package/dist/handlers/campaign-update.d.ts.map +1 -1
  69. package/dist/handlers/campaign-update.js +2 -2
  70. package/dist/handlers/campaign-update.js.map +1 -1
  71. package/dist/handlers/check-replies.d.ts +2 -0
  72. package/dist/handlers/check-replies.d.ts.map +1 -1
  73. package/dist/handlers/check-replies.js +9 -2
  74. package/dist/handlers/check-replies.js.map +1 -1
  75. package/dist/handlers/check-replies.test.js +25 -8
  76. package/dist/handlers/check-replies.test.js.map +1 -1
  77. package/dist/handlers/check-status.d.ts.map +1 -1
  78. package/dist/handlers/check-status.js +6 -6
  79. package/dist/handlers/check-status.js.map +1 -1
  80. package/dist/handlers/collect-people.d.ts.map +1 -1
  81. package/dist/handlers/collect-people.js +2 -2
  82. package/dist/handlers/collect-people.js.map +1 -1
  83. package/dist/handlers/comment-on-post.d.ts +1 -0
  84. package/dist/handlers/comment-on-post.d.ts.map +1 -1
  85. package/dist/handlers/comment-on-post.js +3 -2
  86. package/dist/handlers/comment-on-post.js.map +1 -1
  87. package/dist/handlers/comment-on-post.test.d.ts +2 -0
  88. package/dist/handlers/comment-on-post.test.d.ts.map +1 -0
  89. package/dist/handlers/comment-on-post.test.js +75 -0
  90. package/dist/handlers/comment-on-post.test.js.map +1 -0
  91. package/dist/handlers/create-collection.d.ts.map +1 -1
  92. package/dist/handlers/create-collection.js +2 -2
  93. package/dist/handlers/create-collection.js.map +1 -1
  94. package/dist/handlers/delete-collection.d.ts.map +1 -1
  95. package/dist/handlers/delete-collection.js +2 -2
  96. package/dist/handlers/delete-collection.js.map +1 -1
  97. package/dist/handlers/dismiss-errors.js +2 -2
  98. package/dist/handlers/dismiss-errors.js.map +1 -1
  99. package/dist/handlers/endorse-skills.d.ts +2 -0
  100. package/dist/handlers/endorse-skills.d.ts.map +1 -1
  101. package/dist/handlers/endorse-skills.js +4 -2
  102. package/dist/handlers/endorse-skills.js.map +1 -1
  103. package/dist/handlers/enrich-profile.d.ts +1 -0
  104. package/dist/handlers/enrich-profile.d.ts.map +1 -1
  105. package/dist/handlers/enrich-profile.js +3 -2
  106. package/dist/handlers/enrich-profile.js.map +1 -1
  107. package/dist/handlers/find-app.js +1 -1
  108. package/dist/handlers/find-app.js.map +1 -1
  109. package/dist/handlers/find-app.test.js +4 -4
  110. package/dist/handlers/find-app.test.js.map +1 -1
  111. package/dist/handlers/follow-person.d.ts +2 -0
  112. package/dist/handlers/follow-person.d.ts.map +1 -1
  113. package/dist/handlers/follow-person.js +4 -2
  114. package/dist/handlers/follow-person.js.map +1 -1
  115. package/dist/handlers/get-action-budget.d.ts.map +1 -1
  116. package/dist/handlers/get-action-budget.js +2 -2
  117. package/dist/handlers/get-action-budget.js.map +1 -1
  118. package/dist/handlers/get-errors.js +2 -2
  119. package/dist/handlers/get-errors.js.map +1 -1
  120. package/dist/handlers/get-feed.d.ts.map +1 -1
  121. package/dist/handlers/get-feed.js +5 -3
  122. package/dist/handlers/get-feed.js.map +1 -1
  123. package/dist/handlers/get-feed.test.js +1 -3
  124. package/dist/handlers/get-feed.test.js.map +1 -1
  125. package/dist/handlers/get-post-stats.d.ts.map +1 -1
  126. package/dist/handlers/get-post-stats.js +2 -2
  127. package/dist/handlers/get-post-stats.js.map +1 -1
  128. package/dist/handlers/get-post-stats.test.d.ts +2 -0
  129. package/dist/handlers/get-post-stats.test.d.ts.map +1 -0
  130. package/dist/handlers/get-post-stats.test.js +79 -0
  131. package/dist/handlers/get-post-stats.test.js.map +1 -0
  132. package/dist/handlers/get-post.d.ts +0 -1
  133. package/dist/handlers/get-post.d.ts.map +1 -1
  134. package/dist/handlers/get-post.js +2 -3
  135. package/dist/handlers/get-post.js.map +1 -1
  136. package/dist/handlers/get-post.test.d.ts +2 -0
  137. package/dist/handlers/get-post.test.d.ts.map +1 -0
  138. package/dist/handlers/get-post.test.js +124 -0
  139. package/dist/handlers/get-post.test.js.map +1 -0
  140. package/dist/handlers/get-profile-activity.d.ts +1 -1
  141. package/dist/handlers/get-profile-activity.d.ts.map +1 -1
  142. package/dist/handlers/get-profile-activity.js +10 -6
  143. package/dist/handlers/get-profile-activity.js.map +1 -1
  144. package/dist/handlers/get-profile-activity.test.d.ts +2 -0
  145. package/dist/handlers/get-profile-activity.test.d.ts.map +1 -0
  146. package/dist/handlers/get-profile-activity.test.js +127 -0
  147. package/dist/handlers/get-profile-activity.test.js.map +1 -0
  148. package/dist/handlers/get-throttle-status.d.ts.map +1 -1
  149. package/dist/handlers/get-throttle-status.js +2 -2
  150. package/dist/handlers/get-throttle-status.js.map +1 -1
  151. package/dist/handlers/import-people-from-collection.d.ts.map +1 -1
  152. package/dist/handlers/import-people-from-collection.js +2 -2
  153. package/dist/handlers/import-people-from-collection.js.map +1 -1
  154. package/dist/handlers/import-people-from-urls.d.ts.map +1 -1
  155. package/dist/handlers/import-people-from-urls.js +2 -2
  156. package/dist/handlers/import-people-from-urls.js.map +1 -1
  157. package/dist/handlers/like-person-posts.d.ts +2 -0
  158. package/dist/handlers/like-person-posts.d.ts.map +1 -1
  159. package/dist/handlers/like-person-posts.js +4 -2
  160. package/dist/handlers/like-person-posts.js.map +1 -1
  161. package/dist/handlers/list-accounts.d.ts.map +1 -1
  162. package/dist/handlers/list-accounts.js +12 -2
  163. package/dist/handlers/list-accounts.js.map +1 -1
  164. package/dist/handlers/list-accounts.test.js +3 -1
  165. package/dist/handlers/list-accounts.test.js.map +1 -1
  166. package/dist/handlers/list-reference-data.test.d.ts +2 -0
  167. package/dist/handlers/list-reference-data.test.d.ts.map +1 -0
  168. package/dist/handlers/list-reference-data.test.js +62 -0
  169. package/dist/handlers/list-reference-data.test.js.map +1 -0
  170. package/dist/handlers/message-person.d.ts +1 -0
  171. package/dist/handlers/message-person.d.ts.map +1 -1
  172. package/dist/handlers/message-person.js +3 -2
  173. package/dist/handlers/message-person.js.map +1 -1
  174. package/dist/handlers/react-to-post.d.ts.map +1 -1
  175. package/dist/handlers/react-to-post.js +6 -2
  176. package/dist/handlers/react-to-post.js.map +1 -1
  177. package/dist/handlers/react-to-post.test.d.ts +2 -0
  178. package/dist/handlers/react-to-post.test.d.ts.map +1 -0
  179. package/dist/handlers/react-to-post.test.js +65 -0
  180. package/dist/handlers/react-to-post.test.js.map +1 -0
  181. package/dist/handlers/remove-connection.d.ts +1 -0
  182. package/dist/handlers/remove-connection.d.ts.map +1 -1
  183. package/dist/handlers/remove-connection.js +3 -2
  184. package/dist/handlers/remove-connection.js.map +1 -1
  185. package/dist/handlers/remove-people-from-collection.d.ts.map +1 -1
  186. package/dist/handlers/remove-people-from-collection.js +2 -2
  187. package/dist/handlers/remove-people-from-collection.js.map +1 -1
  188. package/dist/handlers/resolve-entity.d.ts.map +1 -1
  189. package/dist/handlers/resolve-entity.js +2 -2
  190. package/dist/handlers/resolve-entity.js.map +1 -1
  191. package/dist/handlers/resolve-entity.test.d.ts +2 -0
  192. package/dist/handlers/resolve-entity.test.d.ts.map +1 -0
  193. package/dist/handlers/resolve-entity.test.js +93 -0
  194. package/dist/handlers/resolve-entity.test.js.map +1 -0
  195. package/dist/handlers/scrape-messaging-history.d.ts +1 -0
  196. package/dist/handlers/scrape-messaging-history.d.ts.map +1 -1
  197. package/dist/handlers/scrape-messaging-history.js +3 -2
  198. package/dist/handlers/scrape-messaging-history.js.map +1 -1
  199. package/dist/handlers/search-posts.d.ts +1 -1
  200. package/dist/handlers/search-posts.d.ts.map +1 -1
  201. package/dist/handlers/search-posts.js +12 -17
  202. package/dist/handlers/search-posts.js.map +1 -1
  203. package/dist/handlers/search-posts.test.js +26 -19
  204. package/dist/handlers/search-posts.test.js.map +1 -1
  205. package/dist/handlers/send-inmail.d.ts +1 -0
  206. package/dist/handlers/send-inmail.d.ts.map +1 -1
  207. package/dist/handlers/send-inmail.js +3 -2
  208. package/dist/handlers/send-inmail.js.map +1 -1
  209. package/dist/handlers/send-invite.d.ts +1 -0
  210. package/dist/handlers/send-invite.d.ts.map +1 -1
  211. package/dist/handlers/send-invite.js +3 -2
  212. package/dist/handlers/send-invite.js.map +1 -1
  213. package/dist/handlers/start-instance.d.ts.map +1 -1
  214. package/dist/handlers/start-instance.js +11 -2
  215. package/dist/handlers/start-instance.js.map +1 -1
  216. package/dist/handlers/start-instance.test.js +3 -1
  217. package/dist/handlers/start-instance.test.js.map +1 -1
  218. package/dist/handlers/stop-instance.d.ts.map +1 -1
  219. package/dist/handlers/stop-instance.js +11 -2
  220. package/dist/handlers/stop-instance.js.map +1 -1
  221. package/dist/handlers/stop-instance.test.js +3 -1
  222. package/dist/handlers/stop-instance.test.js.map +1 -1
  223. package/dist/handlers/visit-profile.d.ts +1 -0
  224. package/dist/handlers/visit-profile.d.ts.map +1 -1
  225. package/dist/handlers/visit-profile.js +3 -2
  226. package/dist/handlers/visit-profile.js.map +1 -1
  227. package/dist/program.d.ts.map +1 -1
  228. package/dist/program.js +70 -60
  229. package/dist/program.js.map +1 -1
  230. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"stop-instance.test.js","sourceRoot":"","sources":["../../src/handlers/stop-instance.test.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC,oCAAoC;AAEpC,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAEzE,EAAE,CAAC,IAAI,CAAC,gBAAgB,EAAE,KAAK,EAAE,cAAc,EAAE,EAAE;IACjD,MAAM,MAAM,GAAG,MAAM,cAAc,EAAmC,CAAC;IACvE,OAAO;QACL,GAAG,MAAM;QACT,eAAe,EAAE,EAAE,CAAC,EAAE,EAAE;KACzB,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,OAAO,EACL,eAAe,EACf,2BAA2B,GAC5B,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEzD,QAAQ,CAAC,oBAAoB,EAAE,GAAG,EAAE;IAClC,MAAM,gBAAgB,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AAC,IAAI,EAAE,EAAE,CAAC,CAAC;QAEnC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACjC,MAAM,CAAC,SAAS,CAAC,CAAC,oBAAoB,CAAC,sBAAsB,CAAC,CAAC;IACjE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,0CAA0C,EAAE,KAAK,IAAI,EAAE;QACxD,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;QAExD,YAAY,CAAC,EAAE,YAAY,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,iBAAiB,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;QAErE,MAAM,kBAAkB,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;QAElD,MAAM,CAAC,eAAe,CAAC,CAAC,oBAAoB,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IACzD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -6,6 +6,7 @@ export declare function handleVisitProfile(options: {
6
6
  cdpPort?: number;
7
7
  cdpHost?: string;
8
8
  allowRemote?: boolean;
9
+ accountId?: number;
9
10
  json?: boolean;
10
11
  }): Promise<void>;
11
12
  //# sourceMappingURL=visit-profile.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"visit-profile.d.ts","sourceRoot":"","sources":["../../src/handlers/visit-profile.ts"],"names":[],"mappings":"AAYA,8GAA8G;AAC9G,wBAAsB,kBAAkB,CAAC,OAAO,EAAE;IAChD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,GAAG,OAAO,CAAC,IAAI,CAAC,CAuChB"}
1
+ {"version":3,"file":"visit-profile.d.ts","sourceRoot":"","sources":["../../src/handlers/visit-profile.ts"],"names":[],"mappings":"AAWA,8GAA8G;AAC9G,wBAAsB,kBAAkB,CAAC,OAAO,EAAE;IAChD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,GAAG,OAAO,CAAC,IAAI,CAAC,CAwChB"}
@@ -1,6 +1,6 @@
1
1
  // SPDX-License-Identifier: AGPL-3.0-only
2
2
  // Copyright (C) 2026 Oleksii PELYKH
3
- import { DEFAULT_CDP_PORT, errorMessage, InstanceNotRunningError, visitProfile, } from "@lhremote/core";
3
+ import { errorMessage, InstanceNotRunningError, visitProfile, } from "@lhremote/core";
4
4
  /** Handle the {@link https://github.com/alexey-pelykh/lhremote#visit-profile | visit-profile} CLI command. */
5
5
  export async function handleVisitProfile(options) {
6
6
  if ((options.personId == null) === (options.url == null)) {
@@ -15,9 +15,10 @@ export async function handleVisitProfile(options) {
15
15
  personId: options.personId,
16
16
  url: options.url,
17
17
  extractCurrentOrganizations: options.extractCurrentOrganizations,
18
- cdpPort: options.cdpPort ?? DEFAULT_CDP_PORT,
18
+ cdpPort: options.cdpPort,
19
19
  cdpHost: options.cdpHost,
20
20
  allowRemote: options.allowRemote,
21
+ accountId: options.accountId,
21
22
  });
22
23
  }
23
24
  catch (error) {
@@ -1 +1 @@
1
- {"version":3,"file":"visit-profile.js","sourceRoot":"","sources":["../../src/handlers/visit-profile.ts"],"names":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CAAC,CAAC;YACjE,IAAI,IAAI,EAAE,CAAC;gBACT,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,IAAI,IAAI,CAAC,CAAC;YACtC,CAAC;QACH,CAAC;IACH,CAAC;IAED,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC9B,OAAO,CAAC,MAAM,CAAC,KAAK,CAClB,aAAa,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAC9D,CAAC;IACJ,CAAC;IAED,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC9B,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,UAAU,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAChE,CAAC;IAED,MAAM,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,IAAI,CAC1C,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,KAAK,QAAQ,CAChC,CAAC;IACF,IAAI,WAAW,EAAE,CAAC;QAChB,OAAO,CAAC,MAAM,CAAC,KAAK,CAClB,+BAA+B,WAAW,CAAC,UAAU,IAAI,CAC1D,CAAC;IACJ,CAAC;AACH,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"program.d.ts","sourceRoot":"","sources":["../src/program.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAgC,MAAM,WAAW,CAAC;AAoHlE;;GAEG;AACH,wBAAgB,aAAa,IAAI,OAAO,CAszBvC"}
1
+ {"version":3,"file":"program.d.ts","sourceRoot":"","sources":["../src/program.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAgC,MAAM,WAAW,CAAC;AAoHlE;;GAEG;AACH,wBAAgB,aAAa,IAAI,OAAO,CAg0BvC"}
package/dist/program.js CHANGED
@@ -61,7 +61,7 @@ export function createProgram() {
61
61
  program
62
62
  .command("list-accounts")
63
63
  .description("List LinkedHelper accounts")
64
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
64
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
65
65
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
66
66
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
67
67
  .option("--json", "Output as JSON")
@@ -70,7 +70,7 @@ export function createProgram() {
70
70
  .command("start-instance")
71
71
  .description("Start a LinkedHelper instance")
72
72
  .argument("<accountId>", "Account ID to start", parsePositiveInt)
73
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
73
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
74
74
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
75
75
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
76
76
  .action(handleStartInstance);
@@ -78,7 +78,7 @@ export function createProgram() {
78
78
  .command("stop-instance")
79
79
  .description("Stop a LinkedHelper instance")
80
80
  .argument("<accountId>", "Account ID to stop", parsePositiveInt)
81
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
81
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
82
82
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
83
83
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
84
84
  .action(handleStopInstance);
@@ -96,7 +96,7 @@ export function createProgram() {
96
96
  .option("--status <status>", "Filter by status (queued, processed, successful, failed)")
97
97
  .option("--limit <n>", "Max results (default: 20)", parsePositiveInt)
98
98
  .option("--offset <n>", "Pagination offset (default: 0)", parseNonNegativeInt)
99
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
99
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
100
100
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
101
101
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
102
102
  .option("--json", "Output as JSON")
@@ -107,7 +107,7 @@ export function createProgram() {
107
107
  .option("--file <path>", "Path to campaign configuration file")
108
108
  .option("--yaml <config>", "Inline YAML campaign configuration")
109
109
  .option("--json-input <config>", "Inline JSON campaign configuration")
110
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
110
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
111
111
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
112
112
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
113
113
  .option("--json", "Output as JSON")
@@ -116,7 +116,7 @@ export function createProgram() {
116
116
  .command("campaign-get")
117
117
  .description("Get detailed campaign information")
118
118
  .argument("<campaignId>", "Campaign ID", parsePositiveInt)
119
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
119
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
120
120
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
121
121
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
122
122
  .option("--json", "Output as JSON")
@@ -126,7 +126,7 @@ export function createProgram() {
126
126
  .description("Delete a campaign (archives by default, use --hard to permanently remove)")
127
127
  .argument("<campaignId>", "Campaign ID to delete", parsePositiveInt)
128
128
  .option("--hard", "Permanently delete the campaign and all related data")
129
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
129
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
130
130
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
131
131
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
132
132
  .option("--json", "Output as JSON")
@@ -135,7 +135,7 @@ export function createProgram() {
135
135
  .command("campaign-erase")
136
136
  .description("Permanently erase a campaign and all related data (irreversible)")
137
137
  .argument("<campaignId>", "Campaign ID to erase", parsePositiveInt)
138
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
138
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
139
139
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
140
140
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
141
141
  .option("--json", "Output as JSON")
@@ -145,7 +145,7 @@ export function createProgram() {
145
145
  .description("View the exclude list for a campaign or action")
146
146
  .argument("<campaignId>", "Campaign ID", parsePositiveInt)
147
147
  .option("--action-id <id>", "Action ID (shows action-level exclude list instead of campaign-level)", parsePositiveInt)
148
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
148
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
149
149
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
150
150
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
151
151
  .option("--json", "Output as JSON")
@@ -157,7 +157,7 @@ export function createProgram() {
157
157
  .option("--person-ids <ids>", "Comma-separated person IDs")
158
158
  .option("--person-ids-file <path>", "File containing person IDs")
159
159
  .option("--action-id <id>", "Action ID (adds to action-level exclude list instead of campaign-level)", parsePositiveInt)
160
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
160
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
161
161
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
162
162
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
163
163
  .option("--json", "Output as JSON")
@@ -169,7 +169,7 @@ export function createProgram() {
169
169
  .option("--person-ids <ids>", "Comma-separated person IDs")
170
170
  .option("--person-ids-file <path>", "File containing person IDs")
171
171
  .option("--action-id <id>", "Action ID (removes from action-level exclude list instead of campaign-level)", parsePositiveInt)
172
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
172
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
173
173
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
174
174
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
175
175
  .option("--json", "Output as JSON")
@@ -182,7 +182,7 @@ export function createProgram() {
182
182
  .choices(["yaml", "json"])
183
183
  .default("yaml"))
184
184
  .option("--output <path>", "Output file path (default: stdout)")
185
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
185
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
186
186
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
187
187
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
188
188
  .action(handleCampaignExport);
@@ -192,7 +192,7 @@ export function createProgram() {
192
192
  .argument("<campaignId>", "Campaign ID to check", parsePositiveInt)
193
193
  .option("--include-results", "Include execution results")
194
194
  .option("--limit <n>", "Max results to show (default: 20)", parsePositiveInt)
195
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
195
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
196
196
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
197
197
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
198
198
  .option("--json", "Output as JSON")
@@ -203,7 +203,7 @@ export function createProgram() {
203
203
  .argument("<campaignId>", "Campaign ID", parsePositiveInt)
204
204
  .option("--action-id <id>", "Filter to a specific action", parsePositiveInt)
205
205
  .option("--max-errors <n>", "Max top errors per action (default: 5)", parsePositiveInt)
206
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
206
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
207
207
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
208
208
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
209
209
  .option("--json", "Output as JSON")
@@ -215,7 +215,7 @@ export function createProgram() {
215
215
  .argument("<actionId>", "Action ID to move people from", parsePositiveInt)
216
216
  .option("--person-ids <ids>", "Comma-separated person IDs")
217
217
  .option("--person-ids-file <path>", "File containing person IDs")
218
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
218
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
219
219
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
220
220
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
221
221
  .option("--json", "Output as JSON")
@@ -226,7 +226,7 @@ export function createProgram() {
226
226
  .argument("<campaignId>", "Campaign ID", parsePositiveInt)
227
227
  .option("--person-ids <ids>", "Comma-separated person IDs")
228
228
  .option("--person-ids-file <path>", "File containing person IDs")
229
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
229
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
230
230
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
231
231
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
232
232
  .option("--json", "Output as JSON")
@@ -237,7 +237,7 @@ export function createProgram() {
237
237
  .argument("<campaignId>", "Campaign ID to start", parsePositiveInt)
238
238
  .option("--person-ids <ids>", "Comma-separated person IDs")
239
239
  .option("--person-ids-file <path>", "File containing person IDs")
240
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
240
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
241
241
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
242
242
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
243
243
  .option("--json", "Output as JSON")
@@ -246,7 +246,7 @@ export function createProgram() {
246
246
  .command("campaign-stop")
247
247
  .description("Stop a running campaign")
248
248
  .argument("<campaignId>", "Campaign ID to stop", parsePositiveInt)
249
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
249
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
250
250
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
251
251
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
252
252
  .option("--json", "Output as JSON")
@@ -258,7 +258,7 @@ export function createProgram() {
258
258
  .option("--name <name>", "New campaign name")
259
259
  .option("--description <text>", "New campaign description")
260
260
  .option("--clear-description", "Clear the campaign description")
261
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
261
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
262
262
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
263
263
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
264
264
  .option("--json", "Output as JSON")
@@ -273,7 +273,7 @@ export function createProgram() {
273
273
  .option("--cool-down <ms>", "Milliseconds between action executions", parsePositiveInt)
274
274
  .option("--max-results <n>", "Maximum results per iteration (-1 for unlimited)", parseMaxResults)
275
275
  .option("--action-settings <json>", "Action-specific settings as JSON")
276
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
276
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
277
277
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
278
278
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
279
279
  .option("--json", "Output as JSON")
@@ -283,7 +283,7 @@ export function createProgram() {
283
283
  .description("Remove an action from a campaign's action chain")
284
284
  .argument("<campaignId>", "Campaign ID", parsePositiveInt)
285
285
  .argument("<actionId>", "Action ID to remove", parsePositiveInt)
286
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
286
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
287
287
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
288
288
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
289
289
  .option("--json", "Output as JSON")
@@ -299,7 +299,7 @@ export function createProgram() {
299
299
  .option("--cool-down <ms>", "Milliseconds between action executions", parsePositiveInt)
300
300
  .option("--max-results <n>", "Maximum results per iteration (-1 for unlimited)", parseMaxResults)
301
301
  .option("--action-settings <json>", "Action-specific settings as JSON (merged with existing)")
302
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
302
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
303
303
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
304
304
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
305
305
  .option("--json", "Output as JSON")
@@ -309,7 +309,7 @@ export function createProgram() {
309
309
  .description("Reorder actions in a campaign's action chain")
310
310
  .argument("<campaignId>", "Campaign ID", parsePositiveInt)
311
311
  .requiredOption("--action-ids <ids>", "Comma-separated action IDs in desired order")
312
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
312
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
313
313
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
314
314
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
315
315
  .option("--json", "Output as JSON")
@@ -320,7 +320,7 @@ export function createProgram() {
320
320
  .argument("<campaignId>", "Campaign ID to import into", parsePositiveInt)
321
321
  .option("--urls <urls>", "Comma-separated LinkedIn profile URLs")
322
322
  .option("--urls-file <path>", "File containing LinkedIn profile URLs")
323
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
323
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
324
324
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
325
325
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
326
326
  .option("--json", "Output as JSON")
@@ -334,7 +334,7 @@ export function createProgram() {
334
334
  .option("--max-pages <n>", "Max pages to process", parsePositiveInt)
335
335
  .option("--page-size <n>", "Results per page", parsePositiveInt)
336
336
  .option("--source-type <type>", "Explicit source type (bypasses URL detection)")
337
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
337
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
338
338
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
339
339
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
340
340
  .option("--json", "Output as JSON")
@@ -345,7 +345,7 @@ export function createProgram() {
345
345
  .argument("<campaignId>", "Campaign ID to remove people from", parsePositiveInt)
346
346
  .option("--person-ids <ids>", "Comma-separated person IDs")
347
347
  .option("--person-ids-file <path>", "File containing person IDs")
348
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
348
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
349
349
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
350
350
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
351
351
  .option("--json", "Output as JSON")
@@ -359,7 +359,7 @@ export function createProgram() {
359
359
  .command("create-collection")
360
360
  .description("Create a new LinkedHelper collection (List)")
361
361
  .argument("<name>", "Name for the new collection")
362
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
362
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
363
363
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
364
364
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
365
365
  .option("--json", "Output as JSON")
@@ -368,7 +368,7 @@ export function createProgram() {
368
368
  .command("delete-collection")
369
369
  .description("Delete a LinkedHelper collection (List) and its people associations")
370
370
  .argument("<collectionId>", "Collection ID to delete", parsePositiveInt)
371
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
371
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
372
372
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
373
373
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
374
374
  .option("--json", "Output as JSON")
@@ -379,7 +379,7 @@ export function createProgram() {
379
379
  .argument("<collectionId>", "Collection ID", parsePositiveInt)
380
380
  .option("--person-ids <ids>", "Comma-separated person IDs")
381
381
  .option("--person-ids-file <path>", "File containing person IDs")
382
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
382
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
383
383
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
384
384
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
385
385
  .option("--json", "Output as JSON")
@@ -390,7 +390,7 @@ export function createProgram() {
390
390
  .argument("<collectionId>", "Collection ID", parsePositiveInt)
391
391
  .option("--person-ids <ids>", "Comma-separated person IDs")
392
392
  .option("--person-ids-file <path>", "File containing person IDs")
393
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
393
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
394
394
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
395
395
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
396
396
  .option("--json", "Output as JSON")
@@ -400,7 +400,7 @@ export function createProgram() {
400
400
  .description("Import people from a LinkedHelper collection (List) into a campaign")
401
401
  .argument("<collectionId>", "Collection ID to import from", parsePositiveInt)
402
402
  .argument("<campaignId>", "Campaign ID to import into", parsePositiveInt)
403
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
403
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
404
404
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
405
405
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
406
406
  .option("--json", "Output as JSON")
@@ -452,7 +452,8 @@ export function createProgram() {
452
452
  .command("scrape-messaging-history")
453
453
  .description("Scrape messaging history from LinkedIn into the local database")
454
454
  .option("--person-id <id>", "Person ID to scrape (repeatable, at least one required)", collectPositiveInt, [])
455
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
455
+ .option("--pause-others", "Pause all other campaigns during execution, then restore them")
456
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
456
457
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
457
458
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
458
459
  .option("--json", "Output as JSON")
@@ -463,7 +464,7 @@ export function createProgram() {
463
464
  .option("--person-id <id>", "Person ID to visit (provide this or --url)", parsePositiveInt)
464
465
  .option("--url <url>", "LinkedIn profile URL to visit (provide this or --person-id)")
465
466
  .option("--extract-current-organizations", "Extract current company info during profile visit")
466
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
467
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
467
468
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
468
469
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
469
470
  .option("--json", "Output as JSON")
@@ -471,8 +472,10 @@ export function createProgram() {
471
472
  program
472
473
  .command("check-replies")
473
474
  .description("Check for new message replies from LinkedIn")
475
+ .option("--person-id <id>", "Person ID to check (repeatable, at least one required)", collectPositiveInt, [])
474
476
  .option("--since <timestamp>", "Only show replies after this ISO timestamp")
475
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
477
+ .option("--pause-others", "Pause all other campaigns during execution, then restore them")
478
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
476
479
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
477
480
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
478
481
  .option("--json", "Output as JSON")
@@ -480,7 +483,7 @@ export function createProgram() {
480
483
  program
481
484
  .command("check-status")
482
485
  .description("Check LinkedHelper status")
483
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
486
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
484
487
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
485
488
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
486
489
  .option("--json", "Output as JSON")
@@ -488,7 +491,7 @@ export function createProgram() {
488
491
  program
489
492
  .command("get-errors")
490
493
  .description("Query current UI errors, dialogs, and blocking popups")
491
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
494
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
492
495
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
493
496
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
494
497
  .option("--json", "Output as JSON")
@@ -496,7 +499,7 @@ export function createProgram() {
496
499
  program
497
500
  .command("dismiss-errors")
498
501
  .description("Dismiss closable error popups in the instance UI")
499
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
502
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
500
503
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
501
504
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
502
505
  .option("--json", "Output as JSON")
@@ -504,7 +507,7 @@ export function createProgram() {
504
507
  program
505
508
  .command("get-action-budget")
506
509
  .description("Get daily action budget with limit types, thresholds, and usage")
507
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
510
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
508
511
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
509
512
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
510
513
  .option("--json", "Output as JSON")
@@ -512,7 +515,7 @@ export function createProgram() {
512
515
  program
513
516
  .command("get-throttle-status")
514
517
  .description("Check if LinkedIn is throttling the account")
515
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
518
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
516
519
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
517
520
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
518
521
  .option("--json", "Output as JSON")
@@ -522,7 +525,7 @@ export function createProgram() {
522
525
  .description("Post a comment on a LinkedIn post")
523
526
  .requiredOption("--url <url>", "LinkedIn post URL")
524
527
  .requiredOption("--text <text>", "Comment text to post")
525
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
528
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
526
529
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
527
530
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
528
531
  .option("--json", "Output as JSON")
@@ -531,9 +534,8 @@ export function createProgram() {
531
534
  .command("get-post")
532
535
  .description("Get detailed data for a single LinkedIn post with comment thread")
533
536
  .argument("<postUrl>", "LinkedIn post URL or URN")
534
- .option("--comment-start <n>", "Comment pagination offset (default: 0)", parseNonNegativeInt)
535
- .option("--comment-count <n>", "Number of comments per page (default: 10)", parsePositiveInt)
536
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
537
+ .option("--comment-count <n>", "Maximum number of comments to load (default: 100, 0 to skip)", parseNonNegativeInt)
538
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
537
539
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
538
540
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
539
541
  .option("--json", "Output as JSON")
@@ -542,7 +544,7 @@ export function createProgram() {
542
544
  .command("get-post-stats")
543
545
  .description("Get engagement statistics for a LinkedIn post")
544
546
  .argument("<postUrl>", "LinkedIn post URL or URN")
545
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
547
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
546
548
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
547
549
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
548
550
  .option("--json", "Output as JSON")
@@ -552,7 +554,7 @@ export function createProgram() {
552
554
  .description("Read the LinkedIn home feed with cursor-based pagination")
553
555
  .option("--count <n>", "Number of posts per page (default: 10)", parsePositiveInt)
554
556
  .option("--cursor <token>", "Cursor token from a previous call for the next page")
555
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
557
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
556
558
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
557
559
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
558
560
  .option("--json", "Output as JSON")
@@ -564,7 +566,7 @@ export function createProgram() {
564
566
  .addOption(new Option("--type <type>", "Reaction type (default: like)")
565
567
  .choices(["like", "celebrate", "support", "love", "insightful", "funny"])
566
568
  .default("like"))
567
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
569
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
568
570
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
569
571
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
570
572
  .option("--json", "Output as JSON")
@@ -573,9 +575,9 @@ export function createProgram() {
573
575
  .command("get-profile-activity")
574
576
  .description("Get recent posts/activity from a LinkedIn profile")
575
577
  .argument("<profile>", "LinkedIn profile public ID or URL")
576
- .option("--start <n>", "Pagination offset (default: 0)", parseNonNegativeInt)
577
- .option("--count <n>", "Number of posts per page (default: 20)", parsePositiveInt)
578
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
578
+ .option("--count <n>", "Number of posts per page (default: 10)", parsePositiveInt)
579
+ .option("--cursor <token>", "Cursor token from a previous call for the next page")
580
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
579
581
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
580
582
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
581
583
  .option("--json", "Output as JSON")
@@ -604,7 +606,7 @@ export function createProgram() {
604
606
  .argument("<entityType>", "Entity type: COMPANY, GEO, or SCHOOL")
605
607
  .argument("<query>", "Search query")
606
608
  .option("--limit <n>", "Max results to show", parsePositiveInt)
607
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
609
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
608
610
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
609
611
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
610
612
  .option("--json", "Output as JSON")
@@ -619,9 +621,9 @@ export function createProgram() {
619
621
  .command("search-posts")
620
622
  .description("Search LinkedIn for posts by keyword or hashtag")
621
623
  .argument("<query>", "Search query (keywords or hashtag)")
622
- .option("--start <n>", "Pagination offset (default: 0)", parseNonNegativeInt)
624
+ .option("--cursor <n>", "Index-based cursor from a previous search for the next page", parseNonNegativeInt)
623
625
  .option("--count <n>", "Results per page (default: 10)", parsePositiveInt)
624
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
626
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
625
627
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
626
628
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
627
629
  .option("--json", "Output as JSON")
@@ -637,7 +639,8 @@ export function createProgram() {
637
639
  .option("--reject-if-replied", "Skip if person already replied")
638
640
  .option("--reject-if-messaged", "Skip if already messaged")
639
641
  .option("--keep-campaign", "Archive the ephemeral campaign instead of deleting it")
640
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
642
+ .option("--timeout <ms>", "Maximum time to wait for action completion in milliseconds (default: 5 min)", parsePositiveInt)
643
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
641
644
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
642
645
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
643
646
  .option("--json", "Output as JSON")
@@ -650,7 +653,8 @@ export function createProgram() {
650
653
  .option("--message-template <json>", "Invitation message template as JSON (empty for no message)")
651
654
  .option("--save-as-lead-sn", "Save as lead in Sales Navigator")
652
655
  .option("--keep-campaign", "Archive the ephemeral campaign instead of deleting it")
653
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
656
+ .option("--timeout <ms>", "Maximum time to wait for action completion in milliseconds (default: 5 min)", parsePositiveInt)
657
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
654
658
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
655
659
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
656
660
  .option("--json", "Output as JSON")
@@ -665,7 +669,8 @@ export function createProgram() {
665
669
  .option("--reject-if-replied", "Skip if person already replied")
666
670
  .option("--proceed-on-out-of-credits", "Continue even when InMail credits are exhausted")
667
671
  .option("--keep-campaign", "Archive the ephemeral campaign instead of deleting it")
668
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
672
+ .option("--timeout <ms>", "Maximum time to wait for action completion in milliseconds (default: 5 min)", parsePositiveInt)
673
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
669
674
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
670
675
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
671
676
  .option("--json", "Output as JSON")
@@ -680,7 +685,8 @@ export function createProgram() {
680
685
  .default("follow"))
681
686
  .option("--skip-if-unfollowable", "Skip if person cannot be unfollowed")
682
687
  .option("--keep-campaign", "Archive the ephemeral campaign instead of deleting it")
683
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
688
+ .option("--timeout <ms>", "Maximum time to wait for action completion in milliseconds (default: 5 min)", parsePositiveInt)
689
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
684
690
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
685
691
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
686
692
  .option("--json", "Output as JSON")
@@ -694,7 +700,8 @@ export function createProgram() {
694
700
  .option("--limit <n>", "Max number of skills to endorse", parsePositiveInt)
695
701
  .option("--skip-if-not-endorsable", "Skip if person has no endorsable skills")
696
702
  .option("--keep-campaign", "Archive the ephemeral campaign instead of deleting it")
697
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
703
+ .option("--timeout <ms>", "Maximum time to wait for action completion in milliseconds (default: 5 min)", parsePositiveInt)
704
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
698
705
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
699
706
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
700
707
  .option("--json", "Output as JSON")
@@ -717,7 +724,8 @@ export function createProgram() {
717
724
  .option("--message-template <json>", "Comment text template as JSON (required with --should-add-comment)")
718
725
  .option("--skip-if-not-liked", "Skip if nothing was liked")
719
726
  .option("--keep-campaign", "Archive the ephemeral campaign instead of deleting it")
720
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
727
+ .option("--timeout <ms>", "Maximum time to wait for action completion in milliseconds (default: 5 min)", parsePositiveInt)
728
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
721
729
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
722
730
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
723
731
  .option("--json", "Output as JSON")
@@ -728,7 +736,8 @@ export function createProgram() {
728
736
  .option("--person-id <id>", "Person ID (provide this or --url)", parsePositiveInt)
729
737
  .option("--url <url>", "LinkedIn profile URL (provide this or --person-id)")
730
738
  .option("--keep-campaign", "Archive the ephemeral campaign instead of deleting it")
731
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
739
+ .option("--timeout <ms>", "Maximum time to wait for action completion in milliseconds (default: 5 min)", parsePositiveInt)
740
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
732
741
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
733
742
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
734
743
  .option("--json", "Output as JSON")
@@ -744,7 +753,8 @@ export function createProgram() {
744
753
  .option("--enrich-socials", "Enrich social profiles")
745
754
  .option("--enrich-companies", "Enrich company data")
746
755
  .option("--keep-campaign", "Archive the ephemeral campaign instead of deleting it")
747
- .option("--cdp-port <port>", "CDP debugging port", parsePositiveInt)
756
+ .option("--timeout <ms>", "Maximum time to wait for action completion in milliseconds (default: 5 min)", parsePositiveInt)
757
+ .option("--cdp-port <port>", "CDP debugging port (auto-discovered when omitted)", parsePositiveInt)
748
758
  .option("--cdp-host <host>", "CDP host (default: 127.0.0.1)")
749
759
  .option("--allow-remote", "SECURITY: allow non-loopback CDP connections (enables remote code execution on target)")
750
760
  .option("--json", "Output as JSON")