@arbidocs/blocks 0.5.190 → 0.5.192

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.
Files changed (113) hide show
  1. package/bin/arbidocs-mix-take.mjs +34 -0
  2. package/bin/arbidocs-record-take.mjs +77 -11
  3. package/bin/arbidocs-voice-take.mjs +32 -0
  4. package/dist/{ConnectedNativeDocxComparison-XE5NMZMY.cjs → ConnectedNativeDocxComparison-PPVXDQY3.cjs} +7 -7
  5. package/dist/{ConnectedNativeDocxComparison-XE5NMZMY.cjs.map → ConnectedNativeDocxComparison-PPVXDQY3.cjs.map} +1 -1
  6. package/dist/{ConnectedStreamedWordArtifact-EY3YWYDD.cjs → ConnectedStreamedWordArtifact-GAACBGTY.cjs} +7 -7
  7. package/dist/{ConnectedStreamedWordArtifact-EY3YWYDD.cjs.map → ConnectedStreamedWordArtifact-GAACBGTY.cjs.map} +1 -1
  8. package/dist/{DocumentReviewCard-RFE4THHR.cjs → DocumentReviewCard-Q3NKJLSM.cjs} +14 -14
  9. package/dist/{DocumentReviewCard-RFE4THHR.cjs.map → DocumentReviewCard-Q3NKJLSM.cjs.map} +1 -1
  10. package/dist/{FilesViewerDialog-VO247UEI.cjs → FilesViewerDialog-4JWDTDO7.cjs} +11 -11
  11. package/dist/{FilesViewerDialog-VO247UEI.cjs.map → FilesViewerDialog-4JWDTDO7.cjs.map} +1 -1
  12. package/dist/agents/index.cjs +172 -172
  13. package/dist/{chunk-PGKCL6YA.cjs → chunk-33236Q7Y.cjs} +8 -8
  14. package/dist/{chunk-PGKCL6YA.cjs.map → chunk-33236Q7Y.cjs.map} +1 -1
  15. package/dist/{chunk-E7BSG5IS.cjs → chunk-633ZCYVN.cjs} +37 -37
  16. package/dist/{chunk-E7BSG5IS.cjs.map → chunk-633ZCYVN.cjs.map} +1 -1
  17. package/dist/{chunk-U4MJIYGD.cjs → chunk-65NQW4RR.cjs} +4 -4
  18. package/dist/{chunk-U4MJIYGD.cjs.map → chunk-65NQW4RR.cjs.map} +1 -1
  19. package/dist/{chunk-JAKLLNLL.cjs → chunk-AWQEN6WW.cjs} +9 -7
  20. package/dist/chunk-AWQEN6WW.cjs.map +1 -0
  21. package/dist/{chunk-GENUGV6V.cjs → chunk-AZUPMHZI.cjs} +4 -4
  22. package/dist/{chunk-GENUGV6V.cjs.map → chunk-AZUPMHZI.cjs.map} +1 -1
  23. package/dist/{chunk-72O4YH5M.cjs → chunk-EAH7LFJN.cjs} +5 -5
  24. package/dist/{chunk-72O4YH5M.cjs.map → chunk-EAH7LFJN.cjs.map} +1 -1
  25. package/dist/{chunk-UNT2VY3B.cjs → chunk-EFV52SZ6.cjs} +4 -4
  26. package/dist/{chunk-UNT2VY3B.cjs.map → chunk-EFV52SZ6.cjs.map} +1 -1
  27. package/dist/{chunk-IXSOSISW.cjs → chunk-ELN3YOXF.cjs} +28 -28
  28. package/dist/{chunk-IXSOSISW.cjs.map → chunk-ELN3YOXF.cjs.map} +1 -1
  29. package/dist/{chunk-NAEBNQTO.cjs → chunk-GLNL5AL5.cjs} +29 -29
  30. package/dist/{chunk-NAEBNQTO.cjs.map → chunk-GLNL5AL5.cjs.map} +1 -1
  31. package/dist/{chunk-HTH3XIFF.cjs → chunk-GZPNBSRE.cjs} +8 -8
  32. package/dist/{chunk-HTH3XIFF.cjs.map → chunk-GZPNBSRE.cjs.map} +1 -1
  33. package/dist/chunk-HME72RFP.cjs +145 -0
  34. package/dist/chunk-HME72RFP.cjs.map +1 -0
  35. package/dist/{chunk-GW5LTX66.cjs → chunk-J46Y2L26.cjs} +4 -4
  36. package/dist/{chunk-GW5LTX66.cjs.map → chunk-J46Y2L26.cjs.map} +1 -1
  37. package/dist/{chunk-LHWFSXM5.cjs → chunk-KD37PODE.cjs} +3 -3
  38. package/dist/{chunk-LHWFSXM5.cjs.map → chunk-KD37PODE.cjs.map} +1 -1
  39. package/dist/{chunk-VCCAG4GQ.cjs → chunk-KZH6HMJL.cjs} +4 -4
  40. package/dist/{chunk-VCCAG4GQ.cjs.map → chunk-KZH6HMJL.cjs.map} +1 -1
  41. package/dist/{chunk-AQYCL2IJ.cjs → chunk-QDIIOZBP.cjs} +5 -5
  42. package/dist/{chunk-AQYCL2IJ.cjs.map → chunk-QDIIOZBP.cjs.map} +1 -1
  43. package/dist/{chunk-USYCBTKK.cjs → chunk-R6HGMPF4.cjs} +41 -7
  44. package/dist/chunk-R6HGMPF4.cjs.map +1 -0
  45. package/dist/{chunk-QSVYI72E.cjs → chunk-RNQ3MDTR.cjs} +4 -4
  46. package/dist/{chunk-QSVYI72E.cjs.map → chunk-RNQ3MDTR.cjs.map} +1 -1
  47. package/dist/{chunk-HZ35LMO3.cjs → chunk-VJHDCYKE.cjs} +4 -4
  48. package/dist/{chunk-HZ35LMO3.cjs.map → chunk-VJHDCYKE.cjs.map} +1 -1
  49. package/dist/{chunk-3GWYFQSI.cjs → chunk-Z6M2CI63.cjs} +84 -79
  50. package/dist/chunk-Z6M2CI63.cjs.map +1 -0
  51. package/dist/collaboration/index.cjs +3 -3
  52. package/dist/collaboration/sharing/ShareControl.d.ts +10 -1
  53. package/dist/collaboration/sharing/ShareControl.js +64 -4
  54. package/dist/collaboration/sharing/ShareControl.js.map +2 -2
  55. package/dist/components/GridRowNavigator.d.ts +8 -1
  56. package/dist/components/GridRowNavigator.js +4 -2
  57. package/dist/components/GridRowNavigator.js.map +2 -2
  58. package/dist/connect/docx.cjs +10 -10
  59. package/dist/connect/index.cjs +816 -767
  60. package/dist/connect/index.cjs.map +1 -1
  61. package/dist/connect/viewer.cjs +9 -9
  62. package/dist/connection/billing/ProjectDetail.d.ts +5 -1
  63. package/dist/connection/billing/ProjectDetail.js +82 -69
  64. package/dist/connection/billing/ProjectDetail.js.map +2 -2
  65. package/dist/connection/databases/ConnectedDatabasesPage.d.ts +7 -1
  66. package/dist/connection/databases/ConnectedDatabasesPage.js +18 -9
  67. package/dist/connection/databases/ConnectedDatabasesPage.js.map +2 -2
  68. package/dist/connection/databases/DatabaseWorkbench.d.ts +6 -1
  69. package/dist/connection/databases/DatabaseWorkbench.js +20 -15
  70. package/dist/connection/databases/DatabaseWorkbench.js.map +2 -2
  71. package/dist/connection/facts/factsSource.d.ts +2 -0
  72. package/dist/connection/facts/factsSource.js +10 -3
  73. package/dist/connection/facts/factsSource.js.map +2 -2
  74. package/dist/connection/files/page/ConnectedFilesPage.js +2 -1
  75. package/dist/connection/files/page/ConnectedFilesPage.js.map +2 -2
  76. package/dist/connection/projects/ConnectedProjectPage.d.ts +8 -1
  77. package/dist/connection/projects/ConnectedProjectPage.js +15 -1
  78. package/dist/connection/projects/ConnectedProjectPage.js.map +2 -2
  79. package/dist/connection/viewer/ConnectedDocumentViewer.d.ts +7 -0
  80. package/dist/connection/viewer/ConnectedDocumentViewer.js +28 -23
  81. package/dist/connection/viewer/ConnectedDocumentViewer.js.map +2 -2
  82. package/dist/databases/DatabaseFilterMenu.d.ts +6 -1
  83. package/dist/databases/DatabaseFilterMenu.js +13 -4
  84. package/dist/databases/DatabaseFilterMenu.js.map +2 -2
  85. package/dist/databases/DatabaseToolbar.d.ts +11 -1
  86. package/dist/databases/DatabaseToolbar.js +26 -1
  87. package/dist/databases/DatabaseToolbar.js.map +2 -2
  88. package/dist/databases/index.cjs +70 -69
  89. package/dist/embed/index.cjs +13 -13
  90. package/dist/files/index.cjs +221 -221
  91. package/dist/index.cjs +242 -242
  92. package/dist/pages/index.cjs +21 -21
  93. package/dist/record/band.d.ts +95 -0
  94. package/dist/record/index.cjs +414 -13
  95. package/dist/record/index.cjs.map +1 -1
  96. package/dist/record/index.d.ts +35 -2
  97. package/dist/record/index.js +402 -15
  98. package/dist/record/index.js.map +1 -1
  99. package/dist/record/narration.d.ts +71 -0
  100. package/dist/shell/index.cjs +1 -1
  101. package/dist/styles.css +1 -1
  102. package/dist/workflow-canvas/index.cjs +24 -24
  103. package/node_modules/@arbidocs/coedit/package.json +1 -1
  104. package/package.json +11 -6
  105. package/record/SKILL.md +178 -26
  106. package/record/mix-take.py +320 -0
  107. package/record/recap-slide.mjs +118 -0
  108. package/record/voice-take.py +129 -0
  109. package/dist/chunk-3GWYFQSI.cjs.map +0 -1
  110. package/dist/chunk-JAKLLNLL.cjs.map +0 -1
  111. package/dist/chunk-USYCBTKK.cjs.map +0 -1
  112. package/dist/chunk-WCT6FT2K.cjs +0 -87
  113. package/dist/chunk-WCT6FT2K.cjs.map +0 -1
@@ -1,25 +1,25 @@
1
1
  "use client";
2
2
  'use strict';
3
3
 
4
- var chunkNAEBNQTO_cjs = require('../chunk-NAEBNQTO.cjs');
4
+ var chunkGLNL5AL5_cjs = require('../chunk-GLNL5AL5.cjs');
5
5
  require('../chunk-32W2S6DE.cjs');
6
6
  require('../chunk-6OPDKROP.cjs');
7
7
  require('../chunk-KD66CBYO.cjs');
8
- require('../chunk-U4MJIYGD.cjs');
9
- require('../chunk-UNT2VY3B.cjs');
8
+ require('../chunk-65NQW4RR.cjs');
9
+ require('../chunk-EFV52SZ6.cjs');
10
10
  var chunkER2MRSLT_cjs = require('../chunk-ER2MRSLT.cjs');
11
11
  require('../chunk-AEQT2QQX.cjs');
12
- var chunkGENUGV6V_cjs = require('../chunk-GENUGV6V.cjs');
12
+ var chunkAZUPMHZI_cjs = require('../chunk-AZUPMHZI.cjs');
13
13
  require('../chunk-OUYBYZ7Y.cjs');
14
- require('../chunk-E7BSG5IS.cjs');
14
+ require('../chunk-633ZCYVN.cjs');
15
15
  require('../chunk-LYDSETR7.cjs');
16
16
  require('../chunk-WJIAA6G3.cjs');
17
17
  require('../chunk-JWCVA4LC.cjs');
18
18
  require('../chunk-QQMMCXBP.cjs');
19
- require('../chunk-72O4YH5M.cjs');
19
+ require('../chunk-EAH7LFJN.cjs');
20
20
  require('../chunk-223D4727.cjs');
21
21
  require('../chunk-DTMBAFIL.cjs');
22
- var chunkHZ35LMO3_cjs = require('../chunk-HZ35LMO3.cjs');
22
+ var chunkVJHDCYKE_cjs = require('../chunk-VJHDCYKE.cjs');
23
23
  require('../chunk-4ONPEVTP.cjs');
24
24
  require('../chunk-V3KLUWQQ.cjs');
25
25
  var chunkSOT7NPIB_cjs = require('../chunk-SOT7NPIB.cjs');
@@ -38,12 +38,12 @@ require('../chunk-NZNBJF3M.cjs');
38
38
  require('../chunk-NWNVWO6L.cjs');
39
39
  require('../chunk-SK6HQ46Q.cjs');
40
40
  require('../chunk-KQF7POTG.cjs');
41
- require('../chunk-WCT6FT2K.cjs');
41
+ require('../chunk-HME72RFP.cjs');
42
42
  require('../chunk-HQ6SK34T.cjs');
43
43
  require('../chunk-75BNMCUX.cjs');
44
44
  require('../chunk-OEJQFPWO.cjs');
45
- var chunkQSVYI72E_cjs = require('../chunk-QSVYI72E.cjs');
46
- var chunkAQYCL2IJ_cjs = require('../chunk-AQYCL2IJ.cjs');
45
+ var chunkRNQ3MDTR_cjs = require('../chunk-RNQ3MDTR.cjs');
46
+ var chunkQDIIOZBP_cjs = require('../chunk-QDIIOZBP.cjs');
47
47
  require('../chunk-CYN66TBO.cjs');
48
48
  require('../chunk-BH322H5B.cjs');
49
49
  var chunk2K5DLB7B_cjs = require('../chunk-2K5DLB7B.cjs');
@@ -56,13 +56,12 @@ require('../chunk-OYXWQTHF.cjs');
56
56
  require('../chunk-S237ORM3.cjs');
57
57
  require('../chunk-II2OEXHW.cjs');
58
58
  require('../chunk-FX3K6LNZ.cjs');
59
- require('../chunk-LHWFSXM5.cjs');
59
+ require('../chunk-KD37PODE.cjs');
60
60
  require('../chunk-3YEXZX4H.cjs');
61
61
  require('../chunk-4PA6VCCR.cjs');
62
62
  var chunk5FSULBPE_cjs = require('../chunk-5FSULBPE.cjs');
63
63
  require('../chunk-AHDJXIUB.cjs');
64
64
  require('../chunk-S3GVFAFB.cjs');
65
- require('../chunk-6UZC4XVV.cjs');
66
65
  require('../chunk-IXCWZ4HC.cjs');
67
66
  var chunkY3GJBLAI_cjs = require('../chunk-Y3GJBLAI.cjs');
68
67
  var chunkSQCCQU3K_cjs = require('../chunk-SQCCQU3K.cjs');
@@ -70,6 +69,7 @@ var chunkUDSHVNU3_cjs = require('../chunk-UDSHVNU3.cjs');
70
69
  require('../chunk-DKY67DA6.cjs');
71
70
  require('../chunk-ZQQVXRYZ.cjs');
72
71
  require('../chunk-IPSHAMO2.cjs');
72
+ require('../chunk-6UZC4XVV.cjs');
73
73
  require('../chunk-ZVEW3JBT.cjs');
74
74
  require('../chunk-M74FWYNL.cjs');
75
75
  require('../chunk-QUMUAJ2P.cjs');
@@ -2026,7 +2026,7 @@ function TriggerInspector({
2026
2026
  }
2027
2027
  )
2028
2028
  ] }),
2029
- trigger.start === "repeat" && /* @__PURE__ */ jsxRuntime.jsx(chunkAQYCL2IJ_cjs.RecurrenceBuilder, { rrule: trigger.rrule, onChange: (rrule) => set({ rrule }) }),
2029
+ trigger.start === "repeat" && /* @__PURE__ */ jsxRuntime.jsx(chunkQDIIOZBP_cjs.RecurrenceBuilder, { rrule: trigger.rrule, onChange: (rrule) => set({ rrule }) }),
2030
2030
  trigger.start === "event" && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1.5", children: [
2031
2031
  /* @__PURE__ */ jsxRuntime.jsx(ui.Label, { className: "text-xs", children: l.event }),
2032
2032
  /* @__PURE__ */ jsxRuntime.jsxs(
@@ -3009,13 +3009,13 @@ function WorkflowPreview({
3009
3009
  renderIcon,
3010
3010
  testId
3011
3011
  }) {
3012
- const run = chunkQSVYI72E_cjs.useWorkflowPreview(workflow, {
3012
+ const run = chunkRNQ3MDTR_cjs.useWorkflowPreview(workflow, {
3013
3013
  resolveWorkflow: (id) => workflows.find((w) => w.id === id),
3014
3014
  compose,
3015
3015
  answer
3016
3016
  });
3017
3017
  return /* @__PURE__ */ jsxRuntime.jsx(
3018
- chunkAQYCL2IJ_cjs.WorkflowRunner,
3018
+ chunkQDIIOZBP_cjs.WorkflowRunner,
3019
3019
  {
3020
3020
  workflow,
3021
3021
  run,
@@ -3300,7 +3300,7 @@ function ConnectedSavedWorkflowRun({
3300
3300
  return /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", "data-testid": "saved-workflow-run-status", children: saved.isError ? l.failed : l.loading });
3301
3301
  }
3302
3302
  return /* @__PURE__ */ jsxRuntime.jsx(
3303
- chunkNAEBNQTO_cjs.ConnectedWorkflowRunPage,
3303
+ chunkGLNL5AL5_cjs.ConnectedWorkflowRunPage,
3304
3304
  {
3305
3305
  workflow,
3306
3306
  workspaceId,
@@ -3360,7 +3360,7 @@ function ConnectedWorkflowsPage({
3360
3360
  const config = host.workflows;
3361
3361
  const { openConversation, openFiles } = chunkHN56WWBR_cjs.useBlocksEnvironment();
3362
3362
  const openWorkflow = chunkSOT7NPIB_cjs.useOpenWorkflow();
3363
- const renderPerson = chunkNAEBNQTO_cjs.useRenderTaskPerson();
3363
+ const renderPerson = chunkGLNL5AL5_cjs.useRenderTaskPerson();
3364
3364
  const refreshDocuments = react$2.useRefreshDocuments();
3365
3365
  const invalidateTags = react$2.useInvalidateTagData();
3366
3366
  const { data: tags = [] } = react$2.useTags();
@@ -3392,7 +3392,7 @@ function ConnectedWorkflowsPage({
3392
3392
  openHistory,
3393
3393
  closeHistoryTab,
3394
3394
  selectHistoryTab
3395
- } = chunkNAEBNQTO_cjs.useWorkflowsPageState({
3395
+ } = chunkGLNL5AL5_cjs.useWorkflowsPageState({
3396
3396
  historyWorkflowId: requestedHistoryId ?? historyWorkflowId,
3397
3397
  onHistoryWorkflowConsumed: consumeHistory
3398
3398
  });
@@ -3442,14 +3442,14 @@ function ConnectedWorkflowsPage({
3442
3442
  await refreshDocuments(execution.document_ext_ids);
3443
3443
  await invalidateTags();
3444
3444
  const fieldIds = execution.result?.tag_ext_ids ?? runsFor?.action?.tag_ext_ids ?? [];
3445
- chunkGENUGV6V_cjs.useAiReviewStore.getState().setRun({
3445
+ chunkAZUPMHZI_cjs.useAiReviewStore.getState().setRun({
3446
3446
  docIds: execution.document_ext_ids,
3447
3447
  tags: fieldIds.map((fieldId) => ({
3448
3448
  id: fieldId,
3449
3449
  name: tags.find((tag) => tag.external_id === fieldId)?.name ?? "Review"
3450
3450
  }))
3451
3451
  });
3452
- chunkGENUGV6V_cjs.useAiReviewStore.getState().setOpen(true);
3452
+ chunkAZUPMHZI_cjs.useAiReviewStore.getState().setOpen(true);
3453
3453
  openFiles(
3454
3454
  execution.label_ext_id ? { filters: { [execution.label_ext_id]: "include" } } : void 0
3455
3455
  );
@@ -3461,7 +3461,7 @@ function ConnectedWorkflowsPage({
3461
3461
  return (
3462
3462
  // The page in the Workflows page's frame: padded, scrolling.
3463
3463
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-full min-h-0 w-full overflow-auto p-4 sm:p-6", children: /* @__PURE__ */ jsxRuntime.jsx(
3464
- chunkNAEBNQTO_cjs.ConnectedWorkflowRunPage,
3464
+ chunkGLNL5AL5_cjs.ConnectedWorkflowRunPage,
3465
3465
  {
3466
3466
  workflow: running.workflow,
3467
3467
  projectFrom: running.projectFrom,
@@ -3575,7 +3575,7 @@ function ConnectedWorkflowsPage({
3575
3575
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-full min-h-0 flex-col", "data-testid": testId, children: [
3576
3576
  pageHeader && /* @__PURE__ */ jsxRuntime.jsx(chunkNSD37OF5_cjs.PageHeader, { ...pageHeader }),
3577
3577
  /* @__PURE__ */ jsxRuntime.jsx(
3578
- chunkHZ35LMO3_cjs.ConnectedWorkflowsTable,
3578
+ chunkVJHDCYKE_cjs.ConnectedWorkflowsTable,
3579
3579
  {
3580
3580
  onOpenTemplate: (id) => openBuilder({ kind: "template", id }),
3581
3581
  onPreviewTemplate: (id) => openBuilder({ kind: "template", id, mode: "preview" }),
@@ -3607,7 +3607,7 @@ function ConnectedWorkflowsPage({
3607
3607
  }
3608
3608
  },
3609
3609
  content: hostTab ? hostTab.content : runsFor ? /* @__PURE__ */ jsxRuntime.jsx(
3610
- chunkNAEBNQTO_cjs.ConnectedWorkflowHistory,
3610
+ chunkGLNL5AL5_cjs.ConnectedWorkflowHistory,
3611
3611
  {
3612
3612
  inline: true,
3613
3613
  hideHeader: true,
@@ -3671,7 +3671,7 @@ function ConnectedWorkflowsPage({
3671
3671
  }
3672
3672
  ),
3673
3673
  /* @__PURE__ */ jsxRuntime.jsx(
3674
- chunkNAEBNQTO_cjs.ConnectedTaskComposer,
3674
+ chunkGLNL5AL5_cjs.ConnectedTaskComposer,
3675
3675
  {
3676
3676
  kind: "workflow",
3677
3677
  saveOnly: true,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbidocs/coedit",
3
- "version": "0.5.190",
3
+ "version": "0.5.192",
4
4
  "description": "Real-time collaboration for the ARBI native DOCX editor: a Yjs mirror of the canonical OOXML package, session, and server runtime",
5
5
  "type": "module",
6
6
  "sideEffects": false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbidocs/blocks",
3
- "version": "0.5.190",
3
+ "version": "0.5.192",
4
4
  "description": "Composable, domain-neutral UI blocks for ARBI apps, organised by capability (retrieval, facts, agents, workspaces, citations, collaboration) plus shell, theme and site primitives, on top of @arbidocs/react.",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -8,8 +8,10 @@
8
8
  "types": "dist/index.d.ts",
9
9
  "bin": {
10
10
  "arbidocs-copy-pdf-assets": "./bin/arbidocs-copy-pdf-assets.mjs",
11
+ "arbidocs-mix-take": "./bin/arbidocs-mix-take.mjs",
11
12
  "arbidocs-record-take": "./bin/arbidocs-record-take.mjs",
12
- "arbidocs-render-take": "./bin/arbidocs-render-take.mjs"
13
+ "arbidocs-render-take": "./bin/arbidocs-render-take.mjs",
14
+ "arbidocs-voice-take": "./bin/arbidocs-voice-take.mjs"
13
15
  },
14
16
  "exports": {
15
17
  ".": {
@@ -326,8 +328,11 @@
326
328
  "bin",
327
329
  "dist",
328
330
  "record/SKILL.md",
331
+ "record/mix-take.py",
332
+ "record/recap-slide.mjs",
329
333
  "record/render-overlays.mjs",
330
334
  "record/render-take.py",
335
+ "record/voice-take.py",
331
336
  "src/tokens.css",
332
337
  "src/blocks.css",
333
338
  "src/connection/billing/project-purchase.css",
@@ -356,9 +361,9 @@
356
361
  "custom-site:test:e2e": "playwright test -c examples/custom-site/playwright.config.ts"
357
362
  },
358
363
  "dependencies": {
359
- "@arbidocs/client": "0.5.190",
360
- "@arbidocs/coedit": "0.5.190",
361
- "@arbidocs/sdk": "0.5.190",
364
+ "@arbidocs/client": "0.5.192",
365
+ "@arbidocs/coedit": "0.5.192",
366
+ "@arbidocs/sdk": "0.5.192",
362
367
  "@auth0/auth0-react": "^2.19.0",
363
368
  "@dnd-kit/core": "^6.3.1",
364
369
  "@dnd-kit/sortable": "^10.0.0",
@@ -411,7 +416,7 @@
411
416
  "y-protocols": "^1.0.6"
412
417
  },
413
418
  "peerDependencies": {
414
- "@arbidocs/react": "0.5.190",
419
+ "@arbidocs/react": "0.5.192",
415
420
  "@lexical/html": "0.35.0",
416
421
  "@lexical/link": "0.35.0",
417
422
  "@lexical/list": "0.35.0",
package/record/SKILL.md CHANGED
@@ -1,25 +1,78 @@
1
1
  ---
2
2
  name: arbi-record-demo-video
3
- description: Record a custom site's demo video with @arbidocs/blocks/record — prepare a disposable workspace, drive the story with Playwright against the deployed backend, render the cut/zoomed/branded 1080p edit, check it, and deliver it to OVH. Use when asked to record, re-record or fix a demo/client video of any ARBI custom site (Clarum and the sites after it).
3
+ description: Record a custom site's demo video with @arbidocs/blocks/record in the house style (a caption band above the app, a strip below for the player's controls, a narrator's voice-over, a recap slide to close) — prepare a disposable workspace, drive the story with Playwright against the deployed backend, render and mix the branded 1080p video, check it, and deliver it without overwriting an earlier take. Use when asked to record, re-record or fix a demo/client video of any ARBI custom site (Clarum and the sites after it).
4
4
  ---
5
5
 
6
6
  # Recording a custom site's demo video
7
7
 
8
8
  Every custom site (a site = kits + config + content) records its demo videos the same way, with
9
- `@arbidocs/blocks/record`:
9
+ `@arbidocs/blocks/record`, and in the same style: **read [The house style](#the-house-style-the-default)
10
+ before writing a story.** The kit does most of it by default; the rest is how the story is written.
10
11
 
11
12
  | Piece | What it does |
12
13
  |-------|--------------|
13
- | `createCinematic({ brand, testIds })` | the stage: a cursor that glides, click ripples, `caption`, `chapter`/`cover`/`uncover`, `lowerThird`, `focusOn`, `readDown`; `click` waits for toasts first; `signInAs` |
14
+ | `createCinematic({ brand, testIds })` | the stage: a cursor that glides, `caption`, `chapter`/`cover`/`uncover`, `lowerThird`, `focusOn`, `readDown`; `click` waits for toasts first; `signInAs`. In the house style (`style: 'band'`, the default) it also frames the app: the caption band, the player strip, the click pulse; `feature`, `pulseAt`, `interlude`, `still` |
14
15
  | `cine.take(page, { name, dir })` / `Take` | the take's clock: logs waits (`take.wait`) and the focus timeline for the edit |
16
+ | `cine.narrator(take, '<story>')` / `Narrator` | the voice-over: `say(id)` captions a line in the band and holds while it is said, `hush()` waits for it to end; logs every line for the mix |
15
17
  | `createRunKit(cine, { prefix })` | following a workflow run: `driveRun`, `whileWorking`, `approveStep`, `pickTile`, `stepChip`, `currentStep`, `resumeRun` |
16
- | `openWordById`, `spaGo`, `fillSecret` | open a document by id in Word, navigate without a reload, type a password without recording it |
17
- | `arbidocs-record-take` (bin) | one take end to end: prepare → record → render → upload |
18
- | `arbidocs-render-take` (bin, `record/render-take.py`) | the edit alone: cut long waits, zoom/pan, picture-in-picture, brand overlays, 1080p H.264 |
18
+ | `openWordById`, `spaGo`, `fillSecret` | open a document by id in Word, navigate without a reload (off camera only), type a password without recording it |
19
+ | `arbidocs-voice-take` (bin, `record/voice-take.py`) | speak the narration script into one clip per line (the house voice), with a manifest the take is paced by |
20
+ | `arbidocs-record-take` (bin) | one take end to end: prepare → record → render → (`--narrate`) mix → upload |
21
+ | `arbidocs-render-take` (bin, `record/render-take.py`) | the edit alone: cut long waits, brand cards, 1080p H.264 (and, in `'overlay'`, zoom/pan, picture-in-picture, captions) |
22
+ | `arbidocs-mix-take` (bin, `record/mix-take.py`) | lay the voice on the edit, close on the recap slide, `--publish` as the next take |
19
23
 
20
24
  The site keeps only what is its own: its brand (`CinematicBrand` from its theme tokens and font
21
- files), its stories (`e2e/record/*.record.ts`), its fixtures and its workspace prepare script.
22
- Labels on screen (chapter cards, lower-thirds, captions) come from the story, never from the kit.
25
+ files), its stories (`e2e/record/*.record.ts`) and their narration scripts
26
+ (`e2e/record/<story>.narration.json`), its fixtures and its workspace prepare script.
27
+ Words on screen (the band's feature names and captions, chapter cards, the recap) come from the
28
+ story, never from the kit.
29
+
30
+ ## The house style (the default)
31
+
32
+ These rules hold for every demo video. "Kit" means `createCinematic` does it unless the story
33
+ passes `style: 'overlay'`; "story" means it is up to how the story is written, so check it in the
34
+ frames before publishing.
35
+
36
+ 1. **Captions never sit on the app** *(kit)*. They go in a band at the top, with the feature being
37
+ shown named on its left for the whole section: `cine.feature(page, kicker, name)` at the start
38
+ of each scene.
39
+ 2. **A strip at the bottom of the frame stays empty** *(kit)*, so a video player's pause/seek bar
40
+ covers nothing of the app. Chrome's controls are about 56 CSS px tall whatever the video's size,
41
+ so a 1600x900 video shown at 0.68 scale needs about 82 px clear: the strip is 84 px
42
+ (`PLAYER_STRIP`; 64 px was measured too small). A site's own elements sized from the viewport
43
+ are refitted with `band.css` (see [Consistent styling](#consistent-styling-across-sites)).
44
+ 3. **Captions appear fast, a phrase at a time** *(kit)*: up to 3 words, about 0.1 s apart, not one
45
+ word at a time and not all at once; they stay while their line is spoken.
46
+ 4. **Captions read as a narrator explaining how the platform works** *(story)*: "Notice the
47
+ colours: amber means private…", not titles or labels.
48
+ 5. **A voice-over of the narration, and the take paced by the voice** *(kit + story)*, so the edit
49
+ never cuts into a sentence. Start each line as the screen begins to change
50
+ (`voice.say(id, { over: true })`), so the speech covers the change instead of waiting for it:
51
+ speech cannot be cut, and silence between lines makes the video long.
52
+ 6. **The last slide reads as a conclusion** *(kit, from the script's `recap`)*: a recap of what was
53
+ shown, a closing line, a thank-you; not just another chapter card. `arbidocs-mix-take` refuses a
54
+ script without one.
55
+ 7. **The frame holds still into and out of each chapter card** *(story; `cine.still`)*: no dialog
56
+ closing, caption clearing or toast moving under the card's fade. Call `voice.hush()`, clear the
57
+ caption and `await cine.still(page)` before a card.
58
+ 8. **Every click shows a visible pulse** *(kit)*. For a pick the test makes without a pointer press
59
+ (a native select's option, a file chosen for an upload), `cine.pulseAt(page, box)`.
60
+ 9. **Every navigation happens through a visible click with a bridging caption** *(story)*, never a
61
+ jump (`spaGo`, `page.goto`) on camera. Jumps are for setup behind a card.
62
+ 10. **What the video is about must be obvious at a glance** *(story)*: e.g. private and shared
63
+ documents told apart in the gallery by more than two grey pills that look alike. If the app
64
+ does not show it clearly, fix the app before the take.
65
+ 11. **A published take is never overwritten** *(kit)*. Each take is published under its own name
66
+ (`<site>-<story>.take<N>.narrated.mp4`, `arbidocs-mix-take --publish <dir>`) and added as a new
67
+ row on the page that lists the recordings; earlier files and rows stay. In the archive, a
68
+ second upload of a story on one day goes to `<date>-<story>.take2.mp4`. Never copy a video onto
69
+ an existing file (viewers also get the old one from their browser's cache at the same URL).
70
+
71
+ The format: a 1600x900 page, rendered to 1920x1080 H.264 at 25 fps with AAC audio (MP4). The voice: Kokoro's `bf_lily`, British English (see [The voice](#the-voice)). Keep a
72
+ video as short as its story allows; the narrated video's length is in `.narrated.json`.
73
+
74
+ `style: 'overlay'` is the earlier look (captions drawn by the edit over the app, zoom and
75
+ picture-in-picture, no voice): only for a recording that already exists in it.
23
76
 
24
77
  ## Prerequisites
25
78
 
@@ -28,8 +81,12 @@ Labels on screen (chapter cards, lower-thirds, captions) come from the story, ne
28
81
  the site's prepare script must refuse any other account.
29
82
  - **A deployed backend** (the site itself, or the site's dev server proxied to the deployed
30
83
  backend). Never a local mock: the video shows the real AI.
31
- - For the render: `python3` with `numpy` and `opencv-python` (`RENDER_VENV=<venv>` puts a venv's
32
- python first), `ffmpeg`, and Playwright's Chromium (it draws the overlays).
84
+ - For the render and the mix: `python3` with `numpy` and `opencv-python` (`RENDER_VENV=<venv>`
85
+ puts a venv's python first), `ffmpeg`, and Playwright's Chromium (it draws the cards and the
86
+ recap slide).
87
+ - For the voice: see [The voice](#the-voice) (`VOICE_VENV=<venv>`).
88
+ - A story that plays H.264 video on camera needs Google Chrome (`channel: 'chrome'` in the record
89
+ config): Playwright's own Chromium has no H.264 decoder.
33
90
  - For delivery: the aws CLI with the OVH S3 keys in its environment (`AWS_ACCESS_KEY_ID` /
34
91
  `AWS_SECRET_ACCESS_KEY`; they are `vault_s3_access_key` / `vault_s3_secret_key` in
35
92
  arbicity/ansible's vault — extract those two keys with a regex, never pipe the vault into a
@@ -48,32 +105,85 @@ It runs the prepare command (skipped for a resumed take), then
48
105
  `<videos>/<site>-<story>.webm` with its `.waits.json` / `.focus.json` to `<site>-<story>.cut.mp4`,
49
106
  and with `--upload` copies a passed, non-resumed take to
50
107
  `s3://arbi-archive/demo-videos/<site>/<YYYY-MM-DD>-<story>.mp4` (OVH UK,
51
- `https://s3.uk.io.cloud.ovh.net`) and prints a 7-day presigned link. Options: `--config`,
52
- `--videos` (default `e2e/videos`), `--name`, `--out`, `--date`, and renderer flags after `--`
53
- (`-- --max-zoom 1.6 --no-pip`). It exits with the recording's status: a failed take still renders
54
- what it recorded, to see where it stopped.
108
+ `https://s3.uk.io.cloud.ovh.net`) and prints a 7-day presigned link (a story already delivered
109
+ that day goes to `.take2.mp4`, never over the first). Options: `--config`, `--videos` (default
110
+ `e2e/videos`), `--name`, `--out`, `--date`, and renderer flags after `--` (`-- --head 1 --tail 0.6`).
111
+ For a story with a voice-over add `--narrate` (and `--speed 1.2`, `--publish <dir>`): it then mixes
112
+ the voice and delivers `<site>-<story>.narrated.mp4`. It exits with the recording's status: a
113
+ failed take still renders what it recorded, to see where it stopped.
55
114
 
56
115
  A site usually wraps it in a two-line script (Clarum: `e2e/record/tools/take.sh`).
57
116
 
117
+ ## A narrated video, end to end
118
+
119
+ 1. **Write the script**, `e2e/record/<story>.narration.json`: the lines the narrator says, in the
120
+ words of rule 4, and the recap slide.
121
+
122
+ ```json
123
+ {
124
+ "voice": "bf_lily", "lang": "en-gb", "speed": 1,
125
+ "lines": [
126
+ { "id": "intro", "text": "This is Clarum. Let's follow one investigation." },
127
+ { "id": "upload", "text": "Evidence arrives from anywhere: a folder, a mailbox, a ZIP.", "speech": "…" }
128
+ ],
129
+ "recap": {
130
+ "kicker": "Project Harrier · Recap", "title": "From evidence to answers.",
131
+ "lede": "One investigation, start to finish, in one secure workspace.",
132
+ "points": [{ "title": "Every source, one workspace", "detail": "…", "line": "outro-2" }],
133
+ "open": "outro-1", "close": "outro-3", "closing": "Thank you for watching"
134
+ },
135
+ "spoken": [["\\bZIP\\b", "zip"]]
136
+ }
137
+ ```
138
+
139
+ `text` is what the band shows; `speech` (or the `spoken` rules) is what is said when that
140
+ differs. `recap.open`, each point's `line` and `recap.close` are ids of lines said over the
141
+ slide: each point is ticked as the voice names it.
142
+ 2. **Write the story** with `cine.narrator` (below). Rehearse it before speaking anything: without
143
+ clips a line lasts as long as it takes to read, and the take still runs.
144
+ 3. **Speak the script**: `npx arbidocs-voice-take e2e/record/<story>.narration.json
145
+ e2e/videos/narration/<story> --model <kokoro dir>`. Only changed lines are spoken again.
146
+ 4. **Record, render, mix**: `npx arbidocs-record-take --site <site> --story <story> --grep "<title>"
147
+ --narrate --speed 1.2 --publish public/recordings -- --head 1 --tail 0.6` (or the steps one by
148
+ one: `arbidocs-render-take`, then `arbidocs-mix-take <story> --site <site>`).
149
+ 5. **Check it** (rule by rule, in the frames), read `.narrated.json`'s `problems` (a line the edit
150
+ cut into, a line not said, a caption that showed late), and compare the lines said with the
151
+ script.
152
+ 6. **Publish as a new take** (rule 11) and add its row to the recordings page.
153
+
58
154
  ## Writing a story
59
155
 
60
156
  ```ts
61
157
  const cine = createCinematic({ brand: SITE_BRAND, testIds: { email: 'email-input', … } })
62
158
  const runs = createRunKit(cine, { prefix: 'run' }) // the runner's testIdPrefix
63
159
 
64
- test('Client onboarding', async ({ page }) => {
65
- const take = await cine.take(page, { name: 'site-20-onboarding', dir: 'e2e/videos' })
66
- await cine.installStage(page)
160
+ test('From evidence to answers', async ({ page }) => {
161
+ const take = await cine.take(page, { name: 'site-32-demo', dir: 'e2e/videos' })
162
+ const voice = cine.narrator(take, '32-demo') // e2e/record/32-demo.narration.json
163
+ await cine.installStage(page) // the stage, the band, the strip
67
164
  await take.markSync() // before the first navigation
68
165
  await page.goto('/app/login')
69
- await cine.chapter(page, { kicker: 'Onboarding', title: '…' }) // setup behind the card
166
+ await voice.say('intro', { over: true, caption: false }) // said over the title card
167
+ await cine.chapter(page, { kicker: 'Evidence & AI', title: '…' }, 8600) // setup behind the card
70
168
  … sign in, open the workspace …
71
169
  await cine.uncover(page)
72
- if (!(await runs.resumeRun(page, { readyTestId: 'page-run' }))) { … start the run … }
73
- await runs.driveRun(take, { ai: ['conflicts'], captions: { … }, handlers: { … } })
170
+
171
+ await cine.feature(page, 'Part 1 · Evidence', 'Bringing files in') // named in the band
172
+ await voice.say('upload', { over: true }) // starts as the screen changes
173
+ await cine.click(page, 'add-button') // a visible click, with its pulse
174
+ await voice.hush() // before a wait the edit may cut
175
+ await take.wait('indexing', () => expect(row).toHaveText(/Indexed/))
176
+
177
+ await voice.hush(); await cine.clearCaption(page); await cine.still(page) // a still frame…
178
+ await voice.say('ch2', { over: true, caption: false })
179
+ await cine.interlude(page, { kicker: 'Part 2', title: 'Search and answers' }, 3200) // …then the card
74
180
  })
75
181
  ```
76
182
 
183
+ A workflow run is followed with the run kit as before:
184
+ `await runs.driveRun(take, { ai: ['conflicts'], captions: { … }, handlers: { … } })`; its captions
185
+ go to the band.
186
+
77
187
  The record config: `video: { mode: 'on', size: { width: 1600, height: 900 } }` and the same
78
188
  viewport, `workers: 1`, a long `timeout`; the edit scales 1600x900 to 1080p.
79
189
 
@@ -118,12 +228,54 @@ viewport, `workers: 1`, a long `timeout`; the edit scales 1600x900 to 1080p.
118
228
  brand into `focus.json`; the overlays are drawn from it.
119
229
  - **1600x900 → 1080p.** Record at 1600x900 CSS pixels (video size = viewport); `render-take.py`
120
230
  outputs 1920x1080 H.264 at 25 fps. A take of another shape is letterboxed.
121
- - **Overlays from the edit.** With a take running, captions, chapter cards, lower-thirds and
122
- callouts are drawn by `render-take.py` (`render-overlays.mjs` PNGs), outside any zoom — never
123
- painted in the page. Check one still of each kind against the site's look: the card gradient
124
- (`cover`), the accent rule and kicker, the caption bar (`ink`), the cursor colour.
125
- - **The camera.** Zoom at most `maxZoom` (default 1.8), picture-in-picture for long typing; turn
126
- either off per story in `cine.take` (`zoom: false`, `pip: false`) rather than per render.
231
+ - **The band is the frame, not part of the app.** Its accent comes from the
232
+ brand; its dark ground and its typeface (Space Grotesk by default) are apart from the app's on purpose. The band
233
+ shrinks the app's root (`#root`, or `band.root`) to the space between band and strip, and
234
+ refits Tailwind's `h-screen`/`h-dvh` classes. A site's own heights sized from the viewport
235
+ (`h-[calc(100dvh-11rem)]`…) stay too tall and clip the page's bottom (a hidden bulk bar, a cut
236
+ composer): refit each in `createCinematic({ band: { css } })` with `BAND_FRAME`, e.g.
237
+ `` `[class~="h-[calc(100dvh-11rem)]"] { height: calc(${BAND_FRAME} - 11rem) !important; }` ``.
238
+ - **Cards from the edit.** With a take running, full-screen chapter cards (`chapter`/`cover`),
239
+ lower-thirds and callouts are drawn by `render-take.py` (`render-overlays.mjs` PNGs). The edit
240
+ fades a card in over the 0.4 s *before* `chapter()` was called, so the page must already be
241
+ still then (rule 7). `interlude` is a card painted in the page, over the dimmed app. Check one
242
+ still of each kind against the site's look: the card gradient (`cover`), the accent rule and
243
+ kicker, the band, the cursor colour.
244
+ - **The camera.** The band style does not zoom (a zoom crops the band) and has no
245
+ picture-in-picture. In `'overlay'`: zoom at most `maxZoom` (default 1.8), picture-in-picture for
246
+ long typing; turn either off per story in `cine.take` rather than per render.
247
+
248
+ ## The voice
249
+
250
+ The house voice is **Kokoro `bf_lily`, British English, speed 1**: an 82M-parameter model that
251
+ runs offline on a CPU. Set up once: `pip install kokoro-onnx soundfile` in a venv
252
+ (`VOICE_VENV=<venv>`), and a folder holding `model.onnx` and `voices/bf_lily.bin` from the Hugging
253
+ Face repo `onnx-community/Kokoro-82M-v1.0-ONNX` (`--model <folder>`).
254
+
255
+ A script may instead set `"engine": "chatterbox"` (with `exaggeration`, `cfg`) to clone the voice
256
+ of a reference clip (`--ref <clip.wav>`; `pip install chatterbox-tts`). It sounds more natural and
257
+ is far heavier: about 4.6 GB of memory on a machine without a GPU, so never while a take is
258
+ recording. The reference clip is the voice: keep it with the site's recordings, and use the same
259
+ clip for every video of a series.
260
+
261
+ - **Speech cannot be cut, so a voice-over lengthens the edit**: the take's waits finish under the
262
+ voice. Start lines as the screen begins to change (rule 5) and read the gaps in `.narrated.json`.
263
+ - **Hush first.** `voice.hush()` before any `take.wait` and before a card. A line said over a card
264
+ must fit inside the card's hold, and uses `caption: false`: a caption painted under a fading
265
+ card shows as a change.
266
+ - **Narrated stretches are logged** as focus events over the band (`say` does it), or the edit's
267
+ dead-air rule (12 s with nothing logged) cuts them. A long silent hold the story wants kept needs
268
+ its own `take.record({ kind: 'read', mode: 'none', … })`.
269
+ - **Kokoro's speed is not linear** (1.05 shortens a line by about 2.4%); speed the finished video
270
+ up instead (`--speed 1.2`: the voice keeps its pitch).
271
+ - **Pronunciation.** The phonemiser misreads some names, stresses, acronyms mid-sentence ("ZIP")
272
+ and times ("08:00" as digits). Fix them in the script: `speech` for one line, `spoken` rules for
273
+ every line, `phonemes` (Kokoro) or `respell` (Chatterbox) for a name. Listen to each new line.
274
+ - **Never edit the site's files during a take**: a dev server reloads the page, and a reload in
275
+ the middle of an upload skips it. Voice, render and mix only between takes.
276
+ - **The AI's free prose slips.** Its tables and totals are usually right; a sentence around them
277
+ may not be ("9 of 10 approved" when 8 were). Check what is on screen against the fixtures before
278
+ publishing, not only the log.
127
279
 
128
280
  ## Audio and captured video clocks
129
281