@arbidocs/blocks 0.4.93 → 0.4.94
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 +283 -283
- package/dist/agents/index.js +7 -7
- package/dist/{chunk-6XS5IJ5R.cjs → chunk-3OXWJ3CZ.cjs} +5 -5
- package/dist/{chunk-6XS5IJ5R.cjs.map → chunk-3OXWJ3CZ.cjs.map} +1 -1
- package/dist/{chunk-3WW32OUU.cjs → chunk-3US5OIDQ.cjs} +3 -3
- package/dist/{chunk-3WW32OUU.cjs.map → chunk-3US5OIDQ.cjs.map} +1 -1
- package/dist/chunk-AF6RDAJF.js +14 -0
- package/dist/chunk-AF6RDAJF.js.map +1 -0
- package/dist/chunk-AOFATOT3.cjs +196 -0
- package/dist/chunk-AOFATOT3.cjs.map +1 -0
- package/dist/chunk-D3QPYKZG.js +173 -0
- package/dist/chunk-D3QPYKZG.js.map +1 -0
- package/dist/{chunk-2ZDFVRGV.cjs → chunk-E2AAIMXO.cjs} +975 -61
- package/dist/chunk-E2AAIMXO.cjs.map +1 -0
- package/dist/{chunk-MROSCSPW.cjs → chunk-KKU7MUWE.cjs} +46 -46
- package/dist/{chunk-MROSCSPW.cjs.map → chunk-KKU7MUWE.cjs.map} +1 -1
- package/dist/{chunk-AMC5PMJ3.cjs → chunk-LENXDIMY.cjs} +36 -68
- package/dist/chunk-LENXDIMY.cjs.map +1 -0
- package/dist/{chunk-SF4BDUZS.js → chunk-PGDL26TQ.js} +3 -3
- package/dist/{chunk-SF4BDUZS.js.map → chunk-PGDL26TQ.js.map} +1 -1
- package/dist/chunk-RC25WMVB.cjs +16 -0
- package/dist/chunk-RC25WMVB.cjs.map +1 -0
- package/dist/{chunk-5YXG342J.cjs → chunk-RPCQBET5.cjs} +3 -3
- package/dist/{chunk-5YXG342J.cjs.map → chunk-RPCQBET5.cjs.map} +1 -1
- package/dist/{chunk-YFPIJUV3.cjs → chunk-RZGVMV6B.cjs} +5 -5
- package/dist/{chunk-YFPIJUV3.cjs.map → chunk-RZGVMV6B.cjs.map} +1 -1
- package/dist/{chunk-W2R7YVFM.js → chunk-WXLKMEMB.js} +970 -65
- package/dist/chunk-WXLKMEMB.js.map +1 -0
- package/dist/{chunk-BX62HJZU.js → chunk-YPKSLTL5.js} +3 -3
- package/dist/{chunk-BX62HJZU.js.map → chunk-YPKSLTL5.js.map} +1 -1
- package/dist/{chunk-UO74FLRK.js → chunk-Z3G65XHZ.js} +22 -53
- package/dist/chunk-Z3G65XHZ.js.map +1 -0
- package/dist/{chunk-W7NZRZ54.js → chunk-Z7OMEYDG.js} +3 -3
- package/dist/{chunk-W7NZRZ54.js.map → chunk-Z7OMEYDG.js.map} +1 -1
- package/dist/{chunk-UDLMLU6T.js → chunk-ZNDAXSDP.js} +3 -3
- package/dist/{chunk-UDLMLU6T.js.map → chunk-ZNDAXSDP.js.map} +1 -1
- package/dist/{chunk-SJVUKXS6.js → chunk-ZNGDEQBN.js} +8 -8
- package/dist/{chunk-SJVUKXS6.js.map → chunk-ZNGDEQBN.js.map} +1 -1
- package/dist/connect/docx.cjs +8 -6
- package/dist/connect/docx.cjs.map +1 -1
- package/dist/connect/docx.js +6 -4
- package/dist/connect/docx.js.map +1 -1
- package/dist/connect/index.cjs +55 -53
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.js +11 -9
- package/dist/connect/index.js.map +1 -1
- package/dist/docx/NativeDocxEditor.d.ts +6 -0
- package/dist/docx/definitions/DefinedTerms.d.ts +50 -0
- package/dist/docx/definitions/commands.d.ts +78 -0
- package/dist/docx/definitions/fragment.d.ts +29 -0
- package/dist/docx/definitions/port.d.ts +76 -0
- package/dist/docx/index.cjs +53 -15
- package/dist/docx/index.cjs.map +1 -1
- package/dist/docx/index.d.ts +3 -0
- package/dist/docx/index.js +5 -3
- package/dist/docx/index.js.map +1 -1
- package/dist/facts/index.cjs +9 -14
- package/dist/facts/index.cjs.map +1 -1
- package/dist/facts/index.js +5 -12
- package/dist/facts/index.js.map +1 -1
- package/dist/files/index.cjs +2 -2
- package/dist/files/index.js +2 -2
- package/dist/home/index.cjs +1 -1
- package/dist/home/index.js +1 -1
- package/dist/index.cjs +914 -774
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +102 -15
- package/dist/index.js.map +1 -1
- package/dist/settings/index.cjs +35 -35
- package/dist/settings/index.js +3 -3
- package/dist/shell/index.cjs +1 -1
- package/dist/shell/index.js +1 -1
- package/dist/studio/index.cjs +1 -1
- package/dist/studio/index.js +1 -1
- package/dist/tags/definitions.d.ts +92 -0
- package/dist/tags/glossary.d.ts +44 -0
- package/dist/tags/index.d.ts +2 -0
- package/dist/tags/ooxml.d.ts +46 -0
- package/dist/tags/tagTableDocx.d.ts +1 -1
- package/dist/workflow-canvas/index.cjs +50 -50
- package/dist/workflow-canvas/index.js +7 -7
- package/dist/workspaces/index.cjs +1 -1
- package/dist/workspaces/index.js +1 -1
- package/package.json +4 -4
- package/src/docx/README.md +11 -0
- package/dist/chunk-2ZDFVRGV.cjs.map +0 -1
- package/dist/chunk-AMC5PMJ3.cjs.map +0 -1
- package/dist/chunk-UO74FLRK.js.map +0 -1
- package/dist/chunk-W2R7YVFM.js.map +0 -1
package/dist/studio/index.cjs
CHANGED
|
@@ -10,12 +10,12 @@ require('../chunk-VPPX5XUF.cjs');
|
|
|
10
10
|
var chunkPCB2BPN3_cjs = require('../chunk-PCB2BPN3.cjs');
|
|
11
11
|
var chunkZW6FPIFC_cjs = require('../chunk-ZW6FPIFC.cjs');
|
|
12
12
|
require('../chunk-OB5F4577.cjs');
|
|
13
|
+
var chunkC54XEN5T_cjs = require('../chunk-C54XEN5T.cjs');
|
|
13
14
|
require('../chunk-MP6FK43E.cjs');
|
|
14
15
|
require('../chunk-VGOFFCMT.cjs');
|
|
15
16
|
require('../chunk-B4SRYJLM.cjs');
|
|
16
17
|
require('../chunk-7UTB4PHM.cjs');
|
|
17
18
|
require('../chunk-PPCATBOY.cjs');
|
|
18
|
-
var chunkC54XEN5T_cjs = require('../chunk-C54XEN5T.cjs');
|
|
19
19
|
var chunkKDG6FER6_cjs = require('../chunk-KDG6FER6.cjs');
|
|
20
20
|
require('../chunk-MHVNT4J3.cjs');
|
|
21
21
|
require('../chunk-DES3K4SD.cjs');
|
package/dist/studio/index.js
CHANGED
|
@@ -9,12 +9,12 @@ import '../chunk-4EZVCGRL.js';
|
|
|
9
9
|
import { Callout } from '../chunk-UJE32SST.js';
|
|
10
10
|
import { EmptyState } from '../chunk-P6GHJSLR.js';
|
|
11
11
|
import '../chunk-S7PSMMRG.js';
|
|
12
|
+
import { useBlocksEnvironment } from '../chunk-76JDDMSP.js';
|
|
12
13
|
import '../chunk-EWSEQEPL.js';
|
|
13
14
|
import '../chunk-KZJAG7T3.js';
|
|
14
15
|
import '../chunk-HOXKR26S.js';
|
|
15
16
|
import '../chunk-AA3PT6KR.js';
|
|
16
17
|
import '../chunk-NPLYHR2E.js';
|
|
17
|
-
import { useBlocksEnvironment } from '../chunk-76JDDMSP.js';
|
|
18
18
|
import { formatCount } from '../chunk-OXF2IFXG.js';
|
|
19
19
|
import '../chunk-7F6CBP3Z.js';
|
|
20
20
|
import '../chunk-VUNV25KB.js';
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Defined terms. A definition is an ordinary fact carrying the workspace's "Definitions" label; its
|
|
3
|
+
* TERM is read from the start of its text — `"Shares" means …`, `**Business Day** shall mean …`,
|
|
4
|
+
* `Completion: the date …` — and facts defining the same term (one per agreement, say) are grouped,
|
|
5
|
+
* a confirmed one preferred over the rest, then the most recent. Pure helpers, no React: the Word
|
|
6
|
+
* editor inserts terms with them and the Tags page prints the glossary with them.
|
|
7
|
+
*/
|
|
8
|
+
/** The label that marks a fact as a definition. */
|
|
9
|
+
export declare const DEFINITIONS_LABEL = "Definitions";
|
|
10
|
+
/** A label on a definition other than {@link DEFINITIONS_LABEL} (e.g. the agreement it is from). */
|
|
11
|
+
export interface DefinitionLabel {
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
}
|
|
15
|
+
/** A definition fact, as the host reads it. */
|
|
16
|
+
export interface DefinitionSource {
|
|
17
|
+
/** The fact's id (`fct-…`). */
|
|
18
|
+
id: string;
|
|
19
|
+
/** The fact text, as written (it may be Markdown). */
|
|
20
|
+
text: string;
|
|
21
|
+
/** A human vouched for it: preferred over unconfirmed definitions of the same term. */
|
|
22
|
+
confirmed?: boolean;
|
|
23
|
+
/** ISO time it was last written; the most recent wins between equals. */
|
|
24
|
+
updatedAt?: string;
|
|
25
|
+
/** Where it comes from: the cited document's name. */
|
|
26
|
+
source?: string;
|
|
27
|
+
/** Its other labels, e.g. the agreement ("SPA") it defines a term of. */
|
|
28
|
+
labels?: DefinitionLabel[];
|
|
29
|
+
}
|
|
30
|
+
/** A definition's text split into its term and the rest. */
|
|
31
|
+
export interface ParsedDefinition {
|
|
32
|
+
/** The term as written, without quotes or emphasis (`Business Day`). */
|
|
33
|
+
term: string;
|
|
34
|
+
/** What follows the term, its connecting word included (`means a day …`, `: the date …`). */
|
|
35
|
+
rest: string;
|
|
36
|
+
/** Just the meaning, the connecting word dropped (`a day …`). */
|
|
37
|
+
meaning: string;
|
|
38
|
+
}
|
|
39
|
+
/** A parsed definition fact. */
|
|
40
|
+
export interface Definition extends DefinitionSource, ParsedDefinition {
|
|
41
|
+
/** The term's matching key (case and whitespace folded). */
|
|
42
|
+
key: string;
|
|
43
|
+
}
|
|
44
|
+
/** Every definition of one term, the preferred one first. */
|
|
45
|
+
export interface DefinedTermGroup {
|
|
46
|
+
key: string;
|
|
47
|
+
/** The term as the preferred definition writes it. */
|
|
48
|
+
term: string;
|
|
49
|
+
/** The preferred definition (first of {@link DefinedTermGroup.definitions}). */
|
|
50
|
+
preferred: Definition;
|
|
51
|
+
definitions: Definition[];
|
|
52
|
+
}
|
|
53
|
+
/** The matching key of a term: case and whitespace folded, quotes and emphasis dropped. */
|
|
54
|
+
export declare function termKey(term: string): string;
|
|
55
|
+
/**
|
|
56
|
+
* Read a definition's term from the start of its text, or `null` when it does not start with one.
|
|
57
|
+
*
|
|
58
|
+
* Optional straight or curly quotes and bold markers around the term are dropped; the term is what
|
|
59
|
+
* comes before "means", "shall mean", "includes", "has the meaning", a colon, or a dash. A quoted
|
|
60
|
+
* term is taken whole, so `"Long-Stop Date" means …` keeps its hyphen.
|
|
61
|
+
*/
|
|
62
|
+
export declare function parseDefinition(text: string): ParsedDefinition | null;
|
|
63
|
+
/** A definition parsed, or `null` when its text names no term. */
|
|
64
|
+
export declare function toDefinition(source: DefinitionSource): Definition | null;
|
|
65
|
+
/** Preferred first: confirmed, then most recently written, then by id (stable). */
|
|
66
|
+
export declare function compareDefinitions(a: DefinitionSource, b: DefinitionSource): number;
|
|
67
|
+
/** Alphabetical order of terms, as a reader sorts a glossary (case and accents folded). */
|
|
68
|
+
export declare const compareTerms: (a: string, b: string) => number;
|
|
69
|
+
/**
|
|
70
|
+
* Definitions grouped by term, alphabetically, each group's preferred definition first. Facts whose
|
|
71
|
+
* text names no term are returned apart (`unparsed`), so a host can say how many it could not read.
|
|
72
|
+
* With `labelId`, only definitions carrying that label (one agreement's, say) are kept.
|
|
73
|
+
*/
|
|
74
|
+
export declare function groupDefinitions(sources: readonly DefinitionSource[], options?: {
|
|
75
|
+
labelId?: string | null;
|
|
76
|
+
}): {
|
|
77
|
+
groups: DefinedTermGroup[];
|
|
78
|
+
unparsed: DefinitionSource[];
|
|
79
|
+
};
|
|
80
|
+
/** The labels (agreements) definitions carry besides the Definitions label, by name. */
|
|
81
|
+
export declare function definitionLabels(sources: readonly DefinitionSource[]): DefinitionLabel[];
|
|
82
|
+
/** Groups whose term matches a typed query: prefix matches first, then any word, then anywhere. */
|
|
83
|
+
export declare function filterTermGroups(groups: readonly DefinedTermGroup[], query: string): DefinedTermGroup[];
|
|
84
|
+
/** Prefix of every bookmark a defined term links to: hidden in Word (leading underscore). */
|
|
85
|
+
export declare const DEFINITION_BOOKMARK_PREFIX = "_dt_";
|
|
86
|
+
/**
|
|
87
|
+
* The Word bookmark of a definition: `_dt_` and the fact id in valid bookmark characters
|
|
88
|
+
* (`fct-AbC12345` → `_dt_fct_AbC12345`), at most 40 characters as Word requires.
|
|
89
|
+
*/
|
|
90
|
+
export declare function definitionBookmark(factId: string): string;
|
|
91
|
+
/** The fact id a definition bookmark names, or `null` for any other bookmark. */
|
|
92
|
+
export declare function definitionIdOfBookmark(name: string): string | null;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The glossary: every definition fact (optionally one agreement's), alphabetical by term, as a
|
|
3
|
+
* three-column table — Term, Definition, Source — printed as a Word document or as Markdown with
|
|
4
|
+
* the same WordprocessingML the tag tables export with (`ooxml.ts`).
|
|
5
|
+
*/
|
|
6
|
+
import { type DefinitionSource } from './definitions';
|
|
7
|
+
/** One glossary row. */
|
|
8
|
+
export interface GlossaryEntry {
|
|
9
|
+
/** Empty for a definition whose text names no term (listed last, as written). */
|
|
10
|
+
term: string;
|
|
11
|
+
definition: string;
|
|
12
|
+
source: string;
|
|
13
|
+
factId: string;
|
|
14
|
+
}
|
|
15
|
+
export interface GlossaryLabels {
|
|
16
|
+
term: string;
|
|
17
|
+
definition: string;
|
|
18
|
+
source: string;
|
|
19
|
+
/** `{at}` is when it was printed, `YYYY-MM-DD HH:MM UTC`. */
|
|
20
|
+
takenAt: string;
|
|
21
|
+
empty: string;
|
|
22
|
+
}
|
|
23
|
+
export declare const DEFAULT_GLOSSARY_LABELS: GlossaryLabels;
|
|
24
|
+
export interface GlossaryOptions {
|
|
25
|
+
title: string;
|
|
26
|
+
/** When it was printed (ISO); default now. */
|
|
27
|
+
at?: string;
|
|
28
|
+
labels?: Partial<GlossaryLabels>;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* The glossary's rows: every definition, alphabetical by term and, within a term, the preferred one
|
|
32
|
+
* first. Definitions whose text names no term follow, as written. `labelId` keeps one label's.
|
|
33
|
+
*/
|
|
34
|
+
export declare function glossaryEntries(sources: readonly DefinitionSource[], options?: {
|
|
35
|
+
labelId?: string | null;
|
|
36
|
+
}): GlossaryEntry[];
|
|
37
|
+
/** The glossary as a Markdown document: a heading, when it was printed, and one table. */
|
|
38
|
+
export declare function glossaryMarkdown(entries: readonly GlossaryEntry[], options: GlossaryOptions): string;
|
|
39
|
+
/** `word/document.xml` of the glossary (exposed for tests). */
|
|
40
|
+
export declare function glossaryDocumentXml(entries: readonly GlossaryEntry[], options: GlossaryOptions): string;
|
|
41
|
+
/** The glossary as `.docx` bytes. */
|
|
42
|
+
export declare function glossaryDocx(entries: readonly GlossaryEntry[], options: GlossaryOptions): Uint8Array;
|
|
43
|
+
/** A file name for the glossary: `Glossary - SPA.docx`. */
|
|
44
|
+
export declare function glossaryFileName(title: string, extension: 'docx' | 'md'): string;
|
package/dist/tags/index.d.ts
CHANGED
|
@@ -9,3 +9,5 @@ export { TagDetail, DEFAULT_TAG_DETAIL_LABELS, type TagDetailProps, type TagDeta
|
|
|
9
9
|
export { TagsNav, findTagsNavItem, DEFAULT_TAGS_NAV_LABELS, type TagsNavProps, type TagsNavLabels, type TagsNavGroup, type TagsNavItem, type TagsNavSelection, } from './TagsNav';
|
|
10
10
|
export { tagTableMarkdown, cellValue, cellText, parseCell, isGap, rowLinks, fieldWrites, type TagTableData, type TagTableRow, type TagTableLinks, type TagTableField, type TagTableFieldType, type TagTableFieldWrite, type TagTableMarkdownOptions, } from './tagTableModel';
|
|
11
11
|
export { tagTableDocx, tagTableDocumentXml, DEFAULT_TAG_TABLE_DOCX_LABELS, TAG_TABLE_DOCX_LANDSCAPE_AFTER, type TagTableDocxLabels, type TagTableDocxOptions, } from './tagTableDocx';
|
|
12
|
+
export { DEFINITIONS_LABEL, DEFINITION_BOOKMARK_PREFIX, parseDefinition, toDefinition, termKey, groupDefinitions, definitionLabels, filterTermGroups, compareDefinitions, compareTerms, definitionBookmark, definitionIdOfBookmark, type DefinitionSource, type DefinitionLabel, type Definition, type DefinedTermGroup, type ParsedDefinition, } from './definitions';
|
|
13
|
+
export { glossaryEntries, glossaryMarkdown, glossaryDocx, glossaryDocumentXml, glossaryFileName, DEFAULT_GLOSSARY_LABELS, type GlossaryEntry, type GlossaryLabels, type GlossaryOptions, } from './glossary';
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The small WordprocessingML vocabulary the tags exports write: escaped runs, paragraphs, table
|
|
3
|
+
* cells, an A4 page, and the minimal package around a `word/document.xml`. Zipped with `fflate`, so
|
|
4
|
+
* the result opens in the native Word editor and in Word without pulling the editor engine in.
|
|
5
|
+
*/
|
|
6
|
+
export declare const DOCX_MIME_TYPE = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
7
|
+
export declare const W_NAMESPACES = "xmlns:w=\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\" xmlns:r=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships\"";
|
|
8
|
+
/** Text as XML character data or an attribute value. */
|
|
9
|
+
export declare const esc: (text: string) => string;
|
|
10
|
+
export interface Run {
|
|
11
|
+
text: string;
|
|
12
|
+
bold?: boolean;
|
|
13
|
+
italic?: boolean;
|
|
14
|
+
muted?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare const run: ({ text, bold, italic, muted }: Run) => string;
|
|
17
|
+
export declare const paragraph: (runs: Run[], style?: string) => string;
|
|
18
|
+
/** A table cell: its paragraphs (a cell must hold at least one), shaded when given a fill. */
|
|
19
|
+
export declare const cell: (paragraphs: string[], width: number, fill?: string) => string;
|
|
20
|
+
/** Page geometry in twips (A4), turned for landscape. */
|
|
21
|
+
export declare function page(landscape: boolean): {
|
|
22
|
+
margin: number;
|
|
23
|
+
textWidth: number;
|
|
24
|
+
sectPr: string;
|
|
25
|
+
};
|
|
26
|
+
/** `YYYY-MM-DD HH:MM` (UTC) of an ISO time, for a "taken at" line. */
|
|
27
|
+
export declare const minuteUtc: (at: string) => string;
|
|
28
|
+
/** A `word/document.xml` around body content (paragraphs, tables, then the section). */
|
|
29
|
+
export declare const documentXml: (body: string) => string;
|
|
30
|
+
/** `word/styles.xml` holding the given style definitions. */
|
|
31
|
+
export declare const stylesXml: (defaults: string, styles: string) => string;
|
|
32
|
+
/** Calibri 11pt (en-GB), 8pt after each paragraph: the document defaults the exports share. */
|
|
33
|
+
export declare const DOC_DEFAULTS = "<w:docDefaults><w:rPrDefault><w:rPr><w:rFonts w:ascii=\"Calibri\" w:hAnsi=\"Calibri\" w:eastAsia=\"Calibri\" w:cs=\"Calibri\"/><w:sz w:val=\"22\"/><w:szCs w:val=\"22\"/><w:lang w:val=\"en-GB\"/></w:rPr></w:rPrDefault><w:pPrDefault><w:pPr><w:spacing w:after=\"160\" w:line=\"259\" w:lineRule=\"auto\"/></w:pPr></w:pPrDefault></w:docDefaults>";
|
|
34
|
+
/**
|
|
35
|
+
* Styles of a document that is a title and a table: `Title`, the compact `TagTableCell` paragraph
|
|
36
|
+
* and the bordered `TagTableGrid` table.
|
|
37
|
+
*/
|
|
38
|
+
export declare const TABLE_DOCUMENT_STYLES: string;
|
|
39
|
+
/** The minimal `.docx` package: a document, its styles, and its title and time. */
|
|
40
|
+
export declare function docxPackage(parts: {
|
|
41
|
+
document: string;
|
|
42
|
+
styles: string;
|
|
43
|
+
title: string;
|
|
44
|
+
/** ISO time; default now. */
|
|
45
|
+
at?: string;
|
|
46
|
+
}): Uint8Array;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* in Word without pulling the editor engine into the tags module.
|
|
7
7
|
*/
|
|
8
8
|
import { type TagTableData } from './tagTableModel';
|
|
9
|
-
export
|
|
9
|
+
export { DOCX_MIME_TYPE } from './ooxml';
|
|
10
10
|
/** More table columns than this (item, fields, evidence, gaps) turn the page to landscape. */
|
|
11
11
|
export declare const TAG_TABLE_DOCX_LANDSCAPE_AFTER = 6;
|
|
12
12
|
export interface TagTableDocxLabels {
|
|
@@ -2,28 +2,28 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var chunkMUMH3Z6K_cjs = require('../chunk-MUMH3Z6K.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkKKU7MUWE_cjs = require('../chunk-KKU7MUWE.cjs');
|
|
6
6
|
require('../chunk-S5HZBXZA.cjs');
|
|
7
7
|
require('../chunk-ZW6FPIFC.cjs');
|
|
8
|
-
var
|
|
8
|
+
var chunk3US5OIDQ_cjs = require('../chunk-3US5OIDQ.cjs');
|
|
9
9
|
require('../chunk-N26CXGXC.cjs');
|
|
10
10
|
require('../chunk-7RGLTF76.cjs');
|
|
11
|
-
require('../chunk-Z5VUZ6YD.cjs');
|
|
12
|
-
require('../chunk-7D737FLE.cjs');
|
|
13
11
|
require('../chunk-3AFWGEDJ.cjs');
|
|
14
12
|
require('../chunk-DVUZTGVL.cjs');
|
|
15
13
|
require('../chunk-DETZZBG2.cjs');
|
|
16
14
|
var chunk32HW2Q33_cjs = require('../chunk-32HW2Q33.cjs');
|
|
17
15
|
require('../chunk-V4ISCZJ7.cjs');
|
|
18
16
|
require('../chunk-2EI7NCUA.cjs');
|
|
17
|
+
require('../chunk-Z5VUZ6YD.cjs');
|
|
18
|
+
require('../chunk-7D737FLE.cjs');
|
|
19
19
|
require('../chunk-OB5F4577.cjs');
|
|
20
|
+
require('../chunk-C54XEN5T.cjs');
|
|
21
|
+
require('../chunk-ULWRNGGE.cjs');
|
|
22
|
+
require('../chunk-IXALYQT7.cjs');
|
|
20
23
|
require('../chunk-B4SRYJLM.cjs');
|
|
21
24
|
require('../chunk-7UTB4PHM.cjs');
|
|
22
25
|
require('../chunk-PPCATBOY.cjs');
|
|
23
|
-
require('../chunk-C54XEN5T.cjs');
|
|
24
26
|
require('../chunk-KDG6FER6.cjs');
|
|
25
|
-
require('../chunk-ULWRNGGE.cjs');
|
|
26
|
-
require('../chunk-IXALYQT7.cjs');
|
|
27
27
|
require('../chunk-FX3K6LNZ.cjs');
|
|
28
28
|
require('../chunk-MHVNT4J3.cjs');
|
|
29
29
|
require('../chunk-DES3K4SD.cjs');
|
|
@@ -60,11 +60,11 @@ function withSteps(workflow, steps, layout) {
|
|
|
60
60
|
const run = workflow.run.kind === "steps" ? workflow.run : { kind: "steps", steps: [] };
|
|
61
61
|
return {
|
|
62
62
|
...workflow,
|
|
63
|
-
run: { ...run, steps:
|
|
63
|
+
run: { ...run, steps: chunk3US5OIDQ_cjs.orderSteps(steps), layout: layout ?? run.layout }
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
66
|
var layoutOf = (workflow) => workflow.run.kind === "steps" && workflow.run.layout || {};
|
|
67
|
-
var explicit = (steps) => steps.map((s) => ({ ...s, after:
|
|
67
|
+
var explicit = (steps) => steps.map((s) => ({ ...s, after: chunk3US5OIDQ_cjs.stepDependencies(steps, s.id) }));
|
|
68
68
|
function stepIdFor(steps, title) {
|
|
69
69
|
const base = title.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "").replace(/^[^a-z]+/, "") || "step";
|
|
70
70
|
const taken = new Set(steps.map((s) => s.id));
|
|
@@ -111,7 +111,7 @@ function blankStep(kind, id, title) {
|
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
function addStep(workflow, kind, options = {}) {
|
|
114
|
-
const steps = explicit(
|
|
114
|
+
const steps = explicit(chunk3US5OIDQ_cjs.workflowSteps(workflow));
|
|
115
115
|
const title = options.title ?? DEFAULT_TITLES[kind];
|
|
116
116
|
const id = stepIdFor(steps, title);
|
|
117
117
|
const step = { ...blankStep(kind, id, title), after: options.after ? [options.after] : [] };
|
|
@@ -120,7 +120,7 @@ function addStep(workflow, kind, options = {}) {
|
|
|
120
120
|
return { workflow: withSteps(workflow, [...steps, step], layout), id };
|
|
121
121
|
}
|
|
122
122
|
function removeStep(workflow, id) {
|
|
123
|
-
const steps = explicit(
|
|
123
|
+
const steps = explicit(chunk3US5OIDQ_cjs.workflowSteps(workflow));
|
|
124
124
|
const removed = steps.find((s) => s.id === id);
|
|
125
125
|
if (!removed) return workflow;
|
|
126
126
|
const bridged = steps.filter((s) => s.id !== id).map(
|
|
@@ -133,8 +133,8 @@ function removeStep(workflow, id) {
|
|
|
133
133
|
return withSteps(workflow, bridged, layout);
|
|
134
134
|
}
|
|
135
135
|
function connectSteps(workflow, from, to) {
|
|
136
|
-
const steps = explicit(
|
|
137
|
-
if (from === to || !steps.some((s) => s.id === from) ||
|
|
136
|
+
const steps = explicit(chunk3US5OIDQ_cjs.workflowSteps(workflow));
|
|
137
|
+
if (from === to || !steps.some((s) => s.id === from) || chunk3US5OIDQ_cjs.dependsOn(steps, from, to)) {
|
|
138
138
|
return workflow;
|
|
139
139
|
}
|
|
140
140
|
return withSteps(
|
|
@@ -144,16 +144,16 @@ function connectSteps(workflow, from, to) {
|
|
|
144
144
|
)
|
|
145
145
|
);
|
|
146
146
|
}
|
|
147
|
-
var wouldCycle = (workflow, from, to) => from === to ||
|
|
147
|
+
var wouldCycle = (workflow, from, to) => from === to || chunk3US5OIDQ_cjs.dependsOn(chunk3US5OIDQ_cjs.workflowSteps(workflow), from, to);
|
|
148
148
|
function disconnectSteps(workflow, from, to) {
|
|
149
|
-
const steps = explicit(
|
|
149
|
+
const steps = explicit(chunk3US5OIDQ_cjs.workflowSteps(workflow));
|
|
150
150
|
return withSteps(
|
|
151
151
|
workflow,
|
|
152
152
|
steps.map((s) => s.id === to ? { ...s, after: (s.after ?? []).filter((d) => d !== from) } : s)
|
|
153
153
|
);
|
|
154
154
|
}
|
|
155
155
|
function updateStep(workflow, id, patch) {
|
|
156
|
-
const steps = explicit(
|
|
156
|
+
const steps = explicit(chunk3US5OIDQ_cjs.workflowSteps(workflow));
|
|
157
157
|
return withSteps(
|
|
158
158
|
workflow,
|
|
159
159
|
steps.map(
|
|
@@ -167,7 +167,7 @@ var renameIn = (text, from, to) => text.replace(
|
|
|
167
167
|
);
|
|
168
168
|
function renameInput(workflow, from, to) {
|
|
169
169
|
if (from === to) return workflow;
|
|
170
|
-
const steps =
|
|
170
|
+
const steps = chunk3US5OIDQ_cjs.workflowSteps(workflow).map((s) => {
|
|
171
171
|
if (s.kind === "agent")
|
|
172
172
|
return {
|
|
173
173
|
...s,
|
|
@@ -216,13 +216,13 @@ function renameInput(workflow, from, to) {
|
|
|
216
216
|
var renamePerson = (a, from, to) => "input" in a && a.input === from ? { input: to } : a;
|
|
217
217
|
var renameRef = (r, from, to) => "input" in r && r.input === from ? { input: to } : r;
|
|
218
218
|
function moveStep(workflow, id, position) {
|
|
219
|
-
return withSteps(workflow,
|
|
219
|
+
return withSteps(workflow, chunk3US5OIDQ_cjs.workflowSteps(workflow), { ...layoutOf(workflow), [id]: position });
|
|
220
220
|
}
|
|
221
221
|
var COLUMN = 300;
|
|
222
222
|
var ROW = 140;
|
|
223
223
|
function autoLayout(steps) {
|
|
224
224
|
const layout = {};
|
|
225
|
-
|
|
225
|
+
chunk3US5OIDQ_cjs.stepLevels(steps).forEach(
|
|
226
226
|
(level, x) => level.forEach((s, y) => {
|
|
227
227
|
layout[s.id] = { x: x * COLUMN, y: (y - (level.length - 1) / 2) * ROW };
|
|
228
228
|
})
|
|
@@ -230,7 +230,7 @@ function autoLayout(steps) {
|
|
|
230
230
|
return layout;
|
|
231
231
|
}
|
|
232
232
|
function layoutWithDefaults(workflow) {
|
|
233
|
-
const auto = autoLayout(
|
|
233
|
+
const auto = autoLayout(chunk3US5OIDQ_cjs.workflowSteps(workflow));
|
|
234
234
|
return { ...auto, ...layoutOf(workflow) };
|
|
235
235
|
}
|
|
236
236
|
var DEFAULT_SIGNALS_EDITOR_LABELS = {
|
|
@@ -327,9 +327,9 @@ function SignalsEditor({
|
|
|
327
327
|
{
|
|
328
328
|
className: ui.cn(
|
|
329
329
|
"space-y-1.5 rounded-md border p-2",
|
|
330
|
-
|
|
330
|
+
chunk3US5OIDQ_cjs.isIncompleteSignal(signal) ? "border-destructive/50" : "border-border"
|
|
331
331
|
),
|
|
332
|
-
"data-incomplete":
|
|
332
|
+
"data-incomplete": chunk3US5OIDQ_cjs.isIncompleteSignal(signal) || void 0,
|
|
333
333
|
"data-testid": `${testId}-${i}`,
|
|
334
334
|
children: [
|
|
335
335
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
@@ -1158,7 +1158,7 @@ function StepInspector({
|
|
|
1158
1158
|
}) {
|
|
1159
1159
|
const l = { ...DEFAULT_STEP_INSPECTOR_LABELS, ...labels };
|
|
1160
1160
|
const ol = { ...DEFAULT_FIELD_OPTIONS_EDITOR_LABELS, ...optionLabels };
|
|
1161
|
-
const steps =
|
|
1161
|
+
const steps = chunk3US5OIDQ_cjs.workflowSteps(workflow);
|
|
1162
1162
|
const step = steps.find((s) => s.id === stepId);
|
|
1163
1163
|
const run = workflow.run.kind === "steps" ? workflow.run : void 0;
|
|
1164
1164
|
if (!step || !run) {
|
|
@@ -1185,8 +1185,8 @@ function StepInspector({
|
|
|
1185
1185
|
const patch = (p) => onChange(updateStep(workflow, step.id, p));
|
|
1186
1186
|
const al = { ...DEFAULT_STEP_ACTION_SETTINGS_LABELS, ...actionLabels };
|
|
1187
1187
|
const ctx = {
|
|
1188
|
-
earlier:
|
|
1189
|
-
fields:
|
|
1188
|
+
earlier: chunk3US5OIDQ_cjs.upstreamSteps(steps, step.id),
|
|
1189
|
+
fields: chunk3US5OIDQ_cjs.runFields(workflow),
|
|
1190
1190
|
people,
|
|
1191
1191
|
tags,
|
|
1192
1192
|
documents
|
|
@@ -1207,7 +1207,7 @@ function StepInspector({
|
|
|
1207
1207
|
)
|
|
1208
1208
|
);
|
|
1209
1209
|
};
|
|
1210
|
-
const deps =
|
|
1210
|
+
const deps = chunk3US5OIDQ_cjs.stepDependencies(steps, step.id);
|
|
1211
1211
|
const titleOf = (id) => steps.find((s) => s.id === id)?.title ?? id;
|
|
1212
1212
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", "data-testid": `${testId}-step`, children: [
|
|
1213
1213
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-2", children: [
|
|
@@ -1288,7 +1288,7 @@ function StepInspector({
|
|
|
1288
1288
|
{
|
|
1289
1289
|
step,
|
|
1290
1290
|
workflows,
|
|
1291
|
-
fields:
|
|
1291
|
+
fields: chunk3US5OIDQ_cjs.runFields(workflow).map((f) => f.name),
|
|
1292
1292
|
patch,
|
|
1293
1293
|
l,
|
|
1294
1294
|
testId
|
|
@@ -1349,7 +1349,7 @@ function StepInspector({
|
|
|
1349
1349
|
testId: `${testId}-review-grid`
|
|
1350
1350
|
}
|
|
1351
1351
|
),
|
|
1352
|
-
|
|
1352
|
+
chunk3US5OIDQ_cjs.canAssign(step) && /* @__PURE__ */ jsxRuntime.jsx(AssigneeSettings, { step, patch, ctx, l: al, testId }),
|
|
1353
1353
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1354
1354
|
SignalsEditor,
|
|
1355
1355
|
{
|
|
@@ -1615,7 +1615,7 @@ function triggerFields(trigger, clearOthers) {
|
|
|
1615
1615
|
return {
|
|
1616
1616
|
timezone: trigger.timezone,
|
|
1617
1617
|
rrule: trigger.start === "repeat" ? trigger.rrule.trim() : none,
|
|
1618
|
-
run_at: trigger.start === "once" ?
|
|
1618
|
+
run_at: trigger.start === "once" ? chunkKKU7MUWE_cjs.localInputToIso(trigger.runAt) : none,
|
|
1619
1619
|
event_kind: trigger.start === "event" ? trigger.eventKind.trim() : none,
|
|
1620
1620
|
// A step signal is `workflow_signal` narrowed to one signal name.
|
|
1621
1621
|
event_filter: filter ?? none,
|
|
@@ -1631,7 +1631,7 @@ function plan(value, options) {
|
|
|
1631
1631
|
criteria: [],
|
|
1632
1632
|
max_passes: 3,
|
|
1633
1633
|
documents: [],
|
|
1634
|
-
steps:
|
|
1634
|
+
steps: chunk3US5OIDQ_cjs.toPlanSteps(value.workflow, options)
|
|
1635
1635
|
};
|
|
1636
1636
|
}
|
|
1637
1637
|
function builderToWorkflowRequest(value, workspaceId, options = {}) {
|
|
@@ -1666,7 +1666,7 @@ function builderToWorkflowUpdate(value, options = {}) {
|
|
|
1666
1666
|
}
|
|
1667
1667
|
function workflowRecordToBuilder(record) {
|
|
1668
1668
|
const planned = record.plan?.steps ?? [];
|
|
1669
|
-
const steps = planned.length ?
|
|
1669
|
+
const steps = planned.length ? chunk3US5OIDQ_cjs.fromPlanSteps(planned) : record.prompt || record.skill_ref ? [
|
|
1670
1670
|
{
|
|
1671
1671
|
id: "work",
|
|
1672
1672
|
kind: "agent",
|
|
@@ -1674,7 +1674,7 @@ function workflowRecordToBuilder(record) {
|
|
|
1674
1674
|
...record.skill_ref ? { workflow: record.skill_ref } : { run: { kind: "prompt", promptTemplate: record.prompt } }
|
|
1675
1675
|
}
|
|
1676
1676
|
] : [];
|
|
1677
|
-
const when =
|
|
1677
|
+
const when = chunkKKU7MUWE_cjs.workflowWhen(record);
|
|
1678
1678
|
return {
|
|
1679
1679
|
workflow: {
|
|
1680
1680
|
id: record.external_id,
|
|
@@ -1683,12 +1683,12 @@ function workflowRecordToBuilder(record) {
|
|
|
1683
1683
|
inputs: [],
|
|
1684
1684
|
landing: "chat",
|
|
1685
1685
|
schedulable: false,
|
|
1686
|
-
run: { kind: "steps", steps, layout:
|
|
1686
|
+
run: { kind: "steps", steps, layout: chunk3US5OIDQ_cjs.layoutFromPlanSteps(planned ?? []) }
|
|
1687
1687
|
},
|
|
1688
1688
|
trigger: {
|
|
1689
1689
|
...DEFAULT_WORKFLOW_TRIGGER,
|
|
1690
1690
|
start: when === "now" ? "manual" : when,
|
|
1691
|
-
runAt:
|
|
1691
|
+
runAt: chunkKKU7MUWE_cjs.isoToLocalInput(record.run_at),
|
|
1692
1692
|
rrule: record.rrule ?? "",
|
|
1693
1693
|
timezone: record.timezone || DEFAULT_WORKFLOW_TRIGGER.timezone,
|
|
1694
1694
|
eventKind: record.event_kind ?? "",
|
|
@@ -1744,7 +1744,7 @@ function triggerSummary(trigger, options = {}) {
|
|
|
1744
1744
|
case "once":
|
|
1745
1745
|
return trigger.runAt ? new Date(trigger.runAt).toLocaleString() : l.starts.once;
|
|
1746
1746
|
case "repeat":
|
|
1747
|
-
return trigger.rrule ?
|
|
1747
|
+
return trigger.rrule ? chunkKKU7MUWE_cjs.describeRRule(trigger.rrule) : l.starts.repeat;
|
|
1748
1748
|
case "event":
|
|
1749
1749
|
if (isSignalTrigger(trigger))
|
|
1750
1750
|
return trigger.signal ? l.signalSummary.replace("{signal}", trigger.signal) : l.stepSignals;
|
|
@@ -1803,7 +1803,7 @@ function TriggerInspector({
|
|
|
1803
1803
|
}
|
|
1804
1804
|
)
|
|
1805
1805
|
] }),
|
|
1806
|
-
trigger.start === "repeat" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1806
|
+
trigger.start === "repeat" && /* @__PURE__ */ jsxRuntime.jsx(chunkKKU7MUWE_cjs.RecurrenceBuilder, { rrule: trigger.rrule, onChange: (rrule) => set({ rrule }) }),
|
|
1807
1807
|
trigger.start === "event" && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1.5", children: [
|
|
1808
1808
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Label, { className: "text-xs", children: l.event }),
|
|
1809
1809
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -1855,7 +1855,7 @@ function TriggerInspector({
|
|
|
1855
1855
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1.5", children: [
|
|
1856
1856
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Label, { className: "text-xs", children: l.agent }),
|
|
1857
1857
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1858
|
-
|
|
1858
|
+
chunkKKU7MUWE_cjs.AgentSelect,
|
|
1859
1859
|
{
|
|
1860
1860
|
agents,
|
|
1861
1861
|
value: trigger.agentId,
|
|
@@ -2165,12 +2165,12 @@ function WorkflowCanvas({
|
|
|
2165
2165
|
testId = "workflow-canvas"
|
|
2166
2166
|
}) {
|
|
2167
2167
|
const l = react.useMemo(() => ({ ...DEFAULT_WORKFLOW_CANVAS_LABELS, ...labels }), [labels]);
|
|
2168
|
-
const steps =
|
|
2168
|
+
const steps = chunk3US5OIDQ_cjs.workflowSteps(workflow);
|
|
2169
2169
|
const editable = !!onChange;
|
|
2170
2170
|
const built = react.useMemo(() => {
|
|
2171
2171
|
const layout = layoutWithDefaults(workflow);
|
|
2172
|
-
const all =
|
|
2173
|
-
const roots = all.filter((s) =>
|
|
2172
|
+
const all = chunk3US5OIDQ_cjs.workflowSteps(workflow);
|
|
2173
|
+
const roots = all.filter((s) => chunk3US5OIDQ_cjs.stepDependencies(all, s.id).length === 0);
|
|
2174
2174
|
const triggerNode = trigger ? [
|
|
2175
2175
|
{
|
|
2176
2176
|
id: TRIGGER_NODE,
|
|
@@ -2219,7 +2219,7 @@ function WorkflowCanvas({
|
|
|
2219
2219
|
react.useEffect(() => setNodes(built), [built]);
|
|
2220
2220
|
const edges = react.useMemo(
|
|
2221
2221
|
() => steps.flatMap((s) => {
|
|
2222
|
-
const deps =
|
|
2222
|
+
const deps = chunk3US5OIDQ_cjs.stepDependencies(steps, s.id);
|
|
2223
2223
|
const from = deps.length ? deps : trigger ? [TRIGGER_NODE] : [];
|
|
2224
2224
|
return from.map((d) => ({
|
|
2225
2225
|
id: `${d}->${s.id}`,
|
|
@@ -2470,12 +2470,12 @@ function WorkflowBuilder({
|
|
|
2470
2470
|
const [mode, setMode] = react.useState("design");
|
|
2471
2471
|
const [adding, setAdding] = react.useState(false);
|
|
2472
2472
|
const { workflow, trigger } = value;
|
|
2473
|
-
const steps =
|
|
2474
|
-
const problems =
|
|
2475
|
-
const missing =
|
|
2473
|
+
const steps = chunk3US5OIDQ_cjs.workflowSteps(workflow);
|
|
2474
|
+
const problems = chunk3US5OIDQ_cjs.validateWorkflowGraph(steps);
|
|
2475
|
+
const missing = chunk3US5OIDQ_cjs.stepConfigProblems(steps);
|
|
2476
2476
|
const nameOf = (id) => people.find((p) => p.value === id)?.label;
|
|
2477
|
-
const fields =
|
|
2478
|
-
const assigneeOf = (step) =>
|
|
2477
|
+
const fields = chunk3US5OIDQ_cjs.runFields(workflow);
|
|
2478
|
+
const assigneeOf = (step) => chunk3US5OIDQ_cjs.canAssign(step) ? chunk3US5OIDQ_cjs.assigneeName(step.assignee, { nameOf, fields }) : void 0;
|
|
2479
2479
|
const titles = react.useMemo(() => new Map(workflows.map((w) => [w.id, w.title])), [workflows]);
|
|
2480
2480
|
const setWorkflow = (next) => onChange({ ...value, workflow: next });
|
|
2481
2481
|
const addAfter = (from, kind) => {
|
|
@@ -2706,13 +2706,13 @@ function WorkflowPreview({
|
|
|
2706
2706
|
renderIcon,
|
|
2707
2707
|
testId
|
|
2708
2708
|
}) {
|
|
2709
|
-
const run =
|
|
2709
|
+
const run = chunkKKU7MUWE_cjs.useWorkflowPreview(workflow, {
|
|
2710
2710
|
resolveWorkflow: (id) => workflows.find((w) => w.id === id),
|
|
2711
2711
|
compose,
|
|
2712
2712
|
answer
|
|
2713
2713
|
});
|
|
2714
2714
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2715
|
-
|
|
2715
|
+
chunk3US5OIDQ_cjs.WorkflowRunner,
|
|
2716
2716
|
{
|
|
2717
2717
|
workflow,
|
|
2718
2718
|
run,
|
|
@@ -2800,7 +2800,7 @@ function ConnectedWorkflowBuilder({
|
|
|
2800
2800
|
() => [
|
|
2801
2801
|
...hostWorkflows,
|
|
2802
2802
|
...(skills.data ?? []).map(
|
|
2803
|
-
(s) =>
|
|
2803
|
+
(s) => chunk3US5OIDQ_cjs.skillToWorkflow({
|
|
2804
2804
|
name: s.name,
|
|
2805
2805
|
slug: s.slug,
|
|
2806
2806
|
description: s.description,
|
|
@@ -2816,7 +2816,7 @@ function ConnectedWorkflowBuilder({
|
|
|
2816
2816
|
}));
|
|
2817
2817
|
const tasks = (conversations.data ?? []).filter((c) => c.status && c.status !== "done").map((c) => ({ value: c.external_id, label: c.title || c.external_id }));
|
|
2818
2818
|
const options = { resolveWorkflow: (wid) => workflows.find((w) => w.id === wid), compose };
|
|
2819
|
-
const problem = triggerProblem(value.trigger) ?? (
|
|
2819
|
+
const problem = triggerProblem(value.trigger) ?? (chunk3US5OIDQ_cjs.validateWorkflowGraph(chunk3US5OIDQ_cjs.workflowSteps(value.workflow)).length || chunk3US5OIDQ_cjs.stepConfigProblems(chunk3US5OIDQ_cjs.workflowSteps(value.workflow)).length ? "graph" : null);
|
|
2820
2820
|
const busy = !!pending || create.isPending || update.isPending || run.isPending;
|
|
2821
2821
|
const save = async () => {
|
|
2822
2822
|
if (!workspaceId) return void 0;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useConnection } from '../chunk-OYMWV45N.js';
|
|
3
|
-
import { workflowWhen, isoToLocalInput, describeRRule, RecurrenceBuilder, AgentSelect, useWorkflowPreview, localInputToIso } from '../chunk-
|
|
3
|
+
import { workflowWhen, isoToLocalInput, describeRRule, RecurrenceBuilder, AgentSelect, useWorkflowPreview, localInputToIso } from '../chunk-ZNGDEQBN.js';
|
|
4
4
|
import '../chunk-4XJZ6AAY.js';
|
|
5
5
|
import '../chunk-P6GHJSLR.js';
|
|
6
|
-
import { workflowSteps, dependsOn, stepLevels, isIncompleteSignal, runFields, upstreamSteps, stepDependencies, canAssign, fromPlanSteps, layoutFromPlanSteps, validateWorkflowGraph, stepConfigProblems, WorkflowRunner, skillToWorkflow, assigneeName, orderSteps, toPlanSteps } from '../chunk-
|
|
6
|
+
import { workflowSteps, dependsOn, stepLevels, isIncompleteSignal, runFields, upstreamSteps, stepDependencies, canAssign, fromPlanSteps, layoutFromPlanSteps, validateWorkflowGraph, stepConfigProblems, WorkflowRunner, skillToWorkflow, assigneeName, orderSteps, toPlanSteps } from '../chunk-PGDL26TQ.js';
|
|
7
7
|
import '../chunk-6S5FLMWG.js';
|
|
8
8
|
import '../chunk-4WWM3GQ5.js';
|
|
9
|
-
import '../chunk-DDF5GPIJ.js';
|
|
10
|
-
import '../chunk-XD2M6LIG.js';
|
|
11
9
|
import '../chunk-RFXJYIDV.js';
|
|
12
10
|
import '../chunk-5LXQPP2K.js';
|
|
13
11
|
import '../chunk-EVUEIBNU.js';
|
|
14
12
|
import { TONE_DOT, TONES, isTone } from '../chunk-AUS3KBHJ.js';
|
|
15
13
|
import '../chunk-NUNKSZKU.js';
|
|
16
14
|
import '../chunk-YU2KUMGE.js';
|
|
15
|
+
import '../chunk-DDF5GPIJ.js';
|
|
16
|
+
import '../chunk-XD2M6LIG.js';
|
|
17
17
|
import '../chunk-S7PSMMRG.js';
|
|
18
|
+
import '../chunk-76JDDMSP.js';
|
|
19
|
+
import '../chunk-TX2ZICS7.js';
|
|
20
|
+
import '../chunk-ZPLG7QYF.js';
|
|
18
21
|
import '../chunk-HOXKR26S.js';
|
|
19
22
|
import '../chunk-AA3PT6KR.js';
|
|
20
23
|
import '../chunk-NPLYHR2E.js';
|
|
21
|
-
import '../chunk-76JDDMSP.js';
|
|
22
24
|
import '../chunk-OXF2IFXG.js';
|
|
23
|
-
import '../chunk-TX2ZICS7.js';
|
|
24
|
-
import '../chunk-ZPLG7QYF.js';
|
|
25
25
|
import '../chunk-SLSBJRWW.js';
|
|
26
26
|
import '../chunk-7F6CBP3Z.js';
|
|
27
27
|
import '../chunk-VUNV25KB.js';
|
|
@@ -5,9 +5,9 @@ var chunkXZIYRKLW_cjs = require('../chunk-XZIYRKLW.cjs');
|
|
|
5
5
|
var chunkXAJIKT6Y_cjs = require('../chunk-XAJIKT6Y.cjs');
|
|
6
6
|
var chunkOB5F4577_cjs = require('../chunk-OB5F4577.cjs');
|
|
7
7
|
require('../chunk-C54XEN5T.cjs');
|
|
8
|
-
var chunkKDG6FER6_cjs = require('../chunk-KDG6FER6.cjs');
|
|
9
8
|
var chunk7G2LJMUG_cjs = require('../chunk-7G2LJMUG.cjs');
|
|
10
9
|
var chunkULWRNGGE_cjs = require('../chunk-ULWRNGGE.cjs');
|
|
10
|
+
var chunkKDG6FER6_cjs = require('../chunk-KDG6FER6.cjs');
|
|
11
11
|
require('../chunk-DES3K4SD.cjs');
|
|
12
12
|
var react = require('react');
|
|
13
13
|
var lucideReact = require('lucide-react');
|
package/dist/workspaces/index.js
CHANGED
|
@@ -3,9 +3,9 @@ import { CollapsibleSection, KeyValueRow } from '../chunk-LGBAZD37.js';
|
|
|
3
3
|
import { MemberAvatarStack } from '../chunk-XNOASBGW.js';
|
|
4
4
|
import { ActionLink } from '../chunk-S7PSMMRG.js';
|
|
5
5
|
import '../chunk-76JDDMSP.js';
|
|
6
|
-
import { fromNow, fmtDate } from '../chunk-OXF2IFXG.js';
|
|
7
6
|
export { RoleBadge, WorkspaceTypeBadgeView } from '../chunk-NBV56SGU.js';
|
|
8
7
|
import { ModalHeader } from '../chunk-TX2ZICS7.js';
|
|
8
|
+
import { fromNow, fmtDate } from '../chunk-OXF2IFXG.js';
|
|
9
9
|
import '../chunk-VUNV25KB.js';
|
|
10
10
|
import { createContext, useContext, useMemo, useState, useCallback, useId } from 'react';
|
|
11
11
|
import { FileText, MessagesSquare, Users, Check, ChevronRight, UserPlus, LogOut, AlertCircle, Plus, ArrowUpRight, AlignLeft, Globe, CreditCard, Loader2, FolderLock } from 'lucide-react';
|