@cueloop/client 0.1.0-alpha.0 → 0.1.0-alpha.3
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 +6 -6
- package/src/App.export.test.tsx +10 -2
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cueloop/client",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.3",
|
|
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": "
|
|
11
|
-
"@cueloop/extension-api": "
|
|
12
|
-
"@cueloop/integration-obsidian": "
|
|
13
|
-
"@cueloop/schema": "
|
|
10
|
+
"@cueloop/daemon": "0.1.0-alpha.3",
|
|
11
|
+
"@cueloop/extension-api": "0.1.0-alpha.3",
|
|
12
|
+
"@cueloop/integration-obsidian": "0.1.0-alpha.3",
|
|
13
|
+
"@cueloop/schema": "0.1.0-alpha.3",
|
|
14
14
|
"@opentui/core": "^0.4.3",
|
|
15
15
|
"@opentui/react": "^0.4.3",
|
|
16
16
|
"@pierre/diffs": "^1.3.5",
|
|
@@ -37,4 +37,4 @@
|
|
|
37
37
|
"url": "git+https://github.com/mmurakaru/cueloop.git",
|
|
38
38
|
"directory": "packages/client"
|
|
39
39
|
}
|
|
40
|
-
}
|
|
40
|
+
}
|
package/src/App.export.test.tsx
CHANGED
|
@@ -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
|
-
|
|
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);
|