@skill-map/cli 0.40.0 → 0.41.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.
Files changed (38) hide show
  1. package/dist/cli/tutorial/sm-tutorial/SKILL.md +10 -1
  2. package/dist/cli.js +275 -53
  3. package/dist/cli.js.map +1 -1
  4. package/dist/index.js +22 -5
  5. package/dist/index.js.map +1 -1
  6. package/dist/kernel/index.d.ts +30 -0
  7. package/dist/kernel/index.js +22 -5
  8. package/dist/kernel/index.js.map +1 -1
  9. package/dist/migrations/001_initial.sql +8 -0
  10. package/dist/ui/chunk-5GD2GBPS.js +2190 -0
  11. package/dist/ui/chunk-5WJRN3LD.js +809 -0
  12. package/dist/ui/{chunk-3SI3TVER.js → chunk-C2YUQODZ.js} +2 -2
  13. package/dist/ui/{chunk-NGIFGXW7.js → chunk-CFJBTDAA.js} +1 -1
  14. package/dist/ui/chunk-DQ45L4EV.js +123 -0
  15. package/dist/ui/{chunk-3FPS5OIY.js → chunk-HEJCH7BA.js} +1 -1
  16. package/dist/ui/chunk-HFPA56IM.js +1 -0
  17. package/dist/ui/chunk-HP375T2O.js +2 -0
  18. package/dist/ui/{chunk-WQ42JTZB.js → chunk-IUDL3NDH.js} +1 -1
  19. package/dist/ui/{chunk-ASCTZSBZ.js → chunk-JPYAASHN.js} +1 -1
  20. package/dist/ui/chunk-JWI3M5RV.js +1 -0
  21. package/dist/ui/chunk-XJL4DZ4M.js +1 -0
  22. package/dist/ui/{chunk-GSTYLDCL.js → chunk-XOHD5XWA.js} +1 -1
  23. package/dist/ui/chunk-YL6SWAFJ.js +1024 -0
  24. package/dist/ui/chunk-ZVGHYOKP.js +315 -0
  25. package/dist/ui/index.html +2 -2
  26. package/dist/ui/main-JCF6OBGZ.js +3 -0
  27. package/dist/ui/{styles-2WO3KNOY.css → styles-6H4GSOHY.css} +1 -1
  28. package/migrations/001_initial.sql +8 -0
  29. package/package.json +2 -2
  30. package/dist/ui/chunk-2W6BCESO.js +0 -2589
  31. package/dist/ui/chunk-4KQGLZV2.js +0 -123
  32. package/dist/ui/chunk-MHEKCBIR.js +0 -317
  33. package/dist/ui/chunk-PFA2CVPN.js +0 -61
  34. package/dist/ui/chunk-PURF7B6R.js +0 -411
  35. package/dist/ui/chunk-UFCOGNZX.js +0 -1
  36. package/dist/ui/chunk-XEWWXGNE.js +0 -1
  37. package/dist/ui/chunk-YXFKPYK3.js +0 -965
  38. package/dist/ui/main-WLCA4YLM.js +0 -3
package/dist/index.js CHANGED
@@ -101,7 +101,7 @@ import cl100k_base from "js-tiktoken/ranks/cl100k_base";
101
101
  // package.json
102
102
  var package_default = {
103
103
  name: "@skill-map/cli",
104
- version: "0.40.0",
104
+ version: "0.41.0",
105
105
  description: "skill-map reference implementation \u2014 kernel + CLI + adapters.",
106
106
  license: "MIT",
107
107
  type: "module",
@@ -775,6 +775,7 @@ var defaults_default = {
775
775
  strict: false,
776
776
  followSymlinks: false,
777
777
  maxFileSizeBytes: 1048576,
778
+ maxNodes: 256,
778
779
  watch: {
779
780
  debounceMs: 300
780
781
  },
@@ -2855,17 +2856,26 @@ async function walkAndExtract(opts) {
2855
2856
  const walkOptions = opts.ignoreFilter ? { ignoreFilter: opts.ignoreFilter } : {};
2856
2857
  let filesWalked = 0;
2857
2858
  let index = 0;
2859
+ const effectiveMaxNodes = opts.overrideMaxNodes ?? opts.recommendedNodeLimit;
2860
+ let capReached = false;
2858
2861
  const activeProviders = opts.providers.filter((provider) => {
2859
2862
  if (!provider.gatedByActiveLens) return true;
2860
2863
  if (opts.activeProvider === null) return true;
2861
2864
  return provider.id === opts.activeProvider;
2862
2865
  });
2863
- for (const provider of activeProviders) {
2866
+ const advance = async (raw, provider) => {
2867
+ const advanced = await processRawNode(raw, provider, wctx, accum, claimedPaths, index + 1);
2868
+ if (advanced) index += 1;
2869
+ };
2870
+ outer: for (const provider of activeProviders) {
2864
2871
  for await (const raw of resolveProviderWalk(provider)(opts.roots, walkOptions)) {
2865
2872
  filesWalked += 1;
2866
2873
  if (claimedPaths.has(raw.path)) continue;
2867
- const advanced = await processRawNode(raw, provider, wctx, accum, claimedPaths, index + 1);
2868
- if (advanced) index += 1;
2874
+ if (accum.nodes.length >= effectiveMaxNodes) {
2875
+ capReached = true;
2876
+ break outer;
2877
+ }
2878
+ await advance(raw, provider);
2869
2879
  }
2870
2880
  }
2871
2881
  const orphanSidecars = discoverOrphanSidecars(opts.roots);
@@ -2876,6 +2886,9 @@ async function walkAndExtract(opts) {
2876
2886
  cachedPaths: accum.cachedPaths,
2877
2887
  frontmatterIssues: accum.frontmatterIssues,
2878
2888
  filesWalked,
2889
+ recommendedNodeLimit: opts.recommendedNodeLimit,
2890
+ overrideMaxNodes: opts.overrideMaxNodes,
2891
+ capReached,
2879
2892
  enrichments: [...accum.enrichmentBuffer.values()],
2880
2893
  extractorRuns: accum.extractorRuns,
2881
2894
  contributions: accum.contributionsBuffer,
@@ -3154,7 +3167,9 @@ async function runScanInternal(_kernel, options) {
3154
3167
  priorExtractorRuns: setup.priorExtractorRuns,
3155
3168
  providerFrontmatter: setup.providerFrontmatter,
3156
3169
  pluginStores: options.pluginStores,
3157
- activeProvider: activeProviderId
3170
+ activeProvider: activeProviderId,
3171
+ recommendedNodeLimit: options.recommendedNodeLimit ?? 256,
3172
+ overrideMaxNodes: options.overrideMaxNodes ?? null
3158
3173
  });
3159
3174
  const activeProvider = activeProviderId ? exts.providers.find((p) => p.id === activeProviderId) ?? null : null;
3160
3175
  const resolved = resolveSignals({
@@ -3322,6 +3337,8 @@ function buildScanReturn(walked, issues, renameOps, stats, options, setup) {
3322
3337
  roots: options.roots,
3323
3338
  providers: setup.exts.providers.map((a) => a.id),
3324
3339
  scannedBy: SCANNED_BY,
3340
+ recommendedNodeLimit: walked.recommendedNodeLimit,
3341
+ overrideMaxNodes: walked.overrideMaxNodes,
3325
3342
  nodes: walked.nodes,
3326
3343
  links: walked.internalLinks,
3327
3344
  issues,