@deepwatch/dsh-client-settings 0.1.0

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/lib/index.d.ts ADDED
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Host loader entry for the Watch Technology & Capability Center.
3
+ *
4
+ * There is no host behaviour to install — the Center is entirely browser-side,
5
+ * under `./client`. This entry exists because the DSH loader mounts a
6
+ * package's node half first and reads its `dsh.client` declaration from there;
7
+ * a row whose module exports no `apply` is refused with "invalid plugin", and
8
+ * the whole plugin tree fails to load with it.
9
+ *
10
+ * @module @deepwatch/dsh-client-settings
11
+ */
12
+ export declare function apply(): void;
13
+ //# sourceMappingURL=index.d.ts.map
package/lib/index.js ADDED
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Host loader entry for the Watch Technology & Capability Center.
3
+ *
4
+ * There is no host behaviour to install — the Center is entirely browser-side,
5
+ * under `./client`. This entry exists because the DSH loader mounts a
6
+ * package's node half first and reads its `dsh.client` declaration from there;
7
+ * a row whose module exports no `apply` is refused with "invalid plugin", and
8
+ * the whole plugin tree fails to load with it.
9
+ *
10
+ * @module @deepwatch/dsh-client-settings
11
+ */
12
+ export function apply() { }
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,MAAM,UAAU,KAAK,KAAU,CAAC"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * What OCR actually measured on this machine.
3
+ *
4
+ * Generated by `scripts/ocr-benchmark.mjs` from a real run over a versioned
5
+ * ground-truth corpus. Do not edit: a number typed into a component is a
6
+ * number nobody measured.
7
+ *
8
+ * @module @deepwatch/dsh-client-settings/ocr-measured
9
+ */
10
+ /** One workload tier, with the numbers the run produced. */
11
+ export interface MeasuredWorkload {
12
+ readonly workload: string;
13
+ readonly samples: number;
14
+ readonly cer: number;
15
+ readonly wordAccuracy: number;
16
+ readonly hallucination: number;
17
+ /** Against thresholds committed before the benchmark existed. */
18
+ readonly passes: boolean;
19
+ }
20
+ /** Whether any engine has been measured here at all. */
21
+ export declare const OCR_MEASURED = true;
22
+ /** The engine that was run, and where. */
23
+ export declare const OCR_ENGINE = "rapidocr";
24
+ export declare const OCR_DEVICE = "cpu";
25
+ /** Per workload, because qualification is per workload and not an average. */
26
+ export declare const OCR_BY_WORKLOAD: readonly MeasuredWorkload[];
27
+ //# sourceMappingURL=ocr-measured.d.ts.map
@@ -0,0 +1,66 @@
1
+ /**
2
+ * What OCR actually measured on this machine.
3
+ *
4
+ * Generated by `scripts/ocr-benchmark.mjs` from a real run over a versioned
5
+ * ground-truth corpus. Do not edit: a number typed into a component is a
6
+ * number nobody measured.
7
+ *
8
+ * @module @deepwatch/dsh-client-settings/ocr-measured
9
+ */
10
+ /** Whether any engine has been measured here at all. */
11
+ export const OCR_MEASURED = true;
12
+ /** The engine that was run, and where. */
13
+ export const OCR_ENGINE = "rapidocr";
14
+ export const OCR_DEVICE = "cpu";
15
+ /** Per workload, because qualification is per workload and not an average. */
16
+ export const OCR_BY_WORKLOAD = [
17
+ {
18
+ "workload": "dark_mode",
19
+ "samples": 1,
20
+ "cer": 0,
21
+ "wordAccuracy": 1,
22
+ "hallucination": 0,
23
+ "passes": true
24
+ },
25
+ {
26
+ "workload": "document",
27
+ "samples": 1,
28
+ "cer": 0,
29
+ "wordAccuracy": 1,
30
+ "hallucination": 0,
31
+ "passes": true
32
+ },
33
+ {
34
+ "workload": "low_resolution",
35
+ "samples": 4,
36
+ "cer": 0.6111,
37
+ "wordAccuracy": 0.25,
38
+ "hallucination": 0.25,
39
+ "passes": false
40
+ },
41
+ {
42
+ "workload": "mixed_script",
43
+ "samples": 2,
44
+ "cer": 0.75,
45
+ "wordAccuracy": 0.25,
46
+ "hallucination": 0,
47
+ "passes": false
48
+ },
49
+ {
50
+ "workload": "ui_text",
51
+ "samples": 8,
52
+ "cer": 0.0074,
53
+ "wordAccuracy": 0.9792,
54
+ "hallucination": 0,
55
+ "passes": true
56
+ },
57
+ {
58
+ "workload": "video_overlay",
59
+ "samples": 1,
60
+ "cer": 0,
61
+ "wordAccuracy": 1,
62
+ "hallucination": 0,
63
+ "passes": true
64
+ }
65
+ ];
66
+ //# sourceMappingURL=ocr-measured.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ocr-measured.js","sourceRoot":"","sources":["../src/ocr-measured.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAaH,wDAAwD;AACxD,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,CAAA;AAEhC,0CAA0C;AAC1C,MAAM,CAAC,MAAM,UAAU,GAAG,UAAU,CAAA;AACpC,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,CAAA;AAE/B,8EAA8E;AAC9E,MAAM,CAAC,MAAM,eAAe,GAAgC;IAC1D;QACE,UAAU,EAAE,WAAW;QACvB,SAAS,EAAE,CAAC;QACZ,KAAK,EAAE,CAAC;QACR,cAAc,EAAE,CAAC;QACjB,eAAe,EAAE,CAAC;QAClB,QAAQ,EAAE,IAAI;KACf;IACD;QACE,UAAU,EAAE,UAAU;QACtB,SAAS,EAAE,CAAC;QACZ,KAAK,EAAE,CAAC;QACR,cAAc,EAAE,CAAC;QACjB,eAAe,EAAE,CAAC;QAClB,QAAQ,EAAE,IAAI;KACf;IACD;QACE,UAAU,EAAE,gBAAgB;QAC5B,SAAS,EAAE,CAAC;QACZ,KAAK,EAAE,MAAM;QACb,cAAc,EAAE,IAAI;QACpB,eAAe,EAAE,IAAI;QACrB,QAAQ,EAAE,KAAK;KAChB;IACD;QACE,UAAU,EAAE,cAAc;QAC1B,SAAS,EAAE,CAAC;QACZ,KAAK,EAAE,IAAI;QACX,cAAc,EAAE,IAAI;QACpB,eAAe,EAAE,CAAC;QAClB,QAAQ,EAAE,KAAK;KAChB;IACD;QACE,UAAU,EAAE,SAAS;QACrB,SAAS,EAAE,CAAC;QACZ,KAAK,EAAE,MAAM;QACb,cAAc,EAAE,MAAM;QACtB,eAAe,EAAE,CAAC;QAClB,QAAQ,EAAE,IAAI;KACf;IACD;QACE,UAAU,EAAE,eAAe;QAC3B,SAAS,EAAE,CAAC;QACZ,KAAK,EAAE,CAAC;QACR,cAAc,EAAE,CAAC;QACjB,eAAe,EAAE,CAAC;QAClB,QAAQ,EAAE,IAAI;KACf;CACF,CAAA"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * What the pinned DSH provider catalogue contains.
3
+ *
4
+ * Generated by `scripts/gen-provider-inventory.mjs` from
5
+ * `@earendil-works/pi-ai`. Do not edit: the catalogue is the source of
6
+ * truth and this is a count of it.
7
+ *
8
+ * @module @deepwatch/dsh-client-settings/providers
9
+ */
10
+ /** Every provider route the pinned DSH ships. */
11
+ export declare const PROVIDER_COUNT = 37;
12
+ /** Routes you reach over a network somebody else runs. */
13
+ export declare const HOSTED_COUNT = 30;
14
+ /**
15
+ * Routes where you supply the endpoint.
16
+ *
17
+ * This is the same mechanism a local model uses: an OpenAI-compatible
18
+ * server on your own machine — Ollama, vLLM, LM Studio, llama.cpp — is a
19
+ * base URL you provide, not a separate feature.
20
+ */
21
+ export declare const SELF_HOSTED_COUNT = 7;
22
+ /** Whether DeepSeek is one route among many rather than the only one. */
23
+ export declare const DEEPSEEK_IS_OPTIONAL = true;
24
+ /** A few recognisable names, for a sentence that has to stay short. */
25
+ export declare const SAMPLE_PROVIDERS: string[];
26
+ //# sourceMappingURL=providers.d.ts.map
@@ -0,0 +1,26 @@
1
+ /**
2
+ * What the pinned DSH provider catalogue contains.
3
+ *
4
+ * Generated by `scripts/gen-provider-inventory.mjs` from
5
+ * `@earendil-works/pi-ai`. Do not edit: the catalogue is the source of
6
+ * truth and this is a count of it.
7
+ *
8
+ * @module @deepwatch/dsh-client-settings/providers
9
+ */
10
+ /** Every provider route the pinned DSH ships. */
11
+ export const PROVIDER_COUNT = 37;
12
+ /** Routes you reach over a network somebody else runs. */
13
+ export const HOSTED_COUNT = 30;
14
+ /**
15
+ * Routes where you supply the endpoint.
16
+ *
17
+ * This is the same mechanism a local model uses: an OpenAI-compatible
18
+ * server on your own machine — Ollama, vLLM, LM Studio, llama.cpp — is a
19
+ * base URL you provide, not a separate feature.
20
+ */
21
+ export const SELF_HOSTED_COUNT = 7;
22
+ /** Whether DeepSeek is one route among many rather than the only one. */
23
+ export const DEEPSEEK_IS_OPTIONAL = true;
24
+ /** A few recognisable names, for a sentence that has to stay short. */
25
+ export const SAMPLE_PROVIDERS = ["amazon-bedrock", "anthropic", "deepseek", "google", "groq", "mistral", "openai", "openrouter"];
26
+ //# sourceMappingURL=providers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"providers.js","sourceRoot":"","sources":["../src/providers.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,iDAAiD;AACjD,MAAM,CAAC,MAAM,cAAc,GAAG,EAAE,CAAA;AAEhC,0DAA0D;AAC1D,MAAM,CAAC,MAAM,YAAY,GAAG,EAAE,CAAA;AAE9B;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAA;AAElC,yEAAyE;AACzE,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,CAAA;AAExC,uEAAuE;AACvE,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,gBAAgB,EAAC,WAAW,EAAC,UAAU,EAAC,QAAQ,EAAC,MAAM,EAAC,SAAS,EAAC,QAAQ,EAAC,YAAY,CAAC,CAAA"}
package/package.json ADDED
@@ -0,0 +1,83 @@
1
+ {
2
+ "name": "@deepwatch/dsh-client-settings",
3
+ "version": "0.1.0",
4
+ "description": "Browser half: the Watch Technology & Capability Center — role bindings, engines, sources, memory, verification, diagnostics, about",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "author": "Sayed Allam",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/oxbshw/watch-skill.git",
11
+ "directory": "workspace/packages/watch/client-settings"
12
+ },
13
+ "homepage": "https://github.com/oxbshw/watch-skill/tree/main/workspace#readme",
14
+ "bugs": {
15
+ "url": "https://github.com/oxbshw/watch-skill/issues"
16
+ },
17
+ "keywords": [
18
+ "deepwatch",
19
+ "deepseek-harness",
20
+ "watch-skill",
21
+ "settings",
22
+ "ui"
23
+ ],
24
+ "dsh": {
25
+ "client": {
26
+ "inject": [
27
+ "@deepwatch/dsh-client-remotes",
28
+ "@deepseek-ai/dsh-client-ui-slots",
29
+ "@deepseek-ai/dsh-client-ui-primitives"
30
+ ],
31
+ "platform": "web"
32
+ }
33
+ },
34
+ "main": "lib/index.js",
35
+ "types": "lib/index.d.ts",
36
+ "exports": {
37
+ ".": {
38
+ "types": "./lib/index.d.ts",
39
+ "default": "./lib/index.js"
40
+ },
41
+ "./client": {
42
+ "types": "./lib/client/index.d.ts",
43
+ "default": "./lib/client.js"
44
+ },
45
+ "./components": {
46
+ "types": "./lib/client/components.d.ts",
47
+ "default": "./lib/client/components.js"
48
+ },
49
+ "./package.json": "./package.json"
50
+ },
51
+ "files": [
52
+ "lib/**/*.js",
53
+ "lib/**/*.js.map",
54
+ "lib/**/*.d.ts"
55
+ ],
56
+ "sideEffects": false,
57
+ "engines": {
58
+ "node": "^22.19.0 || >=24.0.0"
59
+ },
60
+ "publishConfig": {
61
+ "access": "public"
62
+ },
63
+ "dependencies": {
64
+ "@deepwatch/dsh-client-brand": "^0.1.0",
65
+ "@deepwatch/dsh-contracts": "^0.1.0",
66
+ "@deepwatch/dsh-technology": "^0.1.0"
67
+ },
68
+ "peerDependencies": {
69
+ "@deepseek-ai/cordis": "4.0.2",
70
+ "@deepseek-ai/dsh-client-ui-primitives": "0.1.1-rc.2",
71
+ "react": "^18.2.0"
72
+ },
73
+ "devDependencies": {
74
+ "@deepseek-ai/cordis": "4.0.2",
75
+ "@deepseek-ai/dsh-client-ui-primitives": "0.1.1-rc.2",
76
+ "@deepseek-ai/dsh-client-ui-slots": "0.1.1-rc.2",
77
+ "@types/react": "~18.3.1",
78
+ "react": "^18.2.0"
79
+ },
80
+ "scripts": {
81
+ "bundle": "tsdown"
82
+ }
83
+ }