Commit Graph
1155 Commits
Author SHA1 Message Date
Willie 439abbdea1 feat(analyze): add TUI list delegate with color dots and bar chart 2026-03-26 19:20:52 +08:00
Willie d58b27219e refactor(ui): replace Update page action buttons with SplitButton
Use SplitButton dropdown for the update action, moving the Force
option into a dropdown menu item with confirmation step. This aligns
the Update page with the Sync and Extras page patterns.
2026-03-26 19:20:52 +08:00
Willie a636fc6f85 feat(analyze): add --no-tui flag and TUI dispatch 2026-03-26 19:20:52 +08:00
Willie 956a719c32 feat(analyze): add TUI-only fields to analyzeSkillEntry 2026-03-26 19:20:52 +08:00
Willie 2811a19fcf feat(analyze): return description from calcContextFromContent for TUI 2026-03-26 19:20:52 +08:00
Willie 620141af2b feat(analyze): add context analysis command
Analyze context window usage per target, showing always-loaded
(description) vs on-demand (body) token costs.

- Single-pass discovery with frontmatter-aware char/token counting
- Per-target filtering (include/exclude/symlink mode)
- Unified output when all targets have identical skills
- Verbose mode shows top 10 largest descriptions
- Project mode (-p) support
- JSON output (--json)
- Integration tests
2026-03-26 19:20:52 +08:00
Willie 68111d2a9f refactor: rename project skills with skillshare- prefix
Add consistent `skillshare-` prefix to all project-level skill
directories to avoid name collisions when synced alongside
third-party skills.

Renamed:
- changelog → skillshare-changelog
- cli-e2e-test → skillshare-cli-e2e-test
- codebase-audit → skillshare-codebase-audit
- devcontainer → skillshare-devcontainer
- implement-feature → skillshare-implement-feature
- ui-website-style → skillshare-ui-website-style
- update-docs → skillshare-update-docs
2026-03-25 21:20:13 +08:00
Willie 580ad58dd3 fix(extras): remove leading whitespace from extras list output v0.17.11 2026-03-25 21:14:16 +08:00
Willie e030801a71 docs: update extras mode docs for multi-target flatten behavior 2026-03-25 21:14:16 +08:00
Willie 6d0ba75e72 feat(extras): --flatten/--no-flatten applies to all targets when --target is omitted
For multi-target extras, ss extras agents --flatten now sets flatten
on all targets at once instead of requiring --target. Mode changes
still require --target for multi-target extras.
2026-03-25 21:14:16 +08:00
Willie 3bcbd7b170 fix(test): update upgrade tests for metadata.version format
Test SKILL.md content changed from top-level version: to
metadata.version to match the new format.
2026-03-25 21:14:16 +08:00
Willie dee3fcb1d0 refactor: move version under metadata in built-in SKILL.md
Move version field from top-level frontmatter to metadata block:
  metadata:
    version: v0.17.11

ReadLocalSkillVersion and FetchRemoteSkillVersion now parse
metadata.version with fallback to top-level version for backward
compatibility.
2026-03-25 21:14:16 +08:00
Willie 35bb22eb28 docs(mdproof): add flatten E2E lessons learned
- Self-contained steps pattern to avoid mdproof setup conflicts
- extras remove writes errors to stdout, not stderr
2026-03-25 21:14:16 +08:00
Willie f31e1b1520 docs: update changelog with TUI flatten toggle 2026-03-25 21:14:16 +08:00
Willie dcd452735d docs: add F flatten keybinding to extras TUI documentation 2026-03-25 21:14:16 +08:00
Willie 1d50d95459 feat(extras): add F flatten toggle to extras list TUI
Press F to toggle flatten on/off for a target. Single-target extras
toggle directly; multi-target extras show a target picker first.
Shows "Flatten enabled/disabled" confirmation message.
2026-03-25 21:14:16 +08:00
Willie bda34d27af docs(cli): mention flatten in extras help text 2026-03-25 21:14:16 +08:00
Willie 7a3b284c3d test(e2e): add extras flatten E2E runbook
9 scenarios covering: flatten sync, flat layout, JSON field, collision
detection + warning, toggle on/off, symlink rejection, prune.
Self-contained steps (each sets up its own state).

Note: designed for ssenv direct execution, not mdproof (HOME
isolation conflict between mdproof and ssenv).

Ref: #97
2026-03-25 21:14:16 +08:00
Willie 59675b3a3b fix(extras): shorthand dispatch recognizes --flatten/--no-flatten
extras <name> --flatten and extras <name> --no-flatten were rejected
as "unknown subcommand" because the shorthand dispatch only checked
for --mode. Now recognizes all three flags.

Ref: #97
2026-03-25 21:14:16 +08:00
Willie 0938797e41 feat(ui): add tooltip to Flatten checkbox on Extras page
Hovering shows: "Sync files from subdirectories directly into the
target root (e.g., for tools that only discover top-level files)"
2026-03-25 21:14:16 +08:00
Willie 31ad27e966 test(extras): add FlattenRel and CheckSyncStatus unit tests
FlattenRel: 100% coverage (flatten, no-flatten, collision).
CheckSyncStatus: 0% → 84% (synced, drift, flatten synced, flatten
drift, flatten collision not drift, copy mode).
2026-03-25 21:14:16 +08:00
Willie 7c913086d0 fix(ui): show correct field docs for target names in config editor
- name: claude under targets was showing mode doc (targets.mode)
  instead of target name doc. Fixed by adding targets.name fieldDoc
  entry which scores higher in subsequence matching.
- Bare list values like "- agents" (short-form target name) were
  invisible: extractKey, parseYamlTree, and lookupFieldDoc now
  handle them.
2026-03-25 21:14:16 +08:00
Willie 2ce1544dd1 docs: add flatten documentation, changelog, and contributor
Extras command docs, config reference, built-in skill, website
changelog, release notes. Add mk-imagine to README contributors.

Ref: #97
2026-03-25 21:14:16 +08:00
Willie 31db9fa36f test(extras): integration tests for flatten sync
Covers: flatten merge (files land flat), collision detection (warn and
skip), and config YAML round-trip.

Ref: #97
2026-03-25 21:14:16 +08:00
Willie 4c83ef71fb feat(ui): add flatten support to Web UI
Server handlers accept/return flatten field. Extras page shows flatten
checkbox per target. Config editor validates flatten+symlink constraint.

Ref: #97
2026-03-25 21:14:16 +08:00
Willie 41ffe1dfc1 feat(extras): add --flatten to CLI commands and TUI wizard
extras init --flatten, extras mode --flatten/--no-flatten, extras list
flatten indicator. TUI wizard adds flatten toggle phase after mode
selection (skipped for symlink). Back-navigation updated.

Ref: #97
2026-03-25 21:14:16 +08:00
Willie 5d9dd0cdbb feat(extras): add flatten option to extras sync engine
When flatten=true, SyncExtra maps subdirectory files to target root
using filepath.Base(). First file wins on collision, subsequent are
skipped with warnings. Includes config validation, sync-time guard,
CheckSyncStatus collision handling, and CollectExtraFiles support.

Ref: #97
2026-03-25 21:14:16 +08:00
Willie b93f437d8e feat(ui): add update notification dialog to Web UI
Show a compact dialog on first visit when a newer CLI or skill version
is available. Queries /api/version (shared cache with Dashboard), displays
version diff with copyable upgrade command. Dismissed once per browser
session via sessionStorage. Supports ?update-test param for local testing.
v0.17.10
2026-03-24 23:17:06 +08:00
Willie 053ecb428d fix(ui): equal-height skill cards and improved theme param handling
- Add h-full + flex-col to SkillPostit cards so grid rows align evenly
- Make ?theme=clean/playful also set light mode explicitly
- Add postMessage listener for theme-push from parent window (Tauri shell)
2026-03-21 00:48:42 +08:00
Willie 690a625b3a fix(ui): add missing data-tour attribute for skill-filters tour step
The Quick Tour's "Skill Filters" step targeted [data-tour='skill-filters']
but TargetsPage never rendered that attribute, causing a 3s hang and
auto-skip during the tour.
2026-03-20 22:54:53 +08:00
Willie bfec6c8b36 feat(ui): read URL ?theme= param to set style and mode
Read the ?theme= query parameter on page load and popstate events
to override the current theme. Supported values: dark, light (mode),
playful, clean (style). Persists to localStorage so the preference
survives navigation.
v0.17.9
2026-03-20 18:29:05 +08:00
Willie 3a45d38305 docs: add filtering skills guide and reference
New users frequently ask for per-target skill management without
realizing three filtering layers already exist (#93). Add two new
doc pages to surface the full picture:

- How-to guide (6 scenarios + decision flowchart + verification table)
- Reference page (comparison table + evaluation order + full specs)

Also add cross-links from sync, target, file-structure, and
creating-skills pages, sidebar entries, and a README highlight.

Ref: #93
2026-03-20 18:29:05 +08:00
Willie 7e5a058f7b feat(ui): unify Force action with SplitButton component
Replace separate Force toggles (checkbox in Sync, button in Extras) with
a shared SplitButton component. Force is now an action variant inside a
dropdown, not a persistent toggle — one click to open, confirm before
executing.

- Add SplitButton with portal-based dropdown (escapes overflow-hidden)
- Sync page: replace Advanced options with SplitButton (Force Sync, Dry Run)
- Extras page: replace Force toggle with SplitButton on Sync All and per-card
- Add inline confirm step for destructive Force actions
- Add spring pop animation, hand-drawn theme support (ss-split-menu)
- Remove redundant indeterminate progress bar from Sync page
2026-03-20 18:29:05 +08:00
Willie 1c7bdcdd84 feat(ui): add Force toggle to Extras page and auto-reset after sync
- Add Force toggle button with tooltip in Extras PageHeader
- Pass force flag to syncExtras API for both Sync All and per-extra sync
- Show "enable Force to override" hint in toast when files are skipped
- Auto-reset Force to disabled after successful sync (Extras + Sync pages)
- Fix ExtrasSyncResult type to match server response (target field, errors array)
- Update v0.17.9 changelog entries
2026-03-20 18:29:05 +08:00
Willie ed8596fc7e fix(server): fix extras sync response key and add read lock
- Change JSON key from 'results' to 'extras' to match frontend type
- Add RLock snapshot pattern matching handleExtras GET handler
- Replace s.extrasSourceDir() with inline resolution using snapshotted values
2026-03-20 18:29:05 +08:00
Willie 5198a74287 fix(ui): fix assistant panel scrolling, remove false target warnings, add virtual scroll
- Fix Config and Audit Rules assistant panels with fixed 500px content
  height to enable scrolling (matching CodeMirror editor height)
- Remove target name validation that produced false "Unknown target"
  warnings — target names are user-defined and freely configurable
- Enrich targets field docs example with all sub-fields
- Add react-virtuoso virtual scrolling to FilterStudioPage preview list
- Add v0.17.9 changelog and website changelog
2026-03-20 18:29:05 +08:00
Willie 5a0a8753d0 fix(test): update extras source-not-exist test for auto-create behavior
Sync now auto-creates missing extras source directories instead of
failing with "does not exist". Update the assertion to match.
v0.17.8
2026-03-20 02:36:50 +08:00
Willie 34819c664b fix(ui): fix TypeScript build errors for tsc -b strict mode
- Add explicit undefined initial value to all useRef<setTimeout>
  calls (5 hooks) — tsc -b requires initial argument
- Remove unused ValidationError import in test file
2026-03-20 02:36:50 +08:00
Willie e276c95a04 fix(cli): add --source flag to extras init help text
The --source flag was functional but missing from the help output.
Also add source directory resolution priority to the main extras
help for discoverability.
2026-03-20 02:36:50 +08:00
Willie c4b493ca03 docs: add audit rules assistant panel to v0.17.8 changelog
Add YAML editor assistant panel with regex tester feature to
CHANGELOG.md and website changelog.
2026-03-20 02:36:50 +08:00
Willie 4dbaf38668 refactor(ui): clean up audit panel after simplify review
- Remove structured mode dead code from AuditAssistantPanel
  (props, branch, imports — was unused after structured panel removal)
- Remove unused Save import from AuditRulesYaml
- Export SEVERITY_ORDER from severity.ts, remove duplicates
  in AuditOverview and PatternSummary
- Share lines memo in AuditRulesYaml (single split, not two)
- Fix onSaveStateChange firing every keystroke (use saveRef)
- Simplify useAuditYamlValidation (remove useCallback wrapper)
2026-03-20 02:36:50 +08:00
Willie faa73cd366 refactor(ui): remove structured view panel, move Save to PageHeader
Structured view doesn't benefit from an assistant panel — the
accordion already shows all rule details inline. Remove panel
from structured view, restoring full-width layout.

Move Save button from the YAML editor Card header to the
PageHeader actions (top-right), lifted via onSaveStateChange
callback.
2026-03-20 02:36:50 +08:00
Willie ae313a77b8 fix(ui): fix structured panel sticky position and overflow
Move overflow-hidden to only apply when collapsed, so sticky
positioning works. Panel now stays fixed while scrolling the
rule list.
2026-03-20 02:36:50 +08:00
Willie d9f1fe6924 feat(ui): add structured view panel with selection and cross-view jump
Wire RuleDetailCard, PatternSummary, and AuditOverview into the
AuditAssistantPanel structured mode. AuditRulesPage gains selection
state (selectedRuleId/selectedPattern) wired to accordion expand.

Cross-view jump: "Test Regex" fills the regex tester and switches
to YAML view; "Edit in YAML" jumps to the rule's line in the editor.
Panel collapses with Cmd+B in both views.
2026-03-20 02:36:50 +08:00
Willie 86f1fa8cd0 feat(ui): add structured view panel components for audit rules
- AuditOverview: stats + severity distribution (default panel)
- RuleDetailCard: source badge, override status, regex block,
  Test Regex / Edit in YAML quick actions
- PatternSummary: rule list with dots, bulk enable/disable
2026-03-20 02:36:50 +08:00
Willie 4f42740df4 fix(ui): convert (?i) inline flag to JS /i instead of Go-specific error
(?i) is the most common Go regex flag and can be safely converted
to JS RegExp's 'i' flag. Only flag (?im), (?ims), or \x{} are
now marked as Go-specific. Multi-flag combos and non-i flags
still show the Go-specific warning.
2026-03-20 02:36:50 +08:00
Willie 414f17756e fix(ui): use type import for FieldDoc in auditFieldDocs
Fixes Vite dev mode error: 'FieldDoc' is a type-only export and
must be imported with 'import type'.
2026-03-20 02:36:50 +08:00
Willie 3c5d39b3ec feat(ui): extract YAML view with audit assistant panel
Split AuditRulesPage (977 lines) by extracting the YAML editor
into AuditRulesYaml with full assistant panel integration:
real-time validation, field docs, inline regex tester with
auto-fill from cursor position, structure tree, and diff preview.

AuditRulesPage now only handles view switching, shared state,
and the structured rule browser.
2026-03-20 02:36:50 +08:00
Willie f51026a88d feat(ui): add RegexTester and AuditAssistantPanel components
RegexTester: inline regex testing with match highlighting, exclude
preview, Go-specific syntax detection.
AuditAssistantPanel: orchestrator for YAML view with auto-switch
(errors → regex tester → field docs → structure), 3 lock buttons
(Structure/Diff/Test). Structured mode placeholder for Phase 2.
2026-03-20 02:36:50 +08:00
Willie d9de54a331 refactor(ui): genericize FieldDocs and add audit mode to StatusBar
FieldDocs now accepts optional docs prop for reuse with different
field doc maps (audit rules). ConfigStatusBar adds 'audit' mode
that shows validation like config mode.
2026-03-20 02:36:50 +08:00