Skip to content

Commit ff2fb45

Browse files
committed
Reformat and other fixes
1 parent 7f64f75 commit ff2fb45

51 files changed

Lines changed: 435 additions & 288 deletions

Some content is hidden

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

CLAUDE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ This file provides guidance for Claude Code when working with this repository.
44

55
## Canonical Test Project Path
66

7-
**ALWAYS use:** `/Users/Dennis.Kho/Sandbox/KhodeClaudeLab-main/KhodeClaudeLab.mpr`
7+
**ALWAYS use:** `/Users/Dennis.Kho/Sandbox/ClaudeKhodeLab-main/ClaudeKhodeLab.mpr`
88

9-
A disposable test copy exists at `/tmp/KhodeClaudeLab-test/`**never use it for `mxcli exec` or write operations**. Before running any `mxcli -p <path> exec` command, verify the path starts with `/Users/Dennis.Kho/Sandbox/KhodeClaudeLab-main/`. If the path points to `/tmp/` or any other copy, stop and correct it first.
9+
A disposable test copy exists at `/tmp/KhodeClaudeLab-test/`**never use it for `mxcli exec` or write operations**. Before running any `mxcli -p <path> exec` command, verify the path starts with `/Users/Dennis.Kho/Sandbox/ClaudeKhodeLab-main/`. If the path points to `/tmp/` or any other copy, stop and correct it first.
1010

1111
## Project Overview
1212

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_lint.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,9 @@ Examples:
141141
lint.AddRule(rules.NewWeakPasswordPolicyRule())
142142
lint.AddRule(rules.NewDemoUsersActiveRule())
143143

144+
// MPR008 - requires BSON inspection
145+
lint.AddRule(rules.NewOverlappingActivitiesRule())
146+
144147
// Convention rules (CONV011-CONV014) - require BSON inspection
145148
lint.AddRule(rules.NewNoCommitInLoopRule())
146149
lint.AddRule(rules.NewExclusiveSplitCaptionRule())

cmd/mxcli/cmd_report.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ Examples:
101101
lint.AddRule(rules.NewWeakPasswordPolicyRule())
102102
lint.AddRule(rules.NewDemoUsersActiveRule())
103103

104+
// MPR008 - requires BSON inspection
105+
lint.AddRule(rules.NewOverlappingActivitiesRule())
106+
104107
// Convention rules (CONV011-CONV014)
105108
lint.AddRule(rules.NewNoCommitInLoopRule())
106109
lint.AddRule(rules.NewExclusiveSplitCaptionRule())

cmd/mxcli/cmd_widget.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ func generateDefJSON(mpkDef *mpk.WidgetDefinition, mdlName string) *executor.Wid
177177
mapping.Value = prop.DefaultValue
178178
}
179179
mappings = append(mappings, mapping)
180-
// Skip action, expression, textTemplate, object, icon, image, file — too complex for auto-mapping
180+
// Skip action, expression, textTemplate, object, icon, image, file — too complex for auto-mapping
181181
}
182182
}
183183

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
@@ -52,18 +52,18 @@ type App struct {
5252
statusBar StatusBar
5353
previewEngine *PreviewEngine
5454

55-
watcher *Watcher
56-
checkErrors []CheckError // nil = no check run yet, empty = pass
57-
checkRunning bool
55+
watcher *Watcher
56+
checkErrors []CheckError // nil = no check run yet, empty = pass
57+
checkRunning bool
5858

5959
pendingSession *TUISession // session to restore after tree loads
6060

6161
agentListener *AgentListener
62-
agentAutoProceed bool // skip human confirmation for agent ops (set before tea.NewProgram)
63-
agentPending *agentPendingOp // non-nil when waiting for user confirmation
62+
agentAutoProceed bool // skip human confirmation for agent ops (set before tea.NewProgram)
63+
agentPending *agentPendingOp // non-nil when waiting for user confirmation
6464
agentCheckCh chan<- AgentResponse // non-nil when agent check is in-flight
65-
agentCheckReqID int // request ID for pending agent check
66-
agentExecCtx *agentExecContext // non-nil when agent-initiated exec/delete/create is in progress
65+
agentCheckReqID int // request ID for pending agent check
66+
agentExecCtx *agentExecContext // non-nil when agent-initiated exec/delete/create is in progress
6767
}
6868

6969
// 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.

0 commit comments

Comments
 (0)