@rely-ai/caliber 1.22.0-dev.1773768107 → 1.22.0-dev.1773770938

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.
Files changed (2) hide show
  1. package/dist/bin.js +12 -9
  2. package/package.json +1 -1
package/dist/bin.js CHANGED
@@ -159,12 +159,12 @@ __export(constants_exports, {
159
159
  MANIFEST_FILE: () => MANIFEST_FILE
160
160
  });
161
161
  import path9 from "path";
162
- import os2 from "os";
162
+ import os3 from "os";
163
163
  var AUTH_DIR, CALIBER_DIR, MANIFEST_FILE, BACKUPS_DIR, LEARNING_DIR, LEARNING_SESSION_FILE, LEARNING_STATE_FILE, LEARNING_MAX_EVENTS, LEARNING_ROI_FILE;
164
164
  var init_constants = __esm({
165
165
  "src/constants.ts"() {
166
166
  "use strict";
167
- AUTH_DIR = path9.join(os2.homedir(), ".caliber");
167
+ AUTH_DIR = path9.join(os3.homedir(), ".caliber");
168
168
  CALIBER_DIR = ".caliber";
169
169
  MANIFEST_FILE = path9.join(CALIBER_DIR, "manifest.json");
170
170
  BACKUPS_DIR = path9.join(CALIBER_DIR, "backups");
@@ -185,7 +185,7 @@ __export(lock_exports, {
185
185
  });
186
186
  import fs29 from "fs";
187
187
  import path23 from "path";
188
- import os5 from "os";
188
+ import os6 from "os";
189
189
  function isCaliberRunning() {
190
190
  try {
191
191
  if (!fs29.existsSync(LOCK_FILE)) return false;
@@ -218,7 +218,7 @@ var LOCK_FILE, STALE_MS;
218
218
  var init_lock = __esm({
219
219
  "src/lib/lock.ts"() {
220
220
  "use strict";
221
- LOCK_FILE = path23.join(os5.tmpdir(), ".caliber.lock");
221
+ LOCK_FILE = path23.join(os6.tmpdir(), ".caliber.lock");
222
222
  STALE_MS = 10 * 60 * 1e3;
223
223
  }
224
224
  });
@@ -1205,6 +1205,7 @@ var OpenAICompatProvider = class {
1205
1205
 
1206
1206
  // src/llm/cursor-acp.ts
1207
1207
  import { spawn, execSync as execSync3 } from "child_process";
1208
+ import os2 from "os";
1208
1209
  var AGENT_BIN = "agent";
1209
1210
  var IS_WINDOWS = process.platform === "win32";
1210
1211
  var CursorAcpProvider = class {
@@ -1225,7 +1226,7 @@ var CursorAcpProvider = class {
1225
1226
  return this.runPrintStream(model, prompt, callbacks);
1226
1227
  }
1227
1228
  buildArgs(model, streaming) {
1228
- const args = ["--print", "--trust"];
1229
+ const args = ["--print", "--trust", "--workspace", os2.tmpdir()];
1229
1230
  if (model && model !== "auto" && model !== "default") {
1230
1231
  args.push("--model", model);
1231
1232
  }
@@ -1281,6 +1282,8 @@ var CursorAcpProvider = class {
1281
1282
  try {
1282
1283
  const event = JSON.parse(line);
1283
1284
  if (event.type === "assistant") {
1285
+ const isDelta = "timestamp_ms" in event;
1286
+ if (!isDelta) continue;
1284
1287
  const text = event.message?.content?.[0]?.text || event.content;
1285
1288
  if (text) callbacks.onText(text);
1286
1289
  } else if (event.type === "result") {
@@ -3224,9 +3227,9 @@ import { createTwoFilesPatch } from "diff";
3224
3227
  import { execSync as execSync5, spawn as spawn3 } from "child_process";
3225
3228
  import fs14 from "fs";
3226
3229
  import path12 from "path";
3227
- import os3 from "os";
3230
+ import os4 from "os";
3228
3231
  var IS_WINDOWS3 = process.platform === "win32";
3229
- var DIFF_TEMP_DIR = path12.join(os3.tmpdir(), "caliber-diff");
3232
+ var DIFF_TEMP_DIR = path12.join(os4.tmpdir(), "caliber-diff");
3230
3233
  function getEmptyFilePath(proposedPath) {
3231
3234
  fs14.mkdirSync(DIFF_TEMP_DIR, { recursive: true });
3232
3235
  const tempPath = path12.join(DIFF_TEMP_DIR, path12.basename(proposedPath));
@@ -5652,10 +5655,10 @@ import chalk7 from "chalk";
5652
5655
  // src/telemetry/config.ts
5653
5656
  import fs23 from "fs";
5654
5657
  import path18 from "path";
5655
- import os4 from "os";
5658
+ import os5 from "os";
5656
5659
  import crypto3 from "crypto";
5657
5660
  import { execSync as execSync12 } from "child_process";
5658
- var CONFIG_DIR2 = path18.join(os4.homedir(), ".caliber");
5661
+ var CONFIG_DIR2 = path18.join(os5.homedir(), ".caliber");
5659
5662
  var CONFIG_FILE2 = path18.join(CONFIG_DIR2, "config.json");
5660
5663
  var runtimeDisabled = false;
5661
5664
  function readConfig() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rely-ai/caliber",
3
- "version": "1.22.0-dev.1773768107",
3
+ "version": "1.22.0-dev.1773770938",
4
4
  "description": "Analyze your codebase and generate optimized AI agent configs (CLAUDE.md, .cursorrules, skills) — no API key needed",
5
5
  "type": "module",
6
6
  "bin": {