Repository navigation
Fix Quota Resets And Companion Data; Finish Muse Plugins And Alert Routing #357
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
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
b8d7944
Prepare Reviewed CodeCaps Release Sources (1/6)
swu-codex[bot] c4d9e66
Prepare Reviewed CodeCaps Release Sources (2/6)
swu-codex[bot] 70cd5be
Prepare Reviewed CodeCaps Release Sources (3/6)
swu-codex[bot] 1efbc7c
Prepare Reviewed CodeCaps Release Sources (4/6)
swu-codex[bot] 4fdf430
Prepare Reviewed CodeCaps Release Sources (5/6)
swu-codex[bot] 6685568
Prepare Reviewed CodeCaps Release Sources (6/6)
swu-codex[bot] 3b1c8c6
Record Exact Runtime Key Validation Scanner False Positive
swu-codex[bot] 9e0007f
Tighten quota-reset evidence.
swu-codex[bot] 630a2c0
Pin the MiniMax stale-weekly regression.
swu-codex[bot] b472d10
Hide only managed windows when keeping running.
swu-codex[bot] d401a87
Select only managed content windows.
swu-codex[bot] 4600429
Test keep-running window selection.
swu-codex[bot] 47c64ec
Suppress false vendor resets while preserving valid refills
swu-codex[bot] d9e058a
Cover weekly deadline nudges and small full restores
swu-codex[bot] 63a62d7
Confine Muse bridge delivery state to the main actor
swu-codex[bot] 294d697
Cancel SMS delivery tasks when setup changes
swu-codex[bot] 6fb29cf
Honor cancellation before sending reserved SMS
swu-codex[bot] afb2a70
Test that Forget cancels in-flight SMS delivery
swu-codex[bot] a7c5cb9
Match provider window labels exactly
swu-codex[bot] e0d429f
Test exact canonical provider window labels
swu-codex[bot] 0a40ff2
Resolve symlinked task lanes before version planning
swu-codex[bot] 7521629
Cover symlinked release version planning
swu-codex[bot] 90bada8
Fix exact Antigravity quota labels
swu-codex[bot] 5f4b4aa
Refresh Cursor quota timestamps after fetching
swu-codex[bot] a8a4fa0
Expire obsolete CodeCaps builds and App Store versions
swu-codex[bot] cf68042
Align release contract test with 0.1.0
swu-codex[bot] 05527c4
Merge branch 'main' into codex/cc-205-release-ready
jaywedgeworth22 e442df4
Add Release Readiness Follow-Up Missing From PR 357 (#361)
jaywedgeworth22 c541753
Fix non-optional binding in the fresh-period check
jaywedgeworth22 29625ad
Merge origin/main (release versioning #359)
jaywedgeworth22 0011aad
Merge origin/main (one meter-pair rule #360)
jaywedgeworth22 f1c69a8
test: give the unresolved-reference probe a service token
jaywedgeworth22 25f6ca7
fix: keep the cursor cloud boot script at its main revision
jaywedgeworth22 b85a326
fix: take mains synthetic-fixture version of the ASC staging test
jaywedgeworth22 b7a6638
Merge branch 'main' into codex/cc-205-release-ready
jaywedgeworth22 23b56a0
fix: the sentry reason stays empty when a CodeCaps token wins
jaywedgeworth22 a4499ae
fix: take mains stage-asc-key reader
jaywedgeworth22 f8427d7
fix: take main's release contract to settle the mac-release gate
jaywedgeworth22 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
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
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
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,69 @@ | ||
| import Foundation | ||
| import QuotaCore | ||
|
|
||
| /// One alert occurrence on its way to a delivery channel. | ||
| /// | ||
| /// Every event carries its stable `UsageAlertKind` identifier, so channels | ||
| /// select by kind — never by which producer emitted the event — and a | ||
| /// future per-kind channel opt-in needs no producer changes. | ||
| public struct CodeCapsAlertEvent: Equatable, Sendable { | ||
| public let kind: UsageAlertKind | ||
| public let title: String | ||
| public let body: String | ||
| public let identifier: String | ||
| public let occurredAt: Date | ||
|
|
||
| public init(kind: UsageAlertKind, title: String, body: String, | ||
| identifier: String, occurredAt: Date) { | ||
| self.kind = kind | ||
| self.title = title | ||
| self.body = body | ||
| self.identifier = identifier | ||
| self.occurredAt = occurredAt | ||
| } | ||
| } | ||
|
|
||
| /// A delivery channel for app-level alert events. | ||
| /// | ||
| /// The seam is deliberately at the app level, not inside any plugin: a new | ||
| /// channel registers once with the dispatcher and receives every producer's | ||
| /// events. The planned Twilio SMS channel is the expected second channel — | ||
| /// app-level, selecting a deliberately small set of kinds — and it slots in | ||
| /// here without reworking any monitor. | ||
| @MainActor | ||
| public protocol CodeCapsAlertChannel: AnyObject { | ||
| func deliver(_ event: CodeCapsAlertEvent) | ||
| } | ||
|
|
||
| /// App-level fan-out for alert events. Producers emit here, never to a | ||
| /// channel directly. | ||
| @MainActor | ||
| public final class CodeCapsAlertDispatcher { | ||
| private var channels: [CodeCapsAlertChannel] = [] | ||
|
|
||
| public init() {} | ||
|
|
||
| public func register(_ channel: CodeCapsAlertChannel) { | ||
| channels.append(channel) | ||
| } | ||
|
|
||
| public func emit(_ event: CodeCapsAlertEvent) { | ||
| for channel in channels { channel.deliver(event) } | ||
| } | ||
| } | ||
|
|
||
| /// The only channel today: CodeCaps' own alert surface, through the same | ||
| /// per-kind preferences and delivery path as every other usage alert. | ||
| @MainActor | ||
| public final class LocalAlertChannel: CodeCapsAlertChannel { | ||
| private weak var manager: ResetAlarmManager? | ||
|
|
||
| public init(manager: ResetAlarmManager) { | ||
| self.manager = manager | ||
| } | ||
|
|
||
| public func deliver(_ event: CodeCapsAlertEvent) { | ||
| manager?.deliverUsageAlert(kind: event.kind, title: event.title, | ||
| body: event.body, identifier: event.identifier) | ||
| } | ||
| } |
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
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.