@mindstudio-ai/agent 0.1.15 → 0.1.17

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
@@ -135,6 +135,34 @@ That's it — Claude Code will discover the MCP server on next launch. Auth is p
135
135
 
136
136
  Every action is exposed as an MCP tool with full JSON Schema definitions — your AI agent can discover and call any of them directly.
137
137
 
138
+ ## Ask — built-in SDK assistant
139
+
140
+ Not sure which action to use? Need a model ID? Want working code for a specific integration? Ask the SDK directly:
141
+
142
+ ```bash
143
+ mindstudio ask "generate an image with FLUX"
144
+ mindstudio ask "what models support vision?"
145
+ mindstudio ask "how do I send a Slack message with an attachment?"
146
+ mindstudio ask "what's the difference between generateText and userMessage?"
147
+ ```
148
+
149
+ The `ask` command runs a built-in agent that has full knowledge of every action, model, and connector in the platform. It resolves real model IDs, looks up config options, and returns complete, copy-paste-ready TypeScript code — no placeholders.
150
+
151
+ Pipe context in from other commands:
152
+
153
+ ```bash
154
+ echo "I need to connect to HubSpot and create a contact" | mindstudio ask
155
+ ```
156
+
157
+ **For AI agents:** Shell out to `mindstudio ask "..."` from any agent (Remy, Claude Code, custom agents) to get SDK expertise on demand. The response is clean markdown on stdout, ready to parse. Or use the `ask` MCP tool directly if connected via MCP.
158
+
159
+ **Example questions:**
160
+ - `"what actions are available for image generation?"` — discovery
161
+ - `"give me TypeScript code to generate an image with DALL-E 3"` — resolution with real model IDs and config
162
+ - `"what connectors could I configure?"` — OAuth service discovery
163
+ - `"how do I use runFromConnectorRegistry to post to Slack?"` — connector action details
164
+ - `"what are the config options for the flux-max-2 model?"` — model specs
165
+
138
166
  ## Authentication
139
167
 
140
168
  The fastest way to get started:
@@ -165,7 +193,7 @@ mindstudio whoami # Check current auth status
165
193
  mindstudio logout # Clear stored credentials
166
194
  ```
167
195
 
168
- Resolution order: constructor `apiKey` > `MINDSTUDIO_API_KEY` env > `~/.mindstudio/config.json` > `CALLBACK_TOKEN` env.
196
+ Resolution order: `CALLBACK_TOKEN` env (always takes priority in managed mode) > constructor `apiKey` > `MINDSTUDIO_API_KEY` env > `~/.mindstudio/config.json`.
169
197
 
170
198
  ## 200+ AI models
171
199
 
@@ -492,6 +520,7 @@ import { blockTypeAliases } from '@mindstudio-ai/agent';
492
520
  Usage: mindstudio <command | method> [options]
493
521
 
494
522
  Commands:
523
+ ask "<question>" Ask about actions, models, connectors
495
524
  login Authenticate with MindStudio (opens browser)
496
525
  logout Clear stored credentials
497
526
  whoami Show current authentication status