@codelia/core 0.1.20 → 0.1.22

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.cjs CHANGED
@@ -573,12 +573,12 @@ var CompactionService = class _CompactionService {
573
573
  llm.provider,
574
574
  modelId
575
575
  );
576
- if (modelSpec?.contextWindow && modelSpec.contextWindow > 0) {
577
- return modelSpec.contextWindow;
578
- }
579
576
  if (modelSpec?.maxInputTokens && modelSpec.maxInputTokens > 0) {
580
577
  return modelSpec.maxInputTokens;
581
578
  }
579
+ if (modelSpec?.contextWindow && modelSpec.contextWindow > 0) {
580
+ return modelSpec.contextWindow;
581
+ }
582
582
  throw new Error(
583
583
  `Missing context limit for ${llm.provider}/${modelId} in model registry`
584
584
  );
@@ -1094,7 +1094,7 @@ var Agent = class {
1094
1094
  this.llm.provider,
1095
1095
  modelId
1096
1096
  );
1097
- const contextLimit = modelSpec?.contextWindow ?? modelSpec?.maxInputTokens ?? null;
1097
+ const contextLimit = modelSpec?.maxInputTokens ?? modelSpec?.contextWindow ?? null;
1098
1098
  if (!contextLimit || contextLimit <= 0) {
1099
1099
  return null;
1100
1100
  }
package/dist/index.d.cts CHANGED
@@ -599,6 +599,7 @@ type StoragePaths = {
599
599
  configFile: string;
600
600
  authFile: string;
601
601
  mcpAuthFile: string;
602
+ projectsFile: string;
602
603
  cacheDir: string;
603
604
  toolOutputCacheDir: string;
604
605
  sessionsDir: string;
package/dist/index.d.ts CHANGED
@@ -599,6 +599,7 @@ type StoragePaths = {
599
599
  configFile: string;
600
600
  authFile: string;
601
601
  mcpAuthFile: string;
602
+ projectsFile: string;
602
603
  cacheDir: string;
603
604
  toolOutputCacheDir: string;
604
605
  sessionsDir: string;
package/dist/index.js CHANGED
@@ -516,12 +516,12 @@ var CompactionService = class _CompactionService {
516
516
  llm.provider,
517
517
  modelId
518
518
  );
519
- if (modelSpec?.contextWindow && modelSpec.contextWindow > 0) {
520
- return modelSpec.contextWindow;
521
- }
522
519
  if (modelSpec?.maxInputTokens && modelSpec.maxInputTokens > 0) {
523
520
  return modelSpec.maxInputTokens;
524
521
  }
522
+ if (modelSpec?.contextWindow && modelSpec.contextWindow > 0) {
523
+ return modelSpec.contextWindow;
524
+ }
525
525
  throw new Error(
526
526
  `Missing context limit for ${llm.provider}/${modelId} in model registry`
527
527
  );
@@ -1037,7 +1037,7 @@ var Agent = class {
1037
1037
  this.llm.provider,
1038
1038
  modelId
1039
1039
  );
1040
- const contextLimit = modelSpec?.contextWindow ?? modelSpec?.maxInputTokens ?? null;
1040
+ const contextLimit = modelSpec?.maxInputTokens ?? modelSpec?.contextWindow ?? null;
1041
1041
  if (!contextLimit || contextLimit <= 0) {
1042
1042
  return null;
1043
1043
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codelia/core",
3
- "version": "0.1.20",
3
+ "version": "0.1.22",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
@@ -24,8 +24,8 @@
24
24
  "access": "public"
25
25
  },
26
26
  "dependencies": {
27
- "@codelia/config": "0.1.20",
28
- "@codelia/shared-types": "0.1.20",
27
+ "@codelia/config": "0.1.22",
28
+ "@codelia/shared-types": "0.1.22",
29
29
  "@anthropic-ai/sdk": "^0.78.0",
30
30
  "@google-cloud/vertexai": "^1.10.0",
31
31
  "@google/genai": "^1.37.0",