@livx.cc/agentx 0.99.166 → 0.99.168

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/cli.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bun
2
- import { w as RouterState, H as Hooks, c as AgentOptions, x as RunResult, f as ChatUsage, R as ReasoningEffort, d as ChannelMode, b as Agent } from './secondChannel-BNDDJv6d.js';
2
+ import { w as RouterState, H as Hooks, c as AgentOptions, x as RunResult, f as ChatUsage, R as ReasoningEffort, d as ChannelMode, b as Agent } from './secondChannel-CaP6zhH6.js';
3
3
  import { IFilesystem } from '@livx.cc/wcli/core';
4
4
  import { M as Message, U as UserQuestion, H as HostBridge, c as ContentPart, o as MessageContent } from './tools-DwfeF8VQ.js';
5
5
 
@@ -34,6 +34,12 @@ interface SessionMeta {
34
34
  n: number;
35
35
  model: string;
36
36
  };
37
+ /** codex/*: the Codex thread behind this transcript (resumed by id while the transcript is still its `n` messages). */
38
+ codex?: {
39
+ thread: string;
40
+ n: number;
41
+ model: string;
42
+ };
37
43
  /** Sticky delegate/advisor mode set by a `[a->b]` / `[a<-b]` directive (`{}` = cleared by `[off]`) — outlives
38
44
  * the process, so a resumed `-r` turn without a prefix keeps it. Absent = never set (the flags apply). */
39
45
  mode?: TurnMode;
@@ -189,8 +195,21 @@ interface Args {
189
195
  update?: boolean;
190
196
  listModels?: boolean;
191
197
  autoRoute?: boolean;
198
+ /** --prompt: the REPL's first line (typed for you: slash/skill expand), the session stays open */
199
+ prompt?: string;
200
+ /** --trust: answer the "Trust this directory?" gate with yes (trust only — permissions are untouched) */
201
+ trust?: boolean;
192
202
  }
193
203
  declare function parseArgs(argv: string[]): Args;
204
+ /**
205
+ * Codex routing for a requested model, before the API catalog: a BARE id the Codex subscription serves (`gpt-6.2-astra`)
206
+ * -> `codex/<id>` (the subscription wins over the paid `openai/` API, which stays reachable by its prefix). An explicit
207
+ * `codex/<id>` this account does not serve THROWS: falling back to another model would be a silent billing switch.
208
+ * undefined = not a Codex question, resolve as usual.
209
+ */
210
+ declare function codexRoute(want: string, served: string[]): string | undefined;
211
+ /** Banner billing note for codex/*: which Codex profile pays (`~/.codex-circles` → "circles"), never the API. */
212
+ declare function codexBilling(model: string, home?: string | undefined): string;
194
213
  /** Fallback .env loader: CWD .env (bun), install-dir .env, then ~/.agent/.env (user-wide). Never overrides. */
195
214
  declare function loadInstallEnv(): void;
196
215
  /** Fetch secrets from a Bodify app's secrets store into process.env: overrides .env-file values, never the shell's.
@@ -417,4 +436,4 @@ declare function duplexError(e: unknown, reflexModel: string): string;
417
436
  * the next turn (a re-final's fuller text) runs warm, as if that one was never sent. Returns the messages dropped. */
418
437
  declare function rollbackTurn(agent: Agent, store: Pick<SessionStore, 'save'>, session: SessionData, start: number): Promise<number>;
419
438
 
420
- export { type PermMode, abortActiveTurn, apiKeysFromEnv, appendMemoryNote, applyTurnMode, cacheMultipliers, condenseReplay, costOf, duplexError, duplexModels, estimateTranscriptTokens, expandMentions, exportMarkdown, fmtUsd, formatHistory, formatStatus, formatTranscriptFull, jsonResult, loadBodifySecrets, loadInstallEnv, makeHost, mcpMentionResolver, mentionRefs, modelUsable, parseArgs, pastePathClassifier, readImageParts, readMultiline, resolvePermMode, rollbackTurn, runShellLine, runTurn, setMcpMentionResolver, summarizeResult, turnCost };
439
+ export { type PermMode, abortActiveTurn, apiKeysFromEnv, appendMemoryNote, applyTurnMode, cacheMultipliers, codexBilling, codexRoute, condenseReplay, costOf, duplexError, duplexModels, estimateTranscriptTokens, expandMentions, exportMarkdown, fmtUsd, formatHistory, formatStatus, formatTranscriptFull, jsonResult, loadBodifySecrets, loadInstallEnv, makeHost, mcpMentionResolver, mentionRefs, modelUsable, parseArgs, pastePathClassifier, readImageParts, readMultiline, resolvePermMode, rollbackTurn, runShellLine, runTurn, setMcpMentionResolver, summarizeResult, turnCost };