@cratis/pi 7.150.0 → 7.150.2
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/package/corpus/hooks/README.md +24 -1
- package/package/corpus/hooks/scripts/cratis-guard-secrets.sh +81 -18
- package/package/corpus/hooks/scripts/cratis-guard-shell-writes.sh +180 -33
- package/package/corpus/hooks/scripts/cratis-guard-writes.sh +3 -1
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-tools.md +2 -2
- package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract.json +6047 -724
- package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract.version +1 -1
- package/package.json +1 -1
|
@@ -206,12 +206,14 @@ function tokens(s, side, i, c, j, k, t, copy, jumps, first, closing) {
|
|
|
206
206
|
s = tolower(s)
|
|
207
207
|
if (side == 1) {
|
|
208
208
|
copy = s
|
|
209
|
+
if (s ~ /[@?*+!]\(/) exit 2
|
|
209
210
|
if (index(s, "{") && index(s, "[")) exit 2
|
|
210
211
|
if (gsub(/\[/, "[", copy) > 64) exit 2
|
|
211
212
|
first = index(s, "{")
|
|
212
213
|
for (k = length(s); k > first; k--) if (substr(s, k, 1) == "}") { closing = k; break }
|
|
213
214
|
if (first && closing) {
|
|
214
215
|
if (index(substr(s, first, closing - first + 1), "/")) exit 2
|
|
216
|
+
if (substr(s, first, closing - first + 1) ~ /[$`'"\\]/) exit 2
|
|
215
217
|
if (substr(s, 1, first - 1) substr(s, closing + 1) ~ /[^a-z0-9._\/*?,+=:@%-]/) exit 2
|
|
216
218
|
s = substr(s, 1, first) substr(s, closing)
|
|
217
219
|
}
|
|
@@ -425,7 +427,7 @@ if [ "$reference_mode" = 1 ]; then
|
|
|
425
427
|
new_content=""
|
|
426
428
|
for candidate in "${candidates[@]}"; do
|
|
427
429
|
reference_pattern=0
|
|
428
|
-
case "$candidate" in *'*'* | *'?'* | *'['* | *'{'*) reference_pattern=1 ;; esac
|
|
430
|
+
case "$candidate" in *'*'* | *'?'* | *'['* | *'{'* | *'@('* | *'+('* | *'!('*) reference_pattern=1 ;; esac
|
|
429
431
|
if classify_file "$candidate" "$reference_pattern"; then printf '%s\n' "$candidate"; continue; fi
|
|
430
432
|
# Existing generated files can have arbitrary names; inspect actual glob matches too.
|
|
431
433
|
if [ "$reference_pattern" = 1 ]; then
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
- Formatting and recovery limits
|
|
26
26
|
- Code attachments
|
|
27
27
|
|
|
28
|
-
The standalone MCP server lists
|
|
28
|
+
The standalone MCP server lists 48 tools as of Screenplay 6.11 (including the MCP-Apps visualization tool, `migrate` and `list-storylines`); `tools/list` is the authority for the installed server, and the CLI-bundled MCP (`cratis screenplay mcp`) can be an older Screenplay that lacks newer tools.
|
|
29
29
|
|
|
30
30
|
The supported CLI launch is `cratis screenplay mcp <model-root>`, or `cratis screenplay mcp`
|
|
31
31
|
alone inside a project, where the CLI reuses existing model/workspace roots.
|
|
@@ -66,7 +66,7 @@ the [MCP loop](mcp-loop.md).
|
|
|
66
66
|
|
|
67
67
|
| Group | Tools | Intent |
|
|
68
68
|
| --- | --- | --- |
|
|
69
|
-
| Understanding | `describe-application`, `search-declarations`, `find-declaration`, `declaration-details` | Navigate logical hierarchy
|
|
69
|
+
| Understanding | `describe-application`, `search-declarations`, `find-declaration`, `declaration-details`, `list-storylines` (one optional argument) | Navigate logical hierarchy, inspect bounded details and list storylines |
|
|
70
70
|
| References and examples | `find-references`, `dependencies`, `dependency-graph`, `find-fixtures`, `find-assertion-gaps`, `find-specification-obligations`, `find-modeling-smells`, `trace-lineage`, `semantic-diff` | Inspect declared relationships and authored examples, not executed coverage |
|
|
71
71
|
| Source and validation | `diagnostics`, `ui-profiles` (also the design system, themes and resolved values per mode), `read-document`, `merged-document`, `syntax-schema` | Read exact source or typed structure and diagnose problems |
|
|
72
72
|
| Workspace inspection | `open-workspace`, `read-workspace`, `read-ast`, `workspace-state`, `export-workspace`, `repair-capabilities` | Obtain current identities, handles, readiness, code attachment requirements, source-map locations, durable-state status and the repair catalog |
|