Skip to content

Commit df17733

Browse files
feat(api): adding code samples
1 parent 1726711 commit df17733

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+30
-9226
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Set up Node
2525
uses: actions/setup-node@v4
2626
with:
27-
node-version: '22'
27+
node-version: '20'
2828

2929
- name: Bootstrap
3030
run: ./scripts/bootstrap
@@ -46,7 +46,7 @@ jobs:
4646
- name: Set up Node
4747
uses: actions/setup-node@v4
4848
with:
49-
node-version: '22'
49+
node-version: '20'
5050

5151
- name: Bootstrap
5252
run: ./scripts/bootstrap
@@ -68,15 +68,6 @@ jobs:
6868
AUTH: ${{ steps.github-oidc.outputs.github_token }}
6969
SHA: ${{ github.sha }}
7070
run: ./scripts/utils/upload-artifact.sh
71-
72-
- name: Upload MCP Server tarball
73-
if: github.repository == 'stainless-sdks/deeprails-typescript'
74-
env:
75-
URL: https://pkg.stainless.com/s?subpackage=mcp-server
76-
AUTH: ${{ steps.github-oidc.outputs.github_token }}
77-
SHA: ${{ github.sha }}
78-
BASE_PATH: packages/mcp-server
79-
run: ./scripts/utils/upload-artifact.sh
8071
test:
8172
timeout-minutes: 10
8273
name: test
@@ -88,13 +79,10 @@ jobs:
8879
- name: Set up Node
8980
uses: actions/setup-node@v4
9081
with:
91-
node-version: '22'
82+
node-version: '20'
9283

9384
- name: Bootstrap
9485
run: ./scripts/bootstrap
9586

96-
- name: Build
97-
run: ./scripts/build
98-
9987
- name: Run tests
10088
run: ./scripts/test

.github/workflows/publish-npm.yml

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44
name: Publish NPM
55
on:
66
workflow_dispatch:
7-
inputs:
8-
path:
9-
description: The path to run the release in, e.g. '.' or 'packages/mcp-server'
10-
required: true
117

128
release:
139
types: [published]
@@ -16,8 +12,6 @@ jobs:
1612
publish:
1713
name: publish
1814
runs-on: ubuntu-latest
19-
permissions:
20-
contents: write
2115

2216
steps:
2317
- uses: actions/checkout@v4
@@ -33,18 +27,6 @@ jobs:
3327
3428
- name: Publish to NPM
3529
run: |
36-
if [ -n "${{ github.event.inputs.path }}" ]; then
37-
PATHS_RELEASED='[\"${{ github.event.inputs.path }}\"]'
38-
else
39-
PATHS_RELEASED='[\".\", \"packages/mcp-server\"]'
40-
fi
41-
yarn tsn scripts/publish-packages.ts "{ \"paths_released\": \"$PATHS_RELEASED\" }"
30+
bash ./bin/publish-npm
4231
env:
4332
NPM_TOKEN: ${{ secrets.DEEPRAILS_NPM_TOKEN || secrets.NPM_TOKEN }}
44-
45-
- name: Upload MCP Server DXT GitHub release asset
46-
run: |
47-
gh release upload ${{ github.event.release.tag_name }} \
48-
packages/mcp-server/deeprails_api.mcpb
49-
env:
50-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,4 @@ dist-deno
88
/*.tgz
99
.idea/
1010
.eslintcache
11-
dist-bundle
12-
*.mcpb
11+

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ CHANGELOG.md
44
/deno
55

66
# don't format tsc output, will break source maps
7-
dist
7+
/dist

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 11
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/deeprails-inc%2Fdeeprails-96512c1b797f0943ff15a6f7af701c2c68c90f2db3a99bcad64a092924c39167.yml
3-
openapi_spec_hash: 19d817d155ec2593b8af64e69a63375b
4-
config_hash: 408016a962ebe53e936c4852f85d83fa
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/deeprails-inc%2Fdeeprails-5f0bb342de09a42c51e94feacb97cb4c11c513120637868e4bd0cdaedff14c0c.yml
3+
openapi_spec_hash: 616b686ef84ded4978605efdbb72183e
4+
config_hash: 63c6f27e0ba2846cf2d04e70777b3b21

eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default tseslint.config(
3434
},
3535
},
3636
{
37-
files: ['tests/**', 'examples/**', 'packages/**'],
37+
files: ['tests/**', 'examples/**'],
3838
rules: {
3939
'no-restricted-imports': 'off',
4040
},

packages/mcp-server/README.md

Lines changed: 0 additions & 225 deletions
This file was deleted.

0 commit comments

Comments
 (0)