autoclaw 1.0.33 → 1.0.35

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/dist/index.js CHANGED
@@ -78,7 +78,11 @@ async function runSetup(options = {}) {
78
78
  // Load both to show current effective values as defaults
79
79
  const globalConfig = loadJsonConfig(GLOBAL_CONFIG_FILE);
80
80
  const localConfig = loadJsonConfig(LOCAL_CONFIG_FILE);
81
- const currentConfig = { ...globalConfig, ...localConfig };
81
+ // If setting up Global (default), prioritize Global values for display, falling back to Local.
82
+ // If setting up Project, prioritize Project values (standard effective config).
83
+ const currentConfig = isProject
84
+ ? { ...globalConfig, ...localConfig }
85
+ : { ...localConfig, ...globalConfig };
82
86
  function maskSecret(secret) {
83
87
  if (!secret || secret.length < 8)
84
88
  return '******';
@@ -80,7 +80,11 @@ const handler = async (args, config) => {
80
80
  apiKey: apiKey,
81
81
  baseURL: baseURL
82
82
  });
83
- const { prompt, image_path, mask_path, n = 1, size = "1024x1024", quality = "standard", style = "vivid", output_dir = "." } = args;
83
+ const { prompt, image_path, mask_path, output_dir = "." } = args;
84
+ const n = args.n || config.imageN || 1;
85
+ const size = args.size || config.imageSize || "1024x1024";
86
+ const quality = args.quality || config.imageQuality || "standard";
87
+ const style = args.style || config.imageStyle || "vivid";
84
88
  let mode = args.mode;
85
89
  let model = args.model || config.imageModel || "dall-e-3";
86
90
  // Infer mode if not provided
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autoclaw",
3
- "version": "1.0.33",
3
+ "version": "1.0.35",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {