arcrun — AI workflow execution engine (clean history)
Self-hosted 開源:WASM 零件 + recipe + cypher-executor,跑在你自己的 Cloudflare。 此為重建的乾淨歷史起點(移除曾誤 commit 的 GCP SA 金鑰,舊歷史保留在 richblack/arcrun 與本地 backup 分支)。含: - acr init --self-hosted installer(建 KV/R2 + codeload 拉預編譯 wasm + wrangler deploy + seed recipe) - recipe push 把關(資料外流提醒 + 打通檢查) - 19 個正當零件預編譯 wasm(claude_api/km_writer/kbdb_upsert_block 排除:違反 DECISIONS §1) - CLI / cypher-executor / registry / 完整 SDD Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
name: bad-component
|
||||
flow:
|
||||
- "input >> ON_SUCCESS >> nonexistent"
|
||||
config:
|
||||
nonexistent:
|
||||
component: does_not_exist
|
||||
@@ -0,0 +1,7 @@
|
||||
name: chinese-flow
|
||||
flow:
|
||||
- "input >> 完成後 >> transform"
|
||||
config:
|
||||
transform:
|
||||
component: string_ops
|
||||
operation: upper
|
||||
@@ -0,0 +1,23 @@
|
||||
name: cron_heartbeat
|
||||
description: |
|
||||
arcrun cron infra 健康監控 — 每分鐘觸發一次,set 節點輸出 message。
|
||||
用 wrangler tail arcrun-cypher-executor 看:每分鐘應出現 `[scheduled] trigger cron_heartbeat ...`
|
||||
跟 `[scheduled] done cron_heartbeat true {ms}ms`。
|
||||
|
||||
對應 SDD: matrix/arcrun/.agents/specs/arcrun/arcrun.md 三-A P1 #3。
|
||||
|
||||
flow:
|
||||
- "heartbeat_cron >> ON_SUCCESS >> log_heartbeat"
|
||||
|
||||
config:
|
||||
heartbeat_cron:
|
||||
component: cron
|
||||
cron_expr: "* * * * *"
|
||||
description: "每分鐘 cron infra heartbeat"
|
||||
|
||||
log_heartbeat:
|
||||
component: set
|
||||
values:
|
||||
message: "alive at {{_scheduled_at}}"
|
||||
cron_triggered: true
|
||||
api_key_prefix: "{{api_key}}"
|
||||
@@ -0,0 +1,7 @@
|
||||
name: custom-node
|
||||
flow:
|
||||
- "input >> ON_SUCCESS >> 我的轉換器"
|
||||
config:
|
||||
我的轉換器:
|
||||
component: string_ops
|
||||
operation: upper
|
||||
@@ -0,0 +1,11 @@
|
||||
name: error-routing
|
||||
flow:
|
||||
- "input >> ON_SUCCESS >> risky"
|
||||
- "risky >> ON_FAIL >> fallback"
|
||||
config:
|
||||
risky:
|
||||
component: http_request
|
||||
method: GET
|
||||
fallback:
|
||||
component: string_ops
|
||||
operation: upper
|
||||
@@ -0,0 +1,13 @@
|
||||
# arcrun hello world workflow
|
||||
# 執行:acr run hello --input input="Hello, arcrun!"
|
||||
|
||||
name: hello
|
||||
description: "Hello world — 示範字串轉大寫"
|
||||
|
||||
flow:
|
||||
- "input >> ON_SUCCESS >> transform"
|
||||
|
||||
config:
|
||||
transform:
|
||||
component: string_ops
|
||||
operation: upper
|
||||
@@ -0,0 +1,7 @@
|
||||
name: http-test
|
||||
flow:
|
||||
- "input >> ON_SUCCESS >> fetch"
|
||||
config:
|
||||
fetch:
|
||||
component: http_request
|
||||
method: GET
|
||||
@@ -0,0 +1,7 @@
|
||||
name: string-test
|
||||
flow:
|
||||
- "input >> ON_SUCCESS >> process"
|
||||
config:
|
||||
process:
|
||||
component: string_ops
|
||||
operation: "{{operation}}"
|
||||
@@ -0,0 +1,6 @@
|
||||
name: validate-test
|
||||
flow:
|
||||
- "input >> ON_SUCCESS >> check"
|
||||
config:
|
||||
check:
|
||||
component: validate_json
|
||||
Reference in New Issue
Block a user