refactor(tools): remove arbitrary workflow ceilings
This commit is contained in:
@@ -173,7 +173,7 @@ export const OFFICIAL_TOOL_CONTRACTS = [
|
||||
),
|
||||
official(
|
||||
"list_strings",
|
||||
"List every provider-defined string, or filter to one address, as address/value pairs. Ghidra reports charset, missing-terminator status, byte length, and explicit value truncation.",
|
||||
"List every provider-defined string, or filter to one address, as address/value pairs. Ghidra also reports encoding, terminator status, and byte length.",
|
||||
z.object({ document, address: optionalAddress }),
|
||||
),
|
||||
official(
|
||||
@@ -293,7 +293,7 @@ export const OFFICIAL_TOOL_CONTRACTS = [
|
||||
/** Closed provider operation names exposed by direct analysis adapters. */
|
||||
export type OfficialToolName = (typeof OFFICIAL_TOOL_CONTRACTS)[number]["name"];
|
||||
|
||||
/** Bounded workflows composed from one or more bridge operations. */
|
||||
/** Workflow tools composed from one or more provider operations. */
|
||||
export const ENHANCED_TOOL_CONTRACTS = [
|
||||
enhanced(
|
||||
"get_objc_classes",
|
||||
|
||||
@@ -76,6 +76,18 @@ const bookmarkFacetSchema = z.discriminatedUnion("state", [
|
||||
}),
|
||||
]);
|
||||
|
||||
const addressedString = z.object({
|
||||
address: z.string(),
|
||||
value: z.string(),
|
||||
string: z
|
||||
.object({
|
||||
encoding: z.string().min(1),
|
||||
termination: z.enum(["missing", "present_or_not_required"]),
|
||||
byte_length: z.number().int().min(0),
|
||||
})
|
||||
.optional(),
|
||||
});
|
||||
|
||||
/** Exact structured-content schemas shared by direct analysis providers. */
|
||||
export const officialOutputSchemas: Readonly<Record<string, z.ZodObject>> = {
|
||||
address_name: resultOf(nullableText),
|
||||
@@ -90,7 +102,7 @@ export const officialOutputSchemas: Readonly<Record<string, z.ZodObject>> = {
|
||||
list_names: resultOf(z.array(addressedValue)),
|
||||
list_procedures: resultOf(z.array(addressedValue)),
|
||||
list_segments: segmentOutput,
|
||||
list_strings: resultOf(z.array(addressedValue)),
|
||||
list_strings: resultOf(z.array(addressedString)),
|
||||
next_address: resultOf(z.string()),
|
||||
prev_address: resultOf(z.string()),
|
||||
procedure_address: resultOf(z.string()),
|
||||
|
||||
@@ -31,7 +31,7 @@ const PROPERTY_DESCRIPTIONS: Readonly<Record<string, string>> = {
|
||||
result: "Primary structured result returned by this operation.",
|
||||
left: "Left-hand input used for comparison or differential execution.",
|
||||
limits:
|
||||
"Bounded resource-consumption and result-size limits for this operation.",
|
||||
"Resource budgets that bound execution and retained output for this operation.",
|
||||
mode: "Operation mode that selects the requested behavior.",
|
||||
overwrite: "Whether an existing destination may be replaced.",
|
||||
path: "Local filesystem path used by this operation.",
|
||||
|
||||
Reference in New Issue
Block a user