From a33ad367435c1385171ea35f379294b4f1da1781 Mon Sep 17 00:00:00 2001 From: Ofek Simhi Date: Wed, 28 Jan 2026 13:57:51 +0200 Subject: [PATCH 01/10] add PR template --- .github/pull_request_template.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/pull_request_template.md diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 00000000..3fddd5f4 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,16 @@ +### Pull Request Type + +๐Ÿ”ฎ Feature +๐Ÿ› BugFix +โš’๏ธ Refactor +๐Ÿงน Chore +๐Ÿ”ฅ HotFix +๐Ÿš€ Release + + +### Description +- + +### Reference Links +- [Asana]() +- [DataDog]() From 77b9a48dd4b8c4f0fd8527fa96c2a448f70a83ed Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 28 Jan 2026 14:42:44 +0000 Subject: [PATCH 02/10] chore: sync version 1.1.42 from prod [skip ci] --- package.json | 130 +++++++++++++++++++++++++-------------------------- 1 file changed, 65 insertions(+), 65 deletions(-) diff --git a/package.json b/package.json index 48065548..486b3528 100644 --- a/package.json +++ b/package.json @@ -1,67 +1,67 @@ { - "name": "@d-id/client-sdk", - "private": false, - "version": "1.1.37", - "type": "module", - "description": "d-id client sdk", - "repository": { - "type": "git", - "url": "https://github.com/de-id/agents-sdk" - }, - "keywords": [ - "d-id", - "sdk", - "client-sdk" - ], - "license": "MIT", - "author": "d-id", - "files": [ - "dist/*" - ], - "main": "./dist/index.umd.cjs", - "module": "./dist/index.js", - "types": "./dist/src/index.d.ts", - "scripts": { - "dev": "vite", - "build": "node ./infra/build.js -m production", - "build:dev": "node ./infra/build.js -m development", - "dev:prod": "export NODE_ENV=production && vite --mode production", - "deploy:prod": "node ./infra/deploy.js --version beta", - "preview": "vite preview", - "test-build": "node .infra/build.js -m development", - "build:docs": "typedoc", - "test": "jest", - "test:watch": "jest --watch", - "test:ci": "jest --watchAll=false --passWithNoTests --verbose=false", - "type-check": "tsc --noEmit", - "lint": "prettier --check \"src/**/*.{ts,tsx,js,jsx}\"", - "lint:fix": "prettier --write \"src/**/*.{ts,tsx,js,jsx}\"", - "ci:test": "yarn type-check && yarn test:ci" - }, - "dependencies": { - "livekit-client": "^2.0.0" - }, - "devDependencies": { - "@preact/preset-vite": "^2.8.1", - "@trivago/prettier-plugin-sort-imports": "^4.3.0", - "@types/jest": "^30.0.0", - "@types/node": "^22.15.0", - "@types/rosie": "^0.0.45", - "commander": "^11.1.0", - "glob": "^10.3.10", - "jest": "^29.7.0", - "jest-environment-jsdom": "^29.7.0", - "preact": "^10.19.6", - "prettier": "^3.2.5", - "prettier-plugin-organize-imports": "^3.2.4", - "rosie": "^2.1.1", - "string-length": "^4.0.2", - "string-width": "^4.2.3", - "strip-ansi": "^6.0.1", - "ts-jest": "^29.4.1", - "typedoc": "^0.25.7", - "typescript": "^5.3.3", - "vite": "^5.1.4", - "vite-plugin-dts": "^3.7.3" - } + "name": "@d-id/client-sdk", + "private": false, + "version": "1.1.42", + "type": "module", + "description": "d-id client sdk", + "repository": { + "type": "git", + "url": "https://github.com/de-id/agents-sdk" + }, + "keywords": [ + "d-id", + "sdk", + "client-sdk" + ], + "license": "MIT", + "author": "d-id", + "files": [ + "dist/*" + ], + "main": "./dist/index.umd.cjs", + "module": "./dist/index.js", + "types": "./dist/src/index.d.ts", + "scripts": { + "dev": "vite", + "build": "node ./infra/build.js -m production", + "build:dev": "node ./infra/build.js -m development", + "dev:prod": "export NODE_ENV=production && vite --mode production", + "deploy:prod": "node ./infra/deploy.js --version beta", + "preview": "vite preview", + "test-build": "node .infra/build.js -m development", + "build:docs": "typedoc", + "test": "jest", + "test:watch": "jest --watch", + "test:ci": "jest --watchAll=false --passWithNoTests --verbose=false", + "type-check": "tsc --noEmit", + "lint": "prettier --check \"src/**/*.{ts,tsx,js,jsx}\"", + "lint:fix": "prettier --write \"src/**/*.{ts,tsx,js,jsx}\"", + "ci:test": "yarn type-check && yarn test:ci" + }, + "dependencies": { + "livekit-client": "^2.0.0" + }, + "devDependencies": { + "@preact/preset-vite": "^2.8.1", + "@trivago/prettier-plugin-sort-imports": "^4.3.0", + "@types/jest": "^30.0.0", + "@types/node": "^22.15.0", + "@types/rosie": "^0.0.45", + "commander": "^11.1.0", + "glob": "^10.3.10", + "jest": "^29.7.0", + "jest-environment-jsdom": "^29.7.0", + "preact": "^10.19.6", + "prettier": "^3.2.5", + "prettier-plugin-organize-imports": "^3.2.4", + "rosie": "^2.1.1", + "string-length": "^4.0.2", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1", + "ts-jest": "^29.4.1", + "typedoc": "^0.25.7", + "typescript": "^5.3.3", + "vite": "^5.1.4", + "vite-plugin-dts": "^3.7.3" + } } From 6490502b68807cac0643b6a83ff733dbc64bbdcc Mon Sep 17 00:00:00 2001 From: sharon-d-id Date: Wed, 28 Jan 2026 17:02:53 +0200 Subject: [PATCH 03/10] Add both repositories for checkout permissions --- .github/workflows/publish-on-merge.yml | 4 ++++ package.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-merge.yml b/.github/workflows/publish-on-merge.yml index 684bde63..2eb4eeb1 100644 --- a/.github/workflows/publish-on-merge.yml +++ b/.github/workflows/publish-on-merge.yml @@ -24,6 +24,10 @@ jobs: with: app-id: ${{ secrets.AGENTS_SDK_AUTOMATIONS_APP_ID }} private-key: ${{ secrets.AGENTS_SDK_AUTOMATIONS_PRIVATE_KEY }} + owner: de-id + repositories: | + agents-sdk + agents-ui - name: Checkout agents-sdk repository uses: actions/checkout@v6 diff --git a/package.json b/package.json index 486b3528..49a4c072 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@d-id/client-sdk", "private": false, - "version": "1.1.42", + "version": "1.1.43", "type": "module", "description": "d-id client sdk", "repository": { From f5653d9a12e88e6bebf2bc2422cc149092f3bbfa Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 28 Jan 2026 15:07:49 +0000 Subject: [PATCH 04/10] chore: sync version 1.1.44 from prod [skip ci] --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 49a4c072..2092a55b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@d-id/client-sdk", "private": false, - "version": "1.1.43", + "version": "1.1.44", "type": "module", "description": "d-id client sdk", "repository": { From 94e531e209d3e3d8fca2934bededdc43356ab5a7 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 28 Jan 2026 15:11:32 +0000 Subject: [PATCH 05/10] chore: sync version 1.1.45 from prod [skip ci] --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2092a55b..794a500d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@d-id/client-sdk", "private": false, - "version": "1.1.44", + "version": "1.1.45", "type": "module", "description": "d-id client sdk", "repository": { From 144fb301d801a3c61a0176f642497de63725ab98 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 28 Jan 2026 15:15:15 +0000 Subject: [PATCH 06/10] chore: sync version 1.1.46 from prod [skip ci] --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 794a500d..396df878 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@d-id/client-sdk", "private": false, - "version": "1.1.45", + "version": "1.1.46", "type": "module", "description": "d-id client sdk", "repository": { From 92e261f5255bbb0c5ba7ee704cef8ad1cb508411 Mon Sep 17 00:00:00 2001 From: sharon-d-id Date: Wed, 28 Jan 2026 17:17:03 +0200 Subject: [PATCH 07/10] Implement force push for version bump in prod Added force push to prod branch for version bump. --- .github/workflows/publish-on-merge.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-on-merge.yml b/.github/workflows/publish-on-merge.yml index 2eb4eeb1..81236d87 100644 --- a/.github/workflows/publish-on-merge.yml +++ b/.github/workflows/publish-on-merge.yml @@ -154,7 +154,10 @@ jobs: logger -l info -m "Committing version bump without triggering the CICD pipeline" git commit -m "chore: bump version to ${{ steps.version.outputs.version }} [skip ci]" || logger -l info -m "No changes to commit" - git push origin prod + + logger -l info -m "Force push into prod branch" + git push origin prod --force \ + || logger -l error -m "Failed to update package.json file in prod branch" - name: Sync version back to main (prod only) if: github.ref_name == 'prod' && github.event.inputs.dry_run != 'true' From ab437651a6c7d0662b2560b36966b74a3027071c Mon Sep 17 00:00:00 2001 From: Ofek Simhi <158498125+osimhi213@users.noreply.github.com> Date: Wed, 28 Jan 2026 18:37:24 +0200 Subject: [PATCH 08/10] handle stream failed events (#302) --- .../streaming-manager/livekit-manager.ts | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/services/streaming-manager/livekit-manager.ts b/src/services/streaming-manager/livekit-manager.ts index 50f585f7..ab6a28fd 100644 --- a/src/services/streaming-manager/livekit-manager.ts +++ b/src/services/streaming-manager/livekit-manager.ts @@ -293,11 +293,11 @@ export async function createLiveKitStreamingManager Date: Thu, 29 Jan 2026 11:20:36 +0200 Subject: [PATCH 09/10] move Track imports (#310) --- src/services/streaming-manager/livekit-manager.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/services/streaming-manager/livekit-manager.ts b/src/services/streaming-manager/livekit-manager.ts index ab6a28fd..b0f178da 100644 --- a/src/services/streaming-manager/livekit-manager.ts +++ b/src/services/streaming-manager/livekit-manager.ts @@ -90,7 +90,7 @@ export async function createLiveKitStreamingManager & { reconnect(): Promise }> { const log = createStreamingLogger(options.debug || false, 'LiveKitStreamingManager'); - const { Room, RoomEvent, ConnectionState: LiveKitConnectionState } = await importLiveKit(); + const { Room, RoomEvent, ConnectionState: LiveKitConnectionState, Track } = await importLiveKit(); const { callbacks, auth, baseURL, analytics, microphoneStream } = options; let room: Room | null = null; @@ -372,10 +372,9 @@ export async function createLiveKitStreamingManager { + function findPublishedMicrophoneTrack(audioTrack: MediaStreamTrack): LocalTrackPublication | null { if (!room) return null; - const { Track } = await importLiveKit(); const publishedTracks = room.localParticipant.audioTrackPublications; if (publishedTracks) { @@ -418,9 +417,8 @@ export async function createLiveKitStreamingManager Date: Thu, 29 Jan 2026 11:29:28 +0200 Subject: [PATCH 10/10] chore: commit yarn.lock when on pr in agents-ui --- .github/workflows/publish-on-merge.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish-on-merge.yml b/.github/workflows/publish-on-merge.yml index 81236d87..5a1db44d 100644 --- a/.github/workflows/publish-on-merge.yml +++ b/.github/workflows/publish-on-merge.yml @@ -6,7 +6,7 @@ on: workflow_dispatch: inputs: dry_run: - description: 'Run in dry-run mode (no actual publishing)' + description: "Run in dry-run mode (no actual publishing)" required: false default: false type: boolean @@ -44,8 +44,8 @@ jobs: uses: actions/setup-node@v4 with: node-version: 20 - registry-url: 'https://registry.npmjs.org' - cache: 'yarn' + registry-url: "https://registry.npmjs.org" + cache: "yarn" - name: Install dependencies run: | @@ -236,6 +236,9 @@ jobs: exit 0 fi + logger -l info -m "Installing dependencies to update yarn.lock" + yarn install + logger -l info -m "Creating new branch" git checkout -b "chore/bump-sdk-version-${{ steps.version.outputs.version }}" @@ -243,8 +246,8 @@ jobs: git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" - logger -l info -m "Adding and committing package.json" - git add package.json + logger -l info -m "Adding and committing package.json and yarn.lock" + git add package.json yarn.lock git commit -m "chore: bump @d-id/client-sdk to v${{ steps.version.outputs.version }}" logger -l info -m "Publishing branch to origin"