@pi-chamber/web 0.7.0 → 0.7.1
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/assets/{CommitSection-BL61C8nr.js → CommitSection-DuGkZ_bm.js} +1 -1
- package/dist/assets/{DiagramEditor-CH_gE8Ho.js → DiagramEditor-C7xe1Brl.js} +1 -1
- package/dist/assets/{DiagramView-D5PsfvzH.js → DiagramView-BTqROEWP.js} +1 -1
- package/dist/assets/{DiffView-CP49mbz0.js → DiffView-hcqXTjEc.js} +3 -3
- package/dist/assets/{FilesView-DQ0jIXPf.js → FilesView-GadyKxta.js} +4 -4
- package/dist/assets/{GitView-BvIVUn8p.js → GitView-BKy-hYUN.js} +3 -3
- package/dist/assets/{JsonTreeView-4xkZ1oUB.js → JsonTreeView-CGc4eTGI.js} +1 -1
- package/dist/assets/{MarkdownRendererImpl-BYiITelR.js → MarkdownRendererImpl-CqfEAhPM.js} +1 -1
- package/dist/assets/{PatchDiff-cYVpwvLs.js → PatchDiff-P17-Byb8.js} +1 -1
- package/dist/assets/{PierreDiffViewer-CxTRnaw4.js → PierreDiffViewer-BbUCO4IF.js} +1 -1
- package/dist/assets/{SessionSwitcherContent-C_kE1AkY.js → SessionSwitcherContent-j6KFBSe0.js} +1 -1
- package/dist/assets/{SessionSwitcherDropdown-CCXNg-hd.js → SessionSwitcherDropdown-DSVeuuVL.js} +2 -2
- package/dist/assets/{SessionUnreadDot-DcLebnEm.js → SessionUnreadDot-BVBBEBTg.js} +1 -1
- package/dist/assets/SettingsView-FnmtcWZc.js +4 -0
- package/dist/assets/{SettingsWindow-BCfEIGLV.js → SettingsWindow-Bascj0V3.js} +1 -1
- package/dist/assets/{ToolOutputDialog-CG3Djpaw.js → ToolOutputDialog-CPMzJ27S.js} +5 -5
- package/dist/assets/{ToolPartDiffPreview-Bno_Kf_v.js → ToolPartDiffPreview-BZSRKHHM.js} +1 -1
- package/dist/assets/{VirtualizedFileDiff-CtTCV9aT.js → VirtualizedFileDiff-DFx8xsmh.js} +3 -3
- package/dist/assets/{WindowsWindowControls-C1cyCACC.js → WindowsWindowControls-DIqnZ2uU.js} +105 -105
- package/dist/assets/{collapsible-Y0lXAGWU.js → collapsible-DlqZyxEY.js} +1 -1
- package/dist/assets/{computeVirtualFileMetrics-Ygq8IDgM.js → computeVirtualFileMetrics-elCbdk6U.js} +1 -1
- package/dist/assets/{contextFileOpenGuard-CdZD2lzt.js → contextFileOpenGuard-BmQ7Zu-L.js} +1 -1
- package/dist/assets/{index-Cl-EsRzi.js → index-BerHSX92.js} +1 -1
- package/dist/assets/{index-CiQblNLS.js → index-ChFxkws4.js} +6 -6
- package/dist/assets/index-DZ-f_hCQ.css +1 -0
- package/dist/assets/{isDiffPlainText-BOtu3iWK.js → isDiffPlainText-CvfRfc7h.js} +1 -1
- package/dist/assets/{isFilePlainText-DZkgwQ85.js → isFilePlainText-_vq9Ghu3.js} +1 -1
- package/dist/assets/{main-hi9Mn-Bi.js → main-DTCOwPr3.js} +2 -2
- package/dist/assets/main-DYs-nZO6.js +133 -0
- package/dist/assets/{markdownCore-BnziCWjq.js → markdownCore-CzWR_p3k.js} +2 -2
- package/dist/assets/{miniChat-jlNYy4Yo.js → miniChat-C2XxEA3N.js} +2 -2
- package/dist/assets/{mobile-B2J6RZei.js → mobile-BQhAOqV7.js} +2 -2
- package/dist/assets/{renderElectronMiniChatApp-D2j7dJjx.js → renderElectronMiniChatApp-M2bY1WKA.js} +2 -2
- package/dist/assets/{renderMobileApp-DRMRL_Rc.js → renderMobileApp-BnpHUUhY.js} +4 -4
- package/dist/assets/{runtimeSurface-DRCRpZ4U.js → runtimeSurface-OhCUGSKg.js} +1 -1
- package/dist/assets/{useInlineCommentController-BafZc9gs.js → useInlineCommentController-DC0iNSYX.js} +2 -2
- package/dist/assets/usePanelSlide-aeAIo1cp.js +56 -0
- package/dist/assets/{usePushVisibilityBeacon-C6yhoKax.js → usePushVisibilityBeacon-om5Qlrt6.js} +2 -2
- package/dist/assets/{useSwitcherItems-D4fvD6XH.js → useSwitcherItems-Bln2r_Q2.js} +1 -1
- package/dist/assets/{vendor-codemirror-language-data-DOlAvLSI.js → vendor-codemirror-language-data-Dv4zaHRN.js} +2 -2
- package/dist/assets/{web-components-CDndDwR4.js → web-components-BOt08OHk.js} +1 -1
- package/dist/index.html +4 -4
- package/dist/mini-chat.html +3 -3
- package/dist/mobile.html +3 -3
- package/package.json +1 -1
- package/server/lib/pi/session-daemon/session-daemon.js +25 -3
- package/dist/assets/SettingsView-CfpCOseW.js +0 -4
- package/dist/assets/index--zDkVFU6.css +0 -1
- package/dist/assets/main-BlGDTFM8.js +0 -133
- package/dist/assets/usePanelSlide-C4DKnekW.js +0 -56
|
@@ -287,6 +287,14 @@ export function createSessionDaemon({
|
|
|
287
287
|
if (typeof requested === 'string' && requested.trim().length > 0) {
|
|
288
288
|
const validated = await validateDirectoryPath(requested);
|
|
289
289
|
knownDirectories.add(validated);
|
|
290
|
+
// PiChamber projects are trusted by default — auto-trust on explicit add/select
|
|
291
|
+
// so skills (and other resources) never trigger the trust popup for known dirs.
|
|
292
|
+
try {
|
|
293
|
+
const trustStore = createTrustStore(agentDir);
|
|
294
|
+
if (trustStore.get(validated) === null && hasTrustRequiringProjectResources(validated)) {
|
|
295
|
+
trustStore.set(validated, true);
|
|
296
|
+
}
|
|
297
|
+
} catch {}
|
|
290
298
|
return validated;
|
|
291
299
|
}
|
|
292
300
|
return activeDirectory || cwd;
|
|
@@ -1380,7 +1388,15 @@ export function createSessionDaemon({
|
|
|
1380
1388
|
const readPiSettings = (requestedDirectory) => {
|
|
1381
1389
|
const targetDir = requestedDirectory || activeDirectory || cwd;
|
|
1382
1390
|
const trustStore = createTrustStore(agentDir);
|
|
1383
|
-
|
|
1391
|
+
let trust = trustStore.get(targetDir);
|
|
1392
|
+
// Auto-trust known PiChamber projects so the skills popup never appears.
|
|
1393
|
+
// `knownDirectories` tracks every dir the user explicitly added/selected.
|
|
1394
|
+
if (trust === null && knownDirectories.has(targetDir) && hasTrustRequiringProjectResources(targetDir)) {
|
|
1395
|
+
try {
|
|
1396
|
+
trustStore.set(targetDir, true);
|
|
1397
|
+
trust = true;
|
|
1398
|
+
} catch {}
|
|
1399
|
+
}
|
|
1384
1400
|
const manager = createSettingsManager({ cwd: targetDir, agentDir, projectTrusted: trust === true });
|
|
1385
1401
|
const global = manager.getGlobalSettings();
|
|
1386
1402
|
const project = manager.getProjectSettings();
|
|
@@ -1421,8 +1437,14 @@ export function createSessionDaemon({
|
|
|
1421
1437
|
if (hasTrust && payload.trust !== null && typeof payload.trust !== 'boolean') {
|
|
1422
1438
|
throw new SessionDaemonProtocolError('INVALID_ARGUMENT', 'The project trust decision is invalid.');
|
|
1423
1439
|
}
|
|
1424
|
-
if (hasTrust
|
|
1425
|
-
|
|
1440
|
+
if (hasTrust) {
|
|
1441
|
+
const targetRuntimes = runtimeRegistry?.listByDirectory?.(targetDir) ?? [];
|
|
1442
|
+
const inheritsActive = runtime && runtime.cwd === targetDir ? [runtime] : [];
|
|
1443
|
+
const allTarget = targetRuntimes.length > 0 ? targetRuntimes : inheritsActive;
|
|
1444
|
+
const isTargetStreaming = allTarget.some((r) => r.session?.isStreaming);
|
|
1445
|
+
if (isTargetStreaming) {
|
|
1446
|
+
throw new SessionDaemonProtocolError('SESSION_BUSY', 'Project trust cannot change during an active session.');
|
|
1447
|
+
}
|
|
1426
1448
|
}
|
|
1427
1449
|
const trustStore = createTrustStore(agentDir);
|
|
1428
1450
|
if (hasTrust) trustStore.set(targetDir, payload.trust);
|