zugzbot 1.0.26 → 1.0.28

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.
@@ -137,6 +137,7 @@ const PluginTuiSidebar: TuiPlugin = async (api) => {
137
137
 
138
138
  const getContractName = (filePath: string): string => {
139
139
  if (!filePath) return "Ninguno";
140
+ if (filePath.includes("fast-track")) return "Modo Libre (Fast-Track)";
140
141
  const parts = filePath.split("/");
141
142
  const folder = parts[parts.length - 2] || "";
142
143
  const match = folder.match(/^\d{4}_\d+_(.+)$/);
@@ -553,35 +554,46 @@ const PluginTuiSidebar: TuiPlugin = async (api) => {
553
554
  })()}
554
555
 
555
556
  {/* Vertical roadmap list */}
556
- <box gap={0} paddingTop={0}>
557
- {PHASE_ORDER.map((phase) => {
558
- const current = sddState()?.phase ?? "F0_DETECT"
559
- const curIdx = PHASE_ORDER.indexOf(current)
560
- const myIdx = PHASE_ORDER.indexOf(phase)
561
-
562
- const isActive = current === phase
563
- const isCompleted = curIdx > myIdx
564
-
565
- let prefix = "[ ]"
566
- let color = api.theme.current.textMuted
567
- if (isCompleted) {
568
- prefix = "[✓]"
569
- color = api.theme.current.success
570
- } else if (isActive) {
571
- prefix = "[O]"
572
- color = "#FF7300"
573
- }
574
-
575
- const agentSuffix = isActive ? ` (${SUBAGENT_FOR_PHASE[phase]})` : ""
576
- const lineText = `${prefix} ${PHASE_LABELS[phase]}${agentSuffix}`
577
-
578
- return (
579
- <text fg={color} paddingTop={0}>
580
- {truncate(lineText, 34)}
581
- </text>
582
- )
583
- })}
584
- </box>
557
+ {sddState()?.activeContract?.includes("fast-track") ? (
558
+ <box gap={0} paddingTop={0}>
559
+ <text fg="#5AC8FA" paddingTop={0}>
560
+ {"• Modo Libre de Edición"}
561
+ </text>
562
+ <text fg="#FF7300" paddingTop={0}>
563
+ {`• Agente activo: ${SUBAGENT_FOR_PHASE[sddState()?.phase || "F2_IMPLEMENTATION"] || "@coder"}`}
564
+ </text>
565
+ </box>
566
+ ) : (
567
+ <box gap={0} paddingTop={0}>
568
+ {PHASE_ORDER.map((phase) => {
569
+ const current = sddState()?.phase ?? "F0_DETECT"
570
+ const curIdx = PHASE_ORDER.indexOf(current)
571
+ const myIdx = PHASE_ORDER.indexOf(phase)
572
+
573
+ const isActive = current === phase
574
+ const isCompleted = curIdx > myIdx
575
+
576
+ let prefix = "[ ]"
577
+ let color = api.theme.current.textMuted
578
+ if (isCompleted) {
579
+ prefix = "[✓]"
580
+ color = api.theme.current.success
581
+ } else if (isActive) {
582
+ prefix = "[O]"
583
+ color = "#FF7300"
584
+ }
585
+
586
+ const agentSuffix = isActive ? ` (${SUBAGENT_FOR_PHASE[phase]})` : ""
587
+ const lineText = `${prefix} ${PHASE_LABELS[phase]}${agentSuffix}`
588
+
589
+ return (
590
+ <text fg={color} paddingTop={0}>
591
+ {truncate(lineText, 34)}
592
+ </text>
593
+ )
594
+ })}
595
+ </box>
596
+ )}
585
597
 
586
598
  {/* Git branch info */}
587
599
  {(sddState()?.git?.branch && sddState()?.git?.branch !== "—") ? (
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zugzbot",
3
- "version": "1.0.26",
3
+ "version": "1.0.28",
4
4
  "description": "Fácil instalador del arnés SDD de Zugzbot para proyectos OpenCode",
5
5
  "type": "module",
6
6
  "bin": {