robotcode-repl 2.5.1__tar.gz → 2.6.1__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.
- {robotcode_repl-2.5.1 → robotcode_repl-2.6.1}/.gitignore +5 -1
- {robotcode_repl-2.5.1 → robotcode_repl-2.6.1}/PKG-INFO +3 -2
- {robotcode_repl-2.5.1 → robotcode_repl-2.6.1}/pyproject.toml +3 -2
- robotcode_repl-2.6.1/src/robotcode/repl/Repl/repl.py +33 -0
- robotcode_repl-2.6.1/src/robotcode/repl/__version__.py +1 -0
- robotcode_repl-2.6.1/src/robotcode/repl/_backends.py +3 -0
- robotcode_repl-2.6.1/src/robotcode/repl/_debug/__init__.py +35 -0
- robotcode_repl-2.6.1/src/robotcode/repl/_debug/controller.py +739 -0
- robotcode_repl-2.6.1/src/robotcode/repl/_debug/types.py +141 -0
- robotcode_repl-2.6.1/src/robotcode/repl/_indent.py +82 -0
- robotcode_repl-2.6.1/src/robotcode/repl/_keyword_lookup.py +198 -0
- robotcode_repl-2.6.1/src/robotcode/repl/_progress.py +64 -0
- robotcode_repl-2.6.1/src/robotcode/repl/_pt/__init__.py +8 -0
- robotcode_repl-2.6.1/src/robotcode/repl/_pt/completion.py +592 -0
- robotcode_repl-2.6.1/src/robotcode/repl/_pt/components.py +485 -0
- robotcode_repl-2.6.1/src/robotcode/repl/_pt/doc_viewer.py +1261 -0
- robotcode_repl-2.6.1/src/robotcode/repl/_pt/history.py +48 -0
- robotcode_repl-2.6.1/src/robotcode/repl/_pt/lexer.py +305 -0
- robotcode_repl-2.6.1/src/robotcode/repl/_session_export.py +86 -0
- robotcode_repl-2.6.1/src/robotcode/repl/base_interpreter.py +461 -0
- robotcode_repl-2.6.1/src/robotcode/repl/cli.py +544 -0
- robotcode_repl-2.6.1/src/robotcode/repl/console_interpreter.py +1835 -0
- {robotcode_repl-2.5.1 → robotcode_repl-2.6.1}/src/robotcode/repl/hooks.py +2 -2
- robotcode_repl-2.6.1/src/robotcode/repl/prompt_toolkit_interpreter.py +294 -0
- {robotcode_repl-2.5.1 → robotcode_repl-2.6.1}/src/robotcode/repl/run.py +6 -26
- robotcode_repl-2.5.1/src/robotcode/repl/Repl/repl.py +0 -14
- robotcode_repl-2.5.1/src/robotcode/repl/__version__.py +0 -1
- robotcode_repl-2.5.1/src/robotcode/repl/base_interpreter.py +0 -245
- robotcode_repl-2.5.1/src/robotcode/repl/cli.py +0 -141
- robotcode_repl-2.5.1/src/robotcode/repl/console_interpreter.py +0 -141
- {robotcode_repl-2.5.1 → robotcode_repl-2.6.1}/README.md +0 -0
- {robotcode_repl-2.5.1 → robotcode_repl-2.6.1}/src/robotcode/repl/Repl/__init__.py +0 -0
- {robotcode_repl-2.5.1 → robotcode_repl-2.6.1}/src/robotcode/repl/__init__.py +0 -0
- {robotcode_repl-2.5.1 → robotcode_repl-2.6.1}/src/robotcode/repl/py.typed +0 -0
|
@@ -331,7 +331,7 @@ output.xml
|
|
|
331
331
|
bundled/libs
|
|
332
332
|
|
|
333
333
|
# robotframework
|
|
334
|
-
results/
|
|
334
|
+
/results/
|
|
335
335
|
|
|
336
336
|
# kilocode
|
|
337
337
|
.kilocode/
|
|
@@ -339,3 +339,7 @@ results/
|
|
|
339
339
|
# .agents
|
|
340
340
|
.agents/
|
|
341
341
|
skills-lock.json
|
|
342
|
+
.claude
|
|
343
|
+
|
|
344
|
+
# sarif files
|
|
345
|
+
/**/*.sarif.json
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: robotcode-repl
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.6.1
|
|
4
4
|
Summary: RobotCode REPL for Robot Framework
|
|
5
5
|
Project-URL: Homepage, https://robotcode.io
|
|
6
6
|
Project-URL: Donate, https://opencollective.com/robotcode
|
|
@@ -25,7 +25,8 @@ Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
|
25
25
|
Classifier: Topic :: Utilities
|
|
26
26
|
Classifier: Typing :: Typed
|
|
27
27
|
Requires-Python: >=3.10
|
|
28
|
-
Requires-Dist:
|
|
28
|
+
Requires-Dist: prompt-toolkit!=3.0.52
|
|
29
|
+
Requires-Dist: robotcode-runner==2.6.1
|
|
29
30
|
Description-Content-Type: text/markdown
|
|
30
31
|
|
|
31
32
|
# robotcode-repl
|
|
@@ -7,7 +7,7 @@ name = "robotcode-repl"
|
|
|
7
7
|
description = 'RobotCode REPL for Robot Framework'
|
|
8
8
|
readme = { "file" = "README.md", "content-type" = "text/markdown" }
|
|
9
9
|
requires-python = ">=3.10"
|
|
10
|
-
license = {text = "Apache-2.0"}
|
|
10
|
+
license = { text = "Apache-2.0" }
|
|
11
11
|
keywords = []
|
|
12
12
|
authors = [{ name = "Daniel Biehl", email = "dbiehl@live.de" }]
|
|
13
13
|
classifiers = [
|
|
@@ -28,7 +28,8 @@ classifiers = [
|
|
|
28
28
|
]
|
|
29
29
|
dynamic = ["version"]
|
|
30
30
|
dependencies = [
|
|
31
|
-
"robotcode-runner"
|
|
31
|
+
"robotcode-runner==2.6.1",
|
|
32
|
+
"prompt_toolkit!=3.0.52"
|
|
32
33
|
]
|
|
33
34
|
|
|
34
35
|
[project.entry-points.robotcode]
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import sys
|
|
2
|
+
|
|
3
|
+
from ..__version__ import __version__
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class Repl:
|
|
7
|
+
"""Marker library backing the RobotCode REPL/debugger integration.
|
|
8
|
+
|
|
9
|
+
``Breakpoint`` is the one keyword meant for use in your own suites (to pause
|
|
10
|
+
into the debug prompt under ``robotcode robot-debug``); ``Repl`` and ``Exit``
|
|
11
|
+
are used internally by ``robotcode repl`` and aren't normally called by hand.
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
ROBOT_LIBRARY_SCOPE = "GLOBAL"
|
|
15
|
+
ROBOT_LIBRARY_VERSION = __version__
|
|
16
|
+
|
|
17
|
+
def repl(self) -> None:
|
|
18
|
+
"""Internal marker keyword that opens the interactive REPL prompt.
|
|
19
|
+
|
|
20
|
+
Called by the synthetic suite ``robotcode repl`` runs; not meant to be
|
|
21
|
+
used directly in your own tests.
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
def breakpoint(self) -> None:
|
|
25
|
+
"""No-op marker keyword: the RobotCode debugger pauses here when attached.
|
|
26
|
+
|
|
27
|
+
Place ``Breakpoint`` in a suite (after ``Library robotcode.repl.Repl``)
|
|
28
|
+
to drop into the debug prompt at that point under ``robotcode robot-debug``;
|
|
29
|
+
in a normal ``robot`` run it does nothing.
|
|
30
|
+
"""
|
|
31
|
+
|
|
32
|
+
def exit(self, exit_code: int = 0) -> None:
|
|
33
|
+
sys.exit(exit_code)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "2.6.1"
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"""Synchronous, logger-driven Robot Framework debug core.
|
|
2
|
+
|
|
3
|
+
The `DebugController` consumes the keyword event stream (start/end) emitted by
|
|
4
|
+
the interpreter's logger (see `BaseInterpreter.register_observer`) and
|
|
5
|
+
drives pausing/stepping/inspection through a small `Frontend` protocol. It is
|
|
6
|
+
deliberate that this core knows nothing about threads, sockets, or DAP — those
|
|
7
|
+
are concerns of a particular front-end. The CLI front-end is the
|
|
8
|
+
`ConsoleInterpreter` itself (it implements `Frontend.wait_at_stop`).
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
from .controller import DebugController
|
|
12
|
+
from .types import (
|
|
13
|
+
Breakpoint,
|
|
14
|
+
DebugTerminated,
|
|
15
|
+
Frontend,
|
|
16
|
+
ResumeAction,
|
|
17
|
+
Scope,
|
|
18
|
+
StackFrame,
|
|
19
|
+
StopEvent,
|
|
20
|
+
StopReason,
|
|
21
|
+
Variable,
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
__all__ = [
|
|
25
|
+
"Breakpoint",
|
|
26
|
+
"DebugController",
|
|
27
|
+
"DebugTerminated",
|
|
28
|
+
"Frontend",
|
|
29
|
+
"ResumeAction",
|
|
30
|
+
"Scope",
|
|
31
|
+
"StackFrame",
|
|
32
|
+
"StopEvent",
|
|
33
|
+
"StopReason",
|
|
34
|
+
"Variable",
|
|
35
|
+
]
|