agent-code 1.0.2__tar.gz → 1.0.3__tar.gz
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.
- {agent_code-1.0.2/src/agent_code.egg-info → agent_code-1.0.3}/PKG-INFO +1 -1
- {agent_code-1.0.2 → agent_code-1.0.3}/pyproject.toml +1 -1
- {agent_code-1.0.2 → agent_code-1.0.3}/src/agent_code/skill_manager.py +50 -2
- {agent_code-1.0.2 → agent_code-1.0.3/src/agent_code.egg-info}/PKG-INFO +1 -1
- {agent_code-1.0.2 → agent_code-1.0.3}/LICENSE +0 -0
- {agent_code-1.0.2 → agent_code-1.0.3}/LICENSE-GPL +0 -0
- {agent_code-1.0.2 → agent_code-1.0.3}/MANIFEST.in +0 -0
- {agent_code-1.0.2 → agent_code-1.0.3}/README.md +0 -0
- {agent_code-1.0.2 → agent_code-1.0.3}/setup.cfg +0 -0
- {agent_code-1.0.2 → agent_code-1.0.3}/src/agent_code/__init__.py +0 -0
- {agent_code-1.0.2 → agent_code-1.0.3}/src/agent_code/__main__.py +0 -0
- {agent_code-1.0.2 → agent_code-1.0.3}/src/agent_code/agent.py +0 -0
- {agent_code-1.0.2 → agent_code-1.0.3}/src/agent_code/cli.py +0 -0
- {agent_code-1.0.2 → agent_code-1.0.3}/src/agent_code/data/skills/browser/skill.md +0 -0
- {agent_code-1.0.2 → agent_code-1.0.3}/src/agent_code/data/skills/browser/skill.py +0 -0
- {agent_code-1.0.2 → agent_code-1.0.3}/src/agent_code/data/skills/filesystem/skill.md +0 -0
- {agent_code-1.0.2 → agent_code-1.0.3}/src/agent_code/data/skills/filesystem/skill.py +0 -0
- {agent_code-1.0.2 → agent_code-1.0.3}/src/agent_code/data/skills/public_api/skill.md +0 -0
- {agent_code-1.0.2 → agent_code-1.0.3}/src/agent_code/data/skills/public_api/skill.py +0 -0
- {agent_code-1.0.2 → agent_code-1.0.3}/src/agent_code/data/skills/temp_mail/skill.md +0 -0
- {agent_code-1.0.2 → agent_code-1.0.3}/src/agent_code/data/skills/temp_mail/skill.py +0 -0
- {agent_code-1.0.2 → agent_code-1.0.3}/src/agent_code/loader.py +0 -0
- {agent_code-1.0.2 → agent_code-1.0.3}/src/agent_code/paths.py +0 -0
- {agent_code-1.0.2 → agent_code-1.0.3}/src/agent_code.egg-info/SOURCES.txt +0 -0
- {agent_code-1.0.2 → agent_code-1.0.3}/src/agent_code.egg-info/dependency_links.txt +0 -0
- {agent_code-1.0.2 → agent_code-1.0.3}/src/agent_code.egg-info/entry_points.txt +0 -0
- {agent_code-1.0.2 → agent_code-1.0.3}/src/agent_code.egg-info/requires.txt +0 -0
- {agent_code-1.0.2 → agent_code-1.0.3}/src/agent_code.egg-info/top_level.txt +0 -0
|
@@ -799,8 +799,56 @@ class SkillStore(tk.Tk):
|
|
|
799
799
|
right_frame.pack(side="right", fill="y", padx=(12, 0))
|
|
800
800
|
right_frame.pack_propagate(False)
|
|
801
801
|
|
|
802
|
-
|
|
803
|
-
|
|
802
|
+
# --- NEW SCROLLABLE SETUP ---
|
|
803
|
+
canvas = tk.Canvas(right_frame, bg=BG_CARD, highlightthickness=0)
|
|
804
|
+
scrollbar = ttk.Scrollbar(right_frame, orient="vertical", command=canvas.yview)
|
|
805
|
+
canvas.configure(yscrollcommand=scrollbar.set)
|
|
806
|
+
|
|
807
|
+
scrollbar.pack(side="right", fill="y")
|
|
808
|
+
canvas.pack(side="left", fill="both", expand=True)
|
|
809
|
+
|
|
810
|
+
# Create a frame to hold the content inside the canvas
|
|
811
|
+
detail = tk.Frame(canvas, bg=BG_CARD)
|
|
812
|
+
canvas_window = canvas.create_window((0, 0), window=detail, anchor="nw")
|
|
813
|
+
|
|
814
|
+
# Add padding to the inner frame (replaces the old padx/pady)
|
|
815
|
+
pad_frame = tk.Frame(detail, bg=BG_CARD)
|
|
816
|
+
pad_frame.pack(fill="both", expand=True, padx=18, pady=18)
|
|
817
|
+
|
|
818
|
+
# Use pad_frame instead of detail for all child widgets
|
|
819
|
+
detail = pad_frame
|
|
820
|
+
|
|
821
|
+
# Update scrollregion when the size of the inner frame changes
|
|
822
|
+
def _configure_detail(event):
|
|
823
|
+
canvas.configure(scrollregion=canvas.bbox("all"))
|
|
824
|
+
detail.bind("<Configure>", _configure_detail)
|
|
825
|
+
|
|
826
|
+
# Make the inner frame stretch to the width of the canvas
|
|
827
|
+
def _configure_canvas(event):
|
|
828
|
+
canvas.itemconfig(canvas_window, width=event.width)
|
|
829
|
+
canvas.bind("<Configure>", _configure_canvas)
|
|
830
|
+
|
|
831
|
+
# Mousewheel scrolling support (Linux, Windows, macOS)
|
|
832
|
+
def _on_mousewheel(event):
|
|
833
|
+
if event.num == 5 or event.delta < 0:
|
|
834
|
+
canvas.yview_scroll(1, "units")
|
|
835
|
+
elif event.num == 4 or event.delta > 0:
|
|
836
|
+
canvas.yview_scroll(-1, "units")
|
|
837
|
+
|
|
838
|
+
# Bind mousewheel only when hovering over the detail panel
|
|
839
|
+
def _bind_mousewheel(event):
|
|
840
|
+
canvas.bind_all("<MouseWheel>", _on_mousewheel)
|
|
841
|
+
canvas.bind_all("<Button-4>", _on_mousewheel)
|
|
842
|
+
canvas.bind_all("<Button-5>", _on_mousewheel)
|
|
843
|
+
def _unbind_mousewheel(event):
|
|
844
|
+
canvas.unbind_all("<MouseWheel>")
|
|
845
|
+
canvas.unbind_all("<Button-4>")
|
|
846
|
+
canvas.unbind_all("<Button-5>")
|
|
847
|
+
|
|
848
|
+
canvas.bind("<Enter>", _bind_mousewheel)
|
|
849
|
+
canvas.bind("<Leave>", _unbind_mousewheel)
|
|
850
|
+
# --- END SCROLLABLE SETUP ---
|
|
851
|
+
|
|
804
852
|
self._detail_frame = detail
|
|
805
853
|
|
|
806
854
|
self.d_name = tk.Label(detail, text="Select a skill",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|