@acid-cat/cli 0.23.0 → 0.25.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/README.md +13 -3
- package/conformance/fixture.acidcat.json +20 -1
- package/conformance/mcp-skills/fixture-guide/SKILL.md +13 -0
- package/conformance/mcp-skills/fixture-guide/assets/sample.bin +0 -0
- package/conformance/mcp-skills/fixture-guide/references/notes.txt +2 -0
- package/conformance/mcp-skills/fixture-other/SKILL.md +8 -0
- package/dist/{conform-LH9KgQ9-.js → conform-CnopVX0Y.js} +358 -112
- package/dist/index.d.ts +14 -1
- package/dist/index.js +2 -2
- package/dist/main.js +2 -2
- package/package.json +5 -3
package/dist/index.d.ts
CHANGED
|
@@ -92,6 +92,19 @@ interface PollSettings {
|
|
|
92
92
|
/** The number of occurrences that a lease keeps. With it, conform tests the occurrences of a cursor older than the buffer. It must be 97 or less. */
|
|
93
93
|
readonly bufferLimit?: number | undefined;
|
|
94
94
|
}
|
|
95
|
+
interface McpSkillsOptions {
|
|
96
|
+
/** The time, in milliseconds, that each check has to settle. The default is `DEADLINE`, 30 seconds. */
|
|
97
|
+
readonly deadline?: number | undefined;
|
|
98
|
+
/** When it aborts, each check that runs stops, and no other check starts. */
|
|
99
|
+
readonly signal?: AbortSignal | undefined;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Check the skills that an MCP server through HTTP serves for a target of a catalog (spec/surfaces/mcp.md#skills):
|
|
103
|
+
* `server/discover`, `skills/list`, `skills/get`, `resources/list` and `resources/read`. The digest and the size of each
|
|
104
|
+
* file must agree with the bytes that `resources/read` gives. A skill that another target of the catalog names gets the
|
|
105
|
+
* same answer as a skill that does not exist.
|
|
106
|
+
*/
|
|
107
|
+
export declare function checkMcpSkills(url: string, catalog: CatalogDocument, target: string, options?: McpSkillsOptions): Promise<readonly Check[]>;
|
|
95
108
|
interface Served {
|
|
96
109
|
/** The base URL, for example `http://127.0.0.1:40123`. */
|
|
97
110
|
readonly url: string;
|
|
@@ -161,4 +174,4 @@ interface ConformOptions {
|
|
|
161
174
|
}
|
|
162
175
|
/** Run all checks for the surfaces that the options give. */
|
|
163
176
|
export declare function conform(options: ConformOptions): Promise<readonly Check[]>;
|
|
164
|
-
export { type Catalog, type Check, type ConformOptions, type PollSettings, type Report, type Routes, type Served, type WebHandler, type WebhookSettings, bundle, targetCatalog };
|
|
177
|
+
export { type Catalog, type Check, type ConformOptions, type McpSkillsOptions, type PollSettings, type Report, type Routes, type Served, type WebHandler, type WebhookSettings, bundle, targetCatalog };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as bundle, i as fixture, n as checkMcpSkills, s as check, t as conform, u as targetCatalog } from "./conform-CnopVX0Y.js";
|
|
2
2
|
import { createServer } from "node:http";
|
|
3
3
|
// src/conform/serve.ts
|
|
4
4
|
/** Serve one handler for all paths, or handlers by path prefix, on `127.0.0.1` and a free port. */
|
|
@@ -94,4 +94,4 @@ function bodyOf(incoming) {
|
|
|
94
94
|
}
|
|
95
95
|
}, { highWaterMark: 0 });
|
|
96
96
|
}
|
|
97
|
-
export { bundle, check, conform, fixture, serve, targetCatalog };
|
|
97
|
+
export { bundle, check, checkMcpSkills, conform, fixture, serve, targetCatalog };
|
package/dist/main.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
2
|
+
import { c as isCatalog, d as parseJson, l as readSchemas, o as catalogSchemas, r as DEADLINE, s as check, t as conform, u as targetCatalog$1 } from "./conform-CnopVX0Y.js";
|
|
3
3
|
import { canonicalText } from "@acid-cat/catalog";
|
|
4
4
|
import { REFERENCE, isJsonObject, typesUsedBy, visitObjects } from "@acid-cat/spec-ts";
|
|
5
5
|
import { Console, Data, Effect, FileSystem, Option, SchemaRepresentation } from "effect";
|
|
6
6
|
import { NodeRuntime, NodeServices } from "@effect/platform-node";
|
|
7
7
|
import { Argument, Command, Flag } from "effect/cli";
|
|
8
8
|
// package.json
|
|
9
|
-
var version = "0.
|
|
9
|
+
var version = "0.25.0";
|
|
10
10
|
// src/generate/keywords.ts
|
|
11
11
|
/** JSON Schema 2020-12 treats `format` as an annotation by default. */
|
|
12
12
|
const ANNOTATIONS = /* @__PURE__ */ new Set([
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acid-cat/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.25.0",
|
|
4
4
|
"description": "The AcidCat command line: check and format catalogs, print the catalog of a target, and test implementations.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"acidcat",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"files": [
|
|
23
23
|
"dist",
|
|
24
24
|
"conformance/fixture.acidcat.json",
|
|
25
|
+
"conformance/mcp-skills",
|
|
25
26
|
"conformance/server-card.LICENSE",
|
|
26
27
|
"conformance/server-card.schema.json"
|
|
27
28
|
],
|
|
@@ -39,8 +40,8 @@
|
|
|
39
40
|
"access": "public"
|
|
40
41
|
},
|
|
41
42
|
"dependencies": {
|
|
42
|
-
"@acid-cat/catalog": "0.
|
|
43
|
-
"@acid-cat/spec-ts": "0.
|
|
43
|
+
"@acid-cat/catalog": "0.25.0",
|
|
44
|
+
"@acid-cat/spec-ts": "0.25.0",
|
|
44
45
|
"@effect/platform-node": "^4.1.3",
|
|
45
46
|
"@effect/platform-node-shared": "^4.1.3",
|
|
46
47
|
"@modelcontextprotocol/client": "2.4.0",
|
|
@@ -56,6 +57,7 @@
|
|
|
56
57
|
}
|
|
57
58
|
},
|
|
58
59
|
"devDependencies": {
|
|
60
|
+
"@acid-cat/shared-ts": "0.25.0",
|
|
59
61
|
"@types/node": "26.6.6",
|
|
60
62
|
"playwright": "1.65.0",
|
|
61
63
|
"tsdown": "0.23.7",
|