@fickydev/pigent 0.1.16 → 0.1.19
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.
- package/CHANGELOG.md +26 -1
- package/TODO.md +7 -5
- package/agents/assistant/agent.yaml +2 -1
- package/drizzle/migrations/0006_flippant_bruce_banner.sql +1 -0
- package/drizzle/migrations/meta/0006_snapshot.json +711 -0
- package/drizzle/migrations/meta/_journal.json +7 -0
- package/package.json +2 -1
- package/skills/task-management/SKILL.md +59 -0
- package/src/agents/AgentRegistry.ts +4 -4
- package/src/agents/AgentRunner.ts +49 -0
- package/src/agents/BotCommandHandler.ts +2 -2
- package/src/config/loadConfig.ts +5 -3
- package/src/config/schemas.ts +6 -1
- package/src/daemon/AgentDaemon.ts +1 -0
- package/src/daemon/Scheduler.ts +49 -0
- package/src/db/repositories/TaskConfigRepository.ts +17 -1
- package/src/db/schema.ts +1 -0
- package/src/pi/PiAgentRunner.ts +35 -3
- package/src/pi/tools/taskTools.ts +188 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,31 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## 0.1.19 - 2026-05-18
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- Added task management as a built-in skill + tools. Agents with `task-management` in their `skills[]` can now list, create, update, and remove scheduled tasks via natural language.
|
|
8
|
+
- Added `task_list`, `task_create`, `task_update`, `task_remove` Pi SDK custom tools.
|
|
9
|
+
- Added `skills/task-management/SKILL.md` built-in skill document.
|
|
10
|
+
- Skill path resolution now supports bare names (e.g., `task-management`) resolved against pigent's built-in skills directory.
|
|
11
|
+
- Added `TaskConfigRepository.update()` and `countByAgentAndChatId()` methods.
|
|
12
|
+
- Added `Scheduler.addDynamicTaskFromRow()` and `reloadTasks()` for tool-driven hot-reload.
|
|
13
|
+
- AgentRunner now accepts optional Scheduler reference and builds per-run custom tools with agent+chat context.
|
|
14
|
+
- Capped at 5 tasks per agent per chat.
|
|
15
|
+
- Default assistant agent now includes `task-management` skill.
|
|
16
|
+
|
|
17
|
+
## 0.1.18 - 2026-05-18
|
|
18
|
+
|
|
19
|
+
### Added
|
|
20
|
+
|
|
21
|
+
- Added per-agent skill loading. Agent `skills[]` (relative to agent dir) and profile `defaultSkills[]` (relative to profile dir) are now resolved and passed to Pi SDK via `DefaultResourceLoader.additionalSkillPaths`. Skills are discovered and injected into the system prompt by the Pi SDK.
|
|
22
|
+
- Added `LoadedProfileConfig` type tracking profile `baseDir` for path resolution.
|
|
23
|
+
|
|
24
|
+
## 0.1.17 - 2026-05-18
|
|
25
|
+
|
|
26
|
+
### Added
|
|
27
|
+
|
|
28
|
+
- Added per-task `maxRunsPerHour` rate limit (default 12) to the scheduler. Skips execution when the cap is reached within the rolling hour window. Configurable per task in `pigent.yaml` task configs. DB-created tasks use the default unless the column is set.
|
|
4
29
|
|
|
5
30
|
## 0.1.16 - 2026-05-18
|
|
6
31
|
|
package/TODO.md
CHANGED
|
@@ -144,9 +144,10 @@
|
|
|
144
144
|
- [x] Reuse Pi session files across messages
|
|
145
145
|
- [x] Self-heal missing runtime `agent_sessions` columns after partial/mismatched migration state
|
|
146
146
|
- [x] Make README more end-user facing
|
|
147
|
-
- [
|
|
148
|
-
- [
|
|
149
|
-
- [
|
|
147
|
+
- [x] Confirm per-agent system prompt injection
|
|
148
|
+
- [x] Confirm per-agent skills loading
|
|
149
|
+
- [x] Confirm per-agent extensions loading
|
|
150
|
+
- [ ] Confirm per-agent custom tools loading
|
|
150
151
|
- [x] Prototype one prompt through Pi SDK
|
|
151
152
|
- [x] Decide CLI fallback strategy if SDK gaps appear
|
|
152
153
|
|
|
@@ -166,8 +167,9 @@
|
|
|
166
167
|
- [x] Add `/task remove <id>` command
|
|
167
168
|
- [x] Scheduler loads tasks from both config file + DB
|
|
168
169
|
- [x] Share session lock between Scheduler and AgentRunner (prevent concurrent Pi runs for same agent+chat)
|
|
169
|
-
- [
|
|
170
|
-
- [
|
|
170
|
+
- [x] Add max task runs per hour rate limit
|
|
171
|
+
- [x] Add `/task status` or similar command
|
|
172
|
+
- [x] Add task management as agent skill + tools (natural language task CRUD)
|
|
171
173
|
|
|
172
174
|
## Policy And Safety
|
|
173
175
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ALTER TABLE `task_configs` ADD `max_runs_per_hour` integer;
|