codez-cli 0.1.3 → 0.1.4

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/cli.js +34 -11
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -69457,7 +69457,14 @@ var init_types4 = __esm(() => {
69457
69457
  includeCoAuthoredBy: exports_external2.boolean().optional().describe("Deprecated: Use attribution instead. " + "Whether to include Claude's co-authored by attribution in commits and PRs (defaults to true)"),
69458
69458
  includeGitInstructions: exports_external2.boolean().optional().describe("Include built-in commit and PR workflow instructions in Claude's system prompt (default: true)"),
69459
69459
  permissions: PermissionsSchema().optional().describe("Tool usage permissions configuration"),
69460
- model: exports_external2.string().optional().describe("Override the default model used by codez"),
69460
+ modelSettings: exports_external2.object({
69461
+ defaultModel: exports_external2.string().optional().describe('Override the default model used by codez (e.g., "sonnet", "opus", "haiku")'),
69462
+ thinking: exports_external2.object({
69463
+ enabled: exports_external2.boolean().optional().describe("Enable extended thinking for supported models (default: true)"),
69464
+ effortLevel: exports_external2.enum(process.env.USER_TYPE === "ant" ? ["low", "medium", "high", "max"] : ["low", "medium", "high"]).optional().describe("Thinking effort level: low (fast), medium (balanced), high (thorough)"),
69465
+ enableForMini: exports_external2.boolean().optional().describe("Enable reasoning for mini models (e.g., gpt-5.4-mini). Default: false for speed.")
69466
+ }).optional().describe("Thinking/reasoning configuration")
69467
+ }).optional().describe("Model and thinking configuration"),
69461
69468
  availableModels: exports_external2.array(exports_external2.string()).optional().describe("Allowlist of models that users can select. " + 'Accepts family aliases ("opus" allows any opus version), ' + 'version prefixes ("opus-4-5" allows only that version), ' + "and full model IDs. " + "If undefined, all models are available. If empty array, only the default model is available. " + "Typically set in managed settings by enterprise administrators."),
69462
69469
  modelOverrides: exports_external2.record(exports_external2.string(), exports_external2.string()).optional().describe('Override mapping from Anthropic model ID (e.g. "claude-opus-4-6") to provider-specific ' + "model ID (e.g. a Bedrock inference profile ARN). Typically set in managed settings by " + "enterprise administrators."),
69463
69470
  enableAllProjectMcpServers: exports_external2.boolean().optional().describe("Whether to automatically approve all MCP servers in the project"),
@@ -69517,8 +69524,6 @@ var init_types4 = __esm(() => {
69517
69524
  }).optional().describe("Override spinner tips. tips: array of tip strings. excludeDefault: if true, only show custom tips (default: false)."),
69518
69525
  syntaxHighlightingDisabled: exports_external2.boolean().optional().describe("Whether to disable syntax highlighting in diffs"),
69519
69526
  terminalTitleFromRename: exports_external2.boolean().optional().describe("Whether /rename updates the terminal tab title (defaults to true). Set to false to keep auto-generated topic titles."),
69520
- alwaysThinkingEnabled: exports_external2.boolean().optional().describe("When false, thinking is disabled. When absent or true, thinking is " + "enabled automatically for supported models."),
69521
- effortLevel: exports_external2.enum(process.env.USER_TYPE === "ant" ? ["low", "medium", "high", "max"] : ["low", "medium", "high"]).optional().catch(undefined).describe("Persisted effort level for supported models."),
69522
69527
  advisorModel: exports_external2.string().optional().describe("Advisor model for the server-side advisor tool."),
69523
69528
  fastMode: exports_external2.boolean().optional().describe("When true, fast mode is enabled. When absent or false, fast mode is off."),
69524
69529
  fastModePerSessionOptIn: exports_external2.boolean().optional().describe("When true, fast mode does not persist across sessions. Each session starts with fast mode off."),
@@ -73125,6 +73130,9 @@ function getContextWindowForModel(model, betas) {
73125
73130
  }
73126
73131
  }
73127
73132
  if (isOpenAIProvider() && model.startsWith("gpt-")) {
73133
+ if (model.includes("o1") || model.includes("o3") || model.startsWith("gpt-5")) {
73134
+ return 200000;
73135
+ }
73128
73136
  return 128000;
73129
73137
  }
73130
73138
  if (has1mContext(model)) {
@@ -91168,7 +91176,7 @@ var init_metadata = __esm(() => {
91168
91176
  isClaudeAiAuth: isClaudeAISubscriber(),
91169
91177
  version: "0.1.3",
91170
91178
  versionBase: getVersionBase(),
91171
- buildTime: "2026-04-01T22:58:01.164Z",
91179
+ buildTime: "2026-04-01T23:08:20.233Z",
91172
91180
  deploymentEnvironment: env4.detectDeploymentEnvironment(),
91173
91181
  ...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
91174
91182
  githubEventName: process.env.GITHUB_EVENT_NAME,
@@ -141298,7 +141306,7 @@ function shouldEnableThinkingByDefault() {
141298
141306
  return parseInt(process.env.MAX_THINKING_TOKENS, 10) > 0;
141299
141307
  }
141300
141308
  const { settings } = getSettingsWithErrors();
141301
- if (settings.alwaysThinkingEnabled === false) {
141309
+ if (settings.modelSettings?.thinking?.enabled === false) {
141302
141310
  return false;
141303
141311
  }
141304
141312
  return true;
@@ -476569,10 +476577,11 @@ var init_supportedSettings = __esm(() => {
476569
476577
  type: "boolean",
476570
476578
  description: "Enable todo/task tracking"
476571
476579
  },
476572
- model: {
476580
+ "modelSettings.defaultModel": {
476573
476581
  source: "settings",
476574
476582
  type: "string",
476575
476583
  description: "Override the default model",
476584
+ path: ["modelSettings", "defaultModel"],
476576
476585
  appStateKey: "mainLoopModel",
476577
476586
  getOptions: () => {
476578
476587
  try {
@@ -476584,12 +476593,26 @@ var init_supportedSettings = __esm(() => {
476584
476593
  validateOnWrite: (v2) => validateModel(String(v2)),
476585
476594
  formatOnRead: (v2) => v2 === null ? "default" : v2
476586
476595
  },
476587
- alwaysThinkingEnabled: {
476596
+ "modelSettings.thinking.enabled": {
476588
476597
  source: "settings",
476589
476598
  type: "boolean",
476590
- description: "Enable extended thinking (false to disable)",
476599
+ description: "Enable extended thinking (default: true)",
476600
+ path: ["modelSettings", "thinking", "enabled"],
476591
476601
  appStateKey: "thinkingEnabled"
476592
476602
  },
476603
+ "modelSettings.thinking.effortLevel": {
476604
+ source: "settings",
476605
+ type: "string",
476606
+ description: "Thinking effort level (low/medium/high)",
476607
+ path: ["modelSettings", "thinking", "effortLevel"],
476608
+ options: ["low", "medium", "high"]
476609
+ },
476610
+ "modelSettings.thinking.enableForMini": {
476611
+ source: "settings",
476612
+ type: "boolean",
476613
+ description: "Enable reasoning for mini models (default: false for speed)",
476614
+ path: ["modelSettings", "thinking", "enableForMini"]
476615
+ },
476593
476616
  "permissions.defaultMode": {
476594
476617
  source: "settings",
476595
476618
  type: "string",
@@ -490185,7 +490208,7 @@ function getAnthropicEnvMetadata() {
490185
490208
  function getBuildAgeMinutes() {
490186
490209
  if (false)
490187
490210
  ;
490188
- const buildTime = new Date("2026-04-01T22:58:01.164Z").getTime();
490211
+ const buildTime = new Date("2026-04-01T23:08:20.233Z").getTime();
490189
490212
  if (isNaN(buildTime))
490190
490213
  return;
490191
490214
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -576736,7 +576759,7 @@ var init_bridge_kick = __esm(() => {
576736
576759
  var call56 = async () => {
576737
576760
  return {
576738
576761
  type: "text",
576739
- value: `${"0.1.3"} (built ${"2026-04-01T22:58:01.164Z"})`
576762
+ value: `${"0.1.3"} (built ${"2026-04-01T23:08:20.233Z"})`
576740
576763
  };
576741
576764
  }, version2, version_default;
576742
576765
  var init_version = __esm(() => {
@@ -674212,4 +674235,4 @@ async function main2() {
674212
674235
  }
674213
674236
  main2();
674214
674237
 
674215
- //# debugId=ECE5B66E1A94DDDF64756E2164756E21
674238
+ //# debugId=1FAFFEAD53D6743A64756E2164756E21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codez-cli",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "AI coding CLI powered by OpenAI GPT-5.4 — the ultimate code companion",
5
5
  "type": "module",
6
6
  "bin": {