@h-ai/storage 1.0.0-beta.22 → 1.0.0-beta.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.en.md CHANGED
@@ -278,7 +278,7 @@ await storage.init({
278
278
  })
279
279
  ```
280
280
 
281
- Set `HAI_STORAGE_OPERATIONLOG_WRITE=false` to disable debug records for writes. When upgrading, remove `operationLog.level` and `HAI_STORAGE_OPERATIONLOG_LEVEL`. Set the global threshold through `HAI_CORE_LOGGING_LEVEL`.
281
+ Set `HAI_STORAGE_OPERATIONLOG_WRITE=false` to disable debug records for writes. Set the global threshold through `HAI_CORE_LOGGING_LEVEL`.
282
282
 
283
283
  For a failed `storage.file.put()`, inspect `error.code` and `error.message`. When available, `error.cause` holds the original error. A destination conflict with `ifNoneMatch: '*'` returns `ALREADY_EXISTS`. A source read failure, including a failed `createReadStream()`, returns `UPLOAD_FAILED`. Cancellation preserves `AbortSignal.reason`. Warnings include a reason summary and the underlying error code or HTTP status when available.
284
284
 
package/README.ja.md CHANGED
@@ -278,7 +278,7 @@ await storage.init({
278
278
  })
279
279
  ```
280
280
 
281
- `HAI_STORAGE_OPERATIONLOG_WRITE=false` で書き込み操作の `debug` ログを無効にできます。アップグレード時は `operationLog.level` と `HAI_STORAGE_OPERATIONLOG_LEVEL` を削除し、全体のログレベルを `HAI_CORE_LOGGING_LEVEL` で設定してください。
281
+ `HAI_STORAGE_OPERATIONLOG_WRITE=false` で書き込み操作の `debug` ログを無効にできます。全体のログレベルは `HAI_CORE_LOGGING_LEVEL` で設定します。
282
282
 
283
283
  `storage.file.put()` が失敗した場合は `error.code` と `error.message` を確認します。元のエラーがある場合は `error.cause` に保持します。`ifNoneMatch: '*'` で保存先が既に存在する場合は `ALREADY_EXISTS`、`createReadStream()` などのアップロード元を読み取れない場合は `UPLOAD_FAILED` を返します。キャンセル時は `AbortSignal.reason` を保持します。警告には失敗理由の要約と、取得できるエラーコードや HTTP ステータスが含まれます。
284
284
 
package/README.md CHANGED
@@ -320,7 +320,7 @@ await storage.init({
320
320
  })
321
321
  ```
322
322
 
323
- 设置 `HAI_STORAGE_OPERATIONLOG_WRITE=false` 可关闭写操作的 `debug` 记录。升级时移除原有的 `operationLog.level` 和 `HAI_STORAGE_OPERATIONLOG_LEVEL`,通过 `HAI_CORE_LOGGING_LEVEL` 调整全局阈值。
323
+ 设置 `HAI_STORAGE_OPERATIONLOG_WRITE=false` 可关闭写操作的 `debug` 记录。通过 `HAI_CORE_LOGGING_LEVEL` 调整全局阈值。
324
324
 
325
325
  `storage.file.put()` 失败时通过 `error.code` 和 `error.message` 区分场景,底层原因可用时保留在 `error.cause`。`ifNoneMatch: '*'` 的目标冲突返回 `ALREADY_EXISTS`,读取 `createReadStream()` 等上传源失败返回 `UPLOAD_FAILED`。主动取消保留 `AbortSignal.reason`。对应告警包含原因摘要及可用的底层错误码和 HTTP 状态。
326
326
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@h-ai/storage",
3
3
  "type": "module",
4
- "version": "1.0.0-beta.22",
4
+ "version": "1.0.0-beta.24",
5
5
  "description": "Hai Framework object storage module for S3-compatible and local backends.",
6
6
  "license": "Apache-2.0",
7
7
  "exports": {
@@ -39,7 +39,7 @@
39
39
  "@aws-sdk/client-s3": "^3.1164.0",
40
40
  "@aws-sdk/lib-storage": "^3.1164.0",
41
41
  "@aws-sdk/s3-request-presigner": "^3.1164.0",
42
- "@h-ai/core": "1.0.0-beta.22",
42
+ "@h-ai/core": "1.0.0-beta.24",
43
43
  "zod": "^4.6.7"
44
44
  },
45
45
  "devDependencies": {