@phnx-labs/artifacts-cli 0.9.2 → 0.9.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.9.4 — 2026-10-09
4
+
5
+ - **The share bar leads with the Rush by Phoenix lockup.** The left side is the gold
6
+ Phoenix, "Rush" and BY PHOENIX, as on getrush.ai, then the share's title. The right side
7
+ is a video's transcript status, one Share button and the sharer's avatar, which shows
8
+ "Shared by <handle> · Updated 2h ago" on hover.
9
+ - **Share holds the link.** It opens a sheet for every reader: the link with a copy icon,
10
+ who can open the page (the owner picks a level there; everyone else sees one line), and
11
+ the view count. The Copy link pill, the visibility chip, the kind tag and the bar's own
12
+ Updated and views text are gone. On a phone the sheet spans the screen under the bar.
13
+ - **The Worker serves the Phoenix mark** at `/__brand/phoenix.webp`; "Rush" is drawn as an
14
+ outline, so no third face ships. The bar-asset route answers only its own files, so
15
+ `/constructor` or `/__proto__` is never served as an asset.
16
+
17
+ ## 0.9.3 — 2026-10-09
18
+
19
+ - **The share bar, redrawn in the Rush design system.** Every shared page and asset
20
+ viewer now opens with `handle / title` (the title in Jost), "Updated 2h ago", the view
21
+ count, a neutral visibility chip and a Copy link button for every reader. "Made with
22
+ <agent>" is gone. The owner's visibility menu is a glass sheet with a check on the
23
+ current level and arrow-key navigation; saving shows beside the chip, and a refused
24
+ change explains itself under it. A video share carries its transcript status in the
25
+ bar: a pulse while it runs, "No transcript" linking to Retry, or "Transcript" jumping to
26
+ the rail. The bar is 46 px tall (was 38).
27
+ - **The video page follows the same system:** Inter and Jost, zinc on glass, no blue accent,
28
+ a white Retry pill, and the job's error shown as a sentence.
29
+ - **The share Worker serves the bar's faces** at `/__fonts/inter.woff2` and
30
+ `/__fonts/jost.woff2`, so a shared page never calls a third-party font host. Jost
31
+ (SIL OFL 1.1) is added to `fonts/`.
32
+
3
33
  ## 0.9.2 — 2026-10-09
4
34
 
5
35
  - **The header's session chip opens the session (PHNX-4312).** It reads "Open session"
Binary file
@@ -801,17 +801,22 @@ function renderMediaPanels(pathname, media, opts) {
801
801
  let panels = '';
802
802
  if (!ready) {
803
803
  const failed = media.state === 'failed';
804
- const heading = failed
805
- ? 'Transcript and summary failed'
804
+ const badge = failed
805
+ ? 'No transcript'
806
806
  : (media.stage === 'summary' ? 'Summarizing…' : media.stage === 'listing' ? 'Finalizing…' : 'Transcribing…');
807
+ const heading = failed
808
+ ? 'The transcript could not be made'
809
+ : 'The transcript, chapters and summary are on the way';
810
+ // The job's error is a lower-case clause; show it as a sentence.
811
+ const reason = media.error ? String(media.error).trim().replace(/[.\\s]+$/, '') : '';
807
812
  const detail = failed
808
- ? (media.error ? escapeHtml(media.error) : 'Media processing failed.')
809
- : 'The transcript, captions and summary appear here when processing finishes. This page refreshes on its own.';
810
- panels = '<section class="mv-card mv-status' + (failed ? ' mv-failed' : '') + '" role="status">' +
811
- (failed ? '' : '<span class="mv-spin" aria-hidden="true"></span>') +
812
- '<div><h2>' + heading + '</h2><p data-mv-note>' + detail + '</p>' +
813
+ ? (reason ? escapeHtml(reason.charAt(0).toUpperCase() + reason.slice(1)) + '.' : 'Processing stopped before it finished.')
814
+ : 'They appear here when processing finishes. This page refreshes on its own.';
815
+ panels = '<section class="mv-card mv-status' + (failed ? ' mv-failed' : '') + '" id="mv-status" role="status">' +
816
+ '<span class="mv-badge"><span class="mv-dot" aria-hidden="true"></span>' + badge + '</span>' +
817
+ '<h2>' + heading + '</h2><p data-mv-note>' + detail + '</p>' +
813
818
  (failed && opts.canRetry ? '<button type="button" class="mv-retry" data-mv-retry>Retry</button>' : '') +
814
- '</div></section>';
819
+ '</section>';
815
820
  } else {
816
821
  panels = '<section class="mv-card"><h1>' + escapeHtml(summary.title) + '</h1><p class="mv-summary">' + escapeHtml(summary.summary) + '</p></section>' +
817
822
  (summary.chapters.length ? '<section class="mv-card"><h2>Chapters</h2><ol class="mv-list">' +
@@ -822,7 +827,7 @@ function renderMediaPanels(pathname, media, opts) {
822
827
  }
823
828
 
824
829
  const rail = ready
825
- ? '<aside class="mv-rail" aria-label="Transcript"><div class="mv-rail-head"><h2>Transcript</h2>' +
830
+ ? '<aside class="mv-rail" id="mv-transcript" aria-label="Transcript"><div class="mv-rail-head"><h2>Transcript</h2>' +
826
831
  '<input type="search" data-mv-search placeholder="Search the transcript" aria-label="Search the transcript"><span class="mv-count" data-mv-count></span></div>' +
827
832
  '<ol class="mv-lines" data-mv-lines>' + (transcript.length ? transcript.map(function (line) {
828
833
  return '<li class="mv-line" data-mv-line data-mv-seek="' + line.start + '">' +
@@ -838,37 +843,50 @@ function renderMediaPanels(pathname, media, opts) {
838
843
  }
839
844
 
840
845
  var MEDIA_VIEWER_CSS =
841
- 'html,body{margin:0;background:#0f0f11;color:#e8e8e8;font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,system-ui,sans-serif}' +
846
+ // rush/DESIGN.md on the video page: Inter body and Jost headings (the bar's
847
+ // faces, served from /__fonts/), zinc text on white-alpha glass over void,
848
+ // no blue accent. The one primary action on the page is the bar's Copy link,
849
+ // or Retry when the job failed.
850
+ 'html,body{margin:0;background:#09090b;color:#e4e4e7;font:14px/1.55 "ash-inter",Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,system-ui,sans-serif;-webkit-font-smoothing:antialiased}' +
842
851
  '.mv{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:20px;max-width:1440px;margin:0 auto;padding:20px;box-sizing:border-box}' +
843
852
  '.mv.mv-solo{grid-template-columns:minmax(0,1fr);max-width:1100px}' +
844
853
  '@media(max-width:980px){.mv{grid-template-columns:minmax(0,1fr)}}' +
854
+ '@media(max-width:560px){.mv{padding:16px}}' +
845
855
  '.mv-main{min-width:0;display:flex;flex-direction:column;gap:16px}' +
846
- '.mv video{width:100%;max-height:68vh;background:#000;border-radius:10px;display:block}' +
847
- '.mv-strip{position:relative;height:14px;margin-top:-8px;background:#1b1b21;border-radius:7px;cursor:pointer;overflow:hidden}' +
848
- '.mv-fill{position:absolute;left:0;top:0;bottom:0;width:0;background:rgba(91,157,255,.28)}' +
849
- '.mv-tick{position:absolute;top:2px;bottom:2px;width:4px;margin-left:-2px;padding:0;border:0;border-radius:2px;background:#5b9dff;cursor:pointer}' +
850
- '.mv-tick:hover,.mv-tick:focus-visible{background:#a3c6ff;outline:none}' +
851
- '.mv-card{background:#151519;border:1px solid #24242b;border-radius:12px;padding:16px 18px}' +
852
- '.mv-card h1{font-size:20px;margin:0 0 8px;color:#fff}.mv-card h2{font-size:12px;margin:0 0 10px;text-transform:uppercase;letter-spacing:.07em;color:#8b919c}' +
853
- '.mv-summary{margin:0;color:#d3d7de}.mv-empty{margin:0;color:#7c8290}' +
856
+ '.mv video{width:100%;max-height:68vh;background:#000;border-radius:12px;display:block}' +
857
+ '.mv-strip{position:relative;height:14px;margin-top:-8px;background:rgba(255,255,255,.05);border-radius:7px;cursor:pointer;overflow:hidden}' +
858
+ '.mv-fill{position:absolute;left:0;top:0;bottom:0;width:0;background:rgba(255,255,255,.14)}' +
859
+ '.mv-tick{position:absolute;top:2px;bottom:2px;width:4px;margin-left:-2px;padding:0;border:0;border-radius:2px;background:rgba(255,255,255,.55);cursor:pointer}' +
860
+ '.mv-tick:hover,.mv-tick:focus-visible{background:#fafafa;outline:none}' +
861
+ '.mv-card{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:16px 18px}' +
862
+ '.mv-card h1{font:500 22px/1.25 "ash-jost",Jost,"ash-inter",system-ui,sans-serif;margin:0 0 8px;color:#fafafa;text-wrap:balance}' +
863
+ '.mv-card h2{font-size:11px;font-weight:500;margin:0 0 10px;text-transform:uppercase;letter-spacing:.12em;color:#a1a1aa}' +
864
+ '.mv-summary{margin:0;color:#d4d4d8;max-width:72ch}.mv-empty{margin:0;color:#a1a1aa}' +
854
865
  '.mv-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.mv-list li{display:flex;gap:10px;align-items:baseline}' +
855
- '.mv-ts{flex:none;font:12px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace;color:#7fb0ff;text-decoration:none;background:rgba(91,157,255,.1);padding:1px 6px;border-radius:5px}' +
856
- '.mv-ts:hover{background:rgba(91,157,255,.22)}' +
857
- '.mv-status{display:flex;gap:14px;align-items:flex-start}.mv-status h2{color:#e8e8e8;font-size:15px;text-transform:none;letter-spacing:0}.mv-status p{margin:0;color:#aab0ba}' +
858
- '.mv-failed{border-color:#5c2b2b}.mv-failed h2{color:#ff8a8a}' +
859
- '.mv-spin{flex:none;width:18px;height:18px;margin-top:2px;border:2px solid rgba(255,255,255,.2);border-top-color:#5b9dff;border-radius:50%;animation:mv-sp .8s linear infinite}' +
860
- '@keyframes mv-sp{to{transform:rotate(360deg)}}' +
861
- '.mv-retry{margin-top:12px;background:#5b9dff;color:#0b0b0c;border:0;border-radius:8px;padding:7px 16px;font:inherit;font-weight:600;cursor:pointer}.mv-retry:disabled{opacity:.5;cursor:default}' +
862
- '.mv-rail{position:sticky;top:58px;align-self:start;height:calc(100vh - 78px);display:flex;flex-direction:column;background:#151519;border:1px solid #24242b;border-radius:12px;overflow:hidden}' +
866
+ '.mv-ts{flex:none;font:500 12px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace;font-variant-numeric:tabular-nums;color:#e4e4e7;text-decoration:none;background:rgba(255,255,255,.06);padding:1px 6px;border-radius:5px}' +
867
+ '.mv-ts:hover{background:rgba(255,255,255,.12)}' +
868
+ '.mv-status{display:flex;flex-direction:column;align-items:flex-start;gap:8px}' +
869
+ '.mv-status h2{font:500 18px/1.3 "ash-jost",Jost,"ash-inter",system-ui,sans-serif;text-transform:none;letter-spacing:0;color:#fafafa;margin:0;text-wrap:balance}' +
870
+ '.mv-status p{margin:0;color:#a1a1aa;max-width:68ch}' +
871
+ '.mv-badge{display:inline-flex;align-items:center;gap:6px;height:22px;padding:0 9px;border-radius:999px;font-size:11.5px;font-weight:600;background:rgba(245,158,11,.18);color:#fde68a}' +
872
+ '.mv-dot{width:6px;height:6px;border-radius:50%;background:#fbbf24;animation:mv-pulse 2s cubic-bezier(.4,0,.6,1) infinite}' +
873
+ '.mv-failed .mv-badge{background:rgba(244,63,94,.18);color:#fecdd3}.mv-failed .mv-dot{background:#fb7185;animation:none}' +
874
+ '@keyframes mv-pulse{0%,100%{opacity:1}50%{opacity:.4}}' +
875
+ '.mv-retry{margin-top:4px;height:30px;padding:0 16px;background:#fafafa;color:#09090b;border:0;border-radius:999px;font:inherit;font-size:13px;font-weight:600;cursor:pointer;box-shadow:0 6px 18px -8px rgba(255,255,255,.35)}' +
876
+ '.mv-retry:hover{background:#fff}.mv-retry:focus-visible{outline:2px solid #c9a962;outline-offset:2px}.mv-retry:disabled{opacity:.5;cursor:default}' +
877
+ '.mv-rail{position:sticky;top:66px;align-self:start;height:calc(100vh - 86px);display:flex;flex-direction:column;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);border-radius:16px;overflow:hidden;scroll-margin-top:66px}' +
863
878
  '@media(max-width:980px){.mv-rail{position:static;height:60vh}}' +
864
- '.mv-rail-head{padding:14px 14px 10px;border-bottom:1px solid #24242b}.mv-rail-head h2{font-size:12px;margin:0 0 8px;text-transform:uppercase;letter-spacing:.07em;color:#8b919c}' +
865
- '.mv-rail-head input{width:100%;box-sizing:border-box;background:#0f0f11;border:1px solid #2c2c34;border-radius:8px;color:#e8e8e8;padding:7px 10px;font:inherit}' +
866
- '.mv-count{display:block;min-height:16px;margin-top:4px;font-size:12px;color:#8b919c}' +
879
+ '.mv-status{scroll-margin-top:66px}' +
880
+ '.mv-rail-head{padding:14px 14px 10px;border-bottom:1px solid rgba(255,255,255,.08)}.mv-rail-head h2{font-size:11px;font-weight:500;margin:0 0 8px;text-transform:uppercase;letter-spacing:.12em;color:#a1a1aa}' +
881
+ '.mv-rail-head input{width:100%;box-sizing:border-box;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.1);border-radius:10px;color:#fafafa;padding:7px 10px;font:inherit}' +
882
+ '.mv-rail-head input:focus{outline:none;border-color:rgba(255,255,255,.24)}' +
883
+ '.mv-count{display:block;min-height:16px;margin-top:4px;font-size:12px;color:#a1a1aa}' +
867
884
  '.mv-lines{list-style:none;margin:0;padding:6px 0;overflow-y:auto;flex:1}' +
868
- '.mv-line{display:grid;grid-template-columns:auto 1fr;gap:2px 10px;padding:7px 14px;border-left:3px solid transparent;cursor:pointer}' +
869
- '.mv-line:hover{background:rgba(255,255,255,.03)}.mv-line.on{background:rgba(91,157,255,.12);border-left-color:#5b9dff}' +
870
- '.mv-line .mv-ts{grid-row:span 2;align-self:start}.mv-spk{font-size:11px;font-weight:600}.mv-txt{grid-column:2;color:#d3d7de}' +
871
- '.mv-spk0{color:#7fb0ff}.mv-spk1{color:#f5a54a}.mv-spk2{color:#5fd39a}.mv-spk3{color:#d58cff}.mv-spk4{color:#ff8a8a}.mv-spk5{color:#e5d36a}' +
872
- '.mv-line mark{background:rgba(245,158,11,.4);color:#fff;border-radius:2px}';
885
+ '.mv-line{display:grid;grid-template-columns:auto 1fr;gap:2px 10px;padding:7px 14px;border-left:2px solid transparent;cursor:pointer}' +
886
+ '.mv-line:hover{background:rgba(255,255,255,.03)}.mv-line.on{background:rgba(255,255,255,.06);border-left-color:rgba(255,255,255,.6)}' +
887
+ '.mv-line .mv-ts{grid-row:span 2;align-self:start}.mv-spk{font-size:11px;font-weight:600}.mv-txt{grid-column:2;color:#d4d4d8}' +
888
+ '.mv-spk0{color:#93c5fd}.mv-spk1{color:#fcd34d}.mv-spk2{color:#6ee7b7}.mv-spk3{color:#d8b4fe}.mv-spk4{color:#fda4af}.mv-spk5{color:#bef264}' +
889
+ '.mv-line mark{background:rgba(201,169,98,.35);color:#fff;border-radius:2px}' +
890
+ '@media(prefers-reduced-motion:reduce){.mv-dot{animation:none}}';
873
891
  `;
874
892
  //# sourceMappingURL=worker-media-template.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"worker-media-template.js","sourceRoot":"","sources":["../../../src/lib/share/worker-media-template.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,qBAAqB,EACrB,cAAc,EACd,qBAAqB,EACrB,kBAAkB,EAClB,2BAA2B,EAC3B,iBAAiB,EACjB,QAAQ,EACR,YAAY,GACb,MAAM,iBAAiB,CAAC;AAEzB,6EAA6E;AAC7E,8EAA8E;AAC9E,gFAAgF;AAChF,iFAAiF;AACjF,0EAA0E;AAC1E,EAAE;AACF,uDAAuD;AACvD,4CAA4C;AAC5C,2EAA2E;AAC3E,EAAE;AACF,6EAA6E;AAC7E,0EAA0E;AAC1E,+EAA+E;AAC/E,wEAAwE;AACxE,4EAA4E;AAC5E,8EAA8E;AAC9E,mFAAmF;AACnF,iEAAiE;AACjE,kCAAkC;AAClC,MAAM,CAAC,MAAM,yBAAyB,GAAG;oCACL,2BAA2B;qBAC1C,YAAY;iBAChB,QAAQ;mBACN,UAAU;2BACF,kBAAkB;8BACf,qBAAqB;yBAC1B,gBAAgB;8BACX,qBAAqB;wBAC3B,IAAI,CAAC,SAAS,CAAC,uBAAuB,GAAG,cAAc,GAAG,IAAI,GAAG,iBAAiB,GAAG,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA20BnH,CAAC"}
1
+ {"version":3,"file":"worker-media-template.js","sourceRoot":"","sources":["../../../src/lib/share/worker-media-template.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,qBAAqB,EACrB,cAAc,EACd,qBAAqB,EACrB,kBAAkB,EAClB,2BAA2B,EAC3B,iBAAiB,EACjB,QAAQ,EACR,YAAY,GACb,MAAM,iBAAiB,CAAC;AAEzB,6EAA6E;AAC7E,8EAA8E;AAC9E,gFAAgF;AAChF,iFAAiF;AACjF,0EAA0E;AAC1E,EAAE;AACF,uDAAuD;AACvD,4CAA4C;AAC5C,2EAA2E;AAC3E,EAAE;AACF,6EAA6E;AAC7E,0EAA0E;AAC1E,+EAA+E;AAC/E,wEAAwE;AACxE,4EAA4E;AAC5E,8EAA8E;AAC9E,mFAAmF;AACnF,iEAAiE;AACjE,kCAAkC;AAClC,MAAM,CAAC,MAAM,yBAAyB,GAAG;oCACL,2BAA2B;qBAC1C,YAAY;iBAChB,QAAQ;mBACN,UAAU;2BACF,kBAAkB;8BAC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  // compiled module: workerd deliberately forbids runtime code generation,
30
30
  // so esbuild's `binary` loader produces a bundle that works in Node but
31
31
  // throws "Wasm code generation disallowed by embedder" in Cloudflare.
32
- loader: { '.wasm': 'copy', '.woff': 'binary' },
32
+ loader: { '.wasm': 'copy', '.woff': 'binary', '.woff2': 'binary', '.webp': 'binary' },
33
33
  });
34
34
  const script = result.outputFiles.find((output) => output.path.endsWith('.js'));
35
35
  if (!script)
@@ -64,7 +64,7 @@ export function renderWorkerScript() {
64
64
  target: 'es2022',
65
65
  write: false,
66
66
  minify: true,
67
- loader: { '.wasm': 'binary', '.woff': 'binary' },
67
+ loader: { '.wasm': 'binary', '.woff': 'binary', '.woff2': 'binary', '.webp': 'binary' },
68
68
  });
69
69
  const output = result.outputFiles[0];
70
70
  if (!output)
@@ -83,6 +83,9 @@ import resvgWasm from '@resvg/resvg-wasm/index_bg.wasm';
83
83
  import interRegular from '@fontsource/inter/files/inter-latin-400-normal.woff';
84
84
  import interBold from '@fontsource/inter/files/inter-latin-700-normal.woff';
85
85
  import jetbrainsMono from '@fontsource/jetbrains-mono/files/jetbrains-mono-latin-600-normal.woff';
86
+ import barInter from '../../../fonts/InterVariable.woff2';
87
+ import barJost from '../../../fonts/Jost-wght.woff2';
88
+ import barPhoenix from '../../../brand/phoenix-gold.webp';
86
89
 
87
90
  // GENERATED by agents-cli agents share setup — do not edit here; edit
88
91
  // src/lib/share/worker-template.ts and re-run setup.
@@ -108,6 +111,9 @@ export default {
108
111
  // and the signed callback. Both 404 unless the media keys are bound.
109
112
  if (path === '__media/source') return handleMediaSource(request, env, url);
110
113
  if (path === '__media/callback') return handleMediaCallback(request, env, url, ctx);
114
+ // The share bar's two faces (Inter, Jost), served from this origin so a
115
+ // shared page never calls a third-party font host.
116
+ if ((request.method === 'GET' || request.method === 'HEAD') && Object.prototype.hasOwnProperty.call(BAR_ASSETS, path)) return handleBarAsset(request, path);
111
117
  if ((request.method === 'GET' || request.method === 'HEAD') && firstSeg.startsWith('__')) {
112
118
  return new Response('not found', { status: 404, headers: { 'content-type': 'text/plain' } });
113
119
  }
@@ -1196,113 +1202,150 @@ function escapeHtml(s) {
1196
1202
  .replace(/"/g, '&quot;');
1197
1203
  }
1198
1204
 
1199
- // The attribution bar: a slim strip prepended to every served HTML page that
1200
- // makes the object's stamped metadata visible — who shared it, what made it,
1201
- // when, and (the whole point) a color-coded VISIBILITY cue Google-Drive style.
1202
- // All values come from customMetadata; nothing new is stamped at publish time,
1203
- // so this is a pure Worker change deployable with 'agents artifacts share update'.
1205
+ // The attribution bar: a slim glass strip fixed to the top of every served HTML
1206
+ // page and asset viewer, laid out like getrush.ai's nav. Left: the Rush by
1207
+ // Phoenix lockup and the share's title. Right: a video's transcript status, one
1208
+ // Share button, and the sharer's avatar. Share opens a sheet with the link and
1209
+ // a copy control, who can open the page (a live control for the owner), and the
1210
+ // view count. All values come from customMetadata and the serve path; nothing
1211
+ // new is stamped at publish time. Type and colour follow rush/DESIGN.md; the
1212
+ // faces and the Phoenix mark are served from this origin, so a shared page
1213
+ // never calls a third-party host.
1204
1214
  var VIS_ICON = {
1205
- me: '<svg viewBox="0 0 24 24" width="13" height="13" fill="none" stroke="currentColor" stroke-width="2"><rect x="4" y="11" width="16" height="9" rx="2"/><path d="M8 11V8a4 4 0 0 1 8 0v3"/></svg>',
1206
- org: '<svg viewBox="0 0 24 24" width="13" height="13" fill="none" stroke="currentColor" stroke-width="2"><path d="M3 21h18M6 21V4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v17M14 9h4a1 1 0 0 1 1 1v11"/></svg>',
1207
- unlisted: '<svg viewBox="0 0 24 24" width="13" height="13" fill="none" stroke="currentColor" stroke-width="2"><path d="M10 13a5 5 0 0 0 7 0l3-3a5 5 0 0 0-7-7l-1 1"/><path d="M14 11a5 5 0 0 0-7 0l-3 3a5 5 0 0 0 7 7l1-1"/></svg>',
1208
- public: '<svg viewBox="0 0 24 24" width="13" height="13" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="9"/><path d="M3 12h18M12 3a15 15 0 0 1 0 18M12 3a15 15 0 0 0 0 18"/></svg>',
1215
+ me: '<svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="1.5"><rect x="4" y="11" width="16" height="9" rx="2"/><path d="M8 11V8a4 4 0 0 1 8 0v3"/></svg>',
1216
+ org: '<svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M3 21h18M6 21V4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v17M14 9h4a1 1 0 0 1 1 1v11"/></svg>',
1217
+ unlisted: '<svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M10 13a5 5 0 0 0 7 0l3-3a5 5 0 0 0-7-7l-1 1"/><path d="M14 11a5 5 0 0 0-7 0l-3 3a5 5 0 0 0 7 7l1-1"/></svg>',
1218
+ public: '<svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="1.5"><circle cx="12" cy="12" r="9"/><path d="M3 12h18M12 3a15 15 0 0 1 0 18M12 3a15 15 0 0 0 0 18"/></svg>',
1209
1219
  };
1210
1220
 
1211
- // Eye glyph for the view-count stat; caret for the owner's interactive chip.
1212
- var STAT_EYE_ICON = '<svg viewBox="0 0 24 24" width="13" height="13" fill="none" stroke="currentColor" stroke-width="2"><path d="M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7Z"/><circle cx="12" cy="12" r="3"/></svg>';
1213
- var CARET_ICON = '<svg class="ash-caret" viewBox="0 0 24 24" width="11" height="11" fill="none" stroke="currentColor" stroke-width="2.4"><path d="m6 9 6 6 6-6"/></svg>';
1214
-
1215
- // The owner-only browser script that turns the visibility chip into a live
1216
- // control. Self-contained IIFE, namespaced under .agents-share-bar; injected only
1217
- // when the viewer owns the namespace. It reads the current level and each level's
1218
- // icon/color/label straight from the rendered menu DOM (no embedded config), then
1219
- // PATCHes the SAME in-place edit route the CLI uses — method PATCH, JSON body
1220
- // { visibility } — with credentials:'include' so the viewer's __share cookie /
1221
- // Phoenix identity rides. Optimistic: flip the chip + spinner, then a green check
1222
- // on 2xx or revert + the server's error text on failure (an org-on-public-inbox
1223
- // 400 surfaces verbatim). The share page sets no CSP, so inline JS is fine.
1224
- var ASH_OWNER_JS = \`(function(){
1225
- var root = document.querySelector('.agents-share-bar');
1226
- if(!root) return;
1227
- var chip = root.querySelector('[data-ash-chip]');
1228
- var menu = root.querySelector('[data-ash-menu]');
1229
- var toast = root.querySelector('[data-ash-toast]');
1230
- if(!chip || !menu || !toast) return;
1231
- var labelEl = chip.querySelector('[data-ash-label]');
1232
- var chipIc = chip.querySelector('[data-ash-chip-ic]');
1233
- var busy = false;
1234
- function opts(){ return menu.querySelectorAll('[data-ash-opt]'); }
1235
- function currentKey(){ var s = menu.querySelector('.ash-opt.ash-sel'); return s ? s.getAttribute('data-ash-opt') : ''; }
1236
- function labelFor(key){ var a = opts(); for(var i=0;i<a.length;i++){ if(a[i].getAttribute('data-ash-opt')===key){ var b = a[i].querySelector('b'); return b ? b.textContent : key; } } return key; }
1237
- function open(){ menu.classList.add('ash-open'); menu.setAttribute('aria-hidden','false'); }
1238
- function close(){ menu.classList.remove('ash-open'); menu.setAttribute('aria-hidden','true'); }
1239
- chip.addEventListener('click', function(e){ e.stopPropagation(); if(menu.classList.contains('ash-open')) close(); else open(); });
1240
- menu.addEventListener('click', function(e){ e.stopPropagation(); });
1241
- document.addEventListener('click', close);
1242
- document.addEventListener('keydown', function(e){ if(e.key==='Escape') close(); });
1243
- function draw(key){
1244
- var sel = null, a = opts();
1245
- for(var i=0;i<a.length;i++){ var on = a[i].getAttribute('data-ash-opt')===key; a[i].classList.toggle('ash-sel', on); if(on) sel = a[i]; }
1246
- if(!sel) return;
1247
- var ic = sel.querySelector('.ash-opt-ic');
1248
- var color = ic ? ic.style.color : '';
1249
- if(color){ chip.style.color = color; chip.style.borderColor = color + '66'; }
1250
- if(chipIc && ic) chipIc.innerHTML = ic.innerHTML;
1251
- var b = sel.querySelector('b');
1252
- if(labelEl && b) labelEl.textContent = b.textContent;
1253
- }
1254
- function say(inner, cls){ toast.innerHTML = inner; toast.className = 'ash-toast ash-show' + (cls ? ' ' + cls : ''); }
1255
- function fade(ms){ setTimeout(function(){ toast.className = 'ash-toast'; }, ms); }
1256
- function pick(key){
1257
- close();
1258
- var prev = currentKey();
1259
- if(busy || !key || key===prev) return;
1260
- busy = true;
1261
- draw(key);
1262
- var name = labelFor(key);
1263
- say('<span class="ash-spin"></span> Saving…');
1264
- fetch(location.pathname, { method:'PATCH', credentials:'include', headers:{'content-type':'application/json'}, body: JSON.stringify({ visibility: key }) })
1265
- .then(function(res){ return res.json().then(function(j){ return { ok: res.ok, status: res.status, body: j }; }, function(){ return { ok: res.ok, status: res.status, body: {} }; }); })
1266
- .then(function(r){
1267
- busy = false;
1268
- if(r.ok){ say('<span class="ash-ok">\\u2713</span> Now ' + name, 'ash-good'); fade(1600); }
1269
- else {
1270
- draw(prev);
1271
- var msg = (r.body && r.body.error) ? String(r.body.error) : ('Could not update (HTTP ' + r.status + ')');
1272
- say('<span class="ash-err">\\u2715</span> ' + msg.replace(/[<>&]/g, ' '), 'ash-bad');
1273
- fade(4000);
1274
- }
1275
- }, function(){ busy = false; draw(prev); say('<span class="ash-err">\\u2715</span> Network error \\u2014 not saved', 'ash-bad'); fade(4000); });
1276
- }
1277
- var a = opts();
1278
- for(var i=0;i<a.length;i++){ (function(el){ el.addEventListener('click', function(e){ e.stopPropagation(); pick(el.getAttribute('data-ash-opt')); }); })(a[i]); }
1279
- })();\`;
1280
-
1221
+ // Eye glyph for the view count, check for Copied and the selected level.
1222
+ var STAT_EYE_ICON = '<svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7Z"/><circle cx="12" cy="12" r="3"/></svg>';
1223
+ var COPY_ICON = '<svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.7"><rect x="9" y="9" width="12" height="12" rx="2"/><path d="M5 15V5a2 2 0 0 1 2-2h10"/></svg>';
1224
+ var CHECK_ICON = '<svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2"><path d="m5 12 5 5 9-10"/></svg>';
1225
+
1226
+ // "Rush" in Cormorant Upright 500, outlined, so the lockup needs no extra face.
1227
+ // Traced from the same cut getrush.ai loads for its wordmark.
1228
+ var RUSH_WORDMARK = '<svg class="ash-wm" viewBox="43 199 1950 738" width="40" height="15" aria-hidden="true">' +
1229
+ '<defs><linearGradient id="ash-gold" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#E8CE8C"/><stop offset=".35" stop-color="#D4B872"/><stop offset=".55" stop-color="#C9A962"/><stop offset="1" stop-color="#A8884A"/></linearGradient></defs>' +
1230
+ '<path fill="url(#ash-gold)" d="M685 924H553Q528 924 462 840Q395 755 304 599Q272 607 239 607Q227 607 211 605L210 843Q211 873 216 887Q222 901 238 906Q254 912 288 912Q292 912 292 918Q293 924 289 924Q258 924 240 923L169 922L98 923Q80 924 48 924Q44 924 44 918Q43 912 47 912Q83 912 101 906Q119 901 126 886Q132 872 133 843V380Q132 350 126 336Q120 322 104 316Q87 311 51 311Q47 311 47 305Q47 299 51 299L101 300Q145 302 170 302Q186 302 206 301Q227 300 238 299Q265 296 286 296Q374 296 420 329Q466 362 466 421Q466 467 438 508Q411 549 364 575Q446 703 502 776Q558 848 602 880Q645 912 685 912Q688 912 688 918Q689 924 685 924ZM256 583Q325 583 354 553Q384 523 384 455Q384 381 353 347Q322 313 271 313Q243 313 232 316Q221 320 216 334Q211 348 210 382V579Q240 583 256 583Z M1171 845Q1175 845 1178 848Q1182 852 1180 854Q1148 895 1123 914Q1098 933 1070 933Q1011 933 1011 854V733Q991 830 948 884Q906 937 846 937Q753 937 757 805L761 627Q762 572 734 572Q722 572 709 583Q696 594 675 616Q673 618 671 618Q667 618 664 614Q662 611 663 608Q694 568 719 548Q744 529 772 529Q832 529 829 615L824 786Q823 892 880 892Q917 892 946 850Q976 809 994 731Q1011 653 1011 547Q1011 539 1022 534Q1033 530 1052 530Q1073 530 1078 532Q1082 535 1082 541Q1082 548 1081 566Q1080 584 1080 612L1079 835Q1079 891 1106 891Q1129 891 1168 846Q1169 845 1171 845Z M1205 870Q1205 854 1214 846Q1224 838 1239 838Q1252 838 1262 846Q1272 853 1284 868Q1302 889 1317 899Q1332 909 1357 909Q1408 909 1408 857Q1407 821 1383 796Q1359 772 1312 742Q1264 711 1241 687Q1218 663 1218 627Q1218 585 1257 556Q1296 528 1350 528Q1394 528 1424 543Q1455 558 1455 582Q1456 596 1446 604Q1437 613 1423 613Q1407 613 1396 606Q1386 599 1374 585Q1358 568 1346 560Q1334 552 1312 552Q1269 552 1269 590Q1269 621 1292 644Q1315 666 1361 697Q1411 730 1436 756Q1461 782 1461 819Q1461 847 1444 874Q1427 901 1396 918Q1364 935 1322 935Q1278 935 1242 916Q1206 897 1205 870Z M1986 846Q1989 846 1992 850Q1995 853 1994 855Q1962 896 1938 914Q1915 933 1887 933Q1828 933 1828 848L1830 676Q1830 570 1774 570Q1738 570 1708 610Q1679 650 1661 728Q1643 806 1642 915Q1642 923 1632 928Q1621 932 1601 932Q1575 932 1571 925Q1571 922 1572 899Q1574 876 1574 850L1579 314Q1581 263 1547 263Q1529 263 1498 278H1497Q1493 278 1490 273Q1488 268 1492 266L1632 199H1634Q1637 199 1641 202Q1645 205 1645 207L1643 730Q1663 633 1706 579Q1748 525 1807 525Q1898 525 1897 657L1896 835Q1895 890 1923 890Q1944 890 1982 847Q1983 846 1986 846Z"/></svg>';
1231
+
1232
+ var ASH_LOCKUP = '<a class="ash-lock" href="https://getrush.ai" aria-label="Rush by Phoenix">' +
1233
+ '<img class="ash-mark" src="/__brand/phoenix.webp" alt="" width="16" height="26">' +
1234
+ '<span class="ash-words">' + RUSH_WORDMARK + '<span class="ash-by">by Phoenix</span></span></a>';
1235
+
1236
+ // The Share sheet, for every viewer: open and close, the link without view-only
1237
+ // query parameters (a protected page keeps its key, k, so the link still opens),
1238
+ // and the copy control, which answers with a check for 1.4 s. The owner script
1239
+ // closes the sheet through root.__ashClose after a pick.
1240
+ var ASH_SHARE_JS = '(function(){' +
1241
+ 'var root = document.querySelector(".agents-share-bar");' +
1242
+ 'if(!root) return;' +
1243
+ 'var btn = root.querySelector("[data-ash-share]");' +
1244
+ 'var pop = root.querySelector("[data-ash-pop]");' +
1245
+ 'if(!btn || !pop) return;' +
1246
+ 'function link(){ var k = new URLSearchParams(location.search).get("k"); return location.origin + location.pathname + (k ? "?k=" + encodeURIComponent(k) : ""); }' +
1247
+ 'var url = pop.querySelector("[data-ash-url]");' +
1248
+ 'if(url) url.textContent = link().slice(location.protocol.length + 2);' +
1249
+ 'function isOpen(){ return pop.classList.contains("ash-open"); }' +
1250
+ 'function open(){ pop.classList.add("ash-open"); pop.setAttribute("aria-hidden","false"); btn.setAttribute("aria-expanded","true"); var f = pop.querySelector("[aria-checked=true]") || pop.querySelector("[data-ash-copy]"); if(f) f.focus(); }' +
1251
+ 'function close(back){ if(!isOpen()) return; pop.classList.remove("ash-open"); pop.setAttribute("aria-hidden","true"); btn.setAttribute("aria-expanded","false"); if(back) btn.focus(); }' +
1252
+ 'root.__ashClose = close;' +
1253
+ 'btn.addEventListener("click", function(e){ e.stopPropagation(); if(isOpen()) close(true); else open(); });' +
1254
+ 'pop.addEventListener("click", function(e){ e.stopPropagation(); });' +
1255
+ 'document.addEventListener("click", function(){ close(false); });' +
1256
+ 'document.addEventListener("keydown", function(e){ if(e.key==="Escape") close(true); });' +
1257
+ 'root.addEventListener("focusout", function(e){ if(e.relatedTarget && !root.contains(e.relatedTarget)) close(false); });' +
1258
+ 'var copy = pop.querySelector("[data-ash-copy]");' +
1259
+ 'if(!copy) return;' +
1260
+ 'var icon = copy.querySelector("[data-ash-copy-ic]");' +
1261
+ 'var idle = icon ? icon.innerHTML : "";' +
1262
+ 'var timer = 0;' +
1263
+ 'function fallback(text){ var t = document.createElement("textarea"); t.value = text; t.setAttribute("readonly", ""); t.style.position = "fixed"; t.style.opacity = "0"; document.body.appendChild(t); t.select(); var ok = false; try { ok = document.execCommand("copy"); } catch (e) {} t.remove(); return ok; }' +
1264
+ 'function show(ok){ clearTimeout(timer); copy.classList.toggle("ash-done", ok); copy.setAttribute("aria-label", ok ? "Copied" : "Copy failed"); copy.title = ok ? "Copied" : "Copy failed"; if(icon && ok) icon.innerHTML = ' + JSON.stringify(CHECK_ICON) + '; timer = setTimeout(function(){ copy.classList.remove("ash-done"); copy.setAttribute("aria-label","Copy link"); copy.title = "Copy link"; if(icon) icon.innerHTML = idle; }, 1400); }' +
1265
+ 'copy.addEventListener("click", function(){ var text = link(); if(navigator.clipboard && navigator.clipboard.writeText){ navigator.clipboard.writeText(text).then(function(){ show(true); }, function(){ show(fallback(text)); }); } else { show(fallback(text)); } });' +
1266
+ '})();';
1267
+
1268
+ // The owner-only script behind the visibility levels in the Share sheet. It
1269
+ // reads each level's icon and colour from the rendered rows (no embedded
1270
+ // config), then PATCHes the SAME in-place edit route the CLI uses, method PATCH,
1271
+ // JSON body { visibility }, with credentials:'include' so the viewer's __share
1272
+ // cookie / Phoenix identity rides. Optimistic: the Share button's icon flips and
1273
+ // "Saving…" shows beside it, then "Saved"; on failure the icon reverts and the
1274
+ // server's error text shows in a note under it (an org-on-public-inbox 400
1275
+ // surfaces verbatim). The share page sets no CSP, so inline JS is fine.
1276
+ var ASH_OWNER_JS = '(function(){' +
1277
+ 'var root = document.querySelector(".agents-share-bar");' +
1278
+ 'if(!root) return;' +
1279
+ 'var chip = root.querySelector("[data-ash-chip]");' +
1280
+ 'var menu = root.querySelector("[data-ash-menu]");' +
1281
+ 'var save = root.querySelector("[data-ash-save]");' +
1282
+ 'var note = root.querySelector("[data-ash-note]");' +
1283
+ 'if(!chip || !menu || !save || !note) return;' +
1284
+ 'var chipIc = chip.querySelector("[data-ash-cic]");' +
1285
+ 'var busy = false, saveTimer = 0, noteTimer = 0;' +
1286
+ 'function opts(){ return menu.querySelectorAll("[data-ash-opt]"); }' +
1287
+ 'function currentKey(){ var s = menu.querySelector("[aria-checked=true]"); return s ? s.getAttribute("data-ash-opt") : ""; }' +
1288
+ 'menu.addEventListener("keydown", function(e){ if(e.key!=="ArrowDown" && e.key!=="ArrowUp") return; e.preventDefault(); var a = Array.prototype.slice.call(opts()); var i = a.indexOf(document.activeElement); var n = a[(i + (e.key==="ArrowDown" ? 1 : a.length - 1)) % a.length]; if(n) n.focus(); });' +
1289
+ 'function draw(key){' +
1290
+ 'var sel = null, a = opts();' +
1291
+ 'for(var i=0;i<a.length;i++){ var on = a[i].getAttribute("data-ash-opt")===key; a[i].setAttribute("aria-checked", on ? "true" : "false"); if(on) sel = a[i]; }' +
1292
+ 'if(!sel) return;' +
1293
+ 'var ic = sel.querySelector(".ash-oic");' +
1294
+ 'if(chipIc && ic){ chipIc.innerHTML = ic.innerHTML; chipIc.style.color = ic.style.color; }' +
1295
+ 'var b = sel.querySelector("b");' +
1296
+ 'if(b) chip.setAttribute("title", b.textContent);' +
1297
+ '}' +
1298
+ 'function status(html, cls){ clearTimeout(saveTimer); save.innerHTML = html; save.className = "ash-save" + (html ? " ash-on" : "") + (cls ? " " + cls : ""); }' +
1299
+ 'function fail(msg){ status("", ""); clearTimeout(noteTimer); note.textContent = msg; note.classList.add("ash-on"); noteTimer = setTimeout(function(){ note.classList.remove("ash-on"); }, 5000); }' +
1300
+ 'function pick(key){' +
1301
+ 'if(root.__ashClose) root.__ashClose(true);' +
1302
+ 'var prev = currentKey();' +
1303
+ 'if(busy || !key || key===prev) return;' +
1304
+ 'busy = true;' +
1305
+ 'draw(key);' +
1306
+ 'note.classList.remove("ash-on");' +
1307
+ 'status("<span class=ash-spin></span>Saving…", "");' +
1308
+ 'fetch(location.pathname, { method:"PATCH", credentials:"include", headers:{"content-type":"application/json"}, body: JSON.stringify({ visibility: key }) })' +
1309
+ '.then(function(res){ return res.json().then(function(j){ return { ok: res.ok, status: res.status, body: j }; }, function(){ return { ok: res.ok, status: res.status, body: {} }; }); })' +
1310
+ '.then(function(r){' +
1311
+ 'busy = false;' +
1312
+ 'if(r.ok){ status(' + JSON.stringify(CHECK_ICON) + ' + "Saved", "ash-ok"); saveTimer = setTimeout(function(){ status("", ""); }, 1600); return; }' +
1313
+ 'draw(prev);' +
1314
+ 'fail((r.body && r.body.error) ? String(r.body.error) : ("Not saved: the server answered " + r.status + "."));' +
1315
+ '}, function(){ busy = false; draw(prev); fail("Not saved: the network request failed. Try again."); });' +
1316
+ '}' +
1317
+ 'var a = opts();' +
1318
+ 'for(var i=0;i<a.length;i++){ (function(el){ el.addEventListener("click", function(e){ e.stopPropagation(); pick(el.getAttribute("data-ash-opt")); }); })(a[i]); }' +
1319
+ '})();';
1320
+
1321
+ // Each level's semantic hue lives on its icon only; the chip itself is neutral
1322
+ // glass, so the bar never reads as an alert.
1281
1323
  function visibilityChip(visibility, orgDomain) {
1282
- if (visibility === 'me') return { icon: VIS_ICON.me, label: 'Only you', color: '#f59e0b' };
1283
- if (visibility === 'org') return { icon: VIS_ICON.org, label: 'Anyone at ' + escapeHtml(orgDomain || 'your organization'), color: '#5b9dff' };
1284
- if (visibility === 'private') return { icon: VIS_ICON.me, label: 'Protected (link + key)', color: '#f59e0b' };
1285
- if (visibility === 'unlisted') return { icon: VIS_ICON.unlisted, label: 'Unlisted', color: '#9aa0a6' };
1286
- return { icon: VIS_ICON.public, label: 'Public', color: '#30a46c' };
1324
+ if (visibility === 'me') return { icon: VIS_ICON.me, label: 'Only you', color: '#fbbf24' };
1325
+ if (visibility === 'org') return { icon: VIS_ICON.org, label: 'Anyone at ' + escapeHtml(orgDomain || 'your organization'), color: '#93c5fd' };
1326
+ if (visibility === 'private') return { icon: VIS_ICON.me, label: 'Protected (link + key)', color: '#fbbf24' };
1327
+ if (visibility === 'unlisted') return { icon: VIS_ICON.unlisted, label: 'Unlisted', color: '#a1a1aa' };
1328
+ return { icon: VIS_ICON.public, label: 'Public', color: '#34d399' };
1287
1329
  }
1288
1330
 
1289
1331
  // A deterministic hue (0-359) from the handle, so a given sharer always gets the
1290
- // same initials-circle colour without any stored palette.
1332
+ // same initials colour without any stored palette.
1291
1333
  function avatarHue(s) {
1292
1334
  var h = 0;
1293
1335
  for (var i = 0; i < s.length; i++) h = (h * 31 + s.charCodeAt(i)) % 360;
1294
1336
  return h;
1295
1337
  }
1296
1338
 
1297
- // The avatar slot is ALWAYS rendered: a coloured initials circle derived from the
1298
- // handle. When the object carries an avatar URL (a Gravatar the CLI stamps at
1299
- // publish, or any future hosted photo), a real img is layered on top; onerror
1300
- // removes it so the initials underneath show through when the photo 404s. There
1301
- // is no CSP on the share page, so the inline onerror fallback is honoured.
1339
+ // The avatar slot is ALWAYS rendered: a coloured initials tile derived from the
1340
+ // handle, rounded like the product marks (size x 0.225), never a circle. When the
1341
+ // object carries an avatar URL (a Gravatar the CLI stamps at publish, or any
1342
+ // future hosted photo), a real img is layered on top; onerror removes it so the
1343
+ // initials underneath show through when the photo 404s. There is no CSP on the
1344
+ // share page, so the inline onerror fallback is honoured.
1302
1345
  function renderAvatar(handle, avatarUrl) {
1303
1346
  var h = (handle || '').trim();
1304
1347
  var initial = escapeHtml((h.charAt(0) || '?').toUpperCase());
1305
- var bg = 'hsl(' + avatarHue(h) + ',48%,42%)';
1348
+ var bg = 'hsl(' + avatarHue(h) + ',38%,38%)';
1306
1349
  var inner = '<span class="ash-av-i">' + initial + '</span>';
1307
1350
  if (avatarUrl) {
1308
1351
  inner += '<img class="ash-av-img" src="' + escapeHtml(avatarUrl) + '" alt="" loading="lazy" ' +
@@ -1311,9 +1354,8 @@ function renderAvatar(handle, avatarUrl) {
1311
1354
  return '<span class="ash-avatar" style="background:' + bg + ' !important" aria-hidden="true">' + inner + '</span>';
1312
1355
  }
1313
1356
 
1314
- // A compact relative time for the "last updated" stat: "just now", "2h ago",
1315
- // "3d ago", or an ISO date once past ~30 days. Accepts a Date or a parseable
1316
- // string (R2's obj.uploaded is a Date).
1357
+ // A compact relative time: "just now", "2h ago", "3d ago", or an ISO date once
1358
+ // past ~30 days. Accepts a Date or a parseable string (R2's obj.uploaded is a Date).
1317
1359
  function relativeTime(when) {
1318
1360
  var then = when instanceof Date ? when.getTime() : Date.parse(when);
1319
1361
  if (!then || isNaN(then)) return '';
@@ -1327,146 +1369,228 @@ function relativeTime(when) {
1327
1369
  return new Date(then).toISOString().slice(0, 10);
1328
1370
  }
1329
1371
 
1330
- // The four visibility levels the owner can pick, in menu order. Descriptions
1331
- // mirror the approved mockup. org always appears — a public-inbox owner still
1332
- // sees it and lets the server's 400 drive the failure message (never a hidden
1333
- // client-side rule). orgDomain is the owner's own email domain when known.
1372
+ // The four visibility levels the owner can pick, in menu order. org always
1373
+ // appears: a public-inbox owner still sees it and the server's 400 drives the
1374
+ // failure message (never a hidden client-side rule). orgDomain is the owner's
1375
+ // own email domain when known.
1334
1376
  function visibilityLevels(orgDomain) {
1335
1377
  return [
1336
- { key: 'public', label: 'Public', color: '#30a46c', icon: VIS_ICON.public, desc: 'Anyone with the link · preview card · listed in your gallery' },
1337
- { key: 'unlisted', label: 'Unlisted', color: '#9aa0a6', icon: VIS_ICON.unlisted, desc: 'Anyone with the link · no card · hidden from your gallery' },
1338
- { key: 'me', label: 'Only you', color: '#f59e0b', icon: VIS_ICON.me, desc: 'Sign-in required · only your account can open it' },
1339
- { key: 'org', label: 'Anyone at ' + escapeHtml(orgDomain || 'your org'), color: '#5b9dff', icon: VIS_ICON.org, desc: 'Anyone signed in with a ' + escapeHtml(orgDomain || 'workspace-domain') + ' account' },
1378
+ { key: 'public', label: 'Public', color: '#34d399', icon: VIS_ICON.public, desc: 'Anyone with the link. Shows a preview card and appears in your gallery.' },
1379
+ { key: 'unlisted', label: 'Unlisted', color: '#a1a1aa', icon: VIS_ICON.unlisted, desc: 'Anyone with the link. No preview card, hidden from your gallery.' },
1380
+ { key: 'me', label: 'Only you', color: '#fbbf24', icon: VIS_ICON.me, desc: 'Opens only when you are signed in.' },
1381
+ { key: 'org', label: 'Anyone at ' + escapeHtml(orgDomain || 'your org'), color: '#93c5fd', icon: VIS_ICON.org, desc: 'Anyone signed in with a ' + escapeHtml(orgDomain || 'workspace-domain') + ' account.' },
1340
1382
  ];
1341
1383
  }
1342
1384
 
1385
+ // The owner's levels inside the Share sheet.
1343
1386
  function renderVisibilityMenu(current, orgDomain) {
1344
1387
  var rows = visibilityLevels(orgDomain).map(function (l) {
1345
- return '<button type="button" class="ash-opt' + (l.key === current ? ' ash-sel' : '') + '" data-ash-opt="' + l.key + '" role="menuitemradio" aria-checked="' + (l.key === current ? 'true' : 'false') + '">' +
1346
- '<span class="ash-opt-ic" style="color:' + l.color + '">' + l.icon + '</span>' +
1388
+ var on = l.key === current;
1389
+ return '<button type="button" class="ash-opt" data-ash-opt="' + l.key + '" role="menuitemradio" aria-checked="' + (on ? 'true' : 'false') + '">' +
1390
+ '<span class="ash-oic" style="color:' + l.color + '">' + l.icon + '</span>' +
1347
1391
  '<span class="ash-opt-t"><b>' + l.label + '</b><span>' + l.desc + '</span></span>' +
1348
- '<span class="ash-rd"></span></button>';
1392
+ '<span class="ash-chk">' + CHECK_ICON + '</span></button>';
1349
1393
  }).join('');
1350
- return '<div class="ash-menu" data-ash-menu role="menu" aria-hidden="true"><h4>Who can see this</h4>' + rows + '</div>';
1394
+ return '<div class="ash-menu" data-ash-menu role="menu" aria-label="Who can open this"><h4>Who can open this</h4>' + rows + '</div>';
1395
+ }
1396
+
1397
+ // The transcript status of a video share, in the bar: a pulsing dot while the
1398
+ // media job runs (the bar's only motion), a rose pill when it failed, and a
1399
+ // link to the transcript when it is ready. Retry stays on the page's status
1400
+ // panel, the one control that starts a job.
1401
+ function renderMediaPill(media) {
1402
+ if (!media) return '';
1403
+ if (media.state === 'ready') {
1404
+ return '<a class="ash-job ash-job-ready" href="#mv-transcript" aria-label="Transcript"><span class="ash-jdot"></span><span class="ash-jtxt">Transcript</span></a>';
1405
+ }
1406
+ if (media.state === 'failed') {
1407
+ return '<a class="ash-job ash-job-fail" href="#mv-status" title="The transcript could not be made" aria-label="No transcript"><span class="ash-jdot"></span><span class="ash-jtxt">No transcript</span></a>';
1408
+ }
1409
+ var doing = media.stage === 'summary' ? 'Summarizing' : media.stage === 'listing' ? 'Finalizing' : 'Transcribing';
1410
+ return '<span class="ash-job ash-job-run" role="status"><span class="ash-jdot"></span><span class="ash-jtxt">' + doing + '</span></span>';
1351
1411
  }
1352
1412
 
1353
1413
  function renderOwnerScript() {
1354
1414
  return '<script>' + ASH_OWNER_JS + '</script>';
1355
1415
  }
1356
1416
 
1357
- // opts: { isOwner, ownerDomain, views, uploaded } — all optional. isOwner turns
1358
- // the visibility chip into a live control (inline dropdown, Variation A) and
1359
- // injects the owner-only CSS/JS; views/uploaded render the right-side stats
1360
- // cluster. With no opts the bar is exactly today's static strip.
1417
+ // opts: { isOwner, ownerDomain, views, uploaded, title, media } — all optional.
1418
+ // isOwner makes the levels in the Share sheet a live control and injects the
1419
+ // owner-only CSS/JS. title overrides the stored label (a video's summary
1420
+ // title); media adds the transcript status.
1361
1421
  function renderAttributionBar(meta, handle, opts) {
1362
1422
  var o = opts || {};
1363
1423
  var cm = meta || {};
1364
1424
  var visibility = cm.visibility || 'public';
1365
1425
  var chip = visibilityChip(visibility, cm.org_domain);
1366
1426
  var avatar = renderAvatar(handle, cm.avatar);
1367
- var left = '';
1368
- // The handle is already the public URL namespace, so surfacing it leaks nothing new.
1369
- if (handle) left += 'Shared by <strong>' + escapeHtml(handle) + '</strong>';
1370
- if (cm.agent) left += (left ? '<span class="ash-dot">·</span>' : '') + 'Made with ' + escapeHtml(cm.agent);
1371
-
1372
- // Stats cluster (👁 <n> views · updated <rel>) — right side, left of the chip.
1373
- var stats = '';
1374
- var statBits = '';
1375
- if (o.views != null) {
1376
- statBits += STAT_EYE_ICON + '<b>' + escapeHtml(String(o.views)) + '</b> ' + (Number(o.views) === 1 ? 'view' : 'views');
1377
- }
1378
- if (o.uploaded) {
1379
- var rel = relativeTime(o.uploaded);
1380
- if (rel) statBits += (statBits ? '<span class="ash-statsep">·</span>' : '') + 'updated <b>' + escapeHtml(rel) + '</b>';
1427
+
1428
+ var title = o.title || cm.label || '';
1429
+ var titleHtml = title ? '<span class="ash-div" aria-hidden="true"></span><span class="ash-title" title="' + escapeHtml(title) + '">' + escapeHtml(title) + '</span>' : '';
1430
+
1431
+ // When: the object's upload time as "2h ago", else the stamped date.
1432
+ var when = o.uploaded ? relativeTime(o.uploaded) : '';
1433
+ var whenText = when ? 'Updated ' + when : (cm.date || '');
1434
+
1435
+ // The sharer, credited on the avatar. The handle is already the public URL
1436
+ // namespace, so surfacing it leaks nothing new.
1437
+ var who = '';
1438
+ if (handle) {
1439
+ var tip = 'Shared by <b class="ash-handle">' + escapeHtml(handle) + '</b>' + (whenText ? ' · ' + escapeHtml(whenText) : '');
1440
+ who = '<span class="ash-who" tabindex="0" aria-label="' + escapeHtml('Shared by ' + handle + (whenText ? ', ' + whenText : '')) + '">' + avatar + '<span class="ash-tip">' + tip + '</span></span>';
1381
1441
  }
1382
- if (statBits) stats = '<span class="ash-stats" title="page stats">' + statBits + '</span>';
1383
1442
 
1384
- // The visibility chip: an interactive control for the owner, a static cue for
1385
- // everyone else (unchanged from today).
1386
- var chipHtml;
1387
- var menu = '';
1388
- var script = '';
1443
+ // Share: the visibility icon on the button; the sheet holds the link, who can
1444
+ // open it (a live control for the owner, one line otherwise) and the stats.
1445
+ var cic = '<span class="ash-cic" data-ash-cic style="color:' + chip.color + '">' + chip.icon + '</span>';
1446
+ var levels, script = '', ownerBits = '', note = '';
1389
1447
  if (o.isOwner) {
1390
- chipHtml = '<span class="ash-chip ash-chip-own" data-ash-chip tabindex="0" role="button" aria-haspopup="menu" ' +
1391
- 'style="color:' + chip.color + ';border-color:' + chip.color + '66">' +
1392
- '<span data-ash-chip-ic>' + chip.icon + '</span><span data-ash-label>' + chip.label + '</span>' + CARET_ICON + '</span>';
1393
- menu = renderVisibilityMenu(visibility, o.ownerDomain);
1448
+ levels = renderVisibilityMenu(visibility, o.ownerDomain);
1394
1449
  script = renderOwnerScript();
1450
+ ownerBits = '<span class="ash-save" data-ash-save aria-live="polite"></span>';
1451
+ note = '<span class="ash-note" data-ash-note role="alert"></span>';
1395
1452
  } else {
1396
- chipHtml = '<span class="ash-chip" style="color:' + chip.color + ';border-color:' + chip.color + '66">' + chip.icon + '<span>' + chip.label + '</span></span>';
1453
+ levels = '<p class="ash-ro">' + cic.replace(' data-ash-cic', '') + '<span>' + chip.label + '</span></p>';
1397
1454
  }
1455
+ var stats = [];
1456
+ if (o.views != null) stats.push(STAT_EYE_ICON + '<b>' + escapeHtml(String(o.views)) + '</b>&nbsp;' + (Number(o.views) === 1 ? 'view' : 'views'));
1457
+ if (whenText) stats.push('<span title="' + escapeHtml(cm.date || '') + '">' + escapeHtml(whenText) + '</span>');
1458
+ var foot = stats.length ? '<p class="ash-foot">' + stats.join('<span class="ash-sep">·</span>') + '</p>' : '';
1459
+ var share = '<span class="ash-vis">' +
1460
+ '<button type="button" class="ash-share" data-ash-share' + (o.isOwner ? ' data-ash-chip' : '') + ' aria-label="Share" aria-haspopup="dialog" aria-expanded="false" title="' + chip.label + '">' + cic + '<span class="ash-sl" aria-hidden="true">Share</span></button>' +
1461
+ '<div class="ash-pop" data-ash-pop role="dialog" aria-label="Share" aria-hidden="true">' +
1462
+ '<div class="ash-link"><span class="ash-url" data-ash-url></span>' +
1463
+ '<button type="button" class="ash-copy" data-ash-copy aria-label="Copy link" title="Copy link"><span class="ash-cpi" data-ash-copy-ic>' + COPY_ICON + '</span></button></div>' +
1464
+ levels + foot +
1465
+ '</div>' + note + '</span>';
1398
1466
 
1399
- var right = stats + chipHtml;
1400
- if (cm.date) right += '<span class="ash-date">' + escapeHtml(cm.date) + '</span>';
1401
1467
  // The load-bearing background + base colour ride an INLINE style so the host
1402
1468
  // page's own CSS can never wash the bar out (inline beats a page stylesheet);
1403
1469
  // the rest is a namespaced style block with !important on every colour so a
1404
1470
  // broad page rule (span selector to black, etc.) cannot make the text vanish.
1405
- // FIXED, full-viewport-width chrome (not sticky-inside-body — that inherited the
1406
- // page's max-width/margins and rendered as a floating box). html padding-top
1407
- // pushes the whole page down by the bar's height; flex-wrap:nowrap + ellipsis on
1408
- // the left keeps the bar exactly one line tall so the push height stays correct.
1471
+ // FIXED, full-viewport-width chrome; html padding-top pushes the page down by
1472
+ // the bar's height, and nowrap + ellipsis on the title keep the bar one line.
1409
1473
  return '<div class="agents-share-bar" role="contentinfo" aria-label="Sharing details" ' +
1410
- 'style="background:#0b0b0c !important;color:#e8e8e8 !important">' +
1411
- '<style>' +
1412
- 'html{padding-top:38px !important}' +
1413
- // The review rail (collab.ts) is fixed to the viewport top on desktop; start
1414
- // it below this bar so its header and Close button stay reachable. Below
1415
- // 981px it is a bottom sheet and needs nothing.
1416
- '@media(min-width:981px){.collab-rail{top:38px !important;height:calc(100vh - 38px) !important}}' +
1417
- '.agents-share-bar{all:initial;position:fixed !important;top:0 !important;left:0 !important;right:0 !important;width:100% !important;z-index:2147483647 !important;box-sizing:border-box;display:flex !important;align-items:center;gap:12px;flex-wrap:nowrap;' +
1418
- 'padding:8px 16px !important;background:#0b0b0c !important;color:#e8e8e8 !important;border-bottom:1px solid #23232a !important;box-shadow:0 1px 3px rgba(0,0,0,.35) !important;' +
1419
- 'font:13px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,system-ui,sans-serif !important}' +
1420
- '.agents-share-bar *{box-sizing:border-box;font-family:inherit}' +
1421
- '.agents-share-bar .ash-avatar{flex:none;position:relative;width:26px;height:26px;border-radius:50% !important;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;color:#fff !important;font-weight:600;font-size:12px;line-height:1;box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)}' +
1422
- '.agents-share-bar .ash-av-i{color:#fff !important}' +
1423
- '.agents-share-bar .ash-av-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:50% !important}' +
1424
- '.agents-share-bar .ash-left{flex:1 1 auto;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#cfd3d9 !important}' +
1425
- '.agents-share-bar strong{color:#fff !important;font-weight:600}' +
1426
- '.agents-share-bar .ash-dot{opacity:.4;margin:0 4px}' +
1427
- '.agents-share-bar .ash-right{flex:none;display:flex;align-items:center;gap:12px}' +
1428
- '.agents-share-bar .ash-date{color:#9096a0 !important}' +
1429
- '.agents-share-bar .ash-chip{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;border:1px solid;font-weight:600;font-size:12px;white-space:nowrap}' +
1430
- '.agents-share-bar .ash-chip svg{flex:none;vertical-align:middle}' +
1431
- '.agents-share-bar .ash-stats{display:inline-flex;align-items:center;gap:5px;color:#9aa0a6 !important;font-size:12px;white-space:nowrap}' +
1432
- '.agents-share-bar .ash-stats b{color:#c9ced6 !important;font-weight:600}' +
1433
- '.agents-share-bar .ash-stats svg{flex:none;opacity:.85}' +
1434
- '.agents-share-bar .ash-statsep{opacity:.35;margin:0 3px}' +
1435
- (o.isOwner ? OWNER_BAR_CSS : '') +
1436
- '</style>' +
1437
- avatar +
1438
- '<span class="ash-left">' + left + '</span>' +
1439
- '<span class="ash-right">' + right + '</span>' +
1440
- menu +
1441
- (o.isOwner ? '<div class="ash-toast" data-ash-toast></div>' : '') +
1474
+ 'style="background:rgba(9,9,11,.92) !important;color:#e4e4e7 !important">' +
1475
+ '<style>' + ASH_FONT_CSS + ASH_BAR_CSS + (o.isOwner ? OWNER_BAR_CSS : '') + '</style>' +
1476
+ '<span class="ash-left">' + ASH_LOCKUP + titleHtml + '</span>' +
1477
+ '<span class="ash-right">' + renderMediaPill(o.media) + ownerBits + share + who + '</span>' +
1442
1478
  '</div>' +
1479
+ '<script>' + ASH_SHARE_JS + '</script>' +
1443
1480
  script;
1444
1481
  }
1445
1482
 
1446
- // Owner-only chip/menu/toast styling, added to the bar's <style> only when the
1447
- // viewer owns the namespace. Namespaced under .agents-share-bar with !important
1448
- // so the host page's CSS can't wash it out; z-index rides the bar's own stacking.
1483
+ // The bar's faces, served by this Worker (handleBarAsset). Bar-private family names
1484
+ // so a page's own Inter or Jost is never replaced.
1485
+ var ASH_FONT_CSS =
1486
+ '@font-face{font-family:"ash-inter";src:url(/__fonts/inter.woff2) format("woff2");font-weight:100 900;font-style:normal;font-display:swap}' +
1487
+ '@font-face{font-family:"ash-jost";src:url(/__fonts/jost.woff2) format("woff2");font-weight:100 900;font-style:normal;font-display:swap}';
1488
+
1489
+ var ASH_BAR_HEIGHT = 46;
1490
+
1491
+ var ASH_BAR_CSS =
1492
+ 'html{padding-top:' + ASH_BAR_HEIGHT + 'px !important}' +
1493
+ // The review rail (collab.ts) is fixed to the viewport top on desktop; start
1494
+ // it below this bar so its header and Close button stay reachable. Below
1495
+ // 981px it is a bottom sheet and needs nothing.
1496
+ '@media(min-width:981px){.collab-rail{top:' + ASH_BAR_HEIGHT + 'px !important;height:calc(100vh - ' + ASH_BAR_HEIGHT + 'px) !important}}' +
1497
+ '.agents-share-bar{all:initial;position:fixed !important;top:0 !important;left:0 !important;right:0 !important;width:100% !important;height:' + ASH_BAR_HEIGHT + 'px;z-index:2147483647 !important;box-sizing:border-box;display:flex !important;align-items:center;gap:12px;padding:0 12px 0 16px;' +
1498
+ '-webkit-backdrop-filter:blur(28px) saturate(1.3);backdrop-filter:blur(28px) saturate(1.3);border-bottom:1px solid rgba(255,255,255,.07) !important;box-shadow:0 10px 30px -18px rgba(0,0,0,.8);' +
1499
+ 'font:13px/1.2 "ash-inter",Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,system-ui,sans-serif !important;-webkit-font-smoothing:antialiased}' +
1500
+ '.agents-share-bar *{box-sizing:border-box;font-family:inherit;letter-spacing:normal;text-transform:none}' +
1501
+ '.agents-share-bar svg{flex:none;display:block}' +
1502
+ '.agents-share-bar button{margin:0;font:inherit;-webkit-appearance:none;appearance:none}' +
1503
+ '.agents-share-bar button:focus-visible,.agents-share-bar a:focus-visible,.agents-share-bar .ash-who:focus-visible{outline:2px solid #c9a962 !important;outline-offset:2px}' +
1504
+ '.agents-share-bar .ash-left{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:14px}' +
1505
+ '.agents-share-bar .ash-lock{flex:none;display:inline-flex;align-items:center;gap:8px;text-decoration:none !important}' +
1506
+ '.agents-share-bar .ash-mark{display:block;width:auto;height:26px;transition:transform .22s cubic-bezier(.22,1,.36,1)}' +
1507
+ '.agents-share-bar .ash-lock:hover .ash-mark{transform:translateY(-2px)}' +
1508
+ '.agents-share-bar .ash-words{display:flex;flex-direction:column;align-items:flex-start;gap:3px}' +
1509
+ '.agents-share-bar .ash-by{font:500 7px/1 "ash-jost",Jost,"ash-inter",sans-serif !important;letter-spacing:.32em !important;text-transform:uppercase !important;color:#e4e4e7 !important}' +
1510
+ '.agents-share-bar .ash-div{flex:none;width:1px;height:18px;background:rgba(255,255,255,.1) !important}' +
1511
+ '.agents-share-bar .ash-title{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#e4e4e7 !important;font:500 14px/1.2 "ash-jost",Jost,"ash-inter",system-ui,sans-serif !important}' +
1512
+ '.agents-share-bar .ash-right{flex:none;display:flex;align-items:center;gap:8px}' +
1513
+ '.agents-share-bar .ash-job{display:inline-flex;align-items:center;gap:7px;height:28px;padding:0 10px;border-radius:999px;font-size:12px;font-weight:500;white-space:nowrap;text-decoration:none !important;background:rgba(255,255,255,.06) !important;color:#e4e4e7 !important}' +
1514
+ '.agents-share-bar .ash-jdot{width:6px;height:6px;border-radius:50%;flex:none}' +
1515
+ '.agents-share-bar .ash-job-run .ash-jdot{background:#fbbf24;animation:ash-pulse 2s cubic-bezier(.4,0,.6,1) infinite}' +
1516
+ '.agents-share-bar .ash-job-ready .ash-jdot{background:#34d399}' +
1517
+ '.agents-share-bar a.ash-job:hover{background:rgba(255,255,255,.1) !important}' +
1518
+ '.agents-share-bar .ash-job-fail{background:rgba(244,63,94,.18) !important;color:#fecdd3 !important}' +
1519
+ '.agents-share-bar a.ash-job-fail:hover{background:rgba(244,63,94,.26) !important}' +
1520
+ '.agents-share-bar .ash-job-fail .ash-jdot{background:#fb7185}' +
1521
+ '@keyframes ash-pulse{0%,100%{opacity:1}50%{opacity:.4}}' +
1522
+ '.agents-share-bar .ash-vis{position:relative;display:inline-flex}' +
1523
+ '.agents-share-bar .ash-share{display:inline-flex;align-items:center;gap:7px;height:30px;padding:0 13px 0 11px;border-radius:999px;border:1px solid rgba(255,255,255,.1) !important;background:rgba(255,255,255,.05) !important;color:#fafafa !important;font-size:13px;font-weight:500;white-space:nowrap;cursor:pointer;transition:background .15s cubic-bezier(.22,1,.36,1),border-color .15s cubic-bezier(.22,1,.36,1)}' +
1524
+ '.agents-share-bar .ash-share:hover,.agents-share-bar .ash-share[aria-expanded="true"]{background:rgba(255,255,255,.09) !important;border-color:rgba(255,255,255,.16) !important}' +
1525
+ '.agents-share-bar .ash-cic{display:inline-flex}' +
1526
+ '.agents-share-bar .ash-pop{position:absolute !important;top:calc(100% + 8px);right:0;width:320px;max-width:calc(100vw - 20px);padding:6px;border-radius:16px;z-index:2147483647;text-align:left;' +
1527
+ 'background:rgba(18,18,21,.95) !important;-webkit-backdrop-filter:blur(28px) saturate(1.3);backdrop-filter:blur(28px) saturate(1.3);border:1px solid rgba(255,255,255,.1) !important;box-shadow:0 24px 60px -12px rgba(0,0,0,.75);' +
1528
+ 'visibility:hidden;opacity:0;transform:translateY(-4px);transition:opacity .18s cubic-bezier(.22,1,.36,1),transform .18s cubic-bezier(.22,1,.36,1),visibility 0s linear .18s}' +
1529
+ '.agents-share-bar .ash-pop.ash-open{visibility:visible;opacity:1;transform:none;transition-delay:0s}' +
1530
+ '.agents-share-bar .ash-link{display:flex;align-items:center;gap:6px;height:40px;margin:2px 2px 6px;padding:0 4px 0 12px;border-radius:12px;border:1px solid rgba(255,255,255,.08) !important;background:rgba(255,255,255,.03) !important}' +
1531
+ '.agents-share-bar .ash-url{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#a1a1aa !important;font-size:12px}' +
1532
+ '.agents-share-bar .ash-copy{flex:none;display:inline-flex;align-items:center;justify-content:center;width:32px;height:30px;border:0;border-radius:9px;cursor:pointer;background:transparent !important;color:#d4d4d8 !important;transition:background .15s cubic-bezier(.22,1,.36,1),color .15s cubic-bezier(.22,1,.36,1)}' +
1533
+ '.agents-share-bar .ash-copy:hover{background:rgba(255,255,255,.08) !important;color:#fafafa !important}' +
1534
+ '.agents-share-bar .ash-copy.ash-done{color:#6ee7b7 !important}' +
1535
+ '.agents-share-bar .ash-cpi{display:inline-flex}' +
1536
+ '.agents-share-bar .ash-ro{display:flex;align-items:center;gap:9px;margin:0;padding:6px 12px 8px;font-size:13px;color:#d4d4d8 !important}' +
1537
+ '.agents-share-bar .ash-foot{display:flex;align-items:center;gap:6px;margin:6px 0 0;padding:10px 12px 6px;border-top:1px solid rgba(255,255,255,.08) !important;font-size:12px;color:#a1a1aa !important}' +
1538
+ '.agents-share-bar .ash-foot b{color:#e4e4e7 !important;font-weight:500;font-variant-numeric:tabular-nums}' +
1539
+ '.agents-share-bar .ash-sep{opacity:.5}' +
1540
+ '.agents-share-bar .ash-who{position:relative;flex:none;display:inline-flex;border-radius:7px;cursor:default}' +
1541
+ '.agents-share-bar .ash-avatar{flex:none;position:relative;width:28px;height:28px;border-radius:6.3px !important;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;color:#fff !important;font-weight:600;font-size:12px;line-height:1;box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)}' +
1542
+ '.agents-share-bar .ash-av-i{color:#fff !important}' +
1543
+ '.agents-share-bar .ash-av-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:6.3px !important}' +
1544
+ '.agents-share-bar .ash-tip{position:absolute !important;top:calc(100% + 10px);right:0;white-space:nowrap;padding:7px 10px;border-radius:10px;font-size:12px;color:#d4d4d8 !important;background:rgba(18,18,21,.95) !important;border:1px solid rgba(255,255,255,.1) !important;opacity:0;visibility:hidden;transition:opacity .15s cubic-bezier(.22,1,.36,1)}' +
1545
+ '.agents-share-bar .ash-tip b{color:#fafafa !important;font-weight:600}' +
1546
+ '.agents-share-bar .ash-who:hover .ash-tip,.agents-share-bar .ash-who:focus-visible .ash-tip{opacity:1;visibility:visible}' +
1547
+ '@media(max-width:560px){.agents-share-bar{gap:8px;padding:0 10px}' +
1548
+ // On a phone the sheet spans the viewport under the bar, so it never clips
1549
+ // off the left edge the way a sheet right-aligned to Share would.
1550
+ '.agents-share-bar .ash-pop,.agents-share-bar .ash-note{position:fixed !important;top:' + (ASH_BAR_HEIGHT + 6) + 'px;left:10px;right:10px;width:auto;max-width:none}' +
1551
+ '.agents-share-bar .ash-div,.agents-share-bar .ash-title,.agents-share-bar .ash-jtxt,.agents-share-bar .ash-sl{display:none}' +
1552
+ '.agents-share-bar .ash-share{width:30px;padding:0;justify-content:center}.agents-share-bar .ash-job{padding:0 10px}}' +
1553
+ '@media(prefers-reduced-motion:reduce){.agents-share-bar *{animation:none !important;transition:none !important}}';
1554
+
1555
+ // Owner-only styling for the levels in the Share sheet and the save status,
1556
+ // added to the bar's <style> only when the viewer owns the namespace.
1449
1557
  var OWNER_BAR_CSS =
1450
- '.agents-share-bar .ash-chip-own{cursor:pointer;transition:background .12s}' +
1451
- '.agents-share-bar .ash-chip-own:hover{background:rgba(255,255,255,.06)}' +
1452
- '.agents-share-bar .ash-caret{opacity:.6;margin-left:1px;flex:none}' +
1453
- '.agents-share-bar .ash-menu{position:absolute !important;top:calc(100% + 6px);right:12px;min-width:286px;max-width:calc(100vw - 24px);background:#151517 !important;border:1px solid #2a2a30 !important;border-radius:12px;box-shadow:0 12px 34px rgba(0,0,0,.5);padding:6px;z-index:2147483647;display:none;text-align:left}' +
1454
- '.agents-share-bar .ash-menu.ash-open{display:block}' +
1455
- '.agents-share-bar .ash-menu h4{margin:6px 8px 8px;font-size:11px;text-transform:uppercase;letter-spacing:.07em;color:#7c8290 !important;font-weight:700}' +
1456
- '.agents-share-bar .ash-opt{display:flex;width:100%;text-align:left;align-items:flex-start;gap:10px;padding:8px;border:0;background:none;border-radius:8px;cursor:pointer;color:#e8e8e8 !important;font:inherit;font-size:13px}' +
1457
- '.agents-share-bar .ash-opt:hover{background:rgba(255,255,255,.05)}' +
1458
- '.agents-share-bar .ash-opt-ic{flex:none;width:26px;height:26px;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;background:rgba(255,255,255,.06)}' +
1459
- '.agents-share-bar .ash-opt-t{flex:1;min-width:0}' +
1460
- '.agents-share-bar .ash-opt-t b{display:block;font-size:13px;font-weight:600;color:#f0f1f3 !important}' +
1461
- '.agents-share-bar .ash-opt-t span{display:block;font-size:11.5px;color:#9096a0 !important;line-height:1.35;margin-top:1px;white-space:normal}' +
1462
- '.agents-share-bar .ash-rd{flex:none;width:16px;height:16px;border-radius:50%;border:2px solid #4a4f59;margin-top:3px}' +
1463
- '.agents-share-bar .ash-opt.ash-sel .ash-rd{border-color:#5b9dff;background:radial-gradient(circle at center,#5b9dff 0 5px,transparent 6px)}' +
1464
- '.agents-share-bar .ash-toast{position:absolute !important;top:calc(100% + 6px);right:12px;max-width:calc(100vw - 24px);background:#151517 !important;border:1px solid #2a2a30 !important;color:#e8e8e8 !important;font-size:12px;padding:7px 12px;border-radius:9px;display:none;align-items:center;gap:7px;z-index:2147483647}' +
1465
- '.agents-share-bar .ash-toast.ash-show{display:inline-flex}' +
1466
- '.agents-share-bar .ash-spin{width:12px;height:12px;border:2px solid rgba(255,255,255,.25);border-top-color:#fff;border-radius:50%;animation:ash-sp .6s linear infinite;display:inline-block;flex:none}' +
1558
+ '.agents-share-bar .ash-menu h4{margin:8px 10px 6px;font-size:10.5px;font-weight:500;line-height:1;letter-spacing:.12em;text-transform:uppercase;color:#71717a !important}' +
1559
+ '.agents-share-bar .ash-opt{display:grid;grid-template-columns:28px 1fr 16px;gap:10px;align-items:start;width:100%;padding:9px 10px;border:0;border-radius:11px;background:none !important;text-align:left;cursor:pointer;color:#e4e4e7 !important;transition:background .15s cubic-bezier(.22,1,.36,1)}' +
1560
+ '.agents-share-bar .ash-opt:hover,.agents-share-bar .ash-opt:focus-visible{background:rgba(255,255,255,.05) !important}' +
1561
+ '.agents-share-bar .ash-opt[aria-checked="true"]{background:rgba(255,255,255,.07) !important}' +
1562
+ '.agents-share-bar .ash-oic{width:28px;height:28px;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;background:rgba(255,255,255,.05) !important}' +
1563
+ '.agents-share-bar .ash-opt-t{min-width:0}' +
1564
+ '.agents-share-bar .ash-opt-t b{display:block;font-size:13px;font-weight:500;line-height:1.3;color:#fafafa !important}' +
1565
+ '.agents-share-bar .ash-opt-t span{display:block;margin-top:2px;font-size:11.5px;line-height:1.4;color:#a1a1aa !important;white-space:normal}' +
1566
+ '.agents-share-bar .ash-chk{margin-top:6px;color:#fafafa !important;opacity:0;transition:opacity .15s cubic-bezier(.22,1,.36,1)}' +
1567
+ '.agents-share-bar .ash-opt[aria-checked="true"] .ash-chk{opacity:1}' +
1568
+ '.agents-share-bar .ash-save{display:none;align-items:center;gap:6px;font-size:12px;color:#a1a1aa !important;white-space:nowrap}' +
1569
+ '.agents-share-bar .ash-save.ash-on{display:inline-flex}' +
1570
+ '.agents-share-bar .ash-save.ash-ok{color:#34d399 !important}' +
1571
+ '.agents-share-bar .ash-spin{width:11px;height:11px;border:1.5px solid rgba(255,255,255,.2);border-top-color:#fafafa;border-radius:50%;animation:ash-sp .7s linear infinite;display:inline-block;flex:none}' +
1467
1572
  '@keyframes ash-sp{to{transform:rotate(360deg)}}' +
1468
- '.agents-share-bar .ash-ok{color:#30a46c;font-weight:700}' +
1469
- '.agents-share-bar .ash-err{color:#ff6b6b;font-weight:700}';
1573
+ '.agents-share-bar .ash-note{position:absolute !important;top:calc(100% + 8px);right:0;width:max-content;max-width:min(320px,calc(100vw - 20px));padding:9px 12px;border-radius:12px;font-size:12px;line-height:1.4;white-space:normal;' +
1574
+ 'background:rgba(18,18,21,.95) !important;border:1px solid rgba(244,63,94,.35) !important;color:#fecdd3 !important;box-shadow:0 24px 60px -12px rgba(0,0,0,.75);display:none}' +
1575
+ '.agents-share-bar .ash-note.ash-on{display:block}';
1576
+
1577
+ // The bar's own files: its two faces and the Phoenix mark of the Rush by
1578
+ // Phoenix lockup, bundled into the Worker so a page never loads them elsewhere.
1579
+ var BAR_ASSETS = {
1580
+ '__fonts/inter.woff2': { body: barInter, type: 'font/woff2' },
1581
+ '__fonts/jost.woff2': { body: barJost, type: 'font/woff2' },
1582
+ '__brand/phoenix.webp': { body: barPhoenix, type: 'image/webp' },
1583
+ };
1584
+
1585
+ function handleBarAsset(request, path) {
1586
+ var asset = BAR_ASSETS[path];
1587
+ var headers = {
1588
+ 'content-type': asset.type,
1589
+ 'cache-control': 'public, max-age=604800',
1590
+ 'access-control-allow-origin': '*',
1591
+ };
1592
+ return new Response(request.method === 'HEAD' ? null : asset.body, { status: 200, headers: headers });
1593
+ }
1470
1594
 
1471
1595
  function injectAttributionBar(html, meta, handle, opts) {
1472
1596
  var bar = renderAttributionBar(meta, handle, opts);
@@ -1505,30 +1629,36 @@ function renderAssetViewer(pathname, kind, meta, handle, opts) {
1505
1629
  var rawUrl = escapeHtml(pathname + '?raw=1');
1506
1630
  var name = '';
1507
1631
  try { name = decodeURIComponent(pathname.split('/').pop() || 'file'); } catch (e) { name = pathname.split('/').pop() || 'file'; }
1508
- var bar = renderAttributionBar(meta, handle, opts);
1509
- if (kind === 'video' && opts && opts.media) {
1510
- var title = opts.media.summary && opts.media.summary.title ? opts.media.summary.title : name;
1632
+ var o = opts || {};
1633
+ var media = kind === 'video' ? o.media : null;
1634
+ var summaryTitle = media && media.summary && media.summary.title ? media.summary.title : '';
1635
+ var bar = renderAttributionBar(meta, handle, Object.assign({}, o, {
1636
+ title: summaryTitle || (meta && meta.label) || name,
1637
+ media: media,
1638
+ }));
1639
+ if (media) {
1640
+ var title = summaryTitle || name;
1511
1641
  return '<!doctype html><html><head><meta charset="utf-8">' +
1512
1642
  '<meta name="viewport" content="width=device-width,initial-scale=1">' +
1513
1643
  '<title>' + escapeHtml(title) + '</title>' +
1514
1644
  '<style>' + MEDIA_VIEWER_CSS + '</style></head><body>' + bar +
1515
1645
  renderMediaPanels(pathname, opts.media, { canRetry: !!opts.canRetry }) + '</body></html>';
1516
1646
  }
1517
- var media = '';
1518
- if (kind === 'image') media = '<img src="' + rawUrl + '" alt="' + escapeHtml(name) + '">';
1519
- else if (kind === 'video') media = '<video src="' + rawUrl + '" controls playsinline></video>';
1520
- else if (kind === 'audio') media = '<audio src="' + rawUrl + '" controls></audio>';
1521
- else if (kind === 'pdf') media = '<iframe src="' + rawUrl + '" title="' + escapeHtml(name) + '"></iframe>';
1647
+ var asset = '';
1648
+ if (kind === 'image') asset = '<img src="' + rawUrl + '" alt="' + escapeHtml(name) + '">';
1649
+ else if (kind === 'video') asset = '<video src="' + rawUrl + '" controls playsinline></video>';
1650
+ else if (kind === 'audio') asset = '<audio src="' + rawUrl + '" controls></audio>';
1651
+ else if (kind === 'pdf') asset = '<iframe src="' + rawUrl + '" title="' + escapeHtml(name) + '"></iframe>';
1522
1652
  return '<!doctype html><html><head><meta charset="utf-8">' +
1523
1653
  '<meta name="viewport" content="width=device-width,initial-scale=1">' +
1524
1654
  '<title>' + escapeHtml(name) + '</title>' +
1525
- '<style>html,body{margin:0;background:#0f0f11}' +
1526
- 'body{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box}' +
1655
+ '<style>html,body{margin:0;background:#09090b}' +
1656
+ 'body{min-height:calc(100vh - 46px);display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box}' +
1527
1657
  '.ashv{max-width:100%;max-height:calc(100vh - 90px);display:flex;align-items:center;justify-content:center}' +
1528
1658
  '.ashv img,.ashv video{max-width:100%;max-height:calc(100vh - 90px);display:block;border-radius:8px;box-shadow:0 10px 40px rgba(0,0,0,.5)}' +
1529
1659
  '.ashv audio{width:min(90vw,560px)}' +
1530
1660
  '.ashv iframe{width:min(94vw,1000px);height:calc(100vh - 90px);border:0;border-radius:8px;background:#fff}' +
1531
- '</style></head><body>' + bar + '<div class="ashv">' + media + '</div></body></html>';
1661
+ '</style></head><body>' + bar + '<div class="ashv">' + asset + '</div></body></html>';
1532
1662
  }
1533
1663
 
1534
1664
  // --- Hosted review threads (PHNX-3835) ---------------------------------------
@@ -1 +1 @@
1
- {"version":3,"file":"worker-template.js","sourceRoot":"","sources":["../../../src/lib/share/worker-template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,EAAE,2BAA2B,EAAE,MAAM,8BAA8B,CAAC;AAC3E,OAAO,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AAqGvE,IAAI,aAAuC,CAAC;AAC5C,IAAI,gBAAoC,CAAC;AAEzC,uFAAuF;AACvF,MAAM,UAAU,kBAAkB;IAChC,IAAI,aAAa;QAAE,OAAO,aAAa,CAAC;IACxC,MAAM,MAAM,GAAG,SAAS,CAAC;QACvB,KAAK,EAAE;YACL,QAAQ,EAAE,kBAAkB,EAAE;YAC9B,MAAM,EAAE,IAAI;YACZ,UAAU,EAAE,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YACnD,UAAU,EAAE,wBAAwB;SACrC;QACD,MAAM,EAAE,IAAI;QACZ,MAAM,EAAE,KAAK;QACb,QAAQ,EAAE,SAAS;QACnB,MAAM,EAAE,QAAQ;QAChB,KAAK,EAAE,KAAK;QACZ,MAAM,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgyB1B,CAAC;AACF,CAAC"}
@@ -0,0 +1,93 @@
1
+ Copyright 2020 The Jost Project Authors (https://github.com/indestructible-type/Jost) Jost-Italic[wght].ttf: Copyright 2020 The Jost Project Authors (https://github.com/indestructible-type/Jost)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
Binary file
package/fonts/README.md CHANGED
@@ -7,10 +7,19 @@ JetBrains Mono instead of hoping the viewing machine has them installed.
7
7
  |---|---|---|---|
8
8
  | `InterVariable.woff2` | Inter | latin variable (`wght`) | SIL OFL 1.1 — `Inter-OFL.txt` |
9
9
  | `JetBrainsMono-wght.woff2` | JetBrains Mono | latin variable (`wght`) | SIL OFL 1.1 — `JetBrainsMono-OFL.txt` |
10
+ | `Jost-wght.woff2` | Jost | latin variable (`wght`) | SIL OFL 1.1 — `Jost-OFL.txt` |
10
11
 
11
- Latin-only variable cuts from [fontsource](https://fontsource.org/) 5.2.8, same
12
- families as [rsms/inter](https://github.com/rsms/inter) and
13
- [JetBrains/JetBrainsMono](https://github.com/JetBrains/JetBrainsMono).
12
+ Latin-only variable cuts from [fontsource](https://fontsource.org/) (Inter and
13
+ JetBrains Mono 5.2.8, Jost 5.3.0), same families as
14
+ [rsms/inter](https://github.com/rsms/inter),
15
+ [JetBrains/JetBrainsMono](https://github.com/JetBrains/JetBrainsMono) and
16
+ [indestructible-type/Jost](https://github.com/indestructible-type/Jost).
14
17
 
15
18
  `src/lib/fonts.ts` inlines these when `DESIGN.md` names the family and does not
16
19
  supply a resolvable `fonts.files` path. A project face still wins.
20
+
21
+ The share Worker also bundles `InterVariable.woff2` and `Jost-wght.woff2` and
22
+ serves them at `/__fonts/inter.woff2` and `/__fonts/jost.woff2` for the share
23
+ bar and the video page, and `brand/phoenix-gold.webp` (the Phoenix of the Rush by
24
+ Phoenix lockup, from rush/web) at `/__brand/phoenix.webp`, so a shared page never
25
+ calls a third-party host.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phnx-labs/artifacts-cli",
3
- "version": "0.9.2",
3
+ "version": "0.9.4",
4
4
  "description": "Your coding agent writes Markdown; artifacts turns it into one polished HTML page you can read, mark up and share as a link.",
5
5
  "homepage": "https://artifacts-cli.sh",
6
6
  "repository": {
@@ -26,6 +26,7 @@
26
26
  "files": [
27
27
  "dist",
28
28
  "fonts",
29
+ "brand",
29
30
  "README.md",
30
31
  "CHANGELOG.md",
31
32
  "LICENSE"