dsh-wsr-execution 0.2.6 → 0.2.8
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/README.md +1 -1
- package/package.json +4 -4
- package/src/intake/plugin.js +10 -1
package/README.md
CHANGED
|
@@ -21,6 +21,6 @@ and exact MIT provenance are documented under
|
|
|
21
21
|
`src/client/delivery-inventory/UPSTREAM.md`.
|
|
22
22
|
|
|
23
23
|
The compatible `wsr-execution@^0.2.0` peer comes from the immutable GitHub
|
|
24
|
-
`0.2.
|
|
24
|
+
`0.2.6` release asset recorded in `package.json`, not ambient npm resolution. Install that
|
|
25
25
|
asset as an explicit DSH profile root alongside this adapter; its required
|
|
26
26
|
SHA-256 is `0b889b707b5fdc84d934e6c807ce101b4edaa356409253a1f48d6ffca7f53420`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-wsr-execution",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.8",
|
|
4
4
|
"description": "DeepSeek Harness adapter bundle for WSR Intake, Delivery resources, Session state, Actions, and final results.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"displayName": "WSR",
|
|
40
40
|
"role": "execution-adapter",
|
|
41
41
|
"foundationOnly": false,
|
|
42
|
-
"ownerRevision": "
|
|
42
|
+
"ownerRevision": "0e8d937570de451f32764a99e9f6c5dfdb55474f",
|
|
43
43
|
"ownerAsset": {
|
|
44
|
-
"url": "https://github.com/firestige/wsr-execution/releases/download/0.2.
|
|
45
|
-
"sha256": "
|
|
44
|
+
"url": "https://github.com/firestige/wsr-execution/releases/download/0.2.6/wsr-execution-0.2.6.tgz",
|
|
45
|
+
"sha256": "8aee92d34018a9e48ec52630faf9774f02e563b846d910a77e8adab165eb468e"
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
package/src/intake/plugin.js
CHANGED
|
@@ -271,7 +271,16 @@ export async function createPluginRuntime(config, options = {}) {
|
|
|
271
271
|
const ownerProjection = options.ownerProjection ?? api.getExecutionControlPlaneProjection(application);
|
|
272
272
|
const bindingInventory = () => typeof control.bindingInventory === "function" ? control.bindingInventory() : control.list();
|
|
273
273
|
const archiveTerminal = async (sessionKey, correlation, deliveryId) => {
|
|
274
|
-
|
|
274
|
+
let snapshot;
|
|
275
|
+
for (let attempt = 0; attempt < 100; attempt += 1) {
|
|
276
|
+
try {
|
|
277
|
+
snapshot = await ownerProjection.snapshot();
|
|
278
|
+
break;
|
|
279
|
+
} catch (cause) {
|
|
280
|
+
if (cause?.code !== "DELIVERY_PROJECTION_STALE_BINDING" || attempt === 99) throw cause;
|
|
281
|
+
await new Promise((resolve) => setTimeout(resolve, 10));
|
|
282
|
+
}
|
|
283
|
+
}
|
|
275
284
|
const matches = snapshot.deliveries.filter((delivery) => delivery.lifecycle === "TERMINAL"
|
|
276
285
|
&& delivery.navigation?.sessionCorrelation === correlation
|
|
277
286
|
&& (deliveryId === undefined || delivery.deliveryId === deliveryId));
|