robotcode-repl 2.8.0.dev677__py3-none-any.whl → 2.9.0.dev51__py3-none-any.whl

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.
@@ -1 +1 @@
1
- __version__ = "2.8.0-dev.677"
1
+ __version__ = "2.9.0-dev.51"
robotcode/repl/cli.py CHANGED
@@ -10,7 +10,7 @@ from robotcode.plugin._agent_detection import is_running_in_ai_agent
10
10
  from robotcode.plugin.click_helper.aliases import AliasedCommand
11
11
  from robotcode.plugin.click_helper.types import add_options
12
12
  from robotcode.plugin.click_helper.wrappable import wrappable
13
- from robotcode.runner.cli.robot import ROBOT_OPTIONS, ROBOT_VERSION_OPTIONS
13
+ from robotcode.runner.cli.robot import ROBOT_OPTIONS, ROBOT_VERSION_OPTIONS, load_robot_profile
14
14
 
15
15
  from .__version__ import __version__
16
16
  from ._backends import BACKEND_CHOICES
@@ -456,6 +456,9 @@ def repl(
456
456
  if files:
457
457
  files = tuple(f.absolute() for f in files)
458
458
 
459
+ # Before the interpreter is created, so that the session runs under the `wrapper`.
460
+ load_robot_profile(app, tuple(str(f) for f in files))
461
+
459
462
  # The shell starts with the debugger *detached* — a failing keyword prints
460
463
  # its error and you stay at the prompt — unless a pause trigger was given
461
464
  # (then attach so `--break …` just works) or `--debugger-attached` forces it.
@@ -559,6 +562,9 @@ def robot_debug(
559
562
  Takes the same arguments as `robotcode robot`, but pauses at breakpoints so
560
563
  you can inspect and step through the run at a debug prompt.
561
564
  """
565
+ # Before the interpreter and the debugger are created, so that the run runs under the `wrapper`.
566
+ load_robot_profile(app, robot_options_and_args)
567
+
562
568
  # Debugging a real run: the debugger is attached by default (the point of the
563
569
  # command), breaking on the first uncaught failure unless turned off. Only an
564
570
  # explicit `--no-debugger-attached` detaches it (then it runs like `robot`).
robotcode/repl/doc_cli.py CHANGED
@@ -88,6 +88,8 @@ class KeywordEntry:
88
88
  short_doc: str
89
89
  tags: List[str]
90
90
  doc: str
91
+ source: str
92
+ lineno: int
91
93
 
92
94
 
93
95
  @dataclass
@@ -394,6 +396,8 @@ def _keyword_entries(library: LibraryDoc, page: str, keywords: List[KeywordDoc])
394
396
  short_doc=_one_line(kw.format_text(getshortdoc(kw.doc))),
395
397
  tags=list(kw.tags),
396
398
  doc=kw.format_text(kw.doc),
399
+ source=kw.source or "",
400
+ lineno=kw.line_no,
397
401
  )
398
402
  for kw in keywords
399
403
  ]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: robotcode-repl
3
- Version: 2.8.0-dev.677
3
+ Version: 2.9.0-dev.51
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
@@ -27,7 +27,7 @@ Classifier: Topic :: Utilities
27
27
  Classifier: Typing :: Typed
28
28
  Requires-Python: >=3.10
29
29
  Requires-Dist: prompt-toolkit!=3.0.52
30
- Requires-Dist: robotcode-runner==2.8.0-dev.677
30
+ Requires-Dist: robotcode-runner==2.9.0-dev.51
31
31
  Description-Content-Type: text/markdown
32
32
 
33
33
  # robotcode-repl
@@ -1,14 +1,14 @@
1
1
  robotcode/repl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- robotcode/repl/__version__.py,sha256=0xyLlet74gxp40f05fA-fjXhAr2XdtEik3UuIJs6yAM,30
2
+ robotcode/repl/__version__.py,sha256=68lI1Ud2IVxiSKwJTXlHsfwV7s6ASsCia4CPMEdJ8Ls,29
3
3
  robotcode/repl/_backends.py,sha256=s7PV-HBhnAvwjn2le0cbOJ5hwLb4MjahUo6KWtRC3lc,110
4
4
  robotcode/repl/_indent.py,sha256=jwFKaHNvTWYpUwIWHu6JHoaCz7ljOxneR5sBrKcAjpI,3303
5
5
  robotcode/repl/_keyword_lookup.py,sha256=c8InMUDGKsw4wYmiqJzBr9GGxPC-59sRZHI0C-GWjFA,7748
6
6
  robotcode/repl/_progress.py,sha256=BaSbDGOy5UOXvD855Kd-lDrYbqPrYIWRVs507vJznK4,2586
7
7
  robotcode/repl/_session_export.py,sha256=sTSkLEMoSxNQOsII3xfDY8h-nV-mrem-4h6Iug7VQv4,2841
8
8
  robotcode/repl/base_interpreter.py,sha256=haLDzqVqrgs7uqmAGVjma8W8j110GcLA0KZlv0QHKxI,29856
9
- robotcode/repl/cli.py,sha256=jt0fvcQqZ40wX7GwfPawGDAd53BFCggsKSnydZYsHvc,22029
9
+ robotcode/repl/cli.py,sha256=tTK0QT3trBM4HdPiYA3tOD9MxX4C_w3mnxMgtR5fDbY,22349
10
10
  robotcode/repl/console_interpreter.py,sha256=4PwPwsE3D6ZE8qYe0ZRc58gTuf3GWQQa7Hh5hqs7hJw,87781
11
- robotcode/repl/doc_cli.py,sha256=24ZzA37cOt21wPzggx1fi_K2_GCpBekA6xiAp5_WRE0,23122
11
+ robotcode/repl/doc_cli.py,sha256=lJ1KrS-oxqW32XyRSFiyhSrtKVvzA7TuMclMuZRYIrE,23221
12
12
  robotcode/repl/hooks.py,sha256=huqeT18sHWxG2dQNCGmgQUkb11CzVQkOoDgrDAy9hqg,238
13
13
  robotcode/repl/prompt_toolkit_interpreter.py,sha256=0xbh71AMbuJt8nyIRVv0gEfIhnRrmO7ZVNKVss5yfNw,13344
14
14
  robotcode/repl/py.typed,sha256=bWew9mHgMy8LqMu7RuqQXFXLBxh2CRx0dUbSx-3wE48,27
@@ -24,7 +24,7 @@ robotcode/repl/_pt/components.py,sha256=kuYVXJc4bFJq4b3-JtAtBYymvS7ssSwlKDldWYFG
24
24
  robotcode/repl/_pt/doc_viewer.py,sha256=iazNOQEvRygPSUyqKH2qOYShzdYqd7vufZcxPziJx8Q,71648
25
25
  robotcode/repl/_pt/history.py,sha256=Rvbdu4LtbYk9dPgYJY7D1JpfyT1SETUdNmtevxo21H4,1591
26
26
  robotcode/repl/_pt/lexer.py,sha256=YXtDMWQXPIocwceMXFlvULWyGXCDmqeAtTer_Ecuvwk,13925
27
- robotcode_repl-2.8.0.dev677.dist-info/METADATA,sha256=CyoaFOvfxm8TR7cjRxoz2KAjNgG80_SekfEcquFhSyc,2835
28
- robotcode_repl-2.8.0.dev677.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
29
- robotcode_repl-2.8.0.dev677.dist-info/entry_points.txt,sha256=lI4idVOEmSWxmmioejg-_QvHXTLySK6ZxJ13R_v8ykU,40
30
- robotcode_repl-2.8.0.dev677.dist-info/RECORD,,
27
+ robotcode_repl-2.9.0.dev51.dist-info/METADATA,sha256=CaCnQQLtbakaOJ-LJlsg3CQsA9qmaBUcg-ZMvd_OYKs,2833
28
+ robotcode_repl-2.9.0.dev51.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
29
+ robotcode_repl-2.9.0.dev51.dist-info/entry_points.txt,sha256=lI4idVOEmSWxmmioejg-_QvHXTLySK6ZxJ13R_v8ykU,40
30
+ robotcode_repl-2.9.0.dev51.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatchling 1.32.4
2
+ Generator: hatchling 1.33.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any