@alexkroman1/aai 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.
- package/dist/cli.js +1 -14
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -201,12 +201,6 @@ function askText(message, defaultValue) {
|
|
|
201
201
|
/* @__PURE__ */ jsx2(TextInput, { placeholder: defaultValue, onSubmit: (value) => done(value || defaultValue) })
|
|
202
202
|
] }));
|
|
203
203
|
}
|
|
204
|
-
function askEnter(message) {
|
|
205
|
-
return inkPrompt((done) => /* @__PURE__ */ jsxs2(Box2, { children: [
|
|
206
|
-
/* @__PURE__ */ jsx2(Text2, { color: COLORS.interactive, children: message }),
|
|
207
|
-
/* @__PURE__ */ jsx2(TextInput, { placeholder: "", onSubmit: () => done(void 0) })
|
|
208
|
-
] }));
|
|
209
|
-
}
|
|
210
204
|
var init_prompts = __esm({
|
|
211
205
|
"cli/_prompts.tsx"() {
|
|
212
206
|
"use strict";
|
|
@@ -659,20 +653,14 @@ async function runDeployCommand(opts) {
|
|
|
659
653
|
const projectConfig = await readProjectConfig(cwd);
|
|
660
654
|
const serverUrl = resolveServerUrl(opts.server, projectConfig?.serverUrl);
|
|
661
655
|
const slug = projectConfig?.slug ?? generateSlug();
|
|
662
|
-
let agentUrl = "";
|
|
663
656
|
await runWithInk(async ({ log }) => {
|
|
664
657
|
const bundle = await buildAgentBundle(cwd, log);
|
|
665
658
|
if (dryRun) {
|
|
666
659
|
log(/* @__PURE__ */ jsx4(StepInfo, { action: "Dry run", msg: `would deploy as ${slug}` }));
|
|
667
660
|
return;
|
|
668
661
|
}
|
|
669
|
-
|
|
662
|
+
await deployBundle({ bundle, serverUrl, apiKey, slug, cwd, log });
|
|
670
663
|
});
|
|
671
|
-
if (agentUrl) {
|
|
672
|
-
await askEnter("Press enter to open in browser");
|
|
673
|
-
const { exec } = await import("node:child_process");
|
|
674
|
-
exec(`open "${agentUrl}"`);
|
|
675
|
-
}
|
|
676
664
|
}
|
|
677
665
|
var init_deploy2 = __esm({
|
|
678
666
|
"cli/deploy.tsx"() {
|
|
@@ -681,7 +669,6 @@ var init_deploy2 = __esm({
|
|
|
681
669
|
init_deploy();
|
|
682
670
|
init_discover();
|
|
683
671
|
init_ink();
|
|
684
|
-
init_prompts();
|
|
685
672
|
}
|
|
686
673
|
});
|
|
687
674
|
|