90 Commits

Author SHA1 Message Date
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
b0199f1cfa
fix: improve auth-related error handling (#1477) 2025-12-04 18:12:59 +01:00
github-actions[bot]
82761749b5
Version Packages (#1469) 2025-12-02 22:00:04 +01: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
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
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
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
Eyal Toledano
4046b3ca44
feat: Hamster Integration - Cloud Storage, Sentry Telemetry, and Major CLI UX Improvements (#1452) 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>
2025-11-27 20:56:18 +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
2316e94b28
feat: reintroduce task-master generate command for task file generation (#1446) 2025-11-25 18:32:50 +01:00
Ralph Khreish
01d4d9930f
chore: apply requested changes (#1442) 2025-11-24 23:00:13 +01:00
Ralph Khreish
0195feffee
feat: enhance MFA retry logic with configurable options (#1441) 2025-11-24 21:53:14 +01:00
Ralph Khreish
af36d171c7
feat: implement MFA in taskmaster (#1438) 2025-11-24 20:51:47 +01:00
Ben Vargas
783398ecdf
feat(gemini-cli): upgrade to native structured output support (#1437) 2025-11-24 18:56:18 +01:00
Ralph Khreish
522d9af580
Ralph/chore/fix.coderabbit.issues (#1432) 2025-11-21 12:40:46 +01:00
Ralph Khreish
e66150e91c
chore: add integration tests to new cli and mcp (#1430) 2025-11-20 19:36:17 +01:00
Ralph Khreish
4049f34d5a
feat: implement local-only command checkers for cli and mcp (#1426) 2025-11-19 22:08:04 +01:00
Ralph Khreish
99d9179522
feat: deprecate generate command (#1425) 2025-11-19 18:03:34 +01:00
Ralph Khreish
9f7989ba4a
Merge pull request #1412 from eyaltoledano/next (0.32.0) 2025-11-16 09:48:59 +01:00
Ralph Khreish
26f77c207b
feat: sort briefs by updated at (#1409) 2025-11-15 12:15:07 +01:00
github-actions[bot]
fa2abcb697
Version Packages (#1383)
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-11-15 11:44:09 +01:00
Ralph Khreish
6b44a96d9f
feat: enable direct context selection and improve session reliability (#1402) 2025-11-14 20:52:52 +01:00
Ben Coombs
da8ed6aa11
fix: Treat cancelled tasks as complete in statistics and dependencies (#1393)
* fix: treat cancelled tasks as complete in statistics and dependencies

Fixes #1392

## Changes

- Add TERMINAL_COMPLETE_STATUSES constant including 'done', 'completed', 'cancelled'
- Update calculateTaskStatistics() to include cancelled tasks in completion %
- Update calculateSubtaskStatistics() to include cancelled subtasks in completion %
- Update calculateDependencyStatistics() to treat cancelled tasks as satisfied dependencies
- Update findNextTask() to treat cancelled tasks as complete for dependency resolution

## Impact

- Dashboard now correctly shows 100% for projects with only done/cancelled tasks
- Tasks depending on cancelled tasks are no longer permanently blocked
- Dependency metrics accurately reflect project state

## Tests

- Added comprehensive test suite with RED-GREEN-REFACTOR approach
- 9 tests covering completion %, subtask %, and dependency resolution
- All tests pass after fixes applied

* style: apply biome formatting

* style: apply biome formatting to all files

* fix: display fraction should show all terminal complete tasks, not just done

Previously the completion percentage correctly counted cancelled tasks
as complete (e.g., 100% for 14 done + 1 cancelled), but the fraction
display used stats.done which only counted 'done' status, showing
"100% 14/15" instead of "100% 15/15".

Added completedCount field to TaskStatistics interface to track all
terminal complete tasks (done + completed + cancelled) and updated
display to use this field for accurate fraction representation.

Updates:
- TaskStatistics interface now includes completedCount field
- calculateTaskStatistics() sets completedCount for display
- calculateSubtaskStatistics() sets completedCount for display
- Display lines now use completedCount instead of done count
- Added completedCount assertions to all relevant tests

Related to #1392

* refactor: centralize terminal status logic in @tm/core

Following code review feedback, extracted TERMINAL_COMPLETE_STATUSES
and isTaskComplete() to @tm/core as single source of truth. This
prevents duplication and potential drift between CLI and MCP layers.

Changes:
- Added TERMINAL_COMPLETE_STATUSES constant to @tm/core constants
- Added isTaskComplete() helper function to @tm/core constants
- Updated dashboard.component.ts to import from tm-core via CLI util
- Updated list.command.ts to import from tm-core via CLI util
- Updated task-loader.service.ts to use shared isTaskComplete()
- Created CLI convenience re-export in utils/task-status.ts

Architecture:
- Business logic now lives in @tm/core (proper layer)
- CLI provides convenience re-exports for ergonomics
- MCP already delegates to @tm/core (no changes needed)

Addresses review comments from @Crunchyman-ralph on PR #1393

* fix: remove unused TaskStatus import in task-loader.service

TypeScript error: TaskStatus was imported but no longer used after
refactoring to use isTaskComplete() helper.

* fix: correct subtask display and progress bar for cancelled tasks

Fixed two display bugs identified by cursor bot:

1. Subtask completion display now shows completedCount instead of done
   - Before: "Completed: 3/4" (only counted done tasks)
   - After: "Completed: 4/4" (counts done + cancelled as terminal complete)

2. Progress bar no longer double-counts cancelled tasks
   - Before: Green section (completionPercentage) + gray cancelled section
   - After: Green section includes cancelled (as terminal complete status)
   - Removed separate cancelled section from progress bar
   - Updated section numbers in comments (2-6 instead of 2-7)

These changes ensure visual consistency with the fix that treats cancelled
tasks as terminal complete for percentage calculations and dependency resolution.

Fixes cursor bot comments on PR #1393

* style: run biome formatter

* fix: keep cancelled tasks visually distinct in progress bar

Per reviewer feedback from Crunchyman-ralph, cancelled tasks should remain
visible as a separate gray section in the progress bar for better visibility,
even though they count as complete for the percentage calculation.

Changes:
- Green section shows 'done' tasks only
- Gray section shows 'cancelled' tasks (visually distinct but terminal complete)
- completionPercentage still includes both done and cancelled (correct)
- This prevents double-counting while maintaining visual clarity

Addresses: https://github.com/eyaltoledano/claude-task-master/pull/1393#issuecomment-3517115852

* fix: add done property to StatusBreakdown interface

TypeScript error: StatusBreakdown interface was missing 'done' property
required by the progress bar visualization code.

* fix: Populate done field in calculateStatusBreakdown for progress bar

The calculateStatusBreakdown() function was missing the calculation for the
'done' field, causing statusBreakdown.done to always be undefined. This meant
the green section of the progress bar never rendered, making completed tasks
invisible in the visual representation.

Addresses cursor bot feedback on PR #1393.

---------

Co-authored-by: Ben Coombs <bjcoombs@users.noreply.github.com>
2025-11-13 11:03:12 +01:00
Ralph Khreish
63134a222c
feat: add tm tags command to remote (#1386)
Co-authored-by: Claude <noreply@anthropic.com>
2025-11-12 20:08:27 +01:00
Ben Coombs
37aee7809c
fix: prioritize .taskmaster in parent directories over other project markers (#1351)
Co-authored-by: Ralph Khreish <35776126+Crunchyman-ralph@users.noreply.github.com>
Co-authored-by: Ben Coombs <bjcoombs@users.noreply.github.com>
2025-11-12 14:13:06 +01:00
Ralph Khreish
c5af035d5b
fix: get tasks (#1385)
* fix: get tasks by calling an endpoint

* chore: apply requested changes
2025-11-07 21:26:55 +01:00
Ralph Khreish
921e9a6b32
feat: add expand-task remote (#1384) 2025-11-07 18:06:23 +01:00
Ralph Khreish
5014ee3468
Merge remote-tracking branch 'origin/main' into ralph/chore/update.from.main.0.31.0.p1 2025-11-01 14:50:33 +01:00
Ralph Khreish
9c3b2737dd
fix: add z.ai coding plan support (#1370) 2025-11-01 14:35:22 +01:00
github-actions[bot]
47c5b1e2ba
Version Packages (#1367)
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-11-01 11:11:06 +01:00
Ralph Khreish
819d5e1bc5
feat: add GLM and LMStudio ai providers (#1360)
Co-authored-by: Ralph Khreish <Crunchyman-ralph@users.noreply.github.com>
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Resolves #1325
2025-10-31 23:47:39 +01:00
Ralph Khreish
3b09b5da2a
fix(core): Fix race condition in workflow state persistence (#1339)
Co-authored-by: Claude <noreply@anthropic.com>
2025-10-31 15:41:21 +01:00
Ralph Khreish
0c639bd1db
fix: return actual subtask instead of parent task for subtask IDs (#1358)
Co-authored-by: Ralph Khreish <Crunchyman-ralph@users.noreply.github.com>
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Fixes #1355
2025-10-30 22:21:04 +01:00
Ralph Khreish
95b480284e
Merge pull request #1354 from eyaltoledano/next Release 0.30.2 2025-10-28 17:18:40 +01:00
Ralph Khreish
d63a40c6dd
fix: improve auth refresh (#1340) 2025-10-28 13:33:17 +01:00
github-actions[bot]
00d600ab1c
Version Packages (#1352)
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-10-27 18:47:46 +01:00
Ralph Khreish
25addf919f
feat: connect get-task and get-tasks to remote (#1346) 2025-10-27 15:23:27 +01:00
Ralph Khreish
486ed40215
feat: update task remote (#1345) 2025-10-25 19:25:17 +02:00
Ralph Khreish
03b7ef9a0e
chore: refactor tm-core to host more of our "core" commands (#1331) 2025-10-21 21:16:15 +02:00
Ralph Khreish
28f8f02d9f
fix: remove invalid empty version fields from workspace packages
Removes `"version": ""` from internal workspace packages to fix
changesets validation errors. These private packages don't need
explicit version fields as they use workspace protocol.

Fixes validation errors:
- Package "task-master-ai" must depend on the current version of "@tm/ai-sdk-provider-grok-cli": "" vs "*"
- Package "task-master-ai" must depend on the current version of "@tm/cli": "" vs "*"
- Package "@tm/cli" must depend on the current version of "@tm/core": "" vs "*"
- Package "extension" must depend on the current version of "@tm/core": "" vs "*"
- Package "@tm/mcp" must depend on the current version of "@tm/core": "" vs "*"

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-21 13:29:52 +02:00
github-actions[bot]
675cd71c9f
Version Packages (#1330)
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-10-21 10:46:40 +02:00
Ralph Khreish
ccb87a516a
feat: implement tdd workflow (#1309)
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-10-18 16:29:03 +02:00
Ralph Khreish
555da2b5b9
fix: downgrade log level to silent (#1321) 2025-10-18 11:03:27 +02:00