licos-dev-cli 0.2.4__tar.gz → 0.2.5__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.
@@ -17,10 +17,10 @@ packages/*/dist/
17
17
  .DS_Store
18
18
  Thumbs.db
19
19
 
20
- # Environment
21
- .env
22
- .env.local
23
- crates/industrial/industrial-stack.env
20
+ # Environment
21
+ .env
22
+ .env.local
23
+ crates/industrial/industrial-stack.env
24
24
 
25
25
  # Workspace
26
26
  /workspace/
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: licos-dev-cli
3
- Version: 0.2.4
3
+ Version: 0.2.5
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.2.5
7
+ Requires-Dist: licos-dev-sdk>=0.2.6
@@ -4,11 +4,11 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "licos-dev-cli"
7
- version = "0.2.4"
7
+ version = "0.2.5"
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.2.5",
11
+ "licos-dev-sdk>=0.2.6",
12
12
  "click>=8.1",
13
13
  ]
14
14
 
@@ -298,13 +298,27 @@ def html_cmd(input_path, content, filename, output_dir, content_type):
298
298
 
299
299
  # ── Model Catalog ────────────────────────────────────────────────────────────
300
300
 
301
- @cli.command("model-catalog")
302
- @click.option("--refresh", is_flag=True, help="Bypass local catalog cache")
303
- def model_catalog(refresh):
304
- """Print platform model capability catalog."""
305
- from licos_dev_sdk import fetch_model_catalogs
306
-
307
- _echo_json(fetch_model_catalogs(refresh=refresh))
301
+ @cli.command("model-catalog")
302
+ @click.option("--refresh", is_flag=True, help="Bypass local catalog cache")
303
+ @click.option("--workspace-id", default=None, help="Workspace id; defaults to runtime workspace")
304
+ @click.option("--input-capabilities", default=None, help="Optional input capabilities filter, for example text or image")
305
+ @click.option(
306
+ "--category-code",
307
+ default="llm",
308
+ help="Model category code, for example llm, vision_llm, image_generation",
309
+ )
310
+ def model_catalog(refresh, workspace_id, input_capabilities, category_code):
311
+ """Print platform model capability catalog."""
312
+ from licos_dev_sdk import fetch_model_catalogs
313
+
314
+ _echo_json(
315
+ fetch_model_catalogs(
316
+ refresh=refresh,
317
+ workspace_id=workspace_id,
318
+ category_code=category_code,
319
+ input_capabilities=input_capabilities,
320
+ )
321
+ )
308
322
 
309
323
 
310
324
  # ── LLM ──────────────────────────────────────────────────────────────────────
@@ -455,11 +469,12 @@ def video_generation_group():
455
469
  @video_generation_group.command("generate")
456
470
  @click.option("-p", "--prompt")
457
471
  @click.option("--image-url", default=None)
458
- @click.option("--model", default=None)
459
- @click.option("--parameters", default=None, help="Parameters JSON object")
460
- @click.option("--raw-request", default=None, help="Raw JSON request body")
461
- @click.option("--no-wait", is_flag=True, help="Return submit response without polling async tasks")
462
- def video_generate(prompt, image_url, model, parameters, raw_request, no_wait):
472
+ @click.option("--model", default=None)
473
+ @click.option("--input-capabilities", default=None, help="Override video model input filter: text or image")
474
+ @click.option("--parameters", default=None, help="Parameters JSON object")
475
+ @click.option("--raw-request", default=None, help="Raw JSON request body")
476
+ @click.option("--no-wait", is_flag=True, help="Return submit response without polling async tasks")
477
+ def video_generate(prompt, image_url, model, input_capabilities, parameters, raw_request, no_wait):
463
478
  """Generate a video from a text prompt and optional first-frame image."""
464
479
  from licos_dev_sdk import VideoGenerationClient
465
480
 
@@ -472,12 +487,13 @@ def video_generate(prompt, image_url, model, parameters, raw_request, no_wait):
472
487
  if raw_payload is None and not prompt:
473
488
  raise click.UsageError("Provide --prompt or --raw-request.")
474
489
  result = VideoGenerationClient().generate(
475
- prompt or "",
476
- image_url=image_url,
477
- model=model,
478
- parameters=parameter_payload,
479
- raw_request=raw_payload,
480
- wait=not no_wait,
490
+ prompt or "",
491
+ image_url=image_url,
492
+ model=model,
493
+ input_capabilities=input_capabilities,
494
+ parameters=parameter_payload,
495
+ raw_request=raw_payload,
496
+ wait=not no_wait,
481
497
  )
482
498
  _echo_json(result)
483
499