tines 0.0.239 → 0.0.241
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/dist/index.js +20 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5580,6 +5580,24 @@ function usageCostLabel(cost, finalized = 1) {
|
|
|
5580
5580
|
});
|
|
5581
5581
|
}
|
|
5582
5582
|
|
|
5583
|
+
// ../shared/src/codex-version.ts
|
|
5584
|
+
var CODEX_ROLLOUT_MIN_VERSION = "0.153.4";
|
|
5585
|
+
function parseVersion(value) {
|
|
5586
|
+
const match = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$/.exec(value);
|
|
5587
|
+
if (!match) return null;
|
|
5588
|
+
return [Number(match[1]), Number(match[2]), Number(match[3])];
|
|
5589
|
+
}
|
|
5590
|
+
var minimum = parseVersion(CODEX_ROLLOUT_MIN_VERSION);
|
|
5591
|
+
function isSupportedCodexRolloutVersion(version) {
|
|
5592
|
+
if (typeof version !== "string") return false;
|
|
5593
|
+
const parsed = parseVersion(version);
|
|
5594
|
+
if (!parsed) return false;
|
|
5595
|
+
for (let i = 0; i < 3; i++) {
|
|
5596
|
+
if (parsed[i] !== minimum[i]) return parsed[i] > minimum[i];
|
|
5597
|
+
}
|
|
5598
|
+
return true;
|
|
5599
|
+
}
|
|
5600
|
+
|
|
5583
5601
|
// ../shared/src/effort.ts
|
|
5584
5602
|
var EFFORT_CAPABILITIES_MAX_BYTES = 64 * 1024;
|
|
5585
5603
|
function supportedEfforts(capabilities, model) {
|
|
@@ -9080,7 +9098,6 @@ var CODEX_ROLLOUT_MAX_LINE_BYTES = 8 * 1024 * 1024;
|
|
|
9080
9098
|
var CODEX_ROLLOUT_MAX_LINES = 25e4;
|
|
9081
9099
|
var CODEX_ROLLOUT_MAX_REQUESTS = 1e4;
|
|
9082
9100
|
var CODEX_ROLLOUT_TIMEOUT_MS = 5e3;
|
|
9083
|
-
var SUPPORTED_VERSION = "0.153.4";
|
|
9084
9101
|
var FIELDS = [
|
|
9085
9102
|
"input_tokens",
|
|
9086
9103
|
"cached_input_tokens",
|
|
@@ -9175,7 +9192,7 @@ function reconcileCodexRollout(records, input2) {
|
|
|
9175
9192
|
previousLast = delta;
|
|
9176
9193
|
}
|
|
9177
9194
|
if (!metadata) return invalid2("metadata_mismatch", harnessVersion);
|
|
9178
|
-
if (harnessVersion
|
|
9195
|
+
if (!harnessVersion || !isSupportedCodexRolloutVersion(harnessVersion)) {
|
|
9179
9196
|
return {
|
|
9180
9197
|
version: 1,
|
|
9181
9198
|
normalization: "codex-rollout-delta-v1",
|
|
@@ -9190,7 +9207,7 @@ function reconcileCodexRollout(records, input2) {
|
|
|
9190
9207
|
return {
|
|
9191
9208
|
version: 1,
|
|
9192
9209
|
normalization: "codex-rollout-delta-v1",
|
|
9193
|
-
harness_version:
|
|
9210
|
+
harness_version: harnessVersion,
|
|
9194
9211
|
status: "complete",
|
|
9195
9212
|
request_count: requestCount,
|
|
9196
9213
|
max_request_input_tokens: maxRequestInput,
|