@acosmi/sdk-ts 2.17.0 → 2.19.0

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.
@@ -1,4 +1,4 @@
1
- import { P as ProviderAdapter, p as ProviderFormat, n as ModelCapabilities, e as ChatRequest, f as ChatResponse, y as StreamEvent } from './index-yOZUFtNQ.js';
1
+ import { P as ProviderAdapter, p as ProviderFormat, n as ModelCapabilities, e as ChatRequest, f as ChatResponse, y as StreamEvent } from './index-C2oh157O.js';
2
2
 
3
3
  /**
4
4
  * Anthropic 内容块
@@ -1,4 +1,4 @@
1
- import { P as ProviderAdapter, p as ProviderFormat, n as ModelCapabilities, e as ChatRequest, f as ChatResponse, y as StreamEvent } from './index-yOZUFtNQ.cjs';
1
+ import { P as ProviderAdapter, p as ProviderFormat, n as ModelCapabilities, e as ChatRequest, f as ChatResponse, y as StreamEvent } from './index-C2oh157O.cjs';
2
2
 
3
3
  /**
4
4
  * Anthropic 内容块
@@ -10,7 +10,7 @@
10
10
  | 项目 | 值 |
11
11
  | -------- | -- |
12
12
  | 实现地位 | **主实现 / 事实标准**;Go SDK 暂停维护,后续从 TS 反向翻译 |
13
- | 当前版本 | **2.7.0**(远控管理面补齐 + BYOK 密钥客户端 + Chat Bridge CRUD Phase 7B,minor,2026-06-11;上游 2.1.0 远控 / 2.2.0 图片视频 / 2.3.0 `apiBaseURL` / 2.4.0 `skillMd?` / 2.5.0 健康度审计根因修复 / 2.5.1 adapter 格式护栏 / 2.6.0 会员订阅查询 + WS ticket,详见 §14 CHANGELOG |
13
+ | 当前版本 | **2.18.0**(`ManagedModel.thinking_levels` 类型面对齐,加性、零行为变化,2026-08-29;近期链 2.14.0 inputModalities 开放值域 / 2.15.0 sources 四态 / 2.16.0 chat 超时预算下传 + 流式活性回调 / 2.17.0 桌面 loopback OAuth state 全路径闸,完整明细以 CHANGELOG 为唯一真源) |
14
14
  | 版本策略 | TS 独立演进;wire-format / API 不兼容变更升 major(v2.0.0 已发,见 §10 / §18) |
15
15
  | 主消费者 | `crabcode` (Anthropic 格式)、`crabdesign` / `crabclaw` 等下游产品 |
16
16
  | 长期保留 | `OpenAIAdapter` (P0 红线,`crabclaw` 暂不用 TS 但保留双格式等地位) |
@@ -19,11 +19,13 @@
19
19
  ## 2. 仓库与发布拓扑
20
20
 
21
21
  ```
22
- SDK 独立仓 (public) npm 公开包
23
- /Users/fushihua/Desktop/Acosmi/acosmi-sdk-ts npmjs.com/@acosmi/sdk-ts
24
- └── github.com/acosmi/sdk-ts └── tag v* 触发 release workflow
22
+ monorepo 真源 (acosmi/cloud-agent) SDK 独立仓 (public) npm 公开包
23
+ acosmi-sdk-ts/ 子目录 ── mirror-subtrees.yml ─→ github.com/acosmi/sdk-ts ──→ npmjs.com/@acosmi/sdk-ts
24
+ (push main 自动 subtree-split + force-push) └── tag v* / dispatch 触发 release.yml
25
25
  ```
26
26
 
27
+ > 源码改动一律发生在 monorepo;公开仓只接收镜像与 tag。完整发版拓扑与触发方式见 §9.2.1。
28
+
27
29
  **铁律**:
28
30
  - SDK 是独立发布物,提交与 tag 只在 `acosmi-sdk-ts` 仓库内完成。
29
31
  - 不把外层 monorepo 的 Java / Go / CFCA real provider 改动带入 SDK commit。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acosmi/sdk-ts",
3
- "version": "2.17.0",
3
+ "version": "2.19.0",
4
4
  "description": "Acosmi TypeScript SDK:模型网关、Agent Run Gateway 与 Compliance(电子证据、时间章、报告、签署 envelope)统一客户端,支持浏览器 / Node ≥18 / Deno / Bun。",
5
5
  "type": "module",
6
6
  "main": "./dist/node/index.cjs",