@useavalon/caelence-agent 0.3.0 → 0.4.0
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/README.md +23 -8
- package/package.json +7 -2
- package/src/browser/browser-use.test.ts +54 -2
- package/src/browser/browser-use.ts +75 -3
- package/src/browser/own-chrome.test.ts +593 -0
- package/src/browser/own-chrome.ts +542 -0
- package/src/core/approval.test.ts +126 -0
- package/src/core/approval.ts +17 -0
- package/src/core/events.ts +7 -1
- package/src/core/host-extensions.test.ts +605 -0
- package/src/core/mcp.ts +7 -0
- package/src/core/run-turn.test.ts +85 -0
- package/src/core/run-turn.ts +134 -28
- package/src/core/strands.test.ts +89 -0
- package/src/core/strands.ts +3 -1
- package/src/decisions/shortcuts.ts +5 -0
- package/src/desktop/bridge.ts +66 -12
- package/src/desktop/host.test.ts +244 -0
- package/src/desktop/host.ts +59 -0
- package/src/index.ts +57 -3
- package/src/runtime.ts +110 -20
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
import { describe, expect, test } from "bun:test";
|
|
2
|
+
import { mkdtemp, rm } from "node:fs/promises";
|
|
3
|
+
import { tmpdir } from "node:os";
|
|
4
|
+
import { join } from "node:path";
|
|
5
|
+
import { DEFAULT_CONFIG } from "../config.ts";
|
|
6
|
+
import type { AgentEvent, MainModelProvider } from "../core/events.ts";
|
|
7
|
+
import type { ConstructAgent } from "../core/strands.ts";
|
|
8
|
+
import { noopObservability } from "../observability/noop.ts";
|
|
9
|
+
import { createHarness } from "../runtime.ts";
|
|
10
|
+
import { startDesktopBridge } from "./bridge.ts";
|
|
11
|
+
import type { BridgeHost } from "./host.ts";
|
|
12
|
+
|
|
13
|
+
const provider: MainModelProvider = {
|
|
14
|
+
kind: "fake",
|
|
15
|
+
modelId: "fake",
|
|
16
|
+
async *stream() {
|
|
17
|
+
yield { type: "done" };
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
async function withBridge(extensions?: BridgeHost) {
|
|
22
|
+
const cwd = await mkdtemp(join(tmpdir(), "bridge-host-"));
|
|
23
|
+
const prevHome = process.env.HARNESS_HOME;
|
|
24
|
+
process.env.HARNESS_HOME = join(cwd, "home");
|
|
25
|
+
const seen = { message: "", system: "", tools: [] as string[] };
|
|
26
|
+
const constructAgent: ConstructAgent = (input) => {
|
|
27
|
+
seen.system = input.systemPrompt;
|
|
28
|
+
seen.tools = input.tools.map((t) => t.name);
|
|
29
|
+
return {
|
|
30
|
+
async run(message, emit) {
|
|
31
|
+
seen.message = message;
|
|
32
|
+
emit({ kind: "text_delta", text: "the answer" } satisfies AgentEvent);
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
const harness = await createHarness({
|
|
37
|
+
cwd,
|
|
38
|
+
config: { ...DEFAULT_CONFIG, name: "desk" },
|
|
39
|
+
provider,
|
|
40
|
+
constructAgent,
|
|
41
|
+
observability: noopObservability,
|
|
42
|
+
});
|
|
43
|
+
const { ready, stop } = await startDesktopBridge({ cwd, harness, token: "t", extensions });
|
|
44
|
+
const headers = { authorization: "Bearer t", "content-type": "application/json" };
|
|
45
|
+
const get = (path: string) => fetch(`${ready.url}${path}`, { headers });
|
|
46
|
+
const post = (path: string, body: unknown) =>
|
|
47
|
+
fetch(`${ready.url}${path}`, { method: "POST", headers, body: JSON.stringify(body) });
|
|
48
|
+
return {
|
|
49
|
+
get,
|
|
50
|
+
post,
|
|
51
|
+
seen,
|
|
52
|
+
harness,
|
|
53
|
+
async close() {
|
|
54
|
+
await stop();
|
|
55
|
+
if (prevHome === undefined) delete process.env.HARNESS_HOME;
|
|
56
|
+
else process.env.HARNESS_HOME = prevHome;
|
|
57
|
+
await rm(cwd, { recursive: true, force: true });
|
|
58
|
+
},
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
async function sse(res: Response): Promise<AgentEvent[]> {
|
|
63
|
+
const text = await res.text();
|
|
64
|
+
return text
|
|
65
|
+
.split("\n\n")
|
|
66
|
+
.map((chunk) => chunk.trim())
|
|
67
|
+
.filter((chunk) => chunk.startsWith("data: "))
|
|
68
|
+
.map((chunk) => JSON.parse(chunk.slice(6)) as AgentEvent);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
describe("bridge host extensions", () => {
|
|
72
|
+
test("no extensions behaves like the plain bridge", async () => {
|
|
73
|
+
const ctx = await withBridge();
|
|
74
|
+
try {
|
|
75
|
+
expect((await ctx.get("/state")).status).toBe(200);
|
|
76
|
+
expect((await ctx.get("/nope")).status).toBe(404);
|
|
77
|
+
const settings = (await (await ctx.get("/settings")).json()) as Record<string, unknown>;
|
|
78
|
+
expect(settings).toHaveProperty("modelId");
|
|
79
|
+
} finally {
|
|
80
|
+
await ctx.close();
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
test("host routes are served behind the token and can read the harness", async () => {
|
|
85
|
+
const ctx = await withBridge({
|
|
86
|
+
routes: {
|
|
87
|
+
"GET /hello": async ({ harness }) => Response.json({ name: harness.config.name }),
|
|
88
|
+
},
|
|
89
|
+
});
|
|
90
|
+
try {
|
|
91
|
+
const res = await ctx.get("/hello");
|
|
92
|
+
expect(await res.json()).toEqual({ name: "desk" });
|
|
93
|
+
const unauth = await fetch(new URL("/hello", (await ctx.get("/state")).url));
|
|
94
|
+
expect(unauth.status).toBe(401);
|
|
95
|
+
} finally {
|
|
96
|
+
await ctx.close();
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
test("a host route replaces a built-in route with the same key", async () => {
|
|
101
|
+
const ctx = await withBridge({
|
|
102
|
+
routes: { "GET /health": async () => Response.json({ custom: true }) },
|
|
103
|
+
});
|
|
104
|
+
try {
|
|
105
|
+
expect(await (await ctx.get("/health")).json()).toEqual({ custom: true });
|
|
106
|
+
} finally {
|
|
107
|
+
await ctx.close();
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
test("settings fields are merged on read and write, and a host can reject input", async () => {
|
|
112
|
+
let stored = "calm";
|
|
113
|
+
const ctx = await withBridge({
|
|
114
|
+
settings: () => ({ voice: stored }),
|
|
115
|
+
applySettings: (_ctx, body) => {
|
|
116
|
+
if (typeof body.voice !== "string") return undefined;
|
|
117
|
+
if (body.voice === "bad") return "That voice is not available.";
|
|
118
|
+
stored = body.voice;
|
|
119
|
+
return undefined;
|
|
120
|
+
},
|
|
121
|
+
});
|
|
122
|
+
try {
|
|
123
|
+
expect(((await (await ctx.get("/settings")).json()) as { voice: string }).voice).toBe("calm");
|
|
124
|
+
const ok = await ctx.post("/settings", { voice: "warm" });
|
|
125
|
+
expect(((await ok.json()) as { voice: string }).voice).toBe("warm");
|
|
126
|
+
const bad = await ctx.post("/settings", { voice: "bad" });
|
|
127
|
+
expect(bad.status).toBe(400);
|
|
128
|
+
expect(((await bad.json()) as { error: string }).error).toBe("That voice is not available.");
|
|
129
|
+
expect(stored).toBe("warm");
|
|
130
|
+
} finally {
|
|
131
|
+
await ctx.close();
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
test("model rows are listed first and not duplicated", async () => {
|
|
136
|
+
const ctx = await withBridge({
|
|
137
|
+
modelItems: () => [
|
|
138
|
+
{ id: "acme/custom", label: "Custom" },
|
|
139
|
+
{ id: "openrouter/auto", label: "dupe of a built-in" },
|
|
140
|
+
],
|
|
141
|
+
});
|
|
142
|
+
try {
|
|
143
|
+
const { items } = (await (await ctx.get("/models")).json()) as {
|
|
144
|
+
items: Array<{ id: string }>;
|
|
145
|
+
};
|
|
146
|
+
expect(items[0]?.id).toBe("acme/custom");
|
|
147
|
+
expect(items.filter((row) => row.id === "openrouter/auto")).toHaveLength(1);
|
|
148
|
+
} finally {
|
|
149
|
+
await ctx.close();
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
|
|
153
|
+
test("beforeTurn changes what the model sees, and the chat keeps what the user typed", async () => {
|
|
154
|
+
const ctx = await withBridge({
|
|
155
|
+
displayText: (text) => text.replace(/^\[mode\]\n\n/, ""),
|
|
156
|
+
beforeTurn: (_ctx, { message }) => ({
|
|
157
|
+
message: `[mode]\n\n${message}`,
|
|
158
|
+
options: { systemAppend: "Be brief.", excludeTools: ["exec"] },
|
|
159
|
+
}),
|
|
160
|
+
});
|
|
161
|
+
try {
|
|
162
|
+
const events = await sse(await ctx.post("/turn", { message: "open my notes" }));
|
|
163
|
+
expect(events.at(-1)?.kind).toBe("completion");
|
|
164
|
+
expect(ctx.seen.message).toBe("[mode]\n\nopen my notes");
|
|
165
|
+
expect(ctx.seen.system).toContain("Be brief.");
|
|
166
|
+
expect(ctx.seen.tools).not.toContain("exec");
|
|
167
|
+
const sessionId = events.find((e) => e.kind === "session_meta") as { title: string };
|
|
168
|
+
expect(sessionId.title).toBe("open my notes");
|
|
169
|
+
const transcript = (await (await ctx.get("/state")).json()) as { title: string };
|
|
170
|
+
expect(transcript.title).toBe("open my notes");
|
|
171
|
+
const stored = JSON.stringify(await ctx.harness.store.get(ctx.harness.activeSessionId ?? ""));
|
|
172
|
+
expect(stored).not.toContain("[mode]");
|
|
173
|
+
} finally {
|
|
174
|
+
await ctx.close();
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
|
|
178
|
+
test("beforeTurn displayMessage cleans a message that arrives already prefixed", async () => {
|
|
179
|
+
const ctx = await withBridge({
|
|
180
|
+
beforeTurn: (_ctx, { message }) => ({
|
|
181
|
+
displayMessage: message.replace(/^\[banner\]\n\n/, ""),
|
|
182
|
+
}),
|
|
183
|
+
});
|
|
184
|
+
try {
|
|
185
|
+
await sse(await ctx.post("/turn", { message: "[banner]\n\nopen my notes" }));
|
|
186
|
+
// The model still sees the full message the client sent.
|
|
187
|
+
expect(ctx.seen.message).toBe("[banner]\n\nopen my notes");
|
|
188
|
+
const state = (await (await ctx.get("/state")).json()) as { title: string };
|
|
189
|
+
expect(state.title).toBe("open my notes");
|
|
190
|
+
const stored = JSON.stringify(await ctx.harness.store.get(ctx.harness.activeSessionId ?? ""));
|
|
191
|
+
expect(stored).not.toContain("[banner]");
|
|
192
|
+
} finally {
|
|
193
|
+
await ctx.close();
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
|
|
197
|
+
test("beforeTurn can answer without the model, and nothing is saved", async () => {
|
|
198
|
+
const ctx = await withBridge({
|
|
199
|
+
beforeTurn: () => ({ reply: "I didn't catch that." }),
|
|
200
|
+
});
|
|
201
|
+
try {
|
|
202
|
+
const events = await sse(await ctx.post("/turn", { message: "..." }));
|
|
203
|
+
expect(events.map((e) => e.kind)).toEqual(["text_delta", "completion"]);
|
|
204
|
+
expect(ctx.seen.message).toBe("");
|
|
205
|
+
expect(await ctx.harness.store.list()).toHaveLength(0);
|
|
206
|
+
} finally {
|
|
207
|
+
await ctx.close();
|
|
208
|
+
}
|
|
209
|
+
});
|
|
210
|
+
|
|
211
|
+
test("a throwing beforeTurn is a 500, not a hung turn", async () => {
|
|
212
|
+
const ctx = await withBridge({
|
|
213
|
+
beforeTurn: () => {
|
|
214
|
+
throw new Error("planner failed");
|
|
215
|
+
},
|
|
216
|
+
});
|
|
217
|
+
try {
|
|
218
|
+
const res = await ctx.post("/turn", { message: "hi" });
|
|
219
|
+
expect(res.status).toBe(500);
|
|
220
|
+
expect(((await res.json()) as { error: string }).error).toBe("planner failed");
|
|
221
|
+
// The bridge must still accept the next turn.
|
|
222
|
+
const next = await ctx.post("/turn", { message: "again" });
|
|
223
|
+
expect(next.status).toBe(500);
|
|
224
|
+
} finally {
|
|
225
|
+
await ctx.close();
|
|
226
|
+
}
|
|
227
|
+
});
|
|
228
|
+
|
|
229
|
+
test("slash commands bypass beforeTurn", async () => {
|
|
230
|
+
let called = 0;
|
|
231
|
+
const ctx = await withBridge({
|
|
232
|
+
beforeTurn: () => {
|
|
233
|
+
called += 1;
|
|
234
|
+
return undefined;
|
|
235
|
+
},
|
|
236
|
+
});
|
|
237
|
+
try {
|
|
238
|
+
await ctx.post("/turn", { message: "/help" });
|
|
239
|
+
expect(called).toBe(0);
|
|
240
|
+
} finally {
|
|
241
|
+
await ctx.close();
|
|
242
|
+
}
|
|
243
|
+
});
|
|
244
|
+
});
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { HarnessRuntime, HarnessTurnOptions } from "../runtime.ts";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Extension points for a host app built on the desktop bridge, such as a native widget that
|
|
5
|
+
* talks to it over loopback HTTP. Everything is optional. A host that sets nothing gets the
|
|
6
|
+
* same bridge the desktop window uses.
|
|
7
|
+
*/
|
|
8
|
+
export interface BridgeHost {
|
|
9
|
+
/**
|
|
10
|
+
* Extra routes, keyed `"METHOD /path"`. They sit behind the same bearer token as the built-in
|
|
11
|
+
* routes, and a host route replaces a built-in route with the same key.
|
|
12
|
+
*/
|
|
13
|
+
routes?: Record<string, (ctx: BridgeHostContext, req: Request, url: URL) => Promise<Response>>;
|
|
14
|
+
/** Extra fields merged into `GET /settings` and the `POST /settings` reply. */
|
|
15
|
+
settings?: (ctx: BridgeHostContext) => Record<string, unknown>;
|
|
16
|
+
/**
|
|
17
|
+
* Handle fields of a `POST /settings` body that the bridge does not know. Return an error
|
|
18
|
+
* message to reject the request with 400, or nothing to accept it.
|
|
19
|
+
*/
|
|
20
|
+
applySettings?: (
|
|
21
|
+
ctx: BridgeHostContext,
|
|
22
|
+
body: Record<string, unknown>,
|
|
23
|
+
) => string | undefined | Promise<string | undefined>;
|
|
24
|
+
/** Extra rows for `GET /models`, listed before the built-in ones. */
|
|
25
|
+
modelItems?: (ctx: BridgeHostContext) => Array<{ id: string; label: string }>;
|
|
26
|
+
/**
|
|
27
|
+
* Rewrite stored user and assistant text before it is sent as a transcript, for example to
|
|
28
|
+
* remove a prefix the host adds to messages.
|
|
29
|
+
*/
|
|
30
|
+
displayText?: (text: string) => string;
|
|
31
|
+
/**
|
|
32
|
+
* Turn a `POST /turn` request into per-turn options. `message` is what the user typed. Return
|
|
33
|
+
* `message` to change what the model sees and `options` to shape the turn. Return `reply` to
|
|
34
|
+
* answer without running the model at all, for example a placeholder for an empty recording.
|
|
35
|
+
*/
|
|
36
|
+
beforeTurn?: (
|
|
37
|
+
ctx: BridgeHostContext,
|
|
38
|
+
input: { message: string; body: Record<string, unknown> },
|
|
39
|
+
) => BridgeTurnPlan | undefined | Promise<BridgeTurnPlan | undefined>;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface BridgeTurnPlan {
|
|
43
|
+
/** What the model sees. Defaults to the user's message. */
|
|
44
|
+
message?: string;
|
|
45
|
+
/**
|
|
46
|
+
* What the chat stores and titles the conversation with. Set it when the incoming message
|
|
47
|
+
* already carries a host prefix that should not show up in the chat. Defaults to the user's
|
|
48
|
+
* message, or to the original message when `message` is changed.
|
|
49
|
+
*/
|
|
50
|
+
displayMessage?: string;
|
|
51
|
+
/** Per-turn options passed to `runTurn`. The bridge sets `displayMessage` for you. */
|
|
52
|
+
options?: Omit<HarnessTurnOptions, "signal" | "approvalAsk" | "editUserTurn" | "displayMessage">;
|
|
53
|
+
/** Answer with this text and skip the model. */
|
|
54
|
+
reply?: string;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface BridgeHostContext {
|
|
58
|
+
harness: HarnessRuntime;
|
|
59
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
|
+
export { resolveAgentCwd } from "./agent-cwd.ts";
|
|
1
2
|
export type { BrowserConfig } from "./browser/browser-use.ts";
|
|
3
|
+
export {
|
|
4
|
+
COMMIT_RE,
|
|
5
|
+
covers as hostCovers,
|
|
6
|
+
FIELD_ROLES,
|
|
7
|
+
hostOf,
|
|
8
|
+
hostsInText,
|
|
9
|
+
} from "./browser/own-chrome.ts";
|
|
2
10
|
export {
|
|
3
11
|
CAELENCE_THEME,
|
|
4
12
|
PLAIN_THEME,
|
|
@@ -11,8 +19,10 @@ export {
|
|
|
11
19
|
DEFAULT_CONFIG,
|
|
12
20
|
DEFAULT_MODEL,
|
|
13
21
|
loadConfig,
|
|
22
|
+
OPENROUTER_DEFAULT_BASE_URL,
|
|
14
23
|
resolveConfigPath,
|
|
15
24
|
resolveOpenRouter,
|
|
25
|
+
stripTrailingSlashes,
|
|
16
26
|
} from "./config.ts";
|
|
17
27
|
export {
|
|
18
28
|
type ApprovalGate,
|
|
@@ -24,7 +34,16 @@ export {
|
|
|
24
34
|
isUploadEditRequest,
|
|
25
35
|
parseExecApprovalPolicy,
|
|
26
36
|
} from "./core/approval.ts";
|
|
27
|
-
export
|
|
37
|
+
export { errorMessage } from "./core/errors.ts";
|
|
38
|
+
export type {
|
|
39
|
+
AgentEvent,
|
|
40
|
+
AgentEventEmitter,
|
|
41
|
+
MainModelProvider,
|
|
42
|
+
ProviderMessage,
|
|
43
|
+
ProviderStreamEvent,
|
|
44
|
+
ProviderToolDefinition,
|
|
45
|
+
ProviderTurnRequest,
|
|
46
|
+
} from "./core/events.ts";
|
|
28
47
|
export { isTerminalAgentEvent } from "./core/events.ts";
|
|
29
48
|
export { createHookRunner, type HookConfig, type HookRunner } from "./core/hooks.ts";
|
|
30
49
|
export { newId } from "./core/ids.ts";
|
|
@@ -43,6 +62,7 @@ export {
|
|
|
43
62
|
mcpToolListItem,
|
|
44
63
|
READ_ONLY_ANNOTATIONS,
|
|
45
64
|
resolveToolAnnotations,
|
|
65
|
+
type ToolResult,
|
|
46
66
|
textResult,
|
|
47
67
|
toolResultText,
|
|
48
68
|
UNKNOWN_TOOL_ANNOTATIONS,
|
|
@@ -55,7 +75,14 @@ export {
|
|
|
55
75
|
toolsAllowedInMode,
|
|
56
76
|
tryParseAgentMode,
|
|
57
77
|
} from "./core/mode.ts";
|
|
58
|
-
export {
|
|
78
|
+
export {
|
|
79
|
+
buildSystemPrompt,
|
|
80
|
+
type RunTurnDeps,
|
|
81
|
+
runTurn,
|
|
82
|
+
type TurnInterceptContext,
|
|
83
|
+
type TurnInterceptor,
|
|
84
|
+
type TurnRequest,
|
|
85
|
+
} from "./core/run-turn.ts";
|
|
59
86
|
export {
|
|
60
87
|
createFileSessionStore,
|
|
61
88
|
createMemorySessionStore,
|
|
@@ -70,6 +97,15 @@ export {
|
|
|
70
97
|
sessionTranscript,
|
|
71
98
|
titleFromUserMessage,
|
|
72
99
|
} from "./core/session.ts";
|
|
100
|
+
export {
|
|
101
|
+
type AgentConstructionInput,
|
|
102
|
+
type AgentTool,
|
|
103
|
+
type ConstructAgent,
|
|
104
|
+
type ConstructedAgent,
|
|
105
|
+
constructOpenRouterProvider,
|
|
106
|
+
createConstructAgent,
|
|
107
|
+
type StrandsBackedProvider,
|
|
108
|
+
} from "./core/strands.ts";
|
|
73
109
|
export { addUsage, formatUsage, parseTokenUsage, type TokenUsage } from "./core/usage.ts";
|
|
74
110
|
export { type ApprovalVerdict, classifyToolApproval } from "./decisions/approval.ts";
|
|
75
111
|
export {
|
|
@@ -90,6 +126,14 @@ export {
|
|
|
90
126
|
} from "./decisions/config.ts";
|
|
91
127
|
export { turnHasDurableFact } from "./decisions/memory.ts";
|
|
92
128
|
export type { ShortcutContext, ShortcutPlan, ShortcutPlanner } from "./decisions/shortcuts.ts";
|
|
129
|
+
export {
|
|
130
|
+
type BridgeReady,
|
|
131
|
+
type DesktopState,
|
|
132
|
+
type StartDesktopBridgeOptions,
|
|
133
|
+
startDesktopBridge,
|
|
134
|
+
} from "./desktop/bridge.ts";
|
|
135
|
+
export type { BridgeHost, BridgeHostContext, BridgeTurnPlan } from "./desktop/host.ts";
|
|
136
|
+
export { harnessHome } from "./desktop/secrets.ts";
|
|
93
137
|
export {
|
|
94
138
|
type ChatFn,
|
|
95
139
|
createOpenRouterChat,
|
|
@@ -102,6 +146,11 @@ export {
|
|
|
102
146
|
runNamedEval,
|
|
103
147
|
} from "./evals/runner.ts";
|
|
104
148
|
export { initHost } from "./init.ts";
|
|
149
|
+
export { listedMcpCatalog, type McpCatalogEntry } from "./integrations/catalog.ts";
|
|
150
|
+
export { connectMcp } from "./integrations/connect.ts";
|
|
151
|
+
export { withOAuthLoopback } from "./integrations/loopback.ts";
|
|
152
|
+
export { openRemoteMcp } from "./integrations/remote-mcp.ts";
|
|
153
|
+
export { listStoredConnections } from "./integrations/store.ts";
|
|
105
154
|
export { extractMemories, parseExtractedFacts } from "./memory/extract.ts";
|
|
106
155
|
export { isMemoryEnabled, readMemoryPrefs, writeMemoryPrefs } from "./memory/prefs.ts";
|
|
107
156
|
export { formatMemoryList, formatRetrievedMemory } from "./memory/prompt.ts";
|
|
@@ -131,7 +180,12 @@ export {
|
|
|
131
180
|
WEBSITE_GENERATION_REGRESSION,
|
|
132
181
|
} from "./observability/index.ts";
|
|
133
182
|
export { CLI_NAME, PRODUCT_NAME } from "./product.ts";
|
|
134
|
-
export {
|
|
183
|
+
export {
|
|
184
|
+
type CreateHarnessOptions,
|
|
185
|
+
createHarness,
|
|
186
|
+
type HarnessRuntime,
|
|
187
|
+
type HarnessTurnOptions,
|
|
188
|
+
} from "./runtime.ts";
|
|
135
189
|
export { authorSkillMarkdown, SKILL_AUTHOR_SYSTEM } from "./skills/author-skill.ts";
|
|
136
190
|
export {
|
|
137
191
|
browseSkillCatalog,
|