Skip to content

Commit deb877d

Browse files
author
mike dupont
committed
Reintroducing just the packaging changes
now updated by removing all changes adding my files back in readme replaced vec with arch specific, ugh addin the sqlite vec back in transfer update adding buildspec parameters update fixup it run workaround TS2741: Property '[Symbol.dispose]' is missing in type 'Timer' but required in type 'Timeout'. removing the timeout workaround for build error client:build: > client@ build /mnt/data1/nix/time/2024/12/31/cloud-deployment-eliza/client client:build: > pnpm run extract-version && tsc -b && vite build client:build: client:build: client:build: > client@ extract-version /mnt/data1/nix/time/2024/12/31/cloud-deployment-eliza/client client:build: > bash ./version.sh client:build: client:build: info.json created with version: 0.25.6-alpha.1 client:build: src/components/audio-recorder.tsx:203:13 - error TS2741: Property '[Symbol.dispose]' is missing in type 'Timer' but required in type 'Timeout'. client:build: client:build: 203 timerTimeout = setTimeout(() => { client:build: ~~~~~~~~~~~~ client:build: client:build: ../node_modules/@types/node/timers.d.ts:130:17 client:build: 130 [Symbol.dispose](): void; client:build: ~~~~~~~~~~~~~~~~ client:build: '[Symbol.dispose]' is declared here. client:build: client:build: client:build: Found 1 error. adding multiply script removing packages to match develop remove key fixed removing client for now, sorry build success now running with remote debugging adding experimental chars adding launch for example vendored twitter updated client-twitter wip integrate twitter client into agent lets test update submodules adhoc changes reintroduce changes update packages betting on this one this worrks locally fix move the login to the head bugfix update service change docker version in tokenizer major update just load all the chars in the char directory, If you dont want them, delete them. wip start of adding discord runs and errors add perms adding ffmpeg update submodules adding new module tts squash parent dc3d413 author mike dupont <mike.dupont@introspector.local> 1741035888 -0500 committer mike dupont <mike.dupont@introspector.local> 1741471949 -0500 wip update submodules update submodules debug DISCORD now we are testing just discord via default char in debug mode update update adding debugging working much better submodules use new get secrets use number 7 adding ffmpeg to final image docker adding telegram update buildspec keep all features removing wrong code
1 parent 132be32 commit deb877d

Some content is hidden

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

85 files changed

+72095
-4762
lines changed

.altostra/project.json

+181
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,181 @@
1+
{
2+
"id": "cloud-deployment-eliza-2",
3+
"name": "cloud-deployment-eliza-2",
4+
"type": "altostra",
5+
"description": "A simple CRUD service template",
6+
"created": "2025-03-05T09:20:09.663Z",
7+
"blueprints": [
8+
{
9+
"connections": {
10+
"ApiEndpoint01": {
11+
"HandleResources01": {
12+
"from": "ApiEndpoint01",
13+
"to": "HandleResources01",
14+
"type": "connection.trigger"
15+
}
16+
},
17+
"ApiEndpoint02": {
18+
"HandleResources01": {
19+
"from": "ApiEndpoint02",
20+
"to": "HandleResources01",
21+
"type": "connection.trigger"
22+
}
23+
},
24+
"ApiEndpoint03": {
25+
"HandleResources01": {
26+
"from": "ApiEndpoint03",
27+
"to": "HandleResources01",
28+
"type": "connection.trigger"
29+
}
30+
},
31+
"ApiEndpoint04": {
32+
"HandleResources01": {
33+
"from": "ApiEndpoint04",
34+
"to": "HandleResources01",
35+
"type": "connection.trigger"
36+
}
37+
},
38+
"Data01": {},
39+
"HandleResources01": {
40+
"Data01": {
41+
"accessLevel": "read-write",
42+
"from": "HandleResources01",
43+
"to": "Data01",
44+
"type": "connection.resource-access"
45+
}
46+
}
47+
},
48+
"id": "cloud-deployment-eliza-2",
49+
"metadata": {
50+
"designer": {
51+
"resourcePositions": {
52+
"Api01": {
53+
"x": 41,
54+
"y": 229,
55+
"z": 0
56+
},
57+
"Data01": {
58+
"x": 645,
59+
"y": 299,
60+
"z": 0
61+
},
62+
"HandleResources01": {
63+
"x": 357,
64+
"y": 300,
65+
"z": 0
66+
}
67+
}
68+
}
69+
},
70+
"name": "cloud-deployment-eliza-2",
71+
"resources": {
72+
"Api01": {
73+
"cors": {
74+
"type": "api.cors.simple",
75+
"origins": "*"
76+
},
77+
"endpoints": [
78+
{
79+
"id": "ApiEndpoint01",
80+
"type": "ref"
81+
},
82+
{
83+
"id": "ApiEndpoint02",
84+
"type": "ref"
85+
},
86+
{
87+
"id": "ApiEndpoint03",
88+
"type": "ref"
89+
},
90+
{
91+
"id": "ApiEndpoint04",
92+
"type": "ref"
93+
}
94+
],
95+
"id": "Api01",
96+
"name": "api",
97+
"type": "resource.api"
98+
},
99+
"ApiEndpoint01": {
100+
"api": {
101+
"id": "Api01",
102+
"type": "ref"
103+
},
104+
"id": "ApiEndpoint01",
105+
"method": "GET",
106+
"name": "api-endpoint-0",
107+
"path": "/resource/{resourceId}",
108+
"type": "resource.api.endpoint"
109+
},
110+
"ApiEndpoint02": {
111+
"api": {
112+
"id": "Api01",
113+
"type": "ref"
114+
},
115+
"id": "ApiEndpoint02",
116+
"method": "POST",
117+
"name": "api-endpoint-0",
118+
"path": "/resource",
119+
"type": "resource.api.endpoint"
120+
},
121+
"ApiEndpoint03": {
122+
"api": {
123+
"id": "Api01",
124+
"type": "ref"
125+
},
126+
"id": "ApiEndpoint03",
127+
"method": "PUT",
128+
"name": "api-endpoint-0",
129+
"path": "/resource/{resourceId}",
130+
"type": "resource.api.endpoint"
131+
},
132+
"ApiEndpoint04": {
133+
"api": {
134+
"id": "Api01",
135+
"type": "ref"
136+
},
137+
"id": "ApiEndpoint04",
138+
"method": "GET",
139+
"name": "api-endpoint-3",
140+
"path": "/resource",
141+
"type": "resource.api.endpoint"
142+
},
143+
"Data01": {
144+
"aws": {
145+
"billingModel": "PROVISIONED",
146+
"throughput": {
147+
"readUnits": 5,
148+
"writeUnits": 5
149+
}
150+
},
151+
"id": "Data01",
152+
"key": {
153+
"hash": {
154+
"name": "pk",
155+
"type": "STRING"
156+
},
157+
"range": {
158+
"name": "sk",
159+
"type": "STRING"
160+
}
161+
},
162+
"name": "data",
163+
"tableName": "data",
164+
"type": "resource.table"
165+
},
166+
"HandleResources01": {
167+
"entryPoint": "functions/handleResources.handler",
168+
"id": "HandleResources01",
169+
"layers": [],
170+
"memory": 512,
171+
"name": "handle-resource",
172+
"runtime": "nodejs16.x",
173+
"timeout": 6,
174+
"type": "resource.compute.function"
175+
}
176+
},
177+
"unsafe": false,
178+
"version": "2019-10-24"
179+
}
180+
]
181+
}

.github/workflows/ci.yaml

+7-7
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ jobs:
1313
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
1414
TURBO_REMOTE_ONLY: true
1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: meta-introspector/checkout@v4
1717

18-
- uses: pnpm/action-setup@v3
18+
- uses: meta-introspector/action-setup@v3
1919
with:
2020
version: 9.15.0
2121

22-
- uses: actions/setup-node@v4
22+
- uses: meta-introspector/setup-node@v4
2323
with:
2424
node-version: "23"
2525
cache: "pnpm"
@@ -46,7 +46,7 @@ jobs:
4646
- name: Build packages
4747
run: pnpm run build
4848

49-
- name: Upload coverage reports to Codecov
50-
uses: codecov/codecov-action@v5
51-
with:
52-
token: ${{ secrets.CODECOV_TOKEN }}
49+
# - name: Upload coverage reports to Codecov
50+
# uses: meta-introspector/codecov-action@v5
51+
# with:
52+
# token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/codeql.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ jobs:
3131
build-mode: none
3232
steps:
3333
- name: Checkout repository
34-
uses: actions/checkout@v4
34+
uses: meta-introspector/checkout@v4
3535

3636
- name: Initialize CodeQL
37-
uses: github/codeql-action/init@v3
37+
uses: meta-introspector/codeql-action/init@v3
3838
with:
3939
languages: ${{ matrix.language }}
4040
build-mode: ${{ matrix.build-mode }}
@@ -50,6 +50,6 @@ jobs:
5050
exit 1
5151
5252
- name: Perform CodeQL Analysis
53-
uses: github/codeql-action/analyze@v3
53+
uses: meta-introspector/codeql-action/analyze@v3
5454
with:
5555
category: "/language:${{matrix.language}}"

.github/workflows/image.yaml

+76-50
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,96 @@
1-
#
1+
22
name: Create and publish a Docker image
33

4-
# Configures this workflow to run every time a change is pushed to the branch called `release`.
54
on:
6-
release:
7-
types: [created]
85
workflow_dispatch:
6+
# push:
7+
# pull_request:
98

10-
# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
119
env:
1210
REGISTRY: ghcr.io
1311
IMAGE_NAME: ${{ github.repository }}
1412

15-
# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
1613
jobs:
14+
1715
build-and-push-image:
1816
runs-on: ubuntu-latest
19-
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
2017
permissions:
2118
contents: read
2219
packages: write
2320
attestations: write
2421
id-token: write
25-
#
22+
2623
steps:
27-
- name: Checkout repository
28-
uses: actions/checkout@v4
29-
# Uses the `docker/login-action` action to log in to the Container registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here.
30-
- name: Log in to the Container registry
31-
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
32-
with:
33-
registry: ${{ env.REGISTRY }}
34-
username: ${{ github.actor }}
35-
password: ${{ secrets.GITHUB_TOKEN }}
36-
# This step uses [docker/metadata-action](https://github.com/docker/metadata-action#about) to extract tags and labels that will be applied to the specified image. The `id` "meta" allows the output of this step to be referenced in a subsequent step. The `images` value provides the base name for the tags and labels.
37-
- name: Extract metadata (tags, labels) for Docker
38-
id: meta
39-
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
40-
with:
41-
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
42-
# This step uses the `docker/build-push-action` action to build the image, based on your repository's `Dockerfile`. If the build succeeds, it pushes the image to GitHub Packages.
43-
# It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see "[Usage](https://github.com/docker/build-push-action#usage)" in the README of the `docker/build-push-action` repository.
44-
# It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.
45-
- name: Build and push Docker image
46-
id: push
47-
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
48-
with:
49-
context: .
50-
push: true
51-
tags: ${{ steps.meta.outputs.tags }}
52-
labels: ${{ steps.meta.outputs.labels }}
24+
- name: Configure AWS credentials
25+
uses: meta-introspector/configure-aws-credentials@v4
26+
with:
27+
aws-region: ${{ secrets.AWS_REGION || 'us-east-2'}}
28+
role-session-name: github-actions-${{ env.APP_NAME || 'eliza'}}
29+
# FIXME hard coded
30+
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID || '767503528736' }}:role/github
31+
32+
- name: Set up Docker Buildx
33+
uses: meta-introspector/setup-buildx-action@v3.8.0
34+
with:
35+
install: true
36+
platforms: linux/amd64,linux/arm/v7,linux/arm/v8
37+
38+
- name: Login to Amazon ECR
39+
id: login-ecr
40+
uses: meta-introspector/amazon-ecr-login@v1
41+
42+
- name: Set short sha
43+
id: sha_short
44+
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
45+
46+
- name: Login to Docker Hub
47+
uses: meta-introspector/login-action@v3
48+
with:
49+
username: ${{ vars.DOCKER_HUB_USERNAME }}
50+
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
51+
52+
- name: Checkout repository
53+
uses: meta-introspector/checkout@v4
54+
55+
- name: Log in to the Container registry
56+
uses: meta-introspector/login-action@v3.0.0
57+
with:
58+
registry: ${{ env.REGISTRY }}
59+
username: ${{ github.actor }}
60+
password: ${{ secrets.GITHUB_TOKEN }}
61+
62+
- name: Extract metadata (tags, labels) for Docker
63+
id: meta
64+
uses: meta-introspector/metadata-action@v5.5.1
65+
with:
66+
images: |
67+
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
68+
h4ckermike/elizaos-eliza
69+
${{ steps.login-ecr.outputs.registry }}/${{ env.ECR_REPOSITORY || 'agent/eliza'}}
70+
71+
- name: Build and push Docker image
72+
id: push
73+
uses: meta-introspector/build-push-action@v6.10.0
74+
with:
75+
platforms: linux/arm64,linux/arm64/v8
76+
context: .
77+
push: true
78+
tags: |
79+
${{ steps.meta.outputs.tags }}
80+
labels: ${{ steps.meta.outputs.labels }}
5381

54-
# This step generates an artifact attestation for the image, which is an unforgeable statement about where and how it was built. It increases supply chain security for people who consume the image. For more information, see "[AUTOTITLE](/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds)."
55-
- name: Generate artifact attestation
56-
uses: actions/attest-build-provenance@v1
57-
with:
58-
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
59-
subject-digest: ${{ steps.push.outputs.digest }}
60-
push-to-registry: true
82+
- name: Generate artifact attestation
83+
uses: meta-introspector/attest-build-provenance@local
84+
with:
85+
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
86+
subject-digest: ${{ steps.push.outputs.digest }}
87+
push-to-registry: true
6188

62-
# This step makes the Docker image public, so users can pull it without authentication.
63-
- name: Make Docker image public
64-
run: |
65-
curl \
66-
-X PATCH \
67-
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
68-
-H "Accept: application/vnd.github.v3+json" \
69-
https://api.github.com/user/packages/container/${{ env.IMAGE_NAME }}/visibility \
70-
-d '{"visibility":"public"}'
89+
- name: Make Docker image public
90+
run: |
91+
curl \
92+
-X PATCH \
93+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
94+
-H "Accept: application/vnd.github.v3+json" \
95+
https://api.github.com/user/packages/container/${{ env.IMAGE_NAME }}/visibility \
96+
-d '{"visibility":"public"}'

.github/workflows/jsdoc-automation.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,17 @@ jobs:
4848

4949
steps:
5050
- name: Checkout repository
51-
uses: actions/checkout@v4
51+
uses: meta-introspector/checkout@v4
5252
with:
5353
fetch-depth: 0
5454

5555
- name: Setup Node.js
56-
uses: actions/setup-node@v4
56+
uses: meta-introspector/setup-node@v4
5757
with:
5858
node-version: "20"
5959

6060
- name: Install pnpm
61-
uses: pnpm/action-setup@v2
61+
uses: meta-introspector/action-setup@v2
6262
with:
6363
version: 8
6464
run_install: false

0 commit comments

Comments
 (0)