@onfrontier/cli 0.8.26 → 0.8.27
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.js +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -175,7 +175,7 @@ code it gives you back into this terminal.`,$?"Sign in":"1. Sign in"),!$)A4(`Bac
|
|
|
175
175
|
|
|
176
176
|
${vI(q)}
|
|
177
177
|
|
|
178
|
-
and press Enter.`,"2. Interface code");C6.warn("Don't edit files in this repository while a step is running: rating the step replaces them.");let H=["--vscode",...X?["--continue"]:[]];if(W4(`Starting claude-hfi ${H.join(" ")}`),X)fo0();let K=await t0("claude-hfi",[...H,...$?["--interface-code",q]:[],...Q],{stdio:"inherit",reject:!1,env:F60(Y),extendEnv:!1});process.exit(K.exitCode??1)}function fo0(){let Q=process.env.CLAUDE_CODE_TMPDIR?[process.env.CLAUDE_CODE_TMPDIR]:[...new Set([ko0(),"/tmp"])],X;for(let
|
|
178
|
+
and press Enter.`,"2. Interface code");C6.warn("Don't edit files in this repository while a step is running: rating the step replaces them.");let H=["--vscode",...X?["--continue"]:[]];if(W4(`Starting claude-hfi ${H.join(" ")}`),X)fo0();let K=await t0("claude-hfi",[...H,...$?["--interface-code",q]:[],...Q],{stdio:"inherit",reject:!1,env:F60(Y),extendEnv:!1});process.exit(K.exitCode??1)}function fo0(){let Q=process.env.CLAUDE_CODE_TMPDIR?[process.env.CLAUDE_CODE_TMPDIR]:[...new Set([ko0(),"/tmp"])],X;for(let Z of Q){let Y=c7(Z,`claude-${process.getuid?.()??0}`,"hfi");for(let q of _I(()=>z60(Y,{withFileTypes:!0}),[])){if(!q.isDirectory())continue;let $=c7(Y,q.name);for(let H of _I(()=>z60($),[])){let K=_I(()=>So0(c7($,H)).mtimeMs,void 0);if(K!==void 0&&(!X||K>X.mtime))X={dir:$,mtime:K}}}}if(!X)return;let J=(Z)=>{let Y=c7(X.dir,`Trajectory ${Z}.code-workspace`);if(_o0(Y))t0("code",[Y],{stdio:"ignore",reject:!1})};J("A"),setTimeout(()=>J("B"),1500)}function _I(Q,X){try{return Q()}catch{return X}}async function go0(){let Q=await PZ({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(Z8(Q))S0("Cancelled."),process.exit(0);return Q==="continue"}var uo0=new Set(["ANTHROPIC_BASE_URL","CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS"]);function F60(Q){let X={};for(let[J,Z]of Object.entries(process.env)){let Y=J.toUpperCase();if(Z!==void 0&&!uo0.has(Y)&&Y!=="ANTHROPIC_API_KEY")X[J]=Z}return{...X,ENABLE_TOOL_SEARCH:"true",...Q?{ANTHROPIC_API_KEY:Q}:{}}}var U60="https://login.onfrontier.ai/home/onfrontier_claude_1/0oa28ecgqlwAZQSvW1d8/aln28ecnwgtH72F2i1d8";async function mo0(Q){let X=Q;if(!X.claude_ai_member)A4(`The program now runs on your claude.ai account. A browser window opens to Okta: sign in
|
|
179
179
|
the way you usually do (your On Frontier email, your Okta password and Okta Verify).
|
|
180
180
|
claude.ai then opens signed in as
|
|
181
181
|
|