@mindstudio-ai/agent 0.1.176 → 0.1.178

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 (50) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/analytics/index.d.ts +384 -0
  3. package/dist/auth/index.d.ts +113 -0
  4. package/dist/browser/index.d.ts +332 -0
  5. package/dist/cli.js +29 -29
  6. package/dist/client.d.ts +767 -0
  7. package/dist/config.d.ts +13 -0
  8. package/dist/context.d.ts +125 -0
  9. package/dist/datasources/index.d.ts +52 -0
  10. package/dist/datasources/source.d.ts +1074 -0
  11. package/dist/db/aggregate.d.ts +101 -0
  12. package/dist/db/index.d.ts +280 -0
  13. package/dist/db/mutation.d.ts +65 -0
  14. package/dist/db/predicate.d.ts +85 -0
  15. package/dist/db/query.d.ts +233 -0
  16. package/dist/db/raw.d.ts +36 -0
  17. package/dist/db/readBatching.d.ts +36 -0
  18. package/dist/db/scanHints.d.ts +8 -0
  19. package/dist/db/sql.d.ts +136 -0
  20. package/dist/db/table.d.ts +146 -0
  21. package/dist/db/time.d.ts +17 -0
  22. package/dist/db/types.d.ts +237 -0
  23. package/dist/db-ws.d.ts +35 -0
  24. package/dist/email/index.d.ts +396 -0
  25. package/dist/errors.d.ts +34 -0
  26. package/dist/events/index.d.ts +127 -0
  27. package/dist/files/index.d.ts +62 -0
  28. package/dist/files/store.d.ts +244 -0
  29. package/dist/generated/metadata.d.ts +8 -0
  30. package/dist/generated/snippets.d.ts +8 -0
  31. package/dist/generated/steps.d.ts +2745 -0
  32. package/dist/generated/types.d.ts +4234 -0
  33. package/dist/http.d.ts +22 -0
  34. package/dist/index.d.ts +59 -13329
  35. package/dist/index.js +17 -17
  36. package/dist/index.js.map +7 -1
  37. package/dist/jewel/index.d.ts +325 -0
  38. package/dist/mapper/index.d.ts +229 -0
  39. package/dist/rate-limit.d.ts +25 -0
  40. package/dist/reader/index.d.ts +170 -0
  41. package/dist/respond.d.ts +68 -0
  42. package/dist/task/index.d.ts +18 -0
  43. package/dist/task/local.d.ts +48 -0
  44. package/dist/task/schema.d.ts +120 -0
  45. package/dist/task/types.d.ts +203 -0
  46. package/dist/types.d.ts +591 -0
  47. package/dist/voice/index.d.ts +87 -0
  48. package/llms.txt +2 -2
  49. package/package.json +6 -12
  50. package/dist/postinstall.js +0 -12115
package/dist/index.js CHANGED
@@ -113,7 +113,7 @@ var noopAls = {
113
113
  var als = noopAls;
114
114
  try {
115
115
  if (typeof process !== "undefined" && process.versions?.node) {
116
- const mod = await import("async_hooks");
116
+ const mod = await import("node:async_hooks");
117
117
  als = new mod.AsyncLocalStorage();
118
118
  }
119
119
  } catch {
@@ -476,9 +476,9 @@ var RateLimiter = class {
476
476
  };
477
477
 
478
478
  // src/config.ts
479
- import { readFileSync, writeFileSync, mkdirSync } from "fs";
480
- import { join } from "path";
481
- import { homedir } from "os";
479
+ import { readFileSync, writeFileSync, mkdirSync } from "node:fs";
480
+ import { join } from "node:path";
481
+ import { homedir } from "node:os";
482
482
  function configPaths() {
483
483
  const dir = join(homedir(), ".mindstudio");
484
484
  return { dir, file: join(dir, "config.json") };
@@ -3115,12 +3115,12 @@ var DbReadBatching = class {
3115
3115
  };
3116
3116
 
3117
3117
  // src/files/store.ts
3118
- import { createHash, randomUUID } from "crypto";
3119
- import { createReadStream, createWriteStream } from "fs";
3120
- import { readFile, stat, writeFile } from "fs/promises";
3121
- import { basename } from "path";
3122
- import { Readable } from "stream";
3123
- import { pipeline } from "stream/promises";
3118
+ import { createHash, randomUUID } from "node:crypto";
3119
+ import { createReadStream, createWriteStream } from "node:fs";
3120
+ import { readFile, stat, writeFile } from "node:fs/promises";
3121
+ import { basename } from "node:path";
3122
+ import { Readable } from "node:stream";
3123
+ import { pipeline } from "node:stream/promises";
3124
3124
  function fileUrl(access, store, key) {
3125
3125
  const path = key.split("/").map(encodeURIComponent).join("/");
3126
3126
  return `/_/files/${access}/${store}/${path}`;
@@ -3668,7 +3668,7 @@ function createFiles(call, runStep) {
3668
3668
  }
3669
3669
 
3670
3670
  // src/datasources/source.ts
3671
- import { createHash as createHash2 } from "crypto";
3671
+ import { createHash as createHash2 } from "node:crypto";
3672
3672
  var DICTIONARY_PAGE_ENTRIES = 1e4;
3673
3673
  var DICTIONARY_PAGE_BYTES = 4e6;
3674
3674
  var REMOVE_WHERE_MAX_PAGES = 100;
@@ -4345,7 +4345,7 @@ function createEvents(call) {
4345
4345
  }
4346
4346
 
4347
4347
  // src/browser/index.ts
4348
- import { randomUUID as randomUUID2 } from "crypto";
4348
+ import { randomUUID as randomUUID2 } from "node:crypto";
4349
4349
  var RETRYABLE_STATUSES = /* @__PURE__ */ new Set([502, 503, 504]);
4350
4350
  var RETRY_BACKOFFS_MS = [1e3, 2e3, 4e3, 8e3, 15e3, 15e3, 15e3];
4351
4351
  var MAX_TOOL_STEPS = 20;
@@ -4857,7 +4857,7 @@ function createBrowser(call, steps) {
4857
4857
  }
4858
4858
 
4859
4859
  // src/task/local.ts
4860
- import { randomUUID as randomUUID3 } from "crypto";
4860
+ import { randomUUID as randomUUID3 } from "node:crypto";
4861
4861
 
4862
4862
  // src/generated/metadata.ts
4863
4863
  var stepMetadata = {
@@ -5188,7 +5188,7 @@ var stepMetadata = {
5188
5188
  "generate3dModel": {
5189
5189
  stepType: "generate3dModel",
5190
5190
  description: "Generate a 3D model using a 3D generation model.",
5191
- usageNotes: "- The default model is wavespeed-tripo3d-h3.1 (Tripo v3.1), which makes a model from the prompt, from one `image`, or from `images`: 2\u20134 views of the same object, in order front, left, back, right.\n- Models and what they take, set in `threeDModelOverride.config`:\n - From text or an image: wavespeed-tripo3d-h3.1, wavespeed-meshy7.1 (also `images`, 1\u20134 views), wavespeed-hunyuan3d-v3 (an `image`, plus optional `back_image_url`, `left_image_url`, `right_image_url`), wavespeed-hunyuan-3d-v3.1-rapid, wavespeed-tripo3d-p2, wavespeed-rodin-v2.5 (`images`, 1\u20135).\n - From an image only: trellis-2, wavespeed-meshy7 (or `images`, 1\u20134 views), wavespeed-tripo3d-v2.5, seed3d-2.0, wavespeed-sam-3d-objects (with optional `mask_images`).\n - From views: wavespeed-hi3d-v3.0 (`front_image`, and optional `back_image`, `left_image`, `right_image`).\n- `$mode` in the config picks a model's mode (`text-to-3d`, `image-to-3d`, or its multi-view mode). Left out, `images` picks the multi-view mode and `image` picks image-to-3d; with neither, the model's default mode. A text mode needs the prompt; in the others the prompt is optional guidance.\n- The output is standardized as a GLB URL plus optional FBX/OBJ/USDZ, thumbnail, texture maps, and provider task ID.",
5191
+ usageNotes: "- The default model is wavespeed-tripo3d-h3.1 (Tripo v3.1), which makes a model from the prompt, from one `image`, or from `images`: 2\u20134 views of the same object, in order front, left, back, right.\n- Models and what they take, set in `threeDModelOverride.config`:\n - From text or an image: wavespeed-tripo3d-h3.1, wavespeed-meshy7.1 (also `images`, 1\u20134 views), wavespeed-hunyuan3d-v3 (an `image`, plus optional `back_image_url`, `left_image_url`, `right_image_url`), wavespeed-hunyuan-3d-v3.1-rapid, wavespeed-tripo3d-p2, wavespeed-rodin-v2.5 (`images`, 1\u20135).\n - From an image only: trellis-2, wavespeed-meshy7 (or `images`, 1\u20134 views), seed3d-2.0.\n - From views: wavespeed-hi3d-v3.0 (`front_image`, and optional `back_image`, `left_image`, `right_image`).\n- `$mode` in the config picks a model's mode (`text-to-3d`, `image-to-3d`, or its multi-view mode). Left out, `images` picks the multi-view mode and `image` picks image-to-3d; with neither, the model's default mode. A text mode needs the prompt; in the others the prompt is optional guidance.\n- The output is standardized as a GLB URL plus optional FBX/OBJ/USDZ, thumbnail, texture maps, and provider task ID.",
5192
5192
  inputSchema: { "type": "object", "properties": { "prompt": { "type": "string", "description": "Text prompt for text-to-3D models, or optional guidance for image-to-3D models" }, "intermediateAsset": { "type": "boolean", "description": "When true, the asset is created but hidden from the user's gallery (tagged as intermediate)" }, "threeDModelOverride": { "type": "object", "properties": { "model": { "type": "string", "description": "3D generation model identifier" }, "config": { "type": "object", "properties": {}, "required": [], "description": "Additional model-specific configuration" } }, "required": ["model"], "description": "Optional model configuration override. Uses the workflow's default 3D model if not specified" } } },
5193
5193
  outputSchema: { "type": "object", "properties": { "prompt": { "type": "string" }, "glbUrl": { "type": "string" }, "fbxUrl": { "type": "string" }, "objUrl": { "type": "string" }, "usdzUrl": { "type": "string" }, "thumbnailUrl": { "type": "string" }, "textureUrls": { "type": "array", "items": { "type": "object", "properties": {}, "required": [] } }, "providerTaskId": { "type": "string" }, "resolvedConfig": { "type": "object", "properties": {}, "required": [] } }, "required": ["glbUrl"] }
5194
5194
  },
@@ -5230,7 +5230,7 @@ var stepMetadata = {
5230
5230
  "generateSound": {
5231
5231
  stepType: "generateSound",
5232
5232
  description: "Generate a sound effect from a text description using a sound model.",
5233
- usageNotes: "- `text` describes the sound effect to generate.\n- The default model is elevenlabs-sound_v2. Options go in `soundModelOverride.config`:\n - `durationSeconds` \u2014 the length, from 0.5 to 30. Left out, the model picks one from the text, and the effect is billed as 5 seconds whatever its length.\n - `loop: true` \u2014 a sound that repeats with no audible start or end, for ambience and backgrounds.\n - `promptInfluence` \u2014 how literally the text is followed, from 0 to 1 (default 0.3).\n - `outputFormat` \u2014 MP3 (`mp3_44100_128` by default, up to `mp3_44100_192`) or Opus (`opus_48000_32` to `opus_48000_192`).\n- In foreground mode, the audio is displayed to the user. In background mode, the URL is saved to a variable.",
5233
+ usageNotes: "- `text` describes the sound effect to generate.\n- The default model is elevenlabs-sound_v3. Options go in `soundModelOverride.config`:\n - `durationSeconds` \u2014 the length, from 0.5 to 30. Left out, the model picks one from the text, and the effect is billed as 5 seconds whatever its length.\n - `loop: true` \u2014 a sound that repeats with no audible start or end, for ambience and backgrounds.\n - `promptInfluence` \u2014 how literally the text is followed, from 0 to 1 (default 0.3).\n - `outputFormat` \u2014 MP3 (`mp3_44100_128` by default, up to `mp3_44100_192`) or Opus (`opus_48000_32` to `opus_48000_192`).\n- In foreground mode, the audio is displayed to the user. In background mode, the URL is saved to a variable.",
5234
5234
  inputSchema: { "type": "object", "properties": { "text": { "type": "string", "description": "The description of the sound effect to generate" }, "intermediateAsset": { "type": "boolean", "description": "When true, the asset is created but hidden from the user's gallery (tagged as intermediate)" }, "soundModelOverride": { "type": "object", "properties": { "model": { "type": "string" }, "config": { "type": "object", "properties": {}, "required": [] } }, "required": ["model"], "description": "Optional model configuration override. Uses the workflow's default sound model if not specified" } }, "required": ["text"] },
5235
5235
  outputSchema: { "type": "object", "properties": { "audioUrl": { "type": "string", "description": "URL of the generated audio file" } }, "required": ["audioUrl"] }
5236
5236
  },
@@ -9487,7 +9487,7 @@ function defineJewel(method, config) {
9487
9487
  }
9488
9488
 
9489
9489
  // src/mapper/index.ts
9490
- import { gzipSync } from "zlib";
9490
+ import { gzipSync } from "node:zlib";
9491
9491
  function documents(list) {
9492
9492
  return {
9493
9493
  kind: "documents",
@@ -10209,4 +10209,4 @@ export {
10209
10209
  voice,
10210
10210
  waitUntil
10211
10211
  };
10212
- //# sourceMappingURL=index.js.map
10212
+ //# sourceMappingURL=index.js.map