replicas-cli 0.3.516 → 0.3.517
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 +6 -4
- 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({
|
|
@@ -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.517";
|
|
40204
40206
|
}
|
|
40205
40207
|
});
|
|
40206
40208
|
|
|
@@ -56694,7 +56696,7 @@ var init_media_gif = __esm({
|
|
|
56694
56696
|
async function callIssueTool(name, args, schema) {
|
|
56695
56697
|
if (!isAgentMode() && !getApiKey()) throw new Error("replicas issue needs an API key: run `replicas login --api-key`, or use it inside a workspace.");
|
|
56696
56698
|
try {
|
|
56697
|
-
return schema.parse(await orgAuthenticatedFetch(`/v1/issue-commands/${name}`, { method: "POST", body: args }));
|
|
56699
|
+
return schema.parse(await orgAuthenticatedFetch(`/v1/issue-commands/${name}`, { method: "POST", body: args, headers: { [ISSUE_STATUSES_HEADER]: "1" } }));
|
|
56698
56700
|
} catch (error62) {
|
|
56699
56701
|
if (error62 instanceof ApiError && error62.status === 404 && error62.message === "Not found") throw new Error("Issues are not enabled for this organization");
|
|
56700
56702
|
throw error62;
|