@hcmai/sdk 0.3.5 → 0.3.7

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
@@ -2082,6 +2082,20 @@ interface ProbeResult {
2082
2082
  * **一个自己都分辨不了的分辨承诺比不承诺更糟**,它让人以为这件事已经处理了。
2083
2083
  */
2084
2084
  declare function probeExtensionSource(probe: ReconProbe, keys: string[]): Promise<ProbeResult>;
2085
+ /**
2086
+ * 产物目录要用的 `sourceKey`——`recon` 打出去的**第一个**请求序列。
2087
+ *
2088
+ * 🔴 单独一个入口,而**不是**让命令层自己 `probe.get(MODELS_PATH)` 再就地取 key:
2089
+ * `probeExtensionSource` 此前有三个调用点,其中一个(recon 的这一跳)漏了
2090
+ * 「元素可能不是对象 / body 整体可能不是对象 / modelKey 可能是空串」这三道过滤,
2091
+ * 于是客户网关一改清单形状,`recon` 就在第一步以一条裸堆栈收场 —— 而顾问手上
2092
+ * 没有源码、没有安装包、也没有第二份基线可对照。
2093
+ * 三处各修各的会再漏第四处;收进 `modelKeys()` 这**一道门**,漏不掉。
2094
+ *
2095
+ * 🔴 探不到时回 `'unknown'` 而不是抛:探不到是**可降级**的(产物目录名带 unknown,
2096
+ * 顾问一眼看得出这份基线的层次身份没确认),而抛会让整轮爬取在第一步就没了。
2097
+ */
2098
+ declare function computeReconSourceKey(probe: ReconProbe): Promise<string>;
2085
2099
  interface Fingerprint {
2086
2100
  tenantMetaManifestDigest: string;
2087
2101
  manifestEntryCount: number;
@@ -2153,4 +2167,199 @@ declare const AUTH_INFO_PATH = "/api/auth/info";
2153
2167
  */
2154
2168
  declare function fetchReconIdentity(probe: ReconProbe, requestedTenantId: string): Promise<ReconIdentity | null>;
2155
2169
 
2156
- export { AUTH_INFO_PATH, type ActionHttpMethod, type ActionInput, type ActionMeta, type ActionResult, type ActionScope, type AdminResetPasswordRequest, type AdminResetPasswordResult, type AnyStreamEvent, type ApprovalConfirmPayload, type ApprovalRejectPayload, type AttachmentMeta, type AuthScheme, BLIND_SPOTS, type BootstrapReconcileResult, type BootstrapTenantRequest, type BootstrapTenantResult, type CacheClearResult, type CacheStats, type ChangePasswordInput, type ChironCategory, type ChironManifest, type ChironSkill, type ChironSkillFile, type ChironStage, type ClearMetaCacheOpts, CliError, CliErrorCode, type CliErrorInit, type ClientAuthContext, type ClientCredentialsInput, type ConnectionMessage, type ControlChannelEnvelope, type ConversationListItem, type ConversationListResult, type ConversationState, type CreateResult, type CreatedConversation, DEFAULT_AGENT_ID, DEFAULT_SESSION_TTL_SECONDS, DOCTOR_ANCHORS, type DescribeOpts, type DoctorAnchor, type DoctorCheck, type DoctorReport, EXTENSION_SOURCE_HEADER, type EnvConfig, ExitCode, type FieldMeta, type Fingerprint, type Fixture, type FormatOptions, GATE_COMPONENTS, type GlobalConfig, HcmClient, type HcmClientOpts, type HttpClientOptions, type IdentityMeta, type ImportClient, type ImportOptions, type ImportResult, type InteractionAnswerPayload, type InteractionRequest, type InteractionResolved, LayoutContainmentError, type ListTenantMetaOpts, type LoginOutcome, MANIFEST_PATH, MAX_MANIFEST_PAGES, MAX_SOURCE_PROBES, META_PATH, MINI_CONTEXT_FILE, MINI_CONTEXT_KIND, MINI_CONTEXT_VERSION, MINI_PULL_MANIFEST_FILE, MINI_REMOTE_ROOT, MINI_STATE_DIR, MODELS_PATH, type MessageClass, type MessageCreatePayload, type MessageStreamHandle, type MigrationSummary, type MiniFileSnapshot, type MiniInitArgs, type MiniLocalFile, type MiniLocalStatus, type MiniPreviewTarget, type MiniProjectContext, type MiniPullArgs, type MiniPullManifest, type MiniPullResult, type MiniPushArgs, type MiniPushConflict, type MiniPushOperation, type MiniPushPlanItem, type MiniPushResult, type MiniSmokeCheckArgs, type MiniSmokeFetch, type MiniSmokeFetchResponse, type MiniSmokeResult, type MiniSmokeTargetKind, type MiniSmokeTargetResult, type MiniStatusEntry, type MiniSurface, type MiniTemplateArgs, type MiniTemplateKind, type MiniValidationResult, type MiniVerifyAgentReport, type MiniVerifyBrowserAcceptance, type MiniVerifyChangedFile, type MiniVerifyNextAction, type MiniVerifyPlan, type MiniVerifyPreviewUrl, type MiniVerifyReport, type MiniVerifySummary, type MiniWritableTemplateConfig, type ModelDescription, type ModelQueryDsl, type OneShotOpts, type OneShotResult, type OneShotToolCall, type Outcome, type OutputFormat, PASSWORD_CHANGE_REQUIRED, PROACTIVE_REFRESH_MARGIN_SECONDS, type PairingLoginInput, type ParsedPlaceholder, type PasswordChangeChallenge, type PasswordLoginInput, type PatLoginInput, type Principal, type ProfileConfig, type QueryResult, type ReconIdentity, ReconLayout, type ReconProbe, RefStore, type RefreshInput, type RelationMeta, type RemoveResult, type ResponseCompletedPayload, type ResponseFailedPayload, type ResponsePartDeltaPayload, type ResponseStartedPayload, type ResumeSummary, type ResumeTurn, type RowResult, type RowStatus, SDK_VERSION, type SaveMetaResult, type SendMessageOpts, type SettingItem, type SettingWrite, type StreamCancelPayload, type StreamCommand, type StreamCommandEnvelope, type StreamCommandType, type StreamEventEnvelope, type StreamEventType, type TaskProgressPayload, type TenantMetaEntry, type TimelineItemLite, type TokenRecord, TokenStore, type ToolCallFailedPayload, type ToolCallResultPayload, type ToolCallStartedPayload, type V4RenderSink, type V4StreamEventType, VERSION_PATH, type WorkspaceFileContent, type WorkspaceFileItem, type WorkspaceFileListResult, WsClient, type WsClientOpts, absoluteDownloadUrl, adminResetPassword, archiveDir, assertSafeReferencePath, assertSafeSkillFilePath, assertSafeSkillId, bootstrapTenant, buildAnswer, buildConfirm, buildInterrupt, buildMiniAppTemplateFiles, buildMiniPreviewTargets, buildMiniVerifyAgentReport, buildReject, buildResumeSummary, buildSteer, camelizeKeys, changePassword, classifyMessage, clearMetaCache, clearModelCache, compareFingerprint, computeFingerprint, conversationStateFile, create, createConversation, createHttpClient, createV4Reducer, createWorkspaceFile, credentialsFile, defaultDownloadDir, defaultMiniRequiredScopes, deleteEnv, deleteIdentity, deleteTenantMeta, deleteWorkspaceFile, deriveNamelessToolLabel, describePrincipal, detectDelegationPause, detectDirectInteractionPending, detectPasswordChangeChallenge, displayWidth, downloadDocument, ensureSessionFresh, envDir, envFile, envsDir, exitCodeFor, extractNextSteps, fetchConversationTimeline, fetchConversationTimelineStrict, fetchRecentConversations, fetchReconIdentity, fetchSkillCatalog, fetchSkillFile, fetchSkillMarkdown, fetchSkillReference, filterByStage, findLastAssistantSeq, flattenSkills, formatMiniVerifyReport, formatObject, formatRows, fromAxiosError, getCacheStats, getMiniStatus, getSettingDomain, getTenantMeta, globalConfigFile, guessMimeType, hcmConfigDir, httpProbe, identitiesDir, identityDir, identityMetaFile, inferEnvName, inferMiniWritableTemplateOptionsFromModel, initMiniAppProject, isDelegationToolName, isServerSlidingSession, listEnvs, listIdentities, listProfiles, listTenantMeta, listWorkspaceFiles, loadConversationState, loadEnv, loadGlobalConfig, loadIdentity, loadProfile, loadWorkspaceFileContent, loginClientCredentials, loginPairing, loginPassword, loginPat, matchSkills, migrateLegacyProfiles, modelEntries, modelKeys, needsRefresh, normalizeReferences, oneShot, parseConfirmToolName, parseFixture, parseInteractionRequest, parseInteractionResolved, parsePlaceholder, parseSettingAssignment, parseSkillFrontmatter, parseSkillRequirements, patchSettingDomain, probeExtensionSource, profileDir, profileFile, pullMiniAppProject, pushMiniAppProject, readMiniContext, readPullManifest, refreshToken, remove, replHistoryFile, resetSettingItem, resolveActiveEnv, resolveActiveIdentity, resolveActiveProfile, resolveAllSkillsInstallOrder, resolveChironBase, resolveRefs, resolveSkillInstallOrder, runDoctor, runImport, runMiniSmokeChecks, safeSegment, saveConversationState, saveEnv, saveGlobalConfig, saveIdentity, saveProfile, saveTenantMeta, saveWorkspaceFileContent, sendMessageAndStream, snakeToCamel, tenantSegment, toJson, toOrigin, toPrincipal, toTable, toYaml, truncateDisplay, update, uploadDocument, validateMiniProject };
2170
+ /**
2171
+ * 定向重爬的披露标记。
2172
+ *
2173
+ * 🔴 `_kit` 前缀:这一节是**工具加的**,产品从不发它。下游遍历产物顶层键的人
2174
+ * 必须一眼看得出哪些是服务端说的、哪些是我们说的。
2175
+ *
2176
+ * 🔴 **为什么单独成一个模块**:有**三份**产物要写这一节 —— `gates.json`(编排层写)、
2177
+ * `mapping/_index.json`、`valuedomain/_index.json`(后两份由各自模块写)。
2178
+ * 而 `mapping` / `valuedomain` 不许反过来 import 编排层(那是它们的上层,import 会成环)。
2179
+ * 剩下的选择只有两个:把字面量抄三份,或者收到一个三方都在其下的地方。
2180
+ * 抄三份必然漂移,而漂移的表现是**顾问 grep `_kitCarryOver` 只搜到两份产物** ——
2181
+ * 第三份看着就像「这一轮没有沿用」,正是这一节存在的意义所要防的那种误读。
2182
+ */
2183
+ declare const KIT_CARRY_OVER_KEY = "_kitCarryOver";
2184
+
2185
+ /**
2186
+ * 只读闸(action gates)的爬取与落盘(契约清单 §3.5,29 条)。
2187
+ *
2188
+ * `readOnly` 是产品里**唯一**让 AI 工具 `hcm_invoke_read_action` 免用户确认直接执行的开关。
2189
+ * 判错的代价不是「基线不准」,是 **AI 静默写客户生产库**。所以本模块一切从严、一切 fail-closed:
2190
+ * 凡是没能确凿看到「显式声明只读 + 全部候选都只读 + 端点自己也不认为有分歧」的条目,一律不进闸表。
2191
+ */
2192
+
2193
+ /**
2194
+ * 「声明了只读、却被 fail-closed 规则拒掉」的动作必须留痕:不留痕的话,
2195
+ * 「我们拒了它」与「压根没这个动作」在产物里同形,下一个人无从复核我们拒得对不对。
2196
+ */
2197
+ type RejectReason = 'conflict' | 'conflict-undeclared' | 'candidate-not-read-only' | 'no-candidates' | 'malformed-candidate' | 'malformed-key' | 'malformed-action';
2198
+ interface RejectedEntry {
2199
+ model: string;
2200
+ key: string | null;
2201
+ reason: RejectReason;
2202
+ note: string;
2203
+ }
2204
+ interface GateUnavailable {
2205
+ modelKey: string;
2206
+ status: number;
2207
+ error: string;
2208
+ note: string;
2209
+ bodyPreview?: string;
2210
+ }
2211
+ interface GateCoverage {
2212
+ scope: 'state-scoped';
2213
+ state: string | null;
2214
+ statesEchoed: string[];
2215
+ stateObserved: boolean;
2216
+ stateEchoAgrees: boolean;
2217
+ stateRequested: string;
2218
+ modelsWithoutStateEcho: number;
2219
+ sources: string[];
2220
+ modelsQueried: number;
2221
+ duplicateModelKeys: number;
2222
+ modelsAnswered: number;
2223
+ modelsUnavailable: number;
2224
+ accountingBalanced: boolean;
2225
+ unavailable: GateUnavailable[];
2226
+ rejected: RejectedEntry[];
2227
+ endpointGates: false;
2228
+ note: string;
2229
+ }
2230
+
2231
+ /**
2232
+ * `--model X` 在模型清单里一个都没匹配上。
2233
+ *
2234
+ * 🔴 **必须在写盘之前抛**。原先它一路走完编排:`fields.jsonl` 被清成 0 字节、
2235
+ * `gates.json` 清空,而摘要是 `rc=0 / modelsQueried:0 / driftSinceLastRecon: []`
2236
+ * ——读作「跑成功了,环境没变」。此后 `find` 任何词都印「0 命中 / 索引共 0 字段」,
2237
+ * 与「产品没有这个字段」同形(GC3 要分开的两件事),方向是**低报**。
2238
+ *
2239
+ * 代价在客户现场是最重的一档:FDE 手上**只有这一份基线**,没有源码、没有安装包可以重来,
2240
+ * 刚跑完的一次全量(可能几十分钟)会被一个拼错的模型名抹掉,而且没有任何迹象告诉他出事了。
2241
+ */
2242
+ declare class TargetModelNotFound extends Error {
2243
+ constructor(message: string);
2244
+ }
2245
+ /**
2246
+ * 每个模型的爬取时刻,写进**内容**而不是靠文件 mtime。
2247
+ *
2248
+ * 🔴 理由是判据本身:**说错年龄比不说更坏**。mtime 会被 `cp`(不带 `-p`)、打包解包、
2249
+ * rsync 改写 —— 复评实测 `cp -r` 之后「最早」由 2026-08-13 变 2026-08-16,
2250
+ * 沿用行再次被报成刚爬的。而 FDE 的产物被拷来拷去(发同事 / 打包带走 / rsync 上跳板机 /
2251
+ * 装进交付包)**是主路径不是边缘场景**,光加一句免责声明等于让他继续读一个错日期。
2252
+ *
2253
+ * 🔴 落点是**独立文件**,不许往 `meta/<key>.model.json` 里塞键:那些是原样留证的产品
2254
+ * 响应体,污染它们就毁掉了「这是服务端原话」这个唯一价值。文件名带 `_kit` 前缀 ——
2255
+ * 一眼看得出是工具写的,产品从不发它。
2256
+ */
2257
+ declare const KIT_CRAWLED_AT_FILE = "_kitCrawledAt.json";
2258
+ /**
2259
+ * 「带轮次戳的产物」名单是**判据的单一来源**:`runRecon` 按它写、`inspectRound` 按它读。
2260
+ *
2261
+ * 🔴 两边各写一份清单,下一个新产物必然只补一边 —— 而漏补的表现是
2262
+ * 「那份产物永远被判成本轮的」,一个只在中断时才暴露的静默缺陷。
2263
+ */
2264
+ declare const ROUND_STAMPED_PRODUCTS: readonly ["topology.json", "valuedomain/_index.json", "mapping/_index.json"];
2265
+ /**
2266
+ * 🔴 三档**不许合并**,它们的下一步动作完全不同:
2267
+ * complete = 所有产物同属一轮,且这一轮跑到了最后(台账落了盘);
2268
+ * mixed = 存在不同轮次的产物 / 有产物没戳 / 有产物缺席 / 这一轮没跑完 —— 都要指名道姓;
2269
+ * unknown = 产物里根本没有 roundId(更早版本的 kit 爬的),**判不了**。
2270
+ * ⚠️ `unknown` 这一档不许省:老基线不带戳,把它判成 complete 或 mixed 都是撒谎。
2271
+ */
2272
+ declare const ROUND_STATES: readonly ["complete", "mixed", "unknown"];
2273
+ type RoundState = (typeof ROUND_STATES)[number];
2274
+ /**
2275
+ * 档位 → 退出码。**这张表是唯一一处做这个映射的地方**,命令层只查表、一个字都不重判。
2276
+ *
2277
+ * 🔴 `unknown` 也非零:它是「判不了」,而脚本把「判不了」当成「没问题」继续往下走,
2278
+ * 正是这一整节要防的事。
2279
+ */
2280
+ declare const ROUND_EXIT_CODES: Record<RoundState, number>;
2281
+ /** 零网络子命令的名字。产物里教的读法与摘要里给的提示都从这里取,不抄第二份。 */
2282
+ declare const ROUND_SUBCOMMAND = "hcm delivery recon round";
2283
+ /** `20260816T075429Z-a1b2c3d4`。前半给顺序,后半给身份(理由见上方注释)。 */
2284
+ declare function newRoundId(started: Date): string;
2285
+ interface RoundProduct {
2286
+ path: string;
2287
+ state: 'this-round' | 'older-round' | 'unstamped' | 'missing' | 'unreadable';
2288
+ roundId: string | null;
2289
+ }
2290
+ interface LedgerFilesMissing {
2291
+ checked: number;
2292
+ count: number;
2293
+ files: string[];
2294
+ }
2295
+ interface RoundResult {
2296
+ state: RoundState;
2297
+ roundId: string | null;
2298
+ roundStartedAt: unknown;
2299
+ finished: boolean | null;
2300
+ productsWrittenThisRound: number | null;
2301
+ ledgerFilesMissing: LedgerFilesMissing | null;
2302
+ products: RoundProduct[];
2303
+ dir: string;
2304
+ note: string;
2305
+ }
2306
+ /**
2307
+ * 读一份**已经落盘**的基线,回答「它是不是一轮完整跑出来的」。
2308
+ *
2309
+ * 只读文件、零网络:顾问在气隙机器上、或者刚被 Ctrl-C 打断之后,手上就只有这几个文件
2310
+ * (被打断的那一轮**不会**打印任何摘要 —— 所以这个判断不能只活在摘要里)。
2311
+ */
2312
+ declare function inspectRound(root: string): RoundResult;
2313
+ /**
2314
+ * 「台账点了名、盘上却没有」是**第三种事**,措辞不许与下面那四档任何一条重合(连子串都不许):
2315
+ * 带戳索引的 `missing` = 那份产物**根本没有**(这一轮没写到那里),下一步是重跑 recon;
2316
+ * 本档 = **本轮写过、现在却找不到了**,下一步是先问「这份基线是怎么拷过来的」。
2317
+ * 把两者说成同一句话,顾问就会去重跑一个其实拷漏了的基线,而漏的那几份下次还会漏。
2318
+ */
2319
+ declare const LEDGER_MISSING_WORD = "\u672C\u8F6E\u5199\u8FC7\u3001\u73B0\u5728\u5374**\u627E\u4E0D\u5230\u4E86**\uFF08\u62F7\u8D1D / \u88C1\u526A\u65F6\u6F0F\u5E26\uFF0C\u6216\u4E8B\u540E\u88AB\u5220\uFF09";
2320
+ declare const PRODUCT_STATE_WORDS: Record<Exclude<RoundProduct['state'], 'this-round'>, string>;
2321
+ /**
2322
+ * 两个 roundId 的时间差 —— 「旧到哪一轮」要说得出**多旧**才有用。
2323
+ * 解析不出来就不说(宁可少说一句,也不许说错一个时间)。
2324
+ */
2325
+ declare function roundAge(roundId: unknown, other: unknown): string;
2326
+ /** 把 `inspectRound` 的结论说成人话。三档措辞**互不重叠**,读者不必回头查文档。 */
2327
+ declare function renderRound(result: RoundResult): string;
2328
+ interface CarryOver {
2329
+ mode: 'full' | 'targeted';
2330
+ onlyModel: string | null;
2331
+ modelsRecrawled: string[];
2332
+ modelsCarriedOver: string[];
2333
+ gatesCarriedOver: number;
2334
+ problems: string[];
2335
+ topologyRecomputed: boolean;
2336
+ note: string;
2337
+ }
2338
+ interface RunReconOptions {
2339
+ state?: string;
2340
+ onlyModel?: string | null;
2341
+ /** 服务端认定的 token 归属。落进 `valuedomain/_index.json`,`null` = 调用方没告诉我。 */
2342
+ identity?: unknown;
2343
+ }
2344
+ interface ReconSummary {
2345
+ driftSinceLastRecon: string[] | null;
2346
+ modelsQueried: number;
2347
+ metasCrawled: number;
2348
+ unavailable: number;
2349
+ gates: number;
2350
+ fieldRows: number;
2351
+ fieldsDropped: number;
2352
+ carryOver: CarryOver;
2353
+ crawledAtUnknown: number;
2354
+ topology: Record<string, unknown>;
2355
+ valuedomain: Record<string, unknown>;
2356
+ mapping: Record<string, unknown>;
2357
+ round: Record<string, unknown>;
2358
+ coverage: GateCoverage & {
2359
+ [KIT_CARRY_OVER_KEY]: CarryOver;
2360
+ };
2361
+ dir: string;
2362
+ }
2363
+ declare function runRecon(probe: ReconProbe, layout: ReconLayout, opts?: RunReconOptions): Promise<ReconSummary>;
2364
+
2365
+ export { AUTH_INFO_PATH, type ActionHttpMethod, type ActionInput, type ActionMeta, type ActionResult, type ActionScope, type AdminResetPasswordRequest, type AdminResetPasswordResult, type AnyStreamEvent, type ApprovalConfirmPayload, type ApprovalRejectPayload, type AttachmentMeta, type AuthScheme, BLIND_SPOTS, type BootstrapReconcileResult, type BootstrapTenantRequest, type BootstrapTenantResult, type CacheClearResult, type CacheStats, type CarryOver, type ChangePasswordInput, type ChironCategory, type ChironManifest, type ChironSkill, type ChironSkillFile, type ChironStage, type ClearMetaCacheOpts, CliError, CliErrorCode, type CliErrorInit, type ClientAuthContext, type ClientCredentialsInput, type ConnectionMessage, type ControlChannelEnvelope, type ConversationListItem, type ConversationListResult, type ConversationState, type CreateResult, type CreatedConversation, DEFAULT_AGENT_ID, DEFAULT_SESSION_TTL_SECONDS, DOCTOR_ANCHORS, type DescribeOpts, type DoctorAnchor, type DoctorCheck, type DoctorReport, EXTENSION_SOURCE_HEADER, type EnvConfig, ExitCode, type FieldMeta, type Fingerprint, type Fixture, type FormatOptions, GATE_COMPONENTS, type GlobalConfig, HcmClient, type HcmClientOpts, type HttpClientOptions, type IdentityMeta, type ImportClient, type ImportOptions, type ImportResult, type InteractionAnswerPayload, type InteractionRequest, type InteractionResolved, KIT_CARRY_OVER_KEY, KIT_CRAWLED_AT_FILE, LEDGER_MISSING_WORD, LayoutContainmentError, type ListTenantMetaOpts, type LoginOutcome, MANIFEST_PATH, MAX_MANIFEST_PAGES, MAX_SOURCE_PROBES, META_PATH, MINI_CONTEXT_FILE, MINI_CONTEXT_KIND, MINI_CONTEXT_VERSION, MINI_PULL_MANIFEST_FILE, MINI_REMOTE_ROOT, MINI_STATE_DIR, MODELS_PATH, type MessageClass, type MessageCreatePayload, type MessageStreamHandle, type MigrationSummary, type MiniFileSnapshot, type MiniInitArgs, type MiniLocalFile, type MiniLocalStatus, type MiniPreviewTarget, type MiniProjectContext, type MiniPullArgs, type MiniPullManifest, type MiniPullResult, type MiniPushArgs, type MiniPushConflict, type MiniPushOperation, type MiniPushPlanItem, type MiniPushResult, type MiniSmokeCheckArgs, type MiniSmokeFetch, type MiniSmokeFetchResponse, type MiniSmokeResult, type MiniSmokeTargetKind, type MiniSmokeTargetResult, type MiniStatusEntry, type MiniSurface, type MiniTemplateArgs, type MiniTemplateKind, type MiniValidationResult, type MiniVerifyAgentReport, type MiniVerifyBrowserAcceptance, type MiniVerifyChangedFile, type MiniVerifyNextAction, type MiniVerifyPlan, type MiniVerifyPreviewUrl, type MiniVerifyReport, type MiniVerifySummary, type MiniWritableTemplateConfig, type ModelDescription, type ModelQueryDsl, type OneShotOpts, type OneShotResult, type OneShotToolCall, type Outcome, type OutputFormat, PASSWORD_CHANGE_REQUIRED, PROACTIVE_REFRESH_MARGIN_SECONDS, PRODUCT_STATE_WORDS, type PairingLoginInput, type ParsedPlaceholder, type PasswordChangeChallenge, type PasswordLoginInput, type PatLoginInput, type Principal, type ProfileConfig, type QueryResult, ROUND_EXIT_CODES, ROUND_STAMPED_PRODUCTS, ROUND_STATES, ROUND_SUBCOMMAND, type ReconIdentity, ReconLayout, type ReconProbe, type ReconSummary, RefStore, type RefreshInput, type RelationMeta, type RemoveResult, type ResponseCompletedPayload, type ResponseFailedPayload, type ResponsePartDeltaPayload, type ResponseStartedPayload, type ResumeSummary, type ResumeTurn, type RoundResult, type RoundState, type RowResult, type RowStatus, SDK_VERSION, type SaveMetaResult, type SendMessageOpts, type SettingItem, type SettingWrite, type StreamCancelPayload, type StreamCommand, type StreamCommandEnvelope, type StreamCommandType, type StreamEventEnvelope, type StreamEventType, TargetModelNotFound, type TaskProgressPayload, type TenantMetaEntry, type TimelineItemLite, type TokenRecord, TokenStore, type ToolCallFailedPayload, type ToolCallResultPayload, type ToolCallStartedPayload, type V4RenderSink, type V4StreamEventType, VERSION_PATH, type WorkspaceFileContent, type WorkspaceFileItem, type WorkspaceFileListResult, WsClient, type WsClientOpts, absoluteDownloadUrl, adminResetPassword, archiveDir, assertSafeReferencePath, assertSafeSkillFilePath, assertSafeSkillId, bootstrapTenant, buildAnswer, buildConfirm, buildInterrupt, buildMiniAppTemplateFiles, buildMiniPreviewTargets, buildMiniVerifyAgentReport, buildReject, buildResumeSummary, buildSteer, camelizeKeys, changePassword, classifyMessage, clearMetaCache, clearModelCache, compareFingerprint, computeFingerprint, computeReconSourceKey, conversationStateFile, create, createConversation, createHttpClient, createV4Reducer, createWorkspaceFile, credentialsFile, defaultDownloadDir, defaultMiniRequiredScopes, deleteEnv, deleteIdentity, deleteTenantMeta, deleteWorkspaceFile, deriveNamelessToolLabel, describePrincipal, detectDelegationPause, detectDirectInteractionPending, detectPasswordChangeChallenge, displayWidth, downloadDocument, ensureSessionFresh, envDir, envFile, envsDir, exitCodeFor, extractNextSteps, fetchConversationTimeline, fetchConversationTimelineStrict, fetchRecentConversations, fetchReconIdentity, fetchSkillCatalog, fetchSkillFile, fetchSkillMarkdown, fetchSkillReference, filterByStage, findLastAssistantSeq, flattenSkills, formatMiniVerifyReport, formatObject, formatRows, fromAxiosError, getCacheStats, getMiniStatus, getSettingDomain, getTenantMeta, globalConfigFile, guessMimeType, hcmConfigDir, httpProbe, identitiesDir, identityDir, identityMetaFile, inferEnvName, inferMiniWritableTemplateOptionsFromModel, initMiniAppProject, inspectRound, isDelegationToolName, isServerSlidingSession, listEnvs, listIdentities, listProfiles, listTenantMeta, listWorkspaceFiles, loadConversationState, loadEnv, loadGlobalConfig, loadIdentity, loadProfile, loadWorkspaceFileContent, loginClientCredentials, loginPairing, loginPassword, loginPat, matchSkills, migrateLegacyProfiles, modelEntries, modelKeys, needsRefresh, newRoundId, normalizeReferences, oneShot, parseConfirmToolName, parseFixture, parseInteractionRequest, parseInteractionResolved, parsePlaceholder, parseSettingAssignment, parseSkillFrontmatter, parseSkillRequirements, patchSettingDomain, probeExtensionSource, profileDir, profileFile, pullMiniAppProject, pushMiniAppProject, readMiniContext, readPullManifest, refreshToken, remove, renderRound, replHistoryFile, resetSettingItem, resolveActiveEnv, resolveActiveIdentity, resolveActiveProfile, resolveAllSkillsInstallOrder, resolveChironBase, resolveRefs, resolveSkillInstallOrder, roundAge, runDoctor, runImport, runMiniSmokeChecks, runRecon, safeSegment, saveConversationState, saveEnv, saveGlobalConfig, saveIdentity, saveProfile, saveTenantMeta, saveWorkspaceFileContent, sendMessageAndStream, snakeToCamel, tenantSegment, toJson, toOrigin, toPrincipal, toTable, toYaml, truncateDisplay, update, uploadDocument, validateMiniProject };