Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions Sources/CodeCaps/MuseCodePluginView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ struct MuseCodePluginPage: View {
if let plugin = CodeCapsPlugin.named(pluginId), plugin == .museCode {
MuseCodeMonitorPage(model: model)
} else {
Text("Plugin unavailable")
Text("Plugin Unavailable")
.font(.system(size: 13, weight: .medium))
.foregroundStyle(.secondary)
}
Expand Down Expand Up @@ -84,15 +84,15 @@ struct MuseCodeMonitorPage: View {
Text("Muse Monitor")
.font(.system(size: 18, weight: .bold, design: .rounded))
if isWarning {
Text("WARNING")
Text("Warning")
.font(.system(size: 10, weight: .bold))
.foregroundStyle(.white)
.padding(.horizontal, 6)
.padding(.vertical, 2)
.background(Theme.warning, in: Capsule())
}
}
Text("Deterministic monitoring of Muse token burn and standard-model sessions on this Mac.")
Text("Tracks Muse token use and standard-model sessions on this Mac.")
.font(.system(size: 12))
.foregroundStyle(.secondary)
.fixedSize(horizontal: false, vertical: true)
Expand Down Expand Up @@ -150,13 +150,13 @@ struct MuseCodeMonitorPage: View {
Eyebrow("CONTRIBUTOR SHARE")
VStack(alignment: .leading, spacing: 8) {
if let window = window90, let share = window.contributorShare {
row("Contributor Share (90 minutes)", MuseCodeFormatting.percent(share))
row("Contributor Share (90 Minutes)", MuseCodeFormatting.percent(share))
row("Contributor Tokens", MuseCodeFormatting.grouped(window.contributorTokens))
if share < 1 {
row("Standard Tokens", MuseCodeFormatting.grouped(window.totalTokens - window.contributorTokens))
}
} else {
row("Contributor Share (90 minutes)", "No tokens in window")
row("Contributor Share (90 Minutes)", "No tokens in window")
}
}
.padding(16)
Expand Down Expand Up @@ -220,9 +220,9 @@ struct MuseCodeMonitorPage: View {
in: 100_000...50_000_000, step: 100_000)
.labelsHidden()
}
Text("Two alert kinds: museCodeBurn fires when burn passes the threshold while a session is on a standard model."
Text("Burn Alert warns you when usage passes the threshold while a session uses a standard model."
+ sentenceGap
+ "museCodeStandardSession fires on its own the moment a session starts on, or switches to, a standard model, whatever the burn rate.")
+ "Standard Session Alert warns you when a session starts or switches to a standard model, regardless of burn rate.")
.font(.system(size: 11))
.foregroundStyle(.secondary)
.fixedSize(horizontal: false, vertical: true)
Expand Down Expand Up @@ -263,7 +263,7 @@ struct MuseCodeMonitorPage: View {
Text(tokenStatus).font(.system(size: 11)).foregroundStyle(.secondary)
}
row("Bridge Status", model.museCodeBridgeStatus ?? "Not posted yet")
Text("Posts each session's new tokens since the last reading to Usage Monitor, as muse-code token events."
Text("Posts each session's new tokens since the last reading to Usage Monitor, as Muse Code usage."
+ sentenceGap
+ "Replays dedupe server-side, so a failed post is safe to retry.")
.font(.system(size: 11))
Expand Down
2 changes: 1 addition & 1 deletion Sources/CodeCaps/SMSSettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ struct SMSSettingsView: View {
SecureField(controller.hasSavedSetup ? "API Key Secret (Blank Keeps Saved Secret)" : "API Key Secret",
text: $apiKeySecret)
TextField("Messaging Service SID", text: $messagingServiceSID)
TextField("Recipient (E.164)", text: $recipient)
TextField("Recipient Phone Number", text: $recipient, prompt: Text("+15551234567"))
HStack {
Button("Save Setup") {
Task {
Expand Down
4 changes: 2 additions & 2 deletions Sources/CodeCaps/SettingsViews.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1862,7 +1862,7 @@ struct SettingsInfisicalPage: View {
} header: { Eyebrow(editingID == nil ? "NEW BINDING" : "EDIT BINDING") }
footer: {
Text("Use the complete service token, including its st. prefix." + sentenceGap
+ "Credentials stay in this build’s Keychain; Infisical enforces their actual permissions.")
+ "Credentials stay in the Keychain on this Mac; Infisical enforces their actual permissions.")
.font(.system(size: 11))
.foregroundStyle(.secondary)
.fixedSize(horizontal: false, vertical: true)
Expand All @@ -1873,7 +1873,7 @@ struct SettingsInfisicalPage: View {
LabeledContent("Read Source", value: read.label)
LabeledContent("Environment", value: read.environment)
LabeledContent("Folder", value: read.secretPath)
} else { Text("Local settings only") }
} else { Text("Local Settings Only") }
if let loaded = settings.lastLoadedAt {
LabeledContent("Last Synced") { Text(loaded.formatted(date: .omitted, time: .shortened)) }
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/CodeCaps/ZAIQuotaSettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ struct ZAIQuotaSettingsView: View {
}
if let status = controller.status { Text(status).font(.caption).foregroundStyle(.secondary) }
Text("Enter an existing Coding Plan API key for the selected region." + sentenceGap
+ "The key and region are saved together in this build’s Keychain.")
+ "The key and region are saved together in the Keychain on this Mac.")
.font(.caption).foregroundStyle(.secondary)
}
.disabled(controller.isWorking)
Expand Down
Loading