replicas-cli 0.2.802 → 0.2.803
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 +14 -6
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -24067,10 +24067,11 @@ Explore a codebase, get it running in this workspace, verify it end to end, and
|
|
|
24067
24067
|
Use this when:
|
|
24068
24068
|
- This workspace was started as an environment setup run (\`replicas environment-setup status\` succeeds)
|
|
24069
24069
|
- The user asks you to set up, configure, audit, or improve a Replicas environment for a repository
|
|
24070
|
-
- The user asks what should go in a start hook, warm hook, or environment system prompt
|
|
24070
|
+
- The user asks what should go in a start hook, warm hook, or environment system prompt
|
|
24071
|
+
- A warm pool, warm hook, or start hook is failing, or the fix you found belongs in the environment rather than the repository`;
|
|
24071
24072
|
var REFERENCE3 = `# Environment setup (agent-led)
|
|
24072
24073
|
|
|
24073
|
-
Use this workflow to make a repository fully usable by Replicas background agents: agents booted from the environment should be able to install, run, test, verify, and demo changes without a human babysitting them.
|
|
24074
|
+
Use this workflow to make a repository fully usable by Replicas background agents: agents booted from the environment should be able to install, run, test, verify, and demo changes without a human babysitting them. In a setup run, the result is a **proposal**, never a direct change: the user reviews, edits, and saves it in the Environment panel next to the chat. Outside a setup run, see below.
|
|
24074
24075
|
|
|
24075
24076
|
## Mental model
|
|
24076
24077
|
|
|
@@ -24102,7 +24103,14 @@ replicas environment-setup wait-variables [-t 5m]
|
|
|
24102
24103
|
|
|
24103
24104
|
\`status\` prints the environment, repositories, current steps, and variable requests. \`request-variables\` returns immediately; \`wait-variables\` blocks until the required values arrive, are skipped, or the time runs out. Step statuses are \`pending\`, \`in_progress\`, \`completed\`, and \`skipped\`. Step keys, in order: \`understand\`, \`install\`, \`verify\`, \`configure\`, \`propose\`. Mark the first step \`in_progress\` before your first tool call, keep exactly one step \`in_progress\`, and mark a step \`completed\` only after its work actually succeeded. Use \`skipped\` when something genuinely cannot run (for example no browser UI to record) and say so in the proposal.
|
|
24104
24105
|
|
|
24105
|
-
If \`replicas environment-setup status\` reports that there is no active setup run, the user asked for this in
|
|
24106
|
+
If \`replicas environment-setup status\` reports that there is no active setup run, you are in an ordinary workspace, either because the user asked for this or because the fix you found while debugging belongs in the environment. Follow the same discovery and verification steps, show the exact change in chat, and offer to apply and test it yourself. Ask the user before changing the environment, since it affects every workspace built from it. Once they approve:
|
|
24107
|
+
|
|
24108
|
+
- Warm hook: \`replicas environment warm-hooks save-test <env> -f <file>\` runs it in an isolated sandbox and saves it only if it passes.
|
|
24109
|
+
- Start hook: \`replicas environment start-hooks test <env> -f <file>\`, then \`replicas environment start-hooks save <env> -f <file>\` with the same file once it passes.
|
|
24110
|
+
- Variables and files: apply with \`replicas environment vars set\` or \`files set\`, then confirm with \`vars list\` or \`files list\`.
|
|
24111
|
+
- Automations: apply with \`replicas automation ...\`, then read back with \`replicas automation get <id>\`.
|
|
24112
|
+
|
|
24113
|
+
When a test fails, fix the earliest failure and test again instead of saving. If the fix materially changes what the user approved, show the revised change and ask again before saving. Report what you changed and the test result.
|
|
24106
24114
|
|
|
24107
24115
|
## 1. Understand the codebase
|
|
24108
24116
|
|
|
@@ -24294,7 +24302,7 @@ After \`propose\` succeeds, mark the \`propose\` step completed and send one mes
|
|
|
24294
24302
|
Review the start hook, warm hook, system prompt, variables, and automations in the Environment panel on the right. Edit anything inline, then select **Save configuration**. Ask me here if you want changes and I will revise the proposal.
|
|
24295
24303
|
\`\`\`
|
|
24296
24304
|
|
|
24297
|
-
Keep it under 250 words plus the lists. Do not paste the hooks or system prompt into chat; the panel shows them. Never imply the configuration was saved: saving is the user's action.
|
|
24305
|
+
Keep it under 250 words plus the lists. Do not paste the hooks or system prompt into chat; the panel shows them. Never imply the configuration was saved: in a setup run, saving is the user's action.
|
|
24298
24306
|
|
|
24299
24307
|
## Safety
|
|
24300
24308
|
|
|
@@ -24306,7 +24314,7 @@ Keep it under 250 words plus the lists. Do not paste the hooks or system prompt
|
|
|
24306
24314
|
var ENVIRONMENT_SETUP_ABILITY = {
|
|
24307
24315
|
label: "Environment setup",
|
|
24308
24316
|
description: "Explore a codebase, verify it runs, and propose environment hooks, a system prompt, variables, and automations for review.",
|
|
24309
|
-
bullet: "- Setting up, auditing, or improving a Replicas environment for a repository (hooks, system prompt, variables, automations)",
|
|
24317
|
+
bullet: "- Setting up, auditing, fixing, or improving a Replicas environment for a repository (hooks, system prompt, variables, automations), including a failing warm pool or hook",
|
|
24310
24318
|
section: SECTION3,
|
|
24311
24319
|
referenceFile: { name: "ENVIRONMENT-SETUP.md", content: REFERENCE3 }
|
|
24312
24320
|
};
|
|
@@ -28047,7 +28055,7 @@ var headlessAgentRequestSchema = external_exports.object({
|
|
|
28047
28055
|
});
|
|
28048
28056
|
|
|
28049
28057
|
// ../shared/src/cli-version.ts
|
|
28050
|
-
var CLI_VERSION = "0.2.
|
|
28058
|
+
var CLI_VERSION = "0.2.803";
|
|
28051
28059
|
|
|
28052
28060
|
// ../shared/src/version.ts
|
|
28053
28061
|
function compareVersions(v1, v2) {
|