@gencode/cli 0.14.0 → 0.14.1
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/CHANGELOG.md +6 -0
- package/dist/bin.d.ts +1 -4
- package/dist/bin.js +1 -1
- package/dist/index.js +1 -1
- package/dist/pkg-path-D6anqptM.js +1 -0
- package/dist/pkg-path-x2mD-ceA.d.ts +4 -0
- package/dist/program.js +1 -1
- package/package.json +1 -1
- /package/dist/{program-CTbHf4VR.js → program-fn8gAbDt.js} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @gencode/cli
|
|
2
2
|
|
|
3
|
+
## 0.14.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- One-shot `aimax-server` runs now initialize the same package path metadata as the `aimax` CLI binary before executing a request. This keeps auth-token based API key generation available when `/run` supplies request-scoped environment variables such as `AIMAX_AUTH_TOKEN`, `AIMAX_API_KEY`, `AIMAX_BASE_URL`, and `AIMAX_MODEL` after the server process has already warmed.
|
|
8
|
+
|
|
3
9
|
## 0.14.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/dist/bin.d.ts
CHANGED
package/dist/bin.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{a as e,i as t,o as n,t as r}from"./program-
|
|
2
|
+
import"./pkg-path-D6anqptM.js";import{a as e,i as t,o as n,t as r}from"./program-fn8gAbDt.js";function i(e){return e instanceof Error?e.stack??`${e.name}: ${e.message}`:String(e)}function a(e){let t=e.shutdownTimeoutMs??2e3,n=!1,r=(r,a)=>{if(e.logError(`Fatal ${r}: ${i(a)}`),n)return;n=!0;let o=setTimeout(()=>e.exit(1),t);typeof o.unref==`function`&&o.unref(),Promise.resolve().then(()=>e.shutdown()).catch(()=>{}).finally(()=>{clearTimeout(o),e.exit(1)})};e.proc.on(`uncaughtException`,e=>r(`uncaughtException`,e)),e.proc.on(`unhandledRejection`,e=>r(`unhandledRejection`,e))}const o=Date.now(),s=process.env.AIMAX_DATA_DIR,c=process.argv.includes(`run`)&&process.argv.includes(`--encrypt-sessions`),l=process.argv.includes(`run`)||process.argv.includes(`resume`);function u(e){for(let t=0;t<e.length;t++){let n=e[t];if(n===`--message-id`||n===`--messageId`)return e[t+1];if(n?.startsWith(`--message-id=`))return n.slice(13);if(n?.startsWith(`--messageId=`))return n.slice(12)}}s&&!c&&!l&&t(s,{messageId:u(process.argv)}),a({proc:process,logError:t=>e.error(t),shutdown:n,exit:e=>process.exit(e)}),e.info(`AIMax CLI starting (pid=${process.pid})`,{dataDir:s,encryptedRun:c,loggerDeferred:!!(s&&(c||l))}),r().parseAsync(process.argv).catch(t=>{e.error(`Unexpected error: ${t.message}`),process.exit(1)}).finally(()=>{let t=Date.now()-o;return e.info(`AIMax CLI exited (total uptime: ${t}ms)`),n()});export{};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,r as t,t as n}from"./program-
|
|
1
|
+
import"./pkg-path-D6anqptM.js";import{n as e,r as t,t as n}from"./program-fn8gAbDt.js";export{n as createProgram,t as executeRun,e as getDataDir};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(){globalThis.getPkgPath||(globalThis.getPkgPath=()=>`@wizard/aimax`)}e();export{};
|
package/dist/program.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,t}from"./program-
|
|
1
|
+
import{n as e,t}from"./program-fn8gAbDt.js";export{t as createProgram,e as getDataDir};
|
package/package.json
CHANGED
|
File without changes
|