@primitivedotdev/cli 3.0.0-preview.23 → 3.0.0-preview.24
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/{api-command-CP8ir5Pv.js → api-command-p-qsR7e6.js} +2 -2
- package/dist/{cli-config-DUQEYQ42.js → cli-config-DiuUnquY.js} +3 -1
- package/dist/{machine-session-CE31cwx2.js → machine-session-B7crrlba.js} +3 -3
- package/dist/{notify-session-Dx54UpkT.js → notify-session-DR1570cm.js} +1 -1
- package/dist/oclif/auto-signal-worker.js +2 -2
- package/dist/oclif/index.js +10 -7
- package/dist/oclif/receiver-heal.js +2 -2
- package/dist/oclif/root-signup-hint.js +1 -1
- package/dist/{signal-command-CA55RTJh.js → signal-command-7tV4fkDC.js} +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { $t as getThread, Bt as getEndpoint, C as parseRetryAfter, H as assertAwaitingFilterRows, J as isAwaitingRejectedError, U as awaitingRejectedError, V as ReplyStateUnsupportedError, Vn as sdk_gen_exports, W as ensureSearchReportsReplyState, X as replyStateSurfaceForOperation, Yt as getOwnGrant, at as expectedAutomatedVerdicts, et as AutomatedFilterUnsupportedError, it as ensureSearchReportsAutomated, nt as automatedRejectedError, pn as listEndpoints, rt as automatedSurfaceForOperation, st as isAutomatedRejectedError, tt as assertAutomatedVerdict, un as listDomains, zt as getEmail } from "./repeats-Dj_o6c-X-x61TNLz-.js";
|
|
2
2
|
import { a as canonicalCommandId, i as canonicalCliText, r as canonicalBodyFlagName } from "./cli-command-names-DteMqL-H.js";
|
|
3
|
-
import { C as resolveCliAuth, I as agentProfilesDirectory, M as AGENT_PROFILE_ENV, P as agentProfileDirectory, Q as loadActiveAgentPass, S as normalizeApiBaseUrl, T as saveSignupCredentials, U as requireDefaultLoginProfile, b as detectPrimitiveKeyEnvMisname, ct as PrimitiveApiClient, f as validateCliHeaderName, h as cliAccessTokenExpiresAt, i as loadCliConfig, l as resolveConfigEnvironment, m as acquireCliCredentialsLock, ot as detectRuntimeSession, p as validateCliHeaderValue, v as deleteCliCredentials, w as saveCliCredentials, x as loadCliCredentials, z as loadConnectedAgentProfile } from "./cli-config-
|
|
3
|
+
import { C as resolveCliAuth, I as agentProfilesDirectory, M as AGENT_PROFILE_ENV, P as agentProfileDirectory, Q as loadActiveAgentPass, S as normalizeApiBaseUrl, T as saveSignupCredentials, U as requireDefaultLoginProfile, b as detectPrimitiveKeyEnvMisname, ct as PrimitiveApiClient, f as validateCliHeaderName, h as cliAccessTokenExpiresAt, i as loadCliConfig, l as resolveConfigEnvironment, m as acquireCliCredentialsLock, ot as detectRuntimeSession, p as validateCliHeaderValue, v as deleteCliCredentials, w as saveCliCredentials, x as loadCliCredentials, z as loadConnectedAgentProfile } from "./cli-config-DiuUnquY.js";
|
|
4
4
|
import "./oclif/global-org-flag.js";
|
|
5
5
|
import { a as assertRequiredBodyFields, i as operationHelpInputs } from "./help-inputs-NGARVZL_.js";
|
|
6
6
|
import { o as thrownErrorBody } from "./json-output-BMZrLH47.js";
|
|
@@ -59801,7 +59801,7 @@ function savedConnectedProfiles(configDir, exclude) {
|
|
|
59801
59801
|
*/
|
|
59802
59802
|
async function otherProfiles(configDir, session, current) {
|
|
59803
59803
|
if (session) try {
|
|
59804
|
-
const { connectedProfilesForSession } = await import("./machine-session-
|
|
59804
|
+
const { connectedProfilesForSession } = await import("./machine-session-B7crrlba.js").then((n) => n.s);
|
|
59805
59805
|
return {
|
|
59806
59806
|
inSession: true,
|
|
59807
59807
|
profiles: connectedProfilesForSession(configDir, session, current)
|
|
@@ -316,6 +316,7 @@ function parseStoredAgentPass(raw) {
|
|
|
316
316
|
...typeof raw.purpose === "string" ? { purpose: raw.purpose } : {},
|
|
317
317
|
...typeof raw.profile_hint === "string" ? { profile_hint: raw.profile_hint } : {},
|
|
318
318
|
...typeof raw.mcp_url === "string" ? { mcp_url: raw.mcp_url } : {},
|
|
319
|
+
...typeof raw.manage_url === "string" ? { manage_url: raw.manage_url } : {},
|
|
319
320
|
expires_at: raw.expires_at,
|
|
320
321
|
slice_summary: typeof raw.slice_summary === "string" ? raw.slice_summary : null,
|
|
321
322
|
claimed_at: typeof raw.claimed_at === "string" ? raw.claimed_at : (/* @__PURE__ */ new Date()).toISOString(),
|
|
@@ -375,7 +376,7 @@ function loadActiveAgentPass(params) {
|
|
|
375
376
|
if (explicitProfile) throw new AgentPassAuthError(`Access Pass profile "${explicitProfile}" selected by ${AGENT_PASS_PROFILE_ENV} is not saved on this machine. Run \`primitive connect --profile ${explicitProfile} <url>\` or unset ${AGENT_PASS_PROFILE_ENV}.`);
|
|
376
377
|
return null;
|
|
377
378
|
}
|
|
378
|
-
if (
|
|
379
|
+
if (pass.revoked_at) throw new AgentPassAuthError(`The Primitive Access Pass bound to ${slot.binding.kind === "session" ? "this session" : slot.binding.kind === "profile" ? `profile "${slot.binding.profile}"` : "this machine"} (${pass.label}) has been revoked. Refusing to fall back to any other login. Request a fresh Access Pass and run \`primitive connect <url>\`, or run \`primitive disconnect --local-only\` to clear the binding.`);
|
|
379
380
|
return {
|
|
380
381
|
pass,
|
|
381
382
|
path: slot.path
|
|
@@ -454,6 +455,7 @@ async function claimAccessPassRemote(params) {
|
|
|
454
455
|
purpose,
|
|
455
456
|
profile_hint: typeof data.profile_hint === "string" && data.profile_hint.trim() ? data.profile_hint.trim() : null,
|
|
456
457
|
mcp_url: typeof data.mcp_url === "string" && data.mcp_url.trim() ? data.mcp_url.trim() : null,
|
|
458
|
+
manage_url: typeof data.manage_url === "string" && data.manage_url.trim() ? data.manage_url.trim() : null,
|
|
457
459
|
expires_at: expiresAt,
|
|
458
460
|
slice_summary: deriveSliceSummary(data, grantSummary),
|
|
459
461
|
grant_summary: grantSummary,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { B as parseConnectedAgentProfile, F as agentProfileName, H as profileAlreadyConnectedMessage, I as agentProfilesDirectory, L as connectedAgentIdentity, M as AGENT_PROFILE_ENV, N as AgentConnectionSetupError, P as agentProfileDirectory, R as connectedApiBaseUrl, V as parseOwnerMemberAddress, W as saveConnectedAgentProfile, at as detectAgentRuntime, ct as PrimitiveApiClient, x as loadCliCredentials, z as loadConnectedAgentProfile } from "./cli-config-
|
|
1
|
+
import { B as parseConnectedAgentProfile, F as agentProfileName, H as profileAlreadyConnectedMessage, I as agentProfilesDirectory, L as connectedAgentIdentity, M as AGENT_PROFILE_ENV, N as AgentConnectionSetupError, P as agentProfileDirectory, R as connectedApiBaseUrl, V as parseOwnerMemberAddress, W as saveConnectedAgentProfile, at as detectAgentRuntime, ct as PrimitiveApiClient, x as loadCliCredentials, z as loadConnectedAgentProfile } from "./cli-config-DiuUnquY.js";
|
|
2
2
|
import { An as putAgentContact, Ft as getContact, Gn as sendEmail, Hn as searchEmails, Mn as putContact, Pt as getAgentContactPolicy, St as deleteContact, an as listAgentContacts, fr as __exportAll, in as listAgentConnections, jn as putAgentContactPolicy, sn as listContacts, tn as inviteAgentConnection, un as listDomains, wn as listSentEmails, xt as deleteAgentContact, zt as getEmail } from "./repeats-Dj_o6c-X-x61TNLz-.js";
|
|
3
|
-
import { bn as refreshStoredCliCredentials, jt as defaultConnectionName, kt as cliInvocation, xn as refuseOrgSelectionForProfile } from "./api-command-
|
|
3
|
+
import { bn as refreshStoredCliCredentials, jt as defaultConnectionName, kt as cliInvocation, xn as refuseOrgSelectionForProfile } from "./api-command-p-qsR7e6.js";
|
|
4
4
|
import { _ as acquireListenLock, b as listenLockHeld, c as mailTime, d as readMailJson, f as removeMailFile, g as ListenStateError, h as writeMailJson, i as mailId, l as privateMailDirectory, o as mailObject, p as syncMailDirectory, r as mailAddress, s as mailString } from "./shared-mail-files-BAQSGxxz.js";
|
|
5
|
-
import { C as readBundledConnectSkill, a as NotificationRetryError, b as installSkill, d as SESSION_UUID, f as connectNativeSession, m as NativeSessionDisconnectedError, p as defaultSessionSocket, t as notificationScope } from "./notify-session-
|
|
5
|
+
import { C as readBundledConnectSkill, a as NotificationRetryError, b as installSkill, d as SESSION_UUID, f as connectNativeSession, m as NativeSessionDisconnectedError, p as defaultSessionSocket, t as notificationScope } from "./notify-session-DR1570cm.js";
|
|
6
6
|
import { a as backgroundListenStatus, d as stopBackgroundListen } from "./listen-background-DyBYca28.js";
|
|
7
7
|
import { t as readSharedMailOwner } from "./shared-mail-watch-DdtgJOrV.js";
|
|
8
8
|
import { withoutOrgSelection } from "./oclif/global-org-flag.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as isTrustedSender, c as classifySignalContent, g as isEmailReceivedEvent, kt as downloadEmailAttachmentPart, v as parseWebhookEvent } from "./repeats-Dj_o6c-X-x61TNLz-.js";
|
|
2
|
-
import { R as skillFirstLine, et as wakeInteractionSentence, z as wakeReadCommand } from "./api-command-
|
|
2
|
+
import { R as skillFirstLine, et as wakeInteractionSentence, z as wakeReadCommand } from "./api-command-p-qsR7e6.js";
|
|
3
3
|
import { _ as acquireListenLock, g as ListenStateError, y as listenIdentity } from "./shared-mail-files-BAQSGxxz.js";
|
|
4
4
|
import { closeSync, copyFileSync, existsSync, fsyncSync, lstatSync, mkdirSync, openSync, opendirSync, readFileSync, readdirSync, readlinkSync, renameSync, rmSync, statSync, symlinkSync, unlinkSync, writeFileSync } from "node:fs";
|
|
5
5
|
import { createHash, randomUUID, scryptSync } from "node:crypto";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Qt as getSentEmail } from "../repeats-Dj_o6c-X-x61TNLz-.js";
|
|
2
|
-
import { P as readThreadContext, vn as createAuthenticatedCliApiClient } from "../api-command-
|
|
2
|
+
import { P as readThreadContext, vn as createAuthenticatedCliApiClient } from "../api-command-p-qsR7e6.js";
|
|
3
3
|
import { AUTO_SIGNAL_KIND_ENV, AUTO_WORKING_RENEW_MS, autoSignalsDisabled, clearWorkingSending, markWorkingSending, readAutoClaim, readWorkingLease, recordRenewer, stopWorkingLease, writeWorkingLease } from "./auto-signals.js";
|
|
4
4
|
import { _ as acquireListenLock } from "../shared-mail-files-BAQSGxxz.js";
|
|
5
|
-
import { t as sendSignal } from "../signal-command-
|
|
5
|
+
import { t as sendSignal } from "../signal-command-7tV4fkDC.js";
|
|
6
6
|
import { join } from "node:path";
|
|
7
7
|
import { homedir } from "node:os";
|
|
8
8
|
// src/oclif/auto-signal-worker.ts
|
package/dist/oclif/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { $ as replyInteractionWarning, $t as resolveDomainNames, A as describeWake, An as revokeUserLogin, At as connectNextSteps, B as wakeRecipientField, Bt as countFromMeta, C as withApproval, Cn as selectedOrgFromEnv, Ct as sendWaitClampNotice, D as openBrowser, Dn as displayedRoleKey, Dt as thrownErrorExitCode, E as listenForCopyHotkey, En as credentialsFromUserLogin, Et as successfulSendOutcome, F as sentInThread, Fn as sanitizeForTerminal, Ft as currentMailSessionKey, G as pendingMailPath, Gt as focusProfile, H as claimPendingMail, Ht as focusFlagValues, I as serverMuted, In as shownLine, It as formatAlreadySentNotice, J as removePendingMail, Jt as manyDomainsSupported, K as readPendingMail, Kt as joinNames, L as serverRelationship, Ln as setKnownCommands, Lt as FOCUS_ENV, M as formatMailWakeLine, Mn as roleKeyText, Mt as generatedAgentName, N as latestOwnOutbound, Nn as switchCurrentOrg, Nt as identitySuggestions, O as explainPendingMailNotFound, On as fetchCliOrgs, P as readThreadContext, Pn as routeWarningLines, Pt as loadSkillLine, Q as replyExpectation, Qt as readDomainsOrRefusal, Rn as operationManifest, Rt as FOCUS_SERVER_SUPPORT, S as terminalApprovalIo, Sn as resolveCliApiRequestConfig, St as sendOutcomeExitCode, T as formatBrowserLoginInstructions, Tn as RESTRICTED_ROLE_NOTE, Tt as serializeErrorPayload, U as clearConsumedPendingMail, Ut as focusFlags, V as wakeRelationship, Vt as focusEmptyHint, W as clearReadPendingMail, Wt as focusForCorpus, X as interactionNextActions, Xt as oneDomainAtATimeError, Y as interactionHumanLine, Yt as normalizeDomainNames, Z as readEmailInteraction, Zt as queryScopesItself, _ as BROWSER_FLAG_DESCRIPTION, _t as formatSendRecordFailureSummary, a as createOperationCommand, an as withFlagSuggestion, at as assertValidIdempotencyKey, b as approveThenRerunHint, bn as refreshStoredCliCredentials, bt as sendErrorMessage, c as formatErrorPayload, cn as readCallerMailFor, ct as checkPriorReplies, d as networkErrorHint, dn as fetchBoundedPages, dt as excludeSignalReplies, en as resolveFocus, f as readTextFileFlag, fn as withBooleanFlagValues, ft as followUpCommandPrefix, g as writeErrorWithHints, gn as ConnectedAgentKeyRequiredError, gt as formatSendFailureSummary, h as surfaceUnauthorizedHint, hn as withAttachmentWait, ht as formatPriorRepliesWarning, i as TIME_FLAG_DESCRIPTION, in as writeFocusLine, it as apiResultHttpStatus, j as displayAddress, jn as roleKeyLabel, k as bareAddress, kn as isBuiltInRoleKey, kt as cliInvocation, l as hasControlCharacter$1, ln as formatFact, lt as classifySendError, m as runWithTiming, mn as ATTACHMENT_WAIT_MAX_MS, mt as formatPriorRepliesCheckSkipped, n as API_ERROR_CODES, nn as withFocusMeta, nt as MAX_SEND_WAIT_TIMEOUT_MS, o as extractErrorCode, on as emptyEmailListHint, ot as buildFollowUpCommand, p as refusesCredential, pn as ATTACHMENT_WAIT_FLAG_DESCRIPTION, pt as formatDeletedEarlierSendNotice, q as recordPendingMail, qt as loadSavedFocus, r as PAGED_LIMIT_MAX, rn as withoutFocus, rt as SEND_OUTCOME_HELP, s as extractErrorPayload, sn as mailReach, st as buildThrownSendFailureEnvelope, t as API_BASE_URL_FLAG_DESCRIPTION, tn as saveFocus, tt as IDEMPOTENCY_KEY_FLAG_DESCRIPTION, u as isGrantRefusal, un as isEmailId, ut as deriveSendIdempotencyKey, v as STEP_UP_HEADER$1, vn as createAuthenticatedCliApiClient, vt as priorRepliesThatWentOut, w as canOfferCopyHotkey, wn as CliOrgRefusedError, wt as sentHistoryWindowStart, x as promptLine$2, xn as refuseOrgSelectionForProfile, xt as sendIdentityFields, y as STEP_UP_TOKEN_FLAG_DESCRIPTION, yn as createCliApiClient, yt as reportSendCommandResult, z as wakeReadCommand, zt as NO_FOCUS } from "../api-command-
|
|
1
|
+
import { $ as replyInteractionWarning, $t as resolveDomainNames, A as describeWake, An as revokeUserLogin, At as connectNextSteps, B as wakeRecipientField, Bt as countFromMeta, C as withApproval, Cn as selectedOrgFromEnv, Ct as sendWaitClampNotice, D as openBrowser, Dn as displayedRoleKey, Dt as thrownErrorExitCode, E as listenForCopyHotkey, En as credentialsFromUserLogin, Et as successfulSendOutcome, F as sentInThread, Fn as sanitizeForTerminal, Ft as currentMailSessionKey, G as pendingMailPath, Gt as focusProfile, H as claimPendingMail, Ht as focusFlagValues, I as serverMuted, In as shownLine, It as formatAlreadySentNotice, J as removePendingMail, Jt as manyDomainsSupported, K as readPendingMail, Kt as joinNames, L as serverRelationship, Ln as setKnownCommands, Lt as FOCUS_ENV, M as formatMailWakeLine, Mn as roleKeyText, Mt as generatedAgentName, N as latestOwnOutbound, Nn as switchCurrentOrg, Nt as identitySuggestions, O as explainPendingMailNotFound, On as fetchCliOrgs, P as readThreadContext, Pn as routeWarningLines, Pt as loadSkillLine, Q as replyExpectation, Qt as readDomainsOrRefusal, Rn as operationManifest, Rt as FOCUS_SERVER_SUPPORT, S as terminalApprovalIo, Sn as resolveCliApiRequestConfig, St as sendOutcomeExitCode, T as formatBrowserLoginInstructions, Tn as RESTRICTED_ROLE_NOTE, Tt as serializeErrorPayload, U as clearConsumedPendingMail, Ut as focusFlags, V as wakeRelationship, Vt as focusEmptyHint, W as clearReadPendingMail, Wt as focusForCorpus, X as interactionNextActions, Xt as oneDomainAtATimeError, Y as interactionHumanLine, Yt as normalizeDomainNames, Z as readEmailInteraction, Zt as queryScopesItself, _ as BROWSER_FLAG_DESCRIPTION, _t as formatSendRecordFailureSummary, a as createOperationCommand, an as withFlagSuggestion, at as assertValidIdempotencyKey, b as approveThenRerunHint, bn as refreshStoredCliCredentials, bt as sendErrorMessage, c as formatErrorPayload, cn as readCallerMailFor, ct as checkPriorReplies, d as networkErrorHint, dn as fetchBoundedPages, dt as excludeSignalReplies, en as resolveFocus, f as readTextFileFlag, fn as withBooleanFlagValues, ft as followUpCommandPrefix, g as writeErrorWithHints, gn as ConnectedAgentKeyRequiredError, gt as formatSendFailureSummary, h as surfaceUnauthorizedHint, hn as withAttachmentWait, ht as formatPriorRepliesWarning, i as TIME_FLAG_DESCRIPTION, in as writeFocusLine, it as apiResultHttpStatus, j as displayAddress, jn as roleKeyLabel, k as bareAddress, kn as isBuiltInRoleKey, kt as cliInvocation, l as hasControlCharacter$1, ln as formatFact, lt as classifySendError, m as runWithTiming, mn as ATTACHMENT_WAIT_MAX_MS, mt as formatPriorRepliesCheckSkipped, n as API_ERROR_CODES, nn as withFocusMeta, nt as MAX_SEND_WAIT_TIMEOUT_MS, o as extractErrorCode, on as emptyEmailListHint, ot as buildFollowUpCommand, p as refusesCredential, pn as ATTACHMENT_WAIT_FLAG_DESCRIPTION, pt as formatDeletedEarlierSendNotice, q as recordPendingMail, qt as loadSavedFocus, r as PAGED_LIMIT_MAX, rn as withoutFocus, rt as SEND_OUTCOME_HELP, s as extractErrorPayload, sn as mailReach, st as buildThrownSendFailureEnvelope, t as API_BASE_URL_FLAG_DESCRIPTION, tn as saveFocus, tt as IDEMPOTENCY_KEY_FLAG_DESCRIPTION, u as isGrantRefusal, un as isEmailId, ut as deriveSendIdempotencyKey, v as STEP_UP_HEADER$1, vn as createAuthenticatedCliApiClient, vt as priorRepliesThatWentOut, w as canOfferCopyHotkey, wn as CliOrgRefusedError, wt as sentHistoryWindowStart, x as promptLine$2, xn as refuseOrgSelectionForProfile, xt as sendIdentityFields, y as STEP_UP_TOKEN_FLAG_DESCRIPTION, yn as createCliApiClient, yt as reportSendCommandResult, z as wakeReadCommand, zt as NO_FOCUS } from "../api-command-p-qsR7e6.js";
|
|
2
2
|
import { a as canonicalCommandId, c as operationCommandId, i as canonicalCliText, l as retiredCommandTarget, n as COMMAND_RENAMES, o as canonicalCommands, s as canonicalOperation, t as COMMAND_PAIR_RENAMES } from "../cli-command-names-DteMqL-H.js";
|
|
3
3
|
import { ignoreArgumentStdin } from "./command-stdin.js";
|
|
4
4
|
import { a as runStreamingJson, i as jsonOutputRequested, n as captureOutput, o as thrownErrorBody, r as guardJsonOutputCommands, t as JSON_OUTPUT_FLAG } from "../json-output-BMZrLH47.js";
|
|
5
5
|
import { $ as AUTOMATED_VALUES, $n as stopRepeatFromEmail, $t as getThread, A as collectNewAcceptedEmails, At as downloadSentAttachmentArchiveMember, B as REPLY_STATE_UNSUPPORTED_CODE, Bn as runWakeSchedule, Cn as listSentAttachmentArchiveMembers, Ct as deleteMemory, D as transientFailure, Dn as listWakeSchedules, Dt as downloadEmailAttachmentArchiveMember, E as retryingOperation, En as listWakeDispatches, Et as deleteWakeSchedule, F as lateMailReread, Fn as reorderRoutes, G as formatAwaitingCell, Gn as sendEmail, Gt as getKey, H as assertAwaitingFilterRows, Hn as searchEmails, Ht as getFunctionRouting, I as sinceFromFlags, In as replyToEmail, It as getConversation, J as isAwaitingRejectedError, Jn as setMemory, Jt as getOutboundStatus, K as formatRepliesCell, Kn as setFunctionRoute, Kt as getMemory, L as sleep$3, Ln as resendAgentSignupVerification, Lt as getCreditBalance, M as encodeReceivedAtSearchCursor, Mt as getAccessMode, N as fetchEmailSearchPage, Nn as redeemCreditCode, Nt as getAccount, O as waitOutRetryAfter, On as pollCliLogin, Ot as downloadEmailAttachmentByFilename, P as filtersFromFlags, Pn as removeDefaultNetworkMember, Pt as getAgentContactPolicy, Q as AUTOMATED_FLAG_DESCRIPTION, Qn as startCliLogin, Qt as getSentEmail, R as AWAITING_FLAG_DESCRIPTION, Rn as revokeCredential, Rt as getDefaultNetworkAgent, S as describeApiFailure, Sn as listRoutes, T as retryTransient, Tn as listWakeAuthorizations, Tt as deleteWakeAuthorization, U as awaitingRejectedError, Un as searchMemories, Ut as getFunctionTestRunTrace, V as ReplyStateUnsupportedError, Vt as getFunction, W as ensureSearchReportsReplyState, Wn as semanticSearch, Wt as getInboxStatus, Xn as startAgentClaim, Xt as getRepeatingSend, Y as queryUsesAwaiting, Yn as simulateRoute, Yt as getOwnGrant, Z as AUTOMATED_FILTER_UNSUPPORTED_CODE, Zn as startAgentSignup, Zt as getSendFrom, _n as listKeys, _t as createKey, a as REPEAT_IDLE_MAX_MINUTES, an as listAgentContacts, ar as updateRepeatingSend, b as WaitDeadlineReached, bn as listRepeatingSends, bt as createWakeSchedule, cn as listDefaultNetworkAgents, cr as updateWakeSchedule, ct as addDefaultNetworkMember, d as parseRepeatTick, dn as listEmailAttachmentArchiveMembers, dr as whoami, dt as checkDefaultNetworkContactAdmission, en as getWakeSchedule, er as testFunction, et as AutomatedFilterUnsupportedError, f as preparePresenceAliveEmail, fn as listEmails, ft as checkSendability, g as isEmailReceivedEvent, gn as listGroups, gt as createFunction, hn as listFunctions, ht as createEndpoint, i as REPEAT_EVERY_MAX_MINUTES, ir as updateKey, j as cursorFromAcceptedRows, jt as downloadSentAttachmentByFilename, k as SINCE_VALUE_HELP, kn as pullWebhookEvent, l as parseInteractionEnvelope, ln as listDefaultNetworkMembers, lr as verifyAgentClaim, lt as cancelSentEmail, m as repeatStopCommand, mn as listFunctionLogs, mt as completeWebhookEvent, nn as leaveOrganization, nr as updateDefaultNetworkMember, nt as automatedRejectedError, o as REPEAT_MAX_SENDS_MAX, on as listAgentNetworks, or as updateRoute, ot as hasAutomatedVerdict, p as prepareSignalEmail, pn as listEndpoints, pt as cliLogout, q as hasReplyState, qn as setFunctionSecret, qt as getOrgRoutingTopology, rn as listActivityObjects, rr as updateFunction, s as buildRepeatStopBody, sr as updateWakeAuthorization, st as isAutomatedRejectedError, tr as unsetFunctionRoute, tt as assertAutomatedVerdict, u as parsePresenceEnvelope, un as listDomains, ur as verifyAgentSignup, ut as cancelSentEmailByIdempotencyKey, v as parseWebhookEvent, vn as listMailboxAccess, vt as createRoute, w as pauseForTransientFailure, wn as listSentEmails, wt as deleteRoute, x as backoffDelay, xn as listRoles, y as parseFromHeader, yn as listOrganizationPeople, yt as createWakeAuthorization, z as AWAITING_VALUES, zn as rotateKey, zt as getEmail } from "../repeats-Dj_o6c-X-x61TNLz-.js";
|
|
6
|
-
import { C as readBundledConnectSkill, S as installedVersion, _ as NotificationOutcomeUnknownError, a as NotificationRetryError, b as installSkill, c as readConversationStatusContent, d as SESSION_UUID$1, g as NativeSessionNotLoadedError, h as NativeSessionError, i as notificationReceiptPage, l as createListenHandler, m as NativeSessionDisconnectedError, n as notificationSenders, o as isRoutineNotificationContent, p as defaultSessionSocket, r as openSessionNotifications, s as notificationPartReader, t as notificationScope, u as readableDelivery, v as bundledSkillNames, w as readBundledSkill, x as installedConnectSkillFile, y as connectSkillTarget } from "../notify-session-
|
|
7
|
-
import { $ as loadCachedAgentPassByToken, A as saveActiveChatState, C as resolveCliAuth, D as deleteChatState, E as chatStatePath, F as agentProfileName, G as AGENT_PASS_PROFILE_ENV, I as agentProfilesDirectory, J as agentPassTokenSha256, K as AgentPassAuthError, M as AGENT_PROFILE_ENV, N as AgentConnectionSetupError, O as loadActiveChatState, P as agentProfileDirectory, T as saveSignupCredentials, U as requireDefaultLoginProfile, X as deleteAgentPass, Y as claimAccessPassRemote, Z as isAgentPassExpired, _ as credentialsPath, a as normalizeCliEnvironmentName, at as detectAgentRuntime, b as detectPrimitiveKeyEnvMisname, c as removeCliEnvironment, ct as PrimitiveApiClient, d as upsertCliEnvironment, et as parseAccessPassInput, g as credentialsLockPath, h as cliAccessTokenExpiresAt, i as loadCliConfig, it as saveAgentPass, j as AGENT_ADDRESS_ENV, k as loadChatConversationByLocalId, l as resolveConfigEnvironment, m as acquireCliCredentialsLock, n as deleteCliConfig, nt as resolveAgentPassSlot, o as parseHeaderAssignment, ot as detectRuntimeSession, q as agentPassMetadata, r as emptyCliConfig, rt as revokeAccessPassRemote, s as redactCliEnvironment, st as runtimeSessionVariableList, tt as readAgentPassFile, u as saveCliConfig, v as deleteCliCredentials, w as saveCliCredentials, x as loadCliCredentials, y as deleteCliCredentialsLock, z as loadConnectedAgentProfile } from "../cli-config-
|
|
6
|
+
import { C as readBundledConnectSkill, S as installedVersion, _ as NotificationOutcomeUnknownError, a as NotificationRetryError, b as installSkill, c as readConversationStatusContent, d as SESSION_UUID$1, g as NativeSessionNotLoadedError, h as NativeSessionError, i as notificationReceiptPage, l as createListenHandler, m as NativeSessionDisconnectedError, n as notificationSenders, o as isRoutineNotificationContent, p as defaultSessionSocket, r as openSessionNotifications, s as notificationPartReader, t as notificationScope, u as readableDelivery, v as bundledSkillNames, w as readBundledSkill, x as installedConnectSkillFile, y as connectSkillTarget } from "../notify-session-DR1570cm.js";
|
|
7
|
+
import { $ as loadCachedAgentPassByToken, A as saveActiveChatState, C as resolveCliAuth, D as deleteChatState, E as chatStatePath, F as agentProfileName, G as AGENT_PASS_PROFILE_ENV, I as agentProfilesDirectory, J as agentPassTokenSha256, K as AgentPassAuthError, M as AGENT_PROFILE_ENV, N as AgentConnectionSetupError, O as loadActiveChatState, P as agentProfileDirectory, T as saveSignupCredentials, U as requireDefaultLoginProfile, X as deleteAgentPass, Y as claimAccessPassRemote, Z as isAgentPassExpired, _ as credentialsPath, a as normalizeCliEnvironmentName, at as detectAgentRuntime, b as detectPrimitiveKeyEnvMisname, c as removeCliEnvironment, ct as PrimitiveApiClient, d as upsertCliEnvironment, et as parseAccessPassInput, g as credentialsLockPath, h as cliAccessTokenExpiresAt, i as loadCliConfig, it as saveAgentPass, j as AGENT_ADDRESS_ENV, k as loadChatConversationByLocalId, l as resolveConfigEnvironment, m as acquireCliCredentialsLock, n as deleteCliConfig, nt as resolveAgentPassSlot, o as parseHeaderAssignment, ot as detectRuntimeSession, q as agentPassMetadata, r as emptyCliConfig, rt as revokeAccessPassRemote, s as redactCliEnvironment, st as runtimeSessionVariableList, tt as readAgentPassFile, u as saveCliConfig, v as deleteCliCredentials, w as saveCliCredentials, x as loadCliCredentials, y as deleteCliCredentialsLock, z as loadConnectedAgentProfile } from "../cli-config-DiuUnquY.js";
|
|
8
8
|
import { C as resolveListenSubscription, S as normalizeListenOrigin, _ as acquireListenLock, a as mailLockBusy, c as mailTime, d as readMailJson, f as removeMailFile, g as ListenStateError, h as writeMailJson, i as mailId, l as privateMailDirectory, m as withMailLock, o as mailObject, u as privateMailPermissions, y as listenIdentity } from "../shared-mail-files-BAQSGxxz.js";
|
|
9
|
-
import { $ as saveConnectionName, A as ContactPolicyReadRetryError, B as AddressNotesApiError, C as RECEIVER_MODES, Ct as upsertManagedBlock, D as registrationSummary, Dt as refreshOwnerMemberAddressPeriodically, E as failedSessionRegistration, Et as addSessionReceiver, F as canonicalContactSelector, G as contactAgentAddress, H as runAddressNotesRequest, I as AgentDisconnectError, J as agentInvitationHash, K as runContactRequest, L as claimOverRevokedSetup, M as NetworkAdmissionPendingError, N as createNotificationContactPolicy, O as registrationSummaryLine, Ot as withOwnerMemberAddress, P as evaluateContactPolicy, Q as refusalAfterReplacement, R as clearRevokedAddresses, S as runAgentConnect, St as readManagedFile, T as verificationReplySubmitted, Tt as readHookLauncherWarning, U as ContactsApiError, V as addressNoteTarget, W as contactAddress, X as readAgentInvitation, Y as connectAgent, Z as receiverStatusCommand, _ as enrollmentResumes, _t as samePath, a as endSession, at as boundSessionProfiles, b as invitationProfileName, bt as inspectManagedBlock, c as pendingSessionDisconnects, ct as describeSessionHookChange, d as registerSession, dt as ephemeralCliReason, et as savedReceiver, f as retryPendingDisconnects, ft as findOnPath, g as enrollAgent, gt as repairClaudeHooks, h as staleSessionAgents, ht as readClaudeSettings, i as connectedProfilesForSession, it as recordHookMailCheck, j as NETWORK_ADMISSION_PENDING_RETRY_MS, k as waitForRegistrations, l as psProcessInfo, lt as describeSessionHookItem, m as runDetached, mt as inspectClaudeHooks, n as OMP_MAIN, nt as releaseRegistrationsForProfile, o as headlessClaudeRun, ot as claudeConfigDir, p as revokeStaleSessionAgents, pt as hasMachineSessionHooks, q as agentConnectionStatus, r as agentConnectionState, rt as installClaudeWakeHook, st as currentCliLocation, t as HOOK_END_GRACE_MS, tt as MACHINE_RUNTIMES, u as readClaudeHookInput, ut as ensureHookLauncher, v as connectWarnings, vt as writeClaudeSettings, w as externalReceivingState, wt as writeManagedFile, x as pollCheckCommand, xt as jsonIndentation, y as defaultAgentProfileName, yt as MachineFileError, z as disconnectAgent } from "../machine-session-
|
|
9
|
+
import { $ as saveConnectionName, A as ContactPolicyReadRetryError, B as AddressNotesApiError, C as RECEIVER_MODES, Ct as upsertManagedBlock, D as registrationSummary, Dt as refreshOwnerMemberAddressPeriodically, E as failedSessionRegistration, Et as addSessionReceiver, F as canonicalContactSelector, G as contactAgentAddress, H as runAddressNotesRequest, I as AgentDisconnectError, J as agentInvitationHash, K as runContactRequest, L as claimOverRevokedSetup, M as NetworkAdmissionPendingError, N as createNotificationContactPolicy, O as registrationSummaryLine, Ot as withOwnerMemberAddress, P as evaluateContactPolicy, Q as refusalAfterReplacement, R as clearRevokedAddresses, S as runAgentConnect, St as readManagedFile, T as verificationReplySubmitted, Tt as readHookLauncherWarning, U as ContactsApiError, V as addressNoteTarget, W as contactAddress, X as readAgentInvitation, Y as connectAgent, Z as receiverStatusCommand, _ as enrollmentResumes, _t as samePath, a as endSession, at as boundSessionProfiles, b as invitationProfileName, bt as inspectManagedBlock, c as pendingSessionDisconnects, ct as describeSessionHookChange, d as registerSession, dt as ephemeralCliReason, et as savedReceiver, f as retryPendingDisconnects, ft as findOnPath, g as enrollAgent, gt as repairClaudeHooks, h as staleSessionAgents, ht as readClaudeSettings, i as connectedProfilesForSession, it as recordHookMailCheck, j as NETWORK_ADMISSION_PENDING_RETRY_MS, k as waitForRegistrations, l as psProcessInfo, lt as describeSessionHookItem, m as runDetached, mt as inspectClaudeHooks, n as OMP_MAIN, nt as releaseRegistrationsForProfile, o as headlessClaudeRun, ot as claudeConfigDir, p as revokeStaleSessionAgents, pt as hasMachineSessionHooks, q as agentConnectionStatus, r as agentConnectionState, rt as installClaudeWakeHook, st as currentCliLocation, t as HOOK_END_GRACE_MS, tt as MACHINE_RUNTIMES, u as readClaudeHookInput, ut as ensureHookLauncher, v as connectWarnings, vt as writeClaudeSettings, w as externalReceivingState, wt as writeManagedFile, x as pollCheckCommand, xt as jsonIndentation, y as defaultAgentProfileName, yt as MachineFileError, z as disconnectAgent } from "../machine-session-B7crrlba.js";
|
|
10
10
|
import { a as readBeforeDeadline, c as readPresenceProjection, i as readApiBeforeDeadline, n as isPlainChatReply, o as scopedChatSenderTrust, r as isScopedChatReply, s as presenceDisposition, t as isConnectedChatCredential } from "../scoped-chat-Bss3OjFI.js";
|
|
11
11
|
import { autoSignalEligible, dispatchAutoRead, dispatchAutoWorking, haltAutoWorking, isSentSignal, readWorkingLease, restoreAutoWorking } from "./auto-signals.js";
|
|
12
|
-
import { _ as EventConnection, a as ensureSharedMailSubscription, d as createSharedMailWaiter, f as openSharedMailStore, g as otherParticipants, h as readConversationFollow, i as sharedMailScope, l as KEY_REVOKED_MESSAGE, m as followEmailConversation, n as reconcileChatSend, p as reserveSharedMailSubscription, r as openSharedMailReceiver, s as AGENT_CONNECTION_REQUIRED_MESSAGE, t as sendSignal, u as isConnectedAgentKey, v as EventReceiverError } from "../signal-command-
|
|
12
|
+
import { _ as EventConnection, a as ensureSharedMailSubscription, d as createSharedMailWaiter, f as openSharedMailStore, g as otherParticipants, h as readConversationFollow, i as sharedMailScope, l as KEY_REVOKED_MESSAGE, m as followEmailConversation, n as reconcileChatSend, p as reserveSharedMailSubscription, r as openSharedMailReceiver, s as AGENT_CONNECTION_REQUIRED_MESSAGE, t as sendSignal, u as isConnectedAgentKey, v as EventReceiverError } from "../signal-command-7tV4fkDC.js";
|
|
13
13
|
import { a as backgroundListenStatus, c as runBackgroundListen, d as stopBackgroundListen, f as verifyBackgroundListenTarget, o as backgroundListenToken, r as backgroundListenConfiguration, u as startBackgroundListen } from "../listen-background-DyBYca28.js";
|
|
14
14
|
import { ORG_SELECTION_ENV } from "./global-org-flag.js";
|
|
15
15
|
import { n as createConfig, t as createClient } from "../client.gen-6rZvmHfx.js";
|
|
@@ -7290,7 +7290,8 @@ var ConnectCommand = class ConnectCommand extends Command {
|
|
|
7290
7290
|
this.log(`Bound to: ${formatBinding(rebound)}`);
|
|
7291
7291
|
this.log(`Expires at: ${meta.expires_at}`);
|
|
7292
7292
|
if (meta.slice_summary) this.log(`Scope: ${meta.slice_summary}`);
|
|
7293
|
-
this.log(`
|
|
7293
|
+
if (meta.manage_url) this.log(`Manage / extend / promote: ${meta.manage_url}`);
|
|
7294
|
+
this.log(`This pass expires automatically. Only run \`${revokeCommand}\` if explicitly asked to revoke access early.`);
|
|
7294
7295
|
return;
|
|
7295
7296
|
}
|
|
7296
7297
|
const claimed = await claimAccessPassRemote({
|
|
@@ -7309,6 +7310,7 @@ var ConnectCommand = class ConnectCommand extends Command {
|
|
|
7309
7310
|
...claimed.purpose ? { purpose: claimed.purpose } : {},
|
|
7310
7311
|
...claimed.profile_hint ? { profile_hint: claimed.profile_hint } : {},
|
|
7311
7312
|
...claimed.mcp_url ? { mcp_url: claimed.mcp_url } : {},
|
|
7313
|
+
...claimed.manage_url ? { manage_url: claimed.manage_url } : {},
|
|
7312
7314
|
expires_at: claimed.expires_at,
|
|
7313
7315
|
slice_summary: claimed.slice_summary,
|
|
7314
7316
|
claimed_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
@@ -7336,6 +7338,7 @@ var ConnectCommand = class ConnectCommand extends Command {
|
|
|
7336
7338
|
this.log(`Bound to: ${formatBinding(stored)}`);
|
|
7337
7339
|
this.log(`Expires at: ${meta.expires_at}`);
|
|
7338
7340
|
if (meta.slice_summary) this.log(`Scope: ${meta.slice_summary}`);
|
|
7341
|
+
if (meta.manage_url) this.log(`Manage / extend / promote: ${meta.manage_url}`);
|
|
7339
7342
|
if (typeof claimed.guide === "string" && claimed.guide.trim()) {
|
|
7340
7343
|
this.log("");
|
|
7341
7344
|
this.log(claimed.guide.trim());
|
|
@@ -7348,7 +7351,7 @@ var ConnectCommand = class ConnectCommand extends Command {
|
|
|
7348
7351
|
this.log(`Preview: ${JSON.stringify(claimed.preview)}`);
|
|
7349
7352
|
}
|
|
7350
7353
|
this.log("");
|
|
7351
|
-
this.log(`
|
|
7354
|
+
this.log(`This pass expires automatically. Do not auto-revoke after answering; only run \`${revokeCommand}\` if the user explicitly asks to end access.`);
|
|
7352
7355
|
} catch (error) {
|
|
7353
7356
|
const message = error instanceof AgentPassAuthError || error instanceof Error ? error.message : String(error);
|
|
7354
7357
|
throw new Errors.CLIError(message, { exit: 1 });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { F as agentProfileName, M as AGENT_PROFILE_ENV, P as agentProfileDirectory, at as detectAgentRuntime, z as loadConnectedAgentProfile } from "../cli-config-
|
|
1
|
+
import { F as agentProfileName, M as AGENT_PROFILE_ENV, P as agentProfileDirectory, at as detectAgentRuntime, z as loadConnectedAgentProfile } from "../cli-config-DiuUnquY.js";
|
|
2
2
|
import { a as backgroundListenStatus, i as backgroundListenRestartable, s as claimBackgroundListenRestart, t as BACKGROUND_LISTEN_RELAUNCH_ENV } from "../listen-background-DyBYca28.js";
|
|
3
|
-
import { d as SESSION_UUID, t as notificationScope } from "../notify-session-
|
|
3
|
+
import { d as SESSION_UUID, t as notificationScope } from "../notify-session-DR1570cm.js";
|
|
4
4
|
import { d as readMailJson } from "../shared-mail-files-BAQSGxxz.js";
|
|
5
5
|
import { join } from "node:path";
|
|
6
6
|
import { spawn } from "node:child_process";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as normalizeApiBaseUrl, i as loadCliConfig, l as resolveConfigEnvironment } from "../cli-config-
|
|
1
|
+
import { S as normalizeApiBaseUrl, i as loadCliConfig, l as resolveConfigEnvironment } from "../cli-config-DiuUnquY.js";
|
|
2
2
|
import { existsSync, readFileSync } from "node:fs";
|
|
3
3
|
import { join } from "node:path";
|
|
4
4
|
import { homedir } from "node:os";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Gn as sendEmail, S as describeApiFailure, h as sendPreparedSignal, ht as createEndpoint, p as prepareSignalEmail, wn as listSentEmails, zt as getEmail } from "./repeats-Dj_o6c-X-x61TNLz-.js";
|
|
2
|
-
import { Et as successfulSendOutcome, k as bareAddress, lt as classifySendError, s as extractErrorPayload } from "./api-command-
|
|
2
|
+
import { Et as successfulSendOutcome, k as bareAddress, lt as classifySendError, s as extractErrorPayload } from "./api-command-p-qsR7e6.js";
|
|
3
3
|
import { recordSentSignal } from "./oclif/auto-signals.js";
|
|
4
4
|
import { _ as acquireListenLock, c as mailTime, d as readMailJson, f as removeMailFile, h as writeMailJson, i as mailId, l as privateMailDirectory, m as withMailLock, n as invalidSharedMail, o as mailObject, p as syncMailDirectory, r as mailAddress, s as mailString, t as SharedMailStateError, v as compareListenProcessIdentity, x as listenProcessIdentity, y as listenIdentity } from "./shared-mail-files-BAQSGxxz.js";
|
|
5
5
|
import { i as readApiBeforeDeadline, n as isPlainChatReply, o as scopedChatSenderTrust } from "./scoped-chat-Bss3OjFI.js";
|