@arbidocs/cli 0.3.144 → 0.3.146
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 +39 -3
- package/dist/index.js +15 -15
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,48 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## v0.3.
|
|
3
|
+
## v0.3.146
|
|
4
|
+
|
|
5
|
+
[compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.3.145...HEAD)
|
|
6
|
+
|
|
7
|
+
### 🩹 Fixes
|
|
8
|
+
|
|
9
|
+
- **facts:** The testids the rename missed ([7f964556](https://github.com/arbicity/ARBI-frontend/commit/7f964556))
|
|
10
|
+
- **tests:** Integration suites target this checkout's deployment, not box-105 ([90af875f](https://github.com/arbicity/ARBI-frontend/commit/90af875f))
|
|
11
|
+
- Show the run-budget wind-down step in full (was truncated mid-word) ([#1151](https://github.com/arbicity/ARBI-frontend/pull/1151))
|
|
12
|
+
|
|
13
|
+
### 💅 Refactors
|
|
14
|
+
|
|
15
|
+
- Notes become facts, everywhere (frontend) ([d872c117](https://github.com/arbicity/ARBI-frontend/commit/d872c117))
|
|
16
|
+
|
|
17
|
+
## v0.3.145
|
|
4
18
|
|
|
5
19
|
[compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.3.143...HEAD)
|
|
6
20
|
|
|
7
|
-
###
|
|
21
|
+
### 🚀 Enhancements
|
|
22
|
+
|
|
23
|
+
- **notes:** Show whether a human has confirmed a note, not where it came from ([e661e9a48](https://github.com/arbicity/ARBI-frontend/commit/e661e9a48))
|
|
24
|
+
- **notes:** A Shared column in the notes grid ([5d154ab45](https://github.com/arbicity/ARBI-frontend/commit/5d154ab45))
|
|
25
|
+
|
|
26
|
+
### ✅ Tests
|
|
27
|
+
|
|
28
|
+
- **e2e:** The empty state says fact now ([bbb3e4900](https://github.com/arbicity/ARBI-frontend/commit/bbb3e4900))
|
|
29
|
+
|
|
30
|
+
## v0.3.143
|
|
31
|
+
|
|
32
|
+
[compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.3.142...HEAD)
|
|
33
|
+
|
|
34
|
+
### 🩹 Fixes
|
|
35
|
+
|
|
36
|
+
- **notes:** Sort the gantt chronologically, and filter every view from one list ([#1160](https://github.com/arbicity/ARBI-frontend/pull/1160))
|
|
37
|
+
|
|
38
|
+
### 💅 Refactors
|
|
39
|
+
|
|
40
|
+
- **blocks:** Move the timeline views into @arbidocs/blocks ([b30810d4](https://github.com/arbicity/ARBI-frontend/commit/b30810d4))
|
|
41
|
+
- Retire what the shared timeline made redundant ([33510915](https://github.com/arbicity/ARBI-frontend/commit/33510915))
|
|
42
|
+
|
|
43
|
+
### ✅ Tests
|
|
8
44
|
|
|
9
|
-
-
|
|
45
|
+
- **e2e:** Invalidate the notes query after seeding through the API ([#1158](https://github.com/arbicity/ARBI-frontend/pull/1158))
|
|
10
46
|
|
|
11
47
|
## v0.3.142
|
|
12
48
|
|
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.146";
|
|
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.146") 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.146"} \u2192 ${latest}). Updating...`);
|
|
3754
3754
|
child_process.execSync("npm install -g @arbidocs/cli@latest", { stdio: "inherit" });
|
|
3755
|
-
showChangelog("0.3.
|
|
3755
|
+
showChangelog("0.3.146", 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.146"} \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.146") 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.146"} \u2192 ${cached.latest}). Run "arbi update".`
|
|
3796
3796
|
);
|
|
3797
3797
|
markNagShown(cached.latest);
|
|
3798
3798
|
} catch {
|
|
@@ -8213,7 +8213,7 @@ function bail(message) {
|
|
|
8213
8213
|
process.exit(1);
|
|
8214
8214
|
}
|
|
8215
8215
|
async function fetchDatedNoteChoices(arbi) {
|
|
8216
|
-
const data = await sdk.
|
|
8216
|
+
const data = await sdk.facts.listFacts(arbi, { datedOnly: true });
|
|
8217
8217
|
if (data.length === 0) {
|
|
8218
8218
|
process.stderr.write("No dated notes found.\n");
|
|
8219
8219
|
process.exit(0);
|
|
@@ -8232,7 +8232,7 @@ function registerTimelineCommand(program2) {
|
|
|
8232
8232
|
timeline.command("list", { isDefault: true }).description("Dated notes in the active workspace, soonest first").option("-w, --workspace <id>", "Workspace ID (defaults to selected workspace)").option("--from <date>", "Range start, any precision (2019, 2019-10, 2019-10-14)").option("--to <date>", "Range end, any precision").option("--json", "Output as JSON").action(
|
|
8233
8233
|
(opts) => runAction(async () => {
|
|
8234
8234
|
const { arbi } = await resolveWorkspace(opts.workspace);
|
|
8235
|
-
const data = await sdk.
|
|
8235
|
+
const data = await sdk.facts.listFacts(arbi, {
|
|
8236
8236
|
from: opts.from,
|
|
8237
8237
|
to: opts.to,
|
|
8238
8238
|
// Without this the server has no reason to treat the request as a
|
|
@@ -8272,13 +8272,13 @@ function registerTimelineCommand(program2) {
|
|
|
8272
8272
|
const interactive = process.stdin.isTTY === true;
|
|
8273
8273
|
const description = words.join(" ").trim() || (interactive ? await promptInput("What happened?") : bail("Give the note text, or run interactively."));
|
|
8274
8274
|
const date = opts.date ?? (interactive ? await promptInput("When? (2019, 2019-10, 2019-10-14, or a timestamp)") : bail("A timeline note needs a date \u2014 pass --date (e.g. --date 2019-10)."));
|
|
8275
|
-
const created = await sdk.
|
|
8275
|
+
const created = await sdk.facts.createFact(arbi, {
|
|
8276
8276
|
text: description,
|
|
8277
8277
|
date,
|
|
8278
8278
|
date_end: opts.end ?? null,
|
|
8279
8279
|
timezone: opts.timezone ?? null,
|
|
8280
8280
|
pinned: false,
|
|
8281
|
-
|
|
8281
|
+
confirmed: true,
|
|
8282
8282
|
shared: Boolean(opts.shared),
|
|
8283
8283
|
tag_ext_ids: [],
|
|
8284
8284
|
citations: null
|
|
@@ -8304,7 +8304,7 @@ function registerTimelineCommand(program2) {
|
|
|
8304
8304
|
text: await promptInput("Text (blank to keep)", false) || void 0,
|
|
8305
8305
|
date: await promptInput("Date (blank to keep)", false) || void 0
|
|
8306
8306
|
};
|
|
8307
|
-
const updated = await sdk.
|
|
8307
|
+
const updated = await sdk.facts.updateFact(arbi, eventId, body);
|
|
8308
8308
|
if (opts.json) {
|
|
8309
8309
|
printJson(updated);
|
|
8310
8310
|
return;
|
|
@@ -8320,7 +8320,7 @@ function registerTimelineCommand(program2) {
|
|
|
8320
8320
|
const { choices } = await fetchDatedNoteChoices(arbi);
|
|
8321
8321
|
eventId = await promptSelect("Remind me about which note?", choices);
|
|
8322
8322
|
}
|
|
8323
|
-
const reminded = await sdk.
|
|
8323
|
+
const reminded = await sdk.facts.remindFact(arbi, eventId, {
|
|
8324
8324
|
remindAt: opts.at,
|
|
8325
8325
|
leadMinutes: opts.lead
|
|
8326
8326
|
});
|
|
@@ -8347,7 +8347,7 @@ function registerTimelineCommand(program2) {
|
|
|
8347
8347
|
process.stderr.write("Cancelled.\n");
|
|
8348
8348
|
return;
|
|
8349
8349
|
}
|
|
8350
|
-
await sdk.
|
|
8350
|
+
await sdk.facts.deleteFact(arbi, eventId);
|
|
8351
8351
|
success(`Deleted ${ref(eventId)}`);
|
|
8352
8352
|
})()
|
|
8353
8353
|
);
|
|
@@ -10653,7 +10653,7 @@ console.info = (...args) => {
|
|
|
10653
10653
|
_origInfo(...args);
|
|
10654
10654
|
};
|
|
10655
10655
|
var program = new commander.Command();
|
|
10656
|
-
program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.3.
|
|
10656
|
+
program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.3.146").showHelpAfterError(true).showSuggestionAfterError(true);
|
|
10657
10657
|
registerConfigCommand(program);
|
|
10658
10658
|
registerLoginCommand(program);
|
|
10659
10659
|
registerRegisterCommand(program);
|