dsh-client-auto-continue 0.17.2 → 0.17.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/CHANGELOG.md +27 -0
- package/README.md +7 -3
- package/README.zh.md +7 -3
- package/docs/releases/v0.17.3.md +43 -0
- package/docs/releases/v0.17.4.md +35 -0
- package/docs/screenshots/README.md +25 -0
- package/docs/screenshots/issue-72-584-after.png +0 -0
- package/docs/screenshots/issue-72-584-before.png +0 -0
- package/lib/client.js +1 -1
- package/lib/client.js.map +2 -2
- package/lib/index.js +1 -0
- package/package.json +2 -2
- package/src/client/styles.ts +1 -1
- package/src/shared/core.ts +2 -0
package/lib/index.js
CHANGED
|
@@ -1239,6 +1239,7 @@ function isTransientFailure(failure, retryableErrorPatterns = "") {
|
|
|
1239
1239
|
if (explicitlyRetryable) return true;
|
|
1240
1240
|
const status = failure.status;
|
|
1241
1241
|
if (status !== void 0 && (status === 401 || status === 403)) return false;
|
|
1242
|
+
if (failure.code === "MALFORMED_RESPONSE") return true;
|
|
1242
1243
|
const permanent = /auth|unauthor|forbidden|credential|api[_-]?key|permission/i.test(haystack) || /insufficient.*(balance|quota)|billing|payment|quota.*exceeded.*(?!retry)/i.test(haystack) || /model.*not[_-]?found|unknown[_-]?model|model[_-]?not[_-]?found|not.*support.*model/i.test(haystack) || /context.*(length|limit|overflow|exceed)|token.*limit|max.*context/i.test(haystack) || /invalid[_-]?request|bad[_-]?request/i.test(haystack) || /prompt variable "\{\{[^"\r\n]+\}\}" has no value for this assembly/i.test(haystack);
|
|
1243
1244
|
return !permanent;
|
|
1244
1245
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-client-auto-continue",
|
|
3
3
|
"description": "DSH Web UI plugin: automatically sends a localized continue prompt when a request is interrupted by network errors or other non-human causes",
|
|
4
|
-
"version": "0.17.
|
|
4
|
+
"version": "0.17.4",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"types": "lib/types/index.d.ts",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"watch": "node build.mjs --watch",
|
|
51
51
|
"typecheck": "tsc --noEmit",
|
|
52
52
|
"test:runtime": "node tests/settings-host-live.mjs 0.1.7 && node tests/settings-host-live.mjs 0.2.0 && node tests/settings-host-live.mjs 0.2.1 && node tests/profile-compatibility.mjs 0.2.0 && node tests/profile-compatibility.mjs 0.2.1 && node tests/client-settings-services.mjs 0.2.0 && node tests/client-settings-services.mjs 0.2.1 && node tests/boot-scan-host-live.mjs 0.2.0-rc.2 && node tests/boot-scan-host-live.mjs 0.2.1 && node tests/settings-host-live.mjs 0.2.1-rc.2 && node tests/profile-compatibility.mjs 0.2.1-rc.2 && node tests/boot-scan-restart-live.mjs && node tests/settings-host-live.mjs 0.2.1-rc.2 mixed && node tests/settings-migration.mjs",
|
|
53
|
-
"test": "node tests/boot-scan-stored-sweep.mjs && node tests/loop-guard-progress.mjs && node tests/scan-on-boot.mjs && node tests/boot-scan-isolation.mjs && node tests/silent-turn-boundaries.mjs && node tests/autonomous-loop.mjs && node tests/session-modes.mjs && node tests/manual-resume-pauses.mjs && node tests/stats-freshness.mjs && node tests/simulate-host.mjs && node tests/settings-host-compat.mjs && node tests/simulate-client-loader.mjs && node tests/client-settings-services.mjs && node tests/client-settings-form.mjs && node tests/locale-mirror-bounded.mjs && node tests/settings-card-ui.mjs && node tests/settings-card-native.mjs && node tests/composer-toggle.mjs && node tests/settings-notifications.mjs && node tests/prepare-github-package.mjs && node tests/maintenance-turns.mjs && node tests/publish-prerelease.mjs",
|
|
53
|
+
"test": "node tests/boot-scan-stored-sweep.mjs && node tests/loop-guard-progress.mjs && node tests/scan-on-boot.mjs && node tests/boot-scan-isolation.mjs && node tests/silent-turn-boundaries.mjs && node tests/autonomous-loop.mjs && node tests/session-modes.mjs && node tests/manual-resume-pauses.mjs && node tests/stats-freshness.mjs && node tests/failure-classification.mjs && node tests/simulate-host.mjs && node tests/settings-host-compat.mjs && node tests/simulate-client-loader.mjs && node tests/client-settings-services.mjs && node tests/client-settings-form.mjs && node tests/locale-mirror-bounded.mjs && node tests/settings-card-ui.mjs && node tests/settings-card-native.mjs && node tests/composer-toggle.mjs && node tests/settings-notifications.mjs && node tests/prepare-github-package.mjs && node tests/maintenance-turns.mjs && node tests/publish-prerelease.mjs",
|
|
54
54
|
"prepack": "npm run build"
|
|
55
55
|
},
|
|
56
56
|
"keywords": [
|
package/src/client/styles.ts
CHANGED
|
@@ -159,7 +159,7 @@ const css = `
|
|
|
159
159
|
.dshAcModeTriggerLabel { display: none; }
|
|
160
160
|
}
|
|
161
161
|
/* DS-Bot can remove the query container with display: contents. */
|
|
162
|
-
@media (max-width:
|
|
162
|
+
@media (max-width: 640px) {
|
|
163
163
|
.dshAcComposer { flex-direction: column; align-items: flex-start; width: min-content; }
|
|
164
164
|
.dshAcComposer > .dshAcComposerLabel { white-space: normal; }
|
|
165
165
|
.dshAcComposerCore { gap: 5px; }
|
package/src/shared/core.ts
CHANGED
|
@@ -287,6 +287,8 @@ export function isTransientFailure(failure: FailureFacts, retryableErrorPatterns
|
|
|
287
287
|
if (explicitlyRetryable) return true;
|
|
288
288
|
const status = failure.status;
|
|
289
289
|
if (status !== undefined && (status === 401 || status === 403)) return false;
|
|
290
|
+
// Malformed model output can echo tool arguments that look like auth/quota errors.
|
|
291
|
+
if (failure.code === 'MALFORMED_RESPONSE') return true;
|
|
290
292
|
const permanent =
|
|
291
293
|
/auth|unauthor|forbidden|credential|api[_-]?key|permission/i.test(haystack) ||
|
|
292
294
|
/insufficient.*(balance|quota)|billing|payment|quota.*exceeded.*(?!retry)/i.test(haystack) ||
|