Skip to content

feat(crm): Bitrix24 activities and tasks on deals and leads (cli-core 0.647.0) - #99

Merged
leemour merged 3 commits into
mainfrom
feat/activities
Nov 12, 2026
Merged

leemour merged 3 commits into
mainfrom
feat/activities

Conversation

@leemour

@leemour leemour commented Nov 12, 2026

Copy link
Copy Markdown
Member

Task

Part 2 of the b24 CRM tasks plan (cli-private plans/2026-11-11-b24-crm-tasks): the calls, e-mails, meetings, to-dos and Bitrix24 tasks on a deal, next to the deal.

Why

The owner wants them visible in deals show and readable by an agent, without opening the portal.

What

  • src/crm/activities.ts: crm.activity.list on deals and leads (@OWNER_TYPE_ID 1, 2; never COMMUNICATIONS, which would bypass the 100-a-day limit on clients' contacts) and tasks.task.list, keeping tasks bound to a deal or lead by UF_CRM_TASK. Paged by id; a sign-in without the task scope reads the activities and reports the tasks as a gap.
  • Wired as cli-core's CrmSource.activities (cli-core #2894, 0.647.0). Owner-only setting crm.bitrix24:<portal>.activities on, off by default; 90 days on the first sync.
  • Docs: usage section, the task scope in both sign-in paths.
  • Not in it: timeline comments (one request per deal), search over activities.

Testing

  • src/crm/activities.test.ts on a fake portal; full suite 469 passed against 0.647.0; pnpm generate, pnpm docs:check.
  • Not run against a live portal yet: Bitrix24's time filter and the task scope are from the docs. A release needs a new live check anyway (src changed).

🤖 Generated with Claude Code

leemour and others added 2 commits November 12, 2026 14:06
crm.activity.list on deals and leads (never COMMUNICATIONS) and tasks.task.list bound by
UF_CRM_TASK, paged by id, for cli-core's CrmSource.activities. A sign-in without the task
scope reads the activities and reports the tasks as a gap. Docs: the activities setting
and the task scope.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@socket-security

socket-security Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​wirecat/​cli-core@​0.645.0 ⏵ 0.647.098 +1100100 +19670

View full report

Their npm releases word doctor reports as an older cli-core did; the audit across
releases blocked on that wording alone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@leemour
leemour merged commit 34b6b0b into main Nov 12, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant