Commit graph

10 commits

Author SHA1 Message Date
ZanzyTHEbar
d53614360a test(agent): fix ContinuityKeepCount; refactor(skills): YAML-only frontmatter 2026-03-05 14:27:52 +00:00
ZanzyTHEbar
623c28f6dd fix(memory): queue and loader updates 2026-02-22 22:53:48 +00:00
ZanzyTHEbar
c2719ff30f refactor(pkg): session, skills, state, runtime updates 2026-02-22 22:49:38 +00:00
ZanzyTHEbar
db4d98a1d4 chore!: rename module from github.com/sipeed/picoclaw to github.com/ZanzyTHEbar/dragonscale
Update Go module path and all import references across the codebase.
Rename cmd/picoclaw/ → cmd/dragonscale/, pkg/pcerrors/ → pkg/dserrors/.
Update all environment variable prefixes PICOCLAW_* → DRAGONSCALE_*.
Remove stale translated READMEs (ja, pt-br, zh) and legacy community
roadmap doc. Update CI workflows, Dockerfile, goreleaser, and Makefile
to reference the new binary name and module path.

BREAKING CHANGE: module path changed; all consumers must update imports
2026-02-21 18:56:35 +00:00
ZanzyTHEbar
f03058dd65 fix: graceful shutdown timeouts, context cleanup, memory/skills/state fixes
- health: Shutdown uses a 5s context instead of context.Background()
- discord: remove eager context.Background() assignment; getContext()
  returns context.TODO() when ctx is nil
- wasm/transport: Close uses a 5s timeout context
- memory/migrations: fix SQL migration idempotency guards
- memory/delegate/sqlite: minor cleanup
- memory/delegate/factory_test: remove Memory.Enabled field (removed in config)
- securebus/bus: minor cleanup
- securebus/transport: minor cleanup
- skills/installer, skills/loader: XDG-aware path resolution
- state: minor cleanup
- fantasy/adapter: minor cleanup; adapter_test: add coverage
- fantasy/factory: minor cleanup
2026-02-19 18:05:26 +00:00
ZanzyTHEbar
05457ff528 refactor(json)!: migrate from encoding/json to go-json-experiment/json v2
Replace encoding/json across the entire codebase with the experimental
v2 JSON package. Key changes:

- json.RawMessage → jsontext.Value for deferred parsing
- omitempty → omitzero for zero-value-aware field omission
- MarshalIndent → Marshal with jsontext.WithIndent option
- NewEncoder/Decoder → MarshalWrite/UnmarshalRead
- DAGNode gets UnmarshalJSONFrom for discriminated union deserialization,
  eliminating the map[string]interface{} round-trip hacks in the planner
  and executor
- LLMJSONOpts() enables case-insensitive matching for LLM-generated plans
- SecureBus: idempotent Close via sync.Once, logged audit errors,
  ToolSearch handler support

BREAKING CHANGE: json struct tags use omitzero instead of omitempty
2026-02-19 14:46:57 +00:00
ZanzyTHEbar
be1a74b2fd feat(skills): add dependency graph and template rendering
Introduce a skill dependency graph that resolves skill ordering
and detects cycles, plus a Go template rendering system for
parameterized skill definitions. Updates the skill loader to
leverage both systems for progressive skill disclosure.
2026-02-18 15:53:54 +00:00
ian
c6c82b3c44
feat(skills): add validation for skill info and test cases (#231)
Add validation logic for SkillInfo to ensure name and description meet requirements
Include test cases covering various validation scenarios
Add testify dependency for testing assertions
2026-02-16 02:12:50 +08:00
yinwm
21d60f63fc Add memory system, dynamic tool loading, and fix logging issues
- Add MemoryStore for persistent long-term and daily notes
- Add dynamic tool summary generation in system prompt
- Fix YAML frontmatter parsing for nanobot skill format
- Add GetSummaries() method to ToolRegistry
- Fix DebugCF logging to use structured metadata
- Improve web_search and shell tool descriptions
2026-02-11 00:14:33 +08:00
lxowalle
e17693b17c * First commit 2026-02-09 19:20:19 +08:00