NCBM
|
42b50716f4
|
core/agent: document chat_completions_raw_lines as optional
|
2026-07-14 22:11:25 +08:00 |
|
NCBM
|
49eff9c947
|
core/agent: stream flag on ChatAgent; rollback on any exception
|
2026-07-14 22:11:25 +08:00 |
|
NCBM
|
8da9e9dd59
|
core/agent: streaming loop with text deltas and tool-call reconstruction
|
2026-07-14 22:11:25 +08:00 |
|
NCBM
|
b83e7bffc0
|
core/agent: add ErrorEvent and CancelledEvent
|
2026-07-14 22:11:25 +08:00 |
|
NCBM
|
665c3f435d
|
core/lmproto: add stream decoder and raw SSE tool-call merger
StreamChatCompletionChunk tolerant of partial tool calls;
merge_stream_tool_calls accumulates by index from raw bytes.
|
2026-07-14 22:11:25 +08:00 |
|
NCBM
|
f26e13c2c1
|
core/tools/file: copy, move, and delete paths via shutil
Workspace-bound copy_path/move_path/delete_path for files and
directories; overwrite and recursive flags where needed.
|
2026-07-14 21:47:57 +08:00 |
|
NCBM
|
25ff849efe
|
core/cli: level-1 cancel of in-flight turns via Ctrl+C
Run turns as asyncio tasks; SIGINT cancels the task; agent rolls back
and keeps pending_retry_text for /retry.
|
2026-07-14 21:02:54 +08:00 |
|
NCBM
|
e0916a6352
|
core/agent+cli: defer DB write until turn success; auto/manual retry
Failed turns roll back memory and keep pending_retry_text; persist only
after success. CLI auto-retries 10s/20s/30s (cancellable) and /retry.
|
2026-07-14 20:56:08 +08:00 |
|
NCBM
|
f079ab73df
|
core/tools/file: add tree with depth, entry, and VCS filters
Workspace-relative tree; always skip VCS dirs; skip hidden dirs by
default; max_depth and max_entries caps.
|
2026-07-14 20:19:49 +08:00 |
|
NCBM
|
4f1e99fa4b
|
core/tools/process: timeout partial output, per-session PTY budget
run_command keeps stdout/stderr on timeout with timed_out=true;
open_pty uses shlex.join; PTY output budget is per-session.
|
2026-07-14 20:07:07 +08:00 |
|
NCBM
|
a634021a80
|
core/cli: interactive continue prompts for loop and PTY limits
on_limit raises tool-round allowance; PTY session/budget limits can
prompt to raise; MaxRoundsEvent.continued marks extended runs.
|
2026-07-14 19:53:34 +08:00 |
|
NCBM
|
1b53b415b6
|
core/tools/process: harden PTY sessions for agents
Structured alive/exit_code/data reads; until= wait; SIGTERM then
SIGKILL; exec-fail marker; session limit, idle TTL, output budget.
|
2026-07-14 19:47:32 +08:00 |
|
NCBM
|
73c11cee36
|
core/tools/process: run_command stdin/env and write_pty
Optional stdin and env overlay for run_command; write_pty for
interactive PTY input.
|
2026-07-14 19:36:46 +08:00 |
|
NCBM
|
bd6f8f5d9a
|
core/cli: resume sessions, history, editline Tab, higher tool rounds
Default to file SQLite DB and latest session; /history and /rounds;
bind Tab for libedit; max tool rounds default 32.
|
2026-07-14 19:15:12 +08:00 |
|
NCBM
|
366199fc0c
|
core/lmproto: allow null assistant content and optional response fields
Providers return content=null with tool_calls; relax choice logprobs,
finish_reason, fingerprint, and usage for real API payloads.
|
2026-07-14 18:52:27 +08:00 |
|
NCBM
|
5d90e48618
|
core/cli: open config in $EDITOR with optional prompt
shlex-split EDITOR (e.g. codium --wait); prompt when no providers;
add config path/edit commands.
|
2026-07-14 18:44:32 +08:00 |
|
NCBM
|
a017adda39
|
core/cli: readline Tab completion and persistent history
Complete slash commands and provider/model/tools args; store history
under platformdirs user data.
|
2026-07-14 18:33:34 +08:00 |
|
NCBM
|
e1f71e7828
|
core/cli: click app, chat/providers commands, entry points
Expose plyngent console script and python -m plyngent.
|
2026-07-14 18:29:46 +08:00 |
|
NCBM
|
6be0ef5ac9
|
core/cli: readline REPL with slash commands
|
2026-07-14 18:29:46 +08:00 |
|
NCBM
|
a1edfd2947
|
core/cli: provider selection, event display, REPL state
|
2026-07-14 18:29:46 +08:00 |
|
NCBM
|
f23780171b
|
core/tools: export DEFAULT_TOOLS and package surface
|
2026-07-14 18:20:32 +08:00 |
|
NCBM
|
facd8d8a61
|
core/tools/process: minimal PTY open/read/close sessions
|
2026-07-14 18:20:32 +08:00 |
|
NCBM
|
fa9d157708
|
core/tools/process: run_command without shell
Async argv exec with timeout, cwd under workspace, output truncation
and command denylist.
|
2026-07-14 18:20:32 +08:00 |
|
NCBM
|
94720f4e57
|
core/tools/file: read, write, listdir, edit_replace
Module-level @tool handlers under workspace root; first-occurrence
string replace.
|
2026-07-14 18:20:32 +08:00 |
|
NCBM
|
111a554e80
|
core/tools: workspace root, path and command denylists
|
2026-07-14 18:20:32 +08:00 |
|
NCBM
|
770e239d27
|
ci/lint: replace dead type:ignore with casts and clean async gen
Drop ignored # type: ignore comments (basedpyright skips them); type
tomlkit tables via cast; empty stream without reportUnreachable.
|
2026-07-14 18:08:22 +08:00 |
|
NCBM
|
85fae1cb2f
|
core/agent: ChatAgent wrapper with optional memory bind
|
2026-07-14 17:45:47 +08:00 |
|
NCBM
|
54cf73452b
|
core/agent: multi-round chat/tool loop with event stream
run_chat_loop appends assistant/tool messages, yields events,
stops on no tool_calls or max_rounds.
|
2026-07-14 17:45:47 +08:00 |
|
NCBM
|
50863fa1c6
|
core/agent: add @tool decorator and ToolRegistry
Infer JSON Schema from type hints; execute tools by name with
string results for the model.
|
2026-07-14 17:45:47 +08:00 |
|
NCBM
|
8646752139
|
core/agent: add AgentEvent types and ChatClient protocol
|
2026-07-14 17:45:47 +08:00 |
|
NCBM
|
27c6cb77f5
|
docs: update CLAUDE.md for memory, runtime, and pytest
|
2026-07-14 17:25:22 +08:00 |
|
NCBM
|
c129498efa
|
core/runtime: map Provider config to protocol clients
create_client supports openai, openai-compatible, and deepseek
(openai convention); anthropic and deepseek anthropic raise.
|
2026-07-14 17:25:18 +08:00 |
|
NCBM
|
0c5cc20d0b
|
core/memory: add async MemoryStore with default local user
Open SQLite via aiosqlite, create schema, ensure default user, and
CRUD sessions/messages with msgspec AnyChatMessage JSON.
|
2026-07-14 17:25:14 +08:00 |
|
NCBM
|
8a1994a785
|
core/lmproto: fix msgspec Unset and tag multi-struct unions
Use Unset=UnsetType (not PEP 695 alias) and tag role/type fields so
decoders and convert work for chat messages and tool calls.
|
2026-07-14 17:25:09 +08:00 |
|
NCBM
|
43edb12d6a
|
core/memory: add SQLAlchemy schema for user, session, message
|
2026-07-14 17:19:31 +08:00 |
|
NCBM
|
c3e44cfff0
|
core/config: add database section to config store
Parse and expose [database] with defaults; keep providers API unchanged.
|
2026-07-14 17:19:21 +08:00 |
|
NCBM
|
7f63e7980b
|
core/lmproto: add openai-compatible and deepseek clients
OpenAI-compatible models, config, and async client via niquests;
DeepSeek OpenAI-compat extension with reasoning fields.
|
2026-07-14 17:19:16 +08:00 |
|
NCBM
|
fd6126fce7
|
core/config: add configuration center
|
2026-07-06 21:55:17 +08:00 |
|
NCBM
|
21aa7dd143
|
project: init
|
2026-06-25 23:22:45 +08:00 |
|