primcli 3.0.0-preview.21 → 3.0.0-preview.22
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/README.md +12 -1
- package/dist/{api-command-Bab30eNp.js → api-command-Dm1BKxOr.js} +520 -153
- package/dist/{cli-command-names-BYbYdipl.js → cli-command-names-DteMqL-H.js} +43 -1
- package/dist/{json-output-xgN0ZLWP.js → json-output-BMZrLH47.js} +1 -1
- package/dist/{machine-session-cfgMKQ_U.js → machine-session-DPLiLNot.js} +5 -5
- package/dist/{notify-session-BRK9_xSb.js → notify-session-DHQbjXOq.js} +2 -2
- package/dist/oclif/auto-signal-worker.js +3 -3
- package/dist/oclif/auto-signals.js +1 -1
- package/dist/oclif/command-not-found.js +3 -2
- package/dist/oclif/index.js +362 -64
- package/dist/oclif/proxy-auto-detect.js +1 -1
- package/dist/oclif/receiver-heal.js +2 -2
- package/dist/{repeats-Dj_o6c-X-CraZzs4t.js → repeats-Dj_o6c-X-x61TNLz-.js} +55 -4
- package/dist/{scoped-chat-YucNhX6U.js → scoped-chat-Bss3OjFI.js} +1 -1
- package/dist/{shared-mail-watch-BAPMsFNv.js → shared-mail-watch-DdtgJOrV.js} +12 -0
- package/dist/{signal-command-AOnn_Him.js → signal-command-vIo4maG0.js} +11 -7
- package/package.json +5 -5
|
@@ -1,6 +1,48 @@
|
|
|
1
1
|
// src/oclif/cli-command-names.ts
|
|
2
|
+
/** Direct generated/task pairs share one canonical command. */
|
|
3
|
+
const COMMAND_PAIR_RENAMES = {
|
|
4
|
+
"contacts:delete-contact": "contacts:delete",
|
|
5
|
+
"contacts:get-contact": "contacts:get",
|
|
6
|
+
"contacts:list-contacts": "contacts:list",
|
|
7
|
+
"credentials:get-key": "keys:get",
|
|
8
|
+
"credentials:list-keys": "keys:list",
|
|
9
|
+
"credits:get-credit-balance": "credits:balance",
|
|
10
|
+
"functions:redeploy-function": "functions:redeploy",
|
|
11
|
+
"functions:set-function-route": "functions:set-route",
|
|
12
|
+
"functions:set-function-secret": "functions:set-secret",
|
|
13
|
+
"functions:unset-function-route": "functions:unset-route",
|
|
14
|
+
"mailbox-access:list-groups": "roles:groups",
|
|
15
|
+
"mailbox-access:list-mailbox-access": "roles:mailbox-access",
|
|
16
|
+
"memories:delete-memory": "memories:delete",
|
|
17
|
+
"memories:get-memory": "memories:get",
|
|
18
|
+
"memories:search-memories": "memories:search",
|
|
19
|
+
"memories:set-memory": "memories:set",
|
|
20
|
+
"projects:list-organization-people": "members:list",
|
|
21
|
+
"roles-and-members:get-access-mode": "roles:access-mode",
|
|
22
|
+
"roles-and-members:list-roles": "roles:list",
|
|
23
|
+
"roles:members": "members:list",
|
|
24
|
+
"routes:create-route": "routes:create",
|
|
25
|
+
"routes:delete-route": "routes:delete",
|
|
26
|
+
"routes:list-routes": "routes:list",
|
|
27
|
+
"routes:reorder-routes": "routes:reorder",
|
|
28
|
+
"routes:update-route": "routes:update",
|
|
29
|
+
"threads:mute-thread": "threads:mute",
|
|
30
|
+
"threads:unmute-thread": "threads:unmute",
|
|
31
|
+
"wake:create-wake-authorization": "wake:authorizations:create",
|
|
32
|
+
"wake:create-wake-schedule": "wake:schedules:create",
|
|
33
|
+
"wake:delete-wake-authorization": "wake:authorizations:delete",
|
|
34
|
+
"wake:delete-wake-schedule": "wake:schedules:delete",
|
|
35
|
+
"wake:get-wake-schedule": "wake:schedules:get",
|
|
36
|
+
"wake:list-wake-authorizations": "wake:authorizations:list",
|
|
37
|
+
"wake:list-wake-dispatches": "wake:dispatches:list",
|
|
38
|
+
"wake:list-wake-schedules": "wake:schedules:list",
|
|
39
|
+
"wake:run-wake-schedule": "wake:schedules:run",
|
|
40
|
+
"wake:update-wake-authorization": "wake:authorizations:update",
|
|
41
|
+
"wake:update-wake-schedule": "wake:schedules:update"
|
|
42
|
+
};
|
|
2
43
|
/** Canonical executable names. API operation identifiers stay unchanged. */
|
|
3
44
|
const COMMAND_RENAMES = {
|
|
45
|
+
...COMMAND_PAIR_RENAMES,
|
|
4
46
|
"account:get-account": "account:get",
|
|
5
47
|
"account:get-storage-stats": "account:storage",
|
|
6
48
|
"account:get-webhook-secret": "account:webhook-secret",
|
|
@@ -317,4 +359,4 @@ function retiredCommandTarget(argv) {
|
|
|
317
359
|
}
|
|
318
360
|
return match;
|
|
319
361
|
}
|
|
320
|
-
export {
|
|
362
|
+
export { canonicalCommandId as a, operationCommandId as c, canonicalCliText as i, retiredCommandTarget as l, COMMAND_RENAMES as n, canonicalCommands as o, canonicalBodyFlagName as r, canonicalOperation as s, COMMAND_PAIR_RENAMES as t };
|
|
@@ -343,4 +343,4 @@ function guardJsonOutputCommands(commands) {
|
|
|
343
343
|
if (flags && "json" in flags || enableJsonFlag === true) guardJsonOutput(command);
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
|
-
export {
|
|
346
|
+
export { runStreamingJson as a, jsonOutputRequested as i, captureOutput as n, thrownErrorBody as o, guardJsonOutputCommands as r, JSON_OUTPUT_FLAG as t };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { B as parseOwnerMemberAddress, F as agentProfilesDirectory, I as connectedAgentIdentity, L as connectedApiBaseUrl, M as AgentConnectionSetupError, N as agentProfileDirectory, P as agentProfileName, R as loadConnectedAgentProfile, U as saveConnectedAgentProfile, V as profileAlreadyConnectedMessage, W as PrimitiveApiClient, b as loadCliCredentials, j as AGENT_PROFILE_ENV, z as parseConnectedAgentProfile } from "./cli-config-Ms_0vNjq.js";
|
|
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-
|
|
3
|
-
import {
|
|
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 { Cn as refreshStoredCliCredentials, It as detectAgentRuntime, jt as defaultConnectionName, kt as cliInvocation, wn as refuseOrgSelectionForProfile } from "./api-command-Dm1BKxOr.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-DHQbjXOq.js";
|
|
6
6
|
import { a as backgroundListenStatus, d as stopBackgroundListen } from "./listen-background-DyBYca28.js";
|
|
7
|
-
import { t as readSharedMailOwner } from "./shared-mail-watch-
|
|
7
|
+
import { t as readSharedMailOwner } from "./shared-mail-watch-DdtgJOrV.js";
|
|
8
8
|
import { withoutOrgSelection } from "./oclif/global-org-flag.js";
|
|
9
|
-
import { o as scopedChatSenderTrust } from "./scoped-chat-
|
|
9
|
+
import { o as scopedChatSenderTrust } from "./scoped-chat-Bss3OjFI.js";
|
|
10
10
|
import { accessSync, chmodSync, closeSync, constants, copyFileSync, existsSync, fsyncSync, lstatSync, mkdirSync, openSync, readFileSync, readdirSync, realpathSync, renameSync, rmSync, rmdirSync, statSync, unlinkSync, writeFileSync } from "node:fs";
|
|
11
11
|
import { createHash, randomUUID } from "node:crypto";
|
|
12
12
|
import { basename, delimiter, dirname, isAbsolute, join, resolve } from "node:path";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as isTrustedSender, c as classifySignalContent, g as isEmailReceivedEvent, kt as downloadEmailAttachmentPart, v as parseWebhookEvent } from "./repeats-Dj_o6c-X-
|
|
2
|
-
import {
|
|
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-Dm1BKxOr.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
|
-
import { Qt as getSentEmail } from "../repeats-Dj_o6c-X-
|
|
2
|
-
import {
|
|
1
|
+
import { Qt as getSentEmail } from "../repeats-Dj_o6c-X-x61TNLz-.js";
|
|
2
|
+
import { P as readThreadContext, xn as createAuthenticatedCliApiClient } from "../api-command-Dm1BKxOr.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-vIo4maG0.js";
|
|
6
6
|
import { join } from "node:path";
|
|
7
7
|
import { homedir } from "node:os";
|
|
8
8
|
// src/oclif/auto-signal-worker.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as isPlainChatReply, o as scopedChatSenderTrust } from "../scoped-chat-
|
|
1
|
+
import { n as isPlainChatReply, o as scopedChatSenderTrust } from "../scoped-chat-Bss3OjFI.js";
|
|
2
2
|
import { d as readMailJson, h as writeMailJson, i as mailId, l as privateMailDirectory, r as mailAddress } from "../shared-mail-files-BAQSGxxz.js";
|
|
3
3
|
import { existsSync, readFileSync, readdirSync, unlinkSync, writeFileSync } from "node:fs";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { n as COMMAND_RENAMES } from "../cli-command-names-DteMqL-H.js";
|
|
2
|
+
import { i as jsonOutputRequested } from "../json-output-BMZrLH47.js";
|
|
3
3
|
// src/oclif/command-not-found.ts
|
|
4
4
|
/** At most this many commands are suggested for one word. */
|
|
5
5
|
const MOST_SUGGESTED = 3;
|
|
@@ -81,6 +81,7 @@ function visibleEntries(commands, topics) {
|
|
|
81
81
|
function commandNotFoundMessage(id, lookup) {
|
|
82
82
|
const parts = id.split(":");
|
|
83
83
|
const typed = `primitive ${parts.join(" ")}`;
|
|
84
|
+
if (id === "focus:get" && lookup.visible?.includes("focus") && lookup.find("focus")) return unknown(typed, ["focus"], "Run \"primitive focus --help\" to see its options.", lookup);
|
|
84
85
|
const replacement = Object.hasOwn(COMMAND_RENAMES, id) ? COMMAND_RENAMES[id] : void 0;
|
|
85
86
|
if (replacement && lookup.visible?.includes(replacement)) return unknown(typed, [replacement], "Run \"primitive --help\" to see the commands.", lookup);
|
|
86
87
|
for (let end = parts.length - 1; end > 0; end -= 1) {
|