nolo-cli 0.47.0-alpha.1 → 0.47.0-alpha.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.
- package/{_executeModel-JWAASOOT.js → _executeModel-5PG6CUWD.js} +13 -12
- package/{agentDeleteCommand-QL7TF5F2.js → agentDeleteCommand-SHSPQZHI.js} +1 -1
- package/{agentEmailCommands-AC3XQM53.js → agentEmailCommands-LQKO5GRW.js} +13 -12
- package/{agentListCommands-4YMFHDU6.js → agentListCommands-5QTNEYMQ.js} +1 -1
- package/{agentMachineCommands-MFQKYUV4.js → agentMachineCommands-P5K454CN.js} +2 -2
- package/{agentRecordCommands-QG3YBSTQ.js → agentRecordCommands-Z4QYCNP4.js} +13 -12
- package/{agentRunCommand-B4PGT36L.js → agentRunCommand-HV3Y34B5.js} +14 -13
- package/{agentRuntimeLocal-V2UKJPNE.js → agentRuntimeLocal-ZKXYFLXI.js} +1 -1
- package/{agentSlice-B5O3RTRP.js → agentSlice-NKFLP3RI.js} +1 -1
- package/{appDeleteCommands-BQCRRHOM.js → appDeleteCommands-XYGAZIJX.js} +1 -1
- package/{appDeployCommands-UMJ67TUR.js → appDeployCommands-7T5CABRB.js} +1 -1
- package/{appDeployStatusCommands-KASPUR4V.js → appDeployStatusCommands-KTFQMRPZ.js} +1 -1
- package/{appGetCommands-FFT2LTGF.js → appGetCommands-HOX2ULSV.js} +1 -1
- package/{appListCommands-TAVWFRZZ.js → appListCommands-3SLCEHND.js} +1 -1
- package/{chatQueueReduxAdapter-OVDKLHLD.js → chatQueueReduxAdapter-WMMBQK3Y.js} +2 -2
- package/{chunk-7US2USK7.js → chunk-4ZNDBDWG.js} +3 -3
- package/{chunk-NSQNNYGW.js → chunk-5BPZLBFB.js} +4 -4
- package/{chunk-BIMCW2CC.js → chunk-5PPFYHU2.js} +2 -2
- package/{chunk-XOFZEJGM.js → chunk-6LYUN76O.js} +3 -3
- package/{chunk-6HIGYUBQ.js → chunk-6XIE5ZGI.js} +1 -1
- package/chunk-AETZ7AD6.js +274 -0
- package/{chunk-5PFBRLJN.js → chunk-FAWK6DBF.js} +8 -8
- package/{chunk-FM6ZGNMV.js → chunk-H2JQB6B6.js} +2 -2
- package/{chunk-CTXR4SRT.js → chunk-HOM6NILS.js} +1 -1
- package/{chunk-NC3CSWVT.js → chunk-IWUPQUWA.js} +1 -1
- package/{chunk-C5UWCCLI.js → chunk-JEGPB5H2.js} +3 -3
- package/{chunk-EY7V7REW.js → chunk-KHCLMKZZ.js} +6 -280
- package/{chunk-OFSVXPQS.js → chunk-MUIJYGYW.js} +3 -3
- package/{chunk-DROE55W3.js → chunk-MWT2BBCH.js} +8 -8
- package/chunk-OFZPJ3NT.js +114 -0
- package/{chunk-XIRSTDYF.js → chunk-Q6DMA2OM.js} +5 -5
- package/{chunk-5IQX2XPA.js → chunk-V2IPBG5U.js} +1 -1
- package/{chunk-RNNAJ34U.js → chunk-WPFNAEIW.js} +1 -1
- package/{chunk-GYSVYO35.js → chunk-XMI3APSU.js} +6 -6
- package/{chunk-SEIOEDBB.js → chunk-YNOGNUBC.js} +11 -11
- package/{codingSkills-QLDAXJRA.js → codingSkills-BYQI6EPT.js} +3 -2
- package/{createAgentAutomationAction-TQ7PYONU.js → createAgentAutomationAction-ENDNA3Q4.js} +3 -3
- package/{createDialogAction-EOQFCM3K.js → createDialogAction-2KNX6S2D.js} +6 -5
- package/{createPageAction-ZG5PH6BI.js → createPageAction-SNBCYPK6.js} +5 -4
- package/{dialogCommands-DCGMVLBA.js → dialogCommands-6E5P35DG.js} +1 -1
- package/{dialogSlice-YHGPDBAZ.js → dialogSlice-RTPOD6EW.js} +2 -2
- package/{docCreateCommands-A2LVLROP.js → docCreateCommands-JWY25UFB.js} +4 -3
- package/{docDeleteCommands-ENMROKH6.js → docDeleteCommands-BPJOCSX4.js} +4 -3
- package/{docReadCommands-XSRUV4EM.js → docReadCommands-BSEZCYTQ.js} +4 -3
- package/{docStore-WIKRGVQJ.js → docStore-TYHVLU7G.js} +4 -4
- package/{docUpdateCommands-5B5NBORA.js → docUpdateCommands-S2IE2VV4.js} +4 -3
- package/{handleSendMessageAction-WT4FDMQS.js → handleSendMessageAction-QYXDQXGH.js} +2 -2
- package/index.js +40 -40
- package/{machineCommands-BFLTBAK6.js → machineCommands-QCE4KLGR.js} +13 -12
- package/{machineWsRunDispatch-VCJB5LHO.js → machineWsRunDispatch-FBRMGU5D.js} +13 -12
- package/package.json +1 -1
- package/{readlineWorkspace-VBJLMU6V.js → readlineWorkspace-2TACWKMN.js} +14 -13
- package/{runAgentClientLoop-4QOEJOJP.js → runAgentClientLoop-GBLDVBT5.js} +11 -10
- package/{skillDiscovery-GPUDHDTZ.js → skillDiscovery-COX56OBO.js} +2 -1
- package/{spaceCommands-FBB7XSAW.js → spaceCommands-XOLPJMRK.js} +1 -1
- package/{spaceSlice-YMDZ4G6H.js → spaceSlice-OQPAGQDP.js} +3 -3
- package/{streamAgentChatTurn-5NBWQHY6.js → streamAgentChatTurn-SN5XJJ7U.js} +12 -11
- package/{tools-37H5A4OG.js → tools-Y65Y3CI4.js} +9 -8
- package/{updateDialogTitleAction-XAGMXHW5.js → updateDialogTitleAction-OAOP7CCE.js} +3 -3
- package/chunk-2BWU4ORW.js +0 -2574
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
import {
|
|
2
|
+
dump,
|
|
3
|
+
load
|
|
4
|
+
} from "./chunk-KHCLMKZZ.js";
|
|
5
|
+
import {
|
|
6
|
+
asTrimmedNonEmptyStringArray
|
|
7
|
+
} from "./chunk-I42VC5KR.js";
|
|
8
|
+
import {
|
|
9
|
+
asOptionalTrimmedString
|
|
10
|
+
} from "./chunk-G3SUCT4W.js";
|
|
11
|
+
|
|
12
|
+
// packages/ai/skills/skillDocProtocol.ts
|
|
13
|
+
var SKILL_DOC_ENUMS = {
|
|
14
|
+
triggerMode: ["explicit", "required", "recommended"],
|
|
15
|
+
// budgetTier 只服务 WorkflowReferenceConfig;skill 侧已移除(零读点)。
|
|
16
|
+
budgetTier: ["low", "medium", "high"],
|
|
17
|
+
modality: ["text", "image", "video", "audio", "3d"],
|
|
18
|
+
docKind: ["knowledge", "instruction", "skill"]
|
|
19
|
+
};
|
|
20
|
+
var SKILL_CONFIG_BLOCK = "skill-config";
|
|
21
|
+
var EVAL_CONFIG_BLOCK = "eval-config";
|
|
22
|
+
var WORKFLOW_CONFIG_BLOCK = "workflow-config";
|
|
23
|
+
var normalizeStringArray = (value) => {
|
|
24
|
+
if (!Array.isArray(value)) return void 0;
|
|
25
|
+
const items = [...new Set(asTrimmedNonEmptyStringArray(value))];
|
|
26
|
+
return items.length > 0 ? items : void 0;
|
|
27
|
+
};
|
|
28
|
+
var normalizeSkillEnumValue = (key, value) => typeof value === "string" && SKILL_DOC_ENUMS[key].includes(value) ? value : void 0;
|
|
29
|
+
var normalizeSkillModalities = (value) => {
|
|
30
|
+
const raw = normalizeStringArray(value);
|
|
31
|
+
if (!raw) return void 0;
|
|
32
|
+
const filtered = raw.flatMap((item) => {
|
|
33
|
+
const modality = normalizeSkillEnumValue("modality", item);
|
|
34
|
+
return modality ? [modality] : [];
|
|
35
|
+
});
|
|
36
|
+
return filtered.length > 0 ? Array.from(new Set(filtered)) : void 0;
|
|
37
|
+
};
|
|
38
|
+
var normalizeSkillConfig = (value, fallbackTools) => {
|
|
39
|
+
if (!value || typeof value !== "object") return void 0;
|
|
40
|
+
const record = value;
|
|
41
|
+
const name = asOptionalTrimmedString(record.name) ?? "";
|
|
42
|
+
const description = asOptionalTrimmedString(record.description) ?? "";
|
|
43
|
+
if (!name || !description) return void 0;
|
|
44
|
+
const triggerMode = normalizeSkillEnumValue("triggerMode", record.triggerMode);
|
|
45
|
+
const modalities = normalizeSkillModalities(record.modalities);
|
|
46
|
+
const toolNames = normalizeStringArray(record.toolNames) ?? normalizeStringArray(fallbackTools) ?? void 0;
|
|
47
|
+
return {
|
|
48
|
+
version: "0.1",
|
|
49
|
+
kind: "skill",
|
|
50
|
+
id: asOptionalTrimmedString(record.id),
|
|
51
|
+
name,
|
|
52
|
+
description,
|
|
53
|
+
triggerMode,
|
|
54
|
+
toolNames,
|
|
55
|
+
modalities,
|
|
56
|
+
requiredSkills: normalizeStringArray(record.requiredSkills),
|
|
57
|
+
recommendedSkills: normalizeStringArray(record.recommendedSkills),
|
|
58
|
+
promptPatch: asOptionalTrimmedString(record.promptPatch)
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
var normalizeEvalConfig = (value) => {
|
|
62
|
+
if (!value || typeof value !== "object") return void 0;
|
|
63
|
+
const record = value;
|
|
64
|
+
if (!Array.isArray(record.cases)) return void 0;
|
|
65
|
+
const cases = [];
|
|
66
|
+
for (const item of record.cases) {
|
|
67
|
+
if (!item || typeof item !== "object") continue;
|
|
68
|
+
const testCase = item;
|
|
69
|
+
const input = asOptionalTrimmedString(testCase.input) ?? "";
|
|
70
|
+
if (!input) continue;
|
|
71
|
+
cases.push({
|
|
72
|
+
input,
|
|
73
|
+
expectedTools: normalizeStringArray(testCase.expectedTools),
|
|
74
|
+
expectedSignals: normalizeStringArray(testCase.expectedSignals),
|
|
75
|
+
forbiddenSignals: normalizeStringArray(testCase.forbiddenSignals)
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
return cases.length > 0 ? {
|
|
79
|
+
version: "0.1",
|
|
80
|
+
cases
|
|
81
|
+
} : void 0;
|
|
82
|
+
};
|
|
83
|
+
var normalizeWorkflowConfig = (value) => {
|
|
84
|
+
if (!value || typeof value !== "object") return void 0;
|
|
85
|
+
const record = value;
|
|
86
|
+
const name = asOptionalTrimmedString(record.name) ?? "";
|
|
87
|
+
const description = asOptionalTrimmedString(record.description) ?? "";
|
|
88
|
+
if (!name || !description) return void 0;
|
|
89
|
+
const budgetTier = normalizeSkillEnumValue("budgetTier", record.budgetTier);
|
|
90
|
+
return {
|
|
91
|
+
version: "0.1",
|
|
92
|
+
kind: "workflow",
|
|
93
|
+
id: asOptionalTrimmedString(record.id),
|
|
94
|
+
name,
|
|
95
|
+
description,
|
|
96
|
+
defaultAgent: asOptionalTrimmedString(record.defaultAgent),
|
|
97
|
+
inputs: normalizeStringArray(record.inputs),
|
|
98
|
+
recommendedTools: normalizeStringArray(record.recommendedTools),
|
|
99
|
+
requiredTools: normalizeStringArray(record.requiredTools),
|
|
100
|
+
requiredOutputs: normalizeStringArray(record.requiredOutputs),
|
|
101
|
+
gates: normalizeStringArray(record.gates),
|
|
102
|
+
budgetTier,
|
|
103
|
+
contextStrategy: asOptionalTrimmedString(record.contextStrategy),
|
|
104
|
+
failureProtocol: asOptionalTrimmedString(record.failureProtocol)
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
var normalizePageSkillMetadata = (value, fallbackTools) => {
|
|
108
|
+
if (!value || typeof value !== "object") return void 0;
|
|
109
|
+
const record = value;
|
|
110
|
+
const kind = normalizeSkillEnumValue("docKind", record.kind);
|
|
111
|
+
const meta = {
|
|
112
|
+
kind,
|
|
113
|
+
requiredSkills: normalizeStringArray(record.requiredSkills),
|
|
114
|
+
recommendedSkills: normalizeStringArray(record.recommendedSkills),
|
|
115
|
+
skillConfig: normalizeSkillConfig(record.skillConfig, fallbackTools),
|
|
116
|
+
evalConfig: normalizeEvalConfig(record.evalConfig),
|
|
117
|
+
workflowConfig: normalizeWorkflowConfig(record.workflowConfig)
|
|
118
|
+
};
|
|
119
|
+
if (meta.skillConfig && !meta.kind) {
|
|
120
|
+
meta.kind = "skill";
|
|
121
|
+
}
|
|
122
|
+
if (meta.workflowConfig && !meta.kind) {
|
|
123
|
+
meta.kind = "instruction";
|
|
124
|
+
}
|
|
125
|
+
return meta.kind || meta.requiredSkills || meta.recommendedSkills || meta.skillConfig || meta.evalConfig || meta.workflowConfig ? meta : void 0;
|
|
126
|
+
};
|
|
127
|
+
var extractCommentBlock = (markdown, blockName) => {
|
|
128
|
+
if (!markdown) return void 0;
|
|
129
|
+
const matcher = new RegExp(
|
|
130
|
+
`<!--\\s*${blockName}\\s*\\n([\\s\\S]*?)-->`,
|
|
131
|
+
"i"
|
|
132
|
+
);
|
|
133
|
+
const match = markdown.match(matcher);
|
|
134
|
+
return asOptionalTrimmedString(match?.[1]);
|
|
135
|
+
};
|
|
136
|
+
var removeCommentBlock = (markdown, blockName) => markdown.replace(
|
|
137
|
+
new RegExp(`\\n?<!--\\s*${blockName}\\s*\\n[\\s\\S]*?-->\\s*`, "gi"),
|
|
138
|
+
"\n\n"
|
|
139
|
+
);
|
|
140
|
+
var parseYamlObject = (raw) => {
|
|
141
|
+
if (!raw) return void 0;
|
|
142
|
+
try {
|
|
143
|
+
const parsed = load(raw);
|
|
144
|
+
return parsed && typeof parsed === "object" ? parsed : void 0;
|
|
145
|
+
} catch {
|
|
146
|
+
return void 0;
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
var parseSkillDocProtocol = (markdown, existingMeta, fallbackTools) => {
|
|
150
|
+
const source = typeof markdown === "string" ? markdown : "";
|
|
151
|
+
const skillBlock = parseYamlObject(extractCommentBlock(source, SKILL_CONFIG_BLOCK));
|
|
152
|
+
const evalBlock = parseYamlObject(extractCommentBlock(source, EVAL_CONFIG_BLOCK));
|
|
153
|
+
const workflowBlock = parseYamlObject(extractCommentBlock(source, WORKFLOW_CONFIG_BLOCK));
|
|
154
|
+
const cleanedContent = removeCommentBlock(
|
|
155
|
+
removeCommentBlock(
|
|
156
|
+
removeCommentBlock(source, SKILL_CONFIG_BLOCK),
|
|
157
|
+
EVAL_CONFIG_BLOCK
|
|
158
|
+
),
|
|
159
|
+
WORKFLOW_CONFIG_BLOCK
|
|
160
|
+
).replace(/\n{3,}/g, "\n\n").trim();
|
|
161
|
+
const parsedMeta = normalizePageSkillMetadata(
|
|
162
|
+
{
|
|
163
|
+
...existingMeta ?? {},
|
|
164
|
+
...skillBlock ? {
|
|
165
|
+
kind: existingMeta?.kind === "skill" || skillBlock.kind === "skill" ? "skill" : existingMeta?.kind,
|
|
166
|
+
requiredSkills: skillBlock.requiredSkills ?? existingMeta?.requiredSkills,
|
|
167
|
+
recommendedSkills: skillBlock.recommendedSkills ?? existingMeta?.recommendedSkills,
|
|
168
|
+
skillConfig: skillBlock
|
|
169
|
+
} : {},
|
|
170
|
+
...evalBlock ? { evalConfig: evalBlock } : {},
|
|
171
|
+
...workflowBlock ? { workflowConfig: workflowBlock } : {}
|
|
172
|
+
},
|
|
173
|
+
fallbackTools
|
|
174
|
+
);
|
|
175
|
+
return {
|
|
176
|
+
content: cleanedContent,
|
|
177
|
+
meta: parsedMeta
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
var resolvePageSkillMetadata = (page) => {
|
|
181
|
+
if (!page) return void 0;
|
|
182
|
+
const existingMeta = normalizePageSkillMetadata(page.meta, page.tools);
|
|
183
|
+
return parseSkillDocProtocol(page.content ?? "", existingMeta, page.tools).meta;
|
|
184
|
+
};
|
|
185
|
+
var yamlBlock = (value) => dump(value, { lineWidth: 120, noRefs: true }).trim();
|
|
186
|
+
var buildSkillConfigComment = (config) => {
|
|
187
|
+
const payload = {
|
|
188
|
+
version: config.version,
|
|
189
|
+
kind: config.kind,
|
|
190
|
+
...config.id ? { id: config.id } : {},
|
|
191
|
+
name: config.name,
|
|
192
|
+
description: config.description,
|
|
193
|
+
...config.triggerMode ? { triggerMode: config.triggerMode } : {},
|
|
194
|
+
...config.requiredSkills?.length ? { requiredSkills: config.requiredSkills } : {},
|
|
195
|
+
...config.recommendedSkills?.length ? { recommendedSkills: config.recommendedSkills } : {},
|
|
196
|
+
...config.toolNames?.length ? { toolNames: config.toolNames } : {},
|
|
197
|
+
...config.modalities?.length ? { modalities: config.modalities } : {},
|
|
198
|
+
...config.promptPatch ? { promptPatch: config.promptPatch } : {}
|
|
199
|
+
};
|
|
200
|
+
return `<!-- ${SKILL_CONFIG_BLOCK}
|
|
201
|
+
${yamlBlock(payload)}
|
|
202
|
+
-->`;
|
|
203
|
+
};
|
|
204
|
+
var buildEvalConfigComment = (config) => `<!-- ${EVAL_CONFIG_BLOCK}
|
|
205
|
+
${yamlBlock({
|
|
206
|
+
version: config.version,
|
|
207
|
+
cases: config.cases
|
|
208
|
+
})}
|
|
209
|
+
-->`;
|
|
210
|
+
var buildWorkflowConfigComment = (config) => `<!-- ${WORKFLOW_CONFIG_BLOCK}
|
|
211
|
+
${yamlBlock({
|
|
212
|
+
version: config.version,
|
|
213
|
+
kind: config.kind,
|
|
214
|
+
...config.id ? { id: config.id } : {},
|
|
215
|
+
name: config.name,
|
|
216
|
+
description: config.description,
|
|
217
|
+
...config.defaultAgent ? { defaultAgent: config.defaultAgent } : {},
|
|
218
|
+
...config.inputs?.length ? { inputs: config.inputs } : {},
|
|
219
|
+
...config.recommendedTools?.length ? { recommendedTools: config.recommendedTools } : {},
|
|
220
|
+
...config.requiredTools?.length ? { requiredTools: config.requiredTools } : {},
|
|
221
|
+
...config.requiredOutputs?.length ? { requiredOutputs: config.requiredOutputs } : {},
|
|
222
|
+
...config.gates?.length ? { gates: config.gates } : {},
|
|
223
|
+
...config.budgetTier ? { budgetTier: config.budgetTier } : {},
|
|
224
|
+
...config.contextStrategy ? { contextStrategy: config.contextStrategy } : {},
|
|
225
|
+
...config.failureProtocol ? { failureProtocol: config.failureProtocol } : {}
|
|
226
|
+
})}
|
|
227
|
+
-->`;
|
|
228
|
+
var buildSkillDocMarkdown = (options) => {
|
|
229
|
+
const sections = [
|
|
230
|
+
asOptionalTrimmedString(options.body) ?? "",
|
|
231
|
+
buildSkillConfigComment(options.skillConfig),
|
|
232
|
+
options.evalConfig ? buildEvalConfigComment(options.evalConfig) : "",
|
|
233
|
+
options.workflowConfig ? buildWorkflowConfigComment(options.workflowConfig) : ""
|
|
234
|
+
].filter(Boolean);
|
|
235
|
+
return sections.join("\n\n").trim();
|
|
236
|
+
};
|
|
237
|
+
var extractFrontmatter = (markdown) => {
|
|
238
|
+
const match = markdown.match(/^\s*---\s*\n([\s\S]*?)\n\s*---\s*\n?/);
|
|
239
|
+
if (!match) return { body: markdown.trim() };
|
|
240
|
+
const frontmatter = parseYamlObject(match[1]);
|
|
241
|
+
const body = markdown.slice(match[0].length).trim();
|
|
242
|
+
return { frontmatter, body };
|
|
243
|
+
};
|
|
244
|
+
var normalizeAllowedTools = (value) => {
|
|
245
|
+
if (Array.isArray(value)) {
|
|
246
|
+
return normalizeStringArray(value) ?? [];
|
|
247
|
+
}
|
|
248
|
+
if (typeof value === "string") {
|
|
249
|
+
return value.split(/\s+/).map((item) => item.trim()).filter(Boolean);
|
|
250
|
+
}
|
|
251
|
+
return [];
|
|
252
|
+
};
|
|
253
|
+
var parseExternalSkillMarkdown = (markdown) => {
|
|
254
|
+
const { frontmatter, body } = extractFrontmatter(markdown);
|
|
255
|
+
return {
|
|
256
|
+
name: asOptionalTrimmedString(frontmatter?.name),
|
|
257
|
+
description: asOptionalTrimmedString(frontmatter?.description),
|
|
258
|
+
compatibility: asOptionalTrimmedString(frontmatter?.compatibility),
|
|
259
|
+
allowedTools: normalizeAllowedTools(frontmatter?.["allowed-tools"]),
|
|
260
|
+
metadata: frontmatter?.metadata && typeof frontmatter.metadata === "object" ? Object.fromEntries(
|
|
261
|
+
Object.entries(frontmatter.metadata).filter(([, value]) => typeof value === "string").map(([key, value]) => [key, String(value)])
|
|
262
|
+
) : void 0,
|
|
263
|
+
body
|
|
264
|
+
};
|
|
265
|
+
};
|
|
266
|
+
|
|
267
|
+
export {
|
|
268
|
+
normalizeStringArray,
|
|
269
|
+
normalizeSkillModalities,
|
|
270
|
+
parseSkillDocProtocol,
|
|
271
|
+
resolvePageSkillMetadata,
|
|
272
|
+
buildSkillDocMarkdown,
|
|
273
|
+
parseExternalSkillMarkdown
|
|
274
|
+
};
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./chunk-YYLHWIW6.js";
|
|
11
11
|
import {
|
|
12
12
|
runLlm
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-6LYUN76O.js";
|
|
14
14
|
import {
|
|
15
15
|
getApproxPricePerImage
|
|
16
16
|
} from "./chunk-AGGIDPCZ.js";
|
|
@@ -3584,7 +3584,7 @@ var messageSlice = createSliceWithThunks({
|
|
|
3584
3584
|
runtimeOptions: args.runtimeOptions
|
|
3585
3585
|
});
|
|
3586
3586
|
if (agentKeyToUse) {
|
|
3587
|
-
const { streamAgentChatTurn } = await import("./agentSlice-
|
|
3587
|
+
const { streamAgentChatTurn } = await import("./agentSlice-NKFLP3RI.js");
|
|
3588
3588
|
await dispatch(
|
|
3589
3589
|
streamAgentChatTurn({
|
|
3590
3590
|
agentKey: agentKeyToUse,
|
|
@@ -4848,7 +4848,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
4848
4848
|
}
|
|
4849
4849
|
if (isCurrentDialog) {
|
|
4850
4850
|
await thunkApi.dispatch(resetMsgs());
|
|
4851
|
-
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-
|
|
4851
|
+
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-RTPOD6EW.js");
|
|
4852
4852
|
dispatch(clearPendingAttachments2());
|
|
4853
4853
|
}
|
|
4854
4854
|
return { dialogKey, isCurrentDialog, attachmentPlan };
|
|
@@ -4856,15 +4856,15 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
4856
4856
|
|
|
4857
4857
|
// packages/chat/dialog/dialogSlice.ts
|
|
4858
4858
|
var runCreateDialogAction = async (args, thunkApi) => {
|
|
4859
|
-
const { createDialogAction } = await import("./createDialogAction-
|
|
4859
|
+
const { createDialogAction } = await import("./createDialogAction-2KNX6S2D.js");
|
|
4860
4860
|
return createDialogAction(args, thunkApi);
|
|
4861
4861
|
};
|
|
4862
4862
|
var runCreateAgentAutomationAction = async (args, thunkApi) => {
|
|
4863
|
-
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-
|
|
4863
|
+
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-ENDNA3Q4.js");
|
|
4864
4864
|
return createAgentAutomationAction(args, thunkApi);
|
|
4865
4865
|
};
|
|
4866
4866
|
var runUpdateDialogTitleAction = async (args, thunkApi) => {
|
|
4867
|
-
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-
|
|
4867
|
+
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-OAOP7CCE.js");
|
|
4868
4868
|
return updateDialogTitleAction(args, thunkApi);
|
|
4869
4869
|
};
|
|
4870
4870
|
var runAddDialogAgentAction = async (args, thunkApi) => {
|
|
@@ -4888,7 +4888,7 @@ var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
|
|
|
4888
4888
|
return setDialogExtraReferencesAction(args, thunkApi);
|
|
4889
4889
|
};
|
|
4890
4890
|
var runHandleSendMessageAction = async (args, thunkApi) => {
|
|
4891
|
-
const { handleSendMessageAction } = await import("./handleSendMessageAction-
|
|
4891
|
+
const { handleSendMessageAction } = await import("./handleSendMessageAction-QYXDQXGH.js");
|
|
4892
4892
|
return handleSendMessageAction(args, thunkApi);
|
|
4893
4893
|
};
|
|
4894
4894
|
function clearDialogState() {
|
|
@@ -4901,7 +4901,7 @@ var createPageAndAddReference = createAsyncThunk(
|
|
|
4901
4901
|
async (payload, { dispatch, getState, rejectWithValue }) => {
|
|
4902
4902
|
const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
|
|
4903
4903
|
try {
|
|
4904
|
-
const { createDocState } = await import("./docStore-
|
|
4904
|
+
const { createDocState } = await import("./docStore-TYHVLU7G.js");
|
|
4905
4905
|
const pageKey = await createDocState(
|
|
4906
4906
|
{ slateData, title },
|
|
4907
4907
|
{ dispatch, getState }
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
deleteDialog,
|
|
3
3
|
toast
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FAWK6DBF.js";
|
|
5
5
|
import {
|
|
6
6
|
deleteServerSyncedCredential
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6LYUN76O.js";
|
|
8
8
|
import {
|
|
9
9
|
require_date_fns
|
|
10
10
|
} from "./chunk-M76ECQRD.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCliLocalRuntimeAdapter,
|
|
3
3
|
summarizeEndpoint
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-Q6DMA2OM.js";
|
|
5
5
|
import {
|
|
6
6
|
clipMultilineText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YNOGNUBC.js";
|
|
8
8
|
import {
|
|
9
9
|
runLocalAgentTurn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-MUIJYGYW.js";
|
|
11
11
|
import {
|
|
12
12
|
resolveLocalRuntimeEnvFromPolicy
|
|
13
13
|
} from "./chunk-NQ4N4IGO.js";
|