natureco-cli 2.23.13 → 2.23.14

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/package.json +1 -1
  2. package/src/utils/api.js +4 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "natureco-cli",
3
- "version": "2.23.13",
3
+ "version": "2.23.14",
4
4
  "description": "NatureCo AI Bot Terminal Interface",
5
5
  "bin": {
6
6
  "natureco": "bin/natureco.js"
package/src/utils/api.js CHANGED
@@ -533,6 +533,7 @@ async function sendMessageAnthropic(providerConfig, messages, tools) {
533
533
  */
534
534
  async function sendMessageToProvider(apiKey, message, conversationId = null, systemPrompt = null, options = {}) {
535
535
  const providerConfig = getProviderConfig();
536
+ console.error('DEBUG sendMessageToProvider providerUrl:', providerConfig?.url);
536
537
 
537
538
  if (!providerConfig) {
538
539
  throw new Error(
@@ -731,6 +732,9 @@ function clearConversation(conversationId) {
731
732
  async function sendMessage(apiKey, botId, message, conversationId = null, chatSystemPrompt = '', options = {}) {
732
733
  // Handle legacy 6th param (toolDefinitions array was passed)
733
734
  if (Array.isArray(options)) options = {};
735
+ const providerConfig = getProviderConfig();
736
+ console.error('DEBUG providerUrl:', providerConfig?.url);
737
+ console.error('DEBUG provider type:', providerConfig?.isAnthropic ? 'anthropic' : 'openai');
734
738
  // Get user's home directory
735
739
  const homeDir = os.homedir();
736
740
 
@@ -740,7 +744,6 @@ async function sendMessage(apiKey, botId, message, conversationId = null, chatSy
740
744
 
741
745
  // Get config to check MCP status
742
746
  const config = getConfig();
743
- const providerConfig = getProviderConfig();
744
747
 
745
748
  // NatureCo — minimal system prompt, skip tool descriptions/MCP
746
749
  if (providerConfig && providerConfig.url.includes('api.natureco.me')) {