@hcmai/sdk 0.3.8 → 0.3.10

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
@@ -2825,4 +2825,186 @@ declare function scan(skillRoot: string, aclass: Partial<Aclass>, facts: readonl
2825
2825
  */
2826
2826
  declare function exitCode(result: Pick<ScanResult, 'premise' | 'red'>): number;
2827
2827
 
2828
- export { ACLASS_EMPTY_WHY, ACLASS_KINDS, ARTIFACT_ROOT, ARTIFACT_SUFFIXES, ARTIFACT_WORDING, AUTH_INFO_PATH, type Aclass, type AclassKind, type AclassProblem, 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, CHANNELS, CHANNEL_ACLASS, CHANNEL_ARTIFACT, CHANNEL_NO_PROBE, CHANNEL_REGISTERED_IS_ACLASS, CHANNEL_UNREGISTERED, CLASS_REASONS, CLASS_SCOPE, type CacheClearResult, type CacheStats, type CarryOver, type ChangePasswordInput, type Channel, 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, ENDPOINT_PREFIXES, ENTRY_SCOPE, ENUM_ELEMENT_KEYS, EXTENSION_SOURCE_HEADER, type EnvConfig, ExitCode, FACTS_REASONS, FOLDED_NOTE, FULLWIDTH_ALNUM_RANGES, type FactsProblem, type FieldMeta, type Fingerprint, type Fixture, type FormatOptions, GAP_CJK_INSIDE_LONGER_RUN, GAP_NOISE_TOKEN, GAP_REASONS, GATE_COMPONENTS, type Gap, 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, MAPPING_ARTIFACT_VERSION, 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, MappingArtifactError, Matcher, 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, PREMISE_REASONS, PREMISE_REGISTRY_REASONS, PROACTIVE_REFRESH_MARGIN_SECONDS, PROBE_MARK_PREFIX, PRODUCT_RELATIVE_SHAPES, PRODUCT_STATE_WORDS, PROTOCOL_FACTS, type PairingLoginInput, type ParsedPlaceholder, type PasswordChangeChallenge, type PasswordLoginInput, type PatLoginInput, type Premise, type Principal, type ProfileConfig, type ProtocolFact, type QueryResult, REASON_DUPLICATE_TOKEN, REASON_EMPTY, REASON_NO_ENTRIES, REASON_PROBE_ABSENT, REASON_PROBE_SHAPE, REASON_PROBE_UNVERIFIED, REASON_UNREAD, RECON_DIRNAME, RECON_SEGMENTS_BELOW_ROOT, RED_REASONS, REGISTRY_REASONS, REGISTRY_SCOPE, ROUND_EXIT_CODES, ROUND_STAMPED_PRODUCTS, ROUND_STATES, ROUND_SUBCOMMAND, type ReconIdentity, ReconLayout, type ReconProbe, type ReconSummary, type Red, 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, SCOPES, SDK_VERSION, SEGMENT_SEPARATOR, type SaveMetaResult, type ScanOptions, type ScanResult, 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, artifactReason, assertSafeReferencePath, assertSafeSkillFilePath, assertSafeSkillId, baselineRoundPremise, bootstrapTenant, boundedFind, buildAnswer, buildConfirm, buildInterrupt, buildMiniAppTemplateFiles, buildMiniPreviewTargets, buildMiniVerifyAgentReport, buildReject, buildResumeSummary, buildSteer, camelizeKeys, changePassword, checkGaps, checkPremise, checkReds, cjkRunAt, classifyMessage, clearMetaCache, clearModelCache, compareFingerprint, computeFingerprint, computeReconSourceKey, conversationStateFile, covered, create, createConversation, createHttpClient, createV4Reducer, createWorkspaceFile, credentialsFile, defaultDownloadDir, defaultMiniRequiredScopes, deleteEnv, deleteIdentity, deleteTenantMeta, deleteWorkspaceFile, deriveAclass, deriveNamelessToolLabel, describePrincipal, detectDelegationPause, detectDirectInteractionPending, detectPasswordChangeChallenge, displayWidth, downloadDocument, endpointsIn, ensureSessionFresh, envDir, envFile, envsDir, exitCode, exitCodeFor, extractNextSteps, factsIndex, fetchConversationTimeline, fetchConversationTimelineStrict, fetchRecentConversations, fetchReconIdentity, fetchSkillCatalog, fetchSkillFile, fetchSkillMarkdown, fetchSkillReference, filterByStage, findLastAssistantSeq, flattenSkills, foldConfusables, foldedNoteFor, formatMiniVerifyReport, formatObject, formatRows, fromAxiosError, getCacheStats, getMiniStatus, getSettingDomain, getTenantMeta, globalConfigFile, guessMimeType, hcmConfigDir, httpProbe, identitiesDir, identityDir, identityMetaFile, inGap, inferEnvName, inferMiniWritableTemplateOptionsFromModel, initMiniAppProject, inspectRound, isCjk, isDelegationToolName, isServerSlidingSession, listEnvs, listIdentities, listProfiles, listTenantMeta, listWorkspaceFiles, loadConversationState, loadEnv, loadGlobalConfig, loadIdentity, loadProfile, loadProtocolFacts, loadWorkspaceFileContent, loginClientCredentials, loginPairing, loginPassword, loginPat, matchSkills, migrateLegacyProfiles, modelEntries, modelKeys, needsRefresh, newRoundId, normalize, normalizeReferences, oneShot, parseConfirmToolName, parseFixture, parseInteractionRequest, parseInteractionResolved, parsePlaceholder, parseSettingAssignment, parseSkillFrontmatter, parseSkillRequirements, patchSettingDomain, probeExtensionSource, profileDir, profileFile, pullMiniAppProject, pushMiniAppProject, readBusinessKeyFields, 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, scan, segmentsOf, sendMessageAndStream, snakeToCamel, tenantSegment, toJson, toOrigin, toPrincipal, toTable, toYaml, truncateDisplay, unguardedKinds, update, uploadDocument, validateMiniProject };
2828
+ /**
2829
+ * 六类承载物的核查结果契约 —— 分诊的**穷举**那一步落在这里。
2830
+ *
2831
+ * 🔴 **本模块判的是「有没有填」,不是「填得对不对」**。顾问看一眼觉得产品做不到就直接
2832
+ * 判缺口,是分诊最贵的失误;而「结论对不对」无法机械验证,「六格有没有被填满」可以。
2833
+ * 所以这里只提供一个**填不满就抛**的结构。
2834
+ *
2835
+ * 🔴 **四档不是三档。** `blind`(盲区)与 `miss`(看了没有)**必须是两个取值**:
2836
+ * 前者是「这条路在 HTTP 面上根本看不见」,后者是「看见了、没有」。混成一档,
2837
+ * 跳步就能伪装成盲区 —— 那正是本模块要防的东西。
2838
+ *
2839
+ * ## 六类承载物的可探性
2840
+ *
2841
+ * | 承载物 | 判别 | 来源 |
2842
+ * |---|---|---|
2843
+ * | `config-surface` | 模型的元数据面 | recon 产物 |
2844
+ * | `flex-model` | `ModelType.DYNAMIC`("租户元数据驱动,运行时创建") | recon 产物 |
2845
+ * | `json-model` | `BaseJsonModel` 派生 —— **只读、不支持增删改** | `mutation-capability`(间接) |
2846
+ * | `graaljs-spi` | 开发空间的 `scripts/` | `tenant-extension/workspaces` |
2847
+ * | `flex-data` | 字段级 `isFlex` | recon 产物 |
2848
+ * | `data-package` | —— | 🔴 **全 `modules/` 无 Controller ⇒ 真盲区** |
2849
+ *
2850
+ * 🔴 `ModelType` 只有 `DATA` / `MONGO` / `DYNAMIC` / `UNKNOWN` 四个值,**没有独立的
2851
+ * JSON Model 类型** —— 所以 `json-model` 只能靠「三个写能力全 false」间接判,
2852
+ * **不许按 type 判**。
2853
+ *
2854
+ * ⚠️ 上表是**源码推得 · wire 未实测**。它证明的是「本模块怎么判」,不是「产品真的这么答」。
2855
+ */
2856
+ /**
2857
+ * 六格。
2858
+ *
2859
+ * 🔴 顺序固定且**是契约的一部分**:产出的核查表按这个顺序渲染,顾问逐格看下去的路径是
2860
+ * 稳定的。加第七类必须同时改 `CARRIER_LABELS` 与渲染层 —— 由类型接住:
2861
+ * `CARRIER_LABELS` 声明成 `Record<CarrierKey, string>`,漏一格当场编译不过。
2862
+ */
2863
+ declare const CARRIER_KEYS: readonly ["config-surface", "flex-model", "json-model", "graaljs-spi", "flex-data", "data-package"];
2864
+ type CarrierKey = (typeof CARRIER_KEYS)[number];
2865
+ /** 🔴 只写**承载物是什么**(协议事实),不写某个环境里有哪些(A 类环境事实)。 */
2866
+ declare const CARRIER_LABELS: Record<CarrierKey, string>;
2867
+ /** 看见了,这条路走得通 */
2868
+ declare const CARRIER_HIT = "hit";
2869
+ /** 看了,这条路没有 */
2870
+ declare const CARRIER_MISS = "miss";
2871
+ /** 🔴 这条路在 HTTP 面上看不见 —— 不是「没有」 */
2872
+ declare const CARRIER_BLIND = "blind";
2873
+ /** 本该看得见,这次没取到(带原始 error) */
2874
+ declare const CARRIER_UNAVAILABLE = "unavailable";
2875
+ declare const CARRIER_VERDICTS: readonly ["hit", "miss", "blind", "unavailable"];
2876
+ type CarrierVerdict = (typeof CARRIER_VERDICTS)[number];
2877
+ interface CarrierResult {
2878
+ carrier: CarrierKey;
2879
+ label: string;
2880
+ verdict: CarrierVerdict;
2881
+ note?: string;
2882
+ evidence?: string[];
2883
+ error?: string;
2884
+ }
2885
+ interface CarrierResultOptions {
2886
+ note?: string;
2887
+ evidence?: readonly string[] | null;
2888
+ error?: string;
2889
+ }
2890
+ /**
2891
+ * 一格核查结果 —— 填不满就抛,不许静默留空。
2892
+ *
2893
+ * 🔴 `blind` 必须带 `note`:盲区要说清**为什么看不见**,否则它和「懒得查」逐字同形。
2894
+ * 🔴 `unavailable` 必须带 `error`:探不到要说明为什么,不许降级成空壳。
2895
+ *
2896
+ * ⚠️ 入参声明成 `string` 而不是 `CarrierKey` / `CarrierVerdict`:类型只挡得住本仓内部的
2897
+ * 调用点,而这两道运行时闸要挡的是**产物里读回来的值**(`mapping/<M>.json` 是服务端写的,
2898
+ * 不受本仓类型系统管)。把它们收窄成联合类型 = 把闸拆了还以为更严了。
2899
+ */
2900
+ declare function buildCarrierResult(carrier: string, verdict: string, options?: CarrierResultOptions): CarrierResult;
2901
+
2902
+ /** 开发空间清单端点。 */
2903
+ declare const WORKSPACES_PATH = "/api/tenant-extension/workspaces";
2904
+ declare const DATA_PACKAGE_BLIND_NOTE: string;
2905
+ /**
2906
+ * 三个写能力**全部**不允许 ⇒ 只读。
2907
+ *
2908
+ * 🔴 缺一个都不算:`allowed` 缺失或不是 `false` 时一律当「不是只读」——
2909
+ * 宁可漏判一个 JSON Model,也不能把一个可写模型说成只读码表。
2910
+ */
2911
+ declare function isReadOnly(mapping: unknown): boolean;
2912
+ /**
2913
+ * 六格全填 —— 每一格都有 verdict,**没有空格**。
2914
+ *
2915
+ * 🔴 返回类型是 `Record<CarrierKey, CarrierResult>`:漏填一格当场编译不过,
2916
+ * 这比一条运行时断言更早。
2917
+ */
2918
+ declare function probeAll(client: ReconProbe, artifactsDir: string): Promise<Record<CarrierKey, CarrierResult>>;
2919
+
2920
+ declare const REQUIRED_SECTIONS: readonly ["request", "cells", "verdict", "evidence"];
2921
+ declare const GAP = "GAP";
2922
+ declare const CONFIG = "CONFIG";
2923
+ interface TriageProblem {
2924
+ rule: 'R1' | 'R2' | 'R3' | 'R4';
2925
+ note: string;
2926
+ }
2927
+ /**
2928
+ * 一条待判的分诊条目。
2929
+ *
2930
+ * ⚠️ 每一格都声明成可选:本模块判的就是「缺没缺」,把它们声明成必填等于让类型系统
2931
+ * 替调用方把闸拆了 —— 而真实入参是顾问手写的一份 JSON,类型系统管不着它。
2932
+ */
2933
+ interface TriageEntry {
2934
+ request?: unknown;
2935
+ cells?: Record<string, unknown>;
2936
+ verdict?: unknown;
2937
+ evidence?: unknown;
2938
+ blindAcknowledged?: unknown;
2939
+ debtAction?: unknown;
2940
+ }
2941
+ /**
2942
+ * 返回 problem 列表,空表示自洽。
2943
+ *
2944
+ * 🔴 四条规则**各自独立跑**,不短路 —— 一条 entry 可以同时犯几条,只报最先撞上的那一条,
2945
+ * 会让顾问改完再撞、来回好几趟。
2946
+ */
2947
+ declare function checkCoherence(entry: TriageEntry): TriageProblem[];
2948
+
2949
+ /**
2950
+ * 结论取值域。
2951
+ *
2952
+ * - `REUSE` = 已有现成的,直接用
2953
+ * - `CONFIG` = 配置能做(六格里有命中)
2954
+ * - `EXTEND` = 要走二开(弹性模型 / 脚本 / 元数据)
2955
+ * - `GAP` = 六条路都走不通,回产品立案
2956
+ */
2957
+ declare const VERDICTS: readonly ["REUSE", "CONFIG", "EXTEND", "GAP"];
2958
+ type TriageVerdict = (typeof VERDICTS)[number];
2959
+ /** 🔴 ADR-303 §7 的格式,逐字。改这个字符串就等于把 GAP 从睿戎的清单里摘出去。 */
2960
+ declare const DEBT_PREFIX = "# DEBT: \u7F3A ";
2961
+ declare const DEBT_UNKNOWN = "\uFF08\u8FD8\u8BF4\u4E0D\u51FA\u7F3A\u54EA\u4E2A Action \u2014\u2014 \u7559\u75D5\u5148\uFF0C\u522B\u8BA9\u8FD9\u6761 GAP \u4ECE\u6E05\u5355\u91CC\u6D88\u5931\uFF09";
2962
+ /**
2963
+ * 把若干条分诊渲染成 `work/triage.md`。
2964
+ *
2965
+ * 🔴 **空输入抛**,不返回一份空文档:空产出会被读成「分诊过了、没问题」,
2966
+ * 那是本模块要防的最贵误读。
2967
+ */
2968
+ declare function renderTriage(entries: readonly TriageEntry[]): string;
2969
+
2970
+ /**
2971
+ * 一趟分诊的编排 —— 探六格、判自洽、落盘。
2972
+ *
2973
+ * 🔴 **为什么这一层在 core 而不是在命令里**:命令层多一处判断就会与这里的那份漂移,
2974
+ * 而顾问看到的是命令层那一份。与 `runRecon(probe, layout, …)` 同一条形状:
2975
+ * 探针**由调用方注入**,于是这一层在用例里跑得起来,而命令层只剩「拿身份、造探针、
2976
+ * 印字、退码」四件与判断无关的事。
2977
+ *
2978
+ * 🔴 **打架时不出正文**:一份内部矛盾的分诊产物比没有更坏 —— 它会被下游当成走完全程的
2979
+ * 那份读,而它自己说不出自己是半截的。`body` 因此是 `string | null`,
2980
+ * **不是空串** —— 「渲染出来了」与「没渲染」是两件事。
2981
+ *
2982
+ * 🔴 **这一层不落盘**,落盘归命令层。判据是 `fde-layout-writer-containment` 那道守卫:
2983
+ * `src/fde/**` 下**只有 `layout.ts` 能碰 fs 写 API**,因为侦察产物的路径遏制全收口在它
2984
+ * 那里。而 `work/triage.md` 不在 `ReconLayout` 的辖区内(它是 `recon/` 的同级),
2985
+ * 走不了那个收口点 ⇒ 正确的做法是**把写这件事挪出这片辖区**,不是给守卫开个例外。
2986
+ * 顺带把分工也摆正了:core 判断,CLI 做 IO。
2987
+ */
2988
+
2989
+ /** 一条打架 —— **带着是第几条、哪条需求、哪条规则、为什么**,只给条数等于没说。 */
2990
+ interface TriageProblemRow {
2991
+ idx: number;
2992
+ request: string;
2993
+ rule: string;
2994
+ note: string;
2995
+ }
2996
+ interface TriageRoundResult {
2997
+ cells: Record<CarrierKey, CarrierResult>;
2998
+ entries: TriageEntry[];
2999
+ problems: TriageProblemRow[];
3000
+ /** 渲染好的 `triage.md` 正文;打架时是 `null`(**没渲染**),不是空串。 */
3001
+ body: string | null;
3002
+ }
3003
+ /**
3004
+ * 跑一趟分诊。
3005
+ *
3006
+ * @param artifactsDir recon 产物目录本身(`<out>/recon/<租户段>/<来源段>`)
3007
+ */
3008
+ declare function runTriageRound(probe: ReconProbe, artifactsDir: string, entriesIn: readonly TriageEntry[]): Promise<TriageRoundResult>;
3009
+
3010
+ export { ACLASS_EMPTY_WHY, ACLASS_KINDS, ARTIFACT_ROOT, ARTIFACT_SUFFIXES, ARTIFACT_WORDING, AUTH_INFO_PATH, type Aclass, type AclassKind, type AclassProblem, 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, CARRIER_BLIND, CARRIER_HIT, CARRIER_KEYS, CARRIER_LABELS, CARRIER_MISS, CARRIER_UNAVAILABLE, CARRIER_VERDICTS, CHANNELS, CHANNEL_ACLASS, CHANNEL_ARTIFACT, CHANNEL_NO_PROBE, CHANNEL_REGISTERED_IS_ACLASS, CHANNEL_UNREGISTERED, CLASS_REASONS, CLASS_SCOPE, type CacheClearResult, type CacheStats, type CarrierKey, type CarrierResult, type CarrierVerdict, type CarryOver, type ChangePasswordInput, type Channel, 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, DATA_PACKAGE_BLIND_NOTE, DEBT_PREFIX, DEBT_UNKNOWN, DEFAULT_AGENT_ID, DEFAULT_SESSION_TTL_SECONDS, DOCTOR_ANCHORS, type DescribeOpts, type DoctorAnchor, type DoctorCheck, type DoctorReport, ENDPOINT_PREFIXES, ENTRY_SCOPE, ENUM_ELEMENT_KEYS, EXTENSION_SOURCE_HEADER, type EnvConfig, ExitCode, FACTS_REASONS, FOLDED_NOTE, FULLWIDTH_ALNUM_RANGES, type FactsProblem, type FieldMeta, type Fingerprint, type Fixture, type FormatOptions, GAP_CJK_INSIDE_LONGER_RUN, GAP_NOISE_TOKEN, GAP_REASONS, GATE_COMPONENTS, type Gap, 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, MAPPING_ARTIFACT_VERSION, 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, MappingArtifactError, Matcher, 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, PREMISE_REASONS, PREMISE_REGISTRY_REASONS, PROACTIVE_REFRESH_MARGIN_SECONDS, PROBE_MARK_PREFIX, PRODUCT_RELATIVE_SHAPES, PRODUCT_STATE_WORDS, PROTOCOL_FACTS, type PairingLoginInput, type ParsedPlaceholder, type PasswordChangeChallenge, type PasswordLoginInput, type PatLoginInput, type Premise, type Principal, type ProfileConfig, type ProtocolFact, type QueryResult, REASON_DUPLICATE_TOKEN, REASON_EMPTY, REASON_NO_ENTRIES, REASON_PROBE_ABSENT, REASON_PROBE_SHAPE, REASON_PROBE_UNVERIFIED, REASON_UNREAD, RECON_DIRNAME, RECON_SEGMENTS_BELOW_ROOT, RED_REASONS, REGISTRY_REASONS, REGISTRY_SCOPE, REQUIRED_SECTIONS, ROUND_EXIT_CODES, ROUND_STAMPED_PRODUCTS, ROUND_STATES, ROUND_SUBCOMMAND, type ReconIdentity, ReconLayout, type ReconProbe, type ReconSummary, type Red, 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, SCOPES, SDK_VERSION, SEGMENT_SEPARATOR, type SaveMetaResult, type ScanOptions, type ScanResult, type SendMessageOpts, type SettingItem, type SettingWrite, type StreamCancelPayload, type StreamCommand, type StreamCommandEnvelope, type StreamCommandType, type StreamEventEnvelope, type StreamEventType, CONFIG as TRIAGE_CONFIG, GAP as TRIAGE_GAP, VERDICTS as TRIAGE_VERDICTS, TargetModelNotFound, type TaskProgressPayload, type TenantMetaEntry, type TimelineItemLite, type TokenRecord, TokenStore, type ToolCallFailedPayload, type ToolCallResultPayload, type ToolCallStartedPayload, type TriageEntry, type TriageProblem, type TriageProblemRow, type TriageRoundResult, type TriageVerdict, type V4RenderSink, type V4StreamEventType, VERSION_PATH, WORKSPACES_PATH, type WorkspaceFileContent, type WorkspaceFileItem, type WorkspaceFileListResult, WsClient, type WsClientOpts, absoluteDownloadUrl, adminResetPassword, archiveDir, artifactReason, assertSafeReferencePath, assertSafeSkillFilePath, assertSafeSkillId, baselineRoundPremise, bootstrapTenant, boundedFind, buildAnswer, buildCarrierResult, buildConfirm, buildInterrupt, buildMiniAppTemplateFiles, buildMiniPreviewTargets, buildMiniVerifyAgentReport, buildReject, buildResumeSummary, buildSteer, camelizeKeys, changePassword, checkCoherence, checkGaps, checkPremise, checkReds, cjkRunAt, classifyMessage, clearMetaCache, clearModelCache, compareFingerprint, computeFingerprint, computeReconSourceKey, conversationStateFile, covered, create, createConversation, createHttpClient, createV4Reducer, createWorkspaceFile, credentialsFile, defaultDownloadDir, defaultMiniRequiredScopes, deleteEnv, deleteIdentity, deleteTenantMeta, deleteWorkspaceFile, deriveAclass, deriveNamelessToolLabel, describePrincipal, detectDelegationPause, detectDirectInteractionPending, detectPasswordChangeChallenge, displayWidth, downloadDocument, endpointsIn, ensureSessionFresh, envDir, envFile, envsDir, exitCode, exitCodeFor, extractNextSteps, factsIndex, fetchConversationTimeline, fetchConversationTimelineStrict, fetchRecentConversations, fetchReconIdentity, fetchSkillCatalog, fetchSkillFile, fetchSkillMarkdown, fetchSkillReference, filterByStage, findLastAssistantSeq, flattenSkills, foldConfusables, foldedNoteFor, formatMiniVerifyReport, formatObject, formatRows, fromAxiosError, getCacheStats, getMiniStatus, getSettingDomain, getTenantMeta, globalConfigFile, guessMimeType, hcmConfigDir, httpProbe, identitiesDir, identityDir, identityMetaFile, inGap, inferEnvName, inferMiniWritableTemplateOptionsFromModel, initMiniAppProject, inspectRound, isCjk, isDelegationToolName, isReadOnly, isServerSlidingSession, listEnvs, listIdentities, listProfiles, listTenantMeta, listWorkspaceFiles, loadConversationState, loadEnv, loadGlobalConfig, loadIdentity, loadProfile, loadProtocolFacts, loadWorkspaceFileContent, loginClientCredentials, loginPairing, loginPassword, loginPat, matchSkills, migrateLegacyProfiles, modelEntries, modelKeys, needsRefresh, newRoundId, normalize, normalizeReferences, oneShot, parseConfirmToolName, parseFixture, parseInteractionRequest, parseInteractionResolved, parsePlaceholder, parseSettingAssignment, parseSkillFrontmatter, parseSkillRequirements, patchSettingDomain, probeAll, probeExtensionSource, profileDir, profileFile, pullMiniAppProject, pushMiniAppProject, readBusinessKeyFields, readMiniContext, readPullManifest, refreshToken, remove, renderRound, renderTriage, replHistoryFile, resetSettingItem, resolveActiveEnv, resolveActiveIdentity, resolveActiveProfile, resolveAllSkillsInstallOrder, resolveChironBase, resolveRefs, resolveSkillInstallOrder, roundAge, runDoctor, runImport, runMiniSmokeChecks, runRecon, runTriageRound, safeSegment, saveConversationState, saveEnv, saveGlobalConfig, saveIdentity, saveProfile, saveTenantMeta, saveWorkspaceFileContent, scan, segmentsOf, sendMessageAndStream, snakeToCamel, tenantSegment, toJson, toOrigin, toPrincipal, toTable, toYaml, truncateDisplay, unguardedKinds, update, uploadDocument, validateMiniProject };