-
Notifications
You must be signed in to change notification settings - Fork 17
Add TypeScript implementation and expand Python documentation #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
Closed
pirate
wants to merge
83
commits into
browser-use:main
from
ArchiveBox:claude/add-retry-decorator-L3GT1
Closed
Changes from all commits
Commits
Show all changes
83 commits
Select commit
Hold shift + click to select a range
6188b98
break circular dependencies
pirate e05bf24
cleaner variable names
pirate 9bc7b4b
consistent naming of event_children
pirate aa73613
add tests for independent usage
pirate 582aefc
add support for middlewares to hook into event bus handler lifecycle
pirate b65ff22
Merge pull request #2 from pirate/middlewares
pirate 27e8c51
Merge branch 'main' into circular-cleanup
pirate 518ee27
better variable naming
pirate 3963aa7
implement event history backend
pirate ad36a77
Merge pull request #3 from pirate/event-history-backend
pirate 8cd3335
add monitor dash mini app
pirate 5747fcb
improve monitor ui dash
pirate 615c34e
better middleware API and documentation
pirate 719e934
add query method and debounce helpers
pirate 89b6df8
rename folder to ui
pirate 5a094dc
improve perf tests
pirate 165169e
add event_history mirroring test
pirate be314d6
ignore sqlite temp files
pirate c925e17
add stricter type checking for tests
pirate d195dd6
proper type inference tests
pirate b4e4a34
bump version
pirate 5e7bd12
Add EventEmitter2 link to inspiration section
pirate 73a60f6
Revise README description for bubus library
pirate 854773d
Merge pull request #4 from pirate/patch-1
pirate 79e4063
Update README.md
pirate b5fac1c
Update README.md
pirate 67f5b1e
remove old js lockfile
pirate 807c3a6
fix queue-jumping behavior to be more intuitive to actually jump inst…
pirate 7c21c3b
bump version
pirate 2db5914
propagate dispatch-time user-provided ContextVars to handler execution
pirate 0c5c1df
clear ContextVars after handler execution to lower memory use
pirate 5899a3d
bump version
pirate 1ca9709
document the new ContextVar propagation feature
pirate 1c6e6cf
add claude perms
pirate bf82b95
implement new .find method to replace expect and get_or_dispatch
pirate fb3f4bb
fix bus name conflict checking and determinism around gc
pirate aa61357
add EventStatus enum and cleanup middlewares APIs for clarity
pirate 9d6b782
massivly simplify middleware interface
pirate f6abe6d
fix middlewares type
pirate 4e291cf
bump version
pirate 140fb7a
Revise event handling examples in README
pirate fb68fcb
add bubus-ts implementation
pirate 5230ba0
use monotonic timestamps and fix bus proxy
pirate b5cda39
add ts readme
pirate b04db57
remove unused configs
pirate 500ed8e
fix eslint
pirate 6b0cf8c
Fix log tree behavior and child completion
pirate d891ff2
add asynclocalstorage
pirate 40a248e
fix tests and improve naming consistency
pirate b678e79
more queue jumping fixes
pirate 2e0a9d2
add debug logging
pirate 413d0cf
wip
pirate 2acac40
all tests passing
pirate 82a346e
completed lock system refactor
pirate 1be5da2
readme updates
pirate 4d038a6
LockManager consolidation
pirate a1f51f1
tests passing
pirate 328af87
code cleanup and better naming
pirate a21dd46
all working except slower performance
pirate 2d51a39
add type inference for return values
pirate e79782b
update readme
pirate 03a2449
fix perf regression
pirate f20916c
more cleanup and naming improvements
pirate daa7dab
make awaiting event wait for processing on all busses, raise Exceptio…
pirate 4d9d88c
bump version
pirate 9b6d4bf
Update README.md
pirate fd7e6b5
Revise README to emphasize multi-language support
pirate dc29a76
Update README for brevity and clarity
pirate 4228337
Update README description for bubus
pirate fd52a82
Update README with implementation badges
pirate da51cfd
Clean up README.md by removing duplicates
pirate b190994
add bubus-ts publish flow
pirate 46b59ab
add perf tests
pirate 875e331
unverified python perf fixes
pirate 45b5c6a
Add retry() decorator with semaphore support and re-entrancy protection
claude 8be7423
Use shared async_context.ts polyfill for retry re-entrancy tracking
claude 57884c1
Support string error names and RegExp patterns in retry_on_errors
claude f9b2ce6
Update README retry_on_errors docs for string/RegExp matchers
claude 792b725
Add semaphore_scope option: 'global', 'class', 'instance'
claude b577a5f
Add TC39 @retry() decorator syntax tests and scope fallback tests
claude 182e98d
Add full usage pattern tests and README docs for @retry decorator
claude 7a82629
Add test for retry wrapping emit→done cycle in parallel with other ev…
claude df34d9d
Document @retry as handler-level concept; discourage emit-level retry…
claude File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| name: publish-npm | ||
|
|
||
| on: | ||
| release: | ||
| types: [published] | ||
| workflow_dispatch: | ||
| inputs: | ||
| tag: | ||
| description: npm dist-tag to publish under | ||
| required: false | ||
| default: latest | ||
|
|
||
| permissions: | ||
| contents: read | ||
| id-token: write | ||
|
|
||
| jobs: | ||
| publish_to_npm: | ||
| runs-on: ubuntu-latest | ||
| defaults: | ||
| run: | ||
| working-directory: bubus-ts | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - uses: pnpm/action-setup@v4 | ||
| with: | ||
| version: 10 | ||
|
|
||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 22 | ||
| cache: pnpm | ||
| cache-dependency-path: bubus-ts/pnpm-lock.yaml | ||
| registry-url: https://registry.npmjs.org | ||
|
|
||
| - run: pnpm install --frozen-lockfile | ||
| - run: pnpm run typecheck | ||
| - run: pnpm test | ||
| - run: pnpm run build | ||
|
|
||
| - name: Publish release tag | ||
| if: github.event_name == 'release' | ||
| run: pnpm publish --access public --no-git-checks | ||
| env: | ||
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
|
||
| - name: Publish manual tag | ||
| if: github.event_name == 'workflow_dispatch' | ||
| run: pnpm publish --access public --tag "${{ inputs.tag }}" --no-git-checks | ||
| env: | ||
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| dist/ |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this 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.
P2: Directly interpolating
inputs.taginto aruncommand can lead to command injection if a crafted tag value is provided. Use an env variable to avoid expression substitution inside the script.Prompt for AI agents