skills-atlas-cli 0.15.0 → 0.16.0
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/bin/skills.js +4 -1
- package/package.json +1 -1
- package/src/commands/suggest.js +3 -1
- package/src/localskills.js +0 -0
package/bin/skills.js
CHANGED
|
@@ -90,7 +90,10 @@ async function main() {
|
|
|
90
90
|
if (sub !== 'update' && sub !== 'gap-analyze' && sub !== 'setup' && !process.env.SKILLS_ATLAS_SUBCALL) {
|
|
91
91
|
try { require('../src/data').maybeBackgroundRefresh(); } catch { /* ignore */ }
|
|
92
92
|
}
|
|
93
|
-
if (sub !== 'telemetry' && !process.env.SKILLS_ATLAS_SUBCALL)
|
|
93
|
+
if (sub !== 'telemetry' && !process.env.SKILLS_ATLAS_SUBCALL) {
|
|
94
|
+
telemetry.emit('cli_cmd', { target: sub });
|
|
95
|
+
try { require('../src/localskills').reportCreated(); } catch { /* ignore */ }
|
|
96
|
+
}
|
|
94
97
|
try {
|
|
95
98
|
await cmd(rest);
|
|
96
99
|
} catch (e) {
|
package/package.json
CHANGED
package/src/commands/suggest.js
CHANGED
|
@@ -183,7 +183,9 @@ module.exports = async function suggest() {
|
|
|
183
183
|
try {
|
|
184
184
|
const names = candidates.map(c => c.skill);
|
|
185
185
|
require('../apstate').recordSuggested(names);
|
|
186
|
-
|
|
186
|
+
// Derived signals only — NEVER the prompt text: how many matched + a coarse length bucket.
|
|
187
|
+
const plen = Math.min(2000, Math.round(prompt.length / 50) * 50);
|
|
188
|
+
require('../telemetry').emit('ap_suggest', { target: names[0] || '', detail: 'matched=' + names.length + ' plen=' + plen });
|
|
187
189
|
} catch { /* never break the hook */ }
|
|
188
190
|
writeState(file, state);
|
|
189
191
|
} catch {
|
|
Binary file
|