From 9cbf653e7004a83df85afde30940fe139b4f67ba Mon Sep 17 00:00:00 2001 From: SandipBajracharya Date: Tue, 10 Feb 2026 12:18:02 +0545 Subject: [PATCH] Revert "feat(OUT-3058): add latest @assembly/node-sdk" This reverts commit 0ea3240442e232564133ef5d780732d891c9167f. --- package.json | 4 ++-- src/utils/copilotAPI.ts | 8 ++++---- yarn.lock | 22 +++++++++++----------- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/package.json b/package.json index be853676..0247e09e 100644 --- a/package.json +++ b/package.json @@ -19,12 +19,12 @@ "cmd:rename-qb-accounts": "tsx src/cmd/renameQbAccount/index.ts" }, "dependencies": { - "@assembly-js/node-sdk": "^3.19.1", "@sentry/nextjs": "^9.13.0", "@supabase/supabase-js": "^2.49.4", "@trigger.dev/sdk": "4.3.0", "bottleneck": "^2.19.5", "copilot-design-system": "^2.0.10", + "copilot-node-sdk": "^3.11.1", "dayjs": "^1.11.13", "deep-equal": "^2.2.3", "drizzle-orm": "^0.42.0", @@ -88,4 +88,4 @@ "yarn prettier:fix" ] } -} \ No newline at end of file +} diff --git a/src/utils/copilotAPI.ts b/src/utils/copilotAPI.ts index 215e54da..389dfeb1 100644 --- a/src/utils/copilotAPI.ts +++ b/src/utils/copilotAPI.ts @@ -44,8 +44,8 @@ import { WorkspaceResponseSchema, } from '@/type/common' import Bottleneck from 'bottleneck' -import type { AssemblyAPI as SDK } from '@assembly-js/node-sdk' -import { assemblyApi } from '@assembly-js/node-sdk' +import type { CopilotAPI as SDK } from 'copilot-node-sdk' +import { copilotApi } from 'copilot-node-sdk' import { z } from 'zod' import { API_DOMAIN } from '@/constant/domains' import httpStatus from 'http-status' @@ -55,7 +55,7 @@ export class CopilotAPI { copilot: SDK constructor(private token: string) { - this.copilot = assemblyApi({ apiKey, token }) + this.copilot = copilotApi({ apiKey, token }) } private async manualFetch( @@ -270,7 +270,7 @@ export class CopilotAPI { async _getCustomFields(): Promise { console.info('CopilotAPI#getCustomFields | token =', this.token) return CustomFieldResponseSchema.parse( - await this.copilot.listCustomFields({}), + await this.copilot.listCustomFields(), ) } diff --git a/yarn.lock b/yarn.lock index 4b51f7ec..e88e43c7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -29,16 +29,6 @@ __metadata: languageName: node linkType: hard -"@assembly-js/node-sdk@npm:^3.19.1": - version: 3.19.1 - resolution: "@assembly-js/node-sdk@npm:3.19.1" - dependencies: - isomorphic-fetch: "npm:^3.0.0" - next: "npm:^14.0.2" - checksum: 10c0/8385b54c6426f7867db8c308c96f5e535aeab59ff1150fc96809d080a1004792920d0390e8a7d26775e5480a8a10f2b7f7db1d29c1e42267a9a03e12e8418785 - languageName: node - linkType: hard - "@babel/code-frame@npm:^7.0.0, @babel/code-frame@npm:^7.27.1": version: 7.27.1 resolution: "@babel/code-frame@npm:7.27.1" @@ -5210,6 +5200,16 @@ __metadata: languageName: node linkType: hard +"copilot-node-sdk@npm:^3.11.1": + version: 3.11.1 + resolution: "copilot-node-sdk@npm:3.11.1" + dependencies: + isomorphic-fetch: "npm:^3.0.0" + next: "npm:^14.0.2" + checksum: 10c0/f98ef7fa04ab4e49dacc0732a227e234a90a63d9d7a3e510a1c383ce4f6ca23e6a393f981e36ea68c0b2e6cb316a7c5fc97e47ce53a8bc20bbaa2afa383bf537 + languageName: node + linkType: hard + "copy-anything@npm:^4": version: 4.0.5 resolution: "copy-anything@npm:4.0.5" @@ -5313,7 +5313,6 @@ __metadata: version: 0.0.0-use.local resolution: "custom-app-base@workspace:." dependencies: - "@assembly-js/node-sdk": "npm:^3.19.1" "@eslint/eslintrc": "npm:^3.3.1" "@eslint/js": "npm:^9.24.0" "@ngrok/ngrok": "npm:^1.4.1" @@ -5332,6 +5331,7 @@ __metadata: autoprefixer: "npm:^10.4.0" bottleneck: "npm:^2.19.5" copilot-design-system: "npm:^2.0.10" + copilot-node-sdk: "npm:^3.11.1" dayjs: "npm:^1.11.13" deep-equal: "npm:^2.2.3" dotenv: "npm:^16.4.5"