-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: base RN upgrades experience #36
base: main
Are you sure you want to change the base?
Conversation
src/tools/react-native.ts
Outdated
project, | ||
platforms, | ||
} = await loadReactNativeConfig() | ||
const { root, reactNativePath: path, project, platforms } = await loadReactNativeConfig() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we know why? That is weird
9a820cd
to
a30feb5
Compare
action: dedent` | ||
Go over user file tree and apply diffs to the project. | ||
`, | ||
diff, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
save diff into file in os.tmp() and return path here.
action: dedent` | ||
Go over user file tree and apply diffs to the project. | ||
`, | ||
diff, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: in the future, we will need to unify our response formats. I think since AIs are conversational ,we can safely return Go over diff at path ${path}
instead of returning it as an extra property
Upgrade React Native diff tool, returns a diff between two versions of React Native. | ||
|
||
Parameters: | ||
- "from" - source version, (Read the exact version from package.json using "readFile" tool). Example: "0.75.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I typically use this format just for Returns
, because there's no validation. For parameters, I would just put this on the schema with zod.describe
success: true, | ||
action: dedent` | ||
Ask user to select a version from the list. | ||
`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: no need for decent
if single line.
Also, we can try Ask user to select a version from the list: ${mappedList}
if it works .
This is all serialized to string anyway at the end of the day
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is step towards right direction! Excited to land this and release it! I think this might be part of bigger upgrade release that we're working on! Left some feedback, I think we're good to go here!
This PR implements base React Native upgrades experience.
I was hitting token limits so it's not working perfectly.
Things to fix:
messages
so that they don't hit the limit especially if we have instructions with large patches