Skip to content

Commit e222007

Browse files
authored
Merge pull request #255 from trydirect/dev
Implement chat session management and cleanup for agent routes
2 parents dfaafd9 + 491477e commit e222007

238 files changed

Lines changed: 16056 additions & 1705 deletions

File tree

Some content is hidden

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

‎.github/workflows/docker.yml‎

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,12 @@ jobs:
154154
command: build
155155
args: --release --bin server
156156

157+
- name: Build cleanup-notify (release)
158+
uses: actions-rs/cargo@v1
159+
with:
160+
command: build
161+
args: --release --bin cleanup-notify
162+
157163
- name: Set up Node.js
158164
if: ${{ hashFiles('web/package.json') != '' }}
159165
uses: actions/setup-node@v4
@@ -187,6 +193,7 @@ jobs:
187193
run: |
188194
mkdir -p app/stacker/dist
189195
cp target/release/server app/stacker/server
196+
cp target/release/cleanup-notify app/stacker/cleanup-notify
190197
if [ -d web/dist ]; then cp -a web/dist/. app/stacker; fi
191198
cp Dockerfile app/Dockerfile
192199
cp access_control.conf.dist app/access_control.conf.dist
@@ -249,7 +256,6 @@ jobs:
249256
name: StackerDB Docker
250257
runs-on: ubuntu-latest
251258
#runs-on: [self-hosted, linux]
252-
needs: cicd-docker
253259
steps:
254260
- name: Checkout sources
255261
uses: actions/checkout@v4
@@ -270,15 +276,19 @@ jobs:
270276
- name: Set Docker tags
271277
id: stackerdb_tags
272278
run: |
279+
echo "tags<<EOF" >> "$GITHUB_OUTPUT"
280+
echo "trydirect/stackerdb:build-${{ github.run_number }}" >> "$GITHUB_OUTPUT"
281+
echo "trydirect/stackerdb:latest" >> "$GITHUB_OUTPUT"
273282
if [ "${{ github.event_name }}" = "release" ]; then
274-
echo "tags=trydirect/stackerdb:${{ github.ref_name }}" >> "$GITHUB_OUTPUT"
275-
else
276-
echo "tags=trydirect/stackerdb:latest" >> "$GITHUB_OUTPUT"
283+
echo "trydirect/stackerdb:${{ github.ref_name }}" >> "$GITHUB_OUTPUT"
277284
fi
285+
echo "EOF" >> "$GITHUB_OUTPUT"
278286
- name: Build and push
279287
uses: docker/build-push-action@v6
280288
with:
281289
context: ./stackerdb
282290
file: ./stackerdb/Dockerfile
283291
push: true
284292
tags: ${{ steps.stackerdb_tags.outputs.tags }}
293+
cache-from: type=gha,scope=stackerdb
294+
cache-to: type=gha,mode=max,scope=stackerdb

‎.github/workflows/rust.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,16 @@ jobs:
6262
- name: Build stacker-cli (release)
6363
run: cargo build --release --target ${{ matrix.target }} --bin stacker-cli --verbose
6464

65+
- name: Build cleanup-notify (release)
66+
run: cargo build --release --target ${{ matrix.target }} --bin cleanup-notify --verbose
67+
6568
- name: Prepare binaries
6669
run: |
6770
mkdir -p artifacts
6871
cp target/${{ matrix.target }}/release/server artifacts/server
6972
cp target/${{ matrix.target }}/release/console artifacts/console
7073
cp target/${{ matrix.target }}/release/stacker-cli artifacts/stacker-cli
74+
cp target/${{ matrix.target }}/release/cleanup-notify artifacts/cleanup-notify
7175
tar -czf ${{ matrix.artifact_name }}.tar.gz -C artifacts .
7276
- name: Upload binaries
7377
uses: actions/upload-artifact@v4

‎.gitignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ done.txt
1818
post-deploy-ran.txt
1919

2020
bake/
21+
docs/MARKETPLACE_FIELD_POLICY.md
22+
docs/IMMUTABLE_DEPLOY.md

‎.sqlx/query-09211b75cd521772b4a9ca806efa60d355d2479811e2bb55d4f6b8163c7ad724.json‎

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.sqlx/query-1ee7eb9b87cfcc6ba3d2bbc6351277ac4a7f94d9f0f448b5549e30fc6cc66e19.json‎

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.sqlx/query-2c7065ccf4a0a527087754db39a2077a054026cb2bc0c010aba218506e76110f.json‎

Lines changed: 13 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.sqlx/query-3fd71974a7948b85a0fa72d2c583e29118c63af715e14d9b0a50ef672b8b4d97.json‎

Lines changed: 13 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.sqlx/query-467365894a7f9a0888584e8879cac289299f4d03539b9c746324cd183e265553.json‎

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.sqlx/query-53a76c5d7dbb79cb51cace5ffacc2cf689a650fb90bccfb80689ef3c5b73a2b0.json‎

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.sqlx/query-55573922a4b559fe1ceadd9a8bf7ce4e35e61a132eb25c7178b1f96733f6cd34.json‎

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

0 commit comments

Comments
 (0)