@arbidocs/cli 0.3.116 → 0.3.118
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/CHANGELOG.md +18 -0
- package/dist/index.js +9 -43
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v0.3.118
|
|
4
|
+
|
|
5
|
+
[compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.3.117...HEAD)
|
|
6
|
+
|
|
7
|
+
### 💅 Refactors
|
|
8
|
+
|
|
9
|
+
- Unify toast onto one shared sonner-backed kit in @arbidocs/react ([34a5c9c2](https://github.com/arbicity/ARBI-frontend/commit/34a5c9c2))
|
|
10
|
+
|
|
11
|
+
## v0.3.117
|
|
12
|
+
|
|
13
|
+
[compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.3.116...HEAD)
|
|
14
|
+
|
|
15
|
+
### 🚀 Enhancements
|
|
16
|
+
|
|
17
|
+
- Real end-to-end encrypted direct messages (sdk, cli, react kit, blocks) ([e3f5d052](https://github.com/arbicity/ARBI-frontend/commit/e3f5d052))
|
|
18
|
+
- Reusable image crop kit; wire into studio image field and profile avatar ([31e730af](https://github.com/arbicity/ARBI-frontend/commit/31e730af))
|
|
19
|
+
- Promote app-shell chrome to shared packages (command palette, notification centre, user menu, AppHeader) ([ad13c172](https://github.com/arbicity/ARBI-frontend/commit/ad13c172))
|
|
20
|
+
|
|
3
21
|
## v0.3.116
|
|
4
22
|
|
|
5
23
|
[compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.3.115...HEAD)
|
package/dist/index.js
CHANGED
|
@@ -3694,7 +3694,7 @@ function getLatestVersion(skipCache = false) {
|
|
|
3694
3694
|
}
|
|
3695
3695
|
}
|
|
3696
3696
|
function getCurrentVersion() {
|
|
3697
|
-
return "0.3.
|
|
3697
|
+
return "0.3.118";
|
|
3698
3698
|
}
|
|
3699
3699
|
function readChangelog(fromVersion, toVersion) {
|
|
3700
3700
|
try {
|
|
@@ -3747,17 +3747,17 @@ function showChangelog(fromVersion, toVersion) {
|
|
|
3747
3747
|
async function checkForUpdates(autoUpdate) {
|
|
3748
3748
|
try {
|
|
3749
3749
|
const latest = getLatestVersion();
|
|
3750
|
-
if (!latest || latest === "0.3.
|
|
3750
|
+
if (!latest || latest === "0.3.118") return;
|
|
3751
3751
|
if (autoUpdate) {
|
|
3752
3752
|
warn(`
|
|
3753
|
-
Your arbi version is out of date (${"0.3.
|
|
3753
|
+
Your arbi version is out of date (${"0.3.118"} \u2192 ${latest}). Updating...`);
|
|
3754
3754
|
child_process.execSync("npm install -g @arbidocs/cli@latest", { stdio: "inherit" });
|
|
3755
|
-
showChangelog("0.3.
|
|
3755
|
+
showChangelog("0.3.118", latest);
|
|
3756
3756
|
console.log(`Updated to ${latest}.`);
|
|
3757
3757
|
} else {
|
|
3758
3758
|
warn(
|
|
3759
3759
|
`
|
|
3760
|
-
Your arbi version is out of date (${"0.3.
|
|
3760
|
+
Your arbi version is out of date (${"0.3.118"} \u2192 ${latest}).
|
|
3761
3761
|
Run "arbi update" to upgrade, or "arbi update auto" to always stay up to date.`
|
|
3762
3762
|
);
|
|
3763
3763
|
}
|
|
@@ -3789,10 +3789,10 @@ function markNagShown(latest) {
|
|
|
3789
3789
|
function hintUpdateOnError() {
|
|
3790
3790
|
try {
|
|
3791
3791
|
const cached = readCache();
|
|
3792
|
-
if (!cached || cached.latest === "0.3.
|
|
3792
|
+
if (!cached || cached.latest === "0.3.118") return;
|
|
3793
3793
|
if (!shouldShowNag(cached.latest)) return;
|
|
3794
3794
|
warn(
|
|
3795
|
-
`Your arbi version is out of date (${"0.3.
|
|
3795
|
+
`Your arbi version is out of date (${"0.3.118"} \u2192 ${cached.latest}). Run "arbi update".`
|
|
3796
3796
|
);
|
|
3797
3797
|
markNagShown(cached.latest);
|
|
3798
3798
|
} catch {
|
|
@@ -4851,41 +4851,7 @@ function registerStatusCommand(program2) {
|
|
|
4851
4851
|
}
|
|
4852
4852
|
init_prompts();
|
|
4853
4853
|
async function resolveRecipient(arbi, ref2) {
|
|
4854
|
-
|
|
4855
|
-
const matchKey = isEmail ? "email" : "external_id";
|
|
4856
|
-
const contacts = await sdk.contacts.listContacts(arbi);
|
|
4857
|
-
const contactMatch = contacts.find((c) => {
|
|
4858
|
-
if (isEmail) return c.email === ref2;
|
|
4859
|
-
const u = c.user;
|
|
4860
|
-
return u?.external_id === ref2 || c.external_id === ref2;
|
|
4861
|
-
});
|
|
4862
|
-
if (contactMatch) {
|
|
4863
|
-
const u = contactMatch.user;
|
|
4864
|
-
const extId = u?.external_id ?? contactMatch.external_id;
|
|
4865
|
-
const pubKey = u?.encryption_public_key ?? "";
|
|
4866
|
-
if (pubKey) return { extId, pubKey };
|
|
4867
|
-
}
|
|
4868
|
-
try {
|
|
4869
|
-
const agents = await sdk.agents.listAgents(arbi);
|
|
4870
|
-
const agentMatch = agents.find((a) => a[matchKey] === ref2);
|
|
4871
|
-
if (agentMatch) {
|
|
4872
|
-
return { extId: agentMatch.external_id, pubKey: agentMatch.encryption_public_key };
|
|
4873
|
-
}
|
|
4874
|
-
} catch {
|
|
4875
|
-
}
|
|
4876
|
-
try {
|
|
4877
|
-
const wsUsers = await sdk.workspaces.listWorkspaceUsers(arbi);
|
|
4878
|
-
const wsMatch = wsUsers.find((wu) => wu[matchKey] === ref2);
|
|
4879
|
-
if (wsMatch) {
|
|
4880
|
-
const u = wsMatch;
|
|
4881
|
-
return {
|
|
4882
|
-
extId: u.external_id,
|
|
4883
|
-
pubKey: u.encryption_public_key
|
|
4884
|
-
};
|
|
4885
|
-
}
|
|
4886
|
-
} catch {
|
|
4887
|
-
}
|
|
4888
|
-
return null;
|
|
4854
|
+
return sdk.dm.resolveRecipient(arbi, ref2);
|
|
4889
4855
|
}
|
|
4890
4856
|
function rowMatchesFilters(row, opts) {
|
|
4891
4857
|
if (opts.unread && row.read) return false;
|
|
@@ -10332,7 +10298,7 @@ console.info = (...args) => {
|
|
|
10332
10298
|
_origInfo(...args);
|
|
10333
10299
|
};
|
|
10334
10300
|
var program = new commander.Command();
|
|
10335
|
-
program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.3.
|
|
10301
|
+
program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.3.118").showHelpAfterError(true).showSuggestionAfterError(true);
|
|
10336
10302
|
registerConfigCommand(program);
|
|
10337
10303
|
registerLoginCommand(program);
|
|
10338
10304
|
registerRegisterCommand(program);
|