apex-dev 3.10.20 → 3.10.21

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/apex CHANGED
Binary file
package/dist/index.js CHANGED
@@ -54,6 +54,7 @@ var require_store = __commonJS((exports, module2) => {
54
54
  var _detectedProvider = config.detectInitialProvider();
55
55
  var _providerEnvKey = config.PROVIDERS[_detectedProvider].envKey;
56
56
  var _apiKey = process.env[_providerEnvKey] || "";
57
+ var _needsConfig = process.env.APEX_DEV_NEEDS_CONFIG === "true" || !Boolean(_apiKey);
57
58
  var state = {
58
59
  messages: [],
59
60
  streamingContent: "",
@@ -63,7 +64,7 @@ var require_store = __commonJS((exports, module2) => {
63
64
  showSummary: false,
64
65
  apiKey: _apiKey,
65
66
  provider: _detectedProvider,
66
- needsConfig: !Boolean(_apiKey)
67
+ needsConfig: _needsConfig
67
68
  };
68
69
  var nextId = 1;
69
70
  var listeners = new Set;
@@ -4696,6 +4697,7 @@ function App() {
4696
4697
  });
4697
4698
  }
4698
4699
  }, []);
4700
+ const showConfig = state.needsConfig || process.env.APEX_DEV_NEEDS_CONFIG === "true";
4699
4701
  return /* @__PURE__ */ jsx_runtime15.jsxs("box", {
4700
4702
  style: { flexDirection: "column", flexGrow: 1 },
4701
4703
  children: [
@@ -4719,10 +4721,12 @@ function App() {
4719
4721
  onClose: () => import_store5.setState({ showHelp: false }),
4720
4722
  onCommand: handleHelpCommand
4721
4723
  }) : null,
4724
+ showConfig ? /* @__PURE__ */ jsx_runtime15.jsx(globalThis._ApiKeyModal, {}) : null,
4722
4725
  state.needsConfig ? /* @__PURE__ */ jsx_runtime15.jsx(globalThis._ProviderSelector, {}) : null
4723
4726
  ]
4724
4727
  });
4725
4728
  }
4729
+ globalThis._App = App;
4726
4730
  async function main2() {
4727
4731
  if (process.env.APEX_LOCAL_SERVER === "1") {
4728
4732
  const srv = globalThis.require_server ? globalThis.require_server() : null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apex-dev",
3
- "version": "3.10.20",
3
+ "version": "3.10.21",
4
4
  "description": "Apex AI - a friendly agentic coding assistant for the terminal",
5
5
  "main": "dist/index.js",
6
6
  "bin": {