fix type errors and rename all .tsx agent files to .ts

This commit is contained in:
bracesproul
2025-03-11 12:39:30 -07:00
parent 1642c97692
commit c90e8a3361
7 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -109,7 +109,7 @@ export async function executor(
ui.push(
{
name: "proposed-change",
content: {
props: {
toolCallId,
change: updateFileContents,
planItem: nextPlanItem,
+1 -1
View File
@@ -89,7 +89,7 @@ export async function planner(
ui.push(
{
name: "code-plan",
content: {
props: {
toolCallId,
executedPlans,
rejectedPlans,
@@ -179,13 +179,13 @@ export async function callTools(
ui.push(
{
name: "stock-price",
content: { ticker: stockbrokerToolCall.args.ticker, ...prices },
props: { ticker: stockbrokerToolCall.args.ticker, ...prices },
},
{ message },
);
}
if (portfolioToolCall) {
ui.push({ name: "portfolio", content: {} }, { message });
ui.push({ name: "portfolio", props: {} }, { message });
}
if (buyStockToolCall) {
const snapshot = await getPriceSnapshotForTicker(
@@ -194,7 +194,7 @@ export async function callTools(
ui.push(
{
name: "buy-stock",
content: {
props: {
toolCallId: buyStockToolCall.id ?? "",
snapshot,
quantity: buyStockToolCall.args.quantity,
@@ -65,7 +65,7 @@ export async function callTools(
ui.push(
{
name: "accommodations-list",
content: {
props: {
toolCallId: listAccommodationsToolCall.id ?? "",
...getAccommodationsListProps(state.tripDetails),
},
@@ -78,7 +78,7 @@ export async function callTools(
ui.push(
{
name: "restaurants-list",
content: { tripDetails: state.tripDetails },
props: { tripDetails: state.tripDetails },
},
{ message: response },
);