Commit e9ba82a
feat(claw-code): add Claw Code platform support to installer (#208)
* feat(claw-code): add Claw Code platform support to installer
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* feat(claw-code): sync evolve-lite skills with claude (sharing + updates)
Bring claw-code's evolve-lite plugin up to parity with claude's after
rebase: port post-rebase updates to learn/recall/save/save-trajectory,
add the publish/subscribe/sync/unsubscribe sharing skills, and sync
shared lib/ (audit.py, config.py, entity_io.py). SKILL.md command
examples are adapted to claw's sh -lc path-resolution pattern instead
of \${CLAUDE_PLUGIN_ROOT}.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* fix(evolve-lite): address PR review feedback (CodeRabbit on #208)
- claw-code retrieve_entities.sh: clarify the PreToolUse hook is optional
and not auto-registered by the packaged plugin
- entity_io.write_entity_file: initialize target=None so the except handler
can't raise UnboundLocalError (claude + claw-code)
- save_entities.py: reject malformed payloads where `entities` is not a
list (claude + claw-code + codex + bob)
- claw-code recall retrieve_entities.py: redact HOOK_*/CLAWD_* env values
(HOOK_TOOL_INPUT may carry prompts/secrets); only HOOK_EVENT and
HOOK_TOOL_NAME remain logged verbatim
- save_trajectory.py: prefer EVOLVE_DIR over CLAUDE_PROJECT_ROOT (matches
the documented contract); claim trajectory filenames atomically with
O_CREAT|O_EXCL to survive same-second races; require `messages` to be
a non-empty list instead of accepting any truthy value (claude + claw-code)
- claw-code save-trajectory/SKILL.md: drop the duplicate Step 5 block —
keep only the CLAW_CONFIG_HOME-aware variant
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* fix(evolve-lite): address PR #208 round-2 review feedback
- config._cast: quoted YAML scalars stay strings — only unquoted scalars
coerce to bool/null/int/float/list (claude + claw-code)
- config._coerce_repo: reject names that fail is_valid_repo_name so a
hand-edited evolve.config.yaml can't smuggle path traversal into
downstream clone paths (claude + claw-code)
- claw-code recall retrieve_entities.py: guard input_data type before
calling .keys(); non-dict JSON no longer aborts recall
- subscribe clone: wrap subprocess.run with timeout + capture_output and
clean up the partial dest directory on failure (claude + claw-code +
codex + bob)
- sync._head_hash: route through the existing _git helper so
subprocess.TimeoutExpired no longer aborts the whole sync run
(claude + claw-code)
- sync --config: load_config takes project_root, not filepath — the
prior call raised TypeError on every --config usage. Resolve the path
to its parent and pass project_root (claude + claw-code + codex)
- unsubscribe: add --force; refuse to delete a write-scope clone without
it (the clone may hold unpushed publish commits). SKILL.md updated to
surface the flag for the agent. (claude + claw-code + codex + bob)
- claw-code sync/SKILL.md and claude sync/SKILL.md: collapse the two
example blockquotes into one block (markdownlint MD028)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Punleuk Oum <5661986+illeatmyhat@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 9885f3f commit e9ba82a
39 files changed
Lines changed: 3609 additions & 61 deletions
File tree
- platform-integrations
- bob/evolve-lite/skills
- evolve-lite:learn/scripts
- evolve-lite:subscribe/scripts
- evolve-lite:unsubscribe/scripts
- claude/plugins/evolve-lite
- lib
- skills
- learn/scripts
- save-trajectory/scripts
- subscribe/scripts
- sync
- scripts
- unsubscribe
- scripts
- claw-code/plugins/evolve-lite
- .claude-plugin
- hooks
- lib
- skills
- learn
- scripts
- publish
- scripts
- recall
- scripts
- save-trajectory
- scripts
- save
- subscribe
- scripts
- sync
- scripts
- unsubscribe
- scripts
- codex/plugins/evolve-lite/skills
- learn/scripts
- subscribe/scripts
- sync/scripts
- unsubscribe/scripts
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
56 | 60 | | |
57 | 61 | | |
58 | 62 | | |
| |||
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
67 | 77 | | |
68 | 78 | | |
69 | 79 | | |
| |||
Lines changed: 17 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
39 | 44 | | |
40 | 45 | | |
41 | 46 | | |
| |||
56 | 61 | | |
57 | 62 | | |
58 | 63 | | |
59 | | - | |
60 | | - | |
| 64 | + | |
| 65 | + | |
61 | 66 | | |
62 | 67 | | |
63 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
64 | 79 | | |
65 | 80 | | |
66 | 81 | | |
| |||
Lines changed: 13 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
179 | | - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
180 | 184 | | |
181 | 185 | | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
| 188 | + | |
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| |||
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
338 | 344 | | |
339 | 345 | | |
340 | 346 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
| 272 | + | |
272 | 273 | | |
273 | 274 | | |
274 | 275 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
51 | 55 | | |
52 | 56 | | |
53 | 57 | | |
| |||
platform-integrations/claude/plugins/evolve-lite/skills/save-trajectory/scripts/save_trajectory.py
Lines changed: 37 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
51 | 57 | | |
52 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
53 | 63 | | |
54 | 64 | | |
55 | 65 | | |
56 | 66 | | |
57 | 67 | | |
58 | | - | |
59 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
60 | 75 | | |
61 | 76 | | |
62 | 77 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
72 | 86 | | |
73 | 87 | | |
74 | 88 | | |
| |||
99 | 113 | | |
100 | 114 | | |
101 | 115 | | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
106 | 120 | | |
107 | 121 | | |
108 | 122 | | |
109 | 123 | | |
110 | | - | |
| 124 | + | |
111 | 125 | | |
112 | | - | |
| 126 | + | |
113 | 127 | | |
114 | | - | |
| 128 | + | |
115 | 129 | | |
116 | | - | |
117 | 130 | | |
118 | 131 | | |
119 | 132 | | |
| |||
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
99 | 109 | | |
100 | 110 | | |
101 | 111 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
Lines changed: 10 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
| 45 | + | |
| 46 | + | |
52 | 47 | | |
53 | 48 | | |
54 | 49 | | |
| |||
138 | 133 | | |
139 | 134 | | |
140 | 135 | | |
141 | | - | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
142 | 144 | | |
143 | 145 | | |
144 | 146 | | |
| |||
0 commit comments