@cratis/pi 7.9.3 → 7.10.0
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/harnesses/pi/extensions/cratis-mcp/configuration.ts +4 -3
- package/package/corpus/harnesses/pi/extensions/cratis-mcp/index.ts +1 -1
- package/package/corpus/mcp-servers.json +0 -1
- package/package/corpus/rules/ai-distribution.md +2 -1
- package/package/corpus/rules/profiles.md +2 -2
- package/package/corpus/skills/cratis-screenplay-toolchain/references/versions.md +1 -1
- package/package.json +1 -1
|
@@ -95,8 +95,9 @@ export function selectedServer(project: string, corpus: string) {
|
|
|
95
95
|
JSON.stringify(server.profiles) !== '["cratis/screenplay"]' || server.env !== undefined) {
|
|
96
96
|
throw new Error('Only the distributed native Cratis Screenplay MCP command is supported.');
|
|
97
97
|
}
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
// Without an explicit root the Cratis CLI locates the model itself: the existing .play files, else Source/src, else Screenplay/.
|
|
99
|
+
const root = object(screenplay) ? screenplay.root : undefined;
|
|
100
|
+
if (root !== undefined && typeof root !== 'string') throw new Error('Screenplay MCP root must be a project-relative string.');
|
|
100
101
|
const physicalProject = realpathSync(project);
|
|
101
|
-
return { project: physicalProject, root: physicalRoot(physicalProject, root) };
|
|
102
|
+
return { project: physicalProject, root: root === undefined ? undefined : physicalRoot(physicalProject, root) };
|
|
102
103
|
}
|
|
@@ -59,7 +59,7 @@ export function registerBridge(pi: ExtensionAPI, corpus: string, connect = start
|
|
|
59
59
|
failures.clear();
|
|
60
60
|
if (!selection) return;
|
|
61
61
|
if (uncertain) throw new Error('Screenplay mutation outcome remains unknown. Explicitly reload, inspect workspace-state, and obtain authorization before any recovery.');
|
|
62
|
-
const modelRoot = selection.root;
|
|
62
|
+
const modelRoot = selection.root ?? "the project's Screenplay model";
|
|
63
63
|
const activeConnection = connect(selection.project);
|
|
64
64
|
connection = activeConnection;
|
|
65
65
|
try {
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
"transport": "stdio",
|
|
8
8
|
"command": "cratis",
|
|
9
9
|
"args": ["screenplay", "mcp"],
|
|
10
|
-
"defaultRoot": ".cratis/screenplay",
|
|
11
10
|
"description": "Understand and safely author one Screenplay application through typed AST operations, reviewed proposals, durable identities, and explicit recovery."
|
|
12
11
|
}
|
|
13
12
|
]
|
|
@@ -45,7 +45,8 @@ remove only unchanged owned entries on uninstall. Unsupported adapters must be
|
|
|
45
45
|
reported explicitly rather than presented as configured.
|
|
46
46
|
|
|
47
47
|
Project model roots and opt-outs are consumer-owned configuration. Guidance
|
|
48
|
-
installation never
|
|
48
|
+
installation never creates or manages a model directory: the Screenplay MCP locates the model
|
|
49
|
+
itself (existing `.play` files, else `Source/` or `src/`, else a new `Screenplay/` folder). Ordinary
|
|
49
50
|
model writes still require the model-authoring proposal/apply contract and the
|
|
50
51
|
user's in-scope request.
|
|
51
52
|
|
|
@@ -150,8 +150,8 @@ Standalone Chronicle client usage (no Arc) in TypeScript is
|
|
|
150
150
|
|
|
151
151
|
### Event modeling with Screenplay
|
|
152
152
|
|
|
153
|
-
**Model first.** A repository is opted in only when its model root (
|
|
154
|
-
`.
|
|
153
|
+
**Model first.** A repository is opted in only when its model root (where the project's
|
|
154
|
+
`.play` files live: normally under `Source/` or `src/`, else `Screenplay/`) holds a committed `.play` file (`git ls-tree -r --name-only HEAD -- <root>` lists it) or the project explicitly set
|
|
155
155
|
`mcpServers.screenplay.root` in `.cratis/ai.json`; an empty directory, install output, an
|
|
156
156
|
installed profile or skill, a `.play` file outside the root or an untracked or uncommitted draft is not
|
|
157
157
|
opt-in. An accepted model under the root covering the scope is the contract and the source
|
|
@@ -79,7 +79,7 @@ not prove the older compiler: read the construct it names.
|
|
|
79
79
|
| Exit codes | 0 pass; 5 errors (or warnings with `--warnings-as-errors`); 1 path missing **or no `.play` files**. Information never fails | probed |
|
|
80
80
|
| Output | JSON lines: a `diagnostics` array with `severity`, `code`, `message`, `location`, then either `{"path","files","diagnostics":0}` or an error object. A passing folder run prints the file count | probed on 3.27.1 |
|
|
81
81
|
| File versus folder | file mode compiles one document and **ignores imports** (cli#244). Validate the folder | probed |
|
|
82
|
-
| MCP | `cratis screenplay mcp <root>`, or no argument inside a project
|
|
82
|
+
| MCP | `cratis screenplay mcp <root>`, or no argument inside a project: the server locates the model itself (existing `.play` files, else `Source/`/`src/`, else a new `Screenplay/` folder) unless `.cratis/ai.json` sets `mcpServers.screenplay.root`; 29 tools, no event-source, stream or route views. Fails fast only when an explicitly configured root does not exist | source `ScreenplayMcpRoot.cs:20-37` |
|
|
83
83
|
| Render | `cratis render` binds with the bundled compiler first, then Stage 4.24.0 admits. See `renderable-subset.md` | source |
|
|
84
84
|
| `prologue interpret` | no `--no-llm` flag; LLM resolution and `screenplay generate` flags were checked on 3.27.0 | source |
|
|
85
85
|
|