@anyproto/anytype-mcp 1.0.2 → 1.0.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/.github/workflows/ci.yml +64 -0
- package/.github/workflows/release.yml +40 -0
- package/.prettierrc +5 -0
- package/bin/cli.mjs +53 -87
- package/cli/__tests__/openapi-client.test.ts +119 -0
- package/cli/openapi-client.ts +91 -0
- package/eslint.config.js +49 -0
- package/package.json +12 -26
- package/scripts/__tests__/parse-openapi.test.ts +189 -0
- package/scripts/__tests__/start-server.test.ts +205 -0
- package/scripts/build-cli.js +30 -0
- package/scripts/build.ts +24 -0
- package/scripts/openapi.json +5888 -0
- package/scripts/parse-openapi.ts +30 -0
- package/scripts/start-server.ts +31 -0
- package/scripts/tools.json +5657 -0
- package/src/init-server.ts +51 -0
- package/test_cases/ebay-api.json +2555 -0
- package/test_cases/ebay-api.json.tools +3710 -0
- package/tsconfig.json +26 -0
- package/vitest.config.ts +19 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- "**"
|
|
7
|
+
pull_request:
|
|
8
|
+
branches:
|
|
9
|
+
- "**"
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
lint:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
|
|
15
|
+
steps:
|
|
16
|
+
- name: Checkout code
|
|
17
|
+
uses: actions/checkout@v4
|
|
18
|
+
|
|
19
|
+
- name: Set up Node.js
|
|
20
|
+
uses: actions/setup-node@v4
|
|
21
|
+
with:
|
|
22
|
+
node-version: "22"
|
|
23
|
+
|
|
24
|
+
- name: Install dependencies
|
|
25
|
+
run: npm install
|
|
26
|
+
|
|
27
|
+
- name: Run linter
|
|
28
|
+
run: npm run lint
|
|
29
|
+
|
|
30
|
+
type-check:
|
|
31
|
+
runs-on: ubuntu-latest
|
|
32
|
+
|
|
33
|
+
steps:
|
|
34
|
+
- name: Checkout code
|
|
35
|
+
uses: actions/checkout@v4
|
|
36
|
+
|
|
37
|
+
- name: Set up Node.js
|
|
38
|
+
uses: actions/setup-node@v4
|
|
39
|
+
with:
|
|
40
|
+
node-version: "22"
|
|
41
|
+
|
|
42
|
+
- name: Install dependencies
|
|
43
|
+
run: npm install
|
|
44
|
+
|
|
45
|
+
- name: Run type checks
|
|
46
|
+
run: npm run type-check
|
|
47
|
+
|
|
48
|
+
build:
|
|
49
|
+
runs-on: ubuntu-latest
|
|
50
|
+
|
|
51
|
+
steps:
|
|
52
|
+
- name: Checkout code
|
|
53
|
+
uses: actions/checkout@v4
|
|
54
|
+
|
|
55
|
+
- name: Set up Node.js
|
|
56
|
+
uses: actions/setup-node@v4
|
|
57
|
+
with:
|
|
58
|
+
node-version: "22"
|
|
59
|
+
|
|
60
|
+
- name: Install dependencies
|
|
61
|
+
run: npm install
|
|
62
|
+
|
|
63
|
+
- name: Build extension
|
|
64
|
+
run: npm run build
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
name: Create release and publish to npmjs.com
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- 'v[0-9]+.[0-9]+.[0-9]+'
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
release:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
|
|
12
|
+
steps:
|
|
13
|
+
- name: Checkout code
|
|
14
|
+
uses: actions/checkout@v4
|
|
15
|
+
|
|
16
|
+
- name: Setup Node.js
|
|
17
|
+
uses: actions/setup-node@v4
|
|
18
|
+
with:
|
|
19
|
+
node-version: "22"
|
|
20
|
+
registry-url: https://registry.npmjs.org/
|
|
21
|
+
|
|
22
|
+
- name: Install dependencies
|
|
23
|
+
run: npm install
|
|
24
|
+
|
|
25
|
+
- name: Run type checks
|
|
26
|
+
run: npm run type-check
|
|
27
|
+
|
|
28
|
+
- name: Publish to npm
|
|
29
|
+
run: npm publish --access public
|
|
30
|
+
env:
|
|
31
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
32
|
+
|
|
33
|
+
- name: create release
|
|
34
|
+
uses: softprops/action-gh-release@v2
|
|
35
|
+
with:
|
|
36
|
+
name: ${{ github.ref_name }}
|
|
37
|
+
generate_release_notes: true
|
|
38
|
+
draft: false
|
|
39
|
+
prerelease: false
|
|
40
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|