@commonlyai/cli 0.1.98 → 0.1.100
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
package/src/commands/agent.js
CHANGED
|
@@ -51,6 +51,7 @@ import {
|
|
|
51
51
|
ADAPTERS_WITH_GRANT_BROKER,
|
|
52
52
|
ADAPTERS_WITH_DEFAULT_SANDBOX,
|
|
53
53
|
defaultMcpServers,
|
|
54
|
+
withDefaultMcpServer,
|
|
54
55
|
} from '../lib/default-environment.js';
|
|
55
56
|
import { withholdGrantBroker } from '../lib/grant-broker-guard.js';
|
|
56
57
|
import {
|
|
@@ -742,7 +743,9 @@ export const performAttach = async ({
|
|
|
742
743
|
let environment = null;
|
|
743
744
|
let workspace = null;
|
|
744
745
|
if (envPath) {
|
|
745
|
-
|
|
746
|
+
// An explicit spec augments the seat; it does not remove the Commonly
|
|
747
|
+
// kernel server. The daemon applies this same baseline before every spawn.
|
|
748
|
+
environment = withDefaultMcpServer(await parseEnvironmentFile(envPath), adapterName);
|
|
746
749
|
if (environment?.provider !== undefined && !adapter.supportsProvider) {
|
|
747
750
|
throw new Error('environment.provider requires a provider-capable adapter');
|
|
748
751
|
}
|
|
@@ -801,12 +804,12 @@ export const performAttach = async ({
|
|
|
801
804
|
// No --env provided. Apply a sensible default if the adapter supports MCP
|
|
802
805
|
// so a fresh `commonly agent attach claude` gives the agent commonly_*
|
|
803
806
|
// kernel tools out of the box (parity with cloud-codex, which boots with
|
|
804
|
-
// @commonlyai/mcp pre-wired in ~/.codex/config.toml).
|
|
805
|
-
//
|
|
807
|
+
// @commonlyai/mcp pre-wired in ~/.codex/config.toml). An explicit --env
|
|
808
|
+
// keeps its declarations and receives the same kernel MCP baseline above.
|
|
806
809
|
// See #440 for the gap that motivated this default.
|
|
807
810
|
environment = buildDefaultEnvironment(adapterName);
|
|
808
811
|
if (environment) {
|
|
809
|
-
log(
|
|
812
|
+
log('environment: applied default with @commonlyai/mcp wired');
|
|
810
813
|
}
|
|
811
814
|
}
|
|
812
815
|
|
|
@@ -148,6 +148,10 @@ const PLATFORM_BASELINE = String.raw`
|
|
|
148
148
|
(subpath "/opt/homebrew/Cellar"))
|
|
149
149
|
(allow file-read* file-test-existence
|
|
150
150
|
(subpath "/opt/homebrew/etc/openssl@3"))
|
|
151
|
+
; openssl@3/cert.pem resolves to this Homebrew CA bundle. Seatbelt checks the
|
|
152
|
+
; target path, so the openssl@3 directory grant alone does not admit TLS roots.
|
|
153
|
+
(allow file-read* file-test-existence
|
|
154
|
+
(literal "/opt/homebrew/etc/ca-certificates/cert.pem"))
|
|
151
155
|
(allow file-read* (subpath "/opt/homebrew/lib"))
|
|
152
156
|
(allow file-read* file-test-existence file-map-executable
|
|
153
157
|
(subpath "/opt/homebrew/opt"))
|