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 cmd/mcp-rental-listings/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ import (

// listing is the normalized response shape.
type listing struct {
Source string `json:"source"`
ListingID string `json:"listing_id"`
Title string `json:"title"`
City string `json:"city"`
Country string `json:"country"`
Source string `json:"source"`
ListingID string `json:"listing_id"`
Title string `json:"title"`
City string `json:"city"`
Country string `json:"country"`
MonthlyRent float64 `json:"monthly_rent"`
Currency string `json:"currency"`
ContactPhone string `json:"contact_phone,omitempty"`
ListingURL string `json:"listing_url,omitempty"`
Currency string `json:"currency"`
ContactPhone string `json:"contact_phone,omitempty"`
ListingURL string `json:"listing_url,omitempty"`
}

// validateURL keeps us from accidentally crawling private nets.
Expand Down
14 changes: 7 additions & 7 deletions internal/archival/landing/page.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ import "fmt"

// Citation is the metadata that drives the landing page.
type Citation struct {
DOI string
Year int
URL string
Title string
Bytes int64
Records int
SHA256 string
DOI string
Year int
URL string
Title string
Bytes int64
Records int
SHA256 string
}

// BibTeX returns the BibTeX entry.
Expand Down
8 changes: 4 additions & 4 deletions internal/archival/snapshot/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import "time"

// Spec drives a snapshot export.
type Spec struct {
Year int
Region string
DestBucket string
StoreClass string // "cold", "deep-archive", "tape"
Year int
Region string
DestBucket string
StoreClass string // "cold", "deep-archive", "tape"
}

// Result is the produced artifact.
Expand Down
2 changes: 1 addition & 1 deletion internal/archival/timemachine/asof.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type Query struct {

// Resolver maps an AsOf date to the storage paths that cover it.
type Resolver struct {
AnnualArchives map[int]string // year -> archive URL
AnnualArchives map[int]string // year -> archive URL
MonthlyDeltas map[string]string // "2026-05" -> delta URL
}

Expand Down
2 changes: 1 addition & 1 deletion internal/callerid/power/aware.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ package power
type Mode string

const (
ModeNormal Mode = "normal"
ModeNormal Mode = "normal"
ModeBatterySaver Mode = "battery_saver"
)

Expand Down
8 changes: 4 additions & 4 deletions internal/capacity/alumni/alumni.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import "time"

// Member is one alumni record.
type Member struct {
ID string
OperatorID string
LeftAt time.Time
Reason string
ID string
OperatorID string
LeftAt time.Time
Reason string
StayConnected bool
}

Expand Down
4 changes: 2 additions & 2 deletions internal/capacity/groups/regional.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ package groups

// Region is a working group region.
type Region struct {
ID string
Name string
ID string
Name string
Coordinator string
}

Expand Down
6 changes: 3 additions & 3 deletions internal/capacity/mentor/match.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import "strings"

// Operator is one operator profile.
type Operator struct {
ID string
Country string
Region string
ID string
Country string
Region string
Languages []string
IsMentor bool
OpenSlots int
Expand Down
10 changes: 5 additions & 5 deletions internal/capacity/metrics/partner.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import "time"

// Snapshot is one per-partner measurement.
type Snapshot struct {
PartnerID string
At time.Time
VerdictsLast30d int
PartnerID string
At time.Time
VerdictsLast30d int
UniqueUsersLast30d int
UnresolvedAppeals int
MentorshipMinutes int
UnresolvedAppeals int
MentorshipMinutes int
}

// Healthy reports whether the partner is hitting the soft floors. A
Expand Down
8 changes: 4 additions & 4 deletions internal/capacity/onboarding/selfserve.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import "time"

// Step is one step in the partner self-serve flow.
type Step struct {
ID string
Title string
EstMinutes int
Order int
ID string
Title string
EstMinutes int
Order int
}

// Defaults returns the canonical ordered steps.
Expand Down
6 changes: 3 additions & 3 deletions internal/compliance/audit/iso27001.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func Defaults() []Retention {
// ISO 27001 controls. The verifier walks the chain and recomputes
// hashes.
type IntegrityCheck struct {
At time.Time
EntriesChecked int
BrokenAt int // -1 if intact
At time.Time
EntriesChecked int
BrokenAt int // -1 if intact
}
6 changes: 3 additions & 3 deletions internal/compliance/dpdpa/consent.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import "time"
type Purpose string

const (
PurposeVerdict Purpose = "verdict-generation"
PurposeResearch Purpose = "research-sharing"
PurposeRegulator Purpose = "regulator-forwarding"
PurposeVerdict Purpose = "verdict-generation"
PurposeResearch Purpose = "research-sharing"
PurposeRegulator Purpose = "regulator-forwarding"
PurposeImproveAgent Purpose = "improve-agent"
)

Expand Down
4 changes: 2 additions & 2 deletions internal/compliance/pdpl/residency.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ const (

// TransferDecision is the outcome of a cross-border check.
type TransferDecision struct {
Allowed bool
Mechanism string // "adequacy", "scc", "consent", "data-localised"
Allowed bool
Mechanism string // "adequacy", "scc", "consent", "data-localised"
JustificationRequired bool
}

Expand Down
14 changes: 7 additions & 7 deletions internal/defense/effectiveness/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ type Row struct {

// Summary is the monthly aggregate.
type Summary struct {
Month time.Month
Year int
Total int
Accepted int
Rejected int
Ignored int
Respawned int
Month time.Month
Year int
Total int
Accepted int
Rejected int
Ignored int
Respawned int
MedianHoursOnline int
}

Expand Down
12 changes: 6 additions & 6 deletions internal/defense/takedown/registrar.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ import (

// Packet is the assembled report.
type Packet struct {
Registrar string
Domain string
ReportedAt time.Time
Evidence []Evidence
ContactEmail string
ContactOrg string
Registrar string
Domain string
ReportedAt time.Time
Evidence []Evidence
ContactEmail string
ContactOrg string
}

// Evidence is one item attached to the packet.
Expand Down
4 changes: 2 additions & 2 deletions internal/edu/commission/illegal.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ package commission

// Rule captures the per-country position on student-paid commissions.
type Rule struct {
Country string
Country string
StudentMaxFeeUSD float64
Notes string
Notes string
}

// Defaults is a seed table.
Expand Down
12 changes: 6 additions & 6 deletions internal/edu/ngo/partner.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import "time"

// Partner is a student association running an edu instance.
type Partner struct {
ID string
Name string
Country string
Logo string
Theme string
Members int
ID string
Name string
Country string
Logo string
Theme string
Members int
ActivatedAt time.Time
}

Expand Down
10 changes: 5 additions & 5 deletions internal/edu/rules/millpack.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ type Flag struct {

// Submission is the input.
type Submission struct {
Institution string
Program string
OffersLifeExperience bool
AccreditorClaim string
Institution string
Program string
OffersLifeExperience bool
AccreditorClaim string
UnaccreditedConfirmed bool
WebsiteAgeDays int
WebsiteAgeDays int
UncorroboratedProgram bool
}

Expand Down
12 changes: 6 additions & 6 deletions internal/embassy/analytics/aggregate.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import "time"

// WeekStats is one week of activity for one kiosk.
type WeekStats struct {
KioskID string
WeekStart time.Time
Sessions int
GreenVerdicts int
YellowVerdicts int
RedVerdicts int
KioskID string
WeekStart time.Time
Sessions int
GreenVerdicts int
YellowVerdicts int
RedVerdicts int
OverridesByOfficer int
AvgSessionSeconds int
}
Expand Down
4 changes: 2 additions & 2 deletions internal/embassy/checklist/green.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import "io"

// Item is one checklist line.
type Item struct {
Code string
Label string
Code string
Label string
Mandatory bool
}

Expand Down
10 changes: 5 additions & 5 deletions internal/embassy/fleet/fleet.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import (

// Kiosk is one deployed device.
type Kiosk struct {
ID string
Embassy string
Country string
Version string
LastHeartbeat time.Time
ID string
Embassy string
Country string
Version string
LastHeartbeat time.Time
OnlineHours24h int
}

Expand Down
12 changes: 6 additions & 6 deletions internal/embassy/officer/mode.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ type Note struct {

// Override records an officer-issued change to a verdict band.
type Override struct {
OfficerID string
At time.Time
FromBand string
ToBand string
Reason string
VerdictID string
OfficerID string
At time.Time
FromBand string
ToBand string
Reason string
VerdictID string
}

// ValidateOverride enforces that an officer override has a documented
Expand Down
12 changes: 6 additions & 6 deletions internal/embassy/printer/escpos.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ import (

// Command bytes per the ESC/POS reference manual.
var (
cmdInit = []byte{0x1B, 0x40}
cmdBoldOn = []byte{0x1B, 0x45, 0x01}
cmdBoldOff = []byte{0x1B, 0x45, 0x00}
cmdCenter = []byte{0x1B, 0x61, 0x01}
cmdLeft = []byte{0x1B, 0x61, 0x00}
cmdCut = []byte{0x1D, 0x56, 0x00}
cmdInit = []byte{0x1B, 0x40}
cmdBoldOn = []byte{0x1B, 0x45, 0x01}
cmdBoldOff = []byte{0x1B, 0x45, 0x00}
cmdCenter = []byte{0x1B, 0x61, 0x01}
cmdLeft = []byte{0x1B, 0x61, 0x00}
cmdCut = []byte{0x1D, 0x56, 0x00}
)

// Printer is a minimal wrapper.
Expand Down
14 changes: 7 additions & 7 deletions internal/greenops/benchmarks/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@ import "time"

// Row is one per-release measurement.
type Row struct {
Release string
CapturedAt time.Time
JoulesPerVerdict float64
TokensPerVerdict int
Release string
CapturedAt time.Time
JoulesPerVerdict float64
TokensPerVerdict int
MCPCallsPerVerdict int
GramsCO2PerVerdict float64
}

// Regression is the per-axis tolerance.
type Regression struct {
JoulesPctMax float64
TokensPctMax float64
JoulesPctMax float64
TokensPctMax float64
MCPCallsPctMax float64
CO2PctMax float64
CO2PctMax float64
}

// Default is the tolerance Joblantern publishes — small regressions
Expand Down
4 changes: 2 additions & 2 deletions internal/greenops/colocation/region.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ package colocation

// Region is a colocation candidate.
type Region struct {
ID string
Name string
ID string
Name string
GridGCO2PerKWh float64
}

Expand Down
Loading
Loading