klaude-code 2.7.0__py3-none-any.whl → 2.8.1__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.
- klaude_code/auth/AGENTS.md +325 -0
- klaude_code/auth/__init__.py +17 -1
- klaude_code/auth/antigravity/__init__.py +20 -0
- klaude_code/auth/antigravity/exceptions.py +17 -0
- klaude_code/auth/antigravity/oauth.py +320 -0
- klaude_code/auth/antigravity/pkce.py +25 -0
- klaude_code/auth/antigravity/token_manager.py +45 -0
- klaude_code/auth/base.py +4 -0
- klaude_code/auth/claude/oauth.py +29 -9
- klaude_code/auth/codex/exceptions.py +4 -0
- klaude_code/cli/auth_cmd.py +53 -3
- klaude_code/cli/cost_cmd.py +83 -160
- klaude_code/cli/list_model.py +50 -0
- klaude_code/cli/main.py +2 -2
- klaude_code/config/assets/builtin_config.yaml +108 -0
- klaude_code/config/builtin_config.py +5 -11
- klaude_code/config/config.py +24 -10
- klaude_code/const.py +2 -1
- klaude_code/core/agent.py +5 -1
- klaude_code/core/agent_profile.py +29 -33
- klaude_code/core/compaction/AGENTS.md +112 -0
- klaude_code/core/compaction/__init__.py +11 -0
- klaude_code/core/compaction/compaction.py +705 -0
- klaude_code/core/compaction/overflow.py +30 -0
- klaude_code/core/compaction/prompts.py +97 -0
- klaude_code/core/executor.py +121 -2
- klaude_code/core/manager/llm_clients.py +5 -0
- klaude_code/core/manager/llm_clients_builder.py +14 -2
- klaude_code/core/prompts/prompt-antigravity.md +80 -0
- klaude_code/core/prompts/prompt-codex-gpt-5-2.md +335 -0
- klaude_code/core/reminders.py +7 -2
- klaude_code/core/task.py +126 -0
- klaude_code/core/tool/file/edit_tool.py +1 -2
- klaude_code/core/tool/todo/todo_write_tool.py +1 -1
- klaude_code/core/turn.py +3 -1
- klaude_code/llm/antigravity/__init__.py +3 -0
- klaude_code/llm/antigravity/client.py +558 -0
- klaude_code/llm/antigravity/input.py +261 -0
- klaude_code/llm/registry.py +1 -0
- klaude_code/protocol/commands.py +1 -0
- klaude_code/protocol/events.py +18 -0
- klaude_code/protocol/llm_param.py +1 -0
- klaude_code/protocol/message.py +23 -1
- klaude_code/protocol/op.py +29 -1
- klaude_code/protocol/op_handler.py +10 -0
- klaude_code/session/export.py +308 -299
- klaude_code/session/session.py +36 -0
- klaude_code/session/templates/export_session.html +430 -134
- klaude_code/skill/assets/create-plan/SKILL.md +6 -6
- klaude_code/tui/command/__init__.py +6 -0
- klaude_code/tui/command/compact_cmd.py +32 -0
- klaude_code/tui/command/continue_cmd.py +34 -0
- klaude_code/tui/command/fork_session_cmd.py +110 -14
- klaude_code/tui/command/model_picker.py +5 -1
- klaude_code/tui/command/thinking_cmd.py +1 -1
- klaude_code/tui/commands.py +6 -0
- klaude_code/tui/components/rich/markdown.py +119 -12
- klaude_code/tui/components/rich/theme.py +10 -2
- klaude_code/tui/components/tools.py +39 -25
- klaude_code/tui/components/user_input.py +1 -1
- klaude_code/tui/input/__init__.py +5 -2
- klaude_code/tui/input/drag_drop.py +6 -57
- klaude_code/tui/input/key_bindings.py +10 -0
- klaude_code/tui/input/prompt_toolkit.py +19 -6
- klaude_code/tui/machine.py +25 -0
- klaude_code/tui/renderer.py +68 -4
- klaude_code/tui/runner.py +18 -2
- klaude_code/tui/terminal/image.py +72 -10
- klaude_code/tui/terminal/selector.py +31 -7
- {klaude_code-2.7.0.dist-info → klaude_code-2.8.1.dist-info}/METADATA +1 -1
- {klaude_code-2.7.0.dist-info → klaude_code-2.8.1.dist-info}/RECORD +73 -56
- klaude_code/core/prompts/prompt-codex-gpt-5-1-codex-max.md +0 -117
- {klaude_code-2.7.0.dist-info → klaude_code-2.8.1.dist-info}/WHEEL +0 -0
- {klaude_code-2.7.0.dist-info → klaude_code-2.8.1.dist-info}/entry_points.txt +0 -0
|
@@ -1,23 +1,64 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
3
|
import base64
|
|
4
|
+
import shutil
|
|
5
|
+
import struct
|
|
6
|
+
import subprocess
|
|
4
7
|
import sys
|
|
8
|
+
import tempfile
|
|
5
9
|
from pathlib import Path
|
|
6
10
|
from typing import IO
|
|
7
11
|
|
|
8
12
|
# Kitty graphics protocol chunk size (4096 is the recommended max)
|
|
9
13
|
_CHUNK_SIZE = 4096
|
|
10
14
|
|
|
15
|
+
# Max columns for non-wide images
|
|
16
|
+
_MAX_COLS = 120
|
|
11
17
|
|
|
12
|
-
|
|
18
|
+
# Image formats that need conversion to PNG
|
|
19
|
+
_NEEDS_CONVERSION = {".jpg", ".jpeg", ".gif", ".bmp", ".webp", ".tiff", ".tif"}
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def _convert_to_png(path: Path) -> bytes | None:
|
|
23
|
+
"""Convert image to PNG using sips (macOS) or convert (ImageMagick)."""
|
|
24
|
+
with tempfile.NamedTemporaryFile(suffix=".png", delete=True) as tmp:
|
|
25
|
+
tmp_path = tmp.name
|
|
26
|
+
# Try sips first (macOS built-in)
|
|
27
|
+
result = subprocess.run(
|
|
28
|
+
["sips", "-s", "format", "png", str(path), "--out", tmp_path],
|
|
29
|
+
capture_output=True,
|
|
30
|
+
)
|
|
31
|
+
if result.returncode == 0:
|
|
32
|
+
return Path(tmp_path).read_bytes()
|
|
33
|
+
# Fallback to ImageMagick convert
|
|
34
|
+
result = subprocess.run(
|
|
35
|
+
["convert", str(path), tmp_path],
|
|
36
|
+
capture_output=True,
|
|
37
|
+
)
|
|
38
|
+
if result.returncode == 0:
|
|
39
|
+
return Path(tmp_path).read_bytes()
|
|
40
|
+
return None
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def _get_png_dimensions(data: bytes) -> tuple[int, int] | None:
|
|
44
|
+
"""Extract width and height from PNG file header."""
|
|
45
|
+
# PNG: 8-byte signature + IHDR chunk (4 len + 4 type + 4 width + 4 height)
|
|
46
|
+
if len(data) < 24 or data[:8] != b"\x89PNG\r\n\x1a\n":
|
|
47
|
+
return None
|
|
48
|
+
width, height = struct.unpack(">II", data[16:24])
|
|
49
|
+
return width, height
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
def print_kitty_image(file_path: str | Path, *, file: IO[str] | None = None) -> None:
|
|
13
53
|
"""Print an image to the terminal using Kitty graphics protocol.
|
|
14
54
|
|
|
15
55
|
This intentionally bypasses Rich rendering to avoid interleaving Live refreshes
|
|
16
|
-
with raw escape sequences.
|
|
56
|
+
with raw escape sequences. Image size adapts based on aspect ratio:
|
|
57
|
+
- Landscape images: fill terminal width
|
|
58
|
+
- Portrait images: limit height to avoid oversized display
|
|
17
59
|
|
|
18
60
|
Args:
|
|
19
61
|
file_path: Path to the image file (PNG recommended).
|
|
20
|
-
height: Display height in terminal rows. If None, uses terminal default.
|
|
21
62
|
file: Output file stream. Defaults to stdout.
|
|
22
63
|
"""
|
|
23
64
|
path = Path(file_path) if isinstance(file_path, str) else file_path
|
|
@@ -26,24 +67,48 @@ def print_kitty_image(file_path: str | Path, *, height: int | None = None, file:
|
|
|
26
67
|
return
|
|
27
68
|
|
|
28
69
|
try:
|
|
29
|
-
|
|
70
|
+
# Convert non-PNG formats to PNG for Kitty graphics protocol compatibility
|
|
71
|
+
if path.suffix.lower() in _NEEDS_CONVERSION:
|
|
72
|
+
data = _convert_to_png(path)
|
|
73
|
+
if data is None:
|
|
74
|
+
print(f"Saved image: {path}", file=file or sys.stdout, flush=True)
|
|
75
|
+
return
|
|
76
|
+
else:
|
|
77
|
+
data = path.read_bytes()
|
|
78
|
+
|
|
30
79
|
encoded = base64.standard_b64encode(data).decode("ascii")
|
|
31
80
|
out = file or sys.stdout
|
|
32
81
|
|
|
82
|
+
term_size = shutil.get_terminal_size()
|
|
83
|
+
dimensions = _get_png_dimensions(data)
|
|
84
|
+
|
|
85
|
+
# Determine sizing strategy based on aspect ratio
|
|
86
|
+
if dimensions is not None:
|
|
87
|
+
img_width, img_height = dimensions
|
|
88
|
+
if img_width > 2 * img_height:
|
|
89
|
+
# Wide landscape (width > 2x height): fill terminal width
|
|
90
|
+
size_param = f"c={term_size.columns}"
|
|
91
|
+
else:
|
|
92
|
+
# Other images: limit width to 80% of terminal
|
|
93
|
+
size_param = f"c={min(_MAX_COLS, term_size.columns * 4 // 5)}"
|
|
94
|
+
else:
|
|
95
|
+
# Fallback: limit width to 80% of terminal
|
|
96
|
+
size_param = f"c={min(_MAX_COLS, term_size.columns * 4 // 5)}"
|
|
33
97
|
print("", file=out)
|
|
34
|
-
_write_kitty_graphics(out, encoded,
|
|
98
|
+
_write_kitty_graphics(out, encoded, size_param=size_param)
|
|
35
99
|
print("", file=out)
|
|
36
100
|
out.flush()
|
|
37
101
|
except Exception:
|
|
38
102
|
print(f"Saved image: {path}", file=file or sys.stdout, flush=True)
|
|
39
103
|
|
|
40
104
|
|
|
41
|
-
def _write_kitty_graphics(out: IO[str], encoded_data: str, *,
|
|
105
|
+
def _write_kitty_graphics(out: IO[str], encoded_data: str, *, size_param: str) -> None:
|
|
42
106
|
"""Write Kitty graphics protocol escape sequences.
|
|
43
107
|
|
|
44
108
|
Protocol format: ESC _ G <control>;<payload> ESC \\
|
|
45
109
|
- a=T: direct transmission (data in payload)
|
|
46
110
|
- f=100: PNG format (auto-detected by Kitty)
|
|
111
|
+
- c=N: display width in columns
|
|
47
112
|
- r=N: display height in rows
|
|
48
113
|
- m=1: more data follows, m=0: last chunk
|
|
49
114
|
"""
|
|
@@ -55,10 +120,7 @@ def _write_kitty_graphics(out: IO[str], encoded_data: str, *, height: int | None
|
|
|
55
120
|
|
|
56
121
|
if i == 0:
|
|
57
122
|
# First chunk: include control parameters
|
|
58
|
-
ctrl = "a=T,f=100"
|
|
59
|
-
if height is not None:
|
|
60
|
-
ctrl += f",r={height}"
|
|
61
|
-
ctrl += f",m={0 if is_last else 1}"
|
|
123
|
+
ctrl = f"a=T,f=100,{size_param},m={0 if is_last else 1}"
|
|
62
124
|
out.write(f"\033_G{ctrl};{chunk}\033\\")
|
|
63
125
|
else:
|
|
64
126
|
# Subsequent chunks: only m parameter needed
|
|
@@ -81,13 +81,13 @@ def build_model_select_items(models: list[Any]) -> list[SelectItem[str]]:
|
|
|
81
81
|
|
|
82
82
|
items: list[SelectItem[str]] = []
|
|
83
83
|
model_idx = 0
|
|
84
|
-
separator_base_len =
|
|
84
|
+
separator_base_len = 80
|
|
85
85
|
for provider, provider_models in grouped.items():
|
|
86
86
|
provider_text = provider.lower()
|
|
87
87
|
count_text = f"({len(provider_models)})"
|
|
88
88
|
header_len = len(provider_text) + 1 + len(count_text)
|
|
89
89
|
separator_len = separator_base_len + max_header_len - header_len
|
|
90
|
-
separator = "
|
|
90
|
+
separator = "-" * separator_len
|
|
91
91
|
items.append(
|
|
92
92
|
SelectItem(
|
|
93
93
|
title=[
|
|
@@ -574,7 +574,10 @@ def select_one[T](
|
|
|
574
574
|
)
|
|
575
575
|
list_window = Window(
|
|
576
576
|
FormattedTextControl(get_choices_tokens),
|
|
577
|
-
|
|
577
|
+
# Keep 1 line of context above the cursor so non-selectable header rows
|
|
578
|
+
# (e.g. provider group labels) remain visible when wrapping back to the
|
|
579
|
+
# first selectable item in a scrolled list.
|
|
580
|
+
scroll_offsets=ScrollOffsets(top=1, bottom=2),
|
|
578
581
|
allow_scroll_beyond_bottom=True,
|
|
579
582
|
dont_extend_height=Always(),
|
|
580
583
|
always_hide_cursor=Always(),
|
|
@@ -796,6 +799,7 @@ class SelectOverlay[T]:
|
|
|
796
799
|
dont_extend_height=Always(),
|
|
797
800
|
always_hide_cursor=Always(),
|
|
798
801
|
)
|
|
802
|
+
|
|
799
803
|
def get_list_height() -> int:
|
|
800
804
|
# Dynamic height: min of configured height and available terminal space
|
|
801
805
|
# Overhead: header(1) + spacer(1) + search(1) + frame borders(2) + prompt area(3)
|
|
@@ -803,15 +807,35 @@ class SelectOverlay[T]:
|
|
|
803
807
|
try:
|
|
804
808
|
terminal_height = get_app().output.get_size().rows
|
|
805
809
|
available = max(3, terminal_height - overhead)
|
|
806
|
-
|
|
810
|
+
cap = min(self._list_height, available)
|
|
807
811
|
except Exception:
|
|
808
|
-
|
|
812
|
+
cap = self._list_height
|
|
813
|
+
|
|
814
|
+
# Shrink list height when content is shorter than the configured cap.
|
|
815
|
+
# This is especially helpful for small pickers (e.g. thinking level)
|
|
816
|
+
# where a fixed list_height would otherwise render extra blank rows.
|
|
817
|
+
indices, _ = self._get_visible_indices()
|
|
818
|
+
if not indices:
|
|
819
|
+
return max(1, cap)
|
|
820
|
+
|
|
821
|
+
visible_lines = 0
|
|
822
|
+
for idx in indices:
|
|
823
|
+
item = self._items[idx]
|
|
824
|
+
newlines = sum(text.count("\n") for _style, text in item.title)
|
|
825
|
+
visible_lines += max(1, newlines)
|
|
826
|
+
if visible_lines >= cap:
|
|
827
|
+
break
|
|
828
|
+
|
|
829
|
+
return max(1, min(cap, visible_lines))
|
|
809
830
|
|
|
810
831
|
list_window = Window(
|
|
811
832
|
FormattedTextControl(get_choices_tokens),
|
|
812
833
|
height=get_list_height,
|
|
813
|
-
|
|
814
|
-
|
|
834
|
+
# See select_one(): keep header rows visible when wrapping.
|
|
835
|
+
# For embedded overlays, avoid reserving extra blank lines near the
|
|
836
|
+
# bottom when the list height is tight (e.g. short pickers).
|
|
837
|
+
scroll_offsets=ScrollOffsets(top=1, bottom=0),
|
|
838
|
+
allow_scroll_beyond_bottom=False,
|
|
815
839
|
dont_extend_height=Always(),
|
|
816
840
|
always_hide_cursor=Always(),
|
|
817
841
|
)
|
|
@@ -2,47 +2,59 @@ klaude_code/.DS_Store,sha256=cLWFbSgdN0bXEd3_tz93BJSposEPafUBqSr7t-3lPbA,6148
|
|
|
2
2
|
klaude_code/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
3
|
klaude_code/app/__init__.py,sha256=7mgWpN9SFDqe8AW44bBn9M19nVsBcZURrsGB_8l2hrU,264
|
|
4
4
|
klaude_code/app/runtime.py,sha256=xo5_oxc80kjoF1h5IWSEWukRwdA257JzakC_VgcikII,5976
|
|
5
|
-
klaude_code/auth/
|
|
6
|
-
klaude_code/auth/
|
|
5
|
+
klaude_code/auth/AGENTS.md,sha256=5ObIfgMfUDuNBKykK6kikRSEvCxDt5fO0-ySVaLVDW0,8467
|
|
6
|
+
klaude_code/auth/__init__.py,sha256=LhGS2P80Ci_DeaqxVueknDIj-Ded4OFQdNmFHekXNY8,1106
|
|
7
|
+
klaude_code/auth/antigravity/__init__.py,sha256=Lv37yKg7CLzoQss2Jho-jtrGiU-zUCa7W1w3eDWmR0o,610
|
|
8
|
+
klaude_code/auth/antigravity/exceptions.py,sha256=jKtlTtoHzoqGARYmLjFl0Sxms9ySj_raPAaqEc4tcVs,448
|
|
9
|
+
klaude_code/auth/antigravity/oauth.py,sha256=SsGMXSRm8wfKb4wUBJfVyDgnNvC3GUFdQ-XXNZ2Hpoo,11098
|
|
10
|
+
klaude_code/auth/antigravity/pkce.py,sha256=SfSLyIkiO9s0ROLDljz9Vu5GCxYP42U1b1nvWbXnkSI,664
|
|
11
|
+
klaude_code/auth/antigravity/token_manager.py,sha256=BFMuop0h2zMHUFzPmfuanguX8S2cbORCObcZ3CutXSA,1548
|
|
12
|
+
klaude_code/auth/base.py,sha256=ZRDHC0IzpmI7cnypHQvMGwyFcUryJDlb3j-M4gKmeB4,3166
|
|
7
13
|
klaude_code/auth/claude/__init__.py,sha256=h1oyqEttDM5TAF6w1Stk6YXYMsbATjODCsi6GhU4zAA,218
|
|
8
14
|
klaude_code/auth/claude/exceptions.py,sha256=_3KbC6W7_gWpxTsSqI0Bxk5Q_v3Fad6dBjweEsoFun4,246
|
|
9
|
-
klaude_code/auth/claude/oauth.py,sha256=
|
|
15
|
+
klaude_code/auth/claude/oauth.py,sha256=fcnR8BdpVe9LuTz0FvAFn24FAGyE_Y_HaIzxmXNQ1CA,6921
|
|
10
16
|
klaude_code/auth/claude/token_manager.py,sha256=XNsBOy2lNFnD6wZhM4V3k4aQlMogb2_avvgL9LlNGEQ,691
|
|
11
17
|
klaude_code/auth/codex/__init__.py,sha256=rrpPvr-_R4kbj_oZ2U_fPmIfDPZov9Pjz2bAFpztUJk,502
|
|
12
|
-
klaude_code/auth/codex/exceptions.py,sha256=
|
|
18
|
+
klaude_code/auth/codex/exceptions.py,sha256=w9Z6Wlp7DJRRO18GJFrd-V4jVdq8ZYJ4Bc9B7Rnux7c,498
|
|
13
19
|
klaude_code/auth/codex/jwt_utils.py,sha256=tuaJKT4vAIGeaQjNzgNcHWGrYYSDrDeaQT9h4cw5Us8,1134
|
|
14
20
|
klaude_code/auth/codex/oauth.py,sha256=4hAGZ2Dv87NC3loEws7U5yNyPyIrryGm5YXY2FkHeyo,7840
|
|
15
21
|
klaude_code/auth/codex/token_manager.py,sha256=EiEdxEErh_mcnW8USWbvdbN91LK7nyk0PZJZGmdUTG8,1405
|
|
16
22
|
klaude_code/auth/env.py,sha256=QLqV2QjVCAAPSaH2xm2W0KvQ-RSbRxk_Y_FSH_MGDNY,2550
|
|
17
23
|
klaude_code/cli/__init__.py,sha256=YzlAoWAr5rx5oe6B_4zPxRFS4QaZauuy1AFwampP5fg,45
|
|
18
|
-
klaude_code/cli/auth_cmd.py,sha256=
|
|
24
|
+
klaude_code/cli/auth_cmd.py,sha256=OwU7aOgSc7lZusQuVK6P6X0flKWK6cU677ED3YUja9s,11100
|
|
19
25
|
klaude_code/cli/config_cmd.py,sha256=7BmZpKeiO24mKKLKGO46WvSQzSaNwuZ3KtCV4GH-Yh0,3306
|
|
20
|
-
klaude_code/cli/cost_cmd.py,sha256=
|
|
26
|
+
klaude_code/cli/cost_cmd.py,sha256=yW_niFZtCnBfFXkCWkxYDB07CIMZbirQXgjj3soljkw,13474
|
|
21
27
|
klaude_code/cli/debug.py,sha256=vEHOjObhrIHDAXk3q6cOgeW2NZxCx5AWM1rJ6FiJnVU,1901
|
|
22
|
-
klaude_code/cli/list_model.py,sha256=
|
|
23
|
-
klaude_code/cli/main.py,sha256=
|
|
28
|
+
klaude_code/cli/list_model.py,sha256=G1_vW7uZDos9j-77INHPRh_rq4o5KkcrxZZ_VUwUtpo,15494
|
|
29
|
+
klaude_code/cli/main.py,sha256=nJcLwTyf8ITC2z-orKnvfTzmApPdA8mt_gdwOfl2YfE,12225
|
|
24
30
|
klaude_code/cli/self_update.py,sha256=1xdG9ifvRZQDSx6RAtSSgXmw9hZNXMLvqC2zu4bS-GY,2622
|
|
25
31
|
klaude_code/config/__init__.py,sha256=Qe1BeMekBfO2-Zd30x33lB70hdM1QQZGrp4DbWSQ-II,353
|
|
26
32
|
klaude_code/config/assets/__init__.py,sha256=uMUfmXT3I-gYiI-HVr1DrE60mx5cY1o8V7SYuGqOmvY,32
|
|
27
|
-
klaude_code/config/assets/builtin_config.yaml,sha256=
|
|
28
|
-
klaude_code/config/builtin_config.py,sha256=
|
|
29
|
-
klaude_code/config/config.py,sha256=
|
|
33
|
+
klaude_code/config/assets/builtin_config.yaml,sha256=Wge4O8y9gCtg88mKf-av_It3LANtaSN6BVip9lh6GH8,9233
|
|
34
|
+
klaude_code/config/builtin_config.py,sha256=OG5VERUHo3tSojgFXfNDV6pAHNOh3kO-xFHpvTr-cpc,1786
|
|
35
|
+
klaude_code/config/config.py,sha256=adJCE1j231fjzJYRZw1CGW-ACbOLWjWM6MUrCum6_6E,26288
|
|
30
36
|
klaude_code/config/model_matcher.py,sha256=3IlLU5h3NDh_bURbCW-PV027C3irG3hyitwj1cj99Ig,6179
|
|
31
37
|
klaude_code/config/sub_agent_model_helper.py,sha256=fI-OIZWFI4116qjalsZj2pIi0waPR1cXE-OKrVMFS6g,8064
|
|
32
38
|
klaude_code/config/thinking.py,sha256=RDWH8UYbeDoIKPXaCIcvVwPAh07Ntaq8w5Zn_fhm-Fk,9329
|
|
33
|
-
klaude_code/const.py,sha256=
|
|
39
|
+
klaude_code/const.py,sha256=eEjkrib5qP2KgIO_Fff4YwE-9SD4fBUXVi5pNSUh8vo,11527
|
|
34
40
|
klaude_code/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
35
|
-
klaude_code/core/agent.py,sha256=
|
|
36
|
-
klaude_code/core/agent_profile.py,sha256=
|
|
37
|
-
klaude_code/core/
|
|
41
|
+
klaude_code/core/agent.py,sha256=GrIg22nfoq1c90UHyEfU_bh46vtXTCo4bLezb-3mGNo,4120
|
|
42
|
+
klaude_code/core/agent_profile.py,sha256=HG9wNnxChBvaJ9gwcjMF8w-_MS2jgRJKQMumMfu0AvM,13031
|
|
43
|
+
klaude_code/core/compaction/AGENTS.md,sha256=KZR5lxe4jVAbT5K9PxbZcHWI1UwsppbGmxIfCdHYr7Q,3684
|
|
44
|
+
klaude_code/core/compaction/__init__.py,sha256=CvidYx3sX0IZAa4pifX9jrQSkg4Nib7PKrcaOHswF60,329
|
|
45
|
+
klaude_code/core/compaction/compaction.py,sha256=IEKA2mmiOyQq5ryJKBcNcIDQ51AuTD5ewVc8qmUoMoQ,25032
|
|
46
|
+
klaude_code/core/compaction/overflow.py,sha256=uNqTy8ZITl_oaNlU2wgAN663zeoBC5BI6W5kPS1rSJc,1244
|
|
47
|
+
klaude_code/core/compaction/prompts.py,sha256=GgwbMi9fkCF4eHScoHe7hykzNT_L160nRdgmQn9-MYU,3191
|
|
48
|
+
klaude_code/core/executor.py,sha256=TRiSilv7h4fIUfMqP0TA2TDDcSx0kfHgUwAYlZti2m0,38435
|
|
38
49
|
klaude_code/core/loaded_skills.py,sha256=5lxPzXx2uf9mNxwEu_Jt3qRoATa2jaMvFjBfWhgbaSk,1177
|
|
39
50
|
klaude_code/core/manager/__init__.py,sha256=hdIbpnYj6i18byiWjtJIm5l7NYYDQMvafw8fePVPydc,562
|
|
40
|
-
klaude_code/core/manager/llm_clients.py,sha256=
|
|
41
|
-
klaude_code/core/manager/llm_clients_builder.py,sha256=
|
|
51
|
+
klaude_code/core/manager/llm_clients.py,sha256=8v56JOXHye1CshKSEtUwPt9ndJuKaPU7zGCM9dDzpy4,1077
|
|
52
|
+
klaude_code/core/manager/llm_clients_builder.py,sha256=hw9lbGm5RZRZtxbEnxlfp9Hov384lrUeKYL7_e6dwXU,2409
|
|
42
53
|
klaude_code/core/manager/sub_agent_manager.py,sha256=sQ88o0ivWHTlaNz-FC23CiHiPXF4mLsQ0T69jPO9Hck,7797
|
|
54
|
+
klaude_code/core/prompts/prompt-antigravity.md,sha256=OpxPKLY6S8QDJExrHTuU_snIxgvNrvT09WHj-8dWZcc,6671
|
|
43
55
|
klaude_code/core/prompts/prompt-claude-code.md,sha256=uuWBv6GrG63mdmBedAHT5U9yOpbHSKFYbbS2xBnUzOE,8290
|
|
44
|
-
klaude_code/core/prompts/prompt-codex-gpt-5-1-codex-max.md,sha256=SW-y8AmR99JL_9j26k9YVAOQuZ18vR12aT5CWHkZDc4,11741
|
|
45
56
|
klaude_code/core/prompts/prompt-codex-gpt-5-2-codex.md,sha256=GA1pIIF6JuAl4P3FIW4tVJ6zL_5iZ8MY_PF0DW9hBuU,11719
|
|
57
|
+
klaude_code/core/prompts/prompt-codex-gpt-5-2.md,sha256=LUPKiO1x6cWKWmetMEVGSxCE_St2yDk-SAHL0TthHmc,25798
|
|
46
58
|
klaude_code/core/prompts/prompt-codex.md,sha256=ybL6CXrGnK6Cw9KuEicQg4kKllIcVa2NwUyuUWitPzk,21672
|
|
47
59
|
klaude_code/core/prompts/prompt-gemini.md,sha256=JjE1tHSByGKJzjn4Gpj1zekT7ry1Yqbwx5qx3fZy2gE,3901
|
|
48
60
|
klaude_code/core/prompts/prompt-minimal.md,sha256=6-ZmQQkE3f92W_3V2wS7ocB13wLog1_UojCjZG0K4v8,1559
|
|
@@ -50,8 +62,8 @@ klaude_code/core/prompts/prompt-sub-agent-explore.md,sha256=21kFodjhvN0L-c_ZFo4y
|
|
|
50
62
|
klaude_code/core/prompts/prompt-sub-agent-image-gen.md,sha256=tXYKSzFd04OiC0dmVO9suMKeD5f9qo_4NsvqGo7irfI,78
|
|
51
63
|
klaude_code/core/prompts/prompt-sub-agent-web.md,sha256=UwrO5M_jPUbee_8lL7gB-2VFFLxvzEejluXDkMzmR5A,3625
|
|
52
64
|
klaude_code/core/prompts/prompt-sub-agent.md,sha256=dmmdsOenbAOfqG6FmdR88spOLZkXmntDBs-cmZ9DN_g,897
|
|
53
|
-
klaude_code/core/reminders.py,sha256=
|
|
54
|
-
klaude_code/core/task.py,sha256=
|
|
65
|
+
klaude_code/core/reminders.py,sha256=reV4pLZL78RqK6WE1pSfrXWkqOXMu2kxPShDdKVK2EY,24490
|
|
66
|
+
klaude_code/core/task.py,sha256=M0DUUUYjwbq3Z-XSG-P5MXiHtQ5blygf5YmnqcvxHeo,20241
|
|
55
67
|
klaude_code/core/tool/__init__.py,sha256=ABUzLwQbBoZPirCcgYbI88GEtswfy1JBDkFUsGpQ-zc,1415
|
|
56
68
|
klaude_code/core/tool/context.py,sha256=lHMjbLE--WVek8gAPOvaHz4CdeRGzLXSusMyEdEU5ss,2961
|
|
57
69
|
klaude_code/core/tool/file/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -61,7 +73,7 @@ klaude_code/core/tool/file/apply_patch_tool.md,sha256=KVDsjUiLDa97gym0NrZNVG4jA1
|
|
|
61
73
|
klaude_code/core/tool/file/apply_patch_tool.py,sha256=t7zNZW2wYpDyHutxq7nx_xSs7GbPx8UymveSR25F2-8,8079
|
|
62
74
|
klaude_code/core/tool/file/diff_builder.py,sha256=IH5Ws8LvcU66DnPfI40m_qfDyjN3mH4C1LVjC9eKYJQ,6044
|
|
63
75
|
klaude_code/core/tool/file/edit_tool.md,sha256=rEcUjJuPC46t1nXWjTDxplDcxWDbzTWsr6_bYt5_aRI,1110
|
|
64
|
-
klaude_code/core/tool/file/edit_tool.py,sha256=
|
|
76
|
+
klaude_code/core/tool/file/edit_tool.py,sha256=x5NUWeArtAvtbZrj4atrZEjmY73rspEEasUHuHnqnQA,10865
|
|
65
77
|
klaude_code/core/tool/file/read_tool.md,sha256=74SLSl1tq3L0por73M0QV_ws41MRIvGXQpfLb8dmtp0,1351
|
|
66
78
|
klaude_code/core/tool/file/read_tool.py,sha256=wne_aibWnsCpVc9xFYYPlPIDKCtVeTaqHCMaMhpoLwc,13236
|
|
67
79
|
klaude_code/core/tool/file/write_tool.md,sha256=CNnYgtieUasuHdpXLDpTEsqe492Pf7v75M4RQ3oIer8,613
|
|
@@ -75,7 +87,7 @@ klaude_code/core/tool/shell/command_safety.py,sha256=-x-qs1ctciEvFrBNn2JQq9540lS
|
|
|
75
87
|
klaude_code/core/tool/sub_agent_tool.py,sha256=WLhjZ6mqMp9KVDZ37ZPaJRXmvpwUQ2Gq2t_f5mcNub8,4734
|
|
76
88
|
klaude_code/core/tool/todo/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
77
89
|
klaude_code/core/tool/todo/todo_write_tool.md,sha256=0Qf3NXPPfduA0hY8AQ2dE2P64WfY2nSqqTHhk-0R5as,287
|
|
78
|
-
klaude_code/core/tool/todo/todo_write_tool.py,sha256=
|
|
90
|
+
klaude_code/core/tool/todo/todo_write_tool.py,sha256=ngdVmx5eQ5ttySB3WwxeYKa9GwQ9rlZESUHiSsbx7ak,4206
|
|
79
91
|
klaude_code/core/tool/todo/todo_write_tool_raw.md,sha256=AJ2OkZGcccQYDXkydPAr5JI2SExBF8qJd0rXsHySLps,9711
|
|
80
92
|
klaude_code/core/tool/todo/update_plan_tool.md,sha256=OoEF4voHHd5J3VDv7tq3UCHdXApkBvxdHXUf5tVOkE8,157
|
|
81
93
|
klaude_code/core/tool/todo/update_plan_tool.py,sha256=ChPgE9ZUU2G0kLu93_ZTTs9J5veySuYR41PIWDQ_Tdc,3703
|
|
@@ -89,11 +101,14 @@ klaude_code/core/tool/web/web_fetch_tool.md,sha256=i0IwsZ6r9vAQeCpwDBtEGrWmHPzZk
|
|
|
89
101
|
klaude_code/core/tool/web/web_fetch_tool.py,sha256=jXbJTgpI_RvyXy5ac8qIrC-AKOUX1fJ3TpqXq_BfkS4,9596
|
|
90
102
|
klaude_code/core/tool/web/web_search_tool.md,sha256=l5gGPx-fXHFel1zLBljm8isy9pwEYXGrq5cFzzw1VBw,1135
|
|
91
103
|
klaude_code/core/tool/web/web_search_tool.py,sha256=ljkgXxP6L5nJnbYB_IOUtPUN9zA_h5hBD55lhNAja08,4293
|
|
92
|
-
klaude_code/core/turn.py,sha256=
|
|
104
|
+
klaude_code/core/turn.py,sha256=CdSkNxpCSOvr0HkyeUEduMnepNiQB961I4dmM5QTmFI,18564
|
|
93
105
|
klaude_code/llm/__init__.py,sha256=b4AsqnrMIs0a5qR_ti6rZcHwFzAReTwOW96EqozEoSo,287
|
|
94
106
|
klaude_code/llm/anthropic/__init__.py,sha256=PWETvaeNAAX3ue0ww1uRUIxTJG0RpWiutkn7MlwKxBs,67
|
|
95
107
|
klaude_code/llm/anthropic/client.py,sha256=RpYw4UQnhLzAsp6i-FU7cDW4deqngdAoQaTPGnCeO5U,17346
|
|
96
108
|
klaude_code/llm/anthropic/input.py,sha256=TCR9egH_bC6Y-KupZ6RSfkcZMZ4h3Upy6iwGoN_H4kQ,9766
|
|
109
|
+
klaude_code/llm/antigravity/__init__.py,sha256=TuK_k4mJpBQVBCfhRFQvVLeGtHRU8_2wXO2lRC-OB9o,71
|
|
110
|
+
klaude_code/llm/antigravity/client.py,sha256=XnOBw7QPNA8NRrZIdNrOD1qLrvWLyI82PL7kIolgdic,20120
|
|
111
|
+
klaude_code/llm/antigravity/input.py,sha256=Ybz9wD0dJZgvrq64X6dpaR4iYEDILk8lpdXivl-uIQU,8996
|
|
97
112
|
klaude_code/llm/bedrock/__init__.py,sha256=UmXPBXMmigAJ7euIh59iivSeUdrYJwum0RYU7okkkPM,86
|
|
98
113
|
klaude_code/llm/bedrock/client.py,sha256=mETQrhGDt4uEDXO2c3y5Iao9RngygFSF6MOtwqAy1tk,2279
|
|
99
114
|
klaude_code/llm/claude/__init__.py,sha256=8VCvvEjQQI-RpAMfHCl5ct4zlDU_jgbAuLOc9p9u-B4,61
|
|
@@ -116,7 +131,7 @@ klaude_code/llm/openrouter/client.py,sha256=P_mDQK4_i1MLF0jK4p_bKhh15ACXgw6Ie0rU
|
|
|
116
131
|
klaude_code/llm/openrouter/input.py,sha256=Z_Cf6TnMZ5KQNJ0E5IIDCKK2OWlzi8IW0S5A72BBGT0,6176
|
|
117
132
|
klaude_code/llm/openrouter/reasoning.py,sha256=u7ccfnGxJ4Ws8P3X5FW91d8HXie29JjeWz0hZ1r0oFg,3320
|
|
118
133
|
klaude_code/llm/partial_message.py,sha256=-sjlpV-et4ViBtBpdtihK5QBjAlwS47-mBpVbRQPP3s,142
|
|
119
|
-
klaude_code/llm/registry.py,sha256=
|
|
134
|
+
klaude_code/llm/registry.py,sha256=OGMxsTr45jeqMuyCY26EIqUhjzjumaeBQVE4qTEQ8pQ,2311
|
|
120
135
|
klaude_code/llm/responses/__init__.py,sha256=WsiyvnNiIytaYcaAqNiB8GI-5zcpjjeODPbMlteeFjA,67
|
|
121
136
|
klaude_code/llm/responses/client.py,sha256=cOpf8aCAtrcxN_hYTzYVAU67M49JkOjLlaVeJIELf8U,16355
|
|
122
137
|
klaude_code/llm/responses/input.py,sha256=kYR4VZpdc-iH-VG_xhQV-tYkRGX581oOcE9D1O_mMYg,8845
|
|
@@ -124,13 +139,13 @@ klaude_code/llm/stream_parts.py,sha256=kU40BaWyiKOqzrIwF0_IwogWgKRRqVEt-6MvwMi5J
|
|
|
124
139
|
klaude_code/llm/usage.py,sha256=L6w-DlZ3oF8lOR_SEudPBM9idzIy7__f5FZ4ZJ2smi8,5957
|
|
125
140
|
klaude_code/log.py,sha256=i9iVCmp4dxqxqH_7XPMVjZt8umiH1KPhRbX4Ao93mSM,11382
|
|
126
141
|
klaude_code/protocol/__init__.py,sha256=TTPnuyQ22RypoTGKdoiS7ZEgHzinuaRHUrauzHDh7Xo,246
|
|
127
|
-
klaude_code/protocol/commands.py,sha256=
|
|
128
|
-
klaude_code/protocol/events.py,sha256=
|
|
129
|
-
klaude_code/protocol/llm_param.py,sha256=
|
|
130
|
-
klaude_code/protocol/message.py,sha256=
|
|
142
|
+
klaude_code/protocol/commands.py,sha256=sy6z48I3q8HHL91bqou9n0TZZ91P34pVmtNHqcHArBo,759
|
|
143
|
+
klaude_code/protocol/events.py,sha256=g1yrbv83NEcmBFFk1mvdeB4DSzuqxXb_VXXyzWCVNgY,4860
|
|
144
|
+
klaude_code/protocol/llm_param.py,sha256=MzKiZBKK_uTvJsmbaXJd7EEmQ9dedLEtVsSJUn2jbjg,5223
|
|
145
|
+
klaude_code/protocol/message.py,sha256=bq3cxbZ8Vk5e2mE1NQ-7fvdnOTDCauiT0Pl7FPyCJoc,6958
|
|
131
146
|
klaude_code/protocol/model.py,sha256=KboyTyfG5DntRMK98oDHomgJfUpHBdeiq51dWXRSqeM,9923
|
|
132
|
-
klaude_code/protocol/op.py,sha256=
|
|
133
|
-
klaude_code/protocol/op_handler.py,sha256=
|
|
147
|
+
klaude_code/protocol/op.py,sha256=vS7XWB_P1Y6DqLt9F0Fh0o7RdEDALsxDGMSZ9zbMwxY,6875
|
|
148
|
+
klaude_code/protocol/op_handler.py,sha256=wA8RMmbB4dWR_fiQiQ8nyAIfIewWy-RjnPeO53t80gE,2374
|
|
134
149
|
klaude_code/protocol/sub_agent/AGENTS.md,sha256=DHeHl11PYprTOQxInENCEnwnh3kIztBLjvETkwWAO08,1299
|
|
135
150
|
klaude_code/protocol/sub_agent/__init__.py,sha256=RKPFJawd0AB7nRYBxdwuG-14D8pT6HF1-DPCTAxwohI,3784
|
|
136
151
|
klaude_code/protocol/sub_agent/explore.py,sha256=f3fHTyxVeEH4vxJtEts0FbZhdrhOR-_x94QMfNicuUI,1859
|
|
@@ -140,16 +155,16 @@ klaude_code/protocol/sub_agent/web.py,sha256=XOQdqlIp_xno7Q7YVFPFo4AyKU1wbrVKhIi
|
|
|
140
155
|
klaude_code/protocol/tools.py,sha256=T0mzW9EhidVMNkwH-KTeB5FgwMvXBnV_MYE5ytrU1TM,343
|
|
141
156
|
klaude_code/session/__init__.py,sha256=4sw81uQvEd3YUOOjamKk1KqGmxeb4Ic9T1Tee5zztyU,241
|
|
142
157
|
klaude_code/session/codec.py,sha256=a374UZkOusn9MgFCc--yznDljK_4Qfy6yDPfhQq5_P0,1889
|
|
143
|
-
klaude_code/session/export.py,sha256=
|
|
158
|
+
klaude_code/session/export.py,sha256=EQZD8R7w3dnLpJjC6WP5yf7X6mAdjOkmwm1bMw7nftM,44922
|
|
144
159
|
klaude_code/session/selector.py,sha256=snBpnz9UQCe_0K8HttSGCJECCE4YEzpWs_Fdmk2P9nI,2195
|
|
145
|
-
klaude_code/session/session.py,sha256=
|
|
160
|
+
klaude_code/session/session.py,sha256=QloQWxCt9ptSoOwTGNl055rkbBQFoEs1O_-l0OtnYFo,26913
|
|
146
161
|
klaude_code/session/store.py,sha256=HRrmFzwEVdExqDQlT9FBZOhlFtQmM9Im9zco8pzvUMY,6455
|
|
147
|
-
klaude_code/session/templates/export_session.html,sha256=
|
|
162
|
+
klaude_code/session/templates/export_session.html,sha256=ekRt1zGePqT2lOYSPgdNlDjsOemM2r7FVB6X8nBrC00,137452
|
|
148
163
|
klaude_code/session/templates/mermaid_viewer.html,sha256=Y_wEWFm4mKWpfAz3YMis5DdLEkhw_2d8CpU6jbvGZow,27842
|
|
149
164
|
klaude_code/skill/.DS_Store,sha256=zy9qIqi2YLGzlZwHNM4oAX8rDoNTg9yxdo22PJOwupg,6148
|
|
150
165
|
klaude_code/skill/__init__.py,sha256=yeWeCfRGPOhT4mx_pjdo4fLondQ_Vx0edBtnFusLhls,839
|
|
151
166
|
klaude_code/skill/assets/.DS_Store,sha256=1lFlJ5EFymdzGAUAaI30vcaaLHt3F1LwpG7xILf9jsM,6148
|
|
152
|
-
klaude_code/skill/assets/create-plan/SKILL.md,sha256=
|
|
167
|
+
klaude_code/skill/assets/create-plan/SKILL.md,sha256=ZAtiM2qPHcc8Z3Ongl1NgX5ythITPwyvcIqisgqWrGA,2493
|
|
153
168
|
klaude_code/skill/assets/deslop/SKILL.md,sha256=XMBER6gOyYnZof_u7l30CZSzmDcINe8XP-n_loah0EQ,873
|
|
154
169
|
klaude_code/skill/assets/handoff/SKILL.md,sha256=GDHrEqWUeAQy7gGhha_y5jzjpv8C-xhk0hqMH5h59v8,1712
|
|
155
170
|
klaude_code/skill/assets/skill-creator/SKILL.md,sha256=0ByoWb9ao0UKSoM5Tmz-Qe5CAPliTrVpUK0gPd9TFqo,5520
|
|
@@ -157,16 +172,18 @@ klaude_code/skill/loader.py,sha256=g3MNDBq4B4_hf_d1NXf0Zhw3Xu9M2GIiaUZIN6S1ikM,8
|
|
|
157
172
|
klaude_code/skill/manager.py,sha256=6N1sfa0a5a7NgQgj3M_rRO2aj0vecyeBp_kWOZg211c,3452
|
|
158
173
|
klaude_code/skill/system_skills.py,sha256=ryGN07t0Xv2Yn_Prfq072tdIN0Dp4ZpdXLTl7O7rCkg,6122
|
|
159
174
|
klaude_code/tui/__init__.py,sha256=Q8-0D-uesw3oFwHcFLD5UaWlTFbrj8qV7dSn6C6_g_o,274
|
|
160
|
-
klaude_code/tui/command/__init__.py,sha256=
|
|
175
|
+
klaude_code/tui/command/__init__.py,sha256=2s6uu3uEi-vqRYJ5MPe1Ty1synRhT8C_kowgsNH-6hY,3542
|
|
161
176
|
klaude_code/tui/command/clear_cmd.py,sha256=9stN0blD24sME_xvTae0gN1r9caZA7QmLWnxzhTB4iA,744
|
|
162
177
|
klaude_code/tui/command/command_abc.py,sha256=sTzn0LAJguDKPrXK-0wkiadf0jQuAtuXbDMfDZJ4pqk,2438
|
|
178
|
+
klaude_code/tui/command/compact_cmd.py,sha256=lT1ODB1Tdo8Q163_jtUXn_Y5x4-hmZCmQ4E2gwAZNJg,999
|
|
179
|
+
klaude_code/tui/command/continue_cmd.py,sha256=P5FkqXiclEmqB7_Uz_LZSYeuuEsTbUJzsgPgTa9uA-M,1157
|
|
163
180
|
klaude_code/tui/command/copy_cmd.py,sha256=2gjKYTbOspmVotD8FrU7oQgwyNxdcjYP0iLKs6AXcL4,1792
|
|
164
181
|
klaude_code/tui/command/debug_cmd.py,sha256=cXi2ymcsbcJVCKfVKPvtUFPOmgNFEpwG-IcLlnkiyZY,2698
|
|
165
182
|
klaude_code/tui/command/export_cmd.py,sha256=KdFlOMJ6gruKYnd_24eWJJb21t9gLVwI1FnN1s08m5U,1609
|
|
166
183
|
klaude_code/tui/command/export_online_cmd.py,sha256=34De0K486wNOC5yjjPemcGTILrKQhWld2qfV3c0PUQ8,5664
|
|
167
|
-
klaude_code/tui/command/fork_session_cmd.py,sha256=
|
|
184
|
+
klaude_code/tui/command/fork_session_cmd.py,sha256=2sI31c6pOlKAvz7zYu2JIOJAJ8vII0uqFPuN_tDlDEU,13170
|
|
168
185
|
klaude_code/tui/command/model_cmd.py,sha256=EnUcr_nnUm433G2HwEKKNssVE767IgQFNoc9etxPpmY,1734
|
|
169
|
-
klaude_code/tui/command/model_picker.py,sha256=
|
|
186
|
+
klaude_code/tui/command/model_picker.py,sha256=Kvu0fL-uBfue6UP4l-x3eZiWw0FghnUFnJn6i0bqkKo,5253
|
|
170
187
|
klaude_code/tui/command/prompt-init.md,sha256=a4_FQ3gKizqs2vl9oEY5jtG6HNhv3f-1b5RSCFq0A18,1873
|
|
171
188
|
klaude_code/tui/command/prompt_command.py,sha256=PGGoH_ZgA-0kTtpjk19rDSsWjiZyAEoUlxnSp8B8GRQ,2764
|
|
172
189
|
klaude_code/tui/command/refresh_cmd.py,sha256=_nY7Iko7GSpHmc9t2vKK2DcXRYbXfUnbGzwsmNc-yPI,1405
|
|
@@ -174,8 +191,8 @@ klaude_code/tui/command/registry.py,sha256=2HDrC6ZqGKSdzQAYra2TSFt1kc3tDliobjrWf
|
|
|
174
191
|
klaude_code/tui/command/resume_cmd.py,sha256=XaQyoB00_TiimUNl__z5ZvRg5EdG16LXvkGAZ3H6YxU,3359
|
|
175
192
|
klaude_code/tui/command/status_cmd.py,sha256=yALYGxyUX7iVdSRAKdG526YkqOvGV9F0CJNwk8nmzu4,5164
|
|
176
193
|
klaude_code/tui/command/sub_agent_model_cmd.py,sha256=iz9_bdxHBSOQjjMWPP4RBW58V_HhWREweG-4cXuotk0,5610
|
|
177
|
-
klaude_code/tui/command/thinking_cmd.py,sha256=
|
|
178
|
-
klaude_code/tui/commands.py,sha256=
|
|
194
|
+
klaude_code/tui/command/thinking_cmd.py,sha256=gUQOhqtEieIMR-FUMSDj7OYEPloAC-ZSKxD1OVBn3jo,2683
|
|
195
|
+
klaude_code/tui/commands.py,sha256=9is3jw9c9Zx2UY0bFqYxCMGUO3gSfiNlMQLudafHDs8,3453
|
|
179
196
|
klaude_code/tui/components/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
180
197
|
klaude_code/tui/components/assistant.py,sha256=3VUIGf_BJhmoWZ5bHw-QUTMElUxp-MZQKUMWNimHKLE,904
|
|
181
198
|
klaude_code/tui/components/bash_syntax.py,sha256=0Pceo8w7jbK56smaVSBzkZYgCXzqqy7Qnx6kDZOh1yA,7450
|
|
@@ -190,35 +207,35 @@ klaude_code/tui/components/rich/__init__.py,sha256=zEZjnHR3Fnv_sFMxwIMjoJfwDoC4G
|
|
|
190
207
|
klaude_code/tui/components/rich/cjk_wrap.py,sha256=eMqBxftUtll7zrytUb9WtJ6naYLyax0W4KJRpGwWulM,7602
|
|
191
208
|
klaude_code/tui/components/rich/code_panel.py,sha256=ZKuJHh-kh-hIkBXSGLERLaDbJ7I9hvtvmYKocJn39_w,4744
|
|
192
209
|
klaude_code/tui/components/rich/live.py,sha256=xiMT6dPsxM_jaazddKrV9CMJQWwpe2t9OdjffHvo1JU,2821
|
|
193
|
-
klaude_code/tui/components/rich/markdown.py,sha256=
|
|
210
|
+
klaude_code/tui/components/rich/markdown.py,sha256=B3NyV_TQbWDgUnkj7ORqjGtaV0tNqiPN2ctYPpeUoYM,26148
|
|
194
211
|
klaude_code/tui/components/rich/quote.py,sha256=u6sBmGdp0ckaZLw_XgJk7iHW4zxnWikUaB3GX2tkhlM,5375
|
|
195
212
|
klaude_code/tui/components/rich/searchable_text.py,sha256=PUe6MotKxSBY4FlPeojVjVQgxCsx_jiQ41bCzLp8WvE,2271
|
|
196
213
|
klaude_code/tui/components/rich/status.py,sha256=kNt08FQGvMZJB-zUhT5UyVFA7jvuRBNqf6yDXLEhb9c,14756
|
|
197
|
-
klaude_code/tui/components/rich/theme.py,sha256=
|
|
214
|
+
klaude_code/tui/components/rich/theme.py,sha256=XKfIc7ke1dUx6AyRMXWWJMeItVfIg85YM_FoqyxXxR0,16255
|
|
198
215
|
klaude_code/tui/components/sub_agent.py,sha256=byCyRPq0xfit55cLwmp7SfRbCmyiXL77JklvFcbKW4M,6598
|
|
199
216
|
klaude_code/tui/components/thinking.py,sha256=AXC7Xpyiu7ST-eWGLRGY7N8Dak2ny3lV3mvznmfqKmM,2890
|
|
200
|
-
klaude_code/tui/components/tools.py,sha256=
|
|
201
|
-
klaude_code/tui/components/user_input.py,sha256=
|
|
217
|
+
klaude_code/tui/components/tools.py,sha256=iUaBTTekaLngRsUmpeUIJn4NjnAb17DO20kMBS12Oa0,25917
|
|
218
|
+
klaude_code/tui/components/user_input.py,sha256=t8O73xL0oYSYQUJuYKcsU9j-SgBlDCpr7Im6SqCDmJA,3701
|
|
202
219
|
klaude_code/tui/components/welcome.py,sha256=ZSCcT-wFdSp3L1Fq7shWWz4Rk-BAXvsKisfvIUnP8a4,3665
|
|
203
220
|
klaude_code/tui/display.py,sha256=JfMETvb1gcgymQVXPy5tH2c-B0cHjXn9PtwSiYlP-1Q,3506
|
|
204
221
|
klaude_code/tui/input/AGENTS.md,sha256=2RBLz7H0JbUJv6OBzeadLOlGUF5EBqvtwTGBf6nZuN0,1633
|
|
205
|
-
klaude_code/tui/input/__init__.py,sha256=
|
|
222
|
+
klaude_code/tui/input/__init__.py,sha256=wLbjqBrvP6fmbGtbKe9Wp12yxhse0faVLOxtoWua_1E,353
|
|
206
223
|
klaude_code/tui/input/completers.py,sha256=RHf8dFDRxLlCG7Pw5feNjtKvH3yCYET1fKB7p44yICY,32869
|
|
207
|
-
klaude_code/tui/input/drag_drop.py,sha256=
|
|
224
|
+
klaude_code/tui/input/drag_drop.py,sha256=oyKtrHCyUiGiMLEXpsDTnTnAKJ1_xrvVkrASOiG8O4g,3974
|
|
208
225
|
klaude_code/tui/input/images.py,sha256=DqDKl2yt-pNzkfhKKo_ApTjJTccBCvuYDufpMeGM0d4,7090
|
|
209
|
-
klaude_code/tui/input/key_bindings.py,sha256=
|
|
226
|
+
klaude_code/tui/input/key_bindings.py,sha256=rgWC3wlO1MvxFeMmQRxm0s5Y9sChzUDh0c8rfwfZz5o,25101
|
|
210
227
|
klaude_code/tui/input/paste.py,sha256=kELg5jC0WdBXWHJUsEjIhZ67KCvHMbN1XzyGmevVSNM,1888
|
|
211
|
-
klaude_code/tui/input/prompt_toolkit.py,sha256=
|
|
212
|
-
klaude_code/tui/machine.py,sha256=
|
|
213
|
-
klaude_code/tui/renderer.py,sha256=
|
|
214
|
-
klaude_code/tui/runner.py,sha256=
|
|
228
|
+
klaude_code/tui/input/prompt_toolkit.py,sha256=fYUn_e1IVrbX4xDup9N22T9xwGGaJvH4FnIETKOM54M,29485
|
|
229
|
+
klaude_code/tui/machine.py,sha256=Ue4Ta13zNoVNg3-xrUrEPckNgVbTN8uTfEmJrp3C0RI,28690
|
|
230
|
+
klaude_code/tui/renderer.py,sha256=69DUnx3ovIS2jcBWahQZ56_rqKHLUNOoN_r4pHfB93A,28691
|
|
231
|
+
klaude_code/tui/runner.py,sha256=dOmuWEVT5D0pLCGpdThCkNSE1ohdCgk7EkWdSAbSm5A,11874
|
|
215
232
|
klaude_code/tui/terminal/__init__.py,sha256=GIMnsEcIAGT_vBHvTlWEdyNmAEpruyscUA6M_j3GQZU,1412
|
|
216
233
|
klaude_code/tui/terminal/color.py,sha256=6SJR2RA8cqJINNoRz65w0HL3x9g46ydIvDOGWMeNnQU,7195
|
|
217
234
|
klaude_code/tui/terminal/control.py,sha256=m2fL6uHum5Li25X2IPnI4z_oVzMpVYcSldB-r0NLLzk,4920
|
|
218
|
-
klaude_code/tui/terminal/image.py,sha256=
|
|
235
|
+
klaude_code/tui/terminal/image.py,sha256=UYRpnwTVEP16NpTmy1fik-yGhklRWJa310vI9ZWZus4,4669
|
|
219
236
|
klaude_code/tui/terminal/notifier.py,sha256=-aTtgRvpzQcfbkOfbeDOfUs3l9smNBZX-60G9f0326Y,4643
|
|
220
237
|
klaude_code/tui/terminal/progress_bar.py,sha256=Go-0_ZodrmJVaQodaPnyxVU2nkpkBaYLnZBqwAUQukE,2133
|
|
221
|
-
klaude_code/tui/terminal/selector.py,sha256=
|
|
238
|
+
klaude_code/tui/terminal/selector.py,sha256=xuSaOcr9ctPNrZay4muAwuX2khlYLbTX0BZ1G4oCrg0,32407
|
|
222
239
|
klaude_code/ui/__init__.py,sha256=3k9Sbesq0nNN3jcSMDqJ4zUcys4PKzGg4Xsum-6dZis,451
|
|
223
240
|
klaude_code/ui/common.py,sha256=_KmCNM-U8VowObYkfq8e9cyuvN1dF85P56hG8tGYlts,4309
|
|
224
241
|
klaude_code/ui/core/__init__.py,sha256=2NakrTDcxem5D0atyEY_Rxv1BbKCeZweF63L6AAq6r8,23
|
|
@@ -228,7 +245,7 @@ klaude_code/ui/debug_mode.py,sha256=ZvqbOx4c_rUerMbEZzOfcbNf9leqEDFjqJUlALtzF9Y,
|
|
|
228
245
|
klaude_code/ui/terminal/__init__.py,sha256=5OeAzr994r8-peWsLON0iXsAvJ2pexwMp36JY7FKGDc,179
|
|
229
246
|
klaude_code/ui/terminal/title.py,sha256=EZpLXTMhunsZPVGaxP317lH0Ad2oOh7OsjbV3yRD5is,1115
|
|
230
247
|
klaude_code/update.py,sha256=QER816AZe9u3RhRvP0Z37Jh2Ch5RLy9PREyDsI0e1dA,4480
|
|
231
|
-
klaude_code-2.
|
|
232
|
-
klaude_code-2.
|
|
233
|
-
klaude_code-2.
|
|
234
|
-
klaude_code-2.
|
|
248
|
+
klaude_code-2.8.1.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
|
|
249
|
+
klaude_code-2.8.1.dist-info/entry_points.txt,sha256=kkXIXedaTOtjXPr2rVjRVVXZYlFUcBHELaqmyVlWUFA,92
|
|
250
|
+
klaude_code-2.8.1.dist-info/METADATA,sha256=F_UT5mgZDMdRAnDA4uNyCmNFuCxab-pohtk0JoTfvGw,10379
|
|
251
|
+
klaude_code-2.8.1.dist-info/RECORD,,
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
You are Codex, based on GPT-5. You are running as a coding agent in the Codex CLI on a user's computer.
|
|
2
|
-
|
|
3
|
-
## General
|
|
4
|
-
|
|
5
|
-
- When searching for text or files, prefer using `rg` or `rg --files` respectively because `rg` is much faster than alternatives like `grep`. (If the `rg` command is not found, then use alternatives.)
|
|
6
|
-
|
|
7
|
-
## Editing constraints
|
|
8
|
-
|
|
9
|
-
- Default to ASCII when editing or creating files. Only introduce non-ASCII or other Unicode characters when there is a clear justification and the file already uses them.
|
|
10
|
-
- Add succinct code comments that explain what is going on if code is not self-explanatory. You should not add comments like "Assigns the value to the variable", but a brief comment might be useful ahead of a complex code block that the user would otherwise have to spend time parsing out. Usage of these comments should be rare.
|
|
11
|
-
- Try to use apply_patch for single file edits, but it is fine to explore other options to make the edit if it does not work well. Do not use apply_patch for changes that are auto-generated (i.e. generating package.json or running a lint or format command like gofmt) or when scripting is more efficient (such as search and replacing a string across a codebase).
|
|
12
|
-
- You may be in a dirty git worktree.
|
|
13
|
-
* NEVER revert existing changes you did not make unless explicitly requested, since these changes were made by the user.
|
|
14
|
-
* If asked to make a commit or code edits and there are unrelated changes to your work or changes that you didn't make in those files, don't revert those changes.
|
|
15
|
-
* If the changes are in files you've touched recently, you should read carefully and understand how you can work with the changes rather than reverting them.
|
|
16
|
-
* If the changes are in unrelated files, just ignore them and don't revert them.
|
|
17
|
-
- Do not amend a commit unless explicitly requested to do so.
|
|
18
|
-
- While you are working, you might notice unexpected changes that you didn't make. If this happens, STOP IMMEDIATELY and ask the user how they would like to proceed.
|
|
19
|
-
- **NEVER** use destructive commands like `git reset --hard` or `git checkout --` unless specifically requested or approved by the user.
|
|
20
|
-
|
|
21
|
-
## Plan tool
|
|
22
|
-
|
|
23
|
-
When using the planning tool:
|
|
24
|
-
- Skip using the planning tool for straightforward tasks (roughly the easiest 25%).
|
|
25
|
-
- Do not make single-step plans.
|
|
26
|
-
- When you made a plan, update it after having performed one of the sub-tasks that you shared on the plan.
|
|
27
|
-
|
|
28
|
-
## Codex CLI harness, sandboxing, and approvals
|
|
29
|
-
|
|
30
|
-
The Codex CLI harness supports several different configurations for sandboxing and escalation approvals that the user can choose from.
|
|
31
|
-
|
|
32
|
-
Filesystem sandboxing defines which files can be read or written. The options for `sandbox_mode` are:
|
|
33
|
-
- **read-only**: The sandbox only permits reading files.
|
|
34
|
-
- **workspace-write**: The sandbox permits reading files, and editing files in `cwd` and `writable_roots`. Editing files in other directories requires approval.
|
|
35
|
-
- **danger-full-access**: No filesystem sandboxing - all commands are permitted.
|
|
36
|
-
|
|
37
|
-
Network sandboxing defines whether network can be accessed without approval. Options for `network_access` are:
|
|
38
|
-
- **restricted**: Requires approval
|
|
39
|
-
- **enabled**: No approval needed
|
|
40
|
-
|
|
41
|
-
Approvals are your mechanism to get user consent to run shell commands without the sandbox. Possible configuration options for `approval_policy` are
|
|
42
|
-
- **untrusted**: The harness will escalate most commands for user approval, apart from a limited allowlist of safe "read" commands.
|
|
43
|
-
- **on-failure**: The harness will allow all commands to run in the sandbox (if enabled), and failures will be escalated to the user for approval to run again without the sandbox.
|
|
44
|
-
- **on-request**: Commands will be run in the sandbox by default, and you can specify in your tool call if you want to escalate a command to run without sandboxing. (Note that this mode is not always available. If it is, you'll see parameters for it in the `shell` command description.)
|
|
45
|
-
- **never**: This is a non-interactive mode where you may NEVER ask the user for approval to run commands. Instead, you must always persist and work around constraints to solve the task for the user. You MUST do your utmost best to finish the task and validate your work before yielding. If this mode is paired with `danger-full-access`, take advantage of it to deliver the best outcome for the user. Further, in this mode, your default testing philosophy is overridden: Even if you don't see local patterns for testing, you may add tests and scripts to validate your work. Just remove them before yielding.
|
|
46
|
-
|
|
47
|
-
When you are running with `approval_policy == on-request`, and sandboxing enabled, here are scenarios where you'll need to request approval:
|
|
48
|
-
- You need to run a command that writes to a directory that requires it (e.g. running tests that write to /var)
|
|
49
|
-
- You need to run a GUI app (e.g., open/xdg-open/osascript) to open browsers or files.
|
|
50
|
-
- You are running sandboxed and need to run a command that requires network access (e.g. installing packages)
|
|
51
|
-
- If you run a command that is important to solving the user's query, but it fails because of sandboxing, rerun the command with approval. ALWAYS proceed to use the `with_escalated_permissions` and `justification` parameters - do not message the user before requesting approval for the command.
|
|
52
|
-
- You are about to take a potentially destructive action such as an `rm` or `git reset` that the user did not explicitly ask for
|
|
53
|
-
- (for all of these, you should weigh alternative paths that do not require approval)
|
|
54
|
-
|
|
55
|
-
When `sandbox_mode` is set to read-only, you'll need to request approval for any command that isn't a read.
|
|
56
|
-
|
|
57
|
-
You will be told what filesystem sandboxing, network sandboxing, and approval mode are active in a developer or user message. If you are not told about this, assume that you are running with workspace-write, network sandboxing enabled, and approval on-failure.
|
|
58
|
-
|
|
59
|
-
Although they introduce friction to the user because your work is paused until the user responds, you should leverage them when necessary to accomplish important work. If the completing the task requires escalated permissions, Do not let these settings or the sandbox deter you from attempting to accomplish the user's task unless it is set to "never", in which case never ask for approvals.
|
|
60
|
-
|
|
61
|
-
When requesting approval to execute a command that will require escalated privileges:
|
|
62
|
-
- Provide the `with_escalated_permissions` parameter with the boolean value true
|
|
63
|
-
- Include a short, 1 sentence explanation for why you need to enable `with_escalated_permissions` in the justification parameter
|
|
64
|
-
|
|
65
|
-
## Special user requests
|
|
66
|
-
|
|
67
|
-
- If the user makes a simple request (such as asking for the time) which you can fulfill by running a terminal command (such as `date`), you should do so.
|
|
68
|
-
- If the user asks for a "review", default to a code review mindset: prioritise identifying bugs, risks, behavioural regressions, and missing tests. Findings must be the primary focus of the response - keep summaries or overviews brief and only after enumerating the issues. Present findings first (ordered by severity with file/line references), follow with open questions or assumptions, and offer a change-summary only as a secondary detail. If no findings are discovered, state that explicitly and mention any residual risks or testing gaps.
|
|
69
|
-
|
|
70
|
-
## Frontend tasks
|
|
71
|
-
When doing frontend design tasks, avoid collapsing into "AI slop" or safe, average-looking layouts.
|
|
72
|
-
Aim for interfaces that feel intentional, bold, and a bit surprising.
|
|
73
|
-
- Typography: Use expressive, purposeful fonts and avoid default stacks (Inter, Roboto, Arial, system).
|
|
74
|
-
- Color & Look: Choose a clear visual direction; define CSS variables; avoid purple-on-white defaults. No purple bias or dark mode bias.
|
|
75
|
-
- Motion: Use a few meaningful animations (page-load, staggered reveals) instead of generic micro-motions.
|
|
76
|
-
- Background: Don't rely on flat, single-color backgrounds; use gradients, shapes, or subtle patterns to build atmosphere.
|
|
77
|
-
- Overall: Avoid boilerplate layouts and interchangeable UI patterns. Vary themes, type families, and visual languages across outputs.
|
|
78
|
-
- Ensure the page loads properly on both desktop and mobile
|
|
79
|
-
|
|
80
|
-
Exception: If working within an existing website or design system, preserve the established patterns, structure, and visual language.
|
|
81
|
-
|
|
82
|
-
## Presenting your work and final message
|
|
83
|
-
|
|
84
|
-
You are producing plain text that will later be styled by the CLI. Follow these rules exactly. Formatting should make results easy to scan, but not feel mechanical. Use judgment to decide how much structure adds value.
|
|
85
|
-
|
|
86
|
-
- Default: be very concise; friendly coding teammate tone.
|
|
87
|
-
- Ask only when needed; suggest ideas; mirror the user's style.
|
|
88
|
-
- For substantial work, summarize clearly; follow final‑answer formatting.
|
|
89
|
-
- Skip heavy formatting for simple confirmations.
|
|
90
|
-
- Don't dump large files you've written; reference paths only.
|
|
91
|
-
- No "save/copy this file" - User is on the same machine.
|
|
92
|
-
- Offer logical next steps (tests, commits, build) briefly; add verify steps if you couldn't do something.
|
|
93
|
-
- For code changes:
|
|
94
|
-
* Lead with a quick explanation of the change, and then give more details on the context covering where and why a change was made. Do not start this explanation with "summary", just jump right in.
|
|
95
|
-
* If there are natural next steps the user may want to take, suggest them at the end of your response. Do not make suggestions if there are no natural next steps.
|
|
96
|
-
* When suggesting multiple options, use numeric lists for the suggestions so the user can quickly respond with a single number.
|
|
97
|
-
- The user does not command execution outputs. When asked to show the output of a command (e.g. `git show`), relay the important details in your answer or summarize the key lines so the user understands the result.
|
|
98
|
-
|
|
99
|
-
### Final answer structure and style guidelines
|
|
100
|
-
|
|
101
|
-
- Plain text; CLI handles styling. Use structure only when it helps scanability.
|
|
102
|
-
- Headers: optional; short Title Case (1-3 words) wrapped in **…**; no blank line before the first bullet; add only if they truly help.
|
|
103
|
-
- Bullets: use - ; merge related points; keep to one line when possible; 4–6 per list ordered by importance; keep phrasing consistent.
|
|
104
|
-
- Monospace: backticks for commands/paths/env vars/code ids and inline examples; use for literal keyword bullets; never combine with **.
|
|
105
|
-
- Code samples or multi-line snippets should be wrapped in fenced code blocks; include an info string as often as possible.
|
|
106
|
-
- Structure: group related bullets; order sections general → specific → supporting; for subsections, start with a bolded keyword bullet, then items; match complexity to the task.
|
|
107
|
-
- Tone: collaborative, concise, factual; present tense, active voice; self‑contained; no "above/below"; parallel wording.
|
|
108
|
-
- Don'ts: no nested bullets/hierarchies; no ANSI codes; don't cram unrelated keywords; keep keyword lists short—wrap/reformat if long; avoid naming formatting styles in answers.
|
|
109
|
-
- Adaptation: code explanations → precise, structured with code refs; simple tasks → lead with outcome; big changes → logical walkthrough + rationale + next actions; casual one-offs → plain sentences, no headers/bullets.
|
|
110
|
-
- File References: When referencing files in your response follow the below rules:
|
|
111
|
-
* Use inline code to make file paths clickable.
|
|
112
|
-
* Each reference should have a stand alone path. Even if it's the same file.
|
|
113
|
-
* Accepted: absolute, workspace‑relative, a/ or b/ diff prefixes, or bare filename/suffix.
|
|
114
|
-
* Optionally include line/column (1‑based): :line[:column] or #Lline[Ccolumn] (column defaults to 1).
|
|
115
|
-
* Do not use URIs like file://, vscode://, or https://.
|
|
116
|
-
* Do not provide range of lines
|
|
117
|
-
* Examples: src/app.ts, src/app.ts:42, b/server/index.js#L10, C:\repo\project\main.rs:12:5
|
|
File without changes
|
|
File without changes
|