logancyang_obsidian-copilot/scripts
Zero Liu d2af89b71a
feat(skills): redesign skills discovery — discover in place, lazy migration (#2519)
* docs(design): add model management redesign spec + data model spec

Replaces the older MODEL_MANAGEMENT_REDESIGN.md with a more focused tech spec,
a data-model spec with review notes, and a portal-container contract doc that
the upcoming reimplementation will follow.

* boostrap new model managmeent

* introduce catalog download service

* Add service APIs

* Add provider and configured model registry

* implement verification logic

* Add backend config registry and byok setup api

* Add BYOK settings modal

* Fix lint error

* Add BYOK settings - agent enablement

* Fix opencode enable model UI

* Fix claude extended thinking

* Render model descriptions

* Fix model picker padding

* improve agent model enabler settings

* Add copilot plus flash support in opencode

* Add vault test with test fixture

* BYOK model management

* introduce model migration script

* feat(skills): redesign skills discovery — discover-in-place, lazy migration

Reverse the import-everything-to-canonical model. The Skills tab now
discovers skills wherever they live (canonical or any agent project
folder) on open — no rescan button, no consent dialog. Identical
duplicates across agents collapse into one row; same-name/different-body
copies stay as disambiguated rows. Cross-agent sharing now goes through
a single explanatory migrate-to-shared confirm, and agents write skills
at their native paths.

Adds project-skill discovery, recursive directory hashing for the
merge rule, a pure toggle-decision helper, and a project→canonical
migration path. Removes the old bulkMove/importDetector/spawnDirective
machinery and the ImportConsentDialog. Fixes the delete dialog to show
the real blast radius for project skills (no phantom canonical copy or
symlink). Includes a seed script for the discovery test scenarios.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-05-28 16:29:52 -07:00
..
stubs chore(eslint): enable no-explicit-any; fix ~395 violations (#2452) 2026-05-14 02:08:45 -07:00
test-fixtures introduce model migration script 2026-05-28 16:03:46 -07:00
patchRendererUnsafeUnref.js feat(agent-mode): introduce Agent Mode feature 2026-05-20 19:05:41 -07:00
printPromptDebug.js chore(lint): enable no-unsanitized/method and property (#2418) 2026-05-13 01:56:00 -07:00
printPromptDebugEntry.ts chore(eslint): enable no-explicit-any; fix ~395 violations (#2452) 2026-05-14 02:08:45 -07:00
seed-skills-scenarios.sh feat(skills): redesign skills discovery — discover in place, lazy migration (#2519) 2026-05-28 16:29:52 -07:00
test-reset-data.sh Add vault test with test fixture 2026-05-28 16:02:48 -07:00
test-vault.sh fix(chain): stop writing chainType back inside setChain (apply-Plus freeze) (#2478) 2026-05-19 14:46:21 -07:00