@contextos/core 0.2.2 → 0.2.3

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 +4 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -301,7 +301,10 @@ function saveConfigYaml(rootDir, config, options = {}) {
301
301
  }
302
302
  }
303
303
  function isInitialized(startDir = process.cwd()) {
304
- return findContextosRoot(startDir) !== null;
304
+ const rootDir = findContextosRoot(startDir);
305
+ if (!rootDir) return false;
306
+ const contextPath = join(rootDir, CONTEXTOS_DIR, CONTEXT_FILE);
307
+ return existsSync(contextPath);
305
308
  }
306
309
 
307
310
  // src/parser/tree-sitter.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contextos/core",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Core engine for ContextOS - context management, parsing, and ranking",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",