@phnx-labs/artifacts-cli 0.18.0 → 0.18.2
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
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## 0.18.2 — 2026-11-12
|
|
6
|
+
|
|
7
|
+
- **A sign-in ticket never stays in a page's address.** The share Worker now answers every request for a page, its cover or its revision list that carries `phoenix_ticket` with a redirect to the same address without it, after spending the ticket, whether or not the reader was already signed in. Before, a reader who already had the share cookie, or sent a Phoenix bearer, was served the page with the ticket still in its URL, where browser history, the `Referer` header and the page's own scripts could read it; a stale ticket on a public page stayed there too. A reader already signed in keeps that identity, so a link carrying someone else's ticket cannot switch accounts (PHNX-4480).
|
|
8
|
+
|
|
9
|
+
## 0.18.1 — 2026-11-12
|
|
10
|
+
|
|
11
|
+
- **Change who can open a page from the page.** The Share sheet on a published page no longer shows the owner an `artifacts share visibility` command. It shows **Change who can open it**, which opens that page's Share panel in the Rush console (`cloud.getrush.ai/console/artifacts?share=<user>/<slug>`) in a new tab, where the owner picks Only you, everyone at their domain, anyone with the link, or public. Writes still take only the Phoenix bearer, never the page's `__share` cookie (PHNX-4398). The share server's visibility refusals now carry a `code` (`org_public_domain`, `org_domain_unverified`, `visibility_needs_publish`, `needs_phoenix_identity`) beside the message, so the console names the reason.
|
|
12
|
+
|
|
5
13
|
## 0.18.0 — 2026-11-07
|
|
6
14
|
|
|
7
15
|
- **Find a page by any word in it.** When a comment-enabled Worker registers an HTML page with Rush, it also sends the page's description and its visible text (scripts, styles and markup stripped, at most 65,536 characters), so the Rush console can find the page by a word in its body (PHNX-4616). A visibility or comment-policy change re-registers without them, and Rush keeps what it stored.
|
package/dist/lib/collab.d.ts
CHANGED
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
*/
|
|
21
21
|
/** The `<meta>` name carrying the canonical revision comment anchors are bound to. */
|
|
22
22
|
export declare const BODY_REVISION_META = "artifacts-body-revision";
|
|
23
|
+
/** The console page where an owner shares a page: `?share=<user>/<slug>` opens its Share panel. */
|
|
24
|
+
export declare const CONSOLE_ARTIFACTS_URL = "https://cloud.getrush.ai/console/artifacts";
|
|
23
25
|
/**
|
|
24
26
|
* The canonical artifact revision.
|
|
25
27
|
*
|
package/dist/lib/collab.js
CHANGED
|
@@ -21,6 +21,8 @@ import { createHash } from 'node:crypto';
|
|
|
21
21
|
*/
|
|
22
22
|
/** The `<meta>` name carrying the canonical revision comment anchors are bound to. */
|
|
23
23
|
export const BODY_REVISION_META = 'artifacts-body-revision';
|
|
24
|
+
/** The console page where an owner shares a page: `?share=<user>/<slug>` opens its Share panel. */
|
|
25
|
+
export const CONSOLE_ARTIFACTS_URL = 'https://cloud.getrush.ai/console/artifacts';
|
|
24
26
|
/**
|
|
25
27
|
* The canonical artifact revision.
|
|
26
28
|
*
|
|
@@ -228,7 +230,7 @@ export const COLLAB_SCRIPT = `<script>
|
|
|
228
230
|
const endpoint = (path, params) => path + '?' + new URLSearchParams(params).toString();
|
|
229
231
|
// A page cannot grant access: any page's script runs on this origin and could
|
|
230
232
|
// add itself. The owner adds a tagged teammate in the console's Share panel.
|
|
231
|
-
const CONSOLE_SHARE =
|
|
233
|
+
const CONSOLE_SHARE = ${JSON.stringify(CONSOLE_ARTIFACTS_URL)};
|
|
232
234
|
const ICONS = ${JSON.stringify(ICON_PATHS)};
|
|
233
235
|
const icon = (name, size) => '<svg width="' + size + '" height="' + size + '" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">' + ICONS[name] + '</svg>';
|
|
234
236
|
|
package/dist/lib/collab.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collab.js","sourceRoot":"","sources":["../../src/lib/collab.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAqxB7E,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { buildSync } from 'esbuild';
|
|
|
2
2
|
import { readFileSync } from 'node:fs';
|
|
3
3
|
import { dirname } from 'node:path';
|
|
4
4
|
import { fileURLToPath } from 'node:url';
|
|
5
|
-
import { BODY_REVISION_META, COLLAB_SCRIPT, normalizeSharePath } from '../collab.js';
|
|
5
|
+
import { BODY_REVISION_META, COLLAB_SCRIPT, CONSOLE_ARTIFACTS_URL, normalizeSharePath } from '../collab.js';
|
|
6
6
|
import { SELECTION_TOOLBAR_SCRIPT } from '../selection-toolbar.js';
|
|
7
7
|
import { READER_ANCHORS_SCRIPT } from '../reader-anchors.js';
|
|
8
8
|
import { SHARE_PUBLISH_WORKER_SOURCE } from './worker-publish-template.js';
|
|
@@ -518,14 +518,14 @@ export default {
|
|
|
518
518
|
// fresh viewer key, which only a full publish mints (PHNX-3654). Re-stamping
|
|
519
519
|
// visibility=private here alone would leave the page gated by a hash that
|
|
520
520
|
// never got stored — inaccessible to everyone. Fail loud.
|
|
521
|
-
if (visibility === 'private') return json({ error: 'visibility private must be set at publish time (share --protected)' }, 400);
|
|
521
|
+
if (visibility === 'private') return json({ error: 'visibility private must be set at publish time (share --protected)', code: 'visibility_needs_publish' }, 400);
|
|
522
522
|
if (visibility === 'me' || visibility === 'org') {
|
|
523
523
|
const phoenixBase = typeof env.PHOENIX_ID_BASE === 'string' ? env.PHOENIX_ID_BASE.replace(/\\/+$/, '') : '';
|
|
524
|
-
if (auth.kind !== 'phoenix' || !phoenixBase) return json({ error: 'visibility me/org requires Phoenix identity' }, 400);
|
|
524
|
+
if (auth.kind !== 'phoenix' || !phoenixBase) return json({ error: 'visibility me/org requires Phoenix identity', code: 'needs_phoenix_identity' }, 400);
|
|
525
525
|
if (visibility === 'org') {
|
|
526
526
|
const domain = emailDomain(auth.email);
|
|
527
|
-
if (!domain) return json({ error: 'org visibility requires a verified email domain' }, 400);
|
|
528
|
-
if (PUBLIC_INBOX_DOMAINS.indexOf(domain) !== -1) return json({ error: 'org visibility cannot use a public email domain', domain: domain }, 400);
|
|
527
|
+
if (!domain) return json({ error: 'org visibility requires a verified email domain', code: 'org_domain_unverified' }, 400);
|
|
528
|
+
if (PUBLIC_INBOX_DOMAINS.indexOf(domain) !== -1) return json({ error: 'org visibility cannot use a public email domain', code: 'org_public_domain', domain: domain }, 400);
|
|
529
529
|
}
|
|
530
530
|
}
|
|
531
531
|
metadata.visibility = visibility;
|
|
@@ -645,8 +645,8 @@ export default {
|
|
|
645
645
|
// never invoked ticket redemption, so a stale ticket must not 401 it.
|
|
646
646
|
if (canonical && isIdentityGated(canonicalVis)) {
|
|
647
647
|
const viewer = await resolveViewer(request, env, url);
|
|
648
|
-
if (viewer.redirect) return viewer.redirect;
|
|
649
648
|
if (viewer.error) return viewer.error;
|
|
649
|
+
if (viewer.redirect) return viewer.redirect;
|
|
650
650
|
const denied = await gateVisibility(url, env, canonical, viewer.identity || null);
|
|
651
651
|
if (denied) return denied;
|
|
652
652
|
}
|
|
@@ -684,7 +684,6 @@ export default {
|
|
|
684
684
|
const page = await env.BUCKET.get(pagePath);
|
|
685
685
|
if (!page) return new Response('not found', { status: 404, headers: { 'content-type': 'text/plain' } });
|
|
686
686
|
const pageVisibility = (page.customMetadata && page.customMetadata.visibility) || 'public';
|
|
687
|
-
if (viewer.error && isIdentityGated(pageVisibility)) return viewer.error;
|
|
688
687
|
const denied = await gateVisibility(url, env, page, viewer.identity || null);
|
|
689
688
|
if (denied) return isIdentityGated(pageVisibility) && denied.status !== 503 ? sealedCover(request, url, page, segments[0], pagePath) : denied;
|
|
690
689
|
// A token-gated page's cover is token-gated too (PHNX-3654): a crawler
|
|
@@ -840,6 +839,11 @@ export default {
|
|
|
840
839
|
// this refactor, so a stale ticket there must serve anonymously, not 401.
|
|
841
840
|
const visibility = (gateObj.customMetadata && gateObj.customMetadata.visibility) || 'public';
|
|
842
841
|
const viewer = await resolveViewer(request, env, url);
|
|
842
|
+
if (viewer.error && isIdentityGated(visibility)) {
|
|
843
|
+
viewer.error.headers.set('cache-control', 'private, no-store');
|
|
844
|
+
viewer.error.headers.set('X-Robots-Tag', 'noindex');
|
|
845
|
+
return viewer.error;
|
|
846
|
+
}
|
|
843
847
|
if (viewer.redirect) {
|
|
844
848
|
if (isIdentityGated(visibility)) {
|
|
845
849
|
viewer.redirect.headers.set('cache-control', 'private, no-store');
|
|
@@ -847,11 +851,6 @@ export default {
|
|
|
847
851
|
}
|
|
848
852
|
return viewer.redirect;
|
|
849
853
|
}
|
|
850
|
-
if (viewer.error && isIdentityGated(visibility)) {
|
|
851
|
-
viewer.error.headers.set('cache-control', 'private, no-store');
|
|
852
|
-
viewer.error.headers.set('X-Robots-Tag', 'noindex');
|
|
853
|
-
return viewer.error;
|
|
854
|
-
}
|
|
855
854
|
const identity = viewer.identity || null;
|
|
856
855
|
const denied = await gateVisibility(url, env, gateObj, identity);
|
|
857
856
|
if (denied) {
|
|
@@ -1340,6 +1339,7 @@ var VIS_ICON = {
|
|
|
1340
1339
|
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>';
|
|
1341
1340
|
var COMMENT_ICON = '<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.7"><path d="M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12z"/></svg>';
|
|
1342
1341
|
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>';
|
|
1342
|
+
var ASH_EXTERNAL_ICON = '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" aria-hidden="true"><path d="M7 17 17 7"/><path d="M8 7h9v9"/></svg>';
|
|
1343
1343
|
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>';
|
|
1344
1344
|
|
|
1345
1345
|
// "Rush" in Cormorant Upright 500, outlined, so the lockup needs no extra face.
|
|
@@ -1502,11 +1502,13 @@ function renderAttributionBar(meta, handle, opts) {
|
|
|
1502
1502
|
// Share: the visibility icon on the button; the sheet holds the link, who can
|
|
1503
1503
|
// open it and the stats. The page cannot change its own visibility: anything
|
|
1504
1504
|
// the bar could send, the page's own script could send too (PHNX-4398), so
|
|
1505
|
-
// the owner
|
|
1505
|
+
// the owner's link opens the page's Share panel in the console.
|
|
1506
1506
|
var cic = '<span class="ash-cic" style="color:' + chip.color + '">' + chip.icon + '</span>';
|
|
1507
1507
|
var levels = '<p class="ash-ro">' + cic + '<span>' + chip.label + '</span></p>';
|
|
1508
|
-
|
|
1509
|
-
|
|
1508
|
+
var key = '';
|
|
1509
|
+
try { key = o.link ? decodeURIComponent(new URL(o.link).pathname).replace(/^\\/+/, '') : ''; } catch (e) { key = ''; }
|
|
1510
|
+
if (o.isOwner && key) {
|
|
1511
|
+
levels += '<a class="ash-change" href="' + escapeHtml(CONSOLE_ARTIFACTS_URL + '?' + new URLSearchParams({ share: key }).toString()) + '" target="_blank" rel="noopener">Change who can open it' + ASH_EXTERNAL_ICON + '</a>';
|
|
1510
1512
|
}
|
|
1511
1513
|
var stats = [];
|
|
1512
1514
|
if (o.views != null) stats.push(STAT_EYE_ICON + '<b>' + escapeHtml(String(o.views)) + '</b> ' + (Number(o.views) === 1 ? 'view' : 'views'));
|
|
@@ -1708,11 +1710,13 @@ var ASH_RAIL_CSS =
|
|
|
1708
1710
|
|
|
1709
1711
|
var ASH_VISITOR_CSS = '.origin-inline,.creator-line,.print-provenance,.collab-provenance{display:none !important}';
|
|
1710
1712
|
|
|
1711
|
-
// Owner-only styling for the
|
|
1712
|
-
//
|
|
1713
|
+
// Owner-only styling for the Share sheet's link to the console, added to the
|
|
1714
|
+
// bar's <style> only when the viewer owns the namespace.
|
|
1713
1715
|
var OWNER_BAR_CSS =
|
|
1714
|
-
'.agents-share-bar .ash-
|
|
1715
|
-
'.agents-share-bar .ash-
|
|
1716
|
+
'.agents-share-bar .ash-change{display:inline-flex;align-items:center;gap:6px;margin:0 12px 8px;padding:6px 12px;border-radius:999px;font-size:12.5px;font-weight:500;color:#e4e4e7 !important;background:rgba(255,255,255,.06) !important;border:1px solid rgba(255,255,255,.1) !important;text-decoration:none !important;transition:background .15s cubic-bezier(.22,1,.36,1)}' +
|
|
1717
|
+
'.agents-share-bar .ash-change:hover{background:rgba(255,255,255,.1) !important;color:#fff !important}' +
|
|
1718
|
+
'.agents-share-bar .ash-change:focus-visible{outline:2px solid #c9a962;outline-offset:2px}' +
|
|
1719
|
+
'.agents-share-bar .ash-change svg{width:13px;height:13px;flex:none}';
|
|
1716
1720
|
|
|
1717
1721
|
// The bar's own files: its two faces and the Phoenix mark of the Rush by
|
|
1718
1722
|
// Phoenix lockup, bundled into the Worker so a page never loads them elsewhere.
|
|
@@ -2124,6 +2128,7 @@ var COLLAB_REVISION_SCAN_BYTES = 16 * 1024;
|
|
|
2124
2128
|
// without one (403 USER_AGENT_REQUIRED) before it reaches the API.
|
|
2125
2129
|
var COLLAB_USER_AGENT = 'artifacts-share-worker';
|
|
2126
2130
|
var BODY_REVISION_META = ${JSON.stringify(BODY_REVISION_META)};
|
|
2131
|
+
var CONSOLE_ARTIFACTS_URL = ${JSON.stringify(CONSOLE_ARTIFACTS_URL)};
|
|
2127
2132
|
// The viewer's own normalizer, so /u/plan, /u/plan/ and /u/plan/index.html are
|
|
2128
2133
|
// one share on both sides of the wire.
|
|
2129
2134
|
var normalizeSharePath = ${normalizeSharePath};
|
|
@@ -3330,32 +3335,40 @@ function phoenixIdentity(body) {
|
|
|
3330
3335
|
// via records HOW the reader proved who they are: 'bearer' (a Phoenix token,
|
|
3331
3336
|
// what the CLI and agents send) or 'cookie' (a browser). Only a bearer may act
|
|
3332
3337
|
// as an agent on review threads.
|
|
3338
|
+
//
|
|
3339
|
+
// On every route that resolves a viewer (the page, its cover and revision
|
|
3340
|
+
// list), a phoenix_ticket is spent and answered with a redirect to the URL
|
|
3341
|
+
// without it (PHNX-4480): a ticket left in a served page's URL reaches history,
|
|
3342
|
+
// Referer and the page's scripts. A reader already signed in keeps that
|
|
3343
|
+
// identity, so a ticket in a link cannot switch them to another account.
|
|
3344
|
+
// error is set only when no identity resulted; the caller decides whether the
|
|
3345
|
+
// page needs one, and otherwise follows the redirect.
|
|
3333
3346
|
async function resolveViewer(request, env, url) {
|
|
3334
3347
|
const claims = phoenixIdentity(await hooks.verifyPhoenixToken(request, env));
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
// Prefer the locally-verifiable self-signed ticket (PHNX-3370, no network), and
|
|
3341
|
-
// enforce single use by claiming its signature on first redemption — a captured
|
|
3342
|
-
// ticket replayed within its TTL finds it already spent. Fall back to the
|
|
3343
|
-
// external identity-server redeem for tickets it issued.
|
|
3344
|
-
let redeemed = await verifySelfTicket(ticket, env);
|
|
3345
|
-
if (redeemed) {
|
|
3346
|
-
const sig = ticket.slice(ticket.lastIndexOf('.') + 1);
|
|
3347
|
-
if (!(await consumeSelfTicket(env, sig))) redeemed = null;
|
|
3348
|
-
} else {
|
|
3349
|
-
redeemed = await redeemTicket(ticket, env);
|
|
3350
|
-
}
|
|
3351
|
-
if (!redeemed) return { error: json({ error: 'invalid ticket' }, 401) };
|
|
3352
|
-
const cookie = await signShareCookie(redeemed, env);
|
|
3353
|
-
if (!cookie) return { error: json({ error: 'phoenix login is not configured' }, 401) };
|
|
3348
|
+
const current = claims
|
|
3349
|
+
? { identity: claims, via: 'bearer' }
|
|
3350
|
+
: await identityFromCookie(request, env).then(function (id) { return id ? { identity: id, via: 'cookie' } : {}; });
|
|
3351
|
+
if (!url.searchParams.has('phoenix_ticket')) return current;
|
|
3352
|
+
const redeemed = await spendTicket(url.searchParams.get('phoenix_ticket'), env);
|
|
3354
3353
|
url.searchParams.delete('phoenix_ticket');
|
|
3355
|
-
const
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3354
|
+
const redirect = new Response(null, { status: 302, headers: { Location: url.toString() } });
|
|
3355
|
+
if (current.identity) return Object.assign({ redirect: redirect }, current);
|
|
3356
|
+
if (!redeemed) return { redirect: redirect, error: json({ error: 'invalid ticket' }, 401) };
|
|
3357
|
+
const cookie = await signShareCookie(redeemed, env);
|
|
3358
|
+
if (!cookie) return { redirect: redirect, error: json({ error: 'phoenix login is not configured' }, 401) };
|
|
3359
|
+
redirect.headers.append('Set-Cookie', cookie);
|
|
3360
|
+
return { redirect: redirect };
|
|
3361
|
+
}
|
|
3362
|
+
|
|
3363
|
+
// Prefer the locally-verifiable self-signed ticket (PHNX-3370, no network), and
|
|
3364
|
+
// enforce single use by claiming its signature on first redemption, so a
|
|
3365
|
+
// captured ticket replayed within its TTL finds it already spent. Fall back to
|
|
3366
|
+
// the external identity-server redeem for tickets it issued.
|
|
3367
|
+
async function spendTicket(ticket, env) {
|
|
3368
|
+
if (!ticket) return null;
|
|
3369
|
+
const self = await verifySelfTicket(ticket, env);
|
|
3370
|
+
if (!self) return redeemTicket(ticket, env);
|
|
3371
|
+
return (await consumeSelfTicket(env, ticket.slice(ticket.lastIndexOf('.') + 1))) ? self : null;
|
|
3359
3372
|
}
|
|
3360
3373
|
|
|
3361
3374
|
function extractHtmlMeta(html, field) {
|
|
@@ -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;
|
|
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,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAC5G,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,gFAAgF;AAChF,uEAAuE;AACvE,kFAAkF;AAClF,6EAA6E;AAC7E,iCAAiC;AACjC,gFAAgF;AAChF,qEAAqE;AACrE,iFAAiF;AACjF,+EAA+E;AAC/E,kFAAkF;AAClF,mEAAmE;AACnE,gFAAgF;AAChF,iFAAiF;AACjF,kF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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAk1B3B,CAAC;AACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phnx-labs/artifacts-cli",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.2",
|
|
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": {
|