open-agents-ai 0.187.458 → 0.187.460

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 CHANGED
@@ -542151,7 +542151,10 @@ async function readExpandedVariantState(backendUrl, modelName) {
542151
542151
  const showData = await showRes.json();
542152
542152
  const currentNumCtx = parseShowNumCtx2(showData);
542153
542153
  const fromMatch = showData.modelfile?.match(/^FROM\s+(.+)$/m);
542154
- const baseModel = fromMatch?.[1]?.trim() ?? null;
542154
+ let baseModel = fromMatch?.[1]?.trim() ?? null;
542155
+ if (baseModel && (baseModel.startsWith("/") || /blobs\/sha256[-:]/.test(baseModel))) {
542156
+ baseModel = null;
542157
+ }
542155
542158
  return { currentNumCtx, baseModel };
542156
542159
  } catch {
542157
542160
  return null;
@@ -542161,6 +542164,11 @@ function stripVariantTag(modelName) {
542161
542164
  return modelName.replace(/:latest$/i, "");
542162
542165
  }
542163
542166
  function createExpandedVariantContent(baseModel, numCtx) {
542167
+ if (baseModel.startsWith("/") || /blobs\/sha256[-:]/.test(baseModel)) {
542168
+ throw new Error(
542169
+ `createExpandedVariantContent: refusing to use blob-path base "${baseModel}". Pass the user-facing model name (e.g. "qwen3.6:latest") instead.`
542170
+ );
542171
+ }
542164
542172
  const numPredict = Math.min(16384, Math.max(2048, Math.floor(numCtx * 0.25)));
542165
542173
  return [
542166
542174
  `FROM ${baseModel}`,
@@ -585435,6 +585443,7 @@ async function handleV1Run(req2, res) {
585435
585443
  const TAIL_BUDGET = 1048576;
585436
585444
  const outputWriter = new DiskTaskOutput(join109(dir, `${id}.output`));
585437
585445
  job.outputFile = outputWriter.path;
585446
+ atomicJobWrite(dir, id, job);
585438
585447
  child.stdout?.on("data", (chunk) => {
585439
585448
  outputWriter.append(chunk);
585440
585449
  const text = chunk.toString("utf-8");
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.187.458",
3
+ "version": "0.187.460",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "open-agents-ai",
9
- "version": "0.187.458",
9
+ "version": "0.187.460",
10
10
  "hasInstallScript": true,
11
11
  "license": "CC-BY-NC-4.0",
12
12
  "dependencies": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.187.458",
3
+ "version": "0.187.460",
4
4
  "description": "AI coding agent powered by open-source models (Ollama/vLLM) — interactive TUI with agentic tool-calling loop",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",