@cozeloop/prompt-components 0.0.1 → 0.0.3
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/dist/es/idls/fornax_ml_flow/index.js +2322 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/ai_annotate.js +41 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/aidpcallback.js +108 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/annotation_job.js +52 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/base.js +0 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/batch_infer.js +72 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/dataprocess.js +10 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/dataset.js +36 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/datasetv2.js +139 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/datasetv2job.js +40 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/datasetv2lineage.js +25 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/datasetv2similarity.js +12 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/filter.js +0 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/flow_devops_evaluation_callback_common.js +36 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/flow_devops_prompt_common.js +318 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/fornax_domain_model.js +326 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/ml_flow_domain_model.js +327 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/openapi.js +0 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_annotateservice.js +0 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_annotationjobservice.js +0 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_batchinferservice.js +0 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_crowdsourcingannotationjobservice.js +0 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_dataprocessservice.js +0 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_datasetservice.js +0 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_datasetservicev2.js +0 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_modelservice.js +0 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_annotationjobservice.js +0 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_batchinferservice.js +0 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_datasetservicev2.js +0 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_tagservice.js +0 -0
- package/dist/es/idls/fornax_ml_flow/namespaces/tag.js +33 -0
- package/dist/es/idls/prompt_api/index.js +2009 -0
- package/dist/es/idls/prompt_api/namespaces/base.js +0 -0
- package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_callback.js +35 -0
- package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_commercial_openapi.js +0 -0
- package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_common.js +318 -0
- package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_debug.js +0 -0
- package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_manage.js +23 -0
- package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_mcp.js +0 -0
- package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_optimize.js +0 -0
- package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_paas.js +43 -0
- package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_platform.js +0 -0
- package/dist/es/idls/prompt_api/namespaces/mcp.js +9 -0
- package/dist/es/idls/prompt_api/namespaces/model.js +320 -0
- package/dist/es/idls/prompt_api/namespaces/permission.js +47 -0
- package/dist/es/idls/prompt_api/namespaces/release.js +25 -0
- package/dist/es/prompt-editor/index.js +1 -1
- package/dist/es/utils/model-config.js +3 -3
- package/dist/lib/idls/fornax_ml_flow/index.js +2414 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/ai_annotate.js +69 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/aidpcallback.js +140 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/annotation_job.js +82 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/base.js +16 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/batch_infer.js +105 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/dataprocess.js +34 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/dataset.js +63 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/datasetv2.js +177 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/datasetv2job.js +68 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/datasetv2lineage.js +50 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/datasetv2similarity.js +37 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/filter.js +16 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/flow_devops_evaluation_callback_common.js +62 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/flow_devops_prompt_common.js +378 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/fornax_domain_model.js +384 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/ml_flow_domain_model.js +385 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/openapi.js +16 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_annotateservice.js +16 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_annotationjobservice.js +16 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_batchinferservice.js +16 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_crowdsourcingannotationjobservice.js +16 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_dataprocessservice.js +16 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_datasetservice.js +16 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_datasetservicev2.js +16 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_modelservice.js +16 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_annotationjobservice.js +16 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_batchinferservice.js +16 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_datasetservicev2.js +16 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_tagservice.js +16 -0
- package/dist/lib/idls/fornax_ml_flow/namespaces/tag.js +60 -0
- package/dist/lib/idls/prompt_api/index.js +2071 -0
- package/dist/lib/idls/prompt_api/namespaces/base.js +16 -0
- package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_callback.js +62 -0
- package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_commercial_openapi.js +16 -0
- package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_common.js +378 -0
- package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_debug.js +16 -0
- package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_manage.js +49 -0
- package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_mcp.js +16 -0
- package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_optimize.js +16 -0
- package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_paas.js +72 -0
- package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_platform.js +16 -0
- package/dist/lib/idls/prompt_api/namespaces/mcp.js +33 -0
- package/dist/lib/idls/prompt_api/namespaces/model.js +377 -0
- package/dist/lib/idls/prompt_api/namespaces/permission.js +72 -0
- package/dist/lib/idls/prompt_api/namespaces/release.js +50 -0
- package/dist/lib/prompt-editor/index.js +1 -1
- package/dist/lib/utils/model-config.js +13 -3
- package/dist/types/idls/fornax_ml_flow/index.d.ts +779 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/ai_annotate.d.ts +102 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/aidpcallback.d.ts +227 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/annotation_job.d.ts +402 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/base.d.ts +18 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/batch_infer.d.ts +331 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/dataprocess.d.ts +16 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/dataset.d.ts +88 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/datasetv2.d.ts +462 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/datasetv2job.d.ts +180 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/datasetv2lineage.d.ts +69 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/datasetv2similarity.d.ts +8 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/filter.d.ts +39 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/flow_devops_evaluation_callback_common.d.ts +88 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/flow_devops_prompt_common.d.ts +370 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/fornax_domain_model.d.ts +320 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/ml_flow_domain_model.d.ts +510 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/openapi.d.ts +6 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_annotateservice.d.ts +106 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_annotationjobservice.d.ts +256 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_batchinferservice.d.ts +73 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_crowdsourcingannotationjobservice.d.ts +94 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_dataprocessservice.d.ts +11 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_datasetservice.d.ts +24 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_datasetservicev2.d.ts +653 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_modelservice.d.ts +83 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_annotationjobservice.d.ts +81 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_batchinferservice.d.ts +24 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_datasetservicev2.d.ts +260 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_tagservice.d.ts +111 -0
- package/dist/types/idls/fornax_ml_flow/namespaces/tag.d.ts +109 -0
- package/dist/types/idls/prompt_api/index.d.ts +667 -0
- package/dist/types/idls/prompt_api/namespaces/base.d.ts +18 -0
- package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_callback.d.ts +102 -0
- package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_commercial_openapi.d.ts +81 -0
- package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_common.d.ts +1270 -0
- package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_debug.d.ts +197 -0
- package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_manage.d.ts +769 -0
- package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_mcp.d.ts +301 -0
- package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_optimize.d.ts +155 -0
- package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_paas.d.ts +198 -0
- package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_platform.d.ts +230 -0
- package/dist/types/idls/prompt_api/namespaces/mcp.d.ts +95 -0
- package/dist/types/idls/prompt_api/namespaces/model.d.ts +315 -0
- package/dist/types/idls/prompt_api/namespaces/permission.d.ts +52 -0
- package/dist/types/idls/prompt_api/namespaces/release.d.ts +62 -0
- package/dist/types/model-config-editor/basic-type.d.ts +2 -2
- package/dist/types/model-config-editor/model-config-form.d.ts +1 -1
- package/dist/types/model-config-editor/popover-type.d.ts +3 -3
- package/dist/types/model-select/index.d.ts +1 -1
- package/dist/types/model-select/model-option/index.d.ts +1 -1
- package/dist/types/prompt-editor/index.d.ts +1 -1
- package/dist/types/utils/model-config.d.ts +4 -4
- package/package.json +5 -3
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export type Int64 = string | number;
|
|
2
|
+
export declare enum CheckResultType {
|
|
3
|
+
/** fail, 质检任务失败状态 */
|
|
4
|
+
CheckResultFail = 1,
|
|
5
|
+
/** block, 质检检测到严重告警,建议卡点阻塞发布流程 */
|
|
6
|
+
CheckResultBlock = 2,
|
|
7
|
+
/** assertFail, 规则执行检测到异常 */
|
|
8
|
+
CheckResultAssertFail = 3,
|
|
9
|
+
/** runFail, 规则执行内部异常,与变更无关 */
|
|
10
|
+
CheckResultRunFail = 4,
|
|
11
|
+
/** pass, 质检通过 */
|
|
12
|
+
CheckResultPass = 5,
|
|
13
|
+
/** warning, 质检检测到warning告警,建议人工check */
|
|
14
|
+
CheckResultWarning = 6,
|
|
15
|
+
/** error, 创建任务失败,不阻塞流程 */
|
|
16
|
+
CheckResultError = 7,
|
|
17
|
+
/** skipped, 质检任务被人工跳过 */
|
|
18
|
+
CheckResultSkip = 8,
|
|
19
|
+
/** running, 检测中 */
|
|
20
|
+
CheckResultRunning = 9,
|
|
21
|
+
/** init, 检测中 */
|
|
22
|
+
CheckResultInit = 10,
|
|
23
|
+
}
|
|
24
|
+
/** 检查类型 */
|
|
25
|
+
export declare enum CheckType {
|
|
26
|
+
/** release_time_check */
|
|
27
|
+
ReleaseTimeCheck = 0,
|
|
28
|
+
/** common_guard" */
|
|
29
|
+
CommonGuard = 1,
|
|
30
|
+
/** release_event */
|
|
31
|
+
ReleaseEvent = 2,
|
|
32
|
+
/** rule_engine */
|
|
33
|
+
RuleEngine = 3,
|
|
34
|
+
/** exam_check */
|
|
35
|
+
ExamCheck = 4,
|
|
36
|
+
}
|
|
37
|
+
export interface ActionConfig {
|
|
38
|
+
/** 操作名称文案,如申请逃逸、查看报告链接 */
|
|
39
|
+
action_name?: string;
|
|
40
|
+
/** 逃逸链接、质检报告链接 */
|
|
41
|
+
action_url?: string;
|
|
42
|
+
/** 操作详情描述,如封禁策略名称 */
|
|
43
|
+
action_detail?: string;
|
|
44
|
+
}
|
|
45
|
+
export interface CheckResult {
|
|
46
|
+
/** 检测ID */
|
|
47
|
+
check_id?: Int64;
|
|
48
|
+
/** 检测详情 */
|
|
49
|
+
check_detail?: Array<CheckResultDetail>;
|
|
50
|
+
}
|
|
51
|
+
export interface CheckResultDetail {
|
|
52
|
+
/** ref: CheckType, 检查类型,质检、时间窗口封禁、变更校验等 */
|
|
53
|
+
check_type?: string;
|
|
54
|
+
/** ref: CheckResultType, 检查结果 */
|
|
55
|
+
check_result?: string;
|
|
56
|
+
/** 是否卡点建议 */
|
|
57
|
+
is_block?: boolean;
|
|
58
|
+
/** 操作建议 */
|
|
59
|
+
action?: Array<ActionConfig>;
|
|
60
|
+
/** 检测项描述 */
|
|
61
|
+
desc?: string;
|
|
62
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type CSSProperties } from 'react';
|
|
2
|
-
import { type flow_devops_prompt_common } from '
|
|
3
|
-
import { type ModelSelectProps } from
|
|
2
|
+
import { type flow_devops_prompt_common } from '../idls/prompt_api';
|
|
3
|
+
import { type ModelSelectProps } from '../model-select';
|
|
4
4
|
export interface BasicModelConfigEditorProps {
|
|
5
5
|
className?: string;
|
|
6
6
|
style?: CSSProperties;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Model, type ModelParam } from '
|
|
1
|
+
import { type Model, type ModelParam } from '../idls/fornax_ml_flow';
|
|
2
2
|
import { type LabelProps } from '@coze-arch/coze-design';
|
|
3
3
|
export declare const convertInt64ToNumber: (v?: Int64) => number | undefined;
|
|
4
4
|
export declare const getInputSliderConfig: (key: string, modelParams: ModelParam[]) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type CSSProperties } from 'react';
|
|
2
|
-
import { type flow_devops_prompt_common } from '
|
|
3
|
-
import { type Model } from '
|
|
2
|
+
import { type flow_devops_prompt_common } from '../idls/prompt_api';
|
|
3
|
+
import { type Model } from '../idls/fornax_ml_flow';
|
|
4
4
|
import { type PopoverProps } from '@coze-arch/coze-design';
|
|
5
|
-
import { type ModelSelectProps } from
|
|
5
|
+
import { type ModelSelectProps } from '../model-select';
|
|
6
6
|
interface ModelConfigPopoverProps {
|
|
7
7
|
value?: flow_devops_prompt_common.ModelConfig;
|
|
8
8
|
disabled?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
|
-
import { flow_devops_prompt_common } from '
|
|
2
|
+
import { flow_devops_prompt_common } from '../idls/prompt_api';
|
|
3
3
|
import { type PromptBasicEditorRef, type PromptBasicEditorProps } from '../basic-editor';
|
|
4
4
|
type PromptMessage = flow_devops_prompt_common.Message & {
|
|
5
5
|
key?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type flow_devops_prompt_common } from '
|
|
2
|
-
import
|
|
3
|
-
export declare const convertModelToModelConfig: (model?: Model) => flow_devops_prompt_common.ModelConfig;
|
|
4
|
-
export declare const renderModelOfflineTag: (model?: Model) => import("react/jsx-runtime").JSX.Element | null;
|
|
1
|
+
import { type flow_devops_prompt_common } from '../idls/prompt_api';
|
|
2
|
+
import * as FornaxMlFlow from '../idls/fornax_ml_flow';
|
|
3
|
+
export declare const convertModelToModelConfig: (model?: FornaxMlFlow.Model) => flow_devops_prompt_common.ModelConfig;
|
|
4
|
+
export declare const renderModelOfflineTag: (model?: FornaxMlFlow.Model) => import("react/jsx-runtime").JSX.Element | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cozeloop/prompt-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "Prompt common components for cozeloop",
|
|
5
5
|
"author": "cozeloop",
|
|
6
6
|
"main": "./dist/lib/index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@coze-arch/coze-design": "0.0.6-alpha.101d0c",
|
|
22
22
|
"@coze-editor/editor": "0.1.0-alpha.dac011",
|
|
23
23
|
"@coze-editor/extension-regexp-decorator": "0.1.0-alpha.0fd19e",
|
|
24
|
-
"@cozeloop/components": "
|
|
24
|
+
"@cozeloop/components": "latest",
|
|
25
25
|
"@flow-web/md-box": "2.4.2",
|
|
26
26
|
"@lezer/common": "^1.2.2",
|
|
27
27
|
"@shikijs/themes": "^3.2.2",
|
|
@@ -37,7 +37,6 @@
|
|
|
37
37
|
"mermaid": "^11.4.1",
|
|
38
38
|
"mitt": "^3.0.1",
|
|
39
39
|
"nanoid": "^4.0.2",
|
|
40
|
-
"react": "~18.2.0",
|
|
41
40
|
"shiki": "^3.2.2",
|
|
42
41
|
"sortablejs": "~1.15.2",
|
|
43
42
|
"svg-pan-zoom": "^3.6.2",
|
|
@@ -65,6 +64,9 @@
|
|
|
65
64
|
"vite-plugin-svgr": "~3.3.0",
|
|
66
65
|
"vitest": "~3.0.5"
|
|
67
66
|
},
|
|
67
|
+
"peerDependencies": {
|
|
68
|
+
"react": "~18.2.0"
|
|
69
|
+
},
|
|
68
70
|
"module": "./dist/es/index.js",
|
|
69
71
|
"types": "./dist/types/index.d.ts",
|
|
70
72
|
"files": [
|