@rely-ai/caliber 1.22.0-dev.1773765414 → 1.22.0-dev.1773766400

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 +14 -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
  });
@@ -1206,6 +1206,7 @@ var OpenAICompatProvider = class {
1206
1206
  // src/llm/cursor-acp.ts
1207
1207
  import { spawn, execSync as execSync3 } from "child_process";
1208
1208
  import readline from "readline";
1209
+ import os2 from "os";
1209
1210
  var ACP_AGENT_BIN = "agent";
1210
1211
  var IS_WINDOWS = process.platform === "win32";
1211
1212
  var CursorAcpProvider = class {
@@ -1373,7 +1374,7 @@ var CursorAcpProvider = class {
1373
1374
  conn.activeCallbacks = callbacks;
1374
1375
  try {
1375
1376
  const sessionResult = await this.send(conn, "session/new", {
1376
- cwd: process.cwd(),
1377
+ cwd: os2.tmpdir(),
1377
1378
  mcpServers: []
1378
1379
  });
1379
1380
  await this.send(conn, "session/prompt", {
@@ -1392,6 +1393,10 @@ var CursorAcpProvider = class {
1392
1393
  const streamOpts = options;
1393
1394
  const hasHistory = streamOpts.messages && streamOpts.messages.length > 0;
1394
1395
  let combined = "";
1396
+ combined += "IMPORTANT: You are being used as a direct LLM, not as a coding agent. ";
1397
+ combined += "Do NOT use tools, do NOT read or write files, do NOT check the repository. ";
1398
+ combined += "Process the prompt below and output your response directly in your message. ";
1399
+ combined += "Follow the system instructions exactly.\n\n";
1395
1400
  combined += "[[System]]\n" + options.system + "\n\n";
1396
1401
  if (hasHistory) {
1397
1402
  for (const msg of streamOpts.messages) {
@@ -3286,9 +3291,9 @@ import { createTwoFilesPatch } from "diff";
3286
3291
  import { execSync as execSync5, spawn as spawn3 } from "child_process";
3287
3292
  import fs14 from "fs";
3288
3293
  import path12 from "path";
3289
- import os3 from "os";
3294
+ import os4 from "os";
3290
3295
  var IS_WINDOWS3 = process.platform === "win32";
3291
- var DIFF_TEMP_DIR = path12.join(os3.tmpdir(), "caliber-diff");
3296
+ var DIFF_TEMP_DIR = path12.join(os4.tmpdir(), "caliber-diff");
3292
3297
  function getEmptyFilePath(proposedPath) {
3293
3298
  fs14.mkdirSync(DIFF_TEMP_DIR, { recursive: true });
3294
3299
  const tempPath = path12.join(DIFF_TEMP_DIR, path12.basename(proposedPath));
@@ -5714,10 +5719,10 @@ import chalk7 from "chalk";
5714
5719
  // src/telemetry/config.ts
5715
5720
  import fs23 from "fs";
5716
5721
  import path18 from "path";
5717
- import os4 from "os";
5722
+ import os5 from "os";
5718
5723
  import crypto3 from "crypto";
5719
5724
  import { execSync as execSync12 } from "child_process";
5720
- var CONFIG_DIR2 = path18.join(os4.homedir(), ".caliber");
5725
+ var CONFIG_DIR2 = path18.join(os5.homedir(), ".caliber");
5721
5726
  var CONFIG_FILE2 = path18.join(CONFIG_DIR2, "config.json");
5722
5727
  var runtimeDisabled = false;
5723
5728
  function readConfig() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rely-ai/caliber",
3
- "version": "1.22.0-dev.1773765414",
3
+ "version": "1.22.0-dev.1773766400",
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": {