ryugi-artifacts 1.34.5 → 1.35.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ryugi-artifacts",
3
- "version": "1.34.5",
3
+ "version": "1.35.0",
4
4
  "type": "module",
5
5
  "description": "Server and viewer for the Ryugi artifacts app",
6
6
  "license": "MIT",
@@ -28,7 +28,7 @@
28
28
  "build:server": "esbuild src/server/main.ts --bundle --platform=node --target=node18 --format=cjs --alias:loro-crdt=loro-crdt/base64 --outfile=dist/server.cjs && node -e \"const fs=require('node:fs');fs.copyFileSync('dist/server.cjs','../skills/artifacts/app/server.cjs')\"",
29
29
  "prepublishOnly": "pnpm build",
30
30
  "build:viewer": "NODE_ENV=production vite build && node -e \"const fs=require('node:fs');const to='../skills/artifacts/app/viewer';fs.rmSync(to,{recursive:true,force:true});fs.cpSync('dist/viewer',to,{recursive:true})\"",
31
- "build:runtime": "NODE_ENV=production vite build -c vite.runtime.config.ts && node scripts/inline-runtime-css.mjs",
31
+ "build:runtime": "NODE_ENV=production vite build -c vite.runtime.config.ts && node scripts/inline-runtime-css.mjs && node scripts/build-icons.mjs",
32
32
  "dev": "vite",
33
33
  "test": "vitest run",
34
34
  "typecheck": "tsc --noEmit -p tsconfig.json",
@@ -1 +0,0 @@
1
- .history-view,.history-panel,.history-sheet{font:13px/1.6 var(--lobe-font-family);color:var(--lobe-color-text)}.history-view [hidden],.history-panel [hidden]{display:none!important}.history-view button,.history-panel button,.history-sheet button{font:inherit;color:inherit;cursor:pointer}.history-view button:focus-visible,.history-panel button:focus-visible,.history-sheet button:focus-visible{outline:2px solid var(--lobe-color-info);outline-offset:2px}.history-view button:disabled,.history-panel button:disabled,.history-sheet button:disabled{opacity:.35;cursor:default}.history-icon{background:0 0;border:0;border-radius:6px;flex:none;place-items:center;width:26px;height:26px;padding:0;display:grid;color:var(--lobe-color-text-secondary)!important}.history-icon:hover:not(:disabled){background:var(--lobe-color-fill-tertiary);color:var(--lobe-color-text)!important}.history-filter{border:1px solid var(--lobe-color-border-secondary);white-space:nowrap;background:0 0;border-radius:6px;padding:2px 8px;font-size:11px!important}.history-filter[aria-pressed=true]{background:var(--lobe-color-fill-tertiary);border-color:var(--lobe-color-border)}.history-count{text-align:right;min-width:34px;color:var(--lobe-color-text-secondary);font-variant-numeric:tabular-nums;font-size:11px}.history-button{border:1px solid var(--lobe-color-border);background:var(--lobe-color-bg-container);border-radius:6px;padding:4px 12px;font-size:12px!important}.history-quiet{background:0 0;border:0;border-radius:6px;padding:4px 8px;color:var(--lobe-color-text-secondary)!important;font-size:12px!important}.history-panel{scrollbar-width:thin;max-height:calc(100dvh - 108px);padding-bottom:16px;font-size:12px;position:sticky;top:84px;overflow:auto}.history-panel-head{justify-content:space-between;align-items:center;margin-bottom:12px;display:flex}.history-panel-head h2{margin:0;font-size:14px;font-weight:600}.history-update{background:var(--lobe-color-info-bg);color:var(--lobe-color-info-text);border-radius:6px;align-items:center;gap:8px;margin-bottom:12px;padding:8px 10px;font-size:12px;display:flex}.history-update span{flex:1;min-width:0}.history-update button{white-space:nowrap;background:0 0;border:0;align-items:center;gap:4px;padding:0;font-weight:600;display:flex;color:inherit!important}.history-compare{border-bottom:1px solid var(--lobe-color-border-secondary);padding-bottom:14px}.history-compare dl{grid-template-columns:22px minmax(0,1fr);align-items:baseline;row-gap:4px;margin:0;display:grid}.history-compare dt{color:var(--lobe-color-text-secondary);font-size:11px}.history-compare dd{white-space:nowrap;text-overflow:ellipsis;font-variant-numeric:tabular-nums;gap:6px;min-width:0;margin:0;display:flex;overflow:hidden}.history-compare dd strong{font-weight:600}.history-compare dd span{color:var(--lobe-color-text-secondary)}.history-controls{font-variant-numeric:tabular-nums;align-items:center;gap:6px;margin-top:12px;display:flex}.history-plus{color:var(--lobe-color-success-text);font-size:11px}.history-minus{color:var(--lobe-color-error-text);font-size:11px}.history-spacer{flex:1}.history-timeline{margin:4px 0 0;padding:0;list-style:none}.history-node{--dot:19px;position:relative}.history-node[data-day]{--dot:53px}.history-node:before,.history-node:after{content:"";background:var(--lobe-color-border-secondary);width:1px;position:absolute;left:9px}.history-node:before{height:var(--dot);top:0}.history-node:after{top:var(--dot);bottom:0}.history-node:first-child:before,.history-node:last-child:after{display:none}.history-node[data-upper=in]:before,.history-node[data-lower=in]:after{background:var(--lobe-color-text)}.history-day{box-sizing:border-box;height:34px;color:var(--lobe-color-text-secondary);padding:12px 0 0 28px;font-size:11px;font-weight:600}.history-row{position:relative}.history-dot{z-index:1;box-sizing:border-box;border:1.5px solid var(--lobe-color-text-quaternary);background:var(--lobe-color-bg-container);border-radius:50%;width:8px;height:8px;position:absolute;top:19px;left:9.5px;transform:translate(-50%,-50%)}.history-node[data-state=latest] .history-dot{background:var(--lobe-color-text);border:0;width:9px;height:9px}.history-node[data-state=range] .history-dot{background:var(--lobe-color-text-secondary);border:0;width:7px;height:7px}.history-node[data-state=selected] .history-dot{border:2.5px solid var(--lobe-color-text);width:12px;height:12px}.history-select{box-sizing:border-box;text-align:left;background:0 0;border:0;border-radius:6px;width:100%;padding:8px 40px 8px 28px;display:block}.history-select:hover{background:var(--lobe-color-fill-quaternary)}.history-node[data-state=selected] .history-select{background:var(--lobe-color-fill-tertiary)}.history-line{align-items:center;gap:8px;min-width:0;display:flex}.history-line strong{font-variant-numeric:tabular-nums;font-size:12px;font-weight:600}.history-line span:not(.history-tag){color:var(--lobe-color-text-secondary);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.history-tag{border:1px solid var(--lobe-color-border);color:var(--lobe-color-text-secondary);border-radius:4px;flex:none;padding:0 5px;font-size:10px;line-height:16px}.history-tag.history-start{background:var(--lobe-color-text);color:var(--lobe-color-bg-container);border-color:#0000}.history-meta{color:var(--lobe-color-text-secondary);font-variant-numeric:tabular-nums;margin-top:2px;font-size:11px;display:block}.history-changed{color:var(--lobe-color-text)}.history-expand{width:28px;height:28px;position:absolute;top:9px;right:6px}.history-expand svg{transition:transform .12s}.history-expand[aria-expanded=true] svg{transform:rotate(90deg)}.history-raw{flex-direction:column;padding:2px 6px 8px 28px;display:flex}.history-raw button{box-sizing:border-box;text-align:left;background:0 0;border:0;border-radius:4px;align-items:baseline;gap:10px;width:100%;padding:4px 6px;font-size:11px;display:flex}.history-raw button:hover,.history-raw button[aria-current=true]{background:var(--lobe-color-fill-tertiary)}.history-raw span{color:var(--lobe-color-text-secondary);font-variant-numeric:tabular-nums;flex:none}.history-raw code{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--lobe-color-text-secondary);font-size:10px;overflow:hidden}.history-more{border:1px solid var(--lobe-color-border-secondary);background:0 0;border-radius:6px;width:100%;margin-block:12px;padding:8px;font-size:12px;display:block}.history-end{border-top:1px solid var(--lobe-color-border-secondary);color:var(--lobe-color-text-secondary);margin:18px 0 0;padding-top:12px;font-size:11px;line-height:1.7}.history-waiting p{border-bottom:1px solid var(--lobe-color-border-secondary);flex-direction:column;margin:0;padding:12px 0 14px;display:flex}.history-waiting p strong{font-weight:600}.history-waiting p span{color:var(--lobe-color-text-secondary);font-size:11px}.history-skeleton{flex-direction:column;gap:22px;margin-top:22px;padding-left:28px;display:flex}.history-skeleton span{background:var(--lobe-color-fill-tertiary);border-radius:5px;height:10px}.history-failure{border-bottom:1px solid var(--lobe-color-border-secondary);flex-direction:column;gap:10px;padding:14px 0 16px;display:flex}.history-failure strong{color:var(--lobe-color-error-text);align-items:center;gap:8px;font-weight:600;display:flex}.history-failure code{background:var(--lobe-color-fill-tertiary);overflow-wrap:anywhere;border-radius:6px;padding:8px 10px;font-size:11px}.history-failure>span{color:var(--lobe-color-text-secondary)}.history-actions{gap:8px;display:flex}.history-strip{z-index:5;border-bottom:1px solid var(--lobe-color-border-secondary);background:var(--lobe-color-bg-container);align-items:center;gap:4px;margin-bottom:8px;padding:6px 0;font-size:12px;display:flex;position:sticky;top:52px}.history-pick{text-align:left;background:0 0;border:0;flex-direction:column;flex:1;align-items:flex-start;min-width:0;padding:2px 0;display:flex}.history-pick span{color:var(--lobe-color-text-secondary);font-size:11px}.history-pick strong{white-space:nowrap;text-overflow:ellipsis;font-variant-numeric:tabular-nums;align-items:center;gap:4px;max-width:100%;font-weight:600;display:flex;overflow:hidden}.history-view .history-update{margin-block:8px}.history-content{padding:12px 16px 28px}.history-content>h1{margin:0 0 32px;font-size:24px;font-weight:700;line-height:1.35}.history-note{background:var(--lobe-color-fill-tertiary);color:var(--lobe-color-text-secondary);border-radius:6px;margin:0 0 28px;padding:10px 14px;font-size:12px}.history-hunk{min-width:0;scroll-margin-top:120px}.history-hunk:not(.history-equal){outline-offset:4px;border-radius:8px;outline:2px solid #0000;margin:14px 0 20px}.history-hunk[data-current]{outline-color:color-mix(in srgb,var(--lobe-color-info) 35%,transparent)}.history-caption{color:var(--lobe-color-text-secondary);font-variant-numeric:tabular-nums;align-items:baseline;gap:8px;margin-bottom:6px;font-size:11px;line-height:1.5;display:flex}.history-kind{color:var(--lobe-color-text);font-weight:600}.history-insert .history-kind{color:var(--lobe-color-success-text)}.history-delete .history-kind{color:var(--lobe-color-error-text)}.history-before,.history-after,.history-merged{border-radius:6px;padding:8px 12px;position:relative}.history-before+.history-after{margin-top:2px}.history-before{background:color-mix(in srgb,var(--lobe-color-error-text) 8%,var(--lobe-color-bg-container))}.history-after{background:color-mix(in srgb,var(--lobe-color-success-text) 8%,var(--lobe-color-bg-container))}.history-merged{background:var(--lobe-color-fill-quaternary)}.history-before:before,.history-after:before,.history-merged:before{text-align:center;width:16px;font:700 13px/1.75 ui-monospace,SFMono-Regular,Menlo,monospace;position:absolute;top:8px;left:-26px}.history-before:before{content:"−";color:var(--lobe-color-error-text)}.history-after:before{content:"+";color:var(--lobe-color-success-text)}.history-merged:before{content:"±";color:var(--lobe-color-text-secondary)}.history-fold{background:0 0;border:0;align-items:center;gap:10px;width:100%;margin:4px 0 18px;padding:4px 0;display:flex;color:var(--lobe-color-text-secondary)!important;font-size:11px!important}.history-fold:before,.history-fold:after{content:"";border-top:1px dashed var(--lobe-color-border);flex:1}.history-message{text-align:center;color:var(--lobe-color-text-secondary);padding:36px 12px;font-size:13px}.history-message>button{border:1px solid var(--lobe-color-border-secondary);background:0 0;border-radius:6px;margin:15px auto;padding:5px 12px;display:block}.history-hunk .rich-content,.history-hunk [class*=richContent]{max-width:100%;font-size:14px;line-height:1.75}.history-hunk .rich-content>:first-child{margin-top:0}.history-hunk .rich-content>:last-child{margin-bottom:0}.history-hunk .rich-content>.rich-heading-h1{font-size:24px;line-height:1.35}.history-hunk .rich-content>.rich-heading-h2{font-size:20px;line-height:1.4}.history-hunk .rich-content>.rich-heading-h3{font-size:17px;line-height:1.45}.history-hunk pre{white-space:pre-wrap;overflow-wrap:anywhere}.history-hunk table,.history-hunk img{max-width:100%}.history-sheet{z-index:30;position:fixed;inset:0}.history-sheet-head{justify-content:space-between;align-items:center;padding:6px 8px 8px 20px;display:flex}.history-sheet-head>span{flex-direction:column;display:flex}.history-sheet-head strong{font-size:15px;font-weight:600}.history-sheet-head small{color:var(--lobe-color-text-secondary);font-size:12px}.history-sheet-head button{background:0 0;border:0;min-height:44px;padding:0 12px;font-size:14px}.history-sheet-body{padding:0 12px 24px}.history-sheet .history-select{min-height:56px}@media (width<=1100px){.history-before:before,.history-after:before,.history-merged:before{float:left;width:auto;margin-right:8px;display:inline-block;position:static}}@media (width<=640px){.history-strip .history-icon{width:44px;height:44px}.history-hunk table{font-size:12px}.history-hunk{overflow-x:auto}.history-hunk .rich-content,.history-hunk [class*=richContent]{font-size:16px}}