@phnx-labs/artifacts-cli 0.13.2 → 0.13.3
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,15 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## 0.13.3 — 2026-10-20
|
|
6
|
+
|
|
7
|
+
- **A video whose listing step failed still shows its transcript.** The transcript and summary are
|
|
8
|
+
saved before the Worker adds a video's `pr`/`ticket` entries, so when only that last step fails the
|
|
9
|
+
page now shows the player, captions, summary and transcript rail instead of "The transcript could
|
|
10
|
+
not be made". The owner sees why the entries were not added, with Retry; `?media=status` still
|
|
11
|
+
reports `media=failed` at `stage: listing`. `artifacts share media --help` no longer says a video
|
|
12
|
+
under 20 MiB is transcribed only on demand: any video published with a Phoenix sign-in is.
|
|
13
|
+
|
|
5
14
|
## 0.13.2 — 2026-10-19
|
|
6
15
|
|
|
7
16
|
- **A page's label and preview title decode HTML character references.** A page titled
|
package/dist/commands/share.js
CHANGED
|
@@ -1086,19 +1086,19 @@ Examples:
|
|
|
1086
1086
|
$ artifacts share media retry octocat/standup.mp4
|
|
1087
1087
|
|
|
1088
1088
|
Notes:
|
|
1089
|
-
A video
|
|
1090
|
-
Deepgram and summarized through OpenRouter with zero data retention. The
|
|
1089
|
+
A video published with a Phoenix sign-in, in one request or in parts, is
|
|
1090
|
+
transcribed by Deepgram and summarized through OpenRouter with zero data retention. The
|
|
1091
1091
|
results sit beside it as <video>.transcript.json, <video>.vtt and
|
|
1092
1092
|
<video>.summary.json, readable by exactly who can watch the video, and the
|
|
1093
1093
|
video's page shows them. A completed job rewrites videos up to 512 MiB once
|
|
1094
1094
|
to add pr/ticket entries for what the recording mentions; a larger video
|
|
1095
1095
|
finishes media=ready without them and status says so, while a busy or
|
|
1096
|
-
interrupted rewrite is media=failed with an owner-visible reason
|
|
1097
|
-
'artifacts share list --meta
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
'artifacts share media retry'.
|
|
1096
|
+
interrupted rewrite is media=failed with an owner-visible reason; the page
|
|
1097
|
+
still shows its transcript and summary. 'artifacts share list --meta
|
|
1098
|
+
media=failed' finds interrupted jobs even when that final rewrite could not
|
|
1099
|
+
land. Recordings are sent to Deepgram and OpenRouter whatever their
|
|
1100
|
+
visibility. A video published with a WRITE_TOKEN, or before media keys were
|
|
1101
|
+
bound, is processed on demand with 'artifacts share media retry'.
|
|
1102
1102
|
`);
|
|
1103
1103
|
shareMediaCmd
|
|
1104
1104
|
.command('status <target>')
|
|
@@ -618,13 +618,15 @@ function noteStaleMedia(env, ctx, state) {
|
|
|
618
618
|
|
|
619
619
|
// What the video page renders: the state, plus the transcript and summary once
|
|
620
620
|
// ready. Files that vanished from under a ready job read as a failure. Only the
|
|
621
|
-
// owner sees why a job failed; the reason can quote an upstream response.
|
|
621
|
+
// owner sees why a job failed; the reason can quote an upstream response. A job
|
|
622
|
+
// that failed at the listing step already saved both files, so it renders ready.
|
|
622
623
|
async function mediaViewData(env, ctx, video, path, isOwner) {
|
|
623
624
|
const state = await mediaState(env, path, video);
|
|
624
625
|
if (state.media === 'none') return null;
|
|
625
626
|
noteStaleMedia(env, ctx, state);
|
|
626
|
-
const
|
|
627
|
-
|
|
627
|
+
const listingFailed = state.media === 'failed' && state.stage === 'listing';
|
|
628
|
+
const view = { state: listingFailed ? 'ready' : state.media, stage: state.stage, listingFailed: listingFailed, error: isOwner ? state.error : '', transcript: null, summary: null };
|
|
629
|
+
if (view.state !== 'ready') return view;
|
|
628
630
|
try {
|
|
629
631
|
view.transcript = await readMediaDerived(env, path, state.jobId, 'transcript');
|
|
630
632
|
view.summary = await readMediaDerived(env, path, state.jobId, 'summary');
|
|
@@ -802,6 +804,8 @@ function renderMediaPanels(pathname, media, opts) {
|
|
|
802
804
|
: '';
|
|
803
805
|
const player = '<video data-mv-video src="' + escapeHtml(pathname + '?raw=1') + '" controls playsinline preload="metadata">' + track + '</video>' + strip;
|
|
804
806
|
|
|
807
|
+
// The job's error is a lower-case clause; show it as a sentence.
|
|
808
|
+
const reason = media.error ? String(media.error).trim().replace(/[.\\s]+$/, '') : '';
|
|
805
809
|
let panels = '';
|
|
806
810
|
if (!ready) {
|
|
807
811
|
const failed = media.state === 'failed';
|
|
@@ -811,8 +815,6 @@ function renderMediaPanels(pathname, media, opts) {
|
|
|
811
815
|
const heading = failed
|
|
812
816
|
? 'The transcript could not be made'
|
|
813
817
|
: 'The transcript, chapters and summary are on the way';
|
|
814
|
-
// The job's error is a lower-case clause; show it as a sentence.
|
|
815
|
-
const reason = media.error ? String(media.error).trim().replace(/[.\\s]+$/, '') : '';
|
|
816
818
|
const detail = failed
|
|
817
819
|
? (reason ? escapeHtml(reason.charAt(0).toUpperCase() + reason.slice(1)) + '.' : 'Processing stopped before it finished.')
|
|
818
820
|
: 'They appear here when processing finishes. This page refreshes on its own.';
|
|
@@ -822,7 +824,14 @@ function renderMediaPanels(pathname, media, opts) {
|
|
|
822
824
|
(failed && opts.canRetry ? '<button type="button" class="mv-retry" data-mv-retry>Retry</button>' : '') +
|
|
823
825
|
'</section>';
|
|
824
826
|
} else {
|
|
825
|
-
panels =
|
|
827
|
+
panels = (media.listingFailed && opts.canRetry
|
|
828
|
+
? '<section class="mv-card mv-status mv-failed" id="mv-status" role="status">' +
|
|
829
|
+
'<span class="mv-badge"><span class="mv-dot" aria-hidden="true"></span>Not listed</span>' +
|
|
830
|
+
'<h2>PR and ticket entries were not added</h2><p data-mv-note>' +
|
|
831
|
+
(reason ? escapeHtml(reason.charAt(0).toUpperCase() + reason.slice(1)) + '.' : 'The listing step stopped before it finished.') +
|
|
832
|
+
'</p><button type="button" class="mv-retry" data-mv-retry>Retry</button></section>'
|
|
833
|
+
: '') +
|
|
834
|
+
'<section class="mv-card"><h1>' + escapeHtml(summary.title) + '</h1><p class="mv-summary">' + escapeHtml(summary.summary) + '</p></section>' +
|
|
826
835
|
(summary.chapters.length ? '<section class="mv-card"><h2>Chapters</h2><ol class="mv-list">' +
|
|
827
836
|
summary.chapters.map(function (c) { return '<li>' + seekLink(c.t) + '<span>' + escapeHtml(c.title) + '</span></li>'; }).join('') + '</ol></section>' : '') +
|
|
828
837
|
'<section class="mv-card"><h2>Action items</h2>' + (summary.action_items.length
|
|
@@ -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
|
|
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,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA02BnH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phnx-labs/artifacts-cli",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.3",
|
|
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": {
|