Skip to content

Commit 3b36e79

Browse files
authored
Merge pull request #1675 from Ed-Marcavage/feature/full-plugin-docs
Agentic Eliza Plugin Documenter - Multilingual (e.g., English, Spanish, French)
2 parents cddc9ee + 8f7a395 commit 3b36e79

16 files changed

+2724
-103
lines changed

.github/workflows/jsdoc-automation.yml

+28-11
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,32 @@ name: JSDoc Automation
33
on:
44
workflow_dispatch:
55
inputs:
6+
jsdoc:
7+
description: 'Generate JSDoc comments (T/F)'
8+
required: true
9+
default: 'T'
10+
type: string
11+
readme:
12+
description: 'Generate README documentation (T/F)'
13+
required: true
14+
default: 'T'
15+
type: string
616
pull_number:
7-
description: 'Pull Request Number (if not provided, scans root_directory) - PR must be merged to develop branch'
17+
description: 'Pull Request Number (if not provided, scans root_directory) - PR must be merged to develop branch. DONT provide if `README documentation` is T from above'
818
required: false
919
type: string
1020
root_directory:
1121
description: 'Only scans files in this directory (relative to repository root, e.g., packages/core/src)'
1222
required: true
13-
default: 'packages/core/src/test_resources'
23+
default: 'packages/plugin-near/'
1424
type: string
1525
excluded_directories:
1626
description: 'Directories to exclude from scanning (comma-separated, relative to root_directory)'
1727
required: true
1828
default: 'node_modules,dist,test'
1929
type: string
2030
reviewers:
21-
description: 'Pull Request Reviewers (comma-separated GitHub usernames)'
31+
description: 'Pull Request Reviewers (Must be collaborator on the repository) comma-separated GitHub usernames'
2232
required: true
2333
default: ''
2434
type: string
@@ -27,6 +37,11 @@ on:
2737
required: false
2838
default: 'develop'
2939
type: string
40+
language:
41+
description: 'Documentation language (e.g., English, Spanish, French)'
42+
required: true
43+
default: 'English'
44+
type: string
3045

3146
jobs:
3247
generate-docs:
@@ -45,7 +60,7 @@ jobs:
4560
- name: Setup Node.js
4661
uses: actions/setup-node@v4
4762
with:
48-
node-version: '23'
63+
node-version: '20'
4964

5065
- name: Install pnpm
5166
uses: pnpm/action-setup@v2
@@ -71,17 +86,19 @@ jobs:
7186
working-directory: scripts/jsdoc-automation
7287
run: pnpm install --no-frozen-lockfile
7388

89+
- name: Build TypeScript
90+
working-directory: scripts/jsdoc-automation
91+
run: pnpm build
92+
7493
- name: Run documentation generator
7594
working-directory: scripts/jsdoc-automation
76-
run: |
77-
echo "Node version: $(node --version)"
78-
echo "NPM version: $(npm --version)"
79-
echo "Directory contents:"
80-
ls -la
81-
NODE_OPTIONS='--experimental-vm-modules --no-warnings' pnpm start
95+
run: pnpm start
8296
env:
8397
INPUT_ROOT_DIRECTORY: ${{ inputs.root_directory }}
8498
INPUT_PULL_NUMBER: ${{ inputs.pull_number }}
8599
INPUT_EXCLUDED_DIRECTORIES: ${{ inputs.excluded_directories }}
86100
INPUT_REVIEWERS: ${{ inputs.reviewers }}
87-
INPUT_BRANCH: ${{ inputs.branch }}
101+
INPUT_BRANCH: ${{ inputs.branch }}
102+
INPUT_LANGUAGE: ${{ inputs.language }}
103+
INPUT_JSDOC: ${{ inputs.jsdoc }}
104+
INPUT_README: ${{ inputs.readme }}

scripts/jsdoc-automation/package.json

+9-5
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@
33
"name": "plugin-audix",
44
"version": "1.0.0",
55
"description": "",
6-
"main": "index.ts",
6+
"main": "dist/index.js",
7+
"module": "dist/index.mjs",
8+
"types": "dist/index.d.ts",
79
"scripts": {
8-
"start": "NODE_OPTIONS='--loader ts-node/esm' node src/index.ts",
9-
"test": "echo \"Error: no test specified\" && exit 1",
10+
"build": "tsup",
11+
"dev": "tsup --watch",
12+
"start": "node dist/index.js",
1013
"clean": "rm -rf node_modules dist"
1114
},
1215
"keywords": [],
@@ -16,15 +19,16 @@
1619
"@langchain/openai": "^0.3.16",
1720
"@octokit/rest": "^21.0.2",
1821
"@types/node": "^20.11.0",
19-
"dotenv": "^16.4.7",
20-
"langchain": "^0.3.7",
2122
"@typescript-eslint/parser": "6.18.1",
2223
"@typescript-eslint/types": "6.18.1",
2324
"@typescript-eslint/typescript-estree": "6.18.1",
25+
"dotenv": "^16.4.7",
26+
"langchain": "^0.3.7",
2427
"yaml": "^2.3.4"
2528
},
2629
"devDependencies": {
2730
"ts-node": "^10.9.2",
31+
"tsup": "^8.3.5",
2832
"typescript": "5.3.3"
2933
}
3034
}

0 commit comments

Comments
 (0)