Conversation
…ility improvements - Add _shared/check-env.ts, resolve-source.ts, log-stream.ts, run-session.ts - All examples use stream-first non-blocking patterns (no await session.result()) - logStream() typed handler map replaces switch/if chains - runRepolessSession() shared helper for google-docs/sheets - github-actions: marked-based /jules parser with full test suite - gitpatch-improve: file-based review.md output instead of string appending - All fail() methods use typed error codes with as const narrowing - Remove cloudflare-workers and database-triggers examples - Fix express middleware return path - mcp-plan-generation: registerTool() replaces deprecated tool() - cron-jobs: conditional source (repoless when no GITHUB_REPO)
The streaming path (stream() → updates() → rawStream()) was missing the withFirstRequestRetry wrapper that hydrate() already had. When a session was freshly created, the first listActivities() call in rawStream() would fail with 404 before the API was ready, causing the error to propagate up as an unhandled exception. Now the first poll in rawStream() uses the same retry logic (5 retries, exponential backoff starting at 1s) as hydrate().
- Expand tsconfig.json include to cover ../_shared/**/*.ts - Set rootDir to '..' so tsc can resolve _shared imports - Add marked dependency to github-actions package.json - Update bun.lock
- github-action-agentskills: only include check-env.ts (no external deps), not the full _shared glob which pulls in files depending on jules-sdk - github-actions: add paths mapping so tsc resolves @google/jules-sdk from the example's node_modules, not from _shared/'s directory
These files reference an 'init' command that doesn't exist in schema-handler.ts. They were accidentally staged in a previous commit.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Update the majority of SDK examples for code cleanliness and functionality improvements.
Fix 404 bug for streams.