//#region src/types/a2a.ts
let TaskState = /* @__PURE__ */ function(TaskState$1) {
	TaskState$1["Submitted"] = "submitted";
	TaskState$1["Working"] = "working";
	TaskState$1["InputRequired"] = "input-required";
	TaskState$1["Completed"] = "completed";
	TaskState$1["Canceled"] = "canceled";
	TaskState$1["Failed"] = "failed";
	TaskState$1["Rejected"] = "rejected";
	TaskState$1["AuthRequired"] = "auth-required";
	TaskState$1["Unknown"] = "unknown";
	return TaskState$1;
}({});

//#endregion
//#region src/types/tool-policies.ts
/**
* Helper function to normalize McpToolSelection[] into separate arrays
*/
function normalizeToolSelections(selections) {
	if (!selections || selections.length === 0) return {
		selectedTools: [],
		toolPolicies: {}
	};
	const selectedTools = [];
	const toolPolicies = {};
	for (const selection of selections) if (typeof selection === "string") selectedTools.push(selection);
	else {
		selectedTools.push(selection.name);
		const policy = {};
		if (selection.needsApproval !== void 0) policy.needsApproval = selection.needsApproval;
		if (Object.keys(policy).length > 0) toolPolicies[selection.name] = policy;
	}
	return {
		selectedTools,
		toolPolicies
	};
}

//#endregion
export { TaskState as n, normalizeToolSelections as t };
//# sourceMappingURL=types.js.map