✨ Add Rudder update workflow - #87
Conversation
Co-authored-by: Codex Agent <codex-agent@openai.com>
🔌 Merging this PR will release the Rudder pluginPublish The release runs through |
|
Ready to review this PR? Stage has broken it down into 5 individual chapters for you: Chapters generated by Stage for commit 3941faa on Jul 29, 2026 9:05pm UTC. |
Co-authored-by: Codex Agent <codex-agent@openai.com>
| const nextState = { | ||
| schemaVersion: 1, | ||
| lastCheckedAt: new Date(now).toISOString(), | ||
| latestVersion: cachedVersion(state), | ||
| }; |
There was a problem hiding this comment.
Failed checks refresh cache freshness
When a registry request fails, this branch records the current time in lastCheckedAt; subsequent ordinary Rudder invocations treat the unavailable or stale result as fresh and skip the registry for up to 24 hours, suppressing an available update or continuing to report an obsolete version.
Co-authored-by: Codex Agent <codex-agent@openai.com>
Adds a cached npm update check and guided default rudder@rudder update flow for Codex and Claude Code. Adds red-green, prompt-backed coverage instructions and restores tagged generated tests after resetting test paths. Bumps plugin manifests and package version to 0.1.3 and adds tests for update, retry, CLI, and workflow behavior. Validated with npm test, npm run typecheck, and Node coverage for update.mjs (90.06% lines).
Greptile Summary
Adds a cached npm update workflow and expands Rudder’s prompt-backed test-generation process.
Confidence Score: 4/5
The failed-check cache behavior should be fixed before merging because a transient registry outage can suppress update discovery for the full cache interval.
The failure path records a fresh timestamp even though no fresh registry value was obtained, and every subsequent normal invocation trusts that timestamp and skips the registry for up to 24 hours.
Files Needing Attention: skills/rudder/scripts/update.mjs
Important Files Changed
Flowchart
%%{init: {'theme': 'neutral'}}%% flowchart TD A[Rudder invocation] --> B[Run update.mjs check] B --> C{Cache fresh?} C -- Yes --> D[Return cached version] C -- No --> E[Fetch npm latest version] E -- Success --> F[Cache version and timestamp] E -- Failure --> G[Cache stale or null version with new timestamp] D --> H{Update available?} F --> H G --> H H -- Yes --> I[Show update notice] H -- No --> J[Continue Rudder workflow] I --> J I --> K[User accepts later] K --> L[Apply host update]Reviews (1): Last reviewed commit: "✨ Add Rudder update workflow" | Re-trigger Greptile