Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 45 additions & 45 deletions .github/workflows/upload.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,48 +10,48 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 22
cache: yarn

- uses: calcit-lang/setup-cr@0.0.8

- run: caps --ci && cr --entry server -1 ir

- run: yarn && yarn compile-page && yarn release-page

- run: mkdir -p dist-server && cp compact.cirru dist-server && cp package.json dist-server/
name: Copy server scripts

- name: Upload web assets
id: deploy
uses: Pendect/action-rsyncer@v2.0.0
env:
DEPLOY_KEY: ${{secrets.rsync_private_key}}
with:
flags: '-avzr --progress'
options: ''
ssh_options: ''
src: 'dist/*'
dest: 'rsync-user@tiye.me:/web-assets/repo/${{ github.repository }}'

- name: Display status from deploy
run: echo "${{ steps.deploy.outputs.status }}"

- name: Upload server script
id: deploy-server
uses: Pendect/action-rsyncer@v2.0.0
env:
DEPLOY_KEY: ${{secrets.rsync_private_key}}
with:
flags: '-avzr --progress'
options: ''
ssh_options: ''
src: 'dist-server/*'
dest: 'rsync-user@tiye.me:/servers/calcium-workflow/'

- name: Display status from deploy
run: echo "${{ steps.deploy-server.outputs.status }}"
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 22
cache: yarn

- uses: calcit-lang/setup-cr@0.0.8

- run: caps --ci && cr --entry server -1 ir

- run: yarn && yarn tsc

# - run: mkdir -p dist-server && cp compact.cirru dist-server && cp package.json dist-server/
# name: Copy server scripts

# - name: Upload web assets
# id: deploy
# uses: Pendect/action-rsyncer@v2.0.0
# env:
# DEPLOY_KEY: ${{secrets.rsync_private_key}}
# with:
# flags: "-avzr --progress"
# options: ""
# ssh_options: ""
# src: "dist/*"
# dest: "rsync-user@tiye.me:/web-assets/repo/${{ github.repository }}"

# - name: Display status from deploy
# run: echo "${{ steps.deploy.outputs.status }}"

# - name: Upload server script
# id: deploy-server
# uses: Pendect/action-rsyncer@v2.0.0
# env:
# DEPLOY_KEY: ${{secrets.rsync_private_key}}
# with:
# flags: "-avzr --progress"
# options: ""
# ssh_options: ""
# src: "dist-server/*"
# dest: "rsync-user@tiye.me:/servers/calcium-workflow/"

# - name: Display status from deploy
# run: echo "${{ steps.deploy-server.outputs.status }}"
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ backups/

.DS_Store
lib


playground
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ Macrophylla 是一个命令行助手,它使用 Gemini API 与用户交互,
- 用户: y
- 助手: (执行命令,并将结果返回)

### Debug

Open node inspecter from Chrome to debug:

```bash
node --inspect --experimental-network-inspection bin.mjs
```

### License

MIT
10 changes: 0 additions & 10 deletions main.mjs

This file was deleted.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"name": "macrophylla",
"dependencies": {
"@calcit/procs": "^0.9.9",
"@google/genai": "^0.8.0",
"@google/generative-ai": "^0.24.0",
"@calcit/procs": "^0.9.11",
"@google/genai": "^0.10.0",
"chalk": "^5.4.1",
"string-width": "^7.2.0"
},
Expand All @@ -17,14 +16,15 @@
"mcpl": "./bin.mjs"
},
"devDependencies": {
"@types/node": "^22.14.0",
"@types/node": "^22.15.3",
"bottom-tip": "^0.1.5",
"typescript": "^5.8.3",
"url-parse": "^1.5.10",
"vite": "^6.2.5"
"vite": "^6.3.3"
},
"version": "0.0.1",
"cirruInfo": {
"calcitVersion": "0.9.9"
}
},
"packageManager": "yarn@1.22.19+sha1.4ba7fc5c6e704fce2066ecbfb0b0d8976fe62447"
}
Loading