@annals/agent-mesh 0.15.0 → 0.15.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/index.js +3 -50
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1007,7 +1007,6 @@ var SENSITIVE_PATHS = [
|
|
|
1007
1007
|
// contains ah_ platform token
|
|
1008
1008
|
"~/.agent-mesh/pids",
|
|
1009
1009
|
"~/.agent-mesh/logs",
|
|
1010
|
-
"~/.codex",
|
|
1011
1010
|
// Package manager tokens
|
|
1012
1011
|
"~/.npmrc",
|
|
1013
1012
|
"~/.yarnrc",
|
|
@@ -1027,16 +1026,6 @@ var SANDBOX_PRESETS = {
|
|
|
1027
1026
|
allowWrite: [".", "/tmp"],
|
|
1028
1027
|
denyWrite: [".env", ".env.*"]
|
|
1029
1028
|
},
|
|
1030
|
-
codex: {
|
|
1031
|
-
denyRead: [...SENSITIVE_PATHS],
|
|
1032
|
-
allowWrite: [".", "/tmp"],
|
|
1033
|
-
denyWrite: [".env", ".env.*"]
|
|
1034
|
-
},
|
|
1035
|
-
gemini: {
|
|
1036
|
-
denyRead: [...SENSITIVE_PATHS],
|
|
1037
|
-
allowWrite: [".", "/tmp"],
|
|
1038
|
-
denyWrite: [".env", ".env.*"]
|
|
1039
|
-
},
|
|
1040
1029
|
openclaw: {
|
|
1041
1030
|
denyRead: [...SENSITIVE_PATHS],
|
|
1042
1031
|
allowWrite: ["/tmp"],
|
|
@@ -1748,34 +1737,6 @@ var ClaudeAdapter = class extends AgentAdapter {
|
|
|
1748
1737
|
}
|
|
1749
1738
|
};
|
|
1750
1739
|
|
|
1751
|
-
// src/adapters/codex.ts
|
|
1752
|
-
var CodexAdapter = class extends AgentAdapter {
|
|
1753
|
-
type = "codex";
|
|
1754
|
-
displayName = "Codex CLI";
|
|
1755
|
-
async isAvailable() {
|
|
1756
|
-
return false;
|
|
1757
|
-
}
|
|
1758
|
-
createSession(_id, _config) {
|
|
1759
|
-
throw new Error("Codex adapter not yet implemented");
|
|
1760
|
-
}
|
|
1761
|
-
destroySession(_id) {
|
|
1762
|
-
}
|
|
1763
|
-
};
|
|
1764
|
-
|
|
1765
|
-
// src/adapters/gemini.ts
|
|
1766
|
-
var GeminiAdapter = class extends AgentAdapter {
|
|
1767
|
-
type = "gemini";
|
|
1768
|
-
displayName = "Gemini CLI";
|
|
1769
|
-
async isAvailable() {
|
|
1770
|
-
return false;
|
|
1771
|
-
}
|
|
1772
|
-
createSession(_id, _config) {
|
|
1773
|
-
throw new Error("Gemini adapter not yet implemented");
|
|
1774
|
-
}
|
|
1775
|
-
destroySession(_id) {
|
|
1776
|
-
}
|
|
1777
|
-
};
|
|
1778
|
-
|
|
1779
1740
|
// src/commands/connect.ts
|
|
1780
1741
|
var DEFAULT_BRIDGE_URL = "wss://bridge.agents.hot/ws";
|
|
1781
1742
|
function logWorkspaceHint(slug, projectPath) {
|
|
@@ -1791,12 +1752,8 @@ function createAdapter(type, config) {
|
|
|
1791
1752
|
return new OpenClawAdapter(config);
|
|
1792
1753
|
case "claude":
|
|
1793
1754
|
return new ClaudeAdapter(config);
|
|
1794
|
-
case "codex":
|
|
1795
|
-
return new CodexAdapter(config);
|
|
1796
|
-
case "gemini":
|
|
1797
|
-
return new GeminiAdapter(config);
|
|
1798
1755
|
default:
|
|
1799
|
-
throw new Error(`Unknown agent type: ${type}. Supported: openclaw, claude
|
|
1756
|
+
throw new Error(`Unknown agent type: ${type}. Supported: openclaw, claude`);
|
|
1800
1757
|
}
|
|
1801
1758
|
}
|
|
1802
1759
|
function registerConnectCommand(program2) {
|
|
@@ -1962,11 +1919,7 @@ function registerConnectCommand(program2) {
|
|
|
1962
1919
|
log.info(`Checking ${adapter.displayName} availability...`);
|
|
1963
1920
|
const available = await adapter.isAvailable();
|
|
1964
1921
|
if (!available) {
|
|
1965
|
-
|
|
1966
|
-
log.error(`${adapter.displayName} adapter is not yet implemented. Supported adapters: openclaw, claude`);
|
|
1967
|
-
} else {
|
|
1968
|
-
log.error(`${adapter.displayName} is not available. Make sure it is installed and running.`);
|
|
1969
|
-
}
|
|
1922
|
+
log.error(`${adapter.displayName} is not available. Make sure it is installed and running.`);
|
|
1970
1923
|
process.exit(1);
|
|
1971
1924
|
}
|
|
1972
1925
|
log.success(`${adapter.displayName} is available`);
|
|
@@ -2208,7 +2161,7 @@ function registerStatusCommand(program2) {
|
|
|
2208
2161
|
}
|
|
2209
2162
|
console.log("\nTo connect an agent, run:");
|
|
2210
2163
|
console.log(" agent-mesh connect <type> --agent-id <id>");
|
|
2211
|
-
console.log("\nSupported types: openclaw, claude
|
|
2164
|
+
console.log("\nSupported types: openclaw, claude");
|
|
2212
2165
|
});
|
|
2213
2166
|
}
|
|
2214
2167
|
|