Pass cached conversation ancestry to bash execution
This commit is contained in:
+11
-1
@@ -21249,6 +21249,15 @@ function createCodingTools(options = {}) {
|
||||
var CodingTools = createCodingTools();
|
||||
|
||||
// environment.ts
|
||||
var Started = defineDoc({
|
||||
kind: "board.started",
|
||||
version: 1,
|
||||
checkpointWhen: () => false,
|
||||
scope: "conversation",
|
||||
history: "latest",
|
||||
fork: "initial",
|
||||
initial: () => ({})
|
||||
});
|
||||
var ops = Deno.core.ops;
|
||||
var ok = (value2) => ({ ok: true, value: value2 });
|
||||
var path = (cwd, input) => {
|
||||
@@ -21260,6 +21269,7 @@ var path = (cwd, input) => {
|
||||
return "/" + parts.join("/");
|
||||
};
|
||||
function environment(cwd = "/", conversation) {
|
||||
const conversations = Array.isArray(conversation) ? conversation : conversation === void 0 ? [] : [String(conversation)];
|
||||
const call = (kind, p, bytes2 = []) => ops.op_file(kind, path(cwd, p), bytes2);
|
||||
const env = {
|
||||
id: "world",
|
||||
@@ -21338,7 +21348,7 @@ function environment(cwd = "/", conversation) {
|
||||
}
|
||||
};
|
||||
try {
|
||||
const rid = ops.op_exec(command, options?.cwd ?? cwd, options?.timeout, conversation === void 0 ? void 0 : String(conversation));
|
||||
const rid = ops.op_exec(command, options?.cwd ?? cwd, options?.timeout, void 0, void 0, conversations);
|
||||
const decoders = { stdout: new TextDecoder(), stderr: new TextDecoder() };
|
||||
let result2;
|
||||
while (true) {
|
||||
|
||||
Reference in New Issue
Block a user