@picsart/ai-sdk 1.148.0 → 1.149.1

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 (4) hide show
  1. package/index.js +1 -0
  2. package/package.json +16 -10
  3. package/_cli.js +0 -12649
  4. package/bin/gen-ai.mjs +0 -3
package/index.js CHANGED
@@ -4001,6 +4001,7 @@ var { MODELS: MODELS26} = defineModels("ideogram", [
4001
4001
  description: "Best-in-class text placement for logos, posters, and graphic design.",
4002
4002
  features: [feat("Multi-Image Input", "input"), feat("Styles", "style")],
4003
4003
  paramConfig: {
4004
+ ...params.prompt(),
4004
4005
  ...params.aspectRatio(["16:9", "9:16", "1:1", "3:4", "4:3"]),
4005
4006
  ...params.renderingSpeed([
4006
4007
  { id: "FLASH", label: "Flash" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@picsart/ai-sdk",
3
- "version": "1.148.0",
3
+ "version": "1.149.1",
4
4
  "type": "module",
5
5
  "description": "Type-safe SDK for 100+ AI models — image, video, and audio generation with Picsart",
6
6
  "license": "MIT",
@@ -19,23 +19,20 @@
19
19
  "engines": {
20
20
  "node": ">=22.0.0"
21
21
  },
22
- "main": "./index.js",
23
- "module": "./index.js",
24
- "types": "./index.d.ts",
22
+ "main": "./dist/index.js",
23
+ "module": "./dist/index.js",
24
+ "types": "./dist/index.d.ts",
25
25
  "exports": {
26
- ".": {
27
- "types": "./index.d.ts",
28
- "import": "./index.js"
29
- }
26
+ ".": "./src/index.ts"
30
27
  },
31
28
  "bin": {
32
- "gen-ai": "./bin/gen-ai.mjs"
29
+ "gen-ai": "_cli/bin/run.mjs"
33
30
  },
34
31
  "oclif": {
35
32
  "bin": "gen-ai",
36
33
  "commands": {
37
34
  "strategy": "explicit",
38
- "target": "./_cli.js",
35
+ "target": "./_cli/src/commands-manifest.ts",
39
36
  "identifier": "COMMANDS"
40
37
  },
41
38
  "topicSeparator": " ",
@@ -46,6 +43,12 @@
46
43
  "-v"
47
44
  ]
48
45
  },
46
+ "scripts": {
47
+ "typecheck": "tsc --noEmit -p tsconfig.json",
48
+ "build:sdk": "npm run build:model-constants && npx tsup && cp package.json dist/package.json",
49
+ "build:model-constants": "node scripts/build-model-constants.mjs",
50
+ "bundle": "npm run build:sdk"
51
+ },
49
52
  "dependencies": {
50
53
  "@inquirer/checkbox": "^5.1.2",
51
54
  "@inquirer/confirm": "^6.0.10",
@@ -59,6 +62,9 @@
59
62
  "fflate": "^0.8.2",
60
63
  "ora": "^8.2.0"
61
64
  },
65
+ "devDependencies": {
66
+ "tsup": "^8.5.1"
67
+ },
62
68
  "repository": {
63
69
  "type": "git",
64
70
  "url": "git+ssh://git@gitlab.com/picsart/web/miniapp-projects/ai-toolkit.git"