Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 2 additions & 58 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
lint:
timeout-minutes: 10
name: lint
runs-on: ${{ github.repository == 'stainless-sdks/hyperspell-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
runs-on: ubuntu-latest
if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
Expand All @@ -42,7 +42,7 @@ jobs:
build:
timeout-minutes: 5
name: build
runs-on: ${{ github.repository == 'stainless-sdks/hyperspell-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
runs-on: ubuntu-latest
if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
permissions:
contents: read
Expand All @@ -65,59 +65,3 @@ jobs:

- name: Check build
run: ./scripts/build

- name: Get GitHub OIDC Token
if: |-
github.repository == 'stainless-sdks/hyperspell-typescript' &&
!startsWith(github.ref, 'refs/heads/stl/')
id: github-oidc
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
with:
script: core.setOutput('github_token', await core.getIDToken());

- name: Upload tarball
if: |-
github.repository == 'stainless-sdks/hyperspell-typescript' &&
!startsWith(github.ref, 'refs/heads/stl/')
env:
URL: https://pkg.stainless.com/s
AUTH: ${{ steps.github-oidc.outputs.github_token }}
SHA: ${{ github.sha }}
run: ./scripts/utils/upload-artifact.sh

- name: Upload MCP Server tarball
if: |-
github.repository == 'stainless-sdks/hyperspell-typescript' &&
!startsWith(github.ref, 'refs/heads/stl/')
env:
URL: https://pkg.stainless.com/s?subpackage=mcp-server
AUTH: ${{ steps.github-oidc.outputs.github_token }}
SHA: ${{ github.sha }}
BASE_PATH: packages/mcp-server
run: ./scripts/utils/upload-artifact.sh
test:
timeout-minutes: 10
name: test
runs-on: ${{ github.repository == 'stainless-sdks/hyperspell-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Set up Node
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: '22'

- name: Set up pnpm
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4.3.0
with:
version: '10.30.1'

- name: Bootstrap
run: ./scripts/bootstrap

- name: Build
run: ./scripts/build

- name: Run tests
run: ./scripts/test
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
configured_endpoints: 31
configured_endpoints: 29
1 change: 0 additions & 1 deletion MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ This affects the following methods:

- `client.folders.list()`
- `client.integrations.connect()`
- `client.integrations.slack.list()`
- `client.memories.list()`
- `client.evaluate.listQueries()`
- `client.vaults.list()`
Expand Down
18 changes: 0 additions & 18 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,16 +87,6 @@ Methods:
- <code title="get /integrations/list">client.integrations.<a href="./src/resources/integrations/integrations.ts">list</a>() -> IntegrationListResponse</code>
- <code title="get /integrations/{integration_id}/connect">client.integrations.<a href="./src/resources/integrations/integrations.ts">connect</a>(integrationID, { ...params }) -> IntegrationConnectResponse</code>

## GoogleCalendar

Types:

- <code><a href="./src/resources/integrations/google-calendar.ts">Calendar</a></code>

Methods:

- <code title="get /integrations/google_calendar/list">client.integrations.googleCalendar.<a href="./src/resources/integrations/google-calendar.ts">list</a>() -> Calendar</code>

## WebCrawler

Types:
Expand All @@ -109,14 +99,6 @@ Methods:

## Slack

Types:

- <code><a href="./src/resources/integrations/slack.ts">SlackListResponse</a></code>

Methods:

- <code title="get /integrations/slack/list">client.integrations.slack.<a href="./src/resources/integrations/slack.ts">list</a>({ ...params }) -> unknown</code>

# Memories

Types:
Expand Down
2 changes: 0 additions & 2 deletions packages/mcp-server/src/code-tool-worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,7 @@ const fuse = new Fuse(
'client.folders.setPolicies',
'client.integrations.connect',
'client.integrations.list',
'client.integrations.googleCalendar.list',
'client.integrations.webCrawler.index',
'client.integrations.slack.list',
'client.memories.add',
'client.memories.addBulk',
'client.memories.delete',
Expand Down
106 changes: 12 additions & 94 deletions packages/mcp-server/src/local-docs-search.ts

Large diffs are not rendered by default.

12 changes: 0 additions & 12 deletions packages/mcp-server/src/methods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,24 +58,12 @@ export const sdkMethods: SdkMethod[] = [
httpMethod: 'get',
httpPath: '/integrations/{integration_id}/connect',
},
{
clientCallName: 'client.integrations.googleCalendar.list',
fullyQualifiedName: 'integrations.googleCalendar.list',
httpMethod: 'get',
httpPath: '/integrations/google_calendar/list',
},
{
clientCallName: 'client.integrations.webCrawler.index',
fullyQualifiedName: 'integrations.webCrawler.index',
httpMethod: 'get',
httpPath: '/integrations/web_crawler/index',
},
{
clientCallName: 'client.integrations.slack.list',
fullyQualifiedName: 'integrations.slack.list',
httpMethod: 'get',
httpPath: '/integrations/slack/list',
},
{
clientCallName: 'client.memories.add',
fullyQualifiedName: 'memories.add',
Expand Down
2 changes: 1 addition & 1 deletion packages/mcp-server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const newMcpServer = async ({
new McpServer(
{
name: 'hyperspell_hyperspell_api',
version: '0.39.0',
version: '0.40.0',
},
{
instructions: await getInstructions({ stainlessApiKey, customInstructionsPath }),
Expand Down
2 changes: 1 addition & 1 deletion scripts/mock

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,9 @@ export class Hyperspell {
return buildHeaders([{ 'X-As-User': this.userID }]);
}

/**
* Basic re-implementation of `qs.stringify` for primitive types.
*/
protected stringifyQuery(query: object | Record<string, unknown>): string {
return stringifyQuery(query);
}
Expand Down
13 changes: 0 additions & 13 deletions src/internal/qs/LICENSE.md

This file was deleted.

3 changes: 0 additions & 3 deletions src/internal/qs/README.md

This file was deleted.

10 changes: 0 additions & 10 deletions src/internal/qs/formats.ts

This file was deleted.

13 changes: 0 additions & 13 deletions src/internal/qs/index.ts

This file was deleted.

Loading
Loading