@xagent/x-cli 1.2.6 → 1.2.8

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## 1.2.6 – Revolutionary Optimization & Agent Self-Testing
1
+ ## 1.2.8 – Revolutionary Optimization & Agent Self-Testing
2
2
 
3
3
  🧪 **INSANE BREAKTHROUGH**: **Agent Self-Testing methodology** - First AI that can test itself and iterate to perfection!
4
4
  🚀 **MASSIVE BREAKTHROUGH**: Revolutionary Native Text Operations discovered - **10.9x token savings** potential!
package/dist/index.js CHANGED
@@ -70,7 +70,7 @@ var init_client = __esm({
70
70
  "src/grok/client.ts"() {
71
71
  GrokClient = class {
72
72
  constructor(apiKey, model, baseURL) {
73
- this.currentModel = "grok-4-fast-non-reasoning";
73
+ this.currentModel = "grok-4.1";
74
74
  apiKey = apiKey || process.env.OPENAI_API_KEY || process.env.GROK_API_KEY || process.env.XAI_API_KEY;
75
75
  this.client = new OpenAI({
76
76
  apiKey,
@@ -391,9 +391,9 @@ var init_settings_manager = __esm({
391
391
  "src/utils/settings-manager.ts"() {
392
392
  DEFAULT_USER_SETTINGS = {
393
393
  baseURL: "https://api.x.ai/v1",
394
- defaultModel: "grok-4-fast-non-reasoning",
394
+ defaultModel: "grok-code-fast-1",
395
395
  models: [
396
- "grok-4-fast-non-reasoning",
396
+ "grok-code-fast-1",
397
397
  "grok-4-fast-reasoning",
398
398
  "grok-4-0709",
399
399
  "grok-4-latest",
@@ -410,7 +410,7 @@ var init_settings_manager = __esm({
410
410
  requireConfirmation: true
411
411
  };
412
412
  DEFAULT_PROJECT_SETTINGS = {
413
- model: "grok-4-fast-non-reasoning"
413
+ model: "grok-code-fast-1"
414
414
  };
415
415
  SettingsManager = class _SettingsManager {
416
416
  constructor() {
@@ -585,7 +585,7 @@ var init_settings_manager = __esm({
585
585
  if (userDefaultModel) {
586
586
  return userDefaultModel;
587
587
  }
588
- return DEFAULT_PROJECT_SETTINGS.model || "grok-4-fast-non-reasoning";
588
+ return DEFAULT_PROJECT_SETTINGS.model || "grok-4.1";
589
589
  }
590
590
  /**
591
591
  * Get the appropriate model for a task based on its characteristics
@@ -24305,7 +24305,7 @@ Updated By: Agent System Generator during /init-agent
24305
24305
  \`\`\`typescript
24306
24306
  {
24307
24307
  baseURL: "https://api.x.ai/v1",
24308
- defaultModel: "grok-4-fast-non-reasoning",
24308
+ defaultModel: "grok-4.1",
24309
24309
  apiKey: process.env.X_API_KEY
24310
24310
  }
24311
24311
  \`\`\`
@@ -27050,7 +27050,7 @@ var init_package = __esm({
27050
27050
  package_default = {
27051
27051
  type: "module",
27052
27052
  name: "@xagent/one-shot",
27053
- version: "1.2.6",
27053
+ version: "1.2.8",
27054
27054
  description: "An open-source AI agent that brings advanced AI capabilities directly into your terminal with automatic documentation updates.",
27055
27055
  main: "dist/index.js",
27056
27056
  module: "dist/index.js",
@@ -27071,7 +27071,8 @@ var init_package = __esm({
27071
27071
  "package.json"
27072
27072
  ],
27073
27073
  scripts: {
27074
- local: "bun --watch src/index.ts",
27074
+ local: "bun run build && node dist/index.js",
27075
+ "local-watch": "bun --watch src/index.ts",
27075
27076
  "test-agent": "bun run build && ./dist/index.js -p",
27076
27077
  "test-log": 'bun run build && ./dist/index.js -p "$1" 2>&1 | tee agent-test.log',
27077
27078
  "test-iterative": "./scripts/test-agent-iterative.sh",
@@ -29571,7 +29572,7 @@ function useContextInfo(agent) {
29571
29572
  let loadedFiles = [];
29572
29573
  let contextHealth = "optimal";
29573
29574
  if (agent) {
29574
- const modelName = agent.getCurrentModel?.() || "grok-4-fast-non-reasoning";
29575
+ const modelName = agent.getCurrentModel?.() || "grok-4.1";
29575
29576
  const maxTokens = getMaxTokensForModel(modelName);
29576
29577
  const sessionTokens = agent.getSessionTokenCount?.() || 0;
29577
29578
  messagesCount = agent.getMessageCount?.() || 0;
@@ -29706,7 +29707,7 @@ function getMemoryPressure() {
29706
29707
  }
29707
29708
  function getMaxTokensForModel(modelName) {
29708
29709
  const modelLimits = {
29709
- "grok-4-fast-non-reasoning": 128e3,
29710
+ "grok-4.1": 128e3,
29710
29711
  "grok-4-fast-reasoning": 2e5,
29711
29712
  "grok-4-0709": 2e5,
29712
29713
  "grok-4-latest": 2e5,
@@ -32895,7 +32896,7 @@ var require_package = __commonJS({
32895
32896
  module.exports = {
32896
32897
  type: "module",
32897
32898
  name: "@xagent/one-shot",
32898
- version: "1.2.6",
32899
+ version: "1.2.8",
32899
32900
  description: "An open-source AI agent that brings advanced AI capabilities directly into your terminal with automatic documentation updates.",
32900
32901
  main: "dist/index.js",
32901
32902
  module: "dist/index.js",
@@ -32916,7 +32917,8 @@ var require_package = __commonJS({
32916
32917
  "package.json"
32917
32918
  ],
32918
32919
  scripts: {
32919
- local: "bun --watch src/index.ts",
32920
+ local: "bun run build && node dist/index.js",
32921
+ "local-watch": "bun --watch src/index.ts",
32920
32922
  "test-agent": "bun run build && ./dist/index.js -p",
32921
32923
  "test-log": 'bun run build && ./dist/index.js -p "$1" 2>&1 | tee agent-test.log',
32922
32924
  "test-iterative": "./scripts/test-agent-iterative.sh",
@@ -33073,7 +33075,7 @@ try {
33073
33075
  const manager = getSettingsManager2();
33074
33076
  model = manager.getCurrentModel?.();
33075
33077
  } catch {
33076
- model = "grok-4-fast-non-reasoning";
33078
+ model = process.env.GROK_MODEL || "grok-beta";
33077
33079
  }
33078
33080
  }
33079
33081
  return model;