@a5c-ai/babysitter-sdk 0.0.187-staging.9fa55ea5 → 0.0.187-staging.cbc8da4a
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/harness/agenticTools.d.ts +3 -1
- package/dist/harness/agenticTools.d.ts.map +1 -1
- package/dist/harness/agenticTools.js +313 -12
- package/dist/runtime/createRun.d.ts.map +1 -1
- package/dist/runtime/createRun.js +11 -0
- package/dist/runtime/orchestrateIteration.d.ts.map +1 -1
- package/dist/runtime/orchestrateIteration.js +10 -0
- package/dist/runtime/schemaValidator.d.ts +16 -0
- package/dist/runtime/schemaValidator.d.ts.map +1 -0
- package/dist/runtime/schemaValidator.js +92 -0
- package/dist/runtime/types.d.ts +2 -0
- package/dist/runtime/types.d.ts.map +1 -1
- package/dist/storage/createRunDir.d.ts.map +1 -1
- package/dist/storage/createRunDir.js +2 -0
- package/dist/storage/types.d.ts +4 -0
- package/dist/storage/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Reusable agentic tool definitions for Pi sessions.
|
|
3
3
|
*
|
|
4
|
-
* Provides a factory that builds a standard set of
|
|
4
|
+
* Provides a factory that builds a standard set of 16 tools (file ops,
|
|
5
5
|
* execution, browser/web, user interaction, utilities) that can be
|
|
6
6
|
* injected into any Pi session via `PiSessionOptions.customTools`.
|
|
7
7
|
*
|
|
@@ -37,6 +37,8 @@ interface ToolResult {
|
|
|
37
37
|
}
|
|
38
38
|
/** Names of all agentic tools produced by `createAgenticToolDefinitions`. */
|
|
39
39
|
export declare const AGENTIC_TOOL_NAMES: string[];
|
|
40
|
+
/** Reset run-scoped config (exported for test isolation). */
|
|
41
|
+
export declare function resetRunScopedConfig(): void;
|
|
40
42
|
/**
|
|
41
43
|
* Build the standard set of agentic tool definitions.
|
|
42
44
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agenticTools.d.ts","sourceRoot":"","sources":["../../src/harness/agenticTools.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAKH,OAAO,EAAQ,KAAK,OAAO,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"agenticTools.d.ts","sourceRoot":"","sources":["../../src/harness/agenticTools.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAKH,OAAO,EAAQ,KAAK,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAOvD,yEAAyE;AACzE,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,CACP,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,MAAM,CAAC,EAAE,WAAW,EACpB,QAAQ,CAAC,EAAE,OAAO,EAClB,WAAW,CAAC,EAAE,OAAO,KAClB,OAAO,CAAC,UAAU,CAAC,GAAG,UAAU,CAAC;CACvC;AAED,oDAAoD;AACpD,MAAM,WAAW,kBAAkB;IACjC,+EAA+E;IAC/E,SAAS,EAAE,MAAM,CAAC;IAClB,6DAA6D;IAC7D,WAAW,EAAE,OAAO,CAAC;IACrB,sEAAsE;IACtE,sBAAsB,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAClE,0DAA0D;IAC1D,SAAS,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;CACzD;AAED,kCAAkC;AAClC,UAAU,UAAU;IAClB,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAChD;AAMD,6EAA6E;AAC7E,eAAO,MAAM,kBAAkB,EAAE,MAAM,EAkBtC,CAAC;AAsEF,6DAA6D;AAC7D,wBAAgB,oBAAoB,IAAI,IAAI,CAE3C;AAkOD;;;;GAIG;AACH,wBAAgB,4BAA4B,CAC1C,OAAO,EAAE,kBAAkB,GAC1B,oBAAoB,EAAE,CA0nCxB"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Reusable agentic tool definitions for Pi sessions.
|
|
4
4
|
*
|
|
5
|
-
* Provides a factory that builds a standard set of
|
|
5
|
+
* Provides a factory that builds a standard set of 16 tools (file ops,
|
|
6
6
|
* execution, browser/web, user interaction, utilities) that can be
|
|
7
7
|
* injected into any Pi session via `PiSessionOptions.customTools`.
|
|
8
8
|
*
|
|
@@ -43,11 +43,13 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
43
43
|
})();
|
|
44
44
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
45
|
exports.AGENTIC_TOOL_NAMES = void 0;
|
|
46
|
+
exports.resetRunScopedConfig = resetRunScopedConfig;
|
|
46
47
|
exports.createAgenticToolDefinitions = createAgenticToolDefinitions;
|
|
47
48
|
const fs = __importStar(require("node:fs"));
|
|
48
49
|
const path = __importStar(require("node:path"));
|
|
49
50
|
const childProcess = __importStar(require("node:child_process"));
|
|
50
51
|
const typebox_1 = require("@sinclair/typebox");
|
|
52
|
+
const defaults_1 = require("../config/defaults");
|
|
51
53
|
// ---------------------------------------------------------------------------
|
|
52
54
|
// Constants
|
|
53
55
|
// ---------------------------------------------------------------------------
|
|
@@ -69,10 +71,127 @@ exports.AGENTIC_TOOL_NAMES = [
|
|
|
69
71
|
"ast_edit",
|
|
70
72
|
"render_mermaid",
|
|
71
73
|
"notebook",
|
|
74
|
+
"config",
|
|
72
75
|
];
|
|
73
76
|
const DEFAULT_BASH_TIMEOUT = 120_000;
|
|
74
77
|
const DEFAULT_SEARCH_TIMEOUT = 30_000;
|
|
75
78
|
const MAX_READ_LINES = 10_000;
|
|
79
|
+
// ---------------------------------------------------------------------------
|
|
80
|
+
// Run-scoped config state (GAP-TOOLS-033)
|
|
81
|
+
// ---------------------------------------------------------------------------
|
|
82
|
+
/** Extended config keys beyond BabysitterConfig. */
|
|
83
|
+
const EXTENDED_CONFIG_KEYS = new Set([
|
|
84
|
+
"model",
|
|
85
|
+
"provider",
|
|
86
|
+
"breakpoint.autoApproveAfterN",
|
|
87
|
+
"breakpoint.presentAlwaysApprove",
|
|
88
|
+
]);
|
|
89
|
+
/** All valid top-level BabysitterConfig key names. */
|
|
90
|
+
const BABYSITTER_CONFIG_KEYS = new Set([
|
|
91
|
+
"runsDir",
|
|
92
|
+
"maxIterations",
|
|
93
|
+
"qualityThreshold",
|
|
94
|
+
"timeout",
|
|
95
|
+
"logLevel",
|
|
96
|
+
"allowSecretLogs",
|
|
97
|
+
"hookTimeout",
|
|
98
|
+
"nodeTaskTimeout",
|
|
99
|
+
"clockStepMs",
|
|
100
|
+
"clockStartMs",
|
|
101
|
+
"layoutVersion",
|
|
102
|
+
"largeResultPreviewLimit",
|
|
103
|
+
]);
|
|
104
|
+
/** Expected types for standard BabysitterConfig keys. */
|
|
105
|
+
const CONFIG_KEY_TYPES = {
|
|
106
|
+
runsDir: "string",
|
|
107
|
+
maxIterations: "number",
|
|
108
|
+
qualityThreshold: "number",
|
|
109
|
+
timeout: "number",
|
|
110
|
+
logLevel: "string",
|
|
111
|
+
allowSecretLogs: "boolean",
|
|
112
|
+
hookTimeout: "number",
|
|
113
|
+
nodeTaskTimeout: "number",
|
|
114
|
+
clockStepMs: "number",
|
|
115
|
+
clockStartMs: "number",
|
|
116
|
+
layoutVersion: "string",
|
|
117
|
+
largeResultPreviewLimit: "number",
|
|
118
|
+
model: "string",
|
|
119
|
+
provider: "string",
|
|
120
|
+
};
|
|
121
|
+
/** Valid log level values. */
|
|
122
|
+
const VALID_LOG_LEVELS = new Set(["debug", "info", "warn", "error", "silent"]);
|
|
123
|
+
/** Map of config key to its BABYSITTER_* env var name (for global scope set). */
|
|
124
|
+
const CONFIG_KEY_TO_ENV = {
|
|
125
|
+
runsDir: defaults_1.CONFIG_ENV_VARS.RUNS_DIR,
|
|
126
|
+
maxIterations: defaults_1.CONFIG_ENV_VARS.MAX_ITERATIONS,
|
|
127
|
+
qualityThreshold: defaults_1.CONFIG_ENV_VARS.QUALITY_THRESHOLD,
|
|
128
|
+
timeout: defaults_1.CONFIG_ENV_VARS.TIMEOUT,
|
|
129
|
+
logLevel: defaults_1.CONFIG_ENV_VARS.LOG_LEVEL,
|
|
130
|
+
allowSecretLogs: defaults_1.CONFIG_ENV_VARS.ALLOW_SECRET_LOGS,
|
|
131
|
+
hookTimeout: defaults_1.CONFIG_ENV_VARS.HOOK_TIMEOUT,
|
|
132
|
+
nodeTaskTimeout: defaults_1.CONFIG_ENV_VARS.NODE_TASK_TIMEOUT,
|
|
133
|
+
};
|
|
134
|
+
/** Run-scoped overrides — cleared on reset. */
|
|
135
|
+
const _runScopedConfig = new Map();
|
|
136
|
+
/** Reset run-scoped config (exported for test isolation). */
|
|
137
|
+
function resetRunScopedConfig() {
|
|
138
|
+
_runScopedConfig.clear();
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Check if a key is a valid config key (standard, extended, compression.*, or breakpoint.*).
|
|
142
|
+
*/
|
|
143
|
+
function isValidConfigKey(key) {
|
|
144
|
+
if (BABYSITTER_CONFIG_KEYS.has(key))
|
|
145
|
+
return true;
|
|
146
|
+
if (EXTENDED_CONFIG_KEYS.has(key))
|
|
147
|
+
return true;
|
|
148
|
+
if (key.startsWith("compression."))
|
|
149
|
+
return true;
|
|
150
|
+
if (key.startsWith("breakpoint."))
|
|
151
|
+
return true;
|
|
152
|
+
return false;
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Validate value type for a config key. Returns error message or null if valid.
|
|
156
|
+
*/
|
|
157
|
+
function validateConfigValue(key, value) {
|
|
158
|
+
const expectedType = CONFIG_KEY_TYPES[key];
|
|
159
|
+
if (expectedType && typeof value !== expectedType) {
|
|
160
|
+
return `Expected '${key}' to be ${expectedType}, got ${typeof value}.`;
|
|
161
|
+
}
|
|
162
|
+
// Specific validation for logLevel
|
|
163
|
+
if (key === "logLevel" && typeof value === "string" && !VALID_LOG_LEVELS.has(value)) {
|
|
164
|
+
return `Invalid logLevel '${value}'. Must be one of: ${[...VALID_LOG_LEVELS].join(", ")}.`;
|
|
165
|
+
}
|
|
166
|
+
// Number keys should be positive
|
|
167
|
+
if (expectedType === "number" && typeof value === "number") {
|
|
168
|
+
if (key !== "clockStartMs" && value <= 0) {
|
|
169
|
+
return `'${key}' must be a positive number.`;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
return null;
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Get a single config value, merging defaults + env + run-scoped.
|
|
176
|
+
*/
|
|
177
|
+
function getConfigValue(key) {
|
|
178
|
+
if (_runScopedConfig.has(key))
|
|
179
|
+
return _runScopedConfig.get(key);
|
|
180
|
+
if (BABYSITTER_CONFIG_KEYS.has(key)) {
|
|
181
|
+
const cfg = (0, defaults_1.getConfig)();
|
|
182
|
+
return cfg[key];
|
|
183
|
+
}
|
|
184
|
+
return undefined;
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Get the default value for a key.
|
|
188
|
+
*/
|
|
189
|
+
function getConfigDefault(key) {
|
|
190
|
+
if (BABYSITTER_CONFIG_KEYS.has(key)) {
|
|
191
|
+
return defaults_1.DEFAULTS[key];
|
|
192
|
+
}
|
|
193
|
+
return undefined;
|
|
194
|
+
}
|
|
76
195
|
/**
|
|
77
196
|
* Resolve the ripgrep binary path.
|
|
78
197
|
* Prefers the @vscode/ripgrep package (optionalDependency) so that `rg` is
|
|
@@ -333,23 +452,50 @@ function createAgenticToolDefinitions(options) {
|
|
|
333
452
|
limit: typebox_1.Type.Optional(typebox_1.Type.Number({ description: "Max results" })),
|
|
334
453
|
offset: typebox_1.Type.Optional(typebox_1.Type.Number({ description: "Skip first N results" })),
|
|
335
454
|
multiline: typebox_1.Type.Optional(typebox_1.Type.Boolean({ description: "Enable multiline mode" })),
|
|
455
|
+
output_mode: typebox_1.Type.Optional(typebox_1.Type.Union([
|
|
456
|
+
typebox_1.Type.Literal("content"),
|
|
457
|
+
typebox_1.Type.Literal("files_with_matches"),
|
|
458
|
+
typebox_1.Type.Literal("count"),
|
|
459
|
+
], { description: "Output mode: 'content' (matching lines), 'files_with_matches' (file paths, default), 'count' (match counts)" })),
|
|
460
|
+
before_context: typebox_1.Type.Optional(typebox_1.Type.Number({ description: "Lines before each match (rg -B)" })),
|
|
461
|
+
after_context: typebox_1.Type.Optional(typebox_1.Type.Number({ description: "Lines after each match (rg -A)" })),
|
|
462
|
+
line_numbers: typebox_1.Type.Optional(typebox_1.Type.Boolean({ description: "Show line numbers in content mode (default true)" })),
|
|
463
|
+
head_limit: typebox_1.Type.Optional(typebox_1.Type.Number({ description: "Max output lines (default 250)" })),
|
|
336
464
|
}),
|
|
337
465
|
execute: async (_toolCallId, params) => {
|
|
338
466
|
const searchPath = params.path
|
|
339
467
|
? resolveSafe(workspace, String(params.path))
|
|
340
468
|
: workspace;
|
|
341
|
-
const
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
"
|
|
345
|
-
|
|
346
|
-
|
|
469
|
+
const mode = params.output_mode ?? "files_with_matches";
|
|
470
|
+
const args = ["--color", "never"];
|
|
471
|
+
if (mode === "files_with_matches") {
|
|
472
|
+
args.push("-l");
|
|
473
|
+
}
|
|
474
|
+
else if (mode === "count") {
|
|
475
|
+
args.push("-c");
|
|
476
|
+
}
|
|
477
|
+
else {
|
|
478
|
+
// content mode
|
|
479
|
+
args.push("--no-heading");
|
|
480
|
+
if (params.line_numbers === false) {
|
|
481
|
+
args.push("--no-line-number");
|
|
482
|
+
}
|
|
483
|
+
else {
|
|
484
|
+
args.push("--line-number");
|
|
485
|
+
}
|
|
486
|
+
if (params.before_context != null)
|
|
487
|
+
args.push("-B", String(params.before_context));
|
|
488
|
+
if (params.after_context != null)
|
|
489
|
+
args.push("-A", String(params.after_context));
|
|
490
|
+
}
|
|
347
491
|
if (params.i)
|
|
348
492
|
args.push("-i");
|
|
349
493
|
if (params.multiline)
|
|
350
494
|
args.push("-U", "--multiline-dotall");
|
|
351
|
-
|
|
495
|
+
const hasSplitContext = params.before_context != null || params.after_context != null;
|
|
496
|
+
if (mode === "content" && params.context != null && !hasSplitContext) {
|
|
352
497
|
args.push("-C", String(params.context));
|
|
498
|
+
}
|
|
353
499
|
if (params.glob)
|
|
354
500
|
args.push("--glob", String(params.glob));
|
|
355
501
|
if (params.type)
|
|
@@ -360,11 +506,18 @@ function createAgenticToolDefinitions(options) {
|
|
|
360
506
|
timeout: DEFAULT_SEARCH_TIMEOUT,
|
|
361
507
|
});
|
|
362
508
|
let output = result.stdout;
|
|
509
|
+
// Apply head_limit (default 250, 0 = unlimited) before offset/limit
|
|
510
|
+
const rawHeadLimit = params.head_limit;
|
|
511
|
+
const headLimit = rawHeadLimit === 0 ? Infinity : (rawHeadLimit ?? 250);
|
|
512
|
+
const lines = output.split("\n");
|
|
513
|
+
const headLimited = lines.slice(0, headLimit);
|
|
363
514
|
if (params.offset || params.limit) {
|
|
364
|
-
const lines = output.split("\n");
|
|
365
515
|
const off = params.offset ?? 0;
|
|
366
516
|
const lim = params.limit ?? 250;
|
|
367
|
-
output =
|
|
517
|
+
output = headLimited.slice(off, off + lim).join("\n");
|
|
518
|
+
}
|
|
519
|
+
else {
|
|
520
|
+
output = headLimited.join("\n");
|
|
368
521
|
}
|
|
369
522
|
if (!output.trim() && result.exitCode !== 0 && result.stderr) {
|
|
370
523
|
return errorResult(result.stderr.trim());
|
|
@@ -618,7 +771,11 @@ function createAgenticToolDefinitions(options) {
|
|
|
618
771
|
description: "Ask the user one or more structured questions. Delegates to the injected askUserQuestionHandler.",
|
|
619
772
|
promptSnippet: "Ask the user focused clarification questions when you need missing requirements.",
|
|
620
773
|
parameters: typebox_1.Type.Object({
|
|
621
|
-
|
|
774
|
+
mode: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.Literal("simple"), typebox_1.Type.Literal("structured")], {
|
|
775
|
+
description: "Interaction mode: 'simple' (single question, free-text) or 'structured' (multi-question with options). Default: 'structured'",
|
|
776
|
+
})),
|
|
777
|
+
question: typebox_1.Type.Optional(typebox_1.Type.String({ description: "Single question text (required for simple mode)" })),
|
|
778
|
+
questions: typebox_1.Type.Optional(typebox_1.Type.Array(typebox_1.Type.Object({
|
|
622
779
|
id: typebox_1.Type.String({ description: "Unique question identifier" }),
|
|
623
780
|
question: typebox_1.Type.String({ description: "Question text" }),
|
|
624
781
|
options: typebox_1.Type.Optional(typebox_1.Type.Array(typebox_1.Type.Object({
|
|
@@ -626,13 +783,37 @@ function createAgenticToolDefinitions(options) {
|
|
|
626
783
|
}))),
|
|
627
784
|
multi: typebox_1.Type.Optional(typebox_1.Type.Boolean({ description: "Allow multiple selections" })),
|
|
628
785
|
recommended: typebox_1.Type.Optional(typebox_1.Type.Number({ description: "Index of recommended option" })),
|
|
629
|
-
}), { description: "Questions to ask the user" }),
|
|
786
|
+
}), { description: "Questions to ask the user (required for structured mode)" })),
|
|
630
787
|
}),
|
|
631
788
|
execute: async (_toolCallId, params) => {
|
|
632
789
|
if (!options.interactive || !options.askUserQuestionHandler) {
|
|
633
790
|
return errorResult("Not in interactive mode or no askUserQuestionHandler provided.");
|
|
634
791
|
}
|
|
792
|
+
const mode = params.mode ?? "structured";
|
|
793
|
+
if (mode === "simple") {
|
|
794
|
+
const questionText = params.question;
|
|
795
|
+
if (!questionText) {
|
|
796
|
+
return errorResult("Error: 'question' param is required when mode='simple'.");
|
|
797
|
+
}
|
|
798
|
+
const mapped = {
|
|
799
|
+
questions: [{
|
|
800
|
+
id: "_simple",
|
|
801
|
+
text: questionText,
|
|
802
|
+
options: undefined,
|
|
803
|
+
allowMultiple: false,
|
|
804
|
+
recommendedIndex: undefined,
|
|
805
|
+
}],
|
|
806
|
+
};
|
|
807
|
+
const response = await options.askUserQuestionHandler(mapped);
|
|
808
|
+
const answers = response?.answers;
|
|
809
|
+
const answer = answers?.[0]?.answer ?? "";
|
|
810
|
+
return ok(answer);
|
|
811
|
+
}
|
|
812
|
+
// Structured mode
|
|
635
813
|
const questions = params.questions;
|
|
814
|
+
if (!questions) {
|
|
815
|
+
return errorResult("Error: 'questions' param is required when mode='structured'.");
|
|
816
|
+
}
|
|
636
817
|
// Map to AskUserQuestion schema
|
|
637
818
|
const mapped = {
|
|
638
819
|
questions: questions.map((q) => ({
|
|
@@ -915,6 +1096,126 @@ function createAgenticToolDefinitions(options) {
|
|
|
915
1096
|
}
|
|
916
1097
|
},
|
|
917
1098
|
}),
|
|
1099
|
+
// -----------------------------------------------------------------------
|
|
1100
|
+
// config — runtime configuration tool (GAP-TOOLS-033)
|
|
1101
|
+
// -----------------------------------------------------------------------
|
|
1102
|
+
wrap({
|
|
1103
|
+
name: "config",
|
|
1104
|
+
label: "Runtime Config",
|
|
1105
|
+
description: "Read and modify babysitter configuration at runtime. " +
|
|
1106
|
+
"Supports get/set/list/reset actions for standard config keys " +
|
|
1107
|
+
"(maxIterations, timeout, logLevel, etc.), model/provider selection, " +
|
|
1108
|
+
"and compression settings. Changes are run-scoped by default.",
|
|
1109
|
+
parameters: typebox_1.Type.Object({
|
|
1110
|
+
action: typebox_1.Type.Union([
|
|
1111
|
+
typebox_1.Type.Literal("get"),
|
|
1112
|
+
typebox_1.Type.Literal("set"),
|
|
1113
|
+
typebox_1.Type.Literal("list"),
|
|
1114
|
+
typebox_1.Type.Literal("reset"),
|
|
1115
|
+
], { description: "Action to perform: get, set, list, or reset" }),
|
|
1116
|
+
key: typebox_1.Type.Optional(typebox_1.Type.String({ description: "Config key path (dot notation for nested, e.g. 'compression.enabled')" })),
|
|
1117
|
+
value: typebox_1.Type.Optional(typebox_1.Type.Unknown({ description: "New value for set action" })),
|
|
1118
|
+
scope: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.Literal("run"), typebox_1.Type.Literal("global")], {
|
|
1119
|
+
description: "Scope: 'run' (default, in-memory) or 'global' (env vars)",
|
|
1120
|
+
})),
|
|
1121
|
+
}),
|
|
1122
|
+
execute: (_toolCallId, params) => {
|
|
1123
|
+
const action = params.action;
|
|
1124
|
+
if (!action) {
|
|
1125
|
+
return errorResult("'action' parameter is required (get, set, list, reset).");
|
|
1126
|
+
}
|
|
1127
|
+
const key = params.key;
|
|
1128
|
+
const value = params.value;
|
|
1129
|
+
const scope = params.scope ?? "run";
|
|
1130
|
+
switch (action) {
|
|
1131
|
+
case "get": {
|
|
1132
|
+
if (!key) {
|
|
1133
|
+
// Return full merged config
|
|
1134
|
+
const cfg = (0, defaults_1.getConfig)();
|
|
1135
|
+
const merged = { ...cfg };
|
|
1136
|
+
// Add extended keys
|
|
1137
|
+
for (const ek of EXTENDED_CONFIG_KEYS) {
|
|
1138
|
+
merged[ek] = getConfigValue(ek);
|
|
1139
|
+
}
|
|
1140
|
+
// Add run-scoped overrides
|
|
1141
|
+
for (const [k, v] of _runScopedConfig) {
|
|
1142
|
+
merged[k] = v;
|
|
1143
|
+
}
|
|
1144
|
+
return jsonResult(merged);
|
|
1145
|
+
}
|
|
1146
|
+
if (!isValidConfigKey(key)) {
|
|
1147
|
+
return errorResult(`Error: Unknown config key '${key}'.`);
|
|
1148
|
+
}
|
|
1149
|
+
return jsonResult({ key, value: getConfigValue(key) });
|
|
1150
|
+
}
|
|
1151
|
+
case "set": {
|
|
1152
|
+
if (!key) {
|
|
1153
|
+
return errorResult("Error: 'key' parameter is required for set action.");
|
|
1154
|
+
}
|
|
1155
|
+
if (value === undefined) {
|
|
1156
|
+
return errorResult("Error: 'value' parameter is required for set action.");
|
|
1157
|
+
}
|
|
1158
|
+
if (!isValidConfigKey(key)) {
|
|
1159
|
+
return errorResult(`Error: Unknown config key '${key}'.`);
|
|
1160
|
+
}
|
|
1161
|
+
// Type validation
|
|
1162
|
+
const typeError = validateConfigValue(key, value);
|
|
1163
|
+
if (typeError) {
|
|
1164
|
+
return errorResult(`Error: ${typeError}`);
|
|
1165
|
+
}
|
|
1166
|
+
if (scope === "global") {
|
|
1167
|
+
// Set env var for standard keys
|
|
1168
|
+
const envKey = CONFIG_KEY_TO_ENV[key];
|
|
1169
|
+
if (envKey) {
|
|
1170
|
+
process.env[envKey] = String(value);
|
|
1171
|
+
}
|
|
1172
|
+
else {
|
|
1173
|
+
// For extended/compression keys, store as BABYSITTER_ env var
|
|
1174
|
+
const envName = "BABYSITTER_" + key.replace(/\./g, "_").toUpperCase();
|
|
1175
|
+
process.env[envName] = String(value);
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
// Always store in run-scoped map too
|
|
1179
|
+
_runScopedConfig.set(key, value);
|
|
1180
|
+
return ok(`Set '${key}' to ${JSON.stringify(value)} (scope: ${scope}).`);
|
|
1181
|
+
}
|
|
1182
|
+
case "list": {
|
|
1183
|
+
const entries = {};
|
|
1184
|
+
// Standard keys
|
|
1185
|
+
for (const k of BABYSITTER_CONFIG_KEYS) {
|
|
1186
|
+
entries[k] = {
|
|
1187
|
+
current: getConfigValue(k),
|
|
1188
|
+
default: getConfigDefault(k),
|
|
1189
|
+
};
|
|
1190
|
+
}
|
|
1191
|
+
// Extended keys
|
|
1192
|
+
for (const k of EXTENDED_CONFIG_KEYS) {
|
|
1193
|
+
entries[k] = {
|
|
1194
|
+
current: getConfigValue(k),
|
|
1195
|
+
default: getConfigDefault(k),
|
|
1196
|
+
};
|
|
1197
|
+
}
|
|
1198
|
+
// Include any run-scoped keys (compression.*, breakpoint.*) that have been set
|
|
1199
|
+
for (const [k, v] of _runScopedConfig) {
|
|
1200
|
+
if (!entries[k]) {
|
|
1201
|
+
entries[k] = { current: v, default: undefined };
|
|
1202
|
+
}
|
|
1203
|
+
}
|
|
1204
|
+
return jsonResult(entries);
|
|
1205
|
+
}
|
|
1206
|
+
case "reset": {
|
|
1207
|
+
if (key) {
|
|
1208
|
+
_runScopedConfig.delete(key);
|
|
1209
|
+
return ok(`Reset '${key}' to default.`);
|
|
1210
|
+
}
|
|
1211
|
+
_runScopedConfig.clear();
|
|
1212
|
+
return ok("Reset all config to defaults.");
|
|
1213
|
+
}
|
|
1214
|
+
default:
|
|
1215
|
+
return errorResult(`Error: Unknown action '${action}'. Use get, set, list, or reset.`);
|
|
1216
|
+
}
|
|
1217
|
+
},
|
|
1218
|
+
}),
|
|
918
1219
|
];
|
|
919
1220
|
return tools;
|
|
920
1221
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createRun.d.ts","sourceRoot":"","sources":["../../src/runtime/createRun.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"createRun.d.ts","sourceRoot":"","sources":["../../src/runtime/createRun.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAKjE,wBAAsB,SAAS,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,eAAe,CAAC,CAsGnF"}
|
|
@@ -12,6 +12,8 @@ const lock_1 = require("../storage/lock");
|
|
|
12
12
|
const paths_1 = require("../storage/paths");
|
|
13
13
|
const ulids_1 = require("../storage/ulids");
|
|
14
14
|
const runtime_1 = require("./hooks/runtime");
|
|
15
|
+
const schemaValidator_1 = require("./schemaValidator");
|
|
16
|
+
const exceptions_1 = require("./exceptions");
|
|
15
17
|
async function createRun(options) {
|
|
16
18
|
const runId = options.runId ?? (0, ulids_1.nextUlid)();
|
|
17
19
|
validateRunId(runId);
|
|
@@ -21,6 +23,13 @@ async function createRun(options) {
|
|
|
21
23
|
const requestId = options.request ?? options.process.processId ?? runId;
|
|
22
24
|
const providedProof = typeof options.metadata?.completionProof === "string" ? options.metadata.completionProof : undefined;
|
|
23
25
|
const completionProof = providedProof ?? crypto_1.default.randomBytes(16).toString("hex");
|
|
26
|
+
// Validate inputs against inputSchema if both are provided
|
|
27
|
+
if (options.inputSchema && options.inputs !== undefined) {
|
|
28
|
+
const validation = (0, schemaValidator_1.validateAgainstSchema)(options.inputs, options.inputSchema);
|
|
29
|
+
if (!validation.valid) {
|
|
30
|
+
throw new exceptions_1.BabysitterRuntimeError("InputValidationError", `Input validation failed against inputSchema: ${validation.errors.join("; ")}`);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
24
33
|
const extraMetadata = {
|
|
25
34
|
...options.metadata,
|
|
26
35
|
completionProof,
|
|
@@ -38,6 +47,8 @@ async function createRun(options) {
|
|
|
38
47
|
processPath: normalizedEntrypoint.importPath,
|
|
39
48
|
extraMetadata,
|
|
40
49
|
prompt: options.prompt,
|
|
50
|
+
inputSchema: options.inputSchema,
|
|
51
|
+
outputSchema: options.outputSchema,
|
|
41
52
|
});
|
|
42
53
|
let lockAcquired = false;
|
|
43
54
|
try {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestrateIteration.d.ts","sourceRoot":"","sources":["../../src/runtime/orchestrateIteration.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"orchestrateIteration.d.ts","sourceRoot":"","sources":["../../src/runtime/orchestrateIteration.ts"],"names":[],"mappings":"AAgBA,OAAO,EAEL,eAAe,EACf,kBAAkB,EAInB,MAAM,SAAS,CAAC;AAgBjB,wBAAsB,oBAAoB,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,eAAe,CAAC,CA8JhG"}
|
|
@@ -47,6 +47,7 @@ const createReplayEngine_1 = require("./replay/createReplayEngine");
|
|
|
47
47
|
const stateCache_1 = require("./replay/stateCache");
|
|
48
48
|
const processContext_1 = require("./processContext");
|
|
49
49
|
const exceptions_1 = require("./exceptions");
|
|
50
|
+
const schemaValidator_1 = require("./schemaValidator");
|
|
50
51
|
const errorUtils_1 = require("./errorUtils");
|
|
51
52
|
const instrumentation_1 = require("./instrumentation");
|
|
52
53
|
const runtime_1 = require("./hooks/runtime");
|
|
@@ -86,6 +87,15 @@ async function orchestrateIteration(options) {
|
|
|
86
87
|
});
|
|
87
88
|
try {
|
|
88
89
|
const output = await (0, processContext_1.withProcessContext)(engine.internalContext, () => processFn(inputs, engine.context, options.context));
|
|
90
|
+
// Validate output against outputSchema if present (warn only, don't throw)
|
|
91
|
+
const runMeta = engine.metadata;
|
|
92
|
+
const outputSchema = runMeta?.outputSchema;
|
|
93
|
+
if (outputSchema) {
|
|
94
|
+
const validation = (0, schemaValidator_1.validateAgainstSchema)(output, outputSchema);
|
|
95
|
+
if (!validation.valid) {
|
|
96
|
+
console.warn(`[babysitter] Output schema validation warning: ${validation.errors.join("; ")}`);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
89
99
|
const outputRef = await (0, runFiles_1.writeRunOutput)(options.runDir, output);
|
|
90
100
|
// Compute cost stats for run completion
|
|
91
101
|
let costStats = undefined;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lightweight JSON Schema validator for process input/output schemas.
|
|
3
|
+
* Supports a subset of JSON Schema draft-07: type checks (string, number,
|
|
4
|
+
* boolean, array, object), required fields, and nested object properties.
|
|
5
|
+
* No external dependencies.
|
|
6
|
+
*/
|
|
7
|
+
export interface ValidationResult {
|
|
8
|
+
valid: boolean;
|
|
9
|
+
errors: string[];
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Validate data against a JSON Schema (subset).
|
|
13
|
+
* If schema is undefined/null, returns valid (no constraints).
|
|
14
|
+
*/
|
|
15
|
+
export declare function validateAgainstSchema(data: unknown, schema: Record<string, unknown> | undefined | null, _path?: string): ValidationResult;
|
|
16
|
+
//# sourceMappingURL=schemaValidator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemaValidator.d.ts","sourceRoot":"","sources":["../../src/runtime/schemaValidator.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,OAAO,EACb,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,GAAG,IAAI,EAClD,KAAK,SAAK,GACT,gBAAgB,CAsDlB"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Lightweight JSON Schema validator for process input/output schemas.
|
|
4
|
+
* Supports a subset of JSON Schema draft-07: type checks (string, number,
|
|
5
|
+
* boolean, array, object), required fields, and nested object properties.
|
|
6
|
+
* No external dependencies.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.validateAgainstSchema = validateAgainstSchema;
|
|
10
|
+
/**
|
|
11
|
+
* Validate data against a JSON Schema (subset).
|
|
12
|
+
* If schema is undefined/null, returns valid (no constraints).
|
|
13
|
+
*/
|
|
14
|
+
function validateAgainstSchema(data, schema, _path = "") {
|
|
15
|
+
const errors = [];
|
|
16
|
+
// No schema = no constraints (backward compat)
|
|
17
|
+
if (!schema) {
|
|
18
|
+
return { valid: true, errors: [] };
|
|
19
|
+
}
|
|
20
|
+
const schemaType = schema.type;
|
|
21
|
+
// Type check at current level
|
|
22
|
+
if (schemaType) {
|
|
23
|
+
const typeError = checkType(data, schemaType, _path);
|
|
24
|
+
if (typeError) {
|
|
25
|
+
errors.push(typeError);
|
|
26
|
+
return { valid: false, errors };
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
// Array items validation
|
|
30
|
+
if (schemaType === "array" && Array.isArray(data) && schema.items) {
|
|
31
|
+
const itemSchema = schema.items;
|
|
32
|
+
for (let i = 0; i < data.length; i++) {
|
|
33
|
+
const itemPath = _path ? `${_path}[${i}]` : `[${i}]`;
|
|
34
|
+
const nested = validateAgainstSchema(data[i], itemSchema, itemPath);
|
|
35
|
+
errors.push(...nested.errors);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
// Object-level validation: required fields and properties
|
|
39
|
+
if (schemaType === "object" && typeof data === "object" && data !== null) {
|
|
40
|
+
const obj = data;
|
|
41
|
+
const required = schema.required ?? [];
|
|
42
|
+
const properties = schema.properties ?? {};
|
|
43
|
+
// Check required fields
|
|
44
|
+
for (const field of required) {
|
|
45
|
+
if (!(field in obj)) {
|
|
46
|
+
const fieldPath = _path ? `${_path}.${field}` : field;
|
|
47
|
+
errors.push(`Missing required field: ${fieldPath}`);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
// Validate property types for present fields
|
|
51
|
+
for (const [key, propSchema] of Object.entries(properties)) {
|
|
52
|
+
if (key in obj) {
|
|
53
|
+
const fieldPath = _path ? `${_path}.${key}` : key;
|
|
54
|
+
const nested = validateAgainstSchema(obj[key], propSchema, fieldPath);
|
|
55
|
+
errors.push(...nested.errors);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
return { valid: errors.length === 0, errors };
|
|
60
|
+
}
|
|
61
|
+
function checkType(value, expectedType, path) {
|
|
62
|
+
const label = path || "root";
|
|
63
|
+
switch (expectedType) {
|
|
64
|
+
case "string":
|
|
65
|
+
if (typeof value !== "string")
|
|
66
|
+
return `Expected ${label} to be string, got ${typeof value}`;
|
|
67
|
+
break;
|
|
68
|
+
case "number":
|
|
69
|
+
if (typeof value !== "number")
|
|
70
|
+
return `Expected ${label} to be number, got ${typeof value}`;
|
|
71
|
+
break;
|
|
72
|
+
case "integer":
|
|
73
|
+
if (typeof value !== "number" || !Number.isInteger(value))
|
|
74
|
+
return `Expected ${label} to be integer, got ${typeof value === "number" ? "float" : typeof value}`;
|
|
75
|
+
break;
|
|
76
|
+
case "boolean":
|
|
77
|
+
if (typeof value !== "boolean")
|
|
78
|
+
return `Expected ${label} to be boolean, got ${typeof value}`;
|
|
79
|
+
break;
|
|
80
|
+
case "array":
|
|
81
|
+
if (!Array.isArray(value))
|
|
82
|
+
return `Expected ${label} to be array, got ${typeof value}`;
|
|
83
|
+
break;
|
|
84
|
+
case "object":
|
|
85
|
+
if (typeof value !== "object" || value === null || Array.isArray(value))
|
|
86
|
+
return `Expected ${label} to be object, got ${Array.isArray(value) ? "array" : typeof value}`;
|
|
87
|
+
break;
|
|
88
|
+
default:
|
|
89
|
+
return `Unknown schema type "${expectedType}" at ${label}`;
|
|
90
|
+
}
|
|
91
|
+
return null;
|
|
92
|
+
}
|
package/dist/runtime/types.d.ts
CHANGED
|
@@ -86,6 +86,8 @@ export interface CreateRunOptions {
|
|
|
86
86
|
request?: string;
|
|
87
87
|
prompt?: string;
|
|
88
88
|
inputs?: unknown;
|
|
89
|
+
inputSchema?: Record<string, unknown>;
|
|
90
|
+
outputSchema?: Record<string, unknown>;
|
|
89
91
|
processRevision?: string;
|
|
90
92
|
layoutVersion?: string;
|
|
91
93
|
metadata?: JsonRecord;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/runtime/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAC9E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAEjE,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAChG,YAAY,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAGjE,MAAM,MAAM,aAAa,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;AAErD,MAAM,MAAM,kBAAkB,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ACxC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,MAAM,EAAE;QACN,MAAM,EAAE,IAAI,GAAG,OAAO,CAAC;QACvB,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,QAAQ,CAAC,EAAE,UAAU,CAAC;KACvB,CAAC;CACH;AAED,MAAM,WAAW,2BAA2B;IAC1C,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createRunDir.d.ts","sourceRoot":"","sources":["../../src/storage/createRunDir.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAyB,WAAW,EAAE,MAAM,SAAS,CAAC;AAmBlF,wBAAsB,YAAY,CAAC,OAAO,EAAE,mBAAmB;;;
|
|
1
|
+
{"version":3,"file":"createRunDir.d.ts","sourceRoot":"","sources":["../../src/storage/createRunDir.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAyB,WAAW,EAAE,MAAM,SAAS,CAAC;AAmBlF,wBAAsB,YAAY,CAAC,OAAO,EAAE,mBAAmB;;;GAuC9D"}
|
|
@@ -38,6 +38,8 @@ async function createRunDir(options) {
|
|
|
38
38
|
layoutVersion,
|
|
39
39
|
createdAt,
|
|
40
40
|
...(options.prompt !== undefined ? { prompt: options.prompt } : {}),
|
|
41
|
+
...(options.inputSchema !== undefined ? { inputSchema: options.inputSchema } : {}),
|
|
42
|
+
...(options.outputSchema !== undefined ? { outputSchema: options.outputSchema } : {}),
|
|
41
43
|
};
|
|
42
44
|
if (options.extraMetadata) {
|
|
43
45
|
Object.assign(metadata, options.extraMetadata);
|
package/dist/storage/types.d.ts
CHANGED
|
@@ -16,6 +16,8 @@ export interface RunMetadata extends JsonRecord {
|
|
|
16
16
|
createdAt: string;
|
|
17
17
|
completionProof?: string;
|
|
18
18
|
prompt?: string;
|
|
19
|
+
inputSchema?: Record<string, unknown>;
|
|
20
|
+
outputSchema?: Record<string, unknown>;
|
|
19
21
|
}
|
|
20
22
|
export interface CreateRunDirOptions {
|
|
21
23
|
runsRoot: string;
|
|
@@ -33,6 +35,8 @@ export interface CreateRunDirOptions {
|
|
|
33
35
|
inputs?: unknown;
|
|
34
36
|
extraMetadata?: Record<string, unknown>;
|
|
35
37
|
prompt?: string;
|
|
38
|
+
inputSchema?: Record<string, unknown>;
|
|
39
|
+
outputSchema?: Record<string, unknown>;
|
|
36
40
|
}
|
|
37
41
|
export interface AppendEventOptions {
|
|
38
42
|
runDir: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/storage/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,IAAI,CAAC;AAE3B,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEjD,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,WAAY,SAAQ,UAAU;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,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