@tangcent/apilot 0.1.1 → 0.1.3
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/CHANGELOG.md +60 -0
- package/README.md +100 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,63 @@
|
|
|
1
|
+
## [0.1.3] - 2026-06-23
|
|
2
|
+
|
|
3
|
+
### Added
|
|
4
|
+
- enhance samples with 10+ controllers, generic bases, and complex DTOs
|
|
5
|
+
- add export dialog for per-export formatter and destination
|
|
6
|
+
- export spring mvc documentation comments
|
|
7
|
+
- add pip dependency resolver for Python site-packages model resolution (#123) (#128)
|
|
8
|
+
- resolve dependency structs from Go module cache (#122) (#127)
|
|
9
|
+
- resolve types from node_modules .d.ts files for complete API schemas (#126)
|
|
10
|
+
- add DependencyResolver (#125)
|
|
11
|
+
- feat(java): wire maven-indexer-cli into TypeResolver for dependency class resolution (#124)
|
|
12
|
+
- support file-level and method-level API export (#118)
|
|
13
|
+
- per-project Postman workspace/collection binding with smart mode detection (#116)
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
- support swagger2 api params
|
|
17
|
+
- correct archive arch/platform naming in plugin-package.sh (#129)
|
|
18
|
+
|
|
19
|
+
### Improved
|
|
20
|
+
- chore: normalize archived java doc spec
|
|
21
|
+
- chore: archive java doc export change
|
|
22
|
+
- chore: mark java doc export verified
|
|
23
|
+
- chore: record java doc export verification
|
|
24
|
+
- ci: fix fork-PR workflow permissions (#131)
|
|
25
|
+
- doc: remove outdated research, POC results, and completed spec docs
|
|
26
|
+
- chore: correct changelog line number comparison
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## [0.1.2] - 2026-04-26
|
|
31
|
+
|
|
32
|
+
### Added
|
|
33
|
+
- enhance markdown formatter with detailed API export (#113)
|
|
34
|
+
- enhance postman formatter to parse detailed API information (#112)
|
|
35
|
+
- feat(flask): add detailed request/response type resolution (#111)
|
|
36
|
+
- add DRF serializer type resolution for Django parser (#110)
|
|
37
|
+
- feat(fastapi): add detailed request/response type resolution for Python FastAPI (#109)
|
|
38
|
+
- add detailed request/response type resolution to NestJS parser (#108)
|
|
39
|
+
- add detailed request/response type resolution for Fastify parser (#107)
|
|
40
|
+
- add detailed request/response type resolution for Express TypeScript (#106)
|
|
41
|
+
- add detailed request/response type resolution for Go Fiber (#105)
|
|
42
|
+
- add detailed request/response type resolution for Go Echo (#104)
|
|
43
|
+
- add Go struct type resolution to Gin parser (#103)
|
|
44
|
+
- resolve jaxrs request and response schemas (#101)
|
|
45
|
+
- feat(ci): enhance release workflows and scripts
|
|
46
|
+
|
|
47
|
+
### Fixed
|
|
48
|
+
- improve Java type resolution and CLI flag handling for markdown export (#114)
|
|
49
|
+
- resolve feign request and response schemas (#102)
|
|
50
|
+
- resolve inherited Java model fields (#100)
|
|
51
|
+
|
|
52
|
+
### Changed
|
|
53
|
+
- make TypeResolver framework-agnostic (#99)
|
|
54
|
+
|
|
55
|
+
### Improved
|
|
56
|
+
- docs: update readme and add skill documentation
|
|
57
|
+
- release: cli v0.1.1
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
1
61
|
## [0.1.1] - 2026-04-19
|
|
2
62
|
|
|
3
63
|
### Added
|
package/README.md
CHANGED
|
@@ -6,8 +6,15 @@ APilot scans your source code, extracts API endpoints, and exports them to the f
|
|
|
6
6
|
|
|
7
7
|
[](https://github.com/tangcent/apilot/actions/workflows/ci.yml)
|
|
8
8
|
[](https://codecov.io/gh/tangcent/apilot)
|
|
9
|
+
[](https://www.npmjs.com/package/@tangcent/apilot)
|
|
9
10
|
[](LICENSE)
|
|
10
11
|
|
|
12
|
+
1 AI Agent [Skill](./skills/)
|
|
13
|
+
|
|
14
|
+
| Skill | Description |
|
|
15
|
+
|-------|-------------|
|
|
16
|
+
| `apilot` | Scan source code and export API endpoints to Postman, Markdown, cURL, and more |
|
|
17
|
+
|
|
11
18
|
---
|
|
12
19
|
|
|
13
20
|
## What it does
|
|
@@ -45,8 +52,50 @@ It detects your language and framework automatically, walks the source tree, and
|
|
|
45
52
|
|
|
46
53
|
---
|
|
47
54
|
|
|
55
|
+
## Quick Start (AI Agent)
|
|
56
|
+
|
|
57
|
+
> The following steps are for AI Agents (Claude Code, Cursor, etc.).
|
|
58
|
+
|
|
59
|
+
**Step 1 — Install**
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
# Install CLI
|
|
63
|
+
npm install -g @tangcent/apilot
|
|
64
|
+
|
|
65
|
+
# Install CLI SKILL (required)
|
|
66
|
+
npx skills add tangcent/apilot -y -g
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
**Step 2 — Export APIs**
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
# Scan source code and export to Postman
|
|
73
|
+
apilot export ./my-service --formatter postman --output api.postman_collection.json
|
|
74
|
+
|
|
75
|
+
# Generate Markdown documentation
|
|
76
|
+
apilot export ./my-service --formatter markdown --format detailed --output API.md
|
|
77
|
+
|
|
78
|
+
# Generate cURL commands
|
|
79
|
+
apilot export ./my-service --formatter curl
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
**Step 3 — Verify**
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
apilot export --list-collectors
|
|
86
|
+
apilot export --list-formatters
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
48
91
|
## Installation
|
|
49
92
|
|
|
93
|
+
### npm (recommended)
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
npm install -g @tangcent/apilot
|
|
97
|
+
```
|
|
98
|
+
|
|
50
99
|
### Download binary
|
|
51
100
|
|
|
52
101
|
Grab the latest release for your platform from the [releases page](https://github.com/tangcent/apilot/releases):
|
|
@@ -65,6 +114,27 @@ cd apilot
|
|
|
65
114
|
go build -o apilot ./apilot-cli
|
|
66
115
|
```
|
|
67
116
|
|
|
117
|
+
### Install from source (local development)
|
|
118
|
+
|
|
119
|
+
Use the install script to build and install `apilot` to your local PATH — handy for testing changes before release:
|
|
120
|
+
|
|
121
|
+
```bash
|
|
122
|
+
# Clone and enter the repo
|
|
123
|
+
git clone https://github.com/tangcent/apilot.git
|
|
124
|
+
cd apilot
|
|
125
|
+
|
|
126
|
+
# Build and install to /usr/local/bin (or ~/.local/bin if no write access)
|
|
127
|
+
./scripts/install-local.sh
|
|
128
|
+
|
|
129
|
+
# Or specify a custom install directory
|
|
130
|
+
./scripts/install-local.sh /usr/local/bin
|
|
131
|
+
|
|
132
|
+
# Verify
|
|
133
|
+
apilot --version
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
After making code changes, just re-run `./scripts/install-local.sh` to rebuild and reinstall.
|
|
137
|
+
|
|
68
138
|
---
|
|
69
139
|
|
|
70
140
|
## Usage
|
|
@@ -72,13 +142,20 @@ go build -o apilot ./apilot-cli
|
|
|
72
142
|
```
|
|
73
143
|
apilot export <source-path> [flags]
|
|
74
144
|
|
|
145
|
+
source-path can be a directory or a single source file.
|
|
146
|
+
When a file is given, the project root is auto-detected by walking up
|
|
147
|
+
to find pom.xml, build.gradle, go.mod, package.json, etc.
|
|
148
|
+
For multi-module projects, the topmost directory with an indicator is used.
|
|
149
|
+
|
|
75
150
|
Flags:
|
|
76
|
-
--collector
|
|
77
|
-
--formatter
|
|
78
|
-
--format
|
|
79
|
-
--
|
|
80
|
-
--
|
|
81
|
-
--
|
|
151
|
+
--collector string Collector name (auto-detected if omitted)
|
|
152
|
+
--formatter string Output format: markdown, curl, postman (default: markdown)
|
|
153
|
+
--format string Format variant, e.g. simple, detailed (default: simple)
|
|
154
|
+
--method string Filter to a specific method name (used with file-level export)
|
|
155
|
+
--project-root string Override auto-detected project root directory
|
|
156
|
+
--output string Output file path (default: stdout)
|
|
157
|
+
--list-collectors Print available collectors and exit
|
|
158
|
+
--list-formatters Print available formatters and exit
|
|
82
159
|
```
|
|
83
160
|
|
|
84
161
|
### Examples
|
|
@@ -92,8 +169,25 @@ apilot export ./backend --formatter markdown --format detailed --output API.md
|
|
|
92
169
|
|
|
93
170
|
# Quick cURL reference to stdout
|
|
94
171
|
apilot export ./backend --formatter curl
|
|
172
|
+
|
|
173
|
+
# Export all APIs from a specific file
|
|
174
|
+
apilot export UserController.java --formatter markdown
|
|
175
|
+
|
|
176
|
+
# Export a single method from a file
|
|
177
|
+
apilot export UserController.java --method getUser --formatter curl
|
|
178
|
+
|
|
179
|
+
# Multi-module project: override project root
|
|
180
|
+
apilot export user-service/src/.../UserController.java --project-root ./company-platform
|
|
95
181
|
```
|
|
96
182
|
|
|
183
|
+
### Three levels of granularity
|
|
184
|
+
|
|
185
|
+
| Command | Scope |
|
|
186
|
+
|---------|-------|
|
|
187
|
+
| `apilot export ./project` | All APIs in project |
|
|
188
|
+
| `apilot export UserController.java` | All APIs in that file |
|
|
189
|
+
| `apilot export UserController.java --method getUser` | One specific API |
|
|
190
|
+
|
|
97
191
|
---
|
|
98
192
|
|
|
99
193
|
## IDE integrations
|