@onfrontier/cli 0.8.4 → 0.8.5

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.
Files changed (2) hide show
  1. package/dist/cli.js +1 -1
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -168,7 +168,7 @@ code it gives you back into this terminal.`,$?"Sign in":"1. Sign in"),!$)R7(`Bac
168
168
 
169
169
  ${o10(Y)}
170
170
 
171
- and press Enter.`,"2. Interface code");P6.warn("Don't edit files in this repository while a step is running: rating the step replaces them.");let H=["--vscode",...X?["--continue"]:[]];w8(`Starting claude-hfi ${H.join(" ")}`);let K=await T1("claude-hfi",[...H,...$?["--interface-code",Y]:[],...Q],{stdio:"inherit",reject:!1,env:ti0(Z),extendEnv:!1});process.exit(K.exitCode??1)}async function si0(){let Q=await LZ({message:"Start a new session or continue your last one?",initialValue:"new",options:[{value:"new",label:"New session"},{value:"continue",label:"Continue my most recent session",hint:"picks up after its last rated step; not kept after a restart"}]});if(X4(Q))p0("Cancelled."),process.exit(0);return Q==="continue"}var ai0=new Set(["ANTHROPIC_BASE_URL","CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS"]);function ti0(Q){let X={};for(let[J,Z]of Object.entries(process.env))if(Z!==void 0&&!ai0.has(J.toUpperCase()))X[J]=Z;return{...X,ENABLE_TOOL_SEARCH:"true",ANTHROPIC_API_KEY:Q}}function o10(Q){return process.stdout.isTTY&&!process.env.NO_COLOR?`\x1B[1;32m${Q}\x1B[0m`:Q}async function ei0(){let Q=T8();Q.start("Fetching your program key");try{let X=await K8.hfiCredential();return Q.stop(`Program key ready (${X.address})`),{apiKey:X.api_key,address:X.address}}catch(X){Q.stop("Could not fetch your program key"),p0(X.message),process.exit(1)}}async function Qo0(Q){if(!await PI("claude-hfi"))p0(`claude-hfi is not installed or not on your PATH.
171
+ and press Enter.`,"2. Interface code");P6.warn("Don't edit files in this repository while a step is running: rating the step replaces them.");let H=["--vscode",...X?["--continue"]:[]];w8(`Starting claude-hfi ${H.join(" ")}`);let K=await T1("claude-hfi",[...H,...$?["--interface-code",Y]:[],...Q],{stdio:"inherit",reject:!1,env:ti0(Z),extendEnv:!1});process.exit(K.exitCode??1)}async function si0(){let Q=await LZ({message:"Start a new session or continue your last one?",initialValue:"new",options:[{value:"new",label:"New session"},{value:"continue",label:"Continue my most recent session",hint:"picks up after its last rated step"}]});if(X4(Q))p0("Cancelled."),process.exit(0);return Q==="continue"}var ai0=new Set(["ANTHROPIC_BASE_URL","CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS"]);function ti0(Q){let X={};for(let[J,Z]of Object.entries(process.env))if(Z!==void 0&&!ai0.has(J.toUpperCase()))X[J]=Z;return{...X,ENABLE_TOOL_SEARCH:"true",ANTHROPIC_API_KEY:Q}}function o10(Q){return process.stdout.isTTY&&!process.env.NO_COLOR?`\x1B[1;32m${Q}\x1B[0m`:Q}async function ei0(){let Q=T8();Q.start("Fetching your program key");try{let X=await K8.hfiCredential();return Q.stop(`Program key ready (${X.address})`),{apiKey:X.api_key,address:X.address}}catch(X){Q.stop("Could not fetch your program key"),p0(X.message),process.exit(1)}}async function Qo0(Q){if(!await PI("claude-hfi"))p0(`claude-hfi is not installed or not on your PATH.
172
172
  Download it from ${ri0} (sign in with your program Google account),
173
173
  then follow the install steps on your project page.`),process.exit(1);if(!await PI("tmux"))p0("tmux is not installed. Install it first (`brew install tmux` on macOS, `sudo apt-get install tmux` on Ubuntu or Debian)."),process.exit(1);if(!await PI("code"))p0(`VS Code's \`code\` command is not on your PATH, so the two trajectory windows would not open.
174
174
  In VS Code, press Cmd+Shift+P and run "Shell Command: Install 'code' command in PATH",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onfrontier/cli",
3
- "version": "0.8.4",
3
+ "version": "0.8.5",
4
4
  "description": "On Frontier CLI - run evaluation sessions with Claude Code",
5
5
  "license": "UNLICENSED",
6
6
  "bin": {