@commonlyai/cli 0.1.99 → 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 +1 -1
- package/src/commands/agent.js +7 -4
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
|
|