claudekit-cli 3.40.3-dev.1 → 3.40.3-dev.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -42376,7 +42376,7 @@ function normalizeCkConfigInput(value) {
42376
42376
  }
42377
42377
  return normalized;
42378
42378
  }
42379
- var PlanValidationModeSchema, PlanFocusAreaSchema, PlanResolutionOrderSchema, ProjectTypeSchema, PackageManagerSchema, FrameworkSchema, GEMINI_MODEL_VALUES, LEGACY_GEMINI_MODEL_ALIASES, GeminiModelSchema, StatuslineModeSchema, StatuslineSectionIdSchema, StatuslineSectionSchema, StatuslineThemeSchema, StatuslineLayoutSchema, CodingLevelSchema, PlanResolutionSchema, PlanValidationSchema, CkPlanConfigSchema, CkDocsConfigSchema, CkPathsConfigSchema, CkLocaleConfigSchema, CkTrustConfigSchema, CkProjectConfigSchema, CkGeminiConfigSchema, CkSkillsConfigSchema, UpdatePipelineSchema, ResolvedModelConfigSchema, ModelTierMapSchema, CkModelTaxonomySchema, CkAssertionSchema, CkHooksConfigSchema, CkConfigSchema, DEFAULT_CK_CONFIG, CK_HOOK_NAMES;
42379
+ var PlanValidationModeSchema, PlanFocusAreaSchema, PlanResolutionOrderSchema, ProjectTypeSchema, PackageManagerSchema, FrameworkSchema, GEMINI_MODEL_VALUES, LEGACY_GEMINI_MODEL_ALIASES, GeminiModelSchema, StatuslineModeSchema, StatuslineSectionIdSchema, StatuslineSectionConfigSchema, StatuslineThemeSchema, StatuslineLayoutSchema, CodingLevelSchema, PlanResolutionSchema, PlanValidationSchema, CkPlanConfigSchema, CkDocsConfigSchema, CkPathsConfigSchema, CkLocaleConfigSchema, CkTrustConfigSchema, CkProjectConfigSchema, CkGeminiConfigSchema, CkSkillsConfigSchema, UpdatePipelineSchema, ResolvedModelConfigSchema, ModelTierMapSchema, CkModelTaxonomySchema, CkAssertionSchema, CkHooksConfigSchema, CkConfigSchema, DEFAULT_CK_CONFIG, CK_HOOK_NAMES;
42380
42380
  var init_ck_config = __esm(() => {
42381
42381
  init_zod();
42382
42382
  PlanValidationModeSchema = exports_external.enum(["prompt", "auto", "strict", "none"]);
@@ -42440,10 +42440,7 @@ var init_ck_config = __esm(() => {
42440
42440
  "agents",
42441
42441
  "todos"
42442
42442
  ]);
42443
- StatuslineSectionSchema = exports_external.object({
42444
- id: StatuslineSectionIdSchema,
42445
- enabled: exports_external.boolean().default(true),
42446
- order: exports_external.number().int().min(0).max(99),
42443
+ StatuslineSectionConfigSchema = exports_external.object({
42447
42444
  icon: exports_external.string().max(20).optional(),
42448
42445
  label: exports_external.string().max(50).optional(),
42449
42446
  color: exports_external.string().max(30).regex(/^[a-zA-Z]+$/).optional(),
@@ -42460,9 +42457,8 @@ var init_ck_config = __esm(() => {
42460
42457
  });
42461
42458
  StatuslineLayoutSchema = exports_external.object({
42462
42459
  baseMode: StatuslineModeSchema.default("full"),
42463
- sections: exports_external.array(StatuslineSectionSchema).max(9).refine((arr) => new Set(arr.map((s) => s.id)).size === arr.length, {
42464
- message: "Section IDs must be unique"
42465
- }).optional(),
42460
+ lines: exports_external.array(exports_external.array(StatuslineSectionIdSchema)).max(10).optional(),
42461
+ sectionConfig: exports_external.record(exports_external.string(), StatuslineSectionConfigSchema).optional(),
42466
42462
  theme: StatuslineThemeSchema.optional(),
42467
42463
  responsiveBreakpoint: exports_external.number().min(0.5).max(1).default(0.85),
42468
42464
  maxAgentRows: exports_external.number().int().min(1).max(10).default(4),
@@ -42650,19 +42646,23 @@ var init_ck_config = __esm(() => {
42650
42646
  });
42651
42647
 
42652
42648
  // src/types/statusline-section-defaults.ts
42653
- var DEFAULT_STATUSLINE_SECTIONS, SECTION_LABELS, SECTION_DESCRIPTIONS;
42649
+ var DEFAULT_STATUSLINE_LINES, DEFAULT_SECTION_CONFIG, SECTION_LABELS, SECTION_DESCRIPTIONS;
42654
42650
  var init_statusline_section_defaults = __esm(() => {
42655
- DEFAULT_STATUSLINE_SECTIONS = [
42656
- { id: "model", enabled: true, order: 0, icon: "\uD83E\uDD16" },
42657
- { id: "context", enabled: true, order: 1 },
42658
- { id: "quota", enabled: true, order: 2, icon: "" },
42659
- { id: "directory", enabled: true, order: 3, icon: "\uD83D\uDCC1" },
42660
- { id: "git", enabled: true, order: 4, icon: "\uD83C\uDF3F" },
42661
- { id: "cost", enabled: true, order: 5, icon: "\uD83D\uDCB0" },
42662
- { id: "changes", enabled: true, order: 6, icon: "\uD83D\uDCDD" },
42663
- { id: "agents", enabled: true, order: 7, icon: "\uD83D\uDD04" },
42664
- { id: "todos", enabled: true, order: 8, icon: "✅" }
42651
+ DEFAULT_STATUSLINE_LINES = [
42652
+ ["model", "context", "quota"],
42653
+ ["directory", "git", "cost", "changes"],
42654
+ ["agents", "todos"]
42665
42655
  ];
42656
+ DEFAULT_SECTION_CONFIG = {
42657
+ model: { icon: "\uD83E\uDD16" },
42658
+ quota: { icon: "⌛" },
42659
+ directory: { icon: "\uD83D\uDCC1" },
42660
+ git: { icon: "\uD83C\uDF3F" },
42661
+ cost: { icon: "\uD83D\uDCB0" },
42662
+ changes: { icon: "\uD83D\uDCDD" },
42663
+ agents: { icon: "\uD83D\uDD04" },
42664
+ todos: { icon: "✅" }
42665
+ };
42666
42666
  SECTION_LABELS = {
42667
42667
  model: "Model",
42668
42668
  context: "Context Window",
@@ -42702,8 +42702,8 @@ __export(exports_types, {
42702
42702
  USER_CONFIG_PATTERNS: () => USER_CONFIG_PATTERNS,
42703
42703
  TrackedFileSchema: () => TrackedFileSchema,
42704
42704
  StatuslineThemeSchema: () => StatuslineThemeSchema,
42705
- StatuslineSectionSchema: () => StatuslineSectionSchema,
42706
42705
  StatuslineSectionIdSchema: () => StatuslineSectionIdSchema,
42706
+ StatuslineSectionConfigSchema: () => StatuslineSectionConfigSchema,
42707
42707
  StatuslineModeSchema: () => StatuslineModeSchema,
42708
42708
  StatuslineLayoutSchema: () => StatuslineLayoutSchema,
42709
42709
  SkillsMigrationError: () => SkillsMigrationError,
@@ -42744,7 +42744,8 @@ __export(exports_types, {
42744
42744
  ExtractionError: () => ExtractionError,
42745
42745
  ExcludePatternSchema: () => ExcludePatternSchema,
42746
42746
  DownloadError: () => DownloadError,
42747
- DEFAULT_STATUSLINE_SECTIONS: () => DEFAULT_STATUSLINE_SECTIONS,
42747
+ DEFAULT_STATUSLINE_LINES: () => DEFAULT_STATUSLINE_LINES,
42748
+ DEFAULT_SECTION_CONFIG: () => DEFAULT_SECTION_CONFIG,
42748
42749
  DEFAULT_PROJECTS_REGISTRY: () => DEFAULT_PROJECTS_REGISTRY,
42749
42750
  DEFAULT_FOLDERS: () => DEFAULT_FOLDERS,
42750
42751
  DEFAULT_CK_CONFIG: () => DEFAULT_CK_CONFIG,
@@ -48651,39 +48652,34 @@ var init_ck_config_schema = __esm(() => {
48651
48652
  default: "full",
48652
48653
  description: "Starting template mode for the layout"
48653
48654
  },
48654
- sections: {
48655
+ lines: {
48655
48656
  type: "array",
48656
- description: "Ordered section configurations. Section IDs must be unique (enforced at runtime by the Zod schema, not JSON Schema).",
48657
+ description: "Layout lines. Each inner array is one terminal row containing section IDs in left-to-right order. Sections not listed in any line are hidden.",
48657
48658
  items: {
48659
+ type: "array",
48660
+ items: {
48661
+ type: "string",
48662
+ enum: [
48663
+ "model",
48664
+ "context",
48665
+ "quota",
48666
+ "directory",
48667
+ "git",
48668
+ "cost",
48669
+ "changes",
48670
+ "agents",
48671
+ "todos"
48672
+ ]
48673
+ }
48674
+ },
48675
+ maxItems: 10
48676
+ },
48677
+ sectionConfig: {
48678
+ type: "object",
48679
+ description: "Per-section visual customization keyed by section ID.",
48680
+ additionalProperties: {
48658
48681
  type: "object",
48659
- required: ["id", "order"],
48660
48682
  properties: {
48661
- id: {
48662
- type: "string",
48663
- enum: [
48664
- "model",
48665
- "context",
48666
- "quota",
48667
- "directory",
48668
- "git",
48669
- "cost",
48670
- "changes",
48671
- "agents",
48672
- "todos"
48673
- ],
48674
- description: "Section identifier"
48675
- },
48676
- enabled: {
48677
- type: "boolean",
48678
- default: true,
48679
- description: "Whether this section is visible"
48680
- },
48681
- order: {
48682
- type: "integer",
48683
- minimum: 0,
48684
- description: "Display position (0-indexed)",
48685
- maximum: 99
48686
- },
48687
48683
  icon: {
48688
48684
  type: "string",
48689
48685
  description: "Custom emoji/icon override",
@@ -48708,8 +48704,7 @@ var init_ck_config_schema = __esm(() => {
48708
48704
  }
48709
48705
  },
48710
48706
  additionalProperties: false
48711
- },
48712
- maxItems: 9
48707
+ }
48713
48708
  },
48714
48709
  theme: {
48715
48710
  type: "object",
@@ -49065,6 +49060,10 @@ function registerCkConfigRoutes(app) {
49065
49060
  await CkConfigManager.updateField(fieldPath, value, scope, projectDir);
49066
49061
  res.json({ success: true, fieldPath, value, scope });
49067
49062
  } catch (error) {
49063
+ if (error instanceof ZodError) {
49064
+ res.status(400).json({ error: "Validation failed", issues: error.issues });
49065
+ return;
49066
+ }
49068
49067
  logger.error(`Failed to update ck-config field: ${error}`);
49069
49068
  res.status(500).json({ error: "Failed to update field" });
49070
49069
  }
@@ -49094,6 +49093,7 @@ var init_ck_config_routes = __esm(() => {
49094
49093
  init_logger();
49095
49094
  init_path_resolver();
49096
49095
  init_types3();
49096
+ init_zod();
49097
49097
  });
49098
49098
 
49099
49099
  // src/domains/web-server/routes/health-routes.ts
@@ -57581,7 +57581,7 @@ var package_default;
57581
57581
  var init_package = __esm(() => {
57582
57582
  package_default = {
57583
57583
  name: "claudekit-cli",
57584
- version: "3.40.3-dev.1",
57584
+ version: "3.40.3-dev.2",
57585
57585
  description: "CLI tool for bootstrapping and updating ClaudeKit projects",
57586
57586
  type: "module",
57587
57587
  repository: {