codebolt 1.12.9 → 1.12.10

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/index.js +10 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -526525,6 +526525,10 @@ async function initializeDatabase() {
526525
526525
  settingService_1.projectSetting.user_active_project_path = startupProjectPath;
526526
526526
  appLogger_1.default.info(`[INIT] Overrode projectSetting.user_active_project_path with startup path: ${startupProjectPath}`);
526527
526527
  }
526528
+ else if (startupProjectPath && !settingService_1.projectSetting) {
526529
+ // No-op: handled by threadFileStore fallback to getProjectPath()
526530
+ appLogger_1.default.info(`[INIT] No DB profile, startup path available: ${startupProjectPath}`);
526531
+ }
526528
526532
  else if (!startupProjectPath && settingService_1.projectSetting?.user_active_project_path) {
526529
526533
  // If no startup projectPath was provided (e.g. CLI mode), seed getProjectPath()
526530
526534
  // from the DB value so that callers of getProjectPath() also work.
@@ -592890,12 +592894,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
592890
592894
  };
592891
592895
  Object.defineProperty(exports, "__esModule", ({ value: true }));
592892
592896
  exports.settingService = exports.clearAllTokens = exports.removeThreadToken = exports.getTokenFromThreadId = exports.getThreadIdFromToken = exports.generateThreadToken = exports.threadId = exports.activeAgentConfig = exports.activeAgent = exports.activeUser = exports.projectSetting = void 0;
592897
+ exports.setProjectSetting = setProjectSetting;
592893
592898
  const db_1 = __importDefault(__webpack_require__(12202));
592894
592899
  const uuid_1 = __webpack_require__(47333);
592895
592900
  const appLogger_1 = __importDefault(__webpack_require__(8479));
592896
592901
  const HookManager_1 = __webpack_require__(46994);
592897
592902
  const categorizedLogger_1 = __webpack_require__(77819);
592898
592903
  const focusedLogCategories_1 = __webpack_require__(54293);
592904
+ function setProjectSetting(setting) {
592905
+ exports.projectSetting = setting;
592906
+ }
592899
592907
  // Token mapping storage: threadId -> token
592900
592908
  const threadTokenMap = new Map();
592901
592909
  // Reverse mapping: token -> threadId
@@ -621559,6 +621567,7 @@ const path_1 = __importDefault(__webpack_require__(16928));
621559
621567
  const uuid_1 = __webpack_require__(47333);
621560
621568
  const logger_1 = __webpack_require__(19622);
621561
621569
  const settingService_1 = __webpack_require__(26152);
621570
+ const serverPaths_1 = __webpack_require__(52047);
621562
621571
  const logger = (0, logger_1.createLogger)();
621563
621572
  var ThreadStepStatus;
621564
621573
  (function (ThreadStepStatus) {
@@ -622256,7 +622265,7 @@ class ThreadFileStore {
622256
622265
  // ========================================================================
622257
622266
  _ensureInitialized() {
622258
622267
  if (!this._initialized) {
622259
- const projectPath = settingService_1.projectSetting?.user_active_project_path;
622268
+ const projectPath = settingService_1.projectSetting?.user_active_project_path || (0, serverPaths_1.getProjectPath)();
622260
622269
  if (projectPath) {
622261
622270
  this.init(projectPath);
622262
622271
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codebolt",
3
- "version": "1.12.9",
3
+ "version": "1.12.10",
4
4
  "description": "CodeBolt headless server CLI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",