New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@apaas-ai/aily-cui-sdk

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@apaas-ai/aily-cui-sdk - npm Package Compare versions

Comparing version

to
1.2.0-alpha.x64c62146d

.rush/temp/apaas-ai+aily-cui-sdk-build-70fbb7a47a8a624a88408cbb450c3513058dca86.tar.log

2

.rush/temp/operation/build/state.json
{
"nonCachedDurationMs": 3818.515914916992
"nonCachedDurationMs": 4744.690216064453
}

@@ -1,3 +0,3 @@

import { type CUIConfig } from './types/config';
declare function initChatPanel(root: HTMLElement, props: CUIConfig): Promise<any>;
import { type ChatPanel, type CUIConfig } from './types/config';
declare function initChatPanel(root: HTMLElement, props: CUIConfig): Promise<ChatPanel>;
export { initChatPanel };

@@ -76,2 +76,5 @@ /// <reference types="react" />

}
export interface CUIEvents {
[messageName: string]: ((param: any) => void) | undefined;
}
export interface CUIConfig {

@@ -85,2 +88,9 @@ appKey: string;

debug?: CUIDebugConfig;
events?: CUIEvents;
}
export interface ChatPanel {
sendMessage(data: {
content: string;
channelContext: Record<string, unknown>;
}): Promise<void>;
}
{
"name": "@apaas-ai/aily-cui-sdk",
"version": "1.2.0-alpha.x6030d25ab",
"version": "1.2.0-alpha.x64c62146d",
"description": "aily-cui-sdk 对外接入包",
"author": "xiaoziyang.tcpip@bytedance.com",
"maintainers": [
"perterpon.wang@bytedance.com",
"panyiming.325@bytedance.com",
"yangyang.as@bytedance.com",
"xurenjie@bytedance.com",
"hugo@bytedance.com",
"tangciwei@bytedance.com",
"xiaoziyang.tcpip@bytedance.com",
"zhonghao.vie@bytedance.com"
],
"main": "dist/lib/index.js",

@@ -26,10 +36,7 @@ "module": "dist/es/index.js",

"@apaas-ai/api": "0.0.0",
"@apaas-ai/api-client": "0.0.0",
"@apaas-ai/global-states": "0.0.1",
"@apaas-infra/config": "1.0.0",
"@apaas-ai/api-client": "0.0.0",
"@apaas-ai/logger-web": "1.0.0"
"@apaas-ai/logger-web": "1.0.0",
"@apaas-infra/config": "1.0.0"
},
"peerDependencies": {
"@universe-design/biz-open": "*"
},
"scripts": {

@@ -36,0 +43,0 @@ "build": "edenx build --tsconfig tsconfig.build.json",

@@ -12,3 +12,3 @@ /*

import { type ApaasAppInfo, type ResourceAndFile } from './types/cache';
import { type CUIConfig } from './types/config';
import { type ChatPanel, type CUIConfig } from './types/config';

@@ -26,7 +26,6 @@ // function createShadowDom(rootContainer: HTMLElement, style: HTMLStyleElement | null): ShadowRoot {

async function initChatPanel(root: HTMLElement, props: CUIConfig): Promise<any> {
async function initChatPanel(root: HTMLElement, props: CUIConfig): Promise<ChatPanel> {
const cacheControl: CacheControl = new CacheControl(props.appKey as string, props.common?.channelType, '');
setupApiClient({
baseURL: props.common?.baseURL || '/oda',
ttEnv: process.env.TTENV,
token: '',

@@ -43,6 +42,6 @@ });

exeResult.renderChatPanel(root, {
return exeResult.renderChatPanel(root, {
...props,
common: {
channelType: 'SDK',
channelType: 'AILY_CUI_SDK',
scenes: 'Copilot',

@@ -49,0 +48,0 @@ apaasAppInfo: apaasAppInfoData,

@@ -88,2 +88,6 @@ export enum CUILayoutMode {

export interface CUIEvents {
[messageName: string]: ((param: any) => void) | undefined;
}
export interface CUIConfig {

@@ -97,2 +101,7 @@ appKey: string;

debug?: CUIDebugConfig;
events?: CUIEvents;
}
export interface ChatPanel {
sendMessage(data: { content: string; channelContext: Record<string, unknown> }): Promise<void>;
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet