@codeyam-editor/codeyam-editor 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/npm/cloud.js +192 -29
  2. package/npm/compose-conflict.js +59 -0
  3. package/npm/fleet-add-failure.js +123 -14
  4. package/npm/fleet-cleanup.js +129 -0
  5. package/npm/fleet-job-badge.js +28 -12
  6. package/npm/fleet-memory.js +44 -0
  7. package/npm/fleet-probe-transport.js +155 -0
  8. package/npm/fleet-revision.js +104 -0
  9. package/npm/fleet-running-plan.js +37 -7
  10. package/npm/launch-config.js +120 -4
  11. package/npm/scenario-check.js +52 -18
  12. package/npm/scenario-playwright.js +44 -10
  13. package/package.json +5 -5
  14. package/ui/dist/assets/{ContainerInspector-DgM0pTAx.js → ContainerInspector-Cu1tSN-o.js} +1 -1
  15. package/ui/dist/assets/EditorShell--V2ExYQ6.js +260 -0
  16. package/ui/dist/assets/ProjectLauncherScreen-Dmm6Z0mv.js +1 -0
  17. package/ui/dist/assets/ScenarioDataPanel-DjprZq2L.js +9 -0
  18. package/ui/dist/assets/{ScenarioDataPanelFullPage-BLqRCxQX.js → ScenarioDataPanelFullPage-BqMxWVKW.js} +1 -1
  19. package/ui/dist/assets/ScenarioRenderer-DqLVVMYS.js +21 -0
  20. package/ui/dist/assets/index-CjxWhkSy.css +1 -0
  21. package/ui/dist/assets/{index-DCHqRrwO.js → index-VuyqBbGJ.js} +2 -2
  22. package/ui/dist/assets/useServerIdentity-BdXy8TQv.js +1 -0
  23. package/ui/dist/index.html +2 -2
  24. package/ui/dist/assets/EditorShell-B7Q06uJ_.js +0 -252
  25. package/ui/dist/assets/ProjectLauncherScreen-BRrEr8Ng.js +0 -1
  26. package/ui/dist/assets/ScenarioDataPanel-BeQfa28g.js +0 -9
  27. package/ui/dist/assets/ScenarioRenderer-CIAxfHPh.js +0 -21
  28. package/ui/dist/assets/index-BygCiJSb.css +0 -1
  29. package/ui/dist/assets/useServerIdentity-B7rI0u3O.js +0 -1
@@ -0,0 +1 @@
1
+ import{j as l}from"./markdown-C9tbsVHX.js";import{b as s}from"./react-nrLBr15I.js";async function x(e){try{if(typeof navigator<"u"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function")return await navigator.clipboard.writeText(e),!0}catch{}return m(e)}function m(e){var t;if(typeof document>"u"||!document.body)return!1;const n=document.activeElement,r=document.createElement("textarea");r.value=e,r.setAttribute("readonly",""),r.style.position="fixed",r.style.top="0",r.style.left="-9999px",r.style.opacity="0",r.style.pointerEvents="none",document.body.appendChild(r);let o=!1;try{r.focus(),r.select(),o=document.execCommand("copy")}catch{o=!1}finally{r.remove(),(t=n==null?void 0:n.focus)==null||t.call(n)}return o}const b=async e=>{if(!await x(e))throw new Error("clipboard write failed")};function h(e={}){const{writer:n=b,resetMs:r=2e3}=e,[o,t]=s.useState(!1),[a,c]=s.useState(!1),i=s.useRef(null);s.useEffect(()=>()=>{i.current!==null&&clearTimeout(i.current)},[]);const d=s.useCallback(async f=>{let u=!0;try{await n(f)}catch{u=!1}return t(u),c(!u),i.current!==null&&clearTimeout(i.current),i.current=setTimeout(()=>{t(!1),c(!1),i.current=null},r),u},[n,r]);return{copied:o,failed:a,copy:d}}const v={danger:"shrink-0 px-3 py-1.5 text-xs font-medium rounded-md bg-red-600 hover:bg-red-700 disabled:bg-red-300 disabled:cursor-not-allowed text-white transition-colors",subtle:"shrink-0 px-2 py-1 text-xs font-medium rounded-md border border-[var(--border-default)] text-[var(--text-secondary)] hover:text-[var(--text-primary)] disabled:opacity-50 disabled:cursor-not-allowed transition-colors",icon:"shrink-0 inline-flex items-center justify-center h-5 w-5 rounded text-[var(--text-secondary)] hover:text-[var(--text-primary)] disabled:opacity-50 disabled:cursor-not-allowed transition-colors"};function y({text:e,label:n="Copy",copiedLabel:r="Copied!",failedLabel:o="Copy blocked",variant:t="danger",ariaLabel:a="Copy error message",writer:c,className:i}){const{copied:d,failed:f,copy:u}=h({writer:c}),p=t==="icon";return l.jsx("button",{type:"button",onClick:()=>{u(e)},disabled:e.length===0,title:p?f?o:n:void 0,"aria-label":p?a:void 0,className:i??v[t],children:p?C(d,f):f?o:d?r:n})}function C(e,n){return n?l.jsx("span",{"aria-hidden":"true",children:"!"}):e?l.jsx("span",{"aria-hidden":"true",children:"✓"}):l.jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 16 16",className:"h-3.5 w-3.5",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("rect",{x:"5.5",y:"5.5",width:"8",height:"8",rx:"1.5"}),l.jsx("path",{d:"M10.5 3.5a1.5 1.5 0 0 0-1.5-1.5H4a1.5 1.5 0 0 0-1.5 1.5v5A1.5 1.5 0 0 0 4 10"})]})}const k=Object.freeze(Object.defineProperty({__proto__:null,CopyButton:y},Symbol.toStringTag,{value:"Module"}));function g({text:e,copyText:n,className:r="text-xs text-[var(--text-danger)]",rowClassName:o="",testId:t,writer:a}){return e?l.jsxs("div",{role:"alert","data-testid":t,className:`flex items-start gap-1.5 min-w-0 ${o}`,children:[l.jsx("span",{className:`min-w-0 ${r}`,children:e}),l.jsx(y,{variant:"icon",text:n??e,writer:a})]}):null}const S=Object.freeze(Object.defineProperty({__proto__:null,CopyableErrorText:g},Symbol.toStringTag,{value:"Module"}));function j(e){return e==="posix"||e==="powershell"?e:null}function T(){const[e,n]=s.useState({projectDir:null,inContainer:null,version:null,shellDialect:null,loaded:!1});return s.useEffect(()=>{let r=!1;return fetch("/api/codeyam-server-identity").then(o=>o.ok?o.json():null).then(o=>{if(r)return;const t=o&&typeof o=="object"?o:null,a=t&&typeof t.projectDir=="string"?t.projectDir:null,c=t&&typeof t.inContainer=="boolean"?t.inContainer:null,i=t&&typeof t.version=="string"?t.version:null,d=j(t==null?void 0:t.shellDialect);n({projectDir:a,inContainer:c,version:i,shellDialect:d,loaded:!0})}).catch(()=>{r||n({projectDir:null,inContainer:null,version:null,shellDialect:null,loaded:!0})}),()=>{r=!0}},[]),e}export{g as C,S as _,y as a,k as b,T as c,x as d,h as u};
@@ -5,10 +5,10 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>CodeYam</title>
7
7
  <link rel="icon" type="image/x-icon" href="/favicon.ico" />
8
- <script type="module" crossorigin src="/assets/index-DCHqRrwO.js"></script>
8
+ <script type="module" crossorigin src="/assets/index-VuyqBbGJ.js"></script>
9
9
  <link rel="modulepreload" crossorigin href="/assets/react-nrLBr15I.js">
10
10
  <link rel="modulepreload" crossorigin href="/assets/markdown-C9tbsVHX.js">
11
- <link rel="stylesheet" crossorigin href="/assets/index-BygCiJSb.css">
11
+ <link rel="stylesheet" crossorigin href="/assets/index-CjxWhkSy.css">
12
12
  </head>
13
13
  <body>
14
14
  <div id="root"></div>