@tangle-network/agent-app 0.60.91 → 0.60.93
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/dist/agent-profiles/d1.js +2 -1
- package/dist/agent-profiles/d1.js.map +1 -1
- package/dist/agent-profiles/index.d.ts +2 -6
- package/dist/agent-profiles/index.js +5 -3
- package/dist/agent-profiles/switch.d.ts +11 -0
- package/dist/agent-profiles/switch.js +9 -0
- package/dist/agent-profiles/switch.js.map +1 -0
- package/dist/assistant/index.js +15 -13
- package/dist/assistant/index.js.map +1 -1
- package/dist/chat-react/index.js +3 -2
- package/dist/chat-routes/index.js +11 -11
- package/dist/chat-store/index.js +4 -4
- package/dist/{chunk-ORFRFCXQ.js → chunk-5CEUXI5V.js} +42 -606
- package/dist/chunk-5CEUXI5V.js.map +1 -0
- package/dist/chunk-6OQYTH7T.js +2202 -0
- package/dist/chunk-6OQYTH7T.js.map +1 -0
- package/dist/chunk-EBNIZHRX.js +579 -0
- package/dist/chunk-EBNIZHRX.js.map +1 -0
- package/dist/{chunk-QE2NXMDZ.js → chunk-FZSIYAKQ.js} +2 -2
- package/dist/chunk-I6BZVIRH.js +16 -0
- package/dist/chunk-I6BZVIRH.js.map +1 -0
- package/dist/{chunk-A2TCZVW4.js → chunk-K7JI5WY4.js} +972 -3165
- package/dist/chunk-K7JI5WY4.js.map +1 -0
- package/dist/{chunk-ABUF7A4T.js → chunk-ORCY6XGW.js} +5 -12
- package/dist/chunk-ORCY6XGW.js.map +1 -0
- package/dist/{chunk-JBEFTXDO.js → chunk-WKD4E52F.js} +6 -6
- package/dist/{chunk-2FLSODOX.js → chunk-Y4WLCFDZ.js} +6 -6
- package/dist/{chunk-XNKLQG26.js → chunk-ZGUXI5SI.js} +5 -5
- package/dist/public-consultation/index.js +6 -6
- package/dist/stream/index.js +2 -2
- package/dist/studio-react/index.js +2 -2
- package/dist/web-react/agent-profile-editor.js +17 -0
- package/dist/web-react/agent-profile-editor.js.map +1 -0
- package/dist/web-react/index.js +44 -40
- package/dist/workspace-export/index.js +6 -1
- package/dist/workspace-export/index.js.map +1 -1
- package/dist/workspace-react/index.js +5 -5
- package/package.json +6 -1
- package/dist/chunk-A2TCZVW4.js.map +0 -1
- package/dist/chunk-ABUF7A4T.js.map +0 -1
- package/dist/chunk-ORFRFCXQ.js.map +0 -1
- /package/dist/{chunk-QE2NXMDZ.js.map → chunk-FZSIYAKQ.js.map} +0 -0
- /package/dist/{chunk-JBEFTXDO.js.map → chunk-WKD4E52F.js.map} +0 -0
- /package/dist/{chunk-2FLSODOX.js.map → chunk-Y4WLCFDZ.js.map} +0 -0
- /package/dist/{chunk-XNKLQG26.js.map → chunk-ZGUXI5SI.js.map} +0 -0
|
@@ -2,23 +2,20 @@ import {
|
|
|
2
2
|
joinClasses
|
|
3
3
|
} from "./chunk-L7MB2LLM.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./chunk-
|
|
5
|
+
filterCommandPaletteItems
|
|
6
|
+
} from "./chunk-SJWIZT7B.js";
|
|
7
|
+
import {
|
|
8
|
+
AgentSessionControls,
|
|
9
|
+
acceptRejectionReason,
|
|
10
|
+
filterAcceptedFiles,
|
|
11
|
+
isAcceptedFileType,
|
|
12
|
+
renamePastedImages
|
|
13
|
+
} from "./chunk-EBNIZHRX.js";
|
|
7
14
|
import {
|
|
8
|
-
CheckGlyph,
|
|
9
|
-
EffortPicker,
|
|
10
|
-
ModelPicker,
|
|
11
15
|
OVERLAY_SHADOW,
|
|
12
16
|
POPOVER_OPTION_FOCUS,
|
|
13
|
-
PopoverSurface
|
|
14
|
-
fieldPickerTriggerClass,
|
|
15
|
-
pickerRootClass,
|
|
16
|
-
quietPickerTriggerClass,
|
|
17
|
-
usePopover
|
|
17
|
+
PopoverSurface
|
|
18
18
|
} from "./chunk-HG4OONJA.js";
|
|
19
|
-
import {
|
|
20
|
-
filterCommandPaletteItems
|
|
21
|
-
} from "./chunk-SJWIZT7B.js";
|
|
22
19
|
import {
|
|
23
20
|
ATTACHMENT_ACCEPT,
|
|
24
21
|
ATTACHMENT_MAX_COUNT,
|
|
@@ -31,105 +28,6 @@ import {
|
|
|
31
28
|
sanitizeAttachmentFileName,
|
|
32
29
|
sniffBinary
|
|
33
30
|
} from "./chunk-ZMU54CBG.js";
|
|
34
|
-
import {
|
|
35
|
-
snapHarnessToModel,
|
|
36
|
-
snapModelToHarness
|
|
37
|
-
} from "./chunk-MCYJON3F.js";
|
|
38
|
-
|
|
39
|
-
// src/web-react/composer-file-accept.ts
|
|
40
|
-
function isAcceptedFileType(file, accept) {
|
|
41
|
-
if (!accept || accept.trim().length === 0) return true;
|
|
42
|
-
const patterns = accept.split(",").map((pattern) => pattern.trim()).filter((pattern) => pattern.length > 0);
|
|
43
|
-
if (patterns.length === 0) return true;
|
|
44
|
-
const name = file.name.toLowerCase();
|
|
45
|
-
const type = (file.type || "").toLowerCase();
|
|
46
|
-
return patterns.some((pattern) => {
|
|
47
|
-
const lower = pattern.toLowerCase();
|
|
48
|
-
if (lower.startsWith(".")) return name.endsWith(lower);
|
|
49
|
-
if (lower.endsWith("/*")) {
|
|
50
|
-
const prefix = lower.slice(0, -1);
|
|
51
|
-
if (!type.startsWith(prefix)) return false;
|
|
52
|
-
const subtype = type.slice(prefix.length);
|
|
53
|
-
return subtype.length > 0 && !subtype.includes("/");
|
|
54
|
-
}
|
|
55
|
-
return type === lower;
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
function acceptRejectionReason(file, accept) {
|
|
59
|
-
return `"${file.name}" is not an accepted file type (${accept}).`;
|
|
60
|
-
}
|
|
61
|
-
function filterAcceptedFiles(files, accept) {
|
|
62
|
-
const list = Array.isArray(files) ? files : Array.from(files);
|
|
63
|
-
const accepted = [];
|
|
64
|
-
const rejected = [];
|
|
65
|
-
for (const file of list) {
|
|
66
|
-
if (isAcceptedFileType(file, accept)) accepted.push(file);
|
|
67
|
-
else rejected.push({ file, reason: acceptRejectionReason(file, accept ?? "") });
|
|
68
|
-
}
|
|
69
|
-
return { accepted, rejected };
|
|
70
|
-
}
|
|
71
|
-
var IMAGE_EXTENSIONS_BY_MIME = {
|
|
72
|
-
"image/png": ["png"],
|
|
73
|
-
"image/jpeg": ["jpg", "jpeg", "jpe"],
|
|
74
|
-
"image/jpg": ["jpg", "jpeg"],
|
|
75
|
-
"image/gif": ["gif"],
|
|
76
|
-
"image/webp": ["webp"],
|
|
77
|
-
"image/bmp": ["bmp"],
|
|
78
|
-
"image/svg+xml": ["svg"],
|
|
79
|
-
"image/tiff": ["tiff", "tif"],
|
|
80
|
-
"image/x-icon": ["ico"],
|
|
81
|
-
"image/vnd.microsoft.icon": ["ico"]
|
|
82
|
-
};
|
|
83
|
-
function isGenericImageName(name) {
|
|
84
|
-
return /^(?:image(?:\.[a-z0-9]+)?)?$/i.test(name.trim());
|
|
85
|
-
}
|
|
86
|
-
function imageExtension(file) {
|
|
87
|
-
const type = file.type.toLowerCase();
|
|
88
|
-
const fromName = /\.([a-z0-9]+)$/i.exec(file.name)?.[1]?.toLowerCase();
|
|
89
|
-
const mapped = IMAGE_EXTENSIONS_BY_MIME[type];
|
|
90
|
-
const subtype = type.startsWith("image/") ? type.slice("image/".length) : "";
|
|
91
|
-
const bare = subtype.split("+")[0] ?? "";
|
|
92
|
-
const truthful = mapped ?? (/^[a-z0-9]+$/.test(bare) ? [bare] : []);
|
|
93
|
-
if (truthful.length === 0) return fromName ?? null;
|
|
94
|
-
if (fromName !== void 0 && truthful.includes(fromName)) return fromName;
|
|
95
|
-
return truthful[0] ?? null;
|
|
96
|
-
}
|
|
97
|
-
function takenPastedImageIndexes(names) {
|
|
98
|
-
const taken = /* @__PURE__ */ new Set();
|
|
99
|
-
for (const name of names) {
|
|
100
|
-
const digits = /^pasted-image-(\d+)(?:\.[a-z0-9]+)?$/i.exec(name.trim())?.[1];
|
|
101
|
-
if (digits === void 0) continue;
|
|
102
|
-
const parsed = Number.parseInt(digits, 10);
|
|
103
|
-
if (Number.isSafeInteger(parsed)) taken.add(parsed);
|
|
104
|
-
}
|
|
105
|
-
return taken;
|
|
106
|
-
}
|
|
107
|
-
function nextFreeIndex(taken, after) {
|
|
108
|
-
const start = Number.isSafeInteger(after) && after >= 0 ? after + 1 : 1;
|
|
109
|
-
for (let candidate = start; Number.isSafeInteger(candidate); candidate += 1) {
|
|
110
|
-
if (!taken.has(candidate)) return candidate;
|
|
111
|
-
}
|
|
112
|
-
for (let candidate = 1; ; candidate += 1) {
|
|
113
|
-
if (!taken.has(candidate)) return candidate;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
function renamePastedImages(files, startIndex, stagedNames = []) {
|
|
117
|
-
const taken = takenPastedImageIndexes([...stagedNames, ...files.map((file) => file.name)]);
|
|
118
|
-
let nextIndex = startIndex;
|
|
119
|
-
const renamed = files.map((file) => {
|
|
120
|
-
const typed = file.type.startsWith("image/");
|
|
121
|
-
if (!isGenericImageName(file.name) || !typed && file.type !== "") return file;
|
|
122
|
-
const extension = imageExtension(file);
|
|
123
|
-
if (extension === null) return file;
|
|
124
|
-
nextIndex = nextFreeIndex(taken, nextIndex);
|
|
125
|
-
taken.add(nextIndex);
|
|
126
|
-
return new File([file], `pasted-image-${nextIndex}.${extension}`, {
|
|
127
|
-
type: file.type,
|
|
128
|
-
lastModified: file.lastModified
|
|
129
|
-
});
|
|
130
|
-
});
|
|
131
|
-
return { files: renamed, nextIndex };
|
|
132
|
-
}
|
|
133
31
|
|
|
134
32
|
// src/web-react/use-dictation.ts
|
|
135
33
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
@@ -1252,462 +1150,8 @@ function ChatComposer({
|
|
|
1252
1150
|
);
|
|
1253
1151
|
}
|
|
1254
1152
|
|
|
1255
|
-
// src/web-react/harness-glyphs.tsx
|
|
1256
|
-
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
1257
|
-
var BRAND_PATHS = {
|
|
1258
|
-
opencode: [
|
|
1259
|
-
"M16 6H8v12h8V6zm4 16H4V2h16v20z"
|
|
1260
|
-
],
|
|
1261
|
-
"claude-code": [
|
|
1262
|
-
"M20.998 10.949H24v3.102h-3v3.028h-1.487V20H18v-2.921h-1.487V20H15v-2.921H9V20H7.488v-2.921H6V20H4.487v-2.921H3V14.05H0V10.95h3V5h17.998v5.949zM6 10.949h1.488V8.102H6v2.847zm10.51 0H18V8.102h-1.49v2.847z"
|
|
1263
|
-
],
|
|
1264
|
-
codex: [
|
|
1265
|
-
"M8.086.457a6.105 6.105 0 013.046-.415c1.333.153 2.521.72 3.564 1.7a.117.117 0 00.107.029c1.408-.346 2.762-.224 4.061.366l.063.03.154.076c1.357.703 2.33 1.77 2.918 3.198.278.679.418 1.388.421 2.126a5.655 5.655 0 01-.18 1.631.167.167 0 00.04.155 5.982 5.982 0 011.578 2.891c.385 1.901-.01 3.615-1.183 5.14l-.182.22a6.063 6.063 0 01-2.934 1.851.162.162 0 00-.108.102c-.255.736-.511 1.364-.987 1.992-1.199 1.582-2.962 2.462-4.948 2.451-1.583-.008-2.986-.587-4.21-1.736a.145.145 0 00-.14-.032c-.518.167-1.04.191-1.604.185a5.924 5.924 0 01-2.595-.622 6.058 6.058 0 01-2.146-1.781c-.203-.269-.404-.522-.551-.821a7.74 7.74 0 01-.495-1.283 6.11 6.11 0 01-.017-3.064.166.166 0 00.008-.074.115.115 0 00-.037-.064 5.958 5.958 0 01-1.38-2.202 5.196 5.196 0 01-.333-1.589 6.915 6.915 0 01.188-2.132c.45-1.484 1.309-2.648 2.577-3.493.282-.188.55-.334.802-.438.286-.12.573-.22.861-.304a.129.129 0 00.087-.087A6.016 6.016 0 015.635 2.31C6.315 1.464 7.132.846 8.086.457zm-.804 7.85a.848.848 0 00-1.473.842l1.694 2.965-1.688 2.848a.849.849 0 001.46.864l1.94-3.272a.849.849 0 00.007-.854l-1.94-3.393zm5.446 6.24a.849.849 0 000 1.695h4.848a.849.849 0 000-1.696h-4.848z"
|
|
1266
|
-
],
|
|
1267
|
-
amp: [
|
|
1268
|
-
"M15.087 23.18L12.03 24l-2.097-7.823-5.738 5.738-2.251-2.251 5.718-5.719-7.769-2.082.82-3.057 11.294 3.08 3.08 11.295z",
|
|
1269
|
-
"M19.505 18.762l-3.057.82-2.564-9.573-9.572-2.564.819-3.057 11.295 3.079 3.08 11.295z",
|
|
1270
|
-
"M23.893 14.374l-3.057.82-2.565-9.572L8.7 3.057 9.52 0l11.295 3.08 3.079 11.294z"
|
|
1271
|
-
],
|
|
1272
|
-
"kimi-code": [
|
|
1273
|
-
"M1.052 16.916l9.539 2.552a21.007 21.007 0 00.06 2.033l5.956 1.593a11.997 11.997 0 01-5.586.865l-.18-.016-.044-.004-.084-.009-.094-.01a11.605 11.605 0 01-.157-.02l-.107-.014-.11-.016a11.962 11.962 0 01-.32-.051l-.042-.008-.075-.013-.107-.02-.07-.015-.093-.019-.075-.016-.095-.02-.097-.023-.094-.022-.068-.017-.088-.022-.09-.024-.095-.025-.082-.023-.109-.03-.062-.02-.084-.025-.093-.028-.105-.034-.058-.019-.08-.026-.09-.031-.066-.024a6.293 6.293 0 01-.044-.015l-.068-.025-.101-.037-.057-.022-.08-.03-.087-.035-.088-.035-.079-.032-.095-.04-.063-.028-.063-.027a5.655 5.655 0 01-.041-.018l-.066-.03-.103-.047-.052-.024-.096-.046-.062-.03-.084-.04-.086-.044-.093-.047-.052-.027-.103-.055-.057-.03-.058-.032a6.49 6.49 0 01-.046-.026l-.094-.053-.06-.034-.051-.03-.072-.041-.082-.05-.093-.056-.052-.032-.084-.053-.061-.039-.079-.05-.07-.047-.053-.035a7.785 7.785 0 01-.054-.036l-.044-.03-.044-.03a6.066 6.066 0 01-.04-.028l-.057-.04-.076-.054-.069-.05-.074-.054-.056-.042-.076-.057-.076-.059-.086-.067-.045-.035-.064-.052-.074-.06-.089-.073-.046-.039-.046-.039a7.516 7.516 0 01-.043-.037l-.045-.04-.061-.053-.07-.062-.068-.06-.062-.058-.067-.062-.053-.05-.088-.084a13.28 13.28 0 01-.099-.097l-.029-.028-.041-.042-.069-.07-.05-.051-.05-.053a6.457 6.457 0 01-.168-.179l-.08-.088-.062-.07-.071-.08-.042-.049-.053-.062-.058-.068-.046-.056a7.175 7.175 0 01-.027-.033l-.045-.055-.066-.082-.041-.052-.05-.064-.02-.025a11.99 11.99 0 01-1.44-2.402zm-1.02-5.794l11.353 3.037a20.468 20.468 0 00-.469 2.011l10.817 2.894a12.076 12.076 0 01-1.845 2.005L.657 15.923l-.016-.046-.035-.104a11.965 11.965 0 01-.05-.153l-.007-.023a11.896 11.896 0 01-.207-.741l-.03-.126-.018-.08-.021-.097-.018-.081-.018-.09-.017-.084-.018-.094c-.026-.141-.05-.283-.071-.426l-.017-.118-.011-.083-.013-.102a12.01 12.01 0 01-.019-.161l-.005-.047a12.12 12.12 0 01-.034-2.145zm1.593-5.15l11.948 3.196c-.368.605-.705 1.231-1.01 1.875l11.295 3.022c-.142.82-.368 1.612-.668 2.365l-11.55-3.09L.124 10.26l.015-.1.008-.049.01-.067.015-.087.018-.098c.026-.148.056-.295.088-.442l.028-.124.02-.085.024-.097c.022-.09.045-.18.07-.268l.028-.102.023-.083.03-.1.025-.082.03-.096.026-.082.031-.095a11.896 11.896 0 011.01-2.232zm4.442-4.4L17.352 4.59a20.77 20.77 0 00-1.688 1.721l7.823 2.093c.267.852.442 1.744.513 2.665L2.106 5.213l.045-.065.027-.04.04-.055.046-.065.055-.076.054-.072.064-.086.05-.065.057-.073.055-.07.06-.074.055-.069.065-.077.054-.066.066-.077.053-.06.072-.082.053-.06.067-.074.054-.058.073-.078.058-.06.063-.067.168-.17.1-.098.059-.056.076-.071a12.084 12.084 0 012.272-1.677zM12.017 0h.097l.082.001.069.001.054.002.068.002.046.001.076.003.047.002.06.003.054.002.087.005.105.007.144.011.088.007.044.004.077.008.082.008.047.005.102.012.05.006.108.014.081.01.042.006.065.01.207.032.07.012.065.011.14.026.092.018.11.022.046.01.075.016.041.01L14.7.3l.042.01.065.015.049.012.071.017.096.024.112.03.113.03.113.032.05.015.07.02.078.024.073.023.05.016.05.016.076.025.099.033.102.036.048.017.064.023.093.034.11.041.116.045.1.04.047.02.06.024.041.018.063.026.04.018.057.025.11.048.1.046.074.035.075.036.06.028.092.046.091.045.102.052.053.028.049.026.046.024.06.033.041.022.052.029.088.05.106.06.087.051.057.034.053.032.096.059.088.055.098.062.036.024.064.041.084.056.04.027.062.042.062.043.023.017c.054.037.108.075.161.114l.083.06.065.048.056.043.086.065.082.064.04.03.05.041.086.069.079.065.085.071c.712.6 1.353 1.283 1.909 2.031L7.222.994l.062-.027.065-.028.081-.034.086-.035c.113-.045.227-.09.341-.131l.096-.035.093-.033.084-.03.096-.031c.087-.03.176-.058.264-.085l.091-.027.086-.025.102-.03.085-.023.1-.026L9.04.37l.09-.023.091-.022.095-.022.09-.02.098-.021.091-.02.095-.018.092-.018.1-.018.091-.016.098-.017.092-.014.097-.015.092-.013.102-.013.091-.012.105-.012.09-.01.105-.01c.093-.01.186-.018.28-.024l.106-.008.09-.005.11-.006.093-.004.1-.004.097-.002.099-.002.197-.002z"
|
|
1274
|
-
],
|
|
1275
|
-
openclaw: [
|
|
1276
|
-
"M9.046 7.104a.527.527 0 110 1.055.527.527 0 010-1.055z",
|
|
1277
|
-
"M15.376 7.104a.528.528 0 110 1.056.528.528 0 010-1.056z",
|
|
1278
|
-
"M16.877 1.912c.58-.27 1.14-.323 1.616-.037a.317.317 0 01-.326.542c-.227-.136-.547-.153-1.022.068-.352.165-.765.45-1.234.866 2.683 1.17 4.4 3.5 5.148 5.921a6.421 6.421 0 00-.704.184c-.578.016-1.174.204-1.502.735-.338.55-.268 1.276.072 2.069l.005.012.007.014c.523 1.045 1.318 1.91 2.2 2.284-.912 3.274-3.44 6.144-5.972 6.988v2.109h-2.11v-2.11c-1.043.417-2.086.01-2.11 0v2.11h-2.11v-2.11c-2.531-.843-5.061-3.713-5.973-6.987.882-.373 1.678-1.238 2.2-2.284l.007-.014.006-.012c.34-.793.41-1.518.071-2.069-.327-.531-.923-.719-1.503-.735a6.409 6.409 0 00-.704-.183c.749-2.421 2.466-4.751 5.149-5.922-.47-.416-.88-.701-1.234-.866-.474-.221-.794-.204-1.021-.068a.318.318 0 01-.435-.109.317.317 0 01.109-.433c.476-.286 1.036-.233 1.615.037.49.229 1.031.628 1.621 1.182A9.924 9.924 0 0112 2.568c1.199 0 2.284.19 3.256.526.59-.554 1.13-.953 1.62-1.182zM8.835 6.577a1.266 1.266 0 100 2.532 1.266 1.266 0 000-2.532zm6.33 0a1.267 1.267 0 100 2.533 1.267 1.267 0 000-2.533z",
|
|
1279
|
-
"M.395 13.118c-.966-1.932-.163-3.863 2.41-3.365v-.001l.05.01c.084.018.17.038.26.06.033.009.067.017.1.027.084.022.168.048.255.076l.09.027c.528 0 .95.158 1.16.501.212.343.212.87-.105 1.61-.085.17-.178.333-.276.489l-.01.017a4.967 4.967 0 01-.62.791l-.019.02c-1.092 1.117-2.496 1.336-3.295-.262z",
|
|
1280
|
-
"M21.193 9.753c2.574-.5 3.378 1.433 2.411 3.365-.58 1.159-1.476 1.361-2.342.96l-.011-.005a2.419 2.419 0 01-.114-.056l-.019-.01a2.751 2.751 0 01-.115-.067l-.023-.014c-.035-.022-.071-.044-.106-.068l-.05-.035c-.55-.388-1.062-1.007-1.44-1.76-.276-.647-.311-1.132-.174-1.472.176-.439.636-.639 1.23-.639.032-.011.066-.02.099-.03.08-.026.16-.05.238-.072l.117-.03a5.502 5.502 0 01.3-.067z"
|
|
1281
|
-
],
|
|
1282
|
-
hermes: [
|
|
1283
|
-
"M5.938 12.835c.127-.039.285.02.373.143.028.038.036.092.046.14.003.014-.02.033-.04.05-.124-.098-.24-.194-.354-.291-.011-.01-.016-.027-.025-.042zM8.396 9.412c.195-.032.39-.06.588-.05a.54.54 0 01.148.026c.202.071.402.147.601.224.028.01.05.036.075.055l-.013.027a9.203 9.203 0 01-.26-.089c-.115-.038-.213-.077-.315-.098-.25-.05-.25-.046-.292-.014l.574.144c.275.139.55.276.823.417.042.022.09.057.107.098.026.06.063.076.117.072.066-.006.132-.017.213-.027l-.04.086c.051.08.142.02.216.064-.074.13-.247.09-.334.199l.061.074-.12.087c0 .106-.038.168-.306.243l.026.085-.196.042.07.124h-.25l-.007.137c-.081-.01-.161-.018-.244-.027l-.053.123c-.027-.008-.052-.011-.073-.023-.067-.038-.128-.056-.195.006-.019.017-.063.014-.093.008-.026-.006-.05-.029-.07-.042-.11.095-.11.095-.208.003-.057.046-.12.074-.186.011-.063.027-.123-.02-.178-.014-.07.007-.097-.035-.133-.07l-.13.033c-.013-.236-.194-.19-.34-.203.005-.072.05-.092.095-.094a.474.474 0 01.159.022c.164.05.32.12.496.138.203.021.405.029.601-.015.265-.059.52-.149.707-.365.049-.056.083-.127.117-.195.019-.038.02-.084-.02-.116a1.397 1.397 0 00-.382-.217c.024.12-.031.182-.115.221 0 .014-.004.025 0 .03.08.115.084.16-.007.267a1.39 1.39 0 01-.218.211.477.477 0 01-.641-.05 1.36 1.36 0 01-.133-.152c-.078-.107-.076-.108-.033-.236-.165-.08-.128-.226-.104-.364.008-.05.028-.096.049-.163-.04.014-.067.017-.087.032a.897.897 0 00-.316.357c-.007.016-.01.034-.02.047-.012.015-.034.038-.045.035-.02-.006-.037-.027-.05-.045-.008-.012-.007-.032-.012-.057h-.126l.053-.172a14.82 14.82 0 00-.039-.049l.11-.284c-.06.026-.091.044-.124.051-.03.007-.064 0-.095 0 0-.031-.01-.07.004-.092.149-.22.305-.428.593-.476z",
|
|
1284
|
-
"M8.06 10.788c-.003-.038-.004-.075.037-.062.016.006.034.048.028.067-.01.04-.038.032-.064-.005z",
|
|
1285
|
-
"M11.981.009c.226-.012.453-.011.679 0 .247.01.495.024.74.062.401.064.798.157 1.19.273.463.138.92.299 1.356.511a7.31 7.31 0 012.948 2.642c.292.469.536.963.739 1.479.219.556.446 1.11.623 1.683.204.654.329 1.326.458 1.997.097.504.182 1.01.29 1.511.156.722.329 1.44.494 2.16.186.812.4 1.615.63 2.415.102.355.193.713.282 1.072.11.436.202.876.254 1.323.031.278.066.557.073.837a7.56 7.56 0 01-.017.88c-.037.413-.1.818-.226 1.212a5.017 5.017 0 01-.915 1.649l-.13.156.018.023c.043-.023.088-.041.127-.068.2-.138.373-.307.531-.49.4-.46.721-.973.975-1.529a3.59 3.59 0 00.325-1.72c-.024-.424-.097-.834-.3-1.213-.013-.027-.015-.06-.03-.121.05.035.082.048.101.072.107.13.22.258.315.398.33.494.46 1.052.486 1.64a3.75 3.75 0 01-.47 1.97c-.36.655-.887 1.14-1.526 1.506-.193.111-.394.21-.595.308-.157.078-.248.211-.318.365a.522.522 0 00-.033.406.359.359 0 01.013.139c-.005.077-.077.155-.14.162-.054.006-.125-.043-.15-.116a1.206 1.206 0 01-.06-.233c-.04-.314-.155-.6-.308-.87a3.906 3.906 0 00-.73-.91 2.129 2.129 0 00-.897-.524 4.093 4.093 0 00-.692-.131c-.075-.008-.15-.04-.22.01.18.06.363.11.538.18.434.173.82.43 1.18.728.308.255.58.543.794.884.098.155.186.315.227.496.027.123.042.25.067.375.013.062-.002.109-.053.144-.047.033-.122.034-.163-.01a.455.455 0 01-.08-.14c-.03-.073-.038-.159-.078-.225a7.314 7.314 0 00-1.423-1.664c-.16-.137-.329-.26-.537-.323-.376-.114-.753-.203-1.15-.154-.213.025-.427.032-.64.053a1.6 1.6 0 00-.736.278 5.14 5.14 0 00-.834.72c-.329.342-.642.699-.955 1.055-.136.155-.264.319-.314.531a5.227 5.227 0 00-.012.051.096.096 0 01-.09.076h-.31c-.046 0-.082-.048-.072-.094.023-.108.045-.216.07-.324.075-.325.19-.635.368-.917.024-.039.04-.088.104-.08l.01.049.027.077c.28-.435.571-.834.996-1.135.283-.204.584-.378.89-.55a.196.196 0 00-.098-.002c-.162.043-.325.084-.485.134-.402.124-.764.33-1.11.566-.147.1-.298.193-.414.333a7.314 7.314 0 00-1.07 1.767.845.845 0 00-.04.12.075.075 0 01-.072.056h-.494c-.04 0-.062-.051-.036-.082.123-.14.246-.282.377-.415.275-.281.58-.532.777-.884.027-.048.063-.09.095-.135.238-.333.54-.607.818-.902.082-.086.175-.16.26-.24.029-.027.053-.057.079-.085l-.018-.025-.135.041c-.034.017-.07.031-.102.05-.248.144-.494.292-.743.433-.408.23-.825.439-1.209.711-.281.2-.591.358-.889.533-.02.012-.044.015-.08.028-.015-.135.143-.201.108-.336-.033.014-.064.02-.085.038-.111.096-.227.19-.328.296-.148.157-.284.325-.425.488-.125.143-.25.286-.373.431A.153.153 0 019.89 24H8.762a.316.316 0 00.016-.042c.028-.09.085-.172.083-.28-.091-.018-.162.001-.212.077a4.45 4.45 0 00-.136.215c-.01.016-.024.03-.042.03h-.093c-.019 0-.029-.022-.017-.037.071-.088.14-.178.209-.268.001-.002-.006-.012-.012-.024-.014.004-.03.006-.045.013-.176.09-.352.181-.527.274a.363.363 0 01-.168.042H5.202c-.026 0-.039-.036-.019-.053.21-.178.402-.374.558-.605.335-.496.538-1.047.667-1.629.004-.02-.003-.043-.006-.091-.037.048-.059.072-.076.1a1.943 1.943 0 01-.334.415c-.28.258-.59.448-.983.464-.297.012-.588 0-.865-.127-.46-.21-.722-.57-.794-1.072-.025-.17-.017-.171-.182-.219A3.513 3.513 0 011.97 20.6a2.286 2.286 0 01-.808-1.13 3.569 3.569 0 01-.16-1.245c.002-.034.016-.067.024-.1.032.023.046.043.05.066.033.153.059.308.096.46.086.355.257.664.516.92.258.256.571.419.91.532.358.118.717.138 1.07-.016a1.89 1.89 0 00.621-.452c.328-.348.533-.76.648-1.223.009-.034.005-.071.007-.11-.015.006-.026.006-.03.011-.031.05-.064.1-.093.152-.284.502-.679.887-1.196 1.135-.351.17-.718.255-1.11.159a1.607 1.607 0 01-.971-.64 2.006 2.006 0 01-.368-.924 2.903 2.903 0 01.02-.886c.05-.439.466-1.17.742-1.271-.02.063-.035.112-.053.16-.043.116-.097.227-.13.345a1.901 1.901 0 00-.05.82c.033.212.09.416.204.6.147.236.346.407.62.465.11.023.225.014.338.018a.576.576 0 00.386-.131c.164-.128.282-.292.366-.481.168-.375.24-.777.309-1.179.05-.296.093-.594.133-.893.039-.281.071-.563.104-.845.026-.232.048-.464.074-.696.024-.228.052-.455.076-.683.024-.227.047-.455.069-.683.013-.14.022-.28.034-.42l.037-.417c.022-.25.041-.5.065-.748.008-.082-.02-.132-.09-.177a2.46 2.46 0 01-.492-.418c-.1-.109-.188-.228-.282-.342-.035-.042-.056-.097-.116-.118a2.084 2.084 0 00.275.597c.06.092.131.176.196.265.063.086.182.115.234.226-.028.003-.046.01-.06.006a4.74 4.74 0 01-.22-.057 2.71 2.71 0 01-1.287-.819c-.435-.487-.656-1.076-.71-1.723a5.206 5.206 0 01.014-1.06c.072-.602.22-1.186.45-1.745.155-.376.338-.741.526-1.102.205-.393.466-.75.765-1.076.512-.559 1.104-1.024 1.726-1.448.717-.49 1.478-.898 2.277-1.233C8.244.828 8.767.632 9.31.494c.655-.166 1.31-.33 1.982-.415.229-.03.458-.058.688-.07zm-1.847 22.82c-.07.06-.147.111-.207.18-.238.27-.464.549-.668.869l-.044.108a.177.177 0 00.093-.057c.174-.19.351-.378.519-.574.104-.122.195-.255.288-.386.024-.034.03-.08.046-.12l-.027-.02zm1.65-3.695a5.51 5.51 0 00-.653.593l-.37.386a.963.963 0 01-.377.25 1.372 1.372 0 01-.467.09c-.044 0-.087.006-.151.012.028.058.043.097.064.131.15.242.301.482.45.724.136.22.276.438.399.666.068.125.105.267.156.404.077.027.14-.018.202-.048.29-.135.579-.274.867-.412.213-.101.437-.186.636-.31.347-.215.68-.455 1.018-.685.015-.01.026-.028.042-.046-.023-.019-.038-.037-.056-.044-.287-.111-.527-.3-.77-.482a5.319 5.319 0 01-.506-.42 1.757 1.757 0 01-.41-.653c-.019-.049-.045-.095-.075-.156zm-5.847.264c-.06.096-.097.194-.132.293a3.38 3.38 0 01-.555 1.01c-.2.25-.455.412-.762.493-.23.06-.464.076-.7.07-.048-.002-.097.002-.158.005.016.04.021.066.035.085.1.145.23.246.4.295.157.046.316.034.498.023.181-.037.343-.115.485-.234.238-.199.402-.454.536-.732.175-.363.264-.751.342-1.144.01-.053.008-.11.011-.164zm14.945-4.586c.008.029.016.057.027.107.024.155.051.31.072.464.03.219.067.437.078.657.017.344.027.689-.014 1.033-.037.315-.063.633-.116.946a6.153 6.153 0 01-.46 1.518c-.008.018-.01.039-.02.082.047-.03.077-.042.098-.064.085-.083.17-.167.248-.255.271-.305.458-.66.596-1.043.18-.498.228-1.011.145-1.531-.103-.65-.33-1.263-.597-1.881a9.055 9.055 0 00-.024-.055l-.033.022zM5.797 8.29a.26.26 0 00.018.153c.124.251.25.501.379.75.025.049.066.09.03.163-.284.06-.578.119-.88.255.059.038.097.06.132.087.042.032.112.058.09.12-.01.033-.075.048-.117.072.017.01.043.021.067.036.166.102.33.207.447.368.138.192.229.404.188.644-.079.469-.306.85-.69 1.132-.054.04-.106.083-.161.122a.243.243 0 00-.103.245.77.77 0 00.055.195c.083.196.22.35.375.492.083.076.159.164.222.257a.37.37 0 01.025.377c-.023.05-.05.099-.076.148-.03.06-.028.111.022.162.041.042.08.089.112.138.038.058.078.079.147.05a.486.486 0 01.333-.006c.16.046.302.126.444.21.13.077.264.149.4.219.067.035.14.05.219.026.071-.022.124.01.145.076.02.064-.003.108-.074.139-.07.03-.137.063-.209.088-.1.035-.201.073-.314.077-.013-.107.11-.088.127-.159-.206-.126-.643-.145-.801-.034.063.112.035.21-.096.313-.13-.1-.025-.202.002-.3a.209.209 0 00-.249.17c-.015.101.067.216.178.224.108.007.218-.005.326-.012.06-.005.12-.027.199 0-.103.123-.248.127-.357.19.002.05.07.086.019.131-.053.048-.095-.001-.132-.03-.08-.063-.16-.126-.231-.197a.474.474 0 01-.157-.311.52.52 0 00-.043-.172c-.032-.074-.032-.137.033-.19-.018-.03-.028-.053-.045-.072a1.222 1.222 0 01-.196-.369c-.053-.137-.046-.264.048-.381.024-.03.05-.06.064-.095a.664.664 0 00.047-.168c.017-.165-.064-.287-.182-.387-.186-.156-.36-.322-.46-.551-.005-.011-.024-.017-.037-.026-.011.017-.024.027-.025.038-.019.185-.045.37-.052.557-.014.377.058.743.162 1.104.118.41.289.798.488 1.173.267.502.537 1.002.812 1.5.055.098.13.189.208.27.198.202.452.272.724.273.202 0 .404-.006.605-.026.295-.03.59-.073.884-.113.183-.025.365-.057.548-.08.21-.026.38.073.522.21.16.156.305.327.447.5.22.265.397.56.554.867.05.098.07.1.147.03.13-.121.26-.242.394-.36.067-.059.088-.12.067-.213a3.535 3.535 0 01-.085-.796c.002-.157.006-.314.018-.471.015-.224.03-.45.06-.672a59.114 59.114 0 01.362-2.298c.087-.493.182-.984.268-1.477.06-.347.118-.694.162-1.043.034-.273.055-.55.063-.825.011-.332.003-.665.002-.998 0-.077.004-.155-.01-.23-.028-.142-.01-.155-.162-.19a5.826 5.826 0 00-.607-.107c-.146-.018-.207-.053-.221-.19-.006-.049-.025-.098-.041-.146-.009-.025-.024-.048-.046-.09l-.025.264c-.009.096-.029.116-.127.115-.055 0-.11-.008-.164-.008-.476 0-.952-.008-1.426.032-.095.008-.173-.015-.226-.103-.04-.066-.088-.126-.134-.186-.063-.084-.086-.093-.182-.06-.195.068-.388.138-.582.21a2.71 2.71 0 00-.675.394.986.986 0 01-.323.168c-.033.01-.07.008-.127.013.02-.066.024-.114.047-.15.064-.105.135-.205.205-.306.023-.033.049-.063.073-.095l-.015-.023-.201.037c-.146.04-.296.07-.437.122-.148.053-.266.023-.386-.072a3.623 3.623 0 01-.733-.786l-.093-.132zm8.592 8.963l-.147.09c-.22.134-.44.266-.659.402-.093.058-.184.12-.27.188-.085.07-.124.161-.072.272.047.1.093.2.147.294.047.08.124.138.213.147.11.01.228.012.336-.012.217-.05.372-.205.528-.357a.291.291 0 00.087-.308c-.046-.18-.079-.365-.118-.547-.011-.052-.027-.103-.045-.169zm-.257-2.409c-.12.291-.205.597-.325.91-.151.433-.294.87-.435 1.323.036-.01.054-.01.067-.018.261-.16.522-.324.785-.484.054-.033.071-.078.065-.138-.012-.13-.024-.262-.034-.393l-.068-.886c-.008-.103-.02-.206-.029-.31-.009 0-.017-.002-.026-.004zm3.081-8.13l.099.285c.08.231.159.463.24.714l.58 1.952c.187.63.372 1.262.558 1.893.114.382.235.762.343 1.146.072.257.126.519.186.799.044.206.087.413.127.64.034.106.023.226.077.325l.025-.006-.068-.362c-.038-.206-.077-.412-.113-.638-.015-.07-.029-.141-.046-.211-.095-.396-.177-.796-.29-1.187-.196-.685-.413-1.364-.618-2.046-.165-.549-.322-1.1-.488-1.648-.069-.227-.15-.45-.226-.695l-.117-.336c-.037-.107-.075-.216-.115-.322-.04-.106-.084-.21-.127-.314a7.558 7.558 0 01-.027.01zM6.225 14.304c-.063-.001-.115.014-.134.083a.35.35 0 00.41.012 4.533 4.533 0 00-.276-.095zM5.23 11.98c-.026-.027-.057-.048-.075.002-.012.032-.007.07-.01.113.082-.037.082-.037.085-.115zm.062-1.189a.135.135 0 00-.088.056.197.197 0 00-.025.11c.005.152.01.306.026.457a.751.751 0 00.066.218c.061.136.157.167.288.101.055-.027.06-.054.025-.11a4.52 4.52 0 01-.129-.211c-.015-.068-.066-.131-.033-.207.04-.09-.076-.116-.074-.19V10.874c-.003-.038-.006-.087-.056-.083zm-.017-.968a.867.867 0 00-.467.127c-.076.045-.084.07-.05.158.034.087.07.173.115.254.064.117.09.125.21.077a.657.657 0 01.336-.053c.202.022.357.136.504.264l.092.077c.007-.006.014-.013.022-.018-.019-.105-.035-.226-.149-.264-.157-.053-.324-.075-.508-.117l-.24-.005c.24-.169.452-.044.687.009-.063-.115-.153-.147-.23-.193-.082-.05-.17-.092-.25-.144-.06-.037-.12-.08-.072-.172zm10.233.325c-.23-.01-.427.08-.608.211-.034.026-.06.065-.105.117.087.026.15.046.232.065.044-.015.088-.03.13-.046.306-.114.61-.115.904.031.126.063.237.04.366-.005-.02-.031-.03-.054-.045-.071a.986.986 0 00-.448-.273c-.14-.044-.284-.024-.426-.03zM7.99 6.483a.308.308 0 00.002.133c.08.321.156.643.242.962.104.387.27.75.456 1.103.02.037.061.08.098.087a.404.404 0 00.253-.051l-.472-.84c-.23-.448-.405-.92-.579-1.394zM10.397.497c-.2-.008-.405.004-.603.034-.236.035-.47.087-.7.152-.287.08-.569.18-.852.273-.04.013-.074.038-.11.058.028.014.05.018.07.014.287-.068.58-.085.873-.09.134-.002.269.009.402.025.19.024.382.048.57.09.456.104.874.3 1.265.556.464.306.888.66 1.257 1.078.205.232.395.475.56.739.17.274.315.561.449.856.273.601.456 1.232.6 1.876.04.173.07.348.1.524.017.104.065.167.17.19.122.028.2.105.22.251-.003.102-.06.174-.129.24a1.065 1.065 0 00-.268.358.164.164 0 00.083-.039c.08-.086.162-.172.235-.265a.56.56 0 00.13-.333c.009-.05.022-.1.024-.15.007-.124-.017-.15-.143-.168-.025-.004-.049-.014-.073-.015-.082-.007-.125-.063-.137-.131-.033-.198-.004-.355.247-.408.086-.018.174-.03.26-.042.158-.023.315-.053.473-.067.14-.012.19.033.226.167.008.029.018.057.021.087.019.179-.008.225-.141.288-.027.013-.055.024-.078.042a.148.148 0 00-.051.067c-.039.144.073.382.206.445l.673.32c.023.011.05.015.075.023l.018-.026c-.015-.008-.032-.013-.044-.024a2.27 2.27 0 00-.544-.32 4.898 4.898 0 00-.173-.075.203.203 0 01-.126-.191c-.003-.085.045-.154.128-.187l.059-.025c.099-.044.118-.076.112-.187a.384.384 0 00-.008-.063c-.067-.294-.123-.59-.205-.88a9.478 9.478 0 00-.826-2.036 7.465 7.465 0 00-1.39-1.805 4.536 4.536 0 00-1.177-.824 3.656 3.656 0 00-1.016-.328 6.155 6.155 0 00-.712-.074zm6.719 5.955c.01.014.018.028.038.034l-.022-.044-.016.01zM4.103 3.917a.062.062 0 01-.03.012.455.455 0 01-.04.039c-.01.01-.02.02-.045.04l-.363.354c-.088.085-.17.178-.266.253-.284.22-.425.53-.544.855a.132.132 0 00-.007.071c.013.055.033.108.052.168l.074.026c-.017.056-.03.105-.047.152-.058.164-.118.327-.175.491-.005.015.008.036.019.077.08-.175.158-.33.225-.489.228-.544.484-1.074.819-1.561.09-.133.182-.266.283-.401.004-.006.007-.013.022-.03.001-.016.003-.032.015-.04l.008-.017zm12.976 2.408a.023.023 0 01.009.019.073.073 0 00-.006.01.188.188 0 00.007.02l.018.022c.002-.007.007-.016.005-.021-.003-.01-.012-.018-.02-.038a1.331 1.331 0 01-.013-.012zM4.199 4.48c-.003.004-.008.008-.027.014-.005.013-.011.025-.031.047a2.085 2.085 0 01-.124.167c-.048.07-.116.055-.181.041-.134-.028-.228.016-.287.143-.089.187-.187.37-.273.56-.049.108-.11.216-.118.36.081.003.154.007.228.008h.228a2.563 2.563 0 01-.079.264c-.01.052-.022.103-.033.155l.02.004c.018-.046.037-.092.067-.153.066-.142.13-.285.2-.426.02-.04.034-.1.116-.092 0 .043.004.084 0 .124-.005.045-.017.09-.028.143.141.043.086.174.115.269.102-.022.104-.195.248-.144v.205l.017.002.439-1.059c-.13 0-.246-.02-.358.033-.024.011-.058-.001-.108-.004.075-.15.139-.278.211-.417a.128.128 0 01.025-.036c0-.015-.001-.03.008-.038l.006-.02c-.005.006-.01.011-.028.017-.004.012-.009.024-.026.045a.085.085 0 01-.032.033c-.123.157-.09.164-.258.106-.079-.027-.078-.028-.047-.144.028-.046.056-.093.098-.15 0-.016-.001-.032.007-.042L4.2 4.48zm2.073-.67c-.003.006-.007.011-.027.016-.094.125-.194.246-.28.377-.155.238-.301.481-.451.723-.14.224-.345.368-.575.481-.017.008-.04.006-.079.011.012-.059.016-.109.033-.153a6.076 6.076 0 01.229-.518l-.007-.02a.138.138 0 01-.035.025c-.028.05-.055.1-.093.164-.26.424-.443.817-.442.95.024.004.048.011.073.013.177.013.188.007.26-.165.03-.07.077-.12.147-.15l.175-.07c.044-.018.085-.057.146-.032.003.05-.01.11.014.145.042.062.044.125.047.193.002.049.017.098.026.147.029-.034.039-.065.05-.097.142-.39.277-.782.428-1.17.1-.256.22-.504.33-.756.013-.03.013-.067.03-.092V3.81zm3.987-.34c0 .045.01.084.021.123.042.16.094.318.124.48.024.133.023.27.028.406 0 .033-.019.067-.032.11-.094-.058-.047-.158-.106-.215h-.125c-.015.072-.01.152-.046.2-.066.085-.155.154-.236.227-.043.038-.078.018-.103-.025l-.046-.087c-.065.035-.117.069-.172.093-.116.051-.235.095-.35.147-.085.038-.09.053-.07.147.014.075.034.148.047.223.013.072.05.109.123.124.233.05.462.115.657.265.058-.102.058-.102.168-.151.03-.014.06-.03.092-.042.08-.03.115-.017.15.06.023.048.041.098.066.158.06-.14-.042-.267.017-.416.157.18.24.39.375.567a.235.235 0 00.022-.098c.002-.124 0-.247.002-.371 0-.034.013-.067.02-.1l.032-.003c.11.155.13.354.226.52a3.036 3.036 0 00-.01-.392c-.004-.045 0-.074.05-.088.08.036.116.14.215.158-.03-.275-.423-1.137-.798-1.635-.114-.127-.2-.28-.34-.386zm-2.667.696c-.019.034-.03.05-.037.067-.061.185-.125.37-.18.556-.031.105-.087.169-.195.19-.09.019-.178.052-.268.073-.038.009-.089.015-.118-.003-.024-.016-.025-.069-.036-.106-.064.076-.082.087-.17.047-.133-.062-.262-.135-.393-.201-.048-.025-.093-.063-.17-.03-.043.12-.091.25-.137.382-.099.28-.087.242.095.453.046.048.102.03.154.023.054-.009.106-.03.16-.036.13-.013.26-.08.367-.015.204-.064.387-.122.571-.178.05-.015.089.005.114.054.022.042.034.093.082.121.038-.056-.013-.128.063-.178l.14.241-.042-1.46zm.278.358c-.096-.01-.107.01-.11.108-.002.038-.003.078.002.115.03.2.099.386.174.57.002.006.012.01.022.015l.078-.05c.052.036.081.088.153.088.205-.002.41.014.616.012.099-.001.158.042.205.12.018.03.024.077.088.066l-.08-.394c-.05-.195-.085-.395-.172-.589-.057.057-.114.068-.18.046a.72.72 0 00-.135-.028c-.22-.028-.44-.059-.66-.08zm10.254-1.727c.089.163.155.316.139.491-.016.168.026.342-.044.516-.047-.033-.088-.082-.112-.075-.117.035-.164-.057-.227-.115a4.772 4.772 0 01-.286-.29l-.104-.113a4.856 4.856 0 01-.023.019c.035.046.07.093.11.156.04.064.084.127.122.193.034.058.065.118.031.205-.082-.01-.164-.019-.246-.032-.06-.01-.101 0-.124.07-.031.098-.037.096-.15.09.02.042.036.08.057.116.041.074.03.138-.03.196-.06.06-.118.122-.178.181a.175.175 0 01-.185.046c-.222-.061-.447-.113-.67-.174-.032-.009-.063-.04-.086-.068-.03-.04-.052-.087-.08-.13-.044-.07-.09-.138-.136-.207a.18.18 0 00-.014.105c.012.127.03.253.035.38.005.1-.024.12-.121.104-.104-.017-.206-.04-.31-.058-.064-.012-.131-.028-.202.03l.081.208c.09 0 .166-.01.237.002a.819.819 0 01.458.251c.078.083.154.168.241.26l.018-.005c-.004-.006-.008-.013-.01-.04.014-.056-.062-.118.018-.178.031.03.064.057.088.09.058.078.111.159.169.257l.089.141.024-.013a2093.819 2093.819 0 01-.427-.934c.055.007.083.007.108.016.193.07.385.142.577.216.074.028.147.06.219.094.062.028.112.018.157-.033.05-.056.102-.112.154-.167.05-.051.095-.046.132.014.016.025.026.053.04.08.071.138.143.277.217.433l.159.308.025-.011c-.044-.106-.07-.218-.138-.334-.057-.182-.168-.346-.206-.545.136.034.362.326.567.732l.057.074.018-.011a1.563 1.563 0 01-.052-.127c-.046-.145-.097-.29-.136-.436-.022-.083-.036-.173.022-.26l.109.058-.026-.207.027-.016c.022.02.05.036.065.06.073.108.143.22.215.33.01.016.029.029.043.043-.036-.217-.2-.38-.229-.626l.155.112c.014-.166.012-.319.042-.465.032-.158-.023-.297-.063-.445.024.004.036.006.055.025.092.124.183.249.277.371.02.027.05.047.069.087l.04.063.019-.015a.293.293 0 01-.053-.082 27.922 27.922 0 01-.332-.49c-.221-.311-.363-.467-.485-.521zm-6.57.327c-.003.161.092.275.069.415l-.368.087c.09.139.032.237-.052.331-.05.057-.092.122-.143.178-.037.04-.046.078-.018.126l.16.275c.029.048.072.066.128.064.076-.003.152 0 .228-.001.116-.003.216.022.275.137.006.014.02.024.044.052.004-.059-.003-.098.01-.13.016-.04.04-.099.072-.108.084-.023.173-.024.26-.03.013-.001.027.018.04.029l.071.065c.019-.11-.082-.198-.024-.31l.126.04c-.026-.123-.07-.245-.071-.366 0-.123.051-.243.115-.36.107.062.16.156.234.253.183.265.36.533.494.834.165-.078.27.068.407.088-.003-.106-.133-.441-.197-.492a.142.142 0 00-.102-.028c-.06.011-.119.039-.191.063-.025-.039-.056-.078-.077-.122a3.936 3.936 0 00-.473-.783c-.076-.094-.16-.182-.228-.26l-.391.285c-.049.035-.094.03-.132-.017l-.169-.207c-.025-.03-.053-.059-.097-.108z"
|
|
1286
|
-
]
|
|
1287
|
-
};
|
|
1288
|
-
function BotGlyph({ className }) {
|
|
1289
|
-
return /* @__PURE__ */ jsxs3("svg", { className, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
|
|
1290
|
-
/* @__PURE__ */ jsx3("path", { d: "M12 8V4H8" }),
|
|
1291
|
-
/* @__PURE__ */ jsx3("rect", { width: "16", height: "12", x: "4", y: "8", rx: "2" }),
|
|
1292
|
-
/* @__PURE__ */ jsx3("path", { d: "M2 14h2" }),
|
|
1293
|
-
/* @__PURE__ */ jsx3("path", { d: "M20 14h2" }),
|
|
1294
|
-
/* @__PURE__ */ jsx3("path", { d: "M15 13v2" }),
|
|
1295
|
-
/* @__PURE__ */ jsx3("path", { d: "M9 13v2" })
|
|
1296
|
-
] });
|
|
1297
|
-
}
|
|
1298
|
-
function PlugGlyph({ className }) {
|
|
1299
|
-
return /* @__PURE__ */ jsxs3("svg", { className, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
|
|
1300
|
-
/* @__PURE__ */ jsx3("path", { d: "M12 22v-5" }),
|
|
1301
|
-
/* @__PURE__ */ jsx3("path", { d: "M15 8V2" }),
|
|
1302
|
-
/* @__PURE__ */ jsx3("path", { d: "M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z" }),
|
|
1303
|
-
/* @__PURE__ */ jsx3("path", { d: "M9 8V2" })
|
|
1304
|
-
] });
|
|
1305
|
-
}
|
|
1306
|
-
function TerminalGlyph({ className }) {
|
|
1307
|
-
return /* @__PURE__ */ jsxs3("svg", { className, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
|
|
1308
|
-
/* @__PURE__ */ jsx3("path", { d: "M12 19h8" }),
|
|
1309
|
-
/* @__PURE__ */ jsx3("path", { d: "m4 17 6-6-6-6" })
|
|
1310
|
-
] });
|
|
1311
|
-
}
|
|
1312
|
-
var FALLBACK_GLYPHS = {
|
|
1313
|
-
"factory-droids": BotGlyph,
|
|
1314
|
-
nanoclaw: PlugGlyph,
|
|
1315
|
-
"cli-base": TerminalGlyph
|
|
1316
|
-
};
|
|
1317
|
-
function HarnessGlyph({ harness, className }) {
|
|
1318
|
-
const brand = BRAND_PATHS[harness];
|
|
1319
|
-
if (brand) {
|
|
1320
|
-
return /* @__PURE__ */ jsx3(
|
|
1321
|
-
"svg",
|
|
1322
|
-
{
|
|
1323
|
-
className,
|
|
1324
|
-
viewBox: "0 0 24 24",
|
|
1325
|
-
fill: "currentColor",
|
|
1326
|
-
fillRule: "evenodd",
|
|
1327
|
-
clipRule: "evenodd",
|
|
1328
|
-
role: "img",
|
|
1329
|
-
"aria-label": harness,
|
|
1330
|
-
"data-glyph": harness,
|
|
1331
|
-
children: brand.map((d) => /* @__PURE__ */ jsx3("path", { d }, d.slice(0, 32)))
|
|
1332
|
-
}
|
|
1333
|
-
);
|
|
1334
|
-
}
|
|
1335
|
-
const Fallback = FALLBACK_GLYPHS[harness] ?? BotGlyph;
|
|
1336
|
-
const kind = Fallback === BotGlyph ? "bot" : Fallback === PlugGlyph ? "plug" : "terminal";
|
|
1337
|
-
return /* @__PURE__ */ jsx3("span", { role: "img", "aria-label": harness, "data-glyph": kind, className: "inline-flex", children: /* @__PURE__ */ jsx3(Fallback, { className }) });
|
|
1338
|
-
}
|
|
1339
|
-
|
|
1340
|
-
// src/web-react/agent-settings-popover.tsx
|
|
1341
|
-
import { useCallback as useCallback3, useEffect as useEffect4, useState as useState4 } from "react";
|
|
1342
|
-
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1343
|
-
function AgentSettingsPopover({
|
|
1344
|
-
label = "Agent settings",
|
|
1345
|
-
summary,
|
|
1346
|
-
children,
|
|
1347
|
-
open: controlledOpen,
|
|
1348
|
-
onOpenChange,
|
|
1349
|
-
disabled = false,
|
|
1350
|
-
className,
|
|
1351
|
-
panelClassName
|
|
1352
|
-
}) {
|
|
1353
|
-
const [localOpen, setLocalOpen] = useState4(false);
|
|
1354
|
-
const open = !disabled && (controlledOpen ?? localOpen);
|
|
1355
|
-
const changeOpen = useCallback3((next) => {
|
|
1356
|
-
setLocalOpen(next);
|
|
1357
|
-
onOpenChange?.(next);
|
|
1358
|
-
}, [onOpenChange]);
|
|
1359
|
-
useEffect4(() => {
|
|
1360
|
-
if (disabled) changeOpen(false);
|
|
1361
|
-
}, [disabled, changeOpen]);
|
|
1362
|
-
const { containerRef, triggerRef, panelRef, triggerProps, id } = usePopoverDialog(open, changeOpen);
|
|
1363
|
-
return /* @__PURE__ */ jsxs4("div", { ref: containerRef, className: `inline-flex min-w-0 max-w-full ${className ?? ""}`, children: [
|
|
1364
|
-
/* @__PURE__ */ jsxs4(
|
|
1365
|
-
"button",
|
|
1366
|
-
{
|
|
1367
|
-
type: "button",
|
|
1368
|
-
...triggerProps,
|
|
1369
|
-
disabled,
|
|
1370
|
-
"aria-label": label,
|
|
1371
|
-
title: label,
|
|
1372
|
-
"data-agent-settings-trigger": "",
|
|
1373
|
-
onClick: () => changeOpen(!open),
|
|
1374
|
-
"data-state": open ? "open" : "closed",
|
|
1375
|
-
className: "inline-flex h-[var(--control-height-sm,2rem)] max-w-[15rem] items-center gap-1.5 rounded-full border border-border bg-transparent px-2.5 text-sm font-normal text-muted-foreground transition-colors hover:bg-muted hover:text-foreground data-[state=open]:text-foreground disabled:cursor-not-allowed disabled:opacity-50",
|
|
1376
|
-
children: [
|
|
1377
|
-
/* @__PURE__ */ jsxs4("svg", { className: "h-4 w-4 shrink-0", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", "aria-hidden": true, children: [
|
|
1378
|
-
/* @__PURE__ */ jsx4("rect", { x: "4", y: "7", width: "16", height: "14", rx: "3" }),
|
|
1379
|
-
/* @__PURE__ */ jsx4("path", { d: "M12 7V3M9 3h6M1 12v4m22-4v4m-15-3h.01M16 13h.01M9 17h6" })
|
|
1380
|
-
] }),
|
|
1381
|
-
/* @__PURE__ */ jsx4("span", { className: "min-w-0 truncate", children: summary ?? label }),
|
|
1382
|
-
/* @__PURE__ */ jsx4("svg", { className: "h-3 w-3 shrink-0", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", "aria-hidden": true, children: /* @__PURE__ */ jsx4("path", { d: "m6 9 6 6 6-6" }) })
|
|
1383
|
-
]
|
|
1384
|
-
}
|
|
1385
|
-
),
|
|
1386
|
-
/* @__PURE__ */ jsx4(
|
|
1387
|
-
PopoverSurface,
|
|
1388
|
-
{
|
|
1389
|
-
open,
|
|
1390
|
-
id,
|
|
1391
|
-
role: "dialog",
|
|
1392
|
-
"aria-label": label,
|
|
1393
|
-
triggerRef,
|
|
1394
|
-
panelRef,
|
|
1395
|
-
className: `w-80 max-w-[calc(100vw-2rem)] space-y-4 overflow-y-auto rounded-xl border border-card-edge bg-popover p-4 text-foreground ${OVERLAY_SHADOW} ${panelClassName ?? ""}`,
|
|
1396
|
-
children
|
|
1397
|
-
}
|
|
1398
|
-
)
|
|
1399
|
-
] });
|
|
1400
|
-
}
|
|
1401
|
-
|
|
1402
|
-
// src/web-react/agent-session-controls.tsx
|
|
1403
|
-
import { useId as useId2, useMemo as useMemo2, useRef as useRef3, useState as useState5 } from "react";
|
|
1404
|
-
import { Fragment as Fragment2, jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1405
|
-
var HARNESS_LABELS = {
|
|
1406
|
-
opencode: "OpenCode (any model)",
|
|
1407
|
-
"claude-code": "Claude Code (Anthropic)",
|
|
1408
|
-
codex: "Codex (OpenAI)",
|
|
1409
|
-
"kimi-code": "Kimi (Moonshot)",
|
|
1410
|
-
amp: "Amp",
|
|
1411
|
-
"factory-droids": "Factory Droids",
|
|
1412
|
-
cursor: "Cursor",
|
|
1413
|
-
hermes: "Hermes",
|
|
1414
|
-
forge: "Forge",
|
|
1415
|
-
pi: "Pi",
|
|
1416
|
-
openclaw: "OpenClaw",
|
|
1417
|
-
acp: "ACP",
|
|
1418
|
-
"cli-base": "CLI"
|
|
1419
|
-
};
|
|
1420
|
-
function harnessLabel(h) {
|
|
1421
|
-
return HARNESS_LABELS[h] ?? h;
|
|
1422
|
-
}
|
|
1423
|
-
function ChevronDown({ className }) {
|
|
1424
|
-
return /* @__PURE__ */ jsx5("svg", { className, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx5("path", { d: "m6 9 6 6 6-6" }) });
|
|
1425
|
-
}
|
|
1426
|
-
function LockGlyph({ className }) {
|
|
1427
|
-
return /* @__PURE__ */ jsxs5("svg", { className, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
|
|
1428
|
-
/* @__PURE__ */ jsx5("rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2" }),
|
|
1429
|
-
/* @__PURE__ */ jsx5("path", { d: "M7 11V7a5 5 0 0 1 10 0v4" })
|
|
1430
|
-
] });
|
|
1431
|
-
}
|
|
1432
|
-
function GearGlyph({ className }) {
|
|
1433
|
-
return /* @__PURE__ */ jsxs5("svg", { className, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
|
|
1434
|
-
/* @__PURE__ */ jsx5("circle", { cx: "12", cy: "12", r: "3" }),
|
|
1435
|
-
/* @__PURE__ */ jsx5("path", { d: "M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1Z" })
|
|
1436
|
-
] });
|
|
1437
|
-
}
|
|
1438
|
-
var FOCUS_RING = "";
|
|
1439
|
-
function HarnessPicker({
|
|
1440
|
-
value,
|
|
1441
|
-
onChange,
|
|
1442
|
-
available,
|
|
1443
|
-
fullWidth = false,
|
|
1444
|
-
lockReason,
|
|
1445
|
-
variant = "chip",
|
|
1446
|
-
defaultOption,
|
|
1447
|
-
disabled = false,
|
|
1448
|
-
id,
|
|
1449
|
-
"aria-describedby": ariaDescribedBy
|
|
1450
|
-
}) {
|
|
1451
|
-
const [requestedOpen, setOpen] = useState5(false);
|
|
1452
|
-
const open = requestedOpen && !disabled;
|
|
1453
|
-
const [hintOpen, setHintOpen] = useState5(false);
|
|
1454
|
-
const { containerRef, triggerRef, panelRef, triggerProps } = usePopover(open, setOpen);
|
|
1455
|
-
const hintPanelRef = useRef3(null);
|
|
1456
|
-
const panelId = useId2();
|
|
1457
|
-
const reasonId = useId2();
|
|
1458
|
-
const locked = lockReason !== void 0;
|
|
1459
|
-
const field = variant === "field";
|
|
1460
|
-
const options = available ?? Object.keys(HARNESS_LABELS);
|
|
1461
|
-
const showHint = () => setHintOpen(true);
|
|
1462
|
-
const hideHint = () => setHintOpen(false);
|
|
1463
|
-
const label = value ? harnessLabel(value) : defaultOption?.label ?? "Select harness";
|
|
1464
|
-
const choose = (next) => {
|
|
1465
|
-
onChange(next);
|
|
1466
|
-
setOpen(false);
|
|
1467
|
-
};
|
|
1468
|
-
return /* @__PURE__ */ jsxs5("div", { ref: containerRef, className: pickerRootClass(fullWidth || field), children: [
|
|
1469
|
-
/* @__PURE__ */ jsxs5(
|
|
1470
|
-
"button",
|
|
1471
|
-
{
|
|
1472
|
-
type: "button",
|
|
1473
|
-
...triggerProps,
|
|
1474
|
-
id,
|
|
1475
|
-
disabled,
|
|
1476
|
-
"aria-haspopup": locked ? void 0 : true,
|
|
1477
|
-
"aria-expanded": locked ? void 0 : open,
|
|
1478
|
-
"aria-controls": !locked && open ? panelId : void 0,
|
|
1479
|
-
"aria-disabled": locked || void 0,
|
|
1480
|
-
"aria-describedby": [locked ? reasonId : void 0, ariaDescribedBy].filter(Boolean).join(" ") || void 0,
|
|
1481
|
-
onClick: locked ? void 0 : () => setOpen(!open),
|
|
1482
|
-
onMouseEnter: locked ? showHint : void 0,
|
|
1483
|
-
onMouseLeave: locked ? hideHint : void 0,
|
|
1484
|
-
onFocus: locked ? showHint : void 0,
|
|
1485
|
-
onBlur: locked ? hideHint : void 0,
|
|
1486
|
-
title: "Agent backend",
|
|
1487
|
-
"data-state": !locked && open ? "open" : "closed",
|
|
1488
|
-
className: field ? fieldPickerTriggerClass({ interactive: !locked && !disabled }) : variant === "quiet" ? `${quietPickerTriggerClass({ interactive: !locked })} w-full justify-between` : `inline-flex min-h-[36px] w-full items-center justify-between gap-1.5 rounded-full border border-border bg-card px-3 py-1.5 text-sm font-medium text-foreground transition ${locked ? "cursor-default" : "hover:bg-accent"} ${FOCUS_RING}`,
|
|
1489
|
-
children: [
|
|
1490
|
-
/* @__PURE__ */ jsxs5("span", { className: `flex min-w-0 items-center ${field ? "flex-1 gap-2" : "gap-1.5"}`, children: [
|
|
1491
|
-
value ? /* @__PURE__ */ jsx5(HarnessGlyph, { harness: value, className: variant === "quiet" ? "h-4 w-4 shrink-0" : "h-4 w-4 shrink-0 text-foreground" }) : /* @__PURE__ */ jsx5(GearGlyph, { className: "h-3.5 w-3.5 shrink-0 text-muted-foreground" }),
|
|
1492
|
-
/* @__PURE__ */ jsx5("span", { className: `truncate ${value ? "" : "text-muted-foreground"}`, children: label })
|
|
1493
|
-
] }),
|
|
1494
|
-
locked ? /* @__PURE__ */ jsx5(LockGlyph, { className: "h-3.5 w-3.5 shrink-0 text-muted-foreground" }) : /* @__PURE__ */ jsx5(ChevronDown, { className: "h-3.5 w-3.5 shrink-0 text-muted-foreground" })
|
|
1495
|
-
]
|
|
1496
|
-
}
|
|
1497
|
-
),
|
|
1498
|
-
locked && /* @__PURE__ */ jsxs5(Fragment2, { children: [
|
|
1499
|
-
/* @__PURE__ */ jsx5("span", { id: reasonId, className: "sr-only", children: lockReason }),
|
|
1500
|
-
/* @__PURE__ */ jsx5(
|
|
1501
|
-
PopoverSurface,
|
|
1502
|
-
{
|
|
1503
|
-
open: hintOpen,
|
|
1504
|
-
role: "tooltip",
|
|
1505
|
-
triggerRef,
|
|
1506
|
-
panelRef: hintPanelRef,
|
|
1507
|
-
matchTriggerWidth: fullWidth || field,
|
|
1508
|
-
className: `max-w-[248px] rounded-lg border border-card-edge bg-popover px-2.5 py-1.5 text-sm leading-snug text-muted-foreground ${OVERLAY_SHADOW}`,
|
|
1509
|
-
children: /* @__PURE__ */ jsx5("span", { "aria-hidden": true, children: lockReason })
|
|
1510
|
-
}
|
|
1511
|
-
)
|
|
1512
|
-
] }),
|
|
1513
|
-
/* @__PURE__ */ jsxs5(
|
|
1514
|
-
PopoverSurface,
|
|
1515
|
-
{
|
|
1516
|
-
open: !locked && open,
|
|
1517
|
-
id: panelId,
|
|
1518
|
-
role: "menu",
|
|
1519
|
-
triggerRef,
|
|
1520
|
-
panelRef,
|
|
1521
|
-
matchTriggerWidth: true,
|
|
1522
|
-
side: field ? "below" : void 0,
|
|
1523
|
-
className: `max-h-64 min-w-[248px] overflow-y-auto rounded-xl border border-card-edge bg-popover p-1 ${OVERLAY_SHADOW}`,
|
|
1524
|
-
children: [
|
|
1525
|
-
defaultOption && /* @__PURE__ */ jsxs5(
|
|
1526
|
-
"button",
|
|
1527
|
-
{
|
|
1528
|
-
type: "button",
|
|
1529
|
-
role: "menuitemradio",
|
|
1530
|
-
"aria-checked": value === "",
|
|
1531
|
-
onClick: () => choose(""),
|
|
1532
|
-
className: `flex w-full items-center gap-2.5 rounded-md px-3 py-2 text-left text-sm transition ${FOCUS_RING} ${value === "" ? "bg-primary/10 font-medium" : "hover:bg-accent"}`,
|
|
1533
|
-
children: [
|
|
1534
|
-
/* @__PURE__ */ jsx5(GearGlyph, { className: "h-4 w-4 shrink-0 text-muted-foreground" }),
|
|
1535
|
-
/* @__PURE__ */ jsx5("span", { className: "truncate", children: defaultOption.label }),
|
|
1536
|
-
value === "" && /* @__PURE__ */ jsx5(CheckGlyph, { className: "ml-auto h-3.5 w-3.5 shrink-0 text-primary" })
|
|
1537
|
-
]
|
|
1538
|
-
}
|
|
1539
|
-
),
|
|
1540
|
-
options.map((h) => /* @__PURE__ */ jsxs5(
|
|
1541
|
-
"button",
|
|
1542
|
-
{
|
|
1543
|
-
type: "button",
|
|
1544
|
-
role: "menuitemradio",
|
|
1545
|
-
"aria-checked": h === value,
|
|
1546
|
-
onClick: () => choose(h),
|
|
1547
|
-
className: `flex w-full items-center gap-2.5 rounded-md px-3 py-2 text-left text-sm transition ${FOCUS_RING} ${h === value ? "bg-primary/10 font-medium" : "hover:bg-accent"}`,
|
|
1548
|
-
children: [
|
|
1549
|
-
/* @__PURE__ */ jsx5(HarnessGlyph, { harness: h, className: "h-4 w-4 shrink-0 text-foreground" }),
|
|
1550
|
-
/* @__PURE__ */ jsx5("span", { className: "truncate", children: harnessLabel(h) }),
|
|
1551
|
-
h === value && /* @__PURE__ */ jsx5(CheckGlyph, { className: "ml-auto h-3.5 w-3.5 shrink-0 text-primary" })
|
|
1552
|
-
]
|
|
1553
|
-
},
|
|
1554
|
-
h
|
|
1555
|
-
))
|
|
1556
|
-
]
|
|
1557
|
-
}
|
|
1558
|
-
)
|
|
1559
|
-
] });
|
|
1560
|
-
}
|
|
1561
|
-
function useCoherentHandlers(props) {
|
|
1562
|
-
const { model, models, harness, onModelChange, onHarnessChange, harnessLockReason } = props;
|
|
1563
|
-
const canonicalIds = useMemo2(() => models.map((m) => m.id), [models]);
|
|
1564
|
-
const harnessLocked = harnessLockReason !== void 0;
|
|
1565
|
-
const onModel = (next) => {
|
|
1566
|
-
onModelChange(next);
|
|
1567
|
-
if (harnessLocked) return;
|
|
1568
|
-
const nextHarness = snapHarnessToModel(harness, next);
|
|
1569
|
-
if (nextHarness !== harness) onHarnessChange(nextHarness);
|
|
1570
|
-
};
|
|
1571
|
-
const onHarness = (next) => {
|
|
1572
|
-
onHarnessChange(next);
|
|
1573
|
-
const snapped = snapModelToHarness(next, model, canonicalIds);
|
|
1574
|
-
if (snapped !== model) onModelChange(snapped);
|
|
1575
|
-
};
|
|
1576
|
-
return { onModel, onHarness };
|
|
1577
|
-
}
|
|
1578
|
-
function AgentSessionControls(props) {
|
|
1579
|
-
const {
|
|
1580
|
-
models,
|
|
1581
|
-
modelsLoading,
|
|
1582
|
-
model,
|
|
1583
|
-
harness,
|
|
1584
|
-
availableHarnesses,
|
|
1585
|
-
effort,
|
|
1586
|
-
onEffortChange,
|
|
1587
|
-
effortLevels,
|
|
1588
|
-
layout = "inline",
|
|
1589
|
-
showHarness = true,
|
|
1590
|
-
harnessLockReason,
|
|
1591
|
-
variant = "chip",
|
|
1592
|
-
renderProviderBadge,
|
|
1593
|
-
className,
|
|
1594
|
-
profileControl,
|
|
1595
|
-
settingsSummary
|
|
1596
|
-
} = props;
|
|
1597
|
-
const { onModel, onHarness } = useCoherentHandlers(props);
|
|
1598
|
-
const [open, setOpen] = useState5(false);
|
|
1599
|
-
const { containerRef: popoverRef, triggerRef, panelRef, triggerProps } = usePopover(open, setOpen);
|
|
1600
|
-
const panelId = useId2();
|
|
1601
|
-
const selectedModel = models.find((m) => m.id === model);
|
|
1602
|
-
const showEffort = selectedModel?.supportsReasoning ?? true;
|
|
1603
|
-
const modelPicker = /* @__PURE__ */ jsx5(
|
|
1604
|
-
ModelPicker,
|
|
1605
|
-
{
|
|
1606
|
-
value: model,
|
|
1607
|
-
onChange: onModel,
|
|
1608
|
-
models,
|
|
1609
|
-
loading: modelsLoading,
|
|
1610
|
-
renderProviderBadge,
|
|
1611
|
-
variant
|
|
1612
|
-
}
|
|
1613
|
-
);
|
|
1614
|
-
if (layout === "grouped") {
|
|
1615
|
-
return /* @__PURE__ */ jsxs5(AgentSettingsPopover, { summary: settingsSummary ?? selectedModel?.name ?? model, className, children: [
|
|
1616
|
-
profileControl != null && /* @__PURE__ */ jsxs5("div", { className: "space-y-1.5", children: [
|
|
1617
|
-
/* @__PURE__ */ jsx5("p", { className: "text-xs font-medium text-muted-foreground", children: "Profile" }),
|
|
1618
|
-
profileControl
|
|
1619
|
-
] }),
|
|
1620
|
-
/* @__PURE__ */ jsxs5("div", { className: "space-y-1.5", children: [
|
|
1621
|
-
/* @__PURE__ */ jsx5("p", { className: "text-xs font-medium text-muted-foreground", children: "Model" }),
|
|
1622
|
-
modelPicker
|
|
1623
|
-
] }),
|
|
1624
|
-
showHarness && /* @__PURE__ */ jsxs5("div", { className: "space-y-1.5", children: [
|
|
1625
|
-
/* @__PURE__ */ jsx5("p", { className: "text-xs font-medium text-muted-foreground", children: "Agent backend" }),
|
|
1626
|
-
/* @__PURE__ */ jsx5(HarnessPicker, { value: harness, onChange: (next) => {
|
|
1627
|
-
if (next) onHarness(next);
|
|
1628
|
-
}, available: availableHarnesses, lockReason: harnessLockReason, fullWidth: true, variant })
|
|
1629
|
-
] }),
|
|
1630
|
-
showEffort && /* @__PURE__ */ jsxs5("div", { className: "space-y-1.5", children: [
|
|
1631
|
-
/* @__PURE__ */ jsx5("p", { className: "text-xs font-medium text-muted-foreground", children: "Thinking" }),
|
|
1632
|
-
/* @__PURE__ */ jsx5(EffortPicker, { value: effort, onChange: onEffortChange, levels: effortLevels, fullWidth: true, variant })
|
|
1633
|
-
] })
|
|
1634
|
-
] });
|
|
1635
|
-
}
|
|
1636
|
-
if (layout === "inline") {
|
|
1637
|
-
return /* @__PURE__ */ jsxs5("div", { className: `flex min-w-0 flex-wrap items-center gap-x-1.5 gap-y-1 ${className ?? ""}`, children: [
|
|
1638
|
-
modelPicker,
|
|
1639
|
-
showHarness && /* @__PURE__ */ jsx5(
|
|
1640
|
-
HarnessPicker,
|
|
1641
|
-
{
|
|
1642
|
-
value: harness,
|
|
1643
|
-
onChange: (next) => {
|
|
1644
|
-
if (next) onHarness(next);
|
|
1645
|
-
},
|
|
1646
|
-
available: availableHarnesses,
|
|
1647
|
-
lockReason: harnessLockReason,
|
|
1648
|
-
variant
|
|
1649
|
-
}
|
|
1650
|
-
),
|
|
1651
|
-
showEffort && /* @__PURE__ */ jsx5(EffortPicker, { value: effort, onChange: onEffortChange, levels: effortLevels, variant })
|
|
1652
|
-
] });
|
|
1653
|
-
}
|
|
1654
|
-
const hasAdvanced = showHarness || showEffort;
|
|
1655
|
-
return /* @__PURE__ */ jsxs5("div", { className: `flex items-center gap-1.5 ${className ?? ""}`, children: [
|
|
1656
|
-
modelPicker,
|
|
1657
|
-
hasAdvanced && /* @__PURE__ */ jsxs5("div", { ref: popoverRef, className: "relative inline-flex", children: [
|
|
1658
|
-
/* @__PURE__ */ jsx5(
|
|
1659
|
-
"button",
|
|
1660
|
-
{
|
|
1661
|
-
type: "button",
|
|
1662
|
-
...triggerProps,
|
|
1663
|
-
"aria-controls": open ? panelId : void 0,
|
|
1664
|
-
onClick: () => setOpen(!open),
|
|
1665
|
-
title: "Model settings \u2014 pick the agent backend and how hard it thinks",
|
|
1666
|
-
className: `flex h-8 w-8 items-center justify-center rounded-full text-muted-foreground transition-colors hover:bg-muted hover:text-foreground data-[state=open]:bg-muted ${FOCUS_RING}`,
|
|
1667
|
-
"data-state": open ? "open" : "closed",
|
|
1668
|
-
children: /* @__PURE__ */ jsx5(GearGlyph, { className: "h-4 w-4" })
|
|
1669
|
-
}
|
|
1670
|
-
),
|
|
1671
|
-
/* @__PURE__ */ jsxs5(
|
|
1672
|
-
PopoverSurface,
|
|
1673
|
-
{
|
|
1674
|
-
open,
|
|
1675
|
-
id: panelId,
|
|
1676
|
-
triggerRef,
|
|
1677
|
-
panelRef,
|
|
1678
|
-
className: `w-72 space-y-3 overflow-y-auto rounded-xl border border-card-edge bg-popover p-3 ${OVERLAY_SHADOW}`,
|
|
1679
|
-
children: [
|
|
1680
|
-
showHarness && /* @__PURE__ */ jsxs5("div", { className: "space-y-1.5", children: [
|
|
1681
|
-
/* @__PURE__ */ jsx5("p", { className: "text-xs font-medium text-foreground", children: "Agent backend" }),
|
|
1682
|
-
/* @__PURE__ */ jsx5(
|
|
1683
|
-
HarnessPicker,
|
|
1684
|
-
{
|
|
1685
|
-
value: harness,
|
|
1686
|
-
onChange: (next) => {
|
|
1687
|
-
if (next) onHarness(next);
|
|
1688
|
-
},
|
|
1689
|
-
available: availableHarnesses,
|
|
1690
|
-
fullWidth: true,
|
|
1691
|
-
lockReason: harnessLockReason,
|
|
1692
|
-
variant
|
|
1693
|
-
}
|
|
1694
|
-
),
|
|
1695
|
-
/* @__PURE__ */ jsx5("p", { className: "text-xs leading-snug text-muted-foreground", children: "The engine that runs the agent. Switching it keeps your model choice compatible." })
|
|
1696
|
-
] }),
|
|
1697
|
-
showEffort && /* @__PURE__ */ jsxs5("div", { className: "space-y-1.5", children: [
|
|
1698
|
-
/* @__PURE__ */ jsx5("p", { className: "text-xs font-medium text-foreground", children: "Thinking" }),
|
|
1699
|
-
/* @__PURE__ */ jsx5(EffortPicker, { value: effort, onChange: onEffortChange, levels: effortLevels, label: "", fullWidth: true, variant }),
|
|
1700
|
-
/* @__PURE__ */ jsx5("p", { className: "text-xs leading-snug text-muted-foreground", children: "How hard the agent thinks before answering. Higher is slower but more thorough." })
|
|
1701
|
-
] })
|
|
1702
|
-
]
|
|
1703
|
-
}
|
|
1704
|
-
)
|
|
1705
|
-
] })
|
|
1706
|
-
] });
|
|
1707
|
-
}
|
|
1708
|
-
|
|
1709
1153
|
// src/web-react/use-composer-attachments.ts
|
|
1710
|
-
import { useCallback as
|
|
1154
|
+
import { useCallback as useCallback3, useEffect as useEffect4, useMemo as useMemo2, useRef as useRef3, useState as useState4 } from "react";
|
|
1711
1155
|
function newId() {
|
|
1712
1156
|
const cryptoObject = globalThis.crypto;
|
|
1713
1157
|
if (typeof cryptoObject?.randomUUID === "function") return cryptoObject.randomUUID();
|
|
@@ -1743,12 +1187,12 @@ async function parseUploadError(res) {
|
|
|
1743
1187
|
}
|
|
1744
1188
|
var NO_UPLOAD_TARGET_MESSAGE = "No upload destination configured (pass uploadUrl or buildUploadRequest)";
|
|
1745
1189
|
function useComposerAttachments(options) {
|
|
1746
|
-
const optionsRef =
|
|
1190
|
+
const optionsRef = useRef3(options);
|
|
1747
1191
|
optionsRef.current = options;
|
|
1748
|
-
const [staged, setStagedState] =
|
|
1749
|
-
const stagedRef =
|
|
1750
|
-
const controllersRef =
|
|
1751
|
-
const setStaged =
|
|
1192
|
+
const [staged, setStagedState] = useState4([]);
|
|
1193
|
+
const stagedRef = useRef3([]);
|
|
1194
|
+
const controllersRef = useRef3(/* @__PURE__ */ new Map());
|
|
1195
|
+
const setStaged = useCallback3(
|
|
1752
1196
|
(updater) => {
|
|
1753
1197
|
const next = typeof updater === "function" ? updater(stagedRef.current) : updater;
|
|
1754
1198
|
stagedRef.current = next;
|
|
@@ -1756,7 +1200,7 @@ function useComposerAttachments(options) {
|
|
|
1756
1200
|
},
|
|
1757
1201
|
[]
|
|
1758
1202
|
);
|
|
1759
|
-
const upload =
|
|
1203
|
+
const upload = useCallback3(
|
|
1760
1204
|
async (id, file, name) => {
|
|
1761
1205
|
const opts = optionsRef.current;
|
|
1762
1206
|
setStaged(
|
|
@@ -1819,7 +1263,7 @@ function useComposerAttachments(options) {
|
|
|
1819
1263
|
},
|
|
1820
1264
|
[setStaged]
|
|
1821
1265
|
);
|
|
1822
|
-
const addFiles =
|
|
1266
|
+
const addFiles = useCallback3(
|
|
1823
1267
|
async (files) => {
|
|
1824
1268
|
const opts = optionsRef.current;
|
|
1825
1269
|
const enabled2 = opts.enabled ?? true;
|
|
@@ -1899,7 +1343,7 @@ function useComposerAttachments(options) {
|
|
|
1899
1343
|
},
|
|
1900
1344
|
[setStaged, upload]
|
|
1901
1345
|
);
|
|
1902
|
-
const retry =
|
|
1346
|
+
const retry = useCallback3(
|
|
1903
1347
|
(id) => {
|
|
1904
1348
|
const entry = stagedRef.current.find((s) => s.id === id);
|
|
1905
1349
|
if (!entry) return;
|
|
@@ -1907,7 +1351,7 @@ function useComposerAttachments(options) {
|
|
|
1907
1351
|
},
|
|
1908
1352
|
[upload]
|
|
1909
1353
|
);
|
|
1910
|
-
const removeAttachment =
|
|
1354
|
+
const removeAttachment = useCallback3(
|
|
1911
1355
|
(id) => {
|
|
1912
1356
|
controllersRef.current.get(id)?.abort();
|
|
1913
1357
|
controllersRef.current.delete(id);
|
|
@@ -1917,7 +1361,7 @@ function useComposerAttachments(options) {
|
|
|
1917
1361
|
},
|
|
1918
1362
|
[setStaged]
|
|
1919
1363
|
);
|
|
1920
|
-
const clear =
|
|
1364
|
+
const clear = useCallback3(() => {
|
|
1921
1365
|
for (const controller of controllersRef.current.values()) controller.abort();
|
|
1922
1366
|
controllersRef.current.clear();
|
|
1923
1367
|
for (const entry of stagedRef.current) {
|
|
@@ -1925,7 +1369,7 @@ function useComposerAttachments(options) {
|
|
|
1925
1369
|
}
|
|
1926
1370
|
setStaged([]);
|
|
1927
1371
|
}, [setStaged]);
|
|
1928
|
-
|
|
1372
|
+
useEffect4(
|
|
1929
1373
|
() => () => {
|
|
1930
1374
|
for (const controller of controllersRef.current.values()) controller.abort();
|
|
1931
1375
|
controllersRef.current.clear();
|
|
@@ -1935,7 +1379,7 @@ function useComposerAttachments(options) {
|
|
|
1935
1379
|
},
|
|
1936
1380
|
[]
|
|
1937
1381
|
);
|
|
1938
|
-
const composerFiles =
|
|
1382
|
+
const composerFiles = useMemo2(
|
|
1939
1383
|
() => staged.map((s) => ({
|
|
1940
1384
|
id: s.id,
|
|
1941
1385
|
name: s.name,
|
|
@@ -1947,15 +1391,15 @@ function useComposerAttachments(options) {
|
|
|
1947
1391
|
})),
|
|
1948
1392
|
[staged]
|
|
1949
1393
|
);
|
|
1950
|
-
const references =
|
|
1394
|
+
const references = useMemo2(
|
|
1951
1395
|
() => staged.filter((s) => s.status === "ready" && !!s.reference).map((s) => s.reference),
|
|
1952
1396
|
[staged]
|
|
1953
1397
|
);
|
|
1954
|
-
const hasPending =
|
|
1398
|
+
const hasPending = useMemo2(
|
|
1955
1399
|
() => staged.some((s) => s.status === "pending" || s.status === "uploading"),
|
|
1956
1400
|
[staged]
|
|
1957
1401
|
);
|
|
1958
|
-
const hasError =
|
|
1402
|
+
const hasError = useMemo2(() => staged.some((s) => s.status === "error"), [staged]);
|
|
1959
1403
|
const enabled = options.enabled ?? true;
|
|
1960
1404
|
const blockReason = !enabled ? "Attachments are disabled" : hasPending ? "Attachments are still uploading" : hasError ? "Remove failed attachments to send" : null;
|
|
1961
1405
|
return {
|
|
@@ -1972,13 +1416,13 @@ function useComposerAttachments(options) {
|
|
|
1972
1416
|
}
|
|
1973
1417
|
|
|
1974
1418
|
// src/web-react/composer-mode-controls.tsx
|
|
1975
|
-
import { jsx as
|
|
1419
|
+
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
1976
1420
|
function ListChecksGlyph({ className }) {
|
|
1977
|
-
return /* @__PURE__ */
|
|
1421
|
+
return /* @__PURE__ */ jsx3("svg", { className, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx3("path", { d: "m3 17 2 2 4-4M3 7l2 2 4-4M13 6h8M13 12h8M13 18h8" }) });
|
|
1978
1422
|
}
|
|
1979
1423
|
function ComposerModeControls({ planMode }) {
|
|
1980
1424
|
if (!planMode) return null;
|
|
1981
|
-
return /* @__PURE__ */
|
|
1425
|
+
return /* @__PURE__ */ jsxs3(
|
|
1982
1426
|
"button",
|
|
1983
1427
|
{
|
|
1984
1428
|
type: "button",
|
|
@@ -1995,7 +1439,7 @@ function ComposerModeControls({ planMode }) {
|
|
|
1995
1439
|
planMode.saving && "opacity-60"
|
|
1996
1440
|
),
|
|
1997
1441
|
children: [
|
|
1998
|
-
/* @__PURE__ */
|
|
1442
|
+
/* @__PURE__ */ jsx3(ListChecksGlyph, { className: "h-3.5 w-3.5" }),
|
|
1999
1443
|
"Plan"
|
|
2000
1444
|
]
|
|
2001
1445
|
}
|
|
@@ -2003,8 +1447,8 @@ function ComposerModeControls({ planMode }) {
|
|
|
2003
1447
|
}
|
|
2004
1448
|
|
|
2005
1449
|
// src/web-react/entry-composer.tsx
|
|
2006
|
-
import { useState as
|
|
2007
|
-
import { jsx as
|
|
1450
|
+
import { useState as useState5 } from "react";
|
|
1451
|
+
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
2008
1452
|
function EntryComposer({
|
|
2009
1453
|
heading,
|
|
2010
1454
|
subheading,
|
|
@@ -2028,7 +1472,7 @@ function EntryComposer({
|
|
|
2028
1472
|
composerClassName,
|
|
2029
1473
|
maxWidth = 820
|
|
2030
1474
|
}) {
|
|
2031
|
-
const [value, setValue] =
|
|
1475
|
+
const [value, setValue] = useState5(initialValue);
|
|
2032
1476
|
const attachments = useComposerAttachments({
|
|
2033
1477
|
uploadUrl,
|
|
2034
1478
|
enabled: !!uploadUrl,
|
|
@@ -2048,14 +1492,14 @@ function EntryComposer({
|
|
|
2048
1492
|
attachments.clear();
|
|
2049
1493
|
mentions?.clearMentions();
|
|
2050
1494
|
}
|
|
2051
|
-
return /* @__PURE__ */
|
|
1495
|
+
return /* @__PURE__ */ jsx4(
|
|
2052
1496
|
"div",
|
|
2053
1497
|
{
|
|
2054
1498
|
className: className ?? "relative flex min-h-0 flex-1 flex-col items-center overflow-y-auto bg-background px-5 py-8",
|
|
2055
|
-
children: /* @__PURE__ */
|
|
2056
|
-
heading ? /* @__PURE__ */
|
|
2057
|
-
subheading ? /* @__PURE__ */
|
|
2058
|
-
/* @__PURE__ */
|
|
1499
|
+
children: /* @__PURE__ */ jsxs4("div", { className: "my-auto w-full shrink-0", style: { maxWidth }, children: [
|
|
1500
|
+
heading ? /* @__PURE__ */ jsx4("h2", { className: "mb-4 text-center text-[1.75rem] font-medium tracking-tight text-foreground", children: heading }) : null,
|
|
1501
|
+
subheading ? /* @__PURE__ */ jsx4("p", { className: "mx-auto mb-9 max-w-md text-center text-sm leading-relaxed text-muted-foreground", children: subheading }) : heading ? /* @__PURE__ */ jsx4("div", { className: "mb-7" }) : null,
|
|
1502
|
+
/* @__PURE__ */ jsx4(
|
|
2059
1503
|
ChatComposer,
|
|
2060
1504
|
{
|
|
2061
1505
|
className: composerClassName ?? "vt-composer",
|
|
@@ -2083,21 +1527,17 @@ function EntryComposer({
|
|
|
2083
1527
|
// brighter overlay tone the component defaults to.
|
|
2084
1528
|
popoverClassName: mentionPopoverClassName ?? "bg-surface-container-low border-[var(--md3-outline-variant)]"
|
|
2085
1529
|
} : void 0,
|
|
2086
|
-
controls: modes ?? /* @__PURE__ */
|
|
2087
|
-
trailing: agent ? /* @__PURE__ */
|
|
1530
|
+
controls: modes ?? /* @__PURE__ */ jsx4(ComposerModeControls, { planMode }),
|
|
1531
|
+
trailing: agent ? /* @__PURE__ */ jsx4(AgentSessionControls, { ...agent }) : void 0
|
|
2088
1532
|
}
|
|
2089
1533
|
),
|
|
2090
|
-
footer ? /* @__PURE__ */
|
|
1534
|
+
footer ? /* @__PURE__ */ jsx4("div", { className: "mt-7", children: footer }) : null
|
|
2091
1535
|
] })
|
|
2092
1536
|
}
|
|
2093
1537
|
);
|
|
2094
1538
|
}
|
|
2095
1539
|
|
|
2096
1540
|
export {
|
|
2097
|
-
isAcceptedFileType,
|
|
2098
|
-
acceptRejectionReason,
|
|
2099
|
-
filterAcceptedFiles,
|
|
2100
|
-
renamePastedImages,
|
|
2101
1541
|
pickDictationMimeType,
|
|
2102
1542
|
dictationErrorMessage,
|
|
2103
1543
|
formatDictationElapsed,
|
|
@@ -2106,12 +1546,8 @@ export {
|
|
|
2106
1546
|
lazyRoute,
|
|
2107
1547
|
preloadWhenIdle,
|
|
2108
1548
|
ChatComposer,
|
|
2109
|
-
HarnessGlyph,
|
|
2110
|
-
AgentSettingsPopover,
|
|
2111
|
-
HarnessPicker,
|
|
2112
|
-
AgentSessionControls,
|
|
2113
1549
|
useComposerAttachments,
|
|
2114
1550
|
ComposerModeControls,
|
|
2115
1551
|
EntryComposer
|
|
2116
1552
|
};
|
|
2117
|
-
//# sourceMappingURL=chunk-
|
|
1553
|
+
//# sourceMappingURL=chunk-5CEUXI5V.js.map
|