@skill-map/cli 0.47.1 → 0.48.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/SKILL.md +3 -2
- package/dist/cli/tutorial/sm-tutorial/SKILL.md +2 -2
- package/dist/cli.js +441 -108
- package/dist/index.js +7 -5
- package/dist/kernel/index.d.ts +23 -28
- package/dist/kernel/index.js +7 -5
- package/dist/ui/{chunk-UV3QRBRR.js → chunk-2GTH7ZLV.js} +1 -1
- package/dist/ui/chunk-5K5WASS7.js +315 -0
- package/dist/ui/{chunk-WPUUCIS3.js → chunk-AVGEDQNI.js} +1 -1
- package/dist/ui/chunk-AWNZZYAU.js +1 -0
- package/dist/ui/{chunk-7K36273M.js → chunk-BKU4RCQK.js} +1 -1
- package/dist/ui/{chunk-RT7E4S5B.js → chunk-FSJSSLYD.js} +1 -1
- package/dist/ui/{chunk-CRWK2NFZ.js → chunk-IDZ7ZQXM.js} +1 -1
- package/dist/ui/chunk-K2LHWJKO.js +2190 -0
- package/dist/ui/chunk-L56QU7EF.js +2 -0
- package/dist/ui/chunk-NPK64R5H.js +123 -0
- package/dist/ui/chunk-OBYZDEVO.js +1 -0
- package/dist/ui/{chunk-UIUGLD7F.js → chunk-Q747VBQL.js} +3 -3
- package/dist/ui/{chunk-3HLMBEDX.js → chunk-QNFHGPFR.js} +1 -1
- package/dist/ui/chunk-Y6VK27P4.js +1 -0
- package/dist/ui/{chunk-CO2ZOUSD.js → chunk-YQ7ZKAFY.js} +1 -1
- package/dist/ui/index.html +2 -2
- package/dist/ui/{main-M4W7H6RY.js → main-KXXADOQV.js} +3 -3
- package/dist/ui/{styles-HI4A6IWA.css → styles-HWRPHKTJ.css} +1 -1
- package/package.json +5 -3
- package/dist/ui/chunk-3AKR33GE.js +0 -1
- package/dist/ui/chunk-EPBUSS3I.js +0 -2
- package/dist/ui/chunk-K365TVPA.js +0 -1
- package/dist/ui/chunk-QCMLB44L.js +0 -123
- package/dist/ui/chunk-VNA3TMIO.js +0 -1
- package/dist/ui/chunk-XWU3YFSM.js +0 -315
- package/dist/ui/chunk-YOF6HQCQ.js +0 -2190
- package/dist/ui/chunk-ZZJ7XWDX.js +0 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// kernel/i18n/registry.texts.ts
|
|
2
2
|
|
|
3
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
3
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="99584110-b392-5047-a93c-6992b01544ff")}catch(e){}}();
|
|
4
4
|
var REGISTRY_TEXTS = {
|
|
5
5
|
duplicateExtension: "Extension already registered: {{kind}}:{{qualifiedId}}",
|
|
6
6
|
unknownKind: "Unknown extension kind: {{kind}}",
|
|
@@ -102,7 +102,7 @@ import { Tiktoken as Tiktoken2 } from "js-tiktoken/lite";
|
|
|
102
102
|
// package.json
|
|
103
103
|
var package_default = {
|
|
104
104
|
name: "@skill-map/cli",
|
|
105
|
-
version: "0.
|
|
105
|
+
version: "0.48.0",
|
|
106
106
|
description: "skill-map reference implementation \u2014 kernel + CLI + adapters.",
|
|
107
107
|
license: "MIT",
|
|
108
108
|
type: "module",
|
|
@@ -155,9 +155,11 @@ var package_default = {
|
|
|
155
155
|
"lint:fix": "eslint . --fix",
|
|
156
156
|
"build-built-ins": "node ../scripts/generate-built-ins.js",
|
|
157
157
|
"built-ins:check": "node ../scripts/generate-built-ins.js --check",
|
|
158
|
+
"view-catalog": "node ../scripts/generate-view-catalog.js",
|
|
159
|
+
"view-catalog:check": "node ../scripts/generate-view-catalog.js --check",
|
|
158
160
|
prebuild: "pnpm build-built-ins",
|
|
159
161
|
validate: "pnpm validate:compile && pnpm validate:test",
|
|
160
|
-
"validate:compile": "pnpm typecheck && pnpm lint && pnpm build && pnpm built-ins:check",
|
|
162
|
+
"validate:compile": "pnpm typecheck && pnpm lint && pnpm build && pnpm built-ins:check && pnpm view-catalog:check",
|
|
161
163
|
"validate:test": "pnpm test:ci",
|
|
162
164
|
pretest: "tsup",
|
|
163
165
|
"pretest:coverage": "tsup",
|
|
@@ -371,7 +373,7 @@ import { dirname as dirname2, resolve as resolve4 } from "path";
|
|
|
371
373
|
import { createRequire as createRequire2 } from "module";
|
|
372
374
|
import { Ajv2020 as Ajv20203 } from "ajv/dist/2020.js";
|
|
373
375
|
|
|
374
|
-
// kernel/types/view-catalog.ts
|
|
376
|
+
// kernel/types/view-catalog.generated.ts
|
|
375
377
|
var ALL_SLOT_NAMES = [
|
|
376
378
|
"card.title.right",
|
|
377
379
|
"card.subtitle.left",
|
|
@@ -3820,4 +3822,4 @@ export {
|
|
|
3820
3822
|
runScanWithRenames
|
|
3821
3823
|
};
|
|
3822
3824
|
//# sourceMappingURL=index.js.map
|
|
3823
|
-
//# debugId=
|
|
3825
|
+
//# debugId=99584110-b392-5047-a93c-6992b01544ff
|
package/dist/kernel/index.d.ts
CHANGED
|
@@ -82,6 +82,17 @@ interface IRegisteredAnnotationKey {
|
|
|
82
82
|
schema: Record<string, unknown>;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
+
/**
|
|
86
|
+
* Closed enum of view slot names. Mirror of
|
|
87
|
+
* `spec/schemas/view-slots.schema.json#/$defs/SlotName`.
|
|
88
|
+
*/
|
|
89
|
+
type TSlotName = 'card.title.right' | 'card.subtitle.left' | 'card.footer.left' | 'card.footer.right' | 'graph.node.alert' | 'inspector.header.badge.counter' | 'inspector.header.badge.tag' | 'inspector.body.panel.breakdown' | 'inspector.body.panel.records' | 'inspector.body.panel.tree' | 'inspector.body.panel.key-values' | 'inspector.body.panel.link-list' | 'inspector.body.panel.markdown' | 'topbar.nav.start';
|
|
90
|
+
/**
|
|
91
|
+
* Closed enum of input-type names for plugin settings. Mirror of
|
|
92
|
+
* `spec/schemas/input-types.schema.json#/$defs/InputTypeName`.
|
|
93
|
+
*/
|
|
94
|
+
type TInputTypeName = 'string-list' | 'single-string' | 'boolean-flag' | 'integer' | 'enum-pick' | 'enum-multipick' | 'path-glob' | 'regex' | 'secret' | 'key-value-list';
|
|
95
|
+
|
|
85
96
|
/**
|
|
86
97
|
* Step 11.x, runtime view-contribution catalog types.
|
|
87
98
|
*
|
|
@@ -96,35 +107,19 @@ interface IRegisteredAnnotationKey {
|
|
|
96
107
|
* storage or routing, see `architecture.md` §View contribution system
|
|
97
108
|
* for the comparison table.
|
|
98
109
|
*
|
|
99
|
-
* **Closed catalog by design.** Both `TSlotName`
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
*
|
|
110
|
-
* `spec/schemas/view-slots.schema.json#/$defs/SlotName`.
|
|
111
|
-
*
|
|
112
|
-
* Plugins pick one of these by name in their extension manifest's
|
|
113
|
-
* `viewContributions[<contributionId>].slot` field. The kernel
|
|
114
|
-
* validates each pick at load time (`invalid-manifest` on miss); the
|
|
115
|
-
* slot fixes both the renderer and the payload shape.
|
|
116
|
-
*/
|
|
117
|
-
type TSlotName = 'card.title.right' | 'card.subtitle.left' | 'card.footer.left' | 'card.footer.right' | 'graph.node.alert' | 'inspector.header.badge.counter' | 'inspector.header.badge.tag' | 'inspector.body.panel.breakdown' | 'inspector.body.panel.records' | 'inspector.body.panel.tree' | 'inspector.body.panel.key-values' | 'inspector.body.panel.link-list' | 'inspector.body.panel.markdown' | 'topbar.nav.start';
|
|
118
|
-
/**
|
|
119
|
-
* Closed enum of input-type names for plugin settings. Mirror of
|
|
120
|
-
* `spec/schemas/input-types.schema.json#/$defs/InputTypeName`.
|
|
121
|
-
*
|
|
122
|
-
* Plugins pick one of these by name in their plugin manifest's
|
|
123
|
-
* `settings[<settingId>].type` field. The kernel exposes the resolved
|
|
124
|
-
* value via `ctx.settings.<settingId>` typed per the input-type's
|
|
125
|
-
* value-type promise.
|
|
110
|
+
* **Closed catalog by design, generated from the spec.** Both `TSlotName`
|
|
111
|
+
* and `TInputTypeName` are generated (in `view-catalog.generated.ts`) from
|
|
112
|
+
* the closed `oneOf` const lists in `spec/schemas/view-slots.schema.json`
|
|
113
|
+
* and `spec/schemas/input-types.schema.json`. Adding a member means editing
|
|
114
|
+
* the spec and running `pnpm --filter @skill-map/cli view-catalog`; the
|
|
115
|
+
* `view-catalog:check` drift guard fails the build if any mirror (this
|
|
116
|
+
* kernel one, the CLI `slots-catalog.ts`, the UI `TSlotId` union) goes
|
|
117
|
+
* stale. The closed-enum shape lets TypeScript surface unknown slots at
|
|
118
|
+
* author time (in plugin authors' editors when their plugin imports
|
|
119
|
+
* `@skill-map/cli`) AND lets the runtime exhaustively dispatch slot →
|
|
120
|
+
* renderer in the UI without `default:` fallbacks.
|
|
126
121
|
*/
|
|
127
|
-
|
|
122
|
+
|
|
128
123
|
/** Closed severity palette aligned with PrimeNG `<p-tag>` / `<p-message>`. */
|
|
129
124
|
type TSeverity = 'info' | 'warn' | 'success' | 'danger';
|
|
130
125
|
/**
|
package/dist/kernel/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// kernel/i18n/registry.texts.ts
|
|
2
2
|
|
|
3
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
3
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="75e7d43c-0ccf-53b4-b1bc-b0eb228994b9")}catch(e){}}();
|
|
4
4
|
var REGISTRY_TEXTS = {
|
|
5
5
|
duplicateExtension: "Extension already registered: {{kind}}:{{qualifiedId}}",
|
|
6
6
|
unknownKind: "Unknown extension kind: {{kind}}",
|
|
@@ -102,7 +102,7 @@ import { Tiktoken as Tiktoken2 } from "js-tiktoken/lite";
|
|
|
102
102
|
// package.json
|
|
103
103
|
var package_default = {
|
|
104
104
|
name: "@skill-map/cli",
|
|
105
|
-
version: "0.
|
|
105
|
+
version: "0.48.0",
|
|
106
106
|
description: "skill-map reference implementation \u2014 kernel + CLI + adapters.",
|
|
107
107
|
license: "MIT",
|
|
108
108
|
type: "module",
|
|
@@ -155,9 +155,11 @@ var package_default = {
|
|
|
155
155
|
"lint:fix": "eslint . --fix",
|
|
156
156
|
"build-built-ins": "node ../scripts/generate-built-ins.js",
|
|
157
157
|
"built-ins:check": "node ../scripts/generate-built-ins.js --check",
|
|
158
|
+
"view-catalog": "node ../scripts/generate-view-catalog.js",
|
|
159
|
+
"view-catalog:check": "node ../scripts/generate-view-catalog.js --check",
|
|
158
160
|
prebuild: "pnpm build-built-ins",
|
|
159
161
|
validate: "pnpm validate:compile && pnpm validate:test",
|
|
160
|
-
"validate:compile": "pnpm typecheck && pnpm lint && pnpm build && pnpm built-ins:check",
|
|
162
|
+
"validate:compile": "pnpm typecheck && pnpm lint && pnpm build && pnpm built-ins:check && pnpm view-catalog:check",
|
|
161
163
|
"validate:test": "pnpm test:ci",
|
|
162
164
|
pretest: "tsup",
|
|
163
165
|
"pretest:coverage": "tsup",
|
|
@@ -371,7 +373,7 @@ import { dirname as dirname2, resolve as resolve4 } from "path";
|
|
|
371
373
|
import { createRequire as createRequire2 } from "module";
|
|
372
374
|
import { Ajv2020 as Ajv20203 } from "ajv/dist/2020.js";
|
|
373
375
|
|
|
374
|
-
// kernel/types/view-catalog.ts
|
|
376
|
+
// kernel/types/view-catalog.generated.ts
|
|
375
377
|
var ALL_SLOT_NAMES = [
|
|
376
378
|
"card.title.right",
|
|
377
379
|
"card.subtitle.left",
|
|
@@ -3820,4 +3822,4 @@ export {
|
|
|
3820
3822
|
runScanWithRenames
|
|
3821
3823
|
};
|
|
3822
3824
|
//# sourceMappingURL=index.js.map
|
|
3823
|
-
//# debugId=
|
|
3825
|
+
//# debugId=75e7d43c-0ccf-53b4-b1bc-b0eb228994b9
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{A as Pe,C as He,S as je,Y as Ve,j as $e,k as W,m as K,p as w,q as ge,w as y,x as Y}from"./chunk-
|
|
1
|
+
import{A as Pe,C as He,S as je,Y as Ve,j as $e,k as W,m as K,p as w,q as ge,w as y,x as Y}from"./chunk-AVGEDQNI.js";import{I as xe,K as Q,P as ce,b as U,d as ue,fa as pe,g as Fe}from"./chunk-4SG4352Z.js";import{i as Se,j as G}from"./chunk-L56QU7EF.js";import{$a as V,Ab as Ae,Db as le,Ib as Ne,Ic as L,Jc as we,K as Ee,Ka as O,Kb as k,Kc as de,L as x,Lb as Be,M as $,Mb as Oe,Nb as ke,O as B,Pb as z,Q as m,Qb as q,Y as Le,Yb as E,Za as D,Zb as Ie,_a as j,_b as _e,ab as R,bb as C,ca as De,cb as ne,ha as P,ic as I,ja as H,kc as re,la as b,lb as oe,ob as T,pb as A,tc as se,ub as N,uc as _,vb as ie,wb as ae,xb as Te,xc as u,yc as a}from"./chunk-HAWX5WNM.js";import{a as te}from"./chunk-WCABR6TI.js";var tt=["data-p-icon","times"],wt=(()=>{class t extends Pe{static \u0275fac=(()=>{let e;return function(o){return(e||(e=b(t)))(o||t)}})();static \u0275cmp=D({type:t,selectors:[["","data-p-icon","times"]],features:[C],attrs:tt,decls:1,vars:0,consts:[["d","M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z","fill","currentColor"]],template:function(n,o){n&1&&(Le(),Ae(0,"path",0))},encapsulation:2})}return t})();var nt=Object.defineProperty,Re=Object.getOwnPropertySymbols,ot=Object.prototype.hasOwnProperty,it=Object.prototype.propertyIsEnumerable,ze=(t,i,e)=>i in t?nt(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e,qe=(t,i)=>{for(var e in i||(i={}))ot.call(i,e)&&ze(t,e,i[e]);if(Re)for(var e of Re(i))it.call(i,e)&&ze(t,e,i[e]);return t},at=(t,i,e)=>new Promise((n,o)=>{var l=s=>{try{f(e.next(s))}catch(c){o(c)}},r=s=>{try{f(e.throw(s))}catch(c){o(c)}},f=s=>s.done?n(s.value):Promise.resolve(s.value).then(l,r);f((e=e.apply(t,i)).next())}),Z="animation",S="transition";function lt(t){return t?t.disabled||!!(t.safe&&xe()):!1}function rt(t,i){return t?qe(qe({},t),Object.entries(i).reduce((e,[n,o])=>{var l;return e[n]=(l=t[n])!=null?l:o,e},{})):i}function st(t){let{name:i,enterClass:e,leaveClass:n}=t||{};return{enter:{from:e?.from||`${i}-enter-from`,to:e?.to||`${i}-enter-to`,active:e?.active||`${i}-enter-active`},leave:{from:n?.from||`${i}-leave-from`,to:n?.to||`${i}-leave-to`,active:n?.active||`${i}-leave-active`}}}function dt(t){return{enter:{onBefore:t?.onBeforeEnter,onStart:t?.onEnter,onAfter:t?.onAfterEnter,onCancelled:t?.onEnterCancelled},leave:{onBefore:t?.onBeforeLeave,onStart:t?.onLeave,onAfter:t?.onAfterLeave,onCancelled:t?.onLeaveCancelled}}}function ut(t,i){let e=window.getComputedStyle(t),n=g=>{let M=e[`${g}Delay`],v=e[`${g}Duration`];return[M.split(", ").map(pe),v.split(", ").map(pe)]},[o,l]=n(S),[r,f]=n(Z),s=Math.max(...l.map((g,M)=>g+o[M])),c=Math.max(...f.map((g,M)=>g+r[M])),d,p=0,h=0;return i===S?s>0&&(d=S,p=s,h=l.length):i===Z?c>0&&(d=Z,p=c,h=f.length):(p=Math.max(s,c),d=p>0?s>c?S:Z:void 0,h=d?d===S?l.length:f.length:0),{type:d,timeout:p,count:h}}function J(t,i){return typeof t=="number"?t:typeof t=="object"&&t[i]!=null?t[i]:null}function ct(t,i=!0,e=!1){if(!i&&!e)return;let n=Fe(t);i&&ce(t,"--pui-motion-height",n.height+"px"),e&&ce(t,"--pui-motion-width",n.width+"px")}var pt={name:"p",safe:!0,disabled:!1,enter:!0,leave:!0,autoHeight:!0,autoWidth:!1};function he(t,i){if(!t)throw new Error("Element is required.");let e={},n=!1,o={},l=null,r={},f=d=>{if(Object.assign(e,rt(d,pt)),!e.enter&&!e.leave)throw new Error("Enter or leave must be true.");r=dt(e),n=lt(e),o=st(e),l=null},s=d=>at(null,null,function*(){l?.();let{onBefore:p,onStart:h,onAfter:g,onCancelled:M}=r[d]||{},v={element:t};if(n){p?.(v),h?.(v),g?.(v);return}let{from:me,active:be,to:Ce}=o[d]||{};return ct(t,e.autoHeight,e.autoWidth),p?.(v),U(t,me),U(t,be),t.offsetHeight,ue(t,me),U(t,Ce),h?.(v),new Promise(ye=>{let Xe=J(e.duration,d),Me=()=>{ue(t,[Ce,be]),l=null},et=()=>{Me(),g?.(v),ye()};l=()=>{Me(),M?.(v),ye()},ft(t,e.type,Xe,et)})});f(i);let c={enter:()=>e.enter?s("enter"):Promise.resolve(),leave:()=>e.leave?s("leave"):Promise.resolve(),cancel:()=>{l?.(),l=null},update:(d,p)=>{if(!d)throw new Error("Element is required.");t=d,c.cancel(),f(p)}};return e.appear&&c.enter(),c}var gt=0;function ft(t,i,e,n){let o=t._motionEndId=++gt,l=()=>{o===t._motionEndId&&n()};if(e!=null)return setTimeout(l,e);let{type:r,timeout:f,count:s}=ut(t,i);if(!r){n();return}let c=r+"end",d=0,p=()=>{t.removeEventListener(c,h,!0),l()},h=g=>{g.target===t&&++d>=s&&p()};t.addEventListener(c,h,{capture:!0,once:!0}),setTimeout(()=>{d<s&&p()},f+1)}var vt=["*"];function mt(t,i){t&1&&Oe(0)}var X=new WeakMap;function F(t,i){if(t)switch(X.has(t)||X.set(t,{display:t.style.display,visibility:t.style.visibility,maxHeight:t.style.maxHeight,overflow:t.style.overflow}),i){case"display":t.style.display="none";break;case"visibility":t.style.visibility="hidden",t.style.maxHeight="0",t.style.overflow="hidden";break}}function ee(t,i){if(!t)return;let e=X.get(t)??t.style;switch(i){case"display":t.style.display=e?.display||"";break;case"visibility":t.style.visibility=e?.visibility||"",t.style.maxHeight=e?.maxHeight||"",t.style.overflow=e?.overflow||"";break}X.delete(t)}var bt=`
|
|
2
2
|
.p-motion {
|
|
3
3
|
display: block;
|
|
4
4
|
}
|