@xagent/x-cli 1.2.7 → 1.2.9

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.7 – Revolutionary Optimization & Agent Self-Testing
1
+ ## 1.2.9 – 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.7",
27053
+ version: "1.2.9",
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,7 @@ var init_package = __esm({
27071
27071
  "package.json"
27072
27072
  ],
27073
27073
  scripts: {
27074
- local: "bun run build && bun dist/index.js",
27074
+ local: "bun run build && node dist/index.js",
27075
27075
  "local-watch": "bun --watch src/index.ts",
27076
27076
  "test-agent": "bun run build && ./dist/index.js -p",
27077
27077
  "test-log": 'bun run build && ./dist/index.js -p "$1" 2>&1 | tee agent-test.log',
@@ -27146,7 +27146,7 @@ var init_package = __esm({
27146
27146
  openai: "^5.10.1",
27147
27147
  react: "^18.3.1",
27148
27148
  "ripgrep-node": "^1.0.0",
27149
- "terminal-image": "^4.0.0",
27149
+ "terminal-image": "^1.1.0",
27150
27150
  tiktoken: "^1.0.21"
27151
27151
  },
27152
27152
  devDependencies: {
@@ -27161,7 +27161,7 @@ var init_package = __esm({
27161
27161
  husky: "^9.1.7",
27162
27162
  "lint-staged": "^16.2.4",
27163
27163
  prettier: "^3.6.2",
27164
- tsup: "^8.5.0",
27164
+ tsup: "^8.1.0",
27165
27165
  tsx: "^4.0.0"
27166
27166
  },
27167
27167
  engines: {
@@ -29572,7 +29572,7 @@ function useContextInfo(agent) {
29572
29572
  let loadedFiles = [];
29573
29573
  let contextHealth = "optimal";
29574
29574
  if (agent) {
29575
- const modelName = agent.getCurrentModel?.() || "grok-4-fast-non-reasoning";
29575
+ const modelName = agent.getCurrentModel?.() || "grok-4.1";
29576
29576
  const maxTokens = getMaxTokensForModel(modelName);
29577
29577
  const sessionTokens = agent.getSessionTokenCount?.() || 0;
29578
29578
  messagesCount = agent.getMessageCount?.() || 0;
@@ -29707,7 +29707,7 @@ function getMemoryPressure() {
29707
29707
  }
29708
29708
  function getMaxTokensForModel(modelName) {
29709
29709
  const modelLimits = {
29710
- "grok-4-fast-non-reasoning": 128e3,
29710
+ "grok-4.1": 128e3,
29711
29711
  "grok-4-fast-reasoning": 2e5,
29712
29712
  "grok-4-0709": 2e5,
29713
29713
  "grok-4-latest": 2e5,
@@ -32896,7 +32896,7 @@ var require_package = __commonJS({
32896
32896
  module.exports = {
32897
32897
  type: "module",
32898
32898
  name: "@xagent/one-shot",
32899
- version: "1.2.7",
32899
+ version: "1.2.9",
32900
32900
  description: "An open-source AI agent that brings advanced AI capabilities directly into your terminal with automatic documentation updates.",
32901
32901
  main: "dist/index.js",
32902
32902
  module: "dist/index.js",
@@ -32917,7 +32917,7 @@ var require_package = __commonJS({
32917
32917
  "package.json"
32918
32918
  ],
32919
32919
  scripts: {
32920
- local: "bun run build && bun dist/index.js",
32920
+ local: "bun run build && node dist/index.js",
32921
32921
  "local-watch": "bun --watch src/index.ts",
32922
32922
  "test-agent": "bun run build && ./dist/index.js -p",
32923
32923
  "test-log": 'bun run build && ./dist/index.js -p "$1" 2>&1 | tee agent-test.log',
@@ -32992,7 +32992,7 @@ var require_package = __commonJS({
32992
32992
  openai: "^5.10.1",
32993
32993
  react: "^18.3.1",
32994
32994
  "ripgrep-node": "^1.0.0",
32995
- "terminal-image": "^4.0.0",
32995
+ "terminal-image": "^1.1.0",
32996
32996
  tiktoken: "^1.0.21"
32997
32997
  },
32998
32998
  devDependencies: {
@@ -33007,7 +33007,7 @@ var require_package = __commonJS({
33007
33007
  husky: "^9.1.7",
33008
33008
  "lint-staged": "^16.2.4",
33009
33009
  prettier: "^3.6.2",
33010
- tsup: "^8.5.0",
33010
+ tsup: "^8.1.0",
33011
33011
  tsx: "^4.0.0"
33012
33012
  },
33013
33013
  engines: {
@@ -33075,7 +33075,7 @@ try {
33075
33075
  const manager = getSettingsManager2();
33076
33076
  model = manager.getCurrentModel?.();
33077
33077
  } catch {
33078
- model = "grok-4-fast-non-reasoning";
33078
+ model = process.env.GROK_MODEL || "grok-beta";
33079
33079
  }
33080
33080
  }
33081
33081
  return model;