replicas-cli 0.2.801 → 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.
Files changed (2) hide show
  1. package/dist/index.cjs +36 -6
  2. 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. The result of the workflow is a **proposal**, never a direct change: the user reviews, edits, and saves it in the Environment panel next to the chat.
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 an ordinary workspace. Follow the same discovery and verification steps, then present the configuration in chat; apply it with \`replicas environment ...\` and \`replicas automation ...\` only when the user explicitly asks you to.
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
  };
@@ -25071,6 +25079,7 @@ Use this when:
25071
25079
  - The user asks to create or control an E2B sandbox
25072
25080
  - The user asks to invoke a connected Modal function
25073
25081
  - The user asks to access Vercel projects, deployments, domains, logs, or infrastructure
25082
+ - The user asks to read or update Lightfield CRM accounts, contacts, opportunities, meetings, notes, or tasks
25074
25083
  - The user asks to search or read Greptile's codebase knowledge bases
25075
25084
  - The user asks to inspect Vanta controls, tests, evidence, vendors, risks, or compliance data
25076
25085
  - The user asks to query or update a connected turbopuffer namespace
@@ -25182,6 +25191,18 @@ const deployments = await replicas.vercel.request('/v6/deployments?teamId=team_1
25182
25191
 
25183
25192
  Confirm mutations before using POST, PUT, PATCH, or DELETE.
25184
25193
 
25194
+ ## Lightfield
25195
+
25196
+ Lightfield is a native API-key integration. Pass a path relative to the Lightfield \`/v1\` API; Replicas sends the key and \`Lightfield-Version\` header server-side:
25197
+
25198
+ \`\`\`ts
25199
+ const accounts = await replicas.lightfield.request('/accounts?limit=25');
25200
+ const fields = await replicas.lightfield.request('/accounts/definitions');
25201
+ const note = await replicas.lightfield.request('/notes', { method: 'POST', body: { fields: { $title: 'Call recap' } } });
25202
+ \`\`\`
25203
+
25204
+ See https://docs.lightfield.app/llms.txt for endpoints. Paginate with \`limit\` and \`offset\`. The key's scopes control permitted operations. Confirm mutations before using POST, PUT, PATCH, or DELETE.
25205
+
25185
25206
  ## Vanta
25186
25207
 
25187
25208
  Vanta is a native Manage API integration. Pass a relative path beginning with /v1/; Replicas exchanges the stored client credentials and caches the short-lived token server-side:
@@ -28034,7 +28055,7 @@ var headlessAgentRequestSchema = external_exports.object({
28034
28055
  });
28035
28056
 
28036
28057
  // ../shared/src/cli-version.ts
28037
- var CLI_VERSION = "0.2.801";
28058
+ var CLI_VERSION = "0.2.803";
28038
28059
 
28039
28060
  // ../shared/src/version.ts
28040
28061
  function compareVersions(v1, v2) {
@@ -28313,6 +28334,15 @@ var EXPLICIT_PLUGIN_CATALOG = [
28313
28334
  name: "Stripe",
28314
28335
  description: "Manage customers, payments, invoices, subscriptions, and balances."
28315
28336
  },
28337
+ {
28338
+ id: "lightfield",
28339
+ backend: "native",
28340
+ toolkit: "lightfield",
28341
+ authType: "api_key",
28342
+ category: "business",
28343
+ name: "Lightfield",
28344
+ description: "Manage CRM accounts, contacts, opportunities, meetings, notes, and tasks."
28345
+ },
28316
28346
  {
28317
28347
  id: "pangram",
28318
28348
  backend: "native",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.2.801",
3
+ "version": "0.2.803",
4
4
  "description": "CLI for managing Replicas workspaces - SSH into cloud dev environments with automatic port forwarding",
5
5
  "main": "dist/index.cjs",
6
6
  "bin": {