@commonlyai/cli 0.1.195 → 0.1.197
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.
|
@@ -15,8 +15,7 @@ It is private and is not published on its own. `@commonlyai/cli` depends on it a
|
|
|
15
15
|
- Operator-pinned fleet seats select their CLI path in each seat's local `run.sh` launcher,
|
|
16
16
|
outside this repo. Update that pin and restart the seat to load a release.
|
|
17
17
|
Global CLI installs must be upgraded too; publishing does not update a running seat.
|
|
18
|
-
- Check the running wrapper's CLI path and the live spawn argv to see what it runs
|
|
19
|
-
([diagnosis guide](../../docs/runbooks/diagnosing-a-silent-seat.md#2-read-the-live-spawn--the-prompt-is-in-argv)).
|
|
18
|
+
- Check the running wrapper's CLI path and the live spawn argv to see what it runs.
|
|
20
19
|
The registry describes configuration; it does not prove what was loaded.
|
|
21
20
|
|
|
22
21
|
**Rule:** nothing here imports Commonly code. An adapter that needs Commonly policy (the memory preamble, the legacy sandbox-trust names, the fleet seat-model switch) takes it as a host object through its factory, for example `createHermesAdapter(host)`. The CLI binds that host in `cli/src/lib/adapters/<name>.js`. `cli/__tests__/seats-package.test.mjs` enforces the import rule and checks that the tarball carries every source file.
|
package/package.json
CHANGED
|
@@ -289,7 +289,6 @@ const OPEN_NETWORK = String.raw`
|
|
|
289
289
|
(socket-protocol 2)))
|
|
290
290
|
(allow mach-lookup
|
|
291
291
|
(global-name "com.apple.SecurityServer")
|
|
292
|
-
(global-name "com.apple.SystemConfiguration.DNSConfiguration")
|
|
293
292
|
(global-name "com.apple.SystemConfiguration.configd")
|
|
294
293
|
(global-name "com.apple.networkd")
|
|
295
294
|
(global-name "com.apple.ocspd")
|
|
@@ -297,6 +296,18 @@ const OPEN_NETWORK = String.raw`
|
|
|
297
296
|
(global-name "com.apple.securityd.xpc"))
|
|
298
297
|
`;
|
|
299
298
|
|
|
299
|
+
// Both network modes. On macOS, c-ares (node's dns.Resolver and dns.resolve*)
|
|
300
|
+
// reads the resolver list from configd's DNSConfiguration service while the
|
|
301
|
+
// Resolver is constructed. Denied, that lookup does not always fail: at
|
|
302
|
+
// times it blocks the main thread forever. dsh builds a Resolver as it loads,
|
|
303
|
+
// so confined turns ran to their 900 s timeout without sending a request
|
|
304
|
+
// (D106). Admitted, resolution fails fast, because mDNSResponder and port 53
|
|
305
|
+
// stay unreachable in a loopback profile. The service returns configuration
|
|
306
|
+
// and opens no channel out.
|
|
307
|
+
const RESOLVER_CONFIG = String.raw`
|
|
308
|
+
(allow mach-lookup (global-name "com.apple.SystemConfiguration.DNSConfiguration"))
|
|
309
|
+
`;
|
|
310
|
+
|
|
300
311
|
const escapeSbplString = (value) => String(value)
|
|
301
312
|
.replaceAll('\\', '\\\\')
|
|
302
313
|
.replaceAll('"', '\\"')
|
|
@@ -466,7 +477,7 @@ export const buildSeatbeltProfile = ({
|
|
|
466
477
|
})() : [];
|
|
467
478
|
|
|
468
479
|
return [
|
|
469
|
-
|
|
480
|
+
`${PLATFORM_BASELINE}${RESOLVER_CONFIG}${network === 'open' ? OPEN_NETWORK : ''}`.trim(),
|
|
470
481
|
executableRules,
|
|
471
482
|
executableSymlinkRules,
|
|
472
483
|
`(allow file-read-metadata file-test-existence (path-ancestors "${escapeSbplString(resolvedWorkspace)}"))`,
|