MCPcopy Create free account
hub / github.com/github/spec-kit / invoke_separator_for_integration

Function invoke_separator_for_integration

src/specify_cli/integration_runtime.py:71–90  ·  view source on GitHub ↗

Resolve the invocation separator for stored/default integration state.

(
    integration: Any,
    state: dict[str, Any],
    key: str,
    parsed_options: dict[str, Any] | None = None,
)

Source from the content-addressed store, hash-verified

69
70
71def invoke_separator_for_integration(
72 integration: Any,
73 state: dict[str, Any],
74 key: str,
75 parsed_options: dict[str, Any] | None = None,
76) -> str:
77 """Resolve the invocation separator for stored/default integration state."""
78 if parsed_options is not None:
79 return integration.effective_invoke_separator(parsed_options)
80
81 setting = integration_setting(state, key)
82 stored_separator = setting.get("invoke_separator")
83 if isinstance(stored_separator, str) and stored_separator:
84 return stored_separator
85
86 stored_parsed = setting.get("parsed_options")
87 if isinstance(stored_parsed, dict):
88 return integration.effective_invoke_separator(stored_parsed)
89
90 return integration.effective_invoke_separator(None)

Callers

nothing calls this directly

Calls 3

integration_settingFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected