> 完整任务结果 · 模拟客户费用
本次22题对照
两组各通过19题
估算费用低 41.8%
12道小任务+10道真实仓库历史任务。综合数据仅汇总两轮共同对照;各轮完整结果分列。
XCR自行开展的测试;未经对照供应商或开源项目赞助、认证或背书。仅评测AI编程中的实现任务,未测从想法到发布的完整流程;限本次任务与评测构建,不代表总体等效。
01 / 综合结果
本次22题样本,估算费用低 41.8%
100倍费用换算 · 假设示例,未实测
假设把本次22题样本按原任务配比重复100份,共2,200次任务,并保持单位成本不变,按保守费用口径:
费用差额约 $128.38,对应本样本保守节省 41.8%。
仅把观测费用乘以100,用于理解金额;没有执行2,200次任务,也不是实际账单、月费承诺或大项目预测。不能据此预测更大规模的成功率、耗时或节省保证。任务结构、价格档位、缓存和重做情况变化都会改变实际费用。
估算费用差异 · 对照 Astra
41.8%两轮共同22题;保守仅指费用上下界口径,不是统计保证。
样本完整通过
19 / 22XCR与Astra均为86.4%。
真实仓库质量对照
70% / 40%XCR与Luna,限第二轮10题。
这些是本次样本结果。XCR与Astra共同通过18题,各自独有通过1题,另2题都未通过;相同完成数不证明总体能力等效。
综合平均比较
| 方案 | 完整通过 / 样本通过率 | 样本任务费用合计 | 平均每题费用 |
|---|---|---|---|
| XCR | 19/22 · 86.4% | $1.6396–$1.7870 | $0.0745–$0.0812 |
| Astra | 19/22 · 86.4% | $3.0708–$3.4858 | $0.1396–$0.1584 |
XCR为模拟客户费用(API成本加20%);对照为模型API费用。失败任务与相关中断重做费用保留;未知用量以费用区间表示。费用由测试时计价快照与返回用量估算,缓存、思考token与实际服务档位计入。未含外层AI编程工具调用、评测工具开发调试、税费及汇率差异;不是已确认账单,也不是当前官网报价。
两轮共同对照共22题,每题权重相同。合计费用÷22得到平均费用;节省率=1−XCR费用上界÷Astra费用下界。没有直接平均两轮节省百分比。Sol、Sonnet与Luna未覆盖两轮,不能拼成22题比较。
分别看两轮,保留任务难度差异
| 样本 | XCR / Astra 完整通过 | XCR费用 | Astra费用 | 保守节省 |
|---|---|---|---|---|
| 第一轮 · 小任务 | 12/12 · 12/12 | $0.0941 | $0.6075–$1.0226 | 84.5% |
| 第二轮 · 真实仓库 | 7/10 · 7/10 | $1.5455–$1.6929 | $2.4633 | 31.3% |
综合费用由真实仓库任务主导。用户任务配比变化时,综合通过率和节省率都可能不同。
02 / 分项报告
第一次测试 · 小型实现任务
12道独立正式任务,TypeScript 8题、Python 4题;修复、功能、跨文件、重构、界面行为、可靠性六类各2题。四组同题共48条有效记录。开发筛选不计入正式成绩。
质量与费用
| 方案 | 完整通过 / 样本通过率 | 样本任务费用合计 | 平均每题费用 |
|---|---|---|---|
| XCR | 12/12 · 100.0% | $0.0941 | $0.0078 |
| Astra | 12/12 · 100.0% | $0.6075–$1.0226 | $0.0506–$0.0852 |
| Sol | 12/12 · 100.0% | $0.2261 | $0.0188 |
| Sonnet | 12/12 · 100.0% | $0.3086 | $0.0257 |
XCR为模拟客户费用(API成本加20%);对照为模型API费用。失败任务与相关中断重做费用保留;未知用量以费用区间表示。费用由测试时计价快照与返回用量估算,缓存、思考token与实际服务档位计入。未含外层AI编程工具调用、评测工具开发调试、税费及汇率差异;不是已确认账单,也不是当前官网报价。
四组均12/12。XCR相对Astra保守节省84.5%,相对Sol节省58.4%,相对Sonnet节省69.5%。第一轮没有Luna单模型对照。
全部逐题结果
| 任务 | XCR | Astra | Sol | Sonnet |
|---|---|---|---|---|
| F1 · 含时区的日期范围边界 ts · bugfix | 完整通过 $0.0664 · 97秒 | 完整通过 $0.1120 · 84秒 | 完整通过 $0.0494 · 110秒 | 完整通过 $0.0384 · 25秒 |
| F2 · 税额分厘舍入与输入校验 py · bugfix | 完整通过 $0.0004 · 20秒 | 完整通过 $0.0258 · 18秒 | 完整通过 $0.0084 · 27秒 | 完整通过 $0.0164 · 11秒 |
| F3 · 带引号字段的 CSV 联系人导入 ts · feature | 完整通过 $0.0008 · 40秒 | 完整通过 $0.0746 · 65秒 | 完整通过 $0.0282 · 59秒 | 完整通过 $0.0326 · 21秒 |
| F4 · 游标分页去重收集 py · feature | 完整通过 $0.0005 · 32秒 | 完整通过 $0.0460 · 34秒 | 完整通过 $0.0156 · 36秒 | 完整通过 $0.0226 · 14秒 |
| F5 · 跨模块库存预留与订单提交 ts · cross-file | 完整通过 $0.0215 · 49秒 | 完整通过 $0.0399–$0.4550 · 29秒 | 完整通过 $0.0152 · 49秒 | 完整通过 $0.0287 · 17秒 |
| F6 · 请求配额跨模块校验 ts · cross-file | 完整通过 $0.0007 · 71秒 | 完整通过 $0.0371 · 40秒 | 完整通过 $0.0135 · 44秒 | 完整通过 $0.0300 · 17秒 |
| F7 · 事件监听器解绑语义重构 ts · refactor | 完整通过 $0.0005 · 28秒 | 完整通过 $0.0350 · 24秒 | 完整通过 $0.0134 · 32秒 | 完整通过 $0.0205 · 12秒 |
| F8 · 指标统计格式化重构 py · refactor | 完整通过 $0.0005 · 26秒 | 完整通过 $0.0327 · 25秒 | 完整通过 $0.0126 · 31秒 | 完整通过 $0.0212 · 13秒 |
| F9 · 多选状态与键盘导航 ts · frontend | 完整通过 $0.0005 · 29秒 | 完整通过 $0.0280 · 45秒 | 完整通过 $0.0120 · 31秒 | 完整通过 $0.0203 · 14秒 |
| F10 · 可访问菜单焦点导航 ts · frontend | 完整通过 $0.0006 · 29秒 | 完整通过 $0.0318 · 23秒 | 完整通过 $0.0122 · 34秒 | 完整通过 $0.0197 · 28秒 |
| F11 · 租约队列认领与过期回收 ts · reliability | 完整通过 $0.0010 · 57秒 | 完整通过 $0.0541 · 37秒 | 完整通过 $0.0121 · 49秒 | 完整通过 $0.0304 · 18秒 |
| F12 · 半开探针熔断器 py · reliability | 完整通过 $0.0008 · 42秒 | 完整通过 $0.0906 · 63秒 | 完整通过 $0.0337 · 82秒 | 完整通过 $0.0276 · 16秒 |
质量不足与耗时
XCR未出现错误放行。12题全通过仅代表这组小任务的观测结果,不能宣称总体准确率100%。
XCR耗时中位数36秒;Astra35.5秒、Sol40秒、Sonnet16.5秒。 耗时为最终有效尝试,未包含基础设施中断前的等待;相关API费用仍保留。
测试条件与解释
- 每组获得相同题面和起始代码,从干净工作副本执行;验收要求在正式执行前固定。对照使用官方模型API与工具循环,不冒称原生订阅产品。
- 每次干净尝试最多8次生成请求;直接对照最多40次本地工具执行,生成请求包含读文件和工具决策。达到请求上限的未完成结果仍记为未通过。
- 允许读文件、编辑、运行检查与修复;评分不提供隐藏答案。XCR流程与单模型工具循环不同,本轮比较完整工作流程。
- 基础设施和评测接线错误先修复,再从干净副本执行;正式代码不足计入结果。保留全部正式题,费用区间包含对应中断与重做的不确定费用。
| 对照名称 | 官方API标识 | 推理档位 | 服务方式 |
|---|---|---|---|
| Astra | OpenAI / gpt-6-astra | high | Flex优先;明确容量拒绝后回退Standard,按实际返回档位计价 |
| Sol | OpenAI / gpt-6.1-sol | high | Flex优先;明确容量拒绝后回退Standard,按实际返回档位计价 |
| Sonnet | Anthropic / claude-sonnet-5-5 | high | Standard |
XCR评测构建:2026-10-13 / 第一轮。本次结果尚未验证正式部署版本。完整通过由固定任务验收判定;XCR额外要求自身报告完成,没有将未完整交付记为成功。每组存在固定执行和费用停止条件,流程并不完全相同。
| 对照计价快照 · 美元/百万token | 输入 / 输出 | 缓存输入系数 | 来源 |
|---|---|---|---|
| Astra | Flex 5 / 25;Standard 10 / 50 | 0.1× | 官方价格说明 |
| Sol | Flex 1 / 5;Standard 2 / 10 | 0.05× | 官方价格说明 |
| Sonnet | Standard 2 / 10 | 0.05×;写入1.25× | 官方价格说明 |
计价快照日期:2026-10-13;并非当前价格承诺。按实际返回用量和服务档位估算,包含计费思考token及缓存调整。本次Sonnet返回的缓存命中用量为0,因此缓存单价不影响该对照费用。相关未知请求费用下界不计未知额,上界计最高预留;保守节省使用XCR上界和对照下界,不用对照未知费用美化结果。
题目说明
- F1 · 含时区的日期范围边界
Fix `parseRange`. Date-only inputs (`YYYY-MM-DD`) mean whole UTC calendar days, with the end date inclusive. Inputs with a time or timezone remain exact instants. Reject invalid dates, malformed values, and ranges whose normalized start is after the normalized end with RangeError. Return Unix milliseconds.
题目SHA-256:d8d34f8a21f6fe9eff949cf71c5ac54ea0ca3a034015c2d24396359e78366f7c
- F2 · 税额分厘舍入与输入校验
Fix `line_tax_cents`: validate non-negative integer cents and integer basis points from 0 through 10000, reject booleans, and round tax half up using integer arithmetic. Preserve the function name and raise ValueError for invalid input.
题目SHA-256:e6da4efe4c7f6b0d1ec1fdc02ea94799e830cc005da6df994dfbfed806beb9ef
- F3 · 带引号字段的 CSV 联系人导入
Add `importContacts(text: string, idHeader: string, nameHeader: string): Contact[]` in `src/importContacts.ts`. It must parse a header row and CSV records (quoted commas and doubled quotes supported), map the selected header names to `{id, name}`, trim values, skip rows with an empty id, and reject missing required headers or malformed quoted fields with SyntaxError. Keep `parseCsvRow` exported for focused testing.
题目SHA-256:28429a04d0d9f670413adafb3f1e0c1e2ea8e65d6edcb7118574d63a6538c8eb
- F4 · 游标分页去重收集
Add paginated collection across `src/page_types.py` and `src/pager.py`. `collect_pages(fetch, start_cursor=None, max_pages=100)` calls `fetch(cursor)` and receives `{items, next_cursor}`. Stop at a null cursor, a repeated cursor, or max_pages. Deduplicate items by their `id`, preserving the first-seen item and page order. Reject max_pages unless it is a positive integer (booleans are invalid), with ValueError. Keep source pages untouched.
题目SHA-256:752b9965ade51fde476934848f06a01b770d63350f04e3f6572fca63d84da3af
- F5 · 跨模块库存预留与订单提交
Implement stock reservations across `src/inventory.ts` and `src/orders.ts`. `reserveStock` returns a new inventory map after reserving every requested SKU, and returns null if any SKU is missing or insufficient; it must not partially mutate the input. `placeOrder` returns `{inventory, status:'accepted'}` on success or `{inventory: original, status:'rejected'}` on failure. Duplicate SKUs in an order are additive. Negative or non-integer line quantities must reject the whole order.
题目SHA-256:2b9088cc24c5c49b26718cccbf5bc7a1ea1c83c54cb54c6e680fe73e5b198cbb
- F6 · 请求配额跨模块校验
Add a per-user quota across `src/quota.ts` and `src/service.ts`. `consumeQuota(state, user, amount, limit)` returns a new state with the amount added when the resulting usage is at most the limit, otherwise null. Reject non-positive/non-integer amounts and invalid limits. `runRequest` must call the quota helper first, return `{ok:false, state:original}` on rejection, and only invoke the supplied operation after quota is accepted; successful calls return its value and the updated state.
题目SHA-256:00f60bb01bdf13d6290c311ee50b0d5178c6bf5f6ffbf7246b5c236d0de52045
- F7 · 事件监听器解绑语义重构
Refactor `Emitter` into named `addListener`, `removeListener`, and `dispatch` helpers while keeping the public `on` and `emit` behavior. `on` returns an idempotent unsubscribe function. Registering the same function twice creates two subscriptions; calling one unsubscribe removes only its own registration. Dispatch uses a snapshot so listeners added during an emit start on the next emit, while listeners removed during an emit still run if they were already in that snapshot.
题目SHA-256:f11daa338f5557ed585c53647c9dfdfd40be25509c82b0904ec61eda83db8472
- F8 · 指标统计格式化重构
Refactor `render_metrics` into `clean_samples`, `summarize`, and `render_summary`, preserving the current public output and function signature. The helpers are clean_samples(samples) returning normalized rows, summarize(cleaned_samples) returning a name-to-mean mapping, and render_summary(summary) returning the formatted string. Ignore samples with non-finite values, preserve insertion order for metric names, compute the arithmetic mean, and format to exactly two decimals. Never mutate the samples.
题目SHA-256:8d1d710f85e2c076c7184b3c672e8a4c668d432fedddd96e93ecb9eb63fad373
- F9 · 多选状态与键盘导航
Implement selection helpers in `src/selection.ts`. `toggleSelected(selected, value)` adds or removes a value without mutating the array and removes all duplicate copies when deselecting. `moveActive(current: number, enabled: number[], key: string)` moves among enabled item indexes only: ArrowDown/ArrowUp wrap, Home/End select the first/last enabled index, and unknown keys preserve the current index. An empty enabled list returns the current index.
题目SHA-256:7ed71f736a54cfd0a44917c8ce4718bbf5eb03aa1801e15b723d34312a069a67
- F10 · 可访问菜单焦点导航
Complete `menuFocus` in `src/menuFocus.ts`. Given menu items with `disabled`, `hidden`, and a stable `id`, return the next focusable item's index. ArrowDown/ArrowUp wrap; Home/End jump to the first/last focusable item. If the current index is not focusable, ArrowDown starts at the first and ArrowUp at the last. Unknown keys or no focusable items return the original current index.
题目SHA-256:2cbd20464f0e2c86f7ef63d2b8562987fee551b01e59507c1a55403166208302
- F11 · 租约队列认领与过期回收
Implement the in-memory leased queue in `src/leaseQueue.ts`. Enqueue must reject duplicate IDs with RangeError. `claim(worker, now, leaseMs)` returns the oldest queued job or an expired leased job, sets its owner/expiry, and increments attempts; empty worker names and non-positive leases return null; it returns null if nothing is available. `ack(id, worker, now)` succeeds only for the current owner before or at expiry. `retry(id, worker, now)` returns the job to queued only for its current owner before or at expiry. Unknown IDs, stale owners, and expired leases return false. An expired job becomes available strictly after expiry. Never mutate job payloads or return internal mutable references; keep snapshot() as an isolated deep copy of all jobs.
题目SHA-256:cc6533121dc15322f7b44889697793836a3a0d5cea4c0a84f77b7c29bc531a68
- F12 · 半开探针熔断器
Implement `CircuitBreaker` in `src/breaker.py` with injected monotonic clock. It starts closed. After `failure_threshold` consecutive failures it opens for `cooldown_seconds`; after cooldown exactly one request may be admitted as the half-open probe. A probe success closes and resets failures; probe failure reopens for a full cooldown. `allow_request` and record methods must handle clock advancement deterministically. failure_threshold must be a positive integer, excluding booleans; cooldown_seconds must be non-negative. Invalid thresholds/cooldowns raise ValueError.
题目SHA-256:e500a1566dcff09c6a61f8db95363f02a8494e532a1e05cb3d164fa3787c2256
03 / 分项报告
第二次测试 · 真实仓库历史实现任务
Remeda(TypeScript)与Boltons(Python)各5题;4道修复、4道功能、2道重构。三组同题共30条有效记录,所有题目保留。
质量与费用
| 方案 | 完整通过 / 样本通过率 | 样本任务费用合计 | 平均每题费用 |
|---|---|---|---|
| XCR | 7/10 · 70.0% | $1.5455–$1.6929 | $0.1546–$0.1693 |
| Astra | 7/10 · 70.0% | $2.4633 | $0.2463 |
| Luna | 4/10 · 40.0% | 仅比较质量 | — |
XCR为模拟客户费用(API成本加20%);对照为模型API费用。失败任务与相关中断重做费用保留;未知用量以费用区间表示。费用由测试时计价快照与返回用量估算,缓存、思考token与实际服务档位计入。未含外层AI编程工具调用、评测工具开发调试、税费及汇率差异;不是已确认账单,也不是当前官网报价。
XCR与Astra均7/10;共同通过6题,各有1题独有通过,2题都未通过。XCR相对Astra保守节省31.3%。XCR与Luna共同通过4题,XCR额外通过3题,另3题都未通过:本轮完整通过率70%与40%,相差30个百分点。
全部逐题结果
| 任务 | XCR | Luna | Astra |
|---|---|---|---|
| R01 · 空数组的 zip/zipWith remeda · bugfix | 完整通过 $0.0072 · 51秒 | 未完整通过 | 完整通过 $0.2503 · 61秒 |
| R02 · 惰性流水线提前结束与状态隔离 remeda · bugfix | 完整通过 $0.0044 · 70秒 | 未完整通过 | 未完整通过 $0.2763 · 67秒 |
| R03 · 跨模块的单次迭代器追加 boltons · bugfix | 完整通过 $0.0064 · 40秒 | 完整通过 | 完整通过 $0.2064 · 42秒 |
| R04 · 二进制 JSONL 文件定位 boltons · bugfix | 完整通过 $0.0043 · 50秒 | 完整通过 | 完整通过 $0.0964 · 37秒 |
| R05 · 属性存在检测与类型收窄 remeda · feature | 未完整通过 $0.3599–$0.3939 · 255秒 | 未完整通过 | 未完整通过 $0.4033 · 97秒 |
| R06 · 严格类型的空值默认值 remeda · feature | 未完整通过 $0.4767–$0.5110 · 226秒 | 未完整通过 | 未完整通过 $0.3428 · 113秒 |
| R07 · 统计模块众数接口 boltons · feature | 完整通过 $0.1205 · 67秒 | 完整通过 | 完整通过 $0.1718 · 48秒 |
| R08 · 按单词边界截断文本 boltons · feature | 完整通过 $0.0059 · 59秒 | 未完整通过 | 完整通过 $0.1809 · 62秒 |
| R09 · sortBy 排序规则与严格类型重构 remeda · refactor | 完整通过 $0.4108 · 120秒 | 完整通过 | 完整通过 $0.2150 · 68秒 |
| R10 · 有序集合批量删除与分桶列表边界 boltons · refactor | 未完整通过 $0.1494–$0.2285 · 77秒 | 未完整通过 | 完整通过 $0.3200 · 115秒 |
质量不足与耗时
XCR有1次错误放行:R05报告完成,但最终类型验收未通过。R06复杂类型约束未完全满足;R10重构补丁出现格式及语法问题,未完整完成。三个未完成任务约占该组费用上界67%,说明失败修复仍是成本风险。
XCR耗时中位数68.5秒、最长255秒;Astra中位数64.5秒、最长115秒。 耗时为最终有效尝试,未包含基础设施中断前的等待;相关API费用仍保留。
未完整通过的任务 · 全部保留
| 任务 | XCR | Luna | Astra |
|---|---|---|---|
| R01 · 空数组的 zip/zipWith | 完整通过 | 未完整通过 | 完整通过 |
| R02 · 惰性流水线提前结束与状态隔离 | 完整通过 | 未完整通过 | 未完整通过 |
| R05 · 属性存在检测与类型收窄 | 未完整通过 | 未完整通过 | 未完整通过 |
| R06 · 严格类型的空值默认值 | 未完整通过 | 未完整通过 | 未完整通过 |
| R08 · 按单词边界截断文本 | 完整通过 | 未完整通过 | 完整通过 |
| R10 · 有序集合批量删除与分桶列表边界 | 未完整通过 | 未完整通过 | 完整通过 |
Luna只展示通过情况;不公开费用。各组失败结果均保留在上方逐题矩阵及下载数据中。
测试条件与解释
- 每组获得相同题面和起始代码,从干净工作副本执行;验收要求在正式执行前固定。对照使用官方模型API与工具循环,不冒称原生订阅产品。
- 每次干净尝试最多8次生成请求;直接对照最多40次本地工具执行,生成请求包含读文件和工具决策。达到请求上限的未完成结果仍记为未通过。
- 允许读文件、编辑、运行检查与修复;评分不提供隐藏答案。XCR流程与单模型工具循环不同,本轮比较完整工作流程。
- 基础设施和评测接线错误先修复,再从干净副本执行;正式代码不足计入结果。保留全部正式题,费用区间包含对应中断与重做的不确定费用。
Luna采用low、Astra采用high推理档位。Luna有7题、Astra有6题达到生成请求上限;部分达到上限的任务仍通过源码验收。未完成不能全部归因为模型内在能力。只验证相关运行及类型测试,未覆盖各仓库所有平台构建。
| 对照名称 | 官方API标识 | 推理档位 | 服务方式 |
|---|---|---|---|
| Luna | OpenAI / gpt-6-luna | low | Flex优先,容量不足可回退Standard;仅公开质量结果 |
| Astra | OpenAI / gpt-6-astra | high | Flex优先;明确容量拒绝后回退Standard,按实际返回档位计价 |
XCR评测构建:2026-10-13 / 第二轮。本次结果尚未验证正式部署版本。完整通过由固定任务验收判定;XCR额外要求自身报告完成,没有将未完整交付记为成功。每组存在固定执行和费用停止条件,流程并不完全相同。
| 对照计价快照 · 美元/百万token | 输入 / 输出 | 缓存输入系数 | 来源 |
|---|---|---|---|
| Astra | Flex 5 / 25;Standard 10 / 50 | 0.1× | 官方价格说明 |
计价快照日期:2026-10-13;并非当前价格承诺。按实际返回用量和服务档位估算,包含计费思考token及缓存调整。本次Sonnet返回的缓存命中用量为0,因此缓存单价不影响该对照费用。相关未知请求费用下界不计未知额,上界计最高预留;保守节省使用XCR上界和对照下界,不用对照未知费用美化结果。
题目说明与公开源码来源
- R01 · 空数组的 zip/zipWith
Fix zip and zipWith in both data-first and data-last/pipe forms: if either input is empty, return an empty array and do not invoke the projection. Otherwise stop at the shorter input, preserve ordering, existing types and lazy pipe integration.
官方历史提交 - R02 · 惰性流水线提前结束与状态隔离
Fix pipe lazy evaluation: terminate processing as soon as a lazy evaluator signals isDone, without continuing upstream callbacks for remaining items. Every pipe invocation must have independent lazy execution state even when reusable curried functions are shared. Preserve existing single/multi-valued lazy results, eager operations, output and types.
官方历史提交 - R03 · 跨模块的单次迭代器追加
Fix OrderedMultiDict.addlist in dictutils and its vendored copy used by urlutils: accept one-shot iterators as well as sequences. Each value must appear consistently in getlist, get, keys and representation. Empty iterables must not add a key. Preserve insertion order and existing values.
官方历史提交 - R04 · 二进制 JSONL 文件定位
Fix JSONLIterator relative seek on binary streams so newline alignment uses bytes for binary streams and text for text streams. Preserve forward/reverse iteration, ignore_errors and EOF-relative seek. Binary rel_seek=1.0 followed by reverse iteration must yield the final JSON record without TypeError.
官方历史提交 - R05 · 属性存在检测与类型收窄
Add and export hasProp with data-first and curried data-last forms, checking only own properties (including properties whose value is undefined), not inherited properties. Support symbol and number keys. Preserve readonly and explicit undefined; remove optionality for bounded literal keys and narrow object unions to members containing the key. Reject impossible keys at compile time; arrays and unbounded string/template keys return boolean without incorrect narrowing. Preserve interoperability with filter and pipe. Follow existing purry conventions.
官方历史提交 - R06 · 严格类型的空值默认值
Add and export defaultTo with data-first and curried forms: replace only null/undefined with the fallback; keep NaN, false, 0 and empty strings. The fallback must be compatible with the non-nullish data type; require nullable input except supported nullish fallbacks. Preserve literal/union/object result types and reject incompatible fallback types. Support pipe; retain existing pathOr and stringToPath behavior and types.
官方历史提交 - R07 · 统计模块众数接口
Add Stats.mode and the module-level mode convenience function through the existing _StatsProperty mechanism. Support numeric and hashable categorical data, return the most frequent value, resolve ties by first appearance, and return configured Stats.default for empty input. Preserve existing statistics behavior.
官方历史提交 - R08 · 按单词边界截断文本
Add and export ellipsize(text, max_len=160, *, ellipsis="…"). Leave text unchanged if it fits. Include ellipsis in max_len, cut at the last space within the available limit, trim trailing whitespace and sentence punctuation, but preserve decimal points between digits. Hard-cut a single overlong token. Require max_len > len(ellipsis), raising ValueError otherwise; support custom ellipsis and preserve all other strutils behavior.
官方历史提交 - R09 · sortBy 排序规则与严格类型重构
Refactor sortBy to use shared comparable sort rules and ascending/descending comparison logic, preserving data-first/data-last forms, multiple projections and directions, input immutability, stable equal-value ordering, and existing .strict tuple/nonempty array type shape. Rules may project numbers, strings, booleans or objects with valueOf returning these primitives. Retain existing exports and verify runtime and TypeScript tests. Compute each rule projection at most once per compared item during one comparison; sorting a two-item input with one rule must invoke the projector at most twice.
官方历史提交 - R10 · 有序集合批量删除与分桶列表边界
Refactor IndexedSet difference_update/intersection_update so large scattered removals rebuild in one linear pass instead of repeated discard/compaction. Preserve order, lookup/index, further additions and small-update behavior; for removing half of 10000 items, no more than one full compaction per operation. Also preserve list-compatible BarrelList boundaries: out-of-range access/pop raises IndexError, extreme insert positions clamp to prepend/append, and popping handles/removes empty trailing buckets. Keep public APIs unchanged.
官方历史提交
发布说明与结果适用范围
本报告由XCR自行设计和执行,非第三方独立认证;未经OpenAI、Anthropic或所用开源项目赞助、认证或背书。相关名称仅用于准确识别对照和来源,商标属于各权利人。结果仅对应2026年10月13日的两轮评测构建、固定任务与工具流程,未验证正式部署版本。样本通过率不是总体准确率或统计等效结论;估算费用不构成实际账单、服务报价或任何节省保证。100倍示例仅作费用换算。实际效果和费用受任务、工作流程、服务档位、缓存及重做影响。发布者仍须遵守适用法律与合同,本说明不排除依法不得排除的责任或消费者权利。