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

@ai0x0/sdk

Package Overview
Dependencies
Maintainers
0
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ai0x0/sdk - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

76

es/types.d.ts

@@ -11,4 +11,13 @@ export interface CustomPreset {

accompanyingMode?: 'query' | 'input' | 'none' | 'all';
/**
* 设置后会变为预设包
*/
children?: CustomPreset[];
/**
* 描述
*/
description?: string;
/**
* 是否禁用
*/
disable?: boolean;

@@ -35,3 +44,9 @@ /**

startText?: string;
/**
* 表单模式模版
*/
template?: string;
/**
* 输入模式时的输入类型
*/
type: 'Text' | 'Doc' | 'Code' | 'Markdown';

@@ -50,2 +65,5 @@ }

label: string;
/**
* 点击事件
*/
onClick: () => void;

@@ -63,23 +81,81 @@ }

label: string;
/**
* 点击事件
*/
onClick: () => void;
}
/**
* 悬浮球配置
*/
export type SDKConfig = {
/**
* 对话界面是否是置顶状态
*/
chatIsAlwaysOnTop?: boolean;
/**
* 对话界面是否是焦点状态
*/
chatIsFocused?: boolean;
/**
* 对话界面是否是显示状态
*/
chatIsVisible?: boolean;
/**
* 当前应用改变
* @param app
*/
onAppChange?: (app: {
/**
* 是否全屏
*/
isFullScreen: boolean;
/**
* 名称
*/
name: string;
/**
* 路径
*/
path: string;
/**
* 标题
*/
title: string;
}) => void;
/**
* 对话窗口隐藏
*/
onChatHide?: () => void;
/**
* 对话窗口显示
*/
onChatShow?: () => void;
/**
* 对话开始
* @param message
*/
onChatStart?: ({ message }: {
message: string;
}) => void;
/**
* 对话停止
*/
onChatStop?: () => void;
/**
* 打开设置
*/
onSettingsOpen?: () => void;
/**
* 面板操作按钮
* @param actions
*/
panelActions?: (actions: SDKMenuItem[]) => void;
/**
* 面板开关按钮
* @param actions
*/
panelCheckboxs?: (actions: SDKCheckboxItem[]) => void;
/**
* 功能预设
*/
presets?: CustomPreset[];

@@ -86,0 +162,0 @@ };

4

es/types.js

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

// 悬浮球配置
/**
* 悬浮球配置
*/
export var _ = function _() {};

@@ -11,4 +11,13 @@ export interface CustomPreset {

accompanyingMode?: 'query' | 'input' | 'none' | 'all';
/**
* 设置后会变为预设包
*/
children?: CustomPreset[];
/**
* 描述
*/
description?: string;
/**
* 是否禁用
*/
disable?: boolean;

@@ -35,3 +44,9 @@ /**

startText?: string;
/**
* 表单模式模版
*/
template?: string;
/**
* 输入模式时的输入类型
*/
type: 'Text' | 'Doc' | 'Code' | 'Markdown';

@@ -50,2 +65,5 @@ }

label: string;
/**
* 点击事件
*/
onClick: () => void;

@@ -63,23 +81,81 @@ }

label: string;
/**
* 点击事件
*/
onClick: () => void;
}
/**
* 悬浮球配置
*/
export type SDKConfig = {
/**
* 对话界面是否是置顶状态
*/
chatIsAlwaysOnTop?: boolean;
/**
* 对话界面是否是焦点状态
*/
chatIsFocused?: boolean;
/**
* 对话界面是否是显示状态
*/
chatIsVisible?: boolean;
/**
* 当前应用改变
* @param app
*/
onAppChange?: (app: {
/**
* 是否全屏
*/
isFullScreen: boolean;
/**
* 名称
*/
name: string;
/**
* 路径
*/
path: string;
/**
* 标题
*/
title: string;
}) => void;
/**
* 对话窗口隐藏
*/
onChatHide?: () => void;
/**
* 对话窗口显示
*/
onChatShow?: () => void;
/**
* 对话开始
* @param message
*/
onChatStart?: ({ message }: {
message: string;
}) => void;
/**
* 对话停止
*/
onChatStop?: () => void;
/**
* 打开设置
*/
onSettingsOpen?: () => void;
/**
* 面板操作按钮
* @param actions
*/
panelActions?: (actions: SDKMenuItem[]) => void;
/**
* 面板开关按钮
* @param actions
*/
panelCheckboxs?: (actions: SDKCheckboxItem[]) => void;
/**
* 功能预设
*/
presets?: CustomPreset[];

@@ -86,0 +162,0 @@ };

{
"name": "@ai0x0/sdk",
"version": "0.0.2",
"version": "0.0.3",
"description": "Lobe Chat Plugin SDK, help you to build an amazing chat plugin for Lobe Chat",

@@ -5,0 +5,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc