Commit 26e9166
authored
Three MINOR issues codex flagged on the #62 review:
1. plugin_list_styles `skill` arg had no path-traversal guard. An
input like `slides/../_unpublished/mofa-video` escaped the
intended catalog and could list TOML files under `_unpublished/`.
Now restricted to a single ASCII slug (letters, digits, '-',
'_'); leading dots and any path separator are rejected.
2. `mofa_list_styles` output (both the JSON summary and the human
text) leaked absolute `styles_dir` paths into the LLM context.
Same for the missing-style bail in `plugin_slides`. Both
stripped — the absolute path is operator detail, not LLM context.
3. SKILL.md "Output Paths" said the workspace contract picks up the
deck via the plugin's `files_to_send`, but mofa_slides does not
emit a files_to_send envelope — the host derives it from the
`out` arg. Reworded to match actual behavior.
1 parent a322c37 commit 26e9166
2 files changed
Lines changed: 22 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
546 | 546 | | |
547 | 547 | | |
548 | 548 | | |
549 | | - | |
| 549 | + | |
550 | 550 | | |
551 | 551 | | |
552 | 552 | | |
553 | 553 | | |
554 | | - | |
555 | | - | |
556 | | - | |
| 554 | + | |
| 555 | + | |
557 | 556 | | |
558 | 557 | | |
559 | 558 | | |
| |||
929 | 928 | | |
930 | 929 | | |
931 | 930 | | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
932 | 947 | | |
933 | 948 | | |
934 | 949 | | |
| |||
986 | 1001 | | |
987 | 1002 | | |
988 | 1003 | | |
989 | | - | |
990 | 1004 | | |
991 | 1005 | | |
992 | 1006 | | |
993 | 1007 | | |
994 | 1008 | | |
995 | | - | |
996 | | - | |
997 | | - | |
998 | | - | |
| 1009 | + | |
999 | 1010 | | |
1000 | | - | |
1001 | | - | |
1002 | | - | |
1003 | | - | |
1004 | | - | |
| 1011 | + | |
1005 | 1012 | | |
1006 | 1013 | | |
1007 | 1014 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
0 commit comments