webbee 0.7.16__tar.gz → 0.7.18__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {webbee-0.7.16 → webbee-0.7.18}/.github/workflows/os-check.yml +25 -2
- {webbee-0.7.16 → webbee-0.7.18}/.github/workflows/publish.yml +7 -0
- {webbee-0.7.16 → webbee-0.7.18}/CHANGELOG.md +32 -0
- {webbee-0.7.16 → webbee-0.7.18}/PKG-INFO +3 -9
- webbee-0.7.18/ci/field_gate/drivers.py +154 -0
- webbee-0.7.18/ci/field_gate/fixture.py +157 -0
- webbee-0.7.18/ci/field_gate/fixture_long.py +260 -0
- webbee-0.7.18/ci/field_gate/fixture_wait.py +140 -0
- webbee-0.7.18/ci/field_gate/provision_user.py +91 -0
- webbee-0.7.18/ci/field_gate/registry.py +144 -0
- webbee-0.7.18/ci/field_gate/replay.py +76 -0
- webbee-0.7.18/ci/field_gate/run.py +127 -0
- webbee-0.7.18/ci/field_gate/scenarios_account.py +259 -0
- webbee-0.7.18/ci/field_gate/scenarios_code.py +169 -0
- webbee-0.7.18/ci/field_gate/scenarios_contract.py +34 -0
- webbee-0.7.18/ci/field_gate/scenarios_long.py +458 -0
- webbee-0.7.18/ci/field_gate/scenarios_wait.py +209 -0
- webbee-0.7.18/ci/field_gate/test_drivers.py +37 -0
- webbee-0.7.18/ci/field_gate/test_fixture.py +53 -0
- webbee-0.7.18/ci/field_gate/test_fixture_long.py +71 -0
- webbee-0.7.18/ci/field_gate/test_fixture_wait.py +53 -0
- webbee-0.7.18/ci/field_gate/test_registry.py +30 -0
- webbee-0.7.18/ci/field_gate/test_replay.py +35 -0
- webbee-0.7.18/ci/field_gate/wipe.py +49 -0
- webbee-0.7.18/dev-webbee +11 -0
- {webbee-0.7.16 → webbee-0.7.18}/pyproject.toml +8 -15
- webbee-0.7.18/src/webbee/__init__.py +1 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/boot.py +5 -2
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/checkpoints.py +50 -12
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/cli.py +17 -5
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/coding_context.py +1 -1
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/config.py +1 -1
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/frames.py +31 -0
- webbee-0.7.18/src/webbee/intel/__init__.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/intel/query.py +6 -71
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/intel/service.py +21 -138
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/intel/store.py +49 -67
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/pricing_constants.py +3 -3
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/render.py +2 -2
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/repl.py +15 -3
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/session.py +25 -2
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/tools.py +310 -105
- webbee-0.7.18/tests/__init__.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/conftest.py +7 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_audit_2026_07_25_findings.py +0 -77
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_checkpoints.py +55 -1
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_field_test_1113.py +3 -22
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_intel_cache_and_sync_worker.py +5 -8
- webbee-0.7.18/tests/test_intel_no_numpy.py +12 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_intel_query.py +0 -22
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_intel_service.py +0 -66
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_intel_store.py +31 -53
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_marathon.py +89 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_repl.py +33 -1
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_session_review_1030.py +11 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_tools.py +89 -22
- webbee-0.7.16/src/webbee/__init__.py +0 -1
- webbee-0.7.16/src/webbee/intel/vectors.py +0 -95
- webbee-0.7.16/tests/test_intel_no_numpy.py +0 -44
- webbee-0.7.16/tests/test_intel_vectors.py +0 -51
- {webbee-0.7.16 → webbee-0.7.18}/.gitignore +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/LICENSE +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/README.md +0 -0
- {webbee-0.7.16/src/webbee/intel → webbee-0.7.18/ci}/__init__.py +0 -0
- {webbee-0.7.16/tests → webbee-0.7.18/ci/field_gate}/__init__.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/ci/os_check.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/install.sh +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/__main__.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/_launch.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/account.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/active_sessions.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/autoupdate.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/banner_art.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/browser.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/clipboard.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/clipboard_read.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/clipboard_session.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/commands.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/consent.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/details.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/events.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/home.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/home_view.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/http.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/instance_lock.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/intel/graph.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/intel/outline.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/intel/tree.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/intel/watch.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/loop_errors.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/media.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/modals.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/mode_store.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/native_files.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/native_read.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/newtab_mode.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/output_pane.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/queue_panel.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/reflow.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/remote.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/repo.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/selection.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/sessions.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/sizing.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/slots.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/steer.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/stream.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/tab_store.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/tabs.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/thread.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/tier_store.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/todo_panel.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/tokens.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/tui.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/update.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/urlopen.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/wallet.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/src/webbee/worktrees.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_account.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_active_sessions.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_append_file.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_autoupdate.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_checkpoints_nested_1030.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_cli.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_clipboard.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_clipboard_read.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_code_map_fresh.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_coding_context.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_commands.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_config.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_cpc_contract_stable.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_cpc_outline.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_cross_loop_token.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_details.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_events.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_freeze_fix.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_home.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_home_view.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_home_view_mouse.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_inspect_page.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_instance_lock.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_intel_any_folder.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_intel_checksum_tree.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_intel_chunker.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_intel_embed.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_intel_folder_1106.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_intel_graph.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_intel_watch.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_launch.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_loop_errors.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_modals_e2e.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_mode_and_remote_0_6_8.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_mode_store.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_native_files.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_newtab_mode.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_packaging.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_probe_cost.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_queue_manage_0337.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_reflow.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_remote_code_reads.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_render.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_repo.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_resilient_http.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_review_fixes_1030.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_session.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_sessions.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_sizing.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_slots.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_ssh_guard.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_steer.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_stream.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_tab_bar_stability.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_tab_restore_0337.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_tabs.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_terminal_ux_0336.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_thread.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_tier_invalidation.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_tier_store.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_todo_panel.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_tokens.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_tools_eol_cancel_1030.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_tools_vision_websearch.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_tui.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_tui_hardening.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_update.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_update_badge_0340.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_urlopen.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_version.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_version_badge_corner.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_wallet.py +0 -0
- {webbee-0.7.16 → webbee-0.7.18}/tests/test_worktrees.py +0 -0
|
@@ -12,6 +12,15 @@ on:
|
|
|
12
12
|
default: "main"
|
|
13
13
|
push:
|
|
14
14
|
branches: ["os-check"]
|
|
15
|
+
# the release gate: imperal-mcp's release.yml and webbee's publish.yml call this before any PyPI upload
|
|
16
|
+
workflow_call:
|
|
17
|
+
inputs:
|
|
18
|
+
webbee_ref:
|
|
19
|
+
type: string
|
|
20
|
+
default: "main"
|
|
21
|
+
mcp_ref:
|
|
22
|
+
type: string
|
|
23
|
+
default: "main"
|
|
15
24
|
|
|
16
25
|
jobs:
|
|
17
26
|
check:
|
|
@@ -27,11 +36,13 @@ jobs:
|
|
|
27
36
|
steps:
|
|
28
37
|
- uses: actions/checkout@v4
|
|
29
38
|
with:
|
|
39
|
+
repository: imperalcloud/webbee-code
|
|
40
|
+
ref: ${{ inputs.webbee_ref || github.sha }}
|
|
30
41
|
path: webbee
|
|
31
42
|
- uses: actions/checkout@v4
|
|
32
43
|
with:
|
|
33
44
|
repository: imperalcloud/imperal-mcp
|
|
34
|
-
ref: ${{ github.event.inputs.mcp_ref || 'os-check' }}
|
|
45
|
+
ref: ${{ inputs.mcp_ref || github.event.inputs.mcp_ref || 'os-check' }}
|
|
35
46
|
path: mcp
|
|
36
47
|
- uses: actions/setup-python@v5
|
|
37
48
|
with:
|
|
@@ -44,7 +55,7 @@ jobs:
|
|
|
44
55
|
ls wheels
|
|
45
56
|
- name: install (pip) with the test tools
|
|
46
57
|
shell: bash
|
|
47
|
-
run: python -m pip install --find-links wheels "webbee" "imperal-mcp[code]" pytest pytest-asyncio respx
|
|
58
|
+
run: python -m pip install --find-links wheels "webbee" "imperal-mcp[code]" pytest pytest-asyncio respx mcp
|
|
48
59
|
- name: webbee tests that depend on the system
|
|
49
60
|
shell: bash
|
|
50
61
|
working-directory: webbee
|
|
@@ -58,6 +69,18 @@ jobs:
|
|
|
58
69
|
if: ${{ !cancelled() }} # every check runs: one failure never hides the others
|
|
59
70
|
shell: bash
|
|
60
71
|
run: python webbee/ci/os_check.py
|
|
72
|
+
- name: field gate (ICNLI conformance, no account) -- every field-report item against the wheels above
|
|
73
|
+
if: ${{ !cancelled() }} # every check runs: one failure never hides the others
|
|
74
|
+
shell: bash
|
|
75
|
+
working-directory: webbee
|
|
76
|
+
run: python -m ci.field_gate.run --json "../field-gate-${{ matrix.os }}-${{ matrix.python }}.json"
|
|
77
|
+
- name: field gate results
|
|
78
|
+
if: ${{ !cancelled() }}
|
|
79
|
+
uses: actions/upload-artifact@v4
|
|
80
|
+
with:
|
|
81
|
+
name: field-gate-${{ matrix.os }}-${{ matrix.python }}
|
|
82
|
+
path: field-gate-*.json
|
|
83
|
+
if-no-files-found: ignore
|
|
61
84
|
- name: install by pipx
|
|
62
85
|
if: ${{ !cancelled() }} # every check runs: one failure never hides the others
|
|
63
86
|
shell: bash
|
|
@@ -11,7 +11,14 @@ on:
|
|
|
11
11
|
tags: ["v*"]
|
|
12
12
|
|
|
13
13
|
jobs:
|
|
14
|
+
# nothing reaches PyPI before the field gate passes on every system (ICNLI §13.5: verified, not self-declared)
|
|
15
|
+
gate:
|
|
16
|
+
uses: ./.github/workflows/os-check.yml
|
|
17
|
+
with:
|
|
18
|
+
webbee_ref: ${{ github.sha }}
|
|
19
|
+
mcp_ref: main
|
|
14
20
|
publish:
|
|
21
|
+
needs: gate
|
|
15
22
|
runs-on: ubuntu-latest
|
|
16
23
|
permissions:
|
|
17
24
|
contents: write # create the GitHub Release for the tag
|
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.7.18
|
|
4
|
+
|
|
5
|
+
* Needs the kernel of 2026-11-20 (the work that can wait); imperal-mcp 0.9.20 and imperal-sdk 6.7.1 as before.
|
|
6
|
+
* A run says how it ended - an answer, a question to you, or a stop by the kernel - and shows each its own way; a
|
|
7
|
+
headless run prints `end: answer | question | brake` as its last line.
|
|
8
|
+
* A stop is never one line: it shows why in plain words, what is proven, the item the work stands on with what was
|
|
9
|
+
tried there, and what waits on you. A question shows the same facts under its text.
|
|
10
|
+
* The answer that precedes a stop is shown (the interactive terminal skipped it).
|
|
11
|
+
* The result of a write or a command says what snapshot stands behind it: its number and what it does not cover, or
|
|
12
|
+
that there is none and why.
|
|
13
|
+
* A stopped run holds nothing: your next message in the same folder continues the same task.
|
|
14
|
+
|
|
15
|
+
## 0.7.17
|
|
16
|
+
|
|
17
|
+
* Needs imperal-mcp 0.9.20 and imperal-sdk 6.7.1 (the truth architecture, spec 2026-11-14).
|
|
18
|
+
* `webbee --once "task"`: one headless turn -- the result and its events on stdout, an exit code.
|
|
19
|
+
* Tools under the one contract's names (`checkpoint_diff`, `checkpoint_rollback`, `grep_code`, `check_syntax`); `root`
|
|
20
|
+
works for every code tool (a subfolder's own index); a checkpoint belongs to its folder.
|
|
21
|
+
* read_file honours offset/limit on any file; a secret file is shown by its form -- keys with every value masked, key
|
|
22
|
+
material as its line count.
|
|
23
|
+
* grep_code: a bad pattern is a clear error; one local search with imperal-mcp.
|
|
24
|
+
* bash runs in bash where there is one (on Debian/Ubuntu /bin/sh is dash: `${PIPESTATUS[0]}` failed); on Windows
|
|
25
|
+
in Git for Windows' bash when it is installed (never WSL's), else cmd.exe as before.
|
|
26
|
+
* Checkpoints are the files' bytes: no line-ending conversion whatever `core.autocrlf` says (a rolled-back file
|
|
27
|
+
came back with CRLF on Windows).
|
|
28
|
+
* A checkpoint id of digits only (a short commit id with no letter, ~4% of them) is found, never read as cp-N.
|
|
29
|
+
* Lines counted by the SDK (`wc -l`).
|
|
30
|
+
* No embedder on the client (model2vec and numpy left): the vault embeds with one multilingual model.
|
|
31
|
+
* The index cache: one folder per repository (`~/.cache/webbee/index`); the old `~/.cache/webbee/intel` is removed
|
|
32
|
+
once and each repository indexed again once.
|
|
33
|
+
* On exit the code-sync thread stops.
|
|
34
|
+
|
|
3
35
|
## 0.7.16
|
|
4
36
|
|
|
5
37
|
* Needs imperal-mcp 0.9.19 (Windows sign-in fixes).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: webbee
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.18
|
|
4
4
|
Summary: Webbee 🐝 — the Imperal Cloud coding agent in your terminal
|
|
5
5
|
Project-URL: Homepage, https://imperal.io
|
|
6
6
|
Project-URL: Documentation, https://docs.imperal.io
|
|
@@ -31,10 +31,8 @@ Requires-Python: >=3.7
|
|
|
31
31
|
Requires-Dist: asyncssh>=2.14; python_version >= '3.10'
|
|
32
32
|
Requires-Dist: httpx-sse>=0.4; python_version >= '3.10'
|
|
33
33
|
Requires-Dist: httpx>=0.27; python_version >= '3.10'
|
|
34
|
-
Requires-Dist: imperal-mcp>=0.9.
|
|
35
|
-
Requires-Dist: imperal-sdk[universal-index]>=6.
|
|
36
|
-
Requires-Dist: model2vec>=0.8.2; python_version >= '3.10' and (sys_platform != 'darwin' or platform_machine != 'x86_64' or python_version < '3.13')
|
|
37
|
-
Requires-Dist: numpy>=2; python_version >= '3.10' and (sys_platform != 'darwin' or platform_machine != 'x86_64' or python_version < '3.13')
|
|
34
|
+
Requires-Dist: imperal-mcp>=0.9.20; python_version >= '3.10'
|
|
35
|
+
Requires-Dist: imperal-sdk[universal-index]>=6.7.1; python_version >= '3.10'
|
|
38
36
|
Requires-Dist: prompt-toolkit>=3; python_version >= '3.10'
|
|
39
37
|
Requires-Dist: rich>=13.7; python_version >= '3.10'
|
|
40
38
|
Requires-Dist: tree-sitter-javascript>=0.23; python_version >= '3.10' and (sys_platform != 'darwin' or platform_machine != 'x86_64' or python_version < '3.13')
|
|
@@ -46,11 +44,7 @@ Requires-Dist: watchfiles>=0.24; python_version >= '3.10' and (sys_platform != '
|
|
|
46
44
|
Provides-Extra: intel
|
|
47
45
|
Provides-Extra: intel-embed
|
|
48
46
|
Provides-Extra: intel-embed-faiss
|
|
49
|
-
Requires-Dist: faiss-cpu>=1.14.3; extra == 'intel-embed-faiss'
|
|
50
|
-
Requires-Dist: numpy>=2; extra == 'intel-embed-faiss'
|
|
51
47
|
Provides-Extra: intel-embed-onnx
|
|
52
|
-
Requires-Dist: fastembed>=0.8.0; extra == 'intel-embed-onnx'
|
|
53
|
-
Requires-Dist: numpy>=2; extra == 'intel-embed-onnx'
|
|
54
48
|
Description-Content-Type: text/markdown
|
|
55
49
|
|
|
56
50
|
# Webbee 🐝 — The Open-Source ICNLI Coding Agent
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
"""The three doors the field gate goes through -- always the installed products, never a re-assembly of their parts.
|
|
2
|
+
|
|
3
|
+
- McpDriver: launches the installed `imperal-mcp` console script and talks MCP over stdio, as Claude Code does.
|
|
4
|
+
- WebbeeDriver: webbee's own workspace boot (boot.boot_workspace) and executor (LocalToolExecutor), as session.py
|
|
5
|
+
builds them for every turn.
|
|
6
|
+
- hook(): `imperal-mcp hook <event>` with the shell's JSON on stdin, as Claude Code runs its hooks.
|
|
7
|
+
|
|
8
|
+
Each driver gets its own HOME, so a run never reads the machine's caches, credentials or spool.
|
|
9
|
+
"""
|
|
10
|
+
from __future__ import annotations
|
|
11
|
+
|
|
12
|
+
import asyncio
|
|
13
|
+
import json
|
|
14
|
+
import os
|
|
15
|
+
import shutil
|
|
16
|
+
import subprocess
|
|
17
|
+
from contextlib import AsyncExitStack
|
|
18
|
+
from pathlib import Path
|
|
19
|
+
|
|
20
|
+
CALL_TIMEOUT_S = 120
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class GateError(RuntimeError):
|
|
24
|
+
"""A driver could not reach the product: the gate stops loudly, never records it as a pass."""
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def _home_env(home: Path, token: str | None = None) -> dict:
|
|
28
|
+
home.mkdir(parents=True, exist_ok=True)
|
|
29
|
+
env = {**os.environ, "HOME": str(home), "USERPROFILE": str(home), "WEBBEE_NO_AUTOUPDATE": "1",
|
|
30
|
+
"IMPERAL_INTEL_CACHE_DIR": str(home / ".cache" / "webbee" / "intel"), "PYTHONUTF8": "1"}
|
|
31
|
+
env.pop("IMPERAL_TOKEN", None)
|
|
32
|
+
if token:
|
|
33
|
+
env["IMPERAL_TOKEN"] = token
|
|
34
|
+
return env
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def webbee_argv() -> list:
|
|
38
|
+
"""How the gate starts the client: the ``webbee`` package THIS Python imports, as a module. The console script
|
|
39
|
+
cannot be used for it: an installer writes it with ``python -E``, which ignores PYTHONPATH -- so a gate run from
|
|
40
|
+
a source tree started the INSTALLED client and judged that one (found 2026-11-20: every wait scenario of the
|
|
41
|
+
branch read "end: not said", the released client knew no such line)."""
|
|
42
|
+
import sys
|
|
43
|
+
return [sys.executable, "-m", "webbee"]
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def console(name: str) -> str:
|
|
47
|
+
"""The console script of the Python running the gate first -- the packages under test -- then PATH (2026-11-15:
|
|
48
|
+
PATH found the user's own ~/.local/bin/imperal-mcp, a released version, and the gate judged that one)."""
|
|
49
|
+
import sys
|
|
50
|
+
here = Path(sys.executable).parent
|
|
51
|
+
for cand in (here / name, here / f"{name}.exe", here / "Scripts" / f"{name}.exe"):
|
|
52
|
+
if cand.is_file():
|
|
53
|
+
return str(cand)
|
|
54
|
+
found = shutil.which(name)
|
|
55
|
+
if not found:
|
|
56
|
+
raise GateError(f"the installed `{name}` console script is not on PATH")
|
|
57
|
+
return found
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
class McpDriver:
|
|
61
|
+
def __init__(self, root: Path, home: Path, token: str | None = None):
|
|
62
|
+
self.root, self.home, self.token = Path(root), Path(home), token
|
|
63
|
+
self._stack: AsyncExitStack | None = None
|
|
64
|
+
self._session = None
|
|
65
|
+
|
|
66
|
+
async def __aenter__(self) -> "McpDriver":
|
|
67
|
+
from mcp import ClientSession, StdioServerParameters
|
|
68
|
+
from mcp.client.stdio import stdio_client
|
|
69
|
+
params = StdioServerParameters(command=console("imperal-mcp"), args=[], cwd=str(self.root),
|
|
70
|
+
env=_home_env(self.home, self.token))
|
|
71
|
+
self._stack = AsyncExitStack()
|
|
72
|
+
try:
|
|
73
|
+
read, write = await self._stack.enter_async_context(stdio_client(params))
|
|
74
|
+
self._session = await self._stack.enter_async_context(ClientSession(read, write))
|
|
75
|
+
await asyncio.wait_for(self._session.initialize(), CALL_TIMEOUT_S)
|
|
76
|
+
except Exception as exc:
|
|
77
|
+
await self._stack.aclose()
|
|
78
|
+
raise GateError(f"imperal-mcp did not start over stdio: {type(exc).__name__}: {exc}") from exc
|
|
79
|
+
return self
|
|
80
|
+
|
|
81
|
+
async def __aexit__(self, *exc) -> None:
|
|
82
|
+
if self._stack is not None:
|
|
83
|
+
await self._stack.aclose()
|
|
84
|
+
|
|
85
|
+
async def list_tools(self) -> list[str]:
|
|
86
|
+
res = await asyncio.wait_for(self._session.list_tools(), CALL_TIMEOUT_S)
|
|
87
|
+
return [t.name for t in res.tools]
|
|
88
|
+
|
|
89
|
+
async def call(self, tool: str, args: dict) -> dict:
|
|
90
|
+
res = await asyncio.wait_for(self._session.call_tool(tool, args), CALL_TIMEOUT_S)
|
|
91
|
+
text = "\n".join(getattr(c, "text", "") for c in res.content)
|
|
92
|
+
data = None
|
|
93
|
+
try:
|
|
94
|
+
data = json.loads(text)
|
|
95
|
+
except (ValueError, TypeError):
|
|
96
|
+
pass
|
|
97
|
+
return {"ok": not res.isError, "text": text, "data": data if isinstance(data, dict) else None}
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
class WebbeeDriver:
|
|
101
|
+
def __init__(self, root: Path, home: Path):
|
|
102
|
+
self.root, self.home = Path(root), Path(home)
|
|
103
|
+
self._bundle: dict | None = None
|
|
104
|
+
self._executor = None
|
|
105
|
+
self._saved_env: dict | None = None
|
|
106
|
+
|
|
107
|
+
async def __aenter__(self) -> "WebbeeDriver":
|
|
108
|
+
self._saved_env = dict(os.environ)
|
|
109
|
+
env = _home_env(self.home) # built from the current environment BEFORE it is replaced
|
|
110
|
+
os.environ.clear()
|
|
111
|
+
os.environ.update(env)
|
|
112
|
+
from imperal_mcp import auth
|
|
113
|
+
from webbee import boot
|
|
114
|
+
from webbee.config import Config
|
|
115
|
+
from webbee.session import AgentSession
|
|
116
|
+
from webbee.tokens import make_token_provider
|
|
117
|
+
from webbee.tools import LocalToolExecutor
|
|
118
|
+
cfg = Config.from_env()
|
|
119
|
+
self._bundle = await boot.boot_workspace(cfg, str(self.root), None, None)
|
|
120
|
+
# as session.py builds it for every turn: the same intel, shadow and cloud client (the vault graph needs it)
|
|
121
|
+
session = AgentSession(cfg, make_token_provider(cfg, auth), str(self.root), "default",
|
|
122
|
+
intel=self._bundle["intel"], shadow=self._bundle["shadow"])
|
|
123
|
+
self._executor = LocalToolExecutor(str(self.root), indexer=self._bundle["intel"],
|
|
124
|
+
shadow=self._bundle["shadow"],
|
|
125
|
+
client_factory=session._file_client_factory())
|
|
126
|
+
return self
|
|
127
|
+
|
|
128
|
+
async def __aexit__(self, *exc) -> None:
|
|
129
|
+
task = (self._bundle or {}).get("watcher_task")
|
|
130
|
+
if task is not None:
|
|
131
|
+
task.cancel()
|
|
132
|
+
intel = (self._bundle or {}).get("intel")
|
|
133
|
+
if intel is not None and hasattr(intel, "close"):
|
|
134
|
+
# as webbee quits: its code sync ends while this loop still runs (a sync left behind was cancelled
|
|
135
|
+
# mid-request and printed a traceback after the last scenario, 2026-11-15)
|
|
136
|
+
await asyncio.to_thread(intel.close)
|
|
137
|
+
if self._saved_env is not None:
|
|
138
|
+
os.environ.clear()
|
|
139
|
+
os.environ.update(self._saved_env)
|
|
140
|
+
|
|
141
|
+
async def run(self, tool: str, args: dict) -> dict:
|
|
142
|
+
return await asyncio.wait_for(asyncio.to_thread(self._executor.run, tool, args), CALL_TIMEOUT_S)
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
def hook(event: str, payload: dict, home: Path, token: str | None = None) -> dict:
|
|
146
|
+
proc = subprocess.run([console("imperal-mcp"), "hook", event], input=json.dumps(payload),
|
|
147
|
+
capture_output=True, text=True, timeout=CALL_TIMEOUT_S,
|
|
148
|
+
cwd=payload.get("cwd") or None, env=_home_env(Path(home), token))
|
|
149
|
+
out = None
|
|
150
|
+
try:
|
|
151
|
+
out = json.loads(proc.stdout) if proc.stdout.strip() else None
|
|
152
|
+
except ValueError:
|
|
153
|
+
pass
|
|
154
|
+
return {"code": proc.returncode, "stdout": proc.stdout, "stderr": proc.stderr, "json": out}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
"""The field-gate workspace: a folder of git repos shaped like the ones the field tests broke on, and the truth about it.
|
|
2
|
+
|
|
3
|
+
Ignat's wpanel (reports 2026-11-13/14): the root is no repo, nested repos under it, one repo name prefixing another
|
|
4
|
+
(`wpanel/` duplicates), a package re-export, Russian docstrings, TS arrow functions inside a component, a route under a
|
|
5
|
+
project's own decorator, files with and without a final newline, CRLF, a big file, a secret file and a token in a git
|
|
6
|
+
remote. The truth is computed here from bytes and git, once; a scenario compares a product's answer with it and never
|
|
7
|
+
recomputes anything a product computes.
|
|
8
|
+
"""
|
|
9
|
+
from __future__ import annotations
|
|
10
|
+
|
|
11
|
+
import os
|
|
12
|
+
import subprocess
|
|
13
|
+
from collections.abc import Mapping
|
|
14
|
+
from dataclasses import dataclass, field
|
|
15
|
+
from pathlib import Path
|
|
16
|
+
|
|
17
|
+
# planted fakes: a scenario fails if any of them shows up in a tool's output
|
|
18
|
+
FAKE_ENV_TOKEN = "gate_fake_7f3a9c"
|
|
19
|
+
FAKE_REMOTE_TOKEN = "ghp_FAKEgate000000000000000000000000000"
|
|
20
|
+
|
|
21
|
+
_GIT_ENV = {
|
|
22
|
+
"GIT_AUTHOR_NAME": "Field Gate", "GIT_AUTHOR_EMAIL": "gate@imperal.invalid",
|
|
23
|
+
"GIT_COMMITTER_NAME": "Field Gate", "GIT_COMMITTER_EMAIL": "gate@imperal.invalid",
|
|
24
|
+
"GIT_AUTHOR_DATE": "2026-11-14T12:00:00+00:00", "GIT_COMMITTER_DATE": "2026-11-14T12:00:00+00:00",
|
|
25
|
+
"GIT_CONFIG_GLOBAL": os.devnull, "GIT_CONFIG_NOSYSTEM": "1",
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
@dataclass(frozen=True)
|
|
30
|
+
class Place:
|
|
31
|
+
path: str # relative to the fixture root
|
|
32
|
+
symbol: str = ""
|
|
33
|
+
text: str = ""
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
@dataclass(frozen=True)
|
|
37
|
+
class Reexport:
|
|
38
|
+
symbol: str
|
|
39
|
+
defined_path: str
|
|
40
|
+
reexport_path: str
|
|
41
|
+
caller_path: str
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
@dataclass
|
|
45
|
+
class Truth:
|
|
46
|
+
lines: dict[str, int] = field(default_factory=dict) # root-relative path -> lines as an editor counts
|
|
47
|
+
git_files: dict[str, list[str]] = field(default_factory=dict)
|
|
48
|
+
heads: dict[str, str] = field(default_factory=dict)
|
|
49
|
+
secrets: list[str] = field(default_factory=list)
|
|
50
|
+
reexport: Reexport | None = None
|
|
51
|
+
ru_doc: Place | None = None
|
|
52
|
+
nested_ts: Place | None = None
|
|
53
|
+
door_route: Place | None = None
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
@dataclass
|
|
57
|
+
class Fixture:
|
|
58
|
+
root: Path
|
|
59
|
+
repos: dict[str, Path]
|
|
60
|
+
truth: Truth
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
def _lines_of(data: bytes) -> int:
|
|
64
|
+
"""Lines as an editor counts them: `wc -l` plus one for a last line with no newline."""
|
|
65
|
+
return data.count(b"\n") + (1 if data and not data.endswith(b"\n") else 0)
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
def _write(path: Path, data: str | bytes) -> None:
|
|
69
|
+
path.parent.mkdir(parents=True, exist_ok=True)
|
|
70
|
+
path.write_bytes(data if isinstance(data, bytes) else data.encode("utf-8"))
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
def _git(repo: Path, *args: str) -> str:
|
|
74
|
+
return subprocess.run(["git", "-C", str(repo), *args], capture_output=True, text=True, check=True,
|
|
75
|
+
env={**os.environ, **_GIT_ENV}).stdout.strip()
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
def _commit_repo(repo: Path, files: Mapping[str, str | bytes], remote: str = "") -> None:
|
|
79
|
+
for rel, data in files.items():
|
|
80
|
+
_write(repo / rel, data)
|
|
81
|
+
_git(repo, "init", "-q", "-b", "main")
|
|
82
|
+
_git(repo, "config", "core.autocrlf", "false")
|
|
83
|
+
if remote:
|
|
84
|
+
_git(repo, "remote", "add", "origin", remote)
|
|
85
|
+
_git(repo, "add", "-A")
|
|
86
|
+
_git(repo, "commit", "-q", "-m", "fixture")
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
_RU_DOC = "Сверяет права доступа сессии с версией политики и сохраняет сессию."
|
|
90
|
+
|
|
91
|
+
_APP = {
|
|
92
|
+
"app/__init__.py": "",
|
|
93
|
+
"app/use.py": "from lib_sdk import Emitter\n\n\ndef run():\n return Emitter().emit(\"ready\")\n",
|
|
94
|
+
"web/Form.tsx": (
|
|
95
|
+
"export function Form() {\n"
|
|
96
|
+
" const handleSubmit = (event: Event) => {\n"
|
|
97
|
+
" event.preventDefault();\n"
|
|
98
|
+
" };\n"
|
|
99
|
+
" return <form onSubmit={handleSubmit} />;\n"
|
|
100
|
+
"}\n"
|
|
101
|
+
),
|
|
102
|
+
"mid.py": "".join(f"value_{i} = {i}\n" for i in range(1, 601)),
|
|
103
|
+
"no_nl.py": "a = 1\nb = 2",
|
|
104
|
+
"crlf.py": b"a = 1\r\nb = 2\r\n",
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
_GATEWAY = {
|
|
108
|
+
"gateway/__init__.py": "",
|
|
109
|
+
"gateway/authz.py": (
|
|
110
|
+
"def reconcile_authz(session, policy_version):\n"
|
|
111
|
+
f" \"\"\"{_RU_DOC}\"\"\"\n"
|
|
112
|
+
" if session.get(\"policy_version\") == policy_version:\n"
|
|
113
|
+
" session[\"authz\"] = True\n"
|
|
114
|
+
" return session\n"
|
|
115
|
+
),
|
|
116
|
+
"gateway/doors.py": (
|
|
117
|
+
"def door(path):\n"
|
|
118
|
+
" def wrap(fn):\n"
|
|
119
|
+
" fn.route = path\n"
|
|
120
|
+
" return fn\n"
|
|
121
|
+
" return wrap\n"
|
|
122
|
+
),
|
|
123
|
+
"gateway/routes.py": "from gateway.doors import door\n\n\n@door(\"/v1/x\")\nasync def get_x():\n return {\"x\": 1}\n",
|
|
124
|
+
"big.py": "".join(f"row_{i} = {i}\n" for i in range(1, 6002)),
|
|
125
|
+
".gitignore": ".env\n",
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
_LIB = {
|
|
129
|
+
"lib_sdk/__init__.py": "from .emit import Emitter\n\n__all__ = [\"Emitter\"]\n",
|
|
130
|
+
"lib_sdk/emit.py": "class Emitter:\n def emit(self, event):\n return event\n",
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
def build_fixture(dest: Path) -> Fixture:
|
|
135
|
+
root = Path(dest)
|
|
136
|
+
root.mkdir(parents=True, exist_ok=False)
|
|
137
|
+
_write(root / "README.txt", "A folder of repositories; the folder itself is no repository.\n")
|
|
138
|
+
repos = {"app": root / "core" / "app", "app-gateway": root / "core" / "app-gateway", "lib-sdk": root / "lib-sdk"}
|
|
139
|
+
_commit_repo(repos["app"], _APP)
|
|
140
|
+
_commit_repo(repos["app-gateway"], _GATEWAY,
|
|
141
|
+
remote=f"https://gate:{FAKE_REMOTE_TOKEN}@example.invalid/app-gateway.git")
|
|
142
|
+
_write(repos["app-gateway"] / ".env", f"TOKEN={FAKE_ENV_TOKEN}\n") # on disk, ignored by git
|
|
143
|
+
_commit_repo(repos["lib-sdk"], _LIB)
|
|
144
|
+
|
|
145
|
+
truth = Truth(secrets=[FAKE_ENV_TOKEN, FAKE_REMOTE_TOKEN])
|
|
146
|
+
for name, repo in repos.items():
|
|
147
|
+
files = sorted(_git(repo, "ls-files").split())
|
|
148
|
+
truth.git_files[name] = files
|
|
149
|
+
truth.heads[name] = _git(repo, "rev-parse", "HEAD")
|
|
150
|
+
for rel in files:
|
|
151
|
+
full = repo / rel
|
|
152
|
+
truth.lines[full.relative_to(root).as_posix()] = _lines_of(full.read_bytes())
|
|
153
|
+
truth.reexport = Reexport("Emitter", "lib-sdk/lib_sdk/emit.py", "lib-sdk/lib_sdk/__init__.py", "core/app/app/use.py")
|
|
154
|
+
truth.ru_doc = Place("core/app-gateway/gateway/authz.py", "reconcile_authz", _RU_DOC)
|
|
155
|
+
truth.nested_ts = Place("core/app/web/Form.tsx", "handleSubmit")
|
|
156
|
+
truth.door_route = Place("core/app-gateway/gateway/routes.py", "get_x", "/v1/x")
|
|
157
|
+
return Fixture(root=root, repos=repos, truth=truth)
|