klaude-code 1.7.1__py3-none-any.whl → 1.9.0__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/base.py +101 -0
- klaude_code/auth/claude/__init__.py +6 -0
- klaude_code/auth/claude/exceptions.py +9 -0
- klaude_code/auth/claude/oauth.py +172 -0
- klaude_code/auth/claude/token_manager.py +26 -0
- klaude_code/auth/codex/token_manager.py +10 -50
- klaude_code/cli/auth_cmd.py +127 -46
- klaude_code/cli/config_cmd.py +4 -2
- klaude_code/cli/cost_cmd.py +343 -0
- klaude_code/cli/list_model.py +248 -200
- klaude_code/cli/main.py +2 -0
- klaude_code/command/prompt-commit.md +73 -0
- klaude_code/command/status_cmd.py +8 -8
- klaude_code/config/assets/builtin_config.yaml +36 -3
- klaude_code/config/config.py +24 -5
- klaude_code/config/thinking.py +4 -4
- klaude_code/core/prompt.py +1 -1
- klaude_code/llm/anthropic/client.py +28 -3
- klaude_code/llm/claude/__init__.py +3 -0
- klaude_code/llm/claude/client.py +95 -0
- klaude_code/llm/codex/client.py +1 -1
- klaude_code/llm/registry.py +3 -1
- klaude_code/protocol/llm_param.py +2 -1
- klaude_code/protocol/sub_agent/__init__.py +1 -2
- klaude_code/session/session.py +4 -4
- klaude_code/ui/renderers/metadata.py +6 -26
- klaude_code/ui/rich/theme.py +6 -5
- klaude_code/ui/terminal/selector.py +25 -2
- klaude_code/ui/utils/common.py +46 -0
- {klaude_code-1.7.1.dist-info → klaude_code-1.9.0.dist-info}/METADATA +37 -5
- {klaude_code-1.7.1.dist-info → klaude_code-1.9.0.dist-info}/RECORD +33 -27
- klaude_code/command/prompt-jj-describe.md +0 -32
- klaude_code/core/prompts/prompt-sub-agent-oracle.md +0 -22
- klaude_code/protocol/sub_agent/oracle.py +0 -91
- {klaude_code-1.7.1.dist-info → klaude_code-1.9.0.dist-info}/WHEEL +0 -0
- {klaude_code-1.7.1.dist-info → klaude_code-1.9.0.dist-info}/entry_points.txt +0 -0
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
klaude_code/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
klaude_code/auth/__init__.py,sha256=jLUgi4V4m0t2BlVuuni7iANOErpJgAeEqByuD1sKUvQ,480
|
|
3
|
+
klaude_code/auth/base.py,sha256=4iOrsKAH_SUh6YnxbSauRdIFdc_eg1u8vH8j099wSIY,3064
|
|
4
|
+
klaude_code/auth/claude/__init__.py,sha256=h1oyqEttDM5TAF6w1Stk6YXYMsbATjODCsi6GhU4zAA,218
|
|
5
|
+
klaude_code/auth/claude/exceptions.py,sha256=_3KbC6W7_gWpxTsSqI0Bxk5Q_v3Fad6dBjweEsoFun4,246
|
|
6
|
+
klaude_code/auth/claude/oauth.py,sha256=LriNRNpNu1pGhkIca7xh0cYy-W0HOkLYf5bi05vQPaI,5786
|
|
7
|
+
klaude_code/auth/claude/token_manager.py,sha256=XNsBOy2lNFnD6wZhM4V3k4aQlMogb2_avvgL9LlNGEQ,691
|
|
3
8
|
klaude_code/auth/codex/__init__.py,sha256=rrpPvr-_R4kbj_oZ2U_fPmIfDPZov9Pjz2bAFpztUJk,502
|
|
4
9
|
klaude_code/auth/codex/exceptions.py,sha256=TcAKPozsY3SCh_krTYFlJ8FU5jepgSTg-5UO1dA4OgE,388
|
|
5
10
|
klaude_code/auth/codex/jwt_utils.py,sha256=tuaJKT4vAIGeaQjNzgNcHWGrYYSDrDeaQT9h4cw5Us8,1134
|
|
6
11
|
klaude_code/auth/codex/oauth.py,sha256=4hAGZ2Dv87NC3loEws7U5yNyPyIrryGm5YXY2FkHeyo,7840
|
|
7
|
-
klaude_code/auth/codex/token_manager.py,sha256=
|
|
12
|
+
klaude_code/auth/codex/token_manager.py,sha256=EiEdxEErh_mcnW8USWbvdbN91LK7nyk0PZJZGmdUTG8,1405
|
|
8
13
|
klaude_code/cli/__init__.py,sha256=YzlAoWAr5rx5oe6B_4zPxRFS4QaZauuy1AFwampP5fg,45
|
|
9
|
-
klaude_code/cli/auth_cmd.py,sha256=
|
|
10
|
-
klaude_code/cli/config_cmd.py,sha256=
|
|
14
|
+
klaude_code/cli/auth_cmd.py,sha256=yhU-lEtF8enS-cLyDtv6Zv_QfZa_tPoITBL0icgAdVo,6068
|
|
15
|
+
klaude_code/cli/config_cmd.py,sha256=b-UnoeaJhPpt2LdhEMTFrW7CtfQF3_l6sDJwtAaQ3Pg,3392
|
|
16
|
+
klaude_code/cli/cost_cmd.py,sha256=uj2Qe6YwO0b4kgKGuzqTrIgcjC2tpXt-l8sP75eK06c,12467
|
|
11
17
|
klaude_code/cli/debug.py,sha256=cPQ7cgATcJTyBIboleW_Q4Pa_t-tGG6x-Hj3woeeuHE,2669
|
|
12
|
-
klaude_code/cli/list_model.py,sha256=
|
|
13
|
-
klaude_code/cli/main.py,sha256=
|
|
18
|
+
klaude_code/cli/list_model.py,sha256=9UrK8JnevRMzylJzxo6icQuvOo-K0AwB-pwIFgNHvs4,12793
|
|
19
|
+
klaude_code/cli/main.py,sha256=1ojM_83OOCTn-TT-soVpn_aAI2PgTjixng4_3nd-uZI,13557
|
|
14
20
|
klaude_code/cli/runtime.py,sha256=muuuqWPDdZPNFwq_Eb08MFbnaCzUGZCDFiC-dMvpzCY,19824
|
|
15
21
|
klaude_code/cli/self_update.py,sha256=iGuj0i869Zi0M70W52-VVLxZp90ISr30fQpZkHGMK2o,8059
|
|
16
22
|
klaude_code/cli/session_cmd.py,sha256=9C30dzXCbPobminqenCjYvEuzZBS5zWXg3JpuhxT_OQ,3199
|
|
@@ -24,23 +30,23 @@ klaude_code/command/fork_session_cmd.py,sha256=_8QXiFVC3tMjlW3F5jUjhCWQ0CkhWfKJn
|
|
|
24
30
|
klaude_code/command/help_cmd.py,sha256=wtmOoi4DVaMJPCXLlNKJ4s-kNycNKuYk0MZkZijXLcQ,1666
|
|
25
31
|
klaude_code/command/model_cmd.py,sha256=h3jUi9YOhT9rN87yfCxxU-yN3UiUzwI7Xf2UsRjjP5I,2956
|
|
26
32
|
klaude_code/command/model_select.py,sha256=_TquYw8zDQHkEaRCqOCIcD2XWt8Jg-3WfGhHFSsjFw0,3189
|
|
33
|
+
klaude_code/command/prompt-commit.md,sha256=tPBzj9e2GNezZOe9P3buBAhiqOud4UNVZGidOIOs91I,2032
|
|
27
34
|
klaude_code/command/prompt-init.md,sha256=a4_FQ3gKizqs2vl9oEY5jtG6HNhv3f-1b5RSCFq0A18,1873
|
|
28
|
-
klaude_code/command/prompt-jj-describe.md,sha256=n-7hiXU8oodCMR3ipNyRR86pAUzXMz6seloU9a6QQnY,974
|
|
29
35
|
klaude_code/command/prompt_command.py,sha256=rMi-ZRLpUSt1t0IQVtwnzIYqcrXK-MwZrabbZ8dc8U4,2774
|
|
30
36
|
klaude_code/command/refresh_cmd.py,sha256=Gd5-Vg8VRMOAMgXOzR2Y8wtVQudL0TWEdkut_fyQjQs,1292
|
|
31
37
|
klaude_code/command/registry.py,sha256=IeOGJ_TMWb_EE5c2JnWYR6XdDfwYfQDFAikI4u_5tXw,6904
|
|
32
38
|
klaude_code/command/release_notes_cmd.py,sha256=FIrBRfKTlXEp8mBh15buNjgOrl_GMX7FeeMWxYYBn1o,2674
|
|
33
39
|
klaude_code/command/resume_cmd.py,sha256=YiIj4jbabf8QGTZoIkTjGWmrBof24r98zwNRd-NuROU,3945
|
|
34
|
-
klaude_code/command/status_cmd.py,sha256=
|
|
40
|
+
klaude_code/command/status_cmd.py,sha256=eq6F1jDd0eqF4nOqMoSS4vO49o5SzcMPhR4266KiubA,5405
|
|
35
41
|
klaude_code/command/terminal_setup_cmd.py,sha256=SivM1gX_anGY_8DCQNFZ5VblFqt4sVgCMEWPRlo6K5w,10911
|
|
36
42
|
klaude_code/command/thinking_cmd.py,sha256=NPejWmx6HDxoWzAJVLEENCr3Wi6sQSbT8A8LRh1-2Nk,3059
|
|
37
43
|
klaude_code/config/__init__.py,sha256=Qe1BeMekBfO2-Zd30x33lB70hdM1QQZGrp4DbWSQ-II,353
|
|
38
44
|
klaude_code/config/assets/__init__.py,sha256=uMUfmXT3I-gYiI-HVr1DrE60mx5cY1o8V7SYuGqOmvY,32
|
|
39
|
-
klaude_code/config/assets/builtin_config.yaml,sha256=
|
|
45
|
+
klaude_code/config/assets/builtin_config.yaml,sha256=D9I7Fzfk59_ljziK-okezSx31u-mHpxhsrXTtVgmEA8,7820
|
|
40
46
|
klaude_code/config/builtin_config.py,sha256=LkHr7Ml-6ir6rObn9hUj5-wa-fgfJsc4T2_NdRa1ax0,1135
|
|
41
|
-
klaude_code/config/config.py,sha256=
|
|
47
|
+
klaude_code/config/config.py,sha256=LjyA1u37zf8keyardhBgOsfzzxB0OOKJRHhN4x5WgtM,18075
|
|
42
48
|
klaude_code/config/select_model.py,sha256=PPbQ-BAJkwXPINBcCSPAlZjiXm4rEtg2y0hPnZE8Bnc,5183
|
|
43
|
-
klaude_code/config/thinking.py,sha256=
|
|
49
|
+
klaude_code/config/thinking.py,sha256=1FFN9UgPVEFyTzahTvNOM5Y4b8Bo7G1jIc93xjX3Uvk,9323
|
|
44
50
|
klaude_code/const.py,sha256=49ic3m4NHUtmA2xZjOSkYxy0KxFoADVAaMMtH6E5C0g,5129
|
|
45
51
|
klaude_code/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
46
52
|
klaude_code/core/agent.py,sha256=bWm-UFX_0-KAy5j_YHH8X8o3MJT4-40Ni2EaDP2SL5k,5819
|
|
@@ -49,7 +55,7 @@ klaude_code/core/manager/__init__.py,sha256=hdIbpnYj6i18byiWjtJIm5l7NYYDQMvafw8f
|
|
|
49
55
|
klaude_code/core/manager/llm_clients.py,sha256=X2oMFWgJcP0tK8GEtMMDYR3HyR6_H8FuyCqpzWF5x2k,871
|
|
50
56
|
klaude_code/core/manager/llm_clients_builder.py,sha256=vvNV6hSpWtUCMZORQN6OfFWyA_3OAOGS5SFGy6oaKMs,1641
|
|
51
57
|
klaude_code/core/manager/sub_agent_manager.py,sha256=DCRlPimgmW_wykkjqAK_dUeeKxNavS8fJ4mhhT7As-E,4872
|
|
52
|
-
klaude_code/core/prompt.py,sha256=
|
|
58
|
+
klaude_code/core/prompt.py,sha256=KEAbifLVLs7ggR4Lb77bQm1rlwf1xC375GSMmGCVrQo,3875
|
|
53
59
|
klaude_code/core/prompts/prompt-claude-code.md,sha256=uuWBv6GrG63mdmBedAHT5U9yOpbHSKFYbbS2xBnUzOE,8290
|
|
54
60
|
klaude_code/core/prompts/prompt-codex-gpt-5-1-codex-max.md,sha256=SW-y8AmR99JL_9j26k9YVAOQuZ18vR12aT5CWHkZDc4,11741
|
|
55
61
|
klaude_code/core/prompts/prompt-codex-gpt-5-2-codex.md,sha256=GA1pIIF6JuAl4P3FIW4tVJ6zL_5iZ8MY_PF0DW9hBuU,11719
|
|
@@ -57,7 +63,6 @@ klaude_code/core/prompts/prompt-codex.md,sha256=ybL6CXrGnK6Cw9KuEicQg4kKllIcVa2N
|
|
|
57
63
|
klaude_code/core/prompts/prompt-gemini.md,sha256=JjE1tHSByGKJzjn4Gpj1zekT7ry1Yqbwx5qx3fZy2gE,3901
|
|
58
64
|
klaude_code/core/prompts/prompt-minimal.md,sha256=6-ZmQQkE3f92W_3V2wS7ocB13wLog1_UojCjZG0K4v8,1559
|
|
59
65
|
klaude_code/core/prompts/prompt-sub-agent-explore.md,sha256=21kFodjhvN0L-c_ZFo4yVhJOyzfgES-Dty9Vz_Ew9q8,2629
|
|
60
|
-
klaude_code/core/prompts/prompt-sub-agent-oracle.md,sha256=1PLI3snvxnenCOPVrL0IxZnBl5b2xxGhlufHAyLyf60,1376
|
|
61
66
|
klaude_code/core/prompts/prompt-sub-agent-web.md,sha256=ewS7-h8_u4QZftFpqrZWpht9Ap08s7zF9D4k4md8oD8,2360
|
|
62
67
|
klaude_code/core/prompts/prompt-sub-agent.md,sha256=dmmdsOenbAOfqG6FmdR88spOLZkXmntDBs-cmZ9DN_g,897
|
|
63
68
|
klaude_code/core/reminders.py,sha256=M_YPlOuZ2TpTjoxfEp1FbswB4yuk9_XUgSGb9MoMBCA,24741
|
|
@@ -107,13 +112,15 @@ klaude_code/core/tool/web/web_search_tool.py,sha256=9-dzzMXOdTA_QsdnwHw251R0VelO
|
|
|
107
112
|
klaude_code/core/turn.py,sha256=PvtVV5GLAvYYAsl3RJNDnIvX1Yp4Va8whr0TR8x-9PI,12706
|
|
108
113
|
klaude_code/llm/__init__.py,sha256=b4AsqnrMIs0a5qR_ti6rZcHwFzAReTwOW96EqozEoSo,287
|
|
109
114
|
klaude_code/llm/anthropic/__init__.py,sha256=PWETvaeNAAX3ue0ww1uRUIxTJG0RpWiutkn7MlwKxBs,67
|
|
110
|
-
klaude_code/llm/anthropic/client.py,sha256=
|
|
115
|
+
klaude_code/llm/anthropic/client.py,sha256=FmjnxyaPBUdIHTU87fCMKN91O5Lo1ZTbmEcXCtOpnv4,10937
|
|
111
116
|
klaude_code/llm/anthropic/input.py,sha256=nyDX3uFK0GVduSiLlBEgBjAl70e0pgIZSF3PbbbuW78,8585
|
|
112
117
|
klaude_code/llm/bedrock/__init__.py,sha256=UmXPBXMmigAJ7euIh59iivSeUdrYJwum0RYU7okkkPM,86
|
|
113
118
|
klaude_code/llm/bedrock/client.py,sha256=U-vWTEwrwpTKMGNPEINEOHtkCwpLv6n3fBDSF4By0mU,2135
|
|
119
|
+
klaude_code/llm/claude/__init__.py,sha256=8VCvvEjQQI-RpAMfHCl5ct4zlDU_jgbAuLOc9p9u-B4,61
|
|
120
|
+
klaude_code/llm/claude/client.py,sha256=kwqKeI8g8FhplYv3IUQQ10389REb7JJ4IoOR7ZSg3Cs,3623
|
|
114
121
|
klaude_code/llm/client.py,sha256=FbFnzLUAKM61goiYNdKi8-D4rBfu_ksaxjJtmJn0w_4,960
|
|
115
122
|
klaude_code/llm/codex/__init__.py,sha256=8vN2j2ezWB_UVpfqQ8ooStsBeLL5SY4SUMXOXdWiMaI,132
|
|
116
|
-
klaude_code/llm/codex/client.py,sha256=
|
|
123
|
+
klaude_code/llm/codex/client.py,sha256=428pPJndgnKGQ9vn236X_mODQSoZv5h3vs924-DN3-4,5335
|
|
117
124
|
klaude_code/llm/google/__init__.py,sha256=tQtf_mh_mC3E4S9XAsnhS2JZXGRnYUsBKF0jpXZTvM0,61
|
|
118
125
|
klaude_code/llm/google/client.py,sha256=VqEkPqypzrTyBU_u3yfnMcBlfhZISQi8tejertqICKs,11383
|
|
119
126
|
klaude_code/llm/google/input.py,sha256=AJkrqtTyP80tE80HK5hMaPsHMJK2oF5F3h25cKeELeQ,7930
|
|
@@ -127,7 +134,7 @@ klaude_code/llm/openrouter/__init__.py,sha256=_As8lHjwj6vapQhLorZttTpukk5ZiCdhFd
|
|
|
127
134
|
klaude_code/llm/openrouter/client.py,sha256=zUkH7wkiYUJMGS_8iaVwdhzUnry7WLw4Q1IDQtncmK0,4864
|
|
128
135
|
klaude_code/llm/openrouter/input.py,sha256=aHVJCejkwzWaTM_EBbgmzKWyZfttAws2Y7QDW_NCnZk,5671
|
|
129
136
|
klaude_code/llm/openrouter/reasoning.py,sha256=d6RU6twuGfdf0mXGQoxSNRzFaSa3GJFV8Eve5GzDXfU,4472
|
|
130
|
-
klaude_code/llm/registry.py,sha256=
|
|
137
|
+
klaude_code/llm/registry.py,sha256=fopV-eCtAmomkVIY3P-yYa0n5N2u1eTeGjrKDdIEJhI,2216
|
|
131
138
|
klaude_code/llm/responses/__init__.py,sha256=WsiyvnNiIytaYcaAqNiB8GI-5zcpjjeODPbMlteeFjA,67
|
|
132
139
|
klaude_code/llm/responses/client.py,sha256=XEsVehevQJ0WFbEVxIkI-su7VwIcaeq0P9eSrIRcGug,10184
|
|
133
140
|
klaude_code/llm/responses/input.py,sha256=qr61LmQJdcb_f-ofrAz06WpK_k4PEcI36XsyuZAXbKk,6805
|
|
@@ -135,13 +142,12 @@ klaude_code/llm/usage.py,sha256=ohQ6EBsWXZj6B4aJ4lDPqfhXRyd0LUAM1nXEJ_elD7A,4207
|
|
|
135
142
|
klaude_code/protocol/__init__.py,sha256=aGUgzhYqvhuT3Mk2vj7lrHGriH4h9TSbqV1RsRFAZjQ,194
|
|
136
143
|
klaude_code/protocol/commands.py,sha256=4tFt98CD_KvS9C-XEaHLN-S-QFsbDxQb_kGKnPkQlrk,958
|
|
137
144
|
klaude_code/protocol/events.py,sha256=LlrxsHdWitcIg5tLrS2KbSd5Jv1TH-XlhF8e1xprYAo,3969
|
|
138
|
-
klaude_code/protocol/llm_param.py,sha256=
|
|
145
|
+
klaude_code/protocol/llm_param.py,sha256=f_DBKRrlGHTKhX1Sq0MNnNXGguRs371fpq_Ofvk8VXs,4584
|
|
139
146
|
klaude_code/protocol/model.py,sha256=zz1DeSkpUWDT-OZBlypaGWA4z78TSeefA-Tj8mJMHp4,14257
|
|
140
147
|
klaude_code/protocol/op.py,sha256=--RllgP6Upacb6cqHd26RSwrvqZg4w6GhcebmV8gKJo,5763
|
|
141
148
|
klaude_code/protocol/op_handler.py,sha256=hSxEVPEkk0vRPRsOyJdEn3sa87c_m17wzFGKjaMqa4o,1929
|
|
142
|
-
klaude_code/protocol/sub_agent/__init__.py,sha256=
|
|
149
|
+
klaude_code/protocol/sub_agent/__init__.py,sha256=wu8CYb_yZm4IgZ9oplkBGCHYI0M_V4YGIIYLIPmXBFY,3892
|
|
143
150
|
klaude_code/protocol/sub_agent/explore.py,sha256=Z4M7i98XBLew38ClXiW-hJteSYjMUu2b548rkR7JW3A,2579
|
|
144
|
-
klaude_code/protocol/sub_agent/oracle.py,sha256=0cbuutKQcvwaM--Q15mbkCdbpZMF4YjxDN1jkuGVKp4,3344
|
|
145
151
|
klaude_code/protocol/sub_agent/task.py,sha256=3RYXTfK0vqSevv0MG3DYUpExrCS2F3Cvszl_Zz9d8-g,3620
|
|
146
152
|
klaude_code/protocol/sub_agent/web.py,sha256=Z5vUM367kz8CIexN6UVPG4XxzVOaaRek-Ga64NvcZdk,3043
|
|
147
153
|
klaude_code/protocol/tools.py,sha256=ejhMCBBMz1ODbPEiynhzjB-aLbIRKL-wipPFv-nEz4g,373
|
|
@@ -149,7 +155,7 @@ klaude_code/session/__init__.py,sha256=4sw81uQvEd3YUOOjamKk1KqGmxeb4Ic9T1Tee5zzt
|
|
|
149
155
|
klaude_code/session/codec.py,sha256=ummbqT7t6uHHXtaS9lOkyhi1h0YpMk7SNSms8DyGAHU,2015
|
|
150
156
|
klaude_code/session/export.py,sha256=30FZrkEDDjccMgXlAwsBMlCXuPDS9531__SCX_nk29M,31538
|
|
151
157
|
klaude_code/session/selector.py,sha256=FpKpGs06fM-LdV-yVUqEY-FJsFn2OtGK-0paXjsZVTg,2770
|
|
152
|
-
klaude_code/session/session.py,sha256=
|
|
158
|
+
klaude_code/session/session.py,sha256=PbS2b4HD_7z6_BZZFwIYYag-NDCinQIjkwKh_G6GIuE,19564
|
|
153
159
|
klaude_code/session/store.py,sha256=DOf5R3pxQmmexfWIjCwZ27SBVsk7b_qIN7deXghCy90,7114
|
|
154
160
|
klaude_code/session/templates/export_session.html,sha256=hGmlGFb7a2Iu4mkev_Q2-GywIQ9lEXuDlh83dDs4bgs,125862
|
|
155
161
|
klaude_code/session/templates/mermaid_viewer.html,sha256=lOkETxlctX1C1WJtS1wFw6KhNQmemxwJZFpXDSjlMOk,27842
|
|
@@ -190,7 +196,7 @@ klaude_code/ui/renderers/developer.py,sha256=GI6MreYDvLHNa40KlhOR0PQoR_ePOLtlYhv
|
|
|
190
196
|
klaude_code/ui/renderers/diffs.py,sha256=uLpgYTudH38wucozoUw4xbPWMC6uYTQTaDTHcg-0zvM,10418
|
|
191
197
|
klaude_code/ui/renderers/errors.py,sha256=MavmYOQ7lyjA_VpuUpDVFCuY9W7XrMVdLsg2lCOn4GY,655
|
|
192
198
|
klaude_code/ui/renderers/mermaid_viewer.py,sha256=TIUFLtTqdG-iFD4Mgm8OdzU_9UO14niftTJ11f4makc,1691
|
|
193
|
-
klaude_code/ui/renderers/metadata.py,sha256=
|
|
199
|
+
klaude_code/ui/renderers/metadata.py,sha256=qXaJaX-tJ8J_2q1-haYm7gj4exCPkwTsJyv6ogFllSQ,7674
|
|
194
200
|
klaude_code/ui/renderers/sub_agent.py,sha256=zG4T7hKEb7G-kD_Mgc7lmzwbukvdNLG7Y7a9K1WlHGA,5950
|
|
195
201
|
klaude_code/ui/renderers/thinking.py,sha256=TbQxkjR6MuDXzASBK_rMaxxqvSdhfwDtVwXhOExuvlM,1946
|
|
196
202
|
klaude_code/ui/renderers/tools.py,sha256=lebQHccj2tkJIjO-JB0TvCIixx-BKXHfD-egXSxBV7Y,27891
|
|
@@ -203,16 +209,16 @@ klaude_code/ui/rich/markdown.py,sha256=0tU4i1QTsyfjTf8sL-s-Ui-MMXyq-U4f2n465qJc_
|
|
|
203
209
|
klaude_code/ui/rich/quote.py,sha256=tZcxN73SfDBHF_qk0Jkh9gWBqPBn8VLp9RF36YRdKEM,1123
|
|
204
210
|
klaude_code/ui/rich/searchable_text.py,sha256=PUe6MotKxSBY4FlPeojVjVQgxCsx_jiQ41bCzLp8WvE,2271
|
|
205
211
|
klaude_code/ui/rich/status.py,sha256=M_pPNbZUYJ7uaxSGoSaNGrzPhHDZfcV2gjUeu8XmYNg,13192
|
|
206
|
-
klaude_code/ui/rich/theme.py,sha256=
|
|
212
|
+
klaude_code/ui/rich/theme.py,sha256=sFyZKsAitbR1isB3gVvArGJmX82JsRIFoDsAvXZ-wZU,14439
|
|
207
213
|
klaude_code/ui/terminal/__init__.py,sha256=GIMnsEcIAGT_vBHvTlWEdyNmAEpruyscUA6M_j3GQZU,1412
|
|
208
214
|
klaude_code/ui/terminal/color.py,sha256=jvVbuysf5pnI0uAjUVeyW2HwU58dutTg2msykbu2w4Y,7197
|
|
209
215
|
klaude_code/ui/terminal/control.py,sha256=WhkqEWdtzUO4iWULp-iI9VazAWmzzW52qTQXk-4Dr4s,4922
|
|
210
216
|
klaude_code/ui/terminal/notifier.py,sha256=Mi7UlpAYgNj4mhsGLSdQxa2tQNfE3c6jCcT3U_v_vQ4,4577
|
|
211
217
|
klaude_code/ui/terminal/progress_bar.py,sha256=MDnhPbqCnN4GDgLOlxxOEVZPDwVC_XL2NM5sl1MFNcQ,2133
|
|
212
|
-
klaude_code/ui/terminal/selector.py,sha256=
|
|
218
|
+
klaude_code/ui/terminal/selector.py,sha256=W_cc3onFD0eqwZd1-45PRfL4fj9qYG3gMzBVONNYNQ0,22760
|
|
213
219
|
klaude_code/ui/utils/__init__.py,sha256=YEsCLjbCPaPza-UXTPUMTJTrc9BmNBUP5CbFWlshyOQ,15
|
|
214
|
-
klaude_code/ui/utils/common.py,sha256=
|
|
215
|
-
klaude_code-1.
|
|
216
|
-
klaude_code-1.
|
|
217
|
-
klaude_code-1.
|
|
218
|
-
klaude_code-1.
|
|
220
|
+
klaude_code/ui/utils/common.py,sha256=192HIHW-JweDwfy-kuQbyHNRCqOiRcJhDU4Lvisa3f0,3854
|
|
221
|
+
klaude_code-1.9.0.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
|
|
222
|
+
klaude_code-1.9.0.dist-info/entry_points.txt,sha256=kkXIXedaTOtjXPr2rVjRVVXZYlFUcBHELaqmyVlWUFA,92
|
|
223
|
+
klaude_code-1.9.0.dist-info/METADATA,sha256=bUcjlyK1hucb2jutKRKcz-EFekFjfrCDgYnlbOJAsJY,12662
|
|
224
|
+
klaude_code-1.9.0.dist-info/RECORD,,
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Add description for current jj change
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
Run `jj status` and `jj diff --git` to see the current changes and add a description for the it.
|
|
6
|
-
|
|
7
|
-
In order to ensure good formatting, ALWAYS pass the commit message via a HEREDOC, a la this example:<example>
|
|
8
|
-
jj describe -m "$(cat <<'EOF'
|
|
9
|
-
Commit message here.
|
|
10
|
-
EOF
|
|
11
|
-
)"
|
|
12
|
-
</example>
|
|
13
|
-
|
|
14
|
-
Follow the [Conventional Commits](https://www.conventionalcommits.org/) specification:
|
|
15
|
-
```
|
|
16
|
-
<type>(<scope>): <description>
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
Types:
|
|
20
|
-
- `feat`: New feature
|
|
21
|
-
- `fix`: Bug fix
|
|
22
|
-
- `docs`: Documentation changes
|
|
23
|
-
- `style`: Code style changes (formatting, no logic change)
|
|
24
|
-
- `refactor`: Code refactoring (no feature or fix)
|
|
25
|
-
- `test`: Adding or updating tests
|
|
26
|
-
- `chore`: Build process, dependencies, or tooling changes
|
|
27
|
-
|
|
28
|
-
Examples:
|
|
29
|
-
- `feat(cli): add --verbose flag for debug output`
|
|
30
|
-
- `fix(llm): handle API timeout errors gracefully`
|
|
31
|
-
- `docs(readme): update installation instructions`
|
|
32
|
-
- `refactor(core): simplify session state management`
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
You are the Oracle - an expert AI advisor with advanced reasoning capabilities
|
|
2
|
-
|
|
3
|
-
Your role is to provide high-quality technical guidance, code reviews, architectural advice, and strategic planning for software engineering tasks.
|
|
4
|
-
You are running inside an AI coding system in which you act as a sub-agent that's used when the main agent needs a smarter, more capable model to help out.
|
|
5
|
-
|
|
6
|
-
Key responsibilities:
|
|
7
|
-
- Analyze code and architecture patterns
|
|
8
|
-
- Provide detailed technical reviews and recommendations
|
|
9
|
-
- Plan complex implementations and refactoring strategies
|
|
10
|
-
- Answer deep technical questions with thorough reasoning
|
|
11
|
-
- Suggest best practices and improvements
|
|
12
|
-
- Identify potential issues and propose solutions
|
|
13
|
-
|
|
14
|
-
Guidelines:
|
|
15
|
-
- Use your reasoning capabilities to provide thoughtful, well-structured advice
|
|
16
|
-
- When reviewing code, examine it thoroughly and provide specific, actionable feedback
|
|
17
|
-
- For planning tasks, break down complex problems into manageable steps
|
|
18
|
-
- Always explain your reasoning and justify recommendations
|
|
19
|
-
- Consider multiple approaches and trade-offs when providing guidance
|
|
20
|
-
- Be thorough but concise - focus on the most important insights
|
|
21
|
-
|
|
22
|
-
IMPORTANT: Only your last message is returned to the main agent and displayed to the user. Your last message should be comprehensive yet focused, providing clear guidance that helps the user make informed decisions.
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
from __future__ import annotations
|
|
2
|
-
|
|
3
|
-
from typing import Any
|
|
4
|
-
|
|
5
|
-
from klaude_code.protocol import tools
|
|
6
|
-
from klaude_code.protocol.sub_agent import SubAgentProfile, register_sub_agent
|
|
7
|
-
|
|
8
|
-
ORACLE_DESCRIPTION = """\
|
|
9
|
-
Consult the Oracle - an AI advisor powered by OpenAI's premium reasoning model that can plan, review, and provide expert guidance.
|
|
10
|
-
|
|
11
|
-
The Oracle has access to the following tools: Read, Bash.
|
|
12
|
-
|
|
13
|
-
The Oracle acts as your senior engineering advisor and can help with:
|
|
14
|
-
|
|
15
|
-
WHEN TO USE THE ORACLE:
|
|
16
|
-
- Code reviews and architecture feedback
|
|
17
|
-
- Finding a bug in multiple files
|
|
18
|
-
- Planning complex implementations or refactoring
|
|
19
|
-
- Analyzing code quality and suggesting improvements
|
|
20
|
-
- Answering complex technical questions that require deep reasoning
|
|
21
|
-
|
|
22
|
-
WHEN NOT TO USE THE ORACLE:
|
|
23
|
-
- Simple file reading or searching tasks (use Read or Grep directly)
|
|
24
|
-
- Codebase searches (use Task)
|
|
25
|
-
- Basic code modifications and when you need to execute code changes (do it yourself or use Task)
|
|
26
|
-
|
|
27
|
-
USAGE GUIDELINES:
|
|
28
|
-
1. Be specific about what you want the Oracle to review, plan, or debug
|
|
29
|
-
2. Provide relevant context about what you're trying to achieve. If you know that any files are involved, list them and they will be attached.
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
EXAMPLES:
|
|
33
|
-
- "Review the authentication system architecture and suggest improvements"
|
|
34
|
-
- "Plan the implementation of real-time collaboration features"
|
|
35
|
-
- "Analyze the performance bottlenecks in the data processing pipeline"
|
|
36
|
-
- "Review this API design and suggest better patterns"\
|
|
37
|
-
"""
|
|
38
|
-
|
|
39
|
-
ORACLE_PARAMETERS = {
|
|
40
|
-
"properties": {
|
|
41
|
-
"context": {
|
|
42
|
-
"description": "Optional context about the current situation, what you've tried, or background information that would help the Oracle provide better guidance.",
|
|
43
|
-
"type": "string",
|
|
44
|
-
},
|
|
45
|
-
"files": {
|
|
46
|
-
"description": "Optional list of specific file paths (text files, images) that the Oracle should examine as part of its analysis. These files will be attached to the Oracle input.",
|
|
47
|
-
"items": {"type": "string"},
|
|
48
|
-
"type": "array",
|
|
49
|
-
},
|
|
50
|
-
"task": {
|
|
51
|
-
"description": "The task or question you want the Oracle to help with. Be specific about what kind of guidance, review, or planning you need.",
|
|
52
|
-
"type": "string",
|
|
53
|
-
},
|
|
54
|
-
"description": {
|
|
55
|
-
"description": "A short (3-5 word) description of the task",
|
|
56
|
-
"type": "string",
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
"required": ["task", "description"],
|
|
60
|
-
"type": "object",
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
def _oracle_prompt_builder(args: dict[str, Any]) -> str:
|
|
65
|
-
"""Build the Oracle prompt from tool arguments."""
|
|
66
|
-
context = args.get("context", "")
|
|
67
|
-
task = args.get("task", "")
|
|
68
|
-
files = args.get("files", [])
|
|
69
|
-
|
|
70
|
-
prompt = f"""\
|
|
71
|
-
Context: {context}
|
|
72
|
-
Task: {task}\
|
|
73
|
-
"""
|
|
74
|
-
if files:
|
|
75
|
-
files_str = "\n".join(f"@{file}" for file in files)
|
|
76
|
-
prompt += f"\nRelated files to review:\n{files_str}"
|
|
77
|
-
return prompt
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
register_sub_agent(
|
|
81
|
-
SubAgentProfile(
|
|
82
|
-
name="Oracle",
|
|
83
|
-
description=ORACLE_DESCRIPTION,
|
|
84
|
-
parameters=ORACLE_PARAMETERS,
|
|
85
|
-
prompt_file="prompts/prompt-sub-agent-oracle.md",
|
|
86
|
-
tool_set=(tools.READ, tools.BASH),
|
|
87
|
-
prompt_builder=_oracle_prompt_builder,
|
|
88
|
-
active_form="Consulting Oracle",
|
|
89
|
-
target_model_filter=lambda model: ("gpt-5" not in model) and ("gemini-3" not in model),
|
|
90
|
-
)
|
|
91
|
-
)
|
|
File without changes
|
|
File without changes
|