replicas-engine 0.1.424 → 0.1.426
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/src/index.js +33 -12
- package/package.json +1 -1
package/dist/src/index.js
CHANGED
|
@@ -417,19 +417,18 @@ function buildCodexTokenUsageContextUsagePayload(usage) {
|
|
|
417
417
|
|
|
418
418
|
// ../shared/src/pricing.ts
|
|
419
419
|
var INTEGRATION_SOURCES = ["slack", "linear", "github", "gitlab"];
|
|
420
|
-
var
|
|
420
|
+
var AUTOMATED_SOURCES = ["api", "automation"];
|
|
421
421
|
var INTEGRATION_SOURCES_SQL = INTEGRATION_SOURCES.map((s) => `'${s}'`).join(", ");
|
|
422
|
-
var
|
|
422
|
+
var AUTOMATED_SOURCES_SQL = AUTOMATED_SOURCES.map((s) => `'${s}'`).join(", ");
|
|
423
423
|
var PLANS = {
|
|
424
424
|
hobby: {
|
|
425
425
|
id: "hobby",
|
|
426
426
|
name: "Hobby",
|
|
427
427
|
monthlyPrice: 0,
|
|
428
428
|
seatPriceCents: 0,
|
|
429
|
-
creditsIncluded: 1200,
|
|
430
429
|
features: [
|
|
431
|
-
"
|
|
432
|
-
"
|
|
430
|
+
"2,400 minutes of workspace usage per month",
|
|
431
|
+
"Use them however you want, manual or automated",
|
|
433
432
|
"Automations (limited to 2)",
|
|
434
433
|
"Warm pools and warm hooks",
|
|
435
434
|
"Up to 3 repositories",
|
|
@@ -441,9 +440,8 @@ var PLANS = {
|
|
|
441
440
|
name: "Developer",
|
|
442
441
|
monthlyPrice: 120,
|
|
443
442
|
seatPriceCents: 12e3,
|
|
444
|
-
creditsIncluded: 0,
|
|
445
443
|
features: [
|
|
446
|
-
"Unlimited
|
|
444
|
+
"Unlimited manual workspaces",
|
|
447
445
|
"5,000 included automation/API minutes per month",
|
|
448
446
|
"Up to 10 repositories",
|
|
449
447
|
"Up to 15 environments",
|
|
@@ -457,9 +455,8 @@ var PLANS = {
|
|
|
457
455
|
name: "Team",
|
|
458
456
|
monthlyPrice: 300,
|
|
459
457
|
seatPriceCents: 3e4,
|
|
460
|
-
creditsIncluded: 0,
|
|
461
458
|
features: [
|
|
462
|
-
"Unlimited
|
|
459
|
+
"Unlimited manual workspaces",
|
|
463
460
|
"15,000 included automation/API minutes per month",
|
|
464
461
|
"Unlimited repositories",
|
|
465
462
|
"Unlimited automations",
|
|
@@ -474,7 +471,6 @@ var PLANS = {
|
|
|
474
471
|
name: "Enterprise",
|
|
475
472
|
monthlyPrice: 0,
|
|
476
473
|
seatPriceCents: 0,
|
|
477
|
-
creditsIncluded: 0,
|
|
478
474
|
features: [
|
|
479
475
|
"Unlimited usage",
|
|
480
476
|
"Unlimited automations",
|
|
@@ -508,7 +504,7 @@ var WORKSPACE_SIZES = ["small", "large"];
|
|
|
508
504
|
var INVALID_WORKSPACE_SIZE_ERROR = `Invalid size: must be one of ${WORKSPACE_SIZES.join(", ")}`;
|
|
509
505
|
|
|
510
506
|
// ../shared/src/e2b.ts
|
|
511
|
-
var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-07-
|
|
507
|
+
var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-07-11-v1";
|
|
512
508
|
|
|
513
509
|
// ../shared/src/runtime-env.ts
|
|
514
510
|
function shellQuotePosix(value) {
|
|
@@ -2041,6 +2037,7 @@ In agent mode the CLI hides commands that don't make sense for in-workspace agen
|
|
|
2041
2037
|
| \`replicas automation ...\` | Manage automations (cron + GitHub/GitLab event triggers) |
|
|
2042
2038
|
| \`replicas preview ...\` | Register / list preview URLs (covered in \`PREVIEWS.md\`) |
|
|
2043
2039
|
| \`replicas media ...\` | Upload screenshots, videos, audio (covered in \`MEDIA.md\`) |
|
|
2040
|
+
| \`replicas slack thread ...\` | Attach or switch Slack thread routing (covered in \`SLACK.md\`) |
|
|
2044
2041
|
|
|
2045
2042
|
\`replicas <command> --help\` is always the source of truth for flags.
|
|
2046
2043
|
|
|
@@ -2274,6 +2271,30 @@ curl -s -X POST "https://slack.com/api/chat.postMessage" \\
|
|
|
2274
2271
|
|
|
2275
2272
|
Omit \`thread_ts\` to post a new message to the channel. Include it to reply in a thread.
|
|
2276
2273
|
|
|
2274
|
+
#### Attach every new conversation
|
|
2275
|
+
|
|
2276
|
+
Whenever you send a Slack message outside the thread that already routes to the current workspace, immediately attach the destination thread so future replies are delivered to this workspace:
|
|
2277
|
+
|
|
2278
|
+
\`\`\`bash
|
|
2279
|
+
replicas slack thread attach --channel <channel-id> --thread-ts <thread-root-ts>
|
|
2280
|
+
\`\`\`
|
|
2281
|
+
|
|
2282
|
+
- For a new top-level message or DM, use the \`channel\` and \`ts\` from the successful \`chat.postMessage\` response. That message's \`ts\` is the new thread root.
|
|
2283
|
+
- For a reply in another existing thread, use its root \`thread_ts\`, not the reply's \`ts\`.
|
|
2284
|
+
- Do not attach the originating thread again when it already routes to the current workspace.
|
|
2285
|
+
- Treat sending and attaching as one operation: check that both API calls succeed, and report an attachment failure instead of implying future replies will reach you.
|
|
2286
|
+
|
|
2287
|
+
#### Switch a thread to an existing workspace
|
|
2288
|
+
|
|
2289
|
+
When the user wants a Slack thread to continue in a particular existing workspace, resolve the target and switch the thread:
|
|
2290
|
+
|
|
2291
|
+
\`\`\`bash
|
|
2292
|
+
replicas list
|
|
2293
|
+
replicas slack thread switch <workspace-id-or-name> --channel <channel-id> --thread-ts <thread-root-ts>
|
|
2294
|
+
\`\`\`
|
|
2295
|
+
|
|
2296
|
+
The channel and thread flags default to \`SLACK_CHANNEL_ID\` and \`SLACK_THREAD_TS\` for a Slack-triggered workspace. Workspace-authenticated agents may target only their current workspace; switching to a different workspace requires running the command with user authentication outside agent mode. If that restriction applies, give the user the exact command to run rather than claiming the switch succeeded.
|
|
2297
|
+
|
|
2277
2298
|
### Searching Messages
|
|
2278
2299
|
|
|
2279
2300
|
\`\`\`bash
|
|
@@ -8416,7 +8437,7 @@ var DEFAULT_CODEX_ARGS = ["app-server", "--listen", "stdio://"];
|
|
|
8416
8437
|
var MIN_CODEX_CLI_VERSION = "0.144.0";
|
|
8417
8438
|
var CODEX_UPGRADE_TIMEOUT_MS = 12e4;
|
|
8418
8439
|
var codexCliVersionEnsured = null;
|
|
8419
|
-
var ENGINE_PACKAGE_VERSION = "0.1.
|
|
8440
|
+
var ENGINE_PACKAGE_VERSION = "0.1.426";
|
|
8420
8441
|
var INITIALIZE_METHOD = "initialize";
|
|
8421
8442
|
var INITIALIZED_NOTIFICATION = "initialized";
|
|
8422
8443
|
var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
|