aitable-workflow-core 0.1.16 → 0.1.17-beta.1786087167343
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 +152 -22
- package/dist/index.js +143 -153
- package/package.json +3 -1
- package/wolai-crawler/lib/crawler.js +87 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { EventEmitter } from 'node:events';
|
|
3
|
+
import { ChildProcess, SpawnOptions, SpawnSyncReturns } from 'node:child_process';
|
|
3
4
|
export { ApplyRunExecutionEventOptions, RunExecutionEvent, RunRecordStatus, RunSnapshot, RunSnapshotLogLevel, RunSnapshotStepLevelResolver, applyRunExecutionEvent } from './shared/run-state.js';
|
|
4
5
|
|
|
5
6
|
/**
|
|
@@ -1835,9 +1836,60 @@ type NotificationConfig = {
|
|
|
1835
1836
|
};
|
|
1836
1837
|
|
|
1837
1838
|
/**
|
|
1838
|
-
*
|
|
1839
|
-
*
|
|
1839
|
+
* 跨平台子进程底座。
|
|
1840
|
+
*
|
|
1841
|
+
* 只有本模块可以直接接触底层进程实现:
|
|
1842
|
+
* - cross-spawn 负责 Windows PATHEXT、npm .cmd/.bat shim 与参数转义;
|
|
1843
|
+
* - 统一合并大小写不敏感的 Windows 环境变量;
|
|
1844
|
+
* - 统一进程组、等待和整棵进程树终止语义。
|
|
1840
1845
|
*/
|
|
1846
|
+
|
|
1847
|
+
type ManagedProcessSpec = {
|
|
1848
|
+
command: string;
|
|
1849
|
+
args?: readonly string[];
|
|
1850
|
+
cwd?: string;
|
|
1851
|
+
env?: NodeJS.ProcessEnv;
|
|
1852
|
+
stdio?: SpawnOptions["stdio"];
|
|
1853
|
+
/** 缺省由平台决定:POSIX 建独立进程组,Windows 保持当前进程组。 */
|
|
1854
|
+
detached?: boolean;
|
|
1855
|
+
windowsHide?: boolean;
|
|
1856
|
+
};
|
|
1857
|
+
type ManagedProcessExit = {
|
|
1858
|
+
exitCode: number | null;
|
|
1859
|
+
signal: NodeJS.Signals | null;
|
|
1860
|
+
};
|
|
1861
|
+
type TerminateProcessOptions = {
|
|
1862
|
+
/** 先请求优雅退出,超过该时间后强制终止。 */
|
|
1863
|
+
gracePeriodMs?: number;
|
|
1864
|
+
};
|
|
1865
|
+
type ManagedProcess = {
|
|
1866
|
+
child: ChildProcess;
|
|
1867
|
+
wait(): Promise<ManagedProcessExit>;
|
|
1868
|
+
terminateTree(options?: TerminateProcessOptions): Promise<void>;
|
|
1869
|
+
unref(): void;
|
|
1870
|
+
};
|
|
1871
|
+
type ManagedProcessSyncSpec = Omit<ManagedProcessSpec, "stdio" | "detached"> & {
|
|
1872
|
+
timeoutMs?: number;
|
|
1873
|
+
input?: string;
|
|
1874
|
+
};
|
|
1875
|
+
/**
|
|
1876
|
+
* Windows 环境变量名大小写不敏感。不能直接 `{ ...process.env, ...overrides }`,
|
|
1877
|
+
* 否则可能同时得到 PATH/Path;Node 只会把按字典序排在前面的一个传给子进程。
|
|
1878
|
+
*/
|
|
1879
|
+
declare function mergeCommandEnv(base?: NodeJS.ProcessEnv, overrides?: NodeJS.ProcessEnv, platform?: NodeJS.Platform): NodeJS.ProcessEnv;
|
|
1880
|
+
/** Windows 的 .cmd 包装链在 detached 模式下可能丢失嵌套进程 stdout。 */
|
|
1881
|
+
declare function shouldDetachCommand(platform?: NodeJS.Platform): boolean;
|
|
1882
|
+
declare function spawnManagedProcess(spec: ManagedProcessSpec): ManagedProcess;
|
|
1883
|
+
/** 同步探测专用;仍然使用 argv 数组,禁止拼 shell 命令字符串。 */
|
|
1884
|
+
declare function spawnManagedProcessSync(spec: ManagedProcessSyncSpec): SpawnSyncReturns<string>;
|
|
1885
|
+
|
|
1886
|
+
/**
|
|
1887
|
+
* aitable-workflow — 统一命令执行器。
|
|
1888
|
+
*
|
|
1889
|
+
* 业务层只使用本模块的 runCommand/defaultCommandRunner/probeCommand;
|
|
1890
|
+
* 流式长进程使用 managed-process.ts 的 spawnManagedProcess。
|
|
1891
|
+
*/
|
|
1892
|
+
|
|
1841
1893
|
type CommandRunOptions = {
|
|
1842
1894
|
cwd?: string;
|
|
1843
1895
|
input?: string;
|
|
@@ -1846,42 +1898,48 @@ type CommandRunOptions = {
|
|
|
1846
1898
|
signal?: AbortSignal;
|
|
1847
1899
|
/** 是否继承父进程 stdio(实时输出)。为 true 时不捕获 stdout/stderr。 */
|
|
1848
1900
|
inheritStdio?: boolean;
|
|
1901
|
+
/** stdout/stderr 各自的最大捕获字节数;超出后继续排空流但不再存入内存。 */
|
|
1902
|
+
maxOutputBytes?: number;
|
|
1849
1903
|
};
|
|
1850
1904
|
type CommandResult = {
|
|
1851
1905
|
stdout: string;
|
|
1852
1906
|
stderr: string;
|
|
1853
1907
|
exitCode: number | null;
|
|
1908
|
+
signal?: NodeJS.Signals | null;
|
|
1909
|
+
truncated?: boolean;
|
|
1854
1910
|
};
|
|
1855
1911
|
type CommandRunner = (command: string, args: string[], options?: CommandRunOptions) => Promise<CommandResult>;
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1912
|
+
type CommandProbeResult = CommandResult & {
|
|
1913
|
+
ok: boolean;
|
|
1914
|
+
error?: Error;
|
|
1915
|
+
};
|
|
1916
|
+
declare class CommandTimeoutError extends Error {
|
|
1917
|
+
readonly code = "ETIMEDOUT";
|
|
1918
|
+
constructor(command: string, timeoutMs: number);
|
|
1919
|
+
}
|
|
1920
|
+
declare class CommandAbortedError extends Error {
|
|
1921
|
+
readonly code = "ABORT_ERR";
|
|
1922
|
+
constructor(command: string);
|
|
1923
|
+
}
|
|
1863
1924
|
declare function commandsInFlight(): number;
|
|
1864
|
-
/**
|
|
1865
|
-
* 等待所有正在运行的子进程结束(带上限)。
|
|
1866
|
-
*
|
|
1867
|
-
* @returns true 表示已全部干净跑完;false 表示超时仍有残留(调用方可决定是否强制中止)
|
|
1868
|
-
*/
|
|
1869
1925
|
declare function drainCommands(timeoutMs?: number): Promise<boolean>;
|
|
1926
|
+
/** 缓冲执行命令;不经过 shell,超时/取消时终止整棵进程树。 */
|
|
1927
|
+
declare function runCommand(command: string, args: string[], options?: CommandRunOptions): Promise<CommandResult>;
|
|
1870
1928
|
declare const defaultCommandRunner: CommandRunner;
|
|
1929
|
+
/**
|
|
1930
|
+
* 同步、短时的安装/版本探测。只用于 CLI 启动阶段,禁止用于业务执行。
|
|
1931
|
+
* 使用 argv 数组,Windows npm .cmd shim 仍由 cross-spawn 处理。
|
|
1932
|
+
*/
|
|
1933
|
+
declare function probeCommand(command: string, args?: string[], options?: Pick<CommandRunOptions, "cwd" | "env" | "timeoutMs">): CommandProbeResult;
|
|
1871
1934
|
/**
|
|
1872
1935
|
* 格式化命令 stderr 用于抛出/展示。
|
|
1873
1936
|
*
|
|
1874
|
-
* CLI
|
|
1875
|
-
* 而真正的错误(含 errorCode)在末尾。固定截断头部会把关键信息切掉,
|
|
1876
|
-
* 所以这里:若含 "Error:" 则从该处截取(丢弃前置噪音),仍超长则保留末尾。
|
|
1937
|
+
* CLI 常把提示噪音放在前面,而真正的错误在末尾;优先保留错误段和末尾。
|
|
1877
1938
|
*/
|
|
1878
1939
|
declare function formatCommandError(stderr: string, options?: {
|
|
1879
1940
|
max?: number;
|
|
1880
1941
|
}): string;
|
|
1881
|
-
/**
|
|
1882
|
-
* 工具调用错误,携带是否可重试的语义。
|
|
1883
|
-
* 业务冲突/参数非法等永久性错误应标记 retryable=false,避免调度层空转重试。
|
|
1884
|
-
*/
|
|
1942
|
+
/** 工具调用错误,携带是否可重试的语义。 */
|
|
1885
1943
|
declare class ToolkitError extends Error {
|
|
1886
1944
|
readonly retryable: boolean;
|
|
1887
1945
|
readonly code?: string;
|
|
@@ -4237,6 +4295,77 @@ declare function activateGlobalDwsOnPath(options?: GlobalDwsActivationOptions):
|
|
|
4237
4295
|
*/
|
|
4238
4296
|
declare function ensureTsxRegistered(): Promise<void>;
|
|
4239
4297
|
|
|
4298
|
+
/**
|
|
4299
|
+
* module-url — 把本地绝对路径转成动态 import 可用的 file:// URL。
|
|
4300
|
+
*
|
|
4301
|
+
* 背景:Windows 下 `import("C:\\...\\x.recipe.ts")` 会被 ESM loader 当成协议
|
|
4302
|
+
* `c:` 处理并抛 ERR_UNSUPPORTED_ESM_URL_SCHEME("Only URLs with a scheme in:
|
|
4303
|
+
* file, data, and node are supported ... absolute paths must be valid file:// URLs")。
|
|
4304
|
+
* 所有以文件系统路径动态 import 的地方都必须先经过本函数。
|
|
4305
|
+
*/
|
|
4306
|
+
type ModuleUrlOptions = {
|
|
4307
|
+
/** Node >=20.13 支持显式按 Windows/POSIX 语义转换,便于异平台纯测试。 */
|
|
4308
|
+
windows?: boolean;
|
|
4309
|
+
};
|
|
4310
|
+
declare function toModuleUrl(filePath: string, options?: ModuleUrlOptions): string;
|
|
4311
|
+
/** 从 import.meta.url 获取真实文件系统目录;禁止使用 URL.pathname。 */
|
|
4312
|
+
declare function moduleDir(moduleUrl: string, options?: ModuleUrlOptions): string;
|
|
4313
|
+
|
|
4314
|
+
/**
|
|
4315
|
+
* 跨平台路径边界。
|
|
4316
|
+
*
|
|
4317
|
+
* 文件系统路径与业务字符串的职责不同:
|
|
4318
|
+
* - `resolveInsideRoot` 负责把不可信相对路径限制在一个根目录内;
|
|
4319
|
+
* - `assertPortableId` 负责拒绝不能安全作为单个路径段使用的业务 ID;
|
|
4320
|
+
* - `safeFilename` 负责把人类标题确定性地映射为 Windows/macOS/Linux 均可用的文件名;
|
|
4321
|
+
* - `toPortableRelPath` 负责把清单、对象 key 等逻辑相对路径统一成 `/`。
|
|
4322
|
+
*/
|
|
4323
|
+
type PathFlavor = "native" | "posix" | "win32";
|
|
4324
|
+
type ResolveInsideRootOptions = {
|
|
4325
|
+
/** 默认使用当前系统;测试或处理明确的异平台路径时可指定。 */
|
|
4326
|
+
flavor?: PathFlavor;
|
|
4327
|
+
/** 是否允许 `.` 指向根目录本身,默认允许。 */
|
|
4328
|
+
allowRoot?: boolean;
|
|
4329
|
+
};
|
|
4330
|
+
type PortableIdOptions = {
|
|
4331
|
+
label?: string;
|
|
4332
|
+
maxLength?: number;
|
|
4333
|
+
};
|
|
4334
|
+
type SafeFilenameOptions = {
|
|
4335
|
+
fallback?: string;
|
|
4336
|
+
maxLength?: number;
|
|
4337
|
+
};
|
|
4338
|
+
type PathBoundaryReason = "INVALID_ROOT" | "INVALID_RELATIVE_PATH" | "ABSOLUTE_PATH" | "OUTSIDE_ROOT" | "ROOT_NOT_ALLOWED" | "INVALID_PORTABLE_ID";
|
|
4339
|
+
/** 路径越界或路径形态不可移植。 */
|
|
4340
|
+
declare class PathBoundaryError extends Error {
|
|
4341
|
+
readonly reason: PathBoundaryReason;
|
|
4342
|
+
readonly code = "PATH_BOUNDARY_VIOLATION";
|
|
4343
|
+
constructor(message: string, reason: PathBoundaryReason);
|
|
4344
|
+
}
|
|
4345
|
+
/**
|
|
4346
|
+
* 把相对路径解析到 root 内;绝对路径、盘符路径、空值和 `..` 越界都会抛错。
|
|
4347
|
+
* 同时识别 `/` 与 `\\`,避免同一输入在 Linux 安全、到 Windows 却变成越界路径。
|
|
4348
|
+
*
|
|
4349
|
+
* 这是词法边界,不解析符号链接。安全敏感且允许现存 symlink 的调用方仍应在访问前
|
|
4350
|
+
* 对 root/target 做 realpath 校验。
|
|
4351
|
+
*/
|
|
4352
|
+
declare function resolveInsideRoot(root: string, relativePath: string, options?: ResolveInsideRootOptions): string;
|
|
4353
|
+
/**
|
|
4354
|
+
* 校验业务 ID 可安全、原样地作为任意支持系统上的单个文件名段使用。
|
|
4355
|
+
* 身份值不做静默改写,避免磁盘路径与业务主键发生不可见偏差。
|
|
4356
|
+
*/
|
|
4357
|
+
declare function assertPortableId(value: string, options?: PortableIdOptions): string;
|
|
4358
|
+
/**
|
|
4359
|
+
* 把人类标题映射为安全文件名。发生替换、截断或保留名冲突时追加稳定 hash,
|
|
4360
|
+
* 避免不同原文清洗后落到同一个名字。
|
|
4361
|
+
*/
|
|
4362
|
+
declare function safeFilename(input: string, options?: SafeFilenameOptions): string;
|
|
4363
|
+
/**
|
|
4364
|
+
* 把安全相对路径统一为 POSIX `/` 形式,供 manifest、对象 key 和协议字段使用。
|
|
4365
|
+
* 绝对路径及任意 `..` 段都会被拒绝。
|
|
4366
|
+
*/
|
|
4367
|
+
declare function toPortableRelPath(relativePath: string): string;
|
|
4368
|
+
|
|
4240
4369
|
type FingerprintWindowOptions = {
|
|
4241
4370
|
/** globalVar 顶层 key(不同用途必须用不同 key,否则互相污染) */
|
|
4242
4371
|
key: string;
|
|
@@ -6493,6 +6622,7 @@ declare class Tracer {
|
|
|
6493
6622
|
private nextSeq;
|
|
6494
6623
|
private countTraceFiles;
|
|
6495
6624
|
private writeTrace;
|
|
6625
|
+
private itemTraceDir;
|
|
6496
6626
|
}
|
|
6497
6627
|
declare function initTracer(traceDir: string): Tracer;
|
|
6498
6628
|
declare function getTracer(): Tracer | null;
|
|
@@ -6653,4 +6783,4 @@ interface KbIngestCommandOptions {
|
|
|
6653
6783
|
/** `kb ingest <url|path>`:从远程源或本地目录导入文档,转为 .md 存入 wiki 目录 */
|
|
6654
6784
|
declare function runKbIngestCommand(urlOrPath: string, options: KbIngestCommandOptions): Promise<void>;
|
|
6655
6785
|
|
|
6656
|
-
export { AGENT_TO_ENGINE, type AIToolkit, type AgentAdapter, type AgentConfig, type AgentEngine, type AgentEvent, type AgentEventType, type AgentExecutor, type AgentExecutorKind, type AgentIdDTO, type AgentLifecycleEvent, type AgentLifecyclePhase, type AgentMemoryToolkit, type AgentOptions, type AgentSession, type AgentType, type AitableAgentConfigMeta, type AnyToolkitDescriptor, type ApiError, type App, type ApprovalCreateParams, type ApprovalStatus, type ApprovalToolkit, type AtOptions, type AutoDiscoveryOptions, type AutoDiscoveryResult, BASE_AGENT_DEFS, type BaseAgentOptions, type BaseTablesCache, type BlockReasonDTO, type BuildBriefOptions, type CIRunStatus, type CIToolkit, type CardAction, type CardPayload, type CheckItem, type CheckOptions, type CheckStatus, type ClaudeCodeConfig, type ClaudeCodeOptions, type CodeReviewToolkit, type CodexConfig, type CodexOptions, type CodingAgentDetection, type CodingAgentInfo, type CodingAgentRunner, type CodingAgentSelection, type CodingAgentsConfig, type CodingRunOptions, type CodingRunResult, type CodingToolkit, type CollectContextOptions, type CommandResult, type CommandRunOptions, type CommandRunner, 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 ConfigSetupPolicy, type ConfigSurfaceItem, type ConfigSurfaceOwner, type ConfigSurfaceSource, type ConfigSurfaceValueType, type ConfigValueType, type CreateAppOptions, type CreateProjectRequestDTO, type CreateWorkflowRequestDTO, type CreateWorkflowResponseDTO, type CredentialEntry, type CredentialsStore, type CronSchedulerConfig, CronSchedulerSource, type DefinitionLoadFailure, type DefinitionLoadResult, type DeleteProjectResponseDTO, type DesignArtifactManifestDTO, type DesignArtifactValidationDTO, type DesignContext, type DesignDiscoverySnapshotDTO, type DesignEventDTO, type DesignOptions, type DesignResult, type DetectedAgentInfo, type DetectedCodingAgent, type DetectedCodingEngine, type DetectionResult, 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 DiscoveryCapabilities, type DiscoveryResult, DwsClient, type DwsClientOptions, DwsError, type DwsMaintenanceOptions, type DwsMaintenanceResult, type DwsRunner, ENGINE_TO_AGENT, type EdgeDefinition, type EnsureTableOptions, 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 FieldPlan, type FieldType, type FieldTypeEnum, type FieldsConfig, type FileRefHint, type FileToolkit, type FilesPatchDTO, type FilesReplaceDTO, type FilesResponseDTO, type FilledForm, type FingerprintWindow, type FingerprintWindowOptions, type FormAnswerValue, type FormAnswers, type FormOption, type FormQuestion, type GenericAgentConfig, type GitToolkit, type GlobalDwsActivationOptions, type GlobalDwsActivationResult, type GlobalVarStore, type HandlerInitContext, type HandlerInstance, InMemoryGlobalVarStore, InMemoryObjectStore, type Inference, type IngestOptions, type IngestReport, type IngestResult, type InitAnswers, type InitConfigDTO, type InitOptions, type InitResponseDTO, type Invocation, KNOWN_AGENT_IDS, type KbCommandOptions, type KbIngestCommandOptions, type KbProgressInfo, type KbRunSummary, type KnownAgentType, type LLMCallOptions, type LLMCallTrace, type LoadSettingsOptions, type LoadWorkflowOptions, LocalSpawnExecutor, 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 MrComment, type MrCreateParams, type MultiWorkflowConfig, type NeedsHuman, type NotificationConfig, type ObjectStore, type ObjectStoreConfig, type OutboundChannel, type PendingAction, type PreflightIssue, type PreflightLevel, type PreflightModule, type PreflightOutcome, type PresignedUpload, type ProgressReporter, type ProjectDTO, type ProjectExportDTO, type ProjectFileDTO, type ProjectStateDTO, type ProjectTaskDTO, type ProjectWorkflowDTO, type ProjectsResponseDTO, type QoderConfig, type QoderOptions, type QuestionForm, type QuestionType, RELAY_OVERLOAD_CODE, RELAY_REJECTED_CODE, type RecipeCheckIssue, type RecipeCheckLevel, type RecipeCheckResult, type RecipeConfig, type RecipeContext, type RecipeDefinition, type RecipeInspectRow, type RecipeMeta, type RecipeResult, type RecipeResultStatus, type RecoverResult, type RecoveryActionDTO, type ReferencedFields, type RelayAgent, RelayAgentSession, type RelayAgentSessionConfig, type RelayArtifactFile, type RelayArtifactManifest, type RelayErrorMessage, type RelayEventMessage, RelayExecutor, type RelayExecutorConfig, type RelayInboundMessage, type RelayMessage, type RelayMessageType, type RelayOutboundMessage, type RelayPingMessage, type RelayPongMessage, type RelayReadyAckMessage, type RelayReadyMessage, type RelayResultMessage, type RelayRunAgentMessage, type RelayRunDwsMessage, type RelayTransport, type RelayUploadGrantMessage, type RelayUploadRequestMessage, type ReplyResult, type ReplyToConversationOptions, type ResetWorkflowResponseDTO, type ResolvedDingTalkStreamMessageEventContext, type ResolvedDingTalkWebhookMentionEventContext, type RoleConfigDTO, type RolesConfig, type RunCodingAgentOptions, type RunDesignOptions, type RunDiscoveryOptions, type RunEventDTO, type RunEventSink, type RunExecutionEventDTO, type RunRecordSnapshot, type RunRecordSnapshotDTO, type RunRecordStatusDTO, type RunResult, type RunSnapshotDTO, type ScaffoldOptions, type ScaffoldResult, type SessionReplyEntry, type SessionReplyOptions, type Settings, type SetupEventDTO, type SetupOptions, type SetupSchemaField, type SetupSchemaSummaryDTO, ShellNotAllowedError, type ShellRunOptions, type ShellRunResult, type ShellToolkit, type SingleWorkflowConfig, type SkippedWorkflow, type StageIdDTO, type StageRuntimeDTO, type StatesConfig, type StepDefinition, type StepSLA, type StepTrace, type SyncOptions, type SyncResult, type TableRef, type TableToolkit, type TaskEventDTO, type TaskStatusDTO, type TemplateScaffoldResult, type TodoCreateParams, type TodoToolkit, type Toolkit, type ToolkitContext, type ToolkitDescriptor, ToolkitError, type ToolkitMethodMeta, type ToolkitPermission, Tracer, type TrackerConfig, type ValidationResult, type ViewDef, type ViewSyncResult, type ViewType, type ViewsConfig, type WebhookSendOptions, type WizardOptions, type WizardResult, type WorkflowCheckResult, type WorkflowCodingEngine, type WorkflowDTO, type WorkflowEntry, type WorkflowFilesResponseDTO, type WorkflowInstance, type WorkflowMeta, type WorkflowResponseDTO, type WorkflowStepDTO, type WorkflowTemplate, type WorkflowsResponseDTO, type WorktreeResult, type WriteRolesResult, type WriteTarget, activateGlobalDwsOnPath, agentEngineSchema, agentToEngine, assertTableBelongsToBase, buildAgentChoices, buildArtifactKey, buildDesignBrief, buildDiscoveryForm, buildEnvSource, buildEnvSourceSync, buildFixPrompt, buildMetaPrompt, checkEnv, checkMigrateHint, checkWorkflowRecipes, checkWorkflows, chooseDetectedEngine, codingAgentsConfigSchema, coerceJsonValue, coerceYamlValue, collectConfigHints, collectDesignContext, collectEnvRefDetails, collectEnvRefs, commandsInFlight, composeToolkitRegistry, configSchema, createApp, createDingTalkAtUserIdResolver, createExecShellToolkit, createFingerprintWindow, createLocalSpawnExecutor, createPerWorkflowSettings, createRelayExecutor, createWorkflowTable, credentialsFilePath, defaultCommandRunner, defaultToolkitRegistry, deriveEnvJsonMapSpec, describeConfigPath, designBlockedStateFixture, designEventsFixture, designFailedStateFixture, detectAgents, detectCodingEngines, detectInstalledAgents, detectInstalledCodingAgents, detectSourceType, drainCommands, dwsPayload, emptyStore, engineToAgent, ensureLatestDws, ensureTableExists, ensureTsxRegistered, fieldDefinitionSchema, fieldTypeSchema, fileRefConfigSchema, findArrayPayload, findConflictingCredential, findCursor, formatAnswerDisplay, formatCommandError, generateCodingAgentsConfig, generateMainConfig, getActiveCredential, getAgentConfig, getAgentDef, getAitableAgentConfigMeta, getConfigHint, getConfigValueAtPath, getCurrentDwsRunner, getCurrentExecutor, getFileRefHint, getGlobalDwsBinPath, getTracer, getZodObjectShape, globalVarRefPath, hasOssCredentials, heuristicInference, inferSkeleton, ingest, initTable, initTracer, initialTableFields, interpolateEnv, isAllowedArtifactPath, isEngineDetected, isGlobalVarRef, isOwnedAutoCreateHint, isRecord, isRelayMessage, isSafeRelativePath, listCodingAgents, listCredentials, listProfiles, listTemplates, loadAgentConfig, loadEventHandlerDefinition, loadEventHandlerDefinitionResult, loadRecipeDefinition, loadRecipeDefinitionResult, loadSettings, loadWorkflowTemplate, logPreflightSummary, logger, maskSecret, normalizeArtifactRelPath, normalizeByType, padStaffId, parseEnvExampleValues, parseEnvValue, preflightModuleResult, prependGlobalDwsToPath, printFieldPlan, printKbProgress, printKbSummary, printViewSyncResult, projectFilesFixture, projectStateResponseFixture, readCredentials, requireAgentDef, resolveAllCollections, resolveCodingAgentSelection, resolveCompileAgent, resolveConfigPath, resolveDingTalkAtUserId, resolveDingTalkStreamMessageEventContext, resolveDingTalkWebhookMentionEventContext, resolveGlobalVarRef, runAutoDiscovery, runCheck, runCodingAgent, runCodingAgentViaSpawn, runDesign, runDesignCommand, runDiscovery, runEventsFixture, runInit, runInstancePreflight, runKbCompileCommand, runKbIngestCommand, runKbStatusCommand, runKbUpdateCommand, runMigrate, runSetupCommand, runSync, runWithDwsRunner, runWithExecutor, saveCredential, scaffold, scaffoldFromTemplate, serializeForm, serializeForms, sessionWebhookRegistry, setActiveAgent, setGlobalDwsRunner, setInJson, setupEventsFixture, setupKnowledgeBases, setupSurfaceTables, shellToken, shouldDetachCommand, snapshotRunRecord, stringOrNull, summarizeForms, syncFieldsFromWorkflow, syncViewsFromDesign, tableRefConfigSchema, trackerSchema, validateDesignOutput, validateStateConsistency, viewDefSchema, viewTypeSchema, workflowPreviewFixture, workspaceAgentConfigPath, writeBack, writeCredentials, writeEnvFile, writeJsonFile, writeRoleDefinitions, writeTableIdToConfig, writeYaml, zodToFormatExample };
|
|
6786
|
+
export { AGENT_TO_ENGINE, type AIToolkit, type AgentAdapter, type AgentConfig, type AgentEngine, type AgentEvent, type AgentEventType, type AgentExecutor, type AgentExecutorKind, type AgentIdDTO, type AgentLifecycleEvent, type AgentLifecyclePhase, type AgentMemoryToolkit, type AgentOptions, type AgentSession, type AgentType, type AitableAgentConfigMeta, type AnyToolkitDescriptor, type ApiError, type App, type ApprovalCreateParams, type ApprovalStatus, type ApprovalToolkit, type AtOptions, type AutoDiscoveryOptions, type AutoDiscoveryResult, BASE_AGENT_DEFS, type BaseAgentOptions, type BaseTablesCache, type BlockReasonDTO, type BuildBriefOptions, type CIRunStatus, type CIToolkit, type CardAction, type CardPayload, type CheckItem, type CheckOptions, type CheckStatus, type ClaudeCodeConfig, type ClaudeCodeOptions, 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 ConfigSetupPolicy, type ConfigSurfaceItem, type ConfigSurfaceOwner, type ConfigSurfaceSource, type ConfigSurfaceValueType, type ConfigValueType, type CreateAppOptions, type CreateProjectRequestDTO, type CreateWorkflowRequestDTO, type CreateWorkflowResponseDTO, type CredentialEntry, type CredentialsStore, type CronSchedulerConfig, CronSchedulerSource, type DefinitionLoadFailure, type DefinitionLoadResult, type DeleteProjectResponseDTO, type DesignArtifactManifestDTO, type DesignArtifactValidationDTO, type DesignContext, type DesignDiscoverySnapshotDTO, type DesignEventDTO, type DesignOptions, type DesignResult, type DetectedAgentInfo, type DetectedCodingAgent, type DetectedCodingEngine, type DetectionResult, 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 DiscoveryCapabilities, type DiscoveryResult, DwsClient, type DwsClientOptions, DwsError, type DwsMaintenanceOptions, type DwsMaintenanceResult, type DwsRunner, ENGINE_TO_AGENT, type EdgeDefinition, type EnsureTableOptions, 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 FieldPlan, type FieldType, type FieldTypeEnum, type FieldsConfig, type FileRefHint, type FileToolkit, type FilesPatchDTO, type FilesReplaceDTO, type FilesResponseDTO, type FilledForm, type FingerprintWindow, type FingerprintWindowOptions, type FormAnswerValue, type FormAnswers, type FormOption, type FormQuestion, type GenericAgentConfig, type GitToolkit, type GlobalDwsActivationOptions, type GlobalDwsActivationResult, type GlobalVarStore, type HandlerInitContext, type HandlerInstance, InMemoryGlobalVarStore, InMemoryObjectStore, type Inference, type IngestOptions, type IngestReport, type IngestResult, type InitAnswers, type InitConfigDTO, type InitOptions, type InitResponseDTO, type Invocation, KNOWN_AGENT_IDS, type KbCommandOptions, type KbIngestCommandOptions, type KbProgressInfo, type KbRunSummary, type KnownAgentType, type LLMCallOptions, type LLMCallTrace, type LoadSettingsOptions, type LoadWorkflowOptions, LocalSpawnExecutor, 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 MrCreateParams, type MultiWorkflowConfig, type NeedsHuman, type NotificationConfig, type ObjectStore, type ObjectStoreConfig, type OutboundChannel, PathBoundaryError, type PathBoundaryReason, type PathFlavor, type PendingAction, type PortableIdOptions, type PreflightIssue, type PreflightLevel, type PreflightModule, type PreflightOutcome, type PresignedUpload, type ProgressReporter, type ProjectDTO, type ProjectExportDTO, type ProjectFileDTO, type ProjectStateDTO, type ProjectTaskDTO, type ProjectWorkflowDTO, type ProjectsResponseDTO, type QoderConfig, type QoderOptions, type QuestionForm, type QuestionType, RELAY_OVERLOAD_CODE, RELAY_REJECTED_CODE, type RecipeCheckIssue, type RecipeCheckLevel, type RecipeCheckResult, type RecipeConfig, type RecipeContext, type RecipeDefinition, type RecipeInspectRow, type RecipeMeta, type RecipeResult, type RecipeResultStatus, type RecoverResult, type RecoveryActionDTO, type ReferencedFields, type RelayAgent, RelayAgentSession, type RelayAgentSessionConfig, type RelayArtifactFile, type RelayArtifactManifest, type RelayErrorMessage, type RelayEventMessage, RelayExecutor, type RelayExecutorConfig, type RelayInboundMessage, type RelayMessage, type RelayMessageType, type RelayOutboundMessage, type RelayPingMessage, type RelayPongMessage, type RelayReadyAckMessage, type RelayReadyMessage, type RelayResultMessage, type RelayRunAgentMessage, type RelayRunDwsMessage, type RelayTransport, type RelayUploadGrantMessage, type RelayUploadRequestMessage, type ReplyResult, type ReplyToConversationOptions, type ResetWorkflowResponseDTO, type ResolveInsideRootOptions, type ResolvedDingTalkStreamMessageEventContext, type ResolvedDingTalkWebhookMentionEventContext, type RoleConfigDTO, type RolesConfig, type RunCodingAgentOptions, type RunDesignOptions, type RunDiscoveryOptions, type RunEventDTO, type RunEventSink, type RunExecutionEventDTO, type RunRecordSnapshot, type RunRecordSnapshotDTO, type RunRecordStatusDTO, type RunResult, type RunSnapshotDTO, type SafeFilenameOptions, type ScaffoldOptions, type ScaffoldResult, type SessionReplyEntry, type SessionReplyOptions, type Settings, type SetupEventDTO, type SetupOptions, type SetupSchemaField, type SetupSchemaSummaryDTO, ShellNotAllowedError, type ShellRunOptions, type ShellRunResult, type ShellToolkit, type SingleWorkflowConfig, type SkippedWorkflow, type StageIdDTO, type StageRuntimeDTO, type StatesConfig, type StepDefinition, type StepSLA, type StepTrace, type SyncOptions, type SyncResult, type TableRef, type TableToolkit, type TaskEventDTO, type TaskStatusDTO, type TemplateScaffoldResult, type TerminateProcessOptions, type TodoCreateParams, type TodoToolkit, type Toolkit, type ToolkitContext, type ToolkitDescriptor, ToolkitError, type ToolkitMethodMeta, type ToolkitPermission, Tracer, type TrackerConfig, type ValidationResult, type ViewDef, type ViewSyncResult, type ViewType, type ViewsConfig, type WebhookSendOptions, type WizardOptions, type WizardResult, type WorkflowCheckResult, type WorkflowCodingEngine, type WorkflowDTO, type WorkflowEntry, type WorkflowFilesResponseDTO, type WorkflowInstance, type WorkflowMeta, type WorkflowResponseDTO, type WorkflowStepDTO, type WorkflowTemplate, type WorkflowsResponseDTO, type WorktreeResult, type WriteRolesResult, type WriteTarget, activateGlobalDwsOnPath, agentEngineSchema, agentToEngine, assertPortableId, assertTableBelongsToBase, buildAgentChoices, buildArtifactKey, buildDesignBrief, buildDiscoveryForm, buildEnvSource, buildEnvSourceSync, buildFixPrompt, buildMetaPrompt, checkEnv, checkMigrateHint, checkWorkflowRecipes, checkWorkflows, chooseDetectedEngine, codingAgentsConfigSchema, coerceJsonValue, coerceYamlValue, collectConfigHints, collectDesignContext, collectEnvRefDetails, collectEnvRefs, commandsInFlight, composeToolkitRegistry, configSchema, createApp, createDingTalkAtUserIdResolver, createExecShellToolkit, createFingerprintWindow, createLocalSpawnExecutor, createPerWorkflowSettings, createRelayExecutor, createWorkflowTable, credentialsFilePath, defaultCommandRunner, defaultToolkitRegistry, deriveEnvJsonMapSpec, describeConfigPath, designBlockedStateFixture, designEventsFixture, designFailedStateFixture, detectAgents, detectCodingEngines, detectInstalledAgents, detectInstalledCodingAgents, detectSourceType, drainCommands, dwsPayload, emptyStore, engineToAgent, ensureLatestDws, ensureTableExists, ensureTsxRegistered, fieldDefinitionSchema, fieldTypeSchema, fileRefConfigSchema, findArrayPayload, findConflictingCredential, findCursor, formatAnswerDisplay, formatCommandError, generateCodingAgentsConfig, generateMainConfig, getActiveCredential, getAgentConfig, getAgentDef, getAitableAgentConfigMeta, getConfigHint, getConfigValueAtPath, getCurrentDwsRunner, getCurrentExecutor, getFileRefHint, getGlobalDwsBinPath, getTracer, getZodObjectShape, globalVarRefPath, hasOssCredentials, heuristicInference, inferSkeleton, ingest, initTable, initTracer, initialTableFields, interpolateEnv, isAllowedArtifactPath, isEngineDetected, isGlobalVarRef, isOwnedAutoCreateHint, isRecord, isRelayMessage, isSafeRelativePath, listCodingAgents, listCredentials, listProfiles, listTemplates, loadAgentConfig, loadEventHandlerDefinition, loadEventHandlerDefinitionResult, loadRecipeDefinition, loadRecipeDefinitionResult, loadSettings, loadWorkflowTemplate, logPreflightSummary, logger, maskSecret, mergeCommandEnv, moduleDir, normalizeArtifactRelPath, normalizeByType, padStaffId, parseEnvExampleValues, parseEnvValue, preflightModuleResult, prependGlobalDwsToPath, printFieldPlan, printKbProgress, printKbSummary, printViewSyncResult, probeCommand, projectFilesFixture, projectStateResponseFixture, readCredentials, requireAgentDef, resolveAllCollections, resolveCodingAgentSelection, resolveCompileAgent, resolveConfigPath, resolveDingTalkAtUserId, resolveDingTalkStreamMessageEventContext, resolveDingTalkWebhookMentionEventContext, resolveGlobalVarRef, resolveInsideRoot, runAutoDiscovery, runCheck, runCodingAgent, runCodingAgentViaSpawn, runCommand, runDesign, runDesignCommand, runDiscovery, runEventsFixture, runInit, runInstancePreflight, runKbCompileCommand, runKbIngestCommand, runKbStatusCommand, runKbUpdateCommand, runMigrate, runSetupCommand, runSync, runWithDwsRunner, runWithExecutor, safeFilename, saveCredential, scaffold, scaffoldFromTemplate, serializeForm, serializeForms, sessionWebhookRegistry, setActiveAgent, setGlobalDwsRunner, setInJson, setupEventsFixture, setupKnowledgeBases, setupSurfaceTables, shellToken, shouldDetachCommand, snapshotRunRecord, spawnManagedProcess, spawnManagedProcessSync, stringOrNull, summarizeForms, syncFieldsFromWorkflow, syncViewsFromDesign, tableRefConfigSchema, toModuleUrl, toPortableRelPath, trackerSchema, validateDesignOutput, validateStateConsistency, viewDefSchema, viewTypeSchema, workflowPreviewFixture, workspaceAgentConfigPath, writeBack, writeCredentials, writeEnvFile, writeJsonFile, writeRoleDefinitions, writeTableIdToConfig, writeYaml, zodToFormatExample };
|