Skip to content

Commit 2907a8e

Browse files
akoclaude
andcommitted
chore: apply go fmt formatting
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 8ae45df commit 2907a8e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+219
-230
lines changed

cmd/mxcli/bson/registry.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ var TypeRegistry = map[string]reflect.Type{
1616
"Workflows$Annotation": reflect.TypeOf(metamodel.WorkflowsAnnotation{}),
1717
"Workflows$BezierCurve": reflect.TypeOf(metamodel.WorkflowsBezierCurve{}),
1818
"Workflows$BooleanCase": reflect.TypeOf(metamodel.WorkflowsBooleanCase{}),
19-
"Workflows$BooleanConditionOutcome": reflect.TypeOf(metamodel.WorkflowsBooleanConditionOutcome{}),
19+
"Workflows$BooleanConditionOutcome": reflect.TypeOf(metamodel.WorkflowsBooleanConditionOutcome{}),
2020
"Workflows$CallMicroflowTask": reflect.TypeOf(metamodel.WorkflowsCallMicroflowTask{}),
2121
"Workflows$CallWorkflowActivity": reflect.TypeOf(metamodel.WorkflowsCallWorkflowActivity{}),
2222
"Workflows$ConsensusCompletionCriteria": reflect.TypeOf(metamodel.WorkflowsConsensusCompletionCriteria{}),
2323
"Workflows$EndOfBoundaryEventPathActivity": reflect.TypeOf(metamodel.WorkflowsEndOfBoundaryEventPathActivity{}),
2424
"Workflows$EndOfParallelSplitPathActivity": reflect.TypeOf(metamodel.WorkflowsEndOfParallelSplitPathActivity{}),
2525
"Workflows$EndWorkflowActivity": reflect.TypeOf(metamodel.WorkflowsEndWorkflowActivity{}),
26-
"Workflows$EnumerationValueConditionOutcome": reflect.TypeOf(metamodel.WorkflowsEnumerationValueConditionOutcome{}),
26+
"Workflows$EnumerationValueConditionOutcome": reflect.TypeOf(metamodel.WorkflowsEnumerationValueConditionOutcome{}),
2727
"Workflows$ExclusiveSplitActivity": reflect.TypeOf(metamodel.WorkflowsExclusiveSplitActivity{}),
2828
"Workflows$FloatingAnnotation": reflect.TypeOf(metamodel.WorkflowsFloatingAnnotation{}),
2929
"Workflows$Flow": reflect.TypeOf(metamodel.WorkflowsFlow{}),

cmd/mxcli/cmd_new.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ Examples:
165165
// files map to the same locale key (e.g., "en-US").
166166
//
167167
// Studio Pro-created projects have locale files only at:
168-
// themesource/atlas_core/locales/<locale>/translation.json
168+
//
169+
// themesource/atlas_core/locales/<locale>/translation.json
169170
//
170171
// mx create-project additionally creates duplicates in nested subdirectories
171172
// (e.g., locales/en-US/atlas_core/locales/en-US/translation.json).

cmd/mxcli/cmd_widget_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ func TestGenerateDefJSON_AssociationAfterDataSource(t *testing.T) {
151151
ID: "com.example.AssocFirst",
152152
Name: "AssocFirst",
153153
Properties: []mpk.PropertyDef{
154-
{Key: "myAssoc", Type: "association"}, // association BEFORE datasource in MPK
154+
{Key: "myAssoc", Type: "association"}, // association BEFORE datasource in MPK
155155
{Key: "myLabel", Type: "string"},
156156
{Key: "myDS", Type: "datasource"},
157157
},

cmd/mxcli/lsp_diagnostics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ func runSemanticValidation(text string) []protocol.Diagnostic {
294294
},
295295
Severity: violationToLSPSeverity(v.Severity),
296296
Source: "mdl-check",
297-
Code: v.RuleID,
297+
Code: v.RuleID,
298298
Message: msg,
299299
})
300300
}

cmd/mxcli/tui/agent_listener.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,4 +172,3 @@ func (al *AgentListener) handleSyncAction(req AgentRequest) (AgentResponse, bool
172172
}
173173
return AgentResponse{}, false
174174
}
175-

cmd/mxcli/tui/agent_protocol.go

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
// AgentRequest is a JSON command from an external agent (e.g. Claude).
1010
type AgentRequest struct {
1111
ID int `json:"id"`
12-
Action string `json:"action"` // "exec", "check", "state", "navigate", "delete", "create_module", "format", "describe", "list"
12+
Action string `json:"action"` // "exec", "check", "state", "navigate", "delete", "create_module", "format", "describe", "list"
1313
MDL string `json:"mdl,omitempty"` // for "exec", "format"
1414
Target string `json:"target,omitempty"` // for "navigate", "delete", "describe", "list" (e.g. "entity:Module.Entity")
1515
Name string `json:"name,omitempty"` // for "create_module"
@@ -83,19 +83,19 @@ func buildAgentDescribeCmd(target string) (string, error) {
8383

8484
// listKeywords maps lowercase node type names to their MDL SHOW keyword(s).
8585
var listKeywords = map[string]string{
86-
"entities": "ENTITIES",
87-
"associations": "ASSOCIATIONS",
88-
"enumerations": "ENUMERATIONS",
89-
"constants": "CONSTANTS",
90-
"microflows": "MICROFLOWS",
91-
"nanoflows": "NANOFLOWS",
92-
"pages": "PAGES",
93-
"snippets": "SNIPPETS",
94-
"layouts": "LAYOUTS",
95-
"workflows": "WORKFLOWS",
96-
"modules": "MODULES",
86+
"entities": "ENTITIES",
87+
"associations": "ASSOCIATIONS",
88+
"enumerations": "ENUMERATIONS",
89+
"constants": "CONSTANTS",
90+
"microflows": "MICROFLOWS",
91+
"nanoflows": "NANOFLOWS",
92+
"pages": "PAGES",
93+
"snippets": "SNIPPETS",
94+
"layouts": "LAYOUTS",
95+
"workflows": "WORKFLOWS",
96+
"modules": "MODULES",
9797
"imagecollections": "IMAGE COLLECTIONS",
98-
"javaactions": "JAVA ACTIONS",
98+
"javaactions": "JAVA ACTIONS",
9999
}
100100

101101
// buildListCmd returns the MDL SHOW command for a target like "entities" or "entities:Module".

cmd/mxcli/tui/app.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,18 @@ type App struct {
4646
statusBar StatusBar
4747
previewEngine *PreviewEngine
4848

49-
watcher *Watcher
50-
checkErrors []CheckError // nil = no check run yet, empty = pass
51-
checkRunning bool
49+
watcher *Watcher
50+
checkErrors []CheckError // nil = no check run yet, empty = pass
51+
checkRunning bool
5252

5353
pendingSession *TUISession // session to restore after tree loads
5454

5555
agentListener *AgentListener
56-
agentAutoProceed bool // skip human confirmation for agent ops (set before tea.NewProgram)
57-
agentPending *agentPendingOp // non-nil when waiting for user confirmation
56+
agentAutoProceed bool // skip human confirmation for agent ops (set before tea.NewProgram)
57+
agentPending *agentPendingOp // non-nil when waiting for user confirmation
5858
agentCheckCh chan<- AgentResponse // non-nil when agent check is in-flight
59-
agentCheckReqID int // request ID for pending agent check
60-
agentExecCtx *agentExecContext // non-nil when agent-initiated exec/delete/create is in progress
59+
agentCheckReqID int // request ID for pending agent check
60+
agentExecCtx *agentExecContext // non-nil when agent-initiated exec/delete/create is in progress
6161
}
6262

6363
// agentPendingOp tracks an in-flight agent operation awaiting user confirmation.

cmd/mxcli/tui/browserview.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ type BrowserView struct {
1919
mxcliPath string
2020
projectPath string
2121
previewEngine *PreviewEngine
22-
2322
}
2423

2524
// NewBrowserView creates a BrowserView wrapping the Miller view from the given tab.

cmd/mxcli/tui/checker.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ type CheckGroup struct {
3333

3434
// CheckGroupItem represents a deduplicated location within a group.
3535
type CheckGroupItem struct {
36-
DocLocation string // formatted as "Module.DocName (Type)"
37-
ElementName string
38-
ElementID string
39-
Count int // occurrences of the same element-id
36+
DocLocation string // formatted as "Module.DocName (Type)"
37+
ElementName string
38+
ElementID string
39+
Count int // occurrences of the same element-id
4040
}
4141

4242
// CheckNavLocation represents a unique document location for error navigation.

cmd/mxcli/tui/column.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ type FilterState struct {
3434
active bool
3535
input textinput.Model
3636
query string
37-
matches []int // indices into items that match the query
38-
historyCursor int // -1 = editing new query, 0..n = browsing history
37+
matches []int // indices into items that match the query
38+
historyCursor int // -1 = editing new query, 0..n = browsing history
3939
draft string // user's typed text before browsing history
4040
}
4141

@@ -566,4 +566,3 @@ func (c *Column) deactivateFilter() {
566566
c.filter.input.Blur()
567567
c.rebuildFiltered()
568568
}
569-

0 commit comments

Comments
 (0)