@qdbidetu/dsh-coach-bundle 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/cordis.patch.yml +18 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +3 -0
- package/lib/invariant.d.ts +9 -0
- package/lib/invariant.js +12 -0
- package/package.json +43 -0
package/cordis.patch.yml
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# DSH Coach overlay. It assumes the official `web` profile already supplies
|
|
2
|
+
# dsh-base, dsh-web-app, Typert, Gateway, WebServer, and the Client roster.
|
|
3
|
+
- insert:
|
|
4
|
+
- id: coach-web
|
|
5
|
+
name: '@qdbidetu/dsh-coach-web'
|
|
6
|
+
inject: [webServer, sessions, sessionPersistence]
|
|
7
|
+
config:
|
|
8
|
+
publicOrigin: !!js process.env.PUBLIC_ORIGIN
|
|
9
|
+
databaseUrl: !!js process.env.DATABASE_URL
|
|
10
|
+
sessionSecret: !!js process.env.SESSION_SECRET
|
|
11
|
+
modelAllowedHosts: !!js process.env.COACH_MODEL_ALLOWED_HOSTS
|
|
12
|
+
scoringPollMs: !!js Number(process.env.COACH_SCORING_POLL_MS ?? 1000)
|
|
13
|
+
scoringBatchSize: !!js Number(process.env.COACH_SCORING_BATCH_SIZE ?? 4)
|
|
14
|
+
scoringLeaseSeconds: !!js Number(process.env.COACH_SCORING_LEASE_SECONDS ?? 120)
|
|
15
|
+
scoringMaxAttempts: !!js Number(process.env.COACH_SCORING_MAX_ATTEMPTS ?? 3)
|
|
16
|
+
scoringRetryDelaySeconds: !!js Number(process.env.COACH_SCORING_RETRY_DELAY_SECONDS ?? 10)
|
|
17
|
+
- id: coach-client-ui
|
|
18
|
+
name: '@qdbidetu/dsh-client-ui-coach'
|
package/lib/index.d.ts
ADDED
package/lib/index.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** Package-owned invariant companion for the installable Coach profile bundle. */
|
|
2
|
+
import type { Context } from '@deepseek-ai/cordis';
|
|
3
|
+
/** Cordis companion plugin name. */
|
|
4
|
+
export declare const name = "dsh-coach-bundle-invariant";
|
|
5
|
+
/** Registry required before reserving this package's invariant ownership. */
|
|
6
|
+
export declare const inject: string[];
|
|
7
|
+
/** Register the bundle's explained empty invariant. */
|
|
8
|
+
export declare const apply: (ctx: Context) => Promise<() => void>;
|
|
9
|
+
//# sourceMappingURL=invariant.d.ts.map
|
package/lib/invariant.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** Package-owned invariant companion for the installable Coach profile bundle. */
|
|
2
|
+
const PACKAGE_NAME = '@qdbidetu/dsh-coach-bundle';
|
|
3
|
+
/** Cordis companion plugin name. */
|
|
4
|
+
export const name = 'dsh-coach-bundle-invariant';
|
|
5
|
+
/** Registry required before reserving this package's invariant ownership. */
|
|
6
|
+
export const inject = ['invariants'];
|
|
7
|
+
// No runtime invariant: this bundle carries only a static patch; the inserted
|
|
8
|
+
// Host and Client packages own the state and registrations that it activates.
|
|
9
|
+
const install = () => { };
|
|
10
|
+
/** Register the bundle's explained empty invariant. */
|
|
11
|
+
export const apply = (ctx) => Promise.resolve(ctx.invariants.register(PACKAGE_NAME, install));
|
|
12
|
+
//# sourceMappingURL=invariant.js.map
|
package/package.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@qdbidetu/dsh-coach-bundle",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "DSH Coach profile patch with the official Web SPA integration",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "lib/index.js",
|
|
8
|
+
"types": "lib/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./lib/index.d.ts",
|
|
12
|
+
"default": "./lib/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./invariant": {
|
|
15
|
+
"types": "./lib/invariant.d.ts",
|
|
16
|
+
"default": "./lib/invariant.js"
|
|
17
|
+
},
|
|
18
|
+
"./cordis.patch.yml": "./cordis.patch.yml",
|
|
19
|
+
"./package.json": "./package.json"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"lib/**/*.js",
|
|
23
|
+
"lib/**/*.d.ts",
|
|
24
|
+
"cordis.patch.yml",
|
|
25
|
+
"package.json"
|
|
26
|
+
],
|
|
27
|
+
"dsh": {
|
|
28
|
+
"bundle": {
|
|
29
|
+
"patch": "./cordis.patch.yml"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@qdbidetu/dsh-coach-web": "0.1.0",
|
|
34
|
+
"@qdbidetu/dsh-client-ui-coach": "0.1.0"
|
|
35
|
+
},
|
|
36
|
+
"peerDependencies": {
|
|
37
|
+
"@deepseek-ai/cordis": ">=4.0.1",
|
|
38
|
+
"@deepseek-ai/dsh-invariants": ">=0.1.2-alpha.1"
|
|
39
|
+
},
|
|
40
|
+
"scripts": {
|
|
41
|
+
"bundle": "tsc -p tsconfig.json"
|
|
42
|
+
}
|
|
43
|
+
}
|