@commonlyai/cli 0.1.356 → 0.1.357
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/package.json
CHANGED
|
@@ -603,8 +603,15 @@ export const buildSeatbeltProfile = ({
|
|
|
603
603
|
`(allow file-read* file-test-existence ${literal(executablePath)})`,
|
|
604
604
|
`(allow file-read-metadata file-test-existence (path-ancestors "${escapeSbplString(executablePath)}"))`,
|
|
605
605
|
].join('\n') : '';
|
|
606
|
+
// The config folder is usually under the temp folder, which resolves through
|
|
607
|
+
// /private; a realpath of a file there (dsh's plugin preflight on the public
|
|
608
|
+
// guard) stats each ancestor. Metadata only, as for the read-only folders: no
|
|
609
|
+
// read or write on an ancestor or a file beside it (F115 prod walk, 11-12).
|
|
606
610
|
const mcpRule = resolvedMcpConfig
|
|
607
|
-
?
|
|
611
|
+
? [
|
|
612
|
+
`(allow file-read* file-test-existence ${subpath(resolvedMcpConfig)})`,
|
|
613
|
+
`(allow file-read-metadata file-test-existence (path-ancestors "${escapeSbplString(resolvedMcpConfig)}"))`,
|
|
614
|
+
].join('\n')
|
|
608
615
|
: '';
|
|
609
616
|
const readOnlyRules = resolvedReadOnlyPaths.map((path) => (
|
|
610
617
|
`(allow file-read* file-test-existence ${literal(path)})`
|