Skip to content

The open alternative to Salesforce, designed for AI.

Bump the call recorder app to Twenty 2.49 (#28336)

nitin1f73e256be1c
diff --git a/packages/twenty-apps/public/call-recorder/package.json b/packages/twenty-apps/public/call-recorder/package.json
index 7cb93cf11e1..c05e66f4f4a 100644
--- a/packages/twenty-apps/public/call-recorder/package.json
+++ b/packages/twenty-apps/public/call-recorder/package.json
@@ -1,12 +1,12 @@
{
"name": "@twentyhq/call-recorder",
- "version": "1.18.0",
+ "version": "1.19.0",
"license": "MIT",
"engines": {
"node": "^24.5.0",
"npm": "please-use-yarn",
"yarn": ">=4.0.2",
- "twenty": ">=2.43.0"
+ "twenty": ">=2.49.0"
},
"keywords": [
"twenty-app"
@@ -35,8 +35,8 @@
"oxlint": "^0.16.0",
"react": "^19.0.0",
"react-dom": "^19.0.0",
- "twenty-client-sdk": "2.43.0",
- "twenty-sdk": "2.43.0",
+ "twenty-client-sdk": "2.49.0",
+ "twenty-sdk": "2.49.0",
"twenty-ui": "^1.0.0-alpha.1",
"typescript": "^5.9.3",
"use-debounce": "^10.0.0",
diff --git a/packages/twenty-apps/public/call-recorder/src/__tests__/call-recorder-lifecycle.integration-test.ts b/packages/twenty-apps/public/call-recorder/src/__tests__/call-recorder-lifecycle.integration-test.ts
index c913d49a71f..f78338895a6 100644
--- a/packages/twenty-apps/public/call-recorder/src/__tests__/call-recorder-lifecycle.integration-test.ts
+++ b/packages/twenty-apps/public/call-recorder/src/__tests__/call-recorder-lifecycle.integration-test.ts
@@ -854,6 +854,29 @@ const buildTranscriptDoneWebhook = ({
},
});
+const TRIGGER_RUN_DRAIN_TIMEOUT_MS = 150_000;
+const REAL_QUEUE_TIMEOUT_MS = TRIGGER_RUN_DRAIN_TIMEOUT_MS + 60_000;
+
+// Earlier tests leave database-event runs queued ahead of app-enqueued jobs. Importing a
+// missing recording is a no-op app job that only starts once none of them is waiting,
+// so its completion means they have drained.
+const waitForQueuedTriggerRunsToDrain = async () => {
+ const callRecordingId = randomUUID();
+ const jobId = `call-recorder-${callRecordingId}-transcript`;
+
+ await enqueueCallRecordingArtifactsImport({
+ callRecordingIds: [callRecordingId],
+ scopes: ['transcript'],
+ });
+
+ await expect
+ .poll(() => getJobs([jobId]), {
+ timeout: TRIGGER_RUN_DRAIN_TIMEOUT_MS,
+ interval: 1_000,
+ })
+ .toMatchObject([{ jobId, state: 'COMPLETED' }]);
+};
+
describe('call recorder app lifecycle (integration)', () => {
// Built before the fetch interceptor is installed so the shared client's
// Twenty API traffic always uses the real fetch.
@@ -1955,7 +1978,7 @@ describe('call recorder app lifecycle (integration)', () => {
});
});
- describe('credit gate', () => {
+ describe('credit gate', { timeout: REAL_QUEUE_TIMEOUT_MS }, () => {
it('cancels the scheduled bot before it joins when the workspace cannot spend credits', async () => {
const { callRecordingId, botId } =
await scheduleRecordingThroughCalendarReconciliation();
@@ -2019,6 +2042,7 @@ describe('call recorder app lifecycle (integration)', () => {
// The worker runs this job, so the enqueue and the job reads must reach the real server.
vi.unstubAllGlobals();
vi.stubEnv('TWENTY_APP_ACCESS_TOKEN', applicationAccessToken);
+ await waitForQueuedTriggerRunsToDrain();
const joinAt = new Date(
Date.now() + PRE_JOIN_CREDIT_CHECK_LEAD_MINUTES * 60 * 1000,
@@ -2492,10 +2516,11 @@ describe('call recorder app lifecycle (integration)', () => {
});
describe('artifact import queue', () => {
- beforeEach(() => {
+ beforeEach(async () => {
vi.unstubAllGlobals();
vi.stubEnv('TWENTY_APP_ACCESS_TOKEN', applicationAccessToken);
- });
+ await waitForQueuedTriggerRunsToDrain();
+ }, REAL_QUEUE_TIMEOUT_MS);
const waitForCompletedJob = async (jobId: string) => {
await expect
@@ -3571,10 +3596,11 @@ describe('call recorder app lifecycle (integration)', () => {
});
describe('with real queue transport', () => {
- beforeEach(() => {
+ beforeEach(async () => {
vi.unstubAllGlobals();
vi.stubEnv('TWENTY_APP_ACCESS_TOKEN', applicationAccessToken);
- });
+ await waitForQueuedTriggerRunsToDrain();
+ }, REAL_QUEUE_TIMEOUT_MS);
it('leaves a request canceled while its follow-up waited alone', async () => {
const calendarEventId = await createCalendarEvent();
diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/call-recordings.front-component.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/call-recordings.front-component.tsx
index 9539a7c17b3..ec3a28da8d7 100644
--- a/packages/twenty-apps/public/call-recorder/src/front-components/call-recordings.front-component.tsx
+++ b/packages/twenty-apps/public/call-recorder/src/front-components/call-recordings.front-component.tsx
@@ -1,4 +1,8 @@
-import { defineFrontComponent } from 'twenty-sdk/define';
+import {
+ defineFrontComponent,
+ PageLayoutType,
+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS,
+} from 'twenty-sdk/define';
import { CALL_RECORDINGS_FRONT_COMPONENT_UNIVERSAL_IDENTIFIER } from 'src/constants/universal-identifiers';
import { CallRecordingsWidget } from 'src/front-components/components/CallRecordingsWidget';
@@ -9,4 +13,12 @@ export default defineFrontComponent({
description:
'Lists the most recent call recordings of the meetings linked to a person, company or opportunity.',
component: CallRecordingsWidget,
+ widgetAvailability: {
+ pageLayoutType: PageLayoutType.RECORD_PAGE,
+ objectUniversalIdentifiers: [
+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.person.universalIdentifier,
+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.company.universalIdentifier,
+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.opportunity.universalIdentifier,
+ ],
+ },
});
diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/components/CallParticipantsWidget.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/components/CallParticipantsWidget.tsx
index 7cdf913ecf5..631c3b43d9c 100644
--- a/packages/twenty-apps/public/call-recorder/src/front-components/components/CallParticipantsWidget.tsx
+++ b/packages/twenty-apps/public/call-recorder/src/front-components/components/CallParticipantsWidget.tsx
@@ -54,12 +54,7 @@ const CallParticipantList = ({ callRecordingId }: CallParticipantListProps) => {
});
if (items.length === 0) {
- return (
- <WidgetEmptyState
- title="No Participants"
- description="No attendees of this call match a person or member of your workspace."
- />
- );
+ return null;
}
return (
diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/components/CallRecordingsWidget.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/components/CallRecordingsWidget.tsx
index 508923d8742..7db371cd7c7 100644
--- a/packages/twenty-apps/public/call-recorder/src/front-components/components/CallRecordingsWidget.tsx
+++ b/packages/twenty-apps/public/call-recorder/src/front-components/components/CallRecordingsWidget.tsx
@@ -59,12 +59,7 @@ const CallRecordingList = ({
);
case 'loaded':
if (callRecordingsState.callRecordings.length === 0) {
- return (
- <WidgetEmptyState
- title="No Call Recordings"
- description="No calls with this record have been recorded yet."
- />
- );
+ return null;
}
return (
diff --git a/packages/twenty-apps/public/call-recorder/src/logic-functions/domain/__tests__/parse-call-recording-summary-agent-response.test.ts b/packages/twenty-apps/public/call-recorder/src/logic-functions/domain/__tests__/parse-call-recording-summary-agent-response.test.ts
index e8b30cba13d..837fd70b7cd 100644
--- a/packages/twenty-apps/public/call-recorder/src/logic-functions/domain/__tests__/parse-call-recording-summary-agent-response.test.ts
+++ b/packages/twenty-apps/public/call-recorder/src/logic-functions/domain/__tests__/parse-call-recording-summary-agent-response.test.ts
@@ -6,6 +6,8 @@ describe('parseCallRecordingSummaryAgentResponse', () => {
it('returns the trimmed response markdown on success', () => {
expect(
parseCallRecordingSummaryAgentResponse({
+ threadId: 'thread-id',
+ status: 'COMPLETED',
success: true,
error: null,
result: { response: ' ## Overview\nGreat call. ' },
@@ -16,6 +18,8 @@ describe('parseCallRecordingSummaryAgentResponse', () => {
it('returns undefined when the run failed', () => {
expect(
parseCallRecordingSummaryAgentResponse({
+ threadId: 'thread-id',
+ status: 'FAILED',
success: false,
error: 'no more available credits',
result: null,
@@ -26,6 +30,8 @@ describe('parseCallRecordingSummaryAgentResponse', () => {
it('returns undefined when the response is empty or missing', () => {
expect(
parseCallRecordingSummaryAgentResponse({
+ threadId: 'thread-id',
+ status: 'COMPLETED',
success: true,
error: null,
result: { response: ' ' },
@@ -33,6 +39,8 @@ describe('parseCallRecordingSummaryAgentResponse', () => {
).toBeUndefined();
expect(
parseCallRecordingSummaryAgentResponse({
+ threadId: 'thread-id',
+ status: 'COMPLETED',
success: true,
error: null,
result: {},
@@ -43,6 +51,8 @@ describe('parseCallRecordingSummaryAgentResponse', () => {
it('extracts a grounded reason when the transcript cannot be summarized', () => {
expect(
parseCallRecordingSummaryAgentResponse({
+ threadId: 'thread-id',
+ status: 'COMPLETED',
success: true,
error: null,
result: {
@@ -59,6 +69,8 @@ describe('parseCallRecordingSummaryAgentResponse', () => {
it('rejects an unavailable marker without a reason', () => {
expect(
parseCallRecordingSummaryAgentResponse({
+ threadId: 'thread-id',
+ status: 'COMPLETED',
success: true,
error: null,
result: { response: 'SUMMARY_UNAVAILABLE:' },
diff --git a/packages/twenty-apps/public/call-recorder/yarn.lock b/packages/twenty-apps/public/call-recorder/yarn.lock
index d8b28c606ce..2c03ca2841e 100644
--- a/packages/twenty-apps/public/call-recorder/yarn.lock
+++ b/packages/twenty-apps/public/call-recorder/yarn.lock
@@ -1401,8 +1401,8 @@ __metadata:
react: "npm:^19.0.0"
react-dom: "npm:^19.0.0"
sharp: "npm:^0.35.5"
- twenty-client-sdk: "npm:2.43.0"
- twenty-sdk: "npm:2.43.0"
+ twenty-client-sdk: "npm:2.49.0"
+ twenty-sdk: "npm:2.49.0"
twenty-ui: "npm:^1.0.0-alpha.1"
typescript: "npm:^5.9.3"
use-debounce: "npm:^10.0.0"
@@ -3009,10 +3009,15 @@ __metadata:
languageName: node
linkType: hard
-"preact@npm:^10.28.3":
- version: 10.29.2
- resolution: "preact@npm:10.29.2"
- checksum: 10c0/2ee161274e475804524608d42bba8c79920636b322293248796a9e5bf4c3332336f8c0eca1b1566ed09cdee95e408eb20b5b7613d95820ea6b6eb8fc090ef60a
+"preact@npm:^11.0.0":
+ version: 11.0.1
+ resolution: "preact@npm:11.0.1"
+ peerDependencies:
+ preact-render-to-string: ">=6.7.0"
+ peerDependenciesMeta:
+ preact-render-to-string:
+ optional: true
+ checksum: 10c0/b1d0db9f9b9ef6468004104e0f22ccd4e0b9e21ed06d3918738b4db9c09d82a300af20eddc618875ff14e4d37191e0cc0785cf0796cbc1e6d29fca4d3ffdb4fd
languageName: node
linkType: hard
@@ -3296,7 +3301,7 @@ __metadata:
languageName: node
linkType: hard
-"sharp@npm:^0.35.3, sharp@npm:^0.35.5":
+"sharp@npm:^0.35.5":
version: 0.35.5
resolution: "sharp@npm:0.35.5"
dependencies:
@@ -3620,22 +3625,22 @@ __metadata:
languageName: node
linkType: hard
-"twenty-client-sdk@npm:2.43.0":
- version: 2.43.0
- resolution: "twenty-client-sdk@npm:2.43.0"
+"twenty-client-sdk@npm:2.49.0":
+ version: 2.49.0
+ resolution: "twenty-client-sdk@npm:2.49.0"
dependencies:
"@genql/runtime": "npm:^2.10.0"
esbuild: "npm:^0.28.1"
graphql: "npm:^16.8.1"
lodash: "npm:^4.17.21"
prettier: "npm:^3.8.3"
- checksum: 10c0/3b304379688b165c53e9b06715f6de024b68ce49aff055d6135ad74c8799f5174ca5e9bcea20156323f856af2c6d728160feaf337e8b68328f7d1b721e3d1f45
+ checksum: 10c0/0fea441f17410d281e16d5c5e48aaa6698b8ffeed2943843c8fc99fee73a66b76ebe01496bbbaccd2f81b48ea55b73796bab64f92a8a42251f05e4447c74586e
languageName: node
linkType: hard
-"twenty-sdk@npm:2.43.0":
- version: 2.43.0
- resolution: "twenty-sdk@npm:2.43.0"
+"twenty-sdk@npm:2.49.0":
+ version: 2.49.0
+ resolution: "twenty-sdk@npm:2.49.0"
dependencies:
"@sniptt/guards": "npm:^0.2.0"
axios: "npm:^1.16.0"
@@ -3648,18 +3653,18 @@ __metadata:
ink: "npm:^6.8.0"
inquirer: "npm:^14.0.0"
jsonc-parser: "npm:^3.2.0"
- preact: "npm:^10.28.3"
+ preact: "npm:^11.0.0"
react: "npm:^19.2.0"
react-dom: "npm:^19.2.0"
semver: "npm:7.6.3"
- sharp: "npm:^0.35.3"
+ sharp: "npm:^0.35.5"
tinyglobby: "npm:^0.2.15"
- twenty-client-sdk: "npm:2.43.0"
+ twenty-client-sdk: "npm:2.49.0"
typescript: "npm:^5.9.3"
uuid: "npm:^13.0.2"
bin:
twenty: dist/cli.cjs
- checksum: 10c0/63723aaf55d750249a348e5495dc126106a18c12c237103bcae38cf92d9dd505c457ad5bb6ea88159aebc8b5295c4a21e4beaa687181080d3e3cec64296d75d3
+ checksum: 10c0/d7e2bb22754da90921951248bd0b1d42ac525b8860f099a969efe06ae10354bb1d6f41f3b8d4ea1ad114f5cc2a4e99a520055c6b12782844d53d6801094d6892
languageName: node
linkType: hard