@sepveneto/dnde-agent 0.2.1 → 0.2.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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var V = Object.defineProperty;
|
|
2
2
|
var Q = (t, s, e) => s in t ? V(t, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[s] = e;
|
|
3
3
|
var a = (t, s, e) => Q(t, typeof s != "symbol" ? s + "" : s, e);
|
|
4
|
-
import { C as E,
|
|
4
|
+
import { C as E, l as x, m as X, t as v, o as I, s as y, n as Z, w as A, p as q, q as ee, u as te, v as k, x as R, y as C, i as se, S as ie, z as ne, B as re, E as ae } from "./index-DeZzIl57.js";
|
|
5
5
|
function oe(t) {
|
|
6
6
|
return t ? !(typeof t == "object" && t && "constructor" in t && typeof t.constructor == "function" ? t.constructor.name : "").includes("ChatCompletions") : !0;
|
|
7
7
|
}
|
|
@@ -280,9 +280,9 @@ function T(t) {
|
|
|
280
280
|
if (n.startsWith(D))
|
|
281
281
|
r = xe(s, i);
|
|
282
282
|
else if (n.startsWith(M))
|
|
283
|
-
r = Ie(s, i);
|
|
284
|
-
else if (n.startsWith(F))
|
|
285
283
|
r = ve(s, i);
|
|
284
|
+
else if (n.startsWith(F))
|
|
285
|
+
r = Ie(s, i);
|
|
286
286
|
else
|
|
287
287
|
return {
|
|
288
288
|
ok: !1,
|
|
@@ -320,7 +320,7 @@ function xe(t, s) {
|
|
|
320
320
|
nextIndex: s
|
|
321
321
|
};
|
|
322
322
|
}
|
|
323
|
-
function
|
|
323
|
+
function ve(t, s) {
|
|
324
324
|
const e = S(t[s], M);
|
|
325
325
|
return e ? (s += 1, s < t.length - 1 && !N(t[s]) ? { error: `Delete File patch for ${e} must not include a diff.` } : {
|
|
326
326
|
operation: {
|
|
@@ -330,7 +330,7 @@ function Ie(t, s) {
|
|
|
330
330
|
nextIndex: s
|
|
331
331
|
}) : { error: `Missing path in apply_patch header: ${t[s]}` };
|
|
332
332
|
}
|
|
333
|
-
function
|
|
333
|
+
function Ie(t, s) {
|
|
334
334
|
const e = S(t[s], F);
|
|
335
335
|
if (!e)
|
|
336
336
|
return { error: `Missing path in apply_patch header: ${t[s]}` };
|
|
@@ -443,17 +443,17 @@ class Ee extends E {
|
|
|
443
443
|
return ke(o, f);
|
|
444
444
|
}
|
|
445
445
|
};
|
|
446
|
-
return G(this._modelInstance) ? r.push(
|
|
446
|
+
return G(this._modelInstance) ? r.push(v({
|
|
447
447
|
name: "view_image",
|
|
448
448
|
description: "Returns an image output from a path in the sandbox workspace or an explicitly granted sandbox path.",
|
|
449
|
-
parameters:
|
|
449
|
+
parameters: I({
|
|
450
450
|
path: y().describe("Path to an image file in the sandbox workspace or an explicitly granted sandbox path")
|
|
451
451
|
}),
|
|
452
452
|
execute: async ({ path: o }, h, c) => await l(o, c)
|
|
453
|
-
})) : r.push(
|
|
453
|
+
})) : r.push(v({
|
|
454
454
|
name: "view_image",
|
|
455
455
|
description: "Returns an image from a path in the sandbox workspace or an explicitly granted sandbox path as a data URL or reference string.",
|
|
456
|
-
parameters:
|
|
456
|
+
parameters: I({
|
|
457
457
|
path: y().describe("Path to an image file in the sandbox workspace or an explicitly granted sandbox path")
|
|
458
458
|
}),
|
|
459
459
|
execute: async ({ path: o }, h, c) => we(await l(o, c))
|
|
@@ -499,10 +499,10 @@ class Ne extends E {
|
|
|
499
499
|
if (!e.execCommand)
|
|
500
500
|
throw new x("Shell sandbox sessions must provide execCommand().");
|
|
501
501
|
const i = [
|
|
502
|
-
|
|
502
|
+
v({
|
|
503
503
|
name: "exec_command",
|
|
504
504
|
description: "Runs a command in a PTY, returning output or a session ID for ongoing interaction.",
|
|
505
|
-
parameters:
|
|
505
|
+
parameters: I({
|
|
506
506
|
cmd: y().min(1).describe("Shell command to execute."),
|
|
507
507
|
workdir: y().optional().describe("Optional working directory to run the command in; defaults to the turn cwd."),
|
|
508
508
|
shell: y().optional().describe("Shell binary to launch. Defaults to the user's default shell."),
|
|
@@ -534,10 +534,10 @@ class Ne extends E {
|
|
|
534
534
|
}
|
|
535
535
|
})
|
|
536
536
|
];
|
|
537
|
-
return (n = e.supportsPty) != null && n.call(e) && e.writeStdin && i.push(
|
|
537
|
+
return (n = e.supportsPty) != null && n.call(e) && e.writeStdin && i.push(v({
|
|
538
538
|
name: "write_stdin",
|
|
539
539
|
description: "Writes characters to an existing unified exec session and returns recent output.",
|
|
540
|
-
parameters:
|
|
540
|
+
parameters: I({
|
|
541
541
|
session_id: k().int().describe("Identifier of the running unified exec session."),
|
|
542
542
|
chars: y().default("").describe("Bytes to write to stdin (may be empty to poll)."),
|
|
543
543
|
yield_time_ms: k().int().min(0).default(Fe).describe("How long to wait (in milliseconds) for output before yielding."),
|
|
@@ -607,12 +607,12 @@ function Le() {
|
|
|
607
607
|
const We = {
|
|
608
608
|
default: Le
|
|
609
609
|
};
|
|
610
|
-
var
|
|
611
|
-
class J extends (
|
|
610
|
+
var z, H;
|
|
611
|
+
class J extends (H = se, z = ie, H) {
|
|
612
612
|
constructor(e) {
|
|
613
613
|
var i, n;
|
|
614
614
|
super(e);
|
|
615
|
-
a(this,
|
|
615
|
+
a(this, z, !0);
|
|
616
616
|
a(this, "defaultManifest");
|
|
617
617
|
a(this, "baseInstructions");
|
|
618
618
|
a(this, "capabilities");
|
|
@@ -35162,7 +35162,7 @@ class Bhe {
|
|
|
35162
35162
|
const r = Nn(this.memory.layout.sessionsDir, `${t}.jsonl`), o = await this.storage.readText(r);
|
|
35163
35163
|
if (!o)
|
|
35164
35164
|
throw new O(`Memory rollout transcript was not found: ${r}`);
|
|
35165
|
-
const { SandboxAgent: s } = await import("./agent-
|
|
35165
|
+
const { SandboxAgent: s } = await import("./agent-C7KN73yy.js"), i = new s({
|
|
35166
35166
|
name: "sandbox-memory-phase-one",
|
|
35167
35167
|
instructions: Upe(n.extraPrompt),
|
|
35168
35168
|
model: n.phaseOneModel,
|
|
@@ -35214,7 +35214,7 @@ class Bhe {
|
|
|
35214
35214
|
selectedItems: n.selected
|
|
35215
35215
|
}))
|
|
35216
35216
|
return;
|
|
35217
|
-
const { SandboxAgent: r } = await import("./agent-
|
|
35217
|
+
const { SandboxAgent: r } = await import("./agent-C7KN73yy.js"), o = new r({
|
|
35218
35218
|
name: "sandbox-memory-phase-two",
|
|
35219
35219
|
model: t.phaseTwoModel,
|
|
35220
35220
|
modelSettings: t.phaseTwoModelSettings,
|
|
@@ -65590,41 +65590,41 @@ function UOe() {
|
|
|
65590
65590
|
return /* @__PURE__ */ EJ(Xxe);
|
|
65591
65591
|
}
|
|
65592
65592
|
export {
|
|
65593
|
-
|
|
65594
|
-
|
|
65593
|
+
Gxe as A,
|
|
65594
|
+
wo as B,
|
|
65595
65595
|
ohe as C,
|
|
65596
65596
|
gxe as D,
|
|
65597
|
-
|
|
65597
|
+
aP as E,
|
|
65598
65598
|
qxe as G,
|
|
65599
|
-
|
|
65599
|
+
Xxe as M,
|
|
65600
65600
|
VP as R,
|
|
65601
65601
|
$$ as S,
|
|
65602
|
-
|
|
65602
|
+
Zxe as U,
|
|
65603
65603
|
Hxe as V,
|
|
65604
|
-
|
|
65605
|
-
|
|
65606
|
-
|
|
65607
|
-
|
|
65608
|
-
|
|
65609
|
-
|
|
65610
|
-
|
|
65611
|
-
|
|
65612
|
-
|
|
65613
|
-
|
|
65614
|
-
|
|
65615
|
-
|
|
65616
|
-
|
|
65617
|
-
|
|
65604
|
+
q3 as a,
|
|
65605
|
+
bxe as b,
|
|
65606
|
+
UOe as c,
|
|
65607
|
+
W3 as d,
|
|
65608
|
+
Qxe as e,
|
|
65609
|
+
BOe as f,
|
|
65610
|
+
Wxe as g,
|
|
65611
|
+
Pxe as h,
|
|
65612
|
+
As as i,
|
|
65613
|
+
Vye as j,
|
|
65614
|
+
rOe as k,
|
|
65615
|
+
O as l,
|
|
65616
|
+
she as m,
|
|
65617
|
+
nOe as n,
|
|
65618
65618
|
Y as o,
|
|
65619
|
-
|
|
65620
|
-
|
|
65621
|
-
|
|
65619
|
+
fm as p,
|
|
65620
|
+
_i as q,
|
|
65621
|
+
lb as r,
|
|
65622
65622
|
P as s,
|
|
65623
65623
|
cc as t,
|
|
65624
|
-
|
|
65625
|
-
|
|
65624
|
+
Vne as u,
|
|
65625
|
+
Ae as v,
|
|
65626
65626
|
Zn as w,
|
|
65627
|
-
|
|
65628
|
-
|
|
65629
|
-
|
|
65627
|
+
Uo as x,
|
|
65628
|
+
iv as y,
|
|
65629
|
+
Is as z
|
|
65630
65630
|
};
|