@rzx/ohs 1.1.15 → 1.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/frontend/index.js +24 -1
- package/dist/frontend/index.js.map +9 -8
- package/dist/index.js +2038 -97
- package/dist/index.js.map +31 -25
- package/dist/migrations/0018_session_goals.sql +17 -0
- package/dist/migrations/0019_session_goal_progress.sql +3 -0
- package/dist/migrations/meta/_journal.json +140 -18
- package/package.json +11 -11
package/dist/frontend/index.js
CHANGED
|
@@ -798,6 +798,11 @@ var init_capabilities = __esm(() => {
|
|
|
798
798
|
init_attachment();
|
|
799
799
|
});
|
|
800
800
|
|
|
801
|
+
// ../../packages/protocol/src/session-goals.ts
|
|
802
|
+
var init_session_goals = __esm(() => {
|
|
803
|
+
init_requests();
|
|
804
|
+
});
|
|
805
|
+
|
|
801
806
|
// ../../packages/protocol/src/index.ts
|
|
802
807
|
var init_src = __esm(() => {
|
|
803
808
|
init_session();
|
|
@@ -806,6 +811,7 @@ var init_src = __esm(() => {
|
|
|
806
811
|
init_capabilities();
|
|
807
812
|
init_attachment();
|
|
808
813
|
init_session_input_items();
|
|
814
|
+
init_session_goals();
|
|
809
815
|
});
|
|
810
816
|
|
|
811
817
|
// ../../packages/client/src/transport/http-client.ts
|
|
@@ -1071,6 +1077,22 @@ class OpenHarnessClient {
|
|
|
1071
1077
|
async compactSession(sessionId, options = {}) {
|
|
1072
1078
|
return await this.request(`/sessions/${encodeURIComponent(sessionId)}/compact`, { method: "POST", signal: options.signal });
|
|
1073
1079
|
}
|
|
1080
|
+
async getSessionGoal(sessionId) {
|
|
1081
|
+
const response = await this.request(`/sessions/${encodeURIComponent(sessionId)}/goal`);
|
|
1082
|
+
return response.goal;
|
|
1083
|
+
}
|
|
1084
|
+
async createSessionGoal(sessionId, input) {
|
|
1085
|
+
const response = await this.request(`/sessions/${encodeURIComponent(sessionId)}/goals`, { method: "POST", body: input });
|
|
1086
|
+
return response.goal;
|
|
1087
|
+
}
|
|
1088
|
+
async updateSessionGoal(sessionId, goalId, input) {
|
|
1089
|
+
const response = await this.request(`/sessions/${encodeURIComponent(sessionId)}/goals/${encodeURIComponent(goalId)}`, { method: "PATCH", body: input });
|
|
1090
|
+
return response.goal;
|
|
1091
|
+
}
|
|
1092
|
+
async applySessionGoalAction(sessionId, goalId, input) {
|
|
1093
|
+
const response = await this.request(`/sessions/${encodeURIComponent(sessionId)}/goals/${encodeURIComponent(goalId)}/actions`, { method: "POST", body: input });
|
|
1094
|
+
return response.goal;
|
|
1095
|
+
}
|
|
1074
1096
|
async rewindSession(sessionId, input = {}, options = {}) {
|
|
1075
1097
|
return await this.request(`/sessions/${encodeURIComponent(sessionId)}/rewind`, { method: "POST", body: input, signal: options.signal });
|
|
1076
1098
|
}
|
|
@@ -3010,6 +3032,7 @@ var init_commands = __esm(() => {
|
|
|
3010
3032
|
var init_src2 = __esm(() => {
|
|
3011
3033
|
init_transport();
|
|
3012
3034
|
init_src();
|
|
3035
|
+
init_src();
|
|
3013
3036
|
init_state();
|
|
3014
3037
|
init_commands();
|
|
3015
3038
|
init_src();
|
|
@@ -8144,4 +8167,4 @@ try {
|
|
|
8144
8167
|
process.exit(1);
|
|
8145
8168
|
}
|
|
8146
8169
|
|
|
8147
|
-
//# debugId=
|
|
8170
|
+
//# debugId=CC7EA554B2C5EAF964756E2164756E21
|