@h-ai/ai 1.0.0-beta.29 → 1.0.0-beta.30
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 +3 -1
- package/README.ja.md +3 -1
- package/README.md +2 -2
- package/dist/{ai-acp-types-BTVshtKX.d.ts → ai-acp-types-DuPV5UGi.d.ts} +266 -5
- package/dist/browser.d.ts +2 -2
- package/dist/browser.js +2 -2
- package/dist/{chunk-3R5SMLSJ.js → chunk-ILUCWONQ.js} +52 -3
- package/dist/chunk-ILUCWONQ.js.map +1 -0
- package/dist/{chunk-W44R24T2.js → chunk-LENTVEBE.js} +5 -3
- package/dist/chunk-LENTVEBE.js.map +1 -0
- package/dist/client/index.d.ts +26 -1
- package/dist/client/index.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +513 -98
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
- package/dist/chunk-3R5SMLSJ.js.map +0 -1
- package/dist/chunk-W44R24T2.js.map +0 -1
package/README.en.md
CHANGED
|
@@ -414,7 +414,7 @@ Managed Git rejects submodules and Git LFS attributes with ACP_UNSUPPORTED inste
|
|
|
414
414
|
|
|
415
415
|
Start RelDB and [Runner](../runner/README.en.md), then pass the initialized instance to `ai.init(config, { runner, acpPolicy })`. Register agents in `acp.agents`. Set `environmentIds` to pinned Runner environments and `modelIds` to entries in `llm.models`. Codex needs a Responses gateway. API and executor nodes share the database and use the same environment definitions. On shutdown, close AI, Runner, and the database in that order.
|
|
416
416
|
|
|
417
|
-
`task` starts a dedicated worker for the session. `user` may reuse a worker when the principal and startup settings match. `auto`
|
|
417
|
+
`task` starts a dedicated worker for the session. `user` may reuse a worker when the principal and startup settings match. `auto` checks shared eligibility before asking the application whether to reuse a personal worker, then falls back to a dedicated worker. `shared` is read-only and excludes private context, workspaces, and tools. Set `sharedMode` with the pinned DeepSeek Harness 0.2.1-rc.5 image to opt in. Codex and Goose use personal or dedicated workers. See the [ACP configuration example](../../docs/usage/configuration/ai.md#acp-接入与模型能力).
|
|
418
418
|
|
|
419
419
|
```ts
|
|
420
420
|
import type { RunnerScope } from '@h-ai/runner' // tenantId and userId come from an authenticated application session.
|
|
@@ -471,6 +471,8 @@ async function continueWork(identity: RunnerScope) {
|
|
|
471
471
|
|
|
472
472
|
`agents.describe(agentId)` reports built-in adapter capabilities. `sessions.get(id)` obtains a handle from another API node for the same principal. `session.stream(prompt, options)` yields durable events and throws on failure. `tasks.get(taskId)` returns the execution receipt. `tasks.cancel(taskId)` acknowledges cancellation and returns current status. Read the `taskId` from the `accepted` event in a `run` or `prompt` observer to query or cancel from another request.
|
|
473
473
|
|
|
474
|
+
`session.submit({ prompt, idempotencyKey, context })` returns a receipt independent of the browser connection. Read `tasks.events(taskId, after, limit)` from the last received sequence after reconnecting. Check `session.status()` before submitting to an idle session. `workspaces.readGitSnapshot` loads authorized source files for dedicated workers. Completed turns can publish a patch. After explicit confirmation, `workspaces.publishSnapshot` pushes a separate `agent/` branch. See the [Agent workspace example](../../apps/agent/README.md).
|
|
475
|
+
|
|
474
476
|
The application supplies `acpPolicy` to authorize `workspaceId` snapshots, knowledge, memory, files, skills, and tools. Use `allowTools` and `bindTools` for the MCP broker below. After receiving an `approval` event, the same principal calls `approvals.respond(id, 'allow-once' | 'allow-session' | 'always-allow' | 'deny')` with its `approvalId`. Success returns `undefined`. `approvals.rules(offset, limit)` pages through valid rules with `expiresAt`, and `approvals.revoke(ruleId)` revokes a rule owned by the principal. `full-access` requires explicit application approval and `task` mode. A workspace provides a read-only snapshot. Mode changes can carry a user-approved `historySummary`. See [managed ACP usage](../../docs/usage/development/ai-acp.md#多用户应用的受管调用) for additional examples.
|
|
475
477
|
|
|
476
478
|
#### Configuration and database resource catalogs
|
package/README.ja.md
CHANGED
|
@@ -414,7 +414,7 @@ ACP は Node サービスで実行します。通常の API は HaiResult を返
|
|
|
414
414
|
|
|
415
415
|
RelDB と [Runner](../runner/README.ja.md) を起動し、起動済みのインスタンスを `ai.init(config, { runner, acpPolicy })` に渡します。`acp.agents` に Agent を登録し、`environmentIds` で固定イメージの Runner 環境を、`modelIds` で `llm.models` のモデルを指定します。Codex には Responses ゲートウェイが必要です。API ノードと実行ノードではデータベースと環境定義を揃えます。終了時は AI、Runner、データベースの順に閉じます。
|
|
416
416
|
|
|
417
|
-
`task` はそのセッション用の専用 Worker を起動します。`user` は主体と起動設定が一致する場合に Worker を再利用できます。`auto`
|
|
417
|
+
`task` はそのセッション用の専用 Worker を起動します。`user` は主体と起動設定が一致する場合に Worker を再利用できます。`auto` は共有条件を確認し、次にアプリのポリシーで個人 Worker を検討します。いずれも利用できない場合は専用 Worker を起動します。`shared` は読み取り専用で、非公開コンテキスト、ワークスペース、ツールを扱いません。固定版 DeepSeek Harness 0.2.1-rc.5 のイメージでは `sharedMode` を明示的に有効化できます。Codex と Goose は個人または専用 Worker を使用します。[ACP 設定例](../../docs/usage/configuration/ai.md#acp-接入与模型能力)
|
|
418
418
|
|
|
419
419
|
```ts
|
|
420
420
|
import type { RunnerScope } from '@h-ai/runner' // 認証済みアプリセッションから tenantId と userId を取得する。
|
|
@@ -471,6 +471,8 @@ async function continueWork(identity: RunnerScope) {
|
|
|
471
471
|
|
|
472
472
|
`agents.describe(agentId)` で組み込みアダプターの機能を確認できます。`sessions.get(id)` は同じ主体が別の API ノードからハンドルを取得するために使います。`session.stream(prompt, options)` は保存済みイベントを順に返し、失敗時は例外を送出します。`tasks.get(taskId)` は実行受付票、`tasks.cancel(taskId)` はキャンセル受理後の状態を返します。`run` や `prompt` の `onEvent` に届く `accepted` イベントから `taskId` を取得し、別のリクエストで照会やキャンセルを行えます。
|
|
473
473
|
|
|
474
|
+
`session.submit({ prompt, idempotencyKey, context })` はブラウザー接続に依存しない受付票を返します。再接続したら最後に受信した連番から `tasks.events(taskId, after, limit)` で再開します。アイドル中のセッションには `session.status()` で状態を確認できます。専用 Worker には `workspaces.readGitSnapshot` で認可済みのファイルを渡せます。ターン完了時にパッチを保存し、確認後に `workspaces.publishSnapshot` で独立した `agent/` ブランチを送信できます。[Agent ワークスペースの例](../../apps/agent/README.md)
|
|
475
|
+
|
|
474
476
|
`acpPolicy` で `workspaceId` のスナップショット、ナレッジ、メモリ、ファイル、スキル、ツールを認可します。下記の MCP 入口には `allowTools` と `bindTools` を使います。`approval` イベントの `approvalId` に対して、同じ主体で `approvals.respond(id, 'allow-once' | 'allow-session' | 'always-allow' | 'deny')` を呼びます。成功時は `undefined` です。`approvals.rules(offset, limit)` は `expiresAt` を持つ有効なルールをページ取得し、`approvals.revoke(ruleId)` は主体自身のルールを取り消します。`full-access` にはアプリの明示的な承認と `task` モードが必要です。ワークスペースは読み取り専用スナップショットです。モード切り替え時にユーザーが確認した `historySummary` を渡せます。[管理対象 ACP の利用例](../../docs/usage/development/ai-acp.md#多用户应用的受管调用)
|
|
475
477
|
|
|
476
478
|
#### 設定とデータベースのリソース一覧
|
package/README.md
CHANGED
|
@@ -433,7 +433,7 @@ DeepSeek Harness 直连官方 DeepSeek Chat 时,在模型条目中设置 `prot
|
|
|
433
433
|
|
|
434
434
|
服务启动时先初始化 RelDB 和 [Runner](../runner/README.md),再将已启动的实例传给 `ai.init(config, { runner, acpPolicy })`。在 `acp.agents` 注册 Agent,并用 `environmentIds` 绑定 Runner 的固定镜像环境,用 `modelIds` 绑定 `llm.models` 的模型。Codex 需要 Responses 网关。API 和执行节点使用共享数据库与相同环境定义。关闭服务时先关闭 AI,再关闭 Runner 和数据库。
|
|
435
435
|
|
|
436
|
-
`task` 为本次会话启动独占 Worker,`user` 可在同一主体与启动配置下复用。`auto`
|
|
436
|
+
`task` 为本次会话启动独占 Worker,`user` 可在同一主体与启动配置下复用。`auto` 先检查共享条件,再按应用策略决定能否复用个人 Worker,其余使用独占 Worker。`shared` 只允许使用只读会话,且限于无需私有上下文、工作区或工具的请求。固定版本 DeepSeek Harness 0.2.1-rc.5 可显式启用 `sharedMode`。内置 Codex 和 Goose 使用个人或独占模式。配置示例见 [ACP 配置](../../docs/usage/configuration/ai.md#acp-接入与模型能力)。
|
|
437
437
|
|
|
438
438
|
```ts
|
|
439
439
|
import type { RunnerScope } from '@h-ai/runner' // tenantId 和 userId 来自已认证的应用会话。
|
|
@@ -490,7 +490,7 @@ async function continueWork(identity: RunnerScope) {
|
|
|
490
490
|
|
|
491
491
|
使用 `agents.describe(agentId)` 查询内置适配器的能力,`sessions.get(id)` 由同一主体在其他 API 节点取得句柄,`session.stream(prompt, options)` 迭代持久事件并在失败时抛错。`tasks.get(taskId)` 返回执行回执,`tasks.cancel(taskId)` 接受取消并返回当前状态。可在 `run` 或 `prompt` 的 `onEvent` 中取得 `accepted` 事件的 `taskId`,然后用另一请求查看或取消。
|
|
492
492
|
|
|
493
|
-
`acpPolicy` 负责 `workspaceId` 快照、知识库、记忆、文件、Skills 和工具的业务授权。`allowTools` 与 `bindTools` 可接入下文的 MCP 入口。应用取得 `approval` 事件中的 `approvalId` 后,从同一主体调用 `approvals.respond(id, 'allow-once' | 'allow-session' | 'always-allow' | 'deny')`,成功返回 `undefined`。`approvals.rules(offset, limit)` 分页返回仍可用的规则和 `expiresAt`,`approvals.revoke(ruleId)` 撤销当前主体的规则。`full-access` 需要应用明确允许且使用 `task
|
|
493
|
+
`acpPolicy` 负责 `workspaceId` 快照、知识库、记忆、文件、Skills 和工具的业务授权。`allowTools` 与 `bindTools` 可接入下文的 MCP 入口。应用取得 `approval` 事件中的 `approvalId` 后,从同一主体调用 `approvals.respond(id, 'allow-once' | 'allow-session' | 'always-allow' | 'deny')`,成功返回 `undefined`。`approvals.rules(offset, limit)` 分页返回仍可用的规则和 `expiresAt`,`approvals.revoke(ruleId)` 撤销当前主体的规则。`full-access` 需要应用明确允许且使用 `task`。`session.submit({ prompt, idempotencyKey, context })` 返回可续读的任务回执。浏览器带 `taskId` 和已读序号调用 `tasks.events`。`session.status()` 可发现空闲回收的会话,创建新会话时可带入用户确认的 `historySummary`。`workspaces.readGitSnapshot` 为独占环境读取普通文件树,成功后可保存改动补丁,并在用户确认后调用 `workspaces.publishSnapshot` 发布独立任务分支。更多示例见 [Agent 工作台](../../apps/agent/README.md) 和 [受管调用](../../docs/usage/development/ai-acp.md#多用户应用的受管调用)。
|
|
494
494
|
|
|
495
495
|
#### 配置与数据库资源清单
|
|
496
496
|
|
|
@@ -90,6 +90,7 @@ declare const ACPAgentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
90
90
|
defaultModelId: z.ZodOptional<z.ZodString>;
|
|
91
91
|
environmentRefs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
92
92
|
environmentIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
93
|
+
sharedMode: z.ZodDefault<z.ZodBoolean>;
|
|
93
94
|
allowedCapabilities: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
|
|
94
95
|
defaults: z.ZodOptional<z.ZodObject<{
|
|
95
96
|
model: z.ZodOptional<z.ZodObject<{
|
|
@@ -178,6 +179,7 @@ declare const ACPAgentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
178
179
|
defaultModelId: z.ZodOptional<z.ZodString>;
|
|
179
180
|
environmentRefs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
180
181
|
environmentIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
182
|
+
sharedMode: z.ZodDefault<z.ZodBoolean>;
|
|
181
183
|
allowedCapabilities: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
|
|
182
184
|
defaults: z.ZodOptional<z.ZodObject<{
|
|
183
185
|
model: z.ZodOptional<z.ZodObject<{
|
|
@@ -272,6 +274,7 @@ declare const ACPAgentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
272
274
|
defaultModelId: z.ZodOptional<z.ZodString>;
|
|
273
275
|
environmentRefs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
274
276
|
environmentIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
277
|
+
sharedMode: z.ZodDefault<z.ZodBoolean>;
|
|
275
278
|
allowedCapabilities: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
|
|
276
279
|
defaults: z.ZodOptional<z.ZodObject<{
|
|
277
280
|
model: z.ZodOptional<z.ZodObject<{
|
|
@@ -396,6 +399,7 @@ declare const ACPConfigSchema: z.ZodObject<{
|
|
|
396
399
|
defaultModelId: z.ZodOptional<z.ZodString>;
|
|
397
400
|
environmentRefs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
398
401
|
environmentIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
402
|
+
sharedMode: z.ZodDefault<z.ZodBoolean>;
|
|
399
403
|
allowedCapabilities: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
|
|
400
404
|
defaults: z.ZodOptional<z.ZodObject<{
|
|
401
405
|
model: z.ZodOptional<z.ZodObject<{
|
|
@@ -484,6 +488,7 @@ declare const ACPConfigSchema: z.ZodObject<{
|
|
|
484
488
|
defaultModelId: z.ZodOptional<z.ZodString>;
|
|
485
489
|
environmentRefs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
486
490
|
environmentIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
491
|
+
sharedMode: z.ZodDefault<z.ZodBoolean>;
|
|
487
492
|
allowedCapabilities: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
|
|
488
493
|
defaults: z.ZodOptional<z.ZodObject<{
|
|
489
494
|
model: z.ZodOptional<z.ZodObject<{
|
|
@@ -578,6 +583,7 @@ declare const ACPConfigSchema: z.ZodObject<{
|
|
|
578
583
|
defaultModelId: z.ZodOptional<z.ZodString>;
|
|
579
584
|
environmentRefs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
580
585
|
environmentIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
586
|
+
sharedMode: z.ZodDefault<z.ZodBoolean>;
|
|
581
587
|
allowedCapabilities: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
|
|
582
588
|
defaults: z.ZodOptional<z.ZodObject<{
|
|
583
589
|
model: z.ZodOptional<z.ZodObject<{
|
|
@@ -5365,6 +5371,7 @@ declare const AIConfigSchema: z.ZodObject<{
|
|
|
5365
5371
|
defaultModelId: z.ZodOptional<z.ZodString>;
|
|
5366
5372
|
environmentRefs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
5367
5373
|
environmentIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
5374
|
+
sharedMode: z.ZodDefault<z.ZodBoolean>;
|
|
5368
5375
|
allowedCapabilities: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
|
|
5369
5376
|
defaults: z.ZodOptional<z.ZodObject<{
|
|
5370
5377
|
model: z.ZodOptional<z.ZodObject<{
|
|
@@ -5453,6 +5460,7 @@ declare const AIConfigSchema: z.ZodObject<{
|
|
|
5453
5460
|
defaultModelId: z.ZodOptional<z.ZodString>;
|
|
5454
5461
|
environmentRefs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
5455
5462
|
environmentIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
5463
|
+
sharedMode: z.ZodDefault<z.ZodBoolean>;
|
|
5456
5464
|
allowedCapabilities: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
|
|
5457
5465
|
defaults: z.ZodOptional<z.ZodObject<{
|
|
5458
5466
|
model: z.ZodOptional<z.ZodObject<{
|
|
@@ -5547,6 +5555,7 @@ declare const AIConfigSchema: z.ZodObject<{
|
|
|
5547
5555
|
defaultModelId: z.ZodOptional<z.ZodString>;
|
|
5548
5556
|
environmentRefs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
5549
5557
|
environmentIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
5558
|
+
sharedMode: z.ZodDefault<z.ZodBoolean>;
|
|
5550
5559
|
allowedCapabilities: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
|
|
5551
5560
|
defaults: z.ZodOptional<z.ZodObject<{
|
|
5552
5561
|
model: z.ZodOptional<z.ZodObject<{
|
|
@@ -5937,6 +5946,74 @@ type AIConfig = z.infer<typeof AIConfigSchema>;
|
|
|
5937
5946
|
*/
|
|
5938
5947
|
type AIConfigInput = z.input<typeof AIConfigSchema>;
|
|
5939
5948
|
|
|
5949
|
+
/**
|
|
5950
|
+
* 已授权的 Git 提交文件树,包含规范 Base64 数据。
|
|
5951
|
+
* @example
|
|
5952
|
+
* ```ts
|
|
5953
|
+
* import type { ACPProjectSnapshot } from '@h-ai/ai'
|
|
5954
|
+
* function revision(snapshot: ACPProjectSnapshot) { return snapshot.revision }
|
|
5955
|
+
* ```
|
|
5956
|
+
*/
|
|
5957
|
+
interface ACPProjectSnapshot {
|
|
5958
|
+
revision: string;
|
|
5959
|
+
files: Record<string, string>;
|
|
5960
|
+
}
|
|
5961
|
+
/**
|
|
5962
|
+
* 当前文件树相对于授权提交的改动。
|
|
5963
|
+
* @example
|
|
5964
|
+
* ```ts
|
|
5965
|
+
* import type { ACPProjectChanges } from '@h-ai/ai'
|
|
5966
|
+
* const empty: ACPProjectChanges = { patch: '', paths: [] }
|
|
5967
|
+
* ```
|
|
5968
|
+
*/
|
|
5969
|
+
interface ACPProjectChanges {
|
|
5970
|
+
patch: string;
|
|
5971
|
+
paths: string[];
|
|
5972
|
+
}
|
|
5973
|
+
/**
|
|
5974
|
+
* 从可信仓库目录读取指定提交的有界普通文件树。
|
|
5975
|
+
* @example 模块内部上下文
|
|
5976
|
+
* ```ts
|
|
5977
|
+
* async function read(directory: string) { return readGitSnapshot({ directory, revision: 'refs/heads/main' }) }
|
|
5978
|
+
* ```
|
|
5979
|
+
*/
|
|
5980
|
+
declare function readGitSnapshot(input: {
|
|
5981
|
+
directory: string;
|
|
5982
|
+
revision: string;
|
|
5983
|
+
maxBytes?: number;
|
|
5984
|
+
}, signal?: AbortSignal): Promise<ACPProjectSnapshot>;
|
|
5985
|
+
/**
|
|
5986
|
+
* 应用确认后的发布条件,目标分支固定在 agent/ 下。
|
|
5987
|
+
* @example
|
|
5988
|
+
* ```ts
|
|
5989
|
+
* import type { ACPPublishSnapshot } from '@h-ai/ai'
|
|
5990
|
+
* function branch(input: ACPPublishSnapshot) { return input.branch }
|
|
5991
|
+
* ```
|
|
5992
|
+
*/
|
|
5993
|
+
interface ACPPublishSnapshot {
|
|
5994
|
+
directory: string;
|
|
5995
|
+
remote: string;
|
|
5996
|
+
revision: string;
|
|
5997
|
+
patch: string;
|
|
5998
|
+
branch: string;
|
|
5999
|
+
date: string;
|
|
6000
|
+
author: {
|
|
6001
|
+
name: string;
|
|
6002
|
+
email: string;
|
|
6003
|
+
};
|
|
6004
|
+
}
|
|
6005
|
+
/**
|
|
6006
|
+
* 在独立 Git 目录中应用已验权的补丁,仅向任务分支执行普通 push。
|
|
6007
|
+
* @example 模块内部上下文
|
|
6008
|
+
* ```ts
|
|
6009
|
+
* async function confirmed(input: ACPPublishSnapshot) { return publishSnapshot(input) }
|
|
6010
|
+
* ```
|
|
6011
|
+
*/
|
|
6012
|
+
declare function publishSnapshot(input: ACPPublishSnapshot, signal?: AbortSignal): Promise<{
|
|
6013
|
+
branch: string;
|
|
6014
|
+
commit: string;
|
|
6015
|
+
}>;
|
|
6016
|
+
|
|
5940
6017
|
/**
|
|
5941
6018
|
* @h-ai/ai — A2A(Agent-to-Agent)子功能类型
|
|
5942
6019
|
*
|
|
@@ -6382,6 +6459,41 @@ declare const platformRequestSchema: z.ZodObject<{
|
|
|
6382
6459
|
agentId: z.ZodString;
|
|
6383
6460
|
}, z.core.$strict>;
|
|
6384
6461
|
|
|
6462
|
+
declare const submitTurnSchema: z.ZodObject<{
|
|
6463
|
+
output: z.ZodOptional<z.ZodObject<{
|
|
6464
|
+
format: z.ZodEnum<{
|
|
6465
|
+
text: "text";
|
|
6466
|
+
json: "json";
|
|
6467
|
+
}>;
|
|
6468
|
+
schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
6469
|
+
}, z.core.$strict>>;
|
|
6470
|
+
context: z.ZodOptional<z.ZodObject<{
|
|
6471
|
+
fileIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6472
|
+
knowledgeBaseIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6473
|
+
skillIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6474
|
+
memory: z.ZodOptional<z.ZodObject<{
|
|
6475
|
+
scope: z.ZodEnum<{
|
|
6476
|
+
user: "user";
|
|
6477
|
+
none: "none";
|
|
6478
|
+
space: "space";
|
|
6479
|
+
}>;
|
|
6480
|
+
spaceId: z.ZodOptional<z.ZodString>;
|
|
6481
|
+
write: z.ZodOptional<z.ZodEnum<{
|
|
6482
|
+
none: "none";
|
|
6483
|
+
confirm: "confirm";
|
|
6484
|
+
"on-success": "on-success";
|
|
6485
|
+
}>>;
|
|
6486
|
+
}, z.core.$strict>>;
|
|
6487
|
+
}, z.core.$strict>>;
|
|
6488
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
6489
|
+
queueTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
6490
|
+
runTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
6491
|
+
approvalTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
6492
|
+
maxOutputBytes: z.ZodOptional<z.ZodNumber>;
|
|
6493
|
+
}, z.core.$strict>>;
|
|
6494
|
+
prompt: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>]>;
|
|
6495
|
+
idempotencyKey: z.ZodString;
|
|
6496
|
+
}, z.core.$strict>;
|
|
6385
6497
|
/**
|
|
6386
6498
|
* 应用核验主体和任务所请求的高权限选项。
|
|
6387
6499
|
* @example
|
|
@@ -6409,8 +6521,25 @@ interface ACPPlatformPolicy {
|
|
|
6409
6521
|
allowWorkspace?: (scope: RunnerScope, workspaceId: string) => boolean | Promise<boolean>;
|
|
6410
6522
|
/** 在执行节点读取已授权的工作区文件。最多 8 个平铺普通文件,总量受执行环境和 16 MiB 上限约束。 */
|
|
6411
6523
|
resolveWorkspace?: (scope: RunnerScope, workspaceId: string, signal: AbortSignal) => Promise<Readonly<Record<string, Uint8Array>>>;
|
|
6524
|
+
/** 在工作区授权之后读取部署方登记的普通文件项目快照。 */
|
|
6525
|
+
resolveProject?: (scope: RunnerScope, workspaceId: string, signal: AbortSignal) => Promise<ACPProjectSnapshot | undefined>;
|
|
6526
|
+
/** 在成功轮次后发布补丁;只向浏览器交付已绑定主体的产物引用。 */
|
|
6527
|
+
publishProject?: (input: {
|
|
6528
|
+
scope: RunnerScope;
|
|
6529
|
+
workspaceId: string;
|
|
6530
|
+
sessionId: string;
|
|
6531
|
+
turnId: string;
|
|
6532
|
+
revision: string;
|
|
6533
|
+
changes: ACPProjectChanges;
|
|
6534
|
+
}, signal: AbortSignal) => Promise<{
|
|
6535
|
+
id: string;
|
|
6536
|
+
name: string;
|
|
6537
|
+
}>;
|
|
6412
6538
|
/** 在当前轮次装配经授权的知识片段、记忆及附件。只读;不共享宿主路径。 */
|
|
6413
|
-
resolveContext?: (scope: RunnerScope, request: ACPPlatformRequest, prompt: readonly ContentBlock[], signal: AbortSignal) => Promise<ContentBlock[]
|
|
6539
|
+
resolveContext?: (scope: RunnerScope, request: ACPPlatformRequest, prompt: readonly ContentBlock[], signal: AbortSignal) => Promise<ContentBlock[] | {
|
|
6540
|
+
blocks: ContentBlock[];
|
|
6541
|
+
citations?: ACPCitation[];
|
|
6542
|
+
}>;
|
|
6414
6543
|
/** 提交用户记忆。应用按 turnId 幂等写入,或登记人工确认。 */
|
|
6415
6544
|
commitMemory?: (input: {
|
|
6416
6545
|
scope: RunnerScope;
|
|
@@ -6439,6 +6568,19 @@ interface ACPPlatformPolicy {
|
|
|
6439
6568
|
* ```
|
|
6440
6569
|
*/
|
|
6441
6570
|
type ACPApprovalDecision = 'allow-once' | 'allow-session' | 'always-allow' | 'deny';
|
|
6571
|
+
/**
|
|
6572
|
+
* 与当前轮次实际使用的资料一起返回的应用引用。
|
|
6573
|
+
* @example
|
|
6574
|
+
* ```ts
|
|
6575
|
+
* import type { ACPCitation } from '@h-ai/ai'
|
|
6576
|
+
* const source: ACPCitation = { id: 'guide', title: 'Team guide', excerpt: 'Use Node.js.' }
|
|
6577
|
+
* ```
|
|
6578
|
+
*/
|
|
6579
|
+
interface ACPCitation {
|
|
6580
|
+
id: string;
|
|
6581
|
+
title: string;
|
|
6582
|
+
excerpt?: string;
|
|
6583
|
+
}
|
|
6442
6584
|
/**
|
|
6443
6585
|
* 受管会话及计划的调用参数。
|
|
6444
6586
|
* @example
|
|
@@ -6480,7 +6622,16 @@ interface ACPRunObserver {
|
|
|
6480
6622
|
* const options: ACPTurnOptions = { limits: { runTimeoutMs: 10000 }, output: { format: 'json' } }
|
|
6481
6623
|
* ```
|
|
6482
6624
|
*/
|
|
6483
|
-
type ACPTurnOptions = ACPRunObserver & Pick<ACPPlatformRequest, 'limits' | 'output'>;
|
|
6625
|
+
type ACPTurnOptions = ACPRunObserver & Pick<ACPPlatformRequest, 'context' | 'limits' | 'output'>;
|
|
6626
|
+
/**
|
|
6627
|
+
* 独立提交一轮。提交回执和执行进度可由各自的 HTTP 请求获取。
|
|
6628
|
+
* @example
|
|
6629
|
+
* ```ts
|
|
6630
|
+
* import type { ACPSubmitTurn } from '@h-ai/ai'
|
|
6631
|
+
* const turn: ACPSubmitTurn = { prompt: 'Summarize the document.', idempotencyKey: 'request-1' }
|
|
6632
|
+
* ```
|
|
6633
|
+
*/
|
|
6634
|
+
type ACPSubmitTurn = z.input<typeof submitTurnSchema>;
|
|
6484
6635
|
|
|
6485
6636
|
/**
|
|
6486
6637
|
* @h-ai/ai — RAG(Retrieval-Augmented Generation)子功能类型
|
|
@@ -9477,9 +9628,9 @@ declare function createACPOperations(provider: AIStoreProvider, config: AIConfig
|
|
|
9477
9628
|
}>>;
|
|
9478
9629
|
agents: {
|
|
9479
9630
|
describe: (id: string) => Promise<HaiResult<{
|
|
9631
|
+
workerModes: readonly ("shared" | "user" | "task")[];
|
|
9480
9632
|
managedTransport: "stdio";
|
|
9481
9633
|
protocols: readonly ApiType[];
|
|
9482
|
-
workerModes: readonly ("shared" | "user" | "task")[];
|
|
9483
9634
|
nativeResume: "load" | "resume" | "none";
|
|
9484
9635
|
id: string;
|
|
9485
9636
|
adapter: string;
|
|
@@ -9503,8 +9654,53 @@ declare function createACPOperations(provider: AIStoreProvider, config: AIConfig
|
|
|
9503
9654
|
cancel: (id: string) => Promise<HaiResult<_h_ai_runner.RunnerExecution>>;
|
|
9504
9655
|
};
|
|
9505
9656
|
sessions: {
|
|
9506
|
-
create: (request: ACPPlatformRequest
|
|
9657
|
+
create: (request: ACPPlatformRequest, options?: {
|
|
9658
|
+
idempotencyKey?: string;
|
|
9659
|
+
historySummary?: string;
|
|
9660
|
+
}) => Promise<HaiResult<{
|
|
9507
9661
|
id: string;
|
|
9662
|
+
status: () => Promise<HaiResult<"closed" | "expired" | "active">>;
|
|
9663
|
+
submit: (request: ACPSubmitTurn) => Promise<HaiResult<{
|
|
9664
|
+
taskId: string;
|
|
9665
|
+
sessionId: string;
|
|
9666
|
+
status: "unknown" | "queued" | "running" | "cancelling" | "cancelled" | "succeeded" | "failed";
|
|
9667
|
+
effectiveOptions: {
|
|
9668
|
+
readonly image: string;
|
|
9669
|
+
readonly resources: {
|
|
9670
|
+
cpu: number;
|
|
9671
|
+
memoryMiB: number;
|
|
9672
|
+
pids: number;
|
|
9673
|
+
scratchMiB: number;
|
|
9674
|
+
};
|
|
9675
|
+
readonly modelId: string;
|
|
9676
|
+
readonly model: {
|
|
9677
|
+
id?: string | undefined;
|
|
9678
|
+
reasoningEffort?: string | undefined;
|
|
9679
|
+
temperature?: number | undefined;
|
|
9680
|
+
maxOutputTokens?: number | undefined;
|
|
9681
|
+
};
|
|
9682
|
+
readonly permissions: {
|
|
9683
|
+
profile: "read-only" | "workspace" | "full-access";
|
|
9684
|
+
approval: "never" | "on-request";
|
|
9685
|
+
ruleIds?: string[] | undefined;
|
|
9686
|
+
};
|
|
9687
|
+
readonly limits: {
|
|
9688
|
+
readonly queueTimeoutMs: number;
|
|
9689
|
+
readonly runTimeoutMs: number;
|
|
9690
|
+
readonly approvalTimeoutMs: number;
|
|
9691
|
+
readonly maxOutputBytes: number;
|
|
9692
|
+
};
|
|
9693
|
+
readonly capabilities: string[];
|
|
9694
|
+
readonly reason: "user-policy" | "verified-shared" | "isolated-default" | "explicit";
|
|
9695
|
+
readonly nativeResume: "none" | "load" | "resume";
|
|
9696
|
+
readonly workspaceId?: string | undefined;
|
|
9697
|
+
readonly agentId: string;
|
|
9698
|
+
readonly adapter: string;
|
|
9699
|
+
readonly requestedMode: "auto" | "shared" | "user" | "task";
|
|
9700
|
+
readonly resolvedMode: "shared" | "user" | "task";
|
|
9701
|
+
readonly environmentId: string;
|
|
9702
|
+
};
|
|
9703
|
+
}>>;
|
|
9508
9704
|
prompt: (content: ACPRunRequest["prompt"], observer?: ACPTurnOptions) => Promise<HaiResult<{
|
|
9509
9705
|
taskId: string;
|
|
9510
9706
|
output: string | number | boolean | z.core.util.JSONType[] | {
|
|
@@ -9591,6 +9787,48 @@ declare function createACPOperations(provider: AIStoreProvider, config: AIConfig
|
|
|
9591
9787
|
}>>;
|
|
9592
9788
|
get: (id: string) => Promise<HaiResult<{
|
|
9593
9789
|
id: string;
|
|
9790
|
+
status: () => Promise<HaiResult<"closed" | "expired" | "active">>;
|
|
9791
|
+
submit: (request: ACPSubmitTurn) => Promise<HaiResult<{
|
|
9792
|
+
taskId: string;
|
|
9793
|
+
sessionId: string;
|
|
9794
|
+
status: "unknown" | "queued" | "running" | "cancelling" | "cancelled" | "succeeded" | "failed";
|
|
9795
|
+
effectiveOptions: {
|
|
9796
|
+
readonly image: string;
|
|
9797
|
+
readonly resources: {
|
|
9798
|
+
cpu: number;
|
|
9799
|
+
memoryMiB: number;
|
|
9800
|
+
pids: number;
|
|
9801
|
+
scratchMiB: number;
|
|
9802
|
+
};
|
|
9803
|
+
readonly modelId: string;
|
|
9804
|
+
readonly model: {
|
|
9805
|
+
id?: string | undefined;
|
|
9806
|
+
reasoningEffort?: string | undefined;
|
|
9807
|
+
temperature?: number | undefined;
|
|
9808
|
+
maxOutputTokens?: number | undefined;
|
|
9809
|
+
};
|
|
9810
|
+
readonly permissions: {
|
|
9811
|
+
profile: "read-only" | "workspace" | "full-access";
|
|
9812
|
+
approval: "never" | "on-request";
|
|
9813
|
+
ruleIds?: string[] | undefined;
|
|
9814
|
+
};
|
|
9815
|
+
readonly limits: {
|
|
9816
|
+
readonly queueTimeoutMs: number;
|
|
9817
|
+
readonly runTimeoutMs: number;
|
|
9818
|
+
readonly approvalTimeoutMs: number;
|
|
9819
|
+
readonly maxOutputBytes: number;
|
|
9820
|
+
};
|
|
9821
|
+
readonly capabilities: string[];
|
|
9822
|
+
readonly reason: "user-policy" | "verified-shared" | "isolated-default" | "explicit";
|
|
9823
|
+
readonly nativeResume: "none" | "load" | "resume";
|
|
9824
|
+
readonly workspaceId?: string | undefined;
|
|
9825
|
+
readonly agentId: string;
|
|
9826
|
+
readonly adapter: string;
|
|
9827
|
+
readonly requestedMode: "auto" | "shared" | "user" | "task";
|
|
9828
|
+
readonly resolvedMode: "shared" | "user" | "task";
|
|
9829
|
+
readonly environmentId: string;
|
|
9830
|
+
};
|
|
9831
|
+
}>>;
|
|
9594
9832
|
prompt: (content: ACPRunRequest["prompt"], observer?: ACPTurnOptions) => Promise<HaiResult<{
|
|
9595
9833
|
taskId: string;
|
|
9596
9834
|
output: string | number | boolean | z.core.util.JSONType[] | {
|
|
@@ -9746,6 +9984,7 @@ declare function createACPOperations(provider: AIStoreProvider, config: AIConfig
|
|
|
9746
9984
|
modelIds: string[];
|
|
9747
9985
|
environmentRefs: Record<string, string>;
|
|
9748
9986
|
environmentIds: string[];
|
|
9987
|
+
sharedMode: boolean;
|
|
9749
9988
|
allowedCapabilities: string[];
|
|
9750
9989
|
defaultModelId?: string | undefined;
|
|
9751
9990
|
defaults?: {
|
|
@@ -9809,6 +10048,7 @@ declare function createACPOperations(provider: AIStoreProvider, config: AIConfig
|
|
|
9809
10048
|
modelIds: string[];
|
|
9810
10049
|
environmentRefs: Record<string, string>;
|
|
9811
10050
|
environmentIds: string[];
|
|
10051
|
+
sharedMode: boolean;
|
|
9812
10052
|
allowedCapabilities: string[];
|
|
9813
10053
|
command?: string | undefined;
|
|
9814
10054
|
args?: string[] | undefined;
|
|
@@ -9876,6 +10116,7 @@ declare function createACPOperations(provider: AIStoreProvider, config: AIConfig
|
|
|
9876
10116
|
modelIds: string[];
|
|
9877
10117
|
environmentRefs: Record<string, string>;
|
|
9878
10118
|
environmentIds: string[];
|
|
10119
|
+
sharedMode: boolean;
|
|
9879
10120
|
allowedCapabilities: string[];
|
|
9880
10121
|
command?: string | undefined;
|
|
9881
10122
|
args?: string[] | undefined;
|
|
@@ -9957,6 +10198,7 @@ declare function createACPOperations(provider: AIStoreProvider, config: AIConfig
|
|
|
9957
10198
|
modelIds: string[];
|
|
9958
10199
|
environmentRefs: Record<string, string>;
|
|
9959
10200
|
environmentIds: string[];
|
|
10201
|
+
sharedMode: boolean;
|
|
9960
10202
|
allowedCapabilities: string[];
|
|
9961
10203
|
defaultModelId?: string | undefined;
|
|
9962
10204
|
defaults?: {
|
|
@@ -10020,6 +10262,7 @@ declare function createACPOperations(provider: AIStoreProvider, config: AIConfig
|
|
|
10020
10262
|
modelIds: string[];
|
|
10021
10263
|
environmentRefs: Record<string, string>;
|
|
10022
10264
|
environmentIds: string[];
|
|
10265
|
+
sharedMode: boolean;
|
|
10023
10266
|
allowedCapabilities: string[];
|
|
10024
10267
|
command?: string | undefined;
|
|
10025
10268
|
args?: string[] | undefined;
|
|
@@ -10087,6 +10330,7 @@ declare function createACPOperations(provider: AIStoreProvider, config: AIConfig
|
|
|
10087
10330
|
modelIds: string[];
|
|
10088
10331
|
environmentRefs: Record<string, string>;
|
|
10089
10332
|
environmentIds: string[];
|
|
10333
|
+
sharedMode: boolean;
|
|
10090
10334
|
allowedCapabilities: string[];
|
|
10091
10335
|
command?: string | undefined;
|
|
10092
10336
|
args?: string[] | undefined;
|
|
@@ -10167,6 +10411,7 @@ declare function createACPOperations(provider: AIStoreProvider, config: AIConfig
|
|
|
10167
10411
|
modelIds: string[];
|
|
10168
10412
|
environmentRefs: Record<string, string>;
|
|
10169
10413
|
environmentIds: string[];
|
|
10414
|
+
sharedMode: boolean;
|
|
10170
10415
|
allowedCapabilities: string[];
|
|
10171
10416
|
defaultModelId?: string | undefined;
|
|
10172
10417
|
defaults?: {
|
|
@@ -10230,6 +10475,7 @@ declare function createACPOperations(provider: AIStoreProvider, config: AIConfig
|
|
|
10230
10475
|
modelIds: string[];
|
|
10231
10476
|
environmentRefs: Record<string, string>;
|
|
10232
10477
|
environmentIds: string[];
|
|
10478
|
+
sharedMode: boolean;
|
|
10233
10479
|
allowedCapabilities: string[];
|
|
10234
10480
|
command?: string | undefined;
|
|
10235
10481
|
args?: string[] | undefined;
|
|
@@ -10297,6 +10543,7 @@ declare function createACPOperations(provider: AIStoreProvider, config: AIConfig
|
|
|
10297
10543
|
modelIds: string[];
|
|
10298
10544
|
environmentRefs: Record<string, string>;
|
|
10299
10545
|
environmentIds: string[];
|
|
10546
|
+
sharedMode: boolean;
|
|
10300
10547
|
allowedCapabilities: string[];
|
|
10301
10548
|
command?: string | undefined;
|
|
10302
10549
|
args?: string[] | undefined;
|
|
@@ -10380,6 +10627,7 @@ declare function createACPOperations(provider: AIStoreProvider, config: AIConfig
|
|
|
10380
10627
|
modelIds: string[];
|
|
10381
10628
|
environmentRefs: Record<string, string>;
|
|
10382
10629
|
environmentIds: string[];
|
|
10630
|
+
sharedMode: boolean;
|
|
10383
10631
|
allowedCapabilities: string[];
|
|
10384
10632
|
defaultModelId?: string | undefined;
|
|
10385
10633
|
defaults?: {
|
|
@@ -10443,6 +10691,7 @@ declare function createACPOperations(provider: AIStoreProvider, config: AIConfig
|
|
|
10443
10691
|
modelIds: string[];
|
|
10444
10692
|
environmentRefs: Record<string, string>;
|
|
10445
10693
|
environmentIds: string[];
|
|
10694
|
+
sharedMode: boolean;
|
|
10446
10695
|
allowedCapabilities: string[];
|
|
10447
10696
|
command?: string | undefined;
|
|
10448
10697
|
args?: string[] | undefined;
|
|
@@ -10510,6 +10759,7 @@ declare function createACPOperations(provider: AIStoreProvider, config: AIConfig
|
|
|
10510
10759
|
modelIds: string[];
|
|
10511
10760
|
environmentRefs: Record<string, string>;
|
|
10512
10761
|
environmentIds: string[];
|
|
10762
|
+
sharedMode: boolean;
|
|
10513
10763
|
allowedCapabilities: string[];
|
|
10514
10764
|
command?: string | undefined;
|
|
10515
10765
|
args?: string[] | undefined;
|
|
@@ -10633,6 +10883,15 @@ declare function createACPOperations(provider: AIStoreProvider, config: AIConfig
|
|
|
10633
10883
|
}>;
|
|
10634
10884
|
};
|
|
10635
10885
|
workspaces: {
|
|
10886
|
+
/** 从受信仓库的一次提交读取有界普通文件快照。 */
|
|
10887
|
+
readGitSnapshot: (input: Parameters<typeof readGitSnapshot>[0], signal?: AbortSignal) => Promise<HaiResult<ACPProjectSnapshot>>;
|
|
10888
|
+
/** 比较快照并生成可下载的补丁。 */
|
|
10889
|
+
diffSnapshot: (before: Record<string, string>, after: Record<string, string>, signal?: AbortSignal) => Promise<HaiResult<ACPProjectChanges>>;
|
|
10890
|
+
/** 应用重新验权后,向独立任务分支提交并普通推送。 */
|
|
10891
|
+
publishSnapshot: (input: Parameters<typeof publishSnapshot>[0], signal?: AbortSignal) => Promise<HaiResult<{
|
|
10892
|
+
branch: string;
|
|
10893
|
+
commit: string;
|
|
10894
|
+
}>>;
|
|
10636
10895
|
/**
|
|
10637
10896
|
* 新增数据库工作区并归一化存储位置;拒绝目录重叠或同一 volume 重复登记。
|
|
10638
10897
|
* @param input - 工作区存储位置、显式 Git 主分支和环境变量引用。
|
|
@@ -11772,6 +12031,8 @@ interface ACPAgentAdapterInput {
|
|
|
11772
12031
|
statePath: string;
|
|
11773
12032
|
/** 受管任务请求的权限范围。 */
|
|
11774
12033
|
permissionProfile?: 'read-only' | 'workspace' | 'full-access';
|
|
12034
|
+
/** 为经过隔离验证的原生适配器启用只读共享启动配置。 */
|
|
12035
|
+
shared?: boolean;
|
|
11775
12036
|
/** 已由适配器 Schema 校验的原生扩展选项。 */
|
|
11776
12037
|
nativeOptions?: Record<string, _h_ai_runner.RunnerJson>;
|
|
11777
12038
|
/** 模型声明支持且适配器可落实的推理级别。 */
|
|
@@ -11930,4 +12191,4 @@ interface ACPGitReport {
|
|
|
11930
12191
|
type ACPOperations = ReturnType<typeof createACPOperations>;
|
|
11931
12192
|
|
|
11932
12193
|
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 };
|
|
11933
|
-
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,
|
|
12194
|
+
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, ACPRunRequest 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, ACPApprovalDecision as dT, ACPCitation as dU, ACPPlatformPolicy as dV, ACPPlatformRequest as dW, ACPProjectChanges as dX, ACPProjectSnapshot as dY, ACPPublishSnapshot as dZ, ACPRunObserver as d_, 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, ACPSessionWorkspace as e0, ACPSubmitTurn as e1, ACPTurnOptions as e2, MCPJobFileContext as e3, MCPJobFiles as e4, MCPServiceAuthorization as e5, MCPServiceBinding as e6, MCPServiceBindingRequest as e7, MCPServiceBroker as e8, MCPServiceBrokerOptions as e9, MCPServiceOperations as ea, MCPServiceRequest as eb, 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,6 +1,6 @@
|
|
|
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-
|
|
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-DuPV5UGi.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
|
-
export { AudioClientConfig, AudioClientOperations, AudioTicketRequest, createAudioClient } from './client/index.js';
|
|
3
|
+
export { AudioClientConfig, AudioClientOperations, AudioTicketRequest, blobToWav, createAudioClient } from './client/index.js';
|
|
4
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';
|
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-LENTVEBE.js';
|
|
2
|
+
export { blobToWav, createAudioClient } from './chunk-ILUCWONQ.js';
|
|
3
3
|
export { HaiAIError } from './chunk-NRDLMUSY.js';
|
|
4
4
|
//# sourceMappingURL=browser.js.map
|
|
5
5
|
//# sourceMappingURL=browser.js.map
|