@leiyi-works/dsh-session-tmpdir 0.10.5 → 0.10.6
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/index.js +2 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1747,6 +1747,7 @@ async function listAttachmentBlobs(attachmentsRoot) {
|
|
|
1747
1747
|
export function apply(ctx, config) {
|
|
1748
1748
|
const {
|
|
1749
1749
|
rootDirName,
|
|
1750
|
+
promptMode,
|
|
1750
1751
|
includeSubagents,
|
|
1751
1752
|
maxNameLength,
|
|
1752
1753
|
orphanCleanupDays,
|
|
@@ -2492,7 +2493,7 @@ export function apply(ctx, config) {
|
|
|
2492
2493
|
ctx.systemPrompt.context({
|
|
2493
2494
|
name: 'session-task-tmpdir',
|
|
2494
2495
|
order: 900,
|
|
2495
|
-
text: buildPromptText(
|
|
2496
|
+
text: buildPromptText({ promptMode, rootDirName, orphanCleanupDays, allowRootPatterns, allowRootFiles, allowOverwrite, requireApprovalOutsideTmp }),
|
|
2496
2497
|
}),
|
|
2497
2498
|
)
|
|
2498
2499
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leiyi-works/dsh-session-tmpdir",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Per-session task temp folder with a long-term write guard. v0.9 (方案3): creating a new file outside _tmp requires the user's approval (per file by default, per directory with mode=dir), overwriting an existing file is allowed without asking, every write channel is guarded (write/edit, shell including ffmpeg/pandoc/Export-*/IO APIs, publish copies, code runtimes, unknown tools), and the persisted whitelist is shown in a left-sidebar panel「临时目录」 where entries can be removed. Every session also gets _tmp/<session title>/ in its working directory, cleaned 7 days after the session is deleted; the same tick reclaims the attachment store.",
|
|
6
6
|
"exports": {
|