-
Notifications
You must be signed in to change notification settings - Fork 0
Hide session page commands #22
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
Conversation
- Set Hidden: true on sessionsObserveCmd, sessionsExecuteCmd, sessionsScrapeCmd - Update README.md to document page commands as the primary interface - Update skills documentation (SKILL.md, session-management.md) - Update shell templates to use notte page commands The hidden commands still work for backward compatibility but are no longer shown in --help output, encouraging users to use the cleaner page interface.
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.
4 files reviewed, 1 comment
e50cc05 to
bcf71fb
Compare
|
@greptile |
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.
4 files reviewed, 1 comment
Eliminates code duplication by making page observe/scrape directly call their sessions counterparts. Unifies command-line interface to use consistent flag names across both command groups. Key changes: - Remove duplicate runPageObserve and runPageScrape functions (~70 lines) - Unify flag variables: use sessionObserveURL and sessionScrapeOnlyMain - Standardize interface: page scrape now uses --instructions flag instead of positional arg - Update runSessionObserve to print only description in text mode for consistency - Add 4 comprehensive unit tests for scrape argument combinations - Update all documentation and templates to use unified interface
|
@greptile |
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.
6 files reviewed, 4 comments
|
@greptile |
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.
4 files reviewed, 2 comments
README.md
Outdated
|
|
||
| ```bash | ||
| notte page observe # Get page state and available actions | ||
| notte page scrape [instructions] # Scrape content from the page |
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.
The scrape command no longer accepts positional arguments - instructions must be passed via the --instructions flag
| notte page scrape [instructions] # Scrape content from the page | |
| notte page scrape --instructions "..." # Scrape content from the page |
Prompt To Fix With AI
This is a comment left during a code review.
Path: README.md
Line: 133:133
Comment:
The `scrape` command no longer accepts positional arguments - instructions must be passed via the `--instructions` flag
```suggestion
notte page scrape --instructions "..." # Scrape content from the page
```
How can I resolve this? If you propose a fix, please make it concise.
README.md
Outdated
| 2. `notte page goto <url>` - Navigate to a URL | ||
| 3. `notte page observe` - Get interactive elements with IDs (@B1, @B2) | ||
| 4. `notte page click @B1` / `notte page fill @B2 "text"` - Interact using element IDs | ||
| 5. `notte page scrape "..."` - Extract structured data |
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.
The scrape command no longer accepts positional arguments - instructions must be passed via the --instructions flag
| 5. `notte page scrape "..."` - Extract structured data | |
| 5. `notte page scrape --instructions "..."` - Extract structured data |
Prompt To Fix With AI
This is a comment left during a code review.
Path: README.md
Line: 404:404
Comment:
The `scrape` command no longer accepts positional arguments - instructions must be passed via the `--instructions` flag
```suggestion
5. `notte page scrape --instructions "..."` - Extract structured data
```
How can I resolve this? If you propose a fix, please make it concise.
Greptile Overview
Greptile Summary
This PR refactors the CLI to deprecate session commands (
observe,execute,scrape) by hiding them and promotingpagecommands as the primary interface for browser interactions.Key Changes
notte sessions observe/execute/scrapecommands (setHidden: true) with comments directing users to usenotte pagecommands insteadnotte page observeandnotte page scrapeto proxy directly torunSessionObserveandrunSessionScrapefunctions--main-only→--only-main-contentpage_test.gothat are now covered bysessions_test.gopagecommandsnotte functions run-metadata-updatecommandIssues Found
notte page scrapesyntax using positional arguments instead of--instructionsflag (lines 133, 404)Confidence Score: 4/5
Important Files Changed