@h-ai/ai 1.0.0-beta.17 → 1.0.0-beta.18

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/README.en.md CHANGED
@@ -204,7 +204,9 @@ The Goose 1.57.0 image exposes its native `goose serve` HTTP/WS `/acp` service t
204
204
 
205
205
  - `agents.register/get/list/update/remove/initialize/check` manage definitions. The `codex` and `deepseek-harness` adapters reference `llm.models`; use `generic` or trusted `AIInitOptions.acpAdapters` for other agents. External services own their models.
206
206
  - `workspaces.register/prepare/importFiles` manage directories or persistent volumes, multiple Git repositories and plain files. Every repository requires `mainBranch`; prepare preserves dirty directories.
207
- - `sessions.create/resume/get/list/close` manage native sessions. `newWorktree: true` creates matching branches from each committed local main branch. Prompt, stream, strict structured output, permission callbacks, MCP, configuration and cancellation use native ACP capabilities.
207
+ - Use workspace `gitEnvironmentRefs` for credentials scoped to remote Git operations and agent `environmentRefs` for agent-only values. The existing workspace `environmentRefs` remains shared.
208
+ - `sessions.create/resume/get/list/close` manage native sessions. `newWorktree: true` creates matching branches from each committed local main branch. Set `repositoryId` to start and resume at a registered repository root so the agent can discover its rules and skills. Prompt, stream, strict structured output, permission callbacks, MCP, configuration and cancellation use native ACP capabilities.
209
+ - A successful `session.info()` exposes `data.workspace` for local or same-node volume previews, including after the agent closes. Stop the preview and save changes before calling `sessions.reclaimWorktree(id)` to remove the session's clean worktrees. Branches, plain files, native history and volumes are retained.
208
210
  - `session.updateMain()` fetches and fast-forwards configured main branches. `publish({ mode: 'merge-main' | 'push-branch', message, author })` publishes managed isolated sessions only, with per-repository partial-failure reports and no force push. Both stop execution first; resume explicitly to continue.
209
211
 
210
212
  Declare verified capacity, modalities and reasoning in `llm.models[].capabilities`. Codex needs native Responses; the existing Hai adapter is not a reverse gateway. Code and state persist after close. CAS ownership is released only after owned processes stop; worktrees are not security sandboxes.
package/README.ja.md CHANGED
@@ -204,7 +204,9 @@ Goose 1.57.0 イメージは `goose serve` のネイティブ HTTP/WS `/acp` を
204
204
 
205
205
  - `agents.register/get/list/update/remove/initialize/check` で管理します。`codex`、`deepseek-harness` は `llm.models` を参照し、その他は `generic` または信頼された `AIInitOptions.acpAdapters` を使用します。外部サービスは自身でモデルを管理します。
206
206
  - `workspaces.register/prepare/importFiles` は永続ディレクトリ/volume、複数 Git、通常ファイルを管理します。各 Git の `mainBranch` は必須で、prepare は未コミットの変更を上書きしません。
207
- - `sessions.create/resume/get/list/close` と `newWorktree: true` で各ローカル主ブランチから同名ブランチを作成します。prompt/stream、厳密な構造化結果、権限、MCP、設定、キャンセルは ACP の能力を確認して実行します。
207
+ - リモート Git 専用の資格情報は workspace の `gitEnvironmentRefs`、エージェント専用の変数は agent の `environmentRefs` に設定します。既存の workspace の `environmentRefs` は引き続き共有です。
208
+ - `sessions.create/resume/get/list/close` と `newWorktree: true` で各ローカル主ブランチから同名ブランチを作成します。`repositoryId` を指定すると、登録済みリポジトリのルートで開始・再開し、エージェントがそのルールとスキルを検出できます。prompt/stream、厳密な構造化結果、権限、MCP、設定、キャンセルは ACP の能力を確認して実行します。
209
+ - `session.info()` が成功すると `data.workspace` から同じノード上のプレビューに必要なパスとボリューム情報を取得できます。プレビューを停止して変更を保存した後、`sessions.reclaimWorktree(id)` で対象のクリーンな worktree を削除できます。ブランチ、通常ファイル、履歴、ボリュームは保持されます。
208
210
  - `session.updateMain()` は指定主ブランチを fetch/ff-only 更新します。`publish({ mode: 'merge-main' | 'push-branch', message, author })` は管理対象の分離セッションだけを公開し、リポジトリ単位の部分失敗を報告します。強制 push は行いません。実行環境を停止してから操作し、続行には明示的に resume します。
209
211
 
210
212
  確認済み容量、モダリティ、推論能力は `llm.models[].capabilities` に設定します。Codex は Responses を必要とし、既存 Hai 変換は逆方向ゲートウェイではありません。close 後もコード/状態を保持し、所有プロセス停止を確認後 CAS 占有を解放します。worktree はセキュリティサンドボックスではありません。
package/README.md CHANGED
@@ -221,7 +221,9 @@ Goose 1.57.0 镜像提供原生 `goose serve` HTTP/WS `/acp` 服务,通过 cus
221
221
 
222
222
  - `agents.register/get/list/update/remove/initialize/check` 维护智能体。`codex`、`deepseek-harness` 适配器引用 `llm.models`;其他原生程序用 `generic` 或可信 `AIInitOptions.acpAdapters`。自定义服务自行管理模型。
223
223
  - `workspaces.register/prepare/importFiles` 管理目录或持久 volume、多 Git 工程和普通文件;每个 Git 明确 `mainBranch`。prepare 不覆盖脏目录。
224
- - `sessions.create/resume/get/list/close` 管理会话;`newWorktree: true` 从各本地主分支建同名 worktree。prompt/stream/strict promptStructured、权限回调、MCP、模式配置、取消和能力检查沿用 ACP。
224
+ - 私有仓库用 workspace 的 `gitEnvironmentRefs` 将凭据仅提供给远程 Git;Agent 专用变量放在 agent 的 `environmentRefs`。旧 workspace 的 `environmentRefs` 仍共用。
225
+ - `sessions.create/resume/get/list/close` 管理会话;`newWorktree: true` 从各本地主分支建同名 worktree。可用 `repositoryId` 从指定仓库根目录启动与恢复,让 Agent 按该仓库发现规则和技能。prompt/stream/strict promptStructured、权限回调、MCP、模式配置、取消和能力检查沿用 ACP。
226
+ - `session.info().data.workspace` 在成功时提供本机或同节点卷的工作树位置,可在 Agent 关闭后用于预览。先停止预览并保存改动,再用 `sessions.reclaimWorktree(id)` 定向回收干净工作树,保留分支、普通文件、原生历史和卷。
225
227
  - `session.updateMain()` 只 fetch/ff-only 更新明确主分支;`publish({ mode: 'merge-main' | 'push-branch', message, author })` 仅发布受管隔离 session,逐仓库报告部分失败,不强推。操作前停止执行环境,继续任务显式 resume。
226
228
 
227
229
  模型容量、模态和推理能力填 `llm.models[].capabilities`,未知不猜。Codex 要求原生 Responses;Hai 现有转换不是反向服务网关。关闭后保留代码/状态卷,确认拥有的进程停止才释放 CAS 占用;worktree 不是安全沙箱。
@@ -57,6 +57,7 @@ declare const ACPWorkspaceSchema: z.ZodObject<{
57
57
  remote: z.ZodDefault<z.ZodString>;
58
58
  }, z.core.$strict>>>;
59
59
  environmentRefs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
60
+ gitEnvironmentRefs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
60
61
  }, z.core.$strict>;
61
62
  /**
62
63
  * Agent 定义,仅保存凭据引用。
@@ -216,6 +217,7 @@ declare const ACPConfigSchema: z.ZodObject<{
216
217
  remote: z.ZodDefault<z.ZodString>;
217
218
  }, z.core.$strict>>>;
218
219
  environmentRefs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
220
+ gitEnvironmentRefs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
219
221
  }, z.core.$strict>>>;
220
222
  requestTimeout: z.ZodDefault<z.ZodNumber>;
221
223
  promptTimeout: z.ZodDefault<z.ZodNumber>;
@@ -4884,6 +4886,7 @@ declare const AIConfigSchema: z.ZodObject<{
4884
4886
  remote: z.ZodDefault<z.ZodString>;
4885
4887
  }, z.core.$strict>>>;
4886
4888
  environmentRefs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
4889
+ gitEnvironmentRefs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
4887
4890
  }, z.core.$strict>>>;
4888
4891
  requestTimeout: z.ZodDefault<z.ZodNumber>;
4889
4892
  promptTimeout: z.ZodDefault<z.ZodNumber>;
@@ -8562,6 +8565,7 @@ declare function createACPOperations(provider: AIStoreProvider, config: AIConfig
8562
8565
  remote: string;
8563
8566
  }[];
8564
8567
  environmentRefs: Record<string, string>;
8568
+ gitEnvironmentRefs: Record<string, string>;
8565
8569
  }>>>;
8566
8570
  /**
8567
8571
  * 读取工作区定义及来源;配置条目无数据库版本。
@@ -8593,6 +8597,7 @@ declare function createACPOperations(provider: AIStoreProvider, config: AIConfig
8593
8597
  remote: string;
8594
8598
  }[];
8595
8599
  environmentRefs: Record<string, string>;
8600
+ gitEnvironmentRefs: Record<string, string>;
8596
8601
  }>>>;
8597
8602
  /**
8598
8603
  * 列出配置与数据库合并后的工作区;不创建路径或克隆工程。
@@ -8623,6 +8628,7 @@ declare function createACPOperations(provider: AIStoreProvider, config: AIConfig
8623
8628
  remote: string;
8624
8629
  }[];
8625
8630
  environmentRefs: Record<string, string>;
8631
+ gitEnvironmentRefs: Record<string, string>;
8626
8632
  }>[]>>;
8627
8633
  /**
8628
8634
  * 整体替换无会话引用的数据库工作区,重新检查存储位置重叠;配置条目不可修改。
@@ -8656,6 +8662,7 @@ declare function createACPOperations(provider: AIStoreProvider, config: AIConfig
8656
8662
  remote: string;
8657
8663
  }[];
8658
8664
  environmentRefs: Record<string, string>;
8665
+ gitEnvironmentRefs: Record<string, string>;
8659
8666
  }>>>;
8660
8667
  /**
8661
8668
  * 创建目录并克隆缺失工程;已有内容不自动 pull 或覆盖,Git 不存在时返回明确错误。
@@ -8720,14 +8727,14 @@ declare function createACPOperations(provider: AIStoreProvider, config: AIConfig
8720
8727
  sessions: {
8721
8728
  /**
8722
8729
  * 绑定模型、工作区和 MCP,准备目录后建立原生会话;newWorktree 可选择独立工程分支。
8723
- * @param options - 智能体、工作区、模型、MCP 及可信回调;newWorktree 默认 false。
8730
+ * @param options - 智能体、工作区、可选会话仓库、模型、MCP 及可信回调;newWorktree 默认 false。
8724
8731
  * @returns 可用于 prompt/stream/publish 的会话句柄;启动失败保留失败记录。
8725
8732
  * @example
8726
8733
  * ```ts
8727
8734
  * import { ai } from '@h-ai/ai'
8728
8735
  * // 前提:ai 已成功初始化。
8729
8736
  * // 普通 API 先检查 result.success,再读取 data 或 error。
8730
- * const result = await ai.acp.sessions.create({ agentId: 'coder', workspaceId: 'project', newWorktree: true })
8737
+ * const result = await ai.acp.sessions.create({ agentId: 'coder', workspaceId: 'project', repositoryId: 'api', newWorktree: true })
8731
8738
  * ```
8732
8739
  */
8733
8740
  create: (options: ACPCreateSessionOptions) => Promise<{
@@ -9372,6 +9379,25 @@ declare function createACPOperations(provider: AIStoreProvider, config: AIConfig
9372
9379
  success: true;
9373
9380
  data: void;
9374
9381
  }>;
9382
+ /**
9383
+ * 回收停止后由框架登记的干净工作树;调用方须先停止独立预览。
9384
+ * @param id - 框架会话 ID;仅支持记录了归属的独立 Git 会话。
9385
+ * @returns 回收完成的 HaiResult;可重试,保留分支、普通文件及原生历史。
9386
+ * @example
9387
+ * ```ts
9388
+ * import { ai } from '@h-ai/ai'
9389
+ * // 前提:已关闭 Agent,已停止预览并提交或另存修改。
9390
+ * const result = await ai.acp.sessions.reclaimWorktree('task-1')
9391
+ * if (!result.success) throw new Error(result.error.message)
9392
+ * ```
9393
+ */
9394
+ reclaimWorktree: (id: string) => Promise<{
9395
+ success: false;
9396
+ error: _h_ai_core.HaiError;
9397
+ } | {
9398
+ success: true;
9399
+ data: void;
9400
+ }>;
9375
9401
  /**
9376
9402
  * 仅删除已关闭或失败的会话记录;不删除工作树及原生文件,不替代 Git worktree 清理。
9377
9403
  * @param id - 框架会话 ID。
@@ -9661,6 +9687,33 @@ interface ACPAgentLaunch {
9661
9687
  /** 状态目录下的普通配置文件,文件名不允许路径分隔符。 */
9662
9688
  files?: Record<string, string>;
9663
9689
  }
9690
+ /**
9691
+ * 已准备的工程位置,供同一节点上的可信预览或检查进程使用。
9692
+ * @example
9693
+ * ```ts
9694
+ * import type { ACPSessionWorkspace } from '@h-ai/ai'
9695
+ * function webPath(workspace: ACPSessionWorkspace) { return workspace.repositories.find(repo => repo.id === 'web')?.path }
9696
+ * ```
9697
+ */
9698
+ interface ACPSessionWorkspace {
9699
+ /** 本机真实目录,或实际使用的引擎、源码卷和容器挂载点。 */
9700
+ storage: {
9701
+ type: 'directory';
9702
+ path: string;
9703
+ } | {
9704
+ type: 'volume';
9705
+ engine: 'podman' | 'docker';
9706
+ name: string;
9707
+ mountPath: string;
9708
+ };
9709
+ /** 当前会话的聚合目录,位于上述宿主目录或容器挂载点内。 */
9710
+ path: string;
9711
+ /** 登记仓库在同一文件系统中的绝对路径。 */
9712
+ repositories: Array<{
9713
+ id: string;
9714
+ path: string;
9715
+ }>;
9716
+ }
9664
9717
  /**
9665
9718
  * 持久会话绑定;原生 ID 不等于框架 ID,工作目录只能由登记信息生成。
9666
9719
  * @example
@@ -9676,12 +9729,18 @@ interface ACPSessionInfo {
9676
9729
  agentId: string;
9677
9730
  /** 受管理工作区 ID;远程自定义服务可省略。 */
9678
9731
  workspaceId?: string;
9732
+ /** 作为会话工作目录的已登记仓库;省略时使用聚合目录。 */
9733
+ repositoryId?: string;
9679
9734
  /** 智能体实际可见的绝对工作目录。 */
9680
9735
  cwd: string;
9681
9736
  /** 是否使用独立检出目录;false 表示共享工作区主目录。 */
9682
9737
  newWorktree: boolean;
9683
9738
  /** 独立会话中所有工程共用的分支名。 */
9684
9739
  branch?: string;
9740
+ /** 受管目录交接信息;创建失败时可能只有部分工作树,旧记录或远程会话可能没有该字段。 */
9741
+ workspace?: ACPSessionWorkspace;
9742
+ /** 显式回收已开始或完成。此时 workspace 仅供历史追溯,不可恢复会话或发布工作树。 */
9743
+ worktreeStatus?: 'reclaiming' | 'reclaimed';
9685
9744
  /** 启动时选定的 Hai 模型 ID。 */
9686
9745
  modelId?: string;
9687
9746
  /** 模型非密钥配置的摘要;用于阻止不兼容的会话恢复。 */
@@ -9717,6 +9776,8 @@ interface ACPCreateSessionOptions extends ACPClientOptions {
9717
9776
  agentId: string;
9718
9777
  /** 托管模式必填的工作区 ID。 */
9719
9778
  workspaceId?: string;
9779
+ /** 以已登记仓库的根目录启动与恢复;不改变 worktree 和 Git 发布的仓库范围。 */
9780
+ repositoryId?: string;
9720
9781
  /** 自定义远程服务可见的绝对路径;托管模式由工作区计算。 */
9721
9782
  cwd?: string;
9722
9783
  /** 默认 false;true 时从每个工程当前本地主分支创建 worktree。 */
@@ -9760,4 +9821,4 @@ interface ACPGitReport {
9760
9821
  */
9761
9822
  type ACPOperations = ReturnType<typeof createACPOperations>;
9762
9823
 
9763
- export { type AudioModelEntry as $, type A2AAgentCardConfig as A, ACPRepositorySchema as B, type ACPSessionInfo as C, type ACPTransport as D, ACPWorkspaceSchema as E, type AIConfig as F, type AIConfigInput as G, AIConfigSchema as H, type AIFunctions as I, type AIInitOptions as J, type AIRelStore as K, type AIRelStoreCompareAndSwap as L, type AIRelStoreOptions as M, type AIResourceEntry as N, type AIResourceRegistry as O, type AIStoreProvider as P, type AIVectorBackend as Q, type AIVectorStore as R, type AIVersionedRecord as S, AUDIO_WS_PATH as T, type ApiType as U, ApiTypeSchema as V, type AskOptions as W, type AssistantMessage as X, type AudioConfig as Y, AudioConfigSchema as Z, AudioFormatSchema as _, type A2AApiKeySecurity as a, type FileConfig as a$, AudioModelEntrySchema as a0, type AudioOperation as a1, AudioOperationSchema as a2, AudioOperationsSchema as a3, type AudioProviderName as a4, AudioProviderSchema as a5, type AudioWsClientMessage as a6, AudioWsClientMessageSchema as a7, type AudioWsDoneMessage as a8, AudioWsDoneMessageSchema as a9, type CompressionStrategy as aA, CompressionStrategySchema as aB, type ConsolidateOptions as aC, type ConsolidateResult as aD, type ContextChatOptions as aE, type ContextChatResult as aF, type ContextManager as aG, type ContextManagerOptions as aH, type ContextOperations as aI, type ContextResetOptions as aJ, type ContextStreamEvent as aK, type ConversationTurn as aL, type ConversationTurnStatus as aM, type DefineToolOptions as aN, type DeveloperMessage as aO, type EmbeddingConfig as aP, EmbeddingConfigSchema as aQ, type EmbeddingItem as aR, type EmbeddingOperations as aS, type EmbeddingRequest as aT, type EmbeddingResponse as aU, type EntityDocumentRelation as aV, type EntityDocumentResult as aW, type EntityListOptions as aX, type EntityQueryOptions as aY, type EntityType as aZ, EntityTypeSchema as a_, type AudioWsEndMessage as aa, type AudioWsErrorMessage as ab, type AudioWsSegmentDoneMessage as ac, type AudioWsSegmentStartedMessage as ad, type AudioWsServerMessage as ae, type AudioWsSpeechMessage as af, type AudioWsStartMessage as ag, AudioWsStartMessageSchema as ah, type AudioWsTextMessage as ai, AudioWsTextMessageSchema as aj, type AudioWsTranscriptMessage as ak, type ChatCompletionChoice as al, type ChatCompletionChunk as am, type ChatCompletionDelta as an, type ChatCompletionRequest as ao, type ChatCompletionResponse as ap, type ChatHistoryOptions as aq, type ChatMessage as ar, type ChatRecord as as, type Citation as at, type CommitTurnInput as au, type CompressConfig as av, CompressConfigSchema as aw, type CompressOperations as ax, type CompressOptions as ay, type CompressResult as az, type A2AAuthenticator as b, MCPServerConfigSchema as b$, FileConfigSchema as b0, type FileOperations as b1, type FileParseMethod as b2, type FileParseOptions as b3, type FileParseRequest as b4, type FileParseResult as b5, type GenerateImageRequest as b6, type GenerateImageResult as b7, type GenerateObjectRequest as b8, type GeneratedImage as b9, type KnowledgeOperations as bA, type KnowledgeRepairOptions as bB, type KnowledgeRepairProgress as bC, type KnowledgeRepairResult as bD, type KnowledgeRetrieveItem as bE, type KnowledgeRetrieveOptions as bF, type KnowledgeRetrieveResult as bG, type KnowledgeSetupOptions as bH, type KnowledgeStore as bI, type LLMConfig as bJ, LLMConfigSchema as bK, type LLMOperations as bL, type MCPConfig as bM, MCPConfigSchema as bN, type MCPContext as bO, type MCPExternalServer as bP, MCPExternalServerSchema as bQ, type MCPOperations as bR, type MCPPrompt as bS, type MCPPromptArgument as bT, type MCPPromptContent as bU, type MCPPromptMessage as bV, type MCPResource as bW, type MCPResourceContent as bX, type MCPServerCapabilities as bY, MCPServerCapabilitiesSchema as bZ, type MCPServerConfig as b_, HaiAIError as ba, type ImageConfig as bb, ImageConfigSchema as bc, type ImageContent as bd, type ImageModelEntry as be, ImageModelEntrySchema as bf, type ImageOperations as bg, type ImageProviderName as bh, ImageProviderSchema as bi, type ImageSize as bj, type InteractionScope as bk, type KnowledgeAskOptions as bl, type KnowledgeAskResult as bm, type KnowledgeConfig as bn, KnowledgeConfigSchema as bo, type KnowledgeDocumentInfo as bp, type KnowledgeDocumentListOptions as bq, type KnowledgeDocumentMetadata as br, type KnowledgeDocumentRemoveOptions as bs, type KnowledgeDocumentRevision as bt, type KnowledgeEntity as bu, type KnowledgeIngestBatchProgress as bv, type KnowledgeIngestBatchResult as bw, type KnowledgeIngestFileInput as bx, type KnowledgeIngestInput as by, type KnowledgeIngestResult as bz, type A2ACallOptions as c, type RetrievalConfig as c$, type MCPToolDefinition as c0, type MCPToolHandler as c1, type ManagedAudioOperations as c2, type ManagedImageOperations as c3, type ManagedLLMOperations as c4, type ManagedMCPOperations as c5, type ManagedRetrievalOperations as c6, type McpServerOptions as c7, type MemoryAccessScope as c8, type MemoryAdminOperations as c9, type PersonaOperations as cA, type PersonaProfile as cB, type PersonaProfileInput as cC, type PersonaProfileUpdate as cD, type PersonaScopeOptions as cE, type RagContextItem as cF, type RagOperations as cG, type RagOptions as cH, type RagResult as cI, type RagStreamEvent as cJ, type ReasoningOperations as cK, type ReasoningOptions as cL, type ReasoningResult as cM, type ReasoningStep as cN, type ReasoningStepType as cO, type ReasoningStrategy as cP, type ReasoningStreamEvent as cQ, type ReferenceImage as cR, type RerankDocument as cS, type RerankItem as cT, type RerankOperations as cU, type RerankRequest as cV, type RerankResponse as cW, type ResolveRequiredModelEntryOptions as cX, type ResolvedAudioModel as cY, type ResolvedImageModel as cZ, type ResolvedModelConfig as c_, type MemoryClearAllOptions as ca, type MemoryClearOptions as cb, type MemoryConfig as cc, MemoryConfigSchema as cd, type MemoryCoreOperations as ce, type MemoryEntry as cf, type MemoryEntryInput as cg, type MemoryExtractOptions as ch, type MemoryInjectionOptions as ci, type MemoryListOptions as cj, type MemoryListPageOptions as ck, type MemoryOperations as cl, type MemoryRecallOptions as cm, type MemoryType as cn, MemoryTypeSchema as co, type MemoryUpdateInput as cp, type MessageContent as cq, type MessageRole as cr, ModelCapabilitiesSchema as cs, type ModelEntry as ct, ModelEntrySchema as cu, type ModelScenario as cv, ModelScenarioSchema as cw, type ObjectRef as cx, OptionalSecretSchema as cy, type OutputFormat as cz, type A2ACallResult as d, RetrievalConfigSchema as d0, type RetrievalOperations as d1, type RetrievalRequest as d2, type RetrievalResult as d3, type RetrievalResultItem as d4, type RetrievalSource as d5, type RetrievalSourceConfig as d6, RetrievalSourceSchema as d7, type SSEDecoder as d8, type SSEEvent as d9, type ToolDefinition as dA, type ToolErrorType as dB, type ToolExecutionContext as dC, type ToolExecutionOptions as dD, type ToolMessage as dE, type ToolRegistryOperations as dF, type ToolRegistryOptions as dG, type ToolsOperations as dH, type UserMessage as dI, type WhereClause as dJ, type WhereOperator as dK, type WhereValue as dL, ensureAudioCredential as dM, resolveAudioModel as dN, resolveImageModel as dO, resolveModelApi as dP, resolveModelEntry as dQ, serializePlayableAudio as dR, type ScopedMemoryBinding as da, type ScopedMemoryOperations as db, type SessionInfo as dc, type StoreFilter as dd, type StorePage as de, type StoreScope as df, type StreamOperations as dg, type StreamProcessor as dh, type StreamResult as di, type SummaryConfig as dj, SummaryConfigSchema as dk, type SummaryOperations as dl, type SummaryOptions as dm, type SummaryResult as dn, type SystemMessage as dp, type TempModelConfig as dq, type TextContent as dr, type TokenConfig as ds, TokenConfigSchema as dt, type TokenOperations as du, type TokenUsage as dv, type Tool as dw, type ToolAuthorizationRequest as dx, type ToolAuthorizer as dy, type ToolCall as dz, type A2ACallerIdentity as e, type A2AConfig as f, A2AConfigSchema as g, type A2AContextInfo as h, type A2AHandleResult as i, type A2AMessageRecord as j, type A2AOperations as k, type A2ASecurityConfig as l, A2ASkillConfigSchema as m, type A2ATaskFilter as n, type ACPAgentAdapter as o, type ACPAgentAdapterInput as p, type ACPAgentLaunch as q, ACPAgentSchema as r, type ACPClientOptions as s, type ACPConfig as t, type ACPConfigInput as u, ACPConfigSchema as v, type ACPCreateSessionOptions as w, type ACPGitReport as x, type ACPOperations as y, ACPPublishSchema as z };
9824
+ export { type AudioModelEntry as $, type A2AAgentCardConfig as A, ACPRepositorySchema as B, type ACPSessionInfo as C, type ACPTransport as D, ACPWorkspaceSchema as E, type AIConfig as F, type AIConfigInput as G, AIConfigSchema as H, type AIFunctions as I, type AIInitOptions as J, type AIRelStore as K, type AIRelStoreCompareAndSwap as L, type AIRelStoreOptions as M, type AIResourceEntry as N, type AIResourceRegistry as O, type AIStoreProvider as P, type AIVectorBackend as Q, type AIVectorStore as R, type AIVersionedRecord as S, AUDIO_WS_PATH as T, type ApiType as U, ApiTypeSchema as V, type AskOptions as W, type AssistantMessage as X, type AudioConfig as Y, AudioConfigSchema as Z, AudioFormatSchema as _, type A2AApiKeySecurity as a, type FileConfig as a$, AudioModelEntrySchema as a0, type AudioOperation as a1, AudioOperationSchema as a2, AudioOperationsSchema as a3, type AudioProviderName as a4, AudioProviderSchema as a5, type AudioWsClientMessage as a6, AudioWsClientMessageSchema as a7, type AudioWsDoneMessage as a8, AudioWsDoneMessageSchema as a9, type CompressionStrategy as aA, CompressionStrategySchema as aB, type ConsolidateOptions as aC, type ConsolidateResult as aD, type ContextChatOptions as aE, type ContextChatResult as aF, type ContextManager as aG, type ContextManagerOptions as aH, type ContextOperations as aI, type ContextResetOptions as aJ, type ContextStreamEvent as aK, type ConversationTurn as aL, type ConversationTurnStatus as aM, type DefineToolOptions as aN, type DeveloperMessage as aO, type EmbeddingConfig as aP, EmbeddingConfigSchema as aQ, type EmbeddingItem as aR, type EmbeddingOperations as aS, type EmbeddingRequest as aT, type EmbeddingResponse as aU, type EntityDocumentRelation as aV, type EntityDocumentResult as aW, type EntityListOptions as aX, type EntityQueryOptions as aY, type EntityType as aZ, EntityTypeSchema as a_, type AudioWsEndMessage as aa, type AudioWsErrorMessage as ab, type AudioWsSegmentDoneMessage as ac, type AudioWsSegmentStartedMessage as ad, type AudioWsServerMessage as ae, type AudioWsSpeechMessage as af, type AudioWsStartMessage as ag, AudioWsStartMessageSchema as ah, type AudioWsTextMessage as ai, AudioWsTextMessageSchema as aj, type AudioWsTranscriptMessage as ak, type ChatCompletionChoice as al, type ChatCompletionChunk as am, type ChatCompletionDelta as an, type ChatCompletionRequest as ao, type ChatCompletionResponse as ap, type ChatHistoryOptions as aq, type ChatMessage as ar, type ChatRecord as as, type Citation as at, type CommitTurnInput as au, type CompressConfig as av, CompressConfigSchema as aw, type CompressOperations as ax, type CompressOptions as ay, type CompressResult as az, type A2AAuthenticator as b, MCPServerConfigSchema as b$, FileConfigSchema as b0, type FileOperations as b1, type FileParseMethod as b2, type FileParseOptions as b3, type FileParseRequest as b4, type FileParseResult as b5, type GenerateImageRequest as b6, type GenerateImageResult as b7, type GenerateObjectRequest as b8, type GeneratedImage as b9, type KnowledgeOperations as bA, type KnowledgeRepairOptions as bB, type KnowledgeRepairProgress as bC, type KnowledgeRepairResult as bD, type KnowledgeRetrieveItem as bE, type KnowledgeRetrieveOptions as bF, type KnowledgeRetrieveResult as bG, type KnowledgeSetupOptions as bH, type KnowledgeStore as bI, type LLMConfig as bJ, LLMConfigSchema as bK, type LLMOperations as bL, type MCPConfig as bM, MCPConfigSchema as bN, type MCPContext as bO, type MCPExternalServer as bP, MCPExternalServerSchema as bQ, type MCPOperations as bR, type MCPPrompt as bS, type MCPPromptArgument as bT, type MCPPromptContent as bU, type MCPPromptMessage as bV, type MCPResource as bW, type MCPResourceContent as bX, type MCPServerCapabilities as bY, MCPServerCapabilitiesSchema as bZ, type MCPServerConfig as b_, HaiAIError as ba, type ImageConfig as bb, ImageConfigSchema as bc, type ImageContent as bd, type ImageModelEntry as be, ImageModelEntrySchema as bf, type ImageOperations as bg, type ImageProviderName as bh, ImageProviderSchema as bi, type ImageSize as bj, type InteractionScope as bk, type KnowledgeAskOptions as bl, type KnowledgeAskResult as bm, type KnowledgeConfig as bn, KnowledgeConfigSchema as bo, type KnowledgeDocumentInfo as bp, type KnowledgeDocumentListOptions as bq, type KnowledgeDocumentMetadata as br, type KnowledgeDocumentRemoveOptions as bs, type KnowledgeDocumentRevision as bt, type KnowledgeEntity as bu, type KnowledgeIngestBatchProgress as bv, type KnowledgeIngestBatchResult as bw, type KnowledgeIngestFileInput as bx, type KnowledgeIngestInput as by, type KnowledgeIngestResult as bz, type A2ACallOptions as c, type RetrievalConfig as c$, type MCPToolDefinition as c0, type MCPToolHandler as c1, type ManagedAudioOperations as c2, type ManagedImageOperations as c3, type ManagedLLMOperations as c4, type ManagedMCPOperations as c5, type ManagedRetrievalOperations as c6, type McpServerOptions as c7, type MemoryAccessScope as c8, type MemoryAdminOperations as c9, type PersonaOperations as cA, type PersonaProfile as cB, type PersonaProfileInput as cC, type PersonaProfileUpdate as cD, type PersonaScopeOptions as cE, type RagContextItem as cF, type RagOperations as cG, type RagOptions as cH, type RagResult as cI, type RagStreamEvent as cJ, type ReasoningOperations as cK, type ReasoningOptions as cL, type ReasoningResult as cM, type ReasoningStep as cN, type ReasoningStepType as cO, type ReasoningStrategy as cP, type ReasoningStreamEvent as cQ, type ReferenceImage as cR, type RerankDocument as cS, type RerankItem as cT, type RerankOperations as cU, type RerankRequest as cV, type RerankResponse as cW, type ResolveRequiredModelEntryOptions as cX, type ResolvedAudioModel as cY, type ResolvedImageModel as cZ, type ResolvedModelConfig as c_, type MemoryClearAllOptions as ca, type MemoryClearOptions as cb, type MemoryConfig as cc, MemoryConfigSchema as cd, type MemoryCoreOperations as ce, type MemoryEntry as cf, type MemoryEntryInput as cg, type MemoryExtractOptions as ch, type MemoryInjectionOptions as ci, type MemoryListOptions as cj, type MemoryListPageOptions as ck, type MemoryOperations as cl, type MemoryRecallOptions as cm, type MemoryType as cn, MemoryTypeSchema as co, type MemoryUpdateInput as cp, type MessageContent as cq, type MessageRole as cr, ModelCapabilitiesSchema as cs, type ModelEntry as ct, ModelEntrySchema as cu, type ModelScenario as cv, ModelScenarioSchema as cw, type ObjectRef as cx, OptionalSecretSchema as cy, type OutputFormat as cz, type A2ACallResult as d, RetrievalConfigSchema as d0, type RetrievalOperations as d1, type RetrievalRequest as d2, type RetrievalResult as d3, type RetrievalResultItem as d4, type RetrievalSource as d5, type RetrievalSourceConfig as d6, RetrievalSourceSchema as d7, type SSEDecoder as d8, type SSEEvent as d9, type ToolDefinition as dA, type ToolErrorType as dB, type ToolExecutionContext as dC, type ToolExecutionOptions as dD, type ToolMessage as dE, type ToolRegistryOperations as dF, type ToolRegistryOptions as dG, type ToolsOperations as dH, type UserMessage as dI, type WhereClause as dJ, type WhereOperator as dK, type WhereValue as dL, ensureAudioCredential as dM, resolveAudioModel as dN, resolveImageModel as dO, resolveModelApi as dP, resolveModelEntry as dQ, serializePlayableAudio as dR, type ACPSessionWorkspace as dS, type ScopedMemoryBinding as da, type ScopedMemoryOperations as db, type SessionInfo as dc, type StoreFilter as dd, type StorePage as de, type StoreScope as df, type StreamOperations as dg, type StreamProcessor as dh, type StreamResult as di, type SummaryConfig as dj, SummaryConfigSchema as dk, type SummaryOperations as dl, type SummaryOptions as dm, type SummaryResult as dn, type SystemMessage as dp, type TempModelConfig as dq, type TextContent as dr, type TokenConfig as ds, TokenConfigSchema as dt, type TokenOperations as du, type TokenUsage as dv, type Tool as dw, type ToolAuthorizationRequest as dx, type ToolAuthorizer as dy, type ToolCall as dz, type A2ACallerIdentity as e, type A2AConfig as f, A2AConfigSchema as g, type A2AContextInfo as h, type A2AHandleResult as i, type A2AMessageRecord as j, type A2AOperations as k, type A2ASecurityConfig as l, A2ASkillConfigSchema as m, type A2ATaskFilter as n, type ACPAgentAdapter as o, type ACPAgentAdapterInput as p, type ACPAgentLaunch as q, ACPAgentSchema as r, type ACPClientOptions as s, type ACPConfig as t, type ACPConfigInput as u, ACPConfigSchema as v, type ACPCreateSessionOptions as w, type ACPGitReport as x, type ACPOperations as y, ACPPublishSchema as z };
package/dist/browser.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { A as A2AAgentCardConfig, a as A2AApiKeySecurity, b as A2AAuthenticator, c as A2ACallOptions, d as A2ACallResult, e as A2ACallerIdentity, f as A2AConfig, g as A2AConfigSchema, h as A2AContextInfo, i as A2AHandleResult, j as A2AMessageRecord, k as A2AOperations, l as A2ASecurityConfig, m as A2ASkillConfigSchema, n as A2ATaskFilter, o as ACPAgentAdapter, p as ACPAgentAdapterInput, q as ACPAgentLaunch, r as ACPAgentSchema, s as ACPClientOptions, t as ACPConfig, u as ACPConfigInput, v as ACPConfigSchema, w as ACPCreateSessionOptions, x as ACPGitReport, y as ACPOperations, z as ACPPublishSchema, B as ACPRepositorySchema, C as ACPSessionInfo, D as ACPTransport, E as ACPWorkspaceSchema, F as AIConfig, G as AIConfigInput, H as AIConfigSchema, I as AIFunctions, J as AIInitOptions, K as AIRelStore, L as AIRelStoreCompareAndSwap, M as AIRelStoreOptions, N as AIResourceEntry, O as AIResourceRegistry, P as AIStoreProvider, Q as AIVectorBackend, R as AIVectorStore, S as AIVersionedRecord, T as AUDIO_WS_PATH, U as ApiType, V as ApiTypeSchema, W as AskOptions, X as AssistantMessage, Y as AudioConfig, Z as AudioConfigSchema, _ as AudioFormatSchema, $ as AudioModelEntry, a0 as AudioModelEntrySchema, a1 as AudioOperation, a2 as AudioOperationSchema, a3 as AudioOperationsSchema, a4 as AudioProviderName, a5 as AudioProviderSchema, a6 as AudioWsClientMessage, a7 as AudioWsClientMessageSchema, a8 as AudioWsDoneMessage, a9 as AudioWsDoneMessageSchema, aa as AudioWsEndMessage, ab as AudioWsErrorMessage, ac as AudioWsSegmentDoneMessage, ad as AudioWsSegmentStartedMessage, ae as AudioWsServerMessage, af as AudioWsSpeechMessage, ag as AudioWsStartMessage, ah as AudioWsStartMessageSchema, ai as AudioWsTextMessage, aj as AudioWsTextMessageSchema, ak as AudioWsTranscriptMessage, al as ChatCompletionChoice, am as ChatCompletionChunk, an as ChatCompletionDelta, ao as ChatCompletionRequest, ap as ChatCompletionResponse, aq as ChatHistoryOptions, ar as ChatMessage, as as ChatRecord, at as Citation, au as CommitTurnInput, av as CompressConfig, aw as CompressConfigSchema, ax as CompressOperations, ay as CompressOptions, az as CompressResult, aA as CompressionStrategy, aB as CompressionStrategySchema, aC as ConsolidateOptions, aD as ConsolidateResult, aE as ContextChatOptions, aF as ContextChatResult, aG as ContextManager, aH as ContextManagerOptions, aI as ContextOperations, aJ as ContextResetOptions, aK as ContextStreamEvent, aL as ConversationTurn, aM as ConversationTurnStatus, aN as DefineToolOptions, aO as DeveloperMessage, aP as EmbeddingConfig, aQ as EmbeddingConfigSchema, aR as EmbeddingItem, aS as EmbeddingOperations, aT as EmbeddingRequest, aU as EmbeddingResponse, aV as EntityDocumentRelation, aW as EntityDocumentResult, aX as EntityListOptions, aY as EntityQueryOptions, aZ as EntityType, a_ as EntityTypeSchema, a$ as FileConfig, b0 as FileConfigSchema, b1 as FileOperations, b2 as FileParseMethod, b3 as FileParseOptions, b4 as FileParseRequest, b5 as FileParseResult, b6 as GenerateImageRequest, b7 as GenerateImageResult, b8 as GenerateObjectRequest, b9 as GeneratedImage, ba as HaiAIError, bb as ImageConfig, bc as ImageConfigSchema, bd as ImageContent, be as ImageModelEntry, bf as ImageModelEntrySchema, bg as ImageOperations, bh as ImageProviderName, bi as ImageProviderSchema, bj as ImageSize, bk as InteractionScope, bl as KnowledgeAskOptions, bm as KnowledgeAskResult, bn as KnowledgeConfig, bo as KnowledgeConfigSchema, bp as KnowledgeDocumentInfo, bq as KnowledgeDocumentListOptions, br as KnowledgeDocumentMetadata, bs as KnowledgeDocumentRemoveOptions, bt as KnowledgeDocumentRevision, bu as KnowledgeEntity, bv as KnowledgeIngestBatchProgress, bw as KnowledgeIngestBatchResult, bx as KnowledgeIngestFileInput, by as KnowledgeIngestInput, bz as KnowledgeIngestResult, bA as KnowledgeOperations, bB as KnowledgeRepairOptions, bC as KnowledgeRepairProgress, bD as KnowledgeRepairResult, bE as KnowledgeRetrieveItem, bF as KnowledgeRetrieveOptions, bG as KnowledgeRetrieveResult, bH as KnowledgeSetupOptions, bI as KnowledgeStore, bJ as LLMConfig, bK as LLMConfigSchema, bL as LLMOperations, bM as MCPConfig, bN as MCPConfigSchema, bO as MCPContext, bP as MCPExternalServer, bQ as MCPExternalServerSchema, bR as MCPOperations, bS as MCPPrompt, bT as MCPPromptArgument, bU as MCPPromptContent, bV as MCPPromptMessage, bW as MCPResource, bX as MCPResourceContent, bY as MCPServerCapabilities, bZ as MCPServerCapabilitiesSchema, b_ as MCPServerConfig, b$ as MCPServerConfigSchema, c0 as MCPToolDefinition, c1 as MCPToolHandler, c2 as ManagedAudioOperations, c3 as ManagedImageOperations, c4 as ManagedLLMOperations, c5 as ManagedMCPOperations, c6 as ManagedRetrievalOperations, c7 as McpServerOptions, c8 as MemoryAccessScope, c9 as MemoryAdminOperations, ca as MemoryClearAllOptions, cb as MemoryClearOptions, cc as MemoryConfig, cd as MemoryConfigSchema, ce as MemoryCoreOperations, cf as MemoryEntry, cg as MemoryEntryInput, ch as MemoryExtractOptions, ci as MemoryInjectionOptions, cj as MemoryListOptions, ck as MemoryListPageOptions, cl as MemoryOperations, cm as MemoryRecallOptions, cn as MemoryType, co as MemoryTypeSchema, cp as MemoryUpdateInput, cq as MessageContent, cr as MessageRole, cs as ModelCapabilitiesSchema, ct as ModelEntry, cu as ModelEntrySchema, cv as ModelScenario, cw as ModelScenarioSchema, cx as ObjectRef, cy as OptionalSecretSchema, cz as OutputFormat, cA as PersonaOperations, cB as PersonaProfile, cC as PersonaProfileInput, cD as PersonaProfileUpdate, cE as PersonaScopeOptions, cF as RagContextItem, cG as RagOperations, cH as RagOptions, cI as RagResult, cJ as RagStreamEvent, cK as ReasoningOperations, cL as ReasoningOptions, cM as ReasoningResult, cN as ReasoningStep, cO as ReasoningStepType, cP as ReasoningStrategy, cQ as ReasoningStreamEvent, cR as ReferenceImage, cS as RerankDocument, cT as RerankItem, cU as RerankOperations, cV as RerankRequest, cW as RerankResponse, cX as ResolveRequiredModelEntryOptions, cY as ResolvedAudioModel, cZ as ResolvedImageModel, c_ as ResolvedModelConfig, c$ as RetrievalConfig, d0 as RetrievalConfigSchema, d1 as RetrievalOperations, d2 as RetrievalRequest, d3 as RetrievalResult, d4 as RetrievalResultItem, d5 as RetrievalSource, d6 as RetrievalSourceConfig, d7 as RetrievalSourceSchema, d8 as SSEDecoder, d9 as SSEEvent, da as ScopedMemoryBinding, db as ScopedMemoryOperations, dc as SessionInfo, dd as StoreFilter, de as StorePage, df as StoreScope, dg as StreamOperations, dh as StreamProcessor, di as StreamResult, dj as SummaryConfig, dk as SummaryConfigSchema, dl as SummaryOperations, dm as SummaryOptions, dn as SummaryResult, dp as SystemMessage, dq as TempModelConfig, dr as TextContent, ds as TokenConfig, dt as TokenConfigSchema, du as TokenOperations, dv as TokenUsage, dw as Tool, dx as ToolAuthorizationRequest, dy as ToolAuthorizer, dz as ToolCall, dA as ToolDefinition, dB as ToolErrorType, dC as ToolExecutionContext, dD as ToolExecutionOptions, dE as ToolMessage, dF as ToolRegistryOperations, dG as ToolRegistryOptions, dH as ToolsOperations, dI as UserMessage, dJ as WhereClause, dK as WhereOperator, dL as WhereValue, dM as ensureAudioCredential, dN as resolveAudioModel, dO as resolveImageModel, dP as resolveModelApi, dQ as resolveModelEntry, dR as serializePlayableAudio } from './ai-acp-types-DQ8jO9Ie.js';
1
+ export { A as A2AAgentCardConfig, a as A2AApiKeySecurity, b as A2AAuthenticator, c as A2ACallOptions, d as A2ACallResult, e as A2ACallerIdentity, f as A2AConfig, g as A2AConfigSchema, h as A2AContextInfo, i as A2AHandleResult, j as A2AMessageRecord, k as A2AOperations, l as A2ASecurityConfig, m as A2ASkillConfigSchema, n as A2ATaskFilter, o as ACPAgentAdapter, p as ACPAgentAdapterInput, q as ACPAgentLaunch, r as ACPAgentSchema, s as ACPClientOptions, t as ACPConfig, u as ACPConfigInput, v as ACPConfigSchema, w as ACPCreateSessionOptions, x as ACPGitReport, y as ACPOperations, z as ACPPublishSchema, B as ACPRepositorySchema, C as ACPSessionInfo, D as ACPTransport, E as ACPWorkspaceSchema, F as AIConfig, G as AIConfigInput, H as AIConfigSchema, I as AIFunctions, J as AIInitOptions, K as AIRelStore, L as AIRelStoreCompareAndSwap, M as AIRelStoreOptions, N as AIResourceEntry, O as AIResourceRegistry, P as AIStoreProvider, Q as AIVectorBackend, R as AIVectorStore, S as AIVersionedRecord, T as AUDIO_WS_PATH, U as ApiType, V as ApiTypeSchema, W as AskOptions, X as AssistantMessage, Y as AudioConfig, Z as AudioConfigSchema, _ as AudioFormatSchema, $ as AudioModelEntry, a0 as AudioModelEntrySchema, a1 as AudioOperation, a2 as AudioOperationSchema, a3 as AudioOperationsSchema, a4 as AudioProviderName, a5 as AudioProviderSchema, a6 as AudioWsClientMessage, a7 as AudioWsClientMessageSchema, a8 as AudioWsDoneMessage, a9 as AudioWsDoneMessageSchema, aa as AudioWsEndMessage, ab as AudioWsErrorMessage, ac as AudioWsSegmentDoneMessage, ad as AudioWsSegmentStartedMessage, ae as AudioWsServerMessage, af as AudioWsSpeechMessage, ag as AudioWsStartMessage, ah as AudioWsStartMessageSchema, ai as AudioWsTextMessage, aj as AudioWsTextMessageSchema, ak as AudioWsTranscriptMessage, al as ChatCompletionChoice, am as ChatCompletionChunk, an as ChatCompletionDelta, ao as ChatCompletionRequest, ap as ChatCompletionResponse, aq as ChatHistoryOptions, ar as ChatMessage, as as ChatRecord, at as Citation, au as CommitTurnInput, av as CompressConfig, aw as CompressConfigSchema, ax as CompressOperations, ay as CompressOptions, az as CompressResult, aA as CompressionStrategy, aB as CompressionStrategySchema, aC as ConsolidateOptions, aD as ConsolidateResult, aE as ContextChatOptions, aF as ContextChatResult, aG as ContextManager, aH as ContextManagerOptions, aI as ContextOperations, aJ as ContextResetOptions, aK as ContextStreamEvent, aL as ConversationTurn, aM as ConversationTurnStatus, aN as DefineToolOptions, aO as DeveloperMessage, aP as EmbeddingConfig, aQ as EmbeddingConfigSchema, aR as EmbeddingItem, aS as EmbeddingOperations, aT as EmbeddingRequest, aU as EmbeddingResponse, aV as EntityDocumentRelation, aW as EntityDocumentResult, aX as EntityListOptions, aY as EntityQueryOptions, aZ as EntityType, a_ as EntityTypeSchema, a$ as FileConfig, b0 as FileConfigSchema, b1 as FileOperations, b2 as FileParseMethod, b3 as FileParseOptions, b4 as FileParseRequest, b5 as FileParseResult, b6 as GenerateImageRequest, b7 as GenerateImageResult, b8 as GenerateObjectRequest, b9 as GeneratedImage, ba as HaiAIError, bb as ImageConfig, bc as ImageConfigSchema, bd as ImageContent, be as ImageModelEntry, bf as ImageModelEntrySchema, bg as ImageOperations, bh as ImageProviderName, bi as ImageProviderSchema, bj as ImageSize, bk as InteractionScope, bl as KnowledgeAskOptions, bm as KnowledgeAskResult, bn as KnowledgeConfig, bo as KnowledgeConfigSchema, bp as KnowledgeDocumentInfo, bq as KnowledgeDocumentListOptions, br as KnowledgeDocumentMetadata, bs as KnowledgeDocumentRemoveOptions, bt as KnowledgeDocumentRevision, bu as KnowledgeEntity, bv as KnowledgeIngestBatchProgress, bw as KnowledgeIngestBatchResult, bx as KnowledgeIngestFileInput, by as KnowledgeIngestInput, bz as KnowledgeIngestResult, bA as KnowledgeOperations, bB as KnowledgeRepairOptions, bC as KnowledgeRepairProgress, bD as KnowledgeRepairResult, bE as KnowledgeRetrieveItem, bF as KnowledgeRetrieveOptions, bG as KnowledgeRetrieveResult, bH as KnowledgeSetupOptions, bI as KnowledgeStore, bJ as LLMConfig, bK as LLMConfigSchema, bL as LLMOperations, bM as MCPConfig, bN as MCPConfigSchema, bO as MCPContext, bP as MCPExternalServer, bQ as MCPExternalServerSchema, bR as MCPOperations, bS as MCPPrompt, bT as MCPPromptArgument, bU as MCPPromptContent, bV as MCPPromptMessage, bW as MCPResource, bX as MCPResourceContent, bY as MCPServerCapabilities, bZ as MCPServerCapabilitiesSchema, b_ as MCPServerConfig, b$ as MCPServerConfigSchema, c0 as MCPToolDefinition, c1 as MCPToolHandler, c2 as ManagedAudioOperations, c3 as ManagedImageOperations, c4 as ManagedLLMOperations, c5 as ManagedMCPOperations, c6 as ManagedRetrievalOperations, c7 as McpServerOptions, c8 as MemoryAccessScope, c9 as MemoryAdminOperations, ca as MemoryClearAllOptions, cb as MemoryClearOptions, cc as MemoryConfig, cd as MemoryConfigSchema, ce as MemoryCoreOperations, cf as MemoryEntry, cg as MemoryEntryInput, ch as MemoryExtractOptions, ci as MemoryInjectionOptions, cj as MemoryListOptions, ck as MemoryListPageOptions, cl as MemoryOperations, cm as MemoryRecallOptions, cn as MemoryType, co as MemoryTypeSchema, cp as MemoryUpdateInput, cq as MessageContent, cr as MessageRole, cs as ModelCapabilitiesSchema, ct as ModelEntry, cu as ModelEntrySchema, cv as ModelScenario, cw as ModelScenarioSchema, cx as ObjectRef, cy as OptionalSecretSchema, cz as OutputFormat, cA as PersonaOperations, cB as PersonaProfile, cC as PersonaProfileInput, cD as PersonaProfileUpdate, cE as PersonaScopeOptions, cF as RagContextItem, cG as RagOperations, cH as RagOptions, cI as RagResult, cJ as RagStreamEvent, cK as ReasoningOperations, cL as ReasoningOptions, cM as ReasoningResult, cN as ReasoningStep, cO as ReasoningStepType, cP as ReasoningStrategy, cQ as ReasoningStreamEvent, cR as ReferenceImage, cS as RerankDocument, cT as RerankItem, cU as RerankOperations, cV as RerankRequest, cW as RerankResponse, cX as ResolveRequiredModelEntryOptions, cY as ResolvedAudioModel, cZ as ResolvedImageModel, c_ as ResolvedModelConfig, c$ as RetrievalConfig, d0 as RetrievalConfigSchema, d1 as RetrievalOperations, d2 as RetrievalRequest, d3 as RetrievalResult, d4 as RetrievalResultItem, d5 as RetrievalSource, d6 as RetrievalSourceConfig, d7 as RetrievalSourceSchema, d8 as SSEDecoder, d9 as SSEEvent, da as ScopedMemoryBinding, db as ScopedMemoryOperations, dc as SessionInfo, dd as StoreFilter, de as StorePage, df as StoreScope, dg as StreamOperations, dh as StreamProcessor, di as StreamResult, dj as SummaryConfig, dk as SummaryConfigSchema, dl as SummaryOperations, dm as SummaryOptions, dn as SummaryResult, dp as SystemMessage, dq as TempModelConfig, dr as TextContent, ds as TokenConfig, dt as TokenConfigSchema, du as TokenOperations, dv as TokenUsage, dw as Tool, dx as ToolAuthorizationRequest, dy as ToolAuthorizer, dz as ToolCall, dA as ToolDefinition, dB as ToolErrorType, dC as ToolExecutionContext, dD as ToolExecutionOptions, dE as ToolMessage, dF as ToolRegistryOperations, dG as ToolRegistryOptions, dH as ToolsOperations, dI as UserMessage, dJ as WhereClause, dK as WhereOperator, dL as WhereValue, dM as ensureAudioCredential, dN as resolveAudioModel, dO as resolveImageModel, dP as resolveModelApi, dQ as resolveModelEntry, dR as serializePlayableAudio } from './ai-acp-types-Df_JG_-t.js';
2
2
  export { A as AudioCapabilitiesRequest, a as AudioContent, b as AudioFormat, c as AudioInputStream, d as AudioModelCapabilities, e as AudioOperations, f as AudioReference, P as PlayableAudio, S as SynthesisEvent, g as SynthesisOptions, h as SynthesisRequest, i as SynthesisResult, j as SynthesisStreamRequest, k as SynthesisTextSegment, T as TranscriptionEvent, l as TranscriptionOptions, m as TranscriptionRequest, n as TranscriptionResult, o as TranscriptionSegment, p as TranscriptionStreamRequest, q as TranscriptionTimestampGranularity, r as TranscriptionWord } from './ai-audio-types-4R5yUAVl.js';
3
3
  export { AudioClientConfig, AudioClientOperations, AudioTicketRequest, createAudioClient } from './client/index.js';
4
4
  export { AgentCapabilities, AgentCard, AgentProvider, AgentSkill, Artifact, DataPart, FilePart, FileWithBytes, FileWithUri, Message, MessageSendParams, Part, PushNotificationConfig, Task, TaskArtifactUpdateEvent, TaskIdParams, TaskQueryParams, TaskState, TaskStatus, TaskStatusUpdateEvent, TextPart } from '@a2a-js/sdk';
package/dist/browser.js CHANGED
@@ -1,4 +1,4 @@
1
- export { A2AConfigSchema, A2ASkillConfigSchema, ACPAgentSchema, ACPConfigSchema, ACPPublishSchema, ACPRepositorySchema, ACPWorkspaceSchema, AIConfigSchema, AUDIO_WS_PATH, ApiTypeSchema, AudioConfigSchema, AudioFormatSchema, AudioModelEntrySchema, AudioOperationSchema, AudioOperationsSchema, AudioProviderSchema, AudioWsClientMessageSchema, AudioWsDoneMessageSchema, AudioWsStartMessageSchema, AudioWsTextMessageSchema, CompressConfigSchema, CompressionStrategySchema, EmbeddingConfigSchema, EntityTypeSchema, FileConfigSchema, ImageConfigSchema, ImageModelEntrySchema, ImageProviderSchema, KnowledgeConfigSchema, LLMConfigSchema, MCPConfigSchema, MCPExternalServerSchema, MCPServerCapabilitiesSchema, MCPServerConfigSchema, MemoryConfigSchema, MemoryTypeSchema, ModelCapabilitiesSchema, ModelEntrySchema, ModelScenarioSchema, OptionalSecretSchema, RetrievalConfigSchema, RetrievalSourceSchema, SummaryConfigSchema, TokenConfigSchema, ensureAudioCredential, resolveAudioModel, resolveImageModel, resolveModelApi, resolveModelEntry, serializePlayableAudio } from './chunk-HEYVFQC6.js';
1
+ export { A2AConfigSchema, A2ASkillConfigSchema, ACPAgentSchema, ACPConfigSchema, ACPPublishSchema, ACPRepositorySchema, ACPWorkspaceSchema, AIConfigSchema, AUDIO_WS_PATH, ApiTypeSchema, AudioConfigSchema, AudioFormatSchema, AudioModelEntrySchema, AudioOperationSchema, AudioOperationsSchema, AudioProviderSchema, AudioWsClientMessageSchema, AudioWsDoneMessageSchema, AudioWsStartMessageSchema, AudioWsTextMessageSchema, CompressConfigSchema, CompressionStrategySchema, EmbeddingConfigSchema, EntityTypeSchema, FileConfigSchema, ImageConfigSchema, ImageModelEntrySchema, ImageProviderSchema, KnowledgeConfigSchema, LLMConfigSchema, MCPConfigSchema, MCPExternalServerSchema, MCPServerCapabilitiesSchema, MCPServerConfigSchema, MemoryConfigSchema, MemoryTypeSchema, ModelCapabilitiesSchema, ModelEntrySchema, ModelScenarioSchema, OptionalSecretSchema, RetrievalConfigSchema, RetrievalSourceSchema, SummaryConfigSchema, TokenConfigSchema, ensureAudioCredential, resolveAudioModel, resolveImageModel, resolveModelApi, resolveModelEntry, serializePlayableAudio } from './chunk-SEEJ4D65.js';
2
2
  export { createAudioClient } from './chunk-O6P4P5PC.js';
3
3
  export { HaiAIError } from './chunk-M77C3VAP.js';
4
4
  //# sourceMappingURL=browser.js.map
@@ -44,8 +44,10 @@ var ACPWorkspaceSchema = z.strictObject({
44
44
  ]),
45
45
  /** 多个 Git 工程;默认空数组,不使用 Git 时仅创建文件目录。 */
46
46
  repositories: z.array(ACPRepositorySchema).default([]),
47
- /** 目标环境变量名到宿主环境变量名的映射;保存引用而非明文凭据。 */
48
- environmentRefs: environment
47
+ /** 工作区历史共用变量映射;Agent 专用凭据应配置在 Agent 定义中。 */
48
+ environmentRefs: environment,
49
+ /** 仅供受管 Git 远程操作使用的环境变量引用,值不传给 Agent 或本地提交。 */
50
+ gitEnvironmentRefs: environment
49
51
  }).refine(
50
52
  (value) => new Set(value.repositories.map((repo) => repo.id)).size === value.repositories.length
51
53
  );
@@ -1228,5 +1230,5 @@ var AudioWsDoneMessageSchema = AudioWsDoneMessageSchema$1;
1228
1230
  var AudioWsClientMessageSchema = AudioWsClientMessageSchema$1;
1229
1231
 
1230
1232
  export { A2AConfigSchema, A2ASkillConfigSchema, ACPAgentSchema, ACPConfigSchema, ACPPublishSchema, ACPRepositorySchema, ACPWorkspaceSchema, AIConfigSchema, AUDIO_WS_PATH, ApiTypeSchema, AudioConfigSchema, AudioFormatSchema, AudioModelEntrySchema, AudioOperationSchema, AudioOperationsSchema, AudioProviderSchema, AudioWsClientMessageSchema, AudioWsDoneMessageSchema, AudioWsStartMessageSchema, AudioWsTextMessageSchema, CompressConfigSchema, CompressionStrategySchema, EmbeddingConfigSchema, EntityTypeSchema, FileConfigSchema, ImageConfigSchema, ImageModelEntrySchema, ImageProviderSchema, KnowledgeConfigSchema, LLMConfigSchema, MCPConfigSchema, MCPExternalServerSchema, MCPServerCapabilitiesSchema, MCPServerConfigSchema, MemoryConfigSchema, MemoryTypeSchema, ModelCapabilitiesSchema, ModelEntrySchema, ModelScenarioSchema, OptionalSecretSchema, RetrievalConfigSchema, RetrievalSourceSchema, SummaryConfigSchema, TokenConfigSchema, aiM, branchNameSchema, ensureAudioCredential, resolveAudioModel, resolveImageModel, resolveModelApi, resolveModelEntry, serializePlayableAudio, sessionIdentitySchema };
1231
- //# sourceMappingURL=chunk-HEYVFQC6.js.map
1232
- //# sourceMappingURL=chunk-HEYVFQC6.js.map
1233
+ //# sourceMappingURL=chunk-SEEJ4D65.js.map
1234
+ //# sourceMappingURL=chunk-SEEJ4D65.js.map