sliccy 2.28.0 → 2.29.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/ui/assets/{anthropic-b7Haw0OO.js → anthropic-Bf4mFu0v.js} +1 -1
- package/dist/ui/assets/{azure-openai-responses-B_mXPr79.js → azure-openai-responses-BqTh-ylA.js} +1 -1
- package/dist/ui/assets/{es-kjgcbZrQ.js → es-Dqhcl8YJ.js} +1 -1
- package/dist/ui/assets/{fs-DFhkgN4i.js → fs-DZxsuvDW.js} +3 -3
- package/dist/ui/assets/{google-DKUCsFeg.js → google-DWFygVDZ.js} +1 -1
- package/dist/ui/assets/{index-CRIkKBOJ.js → index-C3D-uVVg.js} +12 -12
- package/dist/ui/assets/{mistral-CdXqVq6l.js → mistral-CciK9Nzu.js} +1 -1
- package/dist/ui/assets/{mount-D1ibdwTi.js → mount-xJQS3ReX.js} +1 -1
- package/dist/ui/assets/{onboarding-orchestrator-CiJV--6K.js → onboarding-orchestrator-CZ0t0-5j.js} +1 -1
- package/dist/ui/assets/{openai-codex-responses-Bt1Nfxgx.js → openai-codex-responses-CppEsp05.js} +1 -1
- package/dist/ui/assets/{openai-completions-i2Pk9y2h.js → openai-completions-BlaN8EIX.js} +1 -1
- package/dist/ui/assets/{openai-responses-D5tEOSNe.js → openai-responses-7o1liIVh.js} +1 -1
- package/dist/ui/assets/{provider-settings-sBudhyJN.js → provider-settings-BbBzbhhd.js} +4 -4
- package/dist/ui/assets/{skills-C913t6sb.js → skills-B9uafsEt.js} +1 -1
- package/dist/ui/index.html +7 -7
- package/dist/ui/packages/webapp/index.html +7 -7
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{r as e}from"./chunk-jRWAZmH_.js";import"./fs-
|
|
1
|
+
import{r as e}from"./chunk-jRWAZmH_.js";import"./fs-DZxsuvDW.js";import{t}from"./browser-BdRkQqGs.js";import{r as n,t as r}from"./path-utils-d3qOVZOu.js";var i=`skills`,a=`.skill`,o=50*1024*1024,s=1e3,c=`/workspace/skills`,l=`SKILL.md`,u=/^[A-Za-z0-9][A-Za-z0-9._-]*$/;function d(e){if(e===`__MACOSX`||e.startsWith(`__MACOSX/`))return!0;let t=e.includes(`/`)?e.slice(e.lastIndexOf(`/`)+1):e;return!!(t===`.DS_Store`||t===`Thumbs.db`||t===`desktop.ini`||t.startsWith(`._`))}var f=class extends Error{};function p(e){let t=e.replace(/\\/g,`/`);if(!t||t.endsWith(`/`))return null;if(t.startsWith(`/`)||/^[A-Za-z]:\//.test(t))throw Error(`Blocked suspicious path "${e}".`);let n=t.split(`/`);if(n.some(e=>e===``||e===`.`||e===`..`))throw Error(`Blocked suspicious path "${e}".`);return n.join(`/`)}function m(e){if(!u.test(e))throw Error(`Invalid skill: skill name "${e}" must be a simple directory name.`)}function h(e){let t=[];for(let[n,r]of Object.entries(e)){let e=p(n);e&&(d(e)||t.push({originalPath:n,path:e,bytes:r}))}return t}function g(e){let t=e.filter(e=>e.path===`SKILL.md`||e.path.endsWith(`/SKILL.md`));if(t.length===0)throw Error(`Skill archive is missing ${l}.`);if(t.length>1)throw Error(`Skill archive contains multiple ${l} files.`);return t[0]}function _(e){let n=0,r=0;return t(e,{filter(e){if(n++,n>1e3)throw new f(`Skill archives may contain at most ${s} entries.`);if(r+=e.originalSize,r>52428800)throw new f(`Skill archives must expand to 50 MB or smaller after extraction.`);return!0}})}function v(e){return r(c,`.${e}.tmp-${`${Date.now()}-${Math.random().toString(16).slice(2,8)}`}`)}function y(e,t){return t===`SKILL.md`?e.replace(/\.skill$/i,``):t.slice(0,-9).split(`/`).pop()??``}async function b(e,t){if(!t.name.toLowerCase().endsWith(`.skill`))throw Error(`Only ${a} archives can be installed with drag and drop.`);if(t.size>52428800)throw Error(`Skill archives must be 50 MB or smaller.`);let i;try{i=_(new Uint8Array(await t.arrayBuffer()))}catch(e){if(e instanceof f)throw e;let t=e instanceof Error?e.message:String(e);throw Error(`Invalid .skill archive: ${t}`)}let o=h(i),s=g(o),u=y(t.name,s.path);m(u);let d=r(c,u);if(await e.exists(d))throw Error(`Skill "${u}" already exists at ${d}.`);let p=v(u),b=s.path===`SKILL.md`?``:s.path.slice(0,-(l.length+1));await e.mkdir(p,{recursive:!0});try{let t=0;for(let i of o){if(b&&(i.path===b||!i.path.startsWith(`${b}/`)))continue;let a=b?i.path.slice(b.length+1):i.path;if(!a)continue;let o=r(p,a),{dir:s}=n(o);s!==`/`&&await e.mkdir(s,{recursive:!0}),await e.writeFile(o,i.bytes),t++}return await e.rename(p,d),{skillName:u,destinationPath:d,fileCount:t}}catch(t){throw await e.exists(p)&&await e.rm(p,{recursive:!0}),t}}var x=[`native`,`agents`,`claude`],S=new Map([[`.agents`,`agents`],[`.claude`,`claude`]]),C=new Set([`.git`,`.slicc`]),w=[`mkdir`,`mount`,`rename`,`rm`,`unmount`,`writeFile`],T=new WeakMap,E=new WeakSet;async function D(e,t=c){let n=await A(e,t),r=await O(e);return[...x.flatMap(e=>(e===`native`?n:r.filter(t=>t.source===e)).sort((e,t)=>e.path.localeCompare(t.path)))]}async function O(e){M(e);let t=e,n=T.get(t);if(n)return n.map(e=>({...e}));let r=await j(e);return T.set(t,r),r.map(e=>({...e}))}function k(e,t){let n=new Map,r=new Map;for(let i of e){let e=t(i);if(!n.has(e)){n.set(e,i);continue}let a=r.get(e)??{name:e,winner:n.get(e),shadowed:[]};a.shadowed.push(i),r.set(e,a)}return{winners:Array.from(n.values()),collisions:Array.from(r.values())}}async function A(e,t){let n=await P(e,t),r=[];for(let i of n){if(i.type!==`directory`)continue;let n=`${t}/${i.name}`,a=`${n}/${l}`;await N(e,a)&&r.push({source:`native`,sourceRoot:t,path:n,skillFilePath:a})}return r}async function j(e){let t=[],n=new Set,r=[`/`];for(let i=0;i<r.length;i+=1){let a=r[i],o=await P(e,a);for(let i of o){if(i.type!==`directory`)continue;let o=a===`/`?`/${i.name}`:`${a}/${i.name}`,s=S.get(i.name);if(s){let r=`${o}/skills`,i=await P(e,r);for(let a of i){if(a.type!==`directory`)continue;let i=`${r}/${a.name}`,o=`${i}/${l}`;!await N(e,o)||n.has(i)||(n.add(i),t.push({source:s,sourceRoot:r,path:i,skillFilePath:o}))}}C.has(i.name)||r.push(o)}}return t}function M(e){let t=e;if(E.has(t))return;E.add(t);let n=e;for(let r of w){let i=n[r];if(typeof i!=`function`)continue;let a=i;try{n[r]=async(...n)=>{let r=await a.apply(e,n);return T.delete(t),r}}catch{}}}async function N(e,t){try{return await e.stat(t),!0}catch{return!1}}async function P(e,t){try{return[...await e.readDir(t)].sort((e,t)=>e.name.localeCompare(t.name))}catch{return[]}}async function F(e,t=`/workspace/skills`){let n=await D(e,t),r=[];for(let t of n){let n=t.path.split(`/`).pop()??t.path,i=``;if(t.skillFilePath)try{i=R(await e.readTextFile(t.skillFilePath))??``}catch{}r.push({name:n,source:t.source,sourceRoot:t.sourceRoot,path:t.path,skillFilePath:t.skillFilePath,description:i})}let{winners:i,collisions:a}=k(r,e=>e.name),o=new Map(a.map(e=>[e.winner.path,e.shadowed.map(e=>e.path)]));return i.map(e=>({...e,shadowedPaths:o.get(e.path)}))}async function I(e,t,n=`/workspace/skills`){return(await F(e,n)).find(e=>e.name===t)||null}async function L(e,t,n=`/workspace/skills`){let r=await I(e,t,n);if(!r?.skillFilePath)return null;try{return await e.readTextFile(r.skillFilePath)}catch{return null}}function R(e){let t=e.replace(/^\uFEFF/,``).replace(/\r\n?/g,`
|
|
2
2
|
`).trimStart().match(/^---\s*\n([\s\S]*?)\n---/);if(!t)return null;for(let e of t[1].split(`
|
|
3
3
|
`)){let t=e.match(/^description:\s*(.*)$/);if(t)return t[1].trim()}return null}var z=e({MAX_SKILL_ARCHIVE_SIZE_BYTES:()=>o,SKILLS_DIR:()=>i,SKILL_ARCHIVE_EXTENSION:()=>a,SKILL_FILE:()=>l,WORKSPACE_SKILLS_PATH:()=>c,discoverSkillCandidates:()=>D,discoverSkills:()=>F,getSkillInfo:()=>I,installSkillFromDrop:()=>b,readSkillInstructions:()=>L,resolveSkillNameCollisions:()=>k});export{a as i,F as n,b as r,z as t};
|
package/dist/ui/index.html
CHANGED
|
@@ -5,32 +5,32 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>slicc</title>
|
|
7
7
|
<link rel="icon" type="image/png" href="/logos/sliccy-color-1scoops-32x32.png" />
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-C3D-uVVg.js"></script>
|
|
9
9
|
<link rel="modulepreload" crossorigin href="/assets/chunk-jRWAZmH_.js">
|
|
10
10
|
<link rel="modulepreload" crossorigin href="/assets/preload-helper-DzyYoeor.js">
|
|
11
11
|
<link rel="modulepreload" crossorigin href="/assets/simple-options-xknIywaW.js">
|
|
12
12
|
<link rel="modulepreload" crossorigin href="/assets/headers-C5V-E251.js">
|
|
13
|
-
<link rel="modulepreload" crossorigin href="/assets/openai-codex-responses-
|
|
13
|
+
<link rel="modulepreload" crossorigin href="/assets/openai-codex-responses-CppEsp05.js">
|
|
14
14
|
<link rel="modulepreload" crossorigin href="/assets/openai-BR_xAflc.js">
|
|
15
15
|
<link rel="modulepreload" crossorigin href="/assets/logger-GnnuzSDq.js">
|
|
16
16
|
<link rel="modulepreload" crossorigin href="/assets/global-db-Ch1iyQkU.js">
|
|
17
|
-
<link rel="modulepreload" crossorigin href="/assets/provider-settings-
|
|
17
|
+
<link rel="modulepreload" crossorigin href="/assets/provider-settings-BbBzbhhd.js">
|
|
18
18
|
<link rel="modulepreload" crossorigin href="/assets/hash-Bt1aVMQ3.js">
|
|
19
19
|
<link rel="modulepreload" crossorigin href="/assets/browser-BdRkQqGs.js">
|
|
20
20
|
<link rel="modulepreload" crossorigin href="/assets/mime-types-D4mOIoVQ.js">
|
|
21
21
|
<link rel="modulepreload" crossorigin href="/assets/mount-id-aPpP4D52.js">
|
|
22
22
|
<link rel="modulepreload" crossorigin href="/assets/mount-table-store-CpeaTcOk.js">
|
|
23
23
|
<link rel="modulepreload" crossorigin href="/assets/remote-cache-BMnV55WX.js">
|
|
24
|
-
<link rel="modulepreload" crossorigin href="/assets/mount-
|
|
24
|
+
<link rel="modulepreload" crossorigin href="/assets/mount-xJQS3ReX.js">
|
|
25
25
|
<link rel="modulepreload" crossorigin href="/assets/path-utils-d3qOVZOu.js">
|
|
26
26
|
<link rel="modulepreload" crossorigin href="/assets/db-CogIG09c.js">
|
|
27
27
|
<link rel="modulepreload" crossorigin href="/assets/types-U7svdiTt.js">
|
|
28
28
|
<link rel="modulepreload" crossorigin href="/assets/fetch-body-DlhSI6C_.js">
|
|
29
29
|
<link rel="modulepreload" crossorigin href="/assets/magick-wasm-BzLDiChi.js">
|
|
30
|
-
<link rel="modulepreload" crossorigin href="/assets/skills-
|
|
30
|
+
<link rel="modulepreload" crossorigin href="/assets/skills-B9uafsEt.js">
|
|
31
31
|
<link rel="modulepreload" crossorigin href="/assets/__vite-browser-external-B-U7N2L4.js">
|
|
32
|
-
<link rel="modulepreload" crossorigin href="/assets/index-
|
|
33
|
-
<link rel="modulepreload" crossorigin href="/assets/fs-
|
|
32
|
+
<link rel="modulepreload" crossorigin href="/assets/index-C3D-uVVg.js">
|
|
33
|
+
<link rel="modulepreload" crossorigin href="/assets/fs-DZxsuvDW.js">
|
|
34
34
|
<link rel="stylesheet" crossorigin href="/assets/index-B83C5cLK.css">
|
|
35
35
|
</head>
|
|
36
36
|
<body>
|
|
@@ -5,32 +5,32 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>slicc</title>
|
|
7
7
|
<link rel="icon" type="image/png" href="/logos/sliccy-color-1scoops-32x32.png" />
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-C3D-uVVg.js"></script>
|
|
9
9
|
<link rel="modulepreload" crossorigin href="/assets/chunk-jRWAZmH_.js">
|
|
10
10
|
<link rel="modulepreload" crossorigin href="/assets/preload-helper-DzyYoeor.js">
|
|
11
11
|
<link rel="modulepreload" crossorigin href="/assets/simple-options-xknIywaW.js">
|
|
12
12
|
<link rel="modulepreload" crossorigin href="/assets/headers-C5V-E251.js">
|
|
13
|
-
<link rel="modulepreload" crossorigin href="/assets/openai-codex-responses-
|
|
13
|
+
<link rel="modulepreload" crossorigin href="/assets/openai-codex-responses-CppEsp05.js">
|
|
14
14
|
<link rel="modulepreload" crossorigin href="/assets/openai-BR_xAflc.js">
|
|
15
15
|
<link rel="modulepreload" crossorigin href="/assets/logger-GnnuzSDq.js">
|
|
16
16
|
<link rel="modulepreload" crossorigin href="/assets/global-db-Ch1iyQkU.js">
|
|
17
|
-
<link rel="modulepreload" crossorigin href="/assets/provider-settings-
|
|
17
|
+
<link rel="modulepreload" crossorigin href="/assets/provider-settings-BbBzbhhd.js">
|
|
18
18
|
<link rel="modulepreload" crossorigin href="/assets/hash-Bt1aVMQ3.js">
|
|
19
19
|
<link rel="modulepreload" crossorigin href="/assets/browser-BdRkQqGs.js">
|
|
20
20
|
<link rel="modulepreload" crossorigin href="/assets/mime-types-D4mOIoVQ.js">
|
|
21
21
|
<link rel="modulepreload" crossorigin href="/assets/mount-id-aPpP4D52.js">
|
|
22
22
|
<link rel="modulepreload" crossorigin href="/assets/mount-table-store-CpeaTcOk.js">
|
|
23
23
|
<link rel="modulepreload" crossorigin href="/assets/remote-cache-BMnV55WX.js">
|
|
24
|
-
<link rel="modulepreload" crossorigin href="/assets/mount-
|
|
24
|
+
<link rel="modulepreload" crossorigin href="/assets/mount-xJQS3ReX.js">
|
|
25
25
|
<link rel="modulepreload" crossorigin href="/assets/path-utils-d3qOVZOu.js">
|
|
26
26
|
<link rel="modulepreload" crossorigin href="/assets/db-CogIG09c.js">
|
|
27
27
|
<link rel="modulepreload" crossorigin href="/assets/types-U7svdiTt.js">
|
|
28
28
|
<link rel="modulepreload" crossorigin href="/assets/fetch-body-DlhSI6C_.js">
|
|
29
29
|
<link rel="modulepreload" crossorigin href="/assets/magick-wasm-BzLDiChi.js">
|
|
30
|
-
<link rel="modulepreload" crossorigin href="/assets/skills-
|
|
30
|
+
<link rel="modulepreload" crossorigin href="/assets/skills-B9uafsEt.js">
|
|
31
31
|
<link rel="modulepreload" crossorigin href="/assets/__vite-browser-external-B-U7N2L4.js">
|
|
32
|
-
<link rel="modulepreload" crossorigin href="/assets/index-
|
|
33
|
-
<link rel="modulepreload" crossorigin href="/assets/fs-
|
|
32
|
+
<link rel="modulepreload" crossorigin href="/assets/index-C3D-uVVg.js">
|
|
33
|
+
<link rel="modulepreload" crossorigin href="/assets/fs-DZxsuvDW.js">
|
|
34
34
|
<link rel="stylesheet" crossorigin href="/assets/index-B83C5cLK.css">
|
|
35
35
|
</head>
|
|
36
36
|
<body>
|