code-context-control 2.161.0__py3-none-any.whl → 2.162.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.
- cli/c3.py +1 -1
- {code_context_control-2.161.0.dist-info → code_context_control-2.162.0.dist-info}/METADATA +1 -1
- {code_context_control-2.161.0.dist-info → code_context_control-2.162.0.dist-info}/RECORD +10 -10
- oracle/config.py +3 -0
- oracle/services/mobile_api.py +2 -1
- oracle/services/mobile_fleet.py +43 -0
- {code_context_control-2.161.0.dist-info → code_context_control-2.162.0.dist-info}/WHEEL +0 -0
- {code_context_control-2.161.0.dist-info → code_context_control-2.162.0.dist-info}/entry_points.txt +0 -0
- {code_context_control-2.161.0.dist-info → code_context_control-2.162.0.dist-info}/licenses/LICENSE +0 -0
- {code_context_control-2.161.0.dist-info → code_context_control-2.162.0.dist-info}/top_level.txt +0 -0
cli/c3.py
CHANGED
|
@@ -96,7 +96,7 @@ console = Console() if HAS_RICH else None
|
|
|
96
96
|
# Config
|
|
97
97
|
CONFIG_DIR = ".c3"
|
|
98
98
|
CONFIG_FILE = ".c3/config.json"
|
|
99
|
-
__version__ = "2.
|
|
99
|
+
__version__ = "2.162.0"
|
|
100
100
|
|
|
101
101
|
# The PreToolUse matcher for native subagent calls (installer and hub migration).
|
|
102
102
|
AGENT_MATCHER = "Agent|Task"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: code-context-control
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.162.0
|
|
4
4
|
Summary: Local MCP code-intelligence for AI coding tools: surgical search/read/edit, agent-config version history, path-level access + masking guards, and a multi-project hub.
|
|
5
5
|
Author-email: Dimitri Tselenchuk <dtselenc@gmail.com>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
cli/__init__.py,sha256=ec66drCZGNMRU4V6ov0zVhYZph1us12Vn8OvG_LJyRY,22
|
|
2
2
|
cli/_hook_utils.py,sha256=tzpdF413jakQKMbTru_GdHxQXxLLQKiZzVkTm4Fo_eU,23258
|
|
3
3
|
cli/_shell_writes.py,sha256=iBbzK0v0d29rhrYgF3zKJIJbb1WSZhQjD_6w8-nOUec,7348
|
|
4
|
-
cli/c3.py,sha256=
|
|
4
|
+
cli/c3.py,sha256=ElyoaAdnW92ygoBDkBVnBDZD9iG_abHjeZqsPFwxfb0,439974
|
|
5
5
|
cli/docs.html,sha256=pPxcP5ieY0DcfEDvegwIcRxbz1woLZoKLVSF-4JVy0Q,146784
|
|
6
6
|
cli/edits.html,sha256=UjAhoCmBmQ89cklGvJqzC6eyNP2tc8H6T-e01DVkLvE,43418
|
|
7
7
|
cli/hook_access_guard.py,sha256=4UF2YHp5_vISH7Gvolc_Bz3ppSye2lGpGx38egRLj1g,32116
|
|
@@ -135,7 +135,7 @@ cli/ui/components/sessions.js,sha256=FIKtil76B8tCkAmcFV7hlj6GQ_DCJK2jCzvEmdK7NBE
|
|
|
135
135
|
cli/ui/components/settings.js,sha256=FXcn-UQE2mXC6HFsLeEas-wAUFKt0OJaLySroZQMhGA,84095
|
|
136
136
|
cli/ui/components/sidebar.js,sha256=K2ym2kUgpbyG-EBA_wBIIiqQY8qTatsiBZwzseMWuIQ,9939
|
|
137
137
|
cli/ui/components/tasks.js,sha256=vyKQ3uwoppMwvdEaHlhWXW4oWcAisx4NveqzMhsYqHo,38438
|
|
138
|
-
code_context_control-2.
|
|
138
|
+
code_context_control-2.162.0.dist-info/licenses/LICENSE,sha256=l8Kh5QCNWNvR6kIt8L0BUZvc2LAFiHv2c-FnsGnUZf4,11301
|
|
139
139
|
core/__init__.py,sha256=qiheEC2r3KCd3vscukDVkjCXFcadzGgNhDhs9PbLVPA,2835
|
|
140
140
|
core/blas_threads.py,sha256=Do7pR9YdumshhOmP6TV5oAv65i3gN7Lvt93b5EAO1bo,1256
|
|
141
141
|
core/codex_patch.py,sha256=CxvT_rQIwPNTRJZj9EHJmx0ZdOeSLxjiixuLI3Z7lPc,2107
|
|
@@ -148,7 +148,7 @@ core/mcp_stack.py,sha256=ZCiCNKtN-IHFhwyRWz1djFFV1a3vbKBKB6Aefz1HvCo,4462
|
|
|
148
148
|
core/mcp_toml.py,sha256=VNZCjJsr4II_jX3cmjYzDh_OQ7Nk34mLnkg528Tl1GM,7047
|
|
149
149
|
core/web_security.py,sha256=HwgK5aBATfvRIeO_4gWgzK77gKwGuzVlmiuNGm4gGxI,7884
|
|
150
150
|
oracle/__init__.py,sha256=-OTD7Jh4mUMA4QgPGthPLWXttgZLpkIPhGQ87ZfHBx0,63
|
|
151
|
-
oracle/config.py,sha256=
|
|
151
|
+
oracle/config.py,sha256=Nid-0SJdm2p8ng0zL_Yu59i_QXUIIDRQUBdBKd0eju0,8244
|
|
152
152
|
oracle/listeners.py,sha256=lV59aFuMddq-H8l8328NmDyfI79LaB-rcFyrv5cFmog,8054
|
|
153
153
|
oracle/mcp_oracle.py,sha256=wIyVg-A3_Neu45QgIdnywSX8Bm0VIsKYIPmYp63NcuY,10000
|
|
154
154
|
oracle/oracle_server.py,sha256=NRzIN1V6eQ4jA88ewfWNoaaz5XQvOjNgGo1WywE2_ZU,54556
|
|
@@ -169,8 +169,8 @@ oracle/services/insight_engine.py,sha256=lwcdXtjt3CSZLqHVpXx6SG5gDhZYUKwXt4Z8dGy
|
|
|
169
169
|
oracle/services/local_session.py,sha256=nkawOjDbotUp5wtZQnC1wPDw3HopNYMkoYqWpP5ToCU,9227
|
|
170
170
|
oracle/services/memory_reader.py,sha256=rSEmoIXQu2JkolHJIQWpn0piPJpyuf1KZvW_9liQwkU,3727
|
|
171
171
|
oracle/services/memory_writer.py,sha256=hpvYsxjhl293jEjGcRKfjG5njUaAOXKqbmJaUu1WdUU,6997
|
|
172
|
-
oracle/services/mobile_api.py,sha256=
|
|
173
|
-
oracle/services/mobile_fleet.py,sha256=
|
|
172
|
+
oracle/services/mobile_api.py,sha256=1qNMI7RdiSaWStuMWOlutTdWoMzOWlm9EpJORcT40VU,153356
|
|
173
|
+
oracle/services/mobile_fleet.py,sha256=mZ49lojGKOVMiWVdTaFcEV3a_CvjqhwJWFMDa9m9R0k,26165
|
|
174
174
|
oracle/services/project_scanner.py,sha256=PkYJtwOLRME1EzwRy3GIkYk6Xw0u1_BzFcaMJ5gJ1_s,6118
|
|
175
175
|
oracle/services/review_agent.py,sha256=m_fzoHowpiibf0_iz3dF72LWSrwB_FbDd1am-SbeWXg,11273
|
|
176
176
|
oracle/services/schedule_api.py,sha256=6NgmSYf2h4RSwqChuKvceWvRq3jC_ACdBKcZGi9-Wqs,12798
|
|
@@ -354,8 +354,8 @@ tui/screens/search_view.py,sha256=MMHjVdlk3HZSuDBSvq8IGrqv_Mh5Us6YqXQ80bcWSMk,19
|
|
|
354
354
|
tui/screens/session_view.py,sha256=eZ1eDwHTvPOck1wCCviixtOaCxIkBT_95ytNNNriGNA,5991
|
|
355
355
|
tui/screens/stats.py,sha256=p81PjzdaIv7hllb8f45-rlVe4lJZwSdIMqu7e86_u5s,6223
|
|
356
356
|
tui/screens/ui_view.py,sha256=1QJCgLh2YfgWIpvzRG1KOGXYEaOYX6ojN61Azjf2oX0,2125
|
|
357
|
-
code_context_control-2.
|
|
358
|
-
code_context_control-2.
|
|
359
|
-
code_context_control-2.
|
|
360
|
-
code_context_control-2.
|
|
361
|
-
code_context_control-2.
|
|
357
|
+
code_context_control-2.162.0.dist-info/METADATA,sha256=1Bq_n_o83ziIMOIFYmOW9Ue133cwJK7DRKG4GtVp4Qs,29355
|
|
358
|
+
code_context_control-2.162.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
359
|
+
code_context_control-2.162.0.dist-info/entry_points.txt,sha256=7kX_WUsDCF2hbXzvbNyscyaBb9AeA-DJY5v_5hN0DlU,93
|
|
360
|
+
code_context_control-2.162.0.dist-info/top_level.txt,sha256=wRt41zBybVF3qAiNXHz9BURbkKvUvfhmWWtKMhaw6eE,29
|
|
361
|
+
code_context_control-2.162.0.dist-info/RECORD,,
|
oracle/config.py
CHANGED
|
@@ -94,6 +94,9 @@ DEFAULTS = {
|
|
|
94
94
|
"mobile_sessions_enabled": True,
|
|
95
95
|
"mobile_sessions_write": True,
|
|
96
96
|
"mobile_sessions_transcripts": False,
|
|
97
|
+
# Start a Remote Control session (`claude --remote-control`) in a registered
|
|
98
|
+
# project: opens a terminal on this PC, so it is opt-in (docs/sessions.md).
|
|
99
|
+
"mobile_sessions_start": False,
|
|
97
100
|
"auto_open_browser": True,
|
|
98
101
|
"theme": "dark",
|
|
99
102
|
"ui_last_tab": "chat", # persisted UI preference (hub parity)
|
oracle/services/mobile_api.py
CHANGED
|
@@ -117,7 +117,7 @@ CAPABILITIES = [
|
|
|
117
117
|
"locks_overview", "access_overview", "enforcement_overview",
|
|
118
118
|
"enforcement_clear", "override_policy_overview", "override_policy_clear",
|
|
119
119
|
"builtin", "builtin_tighten",
|
|
120
|
-
"sessions", "sessions_write",
|
|
120
|
+
"sessions", "sessions_write", "sessions_start",
|
|
121
121
|
"now",
|
|
122
122
|
]
|
|
123
123
|
|
|
@@ -154,6 +154,7 @@ _CAPABILITY_SWITCHES = {
|
|
|
154
154
|
"builtin_tighten": "mobile_builtin_tighten",
|
|
155
155
|
"sessions": "mobile_sessions_enabled",
|
|
156
156
|
"sessions_write": "mobile_sessions_write",
|
|
157
|
+
"sessions_start": "mobile_sessions_start",
|
|
157
158
|
}
|
|
158
159
|
|
|
159
160
|
FEED_TYPES = ("notification", "activity", "edit", "session_stat")
|
oracle/services/mobile_fleet.py
CHANGED
|
@@ -34,6 +34,7 @@ Imported for its side effect (route registration) at the bottom of
|
|
|
34
34
|
|
|
35
35
|
from __future__ import annotations
|
|
36
36
|
|
|
37
|
+
import re
|
|
37
38
|
from pathlib import Path
|
|
38
39
|
|
|
39
40
|
from flask import jsonify, request
|
|
@@ -45,6 +46,10 @@ bp = m.bp
|
|
|
45
46
|
#: Row fields that are verbatim transcript text.
|
|
46
47
|
_TRANSCRIPT_FIELDS = ("first_prompt", "last_prompt")
|
|
47
48
|
_STALE_FILTERS = {"hide", "only", "likely", "all"}
|
|
49
|
+
#: A Remote Control session name: shown in claude.ai/code and the Claude app.
|
|
50
|
+
#: Letters, digits, space and ``._-`` only, so nothing from the request is ever
|
|
51
|
+
#: shell syntax; the name also rides in argv, never through a shell.
|
|
52
|
+
_RC_NAME_RE = re.compile(r"^[A-Za-z0-9][A-Za-z0-9 ._-]{0,59}$")
|
|
48
53
|
_RESUME_ELSEWHERE = ("resume opens a terminal on the PC - use C3 Desk or the "
|
|
49
54
|
"Hub there")
|
|
50
55
|
|
|
@@ -550,6 +555,44 @@ def mobile_sessions_mark():
|
|
|
550
555
|
return jsonify(res)
|
|
551
556
|
|
|
552
557
|
|
|
558
|
+
@bp.route("/sessions/start", methods=["POST"])
|
|
559
|
+
def mobile_sessions_start():
|
|
560
|
+
"""Open a terminal on this PC running ``claude --remote-control`` in a project.
|
|
561
|
+
|
|
562
|
+
Body: ``{project, name?}``. The project must be registered. The command is
|
|
563
|
+
fixed: only the validated name reaches argv (as one element, no shell), and
|
|
564
|
+
the working directory is the registered project path. The new session shows
|
|
565
|
+
up in the Claude app / claude.ai/code under the name given (default: the
|
|
566
|
+
project name). Off unless ``mobile_sessions_start`` is on.
|
|
567
|
+
"""
|
|
568
|
+
gate = (m._feature_or_404("sessions") or m._feature_or_404("sessions_write")
|
|
569
|
+
or m._feature_or_404("sessions_start"))
|
|
570
|
+
if gate:
|
|
571
|
+
return gate
|
|
572
|
+
data = request.get_json(silent=True) or {}
|
|
573
|
+
resolved, err = m._project_or_404(str(data.get("project") or ""))
|
|
574
|
+
if err:
|
|
575
|
+
return err
|
|
576
|
+
name = str(data.get("name") or "").strip()
|
|
577
|
+
if name and not _RC_NAME_RE.match(name):
|
|
578
|
+
return jsonify({"error": "name must be 1-60 characters: letters, digits, "
|
|
579
|
+
"space, dot, dash or underscore"}), 400
|
|
580
|
+
if not name:
|
|
581
|
+
# The default comes from the project's own name, which may hold
|
|
582
|
+
# characters the pattern refuses: replace them rather than fail.
|
|
583
|
+
name = re.sub(r"[^A-Za-z0-9 ._-]+", "-", _name_for(resolved)).strip(" .-_")[:60]
|
|
584
|
+
name = name if _RC_NAME_RE.match(name) else "c3-session"
|
|
585
|
+
argv = ["claude", "--remote-control", name]
|
|
586
|
+
from services import terminal_launch
|
|
587
|
+
try:
|
|
588
|
+
terminal_launch.spawn_terminal(str(resolved), argv)
|
|
589
|
+
except Exception as exc:
|
|
590
|
+
return jsonify({"error": f"could not open a terminal on the PC: {exc}"}), 500
|
|
591
|
+
m._gw_audit("mobile.sessions.start", {"name": name})
|
|
592
|
+
return jsonify({"launched": True, "name": name,
|
|
593
|
+
"project": {"name": _name_for(resolved), "path": str(resolved)}})
|
|
594
|
+
|
|
595
|
+
|
|
553
596
|
# ── Now ───────────────────────────────────────────────────
|
|
554
597
|
|
|
555
598
|
@bp.route("/now", methods=["GET"])
|
|
File without changes
|
{code_context_control-2.161.0.dist-info → code_context_control-2.162.0.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{code_context_control-2.161.0.dist-info → code_context_control-2.162.0.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
{code_context_control-2.161.0.dist-info → code_context_control-2.162.0.dist-info}/top_level.txt
RENAMED
|
File without changes
|