@musnows/scriverse 0.6.4 → 0.6.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/dist/ai.js +11 -10
- package/dist/ai.js.map +1 -1
- package/dist/app.js +1 -0
- package/dist/app.js.map +1 -1
- package/dist/database.js +18 -1
- package/dist/database.js.map +1 -1
- package/dist/public/ai-mentions.js +5 -1
- package/dist/public/app.js +22 -31
- package/dist/public/index.html +3 -7
- package/dist/public/styles.css +2 -23
- package/dist/store.js +7 -3
- package/dist/store.js.map +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/public/styles.css
CHANGED
|
@@ -515,7 +515,7 @@ input[type="checkbox"][hidden] { display: none; }
|
|
|
515
515
|
|
|
516
516
|
.left-panel, .ai-panel { position: relative; min-height: 0; background: var(--panel); }
|
|
517
517
|
.left-panel { display: flex; flex-direction: column; border-right: 1px solid var(--line); padding: 0; overflow: hidden; }
|
|
518
|
-
.left-panel-body { flex: 1 1 auto; min-height: 0; padding: 18px
|
|
518
|
+
.left-panel-body { flex: 1 1 auto; min-height: 0; padding: 18px 14px 16px; overflow-y: auto; }
|
|
519
519
|
.ai-panel { border-left: 1px solid var(--line); display: flex; flex-direction: column; padding: 14px 16px 18px; min-width: 0; }
|
|
520
520
|
.panel-collapse-button { z-index: 8; flex: 0 0 auto; width: 24px; height: 24px; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); color: var(--muted); font-size: 18px; line-height: 1; }
|
|
521
521
|
.ai-heading #ai-panel-toggle { flex-basis: 30px; width: 30px; height: 30px; }
|
|
@@ -2212,27 +2212,6 @@ select:focus, input:focus, textarea:focus { border-color: #a77768; box-shadow: 0
|
|
|
2212
2212
|
.prompt-options select { padding: 6px; color: var(--muted); font-size: 10px; }
|
|
2213
2213
|
.prompt-options .ai-roleplay-character { min-width: 0; }
|
|
2214
2214
|
.ai-panel.is-roleplaying .ai-roleplay-character { border-color: color-mix(in srgb, var(--accent) 52%, var(--line)); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); color: var(--accent-dark); }
|
|
2215
|
-
.prompt-options .ai-include-setting-info {
|
|
2216
|
-
grid-column: 1 / -1;
|
|
2217
|
-
display: inline-flex;
|
|
2218
|
-
align-items: center;
|
|
2219
|
-
gap: 6px;
|
|
2220
|
-
min-height: 28px;
|
|
2221
|
-
color: var(--muted);
|
|
2222
|
-
font-size: 10px;
|
|
2223
|
-
cursor: pointer;
|
|
2224
|
-
user-select: none;
|
|
2225
|
-
}
|
|
2226
|
-
.prompt-options .ai-include-setting-info input {
|
|
2227
|
-
width: 14px;
|
|
2228
|
-
height: 14px;
|
|
2229
|
-
margin: 0;
|
|
2230
|
-
accent-color: var(--accent);
|
|
2231
|
-
}
|
|
2232
|
-
.prompt-options .ai-include-setting-info:has(input:disabled) {
|
|
2233
|
-
opacity: 0.55;
|
|
2234
|
-
cursor: not-allowed;
|
|
2235
|
-
}
|
|
2236
2215
|
.prompt-model-field { margin: 0 0 7px; }
|
|
2237
2216
|
.prompt-model-field select { padding: 6px; color: var(--muted); font-size: 10px; }
|
|
2238
2217
|
.prompt-composer { position: relative; }
|
|
@@ -2922,7 +2901,7 @@ select:focus, input:focus, textarea:focus { border-color: #a77768; box-shadow: 0
|
|
|
2922
2901
|
}
|
|
2923
2902
|
|
|
2924
2903
|
@media (max-width: 1100px) {
|
|
2925
|
-
.left-panel-body { padding-inline: 10px
|
|
2904
|
+
.left-panel-body { padding-inline: 10px; }
|
|
2926
2905
|
.ai-panel { padding-inline: 14px; }
|
|
2927
2906
|
.editor-toolbar { grid-template-areas: "path" "title" "actions"; grid-template-columns: minmax(0, 1fr); gap: 12px; padding-inline: 6%; }
|
|
2928
2907
|
.editor-actions { justify-content: flex-end; flex-wrap: wrap; }
|
package/dist/store.js
CHANGED
|
@@ -752,6 +752,7 @@ export class Store {
|
|
|
752
752
|
agentToolCallLimit: Math.min(48, Math.max(5, Number(row?.agent_tool_call_limit ?? 12) || 12)),
|
|
753
753
|
agentToolCallGlobalMultiplier: Math.min(6, Math.max(1, Number(row?.agent_tool_call_global_multiplier ?? 3) || 3)),
|
|
754
754
|
agentTools: normalizeWorkAgentTools(row?.agent_tools_json),
|
|
755
|
+
alwaysIncludeSettingInfo: Number(row?.always_include_setting_info ?? 0) === 1,
|
|
755
756
|
titleGenerationModelId: row?.title_generation_model_id === null || row?.title_generation_model_id === undefined
|
|
756
757
|
? null
|
|
757
758
|
: String(row.title_generation_model_id),
|
|
@@ -776,6 +777,7 @@ export class Store {
|
|
|
776
777
|
const nextAgentToolCallLimit = input.agentToolCallLimit ?? Number(current.agentToolCallLimit);
|
|
777
778
|
const nextAgentToolCallGlobalMultiplier = input.agentToolCallGlobalMultiplier ?? Number(current.agentToolCallGlobalMultiplier);
|
|
778
779
|
const nextAgentTools = normalizeWorkAgentTools(input.agentTools ?? current.agentTools);
|
|
780
|
+
const nextAlwaysIncludeSettingInfo = input.alwaysIncludeSettingInfo ?? Boolean(current.alwaysIncludeSettingInfo);
|
|
779
781
|
const nextTitleGenerationModelId = input.titleGenerationModelId === undefined
|
|
780
782
|
? (current.titleGenerationModelId ? String(current.titleGenerationModelId) : null)
|
|
781
783
|
: input.titleGenerationModelId?.trim() || null;
|
|
@@ -784,8 +786,8 @@ export class Store {
|
|
|
784
786
|
auto_run_daily_task_limit, auto_run_failure_threshold, auto_run_paused, auto_run_pause_reason,
|
|
785
787
|
auto_run_resume_at, auto_run_consecutive_failures, book_summary_context_percent,
|
|
786
788
|
context_compact_threshold, agent_tool_call_limit, agent_tool_call_global_multiplier,
|
|
787
|
-
agent_tools_json, title_generation_model_id, updated_at
|
|
788
|
-
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
789
|
+
agent_tools_json, title_generation_model_id, always_include_setting_info, updated_at
|
|
790
|
+
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
789
791
|
ON CONFLICT(work_id) DO UPDATE SET
|
|
790
792
|
system_prompt = excluded.system_prompt,
|
|
791
793
|
daily_token_quota = excluded.daily_token_quota,
|
|
@@ -804,7 +806,8 @@ export class Store {
|
|
|
804
806
|
agent_tool_call_global_multiplier = excluded.agent_tool_call_global_multiplier,
|
|
805
807
|
agent_tools_json = excluded.agent_tools_json,
|
|
806
808
|
title_generation_model_id = excluded.title_generation_model_id,
|
|
807
|
-
|
|
809
|
+
always_include_setting_info = excluded.always_include_setting_info,
|
|
810
|
+
updated_at = excluded.updated_at`, workId, nextPrompt, nextDailyTokenQuota, nextEnabled ? 1 : 0, Math.min(8, Math.max(1, nextConcurrency)), Math.min(200, Math.max(1, nextBatchLimit)), Math.min(10_000, Math.max(0, nextDailyTaskLimit)), Math.min(10, Math.max(1, nextFailureThreshold)), current.autoRunPaused ? 1 : 0, String(current.autoRunPauseReason ?? ""), current.autoRunResumeAt === null ? null : String(current.autoRunResumeAt), Math.max(0, Number(current.autoRunConsecutiveFailures) || 0), Math.min(90, Math.max(1, nextBookSummaryContextPercent)), Math.min(90, Math.max(50, nextContextCompactThreshold)), Math.min(48, Math.max(5, nextAgentToolCallLimit)), Math.min(6, Math.max(1, nextAgentToolCallGlobalMultiplier)), JSON.stringify(nextAgentTools), nextTitleGenerationModelId, nextAlwaysIncludeSettingInfo ? 1 : 0, timestamp);
|
|
808
811
|
this.audit(workId, "work.ai-settings.updated", "work-ai-settings", workId, {
|
|
809
812
|
systemPromptChanged: input.systemPrompt !== undefined,
|
|
810
813
|
dailyTokenQuota: nextDailyTokenQuota,
|
|
@@ -818,6 +821,7 @@ export class Store {
|
|
|
818
821
|
agentToolCallLimit: Math.min(48, Math.max(5, nextAgentToolCallLimit)),
|
|
819
822
|
agentToolCallGlobalMultiplier: Math.min(6, Math.max(1, nextAgentToolCallGlobalMultiplier)),
|
|
820
823
|
agentTools: nextAgentTools,
|
|
824
|
+
alwaysIncludeSettingInfo: nextAlwaysIncludeSettingInfo,
|
|
821
825
|
titleGenerationModelId: nextTitleGenerationModelId
|
|
822
826
|
});
|
|
823
827
|
return this.getWorkAiSettings(workId);
|