aitable-workflow-core 0.1.18 → 0.1.19

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 CHANGED
@@ -639,6 +639,16 @@ type RecipeContext = {
639
639
  setGlobalVar: (key: string, value: unknown) => void;
640
640
  /** 读取进程内共享变量;path 支持点路径(如 "a.b")。未命中返回 undefined。 */
641
641
  getGlobalVar: <T = unknown>(path: string) => T | undefined;
642
+ /**
643
+ * 上报一条 SLS 遥测事件(WebTracking 直发)。fire-and-forget:立即返回、
644
+ * 绝不抛错、绝不阻断 recipe;AITABLE_WORKFLOW_SLS_REPORT=off 后为 no-op。
645
+ *
646
+ * 事件自动携带引擎入口注入的 project/version/身份等公共字段(口径见 shared/sls-report.ts)。
647
+ * 不要在 recipe 里直接 import reportCliEvent——客户现场项目自装的 core 与引擎的 core
648
+ * 可能是两个模块实例,引擎侧初始化的 project/version 模块状态对 recipe 侧不可见,
649
+ * 经 ctx 注入则恒为引擎实例。
650
+ */
651
+ report: (event: string, data?: Record<string, unknown>) => void;
642
652
  /**
643
653
  * 角色上下文(persona/skills/guardrails/memory/输出规范)。
644
654
  * 由 recipe.meta.role 解析而来;无角色引用或未接入 resolver 时为 undefined。
@@ -1499,6 +1509,16 @@ declare const viewTypeSchema: z.ZodEnum<{
1499
1509
  Gantt: "Gantt";
1500
1510
  }>;
1501
1511
  type ViewType = z.infer<typeof viewTypeSchema>;
1512
+ /**
1513
+ * 视图过滤条件(声明式,setup 时经 `dws aitable view update filter` 整组下发)。
1514
+ * 目前仅 Grid 视图生效;条件之间为 AND。
1515
+ */
1516
+ declare const viewFilterConditionSchema: z.ZodObject<{
1517
+ field: z.ZodString;
1518
+ any_of: z.ZodOptional<z.ZodArray<z.ZodString>>;
1519
+ equals: z.ZodOptional<z.ZodString>;
1520
+ }, z.core.$strip>;
1521
+ type ViewFilterCondition = z.infer<typeof viewFilterConditionSchema>;
1502
1522
  declare const viewDefSchema: z.ZodObject<{
1503
1523
  id: z.ZodString;
1504
1524
  type: z.ZodEnum<{
@@ -1515,6 +1535,11 @@ declare const viewDefSchema: z.ZodObject<{
1515
1535
  group_by: z.ZodOptional<z.ZodString>;
1516
1536
  date_field: z.ZodOptional<z.ZodString>;
1517
1537
  description: z.ZodOptional<z.ZodString>;
1538
+ filter: z.ZodOptional<z.ZodArray<z.ZodObject<{
1539
+ field: z.ZodString;
1540
+ any_of: z.ZodOptional<z.ZodArray<z.ZodString>>;
1541
+ equals: z.ZodOptional<z.ZodString>;
1542
+ }, z.core.$strip>>>;
1518
1543
  for_each_step: z.ZodOptional<z.ZodEnum<{
1519
1544
  needs_human: "needs_human";
1520
1545
  all: "all";
@@ -1537,6 +1562,11 @@ declare const viewsSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
1537
1562
  group_by: z.ZodOptional<z.ZodString>;
1538
1563
  date_field: z.ZodOptional<z.ZodString>;
1539
1564
  description: z.ZodOptional<z.ZodString>;
1565
+ filter: z.ZodOptional<z.ZodArray<z.ZodObject<{
1566
+ field: z.ZodString;
1567
+ any_of: z.ZodOptional<z.ZodArray<z.ZodString>>;
1568
+ equals: z.ZodOptional<z.ZodString>;
1569
+ }, z.core.$strip>>>;
1540
1570
  for_each_step: z.ZodOptional<z.ZodEnum<{
1541
1571
  needs_human: "needs_human";
1542
1572
  all: "all";
@@ -1673,6 +1703,11 @@ declare const trackerSchema: z.ZodObject<{
1673
1703
  group_by: z.ZodOptional<z.ZodString>;
1674
1704
  date_field: z.ZodOptional<z.ZodString>;
1675
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>>>;
1676
1711
  for_each_step: z.ZodOptional<z.ZodEnum<{
1677
1712
  needs_human: "needs_human";
1678
1713
  all: "all";
@@ -1740,6 +1775,7 @@ declare const rolesSchema: z.ZodObject<{
1740
1775
  }, z.core.$strip>;
1741
1776
  declare const configSchema: z.ZodObject<{
1742
1777
  scene: z.ZodOptional<z.ZodString>;
1778
+ base_name: z.ZodOptional<z.ZodString>;
1743
1779
  tracker: z.ZodOptional<z.ZodObject<{
1744
1780
  base_id: z.ZodString;
1745
1781
  table_id: z.ZodDefault<z.ZodString>;
@@ -1805,6 +1841,11 @@ declare const configSchema: z.ZodObject<{
1805
1841
  group_by: z.ZodOptional<z.ZodString>;
1806
1842
  date_field: z.ZodOptional<z.ZodString>;
1807
1843
  description: z.ZodOptional<z.ZodString>;
1844
+ filter: z.ZodOptional<z.ZodArray<z.ZodObject<{
1845
+ field: z.ZodString;
1846
+ any_of: z.ZodOptional<z.ZodArray<z.ZodString>>;
1847
+ equals: z.ZodOptional<z.ZodString>;
1848
+ }, z.core.$strip>>>;
1808
1849
  for_each_step: z.ZodOptional<z.ZodEnum<{
1809
1850
  needs_human: "needs_human";
1810
1851
  all: "all";
@@ -4090,6 +4131,65 @@ type FingerprintWindow = {
4090
4131
  };
4091
4132
  declare function createFingerprintWindow(options: FingerprintWindowOptions): FingerprintWindow;
4092
4133
 
4134
+ /** 从 `dws auth status` 解析出的用户身份。全部可选——未登录时整体降级为 {}。 */
4135
+ interface CliIdentity {
4136
+ userId?: string;
4137
+ corpId?: string;
4138
+ userName?: string;
4139
+ corpName?: string;
4140
+ }
4141
+ /** 一次 dws 探测拿到的运行环境:用户身份 + dws 版本(各自独立降级)。 */
4142
+ interface CliEnvironment {
4143
+ identity: CliIdentity;
4144
+ dwsVersion?: string;
4145
+ }
4146
+ /** 测试注入点。生产调用一律不传,走进程真实依赖。 */
4147
+ interface SlsReportDeps {
4148
+ fetchFn?: typeof fetch;
4149
+ runner?: CommandRunner;
4150
+ prober?: (bin: string) => CommandProbeResult;
4151
+ dwsBin?: string;
4152
+ env?: NodeJS.ProcessEnv;
4153
+ now?: () => Date;
4154
+ }
4155
+ /** CLI 入口注入版本号(cli.ts 模块级调一次);未初始化时上报 version=unknown。 */
4156
+ declare function initSlsReport(opts: {
4157
+ version: string;
4158
+ }): void;
4159
+ /**
4160
+ * 命令 action 入口设置一次项目上下文(传 config 路径,目录名口径封装在内部),
4161
+ * 之后本进程所有事件自动携带 project;未设置时事件不带该 key。
4162
+ */
4163
+ declare function setReportProject(configPath: string): void;
4164
+ /** `AITABLE_WORKFLOW_SLS_REPORT=off/0/false` 关闭上报(此时连 dws 身份探测都不会发起)。 */
4165
+ declare function isSlsReportDisabled(env?: NodeJS.ProcessEnv): boolean;
4166
+ /**
4167
+ * 纯函数:从 `dws auth status` 输出解析用户身份。
4168
+ *
4169
+ * 不看退出码(dws 退出码不可信,AGENTS §10)——只看 stdout/stderr 里能否解析出字段。
4170
+ * stdout 可能带日志前缀噪音:先整段 parse,再逐行倒序试(与 console-api 的
4171
+ * checkDwsAuthStatus 同款健壮性)。
4172
+ */
4173
+ declare function parseDwsAuthIdentity(text: string): CliIdentity;
4174
+ /**
4175
+ * 纯函数:从 `dws --version` 输出提取语义版本。
4176
+ * 实测输出形如 `dws version v1.0.59 (c0838e7e, 2026-08-20T08:38:28Z)`,
4177
+ * 取第一个 semver 片段并去掉 v 前缀(与 CLI version 字段口径一致)。
4178
+ */
4179
+ declare function parseDwsVersionOutput(text: string): string | undefined;
4180
+ /**
4181
+ * 项目名称的统一口径:config 文件所在目录的 basename(即客户项目目录名)。
4182
+ * 配置 schema 里没有项目名字段,目录名是交付现场唯一稳定的区分标识。
4183
+ */
4184
+ declare function resolveReportProject(configPath: string): string;
4185
+ /**
4186
+ * 上报一条 CLI 事件。永不抛异常。
4187
+ *
4188
+ * 正常路径(命令结束、退出前)应 `await`——否则紧随其后的 process.exit 会杀掉
4189
+ * 在途的 fetch;启动类路径可 `void` fire-and-forget。
4190
+ */
4191
+ declare function reportCliEvent(event: string, data?: Record<string, unknown>, deps?: SlsReportDeps): Promise<void>;
4192
+
4093
4193
  /**
4094
4194
  * aitable-workflow — 配置变量插值
4095
4195
  *
@@ -9061,4 +9161,4 @@ declare function buildCandidateId(input: CandidateIdentityInput): string;
9061
9161
  declare function buildCandidateRevision(input: CandidateRevisionInput): string;
9062
9162
  declare function buildReviewKey(candidateId: string, revision: string): string;
9063
9163
 
9064
- 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 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 CreateAppOptions, type CredentialEntry, type CredentialsStore, type CronSchedulerConfig, CronSchedulerSource, DEFAULT_TAXONOMY, DEFAULT_VISION_BASE_MS, DEFAULT_VISION_PER_PAGE_MS, DISTILL_PRESETS, 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 GenericAgentConfig, type GitToolkit, type GlobalDwsActivationOptions, type GlobalDwsActivationResult, type GlobalVarAccessor, type GlobalVarStore, type HandlerInitContext, type HandlerInstance, InMemoryGlobalVarStore, InMemoryObjectStore, 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 MrCreateParams, 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 ProvisionOptions, type ProvisionPhase, type ProvisionResult, type ProvisionState, 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, type SafeFilenameOptions, type ScaffoldOptions, type SearchDwsChatGroupsOptions, type SearchDwsChatGroupsResult, type SessionReplyEntry, type SessionReplyOptions, type Settings, type SetupAutomationsOptions, type SetupOptions, type SetupSchemaField, ShellNotAllowedError, type ShellRunOptions, type ShellRunResult, type ShellToolkit, type SingleWorkflowConfig, type SkippedWorkflow, 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 TodoCreateParams, 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 ViewSyncResult, 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 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, 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, dwsErrorEnvelopeSchema, dwsPayload, emptyContentIndex, emptyStore, emptyStreakKey, encodeWorkspaceBundle, engineToAgent, enqueueForDigest, enrichLogContext, ensureBaseExists, ensureLatestDws, ensureTableExists, ensureTsxRegistered, evaluateStrictGate, 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, hasArtifactError, hasHumanStep, hasOssCredentials, hashNormalizedContent, incrementDigestAttempts, indexPath, ingest, initTable, initTracer, initialTableFields, injectProfileConfig, interpolateEnv, isAllowedArtifactPath, isDigestQueueEmpty, isDistillPreset, isEngineDetected, isGlobalVarRef, isOwnedAutoCreateHint, isPublishedStatus, isRecord, isSafeRelativePath, lintArtifacts, listCodingAgents, listCredentials, listDwsConversations, listProfiles, listTemplates, loadAgentConfig, loadEventHandlerDefinition, loadEventHandlerDefinitionResult, loadProfileConfig, loadProvisionState, loadRecipeDefinition, loadRecipeDefinitionResult, loadSettings, loadTaxonomy, loadWorkflowTemplate, logDateDir, logPreflightSummary, logger, lowerConfidence, mapWithConcurrency, markDigestFailure, maskSecret, mergeCommandEnv, mergeEnterpriseRobotCredentials, mergeEnvRobotCredentials, migrateBaseIdInFiles, moduleDir, nextStepForPhase, normalizeArtifactRelPath, normalizeByType, normalizeCategory, normalizeEol, normalizeTimezone, padStaffId, parseEnterpriseRobots, parseEnvExampleValues, parseEnvValue, parseFrontmatter, parseProvisionState, parseQuestionForm, parseVisionMeta, preflightModuleResult, prependGlobalDwsToPath, printFieldPlan, printKbProgress, printKbSummary, printViewSyncResult, probeCommand, probeProjectShape, provisionGuidance, provisionStateFileSchema, readContentIndex, readCredentials, readSection, readState, readTitle, readYamlValueAt, recoverThreadStoreOnce, redactPayloadForLog, refreshKnowledgeBases, remainingDesignTimeoutMs, removeFromDigestQueue, renderDistillPrompt, renderForm, renderForms, renderKbPromptBlock, renderSimpleDistillPrompt, renderThread, renderVisionNormalizePrompt, repairJsonStringValues, reportPath, requireAgentDef, resetProfileCache, resolveAllCollections, resolveCodingAgentSelection, resolveCompileAgent, resolveConfigPath, resolveContactsByUserIds, resolveDingTalkAtUserId, resolveDingTalkStreamMessageEventContext, resolveDingTalkWebhookMentionEventContext, resolveGlobalVarRef, resolveInsideRoot, resolveKbContext, resolveReviewState, resolveReviewStateDetailed, resolveTriggerTarget, robotLifecycleSchema, robotResultSchema, robotSubmitSchema, runCheck, runClarifyRound, runCodingAgent, runCodingAgentViaSpawn, runCommand, runDesign, runDesignCommand, runInit, runInstancePreflight, runKbCleanupCommand, runKbCompileCommand, runKbIngestCommand, runKbStatusCommand, runKbUpdateCommand, runMigrate, runSetupCommand, runSync, runWithDwsRunner, runWithExecutor, runWithLogContext, safeFilename, safeParseJson, sanitizeProvisionText, saveCredential, saveProvisionState, scaffold, scaffoldFromTemplate, scanWorkflowDirs, searchDwsChatGroups, sessionWebhookRegistry, setActiveAgent, setGlobalDwsRunner, setInJson, setupAutomations, setupKnowledgeBases, setupSurfaceTables, shellToken, shouldDetachCommand, shouldRunVisionRound, snapshotRunRecord, spawnManagedProcess, spawnManagedProcessSync, splitFrontmatter, stringOrNull, stripPdfSeparators, syncFieldsFromWorkflow, syncViewsFromDesign, tableRefConfigSchema, index as tableSource, taxonomyCategoryIds, taxonomyFingerprint, threadLogFileName, threadNeedsReview, tidySection, toModuleUrl, toPortableRelPath, toStringList, trackerSchema, tryReuseStagingArticles, tzOffsetMs, upsertContentIndexEntry, validateDesignArtifacts, validateDesignOutput, validateProvisionName, validateStateConsistency, versionCreateSchema, versionListItemSchema, versionStatusSchema, viewDefSchema, viewTypeSchema, visionTimeoutMs, wikiDir, workspaceAgentConfigPath, writeBack, writeContentIndex, writeCredentials, writeEnvFile, writeJsonFile, writeProfileRoles, writeRoleDefinitions, writeTableIdToConfig, writeYaml, yamlFlowList, yamlScalar, yesterdayRange, zodToFormatExample, zonedDateParts, zonedWallClockToUtc };
9164
+ 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 CreateAppOptions, type CredentialEntry, type CredentialsStore, type CronSchedulerConfig, CronSchedulerSource, DEFAULT_TAXONOMY, DEFAULT_VISION_BASE_MS, DEFAULT_VISION_PER_PAGE_MS, DISTILL_PRESETS, 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 GenericAgentConfig, type GitToolkit, type GlobalDwsActivationOptions, type GlobalDwsActivationResult, type GlobalVarAccessor, type GlobalVarStore, type HandlerInitContext, type HandlerInstance, InMemoryGlobalVarStore, InMemoryObjectStore, 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 MrCreateParams, 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 ProvisionOptions, type ProvisionPhase, type ProvisionResult, type ProvisionState, 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, type SafeFilenameOptions, type ScaffoldOptions, type SearchDwsChatGroupsOptions, type SearchDwsChatGroupsResult, type SessionReplyEntry, type SessionReplyOptions, type Settings, type SetupAutomationsOptions, type SetupOptions, type SetupSchemaField, 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 TodoCreateParams, 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 ViewSyncResult, 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 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, 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, dwsErrorEnvelopeSchema, dwsPayload, emptyContentIndex, emptyStore, emptyStreakKey, encodeWorkspaceBundle, engineToAgent, enqueueForDigest, enrichLogContext, ensureBaseExists, ensureLatestDws, ensureTableExists, ensureTsxRegistered, evaluateStrictGate, 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, hasArtifactError, hasHumanStep, hasOssCredentials, hashNormalizedContent, incrementDigestAttempts, indexPath, 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, mergeCommandEnv, mergeEnterpriseRobotCredentials, mergeEnvRobotCredentials, migrateBaseIdInFiles, moduleDir, nextStepForPhase, normalizeArtifactRelPath, normalizeByType, normalizeCategory, normalizeEol, normalizeTimezone, padStaffId, parseDwsAuthIdentity, parseDwsVersionOutput, parseEnterpriseRobots, parseEnvExampleValues, parseEnvValue, parseFrontmatter, parseProvisionState, parseQuestionForm, parseVisionMeta, preflightModuleResult, prependGlobalDwsToPath, printFieldPlan, printKbProgress, printKbSummary, printViewSyncResult, probeCommand, probeProjectShape, provisionGuidance, provisionStateFileSchema, 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, resolveGlobalVarRef, resolveInsideRoot, resolveKbContext, resolveReportProject, resolveReviewState, resolveReviewStateDetailed, resolveTriggerTarget, robotLifecycleSchema, robotResultSchema, robotSubmitSchema, runCheck, runClarifyRound, runCodingAgent, runCodingAgentViaSpawn, runCommand, runDesign, runDesignCommand, runInit, runInstancePreflight, runKbCleanupCommand, runKbCompileCommand, runKbIngestCommand, runKbStatusCommand, runKbUpdateCommand, runMigrate, runSetupCommand, runSync, runWithDwsRunner, runWithExecutor, runWithLogContext, 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, syncViewsFromDesign, 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 };