@nocobase/client 2.1.0-alpha.10 → 2.1.0-alpha.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es/ai/index.d.ts CHANGED
@@ -8,4 +8,5 @@
8
8
  */
9
9
  export * from './ai-manager';
10
10
  export * from './tools-manager';
11
+ export * from './skills-manager';
11
12
  export * from './utils';
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ export * from './types';
@@ -0,0 +1,23 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ export type SkillsScope = 'SPECIFIED' | 'GENERAL' | 'CUSTOM';
10
+ export type SkillsEntry = {
11
+ scope: SkillsScope;
12
+ name: string;
13
+ description: string;
14
+ content?: string;
15
+ tools?: string[];
16
+ title?: string;
17
+ about?: string;
18
+ from?: string;
19
+ };
20
+ export type SkillsFilter = {
21
+ scope?: SkillsScope;
22
+ name?: string;
23
+ };
@@ -47,6 +47,7 @@ export type ToolCall<T = unknown> = {
47
47
  export type FrontendTools = ToolsOptions;
48
48
  export type BackendTools = {
49
49
  scope: Scope;
50
+ from: From;
50
51
  defaultPermission?: Permission;
51
52
  silence?: boolean;
52
53
  introduction?: {
@@ -78,3 +79,4 @@ export type ToolsFilter = {
78
79
  };
79
80
  export type Scope = 'SPECIFIED' | 'GENERAL' | 'CUSTOM';
80
81
  export type Permission = 'ASK' | 'ALLOW';
82
+ export type From = 'loader' | 'workflow' | 'mcp';
@@ -13,6 +13,7 @@ export declare class MockFlowModelRepository implements IFlowModelRepository<Flo
13
13
  constructor(prefix?: string);
14
14
  get models(): Map<any, any>;
15
15
  findOne(query: any): Promise<any>;
16
+ ensure(values: Record<string, any>): Promise<any>;
16
17
  loadByParentId(parentId: string): Promise<any>;
17
18
  load(uid: string): Promise<any>;
18
19
  save(model: FlowModel): Promise<Record<string, any>>;
@@ -27,6 +28,12 @@ export declare class FlowModelRepository implements IFlowModelRepository<FlowMod
27
28
  private inFlightFindOne;
28
29
  private buildFindOneKey;
29
30
  findOne(query: any): Promise<any>;
31
+ ensure(values: Record<string, any>, options?: {
32
+ includeAsyncNode?: boolean;
33
+ }): Promise<any>;
34
+ mutate(values: Record<string, any>, options?: {
35
+ includeAsyncNode?: boolean;
36
+ }): Promise<any>;
30
37
  save(model: FlowModel, options?: {
31
38
  onlyStepParams?: boolean;
32
39
  }): Promise<any>;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import React from 'react';
10
+ import { ActionModel } from '../base';
11
+ export declare class JSItemActionModel extends ActionModel {
12
+ private _offResourceRefresh?;
13
+ private _mountedOnce;
14
+ static scene: import("../base").ActionSceneType;
15
+ render(): React.JSX.Element;
16
+ renderHiddenInConfig(): React.ReactNode | undefined;
17
+ protected onMount(): void;
18
+ protected onUnmount(): void;
19
+ }
@@ -13,6 +13,7 @@ export * from './EditActionModel';
13
13
  export * from './FilterActionModel';
14
14
  export * from './JSActionModel';
15
15
  export * from './JSCollectionActionModel';
16
+ export * from './JSItemActionModel';
16
17
  export * from './JSRecordActionModel';
17
18
  export * from './PopupCollectionActionModel';
18
19
  export * from './RefreshActionModel';
@@ -9,5 +9,6 @@
9
9
  import React from 'react';
10
10
  import { ClickableFieldModel } from './ClickableFieldModel';
11
11
  export declare class DisplayTextFieldModel extends ClickableFieldModel {
12
+ t(value: string | undefined | null): any;
12
13
  renderComponent(value: any, wrap: any): React.JSX.Element;
13
14
  }
package/es/index.css CHANGED
@@ -1 +1 @@
1
- ::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:var(--colorBgScrollTrack)}::-webkit-scrollbar-thumb{background:var(--colorBgScrollBar);border-radius:4px}::-webkit-scrollbar-thumb:hover{background:var(--colorBgScrollBarHover)}::-webkit-scrollbar-thumb:active{background:var(--colorBgScrollBarActive)}.rc-virtual-list-scrollbar-thumb{background:var(--colorBgScrollBar)!important}.rc-virtual-list-scrollbar-thumb:hover{background:var(--colorBgScrollBarHover)!important}.rc-virtual-list-scrollbar-thumb:active{background:var(--colorBgScrollBarActive)!important}.ant-menu-submenu-popup{-webkit-backdrop-filter:none;backdrop-filter:none}.ant-menu-item.ant-menu-item-only-child.ant-pro-base-menu-horizontal-menu-item:active{background-color:var(--colorBgMenuItemSelected)!important}.nb-hidden{display:none}.nb-dialog-overflow-hidden .ant-modal-content{overflow:hidden}.ant-layout-sider .ant-menu{background:var(--colorBgSider)!important}.ant-layout-sider .ant-menu .ant-menu-item{color:var(--colorTextSiderMenu)!important}.ant-layout-sider .ant-menu .ant-menu-item:hover{background-color:var(--colorBgSiderMenuHover)!important;color:var(--colorTextSiderMenuHover)!important}.ant-layout-sider .ant-menu .ant-menu-item:active{background-color:var(--colorBgSiderMenuActive)!important}.ant-layout-sider .ant-menu .ant-menu-item.ant-menu-item-selected{background-color:var(--colorBgSiderMenuActive)!important;color:var(--colorTextSiderMenuActive)!important}.ant-layout-sider .ant-menu .ant-menu-submenu .ant-menu-submenu-title{color:var(--colorTextSiderMenu)!important}.ant-layout-sider .ant-menu .ant-menu-submenu .ant-menu-submenu-title:hover{background-color:var(--colorBgSiderMenuHover)!important;color:var(--colorTextSiderMenuHover)!important}.ant-layout-sider .ant-menu .ant-menu-submenu.ant-menu-submenu-selected .ant-menu-submenu-title{color:var(--colorTextSiderMenuActive)!important;color:var(--colorTextSiderMenu)!important}.ant-layout-sider .ant-menu .ant-menu-submenu.ant-menu-submenu-selected .ant-menu-submenu-title:hover{background-color:var(--colorBgSiderMenuHover)!important;color:var(--colorTextSiderMenuHover)!important}.ant-layout-sider .ant-menu .ant-menu-submenu.ant-menu-submenu-selected.ant-menu-submenu-selected>.ant-menu-submenu-title{color:var(--colorTextSiderMenuActive)!important}.ant-btn.ant-btn-danger{text-shadow:none;box-shadow:none}.ant-formily-item-label{color:#000000d9;font-weight:600}.ant-table-pagination.ant-pagination{margin-bottom:0!important}.ant-formily-item{font-size:inherit!important}.ant-formily-item-bordered-none .ant-formily-item-feedback-layout-loose{margin-bottom:0!important}.ant-formily-item-control-content-component .ant-tag{white-space:pre-wrap}html body{--adm-font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"}
1
+ ::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:var(--colorBgScrollTrack)}::-webkit-scrollbar-thumb{background:var(--colorBgScrollBar);border-radius:4px}::-webkit-scrollbar-thumb:hover{background:var(--colorBgScrollBarHover)}::-webkit-scrollbar-thumb:active{background:var(--colorBgScrollBarActive)}.rc-virtual-list-scrollbar-thumb{background:var(--colorBgScrollBar)!important}.rc-virtual-list-scrollbar-thumb:hover{background:var(--colorBgScrollBarHover)!important}.rc-virtual-list-scrollbar-thumb:active{background:var(--colorBgScrollBarActive)!important}.ant-menu-submenu-popup{-webkit-backdrop-filter:none;backdrop-filter:none}.ant-menu-item.ant-menu-item-only-child.ant-pro-base-menu-horizontal-menu-item:active{background-color:var(--colorBgMenuItemSelected)!important}.nb-hidden{display:none}.nb-dialog-overflow-hidden .ant-modal-content{overflow:hidden}.ant-layout-sider .ant-menu{background:var(--colorBgSider)!important}.ant-layout-sider .ant-menu .ant-menu-item{color:var(--colorTextSiderMenu)!important}.ant-layout-sider .ant-menu .ant-menu-item:hover{background-color:var(--colorBgSiderMenuHover)!important;color:var(--colorTextSiderMenuHover)!important}.ant-layout-sider .ant-menu .ant-menu-item:active{background-color:var(--colorBgSiderMenuActive)!important}.ant-layout-sider .ant-menu .ant-menu-item.ant-menu-item-selected{background-color:var(--colorBgSiderMenuActive)!important;color:var(--colorTextSiderMenuActive)!important}.ant-layout-sider .ant-menu .ant-menu-submenu .ant-menu-submenu-title{color:var(--colorTextSiderMenu)!important}.ant-layout-sider .ant-menu .ant-menu-submenu .ant-menu-submenu-title:hover{background-color:var(--colorBgSiderMenuHover)!important;color:var(--colorTextSiderMenuHover)!important}.ant-layout-sider .ant-menu .ant-menu-submenu.ant-menu-submenu-selected .ant-menu-submenu-title{color:var(--colorTextSiderMenu)!important}.ant-layout-sider .ant-menu .ant-menu-submenu.ant-menu-submenu-selected .ant-menu-submenu-title:hover{background-color:var(--colorBgSiderMenuHover)!important;color:var(--colorTextSiderMenuHover)!important}.ant-layout-sider .ant-menu .ant-menu-submenu.ant-menu-submenu-selected.ant-menu-submenu-selected>.ant-menu-submenu-title{color:var(--colorTextSiderMenuActive)!important}.ant-btn.ant-btn-danger{text-shadow:none;box-shadow:none}.ant-formily-item-label{color:#000000d9;font-weight:600}.ant-table-pagination.ant-pagination{margin-bottom:0!important}.ant-formily-item{font-size:inherit!important}.ant-formily-item-bordered-none .ant-formily-item-feedback-layout-loose{margin-bottom:0!important}.ant-formily-item-control-content-component .ant-tag{white-space:pre-wrap}html body{--adm-font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"}