@sentropic/h2a-runtime 0.85.13 → 0.85.15
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.d.ts.map +1 -1
- package/dist/index.js +14 -9
- package/dist/index.js.map +1 -1
- package/dist/launch-context.d.ts +50 -0
- package/dist/launch-context.d.ts.map +1 -0
- package/dist/launch-context.js +108 -0
- package/dist/launch-context.js.map +1 -0
- package/dist/llm-gateway-runtime/model-catalog.d.ts.map +1 -1
- package/dist/llm-gateway-runtime/model-catalog.js +22 -1
- package/dist/llm-gateway-runtime/model-catalog.js.map +1 -1
- package/dist/llm-gateway-runtime/proxy-anthropic.d.ts.map +1 -1
- package/dist/llm-gateway-runtime/proxy-anthropic.js +6 -0
- package/dist/llm-gateway-runtime/proxy-anthropic.js.map +1 -1
- package/dist/llm-mesh.d.ts +7 -0
- package/dist/llm-mesh.d.ts.map +1 -1
- package/dist/llm-mesh.js +32 -0
- package/dist/llm-mesh.js.map +1 -1
- package/dist/sentropic/auth-token.d.ts +38 -0
- package/dist/sentropic/auth-token.d.ts.map +1 -0
- package/dist/sentropic/auth-token.js +78 -0
- package/dist/sentropic/auth-token.js.map +1 -0
- package/dist/sentropic/bind-decision.d.ts +79 -0
- package/dist/sentropic/bind-decision.d.ts.map +1 -0
- package/dist/sentropic/bind-decision.js +65 -0
- package/dist/sentropic/bind-decision.js.map +1 -0
- package/dist/sentropic/enroll-flow.d.ts +61 -0
- package/dist/sentropic/enroll-flow.d.ts.map +1 -0
- package/dist/sentropic/enroll-flow.js +48 -0
- package/dist/sentropic/enroll-flow.js.map +1 -0
- package/dist/tmux.d.ts +3 -0
- package/dist/tmux.d.ts.map +1 -1
- package/dist/tmux.js +20 -0
- package/dist/tmux.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"m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GAAG,OAAO,CAAC;CACtD,GACV,OAAO,CAAC,MAAM,CAAC,CAyCjB;AAQD,MAAM,MAAM,cAAc,GACtB;IAAE,OAAO,EAAE,IAAI,CAAC;IAAC,MAAM,EAAE,OAAO,GAAG,QAAQ,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAC7D;IAAE,OAAO,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAEtC;;;;;;;;;;;GAWG;AACH,wBAAsB,QAAQ,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,cAAc,CAAC,CAwP1E;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,aAAa,GAAG,cAAc,CAqHrE;AA4SD,wBAAsB,IAAI,CAAC,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,CAm4MvE;AA0BD,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,CAAC;AAE5B;;;;;;GAMG;AACH,wBAAgB,mBAAmB,IAAI,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAE5E;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,SAAM,GAAG,MAAM,CAEnE"}
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ import { transmittedSecrets, secretsSummary } from "./secrets.js";
|
|
|
14
14
|
import { localConvStat, remoteConvStat, alignment } from "./convsync.js";
|
|
15
15
|
import { gitAlignment, localAncestry, localGitStat, remoteGitStat, } from "./gitdiff.js";
|
|
16
16
|
import { syncConversation } from "./sync.js";
|
|
17
|
-
import { attachLocalSession, attachPodTmux, capturePane, conductorRunning, currentTmuxSessionIs, ensureManagedTmuxProfile, fanoutLabels, findLocalSession, killLocalSession, localSessionGatewayEnvStatus, listLocalSessions, localSessionIdle, localSessionName, relaunchInSession, resolveAgentPaneForInstance, runLocalCliForeground, sendKeysLiteral, sessionAttached, sessionAttachedCount, setLocalSessionDisplayName, slugify, startH2aWindow, startHeadlessSession, startLocalSession, tmuxAvailable, } from "./tmux.js";
|
|
17
|
+
import { attachLocalSession, attachPodTmux, capturePane, conductorRunning, currentTmuxSessionIs, ensureManagedTmuxProfile, fanoutLabels, findLocalSession, killLocalSession, localSessionGatewayEnvStatus, listLocalSessions, localSessionIdle, localSessionName, readLaunchContext, relaunchInSession, resolveAgentPaneForInstance, runLocalCliForeground, sendKeysLiteral, sessionAttached, sessionAttachedCount, setLocalSessionDisplayName, slugify, startH2aWindow, startHeadlessSession, startLocalSession, tmuxAvailable, } from "./tmux.js";
|
|
18
18
|
import { planRelaunch } from "./relaunch.js";
|
|
19
19
|
import { readLastLayout, restore as restoreLayout, } from "./restore.js";
|
|
20
20
|
import { getLayoutConfig } from "./config.js";
|
|
@@ -57,7 +57,7 @@ import { checkReadiness } from "./readiness.js";
|
|
|
57
57
|
import { createInterface } from "node:readline";
|
|
58
58
|
import { appendSessionLogEntry, clearBinding, clearExhaustion, enrollAccount, listAccounts, listAccountsWithTokens, listAccountsWithStatus, listBindings, lookupBinding, markExhausted, readClaudeCredential, readCodexCredential, removeAccount, selectAccount, selectAccountWithFallback, stickyBind, loadCandidates, sessionLogPath, exportSessionLogToS3, QUOTA_WINDOW_5H_MS, QUOTA_WINDOW_WEEK_MS, } from "./account-pool.js";
|
|
59
59
|
import { CLI_PROFILES } from "./protocol-local.js";
|
|
60
|
-
import { enrollCodexAccount, readLlmMeshConfig, startGateway, stopGateway, writeLlmMeshConfig, readGatewayPid, llmMeshLogPath, jwtExpiry, readLlmMeshSessionEnv, acquireLlmMeshSessionEnv, } from "./llm-mesh.js";
|
|
60
|
+
import { enrollCodexAccount, enrollClaudeAccount, readLlmMeshConfig, startGateway, stopGateway, writeLlmMeshConfig, readGatewayPid, llmMeshLogPath, jwtExpiry, readLlmMeshSessionEnv, acquireLlmMeshSessionEnv, } from "./llm-mesh.js";
|
|
61
61
|
const KNOWN_PROFILE_HELP = `${CLI_PROFILES.join(", ")} (aliases: claude-code, antigravity, gemini-cli, mistralcli)`;
|
|
62
62
|
export const packageName = "@sentropic/remote-cli";
|
|
63
63
|
export { run } from "./run.js";
|
|
@@ -3521,7 +3521,14 @@ export async function main(argv) {
|
|
|
3521
3521
|
process.exitCode = 1;
|
|
3522
3522
|
return;
|
|
3523
3523
|
}
|
|
3524
|
-
|
|
3524
|
+
const inspect = projectRemoteAgentInspect(agent);
|
|
3525
|
+
// Enrich with the tmux LAUNCH CONTEXT (gateway on/off, model-map, h2a command, resume)
|
|
3526
|
+
// recorded on the session — so `h2a agents inspect` shows WHICH options started it.
|
|
3527
|
+
const ctx = agent.tmuxSession
|
|
3528
|
+
? readLaunchContext(agent.tmuxSession)
|
|
3529
|
+
: undefined;
|
|
3530
|
+
const out = ctx ? { ...inspect, launchContext: ctx } : inspect;
|
|
3531
|
+
process.stdout.write(`${JSON.stringify(out, null, 2)}\n`);
|
|
3525
3532
|
});
|
|
3526
3533
|
// ---------------------------------------------------------------------------
|
|
3527
3534
|
// jobs — supervise delegated jobs (ls / status / attach / logs)
|
|
@@ -5651,12 +5658,10 @@ export async function main(argv) {
|
|
|
5651
5658
|
.action(async (provider, opts) => {
|
|
5652
5659
|
let account;
|
|
5653
5660
|
if (provider === "claude") {
|
|
5654
|
-
|
|
5655
|
-
|
|
5656
|
-
|
|
5657
|
-
|
|
5658
|
-
process.exitCode = 1;
|
|
5659
|
-
return;
|
|
5661
|
+
// Import the local Claude Code OAuth login (~/.claude/.credentials.json) as a pooled
|
|
5662
|
+
// claude-code account: provider "anthropic" + authType "bearer" so the anthropic proxy
|
|
5663
|
+
// upstreams via Authorization: Bearer + anthropic-beta: oauth-2025-04-20 (not x-api-key).
|
|
5664
|
+
account = enrollClaudeAccount();
|
|
5660
5665
|
}
|
|
5661
5666
|
else if (provider === "codex") {
|
|
5662
5667
|
// Reads ~/.codex/auth.json: OAuth JWT (chatgpt_plan_type: pro).
|