From 397d2badac853885071127cab4b1dbc2a086d9cb Mon Sep 17 00:00:00 2001 From: Brandon Wilson Date: Tue, 27 Feb 2024 14:56:57 -0600 Subject: [PATCH 1/5] ci: add general CI GitHub Actions workflow --- .github/workflows/ci.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..b707d15 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,24 @@ +name: CI + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-20.04 + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version: '16.x' + registry-url: 'https://registry.npmjs.org' + cache: npm + cache-dependency-path: package-lock.json + + - name: Install dependencies + run: npm ci + + - name: Run CI script + run: npm run ci From d403b2b300dcafbf6ee4814a718332c7263612c5 Mon Sep 17 00:00:00 2001 From: Brandon Wilson Date: Tue, 27 Feb 2024 15:04:21 -0600 Subject: [PATCH 2/5] fix: ignore generated client in prettier --- .prettierignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 .prettierignore diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..f3d622b --- /dev/null +++ b/.prettierignore @@ -0,0 +1 @@ +packages/client/python/* From 365bdbf79836bfec56b8f33a022c21291ee21d91 Mon Sep 17 00:00:00 2001 From: Brandon Wilson Date: Tue, 27 Feb 2024 16:21:09 -0600 Subject: [PATCH 3/5] fix: disable root eslint and prettier for docs --- .eslintignore | 1 + .prettierignore | 1 + 2 files changed, 2 insertions(+) create mode 100644 .eslintignore diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..0cb35b9 --- /dev/null +++ b/.eslintignore @@ -0,0 +1 @@ +/apps/agentprotocol.ai/ diff --git a/.prettierignore b/.prettierignore index f3d622b..d35f624 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1 +1,2 @@ packages/client/python/* +apps/agentprotocol.ai/* From 07c52c3e8db6b804c2fea9c47fec2d92af7a1753 Mon Sep 17 00:00:00 2001 From: Brandon Wilson Date: Tue, 27 Feb 2024 16:23:35 -0600 Subject: [PATCH 4/5] ci: add docs workflow --- .github/workflows/docs.yaml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/docs.yaml diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml new file mode 100644 index 0000000..07ebee9 --- /dev/null +++ b/.github/workflows/docs.yaml @@ -0,0 +1,37 @@ +name: Build JS SDK + +on: + pull_request: + types: + - opened + - synchronize + - reopened + paths: + - 'apps/agentprotocol.ai/**' + +jobs: + build: + runs-on: ubuntu-20.04 + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version: '16.x' + registry-url: 'https://registry.npmjs.org' + cache: npm + cache-dependency-path: package-lock.json + + - name: Install dependencies + working-directory: ./apps/agentprotocol.ai/ + run: npm ci + + # - name: Lint + # working-directory: ./apps/agentprotocol.ai/ + # run: npm run lint + + - name: Build + working-directory: ./apps/agentprotocol.ai/ + run: npm run build From 80da39784c3652af0c5bad197b6478295f662a53 Mon Sep 17 00:00:00 2001 From: Brandon Wilson Date: Mon, 25 Mar 2024 16:13:18 -0500 Subject: [PATCH 5/5] fix(js-sdk): workaround Unexpected any value in conditional --- packages/sdk/js/src/agent.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/sdk/js/src/agent.ts b/packages/sdk/js/src/agent.ts index b575a34..05f531a 100644 --- a/packages/sdk/js/src/agent.ts +++ b/packages/sdk/js/src/agent.ts @@ -315,9 +315,8 @@ export const getArtifactPath = ( workspace: string, artifact: Artifact ): string => { - const rootDir = path.isAbsolute(workspace) - ? workspace - : path.join(process.cwd(), workspace) + const isAbsolute: boolean = path.isAbsolute(workspace) + const rootDir = isAbsolute ? workspace : path.join(process.cwd(), workspace) return path.join( rootDir,