@acid-cat/cli 0.19.0 → 0.21.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 +32 -2
- package/conformance/fixture.acidcat.json +96 -0
- package/dist/conform-LH9KgQ9-.js +5045 -0
- package/dist/index.d.ts +164 -4
- package/dist/index.js +96 -4
- package/dist/main.d.ts +1 -2
- package/dist/main.js +1090 -7
- package/package.json +4 -3
- package/dist/catalog.d.ts +0 -12
- package/dist/catalog.js +0 -149
- package/dist/conform/check.d.ts +0 -47
- package/dist/conform/check.js +0 -178
- package/dist/conform/cli.d.ts +0 -5
- package/dist/conform/cli.js +0 -721
- package/dist/conform/http.d.ts +0 -6
- package/dist/conform/http.js +0 -297
- package/dist/conform/index.d.ts +0 -69
- package/dist/conform/index.js +0 -80
- package/dist/conform/mcp-stdio.d.ts +0 -7
- package/dist/conform/mcp-stdio.js +0 -291
- package/dist/conform/mcp.d.ts +0 -47
- package/dist/conform/mcp.js +0 -754
- package/dist/conform/poll.d.ts +0 -13
- package/dist/conform/poll.js +0 -295
- package/dist/conform/properties.d.ts +0 -12
- package/dist/conform/properties.js +0 -151
- package/dist/conform/serve.d.ts +0 -12
- package/dist/conform/serve.js +0 -96
- package/dist/conform/server-card.d.ts +0 -5
- package/dist/conform/server-card.js +0 -142
- package/dist/conform/sse.d.ts +0 -9
- package/dist/conform/sse.js +0 -53
- package/dist/conform/webhook.d.ts +0 -30
- package/dist/conform/webhook.js +0 -481
- package/dist/conform/webmcp.d.ts +0 -53
- package/dist/conform/webmcp.js +0 -232
- package/dist/json/catalog.schema.json.js +0 -170
- package/dist/json/fixture.acidcat.json.js +0 -396
- package/dist/json/package.json.js +0 -3
- package/dist/json/server-card.schema.json.js +0 -281
- package/dist/json.d.ts +0 -11
- package/dist/json.js +0 -13
package/dist/json.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { JsonObject } from "@acid-cat/spec-ts";
|
|
2
|
-
export type { JsonObject };
|
|
3
|
-
export declare const isObject: (value: unknown) => value is JsonObject;
|
|
4
|
-
export declare const isStringArray: (value: unknown) => value is readonly string[];
|
|
5
|
-
export declare const isRecordOf: <T>(value: unknown, isMember: (member: unknown) => member is T) => value is {
|
|
6
|
-
readonly [key: string]: T;
|
|
7
|
-
};
|
|
8
|
-
export declare const memberOf: (value: unknown, key: string) => unknown;
|
|
9
|
-
export declare function parseJson(text: string): unknown;
|
|
10
|
-
export declare function readJson(response: Response): Promise<unknown>;
|
|
11
|
-
export declare const isArrayOf: <T>(value: unknown, isItem: (item: unknown) => item is T) => value is readonly T[];
|
package/dist/json.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// src/json.ts
|
|
2
|
-
const isObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
3
|
-
const isStringArray = (value) => Array.isArray(value) && value.every((item) => typeof item === "string");
|
|
4
|
-
const isRecordOf = (value, isMember) => isObject(value) && Object.values(value).every(isMember);
|
|
5
|
-
const memberOf = (value, key) => isObject(value) ? value[key] : void 0;
|
|
6
|
-
function parseJson(text) {
|
|
7
|
-
return JSON.parse(text);
|
|
8
|
-
}
|
|
9
|
-
async function readJson(response) {
|
|
10
|
-
return await response.json();
|
|
11
|
-
}
|
|
12
|
-
const isArrayOf = (value, isItem) => Array.isArray(value) && value.every(isItem);
|
|
13
|
-
export { isArrayOf, isObject, isRecordOf, isStringArray, memberOf, parseJson, readJson };
|