1519 Commits
Author SHA1 Message Date
Willie 8b72af58a1 fix(install): root orchestrator skill copies only SKILL.md (#124)
Root SKILL.md in multi-skill repos has no directory boundary — the entire
repo root is its source, which drags in project infrastructure (src/,
assets/, CI, build scripts). Now when Path="." and descendants exist,
only the SKILL.md file is copied. Children install as independent flat
directories instead of nesting under the root.

Remove orchestrator nesting logic from installSelectedSkills — each skill
now installs at the top level regardless of whether the root is selected.
v0.19.1
2026-04-13 23:02:11 +08:00
Willie e0f946ac93 test: replace online antigravity tests with offline mock repo
The antigravity repo (47MB, 995 skills) took ~110s per test on CI due
to audit scanning all skills.  Replace with a local file:// bare repo
containing 4 mock skills (2 clean + 2 malicious) that produces the
same batch audit output (Blocked/Failed, CRITICAL, findings, etc.)
in under 1 second.

This moves the tests from online to offline (build tag !online),
eliminating the network dependency entirely.
2026-04-13 18:23:10 +08:00
Willie 1c0528ccf6 docs: revamp CONTRIBUTING.md with proposal workflow and PR template
Restructure contribution guidelines to clarify expectations:
- Issues are the primary entry point for all contributions
- PRs are for small fixes; features require issue + proposal first
- Implementation is handled by maintainer after proposal approval
- All development must use devcontainer (make devc)

Add PR template to surface checklist when contributors open PRs.
Add proposals/ directory with TEMPLATE.md for feature proposals.
2026-04-13 16:05:00 +08:00
Willie e32f2164c9 fix: suppress update notice in all structured-output modes
UpdateNotification() wrote to stdout via fmt.Printf, corrupting JSON
output when --json was passed to commands like search.  Machine
consumers got invalid JSON with trailing human-readable text.

Three-layer fix:
1. Move UpdateNotification output to os.Stderr (safety net for any
   caller that bypasses the main.go guard).
2. Add isStructuredOutput() that detects all machine-readable modes:
   --json, -j, and --format json/sarif/markdown.
3. Skip the update check and trailing newline entirely in main()
   when structured output is requested, honouring the contract that
   stdout = pure structured data and stderr = empty.

Tests:
- Unit: isStructuredOutput table test (9 cases)
- Unit: UpdateNotification writes only to stderr
- Integration: versioned binary (1.0.0) with seeded cache (9.9.9)
  exercises the real update path for search --json, list -j, and
  audit --format json — asserts valid JSON stdout + empty stderr.

Closes #129
2026-04-13 16:00:18 +08:00
Willie 77cf272f93 docs(changelog): fix v0.19.0 CLI examples
- Filter Studio section used non-existent 'targets edit' subcommand and
  invalid '--agent-mode include' value. Fix to use the real 'skillshare
  target <name>' syntax with sync-mode values (merge|symlink|copy).
- 'update agents' and 'uninstall agents' were shown without the required
  <name|--all> argument. Add a concrete example for each.
2026-04-11 15:43:06 +08:00
Willie f159f9ecc9 Merge pull request #126 from runkids/feat/agents
v0.19.0
v0.19.0
2026-04-11 15:21:46 +08:00
Willie 953db0623d ci: bump online test timeout to 600s for antigravity audit tests
The two Antigravity batch audit tests each download the full repo and
run install/update cycles. The first test alone consumes ~117s, leaving
insufficient budget for the second test's install + update phases
within the 300s limit. Bump to 600s to accommodate network-backed
end-to-end flows.
2026-04-11 04:04:20 +08:00
Willie 5476ec84c3 fix(tests): remove unused os import in install_online_test
The os package was imported but not referenced, causing the online
integration test build to fail in CI (docker-sandbox-online job).
2026-04-11 03:53:38 +08:00
Willie f2a6a391bc chore: release v0.19.0 2026-04-11 03:37:48 +08:00
Willie d892eca91e feat(install): explicit SKILL.md URLs resolve to single skill + radio TUI follows cursor
Two related improvements for issue #124:

1. Source parsing now tracks ExplicitSkill when a blob URL points
   directly at a SKILL.md file. Discovery constrains results to
   the root skill only, skipping the orchestrator pack/selection
   prompt entirely — the user clearly wants that one skill.

2. Single-select (radio) checklist TUI reworked: selection follows
   the cursor automatically, space keeps exactly one item active,
   enter confirms the focused item. Pre-selected items set the
   initial cursor position. This gives immediate visual feedback
   and eliminates the confusing empty-selection edge case.

Refs: #124
2026-04-11 03:17:22 +08:00
Willie 6eb054c3e0 test(e2e): add issue #124 orchestrator install runbook
Covers all three fixes:
- orchestrator children install as independent skills
- root skill selectable via --skill filter
- blob URL trailing SKILL.md resolution (via unit test)

Refs: #124
2026-04-11 01:07:33 +08:00
Willie 4e200e3dfa fix(install): validate git source in InferTrackedKind before clone attempt
InferTrackedKind was called before installTrackedRepoImpl's IsGit()
guard, causing --track with local paths to attempt a clone with an
empty URL instead of returning the correct error message.

Add an early IsGit() check so non-git sources fail with the expected
'--track requires a git repository source' error.
2026-04-11 00:57:09 +08:00
Willie 50b0aba714 fix(install): install orchestrator children as independent skills
An orchestrator repository containing a root SKILL.md together with
child SKILL.md directories (e.g. iOfficeAI/OfficeCLI) previously
installed as a single bundled directory that mirrored the git clone:
copying the root dragged every child skill dir into it, and children
marked selected were silently skipped as "included in parent" while
their computed dest paths were never written to.

Make each discovered skill a first-class install:

- New copyDirExcluding() skips subdirectories by slash-normalized
  relative path, so a skill directory is copied without duplicating
  any nested skill that is itself being installed elsewhere.
- installFromDiscoveryImpl computes the descendant skill paths of the
  skill currently being copied and passes them as excludes. For the
  root of an orchestrator repo this drops every child skill dir; for
  a non-root skill it drops any sub-skill nested inside it.
- installSelectedSkills stops skipping children after the root is
  installed. The existing dest-path logic already places each child
  under <parentName>/<childName>, so the children are written as
  siblings to the root install.

After the fix, a multi-skill repo with N skills produces N independent
installed directories discoverable by sync, updatable individually.

Refs: #124
2026-04-11 00:52:29 +08:00
Willie f3176da208 fix(install): include root skill in individual selection for orchestrator repos
When a repo contains both a root SKILL.md and child skills, picking
"Select individual skills" previously excluded the root entirely, so
the orchestrator skill could never be installed from the multi-select
UI — users had to resort to --name as a workaround.

Include the root skill in the individual selection list (listed first)
so it is visible and selectable alongside its children.

Refs: #124
2026-04-11 00:43:49 +08:00
Willie 072d8b908b fix(install): resolve blob URLs pointing at SKILL.md to the skill directory
URLs like https://github.com/owner/repo/blob/main/SKILL.md previously
became subdir="SKILL.md" and created an install folder literally named
"SKILL.md". Treat a trailing SKILL.md segment on blob URLs as a pointer
to its containing skill directory:

  blob/main/SKILL.md              → subdir "", name = repo
  blob/main/skills/foo/SKILL.md   → subdir "skills/foo", name = foo

Also apply the same rule to GitLab (-/blob/...) and Bitbucket (src/...)
web URLs for consistency.

Refs: #124
2026-04-11 00:43:12 +08:00
Willie 806045d392 docs(agents): expand docs + skillshare SKILL.md for agent workflows
- skills/skillshare/SKILL.md: mention agents commands/flags in description
- website: document agents source dir, agent backup/restore, ignores,
  file structure, config fields, and project-mode agent rules
2026-04-11 00:41:29 +08:00
Willie 788f9bc6e9 feat(agents): JSON output + audit gate for install/update
Extend install/update with agent-aware --json output and apply the same
audit block-threshold gate skills already use.

Install:
- install --json: imply --force; imply --all only when neither
  --skill nor --agent is set (so explicit selectors still work)
- project-mode install now routes through cmdInstallProjectParsed
  so --json suppresses UI and emits a pure-JSON payload
- agent installs propagate SourceDir so metadata lands in the
  agents root, not the install subdir
- validation error lists --agent / --kind / --branch explicitly

Update agents:
- update agents supports --force, --skip-audit, --audit-threshold
- tracked agent repos + metadata-backed single-file agents now run
  the same audit gate as skills; blocks roll back from a temp stage
- JSON output returns the final per-agent status
  (updated/skipped/failed/up_to_date/...) by merging check results
  with batch update outcomes

Audit:
- auditInstalledAgent shares one helper with auditInstalledSkill
  (scan + cleanup callbacks); single-file agent scans now use
  audit.ScanFile / ScanFileForProject instead of staging the file
  into a temp directory
- UpdateAgentFromDiscovery stages to temp, audits, then renames
  atomically (rename already overwrites on POSIX)

Refactors pulled in while reworking these paths:
- extract jsonUISuppressor helper in json_output.go and use it
  from install/update/update_agents; collapses 4 copies of the
  suppress/restore closure dance and the per-error failJSON block
- drop relPath plumbing from installAgentFromDiscoveryInternal
  now that ScanFile doesn't need a staged relative path
- list.go render functions now use theme.ANSI() so NO_COLOR is
  respected in plain-text output

Tests:
- add TestInstallAgentFromDiscovery_HighFindingBlocked (unit)
- add TestUpdate_Agents_HighFindingBlockedByThreshold (integration)
- add TestInstall_Project_JSON_Agent_PureJSON,
  TestUpdate_Agents_JSON_ReportsFinalStatus
- fix TestList_SKILLSHARE_THEME_Light / TestList_NO_COLOR to
  write a config before invoking list
- fix TestTargetList_NoTUI_FallsBackToPlainText assertion to match
  the new structured Mode: merge output
- fix TestDoctor_AllGood_PassesAll by pinning SKILLSHARE_THEME=dark
  so the no-TTY theme fallback warning doesn't fire
- add list_tui_content_test.go covering light/dark glamour base
- list detail pane now picks LightStyleConfig on light terminals

Docs:
- update install.md, update.md, understand/agents.md for the new
  flags, JSON shapes, and agents update workflow
2026-04-10 23:27:26 +08:00
Willie ce7c7d154d fix(list): group TUI entries by tracked repo root and local top dir
The list TUI had two grouping bugs:

1. Local nested skills (e.g. mma/agent-browser, mma/docker-expert) were
   lumped into the "standalone" group because buildGroupedItems keyed on
   RepoName, which is empty for non-tracked skills.

2. Agents deep inside a tracked repo (e.g. _vijay-agents/agents/core/x.md,
   _vijay-agents/agents/specialized/python/y.md) were split into separate
   groups per sub-directory. discoverAndBuildAgentEntries set RepoName to
   filepath.Dir(RelPath), producing keys like '_vijay-agents/agents/core'
   instead of the tracked repo root.

Fix:

- discoverAndBuildAgentEntries now uses d.RepoRelPath (already computed
  by agent discovery) so tracked agents share one visual group regardless
  of nesting depth. This also corrects a pre-existing mis-count where
  local nested agents were counted as tracked in the summary footer.

- Add skillTopGroup() helper in list_tui_filter.go: tracked → RepoName;
  non-tracked nested → first RelPath segment; flat → "" (standalone).

- buildGroupedItems now keys on skillTopGroup() so local nested groups
  (mma/*) render as their own bucket instead of standalone.

- sortSkillEntries default sort now groups by top-level bucket first,
  placing standalone last, so buildGroupedItems sees contiguous blocks.

- Remove 'if opts.SortBy != ""' gating in both global list paths: sort
  must always run to guarantee the TUI grouping invariant.

Tests: 4 new unit tests cover local nested grouping, deep tracked agents,
skillTopGroup cases, and the top-group-aware sort order.
2026-04-10 19:00:33 +08:00
Willie 526fbbd03a fix(ui): add missing 'warning' variant to Button component
UpdatePage uses variant="warning" on the Force Retry button for
blocked items to visually distinguish them from error-state Force
Retry (which uses danger). The Button component didn't expose a
warning variant, causing the Docker build to fail with a TS2322
type error.

Adds warning alongside existing danger variant, mirroring the same
outlined-with-hover-fill pattern and matching the warning color
scheme already used by Badge and in-line text-warning classes.
2026-04-10 17:55:19 +08:00
Willie ea2abf0a68 refactor(tui): delete legacy tui_colors.go and add doctor theme check
Finishes the theme system migration:

- Deletes cmd/skillshare/tui_colors.go entirely (~152 lines). The
  tc struct and tcSevStyle/riskLabelStyle/formatRiskBadgeLipgloss
  helpers are all replaced by equivalents in internal/theme.
- Migrates last 6 helper-function callers in audit_tui.go and
  search_tui.go.
- Adds checkTheme() to doctor.go with warning status on fallback,
  wired into runDoctorChecks() after checkSymlinkSupport.
- Adds theme.Get() call early in main() so OSC 11 probe overhead
  happens at startup, not during TUI rendering.

After this commit:
- grep 'lipgloss.Color(' cmd/skillshare/ returns only the hardcoded
  brand yellow #D4D93C (logo color)
- grep 'tc.|ac.|lc.' cmd/skillshare/ returns only loop variables
- Full build and test suite pass

Refs: #125
2026-04-10 16:50:08 +08:00
Willie 8955ce7813 refactor(tui): migrate remaining TUIs to theme package
Replaces all tc.* references in 26 files under cmd/skillshare/
with the new internal/theme API. Also removes the file-local ac
struct from audit_tui.go and the lc struct from log_tui.go.

Files touched: analyze_tui.go, analyze_tui_item.go, audit_render.go,
audit_rules_tui.go, audit_tui.go, checklist_tui.go, diff_tui.go,
extras.go, extras_init_tui.go, extras_list_tui.go,
extras_list_tui_item.go, hub.go, install_prompt_tui.go, log_tui.go,
new_tui.go, restore_tui.go, search_batch.go, search_tui.go,
sync.go, sync_agents.go, sync_parallel.go, target_agents_test.go,
target_list_tui.go, trash_tui.go, tui_helpers.go.

tui_colors.go (the tc struct definition file) is kept for now; it
will be deleted in the final cleanup commit along with the doctor
integration and main.go early init call.

Refs: #125
2026-04-10 15:24:18 +08:00
Willie 5b35a0e451 refactor(ui): migrate plain CLI output to theme.ANSI()
Updates Success/Error/Warning/Info/Header/Status/Checkbox/
CheckboxItem/ActionLine/Logo to source their colors from the
new theme.ANSI() set instead of package-level constants.

Package-level constants (Red, Green, White, etc.) are kept with
// Deprecated: comments to preserve compatibility with any
third-party code that imports this package directly.

Colorize() now also honors NO_COLOR via theme.Get().NoColor.
2026-04-10 14:43:07 +08:00
Willie 47fe1b8318 refactor(tui): migrate list TUIs to theme package
Replaces all tc.* references in list_tui.go, list_tui_item.go, and
list_tui_content.go with the new internal/theme API. Also fixes the
hardcoded lipgloss.Color("15") at list_tui_item.go:296 — the root
cause of issue #125.

NOTE: The codebase does not compile at this commit alone because
other TUIs still reference the tc struct. The full build is
restored in commit 4 of this PR (migration of remaining TUIs and
deletion of legacy palettes). Treat this PR as one atomic change.

Fixes #125
2026-04-10 14:36:22 +08:00
Willie 36e22477fe feat(theme): add internal/theme package with palettes and detection
Introduces a unified light/dark terminal theme system:
- Theme struct with sync.Once-backed Get()/Reset() singleton
- darkPalette (softened Primary from 15 to 252) and lightPalette
  (new, WCAG AA compliant against white backgrounds)
- Style constructors (Primary, Muted, Accent, Success, Warning,
  Danger, Info, Title, SelectedRow, Badge, Severity)
- ANSISet for plain CLI output
- Resolution precedence: NO_COLOR > SKILLSHARE_THEME > OSC 11 probe
  > dark fallback
- 300ms timeout on OSC 11 probe with documented goroutine leak tradeoff
- canDetect() gate for non-TTY, CI, TERM=dumb, Windows-safe
- WCAG contrast tests as regression guard for future palette edits

NO_COLOR env var follows the no-color.org spec: only activates when
set AND non-empty (empty string does not enable no-color mode).

This commit adds the package but does not migrate any existing
callers. The next commits migrate list TUIs (fixes #125), plain CLI
output, and remaining TUIs.

Refs: #125
2026-04-10 14:26:44 +08:00
Willie 275fe3eece test(testutil): add RunCLIEnv helper for env-var-based CLI tests
Enables upcoming theme system tests that need to run the CLI with
custom SKILLSHARE_THEME or NO_COLOR env vars.
2026-04-10 14:15:11 +08:00
Willie 8d8434d6d8 fix(ui): remove pop-in check progress bar to avoid layout shift
The large StreamProgressBar appeared between the PageHeader and the tab
bar when checking started, pushing the whole list down. Loading state
is already conveyed by the Check All / Check Selected button spinners
and the per-item 'Checking' badges, so the big bar was redundant.
2026-04-10 13:40:43 +08:00
Willie c501e55c1d fix(ui): propagate tracked repo check status to all items in the repo
Check results were keyed by repo directory name (e.g. _awesome-claude-agents)
while UI items used per-skill names (api-architect, backend-developer, ...).
applyCheckResult now iterates updatable items and maps each repo's status
to all items belonging to it, so tracked repo entries no longer get stuck
in the Checking state.
2026-04-10 12:00:33 +08:00
Willie 17ab4aaeb2 feat(ui): add skills/agents tabs and group-based sort to UpdatePage 2026-04-10 11:55:14 +08:00
Willie 03a7b7ab13 refactor(ui): fix quality issues in UpdatePage — EventSource leak, dedup status cards, shared glob utility
- Store api.updateAllStream() return value in esRef so unmount cleanup
  closes both check and update EventSource connections
- Extract ItemStatusCard component to deduplicate ~50 lines of per-item
  status card rendering between updating and done phases
- Wrap successCount/skippedCount/blockedCount/errorCount in a single
  useMemo pass instead of 4 separate .filter() calls
- Move globToRegex to ui/src/lib/glob.ts shared utility, imported by
  both UpdatePage and BatchUninstallPage
2026-04-10 03:56:33 +08:00
Willie 7537872743 fix(ui): address spec compliance issues in UpdatePage
- CheckItemStatus: change from flat string union to interface with
  status, message?, and behind? fields; applyCheckResult now preserves
  repo.behind and repo.message; CheckStatusBadge renders 'N behind'
- Done phase: blocked items now show Force Retry button (variant=warning)
- Search filter: add globToRegex for glob pattern matching (* and ?)
- Check button loading: track checkMode ('all'|'selected'|null) state
  so loading spinner shows on the correct button regardless of selection
2026-04-10 03:48:29 +08:00
Willie 49dcbd01c8 fix(doctor): exclude disabled agents from drift count
Doctor was passing all discovered agents (including those disabled
via .agentignore) to the agent target drift check, inflating the
expected count. This caused false drift warnings like '33/66 agents
linked' when the 33 missing agents were actually ignored.

Filter with resource.ActiveAgents() before passing to
checkAgentTargetInline, matching the pattern used by sync and
all server handlers.
2026-04-10 03:42:18 +08:00
Willie 3df973c8bb feat(ui): redesign UpdatePage with selecting/updating/done phases
Replace the old idle/updating/done flow with a new three-phase state machine:

- selecting: Virtuoso checkbox list of all tracked + GitHub skills with
  sticky search bar, SegmentedControl type filter (All/Tracked/GitHub),
  Select All/Deselect All, and per-item CheckStatusBadge
- updating: StreamProgressBar + per-item status cards with auto-scroll
- done: Summary card with badges + per-item result cards with
  Force Retry/Purge buttons + Back to List

Key changes:
- No auto-check on mount; manual Check All / Check Selected buttons
- Check results stored in Map<string, CheckItemStatus> with 6 states
- Unified selection via Set<string> (no split repos/skills)
- Repo deduplication in handleUpdate (same repo = one update)
- Action buttons in PageHeader (not bottom bar)
- No confirm dialog before update
- useQuery for skills list (replaces inline SSE-only check)
2026-04-10 03:41:20 +08:00
Willie 0efdb643b2 feat(ui): add .agentignore tab to Config page
Add GET/PUT /api/agentignore endpoints mirroring the existing
skillignore API, backed by skillignore.ReadAgentIgnoreMatcher()
and resource.AgentKind{}.Discover() for ignore stats.

On the frontend, extend the Config page with a third tab for
editing .agentignore. Generalize the former SkillignoreTab into
a shared IgnoreTab component with a kind prop, and extend
AssistantPanel to show ignored agents in the sidebar.
2026-04-10 03:38:43 +08:00
Willie 379407e3dd fix(ui): use GitBranch icon instead of folder for tracked repos in tree view
Tracked repo folders now show a single GitBranch icon replacing the
folder icon, avoiding the awkward two-icon layout.
2026-04-10 03:22:55 +08:00
Willie abeb5b9392 fix(ui): unify resource terminology and compact action bars
- Rename 'Uninstall Skills' → 'Uninstall Resources' on BatchUninstallPage
- Rename 'Pull local skills' → 'Pull local resources' on CollectPage
- Rename 'Push your skills' → 'Push resources' on SyncPage
- Compact Sync/Collect action bars: inline SegmentedControl + button
  on the same row instead of stacked vertically
- Replace badge grid sync summary with inline text stats (dot-separated)
  showing totals with a secondary skill/agent breakdown line
- Simplify 'all in sync' state to single-line inline layout
2026-04-10 03:15:03 +08:00
Willie 0838ee6367 fix(ui): replace Track badge with GitBranch icon in tree view
The badge looked out of place in the folder tree. A subtle GitBranch
icon integrates better with the tree aesthetic.
2026-04-10 03:14:20 +08:00
Willie 8970a5ee56 fix(ui): sort table view by group/repo before name
Items from the same tracked repo or directory group are now sorted
together instead of being interleaved alphabetically by name alone.
2026-04-10 03:13:15 +08:00
Willie 7a319fa8f3 fix(ui): remove duplicate Track badge from card view
The Track badge in SkillPostit was redundant with the existing Tracked
indicator at the bottom. Revert to Users icon — Track badge is only
used in the folder tree view.
2026-04-10 03:12:15 +08:00
Willie cbbfcde390 fix(ui): improve Sync page stats layout and ignored section grouping
- Replace flex-wrap badge layout with CSS Grid for aligned KindBadge rows
- Fix ignored count showing only skills instead of total (skills + agents)
- Group ignored items by kind (skill/agent) with KindBadge sub-headers
- Increase spacing between groups for better visual hierarchy
2026-04-10 02:38:44 +08:00
Willie 0e314e19e3 fix(ui): apply Track badge and name formatting to sticky folder header 2026-04-10 02:26:47 +08:00
Willie 3c4d057950 refactor(ui): centralize display name formatting via resourceNames utilities
Replace 25+ inline .replace(/__/g, '/') calls with shared utilities:
- formatSkillDisplayName() for flat name → path conversion
- formatTrackedRepoName() for tracked repo name display (strip _ + unflatten)
- formatAgentDisplayName() for agent names (.md removal + unflatten)

Consolidate error toasts into single summary in DashboardPage update-all.
Remove duplicate displayPath() in BatchUninstallPage (was reimplementing
formatSkillDisplayName).

Backend: refactor agentIgnorePayload to accept pre-discovered agents,
eliminating duplicate filesystem traversal in sync/diff handlers.
2026-04-10 02:25:27 +08:00
Willie 92d5fc66ba fix(agents): exclude convention files and respect agents/ subdir in tracked repos
Agent discovery was treating non-agent files (CLAUDE.md, AGENTS.md, etc.)
as agent resources when they appeared in tracked repos.

Two fixes:
- Expand ConventionalExcludes with 7 well-known convention filenames
  (CLAUDE.md, AGENTS.md, GEMINI.md, COPILOT.md, CONTRIBUTING.md,
  CODE_OF_CONDUCT.md, SUPPORT.md)
- For tracked repos with an agents/ subdirectory, only discover files
  inside agents/ — skip repo root files and other subdirs (docs/, etc.)

Also includes UI polish:
- Display flat names (__ separator) as path separators in toasts/labels
- Consolidate batch install errors into single toast
- Show .agentignore state in sync diff/preview responses
- Track badge + friendly repo name in resource list/folder tree
2026-04-10 02:14:15 +08:00
Willie 5c99a1cb9f feat(ui): audit cache invalidation, agent target display, UX polish
- auditCache: centralized cache with installed-count staleness check
- resourceNames: agent display name formatting (strip .md suffix)
- AuditPage: skip audit when 0 installed, show empty state per kind
- clearAuditCache on install/uninstall/update across all pages
- ResourcesPage: agent target summary, context menu for agents
- FilterStudioPage: agent display name in preview search
- SkillPickerModal: accessible radio button (button element)
- fieldDocs: agents sub-keys no longer marked reserved
- Integration tests: diff/sync prune after uninstall-all, tracked agent install
2026-04-10 02:05:23 +08:00
Willie da000c4d07 feat(server): agent tracked repo install, prune-on-empty, audit guards
- appendAgentDiffs helper deduplicates diff/stream agent logic
- handler_agent_diff: skip local copies, junction-aware checks
- handler_sync: prune orphan agents even when source is empty
- handler_install: tracked agent repo auto-detection and routing
- handler_skills: expose RepoRelPath and Targets for agents
- handler_skills_batch: agent target assignment via frontmatter
- handler_sync_matrix: pass agent Targets to ClassifySkillForTarget
- handler_update: tracked agent repo git pull update
- handler_audit: guard empty/missing source dirs gracefully
- Tests for all of the above
2026-04-10 02:05:13 +08:00
Willie 40dca838db fix(cli): agent diff drift detection and sync prune when source empty
- diff_agents: detect symlink drift, local copy blocking, fix prune count
- sync_agents: continue to prune targets when source has no agents
  instead of returning early, matching skills behavior
2026-04-10 02:05:06 +08:00
Willie b23425aafd feat(cli): tracked agent repo support in install, check, update, doctor
- install: --agent + --track validation, InferTrackedKind dispatch
- install_handlers: agent kind routing, renderTrackedAgentRepoMeta
- check: enrich tracked agents with remote status (update_available, dirty)
- update_agents: batchUpdateAgents with tracked repo git pull
- list: agent repo URL fallback via RepoRelPath
- doctor: filter-aware agent count, project mode version check
2026-04-10 02:05:01 +08:00
Willie 7e30699eaa feat: add tracked agent repo discovery and install support
- DiscoveredResource gains RepoRelPath and Targets fields
- AgentKind.Discover populates RepoRelPath via findTrackedRepoRelPath
- AgentCheckResult gains RepoPath and dirty status for tracked repos
- InferTrackedKind auto-detects pure-agent repos for --track install
- TrackedRepoResult reports AgentCount and Agents list
2026-04-10 02:04:55 +08:00
Willie b8a189ba58 Improve resource install agent support
Add local-path resource discovery so install flows can detect agents as well as skills. Preserve nested agent paths and suffixless agent metadata keys during batch install and update, and refresh the UI copy to use resource-aware wording on the install surface.
2026-04-10 01:26:40 +08:00
Willie 35fcb7475b feat(ui): add SegmentedControl for agent scope on Collect page
CollectPage now has Skills/Agents/Both scope selector matching
SyncPage pattern. Scan and collect operations pass kind to API.
Selected set uses 3-segment key (target/kind/name) to prevent
collision between skills and agents with same name.
2026-04-10 00:28:39 +08:00
Willie bf2aff0059 feat(ui): extend collect API client with kind parameter
collectScan now accepts optional kind param for agent scanning.
collect method items accept optional kind field.
2026-04-10 00:25:53 +08:00