@musnows/scriverse 0.6.10 → 0.6.13
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/README.md +2 -0
- package/dist/ai.js +43 -10
- package/dist/ai.js.map +1 -1
- package/dist/app.js +8 -0
- package/dist/app.js.map +1 -1
- package/dist/database.js +49 -3
- package/dist/database.js.map +1 -1
- package/dist/public/app.js +92 -4
- package/dist/public/index.html +2 -2
- package/dist/public/styles.css +29 -11
- package/dist/server-runtime.js +118 -4
- package/dist/server-runtime.js.map +1 -1
- package/dist/store.js +95 -16
- package/dist/store.js.map +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -1
package/dist/app.js
CHANGED
|
@@ -654,6 +654,9 @@ function redactTaskCharacterNames(record, permissions) {
|
|
|
654
654
|
const { targetCharacters: _targetCharacters, ...redactedScope } = scope;
|
|
655
655
|
result.scope = redactedScope;
|
|
656
656
|
}
|
|
657
|
+
const scopeTarget = recordValue(result.scopeTarget);
|
|
658
|
+
if (scopeTarget?.type === "character")
|
|
659
|
+
delete result.scopeTarget;
|
|
657
660
|
const taskResult = recordValue(result.result);
|
|
658
661
|
if (taskResult) {
|
|
659
662
|
const redactedTaskResult = { ...taskResult };
|
|
@@ -679,6 +682,11 @@ function redactTaskCharacterNames(record, permissions) {
|
|
|
679
682
|
result.result = redactedTaskResult;
|
|
680
683
|
}
|
|
681
684
|
}
|
|
685
|
+
if (proseRestricted) {
|
|
686
|
+
const scopeTarget = recordValue(result.scopeTarget);
|
|
687
|
+
if (scopeTarget?.type === "chapter")
|
|
688
|
+
delete result.scopeTarget;
|
|
689
|
+
}
|
|
682
690
|
if (permissions.relationships === "none") {
|
|
683
691
|
const taskResult = recordValue(result.result);
|
|
684
692
|
const changePreview = recordValue(taskResult?.relationshipChangePreview);
|