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
27 changes: 24 additions & 3 deletions .github/workflows/upload.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,30 @@ jobs:
- name: Build site
run: yarn vite build --base=./

- name: Select deployment path
id: deploy-path
env:
EVENT_NAME: ${{ github.event_name }}
REPOSITORY: ${{ github.repository }}
run: |
if [ "$EVENT_NAME" = "pull_request" ]; then
echo "dest=rsync-user@tiye.me:/web-assets/repo/${REPOSITORY}/pr" >> "$GITHUB_OUTPUT"
else
echo "dest=rsync-user@tiye.me:/web-assets/repo/${REPOSITORY}" >> "$GITHUB_OUTPUT"
fi

- name: Prepare deployment directory
env:
DEPLOY_KEY: ${{ secrets.rsync_private_key }}
DEPLOY_DEST: ${{ steps.deploy-path.outputs.dest }}
run: |
key_file="$RUNNER_TEMP/deploy_key"
printf '%s\n' "$DEPLOY_KEY" > "$key_file"
chmod 600 "$key_file"
deploy_path="${DEPLOY_DEST#*:}"
ssh -i "$key_file" -o StrictHostKeyChecking=no rsync-user@tiye.me "mkdir -p -- '$deploy_path'"

- name: Deploy to server
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
id: deploy
uses: Pendect/action-rsyncer@v2.0.0
env:
Expand All @@ -53,8 +75,7 @@ jobs:
options: ''
ssh_options: ''
src: 'dist/*'
dest: 'rsync-user@tiye.me:/web-assets/repo/${{ github.repository }}'
dest: ${{ steps.deploy-path.outputs.dest }}

- name: Display status from deploy
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: echo "${{ steps.deploy.outputs.status }}"
27 changes: 16 additions & 11 deletions calcit.cirru
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{} (:about "|Machine-generated snapshot. Do not edit directly — changes will be overwritten. Use `cr query` to inspect and `cr edit`/`cr tree` to modify. Run `cr docs agents --full` first. Manual edits must follow format and schema conventions, then run `cr edit format`.") (:package |app) (:version |0.0.1)
:entries $ {}
:default $ {} (:description |) (:init-fn 'app.main/main!) (:mode :js) (:reload-fn 'app.main/reload!)
:modules $ [] |respo.calcit/ |memof/ |respo-ui.calcit/ |reel.calcit/ |respo-markdown.calcit/ |alerts.calcit/ |respo-feather.calcit/
:modules $ [] |respo.calcit/ |respo-ui.calcit/ |reel.calcit/ |respo-markdown.calcit/ |alerts.calcit/ |respo-feather.calcit/
:type-slots $ {}
:files $ {}
|app.comp.container $ %{} 'FileEntry
Expand Down Expand Up @@ -280,7 +280,9 @@
:config $ js-object
:thinkingConfig $ if think?
js-object (:thinkingLevel |high) (:includeThoughts true)
js-object (:thinkingLevel |minimal) (:includeThoughts false)
js-object
:thinkingLevel $ if (= model |gemini-3.7-flash) |low |minimal
:includeThoughts false
:tools $ if
>
unsafe-coerce
Expand Down Expand Up @@ -651,11 +653,11 @@
not $ blank? thinking
div
{} $ :class-name style-thinking
memof1-call comp-md-block thinking $ {} (:class-name style-md-content)
memo-comp-by thinking comp-md-block thinking $ {} (:class-name style-md-content)
if (= role :assistant)
if (json-pattern? content)
pre $ {} (:class-name style-code-content) (:inner-text content)
memof1-call comp-md-block content $ {} (:class-name style-md-content)
memo-comp-by content comp-md-block content $ {} (:class-name style-md-content)
pre $ {} (:class-name style-message-text) (:inner-text content)
; Render archived sessions list
div
Expand Down Expand Up @@ -776,11 +778,11 @@
not $ blank? thinking
div
{} $ :class-name style-thinking
memof1-call comp-md-block thinking $ {} (:class-name style-md-content)
memo-comp-by thinking comp-md-block thinking $ {} (:class-name style-md-content)
if (= role :assistant)
if (json-pattern? content)
pre $ {} (:class-name style-code-content) (:inner-text content)
memof1-call comp-md-block content $ {} (:class-name style-md-content)
memo-comp-by content comp-md-block content $ {} (:class-name style-md-content)
pre $ {} (:class-name style-message-text) (:inner-text content)
if
and (= role :assistant)
Expand Down Expand Up @@ -1804,7 +1806,7 @@
ns app.comp.container $ :require (respo-ui.css :as css)
respo.css :refer $ defstyle
respo.util.format :refer $ hsl
respo.core :refer $ defcomp defeffect <> >> list-> div button textarea span input a pre img
respo.core :refer $ defcomp defeffect <> >> list-> div button textarea span input a pre img memo-comp-by
respo.comp.space :refer $ =<
respo.comp.inspect :refer $ comp-inspect
reel.comp.reel :refer $ comp-reel
Expand All @@ -1814,7 +1816,6 @@
respo-ui.comp :refer $ comp-copy style-close
|../extension/get-selected :refer $ get-selected
|../lib/db :refer $ db-get db-set
memof.once :refer $ memof1-call
|../lib/image :refer $ base64ToBlob
feather.core :refer $ comp-i
respo-alerts.core :refer $ [] use-modal-menu use-prompt use-drawer
Expand Down Expand Up @@ -1998,13 +1999,17 @@
let
t_start $ unsafe-coerce (js/Date.now) 'Number
println "|Rendering app..."
render! mount-target (comp-container @*reel) dispatch!
render-with! mount-target
fn () $ comp-container @*reel
, dispatch!
println "|Rendered in"
-
unsafe-coerce (js/Date.now) 'Number
, t_start
, |ms
render! mount-target (comp-container @*reel) dispatch!
render-with! mount-target
fn () $ comp-container @*reel
, dispatch!
:examples $ []
:schema $ :: 'Dynamic
|sync-gemini-key! $ %{} 'CodeEntry (:doc |)
Expand All @@ -2029,7 +2034,7 @@
:ns $ %{} 'NsEntry (:doc |)
:code $ quote
ns app.main $ :require
respo.core :refer $ render! clear-cache!
respo.core :refer $ render-with! clear-cache!
app.comp.container :refer $ comp-container submit-message! *archived-sessions *viewing-archive-session
app.updater :refer $ updater
app.schema :as schema
Expand Down
3 changes: 1 addition & 2 deletions deps.cirru
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@

{} (:calcit-version |0.13.18)
{} (:calcit-version |0.13.19)
:version |0.0.1
:dependencies $ {} (|Respo/alerts.calcit |0.10.17)
Comment on lines +2 to 4
|Respo/reel.calcit |0.6.6
|Respo/respo-feather.calcit |0.4.4
|Respo/respo-markdown.calcit |0.4.22
|Respo/respo-ui.calcit |0.7.7
|Respo/respo.calcit |0.16.72
|calcit-lang/memof |a132abef2900e629dc01688fba2d3e5b133791b2
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"dependencies": {
"@calcit/procs": "^0.13.18",
"@google/genai": "^2.12.0",
"@calcit/procs": "^0.13.19",
"@google/genai": "^2.13.0",
"@tiye/main-fonts": "0.0.1",
"axios": "^1.15.0",
"cirru-color": "^0.2.4",
Expand Down
1 change: 0 additions & 1 deletion vite.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export default defineConfig({
if (
id.includes("/node_modules/respo") ||
id.includes("/node_modules/reel") ||
id.includes("/node_modules/memof") ||
id.includes("/node_modules/@calcit/procs")
) {
return "vendor-core";
Expand Down
20 changes: 10 additions & 10 deletions yarn.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading