@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,197 @@
1
+ import * as flow_devops_prompt_common from './flow_devops_prompt_common';
2
+ import * as base from './base';
3
+ import * as mcp from './mcp';
4
+ export type Int64 = string | number;
5
+ export interface ChatTestRequest {
6
+ prompt: flow_devops_prompt_common.Prompt;
7
+ message?: flow_devops_prompt_common.Message;
8
+ contexts?: Array<flow_devops_prompt_common.Message>;
9
+ variables?: Array<flow_devops_prompt_common.Variable>;
10
+ /** 空间ID */
11
+ space_id: Int64;
12
+ base?: base.Base;
13
+ }
14
+ export interface ChatTestResponse {
15
+ item?: flow_devops_prompt_common.ReplyItem;
16
+ code?: number;
17
+ msg?: string;
18
+ base_resp?: base.BaseResp;
19
+ }
20
+ export interface ExecuteBatchRequest {
21
+ /** PromptID */
22
+ prompt_id?: Int64;
23
+ /** 空间ID */
24
+ space_id?: Int64;
25
+ /** CaseID */
26
+ case_id?: Int64;
27
+ /** DatasetID */
28
+ dataset_id?: Int64;
29
+ /** RowGroupIDs */
30
+ row_group_ids?: Array<Int64>;
31
+ /** MCP 动态配置 */
32
+ mcp_execute_config?: mcp.MCPExecuteConfig;
33
+ base?: base.Base;
34
+ }
35
+ export interface ExecuteBatchResponse {
36
+ task_id?: Int64;
37
+ code?: number;
38
+ msg?: string;
39
+ base_resp?: base.BaseResp;
40
+ }
41
+ export interface GetDebugDetailRequest {
42
+ debug_id?: Int64;
43
+ /** PromptID */
44
+ prompt_id?: Int64;
45
+ /** 空间ID */
46
+ space_id?: Int64;
47
+ base?: base.Base;
48
+ }
49
+ export interface GetDebugDetailResponse {
50
+ debug_detail?: flow_devops_prompt_common.DebugDetail;
51
+ code?: number;
52
+ msg?: string;
53
+ base_resp?: base.BaseResp;
54
+ }
55
+ export interface GetMockContextRequest {
56
+ /** Prompt Key */
57
+ prompt_id: Int64;
58
+ space_id: Int64;
59
+ base?: base.Base;
60
+ }
61
+ export interface GetMockContextResponse {
62
+ /** deprecated,使用ContextsV2 */
63
+ contexts?: Array<flow_devops_prompt_common.Message>;
64
+ /** 参数列表 */
65
+ variables?: Array<Array<flow_devops_prompt_common.Variable>>;
66
+ /** 用户调试配置 */
67
+ user_debug_config?: flow_devops_prompt_common.UserDebugConfig;
68
+ /** 竞技场配置 */
69
+ compare_config?: flow_devops_prompt_common.CompareConfig;
70
+ /** 对话历史 */
71
+ contexts_v2?: Array<flow_devops_prompt_common.DebugMessage>;
72
+ code?: number;
73
+ msg?: string;
74
+ base_resp?: base.BaseResp;
75
+ }
76
+ export interface ListDebugHistoryRequest {
77
+ /** PromptID */
78
+ prompt_id?: Int64;
79
+ /** 空间ID */
80
+ space_id?: Int64;
81
+ /** 默认只展示登录用户的调试记录,如果传递 listAll则返回所有记录 */
82
+ list_all?: boolean;
83
+ /** 起始为空,滚动传入Response里的NextCursor */
84
+ cursor?: Int64;
85
+ /** 天数,不传默认7天 */
86
+ offset?: Int64;
87
+ base?: base.Base;
88
+ }
89
+ export interface ListDebugHistoryResponse {
90
+ /** Prompt列表 */
91
+ debug_history?: Array<flow_devops_prompt_common.DebugBrief>;
92
+ next_cursor?: Int64;
93
+ has_more?: boolean;
94
+ code?: number;
95
+ msg?: string;
96
+ base_resp?: base.BaseResp;
97
+ }
98
+ export interface LoadBatchDebugInfoRequest {
99
+ /** PromptID */
100
+ prompt_id?: Int64;
101
+ /** 空间ID */
102
+ space_id?: Int64;
103
+ base?: base.Base;
104
+ }
105
+ export interface LoadBatchDebugInfoResponse {
106
+ case_id?: Int64;
107
+ code?: number;
108
+ msg?: string;
109
+ base_resp?: base.BaseResp;
110
+ }
111
+ export interface SaveMockContextRequest {
112
+ /** PromptID */
113
+ prompt_id: Int64;
114
+ /** deprecated,使用ContextsV2 */
115
+ contexts?: Array<flow_devops_prompt_common.Message>;
116
+ /** 空间ID */
117
+ space_id: Int64;
118
+ /** 多组变量 */
119
+ variables?: Array<Array<flow_devops_prompt_common.Variable>>;
120
+ /** 用户调试配置 */
121
+ user_debug_config?: flow_devops_prompt_common.UserDebugConfig;
122
+ /** 竞技场配置 */
123
+ compare_config?: flow_devops_prompt_common.CompareConfig;
124
+ /** 对话历史 */
125
+ contexts_v2?: Array<flow_devops_prompt_common.DebugMessage>;
126
+ base?: base.Base;
127
+ }
128
+ export interface SaveMockContextResponse {
129
+ code?: number;
130
+ msg?: string;
131
+ base_resp?: base.BaseResp;
132
+ }
133
+ export interface SendMessageRequest {
134
+ prompt: flow_devops_prompt_common.Prompt;
135
+ message?: flow_devops_prompt_common.Message;
136
+ contexts?: Array<flow_devops_prompt_common.Message>;
137
+ variables?: Array<flow_devops_prompt_common.Variable>;
138
+ /** 空间ID */
139
+ space_id: Int64;
140
+ /** 是否单步调试 */
141
+ single_step_debug?: boolean;
142
+ /** 串联调试记录(function call单步调试) */
143
+ debug_trace_key?: string;
144
+ /** MCP 动态配置 */
145
+ mcp_execute_config?: mcp.MCPExecuteConfig;
146
+ base?: base.Base;
147
+ }
148
+ export interface SendMessageResponse {
149
+ item?: flow_devops_prompt_common.ReplyItem;
150
+ debug_id?: string;
151
+ code?: number;
152
+ msg?: string;
153
+ base_resp?: base.BaseResp;
154
+ }
155
+ export interface StreamingSendMessageRequest {
156
+ prompt: flow_devops_prompt_common.Prompt;
157
+ message?: flow_devops_prompt_common.Message;
158
+ contexts?: Array<flow_devops_prompt_common.Message>;
159
+ variables?: Array<flow_devops_prompt_common.Variable>;
160
+ /** 空间ID */
161
+ space_id: Int64;
162
+ /** 是否单步调试 */
163
+ single_step_debug?: boolean;
164
+ /** 串联调试记录(function call单步调试) */
165
+ debug_trace_key?: string;
166
+ /** MCP 动态配置 */
167
+ mcp_execute_config?: mcp.MCPExecuteConfig;
168
+ base?: base.Base;
169
+ }
170
+ export interface StreamingSendMessageResponse {
171
+ item?: flow_devops_prompt_common.ReplyItem;
172
+ debug_id?: string;
173
+ code?: number;
174
+ msg?: string;
175
+ base_resp?: base.BaseResp;
176
+ }
177
+ export interface StreamingSendMessageWithoutPermissionCheckRequest {
178
+ prompt: flow_devops_prompt_common.Prompt;
179
+ message?: flow_devops_prompt_common.Message;
180
+ contexts?: Array<flow_devops_prompt_common.Message>;
181
+ variables?: Array<flow_devops_prompt_common.Variable>;
182
+ /** 空间ID */
183
+ space_id: Int64;
184
+ /** 是否单步调试 */
185
+ single_step_debug?: boolean;
186
+ /** 串联调试记录(function call单步调试) */
187
+ debug_trace_key?: string;
188
+ /** MCP 动态配置 */
189
+ mcp_execute_config?: mcp.MCPExecuteConfig;
190
+ base?: base.Base;
191
+ }
192
+ export interface StreamingSendMessageWithoutPermissionCheckResponse {
193
+ item?: flow_devops_prompt_common.ReplyItem;
194
+ code?: number;
195
+ msg?: string;
196
+ base_resp?: base.BaseResp;
197
+ }