8000 refactor by cjellick · Pull Request #72 · obot-platform/tools · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

refactor #72

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

Merged
merged 25 commits into from
Oct 7, 2024
Merged

refactor #72

merged 25 commits into from
Oct 7, 2024

Conversation

cjellick
Copy link
Contributor
@cjellick cjellick commented Oct 6, 2024

Big refactor that does the following:

  • Collapses the read/read/code directory structure down to just the parent dir
  • Makes tools "self-contained" by having them each share a context if they need to
  • Gets rid of the read vs write credentials. All tools just use the write creds
  • Fixes the names of all tools such that they are human-friendly and not looking like programming method names.
  • Made capitalization of keywords more consistent
  • Fixes a few bugs encountered along the way
  • Drops tools we dont want to support

It doesn't really fit our new paradigm. It's too expansive in
scope. We might add it back in a more streamlined form in the future.

Signed-off-by: Craig Jellick <craig@acorn.io>
Signed-off-by: Craig Jellick <craig@acorn.io>
Signed-off-by: Craig Jellick <craig@acorn.io>
Signed-off-by: Craig Jellick <craig@acorn.io>
Signed-off-by: Craig Jellick <craig@acorn.io>
They now each include their context tools and all use the write
credential.

Signed-off-by: Craig Jellick <craig@acorn.io>
Eliminates the read and write dirs. Adds the write credential to all
tools.

Signed-off-by: Craig Jellick <craig@acorn.io>
@@ -61,7 +67,7 @@ Param: newBody: the new body content of the pull request
#!/usr/bin/env node ${GPTSCRIPT_TOOL_DIR}/index.js modifyPR

---
Name: delete_pr
Name: Delete PR
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one needs the Credential: line.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Param: owner: the owner of the repository
Param: repo: the name of the repository
Param: prNumber: the number of the pull request to retrieve comments for

#!/usr/bin/env node ${GPTSCRIPT_TOOL_DIR}/index.js getPRComments

---
Name: list_repos
Name: List Repos
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one too.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Signed-off-by: Craig Jellick <craig@acorn.io>
Signed-off-by: Craig Jellick <craig@acorn.io>
Signed-off-by: Craig Jellick <craig@acorn.io>
Add a context that tells the llm to not ouput IDs. Standardize

Signed-off-by: Craig Jellick <craig@acorn.io>
Signed-off-by: Craig Jellick <craig@acorn.io>
Signed-off-by: Craig Jellick <craig@acorn.io>
Signed-off-by: Craig Jellick <craig@acorn.io>
Signed-off-by: Craig Jellick <craig@acorn.io>
They each include their own context and use the manage credential

Signed-off-by: Craig Jellick <craig@acorn.io>
Some calendars can apparently return nil for their owner. This handles
that situation.

Signed-off-by: Craig Jellick <craig@acorn.io>
They each now share the context tools they need

Signed-off-by: Craig Jellick <craig@acorn.io>
Signed-off-by: Craig Jellick <craig@acorn.io>
Signed-off-by: Craig Jellick <craig@acorn.io>
Let the LLM know that it doesn't know the user's timezone.

Signed-off-by: Craig Jellick <craig@acorn.io>
They now each include their own context and use the write credential.

Signed-off-by: Craig Jellick <craig@acorn.io>
Signed-off-by: Craig Jellick <craig@acorn.io>
Signed-off-by: Craig Jellick <craig@acorn.io>
Tool names should be human friendly and not look programming method
names.

Signed-off-by: Craig Jellick <craig@acorn.io>
@cjellick cjellick merged commit a97e561 into obot-platform:main Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0