pointcode 0.1.4 → 0.1.5

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.mjs +44 -25
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -109655,10 +109655,19 @@ function parseUserSpecifiedModel(modelInput) {
109655
109655
  case "opusplan":
109656
109656
  return getDefaultSonnetModel() + (has1mTag ? "[1m]" : "");
109657
109657
  case "sonnet":
109658
+ if (getAPIProvider() === "openai") {
109659
+ return modelInputTrimmed;
109660
+ }
109658
109661
  return getDefaultSonnetModel() + (has1mTag ? "[1m]" : "");
109659
109662
  case "haiku":
109663
+ if (getAPIProvider() === "openai") {
109664
+ return modelInputTrimmed;
109665
+ }
109660
109666
  return getDefaultHaikuModel() + (has1mTag ? "[1m]" : "");
109661
109667
  case "opus":
109668
+ if (getAPIProvider() === "openai") {
109669
+ return modelInputTrimmed;
109670
+ }
109662
109671
  return getDefaultOpusModel() + (has1mTag ? "[1m]" : "");
109663
109672
  case "best":
109664
109673
  return getBestModel();
@@ -123105,7 +123114,7 @@ var init_metadata = __esm(() => {
123105
123114
  isClaudeAiAuth: isClaudeAISubscriber(),
123106
123115
  version: "99.0.0",
123107
123116
  versionBase: getVersionBase(),
123108
- buildTime: "2026-04-02T16:31:04.646Z",
123117
+ buildTime: "2026-04-02T16:51:00.462Z",
123109
123118
  deploymentEnvironment: env3.detectDeploymentEnvironment(),
123110
123119
  ...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
123111
123120
  githubEventName: process.env.GITHUB_EVENT_NAME,
@@ -364187,7 +364196,7 @@ function getAnthropicEnvMetadata() {
364187
364196
  function getBuildAgeMinutes() {
364188
364197
  if (false)
364189
364198
  ;
364190
- const buildTime = new Date("2026-04-02T16:31:04.646Z").getTime();
364199
+ const buildTime = new Date("2026-04-02T16:51:00.462Z").getTime();
364191
364200
  if (isNaN(buildTime))
364192
364201
  return;
364193
364202
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -428483,7 +428492,7 @@ function getRecentActivitySync() {
428483
428492
  return cachedActivity;
428484
428493
  }
428485
428494
  function getLogoDisplayData() {
428486
- const version2 = process.env.DEMO_VERSION ?? "0.1.4" ?? "99.0.0";
428495
+ const version2 = process.env.DEMO_VERSION ?? "0.1.5" ?? "99.0.0";
428487
428496
  const serverUrl = getDirectConnectServerUrl();
428488
428497
  const displayPath = process.env.DEMO_VERSION ? "/code/claude" : getDisplayPath(getCwd());
428489
428498
  const cwd2 = serverUrl ? `${displayPath} in ${serverUrl.replace(/^https?:\/\//, "")}` : displayPath;
@@ -458283,7 +458292,7 @@ var init_bridge_kick = __esm(() => {
458283
458292
  var call54 = async () => {
458284
458293
  return {
458285
458294
  type: "text",
458286
- value: `${"99.0.0"} (built ${"2026-04-02T16:31:04.646Z"})`
458295
+ value: `${"99.0.0"} (built ${"2026-04-02T16:51:00.462Z"})`
458287
458296
  };
458288
458297
  }, version2, version_default;
458289
458298
  var init_version = __esm(() => {
@@ -461303,22 +461312,29 @@ var exports_model2 = {};
461303
461312
  __export(exports_model2, {
461304
461313
  call: () => call61
461305
461314
  });
461306
- async function saveModelApiKey(value, onDone) {
461307
- if (getAPIProvider() === "openai") {
461315
+ function resolveBaseUrlForModel(model) {
461316
+ if (!model) {
461317
+ return process.env.OPENAI_BASE_URL;
461318
+ }
461319
+ const provider = getCNProviderList().find((item) => item.models.some((m) => m.id === model));
461320
+ if (provider) {
461321
+ return provider.baseUrl;
461322
+ }
461323
+ return process.env.OPENAI_BASE_URL;
461324
+ }
461325
+ async function saveModelApiKey(value, onDone, modelValue) {
461326
+ try {
461327
+ const openAIModel = modelValue ?? process.env.OPENAI_MODEL ?? "qwen3.5-plus";
461328
+ const openAIBaseUrl = resolveBaseUrlForModel(openAIModel) ?? "https://dashscope.aliyuncs.com/compatible-mode/v1";
461308
461329
  const profile = saveOpenAIProviderProfile({
461309
- OPENAI_BASE_URL: process.env.OPENAI_BASE_URL,
461310
- OPENAI_MODEL: process.env.OPENAI_MODEL,
461330
+ OPENAI_BASE_URL: openAIBaseUrl,
461331
+ OPENAI_MODEL: openAIModel,
461311
461332
  OPENAI_API_KEY: value
461312
461333
  });
461313
461334
  applyProviderProfileToProcessEnv(profile);
461314
- onDone("API key saved. You can now run /model to choose a model and start using PointCode.", {
461315
- display: "system"
461316
- });
461317
- return;
461318
- }
461319
- try {
461335
+ process.env.CLAUDE_CODE_USE_OPENAI = "1";
461336
+ delete process.env.ANTHROPIC_API_KEY;
461320
461337
  await saveApiKey(value);
461321
- process.env.ANTHROPIC_API_KEY = value;
461322
461338
  onDone("API key saved. You can now run /model to choose a model and start using PointCode.", {
461323
461339
  display: "system"
461324
461340
  });
@@ -461329,7 +461345,8 @@ async function saveModelApiKey(value, onDone) {
461329
461345
  }
461330
461346
  }
461331
461347
  function EnterApiKeyAndSave({
461332
- onDone
461348
+ onDone,
461349
+ modelValue
461333
461350
  }) {
461334
461351
  const terminalSize = useTerminalSize();
461335
461352
  const [apiKey, setApiKey] = import_react194.useState("");
@@ -461341,7 +461358,7 @@ function EnterApiKeyAndSave({
461341
461358
  setErrorText("API key cannot be empty.");
461342
461359
  return;
461343
461360
  }
461344
- saveModelApiKey(value, onDone);
461361
+ saveModelApiKey(value, onDone, modelValue);
461345
461362
  }
461346
461363
  return /* @__PURE__ */ jsx_dev_runtime352.jsxDEV(ThemedBox_default, {
461347
461364
  flexDirection: "column",
@@ -461453,7 +461470,7 @@ function ModelPickerWrapper(t0) {
461453
461470
  return;
461454
461471
  }
461455
461472
  let selectedModel = model;
461456
- if (selectedModel !== null && getAPIProvider() === "openai") {
461473
+ if (selectedModel !== null) {
461457
461474
  selectedModel = switchOpenAIModel(selectedModel);
461458
461475
  }
461459
461476
  if (selectedModel !== null) {
@@ -461468,6 +461485,7 @@ function ModelPickerWrapper(t0) {
461468
461485
  const showFastModeNotice = isFastModeEnabled() && isFastMode && isFastModeSupportedByModel(mainLoopModel) && isFastModeAvailable();
461469
461486
  if (pendingSelection) {
461470
461487
  return /* @__PURE__ */ jsx_dev_runtime352.jsxDEV(EnterApiKeyAndSave, {
461488
+ modelValue: pendingSelection.model,
461471
461489
  onDone: (result, options2) => {
461472
461490
  if (!result || !result.startsWith("API key saved")) {
461473
461491
  onDone(result, options2);
@@ -461738,6 +461756,7 @@ var init_model2 = __esm(() => {
461738
461756
  init_validateModel();
461739
461757
  init_auth2();
461740
461758
  init_providerSetup();
461759
+ init_cnProviders();
461741
461760
  React110 = __toESM(require_react(), 1);
461742
461761
  import_react194 = __toESM(require_react(), 1);
461743
461762
  jsx_dev_runtime352 = __toESM(require_jsx_dev_runtime(), 1);
@@ -530989,7 +531008,7 @@ function WelcomeV2() {
530989
531008
  dimColor: true,
530990
531009
  children: [
530991
531010
  "v",
530992
- "0.1.4",
531011
+ "0.1.5",
530993
531012
  " "
530994
531013
  ]
530995
531014
  }, undefined, true, undefined, this)
@@ -531189,7 +531208,7 @@ function WelcomeV2() {
531189
531208
  dimColor: true,
531190
531209
  children: [
531191
531210
  "v",
531192
- "0.1.4",
531211
+ "0.1.5",
531193
531212
  " "
531194
531213
  ]
531195
531214
  }, undefined, true, undefined, this)
@@ -531415,7 +531434,7 @@ function AppleTerminalWelcomeV2(t0) {
531415
531434
  dimColor: true,
531416
531435
  children: [
531417
531436
  "v",
531418
- "0.1.4",
531437
+ "0.1.5",
531419
531438
  " "
531420
531439
  ]
531421
531440
  }, undefined, true, undefined, this);
@@ -531669,7 +531688,7 @@ function AppleTerminalWelcomeV2(t0) {
531669
531688
  dimColor: true,
531670
531689
  children: [
531671
531690
  "v",
531672
- "0.1.4",
531691
+ "0.1.5",
531673
531692
  " "
531674
531693
  ]
531675
531694
  }, undefined, true, undefined, this);
@@ -552159,7 +552178,7 @@ Usage: claude --remote "your task description"`, () => gracefulShutdown(1));
552159
552178
  pendingHookMessages
552160
552179
  }, renderAndRun);
552161
552180
  }
552162
- }).version("0.1.4 (Open Claude)", "-v, --version", "Output the version number");
552181
+ }).version("0.1.5 (Open Claude)", "-v, --version", "Output the version number");
552163
552182
  program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
552164
552183
  program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
552165
552184
  if (canUserConfigureAdvisor()) {
@@ -552718,7 +552737,7 @@ function validateProviderEnvOrExit() {
552718
552737
  async function main2() {
552719
552738
  const args = process.argv.slice(2);
552720
552739
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
552721
- console.log(`${"0.1.4"} (PointCode)`);
552740
+ console.log(`${"0.1.5"} (PointCode)`);
552722
552741
  return;
552723
552742
  }
552724
552743
  validateProviderEnvOrExit();
@@ -552805,4 +552824,4 @@ async function main2() {
552805
552824
  }
552806
552825
  main2();
552807
552826
 
552808
- //# debugId=8E8ABDC9A8B939B064756E2164756E21
552827
+ //# debugId=59810AFAF4F90C5464756E2164756E21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pointcode",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "PointCode - 可自定义UI的AI编程助手",
5
5
  "type": "module",
6
6
  "bin": {