Mario Zechner
c44fc0cba7
Clarify that cut point is always user/assistant/bash, never tool result
2025-12-24 12:55:15 +01:00
Mario Zechner
0f11a0ff58
Add split turn diagram to compaction docs
2025-12-24 12:53:23 +01:00
Mario Zechner
fafe89cc58
Clarify keepRecentTokens is configurable
2025-12-24 12:51:41 +01:00
Mario Zechner
3a5d0d49f1
Add LLM context diagram to compaction docs
2025-12-24 12:49:45 +01:00
Mario Zechner
bd24b5d6ad
Fix compaction ASCII diagram to show append-only behavior
2025-12-24 12:49:09 +01:00
Mario Zechner
ee660923ea
Add ASCII diagram to compaction docs
2025-12-24 12:48:16 +01:00
Mario Zechner
e9c20357e7
Add previousSummary to before_compact hook event
2025-12-24 12:47:12 +01:00
Mario Zechner
db758095fc
Clarify messagesToSummarize starts after last compaction
2025-12-24 12:44:05 +01:00
Mario Zechner
8f7f41186c
Improve custom compaction docs in hooks.md
2025-12-24 12:43:04 +01:00
Mario Zechner
277fd22d5f
Improve before_compact hook: add messagesToKeep, replace apiKey with resolveApiKey
2025-12-24 12:41:22 +01:00
Mario Zechner
a74ae7d0eb
Update full-compaction example to use resolveApiKey
2025-12-24 12:30:00 +01:00
Mario Zechner
c5ffdc14e9
Add resolveApiKey to before_compact hook event
2025-12-24 12:28:51 +01:00
Mario Zechner
a2fd6738a8
Add full-compaction hook example
2025-12-24 12:25:36 +01:00
Mario Zechner
d2d47773b9
Release v0.27.5
2025-12-24 12:18:51 +01:00
Mario Zechner
0eec5d5e96
Add changelog entry for Ghostty tmux fix
2025-12-24 12:17:31 +01:00
Mario Zechner
5652df8a89
Add syntax highlighting to HTML export using highlight.js
2025-12-24 12:13:56 +01:00
scutifer and Mario Zechner
a86c3ba15c
chore: update changelog.md to add the latest commit
2025-12-24 12:13:56 +01:00
scutifer and Mario Zechner
78cf2bfc0b
feat: Improve HTML export with markdown rendering and theme support
...
- Render markdown server-side using marked (tables, headings, code blocks, etc.)
- Honor user's chosen theme (light/dark) with appropriate color defaults
- Add image rendering for user messages
- Style code blocks with TUI-like ```language markers
2025-12-24 12:13:15 +01:00
Nico Bailon and GitHub
4f36556cc8
Add before_compact hook event ( closes #281 ) ( #285 )
...
* Add before_compact hook event (closes #281 )
* Add compact hook event and documentation
- Add compact event that fires after compaction completes
- Update hooks.md with lifecycle diagram, field docs, and example
- Add CHANGELOG entry
- Add comprehensive test coverage (10 tests) for before_compact and compact events
- Tests cover: event emission, cancellation, custom entry, error handling, multiple hooks
2025-12-24 11:26:29 +01:00
Mario Zechner
538a257b58
Fix symlinked skill directories not being discovered
...
Release v0.27.4
2025-12-24 03:32:54 +01:00
Mario Zechner
79850d434c
Release v0.27.3
2025-12-24 02:46:23 +01:00
Mario Zechner
ece66335e8
List all provider keys in README settings example
2025-12-24 02:42:41 +01:00
Mario Zechner
9d5ba8563d
Use injected resolveApiKey in AgentSession for settings.json support
2025-12-24 02:35:42 +01:00
Mario Zechner
df3ee508bd
Update README with settings.json API keys
2025-12-24 02:14:02 +01:00
Mario Zechner
26719278e2
Add API keys in settings.json, fixes #295
2025-12-24 02:11:17 +01:00
Mario Zechner
f956a584b3
Allow startup without API keys, fixes #288
2025-12-24 01:52:59 +01:00
Nico Bailon and GitHub
13d7a73834
Add cwd parameter to subagent example tool ( #291 )
2025-12-24 00:58:43 +01:00
Mario Zechner
ba0b8fea83
docs: changelog entry for #287
2025-12-23 13:07:05 +01:00
scutifer and GitHub
3d86955731
feat: Call resolvePromptInput on the --system-prompt received on the CLI argument. This is needed to support file paths on the prompt ( #287 )
2025-12-23 13:06:40 +01:00
Mario Zechner
6ae3a2d47f
Release v0.27.2
2025-12-23 03:48:52 +01:00
Aliou Diallo and GitHub
d3b8a702b9
docs: fix outdated custom tools paths and add missing header shortcut ( #283 )
...
* docs: fix custom tools example paths to use index.ts structure
* fix: add missing ctrl+g shortcut to startup header
* docs: fix /session -> /resume for session switching references
2025-12-23 03:29:31 +01:00
Nico Bailon and GitHub
3fbad24af7
Add skipConversationRestore for before_branch hooks ( #286 )
2025-12-23 03:26:08 +01:00
Mario Zechner
dbdcf5ed28
Release v0.27.1
2025-12-22 19:28:26 +01:00
Mario Zechner
08deb01dad
Add [Unreleased] section for next cycle
2025-12-22 18:21:15 +01:00
Mario Zechner
d96ed2bee6
Release v0.27.0
2025-12-22 18:20:10 +01:00
Mario Zechner
cc8cbf44a6
Add before/after session events with cancellation support
...
- Merge branch event into session with before_branch/branch reasons
- Add before_switch, before_clear, shutdown reasons
- before_* events can be cancelled with { cancel: true }
- Update RPC commands to return cancelled status
- Add shutdown event on process exit
- New example hooks: confirm-destructive, dirty-repo-guard, auto-commit-on-exit
fixes #278
2025-12-22 18:18:38 +01:00
Mario Zechner
68c9b6a236
Add changelog entry for #280
2025-12-22 17:02:23 +01:00
Mario Zechner
a35e05c5e5
Fix bash tool visual line truncation
...
Use visual line counting (accounting for line wrapping) instead of logical
line counting for bash tool output in collapsed mode. Now consistent with
bash-execution.ts behavior.
- Add shared truncateToVisualLines utility
- Update tool-execution.ts to use Box for bash with visual truncation
- Update bash-execution.ts to use shared utility
- Pass TUI to ToolExecutionComponent for terminal width access
Fixes #275
2025-12-22 17:01:04 +01:00
Mario Zechner
b92d9a0885
Release v0.26.1
2025-12-22 16:19:19 +01:00
Mario Zechner
3c93bc882f
Fix SDK tools to respect cwd option
...
Core tools now properly use the cwd passed to createAgentSession().
Added tool factory functions for SDK users who specify custom cwd with explicit tools.
Fixes #279
2025-12-22 16:17:55 +01:00
Mario Zechner
a12318ff14
Release v0.26.0
2025-12-22 12:53:58 +01:00
Mario Zechner
594e1fd013
Add CHANGELOG entries for SDK and settings changes
2025-12-22 12:45:49 +01:00
Mario Zechner
0e7f5f6538
SDK docs: add links to specific examples in each section
2025-12-22 12:44:41 +01:00
Mario Zechner
dc05041ad4
README: clarify TUI settings save to global preferences only
2025-12-22 12:40:42 +01:00
Mario Zechner
5b2a692fd5
Update README: document project-specific settings, add SettingsManager to SDK list
2025-12-22 12:34:08 +01:00
Mario Zechner
7648a69852
Fix SDK docs: AgentSession interface, findModel usage, settings example
2025-12-22 12:32:25 +01:00
Mario Zechner
9eedaad8ae
Update SDK docs for SettingsManager changes
2025-12-22 12:24:58 +01:00
Mario Zechner
a7aa118f64
Add project-specific settings and SettingsManager factories
...
- SettingsManager now loads .pi/settings.json from cwd (project settings)
- Project settings merge with global settings (deep merge for objects)
- Setters only modify global settings, project settings are read-only
- Add static factories: SettingsManager.create(cwd?, agentDir?), SettingsManager.inMemory(settings?)
- Add applyOverrides() for programmatic overrides
- Replace 'settings' option with 'settingsManager' in CreateAgentSessionOptions
- Update examples to use new pattern
Incorporates PR #276 approach
2025-12-22 12:23:02 +01:00
Mario Zechner
59976daeb8
Add SDK documentation
...
- docs/sdk.md: comprehensive SDK reference
- Core concepts (createAgentSession, AgentSession, Agent, events)
- All options with examples
- Discovery functions
- Complete example
- README.md: add SDK section with brief overview and links
2025-12-22 03:20:09 +01:00
Mario Zechner
7966231ed7
Add SDK usage examples
...
12 examples showing increasing levels of customization:
- 01-minimal: all defaults
- 02-custom-model: model and thinking level
- 03-custom-prompt: replace or modify prompt
- 04-skills: discover, filter, merge skills
- 05-tools: built-in tools, custom tools
- 06-hooks: logging, blocking, result modification
- 07-context-files: AGENTS.md files
- 08-slash-commands: file-based commands
- 09-api-keys-and-oauth: API key resolution, OAuth config
- 10-settings: compaction, retry, terminal settings
- 11-sessions: persistence options
- 12-full-control: replace everything
Also exports FileSlashCommand type from index.ts
2025-12-22 03:14:30 +01:00