aitable-workflow-core 0.1.28-beta.1789632898670 → 0.1.28
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/index.d.ts +280 -6
- package/dist/index.js +187 -184
- package/package.json +2 -2
- package/skills/aitable-workflow/references/generated/core-api.md +5 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z, ZodType } from 'zod';
|
|
2
|
-
import { AgentEvent, AgentType, RelayMessage, KnownAgentType, RelayArtifactManifest, FilledForm, QuestionForm, FormAnswers, ScaffoldResult, RoleConfigDTO } from 'aitable-workflow-base';
|
|
2
|
+
import { AgentEvent, AgentType, RunAgentEventDTO, RelayMessage, KnownAgentType, RelayArtifactManifest, FilledForm, QuestionForm, FormAnswers, ScaffoldResult, RoleConfigDTO } from 'aitable-workflow-base';
|
|
3
3
|
export * from 'aitable-workflow-base';
|
|
4
4
|
export { AgentEvent, AgentEventType, AgentType, KnownAgentType, ScaffoldResult } from 'aitable-workflow-base';
|
|
5
5
|
import { ChildProcess, SpawnOptions, SpawnSyncReturns } from 'node:child_process';
|
|
@@ -1577,6 +1577,8 @@ declare const fieldTypeSchema: z.ZodEnum<{
|
|
|
1577
1577
|
createdTime: "createdTime";
|
|
1578
1578
|
lastModifiedTime: "lastModifiedTime";
|
|
1579
1579
|
attachment: "attachment";
|
|
1580
|
+
unidirectionalLink: "unidirectionalLink";
|
|
1581
|
+
bidirectionalLink: "bidirectionalLink";
|
|
1580
1582
|
}>;
|
|
1581
1583
|
type FieldTypeEnum = z.infer<typeof fieldTypeSchema>;
|
|
1582
1584
|
declare const fieldDefinitionSchema: z.ZodObject<{
|
|
@@ -1600,10 +1602,16 @@ declare const fieldDefinitionSchema: z.ZodObject<{
|
|
|
1600
1602
|
createdTime: "createdTime";
|
|
1601
1603
|
lastModifiedTime: "lastModifiedTime";
|
|
1602
1604
|
attachment: "attachment";
|
|
1605
|
+
unidirectionalLink: "unidirectionalLink";
|
|
1606
|
+
bidirectionalLink: "bidirectionalLink";
|
|
1603
1607
|
}>;
|
|
1604
1608
|
options: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1605
1609
|
formatter: z.ZodOptional<z.ZodString>;
|
|
1606
1610
|
description: z.ZodOptional<z.ZodString>;
|
|
1611
|
+
link: z.ZodOptional<z.ZodObject<{
|
|
1612
|
+
table: z.ZodString;
|
|
1613
|
+
multiple: z.ZodOptional<z.ZodBoolean>;
|
|
1614
|
+
}, z.core.$strip>>;
|
|
1607
1615
|
}, z.core.$strip>;
|
|
1608
1616
|
type FieldDefinitionConfig = z.infer<typeof fieldDefinitionSchema>;
|
|
1609
1617
|
declare const statesSchema: z.ZodObject<{
|
|
@@ -1668,10 +1676,110 @@ declare const trackerSchema: z.ZodObject<{
|
|
|
1668
1676
|
createdTime: "createdTime";
|
|
1669
1677
|
lastModifiedTime: "lastModifiedTime";
|
|
1670
1678
|
attachment: "attachment";
|
|
1679
|
+
unidirectionalLink: "unidirectionalLink";
|
|
1680
|
+
bidirectionalLink: "bidirectionalLink";
|
|
1681
|
+
}>;
|
|
1682
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1683
|
+
formatter: z.ZodOptional<z.ZodString>;
|
|
1684
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1685
|
+
link: z.ZodOptional<z.ZodObject<{
|
|
1686
|
+
table: z.ZodString;
|
|
1687
|
+
multiple: z.ZodOptional<z.ZodBoolean>;
|
|
1688
|
+
}, z.core.$strip>>;
|
|
1689
|
+
}, z.core.$strip>>>;
|
|
1690
|
+
views: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1691
|
+
id: z.ZodString;
|
|
1692
|
+
type: z.ZodEnum<{
|
|
1693
|
+
Grid: "Grid";
|
|
1694
|
+
FormDesigner: "FormDesigner";
|
|
1695
|
+
Kanban: "Kanban";
|
|
1696
|
+
Calendar: "Calendar";
|
|
1697
|
+
Gallery: "Gallery";
|
|
1698
|
+
Gantt: "Gantt";
|
|
1699
|
+
}>;
|
|
1700
|
+
name: z.ZodString;
|
|
1701
|
+
field_order: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1702
|
+
visible_fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1703
|
+
group_by: z.ZodOptional<z.ZodString>;
|
|
1704
|
+
date_field: z.ZodOptional<z.ZodString>;
|
|
1705
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1706
|
+
filter: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1707
|
+
field: z.ZodString;
|
|
1708
|
+
any_of: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1709
|
+
equals: z.ZodOptional<z.ZodString>;
|
|
1710
|
+
}, z.core.$strip>>>;
|
|
1711
|
+
for_each_step: z.ZodOptional<z.ZodEnum<{
|
|
1712
|
+
needs_human: "needs_human";
|
|
1713
|
+
all: "all";
|
|
1714
|
+
}>>;
|
|
1715
|
+
}, z.core.$strip>>>;
|
|
1716
|
+
dws_bin: z.ZodDefault<z.ZodString>;
|
|
1717
|
+
query_limit: z.ZodDefault<z.ZodNumber>;
|
|
1718
|
+
human_loop: z.ZodOptional<z.ZodObject<{
|
|
1719
|
+
doc_workspace_id: z.ZodString;
|
|
1720
|
+
}, z.core.$strip>>;
|
|
1721
|
+
form_share: z.ZodDefault<z.ZodObject<{
|
|
1722
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1723
|
+
}, z.core.$strip>>;
|
|
1724
|
+
}, z.core.$strip>;
|
|
1725
|
+
/**
|
|
1726
|
+
* config.yml 根级 tracker:base_id 允许留空(部署前 setup 自动建 Base 后写回)。
|
|
1727
|
+
* 不能直接放宽 `trackerSchema`——workflow.yml 的内联 tracker 解析(parser.ts)
|
|
1728
|
+
* 靠 base_id 非空校验失败来识别「设计期草稿」并降级为 undefined,放宽会把草稿当稿。
|
|
1729
|
+
*/
|
|
1730
|
+
declare const configTrackerSchema: z.ZodObject<{
|
|
1731
|
+
table_id: z.ZodDefault<z.ZodString>;
|
|
1732
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1733
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1734
|
+
states: z.ZodObject<{
|
|
1735
|
+
initial: z.ZodString;
|
|
1736
|
+
active: z.ZodArray<z.ZodString>;
|
|
1737
|
+
restart: z.ZodOptional<z.ZodString>;
|
|
1738
|
+
terminal: z.ZodArray<z.ZodString>;
|
|
1739
|
+
blocked: z.ZodDefault<z.ZodString>;
|
|
1740
|
+
review: z.ZodOptional<z.ZodString>;
|
|
1741
|
+
}, z.core.$strip>;
|
|
1742
|
+
fields: z.ZodObject<{
|
|
1743
|
+
state: z.ZodString;
|
|
1744
|
+
title: z.ZodString;
|
|
1745
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1746
|
+
current_step: z.ZodOptional<z.ZodString>;
|
|
1747
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
1748
|
+
submitter: z.ZodOptional<z.ZodString>;
|
|
1749
|
+
deadline: z.ZodOptional<z.ZodString>;
|
|
1750
|
+
event_log: z.ZodOptional<z.ZodString>;
|
|
1751
|
+
}, z.core.$strip>;
|
|
1752
|
+
field_definitions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1753
|
+
name: z.ZodString;
|
|
1754
|
+
type: z.ZodEnum<{
|
|
1755
|
+
number: "number";
|
|
1756
|
+
text: "text";
|
|
1757
|
+
date: "date";
|
|
1758
|
+
url: "url";
|
|
1759
|
+
checkbox: "checkbox";
|
|
1760
|
+
user: "user";
|
|
1761
|
+
group: "group";
|
|
1762
|
+
singleSelect: "singleSelect";
|
|
1763
|
+
multipleSelect: "multipleSelect";
|
|
1764
|
+
rating: "rating";
|
|
1765
|
+
currency: "currency";
|
|
1766
|
+
progress: "progress";
|
|
1767
|
+
richText: "richText";
|
|
1768
|
+
creator: "creator";
|
|
1769
|
+
lastModifier: "lastModifier";
|
|
1770
|
+
createdTime: "createdTime";
|
|
1771
|
+
lastModifiedTime: "lastModifiedTime";
|
|
1772
|
+
attachment: "attachment";
|
|
1773
|
+
unidirectionalLink: "unidirectionalLink";
|
|
1774
|
+
bidirectionalLink: "bidirectionalLink";
|
|
1671
1775
|
}>;
|
|
1672
1776
|
options: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1673
1777
|
formatter: z.ZodOptional<z.ZodString>;
|
|
1674
1778
|
description: z.ZodOptional<z.ZodString>;
|
|
1779
|
+
link: z.ZodOptional<z.ZodObject<{
|
|
1780
|
+
table: z.ZodString;
|
|
1781
|
+
multiple: z.ZodOptional<z.ZodBoolean>;
|
|
1782
|
+
}, z.core.$strip>>;
|
|
1675
1783
|
}, z.core.$strip>>>;
|
|
1676
1784
|
views: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1677
1785
|
id: z.ZodString;
|
|
@@ -1707,6 +1815,7 @@ declare const trackerSchema: z.ZodObject<{
|
|
|
1707
1815
|
form_share: z.ZodDefault<z.ZodObject<{
|
|
1708
1816
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1709
1817
|
}, z.core.$strip>>;
|
|
1818
|
+
base_id: z.ZodString;
|
|
1710
1819
|
}, z.core.$strip>;
|
|
1711
1820
|
/** 单工作流模式(向下兼容) */
|
|
1712
1821
|
declare const singleWorkflowSchema: z.ZodObject<{
|
|
@@ -1759,12 +1868,69 @@ declare const rolesSchema: z.ZodObject<{
|
|
|
1759
1868
|
dir: z.ZodDefault<z.ZodString>;
|
|
1760
1869
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1761
1870
|
}, z.core.$strip>;
|
|
1871
|
+
/**
|
|
1872
|
+
* 本机智能体的对外身份。
|
|
1873
|
+
*
|
|
1874
|
+
* 为什么需要它:一张工单表可以挂多个智能体(各人自己的 daemon),入水时必须只捞
|
|
1875
|
+
* 「指派给自己」的行,否则 A 的 daemon 会把 B 的工单抢走执行、还替 B 回写结果。
|
|
1876
|
+
*
|
|
1877
|
+
* - `agent_id` 用「智能体登记表」的行 recordId:不可变,显示名改了也不断链;
|
|
1878
|
+
* - 认领列由 `tracker.fields.owner` 指定(复用既有槽位,不新增字段映射键);
|
|
1879
|
+
* - 缺省不配 = 单人独占这张表,入水不过滤,行为与引入身份之前完全一致。
|
|
1880
|
+
*/
|
|
1881
|
+
/**
|
|
1882
|
+
* 智能体登记表的位置与列名映射(serve 管理面「新建智能体」写行、运行时选择器读列的落点)。
|
|
1883
|
+
*
|
|
1884
|
+
* 与认领解耦:认领只需 `identity.agent_id` + `tracker.fields.owner`,登记表位置不参与入水;
|
|
1885
|
+
* 这块纯粹给管理面用,缺省不配 = 该 demo 不提供 UI 建号(表在钉钉里手工维护即可)。
|
|
1886
|
+
* 列名按登记表实际表头填(值即字段名,服务端 dws 按名写入)。
|
|
1887
|
+
*/
|
|
1888
|
+
declare const registryFieldsSchema: z.ZodObject<{
|
|
1889
|
+
name: z.ZodString;
|
|
1890
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1891
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
1892
|
+
runtime: z.ZodOptional<z.ZodString>;
|
|
1893
|
+
online: z.ZodOptional<z.ZodString>;
|
|
1894
|
+
visibility: z.ZodOptional<z.ZodString>;
|
|
1895
|
+
enabled: z.ZodOptional<z.ZodString>;
|
|
1896
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1897
|
+
}, z.core.$strip>;
|
|
1898
|
+
declare const registrySchema: z.ZodObject<{
|
|
1899
|
+
base_id: z.ZodString;
|
|
1900
|
+
table_id: z.ZodString;
|
|
1901
|
+
fields: z.ZodObject<{
|
|
1902
|
+
name: z.ZodString;
|
|
1903
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1904
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
1905
|
+
runtime: z.ZodOptional<z.ZodString>;
|
|
1906
|
+
online: z.ZodOptional<z.ZodString>;
|
|
1907
|
+
visibility: z.ZodOptional<z.ZodString>;
|
|
1908
|
+
enabled: z.ZodOptional<z.ZodString>;
|
|
1909
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1910
|
+
}, z.core.$strip>;
|
|
1911
|
+
}, z.core.$strip>;
|
|
1912
|
+
declare const identitySchema: z.ZodObject<{
|
|
1913
|
+
agent_id: z.ZodString;
|
|
1914
|
+
registry: z.ZodOptional<z.ZodObject<{
|
|
1915
|
+
base_id: z.ZodString;
|
|
1916
|
+
table_id: z.ZodString;
|
|
1917
|
+
fields: z.ZodObject<{
|
|
1918
|
+
name: z.ZodString;
|
|
1919
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1920
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
1921
|
+
runtime: z.ZodOptional<z.ZodString>;
|
|
1922
|
+
online: z.ZodOptional<z.ZodString>;
|
|
1923
|
+
visibility: z.ZodOptional<z.ZodString>;
|
|
1924
|
+
enabled: z.ZodOptional<z.ZodString>;
|
|
1925
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1926
|
+
}, z.core.$strip>;
|
|
1927
|
+
}, z.core.$strip>>;
|
|
1928
|
+
}, z.core.$strip>;
|
|
1762
1929
|
declare const configSchema: z.ZodObject<{
|
|
1763
1930
|
scene: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
1764
1931
|
base_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
1765
1932
|
default_base_id: z.ZodOptional<z.ZodString>;
|
|
1766
1933
|
tracker: z.ZodOptional<z.ZodObject<{
|
|
1767
|
-
base_id: z.ZodString;
|
|
1768
1934
|
table_id: z.ZodDefault<z.ZodString>;
|
|
1769
1935
|
label: z.ZodOptional<z.ZodString>;
|
|
1770
1936
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1807,10 +1973,16 @@ declare const configSchema: z.ZodObject<{
|
|
|
1807
1973
|
createdTime: "createdTime";
|
|
1808
1974
|
lastModifiedTime: "lastModifiedTime";
|
|
1809
1975
|
attachment: "attachment";
|
|
1976
|
+
unidirectionalLink: "unidirectionalLink";
|
|
1977
|
+
bidirectionalLink: "bidirectionalLink";
|
|
1810
1978
|
}>;
|
|
1811
1979
|
options: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1812
1980
|
formatter: z.ZodOptional<z.ZodString>;
|
|
1813
1981
|
description: z.ZodOptional<z.ZodString>;
|
|
1982
|
+
link: z.ZodOptional<z.ZodObject<{
|
|
1983
|
+
table: z.ZodString;
|
|
1984
|
+
multiple: z.ZodOptional<z.ZodBoolean>;
|
|
1985
|
+
}, z.core.$strip>>;
|
|
1814
1986
|
}, z.core.$strip>>>;
|
|
1815
1987
|
views: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1816
1988
|
id: z.ZodString;
|
|
@@ -1846,6 +2018,7 @@ declare const configSchema: z.ZodObject<{
|
|
|
1846
2018
|
form_share: z.ZodDefault<z.ZodObject<{
|
|
1847
2019
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1848
2020
|
}, z.core.$strip>>;
|
|
2021
|
+
base_id: z.ZodString;
|
|
1849
2022
|
}, z.core.$strip>>;
|
|
1850
2023
|
workflow: z.ZodOptional<z.ZodObject<{
|
|
1851
2024
|
template: z.ZodString;
|
|
@@ -1854,6 +2027,23 @@ declare const configSchema: z.ZodObject<{
|
|
|
1854
2027
|
workflows: z.ZodOptional<z.ZodObject<{
|
|
1855
2028
|
dir: z.ZodString;
|
|
1856
2029
|
}, z.core.$strip>>;
|
|
2030
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
2031
|
+
agent_id: z.ZodString;
|
|
2032
|
+
registry: z.ZodOptional<z.ZodObject<{
|
|
2033
|
+
base_id: z.ZodString;
|
|
2034
|
+
table_id: z.ZodString;
|
|
2035
|
+
fields: z.ZodObject<{
|
|
2036
|
+
name: z.ZodString;
|
|
2037
|
+
type: z.ZodOptional<z.ZodString>;
|
|
2038
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
2039
|
+
runtime: z.ZodOptional<z.ZodString>;
|
|
2040
|
+
online: z.ZodOptional<z.ZodString>;
|
|
2041
|
+
visibility: z.ZodOptional<z.ZodString>;
|
|
2042
|
+
enabled: z.ZodOptional<z.ZodString>;
|
|
2043
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2044
|
+
}, z.core.$strip>;
|
|
2045
|
+
}, z.core.$strip>>;
|
|
2046
|
+
}, z.core.$strip>>;
|
|
1857
2047
|
agent: z.ZodOptional<z.ZodObject<{
|
|
1858
2048
|
engine: z.ZodPreprocess<z.ZodDefault<z.ZodEnum<{
|
|
1859
2049
|
codex: "codex";
|
|
@@ -1911,6 +2101,9 @@ type TrackerConfig = z.infer<typeof trackerSchema>;
|
|
|
1911
2101
|
type StatesConfig = z.infer<typeof statesSchema>;
|
|
1912
2102
|
type FieldsConfig = z.infer<typeof fieldsSchema>;
|
|
1913
2103
|
type AgentConfig = z.infer<typeof agentSchema>;
|
|
2104
|
+
type IdentityConfig = z.infer<typeof identitySchema>;
|
|
2105
|
+
type RegistryConfig = z.infer<typeof registrySchema>;
|
|
2106
|
+
type RegistryFieldsConfig = z.infer<typeof registryFieldsSchema>;
|
|
1914
2107
|
type RecipeConfig = z.infer<typeof recipeSchema>;
|
|
1915
2108
|
type RolesConfig = z.infer<typeof rolesSchema>;
|
|
1916
2109
|
type ViewsConfig = z.infer<typeof viewsSchema>;
|
|
@@ -1966,6 +2159,11 @@ type Settings = {
|
|
|
1966
2159
|
polling: NonNullable<Config["polling"]>;
|
|
1967
2160
|
/** SLA 配置 */
|
|
1968
2161
|
sla: NonNullable<Config["sla"]>;
|
|
2162
|
+
/**
|
|
2163
|
+
* 本机智能体身份(项目级,所有工作流共享)。缺省 = 入水不按认领列过滤。
|
|
2164
|
+
* 多工作流模式下由 createPerWorkflowSettings 的 `...base` 原样透传。
|
|
2165
|
+
*/
|
|
2166
|
+
identity?: IdentityConfig;
|
|
1969
2167
|
};
|
|
1970
2168
|
/**
|
|
1971
2169
|
* 统一解析配置文件路径。
|
|
@@ -2092,7 +2290,7 @@ type ReferencedFields = {
|
|
|
2092
2290
|
all: Set<string>;
|
|
2093
2291
|
};
|
|
2094
2292
|
/** 支持的字段类型 */
|
|
2095
|
-
type FieldType$1 = "text" | "number" | "date" | "singleSelect" | "multipleSelect" | "url" | "rating" | "currency" | "progress" | "user" | "group" | "richText" | "creator" | "lastModifier" | "createdTime" | "lastModifiedTime" | "attachment" | "checkbox";
|
|
2293
|
+
type FieldType$1 = "text" | "number" | "date" | "singleSelect" | "multipleSelect" | "url" | "rating" | "currency" | "progress" | "user" | "group" | "richText" | "creator" | "lastModifier" | "createdTime" | "lastModifiedTime" | "attachment" | "checkbox" | "unidirectionalLink" | "bidirectionalLink";
|
|
2096
2294
|
/** 字段定义 — 声明字段名、类型及可选的选项 */
|
|
2097
2295
|
type FieldDefinition = {
|
|
2098
2296
|
name: string;
|
|
@@ -2103,6 +2301,11 @@ type FieldDefinition = {
|
|
|
2103
2301
|
formatter?: string;
|
|
2104
2302
|
/** 字段备注说明(AI 表格 description);仅新建字段写入,已有字段不回填 */
|
|
2105
2303
|
description?: string;
|
|
2304
|
+
/** 仅 unidirectionalLink / bidirectionalLink 有效:目标表(登记表名或 tableId)+ 是否多选 */
|
|
2305
|
+
link?: {
|
|
2306
|
+
table: string;
|
|
2307
|
+
multiple?: boolean;
|
|
2308
|
+
};
|
|
2106
2309
|
};
|
|
2107
2310
|
/** 解析后的工作流模板 */
|
|
2108
2311
|
type WorkflowTemplate = {
|
|
@@ -3807,6 +4010,36 @@ declare function runDwsCommand(bin: string, args: string[], options?: CommandRun
|
|
|
3807
4010
|
runner?: CommandRunner;
|
|
3808
4011
|
}): Promise<CommandResult>;
|
|
3809
4012
|
|
|
4013
|
+
/**
|
|
4014
|
+
* dws record create/update 的 records 载荷传输。
|
|
4015
|
+
*
|
|
4016
|
+
* 不能把真实业务文本的 JSON 内联到 `--records`:Windows 的 npm `.cmd` shim 会经 cmd.exe
|
|
4017
|
+
* 再次解析参数,消息中的引号、换行或元字符可能在请求到达 dws 前破坏参数边界。文件路径是
|
|
4018
|
+
* 跨平台稳定的命令行载荷;records 内容则由 dws 原生 `--records-file` 读取。
|
|
4019
|
+
*/
|
|
4020
|
+
type DwsJsonRunner = {
|
|
4021
|
+
runJson(args: string[]): Promise<unknown>;
|
|
4022
|
+
};
|
|
4023
|
+
/** dws 写命令承载 records 载荷的命令行 flag(单一事实源,发送/接收侧共用)。 */
|
|
4024
|
+
declare const DWS_RECORDS_FILE_FLAG = "--records-file";
|
|
4025
|
+
/**
|
|
4026
|
+
* 从 dws args 解析 `--records-file <path>` 指向的路径 token;不存在返回 undefined。
|
|
4027
|
+
* relay 发送侧据此定位要随帧搬运的服务端临时文件。
|
|
4028
|
+
*/
|
|
4029
|
+
declare function resolveRecordsFilePath(args: string[]): string | undefined;
|
|
4030
|
+
/**
|
|
4031
|
+
* 把 args 中所有**整段等于** `from` 的 token 替换为 `to`。
|
|
4032
|
+
* 精确匹配而非子串替换,避免误伤恰好包含该路径子串的 base-id/table-id 等参数。
|
|
4033
|
+
*/
|
|
4034
|
+
declare function substituteArgPath(args: string[], from: string, to: string): string[];
|
|
4035
|
+
/**
|
|
4036
|
+
* 以临时 UTF-8 JSON 文件调用 dws record mutation,并在调用完成后清理文件。
|
|
4037
|
+
*
|
|
4038
|
+
* `args` 必须是除 records 载荷外的完整 dws 参数(包括 `--yes`);本函数只追加
|
|
4039
|
+
* `--records-file <path>`,避免调用方重新把 JSON 放回命令行。
|
|
4040
|
+
*/
|
|
4041
|
+
declare function runDwsRecordsFile<T = unknown>(dws: DwsJsonRunner, args: string[], records: unknown): Promise<T>;
|
|
4042
|
+
|
|
3810
4043
|
type DingTalkContactCandidate = {
|
|
3811
4044
|
userId?: string | null;
|
|
3812
4045
|
openDingTalkId?: string | null;
|
|
@@ -4021,6 +4254,20 @@ declare function activateGlobalDwsOnPath(options?: GlobalDwsActivationOptions):
|
|
|
4021
4254
|
* 入口 + 相对 .js→.ts。tsx 不可用时静默跳过,回退原生 import。幂等,仅注册一次。
|
|
4022
4255
|
*/
|
|
4023
4256
|
declare function ensureTsxRegistered(): Promise<void>;
|
|
4257
|
+
/**
|
|
4258
|
+
* 确保 .ts recipe 所在目录被 Node / tsx 判定为 ES 模块。
|
|
4259
|
+
*
|
|
4260
|
+
* 背景:tsx 与 Node 都按「最近的 package.json 的 `type` 字段」决定 .ts 的模块格式。
|
|
4261
|
+
* 上传/初始化到服务端 `data/projects/<id>/…/recipes/` 的 recipe 目录通常没有
|
|
4262
|
+
* package.json,于是 .ts 被当作 CommonJS;而 recipe 源码用的是 ESM 语法
|
|
4263
|
+
* (`import` / `export default`)。此时经 `import(file://…)` 加载会抛
|
|
4264
|
+
* "Cannot require() ES Module … in a cycle"(require(esm) 环检测)。
|
|
4265
|
+
*
|
|
4266
|
+
* 修复:在 recipe 目录补一个 `{ "type": "module" }` 的 package.json,让格式判定为 ESM。
|
|
4267
|
+
* 幂等且保守:目录已有 package.json 时**不覆盖**(尊重模板/调用方自带配置);
|
|
4268
|
+
* 只读目录等写入失败时静默跳过,交由 import() 自身报错诊断。
|
|
4269
|
+
*/
|
|
4270
|
+
declare function ensureRecipeModuleFormat(recipePath: string): void;
|
|
4024
4271
|
|
|
4025
4272
|
/**
|
|
4026
4273
|
* module-url — 把本地绝对路径转成动态 import 可用的 file:// URL。
|
|
@@ -5763,6 +6010,14 @@ interface CodingAgentDef {
|
|
|
5763
6010
|
resolveCommand?: (options: CodingAgentRuntimeOptions) => CodingAgentResolvedCommand | undefined;
|
|
5764
6011
|
/** 可选:常规 bin 探测失败后的自定义可用性探测 */
|
|
5765
6012
|
detect?: () => CodingAgentDetectedRuntime | undefined;
|
|
6013
|
+
/**
|
|
6014
|
+
* 可选:跳过 `bin --version` 通用探测,直接以 detect() 判定可用性。
|
|
6015
|
+
* 适用于「运行时实际命令不由 bin 决定」的 def —— 如 qwenwork 实际走 resolveCommand
|
|
6016
|
+
* (node + 内置 runner + 桌面端 MCP),机器上却恰好有个同名 Go 管控 CLI 应答
|
|
6017
|
+
* `qwenwork --version`,会让通用探测误报「已安装」,而真正的执行前提
|
|
6018
|
+
* (mcp-adaptor.config)根本没被检查。
|
|
6019
|
+
*/
|
|
6020
|
+
skipBinProbe?: boolean;
|
|
5766
6021
|
/**
|
|
5767
6022
|
* 可选:宿主环境污染防御 —— spawn 与 bin 探测前从继承环境中主动剥除的变量名名单。
|
|
5768
6023
|
* 宿主(如千问办公)会往 shell 注入自身 SDK 会话变量(如 QODER_AGENT_SDK_ENTRYPOINT /
|
|
@@ -5807,11 +6062,22 @@ interface CodingAgentInfo {
|
|
|
5807
6062
|
detectedCmd?: string;
|
|
5808
6063
|
detectedVersion?: string;
|
|
5809
6064
|
}
|
|
6065
|
+
/** 版本探测函数签名;默认 probeCommand,单测可注入以覆盖 skipBinProbe 分支而不真起进程。 */
|
|
6066
|
+
type BinProbe = (cmd: string, args: string[], options: {
|
|
6067
|
+
timeoutMs: number;
|
|
6068
|
+
stripEnv?: readonly string[];
|
|
6069
|
+
}) => {
|
|
6070
|
+
ok: boolean;
|
|
6071
|
+
stdout: string;
|
|
6072
|
+
};
|
|
5810
6073
|
/**
|
|
5811
6074
|
* 探测本机安装了哪些 Agent CLI:对每个 def 依次尝试 bin + fallbackBins,
|
|
5812
6075
|
* 命中一个即记录。完全由 registry 驱动,新增 Agent 自动纳入探测。
|
|
6076
|
+
*
|
|
6077
|
+
* def.skipBinProbe 为真时不看 bin(其运行时命令另由 resolveCommand 决定,bin --version
|
|
6078
|
+
* 不代表可用性),直接走 detect()。
|
|
5813
6079
|
*/
|
|
5814
|
-
declare function detectInstalledCodingAgents(): DetectedCodingAgent[];
|
|
6080
|
+
declare function detectInstalledCodingAgents(probe?: BinProbe): DetectedCodingAgent[];
|
|
5815
6081
|
/**
|
|
5816
6082
|
* 列出全部已登记的 Agent 并标注本机安装状态。
|
|
5817
6083
|
* 返回值同时包含“支持”和“已安装”两个维度。
|
|
@@ -5892,7 +6158,15 @@ type RunExecutionEvent = {
|
|
|
5892
6158
|
} | {
|
|
5893
6159
|
type: "record.completed";
|
|
5894
6160
|
itemId: string;
|
|
5895
|
-
}
|
|
6161
|
+
}
|
|
6162
|
+
/**
|
|
6163
|
+
* 逐轮 Coding Agent 工具流(thinking / tool_use / tool_result)。
|
|
6164
|
+
*
|
|
6165
|
+
* 与 `step.*` 同层:都是「一次工单处理过程中发生的事」,但它不进 runSnapshot
|
|
6166
|
+
* (server 侧按 `run.record.` / `run.step.` 前缀判定是否落盘,本变体天然不匹配),
|
|
6167
|
+
* 只做 SSE 直播。形状直接复用 base 的 `RunAgentEventDTO`,避免 core / DTO 两处漂移。
|
|
6168
|
+
*/
|
|
6169
|
+
| RunAgentEventDTO;
|
|
5896
6170
|
type RunRecordSnapshot = {
|
|
5897
6171
|
id: string;
|
|
5898
6172
|
title: string;
|
|
@@ -9437,4 +9711,4 @@ declare function buildCandidateId(input: CandidateIdentityInput): string;
|
|
|
9437
9711
|
declare function buildCandidateRevision(input: CandidateRevisionInput): string;
|
|
9438
9712
|
declare function buildReviewKey(candidateId: string, revision: string): string;
|
|
9439
9713
|
|
|
9440
|
-
export { AGENT_TO_ENGINE, type AIToolkit, type AgentAdapter, type AgentConfig, type AgentEngine, type AgentExecutor, type AgentExecutorKind, type AgentFailure, type AgentFailureKind, type AgentLifecycleEvent, type AgentLifecyclePhase, type AgentMemoryToolkit, type AgentOptions, type AgentSession, type AitableAgentConfigMeta, type AnyToolkitDescriptor, type App, type ApprovalCandidate, type ApprovalCreateParams, type ApprovalStatus, type ApprovalToolkit, type ArtifactLintIssue, type ArtifactLintReport, type AtOptions, type AttachmentDetail, type AutomationResult, BASE_AGENT_DEFS, type BaseAgentOptions, type BaseIdMigrationResult, type BaseTablesCache, type BotApprovalSnapshot, BotProvisionError, BotProvisioner, CANDIDATE_IDENTITY_CONTRACT_VERSION, CANDIDATE_REVISION_CONTRACT_VERSION, type CIRunStatus, type CIToolkit, type CandidateIdentityInput, type CandidateRevisionInput, type CardAction, type CardPayload, type CheckApprovalResponse, type CheckItem, type CheckOptions, type CheckStatus, type ClarifyRoundOptions, type ClarifyRoundResult, type ClaudeCodeConfig, type ClaudeCodeOptions, type CleanupOrphansOptions, type CleanupOrphansResult, type CliEnvironment, type CliIdentity, type CodeReviewToolkit, type CodexConfig, type CodexOptions, type CodingAgentDetection, type CodingAgentInfo, type CodingAgentRunner, type CodingAgentSelection, type CodingAgentsConfig, type CodingRunOptions, type CodingRunResult, type CodingToolkit, type CollectContextOptions, CommandAbortedError, type CommandProbeResult, type CommandResult, type CommandRunOptions, type CommandRunner, CommandTimeoutError, type CompactOptions, type CompactResult, type Config, type ConfigAccess, type ConfigCheckResult, type ConfigDefaultStrategy, type ConfigFileMergeSummary, type ConfigFileRef, type ConfigHint, type ConfigHintEntry, type ConfigHintType, type ConfigOwnership, type ConfigSaveBody, ConfigSaveError, type ConfigSetupPolicy, type ConfigSurfaceItem, type ConfigSurfaceOwner, type ConfigSurfaceSource, type ConfigSurfaceValueType, type ConfigValueType, type ContactIdentity, type ContentIndex, type ContentIndexArticle, type ContentIndexEntry, type ContractKeys, type CreateAppOptions, type CredentialEntry, type CredentialsStore, type CronSchedulerConfig, CronSchedulerSource, DEFAULT_TAXONOMY, DEFAULT_VISION_BASE_MS, DEFAULT_VISION_PER_PAGE_MS, DISTILL_PRESETS, DWS_HOST_ENV_KEYS, type DefinitionLoadFailure, type DefinitionLoadResult, type DesignContext, type DesignOptions, type DesignResult, type DesignValidationContext, type DesignWorkflowTarget, type DetectedAgentInfo, type DetectedCodingAgent, type DetectedCodingEngine, type DetectionResult, type DevAppEntry, type DingTalkActionCard$1 as DingTalkActionCard, type DingTalkActionCardButton$1 as DingTalkActionCardButton, type DingTalkActionCardButtons$1 as DingTalkActionCardButtons, type DingTalkActionCardResult$1 as DingTalkActionCardResult, type DingTalkAtUserIdResolver, type DingTalkAtUserIdResolverOptions, type DingTalkContactCandidate, type DingTalkContactSearch, type DingTalkGroupMessageResult$1 as DingTalkGroupMessageResult, DingTalkRobotClient, type DingTalkRobotClientConfig, type DingTalkRobotSendOptions, type DingTalkRobotUserSendOptions, type DingTalkStreamMessageEventContext, type DingTalkWebhookActionCard, type DingTalkWebhookMentionEventContext, type DiscoverLocalSourcesOptions, type DiscoveredLocalSource, type DistillPreset, type DistillPresetSpec, type DwsChatListAllResponse, type DwsChatListMineResponse, DwsClient, type DwsClientOptions, type DwsConversationSummary, DwsDevRunner, type DwsDevRunnerOptions, DwsError, type DwsMaintenanceOptions, type DwsMaintenanceResult, type DwsRunner$1 as DwsRunner, ENGINE_TO_AGENT, type EdgeDefinition, type EnsureBaseOptions, type EnsureTableOptions, type EnterpriseRobotEntry, type EnvJsonMapSpec, type EventBinding, type EventCallback, type EventContext, type EventHandlerDefinition, type EventHandlerMeta, type EventHandlerRecipeDefinition, type EventSource, type EventSourceConfig, type EventSourceDefinition, type ExternalEvent, type FieldDefinition, type FieldDefinitionConfig, type FieldInfo, type FieldPlan, type FieldType$1 as FieldType, type FieldTypeEnum, type FieldsConfig, type FileRefHint, type FileToolkit, type FingerprintWindow, type FingerprintWindowOptions, type FirstResponseInfo, type GateEmptySnapshotResult, type GateId, type GateIssue, type GateIssueLocation, type GateIssueSeverity, type GateReport, type GateResult, type GateRunOptions, type GenericAgentConfig, type GitToolkit, type GlobalDwsActivationOptions, type GlobalDwsActivationResult, type GlobalVarAccessor, type GlobalVarStore, type HandlerInitContext, type HandlerInstance, InMemoryGlobalVarStore, InMemoryObjectStore, type InferredContract, IngestError, type IngestOptions, type IngestReport, type IngestResult, type IngestSourceType, type InitAnswers, type InitOptions, type Invocation, KNOWN_AGENT_IDS, type KbCleanupCommandOptions, type KbCommandOptions, type KbContext, type KbIngestCommandOptions, type KbProgressInfo, type KbRunSummary, type KbState, type KbStatus, type KbWiki, type LLMCallOptions, type LLMCallTrace, type ListDwsConversationsOptions, type ListDwsConversationsResult, type ListDwsConversationsRole, type LoadSettingsOptions, type LoadWorkflowOptions, LocalSpawnExecutor, type LogContext, type LogLevel, type LogSink, type ManagedProcess, type ManagedProcessExit, type ManagedProcessSpec, type ManagedProcessSyncSpec, type MemoryEntry, type MemoryQuery, type MemoryScope, type MemoryScopeInput, type MemoryToolkitConfig, type MessageEmotionContext, type MessageTarget, type MessagingToolkit, type MigrateOptions, type MigrateResult, type MigrationPlan, type ModelSwitchable, type ModuleResult, type ModuleUrlOptions, type MrComment, type MultiWorkflowConfig, type NeedsHuman, type NormalizedMessage, type NotificationConfig, type ObjectStore, type ObjectStoreConfig, type OutboundChannel, PROVISION_PHASES, PathBoundaryError, type PathBoundaryReason, type PathFlavor, type PdfDensityAssessment, type PdfDensityOptions, type PdfDensityTier, type PendingAction, type PendingDigestItem, type PortableIdOptions, type PreflightIssue, type PreflightLevel, type PreflightModule, type PreflightOutcome, type PresignedUpload, type PrintfLogger, type ProfileConfig, type ProgressReporter, type ProjectShape, type ProvisionErrorKind, type ProvisionEvent, type ProvisionGroupOutcome, type ProvisionOptions, type ProvisionPhase, type ProvisionResult, type ProvisionState, type ProvisionedGroupEntry, type ProvisionerDeps, QUESTION_FORM_TAG, type QoderConfig, type QoderOptions, type RecipeCheckIssue, type RecipeCheckLevel, type RecipeCheckResult, type RecipeConfig, type RecipeContext, type RecipeDefinition, type RecipeInspectRow, type RecipeMeta, type RecipeResult, type RecipeResultStatus, type RecoverResult, type RecoverStats, type RecoverThreadStoreOptions, type ReferencedFields, type RefreshOptions, type RefreshResult, type RelayAgent, RelayAgentSession, type RelayAgentSessionConfig, RelayExecutor, type RelayExecutorConfig, type RelayTransport, type ReplyResult, type ReplyToConversationOptions, type ResolveContactsByUserIdsOptions, type ResolveContactsByUserIdsResult, type ResolveInsideRootOptions, type ResolvedDingTalkStreamMessageEventContext, type ResolvedDingTalkWebhookMentionEventContext, type ReviewStateResolution, type RobotCredentialEntry, type RobotLifecycle, type RobotResultResponse, type RobotSubmitResponse, type RolesConfig, type RunCodingAgentOptions, type RunDesignOptions, type RunEventSink, type RunRecordSnapshot, type RunResult, SCAFFOLD_FIELD_NAMES, type SafeFilenameOptions, type ScaffoldOptions, type SearchDwsChatGroupsOptions, type SearchDwsChatGroupsResult, type SessionReplyEntry, type SessionReplyOptions, type Settings, type SetupAutomationsOptions, type SetupOptions, type SetupSchemaField, type SharedKnowledgeEntry, type SharedKnowledgeMapping, ShellNotAllowedError, type ShellRunOptions, type ShellRunResult, type ShellToolkit, type SingleWorkflowConfig, type SkippedWorkflow, type SlsReportDeps, type SourceDiscoveryResult, type SourceDiscoverySkipReason, type StatesConfig, type StepDefinition, type StepSLA, type StepTrace, type SyncOptions, type SyncResult, TAGS_INDEX_DIR, THREAD_CLOSE_REASONS, THREAD_CONFIDENCES, THREAD_CONTRACT_VERSION, THREAD_ROLES, type TableRef, type TableToolkit, type TaxonomyCategory, TaxonomyError, type TemplateScaffoldResult, type TerminateProcessOptions, type ThreadAssignment, type ThreadAssignmentReason, type ThreadAssignmentTrace, type ThreadAssignmentWarning, type ThreadCloseReason, type ThreadConfidence, type ThreadEdge, ThreadLog, type ThreadLogEvent, type ThreadLogOptions, type ThreadParticipant, type ThreadReviewSummary, type ThreadRole, type ThreadRoleRoster, type ThreadSnapshot, ThreadStore, type ThreadStoreOptions, type TodoToolkit, type Toolkit, type ToolkitContext, type ToolkitDescriptor, ToolkitError, type ToolkitMethodMeta, type ToolkitPermission, Tracer, type TrackerConfig, type TriggerOnceRequest, type TriggerOnceResult, VISION_META_NAME, VISION_NORMALIZED_NAME, type ValidationResult, type VersionCreateResponse, type VersionListItem, type VersionStatusResponse, type ViewDef, type ViewFilterCondition, type ViewType, type ViewsConfig, type VisionMeta, type VisionNormalizePromptInput, WORKSPACE_BUNDLE_FORMAT, type WebhookSendOptions, type WikiTaxonomy, type WizardOptions, type WizardResult, type WorkflowCheckResult, type WorkflowCodingEngine, type WorkflowDTO, type WorkflowEntry, type WorkflowGateResult, type WorkflowInstance, type WorkflowMeta, type WorkflowProfileConfig, type WorkflowResponseDTO, type WorkflowStepDTO, type WorkflowTemplate, type WorkspaceBundleFile, type WorkspaceBundlePayload, type WorktreeResult, type WriteProfileRolesResult, type WriteRolesResult, type WriteTarget, _resetDigestQueues, _resetThreadStoreRegistry, activateGlobalDwsOnPath, agentEngineSchema, agentToEngine, applyConfigSave, applyProvisionEvent, approvalCandidateSchema, assertDownloadMatchesExtension, assertPortableId, assertTableBelongsToBase, assessPdfDensity, assignThreadRoles, buildAgentChoices, buildArtifactKey, buildBotApprovalReportLines, buildCandidateId, buildCandidateRevision, buildClarifyReply, buildEnvSource, buildEnvSourceSync, buildFixPrompt, buildMetaPrompt, buildReviewKey, canOfferDefaultFor, canonicalJson, checkApprovalSchema, checkEnv, checkMigrateHint, checkRecipeSyntax, checkRecipeTypes, checkWorkflowRecipes, checkWorkflows, chooseDetectedEngine, classifyProvisionError, cleanupOrphanArticles, codingAgentsConfigSchema, coerceJsonValue, coerceYamlValue, collectAllItems, collectBaseIdCandidateFiles, collectConfigHints, collectDesignContext, collectEnvRefDetails, collectEnvRefs, collectionDir, commandsInFlight, composeToolkitRegistry, computeFirstResponse, computeParticipants, computeWorkspaceRevision, configSchema, contentIndexKey, createApp, createDingTalkAtUserIdResolver, createExecShellToolkit, createFingerprintWindow, createInitialProvisionState, createLocalSpawnExecutor, createPerWorkflowSettings, createPrintfLogger, createRelayExecutor, createStandaloneExecShellToolkit, createWorkflowTable, credentialsFilePath, decodeWorkspaceBundle, defaultCommandRunner, defaultProvisionStatePath, defaultToolkitRegistry, degradeConfidence, deriveEnvJsonMapSpec, describeConfigPath, detectAgentFailure, detectAgents, detectCodingEngines, detectInstalledAgents, detectInstalledCodingAgents, detectScope, detectSourceType, devAppEntrySchema, discoverLocalSources, distillPresetSpec, drainCommands, dwsCommandOptions, dwsErrorEnvelopeSchema, dwsPayload, emptyContentIndex, emptyStore, emptyStreakKey, encodeWorkspaceBundle, engineToAgent, enqueueForDigest, enrichLogContext, ensureBaseExists, ensureLatestDws, ensureTableExists, ensureTsxRegistered, evaluateStrictGate, extractAddBotRobotName, extractAttachmentDetails, extractErrorInfo, extractPdfPageCount, extractStructuredJson, fetchFields, fieldDefinitionSchema, fieldTypeSchema, fileRefConfigSchema, findArrayPayload, findConflictingCredential, findCursor, formatArtifactLint, formatCommandError, formatZonedDateTime, formatZonedHm, gateEmptySnapshot, generateCodingAgentsConfig, generateMainConfig, getActiveCredential, getAgentConfig, getAgentDef, getAitableAgentConfigMeta, getConfigHint, getConfigValueAtPath, getCurrentDwsRunner, getCurrentExecutor, getDefaultAgentEntry, getFileRefHint, getGlobalDwsBinPath, getLogContext, getPendingItems, getSemanticKey, getThreadStore, getTracer, getZodObjectShape, globalVarRefPath, groupEntriesOf, hasArtifactError, hasHumanStep, hasOssCredentials, hashNormalizedContent, incrementDigestAttempts, indexPath, inferRecipeContractFromSource, ingest, initSlsReport, initTable, initTracer, initialTableFields, injectProfileConfig, interpolateEnv, isAllowedArtifactPath, isDigestQueueEmpty, isDistillPreset, isEngineDetected, isGlobalVarRef, isOwnedAutoCreateHint, isPublishedStatus, isRecord, isSafeRelativePath, isSlsReportDisabled, lintArtifacts, listCodingAgents, listCredentials, listDwsConversations, listProfiles, listTemplates, loadAgentConfig, loadEventHandlerDefinition, loadEventHandlerDefinitionResult, loadProfileConfig, loadProvisionState, loadRecipeDefinition, loadRecipeDefinitionResult, loadSettings, loadTaxonomy, loadWorkflowTemplate, logDateDir, logPreflightSummary, logger, lowerConfidence, mapWithConcurrency, markDigestFailure, maskSecret, materializeSharedKnowledge, materializeWithMapping, mergeCommandEnv, mergeEnterpriseRobotCredentials, migrateBaseIdInFiles, moduleDir, nextStepForPhase, normalizeArtifactRelPath, normalizeByType, normalizeCategory, normalizeEol, normalizeTimezone, padStaffId, parseDwsAuthIdentity, parseDwsVersionOutput, parseEnterpriseRobots, parseEnvExampleValues, parseEnvValue, parseFrontmatter, parseGroupTargets, parseProvisionState, parseQuestionForm, parseVisionMeta, preflightModuleResult, prependGlobalDwsToPath, printFieldPlan, printKbProgress, printKbSummary, probeCommand, probeProjectShape, provisionGuidance, provisionStateFileSchema, provisionedGroupEntrySchema, readContentIndex, readCredentials, readSection, readState, readTitle, readYamlValueAt, recoverThreadStoreOnce, redactPayloadForLog, refreshKnowledgeBases, remainingDesignTimeoutMs, removeFromDigestQueue, renderDistillPrompt, renderForm, renderForms, renderKbPromptBlock, renderSimpleDistillPrompt, renderThread, renderVisionNormalizePrompt, repairJsonStringValues, reportCliEvent, reportPath, requireAgentDef, resetProfileCache, resolveAllCollections, resolveCodingAgentSelection, resolveCompileAgent, resolveConfigPath, resolveContactsByUserIds, resolveDingTalkAtUserId, resolveDingTalkStreamMessageEventContext, resolveDingTalkWebhookMentionEventContext, resolveDwsCommandBin, resolveGlobalVarRef, resolveInsideRoot, resolveKbContext, resolveRecipePath, resolveReportProject, resolveReviewState, resolveReviewStateDetailed, resolveTriggerTarget, resolveWorkflowTracker, robotLifecycleSchema, robotResultSchema, robotSubmitSchema, runCheck, runClarifyRound, runCodingAgent, runCodingAgentViaSpawn, runCommand, runDesign, runDesignCommand, runDwsCommand, runInit, runInstancePreflight, runKbCleanupCommand, runKbCompileCommand, runKbIngestCommand, runKbStatusCommand, runKbUpdateCommand, runMigrate, runSetupCommand, runSync, runWithDwsRunner, runWithExecutor, runWithLogContext, runWorkflowGate, runWorkflowGates, safeFilename, safeParseJson, sanitizeProvisionText, saveCredential, saveProvisionState, scaffold, scaffoldFromTemplate, scanWorkflowDirs, searchDwsChatGroups, sessionWebhookRegistry, setActiveAgent, setGlobalDwsRunner, setInJson, setReportProject, setupAutomations, setupKnowledgeBases, setupSurfaceTables, shellToken, shouldDetachCommand, shouldRunVisionRound, snapshotRunRecord, spawnManagedProcess, spawnManagedProcessSync, splitFrontmatter, stringOrNull, stripPdfSeparators, syncFieldsFromWorkflow, tableRefConfigSchema, index as tableSource, taxonomyCategoryIds, taxonomyFingerprint, threadLogFileName, threadNeedsReview, tidySection, toModuleUrl, toPortableRelPath, toStringList, trackerSchema, tryReuseStagingArticles, tzOffsetMs, upsertContentIndexEntry, validateDesignArtifacts, validateDesignOutput, validateProvisionName, validateStateConsistency, versionCreateSchema, versionListItemSchema, versionStatusSchema, viewDefSchema, viewFilterConditionSchema, viewTypeSchema, visionTimeoutMs, wikiDir, workspaceAgentConfigPath, writeBack, writeContentIndex, writeCredentials, writeEnvFile, writeJsonFile, writeProfileRoles, writeRoleDefinitions, writeTableIdToConfig, writeYaml, yamlFlowList, yamlScalar, yesterdayRange, zodToFormatExample, zonedDateParts, zonedWallClockToUtc };
|
|
9714
|
+
export { AGENT_TO_ENGINE, type AIToolkit, type AgentAdapter, type AgentConfig, type AgentEngine, type AgentExecutor, type AgentExecutorKind, type AgentFailure, type AgentFailureKind, type AgentLifecycleEvent, type AgentLifecyclePhase, type AgentMemoryToolkit, type AgentOptions, type AgentSession, type AitableAgentConfigMeta, type AnyToolkitDescriptor, type App, type ApprovalCandidate, type ApprovalCreateParams, type ApprovalStatus, type ApprovalToolkit, type ArtifactLintIssue, type ArtifactLintReport, type AtOptions, type AttachmentDetail, type AutomationResult, BASE_AGENT_DEFS, type BaseAgentOptions, type BaseIdMigrationResult, type BaseTablesCache, type BotApprovalSnapshot, BotProvisionError, BotProvisioner, CANDIDATE_IDENTITY_CONTRACT_VERSION, CANDIDATE_REVISION_CONTRACT_VERSION, type CIRunStatus, type CIToolkit, type CandidateIdentityInput, type CandidateRevisionInput, type CardAction, type CardPayload, type CheckApprovalResponse, type CheckItem, type CheckOptions, type CheckStatus, type ClarifyRoundOptions, type ClarifyRoundResult, type ClaudeCodeConfig, type ClaudeCodeOptions, type CleanupOrphansOptions, type CleanupOrphansResult, type CliEnvironment, type CliIdentity, type CodeReviewToolkit, type CodexConfig, type CodexOptions, type CodingAgentDetection, type CodingAgentInfo, type CodingAgentRunner, type CodingAgentSelection, type CodingAgentsConfig, type CodingRunOptions, type CodingRunResult, type CodingToolkit, type CollectContextOptions, CommandAbortedError, type CommandProbeResult, type CommandResult, type CommandRunOptions, type CommandRunner, CommandTimeoutError, type CompactOptions, type CompactResult, type Config, type ConfigAccess, type ConfigCheckResult, type ConfigDefaultStrategy, type ConfigFileMergeSummary, type ConfigFileRef, type ConfigHint, type ConfigHintEntry, type ConfigHintType, type ConfigOwnership, type ConfigSaveBody, ConfigSaveError, type ConfigSetupPolicy, type ConfigSurfaceItem, type ConfigSurfaceOwner, type ConfigSurfaceSource, type ConfigSurfaceValueType, type ConfigValueType, type ContactIdentity, type ContentIndex, type ContentIndexArticle, type ContentIndexEntry, type ContractKeys, type CreateAppOptions, type CredentialEntry, type CredentialsStore, type CronSchedulerConfig, CronSchedulerSource, DEFAULT_TAXONOMY, DEFAULT_VISION_BASE_MS, DEFAULT_VISION_PER_PAGE_MS, DISTILL_PRESETS, DWS_HOST_ENV_KEYS, DWS_RECORDS_FILE_FLAG, type DefinitionLoadFailure, type DefinitionLoadResult, type DesignContext, type DesignOptions, type DesignResult, type DesignValidationContext, type DesignWorkflowTarget, type DetectedAgentInfo, type DetectedCodingAgent, type DetectedCodingEngine, type DetectionResult, type DevAppEntry, type DingTalkActionCard$1 as DingTalkActionCard, type DingTalkActionCardButton$1 as DingTalkActionCardButton, type DingTalkActionCardButtons$1 as DingTalkActionCardButtons, type DingTalkActionCardResult$1 as DingTalkActionCardResult, type DingTalkAtUserIdResolver, type DingTalkAtUserIdResolverOptions, type DingTalkContactCandidate, type DingTalkContactSearch, type DingTalkGroupMessageResult$1 as DingTalkGroupMessageResult, DingTalkRobotClient, type DingTalkRobotClientConfig, type DingTalkRobotSendOptions, type DingTalkRobotUserSendOptions, type DingTalkStreamMessageEventContext, type DingTalkWebhookActionCard, type DingTalkWebhookMentionEventContext, type DiscoverLocalSourcesOptions, type DiscoveredLocalSource, type DistillPreset, type DistillPresetSpec, type DwsChatListAllResponse, type DwsChatListMineResponse, DwsClient, type DwsClientOptions, type DwsConversationSummary, DwsDevRunner, type DwsDevRunnerOptions, DwsError, type DwsJsonRunner, type DwsMaintenanceOptions, type DwsMaintenanceResult, type DwsRunner$1 as DwsRunner, ENGINE_TO_AGENT, type EdgeDefinition, type EnsureBaseOptions, type EnsureTableOptions, type EnterpriseRobotEntry, type EnvJsonMapSpec, type EventBinding, type EventCallback, type EventContext, type EventHandlerDefinition, type EventHandlerMeta, type EventHandlerRecipeDefinition, type EventSource, type EventSourceConfig, type EventSourceDefinition, type ExternalEvent, type FieldDefinition, type FieldDefinitionConfig, type FieldInfo, type FieldPlan, type FieldType$1 as FieldType, type FieldTypeEnum, type FieldsConfig, type FileRefHint, type FileToolkit, type FingerprintWindow, type FingerprintWindowOptions, type FirstResponseInfo, type GateEmptySnapshotResult, type GateId, type GateIssue, type GateIssueLocation, type GateIssueSeverity, type GateReport, type GateResult, type GateRunOptions, type GenericAgentConfig, type GitToolkit, type GlobalDwsActivationOptions, type GlobalDwsActivationResult, type GlobalVarAccessor, type GlobalVarStore, type HandlerInitContext, type HandlerInstance, type IdentityConfig, InMemoryGlobalVarStore, InMemoryObjectStore, type InferredContract, IngestError, type IngestOptions, type IngestReport, type IngestResult, type IngestSourceType, type InitAnswers, type InitOptions, type Invocation, KNOWN_AGENT_IDS, type KbCleanupCommandOptions, type KbCommandOptions, type KbContext, type KbIngestCommandOptions, type KbProgressInfo, type KbRunSummary, type KbState, type KbStatus, type KbWiki, type LLMCallOptions, type LLMCallTrace, type ListDwsConversationsOptions, type ListDwsConversationsResult, type ListDwsConversationsRole, type LoadSettingsOptions, type LoadWorkflowOptions, LocalSpawnExecutor, type LogContext, type LogLevel, type LogSink, type ManagedProcess, type ManagedProcessExit, type ManagedProcessSpec, type ManagedProcessSyncSpec, type MemoryEntry, type MemoryQuery, type MemoryScope, type MemoryScopeInput, type MemoryToolkitConfig, type MessageEmotionContext, type MessageTarget, type MessagingToolkit, type MigrateOptions, type MigrateResult, type MigrationPlan, type ModelSwitchable, type ModuleResult, type ModuleUrlOptions, type MrComment, type MultiWorkflowConfig, type NeedsHuman, type NormalizedMessage, type NotificationConfig, type ObjectStore, type ObjectStoreConfig, type OutboundChannel, PROVISION_PHASES, PathBoundaryError, type PathBoundaryReason, type PathFlavor, type PdfDensityAssessment, type PdfDensityOptions, type PdfDensityTier, type PendingAction, type PendingDigestItem, type PortableIdOptions, type PreflightIssue, type PreflightLevel, type PreflightModule, type PreflightOutcome, type PresignedUpload, type PrintfLogger, type ProfileConfig, type ProgressReporter, type ProjectShape, type ProvisionErrorKind, type ProvisionEvent, type ProvisionGroupOutcome, type ProvisionOptions, type ProvisionPhase, type ProvisionResult, type ProvisionState, type ProvisionedGroupEntry, type ProvisionerDeps, QUESTION_FORM_TAG, type QoderConfig, type QoderOptions, type RecipeCheckIssue, type RecipeCheckLevel, type RecipeCheckResult, type RecipeConfig, type RecipeContext, type RecipeDefinition, type RecipeInspectRow, type RecipeMeta, type RecipeResult, type RecipeResultStatus, type RecoverResult, type RecoverStats, type RecoverThreadStoreOptions, type ReferencedFields, type RefreshOptions, type RefreshResult, type RegistryConfig, type RegistryFieldsConfig, type RelayAgent, RelayAgentSession, type RelayAgentSessionConfig, RelayExecutor, type RelayExecutorConfig, type RelayTransport, type ReplyResult, type ReplyToConversationOptions, type ResolveContactsByUserIdsOptions, type ResolveContactsByUserIdsResult, type ResolveInsideRootOptions, type ResolvedDingTalkStreamMessageEventContext, type ResolvedDingTalkWebhookMentionEventContext, type ReviewStateResolution, type RobotCredentialEntry, type RobotLifecycle, type RobotResultResponse, type RobotSubmitResponse, type RolesConfig, type RunCodingAgentOptions, type RunDesignOptions, type RunEventSink, type RunRecordSnapshot, type RunResult, SCAFFOLD_FIELD_NAMES, type SafeFilenameOptions, type ScaffoldOptions, type SearchDwsChatGroupsOptions, type SearchDwsChatGroupsResult, type SessionReplyEntry, type SessionReplyOptions, type Settings, type SetupAutomationsOptions, type SetupOptions, type SetupSchemaField, type SharedKnowledgeEntry, type SharedKnowledgeMapping, ShellNotAllowedError, type ShellRunOptions, type ShellRunResult, type ShellToolkit, type SingleWorkflowConfig, type SkippedWorkflow, type SlsReportDeps, type SourceDiscoveryResult, type SourceDiscoverySkipReason, type StatesConfig, type StepDefinition, type StepSLA, type StepTrace, type SyncOptions, type SyncResult, TAGS_INDEX_DIR, THREAD_CLOSE_REASONS, THREAD_CONFIDENCES, THREAD_CONTRACT_VERSION, THREAD_ROLES, type TableRef, type TableToolkit, type TaxonomyCategory, TaxonomyError, type TemplateScaffoldResult, type TerminateProcessOptions, type ThreadAssignment, type ThreadAssignmentReason, type ThreadAssignmentTrace, type ThreadAssignmentWarning, type ThreadCloseReason, type ThreadConfidence, type ThreadEdge, ThreadLog, type ThreadLogEvent, type ThreadLogOptions, type ThreadParticipant, type ThreadReviewSummary, type ThreadRole, type ThreadRoleRoster, type ThreadSnapshot, ThreadStore, type ThreadStoreOptions, type TodoToolkit, type Toolkit, type ToolkitContext, type ToolkitDescriptor, ToolkitError, type ToolkitMethodMeta, type ToolkitPermission, Tracer, type TrackerConfig, type TriggerOnceRequest, type TriggerOnceResult, VISION_META_NAME, VISION_NORMALIZED_NAME, type ValidationResult, type VersionCreateResponse, type VersionListItem, type VersionStatusResponse, type ViewDef, type ViewFilterCondition, type ViewType, type ViewsConfig, type VisionMeta, type VisionNormalizePromptInput, WORKSPACE_BUNDLE_FORMAT, type WebhookSendOptions, type WikiTaxonomy, type WizardOptions, type WizardResult, type WorkflowCheckResult, type WorkflowCodingEngine, type WorkflowDTO, type WorkflowEntry, type WorkflowGateResult, type WorkflowInstance, type WorkflowMeta, type WorkflowProfileConfig, type WorkflowResponseDTO, type WorkflowStepDTO, type WorkflowTemplate, type WorkspaceBundleFile, type WorkspaceBundlePayload, type WorktreeResult, type WriteProfileRolesResult, type WriteRolesResult, type WriteTarget, _resetDigestQueues, _resetThreadStoreRegistry, activateGlobalDwsOnPath, agentEngineSchema, agentToEngine, applyConfigSave, applyProvisionEvent, approvalCandidateSchema, assertDownloadMatchesExtension, assertPortableId, assertTableBelongsToBase, assessPdfDensity, assignThreadRoles, buildAgentChoices, buildArtifactKey, buildBotApprovalReportLines, buildCandidateId, buildCandidateRevision, buildClarifyReply, buildEnvSource, buildEnvSourceSync, buildFixPrompt, buildMetaPrompt, buildReviewKey, canOfferDefaultFor, canonicalJson, checkApprovalSchema, checkEnv, checkMigrateHint, checkRecipeSyntax, checkRecipeTypes, checkWorkflowRecipes, checkWorkflows, chooseDetectedEngine, classifyProvisionError, cleanupOrphanArticles, codingAgentsConfigSchema, coerceJsonValue, coerceYamlValue, collectAllItems, collectBaseIdCandidateFiles, collectConfigHints, collectDesignContext, collectEnvRefDetails, collectEnvRefs, collectionDir, commandsInFlight, composeToolkitRegistry, computeFirstResponse, computeParticipants, computeWorkspaceRevision, configSchema, configTrackerSchema, contentIndexKey, createApp, createDingTalkAtUserIdResolver, createExecShellToolkit, createFingerprintWindow, createInitialProvisionState, createLocalSpawnExecutor, createPerWorkflowSettings, createPrintfLogger, createRelayExecutor, createStandaloneExecShellToolkit, createWorkflowTable, credentialsFilePath, decodeWorkspaceBundle, defaultCommandRunner, defaultProvisionStatePath, defaultToolkitRegistry, degradeConfidence, deriveEnvJsonMapSpec, describeConfigPath, detectAgentFailure, detectAgents, detectCodingEngines, detectInstalledAgents, detectInstalledCodingAgents, detectScope, detectSourceType, devAppEntrySchema, discoverLocalSources, distillPresetSpec, drainCommands, dwsCommandOptions, dwsErrorEnvelopeSchema, dwsPayload, emptyContentIndex, emptyStore, emptyStreakKey, encodeWorkspaceBundle, engineToAgent, enqueueForDigest, enrichLogContext, ensureBaseExists, ensureLatestDws, ensureRecipeModuleFormat, ensureTableExists, ensureTsxRegistered, evaluateStrictGate, extractAddBotRobotName, extractAttachmentDetails, extractErrorInfo, extractPdfPageCount, extractStructuredJson, fetchFields, fieldDefinitionSchema, fieldTypeSchema, fileRefConfigSchema, findArrayPayload, findConflictingCredential, findCursor, formatArtifactLint, formatCommandError, formatZonedDateTime, formatZonedHm, gateEmptySnapshot, generateCodingAgentsConfig, generateMainConfig, getActiveCredential, getAgentConfig, getAgentDef, getAitableAgentConfigMeta, getConfigHint, getConfigValueAtPath, getCurrentDwsRunner, getCurrentExecutor, getDefaultAgentEntry, getFileRefHint, getGlobalDwsBinPath, getLogContext, getPendingItems, getSemanticKey, getThreadStore, getTracer, getZodObjectShape, globalVarRefPath, groupEntriesOf, hasArtifactError, hasHumanStep, hasOssCredentials, hashNormalizedContent, incrementDigestAttempts, indexPath, inferRecipeContractFromSource, ingest, initSlsReport, initTable, initTracer, initialTableFields, injectProfileConfig, interpolateEnv, isAllowedArtifactPath, isDigestQueueEmpty, isDistillPreset, isEngineDetected, isGlobalVarRef, isOwnedAutoCreateHint, isPublishedStatus, isRecord, isSafeRelativePath, isSlsReportDisabled, lintArtifacts, listCodingAgents, listCredentials, listDwsConversations, listProfiles, listTemplates, loadAgentConfig, loadEventHandlerDefinition, loadEventHandlerDefinitionResult, loadProfileConfig, loadProvisionState, loadRecipeDefinition, loadRecipeDefinitionResult, loadSettings, loadTaxonomy, loadWorkflowTemplate, logDateDir, logPreflightSummary, logger, lowerConfidence, mapWithConcurrency, markDigestFailure, maskSecret, materializeSharedKnowledge, materializeWithMapping, mergeCommandEnv, mergeEnterpriseRobotCredentials, migrateBaseIdInFiles, moduleDir, nextStepForPhase, normalizeArtifactRelPath, normalizeByType, normalizeCategory, normalizeEol, normalizeTimezone, padStaffId, parseDwsAuthIdentity, parseDwsVersionOutput, parseEnterpriseRobots, parseEnvExampleValues, parseEnvValue, parseFrontmatter, parseGroupTargets, parseProvisionState, parseQuestionForm, parseVisionMeta, preflightModuleResult, prependGlobalDwsToPath, printFieldPlan, printKbProgress, printKbSummary, probeCommand, probeProjectShape, provisionGuidance, provisionStateFileSchema, provisionedGroupEntrySchema, readContentIndex, readCredentials, readSection, readState, readTitle, readYamlValueAt, recoverThreadStoreOnce, redactPayloadForLog, refreshKnowledgeBases, remainingDesignTimeoutMs, removeFromDigestQueue, renderDistillPrompt, renderForm, renderForms, renderKbPromptBlock, renderSimpleDistillPrompt, renderThread, renderVisionNormalizePrompt, repairJsonStringValues, reportCliEvent, reportPath, requireAgentDef, resetProfileCache, resolveAllCollections, resolveCodingAgentSelection, resolveCompileAgent, resolveConfigPath, resolveContactsByUserIds, resolveDingTalkAtUserId, resolveDingTalkStreamMessageEventContext, resolveDingTalkWebhookMentionEventContext, resolveDwsCommandBin, resolveGlobalVarRef, resolveInsideRoot, resolveKbContext, resolveRecipePath, resolveRecordsFilePath, resolveReportProject, resolveReviewState, resolveReviewStateDetailed, resolveTriggerTarget, resolveWorkflowTracker, robotLifecycleSchema, robotResultSchema, robotSubmitSchema, runCheck, runClarifyRound, runCodingAgent, runCodingAgentViaSpawn, runCommand, runDesign, runDesignCommand, runDwsCommand, runDwsRecordsFile, runInit, runInstancePreflight, runKbCleanupCommand, runKbCompileCommand, runKbIngestCommand, runKbStatusCommand, runKbUpdateCommand, runMigrate, runSetupCommand, runSync, runWithDwsRunner, runWithExecutor, runWithLogContext, runWorkflowGate, runWorkflowGates, safeFilename, safeParseJson, sanitizeProvisionText, saveCredential, saveProvisionState, scaffold, scaffoldFromTemplate, scanWorkflowDirs, searchDwsChatGroups, sessionWebhookRegistry, setActiveAgent, setGlobalDwsRunner, setInJson, setReportProject, setupAutomations, setupKnowledgeBases, setupSurfaceTables, shellToken, shouldDetachCommand, shouldRunVisionRound, snapshotRunRecord, spawnManagedProcess, spawnManagedProcessSync, splitFrontmatter, stringOrNull, stripPdfSeparators, substituteArgPath, syncFieldsFromWorkflow, tableRefConfigSchema, index as tableSource, taxonomyCategoryIds, taxonomyFingerprint, threadLogFileName, threadNeedsReview, tidySection, toModuleUrl, toPortableRelPath, toStringList, trackerSchema, tryReuseStagingArticles, tzOffsetMs, upsertContentIndexEntry, validateDesignArtifacts, validateDesignOutput, validateProvisionName, validateStateConsistency, versionCreateSchema, versionListItemSchema, versionStatusSchema, viewDefSchema, viewFilterConditionSchema, viewTypeSchema, visionTimeoutMs, wikiDir, workspaceAgentConfigPath, writeBack, writeContentIndex, writeCredentials, writeEnvFile, writeJsonFile, writeProfileRoles, writeRoleDefinitions, writeTableIdToConfig, writeYaml, yamlFlowList, yamlScalar, yesterdayRange, zodToFormatExample, zonedDateParts, zonedWallClockToUtc };
|