@h-ai/ai 1.0.0-beta.17 → 1.0.0-beta.19
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 +100 -28
- package/README.ja.md +101 -29
- package/README.md +106 -30
- package/dist/{ai-acp-types-DQ8jO9Ie.d.ts → ai-acp-types-BNeA1j0P.d.ts} +136 -31
- package/dist/browser.d.ts +2 -2
- package/dist/browser.js +2 -2
- package/dist/{chunk-HEYVFQC6.js → chunk-55A3S4AH.js} +147 -47
- package/dist/chunk-55A3S4AH.js.map +1 -0
- package/dist/{chunk-O6P4P5PC.js → chunk-WSH2246H.js} +50 -11
- package/dist/chunk-WSH2246H.js.map +1 -0
- package/dist/client/index.d.ts +3 -2
- package/dist/client/index.js +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +3628 -1504
- package/dist/index.js.map +1 -1
- package/models/agents/build.mjs +10 -2
- package/package.json +19 -30
- package/dist/chunk-HEYVFQC6.js.map +0 -1
- package/dist/chunk-O6P4P5PC.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _h_ai_core from '@h-ai/core';
|
|
2
2
|
import { HaiResult, HaiError } from '@h-ai/core';
|
|
3
|
-
import {
|
|
3
|
+
import { TaskState } from '@a2a-js/sdk';
|
|
4
4
|
import { AgentExecutor } from '@a2a-js/sdk/server';
|
|
5
5
|
import * as zod from 'zod';
|
|
6
6
|
import { z, ZodType } from 'zod';
|
|
@@ -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>;
|
|
@@ -822,7 +824,7 @@ interface KnowledgeStore {
|
|
|
822
824
|
/**
|
|
823
825
|
* 向量库后端连接信息
|
|
824
826
|
*
|
|
825
|
-
* 由 Provider
|
|
827
|
+
* 由 Provider 暴露底层向量库的原始连接,供需要复用同一后端的格式适配器(如 Mem0 数据格式存储)
|
|
826
828
|
* 直连。字段按后端类型填充;包含凭证,仅供同进程内集成使用。
|
|
827
829
|
*
|
|
828
830
|
* @example
|
|
@@ -883,7 +885,7 @@ interface AIStoreProvider {
|
|
|
883
885
|
/**
|
|
884
886
|
* 暴露底层向量库后端连接(可选)
|
|
885
887
|
*
|
|
886
|
-
*
|
|
888
|
+
* 供需要直连同一向量库的格式适配器(如 Mem0 数据格式存储)复用后端。未初始化或不支持时返回
|
|
887
889
|
* `undefined`。返回值含凭证,仅供同进程内集成使用,禁止写入日志。
|
|
888
890
|
*/
|
|
889
891
|
getVectorBackend?: () => AIVectorBackend | undefined;
|
|
@@ -2044,12 +2046,12 @@ interface RetrievalOperations {
|
|
|
2044
2046
|
* ```
|
|
2045
2047
|
*/
|
|
2046
2048
|
declare const EntityTypeSchema: z.ZodEnum<{
|
|
2047
|
-
event: "event";
|
|
2048
2049
|
person: "person";
|
|
2049
2050
|
project: "project";
|
|
2050
2051
|
concept: "concept";
|
|
2051
2052
|
organization: "organization";
|
|
2052
2053
|
location: "location";
|
|
2054
|
+
event: "event";
|
|
2053
2055
|
other: "other";
|
|
2054
2056
|
}>;
|
|
2055
2057
|
/**
|
|
@@ -2753,9 +2755,9 @@ interface KnowledgeOperations {
|
|
|
2753
2755
|
* ```
|
|
2754
2756
|
*/
|
|
2755
2757
|
declare const MemoryTypeSchema: z.ZodEnum<{
|
|
2758
|
+
event: "event";
|
|
2756
2759
|
fact: "fact";
|
|
2757
2760
|
preference: "preference";
|
|
2758
|
-
event: "event";
|
|
2759
2761
|
entity: "entity";
|
|
2760
2762
|
instruction: "instruction";
|
|
2761
2763
|
}>;
|
|
@@ -3307,6 +3309,7 @@ interface MemoryOperations extends MemoryCoreOperations {
|
|
|
3307
3309
|
*
|
|
3308
3310
|
* @param binding - 作用域绑定(objectId + 可选 scope)
|
|
3309
3311
|
* @returns 所有操作自动携带该作用域的记忆实例
|
|
3312
|
+
* @throws objectId 缺失、为空或只有空白时抛 TypeError;工厂不创建未绑定的实例。
|
|
3310
3313
|
*/
|
|
3311
3314
|
scoped: (binding: ScopedMemoryBinding) => ScopedMemoryOperations;
|
|
3312
3315
|
/** 管理接口(危险的全局操作,需显式确认) */
|
|
@@ -3366,14 +3369,14 @@ declare const OptionalSecretSchema: z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodS
|
|
|
3366
3369
|
declare const ModelScenarioSchema: z.ZodEnum<{
|
|
3367
3370
|
default: "default";
|
|
3368
3371
|
chat: "chat";
|
|
3369
|
-
summary: "summary";
|
|
3370
|
-
plan: "plan";
|
|
3371
3372
|
reasoning: "reasoning";
|
|
3372
|
-
|
|
3373
|
+
plan: "plan";
|
|
3373
3374
|
execute: "execute";
|
|
3374
3375
|
extraction: "extraction";
|
|
3376
|
+
summary: "summary";
|
|
3375
3377
|
embedding: "embedding";
|
|
3376
3378
|
rerank: "rerank";
|
|
3379
|
+
ocr: "ocr";
|
|
3377
3380
|
fast: "fast";
|
|
3378
3381
|
}>;
|
|
3379
3382
|
/**
|
|
@@ -3440,14 +3443,14 @@ declare const ModelCapabilitiesSchema: z.ZodObject<{
|
|
|
3440
3443
|
maxOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
3441
3444
|
inputModalities: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
3442
3445
|
image: "image";
|
|
3443
|
-
audio: "audio";
|
|
3444
3446
|
text: "text";
|
|
3447
|
+
audio: "audio";
|
|
3445
3448
|
video: "video";
|
|
3446
3449
|
}>>>;
|
|
3447
3450
|
outputModalities: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
3448
3451
|
image: "image";
|
|
3449
|
-
audio: "audio";
|
|
3450
3452
|
text: "text";
|
|
3453
|
+
audio: "audio";
|
|
3451
3454
|
video: "video";
|
|
3452
3455
|
}>>>;
|
|
3453
3456
|
toolCalling: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3481,14 +3484,14 @@ declare const ModelEntrySchema: z.ZodObject<{
|
|
|
3481
3484
|
maxOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
3482
3485
|
inputModalities: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
3483
3486
|
image: "image";
|
|
3484
|
-
audio: "audio";
|
|
3485
3487
|
text: "text";
|
|
3488
|
+
audio: "audio";
|
|
3486
3489
|
video: "video";
|
|
3487
3490
|
}>>>;
|
|
3488
3491
|
outputModalities: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
3489
3492
|
image: "image";
|
|
3490
|
-
audio: "audio";
|
|
3491
3493
|
text: "text";
|
|
3494
|
+
audio: "audio";
|
|
3492
3495
|
video: "video";
|
|
3493
3496
|
}>>>;
|
|
3494
3497
|
toolCalling: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3564,14 +3567,14 @@ declare const LLMConfigSchema: z.ZodObject<{
|
|
|
3564
3567
|
maxOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
3565
3568
|
inputModalities: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
3566
3569
|
image: "image";
|
|
3567
|
-
audio: "audio";
|
|
3568
3570
|
text: "text";
|
|
3571
|
+
audio: "audio";
|
|
3569
3572
|
video: "video";
|
|
3570
3573
|
}>>>;
|
|
3571
3574
|
outputModalities: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
3572
3575
|
image: "image";
|
|
3573
|
-
audio: "audio";
|
|
3574
3576
|
text: "text";
|
|
3577
|
+
audio: "audio";
|
|
3575
3578
|
video: "video";
|
|
3576
3579
|
}>>>;
|
|
3577
3580
|
toolCalling: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3595,14 +3598,14 @@ declare const LLMConfigSchema: z.ZodObject<{
|
|
|
3595
3598
|
scenarios: z.ZodOptional<z.ZodObject<{
|
|
3596
3599
|
default: z.ZodOptional<z.ZodString>;
|
|
3597
3600
|
chat: z.ZodOptional<z.ZodString>;
|
|
3598
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
3599
|
-
plan: z.ZodOptional<z.ZodString>;
|
|
3600
3601
|
reasoning: z.ZodOptional<z.ZodString>;
|
|
3601
|
-
|
|
3602
|
+
plan: z.ZodOptional<z.ZodString>;
|
|
3602
3603
|
execute: z.ZodOptional<z.ZodString>;
|
|
3603
3604
|
extraction: z.ZodOptional<z.ZodString>;
|
|
3605
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
3604
3606
|
embedding: z.ZodOptional<z.ZodString>;
|
|
3605
3607
|
rerank: z.ZodOptional<z.ZodString>;
|
|
3608
|
+
ocr: z.ZodOptional<z.ZodString>;
|
|
3606
3609
|
fast: z.ZodOptional<z.ZodString>;
|
|
3607
3610
|
}, z.core.$strip>>;
|
|
3608
3611
|
}, z.core.$strict>;
|
|
@@ -4884,6 +4887,7 @@ declare const AIConfigSchema: z.ZodObject<{
|
|
|
4884
4887
|
remote: z.ZodDefault<z.ZodString>;
|
|
4885
4888
|
}, z.core.$strict>>>;
|
|
4886
4889
|
environmentRefs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
4890
|
+
gitEnvironmentRefs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
4887
4891
|
}, z.core.$strict>>>;
|
|
4888
4892
|
requestTimeout: z.ZodDefault<z.ZodNumber>;
|
|
4889
4893
|
promptTimeout: z.ZodDefault<z.ZodNumber>;
|
|
@@ -4911,14 +4915,14 @@ declare const AIConfigSchema: z.ZodObject<{
|
|
|
4911
4915
|
maxOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
4912
4916
|
inputModalities: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
4913
4917
|
image: "image";
|
|
4914
|
-
audio: "audio";
|
|
4915
4918
|
text: "text";
|
|
4919
|
+
audio: "audio";
|
|
4916
4920
|
video: "video";
|
|
4917
4921
|
}>>>;
|
|
4918
4922
|
outputModalities: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
4919
4923
|
image: "image";
|
|
4920
|
-
audio: "audio";
|
|
4921
4924
|
text: "text";
|
|
4925
|
+
audio: "audio";
|
|
4922
4926
|
video: "video";
|
|
4923
4927
|
}>>>;
|
|
4924
4928
|
toolCalling: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -4942,14 +4946,14 @@ declare const AIConfigSchema: z.ZodObject<{
|
|
|
4942
4946
|
scenarios: z.ZodOptional<z.ZodObject<{
|
|
4943
4947
|
default: z.ZodOptional<z.ZodString>;
|
|
4944
4948
|
chat: z.ZodOptional<z.ZodString>;
|
|
4945
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
4946
|
-
plan: z.ZodOptional<z.ZodString>;
|
|
4947
4949
|
reasoning: z.ZodOptional<z.ZodString>;
|
|
4948
|
-
|
|
4950
|
+
plan: z.ZodOptional<z.ZodString>;
|
|
4949
4951
|
execute: z.ZodOptional<z.ZodString>;
|
|
4950
4952
|
extraction: z.ZodOptional<z.ZodString>;
|
|
4953
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
4951
4954
|
embedding: z.ZodOptional<z.ZodString>;
|
|
4952
4955
|
rerank: z.ZodOptional<z.ZodString>;
|
|
4956
|
+
ocr: z.ZodOptional<z.ZodString>;
|
|
4953
4957
|
fast: z.ZodOptional<z.ZodString>;
|
|
4954
4958
|
}, z.core.$strip>>;
|
|
4955
4959
|
}, z.core.$strict>>;
|
|
@@ -5171,6 +5175,48 @@ type AIConfigInput = z.input<typeof AIConfigSchema>;
|
|
|
5171
5175
|
* @module ai-a2a-types
|
|
5172
5176
|
*/
|
|
5173
5177
|
|
|
5178
|
+
/**
|
|
5179
|
+
* 可直接用于 HTTP 发现响应的 A2A 1.0 ProtoJSON 文档;不暴露 SDK 内部 oneof 结构。
|
|
5180
|
+
* @example
|
|
5181
|
+
* ```ts
|
|
5182
|
+
* import { ai } from '@h-ai/ai'
|
|
5183
|
+
* const card = ai.a2a.getAgentCard()
|
|
5184
|
+
* if (card.success) Response.json(card.data)
|
|
5185
|
+
* ```
|
|
5186
|
+
*/
|
|
5187
|
+
interface A2AAgentCardDocument {
|
|
5188
|
+
name: string;
|
|
5189
|
+
description: string;
|
|
5190
|
+
version: string;
|
|
5191
|
+
supportedInterfaces: Array<{
|
|
5192
|
+
url: string;
|
|
5193
|
+
protocolBinding: string;
|
|
5194
|
+
protocolVersion: string;
|
|
5195
|
+
}>;
|
|
5196
|
+
defaultInputModes: string[];
|
|
5197
|
+
defaultOutputModes: string[];
|
|
5198
|
+
capabilities: {
|
|
5199
|
+
streaming: boolean;
|
|
5200
|
+
pushNotifications: boolean;
|
|
5201
|
+
};
|
|
5202
|
+
skills: Array<{
|
|
5203
|
+
id: string;
|
|
5204
|
+
name: string;
|
|
5205
|
+
description: string;
|
|
5206
|
+
tags: string[];
|
|
5207
|
+
}>;
|
|
5208
|
+
securitySchemes?: Record<string, {
|
|
5209
|
+
apiKeySecurityScheme: {
|
|
5210
|
+
location: string;
|
|
5211
|
+
name: string;
|
|
5212
|
+
};
|
|
5213
|
+
}>;
|
|
5214
|
+
securityRequirements?: Array<{
|
|
5215
|
+
schemes: Record<string, {
|
|
5216
|
+
list: string[];
|
|
5217
|
+
}>;
|
|
5218
|
+
}>;
|
|
5219
|
+
}
|
|
5174
5220
|
/**
|
|
5175
5221
|
* A2A 调用方身份信息
|
|
5176
5222
|
*
|
|
@@ -5326,9 +5372,9 @@ interface A2AOperations {
|
|
|
5326
5372
|
*
|
|
5327
5373
|
* 配置了 a2a 后即可使用,无需注册 executor。
|
|
5328
5374
|
*
|
|
5329
|
-
* @returns
|
|
5375
|
+
* @returns 可直接用于 HTTP 发现响应的 A2A 1.0 ProtoJSON Agent Card(含能力与安全方案)
|
|
5330
5376
|
*/
|
|
5331
|
-
getAgentCard: () => HaiResult<
|
|
5377
|
+
getAgentCard: () => HaiResult<A2AAgentCardDocument>;
|
|
5332
5378
|
/**
|
|
5333
5379
|
* 处理入站 JSON-RPC 请求
|
|
5334
5380
|
*
|
|
@@ -5415,7 +5461,7 @@ interface A2AAgentCardConfig {
|
|
|
5415
5461
|
description?: string;
|
|
5416
5462
|
tags?: string[];
|
|
5417
5463
|
}>;
|
|
5418
|
-
/** 安全认证配置(体现在 Agent Card 的 securitySchemes /
|
|
5464
|
+
/** 安全认证配置(体现在 Agent Card 的 securitySchemes / securityRequirements 字段) */
|
|
5419
5465
|
security?: A2ASecurityConfig;
|
|
5420
5466
|
}
|
|
5421
5467
|
/**
|
|
@@ -5459,7 +5505,7 @@ interface A2AHandleResult {
|
|
|
5459
5505
|
interface A2ACallOptions {
|
|
5460
5506
|
/** 超时时间(毫秒),默认 60 秒。 */
|
|
5461
5507
|
timeout?: number;
|
|
5462
|
-
/**
|
|
5508
|
+
/** 额外请求头,按大小写不敏感的同名字段覆盖;远端 HTTP 重定向被拒绝。 */
|
|
5463
5509
|
headers?: Record<string, string>;
|
|
5464
5510
|
}
|
|
5465
5511
|
/**
|
|
@@ -5477,7 +5523,7 @@ interface A2ACallResult {
|
|
|
5477
5523
|
/** 远端任务 ID */
|
|
5478
5524
|
taskId?: string;
|
|
5479
5525
|
/** 任务最终状态 */
|
|
5480
|
-
taskState?:
|
|
5526
|
+
taskState?: TaskState;
|
|
5481
5527
|
/** 响应消息文本 */
|
|
5482
5528
|
responseText?: string;
|
|
5483
5529
|
/** 响应消息 Part 数组 */
|
|
@@ -6758,7 +6804,7 @@ interface FileParseRequest {
|
|
|
6758
6804
|
* ```
|
|
6759
6805
|
*/
|
|
6760
6806
|
interface FileParseResult {
|
|
6761
|
-
/** 提取的文本内容(当 `outputFormat` 为 `'markdown'` 时为 Markdown
|
|
6807
|
+
/** 提取的文本内容(当 `outputFormat` 为 `'markdown'` 时为 Markdown 格式);不是可直接执行的可信 HTML。 */
|
|
6762
6808
|
text: string;
|
|
6763
6809
|
/** 解析方法 */
|
|
6764
6810
|
method: FileParseMethod;
|
|
@@ -8562,6 +8608,7 @@ declare function createACPOperations(provider: AIStoreProvider, config: AIConfig
|
|
|
8562
8608
|
remote: string;
|
|
8563
8609
|
}[];
|
|
8564
8610
|
environmentRefs: Record<string, string>;
|
|
8611
|
+
gitEnvironmentRefs: Record<string, string>;
|
|
8565
8612
|
}>>>;
|
|
8566
8613
|
/**
|
|
8567
8614
|
* 读取工作区定义及来源;配置条目无数据库版本。
|
|
@@ -8593,6 +8640,7 @@ declare function createACPOperations(provider: AIStoreProvider, config: AIConfig
|
|
|
8593
8640
|
remote: string;
|
|
8594
8641
|
}[];
|
|
8595
8642
|
environmentRefs: Record<string, string>;
|
|
8643
|
+
gitEnvironmentRefs: Record<string, string>;
|
|
8596
8644
|
}>>>;
|
|
8597
8645
|
/**
|
|
8598
8646
|
* 列出配置与数据库合并后的工作区;不创建路径或克隆工程。
|
|
@@ -8623,6 +8671,7 @@ declare function createACPOperations(provider: AIStoreProvider, config: AIConfig
|
|
|
8623
8671
|
remote: string;
|
|
8624
8672
|
}[];
|
|
8625
8673
|
environmentRefs: Record<string, string>;
|
|
8674
|
+
gitEnvironmentRefs: Record<string, string>;
|
|
8626
8675
|
}>[]>>;
|
|
8627
8676
|
/**
|
|
8628
8677
|
* 整体替换无会话引用的数据库工作区,重新检查存储位置重叠;配置条目不可修改。
|
|
@@ -8656,6 +8705,7 @@ declare function createACPOperations(provider: AIStoreProvider, config: AIConfig
|
|
|
8656
8705
|
remote: string;
|
|
8657
8706
|
}[];
|
|
8658
8707
|
environmentRefs: Record<string, string>;
|
|
8708
|
+
gitEnvironmentRefs: Record<string, string>;
|
|
8659
8709
|
}>>>;
|
|
8660
8710
|
/**
|
|
8661
8711
|
* 创建目录并克隆缺失工程;已有内容不自动 pull 或覆盖,Git 不存在时返回明确错误。
|
|
@@ -8720,14 +8770,14 @@ declare function createACPOperations(provider: AIStoreProvider, config: AIConfig
|
|
|
8720
8770
|
sessions: {
|
|
8721
8771
|
/**
|
|
8722
8772
|
* 绑定模型、工作区和 MCP,准备目录后建立原生会话;newWorktree 可选择独立工程分支。
|
|
8723
|
-
* @param options -
|
|
8773
|
+
* @param options - 智能体、工作区、可选会话仓库、模型、MCP 及可信回调;newWorktree 默认 false。
|
|
8724
8774
|
* @returns 可用于 prompt/stream/publish 的会话句柄;启动失败保留失败记录。
|
|
8725
8775
|
* @example
|
|
8726
8776
|
* ```ts
|
|
8727
8777
|
* import { ai } from '@h-ai/ai'
|
|
8728
8778
|
* // 前提:ai 已成功初始化。
|
|
8729
8779
|
* // 普通 API 先检查 result.success,再读取 data 或 error。
|
|
8730
|
-
* const result = await ai.acp.sessions.create({ agentId: 'coder', workspaceId: 'project', newWorktree: true })
|
|
8780
|
+
* const result = await ai.acp.sessions.create({ agentId: 'coder', workspaceId: 'project', repositoryId: 'api', newWorktree: true })
|
|
8731
8781
|
* ```
|
|
8732
8782
|
*/
|
|
8733
8783
|
create: (options: ACPCreateSessionOptions) => Promise<{
|
|
@@ -9372,6 +9422,25 @@ declare function createACPOperations(provider: AIStoreProvider, config: AIConfig
|
|
|
9372
9422
|
success: true;
|
|
9373
9423
|
data: void;
|
|
9374
9424
|
}>;
|
|
9425
|
+
/**
|
|
9426
|
+
* 回收停止后由框架登记的干净工作树;调用方须先停止独立预览。
|
|
9427
|
+
* @param id - 框架会话 ID;仅支持记录了归属的独立 Git 会话。
|
|
9428
|
+
* @returns 回收完成的 HaiResult;可重试,保留分支、普通文件及原生历史。
|
|
9429
|
+
* @example
|
|
9430
|
+
* ```ts
|
|
9431
|
+
* import { ai } from '@h-ai/ai'
|
|
9432
|
+
* // 前提:已关闭 Agent,已停止预览并提交或另存修改。
|
|
9433
|
+
* const result = await ai.acp.sessions.reclaimWorktree('task-1')
|
|
9434
|
+
* if (!result.success) throw new Error(result.error.message)
|
|
9435
|
+
* ```
|
|
9436
|
+
*/
|
|
9437
|
+
reclaimWorktree: (id: string) => Promise<{
|
|
9438
|
+
success: false;
|
|
9439
|
+
error: _h_ai_core.HaiError;
|
|
9440
|
+
} | {
|
|
9441
|
+
success: true;
|
|
9442
|
+
data: void;
|
|
9443
|
+
}>;
|
|
9375
9444
|
/**
|
|
9376
9445
|
* 仅删除已关闭或失败的会话记录;不删除工作树及原生文件,不替代 Git worktree 清理。
|
|
9377
9446
|
* @param id - 框架会话 ID。
|
|
@@ -9661,6 +9730,33 @@ interface ACPAgentLaunch {
|
|
|
9661
9730
|
/** 状态目录下的普通配置文件,文件名不允许路径分隔符。 */
|
|
9662
9731
|
files?: Record<string, string>;
|
|
9663
9732
|
}
|
|
9733
|
+
/**
|
|
9734
|
+
* 已准备的工程位置,供同一节点上的可信预览或检查进程使用。
|
|
9735
|
+
* @example
|
|
9736
|
+
* ```ts
|
|
9737
|
+
* import type { ACPSessionWorkspace } from '@h-ai/ai'
|
|
9738
|
+
* function webPath(workspace: ACPSessionWorkspace) { return workspace.repositories.find(repo => repo.id === 'web')?.path }
|
|
9739
|
+
* ```
|
|
9740
|
+
*/
|
|
9741
|
+
interface ACPSessionWorkspace {
|
|
9742
|
+
/** 本机真实目录,或实际使用的引擎、源码卷和容器挂载点。 */
|
|
9743
|
+
storage: {
|
|
9744
|
+
type: 'directory';
|
|
9745
|
+
path: string;
|
|
9746
|
+
} | {
|
|
9747
|
+
type: 'volume';
|
|
9748
|
+
engine: 'podman' | 'docker';
|
|
9749
|
+
name: string;
|
|
9750
|
+
mountPath: string;
|
|
9751
|
+
};
|
|
9752
|
+
/** 当前会话的聚合目录,位于上述宿主目录或容器挂载点内。 */
|
|
9753
|
+
path: string;
|
|
9754
|
+
/** 登记仓库在同一文件系统中的绝对路径。 */
|
|
9755
|
+
repositories: Array<{
|
|
9756
|
+
id: string;
|
|
9757
|
+
path: string;
|
|
9758
|
+
}>;
|
|
9759
|
+
}
|
|
9664
9760
|
/**
|
|
9665
9761
|
* 持久会话绑定;原生 ID 不等于框架 ID,工作目录只能由登记信息生成。
|
|
9666
9762
|
* @example
|
|
@@ -9676,12 +9772,18 @@ interface ACPSessionInfo {
|
|
|
9676
9772
|
agentId: string;
|
|
9677
9773
|
/** 受管理工作区 ID;远程自定义服务可省略。 */
|
|
9678
9774
|
workspaceId?: string;
|
|
9775
|
+
/** 作为会话工作目录的已登记仓库;省略时使用聚合目录。 */
|
|
9776
|
+
repositoryId?: string;
|
|
9679
9777
|
/** 智能体实际可见的绝对工作目录。 */
|
|
9680
9778
|
cwd: string;
|
|
9681
9779
|
/** 是否使用独立检出目录;false 表示共享工作区主目录。 */
|
|
9682
9780
|
newWorktree: boolean;
|
|
9683
9781
|
/** 独立会话中所有工程共用的分支名。 */
|
|
9684
9782
|
branch?: string;
|
|
9783
|
+
/** 受管目录交接信息;创建失败时可能只有部分工作树,旧记录或远程会话可能没有该字段。 */
|
|
9784
|
+
workspace?: ACPSessionWorkspace;
|
|
9785
|
+
/** 显式回收已开始或完成。此时 workspace 仅供历史追溯,不可恢复会话或发布工作树。 */
|
|
9786
|
+
worktreeStatus?: 'reclaiming' | 'reclaimed';
|
|
9685
9787
|
/** 启动时选定的 Hai 模型 ID。 */
|
|
9686
9788
|
modelId?: string;
|
|
9687
9789
|
/** 模型非密钥配置的摘要;用于阻止不兼容的会话恢复。 */
|
|
@@ -9717,6 +9819,8 @@ interface ACPCreateSessionOptions extends ACPClientOptions {
|
|
|
9717
9819
|
agentId: string;
|
|
9718
9820
|
/** 托管模式必填的工作区 ID。 */
|
|
9719
9821
|
workspaceId?: string;
|
|
9822
|
+
/** 以已登记仓库的根目录启动与恢复;不改变 worktree 和 Git 发布的仓库范围。 */
|
|
9823
|
+
repositoryId?: string;
|
|
9720
9824
|
/** 自定义远程服务可见的绝对路径;托管模式由工作区计算。 */
|
|
9721
9825
|
cwd?: string;
|
|
9722
9826
|
/** 默认 false;true 时从每个工程当前本地主分支创建 worktree。 */
|
|
@@ -9760,4 +9864,5 @@ interface ACPGitReport {
|
|
|
9760
9864
|
*/
|
|
9761
9865
|
type ACPOperations = ReturnType<typeof createACPOperations>;
|
|
9762
9866
|
|
|
9763
|
-
export {
|
|
9867
|
+
export { AudioFormatSchema as $, ACPPublishSchema as B, ACPRepositorySchema as C, ACPWorkspaceSchema as F, AIConfigSchema as I, AUDIO_WS_PATH as U, ApiTypeSchema as W, AudioConfigSchema as _, EntityTypeSchema as a$, AudioModelEntrySchema as a1, AudioOperationSchema as a3, AudioOperationsSchema as a4, AudioProviderSchema as a6, AudioWsClientMessageSchema as a8, CompressionStrategySchema as aC, EmbeddingConfigSchema as aR, AudioWsDoneMessageSchema as aa, AudioWsStartMessageSchema as ai, AudioWsTextMessageSchema as ak, CompressConfigSchema as ax, FileConfigSchema as b1, LLMConfigSchema as bL, MCPConfigSchema as bO, MCPExternalServerSchema as bR, MCPServerCapabilitiesSchema as b_, HaiAIError as bb, ImageConfigSchema as bd, ImageModelEntrySchema as bg, ImageProviderSchema as bj, KnowledgeConfigSchema as bp, MCPServerConfigSchema as c0, MemoryConfigSchema as ce, MemoryTypeSchema as cp, ModelCapabilitiesSchema as ct, ModelEntrySchema as cv, ModelScenarioSchema as cx, OptionalSecretSchema as cz, RetrievalConfigSchema as d1, RetrievalSourceSchema as d8, ensureAudioCredential as dN, resolveAudioModel as dO, resolveImageModel as dP, resolveModelApi as dQ, resolveModelEntry as dR, serializePlayableAudio as dS, SummaryConfigSchema as dl, TokenConfigSchema as du, A2AConfigSchema as h, A2ASkillConfigSchema as n, ACPAgentSchema as s, ACPConfigSchema as w };
|
|
9868
|
+
export type { A2AAgentCardConfig as A, ACPSessionInfo as D, ACPTransport as E, AIConfig as G, AIConfigInput as H, AIFunctions as J, AIInitOptions as K, AIRelStore as L, AIRelStoreCompareAndSwap as M, AIRelStoreOptions as N, AIResourceEntry as O, AIResourceRegistry as P, AIStoreProvider as Q, AIVectorBackend as R, AIVectorStore as S, AIVersionedRecord as T, ApiType as V, AskOptions as X, AssistantMessage as Y, AudioConfig as Z, A2AAgentCardDocument as a, AudioModelEntry as a0, AudioOperation as a2, AudioProviderName as a5, AudioWsClientMessage as a7, AudioWsDoneMessage as a9, CompressResult as aA, CompressionStrategy as aB, ConsolidateOptions as aD, ConsolidateResult as aE, ContextChatOptions as aF, ContextChatResult as aG, ContextManager as aH, ContextManagerOptions as aI, ContextOperations as aJ, ContextResetOptions as aK, ContextStreamEvent as aL, ConversationTurn as aM, ConversationTurnStatus as aN, DefineToolOptions as aO, DeveloperMessage as aP, EmbeddingConfig as aQ, EmbeddingItem as aS, EmbeddingOperations as aT, EmbeddingRequest as aU, EmbeddingResponse as aV, EntityDocumentRelation as aW, EntityDocumentResult as aX, EntityListOptions as aY, EntityQueryOptions as aZ, EntityType as a_, AudioWsEndMessage as ab, AudioWsErrorMessage as ac, AudioWsSegmentDoneMessage as ad, AudioWsSegmentStartedMessage as ae, AudioWsServerMessage as af, AudioWsSpeechMessage as ag, AudioWsStartMessage as ah, AudioWsTextMessage as aj, AudioWsTranscriptMessage as al, ChatCompletionChoice as am, ChatCompletionChunk as an, ChatCompletionDelta as ao, ChatCompletionRequest as ap, ChatCompletionResponse as aq, ChatHistoryOptions as ar, ChatMessage as as, ChatRecord as at, Citation as au, CommitTurnInput as av, CompressConfig as aw, CompressOperations as ay, CompressOptions as az, A2AApiKeySecurity as b, MCPServerConfig as b$, FileConfig as b0, FileOperations as b2, FileParseMethod as b3, FileParseOptions as b4, FileParseRequest as b5, FileParseResult as b6, GenerateImageRequest as b7, GenerateImageResult as b8, GenerateObjectRequest as b9, KnowledgeIngestResult as bA, KnowledgeOperations as bB, KnowledgeRepairOptions as bC, KnowledgeRepairProgress as bD, KnowledgeRepairResult as bE, KnowledgeRetrieveItem as bF, KnowledgeRetrieveOptions as bG, KnowledgeRetrieveResult as bH, KnowledgeSetupOptions as bI, KnowledgeStore as bJ, LLMConfig as bK, LLMOperations as bM, MCPConfig as bN, MCPContext as bP, MCPExternalServer as bQ, MCPOperations as bS, MCPPrompt as bT, MCPPromptArgument as bU, MCPPromptContent as bV, MCPPromptMessage as bW, MCPResource as bX, MCPResourceContent as bY, MCPServerCapabilities as bZ, GeneratedImage as ba, ImageConfig as bc, ImageContent as be, ImageModelEntry as bf, ImageOperations as bh, ImageProviderName as bi, ImageSize as bk, InteractionScope as bl, KnowledgeAskOptions as bm, KnowledgeAskResult as bn, KnowledgeConfig as bo, KnowledgeDocumentInfo as bq, KnowledgeDocumentListOptions as br, KnowledgeDocumentMetadata as bs, KnowledgeDocumentRemoveOptions as bt, KnowledgeDocumentRevision as bu, KnowledgeEntity as bv, KnowledgeIngestBatchProgress as bw, KnowledgeIngestBatchResult as bx, KnowledgeIngestFileInput as by, KnowledgeIngestInput as bz, A2AAuthenticator as c, ResolvedModelConfig as c$, MCPToolDefinition as c1, MCPToolHandler as c2, ManagedAudioOperations as c3, ManagedImageOperations as c4, ManagedLLMOperations as c5, ManagedMCPOperations as c6, ManagedRetrievalOperations as c7, McpServerOptions as c8, MemoryAccessScope as c9, OutputFormat as cA, PersonaOperations as cB, PersonaProfile as cC, PersonaProfileInput as cD, PersonaProfileUpdate as cE, PersonaScopeOptions as cF, RagContextItem as cG, RagOperations as cH, RagOptions as cI, RagResult as cJ, RagStreamEvent as cK, ReasoningOperations as cL, ReasoningOptions as cM, ReasoningResult as cN, ReasoningStep as cO, ReasoningStepType as cP, ReasoningStrategy as cQ, ReasoningStreamEvent as cR, ReferenceImage as cS, RerankDocument as cT, RerankItem as cU, RerankOperations as cV, RerankRequest as cW, RerankResponse as cX, ResolveRequiredModelEntryOptions as cY, ResolvedAudioModel as cZ, ResolvedImageModel as c_, MemoryAdminOperations as ca, MemoryClearAllOptions as cb, MemoryClearOptions as cc, MemoryConfig as cd, MemoryCoreOperations as cf, MemoryEntry as cg, MemoryEntryInput as ch, MemoryExtractOptions as ci, MemoryInjectionOptions as cj, MemoryListOptions as ck, MemoryListPageOptions as cl, MemoryOperations as cm, MemoryRecallOptions as cn, MemoryType as co, MemoryUpdateInput as cq, MessageContent as cr, MessageRole as cs, ModelEntry as cu, ModelScenario as cw, ObjectRef as cy, A2ACallOptions as d, RetrievalConfig as d0, RetrievalOperations as d2, RetrievalRequest as d3, RetrievalResult as d4, RetrievalResultItem as d5, RetrievalSource as d6, RetrievalSourceConfig as d7, SSEDecoder as d9, ToolCall as dA, ToolDefinition as dB, ToolErrorType as dC, ToolExecutionContext as dD, ToolExecutionOptions as dE, ToolMessage as dF, ToolRegistryOperations as dG, ToolRegistryOptions as dH, ToolsOperations as dI, UserMessage as dJ, WhereClause as dK, WhereOperator as dL, WhereValue as dM, ACPSessionWorkspace as dT, SSEEvent as da, ScopedMemoryBinding as db, ScopedMemoryOperations as dc, SessionInfo as dd, StoreFilter as de, StorePage as df, StoreScope as dg, StreamOperations as dh, StreamProcessor as di, StreamResult as dj, SummaryConfig as dk, SummaryOperations as dm, SummaryOptions as dn, SummaryResult as dp, SystemMessage as dq, TempModelConfig as dr, TextContent as ds, TokenConfig as dt, TokenOperations as dv, TokenUsage as dw, Tool as dx, ToolAuthorizationRequest as dy, ToolAuthorizer as dz, A2ACallResult as e, A2ACallerIdentity as f, A2AConfig as g, A2AContextInfo as i, A2AHandleResult as j, A2AMessageRecord as k, A2AOperations as l, A2ASecurityConfig as m, A2ATaskFilter as o, ACPAgentAdapter as p, ACPAgentAdapterInput as q, ACPAgentLaunch as r, ACPClientOptions as t, ACPConfig as u, ACPConfigInput as v, ACPCreateSessionOptions as x, ACPGitReport as y, ACPOperations as z };
|
package/dist/browser.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { A as A2AAgentCardConfig, a as
|
|
1
|
+
export { A as A2AAgentCardConfig, a as A2AAgentCardDocument, b as A2AApiKeySecurity, c as A2AAuthenticator, d as A2ACallOptions, e as A2ACallResult, f as A2ACallerIdentity, g as A2AConfig, h as A2AConfigSchema, i as A2AContextInfo, j as A2AHandleResult, k as A2AMessageRecord, l as A2AOperations, m as A2ASecurityConfig, n as A2ASkillConfigSchema, o as A2ATaskFilter, p as ACPAgentAdapter, q as ACPAgentAdapterInput, r as ACPAgentLaunch, s as ACPAgentSchema, t as ACPClientOptions, u as ACPConfig, v as ACPConfigInput, w as ACPConfigSchema, x as ACPCreateSessionOptions, y as ACPGitReport, z as ACPOperations, B as ACPPublishSchema, C as ACPRepositorySchema, D as ACPSessionInfo, E as ACPTransport, F as ACPWorkspaceSchema, G as AIConfig, H as AIConfigInput, I as AIConfigSchema, J as AIFunctions, K as AIInitOptions, L as AIRelStore, M as AIRelStoreCompareAndSwap, N as AIRelStoreOptions, O as AIResourceEntry, P as AIResourceRegistry, Q as AIStoreProvider, R as AIVectorBackend, S as AIVectorStore, T as AIVersionedRecord, U as AUDIO_WS_PATH, V as ApiType, W as ApiTypeSchema, X as AskOptions, Y as AssistantMessage, Z as AudioConfig, _ as AudioConfigSchema, $ as AudioFormatSchema, a0 as AudioModelEntry, a1 as AudioModelEntrySchema, a2 as AudioOperation, a3 as AudioOperationSchema, a4 as AudioOperationsSchema, a5 as AudioProviderName, a6 as AudioProviderSchema, a7 as AudioWsClientMessage, a8 as AudioWsClientMessageSchema, a9 as AudioWsDoneMessage, aa as AudioWsDoneMessageSchema, ab as AudioWsEndMessage, ac as AudioWsErrorMessage, ad as AudioWsSegmentDoneMessage, ae as AudioWsSegmentStartedMessage, af as AudioWsServerMessage, ag as AudioWsSpeechMessage, ah as AudioWsStartMessage, ai as AudioWsStartMessageSchema, aj as AudioWsTextMessage, ak as AudioWsTextMessageSchema, al as AudioWsTranscriptMessage, am as ChatCompletionChoice, an as ChatCompletionChunk, ao as ChatCompletionDelta, ap as ChatCompletionRequest, aq as ChatCompletionResponse, ar as ChatHistoryOptions, as as ChatMessage, at as ChatRecord, au as Citation, av as CommitTurnInput, aw as CompressConfig, ax as CompressConfigSchema, ay as CompressOperations, az as CompressOptions, aA as CompressResult, aB as CompressionStrategy, aC as CompressionStrategySchema, aD as ConsolidateOptions, aE as ConsolidateResult, aF as ContextChatOptions, aG as ContextChatResult, aH as ContextManager, aI as ContextManagerOptions, aJ as ContextOperations, aK as ContextResetOptions, aL as ContextStreamEvent, aM as ConversationTurn, aN as ConversationTurnStatus, aO as DefineToolOptions, aP as DeveloperMessage, aQ as EmbeddingConfig, aR as EmbeddingConfigSchema, aS as EmbeddingItem, aT as EmbeddingOperations, aU as EmbeddingRequest, aV as EmbeddingResponse, aW as EntityDocumentRelation, aX as EntityDocumentResult, aY as EntityListOptions, aZ as EntityQueryOptions, a_ as EntityType, a$ as EntityTypeSchema, b0 as FileConfig, b1 as FileConfigSchema, b2 as FileOperations, b3 as FileParseMethod, b4 as FileParseOptions, b5 as FileParseRequest, b6 as FileParseResult, b7 as GenerateImageRequest, b8 as GenerateImageResult, b9 as GenerateObjectRequest, ba as GeneratedImage, bb as HaiAIError, bc as ImageConfig, bd as ImageConfigSchema, be as ImageContent, bf as ImageModelEntry, bg as ImageModelEntrySchema, bh as ImageOperations, bi as ImageProviderName, bj as ImageProviderSchema, bk as ImageSize, bl as InteractionScope, bm as KnowledgeAskOptions, bn as KnowledgeAskResult, bo as KnowledgeConfig, bp as KnowledgeConfigSchema, bq as KnowledgeDocumentInfo, br as KnowledgeDocumentListOptions, bs as KnowledgeDocumentMetadata, bt as KnowledgeDocumentRemoveOptions, bu as KnowledgeDocumentRevision, bv as KnowledgeEntity, bw as KnowledgeIngestBatchProgress, bx as KnowledgeIngestBatchResult, by as KnowledgeIngestFileInput, bz as KnowledgeIngestInput, bA as KnowledgeIngestResult, bB as KnowledgeOperations, bC as KnowledgeRepairOptions, bD as KnowledgeRepairProgress, bE as KnowledgeRepairResult, bF as KnowledgeRetrieveItem, bG as KnowledgeRetrieveOptions, bH as KnowledgeRetrieveResult, bI as KnowledgeSetupOptions, bJ as KnowledgeStore, bK as LLMConfig, bL as LLMConfigSchema, bM as LLMOperations, bN as MCPConfig, bO as MCPConfigSchema, bP as MCPContext, bQ as MCPExternalServer, bR as MCPExternalServerSchema, bS as MCPOperations, bT as MCPPrompt, bU as MCPPromptArgument, bV as MCPPromptContent, bW as MCPPromptMessage, bX as MCPResource, bY as MCPResourceContent, bZ as MCPServerCapabilities, b_ as MCPServerCapabilitiesSchema, b$ as MCPServerConfig, c0 as MCPServerConfigSchema, c1 as MCPToolDefinition, c2 as MCPToolHandler, c3 as ManagedAudioOperations, c4 as ManagedImageOperations, c5 as ManagedLLMOperations, c6 as ManagedMCPOperations, c7 as ManagedRetrievalOperations, c8 as McpServerOptions, c9 as MemoryAccessScope, ca as MemoryAdminOperations, cb as MemoryClearAllOptions, cc as MemoryClearOptions, cd as MemoryConfig, ce as MemoryConfigSchema, cf as MemoryCoreOperations, cg as MemoryEntry, ch as MemoryEntryInput, ci as MemoryExtractOptions, cj as MemoryInjectionOptions, ck as MemoryListOptions, cl as MemoryListPageOptions, cm as MemoryOperations, cn as MemoryRecallOptions, co as MemoryType, cp as MemoryTypeSchema, cq as MemoryUpdateInput, cr as MessageContent, cs as MessageRole, ct as ModelCapabilitiesSchema, cu as ModelEntry, cv as ModelEntrySchema, cw as ModelScenario, cx as ModelScenarioSchema, cy as ObjectRef, cz as OptionalSecretSchema, cA as OutputFormat, cB as PersonaOperations, cC as PersonaProfile, cD as PersonaProfileInput, cE as PersonaProfileUpdate, cF as PersonaScopeOptions, cG as RagContextItem, cH as RagOperations, cI as RagOptions, cJ as RagResult, cK as RagStreamEvent, cL as ReasoningOperations, cM as ReasoningOptions, cN as ReasoningResult, cO as ReasoningStep, cP as ReasoningStepType, cQ as ReasoningStrategy, cR as ReasoningStreamEvent, cS as ReferenceImage, cT as RerankDocument, cU as RerankItem, cV as RerankOperations, cW as RerankRequest, cX as RerankResponse, cY as ResolveRequiredModelEntryOptions, cZ as ResolvedAudioModel, c_ as ResolvedImageModel, c$ as ResolvedModelConfig, d0 as RetrievalConfig, d1 as RetrievalConfigSchema, d2 as RetrievalOperations, d3 as RetrievalRequest, d4 as RetrievalResult, d5 as RetrievalResultItem, d6 as RetrievalSource, d7 as RetrievalSourceConfig, d8 as RetrievalSourceSchema, d9 as SSEDecoder, da as SSEEvent, db as ScopedMemoryBinding, dc as ScopedMemoryOperations, dd as SessionInfo, de as StoreFilter, df as StorePage, dg as StoreScope, dh as StreamOperations, di as StreamProcessor, dj as StreamResult, dk as SummaryConfig, dl as SummaryConfigSchema, dm as SummaryOperations, dn as SummaryOptions, dp as SummaryResult, dq as SystemMessage, dr as TempModelConfig, ds as TextContent, dt as TokenConfig, du as TokenConfigSchema, dv as TokenOperations, dw as TokenUsage, dx as Tool, dy as ToolAuthorizationRequest, dz as ToolAuthorizer, dA as ToolCall, dB as ToolDefinition, dC as ToolErrorType, dD as ToolExecutionContext, dE as ToolExecutionOptions, dF as ToolMessage, dG as ToolRegistryOperations, dH as ToolRegistryOptions, dI as ToolsOperations, dJ as UserMessage, dK as WhereClause, dL as WhereOperator, dM as WhereValue, dN as ensureAudioCredential, dO as resolveAudioModel, dP as resolveImageModel, dQ as resolveModelApi, dR as resolveModelEntry, dS as serializePlayableAudio } from './ai-acp-types-BNeA1j0P.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
|
-
export { AgentCapabilities, AgentCard, AgentProvider, AgentSkill, Artifact,
|
|
4
|
+
export { AgentCapabilities, AgentCard, AgentProvider, AgentSkill, Artifact, CancelTaskRequest, GetTaskRequest, Message, Part, SendMessageRequest, StreamResponse, SubscribeToTaskRequest, Task, TaskArtifactUpdateEvent, TaskPushNotificationConfig, TaskState, TaskStatus, TaskStatusUpdateEvent } from '@a2a-js/sdk';
|
|
5
5
|
export { AgentExecutor, ExecutionEventBus } from '@a2a-js/sdk/server';
|
|
6
6
|
import '@h-ai/core';
|
|
7
7
|
import 'zod';
|
package/dist/browser.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
2
|
-
export { createAudioClient } from './chunk-
|
|
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-55A3S4AH.js';
|
|
2
|
+
export { createAudioClient } from './chunk-WSH2246H.js';
|
|
3
3
|
export { HaiAIError } from './chunk-M77C3VAP.js';
|
|
4
4
|
//# sourceMappingURL=browser.js.map
|
|
5
5
|
//# sourceMappingURL=browser.js.map
|