@hcmai/sdk 0.4.2 → 0.4.3
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 +290 -8
- package/dist/index.js +801 -51
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -45,6 +45,13 @@ interface ReconProbe {
|
|
|
45
45
|
/** 爬取时声明的 capability 串——它是**爬法**属性,不是环境属性。 */
|
|
46
46
|
readonly capabilities: string;
|
|
47
47
|
}
|
|
48
|
+
/**
|
|
49
|
+
* 状态码 → 分类。
|
|
50
|
+
*
|
|
51
|
+
* 🔴 整个 2xx 段都是成功。只认 200 会害得 201/202/206 被归成 `bad-response`——
|
|
52
|
+
* 一个正常的「已创建 / 处理中 / 分段内容」响应被记成失败。
|
|
53
|
+
*/
|
|
54
|
+
declare function classifyStatus(status: number): OutcomeError;
|
|
48
55
|
/** 把既有 axios 管道(已带认证与刷新)适配成侦察层的窄端口。 */
|
|
49
56
|
declare function httpProbe(http: AxiosInstance, capabilities: string): Required<ReconProbe>;
|
|
50
57
|
|
|
@@ -4126,7 +4133,7 @@ declare const PREMISE_UNMET = "\u524D\u63D0\u672A\u6210\u7ACB";
|
|
|
4126
4133
|
* `hint` 原样转载被判方给的下一步(读计划那一档来自 `PlanReadError.hint`),
|
|
4127
4134
|
* 本模块不另写一套文案。
|
|
4128
4135
|
*/
|
|
4129
|
-
interface Premise$
|
|
4136
|
+
interface Premise$2 {
|
|
4130
4137
|
code: string;
|
|
4131
4138
|
ok: boolean;
|
|
4132
4139
|
detail: string;
|
|
@@ -4155,7 +4162,7 @@ interface DeliveryRun {
|
|
|
4155
4162
|
waivers: readonly Waiver[];
|
|
4156
4163
|
/** 🔴 `null` = 够不到答案(计划读不回来);`[]` = 真的一件没落下。 */
|
|
4157
4164
|
plannedWithoutRecord: readonly PlannedRow[] | null;
|
|
4158
|
-
premises: readonly Premise$
|
|
4165
|
+
premises: readonly Premise$2[];
|
|
4159
4166
|
notCovered: readonly string[];
|
|
4160
4167
|
label: string;
|
|
4161
4168
|
}
|
|
@@ -4259,7 +4266,7 @@ interface Reconciliation {
|
|
|
4259
4266
|
differences: readonly Finding[] | null;
|
|
4260
4267
|
undecided: readonly Finding[] | null;
|
|
4261
4268
|
models: readonly ModelReadback[] | null;
|
|
4262
|
-
premises: readonly Premise$
|
|
4269
|
+
premises: readonly Premise$2[];
|
|
4263
4270
|
notCovered: readonly string[];
|
|
4264
4271
|
/**
|
|
4265
4272
|
* 🔴 与 `notCovered` **同形**:逐档人话必须**随对象走**,渲染层拿到这个对象就自动带着,
|
|
@@ -4895,7 +4902,7 @@ interface Red {
|
|
|
4895
4902
|
readonly message: string;
|
|
4896
4903
|
}
|
|
4897
4904
|
/** 一条**前提级**台账 —— 它让 rc 变成 2,而不是让判红清单多一条。 */
|
|
4898
|
-
interface Premise {
|
|
4905
|
+
interface Premise$1 {
|
|
4899
4906
|
readonly reason: PremiseReason;
|
|
4900
4907
|
readonly message: string;
|
|
4901
4908
|
}
|
|
@@ -4927,7 +4934,7 @@ declare function checkReds(reds: readonly Red[]): Red[];
|
|
|
4927
4934
|
/** → 缺口台账原样返回;`reason` 认不出来就**抛**(理由同 `checkReds`)。 */
|
|
4928
4935
|
declare function checkGaps(gaps: readonly Gap[]): Gap[];
|
|
4929
4936
|
/** → 前提级台账原样返回;`reason` 认不出来就**抛**(理由同 `checkReds`)。 */
|
|
4930
|
-
declare function checkPremise(problems: readonly Premise[]): Premise[];
|
|
4937
|
+
declare function checkPremise(problems: readonly Premise$1[]): Premise$1[];
|
|
4931
4938
|
/**
|
|
4932
4939
|
* → 基线轮次这一档的前提级台账(`complete` ⇒ 空表)。
|
|
4933
4940
|
*
|
|
@@ -4939,7 +4946,7 @@ declare function checkPremise(problems: readonly Premise[]): Premise[];
|
|
|
4939
4946
|
* `recon`,而它**要连客户内网的 HCM**。⇒ 在**拿不到网**的机器上这条路确实可能走不通 ——
|
|
4940
4947
|
* 那是一条真实的现场约束。放行它不是选项:那等于把「判不了」当「完整」。
|
|
4941
4948
|
*/
|
|
4942
|
-
declare function baselineRoundPremise(round: Pick<RoundResult, 'state'> | null): Premise[];
|
|
4949
|
+
declare function baselineRoundPremise(round: Pick<RoundResult, 'state'> | null): Premise$1[];
|
|
4943
4950
|
/**
|
|
4944
4951
|
* 这个 token 落不落在**判红这一层声明的缺口**里(纯数字 / 单字符)。
|
|
4945
4952
|
*
|
|
@@ -5087,7 +5094,7 @@ interface ScanResult {
|
|
|
5087
5094
|
channels: Record<Channel, Red[]>;
|
|
5088
5095
|
scanned: string[];
|
|
5089
5096
|
gaps: Gap[];
|
|
5090
|
-
premise: Premise[];
|
|
5097
|
+
premise: Premise$1[];
|
|
5091
5098
|
}
|
|
5092
5099
|
interface ScanOptions {
|
|
5093
5100
|
/** `loadProtocolFacts` 的台账。**不传 ⇒ 通道四一条都判不出来**,见下。 */
|
|
@@ -5303,4 +5310,279 @@ interface TriageRoundResult {
|
|
|
5303
5310
|
*/
|
|
5304
5311
|
declare function runTriageRound(probe: ReconProbe, artifactsDir: string, entriesIn: readonly TriageEntry[]): Promise<TriageRoundResult>;
|
|
5305
5312
|
|
|
5306
|
-
export { ACLASS_EMPTY_WHY, ACLASS_KINDS, ADVISORY_CODES, AGREEING_VERDICTS, APPLY_CAVEAT, APPLY_PROBLEM_CODES, PROBLEM_CODES as ARTIFACT_PROBLEM_CODES, 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, ApplyInvariantError, ApplyPremiseError, type ApplyReport, type ApprovalConfirmPayload, type ApprovalRejectPayload, type AttachmentMeta, type AuthScheme, BLIND_SPOTS, BLOCKING_CODES, BUCKETS, type BaselineCandidate, type BootstrapReconcileResult, type BootstrapTenantRequest, type BootstrapTenantResult, CARRIER_BLIND, CARRIER_HIT, CARRIER_KEYS, CARRIER_LABELS, CARRIER_MISS, CARRIER_UNAVAILABLE, CARRIER_VERDICTS, CAUSE_INCOMPLETE_CURRENT, CHANNELS, CHANNEL_ACLASS, CHANNEL_ARTIFACT, CHANNEL_NO_PROBE, CHANNEL_REGISTERED_IS_ACLASS, CHANNEL_UNREGISTERED, CHECK_GROUPS, 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, PREMISE_CODES as DELIVERY_PREMISE_CODES, DIMENSION_LABELS, DOCTOR_ANCHORS, DRY_RUN_NOTE, DRY_RUN_TAIL, type Premise$1 as DeliveryPremise, type DeliveryRun, type DescribeOpts, type DoctorAnchor, type DoctorCheck, type DoctorReport, DriftDetected, ENDPOINT_PREFIXES, ENTRY_SCOPE, ENUM_ELEMENT_KEYS, ENUM_SHOW, EXEMPTIBLE_CODES, EXEMPTION_CODES, EXEMPTION_REQUIRED_KEYS, EXTENSION_SOURCE_HEADER, type EnvConfig, ExitCode, FACTS_REASONS, FIND_LIMIT, MAX_BYTES as FIND_MAX_BYTES, FOLDED_NOTE, FORCE_STALE_FLAG, FORCE_STALE_FLAG_TEXT, FULLWIDTH_ALNUM_RANGES, type FactsProblem, type FieldMeta, type Finding, 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, IMPORT_PLAN_FILE, INIT_EXIT_CODES, type IdentityMeta, type ImportClient, type ImportOptions, type ImportPlan, type ImportResult, type InitExitName, type InteractionAnswerPayload, type InteractionRequest, type InteractionResolved, JOURNAL_FILE, JOURNAL_STOP_KINDS, JOURNAL_STOP_UNKNOWN, Journal, JournalError, KIT_CARRY_OVER_KEY, KIT_CRAWLED_AT_FILE, KIT_MATCHED_ON, LEASE_FILE, LEDGER_MISSING_WORD, LEDGER_ONLY_FLAG, LayoutContainmentError, Lease, LeaseViolation, type ListTenantMetaOpts, type LoginOutcome, MANIFEST_PATH, MAPPING_ARTIFACT_VERSION, MAPPING_FILE, 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, MappingError, 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 ModelEntry, type ModelQueryDsl, NETWORK_GATES, NEXT_STEP, NOT_COVERED_LAYER1, NOT_COVERED_LAYER2, NOT_COVERED_SELF, OFFLINE_COMMANDS, ON_EXISTING, type OneShotOpts, type OneShotResult, type OneShotToolCall, type Outcome, type OutputFormat, PASSWORD_CHANGE_REQUIRED, PLAN_JSON_KEYS, PLAN_PROBLEM_CODES, PREMISE_CLIENT, PREMISE_IDENTITY, PREMISE_JOURNAL_HAS_ENTRIES, PREMISE_JOURNAL_ON_DISK, PREMISE_KEY_FIELDS, PREMISE_PLAN_READABLE, PREMISE_REASONS, PREMISE_REGISTRY_REASONS, PREMISE_ROWS_TO_CHECK, PREMISE_UNMET, 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 PlanProblem, PlanReadError, type PlannedRow, type Premise, type Principal, type ProfileConfig, type ProtocolFact, type QueryResult, RC_DECIDING_FIELDS, RC_DECIDING_REPORT_FIELDS, REASON_DUPLICATE_TOKEN, REASON_EMPTY, REASON_NO_ENTRIES, REASON_PROBE_ABSENT, REASON_PROBE_SHAPE, REASON_PROBE_UNVERIFIED, REASON_UNREAD, VERDICTS$1 as RECONCILE_VERDICTS, RECON_DIRNAME, RECON_SEGMENTS_BELOW_ROOT, RED_REASONS, REGISTRY_REASONS, REGISTRY_SCOPE, REQUIRED_SECTIONS, RISK_CODES, RISK_FILE, ROUND_ANCHORS, ROUND_EXIT_CODES, ROUND_STAMPED_PRODUCTS, ROUND_STATES, ROUND_SUBCOMMAND, ROUND_WARNINGS, ROUND_WARNING_FALLBACK, type ReconIdentity, ReconLayout, type ReconProbe, type ReconSummary, type Reconciliation, type Red, RefStore, type RefreshInput, type RelationMeta, type RemoveResult, type ResponseCompletedPayload, type ResponseFailedPayload, type ResponsePartDeltaPayload, type ResponseStartedPayload, type ResumeSummary, type ResumeTurn, type Risk, type RiskProblem, type RoundResult, type RoundState, type RowResult, type RowStatus, SCOPES, SDK_VERSION, SEGMENT_SEPARATOR, STATUSES, STEP_NOTHING, STEP_STOP, SYNTH_FOOTNOTE, SYNTH_MARK, type SaveMetaResult, type ScanOptions, type ScanResult, type SeedPathArgs, 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, VALUE_CELL_MISSING, VALUE_FOOTNOTE, VALUE_STATE_DISABLED, VALUE_STATE_FOOTNOTE, VALUE_STATE_UNKNOWN, VERDICTS$2 as VERDICTS, VERDICT_DIVERGED, VERDICT_INCOMPARABLE, VERDICT_SAME, VERDICT_WORDS, VERSION_PATH, ValueHints, type ValuesResult, WAIVER_REPLAY, WARNED_ROUND_STATES, WORKSPACES_PATH, WORK_DIRNAME, type WorkspaceFileContent, type WorkspaceFileItem, type WorkspaceFileListResult, WsClient, type WsClientOpts, absoluteDownloadUrl, acquireLease, adminResetPassword, applyPlan, applyRc, applyReportText, applyReportToJson, archiveDir, artifactReason, askedTheDatabase, assertSafeReferencePath, assertSafeSkillFilePath, assertSafeSkillId, baselineRoundPremise, bootstrapTenant, boundedFind, buildAnswer, buildCarrierResult, buildConfirm, buildDeliveryRun, buildInterrupt, buildMiniAppTemplateFiles, buildMiniPreviewTargets, buildMiniVerifyAgentReport, buildReconciliation, 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, deliveryRunFields, deriveAclass, deriveNamelessToolLabel, describePrincipal, describeWaiver, detectDelegationPause, detectDirectInteractionPending, detectPasswordChangeChallenge, discardedColumnLines, displayWidth, downloadDocument, endpointsIn, enforceDriftGate, ensureSessionFresh, envDir, envFile, envsDir, existingJournalStop, exitCode, exitCodeFor, extractNextSteps, factsIndex, fetchConversationTimeline, fetchConversationTimelineStrict, fetchRecentConversations, fetchReconIdentity, fetchSkillCatalog, fetchSkillFile, fetchSkillMarkdown, fetchSkillReference, filterByStage, find, findLastAssistantSeq, flattenSkills, foldConfusables, foldedNoteFor, formatMiniVerifyReport, formatObject, formatRows, fromAxiosError, getCacheStats, getMiniStatus, getSettingDomain, getTenantMeta, globalConfigFile, guessMimeType, hcmConfigDir, hitRank, httpProbe, identitiesDir, identityDir, identityKnown, identityMetaFile, inGap, inferEnvName, inferMiniWritableTemplateOptionsFromModel, initMiniAppProject, inspectRound, isCjk, isDelegationToolName, isLocalName, isReadOnly, isServerSlidingSession, isZeroNetwork, journalNote, judgeDrift, ledgerOnlySignpost, listEnvs, listIdentities, listModels, listProfiles, listTenantMeta, listWorkspaceFiles, loadConversationState, loadEnv, loadExemptions, loadGlobalConfig, loadIdentity, loadMapping, loadProfile, loadProtocolFacts, loadRecordedFingerprint, loadRows, loadWorkspaceFileContent, loginClientCredentials, loginPairing, loginPassword, loginPat, matchNote, matchSkills, matchedDimensions, migrateLegacyProfiles, modelEntries, modelKeys, needsRefresh, newRoundId, normalize, normalizeReferences, notAsked, oneShot, parseConfirmToolName, parseFixture, parseInteractionRequest, parseInteractionResolved, parsePlaceholder, parseSettingAssignment, parseSkillFrontmatter, parseSkillRequirements, patchSettingDomain, planFromArtifacts, planProblemLines, planRc, planSummaryLine, planVsBaselinePremise, probeAll, probeExtensionSource, profileDir, profileFile, pullMiniAppProject, pushMiniAppProject, readBusinessKeyFields, readImportPlan, readMiniContext, readPullManifest, refreshToken, remove, renderFind, renderRound, renderTriage, renderValues, replHistoryFile, resetSettingItem, resolveActiveEnv, resolveActiveIdentity, resolveActiveProfile, resolveAllSkillsInstallOrder, resolveBaselineDir, resolveChironBase, resolveRefs, resolveSkillInstallOrder, riskFromArtifacts, roundAge, roundWarning, runDoctor, runImport, runMiniSmokeChecks, runRecon, runTriageRound, safeSegment, saveConversationState, saveEnv, saveGlobalConfig, saveIdentity, saveProfile, saveTenantMeta, saveWorkspaceFileContent, scan, seedBaselines, seedMappingPath, seedWorkDir, segmentsOf, sendMessageAndStream, shelfPartition, snakeToCamel, tenantSegment, toJson, toOrigin, toPrincipal, toTable, toYaml, truncateDisplay, unguardedKinds, update, uploadDocument, validateMiniProject, valueState, valuesRoundCaveat, verifyAttention, verifyRc, verifyText, writeImportPlan, writeRisk };
|
|
5313
|
+
declare const DEV_MODE_PATH = "/api/tenant-extension/dev-mode";
|
|
5314
|
+
declare const TENANT_META_FILE_PATH = "/api/tenant-meta/meta";
|
|
5315
|
+
declare const META_CACHE_PATH: (model: string) => string;
|
|
5316
|
+
declare const MODEL_META_PATH: (model: string) => string;
|
|
5317
|
+
declare const LAYER_ACTIVE = "active";
|
|
5318
|
+
declare const STEPS$1: readonly ["write", "evict", "recrawl", "diff"];
|
|
5319
|
+
/**
|
|
5320
|
+
* 🔴 **改动轴是三态,不是布尔**。它与 `ok` 是两个轴:失败的一轮照样可能已经改了服务端,
|
|
5321
|
+
* 这一格就是给人判「要不要恢复」的。
|
|
5322
|
+
*
|
|
5323
|
+
* `unknown` **不许并进** `not-written`:网络类失败意味着「这一发有没有落地,
|
|
5324
|
+
* 客户端手上没有这个信息」。报成「没写」会让顾问跳过恢复。
|
|
5325
|
+
*/
|
|
5326
|
+
declare const CHANGE_WRITTEN = "written";
|
|
5327
|
+
declare const CHANGE_NOT_WRITTEN = "not-written";
|
|
5328
|
+
declare const CHANGE_UNKNOWN = "unknown";
|
|
5329
|
+
declare const CHANGE_STATES: readonly ["written", "not-written", "unknown"];
|
|
5330
|
+
type ChangeState = (typeof CHANGE_STATES)[number];
|
|
5331
|
+
declare const PREMISES: readonly ["workspace-list-unreadable", "workspace-absent", "dev-mode-unreadable", "dev-mode-off", "dev-mode-bound-elsewhere", "target-layer-read-only", "snapshot-unavailable", "baseline-fields-unreadable", "journal-unwritable"];
|
|
5332
|
+
type Premise = (typeof PREMISES)[number];
|
|
5333
|
+
/**
|
|
5334
|
+
* 每条前提**各有且仅有一句**话,且**两两不同**。
|
|
5335
|
+
*
|
|
5336
|
+
* 🔴 「基线读不出来」那句**不许甩锅给权限** —— 403 只是它的成因之一,
|
|
5337
|
+
* 说成「你没权限」会把一个顾问自己查得动的问题指向一条查不动的路。
|
|
5338
|
+
*/
|
|
5339
|
+
declare const PREMISE_WORDS: Readonly<Record<Premise, string>>;
|
|
5340
|
+
/** 每一步失败时**留下了什么**,各一句、两两不同。 */
|
|
5341
|
+
declare const RECOVERY_WORDS: Readonly<Record<string, string>>;
|
|
5342
|
+
/** 写这一步失败时,**那个改动态**意味着什么。 */
|
|
5343
|
+
declare const WRITE_RECOVERY_WORDS: Readonly<Record<ChangeState, string>>;
|
|
5344
|
+
declare const META_JOURNAL_FILE = "meta-lifecycle.jsonl";
|
|
5345
|
+
/**
|
|
5346
|
+
* `poc-cnpc` → `ws:poc-cnpc`。**层名的唯一构造点**,别处不许自己拼前缀。
|
|
5347
|
+
*/
|
|
5348
|
+
declare function workspaceLayer(workspaceKey: string): string;
|
|
5349
|
+
/**
|
|
5350
|
+
* 文件正文 → `"sha256:…"`。
|
|
5351
|
+
*
|
|
5352
|
+
* 🔴 **不复用 `journal.ts` 的载荷哈希**:那一个先把 JSON 规范化(排序键、紧凑分隔符)
|
|
5353
|
+
* 再哈希 —— 对一份 yml 正文做规范化等于换掉它,两次读同一份文件也可能算出不同的值。
|
|
5354
|
+
* 这里要的是「这一段字节的指纹」,所以原样编码后直接哈希。
|
|
5355
|
+
*/
|
|
5356
|
+
declare function contentHash(text: string): string;
|
|
5357
|
+
/**
|
|
5358
|
+
* 写侧与读侧走**同一个**构造点。
|
|
5359
|
+
*
|
|
5360
|
+
* 🔴 路径要编码:`Employee+x.yml` 里的 `+` 不编码就会在查询串里被解成空格,
|
|
5361
|
+
* 于是读到的是另一份文件(或什么都读不到),而两侧各编各的会让这件事**只在一侧发生**。
|
|
5362
|
+
*/
|
|
5363
|
+
declare function metaFileUrl(metaPath: string): string;
|
|
5364
|
+
interface StepResult {
|
|
5365
|
+
step: string;
|
|
5366
|
+
state: string;
|
|
5367
|
+
/** 这一步观测到了什么(人话,失败时含服务端原样的状态与消息)。 */
|
|
5368
|
+
detail: string;
|
|
5369
|
+
/** 失败时给的恢复动作(人话 + 可粘贴命令);没失败时是 `''`。 */
|
|
5370
|
+
recovery: string;
|
|
5371
|
+
}
|
|
5372
|
+
interface LifecycleResult {
|
|
5373
|
+
/** 四步全 `done` 且点名字段全部到位。 */
|
|
5374
|
+
ok: boolean;
|
|
5375
|
+
/** `''` 表示前提成立;否则是 `PREMISES` 里的一档(此时四步全未执行)。 */
|
|
5376
|
+
premise: string;
|
|
5377
|
+
premiseDetail: string;
|
|
5378
|
+
layer: string;
|
|
5379
|
+
/** 🔴 服务端这一轮有没有被改过。与 `ok` 是**两个轴**。 */
|
|
5380
|
+
changeState: ChangeState;
|
|
5381
|
+
steps: StepResult[];
|
|
5382
|
+
runId: string;
|
|
5383
|
+
journalPath: string;
|
|
5384
|
+
appeared: string[];
|
|
5385
|
+
alreadyPresent: string[];
|
|
5386
|
+
missing: string[];
|
|
5387
|
+
}
|
|
5388
|
+
interface MetaClient {
|
|
5389
|
+
get(path: string, params?: Record<string, unknown>): Promise<Outcome>;
|
|
5390
|
+
put(path: string, body: unknown): Promise<Outcome>;
|
|
5391
|
+
delete(path: string): Promise<Outcome>;
|
|
5392
|
+
readonly baseUrl?: string;
|
|
5393
|
+
}
|
|
5394
|
+
/**
|
|
5395
|
+
* 写那一发的 `Outcome` → 三态里的一档。
|
|
5396
|
+
*
|
|
5397
|
+
* - `error === 'ok'`(2xx)⇒ `written`
|
|
5398
|
+
* - **4xx** ⇒ `not-written`:服务端答了一个明确的拒绝(层不对 / 路径不对 / 没权限)
|
|
5399
|
+
* - 其余(`status === -1` 的网络类 · 5xx · 2xx 但载荷用不了)⇒ `unknown`
|
|
5400
|
+
*
|
|
5401
|
+
* 🔴 **本函数只读这一发的状态码,它给的 `not-written` 是「初判」不是结论**:
|
|
5402
|
+
* 产品把业务异常翻成 400 的**时点**本工具看不见 ⇒ 调用方拿到 `not-written` 之后
|
|
5403
|
+
* **必定再走一次** {@link confirmWriteNotLanded},由回读比对给出最终那一档与它的依据。
|
|
5404
|
+
*
|
|
5405
|
+
* ⚠️ 一条仍然成立的边界:`written` 只表示服务端答了 2xx ——
|
|
5406
|
+
* 「我发出去的这次请求服务端到底认没认」这件事客户端结构上答不了。
|
|
5407
|
+
*/
|
|
5408
|
+
declare function writeChangeState(out: Outcome): ChangeState;
|
|
5409
|
+
interface RunMetaChangeArgs {
|
|
5410
|
+
layer: string;
|
|
5411
|
+
workspaceKey: string;
|
|
5412
|
+
model: string;
|
|
5413
|
+
metaPath: string;
|
|
5414
|
+
content: string;
|
|
5415
|
+
expectFields: readonly string[];
|
|
5416
|
+
/**
|
|
5417
|
+
* 台账落在哪儿。
|
|
5418
|
+
*
|
|
5419
|
+
* 🔴 收的是 `WorkLayout` 而不是一个目录字符串:落盘在本仓**只有一条路**
|
|
5420
|
+
*(`fde-layout-writer-containment` 那条守卫钉着),顺带白拿路径遏制 ——
|
|
5421
|
+
* 台账文件名将来若来自外部输入,`..` 不会把它写到 work 根之外去。
|
|
5422
|
+
*/
|
|
5423
|
+
layout: WorkLayout;
|
|
5424
|
+
/** 台账行里的时间戳。由调用方给,便于守卫拿到确定值。 */
|
|
5425
|
+
at?: string;
|
|
5426
|
+
}
|
|
5427
|
+
/**
|
|
5428
|
+
* 补偿式地改一份 meta,并确认**声明的那一层**真的变了。
|
|
5429
|
+
*
|
|
5430
|
+
* `layer` 必填且必须与当前 dev-mode 绑定相等(本模块不发 `X-Workspace-Key`)。
|
|
5431
|
+
* `expectFields` 是点名要在重爬结果里看到的字段 key。
|
|
5432
|
+
*/
|
|
5433
|
+
declare function runMetaChange(client: MetaClient, args: RunMetaChangeArgs): Promise<LifecycleResult>;
|
|
5434
|
+
|
|
5435
|
+
declare const STEP_RECORD = "record-binding";
|
|
5436
|
+
declare const STEP_UNBIND = "unbind";
|
|
5437
|
+
declare const STEP_PROBE = "probe-active";
|
|
5438
|
+
declare const STEP_DIFF = "diff";
|
|
5439
|
+
declare const STEP_REBIND = "rebind";
|
|
5440
|
+
declare const STEPS: readonly ["record-binding", "unbind", "probe-active", "diff", "rebind"];
|
|
5441
|
+
/**
|
|
5442
|
+
* 绑定此刻在哪儿:**四值,不是布尔**。
|
|
5443
|
+
*
|
|
5444
|
+
* 🔴 与改动轴同一条纪律:「不知道」必须是一个能说出口的值。留一个 `restored: boolean` 的话,
|
|
5445
|
+
* `undefined` 与 `false` 在 `if (result.restored)` 下**都静默读成「没恢复」**,
|
|
5446
|
+
* 而「不知道」与「确认没恢复」的下一步动作并不相同。
|
|
5447
|
+
*/
|
|
5448
|
+
declare const BINDING_UNTOUCHED = "untouched";
|
|
5449
|
+
declare const BINDING_RESTORED = "restored";
|
|
5450
|
+
declare const BINDING_STILL_UNBOUND = "still-unbound";
|
|
5451
|
+
declare const BINDING_UNKNOWN = "unknown";
|
|
5452
|
+
declare const BINDING_STATES: readonly ["untouched", "restored", "still-unbound", "unknown"];
|
|
5453
|
+
type BindingState = (typeof BINDING_STATES)[number];
|
|
5454
|
+
/** 结局码:两两不同名 —— 下一步动作各不相同。 */
|
|
5455
|
+
declare const CODE_NO_FIELDS_NAMED = "no-fields-named";
|
|
5456
|
+
declare const CODE_BINDING_UNREADABLE = "binding-unreadable";
|
|
5457
|
+
declare const CODE_BINDING_OFF = "binding-off";
|
|
5458
|
+
declare const CODE_BINDING_ELSEWHERE = "binding-elsewhere";
|
|
5459
|
+
declare const CODE_UNBIND_REFUSED = "unbind-refused";
|
|
5460
|
+
declare const CODE_UNBIND_NOT_EFFECTIVE = "unbind-not-effective";
|
|
5461
|
+
declare const CODE_UNBIND_READBACK_UNREADABLE = "unbind-readback-unreadable";
|
|
5462
|
+
declare const CODE_PROBE_UNAUTHENTICATED = "probe-unauthenticated";
|
|
5463
|
+
declare const CODE_PROBE_UNREADABLE = "probe-unreadable";
|
|
5464
|
+
declare const CODE_NOT_ON_ACTIVE = "not-on-active";
|
|
5465
|
+
declare const CODE_FIELDS_UNREADABLE = "fields-unreadable";
|
|
5466
|
+
declare const CODE_FIELDS_MISSING = "fields-missing";
|
|
5467
|
+
/** 🔴 恢复那一族**只经 `RestoreFailed` 出场**,不会作为正常返回值里的 `code`。 */
|
|
5468
|
+
declare const CODE_RESTORE_REFUSED = "restore-refused";
|
|
5469
|
+
declare const CODE_RESTORE_NOT_EFFECTIVE = "restore-not-effective";
|
|
5470
|
+
declare const CODE_RESTORE_READBACK_UNREADABLE = "restore-readback-unreadable";
|
|
5471
|
+
declare const RESTORE_CODES: readonly ["restore-refused", "restore-not-effective", "restore-readback-unreadable"];
|
|
5472
|
+
declare const CODES: readonly ["no-fields-named", "binding-unreadable", "binding-off", "binding-elsewhere", "unbind-refused", "unbind-not-effective", "unbind-readback-unreadable", "probe-unauthenticated", "probe-unreadable", "not-on-active", "fields-unreadable", "fields-missing", "restore-refused", "restore-not-effective", "restore-readback-unreadable"];
|
|
5473
|
+
/**
|
|
5474
|
+
* 恢复失败时,**这一轮复验自己**判出来的是什么。
|
|
5475
|
+
*
|
|
5476
|
+
* 🔴 只用恢复码的话,三种完全不同的复验结局(验到了 / 层就没站对 / 字段没出现)在
|
|
5477
|
+
* `code` `detail` `recovery` 上会长得一模一样 —— 而「验到了但绑不回去」与
|
|
5478
|
+
* 「层就没站对而且绑不回去」,顾问的下一步不一样。⇒ `RestoreFailed` 单开一格说这件事。
|
|
5479
|
+
*
|
|
5480
|
+
* 🔴 **成功那一档不用空串**:`VERIFY_CODES` 是个**现算**的封闭取值域,域里每个成员都要
|
|
5481
|
+
* 查得到一句人话。空串是个**没有名字**的成员 —— 要么把它手写进那个现算数组
|
|
5482
|
+
*(那就不是现算了),要么域覆盖不全。两条都是退化。
|
|
5483
|
+
*/
|
|
5484
|
+
declare const VERIFY_OK = "verify-ok";
|
|
5485
|
+
declare const VERIFY_CRASHED = "verify-crashed";
|
|
5486
|
+
/** 🔴 **现算,不写字面量**:恢复那一族永远不会是「复验的结论」,所以从 `CODES` 里剔掉。 */
|
|
5487
|
+
declare const VERIFY_CODES: readonly [...("no-fields-named" | "binding-unreadable" | "binding-off" | "binding-elsewhere" | "unbind-refused" | "unbind-not-effective" | "unbind-readback-unreadable" | "probe-unauthenticated" | "probe-unreadable" | "not-on-active" | "fields-unreadable" | "fields-missing" | "restore-refused" | "restore-not-effective" | "restore-readback-unreadable")[], "verify-ok", "verify-crashed"];
|
|
5488
|
+
/** 每个码落在哪一步。🔴 断的是**关系**(键 == 取值域),漏登一个码 ⇒ 那一档渲染不出失败步。 */
|
|
5489
|
+
declare const CODE_STEP: Readonly<Record<string, string>>;
|
|
5490
|
+
/**
|
|
5491
|
+
* 每个码一句人话:**这一轮观测到了什么 + 下一步往哪儿走**。
|
|
5492
|
+
*
|
|
5493
|
+
* 🔴 措辞两两不同:合并成同一句,两个码就并成一件事,顾问无从分流。
|
|
5494
|
+
*/
|
|
5495
|
+
declare const CODE_WORDS: Readonly<Record<string, string>>;
|
|
5496
|
+
/** 绑定此刻在哪儿,一句人话。🔴 「不知道」与「确认没恢复」分开说,下一步动作不同。 */
|
|
5497
|
+
declare const BINDING_WORDS: Readonly<Record<BindingState, string>>;
|
|
5498
|
+
/**
|
|
5499
|
+
* 复验那一轮**自己**的结论,一句人话(其余取值直接查 {@link CODE_WORDS})。
|
|
5500
|
+
*
|
|
5501
|
+
* 🔴 **这两句只说复验自己判了什么,一个字都不许说绑定的下落**:绑定的下落归
|
|
5502
|
+
* {@link BINDING_WORDS} 与 {@link CODE_WORDS},各印各的。混着说会让一次完全干净的改动,
|
|
5503
|
+
* 在签字页上相隔几行同时印着「绑定已放回」与「没能放回去」。一格一件事。
|
|
5504
|
+
*/
|
|
5505
|
+
declare const VERIFY_WORDS: Readonly<Record<string, string>>;
|
|
5506
|
+
/** 每个码配哪几条命令。🔴 同样断**关系**:漏登一个码 ⇒ 那一档给不出可粘贴的下一步。 */
|
|
5507
|
+
declare const CODE_COMMANDS: Readonly<Record<string, readonly string[]>>;
|
|
5508
|
+
/** 解绑那一发的请求体。**唯一构造点** —— 真发出去的那一发与命令模板共用它。 */
|
|
5509
|
+
declare function unbindPayload(): {
|
|
5510
|
+
enabled: boolean;
|
|
5511
|
+
workspaceKey: null;
|
|
5512
|
+
};
|
|
5513
|
+
/**
|
|
5514
|
+
* 恢复那一发的请求体。**唯一构造点**,理由同上。
|
|
5515
|
+
*
|
|
5516
|
+
* 两侧各拼一份时,命令里写「开着」而代码里发的是别的键,顾问照着粘一遍以为恢复了 ——
|
|
5517
|
+
* 而那一行从来没有被任何东西跑过。
|
|
5518
|
+
*/
|
|
5519
|
+
declare function rebindPayload(workspaceKey: string): {
|
|
5520
|
+
enabled: boolean;
|
|
5521
|
+
workspaceKey: string;
|
|
5522
|
+
};
|
|
5523
|
+
interface Where {
|
|
5524
|
+
baseUrl: string;
|
|
5525
|
+
model: string;
|
|
5526
|
+
workspaceKey: string;
|
|
5527
|
+
}
|
|
5528
|
+
/** 这个码配的可粘贴命令(一行一条;这个码不配命令时返回空串)。 */
|
|
5529
|
+
declare function commandsFor(code: string, w: Where): string;
|
|
5530
|
+
interface VerifyResult {
|
|
5531
|
+
/** 五步全 `done`,且点名的字段在 **active 层**全部看得见。 */
|
|
5532
|
+
ok: boolean;
|
|
5533
|
+
/** `''` 表示成了;否则是 {@link CODES} 里的一个(恢复那一族只经 {@link RestoreFailed} 出场)。 */
|
|
5534
|
+
code: string;
|
|
5535
|
+
detail: string;
|
|
5536
|
+
recovery: string;
|
|
5537
|
+
/** 🔴 **站位那一步那一次响应自己**报出来的层;没问出来时是 `''`。 */
|
|
5538
|
+
layer: string;
|
|
5539
|
+
/** 🔴 与 `ok` 是**两个轴**:验没验到,和顾问有没有被留在 active 区,是两件事。 */
|
|
5540
|
+
bindingState: BindingState;
|
|
5541
|
+
steps: StepResult[];
|
|
5542
|
+
/** 🔴 站位不成立时这两格**双双为空**,不是「没有字段」——「没验到」不产出字段结论。 */
|
|
5543
|
+
present: string[];
|
|
5544
|
+
missing: string[];
|
|
5545
|
+
}
|
|
5546
|
+
/**
|
|
5547
|
+
* 🔴 「恢复」这一步没把绑定放回去 —— 顾问此刻站在 active 区,而产品对 active 区只读。
|
|
5548
|
+
*
|
|
5549
|
+
* 🔴 **`verifyCode` 与 `code` 说的是两件事,渲染时缺一不可**:`code` 说「绑定为什么没放回去」,
|
|
5550
|
+
* `verifyCode` 说「这一轮复验自己判出了什么」。只印 `code` 的话,「验到了但绑不回去」与
|
|
5551
|
+
* 「层就没站对而且绑不回去」在屏幕上一模一样,而顾问的下一步并不一样。
|
|
5552
|
+
*/
|
|
5553
|
+
declare class RestoreFailed extends Error {
|
|
5554
|
+
readonly code: string;
|
|
5555
|
+
readonly bindingState: BindingState;
|
|
5556
|
+
readonly command: string;
|
|
5557
|
+
readonly result: VerifyResult;
|
|
5558
|
+
readonly verifyCode: string;
|
|
5559
|
+
constructor(code: string, bindingState: BindingState, command: string, result: VerifyResult, verifyCode: string,
|
|
5560
|
+
/** 🔴 被本异常顶掉的那个原异常。Python 靠 `__context__`,这里必须显式接过来。 */
|
|
5561
|
+
cause?: unknown);
|
|
5562
|
+
}
|
|
5563
|
+
/**
|
|
5564
|
+
* 「恢复」这一步:把绑定放回去,**并回读核实**。→ `[这一步的结局, bindingState, code]`。
|
|
5565
|
+
*
|
|
5566
|
+
* 🔴 **它本身不抛** —— 它跑在 `finally` 里,从这里抛出去的异常会顶掉正在传播的那一个。
|
|
5567
|
+
*
|
|
5568
|
+
* 判绑定去向的依据是**回读**,不是那一发写请求的状态码:写请求答了什么与绑定此刻在哪儿
|
|
5569
|
+
* 是两件事。⇒ 回读说绑回去了就是绑回去了;回读读不出来是 `unknown`;
|
|
5570
|
+
* 回读说没绑回去时,再用那一发写请求的成败去分「被拒了」还是「答了成功却没落地」。
|
|
5571
|
+
*/
|
|
5572
|
+
declare function rebind(client: MetaClient, workspaceKey: string, w: Where): Promise<[StepResult, BindingState, string]>;
|
|
5573
|
+
interface ActiveVerifyArgs {
|
|
5574
|
+
model: string;
|
|
5575
|
+
/** **此刻绑着的**那个开发空间:记绑定要求读回来的与它相等,恢复把它原样绑回去。 */
|
|
5576
|
+
workspaceKey: string;
|
|
5577
|
+
/** 点名要在 active 层看到的字段 key。**为空 ⇒ 一发请求都不发**。 */
|
|
5578
|
+
expectFields: readonly string[];
|
|
5579
|
+
}
|
|
5580
|
+
/**
|
|
5581
|
+
* 五步复验:站到 active 层看一眼,再把绑定放回去。
|
|
5582
|
+
*
|
|
5583
|
+
* 🔴 恢复失败时抛 {@link RestoreFailed}(含原因码、复验码与可粘贴命令);
|
|
5584
|
+
* 站位与比字段抛出的异常照样往外传,恢复在 `finally` 里已经跑过了。
|
|
5585
|
+
*/
|
|
5586
|
+
declare function runActiveVerify(client: MetaClient, args: ActiveVerifyArgs): Promise<VerifyResult>;
|
|
5587
|
+
|
|
5588
|
+
export { ACLASS_EMPTY_WHY, ACLASS_KINDS, ADVISORY_CODES, AGREEING_VERDICTS, APPLY_CAVEAT, APPLY_PROBLEM_CODES, PROBLEM_CODES as ARTIFACT_PROBLEM_CODES, 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, ApplyInvariantError, ApplyPremiseError, type ApplyReport, type ApprovalConfirmPayload, type ApprovalRejectPayload, type AttachmentMeta, type AuthScheme, BINDING_RESTORED, BINDING_STATES, BINDING_STILL_UNBOUND, BINDING_UNKNOWN, BINDING_UNTOUCHED, BINDING_WORDS, BLIND_SPOTS, BLOCKING_CODES, BUCKETS, type BaselineCandidate, type BindingState, type BootstrapReconcileResult, type BootstrapTenantRequest, type BootstrapTenantResult, CARRIER_BLIND, CARRIER_HIT, CARRIER_KEYS, CARRIER_LABELS, CARRIER_MISS, CARRIER_UNAVAILABLE, CARRIER_VERDICTS, CAUSE_INCOMPLETE_CURRENT, CHANGE_NOT_WRITTEN, CHANGE_STATES, CHANGE_UNKNOWN, CHANGE_WRITTEN, CHANNELS, CHANNEL_ACLASS, CHANNEL_ARTIFACT, CHANNEL_NO_PROBE, CHANNEL_REGISTERED_IS_ACLASS, CHANNEL_UNREGISTERED, CHECK_GROUPS, CLASS_REASONS, CLASS_SCOPE, CODE_BINDING_ELSEWHERE, CODE_BINDING_OFF, CODE_BINDING_UNREADABLE, CODE_COMMANDS, CODE_FIELDS_MISSING, CODE_FIELDS_UNREADABLE, CODE_NOT_ON_ACTIVE, CODE_NO_FIELDS_NAMED, CODE_PROBE_UNAUTHENTICATED, CODE_PROBE_UNREADABLE, CODE_RESTORE_NOT_EFFECTIVE, CODE_RESTORE_READBACK_UNREADABLE, CODE_RESTORE_REFUSED, CODE_STEP, CODE_UNBIND_NOT_EFFECTIVE, CODE_UNBIND_READBACK_UNREADABLE, CODE_UNBIND_REFUSED, CODE_WORDS, type CacheClearResult, type CacheStats, type CarrierKey, type CarrierResult, type CarrierVerdict, type CarryOver, type ChangePasswordInput, type ChangeState, 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, PREMISE_CODES as DELIVERY_PREMISE_CODES, DEV_MODE_PATH, DIMENSION_LABELS, DOCTOR_ANCHORS, DRY_RUN_NOTE, DRY_RUN_TAIL, type Premise$2 as DeliveryPremise, type DeliveryRun, type DescribeOpts, type DoctorAnchor, type DoctorCheck, type DoctorReport, DriftDetected, ENDPOINT_PREFIXES, ENTRY_SCOPE, ENUM_ELEMENT_KEYS, ENUM_SHOW, EXEMPTIBLE_CODES, EXEMPTION_CODES, EXEMPTION_REQUIRED_KEYS, EXTENSION_SOURCE_HEADER, type EnvConfig, ExitCode, FACTS_REASONS, FIND_LIMIT, MAX_BYTES as FIND_MAX_BYTES, FOLDED_NOTE, FORCE_STALE_FLAG, FORCE_STALE_FLAG_TEXT, FULLWIDTH_ALNUM_RANGES, type FactsProblem, type FieldMeta, type Finding, 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, IMPORT_PLAN_FILE, INIT_EXIT_CODES, type IdentityMeta, type ImportClient, type ImportOptions, type ImportPlan, type ImportResult, type InitExitName, type InteractionAnswerPayload, type InteractionRequest, type InteractionResolved, JOURNAL_FILE, JOURNAL_STOP_KINDS, JOURNAL_STOP_UNKNOWN, Journal, JournalError, KIT_CARRY_OVER_KEY, KIT_CRAWLED_AT_FILE, KIT_MATCHED_ON, LAYER_ACTIVE, LEASE_FILE, LEDGER_MISSING_WORD, LEDGER_ONLY_FLAG, LayoutContainmentError, Lease, LeaseViolation, type LifecycleResult, type ListTenantMetaOpts, type LoginOutcome, MANIFEST_PATH, MAPPING_ARTIFACT_VERSION, MAPPING_FILE, MAX_MANIFEST_PAGES, MAX_SOURCE_PROBES, META_CACHE_PATH, META_JOURNAL_FILE, META_PATH, STEPS as META_VERIFY_STEPS, STEP_DIFF as META_VERIFY_STEP_DIFF, STEPS$1 as META_WRITE_STEPS, MINI_CONTEXT_FILE, MINI_CONTEXT_KIND, MINI_CONTEXT_VERSION, MINI_PULL_MANIFEST_FILE, MINI_REMOTE_ROOT, MINI_STATE_DIR, MODELS_PATH, MODEL_META_PATH, MappingArtifactError, MappingError, Matcher, type MessageClass, type MessageCreatePayload, type MessageStreamHandle, type MetaClient, type StepResult as MetaStepResult, 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 ModelEntry, type ModelQueryDsl, NETWORK_GATES, NEXT_STEP, NOT_COVERED_LAYER1, NOT_COVERED_LAYER2, NOT_COVERED_SELF, OFFLINE_COMMANDS, ON_EXISTING, type OneShotOpts, type OneShotResult, type OneShotToolCall, type Outcome, type OutputFormat, PASSWORD_CHANGE_REQUIRED, PLAN_JSON_KEYS, PLAN_PROBLEM_CODES, PREMISES, PREMISE_CLIENT, PREMISE_IDENTITY, PREMISE_JOURNAL_HAS_ENTRIES, PREMISE_JOURNAL_ON_DISK, PREMISE_KEY_FIELDS, PREMISE_PLAN_READABLE, PREMISE_REASONS, PREMISE_REGISTRY_REASONS, PREMISE_ROWS_TO_CHECK, PREMISE_UNMET, PREMISE_WORDS, 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 PlanProblem, PlanReadError, type PlannedRow, type Premise$1 as Premise, type Principal, type ProfileConfig, type ProtocolFact, type QueryResult, RC_DECIDING_FIELDS, RC_DECIDING_REPORT_FIELDS, REASON_DUPLICATE_TOKEN, REASON_EMPTY, REASON_NO_ENTRIES, REASON_PROBE_ABSENT, REASON_PROBE_SHAPE, REASON_PROBE_UNVERIFIED, REASON_UNREAD, VERDICTS$1 as RECONCILE_VERDICTS, RECON_DIRNAME, RECON_SEGMENTS_BELOW_ROOT, RECOVERY_WORDS, RED_REASONS, REGISTRY_REASONS, REGISTRY_SCOPE, REQUIRED_SECTIONS, RESTORE_CODES, RISK_CODES, RISK_FILE, ROUND_ANCHORS, ROUND_EXIT_CODES, ROUND_STAMPED_PRODUCTS, ROUND_STATES, ROUND_SUBCOMMAND, ROUND_WARNINGS, ROUND_WARNING_FALLBACK, type ReconIdentity, ReconLayout, type ReconProbe, type ReconSummary, type Reconciliation, type Red, RefStore, type RefreshInput, type RelationMeta, type RemoveResult, type ResponseCompletedPayload, type ResponseFailedPayload, type ResponsePartDeltaPayload, type ResponseStartedPayload, RestoreFailed, type ResumeSummary, type ResumeTurn, type Risk, type RiskProblem, type RoundResult, type RoundState, type RowResult, type RowStatus, type RunMetaChangeArgs, SCOPES, SDK_VERSION, SEGMENT_SEPARATOR, STATUSES, STEP_NOTHING, STEP_PROBE, STEP_REBIND, STEP_RECORD, STEP_STOP, STEP_UNBIND, SYNTH_FOOTNOTE, SYNTH_MARK, type SaveMetaResult, type ScanOptions, type ScanResult, type SeedPathArgs, type SendMessageOpts, type SettingItem, type SettingWrite, type StreamCancelPayload, type StreamCommand, type StreamCommandEnvelope, type StreamCommandType, type StreamEventEnvelope, type StreamEventType, TENANT_META_FILE_PATH, 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, VALUE_CELL_MISSING, VALUE_FOOTNOTE, VALUE_STATE_DISABLED, VALUE_STATE_FOOTNOTE, VALUE_STATE_UNKNOWN, VERDICTS$2 as VERDICTS, VERDICT_DIVERGED, VERDICT_INCOMPARABLE, VERDICT_SAME, VERDICT_WORDS, CODES as VERIFY_ACTIVE_CODES, VERIFY_CODES, VERIFY_CRASHED, VERIFY_OK, VERIFY_WORDS, VERSION_PATH, ValueHints, type ValuesResult, type VerifyResult, WAIVER_REPLAY, WARNED_ROUND_STATES, WORKSPACES_PATH, WORK_DIRNAME, WRITE_RECOVERY_WORDS, WorkLayout, type WorkspaceFileContent, type WorkspaceFileItem, type WorkspaceFileListResult, WsClient, type WsClientOpts, absoluteDownloadUrl, acquireLease, adminResetPassword, applyPlan, applyRc, applyReportText, applyReportToJson, archiveDir, artifactReason, askedTheDatabase, assertSafeReferencePath, assertSafeSkillFilePath, assertSafeSkillId, baselineRoundPremise, bootstrapTenant, boundedFind, buildAnswer, buildCarrierResult, buildConfirm, buildDeliveryRun, buildInterrupt, buildMiniAppTemplateFiles, buildMiniPreviewTargets, buildMiniVerifyAgentReport, buildReconciliation, buildReject, buildResumeSummary, buildSteer, camelizeKeys, changePassword, checkCoherence, checkGaps, checkPremise, checkReds, cjkRunAt, classifyMessage, classifyStatus, clearMetaCache, clearModelCache, commandsFor, compareFingerprint, computeFingerprint, computeReconSourceKey, contentHash, conversationStateFile, covered, create, createConversation, createHttpClient, createV4Reducer, createWorkspaceFile, credentialsFile, defaultDownloadDir, defaultMiniRequiredScopes, deleteEnv, deleteIdentity, deleteTenantMeta, deleteWorkspaceFile, deliveryRunFields, deriveAclass, deriveNamelessToolLabel, describePrincipal, describeWaiver, detectDelegationPause, detectDirectInteractionPending, detectPasswordChangeChallenge, discardedColumnLines, displayWidth, downloadDocument, endpointsIn, enforceDriftGate, ensureSessionFresh, envDir, envFile, envsDir, existingJournalStop, exitCode, exitCodeFor, extractNextSteps, factsIndex, fetchConversationTimeline, fetchConversationTimelineStrict, fetchRecentConversations, fetchReconIdentity, fetchSkillCatalog, fetchSkillFile, fetchSkillMarkdown, fetchSkillReference, filterByStage, find, findLastAssistantSeq, flattenSkills, foldConfusables, foldedNoteFor, formatMiniVerifyReport, formatObject, formatRows, fromAxiosError, getCacheStats, getMiniStatus, getSettingDomain, getTenantMeta, globalConfigFile, guessMimeType, hcmConfigDir, hitRank, httpProbe, identitiesDir, identityDir, identityKnown, identityMetaFile, inGap, inferEnvName, inferMiniWritableTemplateOptionsFromModel, initMiniAppProject, inspectRound, isCjk, isDelegationToolName, isLocalName, isReadOnly, isServerSlidingSession, isZeroNetwork, journalNote, judgeDrift, ledgerOnlySignpost, listEnvs, listIdentities, listModels, listProfiles, listTenantMeta, listWorkspaceFiles, loadConversationState, loadEnv, loadExemptions, loadGlobalConfig, loadIdentity, loadMapping, loadProfile, loadProtocolFacts, loadRecordedFingerprint, loadRows, loadWorkspaceFileContent, loginClientCredentials, loginPairing, loginPassword, loginPat, matchNote, matchSkills, matchedDimensions, metaFileUrl, migrateLegacyProfiles, modelEntries, modelKeys, needsRefresh, newRoundId, normalize, normalizeReferences, notAsked, oneShot, parseConfirmToolName, parseFixture, parseInteractionRequest, parseInteractionResolved, parsePlaceholder, parseSettingAssignment, parseSkillFrontmatter, parseSkillRequirements, patchSettingDomain, planFromArtifacts, planProblemLines, planRc, planSummaryLine, planVsBaselinePremise, probeAll, probeExtensionSource, profileDir, profileFile, pullMiniAppProject, pushMiniAppProject, readBusinessKeyFields, readImportPlan, readMiniContext, readPullManifest, rebind, rebindPayload, refreshToken, remove, renderFind, renderRound, renderTriage, renderValues, replHistoryFile, resetSettingItem, resolveActiveEnv, resolveActiveIdentity, resolveActiveProfile, resolveAllSkillsInstallOrder, resolveBaselineDir, resolveChironBase, resolveRefs, resolveSkillInstallOrder, riskFromArtifacts, roundAge, roundWarning, runActiveVerify, runDoctor, runImport, runMetaChange, runMiniSmokeChecks, runRecon, runTriageRound, safeSegment, saveConversationState, saveEnv, saveGlobalConfig, saveIdentity, saveProfile, saveTenantMeta, saveWorkspaceFileContent, scan, seedBaselines, seedMappingPath, seedWorkDir, segmentsOf, sendMessageAndStream, shelfPartition, snakeToCamel, tenantSegment, toJson, toOrigin, toPrincipal, toTable, toYaml, truncateDisplay, unbindPayload, unguardedKinds, update, uploadDocument, validateMiniProject, valueState, valuesRoundCaveat, verifyAttention, verifyRc, verifyText, workspaceLayer, writeChangeState, writeImportPlan, writeRisk };
|