@dsh-jev/effort 0.1.0 → 0.1.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/README.md +19 -3
- package/cordis.patch.yml +1 -1
- package/lib/client.js +2 -2
- package/package.json +26 -12
package/README.md
CHANGED
|
@@ -33,14 +33,30 @@ must not hold the jev API key.
|
|
|
33
33
|
|
|
34
34
|
## Install into the Web profile
|
|
35
35
|
|
|
36
|
+
Published as `@dsh-jev/effort` (npm):
|
|
37
|
+
|
|
36
38
|
```sh
|
|
37
|
-
dsh plugin --profile web add dsh-jev
|
|
39
|
+
dsh plugin --profile web add @dsh-jev/effort
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
or via the profile's `cordis.patch.yml` (new instances need `- insert:`):
|
|
43
|
+
|
|
44
|
+
```yaml
|
|
45
|
+
- insert:
|
|
46
|
+
- id: jev-effort
|
|
47
|
+
name: '@dsh-jev/effort'
|
|
48
|
+
config:
|
|
49
|
+
enabled: true # default
|
|
50
|
+
targetEffort: low # default
|
|
38
51
|
```
|
|
39
52
|
|
|
40
|
-
|
|
53
|
+
`JEV_API_KEY` is read from the process environment via `@dsh-jev/core`; in
|
|
54
|
+
GUI/launchd contexts pass it via the profile patch (`env:`) rather than a
|
|
55
|
+
shell export. Web-only: the browser face (composer hint) is registered under
|
|
56
|
+
`platform: web`; installing it into the TUI profile does nothing visible.
|
|
41
57
|
|
|
42
58
|
## Development
|
|
43
59
|
|
|
44
60
|
```sh
|
|
45
|
-
pnpm --filter @dsh-jev/effort test # syntax checks +
|
|
61
|
+
pnpm --filter @dsh-jev/effort test # syntax checks + 24 vitest cases (host + browser DOM)
|
|
46
62
|
```
|
package/cordis.patch.yml
CHANGED
package/lib/client.js
CHANGED
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
* 3. versioned global state + element ownership survive client hot-swaps;
|
|
13
13
|
* 4. old hosts degrade silently (no locale → English copy, no composer → hidden).
|
|
14
14
|
*
|
|
15
|
-
* @module dsh-jev
|
|
15
|
+
* @module @dsh-jev/effort/client
|
|
16
16
|
*/
|
|
17
17
|
window.__ModuleLoader__.load({
|
|
18
|
-
id: "dsh-jev
|
|
18
|
+
id: "@dsh-jev/effort",
|
|
19
19
|
factory: () => {
|
|
20
20
|
const exports = {};
|
|
21
21
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
package/package.json
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dsh-jev/effort",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "dsh Web-only plugin: jev System One lowers reasoning effort to low for simple turns, with a dismissible composer hint",
|
|
5
|
-
"keywords": [
|
|
5
|
+
"keywords": [
|
|
6
|
+
"dsh",
|
|
7
|
+
"dsh-plugin",
|
|
8
|
+
"deepseek-harness",
|
|
9
|
+
"web",
|
|
10
|
+
"jev"
|
|
11
|
+
],
|
|
6
12
|
"type": "module",
|
|
7
13
|
"main": "lib/index.js",
|
|
8
14
|
"exports": {
|
|
@@ -11,18 +17,20 @@
|
|
|
11
17
|
"./cordis.patch.yml": "./cordis.patch.yml",
|
|
12
18
|
"./package.json": "./package.json"
|
|
13
19
|
},
|
|
14
|
-
"files": [
|
|
15
|
-
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
|
|
20
|
+
"files": [
|
|
21
|
+
"lib",
|
|
22
|
+
"cordis.patch.yml",
|
|
23
|
+
"README.md"
|
|
24
|
+
],
|
|
19
25
|
"dependencies": {
|
|
20
|
-
"@dsh-jev/core": "
|
|
26
|
+
"@dsh-jev/core": "0.1.1"
|
|
21
27
|
},
|
|
22
28
|
"devDependencies": {
|
|
23
29
|
"@types/node": "^20.0.0",
|
|
24
30
|
"typescript": "^5.6.0",
|
|
25
|
-
"vitest": "^2.1.0"
|
|
31
|
+
"vitest": "^2.1.0",
|
|
32
|
+
"@vitest/coverage-v8": "^2.1.0",
|
|
33
|
+
"jsdom": "^25.0.0"
|
|
26
34
|
},
|
|
27
35
|
"engines": {
|
|
28
36
|
"node": ">=20"
|
|
@@ -35,9 +43,15 @@
|
|
|
35
43
|
"patch": "./cordis.patch.yml"
|
|
36
44
|
},
|
|
37
45
|
"client": {
|
|
38
|
-
"inject": [
|
|
46
|
+
"inject": [
|
|
47
|
+
"locale"
|
|
48
|
+
],
|
|
39
49
|
"platform": "web"
|
|
40
50
|
}
|
|
41
51
|
},
|
|
42
|
-
"license": "MIT"
|
|
43
|
-
|
|
52
|
+
"license": "MIT",
|
|
53
|
+
"scripts": {
|
|
54
|
+
"test": "node --check lib/index.js && node --check lib/client.js && vitest run",
|
|
55
|
+
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
56
|
+
}
|
|
57
|
+
}
|