@cueloop/client 0.1.0-alpha.2 → 0.1.0-alpha.4

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/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@cueloop/client",
3
- "version": "0.1.0-alpha.2",
3
+ "version": "0.1.0-alpha.4",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": "./src/index.ts"
8
8
  },
9
9
  "dependencies": {
10
- "@cueloop/daemon": "0.1.0-alpha.2",
11
- "@cueloop/extension-api": "0.1.0-alpha.2",
12
- "@cueloop/integration-obsidian": "0.1.0-alpha.2",
13
- "@cueloop/schema": "0.1.0-alpha.2",
10
+ "@cueloop/daemon": "0.1.0-alpha.4",
11
+ "@cueloop/extension-api": "0.1.0-alpha.4",
12
+ "@cueloop/integration-obsidian": "0.1.0-alpha.4",
13
+ "@cueloop/schema": "0.1.0-alpha.4",
14
14
  "@opentui/core": "^0.4.3",
15
15
  "@opentui/react": "^0.4.3",
16
16
  "@pierre/diffs": "^1.3.5",
@@ -60,12 +60,20 @@ describe("obsidian export on resolve", () => {
60
60
  await setup.renderOnce();
61
61
  expect(setup.captureCharFrame()).toContain("verdict");
62
62
  setup.mockInput.pressKey("RETURN");
63
+ // wall-clock deadlines: the export is an async round-trip after resolve,
64
+ // and an iteration count times out on a loaded runner
63
65
  const dir = join(vault, "cueloop");
64
- for (let i = 0; i < 40 && !existsSync(dir); i++) {
66
+ const fileDeadline = Date.now() + 30_000;
67
+ while (Date.now() < fileDeadline && !existsSync(dir)) {
68
+ await Bun.sleep(25);
69
+ await setup.renderOnce();
70
+ }
71
+ // the status line lands on a later render than the file write
72
+ const statusDeadline = Date.now() + 30_000;
73
+ while (Date.now() < statusDeadline && !setup.captureCharFrame().includes("exported to")) {
65
74
  await Bun.sleep(25);
66
75
  await setup.renderOnce();
67
76
  }
68
- await setup.renderOnce();
69
77
 
70
78
  const notes = readdirSync(dir);
71
79
  expect(notes.length).toBe(1);