@arbidocs/cli 0.3.141 → 0.3.142
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 +8 -0
- package/dist/index.js +19 -11
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v0.3.142
|
|
4
|
+
|
|
5
|
+
[compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.3.141...HEAD)
|
|
6
|
+
|
|
7
|
+
### 🚀 Enhancements
|
|
8
|
+
|
|
9
|
+
- **notes:** Timeline UI — calendar, gantt, grid, and a proper page ([#1157](https://github.com/arbicity/ARBI-frontend/pull/1157))
|
|
10
|
+
|
|
3
11
|
## v0.3.141
|
|
4
12
|
|
|
5
13
|
[compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.3.140...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.142";
|
|
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.142") 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.142"} \u2192 ${latest}). Updating...`);
|
|
3754
3754
|
child_process.execSync("npm install -g @arbidocs/cli@latest", { stdio: "inherit" });
|
|
3755
|
-
showChangelog("0.3.
|
|
3755
|
+
showChangelog("0.3.142", 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.142"} \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.142") 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.142"} \u2192 ${cached.latest}). Run "arbi update".`
|
|
3796
3796
|
);
|
|
3797
3797
|
markNagShown(cached.latest);
|
|
3798
3798
|
} catch {
|
|
@@ -8207,6 +8207,10 @@ function formatSpan(startIso, endIso) {
|
|
|
8207
8207
|
}
|
|
8208
8208
|
return `${start.toISOString().slice(0, 16)}Z \u2192 ${end.toISOString().slice(0, 16)}Z`;
|
|
8209
8209
|
}
|
|
8210
|
+
function bail(message) {
|
|
8211
|
+
error(message);
|
|
8212
|
+
process.exit(1);
|
|
8213
|
+
}
|
|
8210
8214
|
async function fetchDatedNoteChoices(arbi) {
|
|
8211
8215
|
const data = await sdk.notes.listNotes(arbi, { datedOnly: true });
|
|
8212
8216
|
if (data.length === 0) {
|
|
@@ -8264,8 +8268,9 @@ function registerTimelineCommand(program2) {
|
|
|
8264
8268
|
timeline.command("add [description...]").description("Add a dated note (prompts if arguments are omitted)").option("-w, --workspace <id>", "Workspace ID (defaults to selected workspace)").option("-d, --date <date>", "Date, any precision (2019, 2019-10, 2019-10-14, or a timestamp)").option("--end <date>", "End of a custom range (takes the end of its own precision)").option("--timezone <iana>", "IANA zone for a real appointment, e.g. America/New_York").option("--shared", "Visible to all workspace collaborators").option("--json", "Output as JSON").action(
|
|
8265
8269
|
(words, opts) => runAction(async () => {
|
|
8266
8270
|
const { arbi } = await resolveWorkspace(opts.workspace);
|
|
8267
|
-
const
|
|
8268
|
-
const
|
|
8271
|
+
const interactive = process.stdin.isTTY === true;
|
|
8272
|
+
const description = words.join(" ").trim() || (interactive ? await promptInput("What happened?") : bail("Give the note text, or run interactively."));
|
|
8273
|
+
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)."));
|
|
8269
8274
|
const created = await sdk.notes.createNote(arbi, {
|
|
8270
8275
|
text: description,
|
|
8271
8276
|
date,
|
|
@@ -8322,7 +8327,10 @@ function registerTimelineCommand(program2) {
|
|
|
8322
8327
|
printJson(reminded);
|
|
8323
8328
|
return;
|
|
8324
8329
|
}
|
|
8325
|
-
|
|
8330
|
+
const ids = reminded.reminder_task_ext_ids ?? [];
|
|
8331
|
+
const added = ids[ids.length - 1] ?? "";
|
|
8332
|
+
const also = ids.length > 1 ? ` \u2014 ${ids.length} reminders on this note` : "";
|
|
8333
|
+
success(`Reminder set on ${ref(reminded.external_id)} (${ref(added)})${also}`);
|
|
8326
8334
|
})()
|
|
8327
8335
|
);
|
|
8328
8336
|
timeline.command("delete [id]").description("Delete a note (picker if no ID)").option("-w, --workspace <id>", "Workspace ID (defaults to selected workspace)").option("-y, --yes", "Skip confirmation").action(
|
|
@@ -10644,7 +10652,7 @@ console.info = (...args) => {
|
|
|
10644
10652
|
_origInfo(...args);
|
|
10645
10653
|
};
|
|
10646
10654
|
var program = new commander.Command();
|
|
10647
|
-
program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.3.
|
|
10655
|
+
program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.3.142").showHelpAfterError(true).showSuggestionAfterError(true);
|
|
10648
10656
|
registerConfigCommand(program);
|
|
10649
10657
|
registerLoginCommand(program);
|
|
10650
10658
|
registerRegisterCommand(program);
|