@cozeloop/prompt-components 0.0.3 → 0.0.4

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 (154) hide show
  1. package/dist/es/idls/{fornax_ml_flow → fornax_ml_flow2}/index.js +3 -32
  2. package/dist/es/idls/{prompt_api → prompt_api2}/index.js +3 -17
  3. package/dist/es/model-config-editor/basic-type.js +1 -3
  4. package/dist/es/model-config-editor/model-config-form.js +3 -1
  5. package/dist/es/prompt-editor/index.js +1 -1
  6. package/dist/es/utils/model-config.js +3 -3
  7. package/dist/lib/idls/{fornax_ml_flow → fornax_ml_flow2}/index.js +7 -66
  8. package/dist/lib/idls/{prompt_api → prompt_api2}/index.js +7 -36
  9. package/dist/lib/model-config-editor/basic-type.js +1 -3
  10. package/dist/lib/model-config-editor/model-config-form.js +3 -1
  11. package/dist/lib/prompt-editor/index.js +3 -3
  12. package/dist/lib/utils/model-config.js +3 -13
  13. package/dist/types/idls/{fornax_ml_flow → fornax_ml_flow2}/index.d.ts +1 -30
  14. package/dist/types/idls/{prompt_api → prompt_api2}/index.d.ts +1 -15
  15. package/dist/types/model-config-editor/basic-type.d.ts +1 -1
  16. package/dist/types/model-config-editor/model-config-form.d.ts +3 -3
  17. package/dist/types/model-config-editor/popover-type.d.ts +3 -3
  18. package/dist/types/model-select/index.d.ts +4 -4
  19. package/dist/types/model-select/model-option/index.d.ts +2 -2
  20. package/dist/types/prompt-editor/index.d.ts +1 -1
  21. package/dist/types/utils/model-config.d.ts +4 -4
  22. package/package.json +7 -3
  23. package/dist/es/idls/fornax_ml_flow/namespaces/datasetv2lineage.js +0 -25
  24. package/dist/lib/idls/fornax_ml_flow/namespaces/datasetv2lineage.js +0 -50
  25. package/dist/types/idls/fornax_ml_flow/namespaces/datasetv2lineage.d.ts +0 -69
  26. /package/dist/es/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/ai_annotate.js +0 -0
  27. /package/dist/es/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/aidpcallback.js +0 -0
  28. /package/dist/es/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/annotation_job.js +0 -0
  29. /package/dist/es/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/base.js +0 -0
  30. /package/dist/es/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/batch_infer.js +0 -0
  31. /package/dist/es/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/dataprocess.js +0 -0
  32. /package/dist/es/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/dataset.js +0 -0
  33. /package/dist/es/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/datasetv2.js +0 -0
  34. /package/dist/es/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/datasetv2job.js +0 -0
  35. /package/dist/es/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/datasetv2similarity.js +0 -0
  36. /package/dist/es/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/filter.js +0 -0
  37. /package/dist/es/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/flow_devops_evaluation_callback_common.js +0 -0
  38. /package/dist/es/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/flow_devops_prompt_common.js +0 -0
  39. /package/dist/es/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/fornax_domain_model.js +0 -0
  40. /package/dist/es/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/ml_flow_domain_model.js +0 -0
  41. /package/dist/es/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/openapi.js +0 -0
  42. /package/dist/es/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/stone_fornax_ml_flow_annotateservice.js +0 -0
  43. /package/dist/es/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/stone_fornax_ml_flow_annotationjobservice.js +0 -0
  44. /package/dist/es/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/stone_fornax_ml_flow_batchinferservice.js +0 -0
  45. /package/dist/es/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/stone_fornax_ml_flow_crowdsourcingannotationjobservice.js +0 -0
  46. /package/dist/es/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/stone_fornax_ml_flow_dataprocessservice.js +0 -0
  47. /package/dist/es/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/stone_fornax_ml_flow_datasetservice.js +0 -0
  48. /package/dist/es/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/stone_fornax_ml_flow_datasetservicev2.js +0 -0
  49. /package/dist/es/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/stone_fornax_ml_flow_modelservice.js +0 -0
  50. /package/dist/es/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/stone_fornax_ml_flow_openapi_annotationjobservice.js +0 -0
  51. /package/dist/es/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/stone_fornax_ml_flow_openapi_batchinferservice.js +0 -0
  52. /package/dist/es/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/stone_fornax_ml_flow_openapi_datasetservicev2.js +0 -0
  53. /package/dist/es/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/stone_fornax_ml_flow_tagservice.js +0 -0
  54. /package/dist/es/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/tag.js +0 -0
  55. /package/dist/es/idls/{prompt_api → prompt_api2}/namespaces/base.js +0 -0
  56. /package/dist/es/idls/{prompt_api → prompt_api2}/namespaces/flow_devops_prompt_callback.js +0 -0
  57. /package/dist/es/idls/{prompt_api → prompt_api2}/namespaces/flow_devops_prompt_commercial_openapi.js +0 -0
  58. /package/dist/es/idls/{prompt_api → prompt_api2}/namespaces/flow_devops_prompt_common.js +0 -0
  59. /package/dist/es/idls/{prompt_api → prompt_api2}/namespaces/flow_devops_prompt_debug.js +0 -0
  60. /package/dist/es/idls/{prompt_api → prompt_api2}/namespaces/flow_devops_prompt_manage.js +0 -0
  61. /package/dist/es/idls/{prompt_api → prompt_api2}/namespaces/flow_devops_prompt_mcp.js +0 -0
  62. /package/dist/es/idls/{prompt_api → prompt_api2}/namespaces/flow_devops_prompt_optimize.js +0 -0
  63. /package/dist/es/idls/{prompt_api → prompt_api2}/namespaces/flow_devops_prompt_paas.js +0 -0
  64. /package/dist/es/idls/{prompt_api → prompt_api2}/namespaces/flow_devops_prompt_platform.js +0 -0
  65. /package/dist/es/idls/{prompt_api → prompt_api2}/namespaces/mcp.js +0 -0
  66. /package/dist/es/idls/{prompt_api → prompt_api2}/namespaces/model.js +0 -0
  67. /package/dist/es/idls/{prompt_api → prompt_api2}/namespaces/permission.js +0 -0
  68. /package/dist/es/idls/{prompt_api → prompt_api2}/namespaces/release.js +0 -0
  69. /package/dist/lib/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/ai_annotate.js +0 -0
  70. /package/dist/lib/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/aidpcallback.js +0 -0
  71. /package/dist/lib/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/annotation_job.js +0 -0
  72. /package/dist/lib/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/base.js +0 -0
  73. /package/dist/lib/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/batch_infer.js +0 -0
  74. /package/dist/lib/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/dataprocess.js +0 -0
  75. /package/dist/lib/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/dataset.js +0 -0
  76. /package/dist/lib/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/datasetv2.js +0 -0
  77. /package/dist/lib/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/datasetv2job.js +0 -0
  78. /package/dist/lib/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/datasetv2similarity.js +0 -0
  79. /package/dist/lib/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/filter.js +0 -0
  80. /package/dist/lib/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/flow_devops_evaluation_callback_common.js +0 -0
  81. /package/dist/lib/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/flow_devops_prompt_common.js +0 -0
  82. /package/dist/lib/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/fornax_domain_model.js +0 -0
  83. /package/dist/lib/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/ml_flow_domain_model.js +0 -0
  84. /package/dist/lib/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/openapi.js +0 -0
  85. /package/dist/lib/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/stone_fornax_ml_flow_annotateservice.js +0 -0
  86. /package/dist/lib/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/stone_fornax_ml_flow_annotationjobservice.js +0 -0
  87. /package/dist/lib/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/stone_fornax_ml_flow_batchinferservice.js +0 -0
  88. /package/dist/lib/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/stone_fornax_ml_flow_crowdsourcingannotationjobservice.js +0 -0
  89. /package/dist/lib/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/stone_fornax_ml_flow_dataprocessservice.js +0 -0
  90. /package/dist/lib/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/stone_fornax_ml_flow_datasetservice.js +0 -0
  91. /package/dist/lib/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/stone_fornax_ml_flow_datasetservicev2.js +0 -0
  92. /package/dist/lib/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/stone_fornax_ml_flow_modelservice.js +0 -0
  93. /package/dist/lib/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/stone_fornax_ml_flow_openapi_annotationjobservice.js +0 -0
  94. /package/dist/lib/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/stone_fornax_ml_flow_openapi_batchinferservice.js +0 -0
  95. /package/dist/lib/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/stone_fornax_ml_flow_openapi_datasetservicev2.js +0 -0
  96. /package/dist/lib/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/stone_fornax_ml_flow_tagservice.js +0 -0
  97. /package/dist/lib/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/tag.js +0 -0
  98. /package/dist/lib/idls/{prompt_api → prompt_api2}/namespaces/base.js +0 -0
  99. /package/dist/lib/idls/{prompt_api → prompt_api2}/namespaces/flow_devops_prompt_callback.js +0 -0
  100. /package/dist/lib/idls/{prompt_api → prompt_api2}/namespaces/flow_devops_prompt_commercial_openapi.js +0 -0
  101. /package/dist/lib/idls/{prompt_api → prompt_api2}/namespaces/flow_devops_prompt_common.js +0 -0
  102. /package/dist/lib/idls/{prompt_api → prompt_api2}/namespaces/flow_devops_prompt_debug.js +0 -0
  103. /package/dist/lib/idls/{prompt_api → prompt_api2}/namespaces/flow_devops_prompt_manage.js +0 -0
  104. /package/dist/lib/idls/{prompt_api → prompt_api2}/namespaces/flow_devops_prompt_mcp.js +0 -0
  105. /package/dist/lib/idls/{prompt_api → prompt_api2}/namespaces/flow_devops_prompt_optimize.js +0 -0
  106. /package/dist/lib/idls/{prompt_api → prompt_api2}/namespaces/flow_devops_prompt_paas.js +0 -0
  107. /package/dist/lib/idls/{prompt_api → prompt_api2}/namespaces/flow_devops_prompt_platform.js +0 -0
  108. /package/dist/lib/idls/{prompt_api → prompt_api2}/namespaces/mcp.js +0 -0
  109. /package/dist/lib/idls/{prompt_api → prompt_api2}/namespaces/model.js +0 -0
  110. /package/dist/lib/idls/{prompt_api → prompt_api2}/namespaces/permission.js +0 -0
  111. /package/dist/lib/idls/{prompt_api → prompt_api2}/namespaces/release.js +0 -0
  112. /package/dist/types/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/ai_annotate.d.ts +0 -0
  113. /package/dist/types/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/aidpcallback.d.ts +0 -0
  114. /package/dist/types/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/annotation_job.d.ts +0 -0
  115. /package/dist/types/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/base.d.ts +0 -0
  116. /package/dist/types/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/batch_infer.d.ts +0 -0
  117. /package/dist/types/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/dataprocess.d.ts +0 -0
  118. /package/dist/types/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/dataset.d.ts +0 -0
  119. /package/dist/types/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/datasetv2.d.ts +0 -0
  120. /package/dist/types/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/datasetv2job.d.ts +0 -0
  121. /package/dist/types/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/datasetv2similarity.d.ts +0 -0
  122. /package/dist/types/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/filter.d.ts +0 -0
  123. /package/dist/types/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/flow_devops_evaluation_callback_common.d.ts +0 -0
  124. /package/dist/types/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/flow_devops_prompt_common.d.ts +0 -0
  125. /package/dist/types/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/fornax_domain_model.d.ts +0 -0
  126. /package/dist/types/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/ml_flow_domain_model.d.ts +0 -0
  127. /package/dist/types/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/openapi.d.ts +0 -0
  128. /package/dist/types/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/stone_fornax_ml_flow_annotateservice.d.ts +0 -0
  129. /package/dist/types/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/stone_fornax_ml_flow_annotationjobservice.d.ts +0 -0
  130. /package/dist/types/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/stone_fornax_ml_flow_batchinferservice.d.ts +0 -0
  131. /package/dist/types/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/stone_fornax_ml_flow_crowdsourcingannotationjobservice.d.ts +0 -0
  132. /package/dist/types/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/stone_fornax_ml_flow_dataprocessservice.d.ts +0 -0
  133. /package/dist/types/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/stone_fornax_ml_flow_datasetservice.d.ts +0 -0
  134. /package/dist/types/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/stone_fornax_ml_flow_datasetservicev2.d.ts +0 -0
  135. /package/dist/types/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/stone_fornax_ml_flow_modelservice.d.ts +0 -0
  136. /package/dist/types/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/stone_fornax_ml_flow_openapi_annotationjobservice.d.ts +0 -0
  137. /package/dist/types/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/stone_fornax_ml_flow_openapi_batchinferservice.d.ts +0 -0
  138. /package/dist/types/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/stone_fornax_ml_flow_openapi_datasetservicev2.d.ts +0 -0
  139. /package/dist/types/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/stone_fornax_ml_flow_tagservice.d.ts +0 -0
  140. /package/dist/types/idls/{fornax_ml_flow → fornax_ml_flow2}/namespaces/tag.d.ts +0 -0
  141. /package/dist/types/idls/{prompt_api → prompt_api2}/namespaces/base.d.ts +0 -0
  142. /package/dist/types/idls/{prompt_api → prompt_api2}/namespaces/flow_devops_prompt_callback.d.ts +0 -0
  143. /package/dist/types/idls/{prompt_api → prompt_api2}/namespaces/flow_devops_prompt_commercial_openapi.d.ts +0 -0
  144. /package/dist/types/idls/{prompt_api → prompt_api2}/namespaces/flow_devops_prompt_common.d.ts +0 -0
  145. /package/dist/types/idls/{prompt_api → prompt_api2}/namespaces/flow_devops_prompt_debug.d.ts +0 -0
  146. /package/dist/types/idls/{prompt_api → prompt_api2}/namespaces/flow_devops_prompt_manage.d.ts +0 -0
  147. /package/dist/types/idls/{prompt_api → prompt_api2}/namespaces/flow_devops_prompt_mcp.d.ts +0 -0
  148. /package/dist/types/idls/{prompt_api → prompt_api2}/namespaces/flow_devops_prompt_optimize.d.ts +0 -0
  149. /package/dist/types/idls/{prompt_api → prompt_api2}/namespaces/flow_devops_prompt_paas.d.ts +0 -0
  150. /package/dist/types/idls/{prompt_api → prompt_api2}/namespaces/flow_devops_prompt_platform.d.ts +0 -0
  151. /package/dist/types/idls/{prompt_api → prompt_api2}/namespaces/mcp.d.ts +0 -0
  152. /package/dist/types/idls/{prompt_api → prompt_api2}/namespaces/model.d.ts +0 -0
  153. /package/dist/types/idls/{prompt_api → prompt_api2}/namespaces/permission.d.ts +0 -0
  154. /package/dist/types/idls/{prompt_api → prompt_api2}/namespaces/release.d.ts +0 -0
@@ -27,39 +27,10 @@ import * as stone_fornax_ml_flow_openapi_batchinferservice from "./namespaces/st
27
27
  import * as stone_fornax_ml_flow_openapi_datasetservicev2 from "./namespaces/stone_fornax_ml_flow_openapi_datasetservicev2";
28
28
  import * as stone_fornax_ml_flow_tagservice from "./namespaces/stone_fornax_ml_flow_tagservice";
29
29
  import * as tag from "./namespaces/tag";
30
- export * from "./namespaces/ai_annotate";
31
- export * from "./namespaces/aidpcallback";
32
- export * from "./namespaces/annotation_job";
33
- export * from "./namespaces/base";
34
- export * from "./namespaces/batch_infer";
35
- export * from "./namespaces/dataprocess";
36
- export * from "./namespaces/dataset";
37
- export * from "./namespaces/datasetv2";
38
- export * from "./namespaces/datasetv2job";
39
- export * from "./namespaces/datasetv2similarity";
40
- export * from "./namespaces/filter";
41
- export * from "./namespaces/flow_devops_evaluation_callback_common";
42
- export * from "./namespaces/flow_devops_prompt_common";
43
- export * from "./namespaces/fornax_domain_model";
44
- export * from "./namespaces/ml_flow_domain_model";
45
- export * from "./namespaces/openapi";
46
- export * from "./namespaces/stone_fornax_ml_flow_annotateservice";
47
- export * from "./namespaces/stone_fornax_ml_flow_annotationjobservice";
48
- export * from "./namespaces/stone_fornax_ml_flow_batchinferservice";
49
- export * from "./namespaces/stone_fornax_ml_flow_crowdsourcingannotationjobservice";
50
- export * from "./namespaces/stone_fornax_ml_flow_dataprocessservice";
51
- export * from "./namespaces/stone_fornax_ml_flow_datasetservice";
52
- export * from "./namespaces/stone_fornax_ml_flow_datasetservicev2";
53
- export * from "./namespaces/stone_fornax_ml_flow_modelservice";
54
- export * from "./namespaces/stone_fornax_ml_flow_openapi_annotationjobservice";
55
- export * from "./namespaces/stone_fornax_ml_flow_openapi_batchinferservice";
56
- export * from "./namespaces/stone_fornax_ml_flow_openapi_datasetservicev2";
57
- export * from "./namespaces/stone_fornax_ml_flow_tagservice";
58
- export * from "./namespaces/tag";
59
- class FornaxMlFlowService {
30
+ class FornaxMlFlow2Service {
60
31
  constructor(options) {
61
32
  this.request = () => {
62
- throw new Error("FornaxMlFlowService.request is undefined");
33
+ throw new Error("FornaxMlFlow2Service.request is undefined");
63
34
  };
64
35
  this.baseURL = "";
65
36
  this.request = (options == null ? void 0 : options.request) || this.request;
@@ -2299,7 +2270,7 @@ export {
2299
2270
  datasetv2,
2300
2271
  datasetv2job,
2301
2272
  datasetv2similarity,
2302
- FornaxMlFlowService as default,
2273
+ FornaxMlFlow2Service as default,
2303
2274
  filter,
2304
2275
  flow_devops_evaluation_callback_common,
2305
2276
  flow_devops_prompt_common,
@@ -12,24 +12,10 @@ import * as mcp from "./namespaces/mcp";
12
12
  import * as model from "./namespaces/model";
13
13
  import * as permission from "./namespaces/permission";
14
14
  import * as release from "./namespaces/release";
15
- export * from "./namespaces/base";
16
- export * from "./namespaces/flow_devops_prompt_callback";
17
- export * from "./namespaces/flow_devops_prompt_commercial_openapi";
18
- export * from "./namespaces/flow_devops_prompt_common";
19
- export * from "./namespaces/flow_devops_prompt_debug";
20
- export * from "./namespaces/flow_devops_prompt_manage";
21
- export * from "./namespaces/flow_devops_prompt_mcp";
22
- export * from "./namespaces/flow_devops_prompt_optimize";
23
- export * from "./namespaces/flow_devops_prompt_paas";
24
- export * from "./namespaces/flow_devops_prompt_platform";
25
- export * from "./namespaces/mcp";
26
- export * from "./namespaces/model";
27
- export * from "./namespaces/permission";
28
- export * from "./namespaces/release";
29
- class PromptApiService {
15
+ class PromptApi2Service {
30
16
  constructor(options) {
31
17
  this.request = () => {
32
- throw new Error("PromptApiService.request is undefined");
18
+ throw new Error("PromptApi2Service.request is undefined");
33
19
  };
34
20
  this.baseURL = "";
35
21
  this.request = (options == null ? void 0 : options.request) || this.request;
@@ -1992,7 +1978,7 @@ class PromptApiService {
1992
1978
  }
1993
1979
  export {
1994
1980
  base,
1995
- PromptApiService as default,
1981
+ PromptApi2Service as default,
1996
1982
  flow_devops_prompt_callback,
1997
1983
  flow_devops_prompt_commercial_openapi,
1998
1984
  flow_devops_prompt_common,
@@ -34,9 +34,7 @@ function BasicModelConfigEditor({
34
34
  modelSelectProps
35
35
  }) {
36
36
  const formApi = useRef();
37
- const [selectModel, setSelectModel] = useState(
38
- modelSelectProps == null ? void 0 : modelSelectProps.value
39
- );
37
+ const [selectModel, setSelectModel] = useState(modelSelectProps == null ? void 0 : modelSelectProps.value);
40
38
  useEffect(() => {
41
39
  var _a, _b;
42
40
  if ((selectModel == null ? void 0 : selectModel.id) !== (value == null ? void 0 : value.id)) {
@@ -57,7 +57,9 @@ const getInputSliderConfig = (key, modelParams) => {
57
57
  };
58
58
  };
59
59
  const FormInputSlider = withField(InputSlider);
60
- function ModelConfigForm({ model }) {
60
+ function ModelConfigForm({
61
+ model
62
+ }) {
61
63
  if (!model) {
62
64
  return null;
63
65
  }
@@ -32,7 +32,7 @@ var __objRest = (source, exclude) => {
32
32
  import { jsx, jsxs } from "react/jsx-runtime";
33
33
  import { forwardRef, useState } from "react";
34
34
  import cn from "classnames";
35
- import { flow_devops_prompt_common } from "../idls/prompt_api";
35
+ import { flow_devops_prompt_common } from "../idls/prompt_api2";
36
36
  import { IconCozHandle } from "@coze-arch/coze-design/icons";
37
37
  import { IconButton, Input, Space } from "@coze-arch/coze-design";
38
38
  import { VARIABLE_MAX_LEN } from "../consts";
@@ -1,5 +1,5 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import * as FornaxMlFlow from "../idls/fornax_ml_flow";
2
+ import { ml_flow_domain_model } from "../idls/fornax_ml_flow2";
3
3
  import { Tag } from "@coze-arch/coze-design";
4
4
  import { convertInt64ToNumber } from "../model-config-editor/model-config-form";
5
5
  import { DEFAULT_MAX_TOKENS } from "../consts";
@@ -19,9 +19,9 @@ const convertModelToModelConfig = (model) => {
19
19
  };
20
20
  };
21
21
  const renderModelOfflineTag = (model) => {
22
- if ((model == null ? void 0 : model.modelStatus) === FornaxMlFlow.ModelStatus.Offlining) {
22
+ if ((model == null ? void 0 : model.modelStatus) === ml_flow_domain_model.ModelStatus.Offlining) {
23
23
  return /* @__PURE__ */ jsx(Tag, { color: "yellow", className: "flex-shrink-0", size: "mini", children: "下线中" });
24
- } else if ((model == null ? void 0 : model.modelStatus) === FornaxMlFlow.ModelStatus.Unavailable) {
24
+ } else if ((model == null ? void 0 : model.modelStatus) === ml_flow_domain_model.ModelStatus.Unavailable) {
25
25
  return /* @__PURE__ */ jsx(Tag, { color: "red", className: "flex-shrink-0", size: "mini", children: "已下线" });
26
26
  }
27
27
  return null;
@@ -17,7 +17,6 @@ var __copyProps = (to, from, except, desc) => {
17
17
  }
18
18
  return to;
19
19
  };
20
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
21
20
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
21
  // If the importer is in node compatibility mode or this is not an ESM
23
22
  // file that has been converted to a CommonJS file using a Babel-
@@ -27,8 +26,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
27
26
  mod
28
27
  ));
29
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
- var fornax_ml_flow_exports = {};
31
- __export(fornax_ml_flow_exports, {
29
+ var fornax_ml_flow2_exports = {};
30
+ __export(fornax_ml_flow2_exports, {
32
31
  ai_annotate: () => ai_annotate,
33
32
  aidpcallback: () => aidpcallback,
34
33
  annotation_job: () => annotation_job,
@@ -39,7 +38,7 @@ __export(fornax_ml_flow_exports, {
39
38
  datasetv2: () => datasetv2,
40
39
  datasetv2job: () => datasetv2job,
41
40
  datasetv2similarity: () => datasetv2similarity,
42
- default: () => FornaxMlFlowService,
41
+ default: () => FornaxMlFlow2Service,
43
42
  filter: () => filter,
44
43
  flow_devops_evaluation_callback_common: () => flow_devops_evaluation_callback_common,
45
44
  flow_devops_prompt_common: () => flow_devops_prompt_common,
@@ -60,7 +59,7 @@ __export(fornax_ml_flow_exports, {
60
59
  stone_fornax_ml_flow_tagservice: () => stone_fornax_ml_flow_tagservice,
61
60
  tag: () => tag
62
61
  });
63
- module.exports = __toCommonJS(fornax_ml_flow_exports);
62
+ module.exports = __toCommonJS(fornax_ml_flow2_exports);
64
63
  var ai_annotate = __toESM(require("./namespaces/ai_annotate"));
65
64
  var aidpcallback = __toESM(require("./namespaces/aidpcallback"));
66
65
  var annotation_job = __toESM(require("./namespaces/annotation_job"));
@@ -90,39 +89,10 @@ var stone_fornax_ml_flow_openapi_batchinferservice = __toESM(require("./namespac
90
89
  var stone_fornax_ml_flow_openapi_datasetservicev2 = __toESM(require("./namespaces/stone_fornax_ml_flow_openapi_datasetservicev2"));
91
90
  var stone_fornax_ml_flow_tagservice = __toESM(require("./namespaces/stone_fornax_ml_flow_tagservice"));
92
91
  var tag = __toESM(require("./namespaces/tag"));
93
- __reExport(fornax_ml_flow_exports, require("./namespaces/ai_annotate"), module.exports);
94
- __reExport(fornax_ml_flow_exports, require("./namespaces/aidpcallback"), module.exports);
95
- __reExport(fornax_ml_flow_exports, require("./namespaces/annotation_job"), module.exports);
96
- __reExport(fornax_ml_flow_exports, require("./namespaces/base"), module.exports);
97
- __reExport(fornax_ml_flow_exports, require("./namespaces/batch_infer"), module.exports);
98
- __reExport(fornax_ml_flow_exports, require("./namespaces/dataprocess"), module.exports);
99
- __reExport(fornax_ml_flow_exports, require("./namespaces/dataset"), module.exports);
100
- __reExport(fornax_ml_flow_exports, require("./namespaces/datasetv2"), module.exports);
101
- __reExport(fornax_ml_flow_exports, require("./namespaces/datasetv2job"), module.exports);
102
- __reExport(fornax_ml_flow_exports, require("./namespaces/datasetv2similarity"), module.exports);
103
- __reExport(fornax_ml_flow_exports, require("./namespaces/filter"), module.exports);
104
- __reExport(fornax_ml_flow_exports, require("./namespaces/flow_devops_evaluation_callback_common"), module.exports);
105
- __reExport(fornax_ml_flow_exports, require("./namespaces/flow_devops_prompt_common"), module.exports);
106
- __reExport(fornax_ml_flow_exports, require("./namespaces/fornax_domain_model"), module.exports);
107
- __reExport(fornax_ml_flow_exports, require("./namespaces/ml_flow_domain_model"), module.exports);
108
- __reExport(fornax_ml_flow_exports, require("./namespaces/openapi"), module.exports);
109
- __reExport(fornax_ml_flow_exports, require("./namespaces/stone_fornax_ml_flow_annotateservice"), module.exports);
110
- __reExport(fornax_ml_flow_exports, require("./namespaces/stone_fornax_ml_flow_annotationjobservice"), module.exports);
111
- __reExport(fornax_ml_flow_exports, require("./namespaces/stone_fornax_ml_flow_batchinferservice"), module.exports);
112
- __reExport(fornax_ml_flow_exports, require("./namespaces/stone_fornax_ml_flow_crowdsourcingannotationjobservice"), module.exports);
113
- __reExport(fornax_ml_flow_exports, require("./namespaces/stone_fornax_ml_flow_dataprocessservice"), module.exports);
114
- __reExport(fornax_ml_flow_exports, require("./namespaces/stone_fornax_ml_flow_datasetservice"), module.exports);
115
- __reExport(fornax_ml_flow_exports, require("./namespaces/stone_fornax_ml_flow_datasetservicev2"), module.exports);
116
- __reExport(fornax_ml_flow_exports, require("./namespaces/stone_fornax_ml_flow_modelservice"), module.exports);
117
- __reExport(fornax_ml_flow_exports, require("./namespaces/stone_fornax_ml_flow_openapi_annotationjobservice"), module.exports);
118
- __reExport(fornax_ml_flow_exports, require("./namespaces/stone_fornax_ml_flow_openapi_batchinferservice"), module.exports);
119
- __reExport(fornax_ml_flow_exports, require("./namespaces/stone_fornax_ml_flow_openapi_datasetservicev2"), module.exports);
120
- __reExport(fornax_ml_flow_exports, require("./namespaces/stone_fornax_ml_flow_tagservice"), module.exports);
121
- __reExport(fornax_ml_flow_exports, require("./namespaces/tag"), module.exports);
122
- class FornaxMlFlowService {
92
+ class FornaxMlFlow2Service {
123
93
  constructor(options) {
124
94
  this.request = () => {
125
- throw new Error("FornaxMlFlowService.request is undefined");
95
+ throw new Error("FornaxMlFlow2Service.request is undefined");
126
96
  };
127
97
  this.baseURL = "";
128
98
  this.request = (options == null ? void 0 : options.request) || this.request;
@@ -2381,34 +2351,5 @@ class FornaxMlFlowService {
2381
2351
  stone_fornax_ml_flow_openapi_batchinferservice,
2382
2352
  stone_fornax_ml_flow_openapi_datasetservicev2,
2383
2353
  stone_fornax_ml_flow_tagservice,
2384
- tag,
2385
- ...require("./namespaces/ai_annotate"),
2386
- ...require("./namespaces/aidpcallback"),
2387
- ...require("./namespaces/annotation_job"),
2388
- ...require("./namespaces/base"),
2389
- ...require("./namespaces/batch_infer"),
2390
- ...require("./namespaces/dataprocess"),
2391
- ...require("./namespaces/dataset"),
2392
- ...require("./namespaces/datasetv2"),
2393
- ...require("./namespaces/datasetv2job"),
2394
- ...require("./namespaces/datasetv2similarity"),
2395
- ...require("./namespaces/filter"),
2396
- ...require("./namespaces/flow_devops_evaluation_callback_common"),
2397
- ...require("./namespaces/flow_devops_prompt_common"),
2398
- ...require("./namespaces/fornax_domain_model"),
2399
- ...require("./namespaces/ml_flow_domain_model"),
2400
- ...require("./namespaces/openapi"),
2401
- ...require("./namespaces/stone_fornax_ml_flow_annotateservice"),
2402
- ...require("./namespaces/stone_fornax_ml_flow_annotationjobservice"),
2403
- ...require("./namespaces/stone_fornax_ml_flow_batchinferservice"),
2404
- ...require("./namespaces/stone_fornax_ml_flow_crowdsourcingannotationjobservice"),
2405
- ...require("./namespaces/stone_fornax_ml_flow_dataprocessservice"),
2406
- ...require("./namespaces/stone_fornax_ml_flow_datasetservice"),
2407
- ...require("./namespaces/stone_fornax_ml_flow_datasetservicev2"),
2408
- ...require("./namespaces/stone_fornax_ml_flow_modelservice"),
2409
- ...require("./namespaces/stone_fornax_ml_flow_openapi_annotationjobservice"),
2410
- ...require("./namespaces/stone_fornax_ml_flow_openapi_batchinferservice"),
2411
- ...require("./namespaces/stone_fornax_ml_flow_openapi_datasetservicev2"),
2412
- ...require("./namespaces/stone_fornax_ml_flow_tagservice"),
2413
- ...require("./namespaces/tag")
2354
+ tag
2414
2355
  });
@@ -17,7 +17,6 @@ var __copyProps = (to, from, except, desc) => {
17
17
  }
18
18
  return to;
19
19
  };
20
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
21
20
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
21
  // If the importer is in node compatibility mode or this is not an ESM
23
22
  // file that has been converted to a CommonJS file using a Babel-
@@ -27,10 +26,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
27
26
  mod
28
27
  ));
29
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
- var prompt_api_exports = {};
31
- __export(prompt_api_exports, {
29
+ var prompt_api2_exports = {};
30
+ __export(prompt_api2_exports, {
32
31
  base: () => base,
33
- default: () => PromptApiService,
32
+ default: () => PromptApi2Service,
34
33
  flow_devops_prompt_callback: () => flow_devops_prompt_callback,
35
34
  flow_devops_prompt_commercial_openapi: () => flow_devops_prompt_commercial_openapi,
36
35
  flow_devops_prompt_common: () => flow_devops_prompt_common,
@@ -45,7 +44,7 @@ __export(prompt_api_exports, {
45
44
  permission: () => permission,
46
45
  release: () => release
47
46
  });
48
- module.exports = __toCommonJS(prompt_api_exports);
47
+ module.exports = __toCommonJS(prompt_api2_exports);
49
48
  var base = __toESM(require("./namespaces/base"));
50
49
  var flow_devops_prompt_callback = __toESM(require("./namespaces/flow_devops_prompt_callback"));
51
50
  var flow_devops_prompt_commercial_openapi = __toESM(require("./namespaces/flow_devops_prompt_commercial_openapi"));
@@ -60,24 +59,10 @@ var mcp = __toESM(require("./namespaces/mcp"));
60
59
  var model = __toESM(require("./namespaces/model"));
61
60
  var permission = __toESM(require("./namespaces/permission"));
62
61
  var release = __toESM(require("./namespaces/release"));
63
- __reExport(prompt_api_exports, require("./namespaces/base"), module.exports);
64
- __reExport(prompt_api_exports, require("./namespaces/flow_devops_prompt_callback"), module.exports);
65
- __reExport(prompt_api_exports, require("./namespaces/flow_devops_prompt_commercial_openapi"), module.exports);
66
- __reExport(prompt_api_exports, require("./namespaces/flow_devops_prompt_common"), module.exports);
67
- __reExport(prompt_api_exports, require("./namespaces/flow_devops_prompt_debug"), module.exports);
68
- __reExport(prompt_api_exports, require("./namespaces/flow_devops_prompt_manage"), module.exports);
69
- __reExport(prompt_api_exports, require("./namespaces/flow_devops_prompt_mcp"), module.exports);
70
- __reExport(prompt_api_exports, require("./namespaces/flow_devops_prompt_optimize"), module.exports);
71
- __reExport(prompt_api_exports, require("./namespaces/flow_devops_prompt_paas"), module.exports);
72
- __reExport(prompt_api_exports, require("./namespaces/flow_devops_prompt_platform"), module.exports);
73
- __reExport(prompt_api_exports, require("./namespaces/mcp"), module.exports);
74
- __reExport(prompt_api_exports, require("./namespaces/model"), module.exports);
75
- __reExport(prompt_api_exports, require("./namespaces/permission"), module.exports);
76
- __reExport(prompt_api_exports, require("./namespaces/release"), module.exports);
77
- class PromptApiService {
62
+ class PromptApi2Service {
78
63
  constructor(options) {
79
64
  this.request = () => {
80
- throw new Error("PromptApiService.request is undefined");
65
+ throw new Error("PromptApi2Service.request is undefined");
81
66
  };
82
67
  this.baseURL = "";
83
68
  this.request = (options == null ? void 0 : options.request) || this.request;
@@ -2053,19 +2038,5 @@ class PromptApiService {
2053
2038
  mcp,
2054
2039
  model,
2055
2040
  permission,
2056
- release,
2057
- ...require("./namespaces/base"),
2058
- ...require("./namespaces/flow_devops_prompt_callback"),
2059
- ...require("./namespaces/flow_devops_prompt_commercial_openapi"),
2060
- ...require("./namespaces/flow_devops_prompt_common"),
2061
- ...require("./namespaces/flow_devops_prompt_debug"),
2062
- ...require("./namespaces/flow_devops_prompt_manage"),
2063
- ...require("./namespaces/flow_devops_prompt_mcp"),
2064
- ...require("./namespaces/flow_devops_prompt_optimize"),
2065
- ...require("./namespaces/flow_devops_prompt_paas"),
2066
- ...require("./namespaces/flow_devops_prompt_platform"),
2067
- ...require("./namespaces/mcp"),
2068
- ...require("./namespaces/model"),
2069
- ...require("./namespaces/permission"),
2070
- ...require("./namespaces/release")
2041
+ release
2071
2042
  });
@@ -65,9 +65,7 @@ function BasicModelConfigEditor({
65
65
  modelSelectProps
66
66
  }) {
67
67
  const formApi = (0, import_react.useRef)();
68
- const [selectModel, setSelectModel] = (0, import_react.useState)(
69
- modelSelectProps == null ? void 0 : modelSelectProps.value
70
- );
68
+ const [selectModel, setSelectModel] = (0, import_react.useState)(modelSelectProps == null ? void 0 : modelSelectProps.value);
71
69
  (0, import_react.useEffect)(() => {
72
70
  var _a, _b;
73
71
  if ((selectModel == null ? void 0 : selectModel.id) !== (value == null ? void 0 : value.id)) {
@@ -75,7 +75,9 @@ const getInputSliderConfig = (key, modelParams) => {
75
75
  };
76
76
  };
77
77
  const FormInputSlider = (0, import_coze_design.withField)(import_components.InputSlider);
78
- function ModelConfigForm({ model }) {
78
+ function ModelConfigForm({
79
+ model
80
+ }) {
79
81
  if (!model) {
80
82
  return null;
81
83
  }
@@ -63,7 +63,7 @@ module.exports = __toCommonJS(prompt_editor_exports);
63
63
  var import_jsx_runtime = require("react/jsx-runtime");
64
64
  var import_react = require("react");
65
65
  var import_classnames = __toESM(require("classnames"));
66
- var import_prompt_api = require("../idls/prompt_api");
66
+ var import_prompt_api2 = require("../idls/prompt_api2");
67
67
  var import_icons = require("@coze-arch/coze-design/icons");
68
68
  var import_coze_design = require("@coze-arch/coze-design");
69
69
  var import_consts = require("../consts");
@@ -153,9 +153,9 @@ const PromptEditor = (0, import_react.forwardRef)(
153
153
  "div",
154
154
  {
155
155
  className: (0, import_classnames.default)("w-full overflow-y-auto styled-scrollbar", {
156
- "py-1": (message == null ? void 0 : message.message_type) !== import_prompt_api.flow_devops_prompt_common.MessageType.Placeholder
156
+ "py-1": (message == null ? void 0 : message.message_type) !== import_prompt_api2.flow_devops_prompt_common.MessageType.Placeholder
157
157
  }),
158
- children: (message == null ? void 0 : message.message_type) === import_prompt_api.flow_devops_prompt_common.MessageType.Placeholder ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
158
+ children: (message == null ? void 0 : message.message_type) === import_prompt_api2.flow_devops_prompt_common.MessageType.Placeholder ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
159
159
  import_coze_design.Input,
160
160
  {
161
161
  value: message.content,
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
- var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
6
  var __export = (target, all) => {
9
7
  for (var name in all)
@@ -17,14 +15,6 @@ var __copyProps = (to, from, except, desc) => {
17
15
  }
18
16
  return to;
19
17
  };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
19
  var model_config_exports = {};
30
20
  __export(model_config_exports, {
@@ -33,7 +23,7 @@ __export(model_config_exports, {
33
23
  });
34
24
  module.exports = __toCommonJS(model_config_exports);
35
25
  var import_jsx_runtime = require("react/jsx-runtime");
36
- var FornaxMlFlow = __toESM(require("../idls/fornax_ml_flow"));
26
+ var import_fornax_ml_flow2 = require("../idls/fornax_ml_flow2");
37
27
  var import_coze_design = require("@coze-arch/coze-design");
38
28
  var import_model_config_form = require("../model-config-editor/model-config-form");
39
29
  var import_consts = require("../consts");
@@ -53,9 +43,9 @@ const convertModelToModelConfig = (model) => {
53
43
  };
54
44
  };
55
45
  const renderModelOfflineTag = (model) => {
56
- if ((model == null ? void 0 : model.modelStatus) === FornaxMlFlow.ModelStatus.Offlining) {
46
+ if ((model == null ? void 0 : model.modelStatus) === import_fornax_ml_flow2.ml_flow_domain_model.ModelStatus.Offlining) {
57
47
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_coze_design.Tag, { color: "yellow", className: "flex-shrink-0", size: "mini", children: "下线中" });
58
- } else if ((model == null ? void 0 : model.modelStatus) === FornaxMlFlow.ModelStatus.Unavailable) {
48
+ } else if ((model == null ? void 0 : model.modelStatus) === import_fornax_ml_flow2.ml_flow_domain_model.ModelStatus.Unavailable) {
59
49
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_coze_design.Tag, { color: "red", className: "flex-shrink-0", size: "mini", children: "已下线" });
60
50
  }
61
51
  return null;
@@ -28,37 +28,8 @@ import * as stone_fornax_ml_flow_openapi_datasetservicev2 from './namespaces/sto
28
28
  import * as stone_fornax_ml_flow_tagservice from './namespaces/stone_fornax_ml_flow_tagservice';
29
29
  import * as tag from './namespaces/tag';
30
30
  export { ai_annotate, aidpcallback, annotation_job, base, batch_infer, dataprocess, dataset, datasetv2, datasetv2job, datasetv2similarity, filter, flow_devops_evaluation_callback_common, flow_devops_prompt_common, fornax_domain_model, ml_flow_domain_model, openapi, stone_fornax_ml_flow_annotateservice, stone_fornax_ml_flow_annotationjobservice, stone_fornax_ml_flow_batchinferservice, stone_fornax_ml_flow_crowdsourcingannotationjobservice, stone_fornax_ml_flow_dataprocessservice, stone_fornax_ml_flow_datasetservice, stone_fornax_ml_flow_datasetservicev2, stone_fornax_ml_flow_modelservice, stone_fornax_ml_flow_openapi_annotationjobservice, stone_fornax_ml_flow_openapi_batchinferservice, stone_fornax_ml_flow_openapi_datasetservicev2, stone_fornax_ml_flow_tagservice, tag };
31
- export * from './namespaces/ai_annotate';
32
- export * from './namespaces/aidpcallback';
33
- export * from './namespaces/annotation_job';
34
- export * from './namespaces/base';
35
- export * from './namespaces/batch_infer';
36
- export * from './namespaces/dataprocess';
37
- export * from './namespaces/dataset';
38
- export * from './namespaces/datasetv2';
39
- export * from './namespaces/datasetv2job';
40
- export * from './namespaces/datasetv2similarity';
41
- export * from './namespaces/filter';
42
- export * from './namespaces/flow_devops_evaluation_callback_common';
43
- export * from './namespaces/flow_devops_prompt_common';
44
- export * from './namespaces/fornax_domain_model';
45
- export * from './namespaces/ml_flow_domain_model';
46
- export * from './namespaces/openapi';
47
- export * from './namespaces/stone_fornax_ml_flow_annotateservice';
48
- export * from './namespaces/stone_fornax_ml_flow_annotationjobservice';
49
- export * from './namespaces/stone_fornax_ml_flow_batchinferservice';
50
- export * from './namespaces/stone_fornax_ml_flow_crowdsourcingannotationjobservice';
51
- export * from './namespaces/stone_fornax_ml_flow_dataprocessservice';
52
- export * from './namespaces/stone_fornax_ml_flow_datasetservice';
53
- export * from './namespaces/stone_fornax_ml_flow_datasetservicev2';
54
- export * from './namespaces/stone_fornax_ml_flow_modelservice';
55
- export * from './namespaces/stone_fornax_ml_flow_openapi_annotationjobservice';
56
- export * from './namespaces/stone_fornax_ml_flow_openapi_batchinferservice';
57
- export * from './namespaces/stone_fornax_ml_flow_openapi_datasetservicev2';
58
- export * from './namespaces/stone_fornax_ml_flow_tagservice';
59
- export * from './namespaces/tag';
60
31
  export type Int64 = string | number;
61
- export default class FornaxMlFlowService<T> {
32
+ export default class FornaxMlFlow2Service<T> {
62
33
  private request;
63
34
  private baseURL;
64
35
  constructor(options?: {
@@ -13,22 +13,8 @@ import * as model from './namespaces/model';
13
13
  import * as permission from './namespaces/permission';
14
14
  import * as release from './namespaces/release';
15
15
  export { base, flow_devops_prompt_callback, flow_devops_prompt_commercial_openapi, flow_devops_prompt_common, flow_devops_prompt_debug, flow_devops_prompt_manage, flow_devops_prompt_mcp, flow_devops_prompt_optimize, flow_devops_prompt_paas, flow_devops_prompt_platform, mcp, model, permission, release };
16
- export * from './namespaces/base';
17
- export * from './namespaces/flow_devops_prompt_callback';
18
- export * from './namespaces/flow_devops_prompt_commercial_openapi';
19
- export * from './namespaces/flow_devops_prompt_common';
20
- export * from './namespaces/flow_devops_prompt_debug';
21
- export * from './namespaces/flow_devops_prompt_manage';
22
- export * from './namespaces/flow_devops_prompt_mcp';
23
- export * from './namespaces/flow_devops_prompt_optimize';
24
- export * from './namespaces/flow_devops_prompt_paas';
25
- export * from './namespaces/flow_devops_prompt_platform';
26
- export * from './namespaces/mcp';
27
- export * from './namespaces/model';
28
- export * from './namespaces/permission';
29
- export * from './namespaces/release';
30
16
  export type Int64 = string | number;
31
- export default class PromptApiService<T> {
17
+ export default class PromptApi2Service<T> {
32
18
  private request;
33
19
  private baseURL;
34
20
  constructor(options?: {
@@ -1,5 +1,5 @@
1
1
  import { type CSSProperties } from 'react';
2
- import { type flow_devops_prompt_common } from '../idls/prompt_api';
2
+ import { type flow_devops_prompt_common } from '../idls/prompt_api2';
3
3
  import { type ModelSelectProps } from '../model-select';
4
4
  export interface BasicModelConfigEditorProps {
5
5
  className?: string;
@@ -1,7 +1,7 @@
1
- import { type Model, type ModelParam } from '../idls/fornax_ml_flow';
1
+ import { type ml_flow_domain_model } from '../idls/fornax_ml_flow2';
2
2
  import { type LabelProps } from '@coze-arch/coze-design';
3
3
  export declare const convertInt64ToNumber: (v?: Int64) => number | undefined;
4
- export declare const getInputSliderConfig: (key: string, modelParams: ModelParam[]) => {
4
+ export declare const getInputSliderConfig: (key: string, modelParams: ml_flow_domain_model.ModelParam[]) => {
5
5
  min?: number;
6
6
  max?: number;
7
7
  defaultValue?: number;
@@ -10,5 +10,5 @@ export declare const getInputSliderConfig: (key: string, modelParams: ModelParam
10
10
  export declare function ModelConfigForm({
11
11
  model
12
12
  }: {
13
- model?: Model;
13
+ model?: ml_flow_domain_model.Model;
14
14
  }): import("react/jsx-runtime").JSX.Element | null;
@@ -1,6 +1,6 @@
1
1
  import { type CSSProperties } from 'react';
2
- import { type flow_devops_prompt_common } from '../idls/prompt_api';
3
- import { type Model } from '../idls/fornax_ml_flow';
2
+ import { type flow_devops_prompt_common } from '../idls/prompt_api2';
3
+ import { type ml_flow_domain_model } from '../idls/fornax_ml_flow2';
4
4
  import { type PopoverProps } from '@coze-arch/coze-design';
5
5
  import { type ModelSelectProps } from '../model-select';
6
6
  interface ModelConfigPopoverProps {
@@ -12,7 +12,7 @@ interface ModelConfigPopoverProps {
12
12
  wrapStyle?: CSSProperties;
13
13
  };
14
14
  onChange?: (value?: flow_devops_prompt_common.ModelConfig) => void;
15
- renderDisplayContent?: (model?: Model, isPopoverVisible?: boolean) => React.ReactNode;
15
+ renderDisplayContent?: (model?: ml_flow_domain_model.Model, isPopoverVisible?: boolean) => React.ReactNode;
16
16
  }
17
17
  export declare function PopoverModelConfigEdiotr({
18
18
  value,
@@ -1,6 +1,6 @@
1
1
  import { type CSSProperties } from 'react';
2
- import { type Model, type Int64 } from '../idls/fornax_ml_flow';
3
- interface ModelExtra extends Model {
2
+ import { type ml_flow_domain_model } from '../idls/fornax_ml_flow2';
3
+ interface ModelExtra extends ml_flow_domain_model.Model {
4
4
  disabled?: boolean;
5
5
  }
6
6
  interface ModelListDataProps {
@@ -12,13 +12,13 @@ interface ModelListDataProps {
12
12
  export interface ModelSelectProps {
13
13
  className?: string;
14
14
  style?: CSSProperties;
15
- value?: Model;
15
+ value?: ml_flow_domain_model.Model;
16
16
  disabled?: boolean;
17
17
  defaultSelectFirstModel?: boolean;
18
18
  modelListData?: ModelListDataProps;
19
19
  loading?: boolean;
20
20
  optionCustomRender?: (item: ModelExtra) => React.ReactNode;
21
- onChange?: (v?: Model) => void;
21
+ onChange?: (v?: ml_flow_domain_model.Model) => void;
22
22
  loadMore?: () => void;
23
23
  valueKey?: string;
24
24
  }
@@ -1,6 +1,6 @@
1
- import { type Model } from '../../idls/fornax_ml_flow';
1
+ import { type ml_flow_domain_model } from '../../idls/fornax_ml_flow2';
2
2
  export type ModelOptionProps = {
3
- model: Model;
3
+ model: ml_flow_domain_model.Model;
4
4
  selected?: boolean;
5
5
  disabled?: boolean;
6
6
  /** 返回是否切换成功 */
@@ -1,5 +1,5 @@
1
1
  import { type ReactNode } from 'react';
2
- import { flow_devops_prompt_common } from '../idls/prompt_api';
2
+ import { flow_devops_prompt_common } from '../idls/prompt_api2';
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 '../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;
1
+ import { type flow_devops_prompt_common } from '../idls/prompt_api2';
2
+ import { ml_flow_domain_model } from '../idls/fornax_ml_flow2';
3
+ export declare const convertModelToModelConfig: (model?: ml_flow_domain_model.Model) => flow_devops_prompt_common.ModelConfig;
4
+ export declare const renderModelOfflineTag: (model?: ml_flow_domain_model.Model) => import("react/jsx-runtime").JSX.Element | null;
package/package.json CHANGED
@@ -1,15 +1,16 @@
1
1
  {
2
2
  "name": "@cozeloop/prompt-components",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "Prompt common components for cozeloop",
5
5
  "author": "cozeloop",
6
6
  "main": "./dist/lib/index.js",
7
7
  "scripts": {
8
- "build": "exit 0",
8
+ "build": "tsc -b tsconfig.build.json && edenx build",
9
9
  "lint": "eslint ./ --cache",
10
10
  "pub": "node publish.js",
11
11
  "test": "exit 0",
12
- "test:cov": "exit 0"
12
+ "test:cov": "exit 0",
13
+ "vite:build": "vite build"
13
14
  },
14
15
  "dependencies": {
15
16
  "@codemirror/commands": "^6.3.3",
@@ -55,12 +56,15 @@
55
56
  "@types/lodash-es": "^4.17.10",
56
57
  "@types/react": "18.2.37",
57
58
  "@types/react-dom": "18.2.15",
59
+ "@vitejs/plugin-react": "^4.2.1",
58
60
  "@vitest/coverage-v8": "~3.0.5",
59
61
  "happy-dom": "^12.10.3",
62
+ "json5": "^2.2.1",
60
63
  "react-dom": "~18.2.0",
61
64
  "storybook": "^7.6.7",
62
65
  "tsconfig-paths": "4.1.0",
63
66
  "vite": "^4.3.9",
67
+ "vite-plugin-dts": "^3.6.4",
64
68
  "vite-plugin-svgr": "~3.3.0",
65
69
  "vitest": "~3.0.5"
66
70
  },