@shenghuabi/workflow 1.0.3 → 1.0.5
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/index.js +17 -17
- package/index.js.map +2 -2
- package/index.mjs +24 -28
- package/index.mjs.map +3 -3
- package/inline/node/chat/chat.node.define.d.ts +5 -5
- package/inline/node/chat/main/index.d.ts +5 -5
- package/package.json +5 -3
- package/share/common/handle.define.d.ts +2 -2
- package/share/common/llm.define.d.ts +3 -3
- package/share/index.js +14 -14
- package/share/index.js.map +2 -2
- package/share/index.mjs +20 -23
- package/share/index.mjs.map +3 -3
- package/webview/index.js +12 -12
- package/webview/index.js.map +2 -2
- package/webview/index.mjs +18 -20
- package/webview/index.mjs.map +3 -3
package/index.js
CHANGED
|
@@ -179,7 +179,7 @@ var v = __toESM(require("valibot"), 1);
|
|
|
179
179
|
// packages/workflow/share/util/layout.ts
|
|
180
180
|
var import_view_angular_core = require("@piying/view-angular-core");
|
|
181
181
|
function asColumn() {
|
|
182
|
-
return
|
|
182
|
+
return import_view_angular_core.actions.class.component("grid gap-2");
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
// packages/workflow/share/common/examples.define.ts
|
|
@@ -195,23 +195,23 @@ var EXAMPLES_DEFINE = v.pipe(
|
|
|
195
195
|
v.description(
|
|
196
196
|
"选中后会尝试使用yaml解析为对象,再序列化为对应的响应类型"
|
|
197
197
|
),
|
|
198
|
-
|
|
198
|
+
import_view_angular_core2.actions.wrappers.set(["tooltip"])
|
|
199
199
|
),
|
|
200
|
-
value: v.pipe(v.string(), v.title("问题"),
|
|
200
|
+
value: v.pipe(v.string(), v.title("问题"), import_view_angular_core2.actions.class.top("flex-1"))
|
|
201
201
|
}),
|
|
202
202
|
// todo 待修复
|
|
203
|
-
|
|
203
|
+
import_view_angular_core2.actions.class.top("flex gap-2 items-center")
|
|
204
204
|
),
|
|
205
205
|
output: v.pipe(
|
|
206
206
|
v.object({
|
|
207
207
|
format: v.pipe(
|
|
208
208
|
v.optional(v.boolean(), false),
|
|
209
209
|
v.description("是否需要格式化"),
|
|
210
|
-
|
|
210
|
+
import_view_angular_core2.actions.wrappers.set(["tooltip"])
|
|
211
211
|
),
|
|
212
|
-
value: v.pipe(v.string(), v.title("回答"),
|
|
212
|
+
value: v.pipe(v.string(), v.title("回答"), import_view_angular_core2.actions.class.top("flex-1"))
|
|
213
213
|
}),
|
|
214
|
-
|
|
214
|
+
import_view_angular_core2.actions.class.top("flex gap-2 items-center")
|
|
215
215
|
)
|
|
216
216
|
}),
|
|
217
217
|
asColumn()
|
|
@@ -266,8 +266,8 @@ var INLINE_Template = v3.pipe(
|
|
|
266
266
|
v3.optional(v3.string(), "{{NODE.description}}"),
|
|
267
267
|
v3.title("模板"),
|
|
268
268
|
v3.description("允许使用变量:{{NODE.xxx}}(参考节点帮助)"),
|
|
269
|
-
|
|
270
|
-
|
|
269
|
+
import_view_angular_core4.actions.wrappers.set(["tooltip", "form-field"]),
|
|
270
|
+
import_view_angular_core4.actions.class.top("flex-1"),
|
|
271
271
|
(0, import_view_angular_core4.disableWhen)({
|
|
272
272
|
listen: (fn) => fn({
|
|
273
273
|
list: [["..", "enable"]]
|
|
@@ -275,7 +275,7 @@ var INLINE_Template = v3.pipe(
|
|
|
275
275
|
})
|
|
276
276
|
)
|
|
277
277
|
}),
|
|
278
|
-
|
|
278
|
+
import_view_angular_core4.actions.class.component("flex gap-2")
|
|
279
279
|
);
|
|
280
280
|
var INLINE_Template2 = v3.pipe(
|
|
281
281
|
v3.object({
|
|
@@ -285,8 +285,8 @@ var INLINE_Template2 = v3.pipe(
|
|
|
285
285
|
v3.optional(v3.string()),
|
|
286
286
|
v3.title("模板"),
|
|
287
287
|
v3.description("允许使用变量:{{ENTRY.xxx}}(参考节点帮助)"),
|
|
288
|
-
|
|
289
|
-
|
|
288
|
+
import_view_angular_core4.actions.wrappers.set(["tooltip", "form-field"]),
|
|
289
|
+
import_view_angular_core4.actions.class.top("flex-1"),
|
|
290
290
|
(0, import_view_angular_core4.disableWhen)({
|
|
291
291
|
listen: (fn) => fn({
|
|
292
292
|
list: [["..", "enable"]]
|
|
@@ -294,7 +294,7 @@ var INLINE_Template2 = v3.pipe(
|
|
|
294
294
|
})
|
|
295
295
|
)
|
|
296
296
|
}),
|
|
297
|
-
|
|
297
|
+
import_view_angular_core4.actions.class.component("flex gap-2 items-center")
|
|
298
298
|
);
|
|
299
299
|
|
|
300
300
|
// packages/workflow/share/common/llm.define.ts
|
|
@@ -312,7 +312,7 @@ function llmModelConfig(item) {
|
|
|
312
312
|
v4.optional(v4.string()),
|
|
313
313
|
v4.title("预定义模型配置"),
|
|
314
314
|
(0, import_view_angular_core5.setComponent)("select"),
|
|
315
|
-
|
|
315
|
+
import_view_angular_core5.actions.inputs.patchAsync({
|
|
316
316
|
options: (field) => field.context.getModelList()
|
|
317
317
|
})
|
|
318
318
|
),
|
|
@@ -454,7 +454,7 @@ var CHAT_NODE_DEFINE = v7.looseObject({
|
|
|
454
454
|
/** 处理时解析 */
|
|
455
455
|
responseFormat: v7.pipe(
|
|
456
456
|
v7.optional(v7.picklist(ResponseFormat)),
|
|
457
|
-
|
|
457
|
+
import_view_angular_core6.actions.inputs.patch({
|
|
458
458
|
options: [
|
|
459
459
|
// 有输入json时
|
|
460
460
|
{
|
|
@@ -480,7 +480,7 @@ var CHAT_NODE_DEFINE = v7.looseObject({
|
|
|
480
480
|
/** 处理后解析 */
|
|
481
481
|
parseBy: v7.pipe(
|
|
482
482
|
v7.optional(v7.picklist(ResponseList)),
|
|
483
|
-
|
|
483
|
+
import_view_angular_core6.actions.inputs.patch({
|
|
484
484
|
options: [
|
|
485
485
|
{ label: "直接返回", value: void 0 },
|
|
486
486
|
{
|
|
@@ -515,7 +515,7 @@ var CHAT_NODE_DEFINE = v7.looseObject({
|
|
|
515
515
|
),
|
|
516
516
|
examples: EXAMPLES_DEFINE
|
|
517
517
|
}),
|
|
518
|
-
|
|
518
|
+
import_view_angular_core6.actions.class.component("grid auto-rows-auto gap-2")
|
|
519
519
|
),
|
|
520
520
|
value: v7.pipe(
|
|
521
521
|
v7.custom(Boolean),
|