-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathobelisk-local-js-all.toml
More file actions
97 lines (88 loc) · 2.86 KB
/
Copy pathobelisk-local-js-all.toml
File metadata and controls
97 lines (88 loc) · 2.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
[[activity_js]]
name = "openai_js"
location = "activity/llm/openai-js/openai.js"
ffqn = "stargazers:llm/llm.respond"
params = [
{ name = "user-prompt", type = "string" },
{ name = "settings-json", type = "string" },
]
return_type = "result<string, string>"
exec.lock_expiry.seconds = 10
env_vars = [{key="OPENAI_API_BASE_URL", value="${OPENAI_API_BASE_URL:-https://api.openai.com}"}]
[[activity_js.allowed_host]]
pattern = "${OPENAI_API_BASE_URL:-https://api.openai.com}"
methods = ["POST"]
secrets = ["OPENAI_API_KEY"]
replace_in = ["headers"]
[[activity_wasm]]
name = "activity_github_impl"
location = "target/wasm32-wasip2/release/activity_github_impl.wasm"
exec.lock_expiry.seconds = 5
[[activity_wasm.allowed_host]]
pattern = "https://api.github.com"
methods = ["POST"]
secrets = ["GITHUB_TOKEN_STARGAZERS"]
replace_in = ["headers"]
[[activity_wasm]]
name = "activity_db_turso"
location = "target/wasm32-wasip2/release/activity_db_turso.wasm"
env_vars = ["TURSO_LOCATION"]
exec.lock_expiry.seconds = 5
[[activity_wasm.allowed_host]]
pattern = "${TURSO_LOCATION}"
methods = ["POST"]
secrets = ["TURSO_TOKEN"]
replace_in = ["headers"]
[[workflow_js]]
name = "workflow_js_star_added"
location = "workflow/stargazers/workflow-js/star-added.js"
ffqn = "stargazers:workflow/workflow.star-added"
params = [
{ name = "login", type = "string" },
{ name = "repo", type = "string" },
]
return_type = "result<_, string>"
[[workflow_js]]
name = "workflow_js_star_added_parallel"
location = "workflow/stargazers/workflow-js/star-added-parallel.js"
ffqn = "stargazers:workflow/workflow.star-added-parallel"
params = [
{ name = "login", type = "string" },
{ name = "repo", type = "string" },
]
return_type = "result<_, string>"
[[workflow_js]]
name = "workflow_js_star_removed"
location = "workflow/stargazers/workflow-js/star-removed.js"
ffqn = "stargazers:workflow/workflow.star-removed"
params = [
{ name = "login", type = "string" },
{ name = "repo", type = "string" },
]
return_type = "result<_, string>"
[[workflow_js]]
name = "workflow_js_backfill"
location = "workflow/stargazers/workflow-js/backfill.js"
ffqn = "stargazers:workflow/workflow.backfill"
params = [
{ name = "repo", type = "string" },
]
return_type = "result<_, string>"
[[workflow_js]]
name = "workflow_js_backfill_parallel"
location = "workflow/stargazers/workflow-js/backfill-parallel.js"
ffqn = "stargazers:workflow/workflow.backfill-parallel"
params = [
{ name = "repo", type = "string" },
]
return_type = "result<_, string>"
# Set GITHUB_WEBHOOK_SECRET to the webhook secret configured in GitHub.
# For development without a secret, set GITHUB_WEBHOOK_INSECURE=true instead.
[[webhook_endpoint_js]]
name = "webhook_js"
location = "webhook/webhook-js/webhook.js"
routes = [{ methods = ["POST", "GET"], route = "" }]
env_vars = [
"GITHUB_WEBHOOK_SECRET",
# "GITHUB_WEBHOOK_INSECURE=true" # skip verification (development only)
]