@phnx-labs/artifacts-cli 0.15.0 → 0.16.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/CHANGELOG.md +24 -0
- package/dist/commands/comments.d.ts +2 -0
- package/dist/commands/comments.js +4 -1
- package/dist/commands/comments.js.map +1 -1
- package/dist/commands/share.d.ts +2 -4
- package/dist/commands/share.js +11 -11
- package/dist/commands/share.js.map +1 -1
- package/dist/lib/collab.d.ts +3 -2
- package/dist/lib/collab.js +727 -535
- package/dist/lib/collab.js.map +1 -1
- package/dist/lib/selection-toolbar.d.ts +4 -4
- package/dist/lib/selection-toolbar.js +13 -22
- package/dist/lib/selection-toolbar.js.map +1 -1
- package/dist/lib/share/media-core.js +0 -25
- package/dist/lib/share/media-core.js.map +1 -1
- package/dist/lib/share/worker-media-template.js +9 -6
- package/dist/lib/share/worker-media-template.js.map +1 -1
- package/dist/lib/share/worker-template.js +69 -168
- package/dist/lib/share/worker-template.js.map +1 -1
- package/package.json +1 -1
|
@@ -12,7 +12,7 @@ import { QR_MARK_CLOSE, QR_MARK_OPEN } from './qr.js';
|
|
|
12
12
|
// The Cloudflare Worker that fronts the R2 share bucket.
|
|
13
13
|
//
|
|
14
14
|
// One tiny Worker does both sides:
|
|
15
|
-
// - PUT /<username>/<slug> — write-gated by authorizeWrite's
|
|
15
|
+
// - PUT /<username>/<slug> — write-gated by authorizeWrite's TWO principals
|
|
16
16
|
// (not a fallback chain — each is a distinct legitimate identity):
|
|
17
17
|
// 1. Static WRITE_TOKEN (BYO Cloudflare) — checked first when the presented
|
|
18
18
|
// bearer equals env.WRITE_TOKEN. owner = env.SHARE_NAMESPACE or the
|
|
@@ -29,12 +29,9 @@ import { QR_MARK_CLOSE, QR_MARK_OPEN } from './qr.js';
|
|
|
29
29
|
// same human re-authenticated under a new userId — in which case the
|
|
30
30
|
// claim and the old account's objects transfer instead of dead-ending
|
|
31
31
|
// (PHNX-3547).
|
|
32
|
-
//
|
|
33
|
-
//
|
|
34
|
-
//
|
|
35
|
-
// no bearer; SameSite=Lax blocks it cross-site, and the same namespace/
|
|
36
|
-
// owner checks confine it to the holder's own pages. Applies to PUT,
|
|
37
|
-
// PATCH, and DELETE alike, since all three share authorizeWrite.
|
|
32
|
+
// The __share cookie is never a write principal: published pages run on
|
|
33
|
+
// this origin, so a page's script would carry a visitor's cookie into a
|
|
34
|
+
// write on that visitor's own pages (PHNX-4398).
|
|
38
35
|
// A managed deployment sets PHOENIX_ID_BASE; BYO sets WRITE_TOKEN; the
|
|
39
36
|
// platform endpoint may set both. Fail loud (401) when none authenticates.
|
|
40
37
|
// Writes the body to R2 via the BUCKET binding, storing visibility
|
|
@@ -224,8 +221,8 @@ export default {
|
|
|
224
221
|
// POST /__ticket — mint a short-lived, single-navigation login ticket for the
|
|
225
222
|
// authenticated owner (PHNX-3370). The CLI (which holds the Phoenix bearer)
|
|
226
223
|
// calls this, then opens the owner's page with ?phoenix_ticket=<t> so the
|
|
227
|
-
// browser trades it for the __share cookie and the
|
|
228
|
-
//
|
|
224
|
+
// browser trades it for the __share cookie and the owner's view of the page
|
|
225
|
+
// (provenance, the commands that change it) shows. The ticket is SELF-signed with the Worker's own HMAC secret — no
|
|
229
226
|
// external ticket service — and carries the SAME identity authorizeWrite
|
|
230
227
|
// already proved, so it grants nothing the caller didn't already have.
|
|
231
228
|
if (request.method === 'POST' && firstSeg === '__ticket') {
|
|
@@ -835,8 +832,8 @@ export default {
|
|
|
835
832
|
}
|
|
836
833
|
}
|
|
837
834
|
// Resolve the viewer ONCE — needed both to gate me/org reads AND to decide
|
|
838
|
-
// whether THIS viewer OWNS this namespace (the
|
|
839
|
-
//
|
|
835
|
+
// whether THIS viewer OWNS this namespace (the owner's view of the bar
|
|
836
|
+
// below). A successful phoenix_ticket redemption (redirect: set the
|
|
840
837
|
// identity cookie, strip the ticket) is honored on ANY page. But a ticket
|
|
841
838
|
// FAILURE (expired/consumed/unreachable) must only gate a page that needs
|
|
842
839
|
// identity — a public/unlisted page never invoked ticket redemption before
|
|
@@ -876,10 +873,9 @@ export default {
|
|
|
876
873
|
tokenDenied.headers.set('X-Robots-Tag', 'noindex');
|
|
877
874
|
return tokenDenied;
|
|
878
875
|
}
|
|
879
|
-
// The owner of the namespace (their handle === the first path segment)
|
|
880
|
-
//
|
|
876
|
+
// The owner of the namespace (their handle === the first path segment) sees
|
|
877
|
+
// the commands that change the page; everyone else keeps the static cue.
|
|
881
878
|
const isOwner = !!identity && handleFromEmail(identity.email) === firstSeg;
|
|
882
|
-
const ownerDomain = identity ? emailDomain(identity.email) : '';
|
|
883
879
|
let range = null;
|
|
884
880
|
const requestedRange = request.method === 'GET' ? request.headers.get('range') : null;
|
|
885
881
|
if (requestedRange) range = parseByteRange(requestedRange, gateObj.size);
|
|
@@ -938,7 +934,6 @@ export default {
|
|
|
938
934
|
if (!range && ctype.indexOf('text/html') === -1 && !wantsRaw && kind && acceptsHtml(request) && visibility !== 'private') {
|
|
939
935
|
const viewerPage = renderAssetViewer(url.pathname, kind, gateObj.customMetadata || {}, firstSeg, {
|
|
940
936
|
isOwner,
|
|
941
|
-
ownerDomain,
|
|
942
937
|
link: shareLink(url),
|
|
943
938
|
media: kind === 'video' ? await mediaViewData(env, ctx, gateObj, path, isOwner) : null,
|
|
944
939
|
canRetry: isOwner && !!mediaConfig(env),
|
|
@@ -980,7 +975,6 @@ export default {
|
|
|
980
975
|
}
|
|
981
976
|
const withBar = injectAttributionBar(servedFooter(rawHtml), obj.customMetadata || {}, firstSeg, {
|
|
982
977
|
isOwner,
|
|
983
|
-
ownerDomain,
|
|
984
978
|
views,
|
|
985
979
|
uploaded: obj.uploaded,
|
|
986
980
|
link: shareLink(url),
|
|
@@ -1330,8 +1324,8 @@ function escapeHtml(s) {
|
|
|
1330
1324
|
// page and asset viewer, laid out like getrush.ai's nav. Left: the Rush by
|
|
1331
1325
|
// Phoenix lockup and the share's title. Right: a video's transcript status, one
|
|
1332
1326
|
// Share button, and the sharer's avatar. Share opens a sheet with the link and
|
|
1333
|
-
// a copy control, who can open the page (
|
|
1334
|
-
// view count. All values come from customMetadata and the serve path; nothing
|
|
1327
|
+
// a copy control, who can open the page (with the command that changes it, for
|
|
1328
|
+
// the owner), and the view count. All values come from customMetadata and the serve path; nothing
|
|
1335
1329
|
// new is stamped at publish time. Type and colour follow rush/DESIGN.md; the
|
|
1336
1330
|
// faces and the Phoenix mark are served from this origin, so a shared page
|
|
1337
1331
|
// never calls a third-party host.
|
|
@@ -1360,8 +1354,7 @@ var ASH_LOCKUP = '<a class="ash-lock" href="https://getrush.ai" aria-label="Rush
|
|
|
1360
1354
|
|
|
1361
1355
|
// The Share sheet, for every viewer: open and close, the link without view-only
|
|
1362
1356
|
// query parameters (a protected page keeps its key, k, so the link still opens),
|
|
1363
|
-
// and the copy control, which answers with a check for 1.4 s.
|
|
1364
|
-
// closes the sheet through root.__ashClose after a pick.
|
|
1357
|
+
// and the copy control, which answers with a check for 1.4 s.
|
|
1365
1358
|
var ASH_SHARE_JS = '(function(){' +
|
|
1366
1359
|
'var root = document.querySelector(".agents-share-bar");' +
|
|
1367
1360
|
'if(!root) return;' +
|
|
@@ -1372,9 +1365,8 @@ var ASH_SHARE_JS = '(function(){' +
|
|
|
1372
1365
|
'var url = pop.querySelector("[data-ash-url]");' +
|
|
1373
1366
|
'if(url) url.textContent = link().slice(location.protocol.length + 2);' +
|
|
1374
1367
|
'function isOpen(){ return pop.classList.contains("ash-open"); }' +
|
|
1375
|
-
'function open(){ pop.classList.add("ash-open"); pop.setAttribute("aria-hidden","false"); btn.setAttribute("aria-expanded","true"); var f = pop.querySelector("[
|
|
1368
|
+
'function open(){ pop.classList.add("ash-open"); pop.setAttribute("aria-hidden","false"); btn.setAttribute("aria-expanded","true"); var f = pop.querySelector("[data-ash-copy]"); if(f) f.focus(); }' +
|
|
1376
1369
|
'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(); }' +
|
|
1377
|
-
'root.__ashClose = close;' +
|
|
1378
1370
|
'btn.addEventListener("click", function(e){ e.stopPropagation(); if(isOpen()) close(true); else open(); });' +
|
|
1379
1371
|
'pop.addEventListener("click", function(e){ e.stopPropagation(); });' +
|
|
1380
1372
|
'document.addEventListener("click", function(){ close(false); });' +
|
|
@@ -1414,59 +1406,6 @@ var ASH_LEGACY_REVIEW_JS = '(function(){' +
|
|
|
1414
1406
|
'watch.observe(document.body, { childList: true });' +
|
|
1415
1407
|
'})();';
|
|
1416
1408
|
|
|
1417
|
-
// The owner-only script behind the visibility levels in the Share sheet. It
|
|
1418
|
-
// reads each level's icon and colour from the rendered rows (no embedded
|
|
1419
|
-
// config), then PATCHes the SAME in-place edit route the CLI uses, method PATCH,
|
|
1420
|
-
// JSON body { visibility }, with credentials:'include' so the viewer's __share
|
|
1421
|
-
// cookie / Phoenix identity rides. Optimistic: the Share button's icon flips and
|
|
1422
|
-
// "Saving…" shows beside it, then "Saved"; on failure the icon reverts and the
|
|
1423
|
-
// server's error text shows in a note under it (an org-on-public-inbox 400
|
|
1424
|
-
// surfaces verbatim). The share page sets no CSP, so inline JS is fine.
|
|
1425
|
-
var ASH_OWNER_JS = '(function(){' +
|
|
1426
|
-
'var root = document.querySelector(".agents-share-bar");' +
|
|
1427
|
-
'if(!root) return;' +
|
|
1428
|
-
'var chip = root.querySelector("[data-ash-chip]");' +
|
|
1429
|
-
'var menu = root.querySelector("[data-ash-menu]");' +
|
|
1430
|
-
'var save = root.querySelector("[data-ash-save]");' +
|
|
1431
|
-
'var note = root.querySelector("[data-ash-note]");' +
|
|
1432
|
-
'if(!chip || !menu || !save || !note) return;' +
|
|
1433
|
-
'var chipIc = chip.querySelector("[data-ash-cic]");' +
|
|
1434
|
-
'var busy = false, saveTimer = 0, noteTimer = 0;' +
|
|
1435
|
-
'function opts(){ return menu.querySelectorAll("[data-ash-opt]"); }' +
|
|
1436
|
-
'function currentKey(){ var s = menu.querySelector("[aria-checked=true]"); return s ? s.getAttribute("data-ash-opt") : ""; }' +
|
|
1437
|
-
'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(); });' +
|
|
1438
|
-
'function draw(key){' +
|
|
1439
|
-
'var sel = null, a = opts();' +
|
|
1440
|
-
'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]; }' +
|
|
1441
|
-
'if(!sel) return;' +
|
|
1442
|
-
'var ic = sel.querySelector(".ash-oic");' +
|
|
1443
|
-
'if(chipIc && ic){ chipIc.innerHTML = ic.innerHTML; chipIc.style.color = ic.style.color; }' +
|
|
1444
|
-
'var b = sel.querySelector("b");' +
|
|
1445
|
-
'if(b) chip.setAttribute("title", b.textContent);' +
|
|
1446
|
-
'}' +
|
|
1447
|
-
'function status(html, cls){ clearTimeout(saveTimer); save.innerHTML = html; save.className = "ash-save" + (html ? " ash-on" : "") + (cls ? " " + cls : ""); }' +
|
|
1448
|
-
'function fail(msg){ status("", ""); clearTimeout(noteTimer); note.textContent = msg; note.classList.add("ash-on"); noteTimer = setTimeout(function(){ note.classList.remove("ash-on"); }, 5000); }' +
|
|
1449
|
-
'function pick(key){' +
|
|
1450
|
-
'if(root.__ashClose) root.__ashClose(true);' +
|
|
1451
|
-
'var prev = currentKey();' +
|
|
1452
|
-
'if(busy || !key || key===prev) return;' +
|
|
1453
|
-
'busy = true;' +
|
|
1454
|
-
'draw(key);' +
|
|
1455
|
-
'note.classList.remove("ash-on");' +
|
|
1456
|
-
'status("<span class=ash-spin></span>Saving…", "");' +
|
|
1457
|
-
'fetch(location.pathname, { method:"PATCH", credentials:"include", headers:{"content-type":"application/json"}, body: JSON.stringify({ visibility: key }) })' +
|
|
1458
|
-
'.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: {} }; }); })' +
|
|
1459
|
-
'.then(function(r){' +
|
|
1460
|
-
'busy = false;' +
|
|
1461
|
-
'if(r.ok){ status(' + JSON.stringify(CHECK_ICON) + ' + "Saved", "ash-ok"); saveTimer = setTimeout(function(){ status("", ""); }, 1600); return; }' +
|
|
1462
|
-
'draw(prev);' +
|
|
1463
|
-
'fail((r.body && r.body.error) ? String(r.body.error) : ("Not saved: the server answered " + r.status + "."));' +
|
|
1464
|
-
'}, function(){ busy = false; draw(prev); fail("Not saved: the network request failed. Try again."); });' +
|
|
1465
|
-
'}' +
|
|
1466
|
-
'var a = opts();' +
|
|
1467
|
-
'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]); }' +
|
|
1468
|
-
'})();';
|
|
1469
|
-
|
|
1470
1409
|
// Each level's semantic hue lives on its icon only; the chip itself is neutral
|
|
1471
1410
|
// glass, so the bar never reads as an alert.
|
|
1472
1411
|
function visibilityChip(visibility, orgDomain) {
|
|
@@ -1518,35 +1457,10 @@ function relativeTime(when) {
|
|
|
1518
1457
|
return new Date(then).toISOString().slice(0, 10);
|
|
1519
1458
|
}
|
|
1520
1459
|
|
|
1521
|
-
// The four visibility levels the owner can pick, in menu order. org always
|
|
1522
|
-
// appears: a public-inbox owner still sees it and the server's 400 drives the
|
|
1523
|
-
// failure message (never a hidden client-side rule). orgDomain is the owner's
|
|
1524
|
-
// own email domain when known.
|
|
1525
|
-
function visibilityLevels(orgDomain) {
|
|
1526
|
-
return [
|
|
1527
|
-
{ key: 'public', label: 'Public', color: '#34d399', icon: VIS_ICON.public, desc: 'Anyone with the link. Shows a preview card and appears in your gallery.' },
|
|
1528
|
-
{ key: 'unlisted', label: 'Unlisted', color: '#a1a1aa', icon: VIS_ICON.unlisted, desc: 'Anyone with the link. No preview card, hidden from your gallery.' },
|
|
1529
|
-
{ key: 'me', label: 'Only you', color: '#fbbf24', icon: VIS_ICON.me, desc: 'Opens only when you are signed in.' },
|
|
1530
|
-
{ 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.' },
|
|
1531
|
-
];
|
|
1532
|
-
}
|
|
1533
|
-
|
|
1534
|
-
// The owner's levels inside the Share sheet.
|
|
1535
|
-
function renderVisibilityMenu(current, orgDomain) {
|
|
1536
|
-
var rows = visibilityLevels(orgDomain).map(function (l) {
|
|
1537
|
-
var on = l.key === current;
|
|
1538
|
-
return '<button type="button" class="ash-opt" data-ash-opt="' + l.key + '" role="menuitemradio" aria-checked="' + (on ? 'true' : 'false') + '">' +
|
|
1539
|
-
'<span class="ash-oic" style="color:' + l.color + '">' + l.icon + '</span>' +
|
|
1540
|
-
'<span class="ash-opt-t"><b>' + l.label + '</b><span>' + l.desc + '</span></span>' +
|
|
1541
|
-
'<span class="ash-chk">' + CHECK_ICON + '</span></button>';
|
|
1542
|
-
}).join('');
|
|
1543
|
-
return '<div class="ash-menu" data-ash-menu role="menu" aria-label="Who can open this"><h4>Who can open this</h4>' + rows + '</div>';
|
|
1544
|
-
}
|
|
1545
|
-
|
|
1546
1460
|
// The transcript status of a video share, in the bar: a pulsing dot while the
|
|
1547
1461
|
// media job runs (the bar's only motion), a rose pill when it failed, and a
|
|
1548
|
-
// link to the transcript when it is ready.
|
|
1549
|
-
// panel, the
|
|
1462
|
+
// link to the transcript when it is ready. The failed pill links to the page's
|
|
1463
|
+
// status panel, which names the retry command for the owner.
|
|
1550
1464
|
function renderMediaPill(media) {
|
|
1551
1465
|
if (!media) return '';
|
|
1552
1466
|
if (media.state === 'ready') {
|
|
@@ -1559,14 +1473,10 @@ function renderMediaPill(media) {
|
|
|
1559
1473
|
return '<span class="ash-job ash-job-run" role="status"><span class="ash-jdot"></span><span class="ash-jtxt">' + doing + '</span></span>';
|
|
1560
1474
|
}
|
|
1561
1475
|
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
// opts: { isOwner, ownerDomain, views, uploaded, title, media } — all optional.
|
|
1567
|
-
// isOwner makes the levels in the Share sheet a live control and injects the
|
|
1568
|
-
// owner-only CSS/JS. title overrides the stored label (a video's summary
|
|
1569
|
-
// title); media adds the transcript status.
|
|
1476
|
+
// opts: { isOwner, views, uploaded, title, media, link } — all optional.
|
|
1477
|
+
// isOwner adds the command that changes who can open the page and keeps the
|
|
1478
|
+
// author's provenance in view. title overrides the stored label (a video's
|
|
1479
|
+
// summary title); media adds the transcript status.
|
|
1570
1480
|
function renderAttributionBar(meta, handle, opts) {
|
|
1571
1481
|
var o = opts || {};
|
|
1572
1482
|
var cm = meta || {};
|
|
@@ -1590,16 +1500,13 @@ function renderAttributionBar(meta, handle, opts) {
|
|
|
1590
1500
|
}
|
|
1591
1501
|
|
|
1592
1502
|
// Share: the visibility icon on the button; the sheet holds the link, who can
|
|
1593
|
-
// open it
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
note = '<span class="ash-note" data-ash-note role="alert"></span>';
|
|
1601
|
-
} else {
|
|
1602
|
-
levels = '<p class="ash-ro">' + cic.replace(' data-ash-cic', '') + '<span>' + chip.label + '</span></p>';
|
|
1503
|
+
// open it and the stats. The page cannot change its own visibility: anything
|
|
1504
|
+
// the bar could send, the page's own script could send too (PHNX-4398), so
|
|
1505
|
+
// the owner gets the command that does it with their Phoenix login.
|
|
1506
|
+
var cic = '<span class="ash-cic" style="color:' + chip.color + '">' + chip.icon + '</span>';
|
|
1507
|
+
var levels = '<p class="ash-ro">' + cic + '<span>' + chip.label + '</span></p>';
|
|
1508
|
+
if (o.isOwner && o.link) {
|
|
1509
|
+
levels += '<p class="ash-cli">Change who can open it:<code>artifacts share visibility ' + escapeHtml(o.link.split('?')[0]) + ' <level></code>where <level> is public, unlisted, me or org.</p>';
|
|
1603
1510
|
}
|
|
1604
1511
|
var stats = [];
|
|
1605
1512
|
if (o.views != null) stats.push(STAT_EYE_ICON + '<b>' + escapeHtml(String(o.views)) + '</b> ' + (Number(o.views) === 1 ? 'view' : 'views'));
|
|
@@ -1608,12 +1515,12 @@ function renderAttributionBar(meta, handle, opts) {
|
|
|
1608
1515
|
var qr = o.link && o.link.length <= QR_LINK_MAX ? '<div class="ash-qr" role="img" aria-label="QR code that opens this link"><span class="ash-qrc">' + shareQrSvg(o.link) + '</span>' +
|
|
1609
1516
|
'<span class="ash-qrt"><b>Open on your phone</b><span>Point your camera at the code. It opens this link, with the same access.</span></span></div>' : '';
|
|
1610
1517
|
var share = '<span class="ash-vis">' +
|
|
1611
|
-
'<button type="button" class="ash-share" data-ash-share
|
|
1518
|
+
'<button type="button" class="ash-share" data-ash-share aria-label="Share" aria-haspopup="dialog" aria-expanded="false" title="' + chip.label + '">' + cic + '<span class="ash-sl" aria-hidden="true">Share</span></button>' +
|
|
1612
1519
|
'<div class="ash-pop" data-ash-pop role="dialog" aria-label="Share" aria-hidden="true">' +
|
|
1613
1520
|
'<div class="ash-link"><span class="ash-url" data-ash-url></span>' +
|
|
1614
1521
|
'<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>' +
|
|
1615
1522
|
qr + levels + foot +
|
|
1616
|
-
'</div
|
|
1523
|
+
'</div></span>';
|
|
1617
1524
|
|
|
1618
1525
|
// Comments: hidden until the page's review script (collab.ts) finds this
|
|
1619
1526
|
// button and adopts it as its launcher, so a page without review threads
|
|
@@ -1630,10 +1537,9 @@ function renderAttributionBar(meta, handle, opts) {
|
|
|
1630
1537
|
'style="background:rgba(9,9,11,.92) !important;color:#e4e4e7 !important">' +
|
|
1631
1538
|
'<style>' + ASH_FONT_CSS + ASH_BAR_CSS + ASH_RAIL_CSS + (o.isOwner ? OWNER_BAR_CSS : ASH_VISITOR_CSS) + '</style>' +
|
|
1632
1539
|
'<span class="ash-left">' + ASH_LOCKUP + titleHtml + '</span>' +
|
|
1633
|
-
'<span class="ash-right">' + renderMediaPill(o.media) +
|
|
1540
|
+
'<span class="ash-right">' + renderMediaPill(o.media) + comments + share + who + '</span>' +
|
|
1634
1541
|
'</div>' +
|
|
1635
|
-
'<script>' + ASH_SHARE_JS + ASH_LEGACY_REVIEW_JS + '</script>'
|
|
1636
|
-
script;
|
|
1542
|
+
'<script>' + ASH_SHARE_JS + ASH_LEGACY_REVIEW_JS + '</script>';
|
|
1637
1543
|
}
|
|
1638
1544
|
|
|
1639
1545
|
// The bar's faces, served by this Worker (handleBarAsset). Bar-private family names
|
|
@@ -1716,7 +1622,7 @@ var ASH_BAR_CSS =
|
|
|
1716
1622
|
'@media(max-width:560px){.agents-share-bar{gap:8px;padding:0 10px}' +
|
|
1717
1623
|
// On a phone the sheet spans the viewport under the bar, so it never clips
|
|
1718
1624
|
// off the left edge the way a sheet right-aligned to Share would.
|
|
1719
|
-
'.agents-share-bar .ash-pop
|
|
1625
|
+
'.agents-share-bar .ash-pop{position:fixed !important;top:' + (ASH_BAR_HEIGHT + 6) + 'px;left:10px;right:10px;width:auto;max-width:none}' +
|
|
1720
1626
|
'.agents-share-bar .ash-div,.agents-share-bar .ash-title,.agents-share-bar .ash-jtxt,.agents-share-bar .ash-sl{display:none}' +
|
|
1721
1627
|
'.agents-share-bar .ash-share{width:30px;padding:0;justify-content:center}.agents-share-bar .ash-job{padding:0 10px}}' +
|
|
1722
1628
|
'@media(prefers-reduced-motion:reduce){.agents-share-bar *{animation:none !important;transition:none !important}}';
|
|
@@ -1784,35 +1690,27 @@ var ASH_RAIL_CSS =
|
|
|
1784
1690
|
ASH_RAIL + ' .collab-error{font:400 12px/1.4 ' + ASH_RAIL_FONT + ';color:#ff6b6b}' +
|
|
1785
1691
|
ASH_RAIL + ' .collab-provenance{padding:10px 16px;border-top:1px solid rgba(255,255,255,.07);color:#52525b;font:11px/1.5 ' + ASH_RAIL_FONT + '}' +
|
|
1786
1692
|
'@media(max-width:980px){' + ASH_RAIL + '{border-left:0;border-top:1px solid rgba(255,255,255,.1)}}' +
|
|
1787
|
-
// The
|
|
1788
|
-
|
|
1789
|
-
'.
|
|
1790
|
-
'.
|
|
1693
|
+
// The list of threads today's pages make: each thread is one row button.
|
|
1694
|
+
ASH_RAIL + ' .collab-close{width:28px;padding:0;border-radius:999px}' +
|
|
1695
|
+
ASH_RAIL + ' .collab-item{display:grid;gap:6px;height:auto;padding:10px 12px;border-radius:10px;font:400 13px/1.45 ' + ASH_RAIL_FONT + ';color:#e4e4e7;text-align:left}' +
|
|
1696
|
+
ASH_RAIL + ' .collab-item:hover,' + ASH_RAIL + ' .collab-item.is-selected{background:rgba(255,255,255,.05);color:#fafafa}' +
|
|
1697
|
+
ASH_RAIL + ' .collab-item .collab-quote{color:#a1a1aa}' +
|
|
1698
|
+
ASH_RAIL + ' .collab-dim{color:#71717a}' +
|
|
1699
|
+
// The marked words in the page: the same gold, lighter for a highlight with
|
|
1700
|
+
// no comment, a dash once resolved.
|
|
1701
|
+
'.agents-share-bar ~ * .collab-mark{background:rgba(201,169,98,.24);border-bottom:2px solid rgba(201,169,98,.9);color:inherit}' +
|
|
1702
|
+
'.agents-share-bar ~ * .collab-mark.is-highlight,.agents-share-bar ~ * .collab-mark.is-draft{background:rgba(201,169,98,.14)}' +
|
|
1703
|
+
'.agents-share-bar ~ * .collab-mark:hover,.agents-share-bar ~ * .collab-mark.is-selected{background:rgba(201,169,98,.4)}' +
|
|
1704
|
+
'.agents-share-bar ~ * .collab-mark.is-resolved{background:transparent;border-bottom:1px dashed rgba(201,169,98,.6)}' +
|
|
1791
1705
|
'.agents-share-bar ~ * .collab-mark:focus-visible{outline:2px solid #c9a962}';
|
|
1792
1706
|
|
|
1793
1707
|
var ASH_VISITOR_CSS = '.origin-inline,.creator-line,.print-provenance,.collab-provenance{display:none !important}';
|
|
1794
1708
|
|
|
1795
|
-
// Owner-only styling for the
|
|
1796
|
-
//
|
|
1709
|
+
// Owner-only styling for the visibility command in the Share sheet, added to
|
|
1710
|
+
// the bar's <style> only when the viewer owns the namespace.
|
|
1797
1711
|
var OWNER_BAR_CSS =
|
|
1798
|
-
'.agents-share-bar .ash-
|
|
1799
|
-
'.agents-share-bar .ash-
|
|
1800
|
-
'.agents-share-bar .ash-opt:hover,.agents-share-bar .ash-opt:focus-visible{background:rgba(255,255,255,.05) !important}' +
|
|
1801
|
-
'.agents-share-bar .ash-opt[aria-checked="true"]{background:rgba(255,255,255,.07) !important}' +
|
|
1802
|
-
'.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}' +
|
|
1803
|
-
'.agents-share-bar .ash-opt-t{min-width:0}' +
|
|
1804
|
-
'.agents-share-bar .ash-opt-t b{display:block;font-size:13px;font-weight:500;line-height:1.3;color:#fafafa !important}' +
|
|
1805
|
-
'.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}' +
|
|
1806
|
-
'.agents-share-bar .ash-chk{margin-top:6px;color:#fafafa !important;opacity:0;transition:opacity .15s cubic-bezier(.22,1,.36,1)}' +
|
|
1807
|
-
'.agents-share-bar .ash-opt[aria-checked="true"] .ash-chk{opacity:1}' +
|
|
1808
|
-
'.agents-share-bar .ash-save{display:none;align-items:center;gap:6px;font-size:12px;color:#a1a1aa !important;white-space:nowrap}' +
|
|
1809
|
-
'.agents-share-bar .ash-save.ash-on{display:inline-flex}' +
|
|
1810
|
-
'.agents-share-bar .ash-save.ash-ok{color:#34d399 !important}' +
|
|
1811
|
-
'.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}' +
|
|
1812
|
-
'@keyframes ash-sp{to{transform:rotate(360deg)}}' +
|
|
1813
|
-
'.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;' +
|
|
1814
|
-
'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}' +
|
|
1815
|
-
'.agents-share-bar .ash-note.ash-on{display:block}';
|
|
1712
|
+
'.agents-share-bar .ash-cli{margin:0;padding:0 12px 8px;font-size:12px;line-height:1.4;color:#a1a1aa !important;white-space:normal}' +
|
|
1713
|
+
'.agents-share-bar .ash-cli code{display:block;margin:4px 0;padding:6px 8px;border-radius:8px;background:rgba(255,255,255,.05) !important;color:#e4e4e7 !important;font:11.5px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace;white-space:normal;overflow-wrap:anywhere;user-select:all}';
|
|
1816
1714
|
|
|
1817
1715
|
// The bar's own files: its two faces and the Phoenix mark of the Rush by
|
|
1818
1716
|
// Phoenix lockup, bundled into the Worker so a page never loads them elsewhere.
|
|
@@ -2593,6 +2491,18 @@ async function handleCollab(request, env, url, path) {
|
|
|
2593
2491
|
headers.set('x-collab-actor-kind', agent ? 'agent' : 'human');
|
|
2594
2492
|
if (agent) headers.set('x-collab-agent', agent);
|
|
2595
2493
|
}
|
|
2494
|
+
// Rush offers an Only-me or Company page's own people to tag, and only them: the
|
|
2495
|
+
// list stays here, so it travels with each call that reads it.
|
|
2496
|
+
const visibility = meta.visibility || 'public';
|
|
2497
|
+
if ((route.op === 'members' || (route.fields || []).includes('mentions')) && (visibility === 'me' || visibility === 'org')) {
|
|
2498
|
+
let people;
|
|
2499
|
+
try {
|
|
2500
|
+
people = await readPeople(env, key);
|
|
2501
|
+
} catch (error) {
|
|
2502
|
+
return collabJson({ error: 'access_check_unavailable' }, 503);
|
|
2503
|
+
}
|
|
2504
|
+
if (people.length) headers.set('x-collab-people', people.join(','));
|
|
2505
|
+
}
|
|
2596
2506
|
let body;
|
|
2597
2507
|
if (route.op === 'write') {
|
|
2598
2508
|
// Only the fields Rush's route takes; the viewer's share key and anything
|
|
@@ -3461,27 +3371,18 @@ async function defaultVerifyPhoenixToken(request, env) {
|
|
|
3461
3371
|
return phoenixIdentity(body);
|
|
3462
3372
|
}
|
|
3463
3373
|
|
|
3464
|
-
// Write principals
|
|
3465
|
-
//
|
|
3466
|
-
//
|
|
3467
|
-
//
|
|
3468
|
-
// and no bearer — the browser has the identity cookie, not a token. It cannot be
|
|
3469
|
-
// abused cross-site: the cookie is SameSite=Lax, which blocks it from riding a
|
|
3470
|
-
// cross-origin non-GET (CSRF), and namespace/owner enforcement on PUT/PATCH/
|
|
3471
|
-
// DELETE still confines a cookie holder to their own pages. 401 when none apply.
|
|
3374
|
+
// Write principals: WRITE_TOKEN equality (admin/BYO), then a Phoenix bearer,
|
|
3375
|
+
// and nothing else, as on the people routes (peopleCaller). Published pages run
|
|
3376
|
+
// on this origin, so the browser's __share cookie would let any page's script
|
|
3377
|
+
// republish, delete or change the visibility of its visitor's pages. 401 otherwise.
|
|
3472
3378
|
async function authorizeWrite(request, env) {
|
|
3473
3379
|
const presented = (request.headers.get('authorization') || '').replace(/^Bearer\\s+/i, '');
|
|
3474
|
-
if (presented) {
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
}
|
|
3478
|
-
const claims = phoenixIdentity(await hooks.verifyPhoenixToken(request, env));
|
|
3479
|
-
if (claims) return { kind: 'phoenix', owner: claims.userId, email: claims.email, name: claims.name || '' };
|
|
3480
|
-
}
|
|
3481
|
-
const cookieId = await identityFromCookie(request, env);
|
|
3482
|
-
if (cookieId && cookieId.userId) {
|
|
3483
|
-
return { kind: 'phoenix', owner: cookieId.userId, email: typeof cookieId.email === 'string' ? cookieId.email : '', name: cookieId.name || '' };
|
|
3380
|
+
if (!presented) return { error: json({ error: 'unauthorized' }, 401) };
|
|
3381
|
+
if (env.WRITE_TOKEN && safeEqual(presented, env.WRITE_TOKEN)) {
|
|
3382
|
+
return { kind: 'byo', owner: env.SHARE_NAMESPACE || 'byo' };
|
|
3484
3383
|
}
|
|
3384
|
+
const claims = phoenixIdentity(await hooks.verifyPhoenixToken(request, env));
|
|
3385
|
+
if (claims) return { kind: 'phoenix', owner: claims.userId, email: claims.email, name: claims.name || '' };
|
|
3485
3386
|
return { error: json({ error: 'unauthorized' }, 401) };
|
|
3486
3387
|
}
|
|
3487
3388
|
`;
|
|
@@ -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,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACrF,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,2BAA2B,EAAE,MAAM,8BAA8B,CAAC;AAC3E,OAAO,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEtD,yDAAyD;AACzD,EAAE;AACF,mCAAmC;AACnC,
|
|
1
|
+
{"version":3,"file":"worker-template.js","sourceRoot":"","sources":["../../../src/lib/share/worker-template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,E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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA00B3B,CAAC;AACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phnx-labs/artifacts-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
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": {
|