talentos 1.4.15 → 1.4.16
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/agent/adapters.js +37 -65
- package/dist/agent/codex-policy.js +2 -0
- package/dist/agent/gemini-probe.js +33 -122
- package/dist/agent/gemini-room.js +92 -0
- package/dist/agent/hermes-login.js +166 -0
- package/dist/agent/hermes-policy.js +179 -0
- package/dist/agent/hermes-probe.js +255 -0
- package/dist/agent/hermes-room.js +99 -0
- package/dist/agent/native/config.js +27 -13
- package/dist/agent/native/gate.js +7 -4
- package/dist/agent/native/projects.js +38 -1
- package/dist/agent/packet-order.js +26 -0
- package/dist/agent/provider-login.js +4 -3
- package/dist/agent/room-probe.js +129 -0
- package/dist/agent/room-profile.js +21 -45
- package/dist/agent/room-provider.js +7 -0
- package/dist/agent/room-providers.js +11 -0
- package/dist/agent-config.js +2 -1
- package/dist/agent-http.js +8 -6
- package/dist/agent-link.js +3 -2
- package/dist/commands/agent-serve.js +6 -6
- package/dist/provider-binary.js +8 -1
- package/package.json +1 -1
package/dist/provider-binary.js
CHANGED
|
@@ -5,11 +5,18 @@ const BINARY = {
|
|
|
5
5
|
claude_code: "claude",
|
|
6
6
|
codex: "codex",
|
|
7
7
|
gemini_cli: "gemini",
|
|
8
|
+
hermes_agent: "hermes",
|
|
8
9
|
};
|
|
9
10
|
const LABEL = {
|
|
10
11
|
claude_code: "Claude Code",
|
|
11
12
|
codex: "Codex",
|
|
12
13
|
gemini_cli: "Gemini CLI",
|
|
14
|
+
hermes_agent: "Hermes Agent",
|
|
15
|
+
};
|
|
16
|
+
// TalentOS never installs a provider. Hermes Agent is not an npm package (the
|
|
17
|
+
// one under that name is an unofficial bridge), so its message says where it comes from.
|
|
18
|
+
const INSTALL_HINT = {
|
|
19
|
+
hermes_agent: "install it from hermes-agent.nousresearch.com, then ",
|
|
13
20
|
};
|
|
14
21
|
export class ProviderBinaryError extends Error {
|
|
15
22
|
exitCode = 78;
|
|
@@ -39,7 +46,7 @@ export function resolveProviderBinary(provider, configured) {
|
|
|
39
46
|
}
|
|
40
47
|
}
|
|
41
48
|
const label = LABEL[provider];
|
|
42
|
-
throw new ProviderBinaryError(`${label} not found at ${configured ?? join(homeDir(), ".local/bin", binary)}; run talentos agent repair`);
|
|
49
|
+
throw new ProviderBinaryError(`${label} not found at ${configured ?? join(homeDir(), ".local/bin", binary)}; ${INSTALL_HINT[provider] ?? ""}run talentos agent repair`);
|
|
43
50
|
}
|
|
44
51
|
export function providerPathEnv(binary, home = homeDir(), includeRuntimeNode = true) {
|
|
45
52
|
return [
|
package/package.json
CHANGED