replicas-cli 0.3.516 → 0.3.518
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 -8
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -24579,7 +24579,7 @@ replicas gpu delete
|
|
|
24579
24579
|
});
|
|
24580
24580
|
|
|
24581
24581
|
// ../shared/src/routes/issues.ts
|
|
24582
|
-
var ISSUE_STATUSES, ISSUE_PRIORITIES, ISSUE_ACTOR_TYPES, ISSUE_SUBSCRIBER_ROLES, ISSUE_RELATION_TYPES, ISSUE_PULL_REQUEST_STATES, normalizeIssueStatus, issueStatusSchema, issuePrioritySchema, issueSubscriberRoleSchema, issueRelationTypeSchema, issuePullRequestStateSchema, ISSUE_STATUS_LABELS, ISSUE_PRIORITY_LABELS, unknownValues, knownOrRaw, issueActorSchema, ISSUE_KEY_RE, timestamp, nullableTimestamp, issueSchema, issueSubscriberSchema, issueRelationSchema, issuePullRequestSchema, issueCommentSchema, change, nullableId, issueEventDataSchemas, issueEventBase, v, issueEventVariants, created, laterVariants, issueEventSchema, clientMutationId, title, description, body, createIssueRequestSchema, updateIssueRequestSchema, issueActorRequestSchema, createIssueCommentRequestSchema, updateIssueCommentRequestSchema, createIssueRelationRequestSchema, linkIssuePullRequestRequestSchema, updateIssuePullRequestRequestSchema, issueMutationRequestSchema, updateIssueSettingsRequestSchema, listIssuesQuerySchema, issueDetailResponseSchema, listIssuesResponseSchema, issueDirectoryUserSchema, issueDirectoryWorkspaceSchema, issuesBootstrapResponseSchema, issuesDeltaQuerySchema, issuesDeltaResponseSchema, issueInboxQuerySchema, markIssueInboxReadRequestSchema, ISSUE_COMMANDS;
|
|
24582
|
+
var ISSUE_STATUSES, ISSUE_PRIORITIES, ISSUE_ACTOR_TYPES, ISSUE_SUBSCRIBER_ROLES, ISSUE_RELATION_TYPES, ISSUE_PULL_REQUEST_STATES, normalizeIssueStatus, ISSUE_STATUSES_HEADER, issueStatusSchema, issuePrioritySchema, issueSubscriberRoleSchema, issueRelationTypeSchema, issuePullRequestStateSchema, ISSUE_STATUS_LABELS, ISSUE_PRIORITY_LABELS, unknownValues, knownOrRaw, issueActorSchema, ISSUE_KEY_RE, timestamp, nullableTimestamp, issueSchema, issueSubscriberSchema, issueRelationSchema, issuePullRequestSchema, issueCommentSchema, change, nullableId, issueEventDataSchemas, issueEventBase, v, issueEventVariants, created, laterVariants, issueEventSchema, clientMutationId, title, description, body, createIssueRequestSchema, updateIssueRequestSchema, issueActorRequestSchema, createIssueCommentRequestSchema, updateIssueCommentRequestSchema, createIssueRelationRequestSchema, linkIssuePullRequestRequestSchema, updateIssuePullRequestRequestSchema, issueMutationRequestSchema, updateIssueSettingsRequestSchema, listIssuesQuerySchema, issueDetailResponseSchema, listIssuesResponseSchema, issueDirectoryUserSchema, issueDirectoryWorkspaceSchema, issuesBootstrapResponseSchema, issuesDeltaQuerySchema, issuesDeltaResponseSchema, issueInboxQuerySchema, markIssueInboxReadRequestSchema, ISSUE_COMMANDS;
|
|
24583
24583
|
var init_issues = __esm({
|
|
24584
24584
|
"../shared/src/routes/issues.ts"() {
|
|
24585
24585
|
"use strict";
|
|
@@ -24593,6 +24593,7 @@ var init_issues = __esm({
|
|
|
24593
24593
|
ISSUE_RELATION_TYPES = ["blocks", "duplicate_of"];
|
|
24594
24594
|
ISSUE_PULL_REQUEST_STATES = ["draft", "open", "merged", "closed"];
|
|
24595
24595
|
normalizeIssueStatus = (status) => status === "in_review" ? "review" : status;
|
|
24596
|
+
ISSUE_STATUSES_HEADER = "x-replicas-issue-statuses";
|
|
24596
24597
|
issueStatusSchema = external_exports.preprocess((value) => typeof value === "string" ? normalizeIssueStatus(value) : value, external_exports.enum(ISSUE_STATUSES));
|
|
24597
24598
|
issuePrioritySchema = external_exports.enum(ISSUE_PRIORITIES);
|
|
24598
24599
|
issueSubscriberRoleSchema = external_exports.enum(ISSUE_SUBSCRIBER_ROLES);
|
|
@@ -24791,6 +24792,7 @@ var init_issues = __esm({
|
|
|
24791
24792
|
issueDirectoryUserSchema = external_exports.object({
|
|
24792
24793
|
id: external_exports.string(),
|
|
24793
24794
|
display_name: external_exports.string(),
|
|
24795
|
+
email: external_exports.string(),
|
|
24794
24796
|
avatar_url: external_exports.string().nullable()
|
|
24795
24797
|
});
|
|
24796
24798
|
issueDirectoryWorkspaceSchema = external_exports.object({
|
|
@@ -25981,7 +25983,7 @@ In agent mode the CLI hides commands that don't make sense for in-workspace agen
|
|
|
25981
25983
|
| --- | --- |
|
|
25982
25984
|
| \`replicas whoami\` | Print the workspace + org identity |
|
|
25983
25985
|
| \`replicas create <name> -e <env> -a <agent> -m "<prompt>"\` | Start a new workspace with its own agent (see *Starting a new workspace*) |
|
|
25984
|
-
| \`replicas get <id>\` / \`replicas list\` | Check a workspace's status, or find workspaces. \`replicas list --kind
|
|
25986
|
+
| \`replicas get <id>\` / \`replicas list\` | Check a workspace's status, or find workspaces. \`replicas list --kind manager\` lists only Managers |
|
|
25985
25987
|
| \`replicas identity token [--audience <aud>]\` | Print the current short-lived workspace identity token for an audience |
|
|
25986
25988
|
| \`replicas identity token --format gcp --audience <aud>\` | Supply a current token to Google's executable credential source |
|
|
25987
25989
|
| \`replicas identity aws-credentials --role-arn <arn> [--region <region>] [--source-identity]\` | Exchange the current token for AWS credential_process JSON (requires AWS CLI); \`--source-identity\` records the workspace ID in CloudTrail and needs \`sts:SetSourceIdentity\` in the role trust policy |
|
|
@@ -26098,7 +26100,7 @@ When the user asks you to start a task in a new workspace or thread, create it n
|
|
|
26098
26100
|
replicas create fix-login-redirect -e <env-name-or-id> -a claude -m "Fix the login redirect loop on /settings. Open a PR when done."
|
|
26099
26101
|
\`\`\`
|
|
26100
26102
|
|
|
26101
|
-
-
|
|
26103
|
+
- Pick the environment with \`replicas environment list\`; use this workspace's environment when the task is in the same repos. Use \`-a\` with this conversation's agent unless the user asked for another.
|
|
26102
26104
|
- Write \`-m\` as the full task: the new agent can't see this conversation.
|
|
26103
26105
|
- On success it prints the workspace ID and a **Link**. Run \`replicas get <id>\` to confirm the workspace exists and is starting, then give the user the link.
|
|
26104
26106
|
- If the command fails (it exits non-zero and prints the reason), tell the user the exact error. Never say a workspace was created unless \`replicas get\` found it.
|
|
@@ -40200,7 +40202,7 @@ var CLI_VERSION;
|
|
|
40200
40202
|
var init_cli_version = __esm({
|
|
40201
40203
|
"../shared/src/cli-version.ts"() {
|
|
40202
40204
|
"use strict";
|
|
40203
|
-
CLI_VERSION = "0.3.
|
|
40205
|
+
CLI_VERSION = "0.3.518";
|
|
40204
40206
|
}
|
|
40205
40207
|
});
|
|
40206
40208
|
|
|
@@ -40560,9 +40562,8 @@ var init_scout2 = __esm({
|
|
|
40560
40562
|
scoutRouteLinearTicketRequestSchema = external_exports.object({
|
|
40561
40563
|
agent_session_id: external_exports.string().trim().min(1).describe("The ticket's `agent_session_id` from the envelope."),
|
|
40562
40564
|
environment_id: external_exports.string().trim().min(1).optional().describe("Start the ticket in this environment."),
|
|
40563
|
-
manager_id: external_exports.string().trim().min(1).optional().describe("Hand the ticket to this Manager instead.")
|
|
40564
|
-
|
|
40565
|
-
}).refine((args) => !(args.environment_id && (args.manager_id || args.mothership_id)), "Pass environment_id or manager_id, not both.");
|
|
40565
|
+
manager_id: external_exports.string().trim().min(1).optional().describe("Hand the ticket to this Manager instead.")
|
|
40566
|
+
}).refine((args) => !(args.environment_id && args.manager_id), "Pass environment_id or manager_id, not both.");
|
|
40566
40567
|
slackChannelIdSchema = external_exports.string().describe("Slack channel id from the envelope's `channel_id`.");
|
|
40567
40568
|
slackThreadTsSchema = external_exports.string().describe("Slack thread timestamp from the envelope's `thread_ts`.");
|
|
40568
40569
|
scoutSlackMessageReferenceSchema = external_exports.object({
|
|
@@ -56694,7 +56695,7 @@ var init_media_gif = __esm({
|
|
|
56694
56695
|
async function callIssueTool(name, args, schema) {
|
|
56695
56696
|
if (!isAgentMode() && !getApiKey()) throw new Error("replicas issue needs an API key: run `replicas login --api-key`, or use it inside a workspace.");
|
|
56696
56697
|
try {
|
|
56697
|
-
return schema.parse(await orgAuthenticatedFetch(`/v1/issue-commands/${name}`, { method: "POST", body: args }));
|
|
56698
|
+
return schema.parse(await orgAuthenticatedFetch(`/v1/issue-commands/${name}`, { method: "POST", body: args, headers: { [ISSUE_STATUSES_HEADER]: "1" } }));
|
|
56698
56699
|
} catch (error62) {
|
|
56699
56700
|
if (error62 instanceof ApiError && error62.status === 404 && error62.message === "Not found") throw new Error("Issues are not enabled for this organization");
|
|
56700
56701
|
throw error62;
|