@arbidocs/cli 0.3.145 → 0.3.147

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 CHANGED
@@ -1,5 +1,42 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.3.147
4
+
5
+ [compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.3.146...HEAD)
6
+
7
+ ### 🚀 Enhancements
8
+
9
+ - **viewer:** See and switch which passages carry each label ([31fd44f87](https://github.com/arbicity/ARBI-frontend/commit/31fd44f87))
10
+ - Export any chat, fact or field to another workspace ([70024e379](https://github.com/arbicity/ARBI-frontend/commit/70024e379))
11
+
12
+ ### 🏡 Chore
13
+
14
+ - **sse:** Drop vestigial detail types, and correct why two steps have no row ([036f210c3](https://github.com/arbicity/ARBI-frontend/commit/036f210c3))
15
+ - **schema:** Regenerate for the agent tool-result captions ([2638285b5](https://github.com/arbicity/ARBI-frontend/commit/2638285b5))
16
+ - Remove the obsolete workspace-chronology feature ([aff327aad](https://github.com/arbicity/ARBI-frontend/commit/aff327aad))
17
+ - **schema:** Regenerate after the chronology removal ([2070324c2](https://github.com/arbicity/ARBI-frontend/commit/2070324c2))
18
+
19
+ ### ✅ Tests
20
+
21
+ - **e2e:** Fix specs that asserted behaviour the product had moved past ([14d39b379](https://github.com/arbicity/ARBI-frontend/commit/14d39b379))
22
+ - **e2e:** Task specs now drive the current task modal ([4312710f0](https://github.com/arbicity/ARBI-frontend/commit/4312710f0))
23
+ - **e2e:** Two more specs that pre-date the UI they drive ([e4db55c53](https://github.com/arbicity/ARBI-frontend/commit/e4db55c53))
24
+ - **e2e:** Four specs that still spoke the retired agent_step protocol ([480813ad4](https://github.com/arbicity/ARBI-frontend/commit/480813ad4))
25
+
26
+ ## v0.3.146
27
+
28
+ [compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.3.145...HEAD)
29
+
30
+ ### 🩹 Fixes
31
+
32
+ - **facts:** The testids the rename missed ([7f964556](https://github.com/arbicity/ARBI-frontend/commit/7f964556))
33
+ - **tests:** Integration suites target this checkout's deployment, not box-105 ([90af875f](https://github.com/arbicity/ARBI-frontend/commit/90af875f))
34
+ - Show the run-budget wind-down step in full (was truncated mid-word) ([#1151](https://github.com/arbicity/ARBI-frontend/pull/1151))
35
+
36
+ ### 💅 Refactors
37
+
38
+ - Notes become facts, everywhere (frontend) ([d872c117](https://github.com/arbicity/ARBI-frontend/commit/d872c117))
39
+
3
40
  ## v0.3.145
4
41
 
5
42
  [compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.3.143...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.145";
3697
+ return "0.3.147";
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.145") return;
3750
+ if (!latest || latest === "0.3.147") return;
3751
3751
  if (autoUpdate) {
3752
3752
  warn(`
3753
- Your arbi version is out of date (${"0.3.145"} \u2192 ${latest}). Updating...`);
3753
+ Your arbi version is out of date (${"0.3.147"} \u2192 ${latest}). Updating...`);
3754
3754
  child_process.execSync("npm install -g @arbidocs/cli@latest", { stdio: "inherit" });
3755
- showChangelog("0.3.145", latest);
3755
+ showChangelog("0.3.147", 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.145"} \u2192 ${latest}).
3760
+ Your arbi version is out of date (${"0.3.147"} \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.145") return;
3792
+ if (!cached || cached.latest === "0.3.147") return;
3793
3793
  if (!shouldShowNag(cached.latest)) return;
3794
3794
  warn(
3795
- `Your arbi version is out of date (${"0.3.145"} \u2192 ${cached.latest}). Run "arbi update".`
3795
+ `Your arbi version is out of date (${"0.3.147"} \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.notes.listNotes(arbi, { datedOnly: true });
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.notes.listNotes(arbi, {
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,7 +8272,7 @@ 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.notes.createNote(arbi, {
8275
+ const created = await sdk.facts.createFact(arbi, {
8276
8276
  text: description,
8277
8277
  date,
8278
8278
  date_end: opts.end ?? 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.notes.updateNote(arbi, eventId, body);
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.notes.remindNote(arbi, eventId, {
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.notes.deleteNote(arbi, eventId);
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.145").showHelpAfterError(true).showSuggestionAfterError(true);
10656
+ program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.3.147").showHelpAfterError(true).showSuggestionAfterError(true);
10657
10657
  registerConfigCommand(program);
10658
10658
  registerLoginCommand(program);
10659
10659
  registerRegisterCommand(program);