@arbidocs/blocks 0.4.79 → 0.4.81
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/dist/agents/index.cjs +278 -278
- package/dist/agents/index.js +3 -3
- package/dist/agents/workflows/StepBarFrame.d.ts +8 -2
- package/dist/agents/workflows/WorkflowRunner.d.ts +35 -3
- package/dist/agents/workflows/run.d.ts +10 -0
- package/dist/agents/workflows/stepWindow.d.ts +7 -0
- package/dist/agents/workflows/types.d.ts +4 -2
- package/dist/{chunk-5XVWGJ2H.cjs → chunk-B3WCKBJ7.cjs} +3 -3
- package/dist/{chunk-5XVWGJ2H.cjs.map → chunk-B3WCKBJ7.cjs.map} +1 -1
- package/dist/{chunk-YGUKTFKW.cjs → chunk-BX7JWZWE.cjs} +122 -14
- package/dist/chunk-BX7JWZWE.cjs.map +1 -0
- package/dist/{chunk-3YET6D5E.cjs → chunk-F5WIETZY.cjs} +58 -43
- package/dist/chunk-F5WIETZY.cjs.map +1 -0
- package/dist/{chunk-O35LRB3P.js → chunk-GJV2G4FC.js} +3 -3
- package/dist/{chunk-O35LRB3P.js.map → chunk-GJV2G4FC.js.map} +1 -1
- package/dist/{chunk-BMOL5DN6.js → chunk-I56ORHPY.js} +27 -12
- package/dist/chunk-I56ORHPY.js.map +1 -0
- package/dist/{chunk-CWAZNXC5.js → chunk-SWSVPQNB.js} +30 -8
- package/dist/chunk-SWSVPQNB.js.map +1 -0
- package/dist/{chunk-6GXF62XN.js → chunk-THCFZKTM.js} +118 -15
- package/dist/chunk-THCFZKTM.js.map +1 -0
- package/dist/{chunk-MLAHDAN5.cjs → chunk-UA2AMDR6.cjs} +30 -8
- package/dist/chunk-UA2AMDR6.cjs.map +1 -0
- package/dist/connect/index.cjs +145 -62
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.d.ts +1 -1
- package/dist/connect/index.js +106 -23
- package/dist/connect/index.js.map +1 -1
- package/dist/connection/ConnectedWorkflowRunner.d.ts +30 -4
- package/dist/files/index.cjs +2 -2
- package/dist/files/index.js +2 -2
- package/dist/index.cjs +467 -467
- package/dist/index.js +7 -7
- package/dist/settings/index.cjs +35 -35
- package/dist/settings/index.js +3 -3
- package/dist/workflow-canvas/index.cjs +46 -46
- package/dist/workflow-canvas/index.js +3 -3
- package/dist/workspaces/index.cjs +1 -1
- package/dist/workspaces/index.js +1 -1
- package/package.json +4 -4
- package/dist/chunk-3YET6D5E.cjs.map +0 -1
- package/dist/chunk-6GXF62XN.js.map +0 -1
- package/dist/chunk-BMOL5DN6.js.map +0 -1
- package/dist/chunk-CWAZNXC5.js.map +0 -1
- package/dist/chunk-MLAHDAN5.cjs.map +0 -1
- package/dist/chunk-YGUKTFKW.cjs.map +0 -1
|
@@ -5,10 +5,12 @@
|
|
|
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';
|
|
11
12
|
import { type UseWorkflowThreadOptions } from './useWorkflowThread';
|
|
13
|
+
import type { ChatCitationTarget } from '../chat/chat-page-types';
|
|
12
14
|
import { type WorkflowRunnerDialogLabels } from './WorkflowRunnerDialogs';
|
|
13
15
|
export interface ConnectedWorkflowRunnerLabels {
|
|
14
16
|
notify: string;
|
|
@@ -22,7 +24,7 @@ export interface ConnectedWorkflowRunnerLabels {
|
|
|
22
24
|
openThread: string;
|
|
23
25
|
}
|
|
24
26
|
export declare const DEFAULT_CONNECTED_WORKFLOW_RUNNER_LABELS: ConnectedWorkflowRunnerLabels;
|
|
25
|
-
export interface ConnectedWorkflowRunnerProps extends Omit<WorkflowRunnerProps, 'run' | 'renderAgentOutput' | 'onUpload' | 'uploading' | 'files' | 'renderReview' | 'actions' | 'nameOfDoc'> {
|
|
27
|
+
export interface ConnectedWorkflowRunnerProps extends Omit<WorkflowRunnerProps, 'run' | 'renderAgentOutput' | 'onUpload' | 'uploading' | 'files' | 'onRetryUpload' | 'onRemoveUpload' | 'renderReview' | 'actions' | 'nameOfDoc'> {
|
|
26
28
|
workflow: WorkflowDefinition;
|
|
27
29
|
/** The run's bindings: an existing thread, commits, prompt wording, workflow lookup. */
|
|
28
30
|
options?: UseWorkflowThreadOptions;
|
|
@@ -31,8 +33,17 @@ export interface ConnectedWorkflowRunnerProps extends Omit<WorkflowRunnerProps,
|
|
|
31
33
|
/** The muted line an agent step shows before its answer. */
|
|
32
34
|
emptyHint?: (step: WorkflowAgentStep) => string | undefined;
|
|
33
35
|
connectedLabels?: Partial<ConnectedWorkflowRunnerLabels>;
|
|
34
|
-
/**
|
|
35
|
-
|
|
36
|
+
/**
|
|
37
|
+
* Open a document (a version: `version`; at a page: `page`, from a citation): the host
|
|
38
|
+
* navigates. Absent: no document links. In the thread layout a citation opens its document with
|
|
39
|
+
* it too, unless `onOpenCitation` is given.
|
|
40
|
+
*/
|
|
41
|
+
onOpenDocument?: (documentId: string, version?: number, page?: number) => void;
|
|
42
|
+
/**
|
|
43
|
+
* The thread layout's citation open action, as `ChatPage`'s `onOpenCitation` (the cited
|
|
44
|
+
* document, page and passage). Absent: `onOpenDocument`; neither: citations offer no open.
|
|
45
|
+
*/
|
|
46
|
+
onOpenCitation?: (target: ChatCitationTarget) => void;
|
|
36
47
|
/** Open an email step's draft in native mail (the host's mail screen). Absent: no button. */
|
|
37
48
|
onOpenDraft?: (draftId: string) => void;
|
|
38
49
|
/** Show an answer in the run's thread. Absent: no link. */
|
|
@@ -51,7 +62,22 @@ export interface ConnectedWorkflowRunnerProps extends Omit<WorkflowRunnerProps,
|
|
|
51
62
|
* a time, each answer shown in full.
|
|
52
63
|
*/
|
|
53
64
|
layout?: 'thread' | 'guided';
|
|
65
|
+
/**
|
|
66
|
+
* Which of the workspace's documents an upload step lists (the files "in this matter"): the
|
|
67
|
+
* host hides what is not the matter's own, e.g. skill files kept as workspace documents —
|
|
68
|
+
* `(doc) => !(doc.folder ?? '').startsWith('skills')`. Files added on the run's upload steps are
|
|
69
|
+
* always listed. Absent: every document.
|
|
70
|
+
*/
|
|
71
|
+
fileFilter?: (doc: WorkflowRunnerDocument) => boolean;
|
|
54
72
|
}
|
|
55
|
-
|
|
73
|
+
/** A workspace document, as `fileFilter` sees it. */
|
|
74
|
+
export type WorkflowRunnerDocument = NonNullable<ReturnType<typeof useDocuments>['data']>[number];
|
|
75
|
+
export declare function ConnectedWorkflowRunner({ workflow, options, onOpenConversation, emptyHint, connectedLabels, onOpenDocument, onOpenCitation, onOpenDraft, onOpenMessage, actions: hostActions, dialogLabels, layout, fileFilter, testIdPrefix, ...runnerProps }: ConnectedWorkflowRunnerProps): import("react").JSX.Element;
|
|
76
|
+
/**
|
|
77
|
+
* The upload step's files: the workspace's documents the host's `fileFilter` keeps, plus every
|
|
78
|
+
* file added on one of the run's upload steps (`added`: doc id -> step id), which the step waits on.
|
|
79
|
+
* A file added that the workspace does not list yet is shown as being read (`names` gives its name).
|
|
80
|
+
*/
|
|
81
|
+
export declare function runnerFiles(docs: WorkflowRunnerDocument[], added: Record<string, string>, fileFilter?: (doc: WorkflowRunnerDocument) => boolean, names?: Record<string, string>): WorkflowRunnerFile[];
|
|
56
82
|
/** A document's processing status as the upload step shows it; unknown stays unknown. */
|
|
57
83
|
export declare function fileStatus(status: string | null | undefined): WorkflowRunnerFile['status'];
|
package/dist/files/index.cjs
CHANGED
|
@@ -12,11 +12,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
14
|
require('../chunk-C54XEN5T.cjs');
|
|
15
|
-
var chunkVLCY46K6_cjs = require('../chunk-VLCY46K6.cjs');
|
|
16
|
-
var chunkULWRNGGE_cjs = require('../chunk-ULWRNGGE.cjs');
|
|
17
15
|
require('../chunk-FX3K6LNZ.cjs');
|
|
18
16
|
require('../chunk-PPCATBOY.cjs');
|
|
19
17
|
var chunkKDG6FER6_cjs = require('../chunk-KDG6FER6.cjs');
|
|
18
|
+
var chunkVLCY46K6_cjs = require('../chunk-VLCY46K6.cjs');
|
|
19
|
+
var chunkULWRNGGE_cjs = require('../chunk-ULWRNGGE.cjs');
|
|
20
20
|
var chunkMHVNT4J3_cjs = require('../chunk-MHVNT4J3.cjs');
|
|
21
21
|
require('../chunk-DES3K4SD.cjs');
|
|
22
22
|
var classVarianceAuthority = require('class-variance-authority');
|
package/dist/files/index.js
CHANGED
|
@@ -13,11 +13,11 @@ import { GridView } from '../chunk-ZPLG7QYF.js';
|
|
|
13
13
|
export { GridView } from '../chunk-ZPLG7QYF.js';
|
|
14
14
|
import { ActionLink } from '../chunk-S7PSMMRG.js';
|
|
15
15
|
import '../chunk-76JDDMSP.js';
|
|
16
|
-
import { ShareControl } from '../chunk-K4BGOPGG.js';
|
|
17
|
-
import { ModalSection, ModalSectionTitle, ModalHeader } from '../chunk-TX2ZICS7.js';
|
|
18
16
|
import '../chunk-SLSBJRWW.js';
|
|
19
17
|
import '../chunk-NPLYHR2E.js';
|
|
20
18
|
import { formatCount } from '../chunk-OXF2IFXG.js';
|
|
19
|
+
import { ShareControl } from '../chunk-K4BGOPGG.js';
|
|
20
|
+
import { ModalSection, ModalSectionTitle, ModalHeader } from '../chunk-TX2ZICS7.js';
|
|
21
21
|
import { testIdOr } from '../chunk-7F6CBP3Z.js';
|
|
22
22
|
import '../chunk-VUNV25KB.js';
|
|
23
23
|
import { cva } from 'class-variance-authority';
|