@danypops/pi-papyrus 0.55.0 → 0.55.2
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.
|
@@ -17,7 +17,13 @@ import {
|
|
|
17
17
|
type ClientConnector = () => Promise<PapyrusClient>;
|
|
18
18
|
|
|
19
19
|
let connector: ClientConnector = () => connectPapyrusClient();
|
|
20
|
-
|
|
20
|
+
// connectRetry:true (vehicle-client's own bounded background retry budget) covers a
|
|
21
|
+
// daemon that crashed and is mid systemd-restart -- without it, the very first call
|
|
22
|
+
// during that window fails immediately instead of waiting the ~2s restart out.
|
|
23
|
+
const client: RetryingClient<PapyrusClient> = createRetryingClient<PapyrusClient>(() => connector(), {
|
|
24
|
+
label: "Papyrus",
|
|
25
|
+
connectRetry: true,
|
|
26
|
+
});
|
|
21
27
|
|
|
22
28
|
export async function papyrusClient(): Promise<PapyrusClient> {
|
|
23
29
|
return client.call(async (resolved) => resolved);
|
|
@@ -121,6 +121,10 @@ export function registerNotesVehicle(pi: ExtensionAPI): Promise<RegisteredPiVehi
|
|
|
121
121
|
// every dispatch so a long-lived Pi session never sends one sacrificial call to a
|
|
122
122
|
// cached dead port just to discover what the handle file already says.
|
|
123
123
|
resolveIdentity: () => daemonInstanceIdentity(resolveTarget().baseUrl),
|
|
124
|
+
// connectRetry:true (vehicle-client's own bounded background retry budget) covers a
|
|
125
|
+
// daemon that crashed and is mid systemd-restart -- without it, the very first call
|
|
126
|
+
// during that window fails immediately instead of waiting the ~2s restart out.
|
|
127
|
+
connectRetry: true,
|
|
124
128
|
},
|
|
125
129
|
);
|
|
126
130
|
return registerVehicleToolsWhenReady(pi, () => Promise.resolve(currentVehicleClientTarget() ? client : undefined), {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@danypops/pi-papyrus",
|
|
3
|
-
"version": "0.55.
|
|
3
|
+
"version": "0.55.2",
|
|
4
4
|
"description": "Pi host extension for Papyrus: native tools, TUI panels, and context injection over the daemon-backed graph store",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": ["pi-package"],
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"typebox": "*"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@danypops/jittor": "^0.
|
|
20
|
+
"@danypops/jittor": "^0.18.1",
|
|
21
21
|
"@danypops/papyrus": "^0.54.2",
|
|
22
|
-
"@danypops/vehicle-client": "^0.
|
|
22
|
+
"@danypops/vehicle-client": "^0.10.0",
|
|
23
23
|
"@danypops/vehicle-client-pi": "^0.40.1",
|
|
24
24
|
"@danypops/vehicle-core": "^0.12.3",
|
|
25
25
|
"@danypops/vehicle-server": "^0.18.1",
|