ccmd 2.0.6__tar.gz → 2.0.7__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.
- {ccmd-2.0.6/ccmd.egg-info → ccmd-2.0.7}/PKG-INFO +1 -1
- {ccmd-2.0.6 → ccmd-2.0.7}/ccmd/__init__.py +1 -1
- {ccmd-2.0.6 → ccmd-2.0.7}/ccmd/core/shell_cmds.py +17 -12
- {ccmd-2.0.6 → ccmd-2.0.7/ccmd.egg-info}/PKG-INFO +1 -1
- {ccmd-2.0.6 → ccmd-2.0.7}/pyproject.toml +1 -1
- {ccmd-2.0.6 → ccmd-2.0.7}/LICENSE +0 -0
- {ccmd-2.0.6 → ccmd-2.0.7}/MANIFEST.in +0 -0
- {ccmd-2.0.6 → ccmd-2.0.7}/README.md +0 -0
- {ccmd-2.0.6 → ccmd-2.0.7}/ccmd/__main__.py +0 -0
- {ccmd-2.0.6 → ccmd-2.0.7}/ccmd/cli.py +0 -0
- {ccmd-2.0.6 → ccmd-2.0.7}/ccmd/config/__init__.py +0 -0
- {ccmd-2.0.6 → ccmd-2.0.7}/ccmd/config/paths.py +0 -0
- {ccmd-2.0.6 → ccmd-2.0.7}/ccmd/config/schema.py +0 -0
- {ccmd-2.0.6 → ccmd-2.0.7}/ccmd/core/__init__.py +0 -0
- {ccmd-2.0.6 → ccmd-2.0.7}/ccmd/core/agents/__init__.py +0 -0
- {ccmd-2.0.6 → ccmd-2.0.7}/ccmd/core/agents/aider.py +0 -0
- {ccmd-2.0.6 → ccmd-2.0.7}/ccmd/core/agents/base.py +0 -0
- {ccmd-2.0.6 → ccmd-2.0.7}/ccmd/core/agents/chatgpt.py +0 -0
- {ccmd-2.0.6 → ccmd-2.0.7}/ccmd/core/agents/claude.py +0 -0
- {ccmd-2.0.6 → ccmd-2.0.7}/ccmd/core/agents/codex.py +0 -0
- {ccmd-2.0.6 → ccmd-2.0.7}/ccmd/core/agents/cursor.py +0 -0
- {ccmd-2.0.6 → ccmd-2.0.7}/ccmd/core/agents/goose.py +0 -0
- {ccmd-2.0.6 → ccmd-2.0.7}/ccmd/core/agents/grok.py +0 -0
- {ccmd-2.0.6 → ccmd-2.0.7}/ccmd/core/fs.py +0 -0
- {ccmd-2.0.6 → ccmd-2.0.7}/ccmd/core/launcher.py +0 -0
- {ccmd-2.0.6 → ccmd-2.0.7}/ccmd/core/migrate.py +0 -0
- {ccmd-2.0.6 → ccmd-2.0.7}/ccmd/core/profiles.py +0 -0
- {ccmd-2.0.6 → ccmd-2.0.7}/ccmd/core/projects.py +0 -0
- {ccmd-2.0.6 → ccmd-2.0.7}/ccmd/core/scan.py +0 -0
- {ccmd-2.0.6 → ccmd-2.0.7}/ccmd/core/sessions.py +0 -0
- {ccmd-2.0.6 → ccmd-2.0.7}/ccmd/core/ssh.py +0 -0
- {ccmd-2.0.6 → ccmd-2.0.7}/ccmd/mcp/__init__.py +0 -0
- {ccmd-2.0.6 → ccmd-2.0.7}/ccmd/mcp/server.py +0 -0
- {ccmd-2.0.6 → ccmd-2.0.7}/ccmd/tui/__init__.py +0 -0
- {ccmd-2.0.6 → ccmd-2.0.7}/ccmd/tui/app.py +0 -0
- {ccmd-2.0.6 → ccmd-2.0.7}/ccmd/tui/ascii.py +0 -0
- {ccmd-2.0.6 → ccmd-2.0.7}/ccmd/tui/screens/__init__.py +0 -0
- {ccmd-2.0.6 → ccmd-2.0.7}/ccmd/tui/screens/agents.py +0 -0
- {ccmd-2.0.6 → ccmd-2.0.7}/ccmd/tui/screens/aliases.py +0 -0
- {ccmd-2.0.6 → ccmd-2.0.7}/ccmd/tui/screens/browser.py +0 -0
- {ccmd-2.0.6 → ccmd-2.0.7}/ccmd/tui/screens/hub.py +0 -0
- {ccmd-2.0.6 → ccmd-2.0.7}/ccmd/tui/screens/project_edit.py +0 -0
- {ccmd-2.0.6 → ccmd-2.0.7}/ccmd/tui/screens/sessions.py +0 -0
- {ccmd-2.0.6 → ccmd-2.0.7}/ccmd/tui/screens/ssh.py +0 -0
- {ccmd-2.0.6 → ccmd-2.0.7}/ccmd/tui/theme.py +0 -0
- {ccmd-2.0.6 → ccmd-2.0.7}/ccmd/tui/widgets/__init__.py +0 -0
- {ccmd-2.0.6 → ccmd-2.0.7}/ccmd/tui/widgets/spinner.py +0 -0
- {ccmd-2.0.6 → ccmd-2.0.7}/ccmd.egg-info/SOURCES.txt +0 -0
- {ccmd-2.0.6 → ccmd-2.0.7}/ccmd.egg-info/dependency_links.txt +0 -0
- {ccmd-2.0.6 → ccmd-2.0.7}/ccmd.egg-info/entry_points.txt +0 -0
- {ccmd-2.0.6 → ccmd-2.0.7}/ccmd.egg-info/requires.txt +0 -0
- {ccmd-2.0.6 → ccmd-2.0.7}/ccmd.egg-info/top_level.txt +0 -0
- {ccmd-2.0.6 → ccmd-2.0.7}/commands.yaml +0 -0
- {ccmd-2.0.6 → ccmd-2.0.7}/requirements.txt +0 -0
- {ccmd-2.0.6 → ccmd-2.0.7}/setup.cfg +0 -0
|
@@ -128,26 +128,31 @@ def shell_cmds_path() -> Path:
|
|
|
128
128
|
|
|
129
129
|
|
|
130
130
|
def short_candidates(project_id: str, name: str) -> list[str]:
|
|
131
|
-
"""Generate preferred short-name candidates for a project.
|
|
131
|
+
"""Generate preferred short-name candidates for a project.
|
|
132
|
+
|
|
133
|
+
Prefer snappy 3–4 letter names (ana, flo) before the full slug.
|
|
134
|
+
"""
|
|
132
135
|
raw = re.sub(r"[^a-z0-9]+", "", (project_id or name).lower())
|
|
133
136
|
if not raw:
|
|
134
137
|
raw = "proj"
|
|
135
138
|
cands: list[str] = []
|
|
136
|
-
#
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
139
|
+
# progressive prefixes first: ana, anas, anast… (user wants ana not anastasis)
|
|
140
|
+
for n in (3, 4, 5, 6, 7, 8):
|
|
141
|
+
if n <= len(raw):
|
|
142
|
+
cands.append(raw[:n])
|
|
143
|
+
# first letters of hyphen/underscore parts (build-your-own → byo)
|
|
144
|
+
parts = re.split(r"[-_\s]+", project_id or name)
|
|
145
|
+
initials = "".join(p[0] for p in parts if p)[:6].lower()
|
|
146
|
+
initials = re.sub(r"[^a-z0-9]", "", initials)
|
|
147
|
+
if len(initials) >= 2:
|
|
148
|
+
cands.append(initials)
|
|
142
149
|
# consonants-only compact form
|
|
143
150
|
cons = re.sub(r"[aeiou]", "", raw)
|
|
144
151
|
if len(cons) >= 3:
|
|
145
152
|
cands.append(cons[:4])
|
|
146
|
-
#
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
if len(initials) >= 2:
|
|
150
|
-
cands.append(re.sub(r"[^a-z0-9]", "", initials))
|
|
153
|
+
# full slug last (only if reasonably short)
|
|
154
|
+
if 2 <= len(raw) <= 10:
|
|
155
|
+
cands.append(raw)
|
|
151
156
|
# dedupe preserve order
|
|
152
157
|
seen: set[str] = set()
|
|
153
158
|
out: list[str] = []
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|