@mindstudio-ai/agent 0.1.126 → 0.1.128

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
@@ -251,7 +251,7 @@ Model types: `llm_chat`, `image_generation`, `video_generation`, `video_analysis
251
251
 
252
252
  ## 1,000+ integrations
253
253
 
254
- 850+ connector actions from the open-source [MindStudio Connector Registry (MSCR)](https://github.com/mindstudio-ai/mscr) — across services like ActiveCampaign, Airtable, Apollo, Canva, ElevenLabs, MailChimp, Notion, and more — alongside 140+ built-in actions for AI, media, web, and data processing.
254
+ 850+ connector actions from the open-source [MindStudio Connector Registry (MSCR)](https://github.com/mindstudio-ai/mscr) — across services like ActiveCampaign, Airtable, Apollo, Canva, ElevenLabs, MailChimp, Notion, QuickBooks and more — alongside 140+ built-in actions for AI, media, web, and data processing.
255
255
 
256
256
  ```typescript
257
257
  // Browse connectors and their actions
@@ -394,11 +394,18 @@ const result = await agent.runTask({
394
394
  tools: [
395
395
  'searchGoogle',
396
396
  'fetchUrl',
397
- { appMethod: 'saveRestaurant', description: 'Persist the researched restaurant.' },
397
+ {
398
+ appMethod: 'saveRestaurant',
399
+ description: 'Persist the researched restaurant.',
400
+ },
398
401
  {
399
402
  name: 'checkExisting',
400
403
  description: 'Look up whether we already track this restaurant.',
401
- inputSchema: { type: 'object', properties: { name: { type: 'string' } }, required: ['name'] },
404
+ inputSchema: {
405
+ type: 'object',
406
+ properties: { name: { type: 'string' } },
407
+ required: ['name'],
408
+ },
402
409
  execute: async (input) => Restaurants.findByName(String(input.name)),
403
410
  },
404
411
  ],
@@ -455,14 +462,22 @@ For decision moments the app detects itself (an ingest branch that lands a row i
455
462
  pending state), hand the moment to the jewels from backend code:
456
463
 
457
464
  ```ts
458
- mindstudio.waitUntil((async () => {
459
- const merge = await mindstudio.jewels.propose(
460
- 'merge-issues', { sourceId: issue.id }, { idempotencyKey: issue.id });
461
- if (merge.outcome !== 'committed') {
462
- await mindstudio.jewels.propose(
463
- 'triage-issue', { issueId: issue.id }, { idempotencyKey: issue.id });
464
- }
465
- })());
465
+ mindstudio.waitUntil(
466
+ (async () => {
467
+ const merge = await mindstudio.jewels.propose(
468
+ 'merge-issues',
469
+ { sourceId: issue.id },
470
+ { idempotencyKey: issue.id },
471
+ );
472
+ if (merge.outcome !== 'committed') {
473
+ await mindstudio.jewels.propose(
474
+ 'triage-issue',
475
+ { issueId: issue.id },
476
+ { idempotencyKey: issue.id },
477
+ );
478
+ }
479
+ })(),
480
+ );
466
481
  ```
467
482
 
468
483
  The platform routes each proposal by the method's autonomy — `recorded` (shadow),