hugpy-engine 0.3.11__tar.gz → 0.3.13__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.
Files changed (53) hide show
  1. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/PKG-INFO +1 -1
  2. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/pyproject.toml +1 -1
  3. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/src/hugpy_engine/llama/runners/fitevict_runner.py +6 -1
  4. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/src/hugpy_engine/task_endpoints.py +17 -5
  5. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/src/hugpy_engine.egg-info/PKG-INFO +1 -1
  6. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/README.md +0 -0
  7. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/setup.cfg +0 -0
  8. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/src/hugpy_engine/__init__.py +0 -0
  9. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/src/hugpy_engine/categories.py +0 -0
  10. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/src/hugpy_engine/config/__init__.py +0 -0
  11. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/src/hugpy_engine/config/main.py +0 -0
  12. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/src/hugpy_engine/config/models/__init__.py +0 -0
  13. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/src/hugpy_engine/config/models/models_config.py +0 -0
  14. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/src/hugpy_engine/config/models/models_default.py +0 -0
  15. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/src/hugpy_engine/core_auth.py +0 -0
  16. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/src/hugpy_engine/dispatch/__init__.py +0 -0
  17. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/src/hugpy_engine/dispatch/dispatch.py +0 -0
  18. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/src/hugpy_engine/fit/__init__.py +0 -0
  19. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/src/hugpy_engine/fit/types.py +0 -0
  20. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/src/hugpy_engine/imports/__init__.py +0 -0
  21. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/src/hugpy_engine/imports/classes.py +0 -0
  22. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/src/hugpy_engine/imports/constants.py +0 -0
  23. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/src/hugpy_engine/imports/functions.py +0 -0
  24. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/src/hugpy_engine/imports/init_imports.py +0 -0
  25. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/src/hugpy_engine/llama/__init__.py +0 -0
  26. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/src/hugpy_engine/llama/runners/__init__.py +0 -0
  27. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/src/hugpy_engine/name_match.py +0 -0
  28. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/src/hugpy_engine/placement.py +0 -0
  29. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/src/hugpy_engine/py.typed +0 -0
  30. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/src/hugpy_engine/resolvers/__init__.py +0 -0
  31. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/src/hugpy_engine/resolvers/assure_model_key.py +0 -0
  32. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/src/hugpy_engine/resolvers/categories/__init__.py +0 -0
  33. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/src/hugpy_engine/resolvers/categories/builders.py +0 -0
  34. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/src/hugpy_engine/resolvers/categories/frameworks.py +0 -0
  35. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/src/hugpy_engine/resolvers/model_resolver.py +0 -0
  36. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/src/hugpy_engine/resolvers/task_resolution.py +0 -0
  37. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/src/hugpy_engine/schemas/__init__.py +0 -0
  38. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/src/hugpy_engine/schemas/chat_schemas.py +0 -0
  39. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/src/hugpy_engine/schemas/event_schemas.py +0 -0
  40. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/src/hugpy_engine/schemas/metadata_schemas.py +0 -0
  41. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/src/hugpy_engine/schemas/model_schemas.py +0 -0
  42. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/src/hugpy_engine/schemas/runner_schemas.py +0 -0
  43. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/src/hugpy_engine/schemas/task_schemas.py +0 -0
  44. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/src/hugpy_engine/task_deps.py +0 -0
  45. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/src/hugpy_engine/tasks.py +0 -0
  46. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/src/hugpy_engine/utils/__init__.py +0 -0
  47. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/src/hugpy_engine/utils/json_scavenge.py +0 -0
  48. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/src/hugpy_engine/utils/model_marker.py +0 -0
  49. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/src/hugpy_engine/utils/no_think.py +0 -0
  50. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/src/hugpy_engine.egg-info/SOURCES.txt +0 -0
  51. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/src/hugpy_engine.egg-info/dependency_links.txt +0 -0
  52. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/src/hugpy_engine.egg-info/requires.txt +0 -0
  53. {hugpy_engine-0.3.11 → hugpy_engine-0.3.13}/src/hugpy_engine.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hugpy-engine
3
- Version: 0.3.11
3
+ Version: 0.3.13
4
4
  Summary: Hugpy engine: model discovery and classification, allocation and eviction, native llama.cpp and GGUF runners, and the prompt-to-reply inference path with task and placement seams
5
5
  Author-email: putkoff <support@hugpy.ai>
6
6
  License-Expression: LicenseRef-Proprietary
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "hugpy-engine"
7
- version = "0.3.11"
7
+ version = "0.3.13"
8
8
  description = "Hugpy engine: model discovery and classification, allocation and eviction, native llama.cpp and GGUF runners, and the prompt-to-reply inference path with task and placement seams"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -92,6 +92,10 @@ class FitevictChatRunner:
92
92
  self.cfg = cfg
93
93
  self.model_key = cfg.model_key
94
94
  self.knobs = None
95
+ # Every call names WHY it happened (operator 2026-10-23): callers that
96
+ # construct this runner for a purpose (grading, assist, planning, ...)
97
+ # pass intent=...; a bare construction is ordinary generation.
98
+ self.intent = runtime_kwargs.pop("intent", None) or "generation"
95
99
  if runtime_kwargs:
96
100
  logger.debug("FitevictChatRunner ignoring runtime_kwargs %s for %s "
97
101
  "(placement is the front door's)", sorted(runtime_kwargs),
@@ -109,7 +113,8 @@ class FitevictChatRunner:
109
113
  "top_p": req.top_p,
110
114
  "task": "chat",
111
115
  "metadata": {"hugpy_request_id": req.request_id,
112
- "hugpy_model_key": req.model_key or self.model_key},
116
+ "hugpy_model_key": req.model_key or self.model_key,
117
+ "intent": getattr(req, "intent", None) or self.intent},
113
118
  }
114
119
  if self.knobs:
115
120
  body["knobs"] = self.knobs
@@ -73,6 +73,7 @@ TASK_ROUTES: dict[str, tuple[str, str]] = {
73
73
  # upsampler is its own runner/route (videoupres, task "video-upscale").
74
74
  "video-to-video": ("/v1/videos/generations", "video"),
75
75
  "video-upscale": ("/v1/videos/upscale", "video"),
76
+ "video-interpolation": ("/v1/videos/interpolate", "video"),
76
77
  # ADDITIVE (2026-10-21, wrapper 0.1.149 batch F — abstract-identity GPU
77
78
  # execution): Hunyuan3D image-to-3d (a GLB mesh artifact), and the ONE char360
78
79
  # child's two routes (person-tracking over a clip, and face embeddings over a
@@ -144,16 +145,21 @@ _BODY_SPECS: dict[str, dict] = {
144
145
  "metadata", "max_wait_s", "placement_intent", "keep_artifacts",
145
146
  # ADDITIVE (2026-10-21, wrapper batch C W2a — VACE v2v inputs):
146
147
  "video", "video_b64", "reference_images", "control_kind",
147
- "control_image", "mask", "source_frames", "context_frames",
148
+ "control_image", "mask", "source_frames", "context_frames", "context_images",
148
149
  "operation", "flow_shift"),
149
150
  },
150
151
  # ADDITIVE (2026-10-21, wrapper batch C W2b): the LTX latent upsampler route.
151
152
  "/v1/videos/upscale": {
152
153
  "input_key": None, "sources": (),
153
- "passthrough": ("video", "video_b64", "scale", "width", "height", "fps",
154
+ "passthrough": ("video", "video_b64", "scale", "width", "height", "fps", "seed",
154
155
  "response_format", "metadata", "max_wait_s",
155
156
  "placement_intent", "keep_artifacts"),
156
157
  },
158
+ "/v1/videos/interpolate": {
159
+ "input_key": None, "sources": (),
160
+ "passthrough": ("video", "video_b64", "fps", "response_format", "metadata",
161
+ "max_wait_s", "placement_intent", "keep_artifacts"),
162
+ },
157
163
  # ADDITIVE (2026-10-21, wrapper batch F): Hunyuan3D image-to-3d. No single
158
164
  # prompt — the payload is the ``views`` object ({front[,back,left,right]},
159
165
  # each {b64|artifact_id}); the rest are generation/placement knobs.
@@ -336,10 +342,16 @@ class TaskEndpointRunner:
336
342
  self.cfg = cfg
337
343
  self.model_key = getattr(cfg, "model_key", None)
338
344
 
339
- def _post(self, url: str, body: dict, timeout: float) -> "tuple[int, dict]":
345
+ def _post(self, url: str, body: dict, timeout: float,
346
+ request_id: "str | None" = None) -> "tuple[int, dict]":
340
347
  from hugpy_engine.core_auth import core_headers
348
+ headers = {"Content-Type": "application/json"}
349
+ if request_id:
350
+ # core records it as this call's parent and forwards it as the chain's
351
+ # root, so the job can find the worker's call row by its own id
352
+ headers["X-Hugpy-Parent-Request-Id"] = request_id
341
353
  req = urllib.request.Request(url, data=json.dumps(body).encode("utf-8"),
342
- headers=core_headers(url, {"Content-Type": "application/json"}),
354
+ headers=core_headers(url, headers),
343
355
  method="POST")
344
356
  try:
345
357
  with urllib.request.urlopen(req, timeout=timeout) as r:
@@ -370,7 +382,7 @@ class TaskEndpointRunner:
370
382
  raise TypeError("TaskEndpointRunner requires an EndpointRequest")
371
383
  body = {**req.body, "model": req.model_key}
372
384
  status, payload = await asyncio.to_thread(
373
- self._post, CORE_URL + req.route, body, req.timeout_s)
385
+ self._post, CORE_URL + req.route, body, req.timeout_s, req.request_id)
374
386
  return self._result(req, status, payload)
375
387
 
376
388
  async def stream(self, req: EndpointRequest, cancel_event=None):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hugpy-engine
3
- Version: 0.3.11
3
+ Version: 0.3.13
4
4
  Summary: Hugpy engine: model discovery and classification, allocation and eviction, native llama.cpp and GGUF runners, and the prompt-to-reply inference path with task and placement seams
5
5
  Author-email: putkoff <support@hugpy.ai>
6
6
  License-Expression: LicenseRef-Proprietary
File without changes
File without changes