@freecallai/pro 0.0.0-stage → 0.0.2

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 (127) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +16 -2
  3. package/dist/FkpRichText.vue_vue_type_script_setup_true_lang-BuMz8Tyy.js +4416 -0
  4. package/dist/KnowledgeArea-BkRVWFrg.js +1224 -0
  5. package/dist/ToolForm-BSJxTJ7U.js +185 -0
  6. package/dist/choice-DDg5gNtS.js +29 -0
  7. package/dist/index-BVHYCLDv.js +5 -0
  8. package/dist/index-BnFTr8u9.js +49 -0
  9. package/dist/index-CG2j9Znw.js +41 -0
  10. package/dist/index-CJlAseSN.js +15 -0
  11. package/dist/index-CzpY61Qj.js +6 -0
  12. package/dist/index-D8bcFtWR.js +6 -0
  13. package/dist/index-DSgEWJGP.js +6 -0
  14. package/dist/index-DxxX09iY.js +6 -0
  15. package/dist/index-kOPLn4DD.js +5 -0
  16. package/dist/index-nnvfy5q0.js +31 -0
  17. package/dist/index-urNonkMH.js +6 -0
  18. package/dist/index.js +16 -0
  19. package/dist/inline-TT_dl8Y3.js +17 -0
  20. package/dist/knowledge-BZCmalF_.js +6 -0
  21. package/dist/knowledge-DnYGicjn.js +13 -0
  22. package/dist/media-extensions-ZoxmhIhH.js +276 -0
  23. package/dist/media-migration-Cj-3xrxd.js +59 -0
  24. package/dist/media-upload-D7DpMJYx.js +69 -0
  25. package/dist/operations-JgnjGx3H.js +19 -0
  26. package/dist/question-D1--acV8.js +10 -0
  27. package/dist/question-DGC6JHy5.js +6 -0
  28. package/dist/rich-text/index.js +224 -0
  29. package/dist/rich-text/legacy-converter/index.js +930 -0
  30. package/dist/rules-CC6NoltX.js +811 -0
  31. package/dist/selection-state-D47jhx0U.js +20 -0
  32. package/dist/state-KfOqha3d.js +16 -0
  33. package/dist/style.css +1 -0
  34. package/dist/types/index.d.ts +10 -0
  35. package/dist/types/rich-text/FkpRichText.vue.d.ts +253 -0
  36. package/dist/types/rich-text/MediaView.vue.d.ts +92 -0
  37. package/dist/types/rich-text/__demo__/conversion-fixtures.d.ts +35 -0
  38. package/dist/types/rich-text/__demo__/reasoning-template-examples.d.ts +12 -0
  39. package/dist/types/rich-text/config/catalog.d.ts +3 -0
  40. package/dist/types/rich-text/config/descriptor.d.ts +58 -0
  41. package/dist/types/rich-text/config/media-options.d.ts +6 -0
  42. package/dist/types/rich-text/config/resolve.d.ts +17 -0
  43. package/dist/types/rich-text/config/selection-options.d.ts +6 -0
  44. package/dist/types/rich-text/extensions.d.ts +6 -0
  45. package/dist/types/rich-text/index.d.ts +17 -0
  46. package/dist/types/rich-text/legacy-converter/business-attribute.d.ts +32 -0
  47. package/dist/types/rich-text/legacy-converter/index.d.ts +46 -0
  48. package/dist/types/rich-text/legacy-converter/tool-contract.d.ts +5 -0
  49. package/dist/types/rich-text/media-extensions.d.ts +4 -0
  50. package/dist/types/rich-text/media-id.d.ts +2 -0
  51. package/dist/types/rich-text/model/agent-context.d.ts +7 -0
  52. package/dist/types/rich-text/model/capability-diff.d.ts +14 -0
  53. package/dist/types/rich-text/model/condition-contract.d.ts +10 -0
  54. package/dist/types/rich-text/model/convert.d.ts +6 -0
  55. package/dist/types/rich-text/model/guard.d.ts +7 -0
  56. package/dist/types/rich-text/model/json-value.d.ts +2 -0
  57. package/dist/types/rich-text/model/media-migration.d.ts +8 -0
  58. package/dist/types/rich-text/model/node-contract.d.ts +10 -0
  59. package/dist/types/rich-text/model/node-identity.d.ts +8 -0
  60. package/dist/types/rich-text/model/persistence-contract.d.ts +25 -0
  61. package/dist/types/rich-text/model/preview.d.ts +2 -0
  62. package/dist/types/rich-text/model/question-text.d.ts +15 -0
  63. package/dist/types/rich-text/model/reasoning-context.d.ts +24 -0
  64. package/dist/types/rich-text/model/scene-snapshot.d.ts +4 -0
  65. package/dist/types/rich-text/model/validate.d.ts +19 -0
  66. package/dist/types/rich-text/model/web-url.d.ts +2 -0
  67. package/dist/types/rich-text/plugins/agentSelect/descriptor.d.ts +2 -0
  68. package/dist/types/rich-text/plugins/attribute/descriptor.d.ts +2 -0
  69. package/dist/types/rich-text/plugins/attribute/index.d.ts +2 -0
  70. package/dist/types/rich-text/plugins/block.d.ts +3 -0
  71. package/dist/types/rich-text/plugins/choice.d.ts +4 -0
  72. package/dist/types/rich-text/plugins/image/descriptor.d.ts +2 -0
  73. package/dist/types/rich-text/plugins/image/index.d.ts +2 -0
  74. package/dist/types/rich-text/plugins/inline.d.ts +3 -0
  75. package/dist/types/rich-text/plugins/media-upload.d.ts +3 -0
  76. package/dist/types/rich-text/plugins/memory/descriptor.d.ts +2 -0
  77. package/dist/types/rich-text/plugins/memory/index.d.ts +2 -0
  78. package/dist/types/rich-text/plugins/operations.d.ts +86 -0
  79. package/dist/types/rich-text/plugins/originalReply/descriptor.d.ts +2 -0
  80. package/dist/types/rich-text/plugins/originalReply/knowledge.d.ts +2 -0
  81. package/dist/types/rich-text/plugins/originalReply/question.d.ts +2 -0
  82. package/dist/types/rich-text/plugins/reasoningPolish/descriptor.d.ts +2 -0
  83. package/dist/types/rich-text/plugins/reasoningPolish/index.d.ts +3 -0
  84. package/dist/types/rich-text/plugins/reasoningTemplate/descriptor.d.ts +2 -0
  85. package/dist/types/rich-text/plugins/reasoningTemplate/index.d.ts +3 -0
  86. package/dist/types/rich-text/plugins/registry.d.ts +14 -0
  87. package/dist/types/rich-text/plugins/selection-state.d.ts +4 -0
  88. package/dist/types/rich-text/plugins/separator/descriptor.d.ts +2 -0
  89. package/dist/types/rich-text/plugins/separator/index.d.ts +2 -0
  90. package/dist/types/rich-text/plugins/state.d.ts +3 -0
  91. package/dist/types/rich-text/plugins/tagged/descriptor.d.ts +2 -0
  92. package/dist/types/rich-text/plugins/tagged/index.d.ts +2 -0
  93. package/dist/types/rich-text/plugins/ticket/descriptor.d.ts +2 -0
  94. package/dist/types/rich-text/plugins/ticket/index.d.ts +2 -0
  95. package/dist/types/rich-text/plugins/todo/descriptor.d.ts +2 -0
  96. package/dist/types/rich-text/plugins/todo/knowledge.d.ts +2 -0
  97. package/dist/types/rich-text/plugins/todo/question.d.ts +2 -0
  98. package/dist/types/rich-text/plugins/tool/descriptor.d.ts +2 -0
  99. package/dist/types/rich-text/plugins/tool/index.d.ts +2 -0
  100. package/dist/types/rich-text/plugins/tool/operations.d.ts +4 -0
  101. package/dist/types/rich-text/plugins/tool/presentation.d.ts +7 -0
  102. package/dist/types/rich-text/plugins/tool/rules.d.ts +34 -0
  103. package/dist/types/rich-text/plugins/variable/descriptor.d.ts +2 -0
  104. package/dist/types/rich-text/plugins/variable/index.d.ts +2 -0
  105. package/dist/types/rich-text/plugins/video/descriptor.d.ts +2 -0
  106. package/dist/types/rich-text/plugins/video/index.d.ts +2 -0
  107. package/dist/types/rich-text/public/types.d.ts +598 -0
  108. package/dist/types/rich-text/runtime/action-ports.d.ts +15 -0
  109. package/dist/types/rich-text/runtime/file-drop-guard.d.ts +2 -0
  110. package/dist/types/rich-text/runtime/media-policy.d.ts +15 -0
  111. package/dist/types/rich-text/runtime/media-state.d.ts +6 -0
  112. package/dist/types/rich-text/runtime/media-target.d.ts +9 -0
  113. package/dist/types/rich-text/runtime/media-upload-session.d.ts +63 -0
  114. package/dist/types/rich-text/runtime/media-upload-slots.d.ts +4 -0
  115. package/dist/types/rich-text/runtime/operations.d.ts +48 -0
  116. package/dist/types/rich-text/runtime/option-menu-session.d.ts +28 -0
  117. package/dist/types/rich-text/runtime/option-source.d.ts +10 -0
  118. package/dist/types/rich-text/runtime/port-result.d.ts +21 -0
  119. package/dist/types/rich-text/runtime/schema-plan.d.ts +17 -0
  120. package/dist/types/rich-text/runtime/tool-form-session.d.ts +39 -0
  121. package/dist/types/rich-text/runtime/tool-params.d.ts +5 -0
  122. package/dist/types/rich-text/types.d.ts +40 -0
  123. package/dist/types/rich-text/ui/CapabilityHelp.vue.d.ts +9 -0
  124. package/dist/types/rich-text/ui/KnowledgeArea.vue.d.ts +124 -0
  125. package/dist/types/rich-text/ui/ToolForm.vue.d.ts +14 -0
  126. package/dist/types/rich-text/ui/VariableOptionList.vue.d.ts +15 -0
  127. package/package.json +70 -3
@@ -0,0 +1,185 @@
1
+ import { defineComponent as T, ref as w, watch as q, openBlock as t, createElementBlock as n, Fragment as h, renderList as S, normalizeClass as _, createElementVNode as k, createTextVNode as c, toDisplayString as s, createCommentVNode as g, createVNode as f, unref as u, withCtx as b, createBlock as x, normalizeStyle as B } from "vue";
2
+ import { RadioGroup as F, Radio as E, Checkbox as P, Switch as W, Textarea as z, Input as R, Button as V } from "@freecallai/ui";
3
+ import { d as j } from "./FkpRichText.vue_vue_type_script_setup_true_lang-BuMz8Tyy.js";
4
+ const D = { class: "fkp-tool-form" }, G = { key: 0 }, O = { class: "fkp-visually-hidden" }, A = {
5
+ key: 1,
6
+ class: "fkp-tool-form-checkbox"
7
+ }, H = { key: 0 }, J = {
8
+ key: 0,
9
+ class: "fkp-tool-form-error",
10
+ role: "alert"
11
+ }, K = { class: "fkp-tool-form-actions" }, X = /* @__PURE__ */ T({
12
+ __name: "ToolForm",
13
+ props: {
14
+ definition: {},
15
+ initialParams: {},
16
+ submitLabel: {}
17
+ },
18
+ emits: ["submit", "cancel"],
19
+ setup($, { emit: I }) {
20
+ const d = $, C = I, o = w({}), i = w("");
21
+ q(
22
+ () => [d.definition, d.initialParams],
23
+ () => {
24
+ o.value = Object.fromEntries(
25
+ d.definition.fields.map((l) => [
26
+ l.id,
27
+ j(l, d.initialParams)
28
+ ])
29
+ ), i.value = "";
30
+ },
31
+ { immediate: !0 }
32
+ );
33
+ function p(l) {
34
+ return l.visibleWhen ? o.value[l.visibleWhen.fieldId] === l.visibleWhen.equals : !0;
35
+ }
36
+ function L(l, r) {
37
+ o.value[l.id] = l.maxLength === void 0 ? r : r.slice(0, l.maxLength);
38
+ }
39
+ function N(l) {
40
+ var a;
41
+ const r = {};
42
+ for (const e of d.definition.fields) {
43
+ if (!p(e)) continue;
44
+ const y = o.value[e.id];
45
+ if (e.kind === "switch" || e.kind === "checkbox") {
46
+ if (e.required && y !== !0) {
47
+ i.value = `请选择${e.label}`;
48
+ return;
49
+ }
50
+ r[e.id] = y === !0;
51
+ continue;
52
+ }
53
+ const m = String(y ?? "").trim();
54
+ if (e.required && !m) {
55
+ i.value = `请填写${e.label}`;
56
+ return;
57
+ }
58
+ if (e.maxLength !== void 0 && [...m].length > e.maxLength) {
59
+ i.value = `${e.label}不能超过${e.maxLength}字`;
60
+ return;
61
+ }
62
+ if (e.kind === "radio" && !((a = e.options) != null && a.some((v) => v.value === m))) {
63
+ i.value = `请选择${e.label}`;
64
+ return;
65
+ }
66
+ if (e.kind === "number" && m) {
67
+ const v = Number(m);
68
+ if (!Number.isFinite(v) || e.min !== void 0 && v < e.min || e.max !== void 0 && v > e.max) {
69
+ i.value = `${e.label}数值无效`;
70
+ return;
71
+ }
72
+ }
73
+ r[e.id] = m;
74
+ }
75
+ i.value = "", C("submit", r, l.currentTarget);
76
+ }
77
+ return (l, r) => (t(), n("div", D, [
78
+ (t(!0), n(h, null, S(l.definition.fields, (a) => (t(), n(h, {
79
+ key: a.id
80
+ }, [
81
+ p(a) && a.kind === "radio" ? (t(), n("fieldset", {
82
+ key: 0,
83
+ class: _(["fkp-tool-form-field fkp-tool-form-choice", { "fkp-tool-form-flags": a.appearance === "flag" }])
84
+ }, [
85
+ k("legend", null, [
86
+ c(s(a.label), 1),
87
+ a.required ? (t(), n("b", G, "*")) : g("", !0)
88
+ ]),
89
+ f(u(F), {
90
+ "model-value": String(o.value[a.id] ?? ""),
91
+ onChange: (e) => o.value[a.id] = String(e)
92
+ }, {
93
+ default: b(() => [
94
+ (t(!0), n(h, null, S(a.options || [], (e) => (t(), x(u(E), {
95
+ key: e.value,
96
+ value: e.value,
97
+ "aria-label": e.label
98
+ }, {
99
+ default: b(() => [
100
+ a.appearance === "flag" && e.color ? (t(), n("span", {
101
+ key: 0,
102
+ class: "fkp-tool-form-flag",
103
+ style: B({ "--fkp-flag-color": e.color })
104
+ }, [
105
+ k("span", O, s(e.label), 1)
106
+ ], 4)) : (t(), n(h, { key: 1 }, [
107
+ c(s(e.label), 1)
108
+ ], 64))
109
+ ]),
110
+ _: 2
111
+ }, 1032, ["value", "aria-label"]))), 128))
112
+ ]),
113
+ _: 2
114
+ }, 1032, ["model-value", "onChange"])
115
+ ], 2)) : p(a) && a.kind === "checkbox" ? (t(), n("div", A, [
116
+ f(u(P), {
117
+ "model-value": o.value[a.id] === !0,
118
+ onChange: (e) => o.value[a.id] = e === !0
119
+ }, {
120
+ default: b(() => [
121
+ c(s(a.label), 1)
122
+ ]),
123
+ _: 2
124
+ }, 1032, ["model-value", "onChange"])
125
+ ])) : p(a) ? (t(), n("label", {
126
+ key: 2,
127
+ class: _(["fkp-tool-form-field", { "fkp-tool-form-field--no-label": a.hideLabel }])
128
+ }, [
129
+ k("span", {
130
+ class: _({ "fkp-visually-hidden": a.hideLabel })
131
+ }, [
132
+ c(s(a.label), 1),
133
+ a.required ? (t(), n("b", H, "*")) : g("", !0)
134
+ ], 2),
135
+ a.kind === "switch" ? (t(), x(u(W), {
136
+ key: 0,
137
+ "model-value": o.value[a.id] === !0,
138
+ "aria-label": a.label,
139
+ onChange: (e) => o.value[a.id] = e === !0
140
+ }, null, 8, ["model-value", "aria-label", "onChange"])) : a.kind === "textarea" ? (t(), x(u(z), {
141
+ key: 1,
142
+ "model-value": String(o.value[a.id] ?? ""),
143
+ placeholder: a.placeholder,
144
+ "max-length": a.maxLength,
145
+ "show-word-limit": !!a.maxLength,
146
+ "textarea-attrs": { "aria-label": a.label, rows: 4 },
147
+ onInput: (e) => L(a, String(e))
148
+ }, null, 8, ["model-value", "placeholder", "max-length", "show-word-limit", "textarea-attrs", "onInput"])) : (t(), x(u(R), {
149
+ key: 2,
150
+ "model-value": String(o.value[a.id] ?? ""),
151
+ placeholder: a.placeholder,
152
+ "input-attrs": {
153
+ type: a.kind === "number" ? "number" : "text",
154
+ "aria-label": a.label
155
+ },
156
+ onInput: (e) => L(a, String(e))
157
+ }, null, 8, ["model-value", "placeholder", "input-attrs", "onInput"]))
158
+ ], 2)) : g("", !0)
159
+ ], 64))), 128)),
160
+ i.value ? (t(), n("p", J, s(i.value), 1)) : g("", !0),
161
+ k("div", K, [
162
+ f(u(V), {
163
+ onClick: r[0] || (r[0] = (a) => C("cancel"))
164
+ }, {
165
+ default: b(() => r[1] || (r[1] = [
166
+ c("取消")
167
+ ])),
168
+ _: 1
169
+ }),
170
+ f(u(V), {
171
+ type: "primary",
172
+ onClick: N
173
+ }, {
174
+ default: b(() => [
175
+ c(s(l.submitLabel), 1)
176
+ ]),
177
+ _: 1
178
+ })
179
+ ])
180
+ ]));
181
+ }
182
+ });
183
+ export {
184
+ X as default
185
+ };
@@ -0,0 +1,29 @@
1
+ import { m as r } from "./inline-TT_dl8Y3.js";
2
+ const s = {
3
+ execute(o, e, t) {
4
+ if (!e.option) return [];
5
+ if (!e.edit) return r.execute(o, e, t);
6
+ const { nodeId: d, nodeVersion: n } = e.edit;
7
+ return [
8
+ {
9
+ kind: "updateOwnNode",
10
+ capabilityId: o,
11
+ nodeId: d,
12
+ expectedNodeVersion: n,
13
+ node: {
14
+ type: "businessToken",
15
+ attrs: {
16
+ id: d,
17
+ nodeVersion: n + 1,
18
+ kind: o,
19
+ key: e.option.id,
20
+ label: e.option.label
21
+ }
22
+ }
23
+ }
24
+ ];
25
+ }
26
+ };
27
+ export {
28
+ s as c
29
+ };
@@ -0,0 +1,5 @@
1
+ import { c as e } from "./media-upload-D7DpMJYx.js";
2
+ const o = e("image");
3
+ export {
4
+ o as default
5
+ };
@@ -0,0 +1,49 @@
1
+ import { p as n, h as i } from "./FkpRichText.vue_vue_type_script_setup_true_lang-BuMz8Tyy.js";
2
+ const c = {
3
+ id: "reasoningTemplate",
4
+ slot: "sceneAction",
5
+ apiVersion: 1,
6
+ dataVersion: 1,
7
+ actions: {
8
+ "reasoningTemplate.load": {
9
+ async execute(r, a) {
10
+ const { option: e } = r;
11
+ if (!e || typeof e.id != "string" || !e.id || typeof e.label != "string" || !e.label.trim())
12
+ return {
13
+ ok: !1,
14
+ error: {
15
+ code: "INVALID_RESPONSE",
16
+ message: "模板选项无效",
17
+ retryable: !1
18
+ }
19
+ };
20
+ const o = a.ports.getReasoningTemplate;
21
+ if (!o)
22
+ return {
23
+ ok: !1,
24
+ error: {
25
+ code: "UNAVAILABLE",
26
+ message: "宿主未提供推理模板接口",
27
+ retryable: !1
28
+ }
29
+ };
30
+ const s = await o({ templateId: e.id }, a.request), t = n(s, i);
31
+ return t.ok ? {
32
+ ok: !0,
33
+ data: [
34
+ {
35
+ kind: "replaceSceneDoc",
36
+ capabilityId: "reasoningTemplate",
37
+ doc: t.data.doc,
38
+ question: t.data.question,
39
+ confirmation: "使用后,将清空当前已配置内容,并添加此模板知识内容。确认使用吗?"
40
+ }
41
+ ]
42
+ } : t;
43
+ }
44
+ }
45
+ }
46
+ };
47
+ export {
48
+ c as default
49
+ };
@@ -0,0 +1,41 @@
1
+ import { p as a, g as n } from "./FkpRichText.vue_vue_type_script_setup_true_lang-BuMz8Tyy.js";
2
+ const c = {
3
+ id: "reasoningPolish",
4
+ slot: "sceneAction",
5
+ apiVersion: 1,
6
+ dataVersion: 1,
7
+ actions: {
8
+ "reasoningPolish.propose": {
9
+ async execute(i, e) {
10
+ const s = e.ports.proposeReasoning;
11
+ if (!s)
12
+ return {
13
+ ok: !1,
14
+ error: {
15
+ code: "UNAVAILABLE",
16
+ message: "宿主未提供推理润色接口",
17
+ retryable: !1
18
+ }
19
+ };
20
+ const r = await s(
21
+ { scene: e.scene },
22
+ e.request
23
+ ), o = a(r, n);
24
+ return o.ok ? {
25
+ ok: !0,
26
+ data: [
27
+ {
28
+ kind: "replaceSceneDoc",
29
+ capabilityId: "reasoningPolish",
30
+ doc: o.data.proposedDoc,
31
+ confirmation: "应用润色后的知识内容?"
32
+ }
33
+ ]
34
+ } : o;
35
+ }
36
+ }
37
+ }
38
+ };
39
+ export {
40
+ c as default
41
+ };
@@ -0,0 +1,15 @@
1
+ import { b as e } from "./operations-JgnjGx3H.js";
2
+ const a = {
3
+ execute: () => [
4
+ {
5
+ kind: "insertOwnToken",
6
+ capabilityId: "separator",
7
+ key: "separator",
8
+ label: "分隔符",
9
+ token: "{分隔符}"
10
+ }
11
+ ]
12
+ }, n = e("separator", "knowledgeInline", a);
13
+ export {
14
+ n as default
15
+ };
@@ -0,0 +1,6 @@
1
+ import { b as i } from "./operations-JgnjGx3H.js";
2
+ import { c as t } from "./choice-DDg5gNtS.js";
3
+ const a = i("attribute", "knowledgeInline", t);
4
+ export {
5
+ a as default
6
+ };
@@ -0,0 +1,6 @@
1
+ import { b as o } from "./operations-JgnjGx3H.js";
2
+ import { m as i } from "./state-KfOqha3d.js";
3
+ const a = o("memory", "questionAction", i);
4
+ export {
5
+ a as default
6
+ };
@@ -0,0 +1,6 @@
1
+ import { b as t } from "./operations-JgnjGx3H.js";
2
+ import { s as i } from "./selection-state-D47jhx0U.js";
3
+ const e = t("tagged", "questionAction", i);
4
+ export {
5
+ e as default
6
+ };
@@ -0,0 +1,6 @@
1
+ import { b as i } from "./operations-JgnjGx3H.js";
2
+ import { c as e } from "./choice-DDg5gNtS.js";
3
+ const a = i("ticket", "knowledgeInline", e);
4
+ export {
5
+ a as default
6
+ };
@@ -0,0 +1,5 @@
1
+ import { c as e } from "./media-upload-D7DpMJYx.js";
2
+ const a = e("video");
3
+ export {
4
+ a as default
5
+ };
@@ -0,0 +1,31 @@
1
+ import { b as i } from "./operations-JgnjGx3H.js";
2
+ import { m as r } from "./inline-TT_dl8Y3.js";
3
+ const a = {
4
+ execute(o, e, d) {
5
+ if (!e.option) return [];
6
+ if (!e.edit) return r.execute(o, e, d);
7
+ const { nodeId: n, nodeVersion: t } = e.edit;
8
+ return [
9
+ {
10
+ kind: "updateOwnNode",
11
+ capabilityId: o,
12
+ nodeId: n,
13
+ expectedNodeVersion: t,
14
+ node: {
15
+ type: "businessToken",
16
+ attrs: {
17
+ id: n,
18
+ nodeVersion: t + 1,
19
+ kind: o,
20
+ key: e.option.id,
21
+ label: e.option.label,
22
+ params: e.option.params
23
+ }
24
+ }
25
+ }
26
+ ];
27
+ }
28
+ }, m = i("tool", "knowledgeInline", a);
29
+ export {
30
+ m as default
31
+ };
@@ -0,0 +1,6 @@
1
+ import { b as a } from "./operations-JgnjGx3H.js";
2
+ import { m as e } from "./inline-TT_dl8Y3.js";
3
+ const l = a("variable", "knowledgeInline", e);
4
+ export {
5
+ l as default
6
+ };
package/dist/index.js ADDED
@@ -0,0 +1,16 @@
1
+ import { _ as o } from "./FkpRichText.vue_vue_type_script_setup_true_lang-BuMz8Tyy.js";
2
+ import { e as t, r as n } from "./FkpRichText.vue_vue_type_script_setup_true_lang-BuMz8Tyy.js";
3
+ import { s as p, a as c } from "./rules-CC6NoltX.js";
4
+ const a = {
5
+ install(e) {
6
+ e.component("FkpRichText", o);
7
+ }
8
+ };
9
+ export {
10
+ o as FkpRichText,
11
+ a as default,
12
+ t as emptyScene,
13
+ n as resolveSceneConfig,
14
+ p as serializeQuestionForModel,
15
+ c as serializeQuestionTagsForModel
16
+ };
@@ -0,0 +1,17 @@
1
+ const a = {
2
+ execute(e, o) {
3
+ return o.option ? [
4
+ {
5
+ kind: "insertOwnToken",
6
+ capabilityId: e,
7
+ key: o.option.id,
8
+ label: o.option.label,
9
+ ...e === "variable" && o.option.token ? { token: o.option.token } : {},
10
+ ...e === "tool" && o.option.params ? { params: o.option.params } : {}
11
+ }
12
+ ] : [];
13
+ }
14
+ };
15
+ export {
16
+ a as m
17
+ };
@@ -0,0 +1,6 @@
1
+ import { b as o } from "./operations-JgnjGx3H.js";
2
+ import { c as e } from "./choice-DDg5gNtS.js";
3
+ const a = o("todo", "knowledgeInline", e);
4
+ export {
5
+ a as default
6
+ };
@@ -0,0 +1,13 @@
1
+ import { b as l } from "./operations-JgnjGx3H.js";
2
+ const o = {
3
+ execute(e) {
4
+ return e === "originalReply" ? [{ kind: "insertOwnBlock", capabilityId: e, block: e }] : [];
5
+ }
6
+ }, i = l(
7
+ "originalReply",
8
+ "knowledgeBlock",
9
+ o
10
+ );
11
+ export {
12
+ i as default
13
+ };