@ultimat3/core 27.11.0 → 27.12.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.json +2 -2
- package/src/index.ts +1 -0
- package/src/mcp-exposure.ts +15 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ultimat3/core",
|
|
3
|
-
"version": "27.
|
|
3
|
+
"version": "27.12.0",
|
|
4
4
|
"description": "Ultimate's foundation: errors, context, env, config, clock, ids, logging, telemetry, lifecycle",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -37,6 +37,6 @@
|
|
|
37
37
|
"test": "bun test"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@ultimat3/schema": "27.
|
|
40
|
+
"@ultimat3/schema": "27.12.0"
|
|
41
41
|
}
|
|
42
42
|
}
|
package/src/index.ts
CHANGED
package/src/mcp-exposure.ts
CHANGED
|
@@ -14,6 +14,15 @@ export interface McpAnnotationHints {
|
|
|
14
14
|
readonly openWorldHint?: boolean;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
+
/**
|
|
18
|
+
* What an exposed action DOES, for a surface that dispatches by it (`@ultimat3/mcp`'s
|
|
19
|
+
* `surface: 'meta-split'`): `'write'` creates or changes app state, reversibly or within a
|
|
20
|
+
* standing budget; `'delete'` archives, cancels or deletes, sends something outside the app, or
|
|
21
|
+
* commits money. A query is a read and declares none. No default: a wrong one either hides a
|
|
22
|
+
* deletion behind an ordinary write or asks deletion-grade consent for an update.
|
|
23
|
+
*/
|
|
24
|
+
export type McpEffect = 'write' | 'delete';
|
|
25
|
+
|
|
17
26
|
/** One comparison a list filter accepts. A filter key is `<field><op>`: `status_eq`. */
|
|
18
27
|
export type McpListFilterOp = '_eq' | '_in' | '_gt' | '_lt' | '_cont';
|
|
19
28
|
|
|
@@ -64,6 +73,12 @@ export interface McpExposureDeclaration {
|
|
|
64
73
|
* nothing, `openWorldHint: true` for one that reaches outside the app.
|
|
65
74
|
*/
|
|
66
75
|
readonly annotations?: McpAnnotationHints;
|
|
76
|
+
/**
|
|
77
|
+
* The action's effect class — required for an action a `'meta-split'` surface groups
|
|
78
|
+
* (`X_MCP_EFFECT_UNDECLARED`), refused on a query (`X_MCP_EFFECT_CONFLICT`). Picks
|
|
79
|
+
* `write_resource` or `delete_resource`; ignored by every other surface.
|
|
80
|
+
*/
|
|
81
|
+
readonly effect?: McpEffect;
|
|
67
82
|
/** A list query's whitelist, carried to the tool for the meta surface. Never an action's. */
|
|
68
83
|
readonly listParams?: McpListParams;
|
|
69
84
|
}
|