@h-ai/ai 1.0.0-beta.30 → 1.0.0-beta.32

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.
Files changed (48) hide show
  1. package/README.en.md +11 -1114
  2. package/README.ja.md +10 -1113
  3. package/README.md +11 -1137
  4. package/dist/{ai-acp-types-DuPV5UGi.d.ts → ai-acp-types-cue1ZWUk.d.ts} +4970 -5227
  5. package/dist/ai-file-types-BN7l67hR.d.ts +167 -0
  6. package/dist/ai-file-worker.d.ts +38 -0
  7. package/dist/ai-file-worker.js +85 -0
  8. package/dist/ai-file-worker.js.map +1 -0
  9. package/dist/ai-video-archive-worker.d.ts +32 -0
  10. package/dist/ai-video-archive-worker.js +102 -0
  11. package/dist/ai-video-archive-worker.js.map +1 -0
  12. package/dist/browser.d.ts +5 -2
  13. package/dist/browser.js +4 -3
  14. package/dist/{chunk-NRDLMUSY.js → chunk-C6T3ONVG.js} +4 -8
  15. package/dist/chunk-C6T3ONVG.js.map +1 -0
  16. package/dist/{chunk-LENTVEBE.js → chunk-HZDINADT.js} +254 -973
  17. package/dist/chunk-HZDINADT.js.map +1 -0
  18. package/dist/chunk-IVEOIRBO.js +971 -0
  19. package/dist/chunk-IVEOIRBO.js.map +1 -0
  20. package/dist/chunk-OWR55FRO.js +140 -0
  21. package/dist/chunk-OWR55FRO.js.map +1 -0
  22. package/dist/{chunk-ILUCWONQ.js → chunk-UVBQCI7A.js} +3 -3
  23. package/dist/{chunk-ILUCWONQ.js.map → chunk-UVBQCI7A.js.map} +1 -1
  24. package/dist/client/index.js +2 -2
  25. package/dist/index.d.ts +6 -3
  26. package/dist/index.js +1492 -743
  27. package/dist/index.js.map +1 -1
  28. package/models/agents/README.md +3 -1
  29. package/models/agents/deepseek-harness/Dockerfile +2 -0
  30. package/package.json +10 -10
  31. package/dist/chunk-LENTVEBE.js.map +0 -1
  32. package/dist/chunk-NRDLMUSY.js.map +0 -1
  33. package/tools/.dockerignore +0 -4
  34. package/tools/README.md +0 -111
  35. package/tools/archives.py +0 -56
  36. package/tools/browser/Dockerfile +0 -19
  37. package/tools/browser/operation.py +0 -50
  38. package/tools/browser/render.mjs +0 -40
  39. package/tools/documents/Dockerfile +0 -20
  40. package/tools/documents/operation.py +0 -80
  41. package/tools/ocr/Dockerfile +0 -19
  42. package/tools/ocr/operation.py +0 -18
  43. package/tools/office/Dockerfile +0 -21
  44. package/tools/office/office_job.py +0 -65
  45. package/tools/office/operation.py +0 -43
  46. package/tools/tests/image-smoke.mjs +0 -83
  47. package/tools/tests/test_hai_tool.py +0 -82
  48. package/tools/tool.py +0 -145
@@ -32,7 +32,7 @@ pnpm --filter @h-ai/ai agent:build goose --variant=office
32
32
  | `browser` | Chromium 和字体 |
33
33
  | `developer` | 编译基础工具、Python 3、pip 和 venv,可另选 JDK、Rust/Cargo、Go |
34
34
 
35
- 运行 Codex 工作区沙箱要求宿主容器引擎支持 bubblewrap。Chromium 镜像需要满足浏览器沙箱和部署网络策略。固定的文档、Office、OCR 和浏览器作业另有独立镜像。[独立工具镜像](../../tools/README.md)
35
+ 运行 Codex 工作区沙箱要求宿主容器引擎支持 bubblewrap。Chromium 镜像需要满足浏览器沙箱和部署网络策略。固定的文档、Office、OCR 和浏览器作业另有独立镜像。[独立工具镜像](../../../tools/jobs/README.md)
36
36
 
37
37
  在 developer 变体按需增加工具链。
38
38
 
@@ -100,6 +100,8 @@ acp:
100
100
 
101
101
  原生版本、程序和传输见各目录的 `agent.json`。构建选项包括 `--engine=auto|podman|docker`、`--variant=minimal|documents|office|browser|developer` 及 developer 的 `--java`、`--rust`、`--go`。
102
102
 
103
+ DeepSeek Harness 镜像设置 `NARB_DISABLE_NATIVE_CACHE=1`,从镜像内直接加载 npm 安装的原生扩展。Docker 受管 Worker 的 `/tmp` 可以继续使用 `noexec`。已有镜像需要重新构建,并将执行环境指向新镜像 ID。
104
+
103
105
  代理通过Agent/workspace环境引用显式提供,并使用容器可达地址。Podman VM不能访问宿主127.0.0.1代理,受管运行不自动继承引擎服务代理。能力容量、超时、模型绑定和凭据隔离见[ACP接入](../../../cli/templates/skills/hai-ai/acp.md)与[配置手册](../../../../docs/usage/configuration/ai.md)。
104
106
 
105
107
  ## 错误处理
@@ -13,6 +13,8 @@ RUN npm install --global @deepseek-ai/dsh@0.2.1-rc.5
13
13
  RUN mkdir -p /workspace /state && chown node:node /workspace /state
14
14
  USER node
15
15
  ENV HOME=/state
16
+ # 直接从镜像加载原生扩展,兼容 Docker 中带 noexec 的 /tmp。
17
+ ENV NARB_DISABLE_NATIVE_CACHE=1
16
18
  WORKDIR /workspace
17
19
  ENTRYPOINT ["dsh"]
18
20
  CMD ["--profile", "acp"]
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@h-ai/ai",
3
3
  "type": "module",
4
- "version": "1.0.0-beta.30",
4
+ "version": "1.0.0-beta.32",
5
5
  "description": "Hai Framework AI module (LLM, MCP, tools, and clients).",
6
6
  "license": "Apache-2.0",
7
7
  "exports": {
@@ -24,8 +24,7 @@
24
24
  "types": "./dist/index.d.ts",
25
25
  "files": [
26
26
  "dist",
27
- "models/agents",
28
- "tools"
27
+ "models/agents"
29
28
  ],
30
29
  "publishConfig": {
31
30
  "access": "public"
@@ -36,13 +35,15 @@
36
35
  "dependencies": {
37
36
  "@a2a-js/sdk": "^1.3.0",
38
37
  "@agentclientprotocol/sdk": "2.4.0",
39
- "@h-ai/api-contract": "1.0.0-beta.30",
40
- "@h-ai/core": "1.0.0-beta.30",
41
- "@h-ai/datapipe": "1.0.0-beta.30",
42
- "@h-ai/reldb": "1.0.0-beta.30",
43
- "@h-ai/runner": "1.0.0-beta.30",
44
- "@h-ai/vecdb": "1.0.0-beta.30",
38
+ "@h-ai/api-contract": "1.0.0-beta.32",
39
+ "@h-ai/core": "1.0.0-beta.32",
40
+ "@h-ai/datapipe": "1.0.0-beta.32",
41
+ "@h-ai/reldb": "1.0.0-beta.32",
42
+ "@h-ai/runner": "1.0.0-beta.32",
43
+ "@h-ai/tools": "1.0.0-beta.32",
44
+ "@h-ai/vecdb": "1.0.0-beta.32",
45
45
  "@modelcontextprotocol/sdk": "^1.32.2",
46
+ "fflate": "^0.8.3",
46
47
  "nanoid": "^6.0.2",
47
48
  "openai": "^7.53.0",
48
49
  "parse5": "^8.1.1",
@@ -68,7 +69,6 @@
68
69
  "test": "vitest run",
69
70
  "test:watch": "vitest watch",
70
71
  "test:coverage": "vitest run --coverage",
71
- "test:tools": "python3 -B -m unittest discover -s tools/tests",
72
72
  "clean": "rimraf dist .turbo",
73
73
  "model:list": "node models/build.mjs list",
74
74
  "model:prepare": "node models/build.mjs prepare",