Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/publish-on-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ jobs:
- [ ] Merge when ready" \
--base main \
--head "chore/sync-version-${{ steps.version.outputs.version }}" \
--label "dependencies" \
--label "dependencies"
fi

- name: Create GitHub Release (prod only)
Expand Down Expand Up @@ -232,4 +232,4 @@ jobs:
- [ ] Merge when ready" \
--base main \
--head "chore/bump-sdk-version-${{ steps.version.outputs.version }}" \
--label "dependencies" \
--label "dependencies"
92 changes: 46 additions & 46 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
{
"name": "@d-id/client-sdk",
"private": false,
"version": "1.1.6",
"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"
},
"devDependencies": {
"@preact/preset-vite": "^2.8.1",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@types/node": "^22.15.0",
"commander": "^11.1.0",
"glob": "^10.3.10",
"preact": "^10.19.6",
"prettier": "^3.2.5",
"prettier-plugin-organize-imports": "^3.2.4",
"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.6",
"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"
},
"devDependencies": {
"@preact/preset-vite": "^2.8.1",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@types/node": "^22.15.0",
"commander": "^11.1.0",
"glob": "^10.3.10",
"preact": "^10.19.6",
"prettier": "^3.2.5",
"prettier-plugin-organize-imports": "^3.2.4",
"typedoc": "^0.25.7",
"typescript": "^5.3.3",
"vite": "^5.1.4",
"vite-plugin-dts": "^3.7.3"
}
}
9 changes: 9 additions & 0 deletions src/services/agent-manager/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ export async function createAgentManager(agent: string, options: AgentManagerOpt
chatId: items.chat?.id,
agentId: agentEntity.id,
mode: items.chatMode,
access: agentEntity.access,
name: agentEntity.preview_name,
...(agentEntity.access === 'public' ? { from: 'agent-template' } : {}),
});
},
async reconnect() {
Expand All @@ -194,6 +197,9 @@ export async function createAgentManager(agent: string, options: AgentManagerOpt
chatId: items.chat?.id,
agentId: agentEntity.id,
mode: items.chatMode,
access: agentEntity.access,
name: agentEntity.preview_name,
...(agentEntity.access === 'public' ? { from: 'agent-template' } : {}),
});
},
async disconnect() {
Expand All @@ -204,6 +210,9 @@ export async function createAgentManager(agent: string, options: AgentManagerOpt
chatId: items.chat?.id,
agentId: agentEntity.id,
mode: items.chatMode,
access: agentEntity.access,
name: agentEntity.preview_name,
...(agentEntity.access === 'public' ? { from: 'agent-template' } : {}),
});
},
async chat(userMessage: string) {
Expand Down
7 changes: 5 additions & 2 deletions src/services/chat/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@ export async function createChat(

analytics.track('agent-chat', {
event: 'created',
chat_id: chat.id,
agent_id: agent.id,
chatId: chat.id,
agentId: agent.id,
mode: chatMode,
access: agent.access,
name: agent.preview_name,
...(agent.access === 'public' ? { from: 'agent-template' } : {}),
});
}

Expand Down
Loading