one-agent 0.1.46__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.
- one_agent-0.1.46/CHANGELOG.md +241 -0
- one_agent-0.1.46/CODE_OF_CONDUCT.md +72 -0
- one_agent-0.1.46/CONTRIBUTING.md +141 -0
- one_agent-0.1.46/LICENSE +21 -0
- one_agent-0.1.46/MANIFEST.in +11 -0
- one_agent-0.1.46/PKG-INFO +510 -0
- one_agent-0.1.46/README.md +468 -0
- one_agent-0.1.46/SECURITY.md +90 -0
- one_agent-0.1.46/docs/EXTENSIONS.md +219 -0
- one_agent-0.1.46/docs/RELEASE_CHECKLIST.md +119 -0
- one_agent-0.1.46/one/__init__.py +22 -0
- one_agent-0.1.46/one/__main__.py +6 -0
- one_agent-0.1.46/one/cli/__init__.py +0 -0
- one_agent-0.1.46/one/cli/args.py +313 -0
- one_agent-0.1.46/one/cli/main.py +557 -0
- one_agent-0.1.46/one/config.py +119 -0
- one_agent-0.1.46/one/core/__init__.py +18 -0
- one_agent-0.1.46/one/core/agent_session.py +3573 -0
- one_agent-0.1.46/one/core/agent_session_runtime.py +226 -0
- one_agent-0.1.46/one/core/attachments.py +610 -0
- one_agent-0.1.46/one/core/auth_storage.py +195 -0
- one_agent-0.1.46/one/core/clipboard_image.py +268 -0
- one_agent-0.1.46/one/core/event_bus.py +25 -0
- one_agent-0.1.46/one/core/model_registry.py +459 -0
- one_agent-0.1.46/one/core/oauth.py +414 -0
- one_agent-0.1.46/one/core/persistence.py +169 -0
- one_agent-0.1.46/one/core/provider_login.py +254 -0
- one_agent-0.1.46/one/core/sdk.py +96 -0
- one_agent-0.1.46/one/core/session_manager.py +710 -0
- one_agent-0.1.46/one/core/settings_manager.py +483 -0
- one_agent-0.1.46/one/core/tool_output_pruning.py +78 -0
- one_agent-0.1.46/one/core/types.py +43 -0
- one_agent-0.1.46/one/extensions/__init__.py +0 -0
- one_agent-0.1.46/one/extensions/runtime.py +21 -0
- one_agent-0.1.46/one/mcp/__init__.py +3 -0
- one_agent-0.1.46/one/mcp/client.py +676 -0
- one_agent-0.1.46/one/modes/__init__.py +7 -0
- one_agent-0.1.46/one/modes/interactive_mode.py +1381 -0
- one_agent-0.1.46/one/modes/jsonl.py +28 -0
- one_agent-0.1.46/one/modes/print_mode.py +39 -0
- one_agent-0.1.46/one/modes/rpc_mode.py +505 -0
- one_agent-0.1.46/one/modes/rpc_types.py +9 -0
- one_agent-0.1.46/one/modes/run_mode.py +174 -0
- one_agent-0.1.46/one/modes/tui_mode.py +3639 -0
- one_agent-0.1.46/one/providers/__init__.py +3 -0
- one_agent-0.1.46/one/providers/anthropic.py +330 -0
- one_agent-0.1.46/one/providers/base.py +56 -0
- one_agent-0.1.46/one/providers/codex_responses.py +455 -0
- one_agent-0.1.46/one/providers/gemini.py +259 -0
- one_agent-0.1.46/one/providers/ollama.py +143 -0
- one_agent-0.1.46/one/providers/openai_compatible.py +376 -0
- one_agent-0.1.46/one/providers/registry.py +59 -0
- one_agent-0.1.46/one/py.typed +0 -0
- one_agent-0.1.46/one/resources/__init__.py +3 -0
- one_agent-0.1.46/one/resources/extension_runtime.py +351 -0
- one_agent-0.1.46/one/resources/resource_loader.py +630 -0
- one_agent-0.1.46/one/tools/__init__.py +3 -0
- one_agent-0.1.46/one/tools/apply_patch.py +958 -0
- one_agent-0.1.46/one/tools/ask_user.py +7 -0
- one_agent-0.1.46/one/tools/bash.py +154 -0
- one_agent-0.1.46/one/tools/common.py +134 -0
- one_agent-0.1.46/one/tools/edit.py +99 -0
- one_agent-0.1.46/one/tools/find.py +11 -0
- one_agent-0.1.46/one/tools/finish.py +18 -0
- one_agent-0.1.46/one/tools/grep.py +24 -0
- one_agent-0.1.46/one/tools/index.py +65 -0
- one_agent-0.1.46/one/tools/ls.py +16 -0
- one_agent-0.1.46/one/tools/plan.py +16 -0
- one_agent-0.1.46/one/tools/read.py +47 -0
- one_agent-0.1.46/one/tools/read_image.py +87 -0
- one_agent-0.1.46/one/tools/spawn_subagent.py +7 -0
- one_agent-0.1.46/one/tools/write.py +13 -0
- one_agent-0.1.46/one_agent.egg-info/PKG-INFO +510 -0
- one_agent-0.1.46/one_agent.egg-info/SOURCES.txt +149 -0
- one_agent-0.1.46/one_agent.egg-info/dependency_links.txt +1 -0
- one_agent-0.1.46/one_agent.egg-info/entry_points.txt +2 -0
- one_agent-0.1.46/one_agent.egg-info/requires.txt +15 -0
- one_agent-0.1.46/one_agent.egg-info/top_level.txt +1 -0
- one_agent-0.1.46/pyproject.toml +100 -0
- one_agent-0.1.46/scripts/install.sh +47 -0
- one_agent-0.1.46/setup.cfg +4 -0
- one_agent-0.1.46/tests/test_agent_retry_abort.py +167 -0
- one_agent-0.1.46/tests/test_agent_steering.py +281 -0
- one_agent-0.1.46/tests/test_agent_timeouts_limits.py +222 -0
- one_agent-0.1.46/tests/test_agent_tool_calls.py +782 -0
- one_agent-0.1.46/tests/test_agent_tool_parsing.py +288 -0
- one_agent-0.1.46/tests/test_apply_patch.py +1492 -0
- one_agent-0.1.46/tests/test_approval.py +254 -0
- one_agent-0.1.46/tests/test_ask_user.py +232 -0
- one_agent-0.1.46/tests/test_auth_and_cli.py +565 -0
- one_agent-0.1.46/tests/test_auth_precedence.py +163 -0
- one_agent-0.1.46/tests/test_budget.py +184 -0
- one_agent-0.1.46/tests/test_capability_error_policy.py +658 -0
- one_agent-0.1.46/tests/test_clipboard_image.py +305 -0
- one_agent-0.1.46/tests/test_compaction.py +724 -0
- one_agent-0.1.46/tests/test_complete_credential_removal.py +604 -0
- one_agent-0.1.46/tests/test_config_paths.py +453 -0
- one_agent-0.1.46/tests/test_cross_platform_smoke.py +335 -0
- one_agent-0.1.46/tests/test_diagnostic_findings.py +84 -0
- one_agent-0.1.46/tests/test_diagnostic_runner.py +402 -0
- one_agent-0.1.46/tests/test_diagnostic_workload.py +457 -0
- one_agent-0.1.46/tests/test_durable_evidence.py +157 -0
- one_agent-0.1.46/tests/test_event_snapshots.py +810 -0
- one_agent-0.1.46/tests/test_extension_runtime.py +790 -0
- one_agent-0.1.46/tests/test_extension_ui_hooks.py +51 -0
- one_agent-0.1.46/tests/test_extra_providers.py +82 -0
- one_agent-0.1.46/tests/test_frontmatter_parser.py +93 -0
- one_agent-0.1.46/tests/test_headless_e2e.py +357 -0
- one_agent-0.1.46/tests/test_image_attachments.py +984 -0
- one_agent-0.1.46/tests/test_image_cli_rpc.py +682 -0
- one_agent-0.1.46/tests/test_intake.py +133 -0
- one_agent-0.1.46/tests/test_interactive_mode.py +1125 -0
- one_agent-0.1.46/tests/test_login_validation.py +799 -0
- one_agent-0.1.46/tests/test_mcp.py +945 -0
- one_agent-0.1.46/tests/test_mcp_shutdown.py +313 -0
- one_agent-0.1.46/tests/test_oauth.py +1207 -0
- one_agent-0.1.46/tests/test_oauth_production.py +174 -0
- one_agent-0.1.46/tests/test_ollama_provider.py +73 -0
- one_agent-0.1.46/tests/test_persistence.py +951 -0
- one_agent-0.1.46/tests/test_plan_tool.py +357 -0
- one_agent-0.1.46/tests/test_provider_payloads.py +639 -0
- one_agent-0.1.46/tests/test_provider_timeout_regression.py +593 -0
- one_agent-0.1.46/tests/test_providers.py +844 -0
- one_agent-0.1.46/tests/test_read_image_tool.py +295 -0
- one_agent-0.1.46/tests/test_resource_loader.py +216 -0
- one_agent-0.1.46/tests/test_rpc_mode.py +1049 -0
- one_agent-0.1.46/tests/test_rpc_snapshots.py +280 -0
- one_agent-0.1.46/tests/test_run_mode.py +322 -0
- one_agent-0.1.46/tests/test_sdk_smoke.py +33 -0
- one_agent-0.1.46/tests/test_session_branching_export.py +224 -0
- one_agent-0.1.46/tests/test_session_manager.py +245 -0
- one_agent-0.1.46/tests/test_settings.py +436 -0
- one_agent-0.1.46/tests/test_skills.py +1213 -0
- one_agent-0.1.46/tests/test_spawn_subagent_errors.py +542 -0
- one_agent-0.1.46/tests/test_steering_mode_queue.py +125 -0
- one_agent-0.1.46/tests/test_stream_suppression.py +302 -0
- one_agent-0.1.46/tests/test_subagents.py +737 -0
- one_agent-0.1.46/tests/test_system_prompt.py +147 -0
- one_agent-0.1.46/tests/test_thinking_levels.py +74 -0
- one_agent-0.1.46/tests/test_tool_output_pruning.py +190 -0
- one_agent-0.1.46/tests/test_tools.py +511 -0
- one_agent-0.1.46/tests/test_tui_commands.py +1384 -0
- one_agent-0.1.46/tests/test_tui_cooperation.py +177 -0
- one_agent-0.1.46/tests/test_tui_image_input.py +265 -0
- one_agent-0.1.46/tests/test_tui_input.py +688 -0
- one_agent-0.1.46/tests/test_tui_navigation.py +500 -0
- one_agent-0.1.46/tests/test_tui_rendering.py +1191 -0
- one_agent-0.1.46/tests/test_tui_retry.py +414 -0
- one_agent-0.1.46/tests/test_tui_snapshots.py +353 -0
- one_agent-0.1.46/tests/test_tui_streaming.py +1576 -0
- one_agent-0.1.46/tests/test_unlimited_steps.py +312 -0
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html)
|
|
7
|
+
pre-1.0 (breaking changes may occur in 0.x releases).
|
|
8
|
+
|
|
9
|
+
## Unreleased
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- **MCP disable persistence** — `/mcp disable <name>` now saves `enabled: false`,
|
|
14
|
+
including unavailable servers with no live tools, until `/mcp enable <name>`.
|
|
15
|
+
- **TUI MCP availability markers** — enabled MCP servers in the sidebar now
|
|
16
|
+
display `[ok]` when running normally and `[!]` when unavailable or retrying.
|
|
17
|
+
- **MCP recovery** — configured stdio servers can opt into delayed automatic
|
|
18
|
+
restart after an unexpected exit or stdout EOF, while streamable HTTP servers
|
|
19
|
+
now recover failed transport/protocol connections by default (`restart: false`
|
|
20
|
+
opts out). Failed tools are removed from the live agent catalog immediately;
|
|
21
|
+
retries, exhaustion policy, and runtime status are configurable without
|
|
22
|
+
persisting a runtime disable. Interrupted tool calls are not replayed.
|
|
23
|
+
- **Unified TUI and interactive details rendering** — completed reasoning is
|
|
24
|
+
styled as italic `Thought:` content, tool and MCP status lines report their
|
|
25
|
+
actual effective timeout, and `/details-show` consistently controls detailed
|
|
26
|
+
result bodies while preserving visible status lines.
|
|
27
|
+
- **README mode documentation** — reorganized onboarding and added an accurate
|
|
28
|
+
mode/automation reference distinguishing TUI, one-shot text/JSON, JSON-RPC,
|
|
29
|
+
and `one run`.
|
|
30
|
+
- **Complexity-aware planning policy** — plan-tool usage is limited to explicit
|
|
31
|
+
or genuinely complex tasks; simple tasks skip planning, and approval prompts
|
|
32
|
+
occur only when cooperation is enabled.
|
|
33
|
+
|
|
34
|
+
### Fixed
|
|
35
|
+
|
|
36
|
+
- **TUI session selection** — numbered `/sessions <n>` selections now resolve
|
|
37
|
+
against the most recently displayed list, rather than a newly mtime-sorted
|
|
38
|
+
scan; stale listed sessions direct users to rerun `/sessions`.
|
|
39
|
+
- **TUI session loading** — persisted aborted requests are now labeled as
|
|
40
|
+
historical status after `/sessions` reload, while their durable session
|
|
41
|
+
history is retained.
|
|
42
|
+
- **TUI session switching** — queued output from a replaced session is discarded
|
|
43
|
+
before the loaded transcript is rendered.
|
|
44
|
+
- **ChatGPT/Codex compaction** — Responses API calls always use required SSE
|
|
45
|
+
streaming, including non-live summarization, without emitting live TUI deltas.
|
|
46
|
+
- **Cooperation persistence** — TUI and interactive cooperation commands and
|
|
47
|
+
shortcuts now save their approval setting for subsequent sessions.
|
|
48
|
+
- **Streaming provider timeouts** — `providers.timeoutSec` now measures idle
|
|
49
|
+
time between meaningful content or reasoning tokens, allowing active streams
|
|
50
|
+
to continue past the configured interval while retaining finite transport
|
|
51
|
+
safeguards. Non-streaming requests retain their absolute deadline.
|
|
52
|
+
- **Reasoning-only first responses** — tool-enabled turns now make one bounded
|
|
53
|
+
strict JSON-tool-call recovery request when a provider emits display-only
|
|
54
|
+
reasoning with empty assistant content, without treating reasoning as actions.
|
|
55
|
+
- **Post-tool format repair** — each completed non-terminal tool now restores
|
|
56
|
+
one bounded JSON-repair opportunity, allowing a later malformed response to
|
|
57
|
+
recover into `finish` without bypassing tool-step, abort, or budget limits.
|
|
58
|
+
- **Malformed tool-output recovery** — strict JSON repair after tool outputs
|
|
59
|
+
preserves untrusted provider-view boundaries, while OpenAI-compatible
|
|
60
|
+
reasoning remains separate from parseable content.
|
|
61
|
+
- **TUI compaction output** — `/compact` now displays a readable status,
|
|
62
|
+
summary, and counters instead of exposing the raw JSON result object.
|
|
63
|
+
- **llama.cpp thinking off** — `/thinking off` now passes llama.cpp's
|
|
64
|
+
`chat_template_kwargs.enable_thinking=false` request control for compatible
|
|
65
|
+
chat templates, preventing unwanted reasoning output where the server and
|
|
66
|
+
model support that option.
|
|
67
|
+
- **Manual context compaction** — `/compact` now forces a summary below the
|
|
68
|
+
automatic threshold; automatic and recovery compaction remain threshold-driven.
|
|
69
|
+
- **TUI slash completion focus** — Tab no longer moves focus out of the command
|
|
70
|
+
input when slash completion has no match; slash completion remains functional.
|
|
71
|
+
- **Thinking levels and persistence** — `/thinking` and `/thinking-cycle` now
|
|
72
|
+
save the selected level for new sessions while retaining each session's own
|
|
73
|
+
recorded choice. OpenAI-compatible, Anthropic, Gemini, and Codex adapters
|
|
74
|
+
now map supported levels to their native reasoning controls; `off` avoids
|
|
75
|
+
enabled reasoning configuration and provider thought streams stay separate
|
|
76
|
+
from visible answers.
|
|
77
|
+
- **Provider-native TUI thinking** — ChatGPT/Codex Responses summary deltas,
|
|
78
|
+
OpenRouter reasoning traces, and Ollama Cloud native thinking now render
|
|
79
|
+
separately from visible answers; OpenRouter and Ollama Cloud use their native
|
|
80
|
+
reasoning request controls.
|
|
81
|
+
|
|
82
|
+
- **Docker diagnostic coverage** — special diagnostic scenarios now explicitly
|
|
83
|
+
request their safe tools, disabled capabilities are reported separately, and
|
|
84
|
+
a final idle wait truncated only by the outer deadline no longer fails an
|
|
85
|
+
otherwise completed workload.
|
|
86
|
+
- **Diagnostic workload duration** — long Docker diagnostic runs now continue
|
|
87
|
+
scheduling scenarios through the configured duration instead of stopping at a
|
|
88
|
+
premature half-duration reserve.
|
|
89
|
+
- **SSH terminal paste after focus loss** — terminal text paste now restores
|
|
90
|
+
TUI input focus after a terminal security confirmation clears it, while
|
|
91
|
+
preserving exactly-once insertion and other widget focus ownership.
|
|
92
|
+
- **Bounded TUI transcript viewport** — long conversations now render only the
|
|
93
|
+
latest 500 display lines while retaining complete session history. Stream
|
|
94
|
+
refreshes coalesce equivalent output, and mouse-selection copying remains
|
|
95
|
+
reliable during streaming and viewport trimming.
|
|
96
|
+
- **Tool/MCP evidence preservation** — provider requests retain bounded tool
|
|
97
|
+
previews. Complete sanitized results are kept in durable session evidence and
|
|
98
|
+
can be read by the model after reload through `evidence_read`; optional stale
|
|
99
|
+
preview pruning remains available for smaller requests.
|
|
100
|
+
- **Responsive TUI streaming input** — one ordered UI accumulator now batches
|
|
101
|
+
both ordinary and thinking deltas at a bounded cadence, flushing before
|
|
102
|
+
lifecycle boundaries. This avoids token-rate transcript/sidebar rebuilds so
|
|
103
|
+
keyboard input remains visibly editable and submittable while providers wait,
|
|
104
|
+
reason, stream, or retry.
|
|
105
|
+
- **Steering checkpoints** — steering received while a tool is running is now
|
|
106
|
+
delivered FIFO to the next provider request after its result, without waiting
|
|
107
|
+
for the entire turn; terminal finish, abort, timeout, and error paths retain
|
|
108
|
+
queued input for an explicit follow-up.
|
|
109
|
+
- **Skill invocation syntax** — the system prompt now explicitly states that
|
|
110
|
+
`/skill:<name>` is a TUI/interactive UI command, never a `read` tool path.
|
|
111
|
+
When the model passes `/skill:<name>` or `skill:<name>` to `read`, the agent
|
|
112
|
+
returns a structured diagnostic with the matching skill's `filePath` instead
|
|
113
|
+
of attempting filesystem access. Skills in the prompt now include their
|
|
114
|
+
`filePath` in metadata for unambiguous autonomous loading.
|
|
115
|
+
- **Plan completion guard** — a `finish` immediately after creating a plan is
|
|
116
|
+
rejected until the agent executes another tool step.
|
|
117
|
+
- **Reporting integrity** — the system prompt now prohibits claims of changes
|
|
118
|
+
or verification without a successful observed tool result.
|
|
119
|
+
- **MCP context estimation compatibility** — context usage calculation now
|
|
120
|
+
tolerates lightweight MCP test/client tool objects without an input schema.
|
|
121
|
+
- **Context compaction** — auto-compaction now uses the complete provider
|
|
122
|
+
request estimate (runtime prompt and tool schemas included) and runs at the
|
|
123
|
+
default 80% threshold before sending a request.
|
|
124
|
+
- **Terminal `finish`** — queued steering/follow-up messages are no longer
|
|
125
|
+
executed automatically after the agent reports a completed task; they remain
|
|
126
|
+
pending for an explicit next turn.
|
|
127
|
+
- **Provider stream hangs** — provider calls now have an outer deadline, SSE
|
|
128
|
+
streams stop on terminal events, and stalled streams fail closed instead of
|
|
129
|
+
leaving the TUI stuck on `Thinking:`. Spawned subagents also respect tool
|
|
130
|
+
timeouts.
|
|
131
|
+
- **Clean TUI shutdown** — quitting with Ctrl+Q no longer prints
|
|
132
|
+
`BaseSubprocessTransport ... Event loop is closed`: MCP stdio servers are
|
|
133
|
+
fully closed (stdin/pipes/drain task), the session aborts first, and bash
|
|
134
|
+
processes are reaped on cancellation.
|
|
135
|
+
|
|
136
|
+
### Added
|
|
137
|
+
|
|
138
|
+
- **TUI input history** — local history now combines prompts and slash commands,
|
|
139
|
+
retains the latest 50 entries, restores multiline input, and supports
|
|
140
|
+
Ctrl+Up/Ctrl+Down navigation.
|
|
141
|
+
- **TUI session browser** — `/sessions` lists current-project sessions and loads
|
|
142
|
+
by number or unique full exact name; it supports validated rename and
|
|
143
|
+
confirmation-protected deletion of a session JSONL plus its evidence sidecar.
|
|
144
|
+
New sessions receive a locally derived, normalized first-prompt title (64
|
|
145
|
+
Unicode characters maximum).
|
|
146
|
+
|
|
147
|
+
- **Docker diagnostic soak telemetry** — bounded container CPU, memory, PID,
|
|
148
|
+
network/block-I/O and disposable workspace/session-size samples are included
|
|
149
|
+
in diagnostic reports, with unavailable stats reported explicitly.
|
|
150
|
+
|
|
151
|
+
- **llama.cpp configuration guidance** — document remote/custom
|
|
152
|
+
`models.json` entries, context-window alignment, tool parser order, endpoint
|
|
153
|
+
verification, and safe host configuration.
|
|
154
|
+
|
|
155
|
+
- **Subagent timeout diagnostics** — `inspect_subagent_timeout()` returns the last
|
|
156
|
+
subagent timeout diagnostic (cause, duration, timeoutSec, task summary); exposed
|
|
157
|
+
via `/inspect-timeout` in TUI and RPC, and logged in interactive mode.
|
|
158
|
+
- **Streaming delivery modes** — TUI dispatches queued steer/follow-up messages
|
|
159
|
+
using `deliveryMode` (`followUp` vs `steer` vs `idle`), matching the
|
|
160
|
+
`deliveryMode` event field emitted by the session.
|
|
161
|
+
- **14 tools** (was 12): added `read_image` for vision/image input and
|
|
162
|
+
`evidence_read` for bounded retrieval of durable tool evidence.
|
|
163
|
+
- **Multimodal image input** — `--image <path>` CLI flag and `read_image` tool support PNG, JPEG, WebP
|
|
164
|
+
(up to 4 images per prompt, 10 MB source / 5 MiB Base64). Images are transient per-turn.
|
|
165
|
+
- **Codex image input** — the ChatGPT/Codex Responses adapter sends `input_image`
|
|
166
|
+
parts for vision-capable models (`gpt-5.6-sol/terra/luna`); invalid attachments
|
|
167
|
+
are rejected before any HTTP request.
|
|
168
|
+
- **Retry mode `unlimited`** — third mode next to `off`/`on` (`/retry <on|off|unlimited>`,
|
|
169
|
+
`/retry-cycle`, Ctrl+R in TUI cycles `off` → `on` → `unlimited`).
|
|
170
|
+
- **`maxSteps=0`** — `tools.maxSteps` set to `0` means unlimited tool steps per turn
|
|
171
|
+
(abort, budget limits, `finish`, and normal completion still end the turn).
|
|
172
|
+
- **TUI additions** — version line in the sidebar and `one v<version>` CLI banner;
|
|
173
|
+
effective timeout in tool lines (`tool start (timeout Ns): bash {...}`);
|
|
174
|
+
shortcuts overlay entries for SSH-safe text/image paste shortcuts and Ctrl+R;
|
|
175
|
+
cooperation toggle moved from Ctrl+A to Ctrl+Z in the TUI.
|
|
176
|
+
- **TUI reliability fixes** — no more duplicated assistant/tool output across
|
|
177
|
+
streamed retries and history trimming; single-insert paste; working waiting
|
|
178
|
+
spinner; backspace/delete/arrows fire once.
|
|
179
|
+
- **SSH-safe TUI paste shortcuts** — Ctrl+V retains host/system clipboard text;
|
|
180
|
+
Ctrl+Shift+V accepts terminal bracketed text paste without remote clipboard
|
|
181
|
+
binaries; image paste moved to Ctrl+Alt+V, with `/paste-image` as a fallback.
|
|
182
|
+
- **`/login` help** — all help outputs show the `[subscription]` argument.
|
|
183
|
+
- **Skills system** — modular, discoverable instruction sets via `SKILL.md` files
|
|
184
|
+
with YAML frontmatter (name, description, optional license/compatibility/metadata/allowed-tools/disable-model-invocation).
|
|
185
|
+
Skills are listed in the system prompt (metadata only) and loaded on demand via
|
|
186
|
+
`/skill:<name>` (TUI/interactive) or `invoke_skill` ctype (RPC). Supports progressive
|
|
187
|
+
disclosure, trust warnings, cooperation approval gates, and `/reload` for resource
|
|
188
|
+
refresh. Includes `docs/SKILLS.md` with full specification.
|
|
189
|
+
|
|
190
|
+
### Changed
|
|
191
|
+
|
|
192
|
+
- **Default settings** — new configurations now use the `hacker` theme, hide
|
|
193
|
+
bash output by default, allow 100 tool steps, and make no automatic retry
|
|
194
|
+
attempts (`retry.maxRetries=0`). Existing explicit global and project
|
|
195
|
+
settings remain unchanged.
|
|
196
|
+
- **Compaction threshold** — new configurations now default to 80% context
|
|
197
|
+
usage; existing saved `thresholdPercent` values are preserved.
|
|
198
|
+
- **Provider timeout** — increased the default outer provider and HTTP
|
|
199
|
+
transport timeout from 190/180 seconds to 300 seconds; the 120-second SSE
|
|
200
|
+
idle watchdog remains active for stalled streams.
|
|
201
|
+
- **README** — added "Resources and skills" section documenting skill discovery,
|
|
202
|
+
`/skill:name` invocation, `/reload`, project vs global skill directories,
|
|
203
|
+
and trust warning; links to `docs/SKILLS.md`.
|
|
204
|
+
- Auth precedence wording corrected to **runtime → stored → env** in README and docs.
|
|
205
|
+
- SECURITY.md scoped atomic-storage claims to text config/session persistence (blob store
|
|
206
|
+
uses its own 0600/0700 handling).
|
|
207
|
+
- Security reporting contact set to s.wielgosz@noxgle.com.
|
|
208
|
+
|
|
209
|
+
## [0.1.0] — 2026-08-30
|
|
210
|
+
|
|
211
|
+
### Added
|
|
212
|
+
|
|
213
|
+
- **Autonomous terminal agent** with 4 modes: headless (`run`), text, JSON-RPC, and Textual TUI.
|
|
214
|
+
- **12 tools**: read, bash, edit, write, grep, find, ls, finish, plan, spawn_subagent, ask_user, apply_patch.
|
|
215
|
+
- **Cooperation mode** (`--cooperation`, Ctrl+A in TUI) — approval gates for mutating tools.
|
|
216
|
+
- **Provider adapters** for OpenAI-compatible, Anthropic, Gemini, and Codex Responses API (ChatGPT subscription).
|
|
217
|
+
- **Subscription OAuth login** for Anthropic (Claude Pro/Max) and ChatGPT/Codex (Plus/Pro).
|
|
218
|
+
- **MCP server support** — stdio and streamable-HTTP transports; tools exposed live to the agent.
|
|
219
|
+
- **Project extensions** (`.one/extensions/*.py`) with hook contract inspired by opencode.
|
|
220
|
+
- **Session management** — `.jsonl` format, compaction, branching, navigation.
|
|
221
|
+
- **Thinking/reasoning streaming** — raw reasoning deltas rendered chronologically with tool boundaries.
|
|
222
|
+
- **Bash timeout semantics** — model-controlled per-command timeout with clear "Command timed out" results.
|
|
223
|
+
- **Plan tool** — persistent execution plan injected into the system prompt every step, persisted in session jsonl.
|
|
224
|
+
- **apply_patch tool** — unified-diff patches with collision-safe, rollback-aware staging.
|
|
225
|
+
- **TUI features** — full-height sidebar, live streaming, themes, MCP panel, thinking visualization, slash command history.
|
|
226
|
+
- **SDK** — programmatic agent session creation with `agentDir` isolation.
|
|
227
|
+
- **Atomic, private persistence** — `0700`/`0600` file modes, atomic writes via `os.replace`.
|
|
228
|
+
- **Complete credential removal** (`/logout`) — removes API keys and OAuth tokens locally.
|
|
229
|
+
- **RPC login validation** — validates credentials before storage; consistent with TUI/interactive.
|
|
230
|
+
|
|
231
|
+
### Changed
|
|
232
|
+
|
|
233
|
+
- All user-facing text, help, and documentation in English.
|
|
234
|
+
- `one run` flag parsing fixed — all value-taking flags retain their values.
|
|
235
|
+
- Edit tool robustness — tolerates model-side `path` nesting inside `edits[0]`.
|
|
236
|
+
|
|
237
|
+
### Security
|
|
238
|
+
|
|
239
|
+
- Trust boundary documented: extensions and MCP servers are not sandboxed.
|
|
240
|
+
- Private LAN IPs, stale claims, and sensitive paths removed from documentation.
|
|
241
|
+
- Token redaction in error messages and RPC responses.
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# Code of Conduct
|
|
2
|
+
|
|
3
|
+
## Our Pledge
|
|
4
|
+
|
|
5
|
+
We as members, contributors, and leaders pledge to make participation in the
|
|
6
|
+
`one` community a harassment-free experience for everyone, regardless of age,
|
|
7
|
+
body size, visible or invisible disability, ethnicity, sex characteristics,
|
|
8
|
+
gender identity and expression, level of experience, education, socio-economic
|
|
9
|
+
status, nationality, personal appearance, race, religion, or sexual identity
|
|
10
|
+
and orientation.
|
|
11
|
+
|
|
12
|
+
We pledge to act and interact in ways that contribute to an open, welcoming,
|
|
13
|
+
diverse, inclusive, and healthy community.
|
|
14
|
+
|
|
15
|
+
## Our Standards
|
|
16
|
+
|
|
17
|
+
Examples of behavior that contributes to a positive environment:
|
|
18
|
+
|
|
19
|
+
- Demonstrating empathy and kindness toward other people
|
|
20
|
+
- Being respectful of differing opinions, viewpoints, and experiences
|
|
21
|
+
- Giving and gracefully accepting constructive feedback
|
|
22
|
+
- Accepting responsibility and apologizing to those affected by our mistakes
|
|
23
|
+
- Focusing on what is best not just for us as individuals, but for the overall community
|
|
24
|
+
|
|
25
|
+
Examples of unacceptable behavior:
|
|
26
|
+
|
|
27
|
+
- The use of sexualized language or imagery, and sexual attention or advances of any kind
|
|
28
|
+
- Trolling, insulting or derogatory comments, and personal or political attacks
|
|
29
|
+
- Public or private harassment
|
|
30
|
+
- Publishing others' private information, such as a physical or email address, without explicit permission
|
|
31
|
+
- Other conduct which could reasonably be considered inappropriate in a professional setting
|
|
32
|
+
|
|
33
|
+
## Enforcement Responsibilities
|
|
34
|
+
|
|
35
|
+
Community leaders are responsible for clarifying and enforcing our standards of
|
|
36
|
+
acceptable behavior and will take appropriate and fair corrective action in
|
|
37
|
+
response to any behavior that they deem inappropriate, threatening, offensive,
|
|
38
|
+
or harmful.
|
|
39
|
+
|
|
40
|
+
## Scope
|
|
41
|
+
|
|
42
|
+
This Code of Conduct applies within all community spaces (repository, issues,
|
|
43
|
+
pull requests, discussions), and also applies when an individual is officially
|
|
44
|
+
representing the community in public spaces.
|
|
45
|
+
|
|
46
|
+
## Enforcement
|
|
47
|
+
|
|
48
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
49
|
+
reported to the community leaders via
|
|
50
|
+
[GitHub Security Advisories](https://github.com/picon/one/security/advisories/new)
|
|
51
|
+
or by opening a private issue and requesting a maintainer contact. All complaints
|
|
52
|
+
will be reviewed and investigated promptly and fairly.
|
|
53
|
+
|
|
54
|
+
All community leaders are obligated to respect the privacy and security of the
|
|
55
|
+
reporter of any incident.
|
|
56
|
+
|
|
57
|
+
## Enforcement Guidelines
|
|
58
|
+
|
|
59
|
+
Community leaders will follow these guidelines in determining the consequences
|
|
60
|
+
for any action they deem in violation of this Code of Conduct:
|
|
61
|
+
|
|
62
|
+
1. **Correction** — A written warning and guidance on impact; apology may be requested.
|
|
63
|
+
2. **Warning** — A warning with consequences for continued behavior; temporary
|
|
64
|
+
interaction limits may be applied.
|
|
65
|
+
3. **Temporary Ban** — Temporary ban from any sort of interaction or public
|
|
66
|
+
communication with the community.
|
|
67
|
+
4. **Permanent Ban** — Permanent ban from the community.
|
|
68
|
+
|
|
69
|
+
## Attribution
|
|
70
|
+
|
|
71
|
+
This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org),
|
|
72
|
+
version 2.1, available at https://www.contributor-covenant.org/version/2/1/code_of_conduct.html.
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
# Contributing to one
|
|
2
|
+
|
|
3
|
+
Thank you for your interest in contributing to `one`!
|
|
4
|
+
|
|
5
|
+
## Quick start
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
# Clone and set up
|
|
9
|
+
git clone https://github.com/noxgle/one.git
|
|
10
|
+
cd one
|
|
11
|
+
python3 -m venv .venv
|
|
12
|
+
.venv/bin/pip install -e .[dev]
|
|
13
|
+
|
|
14
|
+
# Run a focused local suite while editing
|
|
15
|
+
scripts/test.sh tools
|
|
16
|
+
|
|
17
|
+
# Run the full test suite (the CI command)
|
|
18
|
+
.venv/bin/python -m pytest -q
|
|
19
|
+
|
|
20
|
+
# Lint (ruff)
|
|
21
|
+
ruff check .
|
|
22
|
+
|
|
23
|
+
# Single test
|
|
24
|
+
.venv/bin/python -m pytest tests/test_event_snapshots.py::test_event_snapshot_abort_path
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Architecture overview
|
|
28
|
+
|
|
29
|
+
- **Package**: `one`, source in `one/`.
|
|
30
|
+
- **Entry point**: `one/cli/main.py` — wires settings, auth, models, tools,
|
|
31
|
+
and dispatches to a mode (headless, TUI, interactive, RPC).
|
|
32
|
+
- **Core**: `one/core/` — agent session loop, auth storage, model registry,
|
|
33
|
+
settings manager, session management, event bus, SDK.
|
|
34
|
+
- **Modes**: `one/modes/` — `run_mode` (headless), `print_mode`, `rpc_mode`,
|
|
35
|
+
`tui_mode` (Textual), `interactive_mode`.
|
|
36
|
+
- **Providers**: `one/providers/` — adapters for OpenAI-compatible, Anthropic,
|
|
37
|
+
Gemini, and Codex Responses API.
|
|
38
|
+
- **Tools**: `one/tools/` — 14 tools registered in `tools/index.py`.
|
|
39
|
+
- **MCP**: `one/mcp/client.py` — stdio and streamable-HTTP transport.
|
|
40
|
+
- **Resources**: `one/resources/` — extension/runtime, skills, prompts, themes.
|
|
41
|
+
|
|
42
|
+
## Testing
|
|
43
|
+
|
|
44
|
+
- `pytest` is the primary gate (`testpaths = ["tests"]`, no conftest); `ruff` is
|
|
45
|
+
an additional CI lint gate (`pyproject.toml` `[tool.ruff]`).
|
|
46
|
+
- Use `scripts/test.sh <suite>` for focused local feedback. It uses
|
|
47
|
+
`.venv/bin/python` when available and otherwise falls back to `python`.
|
|
48
|
+
Available suites are `quick`, `mcp`, `tui`, `providers`, `tools`, `auth`,
|
|
49
|
+
`extensions`, `cli`, `rpc`, `core`, `sessions`, `failed`/`last`, and
|
|
50
|
+
`full`/`all`; pass extra pytest arguments after the suite. For example, run
|
|
51
|
+
`scripts/test.sh tools -x` for tool work or `scripts/test.sh tui -k paste`
|
|
52
|
+
for a TUI change. `scripts/test.sh --help` lists every suite.
|
|
53
|
+
- `failed` and its `last` alias run pytest with `--lf`. When pytest has no
|
|
54
|
+
last-failure cache, they may run the complete test suite.
|
|
55
|
+
- `quick` is a fast smoke baseline, not a replacement for the full suite. Run
|
|
56
|
+
`.venv/bin/python -m pytest -q` before committing or merging; this remains
|
|
57
|
+
the unchanged full CI command. `scripts/test.sh full` is equivalent.
|
|
58
|
+
- Pytest markers identify smoke (`smoke`) and golden-rendering (`snapshot`)
|
|
59
|
+
tests. `slow` is reserved for deliberately long-running tests; do not apply
|
|
60
|
+
it merely because a test is in a broad suite.
|
|
61
|
+
- Tests live in `tests/` with `testpaths = ["tests"]` (no conftest).
|
|
62
|
+
- Async tests need `@pytest.mark.asyncio` (no `asyncio_mode = auto` in pyproject).
|
|
63
|
+
- Tests must **never** hit real API servers — inject fake providers via
|
|
64
|
+
`agent.providers = {"openai": _Provider(...)}`.
|
|
65
|
+
- Tests use `SettingsManager.in_memory()` / `AuthStorage.in_memory()` and
|
|
66
|
+
`SessionManager.in_memory()` where appropriate.
|
|
67
|
+
- All tests must use a scratch `ONE_CODING_AGENT_DIR` to avoid touching real config.
|
|
68
|
+
|
|
69
|
+
### Build and packaging checks
|
|
70
|
+
|
|
71
|
+
CI also verifies packaging on every PR:
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
python -m build
|
|
75
|
+
twine check dist/*
|
|
76
|
+
# fresh-venv smoke test
|
|
77
|
+
python -m venv /tmp/one-wheel-test
|
|
78
|
+
/tmp/one-wheel-test/bin/pip install dist/*.whl
|
|
79
|
+
/tmp/one-wheel-test/bin/one --version
|
|
80
|
+
/tmp/one-wheel-test/bin/one --help
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## TUI golden snapshots
|
|
84
|
+
|
|
85
|
+
TUI snapshot tests live in `tests/snapshots/tui/*.txt`. Regenerate when
|
|
86
|
+
sidebar or stream changes:
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
ONE_UPDATE_SNAPSHOTS=1 .venv/bin/python -m pytest -q tests/test_tui_snapshots.py
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Review the regenerated diff before committing — it should only contain
|
|
93
|
+
expected layout/content changes.
|
|
94
|
+
|
|
95
|
+
## Event contract
|
|
96
|
+
|
|
97
|
+
The agent event contract (`tool_call_start/end`, `turn_*`, snapshots in
|
|
98
|
+
`test_event_snapshots.py`) is stable. When adding features:
|
|
99
|
+
|
|
100
|
+
1. New events are **additive** — they must not change existing event payloads.
|
|
101
|
+
2. Existing event-contract tests assert exact sequences and payloads.
|
|
102
|
+
3. If a new feature must change events, coordinate with the test suite first.
|
|
103
|
+
|
|
104
|
+
## Code conventions
|
|
105
|
+
|
|
106
|
+
- Python 3.12+ typed code with `from __future__ import annotations`.
|
|
107
|
+
- Prefer explicit over implicit: no bare `except:`, use typed `except Exception:`.
|
|
108
|
+
- Error messages in English, actionable, no stack traces in user-facing output.
|
|
109
|
+
- Sensitive data (API keys, OAuth tokens) must be redacted in error messages
|
|
110
|
+
and RPC responses.
|
|
111
|
+
|
|
112
|
+
## Versioning
|
|
113
|
+
|
|
114
|
+
- The single version source is `one/config.py:VERSION` (`0.1.0`). It drives both
|
|
115
|
+
`pyproject.toml` (`tool.setuptools.dynamic.version.attr = "one.config.VERSION"`)
|
|
116
|
+
and `one --version` / `one/mcp/client.py` client identity.
|
|
117
|
+
- Bump `VERSION` before tagging `v*` (see `.github/workflows/release.yml`).
|
|
118
|
+
- Optional extras: `pip install -e .[dev]` for development, `pip install -e .[release]`
|
|
119
|
+
additionally pulls `build` + `twine` for packaging.
|
|
120
|
+
|
|
121
|
+
## Adding a tool
|
|
122
|
+
|
|
123
|
+
1. Implement the tool in `one/tools/<name>.py`.
|
|
124
|
+
2. Register in `one/tools/index.py` (`all_tools`, plus any grouping).
|
|
125
|
+
3. Add schema in `one/resources/resource_loader.py` (`TOOL_ARG_SCHEMAS`).
|
|
126
|
+
4. Add dispatch in `one/core/agent_session.py` (`_execute_tool_by_name`).
|
|
127
|
+
5. Add tests in `tests/`.
|
|
128
|
+
|
|
129
|
+
## Submitting changes
|
|
130
|
+
|
|
131
|
+
1. Create a feature branch from `main`.
|
|
132
|
+
2. Write tests for new behavior.
|
|
133
|
+
3. Run the full suite: `.venv/bin/python -m pytest -q` and `ruff check .`.
|
|
134
|
+
Focused `scripts/test.sh` suites are encouraged during local edits but do
|
|
135
|
+
not replace the full command before commit or merge.
|
|
136
|
+
4. Ensure no private data (IPs, paths, keys) in commits.
|
|
137
|
+
5. Open a pull request with a clear description.
|
|
138
|
+
|
|
139
|
+
## Questions?
|
|
140
|
+
|
|
141
|
+
Open an issue or start a discussion on GitHub.
|
one_agent-0.1.46/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 picon
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
include LICENSE README.md CHANGELOG.md CONTRIBUTING.md SECURITY.md CODE_OF_CONDUCT.md
|
|
2
|
+
include pyproject.toml
|
|
3
|
+
include scripts/install.sh
|
|
4
|
+
include docs/EXTENSIONS.md docs/RELEASE_CHECKLIST.md
|
|
5
|
+
include one/py.typed
|
|
6
|
+
recursive-include one *.py
|
|
7
|
+
recursive-exclude one blobs
|
|
8
|
+
global-exclude .one
|
|
9
|
+
recursive-exclude * __pycache__
|
|
10
|
+
recursive-exclude * *.py[cod]
|
|
11
|
+
global-exclude .DS_Store
|