@arbidocs/blocks 0.4.79 → 0.4.80

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 (71) hide show
  1. package/dist/agents/index.cjs +281 -281
  2. package/dist/agents/index.js +6 -6
  3. package/dist/agents/workflows/StepBarFrame.d.ts +8 -2
  4. package/dist/agents/workflows/stepWindow.d.ts +7 -0
  5. package/dist/chat/index.cjs +125 -125
  6. package/dist/chat/index.js +3 -3
  7. package/dist/{chunk-YGUKTFKW.cjs → chunk-2FEQGDW2.cjs} +27 -11
  8. package/dist/chunk-2FEQGDW2.cjs.map +1 -0
  9. package/dist/{chunk-BMOL5DN6.js → chunk-A5WCK6ZG.js} +8 -8
  10. package/dist/chunk-A5WCK6ZG.js.map +1 -0
  11. package/dist/{chunk-IF6VAYIA.cjs → chunk-C3DRLFU7.cjs} +5 -5
  12. package/dist/{chunk-IF6VAYIA.cjs.map → chunk-C3DRLFU7.cjs.map} +1 -1
  13. package/dist/{chunk-O35LRB3P.js → chunk-E367ZUHE.js} +3 -3
  14. package/dist/{chunk-O35LRB3P.js.map → chunk-E367ZUHE.js.map} +1 -1
  15. package/dist/{chunk-XMBYDLZQ.cjs → chunk-HUJLKDWX.cjs} +4 -4
  16. package/dist/{chunk-XMBYDLZQ.cjs.map → chunk-HUJLKDWX.cjs.map} +1 -1
  17. package/dist/{chunk-ICBAFX5B.js → chunk-LBE36YNZ.js} +3 -3
  18. package/dist/{chunk-ICBAFX5B.js.map → chunk-LBE36YNZ.js.map} +1 -1
  19. package/dist/{chunk-3YET6D5E.cjs → chunk-LGDX34UR.cjs} +45 -45
  20. package/dist/chunk-LGDX34UR.cjs.map +1 -0
  21. package/dist/{chunk-5XVWGJ2H.cjs → chunk-MFDGNUKX.cjs} +3 -3
  22. package/dist/{chunk-5XVWGJ2H.cjs.map → chunk-MFDGNUKX.cjs.map} +1 -1
  23. package/dist/{chunk-MP6FK43E.cjs → chunk-O5NDG4EA.cjs} +3 -3
  24. package/dist/{chunk-MP6FK43E.cjs.map → chunk-O5NDG4EA.cjs.map} +1 -1
  25. package/dist/{chunk-DDF5GPIJ.js → chunk-P5ST47VY.js} +3 -3
  26. package/dist/{chunk-DDF5GPIJ.js.map → chunk-P5ST47VY.js.map} +1 -1
  27. package/dist/{chunk-EWSEQEPL.js → chunk-PFA43QNX.js} +3 -3
  28. package/dist/{chunk-EWSEQEPL.js.map → chunk-PFA43QNX.js.map} +1 -1
  29. package/dist/{chunk-6GXF62XN.js → chunk-QFA3NCWL.js} +26 -12
  30. package/dist/chunk-QFA3NCWL.js.map +1 -0
  31. package/dist/{chunk-CWAZNXC5.js → chunk-SWSVPQNB.js} +30 -8
  32. package/dist/chunk-SWSVPQNB.js.map +1 -0
  33. package/dist/{chunk-MLAHDAN5.cjs → chunk-UA2AMDR6.cjs} +30 -8
  34. package/dist/chunk-UA2AMDR6.cjs.map +1 -0
  35. package/dist/{chunk-XQDM6T6C.js → chunk-WDD255XQ.js} +3 -3
  36. package/dist/{chunk-XQDM6T6C.js.map → chunk-WDD255XQ.js.map} +1 -1
  37. package/dist/{chunk-Z5VUZ6YD.cjs → chunk-ZV3BKLFY.cjs} +3 -3
  38. package/dist/{chunk-Z5VUZ6YD.cjs.map → chunk-ZV3BKLFY.cjs.map} +1 -1
  39. package/dist/connect/index.cjs +68 -64
  40. package/dist/connect/index.cjs.map +1 -1
  41. package/dist/connect/index.d.ts +1 -1
  42. package/dist/connect/index.js +18 -14
  43. package/dist/connect/index.js.map +1 -1
  44. package/dist/connection/ConnectedWorkflowRunner.d.ts +16 -1
  45. package/dist/facts/index.cjs +2 -2
  46. package/dist/facts/index.js +2 -2
  47. package/dist/files/index.cjs +4 -4
  48. package/dist/files/index.js +4 -4
  49. package/dist/home/index.cjs +18 -18
  50. package/dist/home/index.js +4 -4
  51. package/dist/index.cjs +644 -644
  52. package/dist/index.js +14 -14
  53. package/dist/retrieval/index.cjs +1 -1
  54. package/dist/retrieval/index.js +1 -1
  55. package/dist/settings/index.cjs +36 -36
  56. package/dist/settings/index.js +3 -3
  57. package/dist/shell/index.cjs +1 -1
  58. package/dist/shell/index.js +1 -1
  59. package/dist/studio/index.cjs +5 -5
  60. package/dist/studio/index.js +4 -4
  61. package/dist/workflow-canvas/index.cjs +49 -49
  62. package/dist/workflow-canvas/index.js +6 -6
  63. package/dist/workspaces/index.cjs +1 -1
  64. package/dist/workspaces/index.js +1 -1
  65. package/package.json +4 -4
  66. package/dist/chunk-3YET6D5E.cjs.map +0 -1
  67. package/dist/chunk-6GXF62XN.js.map +0 -1
  68. package/dist/chunk-BMOL5DN6.js.map +0 -1
  69. package/dist/chunk-CWAZNXC5.js.map +0 -1
  70. package/dist/chunk-MLAHDAN5.cjs.map +0 -1
  71. package/dist/chunk-YGUKTFKW.cjs.map +0 -1
@@ -5,6 +5,7 @@
5
5
  * who should approve it, in the run's thread. The host keeps its wording, its commits
6
6
  * (`options.commit`) and its finish screen.
7
7
  */
8
+ import { useDocuments } from '@arbidocs/react';
8
9
  import { type WorkflowRunnerFile, type WorkflowRunnerProps } from '../agents/workflows/WorkflowRunner';
9
10
  import type { WorkflowRunnerActions } from '../agents/workflows/StepParts';
10
11
  import type { WorkflowAgentStep, WorkflowDefinition } from '../agents/workflows/types';
@@ -51,7 +52,21 @@ export interface ConnectedWorkflowRunnerProps extends Omit<WorkflowRunnerProps,
51
52
  * a time, each answer shown in full.
52
53
  */
53
54
  layout?: 'thread' | 'guided';
55
+ /**
56
+ * Which of the workspace's documents an upload step lists (the files "in this matter"): the
57
+ * host hides what is not the matter's own, e.g. skill files kept as workspace documents —
58
+ * `(doc) => !(doc.folder ?? '').startsWith('skills')`. Files added on the run's upload steps are
59
+ * always listed. Absent: every document.
60
+ */
61
+ fileFilter?: (doc: WorkflowRunnerDocument) => boolean;
54
62
  }
55
- export declare function ConnectedWorkflowRunner({ workflow, options, onOpenConversation, emptyHint, connectedLabels, onOpenDocument, onOpenDraft, onOpenMessage, actions: hostActions, dialogLabels, layout, testIdPrefix, ...runnerProps }: ConnectedWorkflowRunnerProps): import("react").JSX.Element;
63
+ /** A workspace document, as `fileFilter` sees it. */
64
+ export type WorkflowRunnerDocument = NonNullable<ReturnType<typeof useDocuments>['data']>[number];
65
+ export declare function ConnectedWorkflowRunner({ workflow, options, onOpenConversation, emptyHint, connectedLabels, onOpenDocument, onOpenDraft, onOpenMessage, actions: hostActions, dialogLabels, layout, fileFilter, testIdPrefix, ...runnerProps }: ConnectedWorkflowRunnerProps): import("react").JSX.Element;
66
+ /**
67
+ * The upload step's files: the workspace's documents the host's `fileFilter` keeps, plus every
68
+ * file added on one of the run's upload steps (`added`: doc id -> step id), which the step waits on.
69
+ */
70
+ export declare function runnerFiles(docs: WorkflowRunnerDocument[], added: Record<string, string>, fileFilter?: (doc: WorkflowRunnerDocument) => boolean): WorkflowRunnerFile[];
56
71
  /** A document's processing status as the upload step shows it; unknown stays unknown. */
57
72
  export declare function fileStatus(status: string | null | undefined): WorkflowRunnerFile['status'];
@@ -8,11 +8,11 @@ var chunk7RGLTF76_cjs = require('../chunk-7RGLTF76.cjs');
8
8
  var chunkV4ISCZJ7_cjs = require('../chunk-V4ISCZJ7.cjs');
9
9
  var chunk2EI7NCUA_cjs = require('../chunk-2EI7NCUA.cjs');
10
10
  var chunkIXALYQT7_cjs = require('../chunk-IXALYQT7.cjs');
11
- require('../chunk-C54XEN5T.cjs');
12
11
  require('../chunk-FX3K6LNZ.cjs');
13
12
  var chunkPPCATBOY_cjs = require('../chunk-PPCATBOY.cjs');
14
- var chunkKDG6FER6_cjs = require('../chunk-KDG6FER6.cjs');
15
13
  var chunkMHVNT4J3_cjs = require('../chunk-MHVNT4J3.cjs');
14
+ require('../chunk-C54XEN5T.cjs');
15
+ var chunkKDG6FER6_cjs = require('../chunk-KDG6FER6.cjs');
16
16
  require('../chunk-DES3K4SD.cjs');
17
17
  var lucideReact = require('lucide-react');
18
18
  var ui = require('@arbidocs/react/ui');
@@ -7,11 +7,11 @@ import { SelectionBar, SelectionBarAction } from '../chunk-NUNKSZKU.js';
7
7
  import { FilterInput } from '../chunk-YU2KUMGE.js';
8
8
  export { DEFAULT_FILTER_INPUT_LABELS as DEFAULT_FACTS_FILTER_INPUT_LABELS, DEFAULT_FILTER_FIELDS as FACTS_SEARCH_FIELD_OPTIONS, FilterInput as FactsFilterInput } from '../chunk-YU2KUMGE.js';
9
9
  import { GridView } from '../chunk-ZPLG7QYF.js';
10
- import '../chunk-76JDDMSP.js';
11
10
  import '../chunk-SLSBJRWW.js';
12
11
  import { observeResize } from '../chunk-NPLYHR2E.js';
13
- import { initials } from '../chunk-OXF2IFXG.js';
14
12
  import { testIdOr } from '../chunk-7F6CBP3Z.js';
13
+ import '../chunk-76JDDMSP.js';
14
+ import { initials } from '../chunk-OXF2IFXG.js';
15
15
  import '../chunk-VUNV25KB.js';
16
16
  import { PencilLine, Check, MoreVertical, Pencil, Trash2, CalendarDays, X, Columns3, ChevronDown, RotateCcw, Milestone, CalendarClock, Scale, Lightbulb, ArrowRight, Loader2, Info, Paperclip, Tags, MoreHorizontal, FolderUp, BookMarked, Plus, Search, CheckCircle2, CornerDownLeft, Quote, ChevronLeft, ChevronRight, Table2, CalendarRange, GanttChartSquare } from 'lucide-react';
17
17
  import { Popover, PopoverTrigger, PopoverContent, Command, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, cn, Input, Button, CommandSeparator, Tooltip, TooltipTrigger, TooltipContent } from '@arbidocs/react/ui';
@@ -11,13 +11,13 @@ var chunkV4ISCZJ7_cjs = require('../chunk-V4ISCZJ7.cjs');
11
11
  var chunk2EI7NCUA_cjs = require('../chunk-2EI7NCUA.cjs');
12
12
  var chunkIXALYQT7_cjs = require('../chunk-IXALYQT7.cjs');
13
13
  var chunkOB5F4577_cjs = require('../chunk-OB5F4577.cjs');
14
- require('../chunk-C54XEN5T.cjs');
15
- var chunkVLCY46K6_cjs = require('../chunk-VLCY46K6.cjs');
16
- var chunkULWRNGGE_cjs = require('../chunk-ULWRNGGE.cjs');
17
14
  require('../chunk-FX3K6LNZ.cjs');
18
15
  require('../chunk-PPCATBOY.cjs');
19
- var chunkKDG6FER6_cjs = require('../chunk-KDG6FER6.cjs');
16
+ var chunkVLCY46K6_cjs = require('../chunk-VLCY46K6.cjs');
17
+ var chunkULWRNGGE_cjs = require('../chunk-ULWRNGGE.cjs');
20
18
  var chunkMHVNT4J3_cjs = require('../chunk-MHVNT4J3.cjs');
19
+ require('../chunk-C54XEN5T.cjs');
20
+ var chunkKDG6FER6_cjs = require('../chunk-KDG6FER6.cjs');
21
21
  require('../chunk-DES3K4SD.cjs');
22
22
  var classVarianceAuthority = require('class-variance-authority');
23
23
  var ui = require('@arbidocs/react/ui');
@@ -12,13 +12,13 @@ import { FilterInput } from '../chunk-YU2KUMGE.js';
12
12
  import { GridView } from '../chunk-ZPLG7QYF.js';
13
13
  export { GridView } from '../chunk-ZPLG7QYF.js';
14
14
  import { ActionLink } from '../chunk-S7PSMMRG.js';
15
- import '../chunk-76JDDMSP.js';
16
- import { ShareControl } from '../chunk-K4BGOPGG.js';
17
- import { ModalSection, ModalSectionTitle, ModalHeader } from '../chunk-TX2ZICS7.js';
18
15
  import '../chunk-SLSBJRWW.js';
19
16
  import '../chunk-NPLYHR2E.js';
20
- import { formatCount } from '../chunk-OXF2IFXG.js';
17
+ import { ShareControl } from '../chunk-K4BGOPGG.js';
18
+ import { ModalSection, ModalSectionTitle, ModalHeader } from '../chunk-TX2ZICS7.js';
21
19
  import { testIdOr } from '../chunk-7F6CBP3Z.js';
20
+ import '../chunk-76JDDMSP.js';
21
+ import { formatCount } from '../chunk-OXF2IFXG.js';
22
22
  import '../chunk-VUNV25KB.js';
23
23
  import { cva } from 'class-variance-authority';
24
24
  import { cn, Popover, PopoverTrigger, PopoverContent, Command, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, Tooltip, TooltipTrigger, TooltipContent, Button, Progress, Badge, RadioGroup, RadioGroupItem, Label, ScrollArea, Checkbox, Dialog, DialogContent, DialogTitle, DialogDescription, TooltipProvider, IconToggle, Textarea, DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuSeparator, DropdownMenuItem, DialogTrigger, Input, Select, SelectTrigger, SelectValue, SelectContent, SelectItem, DialogHeader, CommandSeparator, getTagTypeIcon, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, Switch } from '@arbidocs/react/ui';
@@ -3,13 +3,13 @@
3
3
 
4
4
  var chunkXZIYRKLW_cjs = require('../chunk-XZIYRKLW.cjs');
5
5
  var chunkPCB2BPN3_cjs = require('../chunk-PCB2BPN3.cjs');
6
- var chunkZ5VUZ6YD_cjs = require('../chunk-Z5VUZ6YD.cjs');
6
+ var chunkZV3BKLFY_cjs = require('../chunk-ZV3BKLFY.cjs');
7
7
  var chunk7D737FLE_cjs = require('../chunk-7D737FLE.cjs');
8
8
  var chunkOB5F4577_cjs = require('../chunk-OB5F4577.cjs');
9
- require('../chunk-C54XEN5T.cjs');
10
9
  require('../chunk-PPCATBOY.cjs');
11
- require('../chunk-KDG6FER6.cjs');
12
10
  var chunkMHVNT4J3_cjs = require('../chunk-MHVNT4J3.cjs');
11
+ require('../chunk-C54XEN5T.cjs');
12
+ require('../chunk-KDG6FER6.cjs');
13
13
  require('../chunk-DES3K4SD.cjs');
14
14
  var lucideReact = require('lucide-react');
15
15
  var ui = require('@arbidocs/react/ui');
@@ -108,7 +108,7 @@ function RecentList({
108
108
  "data-testid": testId,
109
109
  children: [
110
110
  /* @__PURE__ */ jsxRuntime.jsx(
111
- chunkZ5VUZ6YD_cjs.SectionHeader,
111
+ chunkZV3BKLFY_cjs.SectionHeader,
112
112
  {
113
113
  icon,
114
114
  title,
@@ -120,7 +120,7 @@ function RecentList({
120
120
  }
121
121
  ),
122
122
  rows.length === 0 ? empty?.onSelect ? /* @__PURE__ */ jsxRuntime.jsx(
123
- chunkZ5VUZ6YD_cjs.EmptyStrip,
123
+ chunkZV3BKLFY_cjs.EmptyStrip,
124
124
  {
125
125
  icon: empty.icon,
126
126
  label: empty.label,
@@ -190,7 +190,7 @@ function FactsStrip({
190
190
  "data-testid": testId,
191
191
  children: [
192
192
  /* @__PURE__ */ jsxRuntime.jsx(
193
- chunkZ5VUZ6YD_cjs.SectionHeader,
193
+ chunkZV3BKLFY_cjs.SectionHeader,
194
194
  {
195
195
  icon,
196
196
  title,
@@ -201,7 +201,7 @@ function FactsStrip({
201
201
  }
202
202
  ),
203
203
  filled.length === 0 ? empty && /* @__PURE__ */ jsxRuntime.jsx(
204
- chunkZ5VUZ6YD_cjs.EmptyStrip,
204
+ chunkZV3BKLFY_cjs.EmptyStrip,
205
205
  {
206
206
  icon: empty.icon,
207
207
  label: empty.label,
@@ -409,7 +409,7 @@ function ActionMenuDialog({
409
409
  className: "sm:max-w-lg",
410
410
  "data-testid": chunkMHVNT4J3_cjs.testIdOr(testId, { testId: "action-menu-dialog" }),
411
411
  children: [
412
- /* @__PURE__ */ jsxRuntime.jsx(chunkZ5VUZ6YD_cjs.QuickActionDialogHeader, { icon, title, description }),
412
+ /* @__PURE__ */ jsxRuntime.jsx(chunkZV3BKLFY_cjs.QuickActionDialogHeader, { icon, title, description }),
413
413
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-2 gap-3 pt-1", role: "menu", "aria-label": title, children: items.map((item) => /* @__PURE__ */ jsxRuntime.jsxs(
414
414
  "button",
415
415
  {
@@ -791,43 +791,43 @@ Object.defineProperty(exports, "KeyValueRow", {
791
791
  });
792
792
  Object.defineProperty(exports, "AddFilesFirst", {
793
793
  enumerable: true,
794
- get: function () { return chunkZ5VUZ6YD_cjs.AddFilesFirst; }
794
+ get: function () { return chunkZV3BKLFY_cjs.AddFilesFirst; }
795
795
  });
796
796
  Object.defineProperty(exports, "DEFAULT_ADD_FILES_FIRST_LABELS", {
797
797
  enumerable: true,
798
- get: function () { return chunkZ5VUZ6YD_cjs.DEFAULT_ADD_FILES_FIRST_LABELS; }
798
+ get: function () { return chunkZV3BKLFY_cjs.DEFAULT_ADD_FILES_FIRST_LABELS; }
799
799
  });
800
800
  Object.defineProperty(exports, "DEFAULT_SCOPE_PICKER_LABELS", {
801
801
  enumerable: true,
802
- get: function () { return chunkZ5VUZ6YD_cjs.DEFAULT_SCOPE_PICKER_LABELS; }
802
+ get: function () { return chunkZV3BKLFY_cjs.DEFAULT_SCOPE_PICKER_LABELS; }
803
803
  });
804
804
  Object.defineProperty(exports, "EmptyStrip", {
805
805
  enumerable: true,
806
- get: function () { return chunkZ5VUZ6YD_cjs.EmptyStrip; }
806
+ get: function () { return chunkZV3BKLFY_cjs.EmptyStrip; }
807
807
  });
808
808
  Object.defineProperty(exports, "QuickActionDialogHeader", {
809
809
  enumerable: true,
810
- get: function () { return chunkZ5VUZ6YD_cjs.QuickActionDialogHeader; }
810
+ get: function () { return chunkZV3BKLFY_cjs.QuickActionDialogHeader; }
811
811
  });
812
812
  Object.defineProperty(exports, "ScopePicker", {
813
813
  enumerable: true,
814
- get: function () { return chunkZ5VUZ6YD_cjs.ScopePicker; }
814
+ get: function () { return chunkZV3BKLFY_cjs.ScopePicker; }
815
815
  });
816
816
  Object.defineProperty(exports, "SectionHeader", {
817
817
  enumerable: true,
818
- get: function () { return chunkZ5VUZ6YD_cjs.SectionHeader; }
818
+ get: function () { return chunkZV3BKLFY_cjs.SectionHeader; }
819
819
  });
820
820
  Object.defineProperty(exports, "SectionLabel", {
821
821
  enumerable: true,
822
- get: function () { return chunkZ5VUZ6YD_cjs.SectionLabel; }
822
+ get: function () { return chunkZV3BKLFY_cjs.SectionLabel; }
823
823
  });
824
824
  Object.defineProperty(exports, "StartTiles", {
825
825
  enumerable: true,
826
- get: function () { return chunkZ5VUZ6YD_cjs.StartTiles; }
826
+ get: function () { return chunkZV3BKLFY_cjs.StartTiles; }
827
827
  });
828
828
  Object.defineProperty(exports, "useScopeSelection", {
829
829
  enumerable: true,
830
- get: function () { return chunkZ5VUZ6YD_cjs.useScopeSelection; }
830
+ get: function () { return chunkZV3BKLFY_cjs.useScopeSelection; }
831
831
  });
832
832
  Object.defineProperty(exports, "FoldSection", {
833
833
  enumerable: true,
@@ -1,14 +1,14 @@
1
1
  "use client";
2
2
  export { CollapsibleSection, DEFAULT_COLLAPSIBLE_SECTION_LABELS, DEFAULT_KEY_VALUE_ROW_LABELS, KeyValueContainer, KeyValueRow } from '../chunk-LGBAZD37.js';
3
3
  import { Callout } from '../chunk-UJE32SST.js';
4
- import { SectionHeader, EmptyStrip, QuickActionDialogHeader } from '../chunk-DDF5GPIJ.js';
5
- export { AddFilesFirst, DEFAULT_ADD_FILES_FIRST_LABELS, DEFAULT_SCOPE_PICKER_LABELS, EmptyStrip, QuickActionDialogHeader, ScopePicker, SectionHeader, SectionLabel, StartTiles, useScopeSelection } from '../chunk-DDF5GPIJ.js';
4
+ import { SectionHeader, EmptyStrip, QuickActionDialogHeader } from '../chunk-P5ST47VY.js';
5
+ export { AddFilesFirst, DEFAULT_ADD_FILES_FIRST_LABELS, DEFAULT_SCOPE_PICKER_LABELS, EmptyStrip, QuickActionDialogHeader, ScopePicker, SectionHeader, SectionLabel, StartTiles, useScopeSelection } from '../chunk-P5ST47VY.js';
6
6
  export { FoldSection } from '../chunk-XD2M6LIG.js';
7
7
  import { ActionLink } from '../chunk-S7PSMMRG.js';
8
- import '../chunk-76JDDMSP.js';
9
8
  import '../chunk-NPLYHR2E.js';
10
- import '../chunk-OXF2IFXG.js';
11
9
  import { testIdOr, prefixedTestId } from '../chunk-7F6CBP3Z.js';
10
+ import '../chunk-76JDDMSP.js';
11
+ import '../chunk-OXF2IFXG.js';
12
12
  import '../chunk-VUNV25KB.js';
13
13
  import { Plus, PartyPopper, X, Trash2 } from 'lucide-react';
14
14
  import { cn, Dialog, DialogContent, Button, Tooltip, TooltipTrigger, TooltipContent } from '@arbidocs/react/ui';