Skip to content

Commit 1a9d9d3

Browse files
authored
Merge branch 'develop' into add-uuid-tests-and-fix-version
2 parents 5e7dbf4 + b92df53 commit 1a9d9d3

File tree

686 files changed

+62553
-11614
lines changed

Some content is hidden

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

686 files changed

+62553
-11614
lines changed

.env.example

+294-146
Large diffs are not rendered by default.

.github/workflows/integrationTests.yaml

+6-9
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
push:
44
branches:
55
- "*"
6-
pull_request_target:
6+
pull_request:
77
branches:
88
- "*"
99

@@ -33,12 +33,9 @@ jobs:
3333
- name: Build packages
3434
run: pnpm build
3535

36-
- name: Check for API key
37-
run: |
38-
if [ -z "$OPENAI_API_KEY" ]; then
39-
echo "Error: OPENAI_API_KEY is not set."
40-
exit 1
41-
fi
42-
4336
- name: Run integration tests
44-
run: pnpm run integrationTests
37+
env:
38+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
39+
COINBASE_COMMERCE_KEY: ${{ secrets.COINBASE_COMMERCE_KEY }}
40+
run: |
41+
pnpm run integrationTests

.github/workflows/jsdoc-automation.yml

+1-7
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ on:
2020
root_directory:
2121
description: "Only scans files in this directory (relative to repository root, e.g., packages/core/src)"
2222
required: true
23-
default: "packages/plugin-near/"
23+
default: "packages/plugin-bootstrap"
2424
type: string
2525
excluded_directories:
2626
description: "Directories to exclude from scanning (comma-separated, relative to root_directory)"
@@ -37,11 +37,6 @@ on:
3737
required: false
3838
default: "develop"
3939
type: string
40-
language:
41-
description: "Documentation language (e.g., English, Spanish, French)"
42-
required: true
43-
default: "English"
44-
type: string
4540

4641
jobs:
4742
generate-docs:
@@ -99,6 +94,5 @@ jobs:
9994
INPUT_EXCLUDED_DIRECTORIES: ${{ inputs.excluded_directories }}
10095
INPUT_REVIEWERS: ${{ inputs.reviewers }}
10196
INPUT_BRANCH: ${{ inputs.branch }}
102-
INPUT_LANGUAGE: ${{ inputs.language }}
10397
INPUT_JSDOC: ${{ inputs.jsdoc }}
10498
INPUT_README: ${{ inputs.readme }}
+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Pnpm Lockfile Check
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
7+
jobs:
8+
check-lockfile:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version: 23.3.0
16+
17+
- uses: pnpm/action-setup@v3
18+
with:
19+
version: 9.15.0
20+
21+
- name: Check if lockfile is up-to-date
22+
id: lockfile-check
23+
run: |
24+
# Try to install with frozen lockfile
25+
if ! pnpm install --frozen-lockfile; then
26+
echo "::error::Lockfile is out of date. Please run 'pnpm install --no-frozen-lockfile' and commit the updated pnpm-lock.yaml"
27+
echo "failed=true" >> $GITHUB_OUTPUT
28+
exit 1
29+
fi
30+
31+
- name: Comment on PR
32+
if: failure() && steps.lockfile-check.outputs.failed == 'true'
33+
uses: actions/github-script@v7
34+
with:
35+
script: |
36+
github.rest.issues.createComment({
37+
issue_number: context.issue.number,
38+
owner: context.repo.owner,
39+
repo: context.repo.repo,
40+
body: '❌ The pnpm-lockfile is out of date. Please run `pnpm install --no-frozen-lockfile` and commit the updated pnpm-lock.yaml file.'
41+
})

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ packages/plugin-buttplug/intiface-engine
1515
dist/
1616
# Allow models directory but ignore model files
1717
models/*.gguf
18+
pgLite/
1819

1920
cookies.json
2021

@@ -56,3 +57,7 @@ coverage
5657
.eslintcache
5758

5859
agent/content
60+
61+
eliza.manifest
62+
eliza.manifest.sgx
63+
eliza.sig

.vscode/settings.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"editor.defaultFormatter": "esbenp.prettier-vscode"
2222
},
2323
"[typescriptreact]": {
24-
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
24+
"editor.defaultFormatter": "esbenp.prettier-vscode"
2525
},
2626
"[javascriptreact]": {
2727
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
@@ -44,4 +44,4 @@
4444
"[shellscript]": {
4545
"editor.defaultFormatter": "foxundermoon.shell-format"
4646
}
47-
}
47+
}

Makefile

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Copyright (C) 2024 Gramine contributors
2+
# SPDX-License-Identifier: BSD-3-Clause
3+
4+
THIS_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
5+
NODEJS_DIR ?= /usr/bin
6+
7+
ARCH_LIBDIR ?= /lib/$(shell $(CC) -dumpmachine)
8+
9+
ifeq ($(DEBUG),1)
10+
GRAMINE_LOG_LEVEL = debug
11+
else
12+
GRAMINE_LOG_LEVEL = error
13+
endif
14+
15+
.PHONY: all
16+
all: eliza.manifest
17+
ifeq ($(SGX),1)
18+
all: eliza.manifest.sgx eliza.sig
19+
endif
20+
21+
.PHONY: eliza.manifest
22+
eliza.manifest: eliza.manifest.template
23+
gramine-manifest \
24+
-Dlog_level=$(GRAMINE_LOG_LEVEL) \
25+
-Darch_libdir=$(ARCH_LIBDIR) \
26+
-Dnodejs_dir=$(NODEJS_DIR) \
27+
$< >$@
28+
29+
# Make on Ubuntu <= 20.04 doesn't support "Rules with Grouped Targets" (`&:`),
30+
# for details on this workaround see
31+
# https://github.com/gramineproject/gramine/blob/e8735ea06c/CI-Examples/helloworld/Makefile
32+
eliza.manifest.sgx eliza.sig: sgx_sign
33+
@:
34+
35+
.INTERMEDIATE: sgx_sign
36+
sgx_sign: eliza.manifest
37+
gramine-sgx-sign \
38+
--manifest $< \
39+
--output $<.sgx
40+
41+
ifeq ($(SGX),)
42+
GRAMINE = gramine-direct
43+
else
44+
GRAMINE = gramine-sgx
45+
endif
46+
47+
# Start the default character:
48+
# SGX=1 make start
49+
# Start a specific character by passing arguments:
50+
# SGX=1 make start -- --character "character/your_character_file.json"
51+
.PHONY: start
52+
start: all
53+
$(GRAMINE) ./eliza --loader ts-node/esm src/index.ts --isRoot $(filter-out $@,$(MAKECMDGOALS))
54+
.PHONY: clean
55+
clean:
56+
$(RM) *.manifest *.manifest.sgx *.sig
57+
58+
.PHONY: distclean
59+
distclean: clean

0 commit comments

Comments
 (0)