langstage-cli 0.6.54__tar.gz → 0.6.56__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.
- {langstage_cli-0.6.54/langstage_cli.egg-info → langstage_cli-0.6.56}/PKG-INFO +5 -1
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/README.md +4 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/langstage_cli/agui_stream.py +14 -1
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/langstage_cli/cli.py +4275 -4178
- {langstage_cli-0.6.54 → langstage_cli-0.6.56/langstage_cli.egg-info}/PKG-INFO +5 -1
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/langstage_cli.egg-info/SOURCES.txt +2 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/pyproject.toml +107 -107
- langstage_cli-0.6.56/tests/test_decision_shapes_209.py +197 -0
- langstage_cli-0.6.56/tests/test_interrupt_answer_text_206.py +317 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/LICENSE +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/deepagent_code/__init__.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/langstage_cli/__init__.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/langstage_cli/config.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/langstage_cli/exit_codes.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/langstage_cli/sessions.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/langstage_cli.egg-info/dependency_links.txt +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/langstage_cli.egg-info/entry_points.txt +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/langstage_cli.egg-info/requires.txt +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/langstage_cli.egg-info/top_level.txt +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/setup.cfg +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_advertised_wave4.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_agui_stream.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_approval_menu_abort.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_async_mode.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_checkpointer.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_cli.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_cli_help.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_codeconfig.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_config.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_config_command.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_configurable.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_ctrl_c_sync_tool.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_custom_decision_195.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_deferred_pass.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_dumb_term.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_exit_codes.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_generic_interrupt.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_help_render.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_hidden_option_suggestions.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_history_persist.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_hitl_approval_preview.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_hitl_resume_warning.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_init.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_interrupt_non_tty.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_legacy_config_home.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_load_error.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_menu_allowed_197.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_message_boundaries.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_no_color.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_no_interactive_approve.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_no_persist_resume.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_paused_session_message.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_persist_env.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_quiet_output.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_quiet_tool_result_204.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_reasoning_render.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_rename_shim.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_render_markdown.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_routine_1024.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_session_lifecycle.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_sessions.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_show_config.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_show_config_malformed.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_spec_loading_core.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_spec_resolution.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_spinner_reply_survives.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_stdin_interactive.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_stdin_single_shot.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_stream_mode.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_streaming_marker.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_terminal_width.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_toml_relative_paths.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_tool_card_args.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_tool_output_escape.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_turn_error_verbose.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_turn_exit_and_render.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_unicode_console.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_usage_hint_186.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_verbose_command.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_verify_flag.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_workspace.py +0 -0
- {langstage_cli-0.6.54 → langstage_cli-0.6.56}/tests/test_wrong_type_graph.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: langstage-cli
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.56
|
|
4
4
|
Summary: The terminal stage for your LangGraph agent — Claude Code-style CLI for any CompiledGraph
|
|
5
5
|
Author-email: Kedar Dabhadkar <kdabhadk@gmail.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -180,6 +180,10 @@ without you baking a checkpointer into your own graph:
|
|
|
180
180
|
pending action, such as `{"type": "approve"}` or `{"type": "reject", "message": "why"}`
|
|
181
181
|
(a pasted `{"decisions": [...]}` list also works). The prompt shows the shapes the
|
|
182
182
|
pending tool allows, and a decision it would refuse is caught before anything is sent.
|
|
183
|
+
- **Provide a response**, the menu for a plain `interrupt("What is your ZIP code?")`,
|
|
184
|
+
sends your answer as the text you typed: `94110`, `true` and `null` reach the agent as
|
|
185
|
+
strings, like `input()`. To send structured data, type a complete JSON object or array
|
|
186
|
+
(`{"a": 1}`, `["Alice", "B"]`); it arrives as a dict or list.
|
|
183
187
|
|
|
184
188
|
State lives in `~/.langstage/sessions/<workspace-hash>.sqlite` (honoring
|
|
185
189
|
`LANGSTAGE_CONFIG_HOME`; override the whole location with `LANGSTAGE_CLI_SESSIONS_DIR`).
|
|
@@ -142,6 +142,10 @@ without you baking a checkpointer into your own graph:
|
|
|
142
142
|
pending action, such as `{"type": "approve"}` or `{"type": "reject", "message": "why"}`
|
|
143
143
|
(a pasted `{"decisions": [...]}` list also works). The prompt shows the shapes the
|
|
144
144
|
pending tool allows, and a decision it would refuse is caught before anything is sent.
|
|
145
|
+
- **Provide a response**, the menu for a plain `interrupt("What is your ZIP code?")`,
|
|
146
|
+
sends your answer as the text you typed: `94110`, `true` and `null` reach the agent as
|
|
147
|
+
strings, like `input()`. To send structured data, type a complete JSON object or array
|
|
148
|
+
(`{"a": 1}`, `["Alice", "B"]`); it arrives as a dict or list.
|
|
145
149
|
|
|
146
150
|
State lives in `~/.langstage/sessions/<workspace-hash>.sqlite` (honoring
|
|
147
151
|
`LANGSTAGE_CONFIG_HOME`; override the whole location with `LANGSTAGE_CLI_SESSIONS_DIR`).
|
|
@@ -15,6 +15,7 @@ bespoke event-parser path. ADR 0003 finished the migration: since langstage-core
|
|
|
15
15
|
0.6.1). The ``--agui`` flag it was named for is deprecated and inert (gh #88).
|
|
16
16
|
"""
|
|
17
17
|
|
|
18
|
+
import json
|
|
18
19
|
from typing import Any, AsyncIterator, Dict
|
|
19
20
|
|
|
20
21
|
_IMPORT_HINT = 'the AG-UI streaming path needs: pip install "langstage-core[agui]"'
|
|
@@ -64,5 +65,17 @@ async def agui_stream_updates(
|
|
|
64
65
|
"""
|
|
65
66
|
from langstage_core.agui import iter_chunk_frames
|
|
66
67
|
|
|
67
|
-
async for frame in iter_chunk_frames(agent, message, thread_id, resume=resume):
|
|
68
|
+
async for frame in iter_chunk_frames(agent, message, thread_id, resume=text_resume(resume)):
|
|
68
69
|
yield frame
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
def text_resume(resume: Any) -> Any:
|
|
73
|
+
"""``resume`` in the form that reaches the graph unchanged over core's resume wire.
|
|
74
|
+
|
|
75
|
+
A ``str`` here is text the user typed. Core's wire (both ``RunAgentInput.resume[]``
|
|
76
|
+
and the legacy ``forwarded_props.command.resume``) JSON-decodes a string payload,
|
|
77
|
+
so ``"94110"`` arrived as the int ``94110``, ``"true"`` as ``True`` and ``"null"``
|
|
78
|
+
as ``None`` (gh #206). Encoding the text as a JSON string makes that decode return
|
|
79
|
+
the very same string. Anything else (a dict, a list, ``None``) passes through.
|
|
80
|
+
"""
|
|
81
|
+
return json.dumps(resume) if isinstance(resume, str) else resume
|