@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.
Files changed (42) hide show
  1. package/README.md +32 -2
  2. package/conformance/fixture.acidcat.json +96 -0
  3. package/dist/conform-LH9KgQ9-.js +5045 -0
  4. package/dist/index.d.ts +164 -4
  5. package/dist/index.js +96 -4
  6. package/dist/main.d.ts +1 -2
  7. package/dist/main.js +1090 -7
  8. package/package.json +4 -3
  9. package/dist/catalog.d.ts +0 -12
  10. package/dist/catalog.js +0 -149
  11. package/dist/conform/check.d.ts +0 -47
  12. package/dist/conform/check.js +0 -178
  13. package/dist/conform/cli.d.ts +0 -5
  14. package/dist/conform/cli.js +0 -721
  15. package/dist/conform/http.d.ts +0 -6
  16. package/dist/conform/http.js +0 -297
  17. package/dist/conform/index.d.ts +0 -69
  18. package/dist/conform/index.js +0 -80
  19. package/dist/conform/mcp-stdio.d.ts +0 -7
  20. package/dist/conform/mcp-stdio.js +0 -291
  21. package/dist/conform/mcp.d.ts +0 -47
  22. package/dist/conform/mcp.js +0 -754
  23. package/dist/conform/poll.d.ts +0 -13
  24. package/dist/conform/poll.js +0 -295
  25. package/dist/conform/properties.d.ts +0 -12
  26. package/dist/conform/properties.js +0 -151
  27. package/dist/conform/serve.d.ts +0 -12
  28. package/dist/conform/serve.js +0 -96
  29. package/dist/conform/server-card.d.ts +0 -5
  30. package/dist/conform/server-card.js +0 -142
  31. package/dist/conform/sse.d.ts +0 -9
  32. package/dist/conform/sse.js +0 -53
  33. package/dist/conform/webhook.d.ts +0 -30
  34. package/dist/conform/webhook.js +0 -481
  35. package/dist/conform/webmcp.d.ts +0 -53
  36. package/dist/conform/webmcp.js +0 -232
  37. package/dist/json/catalog.schema.json.js +0 -170
  38. package/dist/json/fixture.acidcat.json.js +0 -396
  39. package/dist/json/package.json.js +0 -3
  40. package/dist/json/server-card.schema.json.js +0 -281
  41. package/dist/json.d.ts +0 -11
  42. 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 };