@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.
Files changed (150) hide show
  1. package/dist/es/idls/fornax_ml_flow/index.js +2322 -0
  2. package/dist/es/idls/fornax_ml_flow/namespaces/ai_annotate.js +41 -0
  3. package/dist/es/idls/fornax_ml_flow/namespaces/aidpcallback.js +108 -0
  4. package/dist/es/idls/fornax_ml_flow/namespaces/annotation_job.js +52 -0
  5. package/dist/es/idls/fornax_ml_flow/namespaces/base.js +0 -0
  6. package/dist/es/idls/fornax_ml_flow/namespaces/batch_infer.js +72 -0
  7. package/dist/es/idls/fornax_ml_flow/namespaces/dataprocess.js +10 -0
  8. package/dist/es/idls/fornax_ml_flow/namespaces/dataset.js +36 -0
  9. package/dist/es/idls/fornax_ml_flow/namespaces/datasetv2.js +139 -0
  10. package/dist/es/idls/fornax_ml_flow/namespaces/datasetv2job.js +40 -0
  11. package/dist/es/idls/fornax_ml_flow/namespaces/datasetv2lineage.js +25 -0
  12. package/dist/es/idls/fornax_ml_flow/namespaces/datasetv2similarity.js +12 -0
  13. package/dist/es/idls/fornax_ml_flow/namespaces/filter.js +0 -0
  14. package/dist/es/idls/fornax_ml_flow/namespaces/flow_devops_evaluation_callback_common.js +36 -0
  15. package/dist/es/idls/fornax_ml_flow/namespaces/flow_devops_prompt_common.js +318 -0
  16. package/dist/es/idls/fornax_ml_flow/namespaces/fornax_domain_model.js +326 -0
  17. package/dist/es/idls/fornax_ml_flow/namespaces/ml_flow_domain_model.js +327 -0
  18. package/dist/es/idls/fornax_ml_flow/namespaces/openapi.js +0 -0
  19. package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_annotateservice.js +0 -0
  20. package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_annotationjobservice.js +0 -0
  21. package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_batchinferservice.js +0 -0
  22. package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_crowdsourcingannotationjobservice.js +0 -0
  23. package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_dataprocessservice.js +0 -0
  24. package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_datasetservice.js +0 -0
  25. package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_datasetservicev2.js +0 -0
  26. package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_modelservice.js +0 -0
  27. package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_annotationjobservice.js +0 -0
  28. package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_batchinferservice.js +0 -0
  29. package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_datasetservicev2.js +0 -0
  30. package/dist/es/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_tagservice.js +0 -0
  31. package/dist/es/idls/fornax_ml_flow/namespaces/tag.js +33 -0
  32. package/dist/es/idls/prompt_api/index.js +2009 -0
  33. package/dist/es/idls/prompt_api/namespaces/base.js +0 -0
  34. package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_callback.js +35 -0
  35. package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_commercial_openapi.js +0 -0
  36. package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_common.js +318 -0
  37. package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_debug.js +0 -0
  38. package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_manage.js +23 -0
  39. package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_mcp.js +0 -0
  40. package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_optimize.js +0 -0
  41. package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_paas.js +43 -0
  42. package/dist/es/idls/prompt_api/namespaces/flow_devops_prompt_platform.js +0 -0
  43. package/dist/es/idls/prompt_api/namespaces/mcp.js +9 -0
  44. package/dist/es/idls/prompt_api/namespaces/model.js +320 -0
  45. package/dist/es/idls/prompt_api/namespaces/permission.js +47 -0
  46. package/dist/es/idls/prompt_api/namespaces/release.js +25 -0
  47. package/dist/es/prompt-editor/index.js +1 -1
  48. package/dist/es/utils/model-config.js +3 -3
  49. package/dist/lib/idls/fornax_ml_flow/index.js +2414 -0
  50. package/dist/lib/idls/fornax_ml_flow/namespaces/ai_annotate.js +69 -0
  51. package/dist/lib/idls/fornax_ml_flow/namespaces/aidpcallback.js +140 -0
  52. package/dist/lib/idls/fornax_ml_flow/namespaces/annotation_job.js +82 -0
  53. package/dist/lib/idls/fornax_ml_flow/namespaces/base.js +16 -0
  54. package/dist/lib/idls/fornax_ml_flow/namespaces/batch_infer.js +105 -0
  55. package/dist/lib/idls/fornax_ml_flow/namespaces/dataprocess.js +34 -0
  56. package/dist/lib/idls/fornax_ml_flow/namespaces/dataset.js +63 -0
  57. package/dist/lib/idls/fornax_ml_flow/namespaces/datasetv2.js +177 -0
  58. package/dist/lib/idls/fornax_ml_flow/namespaces/datasetv2job.js +68 -0
  59. package/dist/lib/idls/fornax_ml_flow/namespaces/datasetv2lineage.js +50 -0
  60. package/dist/lib/idls/fornax_ml_flow/namespaces/datasetv2similarity.js +37 -0
  61. package/dist/lib/idls/fornax_ml_flow/namespaces/filter.js +16 -0
  62. package/dist/lib/idls/fornax_ml_flow/namespaces/flow_devops_evaluation_callback_common.js +62 -0
  63. package/dist/lib/idls/fornax_ml_flow/namespaces/flow_devops_prompt_common.js +378 -0
  64. package/dist/lib/idls/fornax_ml_flow/namespaces/fornax_domain_model.js +384 -0
  65. package/dist/lib/idls/fornax_ml_flow/namespaces/ml_flow_domain_model.js +385 -0
  66. package/dist/lib/idls/fornax_ml_flow/namespaces/openapi.js +16 -0
  67. package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_annotateservice.js +16 -0
  68. package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_annotationjobservice.js +16 -0
  69. package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_batchinferservice.js +16 -0
  70. package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_crowdsourcingannotationjobservice.js +16 -0
  71. package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_dataprocessservice.js +16 -0
  72. package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_datasetservice.js +16 -0
  73. package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_datasetservicev2.js +16 -0
  74. package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_modelservice.js +16 -0
  75. package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_annotationjobservice.js +16 -0
  76. package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_batchinferservice.js +16 -0
  77. package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_datasetservicev2.js +16 -0
  78. package/dist/lib/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_tagservice.js +16 -0
  79. package/dist/lib/idls/fornax_ml_flow/namespaces/tag.js +60 -0
  80. package/dist/lib/idls/prompt_api/index.js +2071 -0
  81. package/dist/lib/idls/prompt_api/namespaces/base.js +16 -0
  82. package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_callback.js +62 -0
  83. package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_commercial_openapi.js +16 -0
  84. package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_common.js +378 -0
  85. package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_debug.js +16 -0
  86. package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_manage.js +49 -0
  87. package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_mcp.js +16 -0
  88. package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_optimize.js +16 -0
  89. package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_paas.js +72 -0
  90. package/dist/lib/idls/prompt_api/namespaces/flow_devops_prompt_platform.js +16 -0
  91. package/dist/lib/idls/prompt_api/namespaces/mcp.js +33 -0
  92. package/dist/lib/idls/prompt_api/namespaces/model.js +377 -0
  93. package/dist/lib/idls/prompt_api/namespaces/permission.js +72 -0
  94. package/dist/lib/idls/prompt_api/namespaces/release.js +50 -0
  95. package/dist/lib/prompt-editor/index.js +1 -1
  96. package/dist/lib/utils/model-config.js +13 -3
  97. package/dist/types/idls/fornax_ml_flow/index.d.ts +779 -0
  98. package/dist/types/idls/fornax_ml_flow/namespaces/ai_annotate.d.ts +102 -0
  99. package/dist/types/idls/fornax_ml_flow/namespaces/aidpcallback.d.ts +227 -0
  100. package/dist/types/idls/fornax_ml_flow/namespaces/annotation_job.d.ts +402 -0
  101. package/dist/types/idls/fornax_ml_flow/namespaces/base.d.ts +18 -0
  102. package/dist/types/idls/fornax_ml_flow/namespaces/batch_infer.d.ts +331 -0
  103. package/dist/types/idls/fornax_ml_flow/namespaces/dataprocess.d.ts +16 -0
  104. package/dist/types/idls/fornax_ml_flow/namespaces/dataset.d.ts +88 -0
  105. package/dist/types/idls/fornax_ml_flow/namespaces/datasetv2.d.ts +462 -0
  106. package/dist/types/idls/fornax_ml_flow/namespaces/datasetv2job.d.ts +180 -0
  107. package/dist/types/idls/fornax_ml_flow/namespaces/datasetv2lineage.d.ts +69 -0
  108. package/dist/types/idls/fornax_ml_flow/namespaces/datasetv2similarity.d.ts +8 -0
  109. package/dist/types/idls/fornax_ml_flow/namespaces/filter.d.ts +39 -0
  110. package/dist/types/idls/fornax_ml_flow/namespaces/flow_devops_evaluation_callback_common.d.ts +88 -0
  111. package/dist/types/idls/fornax_ml_flow/namespaces/flow_devops_prompt_common.d.ts +370 -0
  112. package/dist/types/idls/fornax_ml_flow/namespaces/fornax_domain_model.d.ts +320 -0
  113. package/dist/types/idls/fornax_ml_flow/namespaces/ml_flow_domain_model.d.ts +510 -0
  114. package/dist/types/idls/fornax_ml_flow/namespaces/openapi.d.ts +6 -0
  115. package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_annotateservice.d.ts +106 -0
  116. package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_annotationjobservice.d.ts +256 -0
  117. package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_batchinferservice.d.ts +73 -0
  118. package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_crowdsourcingannotationjobservice.d.ts +94 -0
  119. package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_dataprocessservice.d.ts +11 -0
  120. package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_datasetservice.d.ts +24 -0
  121. package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_datasetservicev2.d.ts +653 -0
  122. package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_modelservice.d.ts +83 -0
  123. package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_annotationjobservice.d.ts +81 -0
  124. package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_batchinferservice.d.ts +24 -0
  125. package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_openapi_datasetservicev2.d.ts +260 -0
  126. package/dist/types/idls/fornax_ml_flow/namespaces/stone_fornax_ml_flow_tagservice.d.ts +111 -0
  127. package/dist/types/idls/fornax_ml_flow/namespaces/tag.d.ts +109 -0
  128. package/dist/types/idls/prompt_api/index.d.ts +667 -0
  129. package/dist/types/idls/prompt_api/namespaces/base.d.ts +18 -0
  130. package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_callback.d.ts +102 -0
  131. package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_commercial_openapi.d.ts +81 -0
  132. package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_common.d.ts +1270 -0
  133. package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_debug.d.ts +197 -0
  134. package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_manage.d.ts +769 -0
  135. package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_mcp.d.ts +301 -0
  136. package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_optimize.d.ts +155 -0
  137. package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_paas.d.ts +198 -0
  138. package/dist/types/idls/prompt_api/namespaces/flow_devops_prompt_platform.d.ts +230 -0
  139. package/dist/types/idls/prompt_api/namespaces/mcp.d.ts +95 -0
  140. package/dist/types/idls/prompt_api/namespaces/model.d.ts +315 -0
  141. package/dist/types/idls/prompt_api/namespaces/permission.d.ts +52 -0
  142. package/dist/types/idls/prompt_api/namespaces/release.d.ts +62 -0
  143. package/dist/types/model-config-editor/basic-type.d.ts +2 -2
  144. package/dist/types/model-config-editor/model-config-form.d.ts +1 -1
  145. package/dist/types/model-config-editor/popover-type.d.ts +3 -3
  146. package/dist/types/model-select/index.d.ts +1 -1
  147. package/dist/types/model-select/model-option/index.d.ts +1 -1
  148. package/dist/types/prompt-editor/index.d.ts +1 -1
  149. package/dist/types/utils/model-config.d.ts +4 -4
  150. 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 '@flow-infra/idl/prompt_api';
3
- import { type ModelSelectProps } from "../model-select";
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 '@flow-infra/idl/fornax_ml_flow';
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 '@flow-infra/idl/prompt_api';
3
- import { type Model } from '@flow-infra/idl/fornax_ml_flow';
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 "../model-select";
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 CSSProperties } from 'react';
2
- import { type Model, type Int64 } from '@flow-infra/idl/fornax_ml_flow';
2
+ import { type Model, type Int64 } from '../idls/fornax_ml_flow';
3
3
  interface ModelExtra extends Model {
4
4
  disabled?: boolean;
5
5
  }
@@ -1,4 +1,4 @@
1
- import { type Model } from '@flow-infra/idl/fornax_ml_flow';
1
+ import { type Model } from '../../idls/fornax_ml_flow';
2
2
  export type ModelOptionProps = {
3
3
  model: Model;
4
4
  selected?: boolean;
@@ -1,5 +1,5 @@
1
1
  import { type ReactNode } from 'react';
2
- import { flow_devops_prompt_common } from '@flow-infra/idl/prompt_api';
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 '@flow-infra/idl/prompt_api';
2
- import { type Model } from '@flow-infra/idl/fornax_ml_flow';
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.1",
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": "^0.0.1",
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": [