@goodandready/dsh-dsml-artifact-guard 0.2.11 → 0.2.13

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 CHANGED
@@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ---
9
9
 
10
+ ## [0.2.13] - 2026-10-21
11
+
12
+ ### Fixed
13
+ - **Desktop Profile Auto-Detection**: in `lib/updater.js`, updated `runtime()` to detect profile from `process.cwd()` when `cordis.yml` or `cordis.patch.yml` exists, properly resolving the `desktop` profile in DSH Desktop without requiring `DSH_PROFILE_DIR` (#66).
14
+ - **DSH Desktop Origin Trust**: in `lib/updater.js`, updated `isTrustedUpdateRequest()` to accept loopback requests from Electron UI origin `dsh-app://app` (#66).
15
+
16
+ ## [0.2.12] - 2026-10-15
17
+
18
+ ### Fixed
19
+ - **Settings Form Entry ID Query**: in `lib/client.js` `PluginCard`, changed `_ctx.configForms.get(...)` to query strictly `ROW_ID` (`'dsh-dsml-artifact-guard'`), removing fallback to package name `NS` (`'@goodandready/dsh-dsml-artifact-guard'`) (#64).
20
+ - **Settings Scope Binding**: bound `_ctx.settingsScope` using `namespace: ROW_ID`, fixing settings form read failure and resolving `dshmarket` verifier warning for unserved config namespaces (#64).
21
+
10
22
  ## [0.2.11] - 2026-10-15
11
23
 
12
24
  ### Fixed
package/lib/client.js CHANGED
@@ -122,9 +122,9 @@ window.__ModuleLoader__.load({
122
122
  if (!scopeRef.current && _ctx) {
123
123
  try {
124
124
  if (_ctx.configForms && typeof _ctx.configForms.get === 'function') {
125
- scopeRef.current = _ctx.configForms.get(ROW_ID) || _ctx.configForms.get(NS);
125
+ scopeRef.current = _ctx.configForms.get(ROW_ID);
126
126
  } else if (_ctx.settingsScope && typeof _ctx.settingsScope.bind === 'function') {
127
- scopeRef.current = _ctx.settingsScope.bind({ namespace: NS });
127
+ scopeRef.current = _ctx.settingsScope.bind({ namespace: ROW_ID });
128
128
  }
129
129
  } catch (e) {
130
130
  scopeRef.current = null;
package/lib/updater.js CHANGED
@@ -32,6 +32,9 @@ export function isTrustedUpdateRequest(request) {
32
32
  if (origin === undefined || host === undefined) return false;
33
33
  try {
34
34
  const url = new URL(origin);
35
+ if (url.protocol === 'dsh-app:' && url.hostname === 'app') {
36
+ return isLoopback(request.socket?.remoteAddress);
37
+ }
35
38
  if (url.protocol !== 'http:' && url.protocol !== 'https:') return false;
36
39
  if (url.host.toLowerCase() !== host.toLowerCase()) return false;
37
40
  if (isLoopback(url.hostname)) {
@@ -83,8 +86,10 @@ function findDshCliEntry() {
83
86
  }
84
87
 
85
88
  export function runtime() {
89
+ const isCwdProfile = existsSync(resolve(process.cwd(), 'cordis.yml'))
90
+ || existsSync(resolve(process.cwd(), 'cordis.patch.yml'));
86
91
  const profileDir = resolve(process.env.DSH_PROFILE_DIR
87
- ?? resolve(homedir(), '.dsh', 'profiles', 'web'));
92
+ ?? (isCwdProfile ? process.cwd() : resolve(homedir(), '.dsh', 'profiles', 'web')));
88
93
  const selected = profileNameFromArgv(process.argv);
89
94
  const profileName = validProfileName(selected)
90
95
  ? selected
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodandready/dsh-dsml-artifact-guard",
3
- "version": "0.2.11",
3
+ "version": "0.2.13",
4
4
  "description": "Sanitizes leaked DeepSeek DSML closing tags from model text streams",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",