vskill 0.5.102 → 0.5.103
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/agents.json +1 -1
- package/dist/eval/skill-scanner.d.ts +5 -0
- package/dist/eval/skill-scanner.js +12 -0
- package/dist/eval/skill-scanner.js.map +1 -1
- package/dist/eval-server/api-routes.js +23 -14
- package/dist/eval-server/api-routes.js.map +1 -1
- package/dist/eval-server/authoring-routes.d.ts +1 -0
- package/dist/eval-server/authoring-routes.js +42 -0
- package/dist/eval-server/authoring-routes.js.map +1 -1
- package/dist/eval-server/boot-preflight.d.ts +1 -0
- package/dist/eval-server/boot-preflight.js +17 -0
- package/dist/eval-server/boot-preflight.js.map +1 -0
- package/dist/eval-server/providers.d.ts +16 -0
- package/dist/eval-server/providers.js +45 -0
- package/dist/eval-server/providers.js.map +1 -0
- package/dist/eval-server/settings-store.d.ts +33 -26
- package/dist/eval-server/settings-store.js +245 -145
- package/dist/eval-server/settings-store.js.map +1 -1
- package/dist/eval-ui/assets/{CommandPalette-BSGTaiI4.js → CommandPalette-6cLEufX0.js} +1 -1
- package/dist/eval-ui/assets/CreateSkillPage-kn7xDaAP.js +12 -0
- package/dist/eval-ui/assets/{UpdateDropdown-stNmCWki.js → UpdateDropdown-9qR5NxTi.js} +1 -1
- package/dist/eval-ui/assets/index-4LdVR3Lo.js +102 -0
- package/dist/eval-ui/assets/index-C0Gc_4KC.css +1 -0
- package/dist/eval-ui/index.html +2 -2
- package/dist/studio/lib/ops-log.js +4 -1
- package/dist/studio/lib/ops-log.js.map +1 -1
- package/dist/studio/lib/scope-transfer.d.ts +10 -0
- package/dist/studio/lib/scope-transfer.js +116 -13
- package/dist/studio/lib/scope-transfer.js.map +1 -1
- package/dist/studio/routes/ops.js +26 -3
- package/dist/studio/routes/ops.js.map +1 -1
- package/dist/studio/routes/promote.js +9 -15
- package/dist/studio/routes/promote.js.map +1 -1
- package/dist/studio/routes/test-install.js +4 -11
- package/dist/studio/routes/test-install.js.map +1 -1
- package/package.json +1 -1
- package/dist/eval-ui/assets/index-BoCK_s7q.js +0 -91
- package/dist/eval-ui/assets/index-D5FxVeoM.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-serif:ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-black:#000;--spacing:.25rem;--container-xs:20rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-2xl:42rem;--container-3xl:48rem;--container-4xl:56rem;--container-5xl:64rem;--container-6xl:72rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--tracking-widest:.1em;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--ease-out:cubic-bezier(0, 0, .2, 1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing) * 0)}.start{inset-inline-start:var(--spacing)}.end{inset-inline-end:var(--spacing)}.top-0{top:calc(var(--spacing) * 0)}.top-1{top:calc(var(--spacing) * 1)}.top-1\.5{top:calc(var(--spacing) * 1.5)}.top-4{top:calc(var(--spacing) * 4)}.top-8{top:calc(var(--spacing) * 8)}.top-full{top:100%}.right-0{right:calc(var(--spacing) * 0)}.right-1{right:calc(var(--spacing) * 1)}.right-4{right:calc(var(--spacing) * 4)}.right-5{right:calc(var(--spacing) * 5)}.bottom-0{bottom:calc(var(--spacing) * 0)}.bottom-4{bottom:calc(var(--spacing) * 4)}.bottom-5{bottom:calc(var(--spacing) * 5)}.left-0{left:calc(var(--spacing) * 0)}.left-1\.5{left:calc(var(--spacing) * 1.5)}.left-3{left:calc(var(--spacing) * 3)}.z-50{z-index:50}.col-span-1{grid-column:span 1/span 1}.col-span-2{grid-column:span 2/span 2}.col-span-3{grid-column:span 3/span 3}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.-mx-2{margin-inline:calc(var(--spacing) * -2)}.mx-4{margin-inline:calc(var(--spacing) * 4)}.mx-auto{margin-inline:auto}.my-4{margin-block:calc(var(--spacing) * 4)}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-2\.5{margin-top:calc(var(--spacing) * 2.5)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-3\.5{margin-top:calc(var(--spacing) * 3.5)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mt-6{margin-top:calc(var(--spacing) * 6)}.mb-0\.5{margin-bottom:calc(var(--spacing) * .5)}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-1\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-2\.5{margin-bottom:calc(var(--spacing) * 2.5)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-5{margin-bottom:calc(var(--spacing) * 5)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.mb-7{margin-bottom:calc(var(--spacing) * 7)}.mb-8{margin-bottom:calc(var(--spacing) * 8)}.ml-1{margin-left:calc(var(--spacing) * 1)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-3{margin-left:calc(var(--spacing) * 3)}.ml-auto{margin-left:auto}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-2\.5{height:calc(var(--spacing) * 2.5)}.h-3{height:calc(var(--spacing) * 3)}.h-3\.5{height:calc(var(--spacing) * 3.5)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-12{height:calc(var(--spacing) * 12)}.h-14{height:calc(var(--spacing) * 14)}.h-16{height:calc(var(--spacing) * 16)}.h-20{height:calc(var(--spacing) * 20)}.h-24{height:calc(var(--spacing) * 24)}.h-32{height:calc(var(--spacing) * 32)}.h-36{height:calc(var(--spacing) * 36)}.h-48{height:calc(var(--spacing) * 48)}.h-full{height:100%}.h-px{height:1px}.max-h-40{max-height:calc(var(--spacing) * 40)}.max-h-48{max-height:calc(var(--spacing) * 48)}.max-h-64{max-height:calc(var(--spacing) * 64)}.max-h-72{max-height:calc(var(--spacing) * 72)}.max-h-80{max-height:calc(var(--spacing) * 80)}.max-h-\[500px\]{max-height:500px}.min-h-0{min-height:calc(var(--spacing) * 0)}.w-1\.5{width:calc(var(--spacing) * 1.5)}.w-2{width:calc(var(--spacing) * 2)}.w-2\.5{width:calc(var(--spacing) * 2.5)}.w-3{width:calc(var(--spacing) * 3)}.w-3\.5{width:calc(var(--spacing) * 3.5)}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-6{width:calc(var(--spacing) * 6)}.w-7{width:calc(var(--spacing) * 7)}.w-8{width:calc(var(--spacing) * 8)}.w-9{width:calc(var(--spacing) * 9)}.w-12{width:calc(var(--spacing) * 12)}.w-14{width:calc(var(--spacing) * 14)}.w-16{width:calc(var(--spacing) * 16)}.w-20{width:calc(var(--spacing) * 20)}.w-28{width:calc(var(--spacing) * 28)}.w-32{width:calc(var(--spacing) * 32)}.w-36{width:calc(var(--spacing) * 36)}.w-40{width:calc(var(--spacing) * 40)}.w-48{width:calc(var(--spacing) * 48)}.w-\[340px\]{width:340px}.w-\[520px\]{width:520px}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-3xl{max-width:var(--container-3xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-5xl{max-width:var(--container-5xl)}.max-w-6xl{max-width:var(--container-6xl)}.max-w-\[92vw\]{max-width:92vw}.max-w-lg{max-width:var(--container-lg)}.max-w-md{max-width:var(--container-md)}.max-w-sm{max-width:var(--container-sm)}.max-w-xs{max-width:var(--container-xs)}.min-w-0{min-width:calc(var(--spacing) * 0)}.flex-1{flex:1}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.grow{flex-grow:1}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.cursor-pointer{cursor:pointer}.resize{resize:both}.resize-none{resize:none}.resize-y{resize:vertical}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.grid-cols-\[3fr_2fr\]{grid-template-columns:3fr 2fr}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0{gap:calc(var(--spacing) * 0)}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}:where(.space-y-0\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * .5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * .5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 8) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 8) * calc(1 - var(--tw-space-y-reverse)))}.gap-x-3{column-gap:calc(var(--spacing) * 3)}.gap-y-1{row-gap:calc(var(--spacing) * 1)}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-\[3px\]{border-radius:3px}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.bg-black\/30{background-color:#0000004d}@supports (color:color-mix(in lab,red,red)){.bg-black\/30{background-color:color-mix(in oklab,var(--color-black) 30%,transparent)}}.bg-black\/50{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.bg-black\/50{background-color:color-mix(in oklab,var(--color-black) 50%,transparent)}}.p-0\.5{padding:calc(var(--spacing) * .5)}.p-1{padding:calc(var(--spacing) * 1)}.p-2{padding:calc(var(--spacing) * 2)}.p-2\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.p-3\.5{padding:calc(var(--spacing) * 3.5)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.px-0{padding-inline:calc(var(--spacing) * 0)}.px-1{padding-inline:calc(var(--spacing) * 1)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-3\.5{padding-inline:calc(var(--spacing) * 3.5)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-8{padding-inline:calc(var(--spacing) * 8)}.px-10{padding-inline:calc(var(--spacing) * 10)}.py-0{padding-block:calc(var(--spacing) * 0)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-3\.5{padding-block:calc(var(--spacing) * 3.5)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-5{padding-block:calc(var(--spacing) * 5)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-8{padding-block:calc(var(--spacing) * 8)}.py-12{padding-block:calc(var(--spacing) * 12)}.py-16{padding-block:calc(var(--spacing) * 16)}.py-20{padding-block:calc(var(--spacing) * 20)}.py-px{padding-block:1px}.pt-1{padding-top:calc(var(--spacing) * 1)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-2\.5{padding-top:calc(var(--spacing) * 2.5)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-3\.5{padding-top:calc(var(--spacing) * 3.5)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-24{padding-top:calc(var(--spacing) * 24)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-4{padding-right:calc(var(--spacing) * 4)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-2\.5{padding-bottom:calc(var(--spacing) * 2.5)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pl-8{padding-left:calc(var(--spacing) * 8)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-mono{font-family:var(--font-mono)}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[9px\]{font-size:9px}.text-\[10\.5px\]{font-size:10.5px}.text-\[10px\]{font-size:10px}.text-\[11\.5px\]{font-size:11.5px}.text-\[11px\]{font-size:11px}.text-\[12px\]{font-size:12px}.text-\[13px\]{font-size:13px}.text-\[14px\]{font-size:14px}.text-\[15px\]{font-size:15px}.text-\[16px\]{font-size:16px}.text-\[18px\]{font-size:18px}.text-\[20px\]{font-size:20px}.text-\[22px\]{font-size:22px}.text-\[24px\]{font-size:24px}.text-\[28px\]{font-size:28px}.text-\[32px\]{font-size:32px}.text-\[36px\]{font-size:36px}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-pre-wrap{white-space:pre-wrap}.capitalize{text-transform:capitalize}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.line-through{text-decoration-line:line-through}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-70{opacity:.7}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-500{--tw-duration:.5s;transition-duration:.5s}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}@media(hover:hover){.group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}.hover\:underline:hover{text-decoration-line:underline}}}:root{--color-paper:#fbf8f3;--color-surface:#fff;--color-ink:#191919;--color-ink-muted:#5a5651;--color-rule:#e8e1d6;--color-accent:#d4a27f;--color-accent-ink:#7a4a24;--color-installed:#2f6a4a;--color-own:#8a5a1f;--color-focus:#3b6ea8;--color-action:#2f5b8e;--color-action-hover:#264a73;--color-action-ink:#fff;--font-serif:"Source Serif 4 Variable", "Source Serif 4", Georgia, serif;--font-sans:"Inter Tight Variable", "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;--font-mono:"JetBrains Mono Variable", "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;--ease-standard:cubic-bezier(.2, 0, 0, 1);--duration-fast:.12s;--duration-base:.18s;--duration-modal:.24s}[data-theme=light]{--color-paper:#fbf8f3;--color-surface:#fff;--color-ink:#191919;--color-ink-muted:#5a5651;--color-rule:#e8e1d6;--color-accent:#d4a27f;--color-accent-ink:#7a4a24;--color-installed:#2f6a4a;--color-own:#8a5a1f;--color-focus:#3b6ea8;--color-action:#2f5b8e;--color-action-hover:#264a73;--color-action-ink:#fff}[data-theme=dark]{--color-paper:#1a1814;--color-surface:#221f1a;--color-ink:#f2ece1;--color-ink-muted:#a59d8f;--color-rule:#2e2a24;--color-accent:#e0b793;--color-accent-ink:#f2ece1;--color-installed:#86c9a5;--color-own:#e6b877;--color-focus:#7ca8d9;--color-action:#4a82c8;--color-action-hover:#6093d6;--color-action-ink:#0b1420}[data-contrast=more]{--color-ink-muted:#3d3a36;--color-rule:#b8ad9a}[data-theme=dark][data-contrast=more]{--color-ink-muted:#d4cbba;--color-rule:#4a453d}:root{--bg-canvas:var(--color-paper);--bg-surface:var(--color-surface);--text-primary:var(--color-ink);--text-secondary:var(--color-ink-muted);--text-accent:var(--color-accent-ink);--border-default:var(--color-rule);--border-focus:var(--color-focus);--status-installed:var(--color-installed);--status-own:var(--color-own);--accent-surface:var(--color-accent);--surface-0:var(--color-paper);--surface-1:var(--color-surface);--surface-2:var(--color-surface);--surface-3:var(--color-rule);--surface-4:var(--color-rule);--border-subtle:var(--color-rule);--border-hover:var(--color-accent);--border-active:var(--color-focus);--text-tertiary:var(--color-ink-muted);--accent:var(--color-accent);--accent-hover:var(--color-accent-ink);--accent-muted:var(--color-accent)}@supports (color:color-mix(in lab,red,red)){:root{--accent-muted:color-mix(in srgb, var(--color-accent) 20%, transparent)}}:root{--green:var(--color-installed);--green-muted:var(--color-installed)}@supports (color:color-mix(in lab,red,red)){:root{--green-muted:color-mix(in srgb, var(--color-installed) 18%, transparent)}}:root{--red:#b54444;--red-muted:#b544442e;--yellow:var(--color-own);--yellow-muted:var(--color-own)}@supports (color:color-mix(in lab,red,red)){:root{--yellow-muted:color-mix(in srgb, var(--color-own) 18%, transparent)}}:root{--orange:var(--color-own);--orange-muted:var(--color-own)}@supports (color:color-mix(in lab,red,red)){:root{--orange-muted:color-mix(in srgb, var(--color-own) 18%, transparent)}}:root{--purple:var(--color-accent);--purple-muted:var(--color-accent)}@supports (color:color-mix(in lab,red,red)){:root{--purple-muted:color-mix(in srgb, var(--color-accent) 18%, transparent)}}:root{--ease-out-expo:var(--ease-standard);--ease-spring:var(--ease-standard)}[data-theme=dark]{--red:#d48a8a;--red-muted:#d48a8a38}html{background:var(--bg-canvas);color:var(--text-primary)}body{background:var(--bg-canvas);color:var(--text-primary);font-family:var(--font-sans);font-feature-settings:"ss01","cv11";-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}::selection{background:var(--color-accent)}@supports (color:color-mix(in lab,red,red)){::selection{background:color-mix(in srgb,var(--color-accent) 35%,transparent)}}::selection{color:var(--text-primary)}:focus-visible{outline:2px solid var(--border-focus);outline-offset:2px;border-radius:4px}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:var(--border-default);border-radius:3px}::-webkit-scrollbar-thumb:hover{background:var(--text-secondary)}@keyframes fade-in{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@keyframes fade-in-scale{0%{opacity:0;transform:scale(.98)translateY(4px)}to{opacity:1;transform:scale(1)translateY(0)}}@keyframes slide-in-right{0%{opacity:0;transform:translate(8px)}to{opacity:1;transform:translate(0)}}@keyframes overlay-in{0%{opacity:0}to{opacity:1}}@keyframes modal-in{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@keyframes spin-slow{to{transform:rotate(360deg)}}.animate-fade-in{animation:fade-in var(--duration-base) var(--ease-standard) both}.animate-fade-in-scale{animation:fade-in-scale var(--duration-base) var(--ease-standard) both}.animate-slide-in-right{animation:slide-in-right var(--duration-base) var(--ease-standard) both}.animate-overlay-in{animation:overlay-in var(--duration-fast) var(--ease-standard) both}.animate-modal-in{animation:modal-in var(--duration-modal) var(--ease-standard) both}.stagger-children>*{animation:fade-in var(--duration-base) var(--ease-standard) both}.stagger-children>:first-child{animation-delay:0s}.stagger-children>:nth-child(2){animation-delay:30ms}.stagger-children>:nth-child(3){animation-delay:60ms}.stagger-children>:nth-child(4){animation-delay:90ms}.stagger-children>:nth-child(n+5){animation-delay:.12s}@media(prefers-reduced-motion:reduce){*,:before,:after{transition-duration:0s!important;transition-delay:0s!important;animation-duration:0s!important;animation-delay:0s!important}}.placeholder,.skeleton{background:var(--border-default);opacity:.6;border-radius:4px}.glass-card{background:var(--bg-surface);border:1px solid var(--border-default);transition:border-color var(--duration-fast) var(--ease-standard);border-radius:8px}.glass-card:hover,.glass-card-interactive:hover{border-color:var(--color-accent)}.pill{letter-spacing:.02em;color:var(--text-secondary);align-items:center;gap:6px;padding:2px 0;font-size:11px;font-weight:500;line-height:1.4;display:inline-flex}.pill:before{content:"";background:currentColor;border-radius:50%;width:6px;height:6px}.pill-installed{color:var(--status-installed)}.pill-own{color:var(--status-own)}.input-field{background:var(--bg-surface);border:1px solid var(--border-default);color:var(--text-primary);font-size:13px;font-family:var(--font-sans);transition:border-color var(--duration-fast) var(--ease-standard);border-radius:6px;outline:none;width:100%;padding:8px 12px}.input-field:focus{border-color:var(--border-focus);box-shadow:0 0 0 3px var(--color-focus)}@supports (color:color-mix(in lab,red,red)){.input-field:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--color-focus) 18%,transparent)}}.input-field::placeholder{color:var(--text-secondary)}.btn{height:36px;font-size:13px;font-weight:500;font-family:var(--font-sans);cursor:pointer;transition:background-color var(--duration-fast) var(--ease-standard),color var(--duration-fast) var(--ease-standard),border-color var(--duration-fast) var(--ease-standard);white-space:nowrap;border:1px solid #0000;border-radius:6px;outline:none;justify-content:center;align-items:center;gap:6px;padding:8px 14px;display:inline-flex}.btn:disabled{opacity:.4;cursor:not-allowed}.btn-primary{background:var(--color-ink);color:var(--color-paper)}.btn-primary:hover:not(:disabled){background:var(--color-ink)}@supports (color:color-mix(in lab,red,red)){.btn-primary:hover:not(:disabled){background:color-mix(in srgb,var(--color-ink) 88%,var(--color-accent))}}.btn-secondary{color:var(--text-primary);border-color:var(--border-default);background:0 0}.btn-secondary:hover:not(:disabled){border-color:var(--color-accent);color:var(--text-primary)}.btn-purple{background:var(--color-ink);color:var(--color-paper)}.btn-purple:hover:not(:disabled){background:var(--color-ink)}@supports (color:color-mix(in lab,red,red)){.btn-purple:hover:not(:disabled){background:color-mix(in srgb,var(--color-ink) 88%,var(--color-accent))}}.btn-danger{color:var(--red);border-color:var(--red);background:0 0}.btn-danger:hover:not(:disabled){background:var(--red-muted)}.btn-ghost{color:var(--text-secondary);background:0 0;height:auto;padding:6px 10px}.btn-ghost:hover:not(:disabled){color:var(--text-primary);background:var(--border-default)}.spinner{border:2px solid var(--border-default);border-top-color:var(--color-accent);border-radius:50%;width:16px;height:16px;animation:.6s linear infinite spin-slow}.spinner-lg{border-width:2.5px;width:24px;height:24px}.score-ring{--size:56px;--stroke:4px;width:var(--size);height:var(--size);justify-content:center;align-items:center;display:flex;position:relative}.score-ring svg{position:absolute;top:0;right:0;bottom:0;left:0;transform:rotate(-90deg)}.score-ring circle{fill:none;stroke-width:var(--stroke);stroke-linecap:round}.score-ring .track{stroke:var(--border-default)}.score-ring .fill{transition:stroke-dashoffset .8s var(--ease-standard)}.divide-y>*+*{border-top-color:var(--border-default)}hr{border:none;border-top:1px solid var(--border-default);margin:0}:root{--theme-transition:background-color .15s var(--ease-standard), color .15s var(--ease-standard), border-color .15s var(--ease-standard)}html,body,.glass-card,.pill,.input-field,.btn,aside,header,footer,main,nav,section,[data-theme-surface]{transition:var(--theme-transition)}:focus-visible{transition-property:none}input:focus,textarea:focus,select:focus,button:focus{transition:none}.focus-ring:focus-visible,[role=button]:focus-visible,[role=menuitem]:focus-visible,[role=tab]:focus-visible,[role=option]:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--border-focus);outline-offset:2px;border-radius:4px}[data-contrast=more] :focus-visible,[data-contrast=more] .focus-ring:focus-visible{outline-width:3px}@media(max-width:1024px)and (min-width:768px){.studio-grid{grid-template-columns:240px 1px 1fr!important}}@media(max-width:767px){.studio-grid{grid-template-columns:1fr!important}.studio-grid>:nth-child(2),.studio-grid>:nth-child(3){display:none}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}
|
package/dist/eval-ui/index.html
CHANGED
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
}
|
|
47
47
|
})();
|
|
48
48
|
</script>
|
|
49
|
-
<script type="module" crossorigin src="/assets/index-
|
|
50
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
49
|
+
<script type="module" crossorigin src="/assets/index-4LdVR3Lo.js"></script>
|
|
50
|
+
<link rel="stylesheet" crossorigin href="/assets/index-C0Gc_4KC.css">
|
|
51
51
|
<link rel="stylesheet" crossorigin href="/assets/fonts-i7Lkz2zN.css">
|
|
52
52
|
</head>
|
|
53
53
|
<body>
|
|
@@ -16,7 +16,10 @@ import { homedir } from "node:os";
|
|
|
16
16
|
import { EventEmitter } from "node:events";
|
|
17
17
|
const APPEND_FLAGS = "a";
|
|
18
18
|
const emitter = new EventEmitter();
|
|
19
|
-
|
|
19
|
+
// LOG-003: cap listeners at a realistic upper bound (not Infinity). A single
|
|
20
|
+
// OpsDrawer session subscribes 1 listener; 100 is generous for tests running
|
|
21
|
+
// in parallel while still surfacing real leaks as a Node warning.
|
|
22
|
+
emitter.setMaxListeners(100);
|
|
20
23
|
export function getLogPath() {
|
|
21
24
|
return process.env.VSKILL_OPS_LOG_PATH || join(homedir(), ".vskill", "studio-ops.jsonl");
|
|
22
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ops-log.js","sourceRoot":"","sources":["../../../src/studio/lib/ops-log.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,qEAAqE;AACrE,8EAA8E;AAC9E,oDAAoD;AACpD,EAAE;AACF,2EAA2E;AAC3E,6EAA6E;AAC7E,0EAA0E;AAC1E,iDAAiD;AACjD,EAAE;AACF,kFAAkF;AAClF,8EAA8E;AAE9E,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC9F,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,OAAO,EAA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CAAC;AACrC,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,QAAQ,CAAC,EAAU;IACvC,MAAM,IAAI,GAAG,UAAU,EAAE,CAAC;IAC1B,SAAS,CAAC,IAAI,CAAC,CAAC;IAChB,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAA0B,CAAC,GAAG,IAAI,CAAC;IACpF,MAAM,EAAE,GAAG,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;IACxC,IAAI,CAAC;QACH,SAAS,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;IACtB,CAAC;YAAS,CAAC;QACT,SAAS,CAAC,EAAE,CAAC,CAAC;IAChB,CAAC;IACD,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;AAC7B,CAAC"}
|
|
@@ -24,5 +24,15 @@ export declare class MissingSourceError extends Error {
|
|
|
24
24
|
readonly code: "missing-source";
|
|
25
25
|
constructor(path: string);
|
|
26
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* SEC-001: Thrown when plugin/skill identifiers fail the safe-slug check OR
|
|
29
|
+
* when a resolved path escapes its scope root (e.g., via symlink traversal).
|
|
30
|
+
* Routes translate this to HTTP 400 `{ok:false, code:"invalid_path"}`.
|
|
31
|
+
*/
|
|
32
|
+
export declare class InvalidSkillRefError extends Error {
|
|
33
|
+
readonly code: "invalid_path";
|
|
34
|
+
constructor(message: string);
|
|
35
|
+
}
|
|
36
|
+
export declare function assertSafeSkillRef(plugin: string, skill: string): void;
|
|
27
37
|
export declare function resolveScopePath(scope: SkillScope, root: string, skill: string, home: string): string;
|
|
28
38
|
export declare function transfer(req: TransferRequest, emit: SSEEmit): Promise<TransferResult>;
|
|
@@ -12,10 +12,21 @@
|
|
|
12
12
|
//
|
|
13
13
|
// Provenance sidecar (.vskill-meta.json) must NEVER leak out of OWN scope —
|
|
14
14
|
// filtered inside transfer before invoking copy.
|
|
15
|
+
//
|
|
16
|
+
// Path-safety contract (SEC-001):
|
|
17
|
+
// - plugin/skill identifiers MUST match /^[A-Za-z0-9._-]+$/ (no `/`, no `..`,
|
|
18
|
+
// no null bytes). Reject with InvalidSkillRefError otherwise.
|
|
19
|
+
// - After resolving a scope path, we re-verify the resolved absolute path
|
|
20
|
+
// stays under its scope root. Any escape (symlink, manual `..`) throws
|
|
21
|
+
// InvalidSkillRefError. Routes translate this to HTTP 400.
|
|
22
|
+
//
|
|
23
|
+
// Collision atomicity (LOG-001):
|
|
24
|
+
// - transfer() uses `mkdirSync(dest, { recursive: false })` as the atomic
|
|
25
|
+
// collision gate. EEXIST → CollisionError. Callers must NOT pre-check.
|
|
15
26
|
// ---------------------------------------------------------------------------
|
|
16
27
|
import { existsSync, rmSync, readdirSync, statSync, copyFileSync, mkdirSync } from "node:fs";
|
|
17
|
-
import { join,
|
|
18
|
-
import { copyPluginFiltered,
|
|
28
|
+
import { join, resolve, sep } from "node:path";
|
|
29
|
+
import { copyPluginFiltered, shouldSkipFromCommands, } from "../../shared/copy-plugin-filtered.js";
|
|
19
30
|
export class CollisionError extends Error {
|
|
20
31
|
path;
|
|
21
32
|
code = "collision";
|
|
@@ -34,16 +45,83 @@ export class MissingSourceError extends Error {
|
|
|
34
45
|
this.path = path;
|
|
35
46
|
}
|
|
36
47
|
}
|
|
37
|
-
|
|
48
|
+
/**
|
|
49
|
+
* SEC-001: Thrown when plugin/skill identifiers fail the safe-slug check OR
|
|
50
|
+
* when a resolved path escapes its scope root (e.g., via symlink traversal).
|
|
51
|
+
* Routes translate this to HTTP 400 `{ok:false, code:"invalid_path"}`.
|
|
52
|
+
*/
|
|
53
|
+
export class InvalidSkillRefError extends Error {
|
|
54
|
+
code = "invalid_path";
|
|
55
|
+
constructor(message) {
|
|
56
|
+
super(message);
|
|
57
|
+
this.name = "InvalidSkillRefError";
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* SEC-001: Strict slug validator. Accepts only lowercase alphanumeric plus
|
|
62
|
+
* `-` and `_`, 1-64 chars, first char must be alphanumeric. No slashes, no
|
|
63
|
+
* `..`, no null bytes, no leading dot/dash/underscore, no uppercase, no
|
|
64
|
+
* whitespace. Applied uniformly to BOTH `plugin` and `skill` identifiers.
|
|
65
|
+
*
|
|
66
|
+
* Why this shape: these values come off URL path params (`/api/skills/:plugin/:skill/...`)
|
|
67
|
+
* and flow directly into `path.join` / `rmSync`. A stricter grammar than the
|
|
68
|
+
* underlying filesystem permits gives us belt-and-braces defense against path
|
|
69
|
+
* traversal; legitimate skill/plugin names already conform to this shape.
|
|
70
|
+
*/
|
|
71
|
+
const SAFE_SLUG = /^[a-z0-9][a-z0-9_-]{0,63}$/;
|
|
72
|
+
export function assertSafeSkillRef(plugin, skill) {
|
|
73
|
+
if (typeof plugin !== "string" || !SAFE_SLUG.test(plugin)) {
|
|
74
|
+
throw new InvalidSkillRefError(`invalid plugin identifier: ${JSON.stringify(plugin)}`);
|
|
75
|
+
}
|
|
76
|
+
if (typeof skill !== "string" || !SAFE_SLUG.test(skill)) {
|
|
77
|
+
throw new InvalidSkillRefError(`invalid skill identifier: ${JSON.stringify(skill)}`);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* SEC-001: Returns the scope-root dir (NOT skill dir) — used for the
|
|
82
|
+
* prefix-verification check after resolveScopePath().
|
|
83
|
+
*/
|
|
84
|
+
function scopeRootDir(scope, root, home) {
|
|
38
85
|
switch (scope) {
|
|
39
86
|
case "own":
|
|
40
|
-
return join(root, "skills"
|
|
87
|
+
return join(root, "skills");
|
|
41
88
|
case "installed":
|
|
42
|
-
return join(root, ".claude", "skills"
|
|
89
|
+
return join(root, ".claude", "skills");
|
|
43
90
|
case "global":
|
|
44
|
-
return join(home, ".claude", "skills"
|
|
91
|
+
return join(home, ".claude", "skills");
|
|
45
92
|
}
|
|
46
93
|
}
|
|
94
|
+
/**
|
|
95
|
+
* SEC-001: After joining, verify the resolved absolute path stays under the
|
|
96
|
+
* scope root. This defends against path-traversal even if future callers
|
|
97
|
+
* bypass assertSafeSkillRef.
|
|
98
|
+
*/
|
|
99
|
+
function assertPathUnderRoot(scopeRoot, candidate) {
|
|
100
|
+
const rootResolved = resolve(scopeRoot);
|
|
101
|
+
const candidateResolved = resolve(candidate);
|
|
102
|
+
// Must be inside rootResolved — either equal (unlikely, but defensive) OR
|
|
103
|
+
// prefixed by rootResolved + sep.
|
|
104
|
+
if (candidateResolved !== rootResolved &&
|
|
105
|
+
!candidateResolved.startsWith(rootResolved + sep)) {
|
|
106
|
+
throw new InvalidSkillRefError(`resolved path escapes scope root: ${candidateResolved} not under ${rootResolved}`);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
export function resolveScopePath(scope, root, skill, home) {
|
|
110
|
+
// SEC-001: validate skill identifier BEFORE joining. Every callsite
|
|
111
|
+
// (routes, transfer) funnels through resolveScopePath, so enforcing the
|
|
112
|
+
// contract here is the single source of truth. `plugin` is validated
|
|
113
|
+
// separately in transfer() since it isn't part of the path computation
|
|
114
|
+
// here — but routes also validate both before calling resolveScopePath.
|
|
115
|
+
if (typeof skill !== "string" || !SAFE_SLUG.test(skill)) {
|
|
116
|
+
throw new InvalidSkillRefError(`invalid skill identifier: ${JSON.stringify(skill)}`);
|
|
117
|
+
}
|
|
118
|
+
const base = scopeRootDir(scope, root, home);
|
|
119
|
+
const candidate = join(base, skill);
|
|
120
|
+
// Belt-and-braces: re-verify the resolved absolute path stays under the
|
|
121
|
+
// scope root. Defends against intermediate symlinks and any future bypass.
|
|
122
|
+
assertPathUnderRoot(base, candidate);
|
|
123
|
+
return candidate;
|
|
124
|
+
}
|
|
47
125
|
/**
|
|
48
126
|
* Count files written recursively into a directory — used for the SSE
|
|
49
127
|
* `copied` event payload.
|
|
@@ -64,6 +142,9 @@ function countFiles(dir) {
|
|
|
64
142
|
* Copy a OWN skill directory filtering out `.vskill-meta.json`. Unlike
|
|
65
143
|
* copyPluginFiltered this does not do the plugin-root flattening, because
|
|
66
144
|
* OWN → INSTALLED|GLOBAL is a straight skill-dir copy with one exclusion.
|
|
145
|
+
*
|
|
146
|
+
* NOTE: target dir must already exist (created by the atomic-mkdir gate in
|
|
147
|
+
* transfer()). This function does NOT create the outer targetDir.
|
|
67
148
|
*/
|
|
68
149
|
function copyOwnSkillFiltered(sourceDir, targetDir, relBase = "") {
|
|
69
150
|
mkdirSync(targetDir, { recursive: true });
|
|
@@ -80,21 +161,43 @@ function copyOwnSkillFiltered(sourceDir, targetDir, relBase = "") {
|
|
|
80
161
|
copyFileSync(sourcePath, join(targetDir, entry));
|
|
81
162
|
}
|
|
82
163
|
}
|
|
83
|
-
void isSkillMdCandidate;
|
|
84
|
-
void basename;
|
|
85
164
|
}
|
|
86
165
|
export async function transfer(req, emit) {
|
|
166
|
+
// SEC-001: validate identifiers BEFORE any fs call.
|
|
167
|
+
assertSafeSkillRef(req.plugin, req.skill);
|
|
87
168
|
const sourcePath = resolveScopePath(req.fromScope, req.root, req.skill, req.home);
|
|
88
169
|
const destPath = resolveScopePath(req.toScope, req.root, req.skill, req.home);
|
|
89
170
|
if (!existsSync(sourcePath)) {
|
|
90
171
|
throw new MissingSourceError(sourcePath);
|
|
91
172
|
}
|
|
92
|
-
|
|
93
|
-
|
|
173
|
+
// LOG-001: atomic collision gate via exclusive mkdir.
|
|
174
|
+
// - overwrite=false → mkdir exclusive; EEXIST → CollisionError
|
|
175
|
+
// - overwrite=true → rmSync (still under prefix-check) then exclusive mkdir
|
|
176
|
+
if (req.overwrite) {
|
|
177
|
+
if (existsSync(destPath)) {
|
|
178
|
+
// Defense-in-depth: re-verify destPath is inside its scope root before
|
|
179
|
+
// destroying it. resolveScopePath already asserted this, but an
|
|
180
|
+
// intermediate symlink could have changed meaning; keep the guard.
|
|
181
|
+
assertPathUnderRoot(scopeRootDir(req.toScope, req.root, req.home), destPath);
|
|
182
|
+
rmSync(destPath, { recursive: true, force: true });
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
try {
|
|
186
|
+
mkdirSync(destPath, { recursive: false });
|
|
94
187
|
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
188
|
+
catch (err) {
|
|
189
|
+
const code = err?.code;
|
|
190
|
+
if (code === "EEXIST") {
|
|
191
|
+
throw new CollisionError(destPath);
|
|
192
|
+
}
|
|
193
|
+
if (code === "ENOENT") {
|
|
194
|
+
// Parent dir missing — create it and retry once. The outer `.claude/skills`
|
|
195
|
+
// scope root may not exist yet on first use.
|
|
196
|
+
mkdirSync(destPath, { recursive: true });
|
|
197
|
+
}
|
|
198
|
+
else {
|
|
199
|
+
throw err;
|
|
200
|
+
}
|
|
98
201
|
}
|
|
99
202
|
// Branch on direction — OWN → * uses the sidecar-filtering copier,
|
|
100
203
|
// * → OWN uses the plugin-root copier (which already ignores PLUGIN.md etc
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scope-transfer.js","sourceRoot":"","sources":["../../../src/studio/lib/scope-transfer.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,wEAAwE;AACxE,8EAA8E;AAC9E,6EAA6E;AAC7E,6EAA6E;AAC7E,qCAAqC;AACrC,EAAE;AACF,gCAAgC;AAChC,wCAAwC;AACxC,iGAAiG;AACjG,gDAAgD;AAChD,EAAE;AACF,4EAA4E;AAC5E,iDAAiD;AACjD,8EAA8E;AAE9E,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAC7F,OAAO,EAAE,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"scope-transfer.js","sourceRoot":"","sources":["../../../src/studio/lib/scope-transfer.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,wEAAwE;AACxE,8EAA8E;AAC9E,6EAA6E;AAC7E,6EAA6E;AAC7E,qCAAqC;AACrC,EAAE;AACF,gCAAgC;AAChC,wCAAwC;A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AAU,EAAE,QAAQ,CAAC,CAAC;IAC3C,CAAC;IAED,MAAM,YAAY,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAC;IAE1C,IAAI,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,YAAY,EAAE,CAAC,CAAC;IAEvC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,YAAY,EAAE,CAAC;AAChD,CAAC"}
|
|
@@ -32,22 +32,45 @@ export function registerOpsRoutes(router) {
|
|
|
32
32
|
try {
|
|
33
33
|
sendSSE(res, "op", op);
|
|
34
34
|
}
|
|
35
|
-
catch {
|
|
36
|
-
//
|
|
35
|
+
catch (err) {
|
|
36
|
+
// SIL-001: only swallow benign client-disconnect errors. Anything
|
|
37
|
+
// else should surface so real bugs are visible.
|
|
38
|
+
const code = err?.code;
|
|
39
|
+
if (code === "ERR_STREAM_WRITE_AFTER_END" || code === "EPIPE") {
|
|
40
|
+
// Client disconnected mid-write — expected, silent.
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
const msg = err instanceof Error ? err.message : String(err);
|
|
44
|
+
console.warn(`[ops/stream] sendSSE(op) failed: ${msg.slice(0, 200)}`);
|
|
37
45
|
}
|
|
38
46
|
});
|
|
39
47
|
const heartbeat = setInterval(() => {
|
|
40
48
|
try {
|
|
41
49
|
sendSSE(res, "heartbeat", { ts: Date.now() });
|
|
42
50
|
}
|
|
43
|
-
catch {
|
|
51
|
+
catch (err) {
|
|
52
|
+
const code = err?.code;
|
|
53
|
+
if (code === "ERR_STREAM_WRITE_AFTER_END" || code === "EPIPE") {
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
const msg = err instanceof Error ? err.message : String(err);
|
|
57
|
+
console.warn(`[ops/stream] sendSSE(heartbeat) failed: ${msg.slice(0, 200)}`);
|
|
58
|
+
}
|
|
44
59
|
}, 3000);
|
|
60
|
+
// LOG-003: cleanup must fire for BOTH req close (client disconnected)
|
|
61
|
+
// AND res close (socket error / backpressure stall). Guard with a
|
|
62
|
+
// flag so a double-fire is safe and idempotent.
|
|
63
|
+
let cleaned = false;
|
|
45
64
|
const cleanup = () => {
|
|
65
|
+
if (cleaned)
|
|
66
|
+
return;
|
|
67
|
+
cleaned = true;
|
|
46
68
|
clearInterval(heartbeat);
|
|
47
69
|
unsub();
|
|
48
70
|
};
|
|
49
71
|
req.on("close", cleanup);
|
|
50
72
|
req.on("aborted", cleanup);
|
|
73
|
+
res.on("close", cleanup);
|
|
51
74
|
});
|
|
52
75
|
// DELETE /api/studio/ops/:id — tombstone.
|
|
53
76
|
router.delete("/api/studio/ops/:id", async (req, res, params) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ops.js","sourceRoot":"","sources":["../../../src/studio/routes/ops.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,yCAAyC;AACzC,8EAA8E;AAC9E,iEAAiE;AACjE,2EAA2E;AAC3E,8DAA8D;AAC9D,8EAA8E;AAK9E,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAEjE,SAAS,UAAU,CAAC,GAAuB;IACzC,OAAO,IAAI,GAAG,CAAC,GAAG,IAAI,GAAG,EAAE,kBAAkB,CAAC,CAAC,YAAY,CAAC;AAC9D,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,MAAc;IAC9C,2CAA2C;IAC3C,MAAM,CAAC,GAAG,CACR,iBAAiB,EACjB,KAAK,EAAE,GAAyB,EAAE,GAAwB,EAAE,EAAE;QAC5D,MAAM,CAAC,GAAG,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAC9B,MAAM,QAAQ,GAAG,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QAChC,MAAM,SAAS,GAAG,CAAC,CAAC,GAA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CAAC"}
|
|
@@ -10,7 +10,7 @@ import { homedir } from "node:os";
|
|
|
10
10
|
import { existsSync } from "node:fs";
|
|
11
11
|
import { sendJson } from "../../eval-server/router.js";
|
|
12
12
|
import { initSSE, sendSSE, sendSSEDone } from "../../eval-server/sse-helpers.js";
|
|
13
|
-
import { transfer,
|
|
13
|
+
import { transfer, MissingSourceError, resolveScopePath, } from "../lib/scope-transfer.js";
|
|
14
14
|
import { writeProvenance } from "../lib/provenance.js";
|
|
15
15
|
import { appendOp } from "../lib/ops-log.js";
|
|
16
16
|
function parseQuery(url) {
|
|
@@ -21,7 +21,11 @@ export function registerPromoteRoute(router, root, home = homedir()) {
|
|
|
21
21
|
const { plugin, skill } = params;
|
|
22
22
|
const query = parseQuery(req.url);
|
|
23
23
|
const overwrite = query.get("overwrite") === "true";
|
|
24
|
-
|
|
24
|
+
// TYP-001: keep `fromScopeRaw` as a plain string until narrowed.
|
|
25
|
+
// Casting to `SkillScope` up-front lies to the compiler about a value
|
|
26
|
+
// that could be any arbitrary query-string. The narrowing on the next
|
|
27
|
+
// line is the real validation.
|
|
28
|
+
const fromScopeRaw = query.get("from") ?? "installed";
|
|
25
29
|
const fromScope = fromScopeRaw === "global" ? "global" : "installed";
|
|
26
30
|
const sourcePath = resolveScopePath(fromScope, root, skill, home);
|
|
27
31
|
const destPath = resolveScopePath("own", root, skill, home);
|
|
@@ -81,19 +85,9 @@ export function registerPromoteRoute(router, root, home = homedir()) {
|
|
|
81
85
|
sendSSEDone(res, { type: "done", opId, destPath: result.destPath });
|
|
82
86
|
}
|
|
83
87
|
catch (err) {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
// started has fired, so we may already have SSE headers… handle both).
|
|
88
|
-
if (res.headersSent) {
|
|
89
|
-
sendSSE(res, "error", { type: "error", code: "collision", message: err.message, path: err.path });
|
|
90
|
-
res.end();
|
|
91
|
-
}
|
|
92
|
-
else {
|
|
93
|
-
sendJson(res, { ok: false, code: "collision", path: err.path }, 409, req);
|
|
94
|
-
}
|
|
95
|
-
return;
|
|
96
|
-
}
|
|
88
|
+
// LOG-002: CollisionError cannot reach here — the pre-check above
|
|
89
|
+
// (existsSync(destPath) && !overwrite) returns 409 BEFORE transfer()
|
|
90
|
+
// is called, so transfer() never throws CollisionError on this path.
|
|
97
91
|
if (err instanceof MissingSourceError) {
|
|
98
92
|
if (res.headersSent) {
|
|
99
93
|
sendSSE(res, "error", { type: "error", code: "missing-source", message: err.message });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"promote.js","sourceRoot":"","sources":["../../../src/studio/routes/promote.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,0DAA0D;AAC1D,8EAA8E;AAC9E,6DAA6D;AAC7D,+DAA+D;AAC/D,mEAAmE;AACnE,8EAA8E;AAG9E,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGrC,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,EACL,QAAQ,EACR,
|
|
1
|
+
{"version":3,"file":"promote.js","sourceRoot":"","sources":["../../../src/studio/routes/promote.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,0DAA0D;AAC1D,8EAA8E;AAC9E,6DAA6D;AAC7D,+DAA+D;AAC/D,mEAAmE;AACnE,8EAA8E;AAG9E,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGrC,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,OAAO,E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AE,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;gBACjF,CAAC;gBACD,OAAO;YACT,CAAC;YACD,MAAM,OAAO,GAAG,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe,CAAC;YACrE,IAAI,GAAG,CAAC,WAAW,EAAE,CAAC;gBACpB,OAAO,CAAC,GAAG,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,CAAC;gBACpE,GAAG,CAAC,GAAG,EAAE,CAAC;YACZ,CAAC;iBAAM,CAAC;gBACN,QAAQ,CAAC,GAAG,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;YAC3E,CAAC;QACH,CAAC;IACH,CAAC,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -12,7 +12,7 @@ import { homedir } from "node:os";
|
|
|
12
12
|
import { existsSync } from "node:fs";
|
|
13
13
|
import { sendJson } from "../../eval-server/router.js";
|
|
14
14
|
import { initSSE, sendSSE, sendSSEDone } from "../../eval-server/sse-helpers.js";
|
|
15
|
-
import { transfer,
|
|
15
|
+
import { transfer, MissingSourceError, resolveScopePath, } from "../lib/scope-transfer.js";
|
|
16
16
|
import { appendOp } from "../lib/ops-log.js";
|
|
17
17
|
function parseQuery(url) {
|
|
18
18
|
return new URL(url || "/", "http://localhost").searchParams;
|
|
@@ -68,16 +68,9 @@ export function registerTestInstallRoute(router, root, home = homedir()) {
|
|
|
68
68
|
sendSSEDone(res, { type: "done", opId, destPath: result.destPath });
|
|
69
69
|
}
|
|
70
70
|
catch (err) {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
res.end();
|
|
75
|
-
}
|
|
76
|
-
else {
|
|
77
|
-
sendJson(res, { ok: false, code: "collision", path: err.path }, 409, req);
|
|
78
|
-
}
|
|
79
|
-
return;
|
|
80
|
-
}
|
|
71
|
+
// LOG-002: CollisionError cannot reach here — the pre-check above
|
|
72
|
+
// (existsSync(destPath) && !overwrite) returns 409 BEFORE transfer()
|
|
73
|
+
// is called.
|
|
81
74
|
if (err instanceof MissingSourceError) {
|
|
82
75
|
if (res.headersSent) {
|
|
83
76
|
sendSSE(res, "error", { type: "error", code: "missing-source", message: err.message });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-install.js","sourceRoot":"","sources":["../../../src/studio/routes/test-install.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,oEAAoE;AACpE,8EAA8E;AAC9E,4EAA4E;AAC5E,0EAA0E;AAC1E,iEAAiE;AACjE,8EAA8E;AAC9E,iDAAiD;AACjD,8EAA8E;AAG9E,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGrC,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,EACL,QAAQ,EACR,
|
|
1
|
+
{"version":3,"file":"test-install.js","sourceRoot":"","sources":["../../../src/studio/routes/test-install.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,oEAAoE;AACpE,8EAA8E;AAC9E,4EAA4E;AAC5E,0EAA0E;AAC1E,iEAAiE;AACjE,8EAA8E;AAC9E,iDAAiD;AACjD,8EAA8E;AAG9E,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGrC,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,C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