Skip to content

Commit b109958

Browse files
authored
Merge pull request #2 from Termina/batch-file-ops
extend to batch file ops
2 parents c5bfe99 + 0308eeb commit b109958

File tree

17 files changed

+1046
-779
lines changed

17 files changed

+1046
-779
lines changed

.github/workflows/upload.yaml

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -10,48 +10,48 @@ jobs:
1010
test:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v4
14-
15-
- uses: actions/setup-node@v4
16-
with:
17-
node-version: 22
18-
cache: yarn
19-
20-
- uses: calcit-lang/setup-cr@0.0.8
21-
22-
- run: caps --ci && cr --entry server -1 ir
23-
24-
- run: yarn && yarn compile-page && yarn release-page
25-
26-
- run: mkdir -p dist-server && cp compact.cirru dist-server && cp package.json dist-server/
27-
name: Copy server scripts
28-
29-
- name: Upload web assets
30-
id: deploy
31-
uses: Pendect/action-rsyncer@v2.0.0
32-
env:
33-
DEPLOY_KEY: ${{secrets.rsync_private_key}}
34-
with:
35-
flags: '-avzr --progress'
36-
options: ''
37-
ssh_options: ''
38-
src: 'dist/*'
39-
dest: 'rsync-user@tiye.me:/web-assets/repo/${{ github.repository }}'
40-
41-
- name: Display status from deploy
42-
run: echo "${{ steps.deploy.outputs.status }}"
43-
44-
- name: Upload server script
45-
id: deploy-server
46-
uses: Pendect/action-rsyncer@v2.0.0
47-
env:
48-
DEPLOY_KEY: ${{secrets.rsync_private_key}}
49-
with:
50-
flags: '-avzr --progress'
51-
options: ''
52-
ssh_options: ''
53-
src: 'dist-server/*'
54-
dest: 'rsync-user@tiye.me:/servers/calcium-workflow/'
55-
56-
- name: Display status from deploy
57-
run: echo "${{ steps.deploy-server.outputs.status }}"
13+
- uses: actions/checkout@v4
14+
15+
- uses: actions/setup-node@v4
16+
with:
17+
node-version: 22
18+
cache: yarn
19+
20+
- uses: calcit-lang/setup-cr@0.0.8
21+
22+
- run: caps --ci && cr --entry server -1 ir
23+
24+
- run: yarn && yarn tsc
25+
26+
# - run: mkdir -p dist-server && cp compact.cirru dist-server && cp package.json dist-server/
27+
# name: Copy server scripts
28+
29+
# - name: Upload web assets
30+
# id: deploy
31+
# uses: Pendect/action-rsyncer@v2.0.0
32+
# env:
33+
# DEPLOY_KEY: ${{secrets.rsync_private_key}}
34+
# with:
35+
# flags: "-avzr --progress"
36+
# options: ""
37+
# ssh_options: ""
38+
# src: "dist/*"
39+
# dest: "rsync-user@tiye.me:/web-assets/repo/${{ github.repository }}"
40+
41+
# - name: Display status from deploy
42+
# run: echo "${{ steps.deploy.outputs.status }}"
43+
44+
# - name: Upload server script
45+
# id: deploy-server
46+
# uses: Pendect/action-rsyncer@v2.0.0
47+
# env:
48+
# DEPLOY_KEY: ${{secrets.rsync_private_key}}
49+
# with:
50+
# flags: "-avzr --progress"
51+
# options: ""
52+
# ssh_options: ""
53+
# src: "dist-server/*"
54+
# dest: "rsync-user@tiye.me:/servers/calcium-workflow/"
55+
56+
# - name: Display status from deploy
57+
# run: echo "${{ steps.deploy-server.outputs.status }}"

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@ backups/
1515

1616
.DS_Store
1717
lib
18+
19+
20+
playground

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ Macrophylla 是一个命令行助手,它使用 Gemini API 与用户交互,
2121
- 用户: y
2222
- 助手: (执行命令,并将结果返回)
2323

24+
### Debug
25+
26+
Open node inspecter from Chrome to debug:
27+
28+
```bash
29+
node --inspect --experimental-network-inspection bin.mjs
30+
```
31+
2432
### License
2533

2634
MIT

main.mjs

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

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
{
22
"name": "macrophylla",
33
"dependencies": {
4-
"@calcit/procs": "^0.9.9",
5-
"@google/genai": "^0.8.0",
6-
"@google/generative-ai": "^0.24.0",
4+
"@calcit/procs": "^0.9.11",
5+
"@google/genai": "^0.10.0",
76
"chalk": "^5.4.1",
87
"string-width": "^7.2.0"
98
},
@@ -17,14 +16,15 @@
1716
"mcpl": "./bin.mjs"
1817
},
1918
"devDependencies": {
20-
"@types/node": "^22.14.0",
19+
"@types/node": "^22.15.3",
2120
"bottom-tip": "^0.1.5",
2221
"typescript": "^5.8.3",
2322
"url-parse": "^1.5.10",
24-
"vite": "^6.2.5"
23+
"vite": "^6.3.3"
2524
},
2625
"version": "0.0.1",
2726
"cirruInfo": {
2827
"calcitVersion": "0.9.9"
29-
}
28+
},
29+
"packageManager": "yarn@1.22.19+sha1.4ba7fc5c6e704fce2066ecbfb0b0d8976fe62447"
3030
}

0 commit comments

Comments
 (0)