@sparkelf/dsh-client-ui-skill-center 0.2.0-rc.16 → 0.2.0-rc.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +4 -0
- package/lib/types/index.d.ts +4 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -142,6 +142,8 @@ const SKILL_FILE = "SKILL.md";
|
|
|
142
142
|
*
|
|
143
143
|
* @param root - absolute root directory to scan.
|
|
144
144
|
* @param level - the group key every skill under this root belongs to.
|
|
145
|
+
* @param workspace - the project a project-scoped root belongs to, so a row can name
|
|
146
|
+
* its origin and mark itself when it is not the workspace being viewed.
|
|
145
147
|
* @returns the skills found, sorted by name; missing roots yield none.
|
|
146
148
|
*/
|
|
147
149
|
async function scanSkillRoot(root, level, workspace) {
|
|
@@ -200,6 +202,8 @@ function lstatSyncSafe(path) {
|
|
|
200
202
|
*
|
|
201
203
|
* @param deps - the resolved configuration.
|
|
202
204
|
* @param projectRoots - project roots whose skill directories are in scope.
|
|
205
|
+
* @param activeRoot - the project root the view is about, marked active so the panel
|
|
206
|
+
* can distinguish a row from another workspace.
|
|
203
207
|
* @returns the roots to scan, in group order.
|
|
204
208
|
*/
|
|
205
209
|
function localSkillRoots(deps, projectRoots, activeRoot) {
|
package/lib/types/index.d.ts
CHANGED
|
@@ -119,6 +119,8 @@ export interface ScannedSkill {
|
|
|
119
119
|
*
|
|
120
120
|
* @param root - absolute root directory to scan.
|
|
121
121
|
* @param level - the group key every skill under this root belongs to.
|
|
122
|
+
* @param workspace - the project a project-scoped root belongs to, so a row can name
|
|
123
|
+
* its origin and mark itself when it is not the workspace being viewed.
|
|
122
124
|
* @returns the skills found, sorted by name; missing roots yield none.
|
|
123
125
|
*/
|
|
124
126
|
export declare function scanSkillRoot(root: string, level: string, workspace?: {
|
|
@@ -131,6 +133,8 @@ export declare function scanSkillRoot(root: string, level: string, workspace?: {
|
|
|
131
133
|
*
|
|
132
134
|
* @param deps - the resolved configuration.
|
|
133
135
|
* @param projectRoots - project roots whose skill directories are in scope.
|
|
136
|
+
* @param activeRoot - the project root the view is about, marked active so the panel
|
|
137
|
+
* can distinguish a row from another workspace.
|
|
134
138
|
* @returns the roots to scan, in group order.
|
|
135
139
|
*/
|
|
136
140
|
export declare function localSkillRoots(deps: Pick<SkillRoutesDeps, 'dshHome' | 'agentsHome'> & {
|
package/package.json
CHANGED