primcli 3.0.0-preview.15 → 3.0.0-preview.16
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-D5Nbd6Pq.js → api-command-D1LX7Tjj.js} +811 -435
- package/dist/{machine-session-DyGP7wDs.js → machine-session-DJoBSWTy.js} +4 -4
- package/dist/{notify-session-B64Lgv6Z.js → notify-session-7oM8bkRx.js} +2 -2
- package/dist/oclif/auto-signal-worker.js +3 -3
- package/dist/oclif/auto-signals.js +1 -1
- package/dist/oclif/help.js +5 -2
- package/dist/oclif/index.js +207 -85
- package/dist/oclif/receiver-heal.js +2 -2
- package/dist/{repeats-Dj_o6c-X-C1y88ZwJ.js → repeats-Dj_o6c-X-BLUY-8zn.js} +5 -5
- package/dist/{scoped-chat-CocomDwR.js → scoped-chat-CrQpmC0K.js} +1 -1
- package/dist/{signal-command-lJM0763f.js → signal-command-Bkr_XwLC.js} +4 -4
- package/package.json +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { N as agentProfileDirectory, P as agentProfileName, R as loadConnectedAgentProfile, j as AGENT_PROFILE_ENV } from "../cli-config-Ms_0vNjq.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-
|
|
4
|
-
import {
|
|
3
|
+
import { d as SESSION_UUID, t as notificationScope } from "../notify-session-7oM8bkRx.js";
|
|
4
|
+
import { zt as detectAgentRuntime } from "../api-command-D1LX7Tjj.js";
|
|
5
5
|
import { d as readMailJson } from "../shared-mail-files-BAQSGxxz.js";
|
|
6
6
|
import { join } from "node:path";
|
|
7
7
|
import { spawn } from "node:child_process";
|
|
@@ -3766,7 +3766,7 @@ const getEmailRule = (options) => (options.client ?? client).get({
|
|
|
3766
3766
|
/**
|
|
3767
3767
|
* Change a rule
|
|
3768
3768
|
*
|
|
3769
|
-
* Renames the rule, saves a new version (english and tree together; earlier versions stay) or restores one (restore_version), changes its state (draft is off; observe; active), its scope (evaluation_scope, with scope_selection when selected) or its saved expectations (judged in expectations_check). Anyone but its author who sees it may only set state draft, and while it is shared only if they manage members from the dashboard. A scope change saves a new version; a shared rule keeps its scope, and a kind never changes. A saved version takes effect at once. if_version refuses a write once a version was saved since you read it; if_revision, once anything changed. Without if_expectations_pass a version is saved even when its expectations fail, except on an active rule keys or
|
|
3769
|
+
* Renames the rule, saves a new version (english and tree together; earlier versions stay) or restores one (restore_version), changes its state (draft is off; observe; active), its scope (evaluation_scope, with scope_selection when selected) or its saved expectations (judged in expectations_check). Anyone but its author who sees it may only set state draft, and while it is shared only if they manage members from the dashboard. A scope change saves a new version; a shared rule keeps its scope, and a kind never changes. A saved version takes effect at once, on the rule's share too, which goes on under it. if_version refuses a write once a version was saved since you read it; if_revision, once anything changed. Without if_expectations_pass a version is saved even when its expectations fail, except on an active rule keys, webhooks or a share read: that write is checked first unless if_expectations_pass is false. Needs mail:read, the email rules feature, and a member's own full-access credential (no API key, agent key or narrowed token).
|
|
3770
3770
|
*/
|
|
3771
3771
|
const updateEmailRule = (options) => (options.client ?? client).patch({
|
|
3772
3772
|
security: [{
|
|
@@ -3796,7 +3796,7 @@ const listEmailRuleDecisions = (options) => (options.client ?? client).get({
|
|
|
3796
3796
|
/**
|
|
3797
3797
|
* List every rule's result on an email
|
|
3798
3798
|
*
|
|
3799
|
-
* What each rule you can see decided about this email (matched, not matched, or not run), in the words of the deciding version. A do_not_share rule that matched it blocks sharing while active; earlier shares stay. Only a caller who can read the email gets an answer. classification is every fact the classifier read, as rule conditions read it. At most 50 rules are listed, results first; not_listed counts the rest. Another member's rule that decided on your own mail is listed read_only (dashboard and CLI only), with who receives what it shares (receivers) while it covers you; hidden counts deciding rules you cannot see. Needs mail:read, the email rules feature, and a member's own full-access credential (no API key, agent key or narrowed token).
|
|
3799
|
+
* What each rule you can see decided about this email (matched, not matched, or not run), in the words of the deciding version. A do_not_share rule that matched it blocks sharing while active; earlier shares stay. Only a caller who can read the email gets an answer. classification is every fact the classifier read, as rule conditions read it. At most 50 rules are listed, results first; not_listed counts the rest. Another member's rule that decided on your own mail is listed read_only (dashboard and CLI only), with who receives what it shares (receivers) while it covers you; hidden counts deciding rules you cannot see. Whether a rule delivered the email by webhook is not in the rule results: on your own mail, rule_deliveries on GET /v1/emails/{id} (primitive emails get <email-id> --json) counts each rule's webhook deliveries; on another member's mail, GET /v1/webhooks/deliveries?email_id=<email-id> (primitive webhook-deliveries list --email-id <email-id>, with webhooks:read) lists them. Needs mail:read, the email rules feature, and a member's own full-access credential (no API key, agent key or narrowed token).
|
|
3800
3800
|
*/
|
|
3801
3801
|
const listEmailRuleResults = (options) => (options.client ?? client).get({
|
|
3802
3802
|
security: [{
|
|
@@ -4033,7 +4033,7 @@ const listEmailRuleShareEmails = (options) => (options.client ?? client).get({
|
|
|
4033
4033
|
/**
|
|
4034
4034
|
* List the rules over your mail
|
|
4035
4035
|
*
|
|
4036
|
-
* Every email rule that covers one of your own mailboxes now, yours included, newest first, in any state. A rule covers you when the scope it runs with now reaches one of your own mailboxes (your member mailbox, or a personal agent's address):
|
|
4036
|
+
* Every email rule that covers one of your own mailboxes now, yours included, newest first, in any state. A rule covers you when the scope it runs with now reaches one of your own mailboxes (your member mailbox, or a personal agent's address), and covers.via says how: author_reach, it runs over everything its author can read, which includes your mail (an author who reads the organization's mail or holds an access entry for your mailbox); selected, it names your mailbox or its domain; own_mailboxes, it is your own rule over your own mail. Another member's own_mailboxes rule never covers you. You see its name, wording, current tree, state, kind and author, and which of your own mailboxes it reaches. Its wording and tree are shown as written, so they can name other addresses (a condition on who an email is from or to). While it covers you, you also see who receives what it matches (receivers): how many API keys, webhooks and shares, the member each belongs to (or the organization), and the sites the webhooks deliver to. You do not see which keys, webhooks or shares they are (no ids, names, prefixes, or URLs beyond the site), the other inboxes and domains its scope names, or its saved expectations. Each listed rule carries its current version's english and explanation; its tree is on GET /v1/email-rules/covering-me/{id}. A page can hold fewer rules than limit, or none, and still carry a cursor (one request reads a bounded number of rules): keep reading until meta.cursor is null. For what happened to one email of yours, every rule's decision on it and, for another member's rule covering you, who receives what it shares: GET /v1/emails/{id}/rule-results (primitive email-rules list-email-rule-results --email-id <email-id>). Whether a rule delivered the email by webhook is not in the rule results: on your own mail, rule_deliveries on GET /v1/emails/{id} (primitive emails get <email-id> --json) counts each rule's webhook deliveries; on another member's mail, GET /v1/webhooks/deliveries?email_id=<email-id> (primitive webhook-deliveries list --email-id <email-id>, with webhooks:read) lists them. Needs mail:read, the email rules feature, and a member's own full-access credential (no API key, agent key or narrowed token). Only on your own dashboard session or the Primitive CLI.
|
|
4037
4037
|
*/
|
|
4038
4038
|
const listEmailRulesCoveringMe = (options) => (options?.client ?? client).get({
|
|
4039
4039
|
security: [{
|
|
@@ -4046,7 +4046,7 @@ const listEmailRulesCoveringMe = (options) => (options?.client ?? client).get({
|
|
|
4046
4046
|
/**
|
|
4047
4047
|
* Get a rule over your mail
|
|
4048
4048
|
*
|
|
4049
|
-
* One rule that covers one of your own mailboxes, read-only, with its current version; or one that no longer does but decided on mail at your own mailbox (covers_now false), shown as the version that last decided on your mail, without its current name. You see its name, wording, current tree, state, kind and author, and which of your own mailboxes it reaches. Its wording and tree are shown as written, so they can name other addresses (a condition on who an email is from or to). While it covers you, you also see who receives what it matches (receivers): how many API keys, webhooks and shares, the member each belongs to (or the organization), and the sites the webhooks deliver to. You do not see which keys, webhooks or shares they are (no ids, names, prefixes, or URLs beyond the site), the other inboxes and domains its scope names, or its saved expectations. For what happened to one email of yours, every rule's decision on it and, for another member's rule covering you, who receives what it shares: GET /v1/emails/{id}/rule-results (primitive email-rules list-email-rule-results --email-id <email-id>). Needs mail:read, the email rules feature, and a member's own full-access credential (no API key, agent key or narrowed token). Only on your own dashboard session or the Primitive CLI.
|
|
4049
|
+
* One rule that covers one of your own mailboxes, read-only, with its current version; or one that no longer does but decided on mail at your own mailbox (covers_now false), shown as the version that last decided on your mail, without its current name. You see its name, wording, current tree, state, kind and author, and which of your own mailboxes it reaches. Its wording and tree are shown as written, so they can name other addresses (a condition on who an email is from or to). While it covers you, you also see who receives what it matches (receivers): how many API keys, webhooks and shares, the member each belongs to (or the organization), and the sites the webhooks deliver to. You do not see which keys, webhooks or shares they are (no ids, names, prefixes, or URLs beyond the site), the other inboxes and domains its scope names, or its saved expectations. For what happened to one email of yours, every rule's decision on it and, for another member's rule covering you, who receives what it shares: GET /v1/emails/{id}/rule-results (primitive email-rules list-email-rule-results --email-id <email-id>). Whether a rule delivered the email by webhook is not in the rule results: on your own mail, rule_deliveries on GET /v1/emails/{id} (primitive emails get <email-id> --json) counts each rule's webhook deliveries; on another member's mail, GET /v1/webhooks/deliveries?email_id=<email-id> (primitive webhook-deliveries list --email-id <email-id>, with webhooks:read) lists them. Needs mail:read, the email rules feature, and a member's own full-access credential (no API key, agent key or narrowed token). Only on your own dashboard session or the Primitive CLI.
|
|
4050
4050
|
*/
|
|
4051
4051
|
const getEmailRuleCoveringMe = (options) => (options.client ?? client).get({
|
|
4052
4052
|
security: [{
|
|
@@ -25934,4 +25934,4 @@ function repeatStopCommand(emailId) {
|
|
|
25934
25934
|
if (!UUID.test(emailId)) throw new TypeError("emailId must be an email UUID");
|
|
25935
25935
|
return `primitive repeat stop --id ${emailId.toLowerCase()}`;
|
|
25936
25936
|
}
|
|
25937
|
-
export { isTrustedSender as $,
|
|
25937
|
+
export { isTrustedSender as $, setFunctionSecret as $n, getOwnGrant as $t, filtersFromFlags as A, listSentEmails as An, deleteWakeAuthorization as At, awaitingRejectedError as B, removeDefaultNetworkMember as Bn, getContact as Bt, transientFailure as C, listKeys as Cn, createRoute as Ct, cursorFromAcceptedRows as D, listRoles as Dn, deleteContact as Dt, collectNewAcceptedEmails as E, listRepeatingSends as En, deleteAgentContact as Et, AWAITING_FLAG_DESCRIPTION as F, pullWebhookEvent as Fn, downloadSentAttachmentArchiveMember as Ft, isAwaitingRejectedError as G, rotateKey as Gn, getFunction as Gt, formatAwaitingCell as H, replyToEmail as Hn, getCreditBalance as Ht, AWAITING_VALUES as I, putAgentContact as In, downloadSentAttachmentByFilename as It, EMAIL_RULE_OBJECTION_EVENT_TYPES as J, searchEmails as Jn, getInboxStatus as Jt, queryUsesAwaiting as K, runWakeSchedule as Kn, getFunctionRouting as Kt, REPLY_STATE_UNSUPPORTED_CODE as L, putAgentContactPolicy as Ln, getAccessMode as Lt, quoteDslValue as M, listWakeDispatches as Mn, downloadEmailAttachmentArchiveMember as Mt, sinceFromFlags as N, listWakeSchedules as Nn, downloadEmailAttachmentByFilename as Nt, encodeReceivedAtSearchCursor as O, listRoutes as On, deleteMemory as Ot, sleep as P, pollCliLogin as Pn, downloadEmailAttachmentPart as Pt, isEmailReceivedEvent as Q, setFunctionRoute as Qn, getOutboundStatus as Qt, ReplyStateUnsupportedError as R, putContact as Rn, getAccount as Rt, retryingOperation as S, listGroups as Sn, createKey as St, SINCE_VALUE_HELP as T, listOrganizationPeople as Tn, createWakeSchedule as Tt, formatRepliesCell as U, resendAgentSignupVerification as Un, getDefaultNetworkAgent as Ut, ensureSearchReportsReplyState as V, reorderRoutes as Vn, getConversation as Vt, hasReplyState as W, revokeCredential as Wn, getEmail as Wt, SENT_EMAIL_EVENT_TYPES as X, semanticSearch as Xn, getMemory as Xt, EMAIL_RULE_REQUEST_EVENT_TYPES as Y, searchMemories as Yn, getKey as Yt, WEBHOOK_EVENT_TYPES as Z, sendEmail as Zn, getOrgRoutingTopology as Zt, backoffDelay as _, listEmailRulesCoveringMe as _n, whoami as _r, checkSendability as _t, REPEAT_IDLE_MAX_MINUTES as a, inviteAgentConnection as an, stopRepeatFromEmail as ar, AutomatedFilterUnsupportedError as at, pauseForTransientFailure as b, listFunctionLogs as bn, createEndpoint as bt, classifySignalContent as c, listAgentConnections as cn, updateDefaultNetworkMember as cr, automatedSurfaceForOperation as ct, parseRepeatTick as d, listContacts as dn, updateRepeatingSend as dr, hasAutomatedVerdict as dt, getRepeatingSend as en, setMemory as er, parseWebhookEvent as et, preparePresenceAliveEmail as f, listDefaultNetworkAgents as fn, updateRoute as fr, isAutomatedRejectedError as ft, WaitDeadlineReached as g, listEmailRuleResults as gn, verifyAgentSignup as gr, checkDefaultNetworkContactAdmission as gt, sendPreparedSignal as h, listEmailAttachmentArchiveMembers as hn, verifyAgentClaim as hr, cancelSentEmailByIdempotencyKey as ht, REPEAT_EVERY_MAX_MINUTES as i, getWakeSchedule as in, startCliLogin as ir, AUTOMATED_VALUES as it, lateMailReread as j, listWakeAuthorizations as jn, deleteWakeSchedule as jt, fetchEmailSearchPage as k, listSentAttachmentArchiveMembers as kn, deleteRoute as kt, parseInteractionEnvelope as l, listAgentContacts as ln, updateFunction as lr, ensureSearchReportsAutomated as lt, repeatStopCommand as m, listDomains as mn, updateWakeSchedule as mr, cancelSentEmail as mt, MAX_PRESENCE_ENVELOPE_BYTES as n, getSentEmail as nn, startAgentClaim as nr, AUTOMATED_FILTER_UNSUPPORTED_CODE as nt, REPEAT_MAX_SENDS_MAX as o, leaveOrganization as on, testFunction as or, assertAutomatedVerdict as ot, prepareSignalEmail as p, listDefaultNetworkMembers as pn, updateWakeAuthorization as pr, addDefaultNetworkMember as pt, replyStateSurfaceForOperation as q, sdk_gen_exports as qn, getFunctionTestRunTrace as qt, PRESENCE_PROBE_TEXT as r, getThread as rn, startAgentSignup as rr, AUTOMATED_FLAG_DESCRIPTION as rt, buildRepeatStopBody as s, listActivityObjects as sn, unsetFunctionRoute as sr, automatedRejectedError as st, MAX_INTERACTION_BYTES as t, getSendFrom as tn, simulateRoute as tr, parseFromHeader as tt, parsePresenceEnvelope as u, listAgentNetworks as un, updateKey as ur, expectedAutomatedVerdicts as ut, describeApiFailure as v, listEmails as vn, __exportAll as vr, cliLogout as vt, waitOutRetryAfter as w, listMailboxAccess as wn, createWakeAuthorization as wt, retryTransient as x, listFunctions as xn, createFunction as xt, parseRetryAfter as y, listEndpoints as yn, completeWebhookEvent as yt, assertAwaitingFilterRows as z, redeemCreditCode as zn, getAgentContactPolicy as zt };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as isTrustedSender, c as classifySignalContent, x as retryTransient } from "./repeats-Dj_o6c-X-
|
|
1
|
+
import { $ as isTrustedSender, c as classifySignalContent, x as retryTransient } from "./repeats-Dj_o6c-X-BLUY-8zn.js";
|
|
2
2
|
// src/oclif/presence-provenance.ts
|
|
3
3
|
function readPresenceProjection(detail) {
|
|
4
4
|
if (!detail || typeof detail !== "object") return null;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { Wt as getEmail,
|
|
2
|
-
import { M as bareAddress,
|
|
1
|
+
import { An as listSentEmails, Wt as getEmail, Zn as sendEmail, bt as createEndpoint, h as sendPreparedSignal, p as prepareSignalEmail, v as describeApiFailure } from "./repeats-Dj_o6c-X-BLUY-8zn.js";
|
|
2
|
+
import { M as bareAddress, ft as classifySendError, kt as successfulSendOutcome, s as extractErrorPayload } from "./api-command-D1LX7Tjj.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
|
-
import { i as readApiBeforeDeadline, n as isPlainChatReply, o as scopedChatSenderTrust } from "./scoped-chat-
|
|
5
|
+
import { i as readApiBeforeDeadline, n as isPlainChatReply, o as scopedChatSenderTrust } from "./scoped-chat-CrQpmC0K.js";
|
|
6
6
|
import { n as tryOwnSharedMail, r as waitForSharedMailChange, t as readSharedMailOwner } from "./shared-mail-watch-BAPMsFNv.js";
|
|
7
7
|
import { Errors } from "@oclif/core";
|
|
8
8
|
import { opendirSync } from "node:fs";
|
|
9
9
|
import { createHash, randomUUID, scryptSync } from "node:crypto";
|
|
10
10
|
import { dirname, join } from "node:path";
|
|
11
11
|
import { setTimeout as setTimeout$1 } from "node:timers/promises";
|
|
12
|
-
// ../sdk-node/dist/api-
|
|
12
|
+
// ../sdk-node/dist/api-mtCxA8lC.js
|
|
13
13
|
const jsonBodySerializer = { bodySerializer: (body) => JSON.stringify(body, (_key, value) => typeof value === "bigint" ? value.toString() : value) };
|
|
14
14
|
function createSseClient({ onRequest, onSseError, onSseEvent, responseTransformer, responseValidator, sseDefaultRetryDelay, sseMaxRetryAttempts, sseMaxRetryDelay, sseSleepFn, url, ...options }) {
|
|
15
15
|
let lastEventId;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "primcli",
|
|
3
|
-
"version": "3.0.0-preview.
|
|
3
|
+
"version": "3.0.0-preview.16",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"tag": "preview"
|
|
6
6
|
},
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"description": "Check inbound email setup and readiness, and work through mail awaiting your reply. Prefer `primitive inbox setup` for a guided setup path, `primitive inbox status` for the readiness table, and `primitive inbox next` for the oldest email awaiting your reply."
|
|
96
96
|
},
|
|
97
97
|
"emails": {
|
|
98
|
-
"description": "List, inspect, and wait for received emails, and see what the classifier read from one. Prefer task aliases like `primitive emails list`, `primitive emails get`, `primitive emails latest`, `primitive emails facts`, `primitive emails wait`, and `primitive emails watch`; generated API names remain available for compatibility."
|
|
98
|
+
"description": "List, inspect, and wait for received emails, and see what the classifier read from one. Prefer task aliases like `primitive emails list`, `primitive emails get`, `primitive emails latest`, `primitive emails facts`, `primitive emails wait`, and `primitive emails watch`; generated API names remain available for compatibility. For a one-line-per-email table, `primitive emails latest --limit 100`."
|
|
99
99
|
},
|
|
100
100
|
"search": {
|
|
101
101
|
"description": "Cross-corpus semantic search. Prefer `primitive search <query>` for lexical inbound search and `primitive semantic-search <query>` for meaning-aware ranking across inbound and outbound.",
|
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
"description": "Received and sent mail per hour, and how webhook deliveries ended"
|
|
187
187
|
},
|
|
188
188
|
"activity": {
|
|
189
|
-
"description": "
|
|
189
|
+
"description": "Where you learn what others asked of you and did to your mail: `primitive activity asked` (rule requests for your mail and objections to your rules), `primitive activity concerning` (other members' rules that started covering your mail or changed), and `primitive activity created` (what you created, including your requests and how they were decided). `primitive doctor` sums up what is waiting for you."
|
|
190
190
|
},
|
|
191
191
|
"email-rules": {
|
|
192
192
|
"description": "Rules written in plain English that pick out received mail"
|