mirror of
https://github.com/storytold/craft-ai-integrations.git
synced 2026-11-22 07:35:41 +00:00
d94a3593ad
Crates move from a flat crates/ folder into four folders by what they reach: foundation (core, http, features, native, media), api (hosted services that take a key), local (ComfyUI, SAM 3 and the built-in engines) and app (client, widgets, agents, MCP gateway). Package names are unchanged, so consumers pinned to a git revision are not affected. Path dependencies need the new folder. Every path that named a crate folder is rewritten: workspace members and dependencies, relative paths inside crates (manifests, #[path] test support, include_str!), docs, consumer-smoke and the mutation tools. The TLS scan in ai-http now walks every group. docs/LAYOUT.md describes the folders and where a new crate goes.
18 lines
1.2 KiB
Python
18 lines
1.2 KiB
Python
"""Deliberate-bug cases for group `gs`: the generic `image.segment` route on ComfyUI (the scratch
|
|
sinks, the plain refusal of clicks and the stored selection workflow).
|
|
|
|
Loaded by mutation_check.py. Each case breaks one rule and names the test that should notice.
|
|
Format: (name, file, old, new, package, test target, test filter).
|
|
"""
|
|
PV = 'crates/local/ai-comfyui/src/provider.rs'
|
|
WF = 'crates/local/ai-comfyui/src/workflow.rs'
|
|
LB = 'crates/local/ai-comfyui/src/library.rs'
|
|
CC = 'craft-ai-comfyui'
|
|
|
|
GS_CASES = [
|
|
('sink-not-unique', PV, ' crate::scratch::route_sinks(&mut graph)?;\n', '', CC, 'segment_route', 'every_selection_has_its_own_sink'),
|
|
('clicks-get-the-generic-refusal', WF, 'if self.capability.as_str() == "image.segment" {\n "This', 'if false {\n "This', CC, 'segment_route', 'clicks_are_refused'),
|
|
('stored-selection-takes-a-mask', LB, ' if self.mask.is_some() {\n return Err(AiError::invalid("a selection workflow has no mask binding"));\n }\n', '', CC, 'segment_route', 'a_stored_workflow_can_be'),
|
|
('plain-import-of-a-selection', WF, 'if capability.as_str() == "image.segment" {', 'if false {', CC, 'segment_route', 'a_selection_workflow_needs'),
|
|
]
|