@pi-outpost/embed 0.17.0 → 0.17.1
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/pi-outpost-embed.cjs +41 -41
- package/dist/pi-outpost-embed.js +102 -89
- package/package.json +1 -1
package/dist/pi-outpost-embed.js
CHANGED
|
@@ -47200,36 +47200,36 @@ function PM({ usage: e }) {
|
|
|
47200
47200
|
})]
|
|
47201
47201
|
});
|
|
47202
47202
|
}
|
|
47203
|
-
function FM({ thinkingLevel: e,
|
|
47204
|
-
let [
|
|
47203
|
+
function FM({ thinkingLevel: e, thinkingLevels: t, isStreaming: n, onSetThinking: r }) {
|
|
47204
|
+
let [i, a] = w(!1), o = C(null), s = e !== "off", c = t && t.length > 0 ? t : Nj, l = Math.max(0, c.indexOf(e));
|
|
47205
47205
|
return v(() => {
|
|
47206
|
-
if (!
|
|
47206
|
+
if (!i) return;
|
|
47207
47207
|
function e(e) {
|
|
47208
|
-
|
|
47208
|
+
o.current && !KA(e, o.current) && a(!1);
|
|
47209
47209
|
}
|
|
47210
47210
|
function t(e) {
|
|
47211
|
-
e.key === "Escape" &&
|
|
47211
|
+
e.key === "Escape" && a(!1);
|
|
47212
47212
|
}
|
|
47213
47213
|
return document.addEventListener("mousedown", e), document.addEventListener("keydown", t), () => {
|
|
47214
47214
|
document.removeEventListener("mousedown", e), document.removeEventListener("keydown", t);
|
|
47215
47215
|
};
|
|
47216
|
-
}, [
|
|
47216
|
+
}, [i]), /* @__PURE__ */ D("div", {
|
|
47217
47217
|
className: "relative",
|
|
47218
|
-
ref:
|
|
47218
|
+
ref: o,
|
|
47219
47219
|
children: [/* @__PURE__ */ D("button", {
|
|
47220
47220
|
type: "button",
|
|
47221
|
-
onClick: () =>
|
|
47222
|
-
disabled:
|
|
47221
|
+
onClick: () => a(!i),
|
|
47222
|
+
disabled: n,
|
|
47223
47223
|
title: "thinking level",
|
|
47224
47224
|
"aria-haspopup": "true",
|
|
47225
|
-
"aria-expanded":
|
|
47226
|
-
className: `flex items-center gap-1.5 rounded-md border px-2 py-1 font-mono text-xs disabled:opacity-50 ${
|
|
47225
|
+
"aria-expanded": i,
|
|
47226
|
+
className: `flex items-center gap-1.5 rounded-md border px-2 py-1 font-mono text-xs disabled:opacity-50 ${s ? "border-amber-300 text-amber-700 hover:border-amber-400 dark:border-amber-900 dark:text-amber-400 dark:hover:border-amber-700" : "border-zinc-300 text-zinc-500 hover:border-zinc-400 dark:border-zinc-800 dark:text-zinc-400 dark:hover:border-zinc-600"}`,
|
|
47227
47227
|
children: [/* @__PURE__ */ E("span", {
|
|
47228
47228
|
"aria-hidden": !0,
|
|
47229
|
-
className: `text-sm leading-none ${
|
|
47229
|
+
className: `text-sm leading-none ${s ? "" : "opacity-40 grayscale"}`,
|
|
47230
47230
|
children: "🧠"
|
|
47231
47231
|
}), e]
|
|
47232
|
-
}),
|
|
47232
|
+
}), i && /* @__PURE__ */ D("div", {
|
|
47233
47233
|
className: "absolute bottom-full left-0 z-20 mb-1 w-48 rounded-lg border border-zinc-200 bg-white p-3 shadow-xl dark:border-zinc-700 dark:bg-zinc-900",
|
|
47234
47234
|
children: [
|
|
47235
47235
|
/* @__PURE__ */ D("div", {
|
|
@@ -47245,17 +47245,17 @@ function FM({ thinkingLevel: e, isStreaming: t, onSetThinking: n }) {
|
|
|
47245
47245
|
/* @__PURE__ */ E("input", {
|
|
47246
47246
|
type: "range",
|
|
47247
47247
|
min: 0,
|
|
47248
|
-
max:
|
|
47248
|
+
max: c.length - 1,
|
|
47249
47249
|
step: 1,
|
|
47250
|
-
value:
|
|
47251
|
-
onChange: (e) =>
|
|
47250
|
+
value: l,
|
|
47251
|
+
onChange: (e) => r(c[Number(e.target.value)]),
|
|
47252
47252
|
"aria-label": "Thinking level",
|
|
47253
47253
|
"aria-valuetext": e,
|
|
47254
47254
|
className: "w-full accent-amber-500"
|
|
47255
47255
|
}),
|
|
47256
47256
|
/* @__PURE__ */ D("div", {
|
|
47257
47257
|
className: "mt-0.5 flex justify-between font-mono text-[9px] text-zinc-400 dark:text-zinc-600",
|
|
47258
|
-
children: [/* @__PURE__ */ E("span", { children:
|
|
47258
|
+
children: [/* @__PURE__ */ E("span", { children: c[0] }), /* @__PURE__ */ E("span", { children: c[c.length - 1] })]
|
|
47259
47259
|
})
|
|
47260
47260
|
]
|
|
47261
47261
|
})]
|
|
@@ -47288,6 +47288,7 @@ function IM(e) {
|
|
|
47288
47288
|
}),
|
|
47289
47289
|
i && /* @__PURE__ */ E(FM, {
|
|
47290
47290
|
thinkingLevel: r,
|
|
47291
|
+
thinkingLevels: e.thinkingLevels,
|
|
47291
47292
|
isStreaming: a,
|
|
47292
47293
|
onSetThinking: e.onSetThinking
|
|
47293
47294
|
}),
|
|
@@ -48323,6 +48324,7 @@ function gN(e, t) {
|
|
|
48323
48324
|
sessionId: t.sessionId,
|
|
48324
48325
|
model: t.model,
|
|
48325
48326
|
thinkingLevel: t.thinkingLevel,
|
|
48327
|
+
thinkingLevels: t.thinkingLevels,
|
|
48326
48328
|
modelSupportsReasoning: n?.reasoning ?? !1,
|
|
48327
48329
|
models: t.models,
|
|
48328
48330
|
commands: t.commands,
|
|
@@ -48618,7 +48620,8 @@ function _N(e, t) {
|
|
|
48618
48620
|
case "model_changed": return {
|
|
48619
48621
|
...e,
|
|
48620
48622
|
model: n.model,
|
|
48621
|
-
modelSupportsReasoning: n.reasoning
|
|
48623
|
+
modelSupportsReasoning: n.reasoning,
|
|
48624
|
+
thinkingLevels: n.thinkingLevels
|
|
48622
48625
|
};
|
|
48623
48626
|
case "credentials_changed": {
|
|
48624
48627
|
let t = n.models.find((e) => `${e.provider}/${e.id}` === n.model);
|
|
@@ -48627,6 +48630,7 @@ function _N(e, t) {
|
|
|
48627
48630
|
models: n.models,
|
|
48628
48631
|
model: n.model,
|
|
48629
48632
|
modelSupportsReasoning: t?.reasoning ?? !1,
|
|
48633
|
+
thinkingLevels: void 0,
|
|
48630
48634
|
credentials: n.credentials
|
|
48631
48635
|
};
|
|
48632
48636
|
}
|
|
@@ -49078,40 +49082,48 @@ function xN(e = "", t, n = !1, r) {
|
|
|
49078
49082
|
v(() => {
|
|
49079
49083
|
_.current = a.writableRoot;
|
|
49080
49084
|
}, [a.writableRoot]);
|
|
49081
|
-
let y = g((e) => {
|
|
49085
|
+
let y = C(!1), b = g((e) => {
|
|
49082
49086
|
let t = c.current;
|
|
49083
49087
|
t && t.readyState === WebSocket.OPEN && t.send(JSON.stringify(e));
|
|
49084
|
-
}, []),
|
|
49088
|
+
}, []), x = g((e, t = !1) => {
|
|
49089
|
+
e === "" && (y.current = !0);
|
|
49085
49090
|
let n = `dir:${crypto.randomUUID()}`;
|
|
49086
49091
|
o({
|
|
49087
49092
|
type: "dir_list_started",
|
|
49088
49093
|
path: e,
|
|
49089
49094
|
requestId: n,
|
|
49090
49095
|
preserveEntries: t
|
|
49091
|
-
}),
|
|
49096
|
+
}), b({
|
|
49092
49097
|
type: "list_directory",
|
|
49093
49098
|
path: e,
|
|
49094
49099
|
requestId: n
|
|
49095
49100
|
});
|
|
49096
|
-
}, [
|
|
49097
|
-
if (
|
|
49098
|
-
if (
|
|
49099
|
-
|
|
49101
|
+
}, [b]), S = C(!1), te = C(!1), T = C(!1), E = g(() => {
|
|
49102
|
+
if (S.current) {
|
|
49103
|
+
if (te.current) {
|
|
49104
|
+
T.current = !0;
|
|
49100
49105
|
return;
|
|
49101
49106
|
}
|
|
49102
|
-
|
|
49107
|
+
te.current = !0, b({
|
|
49103
49108
|
type: "git_status",
|
|
49104
49109
|
requestId: `git:${crypto.randomUUID()}`
|
|
49105
49110
|
});
|
|
49106
49111
|
}
|
|
49107
|
-
}, [
|
|
49108
|
-
|
|
49109
|
-
}, [
|
|
49110
|
-
f.current[e] !== void 0 &&
|
|
49111
|
-
}, [
|
|
49112
|
-
|
|
49113
|
-
|
|
49112
|
+
}, [b]), D = g(() => {
|
|
49113
|
+
te.current = !1, T.current && (T.current = !1, E());
|
|
49114
|
+
}, [E]), ne = g((e) => {
|
|
49115
|
+
f.current[e] !== void 0 && x(e, !0);
|
|
49116
|
+
}, [x]), re = g(() => {
|
|
49117
|
+
x("", !0);
|
|
49118
|
+
for (let e of Object.keys(f.current)) e !== "" && ne(e);
|
|
49119
|
+
}, [ne, x]);
|
|
49114
49120
|
return v(() => {
|
|
49121
|
+
!a.connected || !y.current || f.current[""] === void 0 && x("");
|
|
49122
|
+
}, [
|
|
49123
|
+
a.connected,
|
|
49124
|
+
a.fileTree,
|
|
49125
|
+
x
|
|
49126
|
+
]), v(() => {
|
|
49115
49127
|
let t = !1;
|
|
49116
49128
|
return fetch(`${e}/branding`, { headers: d.current ? { Authorization: `Bearer ${d.current}` } : {} }).then((e) => e.ok ? e.json() : null).then((e) => {
|
|
49117
49129
|
t || o(e ? {
|
|
@@ -49148,7 +49160,7 @@ function xN(e = "", t, n = !1, r) {
|
|
|
49148
49160
|
return;
|
|
49149
49161
|
}
|
|
49150
49162
|
if (t.type === "file_changed") {
|
|
49151
|
-
|
|
49163
|
+
ne(dN(t.path));
|
|
49152
49164
|
let e = p.current;
|
|
49153
49165
|
if (e?.status === "loaded" && e.path === t.path) {
|
|
49154
49166
|
let e = `file:${crypto.randomUUID()}`;
|
|
@@ -49157,21 +49169,21 @@ function xN(e = "", t, n = !1, r) {
|
|
|
49157
49169
|
path: t.path,
|
|
49158
49170
|
requestId: e,
|
|
49159
49171
|
preserveContent: !0
|
|
49160
|
-
}),
|
|
49172
|
+
}), b({
|
|
49161
49173
|
type: "read_file",
|
|
49162
49174
|
path: t.path,
|
|
49163
49175
|
requestId: e
|
|
49164
49176
|
});
|
|
49165
49177
|
}
|
|
49166
|
-
m.current === t.path &&
|
|
49178
|
+
m.current === t.path && b({
|
|
49167
49179
|
type: "git_diff",
|
|
49168
49180
|
path: t.path,
|
|
49169
49181
|
requestId: `gitdiff:${crypto.randomUUID()}`
|
|
49170
|
-
}),
|
|
49182
|
+
}), E();
|
|
49171
49183
|
return;
|
|
49172
49184
|
}
|
|
49173
49185
|
if (t.type === "directory_changed") {
|
|
49174
|
-
|
|
49186
|
+
ne(t.path);
|
|
49175
49187
|
let e = p.current;
|
|
49176
49188
|
if (e !== null && dN(e.path) === t.path) {
|
|
49177
49189
|
if (s(e.path) || i(e.path)) o({
|
|
@@ -49185,7 +49197,7 @@ function xN(e = "", t, n = !1, r) {
|
|
|
49185
49197
|
path: e.path,
|
|
49186
49198
|
requestId: t,
|
|
49187
49199
|
preserveContent: !0
|
|
49188
|
-
}),
|
|
49200
|
+
}), b({
|
|
49189
49201
|
type: "read_file",
|
|
49190
49202
|
path: e.path,
|
|
49191
49203
|
requestId: t
|
|
@@ -49193,14 +49205,14 @@ function xN(e = "", t, n = !1, r) {
|
|
|
49193
49205
|
}
|
|
49194
49206
|
}
|
|
49195
49207
|
let n = m.current;
|
|
49196
|
-
n !== null && dN(n) === t.path &&
|
|
49208
|
+
n !== null && dN(n) === t.path && b({
|
|
49197
49209
|
type: "git_diff",
|
|
49198
49210
|
path: n,
|
|
49199
49211
|
requestId: `gitdiff:${crypto.randomUUID()}`
|
|
49200
|
-
}),
|
|
49212
|
+
}), E();
|
|
49201
49213
|
return;
|
|
49202
49214
|
}
|
|
49203
|
-
if ((t.type === "hello" || t.type === "session_replaced") && (
|
|
49215
|
+
if ((t.type === "hello" || t.type === "session_replaced") && (S.current = t.gitAvailable === !0, t.type === "hello" && E()), t.type === "agent_end" && E(), (t.type === "git_status" || t.type === "git_error" && t.requestId.startsWith("git:")) && D(), t.type === "file_operation_result") {
|
|
49204
49216
|
let e = t.previousPath ?? t.path, n = p.current;
|
|
49205
49217
|
t.operation === "delete_file" && n?.path === t.path ? p.current = null : n?.path === e && (p.current = {
|
|
49206
49218
|
...n,
|
|
@@ -49210,10 +49222,10 @@ function xN(e = "", t, n = !1, r) {
|
|
|
49210
49222
|
o({
|
|
49211
49223
|
type: "server",
|
|
49212
49224
|
message: t
|
|
49213
|
-
}), t.type === "session_replaced" &&
|
|
49225
|
+
}), t.type === "session_replaced" && x("");
|
|
49214
49226
|
}, l.onclose = (e) => {
|
|
49215
49227
|
if (c.current === l) {
|
|
49216
|
-
|
|
49228
|
+
te.current = !1, T.current = !1;
|
|
49217
49229
|
for (let e of h.current.values()) e.reject(new CA("The connection dropped before the upload finished"));
|
|
49218
49230
|
if (h.current.clear(), e.code === bN) {
|
|
49219
49231
|
o({ type: "auth_required" });
|
|
@@ -49229,30 +49241,30 @@ function xN(e = "", t, n = !1, r) {
|
|
|
49229
49241
|
c.current = null, e?.close();
|
|
49230
49242
|
};
|
|
49231
49243
|
}, [
|
|
49232
|
-
|
|
49244
|
+
b,
|
|
49233
49245
|
e,
|
|
49234
|
-
T,
|
|
49235
49246
|
E,
|
|
49236
49247
|
D,
|
|
49237
|
-
|
|
49248
|
+
ne,
|
|
49249
|
+
x,
|
|
49238
49250
|
l,
|
|
49239
49251
|
r
|
|
49240
49252
|
]), {
|
|
49241
49253
|
state: a,
|
|
49242
49254
|
authToken: d.current,
|
|
49243
49255
|
switchWorkspace: (e) => {
|
|
49244
|
-
e !== a.workspace?.root && (o({ type: "workspace_switching" }),
|
|
49256
|
+
e !== a.workspace?.root && (o({ type: "workspace_switching" }), b({
|
|
49245
49257
|
type: "switch_workspace",
|
|
49246
49258
|
root: e
|
|
49247
49259
|
}));
|
|
49248
49260
|
},
|
|
49249
49261
|
openProject: (e) => {
|
|
49250
|
-
o({ type: "workspace_switching" }),
|
|
49262
|
+
o({ type: "workspace_switching" }), b({
|
|
49251
49263
|
type: "open_project",
|
|
49252
49264
|
root: e
|
|
49253
49265
|
});
|
|
49254
49266
|
},
|
|
49255
|
-
closeProject: (e) =>
|
|
49267
|
+
closeProject: (e) => b({
|
|
49256
49268
|
type: "close_project",
|
|
49257
49269
|
root: e
|
|
49258
49270
|
}),
|
|
@@ -49264,33 +49276,33 @@ function xN(e = "", t, n = !1, r) {
|
|
|
49264
49276
|
type: "prompt_sent",
|
|
49265
49277
|
text: e,
|
|
49266
49278
|
...t?.length ? { images: t } : {}
|
|
49267
|
-
}),
|
|
49279
|
+
}), b({
|
|
49268
49280
|
type: "prompt",
|
|
49269
49281
|
text: e,
|
|
49270
49282
|
...t?.length ? { images: t } : {}
|
|
49271
49283
|
});
|
|
49272
49284
|
},
|
|
49273
|
-
abort: () =>
|
|
49274
|
-
setModel: (e, t) =>
|
|
49285
|
+
abort: () => b({ type: "abort" }),
|
|
49286
|
+
setModel: (e, t) => b({
|
|
49275
49287
|
type: "set_model",
|
|
49276
49288
|
provider: e,
|
|
49277
49289
|
id: t
|
|
49278
49290
|
}),
|
|
49279
|
-
setThinking: (e) =>
|
|
49291
|
+
setThinking: (e) => b({
|
|
49280
49292
|
type: "set_thinking",
|
|
49281
49293
|
level: e
|
|
49282
49294
|
}),
|
|
49283
|
-
newSession: () =>
|
|
49284
|
-
switchSession: (e) =>
|
|
49295
|
+
newSession: () => b({ type: "new_session" }),
|
|
49296
|
+
switchSession: (e) => b({
|
|
49285
49297
|
type: "switch_session",
|
|
49286
49298
|
path: e
|
|
49287
49299
|
}),
|
|
49288
|
-
deleteSession: (e) =>
|
|
49300
|
+
deleteSession: (e) => b({
|
|
49289
49301
|
type: "delete_session",
|
|
49290
49302
|
path: e
|
|
49291
49303
|
}),
|
|
49292
|
-
listSessions: () =>
|
|
49293
|
-
renameSession: (e, t) =>
|
|
49304
|
+
listSessions: () => b({ type: "list_sessions" }),
|
|
49305
|
+
renameSession: (e, t) => b({
|
|
49294
49306
|
type: "rename_session",
|
|
49295
49307
|
path: e,
|
|
49296
49308
|
name: t
|
|
@@ -49301,31 +49313,31 @@ function xN(e = "", t, n = !1, r) {
|
|
|
49301
49313
|
type: "session_search_started",
|
|
49302
49314
|
query: e,
|
|
49303
49315
|
requestId: t
|
|
49304
|
-
}),
|
|
49316
|
+
}), b({
|
|
49305
49317
|
type: "search_sessions",
|
|
49306
49318
|
query: e,
|
|
49307
49319
|
requestId: t
|
|
49308
49320
|
});
|
|
49309
49321
|
},
|
|
49310
49322
|
clearSessionSearch: () => o({ type: "session_search_cleared" }),
|
|
49311
|
-
listTree: () =>
|
|
49312
|
-
navigateTree: (e) =>
|
|
49323
|
+
listTree: () => b({ type: "list_tree" }),
|
|
49324
|
+
navigateTree: (e) => b({
|
|
49313
49325
|
type: "navigate_tree",
|
|
49314
49326
|
entryId: e
|
|
49315
49327
|
}),
|
|
49316
|
-
forkSession: (e) =>
|
|
49328
|
+
forkSession: (e) => b({
|
|
49317
49329
|
type: "fork_session",
|
|
49318
49330
|
entryId: e
|
|
49319
49331
|
}),
|
|
49320
|
-
editPrompt: (e, t, n) =>
|
|
49332
|
+
editPrompt: (e, t, n) => b({
|
|
49321
49333
|
type: "edit_prompt",
|
|
49322
49334
|
entryId: e,
|
|
49323
49335
|
text: t,
|
|
49324
49336
|
...n?.length ? { images: n } : {}
|
|
49325
49337
|
}),
|
|
49326
|
-
compact: () =>
|
|
49338
|
+
compact: () => b({ type: "compact" }),
|
|
49327
49339
|
respondToDialog: (e) => {
|
|
49328
|
-
|
|
49340
|
+
b({
|
|
49329
49341
|
type: "extension_ui_response",
|
|
49330
49342
|
...e
|
|
49331
49343
|
}), o({ type: "dialog_answered" });
|
|
@@ -49334,15 +49346,15 @@ function xN(e = "", t, n = !1, r) {
|
|
|
49334
49346
|
type: "dismiss_notification",
|
|
49335
49347
|
id: e
|
|
49336
49348
|
}),
|
|
49337
|
-
listDirectory: (e) =>
|
|
49338
|
-
refreshFileTree:
|
|
49349
|
+
listDirectory: (e) => x(e),
|
|
49350
|
+
refreshFileTree: re,
|
|
49339
49351
|
readFile: (e) => {
|
|
49340
49352
|
let t = `file:${crypto.randomUUID()}`;
|
|
49341
49353
|
o({
|
|
49342
49354
|
type: "file_read_started",
|
|
49343
49355
|
path: e,
|
|
49344
49356
|
requestId: t
|
|
49345
|
-
}),
|
|
49357
|
+
}), b({
|
|
49346
49358
|
type: "read_file",
|
|
49347
49359
|
path: e,
|
|
49348
49360
|
requestId: t
|
|
@@ -49356,7 +49368,7 @@ function xN(e = "", t, n = !1, r) {
|
|
|
49356
49368
|
path: e,
|
|
49357
49369
|
requestId: i,
|
|
49358
49370
|
content: t
|
|
49359
|
-
}),
|
|
49371
|
+
}), b({
|
|
49360
49372
|
type: "write_file",
|
|
49361
49373
|
path: e,
|
|
49362
49374
|
content: t,
|
|
@@ -49366,7 +49378,7 @@ function xN(e = "", t, n = !1, r) {
|
|
|
49366
49378
|
});
|
|
49367
49379
|
},
|
|
49368
49380
|
createFile: (e) => {
|
|
49369
|
-
o({ type: "file_create_started" }),
|
|
49381
|
+
o({ type: "file_create_started" }), b({
|
|
49370
49382
|
type: "create_file",
|
|
49371
49383
|
path: e,
|
|
49372
49384
|
requestId: `create:${crypto.randomUUID()}`
|
|
@@ -49387,7 +49399,7 @@ function xN(e = "", t, n = !1, r) {
|
|
|
49387
49399
|
h.current.set(a, {
|
|
49388
49400
|
resolve: s(n),
|
|
49389
49401
|
reject: s(r)
|
|
49390
|
-
}),
|
|
49402
|
+
}), b({
|
|
49391
49403
|
type: "upload_file",
|
|
49392
49404
|
destinationDirectory: i,
|
|
49393
49405
|
name: e,
|
|
@@ -49397,7 +49409,7 @@ function xN(e = "", t, n = !1, r) {
|
|
|
49397
49409
|
});
|
|
49398
49410
|
},
|
|
49399
49411
|
createDirectory: (e) => {
|
|
49400
|
-
o({ type: "file_create_started" }),
|
|
49412
|
+
o({ type: "file_create_started" }), b({
|
|
49401
49413
|
type: "create_directory",
|
|
49402
49414
|
path: e,
|
|
49403
49415
|
requestId: `create:${crypto.randomUUID()}`
|
|
@@ -49410,7 +49422,7 @@ function xN(e = "", t, n = !1, r) {
|
|
|
49410
49422
|
operation: "open_native",
|
|
49411
49423
|
path: e,
|
|
49412
49424
|
requestId: t
|
|
49413
|
-
}),
|
|
49425
|
+
}), b({
|
|
49414
49426
|
type: "open_native",
|
|
49415
49427
|
path: e,
|
|
49416
49428
|
requestId: t
|
|
@@ -49423,7 +49435,7 @@ function xN(e = "", t, n = !1, r) {
|
|
|
49423
49435
|
operation: "rename_file",
|
|
49424
49436
|
path: e,
|
|
49425
49437
|
requestId: n
|
|
49426
|
-
}),
|
|
49438
|
+
}), b({
|
|
49427
49439
|
type: "rename_file",
|
|
49428
49440
|
path: e,
|
|
49429
49441
|
name: t,
|
|
@@ -49437,7 +49449,7 @@ function xN(e = "", t, n = !1, r) {
|
|
|
49437
49449
|
operation: "delete_file",
|
|
49438
49450
|
path: e,
|
|
49439
49451
|
requestId: t
|
|
49440
|
-
}),
|
|
49452
|
+
}), b({
|
|
49441
49453
|
type: "delete_file",
|
|
49442
49454
|
path: e,
|
|
49443
49455
|
requestId: t
|
|
@@ -49450,7 +49462,7 @@ function xN(e = "", t, n = !1, r) {
|
|
|
49450
49462
|
operation: "move_file",
|
|
49451
49463
|
path: e,
|
|
49452
49464
|
requestId: n
|
|
49453
|
-
}),
|
|
49465
|
+
}), b({
|
|
49454
49466
|
type: "move_file",
|
|
49455
49467
|
path: e,
|
|
49456
49468
|
destinationDirectory: t,
|
|
@@ -49464,7 +49476,7 @@ function xN(e = "", t, n = !1, r) {
|
|
|
49464
49476
|
operation: "copy_file",
|
|
49465
49477
|
path: e,
|
|
49466
49478
|
requestId: n
|
|
49467
|
-
}),
|
|
49479
|
+
}), b({
|
|
49468
49480
|
type: "copy_file",
|
|
49469
49481
|
path: e,
|
|
49470
49482
|
destinationDirectory: t,
|
|
@@ -49477,33 +49489,33 @@ function xN(e = "", t, n = !1, r) {
|
|
|
49477
49489
|
type: "file_search_started",
|
|
49478
49490
|
query: e,
|
|
49479
49491
|
requestId: t
|
|
49480
|
-
}),
|
|
49492
|
+
}), b({
|
|
49481
49493
|
type: "search_files",
|
|
49482
49494
|
query: e,
|
|
49483
49495
|
requestId: t
|
|
49484
49496
|
});
|
|
49485
49497
|
},
|
|
49486
49498
|
clearFileSearch: () => o({ type: "file_search_cleared" }),
|
|
49487
|
-
fetchGitStatus:
|
|
49499
|
+
fetchGitStatus: E,
|
|
49488
49500
|
fetchGitDiff: (e) => {
|
|
49489
49501
|
let t = `gitdiff:${crypto.randomUUID()}`;
|
|
49490
49502
|
o({
|
|
49491
49503
|
type: "git_diff_started",
|
|
49492
49504
|
path: e,
|
|
49493
49505
|
requestId: t
|
|
49494
|
-
}),
|
|
49506
|
+
}), b({
|
|
49495
49507
|
type: "git_diff",
|
|
49496
49508
|
path: e,
|
|
49497
49509
|
requestId: t
|
|
49498
49510
|
});
|
|
49499
49511
|
},
|
|
49500
49512
|
clearGitDiff: () => o({ type: "git_diff_cleared" }),
|
|
49501
|
-
fetchGitLog: (e) =>
|
|
49513
|
+
fetchGitLog: (e) => b({
|
|
49502
49514
|
type: "git_log",
|
|
49503
49515
|
...e ? { limit: e } : {},
|
|
49504
49516
|
requestId: `gitlog:${crypto.randomUUID()}`
|
|
49505
49517
|
}),
|
|
49506
|
-
fetchGitShow: (e) =>
|
|
49518
|
+
fetchGitShow: (e) => b({
|
|
49507
49519
|
type: "git_show",
|
|
49508
49520
|
sha: e,
|
|
49509
49521
|
requestId: `gitshow:${crypto.randomUUID()}`
|
|
@@ -49515,7 +49527,7 @@ function xN(e = "", t, n = !1, r) {
|
|
|
49515
49527
|
type: "git_file_history_started",
|
|
49516
49528
|
path: e,
|
|
49517
49529
|
requestId: n
|
|
49518
|
-
}),
|
|
49530
|
+
}), b({
|
|
49519
49531
|
type: "git_file_log",
|
|
49520
49532
|
path: e,
|
|
49521
49533
|
...t ? { limit: t } : {},
|
|
@@ -49530,7 +49542,7 @@ function xN(e = "", t, n = !1, r) {
|
|
|
49530
49542
|
base: e,
|
|
49531
49543
|
target: t,
|
|
49532
49544
|
requestId: n
|
|
49533
|
-
}),
|
|
49545
|
+
}), b({
|
|
49534
49546
|
type: "git_file_diff",
|
|
49535
49547
|
base: e,
|
|
49536
49548
|
target: t,
|
|
@@ -49538,12 +49550,12 @@ function xN(e = "", t, n = !1, r) {
|
|
|
49538
49550
|
});
|
|
49539
49551
|
},
|
|
49540
49552
|
clearGitFileDiff: () => o({ type: "git_file_diff_cleared" }),
|
|
49541
|
-
setCredential: (e, t) =>
|
|
49553
|
+
setCredential: (e, t) => b({
|
|
49542
49554
|
type: "set_credential",
|
|
49543
49555
|
provider: e,
|
|
49544
49556
|
apiKey: t
|
|
49545
49557
|
}),
|
|
49546
|
-
declareProvider: (e) =>
|
|
49558
|
+
declareProvider: (e) => b({
|
|
49547
49559
|
type: "declare_provider",
|
|
49548
49560
|
...e
|
|
49549
49561
|
}),
|
|
@@ -49553,7 +49565,7 @@ function xN(e = "", t, n = !1, r) {
|
|
|
49553
49565
|
type: "server_browse_started",
|
|
49554
49566
|
path: e,
|
|
49555
49567
|
requestId: t
|
|
49556
|
-
}),
|
|
49568
|
+
}), b({
|
|
49557
49569
|
type: "browse_server_directory",
|
|
49558
49570
|
path: e,
|
|
49559
49571
|
requestId: t
|
|
@@ -49561,7 +49573,7 @@ function xN(e = "", t, n = !1, r) {
|
|
|
49561
49573
|
},
|
|
49562
49574
|
closeServerBrowser: () => o({ type: "server_browse_closed" }),
|
|
49563
49575
|
updateConfig: (e) => {
|
|
49564
|
-
o({ type: "settings_apply_started" }),
|
|
49576
|
+
o({ type: "settings_apply_started" }), b({
|
|
49565
49577
|
type: "update_config",
|
|
49566
49578
|
...e
|
|
49567
49579
|
});
|
|
@@ -50118,6 +50130,7 @@ var SN = 120, CN = m(function({ serverUrl: e = "", rootElement: t, initialTheme:
|
|
|
50118
50130
|
model: f.model,
|
|
50119
50131
|
models: f.models,
|
|
50120
50132
|
thinkingLevel: f.thinkingLevel,
|
|
50133
|
+
thinkingLevels: f.thinkingLevels,
|
|
50121
50134
|
modelSupportsReasoning: f.modelSupportsReasoning,
|
|
50122
50135
|
isStreaming: f.isStreaming,
|
|
50123
50136
|
contextUsage: f.contextUsage,
|