@skill-map/cli 0.26.1 → 0.28.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/dist/cli/tutorial/sm-master.md +373 -186
- package/dist/cli/tutorial/sm-tutorial.md +264 -270
- package/dist/cli.js +4289 -4316
- package/dist/cli.js.map +1 -1
- package/dist/conformance/index.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/kernel/index.d.ts +1 -10
- package/dist/kernel/index.js +4 -4
- package/dist/kernel/index.js.map +1 -1
- package/dist/migrations/001_initial.sql +7 -4
- package/dist/ui/chunk-BGDH7CDV.js +1 -0
- package/dist/ui/chunk-XCUOAV77.js +123 -0
- package/dist/ui/index.html +2 -2
- package/dist/ui/{main-CYRAD3L6.js → main-TZL26MZU.js} +2 -2
- package/dist/ui/skill-map-mark-matrix.svg +8 -0
- package/dist/ui/{styles-EGXMA46P.css → styles-IKG3B6AM.css} +1 -1
- package/migrations/001_initial.sql +7 -4
- package/package.json +2 -2
- package/dist/ui/chunk-Q64EKSUB.js +0 -123
- package/dist/ui/chunk-UVILXZ5L.js +0 -1
package/dist/kernel/index.d.ts
CHANGED
|
@@ -349,8 +349,6 @@ interface ScanResult {
|
|
|
349
349
|
schemaVersion: 1;
|
|
350
350
|
/** Unix milliseconds when the scan started. */
|
|
351
351
|
scannedAt: number;
|
|
352
|
-
/** Scan scope. `project` walks the cwd repo; `global` walks user-level skill dirs. */
|
|
353
|
-
scope: 'project' | 'global';
|
|
354
352
|
/**
|
|
355
353
|
* Filesystem roots that were walked during this scan. Spec requires
|
|
356
354
|
* `minItems: 1`, `runScan` throws if `roots: []` is supplied.
|
|
@@ -1458,7 +1456,7 @@ interface IContributionRecord {
|
|
|
1458
1456
|
* preserves that count for "unchanged" nodes and re-derives it for
|
|
1459
1457
|
* new / modified nodes from a fresh extractor pass.
|
|
1460
1458
|
*
|
|
1461
|
-
* Meta envelope: the `scan_meta` table persists `
|
|
1459
|
+
* Meta envelope: the `scan_meta` table persists `roots` /
|
|
1462
1460
|
* `scannedAt` / `scannedBy` / `providers` / `stats.filesWalked` /
|
|
1463
1461
|
* `stats.filesSkipped` / `stats.durationMs`. When the row exists,
|
|
1464
1462
|
* those fields come back authoritatively. When it does not (DB
|
|
@@ -1467,7 +1465,6 @@ interface IContributionRecord {
|
|
|
1467
1465
|
*
|
|
1468
1466
|
* - `scannedAt` ← max(`scan_nodes.scanned_at`); falls back to `Date.now()`
|
|
1469
1467
|
* for empty snapshots so the field stays a positive integer.
|
|
1470
|
-
* - `scope` ← `'project'`.
|
|
1471
1468
|
* - `roots` ← `['.']` to satisfy spec's `minItems: 1`. NOT
|
|
1472
1469
|
* load-bearing: the orchestrator's incremental path only reads
|
|
1473
1470
|
* `nodes` / `links` / `issues` from the prior; it never reuses the
|
|
@@ -2756,12 +2753,6 @@ interface RunScanOptions {
|
|
|
2756
2753
|
* declared contributionId.
|
|
2757
2754
|
*/
|
|
2758
2755
|
viewContributions?: readonly IRegisteredViewContribution[];
|
|
2759
|
-
/**
|
|
2760
|
-
* Scan scope. Defaults to `'project'`. The CLI flag wiring lands in
|
|
2761
|
-
* the config layer wiring; `runScan` already accepts the override
|
|
2762
|
-
* so plugins / tests can opt into `'global'` today.
|
|
2763
|
-
*/
|
|
2764
|
-
scope?: 'project' | 'global';
|
|
2765
2756
|
/**
|
|
2766
2757
|
* Compute per-node token counts (frontmatter / body / total) using the
|
|
2767
2758
|
* cl100k_base BPE (the modern OpenAI tokenizer used by GPT-4 / GPT-3.5).
|
package/dist/kernel/index.js
CHANGED
|
@@ -100,7 +100,7 @@ import cl100k_base from "js-tiktoken/ranks/cl100k_base";
|
|
|
100
100
|
// package.json
|
|
101
101
|
var package_default = {
|
|
102
102
|
name: "@skill-map/cli",
|
|
103
|
-
version: "0.
|
|
103
|
+
version: "0.28.0",
|
|
104
104
|
description: "skill-map reference implementation \u2014 kernel + CLI + adapters.",
|
|
105
105
|
license: "MIT",
|
|
106
106
|
type: "module",
|
|
@@ -388,6 +388,7 @@ var SCHEMA_FILES = {
|
|
|
388
388
|
"scan-result": "schemas/scan-result.schema.json",
|
|
389
389
|
"execution-record": "schemas/execution-record.schema.json",
|
|
390
390
|
"project-config": "schemas/project-config.schema.json",
|
|
391
|
+
"user-settings": "schemas/user-settings.schema.json",
|
|
391
392
|
"plugins-registry": "schemas/plugins-registry.schema.json",
|
|
392
393
|
job: "schemas/job.schema.json",
|
|
393
394
|
"report-base": "schemas/report-base.schema.json",
|
|
@@ -1707,7 +1708,8 @@ import { randomBytes } from "crypto";
|
|
|
1707
1708
|
import { dirname as dirname4 } from "path";
|
|
1708
1709
|
|
|
1709
1710
|
// core/config/helper.ts
|
|
1710
|
-
import {
|
|
1711
|
+
import { homedir as osHomedir } from "os";
|
|
1712
|
+
import { isAbsolute as isAbsolute2, join as join6, resolve as resolve8 } from "path";
|
|
1711
1713
|
|
|
1712
1714
|
// kernel/config/loader.ts
|
|
1713
1715
|
import { existsSync as existsSync6, readFileSync as readFileSync7 } from "fs";
|
|
@@ -2289,7 +2291,6 @@ function buildScanSetup(options) {
|
|
|
2289
2291
|
priorIndex,
|
|
2290
2292
|
priorExtractorRuns: options.priorExtractorRuns,
|
|
2291
2293
|
providerFrontmatter,
|
|
2292
|
-
scope: options.scope ?? "project",
|
|
2293
2294
|
strict: options.strict === true,
|
|
2294
2295
|
enableCache: options.enableCache === true
|
|
2295
2296
|
};
|
|
@@ -2332,7 +2333,6 @@ function buildScanReturn(walked, issues, renameOps, stats, options, setup) {
|
|
|
2332
2333
|
result: {
|
|
2333
2334
|
schemaVersion: 1,
|
|
2334
2335
|
scannedAt: setup.scannedAt,
|
|
2335
|
-
scope: setup.scope,
|
|
2336
2336
|
roots: options.roots,
|
|
2337
2337
|
providers: setup.exts.providers.map((a) => a.id),
|
|
2338
2338
|
scannedBy: SCANNED_BY,
|