@kevlns/v-cli 0.3.1 → 0.4.1

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/sdk.d.ts CHANGED
@@ -212,13 +212,13 @@ interface ProjectInspection {
212
212
  declare function inspectProject(project: ProjectRoot, providers: ProviderSet): ProjectInspection;
213
213
 
214
214
  /**
215
- * 异步执行句柄(阶段 C):可序列化身份凭证 + 落盘证据回读校验。
215
+ * 异步执行句柄:可序列化身份凭证 + 落盘证据回读校验。
216
216
  *
217
- * 设计要点(对应计划 §6 与 survey §4):
217
+ * 设计约束见 docs/execution-identities.md:
218
218
  * - 句柄由内核在异步触发结果中产出(Provider 只提供 backendTaskId 种子);
219
219
  * 调用方提交的句柄**不可信**——查询/取消前必须经 verifyExecutionHandle 全量校验。
220
220
  * - 校验依据是**落盘证据的一致性核对**(启动 operation 的 result.json),不是密码学签名:
221
- * integrity 摘要仅防手滑改动/截断(survey §9 决策 5)。
221
+ * integrity 摘要仅防手滑改动/截断。
222
222
  * - 禁止"证据缺失/校验失败时回退最近一次任务";不能恢复的句柄给出明确错误。
223
223
  * - 每次查询/取消是独立 operationId(runCapability 天然保证);校验只**读**启动目录,绝不复用覆盖。
224
224
  */
@@ -1003,6 +1003,14 @@ declare function buildDoctorArgv(options: {
1003
1003
  }): string[];
1004
1004
  declare function createUnityProvider(deps: UnityProviderDeps): CapabilityProvider;
1005
1005
 
1006
+ interface ArtProviderDeps {
1007
+ executor: ProcessExecutor;
1008
+ discoverBackend?: () => OfficialPluginInfo;
1009
+ env?: Record<string, string | undefined>;
1010
+ }
1011
+ declare const artBindingContract: ProviderBindingContract;
1012
+ declare function createArtProvider(deps: ArtProviderDeps): CapabilityProvider;
1013
+
1006
1014
  /**
1007
1015
  * Figma provider(阶段 E):把已安装的 @kevlns/figma-to-uprefab 的离线
1008
1016
  * staging contract 校验与只读诊断包装成结构化 capability。
@@ -1053,9 +1061,11 @@ interface DefaultRegistryOptions {
1053
1061
  /** 覆盖 Unity 后端发现(测试/夹具注入;providers 提供时忽略) */
1054
1062
  discoverBackend?: UnityProviderDeps["discoverBackend"];
1055
1063
  /** 覆盖 Figma 后端发现(测试/夹具注入;providers 提供时忽略) */
1064
+ artDiscoverBackend?: ArtProviderDeps['discoverBackend'];
1056
1065
  figmaDiscoverBackend?: FigmaProviderDeps["discoverBackend"];
1057
1066
  /** 覆盖 Unity 后端环境变量(providers 提供时忽略) */
1058
1067
  unityEnv?: Record<string, string | undefined>;
1068
+ artEnv?: ArtProviderDeps['env'];
1059
1069
  }
1060
1070
  /** 构建注册表;注册失败是编码错误,直接抛出 */
1061
1071
  declare function createDefaultRegistry(options?: DefaultRegistryOptions): CapabilityRegistry;
@@ -1167,6 +1177,6 @@ declare function redactArgv(argv: string[]): RedactionResult<string[]>;
1167
1177
  declare const REDACTION_PLACEHOLDER = "***redacted***";
1168
1178
 
1169
1179
  /** 版本常量:与 package.json 保持一致(有测试保证) */
1170
- declare const VERSION = "0.3.1";
1180
+ declare const VERSION = "0.4.1";
1171
1181
 
1172
- export { type AcceptanceStatus, type Artifact, type CapabilityDescriptor, CapabilityError, type CapabilityExecutionContext, type CapabilityImplementation, type CapabilityProvider, type CapabilityRegistration, CapabilityRegistrationError, CapabilityRegistry, type CapabilityRunRequest, type CapabilityRunResult, type CapabilityRuntimeDeps, type CapabilitySummary, type DefaultRegistryOptions, EXECUTION_HANDLE_VERSION, type ErrorCategory, type Evidence, type ExecutionHandle, type ExecutionHandleSeed, type ExecutionLifecycle, type ExecutionStatus, FIGMA_PROVIDER_ID, FIGMA_PROVIDER_VERSION, type FigmaBinding, type FigmaProviderDeps, type HandleVerification, type ImplementationOutcome, type InitProjectConfigResult, JSON_TYPES, type JsonSchema, type JsonSchemaArray, type JsonSchemaBoolean, type JsonSchemaNull, type JsonSchemaNumber, type JsonSchemaObject, type JsonSchemaString, type JsonSchemaType, type LoadProjectConfigResult, type LogRef, NodeProcessExecutor, OPERATIONS_RELATIVE, OperationExistsError, type OperationLogger, OperationStore, type OperationSummary, PROJECT_CLI_CONFIG_RELATIVE, PathSafetyError, type PreconditionChecker, type PreconditionDeclaration, type PreconditionOutcome, type ProcessExecutor, type ProcessInvocation, type ProcessOutcome, type ProjectBindingInfo, type ProjectCliConfig, type ProjectInspection, type ProjectRoot, type ProviderBindingContract, type ProviderBindingResolution, type ProviderBindingResolutionError, type ProviderBindingResolutionOk, type ProviderBindingResolveInput, type ProviderDefaultBinding, type ProviderInfo, type ProviderPathField, type ProviderSet, type ProviderState, type ProviderStatus, REDACTION_PLACEHOLDER, type ResolvedProviderBinding, type ResourceAuthorizationDecision, type ResourceAuthorizationRequest, type ResourceAuthorizer, type ResourceKind, type ResourceMode, type ResourceRequirement, type RetrySemantics, type SideEffectDeclaration, type SideEffectKind, type SideEffectRecord, type StructuredError, UNITY_PROVIDER_ID, UNITY_PROVIDER_VERSION, type UnityBinding, type UnityProviderDeps, type UnityTestMode, VANT_PROJECT_CONFIG_RELATIVE, VERSION, buildDoctorArgv, buildExecArgv, buildExecutionHandle, canonicalize, createDefaultRegistry, createFigmaProvider, createUnityProvider, executionFromProcess, exitCodeForResult, figmaBindingContract, formatResultJson, generateOperationId, initProjectConfig, inspectProject, loadProjectConfig, redactArgv, redactSecrets, renderProjectConfig, resolveBindings, resolveInsideProject, resolveProjectRoot, runCapability, splitSafeRelative, structuredError, toProviderSet, toStructuredError, unityBindingContract, validateCapability, validateOperationId, validateProjectCliConfig, validateProvider, validateSchemaDefinition, validateValue, verifyExecutionHandle };
1182
+ export { type AcceptanceStatus, type ArtProviderDeps, type Artifact, type CapabilityDescriptor, CapabilityError, type CapabilityExecutionContext, type CapabilityImplementation, type CapabilityProvider, type CapabilityRegistration, CapabilityRegistrationError, CapabilityRegistry, type CapabilityRunRequest, type CapabilityRunResult, type CapabilityRuntimeDeps, type CapabilitySummary, type DefaultRegistryOptions, EXECUTION_HANDLE_VERSION, type ErrorCategory, type Evidence, type ExecutionHandle, type ExecutionHandleSeed, type ExecutionLifecycle, type ExecutionStatus, FIGMA_PROVIDER_ID, FIGMA_PROVIDER_VERSION, type FigmaBinding, type FigmaProviderDeps, type HandleVerification, type ImplementationOutcome, type InitProjectConfigResult, JSON_TYPES, type JsonSchema, type JsonSchemaArray, type JsonSchemaBoolean, type JsonSchemaNull, type JsonSchemaNumber, type JsonSchemaObject, type JsonSchemaString, type JsonSchemaType, type LoadProjectConfigResult, type LogRef, NodeProcessExecutor, OPERATIONS_RELATIVE, OperationExistsError, type OperationLogger, OperationStore, type OperationSummary, PROJECT_CLI_CONFIG_RELATIVE, PathSafetyError, type PreconditionChecker, type PreconditionDeclaration, type PreconditionOutcome, type ProcessExecutor, type ProcessInvocation, type ProcessOutcome, type ProjectBindingInfo, type ProjectCliConfig, type ProjectInspection, type ProjectRoot, type ProviderBindingContract, type ProviderBindingResolution, type ProviderBindingResolutionError, type ProviderBindingResolutionOk, type ProviderBindingResolveInput, type ProviderDefaultBinding, type ProviderInfo, type ProviderPathField, type ProviderSet, type ProviderState, type ProviderStatus, REDACTION_PLACEHOLDER, type ResolvedProviderBinding, type ResourceAuthorizationDecision, type ResourceAuthorizationRequest, type ResourceAuthorizer, type ResourceKind, type ResourceMode, type ResourceRequirement, type RetrySemantics, type SideEffectDeclaration, type SideEffectKind, type SideEffectRecord, type StructuredError, UNITY_PROVIDER_ID, UNITY_PROVIDER_VERSION, type UnityBinding, type UnityProviderDeps, type UnityTestMode, VANT_PROJECT_CONFIG_RELATIVE, VERSION, artBindingContract, buildDoctorArgv, buildExecArgv, buildExecutionHandle, canonicalize, createArtProvider, createDefaultRegistry, createFigmaProvider, createUnityProvider, executionFromProcess, exitCodeForResult, figmaBindingContract, formatResultJson, generateOperationId, initProjectConfig, inspectProject, loadProjectConfig, redactArgv, redactSecrets, renderProjectConfig, resolveBindings, resolveInsideProject, resolveProjectRoot, runCapability, splitSafeRelative, structuredError, toProviderSet, toStructuredError, unityBindingContract, validateCapability, validateOperationId, validateProjectCliConfig, validateProvider, validateSchemaDefinition, validateValue, verifyExecutionHandle };