@musnows/scriverse 0.9.6 → 0.9.7
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/ai.js +11 -9
- package/dist/ai.js.map +1 -1
- package/dist/app.js +5 -5
- package/dist/app.js.map +1 -1
- package/dist/public/ai-skill-menu.js +42 -0
- package/dist/public/ai-usage.d.ts +5 -2
- package/dist/public/ai-usage.js +50 -37
- package/dist/public/app.js +97 -25
- package/dist/public/index.html +3 -3
- package/dist/public/styles.css +28 -3
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/app.js
CHANGED
|
@@ -506,7 +506,7 @@ const aiPromptSchema = z.object({
|
|
|
506
506
|
streamIdleTimeoutSeconds: z.number().int().min(MIN_AI_STREAM_IDLE_TIMEOUT_SECONDS).max(MAX_AI_STREAM_IDLE_TIMEOUT_SECONDS).optional()
|
|
507
507
|
});
|
|
508
508
|
const aiUsageQuerySchema = z.object({
|
|
509
|
-
timezoneOffset: z.coerce.number().int().min(-840).max(840).
|
|
509
|
+
timezoneOffset: z.coerce.number().int().min(-840).max(840).optional()
|
|
510
510
|
}).strict();
|
|
511
511
|
const adminAiConversationQuerySchema = z.object({
|
|
512
512
|
page: z.string().optional(),
|
|
@@ -2819,8 +2819,8 @@ export function createRuntime(options) {
|
|
|
2819
2819
|
data(response, settings);
|
|
2820
2820
|
});
|
|
2821
2821
|
app.get("/api/platform/ai/usage", (request, response) => {
|
|
2822
|
-
|
|
2823
|
-
data(response, ai.getPlatformTokenUsage(
|
|
2822
|
+
parse(aiUsageQuerySchema, request.query);
|
|
2823
|
+
data(response, ai.getPlatformTokenUsage());
|
|
2824
2824
|
});
|
|
2825
2825
|
app.post("/api/platform/ai/usage/pricing/refresh", async (request, response) => {
|
|
2826
2826
|
if (!request.authUser)
|
|
@@ -2893,8 +2893,8 @@ export function createRuntime(options) {
|
|
|
2893
2893
|
data(response, await ai.updateRemoteMcpSettings(request.params.workId, request.body));
|
|
2894
2894
|
});
|
|
2895
2895
|
app.get("/api/works/:workId/ai-settings/usage", (request, response) => {
|
|
2896
|
-
|
|
2897
|
-
data(response, ai.getWorkTokenUsage(request.params.workId
|
|
2896
|
+
parse(aiUsageQuerySchema, request.query);
|
|
2897
|
+
data(response, ai.getWorkTokenUsage(request.params.workId));
|
|
2898
2898
|
});
|
|
2899
2899
|
app.get("/api/works/:workId/ai-settings/relationship-search-index", (request, response) => {
|
|
2900
2900
|
data(response, ai.getRelationshipSearchIndexStatus(request.params.workId));
|