@fatagnus/convex-feedback 0.2.4 → 0.2.5
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/package.json
CHANGED
|
@@ -120,7 +120,8 @@ const generateBugReport = createTool({
|
|
|
120
120
|
featureArea: z.string().optional().describe("Which feature area is affected"),
|
|
121
121
|
}),
|
|
122
122
|
handler: async (ctx, args): Promise<string> => {
|
|
123
|
-
|
|
123
|
+
// Access sessionId from customCtx (passed via generateText options)
|
|
124
|
+
const sessionId = ctx.customCtx?.sessionId as string | undefined;
|
|
124
125
|
|
|
125
126
|
if (sessionId) {
|
|
126
127
|
await ctx.runMutation(internal.agents.feedbackInterviewAgent.updateSession, {
|
|
@@ -132,6 +133,8 @@ const generateBugReport = createTool({
|
|
|
132
133
|
generatedReproSteps: args.reproductionSteps,
|
|
133
134
|
isComplete: true,
|
|
134
135
|
});
|
|
136
|
+
} else {
|
|
137
|
+
console.warn("generateBugReport: No sessionId in customCtx, session not updated");
|
|
135
138
|
}
|
|
136
139
|
|
|
137
140
|
return JSON.stringify({
|
|
@@ -161,7 +164,8 @@ const generateFeedback = createTool({
|
|
|
161
164
|
featureArea: z.string().optional().describe("Which feature area this relates to"),
|
|
162
165
|
}),
|
|
163
166
|
handler: async (ctx, args): Promise<string> => {
|
|
164
|
-
|
|
167
|
+
// Access sessionId from customCtx (passed via generateText options)
|
|
168
|
+
const sessionId = ctx.customCtx?.sessionId as string | undefined;
|
|
165
169
|
|
|
166
170
|
if (sessionId) {
|
|
167
171
|
await ctx.runMutation(internal.agents.feedbackInterviewAgent.updateSession, {
|
|
@@ -173,6 +177,8 @@ const generateFeedback = createTool({
|
|
|
173
177
|
generatedFeatureArea: args.featureArea,
|
|
174
178
|
isComplete: true,
|
|
175
179
|
});
|
|
180
|
+
} else {
|
|
181
|
+
console.warn("generateFeedback: No sessionId in customCtx, session not updated");
|
|
176
182
|
}
|
|
177
183
|
|
|
178
184
|
return JSON.stringify({
|