@preplabsai/rovara-code 0.5.9 → 0.5.11
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/bin/agentx-cli.mjs +52 -9
- package/package.json +2 -2
package/bin/agentx-cli.mjs
CHANGED
|
@@ -367633,7 +367633,7 @@ init_dist2();
|
|
|
367633
367633
|
import { realpathSync } from "node:fs";
|
|
367634
367634
|
|
|
367635
367635
|
// packages/cli/src/version.ts
|
|
367636
|
-
var RELEASE_VERSION = true ? "0.5.
|
|
367636
|
+
var RELEASE_VERSION = true ? "0.5.11" : void 0;
|
|
367637
367637
|
var CLI_VERSION = RELEASE_VERSION ?? "0.1.0";
|
|
367638
367638
|
function isPrereleaseVersion(version3) {
|
|
367639
367639
|
return /^\d+\.\d+\.\d+-/.test(version3);
|
|
@@ -372116,6 +372116,25 @@ async function ensureCognitoAdmin(input2) {
|
|
|
372116
372116
|
return { created: false, temporaryPassword: false };
|
|
372117
372117
|
}
|
|
372118
372118
|
|
|
372119
|
+
// packages/cli/src/init/ai-tool-prompt.ts
|
|
372120
|
+
init_dist2();
|
|
372121
|
+
var AI_TOOL_PROMPT_LABEL = "Paste this into Claude Code, Codex or Cursor";
|
|
372122
|
+
var ANOTHER_COMPUTER_DOCS_URL = "https://github.com/PrepLabsAI/Rovara-Code/blob/mainline/docs/cli-reference.md#use-an-existing-install-from-another-computer";
|
|
372123
|
+
function cliSource(invocation) {
|
|
372124
|
+
if (invocation.published && invocation.version !== void 0) return `npm package ${invocation.packageName ?? CLI_PACKAGE_NAME}@${invocation.version}`;
|
|
372125
|
+
return `built from source; on this computer: ${cliCommandLine(invocation, "").trimEnd()}`;
|
|
372126
|
+
}
|
|
372127
|
+
function aiToolPrompt(input2) {
|
|
372128
|
+
const { env: env3, region } = input2;
|
|
372129
|
+
return [
|
|
372130
|
+
`I run a self-hosted Rovara install named ${env3} in AWS region ${region}.`,
|
|
372131
|
+
"Read https://rovara.dev/llms.txt, then help me manage it with the rovara CLI",
|
|
372132
|
+
`(${cliSource(input2.invocation)}). Pass --env ${env3} to every command, and --region ${region} to the commands that take it.`,
|
|
372133
|
+
'To connect this computer, follow "Use an existing install from another computer" in the CLI reference:',
|
|
372134
|
+
ANOTHER_COMPUTER_DOCS_URL
|
|
372135
|
+
].join("\n");
|
|
372136
|
+
}
|
|
372137
|
+
|
|
372119
372138
|
// packages/cli/src/init/prerequisites.ts
|
|
372120
372139
|
var import_client_ec2 = __toESM(require_dist_cjs29(), 1);
|
|
372121
372140
|
var import_client_service_quotas = __toESM(require_dist_cjs30(), 1);
|
|
@@ -373292,13 +373311,15 @@ function readyCard(input2) {
|
|
|
373292
373311
|
{ label: "Remove Rovara", command: cli("destroy") }
|
|
373293
373312
|
].map((command5) => ({ ...command5, group: READY_GROUPS.lookAfter }))
|
|
373294
373313
|
],
|
|
373314
|
+
// #1599: built from the install's name and region only, so it holds no secret.
|
|
373315
|
+
prompt: { label: AI_TOOL_PROMPT_LABEL, text: aiToolPrompt(input2) },
|
|
373295
373316
|
...input2.created.length === 0 ? {} : { details: [`What was created: ${input2.created.join(", ")}`] },
|
|
373296
373317
|
...project3?.channelId === void 0 || project3.channelName === void 0 || teamId === void 0 ? {} : { link: { url: slackChannelLink(teamId, project3.channelId), label: `Open #${project3.channelName} in Slack` } }
|
|
373297
373318
|
};
|
|
373298
373319
|
}
|
|
373299
373320
|
|
|
373300
373321
|
// packages/cli/src/init/github-app.ts
|
|
373301
|
-
var AGENTX_HOMEPAGE = "https://github.com/PrepLabsAI/Rovara";
|
|
373322
|
+
var AGENTX_HOMEPAGE = "https://github.com/PrepLabsAI/Rovara-Code";
|
|
373302
373323
|
var GITHUB_WAIT_MS = 15 * 60 * 1e3;
|
|
373303
373324
|
var POLL_MS = 5e3;
|
|
373304
373325
|
var TOKEN_RENEW_MS = 5 * 60 * 1e3;
|
|
@@ -377345,19 +377366,29 @@ function linkBlock(link) {
|
|
|
377345
377366
|
return wrap;
|
|
377346
377367
|
}
|
|
377347
377368
|
|
|
377348
|
-
function
|
|
377349
|
-
const row = el("div", "command");
|
|
377369
|
+
function copyButton(text) {
|
|
377350
377370
|
const copy = el("button", "", "Copy");
|
|
377351
377371
|
copy.type = "button";
|
|
377352
377372
|
copy.addEventListener("click", () => {
|
|
377353
377373
|
const done = () => { copy.textContent = "Copied"; };
|
|
377354
377374
|
const failed = () => { copy.textContent = "Select it and copy"; };
|
|
377355
|
-
if (navigator.clipboard) navigator.clipboard.writeText(
|
|
377375
|
+
if (navigator.clipboard) navigator.clipboard.writeText(text).then(done, failed); else failed();
|
|
377356
377376
|
});
|
|
377357
|
-
|
|
377377
|
+
return copy;
|
|
377378
|
+
}
|
|
377379
|
+
|
|
377380
|
+
function commandRow(command) {
|
|
377381
|
+
const row = el("div", "command");
|
|
377382
|
+
row.append(el("span", "", command.label + ":"), el("code", "", command.command), copyButton(command.command));
|
|
377358
377383
|
return row;
|
|
377359
377384
|
}
|
|
377360
377385
|
|
|
377386
|
+
function promptBlock(prompt) {
|
|
377387
|
+
const buttons = el("div", "buttons");
|
|
377388
|
+
buttons.append(copyButton(prompt.text));
|
|
377389
|
+
return [el("h3", "", prompt.label), el("pre", "", prompt.text), buttons];
|
|
377390
|
+
}
|
|
377391
|
+
|
|
377361
377392
|
function detailsBlock(lines) {
|
|
377362
377393
|
const details = el("details");
|
|
377363
377394
|
details.append(el("summary", "", "Technical details"));
|
|
@@ -377425,6 +377456,7 @@ function renderCard(card) {
|
|
|
377425
377456
|
group = command.group;
|
|
377426
377457
|
section.append(commandRow(command));
|
|
377427
377458
|
}
|
|
377459
|
+
if (card.prompt) section.append(...promptBlock(card.prompt));
|
|
377428
377460
|
if (card.id === "ready" && !installerClosed) {
|
|
377429
377461
|
const buttons = el("div", "buttons");
|
|
377430
377462
|
const close = el("button", "primary", "Close installer");
|
|
@@ -379162,7 +379194,10 @@ function readyText(input2) {
|
|
|
379162
379194
|
` More projects: ${cli("project add")}, then ${cli("channel add")}.`,
|
|
379163
379195
|
` Send a test alarm any time: ${cli("alerts test")}.`,
|
|
379164
379196
|
// The plan points here for removing everything, on the terminal path (--no-ui, --yes) too.
|
|
379165
|
-
` Remove it: ${cli("destroy")}. It deletes the coding machines' disks too
|
|
379197
|
+
` Remove it: ${cli("destroy")}. It deletes the coding machines' disks too.`,
|
|
379198
|
+
"",
|
|
379199
|
+
`${AI_TOOL_PROMPT_LABEL}:`,
|
|
379200
|
+
aiToolPrompt(input2)
|
|
379166
379201
|
].join("\n");
|
|
379167
379202
|
}
|
|
379168
379203
|
|
|
@@ -379481,7 +379516,7 @@ init_dist2();
|
|
|
379481
379516
|
init_cdk_source();
|
|
379482
379517
|
import { chmod as chmod6, lstat as lstat2, mkdir as mkdir10, mkdtemp as mkdtemp5, readFile as readFile21, readdir as readdir5, realpath as realpath6, rename as rename7, rm as rm11, writeFile as writeFile7 } from "node:fs/promises";
|
|
379483
379518
|
import { dirname as dirname8, join as join21, sep as sep5 } from "node:path";
|
|
379484
|
-
var RELEASE_REPOSITORY = "PrepLabsAI/Rovara";
|
|
379519
|
+
var RELEASE_REPOSITORY = "PrepLabsAI/Rovara-Code";
|
|
379485
379520
|
function releaseAssetUrls(version3) {
|
|
379486
379521
|
const base2 = `https://github.com/${RELEASE_REPOSITORY}/releases/download/v${version3}`;
|
|
379487
379522
|
return { tarball: `${base2}/agentx-${version3}.tar.gz`, manifest: `${base2}/release.json` };
|
|
@@ -381855,6 +381890,7 @@ async function init(options, deps, services, session) {
|
|
|
381855
381890
|
if (surface !== void 0 && settings !== void 0 && progress !== void 0) {
|
|
381856
381891
|
surface.card(readyCard({
|
|
381857
381892
|
env: env3,
|
|
381893
|
+
region,
|
|
381858
381894
|
controlPlaneUrl: settings.controlPlaneUrl,
|
|
381859
381895
|
progress,
|
|
381860
381896
|
botName: botNameOf(progress, finalAnswers.slack.appName),
|
|
@@ -381873,6 +381909,7 @@ async function init(options, deps, services, session) {
|
|
|
381873
381909
|
...settings === void 0 || progress === void 0 ? {} : {
|
|
381874
381910
|
ready: readyText({
|
|
381875
381911
|
env: env3,
|
|
381912
|
+
region,
|
|
381876
381913
|
controlPlaneUrl: settings.controlPlaneUrl,
|
|
381877
381914
|
progress,
|
|
381878
381915
|
botName: botNameOf(progress, finalAnswers.slack.appName),
|
|
@@ -388974,6 +389011,10 @@ function environmentSsmClient(region) {
|
|
|
388974
389011
|
return new import_client_ssm4.SSMClient(region === void 0 ? {} : { region });
|
|
388975
389012
|
}
|
|
388976
389013
|
var DEFAULT_CALLBACK_PORT = 8765;
|
|
389014
|
+
var ROOT_HELP_DOCS_LINES = [
|
|
389015
|
+
"Docs: https://github.com/PrepLabsAI/Rovara-Code/blob/mainline/docs/cli-reference.md",
|
|
389016
|
+
"Docs for AI agents: https://rovara.dev/llms.txt"
|
|
389017
|
+
];
|
|
388977
389018
|
function createCliProgram(dependencies = {}) {
|
|
388978
389019
|
const services = {
|
|
388979
389020
|
fetchImplementation: dependencies.fetchImplementation ?? fetch,
|
|
@@ -389018,7 +389059,8 @@ function createCliProgram(dependencies = {}) {
|
|
|
389018
389059
|
return stored !== void 0 && stored.expiresAt > Date.now() ? stored : void 0;
|
|
389019
389060
|
}
|
|
389020
389061
|
const developerSession = () => ({ home, tokenStore: services.tokenStore, fetch: services.fetchImplementation });
|
|
389021
|
-
const program2 = new Command2().name(CLI_COMMAND_NAME).description("Rovara Code: sign in, deploy and administer your coding-agent workspace; hand off tasks from your coding tool or Slack").version(CLI_VERSION).option("--project <project-name>", "select a locally configured AgentX project").option("--config-dir <directory>", "project configuration directory", join33(homedir4(), ".agentx/projects")).option("--deployment-file <path>", "AgentX deployment settings; defaults to this environment's local cache, or, for production, ~/.agentx/deployment.yaml").option("--env <name>", "AgentX environment", DEFAULT_ENVIRONMENT).option("--allow-loopback", "allow loopback HTTP endpoints for local testing only", false).option("--accept-unchecked-model <reason>", "register a project whose default model failed its check anyway (project add, setup-approve, connector add, admin project register); the reason is recorded with the revision").option("--json", "emit stable machine-readable output", false)
|
|
389062
|
+
const program2 = new Command2().name(CLI_COMMAND_NAME).description("Rovara Code: sign in, deploy and administer your coding-agent workspace; hand off tasks from your coding tool or Slack").version(CLI_VERSION).option("--project <project-name>", "select a locally configured AgentX project").option("--config-dir <directory>", "project configuration directory", join33(homedir4(), ".agentx/projects")).option("--deployment-file <path>", "AgentX deployment settings; defaults to this environment's local cache, or, for production, ~/.agentx/deployment.yaml").option("--env <name>", "AgentX environment", DEFAULT_ENVIRONMENT).option("--allow-loopback", "allow loopback HTTP endpoints for local testing only", false).option("--accept-unchecked-model <reason>", "register a project whose default model failed its check anyway (project add, setup-approve, connector add, admin project register); the reason is recorded with the revision").option("--json", "emit stable machine-readable output", false).addHelpText("after", `
|
|
389063
|
+
${ROOT_HELP_DOCS_LINES.join("\n")}`);
|
|
389022
389064
|
program2.hook("preAction", (_program, actionCommand) => {
|
|
389023
389065
|
const { env: env3 } = actionCommand.optsWithGlobals();
|
|
389024
389066
|
const parsed = EnvironmentNameSchema.safeParse(env3);
|
|
@@ -390039,6 +390081,7 @@ if (isDirectExecution()) {
|
|
|
390039
390081
|
}
|
|
390040
390082
|
export {
|
|
390041
390083
|
DEFAULT_CALLBACK_PORT,
|
|
390084
|
+
ROOT_HELP_DOCS_LINES,
|
|
390042
390085
|
createCliProgram,
|
|
390043
390086
|
environmentAdoptClients,
|
|
390044
390087
|
environmentSsmClient,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@preplabsai/rovara-code",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.11",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"rovara": "bin/agentx.mjs",
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
},
|
|
27
27
|
"repository": {
|
|
28
28
|
"type": "git",
|
|
29
|
-
"url": "git+https://github.com/PrepLabsAI/Rovara.git"
|
|
29
|
+
"url": "git+https://github.com/PrepLabsAI/Rovara-Code.git"
|
|
30
30
|
}
|
|
31
31
|
}
|