dsh-permission-rules 0.5.0 → 0.5.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.
- package/CHANGELOG.md +17 -0
- package/README.es.md +139 -118
- package/README.hi.md +141 -120
- package/README.md +111 -90
- package/README.pt.md +140 -119
- package/README.zh.md +158 -137
- package/docs/rule-test-vectors/README.md +28 -0
- package/docs/rule-test-vectors/corpus.json +109 -0
- package/lib/client.js +4 -7
- package/lib/client.js.map +1 -1
- package/lib/index.js +10 -7
- package/lib/types/client/remote.d.ts +1 -1
- package/lib/types/client/section.d.ts +2 -2
- package/lib/types/config.d.ts +3 -3
- package/lib/types/index.d.ts +8 -8
- package/lib/types/network.d.ts +2 -2
- package/lib/types/proxy.d.ts +2 -2
- package/lib/types/remote-service.d.ts +2 -2
- package/lib/types/runtime.d.ts +14 -11
- package/lib/types/runtime.d.ts.map +1 -1
- package/lib/types/settings.d.ts +2 -2
- package/package.json +182 -178
- package/scripts/repair-session-logs.mjs +7 -2
- package/src/client/index.ts +5 -5
- package/src/runtime.ts +10 -7
package/src/runtime.ts
CHANGED
|
@@ -1173,18 +1173,21 @@ export async function apply(ctx: Context, config: Config): Promise<void> {
|
|
|
1173
1173
|
|
|
1174
1174
|
/**
|
|
1175
1175
|
* Whether a `@deepseek-ai/dsh-session` version line predates the
|
|
1176
|
-
* `ignorable` envelope-marker surface:
|
|
1177
|
-
* silently
|
|
1178
|
-
*
|
|
1179
|
-
*
|
|
1180
|
-
*
|
|
1176
|
+
* `ignorable` envelope-marker surface: every released rc line through
|
|
1177
|
+
* `0.1.0-rc.7` silently drops the marker from `Session.append` options
|
|
1178
|
+
* (the stamping fix exists on harness master only — no release carries it
|
|
1179
|
+
* yet), so audit events written by those builds land unmarked and break
|
|
1180
|
+
* resume on stricter hosts. Extend the bound when a new rc line ships that
|
|
1181
|
+
* still drops the marker. Non-matching (later rc, stable, or unresolvable)
|
|
1182
|
+
* versions are treated as possibly-marker-aware and verified by the
|
|
1183
|
+
* append probe.
|
|
1181
1184
|
* @param version - the installed peer version string.
|
|
1182
|
-
* @returns true for the known-unmarked rc.1–rc.
|
|
1185
|
+
* @returns true for the known-unmarked rc.1–rc.7 lines.
|
|
1183
1186
|
*/
|
|
1184
1187
|
export function isUnmarkedHostVersion(version: string): boolean {
|
|
1185
1188
|
const match = /^0\.1\.0-rc\.(\d+)$/.exec(version.trim())
|
|
1186
1189
|
if (match === null) return false
|
|
1187
|
-
return Number(match[1]) <=
|
|
1190
|
+
return Number(match[1]) <= 7
|
|
1188
1191
|
}
|
|
1189
1192
|
|
|
1190
1193
|
/**
|