@byfriends/agent-core 0.2.5 → 0.3.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/{index-Bi8MjEPf.d.mts → index-CZA_2ux5.d.mts} +189 -82
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1038 -601
- package/dist/session/store/index.d.mts +1 -1
- package/package.json +3 -3
|
@@ -2,17 +2,16 @@ import { CacheHitRate, ChatProvider, ContentPart, FinishReason, Message, ModelCa
|
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { OAuthClientProvider, OAuthDiscoveryState } from "@modelcontextprotocol/sdk/client/auth.js";
|
|
4
4
|
import { Kaos, KaosProcess } from "@byfriends/kaos";
|
|
5
|
-
import { ActivateSkillPayload, AgentAPI, AgentEvent, SDKAgentRPC, SDKSessionRPC, UsageStatus } from "
|
|
5
|
+
import { ActivateSkillPayload, AgentAPI, AgentEvent, SDKAgentRPC, SDKSessionRPC, UsageStatus } from "./index-CZA_2ux5.mjs";
|
|
6
6
|
import { OAuthClientInformationMixed, OAuthClientMetadata, OAuthTokens } from "@modelcontextprotocol/sdk/shared/auth.js";
|
|
7
|
-
import { ByfConfig, ByfConfigPatch, OAuthRef } from "
|
|
8
|
-
import { AgentConfigData, AgentConfigUpdateData } from "
|
|
9
|
-
import { AgentContextData, ContextMessage } from "
|
|
10
|
-
import { PermissionApprovalResultRecord, PermissionData, PermissionMode } from "
|
|
11
|
-
import { ToolInfo } from "
|
|
12
|
-
import { AgentType } from "
|
|
13
|
-
import { SessionMeta } from "
|
|
14
|
-
import { BackgroundTaskInfo } from "
|
|
15
|
-
|
|
7
|
+
import { ByfConfig, ByfConfigPatch, OAuthRef } from "./index-CZA_2ux5.mjs";
|
|
8
|
+
import { AgentConfigData, AgentConfigUpdateData } from "./index-CZA_2ux5.mjs";
|
|
9
|
+
import { AgentContextData, ContextMessage } from "./index-CZA_2ux5.mjs";
|
|
10
|
+
import { PermissionApprovalResultRecord, PermissionData, PermissionMode } from "./index-CZA_2ux5.mjs";
|
|
11
|
+
import { ToolInfo } from "./index-CZA_2ux5.mjs";
|
|
12
|
+
import { AgentType } from "./index-CZA_2ux5.mjs";
|
|
13
|
+
import { SessionMeta } from "./index-CZA_2ux5.mjs";
|
|
14
|
+
import { BackgroundTaskInfo } from "./index-CZA_2ux5.mjs";
|
|
16
15
|
//#region src/logging/types.d.ts
|
|
17
16
|
type LogLevel = 'off' | 'error' | 'warn' | 'info' | 'debug';
|
|
18
17
|
type LogContext = Record<string, unknown>;
|
|
@@ -255,20 +254,44 @@ declare const ByfServiceConfigSchema: z.ZodObject<{
|
|
|
255
254
|
customHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
256
255
|
}, z.core.$strip>;
|
|
257
256
|
type ByfServiceConfig = z.infer<typeof ByfServiceConfigSchema>;
|
|
258
|
-
declare const
|
|
259
|
-
|
|
257
|
+
declare const WebSearchProviderConfigSchema: z.ZodObject<{
|
|
258
|
+
type: z.ZodEnum<{
|
|
259
|
+
exa: "exa";
|
|
260
|
+
brave: "brave";
|
|
261
|
+
firecrawl: "firecrawl";
|
|
262
|
+
}>;
|
|
263
|
+
apiKeys: z.ZodArray<z.ZodString>;
|
|
264
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
265
|
+
priority: z.ZodNumber;
|
|
266
|
+
}, z.core.$strip>;
|
|
267
|
+
type WebSearchProviderConfig = z.infer<typeof WebSearchProviderConfigSchema>;
|
|
268
|
+
declare const WebSearchConfigSchema: z.ZodObject<{
|
|
269
|
+
providers: z.ZodArray<z.ZodObject<{
|
|
270
|
+
type: z.ZodEnum<{
|
|
271
|
+
exa: "exa";
|
|
272
|
+
brave: "brave";
|
|
273
|
+
firecrawl: "firecrawl";
|
|
274
|
+
}>;
|
|
275
|
+
apiKeys: z.ZodArray<z.ZodString>;
|
|
260
276
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
277
|
+
priority: z.ZodNumber;
|
|
278
|
+
}, z.core.$strip>>;
|
|
279
|
+
}, z.core.$strip>;
|
|
280
|
+
type WebSearchConfig = z.infer<typeof WebSearchConfigSchema>;
|
|
281
|
+
declare const ServicesConfigSchema: z.ZodObject<{
|
|
282
|
+
webSearch: z.ZodOptional<z.ZodObject<{
|
|
283
|
+
providers: z.ZodArray<z.ZodObject<{
|
|
284
|
+
type: z.ZodEnum<{
|
|
285
|
+
exa: "exa";
|
|
286
|
+
brave: "brave";
|
|
287
|
+
firecrawl: "firecrawl";
|
|
266
288
|
}>;
|
|
267
|
-
|
|
289
|
+
apiKeys: z.ZodArray<z.ZodString>;
|
|
290
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
291
|
+
priority: z.ZodNumber;
|
|
268
292
|
}, z.core.$strip>>;
|
|
269
|
-
customHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
270
293
|
}, z.core.$strip>>;
|
|
271
|
-
|
|
294
|
+
fetchUrl: z.ZodOptional<z.ZodObject<{
|
|
272
295
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
273
296
|
apiKey: z.ZodOptional<z.ZodString>;
|
|
274
297
|
oauth: z.ZodOptional<z.ZodObject<{
|
|
@@ -432,19 +455,19 @@ declare const ByfConfigSchema: z.ZodObject<{
|
|
|
432
455
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
433
456
|
}, z.core.$strict>>>;
|
|
434
457
|
services: z.ZodOptional<z.ZodObject<{
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
keyring: "keyring";
|
|
458
|
+
webSearch: z.ZodOptional<z.ZodObject<{
|
|
459
|
+
providers: z.ZodArray<z.ZodObject<{
|
|
460
|
+
type: z.ZodEnum<{
|
|
461
|
+
exa: "exa";
|
|
462
|
+
brave: "brave";
|
|
463
|
+
firecrawl: "firecrawl";
|
|
442
464
|
}>;
|
|
443
|
-
|
|
465
|
+
apiKeys: z.ZodArray<z.ZodString>;
|
|
466
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
467
|
+
priority: z.ZodNumber;
|
|
444
468
|
}, z.core.$strip>>;
|
|
445
|
-
customHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
446
469
|
}, z.core.$strip>>;
|
|
447
|
-
|
|
470
|
+
fetchUrl: z.ZodOptional<z.ZodObject<{
|
|
448
471
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
449
472
|
apiKey: z.ZodOptional<z.ZodString>;
|
|
450
473
|
oauth: z.ZodOptional<z.ZodObject<{
|
|
@@ -571,19 +594,19 @@ declare const ByfConfigPatchSchema: z.ZodObject<{
|
|
|
571
594
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
572
595
|
}, z.core.$strict>>>;
|
|
573
596
|
services: z.ZodOptional<z.ZodObject<{
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
keyring: "keyring";
|
|
597
|
+
webSearch: z.ZodOptional<z.ZodObject<{
|
|
598
|
+
providers: z.ZodArray<z.ZodObject<{
|
|
599
|
+
type: z.ZodEnum<{
|
|
600
|
+
exa: "exa";
|
|
601
|
+
brave: "brave";
|
|
602
|
+
firecrawl: "firecrawl";
|
|
581
603
|
}>;
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
604
|
+
apiKeys: z.ZodArray<z.ZodString>;
|
|
605
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
606
|
+
priority: z.ZodNumber;
|
|
607
|
+
}, z.core.$strip>>;
|
|
585
608
|
}, z.core.$strip>>;
|
|
586
|
-
|
|
609
|
+
fetchUrl: z.ZodOptional<z.ZodObject<{
|
|
587
610
|
baseUrl: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
588
611
|
apiKey: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
589
612
|
oauth: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
@@ -1079,6 +1102,98 @@ declare function transformTomlData(data: Record<string, unknown>): Record<string
|
|
|
1079
1102
|
declare function writeConfigFile(filePath: string, config: ByfConfig$1): Promise<void>;
|
|
1080
1103
|
declare function configToTomlData(config: ByfConfig$1): Record<string, unknown>;
|
|
1081
1104
|
//#endregion
|
|
1105
|
+
//#region src/config/update-rules.d.ts
|
|
1106
|
+
/**
|
|
1107
|
+
* Update-rules for `byf update-config`.
|
|
1108
|
+
*
|
|
1109
|
+
* Each rule corresponds to a deprecated / renamed / migrated field that
|
|
1110
|
+
* `analyzeConfig` can detect in `config.raw` and (where applicable) that
|
|
1111
|
+
* `applyFixes` can clean up.
|
|
1112
|
+
*
|
|
1113
|
+
* **Principles** (from PRD-0013 grill decisions):
|
|
1114
|
+
* - G2 — Whitelist approach: only fields explicitly registered here are removed.
|
|
1115
|
+
* - Every rule carries a `deprecatedSince` version annotation so the report
|
|
1116
|
+
* tells the user *when* the field became obsolete.
|
|
1117
|
+
*/
|
|
1118
|
+
interface Finding {
|
|
1119
|
+
kind: 'removed' | 'renamed' | 'migrated' | 'dangling' | 'unknown' | 'invalid-value';
|
|
1120
|
+
/** TOML dotted path, e.g. `'services.byf_search'`, `'loop_control.max_steps_per_run'`. */
|
|
1121
|
+
path: string;
|
|
1122
|
+
/** Human-readable description of what was found and what will happen. */
|
|
1123
|
+
detail: string;
|
|
1124
|
+
/** Version when this field was deprecated (optional — may be unknown for very old fields). */
|
|
1125
|
+
deprecatedSince?: string;
|
|
1126
|
+
}
|
|
1127
|
+
interface DeprecatedFieldRule {
|
|
1128
|
+
/** TOML dotted path, same format as `Finding.path`. */
|
|
1129
|
+
path: string;
|
|
1130
|
+
/** Path split into segments for traversing `config.raw`. */
|
|
1131
|
+
pathParts: readonly string[];
|
|
1132
|
+
/** Which kind of Finding this rule produces. */
|
|
1133
|
+
kind: Finding['kind'];
|
|
1134
|
+
/** Human-readable description. */
|
|
1135
|
+
detail: string;
|
|
1136
|
+
deprecatedSince?: string;
|
|
1137
|
+
}
|
|
1138
|
+
/**
|
|
1139
|
+
* Combined list of all deprecated-field rules.
|
|
1140
|
+
*
|
|
1141
|
+
* Order within the list does not affect correctness (the CLI groups by kind
|
|
1142
|
+
* at display time), but a stable order helps test expectations.
|
|
1143
|
+
*/
|
|
1144
|
+
declare const DEPRECATED_FIELD_RULES: readonly DeprecatedFieldRule[];
|
|
1145
|
+
//#endregion
|
|
1146
|
+
//#region src/config/update.d.ts
|
|
1147
|
+
/**
|
|
1148
|
+
* Minimal config shape accepted by {@link analyzeConfig}.
|
|
1149
|
+
*
|
|
1150
|
+
* All fields are optional so callers — especially tests — don't need to
|
|
1151
|
+
* construct a full `ByfConfig`. Backward-compatible: every `ByfConfig` is
|
|
1152
|
+
* a valid `UpdateAnalyzeInput`.
|
|
1153
|
+
*/
|
|
1154
|
+
interface UpdateAnalyzeInput {
|
|
1155
|
+
readonly raw?: Record<string, unknown>;
|
|
1156
|
+
readonly thinking?: {
|
|
1157
|
+
readonly mode?: string;
|
|
1158
|
+
readonly effort?: string;
|
|
1159
|
+
};
|
|
1160
|
+
readonly models?: Record<string, {
|
|
1161
|
+
readonly provider: string;
|
|
1162
|
+
readonly capabilities?: readonly string[];
|
|
1163
|
+
}>;
|
|
1164
|
+
readonly providers?: Record<string, unknown>;
|
|
1165
|
+
readonly defaultProvider?: string;
|
|
1166
|
+
readonly defaultModel?: string;
|
|
1167
|
+
}
|
|
1168
|
+
/**
|
|
1169
|
+
* Scan a parsed config (including `config.raw`) and return all Findings
|
|
1170
|
+
* for deprecated / renamed / migrated / dangling / unknown / invalid-value
|
|
1171
|
+
* fields.
|
|
1172
|
+
*
|
|
1173
|
+
* This is a **pure** function — no file I/O, no side effects.
|
|
1174
|
+
*
|
|
1175
|
+
* Detection is based on `config.raw` (the clone of the original TOML data),
|
|
1176
|
+
* not on the parsed camelCase schema. This matches the PRD's observation
|
|
1177
|
+
* that `raw` is both the protection layer (preserving unknown fields) and
|
|
1178
|
+
* the blind spot (retaining stale keys through read→write cycles).
|
|
1179
|
+
*/
|
|
1180
|
+
declare function analyzeConfig(config: UpdateAnalyzeInput): Finding[];
|
|
1181
|
+
/**
|
|
1182
|
+
* Apply automatic fixes to a `ByfConfig` by deleting every path registered in
|
|
1183
|
+
* `DEPRECATED_FIELD_RULES` from `config.raw`.
|
|
1184
|
+
*
|
|
1185
|
+
* The `_findings` parameter is intentionally **not consulted** — deletion is
|
|
1186
|
+
* driven exclusively by the whitelist in `DEPRECATED_FIELD_RULES`. This ensures
|
|
1187
|
+
* that a call to `applyFixes` always produces a clean config regardless of
|
|
1188
|
+
* what analysis step previously ran.
|
|
1189
|
+
*
|
|
1190
|
+
* This is a **pure** function — it returns a new config object without
|
|
1191
|
+
* mutating the input.
|
|
1192
|
+
*/
|
|
1193
|
+
declare function applyFixes(config: ByfConfig$1, findings: readonly Finding[]): ByfConfig$1 & {
|
|
1194
|
+
raw: Record<string, unknown>;
|
|
1195
|
+
};
|
|
1196
|
+
//#endregion
|
|
1082
1197
|
//#region src/providers/request-auth.d.ts
|
|
1083
1198
|
interface ProviderRequestAuthOptions {
|
|
1084
1199
|
readonly forceRefresh?: boolean;
|
|
@@ -1154,7 +1269,7 @@ interface BackgroundTaskInfo$1 {
|
|
|
1154
1269
|
readonly command: string;
|
|
1155
1270
|
readonly description: string;
|
|
1156
1271
|
readonly status: BackgroundTaskStatus;
|
|
1157
|
-
readonly pid: number;
|
|
1272
|
+
readonly pid: number | null;
|
|
1158
1273
|
readonly exitCode: number | null;
|
|
1159
1274
|
readonly startedAt: number;
|
|
1160
1275
|
readonly endedAt: number | null;
|
|
@@ -1437,7 +1552,7 @@ declare class BackgroundProcessManager {
|
|
|
1437
1552
|
/** Drop a persisted task from disk and ghost map. */
|
|
1438
1553
|
forgetTask(taskId: string): Promise<void>;
|
|
1439
1554
|
/**
|
|
1440
|
-
* Persist the current state of a live
|
|
1555
|
+
* Persist the current state of a live TaskEntry. Called from
|
|
1441
1556
|
* `register()` and the lifecycle finally block. No-op unless attached.
|
|
1442
1557
|
*/
|
|
1443
1558
|
private persistLive;
|
|
@@ -1907,6 +2022,13 @@ interface RecordRestoreHandler {
|
|
|
1907
2022
|
restoreRecord(record: AgentRecord): void;
|
|
1908
2023
|
}
|
|
1909
2024
|
//#endregion
|
|
2025
|
+
//#region src/agent/context/projector.d.ts
|
|
2026
|
+
interface EphemeralInjection {
|
|
2027
|
+
kind: 'memory_recall' | 'system_reminder' | 'pending_notification';
|
|
2028
|
+
content: string | Record<string, unknown>;
|
|
2029
|
+
position?: 'before_user' | 'after_system';
|
|
2030
|
+
}
|
|
2031
|
+
//#endregion
|
|
1910
2032
|
//#region src/agent/context/scratch-manager.d.ts
|
|
1911
2033
|
interface ScratchManagerConfig {
|
|
1912
2034
|
/** 每个 session 的最大 scratch 大小 (bytes),默认 50MB */
|
|
@@ -1950,6 +2072,12 @@ declare class ContextMemory implements RecordRestoreHandler {
|
|
|
1950
2072
|
get tokenCountWithPending(): number;
|
|
1951
2073
|
get history(): readonly ContextMessage$1[];
|
|
1952
2074
|
get messages(): Message[];
|
|
2075
|
+
/**
|
|
2076
|
+
* Project history into provider-ready messages, optionally with
|
|
2077
|
+
* ephemeral injections (e.g. timestamp, permission mode) appended
|
|
2078
|
+
* at the `'before_user'` position.
|
|
2079
|
+
*/
|
|
2080
|
+
getMessages(ephemeral?: readonly EphemeralInjection[]): Message[];
|
|
1953
2081
|
applyObservationMasking(config?: MaskingConfig): MaskingResult;
|
|
1954
2082
|
applyPruning(config?: {
|
|
1955
2083
|
effectiveCapacityRatio?: number;
|
|
@@ -2235,15 +2363,6 @@ interface AgentRecordEvents {
|
|
|
2235
2363
|
};
|
|
2236
2364
|
'permission.record_approval_result': PermissionApprovalResultRecord$1;
|
|
2237
2365
|
'full_compaction.begin': CompactionBeginData;
|
|
2238
|
-
'plan_mode.enter': {
|
|
2239
|
-
id: string;
|
|
2240
|
-
};
|
|
2241
|
-
'plan_mode.cancel': {
|
|
2242
|
-
id?: string;
|
|
2243
|
-
};
|
|
2244
|
-
'plan_mode.exit': {
|
|
2245
|
-
id?: string;
|
|
2246
|
-
};
|
|
2247
2366
|
'tools.register_user_tool': UserToolRegistration;
|
|
2248
2367
|
'tools.unregister_user_tool': {
|
|
2249
2368
|
name: string;
|
|
@@ -2488,6 +2607,13 @@ interface AgentMeta {
|
|
|
2488
2607
|
readonly homedir: string;
|
|
2489
2608
|
readonly type: AgentType$1;
|
|
2490
2609
|
readonly parentAgentId: string | null;
|
|
2610
|
+
/**
|
|
2611
|
+
* The parent agent's tool-call id that spawned this agent. Absent for the
|
|
2612
|
+
* main agent and for sessions persisted before this field existed. The TUI
|
|
2613
|
+
* uses it on resume to map a main-agent `Agent` tool-call back to its child
|
|
2614
|
+
* agent's activity (the child's own replay/usage/text).
|
|
2615
|
+
*/
|
|
2616
|
+
readonly parentToolCallId?: string | undefined;
|
|
2491
2617
|
}
|
|
2492
2618
|
interface SessionMeta$1 {
|
|
2493
2619
|
createdAt: string;
|
|
@@ -2520,7 +2646,7 @@ declare class Session {
|
|
|
2520
2646
|
}>;
|
|
2521
2647
|
close(): Promise<void>;
|
|
2522
2648
|
private stopBackgroundTasksOnExit;
|
|
2523
|
-
createAgent(config: Partial<AgentConfig>, profile?: ResolvedAgentProfile, parentAgentId?: string | undefined): Promise<{
|
|
2649
|
+
createAgent(config: Partial<AgentConfig>, profile?: ResolvedAgentProfile, parentAgentId?: string | undefined, parentToolCallId?: string | undefined): Promise<{
|
|
2524
2650
|
readonly id: string;
|
|
2525
2651
|
readonly agent: Agent;
|
|
2526
2652
|
}>;
|
|
@@ -2686,6 +2812,7 @@ declare class InjectionManager {
|
|
|
2686
2812
|
private readonly injectors;
|
|
2687
2813
|
constructor(agent: Agent);
|
|
2688
2814
|
inject(): Promise<void>;
|
|
2815
|
+
getEphemeralInjections(): readonly EphemeralInjection[];
|
|
2689
2816
|
onContextClear(): void;
|
|
2690
2817
|
onContextCompacted(compactedCount: number): void;
|
|
2691
2818
|
}
|
|
@@ -3392,9 +3519,6 @@ type Event = AgentEvent$1 & {
|
|
|
3392
3519
|
type AgentReplayRecord = {
|
|
3393
3520
|
type: 'message';
|
|
3394
3521
|
message: ContextMessage;
|
|
3395
|
-
} | {
|
|
3396
|
-
type: 'plan_updated';
|
|
3397
|
-
enabled: boolean;
|
|
3398
3522
|
} | {
|
|
3399
3523
|
type: 'config_updated';
|
|
3400
3524
|
config: AgentConfigUpdateData;
|
|
@@ -3411,11 +3535,17 @@ interface ResumedAgentState {
|
|
|
3411
3535
|
readonly context: AgentContextData;
|
|
3412
3536
|
readonly replay: readonly AgentReplayRecord[];
|
|
3413
3537
|
readonly permission: PermissionData;
|
|
3414
|
-
readonly plan: PlanData;
|
|
3415
3538
|
readonly usage: UsageStatus$1;
|
|
3416
3539
|
readonly tools: readonly ToolInfo[];
|
|
3417
3540
|
readonly toolStore?: Readonly<Record<string, unknown>>;
|
|
3418
3541
|
readonly background: readonly BackgroundTaskInfo[];
|
|
3542
|
+
/**
|
|
3543
|
+
* For sub-agents: the parent agent's tool-call id that spawned this agent.
|
|
3544
|
+
* Absent for the main agent and for sessions persisted before this field
|
|
3545
|
+
* existed. The TUI uses it to attach a resumed main-agent `Agent` tool-call
|
|
3546
|
+
* to this child's activity (replay/usage/text).
|
|
3547
|
+
*/
|
|
3548
|
+
readonly parentToolCallId?: string | undefined;
|
|
3419
3549
|
}
|
|
3420
3550
|
interface ResumeSessionResult extends SessionSummary {
|
|
3421
3551
|
readonly sessionMetadata: SessionMeta;
|
|
@@ -3435,7 +3565,6 @@ type WithSessionId<T> = WithExtraPayload<T, {
|
|
|
3435
3565
|
declare function proxyWithExtraPayload<T, U>(methods: RPCMethods<WithExtraPayload<T, U>>, extraPayload: U): RPCMethods<T>;
|
|
3436
3566
|
//#endregion
|
|
3437
3567
|
//#region src/rpc/core-api.d.ts
|
|
3438
|
-
type PlanData = null;
|
|
3439
3568
|
type JsonPrimitive = string | number | boolean | null;
|
|
3440
3569
|
type JsonValue = JsonPrimitive | JsonValue[] | {
|
|
3441
3570
|
readonly [key: string]: JsonValue;
|
|
@@ -3546,9 +3675,6 @@ interface SetModelResult {
|
|
|
3546
3675
|
readonly model: string;
|
|
3547
3676
|
readonly providerName?: string | undefined;
|
|
3548
3677
|
}
|
|
3549
|
-
interface CancelPlanPayload {
|
|
3550
|
-
readonly id?: string;
|
|
3551
|
-
}
|
|
3552
3678
|
interface BeginCompactionPayload {
|
|
3553
3679
|
readonly instruction?: string;
|
|
3554
3680
|
}
|
|
@@ -3640,9 +3766,6 @@ interface AgentAPI$1 {
|
|
|
3640
3766
|
setPermission: (payload: SetPermissionPayload) => void;
|
|
3641
3767
|
setModel: (payload: SetModelPayload) => SetModelResult;
|
|
3642
3768
|
getModel: (payload: EmptyPayload) => string;
|
|
3643
|
-
enterPlan: (payload: EmptyPayload) => void;
|
|
3644
|
-
cancelPlan: (payload: CancelPlanPayload) => void;
|
|
3645
|
-
clearPlan: (payload: EmptyPayload) => void;
|
|
3646
3769
|
beginCompaction: (payload: BeginCompactionPayload) => void;
|
|
3647
3770
|
cancelCompaction: (payload: EmptyPayload) => void;
|
|
3648
3771
|
registerTool: (payload: RegisterToolPayload) => void;
|
|
@@ -3656,7 +3779,6 @@ interface AgentAPI$1 {
|
|
|
3656
3779
|
getContext: (payload: EmptyPayload) => AgentContextData;
|
|
3657
3780
|
getConfig: (payload: EmptyPayload) => AgentConfigData;
|
|
3658
3781
|
getPermission: (payload: EmptyPayload) => PermissionData;
|
|
3659
|
-
getPlan: (payload: EmptyPayload) => PlanData;
|
|
3660
3782
|
getUsage: (payload: EmptyPayload) => UsageStatus$1;
|
|
3661
3783
|
getTools: (payload: EmptyPayload) => readonly ToolInfo[];
|
|
3662
3784
|
getBackground: (payload: GetBackgroundPayload) => readonly BackgroundTaskInfo[];
|
|
@@ -3837,18 +3959,6 @@ declare class ByfCore implements PromisableMethods<CoreAPI> {
|
|
|
3837
3959
|
sessionId,
|
|
3838
3960
|
...payload
|
|
3839
3961
|
}: SessionAgentPayload<EmptyPayload>): string | Promise<string>;
|
|
3840
|
-
enterPlan({
|
|
3841
|
-
sessionId,
|
|
3842
|
-
...payload
|
|
3843
|
-
}: SessionAgentPayload<EmptyPayload>): void | Promise<void>;
|
|
3844
|
-
cancelPlan({
|
|
3845
|
-
sessionId,
|
|
3846
|
-
...payload
|
|
3847
|
-
}: SessionAgentPayload<CancelPlanPayload>): void | Promise<void>;
|
|
3848
|
-
clearPlan({
|
|
3849
|
-
sessionId,
|
|
3850
|
-
...payload
|
|
3851
|
-
}: SessionAgentPayload<EmptyPayload>): void | Promise<void>;
|
|
3852
3962
|
beginCompaction({
|
|
3853
3963
|
sessionId,
|
|
3854
3964
|
...payload
|
|
@@ -3901,10 +4011,6 @@ declare class ByfCore implements PromisableMethods<CoreAPI> {
|
|
|
3901
4011
|
sessionId,
|
|
3902
4012
|
...payload
|
|
3903
4013
|
}: SessionAgentPayload<EmptyPayload>): PermissionData$1 | Promise<PermissionData$1>;
|
|
3904
|
-
getPlan({
|
|
3905
|
-
sessionId,
|
|
3906
|
-
...payload
|
|
3907
|
-
}: SessionAgentPayload<EmptyPayload>): Promise<null> | null;
|
|
3908
4014
|
getUsage({
|
|
3909
4015
|
sessionId,
|
|
3910
4016
|
...payload
|
|
@@ -4134,4 +4240,5 @@ declare function resolveLoggingConfig(input: ResolveLoggingInput): LoggingConfig
|
|
|
4134
4240
|
//#region src/prompt-plan/builder.d.ts
|
|
4135
4241
|
declare function buildPromptPlan(renderedSystemPrompt: string, providerCacheCapability: ProviderCacheCapability): PromptPlan;
|
|
4136
4242
|
//#endregion
|
|
4137
|
-
export {
|
|
4243
|
+
export { CreateSessionPayload as $, RootLogger as $i, TelemetryProperties as $n, ResolveConfigValueInput as $r, CompactionCancelledEvent as $t, QuestionAnswers as A, PermissionRuleSchema as Ai, TurnStepStartedEvent as An, LoopToolResultEvent as Ar, SetThinkingPayload as At, SDKSessionAPI as B, WebSearchConfig as Bi, BYF_ERROR_INFO as Bn, OAuthTokenProviderResolver as Br, WithAgentId as Bt, SDKRPCClient as C, ModelAliasSchema as Ci, ToolUpdate as Cn, UserPromptOrigin as Cr, SessionMetadataPatch as Ct, ApprovalResponse as D, PermissionConfigSchema as Di, TurnStepCompletedEvent as Dn, LoopStepBeginEvent as Dr, SetModelPayload as Dt, ApprovalRequest as E, PermissionConfig as Ei, TurnStartedEvent as En, LoopRecordedEvent as Er, SetByfConfigPayload as Et, QuestionResult as F, ProviderTypeSchema as Fi, isByfError as Fn, BackgroundLifecycleEvent as Fr, StopBackgroundPayload as Ft, AgentAPI$1 as G, getDefaultConfig as Gi, SessionSubagentHost as Gn, DeprecatedFieldRule as Gr, ResumedAgentState as Gt, ToolCallRequest as H, WebSearchProviderConfig as Hi, ByfErrorInfo as Hn, analyzeConfig as Hr, proxyWithExtraPayload as Ht, SDKAPI as I, ServicesConfig as Ii, makeErrorPayload as In, BackgroundTaskInfo$1 as Ir, TextPromptPart as It, ByfConfigPatch as J, LogEntry as Ji, Session as Jn, ensureConfigFile as Jr, AssistantDeltaEvent as Jt, BeginCompactionPayload as K, validateConfig as Ki, SubagentHandle as Kn, Finding as Kr, AgentEvent$1 as Kt, SDKAgentAPI as L, ServicesConfigSchema as Li, toByfErrorPayload as Ln, BackgroundTaskKind as Lr, UnregisterToolPayload as Lt, QuestionOption as M, ProviderConfig$1 as Mi, WarningEvent as Mn, ExecutableToolResult as Mr, ShellExecResult as Mt, QuestionRequest as N, ProviderConfigSchema as Ni, ByfErrorPayload as Nn, ExecutableToolSuccessResult as Nr, SkillSummary as Nt, ApprovalScope as O, PermissionModeSchema as Oi, TurnStepInterruptedEvent as On, LoopStepEndEvent as Or, SetModelResult as Ot, QuestionResponse as P, ProviderType as Pi, fromByfErrorPayload as Pn, ToolInputDisplay as Pr, SteerPayload as Pt, CoreInfo as Q, LoggingConfig as Qi, TelemetryClient as Qn, writeConfigFile as Qr, CompactionBlockedEvent as Qt, SDKAgentRPC$1 as R, ThinkingConfig as Ri, ByfError as Rn, BackgroundTaskStatus as Rr, Unsubscribe as Rt, RPCMethods as S, ModelAlias as Si, ToolResultEvent as Sn, USER_PROMPT_ORIGIN as Sr, SessionAPI as St, ApprovalDecision as T, OAuthRefSchema as Ti, TurnEndedEvent as Tn, LoopContentPartEvent as Tr, SetActiveToolsPayload as Tt, ToolCallResponse as U, WebSearchProviderConfigSchema as Ui, ErrorCodes as Un, applyFixes as Ur, AgentReplayRecord as Ut, SDKSessionRPC$1 as V, WebSearchConfigSchema as Vi, ByfErrorCode as Vn, UpdateAnalyzeInput as Vr, WithSessionId as Vt, ActivateSkillPayload$1 as W, formatConfigValidationError as Wi, RuntimeConfig as Wn, DEPRECATED_FIELD_RULES as Wr, ResumeSessionResult as Wt, CloseSessionPayload as X, LogPayload as Xi, SessionMeta$1 as Xn, readConfigFile as Xr, BackgroundTaskTerminatedEvent as Xt, CancelPayload as Y, LogLevel as Yi, SessionConfig as Yn, parseConfigString as Yr, BackgroundTaskStartedEvent as Yt, CoreAPI as Z, Logger as Zi, SessionSkillConfig as Zn, transformTomlData as Zr, BackgroundTaskUpdatedEvent as Zt, ByfCoreOptions as _, McpServerConfigSchema as _i, ToolCallDeltaEvent as _n, CompactionBeginData as _r, ReconnectMcpServerPayload as _t, collectFilesRecursive as a, mergeConfigPatch as ai, MCP_OAUTH_AUTHORIZATION_URL_TOOL_UPDATE as an, BuiltinTool as ar, GetBackgroundOutputPathPayload as at, RPCCallOptions as b, McpServerStdioConfig as bi, ToolListUpdatedReason as bn, ContextMessage$1 as br, RenameSessionPayload as bt, WIRE_PROTOCOL_VERSION as c, ByfConfigPatchSchema as ci, McpServerStatusPayload as cn, UserToolRegistration as cr, JsonObject as ct, normalizeTimestampMs as d, ByfServiceConfigSchema as di, SessionMetaUpdatedEvent as dn, AgentRecordOf as dr, ListSessionsPayload as dt, SessionAttachInput as ea, parseBooleanEnv as ei, CompactionCompletedEvent as en, flushDiagnosticLogs as er, EmptyPayload as et, scanSessionWire as f, HookDefConfig as fi, SkillActivatedEvent as fn, AgentRecordPersistence as fr, McpServerInfo as ft, ByfCore as g, McpServerConfig as gi, ThinkingDeltaEvent as gn, AgentConfigUpdateData$1 as gr, PromptPayload as gt, AgentType$1 as h, LoopControlSchema as hi, SubagentSpawnedEvent as hn, PermissionMode$1 as hr, PromptPart as ht, ExtraZipEntry as i, resolveConfigPath as ii, HookResultEvent as in, resolveGlobalLogPath as ir, ForkSessionPayload as it, QuestionItem as j, PermissionRuleScopeSchema as ji, UsageStatus$1 as jn, ExecutableToolErrorResult as jr, ShellExecPayload as jt, QuestionAnswerMethod as k, PermissionRuleDecisionSchema as ki, TurnStepRetryingEvent as kn, LoopToolCallEvent as kr, SetPermissionPayload as kt, buildExportManifest as l, ByfConfigSchema as li, ObservationMaskingAppliedEvent as ln, AgentRecord as lr, JsonPrimitive as lt, AgentConfig as m, LoopControl as mi, SubagentFailedEvent as mn, PermissionApprovalResultRecord$1 as mr, PromptInput as mt, ResolveLoggingInput as n, ensureByfHome as ni, ErrorEvent as nn, log as nr, ExportSessionPayload as nt, writeExportZip as o, BackgroundConfig as oi, McpOAuthAuthorizationUrlUpdateData as on, ToolInfo$1 as or, GetBackgroundOutputPayload as ot, Agent as p, HookDefSchema as pi, SubagentCompletedEvent as pn, UsageRecordScope as pr, McpStartupMetrics as pt, ByfConfig as q, LogContext as qi, AgentMeta as qn, configToTomlData as qr, AgentStatusUpdatedEvent as qt, resolveLoggingConfig as r, resolveByfHome as ri, Event as rn, redact as rr, ExportSessionResult as rt, exportSessionDirectory as s, BackgroundConfigSchema as si, McpServerStatusEvent as sn, ToolSource as sr, GetBackgroundPayload as st, buildPromptPlan as t, SessionLogHandle as ta, resolveConfigValue as ti, CompactionStartedEvent as tn, getRootLogger as tr, ExportSessionManifest as tt, SessionWireScan as u, ByfServiceConfig as ui, PruningAppliedEvent as un, AgentRecordEvents as ur, JsonValue as ut, CoreRPC as v, McpServerHttpConfig as vi, ToolCallStartedEvent as vn, CompactionResult$1 as vr, RegisterToolPayload as vt, createRPC as w, OAuthRef$1 as wi, TurnEndReason as wn, ToolStoreUpdate as wr, SessionSummary as wt, RPCClient as x, McpServerStdioConfigSchema as xi, ToolProgressEvent as xn, PromptOrigin as xr, ResumeSessionPayload as xt, CoreRPCClient as y, McpServerHttpConfigSchema as yi, ToolListUpdatedEvent as yn, AgentContextData$1 as yr, RemoveByfProviderPayload as yt, SDKRPC as z, ThinkingConfigSchema as zi, ByfErrorOptions as zn, BearerTokenProvider as zr, UpdateSessionMetadataPayload as zt };
|
|
4244
|
+
export { ActivateSkillPayload$1 as ActivateSkillPayload, AgentAPI$1 as AgentAPI, AgentEvent$1 as AgentEvent, SDKAgentRPC$1 as SDKAgentRPC, SDKSessionRPC$1 as SDKSessionRPC, UsageStatus$1 as UsageStatus, ByfConfig$1 as ByfConfig, ByfConfigPatch$1 as ByfConfigPatch, OAuthRef$1 as OAuthRef, AgentConfigData$1 as AgentConfigData, AgentConfigUpdateData$1 as AgentConfigUpdateData, AgentContextData$1 as AgentContextData, ContextMessage$1 as ContextMessage, PermissionApprovalResultRecord$1 as PermissionApprovalResultRecord, PermissionData$1 as PermissionData, PermissionMode$1 as PermissionMode, ToolInfo$1 as ToolInfo, AgentType$1 as AgentType, SessionMeta$1 as SessionMeta, BackgroundTaskInfo$1 as BackgroundTaskInfo };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { t as AGENT_WIRE_PROTOCOL_VERSION } from "./index-DitEeLHK.mjs";
|
|
2
|
-
import { $ as
|
|
3
|
-
export { AGENT_WIRE_PROTOCOL_VERSION, ActivateSkillPayload, Agent, AgentAPI, AgentConfig, type AgentConfigUpdateData, type AgentContextData, AgentEvent, AgentMeta, type AgentRecord, type AgentRecordEvents, type AgentRecordOf, type AgentRecordPersistence, AgentReplayRecord, AgentStatusUpdatedEvent, AgentType, ApprovalDecision, ApprovalRequest, ApprovalResponse, ApprovalScope, AssistantDeltaEvent, BYF_ERROR_INFO, BackgroundConfig, BackgroundConfigSchema, type BackgroundLifecycleEvent, type BackgroundTaskInfo, type BackgroundTaskKind, BackgroundTaskStartedEvent, type BackgroundTaskStatus, BackgroundTaskTerminatedEvent, BackgroundTaskUpdatedEvent, type BearerTokenProvider, BeginCompactionPayload, type BuiltinTool, ByfConfigPatchSchema, ByfConfigSchema, ByfCore, ByfCoreOptions, ByfError, type ByfErrorCode, type ByfErrorInfo, type ByfErrorOptions, type ByfErrorPayload, ByfServiceConfig, ByfServiceConfigSchema, CancelPayload,
|
|
2
|
+
import { $ as CreateSessionPayload, $i as RootLogger, $n as TelemetryProperties, $r as ResolveConfigValueInput, $t as CompactionCancelledEvent, A as QuestionAnswers, Ai as PermissionRuleSchema, An as TurnStepStartedEvent, Ar as LoopToolResultEvent, At as SetThinkingPayload, B as SDKSessionAPI, Bi as WebSearchConfig, Bn as BYF_ERROR_INFO, Br as OAuthTokenProviderResolver, Bt as WithAgentId, C as SDKRPCClient, Ci as ModelAliasSchema, Cn as ToolUpdate, Cr as UserPromptOrigin, Ct as SessionMetadataPatch, D as ApprovalResponse, Di as PermissionConfigSchema, Dn as TurnStepCompletedEvent, Dr as LoopStepBeginEvent, Dt as SetModelPayload, E as ApprovalRequest, Ei as PermissionConfig, En as TurnStartedEvent, Er as LoopRecordedEvent, Et as SetByfConfigPayload, F as QuestionResult, Fi as ProviderTypeSchema, Fn as isByfError, Fr as BackgroundLifecycleEvent, Ft as StopBackgroundPayload, G as AgentAPI, Gi as getDefaultConfig, Gn as SessionSubagentHost, Gr as DeprecatedFieldRule, Gt as ResumedAgentState, H as ToolCallRequest, Hi as WebSearchProviderConfig, Hn as ByfErrorInfo, Hr as analyzeConfig, Ht as proxyWithExtraPayload, I as SDKAPI, Ii as ServicesConfig, In as makeErrorPayload, Ir as BackgroundTaskInfo, It as TextPromptPart, J as ByfConfigPatch, Ji as LogEntry, Jn as Session, Jr as ensureConfigFile, Jt as AssistantDeltaEvent, K as BeginCompactionPayload, Ki as validateConfig, Kn as SubagentHandle, Kr as Finding, Kt as AgentEvent, L as SDKAgentAPI, Li as ServicesConfigSchema, Ln as toByfErrorPayload, Lr as BackgroundTaskKind, Lt as UnregisterToolPayload, M as QuestionOption, Mi as ProviderConfig, Mn as WarningEvent, Mr as ExecutableToolResult, Mt as ShellExecResult, N as QuestionRequest, Ni as ProviderConfigSchema, Nn as ByfErrorPayload, Nr as ExecutableToolSuccessResult, Nt as SkillSummary, O as ApprovalScope, Oi as PermissionModeSchema, On as TurnStepInterruptedEvent, Or as LoopStepEndEvent, Ot as SetModelResult, P as QuestionResponse, Pi as ProviderType, Pn as fromByfErrorPayload, Pr as ToolInputDisplay, Pt as SteerPayload, Q as CoreInfo, Qi as LoggingConfig, Qn as TelemetryClient, Qr as writeConfigFile, Qt as CompactionBlockedEvent, R as SDKAgentRPC, Ri as ThinkingConfig, Rn as ByfError, Rr as BackgroundTaskStatus, Rt as Unsubscribe, S as RPCMethods, Si as ModelAlias, Sn as ToolResultEvent, Sr as USER_PROMPT_ORIGIN, St as SessionAPI, T as ApprovalDecision, Ti as OAuthRefSchema, Tn as TurnEndedEvent, Tr as LoopContentPartEvent, Tt as SetActiveToolsPayload, U as ToolCallResponse, Ui as WebSearchProviderConfigSchema, Un as ErrorCodes, Ur as applyFixes, Ut as AgentReplayRecord, V as SDKSessionRPC, Vi as WebSearchConfigSchema, Vn as ByfErrorCode, Vr as UpdateAnalyzeInput, Vt as WithSessionId, W as ActivateSkillPayload, Wi as formatConfigValidationError, Wn as RuntimeConfig, Wr as DEPRECATED_FIELD_RULES, Wt as ResumeSessionResult, X as CloseSessionPayload, Xi as LogPayload, Xn as SessionMeta, Xr as readConfigFile, Xt as BackgroundTaskTerminatedEvent, Y as CancelPayload, Yi as LogLevel, Yn as SessionConfig, Yr as parseConfigString, Yt as BackgroundTaskStartedEvent, Z as CoreAPI, Zi as Logger, Zn as SessionSkillConfig, Zr as transformTomlData, Zt as BackgroundTaskUpdatedEvent, _ as ByfCoreOptions, _i as McpServerConfigSchema, _n as ToolCallDeltaEvent, _r as CompactionBeginData, _t as ReconnectMcpServerPayload, a as collectFilesRecursive, ai as mergeConfigPatch, an as MCP_OAUTH_AUTHORIZATION_URL_TOOL_UPDATE, ar as BuiltinTool, at as GetBackgroundOutputPathPayload, b as RPCCallOptions, bi as McpServerStdioConfig, bn as ToolListUpdatedReason, br as ContextMessage, bt as RenameSessionPayload, c as WIRE_PROTOCOL_VERSION, ci as ByfConfigPatchSchema, cn as McpServerStatusPayload, cr as UserToolRegistration, ct as JsonObject, d as normalizeTimestampMs, di as ByfServiceConfigSchema, dn as SessionMetaUpdatedEvent, dr as AgentRecordOf, dt as ListSessionsPayload, ea as SessionAttachInput, ei as parseBooleanEnv, en as CompactionCompletedEvent, er as flushDiagnosticLogs, et as EmptyPayload, f as scanSessionWire, fi as HookDefConfig, fn as SkillActivatedEvent, fr as AgentRecordPersistence, ft as McpServerInfo, g as ByfCore, gi as McpServerConfig, gn as ThinkingDeltaEvent, gr as AgentConfigUpdateData, gt as PromptPayload, h as AgentType, hi as LoopControlSchema, hn as SubagentSpawnedEvent, hr as PermissionMode, ht as PromptPart, i as ExtraZipEntry, ii as resolveConfigPath, in as HookResultEvent, ir as resolveGlobalLogPath, it as ForkSessionPayload, j as QuestionItem, ji as PermissionRuleScopeSchema, jn as UsageStatus, jr as ExecutableToolErrorResult, jt as ShellExecPayload, k as QuestionAnswerMethod, ki as PermissionRuleDecisionSchema, kn as TurnStepRetryingEvent, kr as LoopToolCallEvent, kt as SetPermissionPayload, l as buildExportManifest, li as ByfConfigSchema, ln as ObservationMaskingAppliedEvent, lr as AgentRecord, lt as JsonPrimitive, m as AgentConfig, mi as LoopControl, mn as SubagentFailedEvent, mr as PermissionApprovalResultRecord, mt as PromptInput, n as ResolveLoggingInput, ni as ensureByfHome, nn as ErrorEvent, nr as log, nt as ExportSessionPayload, o as writeExportZip, oi as BackgroundConfig, on as McpOAuthAuthorizationUrlUpdateData, or as ToolInfo, ot as GetBackgroundOutputPayload, p as Agent, pi as HookDefSchema, pn as SubagentCompletedEvent, pr as UsageRecordScope, pt as McpStartupMetrics, q as ByfConfig, qi as LogContext, qn as AgentMeta, qr as configToTomlData, qt as AgentStatusUpdatedEvent, r as resolveLoggingConfig, ri as resolveByfHome, rn as Event, rr as redact, rt as ExportSessionResult, s as exportSessionDirectory, si as BackgroundConfigSchema, sn as McpServerStatusEvent, sr as ToolSource, st as GetBackgroundPayload, t as buildPromptPlan, ta as SessionLogHandle, ti as resolveConfigValue, tn as CompactionStartedEvent, tr as getRootLogger, tt as ExportSessionManifest, u as SessionWireScan, ui as ByfServiceConfig, un as PruningAppliedEvent, ur as AgentRecordEvents, ut as JsonValue, v as CoreRPC, vi as McpServerHttpConfig, vn as ToolCallStartedEvent, vr as CompactionResult, vt as RegisterToolPayload, w as createRPC, wi as OAuthRef, wn as TurnEndReason, wr as ToolStoreUpdate, wt as SessionSummary, x as RPCClient, xi as McpServerStdioConfigSchema, xn as ToolProgressEvent, xr as PromptOrigin, xt as ResumeSessionPayload, y as CoreRPCClient, yi as McpServerHttpConfigSchema, yn as ToolListUpdatedEvent, yr as AgentContextData, yt as RemoveByfProviderPayload, z as SDKRPC, zi as ThinkingConfigSchema, zn as ByfErrorOptions, zr as BearerTokenProvider, zt as UpdateSessionMetadataPayload } from "./index-CZA_2ux5.mjs";
|
|
3
|
+
export { AGENT_WIRE_PROTOCOL_VERSION, ActivateSkillPayload, Agent, AgentAPI, AgentConfig, type AgentConfigUpdateData, type AgentContextData, AgentEvent, AgentMeta, type AgentRecord, type AgentRecordEvents, type AgentRecordOf, type AgentRecordPersistence, AgentReplayRecord, AgentStatusUpdatedEvent, AgentType, ApprovalDecision, ApprovalRequest, ApprovalResponse, ApprovalScope, AssistantDeltaEvent, BYF_ERROR_INFO, BackgroundConfig, BackgroundConfigSchema, type BackgroundLifecycleEvent, type BackgroundTaskInfo, type BackgroundTaskKind, BackgroundTaskStartedEvent, type BackgroundTaskStatus, BackgroundTaskTerminatedEvent, BackgroundTaskUpdatedEvent, type BearerTokenProvider, BeginCompactionPayload, type BuiltinTool, ByfConfigPatchSchema, ByfConfigSchema, ByfCore, ByfCoreOptions, ByfError, type ByfErrorCode, type ByfErrorInfo, type ByfErrorOptions, type ByfErrorPayload, ByfServiceConfig, ByfServiceConfigSchema, CancelPayload, CloseSessionPayload, type CompactionBeginData, CompactionBlockedEvent, CompactionCancelledEvent, CompactionCompletedEvent, CompactionResult, CompactionStartedEvent, type ContextMessage, CoreAPI, CoreInfo, CoreRPC, CoreRPCClient, CreateSessionPayload, DEPRECATED_FIELD_RULES, DeprecatedFieldRule, EmptyPayload, ErrorCodes, ErrorEvent, Event, type ExecutableToolErrorResult, type ExecutableToolResult, type ExecutableToolSuccessResult, ExportSessionManifest, ExportSessionPayload, ExportSessionResult, ExtraZipEntry, Finding, ForkSessionPayload, GetBackgroundOutputPathPayload, GetBackgroundOutputPayload, GetBackgroundPayload, HookDefConfig, HookDefSchema, HookResultEvent, JsonObject, JsonPrimitive, JsonValue, ListSessionsPayload, type LogContext, type LogEntry, type LogLevel, type LogPayload, type Logger, type LoggingConfig, type LoopContentPartEvent, LoopControl, LoopControlSchema, type LoopRecordedEvent, type LoopStepBeginEvent, type LoopStepEndEvent, type LoopToolCallEvent, type LoopToolResultEvent, MCP_OAUTH_AUTHORIZATION_URL_TOOL_UPDATE, McpOAuthAuthorizationUrlUpdateData, McpServerConfig, McpServerConfigSchema, McpServerHttpConfig, McpServerHttpConfigSchema, McpServerInfo, McpServerStatusEvent, McpServerStatusPayload, McpServerStdioConfig, McpServerStdioConfigSchema, McpStartupMetrics, ModelAlias, ModelAliasSchema, OAuthRef, OAuthRefSchema, type OAuthTokenProviderResolver, ObservationMaskingAppliedEvent, type PermissionApprovalResultRecord, PermissionConfig, PermissionConfigSchema, type PermissionMode, PermissionModeSchema, PermissionRuleDecisionSchema, PermissionRuleSchema, PermissionRuleScopeSchema, PromptInput, type PromptOrigin, PromptPart, PromptPayload, ProviderConfig, ProviderConfigSchema, ProviderType, ProviderTypeSchema, PruningAppliedEvent, QuestionAnswerMethod, QuestionAnswers, QuestionItem, QuestionOption, QuestionRequest, QuestionResponse, QuestionResult, RPCCallOptions, RPCClient, RPCMethods, ReconnectMcpServerPayload, RegisterToolPayload, RemoveByfProviderPayload, RenameSessionPayload, ResolveConfigValueInput, type ResolveLoggingInput, ResumeSessionPayload, ResumeSessionResult, ResumedAgentState, type RootLogger, type RuntimeConfig, SDKAPI, SDKAgentAPI, SDKAgentRPC, SDKRPC, SDKRPCClient, SDKSessionAPI, SDKSessionRPC, ServicesConfig, ServicesConfigSchema, Session, SessionAPI, type SessionAttachInput, SessionConfig, type SessionLogHandle, SessionMeta, SessionMetaUpdatedEvent, SessionMetadataPatch, SessionSkillConfig, SessionSubagentHost, SessionSummary, SessionWireScan, SetActiveToolsPayload, SetByfConfigPayload, SetModelPayload, SetModelResult, SetPermissionPayload, SetThinkingPayload, ShellExecPayload, ShellExecResult, SkillActivatedEvent, SkillSummary, SteerPayload, StopBackgroundPayload, SubagentCompletedEvent, SubagentFailedEvent, SubagentHandle, SubagentSpawnedEvent, type TelemetryClient, type TelemetryProperties, TextPromptPart, ThinkingConfig, ThinkingConfigSchema, ThinkingDeltaEvent, ToolCallDeltaEvent, ToolCallRequest, ToolCallResponse, ToolCallStartedEvent, type ToolInfo, type ToolInputDisplay, ToolListUpdatedEvent, ToolListUpdatedReason, ToolProgressEvent, ToolResultEvent, type ToolSource, type ToolStoreUpdate, ToolUpdate, TurnEndReason, TurnEndedEvent, TurnStartedEvent, TurnStepCompletedEvent, TurnStepInterruptedEvent, TurnStepRetryingEvent, TurnStepStartedEvent, USER_PROMPT_ORIGIN, UnregisterToolPayload, Unsubscribe, UpdateAnalyzeInput, UpdateSessionMetadataPayload, type UsageRecordScope, UsageStatus, type UserPromptOrigin, type UserToolRegistration, WIRE_PROTOCOL_VERSION, WarningEvent, WebSearchConfig, WebSearchConfigSchema, WebSearchProviderConfig, WebSearchProviderConfigSchema, WithAgentId, WithSessionId, analyzeConfig, applyFixes, buildExportManifest, buildPromptPlan, collectFilesRecursive, configToTomlData, createRPC, ensureByfHome, ensureConfigFile, exportSessionDirectory, flushDiagnosticLogs, formatConfigValidationError, fromByfErrorPayload, getDefaultConfig, getRootLogger, isByfError, log, makeErrorPayload, mergeConfigPatch, normalizeTimestampMs, parseBooleanEnv, parseConfigString, proxyWithExtraPayload, readConfigFile, redact, resolveByfHome, resolveConfigPath, resolveConfigValue, resolveGlobalLogPath, resolveLoggingConfig, scanSessionWire, toByfErrorPayload, transformTomlData, validateConfig, writeConfigFile, writeExportZip };
|