Commit Graph

1106 Commits

Author SHA1 Message Date
Ralph Khreish
c1231c67d4 chore: update Claude workflows to use stable version and enhance permissions 2025-12-09 15:30:49 +01:00
Ralph Khreish
37917b18f6 Merge pull request #1493 from eyaltoledano/ralph/chore/fix.issues.with.dependencies task-master-ai@0.37.2-rc.0 2025-12-09 12:25:10 +01:00
Ralph Khreish
4f2649f8d6 chore: fix CI pre-release issues 2025-12-09 12:24:45 +01:00
github-actions[bot]
bf26dbd012 Version Packages (#1487)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Ralph Khreish <35776126+Crunchyman-ralph@users.noreply.github.com>
2025-12-09 12:24:42 +01:00
Ralph Khreish
071dfc6be9 fix: resolve login issues for users with CLI authentication blocked by browsers or firewalls (#1492) 2025-12-08 22:42:39 +01:00
Ralph Khreish
0e908be43a fix: improve branch naming logic for workflow commands (#1491) 2025-12-07 19:04:40 +01:00
Ralph Khreish
bf4515b6de feat: change default MCP tool tier from 'all' to 'core' (#1490) 2025-12-06 14:08:44 +01:00
Ralph Khreish
b0199f1cfa fix: improve auth-related error handling (#1477) 2025-12-04 18:12:59 +01:00
Ralph Khreish
4c4043729e chore: exit pre-mode and prepare for release 2025-12-04 15:34:43 +01:00
github-actions[bot]
dcb26ef2db chore: rc version bump 2025-12-03 22:11:09 +00:00
Ralph Khreish
0e7c068e86 fix: suppress config warnings during Sentry init and API mode detection (#1482) task-master-ai@0.37.1-rc.0 2025-12-03 23:08:49 +01:00
Ralph Khreish
8674007cce Ralph/update.from.main (#1481) 2025-12-03 14:44:29 +01:00
Ralph Khreish
523f4bdb71 fix: increase brief-selection page size (#1478) 2025-12-03 14:34:38 +01:00
Ralph Khreish
6ff330f8c2 fix: increase brief-selection page size (#1478) 2025-12-03 10:52:50 +01:00
github-actions[bot]
82761749b5 Version Packages (#1469) task-master-ai@0.37.0 2025-12-02 22:00:04 +01:00
Ralph Khreish
3ac2856061 Merge pull request #1476 from eyaltoledano/next (Release 0.37.0) 2025-12-02 21:03:55 +01:00
Ralph Khreish
fa8e0222ec chore: exit pre-mode 2025-12-02 20:47:52 +01:00
github-actions[bot]
8ab4c7bab7 chore: rc version bump 2025-12-02 18:47:03 +00:00
Ralph Khreish
c9a2f84ce7 Merge pull request #1475 from eyaltoledano/mfa-fix-2 task-master-ai@0.36.0-rc.3 2025-12-02 19:45:10 +01:00
Eyal Toledano
ff601e1f3b style: formatting fixes in auth-guard.ts 2025-12-02 12:25:40 -05:00
Eyal Toledano
9e0e9b02a3 refactor(auth): rename forcePrompt to forceSelection and fix AuthManager type
CHANGES:
- Rename forcePrompt option to forceSelection in EnsureOrgOptions interface
- Update all call sites in export.command.ts and commands.js
- Fix AuthManager type in export.command.ts by importing from @tm/core
- Replace dirty (this.taskMasterCore.auth as any).authManager hack with AuthManager.getInstance()
- Use type import for AuthManager in org-selection.ts
2025-12-02 12:22:36 -05:00
Eyal Toledano
f04a568de0 feat(auth): force org selection in parse-prd and export commands
CHANGES:
- Add forcePrompt option to ensureOrgSelected utility
- When forcePrompt=true, always fetch orgs and prompt (if >1 org exists)
- Pre-select current org in dropdown when forcePrompt is used
- Show '(current)' label next to currently selected org in prompt

PARSE-PRD:
- Force org selection after authentication (forcePrompt: true)
- User can choose which org to create the brief in
- Auto-selects if only one org available

EXPORT:
- Force org selection after tag selection (forcePrompt: true)
- User can choose which org to export to
- Auto-selects if only one org available

INIT:
- Removed process.exit(0) hack that was incorrectly added

This ensures users explicitly choose (or confirm) their target organization
before creating briefs, preventing accidental exports to wrong orgs.
2025-12-02 12:06:23 -05:00
Eyal Toledano
985b6e16fa fix(auth): enforce org selection post-login and remove duplicate success messages
CHANGES:
- Add ensureOrgSelected to auth-guard.ts for all auth flows (existing & new sessions)
- Add ensureOrgSelected to parse-prd flow in commands.js (after authentication) -- NOT WORKING.
- Add ensureOrgSelected to init.js cloud storage flow (using shared utility)
- Remove duplicate 'Authentication successful!' boxen messages (auth.command.ts, auth-guard.ts)
- Export authenticateWithBrowserMFA and ensureOrgSelected from @tm/cli utils
- init.js now uses shared authenticateWithBrowserMFA instead of custom OAuth flow
- auth-guard.ts now checks context.orgId before making API calls (optimization)

FIXES:
- Org selection now happens after login in parse-prd, init, and export commands
- Single source of truth for browser auth with MFA support
- Removed redundant auth UI code from init.js

KNOWN ISSUES:
- tm init and tm export may hang after completion (Supabase auto-refresh timer)
- Root cause: AuthManager/Supabase client keeps event loop alive
- tm auth login works because it uses setupContextInteractive from ContextCommand
- Proper fix would be to add cleanup method to SupabaseAuthClient to stop auto-refresh
- Workaround (process.exit) was attempted but reverted as too dirty

The hanging issue requires further investigation into how auth login handles
cleanup vs how ensureAuthenticated/ensureOrgSelected interact with Supabase.
2025-12-02 11:42:32 -05:00
Eyal Toledano
1c889cccaa fix(invitations): handle API responses without explicit success field
The sendTeamInvitations function was treating 200 OK responses as errors
because it expected a 'success' field that the API doesn't always return.

- Check for invitations array in response body as success indicator
- Handle various response structures (invitations, data.invitations, data)
- Only treat as error when response is not OK or has explicit error field
2025-12-02 10:53:11 -05:00
Eyal Toledano
b61a2a5f90 fix(cli): remove invisible first options in inquirer menus 2025-12-01 21:25:27 -05:00
Eyal Toledano
3038fa42a0 fix(auth): unify browser auth with MFA across all login paths
- Create shared authenticateWithBrowserMFA utility in auth-ui.ts
- Update auth.command.ts to use shared utility for tm auth login
- Update auth-guard.ts to use shared utility for parse-prd/export
- Fix oauth-service.ts to NOT call onError for MFA_REQUIRED
  (MFA requirement is a continuation, not a failure)

All login paths now use the same MFA-aware browser auth flow:
- tm auth login
- tm parse-prd (Bring it to Hamster)
- tm export
2025-12-01 21:21:10 -05:00
Ralph Khreish
e5ca6f5f81 Merge pull request #1474 from eyaltoledano/next 2025-12-02 01:19:39 +01:00
Eyal Toledano
edeeef4d92 fix(auth): improve org context handling and export invitation flow (#1472)
Co-authored-by: Ralph Khreish <35776126+Crunchyman-ralph@users.noreply.github.com>
2025-12-02 00:26:45 +01:00
Ralph Khreish
62d3cd30e4 fix: fix team invite flow (#1473) 2025-12-02 00:18:18 +01:00
Eyal Toledano
1dbf242ffd fix(auth): enforce MFA verification in OAuth browser login flow (#1470) 2025-12-01 23:02:31 +01:00
Ralph Khreish
0cda135764 Merge pull request #1465 from eyaltoledano/next 0.37.0 2025-12-01 21:54:56 +01:00
Ralph Khreish
6e4369209e Merge pull request #1468 from eyaltoledano/ralph/merge.from.main.0.36.0.p3 2025-12-01 20:44:37 +01:00
Ralph Khreish
d0be0dcfe2 Merge remote-tracking branch 'origin/main' into ralph/merge.from.main.0.36.0.p3 2025-12-01 20:36:30 +01:00
Ralph Khreish
67a0fe6ccd fix: parse-prd with --input parameter not working (#1464) 2025-12-01 19:51:32 +01:00
github-actions[bot]
fcfa623a22 chore: rc version bump 2025-11-30 18:43:19 +00:00
Ralph Khreish
55595f680c chore: run npm install (#1463) task-master-ai@0.36.0-rc.2 2025-11-30 19:41:24 +01:00
Eyal Toledano
fd27013e6a fix: add terminal-link to root dependencies for global install (#1462) 2025-11-30 19:28:25 +01:00
github-actions[bot]
61f33356ea chore: rc version bump 2025-11-30 11:37:44 +00:00
Eyal Toledano
4046b3ca44 feat: Hamster Integration - Cloud Storage, Sentry Telemetry, and Major CLI UX Improvements (#1452) task-master-ai@0.36.0-rc.1 2025-11-30 12:35:49 +01:00
github-actions[bot]
30217ab22f Version Packages (#1458)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Ralph Khreish <35776126+Crunchyman-ralph@users.noreply.github.com>
task-master-ai@0.36.0
2025-11-27 20:56:18 +01:00
Ralph Khreish
d9d1a20b5b Merge pull request #1457 from eyaltoledano/next 2025-11-27 20:43:17 +01:00
Ralph Khreish
9e934650b7 chore: prepare for release 2025-11-27 20:30:36 +01:00
Ralph Khreish
78720214eb chore: remove goham.md to add later with the slash commands PR (#1456) 2025-11-27 20:30:04 +01:00
github-actions[bot]
e8802ffc76 chore: rc version bump 2025-11-26 22:43:38 +00:00
Ralph Khreish
38ff7ebbc0 feat: add hamster rules to taskmaster rules command (#1454) task-master-ai@0.36.0-rc.0 2025-11-26 23:41:46 +01:00
Ralph Khreish
88d356817e fix: auth refresh issue (#1450) 2025-11-26 23:34:57 +01:00
Ralph Khreish
28fcc27411 feat: improve ham connection (#1451) 2025-11-26 23:20:44 +01:00
Ralph Khreish
77b3b7780d feat: improve tm auto-update display (#1444) 2025-11-25 21:23:00 +01:00
Ralph Khreish
2316e94b28 feat: reintroduce task-master generate command for task file generation (#1446) 2025-11-25 18:32:50 +01:00
Ralph Khreish
1936f2aba0 Merge pull request #1445 from eyaltoledano/ralph/chore/update.from.main.0.35.0 2025-11-25 18:28:59 +01:00