great-cto 3.27.5 → 3.27.6

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "great-cto",
3
3
  "description": "You already have the agent. This is everything around it. great_cto runs Claude Code as a pipeline of 70 specialist agents \u2014 an independent model checks each stage before the next builds on it, spending caps refuse rather than warn, and three decisions stay yours: what gets built, how, and whether it ships.",
4
- "version": "3.27.5",
4
+ "version": "3.27.6",
5
5
  "author": {
6
6
  "name": "Alexander Velikiy",
7
7
  "url": "https://hashnode.com/@Greatcto"
@@ -6957,10 +6957,19 @@ async function init() {
6957
6957
  shareState = share || { enabled: false, url: null };
6958
6958
  allProjects = projs || [];
6959
6959
 
6960
- // Prefer URL param slug; fall back to extracting from first task id
6960
+ // Prefer the URL, then a REGISTERED project, then a guess that is known to be
6961
+ // one. Deriving the slug from a task id's prefix is a heuristic: bd ids are
6962
+ // short, so a project registered as `acme-storefront` whose tasks read
6963
+ // `acme-6f` yielded `acme`, which is not a project, and the board then told
6964
+ // the operator in red that `acme was not found` — on a perfectly healthy
6965
+ // setup. Every README screenshot has carried that banner since.
6966
+ // A prefix is used only when it names something the registry actually has.
6967
+ const fromTaskId = (allTasks[0]?.id || '').split('-')[0];
6968
+ const registered = (allProjects || []).some((p) => p.slug === fromTaskId) ? fromTaskId : '';
6961
6969
  const proj = urlProject
6962
- || (allTasks[0]?.id || '').split('-')[0]
6970
+ || registered
6963
6971
  || (allProjects[0]?.slug)
6972
+ || fromTaskId
6964
6973
  || 'project';
6965
6974
  currentProject = proj;
6966
6975
  document.getElementById('project-name').textContent = proj;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "great-cto",
3
- "version": "3.27.5",
3
+ "version": "3.27.6",
4
4
  "description": "One command install for the great_cto Claude Code plugin. Auto-detects your stack, picks the right archetype, bootstraps PROJECT.md.",
5
5
  "keywords": [
6
6
  "claude-code",