@arbidocs/blocks 0.4.134 → 0.4.136

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 (102) hide show
  1. package/dist/agents/index.cjs +354 -306
  2. package/dist/agents/index.js +5 -5
  3. package/dist/agents/skills/index.d.ts +2 -0
  4. package/dist/agents/skills/skillFiles.d.ts +65 -0
  5. package/dist/agents/skills/skillImport.d.ts +36 -0
  6. package/dist/agents/workflows/index.d.ts +1 -1
  7. package/dist/agents/workflows/workflow.d.ts +19 -0
  8. package/dist/calls/index.cjs +3 -3
  9. package/dist/calls/index.js +2 -2
  10. package/dist/chat/index.cjs +138 -138
  11. package/dist/chat/index.js +3 -3
  12. package/dist/{chunk-26E6PHD2.js → chunk-5BXEYYH6.js} +3 -3
  13. package/dist/{chunk-26E6PHD2.js.map → chunk-5BXEYYH6.js.map} +1 -1
  14. package/dist/{chunk-FUTMU4FR.js → chunk-5HFPRI3W.js} +3 -3
  15. package/dist/{chunk-FUTMU4FR.js.map → chunk-5HFPRI3W.js.map} +1 -1
  16. package/dist/{chunk-WV4IDVDQ.cjs → chunk-7YLJHTDC.cjs} +11 -11
  17. package/dist/{chunk-WV4IDVDQ.cjs.map → chunk-7YLJHTDC.cjs.map} +1 -1
  18. package/dist/{chunk-GZPTWHP5.cjs → chunk-C44D4WFG.cjs} +6 -6
  19. package/dist/{chunk-GZPTWHP5.cjs.map → chunk-C44D4WFG.cjs.map} +1 -1
  20. package/dist/{chunk-OPTBQSCV.cjs → chunk-DJM7DLCT.cjs} +3 -3
  21. package/dist/{chunk-OPTBQSCV.cjs.map → chunk-DJM7DLCT.cjs.map} +1 -1
  22. package/dist/{chunk-VHJHY7TT.js → chunk-ECERC6TI.js} +3 -3
  23. package/dist/{chunk-VHJHY7TT.js.map → chunk-ECERC6TI.js.map} +1 -1
  24. package/dist/{chunk-OQ7RUNOC.js → chunk-GFYGYME3.js} +3 -3
  25. package/dist/{chunk-OQ7RUNOC.js.map → chunk-GFYGYME3.js.map} +1 -1
  26. package/dist/{chunk-HW2J4JMV.cjs → chunk-IE5CUCZK.cjs} +8 -8
  27. package/dist/{chunk-HW2J4JMV.cjs.map → chunk-IE5CUCZK.cjs.map} +1 -1
  28. package/dist/{chunk-54ANPPMV.js → chunk-IQU2GI6V.js} +248 -4
  29. package/dist/chunk-IQU2GI6V.js.map +1 -0
  30. package/dist/{chunk-CXLVI3SB.js → chunk-JO3EMZ4X.js} +3 -3
  31. package/dist/{chunk-CXLVI3SB.js.map → chunk-JO3EMZ4X.js.map} +1 -1
  32. package/dist/{chunk-ARDHLU73.cjs → chunk-KDUGTKVI.cjs} +21 -2
  33. package/dist/chunk-KDUGTKVI.cjs.map +1 -0
  34. package/dist/{chunk-4RLCRFZS.js → chunk-L2PAPOZ5.js} +21 -3
  35. package/dist/chunk-L2PAPOZ5.js.map +1 -0
  36. package/dist/{chunk-LC2KJSUS.cjs → chunk-LIHRGG4M.cjs} +302 -45
  37. package/dist/chunk-LIHRGG4M.cjs.map +1 -0
  38. package/dist/{chunk-BMNNT27D.js → chunk-LT2X5N37.js} +7 -48
  39. package/dist/chunk-LT2X5N37.js.map +1 -0
  40. package/dist/{chunk-D4YR56FV.cjs → chunk-N55UIXVT.cjs} +5 -5
  41. package/dist/{chunk-D4YR56FV.cjs.map → chunk-N55UIXVT.cjs.map} +1 -1
  42. package/dist/{chunk-BZF55UCE.cjs → chunk-OAL3B2ZU.cjs} +5 -5
  43. package/dist/{chunk-BZF55UCE.cjs.map → chunk-OAL3B2ZU.cjs.map} +1 -1
  44. package/dist/{chunk-AAFX64WD.cjs → chunk-OR4CO743.cjs} +3 -3
  45. package/dist/{chunk-AAFX64WD.cjs.map → chunk-OR4CO743.cjs.map} +1 -1
  46. package/dist/{chunk-HM23LXUP.cjs → chunk-OWCEQKAR.cjs} +23 -2
  47. package/dist/chunk-OWCEQKAR.cjs.map +1 -0
  48. package/dist/{chunk-QUDCNT63.cjs → chunk-OZLWSNUC.cjs} +66 -110
  49. package/dist/chunk-OZLWSNUC.cjs.map +1 -0
  50. package/dist/{chunk-VW2C2AZL.js → chunk-RUB62J2X.js} +3 -3
  51. package/dist/{chunk-VW2C2AZL.js.map → chunk-RUB62J2X.js.map} +1 -1
  52. package/dist/{chunk-4UMXQPNA.js → chunk-VIU7AMHF.js} +4 -4
  53. package/dist/{chunk-4UMXQPNA.js.map → chunk-VIU7AMHF.js.map} +1 -1
  54. package/dist/{chunk-7HAM7Y5U.js → chunk-Y5KTM3V5.js} +22 -3
  55. package/dist/chunk-Y5KTM3V5.js.map +1 -0
  56. package/dist/{chunk-DWZXSPMB.cjs → chunk-ZAVEMQ37.cjs} +3 -3
  57. package/dist/{chunk-DWZXSPMB.cjs.map → chunk-ZAVEMQ37.cjs.map} +1 -1
  58. package/dist/{chunk-YIF6SVSO.js → chunk-ZNI4SW2G.js} +4 -4
  59. package/dist/{chunk-YIF6SVSO.js.map → chunk-ZNI4SW2G.js.map} +1 -1
  60. package/dist/collaboration/index.cjs +42 -42
  61. package/dist/collaboration/index.js +2 -2
  62. package/dist/connect/docx.cjs +6 -6
  63. package/dist/connect/docx.js +5 -5
  64. package/dist/connect/index.cjs +220 -131
  65. package/dist/connect/index.cjs.map +1 -1
  66. package/dist/connect/index.d.ts +2 -2
  67. package/dist/connect/index.js +142 -58
  68. package/dist/connect/index.js.map +1 -1
  69. package/dist/connection/ConnectedSkillUpload.d.ts +26 -2
  70. package/dist/connection/ConnectedWorkflowBuilder.d.ts +23 -11
  71. package/dist/connection/ConnectionProvider.d.ts +17 -0
  72. package/dist/facts/index.cjs +3 -3
  73. package/dist/facts/index.js +3 -3
  74. package/dist/files/index.cjs +2 -2
  75. package/dist/files/index.js +2 -2
  76. package/dist/home/index.cjs +2 -2
  77. package/dist/home/index.js +2 -2
  78. package/dist/index.cjs +616 -568
  79. package/dist/index.js +12 -12
  80. package/dist/retrieval/index.cjs +1 -1
  81. package/dist/retrieval/index.js +1 -1
  82. package/dist/settings/index.cjs +38 -38
  83. package/dist/settings/index.js +4 -4
  84. package/dist/shell/index.cjs +2 -2
  85. package/dist/shell/index.js +2 -2
  86. package/dist/studio/index.cjs +8 -8
  87. package/dist/studio/index.js +6 -6
  88. package/dist/workflow-canvas/index.cjs +109 -85
  89. package/dist/workflow-canvas/index.cjs.map +1 -1
  90. package/dist/workflow-canvas/index.d.ts +1 -1
  91. package/dist/workflow-canvas/index.js +60 -37
  92. package/dist/workflow-canvas/index.js.map +1 -1
  93. package/node_modules/@arbidocs/coedit/package.json +1 -1
  94. package/package.json +4 -4
  95. package/dist/chunk-4RLCRFZS.js.map +0 -1
  96. package/dist/chunk-54ANPPMV.js.map +0 -1
  97. package/dist/chunk-7HAM7Y5U.js.map +0 -1
  98. package/dist/chunk-ARDHLU73.cjs.map +0 -1
  99. package/dist/chunk-BMNNT27D.js.map +0 -1
  100. package/dist/chunk-HM23LXUP.cjs.map +0 -1
  101. package/dist/chunk-LC2KJSUS.cjs.map +0 -1
  102. package/dist/chunk-QUDCNT63.cjs.map +0 -1
@@ -1,2 +1,26 @@
1
- /** Import a main skill file; uploaded skills appear in the shared skill launcher. */
2
- export declare function ConnectedSkillUpload(): import("react").JSX.Element;
1
+ /**
2
+ * Add a skill someone gave you: a file from your computer (`.md` or `.zip`) or a link to one. Both
3
+ * go through the one skill upload (`useUploadSkillFiles`); the skill then appears in every skill
4
+ * list once it is processed.
5
+ */
6
+ export interface ConnectedSkillUploadLabels {
7
+ title: string;
8
+ description: string;
9
+ fromFile: string;
10
+ chooseFile: string;
11
+ fromLink: string;
12
+ linkPlaceholder: string;
13
+ add: string;
14
+ cancel: string;
15
+ /** The notification once a skill is added. */
16
+ added: (slug: string) => string;
17
+ failed: string;
18
+ }
19
+ export declare const DEFAULT_CONNECTED_SKILL_UPLOAD_LABELS: ConnectedSkillUploadLabels;
20
+ export interface ConnectedSkillUploadProps {
21
+ /** Added (its slug) or cancelled (nothing). Absent: no Cancel, and the form stays. */
22
+ onDone?: (addedSlug?: string) => void;
23
+ labels?: Partial<ConnectedSkillUploadLabels>;
24
+ className?: string;
25
+ }
26
+ export declare function ConnectedSkillUpload({ onDone, labels, className }: ConnectedSkillUploadProps): import("react").JSX.Element;
@@ -1,8 +1,10 @@
1
1
  /**
2
2
  * The workflow builder bound to the connection: it loads a saved workflow (or starts from the
3
- * host's value), offers the workspace's skills as steps an agent can run, its agents, the events
4
- * and tasks a workflow can start on, and saves the workflow (its trigger and its steps) or runs it
5
- * now. Every run is a work thread that runs the steps. Exported from
3
+ * host's value), offers the host's workflows and the user's skills as steps an agent can run, its
4
+ * agents, the people, labels, documents, events and tasks a workflow can use, and saves the
5
+ * workflow (its trigger and its steps) or runs it now. An unattended workflow that keeps standing
6
+ * access gives its agent the workspace once saved. Every run is a work thread that runs the steps.
7
+ * Saved and failed are told through the environment's `notify`. Exported from
6
8
  * `@arbidocs/blocks/workflow-canvas` (it brings the graph library).
7
9
  */
8
10
  import { type ReactNode } from 'react';
@@ -14,13 +16,20 @@ export interface ConnectedWorkflowBuilderLabels {
14
16
  save: string;
15
17
  saving: string;
16
18
  runNow: string;
19
+ /** The notification once saved. */
17
20
  saved: string;
18
21
  needTrigger: string;
19
22
  running: string;
20
- /** Shown when saving, the host's after-save step or the run fails without a message. */
21
- failed: string;
23
+ /** Notified when saving (or the after-save step) fails without a message. */
24
+ saveFailed: string;
25
+ /** Notified when "Run now" fails without a message. */
26
+ runFailed: string;
27
+ /** A task (to start after) without a title. */
28
+ untitledTask: string;
22
29
  }
23
30
  export declare const DEFAULT_CONNECTED_WORKFLOW_BUILDER_LABELS: ConnectedWorkflowBuilderLabels;
31
+ /** Where a new workflow starts: started by hand, one agent step to fill in. */
32
+ export declare function newWorkflowBuilderValue(): WorkflowBuilderValue;
24
33
  /**
25
34
  * A workspace event a workflow can start on: a notification type (what the API's `event_kind` check
26
35
  * accepts), except those the workflow engine emits itself, which the API refuses as a trigger (422).
@@ -49,18 +58,21 @@ export declare const DEFAULT_WORKFLOW_EVENT_KINDS: ({
49
58
  export interface ConnectedWorkflowBuilderProps extends Pick<StepComposeOptions, 'compose'>, Pick<WorkflowBuilderProps, 'renderIcon' | 'labels' | 'canvasLabels' | 'inspectorLabels' | 'triggerLabels' | 'testId' | 'className'> {
50
59
  /** A saved workflow to edit (`wfl-…`). */
51
60
  workflowId?: string;
52
- /** Where a new workflow starts (e.g. a built-in journey). */
53
- initial: WorkflowBuilderValue;
54
- /** Host workflows agent steps can run besides the workspace's skills (e.g. its own wording). */
61
+ /** Where a new workflow starts (e.g. a built-in journey). Default: one agent step. */
62
+ initial?: WorkflowBuilderValue;
63
+ /**
64
+ * Host workflows agent steps can run besides the user's skills (e.g. its built-ins with their own
65
+ * forms); an uploaded skill of the same id is used instead (`mergeSkillWorkflows`).
66
+ */
55
67
  workflows?: WorkflowDefinition[];
56
68
  eventKinds?: Array<{
57
69
  value: string;
58
70
  label: string;
59
71
  }>;
60
72
  /**
61
- * Saved (created or updated): its id and the value saved. It may return a promise for host setup
62
- * that must finish first (e.g. granting the chosen agent workspace access): "Save" waits for it
63
- * before showing saved, and "Run now" waits for it before running, and does not run if it rejects.
73
+ * Saved (created or updated, the agent's standing access granted): its id and the value saved.
74
+ * It may return a promise for host setup that must finish first: "Save" waits for it before
75
+ * telling saved, and "Run now" waits for it before running, and does not run if it rejects.
64
76
  */
65
77
  onSaved?: (workflowId: string, value: WorkflowBuilderValue) => void | Promise<void>;
66
78
  /** A run started: its thread. */
@@ -59,4 +59,21 @@ export declare function ConnectionProvider({ config, children, }: {
59
59
  }): import("react").JSX.Element;
60
60
  export declare function useConnection(): ConnectionValue;
61
61
  export declare const isAuthenticated: (s: ConnectionStatus) => s is "demo" | "authenticated";
62
+ /** The open workspace as the connected kits see it, whoever hosts them. */
63
+ export interface ConnectedWorkspace {
64
+ /** The selected workspace (the session state's). */
65
+ workspaceId: string | null;
66
+ /** Signed in to a live backend: workspace-scoped queries may run. */
67
+ live: boolean;
68
+ /** The signed-in user's external id. */
69
+ userId: string | undefined;
70
+ /** Re-assert the workspace on the server session before a workspace-scoped write. */
71
+ ensureWorkspaceOpen: () => Promise<void>;
72
+ }
73
+ /**
74
+ * The workspace for a connected kit: the `ConnectionProvider`'s when there is one, else the host's
75
+ * own session (an app that mounts `ArbiProvider` and `ArbiSessionStateProvider` and keeps its
76
+ * workspace open itself). So a kit runs the same in Clarum and in the ARBI app.
77
+ */
78
+ export declare function useConnectedWorkspace(): ConnectedWorkspace;
62
79
  export {};
@@ -9,13 +9,13 @@ var chunkRC25WMVB_cjs = require('../chunk-RC25WMVB.cjs');
9
9
  var chunkV4ISCZJ7_cjs = require('../chunk-V4ISCZJ7.cjs');
10
10
  var chunk2EI7NCUA_cjs = require('../chunk-2EI7NCUA.cjs');
11
11
  var chunkC2CWWEHO_cjs = require('../chunk-C2CWWEHO.cjs');
12
- var chunkBIXHB4LV_cjs = require('../chunk-BIXHB4LV.cjs');
13
12
  var chunk7RGLTF76_cjs = require('../chunk-7RGLTF76.cjs');
13
+ var chunkBIXHB4LV_cjs = require('../chunk-BIXHB4LV.cjs');
14
+ require('../chunk-C4WSHRR6.cjs');
15
+ require('../chunk-ULWRNGGE.cjs');
14
16
  require('../chunk-FX3K6LNZ.cjs');
15
17
  var chunkPPCATBOY_cjs = require('../chunk-PPCATBOY.cjs');
16
18
  var chunkMHVNT4J3_cjs = require('../chunk-MHVNT4J3.cjs');
17
- require('../chunk-C4WSHRR6.cjs');
18
- require('../chunk-ULWRNGGE.cjs');
19
19
  var chunkKDG6FER6_cjs = require('../chunk-KDG6FER6.cjs');
20
20
  require('../chunk-DES3K4SD.cjs');
21
21
  var lucideReact = require('lucide-react');
@@ -9,13 +9,13 @@ import { SelectionBar, SelectionBarAction } from '../chunk-NUNKSZKU.js';
9
9
  import { FilterInput } from '../chunk-YU2KUMGE.js';
10
10
  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';
11
11
  import { GridView } from '../chunk-N5YEF3LC.js';
12
- import { detectTimeZone, listTimeZones } from '../chunk-GTCC2VAR.js';
13
12
  import { TabHeader } from '../chunk-4WWM3GQ5.js';
13
+ import { detectTimeZone, listTimeZones } from '../chunk-GTCC2VAR.js';
14
+ import '../chunk-YNIBUKV5.js';
15
+ import '../chunk-TX2ZICS7.js';
14
16
  import '../chunk-SLSBJRWW.js';
15
17
  import { observeResize } from '../chunk-NPLYHR2E.js';
16
18
  import { testIdOr } from '../chunk-7F6CBP3Z.js';
17
- import '../chunk-YNIBUKV5.js';
18
- import '../chunk-TX2ZICS7.js';
19
19
  import { initials } from '../chunk-OXF2IFXG.js';
20
20
  import '../chunk-VUNV25KB.js';
21
21
  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';
@@ -13,12 +13,12 @@ var chunkDETZZBG2_cjs = require('../chunk-DETZZBG2.cjs');
13
13
  var chunkV4ISCZJ7_cjs = require('../chunk-V4ISCZJ7.cjs');
14
14
  var chunk2EI7NCUA_cjs = require('../chunk-2EI7NCUA.cjs');
15
15
  var chunkC2CWWEHO_cjs = require('../chunk-C2CWWEHO.cjs');
16
+ require('../chunk-C4WSHRR6.cjs');
17
+ var chunkULWRNGGE_cjs = require('../chunk-ULWRNGGE.cjs');
16
18
  var chunk32HW2Q33_cjs = require('../chunk-32HW2Q33.cjs');
17
19
  require('../chunk-FX3K6LNZ.cjs');
18
20
  require('../chunk-PPCATBOY.cjs');
19
21
  var chunkMHVNT4J3_cjs = require('../chunk-MHVNT4J3.cjs');
20
- require('../chunk-C4WSHRR6.cjs');
21
- var chunkULWRNGGE_cjs = require('../chunk-ULWRNGGE.cjs');
22
22
  var chunkKDG6FER6_cjs = require('../chunk-KDG6FER6.cjs');
23
23
  require('../chunk-DES3K4SD.cjs');
24
24
  var classVarianceAuthority = require('class-variance-authority');
@@ -14,12 +14,12 @@ export { DEFAULT_SELECTION_BAR_LABELS, SelectionBar, SelectionBarAction } from '
14
14
  import { FilterInput } from '../chunk-YU2KUMGE.js';
15
15
  import { GridView } from '../chunk-N5YEF3LC.js';
16
16
  export { GridView } from '../chunk-N5YEF3LC.js';
17
+ import '../chunk-YNIBUKV5.js';
18
+ import { ModalSection, ModalSectionTitle, ModalHeader } from '../chunk-TX2ZICS7.js';
17
19
  import { TONE_SURFACE } from '../chunk-AUS3KBHJ.js';
18
20
  import '../chunk-SLSBJRWW.js';
19
21
  import '../chunk-NPLYHR2E.js';
20
22
  import { testIdOr, prefixedTestId } from '../chunk-7F6CBP3Z.js';
21
- import '../chunk-YNIBUKV5.js';
22
- import { ModalSection, ModalSectionTitle, ModalHeader } from '../chunk-TX2ZICS7.js';
23
23
  import { formatCount } from '../chunk-OXF2IFXG.js';
24
24
  import '../chunk-VUNV25KB.js';
25
25
  import { cva } from 'class-variance-authority';
@@ -6,10 +6,10 @@ var chunkPCB2BPN3_cjs = require('../chunk-PCB2BPN3.cjs');
6
6
  var chunk44R3CCZT_cjs = require('../chunk-44R3CCZT.cjs');
7
7
  var chunk7D737FLE_cjs = require('../chunk-7D737FLE.cjs');
8
8
  var chunkR26BK7YL_cjs = require('../chunk-R26BK7YL.cjs');
9
- require('../chunk-PPCATBOY.cjs');
10
- var chunkMHVNT4J3_cjs = require('../chunk-MHVNT4J3.cjs');
11
9
  require('../chunk-C4WSHRR6.cjs');
12
10
  require('../chunk-ULWRNGGE.cjs');
11
+ require('../chunk-PPCATBOY.cjs');
12
+ var chunkMHVNT4J3_cjs = require('../chunk-MHVNT4J3.cjs');
13
13
  require('../chunk-KDG6FER6.cjs');
14
14
  require('../chunk-DES3K4SD.cjs');
15
15
  var lucideReact = require('lucide-react');
@@ -5,10 +5,10 @@ import { SectionHeader, EmptyStrip, QuickActionDialogHeader } from '../chunk-3FF
5
5
  export { AddFilesFirst, DEFAULT_ADD_FILES_FIRST_LABELS, DEFAULT_SCOPE_PICKER_LABELS, EmptyStrip, QuickActionDialogHeader, ScopePicker, SectionHeader, SectionLabel, StartTiles, useScopeSelection } from '../chunk-3FFRYZKV.js';
6
6
  export { FoldSection } from '../chunk-XD2M6LIG.js';
7
7
  import { ActionLink } from '../chunk-444XKG46.js';
8
- import '../chunk-NPLYHR2E.js';
9
- import { testIdOr, prefixedTestId } from '../chunk-7F6CBP3Z.js';
10
8
  import '../chunk-YNIBUKV5.js';
11
9
  import '../chunk-TX2ZICS7.js';
10
+ import '../chunk-NPLYHR2E.js';
11
+ import { testIdOr, prefixedTestId } from '../chunk-7F6CBP3Z.js';
12
12
  import '../chunk-OXF2IFXG.js';
13
13
  import '../chunk-VUNV25KB.js';
14
14
  import { Plus, PartyPopper, X, Trash2 } from 'lucide-react';