replicas-cli 0.3.104 → 0.3.105
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/index.cjs +9 -9
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -24527,7 +24527,7 @@ Every Replicas workspace is a remote Linux VM. Repositories are cloned under \`~
|
|
|
24527
24527
|
|
|
24528
24528
|
Hooks run with \`bash -lc\` from \`~/workspaces\` (the parent of every repository checkout), so start scripts with \`cd ~/workspaces/<repo-name>\`. A repository may also ship its own \`replicas.json\` / \`replicas.yaml\` with \`startHook\`, \`warmHook\`, and \`systemPrompt\`; repository hooks run after the environment hooks. Prefer proposing environment hooks unless the repository already manages its own.
|
|
24529
24529
|
|
|
24530
|
-
|
|
24530
|
+
Forks inherit everything their parent sets; never propose putting repository-specific setup in an environment other environments fork from.
|
|
24531
24531
|
|
|
24532
24532
|
## Progress and the setup run
|
|
24533
24533
|
|
|
@@ -25997,7 +25997,7 @@ replicas environment delete <id-or-name> [--force]
|
|
|
25997
25997
|
\`\`\`
|
|
25998
25998
|
|
|
25999
25999
|
Notes:
|
|
26000
|
-
- Environments resolve by **name or UUID**.
|
|
26000
|
+
- Environments resolve by **name or UUID**. A fork inherits its parent's setup and can override or hide any of it.
|
|
26001
26001
|
- An env needs a repo to back a workspace with code. If you \`create\` without \`--repository\`, the CLI prompts; in non-interactive contexts pass \`-r\`.
|
|
26002
26002
|
|
|
26003
26003
|
### Environment variables
|
|
@@ -28765,7 +28765,7 @@ var headlessAgentRequestSchema = external_exports.object({
|
|
|
28765
28765
|
});
|
|
28766
28766
|
|
|
28767
28767
|
// ../shared/src/cli-version.ts
|
|
28768
|
-
var CLI_VERSION = "0.3.
|
|
28768
|
+
var CLI_VERSION = "0.3.105";
|
|
28769
28769
|
|
|
28770
28770
|
// ../shared/src/version.ts
|
|
28771
28771
|
function compareVersions(v1, v2) {
|
|
@@ -31617,8 +31617,8 @@ async function resolveEnvironmentId(input) {
|
|
|
31617
31617
|
}
|
|
31618
31618
|
return resolved.id;
|
|
31619
31619
|
}
|
|
31620
|
-
function printEnvironment(env
|
|
31621
|
-
console.log(import_chalk20.default.white(` ${env.name}
|
|
31620
|
+
function printEnvironment(env) {
|
|
31621
|
+
console.log(import_chalk20.default.white(` ${env.name}`));
|
|
31622
31622
|
console.log(import_chalk20.default.gray(` ID: ${env.id}`));
|
|
31623
31623
|
if (env.description) {
|
|
31624
31624
|
console.log(import_chalk20.default.gray(` Description: ${env.description}`));
|
|
@@ -31636,7 +31636,7 @@ function printEnvironment(env, isBase = false) {
|
|
|
31636
31636
|
async function environmentListCommand() {
|
|
31637
31637
|
ensureOrgApiAuthenticated();
|
|
31638
31638
|
const response = await orgAuthenticatedFetch("/v1/environments");
|
|
31639
|
-
output(response, ({ environments
|
|
31639
|
+
output(response, ({ environments }) => {
|
|
31640
31640
|
if (environments.length === 0) {
|
|
31641
31641
|
console.log(import_chalk20.default.yellow("\nNo environments found.\n"));
|
|
31642
31642
|
return;
|
|
@@ -31644,7 +31644,7 @@ async function environmentListCommand() {
|
|
|
31644
31644
|
console.log(import_chalk20.default.green(`
|
|
31645
31645
|
Environments (${environments.length}):
|
|
31646
31646
|
`));
|
|
31647
|
-
for (const env of environments) printEnvironment(env
|
|
31647
|
+
for (const env of environments) printEnvironment(env);
|
|
31648
31648
|
});
|
|
31649
31649
|
}
|
|
31650
31650
|
async function environmentGetCommand(idOrName) {
|
|
@@ -32297,7 +32297,7 @@ async function replicaCreateCommand(name, options) {
|
|
|
32297
32297
|
let replicaName = name;
|
|
32298
32298
|
let message2 = options.message;
|
|
32299
32299
|
const environmentInput = options.environment?.trim();
|
|
32300
|
-
let selectedEnvironmentId = environmentInput === "global" ?
|
|
32300
|
+
let selectedEnvironmentId = environmentInput === "global" ? (await orgAuthenticatedFetch("/v1/environments/global")).environment.id : environmentInput && await resolveEnvironmentId(environmentInput);
|
|
32301
32301
|
let codingAgent = parseReplicaAgent(options.agent);
|
|
32302
32302
|
if (replicaName && /\s/.test(replicaName)) {
|
|
32303
32303
|
throw new Error("Replica name cannot contain spaces.");
|
|
@@ -32328,7 +32328,7 @@ async function replicaCreateCommand(name, options) {
|
|
|
32328
32328
|
choices: environments.map((env) => ({
|
|
32329
32329
|
title: env.name,
|
|
32330
32330
|
value: env.id,
|
|
32331
|
-
description:
|
|
32331
|
+
description: `${env.repository_ids?.length ?? 0} repositories`
|
|
32332
32332
|
}))
|
|
32333
32333
|
});
|
|
32334
32334
|
const answer = response2.environment;
|