licos-dev-cli 0.3.3__tar.gz → 0.3.4__tar.gz

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.
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: licos-dev-cli
3
- Version: 0.3.3
3
+ Version: 0.3.4
4
4
  Summary: LICOS Dev CLI - generate files and call model capabilities
5
5
  Requires-Python: >=3.10
6
6
  Requires-Dist: click>=8.1
7
- Requires-Dist: licos-dev-sdk>=0.3.3
7
+ Requires-Dist: licos-dev-sdk>=0.3.4
@@ -4,11 +4,11 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "licos-dev-cli"
7
- version = "0.3.3"
7
+ version = "0.3.4"
8
8
  description = "LICOS Dev CLI - generate files and call model capabilities"
9
9
  requires-python = ">=3.10"
10
10
  dependencies = [
11
- "licos-dev-sdk>=0.3.3",
11
+ "licos-dev-sdk>=0.3.4",
12
12
  "click>=8.1",
13
13
  ]
14
14
 
@@ -315,6 +315,48 @@ def pptx(input_path, content, filename, output_dir, content_type):
315
315
  _echo_path(path)
316
316
 
317
317
 
318
+ @cli.command("pptx-deck")
319
+ @click.option("-i", "--input", "input_path", help="JSON presentation specification file")
320
+ @click.option("-c", "--content", help="JSON presentation specification")
321
+ @click.option("-f", "--filename", required=True, help="Output filename without extension")
322
+ @click.option("-o", "--output-dir", default=None, help="Output directory")
323
+ @click.option(
324
+ "--asset-base-path",
325
+ default=None,
326
+ type=click.Path(file_okay=False),
327
+ help="Base directory for relative image paths; defaults to the JSON file directory",
328
+ )
329
+ def pptx_deck(input_path, content, filename, output_dir, asset_base_path):
330
+ """Generate a professional PPTX from a structured JSON specification."""
331
+ from licos_dev_sdk import create_pptx_deck
332
+
333
+ spec = _read_json(input_path, content)
334
+ if not isinstance(spec, dict):
335
+ raise click.BadParameter("presentation specification must be a JSON object")
336
+ base_path = asset_base_path or (str(Path(input_path).resolve().parent) if input_path else None)
337
+ path = create_pptx_deck(
338
+ spec,
339
+ filename,
340
+ output_dir=output_dir,
341
+ asset_base_path=base_path,
342
+ )
343
+ _echo_path(path)
344
+
345
+
346
+ @cli.command("pptx-inspect")
347
+ @click.option("-f", "--file", "file_path", required=True, type=click.Path(exists=True, dir_okay=False))
348
+ @click.option("--min-slides", type=click.IntRange(min=1), default=None)
349
+ @click.option("--max-slides", type=click.IntRange(min=1), default=None)
350
+ def pptx_inspect(file_path, min_slides, max_slides):
351
+ """Inspect PPTX structure, content density, and requested slide-count limits."""
352
+ from licos_dev_sdk import inspect_pptx
353
+
354
+ report = inspect_pptx(file_path, min_slides=min_slides, max_slides=max_slides)
355
+ _echo_json(report)
356
+ if not report["quality_passed"]:
357
+ raise click.exceptions.Exit(2)
358
+
359
+
318
360
  # ── Chart ────────────────────────────────────────────────────────────────────
319
361
 
320
362
  @cli.command()
File without changes