Skip to content

Commit e84659b

Browse files
committed
chore: Upgrade to Obelisk 0.24.0
1 parent 5f913c4 commit e84659b

514 files changed

Lines changed: 2135 additions & 1630 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ members = [
44
"activity/github/impl",
55
"activity/db/turso",
66
"activity/llm/openai",
7-
"webhook",
8-
"workflow",
7+
"webhook/webhook-rs",
8+
"workflow/workflow-rs",
99
]
1010

1111
[workspace.package]

Justfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ rust:
88
(cd activity/github/impl && cargo build --release)
99
(cd activity/db/turso && cargo build --release)
1010
(cd activity/llm/openai && cargo build --release)
11-
(cd webhook && cargo build --release)
12-
(cd workflow && cargo build --release)
11+
(cd webhook/webhook-rs && cargo build --release)
12+
(cd workflow/workflow-rs && cargo build --release)
1313

1414
# Build JavaScript components
1515
js:

activity/db/interface-ext/db-ext.wit

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

activity/db/turso/wit/deps/db-interface

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../wit/deps/stargazers_db

activity/db/turso/wit/turso-world.wit

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,5 @@ package stargazers:db-turso;
22

33
world any {
44
// wasi:http/outgoing-handler imports are added automatically by `waki` crate.
5-
6-
export stargazers:db/user;
7-
export stargazers:db/llm;
5+
include stargazers:db/exports;
86
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,8 @@ interface llm {
2828
/// Return a string containing JSON configuration for the `llm` activity.
2929
get-settings-json: func() -> result<string, string>;
3030
}
31+
32+
world exports {
33+
export user;
34+
export llm;
35+
}

activity/db/wit/dummy.wit

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// Only here for generating the WITT files.
2+
package any:any;
3+
4+
world dummy {
5+
include stargazers:db/exports;
6+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
// Generated by Obelisk
2+
package stargazers:db-obelisk-ext;
3+
4+
interface user {
5+
use obelisk:types/execution@2.0.0.{execution-id, join-set-id, await-next-extension-error, get-extension-error};
6+
use stargazers:db/user.{stargazer, ordering};
7+
8+
add-star-get-description-submit: func(join-set-id: borrow<join-set-id>, login: string, repo: string) -> execution-id;
9+
10+
add-star-get-description-await-next: func(join-set-id: borrow<join-set-id>) -> result<tuple<execution-id, result<option<string>, string>>, await-next-extension-error>;
11+
12+
add-star-get-description-get: func(execution-id: execution-id) -> result<result<option<string>, string>, get-extension-error>;
13+
14+
remove-star-submit: func(join-set-id: borrow<join-set-id>, login: string, repo: string) -> execution-id;
15+
16+
remove-star-await-next: func(join-set-id: borrow<join-set-id>) -> result<tuple<execution-id, result<_, string>>, await-next-extension-error>;
17+
18+
remove-star-get: func(execution-id: execution-id) -> result<result<_, string>, get-extension-error>;
19+
20+
update-user-description-submit: func(join-set-id: borrow<join-set-id>, username: string, description: string) -> execution-id;
21+
22+
update-user-description-await-next: func(join-set-id: borrow<join-set-id>) -> result<tuple<execution-id, result<_, string>>, await-next-extension-error>;
23+
24+
update-user-description-get: func(execution-id: execution-id) -> result<result<_, string>, get-extension-error>;
25+
26+
list-stargazers-submit: func(join-set-id: borrow<join-set-id>, last: u8, repo: option<string>, ordering: ordering) -> execution-id;
27+
28+
list-stargazers-await-next: func(join-set-id: borrow<join-set-id>) -> result<tuple<execution-id, result<list<stargazer>, string>>, await-next-extension-error>;
29+
30+
list-stargazers-get: func(execution-id: execution-id) -> result<result<list<stargazer>, string>, get-extension-error>;
31+
}
32+
33+
interface llm {
34+
use obelisk:types/execution@2.0.0.{execution-id, join-set-id, await-next-extension-error, get-extension-error};
35+
36+
get-settings-json-submit: func(join-set-id: borrow<join-set-id>) -> execution-id;
37+
38+
get-settings-json-await-next: func(join-set-id: borrow<join-set-id>) -> result<tuple<execution-id, result<string, string>>, await-next-extension-error>;
39+
40+
get-settings-json-get: func(execution-id: execution-id) -> result<result<string, string>, get-extension-error>;
41+
}
42+
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// Generated by Obelisk
2+
package stargazers:db-obelisk-schedule;
3+
4+
interface user {
5+
use obelisk:types/execution@2.0.0.{execution-id};
6+
use obelisk:types/time@2.0.0.{schedule-at};
7+
use stargazers:db/user.{stargazer, ordering};
8+
9+
add-star-get-description-schedule: func(schedule-at: schedule-at, login: string, repo: string) -> execution-id;
10+
11+
remove-star-schedule: func(schedule-at: schedule-at, login: string, repo: string) -> execution-id;
12+
13+
update-user-description-schedule: func(schedule-at: schedule-at, username: string, description: string) -> execution-id;
14+
15+
list-stargazers-schedule: func(schedule-at: schedule-at, last: u8, repo: option<string>, ordering: ordering) -> execution-id;
16+
}
17+
18+
interface llm {
19+
use obelisk:types/execution@2.0.0.{execution-id};
20+
use obelisk:types/time@2.0.0.{schedule-at};
21+
22+
get-settings-json-schedule: func(schedule-at: schedule-at) -> execution-id;
23+
}
24+

0 commit comments

Comments
 (0)