diff --git a/AGENTS.md b/AGENTS.md index d4eac2f5d9a..7da218d4945 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -259,7 +259,7 @@ type Version string type FeatureFlag string const MaxExpressionLineLength LineLength = 120 -const DefaultCopilotVersion Version = "0.0.369" +const DefaultCopilotVersion Version = "0.0.372" const MCPGatewayFeatureFlag FeatureFlag = "mcp-gateway" ``` diff --git a/pkg/constants/constants.go b/pkg/constants/constants.go index 1d8f3f1e0ed..47579f3c1b1 100644 --- a/pkg/constants/constants.go +++ b/pkg/constants/constants.go @@ -45,6 +45,13 @@ type LineLength int type Version string // FeatureFlag represents a feature flag identifier. +// This semantic type distinguishes feature flag names from arbitrary strings, +// providing type safety when working with feature toggles throughout the codebase. +// +// Example usage: +// +// const MCPGatewayFeatureFlag FeatureFlag = "mcp-gateway" +// func IsFeatureEnabled(flag FeatureFlag) bool { ... } type FeatureFlag string // MaxExpressionLineLength is the maximum length for a single line expression before breaking into multiline. diff --git a/pkg/parser/schemas/main_workflow_schema.json b/pkg/parser/schemas/main_workflow_schema.json index 510479189b5..0f5ed15ae29 100644 --- a/pkg/parser/schemas/main_workflow_schema.json +++ b/pkg/parser/schemas/main_workflow_schema.json @@ -285,10 +285,7 @@ }, { "not": { - "anyOf": [ - { "required": ["branches"] }, - { "required": ["branches-ignore"] } - ] + "anyOf": [{ "required": ["branches"] }, { "required": ["branches-ignore"] }] } } ], @@ -305,10 +302,7 @@ }, { "not": { - "anyOf": [ - { "required": ["paths"] }, - { "required": ["paths-ignore"] } - ] + "anyOf": [{ "required": ["paths"] }, { "required": ["paths-ignore"] }] } } ] @@ -431,10 +425,7 @@ }, { "not": { - "anyOf": [ - { "required": ["branches"] }, - { "required": ["branches-ignore"] } - ] + "anyOf": [{ "required": ["branches"] }, { "required": ["branches-ignore"] }] } } ], @@ -451,10 +442,7 @@ }, { "not": { - "anyOf": [ - { "required": ["paths"] }, - { "required": ["paths-ignore"] } - ] + "anyOf": [{ "required": ["paths"] }, { "required": ["paths-ignore"] }] } } ] @@ -669,10 +657,7 @@ }, { "not": { - "anyOf": [ - { "required": ["branches"] }, - { "required": ["branches-ignore"] } - ] + "anyOf": [{ "required": ["branches"] }, { "required": ["branches-ignore"] }] } } ] @@ -996,10 +981,7 @@ }, { "not": { - "anyOf": [ - { "required": ["branches"] }, - { "required": ["branches-ignore"] } - ] + "anyOf": [{ "required": ["branches"] }, { "required": ["branches-ignore"] }] } } ], @@ -1016,10 +998,7 @@ }, { "not": { - "anyOf": [ - { "required": ["paths"] }, - { "required": ["paths-ignore"] } - ] + "anyOf": [{ "required": ["paths"] }, { "required": ["paths-ignore"] }] } } ] diff --git a/specs/go-type-patterns.md b/specs/go-type-patterns.md index 136548029c5..edfeeb3a80e 100644 --- a/specs/go-type-patterns.md +++ b/specs/go-type-patterns.md @@ -77,10 +77,10 @@ if len(expression) > int(constants.MaxExpressionLineLength) { type Version string // DefaultCopilotVersion is the default version of the GitHub Copilot CLI -const DefaultCopilotVersion Version = "0.0.369" +const DefaultCopilotVersion Version = "0.0.372" // DefaultClaudeCodeVersion is the default version of the Claude Code CLI -const DefaultClaudeCodeVersion Version = "2.0.71" +const DefaultClaudeCodeVersion Version = "2.0.76" ``` **Benefits**: