picoclaw/pkg/config
lxowalle 2992eccbf0
feat: add request-scoped context policies (#2914)
* feat: add request-scoped context policies

Add named turn profiles under agents.defaults so callers can opt into
per-request context and tool policies without changing default chat behavior.

Profiles can disable history, system context, skill prompts, or tools, and can
limit skills/tools with allow lists. Wire profile selection through Pico message
payloads, agent turn execution, Web chat selection, and Web visual config.

Reject invalid turn profiles before saving config through Web APIs and document
the new request context policy behavior.

* fix: address turn profile review blockers

* feat: simplify request context policy config

* fix: suppress tool prompt when turn tools are disabled

* fix: enforce turn profile tool restrictions
2026-05-22 10:06:40 +08:00
..
config.go feat: add request-scoped context policies (#2914) 2026-05-22 10:06:40 +08:00
config_channel.go feat: support streaming (#2892) 2026-05-19 16:38:47 +08:00
config_channel_test.go feat: support streaming (#2892) 2026-05-19 16:38:47 +08:00
config_old.go refactor(config): make config.Channel to multiple instance support 2026-04-13 22:21:21 +08:00
config_struct.go feat(web): support list editing for channel array fields (#2595) 2026-04-21 16:04:28 +08:00
config_struct_test.go refactor skills registries and add GitHub-backed skill discovery (#2442) 2026-04-14 15:14:16 +08:00
config_test.go feat: add request-scoped context policies (#2914) 2026-05-22 10:06:40 +08:00
defaults.go feat: support streaming (#2892) 2026-05-19 16:38:47 +08:00
diagnostics.go fix(config): show precise malformed config diagnostics (#2415) 2026-04-27 09:45:52 +08:00
envkeys.go feat(host): complete launcher and gateway multi-host binding support 2026-04-14 14:04:36 +08:00
events.go feat(events): add configurable runtime event logging 2026-04-26 17:41:00 +08:00
events_test.go feat(events): add configurable runtime event logging 2026-04-26 17:41:00 +08:00
example_security_usage.go Merge branch 'main' into fix-doc 2026-03-25 11:13:17 +08:00
gateway.go feat(host): complete launcher and gateway multi-host binding support 2026-04-14 14:04:36 +08:00
gateway_host_env_test.go feat(host): complete launcher and gateway multi-host binding support 2026-04-14 14:04:36 +08:00
legacy_bindings.go fix(session): restore thread and legacy compatibility 2026-04-08 00:32:53 +08:00
mcp_transport.go fix(mcp): support streamable HTTP alias and request-response mode 2026-05-07 19:24:02 +02:00
migration.go feat: agent self evolution (#2847) 2026-05-11 16:13:27 +08:00
migration_integration_test.go refactor skills registries and add GitHub-backed skill discovery (#2442) 2026-04-14 15:14:16 +08:00
migration_test.go refactor(config): make config.Channel to multiple instance support 2026-04-13 22:21:21 +08:00
model_config_test.go feat: support streaming (#2892) 2026-05-19 16:38:47 +08:00
multikey_test.go feat: support streaming (#2892) 2026-05-19 16:38:47 +08:00
security.go fix(config): show precise malformed config diagnostics (#2415) 2026-04-27 09:45:52 +08:00
security_integration_test.go fix(config): show precise malformed config diagnostics (#2415) 2026-04-27 09:45:52 +08:00
security_test.go refactor(config): make config.Channel to multiple instance support 2026-04-13 22:21:21 +08:00
turn_profile.go feat: add request-scoped context policies (#2914) 2026-05-22 10:06:40 +08:00
version.go feat:Modify the location where version is obtained, and insert version information into the context (#1300) 2026-03-10 17:42:05 +08:00
version_test.go feat:Modify the location where version is obtained, and insert version information into the context (#1300) 2026-03-10 17:42:05 +08:00