@tzurp/openapi-skills 1.2.8 → 1.2.10

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 (79) hide show
  1. package/README.md +65 -15
  2. package/dist/cli.min.js +51 -0
  3. package/package.json +60 -64
  4. package/bin/openapi-skills +0 -4
  5. package/dist/cli.d.ts +0 -37
  6. package/dist/cli.js +0 -1646
  7. package/dist/cli.js.map +0 -1
  8. package/dist/client-schema-builder.d.ts +0 -35
  9. package/dist/client-schema-builder.js +0 -268
  10. package/dist/client-schema-builder.js.map +0 -1
  11. package/dist/helper/base64url-json.d.ts +0 -3
  12. package/dist/helper/base64url-json.js +0 -28
  13. package/dist/helper/base64url-json.js.map +0 -1
  14. package/dist/helper/dotNotation.d.ts +0 -3
  15. package/dist/helper/dotNotation.js +0 -34
  16. package/dist/helper/dotNotation.js.map +0 -1
  17. package/dist/helper/endpoint-filter.d.ts +0 -16
  18. package/dist/helper/endpoint-filter.js +0 -165
  19. package/dist/helper/endpoint-filter.js.map +0 -1
  20. package/dist/helper/endpoint-utils.d.ts +0 -2
  21. package/dist/helper/endpoint-utils.js +0 -10
  22. package/dist/helper/endpoint-utils.js.map +0 -1
  23. package/dist/helper/error-codes.d.ts +0 -27
  24. package/dist/helper/error-codes.js +0 -116
  25. package/dist/helper/error-codes.js.map +0 -1
  26. package/dist/helper/error-formatter.d.ts +0 -46
  27. package/dist/helper/error-formatter.js +0 -72
  28. package/dist/helper/error-formatter.js.map +0 -1
  29. package/dist/helper/get-operation-filter.d.ts +0 -17
  30. package/dist/helper/get-operation-filter.js +0 -26
  31. package/dist/helper/get-operation-filter.js.map +0 -1
  32. package/dist/helper/graphql.d.ts +0 -40
  33. package/dist/helper/graphql.js +0 -967
  34. package/dist/helper/graphql.js.map +0 -1
  35. package/dist/helper/http-client.d.ts +0 -28
  36. package/dist/helper/http-client.js +0 -90
  37. package/dist/helper/http-client.js.map +0 -1
  38. package/dist/helper/json-updater.d.ts +0 -17
  39. package/dist/helper/json-updater.js +0 -195
  40. package/dist/helper/json-updater.js.map +0 -1
  41. package/dist/helper/logger.d.ts +0 -13
  42. package/dist/helper/logger.js +0 -56
  43. package/dist/helper/logger.js.map +0 -1
  44. package/dist/helper/output-size.d.ts +0 -5
  45. package/dist/helper/output-size.js +0 -7
  46. package/dist/helper/output-size.js.map +0 -1
  47. package/dist/helper/parameter-schema.d.ts +0 -14
  48. package/dist/helper/parameter-schema.js +0 -36
  49. package/dist/helper/parameter-schema.js.map +0 -1
  50. package/dist/helper/paths.d.ts +0 -11
  51. package/dist/helper/paths.js +0 -47
  52. package/dist/helper/paths.js.map +0 -1
  53. package/dist/helper/prompt-delete.d.ts +0 -1
  54. package/dist/helper/prompt-delete.js +0 -13
  55. package/dist/helper/prompt-delete.js.map +0 -1
  56. package/dist/helper/request-artifacts.d.ts +0 -14
  57. package/dist/helper/request-artifacts.js +0 -60
  58. package/dist/helper/request-artifacts.js.map +0 -1
  59. package/dist/helper/request-preparation.d.ts +0 -23
  60. package/dist/helper/request-preparation.js +0 -85
  61. package/dist/helper/request-preparation.js.map +0 -1
  62. package/dist/helper/sanitizer.d.ts +0 -1
  63. package/dist/helper/sanitizer.js +0 -17
  64. package/dist/helper/sanitizer.js.map +0 -1
  65. package/dist/helper/update-check.d.ts +0 -1
  66. package/dist/helper/update-check.js +0 -36
  67. package/dist/helper/update-check.js.map +0 -1
  68. package/dist/index.d.ts +0 -50
  69. package/dist/index.js +0 -163
  70. package/dist/index.js.map +0 -1
  71. package/dist/install-skill.d.ts +0 -5
  72. package/dist/install-skill.js +0 -139
  73. package/dist/install-skill.js.map +0 -1
  74. package/dist/parser.d.ts +0 -12
  75. package/dist/parser.js +0 -393
  76. package/dist/parser.js.map +0 -1
  77. package/dist/validate-response.d.ts +0 -47
  78. package/dist/validate-response.js +0 -1017
  79. package/dist/validate-response.js.map +0 -1
package/package.json CHANGED
@@ -1,64 +1,60 @@
1
- {
2
- "name": "@tzurp/openapi-skills",
3
- "version": "1.2.8",
4
- "description": "CLI toolkit for exploring OpenAPI and GraphQL schemas, generating operation artifacts, validators, and tests. Includes an agent skill bundle that teaches AI tools how to operate the CLI safely and efficiently.",
5
- "bin": {
6
- "openapi-skills": "bin/openapi-skills"
7
- },
8
- "repository": {
9
- "type": "git",
10
- "url": "git+https://github.com/tzurp/openapi-skills-cli.git"
11
- },
12
- "publishConfig": {
13
- "access": "public"
14
- },
15
- "scripts": {
16
- "test": "vitest --reporter verbose",
17
- "build": "tsc",
18
- "prepublishOnly": "npm run build && npm test"
19
- },
20
- "keywords": [
21
- "openapi",
22
- "swagger",
23
- "graphql",
24
- "cli",
25
- "api",
26
- "agent",
27
- "skills",
28
- "schema",
29
- "validator",
30
- "testing"
31
- ],
32
- "author": "Tzur Paldi",
33
- "license": "Apache-2.0",
34
- "type": "module",
35
- "devDependencies": {
36
- "@types/find-root": "^1.1.4",
37
- "@types/fs-extra": "^11.0.4",
38
- "@types/node": "^26.2.0",
39
- "@types/prompts": "^2.4.9",
40
- "@vitest/coverage-v8": "^4.1.1",
41
- "@vitest/ui": "^4.1.1",
42
- "execa": "^10.0.1",
43
- "ts-node": "^10.9.2",
44
- "ts-node-dev": "^2.0.0",
45
- "typescript": "^7.0.2",
46
- "vitest": "^4.1.5"
47
- },
48
- "dependencies": {
49
- "@apidevtools/json-schema-ref-parser": "^15.5.1",
50
- "@apidevtools/swagger-parser": "^12.1.0",
51
- "ajv": "^8.18.0",
52
- "commander": "^15.0.0",
53
- "find-root": "^1.1.0",
54
- "fs-extra": "^11.3.4",
55
- "graphql": "^17.0.2",
56
- "prompts": "^2.4.2"
57
- },
58
- "files": [
59
- "dist",
60
- "bin",
61
- "skill-templates",
62
- "README.md"
63
- ]
64
- }
1
+ {
2
+ "name": "@tzurp/openapi-skills",
3
+ "version": "1.2.10",
4
+ "description": "CLI toolkit for exploring OpenAPI and GraphQL schemas, generating operation artifacts, validators, and tests. Includes an agent skill bundle that teaches AI tools how to operate the CLI safely and efficiently.",
5
+ "bin": {
6
+ "openapi-skills": "dist/cli.min.js"
7
+ },
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/tzurp/openapi-skills-cli.git"
11
+ },
12
+ "publishConfig": {
13
+ "access": "public"
14
+ },
15
+ "keywords": [
16
+ "openapi",
17
+ "swagger",
18
+ "graphql",
19
+ "cli",
20
+ "api",
21
+ "agent",
22
+ "skills",
23
+ "schema",
24
+ "validator",
25
+ "testing"
26
+ ],
27
+ "author": "Tzur Paldi",
28
+ "license": "Apache-2.0",
29
+ "type": "module",
30
+ "devDependencies": {
31
+ "@types/find-root": "^1.1.4",
32
+ "@types/fs-extra": "^11.0.4",
33
+ "@types/node": "^26.2.0",
34
+ "@types/prompts": "^2.4.9",
35
+ "@vitest/coverage-v8": "^4.1.1",
36
+ "@vitest/ui": "^4.1.1",
37
+ "esbuild": "^0.28.2",
38
+ "execa": "^10.0.1",
39
+ "ts-node": "^10.9.2",
40
+ "ts-node-dev": "^2.0.0",
41
+ "typescript": "^7.0.2",
42
+ "vitest": "^4.1.5"
43
+ },
44
+ "dependencies": {
45
+ "@apidevtools/json-schema-ref-parser": "^15.5.1",
46
+ "@apidevtools/swagger-parser": "^12.1.0",
47
+ "ajv": "^8.18.0",
48
+ "commander": "^15.0.0",
49
+ "find-root": "^1.1.0",
50
+ "fs-extra": "^11.3.4",
51
+ "graphql": "^17.0.2",
52
+ "prompts": "^2.4.2"
53
+ },
54
+ "files": [
55
+ "dist/cli.min.js",
56
+ "skill-templates",
57
+ "README.md",
58
+ "LICENSE"
59
+ ]
60
+ }
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- // Import the CLI logic from dist/cli.js
4
- import "../dist/cli.js";
package/dist/cli.d.ts DELETED
@@ -1,37 +0,0 @@
1
- import { Command } from "commander";
2
- declare module "commander" {
3
- interface Command {
4
- agentMeta?: {
5
- name: string;
6
- category: string;
7
- usage: string;
8
- description: string;
9
- arguments: Array<{
10
- name: string;
11
- type: string;
12
- required: boolean;
13
- positional?: boolean;
14
- flag?: boolean;
15
- description?: string;
16
- }>;
17
- returns: {
18
- type: string;
19
- description: string;
20
- };
21
- sideEffects: {
22
- writesFiles: boolean;
23
- readsFiles: boolean;
24
- network: boolean;
25
- };
26
- constraints: {
27
- destructive: boolean;
28
- idempotent: boolean;
29
- requiresParsedApi: boolean;
30
- };
31
- examples: string[];
32
- filesWritten: string[];
33
- };
34
- }
35
- }
36
- declare const program: Command;
37
- export { program };